From 5e14110b6cdc155201d8aca7f729eaad45e422f5 Mon Sep 17 00:00:00 2001 From: C-xC-c <58750933+C-xC-c@users.noreply.github.com> Date: Wed, 29 Apr 2020 14:26:43 +0000 Subject: [PATCH] no longer set all 4chan boards to /bant/ --- bantflags.user.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/bantflags.user.js b/bantflags.user.js index af70729..ad109ea 100644 --- a/bantflags.user.js +++ b/bantflags.user.js @@ -294,7 +294,6 @@ function main() { // We get flags using different selectors, and we need to align them differently. if (software.yotsuba) { debug('4chan'); - board_id = 'bant'; getPosts('.postContainer'); addGlobalStyle('.bantFlag {padding: 0px 0px 0px 5px; vertical-align:;display: inline-block; width: 16px; height: 11px; position: relative;} .flag{top: 0px;left: -1px}'); @@ -303,7 +302,6 @@ function main() { if (software.nodegucaDoushio) { debug('Nineball'); - board_id = window.location.pathname.split('/')[1]; getPosts('section[id], article[id]'); addGlobalStyle('.bantFlag {cursor: default} .bantFlag img {pointer-events: none;}'); @@ -312,12 +310,12 @@ function main() { if (software.foolfuuka) { debug('FoolFuuka'); - board_id = 'bant'; getPosts('article[id]'); addGlobalStyle('.bantFlag{top: -2px !important;left: -1px !important}'); } + board_id = window.location.pathname.split('/')[1]; resolveFlags(); } @@ -415,4 +413,4 @@ if (software.nodegucaDoushio) { } }); }).observe(document.body, { childList: true, subtree: true }); -} \ No newline at end of file +}