Danbooru

Danbooru (etc...) userscripts

Posted under General

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.

Bookmarklet

javascript:$(".upload_commentary_translation_container, .upload_artist_commentary_container").remove();

Note: Unfortunately, DText doesn't allow one to create a link out of the above, so the bookmarklets will have to be set manually.

Userscript

// ==UserScript==
// @name         Remove upload commentary
// @version      1.0
// @description  Removes the commentary inputs on the uploads page.
// @match        *://*.donmai.us/uploads/new*
// @grant        none
// ==/UserScript==

const interval = setInterval(function() {
    let $commentaries = $(".upload_commentary_translation_container, .upload_artist_commentary_container");
    if ($commentaries.length) {
        clearInterval(interval);
        $commentaries.remove();
    }
}, 100);

Updated

BrokenEagle98 said:

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.

Bookmarklet

javascript:$(".upload_commentary_translation_container, .upload_artist_commentary_container").remove();

Note: Unfortunately, DText doesn't allow one to create a link out of the above, so the bookmarklets will have to be set manually.

How about this is added naturally?

I think he means having the commentary sections blank on the upload page at all times regardless of whether he uses the bookmarket or not.

tapnek said:

I think he means having the commentary sections blank on the upload page at all times regardless of whether he uses the bookmarket or not.

Alright, I updated the above forum post to include a userscript which will always remove the commentary inputs.