mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-11 14:07:13 +03:00
@@ -512,15 +512,17 @@ function activatePrivateTextChange(element: HTMLElement) {
|
|||||||
// See if anything extra must be done
|
// See if anything extra must be done
|
||||||
switch (option) {
|
switch (option) {
|
||||||
case "userID":
|
case "userID":
|
||||||
utils.asyncRequestToServer("GET", "/api/userInfo", {
|
if (Config.config[option]) {
|
||||||
userID: Config.config[option],
|
utils.asyncRequestToServer("GET", "/api/userInfo", {
|
||||||
values: ["warnings", "banned"]
|
userID: Config.config[option],
|
||||||
}).then((result) => {
|
values: ["warnings", "banned"]
|
||||||
const userInfo = JSON.parse(result.responseText);
|
}).then((result) => {
|
||||||
if (userInfo.warnings > 0 || userInfo.banned) {
|
const userInfo = JSON.parse(result.responseText);
|
||||||
setButton.classList.add("hidden");
|
if (userInfo.warnings > 0 || userInfo.banned) {
|
||||||
}
|
setButton.classList.add("hidden");
|
||||||
});
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user