Add booru_downloader.user.js
This commit is contained in:
@@ -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()
|
||||
}
|
||||
})
|
||||
})();
|
||||
Reference in New Issue
Block a user