// ==UserScript==
// @name WarezBookLC - Warez Link Checker (Updated 2023)
// @description Automatically checks for dead links from various file hosting services.
// @version 3.0.13
// @license Please do not modify yourself, contact HD3D with any problems on Warezbook.org
// @author HD3D / Formally by thesilwar / Original by dkitty
// @include *warezbook.org/*
// @match *warezbook.org/*
// @include *safelinking.net*
// @match *safelinking.net*
// @include *kprotector.com*
// @match *kprotector.com*
// @grant GM_setValue
// @grant GM_getValue
// @grant GM_xmlhttpRequest
// @grant GM_addStyle
// @grant GM_registerMenuCommand
// @grant GM_getResourceText
// @grant GM_info
// @require https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js
// @require https://ajax.googleapis.com/ajax/libs/jqueryui/1.9.1/jquery-ui.min.js
// @resource jQueryUICSS https://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/smoothness/jquery-ui.css
// @homepage https://greasyfork.org/scripts/3632-warezbooklc-warez-link-checker-updated-2023
// @usoscript 153759
// @noframes
// @connect *
// @namespace https://greasyfork.org/users/3905
// @downloadURL https://update.greasyfork.org/scripts/3632/WarezBookLC%20-%20Warez%20Link%20Checker%20%28Updated%202023%29.user.js
// @updateURL https://update.greasyfork.org/scripts/3632/WarezBookLC%20-%20Warez%20Link%20Checker%20%28Updated%202023%29.meta.js
// ==/UserScript==
var $ = window.jQuery;//OR
var WarezBookLC_version = "3.0.13";
var deadLinkValues = [];
//separate alternative domains with "|" char (first name is considered being main)
var allHostNames = ["1fichier.com|dl4free.com",'1dl.net', "4bigbox.com", "4fastfile.com", "4upfiles.com|4up.me|4up.im", "adrive.com", "alfafile.net", "allmyvideos.net", "amonshare.com", "anonfile.com", "anonfiles.com",
"anysend.com", "archive.org", "axifile.com", "backin.net", "bankupload.com", "bayfiles.com", "bdupload.asia|bdupload.in", "bezvadata.cz", "bin.ge", "bittload.com", "box.com","centfile.com", "chayfile.com",
"clicknupload.org|clicknupload.co|clicknupload.cc|clicknupload.to|clicknupload.club|clicknupload.red|clicknupload.click|clicknupload.site|clicknupload.xyz|clicknupload.vip|clicknupload.online|clicknupload.download|clickndownload.org|",
"cloud-up.be", "dailyuploads.net", "daofile.com", "data.hu", "daten-hoster.de|filehosting.org","dbree.co", "dbree.org", "dbupload.co", "ddl.to|ddownload.com", "demo.ovh.eu", "depositfiles.com|dfiles.eu", "desiupload.co|desiupload.to",
"divshare.com", "divxstage.eu", "dosya.tc", "downloadani.me", "down.fast-down.com","down.mdiaload.com",
"drive.google.com", "droidbin.com", "dropapk.to|dropapk.com|drop.download", "dropbox.com", "dropjiffy.com", "duckload.in", "easybytez.com", "easyload.io", "edisk.cz", "ex-load.com", "exclusivefaile.com|exclusiveloader.com",
"exfile.ru", "expressleech.com", "fastclick.to","fastshare.cz", "fastupload.org", "fastupload.ro","fikper.com", "fboom.me|fileboom.me", "file-space.org", "file-speed.com", "file-up.org|file-upload.com|file-upload.cc",
"file-upload.net", "file.al", "file4go.com", "file4safe.com", "file4u.pl", "filebeam.com", "filebig.net", "filebonus.net|filebonus.com","filecrypt.cc", "filedais.com", "filedropper.com|filesavr.com", "filefactory.com",
"filefox.cc", "filehost.ro", "fileim.com", "filejoker.net", "filemonster.net", "filepi.com", "filepup.net", "filerio.in", "files.fm", "files.mail.ru", "filesabc.com", "fileshare.ro", "filesline.com",
"filesmonster.com", "filestore.com.ua", "filestore.to", "filesupload.org", "fileswap.com", "filetut.com", "fileup.cc", "flashx.tv", "flyfiles.net", "free.fr", "fshare.vn", "gboxes.com",
"ge.tt", "gigabase.com", "gigapeta.com", "gigasize.com","gofile.io", "google.com","gulf-up.com", "happystreams.net", "herosh.com", "hidemyass.com", "hightail.com|yousendit.com", "hostuje.net", "howfile.com", "hulkload.com",
"hyperfileshare.com", "ifolder.ru|rusfolder.com", "inclouddrive.com", "indishare.org|indishare.me", "intoupload.net|intoupload.com", "iranupload.com", "junocloud.me", "katfile.com",
"keep2share.cc|keep2share.com|k2s.cc|keep2s.cc", "kie.nu", "kiwi6.com", "koofile.com", "krakenfiles.com", "lafiles.com", "leteckaposta.cz|sharegadget.com", "letsupload.co", "limelinx.com", "limevideo.net", "linkz.ge", "load.to",
"loadpot.net", "localhostr.com|lh.rs|hostr.co", "lomafile.com", "longfiles.com", "loudupload.com", "m5zn.com", "maherfire.com", "mediafire.com", "medoupload.com", "mega-myfile.com","mega4up.org|mega4upload.com", "mega.co.nz|mega.nz",
"megafiles.se", "megaup.net", "megaupload.is", "mightyupload.com", "mixdrop.co", "mixloads.com", "moevideo.net", "mshare.xyz|mshares.net|mshare.io|mshares.co", "mystore.to", "myvdrive.com",
"narod.ru|narod.yandex.ru", "nippyshare.com", "nitroflare.com|nitroflare.net|nitro.download", "novafile.com", "nowvideo.eu", "ortofiles.com", "oxycloud.com", "ozofiles.com", "prefiles.com",
"putcker.com", "quickshare.cz", "rapidfiles.com", "rapidfileshare.net", "rapidgator.net|rg.to", "rarefile.net", "redbunker.net", "remixshare.com", "rghost.net", "rockdizfile.com", "rosharing.com",
"sdilej.cz", "secureupload.eu", "seecloud.cc","send.cm", "sendfile.su", "sendit.cloud", "sendspace.com", "share4web.com", "shared.com", "sharemods.com", "shareplace.com", "skydrive.live.com",
"solidfiles.com", "spaceforfiles.com|filespace.com", "speedshare.eu", "spicyfile.com", "storagely.com", "streamwire.net","takefile.link", "tempfiles.net", "terafiles.net", "thaicyberupload.com",
"tikfile.com", "tinyupload.com", "todayfile.com", "toofile.com", "trainbit.com", "tropicshare.com", "turbobit.pl|turbobit.net|turb.pw|turb.cc|turb.to|turboget.net", "turtleshare.com", "tusfiles.net",
"uloz.to|ulozto.cz|bagruj.cz|zachowajto.pl|ulozto.net", "ulozisko.sk", "uloziste.com", "unlimitshare.com", "up-4ever.org|upload-4ever.com|upload-4ever.net|up-4.net", "up-load.io", 'uploady.io',"up09.com", "upfile.vn", "upload.ee",
"upload2box.com", "uploadbank.com", "uploadbaz.com", "uploadbaz.me|uploadbaz.net", "uploadboy.com|uploadboy.me", "uploadbuzz.cc", "uploadc.com", "uploadcloud.pro","uploadev.org", "uploadever.com",
"upload-4ever.com", "uploadkadeh.ir", "uploadmb.com", "uploadpages.com", "uploadrive.com", "uploads.bizhat.com", "uploadto.us|ultramegabit.com", "uploadzeal.com", "uplod.io", "uplod.ir",
"uplooad.net", "upnito.sk", "uppit.com|up.ht", "uptobox.com","upstore.net|upsto.re", "userscloud.com", "usersdrive.com", "userupload.net","veehd.com", "video.tt", "videobb.com", "vidup.me", "vipshare.me", "vshare.eu", "vshare.is","wbook.ufile.io",
"wdupload.com", "webshare.cz", "weshare.me", "wikifortio.com", "wikisend.com", "wikiupload.com", "wipfiles.net", "workupload.com", "worldbytez.com", "wupfile.com", "wyslijto.pl", "xdisk.cz", "xvidstage.com",
"yourfilelink.com", "yourfiles.to", "yourfilestore.com", "yourupload.com", "youwatch.org", "zalaa.com", "zalil.ru", 'myfiles.onl',"fileupload.pw","rapidcloud.cc",'filerice.com','pixeldrain.com',
'internxt.com'];
//separate alternative domains with "|" char (first name is considered being main)
var allContainerNames = ["safelinking.net","safelinking.com",];
//separate alternative domains with "|" char (first name is considered being main)
var allObsoleteNames = ['uploadship.com','dropgalaxy.in',"uploaded.to|ul.to|uploaded.net","uploader.link","free-uploading.com","fileape.com","rapidu.net","uploadhub.io","zippyshare.com",];
var wbbCensoredHosts = ["2downloadz.com","4downfiles.co","4downfiles.org","4shared.com","adf.ly","adfoc.us","anafile.com","bit.ly","catshare.net","dailyfiles.net","digzip.com","directmirror.com","dirrectmirror.com","dl4.ru",
"embedupload.com","exoshare.com","fff.re","filebebo.com","filemaze.ws","filemirrorupload.com","fileneo.com","filesha.com","filetolink.com","filevice.com","flashmirrors.com","gamefront.com","go4up.com",
"goo.gl","hellshare.com","imxd.net","is.gd","jheberg.net","keeplinks.me","keepshare.net","kingfile.pl","letitbit.net","linkcrypt.ws","linksave.in","lix.in","maxmirror.com","megaupper.com","mirrorafile.com",
"mirrorcreator.com|mir.cr","mirrorupload.net","mtsafelinking.org","muchshare.net","multi-up.com","multiload.cz","multishare.cz","multisiteupload.com","multiup.org","multiupload.com|multiupload.nl",
"ncrypt.in","netfolder.in","q.gs","qooy.com","queenshare.com","rapidu.net","relink.us","sflk.in","share-links.biz|s2l.biz","sharebee.com","sharecash.org","shareflare.net","sharing.zone","speed-down.org",
"speedy.sh|speedyshare.com","tiny.cc","tinyurl.com","toturl.us","ufile.eu","unibytes.com","unlimit.co.il","uploadblast.com","uploadjockey.com","uploadmagnet.com","uploadmirrors.com","uploadonall.com",
"uploadseeds.com","uploadtubes.com","uploadzero.com","urlz.so","vidxden.com"];
/*var update = {
version: '',
currentTime: new Date().valueOf(),
updateUrl: 'https://dl.dropboxusercontent.com/u/144279696/warbb/update.json',
changelogSuffix: '/changelog.html',
userscriptSuffix : '/WarezBookLC.user.js',
init: function() {
var timeDiff = update.currentTime - Last_Update_Check;
if (timeDiff >= 3600000) update.check();
},
check: function() {
GM_xmlhttpRequest({
method: 'GET',
url: update.updateUrl,
onload: function(result) {
lsSetVal('general', 'Last_Update_Check', new Date().valueOf());
res = JSON.parse(result.responseText);
if (res.version.replace(/\./g,'') > WarezBookLC_version.replace(/\./g,'')) {
var updateDir = res.base_url + res.version;
update.getUpdate(updateDir, res.version);
} else if (Show_Update_Notification) sendMessage('Your version of WarezBookLC (v' + WarezBookLC_version + ') is up to date.');
}
});
},
getUpdate: function(updateDir, version) {
var changelogUrl = updateDir + update.changelogSuffix;
var userscriptUrl = updateDir + update.userscriptSuffix;
var allowedToInstall = confirm('WarezBookLC - An update is available (v' + version + ').\nThe update will be installed once you confirm.\nNote: You may have to explicitly allow the popup in order to install WarezBookLC.');
sendMessage('WarezBookLC has checked for updates and found version ' + version + '. Click here to load the changelog.');
if (allowedToInstall) {
window.open(userscriptUrl, '_blank');
}
}
};*/
String.prototype.contains = function(searchString) {
if (searchString.constructor === RegExp) {
if (searchString.test(this)) return true;
else return false;
} else if (searchString.constructor === String) {
function replaceStr(string) {
return string.replace(new RegExp(RAND_STRING, 'g'), '|');
}
searchString = searchString.replace(/\\\|/g, RAND_STRING);
var searchArray = searchString.split('|');
if (searchArray.length > 1) {
var found = false;
var i = searchArray.length;
while (i--) {
if (this.indexOf(replaceStr(searchArray[i])) > -1) {
found = true;
break;
}
}
return found;
} else {
if (this.indexOf(replaceStr(searchString)) > -1) return true;
else return false;
}
} else {
throw new TypeError('String.contains: Input is not valid, string or regular expression required, ' + searchString.constructor.name + ' given.');
}
}
var firstRun = JSON.parse(localStorage.getItem("WarezBookLC_First_Run"));
if (firstRun == null) firstRun = true;
var chromeBrowser = /chrom(e|ium)/.test(navigator.userAgent.toLowerCase());
var preferences = JSON.parse(localStorage.getItem("WarezBookLC_Preferences"));
allHostNames.sort();
allContainerNames.sort();
allObsoleteNames.sort();
var RAND_STRING = "8QyvpOSsRG3QWq";
var WBB_MODE = false;
if (window.location.host.contains('warezbook.org')) {
WBB_MODE = true;
}
var ANONYMIZE_SERVICE;
var ANONYMIZERS = [''];
var TOOLTIP_MAXWIDTH = 600; //in pixels
//global settings start
var Do_not_linkify_DL_links, Display_tooltip_info, Last_Update_Check, Allow_spaces_in_DL_links, Display_full_links_in_link_containers, Show_Update_Notification, Focus_First_Link;
var Processbox_Pos_X, Processbox_Pos_Y, Progressbox_Scaling;
var cLinksTotal = 0;
var cLinksDead = 0;
var cLinksAlive = 0;
var cLinksUnava = 0;
var cLinksUnknown = 0;
var cLinksProcessed = 0;
$('head').append('
(.+?)
/, //filefactory
/