Reposting from my unneeded topic #24158.
Short summary I'm looking for a replacement or fix for webcomic user, if you're unfamiliar with the script it preloaded images on a page and let you browse through them like a gallery with the arrow keys.
Posted under General
Reposting from my unneeded topic #24158.
Short summary I'm looking for a replacement or fix for webcomic user, if you're unfamiliar with the script it preloaded images on a page and let you browse through them like a gallery with the arrow keys.
Tags preview userscript.
https://gist.github.com/hdk5/be69f7e9e57c643fec130a3f3a46f0a0/raw/danbooru_tag_preview.user.js
Add "preview" button to the upload/edit tag input field. Preview shows:
I've made this simple extension recently (Firefox only at the moment).
https://github.com/lowest-fhtagn/danbooru-enhancer
It's basically "Post to Danbooru" bookmarklet except on right-click context menu.
I've also added a feature to make Danbooru's sidebar sticky, which has personally made things more convenient for me especially when tagging, among other stuff.
Fhtagn said:
I've made this simple extension recently (Firefox only at the moment).
https://github.com/lowest-fhtagn/danbooru-enhancerIt's basically "Post to Danbooru" bookmarklet except on right-click context menu.
I've also added a feature to make Danbooru's sidebar sticky, which has personally made things more convenient for me especially when tagging, among other stuff.
The 'official' danbooru extension for Firefox already does this, for what it's worth: https://addons.mozilla.org/en-US/firefox/addon/upload-to-danbooru/ (There's also a Chrome version, but I don't wanna go to the chrome web store and find it)
DeusExCalamus said:
(There's also a Chrome version, but I don't wanna go to the chrome web store and find it)
BUT I DO
https://chrome.google.com/webstore/detail/upload-to-danbooru/faoifiojjmdkjpgkjpikkjdfocdjjpla
For those who uses Old Twiter Layout Extension, I write a simple Twitter Image Search userscript inspired by NTISAS to make it compactible with it.
https://gittea.dev/soberoatmeal/old-twitter-image-search
The installation should be straightforward enough.
Updated
A userscript that aims to solve issue #1157. Should work on mobile as well.
https://github.com/hdk5/danbooru-frontpage.user.js/raw/master/danbooru-frontpage.user.js
Redirect to artist profile page instead of showing a takedown request message if you click a banned artist tag.
// ==UserScript== // @name Redirect to banned artist profile // @version 0.1 // @description Redirect to banned artist profile from takedown page // @author Sibyl // @match https://danbooru.donmai.us/posts?tags=* // @grant none // ==/UserScript== (function () { "use strict"; const p = document.querySelector("#page > p:last-child"); if (p && p.innerText.indexOf("takedown request") > -1) { let tag = new URL(location).searchParams.get("tags")?.trim(); if (tag) { let url = new URL("https://danbooru.donmai.us/artists/show_or_new"); url.searchParams.set("name", tag); location.href = url; } } })();
Add buttons to post information column and click to view post on yande.re, Gelbooru or SankakuComplex.
// ==UserScript== // @name View post on other boorus // @version 0.1 // @description Add buttons to post information column and click to view post on other boorus. // @author Sibyl // @match https://danbooru.donmai.us/posts/* // @grant none // ==/UserScript== (function () { "use strict"; const a = document.querySelector("#post-info-size > a:first-of-type"); const md5 = a?.href?.match(/([a-z0-9]{32})\./)[1]; if (md5) { document .querySelector("#post-info-id") .insertAdjacentHTML( "beforeend", `<div> <a id="post-on-g" target="_blank" href="https://gelbooru.com/index.php?page=post&s=list&md5=${md5}" style="color:#FFF;background-color:#2A88FE;"> G </a> | <a id="post-on-y" target="_blank" href="https://yande.re/post/show?md5=${md5}" style="color:#EE8887;background-color:#222;"> Y </a> | <a id="post-on-s" target="_blank" href="https://beta.sankakucomplex.com/?tags=md5%3A${md5}" style="color:#FFF;background-color:#FF761C;"> S </a></div>` ); document.head.insertAdjacentHTML( "beforeend", `<style>body[data-current-user-theme=dark]{--booru-border:1px dotted;}body[data-current-user-theme=light]{--booru-border:1px;} #post-info-id>div{display:inline-block;}#post-info-id a{font-weight:bold;}#post-info-id a {border:var(--booru-border);border-radius:3px;} #post-info-id a:hover{filter:opacity(50%);}</style>` ); } })();
A userscript that lets one to upload to Gelbooru directly from danbooru's post upload/view page
Extended blacklist rule syntax, with logical operators, metatags, and other stuff.
https://github.com/hdk5/danbooru-blacklist2
(also, it includes fully compliant search query parser - in case it would be of use to anyone else)
Updated
The bulk update request #20167 (forum #255402) has been approved by @Mexiguy.
Replaces fxtwitter.com
and vxtwitter.com
with just twitter.com
in links when uploading from an URL, making it easier to upload directly from these sites.
Userscript for uploading to danbooru.
https://github.com/hdk5/upload-to-danbooru.user.js
Unlike the browser extension, which aims to be lightweight and universal, this one does the opposite by supporting only very few sites and including specific hacks for them.
Supported sites so far are:
post_content_photo
type)album_image
type)download
type)Replaces floating post edit window (shift+e) with the docked sidebar, similar to one on the new post page.
Works well with the pan&zoom userscript.
https://gist.github.com/hdk5/70eb145c8954b210d2476b04305dbe86/raw/danbooru_dock_edit_form.user.js
As always, Idk shit about javascript and Idk about another simple way to get a Pixiv user's stacc id, but here's a bookmarklet I made for this since it's useful to know to create qualifiers, search for other accounts and check the user's activity.
javascript:location = location.href.replace("en/users", "stacc/id")
And here's an userscript version, it does the same by pressing a key. You can set your desired key in the 11th line, I use "]".
// ==UserScript== // @name Get Stacc ID // @match */en/users/* // @version 1 // @description Replaces a Pixiv profile url and redirects to their Stacc. // @author Individual // @grant none // ==/UserScript== function doc_keyUp(e) { if (e.key === "]") { if (location.href.match("en/users")) { location.href = location.href.replace("en/users", "stacc/id"); } } } document.addEventListener("keyup", doc_keyUp, false);
It simply replaces the url and redirects you to their Stacc page. If you don't use Pixiv in English, just edit the "en/" parts.
EDIT: Thank you so much 岩戸鈴芽!
Updated
Sessyoin_Kiara said:
...
I was actually unaware of this redirect, here's a bookmarklet you can use to easily copy the stacc URL, similar to the one for Twitter intent IDs. Same disclaimer about using Pixiv in anything other than English applies:
javascript:(() => fetch(location.href.replace("en/users", "stacc/id")).then(r => prompt("stacc URL", r.url)))()
Add back recently removed "+ -" links next to tags in tag lists.
https://github.com/hdk5/danbooru.user.js/blob/master/dist/plus-minus.user.js?raw=1
hdk5 said:
Add back recently removed "+ -" links next to tags in tag lists.
https://github.com/hdk5/danbooru.user.js/blob/master/dist/plus-minus.user.js?raw=1
I tried installing the script on my PC and it is not working.
hdk5 said:
Add back recently removed "+ -" links next to tags in tag lists.
https://github.com/hdk5/danbooru.user.js/blob/master/dist/plus-minus.user.js?raw=1
Thank you very much! Really weird design choice (?) for removing the + and - links. So big thanks for sharing the script!
biodude711 said:
I tried installing the script on my PC and it is not working.
Works for me on FF and Tampermonkey.