This commit is contained in:
Hell13Cat
2026-06-06 12:05:30 +03:00
parent bd3036f058
commit 34f144d240
7 changed files with 296 additions and 39 deletions
+2 -2
View File
@@ -6,7 +6,7 @@
// @grant GM_registerMenuCommand
// @grant GM_getValue
// @grant GM_setValue
// @version 1.0r
// @version 1.1r
// @author https://t.me/Nyako_TW
// @downloadURL https://git.nekono.su/Nyako/Local-Booru/raw/branch/main/button_script.user.js
// @updateURL https://git.nekono.su/Nyako/Local-Booru/raw/branch/main/button_script.user.js
@@ -107,7 +107,7 @@ if (originalImageLinkElement) {
headers: {
"Content-Type": "application/json"
},
data: JSON.stringify({ id: imageID }),
data: JSON.stringify({ id: imageID , type: "download"}),
onload: function(response) {
console.log('Ответ от API:', response.responseText);
newDownloadButton.style.outline = "2px solid green"; // Успех