This is also redundant it seems
This commit is contained in:
parent
6bdc8e59db
commit
0adfd27112
@ -10054,7 +10054,6 @@
|
|||||||
}
|
}
|
||||||
Conf['selectedArchives'] = {};
|
Conf['selectedArchives'] = {};
|
||||||
$.get(Conf, Main.initFeatures);
|
$.get(Conf, Main.initFeatures);
|
||||||
$.on(d, '4chanMainInit', Main.initStyle);
|
|
||||||
return $.asap((function() {
|
return $.asap((function() {
|
||||||
var _ref;
|
var _ref;
|
||||||
|
|
||||||
@ -10185,7 +10184,6 @@
|
|||||||
initStyle: function() {
|
initStyle: function() {
|
||||||
var MutationObserver, mainStyleSheet, observer, setStyle, style, styleSheets, _ref;
|
var MutationObserver, mainStyleSheet, observer, setStyle, style, styleSheets, _ref;
|
||||||
|
|
||||||
$.off(d, '4chanMainInit', Main.initStyle);
|
|
||||||
if (!Main.isThisPageLegit() || $.hasClass(doc, 'fourchan-x')) {
|
if (!Main.isThisPageLegit() || $.hasClass(doc, 'fourchan-x')) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -10065,7 +10065,6 @@
|
|||||||
}
|
}
|
||||||
Conf['selectedArchives'] = {};
|
Conf['selectedArchives'] = {};
|
||||||
$.get(Conf, Main.initFeatures);
|
$.get(Conf, Main.initFeatures);
|
||||||
$.on(d, '4chanMainInit', Main.initStyle);
|
|
||||||
return $.asap((function() {
|
return $.asap((function() {
|
||||||
var _ref;
|
var _ref;
|
||||||
|
|
||||||
@ -10196,7 +10195,6 @@
|
|||||||
initStyle: function() {
|
initStyle: function() {
|
||||||
var MutationObserver, mainStyleSheet, observer, setStyle, style, styleSheets, _ref;
|
var MutationObserver, mainStyleSheet, observer, setStyle, style, styleSheets, _ref;
|
||||||
|
|
||||||
$.off(d, '4chanMainInit', Main.initStyle);
|
|
||||||
if (!Main.isThisPageLegit() || $.hasClass(doc, 'fourchan-x')) {
|
if (!Main.isThisPageLegit() || $.hasClass(doc, 'fourchan-x')) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -10046,7 +10046,6 @@
|
|||||||
}
|
}
|
||||||
Conf['selectedArchives'] = {};
|
Conf['selectedArchives'] = {};
|
||||||
$.get(Conf, Main.initFeatures);
|
$.get(Conf, Main.initFeatures);
|
||||||
$.on(d, '4chanMainInit', Main.initStyle);
|
|
||||||
return $.asap((function() {
|
return $.asap((function() {
|
||||||
var _ref;
|
var _ref;
|
||||||
|
|
||||||
@ -10177,7 +10176,6 @@
|
|||||||
initStyle: function() {
|
initStyle: function() {
|
||||||
var MutationObserver, mainStyleSheet, observer, setStyle, style, styleSheets, _ref;
|
var MutationObserver, mainStyleSheet, observer, setStyle, style, styleSheets, _ref;
|
||||||
|
|
||||||
$.off(d, '4chanMainInit', Main.initStyle);
|
|
||||||
if (!Main.isThisPageLegit() || $.hasClass(doc, 'fourchan-x')) {
|
if (!Main.isThisPageLegit() || $.hasClass(doc, 'fourchan-x')) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -18,7 +18,6 @@ Main =
|
|||||||
|
|
||||||
$.get Conf, Main.initFeatures
|
$.get Conf, Main.initFeatures
|
||||||
|
|
||||||
$.on d, '4chanMainInit', Main.initStyle
|
|
||||||
$.asap (-> d.head and $('link[rel="shortcut icon"]', d.head) or d.readyState in ['interactive', 'complete']),
|
$.asap (-> d.head and $('link[rel="shortcut icon"]', d.head) or d.readyState in ['interactive', 'complete']),
|
||||||
Main.initStyle
|
Main.initStyle
|
||||||
|
|
||||||
@ -133,7 +132,6 @@ Main =
|
|||||||
$.ready Main.initReady
|
$.ready Main.initReady
|
||||||
|
|
||||||
initStyle: ->
|
initStyle: ->
|
||||||
$.off d, '4chanMainInit', Main.initStyle
|
|
||||||
return if !Main.isThisPageLegit() or $.hasClass doc, 'fourchan-x'
|
return if !Main.isThisPageLegit() or $.hasClass doc, 'fourchan-x'
|
||||||
# disable the mobile layout
|
# disable the mobile layout
|
||||||
$('link[href*=mobile]', d.head)?.disabled = true
|
$('link[href*=mobile]', d.head)?.disabled = true
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user