From cf34b50cf1944c587f721e23118bdc3036549608 Mon Sep 17 00:00:00 2001 From: Ryahn Date: Wed, 20 Nov 2024 21:50:15 -0600 Subject: [PATCH] Quck Promoter - 0.6.1 Fixed issue where you couldn't promote any thread due to saying Dev is banned from promotion --- Changelog.md | 3 +++ quick-promoter.js | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 Changelog.md diff --git a/Changelog.md b/Changelog.md new file mode 100644 index 0000000..3cfaf44 --- /dev/null +++ b/Changelog.md @@ -0,0 +1,3 @@ +## 0.6.1 +### Quick Promoter +- Fixed issue where you couldn't promote any thread due to saying Dev is banned from promotion \ No newline at end of file diff --git a/quick-promoter.js b/quick-promoter.js index cab35d8..28de3b5 100644 --- a/quick-promoter.js +++ b/quick-promoter.js @@ -1,7 +1,7 @@ // ==UserScript== // @name Promote Current Time // @namespace http://tampermonkey.net/ -// @version 0.6.0 +// @version 0.6.1 // @description Enter the current time for promotion. // @author Gameil // @match https://f95zone.to/threads/*/ @@ -55,7 +55,7 @@ onload: function(response) { if (response.status === 200) { const data = JSON.parse(response.responseText); - if (data) { + if (Array.isArray(data) && data.length !== 0) { devBanned = true; } // Handle successful response here