Greasy Fork is available in English.

HTPC--NZB [by SPENGLER]

Simple script to add SmackDownOnYou and KickAss direct search icons to NZB utilities

< Feedback on HTPC--NZB [by SPENGLER]

Câu hỏi/Bình luận

§
Posted: 05-03-2015
Edited: 05-03-2015

Changes

Hi,

Im running this script through chrome and tamper monkey. It doesnt seem to work for me. I have made a few amendments Still work in progress however...

snippets:
1:
}else if ( bIsSickBeard ) {
switch ( sPathName ){
case '/comingEpisodes/':
case '/comingEpisodes':
SB_comingEpisodes();
break;
case '/home/displayShow/':
case '/home/displayShow':
SB_displayShow();
break;
case '/history/':
case '/history':
SB_history();
break;
case '/manage/backlogOverview/':
case '/manage/backlogOverview':
SB_backlog();
break;
default:
break;

2:
// SickBeard
function SB_comingEpisodes(){
$("div.listing-overdue").each(function(){
sShow = $(this).find("tr").eq(0).find("a").html();
sShow = cleanShowName(sShow);
//alert(sShow);
sEpisode = "s" + $(this).find("tr").eq(2).find("span").eq(1).html().split(" - ")[0].replace("x", "e");
//alert(sEpisode);
sLink = $(this).find("a").eq(2);
sLinkSD = baseSD + sShow+" "+sEpisode + extraSD + "' target='_blank'>";
sLinkPB = basePB + sShow+" "+sEpisode + extraPB + "' target='_blank'>";
alert(basePB + sShow+" "+sEpisode + extraPB)
sLink.after( ""+sLinkSD+" "+sLinkPB+"" );
});
}


3:
function cleanShowName(sShow){
var sShow_ = sShow;
sShow_ = sShow_.replace(/'/g , ""); //sShow_.replace(/'/g , "'");
sShow_ = sShow_.replace(/( \([0-z]+\))/g , "");
sShow_ = sShow_.replace('!','');
sShow_ = sShow_.trim();
return sShow_;
}

4:
function SB_history(){
$("#historyTable > tbody > tr").each(function(){
sTitle = $(this).find("td").eq(2).find("a").eq(0).html().replace(" - ","|");


5:
// SickBeard - look for :
if ( !bIsSickBeard ) {
var aMatches = $( "img[src*='/images/sickbeard.png']" );
bIsSickBeard = aMatches.length>0;
}

6:
function SB_displayShow()

$(this).after( ""+sLinkSD+" "+sLinkPB+"" );


Coming Episodes, History and displayShow now working.... editing this page as i fix it!

SPENGLERTác giả
§
Posted: 04-09-2015

oh geez. sorry i just read this. how is your build working

Post reply

Đăng nhập để bình luận