Quck Promoter - 0.6.1
Fixed issue where you couldn't promote any thread due to saying Dev is banned from promotion
This commit is contained in:
parent
0b9e79c27d
commit
cf34b50cf1
3
Changelog.md
Normal file
3
Changelog.md
Normal file
@ -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
|
||||||
@ -1,7 +1,7 @@
|
|||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @name Promote Current Time
|
// @name Promote Current Time
|
||||||
// @namespace http://tampermonkey.net/
|
// @namespace http://tampermonkey.net/
|
||||||
// @version 0.6.0
|
// @version 0.6.1
|
||||||
// @description Enter the current time for promotion.
|
// @description Enter the current time for promotion.
|
||||||
// @author Gameil
|
// @author Gameil
|
||||||
// @match https://f95zone.to/threads/*/
|
// @match https://f95zone.to/threads/*/
|
||||||
@ -55,7 +55,7 @@
|
|||||||
onload: function(response) {
|
onload: function(response) {
|
||||||
if (response.status === 200) {
|
if (response.status === 200) {
|
||||||
const data = JSON.parse(response.responseText);
|
const data = JSON.parse(response.responseText);
|
||||||
if (data) {
|
if (Array.isArray(data) && data.length !== 0) {
|
||||||
devBanned = true;
|
devBanned = true;
|
||||||
}
|
}
|
||||||
// Handle successful response here
|
// Handle successful response here
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user