W.A.R. Links Checker Customized Premium Link Version

detects premium only links on some hosts.

当前为 2015-05-25 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name W.A.R. Links Checker Customized Premium Link Version
  3. // @description detects premium only links on some hosts.
  4. // @details this script automatically checks links from 650+ filehosts. For Firefox, Chrome, Opera, Safari.
  5. // @namespace premium version
  6. // @version 1.1.4.3
  7. // @icon http://sharenxs.com/photos/2014/02/14/52fd759db90ac/cooltext1428903746.png
  8. // @license GPL version 3 or any later version (http://www.gnu.org/copyleft/gpl.html)
  9. // @author <a href="http://www.mentalps.5gbfree.com/viewtopic.php?f=2&t=6>mental</a>
  10. // @include http://*
  11. // @include https://*
  12. // @include file:///*
  13. // @grant GM_setValue
  14. // @grant GM_getValue
  15. // @grant GM_xmlhttpRequest
  16. // @grant GM_log
  17. // @grant GM_addStyle
  18. // @grant GM_registerMenuCommand
  19. // @grant GM_getResourceText
  20. // @grant GM_info
  21. // @require https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js
  22. // @require https://ajax.googleapis.com/ajax/libs/jqueryui/1.9.1/jquery-ui.min.js
  23. // @resource jQueryUICSS https://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/smoothness/jquery-ui.css
  24. // @homepage http://www.mentalps.5gbfree.com
  25. // @namespace http://www.mentalps.5gbfree.com
  26. // @noframes
  27. // ==/UserScript==
  28.  
  29. //separate alternative domains with "|" char (first name is considered being main)
  30. var allHostNames = ["1fichier.com|dl4free.com","2shared.com","4shared.com","adrive.com","aisfile.com","hexupload.com",
  31. "bezvadata.cz","burnupload.com|burnupload.ihiphop.com","firedrive.com","usersfiles.com","pan.baidu.com","radicalshare.com",
  32. "cramit.in|cramitin.net","dataport.cz","datei.to","daten-hoster.de|filehosting.org|xtraupload.de","demo.ovh.eu","depositfiles.com","divshare.com",
  33. "easy-share.com|crocko.com","easybytez.com","edisk.cz","euroshare.eu","file-upload.net","yadi.sk","ryushare.com","wizupload.com",
  34. "fastshare.cz","filefactory.com","share.vnn.vn","yunpan.cn","gulfup.com","tropicshare.com","cloudzilla.to","inclouddrive.com",
  35. "fileflyer.com","filerio.com|filekeen.com","up.4share.vn","upfile.vn","datafilehost.com","fileband.com","worldbytez.com",
  36. "files.mail.ru","filepost.com|fp.io","filesflash.com","box.com","box.net","goldbytez.com","sdilej.cz","ex-load.com","2drive.net",
  37. "fileshare.in.ua","filesmonster.com","filestore.to","freakshare.net","hulkload.com","lumfile.com","lumfile.se","lumfile.eu","filedropper.com",
  38. "free-uploading.com","gamefront.com|filefront.com","gettyfile.ru","gigapeta.com","gigasize.com",/*"glumbo.com|glumbouploads.com",*/
  39. "hellshare.com","hellspy.com","hitfile.net","hostuje.net","freefilehosting.net","filecore.co.nz","free.fr",
  40. "hulkshare.com","hyperfileshare.com","filecloud.io|ifile.it","ifolder.ru","jumbofiles.com","uploadrocket.net","lafiles.com",
  41. "leteckaposta.cz|sharegadget.com","letitbit.net","load.to","mediafire.com","megafileupload.com","megashares.com",
  42. "movshare.net","muchshare.net","myupload.dk","narod.ru|narod.yandex.ru","netload.in","fboom.me","fileboom.me",
  43. "openfile.ru","partage-facile.com","plunder.com","putlocker.com","sharerapid.cz","exclusiveloader.com","acefile.net",
  44. "queenshare.com","quickshare.cz","rapidgator.net","daj.to","keep2share.com","oboom.com","filepi.com","neodrive.co",
  45. "rarefile.net","rayfile.com","rghost.net","sendmyway.com","clicknupload.com","sharemods.com","hostr.co",
  46. "sendspace.com","sharecash.org","share-links.biz","share-online.biz|egoshare.com","megarapid.cz",
  47. "shareflare.net","solidfiles.com","led.wf","lan.wf","adlink.wf","click.tf","kyc.pm","ssh.tf","ssh.yt","yep.pm",
  48. "stahovanizasms.cz","tufiles.ru","turbobit.net","filecloud.cc","tikfile.com","cloudsix.me",
  49. "turboupload.com","uloz.to|ulozto.cz|bagruj.cz|zachowajto.pl","ulozisko.sk","uloziste.com","unibytes.com",
  50. "upload-il.net|przeslij.net","uploaded.to|ul.to","uploading.com","chayfile.com","rockfile.eu","24uploading.com",
  51. "uploadspace.pl","upnito.sk","uptobox.com","usaupload.net","veehd.com","videobb.com",
  52. "vip-file.com","webshare.cz","xdisk.cz","yunfile.com|filemarkets.com","ziddu.com","krotix.net",
  53. "zippyshare.com", "rodfile.com", "migahost.com", "wikiupload.com", "uploadstube.de","faststore.org",
  54. "flyfiles.net", "nowdownload.eu", "prefiles.com", "axifile.com","rapidsonic.com|fileparadox.com",
  55. "hackerbox.org", "amonshare.com", "data.hu","brupload.net","userscloud.com",
  56. "netkups.com", "edoc.com","xfileload.com", "jumbofile.net","kumpulbagi.com",
  57. "uppit.com|up.ht", "ddlstorage.com", "downloadani.me", "filesabc.com",
  58. "sharebeast.com", "180upload.com", "verzend.be",
  59. "movreel.com", "4up.me", "extmatrix.com", "sendfiles.nl", "yourfilestore.com", "filebig.net",
  60. "sockshare.com", "nekaka.com", "file4safe.com", "tusfiles.net",
  61. "filemac.com", "idup.in",
  62. "fileswap.com","ozofiles.com","loudupload.net",
  63. "nosupload.com", "gboxes.com",
  64. "myvdrive.com|fileserving.com", "filesin.com", "novafile.com", "longfiles.com",
  65. "uploadhero.com", "uploadbaz.com",
  66. "stahovadlo.cz", "bitupload.com",
  67. "indowebster.com", "superload.cz", "mafiastorage.com","4upfiles.com",
  68. "ultramegabit.com",
  69. "filesmelt.com", "hellupload.com", "uploadingit.com", "stiahni.si",
  70. "sendspace.pl", "fastshare.org","uploadto.us", "filejoker.net",
  71. "filestore.com.ua",
  72. "secureupload.eu", "rapidfileshare.net", "stiahnito.sk",
  73. "rusfolder.com", "fileover.net", "catshare.net", "anonfiles.com", "mixturecloud.com",
  74. "fileparadox.in","filedais.com", "imdb.com","nitroflare.com",
  75. "akafile.com","creafile.net","hugefiles.net","vidxden.com","up.top4top.net",
  76. "upload.ee","shareplace.org","uploadc.com","remixshare.com",
  77. "exoshare.com","borncash.org","junocloud.me","keep2share.cc","k2s.cc","expressleech.com","2downloadz.com",
  78. "mightyupload.com","uncapped-downloads.com","anysend.com","datafile.com","upstore.net","upsto.re","speedy.sh",
  79. "sanshare.com","dizzcloud.com","kingfiles.net","uploadhero.co","ge.tt","filesflash.net",
  80. "salefiles.com","keep2s.cc","megairon.net",
  81. "datoid.cz","cloudstor.es","streamfile.com","eyesfile.ca","filemoney.com","uploadboy.com","speedshare.eu","google.com",
  82. "unlimitzone.com","rioupload.com","rg.to","jumbofiles.org","fshare.vn","spaceforfiles.com","up.media1fire.com","depfile.com",
  83. "go4up.com","dropbox.com","redbunker.net","divxpress.com","mega.co.nz","anafile.com","uploadable.ch",
  84. "arabloads.com","sharerepo.com","sfshare.se","files.fm","koofile.com","shared.com","vidplay.net","storagon.com",
  85.  
  86. ];
  87.  
  88. try
  89. {
  90. //iframes excluded
  91. if (window.top != window.self)
  92. {
  93. return;
  94. }
  95. //allHostNames sites excluded
  96. if (window.location.href.match("https?:\/\/(www\.)?[\w\.-]*(?:" +
  97. allHostNames.join("|").replace(/\./g, "\\.").replace(/-/g, "\\-") +
  98. ")"))
  99. {
  100. return;
  101. }
  102. }
  103. catch (e)
  104. {
  105. return;
  106. }
  107.  
  108. //separate alternative domains with "|" char (first name is considered being main)
  109. var allContainerNames = ["adf.ly","linkcrypt.ws","linksafe.me","linksave.in","linkto.net","madlink.sk","multiload.cz",
  110. "mirrorcreator.com","ncrypt.in","redi.re","relink.us","safelinking.net","theloo.katt.it","bit.ly"];
  111.  
  112. //separate alternative domains with "|" char (first name is considered being main)
  113. var allObsoleteNames = ["uloz.cz","storage.to","iskladka.cz","file-rack.com","fast-load.net","subory.sk","bigandfree.com",
  114. "fileop.com","mujsoubor.cz","sendfile.to","superfastfile.com","quickyshare.com","duckload.com","uploadstore.net","meinupload.com",
  115. "dualshare.com","2xupload.to|2xupload.de","oxedion.com","uploadline.com","dll.bz","movieshare.in","milledrive.com","quickupload.net",
  116. "safelink.in","metadivx.com","divxlink.com","uploadrack.com","teradepot.com","dataup.to","upit.to","driveway.com","eatlime.com",
  117. "a2zuploads.com","friendlyfiles.net","flyfile.us","speedyshare.com","uploadspace.eu","keepfile.com","piggyshare.com","uplly.com",
  118. "filecrown.com","6giga.com","uploadjockey.com","bluehost.to","filegu.ru","filebase.to","up-file.com","xvideos.com","ufox.com",
  119. "filebling.com","loaded.it","uploadcell.com","uploadshare.cz","mangoshare.com","filestab.com","crazyupload.com","gaiafile.com",
  120. "sharejunky.com","fileho.com","bigandfree.com","bigfile.in","bigshare.eu","dahosting.org","digisofts.net","file4save.com",
  121. "filechip.com","filescloud.com","saveqube.com","turboshare.de","z-upload.com","youshare.com","jiffyupload.com","gigeshare.com",
  122. "datenklo.net","upload.dj","loadfiles.in","upit.to","dsfileshare.com","sharesimple.net","4files.net","wooupload.com",
  123. "odsiebie.com","filenavi.com","3oof.com","meshwaar.com","maxupload.com","share.cx","atserver.eu","hotfiles.ws","esnips.com","tuxfile.com",
  124. "file2upload.net","filebling.com","turboshare.com","rarhost.com","isharehd.com","i741.com","dataup.de","fofly.com","shareonall.com",
  125. "sexuploader.com","megaupload.com|megavideo.com|megaporn.com|megarotic.com","uploadhyper.com","filespawn.com","caizzii.com",
  126. "volnyweb.cz","usershare.net","filescash.net","metahyper.com","combozip.com","x7.to","uploadbox.com","enterupload.com|flyupload.com",
  127. "filepoint.de","mystream.to","x-fs.com","shareator.com","srapid.eu","sosame.cz","filesdump.com","2-klicks.de","uploking.com",
  128. "silofiles.com","upfile.in","filehook.com","uploadking.com","uploadhere.com","kewlshare.com","rapidable.com","uploadwaste.com","filemup.com",
  129. "filesonic.com|sharingmatrix.com","fileserve.com","wupload.com", "skipfile.com", "smartuploader.com", "dualshare.com", "storeandserve.com",
  130. "mountfile.com", "transitfiles.com", "uploadstation.com", "filejungle.com", "shareshared.com", "quickyshare.com", "save.am", "petandrive.com",
  131. "file2box.com", "flyshare.cz", "yabadaba.ru", "cloudcache.cc", "yourfilehost.com", "jakfile.com", "kickload.com", "pyramidfiles.com",
  132. "refile.net", "zshare.net", "ddlani.me|ddlanime.com", "ftp2share.com", "fooget.com", "rapidhide.com", "gotupload.com", "mooload.com",
  133. "zupload.com", "mytempdir.com", "onionshare.com", "stahnu.to", "oron.com", "badongo.com","filereactor.com","filegaze.com","4bytez.com",
  134. "1hostclick.com", "anonstream.com", "batshare.com", "bitroad.net", "brontofile.com", "cloudnxt.net", "cloudnator.com|shragle.com","filesfrog.net",
  135. "coolshare.cz", "dotavi.com", "ezyfile.net", "file-bit.net", "filecosy.com", "fileduct.com|fileduct.net", "filefat.com", "filelaser.com", "filemashine.com",
  136. "fileserver.cc", "filetechnology.com", "fireuploads.net", "gigfiles.net", "holderfile.com", "ihostia.com", "k2files.com", "mojofile.com",
  137. "ovfile.com", "qshare.com", "shafiles.me", "sharefilehost.com", "shareupload.com", "stahuj.to", "ugotfile.com", "uploadboost.com","fileom.com",
  138. "vidhog.com", "xfileshare.eu", "bzlink.us", "bulletupload.com", "wizzupload.com", "bloggerarticles.com", "mojedata.sk", "sharpfile.com",
  139. "upgrand.com", "nasdilej.cz", "mediatack.cz", "share-it.to","primeupload.com","filebeer.info","baberepublic","xtu.me","sharebase.de","luckyshare.net",
  140. "filerobo.com","filevelocity.com","filezpro.com","file4sharing.com","cing.be","ufile.eu","pigsonic.com","fileupped.com","sharerun.com","filesaur.com",
  141. "rapidslnare.com","bestsharing.com","savefiles.net","file2share.biz","filecache.de","monsteruploads.eu","b9bb.com","aiotool.net","jamber.info",
  142. "megaftp.com","desiupload.net","file27.com","yastorage.com","filehost.ws","copyload.com","venusfile.com","aieshare.com","terafile.co","terafile.com",
  143. "fileza.net","filerose.com","squillion.com","fileprohost.com","bitbonus.com","warserver.cz","uload.to","sharedbit.net","megaload.it","filewinds.com",
  144. "uploadcore.com","syfiles.com","eyesfile.com","hotfile.com","superupl.com","oteupload.com","henchfile.com","filegag.com","HenchFile.com","filedefend.com",
  145. "share-rapid.com|rapids.cz|share-credit.cz|share-central.cz|share-ms.cz|share-net.cz|srapid.cz|share-rapid.cz","megabitshare.com","cloudzer.com","asfile.com",
  146. "cloudzer.net", "clz.to", "extabit.com","247upload.com","2download.de","4fastfile.com","asixfiles.com","berofile.com","bigupload.com","cepzo.com","clouds.to","cobrashare.sk",
  147. "coraldrive.net","cyberlocker.ch","czshare.com","darkport.org","dark-uploads.com","davvas.com","enigmashare.com","erofly.cz","fastsonic.net","filebox.com",
  148. "filecity.net","filedap.com","filedino.com","filedownloads.org","filefolks.com","fileking.co","filemates.com","files.to","files2k.eu","filesector.cc","bitshare.com",
  149. "filesega.com","filesend.net","filestay.com","filestrum.com","fileuplo.de","fileupup.com","forunesia.com","freeuploads.fr","uploa.dk","getthebit.com","getzilla.net",
  150. "goldfile.eu","good.com","grupload.com","hellfile.com","hipfile.com","hitfile.com","hulkfile.eu|duckfile.net","i-filez.com","ifile.ws","kupload.org","packupload.com",
  151. "lemuploads.com","limelinx.com","maxshare.pl","megarelease.org","megashare.com","minus.com","mlfat4arab.com","multishare.cz","nirafile.com","ok2upload.com","peejeshare.com",
  152. "premiuns.org","przeklej.net","qkup.net","rapidupload.sk","rockdizfile.com","rocketfile.net","share-now.net","share76.com","sharebees.com","sharefiles.co","slingfile.com",
  153. "sms4file.com", "space4file.com","tigershare.net","toucansharing.com","ubuntuone.com","unextfiles.com","upaj.pl","upfile.biz","uploadbin.net","uploadic.com","uploadinc.com",
  154. "uploading4u.eu","uploadjet.net","uploadorb.com","upthe.net", "uptorch.com","vidbox.yt","videozer.com","vreer.com","wallobit.com","zooupload.com","privatefiles.com","xerver.co",
  155. "BillionUploads.com","rapidshare.com","rapidshare.ru","4savefile.com","bayfiles.com","bayfiles.net","dodane.pl","dotsemper.com","egofiles.com","epicshare.net","fiberupload.net",
  156. "filemonkey.in","filemonster.net","filepom.com","filesbb.com","fileshareup.com","filevice.com","gigaup.fr","inafile.com","isavelink.com","loombo.com","megafiles.se",
  157. "migupload.com","mydisc.net","nitrobits.com","potload.com","redload.net","shareprofi.com","sharesuper.info","sinhro.net","speedfile.cz","speedshare.org","storage.novoro.net",
  158. "swankshare.com","swatupload.com","upafile.com","uploadmachine.com","uploadsat.com","upshared.com","usefile.com","yourfiles.to","zomgupload.com", ];
  159.  
  160. // GM_log(allHostNames.length);
  161. // GM_log(allContainerNames.length);
  162. // GM_log(allObsoleteNames.length);
  163.  
  164. var firstRun = GM_getValue("First_run", true);
  165.  
  166.  
  167. try
  168. {
  169. var thisVersion = GM_info.script.version; //not supported in Scriptish and others
  170. var last_known_version = GM_getValue("last_known_version", "");
  171. if (!last_known_version)
  172. {
  173. last_known_version = thisVersion;
  174. GM_setValue("last_known_version", last_known_version);
  175. }
  176. //var newVersion = !(thisVersion == last_known_version);
  177. var newVersion = !(a.replace(/^(\d+\.\d+\.\d+).*/,'$1') == b.replace(/^(\d+\.\d+\.\d+).*/,'$1')); //true only if one of the first three numbers differs
  178. GM_setValue("last_known_version", thisVersion);
  179. }
  180. catch (err)
  181. {
  182. var newVersion = false;
  183. }
  184.  
  185. var now = (new Date()).getTime();
  186. var last_custom_rules_nag = GM_getValue('last_custom_rules_nag', 0);
  187. if (!last_custom_rules_nag)
  188. {
  189. last_custom_rules_nag = now;
  190. GM_setValue('last_custom_rules_nag', ''+now);
  191. }
  192.  
  193.  
  194. allHostNames.sort();
  195. allContainerNames.sort();
  196. allObsoleteNames.sort();
  197.  
  198. var RAND_STRING = "8QyvpOSsRG3QWq";
  199. var DEBUG_MODE = false;
  200.  
  201. var TOOLTIP_MAXWIDTH = 600; //in pixels
  202. var TOOLTIP_THUMBWIDTH = 200;
  203. var containers_processed = false;
  204.  
  205. //settings for keyboard functions start
  206. var CHECK_ALL_LINKS_KEY = "A";
  207. var CONFIGURATION_KEY = "C";
  208. var copy_to_dead_key = "D";
  209. var toggle_autocheck_key = "W";
  210. var toggle_Enable_Anonymizer_key = "Z";
  211. var first_key_keycode = '17'; // 18=ALT 16=Shift 17=Ctrl 32=SPACE_BAR 9=TAB
  212. var first_key_keycodename = 'CTRL';
  213. var second_key_keycode = '18';
  214. var second_key_keycodename = 'ALT';
  215. var CHECK_ALL_LINKS_KEYCODE = CHECK_ALL_LINKS_KEY.charCodeAt(0);
  216. var CONFIGURATION_KEYCODE = CONFIGURATION_KEY.charCodeAt(0);
  217. var copy_to_dead_keycode = copy_to_dead_key.charCodeAt(0);
  218. var toggle_autocheck_keycode = toggle_autocheck_key.charCodeAt(0);
  219. var toggle_Enable_Anonymizer_keycode = toggle_Enable_Anonymizer_key.charCodeAt(0);
  220. //settings for keyboard functions end
  221.  
  222. //global settings start
  223. var Show_black_background_in_DL_links, Show_line_through_in_dead_links, Color_DL_links;
  224. var Live_links_color, Dead_links_color, Temp_unavailable_links_color, Premium_links_color, Ref_anonymize_service;
  225. var Do_not_linkify_DL_links, Keyboard_functions, Autocheck, Enable_Anonymizer;
  226. var Show_progress_stats, Display_tooltip_info, Icon_set;
  227. var Progress_box_pos_bottom, Progress_box_pos_right, Progress_box_opacity, Progress_box_background_color, Progress_box_item_color;
  228. var Progress_box_refresh_rate;
  229. var Obsolete_file_hosts;
  230. var Custom_rules, Custom_rules_text;
  231.  
  232. var messageBox = document.createElement('b'); // top-left message box
  233.  
  234. var cLinksTotal = 0;
  235. var cLinksDead = 0;
  236. var cLinksAlive = 0;
  237. var cLinksUnava = 0;
  238. var cLinksprem = 0;
  239. var cLinksProcessed = 0;
  240.  
  241. var intervalId; //for updateProgress()
  242.  
  243. //icon resources
  244. var PAW_ICON_GREEN = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAANCAYAAABy6+R8AAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAU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IlrZuzUJLCM2iEykRJ23S5B4XsZOpPXAW957zXM773iNkQquUgAKAAlpISx3vDXunB8kA5Zbb3hr6l032HtDc7/rQzlWWJt6yk0Japfxr4udWN3dRAMP5UI5bzi5cu5F/ya7RKqWW204BG66c6bart0ePX1iQRjP6krygZIDCv5FMce0+cELx9WMAimuPUCPY8B6AmfYXcy5PwWhGW/vpR2AKdB8bPkScIswRBxupB84Dk3EIgDh4j+CjHIImxLV18sM/Z3rOibard1A5wcg8Kn1s+IAjb2bsiAPjlNNvwYbLINOgfQ5q6yCTqBzjv7qbMgoYl6PTTerSY+Di4ANqBrSDz0z1D2nXPtHr+STPNgFcN6mLm6EjAEfPKTea0Y74V5yHmEm8/6d23aRu7M1KOf4afTMAjWa0e6lUua7JDzNEtceATGoWWHx3a7wu359EzF+tjHfPjYS6kQed2UD3AESEvwMAaQGsQMrwcN0AAAAASUVORK5CYII=';
  253.  
  254. //global settings end
  255. if (window.opera && !window.console)
  256. {
  257. window.console = {};
  258.  
  259. function fn()
  260. {
  261. opera.postError(arguments);
  262. };
  263. ['log', 'debug', 'info', 'warn', 'error', 'assert', 'dir', 'dirxml', 'group', 'groupEnd', 'time', 'timeEnd', 'count', 'trace', 'profile', 'profileEnd'].forEach(function (name)
  264. {
  265. window.console[name] = fn;
  266. });
  267. }
  268.  
  269. //displays colored text in message box
  270. function sendMessage(text, color)
  271. {
  272. var msgDiv = document.createElement('div');
  273. msgDiv.style.color = color;
  274. msgDiv.innerHTML = text;
  275. messageBox.appendChild(msgDiv);
  276. setTimeout(function(){messageBox.removeChild(msgDiv)}, 3000);
  277. }
  278.  
  279. //Optimized in v. 1.2.4.4 - the original version was terribly slow in Firefox because all text was matched against the huge regex.
  280. //Now a much simpler regex is used to find all links and those are individually matched against the huge regex.
  281. //A small change in behavior - given "somethinghotfile.com/", "hotfile.com/" won't get linkified.
  282. function linkify(totalourls)
  283. { // code from http://userscripts.org/scripts/review/2254 Linkify ting
  284. var ikkeTilladteTags;
  285. var allLinksRegex = "(?:http:\/\/.+?\\?)?(?:https?:\/\/)?"
  286. + "[0-9A-Za-z]+(?:[\\.-][0-9A-Za-z]+)*\\.[A-Za-z]+/" //instead of totalourls
  287. + "[\\w\\–\\-\\.+$!*\\/()\\[\\]\',~%?:@#&=\\\\\\—;…×Ã\\_\\u0080-\\u03FF’‘" + (Allow_spaces_in_DL_links ? "\\u0020" : "") + "]*";
  288. allLinksRegex = new RegExp(allLinksRegex, "g");
  289. var regexy = "^(?:http:\/\/.+?\\?)?(?:https?:\/\/)?(?:www\\.)?(?:" + totalourls + ")";
  290.  
  291. if (Do_not_linkify_DL_links)
  292. ikkeTilladteTags = ['a', 'head', 'script', 'style', 'title', 'option', 'iframe', 'textarea', 'span']; //tags, hvor det der stAΞ’Β¥r inden i ikke skal vAΞ’Β¦re links
  293. else
  294. ikkeTilladteTags = ['a', 'head', 'script', 'style', 'title', 'option', 'iframe', 'textarea']; //tags, hvor det der stAΞ’Β¥r inden i ikke skal vAΞ’Β¦re links
  295.  
  296. var regex = new RegExp(regexy);
  297. var textNode, muligtLink;
  298.  
  299. var path = "//text()[not(parent::" + ikkeTilladteTags.join(" or parent::") + ") and contains(.,'/')]";
  300. var textNodes = document.evaluate(path, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  301.  
  302. var i = textNodes.snapshotLength;
  303. while (i--)
  304. {
  305. textNode = textNodes.snapshotItem(i);
  306.  
  307. muligtLink = textNode.nodeValue; //all links on page
  308.  
  309. var myArray = null;
  310. var span = null;
  311. var lastLastIndex = 0;
  312. allLinksRegex.lastIndex = 0;
  313. if (/^https?:\/\/~[\w\s\~]*\//.test(muligtLink))
  314. {
  315. if (textNode.parentNode.className == "adead_link") continue;
  316. var censoredLink = muligtLink;
  317. var span = document.createElement('span');
  318. span.className = "adead_link";
  319. $(span).attr('warlc_error', "Cause of error: <b>Censored link.</b>");
  320. $(span).html(censoredLink);
  321. span.addEventListener("mouseover", displayTooltipError, false);
  322. cLinksTotal++; cLinksProcessed++; cLinksDead++;
  323. textNode.parentNode.replaceChild(span, textNode);
  324. continue;
  325. alert(censoredLink);
  326. }
  327. while (myArray = allLinksRegex.exec(muligtLink)) //find all links
  328. {
  329. if (!regex.test(myArray[0])) //this link is not recognized
  330. {
  331. //uncomment to reproduce original behavior ("somethinghotfile.com/" => "hotfile.com/" will get linkified).
  332. //it's probably undesired and it also has a huge overhead - given "xyz.com/", all possibilities will be matched against the huge regex: "xyz.com/", "yz.com/", "z.com/"
  333. //allLinksRegex.lastIndex -= (myArray[0].length - 1); //start next match at the next character, not after the link
  334. continue;
  335. }
  336. if (!span)
  337. span = document.createElement('span');
  338.  
  339. var link = myArray[0];
  340. span.appendChild(document.createTextNode(muligtLink.substring(lastLastIndex, myArray.index))); //inds?t det der kommer for dette hit
  341.  
  342. var $a = $("<a>" + link + "</a>")
  343. if (!link.match(/https?:\/\//))
  344. {
  345. link = 'http://' + link;
  346. }
  347.  
  348. $a.attr("href", link.replace(/\[\/hide:\w+\]/,""))
  349. .addClass("processing_link")
  350. .appendTo(span);
  351. lastLastIndex = allLinksRegex.lastIndex;
  352. }
  353. if (span)
  354. {
  355. span.appendChild(document.createTextNode(muligtLink.substring(lastLastIndex))); //ins?t det der kommer efter sidste hit
  356. textNode.parentNode.replaceChild(span, textNode);
  357. }
  358. }
  359. }
  360.  
  361. function add_WARLC_style()
  362. {
  363. if (!(document.getElementsByTagName('WARLC')[0]))
  364. {
  365. var meta_not_to_add_more_style = document.createElement("WARLC");
  366. meta_not_to_add_more_style.setAttribute('content', 'war_links_checker');
  367. meta_not_to_add_more_style.setAttribute('name', 'description');
  368. document.getElementsByTagName('head')[0].appendChild(meta_not_to_add_more_style);
  369. alive_link_png = "";
  370. adead_link_png = "";
  371. unava_link_png = "";
  372. prem_link_png = "";
  373. switch(Icon_set)
  374. {
  375. //no icons
  376. case 0: break;
  377. // cat paws
  378. case 1: alive_link_png = PAW_ICON_GREEN;
  379. adead_link_png = PAW_ICON_RED;
  380. unava_link_png = PAW_ICON_YELLOW;
  381. prem_link_png = PAW_ICON_PINK;
  382. break;
  383. // classic RSLC look
  384. case 2: alive_link_png = RSLC_ICON_GREEN;
  385. adead_link_png = RSLC_ICON_RED;
  386. unava_link_png = RSLC_ICON_YELLOW;
  387. prem_link_png = RSLC_ICON_PINK;
  388. break;
  389. // cat paws
  390. default:alive_link_png = PAW_ICON_GREEN;
  391. adead_link_png = PAW_ICON_RED;
  392. unava_link_png = PAW_ICON_YELLOW;
  393. prem_link_png = PAW_ICON_PINK;
  394. break;
  395. }
  396. processing_link_gif = 'data:image/gif;base64,' + // or temporary anavailable
  397. 'R0lGODlhCgAKAJEDAMzMzP9mZv8AAP///yH/C05FVFNDQVBFMi4wAwEAAAAh+QQFAAADACwAAAAACgAKAAACF5wncgaAGgJzJ647cWua4sOBFEd62VEAACH5BAUAAAMALAEAAAAIAAMAAAIKnBM2IoMDAFMQFAAh+QQFAAADACwAAAAABgAGAAACDJwHMBGofKIRItJYAAAh+QQFAAADACwAAAEAAwAIAAACChxgOBPBvpYQYxYAIfkEBQAAAwAsAAAEAAYABgAAAgoEhmPJHOGgEGwWACH5BAUAAAMALAEABwAIAAMAAAIKBIYjYhOhRHqpAAAh+QQFAAADACwEAAQABgAGAAACDJwncqi7EQYAA0p6CgAh+QQJAAADACwHAAEAAwAIAAACCpRmoxoxvQAYchQAOw%3D%3D';
  398.  
  399. var dead_color_css, live_color_css, unava_color_css, prem_color_css, black_background_css;
  400.  
  401. if (Color_DL_links)
  402. {
  403. dead_color_css = 'color:' + Dead_links_color + ' !important;';
  404. live_color_css = 'color:' + Live_links_color + ' !important;';
  405. unava_color_css = 'color:' + Temp_unavailable_links_color + ' !important;';
  406. container_color_css = 'color:' + Container_links_color + ' !important;';
  407. prem_color_css = 'color:' + Premium_links_color + ' !important;';
  408. }
  409. else
  410. {
  411. dead_color_css = live_color_css = unava_color_css = container_color_css = prem_color_css = '';
  412. }
  413.  
  414. if (Show_black_background_in_DL_links)
  415. {
  416. black_background_css = 'background-color: black !important;';
  417. }
  418. else
  419. {
  420. black_background_css = '';
  421. }
  422.  
  423. if (Show_line_through_in_dead_links)
  424. {
  425. line_through_css = 'text-decoration: line-through !important;';
  426. }
  427. else
  428. {
  429. line_through_css = '';
  430. }
  431.  
  432. GM_addStyle(".alive_link {background:transparent url(" + alive_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;" + live_color_css + black_background_css + "}");
  433. GM_addStyle(".adead_link {background:transparent url(" + adead_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;" + dead_color_css + black_background_css + line_through_css + "}");
  434. GM_addStyle(".unava_link {background:transparent url(" + unava_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;" + unava_color_css + black_background_css + "}");
  435. GM_addStyle(".processing_link {background:transparent url(" + processing_link_gif + ") no-repeat scroll 100% 50%;padding-right:15px;" + container_color_css + black_background_css + "}");
  436. GM_addStyle(".container_link {background:transparent url(" + processing_link_gif + ") no-repeat scroll 100% 50%;padding-right:15px;" + container_color_css + black_background_css + "}");
  437. GM_addStyle(".container_list {font-size:90%; list-style-type:square; padding: 0px 5% 0px; margin: 0px}");
  438. GM_addStyle(".prem_link {background:transparent url(" + prem_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;" + prem_color_css + black_background_css + "}");
  439. }
  440. }
  441.  
  442. var warlcTooltip = null;
  443. var mouseoverLink = null; //link href with mouse cursor over it
  444.  
  445. var lastX = 0;
  446. var lastY = 0;
  447.  
  448. $(document).ready(initTooltip);
  449. //inits tooltip
  450. function initTooltip()
  451. { warlcTooltip = document.createElement("div");
  452. warlcTooltip.setAttribute("style", "background: #EAEAEA; box-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);padding: 6px 6px 6px 6px; border-radius:2px; border:2px solid #6699CC; color:#000000;font-family:Verdana,sans-serif;font-size:11px;position:absolute;z-index:1000; max-width: " + TOOLTIP_MAXWIDTH + "px;");
  453. warlcTooltip.style.visibility = "hidden";
  454. document.body.appendChild(warlcTooltip);
  455. }
  456.  
  457. //"mousemove" event handler for all links
  458. function moveTooltip(event)
  459. {
  460. if ((Math.abs(lastX - event.clientX) + Math.abs(lastY - event.clientY)) < 6)
  461. { //no need to reflow if the cursor moved just a little
  462. return;
  463. }
  464. else
  465. {
  466. lastX = event.clientX;
  467. lastY = event.clientY;
  468. }
  469.  
  470. posX = event.clientX + window.pageXOffset + 10;
  471. posY = event.clientY + window.pageYOffset;
  472. var ttHeight = warlcTooltip.offsetHeight;
  473. var ttFreeSpace = window.innerHeight - event.clientY;
  474. if (ttHeight > ttFreeSpace)
  475. { //prevents tooltip from getting out of the window
  476. posY -= (ttHeight - (ttFreeSpace)) + 10;
  477. }
  478. else
  479. {
  480. posY += 7;
  481. }
  482. warlcTooltip.style.top = posY + "px";
  483. warlcTooltip.style.left = posX + "px";
  484. }
  485.  
  486. //"mouseout" event handler for all links
  487. function hideTooltip(){
  488. warlcTooltip.style.visibility = "hidden";
  489. mouseoverLink = null;
  490. }
  491.  
  492.  
  493. //"mouseover" event handler for dead links
  494. //displays tooltip error message on dead links
  495. function displayTooltipError()
  496. {
  497. mouseoverLink = this.href;
  498. this.addEventListener("mouseout", hideTooltip);
  499. this.addEventListener("mousemove", function(event) { moveTooltip(event); });
  500. warlcTooltip.innerHTML = '<b>LOADING...</b>';
  501. warlcTooltip.style.minWidth = 0;
  502. warlcTooltip.style.visibility = "visible";
  503. if (this.warlc_error) //an error message is already known and stored in warlc_error attribute
  504. {
  505. warlcTooltip.innerHTML = this.warlc_error;
  506. }
  507. else
  508. {
  509. loadErrorInfo(this);
  510. }
  511. function loadErrorInfo(link)
  512. {
  513. var href = link.href;
  514. href = href.replace(/quickshare\.cz\/.+/, "quickshare.cz/chyba");
  515. GM_xmlhttpRequest({
  516. method: 'GET',
  517. url: href.replace(Ref_anonymize_service, ""),
  518. headers: {
  519. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  520. 'Accept': 'text/xml',
  521. 'Referer': ""
  522. },
  523. onload: function(result) {
  524. var res = result.responseText;
  525. //TODO: errorRegexs -
  526. var errorRegexs = [ //generic error messages follow
  527. /(empty directory)/i,
  528. /(soubor nebyl nalezen)/i,
  529. /((?:file|page|link|folder)(?:is|not|does|has been|was| ){1,}(?:found|available|blocked|exists?|deleted|removed))/i,
  530. //server specific error messages follow
  531. /msg error" style="cursor: default">(.+?)<\/div>/, //sendspace
  532. /color:red;font\-weight:bold;border\-style:dashed;font-size:12px;border\-width:2px;><tr><td align=center>(.+?)<\/td>/, //fastshare
  533. /no_download_msg">\s*(.+?)<span/, //depositfiles
  534. /(Takový soubor neexistuje. Je možné, že byl již smazán.)/, //quickshare
  535. /file_info file_info_deleted">\s*<h1>(.+?)<\/h1>/, //filepost
  536. /<br \/>\s*<p style="color:#000">(.+?)<\/p>\s*<\/center>/, //letitbit
  537. /(?:error_div">|<\/h1><p>)<strong>(.+?)<\/strong>/, //share-rapid,quickshare
  538. /class="red">(.+?)<(?:span|br)>/, //czshare, megashares
  539. /class="wp640">\s*<h1 class="h1">(.+?)<\/h1>/, //uloz.to
  540. /not-found">\s*<p>(.+?)<\/p>/, //bayfiles
  541. /(Your file could not be found. Please check the download link.)/, //stahnu.to
  542. /error_msg">\s*(<h3>.+?<\/h3><ul>(.+?)<\/ul>)/, //edisk
  543. /id="obsah">\s*<h2>(.+?)<\/h2>/, //euroshare
  544. /error">\s*(?:<[bp]>)?\s*(.+?)<\/[bp]>/, //filesmonster, shragle, gigapeta
  545. ///center aC">\s*<h1>(.+?)<br \/>/, //uploaded.to
  546. /icon_err">\s*<h1>(.+?)<\/h1>/, //filejungle
  547. /Code: ER_NFF_\d+<\/h2>\s*(.+?)\s*<\/div>/, //netload
  548. /(File has been removed due to Copyright Claim)/, //filerio
  549. ];
  550. var errorIdx = errorRegexs.length;
  551. var error = "Cause of error: <b>unknown</b>";
  552. var errorCandidate = "";
  553. while(errorIdx--)
  554. {
  555. var errorCandidate = res.match(errorRegexs[errorIdx]);
  556. if (errorCandidate != null)
  557. {
  558. error = "Cause of error: <b>" + errorCandidate[1].replace(/&nbsp;/g," ") + "</b>";
  559. break;
  560. }
  561. }
  562. //link attributes
  563. link.warlc_error = error;
  564. if (mouseoverLink == link.href) //mouse cursor is still over the link
  565. {
  566. warlcTooltip.innerHTML = error;
  567. }
  568. }
  569. });
  570. }
  571. }
  572.  
  573. //"mouseover" event handler for alive links
  574. //displays tooltip info (file size, file name,...) on alive links
  575. function displayTooltipInfo()
  576. {
  577. mouseoverLink = this.href;
  578. //exclude direct download filehostings
  579. if (this.href.match(/(?:uloziste\.com|filemonster\.net|uploadbin\.net|loombo\.com|adrive\.com|myupload\.dk|storage\.novoro\.net|ubuntuone\.com|multi-debrid\.com\/directdl|mms\.multishare\.cz\/html\/mms_process\.php|zevera\.com\/getFiles|filesmelt\.com)/))
  580. {
  581. return;
  582. }
  583. this.addEventListener("mouseout", hideTooltip);
  584. this.addEventListener("mousemove", function(event) { moveTooltip(event); });
  585. warlcTooltip.innerHTML = '<b>LOADING...</b>';
  586. warlcTooltip.style.minWidth = 0;
  587. warlcTooltip.style.visibility = "visible";
  588. if (this.warlc_tooltipcache) //file size is already known and stored in warlc_filename and warlc_filesize attributes
  589. {
  590. warlcTooltip.innerHTML = this.warlc_tooltipcache;
  591. }
  592. else
  593. {
  594. loadInfo(this);
  595. }
  596. function loadInfo(link)
  597. {
  598. var href = link.href;
  599. GM_xmlhttpRequest({
  600. method: 'GET',
  601. url: href.replace(Ref_anonymize_service, ""),
  602. headers: {
  603. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  604. 'Accept': 'text/xml',
  605. 'Referer': ""
  606. },
  607. onload: function(result) {
  608. var res = result.responseText;
  609. var nameRegexs = [ /Filename: <b class="f_arial f_14px">(.+?)<\/b>/, //oron
  610. /(?:finfo|file[-_]?name)">\s*(.+?)<\/?(?:h1|a|div|span style|td)/, //hellshare, netload, badongo, 4fastfile
  611. /fl" title="(.+?)">/, //edisk
  612. /<title>\s*(?:Download)?\s*(.+?)\s*(?::: DataPort|\| Ulož|- Share\-Rapid|- WEBSITENAME|download Extabit|- download now for free|\| refile)/, //dataport, uloz.to, share-rapid, shragle, extabit, refile.net
  613. /<h3>Stahujete soubor: <\/h3>\s*<div class="textbox">(.+?)<\/div>/, //webshare
  614. /<h3><b><span style=color:black;>(.+?)<\/b><\/h3><br>/, //fastshare
  615. /title="download (.+?)">/, //sendspace
  616. /Stáhnout soubor: (.+?)<\/h1>/, //quickshare
  617. /fz24">Download:\s*<strong>(.+?)<\/strong>/, //crocko
  618. /\w+: <b>File Download<"(.+?)">/, //depositfiles
  619. /'file\-icon\d+ \w+'>(?:<\/span><span>)?(.+?)<\/span>/, //hitfile, turbobit
  620. /d0FileName = "(.+?)";/, //letitbit
  621. /file(?:_name|-info)" title="">\w+: <span>(.+?)<\/span>/, //vip-file, shareflare
  622. /recent-comments"><h2>(.+) &nbsp;/, //xdisk
  623. /fname" value="(.+?)">/, //syfiles, grupload,
  624. /download\-header">\s*<h2>File:<\/h2>\s*<p title="(.+?)">/, //bayfiles
  625. /description">\s*<p><b>Soubor: (.+?)<\/b>/, //bezvadata
  626. /Complete name : (.+?)<br \/>/, //bezvadata
  627. /itemprop="name">(.+?)<\/span>/, //bezvadata
  628. ];
  629. var nameIdx = nameRegexs.length;
  630. // [sizeRegexs]
  631. // / \ \?
  632. // prefix (size) postfix
  633. // / \
  634. // val quant
  635. var quantRegex = '(?:M|G|K)?i?(?:B)(?:[y|i]te?s?)?';
  636. var valRegex = '\\d+(?:[\\., ]\\d+){0,2}'; // 111([., ]222)?([., ]333)?
  637. var uniSizeRegex = valRegex + '(?:\\s*|&nbsp;)' + quantRegex;
  638. var preSizeRegex = '(?::|\\(|>|>, | - )';
  639. var postSizeRegex = '(?:\\))?';
  640. var sizeRegexs = [ preSizeRegex + "\\s*(" + uniSizeRegex + ")\\s*" + postSizeRegex,
  641. 'FileSize_master">(.+?)<\/strong>', //hellshare
  642. ];
  643. var sizeIdx = sizeRegexs.length;
  644. //
  645. //
  646. var tooltip = "File Name: <b>";
  647. var fileName = "unknown";
  648. var nameCandidate = "";
  649. while(nameIdx--)
  650. {
  651. var nameCandidate = res.match(nameRegexs[nameIdx]);
  652. if (nameCandidate != null)
  653. {
  654. fileName = nameCandidate[1].replace(/&nbsp;/g," ");
  655. break;
  656. }
  657. }
  658. tooltip += fileName + "</b><br>File Size: <b>";
  659. var fileSize = "unknown";
  660. var sizeCandidate = "";
  661. while(sizeIdx--)
  662. {
  663. sizeCandidate = res.match(new RegExp(sizeRegexs[sizeIdx], "i"));
  664. if (sizeCandidate != null)
  665. {
  666. fileSize = sizeCandidate[1].replace(/&nbsp;/g," ");
  667. if (/^\d+$/.test(fileSize) && fileSize >= 1024) //assume bytes
  668. {
  669. if(fileSize > (1<<30)) fileSize = Math.round(10 * fileSize / (1<<30)) / 10 + ' GB';
  670. else if(fileSize > (1<<20)) fileSize = Math.round(fileSize / (1<<20)) + ' MB';
  671. else fileSize = Math.round(fileSize / 1024) + ' KB';
  672. }
  673. break;
  674. }
  675. }
  676. tooltip += fileSize + "</b>";
  677. // PROTOTYPE
  678. // video thumbnails
  679. if (href.match('hellshare'))
  680. {
  681. var thumbs;
  682. thumbs = res.match(/http:\/\/static\d+\.helldata\.com\/thumbs(?:\/\d+){1,2}\/\d{1,2}"/g);
  683. if (thumbs)
  684. {
  685. tooltip += '<br>';
  686. var j = Math.min(thumbs.length, 9);
  687. for (var i = 0; i < j; i++)
  688. {
  689. tooltip += '<img src="' + thumbs[i].replace('"',"") + '" width="' + TOOLTIP_THUMBWIDTH + 'px">';
  690. }
  691. warlcTooltip.style.minWidth = TOOLTIP_MAXWIDTH;
  692. }
  693. }
  694. if (href.match('czshare'))
  695. {
  696. var thumbs;
  697. thumbs = res.match(/src="http:\/\/www(\d+)\.czshare\.com\/images_velke\/\d+\.(\d+)\.jpeg/);
  698. if (thumbs)
  699. {
  700. var thumbsServer = thumbs[1];
  701. var thumbsId = thumbs[2];
  702. tooltip += '<br>';
  703. for (var i = 1; i < 9; i++)
  704. {
  705. tooltip += '<img src="http://www' + thumbsServer + '.czshare.com/images_velke/' + i + '.' + thumbsId + '.jpeg" width="' + TOOLTIP_THUMBWIDTH + 'px">';
  706. }
  707. warlcTooltip.style.minWidth = TOOLTIP_MAXWIDTH;
  708. }
  709. }
  710. if (href.match('bezvadata'))
  711. {
  712. var thumbs;
  713. thumbs = res.match(/http:\/\/nahledy\.bezvadata\.cz\/nahledy\/\d+\/\d+\/\d+_\d+_\d+x\d+_\w.jpg/g);
  714. if (thumbs)
  715. {
  716. tooltip += '<br>';
  717. var j = Math.min(thumbs.length, 9);
  718. for (var i = 0; i < j; i++)
  719. {
  720. tooltip += '<img src="' + thumbs[i] + '" width="' + TOOLTIP_THUMBWIDTH + 'px">';
  721. }
  722. warlcTooltip.style.minWidth = TOOLTIP_MAXWIDTH;
  723. }
  724. }
  725. link.warlc_tooltipcache = tooltip;
  726. if (mouseoverLink == link.href) //mouse cursor is still over the link
  727. {
  728. warlcTooltip.innerHTML = tooltip;
  729. }
  730. }
  731. });
  732. }
  733. }
  734.  
  735. function setVariables()
  736. {
  737. if (firstRun)
  738. {
  739. GM_log('First run, applying default settings...');
  740. GM_setValue("Icon_set",1);
  741. GM_setValue("Display_tooltip_info",false);
  742. GM_setValue("Show_black_background_in_DL_links",false);
  743. GM_setValue("Show_line_through_in_dead_links",false);
  744. GM_setValue("Display_full_links_in_link_containers",false);
  745. GM_setValue("Allow_spaces_in_DL_links",false);
  746. GM_setValue("Autocheck",true);
  747. GM_setValue("Enable_Anonymizer",true);
  748. GM_setValue("Do_not_linkify_DL_links",false);
  749. GM_setValue("Show_progress_stats",true);
  750. GM_setValue("Keyboard_functions",true);
  751. GM_setValue("Obsolete_file_hosts",false);
  752. GM_setValue("Color_DL_links",true);
  753. GM_setValue("Live_links_color","Green");
  754. GM_setValue("Dead_links_color","#FF3300");
  755. GM_setValue("Temp_unavailable_links_color","#F7EF09");
  756. GM_setValue("Container_links_color","DarkKhaki");
  757. GM_setValue("Premium_links_color","DeepPink");
  758. GM_setValue("Ref_anonymize_service","http://hiderefer.com/?");
  759. GM_setValue("Custom_rules",false);
  760. GM_setValue("Custom_rules_text","");
  761. GM_setValue("First_run", false);
  762. }
  763. //hidden settings
  764. GM_setValue("Progress_box_pos_bottom", Progress_box_pos_bottom = GM_getValue("Progress_box_pos_bottom", 20));
  765. GM_setValue("Progress_box_pos_right", Progress_box_pos_right = GM_getValue("Progress_box_pos_right", 10));
  766. GM_setValue("Progress_box_opacity", Progress_box_opacity = GM_getValue("Progress_box_opacity", 85));
  767. GM_setValue("Progress_box_background_color", Progress_box_background_color = GM_getValue("Progress_box_background_color", 'DimGray'));
  768. GM_setValue("Progress_box_item_color", Progress_box_item_color = GM_getValue("Progress_box_item_color", 'DimGray'));
  769. GM_setValue("Progress_box_refresh_rate", Progress_box_refresh_rate = GM_getValue("Progress_box_refresh_rate", 2000));
  770. GM_setValue("Debug_mode", DEBUG_MODE = GM_getValue("Debug_mode", false));
  771. //hidden settings end
  772.  
  773. Icon_set = GM_getValue("Icon_set", 1); //0 - no icons, 1 - cat paws, 2 - old RSLC style
  774. Display_tooltip_info = GM_getValue("Display_tooltip_info", false);
  775. Show_black_background_in_DL_links = GM_getValue("Show_black_background_in_DL_links", false);
  776. Show_line_through_in_dead_links = GM_getValue("Show_line_through_in_dead_links", false);
  777. Display_full_links_in_link_containers = GM_getValue("Display_full_links_in_link_containers", false);
  778. Allow_spaces_in_DL_links = GM_getValue("Allow_spaces_in_DL_links", false);
  779. Autocheck = GM_getValue("Autocheck", true);
  780. Enable_Anonymizer = GM_getValue("Enable_Anonymizer", true);
  781. Do_not_linkify_DL_links = GM_getValue("Do_not_linkify_DL_links", false);
  782. Show_progress_stats = GM_getValue("Show_progress_stats", true);
  783. Keyboard_functions = GM_getValue("Keyboard_functions", true);
  784. Obsolete_file_hosts = GM_getValue("Obsolete_file_hosts", false);
  785. Color_DL_links = GM_getValue("Color_DL_links", true);
  786. Live_links_color = GM_getValue("Live_links_color", "Green");
  787. Dead_links_color = GM_getValue("Dead_links_color", "#FF3300");
  788. Temp_unavailable_links_color = GM_getValue("Temp_unavailable_links_color", "#F7EF09");
  789. Container_links_color = GM_getValue("Container_links_color", "DarkKhaki");
  790. Premium_links_color = GM_getValue("Premium_links_color", "DeepPink");
  791. Ref_anonymize_service = GM_getValue("Ref_anonymize_service", "http://hiderefer.com/?");
  792. Custom_rules = GM_getValue("Custom_rules", false);
  793. Custom_rules_text = GM_getValue("Custom_rules_text", false);
  794. }
  795.  
  796.  
  797. // Delinkifies the links
  798. // params:
  799. // links -> list of links or link components (note they should be sufficiently unique to identify the link on page,
  800. // e.g. 'uloz.to/xs68skxl8')
  801. function delinkifySnapshot(snapshot)
  802. {
  803. var n = snapshot.snapshotLength;
  804.  
  805. while (n--)
  806. {
  807. thisLink = snapshot.snapshotItem(n);
  808.  
  809. var spanElm = document.createElement("span");
  810. spanElm.className = thisLink.className;
  811. spanElm.innerHTML = thisLink.innerHTML;
  812.  
  813. if (Display_tooltip_info)
  814. {
  815. spanElm.href = thisLink.href;
  816. switch (thisLink.className){
  817. case "alive_link": spanElm.addEventListener("mouseover", displayTooltipInfo, false); break
  818. case "adead_link": spanElm.addEventListener("mouseover", displayTooltipError, false); break;
  819. case "unava_link": //reserved
  820. default:
  821. }
  822. }
  823. thisLink.parentNode.replaceChild(spanElm, thisLink);
  824. }
  825. }
  826.  
  827. function processContainers()
  828. {
  829. var redirectorTypes = { "HTTP_302": 0,
  830. "INNER_LINK": 1,
  831. "THELOO_KATT_IT": 2,
  832. "CING_BE": 3,
  833. "ADF_LY": 4};
  834. var cMultiloadTotal = 0;
  835. var cMultiloadProcessed = 0;
  836.  
  837. var cMirrorcreatorComTotal = 0;
  838. var cMirrorcreatorComProcessed = 0;
  839.  
  840. var hostRestrictionRegex = "";
  841. var multiloadComRestriction = "";
  842. var multiloadComRestrictionRegex;
  843.  
  844. //
  845. //HANDLING REDIRECTORS START
  846. //
  847.  
  848. var redirectors = new Array();
  849. initRedirectors();
  850.  
  851. var redirectorsCount = redirectors.length;
  852.  
  853. if (redirectorsCount > 0)
  854. {
  855. var allRedirectorsRegex = "";
  856.  
  857. //linkify redirector links
  858. for(var redirIdx = 0; redirIdx < redirectorsCount; redirIdx++)
  859. {
  860. allRedirectorsRegex += redirectors[redirIdx].linkRegex + "|";
  861. }
  862. allRedirectorsRegex = allRedirectorsRegex.replace(/\|$/, "");
  863. linkify(allRedirectorsRegex);
  864. //
  865. //process redirector links
  866. for(var redirIdx = 0; redirIdx < redirectorsCount; redirIdx++)
  867. {
  868. var redirectorsSnapshot = document.evaluate(redirectors[redirIdx].xpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  869. redirectors[redirIdx].cTotal = redirectorsSnapshot.snapshotLength;
  870.  
  871. cLinksTotal += redirectors[redirIdx].cTotal;
  872. var linkIdx = redirectors[redirIdx].cTotal;
  873.  
  874. while(linkIdx--)
  875. {
  876. switch(redirectors[redirIdx].type)
  877. {
  878. case redirectorTypes.HTTP_302: processRedirectorLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  879. case redirectorTypes.INNER_LINK: processRedirectorLinkEx(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  880. case redirectorTypes.THELOO_KATT_IT: processThelooKattItLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  881. case redirectorTypes.CING_BE: processCingBeLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  882. case redirectorTypes.ADF_LY: processAdfLyLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  883. default:
  884. }
  885. }
  886. }
  887. //
  888. }
  889.  
  890. //HTTP_302
  891. function processRedirectorLink(link, redirectorId)
  892. {
  893. link.className = 'container_link';
  894.  
  895. GM_xmlhttpRequest({
  896. method: 'HEAD',
  897. url: link.href,
  898. headers: {
  899. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  900. 'Accept': 'text/xml',
  901. 'Referer': ""
  902. },
  903. onload: function(result) {
  904. if (result.finalUrl.replace("https", "http") == link.href) // service hasn't redirected anywhere
  905. {
  906. processRedirectorLink(link, redirectorId);
  907. }
  908. else
  909. {
  910. redirectors[redirectorId].cProcessed++;
  911. link.href = result.finalUrl;
  912. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  913. checkLinks('container_link');
  914. }
  915. },
  916. onerror: function(result) { //probably caused by unresponsive filehosting
  917. redirectors[redirectorId].cProcessed++;
  918. link.className = 'unava_link';
  919. cLinksProcessed++;
  920. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  921. checkLinks('container_link');
  922. }
  923. });
  924. }
  925. //INNER_LINK
  926. function processRedirectorLinkEx(link, redirectorId)
  927. {
  928. link.className = 'container_link';
  929. GM_xmlhttpRequest({
  930. method: 'GET',
  931. url: link.href,
  932. headers: {
  933. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  934. 'Accept': 'text/xml',
  935. 'Referer': ""
  936. },
  937. onload: function(result) {
  938. link.href = result.responseText.match(redirectors[redirectorId].innerLinkRegex)[1];
  939. redirectors[redirectorId].cProcessed++;
  940. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  941. checkLinks('container_link');
  942. }
  943. });
  944. }
  945. //theloo.katt.it (wrapped safelinking.net)
  946. function processThelooKattItLink(link, redirectorId)
  947. {
  948. link.className = 'container_link';
  949. GM_xmlhttpRequest({
  950. method: 'GET',
  951. url: link.href,
  952. headers: {
  953. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  954. 'Accept': 'text/xml',
  955. 'Referer': ""
  956. },
  957. onload: function(result) {
  958. link.href = result.responseText.match(redirectors[redirectorId].innerLinkRegex)[1];
  959. redirectors[redirectorId].cProcessed++;
  960. //the inner links are safelinking.net links, so lets proceed with it
  961. if (GM_getValue("Check_safelinking_dot_net_links", false))
  962. {
  963. processRedirectorLink(link, 0);
  964. }
  965. }
  966. });
  967. }
  968. //adf.ly (adf.ly/go innerLink, locking mechanism)
  969. function processAdfLyLink(link, redirectorId)
  970. {
  971. link.className = 'container_link';
  972. GM_xmlhttpRequest({
  973. method: 'GET',
  974. url: link.href,
  975. headers: {
  976. 'User-agent': 'Mozilla/4.0',
  977. 'Accept': 'text/xml',
  978. 'Referer': ""
  979. },
  980. onload: function(result) {
  981. if (result.finalUrl.match('/locked/'))
  982. {
  983. var delay = result.responseText.match(/countdown">(\d+)</)[1];
  984. // GM_log(result.finalUrl + 'is locked. Repeating the request in ' + delay + 's.');
  985. // setTimeout(function(){processAdfLyLink(link, redirectorId);}, delay * 1000);
  986. }
  987. else
  988. {
  989. // GM_log('Processing... ' + link.href);
  990. // GM_log('Found...' + result.responseText.match(/\/go\/(\w+\/\w+)/)[1]);
  991. var directLink = 'http://adf.ly' + result.responseText.match(/(\/go\/\w+\/\w+)/)[1];
  992. var logToken = result.responseText.match(/flashy_(\w+)/)[1];
  993. var users = result.responseText.match(/user=\d+&user2=\d+/);
  994. //confirm advert
  995. GM_xmlhttpRequest(
  996. {
  997. method: 'POST',
  998. url: 'http://adf.ly/l.php',
  999. headers: {
  1000. 'User-agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20100101 Firefox/13.0',
  1001. 'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
  1002. 'Referer': link.href
  1003. },
  1004. data: users + '&lt=' + logToken,
  1005. onload: function(result) {
  1006. //retrieve final url from .../go/... link
  1007. GM_xmlhttpRequest({
  1008. method: 'GET',
  1009. url: directLink,
  1010. headers: {
  1011. 'User-agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20100101 Firefox/13.0',
  1012. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  1013. 'Referer': link.href
  1014. },
  1015. onload: function(result) {
  1016. link.href = result.finalUrl;
  1017. redirectors[redirectorId].cProcessed++;
  1018. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  1019. checkLinks('container_link');
  1020. }
  1021. });
  1022. }
  1023. });
  1024. }
  1025. // try
  1026. // {
  1027. // GM_log('Processing... ' + link.href);
  1028. // GM_log('Found...' + result.responseText.match(/\/go\/(\w+\/\w+)/));
  1029. // link.href += 'http://adf.ly/go/' + result.responseText.match(/\/go\/(\w+\/\w+)/)[2];
  1030. // GM_xmlhttpRequest({
  1031. // method: 'POST',
  1032. // url: link.href,
  1033. // headers: {
  1034. // 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1035. // 'Accept': 'text/xml',
  1036. // 'Referer': ""
  1037. // },
  1038. // onload: function(result) {
  1039. // link.href = result.finalUrl;
  1040. // redirectors[redirectorId].cProcessed++;
  1041. // if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  1042. // checkLinks('container_link');
  1043. // }
  1044. // });
  1045. // }
  1046. // catch(e)
  1047. // {
  1048. // GM_log(link.href + " is LOCKED");
  1049. // the link is locked, repeat the request later
  1050. // setTimeout(function(){processAdfLyLink(link, redirectorId);}, 15000);
  1051. // }
  1052. }
  1053. });
  1054. function proceedOK()
  1055. {
  1056. }
  1057. }
  1058. //MULTILOAD.CZ START
  1059. if (GM_getValue("Check_multiload_dot_cz_links", false))
  1060. {
  1061. var mlRegex = 'multiload\\.cz\/stahnout\/\\d+\/';
  1062. var mlXpath = "//a[contains(@href,'http://www.multiload.cz/stahnout')]";
  1063.  
  1064. hostRestrictionRegex = 'Upload se nezdařil|limit exceeded|probíhá reupload|';
  1065.  
  1066. if (GM_getValue("Check_hellshare_dot_com_links", false))
  1067. hostRestrictionRegex += 'hellshare|';
  1068. if (GM_getValue("Check_share_dash_rapid_dot_com_links", false))
  1069. hostRestrictionRegex += 'share-rapid\\.com|';
  1070. if (GM_getValue("Check_quickshare_dot_cz_links", false))
  1071. hostRestrictionRegex += 'quickshare\\.cz|';
  1072. if (GM_getValue("Check_czshare_dot_com_links", false))
  1073. hostRestrictionRegex += 'czshare\\.com|';
  1074. if (GM_getValue("Check_uloz_dot_to_links", false))
  1075. hostRestrictionRegex += 'uloz\\.to|';
  1076. if (GM_getValue("Check_hellspy_dot_com_links", false))
  1077. hostRestrictionRegex += 'hellspy|';
  1078. if (GM_getValue("Check_multishare_dot_cz_links", false))
  1079. hostRestrictionRegex += 'multishare\\.cz|';
  1080.  
  1081. hostRestrictionRegex = hostRestrictionRegex.replace(/\|$/, "");
  1082.  
  1083. linkify(mlRegex);
  1084.  
  1085. var mlSnapshot = document.evaluate(mlXpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  1086. var mlCount = mlSnapshot.snapshotLength;
  1087.  
  1088. if (mlCount > 0)
  1089. {
  1090. cMultiloadTotal += mlCount;
  1091.  
  1092. mlIdx = mlCount - 1;
  1093. do
  1094. {
  1095. processMultiloadLink(mlSnapshot.snapshotItem(mlIdx));
  1096. }
  1097. while(mlIdx--)
  1098. }
  1099. }
  1100. //MULTILOAD.CZ END
  1101.  
  1102.  
  1103.  
  1104. function processMultiloadLink(mlLink)
  1105. {
  1106. GM_xmlhttpRequest({
  1107. method: 'GET',
  1108. url: mlLink.href,
  1109. headers: {
  1110. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1111. 'Accept': 'text/xml',
  1112. 'Referer': ""
  1113. },
  1114. onload: function(result) {
  1115. var res = result.responseText;
  1116.  
  1117. var innerBlockRegex = /<p class="manager-linky">(?:.|\s)+?<\/p>/g;
  1118. var innerLinksRegex = /(?:Upload se nezdařil \((?:chyba serveru|chybné přihlašovací údaje)\)\. <|>https?:\/\/(?:.|\s)+?<|Právě probíhá reupload, buďte trpěliví\.\.\.<)/g;
  1119. var innerLinkRegex = /((?:Upload se nezdařil.+|https?:\/\/(?:.|\s)+|Právě probíhá reupload, buďte trpěliví\.\.\.))</;
  1120. var mlRestrictionRegex = new RegExp(hostRestrictionRegex,"g"); //what links should be displayed
  1121.  
  1122. var blocks; // blocks of links
  1123. var blockIdx;
  1124.  
  1125. mlLink.className = '';
  1126.  
  1127. if (result.status == 503) //service temporarily unavailable, repeat request in one second
  1128. {
  1129. setTimeout(function(){ processMultiloadLink(mlLink); }, 1000);
  1130. return;
  1131. }
  1132.  
  1133. blocks = res.match(innerBlockRegex);
  1134.  
  1135. if (blocks == null) //no links found, cancel further processing
  1136. {
  1137. mlLink.parentNode.appendChild(document.createTextNode(' | Požadovaný soubor neexistuje.'));
  1138. cMultiloadProcessed++;
  1139. if (cMultiloadTotal <= cMultiloadProcessed)
  1140. {
  1141. startBulkCheck('container_link');
  1142. start('container_link');
  1143. }
  1144. return;
  1145. }
  1146.  
  1147. blockIdx = blocks.length;
  1148.  
  1149. if (Display_full_links_in_link_containers)
  1150. {
  1151. var ulElm = document.createElement('ul');
  1152. ulElm.className = 'container_list'; //CSS smaller font, padding, margin, square style
  1153.  
  1154. while(blockIdx--)
  1155. {
  1156. if (blocks[blockIdx].match(mlRestrictionRegex) == null)
  1157. {
  1158. continue;
  1159. }
  1160.  
  1161. var innerLinks = blocks[blockIdx].match(innerLinksRegex);
  1162.  
  1163. var linkIdx = innerLinks.length;
  1164. while (linkIdx--)
  1165. {
  1166. var innerLink = innerLinks[linkIdx].match(innerLinkRegex)[1];
  1167.  
  1168. var liElm = document.createElement('li');
  1169.  
  1170. if (innerLink.match(/Upload se nezdařil|limit exceeded|probíhá reupload/))
  1171. {
  1172. liElm.appendChild(document.createTextNode(innerLink));
  1173. }
  1174. else
  1175. {
  1176. var aElm = document.createElement('a');
  1177. aElm.innerHTML = innerLink;
  1178. aElm.href = innerLink;
  1179. aElm.className = 'container_link';
  1180.  
  1181. liElm.appendChild(aElm);
  1182. }
  1183.  
  1184. ulElm.appendChild(liElm);
  1185. cLinksTotal++;
  1186. }
  1187. }
  1188.  
  1189. mlLink.parentNode.appendChild(ulElm);
  1190. }
  1191. else //compact view
  1192. {
  1193. mlLink.parentNode.appendChild(document.createTextNode("|"));
  1194.  
  1195. while(blockIdx--)
  1196. {
  1197. if (blocks[blockIdx].match(mlRestrictionRegex) == null)
  1198. {
  1199. continue;
  1200. }
  1201.  
  1202. var innerLinks = blocks[blockIdx].match(innerLinksRegex);
  1203.  
  1204. var linkIdx = innerLinks.length;
  1205. while (linkIdx--)
  1206. {
  1207. var innerLink = innerLinks[linkIdx].match(innerLinkRegex)[1];
  1208.  
  1209. if (innerLink.match(/Upload se nezdařil|limit exceeded|probíhá reupload/))
  1210. {
  1211. mlLink.parentNode.appendChild(document.createTextNode("----"));
  1212. }
  1213. else
  1214. {
  1215. var aElm = document.createElement('a');
  1216.  
  1217. var hostName = innerLink.match(/quickshare|hellshare|uloz\.to|multishare|hellspy|share\-rapid|czshare/);
  1218.  
  1219. //abbreviate host name
  1220. switch(hostName + ""){
  1221.  
  1222. case 'quickshare': aElm.innerHTML = 'QS'; break;
  1223. case 'hellshare': aElm.innerHTML = 'HS'; break;
  1224. case 'uloz.to': aElm.innerHTML = 'UT'; break;
  1225. case 'multishare': aElm.innerHTML = 'MS'; break;
  1226. case 'hellspy': aElm.innerHTML = 'hs'; break;
  1227. case 'share-rapid': aElm.innerHTML = 'SR'; break;
  1228. case 'czshare': aElm.innerHTML = 'CS'; break;
  1229. default: aElm.innerHTML = 'xx';
  1230.  
  1231. }
  1232.  
  1233. aElm.href = innerLink;
  1234. aElm.className = 'container_link';
  1235.  
  1236. mlLink.parentNode.appendChild(aElm);
  1237. cLinksTotal++;
  1238. }
  1239. }
  1240.  
  1241. mlLink.parentNode.appendChild(document.createTextNode("|")); //blocks delimiter
  1242.  
  1243. }
  1244. }
  1245.  
  1246. cMultiloadProcessed++;
  1247. if (cMultiloadTotal == cMultiloadProcessed) //start check when all ml links have been processed
  1248. {
  1249. if (Do_not_linkify_DL_links)
  1250. {
  1251. delinkifySnapshot(mlSnapshot);
  1252. }
  1253. startBulkCheck('container_link');
  1254. start('container_link');
  1255. }
  1256. }
  1257. });
  1258. }
  1259.  
  1260.  
  1261. if (GM_getValue("Check_mirrorcreator_dot_com_links", false))
  1262. {
  1263. var mcRegex = 'mirrorcreator\\.com/files/(\\w+)';
  1264. var mcXpath = "//a[contains(@href,'mirrorcreator.com/files')]";
  1265. var mcShortHostNames =
  1266. '?? RS MU ES DF Zs FF ?? SS ?? Ba NL LT MF MS ZS UL 2S ZI HF ST UP GF ?? UB Fr IF fs X7 UG ?? TB FS EB LB EU ?? OR ?? ?? DL EY ?? FK FH US BS WU FP PL FJ CR JF SM Ms Ff GU';
  1267. // 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
  1268. //?????? depositfiles sendspace load.to ul.to storage.to uploadbox x7.to fileserve ?????? duckload filehook filepost jumbofiles glumbouploads
  1269. // zshare ?????? 2shared uploading ugotfile extabit oron eyvx uploadstation putlocker
  1270. // megaupload badongo megashare gamefront ifile ?????? letitbit ?????? ?????? filejungle megashares
  1271. // easy-share ?????? netload zippyshare ?????? filesonic turbobit enterupload ?????? filekeen wupload crocko fileflyer
  1272.  
  1273. linkify(mcRegex);
  1274.  
  1275. var mcSnapshot = document.evaluate(mcXpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  1276. var mcCount = mcSnapshot.snapshotLength;
  1277.  
  1278. cMirrorcreatorComTotal = mcCount;
  1279.  
  1280. if (mcCount > 0)
  1281. {
  1282. mcShortHostNames = mcShortHostNames.split(' ');
  1283. mcIdx = mcCount;
  1284. while(mcIdx--)
  1285. processMirrorcreatorLink(mcSnapshot.snapshotItem(mcIdx));
  1286. }
  1287.  
  1288. }
  1289. //MIRRORCREATOR.CZ END
  1290.  
  1291.  
  1292. //mirrorcreator.com checking works like this:
  1293. //The base URL is http://www.mirrorcreator.com/files/XXXXXXXX/filename_links
  1294. //the actual list of mirrors is at http://www.mirrorcreator.com/status.php?uid=XXXXXXXX
  1295. //the list contains links in the form of (http://www.mirrorcreator.com)/redirect/XXXXXXXX/1
  1296. //these redirector links are extracted with mcLinkBlockRegex and the pages loaded
  1297. //they contain the actual filehost links, which are extracted with mcHostRegex and displayed in a container list
  1298. function processMirrorcreatorLink(mcLink)
  1299. {
  1300. var mcURL = mcLink.href.match(mcRegex);
  1301. if(!mcURL || !mcURL[1]) return;
  1302. mcURL = 'http://www.mirrorcreator.com/status.php?uid=' + mcURL[1]; //link correction
  1303. GM_xmlhttpRequest({
  1304. method: 'GET',
  1305. url: mcURL,
  1306. headers: {
  1307. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1308. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*'+'/*;q=0.8',
  1309. 'Referer': ""
  1310. },
  1311. onload: function(mcLinkResult) {
  1312. var mcLinkRes = mcLinkResult.responseText;
  1313.  
  1314. var mcLinkBlockRegex = /(\/redirect\/\w+\/(\d+))/gi;
  1315. var mcHostRegex = /<div id="redirectlink">.*?<a href="([^"]+)"/;
  1316.  
  1317. var mcRedirectors;
  1318. var mcHostURLs = [], mcRedirectorIDs = [], mcHostsFound = 0, mcHostsRetrieved = 0, mcHostsToProcess = 0;
  1319. var m = mcLinkRes.match(mcLinkBlockRegex);
  1320. if (m)
  1321. mcHostsFound = m.length;
  1322. else
  1323. { //no files inside container
  1324. processMirrorcreatorFoundHosts(mcLink, []);
  1325. return;
  1326. }
  1327.  
  1328. var mcRedirectorURL, idx, timedOut = false;
  1329.  
  1330. var gmxhrFunc = function(mcRedirectorURL){ //Tampermonkey doesn't know neither this.url or result.finalUrl
  1331. GM_xmlhttpRequest({
  1332. method: 'GET',
  1333. url: mcRedirectorURL,
  1334. headers: {
  1335. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1336. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*'+'/*;q=0.8',
  1337. 'Referer': ""
  1338. },
  1339. onload: function(mcHostResult) {
  1340. if (timedOut) return; //too late, the list is already displayed
  1341. var mcHostRes = mcHostResult.responseText;
  1342. var mcHost = mcHostRes.match(mcHostRegex);
  1343. idx = mcHostURLs.indexOf(mcRedirectorURL);
  1344. if (mcHost && idx!=-1)
  1345. {
  1346. mcHostURLs[idx] = mcHost[1].replace(/^\s+|\s+$/g, '');
  1347. mcHostsRetrieved++;
  1348. mcHostsToProcess++;
  1349. if (mcHostsFound == mcHostsRetrieved) //this is the last one!
  1350. {
  1351. processMirrorcreatorFoundHosts(mcLink, mcHostURLs, mcRedirectorIDs);
  1352. mcHostsToProcess = 0;
  1353. }
  1354. }
  1355. } //end of onload: function
  1356. }); //end of GM_xmlhttpRequest call
  1357. };//end of var gmxhrFunc
  1358.  
  1359. while (mcRedirectors = mcLinkBlockRegex.exec(mcLinkRes))
  1360. { //load individual redirector pages
  1361. mcRedirectorURL = 'http://www.mirrorcreator.com' + mcRedirectors[1];
  1362. mcHostURLs.push(mcRedirectorURL);
  1363. mcRedirectorIDs.push(mcRedirectors[2]);
  1364. gmxhrFunc(mcRedirectorURL);
  1365. } //end of while block
  1366.  
  1367. setTimeout(function(){ //in case the last page fails to load and call the function
  1368. timedOut = true;
  1369. if (mcHostsToProcess)
  1370. processMirrorcreatorFoundHosts(mcLink, mcHostURLs);
  1371. }, 60000);
  1372.  
  1373. } //end of onload function
  1374. }); //end of GM_xmlhttpRequest call
  1375. } //end of function processMirrorcreatorLink
  1376.  
  1377.  
  1378. function processMirrorcreatorFoundHosts(mcLink, mcHostURLs, mcRedirectorIDs)
  1379. {
  1380. var aEl, liEl, docFrag;
  1381. var hostName, mcRedirectorID, trimFilename = false;
  1382. var i = mcHostURLs.length;
  1383. if (i == 0)
  1384. {
  1385. trimFilename = true;
  1386. mcLink.parentNode.insertBefore(document.createTextNode(' | No files inside container'), mcLink.nextSibling);
  1387. }
  1388. else
  1389. {
  1390. if (Display_full_links_in_link_containers)
  1391. { //full view
  1392. var wrapperEl = document.createElement('span');
  1393. wrapperEl.style.display = 'block';
  1394. var ulistEl = document.createElement('ul');
  1395. ulistEl.className = 'container_list';
  1396. while (i--)
  1397. {
  1398. liEl = document.createElement('li');
  1399. aEl = document.createElement('a');
  1400. aEl.appendChild(document.createTextNode(mcHostURLs[i]));
  1401. aEl.href = mcHostURLs[i];
  1402. aEl.className = 'container_link';
  1403. liEl.appendChild(aEl);
  1404. ulistEl.appendChild(liEl);
  1405. }
  1406. wrapperEl.appendChild(ulistEl);
  1407. mcLink.parentNode.replaceChild(wrapperEl, mcLink);
  1408. wrapperEl.insertBefore(mcLink, wrapperEl.firstChild);
  1409. }
  1410. else
  1411. { //compact view
  1412. trimFilename = true;
  1413. docFrag = document.createDocumentFragment();
  1414. docFrag.appendChild(document.createTextNode(' |'));
  1415. while (i--)
  1416. {
  1417. mcRedirectorID = mcRedirectorIDs[i];
  1418. hostName = mcHostURLs[i];
  1419. if (mcRedirectorID > mcShortHostNames.length-1 || mcShortHostNames[mcRedirectorID] == '??')
  1420. hostName = hostName.replace(/https?:\/\/(?:www\.)?([-0-9a-z]+(?:\.[-0-9a-z]+)?)\.[a-z]+\/.*/i, '$1').toUpperCase();
  1421. else
  1422. hostName = mcShortHostNames[mcRedirectorID];
  1423. aEl = document.createElement('a');
  1424. aEl.href = mcHostURLs[i];
  1425. aEl.className = 'container_link';
  1426. aEl.appendChild(document.createTextNode(hostName));
  1427. docFrag.appendChild(aEl);
  1428. docFrag.appendChild(document.createTextNode('|'));
  1429. }
  1430. mcLink.parentNode.insertBefore(docFrag, mcLink.nextSibling);
  1431. } //end of else block
  1432. } //end of else block
  1433. mcLink.className = '';
  1434. if (trimFilename)
  1435. mcLink.firstChild.nodeValue = mcLink.firstChild.nodeValue.replace(/(https?:\/\/[^\/]+\/files\/\w+\/).+/, '$1...');
  1436. cMirrorcreatorComProcessed++;
  1437. if (cMirrorcreatorComProcessed == cMirrorcreatorComTotal) //start check when all mc links have been processed
  1438. {
  1439. if (Do_not_linkify_DL_links)
  1440. delinkifySnapshot(mcSnapshot);
  1441. startBulkCheck('container_link');
  1442. start('container_link');
  1443. }
  1444. } //end of function processMirrorcreatorFoundHosts
  1445.  
  1446. containers_processed = true;
  1447.  
  1448.  
  1449. function initRedirectors()
  1450. {
  1451. function addRedirector(linkRegex, xpathEx, redirType, innerLinkRegex)
  1452. {
  1453. var redirector = new Object();
  1454. redirector.linkRegex = linkRegex;
  1455. redirector.xpath = xpathEx; //xpath expression
  1456. redirector.cProcessed = 0; //processed links count
  1457. redirector.cTotal = 0; //total links count
  1458. redirector.type = redirType; //redirectorTypes enum
  1459. redirector.innerLinkRegex = innerLinkRegex; //innerLink, null if unused
  1460. redirectors.push(redirector);
  1461. }
  1462. if (GM_getValue("Check_safelinking_dot_net_links", false))
  1463. {
  1464. addRedirector(
  1465. 'safelinking\\.net\/d\/\\w+',
  1466. "//a[contains(@href,'safelinking.net/d/')]",
  1467. redirectorTypes.HTTP_302,
  1468. null);
  1469. }
  1470. if (GM_getValue("Check_linksafe_dot_me_links", false))
  1471. {
  1472. addRedirector(
  1473. 'linksafe\\.me\/d\/\\w+',
  1474. "//a[contains(@href,'linksafe.me/d/')]",
  1475. redirectorTypes.HTTP_302,
  1476. null);
  1477. }
  1478. if (GM_getValue("Check_linkto_dot_net_links", false))
  1479. {
  1480. addRedirector(
  1481. 'linkto\\.net\/\\?\\w+\\.\\d+',
  1482. "//a[contains(@href,'linkto.net/?')]",
  1483. redirectorTypes.INNER_LINK,
  1484. /<iframe id="iframe" name="iframe" src="(.+?)\s*" frameborder="0"/);
  1485. }
  1486. if (GM_getValue("Check_theloo_dot_katt_dot_it_links", false))
  1487. {
  1488. addRedirector(
  1489. '(?:the)?loo\\.katt\\.it\/\\w+',
  1490. "//a[contains(@href,'loo.katt.it/')]",
  1491. redirectorTypes.THELOO_KATT_IT,
  1492. /Proceed to URL - <a href="(.+?)">/);
  1493. }
  1494. if (GM_getValue("Check_madlink_dot_sk_links", false))
  1495. {
  1496. addRedirector(
  1497. 'madlink\\.sk\/\\w+',
  1498. "//a[contains(@href,'madlink.sk/')]",
  1499. redirectorTypes.INNER_LINK,
  1500. /name="url" value="(.+?)\s*"\/>/);
  1501. }
  1502. if (GM_getValue("Check_adf_dot_ly_links", false))
  1503. {
  1504. addRedirector(
  1505. '(?:adf\\.ly|[u9]\\.bb|[qj]\\.gs)\/\\w+',
  1506. "//a[contains(@href,'adf.ly/') or contains(@href,'u.bb/') or contains(@href,'9.bb/') or contains(@href,'q.gs/') or contains(@href,'j.gs/')]",
  1507. redirectorTypes.ADF_LY,
  1508. null);
  1509. }
  1510. if (GM_getValue("Check_redi_dot_re_links", false))
  1511. {
  1512. addRedirector(
  1513. 'redi\\.re\/\\w+',
  1514. "//a[contains(@href,'redi.re/')]",
  1515. redirectorTypes.HTTP_302,
  1516. null);
  1517. }
  1518. if (GM_getValue("Check_bit_dot_ly_links", false))
  1519. {
  1520. addRedirector(
  1521. 'bit\\.ly\/\\w+',
  1522. "//a[contains(@href,'bit.ly/')]",
  1523. redirectorTypes.HTTP_302,
  1524. null);
  1525. }
  1526. }
  1527.  
  1528. }
  1529.  
  1530. var bulkHosts = new Array();
  1531. var bulkHostNames = new Array();
  1532. function initBulkCheck()
  1533. {
  1534. /////////////////////////////
  1535. // Inits filehost object
  1536. /////////////////////////////
  1537. // params :
  1538. // hostName -- [string] host name (multiple domains separated with coma)
  1539. // linkRegex -- [string] link regex
  1540. // xpath -- [string] xpath expression to detect the link objects with evaluate
  1541. // blockSize -- [integer] max. number of links sent in one request, 50 if null
  1542. // corrMatch -- [regex] link correction regex (match), applied prior to corrRepl
  1543. // corrReplWhat -- [regex] link correction regex (replace)
  1544. // corrReplWith -- [string]
  1545. // splitSeparator -- [string] POSTDATA links separator, "\r\n" if null
  1546. //
  1547. // apiUrl -- [string] web linkchecker or API URL
  1548. // postData -- [string] POSTDATA of xmlhttprequest
  1549. // resLinkRegex -- [regex]
  1550. // resLiveRegex -- [regex] matches substrings containing live links in the request response
  1551. // resDeadRegex -- [regex] matches substrings containing dead links in the request response
  1552. // resUnavaRegex -- [regex] matches substrings containing unava links in the request response
  1553. // func -- [function] bulkcheck handler, genBulkCheck if null
  1554. //
  1555. //////////////////////////////
  1556. function addHost(hostName, linkRegex, xpath, blockSize, corrMatch, corrReplWhat, corrReplWith, splitSeparator,
  1557. apiUrl, postData, resLinkRegex, resLiveRegex, resDeadRegex, resUnavaRegex, func)
  1558. {
  1559. var fileHost = new Object();
  1560.  
  1561. fileHost.linkRegex = linkRegex;
  1562. fileHost.linkRegexObject = new RegExp(linkRegex, "");
  1563. fileHost.xpath = xpath;
  1564. fileHost.cFound = 0; //found links counter
  1565. fileHost.links = new Array(); //found links
  1566. if (blockSize == null)
  1567. {
  1568. fileHost.blockSize = 50;
  1569. }
  1570. else
  1571. {
  1572. fileHost.blockSize = blockSize;
  1573. }
  1574. fileHost.corrMatch = corrMatch;
  1575. fileHost.corrReplWhat = corrReplWhat;
  1576. fileHost.corrReplWith = corrReplWith;
  1577. if (splitSeparator == null)
  1578. {
  1579. fileHost.splitSeparator = "\r\n";
  1580. }
  1581. else
  1582. {
  1583. fileHost.splitSeparator = splitSeparator;
  1584. }
  1585. fileHost.apiUrl = apiUrl;
  1586. fileHost.postData = postData;
  1587. fileHost.resLinkRegex = resLinkRegex;
  1588. fileHost.resLiveRegex = resLiveRegex;
  1589. fileHost.resDeadRegex = resDeadRegex;
  1590. fileHost.resUnavaRegex = resUnavaRegex;
  1591. if (func == null)
  1592. {
  1593. fileHost.func = genBulkCheck;
  1594. }
  1595. else
  1596. {
  1597. fileHost.func = func;
  1598. }
  1599. bulkHosts.push(fileHost);
  1600. var names = hostName.split(',');
  1601. var i = names.length;
  1602. while(i--)
  1603. {
  1604. bulkHostNames[names[i]] = fileHost;
  1605. }
  1606. }
  1607. var genType1 = [
  1608. "migahost.com", "rodfile.com", "downloadani.me",
  1609. "rarefile.net",
  1610. "ddlstorage.com", "filesabc.com", "sharebeast.com",
  1611. "180upload.com", "verzend.be",
  1612. "movreel.com",
  1613. "4up.me",
  1614. "file4safe.com", "filemac.com", "4upfiles.com",
  1615. "idup.in", "novafile.com", "longfiles.com",
  1616. "bitupload.com",
  1617. "uploadbaz.com"
  1618. ];
  1619. var genType2 = [ "prefiles.com", "queenshare.com",
  1620. "hulkload.com",
  1621. "daj.to",
  1622. "amonshare.com", "edoc.com",
  1623. ];
  1624. //xfilesharing 1.0
  1625. function addGenericType1()
  1626. {
  1627. var i = genType1.length;
  1628. while(i--)
  1629. {
  1630. if (GM_getValue("Check_" + genType1[i].replace(/\./g, "_dot_").replace(/-/g, "_dash_") + "_links", false))
  1631. {
  1632. var regexSafe = genType1[i].replace(/\./g, "\\.").replace(/-/g, "\\-");
  1633. addHost(
  1634. genType1[i].match(/[\w-]+/)[0], //hostname
  1635. regexSafe + "\/\\w+", //linkregex
  1636. "//a[contains(@href,'" + genType1[i] + "/')]", //xpath
  1637. null, //blocksize
  1638. new RegExp("(http:\/\/(?:|www\\.)" + regexSafe + "\/\\w+)",""),//, //corrmatch
  1639. null, //corrreplwhat
  1640. null, //corrreplwith
  1641. null, //separator
  1642. "http://" + genType1[i] + "/checkfiles.html", //api url
  1643. "op=checkfiles&process=Check+URLs&list=", //postdata
  1644. new RegExp("(" + regexSafe + "\/\\w+)",""), //linkregex
  1645. new RegExp("green'>http:\/\/(?:|www\.)" + regexSafe + "\/\\w+","g"), //liveregex
  1646. new RegExp("red'>http:\/\/(?:|www\.)" + regexSafe + "\/\\w+","g"), //deadregex
  1647. new RegExp("orange'>http:\/\/(?:|www\.)" + regexSafe + "\/\\w+","g"), //unavaregex
  1648. null //function delegate
  1649. )
  1650. }
  1651. }
  1652. }
  1653. //xfilesharing 2.0
  1654. function addGenericType2()
  1655. {
  1656. var i = genType2.length;
  1657. while(i--)
  1658. {
  1659. if (GM_getValue("Check_" + genType2[i].replace(/\./g, "_dot_").replace(/-/g, "_dash_") + "_links", false))
  1660. {
  1661. var regexSafe = genType2[i].replace(/\./g, "\\.").replace(/-/g, "\\-");
  1662. addHost(
  1663. genType2[i].match(/[\w-]+/)[0], //hostname
  1664. regexSafe + "\/\\w+", //linkregex
  1665. "//a[contains(@href,'" + genType2[i] + "/')]", //xpath
  1666. null, //blocksize
  1667. new RegExp("(http:\/\/(?:|www\\.)" + regexSafe + "\/\\w+)",""),//, //corrmatch
  1668. null, //corrreplwhat
  1669. null, //corrreplwith
  1670. null, //separator
  1671. "http://www." + genType2[i] + "/?op=checkfiles", //api url
  1672. "op=checkfiles&process=Check+URLs&list=", //postdata
  1673. new RegExp("(" + regexSafe + "\/\\w+)",""), //linkregex
  1674. new RegExp(regexSafe + "\/\\w+.*?<\/td>\\s*<td style=\"color:green;\">","g"), //liveregex
  1675. new RegExp(regexSafe + "\/\\w+.*?<\/td>\\s*<td style=\"color:red;\">","g"), //deadregex
  1676. new RegExp(regexSafe + "\/\\w+.*?<\/td>\\s*<td style=\"color:orange;\">","g"), //unavaregex
  1677. null //function delegate
  1678. )
  1679. }
  1680. }
  1681. }
  1682. // TEMPLATE
  1683. // if (GM_getValue("Check__dot_com_links", false))
  1684. // {
  1685. // addHost(
  1686. // "", //hostname
  1687. // "", //linkregex
  1688. // "//a[contains(@href,'.com/')]", //xpath
  1689. // null, //blocksize
  1690. // null, //corrmatch
  1691. // null, //corrreplwhat
  1692. // null, //corrreplwith
  1693. // null, //separator
  1694. // "", //api url
  1695. // "", //postdata
  1696. // /()/, //linkregex
  1697. // //liveregex
  1698. // //deadregex
  1699. // //unavaregex
  1700. // null //function delegate
  1701. // )
  1702. // }
  1703. addGenericType1();
  1704. addGenericType2();
  1705.  
  1706. if (GM_getValue("Check_myvdrive_dot_com_links", false))
  1707. {
  1708. addHost(
  1709. "myvdrive,fileserving", //hostname
  1710. "(?:fileserving|myvdrive)\\.com\/files\/[\\w-]+", //linkregex
  1711. "//a[contains(@href,'fileserving.com/files') or contains(@href,'myvdrive.com/files')]", //xpath
  1712. null, //blocksize
  1713. null, //corrmatch
  1714. null, //corrreplwhat
  1715. null, //corrreplwith
  1716. null, //separator
  1717. "http://www.myvdrive.com/Public/linkchecker#", //api url
  1718. "links=", //postdata
  1719. /(?:fileserving|myvdrive)\.com\/(files\/\w+)/, //linkregex
  1720. /icon_file_check_valid"><\/span>\s*http:\/\/www\.(?:fileserving|myvdrive)\.com\/files\/[\w-]+/g, //liveregex
  1721. /icon_file_check_(?:removed|notvalid)"><\/span>\s*http:\/\/www\.(?:fileserving|myvdrive)\.com\/files\/[\w-]+/g, //deadregex
  1722. null, //unavaregex
  1723. null //function delegate
  1724. )
  1725. }
  1726. if (GM_getValue("Check_hackerbox_dot_org_links", false))
  1727. {
  1728. addHost(
  1729. "hackerbox", //hostname
  1730. "host\\.hackerbox\\.org\/\\w+", //linkregex
  1731. "//a[contains(@href,'host.hackerbox.org/')]", //xpath
  1732. null, //blocksize
  1733. /(http:\/\/host\.hackerbox\.org\/\w+)/, //corrmatch
  1734. null, //corrreplwhat
  1735. null, //corrreplwith
  1736. null, //separator
  1737. "http://host.hackerbox.org/checkfiles.html", //api url
  1738. "op=checkfiles&process=Check+URLs&list=", //postdata
  1739. /(host\.hackerbox\.org\/\w+)/, //linkregex
  1740. /green'>http:\/\/host\.hackerbox\.org\/\w+/g, //liveregex
  1741. /red'>http:\/\/host\.hackerbox\.org\/\w+/g, //deadregex
  1742. /orange'>http:\/\/host\.hackerbox\.org\/\w+/g, //unavaregex
  1743. null //function delegate
  1744. )
  1745. }
  1746. //if (GM_getValue("Check_ryushare_dot_com_links", false))
  1747. //{
  1748. //addHost(
  1749. //"ryushare", //hostname
  1750. //"ryushare\\.com\/\\w+", //linkregex
  1751. //"//a[contains(@href,'ryushare.com/')]", //xpath
  1752. //null, //blocksize
  1753. ///(http:\/\/(?:|www\.)ryushare\.com\/\w+)/, //corrmatch
  1754. //null, //corrreplwhat
  1755. //null, //corrreplwith
  1756. //null, //separator
  1757. //"http://ryushare.com/checkfiles.python", //api url
  1758. //"op=checkfiles&process=Check+URLs&list=", //postdata
  1759. ///(ryushare\.com\/\w+)/, //linkregex
  1760. ///green'>http:\/\/(?:|www\.)ryushare\.com\/\w+/g, //liveregex
  1761. ///red'>http:\/\/(?:|www\.)ryushare\.com\/\w+/g, //deadregex
  1762. ///orange'>http:\/\/(?:|www\.)ryushare\.com\/\w+/g, //unavaregex
  1763. //null //function delegate
  1764. //)
  1765. //}
  1766. if (GM_getValue("Check_hellshare_dot_com_links", false))
  1767. {
  1768. addHost(
  1769. "hellshare", //hostname
  1770. "(?:|download\\.(?:cz\\.|en\\.|sk\\.|)|www\\.)hellshare\\.(?:com|sk|cz|pl|hu|COM|SK|CZ|PL|HU)\/[\\w-\\.]+\/(?:[\\w-\\.]+\/|)\\d{5,}", //linkregex
  1771. "//a[contains(@href,'hellshare.')]", //xpath
  1772. 48, //blocksize
  1773. null, //corrmatch
  1774. null, //corrreplwhat
  1775. null, //corrreplwith
  1776. null, //separator
  1777. null, //api url
  1778. null, //postdata
  1779. null, //linkregex
  1780. null, //liveregex
  1781. null, //deadregex
  1782. null, //unavaregex
  1783. hellshareBulkCheck //function delegate
  1784. )
  1785. }
  1786. if (GM_getValue("Check_ncrypt_dot_in_links", false))
  1787. {
  1788. addHost(
  1789. "ncrypt", //hostname
  1790. "ncrypt\\.in\/folder\\-\\w+", //linkregex
  1791. "//a[contains(@href,'ncrypt.in/folder')]", //xpath
  1792. 100000, //blocksize
  1793. null, //corrmatch
  1794. null, //corrreplwhat
  1795. null, //corrreplwith
  1796. null, //separator
  1797. null,
  1798. null,
  1799. null,
  1800. null,
  1801. null,
  1802. null,
  1803. ncryptBulkCheck //function delegate
  1804. )
  1805. }
  1806. if (GM_getValue("Check_filepost_dot_com_links", false))
  1807. {
  1808. addHost(
  1809. "filepost,fp", //hostname
  1810. "(?:filepost\\.com\/files|fp\\.io)\/\\w+", //linkregex
  1811. "//a[contains(@href,'filepost.com/files/') or contains(@href,'fp.io/')]", //xpath
  1812. null, //blocksize
  1813. null, //corrmatch
  1814. null, //corrreplwhat
  1815. null, //corrreplwith
  1816. "\n", //separator
  1817. 'http://filepost.com/files/checker/?JsHttpRequest=0-xml',
  1818. 'urls=',
  1819. /\\\/files\\\/(\w+)/,
  1820. />http:\\\/\\\/filepost\.com\\\/files\\\/\w+(?:[^>]+>){5}(?:\\n|\\t)+<span class=\\"v\\"/g,
  1821. />http:\\\/\\\/filepost\.com\\\/files\\\/\w+(?:[^>]+>){5}(?:\\n|\\t)+<span class=\\"x\\"/g,
  1822. null,
  1823. null //function delegate
  1824. )
  1825. }
  1826. if (GM_getValue("Check_filesflash_dot_com_links", false))
  1827. {
  1828. addHost(
  1829. "filesflash", //hostname
  1830. "filesflash\\.com\/\\w+", //linkregex
  1831. "//a[contains(@href,'filesflash.com')]", //xpath
  1832. null, //blocksize
  1833. null, //corrmatch
  1834. /http:\/\//, //corrreplwhat
  1835. '', //corrreplwith
  1836. null, //separator
  1837. 'http://filesflash.com/checklinks.php',
  1838. 'submit=Go&links=',
  1839. /filesflash\.com\/(\w+)/,
  1840. /<td>filesflash\.com\/\w+<\/td>\s*<td>Available/g,
  1841. /<td>filesflash\.com\/\w+<\/td>\s*<td>(?:Invalid|Deleted|Expired|Banned)?<\/td>/g,
  1842. null,
  1843. null //function delegate
  1844. )
  1845. }
  1846. /* if (GM_getValue("Check_hitfile_dot_net_links", false))
  1847. {
  1848. addHost(
  1849. "hitfile", //hostname
  1850. "hitfile\\.net\/\\w+", //linkregex
  1851. "//a[contains(@href,'hitfile.net')]", //xpath
  1852. null, //blocksize
  1853. null, //corrmatch
  1854. null, //corrreplwhat
  1855. null, //corrreplwith
  1856. "\n", //separator
  1857. 'http://hitfile.net/linkchecker/check',
  1858. 'links_to_check=',
  1859. /^<td>(\w+)<\/td>/,
  1860. /<td>\w+<\/td>\s*<td>[^<]*<\/td>\s*<td style[^<]+<img.*?title="Existent"/g,
  1861. /<td>\w+<\/td>\s*<td>[^<]*<\/td>\s*<td style[^<]+<img.*?title="Deleted"/g,
  1862. null,
  1863. null //function delegate
  1864. )
  1865. } */
  1866. if (GM_getValue("Check_jumbofiles_dot_com_links", false))
  1867. {
  1868. addHost(
  1869. "jumbofiles", //hostname
  1870. "jumbofiles\\.com\/\\w+", //linkregex
  1871. "//a[contains(@href,'jumbofiles.com/')]", //xpath
  1872. null, //blocksize
  1873. /(http:\/\/(?:|www\.)jumbofiles\.com\/\w+)/, //corrmatch
  1874. null, //corrreplwhat
  1875. null, //corrreplwith
  1876. null, //separator
  1877. "http://jumbofiles.com/checkfiles.html", //api url
  1878. "op=checkfiles&process=Check+URLs&list=", //postdata
  1879. /(jumbofiles\.com\/\w+)/, //linkregex
  1880. /blue'>http:\/\/(?:|www\.)jumbofiles\.com\/\w+/g, //liveregex
  1881. /red'>http:\/\/(?:|www\.)jumbofiles\.com\/\w+/g, //deadregex
  1882. /orange'>http:\/\/(?:|www\.)jumbofiles\.com\/\w+/g, //unavaregex
  1883. null //function delegate
  1884. )
  1885. }
  1886. if (GM_getValue("Check_edisk_dot_cz_links", false))
  1887. {
  1888. addHost(
  1889. "edisk", //hostname
  1890. "(?:(?:muj|data)\\d*\\.|)edisk\\.(?:cz|sk|eu)\/(?:|(?:cz|sk|en|pl)\/)", //linkregex
  1891. "//a[contains(@href,'edisk.')]", //xpath
  1892. null, //blocksize
  1893. null, //corrmatch
  1894. /edisk\.\w{2}\/(?:|\w{2}\/)stahni/, //corrreplwhat
  1895. 'edisk.cz/stahni', //corrreplwith
  1896. null, //separator
  1897. 'http://www.edisk.cz/zkontrolovat-odkazy',
  1898. 'submitBtn=Zkontrolovat&checkFiles=',
  1899. /((?:download|stahn(?:i|out-soubor))\/\d+)/,
  1900. /"ano"\/>\s*<\/td>\s*<td>\s*http:\/\/.+/g,
  1901. /"ne"\/>\s*<\/td>\s*<td>\s*http:\/\/.+/g,
  1902. null,
  1903. null //function delegate
  1904. )
  1905. }
  1906. if (GM_getValue("Check_bezvadata_dot_cz_links", false))
  1907. {
  1908. GM_xmlhttpRequest( //age check skip
  1909. {
  1910. method: 'POST',
  1911. url: 'http://bezvadata.cz/vyhledavani/souhlas-zavadny-obsah',
  1912. headers: {
  1913. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  1914. 'Content-type': 'application/x-www-form-urlencoded',
  1915. 'Referer': ""
  1916. }
  1917. });
  1918. addHost(
  1919. "bezvadata", //hostname
  1920. "(?:beta\\.|)bezvadata\.cz\/stahnout\/\\d+\\w+", //linkregex
  1921. "//a[contains(@href,'bezvadata.cz')]", //xpath
  1922. null, //blocksize
  1923. null, //corrmatch
  1924. null, //corrreplwhat
  1925. null, //corrreplwith
  1926. null, //separator
  1927. 'http://bezvadata.cz/nastroje/kontrola-odkazu?do=kontrolaOdkazuForm-submit',
  1928. 'zkontrolovat=Zkontrolovat&odkazy=',
  1929. /(bezvadata\.cz\/stahnout\/\d+)/,
  1930. /bezvadata\.cz\/stahnout\/.+?<\/td>\s*<td style="background-color: #d9ffb2/g,
  1931. /bezvadata\.cz\/stahnout\/.+?<\/td>\s*<td style="background-color: #ffb2b2/g,
  1932. null,
  1933. null //function delegate
  1934. )
  1935. }
  1936. if (GM_getValue("Check_depositfiles_dot_com_links", false))
  1937. {
  1938. addHost(
  1939. "depositfiles,dfiles", //hostname
  1940. //"depositfiles\\.com\/(?:en\/|ru\/|de\/|es\/|pt\/|)files\/\\w+", //linkregex
  1941. //"(?:depositfiles\\.com|\\bdfiles\\.ru)\/(?:en\/|ru\/|de\/|es\/|pt\/|)files\/\\w+", //linkregex
  1942. "(?:depositfiles\\.(?:com|org)|\\bdfiles\\.(?:ru|eu))\/(?:en\/|ru\/|de\/|es\/|pt\/|)files\/\\w+", //linkregex
  1943. "//a[(contains(@href,'depositfiles.') or contains(@href,'dfiles.ru') or contains(@href,'dfiles.eu')) and contains(@href,'/files/')]", //xpath
  1944. 100000, //blocksize
  1945. null, //corrmatch
  1946. null, //corrreplwhat
  1947. null, //corrreplwith
  1948. null, //separator
  1949. null,
  1950. null,
  1951. null,
  1952. null,
  1953. null,
  1954. null,
  1955. depositfilesBulkCheck //function delegate
  1956. )
  1957. }
  1958. if (GM_getValue("Check_linkcrypt_dot_ws_links", false))
  1959. {
  1960. addHost(
  1961. "linkcrypt", //hostname
  1962. "linkcrypt\\.ws\/dir\/\\w+", //linkregex
  1963. "//a[contains(@href,'linkcrypt.ws/dir')]", //xpath
  1964. 100000, //blocksize
  1965. null, //corrmatch
  1966. null, //corrreplwhat
  1967. null, //corrreplwith
  1968. null, //separator
  1969. null,
  1970. null,
  1971. null,
  1972. null,
  1973. null,
  1974. null,
  1975. linkcryptBulkCheck //function delegate
  1976. )
  1977. }
  1978. if (GM_getValue("Check_linksave_dot_in_links", false))
  1979. {
  1980. addHost(
  1981. "linksave", //hostname
  1982. "linksave\\.in\/\\w+", //linkregex
  1983. "//a[contains(@href,'linksave.in')]", //xpath
  1984. 100000, //blocksize
  1985. null, //corrmatch
  1986. null, //corrreplwhat
  1987. null, //corrreplwith
  1988. null, //separator
  1989. null,
  1990. null,
  1991. null,
  1992. null,
  1993. null,
  1994. null,
  1995. linksaveBulkCheck //function delegate
  1996. )
  1997. }
  1998. if (GM_getValue("Check_videobb_dot_com_links", false))
  1999. {
  2000. addHost(
  2001. "videobb", //hostname
  2002. "videobb\\.com\/(?:video\/|watch_video\\.php\\?v=)\\w+", //linkregex
  2003. "//a[contains(@href,'videobb.com')]", //xpath
  2004. null, //blocksize
  2005. null, //corrmatch
  2006. /watch_video\.php\?v=/, //corrreplwhat
  2007. 'video/', //corrreplwith
  2008. null, //separator
  2009. 'http://www.videobb.com/link_checker.php',
  2010. 'links=',
  2011. /videobb\.com\/video\/(\w+)/,
  2012. /<td>http:\/\/(?:www\.|)videobb.com\/video\/\w+<\/td>\s+<td>.+?<\/td>\s+<td>\d+:\d+<\/td>\s+<td>Available/g,
  2013. /<td>http:\/\/(?:www\.|)videobb.com\/video\/\w+<\/td>\s+<td><\/td>\s+<td>N\/A<\/td>\s+<td>Not Available/g,
  2014. null,
  2015. null //function delegate
  2016. )
  2017. }
  2018. // if (GM_getValue("Check_bitshare_dot_com_links", false))
  2019. // {
  2020. // addHost(
  2021. // "bitshare", //hostname
  2022. // "bitshare\\.com\/(?:files\/|\\?f=)\\w+", //linkregex
  2023. // "//a[contains(@href,'bitshare.com')]", //xpath
  2024. // null, //blocksize
  2025. // null, //corrmatch
  2026. // null, //corrreplwhat
  2027. // null, //corrreplwith
  2028. // null, //separator
  2029. // 'http://bitshare.com/linkcheck.html',
  2030. // 'submit=Check&links=',
  2031. // /(bitshare\.com\/(?:files\/|\?f=)\w+)/,
  2032. // /ru_2\.gif" \/>\s*<\/div>\s*<span style="font-size:14px;font-weight:bold;">.*?<\/span>\s*<\/p>\s*<p>\s*<a href="http:\/\/(?:www\.|)bitshare\.com\/(?:files\/|\?f=)\w+/g,
  2033. // /ru_3\.gif" \/>\s*<\/div>\s*<span style="font-size:14px;font-weight:bold;">.*?<\/span>\s*<\/p>\s*<p>\s*<a href="http:\/\/(?:www\.|)bitshare\.com\/(?:files\/|\?f=)\w+/g,
  2034. // /ru_1\.gif" \/>\s*<\/div>\s*<span style="font-size:14px;font-weight:bold;">.*?<\/span>\s*<\/p>\s*<p>\s*<a href="http:\/\/(?:www\.|)bitshare\.com\/(?:files\/|\?f=)\w+/g,
  2035. // null //function delegate
  2036. // )
  2037. // }
  2038. if (GM_getValue("Check_cramit_dot_in_links", false))
  2039. {
  2040. addHost(
  2041. "cramit,cramitin", //hostname
  2042. "cramit(?:\\.in|in\\.net)\/", //linkregex
  2043. "//a[contains(@href,'cramitin.net') or contains(@href,'cramit.in')]", //xpath
  2044. null, //blocksize
  2045. null, //corrmatch
  2046. null, //corrreplwhat
  2047. null, //corrreplwith
  2048. null, //separator
  2049. 'http://cramit.in/checkfiles.html',
  2050. 'op=checkfiles&process=CHECK+URL%27S&list=',
  2051. /(cramit(?:\.in|in\.net)\/\w+)/,
  2052. /green>http:\/\/(?:www\.|)cramit(?:\.in|in\.net)\/\w+/g,
  2053. /red'>http:\/\/(?:www\.|)cramit(?:\.in|in\.net)\/\w+/g,
  2054. /orange'>http:\/\/(?:www\.|)cramit(?:\.in|in\.net)\/\w+/g,
  2055. null //function delegate
  2056. )
  2057. }
  2058. if (GM_getValue("Check_turbobit_dot_net_links", false))
  2059. {
  2060. addHost(
  2061. "turbobit", //hostname
  2062. "turbobit\\.(?:net|pl)\/(?:\\w+\/|).+?\\.html", //linkregex
  2063. "//a[contains(@href,'turbobit.')]", //xpath
  2064. null, //blocksize
  2065. /(turbobit\.(?:net|pl)\/(?:\w+\/|).+?\.html)/, //corrmatch
  2066. null, //corrreplwhat
  2067. null, //corrreplwith
  2068. "\n", //separator
  2069. 'http://turbobit.net/linkchecker/csv',
  2070. 'links_to_check=',
  2071. /(turbobit\.(?:net|pl)\/\w+)/,
  2072. /turbobit\.(?:net|pl)\/.*?, 1/g,
  2073. /turbobit\.(?:net|pl)\/.*?, 0/g,
  2074. null,
  2075. null //function delegate
  2076. )
  2077. }
  2078. if (GM_getValue("Check_filerio_dot_com_links", false))
  2079. {
  2080. addHost(
  2081. "filekeen,filerio", //hostname
  2082. //"file(?:keen|rio)\\.(?:com|in)\/\\w+\/.", //linkregex
  2083. "file(?:keen|rio)\\.(?:com|in)\/\\w+", //linkregex
  2084. "//a[contains(@href,'filekeen.com') or contains(@href,'filerio.')]", //xpath
  2085. null, //blocksize
  2086. null, //corrmatch
  2087. null, //corrreplwhat
  2088. null, //corrreplwith
  2089. null, //separator
  2090. 'http://filerio.in/checkfiles.html',
  2091. 'op=checkfiles&process=Check+URLs&list=',
  2092. /(file(?:keen|rio)\.(?:com|in)\/\w+)/,
  2093. /green'>http:\/\/(?:www\.|)file(?:keen|rio)\.(?:com|in)\/\w+/g,
  2094. /red'>http:\/\/(?:www\.|)file(?:keen|rio)\.(?:com|in)\/\w+/g,
  2095. /orange'>http:\/\/(?:www\.|)file(?:keen|rio)\.(?:com|in)\/\w+/g,
  2096. null //function delegate
  2097. )
  2098. }
  2099. if (GM_getValue("Check_share_dash_online_dot_biz_links", false))
  2100. {
  2101. addHost(
  2102. "share-online,egoshare", //hostname
  2103. "(?:share-online\\.biz|egoshare\\.com)\/(?:dl\/|download\\.php\\?id=)", //linkregex
  2104. "//a[contains(@href,'share-online.biz') or contains(@href,'egoshare.com')]", //xpath
  2105. null, //blocksize
  2106. /http:\/\/(?:www\.)?(?:share-online\.biz|egoshare\.com)\/d(?:l\/|ownload\.php\?id=)(\w+)/, //corrmatch
  2107. null, //corrreplwhat
  2108. null, //corrreplwith
  2109. "\n", //separator
  2110. 'http://api.share-online.biz/linkcheck.php',
  2111. 'links=',
  2112. /(\w+);(?:OK|NOTFOUND|DELETED)/,
  2113. /\w+;OK/g,
  2114. /\w+;(?:NOTFOUND|DELETED)/g,
  2115. null,
  2116. null //function delegate
  2117. )
  2118. }
  2119. if (GM_getValue("Check_quickshare_dot_cz_links", false))
  2120. {
  2121. addHost(
  2122. "quickshare", //hostname
  2123. "quickshare\\.cz\/stahnout-soubor\/\\d+", //linkregex
  2124. "//a[contains(@href,'quickshare.cz')]", //xpath
  2125. null, //blocksize
  2126. null, //corrmatch
  2127. null, //corrreplwhat
  2128. null, //corrreplwith
  2129. null, //separator
  2130. 'http://www.quickshare.cz/nastroje/link-checker',
  2131. 'linky=',
  2132. /quickshare\.cz\/stahnout-soubor\/(\d+(?::\w+)?)/,
  2133. /quickshare\.cz\/stahnout-soubor\/\d+(?::[\w\-.+$!*\/()\[\]\',~%?:@#&=\\]+)?\s*<\/a><\/td><td><img src="\/img\/ok\.gif/g,
  2134. /quickshare\.cz\/stahnout-soubor\/\d+(?::[\w\-.+$!*\/()\[\]\',~%?:@#&=\\]+)?\s*<\/td><td><img src="\/img\/nenalezeno\.gif/g,
  2135. null,
  2136. null //function delegate
  2137. )
  2138. }
  2139. if (GM_getValue("Check_netload_dot_in_links", false))
  2140. {
  2141. addHost(
  2142. "netload", //hostname
  2143. "netload\\.in\/datei\\w{10}", //linkregex
  2144. "//a[contains(@href,'netload.in')]", //xpath
  2145. null, //blocksize
  2146. null, //corrmatch
  2147. null, //corrreplwhat
  2148. null, //corrreplwith
  2149. "\n", //separator
  2150. "http://api.netload.in/index.php?id=2", //api url
  2151. "send=Absenden&links=", //postdata
  2152. /(\w+);/, //linkregex
  2153. /\w{10,};.+?;.+?;online/g, //liveregex
  2154. /\w{10,};.+?;.+?;offline/g, //deadregex
  2155. null, //unavaregex
  2156. //netloadBulkCheck //function delegate //disabled on probation since 1.2.4.5
  2157. null //function delegate
  2158. )
  2159. }
  2160. if (GM_getValue("Check_oboom_dot_com_links", false))
  2161. {
  2162. addHost(
  2163. "oboom", //hostname
  2164. "oboom\\.com\/#?\\w{8}", //linkregex
  2165. "//a[contains(@href,'oboom.com/')]", //xpath
  2166. null, //blocksize
  2167. /oboom\.com\/#?(\w{8})/, //corrmatch
  2168. null, //corrreplwhat
  2169. null, //corrreplwith
  2170. null, //separator
  2171. null,
  2172. null,
  2173. null,
  2174. null, //liveregex
  2175. null, //deadregex
  2176. null,
  2177. oboomBulk //function delegate
  2178. )
  2179. }
  2180. if (GM_getValue("Check_mega_dot_co_dot_nz_links", false))
  2181. {
  2182. addHost(
  2183. "mega",
  2184. "mega\\.co\\.nz\/#!\\w+",
  2185. "//a[contains(@href,'mega.co.nz/')]",
  2186. 100000, //blocksize
  2187. null, //corrmatch
  2188. null, //corrreplwhat
  2189. null, //corrreplwith
  2190. null, //separator
  2191. null,
  2192. null,
  2193. null,
  2194. null,
  2195. null,
  2196. null,
  2197. megaBulkCheck //function delegate
  2198. )
  2199. }
  2200. //the same as GenType2, except api url is 'https://' instead of 'http://www.' and corrmatch is not??? needed
  2201. /* if (GM_getValue("Check_fileparadox_dot_in_links", false))
  2202. {
  2203. addHost(
  2204. "fileparadox", //hostname
  2205. "fileparadox\\.in\/\\w+", //linkregex
  2206. "//a[contains(@href,'fileparadox.in')]", //xpath
  2207. null, //blocksize
  2208. null, // /(https?:\/\/(?:|www\\.)fileparadox\.in\/\\w+)",""), //corrmatch
  2209. null, //corrreplwhat
  2210. null, //corrreplwith
  2211. null, //separator
  2212. "http://fileparadox.com/?op=checkfiles", //api url
  2213. "op=checkfiles&process=Check+URLs&list=", //postdata
  2214. new RegExp("(fileparadox\\.in\/\\w+)",""), //linkregex
  2215. new RegExp("fileparadox\\.in\/\\w+.*?\\s*<\/td>\\s*<td style=\"color:green;\">","g"), //liveregex
  2216. new RegExp("fileparadox\\.in\/\\w+.*?\\s*<\/td>\\s*<td style=\"color:red;\">","g"), //deadregex
  2217. new RegExp("fileparadox\\.in\/\\w+.*?\\s*<\/td>\\s*<td style=\"color:orange;\">","g"), //unavaregex
  2218. null //function delegate
  2219. )
  2220. }
  2221. if (GM_getValue("Check_fileparadox_dot_com_links", false))
  2222. {
  2223. addHost(
  2224. "fileparadox", //hostname
  2225. "fileparadox\\.com\/\\w+", //linkregex
  2226. "//a[contains(@href,'fileparadox.com')]", //xpath
  2227. null, //blocksize
  2228. null, // /(https?:\/\/(?:|www\\.)fileparadox\.com\/\\w+)",""), //corrmatch
  2229. null, //corrreplwhat
  2230. null, //corrreplwith
  2231. null, //separator
  2232. "http://fileparadox.com/?op=checkfiles", //api url
  2233. "op=checkfiles&process=Check+URLs&list=", //postdata
  2234. new RegExp("(fileparadox\\.com\/\\w+)",""), //linkregex
  2235. new RegExp("fileparadox\\.com\/\\w+.*?\\s*<\/td>\\s*<td style=\"color:green;\">","g"), //liveregex
  2236. new RegExp("fileparadox\\.com\/\\w+.*?\\s*<\/td>\\s*<td style=\"color:red;\">","g"), //deadregex
  2237. new RegExp("fileparadox\\.com\/\\w+.*?\\s*<\/td>\\s*<td style=\"color:orange;\">","g"), //unavaregex
  2238. null //function delegate
  2239. )
  2240. } */
  2241. if (GM_getValue("Check_extabit_dot_com_links", false))
  2242. {
  2243. addHost(
  2244. "extabit", //hostname
  2245. "extabit\\.com\/file\/\\w+", //linkregex
  2246. "//a[contains(@href,'extabit.com')]", //xpath
  2247. null, //blocksize
  2248. null, //corrmatch
  2249. null, //corrreplwhat
  2250. null, //corrreplwith
  2251. "\n", //separator
  2252. "http://extabit.com/linkchecker.jsp", //api url
  2253. "url=", //postdata
  2254. /extabit\.com\/(file\/\w+)/, //linkregex
  2255. /extabit\.com\/file\/\w+\/[^<]+<\/a><\/td>\s*<td class="status"><span class="status_green">/g, //liveregex
  2256. /extabit\.com\/file\/\w+\/[^<]+<\/a><\/td>\s*<td class="status"><span class="status_red">/g, //deadregex
  2257. /extabit\.com\/file\/\w+\/[^<]+<\/a><\/td>\s*<td class="status"><span class="status_yellow">/g, //unavaregex
  2258. extabitBulkCheck //function delegate
  2259. )
  2260. }
  2261. if (GM_getValue("Check_junocloud_dot_me_links", false))
  2262. {
  2263. addHost(
  2264. "junocloud", //hostname
  2265. "junocloud\\.me\/\\w+", //linkregex
  2266. "//a[contains(@href,'junocloud.me')]", //xpath
  2267. null, //blocksize
  2268. null, //corrmatch
  2269. null, //corrreplwhat
  2270. null, //corrreplwith
  2271. "\n", //separator
  2272. "http://junocloud.me/checkfiles.html", //api url
  2273. "op=checkfiles&process=Check+URLs&list=", //postdata
  2274. /(junocloud\.me\/\w+)/, //linkregex
  2275. /<a href="http:\/\/junocloud\.me\/\w+[^<]+<\/a>\s*<span style="color: green/g, //liveregex
  2276. /<a href="http:\/\/junocloud\.me\/\w+[^<]+<\/a>\s*<span style="color: red/g, //deadregex
  2277. null, //unavaregex
  2278. null //function delegate
  2279. )
  2280. }
  2281. if (GM_getValue("Check_webshare_dot_cz_links", false))
  2282. {
  2283. addHost(
  2284. "webshare", //hostname
  2285. "webshare\.cz\/(?:(?:#/)?file/\\w+|\\w+-.*)", //linkregex
  2286. "//a[contains(@href,'webshare.cz')]", //xpath
  2287. 100000, //blocksize
  2288. null, //corrmatch
  2289. null, //corrreplwhat
  2290. null, //corrreplwith
  2291. null, //separator
  2292. null, //api url
  2293. null, //postdata
  2294. null, //linkregex
  2295. null, //liveregex
  2296. null, //deadregex
  2297. null, //unavaregex
  2298. webshareBulkCheck //function delegate
  2299. )
  2300. }
  2301. /////////////////////////////
  2302. // Common function delegate to send links to get checked by host linkchecker
  2303. /////////////////////////////
  2304. // If you define a new delegate, you may use following properties
  2305. // this.links [array] array of strings (link blocks). The links in each block separated with host.splitSeparator.
  2306. // this.apiUrl [string] API or web linkchecker URL
  2307. // this.postData [string] POSTDATA for POST request
  2308. // this.resLiveRegex [regex] matches live substrings in the request response
  2309. // this.resDeadRegex [regex] matches dead substrings in the request response
  2310. // this.resUnavaRegex [regex] matches unava substrings in the request response (the regex is often null!)
  2311. //
  2312. // this.resLinkRegex [regex] matches links further passed to DisplayTheCheckedLinks
  2313. //
  2314. // See the code below for standard bulkcheck handling reference.
  2315. //////////////////////////////
  2316. function genBulkCheck()
  2317. {
  2318. var blockIdx = this.links.length;
  2319. while (blockIdx--)
  2320. {
  2321. postRequest(this.apiUrl, this.postData, this.links[blockIdx],
  2322. this.resLinkRegex, this.resLiveRegex, this.resDeadRegex, this.resUnavaRegex);
  2323. }
  2324. function postRequest(api, postData, links, linkRegex, liveRegex, deadRegex, unavaRegex)
  2325. {
  2326. GM_xmlhttpRequest(
  2327. {
  2328. method: 'POST',
  2329. url: api,
  2330. headers: {
  2331. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  2332. 'Content-type': 'application/x-www-form-urlencoded',
  2333. 'Referer': api,
  2334. 'X-Requested-With': 'XMLHttpRequest'
  2335. },
  2336. data: postData + encodeURIComponent(links),
  2337. onload: function (result)
  2338. {
  2339. var res = result.responseText;
  2340. // GM_log(res);
  2341. var i;
  2342.  
  2343. var livelinks = res.match(liveRegex);
  2344. var deadlinks = res.match(deadRegex);
  2345. // GM_log(livelinks);
  2346. // GM_log(deadlinks);
  2347. if (livelinks != null)
  2348. {
  2349. i = livelinks.length - 1;
  2350. do
  2351. {
  2352. livelinks[i] = livelinks[i].match(linkRegex)[1];
  2353. }
  2354. while (i--);
  2355. DisplayTheCheckedLinks(livelinks, 'alive_link');
  2356. }
  2357.  
  2358. if (deadlinks != null)
  2359. {
  2360. i = deadlinks.length - 1;
  2361. do
  2362. {
  2363. deadlinks[i] = deadlinks[i].match(linkRegex)[1];
  2364. }
  2365. while (i--);
  2366. DisplayTheCheckedLinks(deadlinks, 'adead_link');
  2367. }
  2368.  
  2369. if (unavaRegex != null)
  2370. {
  2371. var unavalinks = res.match(unavaRegex);
  2372. if (unavalinks)
  2373. {
  2374. i = unavalinks.length - 1;
  2375. do
  2376. {
  2377. unavalinks[i] = unavalinks[i].match(linkRegex)[1];
  2378. }
  2379. while (i--);
  2380. DisplayTheCheckedLinks(unavalinks, 'unava_link');
  2381. }
  2382. }
  2383. }
  2384. });
  2385. }
  2386. }
  2387. //specialized bulkchecking handlers follow
  2388. function webshareBulkCheck()
  2389. {
  2390. var arr = this.links[0].split("\r\n");
  2391. var i = arr.length;
  2392. while(i--)
  2393. {
  2394. postRequest(arr[i]);
  2395. }
  2396. //function postRequest(api, postData, links, linkRegex, liveRegex, deadRegex, unavaRegex)
  2397. function postRequest(wsLink)
  2398. {
  2399. var id = wsLink.match(/webshare\.cz\/(?:(?:#\/)?file\/)?(\w+)/)[1];
  2400. GM_xmlhttpRequest(
  2401. {
  2402. method: 'POST',
  2403. url: "http://webshare.cz/api/file_info/",
  2404. headers: {
  2405. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  2406. 'Content-type': 'application/x-www-form-urlencoded',
  2407. 'Referer': "",
  2408. },
  2409. data: "wst=&ident=" + id,
  2410. onload: function (result)
  2411. {
  2412. var res = result.responseText;
  2413. if (res.match(/<name>.+?<\/name>/))
  2414. {
  2415. DisplayTheCheckedLinks([id], 'alive_link');
  2416. }
  2417. else
  2418. {
  2419. DisplayTheCheckedLinks([id], 'adead_link');
  2420. }
  2421. }
  2422. });
  2423. }
  2424. }
  2425. //like genBulkCheck, but extabit linkchecker only works when logged in. If not logged in, non-bulk checking has to be used.
  2426. //extabit also doesn't like requests in fast succession, so some delays are added.
  2427. function extabitBulkCheck()
  2428. {
  2429. var timeoutDelay = 0;
  2430. var blockIdx = this.links.length;
  2431. while (blockIdx--)
  2432. {
  2433. postRequest(this.apiUrl, this.postData, this.links[blockIdx],
  2434. this.resLinkRegex, this.resLiveRegex, this.resDeadRegex, this.resUnavaRegex);
  2435. }
  2436. function postRequest(api, postData, links, linkRegex, liveRegex, deadRegex, unavaRegex)
  2437. {
  2438. GM_xmlhttpRequest(
  2439. {
  2440. method: 'POST',
  2441. url: api,
  2442. headers: {
  2443. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  2444. 'Content-type': 'application/x-www-form-urlencoded',
  2445. 'Referer': api,
  2446. 'X-Requested-With': 'XMLHttpRequest'
  2447. },
  2448. data: postData + encodeURIComponent(links),
  2449. onload: function (result)
  2450. {
  2451. var res = result.responseText;
  2452. if (/id="registration_header"/.test(res)) //not logged in, have to use non-bulk
  2453. {
  2454. function geturlfunc(link, tryID) //basically the geturl function with some changes (compacted, displaythecheckedlinkS, multiple tries)
  2455. {
  2456. //GM_log(tryID + ': ' + link);
  2457. GM_xmlhttpRequest(
  2458. {
  2459. method: 'GET',
  2460. url: link,
  2461. headers: {'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8','Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7','Referer': ""},
  2462. onload: function(result2)
  2463. {
  2464. var res2 = result2.responseText;
  2465. var res2Status = result.status;
  2466. if (/download-file-btn/.test(res2)) {DisplayTheCheckedLinks([link], 'alive_link'); return;}
  2467. if (/Search mirrors|id="mirrb"/.test(res2) || res2Status==404) {DisplayTheCheckedLinks([link], 'adead_link'); return;}
  2468. if (/currently unavailable|temporarily unavailable|disponible en estos momentos|vorläufig unerreichbar|Файл временно недоступен/.test(res2) || res2Status == 500 || res2Status == 503)
  2469. {
  2470. if (tryID < 7)
  2471. setTimeout(function(){geturlfunc(link,tryID+1)}, tryID * 1000 + (Math.random() * tryID * 2000));
  2472. else
  2473. {DisplayTheCheckedLinks([link], 'unava_link'); return;}
  2474. }
  2475. }
  2476. });
  2477. }
  2478. //split the hrefs and check them one by one
  2479. GM_log('Using slow extabit.com link checking. Log in to extabit to use fast bulk checking.');
  2480. links = links.split('\n');
  2481. var i = links.length;
  2482. while (i--)
  2483. {
  2484. if (links[i])
  2485. {
  2486. (function(i){setTimeout(function(){geturlfunc(links[i],1)}, timeoutDelay);})(i);
  2487. timeoutDelay += 500;
  2488. }
  2489. }
  2490. return;
  2491. }
  2492. // GM_log(res);
  2493. var i;
  2494.  
  2495. var livelinks = res.match(liveRegex);
  2496. var deadlinks = res.match(deadRegex);
  2497. // GM_log(livelinks);
  2498. // GM_log(deadlinks);
  2499. if (livelinks != null)
  2500. {
  2501. i = livelinks.length - 1;
  2502. do
  2503. {
  2504. livelinks[i] = livelinks[i].match(linkRegex)[1];
  2505. }
  2506. while (i--);
  2507. DisplayTheCheckedLinks(livelinks, 'alive_link');
  2508. }
  2509.  
  2510. if (deadlinks != null)
  2511. {
  2512. i = deadlinks.length - 1;
  2513. do
  2514. {
  2515. deadlinks[i] = deadlinks[i].match(linkRegex)[1];
  2516. }
  2517. while (i--);
  2518. DisplayTheCheckedLinks(deadlinks, 'adead_link');
  2519. }
  2520.  
  2521. if (unavaRegex != null)
  2522. {
  2523. var unavalinks = res.match(unavaRegex);
  2524. if (unavalinks)
  2525. {
  2526. i = unavalinks.length - 1;
  2527. do
  2528. {
  2529. unavalinks[i] = unavalinks[i].match(linkRegex)[1];
  2530. }
  2531. while (i--);
  2532. DisplayTheCheckedLinks(unavalinks, 'unava_link');
  2533. }
  2534. }
  2535. }
  2536. });
  2537. }
  2538. }
  2539. function netloadBulkCheck()
  2540. {
  2541. var blockIdx = this.links.length;
  2542.  
  2543. while (blockIdx--)
  2544. {
  2545. postRequest(this.apiUrl, this.postData, this.links[blockIdx],
  2546. this.resLinkRegex, this.resLiveRegex, this.resDeadRegex, this.unavaRegex);
  2547. }
  2548. function postRequest(api, postData, links, linkRegex, liveRegex, deadRegex, unavaRegex)
  2549. {
  2550. GM_xmlhttpRequest(
  2551. {
  2552. method: 'POST',
  2553. url: api,
  2554. headers: {
  2555. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  2556. 'Content-type': 'application/x-www-form-urlencoded',
  2557. 'Referer': ""
  2558. },
  2559. data: postData + encodeURIComponent(links),
  2560. onload: function (result)
  2561. {
  2562. var res = result.responseText;
  2563. var i;
  2564.  
  2565. var livelinks = res.match(liveRegex);
  2566. var deadlinks = res.match(deadRegex);
  2567. // GM_log(livelinks);
  2568. // GM_log(deadlinks);
  2569. if (livelinks != null)
  2570. {
  2571. i = livelinks.length - 1;
  2572. do
  2573. {
  2574. recheckLink(livelinks[i].match(linkRegex)[1]);
  2575. }
  2576. while(i--);
  2577. }
  2578.  
  2579. if (deadlinks != null)
  2580. {
  2581. i = deadlinks.length - 1;
  2582. do
  2583. {
  2584. deadlinks[i] = deadlinks[i].match(linkRegex)[1];
  2585. }
  2586. while (i--);
  2587. DisplayTheCheckedLinks(deadlinks, 'adead_link');
  2588. }
  2589. }
  2590. });
  2591. }
  2592. function recheckLink(link)
  2593. {
  2594. var link = link;
  2595. GM_xmlhttpRequest(
  2596. {
  2597. method: 'GET',
  2598. url: 'http://netload.in/datei' + link + '.htm',
  2599. headers: {
  2600. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  2601. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  2602. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  2603. 'Referer': ""
  2604. },
  2605. onload: function (result)
  2606. {
  2607. var res = result.responseText;
  2608.  
  2609. if (res.match(/dl_first_file_download">|download_limit\.gif/))
  2610. {
  2611. DisplayTheCheckedLinks([link], 'alive_link');
  2612. return;
  2613. }
  2614.  
  2615. if (res.match(/achtung\.jpg"/))
  2616. {
  2617. DisplayTheCheckedLinks([link], 'adead_link');
  2618. }
  2619. },
  2620. onerror: function ()
  2621. {
  2622. displayTheCheckedLink(link, 'unava_link');
  2623. }
  2624. });
  2625. }
  2626. }
  2627.  
  2628. function megaBulkCheck()
  2629. {
  2630. var arr = this.links[0].split("\r\n");
  2631. var i = arr.length;
  2632. var seqno = Math.floor(Math.random()*1000000000);
  2633. while(i--)
  2634. {
  2635. postRequest(arr[i]);
  2636. }
  2637. function postRequest(megaLink)
  2638. {
  2639. var id = megaLink.match(/mega\.co\.nz\/#!(\w+)(?:!\w+)?/)[1];
  2640. GM_xmlhttpRequest(
  2641. {
  2642. method: "POST",
  2643. url: 'https://g.api.mega.co.nz/cs?id=' + seqno++,
  2644. data: '[{"a":"g","p":"' + id + '","ssl": "1"}]',
  2645. headers: {
  2646. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  2647. 'Content-Type': 'application/xml',
  2648. 'Referer': "https://mega.co.nz/"
  2649. },
  2650. onload: function (result)
  2651. {
  2652. var res = $.parseJSON(result.responseText.match(/\[(.+?)\]/)[1]);
  2653. if ((typeof res == "number" && (res == -9 || res == -16 || res == -6)) || res.d)
  2654. {
  2655.  
  2656. DisplayTheCheckedLinks([id], 'adead_link');
  2657. }
  2658. if (res.at)
  2659. {
  2660. DisplayTheCheckedLinks([id], 'alive_link');
  2661. }
  2662. if (res.e == "ETEMPUNAVAIL")
  2663. {
  2664. DisplayTheCheckedLinks([id], 'unava_link');
  2665. }
  2666. }
  2667. });
  2668. }
  2669.  
  2670. }
  2671. function oboomBulk() {
  2672. var a = [], b = [], c = [];
  2673. var array = this.links;
  2674.  
  2675. GM_xmlhttpRequest({
  2676. method: 'GET',
  2677. url: 'https://www.oboom.com/1/guestsession',
  2678. headers: {
  2679. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  2680. 'Content-type': 'application/x-www-form-urlencoded',
  2681. 'Referer': 'https://www.oboom.com',
  2682. 'X-Requested-With': 'XMLHttpRequest'
  2683. },
  2684. onload: function(result) {
  2685. var blockIdx = array.length;
  2686. var token = JSON.parse(result.responseText)[1];
  2687. while (blockIdx--) {
  2688. startCheck(array[blockIdx].split('\r\n'), token);
  2689. }
  2690. }
  2691. });
  2692.  
  2693. function startCheck(links, token) {
  2694. GM_xmlhttpRequest({
  2695. method: 'POST',
  2696. url: "https://api.oboom.com/1/info",
  2697. headers: {
  2698. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  2699. 'Content-type': 'application/x-www-form-urlencoded',
  2700. 'Referer': 'https://www.oboom.com/',
  2701. 'X-Requested-With': 'XMLHttpRequest'
  2702. },
  2703. data: "token=" + token + "&items=" + links.join(","),
  2704. onload: function(result) {
  2705. var res = JSON.parse(result.responseText)[1];
  2706. var i = res.length, s;
  2707.  
  2708. while (i--) {
  2709. s = res[i].state;
  2710. if (s == 'online') a.push(res[i].id);
  2711. else if (s == 'blocked' || s == 'abused' || s == 'lost' || s == 'not_found' || s == 'not_available'|| s == 'download_error' || s == 'offline' ) b.push(res[i].id);
  2712. else c.push(res[i].id);
  2713. }
  2714.  
  2715. if (a.length > 0) DisplayTheCheckedLinks(a, 'alive_link');
  2716. if (b.length > 0) DisplayTheCheckedLinks(b, 'adead_link');
  2717. if (c.length > 0) DisplayTheCheckedLinks(c, 'unava_link');
  2718. }
  2719. });
  2720. }
  2721. }
  2722. function linksaveBulkCheck()
  2723. {
  2724. var arr = this.links[0].split("\r\n");
  2725. var i = arr.length;
  2726. while(i--)
  2727. {
  2728. postRequest(arr[i]);
  2729. }
  2730. function postRequest(lsLink)
  2731. {
  2732. GM_xmlhttpRequest(
  2733. {
  2734. method: "GET",
  2735. url: lsLink + '-t.jpg',
  2736. headers: {
  2737. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  2738. 'Accept': 'text/xml',
  2739. 'Referer': ""
  2740. },
  2741. onload: function (result)
  2742. {
  2743. var imgLen = result.responseHeaders.match(/Content-Length: (\d+)/)[1];
  2744. if (imgLen == 965) //online
  2745. {
  2746. DisplayTheCheckedLinks([lsLink], 'alive_link');
  2747. }
  2748.  
  2749. if (imgLen == 972) //offline
  2750. {
  2751. DisplayTheCheckedLinks([lsLink], 'adead_link');
  2752. }
  2753. if (imgLen == 978) //unava
  2754. {
  2755. DisplayTheCheckedLinks([lsLink], 'unava_link');
  2756. }
  2757. }
  2758. });
  2759. }
  2760.  
  2761. }
  2762. function linkcryptBulkCheck()
  2763. {
  2764. var arr = this.links[0].split("\r\n");
  2765. var i = arr.length;
  2766. while(i--)
  2767. {
  2768. postRequest(arr[i]);
  2769. }
  2770. function postRequest(lcLink)
  2771. {
  2772. GM_xmlhttpRequest(
  2773. {
  2774. method: "GET",
  2775. url: 'http://linkcrypt.ws/api.html?api=status_V1&folderKey=' + lcLink.match(/dir\/(\w+)/)[1],
  2776. headers: {
  2777. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  2778. 'Accept': 'text/xml',
  2779. 'Referer': ""
  2780. },
  2781. onload: function (result)
  2782. {
  2783. var res = result.responseText;
  2784. if (res.match(/<errorCode>1101|folderStatus>[23]/)) //Offline status
  2785. {
  2786. DisplayTheCheckedLinks([lcLink], 'adead_link');
  2787. return;
  2788. }
  2789. if (res.match(/folderStatus>1/)) //Online status
  2790. {
  2791. DisplayTheCheckedLinks([lcLink], 'alive_link');
  2792. }
  2793. else
  2794. {
  2795. DisplayTheCheckedLinks([lcLink], 'unava_link');
  2796. }
  2797. }
  2798. });
  2799. }
  2800. }
  2801. function depositfilesBulkCheck()
  2802. {
  2803. var arr = this.links[0].split("\r\n");
  2804. var i = arr.length;
  2805. while(i--)
  2806. {
  2807. postRequest(arr[i]);
  2808. }
  2809. function postRequest(dfLink)
  2810. {
  2811. //var id = dfLink.match(/depositfiles\.com\/(?:en\/|ru\/|de\/|eu\/|es\/|pt\/|)files\/(\w+)/)[1];
  2812. var id = dfLink.match(/\/files\/(\w+)/)[1];
  2813. GM_xmlhttpRequest(
  2814. {
  2815. method: "POST",
  2816. url: 'http://depositfiles.com/api/get_download_info.php?id=' + id + "&format=json",
  2817. headers: {
  2818. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  2819. 'Content-Type': 'application/x-www-form-urlencoded',
  2820. 'Referer': ""
  2821. },
  2822. onload: function (result)
  2823. {
  2824. var res = result.responseText;
  2825. if (res.match(/"(?:no_file|file_ban)"/))
  2826. {
  2827. DisplayTheCheckedLinks(["files/" + id], 'adead_link');
  2828. return;
  2829. }
  2830.  
  2831. if (res.match('"download_li(?:nk|mit)|password_check|file_storage"'))
  2832. {
  2833. DisplayTheCheckedLinks(["files/" + id], 'alive_link');
  2834. }
  2835. }
  2836. });
  2837. }
  2838. }
  2839. function megashareBulkCheck()
  2840. {
  2841. var arr = this.links[0].split("\r\n");
  2842. var i = arr.length;
  2843. while(i--)
  2844. {
  2845. postRequest(arr[i]);
  2846. }
  2847. function postRequest(msLink)
  2848. {
  2849. GM_xmlhttpRequest(
  2850. {
  2851. method: "GET",
  2852. url: msLink,
  2853. headers: {
  2854. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  2855. 'Content-Type': 'application/x-www-form-urlencoded',
  2856. 'Referer': ""
  2857. },
  2858. onload: function (result)
  2859. {
  2860. var prZVal = result.responseText.match(/name="(\d+prZVal)" value="(\d+)">/);
  2861. var btn3Name = result.responseText.match(/src="images\/dwn-btn3\.gif" name="(.+?)"/);
  2862. if ((prZVal == null) || (btn3Name == null))
  2863. {
  2864. return;
  2865. }
  2866. GM_xmlhttpRequest(
  2867. {
  2868. method: "POST",
  2869. url: msLink,
  2870. headers: {
  2871. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  2872. 'Content-Type': 'application/x-www-form-urlencoded',
  2873. 'Referer': ""
  2874. },
  2875. data: prZVal[1] + "=" + prZVal[2] + '&' + btn3Name[1] + '.x=1&' + btn3Name[1] + '.y=1',
  2876. onload: function (result)
  2877. {
  2878. var res = result.responseText;
  2879. if (res.match(/<div id="err">/))
  2880. {
  2881. DisplayTheCheckedLinks([msLink.match(/\.com(\/\d+)/)[1]], 'adead_link');
  2882. }
  2883. else
  2884. {
  2885. DisplayTheCheckedLinks([msLink.match(/\.com(\/\d+)/)[1]], 'alive_link');
  2886. }
  2887. }
  2888. });
  2889. }
  2890. });
  2891. }
  2892. }
  2893. function ncryptBulkCheck()
  2894. {
  2895. var arr = this.links[0].split("\r\n");
  2896. var i = arr.length;
  2897. while(i--)
  2898. {
  2899. postRequest(arr[i]);
  2900. }
  2901. function postRequest(ncryptLink)
  2902. {
  2903. GM_xmlhttpRequest(
  2904. {
  2905. method: "POST",
  2906. url: 'http://ncrypt.in/api_status.php',
  2907. headers: {
  2908. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  2909. 'Content-Type': 'application/x-www-form-urlencoded',
  2910. 'Referer': ""
  2911. },
  2912. data: 'link=' + encodeURI(ncryptLink),
  2913. onload: function (result)
  2914. {
  2915. var foldStatus = result.responseText.match(/(?:offline|online);/);
  2916. switch(foldStatus + ""){
  2917. case "offline;": DisplayTheCheckedLinks([ncryptLink], 'adead_link'); break;
  2918. case "online;": DisplayTheCheckedLinks([ncryptLink], 'alive_link'); break;
  2919. default: DisplayTheCheckedLinks([ncryptLink], 'unava_link');
  2920. }
  2921. }
  2922. });
  2923. }
  2924. }
  2925. function hellshareBulkCheck()
  2926. {
  2927. var links = this.links;
  2928. GM_xmlhttpRequest(
  2929. {
  2930. method: "GET",
  2931. url: 'http://www.hellshare.com',
  2932. headers: {
  2933. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  2934. 'Accept': 'text/xml',
  2935. 'Referer': ""
  2936. },
  2937. onload: function (result)
  2938. {
  2939. var domain = result.responseText.match(/param_rau = "www\.hellshare\.(\w+)"/)[1];
  2940.  
  2941. var loc = 'check=Zkontrolovat+dostupnost+soubor%C5%AF&links=';
  2942. if (domain == 'sk')
  2943. loc = 'check=Skontrolova%C5%A5&links=';
  2944. if (domain == 'com')
  2945. loc = 'check=Check+availability&links=';
  2946. if (domain == 'hu')
  2947. loc = 'check=Kontrol%C3%A1lj&links=';
  2948. if (domain == 'pl')
  2949. loc = 'check=Sprawd%C5%BC+dost%C4%99pno%C5%9B%C4%87+plik%C3%B3w&links=';
  2950.  
  2951. genBulkCheck.call({ links: links,
  2952. apiUrl: 'http://www.hellshare.' + domain + '/linkchecker?do=linkChecker-linkcheckerform-submit',
  2953. postData: loc,
  2954. resLinkRegex: /hellshare\.(?:cz|com|sk|hu|pl)\/(?:[\w-\.]+\/|)([\w-\.]+\/\d{5,})/,
  2955. resLiveRegex: /OK" style="width:21px;height:20px;margin-right:10px;" \/><a href="http:\/\/download\.hellshare\.(?:cz|com|sk|hu|pl)\/(?:[\w-\.]+\/|)[\w-\.]+\/\d{5,}/g,
  2956. resDeadRegex: /<span style="color:gray">.*?<\/span> - <strong>/g,
  2957. resUnavaRegex: null
  2958. });
  2959. }
  2960. });
  2961. }
  2962. /**
  2963. * Displays check result
  2964. * @param {Array} Array of links or link fragments.
  2965. * @param {String} Check result status -> ['alive_link'|'adead_link'|'unava_link']
  2966. */
  2967. function DisplayTheCheckedLinks(links, resultStatus)
  2968. {
  2969. //(a[href*=link_1], a[href*=link_2], ..., a[href*=link_n])
  2970. var $links = $('a[href*="' + links.join('"], a[href*="') + '"]');
  2971. if (Do_not_linkify_DL_links)
  2972. { //TODO into separate jQuery function
  2973. $links.replaceWith(function(){
  2974. return '<span href="' + this.href + '">' + $(this).text() + '</span>';
  2975. });
  2976. $links = $('span[href*="' + links.join('"], span[href*="') + '"]');
  2977. }
  2978. $links.removeClass().addClass(resultStatus);
  2979. $links.each(function() {
  2980. this.href = Ref_anonymize_service + $(this).attr("href");
  2981. });
  2982. switch(resultStatus)
  2983. {
  2984. case "alive_link": cLinksAlive += $links.length;
  2985. if (Display_tooltip_info) $links.mouseover(displayTooltipInfo);
  2986. break;
  2987. case "adead_link": cLinksDead += $links.length;
  2988. if (Display_tooltip_info) $links.mouseover(displayTooltipError);
  2989. break;
  2990. case "unava_link": cLinksUnava += $links.length; break;
  2991. default:
  2992. }
  2993. cLinksProcessed += $links.length;
  2994. }
  2995. }
  2996. // starts bulkchecking
  2997. //
  2998. // params
  2999. // filterId [string] restricts link detection with passed id attribute
  3000. function startBulkCheck(filterId)
  3001. {
  3002. var cHosts = bulkHosts.length;
  3003. if (cHosts == 0) //no filehostings selected
  3004. return;
  3005. // STEP 1 linkify the links
  3006. var linkifyRegex = '';
  3007. var hostIdx = cHosts;
  3008. while(hostIdx--)
  3009. {
  3010. linkifyRegex += bulkHosts[hostIdx].linkRegex + "|";
  3011. }
  3012. linkifyRegex = linkifyRegex.replace(/\|$/, '');
  3013. linkify(linkifyRegex);
  3014. //
  3015. //STEP 2 detect link objects
  3016. var xpathAll = '';
  3017. var hostIdx = cHosts;
  3018. while(hostIdx--)
  3019. {
  3020. xpathAll += bulkHosts[hostIdx].xpath + "|";
  3021. }
  3022. xpathAll = xpathAll.replace(/\]\|\/\/a\[/g, " or ");
  3023. xpathAll = xpathAll.replace(/\]\|/, ')]');
  3024. if (filterId != null) //insert id restriction in the xpath
  3025. {
  3026. xpathAll = xpathAll.replace(/\[/, "[@class='" + filterId + "' and (");
  3027. }
  3028. else
  3029. {
  3030. xpathAll = xpathAll.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  3031. }
  3032. // GM_log(filterId);
  3033. // GM_log(xpathAll);
  3034. var links = document.evaluate(xpathAll, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  3035. if (filterId == null)
  3036. {
  3037. cLinksTotal += links.snapshotLength;
  3038. }
  3039. //
  3040. //STEP 3 bind links with hostings
  3041. var linkIdx = links.snapshotLength;
  3042. var href = null;
  3043. if (linkIdx == 0) // no links found
  3044. return;
  3045. var name;
  3046. while (linkIdx--)
  3047. {
  3048. href = links.snapshotItem(linkIdx).href;
  3049. try // DO NOT REMOVE, filters crap that went through xpath detection
  3050. {
  3051. name = gimmeHostName(href);
  3052. if (href.match(bulkHostNames[name].linkRegexObject) != null)
  3053. bulkHostNames[name].links.push(href);
  3054. }
  3055. catch(e)
  3056. {
  3057. // GM_log(href);
  3058. // GM_log(gimmeHostName(href));
  3059. // GM_log(e.message);
  3060. }
  3061. }
  3062. //
  3063. //STEP 4 process the links for each filehosting
  3064. var hostIdx = cHosts;
  3065. var host;
  3066. var m,n;
  3067. var arr;
  3068. while (hostIdx--)
  3069. {
  3070. host = bulkHosts[hostIdx];
  3071. arr = host.links;
  3072. if (arr.length == 0) //no links for this hosting, skip
  3073. {
  3074. continue;
  3075. }
  3076. //links match corrections
  3077. if (host.corrMatch != null)
  3078. {
  3079. var idx = arr.length;
  3080. while (idx--)
  3081. {
  3082. arr[idx] = arr[idx].match(host.corrMatch)[1];
  3083. }
  3084. }
  3085. //links replace corrections
  3086. if ((host.corrReplWhat != null) && (host.corrReplWith != null))
  3087. {
  3088. var idx = arr.length;
  3089. while (idx--)
  3090. {
  3091. arr[idx] = arr[idx].replace(host.corrReplWhat, host.corrReplWith);
  3092. }
  3093. }
  3094. m = arr.length;
  3095. n = host.blockSize;
  3096. if (m > n)
  3097. {
  3098. //insert block separators (RAND_STRING) into the array
  3099. for(var i = n; i < m; i += n + 1)
  3100. {
  3101. arr.splice(i, 0, RAND_STRING);
  3102. }
  3103. }
  3104. // GM_log(arr.join(host.splitSeparator).split(RAND_STRING));
  3105. // GM_log(host.func.toString());
  3106. host.func.call({ links: arr.join(host.splitSeparator).split(RAND_STRING),
  3107. apiUrl: host.apiUrl,
  3108. postData: host.postData,
  3109. resLinkRegex: host.resLinkRegex,
  3110. resLiveRegex: host.resLiveRegex,
  3111. resDeadRegex: host.resDeadRegex,
  3112. resUnavaRegex: host.resUnavaRegex
  3113. });
  3114. //clean up
  3115. arr.length = 0;
  3116. }
  3117. //
  3118.  
  3119. function gimmeHostName(link)
  3120. {
  3121. return link.replace(/https?:\/\/.*?http(s)?:\/\//, "http$1://").match(/https?:\/\/(?:www\.|[\w\.])*?([\w-]+)\.(?:co\.uk|co\.nz|\w+)\//)[1];
  3122. }
  3123. }
  3124. function checkLinks(filterId)
  3125. {
  3126. startBulkCheck(filterId);
  3127. start(filterId);
  3128. }
  3129.  
  3130. /**
  3131. * Initialises progress box including event binding and CSS
  3132. */
  3133. function initProgressBox()
  3134. {
  3135. if ($("#warlc-progressbox").length > 0)
  3136. return;
  3137. //progressbox css change size and color of progress box
  3138. GM_addStyle("#warlc-progressbox {position:fixed; background:DimGray;" + Progress_box_background_color +
  3139. "; opacity:" + (Progress_box_opacity / 100) +
  3140. "; bottom:" + Progress_box_pos_bottom +
  3141. "px; right:" + Progress_box_pos_right +
  3142. "px; padding:5px; font-size:20px; font-weight:bold; cursor:default;}\
  3143. \
  3144. .warlc-progressbar {text-align:center; color: DimGray; height:2px; margin-bottom:2px;}\
  3145. \
  3146. .warlc-progressitem {}\
  3147. \
  3148. .alive {color:#00FF7F; " + Live_links_color +
  3149. "; background:transparent url(" + alive_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;} .dead {color:" + Dead_links_color +
  3150. "; background:transparent url(" + adead_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;} .unava {color: " + Temp_unavailable_links_color +
  3151. "; background:transparent url(" + unava_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;} .processing {color:Black; " + Container_links_color +
  3152. "; background:transparent url(" + processing_link_gif + ") no-repeat scroll 100% 50%;padding-right:15px;} .prem {color:" + Premium_links_color +
  3153. "; background:transparent url(" + prem_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;}"
  3154. );
  3155. //
  3156. $('body').append(' <div id="warlc-progressbox">\
  3157. <div class="warlc-progressbar"></div>\
  3158. <span class="warlc-progressitem alive"></span> - \
  3159. <span class="warlc-progressitem dead"></span> - \
  3160. <span class="warlc-progressitem unava"></span> - \
  3161. <span class="warlc-progressitem prem"></span> - \
  3162. <span class="warlc-progressitem processing"></span>\
  3163. </div>');
  3164. $('#warlc-progressbox').hide().click(function(){
  3165. clearInterval(intervalId);
  3166. $(this).hide();
  3167. return false;
  3168. });
  3169. $(".warlc-progressbar").progressbar({complete: function(){
  3170. $(this).fadeOut();
  3171. clearInterval(intervalId); //stop refreshing the stats
  3172. }
  3173. })
  3174. .one('progressbarchange', function(){$('#warlc-progressbox').show();});
  3175. }
  3176. /**
  3177. * Updates progress data in progress box
  3178. */
  3179. function updateProgress()
  3180. {
  3181. if (cLinksTotal) // some links were detected on page
  3182. {
  3183. var percProgress = Math.round(((100 / cLinksTotal) * cLinksProcessed));
  3184. var $progressItems = $('#warlc-progressbox > .warlc-progressitem');
  3185. $(".warlc-progressbar").progressbar('option', 'value', percProgress);
  3186. if ((cLinksTotal - cLinksProcessed) == 0)
  3187. {
  3188. $progressItems.first().text(cLinksAlive)
  3189. .next().text(cLinksDead)
  3190. .next().text(cLinksUnava)
  3191. .next().text(cLinksprem)
  3192. .next().remove();
  3193. $('#warlc-progressbox').html($('#warlc-progressbox').html().substr(0,$('#warlc-progressbox').html().lastIndexOf(">")+1));
  3194. $('#warlc-progressbox div:first-child').remove();
  3195. }
  3196. else
  3197. {
  3198. $progressItems.first().text(cLinksAlive)
  3199. .next().text(cLinksDead)
  3200. .next().text(cLinksUnava)
  3201. .next().text(cLinksprem)
  3202. .next().text(cLinksTotal - cLinksProcessed);
  3203. }
  3204. }
  3205. }
  3206.  
  3207. function check_all_links()
  3208. {
  3209. add_WARLC_style();
  3210.  
  3211. if (Show_progress_stats)
  3212. {
  3213. initProgressBox();
  3214. intervalId = setInterval(function(){updateProgress();}, Progress_box_refresh_rate);
  3215. }
  3216.  
  3217. startBulkCheck(null);
  3218. start(null);
  3219.  
  3220. if (!containers_processed)
  3221. {
  3222. processContainers();
  3223. }
  3224. }
  3225.  
  3226. //Copies all found dead links to clipboard - right now for Scriptish only
  3227. function copy_dead_to_clipboard()
  3228. {
  3229. initClipBoardTools();
  3230.  
  3231. var deadlinksxpath = "//.[@class='adead_link']";
  3232.  
  3233. var foundlinks = document.evaluate(deadlinksxpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  3234. var foundlinkstext = '';
  3235.  
  3236. var foundlinkIdx = foundlinks.snapshotLength;
  3237.  
  3238. while(foundlinkIdx--)
  3239. {
  3240. if (foundlinks.snapshotItem(foundlinkIdx).innerHTML != ' x')
  3241. foundlinkstext += foundlinks.snapshotItem(foundlinkIdx).innerHTML.replace(/\[\/hide:\w+\]/,"") + '\n';
  3242. }
  3243.  
  3244. unsafeWindow.copyToClipboard(foundlinkstext);
  3245. }
  3246.  
  3247. function toggle_autocheck()
  3248. {
  3249. var currentState = GM_getValue("Autocheck", false);
  3250. GM_setValue("Autocheck", !currentState);
  3251.  
  3252. if (currentState == true)
  3253. {
  3254. sendMessage('Autocheck disabled', 'red');
  3255. }
  3256. else
  3257. {
  3258. sendMessage('Autocheck enabled', 'SpringGreen');
  3259. }
  3260. }
  3261. function toggle_Enable_Anonymizer()
  3262. {
  3263. var currentState = GM_getValue("Enable_Anonymizer", false);
  3264. GM_setValue("Enable_Anonymizer", !currentState);
  3265.  
  3266. if (currentState == true)
  3267. {
  3268. GM_setValue("Ref_anonymize_service", "");
  3269. sendMessage('Anonymizer Disabled', 'red');
  3270. }
  3271. else
  3272. {
  3273. GM_setValue("Ref_anonymize_service", "http://hiderefer.com/?");
  3274. sendMessage('Anonymizer Enabled', 'SpringGreen');
  3275. }
  3276. }
  3277.  
  3278. function KeyDownHandler(event)
  3279. {
  3280. var kcode = (event.keyCode) ? event.keyCode : event.which;
  3281. if (event.ctrlKey && event.altKey)
  3282. {
  3283. switch(kcode)
  3284. {
  3285. case 65 : check_all_links(); break;
  3286. case 67 : configuration(); break;
  3287. case 68 : copy_dead_to_clipboard(); break;
  3288. case 87 : toggle_autocheck(); break;
  3289. case 90 : toggle_Enable_Anonymizer(); break;
  3290. }
  3291. }
  3292. }
  3293.  
  3294. //
  3295. //
  3296. // SCRIPT EXECUTION START POINT
  3297. //
  3298. //
  3299. // Safari specific GM_getResourceText override
  3300. if (navigator.userAgent.indexOf('Safari') != -1 && navigator.userAgent.indexOf('Chrome') == -1)
  3301. {
  3302. GM_getResourceText = function(res) {
  3303. var $cssText = GM_getValue("jquery_css", "");
  3304. if ($cssText == "")
  3305. {
  3306. GM_xmlhttpRequest(
  3307. {
  3308. method: 'GET',
  3309. url: 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css',
  3310. onload: function (result)
  3311. {
  3312. GM_setValue("jquery_css", result.responseText);
  3313. window.location.reload();
  3314. }
  3315. });
  3316. }
  3317. else
  3318. {
  3319. return $cssText;
  3320. }
  3321. }
  3322. }
  3323. var jQueryUICSS = GM_getResourceText("jQueryUICSS");
  3324. GM_addStyle(jQueryUICSS);
  3325. //init the stuff
  3326. setVariables();
  3327. initBulkCheck();
  3328. //init info boxes
  3329. messageBox.style.position = 'fixed';
  3330. messageBox.style.top = '20px';
  3331. messageBox.style.left = '10px';
  3332. messageBox.style.opacity = '0.85';
  3333. messageBox.style.background = 'DimGray';
  3334. messageBox.style.fontSize = '36px';
  3335. document.body.appendChild(messageBox);
  3336.  
  3337. //register GM menu commands & keyboard shortcut event handler
  3338. if (Keyboard_functions)
  3339. {
  3340. $(document).keydown(KeyDownHandler);
  3341. GM_registerMenuCommand("[W.A.R. Links Checker] Configuration (" + first_key_keycodename + "+" + second_key_keycodename + "+" + String.fromCharCode(CONFIGURATION_KEYCODE) + ")", configuration);
  3342. GM_registerMenuCommand("[W.A.R. Links Checker] Check The Links In This Page (" + first_key_keycodename + "+" + second_key_keycodename + "+" + String.fromCharCode(CHECK_ALL_LINKS_KEYCODE) + ")", check_all_links);
  3343. }
  3344. else
  3345. {
  3346. GM_registerMenuCommand("[W.A.R. Links Checker] Configuration", configuration);
  3347. GM_registerMenuCommand("[W.A.R. Links Checker] Check The Links In This Page", check_all_links);
  3348. }
  3349.  
  3350. //start linkchecking
  3351. if (Autocheck)
  3352. {
  3353. $(document).ready(check_all_links);
  3354. }
  3355.  
  3356. //
  3357. //
  3358. // SCRIPT EXECUTION END POINT
  3359. //
  3360. //
  3361.  
  3362. //shows configuration box
  3363. function configuration()
  3364. {
  3365.  
  3366. //prevent multiple creating of config window
  3367. if ($("#hideshow").length)
  3368. {
  3369. $("#hideshow").show();
  3370. return;
  3371. }
  3372.  
  3373. var configcss = '\
  3374. .popup_block .popup fieldset{\
  3375. padding: 1%;\
  3376. border-style: solid;\
  3377. border-width: 1px;\
  3378. border-color: gray;\
  3379. margin-bottom: 1px;\
  3380. }\
  3381. #h3hideshowtitle{\
  3382. font-size: 2em;\
  3383. }\
  3384. #h3hideshow{\
  3385. font-size: 1.5em;\
  3386. }\
  3387. #imghideshow {\
  3388. border: none;\
  3389. }\
  3390. #plusimage{\
  3391. display:inline;\
  3392. }\
  3393. #hideshow {\
  3394. position: fixed;\
  3395. width: 100%;\
  3396. height: 100%;\
  3397. top: 0;\
  3398. left: 0;\
  3399. font-size:12px;\
  3400. z-index:2147483645;\
  3401. text-align:left;\
  3402. }\
  3403. #fade {\
  3404. background: #000;\
  3405. position: fixed;\
  3406. width: 100%;\
  3407. height: 100%;\
  3408. opacity: .80;\
  3409. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";\
  3410. left: 0;\
  3411. z-index: 10;\
  3412. }\
  3413. .popup_block {\
  3414. font-family:verdana;\
  3415. color:black;\
  3416. background: #ddd;\
  3417. padding: 10px 20px;\
  3418. border: 2px solid DarkOrange;\
  3419. float: left;\
  3420. width: 700px;\
  3421. position: absolute;\
  3422. top: 7%;\
  3423. left: 50%;\
  3424. bottom: 7%;\
  3425. margin: 0 0 0 -350px;\
  3426. -moz-border-radius:10px;\
  3427. z-index: 100;\
  3428. \
  3429. }\
  3430. .popup_block .popup {\
  3431. float: left;\
  3432. width: 100%;\
  3433. background: #fff;\
  3434. margin: 10px 0;\
  3435. padding: 0px 0 0px;\
  3436. border-left: 1px solid #bbb;\
  3437. border-top: 1px solid #bbb;\
  3438. border-right: 1px solid #bbb;\
  3439. }\
  3440. #h3hideshow{\
  3441. margin: 1px 0 0px;\
  3442. padding: 1px 10px;\
  3443. border-bottom: 1px solid #bbb;\
  3444. font-size: 1.5em;\
  3445. font-weight: normal;\
  3446. cursor:pointer;\
  3447. background:#DDDDDD none repeat scroll 0 0;\
  3448. }\
  3449. #h3hideshow:hover{\
  3450. background:#C0BEBE none repeat scroll 0 0;\
  3451. }\
  3452. #h3hideshowtitle{\
  3453. margin: 2px 0 0px;\
  3454. padding: 7px 10px;\
  3455. border-bottom: 1px solid #bbb;\
  3456. font-size: 1.5em;\
  3457. font-weight: normal;\
  3458. }\
  3459. .popup_block .popup a {\
  3460. color:DarkSkyBlue;\
  3461. text-decoration:none;\
  3462. }\
  3463. .popup p {\
  3464. padding: 1px 10px;\
  3465. margin: 0px 0;\
  3466. -x-system-font:none;\
  3467. font-family:verdana,geneva,lucida,"lucida grande",arial,helvetica,sans-serif;\
  3468. font-size:10pt;\
  3469. font-size-adjust:none;\
  3470. font-stretch:normal;\
  3471. font-style:normal;\
  3472. font-variant:normal;\
  3473. font-weight:normal;\
  3474. line-height:normal;\
  3475. }\
  3476. #sites {\
  3477. padding: 1px 10px;\
  3478. margin: 0px 0;display:inline-block;width:16em;\
  3479. }\
  3480. #dev_ver {\
  3481. color: #00FF00;\
  3482. background: Black;\
  3483. text-align: right;\
  3484. }\
  3485. #sites_suspended {\
  3486. padding: 1px 10px;\
  3487. margin: 0px 0;display:inline-block;width:16em;\
  3488. text-decoration: line-through;\
  3489. }\
  3490. .popup img.cntrl {\
  3491. position: absolute;\
  3492. right: -15px;\
  3493. top: -15px;\
  3494. }\
  3495. #bulk {\
  3496. font-size:8pt;\
  3497. color:orange;\
  3498. padding: 1px 10px;\
  3499. margin: 0px 0;\
  3500. display:inline-block;\
  3501. width:100px;\
  3502. }\
  3503. #note {\
  3504. font-size:7pt;\
  3505. color:gray;\
  3506. padding: 1px 10px;\
  3507. margin: 0px 0;display:inline-block;\
  3508. min-width:100px;\
  3509. }\
  3510. #rednote {\
  3511. font-size:7pt;\
  3512. color:red;\
  3513. padding: 1px 10px;\
  3514. margin: 0px 0;display:inline-block;\
  3515. }\
  3516. #configinfo {\
  3517. font-size:8pt;\
  3518. color:gray;\
  3519. padding: 1px 10px;\
  3520. margin: 0px 0;display:inline-block;width:60em;\
  3521. }\
  3522. #refAnonymizer, #inputColorLive, #inputColorprem, #hostSearchBox2, #hostSearchBox, #inputColorDead, #inputColorTemp, #inputColorCont, #selectAllButton, #selectNoneButton, #invertButton, #selectAllButton2, #selectNoneButton2, #invertButton2 {\
  3523. color:black;\
  3524. border-style: solid;\
  3525. border-width: 1px;\
  3526. border-color: gray;\
  3527. }\
  3528. #h3hideshowcontent {\
  3529. min-height:220px;\
  3530. max-height:220px;\
  3531. overflow:auto;\
  3532. display: none;\
  3533. padding: 10px 10px;\
  3534. }\
  3535. #specinfo{\
  3536. font-size:14px;\
  3537. }\
  3538. .warlc-ui-tab {\
  3539. height:300px;\
  3540. overflow:auto;\
  3541. }\
  3542. #warlcsitelist2, #warlcsitelist1 {\
  3543. height:220px;\
  3544. border-top: 1px solid #ddd;\
  3545. padding-top: 5px;\
  3546. overflow:auto;\
  3547. }\
  3548. input:hover+label {\
  3549. background:#F1F77C;\
  3550. font-size:110%;\
  3551. }\
  3552. ';
  3553.  
  3554. GM_addStyle(configcss);
  3555.  
  3556. var customRulesRefHTML =
  3557. '\
  3558. <br>\
  3559. A custom rule consists of <b>commands</b>. A command must be on its own line and in this form:<br>\
  3560. <b>@keyword</b> <i>parameter</i>\
  3561. <br><br>\
  3562. Empty lines, lines containing only whitespace and lines starting with // are ignored. Whitespace before and after a keyword is also ignored. Keywords are not case sensitive. \
  3563. <br><br>\
  3564. A special type of keyword is <b>@customrule</b> and its forms. This command marks the start of a new rule definition and also the rule type.\
  3565. Its <i>parameter</i> is the name of the rule. The name can contain letters, digits, periods, dashes and underscores and can be up to 30 characters long.\
  3566. At this point, there are no other restrictions for rule naming, however, in future versions, the name can be used to identify and catalogize custom rules.\
  3567. Therefore it is strongly recommended to use host names like <i>example.com</i> or <i>filehost.co.uk</i>. If the name is invalid, previous rule is saved,\
  3568. but all commands until the next valid @customrule are ignored.<br><br>\
  3569. Available forms and types:\
  3570. <ul>\
  3571. <li><b>@customrule</b> <i>name</i> - Classic checking. To determine whether a link is alive or dead, it is loaded and searched for specific patterns.\
  3572. <li><b>@customrule_headers</b> <i>name</i> - Only headers are loaded. Use for direct download hosts (e.g. if you are a paying member), where classic checking would silently download the whole file.\
  3573. <li><b>@customrule_obsolete</b> <i>name</i> - Nothing is loaded and no search patterns are needed. Links matching this rule are immediately deemed dead.\
  3574. <li><b>@#customrule</b>\, <b>@#customrule_headers</b>\, <b>@#customrule_obsolete</b> - write # after @ to quickly disable the whole rule. It is still parsed and checked for errors, but not used.\
  3575. </ul>\
  3576. Other available commands:<br>\
  3577. (Note: There can be more than 1 (up to 10) of these commands per rule. In that case, any of them will work.)\
  3578. <ul>\
  3579. <li><b>@baseurl</b> <i>url_pattern</i> - required. Used to find links for the rule. <i>url_pattern</i> must be the constant part of the url before, including and after the first slash.\
  3580. It can also specify multiple (up to 10) Top Level Domains (.com, .net etc.)<br>\
  3581. <ul>examples:<br>\
  3582. <li>good: <i>filehost.com/download/</i><br>\
  3583. <li>good: <i>download.filehost.net/?d=</i><br>\
  3584. <li>good: <i>filehost. com net co.uk /</i> - multiple TLDs (note the spaces before, between and after TLDs)<br>\
  3585. <li>ok: <i>filehost.com/</i> - works, but will also find links like filehost.com/login etc. Sometimes it\'s unavoidable though.<br>\
  3586. <li>bad: <i>d8523.filehost.com/</i> - d8523 probably is not constant<br>\
  3587. <li>bad: <i>filehost.com/3bfiq5d1</i> - 3bfiq5d1 probably is not constant<br>\
  3588. <li>bad: <i>filehost.com</i> - no slash<br>\
  3589. </ul>\
  3590. \
  3591. <li><b>@alivematch</b> <i>pattern</i> - ignored for type OBSOLETE, required for others. If <i>pattern</i> is found in the server\'s response, the link is deemed alive.\
  3592. Two or more spaces in the pattern will match any whitespace (spaces, tabulators, newlines). <i>&lt;div&gt;&nbsp;&nbsp;&lt;p&gt;</i> will match \
  3593. &lt;div&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;p&gt; even if there are new lines, tabulators etc.\
  3594. <li><b>@deadmatch</b> <i>pattern</i> - ignored for OBSOLETE, required for others. (For HEADERS some servers return 404 Error \
  3595. which is automatically used to deem the link dead and therefore <i>pattern</i> is never used. In that case, just write some rubbish there.)\
  3596. Two spaces again match any whitespace.\
  3597. <li><b>@unavamatch</b> <i>pattern</i> - optional, ignored for OBSOLETE and HEADERS. If found, the link is deemed temporarily unavailable.\
  3598. Two spaces again match any whitespace.\
  3599. <li><b>@alivelink</b> <i>url</i> - optional, ignored for OBSOLETE. It\'s not really a part of the rule, it\'s just an example link to test the rule. \
  3600. <li><b>@deadlink</b> <i>url</i> - optional. Example dead link.\
  3601. </ul>\
  3602. \
  3603. ';
  3604.  
  3605. //close image and css taken from = http://www.sohtanaka.com/web-design/examples/css-popup icon_close.png;
  3606. var configurationinnerHTML =
  3607. '<div id="fade"></div>\
  3608. <div class="popup_block">\
  3609. <div class="popup">\
  3610. <a href="#"><img id="imghideshow" title="Close" class="cntrl" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAfCAYAAAD0ma06AAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAY1SURBVHjapFZbbFRVFN0zd6Yz08dMoUNf9EGxUItJK62I4AOJEYiQoqE+0OgHCiqG+PgQozH6ofyIJiYEMRqNJpggHySlrRM+hCAtajAUaGgEi9BBSilMO0PnfWeOa597bjt9AEVvsubOPWefs/br7H0sQgj6P4/FYrk9+WkSuoAHgCrgLvV9DLgMdID02rQZmfAmaAJaxS2edDr9s67rL7EB/9XCUuALoEl+pZJEvTAo8A9s6iVKxojKYWheAWxuIMr2GGKp1KHh4eF3vF4vW59me6ZD2Ajsle6LXify7SI68iNROIgtIKtpBvQEB5DI7iC6Zw3Rmi1EM0vlBsFg8OX8/PxvWQdFKm5E2KhiQ9R9iOjL17E6QFRUhAGQpFNjklYrhhT6YbndTtT8LtGjG+T0lStXNhcVFTGpnkE8jpAT4hdgNvm+Ivr+AyIHtM+Fu3Ss0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Hc5zenaV7p0PyRB7XkR7vfa4IlZtT69fbVKywyafh8HODHN+WfhH4FnD2alN1B7AdOAcMeT29HfiZJ5oZ3sHrgAeBvcCANzBsHu7Ohe2/AwDnNnxcIIMIUgAAAABJRU5ErkJggg=="></img>&nbsp;W.A.R. Links Checker Customized Premium Link version Configuration</div>\
  3612. <div id="warlc-conf-tabs">\
  3613. <ul>\
  3614. <li><a href="#tabs-1">Filehostings</a></li>\
  3615. <li><a href="#tabs-2">Containers</a></li>\
  3616. <li><a href="#tabs-5">Custom rules</a></li>\
  3617. <li><a href="#tabs-3">Settings</a></li>\
  3618. <li><a href="#tabs-4">About</a></li>\
  3619. </ul>\
  3620. <div id="tabs-1" class="warlc-ui-tab">\
  3621. <div class="warlc-ui-buttonset">\
  3622. <input type="button" class="warlc-ui-select-all" value="Select All">\
  3623. <input type="button" class="warlc-ui-select-none" value="Select None">\
  3624. <input type="button" class="warlc-ui-select-invert" value="Invert">\
  3625. </div><br>\
  3626. <div>Search: <input type="textbox" id="hostSearchBox" value=""></div><br>\
  3627. <div id="warlcsitelist1"><span>Empty</span></div>\
  3628. </div>\
  3629. <div id="tabs-2" class="warlc-ui-tab">\
  3630. <div class="warlc-ui-buttonset">\
  3631. <input type="button" class="warlc-ui-select-all" value="Select All">\
  3632. <input type="button" class="warlc-ui-select-none" value="Select None">\
  3633. <input type="button" class="warlc-ui-select-invert" value="Invert">\
  3634. </div><br>\
  3635. <div>Search: <input type="textbox" id="hostSearchBox2" value=""></div><br>\
  3636. <div id="warlcsitelist2"><span>Empty</span></div>\
  3637. </div>\
  3638. <div id="tabs-5" class="warlc-ui-tab">\
  3639. <div class="warlcsettings">\
  3640. <fieldset><input type="checkbox" id="Custom_rules"> Enable custom rules <div id="bulk">EXPERIMENTAL</div></fieldset>\
  3641. <br>\
  3642. <div>Edit custom rules: \
  3643. <a href="#" id="showCustomRulesReference">(<b>Click here to show/hide the reference</b>)</a>\
  3644. <div id="customRulesReference" style="display:none;">'
  3645. + customRulesRefHTML + '\
  3646. </div>\
  3647. <textarea style="width:100%;height:200px;" id="Custom_rules_text"></textarea>\
  3648. </div>\
  3649. </div>\
  3650. </div>\
  3651. <div id="tabs-3" class="warlc-ui-tab">\
  3652. <div class="warlcsettings">\
  3653. <fieldset>\
  3654. <p><input type="checkbox" id="Keyboard_functions"> Enable keyboard shortcuts</p>\
  3655. <div id="configinfo">' + first_key_keycodename + '+' + second_key_keycodename + '+' + CONFIGURATION_KEY + ' = Configuration <br/>' + first_key_keycodename + '+' + second_key_keycodename + '+' + CHECK_ALL_LINKS_KEY + ' = Check all the links' + '<br/>' + first_key_keycodename + '+' + second_key_keycodename + '+' + copy_to_dead_key + ' = Copy found dead links to clipboard' + '<br/>' + first_key_keycodename + '+' + second_key_keycodename + '+' + toggle_autocheck_key + ' = Autocheck ON/OFF' + '<br/>' + first_key_keycodename + '+' + second_key_keycodename + '+' + toggle_Enable_Anonymizer_key + ' = Anonymizer ON/OFF' + '</div>\
  3656. </fieldset>\
  3657. <fieldset>\
  3658. <p><input type="checkbox" id="Color_DL_links"> Color DL links</p>\
  3659. <div id="sites"><label for="inputColorLive">Live links color</label><input type="text" id="inputColorLive" style="background:' + Live_links_color + ';" value="' + Live_links_color + '"></div>\
  3660. <div id="sites"><label for="inputColorDead">Dead links color</label><input type="text" id="inputColorDead" style="background:' + Dead_links_color + ';" value="' + Dead_links_color + '"></div><br>\
  3661. <div id="sites"><label for="inputColorTemp">Temp. unavailable</label><input type="text" id="inputColorTemp" style="background:' + Temp_unavailable_links_color + ';" value="' + Temp_unavailable_links_color + '"></div>\
  3662. <div id="sites"><label for="inputColorCont">Container links color</label><input type="text" id="inputColorCont" style="background:' + Container_links_color + ';" value="' + Container_links_color + '"></div><br>\
  3663. <div id="sites"><label for="inputColorprem">Premium links color</label><input type="text" id="inputColorprem" style="background:' + Premium_links_color + ';" value="' + Premium_links_color + '"></div>\
  3664. <div id="configinfo">For no color leave a field blank.<br>Standard HTML color names are supported. See <a href="http://www.w3schools.com/html/html_colornames.asp">w3schools.com</a> for more info.</div><br>\
  3665. <p><input type="checkbox" id="Show_line_through_in_dead_links"> Show line through in dead links</p>\
  3666. <p><input type="checkbox" id="Show_black_background_in_DL_links"> Show black background in DL links</p>\
  3667. <p><input type="checkbox" id="Do_not_linkify_DL_links"> Do NOT linkify DL links</p>\
  3668. <p><input type="checkbox" id="Allow_spaces_in_DL_links"> Allow spaces in DL links<br><div id="configinfo">Note: All links must end with a new line!</div></p>\
  3669. <p><input type="checkbox" id="Display_full_links_in_link_containers"> Display full links in link containers</p><br>\
  3670. <fieldset>\
  3671. <p><input type="radio" name="warlciconset" value="0"> No icons</p>\
  3672. <p><input type="radio" name="warlciconset" value="1"> <img src=" ' + PAW_ICON_GREEN + '"> <img src=" ' + PAW_ICON_RED + '"> <img src=" ' + PAW_ICON_YELLOW + '"> <img src=" ' + PAW_ICON_PINK + '"></p>\
  3673. <p><input type="radio" name="warlciconset" value="2"> <img src=" ' + RSLC_ICON_GREEN + '"> <img src=" ' + RSLC_ICON_RED + '"> <img src=" ' + RSLC_ICON_YELLOW + '"> <img src=" ' + RSLC_ICON_PINK + '"></p>\
  3674. </fieldset>\
  3675. </fieldset>\
  3676. <fieldset>\
  3677. <div id="sites"><input type="checkbox" id="Autocheck"> Autocheck</div><br><div id="configinfo">Script starts check automatically.</div><br>\
  3678. </fieldset>\
  3679. <fieldset>\
  3680. <div id="sites"><input type="checkbox" id="Show_progress_stats"> Show progress stats</div><br>\
  3681. </fieldset>\
  3682. <fieldset>\
  3683. <div id="sites"><input type="checkbox" id="Display_tooltip_info"> Display tooltip info</div><div id="bulk">EXPERIMENTAL</div><br><div id="configinfo">Note: File name, file size, error messages etc.</div><br>\
  3684. </fieldset>\
  3685. <fieldset>\
  3686. <p><input type="checkbox" id="Enable_Anonymizer"> Enable Anonymizer</div><div id="bulk">EXPERIMENTAL Note: Checkbox does not work use CTRL+ALT+Z.</p>\
  3687. <div id="sites"><label for="refAnonymizer">Refererer anonymizing service</label><input type="text" id="refAnonymizer" value="' + Ref_anonymize_service + '"></div>\
  3688. </fieldset>\
  3689. </div>\
  3690. </div>\
  3691. <div id="tabs-4" class="warlc-ui-tab">\
  3692. <p><b>Author:</b> <a href="http://www.mentalps.5gbfree.com/viewtopic.php?f=2&t=6">mentalps</a></p>\
  3693. <br />\
  3694. <p><b>Currently supported:</b><br>\
  3695. Filehostings: ' + allHostNames.length + '<br />\
  3696. Containers: ' + allContainerNames.length + '<br />\
  3697. Obsolete sites: ' + allObsoleteNames.length + '<br /></p>\
  3698. <br />\
  3699. <p><b>Based on:</b><br>\
  3700. <a href="http://userscripts-mirror.org/scripts/show/125631.html">W.A.R. Links Checker - Dev</a></p>\
  3701. <br />\
  3702. <p><b>Uses:</b></p>\
  3703. <p>adam_3\'s <a href="http://userscripts-mirror.org/scripts/show/2254">Linkify ting</a> (modified)</p>\
  3704. <p><a href="http://jquery.com/">jQuery</a> JavaScript Library</p>\
  3705. <br />\
  3706. <p>License: GPL version 3 or any later version (<a href="http://www.gnu.org/copyleft/gpl.html">http://www.gnu.org/copyleft/gpl.html</a>)</p>\
  3707. </div>\
  3708. </div>\
  3709. </div>\
  3710. </div>';
  3711. $('body').append('<div id="hideshow">' + configurationinnerHTML + '</div>');
  3712. $("#warlc-conf-tabs").tabs({ fx: { opacity: 'toggle', duration: 'fast' } });
  3713. $("#imghideshow").click(function(event){$("#hideshow").hide(); event.preventDefault();});
  3714. var elmHostList = document.getElementById("warlcsitelist1");
  3715. var elmContainerList = document.getElementById("warlcsitelist2");
  3716. buildSettings();
  3717. buildSitelist("", allHostNames, elmHostList);
  3718. buildSitelist("", allContainerNames, elmContainerList);
  3719. if (DEBUG_MODE)
  3720. {
  3721. //log all sites availability status
  3722. diagSites();
  3723. }
  3724. //handler for checkbox state change
  3725. function changeConfiguration(e)
  3726. {
  3727. var element = e.target;
  3728.  
  3729. if (element.type == 'checkbox')
  3730. {
  3731. if (element.checked == 1)
  3732. {
  3733. GM_setValue(element.id, true);
  3734. }
  3735. else
  3736. {
  3737. GM_setValue(element.id, false);
  3738. }
  3739.  
  3740. }
  3741. setVariables();
  3742. }
  3743.  
  3744. //Selects all filehosting checkboxes
  3745. function selectAll()
  3746. {
  3747. $(":checkbox:visible:not(:checked)").prop("checked",true)
  3748. .each(function(index, element){GM_setValue(this.id, true)});
  3749. }
  3750.  
  3751. //Deselects all filehosting checkboxes
  3752. function selectNone()
  3753. {
  3754. $(":checkbox:visible:checked").prop("checked",false)
  3755. .each(function(index, element){GM_setValue(this.id, false)});
  3756. }
  3757.  
  3758. //Inverts filehosting checkboxes selection
  3759. function selectInvert()
  3760. {
  3761. var $checked = $(":checkbox:visible:checked");
  3762. var $unchecked = $(":checkbox:visible:not(:checked)");
  3763. $unchecked.prop("checked",true)
  3764. .each(function(index, element){GM_setValue(this.id, true)});
  3765. $checked.prop("checked",false)
  3766. .each(function(index, element){GM_setValue(this.id, false)});
  3767. }
  3768. //toggles anonymizer on off
  3769. function Enable_Anonymizer()
  3770. {
  3771. var $checked = $(":checkbox:visible:checked");
  3772. var $unchecked = $(":checkbox:visible:not(:checked)");
  3773. $unchecked.prop("checked",true)
  3774. .each(function(index, element){GM_setValue(this.id, true)});
  3775. $checked.prop("checked",false)
  3776. .each(function(index, element){GM_setValue(this.id, false)});
  3777. }
  3778.  
  3779. function changeRefAnonymizer(){
  3780. GM_setValue("Ref_anonymize_service", $("#refAnonymizer").attr("value"));
  3781. }
  3782.  
  3783. //Sets live links color
  3784. function changeColorLive()
  3785. {
  3786. var inColorLive = document.getElementById("inputColorLive");
  3787. inColorLive.style.background = inColorLive.value;
  3788. GM_setValue("Live_links_color", inColorLive.value);
  3789. }
  3790.  
  3791. //Sets dead links color
  3792. function changeColorDead()
  3793. {
  3794. var inColorDead = document.getElementById("inputColorDead");
  3795. inColorDead.style.background = inColorDead.value;
  3796. GM_setValue("Dead_links_color", inColorDead.value);
  3797. }
  3798.  
  3799. //Sets temp. unavailable links color
  3800. function changeColorTemp()
  3801. {
  3802. var inColorTemp = document.getElementById("inputColorTemp");
  3803. inColorTemp.style.background = inColorTemp.value;
  3804. GM_setValue("Temp_unavailable_links_color", inColorTemp.value);
  3805. }
  3806.  
  3807. //Sets temp. unavailable links color
  3808. function changeColorCont()
  3809. {
  3810. var inColorCont = document.getElementById("inputColorCont");
  3811. inColorCont.style.background = inColorCont.value;
  3812. GM_setValue("Container_links_color", inColorCont.value);
  3813. }
  3814. //Sets premium. links color
  3815. function changeColorprem()
  3816. {
  3817. var inColorprem = document.getElementById("inputColorprem");
  3818. inColorprem.style.background = inColorprem.value;
  3819. GM_setValue("Premium_links_color", inColorprem.value);
  3820. }
  3821.  
  3822. //Diagnose sites for availability
  3823. function diagSites()
  3824. {
  3825. var boxes = document.getElementById("warlcsitelist1").getElementsByTagName("input");
  3826.  
  3827. for (var i = 0, n = boxes.length - 1; i < n; i++)
  3828. {
  3829. if (boxes[i].type == "checkbox")
  3830. {
  3831. checkAvailability(boxes[i]);
  3832. }
  3833. }
  3834.  
  3835. boxes = document.getElementById("warlcsitelist2").getElementsByTagName("input");
  3836.  
  3837. for (var i = 0, n = boxes.length - 1; i < n; i++)
  3838. {
  3839. if (boxes[i].type == "checkbox")
  3840. {
  3841. checkAvailability(boxes[i]);
  3842. }
  3843. }
  3844.  
  3845. function checkAvailability(cbElm)
  3846. {
  3847. var cb = cbElm;
  3848. GM_xmlhttpRequest(
  3849. {
  3850. method: 'HEAD',
  3851. url: 'http://' + cb.nextSibling.textContent.replace(' ', ''),
  3852. headers: {
  3853. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  3854. 'Accept': 'text/xml',
  3855. 'Referer': ""
  3856. },
  3857. onload: function (result)
  3858. {
  3859. if (result.status != 200)
  3860. {
  3861. GM_log(cb.nextSibling.textContent + ' --- status: [' + result.status + '] ' + result.statusText + ', final url: ' + result.finalUrl);
  3862. }
  3863. },
  3864. onerror: function (result)
  3865. {
  3866. if (result.status != 200)
  3867. {
  3868. GM_log(cb.nextSibling.textContent + ' --- status: [' + result.status + '] ' + result.statusText + ', final url: ' + result.finalUrl);
  3869. }
  3870. }
  3871. });
  3872. }
  3873. }
  3874. function buildSettings()
  3875. {
  3876. $(".warlcsettings :checkbox").each(function(){
  3877. $(this).prop("checked", GM_getValue($(this).attr("id")))
  3878. .click(function(e){
  3879. GM_setValue($(this).attr("id"), $(this).prop("checked"));
  3880. setVariables();
  3881. });
  3882. })
  3883. }
  3884. //Dynamic build of host list
  3885. //param search [string] searches for hostnames matching search substring
  3886. //param siteNames [array] array of site names
  3887. //param targetNode [DOM Node] where the list should be built
  3888. // first child node is replaced
  3889. function buildSitelist(search, siteNames, targetNode)
  3890. {
  3891. var searchRegex = new RegExp("\\|?([\\w\\.-]*" + search.replace(/\./g,"\\.").replace(/-/g, "\\-") + "[\\w\\.-]*)\\|?", "i");
  3892. var $targetNode = $(targetNode).empty();
  3893. var searchedSite = "";
  3894. $.each(siteNames, function(i, site){
  3895. if (searchedSite = site.match(searchRegex))
  3896. {
  3897. var baseSite = site.replace(/\|.+/, ""); //filehosting main domain
  3898. //ensuring backward compatibility with the rest of code, to be refactored later
  3899. var oldRSLCvalue = "Check_" + baseSite.replace(/\|.+/, "").replace(/\./g,"_dot_").replace(/-/g, "_dash_") + "_links";
  3900. //
  3901. $targetNode.append('<input type="checkbox" id="' + oldRSLCvalue +'" />\
  3902. <label for="' + oldRSLCvalue + '">' + searchedSite[1] + '</label>' +
  3903. ((searchedSite[1] != baseSite) ? ('<div id="note"> ( ~ ' + baseSite + ' )</div>') : (""))
  3904. );
  3905. $("#" + oldRSLCvalue).prop("checked", GM_getValue(oldRSLCvalue, false))
  3906. .change(changeConfiguration);
  3907. $targetNode.append('<br />');
  3908. }
  3909. });
  3910. $targetNode.append("<hr>");
  3911. //obsolete hosts checkbox
  3912. $targetNode.append('<input type="checkbox" id="Obsolete_file_hosts" /><label for="Obsolete_file_hosts">Obsolete file hosts</label>');
  3913. $("#Obsolete_file_hosts").prop("checked", GM_getValue("Obsolete_file_hosts", false))
  3914. .change(changeConfiguration);
  3915. $targetNode.append('<br />');
  3916. var foundName = "";
  3917. $.each(allObsoleteNames, function(i, site){
  3918. if (foundName = allObsoleteNames[i].match(searchRegex))
  3919. {
  3920. $targetNode.append('<div id="note">' + foundName[1] + '</div>');
  3921. }
  3922. })
  3923. // if (elmSpan.children.length == 1) // no matches
  3924. // {
  3925. // elmSpan.innerHTML = "";
  3926. // elmSpan.appendChild(document.createTextNode('No matches'));
  3927. // }
  3928. }
  3929. var hostSearchBox = document.getElementById("hostSearchBox");
  3930. hostSearchBox.addEventListener('keyup', function(){buildSitelist(hostSearchBox.value, allHostNames, elmHostList);}, false);
  3931. var hostSearchBox2 = document.getElementById("hostSearchBox2");
  3932. hostSearchBox2.addEventListener('keyup', function(){buildSitelist(hostSearchBox2.value, allContainerNames, elmContainerList);}, false);
  3933. $(".warlc-ui-select-all").click(selectAll).button();
  3934. $(".warlc-ui-select-none").click(selectNone).button();
  3935. $(".warlc-ui-select-invert").click(selectInvert).button();
  3936. $(".warlc-ui-buttonset").buttonset();
  3937. var inColorLive = document.getElementById("inputColorLive");
  3938. inColorLive.addEventListener('keyup', changeColorLive, false);
  3939.  
  3940. var inColorDead = document.getElementById("inputColorDead");
  3941. inColorDead.addEventListener('keyup', changeColorDead, false);
  3942.  
  3943. var inColorTemp = document.getElementById("inputColorTemp");
  3944. inColorTemp.addEventListener('keyup', changeColorTemp, false);
  3945.  
  3946. var inColorCont = document.getElementById("inputColorCont");
  3947. inColorCont.addEventListener('keyup', changeColorCont, false);
  3948. var inColorprem = document.getElementById("inputColorprem");
  3949. inColorprem.addEventListener('keyup', changeColorprem, false);
  3950. $("#refAnonymizer").change(changeRefAnonymizer);
  3951. //buttons and edit boxes init end
  3952.  
  3953. //icon sets radio buttons
  3954. var radioButtons = document.getElementsByName("warlciconset");
  3955. radioButtons[Icon_set].checked = "checked";
  3956.  
  3957. radioButtons[0].addEventListener("change", updateIconSet);
  3958. radioButtons[1].addEventListener("change", updateIconSet);
  3959. radioButtons[2].addEventListener("change", updateIconSet);
  3960. function updateIconSet()
  3961. {
  3962. GM_setValue("Icon_set", this.value * 1);
  3963. }
  3964. //
  3965. $('#showCustomRulesReference').click(function(e){
  3966. e.preventDefault();
  3967. $('#customRulesReference').toggle();
  3968. });
  3969. $('#Custom_rules_text')
  3970. .val(Custom_rules_text)
  3971. .change(saveCustomRules);
  3972. /*function checkCustomRules(e)
  3973. {
  3974. GM_log(this.value);
  3975. }*/
  3976. function saveCustomRules(e)
  3977. {
  3978. var cr = parseCustomRules(this.value);
  3979. if (cr.info.length)
  3980. alert('Custom rules saved. However, there were ' + cr.error + ' errors, ' + cr.warning + ' warnings, ' + cr.note + ' notes found.\n' + cr.rules.length + ' valid rules found.\n\n' + JSON.stringify(cr.info, null, ' '));
  3981. GM_setValue('Custom_rules_text', this.value);
  3982. GM_setValue('last_custom_rules_nag', ''+new Date().getTime()); //reset nag
  3983. }
  3984. }
  3985.  
  3986. //begin standard link checking algorithm
  3987. function start(filterId)
  3988. {
  3989. var doNotLinkify = Do_not_linkify_DL_links;
  3990.  
  3991. // USER SELECTED FILE HOSTS INITIALIZATION START
  3992. var http_file_hosts = new Array(); //standard hostings
  3993. var http_file_hosts_coded = new Array(); //hostings which has to be decoded to obtain real checkable link
  3994. var http_file_hosts_obsolete = new Array(); //dead hostings
  3995. var http_file_hosts_headers_only = new Array(); //hostings with direct download, must be handled via headers only
  3996.  
  3997. initFileHosts();
  3998. initFileHostsHeadersOnly();
  3999. initFileHostsCustom(); //CustomRules
  4000. // USER SELECTED FILE HOSTS INITIALIZATION END
  4001.  
  4002. // LINKIFICATION START
  4003. var totalxpath = '';
  4004. var totalxpathcoded = '';
  4005. var totalxpathobsolete = '';
  4006. var totalxpathheadersonly = '';
  4007. var totalourls = '';
  4008.  
  4009. var filehostLen = http_file_hosts.length;
  4010. var filehostCodedLen = http_file_hosts_coded.length;
  4011. var filehostObsoleteLen = http_file_hosts_obsolete.length;
  4012. var filehostHeadersOnlyLen = http_file_hosts_headers_only.length;
  4013.  
  4014. var filehostIdx = filehostLen;
  4015. var filehostCodedIdx = filehostCodedLen;
  4016. var filehostObsoleteIdx = filehostObsoleteLen;
  4017. var filehostHeadersOnlyIdx = filehostHeadersOnlyLen;
  4018.  
  4019. if ((filehostIdx == 0) && (filehostCodedIdx == 0) && (filehostHeadersOnlyIdx == 0) && (filehostObsoleteIdx == 0))
  4020. return;
  4021.  
  4022. while (filehostIdx--)
  4023. {
  4024. totalourls += http_file_hosts[filehostIdx][0] + '|';
  4025. totalxpath += http_file_hosts[filehostIdx][4] + '|';
  4026. }
  4027.  
  4028. while (filehostCodedIdx--)
  4029. {
  4030. totalourls += http_file_hosts_coded[filehostCodedIdx][0] + '|';
  4031. totalxpathcoded += http_file_hosts_coded[filehostCodedIdx][3] + '|';
  4032. }
  4033.  
  4034. while (filehostObsoleteIdx--)
  4035. {
  4036. totalourls += http_file_hosts_obsolete[filehostObsoleteIdx][0] + '|';
  4037. totalxpathobsolete += http_file_hosts_obsolete[filehostObsoleteIdx][1] + '|';
  4038. }
  4039.  
  4040. while (filehostHeadersOnlyIdx--)
  4041. {
  4042. totalourls += http_file_hosts_headers_only[filehostHeadersOnlyIdx][0] + '|';
  4043. totalxpathheadersonly += http_file_hosts_headers_only[filehostHeadersOnlyIdx][3] + '|';
  4044. }
  4045.  
  4046. totalourls = totalourls.replace(/\|$/g, "");
  4047. //TODO: further refactoring needed
  4048. totalxpath = totalxpath.replace(/\]\|\/\/a\[/g, " or ");
  4049. totalxpath = totalxpath.replace(/\]\|/, ')]');
  4050. totalxpathcoded = totalxpathcoded.replace(/\]\|\/\/a\[/g, " or ");
  4051. totalxpathcoded = totalxpathcoded.replace(/\]\|/, ')]');
  4052. totalxpathobsolete = totalxpathobsolete.replace(/\]\|\/\/a\[/g, " or ");
  4053. totalxpathobsolete = totalxpathobsolete.replace(/\]\|/, ')]');
  4054. totalxpathheadersonly = totalxpathheadersonly.replace(/\]\|\/\/a\[/g, " or ");
  4055. totalxpathheadersonly = totalxpathheadersonly.replace(/\]\|/, ')]');
  4056. if (filterId != null) //insert id restriction in the xpath
  4057. {
  4058. totalxpath = totalxpath.replace(/\[/g, "[@class='" + filterId + "' and (");
  4059. totalxpathcoded = totalxpathcoded.replace(/\[/g, "[@class='" + filterId + "' and (");
  4060. totalxpathobsolete = totalxpathobsolete.replace(/\[/g, "[@class='" + filterId + "' and (");
  4061. totalxpathheadersonly = totalxpathheadersonly.replace(/\[/g, "[@class='" + filterId + "' and (");
  4062. }
  4063. else
  4064. {
  4065. totalxpath = totalxpath.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4066. totalxpathcoded = totalxpathcoded.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4067. totalxpathobsolete = totalxpathobsolete.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4068. totalxpathheadersonly = totalxpathheadersonly.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4069. }
  4070. linkify(totalourls);
  4071. //LINKIFICATION END
  4072. //ENCRYPTED LINKS PROCESSING START
  4073. if (http_file_hosts_coded.length > 0)
  4074. {
  4075. var linksCoded = document.evaluate(totalxpathcoded, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4076.  
  4077. // decrypt coded links (redirects, link protectors etc.)
  4078. if (linksCoded.snapshotLength > 0)
  4079. {
  4080. var link;
  4081. var reallinkreg;
  4082. var reallinkcorrection;
  4083.  
  4084. if (filterId == null)
  4085. {
  4086. cLinksTotal += linksCoded.snapshotLength;
  4087. }
  4088.  
  4089. var y = linksCoded.snapshotLength - 1;
  4090. do
  4091. {
  4092. // linksCoded.snapshotItem(y).id = 'processing_link';
  4093. link = linksCoded.snapshotItem(y);
  4094. filehostIdx = filehostCodedLen;
  4095. while (filehostIdx--)
  4096. {
  4097. if (link.href.match(http_file_hosts_coded[filehostIdx][0]))
  4098. {
  4099. link.href = link.href.replace(/http:\/\/.*?(?:\?|=)http:\/\//, 'http://');
  4100. reallinkreg = http_file_hosts_coded[filehostIdx][1];
  4101. reallinkcorrection = http_file_hosts_coded[filehostIdx][2];
  4102.  
  4103. decurl(link, reallinkreg, reallinkcorrection);
  4104. break;
  4105. }
  4106. }
  4107. }
  4108. while (y--);
  4109. }
  4110. }
  4111. //ENCRYPTED LINKS PROCESSING END
  4112.  
  4113. //STANDARD LINKCHECKING START
  4114. if (http_file_hosts.length > 0)
  4115. {
  4116. var lianks = document.evaluate(totalxpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4117.  
  4118. if (filterId == null)
  4119. {
  4120. cLinksTotal += lianks.snapshotLength;
  4121. }
  4122.  
  4123. if (lianks.snapshotLength > 0)
  4124. {
  4125. var link;
  4126.  
  4127. var URL = "";
  4128. var name = "";
  4129. var isAliveRegex = "";
  4130. var isDeadRegex = "";
  4131. var isUnavaRegex = "";
  4132. var ispremRegex = "";
  4133. var tryLoop = false;
  4134.  
  4135. var y = lianks.snapshotLength;
  4136.  
  4137. while (y--)
  4138. {
  4139. link = lianks.snapshotItem(y);
  4140.  
  4141. filehostIdx = filehostLen;
  4142. while (filehostIdx--)
  4143. {
  4144. if (link.href.match(http_file_hosts[filehostIdx][0]))
  4145. {
  4146. link.href = link.href.replace(/http:\/\/.*?http:\/\//, 'http://'); //anonymizers
  4147. isAliveRegex = http_file_hosts[filehostIdx][1];
  4148. isDeadRegex = http_file_hosts[filehostIdx][2];
  4149. isUnavaRegex = http_file_hosts[filehostIdx][3];
  4150. ispremRegex = http_file_hosts[filehostIdx][6];
  4151. tryLoop = http_file_hosts[filehostIdx][5];
  4152.  
  4153. geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, tryLoop);
  4154.  
  4155. break;
  4156. }
  4157. }
  4158. }
  4159. }
  4160. }
  4161. //STANDARD LINKCHECKING END
  4162. //OBSOLETE FILE HOSTS PROCESSING START
  4163. if (filehostObsoleteLen > 0)
  4164. {
  4165. var obsoletelinks = document.evaluate(totalxpathobsolete, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4166.  
  4167. var obsoleteLink;
  4168.  
  4169. //check links
  4170. if (obsoletelinks.snapshotLength > 0)
  4171. {
  4172. var y = obsoletelinks.snapshotLength;
  4173.  
  4174. if (filterId == null)
  4175. {
  4176. cLinksTotal += y;
  4177. }
  4178.  
  4179. while (y--)
  4180. {
  4181. obsoleteLink = obsoletelinks.snapshotItem(y);
  4182.  
  4183. if (Display_tooltip_info)
  4184. {
  4185. obsoleteLink.warlc_error = 'Cause of error: <b>Obsolete filehosting.</b>';
  4186. }
  4187. displayTheCheckedLink(obsoleteLink, 'adead_link');
  4188. }
  4189. }
  4190. }
  4191. //OBSOLETE FILE HOSTS PROCESSING END
  4192.  
  4193. //DIRECT LINKCHECKING START
  4194. if (http_file_hosts_headers_only.length > 0)
  4195. {
  4196. var links = document.evaluate(totalxpathheadersonly, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4197.  
  4198. //check links
  4199. if (links.snapshotLength > 0)
  4200. {
  4201. var link;
  4202. var isAliveRegex;
  4203. var isDeadRegex;
  4204. var ispremRegex;
  4205.  
  4206. var y = links.snapshotLength;
  4207.  
  4208.  
  4209. if (filterId == null)
  4210. {
  4211. cLinksTotal += y;
  4212. }
  4213.  
  4214. while (y--)
  4215. {
  4216. // links.snapshotItem(y).id = 'processing_link';
  4217. link = links.snapshotItem(y);
  4218. filehostIdx = filehostHeadersOnlyLen;
  4219. while (filehostIdx--)
  4220. {
  4221. if (link.href.match(http_file_hosts_headers_only[filehostIdx][0]))
  4222. {
  4223. link.href = link.href.replace(/http:\/\/.*?(?:\?|=)http:\/\//, 'http://');
  4224. isAliveRegex = http_file_hosts_headers_only[filehostIdx][1];
  4225. isDeadRegex = http_file_hosts_headers_only[filehostIdx][2];
  4226. ispremRegex = http_file_hosts_headers_only[filehostIdx][3];
  4227.  
  4228. geturlHeader(link, isAliveRegex, isDeadRegex, ispremRegex);
  4229.  
  4230. break;
  4231. }
  4232. }
  4233. }
  4234.  
  4235. }
  4236. }
  4237. //DIRECT LINKCHECKING END
  4238.  
  4239.  
  4240. //finds the real url on the page, replaces link.href with it and calls geturl
  4241. function decurl(link, reallinkreg, reallinkcorrection)
  4242. {
  4243.  
  4244. GM_xmlhttpRequest(
  4245. {
  4246. method: 'GET',
  4247. url: link.href,
  4248. headers: {
  4249. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  4250. 'Accept': 'text/xml',
  4251. 'Referer': ""
  4252. },
  4253. onload: function (result)
  4254. {
  4255. // cLinksProcessed++;
  4256.  
  4257. var reallink = result.responseText.match(reallinkreg)[0];
  4258. reallink = reallink.replace(new RegExp(reallinkcorrection, "g"), "");
  4259.  
  4260. link.href = reallink;
  4261.  
  4262. var i = http_file_hosts.length - 1;
  4263. do
  4264. {
  4265. if ((reallink.match(http_file_hosts[i][0])))
  4266. {
  4267. link.href = link.href.replace(/http:\/\/.*?\?http:\/\//, 'http://');
  4268. var isAliveRegex = http_file_hosts[i][1];
  4269. var isDeadRegex = http_file_hosts[i][2];
  4270. var isUnavaRegex = http_file_hosts[i][3];
  4271. var ispremRegex = http_file_hosts[i][4];
  4272.  
  4273. geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, 50);
  4274.  
  4275. break;
  4276. }
  4277. }
  4278. while (i--);
  4279. }
  4280. });
  4281. }
  4282.  
  4283. function randUA()
  4284. {
  4285. //TODO
  4286. }
  4287. //Processes link
  4288. //
  4289. // [string] link link URL
  4290. // [string] isAliveRegex alive link regex
  4291. // [string] isDeadRegex dead link regex
  4292. // [string] isUnavaRegex unavailable link regex
  4293. // [string] ispremRegex premium link regex
  4294. // [boolean] tryLoop repeats request until succeeded
  4295. function geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, tryLoop)
  4296. {
  4297. GM_xmlhttpRequest(
  4298. {
  4299. method: 'GET',
  4300. url: link.href,
  4301. headers: {
  4302. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  4303. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  4304. 'Referer': ""
  4305. },
  4306. onload: function (result)
  4307. {
  4308. var res = result.responseText;
  4309. if (result.responseHeaders.match(/Content-Disposition: attachment; filename=/))//direct download, simple version
  4310. {
  4311. displayTheCheckedLink(link, 'alive_link');
  4312. return;
  4313. }
  4314.  
  4315. if (res.match(isAliveRegex))
  4316. {
  4317. displayTheCheckedLink(link, 'alive_link');
  4318. return;
  4319. }
  4320.  
  4321. if (res.match(isDeadRegex))
  4322. {
  4323. displayTheCheckedLink(link, 'adead_link');
  4324. return;
  4325. }
  4326.  
  4327. if (isUnavaRegex && res.match(isUnavaRegex))
  4328. {
  4329. displayTheCheckedLink(link, 'unava_link');
  4330. return;
  4331. }
  4332. if (res.match(ispremRegex))
  4333. {
  4334. displayTheCheckedLink(link, 'prem_link');
  4335. return;
  4336. }
  4337.  
  4338. var resStatus = result.status;
  4339.  
  4340. if (resStatus == 404)
  4341. {
  4342. displayTheCheckedLink(link, 'adead_link');
  4343. }
  4344. if (resStatus == 500 || resStatus == 503 || resStatus == 403) //not found/available/temp. unava
  4345. {
  4346. if (tryLoop)
  4347. {
  4348. //wait 1-5 seconds and repeat the request
  4349. setTimeout(function(){geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, tryLoop)}, 1000 + (Math.random() * 4000));
  4350. }
  4351. else
  4352. {
  4353. displayTheCheckedLink(link, 'unava_link');
  4354. }
  4355.  
  4356. return;
  4357. }
  4358. },
  4359. onerror: function ()
  4360. {
  4361. displayTheCheckedLink(link, 'unava_link');
  4362. }
  4363. });
  4364. }
  4365.  
  4366. function geturlHeader(link, isAliveRegex, isDeadRegex, ispremRegex)
  4367. {
  4368. GM_xmlhttpRequest(
  4369. {
  4370. method: 'HEAD',
  4371. url: link.href,
  4372. headers: {
  4373. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  4374. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  4375. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  4376. 'Referer': ""
  4377. },
  4378. onload: function (result)
  4379. {
  4380. var resStatus = result.status;
  4381. var resHeaders = "";
  4382. if (resStatus == 403 || resStatus == 404 || resStatus == 500) //not found/available
  4383. {
  4384. displayTheCheckedLink(link, 'adead_link');
  4385. return;
  4386. }
  4387.  
  4388. resHeaders = result.responseHeaders;
  4389.  
  4390. if (resHeaders.match(isDeadRegex))
  4391. {
  4392. displayTheCheckedLink(link, 'adead_link');
  4393. return;
  4394. }
  4395.  
  4396. if (resHeaders.match(isAliveRegex))
  4397. {
  4398. displayTheCheckedLink(link, 'alive_link');
  4399. return;
  4400. }
  4401. if (resHeaders.match(ispremRegex))
  4402. {
  4403. displayTheCheckedLink(link, 'prem_link');
  4404. return;
  4405. }
  4406. },
  4407. onerror: function ()
  4408. {
  4409. displayTheCheckedLink(link, 'unava_link');
  4410. }
  4411. });
  4412. }
  4413.  
  4414. //Delinkfifies the <a> element object
  4415. function delinkifyLink(link)
  4416. {
  4417. var spanElm = document.createElement("span");
  4418. spanElm.className = link.className;
  4419. spanElm.innerHTML = link.innerHTML;
  4420.  
  4421. if (Display_tooltip_info)
  4422. {
  4423. spanElm.href = link.href;
  4424. spanElm.warlc_error = link.warlc_error;
  4425. switch (link.className){
  4426. case "alive_link": spanElm.addEventListener("mouseover", displayTooltipInfo, false); break
  4427. case "adead_link": spanElm.addEventListener("mouseover", displayTooltipError, false); break;
  4428. case "unava_link": //reserved
  4429. case "prem_link": spanElm.addEventListener("mouseover", displayTooltipError, false); break;
  4430. default:
  4431. }
  4432. }
  4433. link.parentNode.replaceChild(spanElm, link);
  4434. }
  4435.  
  4436. //Assigns result status to the <a> element object and calls delinkifying eventually
  4437. //Possible result states: adead_link, alive_link, unava_link, prem_link
  4438. function displayTheCheckedLink(link, resultStatus)
  4439. {
  4440. link.className = resultStatus;
  4441. link.href = Ref_anonymize_service + link.href;
  4442. if (Display_tooltip_info)
  4443. {
  4444. switch (resultStatus){
  4445. case "alive_link": link.addEventListener("mouseover", displayTooltipInfo, false); break
  4446. case "adead_link": link.addEventListener("mouseover", displayTooltipError, false); break;
  4447. case "unava_link": //reserved
  4448. case "prem_link": link.addEventListener("mouseover", displayTooltipInfo, false); break
  4449. default:
  4450. }
  4451. }
  4452. if (doNotLinkify)
  4453. {
  4454. delinkifyLink(link);
  4455. }
  4456. cLinksProcessed++;
  4457.  
  4458. if (resultStatus == "alive_link")
  4459. {
  4460. cLinksAlive++;
  4461. return;
  4462. }
  4463.  
  4464. if (resultStatus == "adead_link")
  4465. {
  4466. cLinksDead++;
  4467. return;
  4468. }
  4469.  
  4470. if (resultStatus == "unava_link")
  4471. {
  4472. cLinksUnava++;
  4473. }
  4474. if (resultStatus == "prem_link")
  4475. {
  4476. cLinksprem++;
  4477. return;
  4478. }
  4479. }
  4480.  
  4481.  
  4482. function initFileHosts()
  4483. {
  4484.  
  4485. function addObsoleteHost(linkRegex, xpathEx)
  4486. {
  4487. var host = new Array(2);
  4488. host[0] = linkRegex;
  4489. host[1] = xpathEx;
  4490. http_file_hosts_obsolete.push(host);
  4491. }
  4492.  
  4493. //obsolete file hosts init start
  4494. if (Obsolete_file_hosts)
  4495. {
  4496. addObsoleteHost("uloz\.cz\/show\/file","//a[contains(@href,'uloz.cz')]");
  4497. addObsoleteHost("storage\\.to\/get","//a[contains(@href,'storage.to')]");
  4498. addObsoleteHost("iskladka\\.cz\/download","//a[contains(@href,'iskladka.cz')]");
  4499. addObsoleteHost("file-rack\\.com\/files","//a[contains(@href,'file-rack.com')]");
  4500. addObsoleteHost("fast-load\\.net\/(\/)?index","//a[contains(@href,'fast-load.net')]");
  4501. addObsoleteHost("subory\\.sk\/download","//a[contains(@href,'subory.sk')]");
  4502. addObsoleteHost("bigandfree\\.com\/\\d+","//a[contains(@href,'bigandfree.com')]");
  4503. addObsoleteHost("fileop\\.com\/\\w+","//a[contains(@href,'fileop.com')]");
  4504. addObsoleteHost("mujsoubor\\.cz\/file\/","//a[contains(@href,'mujsoubor.cz')]");
  4505. addObsoleteHost("sendfile\\.to\/\\w+","//a[contains(@href,'sendfile.to')]");
  4506. addObsoleteHost("superfastfile\\.com\/\\w+","//a[contains(@href,'superfastfile.com')]");
  4507. addObsoleteHost("quickyshare\\.com\/\\w+","//a[contains(@href,'quickyshare.com/')]");
  4508. addObsoleteHost("duckload\\.com\/(?:d|play)","//a[contains(@href,'duckload.com')]");
  4509. addObsoleteHost("uploadstore\\.net\/\\w+","//a[contains(@href,'uploadstore.net')]");
  4510. addObsoleteHost("meinupload\\.com\/dl\/\\d+","//a[contains(@href,'meinupload.com/dl')]");
  4511. addObsoleteHost("dualshare\\.com\/\\w+","//a[contains(@href,'dualshare.com')]");
  4512. addObsoleteHost("2xupload\\.(?:to|de)\/file\/\\w+","//a[contains(@href,'2xupload.to') or contains(@href,'2xupload.de')]");
  4513. addObsoleteHost("oxedion\\.com\/index\\.php\/download\/\\w+","//a[contains(@href,'oxedion.com/index')]");
  4514. addObsoleteHost("uploadline\\.com\/\\d+","//a[contains(@href,'uploadline.com')]");
  4515. addObsoleteHost("dll\\.bz\/file\/\\d+","//a[contains(@href,'dll.bz/file')]");
  4516. addObsoleteHost("movieshare\\.in\/\\w+","//a[contains(@href,'movieshare.in')]");
  4517. addObsoleteHost("milledrive\\.com\/files\/\\d+","//a[contains(@href,'milledrive.com')]");
  4518. addObsoleteHost("quickupload\\.net\/\\w+","//a[contains(@href,'quickupload.net')]");
  4519. addObsoleteHost("safelink\\.in\/\\w+","//a[contains(@href,'safelink.in')]");
  4520. addObsoleteHost("pyramidfiles\\.com\/\\w+","//a[contains(@href,'pyramidfiles.com/')]");
  4521. addObsoleteHost("(?:cloudnator|shragle)\\.com\/files","//a[contains(@href,'cloudnator.com/files') or contains(@href,'shragle.com/files')]");
  4522. addObsoleteHost("batshare\\.com\/\\w+","//a[contains(@href,'batshare.com/')]");
  4523. addObsoleteHost("bitroad\\.net\/download","//a[contains(@href,'bitroad.net/download')]");
  4524. addObsoleteHost("metadivx\\.com\/\\w+","//a[contains(@href,'metadivx.com')]");
  4525. addObsoleteHost("filegaze\\.com\/\\w+","//a[contains(@href,'filegaze.com/')]");
  4526. addObsoleteHost("bulletupload\\.com\/\\w+","//a[contains(@href,'bulletupload.com/')]");
  4527. addObsoleteHost("sharefilehost\\.com\/\\w+","//a[contains(@href,'sharefilehost.com/')]");
  4528. addObsoleteHost("fireuploads\\.net\/\\w+","//a[contains(@href,'fireuploads.net/')]");
  4529. addObsoleteHost("divxlink\\.com\/\\w+","//a[contains(@href,'divxlink.com/')]");
  4530. addObsoleteHost("bzlink\\.us\/\\w+","//a[contains(@href,'bzlink.us/')]");
  4531. addObsoleteHost("filetechnology\\.com\/\\w+","//a[contains(@href,'filetechnology.com/')]");
  4532. addObsoleteHost("filecosy\\.com\/\\w+","//a[contains(@href,'filecosy.com/')]");
  4533. addObsoleteHost("fileserver\\.cc\/\\w+","//a[contains(@href,'fileserver.cc/')]");
  4534. addObsoleteHost("shafiles\\.me\/\\w+","//a[contains(@href,'shafiles.me/')]");
  4535. addObsoleteHost("xfileshare\\.eu\/\\w+","//a[contains(@href,'xfileshare.eu/')]");
  4536. addObsoleteHost("uploadboost\\.com\/\\w+","//a[contains(@href,'uploadboost.com/')]");
  4537. addObsoleteHost("uploadoz\\.com\/\\w+","//a[contains(@href,'uploadoz.com/')]");
  4538. addObsoleteHost("ihostia\\.com\/\\w+","//a[contains(@href,'ihostia.com/')]");
  4539. addObsoleteHost("shareupload\\.com\/\\w+","//a[contains(@href,'shareupload.com/')]");
  4540. addObsoleteHost("ovfile\\.com\/\\w+","//a[contains(@href,'ovfile.com/')]");
  4541. addObsoleteHost("stahuj\\.to\/\\w+","//a[contains(@href,'stahuj.to/')]");
  4542. addObsoleteHost("gigfiles\\.net\/\\w+","//a[contains(@href,'gigfiles.net/')]");
  4543. addObsoleteHost("vidhog\\.com\/\\w+","//a[contains(@href,'vidhog.com/')]");
  4544. addObsoleteHost("filelaser\\.com\/\\w+","//a[contains(@href,'filelaser.com/')]");
  4545. addObsoleteHost("holderfile\\.com\/\\w+","//a[contains(@href,'holderfile.com/')]");
  4546. addObsoleteHost("fileduct\\.(?:com|net)\/\\w+","//a[contains(@href,'fileduct.com/') or contains(@href,'fileduct.net')]");
  4547. addObsoleteHost("filefat\\.com\/\\w+","//a[contains(@href,'filefat.com/')]");
  4548. addObsoleteHost("restfile\\.com\/\\w+","//a[contains(@href,'restfile.com/')]");
  4549. addObsoleteHost("filemashine\\.com\\/download\/\\w+","//a[contains(@href,'filemashine.com/download')]");
  4550. addObsoleteHost("cloudnxt\\.net\/\\w+","//a[contains(@href,'cloudnxt.net/')]");
  4551. addObsoleteHost("uploadrack\\.com\/\\w+","//a[contains(@href,'uploadrack.com')]");
  4552. addObsoleteHost("teradepot\\.com\/\\w+","//a[contains(@href,'teradepot.com')]");
  4553. addObsoleteHost("dataup\\.to\/\\d+\/","//a[contains(@href,'dataup.to')]");
  4554. addObsoleteHost("upit\\.to\/file:\\d+","//a[contains(@href,'upit.to/file')]");
  4555. addObsoleteHost("badongo\\.(?:com|net)\/(?:\\w\\w\/|)(?:vid|cfile|file|pt)\/\\w+","//a[contains(@href,'badongo.com') or contains(@href,'badongo.net')]");
  4556. addObsoleteHost("driveway\\.com\/\\w+","//a[contains(@href,'driveway.com')]");
  4557. addObsoleteHost("eatlime\\.com\/download","//a[contains(@href,'eatlime.com/download')]");
  4558. addObsoleteHost("a2zuploads\\.com\/id\\w+","//a[contains(@href,'a2zuploads.com/id')]");
  4559. addObsoleteHost("friendlyfiles\\.net\/download\/\\w+\/","//a[contains(@href,'friendlyfiles.net/download')]");
  4560. addObsoleteHost("flyfile\\.us\/\\w+","//a[contains(@href,'flyfile.us')]");
  4561. addObsoleteHost("speedyshare\\.com\/\\w+","//a[contains(@href,'speedyshare.com')]");
  4562. addObsoleteHost("brontofile\\.com\/download","//a[contains(@href,'brontofile.com/download')]");
  4563. addObsoleteHost("uploadspace\\.eu\/\\w+","//a[contains(@href,'uploadspace.eu')]");
  4564. addObsoleteHost("fooget\\.com\/\\w+","//a[contains(@href,'fooget.com/')]");
  4565. addObsoleteHost("file-bit.net\/\\w+","//a[contains(@href,'file-bit.net/')]");
  4566. addObsoleteHost("keepfile\\.com\/\\w+","//a[contains(@href,'keepfile.com')]");
  4567. addObsoleteHost("piggyshare\\.com\/file\/\\w+","//a[contains(@href,'piggyshare.com')]");
  4568. addObsoleteHost("filecrown\\.com\/\\w+","//a[contains(@href,'filecrown.com')]");
  4569. addObsoleteHost("6giga\\.com\/\\w+","//a[contains(@href,'6giga.com')]");
  4570. addObsoleteHost("uploadjockey\\.com\/download\/\\w+","//a[contains(@href,'uploadjockey.com/download')]");
  4571. addObsoleteHost("bluehost\\.to\/dl=\\w+","//a[contains(@href,'bluehost.to')]");
  4572. addObsoleteHost("coolshare\\.cz\/stahnout\/\\w+","//a[contains(@href,'coolshare.cz/stahnout')]");
  4573. addObsoleteHost("filegu\\.ru\/f\/\\w+","//a[contains(@href,'filegu.ru/f')]");
  4574. addObsoleteHost("filebase\\.to\/files\/\\d+\/","//a[contains(@href,'filebase.to/files')]");
  4575. addObsoleteHost("kickload\\.com\/(?:file|get)\/","//a[contains(@href,'kickload.com/file') or contains(@href,'kickload.com/get')]");
  4576. addObsoleteHost("up-file\\.com\/files\/download\/\\w+\/","//a[contains(@href,'up-file.com/download')]");
  4577. addObsoleteHost("ezyfile\\.net\/\\w+","//a[contains(@href,'ezyfile.net/')]");
  4578. addObsoleteHost("k2files\\.com\/files","//a[contains(@href,'k2files.com/files')]");
  4579. addObsoleteHost("aiotool\\.net\/\\w+","//a[contains(@href,'aiotool.net/')]");
  4580. addObsoleteHost("xvideos\\.com\/files\/\\d+\/\\w+","//a[contains(@href,'xvideos.com/files')]");
  4581. addObsoleteHost("filebling\\.com\/dl\/\\d+\/\\d+\/\\w+","//a[contains(@href,'filebling.com/dl')]");
  4582. addObsoleteHost("loaded\\.it\/divx\/\\w+","//a[contains(@href,'loaded.it/divx')]");
  4583. addObsoleteHost("uploadcell\\.com\/\\w+\/\\w+","//a[contains(@href,'uploadcell.com')]");
  4584. addObsoleteHost("jakfile\\.com\/\\w+","//a[contains(@href,'jakfile.com/')]");
  4585. addObsoleteHost("uploadshare\\.cz\/download\/\\w+\/\\w+","//a[contains(@href,'uploadshare.cz/download')]");
  4586. addObsoleteHost("mangoshare\\.com\/\\w+","//a[contains(@href,'mangoshare.com')]");
  4587. addObsoleteHost("ugotfile\\.com\/file\/\\d+\/\\w+","//a[contains(@href,'ugotfile.com/file')]");
  4588. addObsoleteHost("filestab\\.com\/\\w+","//a[contains(@href,'filestab.com')]");
  4589. addObsoleteHost("dotavi\\.com\/\\w+\/.","//a[contains(@href,'dotavi.com/')]");
  4590. addObsoleteHost("crazyupload\\.com\/\\w+","//a[contains(@href,'crazyupload.com')]");
  4591. addObsoleteHost("gaiafile\\.com\/\\w+","//a[contains(@href,'gaiafile.com')]");
  4592. addObsoleteHost("sharejunky\\.com\/\\w+","//a[contains(@href,'sharejunky.com')]");
  4593. addObsoleteHost("fileho\\.com\/download\/\\d+","//a[contains(@href,'fileho.com/download')]");
  4594. addObsoleteHost("(?:bigandfree|BigAndFree)\\.com\/\\d+","//a[contains(@href,'bigandfree.com') or contains(@href,'BigAndFree.com')]");
  4595. addObsoleteHost("bigfile\\.in\/\\w+","//a[contains(@href,'bigfile.in')]");
  4596. addObsoleteHost("bigshare\\.eu\/download\\.php\\?id=","//a[contains(@href,'bigshare.eu/download.php')]");
  4597. addObsoleteHost("dahosting\\.org\/dl\/\\w+","//a[contains(@href,'dahosting.org/dl')]");
  4598. addObsoleteHost("digisofts\\.net\/\\w+","//a[contains(@href,'digisofts.net')]");
  4599. addObsoleteHost("file4save\\.com\/\\w+\/\\w+","//a[contains(@href,'file4save.com')]");
  4600. addObsoleteHost("filereactor\\.com\/\\w+","//a[contains(@href,'filereactor.com/')]");
  4601. addObsoleteHost("filechip\\.com\/\\w+","//a[contains(@href,'filechip.com')]");
  4602. addObsoleteHost("filescloud\\.com\/\\w+\/\\w+","//a[contains(@href,'filescloud.com')]");
  4603. addObsoleteHost("saveqube\\.com\/getfile\/\\w+","//a[contains(@href,'saveqube.com/getfile')]");
  4604. addObsoleteHost("www2\\.turboshare\\.de\/v\/\\d+","//a[contains(@href,'turboshare.de/v')]");
  4605. addObsoleteHost("z-upload\\.com\/\\w+","//a[contains(@href,'z-upload.com')]");
  4606. addObsoleteHost("youshare\\.com\/view\\.php","//a[contains(@href,'youshare.com/view')]");
  4607. addObsoleteHost("jiffyupload\\.com\/\\w+","//a[contains(@href,'jiffyupload.com')]");
  4608. addObsoleteHost("gigeshare\\.com\/preview\/\\w+","//a[contains(@href,'gigeshare.com')]");
  4609. addObsoleteHost("datenklo\\.net\/dl","//a[contains(@href,'datenklo.net')]");
  4610. addObsoleteHost("upload\\.dj\/download\\.php\\?id=\\w+","//a[contains(@href,'upload.dj/download.php')]");
  4611. addObsoleteHost("loadfiles\\.in\/\\w+\/","//a[contains(@href,'loadfiles.in')]");
  4612. addObsoleteHost("upit\\.to\/file:\\w+\/","//a[contains(@href,'upit.to/file')]");
  4613. addObsoleteHost("zshare\\.net\/(?:download|video|audio)\/\\w+","//a[contains(@href,'zshare.net/')]");
  4614. addObsoleteHost("refile\\.net\/f\/\\?\\w+","//a[contains(@href,'refile.net/f/')]");
  4615. addObsoleteHost("dsfileshare\\.com\/download","//a[contains(@href,'dsfileshare.com/download')]");
  4616. addObsoleteHost("sharesimple\\.net\/\\w{2}\/download","//a[contains(@href,'sharesimple.net')]");
  4617. addObsoleteHost("(?:s\\d+\\.|)4files\\.net\/\\d+","//a[contains(@href,'4files.net')]");
  4618. addObsoleteHost("odsiebie\\.com\/pokaz\/\\d+","//a[contains(@href,'odsiebie.com/pokaz')]");
  4619. addObsoleteHost("filenavi\\.com\/direct\/\\w+","//a[contains(@href,'filenavi.com/direct')]");
  4620. addObsoleteHost("3oof\\.com\/\\w+","//a[contains(@href,'3oof.com/')]");
  4621. addObsoleteHost("meshwaar\\.com\/\\w+","//a[contains(@href,'meshwaar.com')]");
  4622. addObsoleteHost("maxupload\\.com\/files\/\\w+","//a[contains(@href,'maxupload.com/files')]");
  4623. addObsoleteHost("share\\.cx\/videos\/\\d+","//a[contains(@href,'share.cx/videos')]");
  4624. addObsoleteHost("atserver\\.eu\/(?:\\w{2}\/|)download\/\\d+","//a[contains(@href,'atserver.eu')]");
  4625. addObsoleteHost("file2upload\\.net\/download\/\\d+","//a[contains(@href,'file2upload.net/download')]");
  4626. addObsoleteHost("filebling\\.com\/\\w+","//a[contains(@href,'filebling.com')]");
  4627. addObsoleteHost("turboshare\\.(?:eu|com)\/files","//a[contains(@href,'turboshare.') and contains(@href,'/files')]");
  4628. addObsoleteHost("rarhost\\.com\/download","//a[contains(@href,'rarhost.com/download')]");
  4629. addObsoleteHost("isharehd\\.com\/\\w+","//a[contains(@href,'isharehd.com')]");
  4630. addObsoleteHost("datenklo\\.net\/file\\.php\\?id=\\w+","//a[contains(@href,'datenklo.net/file.php')]");
  4631. addObsoleteHost("file2share\\.biz\/download\\.php\\?id=\\w+","//a[contains(@href,'file2share.biz/download.php')]");
  4632. addObsoleteHost("savefiles\\.net\/d\/\\w+\\.html","//a[contains(@href,'savefiles.net/d')]");
  4633. addObsoleteHost("bestsharing\\.com\/files\/\\w+","//a[contains(@href,'bestsharing.com/files')]");
  4634. addObsoleteHost("filecache\\.de\/\\d+","//a[contains(@href,'filecache.de/')]");
  4635. addObsoleteHost("i741\\.com\/files\/\\w+","//a[contains(@href,'i741.com/files')]");
  4636. addObsoleteHost("dataup\\.de\/\\d+","//a[contains(@href,'dataup.de')]");
  4637. addObsoleteHost("fofly\\.com\/\\w+","//a[contains(@href,'fofly.com')]");
  4638. addObsoleteHost("shareonall\\.com\/\\w+","//a[contains(@href,'shareonall.com')]");
  4639. addObsoleteHost("sexuploader\\.com\/(?:|..\/)\\?[d|v]=\\w{8}","//a[contains(@href,'sexuploader.com')]");
  4640. addObsoleteHost("mega(upload|video|rotic|porn)\\.com\/(?:|..\/)\\?[d|v|f]=\\w{8}","//a[contains(@href,'megaupload.com') or contains(@href,'megavideo.com') or contains(@href,'megaporn.com') or contains(@href,'megarotic.com')]");
  4641. addObsoleteHost("uploadhyper\\.com\/file\/","//a[contains(@href,'uploadhyper.com')]");
  4642. addObsoleteHost("filespawn\\.com\/file\/","//a[contains(@href,'filespawn.com')]");
  4643. addObsoleteHost("caizzii\\.com\/(?:download|\\?file=)","//a[contains(@href,'caizzii.com')]");
  4644. addObsoleteHost("volnyweb\\.cz\/files\/get\/[\\w-_]+","//a[contains(@href,'volnyweb.cz/files')]");
  4645. addObsoleteHost("gotupload\\.com\/\\w+","//a[contains(@href,'gotupload.com/')]");
  4646. addObsoleteHost("mooload\\.com\/new\/file\\.php\\?file=files\/\\d+\/\\d+","//a[contains(@href,'mooload.com/new/file')]");
  4647. addObsoleteHost("z\\d+\\.zupload\\.com\/download\\.php\\?file=getfile&filepath=\\d+","//a[contains(@href,'zupload.com/download')]");
  4648. addObsoleteHost("mytempdir\\.com\/\\d+","//a[contains(@href,'mytempdir.com/')]");
  4649. addObsoleteHost("usershare\\.net\/\\w+","//a[contains(@href,'usershare.net/')]");
  4650. addObsoleteHost("qshare\\.com\/get\/\\d+\/.","//a[contains(@href,'qshare.com/get')]");
  4651. addObsoleteHost("filescash\\.net\/file\/\\d+","//a[contains(@href,'filescash.net/file')]");
  4652. addObsoleteHost("metahyper\\.com\/\\w+","//a[contains(@href,'metahyper.com/')]");
  4653. addObsoleteHost("combozip\\.com\/\\w+","//a[contains(@href,'combozip.com/')]");
  4654. addObsoleteHost("anonstream\\.com\/get_\\w+","//a[contains(@href,'anonstream.com/get_')]");
  4655. addObsoleteHost("x7\\.to\/\\w+","//a[contains(@href,'x7.to/')]");
  4656. addObsoleteHost("uploadbox\\.com\/files\/\\w+","//a[contains(@href,'uploadbox.com/files')]");
  4657. addObsoleteHost("(?:flyupload\\.)?(?:enterupload|flyupload)\\.com\/[\\?\\w]+","//a[contains(@href,'enterupload.com/') or contains(@href,'flyupload.com/')]");
  4658. addObsoleteHost("filepoint\\.de\/dl\/\\w+","//a[contains(@href,'filepoint.de/dl')]");
  4659. addObsoleteHost("icushare\\.com\/\\w+","//a[contains(@href,'icushare.com/')]");
  4660. addObsoleteHost("oron\\.com\/\\w+","//a[contains(@href,'oron.com/')]");
  4661. addObsoleteHost("mystream\\.to\/file\\-\\d+","//a[contains(@href,'mystream.to/file')]");
  4662. addObsoleteHost("x-fs\\.com\/download\\.php\\?id=\\w+","//a[contains(@href,'x-fs.com/download')]");
  4663. addObsoleteHost("srapid\\.eu\/\\w+","//a[contains(@href,'srapid.eu/')]");
  4664. addObsoleteHost("shareshared\\.com\/\\w+","//a[contains(@href,'shareshared.com/')]");
  4665. addObsoleteHost("sosame\\.cz\/\\w+","//a[contains(@href,'sosame.cz/')]");
  4666. addObsoleteHost("s\\d+\\.filesdump\\.com\/file\/\\w+","//a[contains(@href,'filesdump.com/file')]");
  4667. addObsoleteHost("2-klicks\\.de\/\\?d=\\w+","//a[contains(@href,'2-klicks.de/?d=')]");
  4668. addObsoleteHost("silofiles\\.com\/file\/\\d+","//a[contains(@href,'silofiles.com/file')]");
  4669. addObsoleteHost("upfile\\.in\/\\w+","//a[contains(@href,'upfile.in/')]");
  4670. addObsoleteHost("filehook\\.com\/\\w+","//a[contains(@href,'filehook.com/')]");
  4671. addObsoleteHost("mojofile\\.com\/\\w+","//a[contains(@href,'mojofile.com/')]");
  4672. addObsoleteHost("cloudcache\\.cc\/\\w+","//a[contains(@href,'cloudcache.cc/')]");
  4673. addObsoleteHost("1hostclick\\.com\/\\w+","//a[contains(@href,'1hostclick.com/')]");
  4674. addObsoleteHost("4bytez\\.com\/\\w+","//a[contains(@href,'4bytez.com/')]");
  4675. addObsoleteHost("uploadking\\.com\/\\w+","//a[contains(@href,'uploadking.com/')]");
  4676. addObsoleteHost("nahraj\\.cz\/(?:content|down)\/\\w+","//a[contains(@href,'nahraj.cz/')]");
  4677. addObsoleteHost("megarapid\\.eu\/files\/\\d+","//a[contains(@href,'megarapid.eu/files')]");
  4678. addObsoleteHost("(?:fileserve|uploadstation)\\.com\/(?:file|list)\/\\w+","//a[contains(@href,'fileserve.com/') or contains(@href,'uploadstation.com/')]");
  4679. addObsoleteHost("uploadhere\\.com\/\\w+","//a[contains(@href,'uploadhere.com/')]");
  4680. addObsoleteHost("dualshare\\.com\/\\w+","//a[contains(@href,'dualshare.com/')]");
  4681. addObsoleteHost("yourfilehost\\.com\/media","//a[contains(@href,'yourfilehost.com/media')]");
  4682. addObsoleteHost("ftp2share\\.com\/file\/\\w+","//a[contains(@href,'ftp2share.com/file')]");
  4683. addObsoleteHost("storeandserve\\.com\/download\/\\d+","//a[contains(@href,'storeandserve.com/download')]");
  4684. addObsoleteHost("mountfile\\.com\/file(?:\/\\w+){2}","//a[contains(@href,'mountfile.com/file')]");
  4685. addObsoleteHost("save\\.am\/files\/\\w+","//a[contains(@href,'save.am/files')]");
  4686. addObsoleteHost("transitfiles\\.com\/dl\/\\w+","//a[contains(@href,'transitfiles.com/dl')]");
  4687. addObsoleteHost("smartuploader\\.com\/file\\.php\\?f=\\d+","//a[contains(@href,'smartuploader.com/file.php?=')]");
  4688. addObsoleteHost("skipfile\\.com\/\\w+","//a[contains(@href,'skipfile.com/')]");
  4689. addObsoleteHost("stahnu\\.to\/[\\w\\?]+","//a[contains(@href,'stahnu.to/')]");
  4690. addObsoleteHost("flyshare\.cz\/(?:stahni\/|)\\d+","//a[contains(@href,'flyshare.cz/')]");
  4691. addObsoleteHost("(?:ddlani\\.me|ddlanime\\.com)\/\\w+","//a[contains(@href,'ddlani.me/') or contains(@href,'ddlanime.com/')]");
  4692. addObsoleteHost("loadly\\.com\/\\w+","//a[contains(@href,'loadly.com/')]");
  4693. addObsoleteHost("groovefile\\.com\/\\w+","//a[contains(@href,'groovefile.com/')]");
  4694. addObsoleteHost("filezlot\\.com\/\\w+","//a[contains(@href,'filezlot.com/')]");
  4695. addObsoleteHost("shareator\\.(?:net|com)\/\\w+","//a[contains(@href,'shareator.')]");
  4696. addObsoleteHost("yabadaba\\.ru\/files\/","//a[contains(@href,'yabadaba.ru/files/')]");
  4697. addObsoleteHost("rapidhide\\.com\/download\\.php\\?file=\\w+","//a[contains(@href,'rapidhide.com/download.php')]");
  4698. addObsoleteHost("filejungle\\.com\/[fl]\/\\w+","//a[contains(@href,'filejungle.com/')]");
  4699. addObsoleteHost("kewlshare\\.com\/dl\/\\d+","//a[contains(@href,'kewlshare.com/dl')]");
  4700. addObsoleteHost("petandrive\\.com\/file\/\\w+","//a[contains(@href,'petandrive.com/file')]");
  4701. addObsoleteHost("onionshare\\.com\/\\w+","//a[contains(@href,'onionshare.com/')]");
  4702. addObsoleteHost("rapidable\\.com\/\\w+\/download\\.php\\?id=","//a[contains(@href,'rapidable.com/')]");
  4703. addObsoleteHost("filesdump\\.com\/file\/\\w+\/\\d+","//a[contains(@href,'filesdump.com/file')]");
  4704. addObsoleteHost("file2box\\.(?:net|com)\/\\w+","//a[contains(@href,'file2box.')]");
  4705. addObsoleteHost("(?:filesonic|sharingmatrix|wupload)(?:\\.\\w+){1,2}\/(?:file|folder)\/\\w+","//a[contains(@href,'filesonic.') or contains(@href,'sharingmatrix.com') or contains(@href,'wupload.')]");
  4706. addObsoleteHost("wizzupload\\.com\/\\w+","//a[contains(@href,'wizzupload.com/')]");
  4707. addObsoleteHost("bloggerarticles\\.com\/\\w+","//a[contains(@href,'bloggerarticles.com/')]");
  4708. addObsoleteHost("mojedata\\.sk/","//a[contains(@href,'mojedata.sk/')]");
  4709. addObsoleteHost("sharpfile\\.com\/\\w+","//a[contains(@href,'sharpfile.com/')]");
  4710. addObsoleteHost("upgrand\\.com\/\\w+","//a[contains(@href,'upgrand.com/')]");
  4711. addObsoleteHost("nasdilej\\.cz\/\\w+","//a[contains(@href,'nasdilej.cz/')]");
  4712. addObsoleteHost("mediatack\\.cz\/stahuj/\\w+","//a[contains(@href,'mediatack.cz/stahuj/')]");
  4713. addObsoleteHost("share-it\\.to\/file/\\w+","//a[contains(@href,'share-it.to/file/')]");
  4714. addObsoleteHost("primeupload\\.com\/file/\\w+","//a[contains(@href,'primeupload.com/file/')]");
  4715. addObsoleteHost("(?:uploads\\.glumbo|glumbouploads)\\.com\/\\w+","//a[contains(@href,'uploads.glumbo.com') or contains(@href,'glumbouploads.com')]");
  4716. addObsoleteHost("filebeer\\.info\/\\w+","//a[contains(@href,'filebeer.info/')]");
  4717. addObsoleteHost("baberepublic\\.com\/link\/\\w+","//a[contains(@href,'baberepublic.com/link/')]");
  4718. addObsoleteHost("xtu\\.me\/\\w+","//a[contains(@href,'xtu.me/')]");
  4719. addObsoleteHost("sharebase\\.de\/files\/\\w+","//a[contains(@href,'sharebase.de/files/')]");
  4720. addObsoleteHost("filerobo\\.com\/\\w+","//a[contains(@href,'filerobo.com/')]");
  4721. addObsoleteHost("filevelocity\\.com\/\\w+","//a[contains(@href,'filevelocity.com/')]");
  4722. addObsoleteHost("filezpro\\.com\/\\w+","//a[contains(@href,'filezpro.com/')]");
  4723. addObsoleteHost("file4sharing\\.com\/\\w+","//a[contains(@href,'file4sharing.com/')]");
  4724. addObsoleteHost("cing\\.be\/\\w+","//a[contains(@href,'cing.be/')]");
  4725. addObsoleteHost("ufile\\.eu\/\\w+","//a[contains(@href,'ufile.eu/')]");
  4726. addObsoleteHost("pigsonic\\.com\/\\w+","//a[contains(@href,'pigsonic.com/')]");
  4727. addObsoleteHost("fileupped\\.com\/\\w+","//a[contains(@href,'fileupped.com/')]");
  4728. addObsoleteHost("sharerun\\.com\/\\w+","//a[contains(@href,'sharerun.com/')]");
  4729. addObsoleteHost("rapidslnare\\.com\/\\w+","//a[contains(@href,'rapidslnare.com/')]");
  4730. addObsoleteHost("monsteruploads\\.eu\/\\w+","//a[contains(@href,'monsteruploads.eu/')]");
  4731. addObsoleteHost("b9bb\\.com\/\\w+","//a[contains(@href,'b9bb.com/')]");
  4732. addObsoleteHost("jamber\\.info\/\\w+","//a[contains(@href,'jamber.info/')]");
  4733. addObsoleteHost("(?:megaftp|MegaFTP)\\.com\/\\w+","//a[contains(@href,'megaftp.com/') or contains(@href,'MegaFTP.com/')]");
  4734. addObsoleteHost("desiupload\\.net\/\\?d=\\w+","//a[contains(@href,'desiupload.net/')]");
  4735. addObsoleteHost("file27\\.com\/\\w+","//a[contains(@href,'file27.com/')]");
  4736. addObsoleteHost("yastorage\\.com\/\\w+","//a[contains(@href,'yastorage.com/')]");
  4737. addObsoleteHost("filehost\\.ws\/\\w+","//a[contains(@href,'filehost.ws/')]");
  4738. addObsoleteHost("copyload\\.com\/\\w+","//a[contains(@href,'copyload.com/')]");
  4739. addObsoleteHost("venusfile\\.com\/\\w+","//a[contains(@href,'venusfile.com/')]");
  4740. addObsoleteHost("aieshare\\.com\/\\w+","//a[contains(@href,'aieshare.com/')]");
  4741. addObsoleteHost("fileza\\.net\/\\w+","//a[contains(@href,'fileza.net/')]");
  4742. addObsoleteHost("filerose\\.com\/\\w+","//a[contains(@href,'filerose.com/')]");
  4743. addObsoleteHost("squillion\\.com\/\\w+","//a[contains(@href,'squillion.com/')]");
  4744. addObsoleteHost("fileprohost\\.com\/\\w+","//a[contains(@href,'fileprohost.com/')]");
  4745. addObsoleteHost("bitbonus\\.com\/download\/\\w+","//a[contains(@href,'bitbonus.com/')]");
  4746. addObsoleteHost("warserver\\.cz\/\\w+","//a[contains(@href,'warserver.cz/')]");
  4747. addObsoleteHost("uload\\.to\/\\w+","//a[contains(@href,'uload.to/')]");
  4748. addObsoleteHost("sharedbit\\.net\/\\w+","//a[contains(@href,'sharedbit.net/')]");
  4749. addObsoleteHost("megaload\\.it\/\\w+","//a[contains(@href,'megaload.it/')]");
  4750. addObsoleteHost("filewinds\\.com\/\\w+","//a[contains(@href,'filewinds.com/')]");
  4751. addObsoleteHost("uploadcore\\.com\/\\w+","//a[contains(@href,'uploadcore.com/')]");
  4752. addObsoleteHost("syfiles\\.com\/\\w+","//a[contains(@href,'syfiles.com/')]");
  4753. addObsoleteHost("eyesfile\\.com\/\\w+","//a[contains(@href,'eyesfile.com/')]");
  4754. addObsoleteHost("hotfile\\.com\/\\w+","//a[contains(@href,'hotfile.com/')]");
  4755. addObsoleteHost("superupl\\.com\/\\w+","//a[contains(@href,'superupl.com/')]");
  4756. addObsoleteHost("oteupload\\.com\/\\w+","//a[contains(@href,'oteupload.com/')]");
  4757. addObsoleteHost("henchfile\\.com\/\\w+","//a[contains(@href,'henchfile.com/')]");
  4758. addObsoleteHost("HenchFile\\.com\/\\w+","//a[contains(@href,'HenchFile.com/')]");
  4759. addObsoleteHost("filegag\\.com\/\\w+","//a[contains(@href,'filegag.com/')]");
  4760. addObsoleteHost("filedefend\\.com\/\\w+","//a[contains(@href,'filedefend.com/')]");
  4761. addObsoleteHost("hotfiles\\.ws\/\\w+","//a[contains(@href,'hotfiles.ws/')]");
  4762. addObsoleteHost("share-rapid\\.com\/\\w+","//a[contains(@href,'share-rapid.com/')]");
  4763. //addObsoleteHost("sharerapid\\.cz\/\\w+","//a[contains(@href,'sharerapid.cz/')]");
  4764. addObsoleteHost("rapids\\.cz\/\\w+","//a[contains(@href,'rapids.cz/')]");
  4765. addObsoleteHost("share-credit\\.cz\/\\w+","//a[contains(@href,'share-credit.cz/')]");
  4766. addObsoleteHost("share-central\\.cz\/\\w+","//a[contains(@href,'share-central.cz/')]");
  4767. addObsoleteHost("share-ms\\.cz\/\\w+","//a[contains(@href,'share-ms.cz/')]");
  4768. addObsoleteHost("share-net\\.cz\/\\w+","//a[contains(@href,'share-net.cz/')]");
  4769. addObsoleteHost("srapid\\.cz\/\\w+","//a[contains(@href,'srapid.cz/')]");
  4770. addObsoleteHost("share-rapid\\.cz\/\\w+","//a[contains(@href,'share-rapid.cz/')]");
  4771. addObsoleteHost("wooupload\\.com\/\\w+","//a[contains(@href,'wooupload.com/')]");
  4772. addObsoleteHost("megabitshare\\.com\/\\w+","//a[contains(@href,'megabitshare.com/')]");
  4773. addObsoleteHost("uploking\\.com\/\\w+","//a[contains(@href,'uploking.com/')]");
  4774. addObsoleteHost("esnips\\.com\/\\w+","//a[contains(@href,'esnips.com/')]");
  4775. addObsoleteHost("uplly\\.com\/\\w+","//a[contains(@href,'uplly.com/')]");
  4776. addObsoleteHost("ufox\\.com\/\\w+","//a[contains(@href,'ufox.com/')]");
  4777. addObsoleteHost("clz\\.to\/\\w+","//a[contains(@href,'clz.to/')]");
  4778. addObsoleteHost("cloudzer\\.net\/\\w+","//a[contains(@href,'cloudzer.net/')]");
  4779. addObsoleteHost("cloudzer\\.com\/\\w+","//a[contains(@href,'cloudzer.com/')]");
  4780. addObsoleteHost("extabit\\.com\/\\w+","//a[contains(@href,'extabit.com/')]");
  4781. addObsoleteHost("uploadwaste\\.com\/\\w+","//a[contains(@href,'uploadwaste.com/')]");
  4782. addObsoleteHost("247upload\\.com\/\\w+","//a[contains(@href,'uploadwaste.com/')]");
  4783. addObsoleteHost("2download\\.de\/\\w+","//a[contains(@href,'2download.de/')]");
  4784. addObsoleteHost("4fastfile\\.com\/\\w+","//a[contains(@href,'4fastfile.com/')]");
  4785. addObsoleteHost("asixfiles\\.com\/\\w+","//a[contains(@href,'asixfiles.com/')]");
  4786. addObsoleteHost("berofile\\.com\/\\w+","//a[contains(@href,'berofile.com/')]");
  4787. addObsoleteHost("bigupload\\.com\/\\w+","//a[contains(@href,'bigupload.com/')]");
  4788. addObsoleteHost("cepzo\\.com\/\\w+","//a[contains(@href,'cepzo.com/')]");
  4789. addObsoleteHost("czshare\\.com\/\\w+","//a[contains(@href,'czshare.com/')]");
  4790. addObsoleteHost("clouds\\.to\/\\w+","//a[contains(@href,'clouds.to/')]");
  4791. addObsoleteHost("cobrashare\\.sk\/\\w+","//a[contains(@href,'cobrashare.sk/')]");
  4792. addObsoleteHost("coraldrive\\.net\/\\w+","//a[contains(@href,'coraldrive.net/')]");
  4793. addObsoleteHost("cyberlocker\\.ch\/\\w+","//a[contains(@href,'cyberlocker.ch/')]");
  4794. addObsoleteHost("darkport\\.org\/\\w+","//a[contains(@href,'darkport.org/')]");
  4795. addObsoleteHost("dark-uploads\\.com\/\\w+","//a[contains(@href,'dark-uploads.com/')]");
  4796. addObsoleteHost("davvas\\.com\/\\w+","//a[contains(@href,'davvas.com/')]");
  4797. addObsoleteHost("enigmashare\\.com\/\\w+","//a[contains(@href,'enigmashare.com/')]");
  4798. addObsoleteHost("erofly\\.cz\/\\w+","//a[contains(@href,'erofly.cz/')]");
  4799. addObsoleteHost("fastsonic\\.net\/\\w+","//a[contains(@href,'fastsonic.net/')]");
  4800. addObsoleteHost("filebox\\.com\/\\w+","//a[contains(@href,'filebox.com/')]");
  4801. addObsoleteHost("filecity\\.net\/\\w+","//a[contains(@href,'filecity.net/')]");
  4802. addObsoleteHost("filedap\\.com\/\\w+","//a[contains(@href,'filedap.com/')]");
  4803. addObsoleteHost("filedino\\.com\/\\w+","//a[contains(@href,'filedino.com/')]");
  4804. addObsoleteHost("filedownloads\\.org\/\\w+","//a[contains(@href,'filedownloads.org/')]");
  4805. addObsoleteHost("filefolks\\.com\/\\w+","//a[contains(@href,'filefolks.com/')]");
  4806. addObsoleteHost("fileking\\.co\/\\w+","//a[contains(@href,'fileking.co/')]");
  4807. addObsoleteHost("filemates\\.com\/\\w+","//a[contains(@href,'filemates.com/')]");
  4808. addObsoleteHost("files\\.to\/\\w+","//a[contains(@href,'files.to/')]");
  4809. addObsoleteHost("files2k\\.eu\/\\w+","//a[contains(@href,'files2k.eu/')]");
  4810. addObsoleteHost("filesector\\.cc\/\\w+","//a[contains(@href,'filesector.cc/')]");
  4811. addObsoleteHost("filesega\\.com\/\\w+","//a[contains(@href,'filesega.com/')]");
  4812. addObsoleteHost("filesend\\.net\/\\w+","//a[contains(@href,'filesend.net/')]");
  4813. addObsoleteHost("filestay\\.com\/\\w+","//a[contains(@href,'filestay.com/')]");
  4814. addObsoleteHost("filestrum\\.com\/\\w+","//a[contains(@href,'filestrum.com/')]");
  4815. addObsoleteHost("fileuplo\\.de\/\\w+","//a[contains(@href,'fileuplo.de/')]");
  4816. addObsoleteHost("fileupup\\.com\/\\w+","//a[contains(@href,'fileupup.com/')]");
  4817. addObsoleteHost("forunesia\\.com\/\\w+","//a[contains(@href,'forunesia.com/')]");
  4818. addObsoleteHost("freeuploads\\.fr\/\\w+","//a[contains(@href,'freeuploads.fr/')]");
  4819. addObsoleteHost("uploa\\.dk\/\\w+","//a[contains(@href,'uploa.dk/')]");
  4820. addObsoleteHost("getthebit\\.com\/\\w+","//a[contains(@href,'getthebit.com/')]");
  4821. addObsoleteHost("getzilla\\.net\/\\w+","//a[contains(@href,'getzilla.net/')]");
  4822. addObsoleteHost("goldfile\\.eu\/\\w+","//a[contains(@href,'goldfile.eu/')]");
  4823. addObsoleteHost("good\\.com\/\\w+","//a[contains(@href,'good.com/')]");
  4824. addObsoleteHost("grupload\\.com\/\\w+","//a[contains(@href,'grupload.com/')]");
  4825. addObsoleteHost("hellfile\\.com\/\\w+","//a[contains(@href,'hellfile.com/')]");
  4826. addObsoleteHost("hipfile\\.com\/\\w+","//a[contains(@href,'hipfile.com/')]");
  4827. addObsoleteHost("hitfile\\.com\/\\w+","//a[contains(@href,'hitfile.com/')]");
  4828. addObsoleteHost("hulkfile\\.eu\/\\w+","//a[contains(@href,'hulkfile.eu/')]");
  4829. addObsoleteHost("i-filez\\.com\/\\w+","//a[contains(@href,'i-filez.com/')]");
  4830. addObsoleteHost("ifile\\.ws\/\\w+","//a[contains(@href,'ifile.ws/')]");
  4831. addObsoleteHost("kupload\\.org\/\\w+","//a[contains(@href,'kupload.org/')]");
  4832. addObsoleteHost("duckfile\\.net\/\\w+","//a[contains(@href,'duckfile.net/')]");
  4833. addObsoleteHost("packupload\\.com\/\\w+","//a[contains(@href,'packupload.com/')]");
  4834. addObsoleteHost("terafile\\.com\/\\w+","//a[contains(@href,'terafile.com/')]");
  4835. addObsoleteHost("terafile\\.co\/\\w+","//a[contains(@href,'terafile.co/')]");
  4836. addObsoleteHost("fileom\\.com\/\\w+","//a[contains(@href,'fileom.com/')]");
  4837. addObsoleteHost("luckyshare\\.net\/\\w+","//a[contains(@href,'luckyshare.net/')]");
  4838. addObsoleteHost("lemuploads\\.com\/\\w+","//a[contains(@href,'lemuploads.com/')]");
  4839. addObsoleteHost("limelinx\\.com\/\\w+","//a[contains(@href,'limelinx.com/')]");
  4840. addObsoleteHost("maxshare\\.pl\/\\w+","//a[contains(@href,'maxshare.pl/')]");
  4841. addObsoleteHost("megarelease\\.org\/\\w+","//a[contains(@href,'megarelease.org/')]");
  4842. addObsoleteHost("megashare\\.com\/\\w+","//a[contains(@href,'megashare.com/')]");
  4843. addObsoleteHost("minus\\.com\/\\w+","//a[contains(@href,'minus.com/')]");
  4844. addObsoleteHost("mlfat4arab\\.com\/\\w+","//a[contains(@href,'mlfat4arab.com/')]");
  4845. addObsoleteHost("multishare\\.cz\/\\w+","//a[contains(@href,'multishare.cz/')]");
  4846. addObsoleteHost("nirafile\\.com\/\\w+","//a[contains(@href,'nirafile.com/')]");
  4847. addObsoleteHost("ok2upload\\.com\/\\w+","//a[contains(@href,'ok2upload.com/')]");
  4848. addObsoleteHost("peejeshare\\.com\/\\w+","//a[contains(@href,'peejeshare.com/')]");
  4849. addObsoleteHost("premiuns\\.org\/\\w+","//a[contains(@href,'premiuns.org/')]");
  4850. addObsoleteHost("przeklej\\.net\/\\w+","//a[contains(@href,'przeklej.net/')]");
  4851. addObsoleteHost("qkup\\.net\/\\w+","//a[contains(@href,'qkup.net/')]");
  4852. addObsoleteHost("rapidupload\\.sk\/\\w+","//a[contains(@href,'rapidupload.sk/')]");
  4853. addObsoleteHost("rockdizfile\\.com\/\\w+","//a[contains(@href,'rockdizfile.com/')]");
  4854. addObsoleteHost("rocketfile\\.net\/\\w+","//a[contains(@href,'rocketfile.net/')]");
  4855. addObsoleteHost("share-now\\.net\/\\w+","//a[contains(@href,'share-now.net/')]");
  4856. addObsoleteHost("share76\\.com\/\\w+","//a[contains(@href,'share76.com/')]");
  4857. addObsoleteHost("sharebees\\.com\/\\w+","//a[contains(@href,'sharebees.com/')]");
  4858. addObsoleteHost("sharefiles\\.co\/\\w+","//a[contains(@href,'sharefiles.co/')]");
  4859. addObsoleteHost("slingfile\\.com\/\\w+","//a[contains(@href,'slingfile.com/')]");
  4860. addObsoleteHost("sms4file\\.com\/\\w+","//a[contains(@href,'sms4file.com/')]");
  4861. addObsoleteHost("space4file\\.com\/\\w+","//a[contains(@href,'space4file.com/')]");
  4862. addObsoleteHost("tigershare\\.net\/\\w+","//a[contains(@href,'tigershare.net/')]");
  4863. addObsoleteHost("toucansharing\\.com\/\\w+","//a[contains(@href,'toucansharing.com/')]");
  4864. addObsoleteHost("ubuntuone\\.com\/\\w+","//a[contains(@href,'ubuntuone.com/')]");
  4865. addObsoleteHost("unextfiles\\.com\/\\w+","//a[contains(@href,'unextfiles.com/')]");
  4866. addObsoleteHost("upaj\\.pl\/\\w+","//a[contains(@href,'upaj.pl/')]");
  4867. addObsoleteHost("upfile\\.biz\/\\w+","//a[contains(@href,'upfile.biz/')]");
  4868. addObsoleteHost("uploadbin\\.net\/\\w+","//a[contains(@href,'uploadbin.net/')]");
  4869. addObsoleteHost("uploadic\\.com\/\\w+","//a[contains(@href,'uploadic.com/')]");
  4870. addObsoleteHost("uploadinc\\.com\/\\w+","//a[contains(@href,'uploadinc.com/')]");
  4871. addObsoleteHost("uploading4u\\.eu\/\\w+","//a[contains(@href,'uploading4u.eu/')]");
  4872. addObsoleteHost("uploadjet\\.net\/\\w+","//a[contains(@href,'uploadjet.net/')]");
  4873. addObsoleteHost("uploadorb\\.com\/\\w+","//a[contains(@href,'uploadorb.com/')]");
  4874. addObsoleteHost("upthe\\.net\/\\w+","//a[contains(@href,'upthe.net/')]");
  4875. addObsoleteHost("uptorch\\.com\/\\w+","//a[contains(@href,'uptorch.com/')]");
  4876. addObsoleteHost("vidbox\\.yt\/\\w+","//a[contains(@href,'vidbox.yt/')]");
  4877. addObsoleteHost("videozer\\.com\/\\w+","//a[contains(@href,'videozer.com/')]");
  4878. addObsoleteHost("vreer\\.com\/\\w+","//a[contains(@href,'vreer.com/')]");
  4879. addObsoleteHost("wallobit\\.com\/\\w+","//a[contains(@href,'wallobit.com/')]");
  4880. addObsoleteHost("zooupload\\.com\/\\w+","//a[contains(@href,'zooupload.com/')]");
  4881. addObsoleteHost("xerver\\.co\/\\w+","//a[contains(@href,'xerver.co/')]");
  4882. addObsoleteHost("privatefiles\\.com\/\\w+","//a[contains(@href,'privatefiles.com/')]");
  4883. addObsoleteHost("bitshare\\.com\/\\w+","//a[contains(@href,'bitshare.com/')]");
  4884. addObsoleteHost("asfile\\.com\/\\w+","//a[contains(@href,'asfile.com/')]");
  4885. addObsoleteHost("billionuploads\\.com\/\\w+","//a[contains(@href,'billionuploads.com/')]");
  4886. addObsoleteHost("\\*{7,100}\/[\\w\\d]+","//a[contains(@href,'*******/')]");
  4887. addObsoleteHost("filesaur\\.com\/\\w+","//a[contains(@href,'filesaur.com/')]");
  4888. addObsoleteHost("rapidshare\\.com\/\\w+","//a[contains(@href,'rapidshare.com/')]");
  4889. addObsoleteHost("rapidshare\\.ru\/\\w+","//a[contains(@href,'rapidshare.ru/')]");
  4890. addObsoleteHost("filesfrog\\.net\/\\w+","//a[contains(@href,'filesfrog.net/')]");
  4891. addObsoleteHost("4savefile\\.com\/\\w+","//a[contains(@href,'4savefile.com/')]");
  4892. addObsoleteHost("bayfiles\\.com\/\\w+","//a[contains(@href,'bayfiles.com/')]");
  4893. addObsoleteHost("bayfiles\\.net\/\\w+","//a[contains(@href,'bayfiles.net/')]");
  4894. addObsoleteHost("dodane\\.pl\/\\w+","//a[contains(@href,'dodane.pl/')]");
  4895. addObsoleteHost("dotsemper\\.com\/\\w+","//a[contains(@href,'dotsemper.com/')]");
  4896. addObsoleteHost("egofiles\\.com\/\\w+","//a[contains(@href,'egofiles.com/')]");
  4897. addObsoleteHost("epicshare\\.net\/\\w+","//a[contains(@href,'epicshare.net/')]");
  4898. addObsoleteHost("fiberupload\\.net\/\\w+","//a[contains(@href,'fiberupload.net/')]");
  4899. addObsoleteHost("filemonkey\\.in\/\\w+","//a[contains(@href,'filemonkey.in/')]");
  4900. addObsoleteHost("filemonster\\.net\/\\w+","//a[contains(@href,'filemonster.net/')]");
  4901. addObsoleteHost("filepom\\.com\/\\w+","//a[contains(@href,'filepom.com/')]");
  4902. addObsoleteHost("filesbb\\.com\/\\w+","//a[contains(@href,'filesbb.com/')]");
  4903. addObsoleteHost("fileshareup\\.com\/\\w+","//a[contains(@href,'fileshareup.com/')]");
  4904. addObsoleteHost("filevice\\.com\/\\w+","//a[contains(@href,'filevice.com/')]");
  4905. addObsoleteHost("gigaup\\.fr\/\\w+","//a[contains(@href,'gigaup.fr/')]");
  4906. addObsoleteHost("inafile\\.com\/\\w+","//a[contains(@href,'inafile.com/')]");
  4907. addObsoleteHost("isavelink\\.com\/\\w+","//a[contains(@href,'isavelink.com/')]");
  4908. addObsoleteHost("loombo\\.com\/\\w+","//a[contains(@href,'loombo.com/')]");
  4909. addObsoleteHost("megafiles\\.se\/\\w+","//a[contains(@href,'megafiles.se/')]");
  4910. addObsoleteHost("migupload\\.com\/\\w+","//a[contains(@href,'migupload.com/')]");
  4911. addObsoleteHost("mydisc\\.net\/\\w+","//a[contains(@href,'mydisc.net/')]");
  4912. addObsoleteHost("nitrobits\\.com\/\\w+","//a[contains(@href,'nitrobits.com/')]");
  4913. addObsoleteHost("potload\\.com\/\\w+","//a[contains(@href,'potload.com/')]");
  4914. addObsoleteHost("redload\\.net\/\\w+","//a[contains(@href,'redload.net/')]");
  4915. addObsoleteHost("shareprofi\\.com\/\\w+","//a[contains(@href,'shareprofi.com/')]");
  4916. addObsoleteHost("sharesuper\\.info\/\\w+","//a[contains(@href,'sharesuper.info/')]");
  4917. addObsoleteHost("sinhro\\.net\/\\w+","//a[contains(@href,'sinhro.net/')]");
  4918. addObsoleteHost("speedfile\\.cz\/\\w+","//a[contains(@href,'speedfile.cz/')]");
  4919. addObsoleteHost("speedshare\\.org\/\\w+","//a[contains(@href,'speedshare.org/')]");
  4920. addObsoleteHost("storage.novoro\\.net\/\\w+","//a[contains(@href,'storage.novoro.net/')]");
  4921. addObsoleteHost("swankshare\\.com\/\\w+","//a[contains(@href,'swankshare.com/')]");
  4922. addObsoleteHost("swatupload\\.com\/\\w+","//a[contains(@href,'swatupload.com/')]");
  4923. addObsoleteHost("upafile\\.com\/\\w+","//a[contains(@href,'upafile.com/')]");
  4924. addObsoleteHost("uploadmachine\\.com\/\\w+","//a[contains(@href,'uploadmachine.com/')]");
  4925. addObsoleteHost("uploadsat\\.com\/\\w+","//a[contains(@href,'uploadsat.com/')]");
  4926. addObsoleteHost("upshared\\.com\/\\w+","//a[contains(@href,'upshared.com/')]");
  4927. addObsoleteHost("usefile\\.com\/\\w+","//a[contains(@href,'usefile.com/')]");
  4928. addObsoleteHost("yourfiles\\.to\/\\w+","//a[contains(@href,'yourfiles.to/')]");
  4929. addObsoleteHost("zomgupload\\.com\/\\w+","//a[contains(@href,'zomgupload.com/')]");
  4930. addObsoleteHost("~[\\w\\s~]*","//a[contains(@href,'//~') or contains(@href,'//www.~')]");
  4931. addObsoleteHost("filemup\\.com\/\\w+","//a[contains(@href,'filemup.com/')]");
  4932. addObsoleteHost("tuxfile\\.com\/\\w+","//a[contains(@href,'tuxfile.com/')]");
  4933. // obsolete start
  4934. }
  4935. //obsolete file hosts init end
  4936.  
  4937. function addFileHost(linkRegex, isAliveRegex, isDeadRegex, isUnavaRegex, xpathEx, tryLoop, ispremRegex)
  4938. {
  4939. var host = new Array(7);
  4940. host[0] = linkRegex;
  4941. host[1] = isAliveRegex;
  4942. host[2] = isDeadRegex;
  4943. host[3] = isUnavaRegex;
  4944. host[6] = ispremRegex;
  4945. host[4] = xpathEx;
  4946. tryLoop ? host[5] = true : host[5] = false;
  4947. http_file_hosts.push(host);
  4948. }
  4949. if (GM_getValue("Check_megafileupload_dot_com_links", false))
  4950. {
  4951. addFileHost(
  4952. "megafileupload\.com\/..\/file\/",
  4953. 'downloadbtn',
  4954. 'is not found',
  4955. 'optional--',
  4956. "//a[contains(@href,'megafileupload.com')]");
  4957. }
  4958. if (GM_getValue("Check_demo_dot_ovh_dot_eu_links", false))
  4959. {
  4960. addFileHost(
  4961. "demo\\.ovh\\.eu\/\\w+\/\\w+",
  4962. 'download\\.gif"',
  4963. 'p_point">',
  4964. 'optional--',
  4965. "//a[contains(@href,'demo.ovh.eu')]");
  4966. }
  4967. if (GM_getValue("Check_safelinking_dot_net_links", false))
  4968. {
  4969. addFileHost(
  4970. "safelinking\\.net\/p\/\\w+",
  4971. 'color:green;"',
  4972. 'color:(?:red|orange);"',
  4973. 'color:(?:grey|brown);"',
  4974. "//a[contains(@href,'safelinking.net/p/')]",
  4975. true);
  4976. }
  4977. if (GM_getValue("Check_ultramegabit_dot_com_links", false))
  4978. {
  4979. addFileHost(
  4980. "ultramegabit\\.com\/file\/details\/[\\w+-]",
  4981. 'name="recaptcha_response',
  4982. '="/folder/add"|>File (?:not found|restricted|has been deleted)|<title>ULTRAMEGABIT</title>',
  4983. 'btn-large btn-danger">|Account limitation notice|502 Bad Gateway',
  4984. "//a[contains(@href,'ultramegabit.com/file')]",
  4985. true);
  4986. }
  4987. if (GM_getValue("Check_fastshare_dot_cz_links", false))
  4988. {
  4989. addFileHost(
  4990. "fastshare\\.cz\/\\d+\/\\w*",
  4991. 'dwntable">',
  4992. 'nebyla nalezena|nebola nájdená|nie została odnaleziona|color:red;font-weight:bold;border\\-style:dashed|<i class="fa fa-copyright"></i>',
  4993. 'optional--',
  4994. "//a[contains(@href,'fastshare.cz')]");
  4995. }
  4996. if (GM_getValue("Check_fastshare_dot_org_links", false))
  4997. {
  4998. addFileHost(
  4999. "[fF]ast[sS]hare\\.org\/download",
  5000. 'Download ">',
  5001. 'Diese Datei wurde wegen|wurde kein Dateiname',
  5002. 'optional--',
  5003. "//a[contains(@href,'fastshare.org/download') or contains(@href,'FastShare.org/download')]");
  5004. }
  5005. if (GM_getValue("Check_partage_dash_facile_dot_com_links", false))
  5006. {
  5007. addFileHost(
  5008. "partage-facile\.com\/\\w+",
  5009. 'class="title"><strong>|colspan="2"',
  5010. 'Page introuvable|class="alert-message',
  5011. 'optional--',
  5012. "//a[contains(@href,'partage-facile.com')]");
  5013. }
  5014. if (GM_getValue("Check_rapidgator_dot_net_links", false))
  5015. {
  5016. addFileHost(
  5017. "rapidgator\\.net\/file\/\\w+",
  5018. '/download/AjaxStartTimer|not more than 1 file at a time|your hourly downloads limit|почасовой лимит скачиваний|limite horaire de téléchargements|límite de descargas en una hora',
  5019. 'Error 404|File not found|Error 500|Файл не найден|File not found|Select your plan',
  5020. 'optional--',
  5021. "//a[contains(@href,'rapidgator.net/file')]",
  5022. true
  5023. );
  5024. }
  5025. if (GM_getValue("Check_relink_dot_us_links", false))
  5026. {
  5027. addFileHost(
  5028. "relink\\.us\/(?:f\/\\w+|go\\.php\\?id=\\d+|view\\.php\\?id=\\d+)",
  5029. 'online_detail\\.png" alt="Status',
  5030. '(?:offline|partially)_detail\\.png" alt="Status|File deleted',
  5031. 'unknown_detail\\.png" alt="Status',
  5032. "//a[contains(@href,'relink.us/')]"
  5033. );
  5034. }
  5035. if (GM_getValue("Check_uploadstube_dot_de_links", false))
  5036. {
  5037. addFileHost(
  5038. "uploadstube\\.de\/download\\.php\\?file=\\d+",
  5039. 'div id="dl"',
  5040. 'Sie haben den Link falsch',
  5041. 'optional--',
  5042. "//a[contains(@href,'uploadstube.de/download.php?file=')]"
  5043. );
  5044. }
  5045. if (GM_getValue("Check_flyfiles_dot_net_links", false))
  5046. {
  5047. addFileHost(
  5048. "flyfiles\\.net\/\\w+",
  5049. 'download_button"|"Download file"',
  5050. 'File not found!|Файл не найден',
  5051. 'optional--',
  5052. "//a[contains(@href,'flyfiles.net/')]"
  5053. );
  5054. }
  5055. if (GM_getValue("Check_wikiupload_dot_com_links", false))
  5056. {
  5057. addFileHost(
  5058. "wikiupload\\.com\/\\w+",
  5059. 'download-button">',
  5060. 'Sorry, File not found',
  5061. 'optional--',
  5062. "//a[contains(@href,'wikiupload.com/')]"
  5063. );
  5064. }
  5065. if (GM_getValue("Check_hostuje_dot_net_links", false))
  5066. {
  5067. addFileHost(
  5068. "hostuje\\.net\/file\\.php\\?id=\\w+",
  5069. 'file\\.php">|Pobierz Plik',
  5070. 'Podany plik nie zosta',
  5071. 'optional--',
  5072. "//a[contains(@href,'hostuje.net/file')]"
  5073. );
  5074. }
  5075. if (GM_getValue("Check_gettyfile_dot_ru_links", false))
  5076. {
  5077. addFileHost(
  5078. "gettyfile\\.ru\/\\d+",
  5079. 'download\\.gif border',
  5080. '<center><font size="3">',
  5081. 'optional--',
  5082. "//a[contains(@href,'gettyfile.ru/')]"
  5083. );
  5084. }
  5085. if (GM_getValue("Check_tufiles_dot_ru_links", false))
  5086. {
  5087. addFileHost(
  5088. "(?:tufiles|turbob1t|failoobmenik|filesmail|firebit|dlbit|files\\.china\\-gsm|3aka4aem|file\\.piratski|mnogofiles|links-free|turbo-bit|turbosfiles)\\.\\w+\/\\w+",
  5089. 'download\\-file">',
  5090. 'col-1">\\s*<h1>',
  5091. 'optional--',
  5092. "//a[contains(@href,'tufiles.ru/') or contains(@href,'turbob1t.ru/') or contains(@href,'filesmail.ru/') or contains(@href,'failoobmenik.ru/')"+
  5093. " or contains(@href,'firebit.in/') or contains(@href,'dlbit.net/') or contains(@href,'files.china-gsm.ru/') or contains(@href,'3aka4aem.ru/')"+
  5094. " or contains(@href,'file.piratski.ru/') or contains(@href,'mnogofiles.com/') or contains(@href,'links-free.ru/')"+
  5095. " or contains(@href,'turbo-bit.ru/') or contains(@href,'turbosfiles.ru/')]"
  5096. );
  5097. }
  5098. if (GM_getValue("Check_fileshare_dot_in_dot_ua_links", false))
  5099. {
  5100. addFileHost(
  5101. "fileshare\\.in\\.ua\/\\w+",
  5102. '"file_name ',
  5103. 'df_content">',
  5104. 'optional--',
  5105. "//a[contains(@href,'fileshare.in.ua')]"
  5106. );
  5107. }
  5108. if (GM_getValue("Check_data_dot_hu_links", false))
  5109. {
  5110. addFileHost(
  5111. "data\\.hu\/get\/\\d+\/",
  5112. 'download_box_button',
  5113. 'missing\\.php',
  5114. 'optional--',
  5115. "//a[contains(@href,'data.hu/get')]",
  5116. true
  5117. );
  5118. }
  5119. if (GM_getValue("Check_filesmelt_dot_com_links", false))
  5120. {
  5121. addFileHost(
  5122. "filesmelt\\.com\/dl\/\\w+",
  5123. '(Your download is ready|Download File)',
  5124. 'Sorry, but your',
  5125. 'optional--',
  5126. "//a[contains(@href,'filesmelt.com/dl')]"
  5127. );
  5128. }
  5129. if (GM_getValue("Check_indowebster_dot_com_links", false))
  5130. {
  5131. addFileHost(
  5132. "(?:files\\.)?indowebster\\.com\/download\/\\w+\/",
  5133. 'premiumBtn"',
  5134. 'errorMessage"',
  5135. 'optional--',
  5136. "//a[contains(@href,'indowebster.com/download')]"
  5137. );
  5138. }
  5139. if (GM_getValue("Check_superload_dot_cz_links", false))
  5140. {
  5141. addFileHost(
  5142. "superload\\.cz\/dl\/\\w+",
  5143. 'icon-download">',
  5144. 'soubor nebyl nalezen',
  5145. 'optional--',
  5146. "//a[contains(@href,'superload.cz/dl')]"
  5147. );
  5148. }
  5149. if (GM_getValue("Check_hulkfile_dot_eu_links", false))
  5150. {
  5151. addFileHost(
  5152. "(?:w\\.hulkfile\\.com|hulkfile\\.eu)\/\\w+",
  5153. 'op" value="download',
  5154. 'class="err">|width:500px;text-align:left;">',
  5155. 'optional--',
  5156. "//a[contains(@href,'hulkfile.')]"
  5157. );
  5158. }
  5159. if (GM_getValue("Check_easybytez_dot_com_links", false))
  5160. {
  5161. addFileHost(
  5162. "easybytez\\.com\/\\w+",
  5163. 'op" value="download',
  5164. 'stop_error\\.gif',
  5165. 'optional--',
  5166. "//a[contains(@href,'easybytez.com/')]"
  5167. );
  5168. }
  5169. if (GM_getValue("Check_filestore_dot_com_dot_ua_links", false))
  5170. {
  5171. addFileHost(
  5172. "filestore\\.com\\.ua\/\\?d=\\w+",
  5173. 'tdrow1>',
  5174. 'class=warn',
  5175. 'optional--',
  5176. "//a[contains(@href,'filestore.com.ua/?d=')]"
  5177. );
  5178. }
  5179. if (GM_getValue("Check_netkups_dot_com_links", false))
  5180. {
  5181. addFileHost(
  5182. "netkups\\.com\/\\?d=\\w+",
  5183. 'submit">Continue',
  5184. 'page">File not found|deleted due to inactivity',
  5185. 'optional--',
  5186. "//a[contains(@href,'netkups.com/?d=')]"
  5187. );
  5188. }
  5189. if (GM_getValue("Check_openfile_dot_ru_links", false))
  5190. {
  5191. addFileHost(
  5192. "openfile\\.ru\/(?:video\/|)\\d+",
  5193. 'videobox_left">',
  5194. 'blog_title">|not found on this server',
  5195. 'optional--',
  5196. "//a[contains(@href,'openfile.ru/')]"
  5197. );
  5198. }
  5199. if (GM_getValue("Check_extmatrix_dot_com_links", false))
  5200. {
  5201. addFileHost(
  5202. "extmatrix\\.com\/files\/\\w+",
  5203. 'div class="success"',
  5204. 'div class="error"',
  5205. 'optional--',
  5206. "//a[contains(@href,'extmatrix.com/files')]"
  5207. );
  5208. }
  5209. if (GM_getValue("Check_sendfiles_dot_nl_links", false))
  5210. {
  5211. addFileHost(
  5212. "sendfiles\\.nl\/download.aspx\\?ID=\\w+",
  5213. 'content_lnkDownload',
  5214. 'error\\.aspx\\?',
  5215. 'optional--',
  5216. "//a[contains(@href,'sendfiles.nl/download.aspx')]"
  5217. );
  5218. }
  5219. if (GM_getValue("Check_sockshare_dot_com_links", false))
  5220. {
  5221. addFileHost(
  5222. "sockshare\\.com\/file\/\\w+",
  5223. 'choose_speed">',
  5224. 'message t_0\'>',
  5225. 'optional--',
  5226. "//a[contains(@href,'sockshare.com/file')]"
  5227. );
  5228. }
  5229. if (GM_getValue("Check_yourfilestore_dot_com_links", false))
  5230. {
  5231. addFileHost(
  5232. "yourfilestore\\.com\/download\/\\d+\/",
  5233. 'download_data">',
  5234. 'may have been deleted|<h1>Sorry!<\/h1>',
  5235. 'optional--',
  5236. "//a[contains(@href,'yourfilestore.com/download')]"
  5237. );
  5238. }
  5239. if (GM_getValue("Check_nekaka_dot_com_links", false))
  5240. {
  5241. addFileHost(
  5242. "nekaka\\.com\/d\/[\\w-]+",
  5243. 'downloadForm">',
  5244. 'invalid file link',
  5245. 'optional--',
  5246. "//a[contains(@href,'nekaka.com/d')]"
  5247. );
  5248. }
  5249. if (GM_getValue("Check_filebig_dot_net_links", false))
  5250. {
  5251. addFileHost(
  5252. "filebig\\.net\/files\/\\w+",
  5253. 'downloadFile">',
  5254. '<p>File not found<\/p>',
  5255. 'optional--',
  5256. "//a[contains(@href,'filebig.net/files')]"
  5257. );
  5258. }
  5259. if (GM_getValue("Check_gamefront_dot_com_links", false))
  5260. {
  5261. addFileHost(
  5262. "files\\.filefront\\.com\/\/;\\d+;;",
  5263. 'downloadLink">',
  5264. 'File not found, you',
  5265. 'optional--',
  5266. "//a[contains(@href,'files.filefront.com')]"
  5267. );
  5268.  
  5269. addFileHost(
  5270. "gamefront\\.com\/files\/\\d+",
  5271. 'downloadLink">',
  5272. 'File not found, you',
  5273. 'optional--',
  5274. "//a[contains(@href,'gamefront.com/files')]"
  5275. );
  5276. }
  5277. if (GM_getValue("Check_hyperfileshare_dot_com_links", false))
  5278. {
  5279. addFileHost(
  5280. "(?:download\\.|)hyperfileshare\\.com\/(?:download\\.php\\?code=|d\/)\\w+",
  5281. 'dnlLnk"',
  5282. 'already been deleted',
  5283. 'optional--',
  5284. "//a[contains(@href,'hyperfileshare.com/download') or contains(@href,'hyperfileshare.com/d')]"
  5285. );
  5286. }
  5287. if (GM_getValue("Check_hellupload_dot_com_links", false))
  5288. {
  5289. addFileHost(
  5290. "hellupload\\.com\/\\w+",
  5291. '<h3>Download File<br',
  5292. 'id="podstrona">|AVOID_IE_BUG',
  5293. 'optional--',
  5294. "//a[contains(@href,'hellupload.com/')]"
  5295. );
  5296. }
  5297. if (GM_getValue("Check_free_dash_uploading_dot_com_links", false))
  5298. {
  5299. addFileHost(
  5300. "free\\-uploading\\.com\/\\w+",
  5301. 'op" value="download',
  5302. 'class="err">|width:500px;text-align:left;">',
  5303. 'optional--',
  5304. "//a[contains(@href,'free-uploading.com/')]"
  5305. );
  5306. }
  5307. if (GM_getValue("Check_fileape_dot_com_links", false))
  5308. {
  5309. addFileHost(
  5310. "fileape\\.com\/download\\-",
  5311. 'button_dl\\.png',
  5312. 'does not exist\\.',
  5313. 'optional--',
  5314. "//a[contains(@href,'fileape.com/')]"
  5315. );
  5316. }
  5317. if (GM_getValue("Check_uppit_dot_com_links", false))
  5318. {
  5319. addFileHost(
  5320. "(?:uppit\\.com|up\\.ht)\/\\w+",
  5321. 'op" value="download',
  5322. 'class="err">|style="width:500px;text-align:left;"|fish-404\\.png"',
  5323. 'optional--',
  5324. "//a[contains(@href,'up.ht/') or contains(@href,'uppit.com/')]",
  5325. true
  5326. );
  5327. }
  5328. if (GM_getValue("Check_nosupload_dot_com_links", false))
  5329. {
  5330. addFileHost(
  5331. "nosupload\\.com\/(?:\\?d=)?\\w+",
  5332. 'op" value="download',
  5333. '>File Not Found<',
  5334. 'optional--',
  5335. "//a[contains(@href,'nosupload.com')]",
  5336. true
  5337. );
  5338. }
  5339. if (GM_getValue("Check_filesin_dot_com_links", false))
  5340. {
  5341. addFileHost(
  5342. "filesin\\.com\/\\w+\/download\\.html",
  5343. 'download_area">',
  5344. 'error_note">',
  5345. 'optional--',
  5346. "//a[contains(@href,'filesin.com/')]",
  5347. true
  5348. );
  5349. }
  5350. if (GM_getValue("Check_nowdownload_dot_eu_links", false))
  5351. {
  5352. addFileHost(
  5353. "nowdownload\\.eu\/dl\/\\w+",
  5354. 'alert-success"',
  5355. 'This file does not exist!',
  5356. 'The file is being transfered',
  5357. "//a[contains(@href,'nowdownload.eu/dl')]"
  5358. );
  5359. }
  5360. if (GM_getValue("Check_axifile_dot_com_links", false))
  5361. {
  5362. addFileHost(
  5363. "axifile\\.com(?:\/\w(2))?\/\\??\\w+",
  5364. 'Dbutton_big"',
  5365. 'download\\-error\\.php',
  5366. 'optional--',
  5367. "//a[contains(@href,'axifile.com/')]"
  5368. );
  5369. }
  5370. /* if (GM_getValue("Check_asfile_dot_com_links", false))
  5371. {
  5372. addFileHost(
  5373. "asfile\\.com\/file\/\\w+",
  5374. '<div class="red_button ">|id="download_button"|btnSlow',
  5375. 'Page not found|padding: 0 200px 300px;">|does not exist|>File is deleted<|Delete Reason: Self removed',
  5376. 'optional--',
  5377. "//a[contains(@href,'asfile.com/file')]"
  5378. );
  5379. } */
  5380. if (GM_getValue("Check_hulkshare_dot_com_links", false))
  5381. {
  5382. addFileHost(
  5383. "hulkshare\.com\/\\w+",
  5384. 'download\.sam\.png|This is a private file|id="filename',
  5385. 'File does not exist|fingerprint protected copyright',
  5386. 'optional--',
  5387. "//a[contains(@href,'hulkshare.com')]"
  5388. );
  5389. }
  5390. if (GM_getValue("Check_turbobit_dot_net_links", false)) //folders
  5391. {
  5392. addFileHost(
  5393. "turbobit\\.(?:net|pl)\/download\/folder\/\\d+",
  5394. 'col-1">\\s*<s',
  5395. 'col-1">\\s*<h',
  5396. 'optional--',
  5397. "//a[contains(@href,'turbobit.') and contains(@href,'download/folder')]"
  5398. );
  5399. }
  5400. if (GM_getValue("Check_hitfile_dot_net_links", false)) //folders
  5401. {
  5402. addFileHost(
  5403. "hitfile\\.net\/download\/folder\/\\d+",
  5404. 'content">\\s*<s',
  5405. 'content">\\s*<h',
  5406. 'optional--',
  5407. "//a[contains(@href,'hitfile.net/download/folder')]"
  5408. );
  5409. }
  5410. if (GM_getValue("Check_netload_dot_in_links", false)) //folders
  5411. {
  5412. addFileHost(
  5413. "netload\\.in\/folder\\.php\\?folder_id=\\w+",
  5414. 'images\/online\\.gif',
  5415. 'InPage_Error"',
  5416. 'optional--',
  5417. "//a[contains(@href,'netload.in/folder.php')]"
  5418. );
  5419. }
  5420. if (GM_getValue("Check_movshare_dot_net_links", false))
  5421. {
  5422. addFileHost(
  5423. "movshare\\.net\\/video\\/\\w+",
  5424. 'optional--"',
  5425. 'no longer exists',
  5426. 'optional--',
  5427. "//a[contains(@href,'movshare.net/video')]"
  5428. );
  5429. }
  5430. if (GM_getValue("Check_plunder_dot_com_links", false))
  5431. {
  5432. addFileHost(
  5433. "plunder\.com\/\\w+",
  5434. 'x\/download\\.gif',
  5435. '404 - File or directory not found.',
  5436. 'optional--',
  5437. "//a[contains(@href,'plunder.com')]"
  5438. );
  5439. }
  5440. if (GM_getValue("Check_mafiastorage_dot_com_links", false))
  5441. {
  5442. addFileHost(
  5443. "mafiastorage\\.com\/\\w+",
  5444. 'op" value="download',
  5445. 'class="err">|style="width:500px;text-align:left;"',
  5446. 'optional--',
  5447. "//a[contains(@href,'mafiastorage.com/')]"
  5448. );
  5449. }
  5450. if (GM_getValue("Check_uploadspace_dot_pl_links", false))
  5451. {
  5452. addFileHost(
  5453. "uploadspace\.pl\/plik\\w+",
  5454. 'Downloading .+? \\|',
  5455. 'Downloading a file',
  5456. 'optional--',
  5457. "//a[contains(@href,'uploadspace.pl/plik')]"
  5458. );
  5459. }
  5460. if (GM_getValue("Check_uploadingit_dot_com_links", false))
  5461. {
  5462. addFileHost(
  5463. "uploadingit\\.com\/file\/\\w+",
  5464. 'downloadTitle">',
  5465. 'deleteContent">',
  5466. 'optional--',
  5467. "//a[contains(@href,'uploadingit.com/file')]"
  5468. );
  5469. }
  5470. if (GM_getValue("Check_rghost_dot_net_links", false))
  5471. {
  5472. addFileHost(
  5473. "rghost\.(?:net|ru)\/(?:|private\/)\\d+",
  5474. 'download_link|btn large download"',
  5475. 'file is restricted|File is deleted|503 Service Unavailable',
  5476. 'File was deleted',
  5477. "//a[contains(@href,'rghost.')]"
  5478. );
  5479. }
  5480. if (GM_getValue("Check_xdisk_dot_cz_links", false))
  5481. {
  5482. addFileHost(
  5483. "xdisk\\.cz\/(?:..\/)?download\\.php\\?id=\\w+",
  5484. '">Staženo:\\s*<\/span>',
  5485. 'Soubor, který hledáte nenalezen',
  5486. 'optional--',
  5487. "//a[contains(@href,'xdisk.cz/')]"
  5488. );
  5489. }
  5490. if (GM_getValue("Check_expressleech_dot_com_links", false))
  5491. {
  5492. addFileHost(
  5493. "expressleech\.com\/\\w+",
  5494. 'src="/img/Download.gif"|var _gaq =',
  5495. 'var rr =|403 Forbidden',
  5496. 'optional--',
  5497. "//a[contains(@href,'expressleech.com')]");
  5498. }
  5499. if (GM_getValue("Check_2downloadz_dot_com_links", false))
  5500. {
  5501. addFileHost(
  5502. "2downloadz\.com\/\\w+",
  5503. 'color="#848484|src="images/Download.png"|color:#238DCA',
  5504. 'color="#006DCC|File error',
  5505. 'optional--',
  5506. "//a[contains(@href,'2downloadz.com')]");
  5507. }
  5508. if (GM_getValue("Check_mightyupload_dot_com_links", false))
  5509. {
  5510. addFileHost(
  5511. "mightyupload\.com\/\\w+",
  5512. 'background:#ccc;text-align|CONTENT="Download File"',
  5513. 'style="background:#eee|var rr =|File Not Found',
  5514. 'optional--',
  5515. "//a[contains(@href,'mightyupload.com')]");
  5516. }
  5517. if (GM_getValue("Check_uncapped_dash_downloads_dot_com_links", false))
  5518. {
  5519. addFileHost(
  5520. "uncapped-downloads\.com\/\\w+",
  5521. 'btn_download',
  5522. 'File Not Found',
  5523. 'optional--',
  5524. "//a[contains(@href,'uncapped-downloads.com')]");
  5525. }
  5526. if (GM_getValue("Check_k2s_dot_cc_links", false))
  5527. {
  5528. addFileHost(
  5529. "k2s\.cc\/\\w+",
  5530. 'Click here for slow download with|class="btn" id="yw0"',
  5531. 'Error 404|class="errorSummary">|this file is blocked or deleted|>404 Not Found<|To avoid damaged files|This file is no longer available',
  5532. 'please try later',
  5533. //'optional--',
  5534. "//a[contains(@href,'k2s.cc')]");
  5535. }
  5536. if (GM_getValue("Check_keep2share_dot_cc_links", false))
  5537. {
  5538. addFileHost(
  5539. "keep2share\.cc\/\\w+",
  5540. 'Click here for slow download with|class="btn" id="yw0"',
  5541. 'Error 404|class="errorSummary">|this file is blocked or deleted|>404 Not Found<|To avoid damaged files|This file is no longer available',
  5542. 'please try later',
  5543. //'optional--',
  5544. "//a[contains(@href,'keep2share.cc')]");
  5545. }
  5546. if (GM_getValue("Check_keep2s_dot_cc_links", false))
  5547. {
  5548. addFileHost(
  5549. "keep2s\.cc\/\\w+",
  5550. 'Click here for slow download with|class="btn" id="yw0"',
  5551. 'Error 404|class="errorSummary">|this file is blocked or deleted|>404 Not Found<|To avoid damaged files|This file is no longer available',
  5552. 'please try later',
  5553. //'optional--',
  5554. "//a[contains(@href,'keep2s.cc')]");
  5555. }
  5556. if (GM_getValue("Check_keep2share_dot_com_links", false))
  5557. {
  5558. addFileHost(
  5559. "keep2share\.com\/\\w+",
  5560. 'Click here for slow download with|class="btn" id="yw0"',
  5561. 'Error 404|class="errorSummary">|this file is blocked or deleted|>404 Not Found<|To avoid damaged files|This file is no longer available',
  5562. 'please try later',
  5563. //'optional--',
  5564. "//a[contains(@href,'keep2share.com')]");
  5565. }
  5566. if (GM_getValue("Check_anysend_dot_com_links", false))
  5567. {
  5568. addFileHost(
  5569. "anysend\.com\/\\w+",
  5570. 'var openCalled=false;|content="noindex"',
  5571. '_trackPageview',
  5572. 'optional--',
  5573. "//a[contains(@href,'anysend.com')]");
  5574. }
  5575. if (GM_getValue("Check_datafile_dot_com_links", false))
  5576. {
  5577. addFileHost(
  5578. "datafile\.com\/\\w+",
  5579. 'src="/js/files_download.js"|get-premium-button',
  5580. 'ErrorCode|class="error-msg"|ErrorCode 0: Invalid Link',
  5581. 'You are downloading another file at this moment|You exceeded your free',
  5582. //'optional--',
  5583. "//a[contains(@href,'datafile.com')]");
  5584. }
  5585. if (GM_getValue("Check_upstore_dot_net_links", false))
  5586. {
  5587. addFileHost(
  5588. "upstore\.net\/\\w+",
  5589. 'style="margin-top: 20px">|style="text-align:center; margin: 20px 0 100px;">',
  5590. 'File not found|onload="redirect|class="error">',
  5591. 'optional--',
  5592. "//a[contains(@href,'upstore.net')]");
  5593. }
  5594. if (GM_getValue("Check_upsto_dot_re_links", false))
  5595. {
  5596. addFileHost(
  5597. "upsto\.re\/\\w+",
  5598. 'style="margin-top: 20px">|style="text-align:center; margin: 20px 0 100px;">',
  5599. 'File not found|onload="redirect|class="error">',
  5600. 'optional--',
  5601. "//a[contains(@href,'upsto.re')]");
  5602. }
  5603. if (GM_getValue("Check_speedy_dot_sh_links", false))
  5604. {
  5605. addFileHost(
  5606. "speedy\.sh\/\\w+",
  5607. 'bgcolor=#eeeeee|class="addthis',
  5608. 'File not found|downloadfilenamenotfound>',
  5609. 'optional--',
  5610. "//a[contains(@href,'speedy.sh')]");
  5611. }
  5612. if (GM_getValue("Check_sanshare_dot_com_links", false))
  5613. {
  5614. addFileHost(
  5615. "sanshare\.com\/\\w+",
  5616. 'SANSHARE_TOPBANNER|offset-1"><h3><b>Download File',
  5617. 'offset-1"><b>File Not Found<|width:500px;text-align',
  5618. 'optional--',
  5619. "//a[contains(@href,'sanshare.com')]");
  5620. }
  5621. if (GM_getValue("Check_dizzcloud_dot_com_links", false))
  5622. {
  5623. addFileHost(
  5624. "dizzcloud\.com\/\\w+",
  5625. '2299210355.png"|class="name"',
  5626. 'span>404|class="cyan upgrade"',
  5627. 'optional--',
  5628. "//a[contains(@href,'dizzcloud.com')]");
  5629. }
  5630. if (GM_getValue("Check_kingfiles_dot_net_links", false))
  5631. {
  5632. addFileHost(
  5633. "kingfiles\.net\/\\w+",
  5634. 'img/spriteBanner.png|If you are the owner of this file',
  5635. 'var rr =|"description" CONTENT="Download File ">|<div style="width:500px;text-align:left;">|The file was removed by administrator',
  5636. 'optional--',
  5637. "//a[contains(@href,'kingfiles.net')]");
  5638. }
  5639. if (GM_getValue("Check_uploadhero_dot_co_links", false))
  5640. {
  5641. addFileHost(
  5642. "uploadhero\\.co\/dl\/\\w+",
  5643. 'class="nom_de_fichier"|Unlimited downloads|Estimated download time|Lien de téléchargement"',
  5644. 'not available on our server|pas disponible sur nos serveurs|Le lien du fichier est incorrect',
  5645. 'optional--',
  5646. "//a[contains(@href,'uploadhero.co/dl')]"
  5647. );
  5648. }
  5649. if (GM_getValue("Check_secureupload_dot_eu_links", false))
  5650. {
  5651. addFileHost(
  5652. "secureupload\\.eu\/\\w+",
  5653. 'Downloading',
  5654. 'cannot be found|File Not Found|could not be found',
  5655. 'optional--',
  5656. "//a[contains(@href,'secureupload.eu')]"
  5657. );
  5658. }
  5659. if (GM_getValue("Check_ge_dot_tt_links", false))
  5660. {
  5661. addFileHost(
  5662. "ge\.tt\/\\w+",
  5663. 'downloads pic',
  5664. 'is NOT the same as',
  5665. 'optional--',
  5666. "//a[contains(@href,'ge.tt')]");
  5667. }
  5668. if (GM_getValue("Check_filefactory_dot_com_links", false))
  5669. {
  5670. addFileHost(
  5671. "filefactory\.com\/\\w+",
  5672. 'div id="file_holder"|download.css',
  5673. 'File Removed|Invalid Download Link|File Unavailable|Server Failed|Datei entfernt|This file has been removed',
  5674. 'Server Maintenance|temporarily overloaded',
  5675. //'optional--',
  5676. "//a[contains(@href,'filefactory.com')]");
  5677. }
  5678. if (GM_getValue("Check_filesflash_dot_net_links", false))
  5679. {
  5680. addFileHost(
  5681. "filesflash\.net\/\\w+",
  5682. 'align:right">Filename:',
  5683. 'class="msg">',
  5684. 'optional--',
  5685. "//a[contains(@href,'filesflash.net')]");
  5686. }
  5687. if (GM_getValue("Check_rapidgator_dot_net_links", false)) //folders
  5688. {
  5689. addFileHost(
  5690. "rapidgator\\.net\/folder\/\\w+",
  5691. 'href="/folder/',
  5692. 'class="empty|Folder not found|Carpeta no encontrada|Dossier non trouvé|Папка не найдена',
  5693. 'optional--',
  5694. "//a[contains(@href,'rapidgator.net/folder')]",
  5695. true
  5696. );
  5697. }
  5698. if (GM_getValue("Check_salefiles_dot_com_links", false))
  5699. {
  5700. addFileHost(
  5701. "salefiles\.com\/\\w+",
  5702. '<Title>Download|CONTENT="Download',
  5703. 'font:15px Arial|background:#eee;',
  5704. 'optional--',
  5705. "//a[contains(@href,'salefiles.com')]");
  5706. }
  5707. if (GM_getValue("Check_megairon_dot_net_links", false))
  5708. {
  5709. addFileHost(
  5710. "megairon\.net\/\\w+",
  5711. 'border: 5px #ffeb90 solid;',
  5712. 'CONTENT="Download File ">|var rr =',
  5713. 'optional--',
  5714. "//a[contains(@href,'megairon.net')]");
  5715. }
  5716. /* if (GM_getValue("Check_terafile_dot_co_links", false))
  5717. {
  5718. addFileHost(
  5719. "terafile\.co\/\\w+",
  5720. '<div style="width:900px;">',
  5721. 'background:#eee;font:15px|var rr =|The link was deleted by administration|File Not Found|>404 Not Found<|<div style="width:500px;text-align:left;">|The file was removed by administrator',
  5722. 'Software error|server is in maintenance mode|error-code">522<',
  5723. //'optional--',
  5724. "//a[contains(@href,'terafile.co')]");
  5725. }
  5726. if (GM_getValue("Check_terafile_dot_com_links", false))
  5727. {
  5728. addFileHost(
  5729. "terafile\.com\/\\w+",
  5730. '<div style="width:900px;">',
  5731. 'background:#eee;font:15px|var rr =|The link was deleted by administration|File Not Found|>404 Not Found<|<div style="width:500px;text-align:left;">|The file was removed by administrator',
  5732. 'Software error|server is in maintenance mode|error-code">522<',
  5733. //'optional--',
  5734. "//a[contains(@href,'terafile.com')]");
  5735. } */
  5736. if (GM_getValue("Check_datoid_dot_cz_links", false))
  5737. {
  5738. addFileHost(
  5739. "datoid\.cz\/\\w+",
  5740. 'btn-download|class="icon-download-large"',
  5741. 'Stránka nenalezena|error-404|Soubor byl zablokován',
  5742. 'optional--',
  5743. "//a[contains(@href,'datoid.cz')]");
  5744. }
  5745. if (GM_getValue("Check_stiahni_dot_si_links", false))
  5746. {
  5747. addFileHost(
  5748. "stiahni\.si\/\\w+",
  5749. 'report_icon.png"|slow-download-button',
  5750. 'none.png|deleted|<h2>Error 500</h2>',
  5751. 'optional--',
  5752. "//a[contains(@href,'stiahni.si')]");
  5753. }
  5754. if (GM_getValue("Check_cloudstor_dot_es_links", false))
  5755. {
  5756. addFileHost(
  5757. "cloudstor\.es\/\\w+",
  5758. '"btn_download"',
  5759. '404: Page Not Found',
  5760. 'optional--',
  5761. "//a[contains(@href,'cloudstor.es')]");
  5762. }
  5763. if (GM_getValue("Check_streamfile_dot_com_links", false))
  5764. {
  5765. addFileHost(
  5766. "streamfile\.com\/\\w+",
  5767. 'class="btn',
  5768. 'class="green-btn',
  5769. 'optional--',
  5770. "//a[contains(@href,'streamfile.com')]");
  5771. }
  5772. if (GM_getValue("Check_eyesfile_dot_ca_links", false))
  5773. {
  5774. addFileHost(
  5775. "eyesfile\.ca\/\\w+",
  5776. 'value="Get Link',
  5777. 'var rr =',
  5778. 'optional--',
  5779. "//a[contains(@href,'eyesfile.ca')]");
  5780. }
  5781. if (GM_getValue("Check_filemoney_dot_com_links", false))
  5782. {
  5783. addFileHost(
  5784. "filemoney\.com\/\\w+",
  5785. 'og:title',
  5786. '404 Not Found|<Title>FileMoney',
  5787. 'optional--',
  5788. "//a[contains(@href,'filemoney.com')]");
  5789. }
  5790. if (GM_getValue("Check_uploadboy_dot_com_links", false))
  5791. {
  5792. addFileHost(
  5793. "uploadboy\.com\/\\w+",
  5794. 'width="740">',
  5795. 'var rr =|background:#ffffff|not be found',
  5796. 'optional--',
  5797. "//a[contains(@href,'uploadboy.com')]");
  5798. }
  5799. if (GM_getValue("Check_speedshare_dot_eu_links", false))
  5800. {
  5801. addFileHost(
  5802. "speedshare\.eu\/\\w+",
  5803. 'favicon.png|color:#3d87c0|cross.png"',
  5804. 'var rr =|File Not Found|style="background:#eee',
  5805. 'optional--',
  5806. "//a[contains(@href,'speedshare.eu')]");
  5807. }
  5808. if (GM_getValue("Check_unlimitzone_dot_com_links", false))
  5809. {
  5810. addFileHost(
  5811. "unlimitzone\.com\/\\w+",
  5812. 'content="1" name="',
  5813. 'var rr =|File Not Found',
  5814. 'optional--',
  5815. "//a[contains(@href,'unlimitzone.com')]");
  5816. }
  5817. if (GM_getValue("Check_rioupload_dot_com_links", false))
  5818. {
  5819. addFileHost(
  5820. "rioupload\.com\/\\w+",
  5821. 'sell.jpg',
  5822. 'var rr =',
  5823. 'optional--',
  5824. "//a[contains(@href,'rioupload.com')]");
  5825. }
  5826. if (GM_getValue("Check_rg_dot_to_links", false))
  5827. {
  5828. addFileHost(
  5829. "rg\.to\/\\w+",
  5830. '/download/AjaxStartTimer|not more than 1 file at a time|your hourly downloads limit|почасовой лимит скачиваний|limite horaire de téléchargements|límite de descargas en una hora',
  5831. 'Error 404|File not found|Select your plan',
  5832. 'optional--',
  5833. //'optional--',
  5834. "//a[contains(@href,'rg.to')]");
  5835. }
  5836. if (GM_getValue("Check_jumbofiles_dot_org_links", false))
  5837. {
  5838. addFileHost(
  5839. "jumbofiles\.org\/\\w+",
  5840. 'H71C5.png|class="downloadtitle">',
  5841. 'var swfu|ViewSourceBIN.png',
  5842. 'optional--',
  5843. "//a[contains(@href,'jumbofiles.org')]");
  5844. }
  5845. if (GM_getValue("Check_fshare_dot_vn_links", false))
  5846. {
  5847. addFileHost(
  5848. "fshare\\.vn\/file\/\\w+",
  5849. 'action="#download"|left; width: 330px;">|class="bt_down"',
  5850. 'không tồn tại|class="color_red m_t_50"',
  5851. 'optional--',
  5852. "//a[contains(@href,'fshare.vn/file')]",
  5853. true
  5854. );
  5855. }
  5856. if (GM_getValue("Check_spaceforfiles_dot_com_links", false))
  5857. {
  5858. addFileHost(
  5859. "spaceforfiles\.com\/\\w+",
  5860. 'btn_slowspeed_b.jpg|value="download1|class="btn_blue',
  5861. 'var rr =|AVOID_IE_BUG',
  5862. 'optional--',
  5863. "//a[contains(@href,'spaceforfiles.com')]");
  5864. }
  5865. if (GM_getValue("Check_google_dot_com_links", false))
  5866. {
  5867. addFileHost(
  5868. "google\\.com\/file\/\\w+",
  5869. 'content="!">|color:#2d2d2d',
  5870. '12pt; font-weight:|class="errorMessage"|F0F6FF',
  5871. 'optional--',
  5872. "//a[contains(@href,'google.com/file')]",
  5873. true
  5874. );
  5875. }
  5876. if (GM_getValue("Check_google_dot_com_links", false))
  5877. {
  5878. addFileHost(
  5879. "docs.google.com\/\\w+",
  5880. 'content="!">|color:#2d2d2d',
  5881. '12pt; font-weight:|class="errorMessage"|F0F6FF|Error 404',
  5882. 'optional--',
  5883. "//a[contains(@href,'docs.google.com')]",
  5884. true
  5885. );
  5886. }
  5887. if (GM_getValue("Check_google_dot_com_links", false))
  5888. {
  5889. addFileHost(
  5890. "drive.google.com\/\\w+",
  5891. 'content="!">|color:#2d2d2d|id="uc-download-link',
  5892. '12pt; font-weight:|class="errorMessage"|F0F6FF|Error 404',
  5893. 'optional--',
  5894. "//a[contains(@href,'drive.google.com')]",
  5895. true
  5896. );
  5897. }
  5898. if (GM_getValue("Check_up_dot_media1fire_dot_com_links", false))
  5899. {
  5900. addFileHost(
  5901. "up.media1fire\.com\/\\w+",
  5902. 'class="addthis_|value="download',
  5903. 'var rr =|AVOID_IE_BUG|<div style="width:500px;text-align:left;">',
  5904. 'optional--',
  5905. "//a[contains(@href,'up.media1fire.com')]");
  5906. }
  5907. if (GM_getValue("Check_depfile_dot_com_links", false))
  5908. {
  5909. addFileHost(
  5910. "depfile\.com\/\\w+",
  5911. 'logo_0.png|downloads.gif"',
  5912. 'border-color: #5D729B;|bgcolor="#778AAF"',
  5913. 'optional--',
  5914. "//a[contains(@href,'depfile.com')]");
  5915. }
  5916. if (GM_getValue("Check_go4up_dot_com_links", false))
  5917. {
  5918. addFileHost(
  5919. "go4up\.com\/\\w+",
  5920. 'style="width: 100%;">|value="Access',
  5921. '<title>GO4UP|dmca',
  5922. 'optional--',
  5923. "//a[contains(@href,'go4up.com')]");
  5924. }
  5925. if (GM_getValue("Check_redbunker_dot_net_links", false))
  5926. {
  5927. addFileHost(
  5928. "redbunker\.net\/\\w+",
  5929. 'dload.png|rowspan="3">|yep.gif',
  5930. 'CONTENT="RedBunker|#D3D3D3;|color:#d33|AVOID_IE_BUG',
  5931. 'optional--',
  5932. "//a[contains(@href,'redbunker.net')]");
  5933. }
  5934. if (GM_getValue("Check_divxpress_dot_com_links", false))
  5935. {
  5936. addFileHost(
  5937. "divxpress\.com\/\\w+",
  5938. 'btn_download|logo.png"',
  5939. 'AVOID_IE_BUG|var rr =',
  5940. 'optional--',
  5941. "//a[contains(@href,'divxpress.com')]");
  5942. }
  5943. if (GM_getValue("Check_anafile_dot_com_links", false))
  5944. {
  5945. addFileHost(
  5946. "anafile\.com\/\\w+",
  5947. 'width="881" valign="top|color="#800080"',
  5948. 'style="width:500px;text-align:left;">|file was deleted|AVOID_IE_BUG',
  5949. 'optional--',
  5950. "//a[contains(@href,'anafile.com')]");
  5951. }
  5952. if (GM_getValue("Check_uploadable_dot_ch_links", false))
  5953. {
  5954. addFileHost(
  5955. "uploadable\\.ch\/file\/\\w+",
  5956. 'captcha.js"|payment.js"|class="btn_download"',
  5957. '<div class="icon_err">|<div class="errorBox">|"error_arrow">',
  5958. 'optional--',
  5959. "//a[contains(@href,'uploadable.ch/file')]",
  5960. true
  5961. );
  5962. }
  5963. if (GM_getValue("Check_arabloads_dot_com_links", false))
  5964. {
  5965. addFileHost(
  5966. "arabloads\.com\/\\w+",
  5967. 'name="method_free"|name="method_premium"',
  5968. 'background:#eee;font:15px Arial;">|AVOID_IE_BUG|Verdana;padding:3px;">Error',
  5969. 'optional--',
  5970. "//a[contains(@href,'arabloads.com')]");
  5971. }
  5972. if (GM_getValue("Check_sharerepo_dot_com_links", false))
  5973. {
  5974. addFileHost(
  5975. "sharerepo\.com\/\\w+",
  5976. 'name="method_free"',
  5977. 'var public_on=|The file you were looking for could not be found',
  5978. 'optional--',
  5979. "//a[contains(@href,'sharerepo.com')]");
  5980. }
  5981. if (GM_getValue("Check_sfshare_dot_se_links", false))
  5982. {
  5983. addFileHost(
  5984. "sfshare\.se\/\\w+",
  5985. 'id="btn_download"|class="btn btn-primary txt-bold" value="',
  5986. 'AVOID_IE_BUG|var rr =|style="width:500px;text-align:left;">|Reason for deletion|The file was removed',
  5987. 'optional--',
  5988. "//a[contains(@href,'sfshare.se')]");
  5989. }
  5990. if (GM_getValue("Check_files_dot_fm_links", false))
  5991. {
  5992. addFileHost(
  5993. "files\.fm\/\\w+",
  5994. 'dl.png"|background-color: transparent',
  5995. 'margin: 40px 40px|background: none;',
  5996. 'optional--',
  5997. "//a[contains(@href,'files.fm')]");
  5998. }
  5999. if (GM_getValue("Check_koofile_dot_com_links", false))
  6000. {
  6001. addFileHost(
  6002. "koofile\.com\/\\w+",
  6003. 'value="download1">|name="method_free"',
  6004. 'class="overview-content c_text-box ">|style="padding-top:3px;">|class="rt1 c">',
  6005. 'optional--',
  6006. "//a[contains(@href,'koofile.com')]");
  6007. }
  6008. if (GM_getValue("Check_shared_dot_com_links", false))
  6009. {
  6010. addFileHost(
  6011. "shared\.com\/\\w+",
  6012. 'class="icon-download|class="attachment-size">',
  6013. 'img/404.png"|error-img -->',
  6014. 'optional--',
  6015. "//a[contains(@href,'shared.com')]");
  6016. }
  6017. if (GM_getValue("Check_vidxden_dot_com_links", false))
  6018. {
  6019. addFileHost(
  6020. "vidxden\\.com\/\\w+",
  6021. 'Continue to Video"',
  6022. 'No such file',
  6023. 'optional--',
  6024. "//a[contains(@href,'vidxden.com')]"
  6025. );
  6026. }
  6027. if (GM_getValue("Check_muchshare_dot_net_links", false))
  6028. {
  6029. addFileHost(
  6030. "muchshare\\.net\/\\w+",
  6031. 'id="btn_download"',
  6032. 'File Not Found|width: 500px; text-align: left;',
  6033. 'optional--',
  6034. "//a[contains(@href,'muchshare.net')]"
  6035. );
  6036. }
  6037. if (GM_getValue("Check_daten_dash_hoster_dot_de_links", false))
  6038. {
  6039. addFileHost(
  6040. "(?:daten-hoster\\.de\/file\/\\w+|filehosting\\.org\/file\/\\w+|xtraupload\\.de\/\\?d=\\w+)",
  6041. 'Details zur Datei|Details page',
  6042. 'Jetzt hochladen|upload now',
  6043. 'optional--',
  6044. "//a[contains(@href,'daten-hoster.de/file') or contains(@href,'filehosting.org/file') or contains(@href,'xtraupload.de')]"
  6045. );
  6046. }
  6047. if (GM_getValue("Check_upload_dash_il_dot_net_links", false))
  6048. {
  6049. addFileHost(
  6050. "(?:upload-il|przeslij)\.net\/(?:en|he|ar|ru|)\/?\\w+",
  6051. 'downloadbtn"',
  6052. 'DL_FileNotFound',
  6053. 'optional--',
  6054. "//a[contains(@href,'upload-il.net') or contains(@href,'przeslij.net')]"
  6055. );
  6056. }
  6057. if (GM_getValue("Check_fileflyer_dot_com_links", false))
  6058. {
  6059. addFileHost(
  6060. "fileflyer\.com\/view\/\\w+",
  6061. '(?:dwl|locked)btn"',
  6062. 'error.gif"|link">Removed|removedlink">',
  6063. 'optional--',
  6064. "//a[contains(@href,'fileflyer.com')]"
  6065. );
  6066. }
  6067. if (GM_getValue("Check_filestore_dot_to_links", false))
  6068. {
  6069. addFileHost(
  6070. "filestore\.to\/\\?d=\\w+",
  6071. '"downloading"',
  6072. 'Datei wurde nicht gefunden',
  6073. 'optional--',
  6074. "//a[contains(@href,'filestore.to')]"
  6075. );
  6076. }
  6077. if (GM_getValue("Check_easy_dash_share_dot_com_links", false))
  6078. {
  6079. addFileHost(
  6080. "(?:w\\d*\.|)(?:crocko|easy-share)\\.com\/.",
  6081. 'fz24">Download|class="pl15">',
  6082. 'msg-err"|the page you\'re looking for|1>400 Bad Request<|class="search_result">|Searching for file|Information is not available|name="keywords" content="">|<title>Crocko.com 404',
  6083. 'optional--',
  6084. "//a[contains(@href,'easy-share.com') or contains(@href,'crocko.com')]"
  6085. );
  6086. }
  6087. if (GM_getValue("Check_burnupload_dot_com_links", false))
  6088. {
  6089. addFileHost(
  6090. "burnupload\\.(?:com\/\\?d=|ihiphop\\.com\/download\\.php\\?id=)\\w+",
  6091. 'File size:',
  6092. 'file is not found',
  6093. 'optional--',
  6094. "//a[contains(@href,'burnupload.com') or contains(@href,'burnupload.ihiphop.com')]"
  6095. );
  6096. }
  6097. if (GM_getValue("Check_datei_dot_to_links", false))
  6098. {
  6099. addFileHost(
  6100. "datei\\.to\/\\??\\w+",
  6101. 'icon_downloaden\\.png|>Download starten<',
  6102. 'Datei wurde nicht gefunden|icon_deleted.png',
  6103. 'optional--',
  6104. "//a[contains(@href,'datei.to')]"
  6105. );
  6106. }
  6107. if (GM_getValue("Check_yunfile_dot_com_links", false))
  6108. {
  6109. addFileHost(
  6110. "(?:yunfile|filemarkets)\\.com\/\\w+",
  6111. '<body class="body" id="body">|value="Slow Download"',
  6112. '<body class="body" >',
  6113. 'optional--',
  6114. "//a[contains(@href,'yunfile.com') or contains(@href,'filemarkets.com')]"
  6115. );
  6116. }
  6117. if (GM_getValue("Check_putlocker_dot_com_links", false))
  6118. {
  6119. addFileHost(
  6120. "putlocker\\.com\/file\/\\w{16}",
  6121. 'as Free User|<a class="continue"|Continue to file|#feedback_btn|application file_standalone',
  6122. 'Welcome to PutLocker|<div class="sad_face_image">|404:',
  6123. 'undergoing scheduled maintenance',
  6124. "//a[contains(@href,'putlocker.com/file')]"
  6125. );
  6126. }
  6127. /* if (GM_getValue("Check_luckyshare_dot_net_links", false))
  6128. {
  6129. addFileHost(
  6130. "luckyshare\\.net\/\\d+",
  6131. 'href="javascript:void(0)">Slow Download</a>|id="slow-download" class="dl-slowspeed|<strong>Wait:</strong> <span id="waitingtime">',
  6132. 'no such file available|color: #22757B;">',
  6133. '522: Connection timed out',
  6134. //'optional--',
  6135. "//a[contains(@href,'luckyshare.net/')]"
  6136. );
  6137. } */
  6138. if (GM_getValue("Check_uploadhero_dot_com_links", false))
  6139. {
  6140. addFileHost(
  6141. "uploadhero\\.com\/dl\/\\w+",
  6142. 'content-dl">',
  6143. 'men_file_lost\\.jpg"',
  6144. 'optional--',
  6145. "//a[contains(@href,'uploadhero.com/dl')]"
  6146. );
  6147. }
  6148. if (GM_getValue("Check_unibytes_dot_com_links", false))
  6149. {
  6150. addFileHost(
  6151. "unibytes\\.com\/[\\w\.]+",
  6152. 'trying to download|пытаетесь загрузить файл|tes entrain de tlcharger',
  6153. 'File not found|Файл не найден|',
  6154. 'optional--',
  6155. "//a[contains(@href,'unibytes.com')]"
  6156. );
  6157. }
  6158. if (GM_getValue("Check_hellshare_dot_com_links", false)) //very old type of links
  6159. {
  6160. addFileHost(
  6161. "www\\.hellshare\\.com\/\\d+",
  6162. 'tab\\-details"',
  6163. 'list-purp-2"|not found on this server',
  6164. 'optional--',
  6165. "//a[contains(@href,'www.hellshare.com')]"
  6166. );
  6167. }
  6168. if (GM_getValue("Check_quickshare_dot_cz_links", false)) //folders
  6169. {
  6170. addFileHost(
  6171. "quickshare\\.cz\/slozka-\\d+",
  6172. 'Počet souborů: <strong>[1-9]',
  6173. 'Počet souborů: <strong>0|Chyba! Taková složka neexistuje',
  6174. 'optional--',
  6175. "//a[contains(@href,'quickshare.cz/slozka')]"
  6176. );
  6177. }
  6178. if (GM_getValue("Check_filefactory_dot_com_links", false)) //folders
  6179. {
  6180. addFileHost(
  6181. "filefactory\\.com\/f\/\\w+",
  6182. 'folderFileList">',
  6183. 'table class="items"|Pointer" class="red">',
  6184. 'optional--',
  6185. "//a[contains(@href,'filefactory.com/f/')]"
  6186. );
  6187. }
  6188. if (GM_getValue("Check_netload_dot_in_links", false)) //folders
  6189. {
  6190. addFileHost(
  6191. "netfolder\\.in\/\\w+",
  6192. 'list" value="http',
  6193. 'InPage_Error">|list" value=""',
  6194. 'optional--',
  6195. "//a[contains(@href,'netfolder.in')]"
  6196. );
  6197. }
  6198. if (GM_getValue("Check_load_dot_to_links", false))
  6199. {
  6200. addFileHost(
  6201. '(?:www\\.|\\/)load\\.to\\/(?:\\w{10}\\/.|\\?d=\\w{10})',
  6202. '"download_table_left">Size',
  6203. 'Can\'t find file',
  6204. 'optional--',
  6205. "//a[contains(@href,'/load.to/') or contains(@href,'www.load.to/')]"
  6206. );
  6207. }
  6208. if (GM_getValue("Check_freakshare_dot_net_links", false))
  6209. {
  6210. addFileHost(
  6211. "freakshare\\.(?:net|com)\/files\/",
  6212. 'box_heading',
  6213. 'Este archivo no existe|Esse arquivo não existe|existent pas|К сожалению, этот файл больше не существует|Plik nie istnieje|Ez a fájl nem létezik|Acest fișier nu există|Dosya bulunamadı|ไฟล์นี้ไม่มีอยู่ |Tệp này không tồn tại|ファイルをありません|이 파일은 존재하지 않습니다!|此文件不存在|This file does not exist|Dieser Download existiert nicht|الملف المطلوب غير موجود',
  6214. 'Your Traffic is used up for today',
  6215. "//a[(contains(@href,'freakshare.net') or contains(@href,'freakshare.com')) and contains(@href,'files')]",
  6216. true
  6217. );
  6218. //folders
  6219. addFileHost(
  6220. "freakshare\\.(?:net|com)\/folder\/",
  6221. 'Files: [1-9]',
  6222. 'Files: 0',
  6223. 'optional--',
  6224. "//a[(contains(@href,'freakshare.net') or contains(@href,'freakshare.com')) and contains(@href,'folder')]",
  6225. true
  6226. );
  6227. }
  6228. /* if (GM_getValue("Check_bitshare_dot_com_links", false))
  6229. {
  6230. addFileHost(
  6231. "bitshare\\.com",
  6232. '">Total file size|class="download" style="width:820px;',
  6233. 'Folder can not be found|Folder does not contain any files|<h1>Error -|<title>BitShare.com',
  6234. 'optional--',
  6235. "//a[contains(@href,'bitshare.com')]",
  6236. true
  6237. );
  6238. } */
  6239. if (GM_getValue("Check_divshare_dot_com_links", false))
  6240. {
  6241. addFileHost(
  6242. "divshare\\.com\/download\/",
  6243. 'download_new\.png',
  6244. 'have been removed',
  6245. 'optional--',
  6246. "//a[contains(@href,'divshare.com')]"
  6247. );
  6248. }
  6249. if (GM_getValue("Check_stahovadlo_dot_cz_links", false))
  6250. {
  6251. addFileHost(
  6252. "stahovadlo\\.cz\/soubor\/\\d+\/[\\.\\w]+",
  6253. 'download" type="submit',
  6254. 'Neplatný nebo neúplný odkaz|Soubor již není dostupný',
  6255. 'optional--',
  6256. "//a[contains(@href,'stahovadlo.cz/soubor')]",
  6257. true
  6258. );
  6259. }
  6260. if (GM_getValue("Check_euroshare_dot_eu_links", false))
  6261. {
  6262. addFileHost(
  6263. "euroshare\\.(?:eu|pl|sk|cz|hu)\/file\/\\d+",
  6264. 'nazev-souboru">',
  6265. '<div id="obsah">\\s*<h1>',
  6266. 'optional--',
  6267. "//a[contains(@href,'euroshare.eu/file')]"
  6268. );
  6269. }
  6270. if (GM_getValue("Check_files_dot_mail_dot_ru_links", false))
  6271. {
  6272. addFileHost(
  6273. 'files\\.mail\\.ru/(?:\\w*)',
  6274. 'fileList',
  6275. 'errorMessage',
  6276. 'optional--',
  6277. "//a[contains(@href,'files.mail.ru')]"
  6278. );
  6279. }
  6280. if (GM_getValue("Check_megashares_dot_com_links", false))
  6281. {
  6282. addFileHost(
  6283. "(?:d\\d+\.|)megashares\.com\/(?:dl|index\.php\\?d|\\?d\\d+=\\w+)",
  6284. 'Filesize',
  6285. 'Invalid|deleted|Could not download file',
  6286. 'slots|scheduled maintenance',
  6287. "//a[contains(@href,'megashares.com/')]"
  6288. );
  6289. }
  6290. if (GM_getValue("Check_narod_dot_ru_links", false))
  6291. {
  6292. addFileHost(
  6293. 'narod\\.(?:yandex\\.|)ru\/disk\/',
  6294. 'b-submit',
  6295. 'b-download-virus-note|headCode">404<',
  6296. 'Внутренняя ошибка сервиса',
  6297. "//a[contains(@href,'narod.ru') or contains(@href,'narod.yandex.ru')]"
  6298. );
  6299. }
  6300. if (GM_getValue("Check_rayfile_dot_com_links", false))
  6301. {
  6302. addFileHost(
  6303. "rayfile\\.com\/",
  6304. 'FILEtitleTXT',
  6305. 'blueRow',
  6306. 'optional--',
  6307. "//a[contains(@href,'rayfile.com/') and contains(@href,'files')]"
  6308. );
  6309. }
  6310. if (GM_getValue("Check_filesmonster_dot_com_links", false))
  6311. {
  6312. addFileHost(
  6313. "filesmonster\\.com\/download\\.php\\?id=\\w+",
  6314. 'button_green_body"',
  6315. 'error">',
  6316. 'optional--',
  6317. "//a[contains(@href,'filesmonster.com/download')]"
  6318. );
  6319. }
  6320. if (GM_getValue("Check_usaupload_dot_net_links", false))
  6321. {
  6322. addFileHost(
  6323. 'usaupload\\.net\/d\/(?:\w*)',
  6324. '<strong>File size:</strong>',
  6325. 'is not available',
  6326. 'optional--',
  6327. "//a[contains(@href,'usaupload.net/d/')]"
  6328. );
  6329. }
  6330. if (GM_getValue("Check_sendspace_dot_com_links", false))
  6331. {
  6332. addFileHost(
  6333. 'sendspace\\.com\/file\/\\w+',
  6334. 'file_description',
  6335. 'msg error"',
  6336. 'optional--',
  6337. "//a[contains(@href,'sendspace.com/file')]"
  6338. );
  6339. }
  6340. if (GM_getValue("Check_sendspace_dot_pl_links", false))
  6341. {
  6342. addFileHost(
  6343. 'sendspace\\.pl\/file\/\\w+',
  6344. 'download_file"',
  6345. 'Podany plik nie',
  6346. 'optional--',
  6347. "//a[contains(@href,'sendspace.pl/file')]"
  6348. );
  6349. }
  6350. if (GM_getValue("Check_uploading_dot_com_links", false))
  6351. {
  6352. addFileHost(
  6353. 'uploading\\.com\/(?:files\/)?\\w+',
  6354. 'free_method">',
  6355. 'file_error">|error_404">|file not found|OOPS! Looks like file not found',
  6356. 'optional--',
  6357. "//a[contains(@href,'uploading.com')]"
  6358. );
  6359. }
  6360. if (GM_getValue("Check_gigasize_dot_com_links", false))
  6361. {
  6362. addFileHost(
  6363. 'gigasize\\.com\/get\\.php(?:\/\\d+|\\?d=\\w+)',
  6364. 'fileId"',
  6365. 'error">',
  6366. 'optional--',
  6367. "//a[contains(@href,'gigasize.com/get')]"
  6368. );
  6369. }
  6370. if (GM_getValue("Check_good_dot_com_links", false))
  6371. {
  6372. addFileHost(
  6373. 'good\\.net\/(?:_|dl)',
  6374. 'Free Download',
  6375. 'Not Found',
  6376. 'Forbidden',
  6377. "//a[contains(@href,'good.net')]"
  6378. );
  6379. }
  6380. if (GM_getValue("Check_2shared_dot_com_links", false))
  6381. {
  6382. addFileHost(
  6383. '2shared\\.com\/(?:file|video|document|audio)\/\\w*',
  6384. 'File size',
  6385. 'File not found|is not valid|/images/important.gif',
  6386. 'optional--',
  6387. "//a[contains(@href,'2shared.com/file/') or contains (@href,'2shared.com/audio/') or contains (@href,'2shared.com/document/') or contains (@href,'2shared.com/video/')]"
  6388. );
  6389. }
  6390. if (GM_getValue("Check_turboupload_dot_com_links", false))
  6391. {
  6392. addFileHost(
  6393. 'turboupload\\.com\/\\w*',
  6394. 'You have requested',
  6395. 'File Not Found',
  6396. 'optional--',
  6397. "//a[contains(@href,'turboupload.com')]"
  6398. );
  6399. }
  6400. if (GM_getValue("Check_gigapeta_dot_com_links", false))
  6401. {
  6402. addFileHost(
  6403. 'gigapeta\\.com\/dl\/',
  6404. 'Download file|Скачать файл| Herunterzuladen|Scarica il file|Cargar el fichero|Charger le fichier',
  6405. '404|page_error',
  6406. 'optional--',
  6407. "//a[contains(@href,'gigapeta.com/dl')]"
  6408. );
  6409. }
  6410. if (GM_getValue("Check_veehd_dot_com_links", false))
  6411. {
  6412. addFileHost(
  6413. 'veehd\.com\/video\/.*?',
  6414. 'No sound|Download video',
  6415. 'Featured Videos',
  6416. 'optional--',
  6417. "//a[contains(@href,'veehd.com') and contains(@href,'video')]"
  6418. );
  6419. }
  6420. if (GM_getValue("Check_vip_dash_file_dot_com_links", false))
  6421. {
  6422. addFileHost(
  6423. '(?:u\\d+\\.)?vip-file\\.com\/download.*?\/(?:.*?)\/(?:.*?)\\.html',
  6424. 'fast_download_form">',
  6425. '<p style="text-align:center">',
  6426. 'optional--',
  6427. "//a[contains(@href,'vip-file.com/download')]"
  6428. );
  6429. }
  6430. if (GM_getValue("Check_letitbit_dot_net_links", false))
  6431. {
  6432. addFileHost(
  6433. '(?:u\\d+\\.)?letitbit\\.net\/download\/\\w+',
  6434. 'download\\-pnl ',
  6435. 'color:#000">|Запрашиваемый файл не найден|страница не существует|File not found|',
  6436. 'optional--',
  6437. "//a[contains(@href,'letitbit.net/download')]"
  6438. );
  6439. }
  6440. if (GM_getValue("Check_ifolder_dot_ru_links", false))
  6441. {
  6442. addFileHost(
  6443. 'ifolder\.ru\/\\d+',
  6444. 'file-info',
  6445. 'ui-state-error',
  6446. 'optional--',
  6447. "//a[contains(@href,'ifolder.ru')]"
  6448. );
  6449. }
  6450. if (GM_getValue("Check_fileswap_dot_com_links", false))
  6451. {
  6452. addFileHost(
  6453. 'fileswap\\.com\/dl\/\\w+',
  6454. 'bttnDownloadLink"',
  6455. 'rounded_block_error"',
  6456. 'is temporary unavailable|disponible en estos momentos|vorläufig unerreichbar|Файл временно недоступен',
  6457. "//a[contains(@href,'fileswap.com/dl')]"
  6458. );
  6459. }
  6460.  
  6461. /* if (GM_getValue("Check_extabit_dot_com_links", false))
  6462. {
  6463. addFileHost(
  6464. //'(?:u\\d+\\.)?extabit\\.com\/(?:file|folder|go)[\/_]\\w+',
  6465. '(?:u\\d+\\.)?extabit\\.com\/folder[\/_]\\w+',
  6466. 'download\\-file-btn"', //NOTE: this is just for folders. For files, update regexes in function extabitBulkCheck which handles non-bulk as well.
  6467. 'page_404_header',
  6468. 'id="mirrb"|is temporary unavailable|disponible en estos momentos|vorläufig unerreichbar|Файл временно недоступен',
  6469. "//a[contains(@href,'extabit.com/folder')]",
  6470. true
  6471. );
  6472. } */
  6473. if (GM_getValue("Check_filecloud_dot_io_links", false))
  6474. {
  6475. addFileHost(
  6476. '(?:s\\d+\\.)?filecloud\\.io\/\\w+',
  6477. 'var __error = 0',
  6478. 'FILES__DOESNT_EXIST',
  6479. 'optional--',
  6480. "//a[contains(@href,'filecloud.io/')]"
  6481. );
  6482. addFileHost(
  6483. 'ifile\\.it\/\\w+',
  6484. 'var __error = 0',
  6485. 'FILES__DOESNT_EXIST',
  6486. 'optional--',
  6487. "//a[contains(@href,'ifile.it/')]"
  6488. );
  6489. }
  6490. if (GM_getValue("Check_solidfiles_dot_com_links", false))
  6491. {
  6492. addFileHost(
  6493. 'solidfiles\\.com\/d\/\\w+',
  6494. 'id="download"|content="Download',
  6495. '>Not found<|<h2>404</h2>|Page not found|<h1>404</h1>',
  6496. 'optional--',
  6497. "//a[contains(@href,'solidfiles.com/d')]"
  6498. );
  6499. }
  6500. if (GM_getValue("Check_shareflare_dot_net_links", false))
  6501. {
  6502. addFileHost(
  6503. "(?:.\\.|)shareflare\\.net",
  6504. 'download-pnl|<div class="premium-block">',
  6505. 'File not found|Поиск зеркала на фа|<div id="captcha"',
  6506. 'optional--',
  6507. "//a[contains(@href,'shareflare.net') and contains(@href,'download')]"
  6508. );
  6509. }
  6510. if (GM_getValue("Check_u18116681_dot_shareflare_dot_net_links", false))
  6511. {
  6512. addFileHost(
  6513. "u18116681.shareflare\\.net",
  6514. 'download-pnl|<div class="premium-block">',
  6515. 'File not found|Поиск зеркала на фа|<div id="captcha"',
  6516. 'optional--',
  6517. "//a[contains(@href,'shareflare.net') and contains(@href,'download')]"
  6518. );
  6519. }
  6520. if (GM_getValue("Check_uloz_dot_to_links", false))
  6521. {
  6522. addFileHost(
  6523. "(?:uloz|ulozto|bagruj|zachowajto)\\.(to|cz|sk|net|pl)\/\\w",
  6524. 'fileDownload">|fileSize">',
  6525. 'grayButton deletedFile">|Stránka nenalezena|upload-button"|jako soukromý.',
  6526. 'passwordProtectedFile">|frmaskAgeForm-disagree',
  6527. "//a[contains(@href,'bagruj.cz') or contains(@href,'uloz.to') or contains(@href,'ulozto.') or contains(@href,'zachowajto.pl')]",
  6528. true
  6529. );
  6530. }
  6531. if (GM_getValue("Check_hellspy_dot_com_links", false))
  6532. {
  6533. addFileHost(
  6534. "hellspy\.(?:com|cz|sk|hu|pl)\/\\w+",
  6535. 'file\\-list-orderby|section-filedetail">',
  6536. '<\/span><\/h2>\\s*<p>|list-purp-2">|flash info sticky">',
  6537. 'optional--',
  6538. "//a[contains(@href,'hellspy.')]"
  6539. );
  6540. }
  6541. if (GM_getValue("Check_leteckaposta_dot_cz_links", false))
  6542. {
  6543. addFileHost(
  6544. "(?:leteckaposta\\.cz|sharegadget\\.com)\/\\d+",
  6545. '<body onload="">',
  6546. 'neexistuje|not exist',
  6547. 'optional--',
  6548. "//a[contains(@href,'leteckaposta.cz') or contains(@href,'sharegadget.com')]"
  6549. );
  6550. }
  6551. if (GM_getValue("Check_stahovanizasms_dot_cz_links", false))
  6552. {
  6553. addFileHost(
  6554. "stahovanizasms\\.cz\/\\w+",
  6555. 'download\\.png>|font-size:11px><tr>',
  6556. 'smaz.n u.ivatelem|font-size:11px><\/table>',
  6557. 'optional--',
  6558. "//a[contains(@href,'stahovanizasms.cz')]"
  6559. );
  6560. }
  6561. if (GM_getValue("Check_share_dash_links_dot_biz_links", false))
  6562. {
  6563. addFileHost(
  6564. "share-links\\.biz\/\\w*",
  6565. 'online\\.gif',
  6566. '(?:offline|parts)\\.gif',
  6567. 'optional--',
  6568. "//a[contains(@href,'share-links.biz')]"
  6569. );
  6570. }
  6571. if (GM_getValue("Check_4shared_dot_com_links", false))
  6572. {
  6573. addFileHost(
  6574. "4shared\\.com\/.+\/",
  6575. '<input type="hidden" class="jsSocialTwDefaultText" value=',
  6576. 'class="warn\"|big red"|GetDataBack',
  6577. 'Service Unavailable',
  6578. "//a[contains(@href,'4shared.com')]"
  6579. );
  6580. }
  6581. if (GM_getValue("Check_zippyshare_dot_com_links", false))
  6582. {
  6583. addFileHost(
  6584. "(?:www\\d+\.|)zippyshare\.com\/",
  6585. 'download\.png|Download Now|images/download_small.png|id="dlbutton"',
  6586. 'not exist|Status 404',
  6587. 'optional--',
  6588. "//a[contains(@href,'zippyshare.com') and contains(@href,'file.html')]"
  6589. );
  6590. }
  6591. if (GM_getValue("Check_mediafire_dot_com_links", false))
  6592. {
  6593. addFileHost(
  6594. "mediafire\.com\/",
  6595. 'download_file_title|dlFileName|id="PLAY_downloadButton"',
  6596. 'error\\.php\\?|error_msg_title|<title>Simple File Sharing|No files found',
  6597. 'set to private',
  6598. "//a[contains(@href,'mediafire.com')]"
  6599. );
  6600. }
  6601. if (GM_getValue("Check_uploaded_dot_to_links", false))
  6602. {
  6603. addFileHost(
  6604. '(?:uploaded\\.(?:to|net)\/(?:.id|file|folder|f|410|404))|(?:ul\\.to\/)',
  6605. '<h2>Authentification</h2></li>| MB',
  6606. 'box_red|Error: 404|Error: 410|fileList"><thead><tr><td colspan="2"><\/td><\/tr><\/thead><tbody>\\s*<tr>|<title>uploaded.net</title>',
  6607. 'optional--',
  6608. "//a[contains(@href,'uploaded.to/') or contains(@href,'uploaded.net/') or contains(@href,'ul.to/')]"
  6609. );
  6610. }
  6611. if (GM_getValue("Check_ulozisko_dot_sk_links", false))
  6612. {
  6613. addFileHost(
  6614. "ulozisko\.sk\/",
  6615. 'Detaily',
  6616. 'neexistuje',
  6617. 'optional--',
  6618. "//a[contains(@href,'ulozisko.sk')]"
  6619. );
  6620. }
  6621. if (GM_getValue("Check_upnito_dot_sk_links", false))
  6622. {
  6623. addFileHost(
  6624. "(?:dl.\\.|)upnito\\.sk\/(download|subor|file)",
  6625. 'download.php',
  6626. 'notfound|upload\\-suborov\\.php"',
  6627. 'optional--',
  6628. "//a[contains(@href,'upnito.sk')]"
  6629. );
  6630. }
  6631. if (GM_getValue("Check_dataport_dot_cz_links", false))
  6632. {
  6633. addFileHost(
  6634. "dataport\.cz\/file\/",
  6635. 'premium_download">',
  6636. '="error">',
  6637. 'optional--',
  6638. "//a[contains(@href,'dataport.cz/file')]",
  6639. true
  6640. );
  6641. }
  6642. if (GM_getValue("Check_uptobox_dot_com_links", false))
  6643. {
  6644. addFileHost(
  6645. "uptobox\\.com\/\\w+",
  6646. 'Create Download Link">',
  6647. '500px;text-align:left;">|File not found|Fichier introuvable',
  6648. 'Maintenance|not available in your country',
  6649. "//a[contains(@href,'uptobox.com')]"
  6650. );
  6651. }
  6652. if (GM_getValue("Check_sharecash_dot_org_links", false))
  6653. {
  6654. addFileHost(
  6655. "sharecash\\.org\/download\\.php\\?file=\\d+",
  6656. 'FILE DOWNLOAD<',
  6657. 'File Does Not Exist',
  6658. 'optional--',
  6659. "//a[contains(@href,'sharecash.org/download.php')]"
  6660. );
  6661. }
  6662. if (GM_getValue("Check_depositfiles_dot_com_links", false)) //folders
  6663. {
  6664. addFileHost(
  6665. "depositfiles\\.com\/folders\/\\w+",
  6666. '<div class="progressContainer">',
  6667. '<div id="files" class="files">\\s*<\/div>',
  6668. 'optional--',
  6669. "//a[contains(@href,'depositfiles.com/folders')]"
  6670. );
  6671. }
  6672. /* if (GM_getValue("Check_cloudzer_dot_net_links", false))
  6673. {
  6674. addFileHost(
  6675. "(?:cloudzer\\.net/file|clz\\.to)/\\w+",
  6676. '<b class="filename" id="filename">|Folders|Ordner',
  6677. '<h1>Error</h1>|Fehler',
  6678. 'optional--',
  6679. "//a[contains(@href,'cloudzer.net/file') or contains(@href,'clz.to/')]"
  6680. );
  6681. } */
  6682. if (GM_getValue("Check_rapidfileshare_dot_net_links", false))
  6683. {
  6684. addFileHost(
  6685. "rapidfileshare\\.net/\\w+",
  6686. '<div id="upload-header-bg">',
  6687. '<div style="width:500px;text-align:left;">',
  6688. 'optional--',
  6689. "//a[contains(@href,'rapidfileshare.net/')]"
  6690. );
  6691. }
  6692. if (GM_getValue("Check_stiahnito_dot_sk_links", false))
  6693. {
  6694. addFileHost(
  6695. "stiahnito\\.sk/",
  6696. '<span class="filesize right">',
  6697. '<ol class="list-purp-2">',
  6698. 'optional--',
  6699. "//a[contains(@href,'stiahnito.sk/')]"
  6700. );
  6701. }
  6702. if (GM_getValue("Check_rusfolder_dot_com_links", false))
  6703. {
  6704. addFileHost(
  6705. "rusfolder\\.(?:com|net)",
  6706. '"download-step-one-form"|Название: <b>|Файлы|Файлы в папке',
  6707. '"ui-state-error ui-corner-all"|File is removed|File not found|удален',
  6708. 'optional--',
  6709. "//a[contains(@href,'rusfolder')]"
  6710. );
  6711. }
  6712. if (GM_getValue("Check_fileover_dot_net_links", false))
  6713. {
  6714. addFileHost(
  6715. "fileover\\.net/\\d+",
  6716. 'id="filesize"',
  6717. 'Not found or deleted|The following file is unavailable',
  6718. 'optional--',
  6719. "//a[contains(@href,'fileover.net/')]"
  6720. );
  6721. }
  6722. if (GM_getValue("Check_catshare_dot_net_links", false))
  6723. {
  6724. addFileHost(
  6725. "catshare\\.net/\\w+",
  6726. '"icon-share',
  6727. 'alert alert-error',
  6728. 'optional--',
  6729. "//a[contains(@href,'catshare.net/')]"
  6730. );
  6731. }
  6732. if (GM_getValue("Check_anonfiles_dot_com_links", false))
  6733. {
  6734. addFileHost(
  6735. "anonfiles\\.com/\\w+",
  6736. '"download_button"',
  6737. '<legend><b>404</b>',
  6738. 'optional--',
  6739. "//a[contains(@href,'anonfiles.com')]"
  6740. );
  6741. }
  6742. if (GM_getValue("Check_mixturecloud_dot_com_links", false))
  6743. {
  6744. addFileHost(
  6745. "mixturecloud\\.com/media/\\w+",
  6746. '"btn icon i_globe gray share_150',
  6747. '"s_cross_close"></span> 404:',
  6748. 'optional--',
  6749. "//a[contains(@href,'mixturecloud.com/media/')]"
  6750. );
  6751. }
  6752. if (GM_getValue("Check_akafile_dot_com_links", false))
  6753. {
  6754. addFileHost(
  6755. "akafile\\.com\/\\w+",
  6756. 'download1',
  6757. 'File Not Found',
  6758. 'optional--',
  6759. "//a[contains(@href,'akafile.com/')]"
  6760. );
  6761. }
  6762. if (GM_getValue("Check_creafile_dot_net_links", false))
  6763. {
  6764. addFileHost(
  6765. "creafile\\.net\/\\w+",
  6766. 'downloadblock',
  6767. 'errtitle',
  6768. 'optional--',
  6769. "//a[contains(@href,'creafile.net/')]"
  6770. );
  6771. }
  6772. if (GM_getValue("Check_hugefiles_dot_net_links", false))
  6773. {
  6774. addFileHost(
  6775. "hugefiles\\.net\/\\w+",
  6776. 'download1|class="btn-create-download" value="Create Download Link">',
  6777. 'File Not Found|No such file with this filename',
  6778. 'optional--',
  6779. "//a[contains(@href,'hugefiles.net/')]"
  6780. );
  6781. }
  6782. if (GM_getValue("Check_sendmyway_dot_com_links", false))
  6783. {
  6784. addFileHost(
  6785. "sendmyway\\.com\/\\w+",
  6786. 'id="btn_download"',
  6787. '500px;text-align:left;"|<center><h3>',
  6788. 'optional--',
  6789. "//a[contains(@href,'sendmyway.com/')]"
  6790. );
  6791. }
  6792. if (GM_getValue("Check_upload_dot_ee_links", false))
  6793. {
  6794. addFileHost(
  6795. "upload\\.ee\/\\w+",
  6796. 'onmouseout="document.dllink.src',
  6797. 'There is no such file.|File was deleted|Fail kustutati|Файл удалён|Такого файла нет',
  6798. 'optional--',
  6799. "//a[contains(@href,'upload.ee/')]"
  6800. );
  6801. }
  6802. if (GM_getValue("Check_shareplace_dot_org_links", false))
  6803. {
  6804. addFileHost(
  6805. "shareplace\\.org\/\\?\\w+",
  6806. 'Download-Link',
  6807. 'Your requested file is not found|Select file to send',
  6808. 'optional--',
  6809. "//a[contains(@href,'shareplace.org/?')]"
  6810. );
  6811. }
  6812. if (GM_getValue("Check_uploadc_dot_com_links", false))
  6813. {
  6814. addFileHost(
  6815. "uploadc\\.com\/\\w+",
  6816. 'id="prebut"',
  6817. 'File Not Found|This file has been removed due',
  6818. 'optional--',
  6819. "//a[contains(@href,'uploadc.com/')]"
  6820. );
  6821. }
  6822. if (GM_getValue("Check_remixshare_dot_com_links", false))
  6823. {
  6824. addFileHost(
  6825. "remixshare\\.com\/\\w+",
  6826. 'id="dl2"',
  6827. '<table class=\'failed\'><tr><td width=\'90%\'>|Sorry, die Datei konnte nicht gefunden werden',
  6828. 'optional--',
  6829. "//a[contains(@href,'remixshare.com/')]"
  6830. );
  6831. }
  6832. if (GM_getValue("Check_exoshare_dot_com_links", false))
  6833. {
  6834. addFileHost(
  6835. "exoshare\\.com\/download\\.php\\?uid=\\w+",
  6836. 'Last Download :',
  6837. 'img src="\\/404.jpg"',
  6838. 'optional--',
  6839. "//a[contains(@href,'exoshare.com/download.php')]"
  6840. );
  6841. }
  6842. if (GM_getValue("Check_borncash_dot_org_links", false))
  6843. {
  6844. addFileHost(
  6845. "borncash\\.org\/download\/\\?a=\\w+",
  6846. 'class="knop_1"',
  6847. '\/error\/er00',
  6848. 'optional--',
  6849. "//a[contains(@href,'borncash.org/download/')]"
  6850. );
  6851. }
  6852. if (GM_getValue("Check_vidplay_dot_net_links", false))
  6853. {
  6854. addFileHost(
  6855. "vidplay\.net\/\\w+",
  6856. 'solvemedia puzzle widget',
  6857. 'File not found|AVOID_IE_BUG',
  6858. 'optional--',
  6859. "//a[contains(@href,'vidplay.net')]");
  6860. }
  6861. if (GM_getValue("Check_storagon_dot_com_links", false))
  6862. {
  6863. addFileHost(
  6864. "storagon\.com\/\\w+",
  6865. 'class="icon-cloud-download"></i>|content="Download Options',
  6866. 'content="Download Downloads|class="error-container">|class="bigger-300 bolder">404<',
  6867. 'optional--',
  6868. "//a[contains(@href,'storagon.com')]");
  6869. }
  6870. if (GM_getValue("Check_filedais_dot_com_links", false))
  6871. {
  6872. addFileHost(
  6873. "filedais\.com\/\\w+",
  6874. 'class="btn btn-info"|name="method_free"',
  6875. 'style="width:500px;text-align:left;">|File Not Found|AVOID_IE_BUG',
  6876. 'optional--',
  6877. "//a[contains(@href,'filedais.com')]");
  6878. }
  6879. if (GM_getValue("Check_ryushare_dot_com_links", false))
  6880. {
  6881. addFileHost(
  6882. "ryushare\.com\/\\w+",
  6883. 'KB|MB',
  6884. '<div style="width:500px;text-align:left;">',
  6885. 'in maintenance mode|Software error:',
  6886. "//a[contains(@href,'ryushare.com')]");
  6887. }
  6888. if (GM_getValue("Check_up_dot_4share_dot_vn_links", false))
  6889. {
  6890. addFileHost(
  6891. "up.4share\.vn\/\\w+",
  6892. '<font size="2" face="Verdana">',
  6893. 'font: 13px Tahoma; color: Brown',
  6894. 'optional--',
  6895. //'optional--',
  6896. "//a[contains(@href,'up.4share.vn')]");
  6897. }
  6898. if (GM_getValue("Check_share_dot_vnn_dot_vn_links", false))
  6899. {
  6900. addFileHost(
  6901. "share.vnn\.vn\/\\w+",
  6902. '"index,follow"|<div class="main" id="download-box">',
  6903. '<meta name="description" content="" />|<h1>Không tìm thấy file bạn yêu cầu</h1>',
  6904. 'optional--',
  6905. //'optional--',
  6906. "//a[contains(@href,'share.vnn.vn')]");
  6907. }
  6908. if (GM_getValue("Check_upfile_dot_vn_links", false))
  6909. {
  6910. addFileHost(
  6911. "upfile\.vn\/\\w+",
  6912. 'download-timer',
  6913. '<meta name="description" content="Upload files|<meta name="description" content="Error "',
  6914. 'optional--',
  6915. //'optional--',
  6916. "//a[contains(@href,'upfile.vn')]");
  6917. }
  6918. if (GM_getValue("Check_firedrive_dot_com_links", false))
  6919. {
  6920. addFileHost(
  6921. "firedrive\\.com\/file\/\\w{16}",
  6922. 'as Free User|<a class="continue"|Continue to file|#feedback_btn|application file_standalone',
  6923. 'Welcome to PutLocker|<div class="sad_face_image">|404:',
  6924. 'undergoing scheduled maintenance',
  6925. "//a[contains(@href,'firedrive.com/file')]"
  6926. );
  6927. }
  6928. if (GM_getValue("Check_aisfile_dot_com_links", false))
  6929. {
  6930. addFileHost(
  6931. "aisfile\.com\/\\w+",
  6932. '<h3 style="text-align:left;">|align=right><b>Filename:',
  6933. '<div style="width:500px;text-align:left;">|File Not Found',
  6934. 'optional--',
  6935. //'optional--',
  6936. "//a[contains(@href,'aisfile.com')]");
  6937. }
  6938. if (GM_getValue("Check_usersfiles_dot_com_links", false))
  6939. {
  6940. addFileHost(
  6941. "usersfiles\.com\/\\w+",
  6942. 'class="btn btn-success|id="btn_download" class="btn"',
  6943. '<div style="width:500px;text-align:left;">',
  6944. 'optional--',
  6945. //'optional--',
  6946. "//a[contains(@href,'usersfiles.com')]");
  6947. }
  6948. if (GM_getValue("Check_pan_dot_baidu_dot_com_links", false))
  6949. {
  6950. addFileHost(
  6951. "pan.baidu\.com\/\\w+",
  6952. 'target="_blank" title=|share-personal-info',
  6953. 'share_notfound.png|background:#f9f9f9',
  6954. 'optional--',
  6955. //'optional--',
  6956. "//a[contains(@href,'pan.baidu.com')]");
  6957. }
  6958. if (GM_getValue("Check_yunpan_dot_cn_links", false))
  6959. {
  6960. addFileHost(
  6961. "yunpan\.cn\/\\w+",
  6962. 'class="icon icon-download',
  6963. 'content="360|http://p5.qhimg.com/t01d1c98667df9dc6cc.jpg',
  6964. 'optional--',
  6965. //'optional--',
  6966. "//a[contains(@href,'yunpan.cn')]");
  6967. }
  6968. if (GM_getValue("Check_file_dash_upload_dot_net_links", false))
  6969. {
  6970. addFileHost(
  6971. "(?:en\\.|)file\\-upload\\.net\/download\\-\\d+\/\\w+",
  6972. 'getElementById("downbild")|style.display',
  6973. 'hochgeladene Datei nicht gefunden werden|has not been found',
  6974. 'optional--',
  6975. //'optional--',
  6976. "//a[contains(@href,'file-upload.net')]");
  6977. }
  6978. if (GM_getValue("Check_gulfup_dot_com_links", false))
  6979. {
  6980. addFileHost(
  6981. "gulfup\.com\/",
  6982. '<!-- Downlod template -->|download.gif',
  6983. '<!-- Errors template -->|class="error">|<!-- form upload -->|[ رفع الملفات ]',
  6984. 'optional--',
  6985. //'optional--',
  6986. "//a[contains(@href,'gulfup.com')]");
  6987. }
  6988. if (GM_getValue("Check_datafilehost_dot_com_links", false))
  6989. {
  6990. addFileHost(
  6991. "datafilehost\\.com\/(?:download-\\w+\\.html|d\/\\w+)",
  6992. 'dldtable">',
  6993. 'does not exist\\.',
  6994. 'optional--',
  6995. //'optional--',
  6996. "//a[contains(@href,'datafilehost.com')]");
  6997. }
  6998. if (GM_getValue("Check_box_dot_com_links", false))
  6999. {
  7000. addFileHost(
  7001. "box\.com\/\\w+",
  7002. 'download-file-btn|id="download_button',
  7003. 'BIyMin.png| <div class="error_message|link has been removed',
  7004. 'optional--',
  7005. //'optional--',
  7006. "//a[contains(@href,'app.box.com')]");
  7007. }
  7008. if (GM_getValue("Check_dropbox_dot_com_links", false))
  7009. {
  7010. addFileHost(
  7011. "dropbox\.com\/s\/\\w+",
  7012. 'default_content_download_button" class="freshbutton-blue">',
  7013. '>Nothing Here<|>Error (404)<',
  7014. 'title>Dropbox - 509|Error (403)',
  7015. "//a[contains(@href,'dropbox.com')]");
  7016. }
  7017. if (GM_getValue("Check_box_dot_net_links", false))
  7018. {
  7019. addFileHost(
  7020. "box\.net\/\\w+",
  7021. 'download-file-btn|id="download_button',
  7022. 'BIyMin.png| <div class="error_message',
  7023. 'optional--',
  7024. //'optional--',
  7025. "//a[contains(@href,'box.net')]");
  7026. }
  7027. if (GM_getValue("Check_fileband_dot_com_links", false))
  7028. {
  7029. addFileHost(
  7030. "fileband\.com\/\\w+",
  7031. 'value="download1">|name="id" value=',
  7032. '<div style="width:500px;text-align:left;">|not be found',
  7033. 'optional--',
  7034. //'optional--',
  7035. "//a[contains(@href,'fileband.com')]");
  7036. }
  7037. if (GM_getValue("Check_lumfile_dot_com_links", false))
  7038. {
  7039. addFileHost(
  7040. "lumfile\.com\/\\w+",
  7041. '<div style="width:900px;">',
  7042. 'background:#eee;font:15px|var rr =|The link was deleted by administration|File Not Found|>404 Not Found<|<div style="width:500px;text-align:left;">',
  7043. 'optional--',
  7044. "//a[contains(@href,'lumfile.com')]");
  7045. }
  7046. if (GM_getValue("Check_lumfile_dot_se_links", false))
  7047. {
  7048. addFileHost(
  7049. "lumfile\.se\/\\w+",
  7050. '<div style="width:900px;">',
  7051. 'background:#eee;font:15px|var rr =|The link was deleted by administration|File Not Found|>404 Not Found<|<div style="width:500px;text-align:left;">',
  7052. 'optional--',
  7053. "//a[contains(@href,'lumfile.se')]");
  7054. }
  7055. if (GM_getValue("Check_lumfile_dot_eu_links", false))
  7056. {
  7057. addFileHost(
  7058. "lumfile\.eu\/\\w+",
  7059. '<div style="width:900px;">',
  7060. 'background:#eee;font:15px|var rr =|The link was deleted by administration|File Not Found|>404 Not Found<|<div style="width:500px;text-align:left;">',
  7061. 'optional--',
  7062. "//a[contains(@href,'lumfile.eu')]");
  7063. }
  7064. if (GM_getValue("Check_uploadrocket_dot_net_links", false))
  7065. {
  7066. addFileHost(
  7067. "uploadrocket\.net\/\\w+",
  7068. '<font style="font-size:12px;">|<h2>Download File',
  7069. 'font style="color:#d33;|File Not Found',
  7070. 'optional--',
  7071. //'optional--',
  7072. "//a[contains(@href,'uploadrocket.net')]");
  7073. }
  7074. if (GM_getValue("Check_filedropper_dot_com_links", false))
  7075. {
  7076. addFileHost(
  7077. "filedropper\.com\/\\w+",
  7078. 'background:#ddd;|width:985px; ',
  7079. 'background-color:#FFFFFF;|margin-left: -400px;',
  7080. 'optional--',
  7081. //'optional--',
  7082. "//a[contains(@href,'filedropper.com')]");
  7083. }
  7084. if (GM_getValue("Check_tropicshare_dot_com_links", false))
  7085. {
  7086. addFileHost(
  7087. "tropicshare\\.com\/files\/\\d+",
  7088. 'MB</span>|GB</span>|KB</span>',
  7089. '>FNF<|size: </span>',
  7090. 'optional--',
  7091. //'optional--',
  7092. "//a[contains(@href,'tropicshare.com')]");
  7093. }
  7094. if (GM_getValue("Check_goldbytez_dot_com_links", false))
  7095. {
  7096. addFileHost(
  7097. "goldbytez\.com\/\\w+",
  7098. '<h2>Download</h2>|<center><h2>File: <font color="red">',
  7099. '<div style="width:500px;text-align:left;">|<h2>Error</h2>',
  7100. 'optional--',
  7101. //'optional--',
  7102. "//a[contains(@href,'goldbytez.com')]");
  7103. }
  7104. if (GM_getValue("Check_worldbytez_dot_com_links", false))
  7105. {
  7106. addFileHost(
  7107. "worldbytez\.com\/\\w+",
  7108. '<div class="download_type">',
  7109. '<div style="width:500px;text-align:left;">',
  7110. 'optional--',
  7111. //'optional--',
  7112. "//a[contains(@href,'worldbytez.com')]");
  7113. }
  7114. if (GM_getValue("Check_freefilehosting_dot_net_links", false))
  7115. {
  7116. addFileHost(
  7117. "freefilehosting\.net\/\\w+",
  7118. 'Type: cbr|Type: rar|Type: jpg|Type: mkv|Type: avi|Type: mpg|Type: mpeg|Type: zip|Type: wmvType: bmpType: gifType: mp4Type: mp3',
  7119. '175px;" value="http://www.freefilehosting.net/"|Filename: <br>',
  7120. 'optional--',
  7121. //'optional--',
  7122. "//a[contains(@href,'freefilehosting.net')]");
  7123. }
  7124. /* if (GM_getValue("Check_filesfrog_dot_net_links", false))
  7125. {
  7126. addFileHost(
  7127. "filesfrog\.net\/\\w+",
  7128. 'download-now.png|File: <font style="color:darkred">',
  7129. '<div style="width:500px;text-align:left;">|File Not Found|Services for this domain have been discontinued|Cannot GET',
  7130. 'optional--',
  7131. //'optional--',
  7132. "//a[contains(@href,'filesfrog.net')]");
  7133. } */
  7134. if (GM_getValue("Check_ziddu_dot_com_links", false))
  7135. {
  7136. addFileHost(
  7137. "ziddu\.com\/\\w+",
  7138. 'downloads.ziddu.com|downloadfilelinkicon',
  7139. 'errortracking.php|images/oops.png|fontfamilyverdana error',
  7140. 'optional--',
  7141. //'optional--',
  7142. "//a[contains(@href,'ziddu.com')]");
  7143. }
  7144. if (GM_getValue("Check_exclusiveloader_dot_com_links", false))
  7145. {
  7146. addFileHost(
  7147. "exclusiveloader\.com\/\\w+",
  7148. 'style="padding-top:55px; padding-bottom:65px;">|<h2>Download</h2>',
  7149. 'File Not Found|width:322px;text-align:left;" class="no_file">',
  7150. 'optional--',
  7151. //'optional--',
  7152. "//a[contains(@href,'exclusiveloader.com')]");
  7153. }
  7154. if (GM_getValue("Check_sharerapid_dot_cz_links", false))
  7155. {
  7156. addFileHost(
  7157. "sharerapid\.cz\/\\w+",
  7158. 'value="Stáhnout"|soubor" style|Stahování je povoleno pouze pro přihlášené uživatele',
  7159. 'error_div">|404 - Not Found',
  7160. 'optional--',
  7161. //'optional--',
  7162. "//a[contains(@href,'sharerapid.cz')]");
  7163. }
  7164. if (GM_getValue("Check_sdilej_dot_cz_links", false))
  7165. {
  7166. addFileHost(
  7167. "sdilej\.cz\/\\w+",
  7168. 'class="page-download"',
  7169. '<h2 class="red">|czshare.com|sponsored listings|This domain is for sale',
  7170. 'optional--',
  7171. //'optional--',
  7172. "//a[contains(@href,'sdilej.cz')]");
  7173. }
  7174. if (GM_getValue("Check_lafiles_dot_com_links", false))
  7175. {
  7176. addFileHost(
  7177. "lafiles\.com\/\\w+",
  7178. '<div id="pay_modes">',
  7179. '<b class="err"></b>',
  7180. 'optional--',
  7181. //'optional--',
  7182. "//a[contains(@href,'lafiles.com')]");
  7183. }
  7184. if (GM_getValue("Check_fboom_dot_me_links", false))
  7185. {
  7186. addFileHost(
  7187. "fboom\.me\/\\w+",
  7188. 'id="download-free" href="#"',
  7189. 'class="error-v1-title">404<|File not found or deleted',
  7190. 'optional--',
  7191. //'optional--',
  7192. "//a[contains(@href,'fboom.me')]");
  7193. }
  7194. if (GM_getValue("Check_fileboom_dot_me_links", false))
  7195. {
  7196. addFileHost(
  7197. "fileboom\.me\/\\w+",
  7198. 'id="download-free" href="#"',
  7199. 'class="error-v1-title">404<|File not found or deleted',
  7200. 'optional--',
  7201. //'optional--',
  7202. "//a[contains(@href,'fileboom.me')]");
  7203. }
  7204. if (GM_getValue("Check_filecore_dot_co_dot_nz_links", false))
  7205. {
  7206. addFileHost(
  7207. "filecore\.co.nz\/\\w+",
  7208. 'btn_download',
  7209. '<div style="width:500px;text-align:left;">',
  7210. 'optional--',
  7211. //'optional--',
  7212. "//a[contains(@href,'filecore.co.nz')]");
  7213. }
  7214. if (GM_getValue("Check_acefile_dot_net_links", false))
  7215. {
  7216. addFileHost(
  7217. "acefile\.net\/\\w+",
  7218. 'align=right nowrap><b>',
  7219. 'File Not Found|<div style="width:322px;text-align:left;" class="no_file">',
  7220. 'optional--',
  7221. //'optional--',
  7222. "//a[contains(@href,'acefile.net')]");
  7223. }
  7224. /* if (GM_getValue("Check_filesaur_dot_com_links", false))
  7225. {
  7226. addFileHost(
  7227. "filesaur\.com\/\\w+",
  7228. 'btn-normal|value="download1|method_free',
  7229. 'File Not Found|style="width:500px;text-align:left;',
  7230. 'optional--',
  7231. //'optional--',
  7232. "//a[contains(@href,'filesaur.com')]");
  7233. } */
  7234. if (GM_getValue("Check_megarapid_dot_cz_links", false))
  7235. {
  7236. addFileHost(
  7237. "megarapid\.cz\/\\w+",
  7238. 'value="Stáhnout"|soubor" style|Stahování je povoleno pouze pro přihlášené uživatele',
  7239. 'error_div">|404 - Not Found',
  7240. 'optional--',
  7241. //'optional--',
  7242. "//a[contains(@href,'megarapid.cz')]");
  7243. }
  7244. if (GM_getValue("Check_yadi_dot_sk_links", false))
  7245. {
  7246. addFileHost(
  7247. "yadi\.sk\/\\w+",
  7248. 'twitter:site|View and download',
  7249. 'error code|Nothing found',
  7250. 'optional--',
  7251. //'optional--',
  7252. "//a[contains(@href,'yadi.sk')]");
  7253. }
  7254. if (GM_getValue("Check_imdb_dot_com_links", false))
  7255. {
  7256. addFileHost(
  7257. "imdb\.com\/\\w+",
  7258. 'imdb.com',
  7259. '404 Error',
  7260. 'optional--',
  7261. "//a[contains(@href,'imdb.com')]");
  7262. }
  7263. if (GM_getValue("Check_hitfile_dot_net_links", false))
  7264. {
  7265. addFileHost(
  7266. "hitfile\.net\/\\w+",
  7267. 'class="download-file',
  7268. 'style="width:16px;height:16px;border:0;|File not found',
  7269. 'optional--',
  7270. //'optional--',
  7271. "//a[contains(@href,'hitfile.net')]");
  7272. }
  7273. /* if (GM_getValue("Check_xerver_dot_co_links", false))
  7274. {
  7275. addFileHost(
  7276. "xerver\.co\/\\w+",
  7277. 'style="text-transform:uppercase|value="download1',
  7278. '404 Error|FILE NOT FOUND',
  7279. '502 Bad Gateway',
  7280. //'optional--',
  7281. "//a[contains(@href,'xerver.co')]");
  7282. } */
  7283. if (GM_getValue("Check_uploadto_dot_us_links", false))
  7284. {
  7285. addFileHost(
  7286. "uploadto\\.us\/file\/details\/[\\w+-]",
  7287. 'name="recaptcha_response',
  7288. '="/folder/add"|>File (?:not found|restricted|has been deleted)|<title>UPLOADTO.US</title>',
  7289. 'btn-large btn-danger">|Account limitation notice|502 Bad Gateway',
  7290. "//a[contains(@href,'uploadto.us/file')]",
  7291. true);
  7292. }
  7293. /* if (GM_getValue("Check_bl_dot_st_links", false))
  7294. {
  7295. addFileHost(
  7296. "bl\.st\/\\w+",
  7297. '>My Account</a></li>',
  7298. 'file was removed by administrator|err">Not Allowed|alert alert-warning">|<Title>Download </Title>',
  7299. 'optional--',
  7300. //'optional--',
  7301. "//a[contains(@href,'bl.st')]");
  7302. } */
  7303. if (GM_getValue("Check_nitroflare_dot_com_links", false))
  7304. {
  7305. addFileHost(
  7306. "nitroflare\.com\/\\w+",
  7307. 'alert.png|LowSpeedMeter.png',
  7308. 'file has been removed|id="error" style="display',
  7309. 'optional--',
  7310. "//a[contains(@href,'nitroflare.com')]");
  7311. }
  7312. if (GM_getValue("Check_up_dot_top4top_dot_net_links", false))
  7313. {
  7314. addFileHost(
  7315. "up.top4top\.net\/\\w+",
  7316. 'start Downlod template',
  7317. 'start err template',
  7318. 'optional--',
  7319. "//a[contains(@href,'up.top4top.net')]");
  7320. }
  7321. if (GM_getValue("Check_filejoker_dot_net_links", false))
  7322. {
  7323. addFileHost(
  7324. "filejoker\.net\/\\w+",
  7325. 'button id="regular-download">Slow|method_free" value="1|<div id="download" class="download0">',
  7326. 'File Not Found|class="not_found|<div id="download" class="not_found">',
  7327. 'optional--',
  7328. "//a[contains(@href,'filejoker.net')]");
  7329. }
  7330. /* if (GM_getValue("Check_privatefiles_dot_com_links", false))
  7331. {
  7332. addFileHost(
  7333. "privatefiles\.com\/\\w+",
  7334. '<Title>Download|/img-h1Title.jpg">|icon icon-cloud-download',
  7335. '404 Not Found|No such file with this filename|file that is not available',
  7336. 'optional--',
  7337. "//a[contains(@href,'privatefiles.com')]");
  7338. } */
  7339. if (GM_getValue("Check_free_dot_fr_links", false))
  7340. {
  7341. addFileHost(
  7342. "(?:dl.\\.|)free\\.fr",
  7343. 'Valider et t&eacute;l&eacute',
  7344. 'Fichier inexistant',
  7345. 'optional--',
  7346. "//a[contains(@href,'free.fr')]");
  7347. }
  7348. if (GM_getValue("Check_gboxes_dot_com_links", false))
  7349. {
  7350. addFileHost(
  7351. "gboxes\.com\/\\w+",
  7352. 'You have requested|color="red">http://www.gboxes.com',
  7353. 'File Not Found|<div style="width:500px;text-align:left;">',
  7354. 'optional--',
  7355. "//a[contains(@href,'gboxes.com')]");
  7356. }
  7357. if (GM_getValue("Check_1fichier_dot_com_links", false))
  7358. {
  7359. addFileHost(
  7360. "(?:\\w{10}\\.(?:1fichier|dl4free)\\.com\/)|(?:(?:1fichier|dl4free)\\.com\/\\?\\w{10})",
  7361. '<title>Download</title>|<br/>You must wait|<input type="submit" value="Download" ',
  7362. 'File not found|file could not be found|Select files to send',
  7363. 'optional--',
  7364. "//a[contains(@href,'1fichier.com/') or contains(@href,'dl4free.com/')]"
  7365. );
  7366. }
  7367. if (GM_getValue("Check_led_dot_wf_links", false))
  7368. {
  7369. addFileHost(
  7370. "led\.wf\/\\w+",
  7371. 'logo_0.png|downloads.gif"',
  7372. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link',
  7373. 'optional--',
  7374. "//a[contains(@href,'led.wf')]");
  7375. }
  7376. if (GM_getValue("Check_lan_dot_wf_links", false))
  7377. {
  7378. addFileHost(
  7379. "lan\.wf\/\\w+",
  7380. 'logo_0.png|downloads.gif"',
  7381. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link',
  7382. 'optional--',
  7383. "//a[contains(@href,'lan.wf')]");
  7384. }
  7385. if (GM_getValue("Check_adlink_dot_wf_links", false))
  7386. {
  7387. addFileHost(
  7388. "adlink\.wf\/\\w+",
  7389. 'logo_0.png|downloads.gif"',
  7390. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link',
  7391. 'optional--',
  7392. "//a[contains(@href,'adlink.wf')]");
  7393. }
  7394. if (GM_getValue("Check_click_dot_tf_links", false))
  7395. {
  7396. addFileHost(
  7397. "click\.tf\/\\w+",
  7398. 'logo_0.png|downloads.gif"',
  7399. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link',
  7400. 'optional--',
  7401. "//a[contains(@href,'click.tf')]");
  7402. }
  7403. if (GM_getValue("Check_ssh_dot_tf_links", false))
  7404. {
  7405. addFileHost(
  7406. "ssh\.tf\/\\w+",
  7407. 'logo_0.png|downloads.gif"',
  7408. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link',
  7409. 'optional--',
  7410. "//a[contains(@href,'ssh.tf')]");
  7411. }
  7412. if (GM_getValue("Check_ssh_dot_yt_links", false))
  7413. {
  7414. addFileHost(
  7415. "ssh\.yt\/\\w+",
  7416. 'logo_0.png|downloads.gif"',
  7417. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link',
  7418. 'optional--',
  7419. "//a[contains(@href,'ssh.yt')]");
  7420. }
  7421. if (GM_getValue("Check_yep_dot_pm_links", false))
  7422. {
  7423. addFileHost(
  7424. "yep\.pm\/\\w+",
  7425. 'logo_0.png|downloads.gif"',
  7426. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link',
  7427. 'optional--',
  7428. "//a[contains(@href,'yep.pm')]");
  7429. }
  7430. if (GM_getValue("Check_kyc_dot_pm_links", false))
  7431. {
  7432. addFileHost(
  7433. "kyc\.pm\/\\w+",
  7434. 'logo_0.png|downloads.gif"',
  7435. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link',
  7436. 'optional--',
  7437. "//a[contains(@href,'kyc.pm')]");
  7438. }
  7439. if (GM_getValue("Check_brupload_dot_net_links", false))
  7440. {
  7441. addFileHost(
  7442. "brupload\.net\/\\w+",
  7443. 'Download Gratuito',
  7444. '<div style="width:500px;text-align:left;">',
  7445. 'optional--',
  7446. //'optional--',
  7447. "//a[contains(@href,'brupload.net')]");
  7448. }
  7449. if (GM_getValue("Check_cloudzilla_dot_to_links", false))
  7450. {
  7451. addFileHost(
  7452. "cloudzilla\.to\/\\w+",
  7453. 'btn1" id="free_download|onclick="freeDownload|id="pwd_protected">',
  7454. 'File not found|/imgs/broken.png',
  7455. 'optional--',
  7456. //'optional--',
  7457. "//a[contains(@href,'cloudzilla.to')]");
  7458. }
  7459. if (GM_getValue("Check_fileparadox_dot_in_links", false))
  7460. {
  7461. addFileHost(
  7462. "fileparadox\.in\/\\w+",
  7463. 'CONTENT="Download File|method_free_file',
  7464. '>File Not Found<|id="no_filedownload">',
  7465. 'optional--',
  7466. //'optional--',
  7467. "//a[contains(@href,'fileparadox.in')]");
  7468. }
  7469. /* if (GM_getValue("Check_fileparadox_dot_com_links", false))
  7470. {
  7471. addFileHost(
  7472. "fileparadox\.com\/\\w+",
  7473. 'CONTENT="Download File|method_free_file',
  7474. '>File Not Found<|id="no_filedownload">',
  7475. 'optional--',
  7476. //'optional--',
  7477. "//a[contains(@href,'fileparadox.com')]");
  7478. } */
  7479. if (GM_getValue("Check_clicknupload_dot_com_links", false))
  7480. {
  7481. addFileHost(
  7482. "clicknupload\.com\/\\w+",
  7483. 'name="method_free',
  7484. 'File Not Found',
  7485. 'optional--',
  7486. //'optional--',
  7487. "//a[contains(@href,'clicknupload.com')]");
  7488. }
  7489. if (GM_getValue("Check_ex_dash_load_dot_com_links", false))
  7490. {
  7491. addFileHost(
  7492. "ex-load\.com\/\\w+",
  7493. 'name="method_free|<p>Download File:</p>',
  7494. 'Folder Not Found|File Not Found|Error 404',
  7495. 'optional--',
  7496. //'optional--',
  7497. "//a[contains(@href,'ex-load.com')]");
  7498. }
  7499. if (GM_getValue("Check_hexupload_dot_com_links", false))
  7500. {
  7501. addFileHost(
  7502. "hexupload\.com\/\\w+",
  7503. 'button" value="Free|type="submit" value=""',
  7504. 'File Not Found|<div style="width:500px;text-align:left;">',
  7505. 'optional--',
  7506. //'optional--',
  7507. "//a[contains(@href,'hexupload.com')]");
  7508. }
  7509. if (GM_getValue("Check_wizupload_dot_com_links", false))
  7510. {
  7511. addFileHost(
  7512. "wizupload\.com\/\\w+",
  7513. 'btn_download',
  7514. '>File Not Found<',
  7515. 'optional--',
  7516. //'optional--',
  7517. "//a[contains(@href,'wizupload.com')]");
  7518. }
  7519. if (GM_getValue("Check_filecloud_dot_cc_links", false))
  7520. {
  7521. addFileHost(
  7522. "filecloud\.cc\/\\w+",
  7523. 'align="center"><input type="submit" name=',
  7524. 'File Not Found|<Title>FileCloud - Premium Hosting Service<',
  7525. 'optional--',
  7526. //'optional--',
  7527. "//a[contains(@href,'filecloud.cc')]");
  7528. }
  7529. if (GM_getValue("Check_inclouddrive_dot_com_links", false))
  7530. {
  7531. addFileHost(
  7532. "inclouddrive\.com\/\\w+",
  7533. 'initfreedownload',
  7534. '<title>Content Unavailable|The file you are trying to download is no longer available',
  7535. 'optional--',
  7536. //'optional--',
  7537. "//a[contains(@href,'inclouddrive.com')]");
  7538. }
  7539. if (GM_getValue("Check_radicalshare_dot_com_links", false))
  7540. {
  7541. addFileHost(
  7542. "radicalshare\.com\/\\w+",
  7543. 'value="download1|name="method_free"',
  7544. 'File Not Found<|<div style="width:500px;text-align:left;">',
  7545. 'optional--',
  7546. //'optional--',
  7547. "//a[contains(@href,'radicalshare.com')]");
  7548. }
  7549. if (GM_getValue("Check_sharemods_dot_com_links", false))
  7550. {
  7551. addFileHost(
  7552. "sharemods\.com\/\\w+",
  7553. 'name="method_free"',
  7554. 'File Not Found<',
  7555. 'optional--',
  7556. //'optional--',
  7557. "//a[contains(@href,'sharemods.com')]");
  7558. }
  7559. if (GM_getValue("Check_hostr_dot_co_links", false))
  7560. {
  7561. addFileHost(
  7562. "hostr\.co\/\\w+",
  7563. 'method="get"',
  7564. 'File not found<|error-page',
  7565. 'optional--',
  7566. //'optional--',
  7567. "//a[contains(@href,'hostr.co')]");
  7568. }
  7569. if (GM_getValue("Check_filepi_dot_com_links", false))
  7570. {
  7571. addFileHost(
  7572. "filepi\.com\/\\w+",
  7573. 'id="button_start">',
  7574. 'File not found',
  7575. 'optional--',
  7576. //'optional--',
  7577. "//a[contains(@href,'filepi.com')]");
  7578. }
  7579. if (GM_getValue("Check_tikfile_dot_com_links", false))
  7580. {
  7581. addFileHost(
  7582. "tikfile\.com\/\\w+",
  7583. 'btn_download',
  7584. 'File Not Found',
  7585. 'optional--',
  7586. //'optional--',
  7587. "//a[contains(@href,'tikfile.com')]");
  7588. }
  7589. if (GM_getValue("Check_cloudsix_dot_me_links", false))
  7590. {
  7591. addFileHost(
  7592. "cloudsix\.me\/\\w+",
  7593. 'name="method_free"',
  7594. 'File Not Found|width:500px;text-align:left;">',
  7595. 'optional--',
  7596. //'optional--',
  7597. "//a[contains(@href,'cloudsix.me')]");
  7598. }
  7599. if (GM_getValue("Check_neodrive_dot_co_links", false))
  7600. {
  7601. addFileHost(
  7602. "neodrive\.co\/\\w+",
  7603. 'btn1" id="free_download|onclick="freeDownload|id="pwd_protected">',
  7604. 'File not found|/imgs/broken.png',
  7605. 'optional--',
  7606. //'optional--',
  7607. "//a[contains(@href,'neodrive.co')]");
  7608. }
  7609. if (GM_getValue("Check_chayfile_dot_com_links", false))
  7610. {
  7611. addFileHost(
  7612. "chayfile\.com\/\\w+",
  7613. 'name="method_free"',
  7614. 'File Not Found|<h3>The file was removed by administrator</h3>',
  7615. 'optional--',
  7616. //'optional--',
  7617. "//a[contains(@href,'chayfile.com')]");
  7618. }
  7619. if (GM_getValue("Check_xfileload_dot_com_links", false))
  7620. {
  7621. addFileHost(
  7622. "xfileload\.com\/\\w+",
  7623. 'Filename:|Имя файла:|Dateiname:|nom de fichier :|اسم الملف:|Dosya AdД±|Nazwa:|Nombre de fichero:|NamaFile:|Bestandsnaam:|שם קובץ:"',
  7624. 'The file you were looking for could not be found, sorry for any inconvenience.|Die von Ihnen angeforderte Datei konnte nicht gefunden werden..|le fichier que vous recherchiez ne pourrait pas etre trouve, désole pour aucun derangement|لم يتم إيجاد الملف المطلوب , عذراً للإزعاج|Istenen dosya bulunamadД±..|Plik ktorego szukasz nie zostal odnaleziony na naszych serwerach, przepraszamy.|El archivo que usted buscaba no podrнa ser encontrado, arrepentido para ningъn inconveniente.|File yang sedang anda cari tidak dapat ditemukan, maaf untuk ketidaknyamanan anda saat ini.|De bestand waar u naar zocht is niet gevonden, excuses voor het ongemak..|הקובץ שחיפשת לא נמצא.',
  7625. 'optional--',
  7626. //'optional--',
  7627. "//a[contains(@href,'xfileload.com')]");
  7628. }
  7629. if (GM_getValue("Check_rockfile_dot_eu_links", false))
  7630. {
  7631. addFileHost(
  7632. "rockfile\.eu\/\\w+",
  7633. 'You have requested:',
  7634. 'The file you were looking for could not be found, sorry for any inconvenience.',
  7635. 'optional--',
  7636. //'optional--',
  7637. "//a[contains(@href,'rockfile.eu')]");
  7638. }
  7639. if (GM_getValue("Check_24uploading_dot_com_links", false))
  7640. {
  7641. addFileHost(
  7642. "24uploading\.com\/\\w+",
  7643. 'File:|Download Speed:',
  7644. '<b>File Not Found</b>',
  7645. 'optional--',
  7646. //'optional--',
  7647. "//a[contains(@href,'24uploading.com')]");
  7648. }
  7649. if (GM_getValue("Check_tusfiles_dot_net_links", false))
  7650. {
  7651. addFileHost(
  7652. "tusfiles\.net\/\\w+",
  7653. 'i/icon/dll.png"|>Start download<br',
  7654. 'no longer available<|i/ino.png"',
  7655. 'optional--',
  7656. //'optional--',
  7657. "//a[contains(@href,'tusfiles.net')]");
  7658. }
  7659. if (GM_getValue("Check_2drive_dot_net_links", false))
  7660. {
  7661. addFileHost(
  7662. "2drive\.net\/\\w+",
  7663. 'value="Free Download"',
  7664. 'File Not Found',
  7665. 'optional--',
  7666. //'optional--',
  7667. "//a[contains(@href,'2drive.net')]");
  7668. }
  7669. if (GM_getValue("Check_jumbofile_dot_net_links", false))
  7670. {
  7671. addFileHost(
  7672. "jumbofile\.net\/\\w+",
  7673. 'button" class="" value="Free',
  7674. 'This File Was Deleted',
  7675. 'optional--',
  7676. //'optional--',
  7677. "//a[contains(@href,'jumbofile.net')]");
  7678. }
  7679. if (GM_getValue("Check_ozofiles_dot_com_links", false))
  7680. {
  7681. addFileHost(
  7682. "ozofiles\.com\/\\w+",
  7683. 'button" value="Free',
  7684. 'File Not Found|width:500px;text-align:left;">',
  7685. 'optional--',
  7686. //'optional--',
  7687. "//a[contains(@href,'ozofiles.com')]");
  7688. }
  7689. if (GM_getValue("Check_loudupload_dot_net_links", false))
  7690. {
  7691. addFileHost(
  7692. "loudupload\.net\/\\w+",
  7693. 'value="Get Links',
  7694. 'File Not Found',
  7695. 'optional--',
  7696. //'optional--',
  7697. "//a[contains(@href,'loudupload.net')]");
  7698. }
  7699. if (GM_getValue("Check_rapidsonic_dot_com_links", false))
  7700. {
  7701. addFileHost(
  7702. "(rapidsonic|fileparadox)\\.com\/\\w+",
  7703. 'method_free" id="submit_btn',
  7704. '>File Not Found<|id="no_filedownload">',
  7705. 'optional--',
  7706. //'optional--',
  7707. "//a[contains(@href,'rapidsonic') or contains(@href,'fileparadox.com')]");
  7708. }
  7709. if (GM_getValue("Check_krotix_dot_net_links", false))
  7710. {
  7711. addFileHost(
  7712. "krotix\.net\/\\w+",
  7713. 'btn btn-warning|btn-free',
  7714. 'pageErrors|This File has been removed',
  7715. 'optional--',
  7716. //'optional--',
  7717. "//a[contains(@href,'krotix.net')]");
  7718. }
  7719. if (GM_getValue("Check_userscloud_dot_com_links", false))
  7720. {
  7721. addFileHost(
  7722. "userscloud\.com\/\\w+",
  7723. 'btn_download',
  7724. '>Server OFFLINE|background:#D3D3D3;border-bottom:1px solid #BBB;font:bold 13px Verdana;padding:3px;">',
  7725. 'optional--',
  7726. //'optional--',
  7727. "//a[contains(@href,'userscloud.com')]");
  7728. }
  7729. if (GM_getValue("Check_kumpulbagi_dot_com_links", false))
  7730. {
  7731. addFileHost(
  7732. "kumpulbagi\.com\/\\w+",
  7733. 'class="button download',
  7734. 'internal server error',
  7735. 'optional--',
  7736. //'optional--',
  7737. "//a[contains(@href,'kumpulbagi.com')]");
  7738. }
  7739. if (GM_getValue("Check_faststore_dot_org_links", false))
  7740. {
  7741. addFileHost(
  7742. "faststore\.org\/\\w+",
  7743. 'name="method_free',
  7744. 'File Not Found',
  7745. 'optional--',
  7746. //'optional--',
  7747. "//a[contains(@href,'faststore.org')]");
  7748. }
  7749.  
  7750. }
  7751. //start here
  7752.  
  7753. //hosts with direct download, so they must be requested for headers only
  7754. function initFileHostsHeadersOnly()
  7755. {
  7756. function addFileHostHeadersOnly(linkRegex, isAliveRegex, isDeadRegex, xpathEx, ispremRegex)
  7757. {
  7758. var host = new Array(5);
  7759. host[0] = linkRegex;
  7760. host[1] = isAliveRegex;
  7761. host[2] = isDeadRegex;
  7762. host[3] = xpathEx;
  7763. host[4] = ispremRegex;
  7764. http_file_hosts_headers_only.push(host);
  7765. }
  7766. if (GM_getValue("Check_uloziste_dot_com_links", false))
  7767. {
  7768. addFileHostHeadersOnly(
  7769. "(?:|files\\.)uloziste\\.com\/\\w+\/\\w+",
  7770. 'Connection: Keep-Alive',
  7771. 'Content-Length: 3857',
  7772. "//a[contains(@href,'uloziste.com')]"
  7773. )
  7774. }
  7775. if (GM_getValue("Check_adrive_dot_com_links", false))
  7776. {
  7777. addFileHostHeadersOnly(
  7778. "adrive\\.com\/public\/\\w+",
  7779. 'Connection: keep-alive',
  7780. 'orig_ref=deleted',
  7781. "//a[contains(@href,'adrive.com')]"
  7782. )
  7783. }
  7784. if (GM_getValue("Check_myupload_dot_dk_links", false))
  7785. {
  7786. addFileHostHeadersOnly(
  7787. "myupload\\.dk\/showfile\/\\w+",
  7788. 'Expires:',
  7789. 'squeeze1\\s+Vary',
  7790. "//a[contains(@href,'myupload.dk/showfile')]"
  7791. )
  7792. }
  7793. }
  7794. //CustomRules
  7795. //functions add...Host copied here
  7796. function addObsoleteHost(linkRegex, xpathEx)
  7797. {
  7798. var host = new Array(2);
  7799. host[0] = linkRegex;
  7800. host[1] = xpathEx;
  7801. http_file_hosts_obsolete.push(host);
  7802. }
  7803. function addFileHost(linkRegex, isAliveRegex, isDeadRegex, isUnavaRegex, xpathEx, tryLoop, ispremRegex)
  7804. {
  7805. var host = new Array(7);
  7806. host[0] = linkRegex;
  7807. host[1] = isAliveRegex;
  7808. host[2] = isDeadRegex;
  7809. host[3] = isUnavaRegex;
  7810. host[4] = xpathEx;
  7811. tryLoop ? host[5] = true : host[5] = false;
  7812. host[6] = ispremRegex;
  7813. http_file_hosts.push(host);
  7814. }
  7815. function addFileHostHeadersOnly(linkRegex, isAliveRegex, isDeadRegex, xpathEx, ispremRegex)
  7816. {
  7817. var host = new Array(5);
  7818. host[0] = linkRegex;
  7819. host[1] = isAliveRegex;
  7820. host[2] = isDeadRegex;
  7821. host[3] = xpathEx;
  7822. host[4] = ispremRegex;
  7823. http_file_hosts_headers_only.push(host);
  7824. }
  7825. //takes a fully built rules array and adds the rules to WARLC
  7826. function applyCustomRules(customRules)
  7827. {
  7828. if (!customRules) return;
  7829. var rules, r, i;
  7830. rules = customRules.rules;
  7831. for (i = 0 ; i < rules.length ; i++)
  7832. {
  7833. r = rules[i];
  7834. if (r.enabled)
  7835. {
  7836. switch (r.type)
  7837. {
  7838. case 'single':
  7839. addFileHost(r.urlregex, r.aliveregex, r.deadregex, r.unavaregex, r.premregex||'', r.xpath);
  7840. break;
  7841. case 'headers':
  7842. addFileHostHeadersOnly(r.urlregex, r.aliveregex, r.deadregex, r.xpath, r.premregex);
  7843. break;
  7844. case 'obsolete':
  7845. addObsoleteHost(r.urlregex, r.xpath)
  7846. break;
  7847. }
  7848. }
  7849. }
  7850. }
  7851.  
  7852.  
  7853. function initFileHostsCustom()
  7854. {
  7855. if (Custom_rules && Custom_rules_text)
  7856. {
  7857. var msg = '';
  7858. if (newVersion)
  7859. msg = 'New version of W.A.R. Links Checker detected.\n\n';
  7860. else if ((now - last_custom_rules_nag) >= 60*24*60*60*1000)
  7861. msg = '60 or more days have passed since this notification.\n\n';
  7862. if (msg && /^\s*@customrule(?:_obsolete)?\s/mi.test(Custom_rules_text))
  7863. {
  7864. GM_setValue('last_custom_rules_nag', ''+new Date().getTime()); //reset nag
  7865. msg +=
  7866. 'Either new version of W.A.R. Links Checker detected or 60 days passed since this notify.\n'+
  7867. 'Please check that your custom rules haven\'t been built into WARLC.\n'+
  7868. 'If not, please share them with us so they can be included in the next version! Built-in rules are always preferred.\n\n'+
  7869. 'We apologize for this annoying notification, but there is a reason to this.\n'+
  7870. 'Ideally, WARLC would check which of your custom rules have been included and disable them. '+
  7871. 'Unfortunately, there is no easy way to do that, but we don\'t want everybody to just use their custom rules '+
  7872. 'forever without ever checking if the built-in ones have been added/fixed. This is currently the only way '+
  7873. 'to remind you that you should try built-in rules, report missing/non-working ones and share your custom rules.';
  7874. setTimeout(function(){alert(msg)},0);
  7875. }
  7876. var customRules = parseCustomRules(Custom_rules_text);
  7877. if (customRules.warning || customRules.error)
  7878. alert('There were ' + customRules.error + ' errors, ' + customRules.warning + ' warnings, ' +
  7879. customRules.note + ' notes found during Custom Rules processing.\n' + customRules.rules.length + ' valid rules found.\n\n' +
  7880. JSON.stringify(customRules.info, null, ' '));
  7881. applyCustomRules(customRules);
  7882. }
  7883. }
  7884. //end of CustomRules processing
  7885.  
  7886.  
  7887.  
  7888. } //end of function start
  7889.  
  7890.  
  7891.  
  7892. function initClipBoardTools()
  7893. {
  7894. unsafeWindow.copyToClipboard = function(text)
  7895. {
  7896. try
  7897. {
  7898. this.netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
  7899.  
  7900. var str = Components.classes["@mozilla.org/supports-string;1"].
  7901. createInstance(Components.interfaces.nsISupportsString);
  7902. if (!str) return false;
  7903.  
  7904. str.data = text;
  7905.  
  7906. var trans = Components.classes["@mozilla.org/widget/transferable;1"].
  7907. createInstance(Components.interfaces.nsITransferable);
  7908. if (!trans) return false;
  7909.  
  7910. trans.addDataFlavor("text/unicode");
  7911. trans.setTransferData("text/unicode", str, text.length * 2);
  7912.  
  7913. var clipid = Components.interfaces.nsIClipboard;
  7914. var clip = Components.classes["@mozilla.org/widget/clipboard;1"].getService(clipid);
  7915. if (!clip) return false;
  7916.  
  7917. clip.setData(trans, null, clipid.kGlobalClipboard);
  7918. } catch (e) {
  7919. GM_log("Error copyToClipboard : " + e);
  7920. alert(e + "\n\nsigned.applets.codebase_principal_support must be set true in about:config")
  7921. }
  7922. }
  7923. }
  7924.  
  7925.  
  7926.  
  7927. //CustomRules
  7928.  
  7929. function escapeRegex(str)
  7930. {
  7931. return str.replace(/[\-\[\]{}()*+?.,\\\^$|#]/g, "\\$&");
  7932. }
  7933.  
  7934.  
  7935. //called internally from parseCustomRules.
  7936. //expected: rule object with array fields baseurl, alivematch etc, everything must already be checked for input errors
  7937. //returns the rule object with string fields urlregex, xpath, aliveregex etc built from the arrays
  7938. function makeCustomRule(rule)
  7939. {
  7940. function makeMatchRegex(arrmatch)
  7941. {
  7942. return escapeRegex(arrmatch.join('\n'))
  7943. .replace(/ +/g, '\\s+') //two or more spaces to any whitespace
  7944. .replace(/\n/g,'|'); //join together
  7945. }
  7946. if (rule.alivematch) rule.aliveregex = makeMatchRegex(rule.alivematch);
  7947. if (rule.deadmatch) rule.deadregex = makeMatchRegex(rule.deadmatch);
  7948. if (rule.unavamatch) rule.unavaregex = makeMatchRegex(rule.unavamatch);
  7949. if (rule.premmatch) rule.premregex = makeMatchRegex(rule.premmatch);
  7950. if (rule.baseurl)
  7951. {
  7952. var i, m, urlregex = [], xpath = [], len = rule.baseurl.length;
  7953. for (i = 0 ; i < len ; i++)
  7954. {
  7955. m = rule.baseurl[i].match(/^([a-z0-9\.-]+)(?: +([a-z \.]+) +)?(\/.*)$/);
  7956. if (m[2]) //baseurl in the form: example. com co.uk net /xxx
  7957. {
  7958. xpath = xpath.concat(m[2].replace(/([a-z\.]+)/g, m[1]+'$1'+m[3]).split(/\s+/)); //xpath = xpath.concat(['example.com/xxx', 'example.co.uk/xxx', 'example.net/xxx'])
  7959. urlregex.push( (m[1] + '(?:'+ m[2].replace(/\s+/g,'|') + ')').replace(/\./g,'\\.') + escapeRegex(m[3]) + '.'); //urlregex.push('example\\.(?:com|co\\.uk|net)/xxx.')
  7960. }
  7961. else //baseurl in the form: example.com/xxx
  7962. {
  7963. xpath.push(m[0]);
  7964. urlregex.push(escapeRegex(m[0]) + '.');
  7965. }
  7966. }
  7967. rule.xpath = "//a[contains(@href,'" + xpath.join("') or contains(@href,'") + "')]";
  7968. rule.urlregex = '(?:[a-z0-9\\.-]+\\.)?(?:' + urlregex.join('|') + ')';
  7969. }
  7970. return rule;
  7971. } //function makeCustomRule
  7972.  
  7973.  
  7974. /*
  7975. Takes a string containing custom link checking rules.
  7976. Returns an object with fields:
  7977. info - contains notes, warnings and errors found during parsing
  7978. rules - the array of custom rules
  7979. note, warning, error - number of each of them found during parsing
  7980. Format of the input string:
  7981. One command per line. Command format: @keyword parameter
  7982. Keywords:
  7983. @customrule, @customrule_obsolete, @customrule_headers - begin a new custom rule. Parameter: name of the rule
  7984. @#customrule, @#customrule_obsolete, @#customrule_headers - begin and parse this custom rule, but don't use it. Parameter: name of the rule
  7985. These keywords can be multiple (any of them will work):
  7986. @baseurl - constant part of the url. ( d123.example.com/d/?fileid -> example.com/d/? ) - used for both xpath and urlregex (will also match anything.example...)
  7987. @alivematch, @deadmatch, @unavamatch - what to look for in the response. No regex, literal text is used with one exception: 2 or more spaces will match \s+
  7988. @alivelink, @deadlink - example links
  7989. @baseurl is always required, @alivematch and @deadmatch are required except for obsolete. @unavamatch is ignored for obsolete. @*link is optional.
  7990. Lines starting with // and empty lines are ignored.
  7991. Invalid parameters generate errors and those lines are skipped.
  7992. Other lines generate warnings, but are otherwise ignored (also those before the first @customrule line or inside a rule with invalid name).
  7993. Example:
  7994. @customrule filehost
  7995. @baseurl filehost.com/download/
  7996. @baseurl filehost2. com net /d?=
  7997. @alivematch id="download">
  7998. @deadmatch File not found
  7999. @deadmatch File deleted
  8000. */
  8001. function parseCustomRules(rulesStr)
  8002. {
  8003. var linenum, customRules = {'info': [], 'rules': [], 'note': 0, 'warning': 0, 'error': 0};
  8004. function addInfo(type, msg, ln){
  8005. customRules.info.push({'linenum':(ln===undefined ? linenum+1 : ln+1), 'type':type, 'msg':msg});
  8006. customRules[type]++;
  8007. }
  8008. var lines = rulesStr.match(/^(.*)$/gm); //split into array of lines
  8009. if (!lines) return null;
  8010. lines.push('@#customrule _'); //to save the last rule
  8011. var m, linecount = lines.length;
  8012. var keyword, param, constr, rule, err;
  8013. var TLD = '[a-z]{2,7}(?:\\.[a-z]{2,7})?';
  8014. var TLDorTLDlist = '(?:'+TLD+'| '+TLD+'(?: '+TLD+'){0,9} )'; //TLD or space-separated list of TLDs
  8015. var baseurlRE = new RegExp('^([a-z0-9-]{1,30}(?:\\.[a-z0-9-]{1,30}){0,2}\\.)'+TLDorTLDlist+'(/[^\'"\s\$]{0,50})$', 'i');
  8016. var constraints = {
  8017. 'baseurl': {
  8018. 'single': {'min': 1, 'max': 10, 'paramRE': baseurlRE},
  8019. 'headers': {'min': 1, 'max': 10, 'paramRE': baseurlRE},
  8020. 'obsolete': {'min': 1, 'max': 10, 'paramRE': baseurlRE}},
  8021. 'alivematch': {
  8022. 'single': {'min': 1, 'max': 10, 'paramRE': null},
  8023. 'headers': {'min': 1, 'max': 10, 'paramRE': null}},
  8024. 'deadmatch': {
  8025. 'single': {'min': 1, 'max': 10, 'paramRE': null},
  8026. 'headers': {'min': 1, 'max': 10, 'paramRE': null}},
  8027. 'unavamatch': {
  8028. 'single': {'min': 0, 'max': 10, 'paramRE': null}},
  8029. 'alivelink': {
  8030. 'single': {'min': 0, 'max': 10, 'paramRE': null},
  8031. 'headers': {'min': 0, 'max': 10, 'paramRE': null}},
  8032. 'deadlink': {
  8033. 'single': {'min': 0, 'max': 10, 'paramRE': null},
  8034. 'headers': {'min': 0, 'max': 10, 'paramRE': null},
  8035. 'obsolete': {'min': 0, 'max': 10, 'paramRE': null}}
  8036. };
  8037. for (linenum = 0 ; linenum < linecount ; linenum++)
  8038. {
  8039. //capturing groups: 1 23 4 5 6
  8040. m = lines[linenum].match(/^\s*(?:(\/\/.*)|@((#?)(customrule)(?:_(headers|obsolete))?|baseurl|alivematch|deadmatch|unavamatch|alivelink|deadlink)\s+(.+))?$/i);
  8041. if (m)
  8042. {
  8043. if (m[1] || !m[2])
  8044. continue; // ignore empty lines and lines starting with //
  8045. keyword = (m[4] || m[2]).toLowerCase();
  8046. param = m[6];
  8047. if (keyword == 'customrule')
  8048. {
  8049. //save the current rule if all required fields are provided
  8050. if (rule)
  8051. {
  8052. err = false;
  8053. $.each(constraints, function(kw, constraint){
  8054. var l, constr = constraint[rule.type];
  8055. if (constr)
  8056. {
  8057. l = rule[kw] ? rule[kw].length : 0;
  8058. if (l < constr.min || l > constr.max)
  8059. {
  8060. addInfo('error', 'Required at least ' + constr.min + ' and at most ' + constr.max + ' @' + kw.toUpperCase() + ' command(s) for type ' + rule.type.toUpperCase() + '. Rule skipped.', linenum-1);
  8061. err = true;
  8062. }
  8063. }
  8064. });
  8065. if (!err)
  8066. customRules.rules.push(makeCustomRule(rule));
  8067. }
  8068. //start a new rule
  8069. if (/^[\w\.-]{1,30}$/.test(param)) //valid name?
  8070. {
  8071. rule = {
  8072. 'enabled': !m[3],
  8073. 'type': m[5] ? m[5].toLowerCase() : 'single',
  8074. 'name': param
  8075. };
  8076. }
  8077. else
  8078. {
  8079. addInfo('error', 'Invalid rule name. Cannot start a new rule definition.');
  8080. rule = null;
  8081. }
  8082. }
  8083. else //good line format, but keyword other than customrule
  8084. {
  8085. if (!rule)
  8086. {
  8087. addInfo('warning', 'Command outside @CUSTOMRULE definiton. Line skipped.');
  8088. continue;
  8089. }
  8090. if (constraints[keyword])
  8091. {
  8092. constr = constraints[keyword][rule.type];
  8093. if (constr)
  8094. {
  8095. if (constr.paramRE && !constr.paramRE.test(param))
  8096. {
  8097. addInfo('warning', 'Invalid @' + keyword.toUpperCase() + ' parameter. Line Skipped.');
  8098. continue;
  8099. }
  8100. }
  8101. else
  8102. {
  8103. addInfo('note', '@' + keyword.toUpperCase() + ' not applicable for type ' + rule.type.toUpperCase() + '. Line skipped.');
  8104. continue;
  8105. }
  8106. }
  8107. //line OK, save
  8108. rule[keyword] ? rule[keyword].push(param) : rule[keyword] = [param];
  8109. }
  8110. } //if (m)
  8111. else
  8112. addInfo('warning', 'Unknown line format. Line skipped.');
  8113. } //for loop
  8114. return customRules;
  8115. } //function parseCustomRules

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址