I like that just a little bit better.

This commit is contained in:
Zixaphir 2014-01-11 10:56:48 -07:00
parent 989f1b3c7b
commit 93c78e2d54
3 changed files with 12 additions and 12 deletions

View File

@ -11997,7 +11997,7 @@
g.BOARD = new Board(boardID);
req = null;
onload = function(e) {
var board, findStyle, mainStyleSheet, newStyleSheet, sfw, style, type, _ref;
var board, findStyle, mainStyleSheet, newStyleSheet, sfw, style;
if (e.type === 'abort') {
req.onloadend = null;
return;
@ -12037,10 +12037,10 @@
style = d.cookie.match(new RegExp("" + type + "\_style\=([^;]+)"));
return [(style ? style[1] : base), "" + type + "_style"];
};
_ref = findStyle(sfw ? [ws, 'Yotsuba B New'] : [nws, 'Yotsuba New']), style = _ref[0], type = _ref[1];
$.globalEval("var style_group = '" + type + "'");
style = findStyle(sfw ? [ws, 'Yotsuba B New'] : [nws, 'Yotsuba New']);
$.globalEval("var style_group = '" + style[1] + "'");
mainStyleSheet = $('link[title=switch]', d.head);
newStyleSheet = $("link[title='" + style + "']", d.head);
newStyleSheet = $("link[title='" + style[0] + "']", d.head);
Favicon.SFW = sfw;
Favicon.el.href = "//s.4cdn.org/image/favicon" + (sfw ? '-ws' : '') + ".ico";
$.add(d.head, Favicon.el);

View File

@ -11986,7 +11986,7 @@
g.BOARD = new Board(boardID);
req = null;
onload = function(e) {
var board, findStyle, mainStyleSheet, newStyleSheet, sfw, style, type, _ref;
var board, findStyle, mainStyleSheet, newStyleSheet, sfw, style;
if (e.type === 'abort') {
req.onloadend = null;
return;
@ -12026,10 +12026,10 @@
style = d.cookie.match(new RegExp("" + type + "\_style\=([^;]+)"));
return [(style ? style[1] : base), "" + type + "_style"];
};
_ref = findStyle(sfw ? [ws, 'Yotsuba B New'] : [nws, 'Yotsuba New']), style = _ref[0], type = _ref[1];
$.globalEval("var style_group = '" + type + "'");
style = findStyle(sfw ? [ws, 'Yotsuba B New'] : [nws, 'Yotsuba New']);
$.globalEval("var style_group = '" + style[1] + "'");
mainStyleSheet = $('link[title=switch]', d.head);
newStyleSheet = $("link[title='" + style + "']", d.head);
newStyleSheet = $("link[title='" + style[0] + "']", d.head);
Favicon.SFW = sfw;
Favicon.el.href = "//s.4cdn.org/image/favicon" + (sfw ? '-ws' : '') + ".ico";
$.add(d.head, Favicon.el);

View File

@ -140,15 +140,15 @@ Navigate =
style = d.cookie.match new RegExp "#{type}\_style\=([^;]+)"
return [(if style then style[1] else base), "#{type}_style"]
[style, type] = findStyle if sfw
style = findStyle if sfw
[ws, 'Yotsuba B New']
else
[nws, 'Yotsuba New']
$.globalEval "var style_group = '#{type}'"
$.globalEval "var style_group = '#{style[1]}'"
mainStyleSheet = $ 'link[title=switch]', d.head
newStyleSheet = $ "link[title='#{style}']", d.head
mainStyleSheet = $ 'link[title=switch]', d.head
newStyleSheet = $ "link[title='#{style[0]}']", d.head
Favicon.SFW = sfw
Favicon.el.href = "//s.4cdn.org/image/favicon#{if sfw then '-ws' else ''}.ico"