diff --git a/booru_downloader.user.js b/booru_downloader.user.js new file mode 100644 index 0000000..4b103f4 --- /dev/null +++ b/booru_downloader.user.js @@ -0,0 +1,23 @@ +// ==UserScript== +// @name Booru Downloader +// @namespace BigDuckie.BooruDownloader +// @version 2025.1.13 +// @description Adds keyboard shortcuts to various Booru sites to allow for easier downloading. +// @author Big Duckie +// @copyright 2025, Big Duckie (https://bigduckie.dev) +// @license MIT +// @match https://danbooru.donmai.us/posts/* +// @icon https://www.google.com/s2/favicons?sz=64&domain=donmai.us +// @grant none +// ==/UserScript== + +(function() { + 'use strict'; + + addEventListener("keydown", event => { + if (event.key == "s" && event.ctrlKey) { + event.preventDefault() + document.querySelector("#post-option-download>a").click() + } + }) +})(); \ No newline at end of file