Add this back in
This commit is contained in:
parent
7dd6ceb31c
commit
3b18a2792a
2
LICENSE
2
LICENSE
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* 4chan X - Version 1.2.5 - 2013-05-15
|
* 4chan X - Version 1.2.5 - 2013-05-16
|
||||||
*
|
*
|
||||||
* Licensed under the MIT license.
|
* Licensed under the MIT license.
|
||||||
* https://github.com/seaweedchan/4chan-x/blob/master/LICENSE
|
* https://github.com/seaweedchan/4chan-x/blob/master/LICENSE
|
||||||
|
|||||||
@ -19,7 +19,7 @@
|
|||||||
// @icon data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAACVBMVEUAAGcAAABmzDNZt9VtAAAAAXRSTlMAQObYZgAAAHFJREFUKFOt0LENACEIBdBv4Qju4wgWanEj3D6OcIVMKaitYHEU/jwTCQj8W75kiVCSBvdQ5/AvfVHBin11BgdRq3ysBgfwBDRrj3MCIA+oAQaku/Q1cNctrAmyDl577tOThYt/Y1RBM4DgOHzM0HFTAyLukH/cmRnqAAAAAElFTkSuQmCC
|
// @icon data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAACVBMVEUAAGcAAABmzDNZt9VtAAAAAXRSTlMAQObYZgAAAHFJREFUKFOt0LENACEIBdBv4Qju4wgWanEj3D6OcIVMKaitYHEU/jwTCQj8W75kiVCSBvdQ5/AvfVHBin11BgdRq3ysBgfwBDRrj3MCIA+oAQaku/Q1cNctrAmyDl577tOThYt/Y1RBM4DgOHzM0HFTAyLukH/cmRnqAAAAAElFTkSuQmCC
|
||||||
// ==/UserScript==
|
// ==/UserScript==
|
||||||
/*
|
/*
|
||||||
* 4chan X - Version 1.2.5 - 2013-05-15
|
* 4chan X - Version 1.2.5 - 2013-05-16
|
||||||
*
|
*
|
||||||
* Licensed under the MIT license.
|
* Licensed under the MIT license.
|
||||||
* https://github.com/seaweedchan/4chan-x/blob/master/LICENSE
|
* https://github.com/seaweedchan/4chan-x/blob/master/LICENSE
|
||||||
@ -10054,6 +10054,7 @@
|
|||||||
}
|
}
|
||||||
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;
|
||||||
|
|
||||||
@ -10184,6 +10185,7 @@
|
|||||||
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;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -19,7 +19,7 @@
|
|||||||
// @icon data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAACVBMVEUAAGcAAABmzDNZt9VtAAAAAXRSTlMAQObYZgAAAHFJREFUKFOt0LENACEIBdBv4Qju4wgWanEj3D6OcIVMKaitYHEU/jwTCQj8W75kiVCSBvdQ5/AvfVHBin11BgdRq3ysBgfwBDRrj3MCIA+oAQaku/Q1cNctrAmyDl577tOThYt/Y1RBM4DgOHzM0HFTAyLukH/cmRnqAAAAAElFTkSuQmCC
|
// @icon data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAACVBMVEUAAGcAAABmzDNZt9VtAAAAAXRSTlMAQObYZgAAAHFJREFUKFOt0LENACEIBdBv4Qju4wgWanEj3D6OcIVMKaitYHEU/jwTCQj8W75kiVCSBvdQ5/AvfVHBin11BgdRq3ysBgfwBDRrj3MCIA+oAQaku/Q1cNctrAmyDl577tOThYt/Y1RBM4DgOHzM0HFTAyLukH/cmRnqAAAAAElFTkSuQmCC
|
||||||
// ==/UserScript==
|
// ==/UserScript==
|
||||||
/*
|
/*
|
||||||
* 4chan X - Version 1.2.5 - 2013-05-15
|
* 4chan X - Version 1.2.5 - 2013-05-16
|
||||||
*
|
*
|
||||||
* Licensed under the MIT license.
|
* Licensed under the MIT license.
|
||||||
* https://github.com/seaweedchan/4chan-x/blob/master/LICENSE
|
* https://github.com/seaweedchan/4chan-x/blob/master/LICENSE
|
||||||
@ -10065,6 +10065,7 @@
|
|||||||
}
|
}
|
||||||
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;
|
||||||
|
|
||||||
@ -10195,6 +10196,7 @@
|
|||||||
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;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
// Generated by CoffeeScript
|
// Generated by CoffeeScript
|
||||||
/*
|
/*
|
||||||
* 4chan X - Version 1.2.5 - 2013-05-15
|
* 4chan X - Version 1.2.5 - 2013-05-16
|
||||||
*
|
*
|
||||||
* Licensed under the MIT license.
|
* Licensed under the MIT license.
|
||||||
* https://github.com/seaweedchan/4chan-x/blob/master/LICENSE
|
* https://github.com/seaweedchan/4chan-x/blob/master/LICENSE
|
||||||
@ -10046,6 +10046,7 @@
|
|||||||
}
|
}
|
||||||
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;
|
||||||
|
|
||||||
@ -10176,6 +10177,7 @@
|
|||||||
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,6 +18,7 @@ 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
|
||||||
|
|
||||||
@ -132,6 +133,7 @@ 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