Add ihavenoface's 4chan Pass link
This commit is contained in:
parent
758bb20499
commit
73aaf9e27d
@ -1,6 +1,9 @@
|
||||
seaweedchan
|
||||
- Fix boards with previously deleted archives not switching to new archives
|
||||
|
||||
ihavenoface:
|
||||
- 4chan Pass link by the style selector
|
||||
|
||||
### 1.1.8 - 2013-05-01
|
||||
seaweedchan:
|
||||
- Fix QR not clearing on submit with Posting Success Notifications disabled
|
||||
|
||||
@ -9897,7 +9897,7 @@
|
||||
}
|
||||
},
|
||||
initReady: function() {
|
||||
var board, boardChild, err, errors, href, posts, thread, threadChild, threads, _i, _j, _len, _len1, _ref, _ref1;
|
||||
var board, boardChild, err, errors, href, passLink, posts, styleSelector, thread, threadChild, threads, _i, _j, _len, _len1, _ref, _ref1;
|
||||
|
||||
if (d.title === '4chan - 404 Not Found') {
|
||||
if (Conf['404 Redirect'] && g.VIEW === 'thread') {
|
||||
@ -9952,6 +9952,16 @@
|
||||
$.event('4chanXInitFinished');
|
||||
return Main.checkUpdate();
|
||||
});
|
||||
if (styleSelector = $.id('styleSelector')) {
|
||||
passLink = $.el('a', {
|
||||
textContent: '4chan Pass',
|
||||
href: 'javascript:;'
|
||||
});
|
||||
$.on(passLink, 'click', function() {
|
||||
return window.open('//sys.4chan.org/auth', 'This will steal your data.', 'left=0,top=0,width=500,height=255,toolbar=0,resizable=0');
|
||||
});
|
||||
$.before(styleSelector.previousSibling, [$.tn('['), passLink, $.tn(']\u00A0\u00A0')]);
|
||||
}
|
||||
return;
|
||||
}
|
||||
$.event('4chanXInitFinished');
|
||||
|
||||
@ -9920,7 +9920,7 @@
|
||||
}
|
||||
},
|
||||
initReady: function() {
|
||||
var board, boardChild, err, errors, href, posts, thread, threadChild, threads, _i, _j, _len, _len1, _ref, _ref1;
|
||||
var board, boardChild, err, errors, href, passLink, posts, styleSelector, thread, threadChild, threads, _i, _j, _len, _len1, _ref, _ref1;
|
||||
|
||||
if (d.title === '4chan - 404 Not Found') {
|
||||
if (Conf['404 Redirect'] && g.VIEW === 'thread') {
|
||||
@ -9975,6 +9975,16 @@
|
||||
$.event('4chanXInitFinished');
|
||||
return Main.checkUpdate();
|
||||
});
|
||||
if (styleSelector = $.id('styleSelector')) {
|
||||
passLink = $.el('a', {
|
||||
textContent: '4chan Pass',
|
||||
href: 'javascript:;'
|
||||
});
|
||||
$.on(passLink, 'click', function() {
|
||||
return window.open('//sys.4chan.org/auth', 'This will steal your data.', 'left=0,top=0,width=500,height=255,toolbar=0,resizable=0');
|
||||
});
|
||||
$.before(styleSelector.previousSibling, [$.tn('['), passLink, $.tn(']\u00A0\u00A0')]);
|
||||
}
|
||||
return;
|
||||
}
|
||||
$.event('4chanXInitFinished');
|
||||
|
||||
@ -9901,7 +9901,7 @@
|
||||
}
|
||||
},
|
||||
initReady: function() {
|
||||
var board, boardChild, err, errors, href, posts, thread, threadChild, threads, _i, _j, _len, _len1, _ref, _ref1;
|
||||
var board, boardChild, err, errors, href, passLink, posts, styleSelector, thread, threadChild, threads, _i, _j, _len, _len1, _ref, _ref1;
|
||||
|
||||
if (d.title === '4chan - 404 Not Found') {
|
||||
if (Conf['404 Redirect'] && g.VIEW === 'thread') {
|
||||
@ -9956,6 +9956,16 @@
|
||||
$.event('4chanXInitFinished');
|
||||
return Main.checkUpdate();
|
||||
});
|
||||
if (styleSelector = $.id('styleSelector')) {
|
||||
passLink = $.el('a', {
|
||||
textContent: '4chan Pass',
|
||||
href: 'javascript:;'
|
||||
});
|
||||
$.on(passLink, 'click', function() {
|
||||
return window.open('//sys.4chan.org/auth', 'This will steal your data.', 'left=0,top=0,width=500,height=255,toolbar=0,resizable=0');
|
||||
});
|
||||
$.before(styleSelector.previousSibling, [$.tn('['), passLink, $.tn(']\u00A0\u00A0')]);
|
||||
}
|
||||
return;
|
||||
}
|
||||
$.event('4chanXInitFinished');
|
||||
|
||||
@ -199,8 +199,19 @@ Main =
|
||||
$.event '4chanXInitFinished'
|
||||
Main.checkUpdate()
|
||||
|
||||
if styleSelector = $.id 'styleSelector'
|
||||
passLink = $.el 'a',
|
||||
textContent: '4chan Pass'
|
||||
href: 'javascript:;'
|
||||
$.on passLink, 'click', ->
|
||||
window.open '//sys.4chan.org/auth',
|
||||
'This will steal your data.'
|
||||
'left=0,top=0,width=500,height=255,toolbar=0,resizable=0'
|
||||
$.before styleSelector.previousSibling, [$.tn '['; passLink, $.tn ']\u00A0\u00A0']
|
||||
|
||||
return
|
||||
|
||||
|
||||
$.event '4chanXInitFinished'
|
||||
Main.checkUpdate()
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user