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

detects premium only links on some hosts.

当前为 2014-07-26 提交的版本,查看 最新版本

  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.9.2
  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.  
  27. // ==/UserScript==
  28.  
  29. //separate alternative domains with "|" char (first name is considered being main)
  30. var allHostNames = ["1fichier.com|dl4free.com","2shared.com","4shared.com","adrive.com","aisfile.com","hellfile.com",
  31. "bayfiles.com","bezvadata.cz","bitshare.com","burnupload.com|burnupload.ihiphop.com","firedrive.com","usersfiles.com","pan.baidu.com",
  32. "cramit.in|cramitin.net","dataport.cz","datei.to","daten-hoster.de|filehosting.org|xtraupload.de","demo.ovh.com","depositfiles.com","divshare.com",
  33. "divxden.com","easy-share.com|crocko.com","easybytez.com","edisk.cz","enigmashare.com","erofly.cz","euroshare.eu","file-upload.net","yadi.sk",
  34. "fastshare.cz","fiberupload.net","filefactory.com","rocketfile.net","filecity.net","share.vnn.vn","yunpan.cn","gulfup.com","tropicshare.com",
  35. "fileflyer.com","filerio.com|filekeen.com","filemonster.net","up.4share.vn","upfile.vn","sharesuper.info","datafilehost.com","fileband.com","worldbytez.com",
  36. "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",
  37. "fileshare.in.ua","filesmonster.com","filestore.to","freakshare.net","hulkload.com","lumfile.com","lumfile.se","lumfile.eu","filedropper.com",
  38. "free.fr","free-uploading.com","gamefront.com|filefront.com","getthebit.com","gettyfile.ru","gigapeta.com","gigasize.com","gigaup.fr",/*"glumbo.com|glumbouploads.com",*/
  39. "goldfile.eu","good.com","grupload.com","hellshare.com","hellspy.com","hipfile.com","hitfile.net","hostuje.net","freefilehosting.net","fcore.eu",
  40. "hulkshare.com","hyperfileshare.com","filecloud.io|ifile.it","ifolder.ru","jumbofiles.com","uploadrocket.net","filesfrog.net","lafiles.com",
  41. "leteckaposta.cz|sharegadget.com","letitbit.net","load.to","loombo.com","mediafire.com","megafileupload.com","megashare.com","megashares.com",
  42. "movshare.net","muchshare.net","multishare.cz","myupload.dk","narod.ru|narod.yandex.ru","netload.in","ok2upload.com","fboom.me","fileboom.me",
  43. "openfile.ru","partage-facile.com","plunder.com","putlocker.com","sharerapid.cz","exclusiveloader.com","acefile.net","dotsemper.com",
  44. "queenshare.com","quickshare.cz","rapidgator.net","rapidshare.com","rapidshare.ru", "daj.to","keep2share.com",
  45. "rapidupload.sk","rarefile.net","rayfile.com","rghost.net","sendmyway.com", "4savefile.com","filesaur.com",
  46. "sendspace.com","sharecash.org","share-links.biz","share-now.net","share-online.biz|egoshare.com","megarapid.cz",
  47. "shareflare.net","slingfile.com","sms4file.com","solidfiles.com","space4file.com","speedfile.cz",
  48. "speedshare.org","stahovanizasms.cz","storage.novoro.net","tufiles.ru","turbobit.net",
  49. "turboupload.com","uloz.to|ulozto.cz|bagruj.cz|zachowajto.pl","ulozisko.sk","uloziste.com","unibytes.com","up-file.com",
  50. "upload-il.net|przeslij.net","uploadbin.net","uploaded.to|ul.to","uploading.com","uploadmachine.com", "uploadjet.net",
  51. "uploadspace.pl","upnito.sk","uptobox.com","usaupload.net","veehd.com","videobb.com","videozer.com",
  52. "vip-file.com","webshare.cz","xdisk.cz","yunfile.com|filemarkets.com","ziddu.com",
  53. "zippyshare.com", "uploading4u.eu", "premiuns.org", "rodfile.com", "migahost.com", "wikiupload.com", "uploadstube.de",
  54. "flyfiles.net", "nowdownload.eu", "dark-uploads.com", "asfile.com", "prefiles.com", "axifile.com",
  55. "upthe.net", "hackerbox.org", "sharefiles.co", "amonshare.com", "uploadorb.com", "data.hu", "filestay.com",
  56. "hulkfile.eu", "uptorch.com", "netkups.com", "vreer.com", "edoc.com", "isavelink.com", "upfile.biz",
  57. "uppit.com|up.ht", "peejeshare.com", "ddlstorage.com", "downloadani.me", "filesabc.com",
  58. "sharebeast.com", "sharebees.com", "filemates.com", "180upload.com", "verzend.be", "zomgupload.com", "mlfat4arab.com",
  59. "movreel.com", "4up.me", "extmatrix.com", "i-filez.com", "sendfiles.nl", "yourfilestore.com", "filebig.net", "fileupup.com",
  60. "sockshare.com", "share76.com", "filebox.com", "nekaka.com", "file4safe.com", "freeuploads.fr|uploa.dk", "tusfiles.net",
  61. "kupload.org", "filemac.com", "files2k.eu", "idup.in",
  62. "luckyshare.net", "uploadic.com", "fileswap.com", "potload.com", "billionuploads.com", "rockdizfile.com",
  63. "getzilla.net", "nosupload.com", "fileking.co",
  64. "filesbb.com", "maxshare.pl", "myvdrive.com|fileserving.com", "filesin.com", "novafile.com", "longfiles.com",
  65. "toucansharing.com", "filesega.com", "uploadhero.com", "uploadbaz.com",
  66. "unextfiles.com", "stahovadlo.cz", "zooupload.com", "bitupload.com",
  67. "indowebster.com", "superload.cz", "mafiastorage.com","4upfiles.com",
  68. "ultramegabit.com", "limelinx.com","ubuntuone.com",
  69. "minus.com", "filesmelt.com", "hellupload.com", "packupload.com", "uploadingit.com", "stiahni.si", "filefolks.com",
  70. "filedefend.com", "sendspace.pl", "fastshare.org", "filesector.cc",
  71. "filestrum.com", "fileuplo.de", "upaj.pl", "sinhro.net", "filedownloads.org", "egofiles.com", "filestore.com.ua",
  72. "upafile.com", "secureupload.eu", "ifile.ws", "rapidfileshare.net", "stiahnito.sk",
  73. "rusfolder.com", "fileover.net", "catshare.net", "anonfiles.com", "mixturecloud.com", "nitrobits.com",
  74. "fileparadox.in","filedais.com", "imdb.com",
  75. "akafile.com","creafile.net","hugefiles.net","xerver.co",
  76. "upload.ee","epicshare.net","shareplace.org","uploadc.com","darkport.org","yourfiles.to","remixshare.com",
  77. "exoshare.com","borncash.org","junocloud.me","keep2share.cc","k2s.cc","expressleech.com","2downloadz.com","megafiles.se",
  78. "davvas.com","fileom.com","mightyupload.com","uncapped-downloads.com","anysend.com","datafile.com","upstore.net","upsto.re","usefile.com","speedy.sh",
  79. "sanshare.com","dizzcloud.com","filedap.com","swankshare.com","forunesia.com","filevice.com","kingfiles.net","uploadhero.co","ge.tt","filesflash.net",
  80. "redload.net","salefiles.com","keep2s.cc","megairon.net","terafile.co","swatupload.com","fastsonic.net","bayfiles.net","nirafile.com","mydisc.net","shareprofi.com",
  81. "datoid.cz","cloudstor.es","streamfile.com","eyesfile.ca","filemoney.com","uploadboy.com","fileshareup.com","filemonkey.in","speedshare.eu","google.com",
  82. "unlimitzone.com","migupload.com","rioupload.com","dodane.pl","rg.to","jumbofiles.org","fshare.vn","spaceforfiles.com","up.media1fire.com","depfile.com","uploadinc.com",
  83. "upshared.com","go4up.com","dropbox.com","przeklej.net","redbunker.net","divxpress.com","mega.co.nz","lemuploads.com","megarelease.org","anafile.com","uploadable.ch",
  84. "wallobit.com","arabloads.com","sharerepo.com","sfshare.se","files.fm","koofile.com","shared.com","uploadsat.com","vidplay.net","storagon.com","qkup.net","inafile.com","terafile.com",
  85.  
  86. ];
  87.  
  88. try
  89. {
  90. //iframes excluded
  91. if (window.top != window.self)
  92. {
  93. return;
  94. }
  95. //allHostNames sites excluded
  96. if (window.location.href.match("https?:\/\/(www\.)?[\w\.-]*(?:" +
  97. allHostNames.join("|").replace(/\./g, "\\.").replace(/-/g, "\\-") +
  98. ")"))
  99. {
  100. return;
  101. }
  102. }
  103. catch (e)
  104. {
  105. return;
  106. }
  107.  
  108. //separate alternative domains with "|" char (first name is considered being main)
  109. var allContainerNames = ["adf.ly","linkcrypt.ws","linksafe.me","linksave.in","linkto.net","madlink.sk","multiload.cz",
  110. "mirrorcreator.com","ncrypt.in","redi.re","relink.us","safelinking.net","theloo.katt.it","bit.ly"];
  111.  
  112. //separate alternative domains with "|" char (first name is considered being main)
  113. var allObsoleteNames = ["uloz.cz","storage.to","iskladka.cz","file-rack.com","fast-load.net","subory.sk","bigandfree.com",
  114. "fileop.com","mujsoubor.cz","sendfile.to","superfastfile.com","quickyshare.com","duckload.com","uploadstore.net","meinupload.com",
  115. "dualshare.com","2xupload.to|2xupload.de","oxedion.com","uploadline.com","dll.bz","movieshare.in","milledrive.com","quickupload.net",
  116. "safelink.in","metadivx.com","divxlink.com","uploadrack.com","teradepot.com","dataup.to","upit.to","driveway.com","eatlime.com",
  117. "a2zuploads.com","friendlyfiles.net","flyfile.us","speedyshare.com","uploadspace.eu","keepfile.com","piggyshare.com","uplly.com",
  118. "filecrown.com","6giga.com","uploadjockey.com","bluehost.to","filegu.ru","filebase.to","up-file.com","xvideos.com","ufox.com",
  119. "filebling.com","loaded.it","uploadcell.com","uploadshare.cz","mangoshare.com","filestab.com","crazyupload.com","gaiafile.com",
  120. "sharejunky.com","fileho.com","bigandfree.com","bigfile.in","bigshare.eu","dahosting.org","digisofts.net","file4save.com",
  121. "filechip.com","filescloud.com","saveqube.com","turboshare.de","z-upload.com","youshare.com","jiffyupload.com","gigeshare.com",
  122. "datenklo.net","upload.dj","loadfiles.in","upit.to","dsfileshare.com","sharesimple.net","4files.net","wooupload.com",
  123. "odsiebie.com","filenavi.com","3oof.com","meshwaar.com","maxupload.com","share.cx","atserver.eu","hotfiles.ws","esnips.com",
  124. "file2upload.net","filebling.com","turboshare.com","rarhost.com","isharehd.com","i741.com","dataup.de","fofly.com","shareonall.com",
  125. "sexuploader.com","megaupload.com|megavideo.com|megaporn.com|megarotic.com","uploadhyper.com","filespawn.com","caizzii.com",
  126. "volnyweb.cz","usershare.net","filescash.net","metahyper.com","combozip.com","x7.to","uploadbox.com","enterupload.com|flyupload.com",
  127. "filepoint.de","mystream.to","x-fs.com","shareator.com","srapid.eu","sosame.cz","filesdump.com","2-klicks.de","uploking.com",
  128. "silofiles.com","upfile.in","filehook.com","uploadking.com","uploadhere.com","kewlshare.com","rapidable.com","uploadwaste.com",
  129. "filesonic.com|sharingmatrix.com","fileserve.com","wupload.com", "skipfile.com", "smartuploader.com", "dualshare.com", "storeandserve.com",
  130. "mountfile.com", "transitfiles.com", "uploadstation.com", "filejungle.com", "shareshared.com", "quickyshare.com", "save.am", "petandrive.com",
  131. "file2box.com", "flyshare.cz", "yabadaba.ru", "cloudcache.cc", "yourfilehost.com", "jakfile.com", "kickload.com", "pyramidfiles.com",
  132. "refile.net", "zshare.net", "ddlani.me|ddlanime.com", "ftp2share.com", "fooget.com", "rapidhide.com", "gotupload.com", "mooload.com",
  133. "zupload.com", "mytempdir.com", "onionshare.com", "stahnu.to", "oron.com", "badongo.com","filereactor.com","filegaze.com","4bytez.com",
  134. "1hostclick.com", "anonstream.com", "batshare.com", "bitroad.net", "brontofile.com", "cloudnxt.net", "cloudnator.com|shragle.com",
  135. "coolshare.cz", "dotavi.com", "ezyfile.net", "file-bit.net", "filecosy.com", "fileduct.com|fileduct.net", "filefat.com", "filelaser.com", "filemashine.com",
  136. "fileserver.cc", "filetechnology.com", "fireuploads.net", "gigfiles.net", "holderfile.com", "ihostia.com", "k2files.com", "mojofile.com",
  137. "ovfile.com", "qshare.com", "shafiles.me", "sharefilehost.com", "shareupload.com", "stahuj.to", "ugotfile.com", "uploadboost.com",
  138. "vidhog.com", "xfileshare.eu", "bzlink.us", "bulletupload.com", "wizzupload.com", "bloggerarticles.com", "mojedata.sk", "sharpfile.com",
  139. "upgrand.com", "nasdilej.cz", "mediatack.cz", "share-it.to","primeupload.com","filebeer.info","baberepublic","xtu.me","sharebase.de",
  140. "filerobo.com","filevelocity.com","filezpro.com","file4sharing.com","cing.be","ufile.eu","pigsonic.com","fileupped.com","sharerun.com",
  141. "rapidslnare.com","bestsharing.com","savefiles.net","file2share.biz","filecache.de","monsteruploads.eu","b9bb.com","aiotool.net","jamber.info",
  142. "megaftp.com","desiupload.net","file27.com","yastorage.com","filehost.ws","copyload.com","venusfile.com","aieshare.com",
  143. "fileza.net","filerose.com","squillion.com","fileprohost.com","bitbonus.com","warserver.cz","uload.to","sharedbit.net","megaload.it","filewinds.com",
  144. "uploadcore.com","syfiles.com","eyesfile.com","hotfile.com","superupl.com","oteupload.com","henchfile.com","filegag.com","HenchFile.com","filedefend.com",
  145. "share-rapid.com|rapids.cz|share-credit.cz|share-central.cz|share-ms.cz|share-net.cz|srapid.cz|share-rapid.cz","megabitshare.com","ryushare.com","cloudzer.com",
  146. "cloudzer.net", "clz.to", "extabit.com","247upload.com","2download.de","4fastfile.com","asixfiles.com","berofile.com","bigupload.com","cepzo.com","clouds.to","cobrashare.sk",
  147. "coraldrive.net","cyberlocker.ch","czshare.com",
  148. ];
  149.  
  150. // GM_log(allHostNames.length);
  151. // GM_log(allContainerNames.length);
  152. // GM_log(allObsoleteNames.length);
  153.  
  154. var firstRun = GM_getValue("First_run", true);
  155.  
  156.  
  157. try
  158. {
  159. var thisVersion = GM_info.script.version; //not supported in Scriptish and others
  160. var last_known_version = GM_getValue("last_known_version", "");
  161. if (!last_known_version)
  162. {
  163. last_known_version = thisVersion;
  164. GM_setValue("last_known_version", last_known_version);
  165. }
  166. //var newVersion = !(thisVersion == last_known_version);
  167. var newVersion = !(a.replace(/^(\d+\.\d+\.\d+).*/,'$1') == b.replace(/^(\d+\.\d+\.\d+).*/,'$1')); //true only if one of the first three numbers differs
  168. GM_setValue("last_known_version", thisVersion);
  169. }
  170. catch (err)
  171. {
  172. var newVersion = false;
  173. }
  174.  
  175. var now = (new Date()).getTime();
  176. var last_custom_rules_nag = GM_getValue('last_custom_rules_nag', 0);
  177. if (!last_custom_rules_nag)
  178. {
  179. last_custom_rules_nag = now;
  180. GM_setValue('last_custom_rules_nag', ''+now);
  181. }
  182.  
  183.  
  184. allHostNames.sort();
  185. allContainerNames.sort();
  186. allObsoleteNames.sort();
  187.  
  188. var RAND_STRING = "8QyvpOSsRG3QWq";
  189. var DEBUG_MODE = false;
  190.  
  191. var TOOLTIP_MAXWIDTH = 600; //in pixels
  192. var TOOLTIP_THUMBWIDTH = 200;
  193. var containers_processed = false;
  194.  
  195. //settings for keyboard functions start
  196. var CHECK_ALL_LINKS_KEY = "A";
  197. var CONFIGURATION_KEY = "C";
  198. var copy_to_dead_key = "D";
  199. var toggle_autocheck_key = "W";
  200. var toggle_Enable_Anonymizer_key = "Z";
  201. var first_key_keycode = '17'; // 18=ALT 16=Shift 17=Ctrl 32=SPACE_BAR 9=TAB
  202. var first_key_keycodename = 'CTRL';
  203. var second_key_keycode = '18';
  204. var second_key_keycodename = 'ALT';
  205. var CHECK_ALL_LINKS_KEYCODE = CHECK_ALL_LINKS_KEY.charCodeAt(0);
  206. var CONFIGURATION_KEYCODE = CONFIGURATION_KEY.charCodeAt(0);
  207. var copy_to_dead_keycode = copy_to_dead_key.charCodeAt(0);
  208. var toggle_autocheck_keycode = toggle_autocheck_key.charCodeAt(0);
  209. var toggle_Enable_Anonymizer_keycode = toggle_Enable_Anonymizer_key.charCodeAt(0);
  210. //settings for keyboard functions end
  211.  
  212. //global settings start
  213. var Show_black_background_in_DL_links, Show_line_through_in_dead_links, Color_DL_links;
  214. var Live_links_color, Dead_links_color, Temp_unavailable_links_color, Premium_links_color, Ref_anonymize_service;
  215. var Do_not_linkify_DL_links, Keyboard_functions, Autocheck, Enable_Anonymizer;
  216. var Show_progress_stats, Display_tooltip_info, Icon_set;
  217. var Progress_box_pos_bottom, Progress_box_pos_right, Progress_box_opacity, Progress_box_background_color, Progress_box_item_color;
  218. var Progress_box_refresh_rate;
  219. var Obsolete_file_hosts;
  220. var Custom_rules, Custom_rules_text;
  221.  
  222. var messageBox = document.createElement('b'); // top-left message box
  223.  
  224. var cLinksTotal = 0;
  225. var cLinksDead = 0;
  226. var cLinksAlive = 0;
  227. var cLinksUnava = 0;
  228. var cLinksPrem = 0;
  229. var cLinksProcessed = 0;
  230.  
  231. var intervalId; //for updateProgress()
  232.  
  233. //icon resources
  234. 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/Pf14L7iJI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kAH/17danAEQAGSa98zv7x4W9AIpGkRzap18cKU3vUv9lmQq6N5SH7cSZ8Uuqx205SI1rPL/6/HN1MW5GiKC84z2at6dixf9u4B/PqUtJuX27QAAAAASUVORK5CYII=';
  242. 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=';
  243.  
  244. //global settings end
  245. if (window.opera && !window.console)
  246. {
  247. window.console = {};
  248.  
  249. function fn()
  250. {
  251. opera.postError(arguments);
  252. };
  253. ['log', 'debug', 'info', 'warn', 'error', 'assert', 'dir', 'dirxml', 'group', 'groupEnd', 'time', 'timeEnd', 'count', 'trace', 'profile', 'profileEnd'].forEach(function (name)
  254. {
  255. window.console[name] = fn;
  256. });
  257. }
  258.  
  259. //displays colored text in message box
  260. function sendMessage(text, color)
  261. {
  262. var msgDiv = document.createElement('div');
  263. msgDiv.style.color = color;
  264. msgDiv.innerHTML = text;
  265. messageBox.appendChild(msgDiv);
  266. setTimeout(function(){messageBox.removeChild(msgDiv)}, 3000);
  267. }
  268.  
  269. //Optimized in v. 1.2.4.4 - the original version was terribly slow in Firefox because all text was matched against the huge regex.
  270. //Now a much simpler regex is used to find all links and those are individually matched against the huge regex.
  271. //A small change in behavior - given "somethinghotfile.com/", "hotfile.com/" won't get linkified.
  272. function linkify(totalourls)
  273. { // code from http://userscripts.org/scripts/review/2254 Linkify ting
  274. var ikkeTilladteTags;
  275. var allLinksRegex = "(?:http:\/\/.+?\\?)?(?:https?:\/\/)?"
  276. + "[0-9A-Za-z]+(?:[\\.-][0-9A-Za-z]+)*\\.[A-Za-z]+/" //instead of totalourls
  277. + "[\\w\\–\\-\\.+$!*\\/()\\[\\]\',~%?:@#&=\\\\\\—;…×Ã\\_\\u0080-\\u03FF’‘" + (Allow_spaces_in_DL_links ? "\\u0020" : "") + "]*";
  278. allLinksRegex = new RegExp(allLinksRegex, "g");
  279. var regexy = "^(?:http:\/\/.+?\\?)?(?:https?:\/\/)?(?:www\\.)?(?:" + totalourls + ")";
  280.  
  281. if (Do_not_linkify_DL_links)
  282. ikkeTilladteTags = ['a', 'head', 'script', 'style', 'title', 'option', 'iframe', 'textarea', 'span']; //tags, hvor det der stAΞ’Β¥r inden i ikke skal vAΞ’Β¦re links
  283. else
  284. ikkeTilladteTags = ['a', 'head', 'script', 'style', 'title', 'option', 'iframe', 'textarea']; //tags, hvor det der stAΞ’Β¥r inden i ikke skal vAΞ’Β¦re links
  285.  
  286. var regex = new RegExp(regexy);
  287. var textNode, muligtLink;
  288.  
  289. var path = "//text()[not(parent::" + ikkeTilladteTags.join(" or parent::") + ") and contains(.,'/')]";
  290. var textNodes = document.evaluate(path, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  291.  
  292. var i = textNodes.snapshotLength;
  293. while (i--)
  294. {
  295. textNode = textNodes.snapshotItem(i);
  296.  
  297. muligtLink = textNode.nodeValue; //all links on page
  298.  
  299. var myArray = null;
  300. var span = null;
  301. var lastLastIndex = 0;
  302. allLinksRegex.lastIndex = 0;
  303. while (myArray = allLinksRegex.exec(muligtLink)) //find all links
  304. {
  305. if (!regex.test(myArray[0])) //this link is not recognized
  306. {
  307. //uncomment to reproduce original behavior ("somethinghotfile.com/" => "hotfile.com/" will get linkified).
  308. //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/"
  309. //allLinksRegex.lastIndex -= (myArray[0].length - 1); //start next match at the next character, not after the link
  310. continue;
  311. }
  312. if (!span)
  313. span = document.createElement('span');
  314.  
  315. var link = myArray[0];
  316. span.appendChild(document.createTextNode(muligtLink.substring(lastLastIndex, myArray.index))); //inds?t det der kommer for dette hit
  317.  
  318. var $a = $("<a>" + link + "</a>")
  319. if (!link.match(/https?:\/\//))
  320. {
  321. link = 'http://' + link;
  322. }
  323.  
  324. $a.attr("href", link.replace(/\[\/hide:\w+\]/,""))
  325. .addClass("processing_link")
  326. .appendTo(span);
  327. lastLastIndex = allLinksRegex.lastIndex;
  328. }
  329. if (span)
  330. {
  331. span.appendChild(document.createTextNode(muligtLink.substring(lastLastIndex))); //ins?t det der kommer efter sidste hit
  332. textNode.parentNode.replaceChild(span, textNode);
  333. }
  334. }
  335. }
  336.  
  337. function add_WARLC_style()
  338. {
  339. if (!(document.getElementsByTagName('WARLC')[0]))
  340. {
  341. var meta_not_to_add_more_style = document.createElement("WARLC");
  342. meta_not_to_add_more_style.setAttribute('content', 'war_links_checker');
  343. meta_not_to_add_more_style.setAttribute('name', 'description');
  344. document.getElementsByTagName('head')[0].appendChild(meta_not_to_add_more_style);
  345. alive_link_png = "";
  346. adead_link_png = "";
  347. unava_link_png = "";
  348. prem_link_png = "";
  349. switch(Icon_set)
  350. {
  351. //no icons
  352. case 0: break;
  353. // cat paws
  354. case 1: alive_link_png = PAW_ICON_GREEN;
  355. adead_link_png = PAW_ICON_RED;
  356. unava_link_png = PAW_ICON_YELLOW;
  357. prem_link_png = PAW_ICON_PINK;
  358. break;
  359. // classic RSLC look
  360. case 2: alive_link_png = RSLC_ICON_GREEN;
  361. adead_link_png = RSLC_ICON_RED;
  362. unava_link_png = RSLC_ICON_YELLOW;
  363. prem_link_png = RSLC_ICON_PINK;
  364. break;
  365. // cat paws
  366. default:alive_link_png = PAW_ICON_GREEN;
  367. adead_link_png = PAW_ICON_RED;
  368. unava_link_png = PAW_ICON_YELLOW;
  369. prem_link_png = PAW_ICON_PINK;
  370. break;
  371. }
  372. processing_link_gif = 'data:image/gif;base64,' + // or temporary anavailable
  373. 'R0lGODlhCgAKAJEDAMzMzP9mZv8AAP///yH/C05FVFNDQVBFMi4wAwEAAAAh+QQFAAADACwAAAAACgAKAAACF5wncgaAGgJzJ647cWua4sOBFEd62VEAACH5BAUAAAMALAEAAAAIAAMAAAIKnBM2IoMDAFMQFAAh+QQFAAADACwAAAAABgAGAAACDJwHMBGofKIRItJYAAAh+QQFAAADACwAAAEAAwAIAAACChxgOBPBvpYQYxYAIfkEBQAAAwAsAAAEAAYABgAAAgoEhmPJHOGgEGwWACH5BAUAAAMALAEABwAIAAMAAAIKBIYjYhOhRHqpAAAh+QQFAAADACwEAAQABgAGAAACDJwncqi7EQYAA0p6CgAh+QQJAAADACwHAAEAAwAIAAACCpRmoxoxvQAYchQAOw%3D%3D';
  374.  
  375. var dead_color_css, live_color_css, unava_color_css, prem_color_css, black_background_css;
  376.  
  377. if (Color_DL_links)
  378. {
  379. dead_color_css = 'color:' + Dead_links_color + ' !important;';
  380. live_color_css = 'color:' + Live_links_color + ' !important;';
  381. unava_color_css = 'color:' + Temp_unavailable_links_color + ' !important;';
  382. container_color_css = 'color:' + Container_links_color + ' !important;';
  383. prem_color_css = 'color:' + Premium_links_color + ' !important;';
  384. }
  385. else
  386. {
  387. dead_color_css = live_color_css = unava_color_css = container_color_css = prem_color_css = '';
  388. }
  389.  
  390. if (Show_black_background_in_DL_links)
  391. {
  392. black_background_css = 'background-color: black !important;';
  393. }
  394. else
  395. {
  396. black_background_css = '';
  397. }
  398.  
  399. if (Show_line_through_in_dead_links)
  400. {
  401. line_through_css = 'text-decoration: line-through !important;';
  402. }
  403. else
  404. {
  405. line_through_css = '';
  406. }
  407.  
  408. GM_addStyle(".alive_link {background:transparent url(" + alive_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;" + live_color_css + black_background_css + "}");
  409. 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 + "}");
  410. GM_addStyle(".unava_link {background:transparent url(" + unava_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;" + unava_color_css + black_background_css + "}");
  411. GM_addStyle(".processing_link {background:transparent url(" + processing_link_gif + ") no-repeat scroll 100% 50%;padding-right:15px;" + container_color_css + black_background_css + "}");
  412. GM_addStyle(".container_link {background:transparent url(" + processing_link_gif + ") no-repeat scroll 100% 50%;padding-right:15px;" + container_color_css + black_background_css + "}");
  413. GM_addStyle(".container_list {font-size:90%; list-style-type:square; padding: 0px 5% 0px; margin: 0px}");
  414. GM_addStyle(".prem_link {background:transparent url(" + prem_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;" + prem_color_css + black_background_css + "}");
  415. }
  416. }
  417.  
  418. var warlcTooltip = null;
  419. var mouseoverLink = null; //link href with mouse cursor over it
  420.  
  421. var lastX = 0;
  422. var lastY = 0;
  423.  
  424. $(document).ready(initTooltip);
  425. //inits tooltip
  426. function initTooltip()
  427. { warlcTooltip = document.createElement("div");
  428. 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;");
  429. warlcTooltip.style.visibility = "hidden";
  430. document.body.appendChild(warlcTooltip);
  431. }
  432.  
  433. //"mousemove" event handler for all links
  434. function moveTooltip(event)
  435. {
  436. if ((Math.abs(lastX - event.clientX) + Math.abs(lastY - event.clientY)) < 6)
  437. { //no need to reflow if the cursor moved just a little
  438. return;
  439. }
  440. else
  441. {
  442. lastX = event.clientX;
  443. lastY = event.clientY;
  444. }
  445.  
  446. posX = event.clientX + window.pageXOffset + 10;
  447. posY = event.clientY + window.pageYOffset;
  448. var ttHeight = warlcTooltip.offsetHeight;
  449. var ttFreeSpace = window.innerHeight - event.clientY;
  450. if (ttHeight > ttFreeSpace)
  451. { //prevents tooltip from getting out of the window
  452. posY -= (ttHeight - (ttFreeSpace)) + 10;
  453. }
  454. else
  455. {
  456. posY += 7;
  457. }
  458. warlcTooltip.style.top = posY + "px";
  459. warlcTooltip.style.left = posX + "px";
  460. }
  461.  
  462. //"mouseout" event handler for all links
  463. function hideTooltip(){
  464. warlcTooltip.style.visibility = "hidden";
  465. mouseoverLink = null;
  466. }
  467.  
  468.  
  469. //"mouseover" event handler for dead links
  470. //displays tooltip error message on dead links
  471. function displayTooltipError()
  472. {
  473. mouseoverLink = this.href;
  474. this.addEventListener("mouseout", hideTooltip);
  475. this.addEventListener("mousemove", function(event) { moveTooltip(event); });
  476. warlcTooltip.innerHTML = '<b>LOADING...</b>';
  477. warlcTooltip.style.minWidth = 0;
  478. warlcTooltip.style.visibility = "visible";
  479. if (this.warlc_error) //an error message is already known and stored in warlc_error attribute
  480. {
  481. warlcTooltip.innerHTML = this.warlc_error;
  482. }
  483. else
  484. {
  485. loadErrorInfo(this);
  486. }
  487. function loadErrorInfo(link)
  488. {
  489. var href = link.href;
  490. href = href.replace(/quickshare\.cz\/.+/, "quickshare.cz/chyba");
  491. GM_xmlhttpRequest({
  492. method: 'GET',
  493. url: href.replace(Ref_anonymize_service, ""),
  494. headers: {
  495. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  496. 'Accept': 'text/xml',
  497. 'Referer': ""
  498. },
  499. onload: function(result) {
  500. var res = result.responseText;
  501. //TODO: errorRegexs -
  502. var errorRegexs = [ //generic error messages follow
  503. /(empty directory)/i,
  504. /(soubor nebyl nalezen)/i,
  505. /((?:file|page|link|folder)(?:is|not|does|has been|was| ){1,}(?:found|available|blocked|exists?|deleted|removed))/i,
  506. //server specific error messages follow
  507. /msg error" style="cursor: default">(.+?)<\/div>/, //sendspace
  508. /color:red;font\-weight:bold;border\-style:dashed;font-size:12px;border\-width:2px;><tr><td align=center>(.+?)<\/td>/, //fastshare
  509. /no_download_msg">\s*(.+?)<span/, //depositfiles
  510. /(Takový soubor neexistuje. Je možné, že byl již smazán.)/, //quickshare
  511. /file_info file_info_deleted">\s*<h1>(.+?)<\/h1>/, //filepost
  512. /<br \/>\s*<p style="color:#000">(.+?)<\/p>\s*<\/center>/, //letitbit
  513. /(?:error_div">|<\/h1><p>)<strong>(.+?)<\/strong>/, //share-rapid,quickshare
  514. /class="red">(.+?)<(?:span|br)>/, //czshare, megashares
  515. /class="wp640">\s*<h1 class="h1">(.+?)<\/h1>/, //uloz.to
  516. /not-found">\s*<p>(.+?)<\/p>/, //bayfiles
  517. /(Your file could not be found. Please check the download link.)/, //stahnu.to
  518. /error_msg">\s*(<h3>.+?<\/h3><ul>(.+?)<\/ul>)/, //edisk
  519. /id="obsah">\s*<h2>(.+?)<\/h2>/, //euroshare
  520. /error">\s*(?:<[bp]>)?\s*(.+?)<\/[bp]>/, //filesmonster, shragle, gigapeta
  521. ///center aC">\s*<h1>(.+?)<br \/>/, //uploaded.to
  522. /icon_err">\s*<h1>(.+?)<\/h1>/, //filejungle
  523. /Code: ER_NFF_\d+<\/h2>\s*(.+?)\s*<\/div>/, //netload
  524. /(File has been removed due to Copyright Claim)/, //filerio
  525. ];
  526. var errorIdx = errorRegexs.length;
  527. var error = "Cause of error: <b>unknown</b>";
  528. var errorCandidate = "";
  529. while(errorIdx--)
  530. {
  531. var errorCandidate = res.match(errorRegexs[errorIdx]);
  532. if (errorCandidate != null)
  533. {
  534. error = "Cause of error: <b>" + errorCandidate[1].replace(/&nbsp;/g," ") + "</b>";
  535. break;
  536. }
  537. }
  538. //link attributes
  539. link.warlc_error = error;
  540. if (mouseoverLink == link.href) //mouse cursor is still over the link
  541. {
  542. warlcTooltip.innerHTML = error;
  543. }
  544. }
  545. });
  546. }
  547. }
  548.  
  549. //"mouseover" event handler for alive links
  550. //displays tooltip info (file size, file name,...) on alive links
  551. function displayTooltipInfo()
  552. {
  553. mouseoverLink = this.href;
  554. //exclude direct download filehostings
  555. 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)/))
  556. {
  557. return;
  558. }
  559. this.addEventListener("mouseout", hideTooltip);
  560. this.addEventListener("mousemove", function(event) { moveTooltip(event); });
  561. warlcTooltip.innerHTML = '<b>LOADING...</b>';
  562. warlcTooltip.style.minWidth = 0;
  563. warlcTooltip.style.visibility = "visible";
  564. if (this.warlc_tooltipcache) //file size is already known and stored in warlc_filename and warlc_filesize attributes
  565. {
  566. warlcTooltip.innerHTML = this.warlc_tooltipcache;
  567. }
  568. else
  569. {
  570. loadInfo(this);
  571. }
  572. function loadInfo(link)
  573. {
  574. var href = link.href;
  575. 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');
  576. 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');
  577. GM_xmlhttpRequest({
  578. method: 'GET',
  579. url: href.replace(Ref_anonymize_service, ""),
  580. headers: {
  581. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  582. 'Accept': 'text/xml',
  583. 'Referer': ""
  584. },
  585. onload: function(result) {
  586. var res = result.responseText;
  587. var nameRegexs = [ /Filename: <b class="f_arial f_14px">(.+?)<\/b>/, //oron
  588. /(?:finfo|file[-_]?name)">\s*(.+?)<\/?(?:h1|a|div|span style|td)/, //hellshare, netload, badongo, 4fastfile
  589. /fl" title="(.+?)">/, //edisk
  590. /<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
  591. /<h3>Stahujete soubor: <\/h3>\s*<div class="textbox">(.+?)<\/div>/, //webshare
  592. /<h3><b><span style=color:black;>(.+?)<\/b><\/h3><br>/, //fastshare
  593. /title="download (.+?)">/, //sendspace
  594. /Stáhnout soubor: (.+?)<\/h1>/, //quickshare
  595. /fz24">Download:\s*<strong>(.+?)<\/strong>/, //crocko
  596. /\w+: <b>File Download<"(.+?)">/, //depositfiles
  597. /'file\-icon\d+ \w+'>(?:<\/span><span>)?(.+?)<\/span>/, //hitfile, turbobit
  598. /d0FileName = "(.+?)";/, //letitbit
  599. /file(?:_name|-info)" title="">\w+: <span>(.+?)<\/span>/, //vip-file, shareflare
  600. /rapidshare_com\(1,"\d+,([^,]+)/, //rapidshare
  601. /recent-comments"><h2>(.+) &nbsp;/, //xdisk
  602. /fname" value="(.+?)">/, //syfiles, grupload,
  603. /download\-header">\s*<h2>File:<\/h2>\s*<p title="(.+?)">/, //bayfiles
  604. /description">\s*<p><b>Soubor: (.+?)<\/b>/, //bezvadata
  605. /Complete name : (.+?)<br \/>/, //bezvadata
  606. /itemprop="name">(.+?)<\/span>/, //bezvadata
  607. ];
  608. var nameIdx = nameRegexs.length;
  609. // [sizeRegexs]
  610. // / \ \?
  611. // prefix (size) postfix
  612. // / \
  613. // val quant
  614. var quantRegex = '(?:M|G|K)?i?(?:B)(?:[y|i]te?s?)?';
  615. var valRegex = '\\d+(?:[\\., ]\\d+){0,2}'; // 111([., ]222)?([., ]333)?
  616. var uniSizeRegex = valRegex + '(?:\\s*|&nbsp;)' + quantRegex;
  617. var preSizeRegex = '(?::|\\(|>|>, | - )';
  618. var postSizeRegex = '(?:\\))?';
  619. var sizeRegexs = [ preSizeRegex + "\\s*(" + uniSizeRegex + ")\\s*" + postSizeRegex,
  620. 'rapidshare_com\\(1,"\\d+,[^,]+,(\\d+)', //rapidshare
  621. 'FileSize_master">(.+?)<\/strong>', //hellshare
  622. ];
  623. var sizeIdx = sizeRegexs.length;
  624. //
  625. //
  626. var tooltip = "File Name: <b>";
  627. var fileName = "unknown";
  628. var nameCandidate = "";
  629. while(nameIdx--)
  630. {
  631. var nameCandidate = res.match(nameRegexs[nameIdx]);
  632. if (nameCandidate != null)
  633. {
  634. fileName = nameCandidate[1].replace(/&nbsp;/g," ");
  635. break;
  636. }
  637. }
  638. tooltip += fileName + "</b><br>File Size: <b>";
  639. var fileSize = "unknown";
  640. var sizeCandidate = "";
  641. while(sizeIdx--)
  642. {
  643. sizeCandidate = res.match(new RegExp(sizeRegexs[sizeIdx], "i"));
  644. if (sizeCandidate != null)
  645. {
  646. fileSize = sizeCandidate[1].replace(/&nbsp;/g," ");
  647. if (/^\d+$/.test(fileSize) && fileSize >= 1024) //assume bytes
  648. {
  649. if(fileSize > (1<<30)) fileSize = Math.round(10 * fileSize / (1<<30)) / 10 + ' GB';
  650. else if(fileSize > (1<<20)) fileSize = Math.round(fileSize / (1<<20)) + ' MB';
  651. else fileSize = Math.round(fileSize / 1024) + ' KB';
  652. }
  653. break;
  654. }
  655. }
  656. tooltip += fileSize + "</b>";
  657. // PROTOTYPE
  658. // video thumbnails
  659. if (href.match('hellshare'))
  660. {
  661. var thumbs;
  662. thumbs = res.match(/http:\/\/static\d+\.helldata\.com\/thumbs(?:\/\d+){1,2}\/\d{1,2}"/g);
  663. if (thumbs)
  664. {
  665. tooltip += '<br>';
  666. var j = Math.min(thumbs.length, 9);
  667. for (var i = 0; i < j; i++)
  668. {
  669. tooltip += '<img src="' + thumbs[i].replace('"',"") + '" width="' + TOOLTIP_THUMBWIDTH + 'px">';
  670. }
  671. warlcTooltip.style.minWidth = TOOLTIP_MAXWIDTH;
  672. }
  673. }
  674. if (href.match('czshare'))
  675. {
  676. var thumbs;
  677. thumbs = res.match(/src="http:\/\/www(\d+)\.czshare\.com\/images_velke\/\d+\.(\d+)\.jpeg/);
  678. if (thumbs)
  679. {
  680. var thumbsServer = thumbs[1];
  681. var thumbsId = thumbs[2];
  682. tooltip += '<br>';
  683. for (var i = 1; i < 9; i++)
  684. {
  685. tooltip += '<img src="http://www' + thumbsServer + '.czshare.com/images_velke/' + i + '.' + thumbsId + '.jpeg" width="' + TOOLTIP_THUMBWIDTH + 'px">';
  686. }
  687. warlcTooltip.style.minWidth = TOOLTIP_MAXWIDTH;
  688. }
  689. }
  690. if (href.match('bezvadata'))
  691. {
  692. var thumbs;
  693. thumbs = res.match(/http:\/\/nahledy\.bezvadata\.cz\/nahledy\/\d+\/\d+\/\d+_\d+_\d+x\d+_\w.jpg/g);
  694. if (thumbs)
  695. {
  696. tooltip += '<br>';
  697. var j = Math.min(thumbs.length, 9);
  698. for (var i = 0; i < j; i++)
  699. {
  700. tooltip += '<img src="' + thumbs[i] + '" width="' + TOOLTIP_THUMBWIDTH + 'px">';
  701. }
  702. warlcTooltip.style.minWidth = TOOLTIP_MAXWIDTH;
  703. }
  704. }
  705. link.warlc_tooltipcache = tooltip;
  706. if (mouseoverLink == link.href) //mouse cursor is still over the link
  707. {
  708. warlcTooltip.innerHTML = tooltip;
  709. }
  710. }
  711. });
  712. }
  713. }
  714.  
  715. function setVariables()
  716. {
  717. if (firstRun)
  718. {
  719. GM_log('First run, applying default settings...');
  720. GM_setValue("Icon_set",1);
  721. GM_setValue("Display_tooltip_info",false);
  722. GM_setValue("Show_black_background_in_DL_links",false);
  723. GM_setValue("Show_line_through_in_dead_links",false);
  724. GM_setValue("Display_full_links_in_link_containers",false);
  725. GM_setValue("Allow_spaces_in_DL_links",false);
  726. GM_setValue("Autocheck",true);
  727. GM_setValue("Enable_Anonymizer",true);
  728. GM_setValue("Do_not_linkify_DL_links",false);
  729. GM_setValue("Show_progress_stats",true);
  730. GM_setValue("Keyboard_functions",true);
  731. GM_setValue("Obsolete_file_hosts",false);
  732. GM_setValue("Color_DL_links",true);
  733. GM_setValue("Live_links_color","Green");
  734. GM_setValue("Dead_links_color","#FF3300");
  735. GM_setValue("Temp_unavailable_links_color","#F7EF09");
  736. GM_setValue("Container_links_color","DarkKhaki");
  737. GM_setValue("Premium_links_color","DeepPink");
  738. GM_setValue("Ref_anonymize_service","http://hiderefer.com/?");
  739. GM_setValue("Custom_rules",false);
  740. GM_setValue("Custom_rules_text","");
  741. GM_setValue("First_run", false);
  742. }
  743. //hidden settings
  744. GM_setValue("Progress_box_pos_bottom", Progress_box_pos_bottom = GM_getValue("Progress_box_pos_bottom", 20));
  745. GM_setValue("Progress_box_pos_right", Progress_box_pos_right = GM_getValue("Progress_box_pos_right", 10));
  746. GM_setValue("Progress_box_opacity", Progress_box_opacity = GM_getValue("Progress_box_opacity", 85));
  747. GM_setValue("Progress_box_background_color", Progress_box_background_color = GM_getValue("Progress_box_background_color", 'DimGray'));
  748. GM_setValue("Progress_box_item_color", Progress_box_item_color = GM_getValue("Progress_box_item_color", '#FFFFCC'));
  749. GM_setValue("Progress_box_refresh_rate", Progress_box_refresh_rate = GM_getValue("Progress_box_refresh_rate", 2000));
  750. GM_setValue("Debug_mode", DEBUG_MODE = GM_getValue("Debug_mode", false));
  751. //hidden settings end
  752.  
  753. Icon_set = GM_getValue("Icon_set", 1); //0 - no icons, 1 - cat paws, 2 - old RSLC style
  754. Display_tooltip_info = GM_getValue("Display_tooltip_info", false);
  755. Show_black_background_in_DL_links = GM_getValue("Show_black_background_in_DL_links", false);
  756. Show_line_through_in_dead_links = GM_getValue("Show_line_through_in_dead_links", false);
  757. Display_full_links_in_link_containers = GM_getValue("Display_full_links_in_link_containers", false);
  758. Allow_spaces_in_DL_links = GM_getValue("Allow_spaces_in_DL_links", false);
  759. Autocheck = GM_getValue("Autocheck", true);
  760. Enable_Anonymizer = GM_getValue("Enable_Anonymizer", true);
  761. Do_not_linkify_DL_links = GM_getValue("Do_not_linkify_DL_links", false);
  762. Show_progress_stats = GM_getValue("Show_progress_stats", true);
  763. Keyboard_functions = GM_getValue("Keyboard_functions", true);
  764. Obsolete_file_hosts = GM_getValue("Obsolete_file_hosts", false);
  765. Color_DL_links = GM_getValue("Color_DL_links", true);
  766. Live_links_color = GM_getValue("Live_links_color", "Green");
  767. Dead_links_color = GM_getValue("Dead_links_color", "#FF3300");
  768. Temp_unavailable_links_color = GM_getValue("Temp_unavailable_links_color", "#F7EF09");
  769. Container_links_color = GM_getValue("Container_links_color", "DarkKhaki");
  770. Premium_links_color = GM_getValue("Premium_links_color", "DeepPink");
  771. Ref_anonymize_service = GM_getValue("Ref_anonymize_service", "http://hiderefer.com/?");
  772. Custom_rules = GM_getValue("Custom_rules", false);
  773. Custom_rules_text = GM_getValue("Custom_rules_text", false);
  774. }
  775.  
  776.  
  777. // Delinkifies the links
  778. // params:
  779. // links -> list of links or link components (note they should be sufficiently unique to identify the link on page,
  780. // e.g. 'uloz.to/xs68skxl8')
  781. function delinkifySnapshot(snapshot)
  782. {
  783. var n = snapshot.snapshotLength;
  784.  
  785. while (n--)
  786. {
  787. thisLink = snapshot.snapshotItem(n);
  788.  
  789. var spanElm = document.createElement("span");
  790. spanElm.className = thisLink.className;
  791. spanElm.innerHTML = thisLink.innerHTML;
  792.  
  793. if (Display_tooltip_info)
  794. {
  795. spanElm.href = thisLink.href;
  796. switch (thisLink.className){
  797. case "alive_link": spanElm.addEventListener("mouseover", displayTooltipInfo, false); break
  798. case "adead_link": spanElm.addEventListener("mouseover", displayTooltipError, false); break;
  799. case "unava_link": //reserved
  800. default:
  801. }
  802. }
  803. thisLink.parentNode.replaceChild(spanElm, thisLink);
  804. }
  805. }
  806.  
  807. function processContainers()
  808. {
  809. var redirectorTypes = { "HTTP_302": 0,
  810. "INNER_LINK": 1,
  811. "THELOO_KATT_IT": 2,
  812. "CING_BE": 3,
  813. "ADF_LY": 4};
  814. var cMultiloadTotal = 0;
  815. var cMultiloadProcessed = 0;
  816.  
  817. var cMirrorcreatorComTotal = 0;
  818. var cMirrorcreatorComProcessed = 0;
  819.  
  820. var hostRestrictionRegex = "";
  821. var multiloadComRestriction = "";
  822. var multiloadComRestrictionRegex;
  823.  
  824. //
  825. //HANDLING REDIRECTORS START
  826. //
  827.  
  828. var redirectors = new Array();
  829. initRedirectors();
  830.  
  831. var redirectorsCount = redirectors.length;
  832.  
  833. if (redirectorsCount > 0)
  834. {
  835. var allRedirectorsRegex = "";
  836.  
  837. //linkify redirector links
  838. for(var redirIdx = 0; redirIdx < redirectorsCount; redirIdx++)
  839. {
  840. allRedirectorsRegex += redirectors[redirIdx].linkRegex + "|";
  841. }
  842. allRedirectorsRegex = allRedirectorsRegex.replace(/\|$/, "");
  843. linkify(allRedirectorsRegex);
  844. //
  845. //process redirector links
  846. for(var redirIdx = 0; redirIdx < redirectorsCount; redirIdx++)
  847. {
  848. var redirectorsSnapshot = document.evaluate(redirectors[redirIdx].xpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  849. redirectors[redirIdx].cTotal = redirectorsSnapshot.snapshotLength;
  850.  
  851. cLinksTotal += redirectors[redirIdx].cTotal;
  852. var linkIdx = redirectors[redirIdx].cTotal;
  853.  
  854. while(linkIdx--)
  855. {
  856. switch(redirectors[redirIdx].type)
  857. {
  858. case redirectorTypes.HTTP_302: processRedirectorLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  859. case redirectorTypes.INNER_LINK: processRedirectorLinkEx(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  860. case redirectorTypes.THELOO_KATT_IT: processThelooKattItLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  861. case redirectorTypes.CING_BE: processCingBeLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  862. case redirectorTypes.ADF_LY: processAdfLyLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  863. default:
  864. }
  865. }
  866. }
  867. //
  868. }
  869.  
  870. //HTTP_302
  871. function processRedirectorLink(link, redirectorId)
  872. {
  873. link.className = 'container_link';
  874.  
  875. GM_xmlhttpRequest({
  876. method: 'HEAD',
  877. url: link.href,
  878. headers: {
  879. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  880. 'Accept': 'text/xml',
  881. 'Referer': ""
  882. },
  883. onload: function(result) {
  884. if (result.finalUrl.replace("https", "http") == link.href) // service hasn't redirected anywhere
  885. {
  886. processRedirectorLink(link, redirectorId);
  887. }
  888. else
  889. {
  890. redirectors[redirectorId].cProcessed++;
  891. link.href = result.finalUrl;
  892. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  893. checkLinks('container_link');
  894. }
  895. },
  896. onerror: function(result) { //probably caused by unresponsive filehosting
  897. redirectors[redirectorId].cProcessed++;
  898. link.className = 'unava_link';
  899. cLinksProcessed++;
  900. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  901. checkLinks('container_link');
  902. }
  903. });
  904. }
  905. //INNER_LINK
  906. function processRedirectorLinkEx(link, redirectorId)
  907. {
  908. link.className = 'container_link';
  909. GM_xmlhttpRequest({
  910. method: 'GET',
  911. url: link.href,
  912. headers: {
  913. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  914. 'Accept': 'text/xml',
  915. 'Referer': ""
  916. },
  917. onload: function(result) {
  918. link.href = result.responseText.match(redirectors[redirectorId].innerLinkRegex)[1];
  919. redirectors[redirectorId].cProcessed++;
  920. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  921. checkLinks('container_link');
  922. }
  923. });
  924. }
  925. //theloo.katt.it (wrapped safelinking.net)
  926. function processThelooKattItLink(link, redirectorId)
  927. {
  928. link.className = 'container_link';
  929. GM_xmlhttpRequest({
  930. method: 'GET',
  931. url: link.href,
  932. headers: {
  933. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  934. 'Accept': 'text/xml',
  935. 'Referer': ""
  936. },
  937. onload: function(result) {
  938. link.href = result.responseText.match(redirectors[redirectorId].innerLinkRegex)[1];
  939. redirectors[redirectorId].cProcessed++;
  940. //the inner links are safelinking.net links, so lets proceed with it
  941. if (GM_getValue("Check_safelinking_dot_net_links", false))
  942. {
  943. processRedirectorLink(link, 0);
  944. }
  945. }
  946. });
  947. }
  948. //adf.ly (adf.ly/go innerLink, locking mechanism)
  949. function processAdfLyLink(link, redirectorId)
  950. {
  951. link.className = 'container_link';
  952. GM_xmlhttpRequest({
  953. method: 'GET',
  954. url: link.href,
  955. headers: {
  956. 'User-agent': 'Mozilla/4.0',
  957. 'Accept': 'text/xml',
  958. 'Referer': ""
  959. },
  960. onload: function(result) {
  961. if (result.finalUrl.match('/locked/'))
  962. {
  963. var delay = result.responseText.match(/countdown">(\d+)</)[1];
  964. // GM_log(result.finalUrl + 'is locked. Repeating the request in ' + delay + 's.');
  965. // setTimeout(function(){processAdfLyLink(link, redirectorId);}, delay * 1000);
  966. }
  967. else
  968. {
  969. // GM_log('Processing... ' + link.href);
  970. // GM_log('Found...' + result.responseText.match(/\/go\/(\w+\/\w+)/)[1]);
  971. var directLink = 'http://adf.ly' + result.responseText.match(/(\/go\/\w+\/\w+)/)[1];
  972. var logToken = result.responseText.match(/flashy_(\w+)/)[1];
  973. var users = result.responseText.match(/user=\d+&user2=\d+/);
  974. //confirm advert
  975. GM_xmlhttpRequest(
  976. {
  977. method: 'POST',
  978. url: 'http://adf.ly/l.php',
  979. headers: {
  980. 'User-agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20100101 Firefox/13.0',
  981. 'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
  982. 'Referer': link.href
  983. },
  984. data: users + '&lt=' + logToken,
  985. onload: function(result) {
  986. //retrieve final url from .../go/... link
  987. GM_xmlhttpRequest({
  988. method: 'GET',
  989. url: directLink,
  990. headers: {
  991. 'User-agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20100101 Firefox/13.0',
  992. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  993. 'Referer': link.href
  994. },
  995. onload: function(result) {
  996. link.href = result.finalUrl;
  997. redirectors[redirectorId].cProcessed++;
  998. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  999. checkLinks('container_link');
  1000. }
  1001. });
  1002. }
  1003. });
  1004. }
  1005. // try
  1006. // {
  1007. // GM_log('Processing... ' + link.href);
  1008. // GM_log('Found...' + result.responseText.match(/\/go\/(\w+\/\w+)/));
  1009. // link.href += 'http://adf.ly/go/' + result.responseText.match(/\/go\/(\w+\/\w+)/)[2];
  1010. // GM_xmlhttpRequest({
  1011. // method: 'POST',
  1012. // url: link.href,
  1013. // headers: {
  1014. // 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1015. // 'Accept': 'text/xml',
  1016. // 'Referer': ""
  1017. // },
  1018. // onload: function(result) {
  1019. // link.href = result.finalUrl;
  1020. // redirectors[redirectorId].cProcessed++;
  1021. // if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  1022. // checkLinks('container_link');
  1023. // }
  1024. // });
  1025. // }
  1026. // catch(e)
  1027. // {
  1028. // GM_log(link.href + " is LOCKED");
  1029. // the link is locked, repeat the request later
  1030. // setTimeout(function(){processAdfLyLink(link, redirectorId);}, 15000);
  1031. // }
  1032. }
  1033. });
  1034. function proceedOK()
  1035. {
  1036. }
  1037. }
  1038. //MULTILOAD.CZ START
  1039. if (GM_getValue("Check_multiload_dot_cz_links", false))
  1040. {
  1041. var mlRegex = 'multiload\\.cz\/stahnout\/\\d+\/';
  1042. var mlXpath = "//a[contains(@href,'http://www.multiload.cz/stahnout')]";
  1043.  
  1044. hostRestrictionRegex = 'Upload se nezdařil|limit exceeded|probíhá reupload|';
  1045.  
  1046. if (GM_getValue("Check_rapidshare_dot_com_links", false))
  1047. hostRestrictionRegex += 'rapidshare\\.com|';
  1048. if (GM_getValue("Check_hellshare_dot_com_links", false))
  1049. hostRestrictionRegex += 'hellshare|';
  1050. if (GM_getValue("Check_share_dash_rapid_dot_com_links", false))
  1051. hostRestrictionRegex += 'share-rapid\\.com|';
  1052. if (GM_getValue("Check_quickshare_dot_cz_links", false))
  1053. hostRestrictionRegex += 'quickshare\\.cz|';
  1054. if (GM_getValue("Check_czshare_dot_com_links", false))
  1055. hostRestrictionRegex += 'czshare\\.com|';
  1056. if (GM_getValue("Check_uloz_dot_to_links", false))
  1057. hostRestrictionRegex += 'uloz\\.to|';
  1058. if (GM_getValue("Check_hellspy_dot_com_links", false))
  1059. hostRestrictionRegex += 'hellspy|';
  1060. if (GM_getValue("Check_multishare_dot_cz_links", false))
  1061. hostRestrictionRegex += 'multishare\\.cz|';
  1062.  
  1063. hostRestrictionRegex = hostRestrictionRegex.replace(/\|$/, "");
  1064.  
  1065. linkify(mlRegex);
  1066.  
  1067. var mlSnapshot = document.evaluate(mlXpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  1068. var mlCount = mlSnapshot.snapshotLength;
  1069.  
  1070. if (mlCount > 0)
  1071. {
  1072. cMultiloadTotal += mlCount;
  1073.  
  1074. mlIdx = mlCount - 1;
  1075. do
  1076. {
  1077. processMultiloadLink(mlSnapshot.snapshotItem(mlIdx));
  1078. }
  1079. while(mlIdx--)
  1080. }
  1081. }
  1082. //MULTILOAD.CZ END
  1083.  
  1084.  
  1085.  
  1086. function processMultiloadLink(mlLink)
  1087. {
  1088. GM_xmlhttpRequest({
  1089. method: 'GET',
  1090. url: mlLink.href,
  1091. headers: {
  1092. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1093. 'Accept': 'text/xml',
  1094. 'Referer': ""
  1095. },
  1096. onload: function(result) {
  1097. var res = result.responseText;
  1098.  
  1099. var innerBlockRegex = /<p class="manager-linky">(?:.|\s)+?<\/p>/g;
  1100. 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;
  1101. var innerLinkRegex = /((?:Upload se nezdařil.+|https?:\/\/(?:.|\s)+|Právě probíhá reupload, buďte trpěliví\.\.\.))</;
  1102. var mlRestrictionRegex = new RegExp(hostRestrictionRegex,"g"); //what links should be displayed
  1103.  
  1104. var blocks; // blocks of links
  1105. var blockIdx;
  1106.  
  1107. mlLink.className = '';
  1108.  
  1109. if (result.status == 503) //service temporarily unavailable, repeat request in one second
  1110. {
  1111. setTimeout(function(){ processMultiloadLink(mlLink); }, 1000);
  1112. return;
  1113. }
  1114.  
  1115. blocks = res.match(innerBlockRegex);
  1116.  
  1117. if (blocks == null) //no links found, cancel further processing
  1118. {
  1119. mlLink.parentNode.appendChild(document.createTextNode(' | Požadovaný soubor neexistuje.'));
  1120. cMultiloadProcessed++;
  1121. if (cMultiloadTotal <= cMultiloadProcessed)
  1122. {
  1123. startBulkCheck('container_link');
  1124. start('container_link');
  1125. }
  1126. return;
  1127. }
  1128.  
  1129. blockIdx = blocks.length;
  1130.  
  1131. if (Display_full_links_in_link_containers)
  1132. {
  1133. var ulElm = document.createElement('ul');
  1134. ulElm.className = 'container_list'; //CSS smaller font, padding, margin, square style
  1135.  
  1136. while(blockIdx--)
  1137. {
  1138. if (blocks[blockIdx].match(mlRestrictionRegex) == null)
  1139. {
  1140. continue;
  1141. }
  1142.  
  1143. var innerLinks = blocks[blockIdx].match(innerLinksRegex);
  1144.  
  1145. var linkIdx = innerLinks.length;
  1146. while (linkIdx--)
  1147. {
  1148. var innerLink = innerLinks[linkIdx].match(innerLinkRegex)[1];
  1149.  
  1150. var liElm = document.createElement('li');
  1151.  
  1152. if (innerLink.match(/Upload se nezdařil|limit exceeded|probíhá reupload/))
  1153. {
  1154. liElm.appendChild(document.createTextNode(innerLink));
  1155. }
  1156. else
  1157. {
  1158. var aElm = document.createElement('a');
  1159. aElm.innerHTML = innerLink;
  1160. aElm.href = innerLink;
  1161. aElm.className = 'container_link';
  1162.  
  1163. liElm.appendChild(aElm);
  1164. }
  1165.  
  1166. ulElm.appendChild(liElm);
  1167. cLinksTotal++;
  1168. }
  1169. }
  1170.  
  1171. mlLink.parentNode.appendChild(ulElm);
  1172. }
  1173. else //compact view
  1174. {
  1175. mlLink.parentNode.appendChild(document.createTextNode("|"));
  1176.  
  1177. while(blockIdx--)
  1178. {
  1179. if (blocks[blockIdx].match(mlRestrictionRegex) == null)
  1180. {
  1181. continue;
  1182. }
  1183.  
  1184. var innerLinks = blocks[blockIdx].match(innerLinksRegex);
  1185.  
  1186. var linkIdx = innerLinks.length;
  1187. while (linkIdx--)
  1188. {
  1189. var innerLink = innerLinks[linkIdx].match(innerLinkRegex)[1];
  1190.  
  1191. if (innerLink.match(/Upload se nezdařil|limit exceeded|probíhá reupload/))
  1192. {
  1193. mlLink.parentNode.appendChild(document.createTextNode("----"));
  1194. }
  1195. else
  1196. {
  1197. var aElm = document.createElement('a');
  1198.  
  1199. var hostName = innerLink.match(/rapidshare|quickshare|hellshare|uloz\.to|multishare|hellspy|share\-rapid|czshare/);
  1200.  
  1201. //abbreviate host name
  1202. switch(hostName + ""){
  1203.  
  1204. case 'rapidshare': aElm.innerHTML = 'RS'; break;
  1205. case 'quickshare': aElm.innerHTML = 'QS'; break;
  1206. case 'hellshare': aElm.innerHTML = 'HS'; break;
  1207. case 'uloz.to': aElm.innerHTML = 'UT'; break;
  1208. case 'multishare': aElm.innerHTML = 'MS'; break;
  1209. case 'hellspy': aElm.innerHTML = 'hs'; break;
  1210. case 'share-rapid': aElm.innerHTML = 'SR'; break;
  1211. case 'czshare': aElm.innerHTML = 'CS'; break;
  1212. default: aElm.innerHTML = 'xx';
  1213.  
  1214. }
  1215.  
  1216. aElm.href = innerLink;
  1217. aElm.className = 'container_link';
  1218.  
  1219. mlLink.parentNode.appendChild(aElm);
  1220. cLinksTotal++;
  1221. }
  1222. }
  1223.  
  1224. mlLink.parentNode.appendChild(document.createTextNode("|")); //blocks delimiter
  1225.  
  1226. }
  1227. }
  1228.  
  1229. cMultiloadProcessed++;
  1230. if (cMultiloadTotal == cMultiloadProcessed) //start check when all ml links have been processed
  1231. {
  1232. if (Do_not_linkify_DL_links)
  1233. {
  1234. delinkifySnapshot(mlSnapshot);
  1235. }
  1236. startBulkCheck('container_link');
  1237. start('container_link');
  1238. }
  1239. }
  1240. });
  1241. }
  1242.  
  1243.  
  1244. if (GM_getValue("Check_mirrorcreator_dot_com_links", false))
  1245. {
  1246. var mcRegex = 'mirrorcreator\\.com/files/(\\w+)';
  1247. var mcXpath = "//a[contains(@href,'mirrorcreator.com/files')]";
  1248. var mcShortHostNames =
  1249. '?? 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';
  1250. // 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
  1251. //?????? depositfiles sendspace load.to ul.to storage.to uploadbox x7.to fileserve ?????? duckload filehook filepost jumbofiles glumbouploads
  1252. // rapidshare zshare ?????? 2shared uploading ugotfile extabit oron eyvx uploadstation putlocker
  1253. // megaupload badongo megashare gamefront ifile ?????? letitbit ?????? ?????? bitshare filejungle megashares
  1254. // easy-share ?????? netload zippyshare ?????? filesonic turbobit enterupload ?????? filekeen wupload crocko fileflyer
  1255.  
  1256. linkify(mcRegex);
  1257.  
  1258. var mcSnapshot = document.evaluate(mcXpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  1259. var mcCount = mcSnapshot.snapshotLength;
  1260.  
  1261. cMirrorcreatorComTotal = mcCount;
  1262.  
  1263. if (mcCount > 0)
  1264. {
  1265. mcShortHostNames = mcShortHostNames.split(' ');
  1266. mcIdx = mcCount;
  1267. while(mcIdx--)
  1268. processMirrorcreatorLink(mcSnapshot.snapshotItem(mcIdx));
  1269. }
  1270.  
  1271. }
  1272. //MIRRORCREATOR.CZ END
  1273.  
  1274.  
  1275. //mirrorcreator.com checking works like this:
  1276. //The base URL is http://www.mirrorcreator.com/files/XXXXXXXX/filename_links
  1277. //the actual list of mirrors is at http://www.mirrorcreator.com/status.php?uid=XXXXXXXX
  1278. //the list contains links in the form of (http://www.mirrorcreator.com)/redirect/XXXXXXXX/1
  1279. //these redirector links are extracted with mcLinkBlockRegex and the pages loaded
  1280. //they contain the actual filehost links, which are extracted with mcHostRegex and displayed in a container list
  1281. function processMirrorcreatorLink(mcLink)
  1282. {
  1283. var mcURL = mcLink.href.match(mcRegex);
  1284. if(!mcURL || !mcURL[1]) return;
  1285. mcURL = 'http://www.mirrorcreator.com/status.php?uid=' + mcURL[1]; //link correction
  1286. GM_xmlhttpRequest({
  1287. method: 'GET',
  1288. url: mcURL,
  1289. headers: {
  1290. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1291. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*'+'/*;q=0.8',
  1292. 'Referer': ""
  1293. },
  1294. onload: function(mcLinkResult) {
  1295. var mcLinkRes = mcLinkResult.responseText;
  1296.  
  1297. var mcLinkBlockRegex = /(\/redirect\/\w+\/(\d+))/gi;
  1298. var mcHostRegex = /<div id="redirectlink">.*?<a href="([^"]+)"/;
  1299.  
  1300. var mcRedirectors;
  1301. var mcHostURLs = [], mcRedirectorIDs = [], mcHostsFound = 0, mcHostsRetrieved = 0, mcHostsToProcess = 0;
  1302. var m = mcLinkRes.match(mcLinkBlockRegex);
  1303. if (m)
  1304. mcHostsFound = m.length;
  1305. else
  1306. { //no files inside container
  1307. processMirrorcreatorFoundHosts(mcLink, []);
  1308. return;
  1309. }
  1310.  
  1311. var mcRedirectorURL, idx, timedOut = false;
  1312.  
  1313. var gmxhrFunc = function(mcRedirectorURL){ //Tampermonkey doesn't know neither this.url or result.finalUrl
  1314. GM_xmlhttpRequest({
  1315. method: 'GET',
  1316. url: mcRedirectorURL,
  1317. headers: {
  1318. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1319. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*'+'/*;q=0.8',
  1320. 'Referer': ""
  1321. },
  1322. onload: function(mcHostResult) {
  1323. if (timedOut) return; //too late, the list is already displayed
  1324. var mcHostRes = mcHostResult.responseText;
  1325. var mcHost = mcHostRes.match(mcHostRegex);
  1326. idx = mcHostURLs.indexOf(mcRedirectorURL);
  1327. if (mcHost && idx!=-1)
  1328. {
  1329. mcHostURLs[idx] = mcHost[1].replace(/^\s+|\s+$/g, '');
  1330. mcHostsRetrieved++;
  1331. mcHostsToProcess++;
  1332. if (mcHostsFound == mcHostsRetrieved) //this is the last one!
  1333. {
  1334. processMirrorcreatorFoundHosts(mcLink, mcHostURLs, mcRedirectorIDs);
  1335. mcHostsToProcess = 0;
  1336. }
  1337. }
  1338. } //end of onload: function
  1339. }); //end of GM_xmlhttpRequest call
  1340. };//end of var gmxhrFunc
  1341.  
  1342. while (mcRedirectors = mcLinkBlockRegex.exec(mcLinkRes))
  1343. { //load individual redirector pages
  1344. mcRedirectorURL = 'http://www.mirrorcreator.com' + mcRedirectors[1];
  1345. mcHostURLs.push(mcRedirectorURL);
  1346. mcRedirectorIDs.push(mcRedirectors[2]);
  1347. gmxhrFunc(mcRedirectorURL);
  1348. } //end of while block
  1349.  
  1350. setTimeout(function(){ //in case the last page fails to load and call the function
  1351. timedOut = true;
  1352. if (mcHostsToProcess)
  1353. processMirrorcreatorFoundHosts(mcLink, mcHostURLs);
  1354. }, 60000);
  1355.  
  1356. } //end of onload function
  1357. }); //end of GM_xmlhttpRequest call
  1358. } //end of function processMirrorcreatorLink
  1359.  
  1360.  
  1361. function processMirrorcreatorFoundHosts(mcLink, mcHostURLs, mcRedirectorIDs)
  1362. {
  1363. var aEl, liEl, docFrag;
  1364. var hostName, mcRedirectorID, trimFilename = false;
  1365. var i = mcHostURLs.length;
  1366. if (i == 0)
  1367. {
  1368. trimFilename = true;
  1369. mcLink.parentNode.insertBefore(document.createTextNode(' | No files inside container'), mcLink.nextSibling);
  1370. }
  1371. else
  1372. {
  1373. if (Display_full_links_in_link_containers)
  1374. { //full view
  1375. var wrapperEl = document.createElement('span');
  1376. wrapperEl.style.display = 'block';
  1377. var ulistEl = document.createElement('ul');
  1378. ulistEl.className = 'container_list';
  1379. while (i--)
  1380. {
  1381. liEl = document.createElement('li');
  1382. aEl = document.createElement('a');
  1383. aEl.appendChild(document.createTextNode(mcHostURLs[i]));
  1384. aEl.href = mcHostURLs[i];
  1385. aEl.className = 'container_link';
  1386. liEl.appendChild(aEl);
  1387. ulistEl.appendChild(liEl);
  1388. }
  1389. wrapperEl.appendChild(ulistEl);
  1390. mcLink.parentNode.replaceChild(wrapperEl, mcLink);
  1391. wrapperEl.insertBefore(mcLink, wrapperEl.firstChild);
  1392. }
  1393. else
  1394. { //compact view
  1395. trimFilename = true;
  1396. docFrag = document.createDocumentFragment();
  1397. docFrag.appendChild(document.createTextNode(' |'));
  1398. while (i--)
  1399. {
  1400. mcRedirectorID = mcRedirectorIDs[i];
  1401. hostName = mcHostURLs[i];
  1402. if (mcRedirectorID > mcShortHostNames.length-1 || mcShortHostNames[mcRedirectorID] == '??')
  1403. hostName = hostName.replace(/https?:\/\/(?:www\.)?([-0-9a-z]+(?:\.[-0-9a-z]+)?)\.[a-z]+\/.*/i, '$1').toUpperCase();
  1404. else
  1405. hostName = mcShortHostNames[mcRedirectorID];
  1406. aEl = document.createElement('a');
  1407. aEl.href = mcHostURLs[i];
  1408. aEl.className = 'container_link';
  1409. aEl.appendChild(document.createTextNode(hostName));
  1410. docFrag.appendChild(aEl);
  1411. docFrag.appendChild(document.createTextNode('|'));
  1412. }
  1413. mcLink.parentNode.insertBefore(docFrag, mcLink.nextSibling);
  1414. } //end of else block
  1415. } //end of else block
  1416. mcLink.className = '';
  1417. if (trimFilename)
  1418. mcLink.firstChild.nodeValue = mcLink.firstChild.nodeValue.replace(/(https?:\/\/[^\/]+\/files\/\w+\/).+/, '$1...');
  1419. cMirrorcreatorComProcessed++;
  1420. if (cMirrorcreatorComProcessed == cMirrorcreatorComTotal) //start check when all mc links have been processed
  1421. {
  1422. if (Do_not_linkify_DL_links)
  1423. delinkifySnapshot(mcSnapshot);
  1424. startBulkCheck('container_link');
  1425. start('container_link');
  1426. }
  1427. } //end of function processMirrorcreatorFoundHosts
  1428.  
  1429. containers_processed = true;
  1430.  
  1431.  
  1432. function initRedirectors()
  1433. {
  1434. function addRedirector(linkRegex, xpathEx, redirType, innerLinkRegex)
  1435. {
  1436. var redirector = new Object();
  1437. redirector.linkRegex = linkRegex;
  1438. redirector.xpath = xpathEx; //xpath expression
  1439. redirector.cProcessed = 0; //processed links count
  1440. redirector.cTotal = 0; //total links count
  1441. redirector.type = redirType; //redirectorTypes enum
  1442. redirector.innerLinkRegex = innerLinkRegex; //innerLink, null if unused
  1443. redirectors.push(redirector);
  1444. }
  1445. if (GM_getValue("Check_safelinking_dot_net_links", false))
  1446. {
  1447. addRedirector(
  1448. 'safelinking\\.net\/d\/\\w+',
  1449. "//a[contains(@href,'safelinking.net/d/')]",
  1450. redirectorTypes.HTTP_302,
  1451. null);
  1452. }
  1453. if (GM_getValue("Check_linksafe_dot_me_links", false))
  1454. {
  1455. addRedirector(
  1456. 'linksafe\\.me\/d\/\\w+',
  1457. "//a[contains(@href,'linksafe.me/d/')]",
  1458. redirectorTypes.HTTP_302,
  1459. null);
  1460. }
  1461. if (GM_getValue("Check_linkto_dot_net_links", false))
  1462. {
  1463. addRedirector(
  1464. 'linkto\\.net\/\\?\\w+\\.\\d+',
  1465. "//a[contains(@href,'linkto.net/?')]",
  1466. redirectorTypes.INNER_LINK,
  1467. /<iframe id="iframe" name="iframe" src="(.+?)\s*" frameborder="0"/);
  1468. }
  1469. if (GM_getValue("Check_theloo_dot_katt_dot_it_links", false))
  1470. {
  1471. addRedirector(
  1472. '(?:the)?loo\\.katt\\.it\/\\w+',
  1473. "//a[contains(@href,'loo.katt.it/')]",
  1474. redirectorTypes.THELOO_KATT_IT,
  1475. /Proceed to URL - <a href="(.+?)">/);
  1476. }
  1477. if (GM_getValue("Check_madlink_dot_sk_links", false))
  1478. {
  1479. addRedirector(
  1480. 'madlink\\.sk\/\\w+',
  1481. "//a[contains(@href,'madlink.sk/')]",
  1482. redirectorTypes.INNER_LINK,
  1483. /name="url" value="(.+?)\s*"\/>/);
  1484. }
  1485. if (GM_getValue("Check_adf_dot_ly_links", false))
  1486. {
  1487. addRedirector(
  1488. '(?:adf\\.ly|[u9]\\.bb|[qj]\\.gs)\/\\w+',
  1489. "//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/')]",
  1490. redirectorTypes.ADF_LY,
  1491. null);
  1492. }
  1493. if (GM_getValue("Check_redi_dot_re_links", false))
  1494. {
  1495. addRedirector(
  1496. 'redi\\.re\/\\w+',
  1497. "//a[contains(@href,'redi.re/')]",
  1498. redirectorTypes.HTTP_302,
  1499. null);
  1500. }
  1501. if (GM_getValue("Check_bit_dot_ly_links", false))
  1502. {
  1503. addRedirector(
  1504. 'bit\\.ly\/\\w+',
  1505. "//a[contains(@href,'bit.ly/')]",
  1506. redirectorTypes.HTTP_302,
  1507. null);
  1508. }
  1509. }
  1510.  
  1511. }
  1512.  
  1513. var bulkHosts = new Array();
  1514. var bulkHostNames = new Array();
  1515. function initBulkCheck()
  1516. {
  1517. /////////////////////////////
  1518. // Inits filehost object
  1519. /////////////////////////////
  1520. // params :
  1521. // hostName -- [string] host name (multiple domains separated with coma)
  1522. // linkRegex -- [string] link regex
  1523. // xpath -- [string] xpath expression to detect the link objects with evaluate
  1524. // blockSize -- [integer] max. number of links sent in one request, 50 if null
  1525. // corrMatch -- [regex] link correction regex (match), applied prior to corrRepl
  1526. // corrReplWhat -- [regex] link correction regex (replace)
  1527. // corrReplWith -- [string]
  1528. // splitSeparator -- [string] POSTDATA links separator, "\r\n" if null
  1529. //
  1530. // apiUrl -- [string] web linkchecker or API URL
  1531. // postData -- [string] POSTDATA of xmlhttprequest
  1532. // resLinkRegex -- [regex]
  1533. // resLiveRegex -- [regex] matches substrings containing live links in the request response
  1534. // resDeadRegex -- [regex] matches substrings containing dead links in the request response
  1535. // resUnavaRegex -- [regex] matches substrings containing unava links in the request response
  1536. // func -- [function] bulkcheck handler, genBulkCheck if null
  1537. //
  1538. //////////////////////////////
  1539. function addHost(hostName, linkRegex, xpath, blockSize, corrMatch, corrReplWhat, corrReplWith, splitSeparator,
  1540. apiUrl, postData, resLinkRegex, resLiveRegex, resDeadRegex, resUnavaRegex, func)
  1541. {
  1542. var fileHost = new Object();
  1543.  
  1544. fileHost.linkRegex = linkRegex;
  1545. fileHost.linkRegexObject = new RegExp(linkRegex, "");
  1546. fileHost.xpath = xpath;
  1547. fileHost.cFound = 0; //found links counter
  1548. fileHost.links = new Array(); //found links
  1549. if (blockSize == null)
  1550. {
  1551. fileHost.blockSize = 50;
  1552. }
  1553. else
  1554. {
  1555. fileHost.blockSize = blockSize;
  1556. }
  1557. fileHost.corrMatch = corrMatch;
  1558. fileHost.corrReplWhat = corrReplWhat;
  1559. fileHost.corrReplWith = corrReplWith;
  1560. if (splitSeparator == null)
  1561. {
  1562. fileHost.splitSeparator = "\r\n";
  1563. }
  1564. else
  1565. {
  1566. fileHost.splitSeparator = splitSeparator;
  1567. }
  1568. fileHost.apiUrl = apiUrl;
  1569. fileHost.postData = postData;
  1570. fileHost.resLinkRegex = resLinkRegex;
  1571. fileHost.resLiveRegex = resLiveRegex;
  1572. fileHost.resDeadRegex = resDeadRegex;
  1573. fileHost.resUnavaRegex = resUnavaRegex;
  1574. if (func == null)
  1575. {
  1576. fileHost.func = genBulkCheck;
  1577. }
  1578. else
  1579. {
  1580. fileHost.func = func;
  1581. }
  1582. bulkHosts.push(fileHost);
  1583. var names = hostName.split(',');
  1584. var i = names.length;
  1585. while(i--)
  1586. {
  1587. bulkHostNames[names[i]] = fileHost;
  1588. }
  1589. }
  1590. var genType1 = [ "upthe.net", "dark-uploads.com",
  1591. "migahost.com", "rodfile.com", "downloadani.me",
  1592. "ok2upload.com", "rarefile.net",
  1593. "goldfile.eu", "space4file.com",
  1594. "vreer.com", "isavelink.com", "uploadic.com",
  1595. "ddlstorage.com", "filesabc.com", "sharebeast.com",
  1596. "sharebees.com", "180upload.com", "verzend.be",
  1597. "zomgupload.com", "mlfat4arab.com", "movreel.com",
  1598. "4up.me", "fileupup.com", "share76.com",
  1599. "filebox.com", "file4safe.com", "upafile.com",
  1600. "filemac.com", "4upfiles.com",
  1601. "idup.in", "novafile.com", "longfiles.com",
  1602. "potload.com", "bitupload.com",
  1603. "filesbb.com",
  1604. "uploadbaz.com"
  1605. ];
  1606. var genType2 = [ "prefiles.com", "queenshare.com",
  1607. "filesega.com", "rockdizfile.com", "hulkload.com",
  1608. "filestay.com", "4savefile.com", "daj.to",
  1609. "upfile.biz", "kupload.org", "ifile.ws",
  1610. "uploadjet.net", "zooupload.com",
  1611. "filemates.com",
  1612. "tusfiles.net",
  1613. "amonshare.com", "edoc.com",
  1614. "filefolks.com", "filedefend.com",
  1615. "uploading4u.eu", "grupload.com", "filestrum.com", "fileuplo.de",
  1616. "upaj.pl", "fileking.co", "filedownloads.org",
  1617. ];
  1618. //xfilesharing 1.0
  1619. function addGenericType1()
  1620. {
  1621. var i = genType1.length;
  1622. while(i--)
  1623. {
  1624. if (GM_getValue("Check_" + genType1[i].replace(/\./g, "_dot_").replace(/-/g, "_dash_") + "_links", false))
  1625. {
  1626. var regexSafe = genType1[i].replace(/\./g, "\\.").replace(/-/g, "\\-");
  1627. addHost(
  1628. genType1[i].match(/[\w-]+/)[0], //hostname
  1629. regexSafe + "\/\\w+", //linkregex
  1630. "//a[contains(@href,'" + genType1[i] + "/')]", //xpath
  1631. null, //blocksize
  1632. new RegExp("(http:\/\/(?:|www\\.)" + regexSafe + "\/\\w+)",""),//, //corrmatch
  1633. null, //corrreplwhat
  1634. null, //corrreplwith
  1635. null, //separator
  1636. "http://" + genType1[i] + "/checkfiles.html", //api url
  1637. "op=checkfiles&process=Check+URLs&list=", //postdata
  1638. new RegExp("(" + regexSafe + "\/\\w+)",""), //linkregex
  1639. new RegExp("green'>http:\/\/(?:|www\.)" + regexSafe + "\/\\w+","g"), //liveregex
  1640. new RegExp("red'>http:\/\/(?:|www\.)" + regexSafe + "\/\\w+","g"), //deadregex
  1641. new RegExp("orange'>http:\/\/(?:|www\.)" + regexSafe + "\/\\w+","g"), //unavaregex
  1642. null //function delegate
  1643. )
  1644. }
  1645. }
  1646. }
  1647. //xfilesharing 2.0
  1648. function addGenericType2()
  1649. {
  1650. var i = genType2.length;
  1651. while(i--)
  1652. {
  1653. if (GM_getValue("Check_" + genType2[i].replace(/\./g, "_dot_").replace(/-/g, "_dash_") + "_links", false))
  1654. {
  1655. var regexSafe = genType2[i].replace(/\./g, "\\.").replace(/-/g, "\\-");
  1656. addHost(
  1657. genType2[i].match(/[\w-]+/)[0], //hostname
  1658. regexSafe + "\/\\w+", //linkregex
  1659. "//a[contains(@href,'" + genType2[i] + "/')]", //xpath
  1660. null, //blocksize
  1661. new RegExp("(http:\/\/(?:|www\\.)" + regexSafe + "\/\\w+)",""),//, //corrmatch
  1662. null, //corrreplwhat
  1663. null, //corrreplwith
  1664. null, //separator
  1665. "http://www." + genType2[i] + "/?op=checkfiles", //api url
  1666. "op=checkfiles&process=Check+URLs&list=", //postdata
  1667. new RegExp("(" + regexSafe + "\/\\w+)",""), //linkregex
  1668. new RegExp(regexSafe + "\/\\w+.*?<\/td>\\s*<td style=\"color:green;\">","g"), //liveregex
  1669. new RegExp(regexSafe + "\/\\w+.*?<\/td>\\s*<td style=\"color:red;\">","g"), //deadregex
  1670. new RegExp(regexSafe + "\/\\w+.*?<\/td>\\s*<td style=\"color:orange;\">","g"), //unavaregex
  1671. null //function delegate
  1672. )
  1673. }
  1674. }
  1675. }
  1676. // TEMPLATE
  1677. // if (GM_getValue("Check__dot_com_links", false))
  1678. // {
  1679. // addHost(
  1680. // "", //hostname
  1681. // "", //linkregex
  1682. // "//a[contains(@href,'.com/')]", //xpath
  1683. // null, //blocksize
  1684. // null, //corrmatch
  1685. // null, //corrreplwhat
  1686. // null, //corrreplwith
  1687. // null, //separator
  1688. // "", //api url
  1689. // "", //postdata
  1690. // /()/, //linkregex
  1691. // //liveregex
  1692. // //deadregex
  1693. // //unavaregex
  1694. // null //function delegate
  1695. // )
  1696. // }
  1697. addGenericType1();
  1698. addGenericType2();
  1699. if (GM_getValue("Check_i_dash_filez_dot_com_links", false))
  1700. {
  1701. addHost(
  1702. "i-filez", //hostname
  1703. "i-filez\\.com\/downloads\/i\/\\d+\/f\/", //linkregex
  1704. "//a[contains(@href,'i-filez.com/downloads')]", //xpath
  1705. null, //blocksize
  1706. null, //corrmatch
  1707. null, //corrreplwhat
  1708. null, //corrreplwith
  1709. null, //separator
  1710. "http://i-filez.com/checkfiles", //api url
  1711. "send=Check&files=", //postdata
  1712. /(downloads\/i\/\d+)/, //linkregex
  1713. /http:\/\/i-filez\.com\/downloads\/i\/\d+\/f\/[\w\(\)\.]+<\/td><td><span class='active/g, //liveregex
  1714. /http:\/\/i-filez\.com\/downloads\/i\/\d+\/f\/[\w\(\)\.]+<\/td><td><span class='notfound/g, //deadregex
  1715. null, //unavaregex
  1716. null //function delegate
  1717. )
  1718. }
  1719. if (GM_getValue("Check_myvdrive_dot_com_links", false))
  1720. {
  1721. addHost(
  1722. "myvdrive,fileserving", //hostname
  1723. "(?:fileserving|myvdrive)\\.com\/files\/[\\w-]+", //linkregex
  1724. "//a[contains(@href,'fileserving.com/files') or contains(@href,'myvdrive.com/files')]", //xpath
  1725. null, //blocksize
  1726. null, //corrmatch
  1727. null, //corrreplwhat
  1728. null, //corrreplwith
  1729. null, //separator
  1730. "http://www.myvdrive.com/Public/linkchecker#", //api url
  1731. "links=", //postdata
  1732. /(?:fileserving|myvdrive)\.com\/(files\/\w+)/, //linkregex
  1733. /icon_file_check_valid"><\/span>\s*http:\/\/www\.(?:fileserving|myvdrive)\.com\/files\/[\w-]+/g, //liveregex
  1734. /icon_file_check_(?:removed|notvalid)"><\/span>\s*http:\/\/www\.(?:fileserving|myvdrive)\.com\/files\/[\w-]+/g, //deadregex
  1735. null, //unavaregex
  1736. null //function delegate
  1737. )
  1738. }
  1739. if (GM_getValue("Check_billionuploads_dot_com_links", false))
  1740. {
  1741. addHost(
  1742. "billionuploads,BillionUploads", //hostname
  1743. "(?:billionuploads|BillionUploads)\\.com\/\\w+", //linkregex
  1744. "//a[contains(@href,'billionuploads.com/') or contains(@href,'BillionUploads.com/')]", //xpath
  1745. null, //blocksize
  1746. /(http:\/\/(?:|www\.)billionuploads\.com\/\w+)/i, //corrmatch
  1747. null, //corrreplwhat
  1748. null, //corrreplwith
  1749. null, //separator
  1750. "http://billionuploads.com/checkfiles.html", //api url
  1751. "op=checkfiles&process=Check+URLs&list=", //postdata
  1752. /billionuploads\.com\/(\w+)/i, //linkregex
  1753. /green'>http:\/\/(?:|www\.)billionuploads\.com\/\w+/gi, //liveregex
  1754. /red'>http:\/\/(?:|www\.)billionuploads\.com\/\w+/gi, //deadregex
  1755. /orange'>http:\/\/(?:|www\.)billionuploads\.com\/\w+/gi, //unavaregex
  1756. null //function delegate
  1757. )
  1758. }
  1759. if (GM_getValue("Check_files2k_dot_eu_links", false))
  1760. {
  1761. addHost(
  1762. "files2k", //hostname
  1763. "files2k\\.eu\/\\w+", //linkregex
  1764. "//a[contains(@href,'files2k.eu/')]", //xpath
  1765. null, //blocksize
  1766. /(http:\/\/(?:|www\.)files2k\.eu\/\w+)/, //corrmatch
  1767. null, //corrreplwhat
  1768. null, //corrreplwith
  1769. null, //separator
  1770. "http://files2k.eu/?op=checkfiles", //api url
  1771. "op=checkfiles&process=Check+URLs&list=", //postdata
  1772. /(files2k\.eu\/\w+)/, //linkregex
  1773. /files2k\.eu\/\w+.*?<\/td><td style="color:green;">/g, //liveregex
  1774. /files2k\.eu\/\w+.*?<\/td><td style="color:red;">/g, //deadregex
  1775. /files2k\.eu\/\w+.*?<\/td><td style="color:orange;">/g, //unavaregex
  1776. null //function delegate
  1777. )
  1778. }
  1779. if (GM_getValue("Check_sharefiles_dot_co_links", false))
  1780. {
  1781. addHost(
  1782. "sharefiles", //hostname
  1783. "sharefiles\\.co\/\\w+", //linkregex
  1784. "//a[contains(@href,'sharefiles.co/')]", //xpath
  1785. null, //blocksize
  1786. /(https?:\/\/(?:|www\.)sharefiles\.co\/\w+)/, //corrmatch
  1787. null, //corrreplwhat
  1788. null, //corrreplwith
  1789. null, //separator
  1790. "http://sharefiles.co/?op=checkfiles", //api url
  1791. "op=checkfiles&process=Check+URLs&list=", //postdata
  1792. /(sharefiles\.co\/\w+)/, //linkregex
  1793. /green'>https?:\/\/(?:|www\.)sharefiles\.co\/\w+/g, //liveregex
  1794. /red'>https?:\/\/(?:|www\.)sharefiles\.co\/\w+/g, //deadregex
  1795. /orange'>https?:\/\/(?:|www\.)sharefiles\.co\/\w+/g, //unavaregex
  1796. null //function delegate
  1797. )
  1798. }
  1799. if (GM_getValue("Check_hackerbox_dot_org_links", false))
  1800. {
  1801. addHost(
  1802. "hackerbox", //hostname
  1803. "host\\.hackerbox\\.org\/\\w+", //linkregex
  1804. "//a[contains(@href,'host.hackerbox.org/')]", //xpath
  1805. null, //blocksize
  1806. /(http:\/\/host\.hackerbox\.org\/\w+)/, //corrmatch
  1807. null, //corrreplwhat
  1808. null, //corrreplwith
  1809. null, //separator
  1810. "http://host.hackerbox.org/checkfiles.html", //api url
  1811. "op=checkfiles&process=Check+URLs&list=", //postdata
  1812. /(host\.hackerbox\.org\/\w+)/, //linkregex
  1813. /green'>http:\/\/host\.hackerbox\.org\/\w+/g, //liveregex
  1814. /red'>http:\/\/host\.hackerbox\.org\/\w+/g, //deadregex
  1815. /orange'>http:\/\/host\.hackerbox\.org\/\w+/g, //unavaregex
  1816. null //function delegate
  1817. )
  1818. }
  1819. //if (GM_getValue("Check_ryushare_dot_com_links", false))
  1820. //{
  1821. //addHost(
  1822. //"ryushare", //hostname
  1823. //"ryushare\\.com\/\\w+", //linkregex
  1824. //"//a[contains(@href,'ryushare.com/')]", //xpath
  1825. //null, //blocksize
  1826. ///(http:\/\/(?:|www\.)ryushare\.com\/\w+)/, //corrmatch
  1827. //null, //corrreplwhat
  1828. //null, //corrreplwith
  1829. //null, //separator
  1830. //"http://ryushare.com/checkfiles.python", //api url
  1831. //"op=checkfiles&process=Check+URLs&list=", //postdata
  1832. ///(ryushare\.com\/\w+)/, //linkregex
  1833. ///green'>http:\/\/(?:|www\.)ryushare\.com\/\w+/g, //liveregex
  1834. ///red'>http:\/\/(?:|www\.)ryushare\.com\/\w+/g, //deadregex
  1835. ///orange'>http:\/\/(?:|www\.)ryushare\.com\/\w+/g, //unavaregex
  1836. //null //function delegate
  1837. //)
  1838. //}
  1839. if (GM_getValue("Check_hellshare_dot_com_links", false))
  1840. {
  1841. addHost(
  1842. "hellshare", //hostname
  1843. "(?:|download\\.(?:cz\\.|en\\.|sk\\.|)|www\\.)hellshare\\.(?:com|sk|cz|pl|hu|COM|SK|CZ|PL|HU)\/[\\w-\\.]+\/(?:[\\w-\\.]+\/|)\\d{5,}", //linkregex
  1844. "//a[contains(@href,'hellshare.')]", //xpath
  1845. 48, //blocksize
  1846. null, //corrmatch
  1847. null, //corrreplwhat
  1848. null, //corrreplwith
  1849. null, //separator
  1850. null, //api url
  1851. null, //postdata
  1852. null, //linkregex
  1853. null, //liveregex
  1854. null, //deadregex
  1855. null, //unavaregex
  1856. hellshareBulkCheck //function delegate
  1857. )
  1858. }
  1859. if (GM_getValue("Check_ncrypt_dot_in_links", false))
  1860. {
  1861. addHost(
  1862. "ncrypt", //hostname
  1863. "ncrypt\\.in\/folder\\-\\w+", //linkregex
  1864. "//a[contains(@href,'ncrypt.in/folder')]", //xpath
  1865. 100000, //blocksize
  1866. null, //corrmatch
  1867. null, //corrreplwhat
  1868. null, //corrreplwith
  1869. null, //separator
  1870. null,
  1871. null,
  1872. null,
  1873. null,
  1874. null,
  1875. null,
  1876. ncryptBulkCheck //function delegate
  1877. )
  1878. }
  1879. if (GM_getValue("Check_filepost_dot_com_links", false))
  1880. {
  1881. addHost(
  1882. "filepost,fp", //hostname
  1883. "(?:filepost\\.com\/files|fp\\.io)\/\\w+", //linkregex
  1884. "//a[contains(@href,'filepost.com/files/') or contains(@href,'fp.io/')]", //xpath
  1885. null, //blocksize
  1886. null, //corrmatch
  1887. null, //corrreplwhat
  1888. null, //corrreplwith
  1889. "\n", //separator
  1890. 'http://filepost.com/files/checker/?JsHttpRequest=0-xml',
  1891. 'urls=',
  1892. /\\\/files\\\/(\w+)/,
  1893. />http:\\\/\\\/filepost\.com\\\/files\\\/\w+(?:[^>]+>){5}(?:\\n|\\t)+<span class=\\"v\\"/g,
  1894. />http:\\\/\\\/filepost\.com\\\/files\\\/\w+(?:[^>]+>){5}(?:\\n|\\t)+<span class=\\"x\\"/g,
  1895. null,
  1896. null //function delegate
  1897. )
  1898. }
  1899. if (GM_getValue("Check_fiberupload_dot_net_links", false))
  1900. {
  1901. addHost(
  1902. "fiberupload", //hostname
  1903. "fiberupload\\.(?:com|net)\/\\w+", //linkregex
  1904. "//a[contains(@href,'fiberupload.')]", //xpath
  1905. null, //blocksize
  1906. /(http:\/\/(?:www\.)?fiberupload\.(?:com|net)\/\w+)/, //corrmatch
  1907. null, //corrreplwhat
  1908. null, //corrreplwith
  1909. null, //separator
  1910. 'http://fiberupload.net/?op=checkfiles',
  1911. 'op=checkfiles&list=',
  1912. /(fiberupload\.(?:com|net)\/\w+)/,
  1913. /'green'>http:\/\/(?:www\.)?fiberupload\.(?:com|net)\/\w+/g,
  1914. /'red'>http:\/\/(?:www\.)?fiberupload\.(?:com|net)\/\w+/g,
  1915. /'orange'>http:\/\/(?:www\.)?fiberupload\.(?:com|net)\/\w+/g,
  1916. null //function delegate
  1917. )
  1918. }
  1919. if (GM_getValue("Check_filesflash_dot_com_links", false))
  1920. {
  1921. addHost(
  1922. "filesflash", //hostname
  1923. "filesflash\\.com\/\\w+", //linkregex
  1924. "//a[contains(@href,'filesflash.com')]", //xpath
  1925. null, //blocksize
  1926. null, //corrmatch
  1927. /http:\/\//, //corrreplwhat
  1928. '', //corrreplwith
  1929. null, //separator
  1930. 'http://filesflash.com/checklinks.php',
  1931. 'submit=Go&links=',
  1932. /filesflash\.com\/(\w+)/,
  1933. /<td>filesflash\.com\/\w+<\/td>\s*<td>Available/g,
  1934. /<td>filesflash\.com\/\w+<\/td>\s*<td>(?:Invalid|Deleted|Expired|Banned)?<\/td>/g,
  1935. null,
  1936. null //function delegate
  1937. )
  1938. }
  1939. /* if (GM_getValue("Check_hitfile_dot_net_links", false))
  1940. {
  1941. addHost(
  1942. "hitfile", //hostname
  1943. "hitfile\\.net\/\\w+", //linkregex
  1944. "//a[contains(@href,'hitfile.net')]", //xpath
  1945. null, //blocksize
  1946. null, //corrmatch
  1947. null, //corrreplwhat
  1948. null, //corrreplwith
  1949. "\n", //separator
  1950. 'http://hitfile.net/linkchecker/check',
  1951. 'links_to_check=',
  1952. /^<td>(\w+)<\/td>/,
  1953. /<td>\w+<\/td>\s*<td>[^<]*<\/td>\s*<td style[^<]+<img.*?title="Existent"/g,
  1954. /<td>\w+<\/td>\s*<td>[^<]*<\/td>\s*<td style[^<]+<img.*?title="Deleted"/g,
  1955. null,
  1956. null //function delegate
  1957. )
  1958. } */
  1959. if (GM_getValue("Check_jumbofiles_dot_com_links", false))
  1960. {
  1961. addHost(
  1962. "jumbofiles", //hostname
  1963. "jumbofiles\\.com\/\\w+", //linkregex
  1964. "//a[contains(@href,'jumbofiles.com/')]", //xpath
  1965. null, //blocksize
  1966. /(http:\/\/(?:|www\.)jumbofiles\.com\/\w+)/, //corrmatch
  1967. null, //corrreplwhat
  1968. null, //corrreplwith
  1969. null, //separator
  1970. "http://jumbofiles.com/checkfiles.html", //api url
  1971. "op=checkfiles&process=Check+URLs&list=", //postdata
  1972. /(jumbofiles\.com\/\w+)/, //linkregex
  1973. /blue'>http:\/\/(?:|www\.)jumbofiles\.com\/\w+/g, //liveregex
  1974. /red'>http:\/\/(?:|www\.)jumbofiles\.com\/\w+/g, //deadregex
  1975. /orange'>http:\/\/(?:|www\.)jumbofiles\.com\/\w+/g, //unavaregex
  1976. null //function delegate
  1977. )
  1978. }
  1979. if (GM_getValue("Check_edisk_dot_cz_links", false))
  1980. {
  1981. addHost(
  1982. "edisk", //hostname
  1983. "(?:(?:muj|data)\\d*\\.|)edisk\\.(?:cz|sk|eu)\/(?:|(?:cz|sk|en|pl)\/)", //linkregex
  1984. "//a[contains(@href,'edisk.')]", //xpath
  1985. null, //blocksize
  1986. null, //corrmatch
  1987. /edisk\.\w{2}\/(?:|\w{2}\/)stahni/, //corrreplwhat
  1988. 'edisk.cz/stahni', //corrreplwith
  1989. null, //separator
  1990. 'http://www.edisk.cz/zkontrolovat-odkazy',
  1991. 'submitBtn=Zkontrolovat&checkFiles=',
  1992. /((?:download|stahn(?:i|out-soubor))\/\d+)/,
  1993. /"ano"\/>\s*<\/td>\s*<td>\s*http:\/\/.+/g,
  1994. /"ne"\/>\s*<\/td>\s*<td>\s*http:\/\/.+/g,
  1995. null,
  1996. null //function delegate
  1997. )
  1998. }
  1999. if (GM_getValue("Check_bezvadata_dot_cz_links", false))
  2000. {
  2001. GM_xmlhttpRequest( //age check skip
  2002. {
  2003. method: 'POST',
  2004. url: 'http://bezvadata.cz/vyhledavani/souhlas-zavadny-obsah',
  2005. headers: {
  2006. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  2007. 'Content-type': 'application/x-www-form-urlencoded',
  2008. 'Referer': ""
  2009. }
  2010. });
  2011. addHost(
  2012. "bezvadata", //hostname
  2013. "(?:beta\\.|)bezvadata\.cz\/stahnout\/\\d+\\w+", //linkregex
  2014. "//a[contains(@href,'bezvadata.cz')]", //xpath
  2015. null, //blocksize
  2016. null, //corrmatch
  2017. null, //corrreplwhat
  2018. null, //corrreplwith
  2019. null, //separator
  2020. 'http://bezvadata.cz/nastroje/kontrola-odkazu?do=kontrolaOdkazuForm-submit',
  2021. 'zkontrolovat=Zkontrolovat&odkazy=',
  2022. /(bezvadata\.cz\/stahnout\/\d+)/,
  2023. /bezvadata\.cz\/stahnout\/.+?<\/td>\s*<td style="background-color: #d9ffb2/g,
  2024. /bezvadata\.cz\/stahnout\/.+?<\/td>\s*<td style="background-color: #ffb2b2/g,
  2025. null,
  2026. null //function delegate
  2027. )
  2028. }
  2029. if (GM_getValue("Check_megashare_dot_com_links", false))
  2030. {
  2031. addHost(
  2032. "megashare,MegaShare", //hostname
  2033. "(?:megashare|MegaShare)\\.com\/\\d+", //linkregex
  2034. "//a[contains(@href,'megashare.com') or contains(@href,'MegaShare.com')]", //xpath
  2035. 100000, //blocksize
  2036. null, //corrmatch
  2037. null, //corrreplwhat
  2038. null, //corrreplwith
  2039. null, //separator
  2040. null,
  2041. null,
  2042. null,
  2043. null,
  2044. null,
  2045. null,
  2046. megashareBulkCheck //function delegate
  2047. )
  2048. }
  2049. if (GM_getValue("Check_depositfiles_dot_com_links", false))
  2050. {
  2051. addHost(
  2052. "depositfiles,dfiles", //hostname
  2053. //"depositfiles\\.com\/(?:en\/|ru\/|de\/|es\/|pt\/|)files\/\\w+", //linkregex
  2054. //"(?:depositfiles\\.com|\\bdfiles\\.ru)\/(?:en\/|ru\/|de\/|es\/|pt\/|)files\/\\w+", //linkregex
  2055. "(?:depositfiles\\.(?:com|org)|\\bdfiles\\.(?:ru|eu))\/(?:en\/|ru\/|de\/|es\/|pt\/|)files\/\\w+", //linkregex
  2056. "//a[(contains(@href,'depositfiles.') or contains(@href,'dfiles.ru') or contains(@href,'dfiles.eu')) and contains(@href,'/files/')]", //xpath
  2057. 100000, //blocksize
  2058. null, //corrmatch
  2059. null, //corrreplwhat
  2060. null, //corrreplwith
  2061. null, //separator
  2062. null,
  2063. null,
  2064. null,
  2065. null,
  2066. null,
  2067. null,
  2068. depositfilesBulkCheck //function delegate
  2069. )
  2070. }
  2071. if (GM_getValue("Check_linkcrypt_dot_ws_links", false))
  2072. {
  2073. addHost(
  2074. "linkcrypt", //hostname
  2075. "linkcrypt\\.ws\/dir\/\\w+", //linkregex
  2076. "//a[contains(@href,'linkcrypt.ws/dir')]", //xpath
  2077. 100000, //blocksize
  2078. null, //corrmatch
  2079. null, //corrreplwhat
  2080. null, //corrreplwith
  2081. null, //separator
  2082. null,
  2083. null,
  2084. null,
  2085. null,
  2086. null,
  2087. null,
  2088. linkcryptBulkCheck //function delegate
  2089. )
  2090. }
  2091. if (GM_getValue("Check_linksave_dot_in_links", false))
  2092. {
  2093. addHost(
  2094. "linksave", //hostname
  2095. "linksave\\.in\/\\w+", //linkregex
  2096. "//a[contains(@href,'linksave.in')]", //xpath
  2097. 100000, //blocksize
  2098. null, //corrmatch
  2099. null, //corrreplwhat
  2100. null, //corrreplwith
  2101. null, //separator
  2102. null,
  2103. null,
  2104. null,
  2105. null,
  2106. null,
  2107. null,
  2108. linksaveBulkCheck //function delegate
  2109. )
  2110. }
  2111. if (GM_getValue("Check_videobb_dot_com_links", false))
  2112. {
  2113. addHost(
  2114. "videobb", //hostname
  2115. "videobb\\.com\/(?:video\/|watch_video\\.php\\?v=)\\w+", //linkregex
  2116. "//a[contains(@href,'videobb.com')]", //xpath
  2117. null, //blocksize
  2118. null, //corrmatch
  2119. /watch_video\.php\?v=/, //corrreplwhat
  2120. 'video/', //corrreplwith
  2121. null, //separator
  2122. 'http://www.videobb.com/link_checker.php',
  2123. 'links=',
  2124. /videobb\.com\/video\/(\w+)/,
  2125. /<td>http:\/\/(?:www\.|)videobb.com\/video\/\w+<\/td>\s+<td>.+?<\/td>\s+<td>\d+:\d+<\/td>\s+<td>Available/g,
  2126. /<td>http:\/\/(?:www\.|)videobb.com\/video\/\w+<\/td>\s+<td><\/td>\s+<td>N\/A<\/td>\s+<td>Not Available/g,
  2127. null,
  2128. null //function delegate
  2129. )
  2130. }
  2131. // if (GM_getValue("Check_bitshare_dot_com_links", false))
  2132. // {
  2133. // addHost(
  2134. // "bitshare", //hostname
  2135. // "bitshare\\.com\/(?:files\/|\\?f=)\\w+", //linkregex
  2136. // "//a[contains(@href,'bitshare.com')]", //xpath
  2137. // null, //blocksize
  2138. // null, //corrmatch
  2139. // null, //corrreplwhat
  2140. // null, //corrreplwith
  2141. // null, //separator
  2142. // 'http://bitshare.com/linkcheck.html',
  2143. // 'submit=Check&links=',
  2144. // /(bitshare\.com\/(?:files\/|\?f=)\w+)/,
  2145. // /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,
  2146. // /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,
  2147. // /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,
  2148. // null //function delegate
  2149. // )
  2150. // }
  2151. if (GM_getValue("Check_cramit_dot_in_links", false))
  2152. {
  2153. addHost(
  2154. "cramit,cramitin", //hostname
  2155. "cramit(?:\\.in|in\\.net)\/", //linkregex
  2156. "//a[contains(@href,'cramitin.net') or contains(@href,'cramit.in')]", //xpath
  2157. null, //blocksize
  2158. null, //corrmatch
  2159. null, //corrreplwhat
  2160. null, //corrreplwith
  2161. null, //separator
  2162. 'http://cramit.in/checkfiles.html',
  2163. 'op=checkfiles&process=CHECK+URL%27S&list=',
  2164. /(cramit(?:\.in|in\.net)\/\w+)/,
  2165. /green>http:\/\/(?:www\.|)cramit(?:\.in|in\.net)\/\w+/g,
  2166. /red'>http:\/\/(?:www\.|)cramit(?:\.in|in\.net)\/\w+/g,
  2167. /orange'>http:\/\/(?:www\.|)cramit(?:\.in|in\.net)\/\w+/g,
  2168. null //function delegate
  2169. )
  2170. }
  2171. if (GM_getValue("Check_turbobit_dot_net_links", false))
  2172. {
  2173. addHost(
  2174. "turbobit", //hostname
  2175. "turbobit\\.(?:net|pl)\/(?:\\w+\/|).+?\\.html", //linkregex
  2176. "//a[contains(@href,'turbobit.')]", //xpath
  2177. null, //blocksize
  2178. /(turbobit\.(?:net|pl)\/(?:\w+\/|).+?\.html)/, //corrmatch
  2179. null, //corrreplwhat
  2180. null, //corrreplwith
  2181. "\n", //separator
  2182. 'http://turbobit.net/linkchecker/csv',
  2183. 'links_to_check=',
  2184. /(turbobit\.(?:net|pl)\/\w+)/,
  2185. /turbobit\.(?:net|pl)\/.*?, 1/g,
  2186. /turbobit\.(?:net|pl)\/.*?, 0/g,
  2187. null,
  2188. null //function delegate
  2189. )
  2190. }
  2191. if (GM_getValue("Check_unextfiles_dot_com_links", false))
  2192. {
  2193. addHost(
  2194. "unextfiles", //hostname
  2195. "unextfiles\\.com\/(?:\\w+\/|).+?\\.html", //linkregex
  2196. "//a[contains(@href,'unextfiles.com/')]", //xpath
  2197. null, //blocksize
  2198. /(unextfiles\.com\/(?:\w+\/|).+?\.html)/, //corrmatch
  2199. null, //corrreplwhat
  2200. null, //corrreplwith
  2201. "\n", //separator
  2202. 'http://unextfiles.com/linkchecker/csv',
  2203. 'links_to_check=',
  2204. /(unextfiles\.com\/\w+)/,
  2205. /unextfiles\.com\/.*?, 1/g,
  2206. /unextfiles\.com\/.*?, 0/g,
  2207. null,
  2208. null //function delegate
  2209. )
  2210. }
  2211. if (GM_getValue("Check_filerio_dot_com_links", false))
  2212. {
  2213. addHost(
  2214. "filekeen,filerio", //hostname
  2215. //"file(?:keen|rio)\\.(?:com|in)\/\\w+\/.", //linkregex
  2216. "file(?:keen|rio)\\.(?:com|in)\/\\w+", //linkregex
  2217. "//a[contains(@href,'filekeen.com') or contains(@href,'filerio.')]", //xpath
  2218. null, //blocksize
  2219. null, //corrmatch
  2220. null, //corrreplwhat
  2221. null, //corrreplwith
  2222. null, //separator
  2223. 'http://filerio.in/checkfiles.html',
  2224. 'op=checkfiles&process=Check+URLs&list=',
  2225. /(file(?:keen|rio)\.(?:com|in)\/\w+)/,
  2226. /green'>http:\/\/(?:www\.|)file(?:keen|rio)\.(?:com|in)\/\w+/g,
  2227. /red'>http:\/\/(?:www\.|)file(?:keen|rio)\.(?:com|in)\/\w+/g,
  2228. /orange'>http:\/\/(?:www\.|)file(?:keen|rio)\.(?:com|in)\/\w+/g,
  2229. null //function delegate
  2230. )
  2231. }
  2232. if (GM_getValue("Check_share_dash_online_dot_biz_links", false))
  2233. {
  2234. addHost(
  2235. "share-online,egoshare", //hostname
  2236. "(?:share-online\\.biz|egoshare\\.com)\/(?:dl\/|download\\.php\\?id=)", //linkregex
  2237. "//a[contains(@href,'share-online.biz') or contains(@href,'egoshare.com')]", //xpath
  2238. null, //blocksize
  2239. /http:\/\/(?:www\.)?(?:share-online\.biz|egoshare\.com)\/d(?:l\/|ownload\.php\?id=)(\w+)/, //corrmatch
  2240. null, //corrreplwhat
  2241. null, //corrreplwith
  2242. "\n", //separator
  2243. 'http://api.share-online.biz/linkcheck.php',
  2244. 'links=',
  2245. /(\w+);(?:OK|NOTFOUND|DELETED)/,
  2246. /\w+;OK/g,
  2247. /\w+;(?:NOTFOUND|DELETED)/g,
  2248. null,
  2249. null //function delegate
  2250. )
  2251. }
  2252. if (GM_getValue("Check_quickshare_dot_cz_links", false))
  2253. {
  2254. addHost(
  2255. "quickshare", //hostname
  2256. "quickshare\\.cz\/stahnout-soubor\/\\d+", //linkregex
  2257. "//a[contains(@href,'quickshare.cz')]", //xpath
  2258. null, //blocksize
  2259. null, //corrmatch
  2260. null, //corrreplwhat
  2261. null, //corrreplwith
  2262. null, //separator
  2263. 'http://www.quickshare.cz/nastroje/link-checker',
  2264. 'linky=',
  2265. /quickshare\.cz\/stahnout-soubor\/(\d+(?::\w+)?)/,
  2266. /quickshare\.cz\/stahnout-soubor\/\d+(?::[\w\-.+$!*\/()\[\]\',~%?:@#&=\\]+)?\s*<\/a><\/td><td><img src="\/img\/ok\.gif/g,
  2267. /quickshare\.cz\/stahnout-soubor\/\d+(?::[\w\-.+$!*\/()\[\]\',~%?:@#&=\\]+)?\s*<\/td><td><img src="\/img\/nenalezeno\.gif/g,
  2268. null,
  2269. null //function delegate
  2270. )
  2271. }
  2272. if (GM_getValue("Check_multishare_dot_cz_links", false))
  2273. {
  2274. addHost(
  2275. "multishare", //hostname
  2276. "multishare\\.cz\/stahnout\/\\d+\/", //linkregex
  2277. "//a[contains(@href,'multishare.cz')]", //xpath
  2278. null, //blocksize
  2279. null, //corrmatch
  2280. null, //corrreplwhat
  2281. null, //corrreplwith
  2282. "\n", //separator
  2283. "http://www.multishare.cz/link-checker/", //api url
  2284. "akce=Ov%C4%9B%C5%99it+odkazy&linky=", //postdata
  2285. /(multishare\.cz\/stahnout\/\d+)/, //linkregex
  2286. /lnkch-ok\">.*?\s*<\/p>/g, //liveregex
  2287. /lnkch-del\">.*?\s*<\/p>/g, //deadregex
  2288. null, //unavaregex
  2289. null //function delegate
  2290. )
  2291. }
  2292. if (GM_getValue("Check_netload_dot_in_links", false))
  2293. {
  2294. addHost(
  2295. "netload", //hostname
  2296. "netload\\.in\/datei\\w{10}", //linkregex
  2297. "//a[contains(@href,'netload.in')]", //xpath
  2298. null, //blocksize
  2299. null, //corrmatch
  2300. null, //corrreplwhat
  2301. null, //corrreplwith
  2302. "\n", //separator
  2303. "http://api.netload.in/index.php?id=2", //api url
  2304. "send=Absenden&links=", //postdata
  2305. /(\w+);/, //linkregex
  2306. /\w{10,};.+?;.+?;online/g, //liveregex
  2307. /\w{10,};.+?;.+?;offline/g, //deadregex
  2308. null, //unavaregex
  2309. //netloadBulkCheck //function delegate //disabled on probation since 1.2.4.5
  2310. null //function delegate
  2311. )
  2312. }
  2313. if (GM_getValue("Check_rapidshare_dot_com_links", false))
  2314. {
  2315. addHost(
  2316. "rapidshare", //hostname
  2317. "(?:|rs\\w*\\.)rapidshare\\.com\/files\/\\d+\/", //linkregex
  2318. "//a[contains(@href,'rapidshare.com/files')]", //xpath
  2319. null, //blocksize
  2320. null, //corrmatch
  2321. null, //corrreplwhat
  2322. null, //corrreplwith
  2323. "\n", //separator
  2324. null, //api url
  2325. null, //postdata
  2326. null, //linkregex
  2327. null, //liveregex
  2328. null, //deadregex
  2329. null, //unavaregex
  2330. rapidshareBulkCheck //function delegate
  2331. )
  2332. }
  2333. if (GM_getValue("Check_mega_dot_co_dot_nz_links", false))
  2334. {
  2335. addHost(
  2336. "mega",
  2337. "mega\\.co\\.nz\/#!\\w+",
  2338. "//a[contains(@href,'mega.co.nz/')]",
  2339. 100000, //blocksize
  2340. null, //corrmatch
  2341. null, //corrreplwhat
  2342. null, //corrreplwith
  2343. null, //separator
  2344. null,
  2345. null,
  2346. null,
  2347. null,
  2348. null,
  2349. null,
  2350. megaBulkCheck //function delegate
  2351. )
  2352. }
  2353. if (GM_getValue("Check_nitrobits_dot_com_links", false))
  2354. {
  2355. addHost(
  2356. "nitrobits", //hostname
  2357. "nitrobits\\.com\/file\/\\w+", //linkregex
  2358. "//a[contains(@href,'nitrobits.com')]", //xpath
  2359. null, //blocksize
  2360. null, //corrmatch
  2361. null, //corrreplwhat
  2362. null, //corrreplwith
  2363. "\n", //separator
  2364. "http://nitrobits.com/linkchecker.php", //api url
  2365. "links=", //postdata
  2366. /nitrobits\.com\/(file\/\w+)/, //linkregex
  2367. /http:\/\/nitrobits\.com\/file\/[^<]+<\/td>\s*<td class="status(?: colored)?">\s*<span class="available/g, //liveregex
  2368. /http:\/\/nitrobits\.com\/file\/[^<]+<\/td>\s*<td class="status(?: colored)?">\s*<span class="dead/g, //deadregex
  2369. null, //unavaregex
  2370. null //function delegate
  2371. )
  2372. }
  2373. //the same as GenType2, except api url is 'https://' instead of 'http://www.' and corrmatch is not??? needed
  2374. if (GM_getValue("Check_fileparadox_dot_in_links", false))
  2375. {
  2376. addHost(
  2377. "fileparadox", //hostname
  2378. "fileparadox\\.in\/\\w+", //linkregex
  2379. "//a[contains(@href,'fileparadox.in')]", //xpath
  2380. null, //blocksize
  2381. null, // /(https?:\/\/(?:|www\\.)fileparadox\.in\/\\w+)/, //corrmatch
  2382. null, //corrreplwhat
  2383. null, //corrreplwith
  2384. null, //separator
  2385. "https://fileparadox.in/?op=checkfiles", //api url
  2386. "op=checkfiles&process=Check+URLs&list=", //postdata
  2387. new RegExp("(fileparadox\\.in\/\\w+)",""), //linkregex
  2388. new RegExp("fileparadox\\.in\/\\w+.*?<\/td>\\s*<td style=\"color:green;\">","g"), //liveregex
  2389. new RegExp("fileparadox\\.in\/\\w+.*?<\/td>\\s*<td style=\"color:red;\">","g"), //deadregex
  2390. new RegExp("fileparadox\\.in\/\\w+.*?<\/td>\\s*<td style=\"color:orange;\">","g"), //unavaregex
  2391. null //function delegate
  2392. )
  2393. }
  2394. if (GM_getValue("Check_extabit_dot_com_links", false))
  2395. {
  2396. addHost(
  2397. "extabit", //hostname
  2398. "extabit\\.com\/file\/\\w+", //linkregex
  2399. "//a[contains(@href,'extabit.com')]", //xpath
  2400. null, //blocksize
  2401. null, //corrmatch
  2402. null, //corrreplwhat
  2403. null, //corrreplwith
  2404. "\n", //separator
  2405. "http://extabit.com/linkchecker.jsp", //api url
  2406. "url=", //postdata
  2407. /extabit\.com\/(file\/\w+)/, //linkregex
  2408. /extabit\.com\/file\/\w+\/[^<]+<\/a><\/td>\s*<td class="status"><span class="status_green">/g, //liveregex
  2409. /extabit\.com\/file\/\w+\/[^<]+<\/a><\/td>\s*<td class="status"><span class="status_red">/g, //deadregex
  2410. /extabit\.com\/file\/\w+\/[^<]+<\/a><\/td>\s*<td class="status"><span class="status_yellow">/g, //unavaregex
  2411. extabitBulkCheck //function delegate
  2412. )
  2413. }
  2414. if (GM_getValue("Check_junocloud_dot_me_links", false))
  2415. {
  2416. addHost(
  2417. "junocloud", //hostname
  2418. "junocloud\\.me\/\\w+", //linkregex
  2419. "//a[contains(@href,'junocloud.me')]", //xpath
  2420. null, //blocksize
  2421. null, //corrmatch
  2422. null, //corrreplwhat
  2423. null, //corrreplwith
  2424. "\n", //separator
  2425. "http://junocloud.me/checkfiles.html", //api url
  2426. "op=checkfiles&process=Check+URLs&list=", //postdata
  2427. /(junocloud\.me\/\w+)/, //linkregex
  2428. /<a href="http:\/\/junocloud\.me\/\w+[^<]+<\/a>\s*<span style="color: green/g, //liveregex
  2429. /<a href="http:\/\/junocloud\.me\/\w+[^<]+<\/a>\s*<span style="color: red/g, //deadregex
  2430. null, //unavaregex
  2431. null //function delegate
  2432. )
  2433. }
  2434. if (GM_getValue("Check_webshare_dot_cz_links", false))
  2435. {
  2436. addHost(
  2437. "webshare", //hostname
  2438. "webshare\.cz\/(?:(?:#/)?file/\\w+|\\w+-.*)", //linkregex
  2439. "//a[contains(@href,'webshare.cz')]", //xpath
  2440. 100000, //blocksize
  2441. null, //corrmatch
  2442. null, //corrreplwhat
  2443. null, //corrreplwith
  2444. null, //separator
  2445. null, //api url
  2446. null, //postdata
  2447. null, //linkregex
  2448. null, //liveregex
  2449. null, //deadregex
  2450. null, //unavaregex
  2451. webshareBulkCheck //function delegate
  2452. )
  2453. }
  2454. /////////////////////////////
  2455. // Common function delegate to send links to get checked by host linkchecker
  2456. /////////////////////////////
  2457. // If you define a new delegate, you may use following properties
  2458. // this.links [array] array of strings (link blocks). The links in each block separated with host.splitSeparator.
  2459. // this.apiUrl [string] API or web linkchecker URL
  2460. // this.postData [string] POSTDATA for POST request
  2461. // this.resLiveRegex [regex] matches live substrings in the request response
  2462. // this.resDeadRegex [regex] matches dead substrings in the request response
  2463. // this.resUnavaRegex [regex] matches unava substrings in the request response (the regex is often null!)
  2464. //
  2465. // this.resLinkRegex [regex] matches links further passed to DisplayTheCheckedLinks
  2466. //
  2467. // See the code below for standard bulkcheck handling reference.
  2468. //////////////////////////////
  2469. function genBulkCheck()
  2470. {
  2471. var blockIdx = this.links.length;
  2472. while (blockIdx--)
  2473. {
  2474. postRequest(this.apiUrl, this.postData, this.links[blockIdx],
  2475. this.resLinkRegex, this.resLiveRegex, this.resDeadRegex, this.resUnavaRegex);
  2476. }
  2477. function postRequest(api, postData, links, linkRegex, liveRegex, deadRegex, unavaRegex)
  2478. {
  2479. GM_xmlhttpRequest(
  2480. {
  2481. method: 'POST',
  2482. url: api,
  2483. headers: {
  2484. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  2485. 'Content-type': 'application/x-www-form-urlencoded',
  2486. 'Referer': api,
  2487. 'X-Requested-With': 'XMLHttpRequest'
  2488. },
  2489. data: postData + encodeURIComponent(links),
  2490. onload: function (result)
  2491. {
  2492. var res = result.responseText;
  2493. // GM_log(res);
  2494. var i;
  2495.  
  2496. var livelinks = res.match(liveRegex);
  2497. var deadlinks = res.match(deadRegex);
  2498. // GM_log(livelinks);
  2499. // GM_log(deadlinks);
  2500. if (livelinks != null)
  2501. {
  2502. i = livelinks.length - 1;
  2503. do
  2504. {
  2505. livelinks[i] = livelinks[i].match(linkRegex)[1];
  2506. }
  2507. while (i--);
  2508. DisplayTheCheckedLinks(livelinks, 'alive_link');
  2509. }
  2510.  
  2511. if (deadlinks != null)
  2512. {
  2513. i = deadlinks.length - 1;
  2514. do
  2515. {
  2516. deadlinks[i] = deadlinks[i].match(linkRegex)[1];
  2517. }
  2518. while (i--);
  2519. DisplayTheCheckedLinks(deadlinks, 'adead_link');
  2520. }
  2521.  
  2522. if (unavaRegex != null)
  2523. {
  2524. var unavalinks = res.match(unavaRegex);
  2525. if (unavalinks)
  2526. {
  2527. i = unavalinks.length - 1;
  2528. do
  2529. {
  2530. unavalinks[i] = unavalinks[i].match(linkRegex)[1];
  2531. }
  2532. while (i--);
  2533. DisplayTheCheckedLinks(unavalinks, 'unava_link');
  2534. }
  2535. }
  2536. }
  2537. });
  2538. }
  2539. }
  2540. //specialized bulkchecking handlers follow
  2541. function webshareBulkCheck()
  2542. {
  2543. var arr = this.links[0].split("\r\n");
  2544. var i = arr.length;
  2545. while(i--)
  2546. {
  2547. postRequest(arr[i]);
  2548. }
  2549. //function postRequest(api, postData, links, linkRegex, liveRegex, deadRegex, unavaRegex)
  2550. function postRequest(wsLink)
  2551. {
  2552. var id = wsLink.match(/webshare\.cz\/(?:(?:#\/)?file\/)?(\w+)/)[1];
  2553. GM_xmlhttpRequest(
  2554. {
  2555. method: 'POST',
  2556. url: "http://webshare.cz/api/file_info/",
  2557. headers: {
  2558. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  2559. 'Content-type': 'application/x-www-form-urlencoded',
  2560. 'Referer': "",
  2561. },
  2562. data: "wst=&ident=" + id,
  2563. onload: function (result)
  2564. {
  2565. var res = result.responseText;
  2566. if (res.match(/<name>.+?<\/name>/))
  2567. {
  2568. DisplayTheCheckedLinks([id], 'alive_link');
  2569. }
  2570. else
  2571. {
  2572. DisplayTheCheckedLinks([id], 'adead_link');
  2573. }
  2574. }
  2575. });
  2576. }
  2577. }
  2578. //like genBulkCheck, but extabit linkchecker only works when logged in. If not logged in, non-bulk checking has to be used.
  2579. //extabit also doesn't like requests in fast succession, so some delays are added.
  2580. function extabitBulkCheck()
  2581. {
  2582. var timeoutDelay = 0;
  2583. var blockIdx = this.links.length;
  2584. while (blockIdx--)
  2585. {
  2586. postRequest(this.apiUrl, this.postData, this.links[blockIdx],
  2587. this.resLinkRegex, this.resLiveRegex, this.resDeadRegex, this.resUnavaRegex);
  2588. }
  2589. function postRequest(api, postData, links, linkRegex, liveRegex, deadRegex, unavaRegex)
  2590. {
  2591. GM_xmlhttpRequest(
  2592. {
  2593. method: 'POST',
  2594. url: api,
  2595. headers: {
  2596. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  2597. 'Content-type': 'application/x-www-form-urlencoded',
  2598. 'Referer': api,
  2599. 'X-Requested-With': 'XMLHttpRequest'
  2600. },
  2601. data: postData + encodeURIComponent(links),
  2602. onload: function (result)
  2603. {
  2604. var res = result.responseText;
  2605. if (/id="registration_header"/.test(res)) //not logged in, have to use non-bulk
  2606. {
  2607. function geturlfunc(link, tryID) //basically the geturl function with some changes (compacted, displaythecheckedlinkS, multiple tries)
  2608. {
  2609. //GM_log(tryID + ': ' + link);
  2610. GM_xmlhttpRequest(
  2611. {
  2612. method: 'GET',
  2613. url: link,
  2614. 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': ""},
  2615. onload: function(result2)
  2616. {
  2617. var res2 = result2.responseText;
  2618. var res2Status = result.status;
  2619. if (/download-file-btn/.test(res2)) {DisplayTheCheckedLinks([link], 'alive_link'); return;}
  2620. if (/Search mirrors|id="mirrb"/.test(res2) || res2Status==404) {DisplayTheCheckedLinks([link], 'adead_link'); return;}
  2621. if (/currently unavailable|temporarily unavailable|disponible en estos momentos|vorläufig unerreichbar|Файл временно недоступен/.test(res2) || res2Status == 500 || res2Status == 503)
  2622. {
  2623. if (tryID < 7)
  2624. setTimeout(function(){geturlfunc(link,tryID+1)}, tryID * 1000 + (Math.random() * tryID * 2000));
  2625. else
  2626. {DisplayTheCheckedLinks([link], 'unava_link'); return;}
  2627. }
  2628. }
  2629. });
  2630. }
  2631. //split the hrefs and check them one by one
  2632. GM_log('Using slow extabit.com link checking. Log in to extabit to use fast bulk checking.');
  2633. links = links.split('\n');
  2634. var i = links.length;
  2635. while (i--)
  2636. {
  2637. if (links[i])
  2638. {
  2639. (function(i){setTimeout(function(){geturlfunc(links[i],1)}, timeoutDelay);})(i);
  2640. timeoutDelay += 500;
  2641. }
  2642. }
  2643. return;
  2644. }
  2645. // GM_log(res);
  2646. var i;
  2647.  
  2648. var livelinks = res.match(liveRegex);
  2649. var deadlinks = res.match(deadRegex);
  2650. // GM_log(livelinks);
  2651. // GM_log(deadlinks);
  2652. if (livelinks != null)
  2653. {
  2654. i = livelinks.length - 1;
  2655. do
  2656. {
  2657. livelinks[i] = livelinks[i].match(linkRegex)[1];
  2658. }
  2659. while (i--);
  2660. DisplayTheCheckedLinks(livelinks, 'alive_link');
  2661. }
  2662.  
  2663. if (deadlinks != null)
  2664. {
  2665. i = deadlinks.length - 1;
  2666. do
  2667. {
  2668. deadlinks[i] = deadlinks[i].match(linkRegex)[1];
  2669. }
  2670. while (i--);
  2671. DisplayTheCheckedLinks(deadlinks, 'adead_link');
  2672. }
  2673.  
  2674. if (unavaRegex != null)
  2675. {
  2676. var unavalinks = res.match(unavaRegex);
  2677. if (unavalinks)
  2678. {
  2679. i = unavalinks.length - 1;
  2680. do
  2681. {
  2682. unavalinks[i] = unavalinks[i].match(linkRegex)[1];
  2683. }
  2684. while (i--);
  2685. DisplayTheCheckedLinks(unavalinks, 'unava_link');
  2686. }
  2687. }
  2688. }
  2689. });
  2690. }
  2691. }
  2692. function netloadBulkCheck()
  2693. {
  2694. var blockIdx = this.links.length;
  2695.  
  2696. while (blockIdx--)
  2697. {
  2698. postRequest(this.apiUrl, this.postData, this.links[blockIdx],
  2699. this.resLinkRegex, this.resLiveRegex, this.resDeadRegex, this.unavaRegex);
  2700. }
  2701. function postRequest(api, postData, links, linkRegex, liveRegex, deadRegex, unavaRegex)
  2702. {
  2703. GM_xmlhttpRequest(
  2704. {
  2705. method: 'POST',
  2706. url: api,
  2707. headers: {
  2708. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  2709. 'Content-type': 'application/x-www-form-urlencoded',
  2710. 'Referer': ""
  2711. },
  2712. data: postData + encodeURIComponent(links),
  2713. onload: function (result)
  2714. {
  2715. var res = result.responseText;
  2716. var i;
  2717.  
  2718. var livelinks = res.match(liveRegex);
  2719. var deadlinks = res.match(deadRegex);
  2720. // GM_log(livelinks);
  2721. // GM_log(deadlinks);
  2722. if (livelinks != null)
  2723. {
  2724. i = livelinks.length - 1;
  2725. do
  2726. {
  2727. recheckLink(livelinks[i].match(linkRegex)[1]);
  2728. }
  2729. while(i--);
  2730. }
  2731.  
  2732. if (deadlinks != null)
  2733. {
  2734. i = deadlinks.length - 1;
  2735. do
  2736. {
  2737. deadlinks[i] = deadlinks[i].match(linkRegex)[1];
  2738. }
  2739. while (i--);
  2740. DisplayTheCheckedLinks(deadlinks, 'adead_link');
  2741. }
  2742. }
  2743. });
  2744. }
  2745. function recheckLink(link)
  2746. {
  2747. var link = link;
  2748. GM_xmlhttpRequest(
  2749. {
  2750. method: 'GET',
  2751. url: 'http://netload.in/datei' + link + '.htm',
  2752. headers: {
  2753. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  2754. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  2755. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  2756. 'Referer': ""
  2757. },
  2758. onload: function (result)
  2759. {
  2760. var res = result.responseText;
  2761.  
  2762. if (res.match(/dl_first_file_download">|download_limit\.gif/))
  2763. {
  2764. DisplayTheCheckedLinks([link], 'alive_link');
  2765. return;
  2766. }
  2767.  
  2768. if (res.match(/achtung\.jpg"/))
  2769. {
  2770. DisplayTheCheckedLinks([link], 'adead_link');
  2771. }
  2772. },
  2773. onerror: function ()
  2774. {
  2775. displayTheCheckedLink(link, 'unava_link');
  2776. }
  2777. });
  2778. }
  2779. }
  2780. function rapidshareBulkCheck()
  2781. {
  2782. var rsBlock = this.links.length - 1;
  2783. do //while(allLength--);
  2784. {
  2785. var LinksTodo = this.links[rsBlock].split("\n");
  2786.  
  2787. if (LinksTodo.length < 1)
  2788. {
  2789. return false;
  2790. }
  2791.  
  2792. var fileids = "";
  2793. var filenames = "";
  2794. for (x in LinksTodo)
  2795. {
  2796. var eintrag = LinksTodo[x];
  2797. var logregex = /files\/(\d{5,})\/(\S*)/;
  2798. var teile = logregex.exec(eintrag);
  2799. if ((null != teile) && (null != teile[1]) && (null != teile[2]) && (teile[1] != '') && (teile[2] != ''))
  2800. {
  2801. fileids += "," + teile[1];
  2802. filenames += "," + teile[2];
  2803. }
  2804. }
  2805. fileids = fileids.substr(1);
  2806. filenames = filenames.substr(1);
  2807. filenames = filenames.replace(/\&/g, '%26');
  2808. var apirapidshareurl = "https://api.rapidshare.com/cgi-bin/rsapi.cgi?sub=checkfiles&files=" + fileids + "&filenames=" + filenames + "&cbf=RSAPIDispatcher&cbid=3";
  2809. GM_xmlhttpRequest(
  2810. {
  2811. method: "GET",
  2812. url: apirapidshareurl,
  2813. headers: {
  2814. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  2815. 'Content-type': 'text/html',
  2816. 'Referer': ""
  2817. },
  2818. onload: function (result)
  2819. {
  2820. var res = result.responseText;
  2821. res = res.replace(/\\n/g, "\n");
  2822.  
  2823. var i;
  2824. var rsRegex = /(fileid|\d{5,}),/;
  2825.  
  2826. var livelinks = res.match(/\d{5,},.*?,\d+,\w*,(?:1|3|51),/g);
  2827. var deadlinks = res.match(/\d{5,},.*?,\d+,\w*,(?:0|4|5|59),/g)
  2828.  
  2829. if (deadlinks)
  2830. {
  2831. i = deadlinks.length - 1;
  2832. do
  2833. {
  2834. deadlinks[i] = deadlinks[i].match(rsRegex)[1];
  2835. }
  2836. while (i--);
  2837.  
  2838. DisplayTheCheckedLinks(deadlinks, 'adead_link');
  2839. }
  2840. if (livelinks)
  2841. {
  2842. i = livelinks.length - 1;
  2843. do
  2844. {
  2845. livelinks[i] = livelinks[i].match(rsRegex)[1];
  2846. }
  2847. while (i--);
  2848. DisplayTheCheckedLinks(livelinks, 'alive_link');
  2849. }
  2850. }
  2851. });
  2852. }
  2853. while (rsBlock--);
  2854. }
  2855. function megaBulkCheck()
  2856. {
  2857. var arr = this.links[0].split("\r\n");
  2858. var i = arr.length;
  2859. var seqno = Math.floor(Math.random()*1000000000);
  2860. while(i--)
  2861. {
  2862. postRequest(arr[i]);
  2863. }
  2864. function postRequest(megaLink)
  2865. {
  2866. var id = megaLink.match(/mega\.co\.nz\/#!(\w+)(?:!\w+)?/)[1];
  2867. GM_xmlhttpRequest(
  2868. {
  2869. method: "POST",
  2870. url: 'https://g.api.mega.co.nz/cs?id=' + seqno++,
  2871. data: '[{"a":"g","p":"' + id + '","ssl": "1"}]',
  2872. headers: {
  2873. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  2874. 'Content-Type': 'application/xml',
  2875. 'Referer': "https://mega.co.nz/"
  2876. },
  2877. onload: function (result)
  2878. {
  2879. var res = $.parseJSON(result.responseText.match(/\[(.+?)\]/)[1]);
  2880. if ((typeof res == "number" && (res == -9 || res == -16 || res == -6)) || res.d)
  2881. {
  2882.  
  2883. DisplayTheCheckedLinks([id], 'adead_link');
  2884. }
  2885. if (res.at)
  2886. {
  2887. DisplayTheCheckedLinks([id], 'alive_link');
  2888. }
  2889. if (res.e == "ETEMPUNAVAIL")
  2890. {
  2891. DisplayTheCheckedLinks([id], 'unava_link');
  2892. }
  2893. }
  2894. });
  2895. }
  2896.  
  2897. }
  2898. function linksaveBulkCheck()
  2899. {
  2900. var arr = this.links[0].split("\r\n");
  2901. var i = arr.length;
  2902. while(i--)
  2903. {
  2904. postRequest(arr[i]);
  2905. }
  2906. function postRequest(lsLink)
  2907. {
  2908. GM_xmlhttpRequest(
  2909. {
  2910. method: "GET",
  2911. url: lsLink + '-t.jpg',
  2912. headers: {
  2913. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  2914. 'Accept': 'text/xml',
  2915. 'Referer': ""
  2916. },
  2917. onload: function (result)
  2918. {
  2919. var imgLen = result.responseHeaders.match(/Content-Length: (\d+)/)[1];
  2920. if (imgLen == 965) //online
  2921. {
  2922. DisplayTheCheckedLinks([lsLink], 'alive_link');
  2923. }
  2924.  
  2925. if (imgLen == 972) //offline
  2926. {
  2927. DisplayTheCheckedLinks([lsLink], 'adead_link');
  2928. }
  2929. if (imgLen == 978) //unava
  2930. {
  2931. DisplayTheCheckedLinks([lsLink], 'unava_link');
  2932. }
  2933. }
  2934. });
  2935. }
  2936.  
  2937. }
  2938. function linkcryptBulkCheck()
  2939. {
  2940. var arr = this.links[0].split("\r\n");
  2941. var i = arr.length;
  2942. while(i--)
  2943. {
  2944. postRequest(arr[i]);
  2945. }
  2946. function postRequest(lcLink)
  2947. {
  2948. GM_xmlhttpRequest(
  2949. {
  2950. method: "GET",
  2951. url: 'http://linkcrypt.ws/api.html?api=status_V1&folderKey=' + lcLink.match(/dir\/(\w+)/)[1],
  2952. headers: {
  2953. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  2954. 'Accept': 'text/xml',
  2955. 'Referer': ""
  2956. },
  2957. onload: function (result)
  2958. {
  2959. var res = result.responseText;
  2960. if (res.match(/<errorCode>1101|folderStatus>[23]/)) //Offline status
  2961. {
  2962. DisplayTheCheckedLinks([lcLink], 'adead_link');
  2963. return;
  2964. }
  2965. if (res.match(/folderStatus>1/)) //Online status
  2966. {
  2967. DisplayTheCheckedLinks([lcLink], 'alive_link');
  2968. }
  2969. else
  2970. {
  2971. DisplayTheCheckedLinks([lcLink], 'unava_link');
  2972. }
  2973. }
  2974. });
  2975. }
  2976. }
  2977. function depositfilesBulkCheck()
  2978. {
  2979. var arr = this.links[0].split("\r\n");
  2980. var i = arr.length;
  2981. while(i--)
  2982. {
  2983. postRequest(arr[i]);
  2984. }
  2985. function postRequest(dfLink)
  2986. {
  2987. //var id = dfLink.match(/depositfiles\.com\/(?:en\/|ru\/|de\/|es\/|pt\/|)files\/(\w+)/)[1];
  2988. var id = dfLink.match(/\/files\/(\w+)/)[1];
  2989. GM_xmlhttpRequest(
  2990. {
  2991. method: "POST",
  2992. url: 'http://depositfiles.com/api/get_download_info.php?id=' + id + "&format=json",
  2993. headers: {
  2994. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  2995. 'Content-Type': 'application/x-www-form-urlencoded',
  2996. 'Referer': ""
  2997. },
  2998. onload: function (result)
  2999. {
  3000. var res = result.responseText;
  3001. if (res.match(/"(?:no_file|file_ban)"/))
  3002. {
  3003. DisplayTheCheckedLinks(["files/" + id], 'adead_link');
  3004. return;
  3005. }
  3006.  
  3007. if (res.match('"download_li(?:nk|mit)|password_check"'))
  3008. {
  3009. DisplayTheCheckedLinks(["files/" + id], 'alive_link');
  3010. }
  3011. }
  3012. });
  3013. }
  3014. }
  3015. function megashareBulkCheck()
  3016. {
  3017. var arr = this.links[0].split("\r\n");
  3018. var i = arr.length;
  3019. while(i--)
  3020. {
  3021. postRequest(arr[i]);
  3022. }
  3023. function postRequest(msLink)
  3024. {
  3025. GM_xmlhttpRequest(
  3026. {
  3027. method: "GET",
  3028. url: msLink,
  3029. headers: {
  3030. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3031. 'Content-Type': 'application/x-www-form-urlencoded',
  3032. 'Referer': ""
  3033. },
  3034. onload: function (result)
  3035. {
  3036. var prZVal = result.responseText.match(/name="(\d+prZVal)" value="(\d+)">/);
  3037. var btn3Name = result.responseText.match(/src="images\/dwn-btn3\.gif" name="(.+?)"/);
  3038. if ((prZVal == null) || (btn3Name == null))
  3039. {
  3040. return;
  3041. }
  3042. GM_xmlhttpRequest(
  3043. {
  3044. method: "POST",
  3045. url: msLink,
  3046. headers: {
  3047. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3048. 'Content-Type': 'application/x-www-form-urlencoded',
  3049. 'Referer': ""
  3050. },
  3051. data: prZVal[1] + "=" + prZVal[2] + '&' + btn3Name[1] + '.x=1&' + btn3Name[1] + '.y=1',
  3052. onload: function (result)
  3053. {
  3054. var res = result.responseText;
  3055. if (res.match(/<div id="err">/))
  3056. {
  3057. DisplayTheCheckedLinks([msLink.match(/\.com(\/\d+)/)[1]], 'adead_link');
  3058. }
  3059. else
  3060. {
  3061. DisplayTheCheckedLinks([msLink.match(/\.com(\/\d+)/)[1]], 'alive_link');
  3062. }
  3063. }
  3064. });
  3065. }
  3066. });
  3067. }
  3068. }
  3069. function ncryptBulkCheck()
  3070. {
  3071. var arr = this.links[0].split("\r\n");
  3072. var i = arr.length;
  3073. while(i--)
  3074. {
  3075. postRequest(arr[i]);
  3076. }
  3077. function postRequest(ncryptLink)
  3078. {
  3079. GM_xmlhttpRequest(
  3080. {
  3081. method: "POST",
  3082. url: 'http://ncrypt.in/api_status.php',
  3083. headers: {
  3084. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3085. 'Content-Type': 'application/x-www-form-urlencoded',
  3086. 'Referer': ""
  3087. },
  3088. data: 'link=' + encodeURI(ncryptLink),
  3089. onload: function (result)
  3090. {
  3091. var foldStatus = result.responseText.match(/(?:offline|online);/);
  3092. switch(foldStatus + ""){
  3093. case "offline;": DisplayTheCheckedLinks([ncryptLink], 'adead_link'); break;
  3094. case "online;": DisplayTheCheckedLinks([ncryptLink], 'alive_link'); break;
  3095. default: DisplayTheCheckedLinks([ncryptLink], 'unava_link');
  3096. }
  3097. }
  3098. });
  3099. }
  3100. }
  3101. function hellshareBulkCheck()
  3102. {
  3103. var links = this.links;
  3104. GM_xmlhttpRequest(
  3105. {
  3106. method: "GET",
  3107. url: 'http://www.hellshare.com',
  3108. headers: {
  3109. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3110. 'Accept': 'text/xml',
  3111. 'Referer': ""
  3112. },
  3113. onload: function (result)
  3114. {
  3115. var domain = result.responseText.match(/param_rau = "www\.hellshare\.(\w+)"/)[1];
  3116.  
  3117. var loc = 'check=Zkontrolovat+dostupnost+soubor%C5%AF&links=';
  3118. if (domain == 'sk')
  3119. loc = 'check=Skontrolova%C5%A5&links=';
  3120. if (domain == 'com')
  3121. loc = 'check=Check+availability&links=';
  3122. if (domain == 'hu')
  3123. loc = 'check=Kontrol%C3%A1lj&links=';
  3124. if (domain == 'pl')
  3125. loc = 'check=Sprawd%C5%BC+dost%C4%99pno%C5%9B%C4%87+plik%C3%B3w&links=';
  3126.  
  3127. genBulkCheck.call({ links: links,
  3128. apiUrl: 'http://www.hellshare.' + domain + '/linkchecker?do=linkChecker-linkcheckerform-submit',
  3129. postData: loc,
  3130. resLinkRegex: /hellshare\.(?:cz|com|sk|hu|pl)\/(?:[\w-\.]+\/|)([\w-\.]+\/\d{5,})/,
  3131. 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,
  3132. resDeadRegex: /<span style="color:gray">.*?<\/span> - <strong>/g,
  3133. resUnavaRegex: null
  3134. });
  3135. }
  3136. });
  3137. }
  3138. /**
  3139. * Displays check result
  3140. * @param {Array} Array of links or link fragments.
  3141. * @param {String} Check result status -> ['alive_link'|'adead_link'|'unava_link']
  3142. */
  3143. function DisplayTheCheckedLinks(links, resultStatus)
  3144. {
  3145. //(a[href*=link_1], a[href*=link_2], ..., a[href*=link_n])
  3146. var $links = $('a[href*="' + links.join('"], a[href*="') + '"]');
  3147. if (Do_not_linkify_DL_links)
  3148. { //TODO into separate jQuery function
  3149. $links.replaceWith(function(){
  3150. return '<span href="' + this.href + '">' + $(this).text() + '</span>';
  3151. });
  3152. $links = $('span[href*="' + links.join('"], span[href*="') + '"]');
  3153. }
  3154. $links.removeClass().addClass(resultStatus);
  3155. $links.each(function() {
  3156. this.href = Ref_anonymize_service + $(this).attr("href");
  3157. });
  3158. switch(resultStatus)
  3159. {
  3160. case "alive_link": cLinksAlive += $links.length;
  3161. if (Display_tooltip_info) $links.mouseover(displayTooltipInfo);
  3162. break;
  3163. case "adead_link": cLinksDead += $links.length;
  3164. if (Display_tooltip_info) $links.mouseover(displayTooltipError);
  3165. break;
  3166. case "unava_link": cLinksUnava += $links.length; break;
  3167. default:
  3168. }
  3169. cLinksProcessed += $links.length;
  3170. }
  3171. }
  3172. // starts bulkchecking
  3173. //
  3174. // params
  3175. // filterId [string] restricts link detection with passed id attribute
  3176. function startBulkCheck(filterId)
  3177. {
  3178. var cHosts = bulkHosts.length;
  3179. if (cHosts == 0) //no filehostings selected
  3180. return;
  3181. // STEP 1 linkify the links
  3182. var linkifyRegex = '';
  3183. var hostIdx = cHosts;
  3184. while(hostIdx--)
  3185. {
  3186. linkifyRegex += bulkHosts[hostIdx].linkRegex + "|";
  3187. }
  3188. linkifyRegex = linkifyRegex.replace(/\|$/, '');
  3189. linkify(linkifyRegex);
  3190. //
  3191. //STEP 2 detect link objects
  3192. var xpathAll = '';
  3193. var hostIdx = cHosts;
  3194. while(hostIdx--)
  3195. {
  3196. xpathAll += bulkHosts[hostIdx].xpath + "|";
  3197. }
  3198. xpathAll = xpathAll.replace(/\]\|\/\/a\[/g, " or ");
  3199. xpathAll = xpathAll.replace(/\]\|/, ')]');
  3200. if (filterId != null) //insert id restriction in the xpath
  3201. {
  3202. xpathAll = xpathAll.replace(/\[/, "[@class='" + filterId + "' and (");
  3203. }
  3204. else
  3205. {
  3206. xpathAll = xpathAll.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  3207. }
  3208. // GM_log(filterId);
  3209. // GM_log(xpathAll);
  3210. var links = document.evaluate(xpathAll, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  3211. if (filterId == null)
  3212. {
  3213. cLinksTotal += links.snapshotLength;
  3214. }
  3215. //
  3216. //STEP 3 bind links with hostings
  3217. var linkIdx = links.snapshotLength;
  3218. var href = null;
  3219. if (linkIdx == 0) // no links found
  3220. return;
  3221. var name;
  3222. while (linkIdx--)
  3223. {
  3224. href = links.snapshotItem(linkIdx).href;
  3225. try // DO NOT REMOVE, filters crap that went through xpath detection
  3226. {
  3227. name = gimmeHostName(href);
  3228. if (href.match(bulkHostNames[name].linkRegexObject) != null)
  3229. bulkHostNames[name].links.push(href);
  3230. }
  3231. catch(e)
  3232. {
  3233. // GM_log(href);
  3234. // GM_log(gimmeHostName(href));
  3235. // GM_log(e.message);
  3236. }
  3237. }
  3238. //
  3239. //STEP 4 process the links for each filehosting
  3240. var hostIdx = cHosts;
  3241. var host;
  3242. var m,n;
  3243. var arr;
  3244. while (hostIdx--)
  3245. {
  3246. host = bulkHosts[hostIdx];
  3247. arr = host.links;
  3248. if (arr.length == 0) //no links for this hosting, skip
  3249. {
  3250. continue;
  3251. }
  3252. //links match corrections
  3253. if (host.corrMatch != null)
  3254. {
  3255. var idx = arr.length;
  3256. while (idx--)
  3257. {
  3258. arr[idx] = arr[idx].match(host.corrMatch)[1];
  3259. }
  3260. }
  3261. //links replace corrections
  3262. if ((host.corrReplWhat != null) && (host.corrReplWith != null))
  3263. {
  3264. var idx = arr.length;
  3265. while (idx--)
  3266. {
  3267. arr[idx] = arr[idx].replace(host.corrReplWhat, host.corrReplWith);
  3268. }
  3269. }
  3270. m = arr.length;
  3271. n = host.blockSize;
  3272. if (m > n)
  3273. {
  3274. //insert block separators (RAND_STRING) into the array
  3275. for(var i = n; i < m; i += n + 1)
  3276. {
  3277. arr.splice(i, 0, RAND_STRING);
  3278. }
  3279. }
  3280. // GM_log(arr.join(host.splitSeparator).split(RAND_STRING));
  3281. // GM_log(host.func.toString());
  3282. host.func.call({ links: arr.join(host.splitSeparator).split(RAND_STRING),
  3283. apiUrl: host.apiUrl,
  3284. postData: host.postData,
  3285. resLinkRegex: host.resLinkRegex,
  3286. resLiveRegex: host.resLiveRegex,
  3287. resDeadRegex: host.resDeadRegex,
  3288. resUnavaRegex: host.resUnavaRegex
  3289. });
  3290. //clean up
  3291. arr.length = 0;
  3292. }
  3293. //
  3294.  
  3295. function gimmeHostName(link)
  3296. {
  3297. return link.replace(/https?:\/\/.*?http(s)?:\/\//, "http$1://").match(/https?:\/\/(?:www\.|[\w\.])*?([\w-]+)\.(?:co\.uk|\w+)\//)[1];
  3298. }
  3299. }
  3300. function checkLinks(filterId)
  3301. {
  3302. startBulkCheck(filterId);
  3303. start(filterId);
  3304. }
  3305.  
  3306. /**
  3307. * Initialises progress box including event binding and CSS
  3308. */
  3309. function initProgressBox()
  3310. {
  3311. if ($("#warlc-progressbox").length > 0)
  3312. return;
  3313. //progressbox css
  3314. GM_addStyle("#warlc-progressbox {position:fixed; background:" + Progress_box_background_color +
  3315. "; opacity:" + (Progress_box_opacity / 100) +
  3316. "; bottom:" + Progress_box_pos_bottom +
  3317. "px; right:" + Progress_box_pos_right +
  3318. "px; padding:5px; font-size:10px; font-weight:bold; cursor:default;}\
  3319. \
  3320. .warlc-progressbar {text-align:center; color: dimGrey; height:2px; margin-bottom:2px;}\
  3321. \
  3322. .warlc-progressitem {}\
  3323. \
  3324. .alive {color: " + Live_links_color +
  3325. "; background:transparent url(" + alive_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;} .dead {color:" + Dead_links_color +
  3326. "; background:transparent url(" + adead_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;} .unava {color: " + Temp_unavailable_links_color +
  3327. "; background:transparent url(" + unava_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;} .processing {color: " + Container_links_color +
  3328. "; background:transparent url(" + prem_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;} .prem {color:" + Premium_links_color +
  3329. "; background:transparent url(" + processing_link_gif + ") no-repeat scroll 100% 50%;padding-right:15px;}"
  3330. );
  3331. //
  3332. $('body').append(' <div id="warlc-progressbox">\
  3333. <div class="warlc-progressbar"></div>\
  3334. <span class="warlc-progressitem alive"></span> - \
  3335. <span class="warlc-progressitem dead"></span> - \
  3336. <span class="warlc-progressitem unava"></span> - \
  3337. <span class="warlc-progressitem prem"></span> - \
  3338. <span class="warlc-progressitem processing"></span>\
  3339. </div>');
  3340. $('#warlc-progressbox').hide().click(function(){
  3341. clearInterval(intervalId);
  3342. $(this).hide();
  3343. return false;
  3344. });
  3345. $(".warlc-progressbar").progressbar({complete: function(){
  3346. $(this).fadeOut();
  3347. clearInterval(intervalId); //stop refreshing the stats
  3348. }
  3349. })
  3350. .one('progressbarchange', function(){$('#warlc-progressbox').show();});
  3351. }
  3352. /**
  3353. * Updates progress data in progress box
  3354. */
  3355. function updateProgress()
  3356. {
  3357. if (cLinksTotal) // some links were detected on page
  3358. {
  3359. var percProgress = Math.round(((100 / cLinksTotal) * cLinksProcessed));
  3360. var $progressItems = $('#warlc-progressbox > .warlc-progressitem');
  3361. $(".warlc-progressbar").progressbar('option', 'value', percProgress);
  3362. $progressItems.first().text(cLinksAlive)
  3363. .next().text(cLinksDead)
  3364. .next().text(cLinksUnava)
  3365. .next().text(cLinksprem)
  3366. .next().text(cLinksTotal - cLinksProcessed);
  3367. }
  3368. }
  3369.  
  3370. function check_all_links()
  3371. {
  3372. add_WARLC_style();
  3373.  
  3374. if (Show_progress_stats)
  3375. {
  3376. initProgressBox();
  3377. intervalId = setInterval(function(){updateProgress();}, Progress_box_refresh_rate);
  3378. }
  3379.  
  3380. startBulkCheck(null);
  3381. start(null);
  3382.  
  3383. if (!containers_processed)
  3384. {
  3385. processContainers();
  3386. }
  3387. }
  3388.  
  3389. //Copies all found dead links to clipboard - right now for Scriptish only
  3390. function copy_dead_to_clipboard()
  3391. {
  3392. initClipBoardTools();
  3393.  
  3394. var deadlinksxpath = "//.[@class='adead_link']";
  3395.  
  3396. var foundlinks = document.evaluate(deadlinksxpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  3397. var foundlinkstext = '';
  3398.  
  3399. var foundlinkIdx = foundlinks.snapshotLength;
  3400.  
  3401. while(foundlinkIdx--)
  3402. {
  3403. if (foundlinks.snapshotItem(foundlinkIdx).innerHTML != ' x')
  3404. foundlinkstext += foundlinks.snapshotItem(foundlinkIdx).innerHTML.replace(/\[\/hide:\w+\]/,"") + '\n';
  3405. }
  3406.  
  3407. unsafeWindow.copyToClipboard(foundlinkstext);
  3408. }
  3409.  
  3410. function toggle_autocheck()
  3411. {
  3412. var currentState = GM_getValue("Autocheck", false);
  3413. GM_setValue("Autocheck", !currentState);
  3414.  
  3415. if (currentState == true)
  3416. {
  3417. sendMessage('Autocheck disabled', 'red');
  3418. }
  3419. else
  3420. {
  3421. sendMessage('Autocheck enabled', 'SpringGreen');
  3422. }
  3423. }
  3424. function toggle_Enable_Anonymizer()
  3425. {
  3426. var currentState = GM_getValue("Enable_Anonymizer", false);
  3427. GM_setValue("Enable_Anonymizer", !currentState);
  3428.  
  3429. if (currentState == true)
  3430. {
  3431. GM_setValue("Ref_anonymize_service", "");
  3432. sendMessage('Anonymizer Disabled', 'red');
  3433. }
  3434. else
  3435. {
  3436. GM_setValue("Ref_anonymize_service", "http://hiderefer.com/?");
  3437. sendMessage('Anonymizer Enabled', 'SpringGreen');
  3438. }
  3439. }
  3440.  
  3441. function KeyDownHandler(event)
  3442. {
  3443. var kcode = (event.keyCode) ? event.keyCode : event.which;
  3444. if (event.ctrlKey && event.altKey)
  3445. {
  3446. switch(kcode)
  3447. {
  3448. case 65 : check_all_links(); break;
  3449. case 67 : configuration(); break;
  3450. case 68 : copy_dead_to_clipboard(); break;
  3451. case 87 : toggle_autocheck(); break;
  3452. case 90 : toggle_Enable_Anonymizer(); break;
  3453. }
  3454. }
  3455. }
  3456.  
  3457. //
  3458. //
  3459. // SCRIPT EXECUTION START POINT
  3460. //
  3461. //
  3462. // Safari specific GM_getResourceText override
  3463. if (navigator.userAgent.indexOf('Safari') != -1 && navigator.userAgent.indexOf('Chrome') == -1)
  3464. {
  3465. GM_getResourceText = function(res) {
  3466. var $cssText = GM_getValue("jquery_css", "");
  3467. if ($cssText == "")
  3468. {
  3469. GM_xmlhttpRequest(
  3470. {
  3471. method: 'GET',
  3472. url: 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css',
  3473. onload: function (result)
  3474. {
  3475. GM_setValue("jquery_css", result.responseText);
  3476. window.location.reload();
  3477. }
  3478. });
  3479. }
  3480. else
  3481. {
  3482. return $cssText;
  3483. }
  3484. }
  3485. }
  3486. var jQueryUICSS = GM_getResourceText("jQueryUICSS");
  3487. GM_addStyle(jQueryUICSS);
  3488. //init the stuff
  3489. setVariables();
  3490. initBulkCheck();
  3491. //init info boxes
  3492. messageBox.style.position = 'fixed';
  3493. messageBox.style.top = '20px';
  3494. messageBox.style.left = '10px';
  3495. messageBox.style.opacity = '0.85';
  3496. messageBox.style.background = 'DimGray';
  3497. messageBox.style.fontSize = '36px';
  3498. document.body.appendChild(messageBox);
  3499.  
  3500. //register GM menu commands & keyboard shortcut event handler
  3501. if (Keyboard_functions)
  3502. {
  3503. $(document).keydown(KeyDownHandler);
  3504. GM_registerMenuCommand("[W.A.R. Links Checker] Configuration (" + first_key_keycodename + "+" + second_key_keycodename + "+" + String.fromCharCode(CONFIGURATION_KEYCODE) + ")", configuration);
  3505. 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);
  3506. }
  3507. else
  3508. {
  3509. GM_registerMenuCommand("[W.A.R. Links Checker] Configuration", configuration);
  3510. GM_registerMenuCommand("[W.A.R. Links Checker] Check The Links In This Page", check_all_links);
  3511. }
  3512.  
  3513. //start linkchecking
  3514. if (Autocheck)
  3515. {
  3516. $(document).ready(check_all_links);
  3517. }
  3518.  
  3519. //
  3520. //
  3521. // SCRIPT EXECUTION END POINT
  3522. //
  3523. //
  3524.  
  3525. //shows configuration box
  3526. function configuration()
  3527. {
  3528.  
  3529. //prevent multiple creating of config window
  3530. if ($("#hideshow").length)
  3531. {
  3532. $("#hideshow").show();
  3533. return;
  3534. }
  3535.  
  3536. var configcss = '\
  3537. .popup_block .popup fieldset{\
  3538. padding: 1%;\
  3539. border-style: solid;\
  3540. border-width: 1px;\
  3541. border-color: gray;\
  3542. margin-bottom: 1px;\
  3543. }\
  3544. #h3hideshowtitle{\
  3545. font-size: 2em;\
  3546. }\
  3547. #h3hideshow{\
  3548. font-size: 1.5em;\
  3549. }\
  3550. #imghideshow {\
  3551. border: none;\
  3552. }\
  3553. #plusimage{\
  3554. display:inline;\
  3555. }\
  3556. #hideshow {\
  3557. position: fixed;\
  3558. width: 100%;\
  3559. height: 100%;\
  3560. top: 0;\
  3561. left: 0;\
  3562. font-size:12px;\
  3563. z-index:2147483645;\
  3564. text-align:left;\
  3565. }\
  3566. #fade {\
  3567. background: #000;\
  3568. position: fixed;\
  3569. width: 100%;\
  3570. height: 100%;\
  3571. opacity: .80;\
  3572. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";\
  3573. left: 0;\
  3574. z-index: 10;\
  3575. }\
  3576. .popup_block {\
  3577. font-family:verdana;\
  3578. color:black;\
  3579. background: #ddd;\
  3580. padding: 10px 20px;\
  3581. border: 2px solid DarkOrange;\
  3582. float: left;\
  3583. width: 700px;\
  3584. position: absolute;\
  3585. top: 7%;\
  3586. left: 50%;\
  3587. bottom: 7%;\
  3588. margin: 0 0 0 -350px;\
  3589. -moz-border-radius:10px;\
  3590. z-index: 100;\
  3591. \
  3592. }\
  3593. .popup_block .popup {\
  3594. float: left;\
  3595. width: 100%;\
  3596. background: #fff;\
  3597. margin: 10px 0;\
  3598. padding: 0px 0 0px;\
  3599. border-left: 1px solid #bbb;\
  3600. border-top: 1px solid #bbb;\
  3601. border-right: 1px solid #bbb;\
  3602. }\
  3603. #h3hideshow{\
  3604. margin: 1px 0 0px;\
  3605. padding: 1px 10px;\
  3606. border-bottom: 1px solid #bbb;\
  3607. font-size: 1.5em;\
  3608. font-weight: normal;\
  3609. cursor:pointer;\
  3610. background:#DDDDDD none repeat scroll 0 0;\
  3611. }\
  3612. #h3hideshow:hover{\
  3613. background:#C0BEBE none repeat scroll 0 0;\
  3614. }\
  3615. #h3hideshowtitle{\
  3616. margin: 2px 0 0px;\
  3617. padding: 7px 10px;\
  3618. border-bottom: 1px solid #bbb;\
  3619. font-size: 1.5em;\
  3620. font-weight: normal;\
  3621. }\
  3622. .popup_block .popup a {\
  3623. color:DarkSkyBlue;\
  3624. text-decoration:none;\
  3625. }\
  3626. .popup p {\
  3627. padding: 1px 10px;\
  3628. margin: 0px 0;\
  3629. -x-system-font:none;\
  3630. font-family:verdana,geneva,lucida,"lucida grande",arial,helvetica,sans-serif;\
  3631. font-size:10pt;\
  3632. font-size-adjust:none;\
  3633. font-stretch:normal;\
  3634. font-style:normal;\
  3635. font-variant:normal;\
  3636. font-weight:normal;\
  3637. line-height:normal;\
  3638. }\
  3639. #sites {\
  3640. padding: 1px 10px;\
  3641. margin: 0px 0;display:inline-block;width:16em;\
  3642. }\
  3643. #dev_ver {\
  3644. color: #00FF00;\
  3645. background: Black;\
  3646. text-align: right;\
  3647. }\
  3648. #sites_suspended {\
  3649. padding: 1px 10px;\
  3650. margin: 0px 0;display:inline-block;width:16em;\
  3651. text-decoration: line-through;\
  3652. }\
  3653. .popup img.cntrl {\
  3654. position: absolute;\
  3655. right: -15px;\
  3656. top: -15px;\
  3657. }\
  3658. #bulk {\
  3659. font-size:8pt;\
  3660. color:orange;\
  3661. padding: 1px 10px;\
  3662. margin: 0px 0;\
  3663. display:inline-block;\
  3664. width:100px;\
  3665. }\
  3666. #note {\
  3667. font-size:7pt;\
  3668. color:gray;\
  3669. padding: 1px 10px;\
  3670. margin: 0px 0;display:inline-block;\
  3671. min-width:100px;\
  3672. }\
  3673. #rednote {\
  3674. font-size:7pt;\
  3675. color:red;\
  3676. padding: 1px 10px;\
  3677. margin: 0px 0;display:inline-block;\
  3678. }\
  3679. #configinfo {\
  3680. font-size:8pt;\
  3681. color:gray;\
  3682. padding: 1px 10px;\
  3683. margin: 0px 0;display:inline-block;width:60em;\
  3684. }\
  3685. #refAnonymizer, #inputColorLive, #inputColorprem, #hostSearchBox2, #hostSearchBox, #inputColorDead, #inputColorTemp, #inputColorCont, #selectAllButton, #selectNoneButton, #invertButton, #selectAllButton2, #selectNoneButton2, #invertButton2 {\
  3686. color:black;\
  3687. border-style: solid;\
  3688. border-width: 1px;\
  3689. border-color: gray;\
  3690. }\
  3691. #h3hideshowcontent {\
  3692. min-height:220px;\
  3693. max-height:220px;\
  3694. overflow:auto;\
  3695. display: none;\
  3696. padding: 10px 10px;\
  3697. }\
  3698. #specinfo{\
  3699. font-size:14px;\
  3700. }\
  3701. .warlc-ui-tab {\
  3702. height:300px;\
  3703. overflow:auto;\
  3704. }\
  3705. #warlcsitelist2, #warlcsitelist1 {\
  3706. height:220px;\
  3707. border-top: 1px solid #ddd;\
  3708. padding-top: 5px;\
  3709. overflow:auto;\
  3710. }\
  3711. input:hover+label {\
  3712. background:#F1F77C;\
  3713. font-size:110%;\
  3714. }\
  3715. ';
  3716.  
  3717. GM_addStyle(configcss);
  3718.  
  3719. var customRulesRefHTML =
  3720. '\
  3721. <br>\
  3722. A custom rule consists of <b>commands</b>. A command must be on its own line and in this form:<br>\
  3723. <b>@keyword</b> <i>parameter</i>\
  3724. <br><br>\
  3725. 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. \
  3726. <br><br>\
  3727. 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.\
  3728. 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.\
  3729. 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.\
  3730. 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,\
  3731. but all commands until the next valid @customrule are ignored.<br><br>\
  3732. Available forms and types:\
  3733. <ul>\
  3734. <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.\
  3735. <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.\
  3736. <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.\
  3737. <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.\
  3738. </ul>\
  3739. Other available commands:<br>\
  3740. (Note: There can be more than 1 (up to 10) of these commands per rule. In that case, any of them will work.)\
  3741. <ul>\
  3742. <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.\
  3743. It can also specify multiple (up to 10) Top Level Domains (.com, .net etc.)<br>\
  3744. <ul>examples:<br>\
  3745. <li>good: <i>filehost.com/download/</i><br>\
  3746. <li>good: <i>download.filehost.net/?d=</i><br>\
  3747. <li>good: <i>filehost. com net co.uk /</i> - multiple TLDs (note the spaces before, between and after TLDs)<br>\
  3748. <li>ok: <i>filehost.com/</i> - works, but will also find links like filehost.com/login etc. Sometimes it\'s unavoidable though.<br>\
  3749. <li>bad: <i>d8523.filehost.com/</i> - d8523 probably is not constant<br>\
  3750. <li>bad: <i>filehost.com/3bfiq5d1</i> - 3bfiq5d1 probably is not constant<br>\
  3751. <li>bad: <i>filehost.com</i> - no slash<br>\
  3752. </ul>\
  3753. \
  3754. <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.\
  3755. 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 \
  3756. &lt;div&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;p&gt; even if there are new lines, tabulators etc.\
  3757. <li><b>@deadmatch</b> <i>pattern</i> - ignored for OBSOLETE, required for others. (For HEADERS some servers return 404 Error \
  3758. 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.)\
  3759. Two spaces again match any whitespace.\
  3760. <li><b>@unavamatch</b> <i>pattern</i> - optional, ignored for OBSOLETE and HEADERS. If found, the link is deemed temporarily unavailable.\
  3761. Two spaces again match any whitespace.\
  3762. <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. \
  3763. <li><b>@deadlink</b> <i>url</i> - optional. Example dead link.\
  3764. </ul>\
  3765. \
  3766. ';
  3767.  
  3768. //close image and css taken from = http://www.sohtanaka.com/web-design/examples/css-popup icon_close.png;
  3769. var configurationinnerHTML =
  3770. '<div id="fade"></div>\
  3771. <div class="popup_block">\
  3772. <div class="popup">\
  3773. <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+Fu3Ss0RUZO8pqqos/NiDLblgcQO48/CzRpk/l9KlTp56oq6s7gL8JkzST0AespN9/Itq2Hu7xQnsbRFO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WxjRtFvDDH2JhJG4ClCo1AtUGq59tEz9q1UlGTrK2t7QL2/ATYKJsDUTUwQzZgVAKrSrI89K+dxcXFzbiJUR/K3cmTJ2nWwYNUcfQoeS+cJcdwQGZeIjuHAmV30KWGBjq/YgUtWLiQqquryWazUXt7u3/16tX7IIYbF50D+vjWwUXGJLQYlxZZDdx+v//zsrKyZtnX0ONwcAnWUygUQhtMSELeGK2HCgoKqKSkhNDZ5fj+/fvPNTU1teDvBQW/IuMWEx29g6rkYSv5zlfu8Xgae3p6fGKaD1z4N0i/xtqPALR/WgssAuawK1XNto7eaZSVVhVPl6ruM9Baiuvr6+fBzRUul2sWxPKQWA5Yqg0NDekIwfXe3t4h3EfZ10PAVWXRIMBj16VlRvFLj7smTiB1qArPxPnKcrdqpE5VG0lVEC6EYdUIgsp9ITXGc0mzaU26CGeQampTp7I4W8GlXK/R2MUxoTaOZMAk0jNv4VNe9RXpRGK7IrIrD2QS6mrzpCKfSDRK8q8AAwCF/L1ktjcKFAAAAABJRU5ErkJggg%3D%3D"/></a>\
  3774. <div id="h3hideshowtitle"><img style="height:1.2em;" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiI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iZJ5oZ3sHrgAeBvcCANzBsHu7Ohe2/AwDnNnxcIIMIUgAAAABJRU5ErkJggg=="></img>&nbsp;W.A.R. Links Checker Customized Premium Link version Configuration</div>\
  3775. <div id="warlc-conf-tabs">\
  3776. <ul>\
  3777. <li><a href="#tabs-1">Filehostings</a></li>\
  3778. <li><a href="#tabs-2">Containers</a></li>\
  3779. <li><a href="#tabs-5">Custom rules</a></li>\
  3780. <li><a href="#tabs-3">Settings</a></li>\
  3781. <li><a href="#tabs-4">About</a></li>\
  3782. </ul>\
  3783. <div id="tabs-1" class="warlc-ui-tab">\
  3784. <div class="warlc-ui-buttonset">\
  3785. <input type="button" class="warlc-ui-select-all" value="Select All">\
  3786. <input type="button" class="warlc-ui-select-none" value="Select None">\
  3787. <input type="button" class="warlc-ui-select-invert" value="Invert">\
  3788. </div><br>\
  3789. <div>Search: <input type="textbox" id="hostSearchBox" value=""></div><br>\
  3790. <div id="warlcsitelist1"><span>Empty</span></div>\
  3791. </div>\
  3792. <div id="tabs-2" class="warlc-ui-tab">\
  3793. <div class="warlc-ui-buttonset">\
  3794. <input type="button" class="warlc-ui-select-all" value="Select All">\
  3795. <input type="button" class="warlc-ui-select-none" value="Select None">\
  3796. <input type="button" class="warlc-ui-select-invert" value="Invert">\
  3797. </div><br>\
  3798. <div>Search: <input type="textbox" id="hostSearchBox2" value=""></div><br>\
  3799. <div id="warlcsitelist2"><span>Empty</span></div>\
  3800. </div>\
  3801. <div id="tabs-5" class="warlc-ui-tab">\
  3802. <div class="warlcsettings">\
  3803. <fieldset><input type="checkbox" id="Custom_rules"> Enable custom rules <div id="bulk">EXPERIMENTAL</div></fieldset>\
  3804. <br>\
  3805. <div>Edit custom rules: \
  3806. <a href="#" id="showCustomRulesReference">(<b>Click here to show/hide the reference</b>)</a>\
  3807. <div id="customRulesReference" style="display:none;">'
  3808. + customRulesRefHTML + '\
  3809. </div>\
  3810. <textarea style="width:100%;height:200px;" id="Custom_rules_text"></textarea>\
  3811. </div>\
  3812. </div>\
  3813. </div>\
  3814. <div id="tabs-3" class="warlc-ui-tab">\
  3815. <div class="warlcsettings">\
  3816. <fieldset>\
  3817. <p><input type="checkbox" id="Keyboard_functions"> Enable keyboard shortcuts</p>\
  3818. <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>\
  3819. </fieldset>\
  3820. <fieldset>\
  3821. <p><input type="checkbox" id="Color_DL_links"> Color DL links</p>\
  3822. <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>\
  3823. <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>\
  3824. <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>\
  3825. <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>\
  3826. <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>\
  3827. <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>\
  3828. <p><input type="checkbox" id="Show_line_through_in_dead_links"> Show line through in dead links</p>\
  3829. <p><input type="checkbox" id="Show_black_background_in_DL_links"> Show black background in DL links</p>\
  3830. <p><input type="checkbox" id="Do_not_linkify_DL_links"> Do NOT linkify DL links</p>\
  3831. <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>\
  3832. <p><input type="checkbox" id="Display_full_links_in_link_containers"> Display full links in link containers</p><br>\
  3833. <fieldset>\
  3834. <p><input type="radio" name="warlciconset" value="0"> No icons</p>\
  3835. <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>\
  3836. <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>\
  3837. </fieldset>\
  3838. </fieldset>\
  3839. <fieldset>\
  3840. <div id="sites"><input type="checkbox" id="Autocheck"> Autocheck</div><br><div id="configinfo">Script starts check automatically.</div><br>\
  3841. </fieldset>\
  3842. <fieldset>\
  3843. <div id="sites"><input type="checkbox" id="Show_progress_stats"> Show progress stats</div><br>\
  3844. </fieldset>\
  3845. <fieldset>\
  3846. <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>\
  3847. </fieldset>\
  3848. <fieldset>\
  3849. <p><input type="checkbox" id="Enable_Anonymizer"> Enable Anonymizer</div><div id="bulk">EXPERIMENTAL Note: Checkbox does not work use CTRL+ALT+Z.</p>\
  3850. <div id="sites"><label for="refAnonymizer">Refererer anonymizing service</label><input type="text" id="refAnonymizer" value="' + Ref_anonymize_service + '"></div>\
  3851. </fieldset>\
  3852. </div>\
  3853. </div>\
  3854. <div id="tabs-4" class="warlc-ui-tab">\
  3855. <p><b>Author:</b> <a href="http://userscripts.org/users/510590">mentalps</a></p>\
  3856. <p><b>Contributors:</b> <a href="http://userscripts.org/users/496211">Halliwax</a></p>\
  3857. <br />\
  3858. <p><b>Currently supported:</b><br>\
  3859. Filehostings: ' + allHostNames.length + '<br />\
  3860. Containers: ' + allContainerNames.length + '<br />\
  3861. Obsolete sites: ' + allObsoleteNames.length + '<br /></p>\
  3862. <br />\
  3863. <p><b>Based on:</b><br>\
  3864. <a href="http://userscripts.org/scripts/show/125631">W.A.R. Links Checker - Dev</a></p>\
  3865. <br />\
  3866. <p><b>Uses:</b></p>\
  3867. <p>adam_3\'s <a href="http://userscripts.org/scripts/show/2254">Linkify ting</a> (modified)</p>\
  3868. <p><a href="http://jquery.com/">jQuery</a> JavaScript Library</p>\
  3869. <br />\
  3870. <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>\
  3871. </div>\
  3872. </div>\
  3873. </div>\
  3874. </div>';
  3875. $('body').append('<div id="hideshow">' + configurationinnerHTML + '</div>');
  3876. $("#warlc-conf-tabs").tabs({ fx: { opacity: 'toggle', duration: 'fast' } });
  3877. $("#imghideshow").click(function(event){$("#hideshow").hide(); event.preventDefault();});
  3878. var elmHostList = document.getElementById("warlcsitelist1");
  3879. var elmContainerList = document.getElementById("warlcsitelist2");
  3880. buildSettings();
  3881. buildSitelist("", allHostNames, elmHostList);
  3882. buildSitelist("", allContainerNames, elmContainerList);
  3883. if (DEBUG_MODE)
  3884. {
  3885. //log all sites availability status
  3886. diagSites();
  3887. }
  3888. //handler for checkbox state change
  3889. function changeConfiguration(e)
  3890. {
  3891. var element = e.target;
  3892.  
  3893. if (element.type == 'checkbox')
  3894. {
  3895. if (element.checked == 1)
  3896. {
  3897. GM_setValue(element.id, true);
  3898. }
  3899. else
  3900. {
  3901. GM_setValue(element.id, false);
  3902. }
  3903.  
  3904. }
  3905. setVariables();
  3906. }
  3907.  
  3908. //Selects all filehosting checkboxes
  3909. function selectAll()
  3910. {
  3911. $(":checkbox:visible:not(:checked)").prop("checked",true)
  3912. .each(function(index, element){GM_setValue(this.id, true)});
  3913. }
  3914.  
  3915. //Deselects all filehosting checkboxes
  3916. function selectNone()
  3917. {
  3918. $(":checkbox:visible:checked").prop("checked",false)
  3919. .each(function(index, element){GM_setValue(this.id, false)});
  3920. }
  3921.  
  3922. //Inverts filehosting checkboxes selection
  3923. function selectInvert()
  3924. {
  3925. var $checked = $(":checkbox:visible:checked");
  3926. var $unchecked = $(":checkbox:visible:not(:checked)");
  3927. $unchecked.prop("checked",true)
  3928. .each(function(index, element){GM_setValue(this.id, true)});
  3929. $checked.prop("checked",false)
  3930. .each(function(index, element){GM_setValue(this.id, false)});
  3931. }
  3932. //toggles anonymizer on off
  3933. function Enable_Anonymizer()
  3934. {
  3935. var $checked = $(":checkbox:visible:checked");
  3936. var $unchecked = $(":checkbox:visible:not(:checked)");
  3937. $unchecked.prop("checked",true)
  3938. .each(function(index, element){GM_setValue(this.id, true)});
  3939. $checked.prop("checked",false)
  3940. .each(function(index, element){GM_setValue(this.id, false)});
  3941. }
  3942.  
  3943. function changeRefAnonymizer(){
  3944. GM_setValue("Ref_anonymize_service", $("#refAnonymizer").attr("value"));
  3945. }
  3946.  
  3947. //Sets live links color
  3948. function changeColorLive()
  3949. {
  3950. var inColorLive = document.getElementById("inputColorLive");
  3951. inColorLive.style.background = inColorLive.value;
  3952. GM_setValue("Live_links_color", inColorLive.value);
  3953. }
  3954.  
  3955. //Sets dead links color
  3956. function changeColorDead()
  3957. {
  3958. var inColorDead = document.getElementById("inputColorDead");
  3959. inColorDead.style.background = inColorDead.value;
  3960. GM_setValue("Dead_links_color", inColorDead.value);
  3961. }
  3962.  
  3963. //Sets temp. unavailable links color
  3964. function changeColorTemp()
  3965. {
  3966. var inColorTemp = document.getElementById("inputColorTemp");
  3967. inColorTemp.style.background = inColorTemp.value;
  3968. GM_setValue("Temp_unavailable_links_color", inColorTemp.value);
  3969. }
  3970.  
  3971. //Sets temp. unavailable links color
  3972. function changeColorCont()
  3973. {
  3974. var inColorCont = document.getElementById("inputColorCont");
  3975. inColorCont.style.background = inColorCont.value;
  3976. GM_setValue("Container_links_color", inColorCont.value);
  3977. }
  3978. //Sets premium. links color
  3979. function changeColorprem()
  3980. {
  3981. var inColorprem = document.getElementById("inputColorprem");
  3982. inColorprem.style.background = inColorprem.value;
  3983. GM_setValue("Premium_links_color", inColorprem.value);
  3984. }
  3985.  
  3986. //Diagnose sites for availability
  3987. function diagSites()
  3988. {
  3989. var boxes = document.getElementById("warlcsitelist1").getElementsByTagName("input");
  3990.  
  3991. for (var i = 0, n = boxes.length - 1; i < n; i++)
  3992. {
  3993. if (boxes[i].type == "checkbox")
  3994. {
  3995. checkAvailability(boxes[i]);
  3996. }
  3997. }
  3998.  
  3999. boxes = document.getElementById("warlcsitelist2").getElementsByTagName("input");
  4000.  
  4001. for (var i = 0, n = boxes.length - 1; i < n; i++)
  4002. {
  4003. if (boxes[i].type == "checkbox")
  4004. {
  4005. checkAvailability(boxes[i]);
  4006. }
  4007. }
  4008.  
  4009. function checkAvailability(cbElm)
  4010. {
  4011. var cb = cbElm;
  4012. GM_xmlhttpRequest(
  4013. {
  4014. method: 'HEAD',
  4015. url: 'http://' + cb.nextSibling.textContent.replace(' ', ''),
  4016. headers: {
  4017. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  4018. 'Accept': 'text/xml',
  4019. 'Referer': ""
  4020. },
  4021. onload: function (result)
  4022. {
  4023. if (result.status != 200)
  4024. {
  4025. GM_log(cb.nextSibling.textContent + ' --- status: [' + result.status + '] ' + result.statusText + ', final url: ' + result.finalUrl);
  4026. }
  4027. },
  4028. onerror: function (result)
  4029. {
  4030. if (result.status != 200)
  4031. {
  4032. GM_log(cb.nextSibling.textContent + ' --- status: [' + result.status + '] ' + result.statusText + ', final url: ' + result.finalUrl);
  4033. }
  4034. }
  4035. });
  4036. }
  4037. }
  4038. function buildSettings()
  4039. {
  4040. $(".warlcsettings :checkbox").each(function(){
  4041. $(this).prop("checked", GM_getValue($(this).attr("id")))
  4042. .click(function(e){
  4043. GM_setValue($(this).attr("id"), $(this).prop("checked"));
  4044. setVariables();
  4045. });
  4046. })
  4047. }
  4048. //Dynamic build of host list
  4049. //param search [string] searches for hostnames matching search substring
  4050. //param siteNames [array] array of site names
  4051. //param targetNode [DOM Node] where the list should be built
  4052. // first child node is replaced
  4053. function buildSitelist(search, siteNames, targetNode)
  4054. {
  4055. var searchRegex = new RegExp("\\|?([\\w\\.-]*" + search.replace(/\./g,"\\.").replace(/-/g, "\\-") + "[\\w\\.-]*)\\|?", "i");
  4056. var $targetNode = $(targetNode).empty();
  4057. var searchedSite = "";
  4058. $.each(siteNames, function(i, site){
  4059. if (searchedSite = site.match(searchRegex))
  4060. {
  4061. var baseSite = site.replace(/\|.+/, ""); //filehosting main domain
  4062. //ensuring backward compatibility with the rest of code, to be refactored later
  4063. var oldRSLCvalue = "Check_" + baseSite.replace(/\|.+/, "").replace(/\./g,"_dot_").replace(/-/g, "_dash_") + "_links";
  4064. //
  4065. $targetNode.append('<input type="checkbox" id="' + oldRSLCvalue +'" />\
  4066. <label for="' + oldRSLCvalue + '">' + searchedSite[1] + '</label>' +
  4067. ((searchedSite[1] != baseSite) ? ('<div id="note"> ( ~ ' + baseSite + ' )</div>') : (""))
  4068. );
  4069. $("#" + oldRSLCvalue).prop("checked", GM_getValue(oldRSLCvalue, false))
  4070. .change(changeConfiguration);
  4071. $targetNode.append('<br />');
  4072. }
  4073. });
  4074. $targetNode.append("<hr>");
  4075. //obsolete hosts checkbox
  4076. $targetNode.append('<input type="checkbox" id="Obsolete_file_hosts" /><label for="Obsolete_file_hosts">Obsolete file hosts</label>');
  4077. $("#Obsolete_file_hosts").prop("checked", GM_getValue("Obsolete_file_hosts", false))
  4078. .change(changeConfiguration);
  4079. $targetNode.append('<br />');
  4080. var foundName = "";
  4081. $.each(allObsoleteNames, function(i, site){
  4082. if (foundName = allObsoleteNames[i].match(searchRegex))
  4083. {
  4084. $targetNode.append('<div id="note">' + foundName[1] + '</div>');
  4085. }
  4086. })
  4087. // if (elmSpan.children.length == 1) // no matches
  4088. // {
  4089. // elmSpan.innerHTML = "";
  4090. // elmSpan.appendChild(document.createTextNode('No matches'));
  4091. // }
  4092. }
  4093. var hostSearchBox = document.getElementById("hostSearchBox");
  4094. hostSearchBox.addEventListener('keyup', function(){buildSitelist(hostSearchBox.value, allHostNames, elmHostList);}, false);
  4095. var hostSearchBox2 = document.getElementById("hostSearchBox2");
  4096. hostSearchBox2.addEventListener('keyup', function(){buildSitelist(hostSearchBox2.value, allContainerNames, elmContainerList);}, false);
  4097. $(".warlc-ui-select-all").click(selectAll).button();
  4098. $(".warlc-ui-select-none").click(selectNone).button();
  4099. $(".warlc-ui-select-invert").click(selectInvert).button();
  4100. $(".warlc-ui-buttonset").buttonset();
  4101. var inColorLive = document.getElementById("inputColorLive");
  4102. inColorLive.addEventListener('keyup', changeColorLive, false);
  4103.  
  4104. var inColorDead = document.getElementById("inputColorDead");
  4105. inColorDead.addEventListener('keyup', changeColorDead, false);
  4106.  
  4107. var inColorTemp = document.getElementById("inputColorTemp");
  4108. inColorTemp.addEventListener('keyup', changeColorTemp, false);
  4109.  
  4110. var inColorCont = document.getElementById("inputColorCont");
  4111. inColorCont.addEventListener('keyup', changeColorCont, false);
  4112. var inColorprem = document.getElementById("inputColorprem");
  4113. inColorprem.addEventListener('keyup', changeColorprem, false);
  4114. $("#refAnonymizer").change(changeRefAnonymizer);
  4115. //buttons and edit boxes init end
  4116.  
  4117. //icon sets radio buttons
  4118. var radioButtons = document.getElementsByName("warlciconset");
  4119. radioButtons[Icon_set].checked = "checked";
  4120.  
  4121. radioButtons[0].addEventListener("change", updateIconSet);
  4122. radioButtons[1].addEventListener("change", updateIconSet);
  4123. radioButtons[2].addEventListener("change", updateIconSet);
  4124. function updateIconSet()
  4125. {
  4126. GM_setValue("Icon_set", this.value * 1);
  4127. }
  4128. //
  4129. $('#showCustomRulesReference').click(function(e){
  4130. e.preventDefault();
  4131. $('#customRulesReference').toggle();
  4132. });
  4133. $('#Custom_rules_text')
  4134. .val(Custom_rules_text)
  4135. .change(saveCustomRules);
  4136. /*function checkCustomRules(e)
  4137. {
  4138. GM_log(this.value);
  4139. }*/
  4140. function saveCustomRules(e)
  4141. {
  4142. var cr = parseCustomRules(this.value);
  4143. if (cr.info.length)
  4144. 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, ' '));
  4145. GM_setValue('Custom_rules_text', this.value);
  4146. GM_setValue('last_custom_rules_nag', ''+new Date().getTime()); //reset nag
  4147. }
  4148. }
  4149.  
  4150. //begin standard link checking algorithm
  4151. function start(filterId)
  4152. {
  4153. var doNotLinkify = Do_not_linkify_DL_links;
  4154.  
  4155. // USER SELECTED FILE HOSTS INITIALIZATION START
  4156. var http_file_hosts = new Array(); //standard hostings
  4157. var http_file_hosts_coded = new Array(); //hostings which has to be decoded to obtain real checkable link
  4158. var http_file_hosts_obsolete = new Array(); //dead hostings
  4159. var http_file_hosts_headers_only = new Array(); //hostings with direct download, must be handled via headers only
  4160.  
  4161. initFileHosts();
  4162. initFileHostsHeadersOnly();
  4163. initFileHostsCustom(); //CustomRules
  4164. // USER SELECTED FILE HOSTS INITIALIZATION END
  4165.  
  4166. // LINKIFICATION START
  4167. var totalxpath = '';
  4168. var totalxpathcoded = '';
  4169. var totalxpathobsolete = '';
  4170. var totalxpathheadersonly = '';
  4171. var totalourls = '';
  4172.  
  4173. var filehostLen = http_file_hosts.length;
  4174. var filehostCodedLen = http_file_hosts_coded.length;
  4175. var filehostObsoleteLen = http_file_hosts_obsolete.length;
  4176. var filehostHeadersOnlyLen = http_file_hosts_headers_only.length;
  4177.  
  4178. var filehostIdx = filehostLen;
  4179. var filehostCodedIdx = filehostCodedLen;
  4180. var filehostObsoleteIdx = filehostObsoleteLen;
  4181. var filehostHeadersOnlyIdx = filehostHeadersOnlyLen;
  4182.  
  4183. if ((filehostIdx == 0) && (filehostCodedIdx == 0) && (filehostHeadersOnlyIdx == 0) && (filehostObsoleteIdx == 0))
  4184. return;
  4185.  
  4186. while (filehostIdx--)
  4187. {
  4188. totalourls += http_file_hosts[filehostIdx][0] + '|';
  4189. totalxpath += http_file_hosts[filehostIdx][4] + '|';
  4190. }
  4191.  
  4192. while (filehostCodedIdx--)
  4193. {
  4194. totalourls += http_file_hosts_coded[filehostCodedIdx][0] + '|';
  4195. totalxpathcoded += http_file_hosts_coded[filehostCodedIdx][3] + '|';
  4196. }
  4197.  
  4198. while (filehostObsoleteIdx--)
  4199. {
  4200. totalourls += http_file_hosts_obsolete[filehostObsoleteIdx][0] + '|';
  4201. totalxpathobsolete += http_file_hosts_obsolete[filehostObsoleteIdx][1] + '|';
  4202. }
  4203.  
  4204. while (filehostHeadersOnlyIdx--)
  4205. {
  4206. totalourls += http_file_hosts_headers_only[filehostHeadersOnlyIdx][0] + '|';
  4207. totalxpathheadersonly += http_file_hosts_headers_only[filehostHeadersOnlyIdx][3] + '|';
  4208. }
  4209.  
  4210. totalourls = totalourls.replace(/\|$/g, "");
  4211. //TODO: further refactoring needed
  4212. totalxpath = totalxpath.replace(/\]\|\/\/a\[/g, " or ");
  4213. totalxpath = totalxpath.replace(/\]\|/, ')]');
  4214. totalxpathcoded = totalxpathcoded.replace(/\]\|\/\/a\[/g, " or ");
  4215. totalxpathcoded = totalxpathcoded.replace(/\]\|/, ')]');
  4216. totalxpathobsolete = totalxpathobsolete.replace(/\]\|\/\/a\[/g, " or ");
  4217. totalxpathobsolete = totalxpathobsolete.replace(/\]\|/, ')]');
  4218. totalxpathheadersonly = totalxpathheadersonly.replace(/\]\|\/\/a\[/g, " or ");
  4219. totalxpathheadersonly = totalxpathheadersonly.replace(/\]\|/, ')]');
  4220. if (filterId != null) //insert id restriction in the xpath
  4221. {
  4222. totalxpath = totalxpath.replace(/\[/g, "[@class='" + filterId + "' and (");
  4223. totalxpathcoded = totalxpathcoded.replace(/\[/g, "[@class='" + filterId + "' and (");
  4224. totalxpathobsolete = totalxpathobsolete.replace(/\[/g, "[@class='" + filterId + "' and (");
  4225. totalxpathheadersonly = totalxpathheadersonly.replace(/\[/g, "[@class='" + filterId + "' and (");
  4226. }
  4227. else
  4228. {
  4229. totalxpath = totalxpath.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4230. totalxpathcoded = totalxpathcoded.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4231. totalxpathobsolete = totalxpathobsolete.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4232. totalxpathheadersonly = totalxpathheadersonly.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4233. }
  4234. linkify(totalourls);
  4235. //LINKIFICATION END
  4236. //ENCRYPTED LINKS PROCESSING START
  4237. if (http_file_hosts_coded.length > 0)
  4238. {
  4239. var linksCoded = document.evaluate(totalxpathcoded, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4240.  
  4241. // decrypt coded links (redirects, link protectors etc.)
  4242. if (linksCoded.snapshotLength > 0)
  4243. {
  4244. var link;
  4245. var reallinkreg;
  4246. var reallinkcorrection;
  4247.  
  4248. if (filterId == null)
  4249. {
  4250. cLinksTotal += linksCoded.snapshotLength;
  4251. }
  4252.  
  4253. var y = linksCoded.snapshotLength - 1;
  4254. do
  4255. {
  4256. // linksCoded.snapshotItem(y).id = 'processing_link';
  4257. link = linksCoded.snapshotItem(y);
  4258. filehostIdx = filehostCodedLen;
  4259. while (filehostIdx--)
  4260. {
  4261. if (link.href.match(http_file_hosts_coded[filehostIdx][0]))
  4262. {
  4263. link.href = link.href.replace(/http:\/\/.*?(?:\?|=)http:\/\//, 'http://');
  4264. reallinkreg = http_file_hosts_coded[filehostIdx][1];
  4265. reallinkcorrection = http_file_hosts_coded[filehostIdx][2];
  4266.  
  4267. decurl(link, reallinkreg, reallinkcorrection);
  4268. break;
  4269. }
  4270. }
  4271. }
  4272. while (y--);
  4273. }
  4274. }
  4275. //ENCRYPTED LINKS PROCESSING END
  4276.  
  4277. //STANDARD LINKCHECKING START
  4278. if (http_file_hosts.length > 0)
  4279. {
  4280. var lianks = document.evaluate(totalxpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4281.  
  4282. if (filterId == null)
  4283. {
  4284. cLinksTotal += lianks.snapshotLength;
  4285. }
  4286.  
  4287. if (lianks.snapshotLength > 0)
  4288. {
  4289. var link;
  4290.  
  4291. var URL = "";
  4292. var name = "";
  4293. var isAliveRegex = "";
  4294. var isDeadRegex = "";
  4295. var isUnavaRegex = "";
  4296. var ispremRegex = "";
  4297. var tryLoop = false;
  4298.  
  4299. var y = lianks.snapshotLength;
  4300.  
  4301. while (y--)
  4302. {
  4303. link = lianks.snapshotItem(y);
  4304.  
  4305. filehostIdx = filehostLen;
  4306. while (filehostIdx--)
  4307. {
  4308. if (link.href.match(http_file_hosts[filehostIdx][0]))
  4309. {
  4310. link.href = link.href.replace(/http:\/\/.*?http:\/\//, 'http://'); //anonymizers
  4311. isAliveRegex = http_file_hosts[filehostIdx][1];
  4312. isDeadRegex = http_file_hosts[filehostIdx][2];
  4313. isUnavaRegex = http_file_hosts[filehostIdx][3];
  4314. ispremRegex = http_file_hosts[filehostIdx][6];
  4315. tryLoop = http_file_hosts[filehostIdx][5];
  4316.  
  4317. geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, tryLoop);
  4318.  
  4319. break;
  4320. }
  4321. }
  4322. }
  4323. }
  4324. }
  4325. //STANDARD LINKCHECKING END
  4326. //OBSOLETE FILE HOSTS PROCESSING START
  4327. if (filehostObsoleteLen > 0)
  4328. {
  4329. var obsoletelinks = document.evaluate(totalxpathobsolete, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4330.  
  4331. var obsoleteLink;
  4332.  
  4333. //check links
  4334. if (obsoletelinks.snapshotLength > 0)
  4335. {
  4336. var y = obsoletelinks.snapshotLength;
  4337.  
  4338. if (filterId == null)
  4339. {
  4340. cLinksTotal += y;
  4341. }
  4342.  
  4343. while (y--)
  4344. {
  4345. obsoleteLink = obsoletelinks.snapshotItem(y);
  4346.  
  4347. if (Display_tooltip_info)
  4348. {
  4349. obsoleteLink.warlc_error = 'Cause of error: <b>Obsolete filehosting.</b>';
  4350. }
  4351. displayTheCheckedLink(obsoleteLink, 'adead_link');
  4352. }
  4353. }
  4354. }
  4355. //OBSOLETE FILE HOSTS PROCESSING END
  4356.  
  4357. //DIRECT LINKCHECKING START
  4358. if (http_file_hosts_headers_only.length > 0)
  4359. {
  4360. var links = document.evaluate(totalxpathheadersonly, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4361.  
  4362. //check links
  4363. if (links.snapshotLength > 0)
  4364. {
  4365. var link;
  4366. var isAliveRegex;
  4367. var isDeadRegex;
  4368. var ispremRegex;
  4369.  
  4370. var y = links.snapshotLength;
  4371.  
  4372.  
  4373. if (filterId == null)
  4374. {
  4375. cLinksTotal += y;
  4376. }
  4377.  
  4378. while (y--)
  4379. {
  4380. // links.snapshotItem(y).id = 'processing_link';
  4381. link = links.snapshotItem(y);
  4382. filehostIdx = filehostHeadersOnlyLen;
  4383. while (filehostIdx--)
  4384. {
  4385. if (link.href.match(http_file_hosts_headers_only[filehostIdx][0]))
  4386. {
  4387. link.href = link.href.replace(/http:\/\/.*?(?:\?|=)http:\/\//, 'http://');
  4388. isAliveRegex = http_file_hosts_headers_only[filehostIdx][1];
  4389. isDeadRegex = http_file_hosts_headers_only[filehostIdx][2];
  4390. ispremRegex = http_file_hosts_headers_only[filehostIdx][3];
  4391.  
  4392. geturlHeader(link, isAliveRegex, isDeadRegex, ispremRegex);
  4393.  
  4394. break;
  4395. }
  4396. }
  4397. }
  4398.  
  4399. }
  4400. }
  4401. //DIRECT LINKCHECKING END
  4402.  
  4403.  
  4404. //finds the real url on the page, replaces link.href with it and calls geturl
  4405. function decurl(link, reallinkreg, reallinkcorrection)
  4406. {
  4407.  
  4408. GM_xmlhttpRequest(
  4409. {
  4410. method: 'GET',
  4411. url: link.href,
  4412. headers: {
  4413. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  4414. 'Accept': 'text/xml',
  4415. 'Referer': ""
  4416. },
  4417. onload: function (result)
  4418. {
  4419. // cLinksProcessed++;
  4420.  
  4421. var reallink = result.responseText.match(reallinkreg)[0];
  4422. reallink = reallink.replace(new RegExp(reallinkcorrection, "g"), "");
  4423.  
  4424. link.href = reallink;
  4425.  
  4426. var i = http_file_hosts.length - 1;
  4427. do
  4428. {
  4429. if ((reallink.match(http_file_hosts[i][0])))
  4430. {
  4431. link.href = link.href.replace(/http:\/\/.*?\?http:\/\//, 'http://');
  4432. var isAliveRegex = http_file_hosts[i][1];
  4433. var isDeadRegex = http_file_hosts[i][2];
  4434. var isUnavaRegex = http_file_hosts[i][3];
  4435. var ispremRegex = http_file_hosts[i][4];
  4436.  
  4437. geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, 50);
  4438.  
  4439. break;
  4440. }
  4441. }
  4442. while (i--);
  4443. }
  4444. });
  4445. }
  4446.  
  4447. function randUA()
  4448. {
  4449. //TODO
  4450. }
  4451. //Processes link
  4452. //
  4453. // [string] link link URL
  4454. // [string] isAliveRegex alive link regex
  4455. // [string] isDeadRegex dead link regex
  4456. // [string] isUnavaRegex unavailable link regex
  4457. // [string] ispremRegex premium link regex
  4458. // [boolean] tryLoop repeats request until succeeded
  4459. function geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, tryLoop)
  4460. {
  4461. GM_xmlhttpRequest(
  4462. {
  4463. method: 'GET',
  4464. url: link.href,
  4465. headers: {
  4466. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  4467. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  4468. 'Referer': ""
  4469. },
  4470. onload: function (result)
  4471. {
  4472. var res = result.responseText;
  4473.  
  4474. if (res.match(isAliveRegex))
  4475. {
  4476. displayTheCheckedLink(link, 'alive_link');
  4477. return;
  4478. }
  4479.  
  4480. if (res.match(isDeadRegex))
  4481. {
  4482. displayTheCheckedLink(link, 'adead_link');
  4483. return;
  4484. }
  4485.  
  4486. if (isUnavaRegex && res.match(isUnavaRegex))
  4487. {
  4488. displayTheCheckedLink(link, 'unava_link');
  4489. return;
  4490. }
  4491. if (res.match(ispremRegex))
  4492. {
  4493. displayTheCheckedLink(link, 'prem_link');
  4494. return;
  4495. }
  4496.  
  4497. var resStatus = result.status;
  4498.  
  4499. if (resStatus == 404)
  4500. {
  4501. displayTheCheckedLink(link, 'adead_link');
  4502. }
  4503. if (resStatus == 500 || resStatus == 503 || resStatus == 403) //not found/available/temp. unava
  4504. {
  4505. if (tryLoop)
  4506. {
  4507. //wait 1-5 seconds and repeat the request
  4508. setTimeout(function(){geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, tryLoop)}, 1000 + (Math.random() * 4000));
  4509. }
  4510. else
  4511. {
  4512. displayTheCheckedLink(link, 'unava_link');
  4513. }
  4514.  
  4515. return;
  4516. }
  4517. },
  4518. onerror: function ()
  4519. {
  4520. displayTheCheckedLink(link, 'unava_link');
  4521. }
  4522. });
  4523. }
  4524.  
  4525. function geturlHeader(link, isAliveRegex, isDeadRegex, ispremRegex)
  4526. {
  4527. GM_xmlhttpRequest(
  4528. {
  4529. method: 'HEAD',
  4530. url: link.href,
  4531. headers: {
  4532. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  4533. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  4534. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  4535. 'Referer': ""
  4536. },
  4537. onload: function (result)
  4538. {
  4539. var resStatus = result.status;
  4540. var resHeaders = "";
  4541. if (resStatus == 403 || resStatus == 404 || resStatus == 500) //not found/available
  4542. {
  4543. displayTheCheckedLink(link, 'adead_link');
  4544. return;
  4545. }
  4546.  
  4547. resHeaders = result.responseHeaders;
  4548.  
  4549. if (resHeaders.match(isDeadRegex))
  4550. {
  4551. displayTheCheckedLink(link, 'adead_link');
  4552. return;
  4553. }
  4554.  
  4555. if (resHeaders.match(isAliveRegex))
  4556. {
  4557. displayTheCheckedLink(link, 'alive_link');
  4558. return;
  4559. }
  4560. if (resHeaders.match(ispremRegex))
  4561. {
  4562. displayTheCheckedLink(link, 'prem_link');
  4563. return;
  4564. }
  4565. },
  4566. onerror: function ()
  4567. {
  4568. displayTheCheckedLink(link, 'unava_link');
  4569. }
  4570. });
  4571. }
  4572.  
  4573. //Delinkfifies the <a> element object
  4574. function delinkifyLink(link)
  4575. {
  4576. var spanElm = document.createElement("span");
  4577. spanElm.className = link.className;
  4578. spanElm.innerHTML = link.innerHTML;
  4579.  
  4580. if (Display_tooltip_info)
  4581. {
  4582. spanElm.href = link.href;
  4583. spanElm.warlc_error = link.warlc_error;
  4584. switch (link.className){
  4585. case "alive_link": spanElm.addEventListener("mouseover", displayTooltipInfo, false); break
  4586. case "adead_link": spanElm.addEventListener("mouseover", displayTooltipError, false); break;
  4587. case "unava_link": //reserved
  4588. case "prem_link": spanElm.addEventListener("mouseover", displayTooltipError, false); break;
  4589. default:
  4590. }
  4591. }
  4592. link.parentNode.replaceChild(spanElm, link);
  4593. }
  4594.  
  4595. //Assigns result status to the <a> element object and calls delinkifying eventually
  4596. //Possible result states: adead_link, alive_link, unava_link, prem_link
  4597. function displayTheCheckedLink(link, resultStatus)
  4598. {
  4599. link.className = resultStatus;
  4600. link.href = Ref_anonymize_service + link.href;
  4601. if (Display_tooltip_info)
  4602. {
  4603. switch (resultStatus){
  4604. case "alive_link": link.addEventListener("mouseover", displayTooltipInfo, false); break
  4605. case "adead_link": link.addEventListener("mouseover", displayTooltipError, false); break;
  4606. case "unava_link": //reserved
  4607. case "prem_link": link.addEventListener("mouseover", displayTooltipInfo, false); break
  4608. default:
  4609. }
  4610. }
  4611. if (doNotLinkify)
  4612. {
  4613. delinkifyLink(link);
  4614. }
  4615. cLinksProcessed++;
  4616.  
  4617. if (resultStatus == "alive_link")
  4618. {
  4619. cLinksAlive++;
  4620. return;
  4621. }
  4622.  
  4623. if (resultStatus == "adead_link")
  4624. {
  4625. cLinksDead++;
  4626. return;
  4627. }
  4628.  
  4629. if (resultStatus == "unava_link")
  4630. {
  4631. cLinksUnava++;
  4632. }
  4633. if (resultStatus == "prem_link")
  4634. {
  4635. cLinksprem++;
  4636. return;
  4637. }
  4638. }
  4639.  
  4640.  
  4641. function initFileHosts()
  4642. {
  4643.  
  4644. function addObsoleteHost(linkRegex, xpathEx)
  4645. {
  4646. var host = new Array(2);
  4647. host[0] = linkRegex;
  4648. host[1] = xpathEx;
  4649. http_file_hosts_obsolete.push(host);
  4650. }
  4651. // obsolete start
  4652. //obsolete file hosts init start
  4653. if (Obsolete_file_hosts)
  4654. {
  4655. addObsoleteHost("uloz\.cz\/show\/file","//a[contains(@href,'uloz.cz')]");
  4656. addObsoleteHost("storage\\.to\/get","//a[contains(@href,'storage.to')]");
  4657. addObsoleteHost("iskladka\\.cz\/download","//a[contains(@href,'iskladka.cz')]");
  4658. addObsoleteHost("file-rack\\.com\/files","//a[contains(@href,'file-rack.com')]");
  4659. addObsoleteHost("fast-load\\.net\/(\/)?index","//a[contains(@href,'fast-load.net')]");
  4660. addObsoleteHost("subory\\.sk\/download","//a[contains(@href,'subory.sk')]");
  4661. addObsoleteHost("bigandfree\\.com\/\\d+","//a[contains(@href,'bigandfree.com')]");
  4662. addObsoleteHost("fileop\\.com\/\\w+","//a[contains(@href,'fileop.com')]");
  4663. addObsoleteHost("mujsoubor\\.cz\/file\/","//a[contains(@href,'mujsoubor.cz')]");
  4664. addObsoleteHost("sendfile\\.to\/\\w+","//a[contains(@href,'sendfile.to')]");
  4665. addObsoleteHost("superfastfile\\.com\/\\w+","//a[contains(@href,'superfastfile.com')]");
  4666. addObsoleteHost("quickyshare\\.com\/\\w+","//a[contains(@href,'quickyshare.com/')]");
  4667. addObsoleteHost("duckload\\.com\/(?:d|play)","//a[contains(@href,'duckload.com')]");
  4668. addObsoleteHost("uploadstore\\.net\/\\w+","//a[contains(@href,'uploadstore.net')]");
  4669. addObsoleteHost("meinupload\\.com\/dl\/\\d+","//a[contains(@href,'meinupload.com/dl')]");
  4670. addObsoleteHost("dualshare\\.com\/\\w+","//a[contains(@href,'dualshare.com')]");
  4671. addObsoleteHost("2xupload\\.(?:to|de)\/file\/\\w+","//a[contains(@href,'2xupload.to') or contains(@href,'2xupload.de')]");
  4672. addObsoleteHost("oxedion\\.com\/index\\.php\/download\/\\w+","//a[contains(@href,'oxedion.com/index')]");
  4673. addObsoleteHost("uploadline\\.com\/\\d+","//a[contains(@href,'uploadline.com')]");
  4674. addObsoleteHost("dll\\.bz\/file\/\\d+","//a[contains(@href,'dll.bz/file')]");
  4675. addObsoleteHost("movieshare\\.in\/\\w+","//a[contains(@href,'movieshare.in')]");
  4676. addObsoleteHost("milledrive\\.com\/files\/\\d+","//a[contains(@href,'milledrive.com')]");
  4677. addObsoleteHost("quickupload\\.net\/\\w+","//a[contains(@href,'quickupload.net')]");
  4678. addObsoleteHost("safelink\\.in\/\\w+","//a[contains(@href,'safelink.in')]");
  4679. addObsoleteHost("pyramidfiles\\.com\/\\w+","//a[contains(@href,'pyramidfiles.com/')]");
  4680. addObsoleteHost("(?:cloudnator|shragle)\\.com\/files","//a[contains(@href,'cloudnator.com/files') or contains(@href,'shragle.com/files')]");
  4681. addObsoleteHost("batshare\\.com\/\\w+","//a[contains(@href,'batshare.com/')]");
  4682. addObsoleteHost("bitroad\\.net\/download","//a[contains(@href,'bitroad.net/download')]");
  4683. addObsoleteHost("metadivx\\.com\/\\w+","//a[contains(@href,'metadivx.com')]");
  4684. addObsoleteHost("filegaze\\.com\/\\w+","//a[contains(@href,'filegaze.com/')]");
  4685. addObsoleteHost("bulletupload\\.com\/\\w+","//a[contains(@href,'bulletupload.com/')]");
  4686. addObsoleteHost("sharefilehost\\.com\/\\w+","//a[contains(@href,'sharefilehost.com/')]");
  4687. addObsoleteHost("fireuploads\\.net\/\\w+","//a[contains(@href,'fireuploads.net/')]");
  4688. addObsoleteHost("divxlink\\.com\/\\w+","//a[contains(@href,'divxlink.com/')]");
  4689. addObsoleteHost("bzlink\\.us\/\\w+","//a[contains(@href,'bzlink.us/')]");
  4690. addObsoleteHost("filetechnology\\.com\/\\w+","//a[contains(@href,'filetechnology.com/')]");
  4691. addObsoleteHost("filecosy\\.com\/\\w+","//a[contains(@href,'filecosy.com/')]");
  4692. addObsoleteHost("fileserver\\.cc\/\\w+","//a[contains(@href,'fileserver.cc/')]");
  4693. addObsoleteHost("shafiles\\.me\/\\w+","//a[contains(@href,'shafiles.me/')]");
  4694. addObsoleteHost("xfileshare\\.eu\/\\w+","//a[contains(@href,'xfileshare.eu/')]");
  4695. addObsoleteHost("uploadboost\\.com\/\\w+","//a[contains(@href,'uploadboost.com/')]");
  4696. addObsoleteHost("uploadoz\\.com\/\\w+","//a[contains(@href,'uploadoz.com/')]");
  4697. addObsoleteHost("ihostia\\.com\/\\w+","//a[contains(@href,'ihostia.com/')]");
  4698. addObsoleteHost("shareupload\\.com\/\\w+","//a[contains(@href,'shareupload.com/')]");
  4699. addObsoleteHost("ovfile\\.com\/\\w+","//a[contains(@href,'ovfile.com/')]");
  4700. addObsoleteHost("stahuj\\.to\/\\w+","//a[contains(@href,'stahuj.to/')]");
  4701. addObsoleteHost("gigfiles\\.net\/\\w+","//a[contains(@href,'gigfiles.net/')]");
  4702. addObsoleteHost("vidhog\\.com\/\\w+","//a[contains(@href,'vidhog.com/')]");
  4703. addObsoleteHost("filelaser\\.com\/\\w+","//a[contains(@href,'filelaser.com/')]");
  4704. addObsoleteHost("holderfile\\.com\/\\w+","//a[contains(@href,'holderfile.com/')]");
  4705. addObsoleteHost("fileduct\\.(?:com|net)\/\\w+","//a[contains(@href,'fileduct.com/') or contains(@href,'fileduct.net')]");
  4706. addObsoleteHost("filefat\\.com\/\\w+","//a[contains(@href,'filefat.com/')]");
  4707. addObsoleteHost("restfile\\.com\/\\w+","//a[contains(@href,'restfile.com/')]");
  4708. addObsoleteHost("filemashine\\.com\\/download\/\\w+","//a[contains(@href,'filemashine.com/download')]");
  4709. addObsoleteHost("cloudnxt\\.net\/\\w+","//a[contains(@href,'cloudnxt.net/')]");
  4710. addObsoleteHost("uploadrack\\.com\/\\w+","//a[contains(@href,'uploadrack.com')]");
  4711. addObsoleteHost("teradepot\\.com\/\\w+","//a[contains(@href,'teradepot.com')]");
  4712. addObsoleteHost("dataup\\.to\/\\d+\/","//a[contains(@href,'dataup.to')]");
  4713. addObsoleteHost("upit\\.to\/file:\\d+","//a[contains(@href,'upit.to/file')]");
  4714. addObsoleteHost("badongo\\.(?:com|net)\/(?:\\w\\w\/|)(?:vid|cfile|file|pt)\/\\w+","//a[contains(@href,'badongo.com') or contains(@href,'badongo.net')]");
  4715. addObsoleteHost("driveway\\.com\/\\w+","//a[contains(@href,'driveway.com')]");
  4716. addObsoleteHost("eatlime\\.com\/download","//a[contains(@href,'eatlime.com/download')]");
  4717. addObsoleteHost("a2zuploads\\.com\/id\\w+","//a[contains(@href,'a2zuploads.com/id')]");
  4718. addObsoleteHost("friendlyfiles\\.net\/download\/\\w+\/","//a[contains(@href,'friendlyfiles.net/download')]");
  4719. addObsoleteHost("flyfile\\.us\/\\w+","//a[contains(@href,'flyfile.us')]");
  4720. addObsoleteHost("speedyshare\\.com\/\\w+","//a[contains(@href,'speedyshare.com')]");
  4721. addObsoleteHost("brontofile\\.com\/download","//a[contains(@href,'brontofile.com/download')]");
  4722. addObsoleteHost("uploadspace\\.eu\/\\w+","//a[contains(@href,'uploadspace.eu')]");
  4723. addObsoleteHost("fooget\\.com\/\\w+","//a[contains(@href,'fooget.com/')]");
  4724. addObsoleteHost("file-bit.net\/\\w+","//a[contains(@href,'file-bit.net/')]");
  4725. addObsoleteHost("keepfile\\.com\/\\w+","//a[contains(@href,'keepfile.com')]");
  4726. addObsoleteHost("piggyshare\\.com\/file\/\\w+","//a[contains(@href,'piggyshare.com')]");
  4727. addObsoleteHost("filecrown\\.com\/\\w+","//a[contains(@href,'filecrown.com')]");
  4728. addObsoleteHost("6giga\\.com\/\\w+","//a[contains(@href,'6giga.com')]");
  4729. addObsoleteHost("uploadjockey\\.com\/download\/\\w+","//a[contains(@href,'uploadjockey.com/download')]");
  4730. addObsoleteHost("bluehost\\.to\/dl=\\w+","//a[contains(@href,'bluehost.to')]");
  4731. addObsoleteHost("coolshare\\.cz\/stahnout\/\\w+","//a[contains(@href,'coolshare.cz/stahnout')]");
  4732. addObsoleteHost("filegu\\.ru\/f\/\\w+","//a[contains(@href,'filegu.ru/f')]");
  4733. addObsoleteHost("filebase\\.to\/files\/\\d+\/","//a[contains(@href,'filebase.to/files')]");
  4734. addObsoleteHost("kickload\\.com\/(?:file|get)\/","//a[contains(@href,'kickload.com/file') or contains(@href,'kickload.com/get')]");
  4735. addObsoleteHost("up-file\\.com\/files\/download\/\\w+\/","//a[contains(@href,'up-file.com/download')]");
  4736. addObsoleteHost("ezyfile\\.net\/\\w+","//a[contains(@href,'ezyfile.net/')]");
  4737. addObsoleteHost("k2files\\.com\/files","//a[contains(@href,'k2files.com/files')]");
  4738. addObsoleteHost("aiotool\\.net\/\\w+","//a[contains(@href,'aiotool.net/')]");
  4739. addObsoleteHost("xvideos\\.com\/files\/\\d+\/\\w+","//a[contains(@href,'xvideos.com/files')]");
  4740. addObsoleteHost("filebling\\.com\/dl\/\\d+\/\\d+\/\\w+","//a[contains(@href,'filebling.com/dl')]");
  4741. addObsoleteHost("loaded\\.it\/divx\/\\w+","//a[contains(@href,'loaded.it/divx')]");
  4742. addObsoleteHost("uploadcell\\.com\/\\w+\/\\w+","//a[contains(@href,'uploadcell.com')]");
  4743. addObsoleteHost("jakfile\\.com\/\\w+","//a[contains(@href,'jakfile.com/')]");
  4744. addObsoleteHost("uploadshare\\.cz\/download\/\\w+\/\\w+","//a[contains(@href,'uploadshare.cz/download')]");
  4745. addObsoleteHost("mangoshare\\.com\/\\w+","//a[contains(@href,'mangoshare.com')]");
  4746. addObsoleteHost("ugotfile\\.com\/file\/\\d+\/\\w+","//a[contains(@href,'ugotfile.com/file')]");
  4747. addObsoleteHost("filestab\\.com\/\\w+","//a[contains(@href,'filestab.com')]");
  4748. addObsoleteHost("dotavi\\.com\/\\w+\/.","//a[contains(@href,'dotavi.com/')]");
  4749. addObsoleteHost("crazyupload\\.com\/\\w+","//a[contains(@href,'crazyupload.com')]");
  4750. addObsoleteHost("gaiafile\\.com\/\\w+","//a[contains(@href,'gaiafile.com')]");
  4751. addObsoleteHost("sharejunky\\.com\/\\w+","//a[contains(@href,'sharejunky.com')]");
  4752. addObsoleteHost("fileho\\.com\/download\/\\d+","//a[contains(@href,'fileho.com/download')]");
  4753. addObsoleteHost("(?:bigandfree|BigAndFree)\\.com\/\\d+","//a[contains(@href,'bigandfree.com') or contains(@href,'BigAndFree.com')]");
  4754. addObsoleteHost("bigfile\\.in\/\\w+","//a[contains(@href,'bigfile.in')]");
  4755. addObsoleteHost("bigshare\\.eu\/download\\.php\\?id=","//a[contains(@href,'bigshare.eu/download.php')]");
  4756. addObsoleteHost("dahosting\\.org\/dl\/\\w+","//a[contains(@href,'dahosting.org/dl')]");
  4757. addObsoleteHost("digisofts\\.net\/\\w+","//a[contains(@href,'digisofts.net')]");
  4758. addObsoleteHost("file4save\\.com\/\\w+\/\\w+","//a[contains(@href,'file4save.com')]");
  4759. addObsoleteHost("filereactor\\.com\/\\w+","//a[contains(@href,'filereactor.com/')]");
  4760. addObsoleteHost("filechip\\.com\/\\w+","//a[contains(@href,'filechip.com')]");
  4761. addObsoleteHost("filescloud\\.com\/\\w+\/\\w+","//a[contains(@href,'filescloud.com')]");
  4762. addObsoleteHost("saveqube\\.com\/getfile\/\\w+","//a[contains(@href,'saveqube.com/getfile')]");
  4763. addObsoleteHost("www2\\.turboshare\\.de\/v\/\\d+","//a[contains(@href,'turboshare.de/v')]");
  4764. addObsoleteHost("z-upload\\.com\/\\w+","//a[contains(@href,'z-upload.com')]");
  4765. addObsoleteHost("youshare\\.com\/view\\.php","//a[contains(@href,'youshare.com/view')]");
  4766. addObsoleteHost("jiffyupload\\.com\/\\w+","//a[contains(@href,'jiffyupload.com')]");
  4767. addObsoleteHost("gigeshare\\.com\/preview\/\\w+","//a[contains(@href,'gigeshare.com')]");
  4768. addObsoleteHost("datenklo\\.net\/dl","//a[contains(@href,'datenklo.net')]");
  4769. addObsoleteHost("upload\\.dj\/download\\.php\\?id=\\w+","//a[contains(@href,'upload.dj/download.php')]");
  4770. addObsoleteHost("loadfiles\\.in\/\\w+\/","//a[contains(@href,'loadfiles.in')]");
  4771. addObsoleteHost("upit\\.to\/file:\\w+\/","//a[contains(@href,'upit.to/file')]");
  4772. addObsoleteHost("zshare\\.net\/(?:download|video|audio)\/\\w+","//a[contains(@href,'zshare.net/')]");
  4773. addObsoleteHost("refile\\.net\/f\/\\?\\w+","//a[contains(@href,'refile.net/f/')]");
  4774. addObsoleteHost("dsfileshare\\.com\/download","//a[contains(@href,'dsfileshare.com/download')]");
  4775. addObsoleteHost("sharesimple\\.net\/\\w{2}\/download","//a[contains(@href,'sharesimple.net')]");
  4776. addObsoleteHost("(?:s\\d+\\.|)4files\\.net\/\\d+","//a[contains(@href,'4files.net')]");
  4777. addObsoleteHost("odsiebie\\.com\/pokaz\/\\d+","//a[contains(@href,'odsiebie.com/pokaz')]");
  4778. addObsoleteHost("filenavi\\.com\/direct\/\\w+","//a[contains(@href,'filenavi.com/direct')]");
  4779. addObsoleteHost("3oof\\.com\/\\w+","//a[contains(@href,'3oof.com/')]");
  4780. addObsoleteHost("meshwaar\\.com\/\\w+","//a[contains(@href,'meshwaar.com')]");
  4781. addObsoleteHost("maxupload\\.com\/files\/\\w+","//a[contains(@href,'maxupload.com/files')]");
  4782. addObsoleteHost("share\\.cx\/videos\/\\d+","//a[contains(@href,'share.cx/videos')]");
  4783. addObsoleteHost("atserver\\.eu\/(?:\\w{2}\/|)download\/\\d+","//a[contains(@href,'atserver.eu')]");
  4784. addObsoleteHost("file2upload\\.net\/download\/\\d+","//a[contains(@href,'file2upload.net/download')]");
  4785. addObsoleteHost("filebling\\.com\/\\w+","//a[contains(@href,'filebling.com')]");
  4786. addObsoleteHost("turboshare\\.(?:eu|com)\/files","//a[contains(@href,'turboshare.') and contains(@href,'/files')]");
  4787. addObsoleteHost("rarhost\\.com\/download","//a[contains(@href,'rarhost.com/download')]");
  4788. addObsoleteHost("isharehd\\.com\/\\w+","//a[contains(@href,'isharehd.com')]");
  4789. addObsoleteHost("datenklo\\.net\/file\\.php\\?id=\\w+","//a[contains(@href,'datenklo.net/file.php')]");
  4790. addObsoleteHost("file2share\\.biz\/download\\.php\\?id=\\w+","//a[contains(@href,'file2share.biz/download.php')]");
  4791. addObsoleteHost("savefiles\\.net\/d\/\\w+\\.html","//a[contains(@href,'savefiles.net/d')]");
  4792. addObsoleteHost("bestsharing\\.com\/files\/\\w+","//a[contains(@href,'bestsharing.com/files')]");
  4793. addObsoleteHost("filecache\\.de\/\\d+","//a[contains(@href,'filecache.de/')]");
  4794. addObsoleteHost("i741\\.com\/files\/\\w+","//a[contains(@href,'i741.com/files')]");
  4795. addObsoleteHost("dataup\\.de\/\\d+","//a[contains(@href,'dataup.de')]");
  4796. addObsoleteHost("fofly\\.com\/\\w+","//a[contains(@href,'fofly.com')]");
  4797. addObsoleteHost("shareonall\\.com\/\\w+","//a[contains(@href,'shareonall.com')]");
  4798. addObsoleteHost("sexuploader\\.com\/(?:|..\/)\\?[d|v]=\\w{8}","//a[contains(@href,'sexuploader.com')]");
  4799. 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')]");
  4800. addObsoleteHost("uploadhyper\\.com\/file\/","//a[contains(@href,'uploadhyper.com')]");
  4801. addObsoleteHost("filespawn\\.com\/file\/","//a[contains(@href,'filespawn.com')]");
  4802. addObsoleteHost("caizzii\\.com\/(?:download|\\?file=)","//a[contains(@href,'caizzii.com')]");
  4803. addObsoleteHost("volnyweb\\.cz\/files\/get\/[\\w-_]+","//a[contains(@href,'volnyweb.cz/files')]");
  4804. addObsoleteHost("gotupload\\.com\/\\w+","//a[contains(@href,'gotupload.com/')]");
  4805. addObsoleteHost("mooload\\.com\/new\/file\\.php\\?file=files\/\\d+\/\\d+","//a[contains(@href,'mooload.com/new/file')]");
  4806. addObsoleteHost("z\\d+\\.zupload\\.com\/download\\.php\\?file=getfile&filepath=\\d+","//a[contains(@href,'zupload.com/download')]");
  4807. addObsoleteHost("mytempdir\\.com\/\\d+","//a[contains(@href,'mytempdir.com/')]");
  4808. addObsoleteHost("usershare\\.net\/\\w+","//a[contains(@href,'usershare.net/')]");
  4809. addObsoleteHost("qshare\\.com\/get\/\\d+\/.","//a[contains(@href,'qshare.com/get')]");
  4810. addObsoleteHost("filescash\\.net\/file\/\\d+","//a[contains(@href,'filescash.net/file')]");
  4811. addObsoleteHost("metahyper\\.com\/\\w+","//a[contains(@href,'metahyper.com/')]");
  4812. addObsoleteHost("combozip\\.com\/\\w+","//a[contains(@href,'combozip.com/')]");
  4813. addObsoleteHost("anonstream\\.com\/get_\\w+","//a[contains(@href,'anonstream.com/get_')]");
  4814. addObsoleteHost("x7\\.to\/\\w+","//a[contains(@href,'x7.to/')]");
  4815. addObsoleteHost("uploadbox\\.com\/files\/\\w+","//a[contains(@href,'uploadbox.com/files')]");
  4816. addObsoleteHost("(?:flyupload\\.)?(?:enterupload|flyupload)\\.com\/[\\?\\w]+","//a[contains(@href,'enterupload.com/') or contains(@href,'flyupload.com/')]");
  4817. addObsoleteHost("filepoint\\.de\/dl\/\\w+","//a[contains(@href,'filepoint.de/dl')]");
  4818. addObsoleteHost("icushare\\.com\/\\w+","//a[contains(@href,'icushare.com/')]");
  4819. addObsoleteHost("oron\\.com\/\\w+","//a[contains(@href,'oron.com/')]");
  4820. addObsoleteHost("mystream\\.to\/file\\-\\d+","//a[contains(@href,'mystream.to/file')]");
  4821. addObsoleteHost("x-fs\\.com\/download\\.php\\?id=\\w+","//a[contains(@href,'x-fs.com/download')]");
  4822. addObsoleteHost("srapid\\.eu\/\\w+","//a[contains(@href,'srapid.eu/')]");
  4823. addObsoleteHost("shareshared\\.com\/\\w+","//a[contains(@href,'shareshared.com/')]");
  4824. addObsoleteHost("sosame\\.cz\/\\w+","//a[contains(@href,'sosame.cz/')]");
  4825. addObsoleteHost("s\\d+\\.filesdump\\.com\/file\/\\w+","//a[contains(@href,'filesdump.com/file')]");
  4826. addObsoleteHost("2-klicks\\.de\/\\?d=\\w+","//a[contains(@href,'2-klicks.de/?d=')]");
  4827. addObsoleteHost("silofiles\\.com\/file\/\\d+","//a[contains(@href,'silofiles.com/file')]");
  4828. addObsoleteHost("upfile\\.in\/\\w+","//a[contains(@href,'upfile.in/')]");
  4829. addObsoleteHost("filehook\\.com\/\\w+","//a[contains(@href,'filehook.com/')]");
  4830. addObsoleteHost("mojofile\\.com\/\\w+","//a[contains(@href,'mojofile.com/')]");
  4831. addObsoleteHost("cloudcache\\.cc\/\\w+","//a[contains(@href,'cloudcache.cc/')]");
  4832. addObsoleteHost("1hostclick\\.com\/\\w+","//a[contains(@href,'1hostclick.com/')]");
  4833. addObsoleteHost("4bytez\\.com\/\\w+","//a[contains(@href,'4bytez.com/')]");
  4834. addObsoleteHost("uploadking\\.com\/\\w+","//a[contains(@href,'uploadking.com/')]");
  4835. addObsoleteHost("nahraj\\.cz\/(?:content|down)\/\\w+","//a[contains(@href,'nahraj.cz/')]");
  4836. addObsoleteHost("megarapid\\.eu\/files\/\\d+","//a[contains(@href,'megarapid.eu/files')]");
  4837. addObsoleteHost("(?:fileserve|uploadstation)\\.com\/(?:file|list)\/\\w+","//a[contains(@href,'fileserve.com/') or contains(@href,'uploadstation.com/')]");
  4838. addObsoleteHost("uploadhere\\.com\/\\w+","//a[contains(@href,'uploadhere.com/')]");
  4839. addObsoleteHost("dualshare\\.com\/\\w+","//a[contains(@href,'dualshare.com/')]");
  4840. addObsoleteHost("yourfilehost\\.com\/media","//a[contains(@href,'yourfilehost.com/media')]");
  4841. addObsoleteHost("ftp2share\\.com\/file\/\\w+","//a[contains(@href,'ftp2share.com/file')]");
  4842. addObsoleteHost("storeandserve\\.com\/download\/\\d+","//a[contains(@href,'storeandserve.com/download')]");
  4843. addObsoleteHost("mountfile\\.com\/file(?:\/\\w+){2}","//a[contains(@href,'mountfile.com/file')]");
  4844. addObsoleteHost("save\\.am\/files\/\\w+","//a[contains(@href,'save.am/files')]");
  4845. addObsoleteHost("transitfiles\\.com\/dl\/\\w+","//a[contains(@href,'transitfiles.com/dl')]");
  4846. addObsoleteHost("smartuploader\\.com\/file\\.php\\?f=\\d+","//a[contains(@href,'smartuploader.com/file.php?=')]");
  4847. addObsoleteHost("skipfile\\.com\/\\w+","//a[contains(@href,'skipfile.com/')]");
  4848. addObsoleteHost("stahnu\\.to\/[\\w\\?]+","//a[contains(@href,'stahnu.to/')]");
  4849. addObsoleteHost("flyshare\.cz\/(?:stahni\/|)\\d+","//a[contains(@href,'flyshare.cz/')]");
  4850. addObsoleteHost("(?:ddlani\\.me|ddlanime\\.com)\/\\w+","//a[contains(@href,'ddlani.me/') or contains(@href,'ddlanime.com/')]");
  4851. addObsoleteHost("loadly\\.com\/\\w+","//a[contains(@href,'loadly.com/')]");
  4852. addObsoleteHost("groovefile\\.com\/\\w+","//a[contains(@href,'groovefile.com/')]");
  4853. addObsoleteHost("filezlot\\.com\/\\w+","//a[contains(@href,'filezlot.com/')]");
  4854. addObsoleteHost("shareator\\.(?:net|com)\/\\w+","//a[contains(@href,'shareator.')]");
  4855. addObsoleteHost("yabadaba\\.ru\/files\/","//a[contains(@href,'yabadaba.ru/files/')]");
  4856. addObsoleteHost("rapidhide\\.com\/download\\.php\\?file=\\w+","//a[contains(@href,'rapidhide.com/download.php')]");
  4857. addObsoleteHost("filejungle\\.com\/[fl]\/\\w+","//a[contains(@href,'filejungle.com/')]");
  4858. addObsoleteHost("kewlshare\\.com\/dl\/\\d+","//a[contains(@href,'kewlshare.com/dl')]");
  4859. addObsoleteHost("petandrive\\.com\/file\/\\w+","//a[contains(@href,'petandrive.com/file')]");
  4860. addObsoleteHost("onionshare\\.com\/\\w+","//a[contains(@href,'onionshare.com/')]");
  4861. addObsoleteHost("rapidable\\.com\/\\w+\/download\\.php\\?id=","//a[contains(@href,'rapidable.com/')]");
  4862. addObsoleteHost("filesdump\\.com\/file\/\\w+\/\\d+","//a[contains(@href,'filesdump.com/file')]");
  4863. addObsoleteHost("file2box\\.(?:net|com)\/\\w+","//a[contains(@href,'file2box.')]");
  4864. addObsoleteHost("(?:filesonic|sharingmatrix|wupload)(?:\\.\\w+){1,2}\/(?:file|folder)\/\\w+","//a[contains(@href,'filesonic.') or contains(@href,'sharingmatrix.com') or contains(@href,'wupload.')]");
  4865. addObsoleteHost("wizzupload\\.com\/\\w+","//a[contains(@href,'wizzupload.com/')]");
  4866. addObsoleteHost("bloggerarticles\\.com\/\\w+","//a[contains(@href,'bloggerarticles.com/')]");
  4867. addObsoleteHost("mojedata\\.sk/","//a[contains(@href,'mojedata.sk/')]");
  4868. addObsoleteHost("sharpfile\\.com\/\\w+","//a[contains(@href,'sharpfile.com/')]");
  4869. addObsoleteHost("upgrand\\.com\/\\w+","//a[contains(@href,'upgrand.com/')]");
  4870. addObsoleteHost("nasdilej\\.cz\/\\w+","//a[contains(@href,'nasdilej.cz/')]");
  4871. addObsoleteHost("mediatack\\.cz\/stahuj/\\w+","//a[contains(@href,'mediatack.cz/stahuj/')]");
  4872. addObsoleteHost("share-it\\.to\/file/\\w+","//a[contains(@href,'share-it.to/file/')]");
  4873. addObsoleteHost("primeupload\\.com\/file/\\w+","//a[contains(@href,'primeupload.com/file/')]");
  4874. addObsoleteHost("(?:uploads\\.glumbo|glumbouploads)\\.com\/\\w+","//a[contains(@href,'uploads.glumbo.com') or contains(@href,'glumbouploads.com')]");
  4875. addObsoleteHost("filebeer\\.info\/\\w+","//a[contains(@href,'filebeer.info/')]");
  4876. addObsoleteHost("baberepublic\\.com\/link\/\\w+","//a[contains(@href,'baberepublic.com/link/')]");
  4877. addObsoleteHost("xtu\\.me\/\\w+","//a[contains(@href,'xtu.me/')]");
  4878. addObsoleteHost("sharebase\\.de\/files\/\\w+","//a[contains(@href,'sharebase.de/files/')]");
  4879. addObsoleteHost("filerobo\\.com\/\\w+","//a[contains(@href,'filerobo.com/')]");
  4880. addObsoleteHost("filevelocity\\.com\/\\w+","//a[contains(@href,'filevelocity.com/')]");
  4881. addObsoleteHost("filezpro\\.com\/\\w+","//a[contains(@href,'filezpro.com/')]");
  4882. addObsoleteHost("file4sharing\\.com\/\\w+","//a[contains(@href,'file4sharing.com/')]");
  4883. addObsoleteHost("cing\\.be\/\\w+","//a[contains(@href,'cing.be/')]");
  4884. addObsoleteHost("ufile\\.eu\/\\w+","//a[contains(@href,'ufile.eu/')]");
  4885. addObsoleteHost("pigsonic\\.com\/\\w+","//a[contains(@href,'pigsonic.com/')]");
  4886. addObsoleteHost("fileupped\\.com\/\\w+","//a[contains(@href,'fileupped.com/')]");
  4887. addObsoleteHost("sharerun\\.com\/\\w+","//a[contains(@href,'sharerun.com/')]");
  4888. addObsoleteHost("rapidslnare\\.com\/\\w+","//a[contains(@href,'rapidslnare.com/')]");
  4889. addObsoleteHost("monsteruploads\\.eu\/\\w+","//a[contains(@href,'monsteruploads.eu/')]");
  4890. addObsoleteHost("b9bb\\.com\/\\w+","//a[contains(@href,'b9bb.com/')]");
  4891. addObsoleteHost("jamber\\.info\/\\w+","//a[contains(@href,'jamber.info/')]");
  4892. addObsoleteHost("(?:megaftp|MegaFTP)\\.com\/\\w+","//a[contains(@href,'megaftp.com/') or contains(@href,'MegaFTP.com/')]");
  4893. addObsoleteHost("desiupload\\.net\/\\?d=\\w+","//a[contains(@href,'desiupload.net/')]");
  4894. addObsoleteHost("file27\\.com\/\\w+","//a[contains(@href,'file27.com/')]");
  4895. addObsoleteHost("yastorage\\.com\/\\w+","//a[contains(@href,'yastorage.com/')]");
  4896. addObsoleteHost("filehost\\.ws\/\\w+","//a[contains(@href,'filehost.ws/')]");
  4897. addObsoleteHost("copyload\\.com\/\\w+","//a[contains(@href,'copyload.com/')]");
  4898. addObsoleteHost("venusfile\\.com\/\\w+","//a[contains(@href,'venusfile.com/')]");
  4899. addObsoleteHost("aieshare\\.com\/\\w+","//a[contains(@href,'aieshare.com/')]");
  4900. addObsoleteHost("fileza\\.net\/\\w+","//a[contains(@href,'fileza.net/')]");
  4901. addObsoleteHost("filerose\\.com\/\\w+","//a[contains(@href,'filerose.com/')]");
  4902. addObsoleteHost("squillion\\.com\/\\w+","//a[contains(@href,'squillion.com/')]");
  4903. addObsoleteHost("fileprohost\\.com\/\\w+","//a[contains(@href,'fileprohost.com/')]");
  4904. addObsoleteHost("bitbonus\\.com\/download\/\\w+","//a[contains(@href,'bitbonus.com/')]");
  4905. addObsoleteHost("warserver\\.cz\/\\w+","//a[contains(@href,'warserver.cz/')]");
  4906. addObsoleteHost("uload\\.to\/\\w+","//a[contains(@href,'uload.to/')]");
  4907. addObsoleteHost("sharedbit\\.net\/\\w+","//a[contains(@href,'sharedbit.net/')]");
  4908. addObsoleteHost("megaload\\.it\/\\w+","//a[contains(@href,'megaload.it/')]");
  4909. addObsoleteHost("filewinds\\.com\/\\w+","//a[contains(@href,'filewinds.com/')]");
  4910. addObsoleteHost("uploadcore\\.com\/\\w+","//a[contains(@href,'uploadcore.com/')]");
  4911. addObsoleteHost("syfiles\\.com\/\\w+","//a[contains(@href,'syfiles.com/')]");
  4912. addObsoleteHost("eyesfile\\.com\/\\w+","//a[contains(@href,'eyesfile.com/')]");
  4913. addObsoleteHost("hotfile\\.com\/\\w+","//a[contains(@href,'hotfile.com/')]");
  4914. addObsoleteHost("superupl\\.com\/\\w+","//a[contains(@href,'superupl.com/')]");
  4915. addObsoleteHost("oteupload\\.com\/\\w+","//a[contains(@href,'oteupload.com/')]");
  4916. addObsoleteHost("henchfile\\.com\/\\w+","//a[contains(@href,'henchfile.com/')]");
  4917. addObsoleteHost("HenchFile\\.com\/\\w+","//a[contains(@href,'HenchFile.com/')]");
  4918. addObsoleteHost("filegag\\.com\/\\w+","//a[contains(@href,'filegag.com/')]");
  4919. addObsoleteHost("filedefend\\.com\/\\w+","//a[contains(@href,'filedefend.com/')]");
  4920. addObsoleteHost("hotfiles\\.ws\/\\w+","//a[contains(@href,'hotfiles.ws/')]");
  4921. addObsoleteHost("share-rapid\\.com\/\\w+","//a[contains(@href,'share-rapid.com/')]");
  4922. //addObsoleteHost("sharerapid\\.cz\/\\w+","//a[contains(@href,'sharerapid.cz/')]");
  4923. addObsoleteHost("rapids\\.cz\/\\w+","//a[contains(@href,'rapids.cz/')]");
  4924. addObsoleteHost("share-credit\\.cz\/\\w+","//a[contains(@href,'share-credit.cz/')]");
  4925. addObsoleteHost("share-central\\.cz\/\\w+","//a[contains(@href,'share-central.cz/')]");
  4926. addObsoleteHost("share-ms\\.cz\/\\w+","//a[contains(@href,'share-ms.cz/')]");
  4927. addObsoleteHost("share-net\\.cz\/\\w+","//a[contains(@href,'share-net.cz/')]");
  4928. addObsoleteHost("srapid\\.cz\/\\w+","//a[contains(@href,'srapid.cz/')]");
  4929. addObsoleteHost("share-rapid\\.cz\/\\w+","//a[contains(@href,'share-rapid.cz/')]");
  4930. addObsoleteHost("wooupload\\.com\/\\w+","//a[contains(@href,'wooupload.com/')]");
  4931. addObsoleteHost("megabitshare\\.com\/\\w+","//a[contains(@href,'megabitshare.com/')]");
  4932. addObsoleteHost("uploking\\.com\/\\w+","//a[contains(@href,'uploking.com/')]");
  4933. addObsoleteHost("esnips\\.com\/\\w+","//a[contains(@href,'esnips.com/')]");
  4934. addObsoleteHost("uplly\\.com\/\\w+","//a[contains(@href,'uplly.com/')]");
  4935. addObsoleteHost("ufox\\.com\/\\w+","//a[contains(@href,'ufox.com/')]");
  4936. addObsoleteHost("ryushare\\.com\/\\w+","//a[contains(@href,'ryushare.com/')]");
  4937. addObsoleteHost("clz\\.to\/\\w+","//a[contains(@href,'clz.to/')]");
  4938. addObsoleteHost("cloudzer\\.net\/\\w+","//a[contains(@href,'cloudzer.net/')]");
  4939. addObsoleteHost("cloudzer\\.com\/\\w+","//a[contains(@href,'cloudzer.com/')]");
  4940. addObsoleteHost("extabit\\.com\/\\w+","//a[contains(@href,'extabit.com/')]");
  4941. addObsoleteHost("uploadwaste\\.com\/\\w+","//a[contains(@href,'uploadwaste.com/')]");
  4942. addObsoleteHost("247upload\\.com\/\\w+","//a[contains(@href,'uploadwaste.com/')]");
  4943. addObsoleteHost("2download\\.de\/\\w+","//a[contains(@href,'2download.de/')]");
  4944. addObsoleteHost("4fastfile\\.com\/\\w+","//a[contains(@href,'4fastfile.com/')]");
  4945. addObsoleteHost("asixfiles\\.com\/\\w+","//a[contains(@href,'asixfiles.com/')]");
  4946. addObsoleteHost("berofile\\.com\/\\w+","//a[contains(@href,'berofile.com/')]");
  4947. addObsoleteHost("bigupload\\.com\/\\w+","//a[contains(@href,'bigupload.com/')]");
  4948. addObsoleteHost("cepzo\\.com\/\\w+","//a[contains(@href,'cepzo.com/')]");
  4949. addObsoleteHost("czshare\\.com\/\\w+","//a[contains(@href,'czshare.com/')]");
  4950. addObsoleteHost("clouds\\.to\/\\w+","//a[contains(@href,'clouds.to/')]");
  4951. addObsoleteHost("cobrashare\\.sk\/\\w+","//a[contains(@href,'cobrashare.sk/')]")
  4952. addObsoleteHost("coraldrive\\.net\/\\w+","//a[contains(@href,'coraldrive.net/')]")
  4953. addObsoleteHost("cyberlocker\\.ch\/\\w+","//a[contains(@href,'cyberlocker.ch/')]")
  4954. }
  4955. //obsolete file hosts init end
  4956.  
  4957. function addFileHost(linkRegex, isAliveRegex, isDeadRegex, isUnavaRegex, xpathEx, tryLoop, ispremRegex)
  4958. {
  4959. var host = new Array(7);
  4960. host[0] = linkRegex;
  4961. host[1] = isAliveRegex;
  4962. host[2] = isDeadRegex;
  4963. host[3] = isUnavaRegex;
  4964. host[6] = ispremRegex;
  4965. host[4] = xpathEx;
  4966. tryLoop ? host[5] = true : host[5] = false;
  4967. http_file_hosts.push(host);
  4968. }
  4969. if (GM_getValue("Check_megafileupload_dot_com_links", false))
  4970. {
  4971. addFileHost(
  4972. "megafileupload\.com\/..\/file\/",
  4973. 'downloadbtn',
  4974. 'is not found',
  4975. 'optional--',
  4976. "//a[contains(@href,'megafileupload.com')]");
  4977. }
  4978. if (GM_getValue("Check_demo_dot_ovh_dot_com_links", false))
  4979. {
  4980. addFileHost(
  4981. "demo\\.ovh\\.com\/\\w+\/\\w+",
  4982. 'download\\.gif"',
  4983. 'p_point">',
  4984. 'optional--',
  4985. "//a[contains(@href,'demo.ovh.com')]");
  4986. }
  4987. if (GM_getValue("Check_safelinking_dot_net_links", false))
  4988. {
  4989. addFileHost(
  4990. "safelinking\\.net\/p\/\\w+",
  4991. 'color:green;"',
  4992. 'color:(?:red|orange);"',
  4993. 'color:(?:grey|brown);"',
  4994. "//a[contains(@href,'safelinking.net/p/')]",
  4995. true);
  4996. }
  4997. if (GM_getValue("Check_ultramegabit_dot_com_links", false))
  4998. {
  4999. addFileHost(
  5000. "ultramegabit\\.com\/file\/details\/[\\w+-]",
  5001. 'name="recaptcha_response',
  5002. '="/folder/add"|>File (?:not found|restricted|has been deleted)|<title>ULTRAMEGABIT</title>',
  5003. 'btn-large btn-danger">|Account limitation notice|502 Bad Gateway',
  5004. "//a[contains(@href,'ultramegabit.com/file')]",
  5005. true);
  5006. }
  5007. if (GM_getValue("Check_fastshare_dot_cz_links", false))
  5008. {
  5009. addFileHost(
  5010. "fastshare\\.cz\/\\d+\/\\w*",
  5011. 'dwntable">',
  5012. 'nebyla nalezena|nebola nájdená|nie została odnaleziona|color:red;font-weight:bold;border\\-style:dashed',
  5013. 'optional--',
  5014. "//a[contains(@href,'fastshare.cz')]");
  5015. }
  5016. if (GM_getValue("Check_fastshare_dot_org_links", false))
  5017. {
  5018. addFileHost(
  5019. "[fF]ast[sS]hare\\.org\/download",
  5020. 'Download ">',
  5021. 'Diese Datei wurde wegen|wurde kein Dateiname',
  5022. 'optional--',
  5023. "//a[contains(@href,'fastshare.org/download') or contains(@href,'FastShare.org/download')]");
  5024. }
  5025. if (GM_getValue("Check_partage_dash_facile_dot_com_links", false))
  5026. {
  5027. addFileHost(
  5028. "partage-facile\.com\/\\w+",
  5029. 'class="title"><strong>|colspan="2"',
  5030. 'Page introuvable|class="alert-message',
  5031. 'optional--',
  5032. "//a[contains(@href,'partage-facile.com')]");
  5033. }
  5034. if (GM_getValue("Check_uploadorb_dot_com_links", false))
  5035. {
  5036. addFileHost(
  5037. "uploadorb\\.com\/\\w+",
  5038. 'op" value="download',
  5039. 'class="err">|width:500px;text-align:left;">',
  5040. 'optional--',
  5041. "//a[contains(@href,'uploadorb.com')]");
  5042. }
  5043. if (GM_getValue("Check_1fichier_dot_com_links", false))
  5044. {
  5045. addFileHost(
  5046. "\\w{10}\\.(?:1fichier|dl4free)\\.com\/",
  5047. 'form-button" name="submit"',
  5048. 'margin:auto;padding-bottom:20px">',
  5049. 'optional--',
  5050. "//a[contains(@href,'1fichier.com/') or contains(@href,'dl4free.com/')]"
  5051. );
  5052. }
  5053. if (GM_getValue("Check_rapidgator_dot_net_links", false))
  5054. {
  5055. addFileHost(
  5056. "rapidgator\\.net\/file\/\\w+",
  5057. '/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',
  5058. 'Error 404|File not found',
  5059. 'optional--',
  5060. //'optional--',
  5061. "//a[contains(@href,'rapidgator.net/file')]",
  5062. true
  5063. );
  5064. }
  5065. if (GM_getValue("Check_bayfiles_dot_com_links", false))
  5066. {
  5067. addFileHost(
  5068. "bayfiles\\.com\/file\/\\w+\/\\w+",
  5069. 'download\\-header">',
  5070. 'class="not-found">',
  5071. 'optional--',
  5072. "//a[contains(@href,'bayfiles.com/file')]"
  5073. );
  5074. }
  5075. if (GM_getValue("Check_erofly_dot_cz_links", false))
  5076. {
  5077. addFileHost(
  5078. "erofly\\.(?:cz|sk|pl)\/\\d+_\\w*",
  5079. 'down-button">',
  5080. 'dokument nebyl nalezen|nie został znaleziony|nebol nájdený',
  5081. 'optional--',
  5082. "//a[contains(@href,'erofly.')]"
  5083. );
  5084. }
  5085. if (GM_getValue("Check_relink_dot_us_links", false))
  5086. {
  5087. addFileHost(
  5088. "relink\\.us\/(?:f\/\\w+|go\\.php\\?id=\\d+|view\\.php\\?id=\\d+)",
  5089. 'online_detail\\.png" alt="Status',
  5090. '(?:offline|partially)_detail\\.png" alt="Status|File deleted',
  5091. 'unknown_detail\\.png" alt="Status',
  5092. "//a[contains(@href,'relink.us/')]"
  5093. );
  5094. }
  5095. if (GM_getValue("Check_uploadstube_dot_de_links", false))
  5096. {
  5097. addFileHost(
  5098. "uploadstube\\.de\/download\\.php\\?file=\\d+",
  5099. 'div id="dl"',
  5100. 'Sie haben den Link falsch',
  5101. 'optional--',
  5102. "//a[contains(@href,'uploadstube.de/download.php?file=')]"
  5103. );
  5104. }
  5105. if (GM_getValue("Check_flyfiles_dot_net_links", false))
  5106. {
  5107. addFileHost(
  5108. "flyfiles\\.net\/\\w+",
  5109. 'download_button"|"Download file"',
  5110. 'File not found!|Файл не найден',
  5111. 'optional--',
  5112. "//a[contains(@href,'flyfiles.net/')]"
  5113. );
  5114. }
  5115. if (GM_getValue("Check_wikiupload_dot_com_links", false))
  5116. {
  5117. addFileHost(
  5118. "wikiupload\\.com\/\\w+",
  5119. 'download-button">',
  5120. 'Sorry, File not found',
  5121. 'optional--',
  5122. "//a[contains(@href,'wikiupload.com/')]"
  5123. );
  5124. }
  5125. if (GM_getValue("Check_hostuje_dot_net_links", false))
  5126. {
  5127. addFileHost(
  5128. "hostuje\\.net\/file\\.php\\?id=\\w+",
  5129. 'file\\.php">',
  5130. 'Podany plik nie zosta',
  5131. 'optional--',
  5132. "//a[contains(@href,'hostuje.net/file')]"
  5133. );
  5134. }
  5135. if (GM_getValue("Check_gettyfile_dot_ru_links", false))
  5136. {
  5137. addFileHost(
  5138. "gettyfile\\.ru\/\\d+",
  5139. 'download\\.gif border',
  5140. '<center><font size="3">',
  5141. 'optional--',
  5142. "//a[contains(@href,'gettyfile.ru/')]"
  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_fileape_dot_com_links", false))
  5458. {
  5459. addFileHost(
  5460. "fileape\\.com\/download\\-",
  5461. 'button_dl\\.png',
  5462. 'does not exist\\.',
  5463. 'optional--',
  5464. "//a[contains(@href,'fileape.com/')]"
  5465. );
  5466. }
  5467. if (GM_getValue("Check_uppit_dot_com_links", false))
  5468. {
  5469. addFileHost(
  5470. "(?:uppit\\.com|up\\.ht)\/\\w+",
  5471. 'op" value="download',
  5472. 'class="err">|style="width:500px;text-align:left;"|fish-404\\.png"',
  5473. 'optional--',
  5474. "//a[contains(@href,'up.ht/') or contains(@href,'uppit.com/')]",
  5475. true
  5476. );
  5477. }
  5478. if (GM_getValue("Check_maxshare_dot_pl_links", false))
  5479. {
  5480. addFileHost(
  5481. "maxshare\\.pl\/download\\.php\\?dl=\\w+",
  5482. 'class="pobierz"',
  5483. 'class="wyszuskiwarkabg"',
  5484. 'optional--',
  5485. "//a[contains(@href,'maxshare.pl/download.php')]",
  5486. true
  5487. );
  5488. }
  5489. if (GM_getValue("Check_nosupload_dot_com_links", false))
  5490. {
  5491. addFileHost(
  5492. "nosupload\\.com\/(?:\\?d=)?\\w+",
  5493. 'op" value="download',
  5494. '>File Not Found<',
  5495. 'optional--',
  5496. "//a[contains(@href,'nosupload.com')]",
  5497. true
  5498. );
  5499. }
  5500. if (GM_getValue("Check_filesin_dot_com_links", false))
  5501. {
  5502. addFileHost(
  5503. "filesin\\.com\/\\w+\/download\\.html",
  5504. 'download_area">',
  5505. 'error_note">',
  5506. 'optional--',
  5507. "//a[contains(@href,'filesin.com/')]",
  5508. true
  5509. );
  5510. }
  5511. if (GM_getValue("Check_nowdownload_dot_eu_links", false))
  5512. {
  5513. addFileHost(
  5514. "nowdownload\\.eu\/dl\/\\w+",
  5515. 'alert-success"',
  5516. 'This file does not exist!',
  5517. 'The file is being transfered',
  5518. "//a[contains(@href,'nowdownload.eu/dl')]"
  5519. );
  5520. }
  5521. if (GM_getValue("Check_egofiles_dot_com_links", false))
  5522. {
  5523. addFileHost(
  5524. "egofiles\\.com\/\\w+",
  5525. 'dwn-button"',
  5526. '404 File not found',
  5527. 'optional--',
  5528. "//a[contains(@href,'egofiles.com/')]"
  5529. );
  5530. }
  5531. if (GM_getValue("Check_axifile_dot_com_links", false))
  5532. {
  5533. addFileHost(
  5534. "axifile\\.com(?:\/\w(2))?\/\\??\\w+",
  5535. 'Dbutton_big"',
  5536. 'download\\-error\\.php',
  5537. 'optional--',
  5538. "//a[contains(@href,'axifile.com/')]"
  5539. );
  5540. }
  5541. if (GM_getValue("Check_asfile_dot_com_links", false))
  5542. {
  5543. addFileHost(
  5544. "asfile\\.com\/file\/\\w+",
  5545. '<div class="red_button ">|id="download_button"',
  5546. 'Page not found|padding: 0 200px 300px;">|does not exist|>File is deleted<|Delete Reason: Self removed',
  5547. 'optional--',
  5548. "//a[contains(@href,'asfile.com/file')]"
  5549. );
  5550. }
  5551. if (GM_getValue("Check_hulkshare_dot_com_links", false))
  5552. {
  5553. addFileHost(
  5554. "hulkshare\.com\/\\w+",
  5555. 'download\.sam\.png|This is a private file|id="filename',
  5556. 'File does not exist|fingerprint protected copyright',
  5557. 'optional--',
  5558. "//a[contains(@href,'hulkshare.com')]"
  5559. );
  5560. }
  5561. if (GM_getValue("Check_filedino_dot_com_links", false))
  5562. {
  5563. addFileHost(
  5564. "filedino\\.com\\/\\w+",
  5565. 'runninggreen"',
  5566. 'width:500px;|File Not Found',
  5567. 'optional--',
  5568. "//a[contains(@href,'filedino.com')]"
  5569. );
  5570. }
  5571. if (GM_getValue("Check_turbobit_dot_net_links", false)) //folders
  5572. {
  5573. addFileHost(
  5574. "turbobit\\.(?:net|pl)\/download\/folder\/\\d+",
  5575. 'col-1">\\s*<s',
  5576. 'col-1">\\s*<h',
  5577. 'optional--',
  5578. "//a[contains(@href,'turbobit.') and contains(@href,'download/folder')]"
  5579. );
  5580. }
  5581. if (GM_getValue("Check_hitfile_dot_net_links", false)) //folders
  5582. {
  5583. addFileHost(
  5584. "hitfile\\.net\/download\/folder\/\\d+",
  5585. 'content">\\s*<s',
  5586. 'content">\\s*<h',
  5587. 'optional--',
  5588. "//a[contains(@href,'hitfile.net/download/folder')]"
  5589. );
  5590. }
  5591. if (GM_getValue("Check_netload_dot_in_links", false)) //folders
  5592. {
  5593. addFileHost(
  5594. "netload\\.in\/folder\\.php\\?folder_id=\\w+",
  5595. 'images\/online\\.gif',
  5596. 'InPage_Error"',
  5597. 'optional--',
  5598. "//a[contains(@href,'netload.in/folder.php')]"
  5599. );
  5600. }
  5601. if (GM_getValue("Check_movshare_dot_net_links", false))
  5602. {
  5603. addFileHost(
  5604. "movshare\\.net\\/video\\/\\w+",
  5605. 'optional--"',
  5606. 'no longer exists',
  5607. 'optional--',
  5608. "//a[contains(@href,'movshare.net/video')]"
  5609. );
  5610. }
  5611. if (GM_getValue("Check_plunder_dot_com_links", false))
  5612. {
  5613. addFileHost(
  5614. "plunder\.com\/\\w+",
  5615. 'x\/download\\.gif',
  5616. '404 - File or directory not found.',
  5617. 'optional--',
  5618. "//a[contains(@href,'plunder.com')]"
  5619. );
  5620. }
  5621. if (GM_getValue("Check_mafiastorage_dot_com_links", false))
  5622. {
  5623. addFileHost(
  5624. "mafiastorage\\.com\/\\w+",
  5625. 'op" value="download',
  5626. 'class="err">|style="width:500px;text-align:left;"',
  5627. 'optional--',
  5628. "//a[contains(@href,'mafiastorage.com/')]"
  5629. );
  5630. }
  5631. if (GM_getValue("Check_uploadspace_dot_pl_links", false))
  5632. {
  5633. addFileHost(
  5634. "uploadspace\.pl\/plik\\w+",
  5635. 'Downloading .+? \\|',
  5636. 'Downloading a file',
  5637. 'optional--',
  5638. "//a[contains(@href,'uploadspace.pl/plik')]"
  5639. );
  5640. }
  5641. if (GM_getValue("Check_hipfile_dot_com_links", false))
  5642. {
  5643. addFileHost(
  5644. "hipfile\\.com\/\\w+",
  5645. 'op" value="download',
  5646. 'File Not Found<',
  5647. 'optional--',
  5648. "//a[contains(@href,'hipfile.com')]"
  5649. );
  5650. }
  5651. if (GM_getValue("Check_uploadingit_dot_com_links", false))
  5652. {
  5653. addFileHost(
  5654. "uploadingit\\.com\/file\/\\w+",
  5655. 'downloadTitle">',
  5656. 'deleteContent">',
  5657. 'optional--',
  5658. "//a[contains(@href,'uploadingit.com/file')]"
  5659. );
  5660. }
  5661. if (GM_getValue("Check_rapidshare_dot_ru_links", false))
  5662. {
  5663. addFileHost(
  5664. "rapidshare\\.ru\/\\d+",
  5665. 'Вы хотите скачать файл:',
  5666. 'Ошибка: Файл был',
  5667. 'optional--',
  5668. "//a[contains(@href,'rapidshare.ru/')]"
  5669. );
  5670. }
  5671. if (GM_getValue("Check_rghost_dot_net_links", false))
  5672. {
  5673. addFileHost(
  5674. "rghost\.(?:net|ru)\/(?:|private\/)\\d+",
  5675. 'download_link|btn large download"',
  5676. 'file is restricted|File is deleted|503 Service Unavailable',
  5677. 'File was deleted',
  5678. "//a[contains(@href,'rghost.')]"
  5679. );
  5680. }
  5681. if (GM_getValue("Check_xdisk_dot_cz_links", false))
  5682. {
  5683. addFileHost(
  5684. "xdisk\\.cz\/(?:..\/)?download\\.php\\?id=\\w+",
  5685. '">Staženo:\\s*<\/span>',
  5686. 'Soubor, který hledáte nenalezen',
  5687. 'optional--',
  5688. "//a[contains(@href,'xdisk.cz/')]"
  5689. );
  5690. }
  5691. if (GM_getValue("Check_expressleech_dot_com_links", false))
  5692. {
  5693. addFileHost(
  5694. "expressleech\.com\/\\w+",
  5695. 'src="/img/Download.gif"|var _gaq =',
  5696. 'var rr =|403 Forbidden',
  5697. 'optional--',
  5698. "//a[contains(@href,'expressleech.com')]");
  5699. }
  5700. if (GM_getValue("Check_2downloadz_dot_com_links", false))
  5701. {
  5702. addFileHost(
  5703. "2downloadz\.com\/\\w+",
  5704. 'color="#848484|src="images/Download.png"|color:#238DCA',
  5705. 'color="#006DCC|File error',
  5706. 'optional--',
  5707. "//a[contains(@href,'2downloadz.com')]");
  5708. }
  5709. if (GM_getValue("Check_megafiles_dot_se_links", false))
  5710. {
  5711. addFileHost(
  5712. "megafiles\.se\/\\w+",
  5713. 'solvemedia.com',
  5714. '"BACKGROUND-COLOR: blue"|File Not Found',
  5715. 'optional--',
  5716. "//a[contains(@href,'megafiles.se')]");
  5717. }
  5718. if (GM_getValue("Check_davvas_dot_com_links", false))
  5719. {
  5720. addFileHost(
  5721. "davvas\.com\/\\w+",
  5722. 'width="830px|color:#29b2e0',
  5723. 'var rr =|width:500px',
  5724. 'optional--',
  5725. "//a[contains(@href,'davvas.com')]");
  5726. }
  5727. if (GM_getValue("Check_fileom_dot_com_links", false))
  5728. {
  5729. addFileHost(
  5730. "fileom\.com\/\\w+",
  5731. 'Filename:|<span class="size">',
  5732. 'File Not Found|class="err">',
  5733. 'optional--',
  5734. "//a[contains(@href,'fileom.com')]");
  5735. }
  5736. if (GM_getValue("Check_mightyupload_dot_com_links", false))
  5737. {
  5738. addFileHost(
  5739. "mightyupload\.com\/\\w+",
  5740. 'background:#ccc;text-align|CONTENT="Download File"',
  5741. 'style="background:#eee|var rr =|File Not Found',
  5742. 'optional--',
  5743. "//a[contains(@href,'mightyupload.com')]");
  5744. }
  5745. if (GM_getValue("Check_uncapped_dash_downloads_dot_com_links", false))
  5746. {
  5747. addFileHost(
  5748. "uncapped-downloads\.com\/\\w+",
  5749. 'btn_download',
  5750. 'File Not Found',
  5751. 'optional--',
  5752. "//a[contains(@href,'uncapped-downloads.com')]");
  5753. }
  5754. if (GM_getValue("Check_k2s_dot_cc_links", false))
  5755. {
  5756. addFileHost(
  5757. "k2s\.cc\/\\w+",
  5758. 'Click here for slow download with|class="btn" id="yw0"',
  5759. 'Error 404|class="errorSummary">|this file is blocked or deleted|>404 Not Found<|To avoid damaged files|This file is no longer available',
  5760. 'please try later',
  5761. //'optional--',
  5762. "//a[contains(@href,'k2s.cc')]");
  5763. }
  5764. if (GM_getValue("Check_keep2share_dot_cc_links", false))
  5765. {
  5766. addFileHost(
  5767. "keep2share\.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|This file is no longer available',
  5770. 'please try later',
  5771. //'optional--',
  5772. "//a[contains(@href,'keep2share.cc')]");
  5773. }
  5774. if (GM_getValue("Check_keep2s_dot_cc_links", false))
  5775. {
  5776. addFileHost(
  5777. "keep2s\.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|This file is no longer available',
  5780. 'please try later',
  5781. //'optional--',
  5782. "//a[contains(@href,'keep2s.cc')]");
  5783. }
  5784. if (GM_getValue("Check_keep2share_dot_com_links", false))
  5785. {
  5786. addFileHost(
  5787. "keep2share\.com\/\\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|This file is no longer available',
  5790. 'please try later',
  5791. //'optional--',
  5792. "//a[contains(@href,'keep2share.com')]");
  5793. }
  5794. if (GM_getValue("Check_anysend_dot_com_links", false))
  5795. {
  5796. addFileHost(
  5797. "anysend\.com\/\\w+",
  5798. 'var openCalled=false;|content="noindex"',
  5799. '_trackPageview',
  5800. 'optional--',
  5801. "//a[contains(@href,'anysend.com')]");
  5802. }
  5803. if (GM_getValue("Check_datafile_dot_com_links", false))
  5804. {
  5805. addFileHost(
  5806. "datafile\.com\/\\w+",
  5807. 'src="/js/files_download.js"',
  5808. 'ErrorCode|class="error-msg"',
  5809. 'optional--',
  5810. //'optional--',
  5811. "//a[contains(@href,'datafile.com')]");
  5812. }
  5813. if (GM_getValue("Check_upstore_dot_net_links", false))
  5814. {
  5815. addFileHost(
  5816. "upstore\.net\/\\w+",
  5817. 'style="margin-top: 20px">|style="text-align:center; margin: 20px 0 100px;">',
  5818. 'File not found|onload="redirect|class="error">',
  5819. 'optional--',
  5820. "//a[contains(@href,'upstore.net')]");
  5821. }
  5822. if (GM_getValue("Check_upsto_dot_re_links", false))
  5823. {
  5824. addFileHost(
  5825. "upsto\.re\/\\w+",
  5826. 'style="margin-top: 20px">|style="text-align:center; margin: 20px 0 100px;">',
  5827. 'File not found|onload="redirect|class="error">',
  5828. 'optional--',
  5829. "//a[contains(@href,'upsto.re')]");
  5830. }
  5831. if (GM_getValue("Check_usefile_dot_com_links", false))
  5832. {
  5833. addFileHost(
  5834. "usefile\.com\/\\w+",
  5835. 'pay_modes input|background:#bbb',
  5836. 'File Not Found|var rr =',
  5837. 'optional--',
  5838. "//a[contains(@href,'usefile.com')]");
  5839. }
  5840. if (GM_getValue("Check_speedy_dot_sh_links", false))
  5841. {
  5842. addFileHost(
  5843. "speedy\.sh\/\\w+",
  5844. 'bgcolor=#eeeeee|class="addthis',
  5845. 'File not found|downloadfilenamenotfound>',
  5846. 'optional--',
  5847. "//a[contains(@href,'speedy.sh')]");
  5848. }
  5849. if (GM_getValue("Check_sanshare_dot_com_links", false))
  5850. {
  5851. addFileHost(
  5852. "sanshare\.com\/\\w+",
  5853. 'SANSHARE_TOPBANNER|offset-1"><h3><b>Download File',
  5854. 'offset-1"><b>File Not Found<|width:500px;text-align',
  5855. 'optional--',
  5856. "//a[contains(@href,'sanshare.com')]");
  5857. }
  5858. if (GM_getValue("Check_dizzcloud_dot_com_links", false))
  5859. {
  5860. addFileHost(
  5861. "dizzcloud\.com\/\\w+",
  5862. '2299210355.png"|class="name"',
  5863. 'span>404|class="cyan upgrade"',
  5864. 'optional--',
  5865. "//a[contains(@href,'dizzcloud.com')]");
  5866. }
  5867. if (GM_getValue("Check_filedap_dot_com_links", false))
  5868. {
  5869. addFileHost(
  5870. "filedap\.com\/\\w+",
  5871. 'content="1"|CONTENT="Download File|NAME=',
  5872. 'var rr =',
  5873. 'optional--',
  5874. "//a[contains(@href,'filedap.com')]");
  5875. }
  5876. if (GM_getValue("Check_forunesia_dot_com_links", false))
  5877. {
  5878. addFileHost(
  5879. "forunesia\.com\/\\w+",
  5880. 'CONTENT="Download',
  5881. 'var rr =',
  5882. 'optional--',
  5883. "//a[contains(@href,'forunesia.com')]");
  5884. }
  5885. if (GM_getValue("Check_swankshare_dot_com_links", false))
  5886. {
  5887. addFileHost(
  5888. "swankshare\.com\/\\w+",
  5889. 'CONTENT="Download',
  5890. 'var rr =',
  5891. 'optional--',
  5892. "//a[contains(@href,'swankshare.com')]");
  5893. }
  5894. if (GM_getValue("Check_filevice_dot_com_links", false))
  5895. {
  5896. addFileHost(
  5897. "filevice\.com\/\\w+",
  5898. 'font style="font-size:12px;|cellpadding="3"',
  5899. 'class="err"|File Not Found',
  5900. 'optional--',
  5901. "//a[contains(@href,'filevice.com')]");
  5902. }
  5903. if (GM_getValue("Check_kingfiles_dot_net_links", false))
  5904. {
  5905. addFileHost(
  5906. "kingfiles\.net\/\\w+",
  5907. 'color:#727071|<table width="830px" border="0"',
  5908. 'var rr =|"description" CONTENT="Download File ">|<div style="width:500px;text-align:left;">',
  5909. 'optional--',
  5910. "//a[contains(@href,'kingfiles.net')]");
  5911. }
  5912. if (GM_getValue("Check_uploadhero_dot_co_links", false))
  5913. {
  5914. addFileHost(
  5915. "uploadhero\\.co\/dl\/\\w+",
  5916. 'class="nom_de_fichier"|Unlimited downloads|Estimated download time|Lien de téléchargement"',
  5917. 'not available on our server|pas disponible sur nos serveurs|Le lien du fichier est incorrect',
  5918. 'optional--',
  5919. "//a[contains(@href,'uploadhero.co/dl')]"
  5920. );
  5921. }
  5922. if (GM_getValue("Check_secureupload_dot_eu_links", false))
  5923. {
  5924. addFileHost(
  5925. "secureupload\\.eu\/\\w+",
  5926. 'Downloading',
  5927. 'cannot be found|File Not Found',
  5928. 'optional--',
  5929. "//a[contains(@href,'secureupload.eu')]"
  5930. );
  5931. }
  5932. if (GM_getValue("Check_ge_dot_tt_links", false))
  5933. {
  5934. addFileHost(
  5935. "ge\.tt\/\\w+",
  5936. 'downloads pic',
  5937. 'is NOT the same as',
  5938. 'optional--',
  5939. "//a[contains(@href,'ge.tt')]");
  5940. }
  5941. if (GM_getValue("Check_filefactory_dot_com_links", false))
  5942. {
  5943. addFileHost(
  5944. "filefactory\.com\/\\w+",
  5945. 'div id="file_holder"',
  5946. 'File Removed|Invalid Download Link|File Unavailable|Server Failed|Datei entfernt|This file has been removed',
  5947. 'Server Maintenance|temporarily overloaded',
  5948. //'optional--',
  5949. "//a[contains(@href,'filefactory.com')]");
  5950. }
  5951. if (GM_getValue("Check_filesflash_dot_net_links", false))
  5952. {
  5953. addFileHost(
  5954. "filesflash\.net\/\\w+",
  5955. 'align:right">Filename:',
  5956. 'class="msg">',
  5957. 'optional--',
  5958. "//a[contains(@href,'filesflash.net')]");
  5959. }
  5960. if (GM_getValue("Check_rapidgator_dot_net_links", false)) //folders
  5961. {
  5962. addFileHost(
  5963. "rapidgator\\.net\/folder\/\\w+",
  5964. 'href="/folder/',
  5965. 'class="empty|Folder not found|Carpeta no encontrada|Dossier non trouvé|Папка не найдена',
  5966. 'optional--',
  5967. "//a[contains(@href,'rapidgator.net/folder')]",
  5968. true
  5969. );
  5970. }
  5971. if (GM_getValue("Check_redload_dot_net_links", false))
  5972. {
  5973. addFileHost(
  5974. "redload\.net\/\\w+",
  5975. '<Title>Download|CONTENT="Download|width:150px',
  5976. 'Title>Redload.net|CONTENT="redload',
  5977. 'optional--',
  5978. "//a[contains(@href,'redload.net')]");
  5979. }
  5980. if (GM_getValue("Check_salefiles_dot_com_links", false))
  5981. {
  5982. addFileHost(
  5983. "salefiles\.com\/\\w+",
  5984. '<Title>Download|CONTENT="Download',
  5985. 'font:15px Arial|background:#eee;',
  5986. 'optional--',
  5987. "//a[contains(@href,'salefiles.com')]");
  5988. }
  5989. if (GM_getValue("Check_megairon_dot_net_links", false))
  5990. {
  5991. addFileHost(
  5992. "megairon\.net\/\\w+",
  5993. 'border: 5px #ffeb90 solid;',
  5994. 'CONTENT="Download File ">|var rr =',
  5995. 'optional--',
  5996. "//a[contains(@href,'megairon.net')]");
  5997. }
  5998. if (GM_getValue("Check_terafile_dot_co_links", false))
  5999. {
  6000. addFileHost(
  6001. "terafile\.co\/\\w+",
  6002. '<div style="width:900px;">',
  6003. '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;">',
  6004. 'Software error',
  6005. //'optional--',
  6006. "//a[contains(@href,'terafile.co')]");
  6007. }
  6008. if (GM_getValue("Check_terafile_dot_com_links", false))
  6009. {
  6010. addFileHost(
  6011. "terafile\.com\/\\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.com')]");
  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_google_dot_com_links", false))
  6260. {
  6261. addFileHost(
  6262. "docs.google.com\/\\w+",
  6263. 'content="!">|color:#2d2d2d',
  6264. '12pt; font-weight:|class="errorMessage"|F0F6FF|Error 404',
  6265. 'optional--',
  6266. "//a[contains(@href,'docs.google.com')]",
  6267. true
  6268. );
  6269. }
  6270. if (GM_getValue("Check_up_dot_media1fire_dot_com_links", false))
  6271. {
  6272. addFileHost(
  6273. "up.media1fire\.com\/\\w+",
  6274. 'class="addthis_|value="download',
  6275. 'var rr =|AVOID_IE_BUG|<div style="width:500px;text-align:left;">',
  6276. 'optional--',
  6277. "//a[contains(@href,'up.media1fire.com')]");
  6278. }
  6279. if (GM_getValue("Check_depfile_dot_com_links", false))
  6280. {
  6281. addFileHost(
  6282. "depfile\.com\/\\w+",
  6283. 'logo_0.png|downloads.gif"',
  6284. 'border-color: #5D729B;|bgcolor="#778AAF"',
  6285. 'optional--',
  6286. "//a[contains(@href,'depfile.com')]");
  6287. }
  6288. if (GM_getValue("Check_uploadinc_dot_com_links", false))
  6289. {
  6290. addFileHost(
  6291. "uploadinc\.com\/\\w+",
  6292. 'class="button pop red|padding:5px 0 5px 0',
  6293. 'class="button mediu green">DMCA|class="err"|var rr =',
  6294. 'optional--',
  6295. "//a[contains(@href,'uploadinc.com')]");
  6296. }
  6297. if (GM_getValue("Check_upshared_dot_com_links", false))
  6298. {
  6299. addFileHost(
  6300. "upshared\.com(?:\/\w(2))?\/\\??\\w+",
  6301. 'name="method_free"',
  6302. 'var rr =|AVOID_IE_BUG|File Not Found|<div style="width:500px;text-align:left;">|not be found',
  6303. 'optional--',
  6304. "//a[contains(@href,'upshared.com')]");
  6305. }
  6306. if (GM_getValue("Check_go4up_dot_com_links", false))
  6307. {
  6308. addFileHost(
  6309. "go4up\.com\/\\w+",
  6310. 'style="width: 100%;">|value="Access',
  6311. '<title>GO4UP|dmca',
  6312. 'optional--',
  6313. "//a[contains(@href,'go4up.com')]");
  6314. }
  6315. if (GM_getValue("Check_dropbox_dot_com_links", false))
  6316. {
  6317. addFileHost(
  6318. "dropbox\.com\/\\w+",
  6319. 'download_button|vflm1l0gN.png',
  6320. 'class="err"|Invalid Link|id="errorbox">Dropbox - 404',
  6321. 'optional--',
  6322. "//a[contains(@href,'dropbox.com')]");
  6323. }
  6324. if (GM_getValue("Check_przeklej_dot_net_links", false))
  6325. {
  6326. addFileHost(
  6327. "przeklej\.net\/\\w+",
  6328. 'file1.png"|icon08.gif"',
  6329. 'return_arrow.png|>Błąd 404|file_has_been_deleted',
  6330. 'optional--',
  6331. "//a[contains(@href,'przeklej.net')]");
  6332. }
  6333. if (GM_getValue("Check_redbunker_dot_net_links", false))
  6334. {
  6335. addFileHost(
  6336. "redbunker\.net\/\\w+",
  6337. 'dload.png|rowspan="3">|yep.gif',
  6338. 'CONTENT="RedBunker|#D3D3D3;|color:#d33|AVOID_IE_BUG',
  6339. 'optional--',
  6340. "//a[contains(@href,'redbunker.net')]");
  6341. }
  6342. if (GM_getValue("Check_divxpress_dot_com_links", false))
  6343. {
  6344. addFileHost(
  6345. "divxpress\.com\/\\w+",
  6346. 'btn_download|logo.png"',
  6347. 'AVOID_IE_BUG|var rr =',
  6348. 'optional--',
  6349. "//a[contains(@href,'divxpress.com')]");
  6350. }
  6351. if (GM_getValue("Check_lemuploads_dot_com_links", false))
  6352. {
  6353. addFileHost(
  6354. "lemuploads\.com\/\\w+",
  6355. 'btn_download|onSubmit="if|captcha',
  6356. 'style="width:500px;text-align:left;">|file was deleted|AVOID_IE_BUG',
  6357. 'optional--',
  6358. "//a[contains(@href,'lemuploads.com')]");
  6359. }
  6360. if (GM_getValue("Check_megarelease_dot_org_links", false))
  6361. {
  6362. addFileHost(
  6363. "megarelease\.org\/\\w+",
  6364. 'btn_download|onSubmit="if|captcha',
  6365. 'style="width:500px;text-align:left;">|file was deleted|AVOID_IE_BUG|mcc.godaddy.com/park',
  6366. 'optional--',
  6367. "//a[contains(@href,'megarelease.org')]");
  6368. }
  6369. if (GM_getValue("Check_anafile_dot_com_links", false))
  6370. {
  6371. addFileHost(
  6372. "anafile\.com\/\\w+",
  6373. 'width="881" valign="top|color="#800080"',
  6374. 'style="width:500px;text-align:left;">|file was deleted|AVOID_IE_BUG',
  6375. 'optional--',
  6376. "//a[contains(@href,'anafile.com')]");
  6377. }
  6378. if (GM_getValue("Check_uploadable_dot_ch_links", false))
  6379. {
  6380. addFileHost(
  6381. "uploadable\\.ch\/file\/\\w+",
  6382. 'captcha.js"|payment.js"|class="btn_download"',
  6383. '<div class="icon_err">|<div class="errorBox">|"error_arrow">',
  6384. 'optional--',
  6385. "//a[contains(@href,'uploadable.ch/file')]",
  6386. true
  6387. );
  6388. }
  6389. if (GM_getValue("Check_wallobit_dot_com_links", false))
  6390. {
  6391. addFileHost(
  6392. "wallobit\.com\/\\w+",
  6393. 'value="Free Download">',
  6394. 'AVOID_IE_BUG|style="background:#eee;font:15px Arial;|var rr = ',
  6395. 'optional--',
  6396. "//a[contains(@href,'wallobit.com')]");
  6397. }
  6398. if (GM_getValue("Check_arabloads_dot_com_links", false))
  6399. {
  6400. addFileHost(
  6401. "arabloads\.com\/\\w+",
  6402. 'name="method_free"|name="method_premium"',
  6403. 'background:#eee;font:15px Arial;">|AVOID_IE_BUG|Verdana;padding:3px;">Error',
  6404. 'optional--',
  6405. "//a[contains(@href,'arabloads.com')]");
  6406. }
  6407. if (GM_getValue("Check_sharerepo_dot_com_links", false))
  6408. {
  6409. addFileHost(
  6410. "sharerepo\.com\/\\w+",
  6411. 'name="method_free"',
  6412. 'var public_on=',
  6413. 'optional--',
  6414. "//a[contains(@href,'sharerepo.com')]");
  6415. }
  6416. if (GM_getValue("Check_sfshare_dot_se_links", false))
  6417. {
  6418. addFileHost(
  6419. "sfshare\.se\/\\w+",
  6420. 'id="btn_download"|class="btn btn-primary txt-bold" value="',
  6421. 'AVOID_IE_BUG|var rr =|style="width:500px;text-align:left;">',
  6422. 'optional--',
  6423. "//a[contains(@href,'sfshare.se')]");
  6424. }
  6425. if (GM_getValue("Check_files_dot_fm_links", false))
  6426. {
  6427. addFileHost(
  6428. "files\.fm\/\\w+",
  6429. 'dl.png"|background-color: transparent',
  6430. 'margin: 40px 40px|background: none;',
  6431. 'optional--',
  6432. "//a[contains(@href,'files.fm')]");
  6433. }
  6434. if (GM_getValue("Check_koofile_dot_com_links", false))
  6435. {
  6436. addFileHost(
  6437. "koofile\.com\/\\w+",
  6438. 'value="download1">|name="method_free"',
  6439. 'class="overview-content c_text-box ">|style="padding-top:3px;">|class="rt1 c">',
  6440. 'optional--',
  6441. "//a[contains(@href,'koofile.com')]");
  6442. }
  6443. if (GM_getValue("Check_shared_dot_com_links", false))
  6444. {
  6445. addFileHost(
  6446. "shared\.com\/\\w+",
  6447. 'class="icon-download|class="attachment-size">',
  6448. 'img/404.png"|error-img -->',
  6449. 'optional--',
  6450. "//a[contains(@href,'shared.com')]");
  6451. }
  6452. if (GM_getValue("Check_videozer_dot_com_links", false))
  6453. {
  6454. addFileHost(
  6455. "videozer\\.com\/video\/\\w+",
  6456. 'video_player"',
  6457. 'error_404"',
  6458. 'optional--',
  6459. "//a[contains(@href,'videozer.com/video')]"
  6460. );
  6461. }
  6462. if (GM_getValue("Check_divxden_dot_com_links", false))
  6463. {
  6464. addFileHost(
  6465. "(?:divxden|vidxden)\.com\/\\w+\/\\w+",
  6466. 'Continue to Video"',
  6467. 'No such file',
  6468. 'optional--',
  6469. "//a[contains(@href,'divxden.com') or contains(@href,'vidxden.com')]"
  6470. );
  6471. }
  6472. if (GM_getValue("Check_share_dash_now_dot_net_links", false))
  6473. {
  6474. addFileHost(
  6475. "share-now\.net\/\/?files\/\\d+",
  6476. 'Download Now"',
  6477. 'upload_files',
  6478. 'optional--',
  6479. "//a[contains(@href,'share-now.net')]"
  6480. );
  6481. }
  6482. if (GM_getValue("Check_sms4file_dot_com_links", false))
  6483. {
  6484. addFileHost(
  6485. "sms4file\\.com\/download(?:vip|)\/\\w+",
  6486. 'file-info">',
  6487. 'Requested file is not found|Запрашиваемый файл не найден',
  6488. 'optional--',
  6489. "//a[contains(@href,'sms4file.com/download')]"
  6490. );
  6491. }
  6492. if (GM_getValue("Check_muchshare_dot_net_links", false))
  6493. {
  6494. addFileHost(
  6495. "muchshare\\.net\/\\w+",
  6496. 'id="btn_download"',
  6497. 'File Not Found|width: 500px; text-align: left;',
  6498. 'optional--',
  6499. "//a[contains(@href,'muchshare.net')]"
  6500. );
  6501. }
  6502. if (GM_getValue("Check_peejeshare_dot_com_links", false))
  6503. {
  6504. addFileHost(
  6505. "peeje(?:share)?\\.com\/files\/\\d+",
  6506. 'div id="download">',
  6507. 'red;">The file you requested',
  6508. 'red;">This file is password',
  6509. "//a[contains(@href,'peejeshare.com/files') or contains(@href,'peeje.com/files')]"
  6510. );
  6511. }
  6512. if (GM_getValue("Check_daten_dash_hoster_dot_de_links", false))
  6513. {
  6514. addFileHost(
  6515. "(?:daten-hoster\\.de\/file\/\\w+|filehosting\\.org\/file\/\\w+|xtraupload\\.de\/\\?d=\\w+)",
  6516. 'Details zur Datei|Details page',
  6517. 'Jetzt hochladen|upload now',
  6518. 'optional--',
  6519. "//a[contains(@href,'daten-hoster.de/file') or contains(@href,'filehosting.org/file') or contains(@href,'xtraupload.de')]"
  6520. );
  6521. }
  6522. if (GM_getValue("Check_upload_dash_il_dot_net_links", false))
  6523. {
  6524. addFileHost(
  6525. "(?:upload-il|przeslij)\.net\/(?:en|he|ar|ru|)\/?\\w+",
  6526. 'downloadbtn"',
  6527. 'DL_FileNotFound',
  6528. 'optional--',
  6529. "//a[contains(@href,'upload-il.net') or contains(@href,'przeslij.net')]"
  6530. );
  6531. }
  6532. if (GM_getValue("Check_fileflyer_dot_com_links", false))
  6533. {
  6534. addFileHost(
  6535. "fileflyer\.com\/view\/\\w+",
  6536. '(?:dwl|locked)btn"',
  6537. 'error.gif"|link">Removed|removedlink">',
  6538. 'optional--',
  6539. "//a[contains(@href,'fileflyer.com')]"
  6540. );
  6541. }
  6542. if (GM_getValue("Check_rapidupload_dot_sk_links", false))
  6543. {
  6544. addFileHost(
  6545. "rapidupload\.sk\/file\/\\d+\/",
  6546. 'Názov súboru',
  6547. 'súbor sa nenašiel',
  6548. 'optional--',
  6549. "//a[contains(@href,'rapidupload.sk/file')]"
  6550. );
  6551. }
  6552. if (GM_getValue("Check_filestore_dot_to_links", false))
  6553. {
  6554. addFileHost(
  6555. "filestore\.to\/\\?d=\\w+",
  6556. '"downloading"',
  6557. 'Datei wurde nicht gefunden',
  6558. 'optional--',
  6559. "//a[contains(@href,'filestore.to')]"
  6560. );
  6561. }
  6562. if (GM_getValue("Check_easy_dash_share_dot_com_links", false))
  6563. {
  6564. addFileHost(
  6565. "(?:w\\d*\.|)(?:crocko|easy-share)\\.com\/.",
  6566. 'fz24">Download|class="pl15">',
  6567. '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',
  6568. 'optional--',
  6569. "//a[contains(@href,'easy-share.com') or contains(@href,'crocko.com')]"
  6570. );
  6571. }
  6572. if (GM_getValue("Check_burnupload_dot_com_links", false))
  6573. {
  6574. addFileHost(
  6575. "burnupload\\.(?:com\/\\?d=|ihiphop\\.com\/download\\.php\\?id=)\\w+",
  6576. 'File size:',
  6577. 'file is not found',
  6578. 'optional--',
  6579. "//a[contains(@href,'burnupload.com') or contains(@href,'burnupload.ihiphop.com')]"
  6580. );
  6581. }
  6582. if (GM_getValue("Check_datei_dot_to_links", false))
  6583. {
  6584. addFileHost(
  6585. "datei\\.to\/\\??\\w+",
  6586. 'icon_downloaden\\.png|>Download starten<',
  6587. 'Datei wurde nicht gefunden|icon_deleted.png',
  6588. 'optional--',
  6589. "//a[contains(@href,'datei.to')]"
  6590. );
  6591. }
  6592. if (GM_getValue("Check_yunfile_dot_com_links", false))
  6593. {
  6594. addFileHost(
  6595. "(?:yunfile|filemarkets)\\.com\/\\w+",
  6596. '<body class="body" id="body">',
  6597. '<body class="body" >',
  6598. 'optional--',
  6599. "//a[contains(@href,'yunfile.com') or contains(@href,'filemarkets.com')]"
  6600. );
  6601. }
  6602. if (GM_getValue("Check_putlocker_dot_com_links", false))
  6603. {
  6604. addFileHost(
  6605. "putlocker\\.com\/file\/\\w{16}",
  6606. 'as Free User|<a class="continue"|Continue to file|#feedback_btn|application file_standalone',
  6607. 'Welcome to PutLocker|<div class="sad_face_image">|404:',
  6608. 'undergoing scheduled maintenance',
  6609. "//a[contains(@href,'putlocker.com/file')]"
  6610. );
  6611. }
  6612. if (GM_getValue("Check_luckyshare_dot_net_links", false))
  6613. {
  6614. addFileHost(
  6615. "luckyshare\\.net\/\\d+",
  6616. 'href="javascript:void(0)">Slow Download</a>|id="slow-download" class="dl-slowspeed|<strong>Wait:</strong> <span id="waitingtime">',
  6617. 'no such file available|color: #22757B;">',
  6618. '522: Connection timed out',
  6619. //'optional--',
  6620. "//a[contains(@href,'luckyshare.net/')]"
  6621. );
  6622. }
  6623. if (GM_getValue("Check_uploadhero_dot_com_links", false))
  6624. {
  6625. addFileHost(
  6626. "uploadhero\\.com\/dl\/\\w+",
  6627. 'content-dl">',
  6628. 'men_file_lost\\.jpg"',
  6629. 'optional--',
  6630. "//a[contains(@href,'uploadhero.com/dl')]"
  6631. );
  6632. }
  6633. if (GM_getValue("Check_unibytes_dot_com_links", false))
  6634. {
  6635. addFileHost(
  6636. "unibytes\\.com\/[\\w\.]+",
  6637. 'trying to download|пытаетесь загрузить файл|tes entrain de tlcharger',
  6638. 'File not found|Файл не найден|',
  6639. 'optional--',
  6640. "//a[contains(@href,'unibytes.com')]"
  6641. );
  6642. }
  6643. if (GM_getValue("Check_hellshare_dot_com_links", false)) //very old type of links
  6644. {
  6645. addFileHost(
  6646. "www\\.hellshare\\.com\/\\d+",
  6647. 'tab\\-details"',
  6648. 'list-purp-2"|not found on this server',
  6649. 'optional--',
  6650. "//a[contains(@href,'www.hellshare.com')]"
  6651. );
  6652. }
  6653. if (GM_getValue("Check_quickshare_dot_cz_links", false)) //folders
  6654. {
  6655. addFileHost(
  6656. "quickshare\\.cz\/slozka-\\d+",
  6657. 'Počet souborů: <strong>[1-9]',
  6658. 'Počet souborů: <strong>0|Chyba! Taková složka neexistuje',
  6659. 'optional--',
  6660. "//a[contains(@href,'quickshare.cz/slozka')]"
  6661. );
  6662. }
  6663. if (GM_getValue("Check_multishare_dot_cz_links", false)) //folders
  6664. {
  6665. addFileHost(
  6666. "multishare\\.cz\/slozka\/\\d+",
  6667. 'manager-linky">',
  6668. 'Požadovaná složka neexistuje.',
  6669. 'optional--',
  6670. "//a[contains(@href,'multishare.cz/slozka/')]"
  6671. );
  6672. }
  6673. if (GM_getValue("Check_filefactory_dot_com_links", false)) //folders
  6674. {
  6675. addFileHost(
  6676. "filefactory\\.com\/f\/\\w+",
  6677. 'folderFileList">',
  6678. 'table class="items"|Pointer" class="red">',
  6679. 'optional--',
  6680. "//a[contains(@href,'filefactory.com/f/')]"
  6681. );
  6682. }
  6683. if (GM_getValue("Check_netload_dot_in_links", false)) //folders
  6684. {
  6685. addFileHost(
  6686. "netfolder\\.in\/\\w+",
  6687. 'list" value="http',
  6688. 'InPage_Error">|list" value=""',
  6689. 'optional--',
  6690. "//a[contains(@href,'netfolder.in')]"
  6691. );
  6692. }
  6693. if (GM_getValue("Check_load_dot_to_links", false))
  6694. {
  6695. addFileHost(
  6696. '(?:www\\.|\\/)load\\.to\\/(?:\\w{10}\\/.|\\?d=\\w{10})',
  6697. '"download_table_left">Size',
  6698. 'Can\'t find file',
  6699. 'optional--',
  6700. "//a[contains(@href,'/load.to/') or contains(@href,'www.load.to/')]"
  6701. );
  6702. }
  6703. if (GM_getValue("Check_files_dot_to_links", false))
  6704. {
  6705. addFileHost(
  6706. "files\.to\/get\/\\d+\/",
  6707. 'You requested the following',
  6708. 'requested file couldn',
  6709. 'optional--',
  6710. "//a[contains(@href,'files.to/')]"
  6711. );
  6712. }
  6713. if (GM_getValue("Check_freakshare_dot_net_links", false))
  6714. {
  6715. addFileHost(
  6716. "freakshare\\.(?:net|com)\/files\/",
  6717. 'box_heading',
  6718. '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|الملف المطلوب غير موجود',
  6719. 'Your Traffic is used up for today',
  6720. "//a[(contains(@href,'freakshare.net') or contains(@href,'freakshare.com')) and contains(@href,'files')]",
  6721. true
  6722. );
  6723. //folders
  6724. addFileHost(
  6725. "freakshare\\.(?:net|com)\/folder\/",
  6726. 'Files: [1-9]',
  6727. 'Files: 0',
  6728. 'optional--',
  6729. "//a[(contains(@href,'freakshare.net') or contains(@href,'freakshare.com')) and contains(@href,'folder')]",
  6730. true
  6731. );
  6732. }
  6733. if (GM_getValue("Check_bitshare_dot_com_links", false))
  6734. {
  6735. addFileHost(
  6736. "bitshare\\.com",
  6737. '">Total file size|class="download" style="width:820px;',
  6738. 'Folder can not be found|Folder does not contain any files|<h1>Error -|<title>BitShare.com',
  6739. 'optional--',
  6740. "//a[contains(@href,'bitshare.com')]",
  6741. true
  6742. );
  6743. }
  6744. if (GM_getValue("Check_divshare_dot_com_links", false))
  6745. {
  6746. addFileHost(
  6747. "divshare\\.com\/download\/",
  6748. 'download_new\.png',
  6749. 'have been removed',
  6750. 'optional--',
  6751. "//a[contains(@href,'divshare.com')]"
  6752. );
  6753. }
  6754. if (GM_getValue("Check_stahovadlo_dot_cz_links", false))
  6755. {
  6756. addFileHost(
  6757. "stahovadlo\\.cz\/soubor\/\\d+\/[\\.\\w]+",
  6758. 'download" type="submit',
  6759. 'Neplatný nebo neúplný odkaz|Soubor již není dostupný',
  6760. 'optional--',
  6761. "//a[contains(@href,'stahovadlo.cz/soubor')]",
  6762. true
  6763. );
  6764. }
  6765. if (GM_getValue("Check_euroshare_dot_eu_links", false))
  6766. {
  6767. addFileHost(
  6768. "euroshare\\.(?:eu|pl|sk|cz|hu)\/file\/\\d+",
  6769. 'nazev-souboru">',
  6770. '<div id="obsah">\\s*<h1>',
  6771. 'optional--',
  6772. "//a[contains(@href,'euroshare.eu/file')]"
  6773. );
  6774. }
  6775. if (GM_getValue("Check_files_dot_mail_dot_ru_links", false))
  6776. {
  6777. addFileHost(
  6778. 'files\\.mail\\.ru/(?:\\w*)',
  6779. 'fileList',
  6780. 'errorMessage',
  6781. 'optional--',
  6782. "//a[contains(@href,'files.mail.ru')]"
  6783. );
  6784. }
  6785. if (GM_getValue("Check_megashares_dot_com_links", false))
  6786. {
  6787. addFileHost(
  6788. "(?:d\\d+\.|)megashares\.com\/(?:dl|index\.php\\?d|\\?d\\d+=\\w+)",
  6789. 'Filesize',
  6790. 'Invalid|deleted|Could not download file',
  6791. 'slots|scheduled maintenance',
  6792. "//a[contains(@href,'megashares.com/')]"
  6793. );
  6794. }
  6795. if (GM_getValue("Check_narod_dot_ru_links", false))
  6796. {
  6797. addFileHost(
  6798. 'narod\\.(?:yandex\\.|)ru\/disk\/',
  6799. 'b-submit',
  6800. 'b-download-virus-note|headCode">404<',
  6801. 'Внутренняя ошибка сервиса',
  6802. "//a[contains(@href,'narod.ru') or contains(@href,'narod.yandex.ru')]"
  6803. );
  6804. }
  6805. if (GM_getValue("Check_rapidshare_dot_com_links", false))
  6806. {
  6807. addFileHost(
  6808. "rapidshare\\.de\/files",
  6809. 'Choose download-type',
  6810. 'alert|not found',
  6811. 'optional--',
  6812. "//a[contains(@href,'rapidshare.de/files/')]"
  6813. );
  6814. }
  6815. if (GM_getValue("Check_rayfile_dot_com_links", false))
  6816. {
  6817. addFileHost(
  6818. "rayfile\\.com\/",
  6819. 'FILEtitleTXT',
  6820. 'blueRow',
  6821. 'optional--',
  6822. "//a[contains(@href,'rayfile.com/') and contains(@href,'files')]"
  6823. );
  6824. }
  6825. if (GM_getValue("Check_filesmonster_dot_com_links", false))
  6826. {
  6827. addFileHost(
  6828. "filesmonster\\.com\/download\\.php\\?id=\\w+",
  6829. 'button_green_body"',
  6830. 'error">',
  6831. 'optional--',
  6832. "//a[contains(@href,'filesmonster.com/download')]"
  6833. );
  6834. }
  6835. if (GM_getValue("Check_usaupload_dot_net_links", false))
  6836. {
  6837. addFileHost(
  6838. 'usaupload\\.net\/d\/(?:\w*)',
  6839. '<strong>File size:</strong>',
  6840. 'is not available',
  6841. 'optional--',
  6842. "//a[contains(@href,'usaupload.net/d/')]"
  6843. );
  6844. }
  6845. if (GM_getValue("Check_sendspace_dot_com_links", false))
  6846. {
  6847. addFileHost(
  6848. 'sendspace\\.com\/file\/\\w+',
  6849. 'file_description',
  6850. 'msg error"',
  6851. 'optional--',
  6852. "//a[contains(@href,'sendspace.com/file')]"
  6853. );
  6854. }
  6855. if (GM_getValue("Check_sendspace_dot_pl_links", false))
  6856. {
  6857. addFileHost(
  6858. 'sendspace\\.pl\/file\/\\w+',
  6859. 'download_file"',
  6860. 'Podany plik nie',
  6861. 'optional--',
  6862. "//a[contains(@href,'sendspace.pl/file')]"
  6863. );
  6864. }
  6865. if (GM_getValue("Check_uploading_dot_com_links", false))
  6866. {
  6867. addFileHost(
  6868. 'uploading\\.com\/\\w+',
  6869. 'download_method">',
  6870. 'file_error">',
  6871. 'optional--',
  6872. "//a[contains(@href,'uploading.com')]"
  6873. );
  6874. }
  6875. if (GM_getValue("Check_gigasize_dot_com_links", false))
  6876. {
  6877. addFileHost(
  6878. 'gigasize\\.com\/get\\.php(?:\/\\d+|\\?d=\\w+)',
  6879. 'fileId"',
  6880. 'error">',
  6881. 'optional--',
  6882. "//a[contains(@href,'gigasize.com/get')]"
  6883. );
  6884. }
  6885. if (GM_getValue("Check_good_dot_com_links", false))
  6886. {
  6887. addFileHost(
  6888. 'good\\.net\/(?:_|dl)',
  6889. 'Free Download',
  6890. 'Not Found',
  6891. 'Forbidden',
  6892. "//a[contains(@href,'good.net')]"
  6893. );
  6894. }
  6895. if (GM_getValue("Check_2shared_dot_com_links", false))
  6896. {
  6897. addFileHost(
  6898. '2shared\\.com\/(?:file|video|document|audio)\/\\w*',
  6899. 'File size|You are trying to download ',
  6900. 'File not found|is not valid',
  6901. 'optional--',
  6902. "//a[contains(@href,'2shared.com/file/') or contains (@href,'2shared.com/audio/') or contains (@href,'2shared.com/document/') or contains (@href,'2shared.com/video/')]"
  6903. );
  6904. }
  6905. if (GM_getValue("Check_turboupload_dot_com_links", false))
  6906. {
  6907. addFileHost(
  6908. 'turboupload\\.com\/\\w*',
  6909. 'You have requested',
  6910. 'File Not Found',
  6911. 'optional--',
  6912. "//a[contains(@href,'turboupload.com')]"
  6913. );
  6914. }
  6915. if (GM_getValue("Check_up_dash_file_dot_com_links", false))
  6916. {
  6917. addFileHost(
  6918. 'up-file\\.com\/download\/\\w*',
  6919. 'Download the file',
  6920. 'is not found',
  6921. 'optional--',
  6922. "//a[contains(@href,'up-file.com/download')]"
  6923. );
  6924. }
  6925. if (GM_getValue("Check_gigapeta_dot_com_links", false))
  6926. {
  6927. addFileHost(
  6928. 'gigapeta\\.com\/dl\/',
  6929. 'Download file|Скачать файл| Herunterzuladen|Scarica il file|Cargar el fichero|Charger le fichier',
  6930. '404|page_error',
  6931. 'optional--',
  6932. "//a[contains(@href,'gigapeta.com/dl')]"
  6933. );
  6934. }
  6935. if (GM_getValue("Check_getthebit_dot_com_links", false))
  6936. {
  6937. addFileHost(
  6938. 'getthebit\\.com/f/\\w*',
  6939. 'Вы выбрали файл',
  6940. 'не найден',
  6941. 'optional--',
  6942. "//a[contains(@href,'getthebit.com')]"
  6943. );
  6944. }
  6945. if (GM_getValue("Check_veehd_dot_com_links", false))
  6946. {
  6947. addFileHost(
  6948. 'veehd\.com\/video\/.*?',
  6949. 'No sound|Download video',
  6950. 'Featured Videos',
  6951. 'optional--',
  6952. "//a[contains(@href,'veehd.com') and contains(@href,'video')]"
  6953. );
  6954. }
  6955. if (GM_getValue("Check_vip_dash_file_dot_com_links", false))
  6956. {
  6957. addFileHost(
  6958. '(?:u\\d+\\.)?vip-file\\.com\/download.*?\/(?:.*?)\/(?:.*?)\\.html',
  6959. 'fast_download_form">',
  6960. '<p style="text-align:center">',
  6961. 'optional--',
  6962. "//a[contains(@href,'vip-file.com/download')]"
  6963. );
  6964. }
  6965. if (GM_getValue("Check_letitbit_dot_net_links", false))
  6966. {
  6967. addFileHost(
  6968. '(?:u\\d+\\.)?letitbit\\.net\/download\/\\w+',
  6969. 'download\\-pnl ',
  6970. 'color:#000">|Запрашиваемый файл не найден|страница не существует|File not found|',
  6971. 'optional--',
  6972. "//a[contains(@href,'letitbit.net/download')]"
  6973. );
  6974. }
  6975. if (GM_getValue("Check_ifolder_dot_ru_links", false))
  6976. {
  6977. addFileHost(
  6978. 'ifolder\.ru\/\\d+',
  6979. 'file-info',
  6980. 'ui-state-error',
  6981. 'optional--',
  6982. "//a[contains(@href,'ifolder.ru')]"
  6983. );
  6984. }
  6985. if (GM_getValue("Check_filesend_dot_net_links", false))
  6986. {
  6987. addFileHost(
  6988. 'filesend\.net\/download',
  6989. 'buttdl',
  6990. 'File removed',
  6991. 'Error',
  6992. "//a[contains(@href,'filesend.net/download')]"
  6993. );
  6994. }
  6995. if (GM_getValue("Check_enigmashare_dot_com_links", false))
  6996. {
  6997. addFileHost(
  6998. 'enigmashare\\.com\/\\w+',
  6999. 'tbl12',
  7000. 'width:500px;text-align:left',
  7001. 'optional--',
  7002. "//a[contains(@href,'enigmashare.com/')]"
  7003. );
  7004. }
  7005. if (GM_getValue("Check_fileswap_dot_com_links", false))
  7006. {
  7007. addFileHost(
  7008. 'fileswap\\.com\/dl\/\\w+',
  7009. 'bttnDownloadLink"',
  7010. 'rounded_block_error"',
  7011. 'is temporary unavailable|disponible en estos momentos|vorläufig unerreichbar|Файл временно недоступен',
  7012. "//a[contains(@href,'fileswap.com/dl')]"
  7013. );
  7014. }
  7015. if (GM_getValue("Check_getzilla_dot_net_links", false))
  7016. {
  7017. addFileHost(
  7018. 'getzilla\\.net\/files\/\\d+',
  7019. 'free_download_url',
  7020. 'caption orange">Файл не найден',
  7021. 'optional--',
  7022. "//a[contains(@href,'getzilla.net/files')]"
  7023. );
  7024. }
  7025. /* if (GM_getValue("Check_extabit_dot_com_links", false))
  7026. {
  7027. addFileHost(
  7028. //'(?:u\\d+\\.)?extabit\\.com\/(?:file|folder|go)[\/_]\\w+',
  7029. '(?:u\\d+\\.)?extabit\\.com\/folder[\/_]\\w+',
  7030. 'download\\-file-btn"', //NOTE: this is just for folders. For files, update regexes in function extabitBulkCheck which handles non-bulk as well.
  7031. 'page_404_header',
  7032. 'id="mirrb"|is temporary unavailable|disponible en estos momentos|vorläufig unerreichbar|Файл временно недоступен',
  7033. "//a[contains(@href,'extabit.com/folder')]",
  7034. true
  7035. );
  7036. } */
  7037. if (GM_getValue("Check_filecloud_dot_io_links", false))
  7038. {
  7039. addFileHost(
  7040. '(?:s\\d+\\.)?filecloud\\.io\/\\w+',
  7041. 'var __error = 0',
  7042. 'FILES__DOESNT_EXIST',
  7043. 'optional--',
  7044. "//a[contains(@href,'filecloud.io/')]"
  7045. );
  7046. addFileHost(
  7047. 'ifile\\.it\/\\w+',
  7048. 'var __error = 0',
  7049. 'FILES__DOESNT_EXIST',
  7050. 'optional--',
  7051. "//a[contains(@href,'ifile.it/')]"
  7052. );
  7053. }
  7054. if (GM_getValue("Check_solidfiles_dot_com_links", false))
  7055. {
  7056. addFileHost(
  7057. 'solidfiles\\.com\/d\/\\w+',
  7058. 'id="download"|content="Download',
  7059. '>Not found<|<h2>404</h2>',
  7060. 'optional--',
  7061. "//a[contains(@href,'solidfiles.com/d')]"
  7062. );
  7063. }
  7064. if (GM_getValue("Check_shareflare_dot_net_links", false))
  7065. {
  7066. addFileHost(
  7067. 'shareflare\\.net\/download\/',
  7068. 'download-pnl',
  7069. 'File not found|Поиск зеркала на фа',
  7070. 'optional--',
  7071. "//a[contains(@href,'shareflare.net/download')]"
  7072. );
  7073. }
  7074. if (GM_getValue("Check_uploadmachine_dot_com_links", false))
  7075. {
  7076. addFileHost(
  7077. "uploadmachine\.com\/file\/\\d+",
  7078. 'Downloading the file',
  7079. 'not found|404 Error',
  7080. 'optional--',
  7081. "//a[contains(@href,'uploadmachine.com/file')]"
  7082. );
  7083. }
  7084. if (GM_getValue("Check_uloz_dot_to_links", false))
  7085. {
  7086. addFileHost(
  7087. "(?:uloz|ulozto|bagruj|zachowajto)\\.(to|cz|sk|net|pl)\/\\w",
  7088. 'fileDownload">|fileSize">',
  7089. 'grayButton deletedFile">|Stránka nenalezena|upload-button"|jako soukromý.',
  7090. 'passwordProtectedFile">|frmaskAgeForm-disagree',
  7091. "//a[contains(@href,'bagruj.cz') or contains(@href,'uloz.to') or contains(@href,'ulozto.') or contains(@href,'zachowajto.pl')]",
  7092. true
  7093. );
  7094. }
  7095. if (GM_getValue("Check_hellspy_dot_com_links", false))
  7096. {
  7097. addFileHost(
  7098. "hellspy\.(?:com|cz|sk|hu|pl)\/\\w+",
  7099. 'file\\-list-orderby|section-filedetail">',
  7100. '<\/span><\/h2>\\s*<p>|list-purp-2">|flash info sticky">',
  7101. 'optional--',
  7102. "//a[contains(@href,'hellspy.')]"
  7103. );
  7104. }
  7105. if (GM_getValue("Check_leteckaposta_dot_cz_links", false))
  7106. {
  7107. addFileHost(
  7108. "(?:leteckaposta\\.cz|sharegadget\\.com)\/\\d+",
  7109. '<body onload="">',
  7110. 'neexistuje|not exist',
  7111. 'optional--',
  7112. "//a[contains(@href,'leteckaposta.cz') or contains(@href,'sharegadget.com')]"
  7113. );
  7114. }
  7115. if (GM_getValue("Check_stahovanizasms_dot_cz_links", false))
  7116. {
  7117. addFileHost(
  7118. "stahovanizasms\\.cz\/\\w+",
  7119. 'download\\.png>|font-size:11px><tr>',
  7120. 'smaz.n u.ivatelem|font-size:11px><\/table>',
  7121. 'optional--',
  7122. "//a[contains(@href,'stahovanizasms.cz')]"
  7123. );
  7124. }
  7125. if (GM_getValue("Check_share_dash_links_dot_biz_links", false))
  7126. {
  7127. addFileHost(
  7128. "share-links\\.biz\/\\w*",
  7129. 'online\\.gif',
  7130. '(?:offline|parts)\\.gif',
  7131. 'optional--',
  7132. "//a[contains(@href,'share-links.biz')]"
  7133. );
  7134. }
  7135. if (GM_getValue("Check_4shared_dot_com_links", false))
  7136. {
  7137. addFileHost(
  7138. "4shared\\.com\/.+\/",
  7139. '<input type="hidden" class="jsSocialTwDefaultText" value=',
  7140. 'class="warn\"|big red"|GetDataBack',
  7141. 'Service Unavailable',
  7142. "//a[contains(@href,'4shared.com')]"
  7143. );
  7144. }
  7145. if (GM_getValue("Check_zippyshare_dot_com_links", false))
  7146. {
  7147. addFileHost(
  7148. "(?:www\\d+\.|)zippyshare\.com\/v\/\\d+\/file\.html",
  7149. 'download\.png|Download Now|dlbutton"',
  7150. 'not exist|Status 404',
  7151. 'optional--',
  7152. "//a[contains(@href,'zippyshare.com') and contains(@href,'file.html')]"
  7153. );
  7154. }
  7155. if (GM_getValue("Check_speedshare_dot_org_links", false))
  7156. {
  7157. addFileHost(
  7158. "speedshare\.org\/.+",
  7159. 'class=\"dbtn\"',
  7160. 'Error',
  7161. 'optional--',
  7162. "//a[contains(@href,'speedshare.org')]"
  7163. );
  7164. }
  7165. if (GM_getValue("Check_mediafire_dot_com_links", false))
  7166. {
  7167. addFileHost(
  7168. "mediafire\.com\/",
  7169. 'download_file_title|dlFileName|id="PLAY_downloadButton"',
  7170. 'error\\.php\\?|error_msg_title|<title>Simple File Sharing|No files found',
  7171. 'set to private',
  7172. "//a[contains(@href,'mediafire.com')]"
  7173. );
  7174. }
  7175. if (GM_getValue("Check_uploaded_dot_to_links", false))
  7176. {
  7177. addFileHost(
  7178. '(?:uploaded\\.(?:to|net)\/(?:.id|file|folder|f|410|404))|(?:ul\\.to\/)',
  7179. '<h2>Authentification</h2></li>| MB| KB',
  7180. 'box_red|Error: 404|Error: 410|fileList"><thead><tr><td colspan="2"><\/td><\/tr><\/thead><tbody>\\s*<tr>',
  7181. 'optional--',
  7182. "//a[contains(@href,'uploaded.to/') or contains(@href,'uploaded.net/') or contains(@href,'ul.to/')]"
  7183. );
  7184. }
  7185. if (GM_getValue("Check_ulozisko_dot_sk_links", false))
  7186. {
  7187. addFileHost(
  7188. "ulozisko\.sk\/",
  7189. 'Detaily',
  7190. 'neexistuje',
  7191. 'optional--',
  7192. "//a[contains(@href,'ulozisko.sk')]"
  7193. );
  7194. }
  7195. if (GM_getValue("Check_speedfile_dot_cz_links", false))
  7196. {
  7197. addFileHost(
  7198. "speedfile\.cz\/(?:cs\/|en\/|sk\/|)\\d+\/",
  7199. 'Stáhnout|<span>Download',
  7200. 'error|soubor byl odst|This file was deleted',
  7201. 'optional--',
  7202. "//a[contains(@href,'speedfile.cz')]"
  7203. );
  7204. }
  7205. if (GM_getValue("Check_upnito_dot_sk_links", false))
  7206. {
  7207. addFileHost(
  7208. "(?:dl.\\.|)upnito\\.sk\/(download|subor|file)",
  7209. 'download.php',
  7210. 'notfound|upload\\-suborov\\.php"',
  7211. 'optional--',
  7212. "//a[contains(@href,'upnito.sk')]"
  7213. );
  7214. }
  7215. if (GM_getValue("Check_dataport_dot_cz_links", false))
  7216. {
  7217. addFileHost(
  7218. "dataport\.cz\/file\/",
  7219. 'premium_download">',
  7220. '="error">',
  7221. 'optional--',
  7222. "//a[contains(@href,'dataport.cz/file')]",
  7223. true
  7224. );
  7225. }
  7226. if (GM_getValue("Check_uptobox_dot_com_links", false))
  7227. {
  7228. addFileHost(
  7229. "uptobox\\.com\/\\w+",
  7230. 'download1">',
  7231. '500px;text-align:left;">|File not found|Fichier introuvable',
  7232. 'Maintenance',
  7233. "//a[contains(@href,'uptobox.com')]"
  7234. );
  7235. }
  7236. if (GM_getValue("Check_gigaup_dot_fr_links", false))
  7237. {
  7238. addFileHost(
  7239. "gigaup\\.fr\/\\?g=\\w+",
  7240. 'Taille de',
  7241. 'Vous ne pouvez|existe pas',
  7242. 'optional--',
  7243. "//a[contains(@href,'gigaup.fr/')]"
  7244. );
  7245. }
  7246. if (GM_getValue("Check_sharecash_dot_org_links", false))
  7247. {
  7248. addFileHost(
  7249. "sharecash\\.org\/download\\.php\\?file=\\d+",
  7250. 'FILE DOWNLOAD<',
  7251. 'File Does Not Exist',
  7252. 'optional--',
  7253. "//a[contains(@href,'sharecash.org/download.php')]"
  7254. );
  7255. }
  7256. if (GM_getValue("Check_depositfiles_dot_com_links", false)) //folders
  7257. {
  7258. addFileHost(
  7259. "depositfiles\\.com\/folders\/\\w+",
  7260. '<div class="progressContainer">',
  7261. '<div id="files" class="files">\\s*<\/div>',
  7262. 'optional--',
  7263. "//a[contains(@href,'depositfiles.com/folders')]"
  7264. );
  7265. }
  7266. /* if (GM_getValue("Check_cloudzer_dot_net_links", false))
  7267. {
  7268. addFileHost(
  7269. "(?:cloudzer\\.net/file|clz\\.to)/\\w+",
  7270. '<b class="filename" id="filename">|Folders|Ordner',
  7271. '<h1>Error</h1>|Fehler',
  7272. 'optional--',
  7273. "//a[contains(@href,'cloudzer.net/file') or contains(@href,'clz.to/')]"
  7274. );
  7275. } */
  7276. if (GM_getValue("Check_rapidfileshare_dot_net_links", false))
  7277. {
  7278. addFileHost(
  7279. "rapidfileshare\\.net/\\w+",
  7280. '<div id="upload-header-bg">',
  7281. '<div style="width:500px;text-align:left;">',
  7282. 'optional--',
  7283. "//a[contains(@href,'rapidfileshare.net/')]"
  7284. );
  7285. }
  7286. if (GM_getValue("Check_stiahnito_dot_sk_links", false))
  7287. {
  7288. addFileHost(
  7289. "stiahnito\\.sk/",
  7290. '<span class="filesize right">',
  7291. '<ol class="list-purp-2">',
  7292. 'optional--',
  7293. "//a[contains(@href,'stiahnito.sk/')]"
  7294. );
  7295. }
  7296. if (GM_getValue("Check_rusfolder_dot_com_links", false))
  7297. {
  7298. addFileHost(
  7299. "rusfolder\\.(?:com|net)",
  7300. '"download-step-one-form"|Название: <b>|Файлы|Файлы в папке',
  7301. '"ui-state-error ui-corner-all"|File is removed|File not found|удален',
  7302. 'optional--',
  7303. "//a[contains(@href,'rusfolder')]"
  7304. );
  7305. }
  7306. if (GM_getValue("Check_fileover_dot_net_links", false))
  7307. {
  7308. addFileHost(
  7309. "fileover\\.net/\\d+",
  7310. 'id="filesize"',
  7311. 'Not found or deleted|The following file is unavailable',
  7312. 'optional--',
  7313. "//a[contains(@href,'fileover.net/')]"
  7314. );
  7315. }
  7316. if (GM_getValue("Check_catshare_dot_net_links", false))
  7317. {
  7318. addFileHost(
  7319. "catshare\\.net/\\w+",
  7320. '"icon-share',
  7321. 'alert alert-error',
  7322. 'optional--',
  7323. "//a[contains(@href,'catshare.net/')]"
  7324. );
  7325. }
  7326. if (GM_getValue("Check_anonfiles_dot_com_links", false))
  7327. {
  7328. addFileHost(
  7329. "anonfiles\\.com/\\w+",
  7330. '"download_button"',
  7331. '<legend><b>404</b>',
  7332. 'optional--',
  7333. "//a[contains(@href,'anonfiles.com')]"
  7334. );
  7335. }
  7336. if (GM_getValue("Check_mixturecloud_dot_com_links", false))
  7337. {
  7338. addFileHost(
  7339. "mixturecloud\\.com/media/\\w+",
  7340. '"btn icon i_globe gray share_150',
  7341. '"s_cross_close"></span> 404:',
  7342. 'optional--',
  7343. "//a[contains(@href,'mixturecloud.com/media/')]"
  7344. );
  7345. }
  7346. if (GM_getValue("Check_akafile_dot_com_links", false))
  7347. {
  7348. addFileHost(
  7349. "akafile\\.com\/\\w+",
  7350. 'download1',
  7351. 'File Not Found',
  7352. 'optional--',
  7353. "//a[contains(@href,'akafile.com/')]"
  7354. );
  7355. }
  7356. if (GM_getValue("Check_creafile_dot_net_links", false))
  7357. {
  7358. addFileHost(
  7359. "creafile\\.net\/\\w+",
  7360. 'downloadblock',
  7361. 'errtitle',
  7362. 'optional--',
  7363. "//a[contains(@href,'creafile.net/')]"
  7364. );
  7365. }
  7366. if (GM_getValue("Check_hugefiles_dot_net_links", false))
  7367. {
  7368. addFileHost(
  7369. "hugefiles\\.net\/\\w+",
  7370. 'download1|class="btn-create-download" value="Create Download Link">',
  7371. 'File Not Found',
  7372. 'optional--',
  7373. "//a[contains(@href,'hugefiles.net/')]"
  7374. );
  7375. }
  7376. if (GM_getValue("Check_sendmyway_dot_com_links", false))
  7377. {
  7378. addFileHost(
  7379. "sendmyway\\.com\/\\w+",
  7380. 'id="btn_download"',
  7381. '500px;text-align:left;"|<center><h3>',
  7382. 'optional--',
  7383. "//a[contains(@href,'sendmyway.com/')]"
  7384. );
  7385. }
  7386. if (GM_getValue("Check_upload_dot_ee_links", false))
  7387. {
  7388. addFileHost(
  7389. "upload\\.ee\/\\w+",
  7390. 'onmouseout="document.dllink.src',
  7391. 'There is no such file.|File was deleted|Fail kustutati|Файл удалён|Такого файла нет',
  7392. 'optional--',
  7393. "//a[contains(@href,'upload.ee/')]"
  7394. );
  7395. }
  7396. if (GM_getValue("Check_epicshare_dot_net_links", false))
  7397. {
  7398. addFileHost(
  7399. "epicshare\\.net\/\\w+",
  7400. 'value="download2"',
  7401. 'style="width:500px;text-align:left;"',
  7402. 'optional--',
  7403. "//a[contains(@href,'epicshare.net/')]"
  7404. );
  7405. }
  7406. if (GM_getValue("Check_shareplace_dot_org_links", false))
  7407. {
  7408. addFileHost(
  7409. "shareplace\\.org\/\\?\\w+",
  7410. 'Download-Link',
  7411. 'Your requested file is not found|Select file to send',
  7412. 'optional--',
  7413. "//a[contains(@href,'shareplace.org/?')]"
  7414. );
  7415. }
  7416. if (GM_getValue("Check_uploadc_dot_com_links", false))
  7417. {
  7418. addFileHost(
  7419. "uploadc\\.com\/\\w+",
  7420. 'id="prebut"',
  7421. 'File Not Found|This file has been removed due',
  7422. 'optional--',
  7423. "//a[contains(@href,'uploadc.com/')]"
  7424. );
  7425. }
  7426. if (GM_getValue("Check_darkport_dot_org_links", false))
  7427. {
  7428. addFileHost(
  7429. "files\\.darkport\\.org\/\\w+",
  7430. 'class="premium-btn-3"',
  7431. 'File was not found|file_not_found.css',
  7432. 'optional--',
  7433. "//a[contains(@href,'files.darkport.org/')]"
  7434. );
  7435. }
  7436. if (GM_getValue("Check_yourfiles_dot_to_links", false))
  7437. {
  7438. addFileHost(
  7439. "yourfiles\\.(?:to|biz)/\\?d=\\w+",
  7440. '<td align=left width=20%><b><font>',
  7441. "<DIV id=uploadwindow>|<tr height=26px>\\s+<td class='titlerow'",
  7442. 'optional--',
  7443. "//a[contains(@href,'yourfiles.biz/?d=') or contains(@href,'yourfiles.to/?d=')]"
  7444. );
  7445. }
  7446. if (GM_getValue("Check_remixshare_dot_com_links", false))
  7447. {
  7448. addFileHost(
  7449. "remixshare\\.com\/\\w+",
  7450. 'id="dl2"',
  7451. '<table class=\'failed\'><tr><td width=\'90%\'>|Sorry, die Datei konnte nicht gefunden werden',
  7452. 'optional--',
  7453. "//a[contains(@href,'remixshare.com/')]"
  7454. );
  7455. }
  7456. if (GM_getValue("Check_exoshare_dot_com_links", false))
  7457. {
  7458. addFileHost(
  7459. "exoshare\\.com\/download\\.php\\?uid=\\w+",
  7460. 'Last Download :',
  7461. 'img src="\\/404.jpg"',
  7462. 'optional--',
  7463. "//a[contains(@href,'exoshare.com/download.php')]"
  7464. );
  7465. }
  7466. if (GM_getValue("Check_borncash_dot_org_links", false))
  7467. {
  7468. addFileHost(
  7469. "borncash\\.org\/download\/\\?a=\\w+",
  7470. 'class="knop_1"',
  7471. '\/error\/er00',
  7472. 'optional--',
  7473. "//a[contains(@href,'borncash.org/download/')]"
  7474. );
  7475. }
  7476. if (GM_getValue("Check_uploadsat_dot_com_links", false))
  7477. {
  7478. addFileHost(
  7479. "uploadsat\.com\/\\w+",
  7480. 'class="btn btn-success btn-lg" name="method_free"|value="Free Download">',
  7481. '<div style="width:500px;text-align:left;">|File Not Found|The file was removed',
  7482. 'optional--',
  7483. "//a[contains(@href,'uploadsat.com')]");
  7484. }
  7485. if (GM_getValue("Check_vidplay_dot_net_links", false))
  7486. {
  7487. addFileHost(
  7488. "vidplay\.net\/\\w+",
  7489. 'solvemedia puzzle widget',
  7490. 'File not found|AVOID_IE_BUG',
  7491. 'optional--',
  7492. "//a[contains(@href,'vidplay.net')]");
  7493. }
  7494. if (GM_getValue("Check_storagon_dot_com_links", false))
  7495. {
  7496. addFileHost(
  7497. "storagon\.com\/\\w+",
  7498. 'class="icon-cloud-download"></i>|content="Download Options',
  7499. 'content="Download Downloads|class="error-container">|class="bigger-300 bolder">404<',
  7500. 'optional--',
  7501. "//a[contains(@href,'storagon.com')]");
  7502. }
  7503. if (GM_getValue("Check_filedais_dot_com_links", false))
  7504. {
  7505. addFileHost(
  7506. "filedais\.com\/\\w+",
  7507. 'class="btn btn-info"|name="method_free"',
  7508. 'style="width:500px;text-align:left;">|File Not Found|AVOID_IE_BUG',
  7509. 'optional--',
  7510. "//a[contains(@href,'filedais.com')]");
  7511. }
  7512. if (GM_getValue("Check_qkup_dot_net_links", false))
  7513. {
  7514. addFileHost(
  7515. "qkup\.net\/\\w+",
  7516. 'btn_download',
  7517. 'AVOID_IE_BUG|style="width:500px;text-align:left;">',
  7518. 'optional--',
  7519. "//a[contains(@href,'qkup.net')]");
  7520. }
  7521. if (GM_getValue("Check_rocketfile_dot_net_links", false))
  7522. {
  7523. addFileHost(
  7524. "rocketfile\.net\/\\w+",
  7525. '<div class="col-lg-10 col-lg-offset-1"><style>',
  7526. '<div style="width:500px;text-align:left;">',
  7527. 'optional--',
  7528. //'optional--',
  7529. "//a[contains(@href,'rocketfile.net')]");
  7530. }
  7531. /*if (GM_getValue("Check_ryushare_dot_com_links", false))
  7532. {
  7533. addFileHost(
  7534. "ryushare\.com\/\\w+",
  7535. 'KB|MB',
  7536. '<div style="width:500px;text-align:left;">',
  7537. 'in maintenance mode|Software error:',
  7538. "//a[contains(@href,'ryushare.com')]");
  7539. }*/
  7540. if (GM_getValue("Check_filecity_dot_net_links", false))
  7541. {
  7542. addFileHost(
  7543. "filecity\.net\/\\w+",
  7544. '<input type="submit"',
  7545. '<div style="width:500px;text-align:left;">',
  7546. 'optional--',
  7547. //'optional--',
  7548. "//a[contains(@href,'filecity.net')]");
  7549. }
  7550. if (GM_getValue("Check_up_dot_4share_dot_vn_links", false))
  7551. {
  7552. addFileHost(
  7553. "up.4share\.vn\/\\w+",
  7554. '<font size="2" face="Verdana">',
  7555. 'font: 13px Tahoma; color: Brown',
  7556. 'optional--',
  7557. //'optional--',
  7558. "//a[contains(@href,'up.4share.vn')]");
  7559. }
  7560. if (GM_getValue("Check_share_dot_vnn_dot_vn_links", false))
  7561. {
  7562. addFileHost(
  7563. "share.vnn\.vn\/\\w+",
  7564. '"index,follow"|<div class="main" id="download-box">',
  7565. '<meta name="description" content="" />|<h1>Không tìm thấy file bạn yêu cầu</h1>',
  7566. 'optional--',
  7567. //'optional--',
  7568. "//a[contains(@href,'share.vnn.vn')]");
  7569. }
  7570. if (GM_getValue("Check_upfile_dot_vn_links", false))
  7571. {
  7572. addFileHost(
  7573. "upfile\.vn\/\\w+",
  7574. 'download-timer',
  7575. '<meta name="description" content="Upload files|<meta name="description" content="Error "',
  7576. 'optional--',
  7577. //'optional--',
  7578. "//a[contains(@href,'upfile.vn')]");
  7579. }
  7580. if (GM_getValue("Check_firedrive_dot_com_links", false))
  7581. {
  7582. addFileHost(
  7583. "firedrive\\.com\/file\/\\w{16}",
  7584. 'as Free User|<a class="continue"|Continue to file|#feedback_btn|application file_standalone',
  7585. 'Welcome to PutLocker|<div class="sad_face_image">|404:',
  7586. 'undergoing scheduled maintenance',
  7587. "//a[contains(@href,'firedrive.com/file')]"
  7588. );
  7589. }
  7590. if (GM_getValue("Check_aisfile_dot_com_links", false))
  7591. {
  7592. addFileHost(
  7593. "aisfile\.com\/\\w+",
  7594. '<h3 style="text-align:left;">|align=right><b>Filename:',
  7595. '<div style="width:500px;text-align:left;">|File Not Found',
  7596. 'optional--',
  7597. //'optional--',
  7598. "//a[contains(@href,'aisfile.com')]");
  7599. }
  7600. if (GM_getValue("Check_usersfiles_dot_com_links", false))
  7601. {
  7602. addFileHost(
  7603. "usersfiles\.com\/\\w+",
  7604. 'class="btn btn-success',
  7605. '<div style="width:500px;text-align:left;">',
  7606. 'optional--',
  7607. //'optional--',
  7608. "//a[contains(@href,'usersfiles.com')]");
  7609. }
  7610. if (GM_getValue("Check_hellfile_dot_com_links", false))
  7611. {
  7612. addFileHost(
  7613. "hellfile\.com\/\\w+",
  7614. 'content="download',
  7615. 'pageErrors',
  7616. 'optional--',
  7617. //'optional--',
  7618. "//a[contains(@href,'hellfile.com')]");
  7619. }
  7620. if (GM_getValue("Check_pan_dot_baidu_dot_com_links", false))
  7621. {
  7622. addFileHost(
  7623. "pan.baidu\.com\/\\w+",
  7624. 'target="_blank" title=|share-personal-info',
  7625. 'share_notfound.png|background:#f9f9f9',
  7626. 'optional--',
  7627. //'optional--',
  7628. "//a[contains(@href,'pan.baidu.com')]");
  7629. }
  7630. if (GM_getValue("Check_yunpan_dot_cn_links", false))
  7631. {
  7632. addFileHost(
  7633. "yunpan\.cn\/\\w+",
  7634. 'class="icon icon-download',
  7635. 'content="360|http://p5.qhimg.com/t01d1c98667df9dc6cc.jpg',
  7636. 'optional--',
  7637. //'optional--',
  7638. "//a[contains(@href,'yunpan.cn')]");
  7639. }
  7640. if (GM_getValue("Check_file_dash_upload_dot_net_links", false))
  7641. {
  7642. addFileHost(
  7643. "(?:en\\.|)file\\-upload\\.net\/download\\-\\d+\/\\w+",
  7644. 'getElementById("downbild")|style.display',
  7645. 'hochgeladene Datei nicht gefunden werden|has not been found',
  7646. 'optional--',
  7647. //'optional--',
  7648. "//a[contains(@href,'file-upload.net')]");
  7649. }
  7650. if (GM_getValue("Check_gulfup_dot_com_links", false))
  7651. {
  7652. addFileHost(
  7653. "gulfup\.com\/",
  7654. '<!-- Downlod template -->|download.gif',
  7655. '<!-- Errors template -->|class="error">|<!-- form upload -->|[ رفع الملفات ]',
  7656. 'optional--',
  7657. //'optional--',
  7658. "//a[contains(@href,'gulfup.com')]");
  7659. }
  7660. if (GM_getValue("Check_datafilehost_dot_com_links", false))
  7661. {
  7662. addFileHost(
  7663. "datafilehost\\.com\/(?:download-\\w+\\.html|d\/\\w+)",
  7664. 'dldtable">',
  7665. 'does not exist\\.',
  7666. 'optional--',
  7667. //'optional--',
  7668. "//a[contains(@href,'datafilehost.com')]");
  7669. }
  7670. if (GM_getValue("Check_box_dot_com_links", false))
  7671. {
  7672. addFileHost(
  7673. "box\.com\/\\w+",
  7674. 'download-file-btn|id="download_button',
  7675. 'BIyMin.png| <div class="error_message',
  7676. 'optional--',
  7677. //'optional--',
  7678. "//a[contains(@href,'app.box.com')]");
  7679. }
  7680. if (GM_getValue("Check_box_dot_net_links", false))
  7681. {
  7682. addFileHost(
  7683. "box\.net\/\\w+",
  7684. 'download-file-btn|id="download_button',
  7685. 'BIyMin.png| <div class="error_message',
  7686. 'optional--',
  7687. //'optional--',
  7688. "//a[contains(@href,'box.net')]");
  7689. }
  7690. if (GM_getValue("Check_fileband_dot_com_links", false))
  7691. {
  7692. addFileHost(
  7693. "fileband\.com\/\\w+",
  7694. 'value="download1">|name="id" value=',
  7695. '<div style="width:500px;text-align:left;">|not be found',
  7696. 'optional--',
  7697. //'optional--',
  7698. "//a[contains(@href,'fileband.com')]");
  7699. }
  7700. if (GM_getValue("Check_lumfile_dot_com_links", false))
  7701. {
  7702. addFileHost(
  7703. "lumfile\.com\/\\w+",
  7704. '<div style="width:900px;">',
  7705. '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;">',
  7706. 'optional--',
  7707. "//a[contains(@href,'lumfile.com')]");
  7708. }
  7709. if (GM_getValue("Check_lumfile_dot_se_links", false))
  7710. {
  7711. addFileHost(
  7712. "lumfile\.se\/\\w+",
  7713. '<div style="width:900px;">',
  7714. '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;">',
  7715. 'optional--',
  7716. "//a[contains(@href,'lumfile.se')]");
  7717. }
  7718. if (GM_getValue("Check_lumfile_dot_eu_links", false))
  7719. {
  7720. addFileHost(
  7721. "lumfile\.eu\/\\w+",
  7722. '<div style="width:900px;">',
  7723. '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;">',
  7724. 'optional--',
  7725. "//a[contains(@href,'lumfile.eu')]");
  7726. }
  7727. if (GM_getValue("Check_vidbox_dot_yt_links", false))
  7728. {
  7729. addFileHost(
  7730. "vidbox\.yt\/\\w+",
  7731. 'btn_download',
  7732. '<div style="width:500px;text-align:left;">',
  7733. '500 Internal Server Error|522: Connection timed out|cf-error-code">521<',
  7734. //'optional--',
  7735. "//a[contains(@href,'vidbox.yt')]");
  7736. }
  7737. if (GM_getValue("Check_uploadrocket_dot_net_links", false))
  7738. {
  7739. addFileHost(
  7740. "uploadrocket\.net\/\\w+",
  7741. '<font style="font-size:12px;">|<h2>Download File',
  7742. 'font style="color:#d33;|File Not Found',
  7743. 'optional--',
  7744. //'optional--',
  7745. "//a[contains(@href,'uploadrocket.net')]");
  7746. }
  7747. if (GM_getValue("Check_filedropper_dot_com_links", false))
  7748. {
  7749. addFileHost(
  7750. "filedropper\.com\/\\w+",
  7751. 'background:#ddd;|width:985px; ',
  7752. 'background-color:#FFFFFF;|margin-left: -400px;',
  7753. 'optional--',
  7754. //'optional--',
  7755. "//a[contains(@href,'filedropper.com')]");
  7756. }
  7757. if (GM_getValue("Check_tropicshare_dot_com_links", false))
  7758. {
  7759. addFileHost(
  7760. "tropicshare\\.com\/files\/\\d+",
  7761. 'MB</span>|GB</span>|KB</span>',
  7762. '>FNF<|size: </span>',
  7763. 'optional--',
  7764. //'optional--',
  7765. "//a[contains(@href,'tropicshare.com')]");
  7766. }
  7767. if (GM_getValue("Check_goldbytez_dot_com_links", false))
  7768. {
  7769. addFileHost(
  7770. "goldbytez\.com\/\\w+",
  7771. '<h2>Download</h2>|<center><h2>File: <font color="red">',
  7772. '<div style="width:500px;text-align:left;">|<h2>Error</h2>',
  7773. 'optional--',
  7774. //'optional--',
  7775. "//a[contains(@href,'goldbytez.com')]");
  7776. }
  7777. if (GM_getValue("Check_worldbytez_dot_com_links", false))
  7778. {
  7779. addFileHost(
  7780. "worldbytez\.com\/\\w+",
  7781. '<div class="download_type">',
  7782. '<div style="width:500px;text-align:left;">',
  7783. 'optional--',
  7784. //'optional--',
  7785. "//a[contains(@href,'worldbytez.com')]");
  7786. }
  7787. if (GM_getValue("Check_freefilehosting_dot_net_links", false))
  7788. {
  7789. addFileHost(
  7790. "freefilehosting\.net\/\\w+",
  7791. 'Type: cbr|Type: rar|Type: jpg|Type: mkv|Type: avi|Type: mpg|Type: mpeg|Type: zip|Type: wmvType: bmpType: gifType: mp4Type: mp3',
  7792. '175px;" value="http://www.freefilehosting.net/"|Filename: <br>',
  7793. 'optional--',
  7794. //'optional--',
  7795. "//a[contains(@href,'freefilehosting.net')]");
  7796. }
  7797. if (GM_getValue("Check_filesfrog_dot_net_links", false))
  7798. {
  7799. addFileHost(
  7800. "filesfrog\.net\/\\w+",
  7801. 'download-now.png|File: <font style="color:darkred">',
  7802. '<div style="width:500px;text-align:left;">|File Not Found',
  7803. 'optional--',
  7804. //'optional--',
  7805. "//a[contains(@href,'filesfrog.net')]");
  7806. }
  7807. if (GM_getValue("Check_ziddu_dot_com_links", false))
  7808. {
  7809. addFileHost(
  7810. "ziddu\.com\/\\w+",
  7811. 'downloads.ziddu.com|downloadfilelinkicon',
  7812. 'errortracking.php|images/oops.png|fontfamilyverdana error',
  7813. 'optional--',
  7814. //'optional--',
  7815. "//a[contains(@href,'ziddu.com')]");
  7816. }
  7817. if (GM_getValue("Check_exclusiveloader_dot_com_links", false))
  7818. {
  7819. addFileHost(
  7820. "exclusiveloader\.com\/\\w+",
  7821. 'style="padding-top:55px; padding-bottom:65px;">|<h2>Download</h2>',
  7822. 'File Not Found|width:322px;text-align:left;" class="no_file">',
  7823. 'optional--',
  7824. //'optional--',
  7825. "//a[contains(@href,'exclusiveloader.com')]");
  7826. }
  7827. if (GM_getValue("Check_sharerapid_dot_cz_links", false))
  7828. {
  7829. addFileHost(
  7830. "sharerapid\.cz\/\\w+",
  7831. 'value="Stáhnout"|soubor" style|Stahování je povoleno pouze pro přihlášené uživatele',
  7832. 'error_div">|404 - Not Found',
  7833. 'optional--',
  7834. //'optional--',
  7835. "//a[contains(@href,'sharerapid.cz')]");
  7836. }
  7837. if (GM_getValue("Check_sdilej_dot_cz_links", false))
  7838. {
  7839. addFileHost(
  7840. "sdilej\.cz\/\\w+",
  7841. 'class="page-download"',
  7842. '<h2 class="red">|czshare.com|sponsored listings|This domain is for sale',
  7843. 'optional--',
  7844. //'optional--',
  7845. "//a[contains(@href,'sdilej.cz')]");
  7846. }
  7847. if (GM_getValue("Check_lafiles_dot_com_links", false))
  7848. {
  7849. addFileHost(
  7850. "lafiles\.com\/\\w+",
  7851. '<div id="pay_modes">',
  7852. '<b class="err"></b>',
  7853. 'optional--',
  7854. //'optional--',
  7855. "//a[contains(@href,'lafiles.com')]");
  7856. }
  7857. if (GM_getValue("Check_fboom_dot_me_links", false))
  7858. {
  7859. addFileHost(
  7860. "fboom\.me\/\\w+",
  7861. 'id="download-free" href="#"',
  7862. 'class="error-v1-title">404<|File not found or deleted',
  7863. 'optional--',
  7864. //'optional--',
  7865. "//a[contains(@href,'fboom.me')]");
  7866. }
  7867. if (GM_getValue("Check_fileboom_dot_me_links", false))
  7868. {
  7869. addFileHost(
  7870. "fileboom\.me\/\\w+",
  7871. 'id="download-free" href="#"',
  7872. 'class="error-v1-title">404<|File not found or deleted',
  7873. 'optional--',
  7874. //'optional--',
  7875. "//a[contains(@href,'fileboom.me')]");
  7876. }
  7877. if (GM_getValue("Check_fcore_dot_eu_links", false))
  7878. {
  7879. addFileHost(
  7880. "fcore\.eu\/\\w+",
  7881. 'btn_download',
  7882. '<div style="width:500px;text-align:left;">',
  7883. 'optional--',
  7884. //'optional--',
  7885. "//a[contains(@href,'fcore.eu')]");
  7886. }
  7887. if (GM_getValue("Check_acefile_dot_net_links", false))
  7888. {
  7889. addFileHost(
  7890. "acefile\.net\/\\w+",
  7891. 'align=right nowrap><b>',
  7892. 'File Not Found|<div style="width:322px;text-align:left;" class="no_file">',
  7893. 'optional--',
  7894. //'optional--',
  7895. "//a[contains(@href,'acefile.net')]");
  7896. }
  7897. if (GM_getValue("Check_dotsemper_dot_com_links", false))
  7898. {
  7899. addFileHost(
  7900. "dotsemper\.com\/\\w+",
  7901. 'btn_download',
  7902. 'style="width:500px;text-align:left;">',
  7903. 'optional--',
  7904. //'optional--',
  7905. "//a[contains(@href,'dotsemper.com')]");
  7906. }
  7907. if (GM_getValue("Check_filesaur_dot_com_links", false))
  7908. {
  7909. addFileHost(
  7910. "filesaur\.com\/\\w+",
  7911. 'btn-normal|value="download1|method_free',
  7912. 'File Not Found|style="width:500px;text-align:left;',
  7913. 'optional--',
  7914. //'optional--',
  7915. "//a[contains(@href,'filesaur.com')]");
  7916. }
  7917. if (GM_getValue("Check_megarapid_dot_cz_links", false))
  7918. {
  7919. addFileHost(
  7920. "megarapid\.cz\/\\w+",
  7921. 'value="Stáhnout"|soubor" style|Stahování je povoleno pouze pro přihlášené uživatele',
  7922. 'error_div">|404 - Not Found',
  7923. 'optional--',
  7924. //'optional--',
  7925. "//a[contains(@href,'megarapid.cz')]");
  7926. }
  7927. if (GM_getValue("Check_yadi_dot_sk_links", false))
  7928. {
  7929. addFileHost(
  7930. "yadi\.sk\/\\w+",
  7931. 'twitter:site|View and download',
  7932. 'error code|Nothing found',
  7933. 'optional--',
  7934. //'optional--',
  7935. "//a[contains(@href,'yadi.sk')]");
  7936. }
  7937. if (GM_getValue("Check_inafile_dot_com_links", false))
  7938. {
  7939. addFileHost(
  7940. "inafile\.com\/\\w+",
  7941. 'value="download1">|<h2>File: <font style="color:darkred">',
  7942. '<div style="width:500px;text-align:left;">|File Not Found',
  7943. 'optional--',
  7944. //'optional--',
  7945. "//a[contains(@href,'inafile.com')]");
  7946. }
  7947. if (GM_getValue("Check_imdb_dot_com_links", false))
  7948. {
  7949. addFileHost(
  7950. "imdb\.com\/\\w+",
  7951. 'imdb.com',
  7952. '404 Error',
  7953. 'optional--',
  7954. "//a[contains(@href,'imdb.com')]");
  7955. }
  7956. if (GM_getValue("Check_hitfile_dot_net_links", false))
  7957. {
  7958. addFileHost(
  7959. "hitfile\.net\/\\w+",
  7960. 'class="download-file',
  7961. 'style="width:16px;height:16px;border:0;|File not found',
  7962. 'optional--',
  7963. //'optional--',
  7964. "//a[contains(@href,'hitfile.net')]");
  7965. }
  7966. if (GM_getValue("Check_xerver_dot_co_links", false))
  7967. {
  7968. addFileHost(
  7969. "xerver\.co\/\\w+",
  7970. 'style="text-transform:uppercase|value="download1',
  7971. '404 Error|FILE NOT FOUND',
  7972. 'optional--',
  7973. //'optional--',
  7974. "//a[contains(@href,'xerver.co')]");
  7975. }
  7976. }
  7977. //start here
  7978.  
  7979. //hosts with direct download, so they must be requested for headers only
  7980. function initFileHostsHeadersOnly()
  7981. {
  7982. function addFileHostHeadersOnly(linkRegex, isAliveRegex, isDeadRegex, xpathEx, ispremRegex)
  7983. {
  7984. var host = new Array(5);
  7985. host[0] = linkRegex;
  7986. host[1] = isAliveRegex;
  7987. host[2] = isDeadRegex;
  7988. host[3] = xpathEx;
  7989. host[4] = ispremRegex;
  7990. http_file_hosts_headers_only.push(host);
  7991. }
  7992. if (GM_getValue("Check_uloziste_dot_com_links", false))
  7993. {
  7994. addFileHostHeadersOnly(
  7995. "(?:|files\\.)uloziste\\.com\/\\w+\/\\w+",
  7996. 'Connection: Keep-Alive',
  7997. 'Content-Length: 3857',
  7998. "//a[contains(@href,'uloziste.com')]"
  7999. )
  8000. }
  8001. if (GM_getValue("Check_filemonster_dot_net_links", false))
  8002. {
  8003. addFileHostHeadersOnly(
  8004. "filemonster\\.net\/(?:..\/|)file\/\\w+",
  8005. 'filename="',
  8006. 'Content\\-Type: text\/html',
  8007. "//a[contains(@href,'filemonster.net')]"
  8008. )
  8009. }
  8010. if (GM_getValue("Check_uploadbin_dot_net_links", false))
  8011. {
  8012. addFileHostHeadersOnly(
  8013. "uploadbin\\.net\/\\w+\/\\w+",
  8014. 'filename=',
  8015. 'Connection: close',
  8016. "//a[contains(@href,'uploadbin.net')]"
  8017. )
  8018. }
  8019. if (GM_getValue("Check_loombo_dot_com_links", false))
  8020. {
  8021. addFileHostHeadersOnly(
  8022. "loombo\\.com\/\\w+",
  8023. 'Connection: keep-alive',
  8024. 'Content-Length: 4816',
  8025. "//a[contains(@href,'loombo.com')]"
  8026. )
  8027. }
  8028. if (GM_getValue("Check_adrive_dot_com_links", false))
  8029. {
  8030. addFileHostHeadersOnly(
  8031. "adrive\\.com\/public\/\\w+",
  8032. 'Connection: keep-alive',
  8033. 'orig_ref=deleted',
  8034. "//a[contains(@href,'adrive.com')]"
  8035. )
  8036. }
  8037. if (GM_getValue("Check_ubuntuone_dot_com_links", false))
  8038. {
  8039. addFileHostHeadersOnly(
  8040. "ubuntuone\\.com\/\\w+",
  8041. '; filename=',
  8042. 'Content-Length: 20',
  8043. "//a[contains(@href,'ubuntuone.com/')]"
  8044. )
  8045. }
  8046. if (GM_getValue("Check_myupload_dot_dk_links", false))
  8047. {
  8048. addFileHostHeadersOnly(
  8049. "myupload\\.dk\/showfile\/\\w+",
  8050. 'Expires:',
  8051. 'squeeze1\\s+Vary',
  8052. "//a[contains(@href,'myupload.dk/showfile')]"
  8053. )
  8054. }
  8055. if (GM_getValue("Check_storage_dot_novoro_dot_net_links", false))
  8056. {
  8057. addFileHostHeadersOnly(
  8058. "storage\\.novoro\\.net\/pub\/\\w*",
  8059. 'Etag:',
  8060. 'Expires:',
  8061. "//a[contains(@href,'storage.novoro.net')]"
  8062. )
  8063. }
  8064. }
  8065. //CustomRules
  8066. //functions add...Host copied here
  8067. function addObsoleteHost(linkRegex, xpathEx)
  8068. {
  8069. var host = new Array(2);
  8070. host[0] = linkRegex;
  8071. host[1] = xpathEx;
  8072. http_file_hosts_obsolete.push(host);
  8073. }
  8074. function addFileHost(linkRegex, isAliveRegex, isDeadRegex, isUnavaRegex, xpathEx, tryLoop, ispremRegex)
  8075. {
  8076. var host = new Array(7);
  8077. host[0] = linkRegex;
  8078. host[1] = isAliveRegex;
  8079. host[2] = isDeadRegex;
  8080. host[3] = isUnavaRegex;
  8081. host[4] = xpathEx;
  8082. tryLoop ? host[5] = true : host[5] = false;
  8083. host[6] = ispremRegex;
  8084. http_file_hosts.push(host);
  8085. }
  8086. function addFileHostHeadersOnly(linkRegex, isAliveRegex, isDeadRegex, xpathEx, ispremRegex)
  8087. {
  8088. var host = new Array(5);
  8089. host[0] = linkRegex;
  8090. host[1] = isAliveRegex;
  8091. host[2] = isDeadRegex;
  8092. host[3] = xpathEx;
  8093. host[4] = ispremRegex;
  8094. http_file_hosts_headers_only.push(host);
  8095. }
  8096. //takes a fully built rules array and adds the rules to WARLC
  8097. function applyCustomRules(customRules)
  8098. {
  8099. if (!customRules) return;
  8100. var rules, r, i;
  8101. rules = customRules.rules;
  8102. for (i = 0 ; i < rules.length ; i++)
  8103. {
  8104. r = rules[i];
  8105. if (r.enabled)
  8106. {
  8107. switch (r.type)
  8108. {
  8109. case 'single':
  8110. addFileHost(r.urlregex, r.aliveregex, r.deadregex, r.unavaregex, r.premregex||'', r.xpath);
  8111. break;
  8112. case 'headers':
  8113. addFileHostHeadersOnly(r.urlregex, r.aliveregex, r.deadregex, r.xpath, r.premregex);
  8114. break;
  8115. case 'obsolete':
  8116. addObsoleteHost(r.urlregex, r.xpath)
  8117. break;
  8118. }
  8119. }
  8120. }
  8121. }
  8122.  
  8123.  
  8124. function initFileHostsCustom()
  8125. {
  8126. if (Custom_rules && Custom_rules_text)
  8127. {
  8128. var msg = '';
  8129. if (newVersion)
  8130. msg = 'New version of W.A.R. Links Checker detected.\n\n';
  8131. else if ((now - last_custom_rules_nag) >= 60*24*60*60*1000)
  8132. msg = '60 or more days have passed since this notification.\n\n';
  8133. if (msg && /^\s*@customrule(?:_obsolete)?\s/mi.test(Custom_rules_text))
  8134. {
  8135. GM_setValue('last_custom_rules_nag', ''+new Date().getTime()); //reset nag
  8136. msg +=
  8137. 'Either new version of W.A.R. Links Checker detected or 60 days passed since this notify.\n'+
  8138. 'Please check that your custom rules haven\'t been built into WARLC.\n'+
  8139. 'If not, please share them with us so they can be included in the next version! Built-in rules are always preferred.\n\n'+
  8140. 'We apologize for this annoying notification, but there is a reason to this.\n'+
  8141. 'Ideally, WARLC would check which of your custom rules have been included and disable them. '+
  8142. 'Unfortunately, there is no easy way to do that, but we don\'t want everybody to just use their custom rules '+
  8143. 'forever without ever checking if the built-in ones have been added/fixed. This is currently the only way '+
  8144. 'to remind you that you should try built-in rules, report missing/non-working ones and share your custom rules.';
  8145. setTimeout(function(){alert(msg)},0);
  8146. }
  8147. var customRules = parseCustomRules(Custom_rules_text);
  8148. if (customRules.warning || customRules.error)
  8149. alert('There were ' + customRules.error + ' errors, ' + customRules.warning + ' warnings, ' +
  8150. customRules.note + ' notes found during Custom Rules processing.\n' + customRules.rules.length + ' valid rules found.\n\n' +
  8151. JSON.stringify(customRules.info, null, ' '));
  8152. applyCustomRules(customRules);
  8153. }
  8154. }
  8155. //end of CustomRules processing
  8156.  
  8157.  
  8158.  
  8159. } //end of function start
  8160.  
  8161.  
  8162.  
  8163. function initClipBoardTools()
  8164. {
  8165. unsafeWindow.copyToClipboard = function(text)
  8166. {
  8167. try
  8168. {
  8169. this.netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
  8170.  
  8171. var str = Components.classes["@mozilla.org/supports-string;1"].
  8172. createInstance(Components.interfaces.nsISupportsString);
  8173. if (!str) return false;
  8174.  
  8175. str.data = text;
  8176.  
  8177. var trans = Components.classes["@mozilla.org/widget/transferable;1"].
  8178. createInstance(Components.interfaces.nsITransferable);
  8179. if (!trans) return false;
  8180.  
  8181. trans.addDataFlavor("text/unicode");
  8182. trans.setTransferData("text/unicode", str, text.length * 2);
  8183.  
  8184. var clipid = Components.interfaces.nsIClipboard;
  8185. var clip = Components.classes["@mozilla.org/widget/clipboard;1"].getService(clipid);
  8186. if (!clip) return false;
  8187.  
  8188. clip.setData(trans, null, clipid.kGlobalClipboard);
  8189. } catch (e) {
  8190. GM_log("Error copyToClipboard : " + e);
  8191. alert(e + "\n\nsigned.applets.codebase_principal_support must be set true in about:config")
  8192. }
  8193. }
  8194. }
  8195.  
  8196.  
  8197.  
  8198. //CustomRules
  8199.  
  8200. function escapeRegex(str)
  8201. {
  8202. return str.replace(/[\-\[\]{}()*+?.,\\\^$|#]/g, "\\$&");
  8203. }
  8204.  
  8205.  
  8206. //called internally from parseCustomRules.
  8207. //expected: rule object with array fields baseurl, alivematch etc, everything must already be checked for input errors
  8208. //returns the rule object with string fields urlregex, xpath, aliveregex etc built from the arrays
  8209. function makeCustomRule(rule)
  8210. {
  8211. function makeMatchRegex(arrmatch)
  8212. {
  8213. return escapeRegex(arrmatch.join('\n'))
  8214. .replace(/ +/g, '\\s+') //two or more spaces to any whitespace
  8215. .replace(/\n/g,'|'); //join together
  8216. }
  8217. if (rule.alivematch) rule.aliveregex = makeMatchRegex(rule.alivematch);
  8218. if (rule.deadmatch) rule.deadregex = makeMatchRegex(rule.deadmatch);
  8219. if (rule.unavamatch) rule.unavaregex = makeMatchRegex(rule.unavamatch);
  8220. if (rule.premmatch) rule.premregex = makeMatchRegex(rule.premmatch);
  8221. if (rule.baseurl)
  8222. {
  8223. var i, m, urlregex = [], xpath = [], len = rule.baseurl.length;
  8224. for (i = 0 ; i < len ; i++)
  8225. {
  8226. m = rule.baseurl[i].match(/^([a-z0-9\.-]+)(?: +([a-z \.]+) +)?(\/.*)$/);
  8227. if (m[2]) //baseurl in the form: example. com co.uk net /xxx
  8228. {
  8229. 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'])
  8230. urlregex.push( (m[1] + '(?:'+ m[2].replace(/\s+/g,'|') + ')').replace(/\./g,'\\.') + escapeRegex(m[3]) + '.'); //urlregex.push('example\\.(?:com|co\\.uk|net)/xxx.')
  8231. }
  8232. else //baseurl in the form: example.com/xxx
  8233. {
  8234. xpath.push(m[0]);
  8235. urlregex.push(escapeRegex(m[0]) + '.');
  8236. }
  8237. }
  8238. rule.xpath = "//a[contains(@href,'" + xpath.join("') or contains(@href,'") + "')]";
  8239. rule.urlregex = '(?:[a-z0-9\\.-]+\\.)?(?:' + urlregex.join('|') + ')';
  8240. }
  8241. return rule;
  8242. } //function makeCustomRule
  8243.  
  8244.  
  8245. /*
  8246. Takes a string containing custom link checking rules.
  8247. Returns an object with fields:
  8248. info - contains notes, warnings and errors found during parsing
  8249. rules - the array of custom rules
  8250. note, warning, error - number of each of them found during parsing
  8251. Format of the input string:
  8252. One command per line. Command format: @keyword parameter
  8253. Keywords:
  8254. @customrule, @customrule_obsolete, @customrule_headers - begin a new custom rule. Parameter: name of the rule
  8255. @#customrule, @#customrule_obsolete, @#customrule_headers - begin and parse this custom rule, but don't use it. Parameter: name of the rule
  8256. These keywords can be multiple (any of them will work):
  8257. @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...)
  8258. @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+
  8259. @alivelink, @deadlink - example links
  8260. @baseurl is always required, @alivematch and @deadmatch are required except for obsolete. @unavamatch is ignored for obsolete. @*link is optional.
  8261. Lines starting with // and empty lines are ignored.
  8262. Invalid parameters generate errors and those lines are skipped.
  8263. Other lines generate warnings, but are otherwise ignored (also those before the first @customrule line or inside a rule with invalid name).
  8264. Example:
  8265. @customrule filehost
  8266. @baseurl filehost.com/download/
  8267. @baseurl filehost2. com net /d?=
  8268. @alivematch id="download">
  8269. @deadmatch File not found
  8270. @deadmatch File deleted
  8271. */
  8272. function parseCustomRules(rulesStr)
  8273. {
  8274. var linenum, customRules = {'info': [], 'rules': [], 'note': 0, 'warning': 0, 'error': 0};
  8275. function addInfo(type, msg, ln){
  8276. customRules.info.push({'linenum':(ln===undefined ? linenum+1 : ln+1), 'type':type, 'msg':msg});
  8277. customRules[type]++;
  8278. }
  8279. var lines = rulesStr.match(/^(.*)$/gm); //split into array of lines
  8280. if (!lines) return null;
  8281. lines.push('@#customrule _'); //to save the last rule
  8282. var m, linecount = lines.length;
  8283. var keyword, param, constr, rule, err;
  8284. var TLD = '[a-z]{2,7}(?:\\.[a-z]{2,7})?';
  8285. var TLDorTLDlist = '(?:'+TLD+'| '+TLD+'(?: '+TLD+'){0,9} )'; //TLD or space-separated list of TLDs
  8286. var baseurlRE = new RegExp('^([a-z0-9-]{1,30}(?:\\.[a-z0-9-]{1,30}){0,2}\\.)'+TLDorTLDlist+'(/[^\'"\s\$]{0,50})$', 'i');
  8287. var constraints = {
  8288. 'baseurl': {
  8289. 'single': {'min': 1, 'max': 10, 'paramRE': baseurlRE},
  8290. 'headers': {'min': 1, 'max': 10, 'paramRE': baseurlRE},
  8291. 'obsolete': {'min': 1, 'max': 10, 'paramRE': baseurlRE}},
  8292. 'alivematch': {
  8293. 'single': {'min': 1, 'max': 10, 'paramRE': null},
  8294. 'headers': {'min': 1, 'max': 10, 'paramRE': null}},
  8295. 'deadmatch': {
  8296. 'single': {'min': 1, 'max': 10, 'paramRE': null},
  8297. 'headers': {'min': 1, 'max': 10, 'paramRE': null}},
  8298. 'unavamatch': {
  8299. 'single': {'min': 0, 'max': 10, 'paramRE': null}},
  8300. 'alivelink': {
  8301. 'single': {'min': 0, 'max': 10, 'paramRE': null},
  8302. 'headers': {'min': 0, 'max': 10, 'paramRE': null}},
  8303. 'deadlink': {
  8304. 'single': {'min': 0, 'max': 10, 'paramRE': null},
  8305. 'headers': {'min': 0, 'max': 10, 'paramRE': null},
  8306. 'obsolete': {'min': 0, 'max': 10, 'paramRE': null}}
  8307. };
  8308. for (linenum = 0 ; linenum < linecount ; linenum++)
  8309. {
  8310. //capturing groups: 1 23 4 5 6
  8311. m = lines[linenum].match(/^\s*(?:(\/\/.*)|@((#?)(customrule)(?:_(headers|obsolete))?|baseurl|alivematch|deadmatch|unavamatch|alivelink|deadlink)\s+(.+))?$/i);
  8312. if (m)
  8313. {
  8314. if (m[1] || !m[2])
  8315. continue; // ignore empty lines and lines starting with //
  8316. keyword = (m[4] || m[2]).toLowerCase();
  8317. param = m[6];
  8318. if (keyword == 'customrule')
  8319. {
  8320. //save the current rule if all required fields are provided
  8321. if (rule)
  8322. {
  8323. err = false;
  8324. $.each(constraints, function(kw, constraint){
  8325. var l, constr = constraint[rule.type];
  8326. if (constr)
  8327. {
  8328. l = rule[kw] ? rule[kw].length : 0;
  8329. if (l < constr.min || l > constr.max)
  8330. {
  8331. 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);
  8332. err = true;
  8333. }
  8334. }
  8335. });
  8336. if (!err)
  8337. customRules.rules.push(makeCustomRule(rule));
  8338. }
  8339. //start a new rule
  8340. if (/^[\w\.-]{1,30}$/.test(param)) //valid name?
  8341. {
  8342. rule = {
  8343. 'enabled': !m[3],
  8344. 'type': m[5] ? m[5].toLowerCase() : 'single',
  8345. 'name': param
  8346. };
  8347. }
  8348. else
  8349. {
  8350. addInfo('error', 'Invalid rule name. Cannot start a new rule definition.');
  8351. rule = null;
  8352. }
  8353. }
  8354. else //good line format, but keyword other than customrule
  8355. {
  8356. if (!rule)
  8357. {
  8358. addInfo('warning', 'Command outside @CUSTOMRULE definiton. Line skipped.');
  8359. continue;
  8360. }
  8361. if (constraints[keyword])
  8362. {
  8363. constr = constraints[keyword][rule.type];
  8364. if (constr)
  8365. {
  8366. if (constr.paramRE && !constr.paramRE.test(param))
  8367. {
  8368. addInfo('warning', 'Invalid @' + keyword.toUpperCase() + ' parameter. Line Skipped.');
  8369. continue;
  8370. }
  8371. }
  8372. else
  8373. {
  8374. addInfo('note', '@' + keyword.toUpperCase() + ' not applicable for type ' + rule.type.toUpperCase() + '. Line skipped.');
  8375. continue;
  8376. }
  8377. }
  8378. //line OK, save
  8379. rule[keyword] ? rule[keyword].push(param) : rule[keyword] = [param];
  8380. }
  8381. } //if (m)
  8382. else
  8383. addInfo('warning', 'Unknown line format. Line skipped.');
  8384. } //for loop
  8385. return customRules;
  8386. } //function parseCustomRules