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

detects premium only links on some hosts.

当前为 2014-06-12 提交的版本,查看 最新版本

  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.0.8.4
  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://userscripts.org/users/510590">mentalps</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. // ==/UserScript==
  27.  
  28. //separate alternative domains with "|" char (first name is considered being main)
  29. var allHostNames = ["1fichier.com|dl4free.com","2download.de","2shared.com","4fastfile.com","4shared.com","adrive.com","aisfile.com","hellfile.com",
  30. "bayfiles.com","bezvadata.cz","bitshare.com","burnupload.com|burnupload.ihiphop.com","cobrashare.sk","firedrive.com","usersfiles.com","pan.baidu.com",
  31. "cramit.in|cramitin.net","czshare.com","dataport.cz","datei.to","daten-hoster.de|filehosting.org|xtraupload.de","demo.ovh.com","depositfiles.com","divshare.com",
  32. "divxden.com","easy-share.com|crocko.com","easybytez.com","edisk.cz","enigmashare.com","erofly.cz","euroshare.eu","file-upload.net","yadi.sk",
  33. "fastshare.cz","fiberupload.net","filefactory.com","rocketfile.net","filecity.net","share.vnn.vn","berofile.com","yunpan.cn","gulfup.com","tropicshare.com",
  34. "fileflyer.com","filerio.com|filekeen.com","filemonster.net","up.4share.vn","upfile.vn","sharesuper.info","datafilehost.com","fileband.com","worldbytez.com",
  35. "files.mail.ru","files.to","filedino.com","filepost.com|fp.io","filesend.net","filesflash.com","box.com","box.net","vidbox.yt","goldbytez.com","sdilej.cz",
  36. "fileshare.in.ua","filesmonster.com","filestore.to","freakshare.net","hulkload.com","lumfile.com","lumfile.se","lumfile.eu","filedropper.com",
  37. "free.fr","free-uploading.com","gamefront.com|filefront.com","getthebit.com","gettyfile.ru","gigapeta.com","gigasize.com","gigaup.fr",/*"glumbo.com|glumbouploads.com",*/
  38. "goldfile.eu","good.com","grupload.com","hellshare.com","hellspy.com","hipfile.com","hitfile.net","hostuje.net","freefilehosting.net","fcore.eu",
  39. "hulkshare.com","hyperfileshare.com","filecloud.io|ifile.it","ifolder.ru","jumbofiles.com","uploadrocket.net","filesfrog.net","lafiles.com",
  40. "leteckaposta.cz|sharegadget.com","letitbit.net","load.to","loombo.com","mediafire.com","megafileupload.com","megashare.com","megashares.com",
  41. "movshare.net","muchshare.net","multishare.cz","myupload.dk","narod.ru|narod.yandex.ru","netload.in","ok2upload.com","fboom.me",
  42. "openfile.ru","partage-facile.com","plunder.com","putlocker.com","sharerapid.cz","exclusiveloader.com","acefile.net","dotsemper.com",
  43. "queenshare.com","quickshare.cz","rapidgator.net","rapidshare.com","rapidshare.ru", "daj.to","keep2share.com",
  44. "rapidupload.sk","rarefile.net","rayfile.com","rghost.net","sendmyway.com", "4savefile.com","filesaur.com",
  45. "sendspace.com","sharecash.org","share-links.biz","share-now.net","share-online.biz|egoshare.com","megarapid.cz",
  46. "shareflare.net","slingfile.com","sms4file.com","solidfiles.com","space4file.com","speedfile.cz",
  47. "speedshare.org","stahovanizasms.cz","storage.novoro.net","tufiles.ru","turbobit.net",
  48. "turboupload.com","uloz.to|ulozto.cz|bagruj.cz|zachowajto.pl","ulozisko.sk","uloziste.com","unibytes.com","up-file.com",
  49. "upload-il.net|przeslij.net","uploadbin.net","uploaded.to|ul.to","uploading.com","uploadmachine.com", "uploadjet.net",
  50. "uploadspace.pl","upnito.sk","uptobox.com","usaupload.net","veehd.com","videobb.com","videozer.com",
  51. "vip-file.com","webshare.cz","xdisk.cz","yunfile.com|filemarkets.com","ziddu.com",
  52. "zippyshare.com", "uploading4u.eu", "premiuns.org", "rodfile.com", "migahost.com", "wikiupload.com", "uploadstube.de",
  53. "flyfiles.net", "nowdownload.eu", "dark-uploads.com", "asfile.com", "prefiles.com", "axifile.com",
  54. "upthe.net", "hackerbox.org", "sharefiles.co", "amonshare.com", "uploadorb.com", "data.hu", "filestay.com",
  55. "hulkfile.eu", "uptorch.com", "netkups.com", "vreer.com", "edoc.com", "isavelink.com", "upfile.biz",
  56. "uppit.com|up.ht", "peejeshare.com", "ddlstorage.com", "downloadani.me", "filesabc.com",
  57. "sharebeast.com", "sharebees.com", "filemates.com", "180upload.com", "verzend.be", "asixfiles.com", "zomgupload.com", "mlfat4arab.com",
  58. "movreel.com", "4up.me", "extmatrix.com", "i-filez.com", "sendfiles.nl", "yourfilestore.com", "filebig.net", "fileupup.com",
  59. "sockshare.com", "share76.com", "filebox.com", "nekaka.com", "file4safe.com", "freeuploads.fr|uploa.dk", "tusfiles.net",
  60. "kupload.org", "filemac.com", "files2k.eu", "coraldrive.net", "idup.in",
  61. "luckyshare.net", "uploadic.com", "fileswap.com", "potload.com", "clouds.to", "billionuploads.com", "rockdizfile.com",
  62. "getzilla.net", "nosupload.com", "fileking.co",
  63. "filesbb.com", "maxshare.pl", "myvdrive.com|fileserving.com", "filesin.com", "novafile.com", "longfiles.com",
  64. "toucansharing.com", "filesega.com", "uploadhero.com", "uploadbaz.com",
  65. "unextfiles.com", "stahovadlo.cz", "zooupload.com", "247upload.com", "bitupload.com",
  66. "indowebster.com", "superload.cz", "mafiastorage.com",
  67. "ultramegabit.com", "limelinx.com","ubuntuone.com",
  68. "minus.com", "filesmelt.com", "hellupload.com", "packupload.com", "uploadingit.com", "stiahni.si", "filefolks.com",
  69. "filedefend.com", "sendspace.pl", "fastshare.org","cyberlocker.ch", "filesector.cc",
  70. "filestrum.com", "fileuplo.de", "upaj.pl", "sinhro.net", "filedownloads.org", "egofiles.com", "filestore.com.ua",
  71. "upafile.com", "secureupload.eu", "cepzo.com","ifile.ws", "rapidfileshare.net", "stiahnito.sk",
  72. "rusfolder.com", "fileover.net", "catshare.net", "anonfiles.com", "mixturecloud.com", "nitrobits.com",
  73. "fileparadox.in","filedais.com",
  74. "akafile.com","creafile.net","hugefiles.net",
  75. "upload.ee","epicshare.net","shareplace.org","uploadc.com","darkport.org","yourfiles.to","remixshare.com",
  76. "exoshare.com","borncash.org","bigupload.com","junocloud.me","keep2share.cc","k2s.cc","expressleech.com","2downloadz.com","megafiles.se",
  77. "davvas.com","fileom.com","mightyupload.com","uncapped-downloads.com","anysend.com","datafile.com","upstore.net","upsto.re","usefile.com","speedy.sh",
  78. "sanshare.com","dizzcloud.com","filedap.com","swankshare.com","forunesia.com","filevice.com","kingfiles.net","uploadhero.co","ge.tt","filesflash.net",
  79. "redload.net","salefiles.com","keep2s.cc","megairon.net","terafile.co","swatupload.com","fastsonic.net","bayfiles.net","nirafile.com","mydisc.net","shareprofi.com",
  80. "datoid.cz","cloudstor.es","streamfile.com","eyesfile.ca","filemoney.com","uploadboy.com","fileshareup.com","filemonkey.in","speedshare.eu","google.com",
  81. "unlimitzone.com","migupload.com","rioupload.com","dodane.pl","rg.to","jumbofiles.org","fshare.vn","spaceforfiles.com","up.media1fire.com","depfile.com","uploadinc.com",
  82. "upshared.com","go4up.com","dropbox.com","przeklej.net","redbunker.net","divxpress.com","mega.co.nz","lemuploads.com","megarelease.org","anafile.com","uploadable.ch",
  83. "wallobit.com","arabloads.com","sharerepo.com","sfshare.se","files.fm","koofile.com","shared.com","uploadsat.com","vidplay.net","storagon.com","qkup.net","inafile.com",
  84.  
  85. ];
  86.  
  87. try
  88. {
  89. //iframes excluded
  90. if (window.top != window.self)
  91. {
  92. return;
  93. }
  94. //allHostNames sites excluded
  95. if (window.location.href.match("https?:\/\/(www\.)?[\w\.-]*(?:" +
  96. allHostNames.join("|").replace(/\./g, "\\.").replace(/-/g, "\\-") +
  97. ")"))
  98. {
  99. return;
  100. }
  101. }
  102. catch (e)
  103. {
  104. return;
  105. }
  106.  
  107. //separate alternative domains with "|" char (first name is considered being main)
  108. var allContainerNames = ["adf.ly","linkcrypt.ws","linksafe.me","linksave.in","linkto.net","madlink.sk","multiload.cz",
  109. "mirrorcreator.com","ncrypt.in","redi.re","relink.us","safelinking.net","theloo.katt.it","bit.ly"];
  110.  
  111. //separate alternative domains with "|" char (first name is considered being main)
  112. var allObsoleteNames = ["uloz.cz","storage.to","iskladka.cz","file-rack.com","fast-load.net","subory.sk","bigandfree.com",
  113. "fileop.com","mujsoubor.cz","sendfile.to","superfastfile.com","quickyshare.com","duckload.com","uploadstore.net","meinupload.com",
  114. "dualshare.com","2xupload.to|2xupload.de","oxedion.com","uploadline.com","dll.bz","movieshare.in","milledrive.com","quickupload.net",
  115. "safelink.in","metadivx.com","divxlink.com","uploadrack.com","teradepot.com","dataup.to","upit.to","driveway.com","eatlime.com",
  116. "a2zuploads.com","friendlyfiles.net","flyfile.us","speedyshare.com","uploadspace.eu","keepfile.com","piggyshare.com","uplly.com",
  117. "filecrown.com","6giga.com","uploadjockey.com","bluehost.to","filegu.ru","filebase.to","up-file.com","xvideos.com","ufox.com",
  118. "filebling.com","loaded.it","uploadcell.com","uploadshare.cz","mangoshare.com","filestab.com","crazyupload.com","gaiafile.com",
  119. "sharejunky.com","fileho.com","bigandfree.com","bigfile.in","bigshare.eu","dahosting.org","digisofts.net","file4save.com",
  120. "filechip.com","filescloud.com","saveqube.com","turboshare.de","z-upload.com","youshare.com","jiffyupload.com","gigeshare.com",
  121. "datenklo.net","upload.dj","loadfiles.in","upit.to","dsfileshare.com","sharesimple.net","4files.net","wooupload.com",
  122. "odsiebie.com","filenavi.com","3oof.com","meshwaar.com","maxupload.com","share.cx","atserver.eu","hotfiles.ws","esnips.com",
  123. "file2upload.net","filebling.com","turboshare.com","rarhost.com","isharehd.com","i741.com","dataup.de","fofly.com","shareonall.com",
  124. "sexuploader.com","megaupload.com|megavideo.com|megaporn.com|megarotic.com","uploadhyper.com","filespawn.com","caizzii.com",
  125. "volnyweb.cz","usershare.net","filescash.net","metahyper.com","combozip.com","x7.to","uploadbox.com","enterupload.com|flyupload.com",
  126. "filepoint.de","mystream.to","x-fs.com","shareator.com","srapid.eu","sosame.cz","filesdump.com","2-klicks.de","uploking.com",
  127. "silofiles.com","upfile.in","filehook.com","uploadking.com","uploadhere.com","kewlshare.com","rapidable.com","uploadwaste.com",
  128. "filesonic.com|sharingmatrix.com","fileserve.com","wupload.com", "skipfile.com", "smartuploader.com", "dualshare.com", "storeandserve.com",
  129. "mountfile.com", "transitfiles.com", "uploadstation.com", "filejungle.com", "shareshared.com", "quickyshare.com", "save.am", "petandrive.com",
  130. "file2box.com", "flyshare.cz", "yabadaba.ru", "cloudcache.cc", "yourfilehost.com", "jakfile.com", "kickload.com", "pyramidfiles.com",
  131. "refile.net", "zshare.net", "ddlani.me|ddlanime.com", "ftp2share.com", "fooget.com", "rapidhide.com", "gotupload.com", "mooload.com",
  132. "zupload.com", "mytempdir.com", "onionshare.com", "stahnu.to", "oron.com", "badongo.com","filereactor.com","filegaze.com","4bytez.com",
  133. "1hostclick.com", "anonstream.com", "batshare.com", "bitroad.net", "brontofile.com", "cloudnxt.net", "cloudnator.com|shragle.com",
  134. "coolshare.cz", "dotavi.com", "ezyfile.net", "file-bit.net", "filecosy.com", "fileduct.com|fileduct.net", "filefat.com", "filelaser.com", "filemashine.com",
  135. "fileserver.cc", "filetechnology.com", "fireuploads.net", "gigfiles.net", "holderfile.com", "ihostia.com", "k2files.com", "mojofile.com",
  136. "ovfile.com", "qshare.com", "shafiles.me", "sharefilehost.com", "shareupload.com", "stahuj.to", "ugotfile.com", "uploadboost.com",
  137. "vidhog.com", "xfileshare.eu", "bzlink.us", "bulletupload.com", "wizzupload.com", "bloggerarticles.com", "mojedata.sk", "sharpfile.com",
  138. "upgrand.com", "nasdilej.cz", "mediatack.cz", "share-it.to","primeupload.com","filebeer.info","baberepublic","xtu.me","sharebase.de",
  139. "filerobo.com","filevelocity.com","filezpro.com","file4sharing.com","cing.be","ufile.eu","pigsonic.com","fileupped.com","sharerun.com",
  140. "rapidslnare.com","bestsharing.com","savefiles.net","file2share.biz","filecache.de","monsteruploads.eu","b9bb.com","aiotool.net","jamber.info",
  141. "megaftp.com","desiupload.net","file27.com","yastorage.com","filehost.ws","copyload.com","venusfile.com","aieshare.com",
  142. "fileza.net","filerose.com","squillion.com","fileprohost.com","bitbonus.com","warserver.cz","uload.to","sharedbit.net","megaload.it","filewinds.com",
  143. "uploadcore.com","syfiles.com","eyesfile.com","hotfile.com","superupl.com","oteupload.com","henchfile.com","filegag.com","HenchFile.com","filedefend.com",
  144. "share-rapid.com|rapids.cz|share-credit.cz|share-central.cz|share-ms.cz|share-net.cz|srapid.cz|share-rapid.cz","megabitshare.com","ryushare.com","cloudzer.com",
  145. "cloudzer.net", "clz.to", "extabit.com",
  146. ];
  147.  
  148. // GM_log(allHostNames.length);
  149. // GM_log(allContainerNames.length);
  150. // GM_log(allObsoleteNames.length);
  151.  
  152. var firstRun = GM_getValue("First_run", true);
  153.  
  154.  
  155. try
  156. {
  157. var thisVersion = GM_info.script.version; //not supported in Scriptish and others
  158. var last_known_version = GM_getValue("last_known_version", "");
  159. if (!last_known_version)
  160. {
  161. last_known_version = thisVersion;
  162. GM_setValue("last_known_version", last_known_version);
  163. }
  164. //var newVersion = !(thisVersion == last_known_version);
  165. var newVersion = !(a.replace(/^(\d+\.\d+\.\d+).*/,'$1') == b.replace(/^(\d+\.\d+\.\d+).*/,'$1')); //true only if one of the first three numbers differs
  166. GM_setValue("last_known_version", thisVersion);
  167. }
  168. catch (err)
  169. {
  170. var newVersion = false;
  171. }
  172.  
  173. var now = (new Date()).getTime();
  174. var last_custom_rules_nag = GM_getValue('last_custom_rules_nag', 0);
  175. if (!last_custom_rules_nag)
  176. {
  177. last_custom_rules_nag = now;
  178. GM_setValue('last_custom_rules_nag', ''+now);
  179. }
  180.  
  181.  
  182. allHostNames.sort();
  183. allContainerNames.sort();
  184. allObsoleteNames.sort();
  185.  
  186. var RAND_STRING = "8QyvpOSsRG3QWq";
  187. var DEBUG_MODE = false;
  188.  
  189. var TOOLTIP_MAXWIDTH = 600; //in pixels
  190. var TOOLTIP_THUMBWIDTH = 200;
  191. var containers_processed = false;
  192.  
  193. //settings for keyboard functions start
  194. var CHECK_ALL_LINKS_KEY = "A";
  195. var CONFIGURATION_KEY = "C";
  196. var copy_to_dead_key = "D";
  197. var toggle_autocheck_key = "W";
  198. var toggle_Enable_Anonymizer_key = "Z";
  199. var first_key_keycode = '17'; // 18=ALT 16=Shift 17=Ctrl 32=SPACE_BAR 9=TAB
  200. var first_key_keycodename = 'CTRL';
  201. var second_key_keycode = '18';
  202. var second_key_keycodename = 'ALT';
  203. var CHECK_ALL_LINKS_KEYCODE = CHECK_ALL_LINKS_KEY.charCodeAt(0);
  204. var CONFIGURATION_KEYCODE = CONFIGURATION_KEY.charCodeAt(0);
  205. var copy_to_dead_keycode = copy_to_dead_key.charCodeAt(0);
  206. var toggle_autocheck_keycode = toggle_autocheck_key.charCodeAt(0);
  207. var toggle_Enable_Anonymizer_keycode = toggle_Enable_Anonymizer_key.charCodeAt(0);
  208. //settings for keyboard functions end
  209.  
  210. //global settings start
  211. var Show_black_background_in_DL_links, Show_line_through_in_dead_links, Color_DL_links;
  212. var Live_links_color, Dead_links_color, Temp_unavailable_links_color, Premium_links_color, Ref_anonymize_service;
  213. var Do_not_linkify_DL_links, Keyboard_functions, Autocheck, Enable_Anonymizer;
  214. var Show_progress_stats, Display_tooltip_info, Icon_set;
  215. var Progress_box_pos_bottom, Progress_box_pos_right, Progress_box_opacity, Progress_box_background_color, Progress_box_item_color;
  216. var Progress_box_refresh_rate;
  217. var Obsolete_file_hosts;
  218. var Custom_rules, Custom_rules_text;
  219.  
  220. var messageBox = document.createElement('b'); // top-left message box
  221.  
  222. var cLinksTotal = 0;
  223. var cLinksDead = 0;
  224. var cLinksAlive = 0;
  225. var cLinksUnava = 0;
  226. var cLinksPrem = 0;
  227. var cLinksProcessed = 0;
  228.  
  229. var intervalId; //for updateProgress()
  230.  
  231. //icon resources
  232. var PAW_ICON_GREEN = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAANCAYAAABy6+R8AAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yL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Qq6N5SH7cSZ8Uuqx205SI1rPL/6/HN1MW5GiKC84z2at6dixf9u4B/PqUtJuX27QAAAAASUVORK5CYII=';
  240. var RSLC_ICON_PINK = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAANCAYAAABy6+R8AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH2AQJDBgxYO68rwAAAZNJREFUeNptkr9LW1EcxT/3GhOTKIG8QTpm8B8IIoJTFkFwsXVyUaxFJHYoFzJYUVFHn4sKtoidCoKtIigWOtQOhRKowaFzJwcF0VeJ+fFe7nUwP57R7/S9nO+595z7PQJfGUgAsWqPaUBOC/yrHQI+QjKTXc7GQq4EhP+uKzdUcbtnelvhDzXQQHL2bCkbxhOA5GmZ24LUC73zPWE4lQYSmexynaCmjh5Nq9FdANER1uL9j7nfeUhIIFaVJNXEPrguKvPzgfD2G0iBGt8DkPG4CGiIyapZAWBvDUEoBOfnqPQxaANxC3v7Ze1hoQFpmsTbGwMQicLNNeTz2HaKYuO/4DnTauwLeC6i8wW4ZdSbA9rw/GtB6kaPmjyESATKZVZWUxAMQqnI9MTXOqdGcvRFoSw8o+0Pg1DxsD+PcFcJYH8aphSNsr71CkAH/17danAEQAGSa98zv7x4W9AIpGkRzap18cKU3vUv9lmQq6N5SH7cSZ8Uuqx205SI1rPL/6/HN1MW5GiKC84z2at6dixf9u4B/PqUtJuX27QAAAAASUVORK5CYII=';
  241.  
  242. //global settings end
  243. if (window.opera && !window.console)
  244. {
  245. window.console = {};
  246.  
  247. function fn()
  248. {
  249. opera.postError(arguments);
  250. };
  251. ['log', 'debug', 'info', 'warn', 'error', 'assert', 'dir', 'dirxml', 'group', 'groupEnd', 'time', 'timeEnd', 'count', 'trace', 'profile', 'profileEnd'].forEach(function (name)
  252. {
  253. window.console[name] = fn;
  254. });
  255. }
  256.  
  257. //displays colored text in message box
  258. function sendMessage(text, color)
  259. {
  260. var msgDiv = document.createElement('div');
  261. msgDiv.style.color = color;
  262. msgDiv.innerHTML = text;
  263. messageBox.appendChild(msgDiv);
  264. setTimeout(function(){messageBox.removeChild(msgDiv)}, 3000);
  265. }
  266.  
  267. //Optimized in v. 1.2.4.4 - the original version was terribly slow in Firefox because all text was matched against the huge regex.
  268. //Now a much simpler regex is used to find all links and those are individually matched against the huge regex.
  269. //A small change in behavior - given "somethinghotfile.com/", "hotfile.com/" won't get linkified.
  270. function linkify(totalourls)
  271. { // code from http://userscripts.org/scripts/review/2254 Linkify ting
  272. var ikkeTilladteTags;
  273. var allLinksRegex = "(?:http:\/\/.+?\\?)?(?:https?:\/\/)?"
  274. + "[0-9A-Za-z]+(?:[\\.-][0-9A-Za-z]+)*\\.[A-Za-z]+/" //instead of totalourls
  275. + "[\\w\\–\\-\\.+$!*\\/()\\[\\]\',~%?:@#&=\\\\\\—;…×Ã\\_\\u0080-\\u03FF’‘" + (Allow_spaces_in_DL_links ? "\\u0020" : "") + "]*";
  276. allLinksRegex = new RegExp(allLinksRegex, "g");
  277. var regexy = "^(?:http:\/\/.+?\\?)?(?:https?:\/\/)?(?:www\\.)?(?:" + totalourls + ")";
  278.  
  279. if (Do_not_linkify_DL_links)
  280. ikkeTilladteTags = ['a', 'head', 'script', 'style', 'title', 'option', 'iframe', 'textarea', 'span']; //tags, hvor det der stAΞ’Β¥r inden i ikke skal vAΞ’Β¦re links
  281. else
  282. ikkeTilladteTags = ['a', 'head', 'script', 'style', 'title', 'option', 'iframe', 'textarea']; //tags, hvor det der stAΞ’Β¥r inden i ikke skal vAΞ’Β¦re links
  283.  
  284. var regex = new RegExp(regexy);
  285. var textNode, muligtLink;
  286.  
  287. var path = "//text()[not(parent::" + ikkeTilladteTags.join(" or parent::") + ") and contains(.,'/')]";
  288. var textNodes = document.evaluate(path, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  289.  
  290. var i = textNodes.snapshotLength;
  291. while (i--)
  292. {
  293. textNode = textNodes.snapshotItem(i);
  294.  
  295. muligtLink = textNode.nodeValue; //all links on page
  296.  
  297. var myArray = null;
  298. var span = null;
  299. var lastLastIndex = 0;
  300. allLinksRegex.lastIndex = 0;
  301. while (myArray = allLinksRegex.exec(muligtLink)) //find all links
  302. {
  303. if (!regex.test(myArray[0])) //this link is not recognized
  304. {
  305. //uncomment to reproduce original behavior ("somethinghotfile.com/" => "hotfile.com/" will get linkified).
  306. //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/"
  307. //allLinksRegex.lastIndex -= (myArray[0].length - 1); //start next match at the next character, not after the link
  308. continue;
  309. }
  310. if (!span)
  311. span = document.createElement('span');
  312.  
  313. var link = myArray[0];
  314. span.appendChild(document.createTextNode(muligtLink.substring(lastLastIndex, myArray.index))); //inds?t det der kommer for dette hit
  315.  
  316. var $a = $("<a>" + link + "</a>")
  317. if (!link.match(/https?:\/\//))
  318. {
  319. link = 'http://' + link;
  320. }
  321.  
  322. $a.attr("href", link.replace(/\[\/hide:\w+\]/,""))
  323. .addClass("processing_link")
  324. .appendTo(span);
  325. lastLastIndex = allLinksRegex.lastIndex;
  326. }
  327. if (span)
  328. {
  329. span.appendChild(document.createTextNode(muligtLink.substring(lastLastIndex))); //ins?t det der kommer efter sidste hit
  330. textNode.parentNode.replaceChild(span, textNode);
  331. }
  332. }
  333. }
  334.  
  335. function add_WARLC_style()
  336. {
  337. if (!(document.getElementsByTagName('WARLC')[0]))
  338. {
  339. var meta_not_to_add_more_style = document.createElement("WARLC");
  340. meta_not_to_add_more_style.setAttribute('content', 'war_links_checker');
  341. meta_not_to_add_more_style.setAttribute('name', 'description');
  342. document.getElementsByTagName('head')[0].appendChild(meta_not_to_add_more_style);
  343. alive_link_png = "";
  344. adead_link_png = "";
  345. unava_link_png = "";
  346. prem_link_png = "";
  347. switch(Icon_set)
  348. {
  349. //no icons
  350. case 0: break;
  351. // cat paws
  352. case 1: alive_link_png = PAW_ICON_GREEN;
  353. adead_link_png = PAW_ICON_RED;
  354. unava_link_png = PAW_ICON_YELLOW;
  355. prem_link_png = PAW_ICON_PINK;
  356. break;
  357. // classic RSLC look
  358. case 2: alive_link_png = RSLC_ICON_GREEN;
  359. adead_link_png = RSLC_ICON_RED;
  360. unava_link_png = RSLC_ICON_YELLOW;
  361. prem_link_png = RSLC_ICON_PINK;
  362. break;
  363. // cat paws
  364. default:alive_link_png = PAW_ICON_GREEN;
  365. adead_link_png = PAW_ICON_RED;
  366. unava_link_png = PAW_ICON_YELLOW;
  367. prem_link_png = PAW_ICON_PINK;
  368. break;
  369. }
  370. processing_link_gif = 'data:image/gif;base64,' + // or temporary anavailable
  371. 'R0lGODlhCgAKAJEDAMzMzP9mZv8AAP///yH/C05FVFNDQVBFMi4wAwEAAAAh+QQFAAADACwAAAAACgAKAAACF5wncgaAGgJzJ647cWua4sOBFEd62VEAACH5BAUAAAMALAEAAAAIAAMAAAIKnBM2IoMDAFMQFAAh+QQFAAADACwAAAAABgAGAAACDJwHMBGofKIRItJYAAAh+QQFAAADACwAAAEAAwAIAAACChxgOBPBvpYQYxYAIfkEBQAAAwAsAAAEAAYABgAAAgoEhmPJHOGgEGwWACH5BAUAAAMALAEABwAIAAMAAAIKBIYjYhOhRHqpAAAh+QQFAAADACwEAAQABgAGAAACDJwncqi7EQYAA0p6CgAh+QQJAAADACwHAAEAAwAIAAACCpRmoxoxvQAYchQAOw%3D%3D';
  372.  
  373. var dead_color_css, live_color_css, unava_color_css, prem_color_css, black_background_css;
  374.  
  375. if (Color_DL_links)
  376. {
  377. dead_color_css = 'color:' + Dead_links_color + ' !important;';
  378. live_color_css = 'color:' + Live_links_color + ' !important;';
  379. unava_color_css = 'color:' + Temp_unavailable_links_color + ' !important;';
  380. container_color_css = 'color:' + Container_links_color + ' !important;';
  381. prem_color_css = 'color:' + Premium_links_color + ' !important;';
  382. }
  383. else
  384. {
  385. dead_color_css = live_color_css = unava_color_css = container_color_css = prem_color_css = '';
  386. }
  387.  
  388. if (Show_black_background_in_DL_links)
  389. {
  390. black_background_css = 'background-color: black !important;';
  391. }
  392. else
  393. {
  394. black_background_css = '';
  395. }
  396.  
  397. if (Show_line_through_in_dead_links)
  398. {
  399. line_through_css = 'text-decoration: line-through !important;';
  400. }
  401. else
  402. {
  403. line_through_css = '';
  404. }
  405.  
  406. GM_addStyle(".alive_link {background:transparent url(" + alive_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;" + live_color_css + black_background_css + "}");
  407. 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 + "}");
  408. GM_addStyle(".unava_link {background:transparent url(" + unava_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;" + unava_color_css + black_background_css + "}");
  409. GM_addStyle(".processing_link {background:transparent url(" + processing_link_gif + ") no-repeat scroll 100% 50%;padding-right:15px;" + container_color_css + black_background_css + "}");
  410. GM_addStyle(".container_link {background:transparent url(" + processing_link_gif + ") no-repeat scroll 100% 50%;padding-right:15px;" + container_color_css + black_background_css + "}");
  411. GM_addStyle(".container_list {font-size:90%; list-style-type:square; padding: 0px 5% 0px; margin: 0px}");
  412. GM_addStyle(".prem_link {background:transparent url(" + prem_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;" + prem_color_css + black_background_css + "}");
  413. }
  414. }
  415.  
  416. var warlcTooltip = null;
  417. var mouseoverLink = null; //link href with mouse cursor over it
  418.  
  419. var lastX = 0;
  420. var lastY = 0;
  421.  
  422. $(document).ready(initTooltip);
  423. //inits tooltip
  424. function initTooltip()
  425. { warlcTooltip = document.createElement("div");
  426. 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;");
  427. warlcTooltip.style.visibility = "hidden";
  428. document.body.appendChild(warlcTooltip);
  429. }
  430.  
  431. //"mousemove" event handler for all links
  432. function moveTooltip(event)
  433. {
  434. if ((Math.abs(lastX - event.clientX) + Math.abs(lastY - event.clientY)) < 6)
  435. { //no need to reflow if the cursor moved just a little
  436. return;
  437. }
  438. else
  439. {
  440. lastX = event.clientX;
  441. lastY = event.clientY;
  442. }
  443.  
  444. posX = event.clientX + window.pageXOffset + 10;
  445. posY = event.clientY + window.pageYOffset;
  446. var ttHeight = warlcTooltip.offsetHeight;
  447. var ttFreeSpace = window.innerHeight - event.clientY;
  448. if (ttHeight > ttFreeSpace)
  449. { //prevents tooltip from getting out of the window
  450. posY -= (ttHeight - (ttFreeSpace)) + 10;
  451. }
  452. else
  453. {
  454. posY += 7;
  455. }
  456. warlcTooltip.style.top = posY + "px";
  457. warlcTooltip.style.left = posX + "px";
  458. }
  459.  
  460. //"mouseout" event handler for all links
  461. function hideTooltip(){
  462. warlcTooltip.style.visibility = "hidden";
  463. mouseoverLink = null;
  464. }
  465.  
  466.  
  467. //"mouseover" event handler for dead links
  468. //displays tooltip error message on dead links
  469. function displayTooltipError()
  470. {
  471. mouseoverLink = this.href;
  472. this.addEventListener("mouseout", hideTooltip);
  473. this.addEventListener("mousemove", function(event) { moveTooltip(event); });
  474. warlcTooltip.innerHTML = '<b>LOADING...</b>';
  475. warlcTooltip.style.minWidth = 0;
  476. warlcTooltip.style.visibility = "visible";
  477. if (this.warlc_error) //an error message is already known and stored in warlc_error attribute
  478. {
  479. warlcTooltip.innerHTML = this.warlc_error;
  480. }
  481. else
  482. {
  483. loadErrorInfo(this);
  484. }
  485. function loadErrorInfo(link)
  486. {
  487. var href = link.href;
  488. href = href.replace(/quickshare\.cz\/.+/, "quickshare.cz/chyba");
  489. GM_xmlhttpRequest({
  490. method: 'GET',
  491. url: href.replace(Ref_anonymize_service, ""),
  492. headers: {
  493. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  494. 'Accept': 'text/xml',
  495. 'Referer': ""
  496. },
  497. onload: function(result) {
  498. var res = result.responseText;
  499. //TODO: errorRegexs -
  500. var errorRegexs = [ //generic error messages follow
  501. /(empty directory)/i,
  502. /(soubor nebyl nalezen)/i,
  503. /((?:file|page|link|folder)(?:is|not|does|has been|was| ){1,}(?:found|available|blocked|exists?|deleted|removed))/i,
  504. //server specific error messages follow
  505. /msg error" style="cursor: default">(.+?)<\/div>/, //sendspace
  506. /color:red;font\-weight:bold;border\-style:dashed;font-size:12px;border\-width:2px;><tr><td align=center>(.+?)<\/td>/, //fastshare
  507. /no_download_msg">\s*(.+?)<span/, //depositfiles
  508. /(Takový soubor neexistuje. Je možné, že byl již smazán.)/, //quickshare
  509. /file_info file_info_deleted">\s*<h1>(.+?)<\/h1>/, //filepost
  510. /<br \/>\s*<p style="color:#000">(.+?)<\/p>\s*<\/center>/, //letitbit
  511. /(?:error_div">|<\/h1><p>)<strong>(.+?)<\/strong>/, //share-rapid,quickshare
  512. /class="red">(.+?)<(?:span|br)>/, //czshare, megashares
  513. /class="wp640">\s*<h1 class="h1">(.+?)<\/h1>/, //uloz.to
  514. /not-found">\s*<p>(.+?)<\/p>/, //bayfiles
  515. /(Your file could not be found. Please check the download link.)/, //stahnu.to
  516. /error_msg">\s*(<h3>.+?<\/h3><ul>(.+?)<\/ul>)/, //edisk
  517. /id="obsah">\s*<h2>(.+?)<\/h2>/, //euroshare
  518. /error">\s*(?:<[bp]>)?\s*(.+?)<\/[bp]>/, //filesmonster, shragle, gigapeta
  519. ///center aC">\s*<h1>(.+?)<br \/>/, //uploaded.to
  520. /icon_err">\s*<h1>(.+?)<\/h1>/, //filejungle
  521. /Code: ER_NFF_\d+<\/h2>\s*(.+?)\s*<\/div>/, //netload
  522. /(File has been removed due to Copyright Claim)/, //filerio
  523. ];
  524. var errorIdx = errorRegexs.length;
  525. var error = "Cause of error: <b>unknown</b>";
  526. var errorCandidate = "";
  527. while(errorIdx--)
  528. {
  529. var errorCandidate = res.match(errorRegexs[errorIdx]);
  530. if (errorCandidate != null)
  531. {
  532. error = "Cause of error: <b>" + errorCandidate[1].replace(/&nbsp;/g," ") + "</b>";
  533. break;
  534. }
  535. }
  536. //link attributes
  537. link.warlc_error = error;
  538. if (mouseoverLink == link.href) //mouse cursor is still over the link
  539. {
  540. warlcTooltip.innerHTML = error;
  541. }
  542. }
  543. });
  544. }
  545. }
  546.  
  547. //"mouseover" event handler for alive links
  548. //displays tooltip info (file size, file name,...) on alive links
  549. function displayTooltipInfo()
  550. {
  551. mouseoverLink = this.href;
  552. //exclude direct download filehostings
  553. 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)/))
  554. {
  555. return;
  556. }
  557. this.addEventListener("mouseout", hideTooltip);
  558. this.addEventListener("mousemove", function(event) { moveTooltip(event); });
  559. warlcTooltip.innerHTML = '<b>LOADING...</b>';
  560. warlcTooltip.style.minWidth = 0;
  561. warlcTooltip.style.visibility = "visible";
  562. if (this.warlc_tooltipcache) //file size is already known and stored in warlc_filename and warlc_filesize attributes
  563. {
  564. warlcTooltip.innerHTML = this.warlc_tooltipcache;
  565. }
  566. else
  567. {
  568. loadInfo(this);
  569. }
  570. function loadInfo(link)
  571. {
  572. var href = link.href;
  573. href = href.replace(/.*rapidshare\.com\/files\/(\d+)\/(.+)/, 'http://api.rapidshare.com/cgi-bin/rsapi.cgi?sub=checkfiles&cbf=rapidshare_com&cbid=1&files=$1&filenames=$2');
  574. href = href.replace(/.*rapidshare\.com\/#!download\|\w+\|(\d+)\|([^|]+).*/, 'http://api.rapidshare.com/cgi-bin/rsapi.cgi?sub=checkfiles&cbf=rapidshare_com&cbid=1&files=$1&filenames=$2');
  575. GM_xmlhttpRequest({
  576. method: 'GET',
  577. url: href.replace(Ref_anonymize_service, ""),
  578. headers: {
  579. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  580. 'Accept': 'text/xml',
  581. 'Referer': ""
  582. },
  583. onload: function(result) {
  584. var res = result.responseText;
  585. var nameRegexs = [ /Filename: <b class="f_arial f_14px">(.+?)<\/b>/, //oron
  586. /(?:finfo|file[-_]?name)">\s*(.+?)<\/?(?:h1|a|div|span style|td)/, //hellshare, netload, badongo, 4fastfile
  587. /fl" title="(.+?)">/, //edisk
  588. /Celý název: <a href="http:\/\/czshare.com\/\d+\/\w+\/">(.+?)<\/a>/, //czshare
  589. /<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
  590. /<h3>Stahujete soubor: <\/h3>\s*<div class="textbox">(.+?)<\/div>/, //webshare
  591. /<h3><b><span style=color:black;>(.+?)<\/b><\/h3><br>/, //fastshare
  592. /title="download (.+?)">/, //sendspace
  593. /Stáhnout soubor: (.+?)<\/h1>/, //quickshare
  594. /fz24">Download:\s*<strong>(.+?)<\/strong>/, //crocko
  595. /\w+: <b>File Download<"(.+?)">/, //depositfiles
  596. /'file\-icon\d+ \w+'>(?:<\/span><span>)?(.+?)<\/span>/, //hitfile, turbobit
  597. /d0FileName = "(.+?)";/, //letitbit
  598. /file(?:_name|-info)" title="">\w+: <span>(.+?)<\/span>/, //vip-file, shareflare
  599. /rapidshare_com\(1,"\d+,([^,]+)/, //rapidshare
  600. /recent-comments"><h2>(.+) &nbsp;/, //xdisk
  601. /fname" value="(.+?)">/, //syfiles, grupload,
  602. /download\-header">\s*<h2>File:<\/h2>\s*<p title="(.+?)">/, //bayfiles
  603. /description">\s*<p><b>Soubor: (.+?)<\/b>/, //bezvadata
  604. /Complete name : (.+?)<br \/>/, //bezvadata
  605. /itemprop="name">(.+?)<\/span>/, //bezvadata
  606. ];
  607. var nameIdx = nameRegexs.length;
  608. // [sizeRegexs]
  609. // / \ \?
  610. // prefix (size) postfix
  611. // / \
  612. // val quant
  613. var quantRegex = '(?:M|G|K)?i?(?:B)(?:[y|i]te?s?)?';
  614. var valRegex = '\\d+(?:[\\., ]\\d+){0,2}'; // 111([., ]222)?([., ]333)?
  615. var uniSizeRegex = valRegex + '(?:\\s*|&nbsp;)' + quantRegex;
  616. var preSizeRegex = '(?::|\\(|>|>, | - )';
  617. var postSizeRegex = '(?:\\))?';
  618. var sizeRegexs = [ preSizeRegex + "\\s*(" + uniSizeRegex + ")\\s*" + postSizeRegex,
  619. 'rapidshare_com\\(1,"\\d+,[^,]+,(\\d+)', //rapidshare
  620. 'FileSize_master">(.+?)<\/strong>', //hellshare
  621. ];
  622. var sizeIdx = sizeRegexs.length;
  623. //
  624. //
  625. var tooltip = "File Name: <b>";
  626. var fileName = "unknown";
  627. var nameCandidate = "";
  628. while(nameIdx--)
  629. {
  630. var nameCandidate = res.match(nameRegexs[nameIdx]);
  631. if (nameCandidate != null)
  632. {
  633. fileName = nameCandidate[1].replace(/&nbsp;/g," ");
  634. break;
  635. }
  636. }
  637. tooltip += fileName + "</b><br>File Size: <b>";
  638. var fileSize = "unknown";
  639. var sizeCandidate = "";
  640. while(sizeIdx--)
  641. {
  642. sizeCandidate = res.match(new RegExp(sizeRegexs[sizeIdx], "i"));
  643. if (sizeCandidate != null)
  644. {
  645. fileSize = sizeCandidate[1].replace(/&nbsp;/g," ");
  646. if (/^\d+$/.test(fileSize) && fileSize >= 1024) //assume bytes
  647. {
  648. if(fileSize > (1<<30)) fileSize = Math.round(10 * fileSize / (1<<30)) / 10 + ' GB';
  649. else if(fileSize > (1<<20)) fileSize = Math.round(fileSize / (1<<20)) + ' MB';
  650. else fileSize = Math.round(fileSize / 1024) + ' KB';
  651. }
  652. break;
  653. }
  654. }
  655. tooltip += fileSize + "</b>";
  656. // PROTOTYPE
  657. // video thumbnails
  658. if (href.match('hellshare'))
  659. {
  660. var thumbs;
  661. thumbs = res.match(/http:\/\/static\d+\.helldata\.com\/thumbs(?:\/\d+){1,2}\/\d{1,2}"/g);
  662. if (thumbs)
  663. {
  664. tooltip += '<br>';
  665. var j = Math.min(thumbs.length, 9);
  666. for (var i = 0; i < j; i++)
  667. {
  668. tooltip += '<img src="' + thumbs[i].replace('"',"") + '" width="' + TOOLTIP_THUMBWIDTH + 'px">';
  669. }
  670. warlcTooltip.style.minWidth = TOOLTIP_MAXWIDTH;
  671. }
  672. }
  673. if (href.match('czshare'))
  674. {
  675. var thumbs;
  676. thumbs = res.match(/src="http:\/\/www(\d+)\.czshare\.com\/images_velke\/\d+\.(\d+)\.jpeg/);
  677. if (thumbs)
  678. {
  679. var thumbsServer = thumbs[1];
  680. var thumbsId = thumbs[2];
  681. tooltip += '<br>';
  682. for (var i = 1; i < 9; i++)
  683. {
  684. tooltip += '<img src="http://www' + thumbsServer + '.czshare.com/images_velke/' + i + '.' + thumbsId + '.jpeg" width="' + TOOLTIP_THUMBWIDTH + 'px">';
  685. }
  686. warlcTooltip.style.minWidth = TOOLTIP_MAXWIDTH;
  687. }
  688. }
  689. if (href.match('bezvadata'))
  690. {
  691. var thumbs;
  692. thumbs = res.match(/http:\/\/nahledy\.bezvadata\.cz\/nahledy\/\d+\/\d+\/\d+_\d+_\d+x\d+_\w.jpg/g);
  693. if (thumbs)
  694. {
  695. tooltip += '<br>';
  696. var j = Math.min(thumbs.length, 9);
  697. for (var i = 0; i < j; i++)
  698. {
  699. tooltip += '<img src="' + thumbs[i] + '" width="' + TOOLTIP_THUMBWIDTH + 'px">';
  700. }
  701. warlcTooltip.style.minWidth = TOOLTIP_MAXWIDTH;
  702. }
  703. }
  704. link.warlc_tooltipcache = tooltip;
  705. if (mouseoverLink == link.href) //mouse cursor is still over the link
  706. {
  707. warlcTooltip.innerHTML = tooltip;
  708. }
  709. }
  710. });
  711. }
  712. }
  713.  
  714. function setVariables()
  715. {
  716. if (firstRun)
  717. {
  718. GM_log('First run, applying default settings...');
  719. GM_setValue("Icon_set",1);
  720. GM_setValue("Display_tooltip_info",false);
  721. GM_setValue("Show_black_background_in_DL_links",false);
  722. GM_setValue("Show_line_through_in_dead_links",false);
  723. GM_setValue("Display_full_links_in_link_containers",false);
  724. GM_setValue("Allow_spaces_in_DL_links",false);
  725. GM_setValue("Autocheck",true);
  726. GM_setValue("Enable_Anonymizer",true);
  727. GM_setValue("Do_not_linkify_DL_links",false);
  728. GM_setValue("Show_progress_stats",true);
  729. GM_setValue("Keyboard_functions",true);
  730. GM_setValue("Obsolete_file_hosts",false);
  731. GM_setValue("Color_DL_links",true);
  732. GM_setValue("Live_links_color","Green");
  733. GM_setValue("Dead_links_color","#FF3300");
  734. GM_setValue("Temp_unavailable_links_color","#F7EF09");
  735. GM_setValue("Container_links_color","DarkKhaki");
  736. GM_setValue("Premium_links_color","DeepPink");
  737. GM_setValue("Ref_anonymize_service","http://hiderefer.com/?");
  738. GM_setValue("Custom_rules",false);
  739. GM_setValue("Custom_rules_text","");
  740. GM_setValue("First_run", false);
  741. }
  742. //hidden settings
  743. GM_setValue("Progress_box_pos_bottom", Progress_box_pos_bottom = GM_getValue("Progress_box_pos_bottom", 20));
  744. GM_setValue("Progress_box_pos_right", Progress_box_pos_right = GM_getValue("Progress_box_pos_right", 10));
  745. GM_setValue("Progress_box_opacity", Progress_box_opacity = GM_getValue("Progress_box_opacity", 85));
  746. GM_setValue("Progress_box_background_color", Progress_box_background_color = GM_getValue("Progress_box_background_color", 'DimGray'));
  747. GM_setValue("Progress_box_item_color", Progress_box_item_color = GM_getValue("Progress_box_item_color", '#FFFFCC'));
  748. GM_setValue("Progress_box_refresh_rate", Progress_box_refresh_rate = GM_getValue("Progress_box_refresh_rate", 2000));
  749. GM_setValue("Debug_mode", DEBUG_MODE = GM_getValue("Debug_mode", false));
  750. //hidden settings end
  751.  
  752. Icon_set = GM_getValue("Icon_set", 1); //0 - no icons, 1 - cat paws, 2 - old RSLC style
  753. Display_tooltip_info = GM_getValue("Display_tooltip_info", false);
  754. Show_black_background_in_DL_links = GM_getValue("Show_black_background_in_DL_links", false);
  755. Show_line_through_in_dead_links = GM_getValue("Show_line_through_in_dead_links", false);
  756. Display_full_links_in_link_containers = GM_getValue("Display_full_links_in_link_containers", false);
  757. Allow_spaces_in_DL_links = GM_getValue("Allow_spaces_in_DL_links", false);
  758. Autocheck = GM_getValue("Autocheck", true);
  759. Enable_Anonymizer = GM_getValue("Enable_Anonymizer", true);
  760. Do_not_linkify_DL_links = GM_getValue("Do_not_linkify_DL_links", false);
  761. Show_progress_stats = GM_getValue("Show_progress_stats", true);
  762. Keyboard_functions = GM_getValue("Keyboard_functions", true);
  763. Obsolete_file_hosts = GM_getValue("Obsolete_file_hosts", false);
  764. Color_DL_links = GM_getValue("Color_DL_links", true);
  765. Live_links_color = GM_getValue("Live_links_color", "Green");
  766. Dead_links_color = GM_getValue("Dead_links_color", "#FF3300");
  767. Temp_unavailable_links_color = GM_getValue("Temp_unavailable_links_color", "#F7EF09");
  768. Container_links_color = GM_getValue("Container_links_color", "DarkKhaki");
  769. Premium_links_color = GM_getValue("Premium_links_color", "DeepPink");
  770. Ref_anonymize_service = GM_getValue("Ref_anonymize_service", "http://hiderefer.com/?");
  771. Custom_rules = GM_getValue("Custom_rules", false);
  772. Custom_rules_text = GM_getValue("Custom_rules_text", false);
  773. }
  774.  
  775.  
  776. // Delinkifies the links
  777. // params:
  778. // links -> list of links or link components (note they should be sufficiently unique to identify the link on page,
  779. // e.g. 'uloz.to/xs68skxl8')
  780. function delinkifySnapshot(snapshot)
  781. {
  782. var n = snapshot.snapshotLength;
  783.  
  784. while (n--)
  785. {
  786. thisLink = snapshot.snapshotItem(n);
  787.  
  788. var spanElm = document.createElement("span");
  789. spanElm.className = thisLink.className;
  790. spanElm.innerHTML = thisLink.innerHTML;
  791.  
  792. if (Display_tooltip_info)
  793. {
  794. spanElm.href = thisLink.href;
  795. switch (thisLink.className){
  796. case "alive_link": spanElm.addEventListener("mouseover", displayTooltipInfo, false); break
  797. case "adead_link": spanElm.addEventListener("mouseover", displayTooltipError, false); break;
  798. case "unava_link": //reserved
  799. default:
  800. }
  801. }
  802. thisLink.parentNode.replaceChild(spanElm, thisLink);
  803. }
  804. }
  805.  
  806. function processContainers()
  807. {
  808. var redirectorTypes = { "HTTP_302": 0,
  809. "INNER_LINK": 1,
  810. "THELOO_KATT_IT": 2,
  811. "CING_BE": 3,
  812. "ADF_LY": 4};
  813. var cMultiloadTotal = 0;
  814. var cMultiloadProcessed = 0;
  815.  
  816. var cMirrorcreatorComTotal = 0;
  817. var cMirrorcreatorComProcessed = 0;
  818.  
  819. var hostRestrictionRegex = "";
  820. var multiloadComRestriction = "";
  821. var multiloadComRestrictionRegex;
  822.  
  823. //
  824. //HANDLING REDIRECTORS START
  825. //
  826.  
  827. var redirectors = new Array();
  828. initRedirectors();
  829.  
  830. var redirectorsCount = redirectors.length;
  831.  
  832. if (redirectorsCount > 0)
  833. {
  834. var allRedirectorsRegex = "";
  835.  
  836. //linkify redirector links
  837. for(var redirIdx = 0; redirIdx < redirectorsCount; redirIdx++)
  838. {
  839. allRedirectorsRegex += redirectors[redirIdx].linkRegex + "|";
  840. }
  841. allRedirectorsRegex = allRedirectorsRegex.replace(/\|$/, "");
  842. linkify(allRedirectorsRegex);
  843. //
  844. //process redirector links
  845. for(var redirIdx = 0; redirIdx < redirectorsCount; redirIdx++)
  846. {
  847. var redirectorsSnapshot = document.evaluate(redirectors[redirIdx].xpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  848. redirectors[redirIdx].cTotal = redirectorsSnapshot.snapshotLength;
  849.  
  850. cLinksTotal += redirectors[redirIdx].cTotal;
  851. var linkIdx = redirectors[redirIdx].cTotal;
  852.  
  853. while(linkIdx--)
  854. {
  855. switch(redirectors[redirIdx].type)
  856. {
  857. case redirectorTypes.HTTP_302: processRedirectorLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  858. case redirectorTypes.INNER_LINK: processRedirectorLinkEx(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  859. case redirectorTypes.THELOO_KATT_IT: processThelooKattItLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  860. case redirectorTypes.CING_BE: processCingBeLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  861. case redirectorTypes.ADF_LY: processAdfLyLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  862. default:
  863. }
  864. }
  865. }
  866. //
  867. }
  868.  
  869. //HTTP_302
  870. function processRedirectorLink(link, redirectorId)
  871. {
  872. link.className = 'container_link';
  873.  
  874. GM_xmlhttpRequest({
  875. method: 'HEAD',
  876. url: link.href,
  877. headers: {
  878. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  879. 'Accept': 'text/xml',
  880. 'Referer': ""
  881. },
  882. onload: function(result) {
  883. if (result.finalUrl.replace("https", "http") == link.href) // service hasn't redirected anywhere
  884. {
  885. processRedirectorLink(link, redirectorId);
  886. }
  887. else
  888. {
  889. redirectors[redirectorId].cProcessed++;
  890. link.href = result.finalUrl;
  891. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  892. checkLinks('container_link');
  893. }
  894. },
  895. onerror: function(result) { //probably caused by unresponsive filehosting
  896. redirectors[redirectorId].cProcessed++;
  897. link.className = 'unava_link';
  898. cLinksProcessed++;
  899. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  900. checkLinks('container_link');
  901. }
  902. });
  903. }
  904. //INNER_LINK
  905. function processRedirectorLinkEx(link, redirectorId)
  906. {
  907. link.className = 'container_link';
  908. GM_xmlhttpRequest({
  909. method: 'GET',
  910. url: link.href,
  911. headers: {
  912. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  913. 'Accept': 'text/xml',
  914. 'Referer': ""
  915. },
  916. onload: function(result) {
  917. link.href = result.responseText.match(redirectors[redirectorId].innerLinkRegex)[1];
  918. redirectors[redirectorId].cProcessed++;
  919. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  920. checkLinks('container_link');
  921. }
  922. });
  923. }
  924. //theloo.katt.it (wrapped safelinking.net)
  925. function processThelooKattItLink(link, redirectorId)
  926. {
  927. link.className = 'container_link';
  928. GM_xmlhttpRequest({
  929. method: 'GET',
  930. url: link.href,
  931. headers: {
  932. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  933. 'Accept': 'text/xml',
  934. 'Referer': ""
  935. },
  936. onload: function(result) {
  937. link.href = result.responseText.match(redirectors[redirectorId].innerLinkRegex)[1];
  938. redirectors[redirectorId].cProcessed++;
  939. //the inner links are safelinking.net links, so lets proceed with it
  940. if (GM_getValue("Check_safelinking_dot_net_links", false))
  941. {
  942. processRedirectorLink(link, 0);
  943. }
  944. }
  945. });
  946. }
  947. //adf.ly (adf.ly/go innerLink, locking mechanism)
  948. function processAdfLyLink(link, redirectorId)
  949. {
  950. link.className = 'container_link';
  951. GM_xmlhttpRequest({
  952. method: 'GET',
  953. url: link.href,
  954. headers: {
  955. 'User-agent': 'Mozilla/4.0',
  956. 'Accept': 'text/xml',
  957. 'Referer': ""
  958. },
  959. onload: function(result) {
  960. if (result.finalUrl.match('/locked/'))
  961. {
  962. var delay = result.responseText.match(/countdown">(\d+)</)[1];
  963. // GM_log(result.finalUrl + 'is locked. Repeating the request in ' + delay + 's.');
  964. // setTimeout(function(){processAdfLyLink(link, redirectorId);}, delay * 1000);
  965. }
  966. else
  967. {
  968. // GM_log('Processing... ' + link.href);
  969. // GM_log('Found...' + result.responseText.match(/\/go\/(\w+\/\w+)/)[1]);
  970. var directLink = 'http://adf.ly' + result.responseText.match(/(\/go\/\w+\/\w+)/)[1];
  971. var logToken = result.responseText.match(/flashy_(\w+)/)[1];
  972. var users = result.responseText.match(/user=\d+&user2=\d+/);
  973. //confirm advert
  974. GM_xmlhttpRequest(
  975. {
  976. method: 'POST',
  977. url: 'http://adf.ly/l.php',
  978. headers: {
  979. 'User-agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20100101 Firefox/13.0',
  980. 'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
  981. 'Referer': link.href
  982. },
  983. data: users + '&lt=' + logToken,
  984. onload: function(result) {
  985. //retrieve final url from .../go/... link
  986. GM_xmlhttpRequest({
  987. method: 'GET',
  988. url: directLink,
  989. headers: {
  990. 'User-agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20100101 Firefox/13.0',
  991. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  992. 'Referer': link.href
  993. },
  994. onload: function(result) {
  995. link.href = result.finalUrl;
  996. redirectors[redirectorId].cProcessed++;
  997. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  998. checkLinks('container_link');
  999. }
  1000. });
  1001. }
  1002. });
  1003. }
  1004. // try
  1005. // {
  1006. // GM_log('Processing... ' + link.href);
  1007. // GM_log('Found...' + result.responseText.match(/\/go\/(\w+\/\w+)/));
  1008. // link.href += 'http://adf.ly/go/' + result.responseText.match(/\/go\/(\w+\/\w+)/)[2];
  1009. // GM_xmlhttpRequest({
  1010. // method: 'POST',
  1011. // url: link.href,
  1012. // headers: {
  1013. // 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1014. // 'Accept': 'text/xml',
  1015. // 'Referer': ""
  1016. // },
  1017. // onload: function(result) {
  1018. // link.href = result.finalUrl;
  1019. // redirectors[redirectorId].cProcessed++;
  1020. // if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  1021. // checkLinks('container_link');
  1022. // }
  1023. // });
  1024. // }
  1025. // catch(e)
  1026. // {
  1027. // GM_log(link.href + " is LOCKED");
  1028. // the link is locked, repeat the request later
  1029. // setTimeout(function(){processAdfLyLink(link, redirectorId);}, 15000);
  1030. // }
  1031. }
  1032. });
  1033. function proceedOK()
  1034. {
  1035. }
  1036. }
  1037. //MULTILOAD.CZ START
  1038. if (GM_getValue("Check_multiload_dot_cz_links", false))
  1039. {
  1040. var mlRegex = 'multiload\\.cz\/stahnout\/\\d+\/';
  1041. var mlXpath = "//a[contains(@href,'http://www.multiload.cz/stahnout')]";
  1042.  
  1043. hostRestrictionRegex = 'Upload se nezdařil|limit exceeded|probíhá reupload|';
  1044.  
  1045. if (GM_getValue("Check_rapidshare_dot_com_links", false))
  1046. hostRestrictionRegex += 'rapidshare\\.com|';
  1047. if (GM_getValue("Check_hellshare_dot_com_links", false))
  1048. hostRestrictionRegex += 'hellshare|';
  1049. if (GM_getValue("Check_share_dash_rapid_dot_com_links", false))
  1050. hostRestrictionRegex += 'share-rapid\\.com|';
  1051. if (GM_getValue("Check_quickshare_dot_cz_links", false))
  1052. hostRestrictionRegex += 'quickshare\\.cz|';
  1053. if (GM_getValue("Check_czshare_dot_com_links", false))
  1054. hostRestrictionRegex += 'czshare\\.com|';
  1055. if (GM_getValue("Check_uloz_dot_to_links", false))
  1056. hostRestrictionRegex += 'uloz\\.to|';
  1057. if (GM_getValue("Check_hellspy_dot_com_links", false))
  1058. hostRestrictionRegex += 'hellspy|';
  1059. if (GM_getValue("Check_multishare_dot_cz_links", false))
  1060. hostRestrictionRegex += 'multishare\\.cz|';
  1061.  
  1062. hostRestrictionRegex = hostRestrictionRegex.replace(/\|$/, "");
  1063.  
  1064. linkify(mlRegex);
  1065.  
  1066. var mlSnapshot = document.evaluate(mlXpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  1067. var mlCount = mlSnapshot.snapshotLength;
  1068.  
  1069. if (mlCount > 0)
  1070. {
  1071. cMultiloadTotal += mlCount;
  1072.  
  1073. mlIdx = mlCount - 1;
  1074. do
  1075. {
  1076. processMultiloadLink(mlSnapshot.snapshotItem(mlIdx));
  1077. }
  1078. while(mlIdx--)
  1079. }
  1080. }
  1081. //MULTILOAD.CZ END
  1082.  
  1083.  
  1084.  
  1085. function processMultiloadLink(mlLink)
  1086. {
  1087. GM_xmlhttpRequest({
  1088. method: 'GET',
  1089. url: mlLink.href,
  1090. headers: {
  1091. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1092. 'Accept': 'text/xml',
  1093. 'Referer': ""
  1094. },
  1095. onload: function(result) {
  1096. var res = result.responseText;
  1097.  
  1098. var innerBlockRegex = /<p class="manager-linky">(?:.|\s)+?<\/p>/g;
  1099. 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;
  1100. var innerLinkRegex = /((?:Upload se nezdařil.+|https?:\/\/(?:.|\s)+|Právě probíhá reupload, buďte trpěliví\.\.\.))</;
  1101. var mlRestrictionRegex = new RegExp(hostRestrictionRegex,"g"); //what links should be displayed
  1102.  
  1103. var blocks; // blocks of links
  1104. var blockIdx;
  1105.  
  1106. mlLink.className = '';
  1107.  
  1108. if (result.status == 503) //service temporarily unavailable, repeat request in one second
  1109. {
  1110. setTimeout(function(){ processMultiloadLink(mlLink); }, 1000);
  1111. return;
  1112. }
  1113.  
  1114. blocks = res.match(innerBlockRegex);
  1115.  
  1116. if (blocks == null) //no links found, cancel further processing
  1117. {
  1118. mlLink.parentNode.appendChild(document.createTextNode(' | Požadovaný soubor neexistuje.'));
  1119. cMultiloadProcessed++;
  1120. if (cMultiloadTotal <= cMultiloadProcessed)
  1121. {
  1122. startBulkCheck('container_link');
  1123. start('container_link');
  1124. }
  1125. return;
  1126. }
  1127.  
  1128. blockIdx = blocks.length;
  1129.  
  1130. if (Display_full_links_in_link_containers)
  1131. {
  1132. var ulElm = document.createElement('ul');
  1133. ulElm.className = 'container_list'; //CSS smaller font, padding, margin, square style
  1134.  
  1135. while(blockIdx--)
  1136. {
  1137. if (blocks[blockIdx].match(mlRestrictionRegex) == null)
  1138. {
  1139. continue;
  1140. }
  1141.  
  1142. var innerLinks = blocks[blockIdx].match(innerLinksRegex);
  1143.  
  1144. var linkIdx = innerLinks.length;
  1145. while (linkIdx--)
  1146. {
  1147. var innerLink = innerLinks[linkIdx].match(innerLinkRegex)[1];
  1148.  
  1149. var liElm = document.createElement('li');
  1150.  
  1151. if (innerLink.match(/Upload se nezdařil|limit exceeded|probíhá reupload/))
  1152. {
  1153. liElm.appendChild(document.createTextNode(innerLink));
  1154. }
  1155. else
  1156. {
  1157. var aElm = document.createElement('a');
  1158. aElm.innerHTML = innerLink;
  1159. aElm.href = innerLink;
  1160. aElm.className = 'container_link';
  1161.  
  1162. liElm.appendChild(aElm);
  1163. }
  1164.  
  1165. ulElm.appendChild(liElm);
  1166. cLinksTotal++;
  1167. }
  1168. }
  1169.  
  1170. mlLink.parentNode.appendChild(ulElm);
  1171. }
  1172. else //compact view
  1173. {
  1174. mlLink.parentNode.appendChild(document.createTextNode("|"));
  1175.  
  1176. while(blockIdx--)
  1177. {
  1178. if (blocks[blockIdx].match(mlRestrictionRegex) == null)
  1179. {
  1180. continue;
  1181. }
  1182.  
  1183. var innerLinks = blocks[blockIdx].match(innerLinksRegex);
  1184.  
  1185. var linkIdx = innerLinks.length;
  1186. while (linkIdx--)
  1187. {
  1188. var innerLink = innerLinks[linkIdx].match(innerLinkRegex)[1];
  1189.  
  1190. if (innerLink.match(/Upload se nezdařil|limit exceeded|probíhá reupload/))
  1191. {
  1192. mlLink.parentNode.appendChild(document.createTextNode("----"));
  1193. }
  1194. else
  1195. {
  1196. var aElm = document.createElement('a');
  1197.  
  1198. var hostName = innerLink.match(/rapidshare|quickshare|hellshare|uloz\.to|multishare|hellspy|share\-rapid|czshare/);
  1199.  
  1200. //abbreviate host name
  1201. switch(hostName + ""){
  1202.  
  1203. case 'rapidshare': aElm.innerHTML = 'RS'; break;
  1204. case 'quickshare': aElm.innerHTML = 'QS'; break;
  1205. case 'hellshare': aElm.innerHTML = 'HS'; break;
  1206. case 'uloz.to': aElm.innerHTML = 'UT'; break;
  1207. case 'multishare': aElm.innerHTML = 'MS'; break;
  1208. case 'hellspy': aElm.innerHTML = 'hs'; break;
  1209. case 'share-rapid': aElm.innerHTML = 'SR'; break;
  1210. case 'czshare': aElm.innerHTML = 'CS'; break;
  1211. default: aElm.innerHTML = 'xx';
  1212.  
  1213. }
  1214.  
  1215. aElm.href = innerLink;
  1216. aElm.className = 'container_link';
  1217.  
  1218. mlLink.parentNode.appendChild(aElm);
  1219. cLinksTotal++;
  1220. }
  1221. }
  1222.  
  1223. mlLink.parentNode.appendChild(document.createTextNode("|")); //blocks delimiter
  1224.  
  1225. }
  1226. }
  1227.  
  1228. cMultiloadProcessed++;
  1229. if (cMultiloadTotal == cMultiloadProcessed) //start check when all ml links have been processed
  1230. {
  1231. if (Do_not_linkify_DL_links)
  1232. {
  1233. delinkifySnapshot(mlSnapshot);
  1234. }
  1235. startBulkCheck('container_link');
  1236. start('container_link');
  1237. }
  1238. }
  1239. });
  1240. }
  1241.  
  1242.  
  1243. if (GM_getValue("Check_mirrorcreator_dot_com_links", false))
  1244. {
  1245. var mcRegex = 'mirrorcreator\\.com/files/(\\w+)';
  1246. var mcXpath = "//a[contains(@href,'mirrorcreator.com/files')]";
  1247. var mcShortHostNames =
  1248. '?? 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';
  1249. // 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
  1250. //?????? depositfiles sendspace load.to ul.to storage.to uploadbox x7.to fileserve ?????? duckload filehook filepost jumbofiles glumbouploads
  1251. // rapidshare zshare ?????? 2shared uploading ugotfile extabit oron eyvx uploadstation putlocker
  1252. // megaupload badongo megashare gamefront ifile ?????? letitbit ?????? ?????? bitshare filejungle megashares
  1253. // easy-share ?????? netload zippyshare ?????? filesonic turbobit enterupload ?????? filekeen wupload crocko fileflyer
  1254.  
  1255. linkify(mcRegex);
  1256.  
  1257. var mcSnapshot = document.evaluate(mcXpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  1258. var mcCount = mcSnapshot.snapshotLength;
  1259.  
  1260. cMirrorcreatorComTotal = mcCount;
  1261.  
  1262. if (mcCount > 0)
  1263. {
  1264. mcShortHostNames = mcShortHostNames.split(' ');
  1265. mcIdx = mcCount;
  1266. while(mcIdx--)
  1267. processMirrorcreatorLink(mcSnapshot.snapshotItem(mcIdx));
  1268. }
  1269.  
  1270. }
  1271. //MIRRORCREATOR.CZ END
  1272.  
  1273.  
  1274. //mirrorcreator.com checking works like this:
  1275. //The base URL is http://www.mirrorcreator.com/files/XXXXXXXX/filename_links
  1276. //the actual list of mirrors is at http://www.mirrorcreator.com/status.php?uid=XXXXXXXX
  1277. //the list contains links in the form of (http://www.mirrorcreator.com)/redirect/XXXXXXXX/1
  1278. //these redirector links are extracted with mcLinkBlockRegex and the pages loaded
  1279. //they contain the actual filehost links, which are extracted with mcHostRegex and displayed in a container list
  1280. function processMirrorcreatorLink(mcLink)
  1281. {
  1282. var mcURL = mcLink.href.match(mcRegex);
  1283. if(!mcURL || !mcURL[1]) return;
  1284. mcURL = 'http://www.mirrorcreator.com/status.php?uid=' + mcURL[1]; //link correction
  1285. GM_xmlhttpRequest({
  1286. method: 'GET',
  1287. url: mcURL,
  1288. headers: {
  1289. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1290. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*'+'/*;q=0.8',
  1291. 'Referer': ""
  1292. },
  1293. onload: function(mcLinkResult) {
  1294. var mcLinkRes = mcLinkResult.responseText;
  1295.  
  1296. var mcLinkBlockRegex = /(\/redirect\/\w+\/(\d+))/gi;
  1297. var mcHostRegex = /<div id="redirectlink">.*?<a href="([^"]+)"/;
  1298.  
  1299. var mcRedirectors;
  1300. var mcHostURLs = [], mcRedirectorIDs = [], mcHostsFound = 0, mcHostsRetrieved = 0, mcHostsToProcess = 0;
  1301. var m = mcLinkRes.match(mcLinkBlockRegex);
  1302. if (m)
  1303. mcHostsFound = m.length;
  1304. else
  1305. { //no files inside container
  1306. processMirrorcreatorFoundHosts(mcLink, []);
  1307. return;
  1308. }
  1309.  
  1310. var mcRedirectorURL, idx, timedOut = false;
  1311.  
  1312. var gmxhrFunc = function(mcRedirectorURL){ //Tampermonkey doesn't know neither this.url or result.finalUrl
  1313. GM_xmlhttpRequest({
  1314. method: 'GET',
  1315. url: mcRedirectorURL,
  1316. headers: {
  1317. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1318. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*'+'/*;q=0.8',
  1319. 'Referer': ""
  1320. },
  1321. onload: function(mcHostResult) {
  1322. if (timedOut) return; //too late, the list is already displayed
  1323. var mcHostRes = mcHostResult.responseText;
  1324. var mcHost = mcHostRes.match(mcHostRegex);
  1325. idx = mcHostURLs.indexOf(mcRedirectorURL);
  1326. if (mcHost && idx!=-1)
  1327. {
  1328. mcHostURLs[idx] = mcHost[1].replace(/^\s+|\s+$/g, '');
  1329. mcHostsRetrieved++;
  1330. mcHostsToProcess++;
  1331. if (mcHostsFound == mcHostsRetrieved) //this is the last one!
  1332. {
  1333. processMirrorcreatorFoundHosts(mcLink, mcHostURLs, mcRedirectorIDs);
  1334. mcHostsToProcess = 0;
  1335. }
  1336. }
  1337. } //end of onload: function
  1338. }); //end of GM_xmlhttpRequest call
  1339. };//end of var gmxhrFunc
  1340.  
  1341. while (mcRedirectors = mcLinkBlockRegex.exec(mcLinkRes))
  1342. { //load individual redirector pages
  1343. mcRedirectorURL = 'http://www.mirrorcreator.com' + mcRedirectors[1];
  1344. mcHostURLs.push(mcRedirectorURL);
  1345. mcRedirectorIDs.push(mcRedirectors[2]);
  1346. gmxhrFunc(mcRedirectorURL);
  1347. } //end of while block
  1348.  
  1349. setTimeout(function(){ //in case the last page fails to load and call the function
  1350. timedOut = true;
  1351. if (mcHostsToProcess)
  1352. processMirrorcreatorFoundHosts(mcLink, mcHostURLs);
  1353. }, 60000);
  1354.  
  1355. } //end of onload function
  1356. }); //end of GM_xmlhttpRequest call
  1357. } //end of function processMirrorcreatorLink
  1358.  
  1359.  
  1360. function processMirrorcreatorFoundHosts(mcLink, mcHostURLs, mcRedirectorIDs)
  1361. {
  1362. var aEl, liEl, docFrag;
  1363. var hostName, mcRedirectorID, trimFilename = false;
  1364. var i = mcHostURLs.length;
  1365. if (i == 0)
  1366. {
  1367. trimFilename = true;
  1368. mcLink.parentNode.insertBefore(document.createTextNode(' | No files inside container'), mcLink.nextSibling);
  1369. }
  1370. else
  1371. {
  1372. if (Display_full_links_in_link_containers)
  1373. { //full view
  1374. var wrapperEl = document.createElement('span');
  1375. wrapperEl.style.display = 'block';
  1376. var ulistEl = document.createElement('ul');
  1377. ulistEl.className = 'container_list';
  1378. while (i--)
  1379. {
  1380. liEl = document.createElement('li');
  1381. aEl = document.createElement('a');
  1382. aEl.appendChild(document.createTextNode(mcHostURLs[i]));
  1383. aEl.href = mcHostURLs[i];
  1384. aEl.className = 'container_link';
  1385. liEl.appendChild(aEl);
  1386. ulistEl.appendChild(liEl);
  1387. }
  1388. wrapperEl.appendChild(ulistEl);
  1389. mcLink.parentNode.replaceChild(wrapperEl, mcLink);
  1390. wrapperEl.insertBefore(mcLink, wrapperEl.firstChild);
  1391. }
  1392. else
  1393. { //compact view
  1394. trimFilename = true;
  1395. docFrag = document.createDocumentFragment();
  1396. docFrag.appendChild(document.createTextNode(' |'));
  1397. while (i--)
  1398. {
  1399. mcRedirectorID = mcRedirectorIDs[i];
  1400. hostName = mcHostURLs[i];
  1401. if (mcRedirectorID > mcShortHostNames.length-1 || mcShortHostNames[mcRedirectorID] == '??')
  1402. hostName = hostName.replace(/https?:\/\/(?:www\.)?([-0-9a-z]+(?:\.[-0-9a-z]+)?)\.[a-z]+\/.*/i, '$1').toUpperCase();
  1403. else
  1404. hostName = mcShortHostNames[mcRedirectorID];
  1405. aEl = document.createElement('a');
  1406. aEl.href = mcHostURLs[i];
  1407. aEl.className = 'container_link';
  1408. aEl.appendChild(document.createTextNode(hostName));
  1409. docFrag.appendChild(aEl);
  1410. docFrag.appendChild(document.createTextNode('|'));
  1411. }
  1412. mcLink.parentNode.insertBefore(docFrag, mcLink.nextSibling);
  1413. } //end of else block
  1414. } //end of else block
  1415. mcLink.className = '';
  1416. if (trimFilename)
  1417. mcLink.firstChild.nodeValue = mcLink.firstChild.nodeValue.replace(/(https?:\/\/[^\/]+\/files\/\w+\/).+/, '$1...');
  1418. cMirrorcreatorComProcessed++;
  1419. if (cMirrorcreatorComProcessed == cMirrorcreatorComTotal) //start check when all mc links have been processed
  1420. {
  1421. if (Do_not_linkify_DL_links)
  1422. delinkifySnapshot(mcSnapshot);
  1423. startBulkCheck('container_link');
  1424. start('container_link');
  1425. }
  1426. } //end of function processMirrorcreatorFoundHosts
  1427.  
  1428. containers_processed = true;
  1429.  
  1430.  
  1431. function initRedirectors()
  1432. {
  1433. function addRedirector(linkRegex, xpathEx, redirType, innerLinkRegex)
  1434. {
  1435. var redirector = new Object();
  1436. redirector.linkRegex = linkRegex;
  1437. redirector.xpath = xpathEx; //xpath expression
  1438. redirector.cProcessed = 0; //processed links count
  1439. redirector.cTotal = 0; //total links count
  1440. redirector.type = redirType; //redirectorTypes enum
  1441. redirector.innerLinkRegex = innerLinkRegex; //innerLink, null if unused
  1442. redirectors.push(redirector);
  1443. }
  1444. if (GM_getValue("Check_safelinking_dot_net_links", false))
  1445. {
  1446. addRedirector(
  1447. 'safelinking\\.net\/d\/\\w+',
  1448. "//a[contains(@href,'safelinking.net/d/')]",
  1449. redirectorTypes.HTTP_302,
  1450. null);
  1451. }
  1452. if (GM_getValue("Check_linksafe_dot_me_links", false))
  1453. {
  1454. addRedirector(
  1455. 'linksafe\\.me\/d\/\\w+',
  1456. "//a[contains(@href,'linksafe.me/d/')]",
  1457. redirectorTypes.HTTP_302,
  1458. null);
  1459. }
  1460. if (GM_getValue("Check_linkto_dot_net_links", false))
  1461. {
  1462. addRedirector(
  1463. 'linkto\\.net\/\\?\\w+\\.\\d+',
  1464. "//a[contains(@href,'linkto.net/?')]",
  1465. redirectorTypes.INNER_LINK,
  1466. /<iframe id="iframe" name="iframe" src="(.+?)\s*" frameborder="0"/);
  1467. }
  1468. if (GM_getValue("Check_theloo_dot_katt_dot_it_links", false))
  1469. {
  1470. addRedirector(
  1471. '(?:the)?loo\\.katt\\.it\/\\w+',
  1472. "//a[contains(@href,'loo.katt.it/')]",
  1473. redirectorTypes.THELOO_KATT_IT,
  1474. /Proceed to URL - <a href="(.+?)">/);
  1475. }
  1476. if (GM_getValue("Check_madlink_dot_sk_links", false))
  1477. {
  1478. addRedirector(
  1479. 'madlink\\.sk\/\\w+',
  1480. "//a[contains(@href,'madlink.sk/')]",
  1481. redirectorTypes.INNER_LINK,
  1482. /name="url" value="(.+?)\s*"\/>/);
  1483. }
  1484. if (GM_getValue("Check_adf_dot_ly_links", false))
  1485. {
  1486. addRedirector(
  1487. '(?:adf\\.ly|[u9]\\.bb|[qj]\\.gs)\/\\w+',
  1488. "//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/')]",
  1489. redirectorTypes.ADF_LY,
  1490. null);
  1491. }
  1492. if (GM_getValue("Check_redi_dot_re_links", false))
  1493. {
  1494. addRedirector(
  1495. 'redi\\.re\/\\w+',
  1496. "//a[contains(@href,'redi.re/')]",
  1497. redirectorTypes.HTTP_302,
  1498. null);
  1499. }
  1500. if (GM_getValue("Check_bit_dot_ly_links", false))
  1501. {
  1502. addRedirector(
  1503. 'bit\\.ly\/\\w+',
  1504. "//a[contains(@href,'bit.ly/')]",
  1505. redirectorTypes.HTTP_302,
  1506. null);
  1507. }
  1508. }
  1509.  
  1510. }
  1511.  
  1512. var bulkHosts = new Array();
  1513. var bulkHostNames = new Array();
  1514. function initBulkCheck()
  1515. {
  1516. /////////////////////////////
  1517. // Inits filehost object
  1518. /////////////////////////////
  1519. // params :
  1520. // hostName -- [string] host name (multiple domains separated with coma)
  1521. // linkRegex -- [string] link regex
  1522. // xpath -- [string] xpath expression to detect the link objects with evaluate
  1523. // blockSize -- [integer] max. number of links sent in one request, 50 if null
  1524. // corrMatch -- [regex] link correction regex (match), applied prior to corrRepl
  1525. // corrReplWhat -- [regex] link correction regex (replace)
  1526. // corrReplWith -- [string]
  1527. // splitSeparator -- [string] POSTDATA links separator, "\r\n" if null
  1528. //
  1529. // apiUrl -- [string] web linkchecker or API URL
  1530. // postData -- [string] POSTDATA of xmlhttprequest
  1531. // resLinkRegex -- [regex]
  1532. // resLiveRegex -- [regex] matches substrings containing live links in the request response
  1533. // resDeadRegex -- [regex] matches substrings containing dead links in the request response
  1534. // resUnavaRegex -- [regex] matches substrings containing unava links in the request response
  1535. // func -- [function] bulkcheck handler, genBulkCheck if null
  1536. //
  1537. //////////////////////////////
  1538. function addHost(hostName, linkRegex, xpath, blockSize, corrMatch, corrReplWhat, corrReplWith, splitSeparator,
  1539. apiUrl, postData, resLinkRegex, resLiveRegex, resDeadRegex, resUnavaRegex, func)
  1540. {
  1541. var fileHost = new Object();
  1542.  
  1543. fileHost.linkRegex = linkRegex;
  1544. fileHost.linkRegexObject = new RegExp(linkRegex, "");
  1545. fileHost.xpath = xpath;
  1546. fileHost.cFound = 0; //found links counter
  1547. fileHost.links = new Array(); //found links
  1548. if (blockSize == null)
  1549. {
  1550. fileHost.blockSize = 50;
  1551. }
  1552. else
  1553. {
  1554. fileHost.blockSize = blockSize;
  1555. }
  1556. fileHost.corrMatch = corrMatch;
  1557. fileHost.corrReplWhat = corrReplWhat;
  1558. fileHost.corrReplWith = corrReplWith;
  1559. if (splitSeparator == null)
  1560. {
  1561. fileHost.splitSeparator = "\r\n";
  1562. }
  1563. else
  1564. {
  1565. fileHost.splitSeparator = splitSeparator;
  1566. }
  1567. fileHost.apiUrl = apiUrl;
  1568. fileHost.postData = postData;
  1569. fileHost.resLinkRegex = resLinkRegex;
  1570. fileHost.resLiveRegex = resLiveRegex;
  1571. fileHost.resDeadRegex = resDeadRegex;
  1572. fileHost.resUnavaRegex = resUnavaRegex;
  1573. if (func == null)
  1574. {
  1575. fileHost.func = genBulkCheck;
  1576. }
  1577. else
  1578. {
  1579. fileHost.func = func;
  1580. }
  1581. bulkHosts.push(fileHost);
  1582. var names = hostName.split(',');
  1583. var i = names.length;
  1584. while(i--)
  1585. {
  1586. bulkHostNames[names[i]] = fileHost;
  1587. }
  1588. }
  1589. var genType1 = [ "upthe.net", "dark-uploads.com",
  1590. "migahost.com", "rodfile.com", "downloadani.me",
  1591. "ok2upload.com", "rarefile.net",
  1592. "goldfile.eu", "space4file.com",
  1593. "vreer.com", "isavelink.com", "uploadic.com",
  1594. "ddlstorage.com", "filesabc.com", "sharebeast.com",
  1595. "sharebees.com", "180upload.com", "verzend.be",
  1596. "asixfiles.com", "zomgupload.com", "mlfat4arab.com", "movreel.com",
  1597. "4up.me", "fileupup.com", "share76.com",
  1598. "filebox.com", "file4safe.com", "upafile.com",
  1599. "filemac.com",
  1600. "idup.in", "novafile.com", "longfiles.com",
  1601. "potload.com", "bitupload.com",
  1602. "filesbb.com",
  1603. "uploadbaz.com"
  1604. ];
  1605. var genType2 = [ "prefiles.com", "queenshare.com", "coraldrive.net",
  1606. "filesega.com", "rockdizfile.com", "hulkload.com",
  1607. "filestay.com", "4savefile.com", "daj.to",
  1608. "upfile.biz", "kupload.org", "ifile.ws",
  1609. "uploadjet.net", "zooupload.com", "clouds.to", "247upload.com",
  1610. "filemates.com",
  1611. "tusfiles.net",
  1612. "amonshare.com", "edoc.com",
  1613. "filefolks.com", "filedefend.com",
  1614. "cyberlocker.ch", /*"upgrand.com",*/
  1615. "uploading4u.eu", "grupload.com", "filestrum.com", "fileuplo.de",
  1616. "upaj.pl", "fileking.co", "filedownloads.org",
  1617. "cepzo.com",
  1618. ];
  1619. //xfilesharing 1.0
  1620. function addGenericType1()
  1621. {
  1622. var i = genType1.length;
  1623. while(i--)
  1624. {
  1625. if (GM_getValue("Check_" + genType1[i].replace(/\./g, "_dot_").replace(/-/g, "_dash_") + "_links", false))
  1626. {
  1627. var regexSafe = genType1[i].replace(/\./g, "\\.").replace(/-/g, "\\-");
  1628. addHost(
  1629. genType1[i].match(/[\w-]+/)[0], //hostname
  1630. regexSafe + "\/\\w+", //linkregex
  1631. "//a[contains(@href,'" + genType1[i] + "/')]", //xpath
  1632. null, //blocksize
  1633. new RegExp("(http:\/\/(?:|www\\.)" + regexSafe + "\/\\w+)",""),//, //corrmatch
  1634. null, //corrreplwhat
  1635. null, //corrreplwith
  1636. null, //separator
  1637. "http://" + genType1[i] + "/checkfiles.html", //api url
  1638. "op=checkfiles&process=Check+URLs&list=", //postdata
  1639. new RegExp("(" + regexSafe + "\/\\w+)",""), //linkregex
  1640. new RegExp("green'>http:\/\/(?:|www\.)" + regexSafe + "\/\\w+","g"), //liveregex
  1641. new RegExp("red'>http:\/\/(?:|www\.)" + regexSafe + "\/\\w+","g"), //deadregex
  1642. new RegExp("orange'>http:\/\/(?:|www\.)" + regexSafe + "\/\\w+","g"), //unavaregex
  1643. null //function delegate
  1644. )
  1645. }
  1646. }
  1647. }
  1648. //xfilesharing 2.0
  1649. function addGenericType2()
  1650. {
  1651. var i = genType2.length;
  1652. while(i--)
  1653. {
  1654. if (GM_getValue("Check_" + genType2[i].replace(/\./g, "_dot_").replace(/-/g, "_dash_") + "_links", false))
  1655. {
  1656. var regexSafe = genType2[i].replace(/\./g, "\\.").replace(/-/g, "\\-");
  1657. addHost(
  1658. genType2[i].match(/[\w-]+/)[0], //hostname
  1659. regexSafe + "\/\\w+", //linkregex
  1660. "//a[contains(@href,'" + genType2[i] + "/')]", //xpath
  1661. null, //blocksize
  1662. new RegExp("(http:\/\/(?:|www\\.)" + regexSafe + "\/\\w+)",""),//, //corrmatch
  1663. null, //corrreplwhat
  1664. null, //corrreplwith
  1665. null, //separator
  1666. "http://www." + genType2[i] + "/?op=checkfiles", //api url
  1667. "op=checkfiles&process=Check+URLs&list=", //postdata
  1668. new RegExp("(" + regexSafe + "\/\\w+)",""), //linkregex
  1669. new RegExp(regexSafe + "\/\\w+.*?<\/td>\\s*<td style=\"color:green;\">","g"), //liveregex
  1670. new RegExp(regexSafe + "\/\\w+.*?<\/td>\\s*<td style=\"color:red;\">","g"), //deadregex
  1671. new RegExp(regexSafe + "\/\\w+.*?<\/td>\\s*<td style=\"color:orange;\">","g"), //unavaregex
  1672. null //function delegate
  1673. )
  1674. }
  1675. }
  1676. }
  1677. // TEMPLATE
  1678. // if (GM_getValue("Check__dot_com_links", false))
  1679. // {
  1680. // addHost(
  1681. // "", //hostname
  1682. // "", //linkregex
  1683. // "//a[contains(@href,'.com/')]", //xpath
  1684. // null, //blocksize
  1685. // null, //corrmatch
  1686. // null, //corrreplwhat
  1687. // null, //corrreplwith
  1688. // null, //separator
  1689. // "", //api url
  1690. // "", //postdata
  1691. // /()/, //linkregex
  1692. // //liveregex
  1693. // //deadregex
  1694. // //unavaregex
  1695. // null //function delegate
  1696. // )
  1697. // }
  1698. addGenericType1();
  1699. addGenericType2();
  1700. if (GM_getValue("Check_i_dash_filez_dot_com_links", false))
  1701. {
  1702. addHost(
  1703. "i-filez", //hostname
  1704. "i-filez\\.com\/downloads\/i\/\\d+\/f\/", //linkregex
  1705. "//a[contains(@href,'i-filez.com/downloads')]", //xpath
  1706. null, //blocksize
  1707. null, //corrmatch
  1708. null, //corrreplwhat
  1709. null, //corrreplwith
  1710. null, //separator
  1711. "http://i-filez.com/checkfiles", //api url
  1712. "send=Check&files=", //postdata
  1713. /(downloads\/i\/\d+)/, //linkregex
  1714. /http:\/\/i-filez\.com\/downloads\/i\/\d+\/f\/[\w\(\)\.]+<\/td><td><span class='active/g, //liveregex
  1715. /http:\/\/i-filez\.com\/downloads\/i\/\d+\/f\/[\w\(\)\.]+<\/td><td><span class='notfound/g, //deadregex
  1716. null, //unavaregex
  1717. null //function delegate
  1718. )
  1719. }
  1720. if (GM_getValue("Check_myvdrive_dot_com_links", false))
  1721. {
  1722. addHost(
  1723. "myvdrive,fileserving", //hostname
  1724. "(?:fileserving|myvdrive)\\.com\/files\/[\\w-]+", //linkregex
  1725. "//a[contains(@href,'fileserving.com/files') or contains(@href,'myvdrive.com/files')]", //xpath
  1726. null, //blocksize
  1727. null, //corrmatch
  1728. null, //corrreplwhat
  1729. null, //corrreplwith
  1730. null, //separator
  1731. "http://www.myvdrive.com/Public/linkchecker#", //api url
  1732. "links=", //postdata
  1733. /(?:fileserving|myvdrive)\.com\/(files\/\w+)/, //linkregex
  1734. /icon_file_check_valid"><\/span>\s*http:\/\/www\.(?:fileserving|myvdrive)\.com\/files\/[\w-]+/g, //liveregex
  1735. /icon_file_check_(?:removed|notvalid)"><\/span>\s*http:\/\/www\.(?:fileserving|myvdrive)\.com\/files\/[\w-]+/g, //deadregex
  1736. null, //unavaregex
  1737. null //function delegate
  1738. )
  1739. }
  1740. if (GM_getValue("Check_billionuploads_dot_com_links", false))
  1741. {
  1742. addHost(
  1743. "billionuploads,BillionUploads", //hostname
  1744. "(?:billionuploads|BillionUploads)\\.com\/\\w+", //linkregex
  1745. "//a[contains(@href,'billionuploads.com/') or contains(@href,'BillionUploads.com/')]", //xpath
  1746. null, //blocksize
  1747. /(http:\/\/(?:|www\.)billionuploads\.com\/\w+)/i, //corrmatch
  1748. null, //corrreplwhat
  1749. null, //corrreplwith
  1750. null, //separator
  1751. "http://billionuploads.com/checkfiles.html", //api url
  1752. "op=checkfiles&process=Check+URLs&list=", //postdata
  1753. /billionuploads\.com\/(\w+)/i, //linkregex
  1754. /green'>http:\/\/(?:|www\.)billionuploads\.com\/\w+/gi, //liveregex
  1755. /red'>http:\/\/(?:|www\.)billionuploads\.com\/\w+/gi, //deadregex
  1756. /orange'>http:\/\/(?:|www\.)billionuploads\.com\/\w+/gi, //unavaregex
  1757. null //function delegate
  1758. )
  1759. }
  1760. if (GM_getValue("Check_files2k_dot_eu_links", false))
  1761. {
  1762. addHost(
  1763. "files2k", //hostname
  1764. "files2k\\.eu\/\\w+", //linkregex
  1765. "//a[contains(@href,'files2k.eu/')]", //xpath
  1766. null, //blocksize
  1767. /(http:\/\/(?:|www\.)files2k\.eu\/\w+)/, //corrmatch
  1768. null, //corrreplwhat
  1769. null, //corrreplwith
  1770. null, //separator
  1771. "http://files2k.eu/?op=checkfiles", //api url
  1772. "op=checkfiles&process=Check+URLs&list=", //postdata
  1773. /(files2k\.eu\/\w+)/, //linkregex
  1774. /files2k\.eu\/\w+.*?<\/td><td style="color:green;">/g, //liveregex
  1775. /files2k\.eu\/\w+.*?<\/td><td style="color:red;">/g, //deadregex
  1776. /files2k\.eu\/\w+.*?<\/td><td style="color:orange;">/g, //unavaregex
  1777. null //function delegate
  1778. )
  1779. }
  1780. if (GM_getValue("Check_sharefiles_dot_co_links", false))
  1781. {
  1782. addHost(
  1783. "sharefiles", //hostname
  1784. "sharefiles\\.co\/\\w+", //linkregex
  1785. "//a[contains(@href,'sharefiles.co/')]", //xpath
  1786. null, //blocksize
  1787. /(https?:\/\/(?:|www\.)sharefiles\.co\/\w+)/, //corrmatch
  1788. null, //corrreplwhat
  1789. null, //corrreplwith
  1790. null, //separator
  1791. "http://sharefiles.co/?op=checkfiles", //api url
  1792. "op=checkfiles&process=Check+URLs&list=", //postdata
  1793. /(sharefiles\.co\/\w+)/, //linkregex
  1794. /green'>https?:\/\/(?:|www\.)sharefiles\.co\/\w+/g, //liveregex
  1795. /red'>https?:\/\/(?:|www\.)sharefiles\.co\/\w+/g, //deadregex
  1796. /orange'>https?:\/\/(?:|www\.)sharefiles\.co\/\w+/g, //unavaregex
  1797. null //function delegate
  1798. )
  1799. }
  1800. if (GM_getValue("Check_hackerbox_dot_org_links", false))
  1801. {
  1802. addHost(
  1803. "hackerbox", //hostname
  1804. "host\\.hackerbox\\.org\/\\w+", //linkregex
  1805. "//a[contains(@href,'host.hackerbox.org/')]", //xpath
  1806. null, //blocksize
  1807. /(http:\/\/host\.hackerbox\.org\/\w+)/, //corrmatch
  1808. null, //corrreplwhat
  1809. null, //corrreplwith
  1810. null, //separator
  1811. "http://host.hackerbox.org/checkfiles.html", //api url
  1812. "op=checkfiles&process=Check+URLs&list=", //postdata
  1813. /(host\.hackerbox\.org\/\w+)/, //linkregex
  1814. /green'>http:\/\/host\.hackerbox\.org\/\w+/g, //liveregex
  1815. /red'>http:\/\/host\.hackerbox\.org\/\w+/g, //deadregex
  1816. /orange'>http:\/\/host\.hackerbox\.org\/\w+/g, //unavaregex
  1817. null //function delegate
  1818. )
  1819. }
  1820. //if (GM_getValue("Check_ryushare_dot_com_links", false))
  1821. //{
  1822. //addHost(
  1823. //"ryushare", //hostname
  1824. //"ryushare\\.com\/\\w+", //linkregex
  1825. //"//a[contains(@href,'ryushare.com/')]", //xpath
  1826. //null, //blocksize
  1827. ///(http:\/\/(?:|www\.)ryushare\.com\/\w+)/, //corrmatch
  1828. //null, //corrreplwhat
  1829. //null, //corrreplwith
  1830. //null, //separator
  1831. //"http://ryushare.com/checkfiles.python", //api url
  1832. //"op=checkfiles&process=Check+URLs&list=", //postdata
  1833. ///(ryushare\.com\/\w+)/, //linkregex
  1834. ///green'>http:\/\/(?:|www\.)ryushare\.com\/\w+/g, //liveregex
  1835. ///red'>http:\/\/(?:|www\.)ryushare\.com\/\w+/g, //deadregex
  1836. ///orange'>http:\/\/(?:|www\.)ryushare\.com\/\w+/g, //unavaregex
  1837. //null //function delegate
  1838. //)
  1839. //}
  1840. if (GM_getValue("Check_hellshare_dot_com_links", false))
  1841. {
  1842. addHost(
  1843. "hellshare", //hostname
  1844. "(?:|download\\.(?:cz\\.|en\\.|sk\\.|)|www\\.)hellshare\\.(?:com|sk|cz|pl|hu|COM|SK|CZ|PL|HU)\/[\\w-\\.]+\/(?:[\\w-\\.]+\/|)\\d{5,}", //linkregex
  1845. "//a[contains(@href,'hellshare.')]", //xpath
  1846. 48, //blocksize
  1847. null, //corrmatch
  1848. null, //corrreplwhat
  1849. null, //corrreplwith
  1850. null, //separator
  1851. null, //api url
  1852. null, //postdata
  1853. null, //linkregex
  1854. null, //liveregex
  1855. null, //deadregex
  1856. null, //unavaregex
  1857. hellshareBulkCheck //function delegate
  1858. )
  1859. }
  1860. if (GM_getValue("Check_ncrypt_dot_in_links", false))
  1861. {
  1862. addHost(
  1863. "ncrypt", //hostname
  1864. "ncrypt\\.in\/folder\\-\\w+", //linkregex
  1865. "//a[contains(@href,'ncrypt.in/folder')]", //xpath
  1866. 100000, //blocksize
  1867. null, //corrmatch
  1868. null, //corrreplwhat
  1869. null, //corrreplwith
  1870. null, //separator
  1871. null,
  1872. null,
  1873. null,
  1874. null,
  1875. null,
  1876. null,
  1877. ncryptBulkCheck //function delegate
  1878. )
  1879. }
  1880. if (GM_getValue("Check_filepost_dot_com_links", false))
  1881. {
  1882. addHost(
  1883. "filepost,fp", //hostname
  1884. "(?:filepost\\.com\/files|fp\\.io)\/\\w+", //linkregex
  1885. "//a[contains(@href,'filepost.com/files/') or contains(@href,'fp.io/')]", //xpath
  1886. null, //blocksize
  1887. null, //corrmatch
  1888. null, //corrreplwhat
  1889. null, //corrreplwith
  1890. "\n", //separator
  1891. 'http://filepost.com/files/checker/?JsHttpRequest=0-xml',
  1892. 'urls=',
  1893. /\\\/files\\\/(\w+)/,
  1894. />http:\\\/\\\/filepost\.com\\\/files\\\/\w+(?:[^>]+>){5}(?:\\n|\\t)+<span class=\\"v\\"/g,
  1895. />http:\\\/\\\/filepost\.com\\\/files\\\/\w+(?:[^>]+>){5}(?:\\n|\\t)+<span class=\\"x\\"/g,
  1896. null,
  1897. null //function delegate
  1898. )
  1899. }
  1900. if (GM_getValue("Check_fiberupload_dot_net_links", false))
  1901. {
  1902. addHost(
  1903. "fiberupload", //hostname
  1904. "fiberupload\\.(?:com|net)\/\\w+", //linkregex
  1905. "//a[contains(@href,'fiberupload.')]", //xpath
  1906. null, //blocksize
  1907. /(http:\/\/(?:www\.)?fiberupload\.(?:com|net)\/\w+)/, //corrmatch
  1908. null, //corrreplwhat
  1909. null, //corrreplwith
  1910. null, //separator
  1911. 'http://fiberupload.net/?op=checkfiles',
  1912. 'op=checkfiles&list=',
  1913. /(fiberupload\.(?:com|net)\/\w+)/,
  1914. /'green'>http:\/\/(?:www\.)?fiberupload\.(?:com|net)\/\w+/g,
  1915. /'red'>http:\/\/(?:www\.)?fiberupload\.(?:com|net)\/\w+/g,
  1916. /'orange'>http:\/\/(?:www\.)?fiberupload\.(?:com|net)\/\w+/g,
  1917. null //function delegate
  1918. )
  1919. }
  1920. if (GM_getValue("Check_filesflash_dot_com_links", false))
  1921. {
  1922. addHost(
  1923. "filesflash", //hostname
  1924. "filesflash\\.com\/\\w+", //linkregex
  1925. "//a[contains(@href,'filesflash.com')]", //xpath
  1926. null, //blocksize
  1927. null, //corrmatch
  1928. /http:\/\//, //corrreplwhat
  1929. '', //corrreplwith
  1930. null, //separator
  1931. 'http://filesflash.com/checklinks.php',
  1932. 'submit=Go&links=',
  1933. /filesflash\.com\/(\w+)/,
  1934. /<td>filesflash\.com\/\w+<\/td>\s*<td>Available/g,
  1935. /<td>filesflash\.com\/\w+<\/td>\s*<td>(?:Invalid|Deleted|Expired|Banned)?<\/td>/g,
  1936. null,
  1937. null //function delegate
  1938. )
  1939. }
  1940. if (GM_getValue("Check_hitfile_dot_net_links", false))
  1941. {
  1942. addHost(
  1943. "hitfile", //hostname
  1944. "hitfile\\.net\/\\w+", //linkregex
  1945. "//a[contains(@href,'hitfile.net')]", //xpath
  1946. null, //blocksize
  1947. null, //corrmatch
  1948. null, //corrreplwhat
  1949. null, //corrreplwith
  1950. "\n", //separator
  1951. 'http://hitfile.net/linkchecker/check',
  1952. 'links_to_check=',
  1953. /^<td>(\w+)<\/td>/,
  1954. /<td>\w+<\/td>\s*<td>[^<]*<\/td>\s*<td style[^<]+<img.*?title="Existent"/g,
  1955. /<td>\w+<\/td>\s*<td>[^<]*<\/td>\s*<td style[^<]+<img.*?title="Deleted"/g,
  1956. null,
  1957. null //function delegate
  1958. )
  1959. }
  1960. if (GM_getValue("Check_jumbofiles_dot_com_links", false))
  1961. {
  1962. addHost(
  1963. "jumbofiles", //hostname
  1964. "jumbofiles\\.com\/\\w+", //linkregex
  1965. "//a[contains(@href,'jumbofiles.com/')]", //xpath
  1966. null, //blocksize
  1967. /(http:\/\/(?:|www\.)jumbofiles\.com\/\w+)/, //corrmatch
  1968. null, //corrreplwhat
  1969. null, //corrreplwith
  1970. null, //separator
  1971. "http://jumbofiles.com/checkfiles.html", //api url
  1972. "op=checkfiles&process=Check+URLs&list=", //postdata
  1973. /(jumbofiles\.com\/\w+)/, //linkregex
  1974. /blue'>http:\/\/(?:|www\.)jumbofiles\.com\/\w+/g, //liveregex
  1975. /red'>http:\/\/(?:|www\.)jumbofiles\.com\/\w+/g, //deadregex
  1976. /orange'>http:\/\/(?:|www\.)jumbofiles\.com\/\w+/g, //unavaregex
  1977. null //function delegate
  1978. )
  1979. }
  1980. if (GM_getValue("Check_edisk_dot_cz_links", false))
  1981. {
  1982. addHost(
  1983. "edisk", //hostname
  1984. "(?:(?:muj|data)\\d*\\.|)edisk\\.(?:cz|sk|eu)\/(?:|(?:cz|sk|en|pl)\/)", //linkregex
  1985. "//a[contains(@href,'edisk.')]", //xpath
  1986. null, //blocksize
  1987. null, //corrmatch
  1988. /edisk\.\w{2}\/(?:|\w{2}\/)stahni/, //corrreplwhat
  1989. 'edisk.cz/stahni', //corrreplwith
  1990. null, //separator
  1991. 'http://www.edisk.cz/zkontrolovat-odkazy',
  1992. 'submitBtn=Zkontrolovat&checkFiles=',
  1993. /((?:download|stahn(?:i|out-soubor))\/\d+)/,
  1994. /"ano"\/>\s*<\/td>\s*<td>\s*http:\/\/.+/g,
  1995. /"ne"\/>\s*<\/td>\s*<td>\s*http:\/\/.+/g,
  1996. null,
  1997. null //function delegate
  1998. )
  1999. }
  2000. if (GM_getValue("Check_bezvadata_dot_cz_links", false))
  2001. {
  2002. GM_xmlhttpRequest( //age check skip
  2003. {
  2004. method: 'POST',
  2005. url: 'http://bezvadata.cz/vyhledavani/souhlas-zavadny-obsah',
  2006. headers: {
  2007. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  2008. 'Content-type': 'application/x-www-form-urlencoded',
  2009. 'Referer': ""
  2010. }
  2011. });
  2012. addHost(
  2013. "bezvadata", //hostname
  2014. "(?:beta\\.|)bezvadata\.cz\/stahnout\/\\d+\\w+", //linkregex
  2015. "//a[contains(@href,'bezvadata.cz')]", //xpath
  2016. null, //blocksize
  2017. null, //corrmatch
  2018. null, //corrreplwhat
  2019. null, //corrreplwith
  2020. null, //separator
  2021. 'http://bezvadata.cz/nastroje/kontrola-odkazu?do=kontrolaOdkazuForm-submit',
  2022. 'zkontrolovat=Zkontrolovat&odkazy=',
  2023. /(bezvadata\.cz\/stahnout\/\d+)/,
  2024. /bezvadata\.cz\/stahnout\/.+?<\/td>\s*<td style="background-color: #d9ffb2/g,
  2025. /bezvadata\.cz\/stahnout\/.+?<\/td>\s*<td style="background-color: #ffb2b2/g,
  2026. null,
  2027. null //function delegate
  2028. )
  2029. }
  2030. if (GM_getValue("Check_megashare_dot_com_links", false))
  2031. {
  2032. addHost(
  2033. "megashare,MegaShare", //hostname
  2034. "(?:megashare|MegaShare)\\.com\/\\d+", //linkregex
  2035. "//a[contains(@href,'megashare.com') or contains(@href,'MegaShare.com')]", //xpath
  2036. 100000, //blocksize
  2037. null, //corrmatch
  2038. null, //corrreplwhat
  2039. null, //corrreplwith
  2040. null, //separator
  2041. null,
  2042. null,
  2043. null,
  2044. null,
  2045. null,
  2046. null,
  2047. megashareBulkCheck //function delegate
  2048. )
  2049. }
  2050. if (GM_getValue("Check_depositfiles_dot_com_links", false))
  2051. {
  2052. addHost(
  2053. "depositfiles,dfiles", //hostname
  2054. //"depositfiles\\.com\/(?:en\/|ru\/|de\/|es\/|pt\/|)files\/\\w+", //linkregex
  2055. //"(?:depositfiles\\.com|\\bdfiles\\.ru)\/(?:en\/|ru\/|de\/|es\/|pt\/|)files\/\\w+", //linkregex
  2056. "(?:depositfiles\\.(?:com|org)|\\bdfiles\\.(?:ru|eu))\/(?:en\/|ru\/|de\/|es\/|pt\/|)files\/\\w+", //linkregex
  2057. "//a[(contains(@href,'depositfiles.') or contains(@href,'dfiles.ru') or contains(@href,'dfiles.eu')) and contains(@href,'/files/')]", //xpath
  2058. 100000, //blocksize
  2059. null, //corrmatch
  2060. null, //corrreplwhat
  2061. null, //corrreplwith
  2062. null, //separator
  2063. null,
  2064. null,
  2065. null,
  2066. null,
  2067. null,
  2068. null,
  2069. depositfilesBulkCheck //function delegate
  2070. )
  2071. }
  2072. if (GM_getValue("Check_linkcrypt_dot_ws_links", false))
  2073. {
  2074. addHost(
  2075. "linkcrypt", //hostname
  2076. "linkcrypt\\.ws\/dir\/\\w+", //linkregex
  2077. "//a[contains(@href,'linkcrypt.ws/dir')]", //xpath
  2078. 100000, //blocksize
  2079. null, //corrmatch
  2080. null, //corrreplwhat
  2081. null, //corrreplwith
  2082. null, //separator
  2083. null,
  2084. null,
  2085. null,
  2086. null,
  2087. null,
  2088. null,
  2089. linkcryptBulkCheck //function delegate
  2090. )
  2091. }
  2092. if (GM_getValue("Check_linksave_dot_in_links", false))
  2093. {
  2094. addHost(
  2095. "linksave", //hostname
  2096. "linksave\\.in\/\\w+", //linkregex
  2097. "//a[contains(@href,'linksave.in')]", //xpath
  2098. 100000, //blocksize
  2099. null, //corrmatch
  2100. null, //corrreplwhat
  2101. null, //corrreplwith
  2102. null, //separator
  2103. null,
  2104. null,
  2105. null,
  2106. null,
  2107. null,
  2108. null,
  2109. linksaveBulkCheck //function delegate
  2110. )
  2111. }
  2112. if (GM_getValue("Check_videobb_dot_com_links", false))
  2113. {
  2114. addHost(
  2115. "videobb", //hostname
  2116. "videobb\\.com\/(?:video\/|watch_video\\.php\\?v=)\\w+", //linkregex
  2117. "//a[contains(@href,'videobb.com')]", //xpath
  2118. null, //blocksize
  2119. null, //corrmatch
  2120. /watch_video\.php\?v=/, //corrreplwhat
  2121. 'video/', //corrreplwith
  2122. null, //separator
  2123. 'http://www.videobb.com/link_checker.php',
  2124. 'links=',
  2125. /videobb\.com\/video\/(\w+)/,
  2126. /<td>http:\/\/(?:www\.|)videobb.com\/video\/\w+<\/td>\s+<td>.+?<\/td>\s+<td>\d+:\d+<\/td>\s+<td>Available/g,
  2127. /<td>http:\/\/(?:www\.|)videobb.com\/video\/\w+<\/td>\s+<td><\/td>\s+<td>N\/A<\/td>\s+<td>Not Available/g,
  2128. null,
  2129. null //function delegate
  2130. )
  2131. }
  2132. // if (GM_getValue("Check_bitshare_dot_com_links", false))
  2133. // {
  2134. // addHost(
  2135. // "bitshare", //hostname
  2136. // "bitshare\\.com\/(?:files\/|\\?f=)\\w+", //linkregex
  2137. // "//a[contains(@href,'bitshare.com')]", //xpath
  2138. // null, //blocksize
  2139. // null, //corrmatch
  2140. // null, //corrreplwhat
  2141. // null, //corrreplwith
  2142. // null, //separator
  2143. // 'http://bitshare.com/linkcheck.html',
  2144. // 'submit=Check&links=',
  2145. // /(bitshare\.com\/(?:files\/|\?f=)\w+)/,
  2146. // /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,
  2147. // /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,
  2148. // /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,
  2149. // null //function delegate
  2150. // )
  2151. // }
  2152. if (GM_getValue("Check_cramit_dot_in_links", false))
  2153. {
  2154. addHost(
  2155. "cramit,cramitin", //hostname
  2156. "cramit(?:\\.in|in\\.net)\/", //linkregex
  2157. "//a[contains(@href,'cramitin.net') or contains(@href,'cramit.in')]", //xpath
  2158. null, //blocksize
  2159. null, //corrmatch
  2160. null, //corrreplwhat
  2161. null, //corrreplwith
  2162. null, //separator
  2163. 'http://cramit.in/checkfiles.html',
  2164. 'op=checkfiles&process=CHECK+URL%27S&list=',
  2165. /(cramit(?:\.in|in\.net)\/\w+)/,
  2166. /green>http:\/\/(?:www\.|)cramit(?:\.in|in\.net)\/\w+/g,
  2167. /red'>http:\/\/(?:www\.|)cramit(?:\.in|in\.net)\/\w+/g,
  2168. /orange'>http:\/\/(?:www\.|)cramit(?:\.in|in\.net)\/\w+/g,
  2169. null //function delegate
  2170. )
  2171. }
  2172. if (GM_getValue("Check_turbobit_dot_net_links", false))
  2173. {
  2174. addHost(
  2175. "turbobit", //hostname
  2176. "turbobit\\.(?:net|pl)\/(?:\\w+\/|).+?\\.html", //linkregex
  2177. "//a[contains(@href,'turbobit.')]", //xpath
  2178. null, //blocksize
  2179. /(turbobit\.(?:net|pl)\/(?:\w+\/|).+?\.html)/, //corrmatch
  2180. null, //corrreplwhat
  2181. null, //corrreplwith
  2182. "\n", //separator
  2183. 'http://turbobit.net/linkchecker/csv',
  2184. 'links_to_check=',
  2185. /(turbobit\.(?:net|pl)\/\w+)/,
  2186. /turbobit\.(?:net|pl)\/.*?, 1/g,
  2187. /turbobit\.(?:net|pl)\/.*?, 0/g,
  2188. null,
  2189. null //function delegate
  2190. )
  2191. }
  2192. if (GM_getValue("Check_unextfiles_dot_com_links", false))
  2193. {
  2194. addHost(
  2195. "unextfiles", //hostname
  2196. "unextfiles\\.com\/(?:\\w+\/|).+?\\.html", //linkregex
  2197. "//a[contains(@href,'unextfiles.com/')]", //xpath
  2198. null, //blocksize
  2199. /(unextfiles\.com\/(?:\w+\/|).+?\.html)/, //corrmatch
  2200. null, //corrreplwhat
  2201. null, //corrreplwith
  2202. "\n", //separator
  2203. 'http://unextfiles.com/linkchecker/csv',
  2204. 'links_to_check=',
  2205. /(unextfiles\.com\/\w+)/,
  2206. /unextfiles\.com\/.*?, 1/g,
  2207. /unextfiles\.com\/.*?, 0/g,
  2208. null,
  2209. null //function delegate
  2210. )
  2211. }
  2212. if (GM_getValue("Check_filerio_dot_com_links", false))
  2213. {
  2214. addHost(
  2215. "filekeen,filerio", //hostname
  2216. //"file(?:keen|rio)\\.(?:com|in)\/\\w+\/.", //linkregex
  2217. "file(?:keen|rio)\\.(?:com|in)\/\\w+", //linkregex
  2218. "//a[contains(@href,'filekeen.com') or contains(@href,'filerio.')]", //xpath
  2219. null, //blocksize
  2220. null, //corrmatch
  2221. null, //corrreplwhat
  2222. null, //corrreplwith
  2223. null, //separator
  2224. 'http://filerio.in/checkfiles.html',
  2225. 'op=checkfiles&process=Check+URLs&list=',
  2226. /(file(?:keen|rio)\.(?:com|in)\/\w+)/,
  2227. /green'>http:\/\/(?:www\.|)file(?:keen|rio)\.(?:com|in)\/\w+/g,
  2228. /red'>http:\/\/(?:www\.|)file(?:keen|rio)\.(?:com|in)\/\w+/g,
  2229. /orange'>http:\/\/(?:www\.|)file(?:keen|rio)\.(?:com|in)\/\w+/g,
  2230. null //function delegate
  2231. )
  2232. }
  2233. if (GM_getValue("Check_share_dash_online_dot_biz_links", false))
  2234. {
  2235. addHost(
  2236. "share-online,egoshare", //hostname
  2237. "(?:share-online\\.biz|egoshare\\.com)\/(?:dl\/|download\\.php\\?id=)", //linkregex
  2238. "//a[contains(@href,'share-online.biz') or contains(@href,'egoshare.com')]", //xpath
  2239. null, //blocksize
  2240. /http:\/\/(?:www\.)?(?:share-online\.biz|egoshare\.com)\/d(?:l\/|ownload\.php\?id=)(\w+)/, //corrmatch
  2241. null, //corrreplwhat
  2242. null, //corrreplwith
  2243. "\n", //separator
  2244. 'http://api.share-online.biz/linkcheck.php',
  2245. 'links=',
  2246. /(\w+);(?:OK|NOTFOUND|DELETED)/,
  2247. /\w+;OK/g,
  2248. /\w+;(?:NOTFOUND|DELETED)/g,
  2249. null,
  2250. null //function delegate
  2251. )
  2252. }
  2253. if (GM_getValue("Check_quickshare_dot_cz_links", false))
  2254. {
  2255. addHost(
  2256. "quickshare", //hostname
  2257. "quickshare\\.cz\/stahnout-soubor\/\\d+", //linkregex
  2258. "//a[contains(@href,'quickshare.cz')]", //xpath
  2259. null, //blocksize
  2260. null, //corrmatch
  2261. null, //corrreplwhat
  2262. null, //corrreplwith
  2263. null, //separator
  2264. 'http://www.quickshare.cz/nastroje/link-checker',
  2265. 'linky=',
  2266. /quickshare\.cz\/stahnout-soubor\/(\d+(?::\w+)?)/,
  2267. /quickshare\.cz\/stahnout-soubor\/\d+(?::[\w\-.+$!*\/()\[\]\',~%?:@#&=\\]+)?\s*<\/a><\/td><td><img src="\/img\/ok\.gif/g,
  2268. /quickshare\.cz\/stahnout-soubor\/\d+(?::[\w\-.+$!*\/()\[\]\',~%?:@#&=\\]+)?\s*<\/td><td><img src="\/img\/nenalezeno\.gif/g,
  2269. null,
  2270. null //function delegate
  2271. )
  2272. }
  2273. if (GM_getValue("Check_multishare_dot_cz_links", false))
  2274. {
  2275. addHost(
  2276. "multishare", //hostname
  2277. "multishare\\.cz\/stahnout\/\\d+\/", //linkregex
  2278. "//a[contains(@href,'multishare.cz')]", //xpath
  2279. null, //blocksize
  2280. null, //corrmatch
  2281. null, //corrreplwhat
  2282. null, //corrreplwith
  2283. "\n", //separator
  2284. "http://www.multishare.cz/link-checker/", //api url
  2285. "akce=Ov%C4%9B%C5%99it+odkazy&linky=", //postdata
  2286. /(multishare\.cz\/stahnout\/\d+)/, //linkregex
  2287. /lnkch-ok\">.*?\s*<\/p>/g, //liveregex
  2288. /lnkch-del\">.*?\s*<\/p>/g, //deadregex
  2289. null, //unavaregex
  2290. null //function delegate
  2291. )
  2292. }
  2293. if (GM_getValue("Check_netload_dot_in_links", false))
  2294. {
  2295. addHost(
  2296. "netload", //hostname
  2297. "netload\\.in\/datei\\w{10}", //linkregex
  2298. "//a[contains(@href,'netload.in')]", //xpath
  2299. null, //blocksize
  2300. null, //corrmatch
  2301. null, //corrreplwhat
  2302. null, //corrreplwith
  2303. "\n", //separator
  2304. "http://api.netload.in/index.php?id=2", //api url
  2305. "send=Absenden&links=", //postdata
  2306. /(\w+);/, //linkregex
  2307. /\w{10,};.+?;.+?;online/g, //liveregex
  2308. /\w{10,};.+?;.+?;offline/g, //deadregex
  2309. null, //unavaregex
  2310. //netloadBulkCheck //function delegate //disabled on probation since 1.2.4.5
  2311. null //function delegate
  2312. )
  2313. }
  2314. if (GM_getValue("Check_rapidshare_dot_com_links", false))
  2315. {
  2316. addHost(
  2317. "rapidshare", //hostname
  2318. "(?:|rs\\w*\\.)rapidshare\\.com\/files\/\\d+\/", //linkregex
  2319. "//a[contains(@href,'rapidshare.com/files')]", //xpath
  2320. null, //blocksize
  2321. null, //corrmatch
  2322. null, //corrreplwhat
  2323. null, //corrreplwith
  2324. "\n", //separator
  2325. null, //api url
  2326. null, //postdata
  2327. null, //linkregex
  2328. null, //liveregex
  2329. null, //deadregex
  2330. null, //unavaregex
  2331. rapidshareBulkCheck //function delegate
  2332. )
  2333. }
  2334. if (GM_getValue("Check_mega_dot_co_dot_nz_links", false))
  2335. {
  2336. addHost(
  2337. "mega",
  2338. "mega\\.co\\.nz\/#!\\w+",
  2339. "//a[contains(@href,'mega.co.nz/')]",
  2340. 100000, //blocksize
  2341. null, //corrmatch
  2342. null, //corrreplwhat
  2343. null, //corrreplwith
  2344. null, //separator
  2345. null,
  2346. null,
  2347. null,
  2348. null,
  2349. null,
  2350. null,
  2351. megaBulkCheck //function delegate
  2352. )
  2353. }
  2354. if (GM_getValue("Check_nitrobits_dot_com_links", false))
  2355. {
  2356. addHost(
  2357. "nitrobits", //hostname
  2358. "nitrobits\\.com\/file\/\\w+", //linkregex
  2359. "//a[contains(@href,'nitrobits.com')]", //xpath
  2360. null, //blocksize
  2361. null, //corrmatch
  2362. null, //corrreplwhat
  2363. null, //corrreplwith
  2364. "\n", //separator
  2365. "http://nitrobits.com/linkchecker.php", //api url
  2366. "links=", //postdata
  2367. /nitrobits\.com\/(file\/\w+)/, //linkregex
  2368. /http:\/\/nitrobits\.com\/file\/[^<]+<\/td>\s*<td class="status(?: colored)?">\s*<span class="available/g, //liveregex
  2369. /http:\/\/nitrobits\.com\/file\/[^<]+<\/td>\s*<td class="status(?: colored)?">\s*<span class="dead/g, //deadregex
  2370. null, //unavaregex
  2371. null //function delegate
  2372. )
  2373. }
  2374. //the same as GenType2, except api url is 'https://' instead of 'http://www.' and corrmatch is not??? needed
  2375. if (GM_getValue("Check_fileparadox_dot_in_links", false))
  2376. {
  2377. addHost(
  2378. "fileparadox", //hostname
  2379. "fileparadox\\.in\/\\w+", //linkregex
  2380. "//a[contains(@href,'fileparadox.in')]", //xpath
  2381. null, //blocksize
  2382. null, // /(https?:\/\/(?:|www\\.)fileparadox\.in\/\\w+)/, //corrmatch
  2383. null, //corrreplwhat
  2384. null, //corrreplwith
  2385. null, //separator
  2386. "https://fileparadox.in/?op=checkfiles", //api url
  2387. "op=checkfiles&process=Check+URLs&list=", //postdata
  2388. new RegExp("(fileparadox\\.in\/\\w+)",""), //linkregex
  2389. new RegExp("fileparadox\\.in\/\\w+.*?<\/td>\\s*<td style=\"color:green;\">","g"), //liveregex
  2390. new RegExp("fileparadox\\.in\/\\w+.*?<\/td>\\s*<td style=\"color:red;\">","g"), //deadregex
  2391. new RegExp("fileparadox\\.in\/\\w+.*?<\/td>\\s*<td style=\"color:orange;\">","g"), //unavaregex
  2392. null //function delegate
  2393. )
  2394. }
  2395. if (GM_getValue("Check_extabit_dot_com_links", false))
  2396. {
  2397. addHost(
  2398. "extabit", //hostname
  2399. "extabit\\.com\/file\/\\w+", //linkregex
  2400. "//a[contains(@href,'extabit.com')]", //xpath
  2401. null, //blocksize
  2402. null, //corrmatch
  2403. null, //corrreplwhat
  2404. null, //corrreplwith
  2405. "\n", //separator
  2406. "http://extabit.com/linkchecker.jsp", //api url
  2407. "url=", //postdata
  2408. /extabit\.com\/(file\/\w+)/, //linkregex
  2409. /extabit\.com\/file\/\w+\/[^<]+<\/a><\/td>\s*<td class="status"><span class="status_green">/g, //liveregex
  2410. /extabit\.com\/file\/\w+\/[^<]+<\/a><\/td>\s*<td class="status"><span class="status_red">/g, //deadregex
  2411. /extabit\.com\/file\/\w+\/[^<]+<\/a><\/td>\s*<td class="status"><span class="status_yellow">/g, //unavaregex
  2412. extabitBulkCheck //function delegate
  2413. )
  2414. }
  2415. if (GM_getValue("Check_junocloud_dot_me_links", false))
  2416. {
  2417. addHost(
  2418. "junocloud", //hostname
  2419. "junocloud\\.me\/\\w+", //linkregex
  2420. "//a[contains(@href,'junocloud.me')]", //xpath
  2421. null, //blocksize
  2422. null, //corrmatch
  2423. null, //corrreplwhat
  2424. null, //corrreplwith
  2425. "\n", //separator
  2426. "http://junocloud.me/checkfiles.html", //api url
  2427. "op=checkfiles&process=Check+URLs&list=", //postdata
  2428. /(junocloud\.me\/\w+)/, //linkregex
  2429. /<a href="http:\/\/junocloud\.me\/\w+[^<]+<\/a>\s*<span style="color: green/g, //liveregex
  2430. /<a href="http:\/\/junocloud\.me\/\w+[^<]+<\/a>\s*<span style="color: red/g, //deadregex
  2431. null, //unavaregex
  2432. null //function delegate
  2433. )
  2434. }
  2435. if (GM_getValue("Check_webshare_dot_cz_links", false))
  2436. {
  2437. addHost(
  2438. "webshare", //hostname
  2439. "webshare\.cz\/(?:(?:#/)?file/\\w+|\\w+-.*)", //linkregex
  2440. "//a[contains(@href,'webshare.cz')]", //xpath
  2441. 100000, //blocksize
  2442. null, //corrmatch
  2443. null, //corrreplwhat
  2444. null, //corrreplwith
  2445. null, //separator
  2446. null, //api url
  2447. null, //postdata
  2448. null, //linkregex
  2449. null, //liveregex
  2450. null, //deadregex
  2451. null, //unavaregex
  2452. webshareBulkCheck //function delegate
  2453. )
  2454. }
  2455. /////////////////////////////
  2456. // Common function delegate to send links to get checked by host linkchecker
  2457. /////////////////////////////
  2458. // If you define a new delegate, you may use following properties
  2459. // this.links [array] array of strings (link blocks). The links in each block separated with host.splitSeparator.
  2460. // this.apiUrl [string] API or web linkchecker URL
  2461. // this.postData [string] POSTDATA for POST request
  2462. // this.resLiveRegex [regex] matches live substrings in the request response
  2463. // this.resDeadRegex [regex] matches dead substrings in the request response
  2464. // this.resUnavaRegex [regex] matches unava substrings in the request response (the regex is often null!)
  2465. //
  2466. // this.resLinkRegex [regex] matches links further passed to DisplayTheCheckedLinks
  2467. //
  2468. // See the code below for standard bulkcheck handling reference.
  2469. //////////////////////////////
  2470. function genBulkCheck()
  2471. {
  2472. var blockIdx = this.links.length;
  2473. while (blockIdx--)
  2474. {
  2475. postRequest(this.apiUrl, this.postData, this.links[blockIdx],
  2476. this.resLinkRegex, this.resLiveRegex, this.resDeadRegex, this.resUnavaRegex);
  2477. }
  2478. function postRequest(api, postData, links, linkRegex, liveRegex, deadRegex, unavaRegex)
  2479. {
  2480. GM_xmlhttpRequest(
  2481. {
  2482. method: 'POST',
  2483. url: api,
  2484. headers: {
  2485. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  2486. 'Content-type': 'application/x-www-form-urlencoded',
  2487. 'Referer': api,
  2488. 'X-Requested-With': 'XMLHttpRequest'
  2489. },
  2490. data: postData + encodeURIComponent(links),
  2491. onload: function (result)
  2492. {
  2493. var res = result.responseText;
  2494. // GM_log(res);
  2495. var i;
  2496.  
  2497. var livelinks = res.match(liveRegex);
  2498. var deadlinks = res.match(deadRegex);
  2499. // GM_log(livelinks);
  2500. // GM_log(deadlinks);
  2501. if (livelinks != null)
  2502. {
  2503. i = livelinks.length - 1;
  2504. do
  2505. {
  2506. livelinks[i] = livelinks[i].match(linkRegex)[1];
  2507. }
  2508. while (i--);
  2509. DisplayTheCheckedLinks(livelinks, 'alive_link');
  2510. }
  2511.  
  2512. if (deadlinks != null)
  2513. {
  2514. i = deadlinks.length - 1;
  2515. do
  2516. {
  2517. deadlinks[i] = deadlinks[i].match(linkRegex)[1];
  2518. }
  2519. while (i--);
  2520. DisplayTheCheckedLinks(deadlinks, 'adead_link');
  2521. }
  2522.  
  2523. if (unavaRegex != null)
  2524. {
  2525. var unavalinks = res.match(unavaRegex);
  2526. if (unavalinks)
  2527. {
  2528. i = unavalinks.length - 1;
  2529. do
  2530. {
  2531. unavalinks[i] = unavalinks[i].match(linkRegex)[1];
  2532. }
  2533. while (i--);
  2534. DisplayTheCheckedLinks(unavalinks, 'unava_link');
  2535. }
  2536. }
  2537. }
  2538. });
  2539. }
  2540. }
  2541. //specialized bulkchecking handlers follow
  2542. function webshareBulkCheck()
  2543. {
  2544. var arr = this.links[0].split("\r\n");
  2545. var i = arr.length;
  2546. while(i--)
  2547. {
  2548. postRequest(arr[i]);
  2549. }
  2550. //function postRequest(api, postData, links, linkRegex, liveRegex, deadRegex, unavaRegex)
  2551. function postRequest(wsLink)
  2552. {
  2553. var id = wsLink.match(/webshare\.cz\/(?:(?:#\/)?file\/)?(\w+)/)[1];
  2554. GM_xmlhttpRequest(
  2555. {
  2556. method: 'POST',
  2557. url: "http://webshare.cz/api/file_info/",
  2558. headers: {
  2559. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  2560. 'Content-type': 'application/x-www-form-urlencoded',
  2561. 'Referer': "",
  2562. },
  2563. data: "wst=&ident=" + id,
  2564. onload: function (result)
  2565. {
  2566. var res = result.responseText;
  2567. if (res.match(/<name>.+?<\/name>/))
  2568. {
  2569. DisplayTheCheckedLinks([id], 'alive_link');
  2570. }
  2571. else
  2572. {
  2573. DisplayTheCheckedLinks([id], 'adead_link');
  2574. }
  2575. }
  2576. });
  2577. }
  2578. }
  2579. //like genBulkCheck, but extabit linkchecker only works when logged in. If not logged in, non-bulk checking has to be used.
  2580. //extabit also doesn't like requests in fast succession, so some delays are added.
  2581. function extabitBulkCheck()
  2582. {
  2583. var timeoutDelay = 0;
  2584. var blockIdx = this.links.length;
  2585. while (blockIdx--)
  2586. {
  2587. postRequest(this.apiUrl, this.postData, this.links[blockIdx],
  2588. this.resLinkRegex, this.resLiveRegex, this.resDeadRegex, this.resUnavaRegex);
  2589. }
  2590. function postRequest(api, postData, links, linkRegex, liveRegex, deadRegex, unavaRegex)
  2591. {
  2592. GM_xmlhttpRequest(
  2593. {
  2594. method: 'POST',
  2595. url: api,
  2596. headers: {
  2597. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  2598. 'Content-type': 'application/x-www-form-urlencoded',
  2599. 'Referer': api,
  2600. 'X-Requested-With': 'XMLHttpRequest'
  2601. },
  2602. data: postData + encodeURIComponent(links),
  2603. onload: function (result)
  2604. {
  2605. var res = result.responseText;
  2606. if (/id="registration_header"/.test(res)) //not logged in, have to use non-bulk
  2607. {
  2608. function geturlfunc(link, tryID) //basically the geturl function with some changes (compacted, displaythecheckedlinkS, multiple tries)
  2609. {
  2610. //GM_log(tryID + ': ' + link);
  2611. GM_xmlhttpRequest(
  2612. {
  2613. method: 'GET',
  2614. url: link,
  2615. 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': ""},
  2616. onload: function(result2)
  2617. {
  2618. var res2 = result2.responseText;
  2619. var res2Status = result.status;
  2620. if (/download-file-btn/.test(res2)) {DisplayTheCheckedLinks([link], 'alive_link'); return;}
  2621. if (/Search mirrors|id="mirrb"/.test(res2) || res2Status==404) {DisplayTheCheckedLinks([link], 'adead_link'); return;}
  2622. if (/currently unavailable|temporarily unavailable|disponible en estos momentos|vorläufig unerreichbar|Файл временно недоступен/.test(res2) || res2Status == 500 || res2Status == 503)
  2623. {
  2624. if (tryID < 7)
  2625. setTimeout(function(){geturlfunc(link,tryID+1)}, tryID * 1000 + (Math.random() * tryID * 2000));
  2626. else
  2627. {DisplayTheCheckedLinks([link], 'unava_link'); return;}
  2628. }
  2629. }
  2630. });
  2631. }
  2632. //split the hrefs and check them one by one
  2633. GM_log('Using slow extabit.com link checking. Log in to extabit to use fast bulk checking.');
  2634. links = links.split('\n');
  2635. var i = links.length;
  2636. while (i--)
  2637. {
  2638. if (links[i])
  2639. {
  2640. (function(i){setTimeout(function(){geturlfunc(links[i],1)}, timeoutDelay);})(i);
  2641. timeoutDelay += 500;
  2642. }
  2643. }
  2644. return;
  2645. }
  2646. // GM_log(res);
  2647. var i;
  2648.  
  2649. var livelinks = res.match(liveRegex);
  2650. var deadlinks = res.match(deadRegex);
  2651. // GM_log(livelinks);
  2652. // GM_log(deadlinks);
  2653. if (livelinks != null)
  2654. {
  2655. i = livelinks.length - 1;
  2656. do
  2657. {
  2658. livelinks[i] = livelinks[i].match(linkRegex)[1];
  2659. }
  2660. while (i--);
  2661. DisplayTheCheckedLinks(livelinks, 'alive_link');
  2662. }
  2663.  
  2664. if (deadlinks != null)
  2665. {
  2666. i = deadlinks.length - 1;
  2667. do
  2668. {
  2669. deadlinks[i] = deadlinks[i].match(linkRegex)[1];
  2670. }
  2671. while (i--);
  2672. DisplayTheCheckedLinks(deadlinks, 'adead_link');
  2673. }
  2674.  
  2675. if (unavaRegex != null)
  2676. {
  2677. var unavalinks = res.match(unavaRegex);
  2678. if (unavalinks)
  2679. {
  2680. i = unavalinks.length - 1;
  2681. do
  2682. {
  2683. unavalinks[i] = unavalinks[i].match(linkRegex)[1];
  2684. }
  2685. while (i--);
  2686. DisplayTheCheckedLinks(unavalinks, 'unava_link');
  2687. }
  2688. }
  2689. }
  2690. });
  2691. }
  2692. }
  2693. function netloadBulkCheck()
  2694. {
  2695. var blockIdx = this.links.length;
  2696.  
  2697. while (blockIdx--)
  2698. {
  2699. postRequest(this.apiUrl, this.postData, this.links[blockIdx],
  2700. this.resLinkRegex, this.resLiveRegex, this.resDeadRegex, this.unavaRegex);
  2701. }
  2702. function postRequest(api, postData, links, linkRegex, liveRegex, deadRegex, unavaRegex)
  2703. {
  2704. GM_xmlhttpRequest(
  2705. {
  2706. method: 'POST',
  2707. url: api,
  2708. headers: {
  2709. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  2710. 'Content-type': 'application/x-www-form-urlencoded',
  2711. 'Referer': ""
  2712. },
  2713. data: postData + encodeURIComponent(links),
  2714. onload: function (result)
  2715. {
  2716. var res = result.responseText;
  2717. var i;
  2718.  
  2719. var livelinks = res.match(liveRegex);
  2720. var deadlinks = res.match(deadRegex);
  2721. // GM_log(livelinks);
  2722. // GM_log(deadlinks);
  2723. if (livelinks != null)
  2724. {
  2725. i = livelinks.length - 1;
  2726. do
  2727. {
  2728. recheckLink(livelinks[i].match(linkRegex)[1]);
  2729. }
  2730. while(i--);
  2731. }
  2732.  
  2733. if (deadlinks != null)
  2734. {
  2735. i = deadlinks.length - 1;
  2736. do
  2737. {
  2738. deadlinks[i] = deadlinks[i].match(linkRegex)[1];
  2739. }
  2740. while (i--);
  2741. DisplayTheCheckedLinks(deadlinks, 'adead_link');
  2742. }
  2743. }
  2744. });
  2745. }
  2746. function recheckLink(link)
  2747. {
  2748. var link = link;
  2749. GM_xmlhttpRequest(
  2750. {
  2751. method: 'GET',
  2752. url: 'http://netload.in/datei' + link + '.htm',
  2753. headers: {
  2754. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  2755. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  2756. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  2757. 'Referer': ""
  2758. },
  2759. onload: function (result)
  2760. {
  2761. var res = result.responseText;
  2762.  
  2763. if (res.match(/dl_first_file_download">|download_limit\.gif/))
  2764. {
  2765. DisplayTheCheckedLinks([link], 'alive_link');
  2766. return;
  2767. }
  2768.  
  2769. if (res.match(/achtung\.jpg"/))
  2770. {
  2771. DisplayTheCheckedLinks([link], 'adead_link');
  2772. }
  2773. },
  2774. onerror: function ()
  2775. {
  2776. displayTheCheckedLink(link, 'unava_link');
  2777. }
  2778. });
  2779. }
  2780. }
  2781. function rapidshareBulkCheck()
  2782. {
  2783. var rsBlock = this.links.length - 1;
  2784. do //while(allLength--);
  2785. {
  2786. var LinksTodo = this.links[rsBlock].split("\n");
  2787.  
  2788. if (LinksTodo.length < 1)
  2789. {
  2790. return false;
  2791. }
  2792.  
  2793. var fileids = "";
  2794. var filenames = "";
  2795. for (x in LinksTodo)
  2796. {
  2797. var eintrag = LinksTodo[x];
  2798. var logregex = /files\/(\d{5,})\/(\S*)/;
  2799. var teile = logregex.exec(eintrag);
  2800. if ((null != teile) && (null != teile[1]) && (null != teile[2]) && (teile[1] != '') && (teile[2] != ''))
  2801. {
  2802. fileids += "," + teile[1];
  2803. filenames += "," + teile[2];
  2804. }
  2805. }
  2806. fileids = fileids.substr(1);
  2807. filenames = filenames.substr(1);
  2808. filenames = filenames.replace(/\&/g, '%26');
  2809. var apirapidshareurl = "https://api.rapidshare.com/cgi-bin/rsapi.cgi?sub=checkfiles&files=" + fileids + "&filenames=" + filenames + "&cbf=RSAPIDispatcher&cbid=3";
  2810. GM_xmlhttpRequest(
  2811. {
  2812. method: "GET",
  2813. url: apirapidshareurl,
  2814. headers: {
  2815. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  2816. 'Content-type': 'text/html',
  2817. 'Referer': ""
  2818. },
  2819. onload: function (result)
  2820. {
  2821. var res = result.responseText;
  2822. res = res.replace(/\\n/g, "\n");
  2823.  
  2824. var i;
  2825. var rsRegex = /(fileid|\d{5,}),/;
  2826.  
  2827. var livelinks = res.match(/\d{5,},.*?,\d+,\w*,(?:1|3|51),/g);
  2828. var deadlinks = res.match(/\d{5,},.*?,\d+,\w*,(?:0|4|5|59),/g)
  2829.  
  2830. if (deadlinks)
  2831. {
  2832. i = deadlinks.length - 1;
  2833. do
  2834. {
  2835. deadlinks[i] = deadlinks[i].match(rsRegex)[1];
  2836. }
  2837. while (i--);
  2838.  
  2839. DisplayTheCheckedLinks(deadlinks, 'adead_link');
  2840. }
  2841. if (livelinks)
  2842. {
  2843. i = livelinks.length - 1;
  2844. do
  2845. {
  2846. livelinks[i] = livelinks[i].match(rsRegex)[1];
  2847. }
  2848. while (i--);
  2849. DisplayTheCheckedLinks(livelinks, 'alive_link');
  2850. }
  2851. }
  2852. });
  2853. }
  2854. while (rsBlock--);
  2855. }
  2856. function megaBulkCheck()
  2857. {
  2858. var arr = this.links[0].split("\r\n");
  2859. var i = arr.length;
  2860. var seqno = Math.floor(Math.random()*1000000000);
  2861. while(i--)
  2862. {
  2863. postRequest(arr[i]);
  2864. }
  2865. function postRequest(megaLink)
  2866. {
  2867. var id = megaLink.match(/mega\.co\.nz\/#!(\w+)(?:!\w+)?/)[1];
  2868. GM_xmlhttpRequest(
  2869. {
  2870. method: "POST",
  2871. url: 'https://g.api.mega.co.nz/cs?id=' + seqno++,
  2872. data: '[{"a":"g","p":"' + id + '","ssl": "1"}]',
  2873. headers: {
  2874. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  2875. 'Content-Type': 'application/xml',
  2876. 'Referer': "https://mega.co.nz/"
  2877. },
  2878. onload: function (result)
  2879. {
  2880. var res = $.parseJSON(result.responseText.match(/\[(.+?)\]/)[1]);
  2881. if ((typeof res == "number" && (res == -9 || res == -16 || res == -6)) || res.d)
  2882. {
  2883.  
  2884. DisplayTheCheckedLinks([id], 'adead_link');
  2885. }
  2886. if (res.at)
  2887. {
  2888. DisplayTheCheckedLinks([id], 'alive_link');
  2889. }
  2890. if (res.e == "ETEMPUNAVAIL")
  2891. {
  2892. DisplayTheCheckedLinks([id], 'unava_link');
  2893. }
  2894. }
  2895. });
  2896. }
  2897.  
  2898. }
  2899. function linksaveBulkCheck()
  2900. {
  2901. var arr = this.links[0].split("\r\n");
  2902. var i = arr.length;
  2903. while(i--)
  2904. {
  2905. postRequest(arr[i]);
  2906. }
  2907. function postRequest(lsLink)
  2908. {
  2909. GM_xmlhttpRequest(
  2910. {
  2911. method: "GET",
  2912. url: lsLink + '-t.jpg',
  2913. headers: {
  2914. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  2915. 'Accept': 'text/xml',
  2916. 'Referer': ""
  2917. },
  2918. onload: function (result)
  2919. {
  2920. var imgLen = result.responseHeaders.match(/Content-Length: (\d+)/)[1];
  2921. if (imgLen == 965) //online
  2922. {
  2923. DisplayTheCheckedLinks([lsLink], 'alive_link');
  2924. }
  2925.  
  2926. if (imgLen == 972) //offline
  2927. {
  2928. DisplayTheCheckedLinks([lsLink], 'adead_link');
  2929. }
  2930. if (imgLen == 978) //unava
  2931. {
  2932. DisplayTheCheckedLinks([lsLink], 'unava_link');
  2933. }
  2934. }
  2935. });
  2936. }
  2937.  
  2938. }
  2939. function linkcryptBulkCheck()
  2940. {
  2941. var arr = this.links[0].split("\r\n");
  2942. var i = arr.length;
  2943. while(i--)
  2944. {
  2945. postRequest(arr[i]);
  2946. }
  2947. function postRequest(lcLink)
  2948. {
  2949. GM_xmlhttpRequest(
  2950. {
  2951. method: "GET",
  2952. url: 'http://linkcrypt.ws/api.html?api=status_V1&folderKey=' + lcLink.match(/dir\/(\w+)/)[1],
  2953. headers: {
  2954. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  2955. 'Accept': 'text/xml',
  2956. 'Referer': ""
  2957. },
  2958. onload: function (result)
  2959. {
  2960. var res = result.responseText;
  2961. if (res.match(/<errorCode>1101|folderStatus>[23]/)) //Offline status
  2962. {
  2963. DisplayTheCheckedLinks([lcLink], 'adead_link');
  2964. return;
  2965. }
  2966. if (res.match(/folderStatus>1/)) //Online status
  2967. {
  2968. DisplayTheCheckedLinks([lcLink], 'alive_link');
  2969. }
  2970. else
  2971. {
  2972. DisplayTheCheckedLinks([lcLink], 'unava_link');
  2973. }
  2974. }
  2975. });
  2976. }
  2977. }
  2978. function depositfilesBulkCheck()
  2979. {
  2980. var arr = this.links[0].split("\r\n");
  2981. var i = arr.length;
  2982. while(i--)
  2983. {
  2984. postRequest(arr[i]);
  2985. }
  2986. function postRequest(dfLink)
  2987. {
  2988. //var id = dfLink.match(/depositfiles\.com\/(?:en\/|ru\/|de\/|es\/|pt\/|)files\/(\w+)/)[1];
  2989. var id = dfLink.match(/\/files\/(\w+)/)[1];
  2990. GM_xmlhttpRequest(
  2991. {
  2992. method: "POST",
  2993. url: 'http://depositfiles.com/api/get_download_info.php?id=' + id + "&format=json",
  2994. headers: {
  2995. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  2996. 'Content-Type': 'application/x-www-form-urlencoded',
  2997. 'Referer': ""
  2998. },
  2999. onload: function (result)
  3000. {
  3001. var res = result.responseText;
  3002. if (res.match(/"(?:no_file|file_ban)"/))
  3003. {
  3004. DisplayTheCheckedLinks(["files/" + id], 'adead_link');
  3005. return;
  3006. }
  3007.  
  3008. if (res.match('"download_li(?:nk|mit)|password_check"'))
  3009. {
  3010. DisplayTheCheckedLinks(["files/" + id], 'alive_link');
  3011. }
  3012. }
  3013. });
  3014. }
  3015. }
  3016. function megashareBulkCheck()
  3017. {
  3018. var arr = this.links[0].split("\r\n");
  3019. var i = arr.length;
  3020. while(i--)
  3021. {
  3022. postRequest(arr[i]);
  3023. }
  3024. function postRequest(msLink)
  3025. {
  3026. GM_xmlhttpRequest(
  3027. {
  3028. method: "GET",
  3029. url: msLink,
  3030. headers: {
  3031. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3032. 'Content-Type': 'application/x-www-form-urlencoded',
  3033. 'Referer': ""
  3034. },
  3035. onload: function (result)
  3036. {
  3037. var prZVal = result.responseText.match(/name="(\d+prZVal)" value="(\d+)">/);
  3038. var btn3Name = result.responseText.match(/src="images\/dwn-btn3\.gif" name="(.+?)"/);
  3039. if ((prZVal == null) || (btn3Name == null))
  3040. {
  3041. return;
  3042. }
  3043. GM_xmlhttpRequest(
  3044. {
  3045. method: "POST",
  3046. url: msLink,
  3047. headers: {
  3048. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3049. 'Content-Type': 'application/x-www-form-urlencoded',
  3050. 'Referer': ""
  3051. },
  3052. data: prZVal[1] + "=" + prZVal[2] + '&' + btn3Name[1] + '.x=1&' + btn3Name[1] + '.y=1',
  3053. onload: function (result)
  3054. {
  3055. var res = result.responseText;
  3056. if (res.match(/<div id="err">/))
  3057. {
  3058. DisplayTheCheckedLinks([msLink.match(/\.com(\/\d+)/)[1]], 'adead_link');
  3059. }
  3060. else
  3061. {
  3062. DisplayTheCheckedLinks([msLink.match(/\.com(\/\d+)/)[1]], 'alive_link');
  3063. }
  3064. }
  3065. });
  3066. }
  3067. });
  3068. }
  3069. }
  3070. function ncryptBulkCheck()
  3071. {
  3072. var arr = this.links[0].split("\r\n");
  3073. var i = arr.length;
  3074. while(i--)
  3075. {
  3076. postRequest(arr[i]);
  3077. }
  3078. function postRequest(ncryptLink)
  3079. {
  3080. GM_xmlhttpRequest(
  3081. {
  3082. method: "POST",
  3083. url: 'http://ncrypt.in/api_status.php',
  3084. headers: {
  3085. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3086. 'Content-Type': 'application/x-www-form-urlencoded',
  3087. 'Referer': ""
  3088. },
  3089. data: 'link=' + encodeURI(ncryptLink),
  3090. onload: function (result)
  3091. {
  3092. var foldStatus = result.responseText.match(/(?:offline|online);/);
  3093. switch(foldStatus + ""){
  3094. case "offline;": DisplayTheCheckedLinks([ncryptLink], 'adead_link'); break;
  3095. case "online;": DisplayTheCheckedLinks([ncryptLink], 'alive_link'); break;
  3096. default: DisplayTheCheckedLinks([ncryptLink], 'unava_link');
  3097. }
  3098. }
  3099. });
  3100. }
  3101. }
  3102. function hellshareBulkCheck()
  3103. {
  3104. var links = this.links;
  3105. GM_xmlhttpRequest(
  3106. {
  3107. method: "GET",
  3108. url: 'http://www.hellshare.com',
  3109. headers: {
  3110. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3111. 'Accept': 'text/xml',
  3112. 'Referer': ""
  3113. },
  3114. onload: function (result)
  3115. {
  3116. var domain = result.responseText.match(/param_rau = "www\.hellshare\.(\w+)"/)[1];
  3117.  
  3118. var loc = 'check=Zkontrolovat+dostupnost+soubor%C5%AF&links=';
  3119. if (domain == 'sk')
  3120. loc = 'check=Skontrolova%C5%A5&links=';
  3121. if (domain == 'com')
  3122. loc = 'check=Check+availability&links=';
  3123. if (domain == 'hu')
  3124. loc = 'check=Kontrol%C3%A1lj&links=';
  3125. if (domain == 'pl')
  3126. loc = 'check=Sprawd%C5%BC+dost%C4%99pno%C5%9B%C4%87+plik%C3%B3w&links=';
  3127.  
  3128. genBulkCheck.call({ links: links,
  3129. apiUrl: 'http://www.hellshare.' + domain + '/linkchecker?do=linkChecker-linkcheckerform-submit',
  3130. postData: loc,
  3131. resLinkRegex: /hellshare\.(?:cz|com|sk|hu|pl)\/(?:[\w-\.]+\/|)([\w-\.]+\/\d{5,})/,
  3132. 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,
  3133. resDeadRegex: /<span style="color:gray">.*?<\/span> - <strong>/g,
  3134. resUnavaRegex: null
  3135. });
  3136. }
  3137. });
  3138. }
  3139. /**
  3140. * Displays check result
  3141. * @param {Array} Array of links or link fragments.
  3142. * @param {String} Check result status -> ['alive_link'|'adead_link'|'unava_link']
  3143. */
  3144. function DisplayTheCheckedLinks(links, resultStatus)
  3145. {
  3146. //(a[href*=link_1], a[href*=link_2], ..., a[href*=link_n])
  3147. var $links = $('a[href*="' + links.join('"], a[href*="') + '"]');
  3148. if (Do_not_linkify_DL_links)
  3149. { //TODO into separate jQuery function
  3150. $links.replaceWith(function(){
  3151. return '<span href="' + this.href + '">' + $(this).text() + '</span>';
  3152. });
  3153. $links = $('span[href*="' + links.join('"], span[href*="') + '"]');
  3154. }
  3155. $links.removeClass().addClass(resultStatus);
  3156. $links.each(function() {
  3157. this.href = Ref_anonymize_service + $(this).attr("href");
  3158. });
  3159. switch(resultStatus)
  3160. {
  3161. case "alive_link": cLinksAlive += $links.length;
  3162. if (Display_tooltip_info) $links.mouseover(displayTooltipInfo);
  3163. break;
  3164. case "adead_link": cLinksDead += $links.length;
  3165. if (Display_tooltip_info) $links.mouseover(displayTooltipError);
  3166. break;
  3167. case "unava_link": cLinksUnava += $links.length; break;
  3168. default:
  3169. }
  3170. cLinksProcessed += $links.length;
  3171. }
  3172. }
  3173. // starts bulkchecking
  3174. //
  3175. // params
  3176. // filterId [string] restricts link detection with passed id attribute
  3177. function startBulkCheck(filterId)
  3178. {
  3179. var cHosts = bulkHosts.length;
  3180. if (cHosts == 0) //no filehostings selected
  3181. return;
  3182. // STEP 1 linkify the links
  3183. var linkifyRegex = '';
  3184. var hostIdx = cHosts;
  3185. while(hostIdx--)
  3186. {
  3187. linkifyRegex += bulkHosts[hostIdx].linkRegex + "|";
  3188. }
  3189. linkifyRegex = linkifyRegex.replace(/\|$/, '');
  3190. linkify(linkifyRegex);
  3191. //
  3192. //STEP 2 detect link objects
  3193. var xpathAll = '';
  3194. var hostIdx = cHosts;
  3195. while(hostIdx--)
  3196. {
  3197. xpathAll += bulkHosts[hostIdx].xpath + "|";
  3198. }
  3199. xpathAll = xpathAll.replace(/\]\|\/\/a\[/g, " or ");
  3200. xpathAll = xpathAll.replace(/\]\|/, ')]');
  3201. if (filterId != null) //insert id restriction in the xpath
  3202. {
  3203. xpathAll = xpathAll.replace(/\[/, "[@class='" + filterId + "' and (");
  3204. }
  3205. else
  3206. {
  3207. xpathAll = xpathAll.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  3208. }
  3209. // GM_log(filterId);
  3210. // GM_log(xpathAll);
  3211. var links = document.evaluate(xpathAll, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  3212. if (filterId == null)
  3213. {
  3214. cLinksTotal += links.snapshotLength;
  3215. }
  3216. //
  3217. //STEP 3 bind links with hostings
  3218. var linkIdx = links.snapshotLength;
  3219. var href = null;
  3220. if (linkIdx == 0) // no links found
  3221. return;
  3222. var name;
  3223. while (linkIdx--)
  3224. {
  3225. href = links.snapshotItem(linkIdx).href;
  3226. try // DO NOT REMOVE, filters crap that went through xpath detection
  3227. {
  3228. name = gimmeHostName(href);
  3229. if (href.match(bulkHostNames[name].linkRegexObject) != null)
  3230. bulkHostNames[name].links.push(href);
  3231. }
  3232. catch(e)
  3233. {
  3234. // GM_log(href);
  3235. // GM_log(gimmeHostName(href));
  3236. // GM_log(e.message);
  3237. }
  3238. }
  3239. //
  3240. //STEP 4 process the links for each filehosting
  3241. var hostIdx = cHosts;
  3242. var host;
  3243. var m,n;
  3244. var arr;
  3245. while (hostIdx--)
  3246. {
  3247. host = bulkHosts[hostIdx];
  3248. arr = host.links;
  3249. if (arr.length == 0) //no links for this hosting, skip
  3250. {
  3251. continue;
  3252. }
  3253. //links match corrections
  3254. if (host.corrMatch != null)
  3255. {
  3256. var idx = arr.length;
  3257. while (idx--)
  3258. {
  3259. arr[idx] = arr[idx].match(host.corrMatch)[1];
  3260. }
  3261. }
  3262. //links replace corrections
  3263. if ((host.corrReplWhat != null) && (host.corrReplWith != null))
  3264. {
  3265. var idx = arr.length;
  3266. while (idx--)
  3267. {
  3268. arr[idx] = arr[idx].replace(host.corrReplWhat, host.corrReplWith);
  3269. }
  3270. }
  3271. m = arr.length;
  3272. n = host.blockSize;
  3273. if (m > n)
  3274. {
  3275. //insert block separators (RAND_STRING) into the array
  3276. for(var i = n; i < m; i += n + 1)
  3277. {
  3278. arr.splice(i, 0, RAND_STRING);
  3279. }
  3280. }
  3281. // GM_log(arr.join(host.splitSeparator).split(RAND_STRING));
  3282. // GM_log(host.func.toString());
  3283. host.func.call({ links: arr.join(host.splitSeparator).split(RAND_STRING),
  3284. apiUrl: host.apiUrl,
  3285. postData: host.postData,
  3286. resLinkRegex: host.resLinkRegex,
  3287. resLiveRegex: host.resLiveRegex,
  3288. resDeadRegex: host.resDeadRegex,
  3289. resUnavaRegex: host.resUnavaRegex
  3290. });
  3291. //clean up
  3292. arr.length = 0;
  3293. }
  3294. //
  3295.  
  3296. function gimmeHostName(link)
  3297. {
  3298. return link.replace(/https?:\/\/.*?http(s)?:\/\//, "http$1://").match(/https?:\/\/(?:www\.|[\w\.])*?([\w-]+)\.(?:co\.uk|\w+)\//)[1];
  3299. }
  3300. }
  3301. function checkLinks(filterId)
  3302. {
  3303. startBulkCheck(filterId);
  3304. start(filterId);
  3305. }
  3306.  
  3307. /**
  3308. * Initialises progress box including event binding and CSS
  3309. */
  3310. function initProgressBox()
  3311. {
  3312. if ($("#warlc-progressbox").length > 0)
  3313. return;
  3314. //progressbox css
  3315. GM_addStyle("#warlc-progressbox {position:fixed; background:" + Progress_box_background_color +
  3316. "; opacity:" + (Progress_box_opacity / 100) +
  3317. "; bottom:" + Progress_box_pos_bottom +
  3318. "px; right:" + Progress_box_pos_right +
  3319. "px; padding:5px; font-size:10px; font-weight:bold; cursor:default;}\
  3320. \
  3321. .warlc-progressbar {text-align:center; color: dimGrey; height:2px; margin-bottom:2px;}\
  3322. \
  3323. .warlc-progressitem {}\
  3324. \
  3325. .alive {color: " + Live_links_color +
  3326. "; background:transparent url(" + alive_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;} .dead {color:" + Dead_links_color +
  3327. "; background:transparent url(" + adead_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;} .unava {color: " + Temp_unavailable_links_color +
  3328. "; background:transparent url(" + unava_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;} .processing {color: " + Container_links_color +
  3329. "; background:transparent url(" + prem_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;} .prem {color:" + Premium_links_color +
  3330. "; background:transparent url(" + processing_link_gif + ") no-repeat scroll 100% 50%;padding-right:15px;}"
  3331. );
  3332. //
  3333. $('body').append(' <div id="warlc-progressbox">\
  3334. <div class="warlc-progressbar"></div>\
  3335. <span class="warlc-progressitem alive"></span> - \
  3336. <span class="warlc-progressitem dead"></span> - \
  3337. <span class="warlc-progressitem unava"></span> - \
  3338. <span class="warlc-progressitem prem"></span> - \
  3339. <span class="warlc-progressitem processing"></span>\
  3340. </div>');
  3341. $('#warlc-progressbox').hide().click(function(){
  3342. clearInterval(intervalId);
  3343. $(this).hide();
  3344. return false;
  3345. });
  3346. $(".warlc-progressbar").progressbar({complete: function(){
  3347. $(this).fadeOut();
  3348. clearInterval(intervalId); //stop refreshing the stats
  3349. }
  3350. })
  3351. .one('progressbarchange', function(){$('#warlc-progressbox').show();});
  3352. }
  3353. /**
  3354. * Updates progress data in progress box
  3355. */
  3356. function updateProgress()
  3357. {
  3358. if (cLinksTotal) // some links were detected on page
  3359. {
  3360. var percProgress = Math.round(((100 / cLinksTotal) * cLinksProcessed));
  3361. var $progressItems = $('#warlc-progressbox > .warlc-progressitem');
  3362. $(".warlc-progressbar").progressbar('option', 'value', percProgress);
  3363. $progressItems.first().text(cLinksAlive)
  3364. .next().text(cLinksDead)
  3365. .next().text(cLinksUnava)
  3366. .next().text(cLinksprem)
  3367. .next().text(cLinksTotal - cLinksProcessed);
  3368. }
  3369. }
  3370.  
  3371. function check_all_links()
  3372. {
  3373. add_WARLC_style();
  3374.  
  3375. if (Show_progress_stats)
  3376. {
  3377. initProgressBox();
  3378. intervalId = setInterval(function(){updateProgress();}, Progress_box_refresh_rate);
  3379. }
  3380.  
  3381. startBulkCheck(null);
  3382. start(null);
  3383.  
  3384. if (!containers_processed)
  3385. {
  3386. processContainers();
  3387. }
  3388. }
  3389.  
  3390. //Copies all found dead links to clipboard - right now for Scriptish only
  3391. function copy_dead_to_clipboard()
  3392. {
  3393. initClipBoardTools();
  3394.  
  3395. var deadlinksxpath = "//.[@class='adead_link']";
  3396.  
  3397. var foundlinks = document.evaluate(deadlinksxpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  3398. var foundlinkstext = '';
  3399.  
  3400. var foundlinkIdx = foundlinks.snapshotLength;
  3401.  
  3402. while(foundlinkIdx--)
  3403. {
  3404. if (foundlinks.snapshotItem(foundlinkIdx).innerHTML != ' x')
  3405. foundlinkstext += foundlinks.snapshotItem(foundlinkIdx).innerHTML.replace(/\[\/hide:\w+\]/,"") + '\n';
  3406. }
  3407.  
  3408. unsafeWindow.copyToClipboard(foundlinkstext);
  3409. }
  3410.  
  3411. function toggle_autocheck()
  3412. {
  3413. var currentState = GM_getValue("Autocheck", false);
  3414. GM_setValue("Autocheck", !currentState);
  3415.  
  3416. if (currentState == true)
  3417. {
  3418. sendMessage('Autocheck disabled', 'red');
  3419. }
  3420. else
  3421. {
  3422. sendMessage('Autocheck enabled', 'SpringGreen');
  3423. }
  3424. }
  3425. function toggle_Enable_Anonymizer()
  3426. {
  3427. var currentState = GM_getValue("Enable_Anonymizer", false);
  3428. GM_setValue("Enable_Anonymizer", !currentState);
  3429.  
  3430. if (currentState == true)
  3431. {
  3432. GM_setValue("Ref_anonymize_service", "");
  3433. sendMessage('Anonymizer Disabled', 'red');
  3434. }
  3435. else
  3436. {
  3437. GM_setValue("Ref_anonymize_service", "http://hiderefer.com/?");
  3438. sendMessage('Anonymizer Enabled', 'SpringGreen');
  3439. }
  3440. }
  3441.  
  3442. function KeyDownHandler(event)
  3443. {
  3444. var kcode = (event.keyCode) ? event.keyCode : event.which;
  3445. if (event.ctrlKey && event.altKey)
  3446. {
  3447. switch(kcode)
  3448. {
  3449. case 65 : check_all_links(); break;
  3450. case 67 : configuration(); break;
  3451. case 68 : copy_dead_to_clipboard(); break;
  3452. case 87 : toggle_autocheck(); break;
  3453. case 90 : toggle_Enable_Anonymizer(); break;
  3454. }
  3455. }
  3456. }
  3457.  
  3458. //
  3459. //
  3460. // SCRIPT EXECUTION START POINT
  3461. //
  3462. //
  3463. // Safari specific GM_getResourceText override
  3464. if (navigator.userAgent.indexOf('Safari') != -1 && navigator.userAgent.indexOf('Chrome') == -1)
  3465. {
  3466. GM_getResourceText = function(res) {
  3467. var $cssText = GM_getValue("jquery_css", "");
  3468. if ($cssText == "")
  3469. {
  3470. GM_xmlhttpRequest(
  3471. {
  3472. method: 'GET',
  3473. url: 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css',
  3474. onload: function (result)
  3475. {
  3476. GM_setValue("jquery_css", result.responseText);
  3477. window.location.reload();
  3478. }
  3479. });
  3480. }
  3481. else
  3482. {
  3483. return $cssText;
  3484. }
  3485. }
  3486. }
  3487. var jQueryUICSS = GM_getResourceText("jQueryUICSS");
  3488. GM_addStyle(jQueryUICSS);
  3489. //init the stuff
  3490. setVariables();
  3491. initBulkCheck();
  3492. //init info boxes
  3493. messageBox.style.position = 'fixed';
  3494. messageBox.style.top = '20px';
  3495. messageBox.style.left = '10px';
  3496. messageBox.style.opacity = '0.85';
  3497. messageBox.style.background = 'DimGray';
  3498. messageBox.style.fontSize = '36px';
  3499. document.body.appendChild(messageBox);
  3500.  
  3501. //register GM menu commands & keyboard shortcut event handler
  3502. if (Keyboard_functions)
  3503. {
  3504. $(document).keydown(KeyDownHandler);
  3505. GM_registerMenuCommand("[W.A.R. Links Checker] Configuration (" + first_key_keycodename + "+" + second_key_keycodename + "+" + String.fromCharCode(CONFIGURATION_KEYCODE) + ")", configuration);
  3506. 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);
  3507. }
  3508. else
  3509. {
  3510. GM_registerMenuCommand("[W.A.R. Links Checker] Configuration", configuration);
  3511. GM_registerMenuCommand("[W.A.R. Links Checker] Check The Links In This Page", check_all_links);
  3512. }
  3513.  
  3514. //start linkchecking
  3515. if (Autocheck)
  3516. {
  3517. $(document).ready(check_all_links);
  3518. }
  3519.  
  3520. //
  3521. //
  3522. // SCRIPT EXECUTION END POINT
  3523. //
  3524. //
  3525.  
  3526. //shows configuration box
  3527. function configuration()
  3528. {
  3529.  
  3530. //prevent multiple creating of config window
  3531. if ($("#hideshow").length)
  3532. {
  3533. $("#hideshow").show();
  3534. return;
  3535. }
  3536.  
  3537. var configcss = '\
  3538. .popup_block .popup fieldset{\
  3539. padding: 1%;\
  3540. border-style: solid;\
  3541. border-width: 1px;\
  3542. border-color: gray;\
  3543. margin-bottom: 1px;\
  3544. }\
  3545. #h3hideshowtitle{\
  3546. font-size: 2em;\
  3547. }\
  3548. #h3hideshow{\
  3549. font-size: 1.5em;\
  3550. }\
  3551. #imghideshow {\
  3552. border: none;\
  3553. }\
  3554. #plusimage{\
  3555. display:inline;\
  3556. }\
  3557. #hideshow {\
  3558. position: fixed;\
  3559. width: 100%;\
  3560. height: 100%;\
  3561. top: 0;\
  3562. left: 0;\
  3563. font-size:12px;\
  3564. z-index:2147483645;\
  3565. text-align:left;\
  3566. }\
  3567. #fade {\
  3568. background: #000;\
  3569. position: fixed;\
  3570. width: 100%;\
  3571. height: 100%;\
  3572. opacity: .80;\
  3573. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";\
  3574. left: 0;\
  3575. z-index: 10;\
  3576. }\
  3577. .popup_block {\
  3578. font-family:verdana;\
  3579. color:black;\
  3580. background: #ddd;\
  3581. padding: 10px 20px;\
  3582. border: 2px solid DarkOrange;\
  3583. float: left;\
  3584. width: 700px;\
  3585. position: absolute;\
  3586. top: 7%;\
  3587. left: 50%;\
  3588. bottom: 7%;\
  3589. margin: 0 0 0 -350px;\
  3590. -moz-border-radius:10px;\
  3591. z-index: 100;\
  3592. \
  3593. }\
  3594. .popup_block .popup {\
  3595. float: left;\
  3596. width: 100%;\
  3597. background: #fff;\
  3598. margin: 10px 0;\
  3599. padding: 0px 0 0px;\
  3600. border-left: 1px solid #bbb;\
  3601. border-top: 1px solid #bbb;\
  3602. border-right: 1px solid #bbb;\
  3603. }\
  3604. #h3hideshow{\
  3605. margin: 1px 0 0px;\
  3606. padding: 1px 10px;\
  3607. border-bottom: 1px solid #bbb;\
  3608. font-size: 1.5em;\
  3609. font-weight: normal;\
  3610. cursor:pointer;\
  3611. background:#DDDDDD none repeat scroll 0 0;\
  3612. }\
  3613. #h3hideshow:hover{\
  3614. background:#C0BEBE none repeat scroll 0 0;\
  3615. }\
  3616. #h3hideshowtitle{\
  3617. margin: 2px 0 0px;\
  3618. padding: 7px 10px;\
  3619. border-bottom: 1px solid #bbb;\
  3620. font-size: 1.5em;\
  3621. font-weight: normal;\
  3622. }\
  3623. .popup_block .popup a {\
  3624. color:DarkSkyBlue;\
  3625. text-decoration:none;\
  3626. }\
  3627. .popup p {\
  3628. padding: 1px 10px;\
  3629. margin: 0px 0;\
  3630. -x-system-font:none;\
  3631. font-family:verdana,geneva,lucida,"lucida grande",arial,helvetica,sans-serif;\
  3632. font-size:10pt;\
  3633. font-size-adjust:none;\
  3634. font-stretch:normal;\
  3635. font-style:normal;\
  3636. font-variant:normal;\
  3637. font-weight:normal;\
  3638. line-height:normal;\
  3639. }\
  3640. #sites {\
  3641. padding: 1px 10px;\
  3642. margin: 0px 0;display:inline-block;width:16em;\
  3643. }\
  3644. #dev_ver {\
  3645. color: #00FF00;\
  3646. background: Black;\
  3647. text-align: right;\
  3648. }\
  3649. #sites_suspended {\
  3650. padding: 1px 10px;\
  3651. margin: 0px 0;display:inline-block;width:16em;\
  3652. text-decoration: line-through;\
  3653. }\
  3654. .popup img.cntrl {\
  3655. position: absolute;\
  3656. right: -15px;\
  3657. top: -15px;\
  3658. }\
  3659. #bulk {\
  3660. font-size:8pt;\
  3661. color:orange;\
  3662. padding: 1px 10px;\
  3663. margin: 0px 0;\
  3664. display:inline-block;\
  3665. width:100px;\
  3666. }\
  3667. #note {\
  3668. font-size:7pt;\
  3669. color:gray;\
  3670. padding: 1px 10px;\
  3671. margin: 0px 0;display:inline-block;\
  3672. min-width:100px;\
  3673. }\
  3674. #rednote {\
  3675. font-size:7pt;\
  3676. color:red;\
  3677. padding: 1px 10px;\
  3678. margin: 0px 0;display:inline-block;\
  3679. }\
  3680. #configinfo {\
  3681. font-size:8pt;\
  3682. color:gray;\
  3683. padding: 1px 10px;\
  3684. margin: 0px 0;display:inline-block;width:60em;\
  3685. }\
  3686. #refAnonymizer, #inputColorLive, #inputColorprem, #hostSearchBox2, #hostSearchBox, #inputColorDead, #inputColorTemp, #inputColorCont, #selectAllButton, #selectNoneButton, #invertButton, #selectAllButton2, #selectNoneButton2, #invertButton2 {\
  3687. color:black;\
  3688. border-style: solid;\
  3689. border-width: 1px;\
  3690. border-color: gray;\
  3691. }\
  3692. #h3hideshowcontent {\
  3693. min-height:220px;\
  3694. max-height:220px;\
  3695. overflow:auto;\
  3696. display: none;\
  3697. padding: 10px 10px;\
  3698. }\
  3699. #specinfo{\
  3700. font-size:14px;\
  3701. }\
  3702. .warlc-ui-tab {\
  3703. height:300px;\
  3704. overflow:auto;\
  3705. }\
  3706. #warlcsitelist2, #warlcsitelist1 {\
  3707. height:220px;\
  3708. border-top: 1px solid #ddd;\
  3709. padding-top: 5px;\
  3710. overflow:auto;\
  3711. }\
  3712. input:hover+label {\
  3713. background:#F1F77C;\
  3714. font-size:110%;\
  3715. }\
  3716. ';
  3717.  
  3718. GM_addStyle(configcss);
  3719.  
  3720. var customRulesRefHTML =
  3721. '\
  3722. <br>\
  3723. A custom rule consists of <b>commands</b>. A command must be on its own line and in this form:<br>\
  3724. <b>@keyword</b> <i>parameter</i>\
  3725. <br><br>\
  3726. 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. \
  3727. <br><br>\
  3728. 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.\
  3729. 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.\
  3730. 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.\
  3731. 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,\
  3732. but all commands until the next valid @customrule are ignored.<br><br>\
  3733. Available forms and types:\
  3734. <ul>\
  3735. <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.\
  3736. <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.\
  3737. <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.\
  3738. <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.\
  3739. </ul>\
  3740. Other available commands:<br>\
  3741. (Note: There can be more than 1 (up to 10) of these commands per rule. In that case, any of them will work.)\
  3742. <ul>\
  3743. <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.\
  3744. It can also specify multiple (up to 10) Top Level Domains (.com, .net etc.)<br>\
  3745. <ul>examples:<br>\
  3746. <li>good: <i>filehost.com/download/</i><br>\
  3747. <li>good: <i>download.filehost.net/?d=</i><br>\
  3748. <li>good: <i>filehost. com net co.uk /</i> - multiple TLDs (note the spaces before, between and after TLDs)<br>\
  3749. <li>ok: <i>filehost.com/</i> - works, but will also find links like filehost.com/login etc. Sometimes it\'s unavoidable though.<br>\
  3750. <li>bad: <i>d8523.filehost.com/</i> - d8523 probably is not constant<br>\
  3751. <li>bad: <i>filehost.com/3bfiq5d1</i> - 3bfiq5d1 probably is not constant<br>\
  3752. <li>bad: <i>filehost.com</i> - no slash<br>\
  3753. </ul>\
  3754. \
  3755. <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.\
  3756. 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 \
  3757. &lt;div&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;p&gt; even if there are new lines, tabulators etc.\
  3758. <li><b>@deadmatch</b> <i>pattern</i> - ignored for OBSOLETE, required for others. (For HEADERS some servers return 404 Error \
  3759. 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.)\
  3760. Two spaces again match any whitespace.\
  3761. <li><b>@unavamatch</b> <i>pattern</i> - optional, ignored for OBSOLETE and HEADERS. If found, the link is deemed temporarily unavailable.\
  3762. Two spaces again match any whitespace.\
  3763. <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. \
  3764. <li><b>@deadlink</b> <i>url</i> - optional. Example dead link.\
  3765. </ul>\
  3766. \
  3767. ';
  3768.  
  3769. //close image and css taken from = http://www.sohtanaka.com/web-design/examples/css-popup icon_close.png;
  3770. var configurationinnerHTML =
  3771. '<div id="fade"></div>\
  3772. <div class="popup_block">\
  3773. <div class="popup">\
  3774. <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+F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/jRGlJHc5zenaV7p0PyRB7XkR7vfa4IlZtT69fbVKywyafh8HODHN+WfhH4FnD2alN1B7AdOAcMeT29HfiZJ5oZ3sHrgAeBvcCANzBsHu7Ohe2/AwDnNnxcIIMIUgAAAABJRU5ErkJggg=="></img>&nbsp;W.A.R. Links Checker Customized Premium Link version Configuration</div>\
  3776. <div id="warlc-conf-tabs">\
  3777. <ul>\
  3778. <li><a href="#tabs-1">Filehostings</a></li>\
  3779. <li><a href="#tabs-2">Containers</a></li>\
  3780. <li><a href="#tabs-5">Custom rules</a></li>\
  3781. <li><a href="#tabs-3">Settings</a></li>\
  3782. <li><a href="#tabs-4">About</a></li>\
  3783. </ul>\
  3784. <div id="tabs-1" class="warlc-ui-tab">\
  3785. <div class="warlc-ui-buttonset">\
  3786. <input type="button" class="warlc-ui-select-all" value="Select All">\
  3787. <input type="button" class="warlc-ui-select-none" value="Select None">\
  3788. <input type="button" class="warlc-ui-select-invert" value="Invert">\
  3789. </div><br>\
  3790. <div>Search: <input type="textbox" id="hostSearchBox" value=""></div><br>\
  3791. <div id="warlcsitelist1"><span>Empty</span></div>\
  3792. </div>\
  3793. <div id="tabs-2" class="warlc-ui-tab">\
  3794. <div class="warlc-ui-buttonset">\
  3795. <input type="button" class="warlc-ui-select-all" value="Select All">\
  3796. <input type="button" class="warlc-ui-select-none" value="Select None">\
  3797. <input type="button" class="warlc-ui-select-invert" value="Invert">\
  3798. </div><br>\
  3799. <div>Search: <input type="textbox" id="hostSearchBox2" value=""></div><br>\
  3800. <div id="warlcsitelist2"><span>Empty</span></div>\
  3801. </div>\
  3802. <div id="tabs-5" class="warlc-ui-tab">\
  3803. <div class="warlcsettings">\
  3804. <fieldset><input type="checkbox" id="Custom_rules"> Enable custom rules <div id="bulk">EXPERIMENTAL</div></fieldset>\
  3805. <br>\
  3806. <div>Edit custom rules: \
  3807. <a href="#" id="showCustomRulesReference">(<b>Click here to show/hide the reference</b>)</a>\
  3808. <div id="customRulesReference" style="display:none;">'
  3809. + customRulesRefHTML + '\
  3810. </div>\
  3811. <textarea style="width:100%;height:200px;" id="Custom_rules_text"></textarea>\
  3812. </div>\
  3813. </div>\
  3814. </div>\
  3815. <div id="tabs-3" class="warlc-ui-tab">\
  3816. <div class="warlcsettings">\
  3817. <fieldset>\
  3818. <p><input type="checkbox" id="Keyboard_functions"> Enable keyboard shortcuts</p>\
  3819. <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>\
  3820. </fieldset>\
  3821. <fieldset>\
  3822. <p><input type="checkbox" id="Color_DL_links"> Color DL links</p>\
  3823. <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>\
  3824. <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>\
  3825. <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>\
  3826. <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>\
  3827. <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>\
  3828. <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>\
  3829. <p><input type="checkbox" id="Show_line_through_in_dead_links"> Show line through in dead links</p>\
  3830. <p><input type="checkbox" id="Show_black_background_in_DL_links"> Show black background in DL links</p>\
  3831. <p><input type="checkbox" id="Do_not_linkify_DL_links"> Do NOT linkify DL links</p>\
  3832. <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>\
  3833. <p><input type="checkbox" id="Display_full_links_in_link_containers"> Display full links in link containers</p><br>\
  3834. <fieldset>\
  3835. <p><input type="radio" name="warlciconset" value="0"> No icons</p>\
  3836. <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>\
  3837. <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>\
  3838. </fieldset>\
  3839. </fieldset>\
  3840. <fieldset>\
  3841. <div id="sites"><input type="checkbox" id="Autocheck"> Autocheck</div><br><div id="configinfo">Script starts check automatically.</div><br>\
  3842. </fieldset>\
  3843. <fieldset>\
  3844. <div id="sites"><input type="checkbox" id="Show_progress_stats"> Show progress stats</div><br>\
  3845. </fieldset>\
  3846. <fieldset>\
  3847. <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>\
  3848. </fieldset>\
  3849. <fieldset>\
  3850. <p><input type="checkbox" id="Enable_Anonymizer"> Enable Anonymizer</div><div id="bulk">EXPERIMENTAL Note: Checkbox does not work use CTRL+ALT+Z.</p>\
  3851. <div id="sites"><label for="refAnonymizer">Refererer anonymizing service</label><input type="text" id="refAnonymizer" value="' + Ref_anonymize_service + '"></div>\
  3852. </fieldset>\
  3853. </div>\
  3854. </div>\
  3855. <div id="tabs-4" class="warlc-ui-tab">\
  3856. <p><b>Author:</b> <a href="http://userscripts.org/users/510590">mentalps</a></p>\
  3857. <p><b>Contributors:</b> <a href="http://userscripts.org/users/496211">Halliwax</a></p>\
  3858. <br />\
  3859. <p><b>Currently supported:</b><br>\
  3860. Filehostings: ' + allHostNames.length + '<br />\
  3861. Containers: ' + allContainerNames.length + '<br />\
  3862. Obsolete sites: ' + allObsoleteNames.length + '<br /></p>\
  3863. <br />\
  3864. <p><b>Based on:</b><br>\
  3865. <a href="http://userscripts.org/scripts/show/125631">W.A.R. Links Checker - Dev</a></p>\
  3866. <br />\
  3867. <p><b>Uses:</b></p>\
  3868. <p>adam_3\'s <a href="http://userscripts.org/scripts/show/2254">Linkify ting</a> (modified)</p>\
  3869. <p><a href="http://jquery.com/">jQuery</a> JavaScript Library</p>\
  3870. <br />\
  3871. <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>\
  3872. </div>\
  3873. </div>\
  3874. </div>\
  3875. </div>';
  3876. $('body').append('<div id="hideshow">' + configurationinnerHTML + '</div>');
  3877. $("#warlc-conf-tabs").tabs({ fx: { opacity: 'toggle', duration: 'fast' } });
  3878. $("#imghideshow").click(function(event){$("#hideshow").hide(); event.preventDefault();});
  3879. var elmHostList = document.getElementById("warlcsitelist1");
  3880. var elmContainerList = document.getElementById("warlcsitelist2");
  3881. buildSettings();
  3882. buildSitelist("", allHostNames, elmHostList);
  3883. buildSitelist("", allContainerNames, elmContainerList);
  3884. if (DEBUG_MODE)
  3885. {
  3886. //log all sites availability status
  3887. diagSites();
  3888. }
  3889. //handler for checkbox state change
  3890. function changeConfiguration(e)
  3891. {
  3892. var element = e.target;
  3893.  
  3894. if (element.type == 'checkbox')
  3895. {
  3896. if (element.checked == 1)
  3897. {
  3898. GM_setValue(element.id, true);
  3899. }
  3900. else
  3901. {
  3902. GM_setValue(element.id, false);
  3903. }
  3904.  
  3905. }
  3906. setVariables();
  3907. }
  3908.  
  3909. //Selects all filehosting checkboxes
  3910. function selectAll()
  3911. {
  3912. $(":checkbox:visible:not(:checked)").prop("checked",true)
  3913. .each(function(index, element){GM_setValue(this.id, true)});
  3914. }
  3915.  
  3916. //Deselects all filehosting checkboxes
  3917. function selectNone()
  3918. {
  3919. $(":checkbox:visible:checked").prop("checked",false)
  3920. .each(function(index, element){GM_setValue(this.id, false)});
  3921. }
  3922.  
  3923. //Inverts filehosting checkboxes selection
  3924. function selectInvert()
  3925. {
  3926. var $checked = $(":checkbox:visible:checked");
  3927. var $unchecked = $(":checkbox:visible:not(:checked)");
  3928. $unchecked.prop("checked",true)
  3929. .each(function(index, element){GM_setValue(this.id, true)});
  3930. $checked.prop("checked",false)
  3931. .each(function(index, element){GM_setValue(this.id, false)});
  3932. }
  3933. //toggles anonymizer on off
  3934. function Enable_Anonymizer()
  3935. {
  3936. var $checked = $(":checkbox:visible:checked");
  3937. var $unchecked = $(":checkbox:visible:not(:checked)");
  3938. $unchecked.prop("checked",true)
  3939. .each(function(index, element){GM_setValue(this.id, true)});
  3940. $checked.prop("checked",false)
  3941. .each(function(index, element){GM_setValue(this.id, false)});
  3942. }
  3943.  
  3944. function changeRefAnonymizer(){
  3945. GM_setValue("Ref_anonymize_service", $("#refAnonymizer").attr("value"));
  3946. }
  3947.  
  3948. //Sets live links color
  3949. function changeColorLive()
  3950. {
  3951. var inColorLive = document.getElementById("inputColorLive");
  3952. inColorLive.style.background = inColorLive.value;
  3953. GM_setValue("Live_links_color", inColorLive.value);
  3954. }
  3955.  
  3956. //Sets dead links color
  3957. function changeColorDead()
  3958. {
  3959. var inColorDead = document.getElementById("inputColorDead");
  3960. inColorDead.style.background = inColorDead.value;
  3961. GM_setValue("Dead_links_color", inColorDead.value);
  3962. }
  3963.  
  3964. //Sets temp. unavailable links color
  3965. function changeColorTemp()
  3966. {
  3967. var inColorTemp = document.getElementById("inputColorTemp");
  3968. inColorTemp.style.background = inColorTemp.value;
  3969. GM_setValue("Temp_unavailable_links_color", inColorTemp.value);
  3970. }
  3971.  
  3972. //Sets temp. unavailable links color
  3973. function changeColorCont()
  3974. {
  3975. var inColorCont = document.getElementById("inputColorCont");
  3976. inColorCont.style.background = inColorCont.value;
  3977. GM_setValue("Container_links_color", inColorCont.value);
  3978. }
  3979. //Sets premium. links color
  3980. function changeColorprem()
  3981. {
  3982. var inColorprem = document.getElementById("inputColorprem");
  3983. inColorprem.style.background = inColorprem.value;
  3984. GM_setValue("Premium_links_color", inColorprem.value);
  3985. }
  3986.  
  3987. //Diagnose sites for availability
  3988. function diagSites()
  3989. {
  3990. var boxes = document.getElementById("warlcsitelist1").getElementsByTagName("input");
  3991.  
  3992. for (var i = 0, n = boxes.length - 1; i < n; i++)
  3993. {
  3994. if (boxes[i].type == "checkbox")
  3995. {
  3996. checkAvailability(boxes[i]);
  3997. }
  3998. }
  3999.  
  4000. boxes = document.getElementById("warlcsitelist2").getElementsByTagName("input");
  4001.  
  4002. for (var i = 0, n = boxes.length - 1; i < n; i++)
  4003. {
  4004. if (boxes[i].type == "checkbox")
  4005. {
  4006. checkAvailability(boxes[i]);
  4007. }
  4008. }
  4009.  
  4010. function checkAvailability(cbElm)
  4011. {
  4012. var cb = cbElm;
  4013. GM_xmlhttpRequest(
  4014. {
  4015. method: 'HEAD',
  4016. url: 'http://' + cb.nextSibling.textContent.replace(' ', ''),
  4017. headers: {
  4018. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  4019. 'Accept': 'text/xml',
  4020. 'Referer': ""
  4021. },
  4022. onload: function (result)
  4023. {
  4024. if (result.status != 200)
  4025. {
  4026. GM_log(cb.nextSibling.textContent + ' --- status: [' + result.status + '] ' + result.statusText + ', final url: ' + result.finalUrl);
  4027. }
  4028. },
  4029. onerror: function (result)
  4030. {
  4031. if (result.status != 200)
  4032. {
  4033. GM_log(cb.nextSibling.textContent + ' --- status: [' + result.status + '] ' + result.statusText + ', final url: ' + result.finalUrl);
  4034. }
  4035. }
  4036. });
  4037. }
  4038. }
  4039. function buildSettings()
  4040. {
  4041. $(".warlcsettings :checkbox").each(function(){
  4042. $(this).prop("checked", GM_getValue($(this).attr("id")))
  4043. .click(function(e){
  4044. GM_setValue($(this).attr("id"), $(this).prop("checked"));
  4045. setVariables();
  4046. });
  4047. })
  4048. }
  4049. //Dynamic build of host list
  4050. //param search [string] searches for hostnames matching search substring
  4051. //param siteNames [array] array of site names
  4052. //param targetNode [DOM Node] where the list should be built
  4053. // first child node is replaced
  4054. function buildSitelist(search, siteNames, targetNode)
  4055. {
  4056. var searchRegex = new RegExp("\\|?([\\w\\.-]*" + search.replace(/\./g,"\\.").replace(/-/g, "\\-") + "[\\w\\.-]*)\\|?", "i");
  4057. var $targetNode = $(targetNode).empty();
  4058. var searchedSite = "";
  4059. $.each(siteNames, function(i, site){
  4060. if (searchedSite = site.match(searchRegex))
  4061. {
  4062. var baseSite = site.replace(/\|.+/, ""); //filehosting main domain
  4063. //ensuring backward compatibility with the rest of code, to be refactored later
  4064. var oldRSLCvalue = "Check_" + baseSite.replace(/\|.+/, "").replace(/\./g,"_dot_").replace(/-/g, "_dash_") + "_links";
  4065. //
  4066. $targetNode.append('<input type="checkbox" id="' + oldRSLCvalue +'" />\
  4067. <label for="' + oldRSLCvalue + '">' + searchedSite[1] + '</label>' +
  4068. ((searchedSite[1] != baseSite) ? ('<div id="note"> ( ~ ' + baseSite + ' )</div>') : (""))
  4069. );
  4070. $("#" + oldRSLCvalue).prop("checked", GM_getValue(oldRSLCvalue, false))
  4071. .change(changeConfiguration);
  4072. $targetNode.append('<br />');
  4073. }
  4074. });
  4075. $targetNode.append("<hr>");
  4076. //obsolete hosts checkbox
  4077. $targetNode.append('<input type="checkbox" id="Obsolete_file_hosts" /><label for="Obsolete_file_hosts">Obsolete file hosts</label>');
  4078. $("#Obsolete_file_hosts").prop("checked", GM_getValue("Obsolete_file_hosts", false))
  4079. .change(changeConfiguration);
  4080. $targetNode.append('<br />');
  4081. var foundName = "";
  4082. $.each(allObsoleteNames, function(i, site){
  4083. if (foundName = allObsoleteNames[i].match(searchRegex))
  4084. {
  4085. $targetNode.append('<div id="note">' + foundName[1] + '</div>');
  4086. }
  4087. })
  4088. // if (elmSpan.children.length == 1) // no matches
  4089. // {
  4090. // elmSpan.innerHTML = "";
  4091. // elmSpan.appendChild(document.createTextNode('No matches'));
  4092. // }
  4093. }
  4094. var hostSearchBox = document.getElementById("hostSearchBox");
  4095. hostSearchBox.addEventListener('keyup', function(){buildSitelist(hostSearchBox.value, allHostNames, elmHostList);}, false);
  4096. var hostSearchBox2 = document.getElementById("hostSearchBox2");
  4097. hostSearchBox2.addEventListener('keyup', function(){buildSitelist(hostSearchBox2.value, allContainerNames, elmContainerList);}, false);
  4098. $(".warlc-ui-select-all").click(selectAll).button();
  4099. $(".warlc-ui-select-none").click(selectNone).button();
  4100. $(".warlc-ui-select-invert").click(selectInvert).button();
  4101. $(".warlc-ui-buttonset").buttonset();
  4102. var inColorLive = document.getElementById("inputColorLive");
  4103. inColorLive.addEventListener('keyup', changeColorLive, false);
  4104.  
  4105. var inColorDead = document.getElementById("inputColorDead");
  4106. inColorDead.addEventListener('keyup', changeColorDead, false);
  4107.  
  4108. var inColorTemp = document.getElementById("inputColorTemp");
  4109. inColorTemp.addEventListener('keyup', changeColorTemp, false);
  4110.  
  4111. var inColorCont = document.getElementById("inputColorCont");
  4112. inColorCont.addEventListener('keyup', changeColorCont, false);
  4113. var inColorprem = document.getElementById("inputColorprem");
  4114. inColorprem.addEventListener('keyup', changeColorprem, false);
  4115. $("#refAnonymizer").change(changeRefAnonymizer);
  4116. //buttons and edit boxes init end
  4117.  
  4118. //icon sets radio buttons
  4119. var radioButtons = document.getElementsByName("warlciconset");
  4120. radioButtons[Icon_set].checked = "checked";
  4121.  
  4122. radioButtons[0].addEventListener("change", updateIconSet);
  4123. radioButtons[1].addEventListener("change", updateIconSet);
  4124. radioButtons[2].addEventListener("change", updateIconSet);
  4125. function updateIconSet()
  4126. {
  4127. GM_setValue("Icon_set", this.value * 1);
  4128. }
  4129. //
  4130. $('#showCustomRulesReference').click(function(e){
  4131. e.preventDefault();
  4132. $('#customRulesReference').toggle();
  4133. });
  4134. $('#Custom_rules_text')
  4135. .val(Custom_rules_text)
  4136. .change(saveCustomRules);
  4137. /*function checkCustomRules(e)
  4138. {
  4139. GM_log(this.value);
  4140. }*/
  4141. function saveCustomRules(e)
  4142. {
  4143. var cr = parseCustomRules(this.value);
  4144. if (cr.info.length)
  4145. 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, ' '));
  4146. GM_setValue('Custom_rules_text', this.value);
  4147. GM_setValue('last_custom_rules_nag', ''+new Date().getTime()); //reset nag
  4148. }
  4149. }
  4150.  
  4151. //begin standard link checking algorithm
  4152. function start(filterId)
  4153. {
  4154. var doNotLinkify = Do_not_linkify_DL_links;
  4155.  
  4156. // USER SELECTED FILE HOSTS INITIALIZATION START
  4157. var http_file_hosts = new Array(); //standard hostings
  4158. var http_file_hosts_coded = new Array(); //hostings which has to be decoded to obtain real checkable link
  4159. var http_file_hosts_obsolete = new Array(); //dead hostings
  4160. var http_file_hosts_headers_only = new Array(); //hostings with direct download, must be handled via headers only
  4161.  
  4162. initFileHosts();
  4163. initFileHostsCoded();
  4164. initFileHostsHeadersOnly();
  4165. initFileHostsCustom(); //CustomRules
  4166. // USER SELECTED FILE HOSTS INITIALIZATION END
  4167.  
  4168. // LINKIFICATION START
  4169. var totalxpath = '';
  4170. var totalxpathcoded = '';
  4171. var totalxpathobsolete = '';
  4172. var totalxpathheadersonly = '';
  4173. var totalourls = '';
  4174.  
  4175. var filehostLen = http_file_hosts.length;
  4176. var filehostCodedLen = http_file_hosts_coded.length;
  4177. var filehostObsoleteLen = http_file_hosts_obsolete.length;
  4178. var filehostHeadersOnlyLen = http_file_hosts_headers_only.length;
  4179.  
  4180. var filehostIdx = filehostLen;
  4181. var filehostCodedIdx = filehostCodedLen;
  4182. var filehostObsoleteIdx = filehostObsoleteLen;
  4183. var filehostHeadersOnlyIdx = filehostHeadersOnlyLen;
  4184.  
  4185. if ((filehostIdx == 0) && (filehostCodedIdx == 0) && (filehostHeadersOnlyIdx == 0) && (filehostObsoleteIdx == 0))
  4186. return;
  4187.  
  4188. while (filehostIdx--)
  4189. {
  4190. totalourls += http_file_hosts[filehostIdx][0] + '|';
  4191. totalxpath += http_file_hosts[filehostIdx][4] + '|';
  4192. }
  4193.  
  4194. while (filehostCodedIdx--)
  4195. {
  4196. totalourls += http_file_hosts_coded[filehostCodedIdx][0] + '|';
  4197. totalxpathcoded += http_file_hosts_coded[filehostCodedIdx][3] + '|';
  4198. }
  4199.  
  4200. while (filehostObsoleteIdx--)
  4201. {
  4202. totalourls += http_file_hosts_obsolete[filehostObsoleteIdx][0] + '|';
  4203. totalxpathobsolete += http_file_hosts_obsolete[filehostObsoleteIdx][1] + '|';
  4204. }
  4205.  
  4206. while (filehostHeadersOnlyIdx--)
  4207. {
  4208. totalourls += http_file_hosts_headers_only[filehostHeadersOnlyIdx][0] + '|';
  4209. totalxpathheadersonly += http_file_hosts_headers_only[filehostHeadersOnlyIdx][3] + '|';
  4210. }
  4211.  
  4212. totalourls = totalourls.replace(/\|$/g, "");
  4213. //TODO: further refactoring needed
  4214. totalxpath = totalxpath.replace(/\]\|\/\/a\[/g, " or ");
  4215. totalxpath = totalxpath.replace(/\]\|/, ')]');
  4216. totalxpathcoded = totalxpathcoded.replace(/\]\|\/\/a\[/g, " or ");
  4217. totalxpathcoded = totalxpathcoded.replace(/\]\|/, ')]');
  4218. totalxpathobsolete = totalxpathobsolete.replace(/\]\|\/\/a\[/g, " or ");
  4219. totalxpathobsolete = totalxpathobsolete.replace(/\]\|/, ')]');
  4220. totalxpathheadersonly = totalxpathheadersonly.replace(/\]\|\/\/a\[/g, " or ");
  4221. totalxpathheadersonly = totalxpathheadersonly.replace(/\]\|/, ')]');
  4222. if (filterId != null) //insert id restriction in the xpath
  4223. {
  4224. totalxpath = totalxpath.replace(/\[/g, "[@class='" + filterId + "' and (");
  4225. totalxpathcoded = totalxpathcoded.replace(/\[/g, "[@class='" + filterId + "' and (");
  4226. totalxpathobsolete = totalxpathobsolete.replace(/\[/g, "[@class='" + filterId + "' and (");
  4227. totalxpathheadersonly = totalxpathheadersonly.replace(/\[/g, "[@class='" + filterId + "' and (");
  4228. }
  4229. else
  4230. {
  4231. totalxpath = totalxpath.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4232. totalxpathcoded = totalxpathcoded.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4233. totalxpathobsolete = totalxpathobsolete.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4234. totalxpathheadersonly = totalxpathheadersonly.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4235. }
  4236. linkify(totalourls);
  4237. //LINKIFICATION END
  4238. //ENCRYPTED LINKS PROCESSING START
  4239. if (http_file_hosts_coded.length > 0)
  4240. {
  4241. var linksCoded = document.evaluate(totalxpathcoded, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4242.  
  4243. // decrypt coded links (redirects, link protectors etc.)
  4244. if (linksCoded.snapshotLength > 0)
  4245. {
  4246. var link;
  4247. var reallinkreg;
  4248. var reallinkcorrection;
  4249.  
  4250. if (filterId == null)
  4251. {
  4252. cLinksTotal += linksCoded.snapshotLength;
  4253. }
  4254.  
  4255. var y = linksCoded.snapshotLength - 1;
  4256. do
  4257. {
  4258. // linksCoded.snapshotItem(y).id = 'processing_link';
  4259. link = linksCoded.snapshotItem(y);
  4260. filehostIdx = filehostCodedLen;
  4261. while (filehostIdx--)
  4262. {
  4263. if (link.href.match(http_file_hosts_coded[filehostIdx][0]))
  4264. {
  4265. link.href = link.href.replace(/http:\/\/.*?(?:\?|=)http:\/\//, 'http://');
  4266. reallinkreg = http_file_hosts_coded[filehostIdx][1];
  4267. reallinkcorrection = http_file_hosts_coded[filehostIdx][2];
  4268.  
  4269. decurl(link, reallinkreg, reallinkcorrection);
  4270. break;
  4271. }
  4272. }
  4273. }
  4274. while (y--);
  4275. }
  4276. }
  4277. //ENCRYPTED LINKS PROCESSING END
  4278.  
  4279. //STANDARD LINKCHECKING START
  4280. if (http_file_hosts.length > 0)
  4281. {
  4282. var lianks = document.evaluate(totalxpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4283.  
  4284. if (filterId == null)
  4285. {
  4286. cLinksTotal += lianks.snapshotLength;
  4287. }
  4288.  
  4289. if (lianks.snapshotLength > 0)
  4290. {
  4291. var link;
  4292.  
  4293. var URL = "";
  4294. var name = "";
  4295. var isAliveRegex = "";
  4296. var isDeadRegex = "";
  4297. var isUnavaRegex = "";
  4298. var ispremRegex = "";
  4299. var tryLoop = false;
  4300.  
  4301. var y = lianks.snapshotLength;
  4302.  
  4303. while (y--)
  4304. {
  4305. link = lianks.snapshotItem(y);
  4306.  
  4307. filehostIdx = filehostLen;
  4308. while (filehostIdx--)
  4309. {
  4310. if (link.href.match(http_file_hosts[filehostIdx][0]))
  4311. {
  4312. link.href = link.href.replace(/http:\/\/.*?http:\/\//, 'http://'); //anonymizers
  4313. isAliveRegex = http_file_hosts[filehostIdx][1];
  4314. isDeadRegex = http_file_hosts[filehostIdx][2];
  4315. isUnavaRegex = http_file_hosts[filehostIdx][3];
  4316. ispremRegex = http_file_hosts[filehostIdx][6];
  4317. tryLoop = http_file_hosts[filehostIdx][5];
  4318.  
  4319. geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, tryLoop);
  4320.  
  4321. break;
  4322. }
  4323. }
  4324. }
  4325. }
  4326. }
  4327. //STANDARD LINKCHECKING END
  4328. //OBSOLETE FILE HOSTS PROCESSING START
  4329. if (filehostObsoleteLen > 0)
  4330. {
  4331. var obsoletelinks = document.evaluate(totalxpathobsolete, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4332.  
  4333. var obsoleteLink;
  4334.  
  4335. //check links
  4336. if (obsoletelinks.snapshotLength > 0)
  4337. {
  4338. var y = obsoletelinks.snapshotLength;
  4339.  
  4340. if (filterId == null)
  4341. {
  4342. cLinksTotal += y;
  4343. }
  4344.  
  4345. while (y--)
  4346. {
  4347. obsoleteLink = obsoletelinks.snapshotItem(y);
  4348.  
  4349. if (Display_tooltip_info)
  4350. {
  4351. obsoleteLink.warlc_error = 'Cause of error: <b>Obsolete filehosting.</b>';
  4352. }
  4353. displayTheCheckedLink(obsoleteLink, 'adead_link');
  4354. }
  4355. }
  4356. }
  4357. //OBSOLETE FILE HOSTS PROCESSING END
  4358.  
  4359. //DIRECT LINKCHECKING START
  4360. if (http_file_hosts_headers_only.length > 0)
  4361. {
  4362. var links = document.evaluate(totalxpathheadersonly, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4363.  
  4364. //check links
  4365. if (links.snapshotLength > 0)
  4366. {
  4367. var link;
  4368. var isAliveRegex;
  4369. var isDeadRegex;
  4370. var ispremRegex;
  4371.  
  4372. var y = links.snapshotLength;
  4373.  
  4374.  
  4375. if (filterId == null)
  4376. {
  4377. cLinksTotal += y;
  4378. }
  4379.  
  4380. while (y--)
  4381. {
  4382. // links.snapshotItem(y).id = 'processing_link';
  4383. link = links.snapshotItem(y);
  4384. filehostIdx = filehostHeadersOnlyLen;
  4385. while (filehostIdx--)
  4386. {
  4387. if (link.href.match(http_file_hosts_headers_only[filehostIdx][0]))
  4388. {
  4389. link.href = link.href.replace(/http:\/\/.*?(?:\?|=)http:\/\//, 'http://');
  4390. isAliveRegex = http_file_hosts_headers_only[filehostIdx][1];
  4391. isDeadRegex = http_file_hosts_headers_only[filehostIdx][2];
  4392. ispremRegex = http_file_hosts_headers_only[filehostIdx][3];
  4393.  
  4394. geturlHeader(link, isAliveRegex, isDeadRegex, ispremRegex);
  4395.  
  4396. break;
  4397. }
  4398. }
  4399. }
  4400.  
  4401. }
  4402. }
  4403. //DIRECT LINKCHECKING END
  4404.  
  4405.  
  4406. //finds the real url on the page, replaces link.href with it and calls geturl
  4407. function decurl(link, reallinkreg, reallinkcorrection)
  4408. {
  4409.  
  4410. GM_xmlhttpRequest(
  4411. {
  4412. method: 'GET',
  4413. url: link.href,
  4414. headers: {
  4415. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  4416. 'Accept': 'text/xml',
  4417. 'Referer': ""
  4418. },
  4419. onload: function (result)
  4420. {
  4421. // cLinksProcessed++;
  4422.  
  4423. var reallink = result.responseText.match(reallinkreg)[0];
  4424. reallink = reallink.replace(new RegExp(reallinkcorrection, "g"), "");
  4425.  
  4426. link.href = reallink;
  4427.  
  4428. var i = http_file_hosts.length - 1;
  4429. do
  4430. {
  4431. if ((reallink.match(http_file_hosts[i][0])))
  4432. {
  4433. link.href = link.href.replace(/http:\/\/.*?\?http:\/\//, 'http://');
  4434. var isAliveRegex = http_file_hosts[i][1];
  4435. var isDeadRegex = http_file_hosts[i][2];
  4436. var isUnavaRegex = http_file_hosts[i][3];
  4437. var ispremRegex = http_file_hosts[i][4];
  4438.  
  4439. geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, 50);
  4440.  
  4441. break;
  4442. }
  4443. }
  4444. while (i--);
  4445. }
  4446. });
  4447. }
  4448.  
  4449. function randUA()
  4450. {
  4451. //TODO
  4452. }
  4453. //Processes link
  4454. //
  4455. // [string] link link URL
  4456. // [string] isAliveRegex alive link regex
  4457. // [string] isDeadRegex dead link regex
  4458. // [string] isUnavaRegex unavailable link regex
  4459. // [string] ispremRegex premium link regex
  4460. // [boolean] tryLoop repeats request until succeeded
  4461. function geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, tryLoop)
  4462. {
  4463. GM_xmlhttpRequest(
  4464. {
  4465. method: 'GET',
  4466. url: link.href,
  4467. headers: {
  4468. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  4469. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  4470. 'Referer': ""
  4471. },
  4472. onload: function (result)
  4473. {
  4474. var res = result.responseText;
  4475.  
  4476. if (res.match(isAliveRegex))
  4477. {
  4478. displayTheCheckedLink(link, 'alive_link');
  4479. return;
  4480. }
  4481.  
  4482. if (res.match(isDeadRegex))
  4483. {
  4484. displayTheCheckedLink(link, 'adead_link');
  4485. return;
  4486. }
  4487.  
  4488. if (isUnavaRegex && res.match(isUnavaRegex))
  4489. {
  4490. displayTheCheckedLink(link, 'unava_link');
  4491. return;
  4492. }
  4493. if (res.match(ispremRegex))
  4494. {
  4495. displayTheCheckedLink(link, 'prem_link');
  4496. return;
  4497. }
  4498.  
  4499. var resStatus = result.status;
  4500.  
  4501. if (resStatus == 404)
  4502. {
  4503. displayTheCheckedLink(link, 'adead_link');
  4504. }
  4505. if (resStatus == 500 || resStatus == 503 || resStatus == 403) //not found/available/temp. unava
  4506. {
  4507. if (tryLoop)
  4508. {
  4509. //wait 1-5 seconds and repeat the request
  4510. setTimeout(function(){geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, tryLoop)}, 1000 + (Math.random() * 4000));
  4511. }
  4512. else
  4513. {
  4514. displayTheCheckedLink(link, 'unava_link');
  4515. }
  4516.  
  4517. return;
  4518. }
  4519. },
  4520. onerror: function ()
  4521. {
  4522. displayTheCheckedLink(link, 'unava_link');
  4523. }
  4524. });
  4525. }
  4526.  
  4527. function geturlHeader(link, isAliveRegex, isDeadRegex, ispremRegex)
  4528. {
  4529. GM_xmlhttpRequest(
  4530. {
  4531. method: 'HEAD',
  4532. url: link.href,
  4533. headers: {
  4534. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  4535. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  4536. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  4537. 'Referer': ""
  4538. },
  4539. onload: function (result)
  4540. {
  4541. var resStatus = result.status;
  4542. var resHeaders = "";
  4543. if (resStatus == 403 || resStatus == 404 || resStatus == 500) //not found/available
  4544. {
  4545. displayTheCheckedLink(link, 'adead_link');
  4546. return;
  4547. }
  4548.  
  4549. resHeaders = result.responseHeaders;
  4550.  
  4551. if (resHeaders.match(isDeadRegex))
  4552. {
  4553. displayTheCheckedLink(link, 'adead_link');
  4554. return;
  4555. }
  4556.  
  4557. if (resHeaders.match(isAliveRegex))
  4558. {
  4559. displayTheCheckedLink(link, 'alive_link');
  4560. return;
  4561. }
  4562. if (resHeaders.match(ispremRegex))
  4563. {
  4564. displayTheCheckedLink(link, 'prem_link');
  4565. return;
  4566. }
  4567. },
  4568. onerror: function ()
  4569. {
  4570. displayTheCheckedLink(link, 'unava_link');
  4571. }
  4572. });
  4573. }
  4574.  
  4575. //Delinkfifies the <a> element object
  4576. function delinkifyLink(link)
  4577. {
  4578. var spanElm = document.createElement("span");
  4579. spanElm.className = link.className;
  4580. spanElm.innerHTML = link.innerHTML;
  4581.  
  4582. if (Display_tooltip_info)
  4583. {
  4584. spanElm.href = link.href;
  4585. spanElm.warlc_error = link.warlc_error;
  4586. switch (link.className){
  4587. case "alive_link": spanElm.addEventListener("mouseover", displayTooltipInfo, false); break
  4588. case "adead_link": spanElm.addEventListener("mouseover", displayTooltipError, false); break;
  4589. case "unava_link": //reserved
  4590. case "prem_link": spanElm.addEventListener("mouseover", displayTooltipError, false); break;
  4591. default:
  4592. }
  4593. }
  4594. link.parentNode.replaceChild(spanElm, link);
  4595. }
  4596.  
  4597. //Assigns result status to the <a> element object and calls delinkifying eventually
  4598. //Possible result states: adead_link, alive_link, unava_link, prem_link
  4599. function displayTheCheckedLink(link, resultStatus)
  4600. {
  4601. link.className = resultStatus;
  4602. link.href = Ref_anonymize_service + link.href;
  4603. if (Display_tooltip_info)
  4604. {
  4605. switch (resultStatus){
  4606. case "alive_link": link.addEventListener("mouseover", displayTooltipInfo, false); break
  4607. case "adead_link": link.addEventListener("mouseover", displayTooltipError, false); break;
  4608. case "unava_link": //reserved
  4609. case "prem_link": link.addEventListener("mouseover", displayTooltipInfo, false); break
  4610. default:
  4611. }
  4612. }
  4613. if (doNotLinkify)
  4614. {
  4615. delinkifyLink(link);
  4616. }
  4617. cLinksProcessed++;
  4618.  
  4619. if (resultStatus == "alive_link")
  4620. {
  4621. cLinksAlive++;
  4622. return;
  4623. }
  4624.  
  4625. if (resultStatus == "adead_link")
  4626. {
  4627. cLinksDead++;
  4628. return;
  4629. }
  4630.  
  4631. if (resultStatus == "unava_link")
  4632. {
  4633. cLinksUnava++;
  4634. }
  4635. if (resultStatus == "prem_link")
  4636. {
  4637. cLinksprem++;
  4638. return;
  4639. }
  4640. }
  4641.  
  4642.  
  4643. function initFileHosts()
  4644. {
  4645.  
  4646. function addObsoleteHost(linkRegex, xpathEx)
  4647. {
  4648. var host = new Array(2);
  4649. host[0] = linkRegex;
  4650. host[1] = xpathEx;
  4651. http_file_hosts_obsolete.push(host);
  4652. }
  4653. // obsolete start
  4654. //obsolete file hosts init start
  4655. if (Obsolete_file_hosts)
  4656. {
  4657. addObsoleteHost("uloz\.cz\/show\/file","//a[contains(@href,'uloz.cz')]");
  4658. addObsoleteHost("storage\\.to\/get","//a[contains(@href,'storage.to')]");
  4659. addObsoleteHost("iskladka\\.cz\/download","//a[contains(@href,'iskladka.cz')]");
  4660. addObsoleteHost("file-rack\\.com\/files","//a[contains(@href,'file-rack.com')]");
  4661. addObsoleteHost("fast-load\\.net\/(\/)?index","//a[contains(@href,'fast-load.net')]");
  4662. addObsoleteHost("subory\\.sk\/download","//a[contains(@href,'subory.sk')]");
  4663. addObsoleteHost("bigandfree\\.com\/\\d+","//a[contains(@href,'bigandfree.com')]");
  4664. addObsoleteHost("fileop\\.com\/\\w+","//a[contains(@href,'fileop.com')]");
  4665. addObsoleteHost("mujsoubor\\.cz\/file\/","//a[contains(@href,'mujsoubor.cz')]");
  4666. addObsoleteHost("sendfile\\.to\/\\w+","//a[contains(@href,'sendfile.to')]");
  4667. addObsoleteHost("superfastfile\\.com\/\\w+","//a[contains(@href,'superfastfile.com')]");
  4668. addObsoleteHost("quickyshare\\.com\/\\w+","//a[contains(@href,'quickyshare.com/')]");
  4669. addObsoleteHost("duckload\\.com\/(?:d|play)","//a[contains(@href,'duckload.com')]");
  4670. addObsoleteHost("uploadstore\\.net\/\\w+","//a[contains(@href,'uploadstore.net')]");
  4671. addObsoleteHost("meinupload\\.com\/dl\/\\d+","//a[contains(@href,'meinupload.com/dl')]");
  4672. addObsoleteHost("dualshare\\.com\/\\w+","//a[contains(@href,'dualshare.com')]");
  4673. addObsoleteHost("2xupload\\.(?:to|de)\/file\/\\w+","//a[contains(@href,'2xupload.to') or contains(@href,'2xupload.de')]");
  4674. addObsoleteHost("oxedion\\.com\/index\\.php\/download\/\\w+","//a[contains(@href,'oxedion.com/index')]");
  4675. addObsoleteHost("uploadline\\.com\/\\d+","//a[contains(@href,'uploadline.com')]");
  4676. addObsoleteHost("dll\\.bz\/file\/\\d+","//a[contains(@href,'dll.bz/file')]");
  4677. addObsoleteHost("movieshare\\.in\/\\w+","//a[contains(@href,'movieshare.in')]");
  4678. addObsoleteHost("milledrive\\.com\/files\/\\d+","//a[contains(@href,'milledrive.com')]");
  4679. addObsoleteHost("quickupload\\.net\/\\w+","//a[contains(@href,'quickupload.net')]");
  4680. addObsoleteHost("safelink\\.in\/\\w+","//a[contains(@href,'safelink.in')]");
  4681. addObsoleteHost("pyramidfiles\\.com\/\\w+","//a[contains(@href,'pyramidfiles.com/')]");
  4682. addObsoleteHost("(?:cloudnator|shragle)\\.com\/files","//a[contains(@href,'cloudnator.com/files') or contains(@href,'shragle.com/files')]");
  4683. addObsoleteHost("batshare\\.com\/\\w+","//a[contains(@href,'batshare.com/')]");
  4684. addObsoleteHost("bitroad\\.net\/download","//a[contains(@href,'bitroad.net/download')]");
  4685. addObsoleteHost("metadivx\\.com\/\\w+","//a[contains(@href,'metadivx.com')]");
  4686. addObsoleteHost("filegaze\\.com\/\\w+","//a[contains(@href,'filegaze.com/')]");
  4687. addObsoleteHost("bulletupload\\.com\/\\w+","//a[contains(@href,'bulletupload.com/')]");
  4688. addObsoleteHost("sharefilehost\\.com\/\\w+","//a[contains(@href,'sharefilehost.com/')]");
  4689. addObsoleteHost("fireuploads\\.net\/\\w+","//a[contains(@href,'fireuploads.net/')]");
  4690. addObsoleteHost("divxlink\\.com\/\\w+","//a[contains(@href,'divxlink.com/')]");
  4691. addObsoleteHost("bzlink\\.us\/\\w+","//a[contains(@href,'bzlink.us/')]");
  4692. addObsoleteHost("filetechnology\\.com\/\\w+","//a[contains(@href,'filetechnology.com/')]");
  4693. addObsoleteHost("filecosy\\.com\/\\w+","//a[contains(@href,'filecosy.com/')]");
  4694. addObsoleteHost("fileserver\\.cc\/\\w+","//a[contains(@href,'fileserver.cc/')]");
  4695. addObsoleteHost("shafiles\\.me\/\\w+","//a[contains(@href,'shafiles.me/')]");
  4696. addObsoleteHost("xfileshare\\.eu\/\\w+","//a[contains(@href,'xfileshare.eu/')]");
  4697. addObsoleteHost("uploadboost\\.com\/\\w+","//a[contains(@href,'uploadboost.com/')]");
  4698. addObsoleteHost("uploadoz\\.com\/\\w+","//a[contains(@href,'uploadoz.com/')]");
  4699. addObsoleteHost("ihostia\\.com\/\\w+","//a[contains(@href,'ihostia.com/')]");
  4700. addObsoleteHost("shareupload\\.com\/\\w+","//a[contains(@href,'shareupload.com/')]");
  4701. addObsoleteHost("ovfile\\.com\/\\w+","//a[contains(@href,'ovfile.com/')]");
  4702. addObsoleteHost("stahuj\\.to\/\\w+","//a[contains(@href,'stahuj.to/')]");
  4703. addObsoleteHost("gigfiles\\.net\/\\w+","//a[contains(@href,'gigfiles.net/')]");
  4704. addObsoleteHost("vidhog\\.com\/\\w+","//a[contains(@href,'vidhog.com/')]");
  4705. addObsoleteHost("filelaser\\.com\/\\w+","//a[contains(@href,'filelaser.com/')]");
  4706. addObsoleteHost("holderfile\\.com\/\\w+","//a[contains(@href,'holderfile.com/')]");
  4707. addObsoleteHost("fileduct\\.(?:com|net)\/\\w+","//a[contains(@href,'fileduct.com/') or contains(@href,'fileduct.net')]");
  4708. addObsoleteHost("filefat\\.com\/\\w+","//a[contains(@href,'filefat.com/')]");
  4709. addObsoleteHost("restfile\\.com\/\\w+","//a[contains(@href,'restfile.com/')]");
  4710. addObsoleteHost("filemashine\\.com\\/download\/\\w+","//a[contains(@href,'filemashine.com/download')]");
  4711. addObsoleteHost("cloudnxt\\.net\/\\w+","//a[contains(@href,'cloudnxt.net/')]");
  4712. addObsoleteHost("uploadrack\\.com\/\\w+","//a[contains(@href,'uploadrack.com')]");
  4713. addObsoleteHost("teradepot\\.com\/\\w+","//a[contains(@href,'teradepot.com')]");
  4714. addObsoleteHost("dataup\\.to\/\\d+\/","//a[contains(@href,'dataup.to')]");
  4715. addObsoleteHost("upit\\.to\/file:\\d+","//a[contains(@href,'upit.to/file')]");
  4716. addObsoleteHost("badongo\\.(?:com|net)\/(?:\\w\\w\/|)(?:vid|cfile|file|pt)\/\\w+","//a[contains(@href,'badongo.com') or contains(@href,'badongo.net')]");
  4717. addObsoleteHost("driveway\\.com\/\\w+","//a[contains(@href,'driveway.com')]");
  4718. addObsoleteHost("eatlime\\.com\/download","//a[contains(@href,'eatlime.com/download')]");
  4719. addObsoleteHost("a2zuploads\\.com\/id\\w+","//a[contains(@href,'a2zuploads.com/id')]");
  4720. addObsoleteHost("friendlyfiles\\.net\/download\/\\w+\/","//a[contains(@href,'friendlyfiles.net/download')]");
  4721. addObsoleteHost("flyfile\\.us\/\\w+","//a[contains(@href,'flyfile.us')]");
  4722. addObsoleteHost("speedyshare\\.com\/\\w+","//a[contains(@href,'speedyshare.com')]");
  4723. addObsoleteHost("brontofile\\.com\/download","//a[contains(@href,'brontofile.com/download')]");
  4724. addObsoleteHost("uploadspace\\.eu\/\\w+","//a[contains(@href,'uploadspace.eu')]");
  4725. addObsoleteHost("fooget\\.com\/\\w+","//a[contains(@href,'fooget.com/')]");
  4726. addObsoleteHost("file-bit.net\/\\w+","//a[contains(@href,'file-bit.net/')]");
  4727. addObsoleteHost("keepfile\\.com\/\\w+","//a[contains(@href,'keepfile.com')]");
  4728. addObsoleteHost("piggyshare\\.com\/file\/\\w+","//a[contains(@href,'piggyshare.com')]");
  4729. addObsoleteHost("filecrown\\.com\/\\w+","//a[contains(@href,'filecrown.com')]");
  4730. addObsoleteHost("6giga\\.com\/\\w+","//a[contains(@href,'6giga.com')]");
  4731. addObsoleteHost("uploadjockey\\.com\/download\/\\w+","//a[contains(@href,'uploadjockey.com/download')]");
  4732. addObsoleteHost("bluehost\\.to\/dl=\\w+","//a[contains(@href,'bluehost.to')]");
  4733. addObsoleteHost("coolshare\\.cz\/stahnout\/\\w+","//a[contains(@href,'coolshare.cz/stahnout')]");
  4734. addObsoleteHost("filegu\\.ru\/f\/\\w+","//a[contains(@href,'filegu.ru/f')]");
  4735. addObsoleteHost("filebase\\.to\/files\/\\d+\/","//a[contains(@href,'filebase.to/files')]");
  4736. addObsoleteHost("kickload\\.com\/(?:file|get)\/","//a[contains(@href,'kickload.com/file') or contains(@href,'kickload.com/get')]");
  4737. addObsoleteHost("up-file\\.com\/files\/download\/\\w+\/","//a[contains(@href,'up-file.com/download')]");
  4738. addObsoleteHost("ezyfile\\.net\/\\w+","//a[contains(@href,'ezyfile.net/')]");
  4739. addObsoleteHost("k2files\\.com\/files","//a[contains(@href,'k2files.com/files')]");
  4740. addObsoleteHost("aiotool\\.net\/\\w+","//a[contains(@href,'aiotool.net/')]");
  4741. addObsoleteHost("xvideos\\.com\/files\/\\d+\/\\w+","//a[contains(@href,'xvideos.com/files')]");
  4742. addObsoleteHost("filebling\\.com\/dl\/\\d+\/\\d+\/\\w+","//a[contains(@href,'filebling.com/dl')]");
  4743. addObsoleteHost("loaded\\.it\/divx\/\\w+","//a[contains(@href,'loaded.it/divx')]");
  4744. addObsoleteHost("uploadcell\\.com\/\\w+\/\\w+","//a[contains(@href,'uploadcell.com')]");
  4745. addObsoleteHost("jakfile\\.com\/\\w+","//a[contains(@href,'jakfile.com/')]");
  4746. addObsoleteHost("uploadshare\\.cz\/download\/\\w+\/\\w+","//a[contains(@href,'uploadshare.cz/download')]");
  4747. addObsoleteHost("mangoshare\\.com\/\\w+","//a[contains(@href,'mangoshare.com')]");
  4748. addObsoleteHost("ugotfile\\.com\/file\/\\d+\/\\w+","//a[contains(@href,'ugotfile.com/file')]");
  4749. addObsoleteHost("filestab\\.com\/\\w+","//a[contains(@href,'filestab.com')]");
  4750. addObsoleteHost("dotavi\\.com\/\\w+\/.","//a[contains(@href,'dotavi.com/')]");
  4751. addObsoleteHost("crazyupload\\.com\/\\w+","//a[contains(@href,'crazyupload.com')]");
  4752. addObsoleteHost("gaiafile\\.com\/\\w+","//a[contains(@href,'gaiafile.com')]");
  4753. addObsoleteHost("sharejunky\\.com\/\\w+","//a[contains(@href,'sharejunky.com')]");
  4754. addObsoleteHost("fileho\\.com\/download\/\\d+","//a[contains(@href,'fileho.com/download')]");
  4755. addObsoleteHost("(?:bigandfree|BigAndFree)\\.com\/\\d+","//a[contains(@href,'bigandfree.com') or contains(@href,'BigAndFree.com')]");
  4756. addObsoleteHost("bigfile\\.in\/\\w+","//a[contains(@href,'bigfile.in')]");
  4757. addObsoleteHost("bigshare\\.eu\/download\\.php\\?id=","//a[contains(@href,'bigshare.eu/download.php')]");
  4758. addObsoleteHost("dahosting\\.org\/dl\/\\w+","//a[contains(@href,'dahosting.org/dl')]");
  4759. addObsoleteHost("digisofts\\.net\/\\w+","//a[contains(@href,'digisofts.net')]");
  4760. addObsoleteHost("file4save\\.com\/\\w+\/\\w+","//a[contains(@href,'file4save.com')]");
  4761. addObsoleteHost("filereactor\\.com\/\\w+","//a[contains(@href,'filereactor.com/')]");
  4762. addObsoleteHost("filechip\\.com\/\\w+","//a[contains(@href,'filechip.com')]");
  4763. addObsoleteHost("filescloud\\.com\/\\w+\/\\w+","//a[contains(@href,'filescloud.com')]");
  4764. addObsoleteHost("saveqube\\.com\/getfile\/\\w+","//a[contains(@href,'saveqube.com/getfile')]");
  4765. addObsoleteHost("www2\\.turboshare\\.de\/v\/\\d+","//a[contains(@href,'turboshare.de/v')]");
  4766. addObsoleteHost("z-upload\\.com\/\\w+","//a[contains(@href,'z-upload.com')]");
  4767. addObsoleteHost("youshare\\.com\/view\\.php","//a[contains(@href,'youshare.com/view')]");
  4768. addObsoleteHost("jiffyupload\\.com\/\\w+","//a[contains(@href,'jiffyupload.com')]");
  4769. addObsoleteHost("gigeshare\\.com\/preview\/\\w+","//a[contains(@href,'gigeshare.com')]");
  4770. addObsoleteHost("datenklo\\.net\/dl","//a[contains(@href,'datenklo.net')]");
  4771. addObsoleteHost("upload\\.dj\/download\\.php\\?id=\\w+","//a[contains(@href,'upload.dj/download.php')]");
  4772. addObsoleteHost("loadfiles\\.in\/\\w+\/","//a[contains(@href,'loadfiles.in')]");
  4773. addObsoleteHost("upit\\.to\/file:\\w+\/","//a[contains(@href,'upit.to/file')]");
  4774. addObsoleteHost("zshare\\.net\/(?:download|video|audio)\/\\w+","//a[contains(@href,'zshare.net/')]");
  4775. addObsoleteHost("refile\\.net\/f\/\\?\\w+","//a[contains(@href,'refile.net/f/')]");
  4776. addObsoleteHost("dsfileshare\\.com\/download","//a[contains(@href,'dsfileshare.com/download')]");
  4777. addObsoleteHost("sharesimple\\.net\/\\w{2}\/download","//a[contains(@href,'sharesimple.net')]");
  4778. addObsoleteHost("(?:s\\d+\\.|)4files\\.net\/\\d+","//a[contains(@href,'4files.net')]");
  4779. addObsoleteHost("odsiebie\\.com\/pokaz\/\\d+","//a[contains(@href,'odsiebie.com/pokaz')]");
  4780. addObsoleteHost("filenavi\\.com\/direct\/\\w+","//a[contains(@href,'filenavi.com/direct')]");
  4781. addObsoleteHost("3oof\\.com\/\\w+","//a[contains(@href,'3oof.com/')]");
  4782. addObsoleteHost("meshwaar\\.com\/\\w+","//a[contains(@href,'meshwaar.com')]");
  4783. addObsoleteHost("maxupload\\.com\/files\/\\w+","//a[contains(@href,'maxupload.com/files')]");
  4784. addObsoleteHost("share\\.cx\/videos\/\\d+","//a[contains(@href,'share.cx/videos')]");
  4785. addObsoleteHost("atserver\\.eu\/(?:\\w{2}\/|)download\/\\d+","//a[contains(@href,'atserver.eu')]");
  4786. addObsoleteHost("file2upload\\.net\/download\/\\d+","//a[contains(@href,'file2upload.net/download')]");
  4787. addObsoleteHost("filebling\\.com\/\\w+","//a[contains(@href,'filebling.com')]");
  4788. addObsoleteHost("turboshare\\.(?:eu|com)\/files","//a[contains(@href,'turboshare.') and contains(@href,'/files')]");
  4789. addObsoleteHost("rarhost\\.com\/download","//a[contains(@href,'rarhost.com/download')]");
  4790. addObsoleteHost("isharehd\\.com\/\\w+","//a[contains(@href,'isharehd.com')]");
  4791. addObsoleteHost("datenklo\\.net\/file\\.php\\?id=\\w+","//a[contains(@href,'datenklo.net/file.php')]");
  4792. addObsoleteHost("file2share\\.biz\/download\\.php\\?id=\\w+","//a[contains(@href,'file2share.biz/download.php')]");
  4793. addObsoleteHost("savefiles\\.net\/d\/\\w+\\.html","//a[contains(@href,'savefiles.net/d')]");
  4794. addObsoleteHost("bestsharing\\.com\/files\/\\w+","//a[contains(@href,'bestsharing.com/files')]");
  4795. addObsoleteHost("filecache\\.de\/\\d+","//a[contains(@href,'filecache.de/')]");
  4796. addObsoleteHost("i741\\.com\/files\/\\w+","//a[contains(@href,'i741.com/files')]");
  4797. addObsoleteHost("dataup\\.de\/\\d+","//a[contains(@href,'dataup.de')]");
  4798. addObsoleteHost("fofly\\.com\/\\w+","//a[contains(@href,'fofly.com')]");
  4799. addObsoleteHost("shareonall\\.com\/\\w+","//a[contains(@href,'shareonall.com')]");
  4800. addObsoleteHost("sexuploader\\.com\/(?:|..\/)\\?[d|v]=\\w{8}","//a[contains(@href,'sexuploader.com')]");
  4801. 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')]");
  4802. addObsoleteHost("uploadhyper\\.com\/file\/","//a[contains(@href,'uploadhyper.com')]");
  4803. addObsoleteHost("filespawn\\.com\/file\/","//a[contains(@href,'filespawn.com')]");
  4804. addObsoleteHost("caizzii\\.com\/(?:download|\\?file=)","//a[contains(@href,'caizzii.com')]");
  4805. addObsoleteHost("volnyweb\\.cz\/files\/get\/[\\w-_]+","//a[contains(@href,'volnyweb.cz/files')]");
  4806. addObsoleteHost("gotupload\\.com\/\\w+","//a[contains(@href,'gotupload.com/')]");
  4807. addObsoleteHost("mooload\\.com\/new\/file\\.php\\?file=files\/\\d+\/\\d+","//a[contains(@href,'mooload.com/new/file')]");
  4808. addObsoleteHost("z\\d+\\.zupload\\.com\/download\\.php\\?file=getfile&filepath=\\d+","//a[contains(@href,'zupload.com/download')]");
  4809. addObsoleteHost("mytempdir\\.com\/\\d+","//a[contains(@href,'mytempdir.com/')]");
  4810. addObsoleteHost("usershare\\.net\/\\w+","//a[contains(@href,'usershare.net/')]");
  4811. addObsoleteHost("qshare\\.com\/get\/\\d+\/.","//a[contains(@href,'qshare.com/get')]");
  4812. addObsoleteHost("filescash\\.net\/file\/\\d+","//a[contains(@href,'filescash.net/file')]");
  4813. addObsoleteHost("metahyper\\.com\/\\w+","//a[contains(@href,'metahyper.com/')]");
  4814. addObsoleteHost("combozip\\.com\/\\w+","//a[contains(@href,'combozip.com/')]");
  4815. addObsoleteHost("anonstream\\.com\/get_\\w+","//a[contains(@href,'anonstream.com/get_')]");
  4816. addObsoleteHost("x7\\.to\/\\w+","//a[contains(@href,'x7.to/')]");
  4817. addObsoleteHost("uploadbox\\.com\/files\/\\w+","//a[contains(@href,'uploadbox.com/files')]");
  4818. addObsoleteHost("(?:flyupload\\.)?(?:enterupload|flyupload)\\.com\/[\\?\\w]+","//a[contains(@href,'enterupload.com/') or contains(@href,'flyupload.com/')]");
  4819. addObsoleteHost("filepoint\\.de\/dl\/\\w+","//a[contains(@href,'filepoint.de/dl')]");
  4820. addObsoleteHost("icushare\\.com\/\\w+","//a[contains(@href,'icushare.com/')]");
  4821. addObsoleteHost("oron\\.com\/\\w+","//a[contains(@href,'oron.com/')]");
  4822. addObsoleteHost("mystream\\.to\/file\\-\\d+","//a[contains(@href,'mystream.to/file')]");
  4823. addObsoleteHost("x-fs\\.com\/download\\.php\\?id=\\w+","//a[contains(@href,'x-fs.com/download')]");
  4824. addObsoleteHost("srapid\\.eu\/\\w+","//a[contains(@href,'srapid.eu/')]");
  4825. addObsoleteHost("shareshared\\.com\/\\w+","//a[contains(@href,'shareshared.com/')]");
  4826. addObsoleteHost("sosame\\.cz\/\\w+","//a[contains(@href,'sosame.cz/')]");
  4827. addObsoleteHost("s\\d+\\.filesdump\\.com\/file\/\\w+","//a[contains(@href,'filesdump.com/file')]");
  4828. addObsoleteHost("2-klicks\\.de\/\\?d=\\w+","//a[contains(@href,'2-klicks.de/?d=')]");
  4829. addObsoleteHost("silofiles\\.com\/file\/\\d+","//a[contains(@href,'silofiles.com/file')]");
  4830. addObsoleteHost("upfile\\.in\/\\w+","//a[contains(@href,'upfile.in/')]");
  4831. addObsoleteHost("filehook\\.com\/\\w+","//a[contains(@href,'filehook.com/')]");
  4832. addObsoleteHost("mojofile\\.com\/\\w+","//a[contains(@href,'mojofile.com/')]");
  4833. addObsoleteHost("cloudcache\\.cc\/\\w+","//a[contains(@href,'cloudcache.cc/')]");
  4834. addObsoleteHost("1hostclick\\.com\/\\w+","//a[contains(@href,'1hostclick.com/')]");
  4835. addObsoleteHost("4bytez\\.com\/\\w+","//a[contains(@href,'4bytez.com/')]");
  4836. addObsoleteHost("uploadking\\.com\/\\w+","//a[contains(@href,'uploadking.com/')]");
  4837. addObsoleteHost("nahraj\\.cz\/(?:content|down)\/\\w+","//a[contains(@href,'nahraj.cz/')]");
  4838. addObsoleteHost("megarapid\\.eu\/files\/\\d+","//a[contains(@href,'megarapid.eu/files')]");
  4839. addObsoleteHost("(?:fileserve|uploadstation)\\.com\/(?:file|list)\/\\w+","//a[contains(@href,'fileserve.com/') or contains(@href,'uploadstation.com/')]");
  4840. addObsoleteHost("uploadhere\\.com\/\\w+","//a[contains(@href,'uploadhere.com/')]");
  4841. addObsoleteHost("dualshare\\.com\/\\w+","//a[contains(@href,'dualshare.com/')]");
  4842. addObsoleteHost("yourfilehost\\.com\/media","//a[contains(@href,'yourfilehost.com/media')]");
  4843. addObsoleteHost("ftp2share\\.com\/file\/\\w+","//a[contains(@href,'ftp2share.com/file')]");
  4844. addObsoleteHost("storeandserve\\.com\/download\/\\d+","//a[contains(@href,'storeandserve.com/download')]");
  4845. addObsoleteHost("mountfile\\.com\/file(?:\/\\w+){2}","//a[contains(@href,'mountfile.com/file')]");
  4846. addObsoleteHost("save\\.am\/files\/\\w+","//a[contains(@href,'save.am/files')]");
  4847. addObsoleteHost("transitfiles\\.com\/dl\/\\w+","//a[contains(@href,'transitfiles.com/dl')]");
  4848. addObsoleteHost("smartuploader\\.com\/file\\.php\\?f=\\d+","//a[contains(@href,'smartuploader.com/file.php?=')]");
  4849. addObsoleteHost("skipfile\\.com\/\\w+","//a[contains(@href,'skipfile.com/')]");
  4850. addObsoleteHost("stahnu\\.to\/[\\w\\?]+","//a[contains(@href,'stahnu.to/')]");
  4851. addObsoleteHost("flyshare\.cz\/(?:stahni\/|)\\d+","//a[contains(@href,'flyshare.cz/')]");
  4852. addObsoleteHost("(?:ddlani\\.me|ddlanime\\.com)\/\\w+","//a[contains(@href,'ddlani.me/') or contains(@href,'ddlanime.com/')]");
  4853. addObsoleteHost("loadly\\.com\/\\w+","//a[contains(@href,'loadly.com/')]");
  4854. addObsoleteHost("groovefile\\.com\/\\w+","//a[contains(@href,'groovefile.com/')]");
  4855. addObsoleteHost("filezlot\\.com\/\\w+","//a[contains(@href,'filezlot.com/')]");
  4856. addObsoleteHost("shareator\\.(?:net|com)\/\\w+","//a[contains(@href,'shareator.')]");
  4857. addObsoleteHost("yabadaba\\.ru\/files\/","//a[contains(@href,'yabadaba.ru/files/')]");
  4858. addObsoleteHost("rapidhide\\.com\/download\\.php\\?file=\\w+","//a[contains(@href,'rapidhide.com/download.php')]");
  4859. addObsoleteHost("filejungle\\.com\/[fl]\/\\w+","//a[contains(@href,'filejungle.com/')]");
  4860. addObsoleteHost("kewlshare\\.com\/dl\/\\d+","//a[contains(@href,'kewlshare.com/dl')]");
  4861. addObsoleteHost("petandrive\\.com\/file\/\\w+","//a[contains(@href,'petandrive.com/file')]");
  4862. addObsoleteHost("onionshare\\.com\/\\w+","//a[contains(@href,'onionshare.com/')]");
  4863. addObsoleteHost("rapidable\\.com\/\\w+\/download\\.php\\?id=","//a[contains(@href,'rapidable.com/')]");
  4864. addObsoleteHost("filesdump\\.com\/file\/\\w+\/\\d+","//a[contains(@href,'filesdump.com/file')]");
  4865. addObsoleteHost("file2box\\.(?:net|com)\/\\w+","//a[contains(@href,'file2box.')]");
  4866. addObsoleteHost("(?:filesonic|sharingmatrix|wupload)(?:\\.\\w+){1,2}\/(?:file|folder)\/\\w+","//a[contains(@href,'filesonic.') or contains(@href,'sharingmatrix.com') or contains(@href,'wupload.')]");
  4867. addObsoleteHost("wizzupload\\.com\/\\w+","//a[contains(@href,'wizzupload.com/')]");
  4868. addObsoleteHost("bloggerarticles\\.com\/\\w+","//a[contains(@href,'bloggerarticles.com/')]");
  4869. addObsoleteHost("mojedata\\.sk/","//a[contains(@href,'mojedata.sk/')]");
  4870. addObsoleteHost("sharpfile\\.com\/\\w+","//a[contains(@href,'sharpfile.com/')]");
  4871. addObsoleteHost("upgrand\\.com\/\\w+","//a[contains(@href,'upgrand.com/')]");
  4872. addObsoleteHost("nasdilej\\.cz\/\\w+","//a[contains(@href,'nasdilej.cz/')]");
  4873. addObsoleteHost("mediatack\\.cz\/stahuj/\\w+","//a[contains(@href,'mediatack.cz/stahuj/')]");
  4874. addObsoleteHost("share-it\\.to\/file/\\w+","//a[contains(@href,'share-it.to/file/')]");
  4875. addObsoleteHost("primeupload\\.com\/file/\\w+","//a[contains(@href,'primeupload.com/file/')]");
  4876. addObsoleteHost("(?:uploads\\.glumbo|glumbouploads)\\.com\/\\w+","//a[contains(@href,'uploads.glumbo.com') or contains(@href,'glumbouploads.com')]");
  4877. addObsoleteHost("filebeer\\.info\/\\w+","//a[contains(@href,'filebeer.info/')]");
  4878. addObsoleteHost("baberepublic\\.com\/link\/\\w+","//a[contains(@href,'baberepublic.com/link/')]");
  4879. addObsoleteHost("xtu\\.me\/\\w+","//a[contains(@href,'xtu.me/')]");
  4880. addObsoleteHost("sharebase\\.de\/files\/\\w+","//a[contains(@href,'sharebase.de/files/')]");
  4881. addObsoleteHost("filerobo\\.com\/\\w+","//a[contains(@href,'filerobo.com/')]");
  4882. addObsoleteHost("filevelocity\\.com\/\\w+","//a[contains(@href,'filevelocity.com/')]");
  4883. addObsoleteHost("filezpro\\.com\/\\w+","//a[contains(@href,'filezpro.com/')]");
  4884. addObsoleteHost("file4sharing\\.com\/\\w+","//a[contains(@href,'file4sharing.com/')]");
  4885. addObsoleteHost("cing\\.be\/\\w+","//a[contains(@href,'cing.be/')]");
  4886. addObsoleteHost("ufile\\.eu\/\\w+","//a[contains(@href,'ufile.eu/')]");
  4887. addObsoleteHost("pigsonic\\.com\/\\w+","//a[contains(@href,'pigsonic.com/')]");
  4888. addObsoleteHost("fileupped\\.com\/\\w+","//a[contains(@href,'fileupped.com/')]");
  4889. addObsoleteHost("sharerun\\.com\/\\w+","//a[contains(@href,'sharerun.com/')]");
  4890. addObsoleteHost("rapidslnare\\.com\/\\w+","//a[contains(@href,'rapidslnare.com/')]");
  4891. addObsoleteHost("monsteruploads\\.eu\/\\w+","//a[contains(@href,'monsteruploads.eu/')]");
  4892. addObsoleteHost("b9bb\\.com\/\\w+","//a[contains(@href,'b9bb.com/')]");
  4893. addObsoleteHost("jamber\\.info\/\\w+","//a[contains(@href,'jamber.info/')]");
  4894. addObsoleteHost("(?:megaftp|MegaFTP)\\.com\/\\w+","//a[contains(@href,'megaftp.com/') or contains(@href,'MegaFTP.com/')]");
  4895. addObsoleteHost("desiupload\\.net\/\\?d=\\w+","//a[contains(@href,'desiupload.net/')]");
  4896. addObsoleteHost("file27\\.com\/\\w+","//a[contains(@href,'file27.com/')]");
  4897. addObsoleteHost("yastorage\\.com\/\\w+","//a[contains(@href,'yastorage.com/')]");
  4898. addObsoleteHost("filehost\\.ws\/\\w+","//a[contains(@href,'filehost.ws/')]");
  4899. addObsoleteHost("copyload\\.com\/\\w+","//a[contains(@href,'copyload.com/')]");
  4900. addObsoleteHost("venusfile\\.com\/\\w+","//a[contains(@href,'venusfile.com/')]");
  4901. addObsoleteHost("aieshare\\.com\/\\w+","//a[contains(@href,'aieshare.com/')]");
  4902. addObsoleteHost("fileza\\.net\/\\w+","//a[contains(@href,'fileza.net/')]");
  4903. addObsoleteHost("filerose\\.com\/\\w+","//a[contains(@href,'filerose.com/')]");
  4904. addObsoleteHost("squillion\\.com\/\\w+","//a[contains(@href,'squillion.com/')]");
  4905. addObsoleteHost("fileprohost\\.com\/\\w+","//a[contains(@href,'fileprohost.com/')]");
  4906. addObsoleteHost("bitbonus\\.com\/download\/\\w+","//a[contains(@href,'bitbonus.com/')]");
  4907. addObsoleteHost("warserver\\.cz\/\\w+","//a[contains(@href,'warserver.cz/')]");
  4908. addObsoleteHost("uload\\.to\/\\w+","//a[contains(@href,'uload.to/')]");
  4909. addObsoleteHost("sharedbit\\.net\/\\w+","//a[contains(@href,'sharedbit.net/')]");
  4910. addObsoleteHost("megaload\\.it\/\\w+","//a[contains(@href,'megaload.it/')]");
  4911. addObsoleteHost("filewinds\\.com\/\\w+","//a[contains(@href,'filewinds.com/')]");
  4912. addObsoleteHost("uploadcore\\.com\/\\w+","//a[contains(@href,'uploadcore.com/')]");
  4913. addObsoleteHost("syfiles\\.com\/\\w+","//a[contains(@href,'syfiles.com/')]");
  4914. addObsoleteHost("eyesfile\\.com\/\\w+","//a[contains(@href,'eyesfile.com/')]");
  4915. addObsoleteHost("hotfile\\.com\/\\w+","//a[contains(@href,'hotfile.com/')]");
  4916. addObsoleteHost("superupl\\.com\/\\w+","//a[contains(@href,'superupl.com/')]");
  4917. addObsoleteHost("oteupload\\.com\/\\w+","//a[contains(@href,'oteupload.com/')]");
  4918. addObsoleteHost("henchfile\\.com\/\\w+","//a[contains(@href,'henchfile.com/')]");
  4919. addObsoleteHost("HenchFile\\.com\/\\w+","//a[contains(@href,'HenchFile.com/')]");
  4920. addObsoleteHost("filegag\\.com\/\\w+","//a[contains(@href,'filegag.com/')]");
  4921. addObsoleteHost("filedefend\\.com\/\\w+","//a[contains(@href,'filedefend.com/')]");
  4922. addObsoleteHost("hotfiles\\.ws\/\\w+","//a[contains(@href,'hotfiles.ws/')]");
  4923. addObsoleteHost("share-rapid\\.com\/\\w+","//a[contains(@href,'share-rapid.com/')]");
  4924. //addObsoleteHost("sharerapid\\.cz\/\\w+","//a[contains(@href,'sharerapid.cz/')]");
  4925. addObsoleteHost("rapids\\.cz\/\\w+","//a[contains(@href,'rapids.cz/')]");
  4926. addObsoleteHost("share-credit\\.cz\/\\w+","//a[contains(@href,'share-credit.cz/')]");
  4927. addObsoleteHost("share-central\\.cz\/\\w+","//a[contains(@href,'share-central.cz/')]");
  4928. addObsoleteHost("share-ms\\.cz\/\\w+","//a[contains(@href,'share-ms.cz/')]");
  4929. addObsoleteHost("share-net\\.cz\/\\w+","//a[contains(@href,'share-net.cz/')]");
  4930. addObsoleteHost("srapid\\.cz\/\\w+","//a[contains(@href,'srapid.cz/')]");
  4931. addObsoleteHost("share-rapid\\.cz\/\\w+","//a[contains(@href,'share-rapid.cz/')]");
  4932. addObsoleteHost("wooupload\\.com\/\\w+","//a[contains(@href,'wooupload.com/')]");
  4933. addObsoleteHost("megabitshare\\.com\/\\w+","//a[contains(@href,'megabitshare.com/')]");
  4934. addObsoleteHost("uploking\\.com\/\\w+","//a[contains(@href,'uploking.com/')]");
  4935. addObsoleteHost("esnips\\.com\/\\w+","//a[contains(@href,'esnips.com/')]");
  4936. addObsoleteHost("uplly\\.com\/\\w+","//a[contains(@href,'uplly.com/')]");
  4937. addObsoleteHost("ufox\\.com\/\\w+","//a[contains(@href,'ufox.com/')]");
  4938. addObsoleteHost("ryushare\\.com\/\\w+","//a[contains(@href,'ryushare.com/')]");
  4939. addObsoleteHost("clz\\.to\/\\w+","//a[contains(@href,'clz.to/')]");
  4940. addObsoleteHost("cloudzer\\.net\/\\w+","//a[contains(@href,'cloudzer.net/')]");
  4941. addObsoleteHost("cloudzer\\.com\/\\w+","//a[contains(@href,'cloudzer.com/')]");
  4942. addObsoleteHost("extabit\\.com\/\\w+","//a[contains(@href,'extabit.com/')]");
  4943. addObsoleteHost("uploadwaste\\.com\/\\w+","//a[contains(@href,'uploadwaste.com/')]");
  4944. }
  4945. //obsolete file hosts init end
  4946.  
  4947. function addFileHost(linkRegex, isAliveRegex, isDeadRegex, isUnavaRegex, xpathEx, tryLoop, ispremRegex)
  4948. {
  4949. var host = new Array(7);
  4950. host[0] = linkRegex;
  4951. host[1] = isAliveRegex;
  4952. host[2] = isDeadRegex;
  4953. host[3] = isUnavaRegex;
  4954. host[6] = ispremRegex;
  4955. host[4] = xpathEx;
  4956. tryLoop ? host[5] = true : host[5] = false;
  4957. http_file_hosts.push(host);
  4958. }
  4959. if (GM_getValue("Check_megafileupload_dot_com_links", false))
  4960. {
  4961. addFileHost(
  4962. "megafileupload\.com\/..\/file\/",
  4963. 'downloadbtn',
  4964. 'is not found',
  4965. 'optional--',
  4966. "//a[contains(@href,'megafileupload.com')]");
  4967. }
  4968. if (GM_getValue("Check_demo_dot_ovh_dot_com_links", false))
  4969. {
  4970. addFileHost(
  4971. "demo\\.ovh\\.com\/\\w+\/\\w+",
  4972. 'download\\.gif"',
  4973. 'p_point">',
  4974. 'optional--',
  4975. "//a[contains(@href,'demo.ovh.com')]");
  4976. }
  4977. if (GM_getValue("Check_safelinking_dot_net_links", false))
  4978. {
  4979. addFileHost(
  4980. "safelinking\\.net\/p\/\\w+",
  4981. 'color:green;"',
  4982. 'color:(?:red|orange);"',
  4983. 'color:(?:grey|brown);"',
  4984. "//a[contains(@href,'safelinking.net/p/')]",
  4985. true);
  4986. }
  4987. if (GM_getValue("Check_ultramegabit_dot_com_links", false))
  4988. {
  4989. addFileHost(
  4990. "ultramegabit\\.com\/file\/details\/[\\w+-]",
  4991. 'name="recaptcha_response',
  4992. '="/folder/add"|>File (?:not found|restricted|has been deleted)|<title>ULTRAMEGABIT</title>',
  4993. 'btn-large btn-danger">|Account limitation notice|502 Bad Gateway',
  4994. "//a[contains(@href,'ultramegabit.com/file')]",
  4995. true);
  4996. }
  4997. if (GM_getValue("Check_fastshare_dot_cz_links", false))
  4998. {
  4999. addFileHost(
  5000. "fastshare\\.cz\/\\d+\/\\w*",
  5001. 'dwntable">',
  5002. 'nebyla nalezena|nebola nájdená|nie została odnaleziona|color:red;font-weight:bold;border\\-style:dashed',
  5003. 'optional--',
  5004. "//a[contains(@href,'fastshare.cz')]");
  5005. }
  5006. if (GM_getValue("Check_fastshare_dot_org_links", false))
  5007. {
  5008. addFileHost(
  5009. "[fF]ast[sS]hare\\.org\/download",
  5010. 'Download ">',
  5011. 'Diese Datei wurde wegen|wurde kein Dateiname',
  5012. 'optional--',
  5013. "//a[contains(@href,'fastshare.org/download') or contains(@href,'FastShare.org/download')]");
  5014. }
  5015. if (GM_getValue("Check_partage_dash_facile_dot_com_links", false))
  5016. {
  5017. addFileHost(
  5018. "partage-facile\.com\/\\w+",
  5019. 'class="title"><strong>|colspan="2"',
  5020. 'Page introuvable|class="alert-message',
  5021. 'optional--',
  5022. "//a[contains(@href,'partage-facile.com')]");
  5023. }
  5024. if (GM_getValue("Check_uploadorb_dot_com_links", false))
  5025. {
  5026. addFileHost(
  5027. "uploadorb\\.com\/\\w+",
  5028. 'op" value="download',
  5029. 'class="err">|width:500px;text-align:left;">',
  5030. 'optional--',
  5031. "//a[contains(@href,'uploadorb.com')]");
  5032. }
  5033. if (GM_getValue("Check_1fichier_dot_com_links", false))
  5034. {
  5035. addFileHost(
  5036. "\\w{10}\\.(?:1fichier|dl4free)\\.com\/",
  5037. 'form-button" name="submit"',
  5038. 'margin:auto;padding-bottom:20px">',
  5039. 'optional--',
  5040. "//a[contains(@href,'1fichier.com/') or contains(@href,'dl4free.com/')]"
  5041. );
  5042. }
  5043. if (GM_getValue("Check_rapidgator_dot_net_links", false))
  5044. {
  5045. addFileHost(
  5046. "rapidgator\\.net\/file\/\\w+",
  5047. '/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',
  5048. 'Error 404|File not found',
  5049. 'optional--',
  5050. //'optional--',
  5051. "//a[contains(@href,'rapidgator.net/file')]",
  5052. true
  5053. );
  5054. }
  5055. if (GM_getValue("Check_bayfiles_dot_com_links", false))
  5056. {
  5057. addFileHost(
  5058. "bayfiles\\.com\/file\/\\w+\/\\w+",
  5059. 'download\\-header">',
  5060. 'class="not-found">',
  5061. 'optional--',
  5062. "//a[contains(@href,'bayfiles.com/file')]"
  5063. );
  5064. }
  5065. if (GM_getValue("Check_erofly_dot_cz_links", false))
  5066. {
  5067. addFileHost(
  5068. "erofly\\.(?:cz|sk|pl)\/\\d+_\\w*",
  5069. 'down-button">',
  5070. 'dokument nebyl nalezen|nie został znaleziony|nebol nájdený',
  5071. 'optional--',
  5072. "//a[contains(@href,'erofly.')]"
  5073. );
  5074. }
  5075. if (GM_getValue("Check_relink_dot_us_links", false))
  5076. {
  5077. addFileHost(
  5078. "relink\\.us\/(?:f\/\\w+|go\\.php\\?id=\\d+|view\\.php\\?id=\\d+)",
  5079. 'online_detail\\.png" alt="Status',
  5080. '(?:offline|partially)_detail\\.png" alt="Status|File deleted',
  5081. 'unknown_detail\\.png" alt="Status',
  5082. "//a[contains(@href,'relink.us/')]"
  5083. );
  5084. }
  5085. if (GM_getValue("Check_uploadstube_dot_de_links", false))
  5086. {
  5087. addFileHost(
  5088. "uploadstube\\.de\/download\\.php\\?file=\\d+",
  5089. 'div id="dl"',
  5090. 'Sie haben den Link falsch',
  5091. 'optional--',
  5092. "//a[contains(@href,'uploadstube.de/download.php?file=')]"
  5093. );
  5094. }
  5095. if (GM_getValue("Check_flyfiles_dot_net_links", false))
  5096. {
  5097. addFileHost(
  5098. "flyfiles\\.net\/\\w+",
  5099. 'download_button"|"Download file"',
  5100. 'File not found!|Файл не найден',
  5101. 'optional--',
  5102. "//a[contains(@href,'flyfiles.net/')]"
  5103. );
  5104. }
  5105. if (GM_getValue("Check_wikiupload_dot_com_links", false))
  5106. {
  5107. addFileHost(
  5108. "wikiupload\\.com\/\\w+",
  5109. 'download-button">',
  5110. 'Sorry, File not found',
  5111. 'optional--',
  5112. "//a[contains(@href,'wikiupload.com/')]"
  5113. );
  5114. }
  5115. if (GM_getValue("Check_hostuje_dot_net_links", false))
  5116. {
  5117. addFileHost(
  5118. "hostuje\\.net\/file\\.php\\?id=\\w+",
  5119. 'file\\.php">',
  5120. 'Podany plik nie zosta',
  5121. 'optional--',
  5122. "//a[contains(@href,'hostuje.net/file')]"
  5123. );
  5124. }
  5125. if (GM_getValue("Check_gettyfile_dot_ru_links", false))
  5126. {
  5127. addFileHost(
  5128. "gettyfile\\.ru\/\\d+",
  5129. 'download\\.gif border',
  5130. '<center><font size="3">',
  5131. 'optional--',
  5132. "//a[contains(@href,'gettyfile.ru/')]"
  5133. );
  5134. }
  5135. if (GM_getValue("Check_4fastfile_dot_com_links", false))
  5136. {
  5137. addFileHost(
  5138. "4fastfile\\.com\/abv-fs\/\\d+",
  5139. 'file-download">',
  5140. 'v><div id="block',
  5141. 'optional--',
  5142. "//a[contains(@href,'4fastfile.com/abv')]"
  5143. );
  5144. }
  5145. if (GM_getValue("Check_slingfile_dot_com_links", false))
  5146. {
  5147. addFileHost(
  5148. "slingfile\\.com\/(?:dl|file|video)\/\\w+",
  5149. 'fileinfo">',
  5150. 'errorbox">',
  5151. 'optional--',
  5152. "//a[contains(@href,'slingfile.com/')]"
  5153. );
  5154. }
  5155. if (GM_getValue("Check_limelinx_dot_com_links", false))
  5156. {
  5157. addFileHost(
  5158. "limelinx\\.com\/files\/\\w+",
  5159. 'FileDetails">',
  5160. 'File Not Found<',
  5161. 'optional--',
  5162. "//a[contains(@href,'limelinx.com/files')]"
  5163. );
  5164. }
  5165. if (GM_getValue("Check_tufiles_dot_ru_links", false))
  5166. {
  5167. addFileHost(
  5168. "(?:tufiles|turbob1t|failoobmenik|filesmail|firebit|dlbit|files\\.china\\-gsm|3aka4aem|file\\.piratski|mnogofiles|links-free|turbo-bit|turbosfiles)\\.\\w+\/\\w+",
  5169. 'download\\-file">',
  5170. 'col-1">\\s*<h1>',
  5171. 'optional--',
  5172. "//a[contains(@href,'tufiles.ru/') or contains(@href,'turbob1t.ru/') or contains(@href,'filesmail.ru/') or contains(@href,'failoobmenik.ru/')"+
  5173. " or contains(@href,'firebit.in/') or contains(@href,'dlbit.net/') or contains(@href,'files.china-gsm.ru/') or contains(@href,'3aka4aem.ru/')"+
  5174. " or contains(@href,'file.piratski.ru/') or contains(@href,'mnogofiles.com/') or contains(@href,'links-free.ru/')"+
  5175. " or contains(@href,'turbo-bit.ru/') or contains(@href,'turbosfiles.ru/')]"
  5176. );
  5177. }
  5178. if (GM_getValue("Check_fileshare_dot_in_dot_ua_links", false))
  5179. {
  5180. addFileHost(
  5181. "fileshare\\.in\\.ua\/\\w+",
  5182. '"file_name ',
  5183. 'df_content">',
  5184. 'optional--',
  5185. "//a[contains(@href,'fileshare.in.ua')]"
  5186. );
  5187. }
  5188. if (GM_getValue("Check_data_dot_hu_links", false))
  5189. {
  5190. addFileHost(
  5191. "data\\.hu\/get\/\\d+\/",
  5192. 'download_box_button',
  5193. 'missing\\.php',
  5194. 'optional--',
  5195. "//a[contains(@href,'data.hu/get')]",
  5196. true
  5197. );
  5198. }
  5199. if (GM_getValue("Check_filesmelt_dot_com_links", false))
  5200. {
  5201. addFileHost(
  5202. "filesmelt\\.com\/dl\/\\w+",
  5203. '(Your download is ready|Download File)',
  5204. 'Sorry, but your',
  5205. 'optional--',
  5206. "//a[contains(@href,'filesmelt.com/dl')]"
  5207. );
  5208. }
  5209. if (GM_getValue("Check_packupload_dot_com_links", false))
  5210. {
  5211. addFileHost(
  5212. "packupload\\.com\/\\w+",
  5213. 'buttonDelay"',
  5214. 'bold; color: #ff0000',
  5215. 'optional--',
  5216. "//a[contains(@href,'packupload.com/')]"
  5217. );
  5218. }
  5219. if (GM_getValue("Check_minus_dot_com_links", false))
  5220. {
  5221. addFileHost(
  5222. "minus\\.com\/\\w+",
  5223. 'btn-download no-counter"',
  5224. 'cloud picture"',
  5225. 'optional--',
  5226. "//a[contains(@href,'minus.com/')]"
  5227. );
  5228. }
  5229. if (GM_getValue("Check_indowebster_dot_com_links", false))
  5230. {
  5231. addFileHost(
  5232. "(?:files\\.)?indowebster\\.com\/download\/\\w+\/",
  5233. 'premiumBtn"',
  5234. 'errorMessage"',
  5235. 'optional--',
  5236. "//a[contains(@href,'indowebster.com/download')]"
  5237. );
  5238. }
  5239. if (GM_getValue("Check_superload_dot_cz_links", false))
  5240. {
  5241. addFileHost(
  5242. "superload\\.cz\/dl\/\\w+",
  5243. 'icon-download">',
  5244. 'soubor nebyl nalezen',
  5245. 'optional--',
  5246. "//a[contains(@href,'superload.cz/dl')]"
  5247. );
  5248. }
  5249. if (GM_getValue("Check_hulkfile_dot_eu_links", false))
  5250. {
  5251. addFileHost(
  5252. "(?:w\\.hulkfile\\.com|hulkfile\\.eu)\/\\w+",
  5253. 'op" value="download',
  5254. 'class="err">|width:500px;text-align:left;">',
  5255. 'optional--',
  5256. "//a[contains(@href,'hulkfile.')]"
  5257. );
  5258. }
  5259. if (GM_getValue("Check_filesector_dot_cc_links", false))
  5260. {
  5261. addFileHost(
  5262. "filesector\\.cc\/f\/\\w+",
  5263. 'script>\\s*<div style="width',
  5264. 'div>\\s*<div style="width',
  5265. 'optional--',
  5266. "//a[contains(@href,'filesector.cc/f')]"
  5267. );
  5268. }
  5269. if (GM_getValue("Check_easybytez_dot_com_links", false))
  5270. {
  5271. addFileHost(
  5272. "easybytez\\.com\/\\w+",
  5273. 'op" value="download',
  5274. 'stop_error\\.gif',
  5275. 'optional--',
  5276. "//a[contains(@href,'easybytez.com/')]"
  5277. );
  5278. }
  5279. if (GM_getValue("Check_uptorch_dot_com_links", false))
  5280. {
  5281. addFileHost(
  5282. "uptorch\\.com\/\\?d=\\w+",
  5283. 'downloadbtn"',
  5284. 'class="error">',
  5285. 'optional--',
  5286. "//a[contains(@href,'uptorch.com/?d=')]"
  5287. );
  5288. }
  5289. if (GM_getValue("Check_filestore_dot_com_dot_ua_links", false))
  5290. {
  5291. addFileHost(
  5292. "filestore\\.com\\.ua\/\\?d=\\w+",
  5293. 'tdrow1>',
  5294. 'class=warn',
  5295. 'optional--',
  5296. "//a[contains(@href,'filestore.com.ua/?d=')]"
  5297. );
  5298. }
  5299. if (GM_getValue("Check_netkups_dot_com_links", false))
  5300. {
  5301. addFileHost(
  5302. "netkups\\.com\/\\?d=\\w+",
  5303. 'submit">Continue',
  5304. 'page">File not found|deleted due to inactivity',
  5305. 'optional--',
  5306. "//a[contains(@href,'netkups.com/?d=')]"
  5307. );
  5308. }
  5309. if (GM_getValue("Check_openfile_dot_ru_links", false))
  5310. {
  5311. addFileHost(
  5312. "openfile\\.ru\/(?:video\/|)\\d+",
  5313. 'videobox_left">',
  5314. 'blog_title">|not found on this server',
  5315. 'optional--',
  5316. "//a[contains(@href,'openfile.ru/')]"
  5317. );
  5318. }
  5319. if (GM_getValue("Check_extmatrix_dot_com_links", false))
  5320. {
  5321. addFileHost(
  5322. "extmatrix\\.com\/files\/\\w+",
  5323. 'div class="success"',
  5324. 'div class="error"',
  5325. 'optional--',
  5326. "//a[contains(@href,'extmatrix.com/files')]"
  5327. );
  5328. }
  5329. if (GM_getValue("Check_sendfiles_dot_nl_links", false))
  5330. {
  5331. addFileHost(
  5332. "sendfiles\\.nl\/download.aspx\\?ID=\\w+",
  5333. 'content_lnkDownload',
  5334. 'error\\.aspx\\?',
  5335. 'optional--',
  5336. "//a[contains(@href,'sendfiles.nl/download.aspx')]"
  5337. );
  5338. }
  5339. if (GM_getValue("Check_freeuploads_dot_fr_links", false))
  5340. {
  5341. addFileHost(
  5342. "(?:freeuploads\\.fr|uploa\\.dk)\/\\?d=\\d+",
  5343. 'freeuploads\\.fr\/download\/',
  5344. 'text-align:left;margin:10px;">',
  5345. 'optional--',
  5346. "//a[contains(@href,'freeuploads.fr/?d=') or contains(@href,'uploa.dk/?d=')]"
  5347. );
  5348. }
  5349. if (GM_getValue("Check_sockshare_dot_com_links", false))
  5350. {
  5351. addFileHost(
  5352. "sockshare\\.com\/file\/\\w+",
  5353. 'choose_speed">',
  5354. 'message t_0\'>',
  5355. 'optional--',
  5356. "//a[contains(@href,'sockshare.com/file')]"
  5357. );
  5358. }
  5359. if (GM_getValue("Check_yourfilestore_dot_com_links", false))
  5360. {
  5361. addFileHost(
  5362. "yourfilestore\\.com\/download\/\\d+\/",
  5363. 'download_data">',
  5364. 'may have been deleted|<h1>Sorry!<\/h1>',
  5365. 'optional--',
  5366. "//a[contains(@href,'yourfilestore.com/download')]"
  5367. );
  5368. }
  5369. if (GM_getValue("Check_nekaka_dot_com_links", false))
  5370. {
  5371. addFileHost(
  5372. "nekaka\\.com\/d\/[\\w-]+",
  5373. 'downloadForm">',
  5374. 'invalid file link',
  5375. 'optional--',
  5376. "//a[contains(@href,'nekaka.com/d')]"
  5377. );
  5378. }
  5379. if (GM_getValue("Check_filebig_dot_net_links", false))
  5380. {
  5381. addFileHost(
  5382. "filebig\\.net\/files\/\\w+",
  5383. 'downloadFile">',
  5384. '<p>File not found<\/p>',
  5385. 'optional--',
  5386. "//a[contains(@href,'filebig.net/files')]"
  5387. );
  5388. }
  5389. if (GM_getValue("Check_gamefront_dot_com_links", false))
  5390. {
  5391. addFileHost(
  5392. "files\\.filefront\\.com\/\/;\\d+;;",
  5393. 'downloadLink">',
  5394. 'File not found, you',
  5395. 'optional--',
  5396. "//a[contains(@href,'files.filefront.com')]"
  5397. );
  5398.  
  5399. addFileHost(
  5400. "gamefront\\.com\/files\/\\d+",
  5401. 'downloadLink">',
  5402. 'File not found, you',
  5403. 'optional--',
  5404. "//a[contains(@href,'gamefront.com/files')]"
  5405. );
  5406. }
  5407. if (GM_getValue("Check_hyperfileshare_dot_com_links", false))
  5408. {
  5409. addFileHost(
  5410. "(?:download\\.|)hyperfileshare\\.com\/(?:download\\.php\\?code=|d\/)\\w+",
  5411. 'dnlLnk"',
  5412. 'already been deleted',
  5413. 'optional--',
  5414. "//a[contains(@href,'hyperfileshare.com/download') or contains(@href,'hyperfileshare.com/d')]"
  5415. );
  5416. }
  5417. if (GM_getValue("Check_premiuns_dot_org_links", false))
  5418. {
  5419. addFileHost(
  5420. "premiuns\\.org\/\\w+",
  5421. 'op" value="download',
  5422. 'class="err">|width:500px;text-align:left;">',
  5423. 'optional--',
  5424. "//a[contains(@href,'premiuns.org/')]"
  5425. );
  5426. }
  5427. if (GM_getValue("Check_hellupload_dot_com_links", false))
  5428. {
  5429. addFileHost(
  5430. "hellupload\\.com\/\\w+",
  5431. '<h3>Download File<br',
  5432. 'id="podstrona">|AVOID_IE_BUG',
  5433. 'optional--',
  5434. "//a[contains(@href,'hellupload.com/')]"
  5435. );
  5436. }
  5437. if (GM_getValue("Check_free_dash_uploading_dot_com_links", false))
  5438. {
  5439. addFileHost(
  5440. "free\\-uploading\\.com\/\\w+",
  5441. 'op" value="download',
  5442. 'class="err">|width:500px;text-align:left;">',
  5443. 'optional--',
  5444. "//a[contains(@href,'free-uploading.com/')]"
  5445. );
  5446. }
  5447. if (GM_getValue("Check_toucansharing_dot_com_links", false))
  5448. {
  5449. addFileHost(
  5450. "toucansharing\\.com\/\\w+",
  5451. 'op" value="download',
  5452. 'class="err">|width:500px;text-align:left;">',
  5453. 'optional--',
  5454. "//a[contains(@href,'toucansharing.com/')]"
  5455. );
  5456. }
  5457. if (GM_getValue("Check_2download_dot_de_links", false))
  5458. {
  5459. addFileHost(
  5460. "2download\\.de\/download\\-",
  5461. 'button_dl\\.png',
  5462. '"error">',
  5463. 'optional--',
  5464. "//a[contains(@href,'2download.de/download-')]"
  5465. );
  5466. }
  5467. if (GM_getValue("Check_fileape_dot_com_links", false))
  5468. {
  5469. addFileHost(
  5470. "fileape\\.com\/download\\-",
  5471. 'button_dl\\.png',
  5472. 'does not exist\\.',
  5473. 'optional--',
  5474. "//a[contains(@href,'fileape.com/')]"
  5475. );
  5476. }
  5477. if (GM_getValue("Check_uppit_dot_com_links", false))
  5478. {
  5479. addFileHost(
  5480. "(?:uppit\\.com|up\\.ht)\/\\w+",
  5481. 'op" value="download',
  5482. 'class="err">|style="width:500px;text-align:left;"|fish-404\\.png"',
  5483. 'optional--',
  5484. "//a[contains(@href,'up.ht/') or contains(@href,'uppit.com/')]",
  5485. true
  5486. );
  5487. }
  5488. if (GM_getValue("Check_maxshare_dot_pl_links", false))
  5489. {
  5490. addFileHost(
  5491. "maxshare\\.pl\/download\\.php\\?dl=\\w+",
  5492. 'class="pobierz"',
  5493. 'class="wyszuskiwarkabg"',
  5494. 'optional--',
  5495. "//a[contains(@href,'maxshare.pl/download.php')]",
  5496. true
  5497. );
  5498. }
  5499. if (GM_getValue("Check_nosupload_dot_com_links", false))
  5500. {
  5501. addFileHost(
  5502. "nosupload\\.com\/(?:\\?d=)?\\w+",
  5503. 'op" value="download',
  5504. '>File Not Found<',
  5505. 'optional--',
  5506. "//a[contains(@href,'nosupload.com')]",
  5507. true
  5508. );
  5509. }
  5510. if (GM_getValue("Check_filesin_dot_com_links", false))
  5511. {
  5512. addFileHost(
  5513. "filesin\\.com\/\\w+\/download\\.html",
  5514. 'download_area">',
  5515. 'error_note">',
  5516. 'optional--',
  5517. "//a[contains(@href,'filesin.com/')]",
  5518. true
  5519. );
  5520. }
  5521. if (GM_getValue("Check_nowdownload_dot_eu_links", false))
  5522. {
  5523. addFileHost(
  5524. "nowdownload\\.eu\/dl\/\\w+",
  5525. 'alert-success"',
  5526. 'This file does not exist!',
  5527. 'The file is being transfered',
  5528. "//a[contains(@href,'nowdownload.eu/dl')]"
  5529. );
  5530. }
  5531. if (GM_getValue("Check_egofiles_dot_com_links", false))
  5532. {
  5533. addFileHost(
  5534. "egofiles\\.com\/\\w+",
  5535. 'dwn-button"',
  5536. '404 File not found',
  5537. 'optional--',
  5538. "//a[contains(@href,'egofiles.com/')]"
  5539. );
  5540. }
  5541. if (GM_getValue("Check_axifile_dot_com_links", false))
  5542. {
  5543. addFileHost(
  5544. "axifile\\.com(?:\/\w(2))?\/\\??\\w+",
  5545. 'Dbutton_big"',
  5546. 'download\\-error\\.php',
  5547. 'optional--',
  5548. "//a[contains(@href,'axifile.com/')]"
  5549. );
  5550. }
  5551. if (GM_getValue("Check_asfile_dot_com_links", false))
  5552. {
  5553. addFileHost(
  5554. "asfile\\.com\/file\/\\w+",
  5555. '<div class="red_button ">',
  5556. 'Page not found|padding: 0 200px 300px;">|does not exist|>File is deleted<|Delete Reason: Self removed',
  5557. 'optional--',
  5558. "//a[contains(@href,'asfile.com/file')]"
  5559. );
  5560. }
  5561. if (GM_getValue("Check_hulkshare_dot_com_links", false))
  5562. {
  5563. addFileHost(
  5564. "hulkshare\.com\/\\w+",
  5565. 'download\.sam\.png|This is a private file|id="filename',
  5566. 'File does not exist|fingerprint protected copyright',
  5567. 'optional--',
  5568. "//a[contains(@href,'hulkshare.com')]"
  5569. );
  5570. }
  5571. if (GM_getValue("Check_filedino_dot_com_links", false))
  5572. {
  5573. addFileHost(
  5574. "filedino\\.com\\/\\w+",
  5575. 'runninggreen"',
  5576. 'width:500px;|File Not Found',
  5577. 'optional--',
  5578. "//a[contains(@href,'filedino.com')]"
  5579. );
  5580. }
  5581. if (GM_getValue("Check_turbobit_dot_net_links", false)) //folders
  5582. {
  5583. addFileHost(
  5584. "turbobit\\.(?:net|pl)\/download\/folder\/\\d+",
  5585. 'col-1">\\s*<s',
  5586. 'col-1">\\s*<h',
  5587. 'optional--',
  5588. "//a[contains(@href,'turbobit.') and contains(@href,'download/folder')]"
  5589. );
  5590. }
  5591. if (GM_getValue("Check_hitfile_dot_net_links", false)) //folders
  5592. {
  5593. addFileHost(
  5594. "hitfile\\.net\/download\/folder\/\\d+",
  5595. 'content">\\s*<s',
  5596. 'content">\\s*<h',
  5597. 'optional--',
  5598. "//a[contains(@href,'hitfile.net/download/folder')]"
  5599. );
  5600. }
  5601. if (GM_getValue("Check_netload_dot_in_links", false)) //folders
  5602. {
  5603. addFileHost(
  5604. "netload\\.in\/folder\\.php\\?folder_id=\\w+",
  5605. 'images\/online\\.gif',
  5606. 'InPage_Error"',
  5607. 'optional--',
  5608. "//a[contains(@href,'netload.in/folder.php')]"
  5609. );
  5610. }
  5611. if (GM_getValue("Check_movshare_dot_net_links", false))
  5612. {
  5613. addFileHost(
  5614. "movshare\\.net\\/video\\/\\w+",
  5615. 'optional--"',
  5616. 'no longer exists',
  5617. 'optional--',
  5618. "//a[contains(@href,'movshare.net/video')]"
  5619. );
  5620. }
  5621. if (GM_getValue("Check_plunder_dot_com_links", false))
  5622. {
  5623. addFileHost(
  5624. "plunder\.com\/\\w+",
  5625. 'x\/download\\.gif',
  5626. '404 - File or directory not found.',
  5627. 'optional--',
  5628. "//a[contains(@href,'plunder.com')]"
  5629. );
  5630. }
  5631. if (GM_getValue("Check_mafiastorage_dot_com_links", false))
  5632. {
  5633. addFileHost(
  5634. "mafiastorage\\.com\/\\w+",
  5635. 'op" value="download',
  5636. 'class="err">|style="width:500px;text-align:left;"',
  5637. 'optional--',
  5638. "//a[contains(@href,'mafiastorage.com/')]"
  5639. );
  5640. }
  5641. if (GM_getValue("Check_uploadspace_dot_pl_links", false))
  5642. {
  5643. addFileHost(
  5644. "uploadspace\.pl\/plik\\w+",
  5645. 'Downloading .+? \\|',
  5646. 'Downloading a file',
  5647. 'optional--',
  5648. "//a[contains(@href,'uploadspace.pl/plik')]"
  5649. );
  5650. }
  5651. if (GM_getValue("Check_hipfile_dot_com_links", false))
  5652. {
  5653. addFileHost(
  5654. "hipfile\\.com\/\\w+",
  5655. 'op" value="download',
  5656. 'File Not Found<',
  5657. 'optional--',
  5658. "//a[contains(@href,'hipfile.com')]"
  5659. );
  5660. }
  5661. if (GM_getValue("Check_uploadingit_dot_com_links", false))
  5662. {
  5663. addFileHost(
  5664. "uploadingit\\.com\/file\/\\w+",
  5665. 'downloadTitle">',
  5666. 'deleteContent">',
  5667. 'optional--',
  5668. "//a[contains(@href,'uploadingit.com/file')]"
  5669. );
  5670. }
  5671. if (GM_getValue("Check_rapidshare_dot_ru_links", false))
  5672. {
  5673. addFileHost(
  5674. "rapidshare\\.ru\/\\d+",
  5675. 'Вы хотите скачать файл:',
  5676. 'Ошибка: Файл был',
  5677. 'optional--',
  5678. "//a[contains(@href,'rapidshare.ru/')]"
  5679. );
  5680. }
  5681. if (GM_getValue("Check_rghost_dot_net_links", false))
  5682. {
  5683. addFileHost(
  5684. "rghost\.(?:net|ru)\/(?:|private\/)\\d+",
  5685. 'download_link|btn large download"',
  5686. 'file is restricted|File is deleted|503 Service Unavailable',
  5687. 'File was deleted',
  5688. "//a[contains(@href,'rghost.')]"
  5689. );
  5690. }
  5691. if (GM_getValue("Check_xdisk_dot_cz_links", false))
  5692. {
  5693. addFileHost(
  5694. "xdisk\\.cz\/(?:..\/)?download\\.php\\?id=\\w+",
  5695. '">Staženo:\\s*<\/span>',
  5696. 'Soubor, který hledáte nenalezen',
  5697. 'optional--',
  5698. "//a[contains(@href,'xdisk.cz/')]"
  5699. );
  5700. }
  5701. if (GM_getValue("Check_expressleech_dot_com_links", false))
  5702. {
  5703. addFileHost(
  5704. "expressleech\.com\/\\w+",
  5705. 'src="/img/Download.gif"|var _gaq =',
  5706. 'var rr =|403 Forbidden',
  5707. 'optional--',
  5708. "//a[contains(@href,'expressleech.com')]");
  5709. }
  5710. if (GM_getValue("Check_2downloadz_dot_com_links", false))
  5711. {
  5712. addFileHost(
  5713. "2downloadz\.com\/\\w+",
  5714. 'color="#848484|src="images/Download.png"|color:#238DCA',
  5715. 'color="#006DCC|File error',
  5716. 'optional--',
  5717. "//a[contains(@href,'2downloadz.com')]");
  5718. }
  5719. if (GM_getValue("Check_megafiles_dot_se_links", false))
  5720. {
  5721. addFileHost(
  5722. "megafiles\.se\/\\w+",
  5723. 'solvemedia.com',
  5724. '"BACKGROUND-COLOR: blue"|File Not Found',
  5725. 'optional--',
  5726. "//a[contains(@href,'megafiles.se')]");
  5727. }
  5728. if (GM_getValue("Check_davvas_dot_com_links", false))
  5729. {
  5730. addFileHost(
  5731. "davvas\.com\/\\w+",
  5732. 'width="830px|color:#29b2e0',
  5733. 'var rr =|width:500px',
  5734. 'optional--',
  5735. "//a[contains(@href,'davvas.com')]");
  5736. }
  5737. if (GM_getValue("Check_fileom_dot_com_links", false))
  5738. {
  5739. addFileHost(
  5740. "fileom\.com\/\\w+",
  5741. 'Filename:|<span class="size">',
  5742. 'File Not Found|class="err">',
  5743. 'optional--',
  5744. "//a[contains(@href,'fileom.com')]");
  5745. }
  5746. if (GM_getValue("Check_mightyupload_dot_com_links", false))
  5747. {
  5748. addFileHost(
  5749. "mightyupload\.com\/\\w+",
  5750. 'background:#ccc;text-align|CONTENT="Download File"',
  5751. 'style="background:#eee|var rr =|File Not Found',
  5752. 'optional--',
  5753. "//a[contains(@href,'mightyupload.com')]");
  5754. }
  5755. if (GM_getValue("Check_uncapped_dash_downloads_dot_com_links", false))
  5756. {
  5757. addFileHost(
  5758. "uncapped-downloads\.com\/\\w+",
  5759. 'btn_download',
  5760. 'File Not Found',
  5761. 'optional--',
  5762. "//a[contains(@href,'uncapped-downloads.com')]");
  5763. }
  5764. if (GM_getValue("Check_k2s_dot_cc_links", false))
  5765. {
  5766. addFileHost(
  5767. "k2s\.cc\/\\w+",
  5768. 'Click here for slow download with|class="btn" id="yw0"',
  5769. 'Error 404|class="errorSummary">|this file is blocked or deleted|>404 Not Found<|To avoid damaged files',
  5770. 'please try later',
  5771. //'optional--',
  5772. "//a[contains(@href,'k2s.cc')]");
  5773. }
  5774. if (GM_getValue("Check_keep2share_dot_cc_links", false))
  5775. {
  5776. addFileHost(
  5777. "keep2share\.cc\/\\w+",
  5778. 'Click here for slow download with|class="btn" id="yw0"',
  5779. 'Error 404|class="errorSummary">|this file is blocked or deleted|>404 Not Found<|To avoid damaged files',
  5780. 'please try later',
  5781. //'optional--',
  5782. "//a[contains(@href,'keep2share.cc')]");
  5783. }
  5784. if (GM_getValue("Check_keep2s_dot_cc_links", false))
  5785. {
  5786. addFileHost(
  5787. "keep2s\.cc\/\\w+",
  5788. 'Click here for slow download with|class="btn" id="yw0"',
  5789. 'Error 404|class="errorSummary">|this file is blocked or deleted|>404 Not Found<|To avoid damaged files',
  5790. 'please try later',
  5791. //'optional--',
  5792. "//a[contains(@href,'keep2s.cc')]");
  5793. }
  5794. if (GM_getValue("Check_keep2share_dot_com_links", false))
  5795. {
  5796. addFileHost(
  5797. "keep2share\.com\/\\w+",
  5798. 'Click here for slow download with|class="btn" id="yw0"',
  5799. 'Error 404|class="errorSummary">|this file is blocked or deleted|>404 Not Found<|To avoid damaged files',
  5800. 'please try later',
  5801. //'optional--',
  5802. "//a[contains(@href,'keep2share.com')]");
  5803. }
  5804. if (GM_getValue("Check_anysend_dot_com_links", false))
  5805. {
  5806. addFileHost(
  5807. "anysend\.com\/\\w+",
  5808. 'var openCalled=false;|content="noindex"',
  5809. '_trackPageview',
  5810. 'optional--',
  5811. "//a[contains(@href,'anysend.com')]");
  5812. }
  5813. if (GM_getValue("Check_datafile_dot_com_links", false))
  5814. {
  5815. addFileHost(
  5816. "datafile\.com\/\\w+",
  5817. 'src="/js/files_download.js"',
  5818. 'ErrorCode|class="error-msg"',
  5819. 'optional--',
  5820. //'optional--',
  5821. "//a[contains(@href,'datafile.com')]");
  5822. }
  5823. if (GM_getValue("Check_upstore_dot_net_links", false))
  5824. {
  5825. addFileHost(
  5826. "upstore\.net\/\\w+",
  5827. 'style="margin-top: 20px">|style="text-align:center; margin: 20px 0 100px;">',
  5828. 'File not found|onload="redirect|class="error">',
  5829. 'optional--',
  5830. "//a[contains(@href,'upstore.net')]");
  5831. }
  5832. if (GM_getValue("Check_upsto_dot_re_links", false))
  5833. {
  5834. addFileHost(
  5835. "upsto\.re\/\\w+",
  5836. 'style="margin-top: 20px">|style="text-align:center; margin: 20px 0 100px;">',
  5837. 'File not found|onload="redirect|class="error">',
  5838. 'optional--',
  5839. "//a[contains(@href,'upsto.re')]");
  5840. }
  5841. if (GM_getValue("Check_usefile_dot_com_links", false))
  5842. {
  5843. addFileHost(
  5844. "usefile\.com\/\\w+",
  5845. 'pay_modes input|background:#bbb',
  5846. 'File Not Found|var rr =',
  5847. 'optional--',
  5848. "//a[contains(@href,'usefile.com')]");
  5849. }
  5850. if (GM_getValue("Check_speedy_dot_sh_links", false))
  5851. {
  5852. addFileHost(
  5853. "speedy\.sh\/\\w+",
  5854. 'bgcolor=#eeeeee|class="addthis',
  5855. 'File not found|downloadfilenamenotfound>',
  5856. 'optional--',
  5857. "//a[contains(@href,'speedy.sh')]");
  5858. }
  5859. if (GM_getValue("Check_sanshare_dot_com_links", false))
  5860. {
  5861. addFileHost(
  5862. "sanshare\.com\/\\w+",
  5863. 'SANSHARE_TOPBANNER|offset-1"><h3><b>Download File',
  5864. 'offset-1"><b>File Not Found<|width:500px;text-align',
  5865. 'optional--',
  5866. "//a[contains(@href,'sanshare.com')]");
  5867. }
  5868. if (GM_getValue("Check_dizzcloud_dot_com_links", false))
  5869. {
  5870. addFileHost(
  5871. "dizzcloud\.com\/\\w+",
  5872. '2299210355.png"|class="name"',
  5873. 'span>404|class="cyan upgrade"',
  5874. 'optional--',
  5875. "//a[contains(@href,'dizzcloud.com')]");
  5876. }
  5877. if (GM_getValue("Check_filedap_dot_com_links", false))
  5878. {
  5879. addFileHost(
  5880. "filedap\.com\/\\w+",
  5881. 'content="1"|CONTENT="Download File|NAME=',
  5882. 'var rr =',
  5883. 'optional--',
  5884. "//a[contains(@href,'filedap.com')]");
  5885. }
  5886. if (GM_getValue("Check_forunesia_dot_com_links", false))
  5887. {
  5888. addFileHost(
  5889. "forunesia\.com\/\\w+",
  5890. 'CONTENT="Download',
  5891. 'var rr =',
  5892. 'optional--',
  5893. "//a[contains(@href,'forunesia.com')]");
  5894. }
  5895. if (GM_getValue("Check_swankshare_dot_com_links", false))
  5896. {
  5897. addFileHost(
  5898. "swankshare\.com\/\\w+",
  5899. 'CONTENT="Download',
  5900. 'var rr =',
  5901. 'optional--',
  5902. "//a[contains(@href,'swankshare.com')]");
  5903. }
  5904. if (GM_getValue("Check_filevice_dot_com_links", false))
  5905. {
  5906. addFileHost(
  5907. "filevice\.com\/\\w+",
  5908. 'font style="font-size:12px;|cellpadding="3"',
  5909. 'class="err"|File Not Found',
  5910. 'optional--',
  5911. "//a[contains(@href,'filevice.com')]");
  5912. }
  5913. if (GM_getValue("Check_kingfiles_dot_net_links", false))
  5914. {
  5915. addFileHost(
  5916. "kingfiles\.net\/\\w+",
  5917. 'color:#727071|<table width="830px" border="0"',
  5918. 'var rr =|"description" CONTENT="Download File ">|<div style="width:500px;text-align:left;">',
  5919. 'optional--',
  5920. "//a[contains(@href,'kingfiles.net')]");
  5921. }
  5922. if (GM_getValue("Check_uploadhero_dot_co_links", false))
  5923. {
  5924. addFileHost(
  5925. "uploadhero\\.co\/dl\/\\w+",
  5926. 'class="nom_de_fichier"|Unlimited downloads|Estimated download time|Lien de téléchargement"',
  5927. 'not available on our server|pas disponible sur nos serveurs|Le lien du fichier est incorrect',
  5928. 'optional--',
  5929. "//a[contains(@href,'uploadhero.co/dl')]"
  5930. );
  5931. }
  5932. if (GM_getValue("Check_secureupload_dot_eu_links", false))
  5933. {
  5934. addFileHost(
  5935. "secureupload\\.eu\/\\w+",
  5936. 'Downloading',
  5937. 'cannot be found|File Not Found',
  5938. 'optional--',
  5939. "//a[contains(@href,'secureupload.eu')]"
  5940. );
  5941. }
  5942. if (GM_getValue("Check_ge_dot_tt_links", false))
  5943. {
  5944. addFileHost(
  5945. "ge\.tt\/\\w+",
  5946. 'downloads pic',
  5947. 'is NOT the same as',
  5948. 'optional--',
  5949. "//a[contains(@href,'ge.tt')]");
  5950. }
  5951. if (GM_getValue("Check_filefactory_dot_com_links", false))
  5952. {
  5953. addFileHost(
  5954. "filefactory\.com\/\\w+",
  5955. 'div id="file_holder"',
  5956. 'File Removed|Invalid Download Link|File Unavailable|Server Failed|Datei entfernt|This file has been removed',
  5957. 'Server Maintenance|temporarily overloaded',
  5958. //'optional--',
  5959. "//a[contains(@href,'filefactory.com')]");
  5960. }
  5961. if (GM_getValue("Check_filesflash_dot_net_links", false))
  5962. {
  5963. addFileHost(
  5964. "filesflash\.net\/\\w+",
  5965. 'align:right">Filename:',
  5966. 'class="msg">',
  5967. 'optional--',
  5968. "//a[contains(@href,'filesflash.net')]");
  5969. }
  5970. if (GM_getValue("Check_rapidgator_dot_net_links", false)) //folders
  5971. {
  5972. addFileHost(
  5973. "rapidgator\\.net\/folder\/\\w+",
  5974. 'href="/folder/',
  5975. 'class="empty|Folder not found|Carpeta no encontrada|Dossier non trouvé|Папка не найдена',
  5976. 'optional--',
  5977. "//a[contains(@href,'rapidgator.net/folder')]",
  5978. true
  5979. );
  5980. }
  5981. if (GM_getValue("Check_redload_dot_net_links", false))
  5982. {
  5983. addFileHost(
  5984. "redload\.net\/\\w+",
  5985. '<Title>Download|CONTENT="Download|width:150px',
  5986. 'Title>Redload.net|CONTENT="redload',
  5987. 'optional--',
  5988. "//a[contains(@href,'redload.net')]");
  5989. }
  5990. if (GM_getValue("Check_salefiles_dot_com_links", false))
  5991. {
  5992. addFileHost(
  5993. "salefiles\.com\/\\w+",
  5994. '<Title>Download|CONTENT="Download',
  5995. 'font:15px Arial|background:#eee;',
  5996. 'optional--',
  5997. "//a[contains(@href,'salefiles.com')]");
  5998. }
  5999. if (GM_getValue("Check_megairon_dot_net_links", false))
  6000. {
  6001. addFileHost(
  6002. "megairon\.net\/\\w+",
  6003. 'border: 5px #ffeb90 solid;',
  6004. 'CONTENT="Download File ">|var rr =',
  6005. 'optional--',
  6006. "//a[contains(@href,'megairon.net')]");
  6007. }
  6008. if (GM_getValue("Check_terafile_dot_co_links", false))
  6009. {
  6010. addFileHost(
  6011. "terafile\.co\/\\w+",
  6012. '<div style="width:900px;">',
  6013. '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;">',
  6014. 'Software error',
  6015. //'optional--',
  6016. "//a[contains(@href,'terafile.co')]");
  6017. }
  6018. if (GM_getValue("Check_swatupload_dot_com_links", false))
  6019. {
  6020. addFileHost(
  6021. "swatupload\.com\/\\w+",
  6022. 'btn_download|google-site-verification',
  6023. 'var rr =|invalid license_key',
  6024. 'optional--',
  6025. "//a[contains(@href,'swatupload.com')]");
  6026. }
  6027. if (GM_getValue("Check_fastsonic_dot_net_links", false))
  6028. {
  6029. addFileHost(
  6030. "fastsonic\.net\/\\w+",
  6031. '_trackPageview',
  6032. 'var rr =',
  6033. 'optional--',
  6034. "//a[contains(@href,'fastsonic.net')]");
  6035. }
  6036. if (GM_getValue("Check_sinhro_dot_net_links", false))
  6037. {
  6038. addFileHost(
  6039. "sinhro\.net\/\\w+",
  6040. '--img src=',
  6041. 'var rr =',
  6042. 'optional--',
  6043. "//a[contains(@href,'sinhro.net')]");
  6044. }
  6045. if (GM_getValue("Check_bayfiles_dot_net_links", false))
  6046. {
  6047. addFileHost(
  6048. "bayfiles\\.net\/file\/\\w+",
  6049. 'File:</',
  6050. 'Invalid security token|id="upload-input">|<li><strong>',
  6051. 'optional--',
  6052. "//a[contains(@href,'bayfiles.net/file')]",
  6053. true
  6054. );
  6055. }
  6056. if (GM_getValue("Check_nirafile_dot_com_links", false))
  6057. {
  6058. addFileHost(
  6059. "nirafile\.com\/\\w+",
  6060. 'name="fname" value=',
  6061. 'var rr =|<Title>Nirafile',
  6062. 'optional--',
  6063. "//a[contains(@href,'nirafile.com')]");
  6064. }
  6065. if (GM_getValue("Check_mydisc_dot_net_links", false))
  6066. {
  6067. addFileHost(
  6068. "mydisc\.net\/\\w+",
  6069. '<Title>Download|CAPTCHA',
  6070. '404|<title>mydisc.net',
  6071. 'optional--',
  6072. "//a[contains(@href,'mydisc.net')]");
  6073. }
  6074. if (GM_getValue("Check_shareprofi_dot_com_links", false))
  6075. {
  6076. addFileHost(
  6077. "shareprofi\.com\/\\w+",
  6078. 'font-size:12px; display: none;|You have requested',
  6079. 'CONTENT="www.shareprofi.com|<Title>Download </Title>|class="err">',
  6080. 'optional--',
  6081. "//a[contains(@href,'shareprofi.com')]");
  6082. }
  6083. if (GM_getValue("Check_datoid_dot_cz_links", false))
  6084. {
  6085. addFileHost(
  6086. "datoid\.cz\/\\w+",
  6087. 'btn-download|class="icon-download-large"',
  6088. 'Stránka nenalezena|error-404|Soubor byl zablokován',
  6089. 'optional--',
  6090. "//a[contains(@href,'datoid.cz')]");
  6091. }
  6092. if (GM_getValue("Check_stiahni_dot_si_links", false))
  6093. {
  6094. addFileHost(
  6095. "stiahni\.si\/\\w+",
  6096. 'report_icon.png"',
  6097. 'none.png|deleted|<h2>Error 500</h2>',
  6098. 'optional--',
  6099. "//a[contains(@href,'stiahni.si')]");
  6100. }
  6101. if (GM_getValue("Check_cloudstor_dot_es_links", false))
  6102. {
  6103. addFileHost(
  6104. "cloudstor\.es\/\\w+",
  6105. '"btn_download"',
  6106. '404: Page Not Found',
  6107. 'optional--',
  6108. "//a[contains(@href,'cloudstor.es')]");
  6109. }
  6110. if (GM_getValue("Check_streamfile_dot_com_links", false))
  6111. {
  6112. addFileHost(
  6113. "streamfile\.com\/\\w+",
  6114. 'class="btn',
  6115. 'class="green-btn',
  6116. 'optional--',
  6117. "//a[contains(@href,'streamfile.com')]");
  6118. }
  6119. if (GM_getValue("Check_eyesfile_dot_ca_links", false))
  6120. {
  6121. addFileHost(
  6122. "eyesfile\.ca\/\\w+",
  6123. 'value="Get Link',
  6124. 'var rr =',
  6125. 'optional--',
  6126. "//a[contains(@href,'eyesfile.ca')]");
  6127. }
  6128. if (GM_getValue("Check_filemoney_dot_com_links", false))
  6129. {
  6130. addFileHost(
  6131. "filemoney\.com\/\\w+",
  6132. 'og:title',
  6133. '404 Not Found|<Title>FileMoney',
  6134. 'optional--',
  6135. "//a[contains(@href,'filemoney.com')]");
  6136. }
  6137. if (GM_getValue("Check_uploadboy_dot_com_links", false))
  6138. {
  6139. addFileHost(
  6140. "uploadboy\.com\/\\w+",
  6141. 'width="740">',
  6142. 'var rr =|background:#ffffff|not be found',
  6143. 'optional--',
  6144. "//a[contains(@href,'uploadboy.com')]");
  6145. }
  6146. if (GM_getValue("Check_fileshareup_dot_com_links", false))
  6147. {
  6148. addFileHost(
  6149. "fileshareup\.com\/\\w+",
  6150. 'downloadPageTable|btn-free|download-timer-seconds',
  6151. '404 Not Found|errorPageStrings|<title>Upload Files',
  6152. 'optional--',
  6153. "//a[contains(@href,'fileshareup.com')]");
  6154. }
  6155. if (GM_getValue("Check_filemonkey_dot_in_links", false))
  6156. {
  6157. addFileHost(
  6158. "filemonkey\.in\/\\w+",
  6159. 'class="well" width="80|table-bordered',
  6160. 'not been found',
  6161. 'optional--',
  6162. "//a[contains(@href,'filemonkey.in')]");
  6163. }
  6164. if (GM_getValue("Check_speedshare_dot_eu_links", false))
  6165. {
  6166. addFileHost(
  6167. "speedshare\.eu\/\\w+",
  6168. 'favicon.png|color:#3d87c0|cross.png"',
  6169. 'var rr =|File Not Found|style="background:#eee',
  6170. 'optional--',
  6171. "//a[contains(@href,'speedshare.eu')]");
  6172. }
  6173. if (GM_getValue("Check_migupload_dot_com_links", false))
  6174. {
  6175. addFileHost(
  6176. "migupload\.com\/\\w+",
  6177. 'content="1" name="|var download_url',
  6178. 'var rr =|AVOID_IE_BUG',
  6179. 'optional--',
  6180. "//a[contains(@href,'migupload.com')]");
  6181. }
  6182. if (GM_getValue("Check_unlimitzone_dot_com_links", false))
  6183. {
  6184. addFileHost(
  6185. "unlimitzone\.com\/\\w+",
  6186. 'content="1" name="',
  6187. 'var rr =|File Not Found',
  6188. 'optional--',
  6189. "//a[contains(@href,'unlimitzone.com')]");
  6190. }
  6191. if (GM_getValue("Check_rioupload_dot_com_links", false))
  6192. {
  6193. addFileHost(
  6194. "rioupload\.com\/\\w+",
  6195. 'sell.jpg',
  6196. 'var rr =',
  6197. 'optional--',
  6198. "//a[contains(@href,'rioupload.com')]");
  6199. }
  6200. if (GM_getValue("Check_dodane_dot_pl_links", false))
  6201. {
  6202. addFileHost(
  6203. "dodane\.pl\/\\w+",
  6204. 'currentFileName|class="filetitle">|download.png"',
  6205. 'adresie nie istnieje|class="error-page-title|class="grey">(404)',
  6206. 'optional--',
  6207. "//a[contains(@href,'dodane.pl')]");
  6208. }
  6209. if (GM_getValue("Check_rg_dot_to_links", false))
  6210. {
  6211. addFileHost(
  6212. "rg\.to\/\\w+",
  6213. '/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',
  6214. 'Error 404|File not found',
  6215. 'optional--',
  6216. //'optional--',
  6217. "//a[contains(@href,'rg.to')]");
  6218. }
  6219. if (GM_getValue("Check_jumbofiles_dot_org_links", false))
  6220. {
  6221. addFileHost(
  6222. "jumbofiles\.org\/\\w+",
  6223. 'H71C5.png|class="downloadtitle">',
  6224. 'var swfu|ViewSourceBIN.png',
  6225. 'optional--',
  6226. "//a[contains(@href,'jumbofiles.org')]");
  6227. }
  6228. if (GM_getValue("Check_fshare_dot_vn_links", false))
  6229. {
  6230. addFileHost(
  6231. "fshare\\.vn\/file\/\\w+",
  6232. 'action="#download"|left; width: 330px;">|class="bt_down"',
  6233. 'không tồn tại|class="color_red m_t_50"',
  6234. 'optional--',
  6235. "//a[contains(@href,'fshare.vn/file')]",
  6236. true
  6237. );
  6238. }
  6239. if (GM_getValue("Check_spaceforfiles_dot_com_links", false))
  6240. {
  6241. addFileHost(
  6242. "spaceforfiles\.com\/\\w+",
  6243. 'btn_slowspeed_b.jpg|value="download1|class="btn_blue',
  6244. 'var rr =|AVOID_IE_BUG',
  6245. 'optional--',
  6246. "//a[contains(@href,'spaceforfiles.com')]");
  6247. }
  6248. if (GM_getValue("Check_google_dot_com_links", false))
  6249. {
  6250. addFileHost(
  6251. "google\\.com\/file\/\\w+",
  6252. 'content="!">|color:#2d2d2d',
  6253. '12pt; font-weight:|class="errorMessage"|F0F6FF',
  6254. 'optional--',
  6255. "//a[contains(@href,'google.com/file')]",
  6256. true
  6257. );
  6258. }
  6259. if (GM_getValue("Check_up_dot_media1fire_dot_com_links", false))
  6260. {
  6261. addFileHost(
  6262. "up.media1fire\.com\/\\w+",
  6263. 'class="addthis_|value="download',
  6264. 'var rr =|AVOID_IE_BUG|<div style="width:500px;text-align:left;">',
  6265. 'optional--',
  6266. "//a[contains(@href,'up.media1fire.com')]");
  6267. }
  6268. if (GM_getValue("Check_depfile_dot_com_links", false))
  6269. {
  6270. addFileHost(
  6271. "depfile\.com\/\\w+",
  6272. 'logo_0.png|downloads.gif"',
  6273. 'border-color: #5D729B;|bgcolor="#778AAF"',
  6274. 'optional--',
  6275. "//a[contains(@href,'depfile.com')]");
  6276. }
  6277. if (GM_getValue("Check_uploadinc_dot_com_links", false))
  6278. {
  6279. addFileHost(
  6280. "uploadinc\.com\/\\w+",
  6281. 'class="button pop red|padding:5px 0 5px 0',
  6282. 'class="button mediu green">DMCA|class="err"|var rr =',
  6283. 'optional--',
  6284. "//a[contains(@href,'uploadinc.com')]");
  6285. }
  6286. if (GM_getValue("Check_upshared_dot_com_links", false))
  6287. {
  6288. addFileHost(
  6289. "upshared\.com(?:\/\w(2))?\/\\??\\w+",
  6290. 'name="method_free"',
  6291. 'var rr =|AVOID_IE_BUG|File Not Found|<div style="width:500px;text-align:left;">|not be found',
  6292. 'optional--',
  6293. "//a[contains(@href,'upshared.com')]");
  6294. }
  6295. if (GM_getValue("Check_go4up_dot_com_links", false))
  6296. {
  6297. addFileHost(
  6298. "go4up\.com\/\\w+",
  6299. 'style="width: 100%;">|value="Access',
  6300. '<title>GO4UP|dmca',
  6301. 'optional--',
  6302. "//a[contains(@href,'go4up.com')]");
  6303. }
  6304. if (GM_getValue("Check_dropbox_dot_com_links", false))
  6305. {
  6306. addFileHost(
  6307. "dropbox\.com\/\\w+",
  6308. 'download_button|vflm1l0gN.png',
  6309. 'class="err"|Invalid Link|id="errorbox">Dropbox - 404',
  6310. 'optional--',
  6311. "//a[contains(@href,'dropbox.com')]");
  6312. }
  6313. if (GM_getValue("Check_przeklej_dot_net_links", false))
  6314. {
  6315. addFileHost(
  6316. "przeklej\.net\/\\w+",
  6317. 'file1.png"|icon08.gif"',
  6318. 'return_arrow.png|>Błąd 404|file_has_been_deleted',
  6319. 'optional--',
  6320. "//a[contains(@href,'przeklej.net')]");
  6321. }
  6322. if (GM_getValue("Check_redbunker_dot_net_links", false))
  6323. {
  6324. addFileHost(
  6325. "redbunker\.net\/\\w+",
  6326. 'dload.png|rowspan="3">|yep.gif',
  6327. 'CONTENT="RedBunker|#D3D3D3;|color:#d33|AVOID_IE_BUG',
  6328. 'optional--',
  6329. "//a[contains(@href,'redbunker.net')]");
  6330. }
  6331. if (GM_getValue("Check_divxpress_dot_com_links", false))
  6332. {
  6333. addFileHost(
  6334. "divxpress\.com\/\\w+",
  6335. 'btn_download|logo.png"',
  6336. 'AVOID_IE_BUG|var rr =',
  6337. 'optional--',
  6338. "//a[contains(@href,'divxpress.com')]");
  6339. }
  6340. if (GM_getValue("Check_lemuploads_dot_com_links", false))
  6341. {
  6342. addFileHost(
  6343. "lemuploads\.com\/\\w+",
  6344. 'btn_download|onSubmit="if|captcha',
  6345. 'style="width:500px;text-align:left;">|file was deleted|AVOID_IE_BUG',
  6346. 'optional--',
  6347. "//a[contains(@href,'lemuploads.com')]");
  6348. }
  6349. if (GM_getValue("Check_megarelease_dot_org_links", false))
  6350. {
  6351. addFileHost(
  6352. "megarelease\.org\/\\w+",
  6353. 'btn_download|onSubmit="if|captcha',
  6354. 'style="width:500px;text-align:left;">|file was deleted|AVOID_IE_BUG|mcc.godaddy.com/park',
  6355. 'optional--',
  6356. "//a[contains(@href,'megarelease.org')]");
  6357. }
  6358. if (GM_getValue("Check_anafile_dot_com_links", false))
  6359. {
  6360. addFileHost(
  6361. "anafile\.com\/\\w+",
  6362. 'width="881" valign="top|color="#800080"',
  6363. 'style="width:500px;text-align:left;">|file was deleted|AVOID_IE_BUG',
  6364. 'optional--',
  6365. "//a[contains(@href,'anafile.com')]");
  6366. }
  6367. if (GM_getValue("Check_uploadable_dot_ch_links", false))
  6368. {
  6369. addFileHost(
  6370. "uploadable\\.ch\/file\/\\w+",
  6371. 'captcha.js"|payment.js"|class="btn_download"',
  6372. '<div class="icon_err">|<div class="errorBox">|"error_arrow">',
  6373. 'optional--',
  6374. "//a[contains(@href,'uploadable.ch/file')]",
  6375. true
  6376. );
  6377. }
  6378. if (GM_getValue("Check_wallobit_dot_com_links", false))
  6379. {
  6380. addFileHost(
  6381. "wallobit\.com\/\\w+",
  6382. 'value="Free Download">',
  6383. 'AVOID_IE_BUG|style="background:#eee;font:15px Arial;|var rr = ',
  6384. 'optional--',
  6385. "//a[contains(@href,'wallobit.com')]");
  6386. }
  6387. if (GM_getValue("Check_arabloads_dot_com_links", false))
  6388. {
  6389. addFileHost(
  6390. "arabloads\.com\/\\w+",
  6391. 'name="method_free"|name="method_premium"',
  6392. 'background:#eee;font:15px Arial;">|AVOID_IE_BUG|Verdana;padding:3px;">Error',
  6393. 'optional--',
  6394. "//a[contains(@href,'arabloads.com')]");
  6395. }
  6396. if (GM_getValue("Check_sharerepo_dot_com_links", false))
  6397. {
  6398. addFileHost(
  6399. "sharerepo\.com\/\\w+",
  6400. 'name="method_free"',
  6401. 'var public_on=',
  6402. 'optional--',
  6403. "//a[contains(@href,'sharerepo.com')]");
  6404. }
  6405. if (GM_getValue("Check_sfshare_dot_se_links", false))
  6406. {
  6407. addFileHost(
  6408. "sfshare\.se\/\\w+",
  6409. 'id="btn_download"|class="btn btn-primary txt-bold" value="',
  6410. 'AVOID_IE_BUG|var rr =|style="width:500px;text-align:left;">',
  6411. 'optional--',
  6412. "//a[contains(@href,'sfshare.se')]");
  6413. }
  6414. if (GM_getValue("Check_files_dot_fm_links", false))
  6415. {
  6416. addFileHost(
  6417. "files\.fm\/\\w+",
  6418. 'dl.png"|background-color: transparent',
  6419. 'margin: 40px 40px|background: none;',
  6420. 'optional--',
  6421. "//a[contains(@href,'files.fm')]");
  6422. }
  6423. if (GM_getValue("Check_koofile_dot_com_links", false))
  6424. {
  6425. addFileHost(
  6426. "koofile\.com\/\\w+",
  6427. 'value="download1">|name="method_free"',
  6428. 'class="overview-content c_text-box ">|style="padding-top:3px;">|class="rt1 c">',
  6429. 'optional--',
  6430. "//a[contains(@href,'koofile.com')]");
  6431. }
  6432. if (GM_getValue("Check_shared_dot_com_links", false))
  6433. {
  6434. addFileHost(
  6435. "shared\.com\/\\w+",
  6436. 'class="icon-download|class="attachment-size">',
  6437. 'img/404.png"|error-img -->',
  6438. 'optional--',
  6439. "//a[contains(@href,'shared.com')]");
  6440. }
  6441. if (GM_getValue("Check_videozer_dot_com_links", false))
  6442. {
  6443. addFileHost(
  6444. "videozer\\.com\/video\/\\w+",
  6445. 'video_player"',
  6446. 'error_404"',
  6447. 'optional--',
  6448. "//a[contains(@href,'videozer.com/video')]"
  6449. );
  6450. }
  6451. if (GM_getValue("Check_divxden_dot_com_links", false))
  6452. {
  6453. addFileHost(
  6454. "(?:divxden|vidxden)\.com\/\\w+\/\\w+",
  6455. 'Continue to Video"',
  6456. 'No such file',
  6457. 'optional--',
  6458. "//a[contains(@href,'divxden.com') or contains(@href,'vidxden.com')]"
  6459. );
  6460. }
  6461. if (GM_getValue("Check_share_dash_now_dot_net_links", false))
  6462. {
  6463. addFileHost(
  6464. "share-now\.net\/\/?files\/\\d+",
  6465. 'Download Now"',
  6466. 'upload_files',
  6467. 'optional--',
  6468. "//a[contains(@href,'share-now.net')]"
  6469. );
  6470. }
  6471. if (GM_getValue("Check_sms4file_dot_com_links", false))
  6472. {
  6473. addFileHost(
  6474. "sms4file\\.com\/download(?:vip|)\/\\w+",
  6475. 'file-info">',
  6476. 'Requested file is not found|Запрашиваемый файл не найден',
  6477. 'optional--',
  6478. "//a[contains(@href,'sms4file.com/download')]"
  6479. );
  6480. }
  6481. if (GM_getValue("Check_muchshare_dot_net_links", false))
  6482. {
  6483. addFileHost(
  6484. "muchshare\\.net\/\\w+",
  6485. 'id="btn_download"',
  6486. 'File Not Found|width: 500px; text-align: left;',
  6487. 'optional--',
  6488. "//a[contains(@href,'muchshare.net')]"
  6489. );
  6490. }
  6491. if (GM_getValue("Check_peejeshare_dot_com_links", false))
  6492. {
  6493. addFileHost(
  6494. "peeje(?:share)?\\.com\/files\/\\d+",
  6495. 'div id="download">',
  6496. 'red;">The file you requested',
  6497. 'red;">This file is password',
  6498. "//a[contains(@href,'peejeshare.com/files') or contains(@href,'peeje.com/files')]"
  6499. );
  6500. }
  6501. if (GM_getValue("Check_daten_dash_hoster_dot_de_links", false))
  6502. {
  6503. addFileHost(
  6504. "(?:daten-hoster\\.de\/file\/\\w+|filehosting\\.org\/file\/\\w+|xtraupload\\.de\/\\?d=\\w+)",
  6505. 'Details zur Datei|Details page',
  6506. 'Jetzt hochladen|upload now',
  6507. 'optional--',
  6508. "//a[contains(@href,'daten-hoster.de/file') or contains(@href,'filehosting.org/file') or contains(@href,'xtraupload.de')]"
  6509. );
  6510. }
  6511. if (GM_getValue("Check_upload_dash_il_dot_net_links", false))
  6512. {
  6513. addFileHost(
  6514. "(?:upload-il|przeslij)\.net\/(?:en|he|ar|ru|)\/?\\w+",
  6515. 'downloadbtn"',
  6516. 'DL_FileNotFound',
  6517. 'optional--',
  6518. "//a[contains(@href,'upload-il.net') or contains(@href,'przeslij.net')]"
  6519. );
  6520. }
  6521. if (GM_getValue("Check_fileflyer_dot_com_links", false))
  6522. {
  6523. addFileHost(
  6524. "fileflyer\.com\/view\/\\w+",
  6525. '(?:dwl|locked)btn"',
  6526. 'error.gif"|link">Removed|removedlink">',
  6527. 'optional--',
  6528. "//a[contains(@href,'fileflyer.com')]"
  6529. );
  6530. }
  6531. if (GM_getValue("Check_rapidupload_dot_sk_links", false))
  6532. {
  6533. addFileHost(
  6534. "rapidupload\.sk\/file\/\\d+\/",
  6535. 'Názov súboru',
  6536. 'súbor sa nenašiel',
  6537. 'optional--',
  6538. "//a[contains(@href,'rapidupload.sk/file')]"
  6539. );
  6540. }
  6541. if (GM_getValue("Check_filestore_dot_to_links", false))
  6542. {
  6543. addFileHost(
  6544. "filestore\.to\/\\?d=\\w+",
  6545. '"downloading"',
  6546. 'Datei wurde nicht gefunden',
  6547. 'optional--',
  6548. "//a[contains(@href,'filestore.to')]"
  6549. );
  6550. }
  6551. if (GM_getValue("Check_easy_dash_share_dot_com_links", false))
  6552. {
  6553. addFileHost(
  6554. "(?:w\\d*\.|)(?:crocko|easy-share)\\.com\/.",
  6555. 'fz24">Download|class="pl15">',
  6556. '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',
  6557. 'optional--',
  6558. "//a[contains(@href,'easy-share.com') or contains(@href,'crocko.com')]"
  6559. );
  6560. }
  6561. if (GM_getValue("Check_burnupload_dot_com_links", false))
  6562. {
  6563. addFileHost(
  6564. "burnupload\\.(?:com\/\\?d=|ihiphop\\.com\/download\\.php\\?id=)\\w+",
  6565. 'File size:',
  6566. 'file is not found',
  6567. 'optional--',
  6568. "//a[contains(@href,'burnupload.com') or contains(@href,'burnupload.ihiphop.com')]"
  6569. );
  6570. }
  6571. if (GM_getValue("Check_datei_dot_to_links", false))
  6572. {
  6573. addFileHost(
  6574. "datei\\.to\/\\??\\w+",
  6575. 'icon_downloaden\\.png|>Download starten<',
  6576. 'Datei wurde nicht gefunden|icon_deleted.png',
  6577. 'optional--',
  6578. "//a[contains(@href,'datei.to')]"
  6579. );
  6580. }
  6581. if (GM_getValue("Check_yunfile_dot_com_links", false))
  6582. {
  6583. addFileHost(
  6584. "(?:yunfile|filemarkets)\\.com\/\\w+",
  6585. '<body class="body" id="body">',
  6586. '<body class="body" >',
  6587. 'optional--',
  6588. "//a[contains(@href,'yunfile.com') or contains(@href,'filemarkets.com')]"
  6589. );
  6590. }
  6591. if (GM_getValue("Check_putlocker_dot_com_links", false))
  6592. {
  6593. addFileHost(
  6594. "putlocker\\.com\/file\/\\w{16}",
  6595. 'as Free User|<a class="continue"|Continue to file|#feedback_btn|application file_standalone',
  6596. 'Welcome to PutLocker|<div class="sad_face_image">|404:',
  6597. 'undergoing scheduled maintenance',
  6598. "//a[contains(@href,'putlocker.com/file')]"
  6599. );
  6600. }
  6601. if (GM_getValue("Check_luckyshare_dot_net_links", false))
  6602. {
  6603. addFileHost(
  6604. "luckyshare\\.net\/\\d+",
  6605. 'href="javascript:void(0)">Slow Download</a>|id="slow-download" class="dl-slowspeed|<strong>Wait:</strong> <span id="waitingtime">',
  6606. 'no such file available|color: #22757B;">',
  6607. '522: Connection timed out',
  6608. //'optional--',
  6609. "//a[contains(@href,'luckyshare.net/')]"
  6610. );
  6611. }
  6612. if (GM_getValue("Check_uploadhero_dot_com_links", false))
  6613. {
  6614. addFileHost(
  6615. "uploadhero\\.com\/dl\/\\w+",
  6616. 'content-dl">',
  6617. 'men_file_lost\\.jpg"',
  6618. 'optional--',
  6619. "//a[contains(@href,'uploadhero.com/dl')]"
  6620. );
  6621. }
  6622. if (GM_getValue("Check_unibytes_dot_com_links", false))
  6623. {
  6624. addFileHost(
  6625. "unibytes\\.com\/[\\w\.]+",
  6626. 'trying to download|пытаетесь загрузить файл|tes entrain de tlcharger',
  6627. 'File not found|Файл не найден|',
  6628. 'optional--',
  6629. "//a[contains(@href,'unibytes.com')]"
  6630. );
  6631. }
  6632. if (GM_getValue("Check_hellshare_dot_com_links", false)) //very old type of links
  6633. {
  6634. addFileHost(
  6635. "www\\.hellshare\\.com\/\\d+",
  6636. 'tab\\-details"',
  6637. 'list-purp-2"|not found on this server',
  6638. 'optional--',
  6639. "//a[contains(@href,'www.hellshare.com')]"
  6640. );
  6641. }
  6642. if (GM_getValue("Check_czshare_dot_com_links", false)) //folders
  6643. {
  6644. addFileHost(
  6645. "czshare\\.com\/folders\/[\\w_]+\/\\w+",
  6646. '"directory">',
  6647. 'header -->\\s+<div id="info\\-panel',
  6648. 'optional--',
  6649. "//a[contains(@href,'czshare.com/folders')]"
  6650. );
  6651. }
  6652. if (GM_getValue("Check_quickshare_dot_cz_links", false)) //folders
  6653. {
  6654. addFileHost(
  6655. "quickshare\\.cz\/slozka-\\d+",
  6656. 'Počet souborů: <strong>[1-9]',
  6657. 'Počet souborů: <strong>0|Chyba! Taková složka neexistuje',
  6658. 'optional--',
  6659. "//a[contains(@href,'quickshare.cz/slozka')]"
  6660. );
  6661. }
  6662. if (GM_getValue("Check_multishare_dot_cz_links", false)) //folders
  6663. {
  6664. addFileHost(
  6665. "multishare\\.cz\/slozka\/\\d+",
  6666. 'manager-linky">',
  6667. 'Požadovaná složka neexistuje.',
  6668. 'optional--',
  6669. "//a[contains(@href,'multishare.cz/slozka/')]"
  6670. );
  6671. }
  6672. if (GM_getValue("Check_filefactory_dot_com_links", false)) //folders
  6673. {
  6674. addFileHost(
  6675. "filefactory\\.com\/f\/\\w+",
  6676. 'folderFileList">',
  6677. 'table class="items"|Pointer" class="red">',
  6678. 'optional--',
  6679. "//a[contains(@href,'filefactory.com/f/')]"
  6680. );
  6681. }
  6682. if (GM_getValue("Check_netload_dot_in_links", false)) //folders
  6683. {
  6684. addFileHost(
  6685. "netfolder\\.in\/\\w+",
  6686. 'list" value="http',
  6687. 'InPage_Error">|list" value=""',
  6688. 'optional--',
  6689. "//a[contains(@href,'netfolder.in')]"
  6690. );
  6691. }
  6692. if (GM_getValue("Check_load_dot_to_links", false))
  6693. {
  6694. addFileHost(
  6695. '(?:www\\.|\\/)load\\.to\\/(?:\\w{10}\\/.|\\?d=\\w{10})',
  6696. '"download_table_left">Size',
  6697. 'Can\'t find file',
  6698. 'optional--',
  6699. "//a[contains(@href,'/load.to/') or contains(@href,'www.load.to/')]"
  6700. );
  6701. }
  6702. if (GM_getValue("Check_files_dot_to_links", false))
  6703. {
  6704. addFileHost(
  6705. "files\.to\/get\/\\d+\/",
  6706. 'You requested the following',
  6707. 'requested file couldn',
  6708. 'optional--',
  6709. "//a[contains(@href,'files.to/')]"
  6710. );
  6711. }
  6712. if (GM_getValue("Check_freakshare_dot_net_links", false))
  6713. {
  6714. addFileHost(
  6715. "freakshare\\.(?:net|com)\/files\/",
  6716. 'box_heading',
  6717. '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|الملف المطلوب غير موجود',
  6718. 'Your Traffic is used up for today',
  6719. "//a[(contains(@href,'freakshare.net') or contains(@href,'freakshare.com')) and contains(@href,'files')]",
  6720. true
  6721. );
  6722. //folders
  6723. addFileHost(
  6724. "freakshare\\.(?:net|com)\/folder\/",
  6725. 'Files: [1-9]',
  6726. 'Files: 0',
  6727. 'optional--',
  6728. "//a[(contains(@href,'freakshare.net') or contains(@href,'freakshare.com')) and contains(@href,'folder')]",
  6729. true
  6730. );
  6731. }
  6732. if (GM_getValue("Check_bitshare_dot_com_links", false))
  6733. {
  6734. addFileHost(
  6735. "bitshare\\.com",
  6736. '">Total file size|class="download" style="width:820px;',
  6737. 'Folder can not be found|Folder does not contain any files|<h1>Error -|<title>BitShare.com',
  6738. 'optional--',
  6739. "//a[contains(@href,'bitshare.com')]",
  6740. true
  6741. );
  6742. }
  6743. if (GM_getValue("Check_divshare_dot_com_links", false))
  6744. {
  6745. addFileHost(
  6746. "divshare\\.com\/download\/",
  6747. 'download_new\.png',
  6748. 'have been removed',
  6749. 'optional--',
  6750. "//a[contains(@href,'divshare.com')]"
  6751. );
  6752. }
  6753. if (GM_getValue("Check_stahovadlo_dot_cz_links", false))
  6754. {
  6755. addFileHost(
  6756. "stahovadlo\\.cz\/soubor\/\\d+\/[\\.\\w]+",
  6757. 'download" type="submit',
  6758. 'Neplatný nebo neúplný odkaz|Soubor již není dostupný',
  6759. 'optional--',
  6760. "//a[contains(@href,'stahovadlo.cz/soubor')]",
  6761. true
  6762. );
  6763. }
  6764. if (GM_getValue("Check_euroshare_dot_eu_links", false))
  6765. {
  6766. addFileHost(
  6767. "euroshare\\.(?:eu|pl|sk|cz|hu)\/file\/\\d+",
  6768. 'nazev-souboru">',
  6769. '<div id="obsah">\\s*<h1>',
  6770. 'optional--',
  6771. "//a[contains(@href,'euroshare.eu/file')]"
  6772. );
  6773. }
  6774. if (GM_getValue("Check_files_dot_mail_dot_ru_links", false))
  6775. {
  6776. addFileHost(
  6777. 'files\\.mail\\.ru/(?:\\w*)',
  6778. 'fileList',
  6779. 'errorMessage',
  6780. 'optional--',
  6781. "//a[contains(@href,'files.mail.ru')]"
  6782. );
  6783. }
  6784. if (GM_getValue("Check_megashares_dot_com_links", false))
  6785. {
  6786. addFileHost(
  6787. "(?:d\\d+\.|)megashares\.com\/(?:dl|index\.php\\?d|\\?d\\d+=\\w+)",
  6788. 'Filesize',
  6789. 'Invalid|deleted|Could not download file',
  6790. 'slots|scheduled maintenance',
  6791. "//a[contains(@href,'megashares.com/')]"
  6792. );
  6793. }
  6794. if (GM_getValue("Check_narod_dot_ru_links", false))
  6795. {
  6796. addFileHost(
  6797. 'narod\\.(?:yandex\\.|)ru\/disk\/',
  6798. 'b-submit',
  6799. 'b-download-virus-note|headCode">404<',
  6800. 'Внутренняя ошибка сервиса',
  6801. "//a[contains(@href,'narod.ru') or contains(@href,'narod.yandex.ru')]"
  6802. );
  6803. }
  6804. if (GM_getValue("Check_rapidshare_dot_com_links", false))
  6805. {
  6806. addFileHost(
  6807. "rapidshare\\.de\/files",
  6808. 'Choose download-type',
  6809. 'alert|not found',
  6810. 'optional--',
  6811. "//a[contains(@href,'rapidshare.de/files/')]"
  6812. );
  6813. }
  6814. if (GM_getValue("Check_rayfile_dot_com_links", false))
  6815. {
  6816. addFileHost(
  6817. "rayfile\\.com\/",
  6818. 'FILEtitleTXT',
  6819. 'blueRow',
  6820. 'optional--',
  6821. "//a[contains(@href,'rayfile.com/') and contains(@href,'files')]"
  6822. );
  6823. }
  6824. if (GM_getValue("Check_filesmonster_dot_com_links", false))
  6825. {
  6826. addFileHost(
  6827. "filesmonster\\.com\/download\\.php\\?id=\\w+",
  6828. 'button_green_body"',
  6829. 'error">',
  6830. 'optional--',
  6831. "//a[contains(@href,'filesmonster.com/download')]"
  6832. );
  6833. }
  6834. if (GM_getValue("Check_usaupload_dot_net_links", false))
  6835. {
  6836. addFileHost(
  6837. 'usaupload\\.net\/d\/(?:\w*)',
  6838. '<strong>File size:</strong>',
  6839. 'is not available',
  6840. 'optional--',
  6841. "//a[contains(@href,'usaupload.net/d/')]"
  6842. );
  6843. }
  6844. if (GM_getValue("Check_sendspace_dot_com_links", false))
  6845. {
  6846. addFileHost(
  6847. 'sendspace\\.com\/file\/\\w+',
  6848. 'file_description',
  6849. 'msg error"',
  6850. 'optional--',
  6851. "//a[contains(@href,'sendspace.com/file')]"
  6852. );
  6853. }
  6854. if (GM_getValue("Check_sendspace_dot_pl_links", false))
  6855. {
  6856. addFileHost(
  6857. 'sendspace\\.pl\/file\/\\w+',
  6858. 'download_file"',
  6859. 'Podany plik nie',
  6860. 'optional--',
  6861. "//a[contains(@href,'sendspace.pl/file')]"
  6862. );
  6863. }
  6864. if (GM_getValue("Check_uploading_dot_com_links", false))
  6865. {
  6866. addFileHost(
  6867. 'uploading\\.com\/\\w+',
  6868. 'download_method">',
  6869. 'file_error">',
  6870. 'optional--',
  6871. "//a[contains(@href,'uploading.com')]"
  6872. );
  6873. }
  6874. if (GM_getValue("Check_gigasize_dot_com_links", false))
  6875. {
  6876. addFileHost(
  6877. 'gigasize\\.com\/get\\.php(?:\/\\d+|\\?d=\\w+)',
  6878. 'fileId"',
  6879. 'error">',
  6880. 'optional--',
  6881. "//a[contains(@href,'gigasize.com/get')]"
  6882. );
  6883. }
  6884. if (GM_getValue("Check_good_dot_com_links", false))
  6885. {
  6886. addFileHost(
  6887. 'good\\.net\/(?:_|dl)',
  6888. 'Free Download',
  6889. 'Not Found',
  6890. 'Forbidden',
  6891. "//a[contains(@href,'good.net')]"
  6892. );
  6893. }
  6894. if (GM_getValue("Check_2shared_dot_com_links", false))
  6895. {
  6896. addFileHost(
  6897. '2shared\\.com\/(?:file|video|document|audio)\/\\w*',
  6898. 'File size|You are trying to download ',
  6899. 'File not found|is not valid',
  6900. 'optional--',
  6901. "//a[contains(@href,'2shared.com/file/') or contains (@href,'2shared.com/audio/') or contains (@href,'2shared.com/document/') or contains (@href,'2shared.com/video/')]"
  6902. );
  6903. }
  6904. if (GM_getValue("Check_turboupload_dot_com_links", false))
  6905. {
  6906. addFileHost(
  6907. 'turboupload\\.com\/\\w*',
  6908. 'You have requested',
  6909. 'File Not Found',
  6910. 'optional--',
  6911. "//a[contains(@href,'turboupload.com')]"
  6912. );
  6913. }
  6914. if (GM_getValue("Check_up_dash_file_dot_com_links", false))
  6915. {
  6916. addFileHost(
  6917. 'up-file\\.com\/download\/\\w*',
  6918. 'Download the file',
  6919. 'is not found',
  6920. 'optional--',
  6921. "//a[contains(@href,'up-file.com/download')]"
  6922. );
  6923. }
  6924. if (GM_getValue("Check_gigapeta_dot_com_links", false))
  6925. {
  6926. addFileHost(
  6927. 'gigapeta\\.com\/dl\/',
  6928. 'Download file|Скачать файл| Herunterzuladen|Scarica il file|Cargar el fichero|Charger le fichier',
  6929. '404|page_error',
  6930. 'optional--',
  6931. "//a[contains(@href,'gigapeta.com/dl')]"
  6932. );
  6933. }
  6934. if (GM_getValue("Check_getthebit_dot_com_links", false))
  6935. {
  6936. addFileHost(
  6937. 'getthebit\\.com/f/\\w*',
  6938. 'Вы выбрали файл',
  6939. 'не найден',
  6940. 'optional--',
  6941. "//a[contains(@href,'getthebit.com')]"
  6942. );
  6943. }
  6944. if (GM_getValue("Check_veehd_dot_com_links", false))
  6945. {
  6946. addFileHost(
  6947. 'veehd\.com\/video\/.*?',
  6948. 'No sound|Download video',
  6949. 'Featured Videos',
  6950. 'optional--',
  6951. "//a[contains(@href,'veehd.com') and contains(@href,'video')]"
  6952. );
  6953. }
  6954. if (GM_getValue("Check_vip_dash_file_dot_com_links", false))
  6955. {
  6956. addFileHost(
  6957. '(?:u\\d+\\.)?vip-file\\.com\/download.*?\/(?:.*?)\/(?:.*?)\\.html',
  6958. 'fast_download_form">',
  6959. '<p style="text-align:center">',
  6960. 'optional--',
  6961. "//a[contains(@href,'vip-file.com/download')]"
  6962. );
  6963. }
  6964. if (GM_getValue("Check_letitbit_dot_net_links", false))
  6965. {
  6966. addFileHost(
  6967. '(?:u\\d+\\.)?letitbit\\.net\/download\/\\w+',
  6968. 'download\\-pnl ',
  6969. 'color:#000">|Запрашиваемый файл не найден|страница не существует|File not found|',
  6970. 'optional--',
  6971. "//a[contains(@href,'letitbit.net/download')]"
  6972. );
  6973. }
  6974. if (GM_getValue("Check_ifolder_dot_ru_links", false))
  6975. {
  6976. addFileHost(
  6977. 'ifolder\.ru\/\\d+',
  6978. 'file-info',
  6979. 'ui-state-error',
  6980. 'optional--',
  6981. "//a[contains(@href,'ifolder.ru')]"
  6982. );
  6983. }
  6984. if (GM_getValue("Check_filesend_dot_net_links", false))
  6985. {
  6986. addFileHost(
  6987. 'filesend\.net\/download',
  6988. 'buttdl',
  6989. 'File removed',
  6990. 'Error',
  6991. "//a[contains(@href,'filesend.net/download')]"
  6992. );
  6993. }
  6994. if (GM_getValue("Check_enigmashare_dot_com_links", false))
  6995. {
  6996. addFileHost(
  6997. 'enigmashare\\.com\/\\w+',
  6998. 'tbl12',
  6999. 'width:500px;text-align:left',
  7000. 'optional--',
  7001. "//a[contains(@href,'enigmashare.com/')]"
  7002. );
  7003. }
  7004. if (GM_getValue("Check_fileswap_dot_com_links", false))
  7005. {
  7006. addFileHost(
  7007. 'fileswap\\.com\/dl\/\\w+',
  7008. 'bttnDownloadLink"',
  7009. 'rounded_block_error"',
  7010. 'is temporary unavailable|disponible en estos momentos|vorläufig unerreichbar|Файл временно недоступен',
  7011. "//a[contains(@href,'fileswap.com/dl')]"
  7012. );
  7013. }
  7014. if (GM_getValue("Check_getzilla_dot_net_links", false))
  7015. {
  7016. addFileHost(
  7017. 'getzilla\\.net\/files\/\\d+',
  7018. 'free_download_url',
  7019. 'caption orange">Файл не найден',
  7020. 'optional--',
  7021. "//a[contains(@href,'getzilla.net/files')]"
  7022. );
  7023. }
  7024. /* if (GM_getValue("Check_extabit_dot_com_links", false))
  7025. {
  7026. addFileHost(
  7027. //'(?:u\\d+\\.)?extabit\\.com\/(?:file|folder|go)[\/_]\\w+',
  7028. '(?:u\\d+\\.)?extabit\\.com\/folder[\/_]\\w+',
  7029. 'download\\-file-btn"', //NOTE: this is just for folders. For files, update regexes in function extabitBulkCheck which handles non-bulk as well.
  7030. 'page_404_header',
  7031. 'id="mirrb"|is temporary unavailable|disponible en estos momentos|vorläufig unerreichbar|Файл временно недоступен',
  7032. "//a[contains(@href,'extabit.com/folder')]",
  7033. true
  7034. );
  7035. } */
  7036. if (GM_getValue("Check_filecloud_dot_io_links", false))
  7037. {
  7038. addFileHost(
  7039. '(?:s\\d+\\.)?filecloud\\.io\/\\w+',
  7040. 'var __error = 0',
  7041. 'FILES__DOESNT_EXIST',
  7042. 'optional--',
  7043. "//a[contains(@href,'filecloud.io/')]"
  7044. );
  7045. addFileHost(
  7046. 'ifile\\.it\/\\w+',
  7047. 'var __error = 0',
  7048. 'FILES__DOESNT_EXIST',
  7049. 'optional--',
  7050. "//a[contains(@href,'ifile.it/')]"
  7051. );
  7052. }
  7053. if (GM_getValue("Check_solidfiles_dot_com_links", false))
  7054. {
  7055. addFileHost(
  7056. 'solidfiles\\.com\/d\/\\w+',
  7057. 'id="download"|content="Download',
  7058. '>Not found<|<h2>404</h2>',
  7059. 'optional--',
  7060. "//a[contains(@href,'solidfiles.com/d')]"
  7061. );
  7062. }
  7063. if (GM_getValue("Check_shareflare_dot_net_links", false))
  7064. {
  7065. addFileHost(
  7066. 'shareflare\\.net\/download\/',
  7067. 'download-pnl',
  7068. 'File not found|Поиск зеркала на фа',
  7069. 'optional--',
  7070. "//a[contains(@href,'shareflare.net/download')]"
  7071. );
  7072. }
  7073. if (GM_getValue("Check_uploadmachine_dot_com_links", false))
  7074. {
  7075. addFileHost(
  7076. "uploadmachine\.com\/file\/\\d+",
  7077. 'Downloading the file',
  7078. 'not found|404 Error',
  7079. 'optional--',
  7080. "//a[contains(@href,'uploadmachine.com/file')]"
  7081. );
  7082. }
  7083. if (GM_getValue("Check_uloz_dot_to_links", false))
  7084. {
  7085. addFileHost(
  7086. "(?:uloz|ulozto|bagruj|zachowajto)\\.(to|cz|sk|net|pl)\/\\w",
  7087. 'fileDownload">|fileSize">',
  7088. 'grayButton deletedFile">|Stránka nenalezena|upload-button"|jako soukromý.',
  7089. 'passwordProtectedFile">|frmaskAgeForm-disagree',
  7090. "//a[contains(@href,'bagruj.cz') or contains(@href,'uloz.to') or contains(@href,'ulozto.') or contains(@href,'zachowajto.pl')]",
  7091. true
  7092. );
  7093. }
  7094. if (GM_getValue("Check_hellspy_dot_com_links", false))
  7095. {
  7096. addFileHost(
  7097. "hellspy\.(?:com|cz|sk|hu|pl)\/\\w+",
  7098. 'file\\-list-orderby|section-filedetail">',
  7099. '<\/span><\/h2>\\s*<p>|list-purp-2">|flash info sticky">',
  7100. 'optional--',
  7101. "//a[contains(@href,'hellspy.')]"
  7102. );
  7103. }
  7104. if (GM_getValue("Check_leteckaposta_dot_cz_links", false))
  7105. {
  7106. addFileHost(
  7107. "(?:leteckaposta\\.cz|sharegadget\\.com)\/\\d+",
  7108. '<body onload="">',
  7109. 'neexistuje|not exist',
  7110. 'optional--',
  7111. "//a[contains(@href,'leteckaposta.cz') or contains(@href,'sharegadget.com')]"
  7112. );
  7113. }
  7114. if (GM_getValue("Check_stahovanizasms_dot_cz_links", false))
  7115. {
  7116. addFileHost(
  7117. "stahovanizasms\\.cz\/\\w+",
  7118. 'download\\.png>|font-size:11px><tr>',
  7119. 'smaz.n u.ivatelem|font-size:11px><\/table>',
  7120. 'optional--',
  7121. "//a[contains(@href,'stahovanizasms.cz')]"
  7122. );
  7123. }
  7124. if (GM_getValue("Check_share_dash_links_dot_biz_links", false))
  7125. {
  7126. addFileHost(
  7127. "share-links\\.biz\/\\w*",
  7128. 'online\\.gif',
  7129. '(?:offline|parts)\\.gif',
  7130. 'optional--',
  7131. "//a[contains(@href,'share-links.biz')]"
  7132. );
  7133. }
  7134. if (GM_getValue("Check_4shared_dot_com_links", false))
  7135. {
  7136. addFileHost(
  7137. "4shared\\.com\/.+\/",
  7138. 'btnLink"|vlist">',
  7139. 'class="warn\"|big red"',
  7140. 'Service Unavailable',
  7141. "//a[contains(@href,'4shared.com')]"
  7142. );
  7143. }
  7144. if (GM_getValue("Check_zippyshare_dot_com_links", false))
  7145. {
  7146. addFileHost(
  7147. "(?:www\\d+\.|)zippyshare\.com\/v\/\\d+\/file\.html",
  7148. 'download\.png|Download Now|dlbutton"',
  7149. 'not exist|Status 404',
  7150. 'optional--',
  7151. "//a[contains(@href,'zippyshare.com') and contains(@href,'file.html')]"
  7152. );
  7153. }
  7154. if (GM_getValue("Check_speedshare_dot_org_links", false))
  7155. {
  7156. addFileHost(
  7157. "speedshare\.org\/.+",
  7158. 'class=\"dbtn\"',
  7159. 'Error',
  7160. 'optional--',
  7161. "//a[contains(@href,'speedshare.org')]"
  7162. );
  7163. }
  7164. if (GM_getValue("Check_mediafire_dot_com_links", false))
  7165. {
  7166. addFileHost(
  7167. "mediafire\.com\/",
  7168. 'download_file_title|dlFileName|id="PLAY_downloadButton"',
  7169. 'error\\.php\\?|error_msg_title|<title>Simple File Sharing|No files found',
  7170. 'set to private',
  7171. "//a[contains(@href,'mediafire.com')]"
  7172. );
  7173. }
  7174. if (GM_getValue("Check_uploaded_dot_to_links", false))
  7175. {
  7176. addFileHost(
  7177. '(?:uploaded\\.(?:to|net)\/(?:.id|file|folder|f|410|404))|(?:ul\\.to\/)',
  7178. '<h2>Authentification</h2></li>| MB| KB',
  7179. 'box_red|Error: 404|Error: 410|fileList"><thead><tr><td colspan="2"><\/td><\/tr><\/thead><tbody>\\s*<tr>',
  7180. 'optional--',
  7181. "//a[contains(@href,'uploaded.to/') or contains(@href,'uploaded.net/') or contains(@href,'ul.to/')]"
  7182. );
  7183. }
  7184. if (GM_getValue("Check_ulozisko_dot_sk_links", false))
  7185. {
  7186. addFileHost(
  7187. "ulozisko\.sk\/",
  7188. 'Detaily',
  7189. 'neexistuje',
  7190. 'optional--',
  7191. "//a[contains(@href,'ulozisko.sk')]"
  7192. );
  7193. }
  7194. if (GM_getValue("Check_speedfile_dot_cz_links", false))
  7195. {
  7196. addFileHost(
  7197. "speedfile\.cz\/(?:cs\/|en\/|sk\/|)\\d+\/",
  7198. 'Stáhnout|<span>Download',
  7199. 'error|soubor byl odst|This file was deleted',
  7200. 'optional--',
  7201. "//a[contains(@href,'speedfile.cz')]"
  7202. );
  7203. }
  7204. if (GM_getValue("Check_upnito_dot_sk_links", false))
  7205. {
  7206. addFileHost(
  7207. "(?:dl.\\.|)upnito\\.sk\/(download|subor|file)",
  7208. 'download.php',
  7209. 'notfound|upload\\-suborov\\.php"',
  7210. 'optional--',
  7211. "//a[contains(@href,'upnito.sk')]"
  7212. );
  7213. }
  7214. if (GM_getValue("Check_cobrashare_dot_sk_links", false))
  7215. {
  7216. addFileHost(
  7217. "cobrashare\\.(?:sk|net)\/downloadFile\\.php",
  7218. 'class=\"popis\"',
  7219. 'nenach.dza',
  7220. 'optional--',
  7221. "//a[contains(@href,'cobrashare.') and contains(@href,'/downloadFile')]"
  7222. );
  7223. }
  7224. if (GM_getValue("Check_dataport_dot_cz_links", false))
  7225. {
  7226. addFileHost(
  7227. "dataport\.cz\/file\/",
  7228. 'premium_download">',
  7229. '="error">',
  7230. 'optional--',
  7231. "//a[contains(@href,'dataport.cz/file')]",
  7232. true
  7233. );
  7234. }
  7235. if (GM_getValue("Check_czshare_dot_com_links", false))
  7236. {
  7237. addFileHost(
  7238. "czshare\\.com\/(?:\\d+\/\\w*|download_file\.php|files\/\\d+\/\\w*|error\\.php\\?co=\\d+)",
  7239. 'page-download',
  7240. 'Soubor nenalezen|byl smazán|identifikován jako warez|chybě při uploadu|Soubor expiroval|výpadek databáze',
  7241. 'optional--',
  7242. "//a[contains(@href,'czshare.com/')]"
  7243. );
  7244. }
  7245. if (GM_getValue("Check_uptobox_dot_com_links", false))
  7246. {
  7247. addFileHost(
  7248. "uptobox\\.com\/\\w+",
  7249. 'download1">',
  7250. '500px;text-align:left;">|File not found|Fichier introuvable',
  7251. 'Maintenance',
  7252. "//a[contains(@href,'uptobox.com')]"
  7253. );
  7254. }
  7255. if (GM_getValue("Check_gigaup_dot_fr_links", false))
  7256. {
  7257. addFileHost(
  7258. "gigaup\\.fr\/\\?g=\\w+",
  7259. 'Taille de',
  7260. 'Vous ne pouvez|existe pas',
  7261. 'optional--',
  7262. "//a[contains(@href,'gigaup.fr/')]"
  7263. );
  7264. }
  7265. if (GM_getValue("Check_sharecash_dot_org_links", false))
  7266. {
  7267. addFileHost(
  7268. "sharecash\\.org\/download\\.php\\?file=\\d+",
  7269. 'FILE DOWNLOAD<',
  7270. 'File Does Not Exist',
  7271. 'optional--',
  7272. "//a[contains(@href,'sharecash.org/download.php')]"
  7273. );
  7274. }
  7275. if (GM_getValue("Check_depositfiles_dot_com_links", false)) //folders
  7276. {
  7277. addFileHost(
  7278. "depositfiles\\.com\/folders\/\\w+",
  7279. '<div class="progressContainer">',
  7280. '<div id="files" class="files">\\s*<\/div>',
  7281. 'optional--',
  7282. "//a[contains(@href,'depositfiles.com/folders')]"
  7283. );
  7284. }
  7285. /* if (GM_getValue("Check_cloudzer_dot_net_links", false))
  7286. {
  7287. addFileHost(
  7288. "(?:cloudzer\\.net/file|clz\\.to)/\\w+",
  7289. '<b class="filename" id="filename">|Folders|Ordner',
  7290. '<h1>Error</h1>|Fehler',
  7291. 'optional--',
  7292. "//a[contains(@href,'cloudzer.net/file') or contains(@href,'clz.to/')]"
  7293. );
  7294. } */
  7295. if (GM_getValue("Check_rapidfileshare_dot_net_links", false))
  7296. {
  7297. addFileHost(
  7298. "rapidfileshare\\.net/\\w+",
  7299. '<div id="upload-header-bg">',
  7300. '<div style="width:500px;text-align:left;">',
  7301. 'optional--',
  7302. "//a[contains(@href,'rapidfileshare.net/')]"
  7303. );
  7304. }
  7305. if (GM_getValue("Check_stiahnito_dot_sk_links", false))
  7306. {
  7307. addFileHost(
  7308. "stiahnito\\.sk/",
  7309. '<span class="filesize right">',
  7310. '<ol class="list-purp-2">',
  7311. 'optional--',
  7312. "//a[contains(@href,'stiahnito.sk/')]"
  7313. );
  7314. }
  7315. if (GM_getValue("Check_rusfolder_dot_com_links", false))
  7316. {
  7317. addFileHost(
  7318. "rusfolder\\.(?:com|net)",
  7319. '"download-step-one-form"|Название: <b>|Файлы|Файлы в папке',
  7320. '"ui-state-error ui-corner-all"|File is removed|File not found|удален',
  7321. 'optional--',
  7322. "//a[contains(@href,'rusfolder')]"
  7323. );
  7324. }
  7325. if (GM_getValue("Check_fileover_dot_net_links", false))
  7326. {
  7327. addFileHost(
  7328. "fileover\\.net/\\d+",
  7329. 'id="filesize"',
  7330. 'Not found or deleted|The following file is unavailable',
  7331. 'optional--',
  7332. "//a[contains(@href,'fileover.net/')]"
  7333. );
  7334. }
  7335. if (GM_getValue("Check_catshare_dot_net_links", false))
  7336. {
  7337. addFileHost(
  7338. "catshare\\.net/\\w+",
  7339. '"icon-share',
  7340. 'alert alert-error',
  7341. 'optional--',
  7342. "//a[contains(@href,'catshare.net/')]"
  7343. );
  7344. }
  7345. if (GM_getValue("Check_anonfiles_dot_com_links", false))
  7346. {
  7347. addFileHost(
  7348. "anonfiles\\.com/\\w+",
  7349. '"download_button"',
  7350. '<legend><b>404</b>',
  7351. 'optional--',
  7352. "//a[contains(@href,'anonfiles.com')]"
  7353. );
  7354. }
  7355. if (GM_getValue("Check_mixturecloud_dot_com_links", false))
  7356. {
  7357. addFileHost(
  7358. "mixturecloud\\.com/media/\\w+",
  7359. '"btn icon i_globe gray share_150',
  7360. '"s_cross_close"></span> 404:',
  7361. 'optional--',
  7362. "//a[contains(@href,'mixturecloud.com/media/')]"
  7363. );
  7364. }
  7365. if (GM_getValue("Check_akafile_dot_com_links", false))
  7366. {
  7367. addFileHost(
  7368. "akafile\\.com\/\\w+",
  7369. 'download1',
  7370. 'File Not Found',
  7371. 'optional--',
  7372. "//a[contains(@href,'akafile.com/')]"
  7373. );
  7374. }
  7375. if (GM_getValue("Check_creafile_dot_net_links", false))
  7376. {
  7377. addFileHost(
  7378. "creafile\\.net\/\\w+",
  7379. 'downloadblock',
  7380. 'errtitle',
  7381. 'optional--',
  7382. "//a[contains(@href,'creafile.net/')]"
  7383. );
  7384. }
  7385. if (GM_getValue("Check_hugefiles_dot_net_links", false))
  7386. {
  7387. addFileHost(
  7388. "hugefiles\\.net\/\\w+",
  7389. 'download1|class="btn-create-download" value="Create Download Link">',
  7390. 'File Not Found',
  7391. 'optional--',
  7392. "//a[contains(@href,'hugefiles.net/')]"
  7393. );
  7394. }
  7395. if (GM_getValue("Check_sendmyway_dot_com_links", false))
  7396. {
  7397. addFileHost(
  7398. "sendmyway\\.com\/\\w+",
  7399. 'id="btn_download"',
  7400. '500px;text-align:left;"|<center><h3>',
  7401. 'optional--',
  7402. "//a[contains(@href,'sendmyway.com/')]"
  7403. );
  7404. }
  7405. if (GM_getValue("Check_upload_dot_ee_links", false))
  7406. {
  7407. addFileHost(
  7408. "upload\\.ee\/\\w+",
  7409. 'onmouseout="document.dllink.src',
  7410. 'There is no such file.|File was deleted|Fail kustutati|Файл удалён|Такого файла нет',
  7411. 'optional--',
  7412. "//a[contains(@href,'upload.ee/')]"
  7413. );
  7414. }
  7415. if (GM_getValue("Check_epicshare_dot_net_links", false))
  7416. {
  7417. addFileHost(
  7418. "epicshare\\.net\/\\w+",
  7419. 'value="download2"',
  7420. 'style="width:500px;text-align:left;"',
  7421. 'optional--',
  7422. "//a[contains(@href,'epicshare.net/')]"
  7423. );
  7424. }
  7425. if (GM_getValue("Check_shareplace_dot_org_links", false))
  7426. {
  7427. addFileHost(
  7428. "shareplace\\.org\/\\?\\w+",
  7429. 'Download-Link',
  7430. 'Your requested file is not found|Select file to send',
  7431. 'optional--',
  7432. "//a[contains(@href,'shareplace.org/?')]"
  7433. );
  7434. }
  7435. if (GM_getValue("Check_uploadc_dot_com_links", false))
  7436. {
  7437. addFileHost(
  7438. "uploadc\\.com\/\\w+",
  7439. 'id="prebut"',
  7440. 'File Not Found|This file has been removed due',
  7441. 'optional--',
  7442. "//a[contains(@href,'uploadc.com/')]"
  7443. );
  7444. }
  7445. if (GM_getValue("Check_darkport_dot_org_links", false))
  7446. {
  7447. addFileHost(
  7448. "files\\.darkport\\.org\/\\w+",
  7449. 'class="premium-btn-3"',
  7450. 'File was not found|file_not_found.css',
  7451. 'optional--',
  7452. "//a[contains(@href,'files.darkport.org/')]"
  7453. );
  7454. }
  7455. if (GM_getValue("Check_yourfiles_dot_to_links", false))
  7456. {
  7457. addFileHost(
  7458. "yourfiles\\.(?:to|biz)/\\?d=\\w+",
  7459. '<td align=left width=20%><b><font>',
  7460. "<DIV id=uploadwindow>|<tr height=26px>\\s+<td class='titlerow'",
  7461. 'optional--',
  7462. "//a[contains(@href,'yourfiles.biz/?d=') or contains(@href,'yourfiles.to/?d=')]"
  7463. );
  7464. }
  7465. if (GM_getValue("Check_remixshare_dot_com_links", false))
  7466. {
  7467. addFileHost(
  7468. "remixshare\\.com\/\\w+",
  7469. 'id="dl2"',
  7470. '<table class=\'failed\'><tr><td width=\'90%\'>|Sorry, die Datei konnte nicht gefunden werden',
  7471. 'optional--',
  7472. "//a[contains(@href,'remixshare.com/')]"
  7473. );
  7474. }
  7475. if (GM_getValue("Check_exoshare_dot_com_links", false))
  7476. {
  7477. addFileHost(
  7478. "exoshare\\.com\/download\\.php\\?uid=\\w+",
  7479. 'Last Download :',
  7480. 'img src="\\/404.jpg"',
  7481. 'optional--',
  7482. "//a[contains(@href,'exoshare.com/download.php')]"
  7483. );
  7484. }
  7485. if (GM_getValue("Check_borncash_dot_org_links", false))
  7486. {
  7487. addFileHost(
  7488. "borncash\\.org\/download\/\\?a=\\w+",
  7489. 'class="knop_1"',
  7490. '\/error\/er00',
  7491. 'optional--',
  7492. "//a[contains(@href,'borncash.org/download/')]"
  7493. );
  7494. }
  7495. if (GM_getValue("Check_bigupload_dot_com_links", false))
  7496. {
  7497. addFileHost(
  7498. "bigupload\\.com\/(?:en\/file\/|\\?d=|code\\.php\\?code=)\\w+",
  7499. 'input type="submit" class=button-ae onclick=""|p class="paginationstyle"',
  7500. 'Please wait while|input type="hidden" name="d" value="1"',
  7501. 'optional--',
  7502. "//a[contains(@href,'bigupload.com/')]"
  7503. );
  7504. }
  7505. if (GM_getValue("Check_uploadsat_dot_com_links", false))
  7506. {
  7507. addFileHost(
  7508. "uploadsat\.com\/\\w+",
  7509. 'class="btn btn-success btn-lg" name="method_free"|value="Free Download">',
  7510. '<div style="width:500px;text-align:left;">|File Not Found|The file was removed',
  7511. 'optional--',
  7512. "//a[contains(@href,'uploadsat.com')]");
  7513. }
  7514. if (GM_getValue("Check_vidplay_dot_net_links", false))
  7515. {
  7516. addFileHost(
  7517. "vidplay\.net\/\\w+",
  7518. 'solvemedia puzzle widget',
  7519. 'File not found|AVOID_IE_BUG',
  7520. 'optional--',
  7521. "//a[contains(@href,'vidplay.net')]");
  7522. }
  7523. if (GM_getValue("Check_storagon_dot_com_links", false))
  7524. {
  7525. addFileHost(
  7526. "storagon\.com\/\\w+",
  7527. 'class="icon-cloud-download"></i>|content="Download Options',
  7528. 'content="Download Downloads|class="error-container">|class="bigger-300 bolder">404<',
  7529. 'optional--',
  7530. "//a[contains(@href,'storagon.com')]");
  7531. }
  7532. if (GM_getValue("Check_filedais_dot_com_links", false))
  7533. {
  7534. addFileHost(
  7535. "filedais\.com\/\\w+",
  7536. 'class="btn btn-info"|name="method_free"',
  7537. 'style="width:500px;text-align:left;">|File Not Found|AVOID_IE_BUG',
  7538. 'optional--',
  7539. "//a[contains(@href,'filedais.com')]");
  7540. }
  7541. if (GM_getValue("Check_qkup_dot_net_links", false))
  7542. {
  7543. addFileHost(
  7544. "qkup\.net\/\\w+",
  7545. 'btn_download',
  7546. 'AVOID_IE_BUG|style="width:500px;text-align:left;">',
  7547. 'optional--',
  7548. "//a[contains(@href,'qkup.net')]");
  7549. }
  7550. if (GM_getValue("Check_rocketfile_dot_net_links", false))
  7551. {
  7552. addFileHost(
  7553. "rocketfile\.net\/\\w+",
  7554. '<div class="col-lg-10 col-lg-offset-1"><style>',
  7555. '<div style="width:500px;text-align:left;">',
  7556. 'optional--',
  7557. //'optional--',
  7558. "//a[contains(@href,'rocketfile.net')]");
  7559. }
  7560. /*if (GM_getValue("Check_ryushare_dot_com_links", false))
  7561. {
  7562. addFileHost(
  7563. "ryushare\.com\/\\w+",
  7564. 'KB|MB',
  7565. '<div style="width:500px;text-align:left;">',
  7566. 'in maintenance mode|Software error:',
  7567. "//a[contains(@href,'ryushare.com')]");
  7568. }*/
  7569. if (GM_getValue("Check_filecity_dot_net_links", false))
  7570. {
  7571. addFileHost(
  7572. "filecity\.net\/\\w+",
  7573. '<input type="submit"',
  7574. '<div style="width:500px;text-align:left;">',
  7575. 'optional--',
  7576. //'optional--',
  7577. "//a[contains(@href,'filecity.net')]");
  7578. }
  7579. if (GM_getValue("Check_up_dot_4share_dot_vn_links", false))
  7580. {
  7581. addFileHost(
  7582. "up.4share\.vn\/\\w+",
  7583. '<font size="2" face="Verdana">',
  7584. 'font: 13px Tahoma; color: Brown',
  7585. 'optional--',
  7586. //'optional--',
  7587. "//a[contains(@href,'up.4share.vn')]");
  7588. }
  7589. if (GM_getValue("Check_share_dot_vnn_dot_vn_links", false))
  7590. {
  7591. addFileHost(
  7592. "share.vnn\.vn\/\\w+",
  7593. '"index,follow"|<div class="main" id="download-box">',
  7594. '<meta name="description" content="" />|<h1>Không tìm thấy file bạn yêu cầu</h1>',
  7595. 'optional--',
  7596. //'optional--',
  7597. "//a[contains(@href,'share.vnn.vn')]");
  7598. }
  7599. if (GM_getValue("Check_upfile_dot_vn_links", false))
  7600. {
  7601. addFileHost(
  7602. "upfile\.vn\/\\w+",
  7603. 'download-timer',
  7604. '<meta name="description" content="Upload files|<meta name="description" content="Error "',
  7605. 'optional--',
  7606. //'optional--',
  7607. "//a[contains(@href,'upfile.vn')]");
  7608. }
  7609. if (GM_getValue("Check_berofile_dot_com_links", false))
  7610. {
  7611. addFileHost(
  7612. "berofile\.com\/\\w+",
  7613. 'rsidebar-wrapper',
  7614. '<div style="width:500px;text-align:left;">',
  7615. 'optional--',
  7616. //'optional--',
  7617. "//a[contains(@href,'berofile.com')]");
  7618. }
  7619. /*if (GM_getValue("Check_hulkload_dot_com_links", false))
  7620. {
  7621. addFileHost(
  7622. "hulkload\.com\/\\w+",
  7623. 'Free.png',
  7624. 'background-color: #ecf0f6|<title>Download</title>',
  7625. 'optional--',
  7626. //'optional--',
  7627. "//a[contains(@href,'hulkload.com') or contains(@href,'sharesuper.info/')]");
  7628. }*/
  7629. if (GM_getValue("Check_firedrive_dot_com_links", false))
  7630. {
  7631. addFileHost(
  7632. "firedrive\\.com\/file\/\\w{16}",
  7633. 'as Free User|<a class="continue"|Continue to file|#feedback_btn|application file_standalone',
  7634. 'Welcome to PutLocker|<div class="sad_face_image">|404:',
  7635. 'undergoing scheduled maintenance',
  7636. "//a[contains(@href,'firedrive.com/file')]"
  7637. );
  7638. }
  7639. if (GM_getValue("Check_aisfile_dot_com_links", false))
  7640. {
  7641. addFileHost(
  7642. "aisfile\.com\/\\w+",
  7643. '<h3 style="text-align:left;">|align=right><b>Filename:',
  7644. '<div style="width:500px;text-align:left;">|File Not Found',
  7645. 'optional--',
  7646. //'optional--',
  7647. "//a[contains(@href,'aisfile.com')]");
  7648. }
  7649. if (GM_getValue("Check_usersfiles_dot_com_links", false))
  7650. {
  7651. addFileHost(
  7652. "usersfiles\.com\/\\w+",
  7653. 'class="btn btn-success',
  7654. '<div style="width:500px;text-align:left;">',
  7655. 'optional--',
  7656. //'optional--',
  7657. "//a[contains(@href,'usersfiles.com')]");
  7658. }
  7659. if (GM_getValue("Check_hellfile_dot_com_links", false))
  7660. {
  7661. addFileHost(
  7662. "hellfile\.com\/\\w+",
  7663. 'content="download',
  7664. 'pageErrors',
  7665. 'optional--',
  7666. //'optional--',
  7667. "//a[contains(@href,'hellfile.com')]");
  7668. }
  7669. if (GM_getValue("Check_pan_dot_baidu_dot_com_links", false))
  7670. {
  7671. addFileHost(
  7672. "pan.baidu\.com\/\\w+",
  7673. 'target="_blank" title=|share-personal-info',
  7674. 'share_notfound.png|background:#f9f9f9',
  7675. 'optional--',
  7676. //'optional--',
  7677. "//a[contains(@href,'pan.baidu.com')]");
  7678. }
  7679. if (GM_getValue("Check_yunpan_dot_cn_links", false))
  7680. {
  7681. addFileHost(
  7682. "yunpan\.cn\/\\w+",
  7683. 'class="icon icon-download',
  7684. 'content="360|http://p5.qhimg.com/t01d1c98667df9dc6cc.jpg',
  7685. 'optional--',
  7686. //'optional--',
  7687. "//a[contains(@href,'yunpan.cn')]");
  7688. }
  7689. if (GM_getValue("Check_file_dash_upload_dot_net_links", false))
  7690. {
  7691. addFileHost(
  7692. "(?:en\\.|)file\\-upload\\.net\/download\\-\\d+\/\\w+",
  7693. 'getElementById("downbild")|style.display',
  7694. 'hochgeladene Datei nicht gefunden werden|has not been found',
  7695. 'optional--',
  7696. //'optional--',
  7697. "//a[contains(@href,'file-upload.net')]");
  7698. }
  7699. if (GM_getValue("Check_gulfup_dot_com_links", false))
  7700. {
  7701. addFileHost(
  7702. "gulfup\.com\/",
  7703. '<!-- Downlod template -->|download.gif',
  7704. '<!-- Errors template -->|class="error">|<!-- form upload -->|[ رفع الملفات ]',
  7705. 'optional--',
  7706. //'optional--',
  7707. "//a[contains(@href,'gulfup.com')]");
  7708. }
  7709. if (GM_getValue("Check_datafilehost_dot_com_links", false))
  7710. {
  7711. addFileHost(
  7712. "datafilehost\\.com\/(?:download-\\w+\\.html|d\/\\w+)",
  7713. 'dldtable">',
  7714. 'does not exist\\.',
  7715. 'optional--',
  7716. //'optional--',
  7717. "//a[contains(@href,'datafilehost.com')]");
  7718. }
  7719. if (GM_getValue("Check_box_dot_com_links", false))
  7720. {
  7721. addFileHost(
  7722. "box\.com\/\\w+",
  7723. 'download-file-btn|id="download_button',
  7724. 'BIyMin.png| <div class="error_message',
  7725. 'optional--',
  7726. //'optional--',
  7727. "//a[contains(@href,'app.box.com')]");
  7728. }
  7729. if (GM_getValue("Check_box_dot_net_links", false))
  7730. {
  7731. addFileHost(
  7732. "box\.net\/\\w+",
  7733. 'download-file-btn|id="download_button',
  7734. 'BIyMin.png| <div class="error_message',
  7735. 'optional--',
  7736. //'optional--',
  7737. "//a[contains(@href,'box.net')]");
  7738. }
  7739. if (GM_getValue("Check_fileband_dot_com_links", false))
  7740. {
  7741. addFileHost(
  7742. "fileband\.com\/\\w+",
  7743. 'value="download1">|name="id" value=',
  7744. '<div style="width:500px;text-align:left;">|not be found',
  7745. 'optional--',
  7746. //'optional--',
  7747. "//a[contains(@href,'fileband.com')]");
  7748. }
  7749. if (GM_getValue("Check_lumfile_dot_com_links", false))
  7750. {
  7751. addFileHost(
  7752. "lumfile\.com\/\\w+",
  7753. '<div style="width:900px;">',
  7754. '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;">',
  7755. 'optional--',
  7756. "//a[contains(@href,'lumfile.com')]");
  7757. }
  7758. if (GM_getValue("Check_lumfile_dot_se_links", false))
  7759. {
  7760. addFileHost(
  7761. "lumfile\.se\/\\w+",
  7762. '<div style="width:900px;">',
  7763. '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;">',
  7764. 'optional--',
  7765. "//a[contains(@href,'lumfile.se')]");
  7766. }
  7767. if (GM_getValue("Check_lumfile_dot_eu_links", false))
  7768. {
  7769. addFileHost(
  7770. "lumfile\.eu\/\\w+",
  7771. '<div style="width:900px;">',
  7772. '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;">',
  7773. 'optional--',
  7774. "//a[contains(@href,'lumfile.eu')]");
  7775. }
  7776. if (GM_getValue("Check_vidbox_dot_yt_links", false))
  7777. {
  7778. addFileHost(
  7779. "vidbox\.yt\/\\w+",
  7780. 'btn_download',
  7781. '<div style="width:500px;text-align:left;">',
  7782. '500 Internal Server Error|522: Connection timed out|cf-error-code">521<',
  7783. //'optional--',
  7784. "//a[contains(@href,'vidbox.yt')]");
  7785. }
  7786. if (GM_getValue("Check_uploadrocket_dot_net_links", false))
  7787. {
  7788. addFileHost(
  7789. "uploadrocket\.net\/\\w+",
  7790. '<font style="font-size:12px;">|<h2>Download File',
  7791. 'font style="color:#d33;|File Not Found',
  7792. 'optional--',
  7793. //'optional--',
  7794. "//a[contains(@href,'uploadrocket.net')]");
  7795. }
  7796. if (GM_getValue("Check_filedropper_dot_com_links", false))
  7797. {
  7798. addFileHost(
  7799. "filedropper\.com\/\\w+",
  7800. 'background:#ddd;|width:985px; ',
  7801. 'background-color:#FFFFFF;|margin-left: -400px;',
  7802. 'optional--',
  7803. //'optional--',
  7804. "//a[contains(@href,'filedropper.com')]");
  7805. }
  7806. if (GM_getValue("Check_tropicshare_dot_com_links", false))
  7807. {
  7808. addFileHost(
  7809. "tropicshare\\.com\/files\/\\d+",
  7810. 'MB</span>|GB</span>|KB</span>',
  7811. '>FNF<|size: </span>',
  7812. 'optional--',
  7813. //'optional--',
  7814. "//a[contains(@href,'tropicshare.com')]");
  7815. }
  7816. if (GM_getValue("Check_goldbytez_dot_com_links", false))
  7817. {
  7818. addFileHost(
  7819. "goldbytez\.com\/\\w+",
  7820. '<h2>Download</h2>',
  7821. '<div style="width:500px;text-align:left;">',
  7822. 'optional--',
  7823. //'optional--',
  7824. "//a[contains(@href,'goldbytez.com')]");
  7825. }
  7826. if (GM_getValue("Check_worldbytez_dot_com_links", false))
  7827. {
  7828. addFileHost(
  7829. "worldbytez\.com\/\\w+",
  7830. '<div class="download_type">',
  7831. '<div style="width:500px;text-align:left;">',
  7832. 'optional--',
  7833. //'optional--',
  7834. "//a[contains(@href,'worldbytez.com')]");
  7835. }
  7836. if (GM_getValue("Check_freefilehosting_dot_net_links", false))
  7837. {
  7838. addFileHost(
  7839. "freefilehosting\.net\/\\w+",
  7840. 'Type: cbr|Type: rar|Type: jpg|Type: mkv|Type: avi|Type: mpg|Type: mpeg|Type: zip|Type: wmvType: bmpType: gifType: mp4Type: mp3',
  7841. '175px;" value="http://www.freefilehosting.net/"|Filename: <br>',
  7842. 'optional--',
  7843. //'optional--',
  7844. "//a[contains(@href,'freefilehosting.net')]");
  7845. }
  7846. if (GM_getValue("Check_filesfrog_dot_net_links", false))
  7847. {
  7848. addFileHost(
  7849. "filesfrog\.net\/\\w+",
  7850. 'download-now.png|File: <font style="color:darkred">',
  7851. '<div style="width:500px;text-align:left;">|File Not Found',
  7852. 'optional--',
  7853. //'optional--',
  7854. "//a[contains(@href,'filesfrog.net')]");
  7855. }
  7856. if (GM_getValue("Check_ziddu_dot_com_links", false))
  7857. {
  7858. addFileHost(
  7859. "ziddu\.com\/\\w+",
  7860. 'downloads.ziddu.com|downloadfilelinkicon',
  7861. 'errortracking.php|images/oops.png|fontfamilyverdana error',
  7862. 'optional--',
  7863. //'optional--',
  7864. "//a[contains(@href,'ziddu.com')]");
  7865. }
  7866. if (GM_getValue("Check_exclusiveloader_dot_com_links", false))
  7867. {
  7868. addFileHost(
  7869. "exclusiveloader\.com\/\\w+",
  7870. 'style="padding-top:55px; padding-bottom:65px;">|<h2>Download</h2>',
  7871. 'File Not Found|width:322px;text-align:left;" class="no_file">',
  7872. 'optional--',
  7873. //'optional--',
  7874. "//a[contains(@href,'exclusiveloader.com')]");
  7875. }
  7876. if (GM_getValue("Check_sharerapid_dot_cz_links", false))
  7877. {
  7878. addFileHost(
  7879. "sharerapid\.cz\/\\w+",
  7880. 'value="Stáhnout"|soubor" style|Stahování je povoleno pouze pro přihlášené uživatele',
  7881. 'error_div">|404 - Not Found',
  7882. 'optional--',
  7883. //'optional--',
  7884. "//a[contains(@href,'sharerapid.cz')]");
  7885. }
  7886. if (GM_getValue("Check_sdilej_dot_cz_links", false))
  7887. {
  7888. addFileHost(
  7889. "sdilej\.cz\/\\w+",
  7890. 'class="page-download"',
  7891. '<h2 class="red">|czshare.com|sponsored listings|This domain is for sale',
  7892. 'optional--',
  7893. //'optional--',
  7894. "//a[contains(@href,'sdilej.cz')]");
  7895. }
  7896. if (GM_getValue("Check_lafiles_dot_com_links", false))
  7897. {
  7898. addFileHost(
  7899. "lafiles\.com\/\\w+",
  7900. '<div id="pay_modes">',
  7901. '<b class="err"></b>',
  7902. 'optional--',
  7903. //'optional--',
  7904. "//a[contains(@href,'lafiles.com')]");
  7905. }
  7906. if (GM_getValue("Check_fboom_dot_me_links", false))
  7907. {
  7908. addFileHost(
  7909. "fboom\.me\/\\w+",
  7910. 'id="download-free" href="#"',
  7911. 'class="error-v1-title">404<|File not found or deleted',
  7912. 'optional--',
  7913. //'optional--',
  7914. "//a[contains(@href,'fboom.me')]");
  7915. }
  7916. if (GM_getValue("Check_fcore_dot_eu_links", false))
  7917. {
  7918. addFileHost(
  7919. "fcore\.eu\/\\w+",
  7920. 'btn_download',
  7921. '<div style="width:500px;text-align:left;">',
  7922. 'optional--',
  7923. //'optional--',
  7924. "//a[contains(@href,'fcore.eu')]");
  7925. }
  7926. if (GM_getValue("Check_acefile_dot_net_links", false))
  7927. {
  7928. addFileHost(
  7929. "acefile\.net\/\\w+",
  7930. 'align=right nowrap><b>',
  7931. 'File Not Found|<div style="width:322px;text-align:left;" class="no_file">',
  7932. 'optional--',
  7933. //'optional--',
  7934. "//a[contains(@href,'acefile.net')]");
  7935. }
  7936. if (GM_getValue("Check_dotsemper_dot_com_links", false))
  7937. {
  7938. addFileHost(
  7939. "dotsemper\.com\/\\w+",
  7940. 'btn_download',
  7941. 'style="width:500px;text-align:left;">',
  7942. 'optional--',
  7943. //'optional--',
  7944. "//a[contains(@href,'dotsemper.com')]");
  7945. }
  7946. if (GM_getValue("Check_filesaur_dot_com_links", false))
  7947. {
  7948. addFileHost(
  7949. "filesaur\.com\/\\w+",
  7950. 'btn-normal|value="download1|method_free',
  7951. 'File Not Found|style="width:500px;text-align:left;',
  7952. 'optional--',
  7953. //'optional--',
  7954. "//a[contains(@href,'filesaur.com')]");
  7955. }
  7956. if (GM_getValue("Check_megarapid_dot_cz_links", false))
  7957. {
  7958. addFileHost(
  7959. "megarapid\.cz\/\\w+",
  7960. 'value="Stáhnout"|soubor" style|Stahování je povoleno pouze pro přihlášené uživatele',
  7961. 'error_div">|404 - Not Found',
  7962. 'optional--',
  7963. //'optional--',
  7964. "//a[contains(@href,'megarapid.cz')]");
  7965. }
  7966. if (GM_getValue("Check_yadi_dot_sk_links", false))
  7967. {
  7968. addFileHost(
  7969. "yadi\.sk\/\\w+",
  7970. 'twitter:site|View and download',
  7971. 'error code|Nothing found',
  7972. 'optional--',
  7973. //'optional--',
  7974. "//a[contains(@href,'yadi.sk')]");
  7975. }
  7976. if (GM_getValue("Check_inafile_dot_com_links", false))
  7977. {
  7978. addFileHost(
  7979. "inafile\.com\/\\w+",
  7980. 'value="download1">|<h2>File: <font style="color:darkred">',
  7981. '<div style="width:500px;text-align:left;">|File Not Found',
  7982. 'optional--',
  7983. //'optional--',
  7984. "//a[contains(@href,'inafile.com')]");
  7985. }
  7986. }
  7987. //start here
  7988. function initFileHostsCoded()
  7989. {
  7990. function addFileHostCoded(linkRegex, reallinkRegex, correctionRegex, xpathEx)
  7991. {
  7992. var host = new Array(4);
  7993. host[0] = linkRegex;
  7994. host[1] = reallinkRegex;
  7995. host[2] = correctionRegex;
  7996. host[3] = xpathEx;
  7997. http_file_hosts_coded.push(host);
  7998. }
  7999. if (GM_getValue("Check_cobrashare_dot_sk_links", false))
  8000. {
  8001. addFileHostCoded(
  8002. "cobrashare\\.(?:sk|net)\:38080\/(?:CobraShare|CS)",
  8003. 'http:\/\/www\.cobra.*\";',
  8004. '\";',
  8005. "//a[contains(@href,'cobrashare.') and (contains(@href,'download') or contains(@href,'CS/dw'))]"
  8006. )
  8007. }
  8008. }
  8009.  
  8010. //hosts with direct download, so they must be requested for headers only
  8011. function initFileHostsHeadersOnly()
  8012. {
  8013. function addFileHostHeadersOnly(linkRegex, isAliveRegex, isDeadRegex, xpathEx, ispremRegex)
  8014. {
  8015. var host = new Array(5);
  8016. host[0] = linkRegex;
  8017. host[1] = isAliveRegex;
  8018. host[2] = isDeadRegex;
  8019. host[3] = xpathEx;
  8020. host[4] = ispremRegex;
  8021. http_file_hosts_headers_only.push(host);
  8022. }
  8023. if (GM_getValue("Check_uloziste_dot_com_links", false))
  8024. {
  8025. addFileHostHeadersOnly(
  8026. "(?:|files\\.)uloziste\\.com\/\\w+\/\\w+",
  8027. 'Connection: Keep-Alive',
  8028. 'Content-Length: 3857',
  8029. "//a[contains(@href,'uloziste.com')]"
  8030. )
  8031. }
  8032. if (GM_getValue("Check_filemonster_dot_net_links", false))
  8033. {
  8034. addFileHostHeadersOnly(
  8035. "filemonster\\.net\/(?:..\/|)file\/\\w+",
  8036. 'filename="',
  8037. 'Content\\-Type: text\/html',
  8038. "//a[contains(@href,'filemonster.net')]"
  8039. )
  8040. }
  8041. if (GM_getValue("Check_uploadbin_dot_net_links", false))
  8042. {
  8043. addFileHostHeadersOnly(
  8044. "uploadbin\\.net\/\\w+\/\\w+",
  8045. 'filename=',
  8046. 'Connection: close',
  8047. "//a[contains(@href,'uploadbin.net')]"
  8048. )
  8049. }
  8050. if (GM_getValue("Check_loombo_dot_com_links", false))
  8051. {
  8052. addFileHostHeadersOnly(
  8053. "loombo\\.com\/\\w+",
  8054. 'Connection: keep-alive',
  8055. 'Content-Length: 4816',
  8056. "//a[contains(@href,'loombo.com')]"
  8057. )
  8058. }
  8059. if (GM_getValue("Check_adrive_dot_com_links", false))
  8060. {
  8061. addFileHostHeadersOnly(
  8062. "adrive\\.com\/public\/\\w+",
  8063. 'Connection: keep-alive',
  8064. 'orig_ref=deleted',
  8065. "//a[contains(@href,'adrive.com')]"
  8066. )
  8067. }
  8068. if (GM_getValue("Check_ubuntuone_dot_com_links", false))
  8069. {
  8070. addFileHostHeadersOnly(
  8071. "ubuntuone\\.com\/\\w+",
  8072. '; filename=',
  8073. 'Content-Length: 20',
  8074. "//a[contains(@href,'ubuntuone.com/')]"
  8075. )
  8076. }
  8077. if (GM_getValue("Check_myupload_dot_dk_links", false))
  8078. {
  8079. addFileHostHeadersOnly(
  8080. "myupload\\.dk\/showfile\/\\w+",
  8081. 'Expires:',
  8082. 'squeeze1\\s+Vary',
  8083. "//a[contains(@href,'myupload.dk/showfile')]"
  8084. )
  8085. }
  8086. if (GM_getValue("Check_storage_dot_novoro_dot_net_links", false))
  8087. {
  8088. addFileHostHeadersOnly(
  8089. "storage\\.novoro\\.net\/pub\/\\w*",
  8090. 'Etag:',
  8091. 'Expires:',
  8092. "//a[contains(@href,'storage.novoro.net')]"
  8093. )
  8094. }
  8095. }
  8096. //CustomRules
  8097. //functions add...Host copied here
  8098. function addObsoleteHost(linkRegex, xpathEx)
  8099. {
  8100. var host = new Array(2);
  8101. host[0] = linkRegex;
  8102. host[1] = xpathEx;
  8103. http_file_hosts_obsolete.push(host);
  8104. }
  8105. function addFileHost(linkRegex, isAliveRegex, isDeadRegex, isUnavaRegex, xpathEx, tryLoop, ispremRegex)
  8106. {
  8107. var host = new Array(7);
  8108. host[0] = linkRegex;
  8109. host[1] = isAliveRegex;
  8110. host[2] = isDeadRegex;
  8111. host[3] = isUnavaRegex;
  8112. host[4] = xpathEx;
  8113. tryLoop ? host[5] = true : host[5] = false;
  8114. host[6] = ispremRegex;
  8115. http_file_hosts.push(host);
  8116. }
  8117. function addFileHostHeadersOnly(linkRegex, isAliveRegex, isDeadRegex, xpathEx, ispremRegex)
  8118. {
  8119. var host = new Array(5);
  8120. host[0] = linkRegex;
  8121. host[1] = isAliveRegex;
  8122. host[2] = isDeadRegex;
  8123. host[3] = xpathEx;
  8124. host[4] = ispremRegex;
  8125. http_file_hosts_headers_only.push(host);
  8126. }
  8127. //takes a fully built rules array and adds the rules to WARLC
  8128. function applyCustomRules(customRules)
  8129. {
  8130. if (!customRules) return;
  8131. var rules, r, i;
  8132. rules = customRules.rules;
  8133. for (i = 0 ; i < rules.length ; i++)
  8134. {
  8135. r = rules[i];
  8136. if (r.enabled)
  8137. {
  8138. switch (r.type)
  8139. {
  8140. case 'single':
  8141. addFileHost(r.urlregex, r.aliveregex, r.deadregex, r.unavaregex, r.premregex||'', r.xpath);
  8142. break;
  8143. case 'headers':
  8144. addFileHostHeadersOnly(r.urlregex, r.aliveregex, r.deadregex, r.xpath, r.premregex);
  8145. break;
  8146. case 'obsolete':
  8147. addObsoleteHost(r.urlregex, r.xpath)
  8148. break;
  8149. }
  8150. }
  8151. }
  8152. }
  8153.  
  8154.  
  8155. function initFileHostsCustom()
  8156. {
  8157. if (Custom_rules && Custom_rules_text)
  8158. {
  8159. var msg = '';
  8160. if (newVersion)
  8161. msg = 'New version of W.A.R. Links Checker detected.\n\n';
  8162. else if ((now - last_custom_rules_nag) >= 60*24*60*60*1000)
  8163. msg = '60 or more days have passed since this notification.\n\n';
  8164. if (msg && /^\s*@customrule(?:_obsolete)?\s/mi.test(Custom_rules_text))
  8165. {
  8166. GM_setValue('last_custom_rules_nag', ''+new Date().getTime()); //reset nag
  8167. msg +=
  8168. 'Either new version of W.A.R. Links Checker detected or 60 days passed since this notify.\n'+
  8169. 'Please check that your custom rules haven\'t been built into WARLC.\n'+
  8170. 'If not, please share them with us so they can be included in the next version! Built-in rules are always preferred.\n\n'+
  8171. 'We apologize for this annoying notification, but there is a reason to this.\n'+
  8172. 'Ideally, WARLC would check which of your custom rules have been included and disable them. '+
  8173. 'Unfortunately, there is no easy way to do that, but we don\'t want everybody to just use their custom rules '+
  8174. 'forever without ever checking if the built-in ones have been added/fixed. This is currently the only way '+
  8175. 'to remind you that you should try built-in rules, report missing/non-working ones and share your custom rules.';
  8176. setTimeout(function(){alert(msg)},0);
  8177. }
  8178. var customRules = parseCustomRules(Custom_rules_text);
  8179. if (customRules.warning || customRules.error)
  8180. alert('There were ' + customRules.error + ' errors, ' + customRules.warning + ' warnings, ' +
  8181. customRules.note + ' notes found during Custom Rules processing.\n' + customRules.rules.length + ' valid rules found.\n\n' +
  8182. JSON.stringify(customRules.info, null, ' '));
  8183. applyCustomRules(customRules);
  8184. }
  8185. }
  8186. //end of CustomRules processing
  8187.  
  8188.  
  8189.  
  8190. } //end of function start
  8191.  
  8192.  
  8193.  
  8194. function initClipBoardTools()
  8195. {
  8196. unsafeWindow.copyToClipboard = function(text)
  8197. {
  8198. try
  8199. {
  8200. this.netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
  8201.  
  8202. var str = Components.classes["@mozilla.org/supports-string;1"].
  8203. createInstance(Components.interfaces.nsISupportsString);
  8204. if (!str) return false;
  8205.  
  8206. str.data = text;
  8207.  
  8208. var trans = Components.classes["@mozilla.org/widget/transferable;1"].
  8209. createInstance(Components.interfaces.nsITransferable);
  8210. if (!trans) return false;
  8211.  
  8212. trans.addDataFlavor("text/unicode");
  8213. trans.setTransferData("text/unicode", str, text.length * 2);
  8214.  
  8215. var clipid = Components.interfaces.nsIClipboard;
  8216. var clip = Components.classes["@mozilla.org/widget/clipboard;1"].getService(clipid);
  8217. if (!clip) return false;
  8218.  
  8219. clip.setData(trans, null, clipid.kGlobalClipboard);
  8220. } catch (e) {
  8221. GM_log("Error copyToClipboard : " + e);
  8222. alert(e + "\n\nsigned.applets.codebase_principal_support must be set true in about:config")
  8223. }
  8224. }
  8225. }
  8226.  
  8227.  
  8228.  
  8229. //CustomRules
  8230.  
  8231. function escapeRegex(str)
  8232. {
  8233. return str.replace(/[\-\[\]{}()*+?.,\\\^$|#]/g, "\\$&");
  8234. }
  8235.  
  8236.  
  8237. //called internally from parseCustomRules.
  8238. //expected: rule object with array fields baseurl, alivematch etc, everything must already be checked for input errors
  8239. //returns the rule object with string fields urlregex, xpath, aliveregex etc built from the arrays
  8240. function makeCustomRule(rule)
  8241. {
  8242. function makeMatchRegex(arrmatch)
  8243. {
  8244. return escapeRegex(arrmatch.join('\n'))
  8245. .replace(/ +/g, '\\s+') //two or more spaces to any whitespace
  8246. .replace(/\n/g,'|'); //join together
  8247. }
  8248. if (rule.alivematch) rule.aliveregex = makeMatchRegex(rule.alivematch);
  8249. if (rule.deadmatch) rule.deadregex = makeMatchRegex(rule.deadmatch);
  8250. if (rule.unavamatch) rule.unavaregex = makeMatchRegex(rule.unavamatch);
  8251. if (rule.premmatch) rule.premregex = makeMatchRegex(rule.premmatch);
  8252. if (rule.baseurl)
  8253. {
  8254. var i, m, urlregex = [], xpath = [], len = rule.baseurl.length;
  8255. for (i = 0 ; i < len ; i++)
  8256. {
  8257. m = rule.baseurl[i].match(/^([a-z0-9\.-]+)(?: +([a-z \.]+) +)?(\/.*)$/);
  8258. if (m[2]) //baseurl in the form: example. com co.uk net /xxx
  8259. {
  8260. 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'])
  8261. urlregex.push( (m[1] + '(?:'+ m[2].replace(/\s+/g,'|') + ')').replace(/\./g,'\\.') + escapeRegex(m[3]) + '.'); //urlregex.push('example\\.(?:com|co\\.uk|net)/xxx.')
  8262. }
  8263. else //baseurl in the form: example.com/xxx
  8264. {
  8265. xpath.push(m[0]);
  8266. urlregex.push(escapeRegex(m[0]) + '.');
  8267. }
  8268. }
  8269. rule.xpath = "//a[contains(@href,'" + xpath.join("') or contains(@href,'") + "')]";
  8270. rule.urlregex = '(?:[a-z0-9\\.-]+\\.)?(?:' + urlregex.join('|') + ')';
  8271. }
  8272. return rule;
  8273. } //function makeCustomRule
  8274.  
  8275.  
  8276. /*
  8277. Takes a string containing custom link checking rules.
  8278. Returns an object with fields:
  8279. info - contains notes, warnings and errors found during parsing
  8280. rules - the array of custom rules
  8281. note, warning, error - number of each of them found during parsing
  8282. Format of the input string:
  8283. One command per line. Command format: @keyword parameter
  8284. Keywords:
  8285. @customrule, @customrule_obsolete, @customrule_headers - begin a new custom rule. Parameter: name of the rule
  8286. @#customrule, @#customrule_obsolete, @#customrule_headers - begin and parse this custom rule, but don't use it. Parameter: name of the rule
  8287. These keywords can be multiple (any of them will work):
  8288. @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...)
  8289. @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+
  8290. @alivelink, @deadlink - example links
  8291. @baseurl is always required, @alivematch and @deadmatch are required except for obsolete. @unavamatch is ignored for obsolete. @*link is optional.
  8292. Lines starting with // and empty lines are ignored.
  8293. Invalid parameters generate errors and those lines are skipped.
  8294. Other lines generate warnings, but are otherwise ignored (also those before the first @customrule line or inside a rule with invalid name).
  8295. Example:
  8296. @customrule filehost
  8297. @baseurl filehost.com/download/
  8298. @baseurl filehost2. com net /d?=
  8299. @alivematch id="download">
  8300. @deadmatch File not found
  8301. @deadmatch File deleted
  8302. */
  8303. function parseCustomRules(rulesStr)
  8304. {
  8305. var linenum, customRules = {'info': [], 'rules': [], 'note': 0, 'warning': 0, 'error': 0};
  8306. function addInfo(type, msg, ln){
  8307. customRules.info.push({'linenum':(ln===undefined ? linenum+1 : ln+1), 'type':type, 'msg':msg});
  8308. customRules[type]++;
  8309. }
  8310. var lines = rulesStr.match(/^(.*)$/gm); //split into array of lines
  8311. if (!lines) return null;
  8312. lines.push('@#customrule _'); //to save the last rule
  8313. var m, linecount = lines.length;
  8314. var keyword, param, constr, rule, err;
  8315. var TLD = '[a-z]{2,7}(?:\\.[a-z]{2,7})?';
  8316. var TLDorTLDlist = '(?:'+TLD+'| '+TLD+'(?: '+TLD+'){0,9} )'; //TLD or space-separated list of TLDs
  8317. var baseurlRE = new RegExp('^([a-z0-9-]{1,30}(?:\\.[a-z0-9-]{1,30}){0,2}\\.)'+TLDorTLDlist+'(/[^\'"\s\$]{0,50})$', 'i');
  8318. var constraints = {
  8319. 'baseurl': {
  8320. 'single': {'min': 1, 'max': 10, 'paramRE': baseurlRE},
  8321. 'headers': {'min': 1, 'max': 10, 'paramRE': baseurlRE},
  8322. 'obsolete': {'min': 1, 'max': 10, 'paramRE': baseurlRE}},
  8323. 'alivematch': {
  8324. 'single': {'min': 1, 'max': 10, 'paramRE': null},
  8325. 'headers': {'min': 1, 'max': 10, 'paramRE': null}},
  8326. 'deadmatch': {
  8327. 'single': {'min': 1, 'max': 10, 'paramRE': null},
  8328. 'headers': {'min': 1, 'max': 10, 'paramRE': null}},
  8329. 'unavamatch': {
  8330. 'single': {'min': 0, 'max': 10, 'paramRE': null}},
  8331. 'alivelink': {
  8332. 'single': {'min': 0, 'max': 10, 'paramRE': null},
  8333. 'headers': {'min': 0, 'max': 10, 'paramRE': null}},
  8334. 'deadlink': {
  8335. 'single': {'min': 0, 'max': 10, 'paramRE': null},
  8336. 'headers': {'min': 0, 'max': 10, 'paramRE': null},
  8337. 'obsolete': {'min': 0, 'max': 10, 'paramRE': null}}
  8338. };
  8339. for (linenum = 0 ; linenum < linecount ; linenum++)
  8340. {
  8341. //capturing groups: 1 23 4 5 6
  8342. m = lines[linenum].match(/^\s*(?:(\/\/.*)|@((#?)(customrule)(?:_(headers|obsolete))?|baseurl|alivematch|deadmatch|unavamatch|alivelink|deadlink)\s+(.+))?$/i);
  8343. if (m)
  8344. {
  8345. if (m[1] || !m[2])
  8346. continue; // ignore empty lines and lines starting with //
  8347. keyword = (m[4] || m[2]).toLowerCase();
  8348. param = m[6];
  8349. if (keyword == 'customrule')
  8350. {
  8351. //save the current rule if all required fields are provided
  8352. if (rule)
  8353. {
  8354. err = false;
  8355. $.each(constraints, function(kw, constraint){
  8356. var l, constr = constraint[rule.type];
  8357. if (constr)
  8358. {
  8359. l = rule[kw] ? rule[kw].length : 0;
  8360. if (l < constr.min || l > constr.max)
  8361. {
  8362. 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);
  8363. err = true;
  8364. }
  8365. }
  8366. });
  8367. if (!err)
  8368. customRules.rules.push(makeCustomRule(rule));
  8369. }
  8370. //start a new rule
  8371. if (/^[\w\.-]{1,30}$/.test(param)) //valid name?
  8372. {
  8373. rule = {
  8374. 'enabled': !m[3],
  8375. 'type': m[5] ? m[5].toLowerCase() : 'single',
  8376. 'name': param
  8377. };
  8378. }
  8379. else
  8380. {
  8381. addInfo('error', 'Invalid rule name. Cannot start a new rule definition.');
  8382. rule = null;
  8383. }
  8384. }
  8385. else //good line format, but keyword other than customrule
  8386. {
  8387. if (!rule)
  8388. {
  8389. addInfo('warning', 'Command outside @CUSTOMRULE definiton. Line skipped.');
  8390. continue;
  8391. }
  8392. if (constraints[keyword])
  8393. {
  8394. constr = constraints[keyword][rule.type];
  8395. if (constr)
  8396. {
  8397. if (constr.paramRE && !constr.paramRE.test(param))
  8398. {
  8399. addInfo('warning', 'Invalid @' + keyword.toUpperCase() + ' parameter. Line Skipped.');
  8400. continue;
  8401. }
  8402. }
  8403. else
  8404. {
  8405. addInfo('note', '@' + keyword.toUpperCase() + ' not applicable for type ' + rule.type.toUpperCase() + '. Line skipped.');
  8406. continue;
  8407. }
  8408. }
  8409. //line OK, save
  8410. rule[keyword] ? rule[keyword].push(param) : rule[keyword] = [param];
  8411. }
  8412. } //if (m)
  8413. else
  8414. addInfo('warning', 'Unknown line format. Line skipped.');
  8415. } //for loop
  8416. return customRules;
  8417. } //function parseCustomRules