This commit is contained in:
Zixaphir 2013-05-03 12:03:39 -07:00
parent 56bcf92886
commit c907adcb71
4 changed files with 12 additions and 4 deletions

View File

@ -14115,8 +14115,10 @@
if (g.VIEW === 'thread') {
g.THREADID = +pathname[3];
}
if (['b', 'd', 'e', 'gif', 'h', 'hc', 'hm', 'hr', 'pol', 'r', 'r9k', 'rs', 's', 'soc', 't', 'u', 'y'].contains(g.BOARD)) {
if (['b', 'd', 'e', 'gif', 'h', 'hc', 'hm', 'hr', 'pol', 'r', 'r9k', 'rs', 's', 'soc', 't', 'u', 'y'].contains(g.BOARD.ID)) {
g.TYPE = 'nsfw';
} else {
g.TYPE = 'sfw';
}
$.extend(Themes, Conf["userThemes"]);
$.extend(Mascots, Conf["userMascots"]);

View File

@ -14134,8 +14134,10 @@
if (g.VIEW === 'thread') {
g.THREADID = +pathname[3];
}
if (['b', 'd', 'e', 'gif', 'h', 'hc', 'hm', 'hr', 'pol', 'r', 'r9k', 'rs', 's', 'soc', 't', 'u', 'y'].contains(g.BOARD)) {
if (['b', 'd', 'e', 'gif', 'h', 'hc', 'hm', 'hr', 'pol', 'r', 'r9k', 'rs', 's', 'soc', 't', 'u', 'y'].contains(g.BOARD.ID)) {
g.TYPE = 'nsfw';
} else {
g.TYPE = 'sfw';
}
$.extend(Themes, Conf["userThemes"]);
$.extend(Mascots, Conf["userMascots"]);

View File

@ -14118,8 +14118,10 @@
if (g.VIEW === 'thread') {
g.THREADID = +pathname[3];
}
if (['b', 'd', 'e', 'gif', 'h', 'hc', 'hm', 'hr', 'pol', 'r', 'r9k', 'rs', 's', 'soc', 't', 'u', 'y'].contains(g.BOARD)) {
if (['b', 'd', 'e', 'gif', 'h', 'hc', 'hm', 'hr', 'pol', 'r', 'r9k', 'rs', 's', 'soc', 't', 'u', 'y'].contains(g.BOARD.ID)) {
g.TYPE = 'nsfw';
} else {
g.TYPE = 'sfw';
}
$.extend(Themes, Conf["userThemes"]);
$.extend(Mascots, Conf["userMascots"]);

View File

@ -44,8 +44,10 @@ Main =
g.THREADID = +pathname[3]
# Check if the current board we're on is SFW or not, so we can handle options that need to know that.
if ['b', 'd', 'e', 'gif', 'h', 'hc', 'hm', 'hr', 'pol', 'r', 'r9k', 'rs', 's', 'soc', 't', 'u', 'y'].contains g.BOARD
if ['b', 'd', 'e', 'gif', 'h', 'hc', 'hm', 'hr', 'pol', 'r', 'r9k', 'rs', 's', 'soc', 't', 'u', 'y'].contains g.BOARD.ID
g.TYPE = 'nsfw'
else
g.TYPE = 'sfw'
$.extend Themes, Conf["userThemes"]
$.extend Mascots, Conf["userMascots"]