diff options
author | Choom | 2023-01-20 00:36:43 -0300 |
---|---|---|
committer | Choom | 2023-01-22 07:57:56 -0300 |
commit | 8e519f17d144165b6de31bf3ebabdab5eb13bf0d (patch) | |
tree | 10b3bd7affd037d198fc6ec54af6862cb0ce85b0 /static/js/aquiencitas.js | |
parent | 649a2e5f4fa0b13a58068772ec72605dba6624d2 (diff) | |
download | weabot-8e519f17d144165b6de31bf3ebabdab5eb13bf0d.tar.gz weabot-8e519f17d144165b6de31bf3ebabdab5eb13bf0d.tar.xz weabot-8e519f17d144165b6de31bf3ebabdab5eb13bf0d.zip |
Config para el usuario
Diffstat (limited to 'static/js/aquiencitas.js')
-rw-r--r-- | static/js/aquiencitas.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/static/js/aquiencitas.js b/static/js/aquiencitas.js index 93f5323..309df8f 100644 --- a/static/js/aquiencitas.js +++ b/static/js/aquiencitas.js @@ -141,12 +141,12 @@ function remove_quote_preview(e) { if (pst) pst.scrollIntoView(); }*/ function quotePreview() { - if (localStorage.getItem("shobon_on") == "false") { - return; + if (localStorage.hasOwnProperty("weabot")) { + weabot = JSON.parse(localStorage.getItem("weabot")); + var showprev = weabot.qpreview; + var showlink = weabot.backlink; + if (showprev == false && showlink == false) { return; } } - var showprev = localStorage.getItem("shobon_preview"); - var showlink = localStorage.getItem("shobon_backlink"); - if (showprev == "false" && showlink == "false") return; var i, q, replies, quotes; @@ -168,12 +168,12 @@ function quotePreview() { q = quotes[i]; if (q.textContent.length < 3 || !q.textContent.startsWith(">>")) continue; - if (showprev != "false") { + if (showprev != false) { q.addEventListener("mouseover", who_are_you_quoting, false); q.addEventListener("mouseout", remove_quote_preview, false); } - if (showlink != "false") { + if (showlink != false) { fill_links(q); } } |