Because of forum #164992, I created the following bookmarklet and userscript which will remove the commentary inputs on the uploads page so that they don't get added. The bookmarklet allows one to remove the commentary inputs when desired, whereas the userscript will always remove the commentary inputs.
Because of forum #164992, I created the following boorkmarklet which will remove the commentary inputs on the uploads page so that they don't get added when undesired.
Requested by DeusExCalamus on Discord, I'm sharing this in case anyone else finds it useful. I've created issue #4561 so that this can be done by the server instead, but until then, the only way to disable them is via a userscript.
Userscript
// ==UserScript==
// @name Disable User Tooltips
// @version 3.0
// @description Removes the CSS class that enables tooltips.
// @match *://*.donmai.us/*
// @exclude /^https?://\w+\.donmai\.us/.*\.(xml|json|atom)(\?|$)/
// @grant none
// @run-at document-end
// ==/UserScript==
const removeTooltipSelector = function (i,entry) {$(entry).removeClass('user dtext-user-id-link dtext-user-mention-link')};
$(Danbooru.UserTooltip.SELECTOR).each(removeTooltipSelector);
$('.hidden-comments-notice a').click((event)=>{
let $comments_list = $(event.target).closest('.comments-for-post').find('.list-of-comments');
new MutationObserver(function(mutations,observer) {
$(Danbooru.UserTooltip.SELECTOR, $comments_list[0]).each(removeTooltipSelector);
observer.disconnect();
}).observe($comments_list[0], {
childList: true,
});
});
$('.dtext-preview-button').click((event)=>{
let $link = $(event.target);
if (($link.attr('value') === 'Preview')) {
let $dtext_preview = $link.closest('form').find('.dtext-preview');
new MutationObserver(function(mutations,observer) {
if (mutations.length && mutations[0].addedNodes.length && mutations[0].addedNodes[0].nodeType === 3) {
return;
}
$(Danbooru.UserTooltip.SELECTOR, $dtext_preview[0]).each(removeTooltipSelector);
observer.disconnect();
}).observe($dtext_preview[0], {
childList: true,
});
}
});
I find myself needing to do certain Danbooru searches often, enough that it became useful to create a bookmarklet so that the search can be instantly performed anywhere instead of having to navigate to a page first.
Note: Unfortunately, DText doesn't allow one to create a link out of the above, so the bookmarklet will have to be set manually.
Wiki
Other names
Useful for searching non-Roman character words, such as Japanese. Needed because often a character/series name is embedded in a comment instead of as a tag.
javascript:query=prompt("Enter the other name to query:");(query!==null?(location.href='https://danbooru.donmai.us/wiki_pages?redirect=true&search[hide_deleted]=true&search%5Bother_names_match%5D=%2A'+encodeURIComponent(query)+'%2A'):false);
Artist URLs
URL
Useful for checking if other artists share the same URL, such as with duplicate artist entries.
javascript:query=prompt("Enter the URL to query:");(query!==null?(location.href='https://danbooru.donmai.us/artist_urls?search%5Burl_matches%5D=%2A'+encodeURIComponent(query)+'%2A'):false);
Related to forum #175804 above. Someone also asked me how to make it so that the autocomplete only activates when using a hotkey. The following uses Ctrl+Space. To change that, alter the string "ctrl+space" so that it has the hotkey that you desire.
The following will make maintaining bookmarks on Danbooru easier, as it removes the trailing search parameters thereby leaving a clean URL to bookmark. Use the Bookmarklet if it's only needed occasionally, or the Userscript if it's to be used all the time. (ref forum #136183)
Oh, I understand now. I does it when you search for it, just not when accessing an image from the pool itself or when accessing a parent from the related image directly. Is it possible to enable it for the latter cases, or is that not feasible?
Oh, I understand now. I does it when you search for it, just not when accessing an image from the pool itself or when accessing a parent from the related image directly. Is it possible to enable it for the latter cases, or is that not feasible?
Ah, I misunderstood your request. I made those changes and updated the forum #136251 to version 2.0 of the script.
(obsolete) I've developed a simple webextension to make deleted posts visible by default.
Currently, post searches on Danbooru exclude deleted posts by default, unless a status: term is specified. Recontaminant applies the opposite behaviour, so deleted posts will instead be *included* by default. This is achieved by automatically adding status:any to your search expression whenever no other status: terms are present in the expression.
Read the readme for more details and installation instructions. If you have issues, please report them to me or on the project's issues page. [/s]
I've heard some demand for something to prevent page navigation before submitting an upload, which the following should do except for when the upload gets submitted. If it's desired to have it always confirm even on upload submittal, then just remove the last line.