aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Renard 2019-04-08 15:23:51 -0400
committerLibravatar Renard 2019-04-08 15:23:51 -0400
commitffd231adec6c75271d5cfca032f9e3680c62670d (patch)
treef4fac389771b2636542eb2b9cfd68a205ad34123
parentc2ecfed16c1d9f6c984c5e9956c0e27ebbd1725b (diff)
downloadweabot-ffd231adec6c75271d5cfca032f9e3680c62670d.tar.gz
weabot-ffd231adec6c75271d5cfca032f9e3680c62670d.tar.xz
weabot-ffd231adec6c75271d5cfca032f9e3680c62670d.zip
Shobon: Fix botón de configuración
El botón no se generaba si la extensión se deshabilitaba.
-rw-r--r--static/js/shobon.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/static/js/shobon.js b/static/js/shobon.js
index 4b56aae..b9e265c 100644
--- a/static/js/shobon.js
+++ b/static/js/shobon.js
@@ -5,9 +5,6 @@ var hide_id = new Set();
var shobon_ver = "v0.4+";
function shobon() {
- if(localStorage.getItem("shobon_on") == "false") return;
- else console.log("Running shobon " + shobon_ver);
-
boardName = document.getElementsByName("board")[0].value;
var inThread = document.getElementsByTagName("body")[0].className == "threadpage";
var newRepliesCounter = 0;
@@ -23,6 +20,9 @@ function shobon() {
box.appendChild(slnk);
}
+ if(localStorage.getItem("shobon_on") == "false") return;
+ else console.log("Running shobon " + shobon_ver);
+
if (localStorage.getItem("shobon_usefilters") != "false") {
loadFilters();
}