Temporarily revert "Tell Greasemonkey users to install Scriptish. I can't even get the iframes to load
correctly anymore." This reverts commit 558fa8956d40d7f9ae8a86556c2de4ffa7820b29.
This commit is contained in:
parent
558fa8956d
commit
227ad8fefb
@ -71,7 +71,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
var $, $$, DAY, Favicon, HOUR, MINUTE, Main, NAMESPACE, SECOND, Time, VERSION, anonymize, conf, config, d, engine, expandComment, expandThread, filter, flatten, g, getTitle, imgExpand, imgGif, imgHover, key, keybinds, log, message, nav, options, qr, quoteBacklink, quoteDR, quoteInline, quoteOP, quotePreview, redirect, replyHiding, reportButton, revealSpoilers, sauce, strikethroughQuotes, threadHiding, threadStats, threading, titlePost, ui, unread, updater, val, watcher,
|
var $, $$, DAY, Favicon, HOUR, MINUTE, Main, NAMESPACE, SECOND, Time, VERSION, anonymize, conf, config, d, engine, expandComment, expandThread, filter, flatten, g, getTitle, imgExpand, imgGif, imgHover, key, keybinds, log, message, nav, options, qr, quoteBacklink, quoteDR, quoteInline, quoteOP, quotePreview, redirect, replyHiding, reportButton, revealSpoilers, sauce, strikethroughQuotes, threadHiding, threadStats, threading, titlePost, ui, unread, updater, val, watcher, _base,
|
||||||
__slice = Array.prototype.slice;
|
__slice = Array.prototype.slice;
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
@ -183,13 +183,7 @@
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
try {
|
log = typeof (_base = console.log).bind === "function" ? _base.bind(console) : void 0;
|
||||||
log = console.log.bind(console);
|
|
||||||
} catch (error) {
|
|
||||||
if (location.hostname === 'boards.4chan.org' && confirm('You appear to be using Greasemonkey.\nYou need to use the superior and stable alternative Scriptish for 4chan X to function correctly.')) {
|
|
||||||
GM_openInTab('https://addons.mozilla.org/firefox/addon/scriptish/');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
conf = {};
|
conf = {};
|
||||||
|
|
||||||
@ -3467,7 +3461,7 @@
|
|||||||
if (host !== 'boards.4chan.org') {
|
if (host !== 'boards.4chan.org') {
|
||||||
message.send({
|
message.send({
|
||||||
req: 'iframeLoad',
|
req: 'iframeLoad',
|
||||||
id: host.split('.')[0]
|
id: location.hostname.split('.')[0]
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
return $.rm(script);
|
return $.rm(script);
|
||||||
|
|||||||
@ -110,11 +110,7 @@ config =
|
|||||||
|
|
||||||
# XXX Chrome can't into {log} = console
|
# XXX Chrome can't into {log} = console
|
||||||
# XXX GreaseMonkey can't into console.log.bind
|
# XXX GreaseMonkey can't into console.log.bind
|
||||||
try
|
log = console.log.bind? console
|
||||||
log = console.log.bind console
|
|
||||||
catch error
|
|
||||||
if location.hostname is 'boards.4chan.org' and confirm 'You appear to be using Greasemonkey.\nYou need to use the superior and stable alternative Scriptish for 4chan X to function correctly.'
|
|
||||||
GM_openInTab 'https://addons.mozilla.org/firefox/addon/scriptish/'
|
|
||||||
|
|
||||||
# flatten the config
|
# flatten the config
|
||||||
conf = {}
|
conf = {}
|
||||||
@ -2702,7 +2698,7 @@ message =
|
|||||||
if host is 'sys.4chan.org'
|
if host is 'sys.4chan.org'
|
||||||
message.send req: 'status', ready: true
|
message.send req: 'status', ready: true
|
||||||
if host isnt 'boards.4chan.org'
|
if host isnt 'boards.4chan.org'
|
||||||
message.send req: 'iframeLoad', id: host.split('.')[0]
|
message.send req: 'iframeLoad', id: location.hostname.split('.')[0]
|
||||||
$.rm script
|
$.rm script
|
||||||
|
|
||||||
loadControl: ->
|
loadControl: ->
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user