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