pseudonymous/better-better-booru

[Suggestion] Button to swich between danbooru and safebooru

Closed this issue · 2 comments

I frequently switch between normal danbooru and safe mode danbooru (safebooru.donmai.us) and would like a button to do this faster. It would be kinda like this bookmarklet (adapted from this forum post):

javascript: (function() {
    if (window.location.toString().indexOf("donmai") < 0) {
        window.location.assign("https://danbooru.donmai.us/");
    } else if (window.location.toString().indexOf("danbooru") > 0) {
        window.location = window.location.toString().replace(/^https:\/\/danbooru\./, 'https://safebooru.');
    } else if (window.location.toString().indexOf("safebooru") > 0) {
        window.location = window.location.toString().replace(/^https:\/\/safebooru\./, 'https://danbooru.');
    }
})();

What circumstances make you have to switch between them so frequently?

As a free user i can only use 2 tags at a time, and i usually use order:favcount along with the tag i'm searching. If i use rating:safe, i can't use it because that would be 3 tags, so i instead switch to safebooru.donmai.us to search.