Load robots.txt instead of favicon.ico in the iframe.
This commit is contained in:
parent
11522cc0d0
commit
cce108dff3
@ -1207,7 +1207,7 @@
|
|||||||
iframe = $.el('iframe', {
|
iframe = $.el('iframe', {
|
||||||
id: 'iframe',
|
id: 'iframe',
|
||||||
hidden: true,
|
hidden: true,
|
||||||
src: 'http://sys.4chan.org/favicon.ico'
|
src: 'http://sys.4chan.org/robots.txt'
|
||||||
});
|
});
|
||||||
$.on(iframe, 'error', function() {
|
$.on(iframe, 'error', function() {
|
||||||
return this.src = this.src;
|
return this.src = this.src;
|
||||||
@ -1216,7 +1216,7 @@
|
|||||||
if (!qr.status.ready) {
|
if (!qr.status.ready) {
|
||||||
iframe.src = 'about:blank';
|
iframe.src = 'about:blank';
|
||||||
return setTimeout((function() {
|
return setTimeout((function() {
|
||||||
return iframe.src = 'http://sys.4chan.org/favicon.ico';
|
return iframe.src = 'http://sys.4chan.org/robots.txt';
|
||||||
}), 250);
|
}), 250);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@ -3434,7 +3434,7 @@
|
|||||||
}
|
}
|
||||||
$.on(window, 'message', Main.message);
|
$.on(window, 'message', Main.message);
|
||||||
if (location.hostname === 'sys.4chan.org') {
|
if (location.hostname === 'sys.4chan.org') {
|
||||||
if (location.pathname === '/favicon.ico') {
|
if (location.pathname === '/robots.txt') {
|
||||||
qr.message.init();
|
qr.message.init();
|
||||||
} else if (/report/.test(location.search)) {
|
} else if (/report/.test(location.search)) {
|
||||||
$.ready(function() {
|
$.ready(function() {
|
||||||
|
|||||||
@ -880,13 +880,13 @@ qr =
|
|||||||
iframe = $.el 'iframe',
|
iframe = $.el 'iframe',
|
||||||
id: 'iframe'
|
id: 'iframe'
|
||||||
hidden: true
|
hidden: true
|
||||||
src: 'http://sys.4chan.org/favicon.ico'
|
src: 'http://sys.4chan.org/robots.txt'
|
||||||
$.on iframe, 'error', -> @src = @src
|
$.on iframe, 'error', -> @src = @src
|
||||||
# Greasemonkey ghetto fix
|
# Greasemonkey ghetto fix
|
||||||
loadChecking = (iframe) ->
|
loadChecking = (iframe) ->
|
||||||
unless qr.status.ready
|
unless qr.status.ready
|
||||||
iframe.src = 'about:blank'
|
iframe.src = 'about:blank'
|
||||||
setTimeout (-> iframe.src = 'http://sys.4chan.org/favicon.ico'), 250
|
setTimeout (-> iframe.src = 'http://sys.4chan.org/robots.txt'), 250
|
||||||
$.on iframe, 'load', -> unless @src is 'about:blank' then setTimeout loadChecking, 500, @
|
$.on iframe, 'load', -> unless @src is 'about:blank' then setTimeout loadChecking, 500, @
|
||||||
$.add d.body, iframe
|
$.add d.body, iframe
|
||||||
|
|
||||||
@ -2662,7 +2662,7 @@ Main =
|
|||||||
$.on window, 'message', Main.message
|
$.on window, 'message', Main.message
|
||||||
|
|
||||||
if location.hostname is 'sys.4chan.org'
|
if location.hostname is 'sys.4chan.org'
|
||||||
if location.pathname is '/favicon.ico'
|
if location.pathname is '/robots.txt'
|
||||||
qr.message.init()
|
qr.message.init()
|
||||||
else if /report/.test location.search
|
else if /report/.test location.search
|
||||||
$.ready ->
|
$.ready ->
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user