Add sauce to /f/
This commit is contained in:
parent
f7a3044409
commit
a0049f0b7f
@ -13622,10 +13622,22 @@
|
|||||||
}
|
}
|
||||||
if (g.BOARD.ID === 'f') {
|
if (g.BOARD.ID === 'f') {
|
||||||
$.ready(function() {
|
$.ready(function() {
|
||||||
var badLink;
|
var badLink, sauceLink, swfName;
|
||||||
$.globalEval('SWFEmbed.init()');
|
$.globalEval('SWFEmbed.init()');
|
||||||
badLink = $('.navLinks');
|
if (g.VIEW === 'thread') {
|
||||||
return badLink.parentNode.removeChild(badLink);
|
sauceLink = d.createElement('a');
|
||||||
|
swfName = $('.fileText > a');
|
||||||
|
badLink = $('.navLinks');
|
||||||
|
i = 0;
|
||||||
|
while (i < 3) {
|
||||||
|
badLink.removeChild(badLink.firstChild);
|
||||||
|
i++;
|
||||||
|
}
|
||||||
|
sauceLink.textContent = 'Check Sauce on SWFCHAN';
|
||||||
|
sauceLink.href = 'http://eye.swfchan.com/search/?q=' + swfName.textContent;
|
||||||
|
badLink.appendChild(sauceLink);
|
||||||
|
return badLink.removeChild(badLink.firstChild.nextSibling);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
$.addStyle(JSColor.css(), 'jsColor');
|
$.addStyle(JSColor.css(), 'jsColor');
|
||||||
|
|||||||
@ -13623,10 +13623,22 @@
|
|||||||
}
|
}
|
||||||
if (g.BOARD.ID === 'f') {
|
if (g.BOARD.ID === 'f') {
|
||||||
$.ready(function() {
|
$.ready(function() {
|
||||||
var badLink;
|
var badLink, sauceLink, swfName;
|
||||||
$.globalEval('SWFEmbed.init()');
|
$.globalEval('SWFEmbed.init()');
|
||||||
badLink = $('.navLinks');
|
if (g.VIEW === 'thread') {
|
||||||
return badLink.parentNode.removeChild(badLink);
|
sauceLink = d.createElement('a');
|
||||||
|
swfName = $('.fileText > a');
|
||||||
|
badLink = $('.navLinks');
|
||||||
|
i = 0;
|
||||||
|
while (i < 3) {
|
||||||
|
badLink.removeChild(badLink.firstChild);
|
||||||
|
i++;
|
||||||
|
}
|
||||||
|
sauceLink.textContent = 'Check Sauce on SWFCHAN';
|
||||||
|
sauceLink.href = 'http://eye.swfchan.com/search/?q=' + swfName.textContent;
|
||||||
|
badLink.appendChild(sauceLink);
|
||||||
|
return badLink.removeChild(badLink.firstChild.nextSibling);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
$.addStyle(JSColor.css(), 'jsColor');
|
$.addStyle(JSColor.css(), 'jsColor');
|
||||||
|
|||||||
@ -25,8 +25,18 @@ Style =
|
|||||||
if g.BOARD.ID is 'f'
|
if g.BOARD.ID is 'f'
|
||||||
$.ready ->
|
$.ready ->
|
||||||
$.globalEval 'SWFEmbed.init()'
|
$.globalEval 'SWFEmbed.init()'
|
||||||
badLink = $ '.navLinks'
|
if g.VIEW is 'thread'
|
||||||
badLink.parentNode.removeChild(badLink)
|
sauceLink = d.createElement 'a'
|
||||||
|
swfName = $ '.fileText > a'
|
||||||
|
badLink = $ '.navLinks'
|
||||||
|
i = 0
|
||||||
|
while i < 3
|
||||||
|
badLink.removeChild badLink.firstChild
|
||||||
|
i++
|
||||||
|
sauceLink.textContent = 'Check Sauce on SWFCHAN'
|
||||||
|
sauceLink.href = 'http://eye.swfchan.com/search/?q=' + swfName.textContent
|
||||||
|
badLink.appendChild(sauceLink)
|
||||||
|
badLink.removeChild badLink.firstChild.nextSibling
|
||||||
|
|
||||||
# Non-customizable
|
# Non-customizable
|
||||||
$.addStyle JSColor.css(), 'jsColor'
|
$.addStyle JSColor.css(), 'jsColor'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user