Fix SFW/NSFW themes.
This commit is contained in:
parent
41c2300263
commit
bd688515e9
@ -295,6 +295,8 @@
|
||||
embedWidth: 640,
|
||||
embedHeight: 390,
|
||||
theme: 'Yotsuba B',
|
||||
'theme_sfw': 'Yotsuba B',
|
||||
'theme_nsfw': 'Yotsuba',
|
||||
mascot: ''
|
||||
};
|
||||
|
||||
@ -12831,6 +12833,9 @@
|
||||
} else {
|
||||
g.MASCOTSTRING = "Enabled Mascots";
|
||||
}
|
||||
if (Conf["NSFW/SFW Themes"]) {
|
||||
Conf["theme"] = Conf["theme_" + g.TYPE];
|
||||
}
|
||||
switch (location.hostname) {
|
||||
case 'sys.4chan.org':
|
||||
Report.init();
|
||||
|
||||
@ -897,7 +897,9 @@ box-shadow: inset 2px 2px 2px rgba(0,0,0,0.2);
|
||||
]
|
||||
'Interval': 30
|
||||
|
||||
embedWidth: 640
|
||||
embedWidth: 640
|
||||
embedHeight: 390
|
||||
theme : 'Yotsuba B'
|
||||
theme : 'Yotsuba B'
|
||||
'theme_sfw': 'Yotsuba B'
|
||||
'theme_nsfw': 'Yotsuba'
|
||||
mascot : ''
|
||||
|
||||
@ -334,8 +334,7 @@ Main =
|
||||
if ['b', 'd', 'e', 'gif', 'h', 'hc', 'hm', 'hr', 'pol', 'r', 'r9k', 'rs', 's', 'soc', 't', 'u', 'y'].contains g.BOARD
|
||||
g.TYPE = 'nsfw'
|
||||
|
||||
|
||||
$.extend Themes, Conf["userThemes"]
|
||||
$.extend Themes, Conf["userThemes"]
|
||||
$.extend Mascots, Conf["userMascots"]
|
||||
|
||||
if Conf["NSFW/SFW Mascots"]
|
||||
@ -343,6 +342,9 @@ Main =
|
||||
else
|
||||
g.MASCOTSTRING = "Enabled Mascots"
|
||||
|
||||
if Conf["NSFW/SFW Themes"]
|
||||
Conf["theme"] = Conf["theme_#{g.TYPE}"]
|
||||
|
||||
switch location.hostname
|
||||
when 'sys.4chan.org'
|
||||
Report.init()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user