From ffd231adec6c75271d5cfca032f9e3680c62670d Mon Sep 17 00:00:00 2001 From: Renard Date: Mon, 8 Apr 2019 15:23:51 -0400 Subject: Shobon: Fix botón de configuración El botón no se generaba si la extensión se deshabilitaba. --- static/js/shobon.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'static/js') 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(); } -- cgit v1.2.1-18-gbd029