no longer set all 4chan boards to /bant/

dotnetflags
C-xC-c 5 years ago committed by GitHub
parent af65b7fd1d
commit 5e14110b6c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -294,7 +294,6 @@ function main() {
// We get flags using different selectors, and we need to align them differently. // We get flags using different selectors, and we need to align them differently.
if (software.yotsuba) { if (software.yotsuba) {
debug('4chan'); debug('4chan');
board_id = 'bant';
getPosts('.postContainer'); 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}'); 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) { if (software.nodegucaDoushio) {
debug('Nineball'); debug('Nineball');
board_id = window.location.pathname.split('/')[1];
getPosts('section[id], article[id]'); getPosts('section[id], article[id]');
addGlobalStyle('.bantFlag {cursor: default} .bantFlag img {pointer-events: none;}'); addGlobalStyle('.bantFlag {cursor: default} .bantFlag img {pointer-events: none;}');
@ -312,12 +310,12 @@ function main() {
if (software.foolfuuka) { if (software.foolfuuka) {
debug('FoolFuuka'); debug('FoolFuuka');
board_id = 'bant';
getPosts('article[id]'); getPosts('article[id]');
addGlobalStyle('.bantFlag{top: -2px !important;left: -1px !important}'); addGlobalStyle('.bantFlag{top: -2px !important;left: -1px !important}');
} }
board_id = window.location.pathname.split('/')[1];
resolveFlags(); resolveFlags();
} }

Loading…
Cancel
Save