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

detects live, dead and premium links.

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

  1. // fixed uptobox.com
  2. // ==UserScript==
  3. // @name W.A.R. Links Checker Customized Premium Link Version
  4. // @description detects live, dead and premium links.
  5. // @details this script automatically checks links from hundreds of filehosts. For Firefox, Chrome, Opera, Safari.
  6. // @namespace premium version
  7. // @version 1.1.9.4
  8. // @icon http://sharenxs.com/photos/2014/02/14/52fd759db90ac/cooltext1428903746.png
  9. // @license GPL version 3 or any later version (http://www.gnu.org/copyleft/gpl.html)
  10. // @author mental
  11. // @include http://*
  12. // @include https://*
  13. // @include file:///*
  14. // @grant GM_setValue
  15. // @grant GM_getValue
  16. // @grant GM_xmlhttpRequest
  17. // @grant GM_log
  18. // @grant GM_addStyle
  19. // @grant GM_registerMenuCommand
  20. // @grant GM_getResourceText
  21. // @grant GM_info
  22. // @require https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js
  23. // @require https://ajax.googleapis.com/ajax/libs/jqueryui/1.9.1/jquery-ui.min.js
  24. // @resource jQueryUICSS https://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/smoothness/jquery-ui.css
  25. // @homepage http://www.warlc.5gbfree.com
  26. // @namespace http://www.warlc.5gbfree.com
  27. // @noframes
  28. // ==/UserScript==
  29.  
  30. //separate alternative domains with "|" char (first name is considered being main)
  31. var allHostNames = [
  32. "1fichier.com|dl4free.com",
  33. "openload.co",
  34. "uplea.com",
  35. "filenuke.com",
  36. "inafile.com",
  37. "vidto.me",
  38. "storefiles.co",
  39. "filehost.pw",
  40. "down4files.com",
  41. "vidspot.net",
  42. "turbobit.ru",
  43. "sharesix.com|sharesix.net",
  44. "movpod.in",
  45. "thefile.me",
  46. "vidzi.tv",
  47. "videoweed.es",
  48. "vodlocker.com",
  49. "nowvideo.sx",
  50. "cloudtime.to",
  51. "thevideo.me",
  52. "vidbull.com",
  53. "allmyvideos.net",
  54. "novamov.com",
  55. "filehoot.com",
  56. "stagevu.com",
  57. "gorillavid.in",
  58. "streamin.to",
  59. "4upld.com",
  60. "cloudshares.net",
  61. "swoopshare.com",
  62. "newfileland.com",
  63. "2shared.com",
  64. "fileupload.pw",
  65. "zxcfiles.com",
  66. "up07.net",
  67. "4shared.com",
  68. "adrive.com",
  69. "aisfile.com",
  70. "hexupload.com",
  71. "bezvadata.cz",
  72. "burnupload.com|burnupload.ihiphop.com",
  73. "xkeepfile.com|Gamesena.com",
  74. "usersfiles.com",
  75. "pan.baidu.com",
  76. "radicalshare.com",
  77. "cramit.in|cramitin.net",
  78. "datei.to",
  79. "daten-hoster.de|filehosting.org|xtraupload.de",
  80. "demo.ovh.eu",
  81. "depositfiles.com|depositfiles.lt|depositfiles.org|dfiles.ru|dfiles.eu",
  82. "divshare.com",
  83. "easy-share.com|crocko.com",
  84. "easybytez.com",
  85. "edisk.cz",
  86. "euroshare.eu",
  87. "file-upload.net",
  88. "yadi.sk",
  89. "wizupload.com",
  90. "fastshare.cz",
  91. "filefactory.com",
  92. "share.vnn.vn",
  93. "yunpan.cn",
  94. "gulfup.com",
  95. "tropicshare.com",
  96. "cloudzilla.to",
  97. "inclouddrive.com",
  98. "fileflyer.com",
  99. "filerio.com|filekeen.com",
  100. "up.4share.vn",
  101. "upfile.vn",
  102. "datafilehost.com",
  103. "fileband.com",
  104. "worldbytez.com",
  105. "files.mail.ru",
  106. "filepost.com|fp.io",
  107. "filesflash.com",
  108. "box.com",
  109. "uptobox.com",
  110. "box.net",
  111. "goldbytez.com",
  112. "sdilej.cz",
  113. "ex-load.com",
  114. "filesmonster.com",
  115. "filestore.to",
  116. "hulkload.com",
  117. "filedropper.com",
  118. "free-uploading.com",
  119. "gamefront.com|filefront.com",
  120. "gettyfile.ru",
  121. "gigapeta.com",
  122. "gigasize.com",
  123. "hellshare.com",
  124. "hellspy.com",
  125. "hitfile.net",
  126. "hostuje.net",
  127. "freefilehosting.net",
  128. "free.fr",
  129. "hulkshare.com",
  130. "hyperfileshare.com",
  131. "filecloud.io|ifile.it",
  132. "ifolder.ru",
  133. "jumbofiles.com",
  134. "uploadrocket.net",
  135. "lafiles.com",
  136. "leteckaposta.cz|sharegadget.com",
  137. "letitbit.net",
  138. "load.to",
  139. "mediafire.com",
  140. "megafileupload.com",
  141. "megashares.com",
  142. "movshare.net",
  143. "muchshare.net",
  144. "myupload.dk",
  145. "narod.ru|narod.yandex.ru",
  146. "netload.in",
  147. "fboom.me|fileboom.me",
  148. "openfile.ru",
  149. "partage-facile.com",
  150. "plunder.com",
  151. "sharerapid.cz",
  152. "exclusiveloader.com",
  153. "acefile.net",
  154. "queenshare.com",
  155. "quickshare.cz",
  156. "rapidgator.net",
  157. "k2s.cc|keep2s.cc|keep2share.cc|keep2share.com",
  158. "oboom.com",
  159. "filepi.com",
  160. "neodrive.co",
  161. "rarefile.net",
  162. "rayfile.com",
  163. "rghost.net",
  164. "sendmyway.com",
  165. "clicknupload.com",
  166. "sharemods.com",
  167. "hostr.co",
  168. "sendspace.com",
  169. "sharecash.org",
  170. "share-links.biz",
  171. "share-online.biz|egoshare.com",
  172. "megarapid.cz",
  173. "shareflare.net",
  174. "solidfiles.com",
  175. "led.wf",
  176. "lan.wf",
  177. "adlink.wf",
  178. "click.tf",
  179. "kyc.pm",
  180. "ssh.tf",
  181. "ssh.yt",
  182. "yep.pm",
  183. "stahovanizasms.cz",
  184. "turbobit.net",
  185. "filecloud.cc",
  186. "tikfile.com",
  187. "cloudsix.me",
  188. "turboupload.com",
  189. "uloz.to|ulozto.cz|bagruj.cz|zachowajto.pl",
  190. "ulozisko.sk",
  191. "uloziste.com",
  192. "unibytes.com",
  193. "upload-il.net|przeslij.net",
  194. "uploaded.to|ul.to",
  195. "uploading.com",
  196. "chayfile.com",
  197. "rockfile.eu",
  198. "24uploading.com",
  199. "uploadspace.pl",
  200. "upnito.sk",
  201. "usaupload.net",
  202. "veehd.com",
  203. "videobb.com",
  204. "vip-file.com",
  205. "webshare.cz",
  206. "xdisk.cz",
  207. "yunfile.com|filemarkets.com",
  208. "ziddu.com",
  209. "krotix.net",
  210. "zippyshare.com",
  211. "rodfile.com",
  212. "migahost.com",
  213. "wikiupload.com",
  214. "uploadstube.de",
  215. "faststore.org",
  216. "flyfiles.net",
  217. "nowdownload.ch",
  218. "prefiles.com",
  219. "axifile.com",
  220. "rapidsonic.com|fileparadox.com",
  221. "hackerbox.org",
  222. "amonshare.com",
  223. "data.hu",
  224. "brupload.net",
  225. "userscloud.com",
  226. "netkups.com",
  227. "edoc.com",
  228. "xfileload.com",
  229. "jumbofile.net",
  230. "kumpulbagi.com",
  231. "uppit.com|up.ht",
  232. "downloadani.me",
  233. "filesabc.com",
  234. "180upload.com",
  235. "verzend.be",
  236. "movreel.com",
  237. "4up.me",
  238. "extmatrix.com",
  239. "sendfiles.nl",
  240. "yourfilestore.com",
  241. "filebig.net",
  242. "nekaka.com",
  243. "file4safe.com",
  244. "tusfiles.net",
  245. "filemac.com",
  246. "idup.in",
  247. "fileswap.com",
  248. "ozofiles.com",
  249. "loudupload.net",
  250. "nosupload.com",
  251. "gboxes.com",
  252. "myvdrive.com|fileserving.com",
  253. "filesin.com",
  254. "novafile.com",
  255. "longfiles.com",
  256. "uploadhero.com",
  257. "uploadbaz.com",
  258. "bitupload.com",
  259. "indowebster.com",
  260. "superload.cz",
  261. "mafiastorage.com",
  262. "4upfiles.com",
  263. "filesmelt.com",
  264. "hellupload.com",
  265. "uploadingit.com",
  266. "stiahni.si",
  267. "sendspace.pl",
  268. "fastshare.org",
  269. "filejoker.net",
  270. "filestore.com.ua",
  271. "secureupload.eu",
  272. "rapidfileshare.net",
  273. "stiahnito.sk",
  274. "rusfolder.com",
  275. "fileover.net",
  276. "catshare.net",
  277. "anonfiles.com",
  278. "mixturecloud.com",
  279. "fileparadox.in",
  280. "filedais.com",
  281. "imdb.com",
  282. "nitroflare.com",
  283. "akafile.com",
  284. "creafile.net",
  285. "hugefiles.net",
  286. "vidxden.com",
  287. "up.top4top.net",
  288. "upload.ee",
  289. "shareplace.org",
  290. "uploadc.com",
  291. "remixshare.com",
  292. "exoshare.com",
  293. "borncash.org",
  294. "junocloud.me",
  295. "expressleech.com",
  296. "2downloadz.com",
  297. "mightyupload.com",
  298. "anysend.com",
  299. "datafile.com",
  300. "upstore.net",
  301. "upsto.re",
  302. "speedy.sh",
  303. "sanshare.com",
  304. "uploadhero.co",
  305. "ge.tt",
  306. "filesflash.net",
  307. "salefiles.com",
  308. "megairon.net",
  309. "datoid.cz",
  310. "cloudstor.es",
  311. "streamfile.com",
  312. "eyesfile.ca",
  313. "filemoney.com",
  314. "uploadboy.com",
  315. "speedshare.eu",
  316. "google.com",
  317. "unlimitzone.com",
  318. "rioupload.com",
  319. "rg.to",
  320. "jumbofiles.org",
  321. "fshare.vn",
  322. "spaceforfiles.com",
  323. "up.media1fire.com",
  324. "depfile.com",
  325. "go4up.com",
  326. "dropbox.com",
  327. "redbunker.net",
  328. "divxpress.com",
  329. "mega.nz|mega.co.nz",
  330. "anafile.com",
  331. "uploadable.ch",
  332. "arabloads.net",
  333. "sharerepo.com",
  334. "sfshare.se",
  335. "files.fm",
  336. "koofile.com",
  337. "vidplay.net",
  338. "storagon.com",
  339. "doraupload.com",
  340. "openload.io",
  341. "geupload.com|lenfile.com",
  342. "uploads.xxx",
  343. ];
  344.  
  345. try
  346. {
  347. //iframes excluded
  348. if (window.top != window.self)
  349. {
  350. return;
  351. }
  352. //allHostNames sites excluded
  353. if (window.location.href.match("https?:\/\/(www\.)?[\w\.-]*(?:" +
  354. allHostNames.join("|").replace(/\./g, "\\.").replace(/-/g, "\\-") +
  355. ")"))
  356. {
  357. return;
  358. }
  359. }
  360. catch (e)
  361. {
  362. return;
  363. }
  364.  
  365. //separate alternative domains with "|" char (first name is considered being main)
  366. var allContainerNames = [
  367. "adf.ly",
  368. "linkcrypt.ws",
  369. "linksafe.me",
  370. "linksave.in",
  371. "linkto.net",
  372. "madlink.sk",
  373. "multiload.cz",
  374. "mirrorcreator.com",
  375. "ncrypt.in",
  376. "redi.re",
  377. "relink.us",
  378. "safelinking.net",
  379. "theloo.katt.it",
  380. "bit.ly",
  381.  
  382. ];
  383.  
  384. //separate alternative domains with "|" char (first name is considered being main)
  385. var allObsoleteNames = [
  386. "uloz.cz",
  387. "freakshare.com",
  388. "freakshare.net",
  389. "kingfiles.net",
  390. "daj.to",
  391. "bl.st",
  392. "2drive.net",
  393. "ryushare.com",
  394. "crisshare.com",
  395. "tufiles.ru",
  396. "uncapped-downloads.com",
  397. "sockshare.com",
  398. "ddlstorage.com",
  399. "dataport.cz",
  400. "dizzcloud.com",
  401. "sharebeast.com",
  402. "stahovadlo.cz",
  403. "shared.com",
  404. "storage.to",
  405. "putlocker.com",
  406. "lumfile.com",
  407. "lumfile.se",
  408. "lumfile.eu",
  409. "firedrive.com",
  410. "fileshare.in.ua",
  411. "filecore.co.nz",
  412. "iskladka.cz",
  413. "file-rack.com",
  414. "fast-load.net",
  415. "subory.sk",
  416. "bigandfree.com",
  417. "fileop.com",
  418. "mujsoubor.cz",
  419. "sendfile.to",
  420. "superfastfile.com",
  421. "quickyshare.com",
  422. "duckload.com",
  423. "uploadstore.net",
  424. "meinupload.com",
  425. "dualshare.com",
  426. "2xupload.to|2xupload.de",
  427. "oxedion.com",
  428. "uploadline.com",
  429. "dll.bz",
  430. "movieshare.in",
  431. "milledrive.com",
  432. "quickupload.net",
  433. "safelink.in",
  434. "metadivx.com",
  435. "divxlink.com",
  436. "uploadrack.com",
  437. "teradepot.com",
  438. "dataup.to",
  439. "upit.to",
  440. "driveway.com",
  441. "eatlime.com",
  442. "a2zuploads.com",
  443. "friendlyfiles.net",
  444. "flyfile.us",
  445. "speedyshare.com",
  446. "uploadspace.eu",
  447. "keepfile.com",
  448. "piggyshare.com",
  449. "uplly.com",
  450. "filecrown.com",
  451. "6giga.com",
  452. "uploadjockey.com",
  453. "bluehost.to",
  454. "filegu.ru",
  455. "filebase.to",
  456. "up-file.com",
  457. "xvideos.com",
  458. "ufox.com",
  459. "filebling.com",
  460. "loaded.it",
  461. "uploadcell.com",
  462. "uploadshare.cz",
  463. "mangoshare.com",
  464. "filestab.com",
  465. "crazyupload.com",
  466. "gaiafile.com",
  467. "sharejunky.com",
  468. "fileho.com",
  469. "bigandfree.com",
  470. "bigfile.in",
  471. "bigshare.eu",
  472. "dahosting.org",
  473. "digisofts.net",
  474. "file4save.com",
  475. "filechip.com",
  476. "filescloud.com",
  477. "saveqube.com",
  478. "turboshare.de",
  479. "z-upload.com",
  480. "youshare.com",
  481. "jiffyupload.com",
  482. "gigeshare.com",
  483. "datenklo.net",
  484. "upload.dj",
  485. "loadfiles.in",
  486. "upit.to",
  487. "dsfileshare.com",
  488. "sharesimple.net",
  489. "4files.net",
  490. "wooupload.com",
  491. "odsiebie.com",
  492. "filenavi.com",
  493. "3oof.com",
  494. "meshwaar.com",
  495. "maxupload.com",
  496. "share.cx",
  497. "atserver.eu",
  498. "hotfiles.ws",
  499. "esnips.com",
  500. "tuxfile.com",
  501. "file2upload.net",
  502. "filebling.com",
  503. "turboshare.com",
  504. "rarhost.com",
  505. "isharehd.com",
  506. "i741.com",
  507. "dataup.de",
  508. "fofly.com",
  509. "shareonall.com",
  510. "sexuploader.com",
  511. "megaupload.com|megavideo.com|megaporn.com|megarotic.com",
  512. "uploadhyper.com",
  513. "filespawn.com",
  514. "caizzii.com",
  515. "volnyweb.cz",
  516. "usershare.net",
  517. "filescash.net",
  518. "metahyper.com",
  519. "combozip.com",
  520. "x7.to",
  521. "uploadbox.com",
  522. "enterupload.com|flyupload.com",
  523. "filepoint.de",
  524. "mystream.to",
  525. "x-fs.com",
  526. "shareator.com",
  527. "srapid.eu",
  528. "sosame.cz",
  529. "filesdump.com",
  530. "2-klicks.de",
  531. "uploking.com",
  532. "silofiles.com",
  533. "upfile.in",
  534. "filehook.com",
  535. "uploadking.com",
  536. "uploadhere.com",
  537. "kewlshare.com",
  538. "rapidable.com",
  539. "uploadwaste.com",
  540. "filemup.com",
  541. "filesonic.com|sharingmatrix.com",
  542. "fileserve.com",
  543. "wupload.com",
  544. "skipfile.com",
  545. "smartuploader.com",
  546. "dualshare.com",
  547. "storeandserve.com",
  548. "mountfile.com",
  549. "transitfiles.com",
  550. "uploadstation.com",
  551. "filejungle.com",
  552. "shareshared.com",
  553. "quickyshare.com",
  554. "save.am",
  555. "petandrive.com",
  556. "file2box.com",
  557. "flyshare.cz",
  558. "yabadaba.ru",
  559. "cloudcache.cc",
  560. "yourfilehost.com",
  561. "jakfile.com",
  562. "kickload.com",
  563. "pyramidfiles.com",
  564. "refile.net",
  565. "zshare.net",
  566. "ddlani.me|ddlanime.com",
  567. "ftp2share.com",
  568. "fooget.com",
  569. "rapidhide.com",
  570. "gotupload.com",
  571. "mooload.com",
  572. "zupload.com",
  573. "mytempdir.com",
  574. "onionshare.com",
  575. "stahnu.to",
  576. "oron.com",
  577. "badongo.com",
  578. "filereactor.com",
  579. "filegaze.com",
  580. "4bytez.com",
  581. "1hostclick.com",
  582. "anonstream.com",
  583. "batshare.com",
  584. "bitroad.net",
  585. "brontofile.com",
  586. "cloudnxt.net",
  587. "cloudnator.com|shragle.com",
  588. "filesfrog.net",
  589. "coolshare.cz",
  590. "dotavi.com",
  591. "ezyfile.net",
  592. "file-bit.net",
  593. "filecosy.com",
  594. "fileduct.com|fileduct.net",
  595. "filefat.com",
  596. "filelaser.com",
  597. "filemashine.com",
  598. "fileserver.cc",
  599. "filetechnology.com",
  600. "fireuploads.net",
  601. "gigfiles.net",
  602. "holderfile.com",
  603. "ihostia.com",
  604. "k2files.com",
  605. "mojofile.com",
  606. "ovfile.com",
  607. "qshare.com",
  608. "shafiles.me",
  609. "sharefilehost.com",
  610. "shareupload.com",
  611. "stahuj.to",
  612. "ugotfile.com",
  613. "uploadboost.com",
  614. "fileom.com",
  615. "vidhog.com",
  616. "xfileshare.eu",
  617. "bzlink.us",
  618. "bulletupload.com",
  619. "bloggerarticles.com",
  620. "mojedata.sk",
  621. "sharpfile.com",
  622. "upgrand.com",
  623. "nasdilej.cz",
  624. "mediatack.cz",
  625. "share-it.to",
  626. "primeupload.com",
  627. "filebeer.info",
  628. "baberepublic",
  629. "xtu.me",
  630. "sharebase.de",
  631. "luckyshare.net",
  632. "filerobo.com",
  633. "filevelocity.com",
  634. "filezpro.com",
  635. "file4sharing.com",
  636. "cing.be",
  637. "ufile.eu",
  638. "pigsonic.com",
  639. "fileupped.com",
  640. "sharerun.com",
  641. "filesaur.com",
  642. "rapidslnare.com",
  643. "bestsharing.com",
  644. "savefiles.net",
  645. "file2share.biz",
  646. "filecache.de",
  647. "monsteruploads.eu",
  648. "b9bb.com",
  649. "aiotool.net",
  650. "jamber.info",
  651. "megaftp.com",
  652. "desiupload.net",
  653. "file27.com",
  654. "yastorage.com",
  655. "filehost.ws",
  656. "copyload.com",
  657. "venusfile.com",
  658. "aieshare.com",
  659. "terafile.co",
  660. "terafile.com",
  661. "fileza.net",
  662. "filerose.com",
  663. "squillion.com",
  664. "fileprohost.com",
  665. "bitbonus.com",
  666. "warserver.cz",
  667. "uload.to",
  668. "sharedbit.net",
  669. "megaload.it",
  670. "filewinds.com",
  671. "uploadcore.com",
  672. "syfiles.com",
  673. "eyesfile.com",
  674. "hotfile.com",
  675. "superupl.com",
  676. "oteupload.com",
  677. "henchfile.com",
  678. "filegag.com",
  679. "HenchFile.com",
  680. "filedefend.com",
  681. "share-rapid.com|rapids.cz|share-credit.cz|share-central.cz|share-ms.cz|share-net.cz|srapid.cz|share-rapid.cz",
  682. "megabitshare.com",
  683. "cloudzer.com",
  684. "asfile.com",
  685. "cloudzer.net",
  686. "clz.to",
  687. "extabit.com",
  688. "247upload.com",
  689. "2download.de",
  690. "4fastfile.com",
  691. "asixfiles.com",
  692. "berofile.com",
  693. "bigupload.com",
  694. "cepzo.com",
  695. "clouds.to",
  696. "cobrashare.sk",
  697. "coraldrive.net",
  698. "cyberlocker.ch",
  699. "czshare.com",
  700. "darkport.org",
  701. "dark-uploads.com",
  702. "davvas.com",
  703. "enigmashare.com",
  704. "erofly.cz",
  705. "fastsonic.net",
  706. "filebox.com",
  707. "filecity.net",
  708. "filedap.com",
  709. "filedino.com",
  710. "filedownloads.org",
  711. "filefolks.com",
  712. "fileking.co",
  713. "filemates.com",
  714. "files.to",
  715. "files2k.eu",
  716. "filesector.cc",
  717. "bitshare.com",
  718. "filesega.com",
  719. "filesend.net",
  720. "filestay.com",
  721. "filestrum.com",
  722. "fileuplo.de",
  723. "fileupup.com",
  724. "forunesia.com",
  725. "freeuploads.fr",
  726. "uploa.dk",
  727. "getthebit.com",
  728. "getzilla.net",
  729. "goldfile.eu",
  730. "good.com",
  731. "grupload.com",
  732. "hellfile.com",
  733. "hipfile.com",
  734. "hitfile.com",
  735. "hulkfile.eu|duckfile.net",
  736. "i-filez.com",
  737. "ifile.ws",
  738. "kupload.org",
  739. "packupload.com",
  740. "lemuploads.com",
  741. "limelinx.com",
  742. "maxshare.pl",
  743. "megarelease.org",
  744. "megashare.com",
  745. "minus.com",
  746. "mlfat4arab.com",
  747. "multishare.cz",
  748. "nirafile.com",
  749. "ok2upload.com",
  750. "peejeshare.com",
  751. "premiuns.org",
  752. "przeklej.net",
  753. "qkup.net",
  754. "rapidupload.sk",
  755. "rockdizfile.com",
  756. "rocketfile.net",
  757. "share-now.net",
  758. "share76.com",
  759. "sharebees.com",
  760. "sharefiles.co",
  761. "slingfile.com",
  762. "sms4file.com",
  763. "space4file.com",
  764. "tigershare.net",
  765. "toucansharing.com",
  766. "ubuntuone.com",
  767. "unextfiles.com",
  768. "upaj.pl",
  769. "upfile.biz",
  770. "uploadbin.net",
  771. "uploadic.com",
  772. "uploadinc.com",
  773. "uploading4u.eu",
  774. "uploadjet.net",
  775. "uploadorb.com",
  776. "upthe.net",
  777. "uptorch.com",
  778. "vidbox.yt",
  779. "videozer.com",
  780. "vreer.com",
  781. "wallobit.com",
  782. "zooupload.com",
  783. "privatefiles.com",
  784. "xerver.co",
  785. "BillionUploads.com",
  786. "rapidshare.com",
  787. "rapidshare.ru",
  788. "4savefile.com",
  789. "bayfiles.com",
  790. "bayfiles.net",
  791. "dodane.pl",
  792. "dotsemper.com",
  793. "egofiles.com",
  794. "epicshare.net",
  795. "fiberupload.net",
  796. "filemonkey.in",
  797. "filemonster.net",
  798. "filepom.com",
  799. "filesbb.com",
  800. "fileshareup.com",
  801. "filevice.com",
  802. "gigaup.fr",
  803. "isavelink.com",
  804. "loombo.com",
  805. "megafiles.se",
  806. "migupload.com",
  807. "mydisc.net",
  808. "nitrobits.com",
  809. "potload.com",
  810. "redload.net",
  811. "shareprofi.com",
  812. "sharesuper.info",
  813. "sinhro.net",
  814. "speedfile.cz",
  815. "speedshare.org",
  816. "storage.novoro.net",
  817. "swankshare.com",
  818. "swatupload.com",
  819. "upafile.com",
  820. "uploadmachine.com",
  821. "uploadsat.com",
  822. "upshared.com",
  823. "usefile.com",
  824. "yourfiles.to",
  825. "zomgupload.com",
  826. "ultramegabit.com",
  827. "uploadto.us",
  828.  
  829. ];
  830. ///////////////////////////////////////////////////////////////////////////////////////
  831. var firstRun = GM_getValue("First_run", true);
  832.  
  833. var chromeBrowser = /chrom(e|ium)/.test(navigator.userAgent.toLowerCase());
  834. //////////////////////////////////////////////////////////////////////////////////////
  835. try
  836. {
  837. var thisVersion = GM_info.script.version; //not supported in Scriptish and others
  838. var last_known_version = GM_getValue("last_known_version", "");
  839. if (!last_known_version)
  840. {
  841. last_known_version = thisVersion;
  842. GM_setValue("last_known_version", last_known_version);
  843. }
  844. //var newVersion = !(thisVersion == last_known_version);
  845. var newVersion = !(a.replace(/^(\d+\.\d+\.\d+).*/,'$1') == b.replace(/^(\d+\.\d+\.\d+).*/,'$1')); //true only if one of the first three numbers differs
  846. GM_setValue("last_known_version", thisVersion);
  847. }
  848. catch (err)
  849. {
  850. var newVersion = false;
  851. }
  852.  
  853. var now = (new Date()).getTime();
  854. var last_custom_rules_nag = GM_getValue('last_custom_rules_nag', 0);
  855. if (!last_custom_rules_nag)
  856. {
  857. last_custom_rules_nag = now;
  858. GM_setValue('last_custom_rules_nag', ''+now);
  859. }
  860.  
  861.  
  862. allHostNames.sort();
  863. allContainerNames.sort();
  864. allObsoleteNames.sort();
  865.  
  866. var RAND_STRING = "8QyvpOSsRG3QWq";
  867. var DEBUG_MODE = false;
  868.  
  869. var TOOLTIP_MAXWIDTH = 600; //in pixels
  870. var TOOLTIP_THUMBWIDTH = 200;
  871. var containers_processed = false;
  872.  
  873. //settings for keyboard functions start
  874. var CHECK_ALL_LINKS_KEY = "A";
  875. var CONFIGURATION_KEY = "C";
  876. var copy_to_dead_key = "D";
  877. var toggle_autocheck_key = "W";
  878. var toggle_Enable_Anonymizer_key = "Z";
  879. var first_key_keycode = '17'; // 18=ALT 16=Shift 17=Ctrl 32=SPACE_BAR 9=TAB
  880. var first_key_keycodename = 'CTRL';
  881. var second_key_keycode = '18';
  882. var second_key_keycodename = 'ALT';
  883. var CHECK_ALL_LINKS_KEYCODE = CHECK_ALL_LINKS_KEY.charCodeAt(0);
  884. var CONFIGURATION_KEYCODE = CONFIGURATION_KEY.charCodeAt(0);
  885. var copy_to_dead_keycode = copy_to_dead_key.charCodeAt(0);
  886. var toggle_autocheck_keycode = toggle_autocheck_key.charCodeAt(0);
  887. var toggle_Enable_Anonymizer_keycode = toggle_Enable_Anonymizer_key.charCodeAt(0);
  888. //settings for keyboard functions end
  889.  
  890. //global settings start
  891. var Show_black_background_in_DL_links, Show_line_through_in_dead_links, Color_DL_links;
  892. var Live_links_color, Dead_links_color, Temp_unavailable_links_color, Premium_links_color, Ref_anonymize_service;
  893. var Do_not_linkify_DL_links, Keyboard_functions, Autocheck, Enable_Anonymizer;
  894. var Show_progress_stats, Display_tooltip_info, Icon_set;
  895. var Progress_box_pos_bottom, Progress_box_pos_right, Progress_box_opacity, Progress_box_background_color, Progress_box_item_color;
  896. var Progress_box_refresh_rate;
  897. var Obsolete_file_hosts;
  898. var Custom_rules, Custom_rules_text;
  899.  
  900. var messageBox = document.createElement('b'); // top-left message box
  901.  
  902. var cLinksTotal = 0;
  903. var cLinksDead = 0;
  904. var cLinksAlive = 0;
  905. var cLinksUnava = 0;
  906. var cLinksprem = 0;
  907. var cLinksProcessed = 0;
  908.  
  909. var intervalId; //for updateProgress()
  910.  
  911. //icon resources
  912. var PAW_ICON_GREEN = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAANCAYAAABy6+R8AAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYwP2SycQWHTA4vcAAPK7b8HUKAgDgGiD4c93/+8//UegJQCAZkmScQAAXkQkLlTKsz/HCAAARKCBKrBBG/TBGCzABhzBBdzBC/xgNoRC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qvUZwjZA5EAiShPIetLXxhASSIY3An1Gr4xkabq70iar9OkOeoWCSqVMAM8hzMiObnIUnQ0RFyR0DkgNylzhh7cB+bmsLrdQ7n5gj1OlG5TPxoHro7kUsC4mdQUB5u0NdziW/r5q2M/PkLfG2NsLwMkRHevyVkWQib26t+FJYMIIOUvt5XdmXkunXEke/sQchRCNDdRfAQ8vXND97af1qCxqkRLUj9XKFq/cUUMMmRQHKFZquh7OBhCRr/aATQ/I97foxKZ9z7A9QA5voyr3dtAAAAAElFTkSuQmCC';
  919. var RSLC_ICON_YELLOW = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAANCAYAAABy6+R8AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH2AQJDBgxYO68rwAAAZNJREFUeNptkr9LW1EcxT/3GhOTKIG8QTpm8B8IIoJTFkFwsXVyUaxFJHYoFzJYUVFHn4sKtoidCoKtIigWOtQOhRKowaFzJwcF0VeJ+fFe7nUwP57R7/S9nO+595z7PQJfGUgAsWqPaUBOC/yrHQI+QjKTXc7GQq4EhP+uKzdUcbtnelvhDzXQQHL2bCkbxhOA5GmZ24LUC73zPWE4lQYSmexynaCmjh5Nq9FdANER1uL9j7nfeUhIIFaVJNXEPrguKvPzgfD2G0iBGt8DkPG4CGiIyapZAWBvDUEoBOfnqPQxaANxC3v7Ze1hoQFpmsTbGwMQicLNNeTz2HaKYuO/4DnTauwLeC6i8wW4ZdSbA9rw/GtB6kaPmjyESATKZVZWUxAMQqnI9MTXOqdGcvRFoSw8o+0Pg1DxsD+PcFcJYH8aphSNsr71CkAH/17danAEQAGSa98zv7x4W9AIpGkRzap18cKU3vUv9lmQq6N5SH7cSZ8Uuqx205SI1rPL/6/HN1MW5GiKC84z2at6dixf9u4B/PqUtJuX27QAAAAASUVORK5CYII=';
  920. var RSLC_ICON_PINK = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAANCAYAAAB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GDborZ752PO32oPb++6EHTh0kX/i+c7vDvOXPK4dPKy2+UTV7hXmq86X23qdOo8/pPTT8e7nLuarrlca7nuer21e2b36RueN87d9L158Rb/1tWeOT3dvfN6b/fF9/XfFt1+cif9zsu72Xcn7q28T7xf9EDtQdlD3YfVP1v+3Njv3H9qwHeg89HcR/cGhYPP/pH1jw9DBY+Zj8uGDYbrnjg+OTniP3L96fynQ89kzyaeF/6i/suuFxYvfvjV69fO0ZjRoZfyl5O/bXyl/erA6xmv28bCxh6+yXgzMV70VvvtwXfcdx3vo98PT+R8IH8o/2j5sfVT0Kf7kxmTk/8EA5jz/GMzLdsAAAAgY0hSTQAAeiUAAICDAAD5/wAAgOkAAHUwAADqYAAAOpgAABdvkl/FRgAAAaJJREFUeNpkkk1rE1EUhp9zJ21NpxJocxctiAQXXYkQQQsG/EJo0a0LyW8ws9KFP0E3HQv6D9x1KbixdTGIlrZuzUJLCM2iEykRJ23S5B4XsZOpPXAW957zXM773iNkQquUgAKAAlpISx3vDXunB8kA5Zbb3hr6l032HtDc7/rQzlWWJt6yk0Japfxr4udWN3dRAMP5UI5bzi5cu5F/ya7RKqWW204BG66c6bart0ePX1iQRjP6krygZIDCv5FMce0+cELx9WMAimuPUCPY8B6AmfYXcy5PwWhGW/vpR2AKdB8bPkScIswRBxupB84Dk3EIgDh4j+CjHIImxLV18sM/Z3rOibard1A5wcg8Kn1s+IAjb2bsiAPjlNNvwYbLINOgfQ5q6yCTqBzjv7qbMgoYl6PTTerSY+Di4ANqBrSDz0z1D2nXPtHr+STPNgFcN6mLm6EjAEfPKTea0Y74V5yHmEm8/6d23aRu7M1KOf4afTMAjWa0e6lUua7JDzNEtceATGoWWHx3a7wu359EzF+tjHfPjYS6kQed2UD3AESEvwMAaQGsQMrwcN0AAAAASUVORK5CYII=';
  921.  
  922. var NEW_ICON_GREEN = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACGklEQVR42mNkIBcwMWQws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azdDOs0HjAETRKNjuFyzTE9PAOO//Xm27lvN4b1c8htkAXC2jrKHN5gVSRcRW0SCIpIj/f2ZAkhTkykiOYu+SLa8e6qkeRNXALh5nEc/phARnaSJSSUnO5G+B8tnIkr6rjMTSqfMZQXZ9vE1xGKJpPe4DDjXAYkEjAwmzwwDLIv0NZlE1MYAjsQoAOL8C5rY2AxPlIjwP/wcACKn3tWfrwJ4AAAAAElFTkSuQmCC';
  925. var NEW_ICON_PINK = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABUklEQVQ4jY3TsUuWURQG8F8WEvFNDREfIg5RURAOIeL0DhJBS0tDY9BQQ0Oj29kiIvoDhBpFQRTUD1GKi0sRtEs0SEQ0RBQIRcVXw3eF6+vrWwcunPvc53nuPffcS0uEmA0x38Y5cohwGjOYxBBe4VGI3j8NQlzHYhaW0cfNEAslWCfBw4yvYhkv8hjCgxD7yMdquw/jbJ4+xq2cz+AKdrJRv9EAv/EDx3Ft75QhtrHdcFpHy0mS/lSqcVzAFM7he6XaTNLXJoOmS+ziOc4XcB893A3xodUgm5zAHdzHSLH0DhdD/GwsoSjlV5Je5nK+YQUTOInXSXq7x6134RQuo4unGf6Me7iKMxgrNfUuXMJazr8U+DA6Of/UZrCF9xjFM3zELpZwOptulIKmLlQGNXdqS7u4EWK9BA9cYpJ2KtWcwaMazcInuB3iTZ3fGv/znf8CBMxX4hrPUbUAAAAASUVORK5CYII=';
  926.  
  927. //global settings end
  928. if (window.opera && !window.console)
  929. {
  930. window.console = {};
  931.  
  932. function fn()
  933. {
  934. opera.postError(arguments);
  935. };
  936. ['log', 'debug', 'info', 'warn', 'error', 'assert', 'dir', 'dirxml', 'group', 'groupEnd', 'time', 'timeEnd', 'count', 'trace', 'profile', 'profileEnd'].forEach(function (name)
  937. {
  938. window.console[name] = fn;
  939. });
  940. }
  941.  
  942. //displays colored text in message box
  943. function sendMessage(text, color)
  944. {
  945. var msgDiv = document.createElement('div');
  946. msgDiv.style.color = color;
  947. msgDiv.innerHTML = text;
  948. messageBox.appendChild(msgDiv);
  949. setTimeout(function(){messageBox.removeChild(msgDiv)}, 3000);
  950. }
  951.  
  952. function linkify(totalourls)
  953. { // code from http://userscripts.org/scripts/review/2254 Linkify ting
  954. var ikkeTilladteTags;
  955. var allLinksRegex = "(?:http:\/\/.+?\\?)?(?:https?:\/\/)?"
  956. + "[0-9A-Za-z]+(?:[\\.-][0-9A-Za-z]+)*\\.[A-Za-z]+/" //instead of totalourls
  957. + "[\\w\\–\\-\\.+$!*\\/()\\[\\]\',~%?:@#&=\\\\\\—;…×Ã\\_\\u0080-\\u03FF’‘" + (Allow_spaces_in_DL_links ? "\\u0020" : "") + "]*";
  958. allLinksRegex = new RegExp(allLinksRegex, "g");
  959. var regexy = "^(?:http:\/\/.+?\\?)?(?:https?:\/\/)?(?:www\\.)?(?:" + totalourls + ")";
  960.  
  961. if (Do_not_linkify_DL_links)
  962. ikkeTilladteTags = ['a', 'head', 'script', 'style', 'title', 'option', 'iframe', 'textarea', 'span']; //tags, hvor det der stAΞ’Β¥r inden i ikke skal vAΞ’Β¦re links
  963. else
  964. ikkeTilladteTags = ['a', 'head', 'script', 'style', 'title', 'option', 'iframe', 'textarea']; //tags, hvor det der stAΞ’Β¥r inden i ikke skal vAΞ’Β¦re links
  965.  
  966. var regex = new RegExp(regexy);
  967. var textNode, muligtLink;
  968.  
  969. var path = "//text()[not(parent::" + ikkeTilladteTags.join(" or parent::") + ") and contains(.,'/')]";
  970. var textNodes = document.evaluate(path, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  971.  
  972. var i = textNodes.snapshotLength;
  973. while (i--)
  974. {
  975. textNode = textNodes.snapshotItem(i);
  976.  
  977. muligtLink = textNode.nodeValue; //all links on page
  978.  
  979. var myArray = null;
  980. var span = null;
  981. var lastLastIndex = 0;
  982. allLinksRegex.lastIndex = 0;
  983. if (/^https?:\/\/~[\w\s\~]*\//.test(muligtLink))
  984. {
  985. if (textNode.parentNode.className == "adead_link") continue;
  986. var censoredLink = muligtLink;
  987. var span = document.createElement('span');
  988. span.className = "adead_link";
  989. $(span).attr('warlc_error', "Cause of error: <b>Censored link.</b>");
  990. $(span).html(censoredLink);
  991. span.addEventListener("mouseover", displayTooltipError, false);
  992. cLinksTotal++; cLinksProcessed++; cLinksDead++;
  993. textNode.parentNode.replaceChild(span, textNode);
  994. continue;
  995. alert(censoredLink);
  996. }
  997. while (myArray = allLinksRegex.exec(muligtLink)) //find all links
  998. {
  999. if (!regex.test(myArray[0])) //this link is not recognized
  1000. {
  1001.  
  1002. continue;
  1003. }
  1004. if (!span)
  1005. span = document.createElement('span');
  1006.  
  1007. var link = myArray[0];
  1008. span.appendChild(document.createTextNode(muligtLink.substring(lastLastIndex, myArray.index))); //inds?t det der kommer for dette hit
  1009.  
  1010. var $a = $("<a>" + link + "</a>")
  1011. if (!link.match(/https?:\/\//))
  1012. {
  1013. link = 'http://' + link;
  1014. }
  1015.  
  1016. $a.attr("href", link.replace(/\[\/hide:\w+\]/,""))
  1017. .addClass("processing_link")
  1018. .appendTo(span);
  1019. lastLastIndex = allLinksRegex.lastIndex;
  1020. }
  1021. if (span)
  1022. {
  1023. span.appendChild(document.createTextNode(muligtLink.substring(lastLastIndex))); //ins?t det der kommer efter sidste hit
  1024. textNode.parentNode.replaceChild(span, textNode);
  1025. }
  1026. }
  1027. }
  1028.  
  1029. function add_WARLC_style()
  1030. {
  1031. if (!(document.getElementsByTagName('WARLC')[0]))
  1032. {
  1033. var meta_not_to_add_more_style = document.createElement("WARLC");
  1034. meta_not_to_add_more_style.setAttribute('content', 'war_links_checker');
  1035. meta_not_to_add_more_style.setAttribute('name', 'description');
  1036. document.getElementsByTagName('head')[0].appendChild(meta_not_to_add_more_style);
  1037. alive_link_png = "";
  1038. adead_link_png = "";
  1039. unava_link_png = "";
  1040. prem_link_png = "";
  1041. switch(Icon_set)
  1042. {
  1043. //no icons
  1044. case 0: break;
  1045. // cat paws
  1046. case 1: alive_link_png = PAW_ICON_GREEN;
  1047. adead_link_png = PAW_ICON_RED;
  1048. unava_link_png = PAW_ICON_YELLOW;
  1049. prem_link_png = PAW_ICON_PINK;
  1050. break;
  1051. // classic RSLC look
  1052. case 2: alive_link_png = RSLC_ICON_GREEN;
  1053. adead_link_png = RSLC_ICON_RED;
  1054. unava_link_png = RSLC_ICON_YELLOW;
  1055. prem_link_png = RSLC_ICON_PINK;
  1056. break;
  1057. // New Icons
  1058. case 3: alive_link_png = NEW_ICON_GREEN;
  1059. adead_link_png = NEW_ICON_RED;
  1060. unava_link_png = NEW_ICON_YELLOW;
  1061. prem_link_png = NEW_ICON_PINK;
  1062. break;
  1063. // cat paws
  1064. default:alive_link_png = PAW_ICON_GREEN;
  1065. adead_link_png = PAW_ICON_RED;
  1066. unava_link_png = PAW_ICON_YELLOW;
  1067. prem_link_png = PAW_ICON_PINK;
  1068. break;
  1069. }
  1070. processing_link_gif = 'data:image/gif;base64,' + // or temporary anavailable
  1071. 'R0lGODlhCgAKAJEDAMzMzP9mZv8AAP///yH/C05FVFNDQVBFMi4wAwEAAAAh+QQFAAADACwAAAAACgAKAAACF5wncgaAGgJzJ647cWua4sOBFEd62VEAACH5BAUAAAMALAEAAAAIAAMAAAIKnBM2IoMDAFMQFAAh+QQFAAADACwAAAAABgAGAAACDJwHMBGofKIRItJYAAAh+QQFAAADACwAAAEAAwAIAAACChxgOBPBvpYQYxYAIfkEBQAAAwAsAAAEAAYABgAAAgoEhmPJHOGgEGwWACH5BAUAAAMALAEABwAIAAMAAAIKBIYjYhOhRHqpAAAh+QQFAAADACwEAAQABgAGAAACDJwncqi7EQYAA0p6CgAh+QQJAAADACwHAAEAAwAIAAACCpRmoxoxvQAYchQAOw%3D%3D';
  1072.  
  1073. var dead_color_css, live_color_css, unava_color_css, prem_color_css, black_background_css;
  1074.  
  1075. if (Color_DL_links)
  1076. {
  1077. dead_color_css = 'color:' + Dead_links_color + ' !important;';
  1078. live_color_css = 'color:' + Live_links_color + ' !important;';
  1079. unava_color_css = 'color:' + Temp_unavailable_links_color + ' !important;';
  1080. container_color_css = 'color:' + Container_links_color + ' !important;';
  1081. prem_color_css = 'color:' + Premium_links_color + ' !important;';
  1082. }
  1083. else
  1084. {
  1085. dead_color_css = live_color_css = unava_color_css = container_color_css = prem_color_css = '';
  1086. }
  1087.  
  1088. if (Show_black_background_in_DL_links)
  1089. {
  1090. black_background_css = 'background-color: black !important;';
  1091. }
  1092. else
  1093. {
  1094. black_background_css = '';
  1095. }
  1096.  
  1097. if (Show_line_through_in_dead_links)
  1098. {
  1099. line_through_css = 'text-decoration: line-through !important;';
  1100. }
  1101. else
  1102. {
  1103. line_through_css = '';
  1104. }
  1105.  
  1106. GM_addStyle(".alive_link {background:transparent url(" + alive_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;" + live_color_css + black_background_css + "}");
  1107. 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 + "}");
  1108. GM_addStyle(".unava_link {background:transparent url(" + unava_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;" + unava_color_css + black_background_css + "}");
  1109. GM_addStyle(".processing_link {background:transparent url(" + processing_link_gif + ") no-repeat scroll 100% 50%;padding-right:15px;" + container_color_css + black_background_css + "}");
  1110. GM_addStyle(".container_link {background:transparent url(" + processing_link_gif + ") no-repeat scroll 100% 50%;padding-right:15px;" + container_color_css + black_background_css + "}");
  1111. GM_addStyle(".container_list {font-size:90%; list-style-type:square; padding: 0px 5% 0px; margin: 0px}");
  1112. GM_addStyle(".prem_link {background:transparent url(" + prem_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;" + prem_color_css + black_background_css + "}");
  1113. }
  1114. }
  1115.  
  1116. var warlcTooltip = null;
  1117. var mouseoverLink = null; //link href with mouse cursor over it
  1118.  
  1119. var lastX = 0;
  1120. var lastY = 0;
  1121.  
  1122. $(document).ready(initTooltip);
  1123. //inits tooltip
  1124. function initTooltip()
  1125. { warlcTooltip = document.createElement("div");
  1126. 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;");
  1127. warlcTooltip.style.visibility = "hidden";
  1128. document.body.appendChild(warlcTooltip);
  1129. }
  1130.  
  1131. //"mousemove" event handler for all links
  1132. function moveTooltip(event)
  1133. {
  1134. if ((Math.abs(lastX - event.clientX) + Math.abs(lastY - event.clientY)) < 6)
  1135. { //no need to reflow if the cursor moved just a little
  1136. return;
  1137. }
  1138. else
  1139. {
  1140. lastX = event.clientX;
  1141. lastY = event.clientY;
  1142. }
  1143.  
  1144. posX = event.clientX + window.pageXOffset + 10;
  1145. posY = event.clientY + window.pageYOffset;
  1146. var ttHeight = warlcTooltip.offsetHeight;
  1147. var ttFreeSpace = window.innerHeight - event.clientY;
  1148. if (ttHeight > ttFreeSpace)
  1149. { //prevents tooltip from getting out of the window
  1150. posY -= (ttHeight - (ttFreeSpace)) + 10;
  1151. }
  1152. else
  1153. {
  1154. posY += 7;
  1155. }
  1156. warlcTooltip.style.top = posY + "px";
  1157. warlcTooltip.style.left = posX + "px";
  1158. }
  1159.  
  1160. //"mouseout" event handler for all links
  1161. function hideTooltip(){
  1162. warlcTooltip.style.visibility = "hidden";
  1163. mouseoverLink = null;
  1164. }
  1165.  
  1166.  
  1167. //"mouseover" event handler for dead links
  1168. //displays tooltip error message on dead links
  1169. function displayTooltipError()
  1170. {
  1171. mouseoverLink = this.href;
  1172. this.addEventListener("mouseout", hideTooltip);
  1173. this.addEventListener("mousemove", function(event) { moveTooltip(event); });
  1174. warlcTooltip.innerHTML = '<b>LOADING...</b>';
  1175. warlcTooltip.style.minWidth = 0;
  1176. warlcTooltip.style.visibility = "visible";
  1177. if (this.warlc_error) //an error message is already known and stored in warlc_error attribute
  1178. {
  1179. warlcTooltip.innerHTML = this.warlc_error;
  1180. }
  1181. else
  1182. {
  1183. loadErrorInfo(this);
  1184. }
  1185. function loadErrorInfo(link)
  1186. {
  1187. var href = link.href;
  1188. href = href.replace(/quickshare\.cz\/.+/, "quickshare.cz/chyba");
  1189. GM_xmlhttpRequest({
  1190. method: 'GET',
  1191. url: href.replace(Ref_anonymize_service, ""),
  1192. headers: {
  1193. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1194. 'Accept': 'text/xml',
  1195. 'Referer': ""
  1196. },
  1197. onload: function(result) {
  1198. var res = result.responseText;
  1199. //TODO: errorRegexs -
  1200. var errorRegexs = [ //generic error messages follow
  1201. /(empty directory)/i,
  1202. /(soubor nebyl nalezen)/i,
  1203. /((?:file|page|link|folder)(?:is|not|does|has been|was| ){1,}(?:found|available|blocked|exists?|deleted|removed))/i,
  1204. //server specific error messages follow
  1205. /msg error" style="cursor: default">(.+?)<\/div>/, //sendspace
  1206. /color:red;font\-weight:bold;border\-style:dashed;font-size:12px;border\-width:2px;><tr><td align=center>(.+?)<\/td>/, //fastshare
  1207. /(Takový soubor neexistuje. Je možné, že byl již smazán.)/, //quickshare
  1208. /file_info file_info_deleted">\s*<h1>(.+?)<\/h1>/, //filepost
  1209. /<br \/>\s*<p style="color:#000">(.+?)<\/p>\s*<\/center>/, //letitbit
  1210. /(?:error_div">|<\/h1><p>)<strong>(.+?)<\/strong>/, //share-rapid,quickshare
  1211. /class="red">(.+?)<(?:span|br)>/, //czshare, megashares
  1212. /class="wp640">\s*<h1 class="h1">(.+?)<\/h1>/, //uloz.to
  1213. /not-found">\s*<p>(.+?)<\/p>/, //bayfiles
  1214. /(Your file could not be found. Please check the download link.)/, //stahnu.to
  1215. /error_msg">\s*(<h3>.+?<\/h3><ul>(.+?)<\/ul>)/, //edisk
  1216. /id="obsah">\s*<h2>(.+?)<\/h2>/, //euroshare
  1217. /error">\s*(?:<[bp]>)?\s*(.+?)<\/[bp]>/, //filesmonster, shragle, gigapeta
  1218. ///center aC">\s*<h1>(.+?)<br \/>/, //uploaded.to
  1219. /icon_err">\s*<h1>(.+?)<\/h1>/, //filejungle
  1220. /Code: ER_NFF_\d+<\/h2>\s*(.+?)\s*<\/div>/, //netload
  1221. /(File has been removed due to Copyright Claim)/, //filerio
  1222. ];
  1223. var errorIdx = errorRegexs.length;
  1224. var error = "Cause of error: <b>unknown</b>";
  1225. var errorCandidate = "";
  1226. while(errorIdx--)
  1227. {
  1228. var errorCandidate = res.match(errorRegexs[errorIdx]);
  1229. if (errorCandidate != null)
  1230. {
  1231. error = "Cause of error: <b>" + errorCandidate[1].replace(/&nbsp;/g," ") + "</b>";
  1232. break;
  1233. }
  1234. }
  1235. //link attributes
  1236. link.warlc_error = error;
  1237. if (mouseoverLink == link.href) //mouse cursor is still over the link
  1238. {
  1239. warlcTooltip.innerHTML = error;
  1240. }
  1241. }
  1242. });
  1243. }
  1244. }
  1245.  
  1246. //"mouseover" event handler for alive links
  1247. //displays tooltip info (file size, file name,...) on alive links
  1248. function displayTooltipInfo()
  1249. {
  1250. mouseoverLink = this.href;
  1251. //exclude direct download filehostings
  1252. 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)/))
  1253. {
  1254. return;
  1255. }
  1256. this.addEventListener("mouseout", hideTooltip);
  1257. this.addEventListener("mousemove", function(event) { moveTooltip(event); });
  1258. warlcTooltip.innerHTML = '<b>LOADING...</b>';
  1259. warlcTooltip.style.minWidth = 0;
  1260. warlcTooltip.style.visibility = "visible";
  1261. if (this.warlc_tooltipcache) //file size is already known and stored in warlc_filename and warlc_filesize attributes
  1262. {
  1263. warlcTooltip.innerHTML = this.warlc_tooltipcache;
  1264. }
  1265. else
  1266. {
  1267. loadInfo(this);
  1268. }
  1269. function loadInfo(link)
  1270. {
  1271. var href = link.href;
  1272. GM_xmlhttpRequest({
  1273. method: 'GET',
  1274. url: href.replace(Ref_anonymize_service, ""),
  1275. headers: {
  1276. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1277. 'Accept': 'text/xml',
  1278. 'Referer': ""
  1279. },
  1280. onload: function(result) {
  1281. var res = result.responseText;
  1282. var nameRegexs = [ /Filename: <b class="f_arial f_14px">(.+?)<\/b>/, //oron
  1283. /(?:finfo|file[-_]?name)">\s*(.+?)<\/?(?:h1|a|div|span style|td)/, //hellshare, netload, badongo, 4fastfile
  1284. /fl" title="(.+?)">/, //edisk
  1285. /<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
  1286. /<h3>Stahujete soubor: <\/h3>\s*<div class="textbox">(.+?)<\/div>/, //webshare
  1287. /<h3><b><span style=color:black;>(.+?)<\/b><\/h3><br>/, //fastshare
  1288. /title="download (.+?)">/, //sendspace
  1289. /Stáhnout soubor: (.+?)<\/h1>/, //quickshare
  1290. /fz24">Download:\s*<strong>(.+?)<\/strong>/, //crocko
  1291. // /'file\-icon\d+ \w+'>(?:<\/span><span>)?(.+?)<\/span>/, //hitfile, turbobit
  1292. /d0FileName = "(.+?)";/, //letitbit
  1293. /file(?:_name|-info)" title="">\w+: <span>(.+?)<\/span>/, //vip-file, shareflare
  1294. /recent-comments"><h2>(.+) &nbsp;/, //xdisk
  1295. /fname" value="(.+?)">/, //syfiles, grupload,
  1296. /download\-header">\s*<h2>File:<\/h2>\s*<p title="(.+?)">/, //bayfiles
  1297. /description">\s*<p><b>Soubor: (.+?)<\/b>/, //bezvadata
  1298. /Complete name : (.+?)<br \/>/, //bezvadata
  1299. /itemprop="name">(.+?)<\/span>/, //bezvadata
  1300. ];
  1301. var nameIdx = nameRegexs.length;
  1302. // [sizeRegexs]
  1303. // / \ \?
  1304. // prefix (size) postfix
  1305. // / \
  1306. // val quant
  1307. var quantRegex = '(?:M|G|K)?i?(?:B)(?:[y|i]te?s?)?';
  1308. var valRegex = '\\d+(?:[\\., ]\\d+){0,2}'; // 111([., ]222)?([., ]333)?
  1309. var uniSizeRegex = valRegex + '(?:\\s*|&nbsp;)' + quantRegex;
  1310. var preSizeRegex = '(?::|\\(|>|>, | - )';
  1311. var postSizeRegex = '(?:\\))?';
  1312. var sizeRegexs = [ preSizeRegex + "\\s*(" + uniSizeRegex + ")\\s*" + postSizeRegex,
  1313. 'FileSize_master">(.+?)<\/strong>', //hellshare
  1314. ];
  1315. var sizeIdx = sizeRegexs.length;
  1316. //
  1317. //
  1318. var tooltip = "File Name: <b>";
  1319. var fileName = "unknown";
  1320. var nameCandidate = "";
  1321. while(nameIdx--)
  1322. {
  1323. var nameCandidate = res.match(nameRegexs[nameIdx]);
  1324. if (nameCandidate != null)
  1325. {
  1326. fileName = nameCandidate[1].replace(/&nbsp;/g," ");
  1327. break;
  1328. }
  1329. }
  1330. tooltip += fileName + "</b><br>File Size: <b>";
  1331. var fileSize = "unknown";
  1332. var sizeCandidate = "";
  1333. while(sizeIdx--)
  1334. {
  1335. sizeCandidate = res.match(new RegExp(sizeRegexs[sizeIdx], "i"));
  1336. if (sizeCandidate != null)
  1337. {
  1338. fileSize = sizeCandidate[1].replace(/&nbsp;/g," ");
  1339. if (/^\d+$/.test(fileSize) && fileSize >= 1024) //assume bytes
  1340. {
  1341. if(fileSize > (1<<30)) fileSize = Math.round(10 * fileSize / (1<<30)) / 10 + ' GB';
  1342. else if(fileSize > (1<<20)) fileSize = Math.round(fileSize / (1<<20)) + ' MB';
  1343. else fileSize = Math.round(fileSize / 1024) + ' KB';
  1344. }
  1345. break;
  1346. }
  1347. }
  1348. tooltip += fileSize + "</b>";
  1349. // PROTOTYPE
  1350. // video thumbnails
  1351. if (href.match('hellshare'))
  1352. {
  1353. var thumbs;
  1354. thumbs = res.match(/http:\/\/static\d+\.helldata\.com\/thumbs(?:\/\d+){1,2}\/\d{1,2}"/g);
  1355. if (thumbs)
  1356. {
  1357. tooltip += '<br>';
  1358. var j = Math.min(thumbs.length, 9);
  1359. for (var i = 0; i < j; i++)
  1360. {
  1361. tooltip += '<img src="' + thumbs[i].replace('"',"") + '" width="' + TOOLTIP_THUMBWIDTH + 'px">';
  1362. }
  1363. warlcTooltip.style.minWidth = TOOLTIP_MAXWIDTH;
  1364. }
  1365. }
  1366. if (href.match('czshare'))
  1367. {
  1368. var thumbs;
  1369. thumbs = res.match(/src="http:\/\/www(\d+)\.czshare\.com\/images_velke\/\d+\.(\d+)\.jpeg/);
  1370. if (thumbs)
  1371. {
  1372. var thumbsServer = thumbs[1];
  1373. var thumbsId = thumbs[2];
  1374. tooltip += '<br>';
  1375. for (var i = 1; i < 9; i++)
  1376. {
  1377. tooltip += '<img src="http://www' + thumbsServer + '.czshare.com/images_velke/' + i + '.' + thumbsId + '.jpeg" width="' + TOOLTIP_THUMBWIDTH + 'px">';
  1378. }
  1379. warlcTooltip.style.minWidth = TOOLTIP_MAXWIDTH;
  1380. }
  1381. }
  1382. if (href.match('bezvadata'))
  1383. {
  1384. var thumbs;
  1385. thumbs = res.match(/http:\/\/nahledy\.bezvadata\.cz\/nahledy\/\d+\/\d+\/\d+_\d+_\d+x\d+_\w.jpg/g);
  1386. if (thumbs)
  1387. {
  1388. tooltip += '<br>';
  1389. var j = Math.min(thumbs.length, 9);
  1390. for (var i = 0; i < j; i++)
  1391. {
  1392. tooltip += '<img src="' + thumbs[i] + '" width="' + TOOLTIP_THUMBWIDTH + 'px">';
  1393. }
  1394. warlcTooltip.style.minWidth = TOOLTIP_MAXWIDTH;
  1395. }
  1396. }
  1397. link.warlc_tooltipcache = tooltip;
  1398. if (mouseoverLink == link.href) //mouse cursor is still over the link
  1399. {
  1400. warlcTooltip.innerHTML = tooltip;
  1401. }
  1402. }
  1403. });
  1404. }
  1405. }
  1406.  
  1407. function setVariables()
  1408. {
  1409. if (firstRun)
  1410. {
  1411. GM_log('First run, applying default settings...');
  1412. GM_setValue("Icon_set",1);
  1413. GM_setValue("Display_tooltip_info",true);
  1414. GM_setValue("Show_black_background_in_DL_links",false);
  1415. GM_setValue("Show_line_through_in_dead_links",false);
  1416. GM_setValue("Display_full_links_in_link_containers",false);
  1417. GM_setValue("Allow_spaces_in_DL_links",false);
  1418. GM_setValue("Autocheck",true);
  1419. GM_setValue("Enable_Anonymizer",false);
  1420. GM_setValue("Do_not_linkify_DL_links",false);
  1421. GM_setValue("Show_progress_stats",true);
  1422. GM_setValue("Keyboard_functions",true);
  1423. GM_setValue("Obsolete_file_hosts",false);
  1424. GM_setValue("Color_DL_links",true);
  1425. GM_setValue("Live_links_color","Green");
  1426. GM_setValue("Dead_links_color","#FF3300");
  1427. GM_setValue("Temp_unavailable_links_color","#F7EF09");
  1428. GM_setValue("Container_links_color","DarkKhaki");
  1429. GM_setValue("Premium_links_color","DeepPink");
  1430. GM_setValue("Ref_anonymize_service","http://hiderefer.com/?");
  1431. GM_setValue("Custom_rules",false);
  1432. GM_setValue("Custom_rules_text","");
  1433. GM_setValue("First_run", false);
  1434. }
  1435. //hidden settings
  1436. GM_setValue("Progress_box_pos_bottom", Progress_box_pos_bottom = GM_getValue("Progress_box_pos_bottom", 20));
  1437. GM_setValue("Progress_box_pos_right", Progress_box_pos_right = GM_getValue("Progress_box_pos_right", 10));
  1438. GM_setValue("Progress_box_opacity", Progress_box_opacity = GM_getValue("Progress_box_opacity", 85));
  1439. GM_setValue("Progress_box_background_color", Progress_box_background_color = GM_getValue("Progress_box_background_color", 'DimGray'));
  1440. GM_setValue("Progress_box_item_color", Progress_box_item_color = GM_getValue("Progress_box_item_color", 'DimGray'));
  1441. GM_setValue("Progress_box_refresh_rate", Progress_box_refresh_rate = GM_getValue("Progress_box_refresh_rate", 2000));
  1442. GM_setValue("Debug_mode", DEBUG_MODE = GM_getValue("Debug_mode", false));
  1443. //hidden settings end
  1444.  
  1445. Icon_set = GM_getValue("Icon_set", 1); //0 - no icons, 1 - cat paws, 2 - old RSLC style, 3 - New Icons,
  1446. Display_tooltip_info = GM_getValue("Display_tooltip_info", true);
  1447. Show_black_background_in_DL_links = GM_getValue("Show_black_background_in_DL_links", false);
  1448. Show_line_through_in_dead_links = GM_getValue("Show_line_through_in_dead_links", false);
  1449. Display_full_links_in_link_containers = GM_getValue("Display_full_links_in_link_containers", false);
  1450. Allow_spaces_in_DL_links = GM_getValue("Allow_spaces_in_DL_links", false);
  1451. Autocheck = GM_getValue("Autocheck", true);
  1452. Enable_Anonymizer = GM_getValue("Enable_Anonymizer", false);
  1453. Do_not_linkify_DL_links = GM_getValue("Do_not_linkify_DL_links", false);
  1454. Show_progress_stats = GM_getValue("Show_progress_stats", true);
  1455. Keyboard_functions = GM_getValue("Keyboard_functions", true);
  1456. Obsolete_file_hosts = GM_getValue("Obsolete_file_hosts", false);
  1457. Color_DL_links = GM_getValue("Color_DL_links", true);
  1458. Live_links_color = GM_getValue("Live_links_color", "Green");
  1459. Dead_links_color = GM_getValue("Dead_links_color", "#FF3300");
  1460. Temp_unavailable_links_color = GM_getValue("Temp_unavailable_links_color", "#F7EF09");
  1461. Container_links_color = GM_getValue("Container_links_color", "DarkKhaki");
  1462. Premium_links_color = GM_getValue("Premium_links_color", "DeepPink");
  1463. Ref_anonymize_service = GM_getValue("Ref_anonymize_service", "http://hiderefer.com/?");
  1464. Custom_rules = GM_getValue("Custom_rules", false);
  1465. Custom_rules_text = GM_getValue("Custom_rules_text", false);
  1466. }
  1467.  
  1468.  
  1469. // Delinkifies the links
  1470. // params:
  1471. // links -> list of links or link components (note they should be sufficiently unique to identify the link on page,
  1472. // e.g. 'uloz.to/xs68skxl8')
  1473. function delinkifySnapshot(snapshot)
  1474. {
  1475. var n = snapshot.snapshotLength;
  1476.  
  1477. while (n--)
  1478. {
  1479. thisLink = snapshot.snapshotItem(n);
  1480.  
  1481. var spanElm = document.createElement("span");
  1482. spanElm.className = thisLink.className;
  1483. spanElm.innerHTML = thisLink.innerHTML;
  1484.  
  1485. if (Display_tooltip_info)
  1486. {
  1487. spanElm.href = thisLink.href;
  1488. switch (thisLink.className){
  1489. case "alive_link": spanElm.addEventListener("mouseover", displayTooltipInfo, false); break
  1490. case "adead_link": spanElm.addEventListener("mouseover", displayTooltipError, false); break;
  1491. case "unava_link": //reserved
  1492. default:
  1493. }
  1494. }
  1495. thisLink.parentNode.replaceChild(spanElm, thisLink);
  1496. }
  1497. }
  1498.  
  1499. function processContainers()
  1500. {
  1501. var redirectorTypes = { "HTTP_302": 0,
  1502. "INNER_LINK": 1,
  1503. "THELOO_KATT_IT": 2,
  1504. "CING_BE": 3,
  1505. "ADF_LY": 4};
  1506. var cMultiloadTotal = 0;
  1507. var cMultiloadProcessed = 0;
  1508.  
  1509. var cMirrorcreatorComTotal = 0;
  1510. var cMirrorcreatorComProcessed = 0;
  1511.  
  1512. var hostRestrictionRegex = "";
  1513. var multiloadComRestriction = "";
  1514. var multiloadComRestrictionRegex;
  1515.  
  1516. //
  1517. //HANDLING REDIRECTORS START
  1518. //
  1519.  
  1520. var redirectors = new Array();
  1521. initRedirectors();
  1522.  
  1523. var redirectorsCount = redirectors.length;
  1524.  
  1525. if (redirectorsCount > 0)
  1526. {
  1527. var allRedirectorsRegex = "";
  1528.  
  1529. //linkify redirector links
  1530. for(var redirIdx = 0; redirIdx < redirectorsCount; redirIdx++)
  1531. {
  1532. allRedirectorsRegex += redirectors[redirIdx].linkRegex + "|";
  1533. }
  1534. allRedirectorsRegex = allRedirectorsRegex.replace(/\|$/, "");
  1535. linkify(allRedirectorsRegex);
  1536. //
  1537. //process redirector links
  1538. for(var redirIdx = 0; redirIdx < redirectorsCount; redirIdx++)
  1539. {
  1540. var redirectorsSnapshot = document.evaluate(redirectors[redirIdx].xpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  1541. redirectors[redirIdx].cTotal = redirectorsSnapshot.snapshotLength;
  1542.  
  1543. cLinksTotal += redirectors[redirIdx].cTotal;
  1544. var linkIdx = redirectors[redirIdx].cTotal;
  1545.  
  1546. while(linkIdx--)
  1547. {
  1548. switch(redirectors[redirIdx].type)
  1549. {
  1550. case redirectorTypes.HTTP_302: processRedirectorLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1551. case redirectorTypes.INNER_LINK: processRedirectorLinkEx(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1552. case redirectorTypes.THELOO_KATT_IT: processThelooKattItLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1553. case redirectorTypes.CING_BE: processCingBeLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1554. case redirectorTypes.ADF_LY: processAdfLyLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1555. default:
  1556. }
  1557. }
  1558. }
  1559. //
  1560. }
  1561.  
  1562. //HTTP_302
  1563. function processRedirectorLink(link, redirectorId)
  1564. {
  1565. link.className = 'container_link';
  1566.  
  1567. GM_xmlhttpRequest({
  1568. method: 'HEAD',
  1569. url: link.href,
  1570. headers: {
  1571. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1572. 'Accept': 'text/xml',
  1573. 'Referer': ""
  1574. },
  1575. onload: function(result) {
  1576. if (result.finalUrl.replace("https", "http") == link.href) // service hasn't redirected anywhere
  1577. {
  1578. processRedirectorLink(link, redirectorId);
  1579. }
  1580. else
  1581. {
  1582. redirectors[redirectorId].cProcessed++;
  1583. link.href = result.finalUrl;
  1584. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  1585. checkLinks('container_link');
  1586. }
  1587. },
  1588. onerror: function(result) { //probably caused by unresponsive filehosting
  1589. redirectors[redirectorId].cProcessed++;
  1590. link.className = 'unava_link';
  1591. cLinksProcessed++;
  1592. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  1593. checkLinks('container_link');
  1594. }
  1595. });
  1596. }
  1597. //INNER_LINK
  1598. function processRedirectorLinkEx(link, redirectorId)
  1599. {
  1600. link.className = 'container_link';
  1601. GM_xmlhttpRequest({
  1602. method: 'GET',
  1603. url: link.href,
  1604. headers: {
  1605. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1606. 'Accept': 'text/xml',
  1607. 'Referer': ""
  1608. },
  1609. onload: function(result) {
  1610. link.href = result.responseText.match(redirectors[redirectorId].innerLinkRegex)[1];
  1611. redirectors[redirectorId].cProcessed++;
  1612. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  1613. checkLinks('container_link');
  1614. }
  1615. });
  1616. }
  1617. //theloo.katt.it (wrapped safelinking.net)
  1618. function processThelooKattItLink(link, redirectorId)
  1619. {
  1620. link.className = 'container_link';
  1621. GM_xmlhttpRequest({
  1622. method: 'GET',
  1623. url: link.href,
  1624. headers: {
  1625. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1626. 'Accept': 'text/xml',
  1627. 'Referer': ""
  1628. },
  1629. onload: function(result) {
  1630. link.href = result.responseText.match(redirectors[redirectorId].innerLinkRegex)[1];
  1631. redirectors[redirectorId].cProcessed++;
  1632. //the inner links are safelinking.net links, so lets proceed with it
  1633. if (GM_getValue("Check_safelinking_dot_net_links", false))
  1634. {
  1635. processRedirectorLink(link, 0);
  1636. }
  1637. }
  1638. });
  1639. }
  1640. //adf.ly (adf.ly/go innerLink, locking mechanism)
  1641. function processAdfLyLink(link, redirectorId)
  1642. {
  1643. link.className = 'container_link';
  1644. GM_xmlhttpRequest({
  1645. method: 'GET',
  1646. url: link.href,
  1647. headers: {
  1648. 'User-agent': 'Mozilla/4.0',
  1649. 'Accept': 'text/xml',
  1650. 'Referer': ""
  1651. },
  1652. onload: function(result) {
  1653. if (result.finalUrl.match('/locked/'))
  1654. {
  1655. var delay = result.responseText.match(/countdown">(\d+)</)[1];
  1656. // GM_log(result.finalUrl + 'is locked. Repeating the request in ' + delay + 's.');
  1657. // setTimeout(function(){processAdfLyLink(link, redirectorId);}, delay * 1000);
  1658. }
  1659. else
  1660. {
  1661. // GM_log('Processing... ' + link.href);
  1662. // GM_log('Found...' + result.responseText.match(/\/go\/(\w+\/\w+)/)[1]);
  1663. var directLink = 'http://adf.ly' + result.responseText.match(/(\/go\/\w+\/\w+)/)[1];
  1664. var logToken = result.responseText.match(/flashy_(\w+)/)[1];
  1665. var users = result.responseText.match(/user=\d+&user2=\d+/);
  1666. //confirm advert
  1667. GM_xmlhttpRequest(
  1668. {
  1669. method: 'POST',
  1670. url: 'http://adf.ly/l.php',
  1671. headers: {
  1672. 'User-agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20100101 Firefox/13.0',
  1673. 'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
  1674. 'Referer': link.href
  1675. },
  1676. data: users + '&lt=' + logToken,
  1677. onload: function(result) {
  1678. //retrieve final url from .../go/... link
  1679. GM_xmlhttpRequest({
  1680. method: 'GET',
  1681. url: directLink,
  1682. headers: {
  1683. 'User-agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20100101 Firefox/13.0',
  1684. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  1685. 'Referer': link.href
  1686. },
  1687. onload: function(result) {
  1688. link.href = result.finalUrl;
  1689. redirectors[redirectorId].cProcessed++;
  1690. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  1691. checkLinks('container_link');
  1692. }
  1693. });
  1694. }
  1695. });
  1696. }
  1697. }
  1698. });
  1699. function proceedOK()
  1700. {
  1701. }
  1702. }
  1703. //MULTILOAD.CZ START
  1704. if (GM_getValue("Check_multiload_dot_cz_links", false))
  1705. {
  1706. var mlRegex = 'multiload\\.cz\/stahnout\/\\d+\/';
  1707. var mlXpath = "//a[contains(@href,'http://www.multiload.cz/stahnout')]";
  1708.  
  1709. hostRestrictionRegex = 'Upload se nezdařil|limit exceeded|probíhá reupload|';
  1710.  
  1711. if (GM_getValue("Check_hellshare_dot_com_links", false))
  1712. hostRestrictionRegex += 'hellshare|';
  1713. if (GM_getValue("Check_share_dash_rapid_dot_com_links", false))
  1714. hostRestrictionRegex += 'share-rapid\\.com|';
  1715. if (GM_getValue("Check_quickshare_dot_cz_links", false))
  1716. hostRestrictionRegex += 'quickshare\\.cz|';
  1717. if (GM_getValue("Check_czshare_dot_com_links", false))
  1718. hostRestrictionRegex += 'czshare\\.com|';
  1719. if (GM_getValue("Check_uloz_dot_to_links", false))
  1720. hostRestrictionRegex += 'uloz\\.to|';
  1721. if (GM_getValue("Check_hellspy_dot_com_links", false))
  1722. hostRestrictionRegex += 'hellspy|';
  1723. if (GM_getValue("Check_multishare_dot_cz_links", false))
  1724. hostRestrictionRegex += 'multishare\\.cz|';
  1725.  
  1726. hostRestrictionRegex = hostRestrictionRegex.replace(/\|$/, "");
  1727.  
  1728. linkify(mlRegex);
  1729.  
  1730. var mlSnapshot = document.evaluate(mlXpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  1731. var mlCount = mlSnapshot.snapshotLength;
  1732.  
  1733. if (mlCount > 0)
  1734. {
  1735. cMultiloadTotal += mlCount;
  1736.  
  1737. mlIdx = mlCount - 1;
  1738. do
  1739. {
  1740. processMultiloadLink(mlSnapshot.snapshotItem(mlIdx));
  1741. }
  1742. while(mlIdx--)
  1743. }
  1744. }
  1745. //MULTILOAD.CZ END
  1746.  
  1747.  
  1748.  
  1749. function processMultiloadLink(mlLink)
  1750. {
  1751. GM_xmlhttpRequest({
  1752. method: 'GET',
  1753. url: mlLink.href,
  1754. headers: {
  1755. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1756. 'Accept': 'text/xml',
  1757. 'Referer': ""
  1758. },
  1759. onload: function(result) {
  1760. var res = result.responseText;
  1761.  
  1762. var innerBlockRegex = /<p class="manager-linky">(?:.|\s)+?<\/p>/g;
  1763. 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;
  1764. var innerLinkRegex = /((?:Upload se nezdařil.+|https?:\/\/(?:.|\s)+|Právě probíhá reupload, buďte trpěliví\.\.\.))</;
  1765. var mlRestrictionRegex = new RegExp(hostRestrictionRegex,"g"); //what links should be displayed
  1766.  
  1767. var blocks; // blocks of links
  1768. var blockIdx;
  1769.  
  1770. mlLink.className = '';
  1771.  
  1772. if (result.status == 503) //service temporarily unavailable, repeat request in one second
  1773. {
  1774. setTimeout(function(){ processMultiloadLink(mlLink); }, 1000);
  1775. return;
  1776. }
  1777.  
  1778. blocks = res.match(innerBlockRegex);
  1779.  
  1780. if (blocks == null) //no links found, cancel further processing
  1781. {
  1782. mlLink.parentNode.appendChild(document.createTextNode(' | Požadovaný soubor neexistuje.'));
  1783. cMultiloadProcessed++;
  1784. if (cMultiloadTotal <= cMultiloadProcessed)
  1785. {
  1786. startBulkCheck('container_link');
  1787. start('container_link');
  1788. }
  1789. return;
  1790. }
  1791.  
  1792. blockIdx = blocks.length;
  1793.  
  1794. if (Display_full_links_in_link_containers)
  1795. {
  1796. var ulElm = document.createElement('ul');
  1797. ulElm.className = 'container_list'; //CSS smaller font, padding, margin, square style
  1798.  
  1799. while(blockIdx--)
  1800. {
  1801. if (blocks[blockIdx].match(mlRestrictionRegex) == null)
  1802. {
  1803. continue;
  1804. }
  1805.  
  1806. var innerLinks = blocks[blockIdx].match(innerLinksRegex);
  1807.  
  1808. var linkIdx = innerLinks.length;
  1809. while (linkIdx--)
  1810. {
  1811. var innerLink = innerLinks[linkIdx].match(innerLinkRegex)[1];
  1812.  
  1813. var liElm = document.createElement('li');
  1814.  
  1815. if (innerLink.match(/Upload se nezdařil|limit exceeded|probíhá reupload/))
  1816. {
  1817. liElm.appendChild(document.createTextNode(innerLink));
  1818. }
  1819. else
  1820. {
  1821. var aElm = document.createElement('a');
  1822. aElm.innerHTML = innerLink;
  1823. aElm.href = innerLink;
  1824. aElm.className = 'container_link';
  1825.  
  1826. liElm.appendChild(aElm);
  1827. }
  1828.  
  1829. ulElm.appendChild(liElm);
  1830. cLinksTotal++;
  1831. }
  1832. }
  1833.  
  1834. mlLink.parentNode.appendChild(ulElm);
  1835. }
  1836. else //compact view
  1837. {
  1838. mlLink.parentNode.appendChild(document.createTextNode("|"));
  1839.  
  1840. while(blockIdx--)
  1841. {
  1842. if (blocks[blockIdx].match(mlRestrictionRegex) == null)
  1843. {
  1844. continue;
  1845. }
  1846.  
  1847. var innerLinks = blocks[blockIdx].match(innerLinksRegex);
  1848.  
  1849. var linkIdx = innerLinks.length;
  1850. while (linkIdx--)
  1851. {
  1852. var innerLink = innerLinks[linkIdx].match(innerLinkRegex)[1];
  1853.  
  1854. if (innerLink.match(/Upload se nezdařil|limit exceeded|probíhá reupload/))
  1855. {
  1856. mlLink.parentNode.appendChild(document.createTextNode("----"));
  1857. }
  1858. else
  1859. {
  1860. var aElm = document.createElement('a');
  1861.  
  1862. var hostName = innerLink.match(/quickshare|hellshare|uloz\.to|multishare|hellspy|share\-rapid|czshare/);
  1863.  
  1864. //abbreviate host name
  1865. switch(hostName + ""){
  1866.  
  1867. case 'quickshare': aElm.innerHTML = 'QS'; break;
  1868. case 'hellshare': aElm.innerHTML = 'HS'; break;
  1869. case 'uloz.to': aElm.innerHTML = 'UT'; break;
  1870. case 'multishare': aElm.innerHTML = 'MS'; break;
  1871. case 'hellspy': aElm.innerHTML = 'hs'; break;
  1872. case 'share-rapid': aElm.innerHTML = 'SR'; break;
  1873. case 'czshare': aElm.innerHTML = 'CS'; break;
  1874. default: aElm.innerHTML = 'xx';
  1875.  
  1876. }
  1877.  
  1878. aElm.href = innerLink;
  1879. aElm.className = 'container_link';
  1880.  
  1881. mlLink.parentNode.appendChild(aElm);
  1882. cLinksTotal++;
  1883. }
  1884. }
  1885.  
  1886. mlLink.parentNode.appendChild(document.createTextNode("|")); //blocks delimiter
  1887.  
  1888. }
  1889. }
  1890.  
  1891. cMultiloadProcessed++;
  1892. if (cMultiloadTotal == cMultiloadProcessed) //start check when all ml links have been processed
  1893. {
  1894. if (Do_not_linkify_DL_links)
  1895. {
  1896. delinkifySnapshot(mlSnapshot);
  1897. }
  1898. startBulkCheck('container_link');
  1899. start('container_link');
  1900. }
  1901. }
  1902. });
  1903. }
  1904.  
  1905.  
  1906. if (GM_getValue("Check_mirrorcreator_dot_com_links", false))
  1907. {
  1908. var mcRegex = 'mirrorcreator\\.com/files/(\\w+)';
  1909. var mcXpath = "//a[contains(@href,'mirrorcreator.com/files')]";
  1910. var mcShortHostNames =
  1911. '?? 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';
  1912. // 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
  1913. //?????? depositfiles sendspace load.to ul.to storage.to uploadbox x7.to fileserve ?????? duckload filehook filepost jumbofiles glumbouploads
  1914. // zshare ?????? 2shared uploading ugotfile extabit oron eyvx uploadstation putlocker
  1915. // megaupload badongo megashare gamefront ifile ?????? letitbit ?????? ?????? filejungle megashares
  1916. // easy-share ?????? netload zippyshare ?????? filesonic turbobit enterupload ?????? filekeen wupload crocko fileflyer
  1917.  
  1918. linkify(mcRegex);
  1919.  
  1920. var mcSnapshot = document.evaluate(mcXpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  1921. var mcCount = mcSnapshot.snapshotLength;
  1922.  
  1923. cMirrorcreatorComTotal = mcCount;
  1924.  
  1925. if (mcCount > 0)
  1926. {
  1927. mcShortHostNames = mcShortHostNames.split(' ');
  1928. mcIdx = mcCount;
  1929. while(mcIdx--)
  1930. processMirrorcreatorLink(mcSnapshot.snapshotItem(mcIdx));
  1931. }
  1932.  
  1933. }
  1934. //MIRRORCREATOR.CZ END
  1935.  
  1936.  
  1937. //mirrorcreator.com checking works like this:
  1938. //The base URL is http://www.mirrorcreator.com/files/XXXXXXXX/filename_links
  1939. //the actual list of mirrors is at http://www.mirrorcreator.com/status.php?uid=XXXXXXXX
  1940. //the list contains links in the form of (http://www.mirrorcreator.com)/redirect/XXXXXXXX/1
  1941. //these redirector links are extracted with mcLinkBlockRegex and the pages loaded
  1942. //they contain the actual filehost links, which are extracted with mcHostRegex and displayed in a container list
  1943. function processMirrorcreatorLink(mcLink)
  1944. {
  1945. var mcURL = mcLink.href.match(mcRegex);
  1946. if(!mcURL || !mcURL[1]) return;
  1947. mcURL = 'http://www.mirrorcreator.com/status.php?uid=' + mcURL[1]; //link correction
  1948. GM_xmlhttpRequest({
  1949. method: 'GET',
  1950. url: mcURL,
  1951. headers: {
  1952. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1953. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*'+'/*;q=0.8',
  1954. 'Referer': ""
  1955. },
  1956. onload: function(mcLinkResult) {
  1957. var mcLinkRes = mcLinkResult.responseText;
  1958.  
  1959. var mcLinkBlockRegex = /(\/redirect\/\w+\/(\d+))/gi;
  1960. var mcHostRegex = /<div id="redirectlink">.*?<a href="([^"]+)"/;
  1961.  
  1962. var mcRedirectors;
  1963. var mcHostURLs = [], mcRedirectorIDs = [], mcHostsFound = 0, mcHostsRetrieved = 0, mcHostsToProcess = 0;
  1964. var m = mcLinkRes.match(mcLinkBlockRegex);
  1965. if (m)
  1966. mcHostsFound = m.length;
  1967. else
  1968. { //no files inside container
  1969. processMirrorcreatorFoundHosts(mcLink, []);
  1970. return;
  1971. }
  1972.  
  1973. var mcRedirectorURL, idx, timedOut = false;
  1974.  
  1975. var gmxhrFunc = function(mcRedirectorURL){ //Tampermonkey doesn't know neither this.url or result.finalUrl
  1976. GM_xmlhttpRequest({
  1977. method: 'GET',
  1978. url: mcRedirectorURL,
  1979. headers: {
  1980. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1981. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*'+'/*;q=0.8',
  1982. 'Referer': ""
  1983. },
  1984. onload: function(mcHostResult) {
  1985. if (timedOut) return; //too late, the list is already displayed
  1986. var mcHostRes = mcHostResult.responseText;
  1987. var mcHost = mcHostRes.match(mcHostRegex);
  1988. idx = mcHostURLs.indexOf(mcRedirectorURL);
  1989. if (mcHost && idx!=-1)
  1990. {
  1991. mcHostURLs[idx] = mcHost[1].replace(/^\s+|\s+$/g, '');
  1992. mcHostsRetrieved++;
  1993. mcHostsToProcess++;
  1994. if (mcHostsFound == mcHostsRetrieved) //this is the last one!
  1995. {
  1996. processMirrorcreatorFoundHosts(mcLink, mcHostURLs, mcRedirectorIDs);
  1997. mcHostsToProcess = 0;
  1998. }
  1999. }
  2000. } //end of onload: function
  2001. }); //end of GM_xmlhttpRequest call
  2002. };//end of var gmxhrFunc
  2003.  
  2004. while (mcRedirectors = mcLinkBlockRegex.exec(mcLinkRes))
  2005. { //load individual redirector pages
  2006. mcRedirectorURL = 'http://www.mirrorcreator.com' + mcRedirectors[1];
  2007. mcHostURLs.push(mcRedirectorURL);
  2008. mcRedirectorIDs.push(mcRedirectors[2]);
  2009. gmxhrFunc(mcRedirectorURL);
  2010. } //end of while block
  2011.  
  2012. setTimeout(function(){ //in case the last page fails to load and call the function
  2013. timedOut = true;
  2014. if (mcHostsToProcess)
  2015. processMirrorcreatorFoundHosts(mcLink, mcHostURLs);
  2016. }, 60000);
  2017.  
  2018. } //end of onload function
  2019. }); //end of GM_xmlhttpRequest call
  2020. } //end of function processMirrorcreatorLink
  2021.  
  2022.  
  2023. function processMirrorcreatorFoundHosts(mcLink, mcHostURLs, mcRedirectorIDs)
  2024. {
  2025. var aEl, liEl, docFrag;
  2026. var hostName, mcRedirectorID, trimFilename = false;
  2027. var i = mcHostURLs.length;
  2028. if (i == 0)
  2029. {
  2030. trimFilename = true;
  2031. mcLink.parentNode.insertBefore(document.createTextNode(' | No files inside container'), mcLink.nextSibling);
  2032. }
  2033. else
  2034. {
  2035. if (Display_full_links_in_link_containers)
  2036. { //full view
  2037. var wrapperEl = document.createElement('span');
  2038. wrapperEl.style.display = 'block';
  2039. var ulistEl = document.createElement('ul');
  2040. ulistEl.className = 'container_list';
  2041. while (i--)
  2042. {
  2043. liEl = document.createElement('li');
  2044. aEl = document.createElement('a');
  2045. aEl.appendChild(document.createTextNode(mcHostURLs[i]));
  2046. aEl.href = mcHostURLs[i];
  2047. aEl.className = 'container_link';
  2048. liEl.appendChild(aEl);
  2049. ulistEl.appendChild(liEl);
  2050. }
  2051. wrapperEl.appendChild(ulistEl);
  2052. mcLink.parentNode.replaceChild(wrapperEl, mcLink);
  2053. wrapperEl.insertBefore(mcLink, wrapperEl.firstChild);
  2054. }
  2055. else
  2056. { //compact view
  2057. trimFilename = true;
  2058. docFrag = document.createDocumentFragment();
  2059. docFrag.appendChild(document.createTextNode(' |'));
  2060. while (i--)
  2061. {
  2062. mcRedirectorID = mcRedirectorIDs[i];
  2063. hostName = mcHostURLs[i];
  2064. if (mcRedirectorID > mcShortHostNames.length-1 || mcShortHostNames[mcRedirectorID] == '??')
  2065. hostName = hostName.replace(/https?:\/\/(?:www\.)?([-0-9a-z]+(?:\.[-0-9a-z]+)?)\.[a-z]+\/.*/i, '$1').toUpperCase();
  2066. else
  2067. hostName = mcShortHostNames[mcRedirectorID];
  2068. aEl = document.createElement('a');
  2069. aEl.href = mcHostURLs[i];
  2070. aEl.className = 'container_link';
  2071. aEl.appendChild(document.createTextNode(hostName));
  2072. docFrag.appendChild(aEl);
  2073. docFrag.appendChild(document.createTextNode('|'));
  2074. }
  2075. mcLink.parentNode.insertBefore(docFrag, mcLink.nextSibling);
  2076. } //end of else block
  2077. } //end of else block
  2078. mcLink.className = '';
  2079. if (trimFilename)
  2080. mcLink.firstChild.nodeValue = mcLink.firstChild.nodeValue.replace(/(https?:\/\/[^\/]+\/files\/\w+\/).+/, '$1...');
  2081. cMirrorcreatorComProcessed++;
  2082. if (cMirrorcreatorComProcessed == cMirrorcreatorComTotal) //start check when all mc links have been processed
  2083. {
  2084. if (Do_not_linkify_DL_links)
  2085. delinkifySnapshot(mcSnapshot);
  2086. startBulkCheck('container_link');
  2087. start('container_link');
  2088. }
  2089. } //end of function processMirrorcreatorFoundHosts
  2090.  
  2091. containers_processed = true;
  2092.  
  2093.  
  2094. function initRedirectors()
  2095. {
  2096. function addRedirector(linkRegex, xpathEx, redirType, innerLinkRegex)
  2097. {
  2098. var redirector = new Object();
  2099. redirector.linkRegex = linkRegex;
  2100. redirector.xpath = xpathEx; //xpath expression
  2101. redirector.cProcessed = 0; //processed links count
  2102. redirector.cTotal = 0; //total links count
  2103. redirector.type = redirType; //redirectorTypes enum
  2104. redirector.innerLinkRegex = innerLinkRegex; //innerLink, null if unused
  2105. redirectors.push(redirector);
  2106. }
  2107. if (GM_getValue("Check_safelinking_dot_net_links", false))
  2108. {
  2109. addRedirector(
  2110. 'safelinking\\.net\/d\/\\w+',
  2111. "//a[contains(@href,'safelinking.net/d/')]",
  2112. redirectorTypes.HTTP_302,
  2113. null);
  2114. }
  2115. if (GM_getValue("Check_linksafe_dot_me_links", false))
  2116. {
  2117. addRedirector(
  2118. 'linksafe\\.me\/d\/\\w+',
  2119. "//a[contains(@href,'linksafe.me/d/')]",
  2120. redirectorTypes.HTTP_302,
  2121. null);
  2122. }
  2123. if (GM_getValue("Check_linkto_dot_net_links", false))
  2124. {
  2125. addRedirector(
  2126. 'linkto\\.net\/\\?\\w+\\.\\d+',
  2127. "//a[contains(@href,'linkto.net/?')]",
  2128. redirectorTypes.INNER_LINK,
  2129. /<iframe id="iframe" name="iframe" src="(.+?)\s*" frameborder="0"/);
  2130. }
  2131. if (GM_getValue("Check_theloo_dot_katt_dot_it_links", false))
  2132. {
  2133. addRedirector(
  2134. '(?:the)?loo\\.katt\\.it\/\\w+',
  2135. "//a[contains(@href,'loo.katt.it/')]",
  2136. redirectorTypes.THELOO_KATT_IT,
  2137. /Proceed to URL - <a href="(.+?)">/);
  2138. }
  2139. if (GM_getValue("Check_madlink_dot_sk_links", false))
  2140. {
  2141. addRedirector(
  2142. 'madlink\\.sk\/\\w+',
  2143. "//a[contains(@href,'madlink.sk/')]",
  2144. redirectorTypes.INNER_LINK,
  2145. /name="url" value="(.+?)\s*"\/>/);
  2146. }
  2147. if (GM_getValue("Check_adf_dot_ly_links", false))
  2148. {
  2149. addRedirector(
  2150. '(?:adf\\.ly|[u9]\\.bb|[qj]\\.gs)\/\\w+',
  2151. "//a[contains(@href,'adf.ly/') (@href,'u.bb/') or contains(@href,'9.bb/') or contains(@href,'q.gs/') or contains(@href,'j.gs/')]",
  2152. redirectorTypes.ADF_LY,
  2153. null);
  2154. }
  2155. if (GM_getValue("Check_redi_dot_re_links", false))
  2156. {
  2157. addRedirector(
  2158. 'redi\\.re\/\\w+',
  2159. "//a[contains(@href,'redi.re/')]",
  2160. redirectorTypes.HTTP_302,
  2161. null);
  2162. }
  2163. if (GM_getValue("Check_bit_dot_ly_links", false))
  2164. {
  2165. addRedirector(
  2166. 'bit\\.ly\/\\w+',
  2167. "//a[contains(@href,'bit.ly/')]",
  2168. redirectorTypes.HTTP_302,
  2169. null);
  2170. }
  2171. }
  2172.  
  2173. }
  2174.  
  2175. var bulkHosts = new Array();
  2176. var bulkHostNames = new Array();
  2177. function initBulkCheck()
  2178. {
  2179. /////////////////////////////
  2180. // Inits filehost object
  2181. /////////////////////////////
  2182. // params :
  2183. // hostName -- [string] host name (multiple domains separated with coma)
  2184. // linkRegex -- [string] link regex
  2185. // xpath -- [string] xpath expression to detect the link objects with evaluate
  2186. // blockSize -- [integer] max. number of links sent in one request, 50 if null
  2187. // corrMatch -- [regex] link correction regex (match), applied prior to corrRepl
  2188. // corrReplWhat -- [regex] link correction regex (replace)
  2189. // corrReplWith -- [string]
  2190. // splitSeparator -- [string] POSTDATA links separator, "\r\n" if null
  2191. //
  2192. // apiUrl -- [string] web linkchecker or API URL
  2193. // postData -- [string] POSTDATA of xmlhttprequest
  2194. // resLinkRegex -- [regex]
  2195. // resLiveRegex -- [regex] matches substrings containing live links in the request response
  2196. // resDeadRegex -- [regex] matches substrings containing dead links in the request response
  2197. // resUnavaRegex -- [regex] matches substrings containing unava links in the request response
  2198. // func -- [function] bulkcheck handler, genBulkCheck if null
  2199. //
  2200. //////////////////////////////
  2201. function addHost(hostName, linkRegex, xpath, blockSize, corrMatch, corrReplWhat, corrReplWith, splitSeparator,
  2202. apiUrl, postData, resLinkRegex, resLiveRegex, resDeadRegex, resUnavaRegex, func)
  2203. {
  2204. var fileHost = new Object();
  2205.  
  2206. fileHost.linkRegex = linkRegex;
  2207. fileHost.linkRegexObject = new RegExp(linkRegex, "");
  2208. fileHost.xpath = xpath;
  2209. fileHost.cFound = 0; //found links counter
  2210. fileHost.links = new Array(); //found links
  2211. if (blockSize == null)
  2212. {
  2213. fileHost.blockSize = 50;
  2214. }
  2215. else
  2216. {
  2217. fileHost.blockSize = blockSize;
  2218. }
  2219. fileHost.corrMatch = corrMatch;
  2220. fileHost.corrReplWhat = corrReplWhat;
  2221. fileHost.corrReplWith = corrReplWith;
  2222. if (splitSeparator == null)
  2223. {
  2224. fileHost.splitSeparator = "\r\n";
  2225. }
  2226. else
  2227. {
  2228. fileHost.splitSeparator = splitSeparator;
  2229. }
  2230. fileHost.apiUrl = apiUrl;
  2231. fileHost.postData = postData;
  2232. fileHost.resLinkRegex = resLinkRegex;
  2233. fileHost.resLiveRegex = resLiveRegex;
  2234. fileHost.resDeadRegex = resDeadRegex;
  2235. fileHost.resUnavaRegex = resUnavaRegex;
  2236. if (func == null)
  2237. {
  2238. fileHost.func = genBulkCheck;
  2239. }
  2240. else
  2241. {
  2242. fileHost.func = func;
  2243. }
  2244. bulkHosts.push(fileHost);
  2245. var names = hostName.split(',');
  2246. var i = names.length;
  2247. while(i--)
  2248. {
  2249. bulkHostNames[names[i]] = fileHost;
  2250. }
  2251. }
  2252. var genType1 = [
  2253. "migahost.com", "rodfile.com", "downloadani.me",
  2254. "rarefile.net",
  2255. "filesabc.com",
  2256. "180upload.com", "verzend.be",
  2257. "movreel.com",
  2258. "4up.me",
  2259. "file4safe.com", "filemac.com", "4upfiles.com",
  2260. "idup.in", "novafile.com", "longfiles.com",
  2261. "bitupload.com",
  2262. "uploadbaz.com"
  2263. ];
  2264. var genType2 = [ "queenshare.com",
  2265. "hulkload.com",
  2266. "amonshare.com", "edoc.com",
  2267. ];
  2268. //xfilesharing 1.0
  2269. function addGenericType1()
  2270. {
  2271. var i = genType1.length;
  2272. while(i--)
  2273. {
  2274. if (GM_getValue("Check_" + genType1[i].replace(/\./g, "_dot_").replace(/-/g, "_dash_") + "_links", false))
  2275. {
  2276. var regexSafe = genType1[i].replace(/\./g, "\\.").replace(/-/g, "\\-");
  2277. addHost(
  2278. genType1[i].match(/[\w-]+/)[0], //hostname
  2279. regexSafe + "\/\\w+", //linkregex
  2280. "//a[contains(@href,'" + genType1[i] + "/')]", //xpath
  2281. null, //blocksize
  2282. new RegExp("(http:\/\/(?:|www\\.)" + regexSafe + "\/\\w+)",""),//, //corrmatch
  2283. null, //corrreplwhat
  2284. null, //corrreplwith
  2285. null, //separator
  2286. "http://" + genType1[i] + "/checkfiles.html", //api url
  2287. "op=checkfiles&process=Check+URLs&list=", //postdata
  2288. new RegExp("(" + regexSafe + "\/\\w+)",""), //linkregex
  2289. new RegExp("green'>http:\/\/(?:|www\.)" + regexSafe + "\/\\w+","g"), //liveregex
  2290. new RegExp("red'>http:\/\/(?:|www\.)" + regexSafe + "\/\\w+","g"), //deadregex
  2291. new RegExp("orange'>http:\/\/(?:|www\.)" + regexSafe + "\/\\w+","g"), //unavaregex
  2292. null //function delegate
  2293. )
  2294. }
  2295. }
  2296. }
  2297. //xfilesharing 2.0
  2298. function addGenericType2()
  2299. {
  2300. var i = genType2.length;
  2301. while(i--)
  2302. {
  2303. if (GM_getValue("Check_" + genType2[i].replace(/\./g, "_dot_").replace(/-/g, "_dash_") + "_links", false))
  2304. {
  2305. var regexSafe = genType2[i].replace(/\./g, "\\.").replace(/-/g, "\\-");
  2306. addHost(
  2307. genType2[i].match(/[\w-]+/)[0], //hostname
  2308. regexSafe + "\/\\w+", //linkregex
  2309. "//a[contains(@href,'" + genType2[i] + "/')]", //xpath
  2310. null, //blocksize
  2311. new RegExp("(http:\/\/(?:|www\\.)" + regexSafe + "\/\\w+)",""),//, //corrmatch
  2312. null, //corrreplwhat
  2313. null, //corrreplwith
  2314. null, //separator
  2315. "http://www." + genType2[i] + "/?op=checkfiles", //api url
  2316. "op=checkfiles&process=Check+URLs&list=", //postdata
  2317. new RegExp("(" + regexSafe + "\/\\w+)",""), //linkregex
  2318. new RegExp(regexSafe + "\/\\w+.*?<\/td>\\s*<td style=\"color:green;\">","g"), //liveregex
  2319. new RegExp(regexSafe + "\/\\w+.*?<\/td>\\s*<td style=\"color:red;\">","g"), //deadregex
  2320. new RegExp(regexSafe + "\/\\w+.*?<\/td>\\s*<td style=\"color:orange;\">","g"), //unavaregex
  2321. null //function delegate
  2322. )
  2323. }
  2324. }
  2325. }
  2326. // TEMPLATE
  2327. // if (GM_getValue("Check__dot_com_links", false))
  2328. // {
  2329. // addHost(
  2330. // "", //hostname
  2331. // "", //linkregex
  2332. // "//a[contains(@href,'.com/')]", //xpath
  2333. // null, //blocksize
  2334. // null, //corrmatch
  2335. // null, //corrreplwhat
  2336. // null, //corrreplwith
  2337. // null, //separator
  2338. // "", //api url
  2339. // "", //postdata
  2340. // /()/, //linkregex
  2341. // //liveregex
  2342. // //deadregex
  2343. // //unavaregex
  2344. // null //function delegate
  2345. // )
  2346. // }
  2347. addGenericType1();
  2348. addGenericType2();
  2349.  
  2350. if (GM_getValue("Check_myvdrive_dot_com_links", false))
  2351. {
  2352. addHost(
  2353. "myvdrive,fileserving", //hostname
  2354. "(?:fileserving|myvdrive)\\.com\/files\/[\\w-]+", //linkregex
  2355. "//a[contains(@href,'fileserving.com/files') or contains(@href,'myvdrive.com/files')]", //xpath
  2356. null, //blocksize
  2357. null, //corrmatch
  2358. null, //corrreplwhat
  2359. null, //corrreplwith
  2360. null, //separator
  2361. "http://www.myvdrive.com/Public/linkchecker#", //api url
  2362. "links=", //postdata
  2363. /(?:fileserving|myvdrive)\.com\/(files\/\w+)/, //linkregex
  2364. /icon_file_check_valid"><\/span>\s*http:\/\/www\.(?:fileserving|myvdrive)\.com\/files\/[\w-]+/g, //liveregex
  2365. /icon_file_check_(?:removed|notvalid)"><\/span>\s*http:\/\/www\.(?:fileserving|myvdrive)\.com\/files\/[\w-]+/g, //deadregex
  2366. null, //unavaregex
  2367. null //function delegate
  2368. )
  2369. }
  2370. if (GM_getValue("Check_hackerbox_dot_org_links", false))
  2371. {
  2372. addHost(
  2373. "hackerbox", //hostname
  2374. "host\\.hackerbox\\.org\/\\w+", //linkregex
  2375. "//a[contains(@href,'host.hackerbox.org/')]", //xpath
  2376. null, //blocksize
  2377. /(http:\/\/host\.hackerbox\.org\/\w+)/, //corrmatch
  2378. null, //corrreplwhat
  2379. null, //corrreplwith
  2380. null, //separator
  2381. "http://host.hackerbox.org/checkfiles.html", //api url
  2382. "op=checkfiles&process=Check+URLs&list=", //postdata
  2383. /(host\.hackerbox\.org\/\w+)/, //linkregex
  2384. /green'>http:\/\/host\.hackerbox\.org\/\w+/g, //liveregex
  2385. /red'>http:\/\/host\.hackerbox\.org\/\w+/g, //deadregex
  2386. /orange'>http:\/\/host\.hackerbox\.org\/\w+/g, //unavaregex
  2387. null //function delegate
  2388. )
  2389. }
  2390. if (GM_getValue("Check_hellshare_dot_com_links", false))
  2391. {
  2392. addHost(
  2393. "hellshare", //hostname
  2394. "(?:|download\\.(?:cz\\.|en\\.|sk\\.|)|www\\.)hellshare\\.(?:com|sk|cz|pl|hu|COM|SK|CZ|PL|HU)\/[\\w-\\.]+\/(?:[\\w-\\.]+\/|)\\d{5,}", //linkregex
  2395. "//a[contains(@href,'hellshare.')]", //xpath
  2396. 48, //blocksize
  2397. null, //corrmatch
  2398. null, //corrreplwhat
  2399. null, //corrreplwith
  2400. null, //separator
  2401. null, //api url
  2402. null, //postdata
  2403. null, //linkregex
  2404. null, //liveregex
  2405. null, //deadregex
  2406. null, //unavaregex
  2407. hellshareBulkCheck //function delegate
  2408. )
  2409. }
  2410. if (GM_getValue("Check_ncrypt_dot_in_links", false))
  2411. {
  2412. addHost(
  2413. "ncrypt", //hostname
  2414. "ncrypt\\.in\/folder\\-\\w+", //linkregex
  2415. "//a[contains(@href,'ncrypt.in/folder')]", //xpath
  2416. 100000, //blocksize
  2417. null, //corrmatch
  2418. null, //corrreplwhat
  2419. null, //corrreplwith
  2420. null, //separator
  2421. null,
  2422. null,
  2423. null,
  2424. null,
  2425. null,
  2426. null,
  2427. ncryptBulkCheck //function delegate
  2428. )
  2429. }
  2430. if (GM_getValue("Check_geupload_dot_com_links", false))
  2431. {
  2432. addHost(
  2433. "geupload,lenfile", //hostname
  2434. "(?:geupload\\.com|lenfile\\.com)\/\\w+", //linkregex
  2435. "//a[contains(@href,'geupload.com/') or contains(@href,'lenfile.com/')]", //xpath
  2436. null, //blocksize
  2437. null, //corrmatch
  2438. null, //corrreplwhat
  2439. null, //corrreplwith
  2440. "\n", //separator
  2441. 'http://geupload.com/?op=checkfiles',
  2442. 'op=checkfiles&process=Check+URLs&list=',
  2443. />http:\/\/(?:geupload|lenfile)\.com\/(\w+)/,
  2444. />http:\/\/(?:geupload|lenfile)\.com\/\w+(?:[^>]+>)<td style=\"color\:green/g,
  2445. />http:\/\/(?:geupload|lenfile)\.com\/\w+(?:[^>]+>)<td style=\"color\:red/g,
  2446. null,
  2447. null
  2448. )
  2449. }
  2450. if (GM_getValue("Check_uploadrocket_dot_net_links", false))
  2451. {
  2452. addHost(
  2453. "uploadrocket", //hostname
  2454. "(?:uploadrocket\\.net)\/\\w+", //linkregex
  2455. "//a[contains(@href,'uploadrocket.net/')]", //xpath
  2456. null, //blocksize
  2457. null, //corrmatch
  2458. null, //corrreplwhat
  2459. null, //corrreplwith
  2460. "\n", //separator
  2461. 'http://uploadrocket.net/?op=checkfiles',
  2462. 'op=checkfiles&process=Check+URLs&list=',
  2463. /uploadrocket.net\/(\w+)/,
  2464. />http:\/\/uploadrocket.net\/\w+(?:[^>]+>)<td style="color:green/g,
  2465. />http:\/\/uploadrocket.net\/\w+(?:[^>]+>)<td style="color:red/g,
  2466. null,
  2467. null //function delegate
  2468. )
  2469. }
  2470. if (GM_getValue("Check_k2s_dot_cc_links", false))
  2471. {
  2472. addHost(
  2473. "k2s,keep2s,keep2share",
  2474. "(?:(?:k2s\\.cc)|(?:keep2s\\.cc)|(?:keep2share\\.(?:cc|com)))\/file\/\\w+",
  2475. "//a[contains(@href,'k2s.cc/file/') or contains(@href,'keep2s.cc/file/') or contains(@href,'keep2share.cc/file/') or contains(@href,'keep2share.com/file/')]",
  2476. 100000, //blocksize
  2477. null, //corrmatch
  2478. null, //corrreplwhat
  2479. null, //corrreplwith
  2480. null, //separator
  2481. null,
  2482. null,
  2483. null,
  2484. null,
  2485. null,
  2486. null,
  2487. k2sBulkCheck //function delegate
  2488. )
  2489. }
  2490. if (GM_getValue("Check_fboom_dot_me_links", false))
  2491. {
  2492. addHost(
  2493. "fboom,fileboom",
  2494. "(?:(?:fboom\\.me)|(?:fileboom\\.me))\/file\/\\w+",
  2495. "//a[contains(@href,'fboom.me/file/') or contains(@href,'fileboom.me/file/')]",
  2496. 100000, //blocksize
  2497. null, //corrmatch
  2498. null, //corrreplwhat
  2499. null, //corrreplwith
  2500. null, //separator
  2501. null,
  2502. null,
  2503. null,
  2504. null,
  2505. null,
  2506. null,
  2507. fboomBulkCheck //function delegate
  2508. )
  2509. }
  2510. if (GM_getValue("Check_depositfiles_dot_com_links", false))
  2511. {
  2512. addHost(
  2513. "depositfiles,dfiles",
  2514. "(?:(?:depositfiles\\.(?:com|org|lt))|(?:dfiles\\.(?:ru|eu)))\/files\/|en/files\/\\w+",
  2515. "//a[contains(@href,'depositfiles.lt/files/') or contains(@href,'depositfiles.com/files/') or contains(@href,'depositfiles.com/en/files/') or contains(@href,'depositfiles.org/files/') or contains(@href,'dfiles.ru/files/') or contains(@href,'dfiles.eu/files/')]",
  2516. 100000, //blocksize
  2517. null, //corrmatch
  2518. null, //corrreplwhat
  2519. null, //corrreplwith
  2520. null, //separator
  2521. null,
  2522. null,
  2523. null,
  2524. null,
  2525. null,
  2526. null,
  2527. depositfilesBulkCheck //function delegate
  2528. )
  2529. }
  2530. if (GM_getValue("Check_filepost_dot_com_links", false))
  2531. {
  2532. addHost(
  2533. "filepost,fp", //hostname
  2534. "(?:filepost\\.com\/files|fp\\.io)\/\\w+", //linkregex
  2535. "//a[contains(@href,'filepost.com/files/') or contains(@href,'fp.io/')]", //xpath
  2536. null, //blocksize
  2537. null, //corrmatch
  2538. null, //corrreplwhat
  2539. null, //corrreplwith
  2540. "\n", //separator
  2541. 'http://filepost.com/files/checker/?JsHttpRequest=0-xml',
  2542. 'urls=',
  2543. /\\\/files\\\/(\w+)/,
  2544. />http:\\\/\\\/filepost\.com\\\/files\\\/\w+(?:[^>]+>){5}(?:\\n|\\t)+<span class=\\"v\\"/g,
  2545. />http:\\\/\\\/filepost\.com\\\/files\\\/\w+(?:[^>]+>){5}(?:\\n|\\t)+<span class=\\"x\\"/g,
  2546. null,
  2547. null //function delegate
  2548. )
  2549. }
  2550. if (GM_getValue("Check_filesflash_dot_com_links", false))
  2551. {
  2552. addHost(
  2553. "filesflash", //hostname
  2554. "filesflash\\.com\/\\w+", //linkregex
  2555. "//a[contains(@href,'filesflash.com')]", //xpath
  2556. null, //blocksize
  2557. null, //corrmatch
  2558. /http:\/\//, //corrreplwhat
  2559. '', //corrreplwith
  2560. null, //separator
  2561. 'http://filesflash.com/checklinks.php',
  2562. 'submit=Go&links=',
  2563. /filesflash\.com\/(\w+)/,
  2564. /<td>filesflash\.com\/\w+<\/td>\s*<td>Available/g,
  2565. /<td>filesflash\.com\/\w+<\/td>\s*<td>(?:Invalid|Deleted|Expired|Banned)?<\/td>/g,
  2566. null,
  2567. null //function delegate
  2568. )
  2569. }
  2570. if (GM_getValue("Check_jumbofiles_dot_com_links", false))
  2571. {
  2572. addHost(
  2573. "jumbofiles", //hostname
  2574. "jumbofiles\\.com\/\\w+", //linkregex
  2575. "//a[contains(@href,'jumbofiles.com/')]", //xpath
  2576. null, //blocksize
  2577. /(http:\/\/(?:|www\.)jumbofiles\.com\/\w+)/, //corrmatch
  2578. null, //corrreplwhat
  2579. null, //corrreplwith
  2580. null, //separator
  2581. "http://jumbofiles.com/checkfiles.html", //api url
  2582. "op=checkfiles&process=Check+URLs&list=", //postdata
  2583. /(jumbofiles\.com\/\w+)/, //linkregex
  2584. /blue'>http:\/\/(?:|www\.)jumbofiles\.com\/\w+/g, //liveregex
  2585. /red'>http:\/\/(?:|www\.)jumbofiles\.com\/\w+/g, //deadregex
  2586. /orange'>http:\/\/(?:|www\.)jumbofiles\.com\/\w+/g, //unavaregex
  2587. null //function delegate
  2588. )
  2589. }
  2590. if (GM_getValue("Check_edisk_dot_cz_links", false))
  2591. {
  2592. addHost(
  2593. "edisk", //hostname
  2594. "(?:(?:muj|data)\\d*\\.|)edisk\\.(?:cz|sk|eu)\/(?:|(?:cz|sk|en|pl)\/)", //linkregex
  2595. "//a[contains(@href,'edisk.')]", //xpath
  2596. null, //blocksize
  2597. null, //corrmatch
  2598. /edisk\.\w{2}\/(?:|\w{2}\/)stahni/, //corrreplwhat
  2599. 'edisk.cz/stahni', //corrreplwith
  2600. null, //separator
  2601. 'http://www.edisk.cz/zkontrolovat-odkazy',
  2602. 'submitBtn=Zkontrolovat&checkFiles=',
  2603. /((?:download|stahn(?:i|out-soubor))\/\d+)/,
  2604. /"ano"\/>\s*<\/td>\s*<td>\s*http:\/\/.+/g,
  2605. /"ne"\/>\s*<\/td>\s*<td>\s*http:\/\/.+/g,
  2606. null,
  2607. null //function delegate
  2608. )
  2609. }
  2610. if (GM_getValue("Check_bezvadata_dot_cz_links", false))
  2611. {
  2612. GM_xmlhttpRequest( //age check skip
  2613. {
  2614. method: 'POST',
  2615. url: 'http://bezvadata.cz/vyhledavani/souhlas-zavadny-obsah',
  2616. headers: {
  2617. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  2618. 'Content-type': 'application/x-www-form-urlencoded',
  2619. 'Referer': ""
  2620. }
  2621. });
  2622. addHost(
  2623. "bezvadata", //hostname
  2624. "(?:beta\\.|)bezvadata\.cz\/stahnout\/\\d+\\w+", //linkregex
  2625. "//a[contains(@href,'bezvadata.cz')]", //xpath
  2626. null, //blocksize
  2627. null, //corrmatch
  2628. null, //corrreplwhat
  2629. null, //corrreplwith
  2630. null, //separator
  2631. 'http://bezvadata.cz/nastroje/kontrola-odkazu?do=kontrolaOdkazuForm-submit',
  2632. 'zkontrolovat=Zkontrolovat&odkazy=',
  2633. /(bezvadata\.cz\/stahnout\/\d+)/,
  2634. /bezvadata\.cz\/stahnout\/.+?<\/td>\s*<td style="background-color: #d9ffb2/g,
  2635. /bezvadata\.cz\/stahnout\/.+?<\/td>\s*<td style="background-color: #ffb2b2/g,
  2636. null,
  2637. null //function delegate
  2638. )
  2639. }
  2640. if (GM_getValue("Check_linkcrypt_dot_ws_links", false))
  2641. {
  2642. addHost(
  2643. "linkcrypt", //hostname
  2644. "linkcrypt\\.ws\/dir\/\\w+", //linkregex
  2645. "//a[contains(@href,'linkcrypt.ws/dir')]", //xpath
  2646. 100000, //blocksize
  2647. null, //corrmatch
  2648. null, //corrreplwhat
  2649. null, //corrreplwith
  2650. null, //separator
  2651. null,
  2652. null,
  2653. null,
  2654. null,
  2655. null,
  2656. null,
  2657. linkcryptBulkCheck //function delegate
  2658. )
  2659. }
  2660. if (GM_getValue("Check_linksave_dot_in_links", false))
  2661. {
  2662. addHost(
  2663. "linksave", //hostname
  2664. "linksave\\.in\/\\w+", //linkregex
  2665. "//a[contains(@href,'linksave.in')]", //xpath
  2666. 100000, //blocksize
  2667. null, //corrmatch
  2668. null, //corrreplwhat
  2669. null, //corrreplwith
  2670. null, //separator
  2671. null,
  2672. null,
  2673. null,
  2674. null,
  2675. null,
  2676. null,
  2677. linksaveBulkCheck //function delegate
  2678. )
  2679. }
  2680. if (GM_getValue("Check_videobb_dot_com_links", false))
  2681. {
  2682. addHost(
  2683. "videobb", //hostname
  2684. "videobb\\.com\/(?:video\/|watch_video\\.php\\?v=)\\w+", //linkregex
  2685. "//a[contains(@href,'videobb.com')]", //xpath
  2686. null, //blocksize
  2687. null, //corrmatch
  2688. /watch_video\.php\?v=/, //corrreplwhat
  2689. 'video/', //corrreplwith
  2690. null, //separator
  2691. 'http://www.videobb.com/link_checker.php',
  2692. 'links=',
  2693. /videobb\.com\/video\/(\w+)/,
  2694. /<td>http:\/\/(?:www\.|)videobb.com\/video\/\w+<\/td>\s+<td>.+?<\/td>\s+<td>\d+:\d+<\/td>\s+<td>Available/g,
  2695. /<td>http:\/\/(?:www\.|)videobb.com\/video\/\w+<\/td>\s+<td><\/td>\s+<td>N\/A<\/td>\s+<td>Not Available/g,
  2696. null,
  2697. null //function delegate
  2698. )
  2699. }
  2700. if (GM_getValue("Check_cramit_dot_in_links", false))
  2701. {
  2702. addHost(
  2703. "cramit,cramitin", //hostname
  2704. "cramit(?:\\.in|in\\.net)\/", //linkregex
  2705. "//a[contains(@href,'cramitin.net') or contains(@href,'cramit.in')]", //xpath
  2706. null, //blocksize
  2707. null, //corrmatch
  2708. null, //corrreplwhat
  2709. null, //corrreplwith
  2710. null, //separator
  2711. 'http://cramit.in/checkfiles.html',
  2712. 'op=checkfiles&process=CHECK+URL%27S&list=',
  2713. /(cramit(?:\.in|in\.net)\/\w+)/,
  2714. /green>http:\/\/(?:www\.|)cramit(?:\.in|in\.net)\/\w+/g,
  2715. /red'>http:\/\/(?:www\.|)cramit(?:\.in|in\.net)\/\w+/g,
  2716. /orange'>http:\/\/(?:www\.|)cramit(?:\.in|in\.net)\/\w+/g,
  2717. null //function delegate
  2718. )
  2719. }
  2720. /* if (GM_getValue("Check_turbobit_dot_net_links", false))
  2721. {
  2722. addHost(
  2723. "turbobit", //hostname
  2724. "turbobit\\.(?:net|pl)\/(?:\\w+\/|).+?\\.html", //linkregex
  2725. "//a[contains(@href,'turbobit.')]", //xpath
  2726. null, //blocksize
  2727. /(turbobit\.(?:net|pl)\/(?:\w+\/|).+?\.html)/, //corrmatch
  2728. null, //corrreplwhat
  2729. null, //corrreplwith
  2730. "\n", //separator
  2731. 'http://turbobit.net/linkchecker/csv',
  2732. 'links_to_check=',
  2733. /(turbobit\.(?:net|pl)\/\w+)/,
  2734. /turbobit\.(?:net|pl)\/.*?, 1/g,
  2735. /turbobit\.(?:net|pl)\/.*?, 0/g,
  2736. null,
  2737. null //function delegate
  2738. )
  2739. } */
  2740. if (GM_getValue("Check_filerio_dot_com_links", false))
  2741. {
  2742. addHost(
  2743. "filekeen,filerio", //hostname
  2744. //"file(?:keen|rio)\\.(?:com|in)\/\\w+\/.", //linkregex
  2745. "file(?:keen|rio)\\.(?:com|in)\/\\w+", //linkregex
  2746. "//a[contains(@href,'filekeen.com') or contains(@href,'filerio.')]", //xpath
  2747. null, //blocksize
  2748. null, //corrmatch
  2749. null, //corrreplwhat
  2750. null, //corrreplwith
  2751. null, //separator
  2752. 'http://filerio.in/checkfiles.html',
  2753. 'op=checkfiles&process=Check+URLs&list=',
  2754. /(file(?:keen|rio)\.(?:com|in)\/\w+)/,
  2755. /green'>http:\/\/(?:www\.|)file(?:keen|rio)\.(?:com|in)\/\w+/g,
  2756. /red'>http:\/\/(?:www\.|)file(?:keen|rio)\.(?:com|in)\/\w+/g,
  2757. /orange'>http:\/\/(?:www\.|)file(?:keen|rio)\.(?:com|in)\/\w+/g,
  2758. null //function delegate
  2759. )
  2760. }
  2761. if (GM_getValue("Check_share_dash_online_dot_biz_links", false))
  2762. {
  2763. addHost(
  2764. "share-online,egoshare", //hostname
  2765. "(?:share-online\\.biz|egoshare\\.com)\/(?:dl\/|download\\.php\\?id=)", //linkregex
  2766. "//a[contains(@href,'share-online.biz') or contains(@href,'egoshare.com')]", //xpath
  2767. null, //blocksize
  2768. /http:\/\/(?:www\.)?(?:share-online\.biz|egoshare\.com)\/d(?:l\/|ownload\.php\?id=)(\w+)/, //corrmatch
  2769. null, //corrreplwhat
  2770. null, //corrreplwith
  2771. "\n", //separator
  2772. 'http://api.share-online.biz/linkcheck.php',
  2773. 'links=',
  2774. /(\w+);(?:OK|NOTFOUND|DELETED)/,
  2775. /\w+;OK/g,
  2776. /\w+;(?:NOTFOUND|DELETED)/g,
  2777. null,
  2778. null //function delegate
  2779. )
  2780. }
  2781. if (GM_getValue("Check_quickshare_dot_cz_links", false))
  2782. {
  2783. addHost(
  2784. "quickshare", //hostname
  2785. "quickshare\\.cz\/stahnout-soubor\/\\d+", //linkregex
  2786. "//a[contains(@href,'quickshare.cz')]", //xpath
  2787. null, //blocksize
  2788. null, //corrmatch
  2789. null, //corrreplwhat
  2790. null, //corrreplwith
  2791. null, //separator
  2792. 'http://www.quickshare.cz/nastroje/link-checker',
  2793. 'linky=',
  2794. /quickshare\.cz\/stahnout-soubor\/(\d+(?::\w+)?)/,
  2795. /quickshare\.cz\/stahnout-soubor\/\d+(?::[\w\-.+$!*\/()\[\]\',~%?:@#&=\\]+)?\s*<\/a><\/td><td><img src="\/img\/ok\.gif/g,
  2796. /quickshare\.cz\/stahnout-soubor\/\d+(?::[\w\-.+$!*\/()\[\]\',~%?:@#&=\\]+)?\s*<\/td><td><img src="\/img\/nenalezeno\.gif/g,
  2797. null,
  2798. null //function delegate
  2799. )
  2800. }
  2801. if (GM_getValue("Check_netload_dot_in_links", false))
  2802. {
  2803. addHost(
  2804. "netload", //hostname
  2805. "netload\\.in\/datei\\w{10}", //linkregex
  2806. "//a[contains(@href,'netload.in')]", //xpath
  2807. null, //blocksize
  2808. null, //corrmatch
  2809. null, //corrreplwhat
  2810. null, //corrreplwith
  2811. "\n", //separator
  2812. "http://api.netload.in/index.php?id=2", //api url
  2813. "send=Absenden&links=", //postdata
  2814. /(\w+);/, //linkregex
  2815. /\w{10,};.+?;.+?;online/g, //liveregex
  2816. /\w{10,};.+?;.+?;offline/g, //deadregex
  2817. null, //unavaregex
  2818. //netloadBulkCheck //function delegate //disabled on probation since 1.2.4.5
  2819. null //function delegate
  2820. )
  2821. }
  2822. if (GM_getValue("Check_oboom_dot_com_links", false))
  2823. {
  2824. addHost(
  2825. "oboom", //hostname
  2826. "oboom\\.com\/#?\\w{8}", //linkregex
  2827. "//a[contains(@href,'oboom.com/')]", //xpath
  2828. null, //blocksize
  2829. /oboom\.com\/#?(\w{8})/, //corrmatch
  2830. null, //corrreplwhat
  2831. null, //corrreplwith
  2832. null, //separator
  2833. null,
  2834. null,
  2835. null,
  2836. null, //liveregex
  2837. null, //deadregex
  2838. null,
  2839. oboomBulk //function delegate
  2840. )
  2841. }
  2842. if (GM_getValue("Check_mega_dot_nz_links", false))
  2843. {
  2844. addHost(
  2845. "mega",
  2846. "mega(?:\\.co)?\\.nz\/#!\\w+",
  2847. "//a[contains(@href,'mega.co.nz/') or contains(@href,'mega.nz/')]",
  2848. 100000, //blocksize
  2849. null, //corrmatch
  2850. null, //corrreplwhat
  2851. null, //corrreplwith
  2852. null, //separator
  2853. null,
  2854. null,
  2855. null,
  2856. null,
  2857. null,
  2858. null,
  2859. megaBulkCheck //function delegate
  2860. )
  2861. }
  2862.  
  2863. //the same as GenType2, except api url is 'https://' instead of 'http://www.' and corrmatch is not??? needed
  2864.  
  2865. if (GM_getValue("Check_extabit_dot_com_links", false))
  2866. {
  2867. addHost(
  2868. "extabit", //hostname
  2869. "extabit\\.com\/file\/\\w+", //linkregex
  2870. "//a[contains(@href,'extabit.com')]", //xpath
  2871. null, //blocksize
  2872. null, //corrmatch
  2873. null, //corrreplwhat
  2874. null, //corrreplwith
  2875. "\n", //separator
  2876. "http://extabit.com/linkchecker.jsp", //api url
  2877. "url=", //postdata
  2878. /extabit\.com\/(file\/\w+)/, //linkregex
  2879. /extabit\.com\/file\/\w+\/[^<]+<\/a><\/td>\s*<td class="status"><span class="status_green">/g, //liveregex
  2880. /extabit\.com\/file\/\w+\/[^<]+<\/a><\/td>\s*<td class="status"><span class="status_red">/g, //deadregex
  2881. /extabit\.com\/file\/\w+\/[^<]+<\/a><\/td>\s*<td class="status"><span class="status_yellow">/g, //unavaregex
  2882. extabitBulkCheck //function delegate
  2883. )
  2884. }
  2885. if (GM_getValue("Check_junocloud_dot_me_links", false))
  2886. {
  2887. addHost(
  2888. "junocloud", //hostname
  2889. "junocloud\\.me\/\\w+", //linkregex
  2890. "//a[contains(@href,'junocloud.me')]", //xpath
  2891. null, //blocksize
  2892. null, //corrmatch
  2893. null, //corrreplwhat
  2894. null, //corrreplwith
  2895. "\n", //separator
  2896. "http://junocloud.me/checkfiles.html", //api url
  2897. "op=checkfiles&process=Check+URLs&list=", //postdata
  2898. /(junocloud\.me\/\w+)/, //linkregex
  2899. /<a href="http:\/\/junocloud\.me\/\w+[^<]+<\/a>\s*<span style="color: green/g, //liveregex
  2900. /<a href="http:\/\/junocloud\.me\/\w+[^<]+<\/a>\s*<span style="color: red/g, //deadregex
  2901. null, //unavaregex
  2902. null //function delegate
  2903. )
  2904. }
  2905. if (GM_getValue("Check_webshare_dot_cz_links", false))
  2906. {
  2907. addHost(
  2908. "webshare", //hostname
  2909. "webshare\.cz\/(?:(?:#/)?file/\\w+|\\w+-.*)", //linkregex
  2910. "//a[contains(@href,'webshare.cz')]", //xpath
  2911. 100000, //blocksize
  2912. null, //corrmatch
  2913. null, //corrreplwhat
  2914. null, //corrreplwith
  2915. null, //separator
  2916. null, //api url
  2917. null, //postdata
  2918. null, //linkregex
  2919. null, //liveregex
  2920. null, //deadregex
  2921. null, //unavaregex
  2922. webshareBulkCheck //function delegate
  2923. )
  2924. }
  2925. /////////////////////////////
  2926. // Common function delegate to send links to get checked by host linkchecker
  2927. /////////////////////////////
  2928. // If you define a new delegate, you may use following properties
  2929. // this.links [array] array of strings (link blocks). The links in each block separated with host.splitSeparator.
  2930. // this.apiUrl [string] API or web linkchecker URL
  2931. // this.postData [string] POSTDATA for POST request
  2932. // this.resLiveRegex [regex] matches live substrings in the request response
  2933. // this.resDeadRegex [regex] matches dead substrings in the request response
  2934. // this.resUnavaRegex [regex] matches unava substrings in the request response (the regex is often null!)
  2935. //
  2936. // this.resLinkRegex [regex] matches links further passed to DisplayTheCheckedLinks
  2937. //
  2938. // See the code below for standard bulkcheck handling reference.
  2939. //////////////////////////////
  2940. function genBulkCheck()
  2941. {
  2942. var blockIdx = this.links.length;
  2943. while (blockIdx--)
  2944. {
  2945. postRequest(this.apiUrl, this.postData, this.links[blockIdx],
  2946. this.resLinkRegex, this.resLiveRegex, this.resDeadRegex, this.resUnavaRegex);
  2947. }
  2948. function postRequest(api, postData, links, linkRegex, liveRegex, deadRegex, unavaRegex)
  2949. {
  2950. GM_xmlhttpRequest(
  2951. {
  2952. method: 'POST',
  2953. url: api,
  2954. headers: {
  2955. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  2956. 'Content-type': 'application/x-www-form-urlencoded',
  2957. 'Referer': api,
  2958. 'X-Requested-With': 'XMLHttpRequest'
  2959. },
  2960. data: postData + encodeURIComponent(links),
  2961. onload: function (result)
  2962. {
  2963. var res = result.responseText;
  2964. // GM_log(res);
  2965. var i;
  2966.  
  2967. var livelinks = res.match(liveRegex);
  2968. var deadlinks = res.match(deadRegex);
  2969. // GM_log(livelinks);
  2970. // GM_log(deadlinks);
  2971. if (livelinks != null)
  2972. {
  2973. i = livelinks.length - 1;
  2974. do
  2975. {
  2976. livelinks[i] = livelinks[i].match(linkRegex)[1];
  2977. }
  2978. while (i--);
  2979. DisplayTheCheckedLinks(livelinks, 'alive_link');
  2980. }
  2981.  
  2982. if (deadlinks != null)
  2983. {
  2984. i = deadlinks.length - 1;
  2985. do
  2986. {
  2987. deadlinks[i] = deadlinks[i].match(linkRegex)[1];
  2988. }
  2989. while (i--);
  2990. DisplayTheCheckedLinks(deadlinks, 'adead_link');
  2991. }
  2992.  
  2993. if (unavaRegex != null)
  2994. {
  2995. var unavalinks = res.match(unavaRegex);
  2996. if (unavalinks)
  2997. {
  2998. i = unavalinks.length - 1;
  2999. do
  3000. {
  3001. unavalinks[i] = unavalinks[i].match(linkRegex)[1];
  3002. }
  3003. while (i--);
  3004. DisplayTheCheckedLinks(unavalinks, 'unava_link');
  3005. }
  3006. }
  3007. }
  3008. });
  3009. }
  3010. }
  3011. //specialized bulkchecking handlers follow
  3012. function webshareBulkCheck()
  3013. {
  3014. var arr = this.links[0].split("\r\n");
  3015. var i = arr.length;
  3016. while(i--)
  3017. {
  3018. postRequest(arr[i]);
  3019. }
  3020. //function postRequest(api, postData, links, linkRegex, liveRegex, deadRegex, unavaRegex)
  3021. function postRequest(wsLink)
  3022. {
  3023. var id = wsLink.match(/webshare\.cz\/(?:(?:#\/)?file\/)?(\w+)/)[1];
  3024. GM_xmlhttpRequest(
  3025. {
  3026. method: 'POST',
  3027. url: "http://webshare.cz/api/file_info/",
  3028. headers: {
  3029. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  3030. 'Content-type': 'application/x-www-form-urlencoded',
  3031. 'Referer': "",
  3032. },
  3033. data: "wst=&ident=" + id,
  3034. onload: function (result)
  3035. {
  3036. var res = result.responseText;
  3037. if (res.match(/<name>.+?<\/name>/))
  3038. {
  3039. DisplayTheCheckedLinks([id], 'alive_link');
  3040. }
  3041. else
  3042. {
  3043. DisplayTheCheckedLinks([id], 'adead_link');
  3044. }
  3045. }
  3046. });
  3047. }
  3048. }
  3049. //like genBulkCheck, but extabit linkchecker only works when logged in. If not logged in, non-bulk checking has to be used.
  3050. //extabit also doesn't like requests in fast succession, so some delays are added.
  3051. function extabitBulkCheck()
  3052. {
  3053. var timeoutDelay = 0;
  3054. var blockIdx = this.links.length;
  3055. while (blockIdx--)
  3056. {
  3057. postRequest(this.apiUrl, this.postData, this.links[blockIdx],
  3058. this.resLinkRegex, this.resLiveRegex, this.resDeadRegex, this.resUnavaRegex);
  3059. }
  3060. function postRequest(api, postData, links, linkRegex, liveRegex, deadRegex, unavaRegex)
  3061. {
  3062. GM_xmlhttpRequest(
  3063. {
  3064. method: 'POST',
  3065. url: api,
  3066. headers: {
  3067. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  3068. 'Content-type': 'application/x-www-form-urlencoded',
  3069. 'Referer': api,
  3070. 'X-Requested-With': 'XMLHttpRequest'
  3071. },
  3072. data: postData + encodeURIComponent(links),
  3073. onload: function (result)
  3074. {
  3075. var res = result.responseText;
  3076. if (/id="registration_header"/.test(res)) //not logged in, have to use non-bulk
  3077. {
  3078. function geturlfunc(link, tryID) //basically the geturl function with some changes (compacted, displaythecheckedlinkS, multiple tries)
  3079. {
  3080. //GM_log(tryID + ': ' + link);
  3081. GM_xmlhttpRequest(
  3082. {
  3083. method: 'GET',
  3084. url: link,
  3085. 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': ""},
  3086. onload: function(result2)
  3087. {
  3088. var res2 = result2.responseText;
  3089. var res2Status = result.status;
  3090. if (/download-file-btn/.test(res2)) {DisplayTheCheckedLinks([link], 'alive_link'); return;}
  3091. if (/Search mirrors|id="mirrb"/.test(res2) || res2Status==404) {DisplayTheCheckedLinks([link], 'adead_link'); return;}
  3092. if (/currently unavailable|temporarily unavailable|disponible en estos momentos|vorläufig unerreichbar|Файл временно недоступен/.test(res2) || res2Status == 500 || res2Status == 503)
  3093. {
  3094. if (tryID < 7)
  3095. setTimeout(function(){geturlfunc(link,tryID+1)}, tryID * 1000 + (Math.random() * tryID * 2000));
  3096. else
  3097. {DisplayTheCheckedLinks([link], 'unava_link'); return;}
  3098. }
  3099. }
  3100. });
  3101. }
  3102. //split the hrefs and check them one by one
  3103. GM_log('Using slow extabit.com link checking. Log in to extabit to use fast bulk checking.');
  3104. links = links.split('\n');
  3105. var i = links.length;
  3106. while (i--)
  3107. {
  3108. if (links[i])
  3109. {
  3110. (function(i){setTimeout(function(){geturlfunc(links[i],1)}, timeoutDelay);})(i);
  3111. timeoutDelay += 500;
  3112. }
  3113. }
  3114. return;
  3115. }
  3116. var i;
  3117.  
  3118. var livelinks = res.match(liveRegex);
  3119. var deadlinks = res.match(deadRegex);
  3120. if (livelinks != null)
  3121. {
  3122. i = livelinks.length - 1;
  3123. do
  3124. {
  3125. livelinks[i] = livelinks[i].match(linkRegex)[1];
  3126. }
  3127. while (i--);
  3128. DisplayTheCheckedLinks(livelinks, 'alive_link');
  3129. }
  3130.  
  3131. if (deadlinks != null)
  3132. {
  3133. i = deadlinks.length - 1;
  3134. do
  3135. {
  3136. deadlinks[i] = deadlinks[i].match(linkRegex)[1];
  3137. }
  3138. while (i--);
  3139. DisplayTheCheckedLinks(deadlinks, 'adead_link');
  3140. }
  3141.  
  3142. if (unavaRegex != null)
  3143. {
  3144. var unavalinks = res.match(unavaRegex);
  3145. if (unavalinks)
  3146. {
  3147. i = unavalinks.length - 1;
  3148. do
  3149. {
  3150. unavalinks[i] = unavalinks[i].match(linkRegex)[1];
  3151. }
  3152. while (i--);
  3153. DisplayTheCheckedLinks(unavalinks, 'unava_link');
  3154. }
  3155. }
  3156. }
  3157. });
  3158. }
  3159. }
  3160. function netloadBulkCheck()
  3161. {
  3162. var blockIdx = this.links.length;
  3163.  
  3164. while (blockIdx--)
  3165. {
  3166. postRequest(this.apiUrl, this.postData, this.links[blockIdx],
  3167. this.resLinkRegex, this.resLiveRegex, this.resDeadRegex, this.unavaRegex);
  3168. }
  3169. function postRequest(api, postData, links, linkRegex, liveRegex, deadRegex, unavaRegex)
  3170. {
  3171. GM_xmlhttpRequest(
  3172. {
  3173. method: 'POST',
  3174. url: api,
  3175. headers: {
  3176. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  3177. 'Content-type': 'application/x-www-form-urlencoded',
  3178. 'Referer': ""
  3179. },
  3180. data: postData + encodeURIComponent(links),
  3181. onload: function (result)
  3182. {
  3183. var res = result.responseText;
  3184. var i;
  3185.  
  3186. var livelinks = res.match(liveRegex);
  3187. var deadlinks = res.match(deadRegex);
  3188. if (livelinks != null)
  3189. {
  3190. i = livelinks.length - 1;
  3191. do
  3192. {
  3193. recheckLink(livelinks[i].match(linkRegex)[1]);
  3194. }
  3195. while(i--);
  3196. }
  3197.  
  3198. if (deadlinks != null)
  3199. {
  3200. i = deadlinks.length - 1;
  3201. do
  3202. {
  3203. deadlinks[i] = deadlinks[i].match(linkRegex)[1];
  3204. }
  3205. while (i--);
  3206. DisplayTheCheckedLinks(deadlinks, 'adead_link');
  3207. }
  3208. }
  3209. });
  3210. }
  3211. function recheckLink(link)
  3212. {
  3213. var link = link;
  3214. GM_xmlhttpRequest(
  3215. {
  3216. method: 'GET',
  3217. url: 'http://netload.in/datei' + link + '.htm',
  3218. headers: {
  3219. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3220. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  3221. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  3222. 'Referer': ""
  3223. },
  3224. onload: function (result)
  3225. {
  3226. var res = result.responseText;
  3227.  
  3228. if (res.match(/dl_first_file_download">|download_limit\.gif/))
  3229. {
  3230. DisplayTheCheckedLinks([link], 'alive_link');
  3231. return;
  3232. }
  3233.  
  3234. if (res.match(/achtung\.jpg"/))
  3235. {
  3236. DisplayTheCheckedLinks([link], 'adead_link');
  3237. }
  3238. },
  3239. onerror: function ()
  3240. {
  3241. displayTheCheckedLink(link, 'unava_link');
  3242. }
  3243. });
  3244. }
  3245. }
  3246. function k2sBulkCheck()
  3247. {
  3248. var arr = this.links[0].split("\r\n");
  3249. var i = arr.length;
  3250. c=0;
  3251. while(i--)
  3252. {
  3253. c++;
  3254. setTimeout(k2sRequest,c*500,arr[i]);
  3255. }
  3256. }
  3257. function k2sRequest(K2SLink)
  3258. {
  3259. var id = K2SLink.match(/\/file\/(\w+)/)[1];
  3260. K2SLink2='http://k2s.cc/file/'+id;
  3261. GM_xmlhttpRequest(
  3262. {
  3263. method: 'GET',
  3264. url: K2SLink,
  3265. headers: {
  3266. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  3267. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  3268. 'Referer': ''
  3269. },
  3270. onload: function (result)
  3271. {
  3272. var res = result.responseText;
  3273. if (res.match('div class="well2"|error 404|The system is unable to find the requested action|http://keep2share.cc/file/check.html|To avoid damaged files|This file is no longer available'))
  3274. {
  3275. DisplayTheCheckedLinks([id], 'adead_link');
  3276. return;
  3277. }
  3278. if (res.match('method="post">Displaying'))
  3279. {
  3280. DisplayTheCheckedLinks([id], 'unava_link');
  3281. return;
  3282. }
  3283. if (res.match('Premium only'))
  3284. {
  3285. DisplayTheCheckedLinks([id], 'prem_link');
  3286. return;
  3287. }
  3288. if (res.match('View File|download-file-info|div class="name fontmyriadpro"|style="color: #9fb143;"'))
  3289. {
  3290. slow_id=new RegExp('<input type="hidden" name="slow_id" value="(\\w+)">');
  3291. slID=slow_id.exec(res)[1];
  3292. GM_xmlhttpRequest(
  3293. {
  3294. method: 'POST',
  3295. url: K2SLink2,
  3296. headers: {
  3297. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  3298. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  3299. 'Content-Type': 'application/x-www-form-urlencoded',
  3300. 'Referer': K2SLink
  3301. },
  3302. data: 'slow_id='+slID+'&yt0=',
  3303. onload: function (result)
  3304. {
  3305. var newres = result.responseText;
  3306. newoversizedtest=new RegExp("Free user can't download large files.");
  3307. if (newoversizedtest.test(newres))
  3308. {
  3309. DisplayTheCheckedLinks([id], 'prem_link');
  3310. return;
  3311. }
  3312. else
  3313. {
  3314. DisplayTheCheckedLinks([id], 'alive_link');
  3315. return;
  3316. }
  3317. DisplayTheCheckedLinks([id], 'unava_link');
  3318. return;
  3319. }
  3320. });
  3321. /////////////////////end additional check for oversized links
  3322. return;
  3323. }
  3324. DisplayTheCheckedLinks([id], 'unava_link');
  3325. return;
  3326. },
  3327. onerror: function ()
  3328. {
  3329. DisplayTheCheckedLinks([id], 'unava_link');
  3330. return;
  3331. }
  3332. });
  3333. }
  3334. function fboomBulkCheck()
  3335. {
  3336. var arr = this.links[0].split("\r\n");
  3337. var i = arr.length;
  3338. c=0;
  3339. while(i--)
  3340. {
  3341. c++;
  3342. setTimeout(fboomRequest,c*500,arr[i]);
  3343. }
  3344. }
  3345. function fboomRequest(FBoomLink)
  3346. {
  3347. var id = FBoomLink.match(/\/file\/(\w+)/)[1];
  3348. FBoomLink2='http://fboom.me/file/'+id;
  3349. GM_xmlhttpRequest(
  3350. {
  3351. method: 'GET',
  3352. url: FBoomLink,
  3353. headers: {
  3354. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  3355. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  3356. 'Referer': ''
  3357. },
  3358. onload: function (result)
  3359. {
  3360. var res = result.responseText;
  3361. if (res.match('class="error-v1-title">404<|File not found or deleted|This file is no longer available'))
  3362. {
  3363. DisplayTheCheckedLinks([id], 'adead_link');
  3364. return;
  3365. }
  3366. if (res.match('method="post">Displaying'))
  3367. {
  3368. DisplayTheCheckedLinks([id], 'unava_link');
  3369. return;
  3370. }
  3371. if (res.match('only for premium members'))
  3372. {
  3373. DisplayTheCheckedLinks([id], 'prem_link');
  3374. return;
  3375. }
  3376. if (res.match('id="download-free" href="#"'))
  3377. {
  3378. slow_id=new RegExp('<a id="download-free" href="#" class="free-button btn-u" data-slow-id="(\\w+)">');
  3379. slID=slow_id.exec(res)[1];
  3380. GM_xmlhttpRequest(
  3381. {
  3382. method: 'POST',
  3383. url: FBoomLink2,
  3384. headers: {
  3385. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  3386. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  3387. 'Content-Type': 'application/x-www-form-urlencoded',
  3388. 'Referer': FBoomLink
  3389. },
  3390. data: 'slow_id='+slID,
  3391. onload: function (result)
  3392. {
  3393. var newres = result.responseText;
  3394. newoversizedtest=new RegExp("Free user can't download large files.|Downloading is not possible");
  3395. if (newoversizedtest.test(newres))
  3396. {
  3397. DisplayTheCheckedLinks([id], 'prem_link');
  3398. return;
  3399. }
  3400. else
  3401. {
  3402. DisplayTheCheckedLinks([id], 'alive_link');
  3403. return;
  3404. }
  3405. DisplayTheCheckedLinks([id], 'unava_link');
  3406. return;
  3407. }
  3408. });
  3409. /////////////////////end additional check for oversized links
  3410. return;
  3411. }
  3412. DisplayTheCheckedLinks([id], 'unava_link');
  3413. return;
  3414. },
  3415. onerror: function ()
  3416. {
  3417. DisplayTheCheckedLinks([id], 'unava_link');
  3418. return;
  3419. }
  3420. });
  3421. }
  3422. function depositfilesBulkCheck()
  3423. {
  3424. var arr = this.links[0].split("\r\n");
  3425. var i = arr.length;
  3426. var seqno = Math.floor(Math.random()*1000000000);
  3427. while(i--)
  3428. {
  3429. DFpostRequest(arr[i]);
  3430. }
  3431. }
  3432. function DFpostRequest(DFLink)
  3433. {
  3434. DFLink=DFLink.replace('depositfiles.lt/','depositfiles.com/');
  3435. DFLink=DFLink.replace('depositfiles.org/','depositfiles.com/');
  3436. DFLink=DFLink.replace('dfiles.ru/','depositfiles.com/');
  3437. DFLink=DFLink.replace('dfiles.eu/','depositfiles.com/');
  3438. DFLink=DFLink.replace('depositfiles.com/en/','depositfiles.com/');
  3439. var id = DFLink.match(/depositfiles\.com\/files\/(\w+)/)[1];
  3440. GM_xmlhttpRequest(
  3441. {
  3442. method: "GET",
  3443. url: "http://depositfiles.com/api/get_download_info.php?id=" + id + "&format=json",
  3444. headers: {
  3445. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3446. 'Content-Type': 'application/x-www-form-urlencoded',
  3447. 'Referer': ""
  3448. },
  3449. onload: function (result)
  3450. {
  3451. var res = result.responseText;
  3452. if (res.match('(?:no_file|file_ban)'))
  3453. {
  3454. DisplayTheCheckedLinks([id], 'adead_link');
  3455. return;
  3456. }
  3457. if (res.match('"download_li(?:nk|mit)|password_check|file_storage"'))
  3458. {
  3459. DisplayTheCheckedLinks([id], 'alive_link');
  3460. return;
  3461. }
  3462. DisplayTheCheckedLinks([id], 'unava_link');
  3463. }
  3464. });
  3465. }
  3466.  
  3467. function megaBulkCheck()
  3468. {
  3469. var arr = this.links[0].split("\r\n");
  3470. var i = arr.length;
  3471. var seqno = Math.floor(Math.random()*1000000000);
  3472. while(i--)
  3473. {
  3474. postRequest(arr[i]);
  3475. }
  3476. function postRequest(megaLink)
  3477. {
  3478. megaLink=megaLink.replace('mega.nz/','mega.co.nz/');
  3479. var id = megaLink.match(/mega\.co\.nz\/#!(\w+)(?:!\w+)?/)[1];
  3480. GM_xmlhttpRequest(
  3481. {
  3482. method: "POST",
  3483. url: 'https://g.api.mega.co.nz/cs?id=' + seqno++,
  3484. data: '[{"a":"g","p":"' + id + '","ssl": "1"}]',
  3485. headers: {
  3486. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3487. 'Content-Type': 'application/xml',
  3488. 'Referer': "https://mega.co.nz/"
  3489. },
  3490. onload: function (result)
  3491. {
  3492. var res = $.parseJSON(result.responseText.match(/\[(.+?)\]/)[1]);
  3493. if ((typeof res == "number" && (res == -9 || res == -16 || res == -6)) || res.d)
  3494. {
  3495.  
  3496. DisplayTheCheckedLinks([id], 'adead_link');
  3497. }
  3498. if (res.at)
  3499. {
  3500. DisplayTheCheckedLinks([id], 'alive_link');
  3501. }
  3502. if (res.e == "ETEMPUNAVAIL")
  3503. {
  3504. DisplayTheCheckedLinks([id], 'unava_link');
  3505. }
  3506. }
  3507. });
  3508. }
  3509.  
  3510. }
  3511.  
  3512. function oboomBulk() {
  3513. var a = [], b = [], c = [];
  3514. var array = this.links;
  3515.  
  3516. GM_xmlhttpRequest({
  3517. method: 'GET',
  3518. url: 'https://www.oboom.com/1/guestsession',
  3519. headers: {
  3520. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  3521. 'Content-type': 'application/x-www-form-urlencoded',
  3522. 'Referer': 'https://www.oboom.com',
  3523. 'X-Requested-With': 'XMLHttpRequest'
  3524. },
  3525. onload: function(result) {
  3526. var blockIdx = array.length;
  3527. var token = JSON.parse(result.responseText)[1];
  3528. while (blockIdx--) {
  3529. startCheck(array[blockIdx].split('\r\n'), token);
  3530. }
  3531. }
  3532. });
  3533.  
  3534. function startCheck(links, token) {
  3535. GM_xmlhttpRequest({
  3536. method: 'POST',
  3537. url: "https://api.oboom.com/1/info",
  3538. headers: {
  3539. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  3540. 'Content-type': 'application/x-www-form-urlencoded',
  3541. 'Referer': 'https://www.oboom.com/',
  3542. 'X-Requested-With': 'XMLHttpRequest'
  3543. },
  3544. data: "token=" + token + "&items=" + links.join(","),
  3545. onload: function(result) {
  3546. var res = JSON.parse(result.responseText)[1];
  3547. var i = res.length, s;
  3548.  
  3549. while (i--) {
  3550. s = res[i].state;
  3551. if (s == 'online') a.push(res[i].id);
  3552. else if (s == 'blocked' || s == 'abused' || s == 'lost' || s == 'not_found' || s == 'not_available'|| s == 'download_error' || s == 'offline' || s == 'expired' ) b.push(res[i].id);
  3553. else c.push(res[i].id);
  3554. }
  3555.  
  3556. if (a.length > 0) DisplayTheCheckedLinks(a, 'alive_link');
  3557. if (b.length > 0) DisplayTheCheckedLinks(b, 'adead_link');
  3558. if (c.length > 0) DisplayTheCheckedLinks(c, 'unava_link');
  3559. }
  3560. });
  3561. }
  3562. }
  3563. function linksaveBulkCheck()
  3564. {
  3565. var arr = this.links[0].split("\r\n");
  3566. var i = arr.length;
  3567. while(i--)
  3568. {
  3569. postRequest(arr[i]);
  3570. }
  3571. function postRequest(lsLink)
  3572. {
  3573. GM_xmlhttpRequest(
  3574. {
  3575. method: "GET",
  3576. url: lsLink + '-t.jpg',
  3577. headers: {
  3578. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3579. 'Accept': 'text/xml',
  3580. 'Referer': ""
  3581. },
  3582. onload: function (result)
  3583. {
  3584. var imgLen = result.responseHeaders.match(/Content-Length: (\d+)/)[1];
  3585. if (imgLen == 965) //online
  3586. {
  3587. DisplayTheCheckedLinks([lsLink], 'alive_link');
  3588. }
  3589.  
  3590. if (imgLen == 972) //offline
  3591. {
  3592. DisplayTheCheckedLinks([lsLink], 'adead_link');
  3593. }
  3594. if (imgLen == 978) //unava
  3595. {
  3596. DisplayTheCheckedLinks([lsLink], 'unava_link');
  3597. }
  3598. }
  3599. });
  3600. }
  3601.  
  3602. }
  3603. function linkcryptBulkCheck()
  3604. {
  3605. var arr = this.links[0].split("\r\n");
  3606. var i = arr.length;
  3607. while(i--)
  3608. {
  3609. postRequest(arr[i]);
  3610. }
  3611. function postRequest(lcLink)
  3612. {
  3613. GM_xmlhttpRequest(
  3614. {
  3615. method: "GET",
  3616. url: 'http://linkcrypt.ws/api.html?api=status_V1&folderKey=' + lcLink.match(/dir\/(\w+)/)[1],
  3617. headers: {
  3618. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3619. 'Accept': 'text/xml',
  3620. 'Referer': ""
  3621. },
  3622. onload: function (result)
  3623. {
  3624. var res = result.responseText;
  3625. if (res.match(/<errorCode>1101|folderStatus>[23]/)) //Offline status
  3626. {
  3627. DisplayTheCheckedLinks([lcLink], 'adead_link');
  3628. return;
  3629. }
  3630. if (res.match(/folderStatus>1/)) //Online status
  3631. {
  3632. DisplayTheCheckedLinks([lcLink], 'alive_link');
  3633. }
  3634. else
  3635. {
  3636. DisplayTheCheckedLinks([lcLink], 'unava_link');
  3637. }
  3638. }
  3639. });
  3640. }
  3641. }
  3642.  
  3643. function megashareBulkCheck()
  3644. {
  3645. var arr = this.links[0].split("\r\n");
  3646. var i = arr.length;
  3647. while(i--)
  3648. {
  3649. postRequest(arr[i]);
  3650. }
  3651. function postRequest(msLink)
  3652. {
  3653. GM_xmlhttpRequest(
  3654. {
  3655. method: "GET",
  3656. url: msLink,
  3657. headers: {
  3658. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3659. 'Content-Type': 'application/x-www-form-urlencoded',
  3660. 'Referer': ""
  3661. },
  3662. onload: function (result)
  3663. {
  3664. var prZVal = result.responseText.match(/name="(\d+prZVal)" value="(\d+)">/);
  3665. var btn3Name = result.responseText.match(/src="images\/dwn-btn3\.gif" name="(.+?)"/);
  3666. if ((prZVal == null) || (btn3Name == null))
  3667. {
  3668. return;
  3669. }
  3670. GM_xmlhttpRequest(
  3671. {
  3672. method: "POST",
  3673. url: msLink,
  3674. headers: {
  3675. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3676. 'Content-Type': 'application/x-www-form-urlencoded',
  3677. 'Referer': ""
  3678. },
  3679. data: prZVal[1] + "=" + prZVal[2] + '&' + btn3Name[1] + '.x=1&' + btn3Name[1] + '.y=1',
  3680. onload: function (result)
  3681. {
  3682. var res = result.responseText;
  3683. if (res.match(/<div id="err">/))
  3684. {
  3685. DisplayTheCheckedLinks([msLink.match(/\.com(\/\d+)/)[1]], 'adead_link');
  3686. }
  3687. else
  3688. {
  3689. DisplayTheCheckedLinks([msLink.match(/\.com(\/\d+)/)[1]], 'alive_link');
  3690. }
  3691. }
  3692. });
  3693. }
  3694. });
  3695. }
  3696. }
  3697. function ncryptBulkCheck()
  3698. {
  3699. var arr = this.links[0].split("\r\n");
  3700. var i = arr.length;
  3701. while(i--)
  3702. {
  3703. postRequest(arr[i]);
  3704. }
  3705. function postRequest(ncryptLink)
  3706. {
  3707. GM_xmlhttpRequest(
  3708. {
  3709. method: "POST",
  3710. url: 'http://ncrypt.in/api_status.php',
  3711. headers: {
  3712. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3713. 'Content-Type': 'application/x-www-form-urlencoded',
  3714. 'Referer': ""
  3715. },
  3716. data: 'link=' + encodeURI(ncryptLink),
  3717. onload: function (result)
  3718. {
  3719. var foldStatus = result.responseText.match(/(?:offline|online);/);
  3720. switch(foldStatus + ""){
  3721. case "offline;": DisplayTheCheckedLinks([ncryptLink], 'adead_link'); break;
  3722. case "online;": DisplayTheCheckedLinks([ncryptLink], 'alive_link'); break;
  3723. default: DisplayTheCheckedLinks([ncryptLink], 'unava_link');
  3724. }
  3725. }
  3726. });
  3727. }
  3728. }
  3729. function hellshareBulkCheck()
  3730. {
  3731. var links = this.links;
  3732. GM_xmlhttpRequest(
  3733. {
  3734. method: "GET",
  3735. url: 'http://www.hellshare.com',
  3736. headers: {
  3737. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3738. 'Accept': 'text/xml',
  3739. 'Referer': ""
  3740. },
  3741. onload: function (result)
  3742. {
  3743. var domain = result.responseText.match(/param_rau = "www\.hellshare\.(\w+)"/)[1];
  3744.  
  3745. var loc = 'check=Zkontrolovat+dostupnost+soubor%C5%AF&links=';
  3746. if (domain == 'sk')
  3747. loc = 'check=Skontrolova%C5%A5&links=';
  3748. if (domain == 'com')
  3749. loc = 'check=Check+availability&links=';
  3750. if (domain == 'hu')
  3751. loc = 'check=Kontrol%C3%A1lj&links=';
  3752. if (domain == 'pl')
  3753. loc = 'check=Sprawd%C5%BC+dost%C4%99pno%C5%9B%C4%87+plik%C3%B3w&links=';
  3754.  
  3755. genBulkCheck.call({ links: links,
  3756. apiUrl: 'http://www.hellshare.' + domain + '/linkchecker?do=linkChecker-linkcheckerform-submit',
  3757. postData: loc,
  3758. resLinkRegex: /hellshare\.(?:cz|com|sk|hu|pl)\/(?:[\w-\.]+\/|)([\w-\.]+\/\d{5,})/,
  3759. 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,
  3760. resDeadRegex: /<span style="color:gray">.*?<\/span> - <strong>/g,
  3761. resUnavaRegex: null
  3762. });
  3763. }
  3764. });
  3765. }
  3766. /**
  3767. * Displays check result
  3768. * @param {Array} Array of links or link fragments.
  3769. * @param {String} Check result status -> ['alive_link'|'adead_link'|'unava_link']
  3770. */
  3771. function DisplayTheCheckedLinks(links, resultStatus)
  3772. {
  3773. //(a[href*=link_1], a[href*=link_2], ..., a[href*=link_n])
  3774. var $links = $('a[href*="' + links.join('"], a[href*="') + '"]');
  3775. if (Do_not_linkify_DL_links)
  3776. { //TODO into separate jQuery function
  3777. $links.replaceWith(function(){
  3778. return '<span href="' + this.href + '">' + $(this).text() + '</span>';
  3779. });
  3780. $links = $('span[href*="' + links.join('"], span[href*="') + '"]');
  3781. }
  3782. $links.removeClass().addClass(resultStatus);
  3783. $links.each(function() {
  3784. this.href = Ref_anonymize_service + $(this).attr("href");
  3785. });
  3786. switch(resultStatus)
  3787. {
  3788. case "alive_link": cLinksAlive += $links.length;
  3789. if (Display_tooltip_info) $links.mouseover(displayTooltipInfo);
  3790. break;
  3791. case "adead_link": cLinksDead += $links.length;
  3792. if (Display_tooltip_info) $links.mouseover(displayTooltipError);
  3793. break;
  3794. case "prem_link": cLinksprem += $links.length;
  3795. if (Display_tooltip_info) $links.mouseover(displayTooltipError);
  3796. break;
  3797. case "unava_link": cLinksUnava += $links.length; break;
  3798. default:
  3799. }
  3800. cLinksProcessed += $links.length;
  3801. }
  3802. }
  3803. // starts bulkchecking
  3804. //
  3805. // params
  3806. // filterId [string] restricts link detection with passed id attribute
  3807. function startBulkCheck(filterId)
  3808. {
  3809. var cHosts = bulkHosts.length;
  3810. if (cHosts == 0) //no filehostings selected
  3811. return;
  3812. // STEP 1 linkify the links
  3813. var linkifyRegex = '';
  3814. var hostIdx = cHosts;
  3815. while(hostIdx--)
  3816. {
  3817. linkifyRegex += bulkHosts[hostIdx].linkRegex + "|";
  3818. }
  3819. linkifyRegex = linkifyRegex.replace(/\|$/, '');
  3820. linkify(linkifyRegex);
  3821. //
  3822. //STEP 2 detect link objects
  3823. var xpathAll = '';
  3824. var hostIdx = cHosts;
  3825. while(hostIdx--)
  3826. {
  3827. xpathAll += bulkHosts[hostIdx].xpath + "|";
  3828. }
  3829. xpathAll = xpathAll.replace(/\]\|\/\/a\[/g, " or ");
  3830. xpathAll = xpathAll.replace(/\]\|/, ')]');
  3831. if (filterId != null) //insert id restriction in the xpath
  3832. {
  3833. xpathAll = xpathAll.replace(/\[/, "[@class='" + filterId + "' and (");
  3834. }
  3835. else
  3836. {
  3837. xpathAll = xpathAll.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  3838. }
  3839. var links = document.evaluate(xpathAll, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  3840. if (filterId == null)
  3841. {
  3842. cLinksTotal += links.snapshotLength;
  3843. }
  3844. //
  3845. //STEP 3 bind links with hostings
  3846. var linkIdx = links.snapshotLength;
  3847. var href = null;
  3848. if (linkIdx == 0) // no links found
  3849. return;
  3850. var name;
  3851. while (linkIdx--)
  3852. {
  3853. href = links.snapshotItem(linkIdx).href;
  3854. try // DO NOT REMOVE, filters crap that went through xpath detection
  3855. {
  3856. name = gimmeHostName(href);
  3857. if (href.match(bulkHostNames[name].linkRegexObject) != null)
  3858. bulkHostNames[name].links.push(href);
  3859. }
  3860. catch(e)
  3861. {
  3862.  
  3863. }
  3864. }
  3865. //
  3866. //STEP 4 process the links for each filehosting
  3867. var hostIdx = cHosts;
  3868. var host;
  3869. var m,n;
  3870. var arr;
  3871. while (hostIdx--)
  3872. {
  3873. host = bulkHosts[hostIdx];
  3874. arr = host.links;
  3875. if (arr.length == 0) //no links for this hosting, skip
  3876. {
  3877. continue;
  3878. }
  3879. //links match corrections
  3880. if (host.corrMatch != null)
  3881. {
  3882. var idx = arr.length;
  3883. while (idx--)
  3884. {
  3885. arr[idx] = arr[idx].match(host.corrMatch)[1];
  3886. }
  3887. }
  3888. //links replace corrections
  3889. if ((host.corrReplWhat != null) && (host.corrReplWith != null))
  3890. {
  3891. var idx = arr.length;
  3892. while (idx--)
  3893. {
  3894. arr[idx] = arr[idx].replace(host.corrReplWhat, host.corrReplWith);
  3895. }
  3896. }
  3897. m = arr.length;
  3898. n = host.blockSize;
  3899. if (m > n)
  3900. {
  3901. //insert block separators (RAND_STRING) into the array
  3902. for(var i = n; i < m; i += n + 1)
  3903. {
  3904. arr.splice(i, 0, RAND_STRING);
  3905. }
  3906. }
  3907.  
  3908. host.func.call({ links: arr.join(host.splitSeparator).split(RAND_STRING),
  3909. apiUrl: host.apiUrl,
  3910. postData: host.postData,
  3911. resLinkRegex: host.resLinkRegex,
  3912. resLiveRegex: host.resLiveRegex,
  3913. resDeadRegex: host.resDeadRegex,
  3914. resUnavaRegex: host.resUnavaRegex
  3915. });
  3916. //clean up
  3917. arr.length = 0;
  3918. }
  3919. //
  3920.  
  3921. function gimmeHostName(link)
  3922. {
  3923. return link.replace(/https?:\/\/.*?http(s)?:\/\//, "http$1://").match(/https?:\/\/(?:www\.|[\w\.])*?([\w-]+)\.(?:co\.uk|co\.nz|\w+)\//)[1];
  3924. }
  3925. }
  3926. function checkLinks(filterId)
  3927. {
  3928. startBulkCheck(filterId);
  3929. start(filterId);
  3930. }
  3931.  
  3932. /**
  3933. * Initialises progress box including event binding and CSS
  3934. */
  3935. function initProgressBox()
  3936. {
  3937. if ($("#warlc-progressbox").length > 0)
  3938. return;
  3939. //progressbox css change size and color of progress box
  3940. GM_addStyle("#warlc-progressbox {position:fixed; background:DimGray;" + Progress_box_background_color +
  3941. "; opacity:" + (Progress_box_opacity / 100) +
  3942. "; bottom:" + Progress_box_pos_bottom +
  3943. "px; right:" + Progress_box_pos_right +
  3944. "px; padding:5px; font-size:20px; font-weight:bold; cursor:default;}\
  3945. \
  3946. .warlc-progressbar {text-align:center; color: DimGray; height:2px; margin-bottom:2px;}\
  3947. \
  3948. .warlc-progressitem {}\
  3949. \
  3950. .alive {color:#00FF7F; " + Live_links_color +
  3951. "; background:transparent url(" + alive_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;} .dead {color:" + Dead_links_color +
  3952. "; background:transparent url(" + adead_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;} .unava {color: " + Temp_unavailable_links_color +
  3953. "; background:transparent url(" + unava_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;} .processing {color:Black; " + Container_links_color +
  3954. "; background:transparent url(" + processing_link_gif + ") no-repeat scroll 100% 50%;padding-right:15px;} .prem {color:" + Premium_links_color +
  3955. "; background:transparent url(" + prem_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;}"
  3956. );
  3957. //
  3958. $('body').append(' <div id="warlc-progressbox">\
  3959. <div class="warlc-progressbar"></div>\
  3960. <span class="warlc-progressitem alive"></span> - \
  3961. <span class="warlc-progressitem dead"></span> - \
  3962. <span class="warlc-progressitem unava"></span> - \
  3963. <span class="warlc-progressitem prem"></span> - \
  3964. <span class="warlc-progressitem processing"></span>\
  3965. </div>');
  3966. $('#warlc-progressbox').hide().click(function(){
  3967. clearInterval(intervalId);
  3968. $(this).hide();
  3969. return false;
  3970. });
  3971. $(".warlc-progressbar").progressbar({complete: function(){
  3972. $(this).fadeOut();
  3973. clearInterval(intervalId); //stop refreshing the stats
  3974. }
  3975. })
  3976. .one('progressbarchange', function(){$('#warlc-progressbox').show();});
  3977. }
  3978. /**
  3979. * Updates progress data in progress box
  3980. */
  3981. function updateProgress()
  3982. {
  3983. $("#warlc-progressbox").attr('aria-valuenow', Math.round(((100 / cLinksTotal) * cLinksProcessed)));
  3984. if (cLinksTotal) // some links were detected on page
  3985. {
  3986. var percProgress = Math.round(((100 / cLinksTotal) * cLinksProcessed));
  3987. var $progressItems = $('#warlc-progressbox > .warlc-progressitem');
  3988. $(".warlc-progressbar").progressbar('option', 'value', percProgress);
  3989. if ((cLinksTotal - cLinksProcessed) == 0)
  3990. {
  3991. $progressItems.first().text(cLinksAlive)
  3992. .next().text(cLinksDead)
  3993. .next().text(cLinksUnava)
  3994. .next().text(cLinksprem)
  3995. .next().remove();
  3996. $('#warlc-progressbox').html($('#warlc-progressbox').html().substr(0,$('#warlc-progressbox').html().lastIndexOf(">")+1));
  3997. $('#warlc-progressbox div:first-child').remove();
  3998. }
  3999. else
  4000. {
  4001. $progressItems.first().text(cLinksAlive)
  4002. .next().text(cLinksDead)
  4003. .next().text(cLinksUnava)
  4004. .next().text(cLinksprem)
  4005. .next().text(cLinksTotal - cLinksProcessed);
  4006. }
  4007. }
  4008. }
  4009.  
  4010. function check_all_links()
  4011. {
  4012. add_WARLC_style();
  4013.  
  4014. if (Show_progress_stats)
  4015. {
  4016. initProgressBox();
  4017. intervalId = setInterval(function(){updateProgress();}, Progress_box_refresh_rate);
  4018. }
  4019.  
  4020. startBulkCheck(null);
  4021. start(null);
  4022.  
  4023. if (!containers_processed)
  4024. {
  4025. processContainers();
  4026. }
  4027. }
  4028.  
  4029. //Copies all found dead links to clipboard - right now for Scriptish only
  4030. function copy_dead_to_clipboard()
  4031. {
  4032. initClipBoardTools();
  4033.  
  4034. var deadlinksxpath = "//.[@class='adead_link']";
  4035.  
  4036. var foundlinks = document.evaluate(deadlinksxpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4037. var foundlinkstext = '';
  4038.  
  4039. var foundlinkIdx = foundlinks.snapshotLength;
  4040.  
  4041. while(foundlinkIdx--)
  4042. {
  4043. if (foundlinks.snapshotItem(foundlinkIdx).innerHTML != ' x')
  4044. foundlinkstext += foundlinks.snapshotItem(foundlinkIdx).innerHTML.replace(/\[\/hide:\w+\]/,"") + '\n';
  4045. }
  4046.  
  4047. unsafeWindow.copyToClipboard(foundlinkstext);
  4048. }
  4049.  
  4050. function toggle_autocheck()
  4051. {
  4052. var currentState = GM_getValue("Autocheck", false);
  4053. GM_setValue("Autocheck", !currentState);
  4054.  
  4055. if (currentState == true)
  4056. {
  4057. sendMessage('Autocheck disabled', 'red');
  4058. }
  4059. else
  4060. {
  4061. sendMessage('Autocheck enabled', 'SpringGreen');
  4062. }
  4063. }
  4064. function toggle_Enable_Anonymizer()
  4065. {
  4066. var currentState = GM_getValue("Enable_Anonymizer", false);
  4067. GM_setValue("Enable_Anonymizer", !currentState);
  4068.  
  4069. if (currentState == true)
  4070. {
  4071. GM_setValue("Ref_anonymize_service", "");
  4072. sendMessage('Anonymizer Disabled', 'red');
  4073. }
  4074. else
  4075. {
  4076. GM_setValue("Ref_anonymize_service", "http://hiderefer.com/?");
  4077. sendMessage('Anonymizer Enabled', 'SpringGreen');
  4078. }
  4079. }
  4080.  
  4081. function KeyDownHandler(event)
  4082. {
  4083. var kcode = (event.keyCode) ? event.keyCode : event.which;
  4084. if (event.ctrlKey && event.altKey)
  4085. {
  4086. switch(kcode)
  4087. {
  4088. case 65 : check_all_links(); break;
  4089. case 67 : configuration(); break;
  4090. case 68 : copy_dead_to_clipboard(); break;
  4091. case 87 : toggle_autocheck(); break;
  4092. case 90 : toggle_Enable_Anonymizer(); break;
  4093. }
  4094. }
  4095. }
  4096.  
  4097. //
  4098. //
  4099. // SCRIPT EXECUTION START POINT
  4100. //
  4101. //
  4102. // Safari specific GM_getResourceText override
  4103. if (navigator.userAgent.indexOf('Safari') != -1 && navigator.userAgent.indexOf('Chrome') == -1)
  4104. {
  4105. GM_getResourceText = function(res) {
  4106. var $cssText = GM_getValue("jquery_css", "");
  4107. if ($cssText == "")
  4108. {
  4109. GM_xmlhttpRequest(
  4110. {
  4111. method: 'GET',
  4112. url: 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css',
  4113. onload: function (result)
  4114. {
  4115. GM_setValue("jquery_css", result.responseText);
  4116. window.location.reload();
  4117. }
  4118. });
  4119. }
  4120. else
  4121. {
  4122. return $cssText;
  4123. }
  4124. }
  4125. }
  4126. var jQueryUICSS = GM_getResourceText("jQueryUICSS");
  4127. GM_addStyle(jQueryUICSS);
  4128. //init the stuff
  4129. setVariables();
  4130. initBulkCheck();
  4131. //init info boxes
  4132. messageBox.style.position = 'fixed';
  4133. messageBox.style.top = '20px';
  4134. messageBox.style.left = '10px';
  4135. messageBox.style.opacity = '0.85';
  4136. messageBox.style.background = 'DimGray';
  4137. messageBox.style.fontSize = '36px';
  4138. document.body.appendChild(messageBox);
  4139.  
  4140. //register GM menu commands & keyboard shortcut event handler
  4141. if (Keyboard_functions)
  4142. {
  4143. $(document).keydown(KeyDownHandler);
  4144. GM_registerMenuCommand("[W.A.R. Links Checker] Configuration (" + first_key_keycodename + "+" + second_key_keycodename + "+" + String.fromCharCode(CONFIGURATION_KEYCODE) + ")", configuration);
  4145. 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);
  4146. }
  4147. else
  4148. {
  4149. GM_registerMenuCommand("[W.A.R. Links Checker] Configuration", configuration);
  4150. GM_registerMenuCommand("[W.A.R. Links Checker] Check The Links In This Page", check_all_links);
  4151. }
  4152.  
  4153. //start linkchecking
  4154. if (Autocheck)
  4155. {
  4156. $(document).ready(check_all_links);
  4157. }
  4158.  
  4159. //
  4160. //
  4161. // SCRIPT EXECUTION END POINT
  4162. //
  4163. //
  4164.  
  4165. //shows configuration box
  4166. function configuration()
  4167. {
  4168.  
  4169. //prevent multiple creating of config window
  4170. if ($("#hideshow").length)
  4171. {
  4172. $("#hideshow").show();
  4173. return;
  4174. }
  4175.  
  4176. var configcss = '\
  4177. .popup_block .popup fieldset{\
  4178. padding: 1%;\
  4179. border-style: solid;\
  4180. border-width: 1px;\
  4181. border-color: gray;\
  4182. margin-bottom: 1px;\
  4183. }\
  4184. #h3hideshowtitle{\
  4185. font-size: 2em;\
  4186. }\
  4187. #h3hideshow{\
  4188. font-size: 1.5em;\
  4189. }\
  4190. #imghideshow {\
  4191. border: none;\
  4192. }\
  4193. #plusimage{\
  4194. display:inline;\
  4195. }\
  4196. #hideshow {\
  4197. position: fixed;\
  4198. width: 100%;\
  4199. height: 100%;\
  4200. top: 0;\
  4201. left: 0;\
  4202. font-size:12px;\
  4203. z-index:2147483645;\
  4204. text-align:left;\
  4205. }\
  4206. #fade {\
  4207. background: #000;\
  4208. position: fixed;\
  4209. width: 100%;\
  4210. height: 100%;\
  4211. opacity: .80;\
  4212. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";\
  4213. left: 0;\
  4214. z-index: 10;\
  4215. }\
  4216. .popup_block {\
  4217. font-family:verdana;\
  4218. color:black;\
  4219. background: #ddd;\
  4220. padding: 10px 20px;\
  4221. border: 2px solid DarkOrange;\
  4222. float: left;\
  4223. width: 700px;\
  4224. position: absolute;\
  4225. top: 7%;\
  4226. left: 50%;\
  4227. bottom: 7%;\
  4228. margin: 0 0 0 -350px;\
  4229. -moz-border-radius:10px;\
  4230. z-index: 100;\
  4231. \
  4232. }\
  4233. .popup_block .popup {\
  4234. float: left;\
  4235. width: 100%;\
  4236. background: #fff;\
  4237. margin: 10px 0;\
  4238. padding: 0px 0 0px;\
  4239. border-left: 1px solid #bbb;\
  4240. border-top: 1px solid #bbb;\
  4241. border-right: 1px solid #bbb;\
  4242. }\
  4243. #h3hideshow{\
  4244. margin: 1px 0 0px;\
  4245. padding: 1px 10px;\
  4246. border-bottom: 1px solid #bbb;\
  4247. font-size: 1.5em;\
  4248. font-weight: normal;\
  4249. cursor:pointer;\
  4250. background:#DDDDDD none repeat scroll 0 0;\
  4251. }\
  4252. #h3hideshow:hover{\
  4253. background:#C0BEBE none repeat scroll 0 0;\
  4254. }\
  4255. #h3hideshowtitle{\
  4256. margin: 2px 0 0px;\
  4257. padding: 7px 10px;\
  4258. border-bottom: 1px solid #bbb;\
  4259. font-size: 1.5em;\
  4260. font-weight: normal;\
  4261. }\
  4262. .popup_block .popup a {\
  4263. color:DarkSkyBlue;\
  4264. text-decoration:none;\
  4265. }\
  4266. .popup p {\
  4267. padding: 1px 10px;\
  4268. margin: 0px 0;\
  4269. -x-system-font:none;\
  4270. font-family:verdana,geneva,lucida,"lucida grande",arial,helvetica,sans-serif;\
  4271. font-size:10pt;\
  4272. font-size-adjust:none;\
  4273. font-stretch:normal;\
  4274. font-style:normal;\
  4275. font-variant:normal;\
  4276. font-weight:normal;\
  4277. line-height:normal;\
  4278. }\
  4279. #sites {\
  4280. padding: 1px 10px;\
  4281. margin: 0px 0;display:inline-block;width:16em;\
  4282. }\
  4283. #dev_ver {\
  4284. color: #00FF00;\
  4285. background: Black;\
  4286. text-align: right;\
  4287. }\
  4288. #sites_suspended {\
  4289. padding: 1px 10px;\
  4290. margin: 0px 0;display:inline-block;width:16em;\
  4291. text-decoration: line-through;\
  4292. }\
  4293. .popup img.cntrl {\
  4294. position: absolute;\
  4295. right: -15px;\
  4296. top: -15px;\
  4297. }\
  4298. #bulk {\
  4299. font-size:8pt;\
  4300. color:orange;\
  4301. padding: 1px 10px;\
  4302. margin: 0px 0;\
  4303. display:inline-block;\
  4304. width:100px;\
  4305. }\
  4306. #note {\
  4307. font-size:7pt;\
  4308. color:gray;\
  4309. padding: 1px 10px;\
  4310. margin: 0px 0;display:inline-block;\
  4311. min-width:100px;\
  4312. }\
  4313. #rednote {\
  4314. font-size:7pt;\
  4315. color:red;\
  4316. padding: 1px 10px;\
  4317. margin: 0px 0;display:inline-block;\
  4318. }\
  4319. #configinfo {\
  4320. font-size:8pt;\
  4321. color:gray;\
  4322. padding: 1px 10px;\
  4323. margin: 0px 0;display:inline-block;width:60em;\
  4324. }\
  4325. #refAnonymizer, #inputColorLive, #inputColorprem, #hostSearchBox2, #hostSearchBox, #inputColorDead, #inputColorTemp, #inputColorCont, #selectAllButton, #selectNoneButton, #invertButton, #selectAllButton2, #selectNoneButton2, #invertButton2 {\
  4326. color:black;\
  4327. border-style: solid;\
  4328. border-width: 1px;\
  4329. border-color: gray;\
  4330. }\
  4331. #h3hideshowcontent {\
  4332. min-height:220px;\
  4333. max-height:220px;\
  4334. overflow:auto;\
  4335. display: none;\
  4336. padding: 10px 10px;\
  4337. }\
  4338. #specinfo{\
  4339. font-size:14px;\
  4340. }\
  4341. .warlc-ui-tab {\
  4342. height:300px;\
  4343. overflow:auto;\
  4344. }\
  4345. #warlcsitelist2, #warlcsitelist1 {\
  4346. height:220px;\
  4347. border-top: 1px solid #ddd;\
  4348. padding-top: 5px;\
  4349. overflow:auto;\
  4350. }\
  4351. input:hover+label {\
  4352. background:#F1F77C;\
  4353. font-size:110%;\
  4354. }\
  4355. ';
  4356.  
  4357. GM_addStyle(configcss);
  4358.  
  4359. var customRulesRefHTML =
  4360. '\
  4361. <br>\
  4362. A custom rule consists of <b>commands</b>. A command must be on its own line and in this form:<br>\
  4363. <b>@keyword</b> <i>parameter</i>\
  4364. <br><br>\
  4365. 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. \
  4366. <br><br>\
  4367. 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.\
  4368. 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.\
  4369. 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.\
  4370. 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,\
  4371. but all commands until the next valid @customrule are ignored.<br><br>\
  4372. Available forms and types:\
  4373. <ul>\
  4374. <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.\
  4375. <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.\
  4376. <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.\
  4377. <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.\
  4378. </ul>\
  4379. Other available commands:<br>\
  4380. (Note: There can be more than 1 (up to 10) of these commands per rule. In that case, any of them will work.)\
  4381. <ul>\
  4382. <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.\
  4383. It can also specify multiple (up to 10) Top Level Domains (.com, .net etc.)<br>\
  4384. <ul>examples:<br>\
  4385. <li>good: <i>filehost.com/download/</i><br>\
  4386. <li>good: <i>download.filehost.net/?d=</i><br>\
  4387. <li>good: <i>filehost. com net co.uk /</i> - multiple TLDs (note the spaces before, between and after TLDs)<br>\
  4388. <li>ok: <i>filehost.com/</i> - works, but will also find links like filehost.com/login etc. Sometimes it\'s unavoidable though.<br>\
  4389. <li>bad: <i>d8523.filehost.com/</i> - d8523 probably is not constant<br>\
  4390. <li>bad: <i>filehost.com/3bfiq5d1</i> - 3bfiq5d1 probably is not constant<br>\
  4391. <li>bad: <i>filehost.com</i> - no slash<br>\
  4392. </ul>\
  4393. \
  4394. <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.\
  4395. 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 \
  4396. &lt;div&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;p&gt; even if there are new lines, tabulators etc.\
  4397. <li><b>@deadmatch</b> <i>pattern</i> - ignored for OBSOLETE, required for others. (For HEADERS some servers return 404 Error \
  4398. 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.)\
  4399. Two spaces again match any whitespace.\
  4400. <li><b>@unavamatch</b> <i>pattern</i> - optional, ignored for OBSOLETE and HEADERS. If found, the link is deemed temporarily unavailable.\
  4401. Two spaces again match any whitespace.\
  4402. <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. \
  4403. <li><b>@deadlink</b> <i>url</i> - optional. Example dead link.\
  4404. </ul>\
  4405. \
  4406. ';
  4407.  
  4408. //close image and css taken from = http://www.sohtanaka.com/web-design/examples/css-popup icon_close.png;
  4409. var configurationinnerHTML =
  4410. '<div id="fade"></div>\
  4411. <div class="popup_block">\
  4412. <div class="popup">\
  4413. <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/Itq2Hu7xQnsbRFOcWSBKT50FVpMUHrBD/iKsXb+V6KmtFI/H/3Q6nZzdEZPU1PVFSXbtEoltz0Nzm2HRqleIvjsLa/9CoiSnBs99cwaym4lCYSRSHr4/REg64SBHTX9//2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QGZeIjuHAmV30KWGBjq/YgUtWLiQqquryWazUXt7u3/16tX7IIYbF50D+vjWwUXGJLQYlxZZDdx+v//zsrKyZtnX0ONwcAnWUygUQhtMSELeGK2HCgoKqKSkhNDZ5fj+/fvPNTU1teDvBQW/IuMWEx29g6rkYSv5zlfu8Xgae3p6fGKaD1z4N0i/xtqPALR/WgssAuawK1XNto7eaZSVVhVPl6ruM9Baiuvr6+fBzRUul2sWxPKQWA5Yqg0NDekIwfXe3t4h3EfZ10PAVWXRIMBj16VlRvFLj7smTiB1qArPxPnKcrdqpE5VG0lVEC6EYdUIgsp9ITXGc0mzaU26CGeQampTp7I4W8GlXK/R2MUxoTaOZMAk0jNv4VNe9RXpRGK7IrIrD2QS6mrzpCKfSDRK8q8AAwCF/L1ktjcKFAAAAABJRU5ErkJggg%3D%3D"/></a>\
  4414. <div id="h3hideshowtitle"><img style="height:1.2em;" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4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IByC/jHrvOZ04cyueLP+q3huvIsbBmETWPaeVcngPMAWtMYKjVWlC30L8ylGDzV4WzPZ+U1Dz5cIAYtX15mQE4uhMY0IZuEwx+KBlwL6DiT09t+eurclmdqy4Y7kMd2RciKaCANEIwbD81vjX6/dqMdDVVbiIbeDueefT8aOHjizcxW4BVgbm2N0TS9RqFzF0PiC8DuPcLhj6QfOGYAXcDjz55Knv1xVx+YCiwDLINdKYdMXjqAVLzR99LqN8oebWqNRu1qixxC3hASiwOser1sdtP9kZeBTUBZPIY/HAKtRyXDB6++kieVlnZg72iNfA14/qa4HVwasTnmuLzQm3STrtxRUmetW/OXsg3hOh9Z9CTtT+FDsfO7ff2djyVfb5xlrNuxoygQLwbHgUAEjnwIi5dm3J4zsgTYNbqfHAC2H0m7ibf608V7B53urOYngWJ1/YoXS2+bMq9oUuiIbgSYvjQQ6P6b03hsv+trmm3I3GtNZQUUvT1wz6YsnQf0U8CTFHgrFZDw1Hnfl34da2vcFCFTAMqYaBr07nD40/IebZui1t9qqWgE3t6uOfCB3gF8FegrBB6x5qrri9688a+JYN6UK57eijDo2HI2+8/HB/8AVAHlQCfQCvz7chOIBTzS1FocNEx1VSNjHmFWS9jvC6mk11QWAbePhl4K/JWa1fbSypU2uSsI8ZgnEyG2wE9igb/Fa7f9MHGTQuANdbcGLzyFV2smiukr7Siw4WqGvZhlqznxhX7cTzmXayA234c33lqFcjneIqZfxX1TJr+t4dWtcUGXgusNgaPLwvQpgJjHcK8EPOAM6J7+vblEfK0fZ9RoqwAnpTnznsN/2jOkuvOUNvmpXmMTrrQuoJWGj36bAugAMhSo2cnsgUil2fb5LRHi1/jRGlJHc5zenaV7p0PyRB7XkR7vfa4IlZtT69fbVKywyafh8HODHN+WfhH4FnD2alN1B7AdOAcMeT29HfiZJ5oZ3sHrgAeBvcCANzBsHu7Ohe2/AwDnNnxcIIMIUgAAAABJRU5ErkJggg=="></img>&nbsp;W.A.R. Links Checker Customized Premium Link version Configuration</div>\
  4415. <div id="warlc-conf-tabs">\
  4416. <ul>\
  4417. <li><a href="#tabs-1">Filehostings</a></li>\
  4418. <li><a href="#tabs-2">Containers</a></li>\
  4419. <li><a href="#tabs-5">Custom rules</a></li>\
  4420. <li><a href="#tabs-3">Settings</a></li>\
  4421. <li><a href="#tabs-4">About</a></li>\
  4422. </ul>\
  4423. <div id="tabs-1" class="warlc-ui-tab">\
  4424. <div class="warlc-ui-buttonset">\
  4425. <input type="button" class="warlc-ui-select-all" value="Select All">\
  4426. <input type="button" class="warlc-ui-select-none" value="Select None">\
  4427. <input type="button" class="warlc-ui-select-invert" value="Invert">\
  4428. </div><br>\
  4429. <div>Search: <input type="textbox" id="hostSearchBox" value=""></div><br>\
  4430. <div id="warlcsitelist1"><span>Empty</span></div>\
  4431. </div>\
  4432. <div id="tabs-2" class="warlc-ui-tab">\
  4433. <div class="warlc-ui-buttonset">\
  4434. <input type="button" class="warlc-ui-select-all" value="Select All">\
  4435. <input type="button" class="warlc-ui-select-none" value="Select None">\
  4436. <input type="button" class="warlc-ui-select-invert" value="Invert">\
  4437. </div><br>\
  4438. <div>Search: <input type="textbox" id="hostSearchBox2" value=""></div><br>\
  4439. <div id="warlcsitelist2"><span>Empty</span></div>\
  4440. </div>\
  4441. <div id="tabs-5" class="warlc-ui-tab">\
  4442. <div class="warlcsettings">\
  4443. <fieldset><input type="checkbox" id="Custom_rules"> Enable custom rules <div id="bulk">EXPERIMENTAL</div></fieldset>\
  4444. <br>\
  4445. <div>Edit custom rules: \
  4446. <a href="#" id="showCustomRulesReference">(<b>Click here to show/hide the reference</b>)</a>\
  4447. <div id="customRulesReference" style="display:none;">'
  4448. + customRulesRefHTML + '\
  4449. </div>\
  4450. <textarea style="width:100%;height:200px;" id="Custom_rules_text"></textarea>\
  4451. </div>\
  4452. </div>\
  4453. </div>\
  4454. <div id="tabs-3" class="warlc-ui-tab">\
  4455. <div class="warlcsettings">\
  4456. <fieldset>\
  4457. <p><input type="checkbox" id="Keyboard_functions"> Enable keyboard shortcuts</p>\
  4458. <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>\
  4459. </fieldset>\
  4460. <fieldset>\
  4461. <p><input type="checkbox" id="Color_DL_links"> Color DL links</p>\
  4462. <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>\
  4463. <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>\
  4464. <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>\
  4465. <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>\
  4466. <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>\
  4467. <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>\
  4468. <p><input type="checkbox" id="Show_line_through_in_dead_links"> Show line through in dead links</p>\
  4469. <p><input type="checkbox" id="Show_black_background_in_DL_links"> Show black background in DL links</p>\
  4470. <p><input type="checkbox" id="Do_not_linkify_DL_links"> Do NOT linkify DL links</p>\
  4471. <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>\
  4472. <p><input type="checkbox" id="Display_full_links_in_link_containers"> Display full links in link containers</p><br>\
  4473. <fieldset>\
  4474. <p><input type="radio" name="warlciconset" value="0"> No icons</p>\
  4475. <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>\
  4476. <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>\
  4477. <p><input type="radio" name="warlciconset" value="3"> <img src=" ' + NEW_ICON_GREEN + '"> <img src=" ' + NEW_ICON_RED + '"> <img src=" ' + NEW_ICON_YELLOW + '"> <img src=" ' + NEW_ICON_PINK + '"></p>\
  4478. </fieldset>\
  4479. </fieldset>\
  4480. <fieldset>\
  4481. <div id="sites"><input type="checkbox" id="Autocheck"> Autocheck</div><br><div id="configinfo">Script starts check automatically.</div><br>\
  4482. </fieldset>\
  4483. <fieldset>\
  4484. <div id="sites"><input type="checkbox" id="Show_progress_stats"> Show progress stats</div><br>\
  4485. </fieldset>\
  4486. <fieldset>\
  4487. <div id="sites"><input type="checkbox" id="Display_tooltip_info"> Display tooltip info</div><div id="bulk"></div><br><div id="configinfo">Note: File name, file size, error messages etc.</div><br>\
  4488. </fieldset>\
  4489. <fieldset>\
  4490. <p><input type="checkbox" id="Enable_Anonymizer"> Enable Anonymizer</div><div id="bulk">EXPERIMENTAL Note: Checkbox does not work use CTRL+ALT+Z.</p>\
  4491. <div id="sites"><label for="refAnonymizer">Refererer anonymizing service</label><input type="text" id="refAnonymizer" value="' + Ref_anonymize_service + '"></div>\
  4492. </fieldset>\
  4493. </div>\
  4494. </div>\
  4495. <div id="tabs-4" class="warlc-ui-tab">\
  4496. <p><b>Author:</b> <a href="http://www.warlc.5gbfree.com/viewtopic.php?f=12&t=12">mental</a></p>\
  4497. <br />\
  4498. <p><b>Currently supported:</b><br>\
  4499. Filehostings: ' + allHostNames.length + '<br />\
  4500. Containers: ' + allContainerNames.length + '<br />\
  4501. Obsolete sites: ' + allObsoleteNames.length + '<br /></p>\
  4502. <br />\
  4503. <p><b>Based on:</b><br>\
  4504. <a href="http://userscripts-mirror.org/scripts/show/125631.html">W.A.R. Links Checker - Dev</a></p>\
  4505. <br />\
  4506. <p><b>Uses:</b></p>\
  4507. <p>adam_3\'s <a href="http://userscripts-mirror.org/scripts/show/2254">Linkify ting</a> (modified)</p>\
  4508. <p><a href="http://jquery.com/">jQuery</a> JavaScript Library</p>\
  4509. <br />\
  4510. <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>\
  4511. </div>\
  4512. </div>\
  4513. </div>\
  4514. </div>';
  4515. $('body').append('<div id="hideshow">' + configurationinnerHTML + '</div>');
  4516. $("#warlc-conf-tabs").tabs({ fx: { opacity: 'toggle', duration: 'fast' } });
  4517. $("#imghideshow").click(function(event){$("#hideshow").hide(); event.preventDefault();});
  4518. var elmHostList = document.getElementById("warlcsitelist1");
  4519. var elmContainerList = document.getElementById("warlcsitelist2");
  4520. buildSettings();
  4521. buildSitelist("", allHostNames, elmHostList);
  4522. buildSitelist("", allContainerNames, elmContainerList);
  4523. if (DEBUG_MODE)
  4524. {
  4525. //log all sites availability status
  4526. diagSites();
  4527. }
  4528. //handler for checkbox state change
  4529. function changeConfiguration(e)
  4530. {
  4531. var element = e.target;
  4532.  
  4533. if (element.type == 'checkbox')
  4534. {
  4535. if (element.checked == 1)
  4536. {
  4537. GM_setValue(element.id, true);
  4538. }
  4539. else
  4540. {
  4541. GM_setValue(element.id, false);
  4542. }
  4543.  
  4544. }
  4545. setVariables();
  4546. }
  4547.  
  4548. //Selects all filehosting checkboxes
  4549. function selectAll()
  4550. {
  4551. $(":checkbox:visible:not(:checked)").prop("checked",true)
  4552. .each(function(index, element){GM_setValue(this.id, true)});
  4553. }
  4554.  
  4555. //Deselects all filehosting checkboxes
  4556. function selectNone()
  4557. {
  4558. $(":checkbox:visible:checked").prop("checked",false)
  4559. .each(function(index, element){GM_setValue(this.id, false)});
  4560. }
  4561.  
  4562. //Inverts filehosting checkboxes selection
  4563. function selectInvert()
  4564. {
  4565. var $checked = $(":checkbox:visible:checked");
  4566. var $unchecked = $(":checkbox:visible:not(:checked)");
  4567. $unchecked.prop("checked",true)
  4568. .each(function(index, element){GM_setValue(this.id, true)});
  4569. $checked.prop("checked",false)
  4570. .each(function(index, element){GM_setValue(this.id, false)});
  4571. }
  4572. //toggles anonymizer on off
  4573. function Enable_Anonymizer()
  4574. {
  4575. var $checked = $(":checkbox:visible:checked");
  4576. var $unchecked = $(":checkbox:visible:not(:checked)");
  4577. $unchecked.prop("checked",true)
  4578. .each(function(index, element){GM_setValue(this.id, true)});
  4579. $checked.prop("checked",false)
  4580. .each(function(index, element){GM_setValue(this.id, false)});
  4581. }
  4582.  
  4583. function changeRefAnonymizer(){
  4584. GM_setValue("Ref_anonymize_service", $("#refAnonymizer").attr("value"));
  4585. }
  4586.  
  4587. //Sets live links color
  4588. function changeColorLive()
  4589. {
  4590. var inColorLive = document.getElementById("inputColorLive");
  4591. inColorLive.style.background = inColorLive.value;
  4592. GM_setValue("Live_links_color", inColorLive.value);
  4593. }
  4594.  
  4595. //Sets dead links color
  4596. function changeColorDead()
  4597. {
  4598. var inColorDead = document.getElementById("inputColorDead");
  4599. inColorDead.style.background = inColorDead.value;
  4600. GM_setValue("Dead_links_color", inColorDead.value);
  4601. }
  4602.  
  4603. //Sets temp. unavailable links color
  4604. function changeColorTemp()
  4605. {
  4606. var inColorTemp = document.getElementById("inputColorTemp");
  4607. inColorTemp.style.background = inColorTemp.value;
  4608. GM_setValue("Temp_unavailable_links_color", inColorTemp.value);
  4609. }
  4610.  
  4611. //Sets temp. unavailable links color
  4612. function changeColorCont()
  4613. {
  4614. var inColorCont = document.getElementById("inputColorCont");
  4615. inColorCont.style.background = inColorCont.value;
  4616. GM_setValue("Container_links_color", inColorCont.value);
  4617. }
  4618. //Sets premium. links color
  4619. function changeColorprem()
  4620. {
  4621. var inColorprem = document.getElementById("inputColorprem");
  4622. inColorprem.style.background = inColorprem.value;
  4623. GM_setValue("Premium_links_color", inColorprem.value);
  4624. }
  4625.  
  4626. //Diagnose sites for availability
  4627. function diagSites()
  4628. {
  4629. var boxes = document.getElementById("warlcsitelist1").getElementsByTagName("input");
  4630.  
  4631. for (var i = 0, n = boxes.length - 1; i < n; i++)
  4632. {
  4633. if (boxes[i].type == "checkbox")
  4634. {
  4635. checkAvailability(boxes[i]);
  4636. }
  4637. }
  4638.  
  4639. boxes = document.getElementById("warlcsitelist2").getElementsByTagName("input");
  4640.  
  4641. for (var i = 0, n = boxes.length - 1; i < n; i++)
  4642. {
  4643. if (boxes[i].type == "checkbox")
  4644. {
  4645. checkAvailability(boxes[i]);
  4646. }
  4647. }
  4648.  
  4649. function checkAvailability(cbElm)
  4650. {
  4651. var cb = cbElm;
  4652. GM_xmlhttpRequest(
  4653. {
  4654. method: 'HEAD',
  4655. url: 'http://' + cb.nextSibling.textContent.replace(' ', ''),
  4656. headers: {
  4657. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  4658. 'Accept': 'text/xml',
  4659. 'Referer': ""
  4660. },
  4661. onload: function (result)
  4662. {
  4663. if (result.status != 200)
  4664. {
  4665. GM_log(cb.nextSibling.textContent + ' --- status: [' + result.status + '] ' + result.statusText + ', final url: ' + result.finalUrl);
  4666. }
  4667. },
  4668. onerror: function (result)
  4669. {
  4670. if (result.status != 200)
  4671. {
  4672. GM_log(cb.nextSibling.textContent + ' --- status: [' + result.status + '] ' + result.statusText + ', final url: ' + result.finalUrl);
  4673. }
  4674. }
  4675. });
  4676. }
  4677. }
  4678. function buildSettings()
  4679. {
  4680. $(".warlcsettings :checkbox").each(function(){
  4681. $(this).prop("checked", GM_getValue($(this).attr("id")))
  4682. .click(function(e){
  4683. GM_setValue($(this).attr("id"), $(this).prop("checked"));
  4684. setVariables();
  4685. });
  4686. })
  4687. }
  4688. //Dynamic build of host list
  4689. //param search [string] searches for hostnames matching search substring
  4690. //param siteNames [array] array of site names
  4691. //param targetNode [DOM Node] where the list should be built
  4692. // first child node is replaced
  4693. function buildSitelist(search, siteNames, targetNode)
  4694. {
  4695. var searchRegex = new RegExp("\\|?([\\w\\.-]*" + search.replace(/\./g,"\\.").replace(/-/g, "\\-") + "[\\w\\.-]*)\\|?", "i");
  4696. var $targetNode = $(targetNode).empty();
  4697. var searchedSite = "";
  4698. $.each(siteNames, function(i, site){
  4699. if (searchedSite = site.match(searchRegex))
  4700. {
  4701. var baseSite = site.replace(/\|.+/, ""); //filehosting main domain
  4702. //ensuring backward compatibility with the rest of code, to be refactored later
  4703. var oldRSLCvalue = "Check_" + baseSite.replace(/\|.+/, "").replace(/\./g,"_dot_").replace(/-/g, "_dash_") + "_links";
  4704. //
  4705. $targetNode.append('<input type="checkbox" id="' + oldRSLCvalue +'" />\
  4706. <label for="' + oldRSLCvalue + '">' + searchedSite[1] + '</label>' +
  4707. ((searchedSite[1] != baseSite) ? ('<div id="note"> ( ~ ' + baseSite + ' )</div>') : (""))
  4708. );
  4709. $("#" + oldRSLCvalue).prop("checked", GM_getValue(oldRSLCvalue, false))
  4710. .change(changeConfiguration);
  4711. $targetNode.append('<br />');
  4712. }
  4713. });
  4714. $targetNode.append("<hr>");
  4715. //obsolete hosts checkbox
  4716. $targetNode.append('<input type="checkbox" id="Obsolete_file_hosts" /><label for="Obsolete_file_hosts">Obsolete file hosts</label>');
  4717. $("#Obsolete_file_hosts").prop("checked", GM_getValue("Obsolete_file_hosts", false))
  4718. .change(changeConfiguration);
  4719. $targetNode.append('<br />');
  4720. var foundName = "";
  4721. $.each(allObsoleteNames, function(i, site){
  4722. if (foundName = allObsoleteNames[i].match(searchRegex))
  4723. {
  4724. $targetNode.append('<div id="note">' + foundName[1] + '</div>');
  4725. }
  4726. })
  4727. }
  4728. var hostSearchBox = document.getElementById("hostSearchBox");
  4729. hostSearchBox.addEventListener('keyup', function(){buildSitelist(hostSearchBox.value, allHostNames, elmHostList);}, false);
  4730. var hostSearchBox2 = document.getElementById("hostSearchBox2");
  4731. hostSearchBox2.addEventListener('keyup', function(){buildSitelist(hostSearchBox2.value, allContainerNames, elmContainerList);}, false);
  4732. $(".warlc-ui-select-all").click(selectAll).button();
  4733. $(".warlc-ui-select-none").click(selectNone).button();
  4734. $(".warlc-ui-select-invert").click(selectInvert).button();
  4735. $(".warlc-ui-buttonset").buttonset();
  4736. var inColorLive = document.getElementById("inputColorLive");
  4737. inColorLive.addEventListener('keyup', changeColorLive, false);
  4738.  
  4739. var inColorDead = document.getElementById("inputColorDead");
  4740. inColorDead.addEventListener('keyup', changeColorDead, false);
  4741.  
  4742. var inColorTemp = document.getElementById("inputColorTemp");
  4743. inColorTemp.addEventListener('keyup', changeColorTemp, false);
  4744.  
  4745. var inColorCont = document.getElementById("inputColorCont");
  4746. inColorCont.addEventListener('keyup', changeColorCont, false);
  4747. var inColorprem = document.getElementById("inputColorprem");
  4748. inColorprem.addEventListener('keyup', changeColorprem, false);
  4749. $("#refAnonymizer").change(changeRefAnonymizer);
  4750. //buttons and edit boxes init end
  4751.  
  4752. //icon sets radio buttons
  4753. var radioButtons = document.getElementsByName("warlciconset");
  4754. radioButtons[Icon_set].checked = "checked";
  4755.  
  4756. radioButtons[0].addEventListener("change", updateIconSet);
  4757. radioButtons[1].addEventListener("change", updateIconSet);
  4758. radioButtons[2].addEventListener("change", updateIconSet);
  4759. radioButtons[3].addEventListener("change", updateIconSet);
  4760. function updateIconSet()
  4761. {
  4762. GM_setValue("Icon_set", this.value * 1);
  4763. }
  4764. //
  4765. $('#showCustomRulesReference').click(function(e){
  4766. e.preventDefault();
  4767. $('#customRulesReference').toggle();
  4768. });
  4769. $('#Custom_rules_text')
  4770. .val(Custom_rules_text)
  4771. .change(saveCustomRules);
  4772. function saveCustomRules(e)
  4773. {
  4774. var cr = parseCustomRules(this.value);
  4775. if (cr.info.length)
  4776. 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, ' '));
  4777. GM_setValue('Custom_rules_text', this.value);
  4778. GM_setValue('last_custom_rules_nag', ''+new Date().getTime()); //reset nag
  4779. }
  4780. }
  4781.  
  4782. //begin standard link checking algorithm
  4783. function start(filterId)
  4784. {
  4785. var doNotLinkify = Do_not_linkify_DL_links;
  4786.  
  4787. // USER SELECTED FILE HOSTS INITIALIZATION START
  4788. var http_file_hosts = new Array(); //standard hostings
  4789. var http_file_hosts_coded = new Array(); //hostings which has to be decoded to obtain real checkable link
  4790. var http_file_hosts_obsolete = new Array(); //dead hostings
  4791. var http_file_hosts_headers_only = new Array(); //hostings with direct download, must be handled via headers only
  4792.  
  4793. initFileHosts();
  4794. initFileHostsHeadersOnly();
  4795. initFileHostsCustom(); //CustomRules
  4796. // USER SELECTED FILE HOSTS INITIALIZATION END
  4797.  
  4798. // LINKIFICATION START
  4799. var totalxpath = '';
  4800. var totalxpathcoded = '';
  4801. var totalxpathobsolete = '';
  4802. var totalxpathheadersonly = '';
  4803. var totalourls = '';
  4804.  
  4805. var filehostLen = http_file_hosts.length;
  4806. var filehostCodedLen = http_file_hosts_coded.length;
  4807. var filehostObsoleteLen = http_file_hosts_obsolete.length;
  4808. var filehostHeadersOnlyLen = http_file_hosts_headers_only.length;
  4809.  
  4810. var filehostIdx = filehostLen;
  4811. var filehostCodedIdx = filehostCodedLen;
  4812. var filehostObsoleteIdx = filehostObsoleteLen;
  4813. var filehostHeadersOnlyIdx = filehostHeadersOnlyLen;
  4814.  
  4815. if ((filehostIdx == 0) && (filehostCodedIdx == 0) && (filehostHeadersOnlyIdx == 0) && (filehostObsoleteIdx == 0))
  4816. return;
  4817.  
  4818. while (filehostIdx--)
  4819. {
  4820. totalourls += http_file_hosts[filehostIdx][0] + '|';
  4821. totalxpath += http_file_hosts[filehostIdx][4] + '|';
  4822. }
  4823.  
  4824. while (filehostCodedIdx--)
  4825. {
  4826. totalourls += http_file_hosts_coded[filehostCodedIdx][0] + '|';
  4827. totalxpathcoded += http_file_hosts_coded[filehostCodedIdx][3] + '|';
  4828. }
  4829.  
  4830. while (filehostObsoleteIdx--)
  4831. {
  4832. totalourls += http_file_hosts_obsolete[filehostObsoleteIdx][0] + '|';
  4833. totalxpathobsolete += http_file_hosts_obsolete[filehostObsoleteIdx][1] + '|';
  4834. }
  4835.  
  4836. while (filehostHeadersOnlyIdx--)
  4837. {
  4838. totalourls += http_file_hosts_headers_only[filehostHeadersOnlyIdx][0] + '|';
  4839. totalxpathheadersonly += http_file_hosts_headers_only[filehostHeadersOnlyIdx][3] + '|';
  4840. }
  4841.  
  4842. totalourls = totalourls.replace(/\|$/g, "");
  4843. //TODO: further refactoring needed
  4844. totalxpath = totalxpath.replace(/\]\|\/\/a\[/g, " or ");
  4845. totalxpath = totalxpath.replace(/\]\|/, ')]');
  4846. totalxpathcoded = totalxpathcoded.replace(/\]\|\/\/a\[/g, " or ");
  4847. totalxpathcoded = totalxpathcoded.replace(/\]\|/, ')]');
  4848. totalxpathobsolete = totalxpathobsolete.replace(/\]\|\/\/a\[/g, " or ");
  4849. totalxpathobsolete = totalxpathobsolete.replace(/\]\|/, ')]');
  4850. totalxpathheadersonly = totalxpathheadersonly.replace(/\]\|\/\/a\[/g, " or ");
  4851. totalxpathheadersonly = totalxpathheadersonly.replace(/\]\|/, ')]');
  4852. if (filterId != null) //insert id restriction in the xpath
  4853. {
  4854. totalxpath = totalxpath.replace(/\[/g, "[@class='" + filterId + "' and (");
  4855. totalxpathcoded = totalxpathcoded.replace(/\[/g, "[@class='" + filterId + "' and (");
  4856. totalxpathobsolete = totalxpathobsolete.replace(/\[/g, "[@class='" + filterId + "' and (");
  4857. totalxpathheadersonly = totalxpathheadersonly.replace(/\[/g, "[@class='" + filterId + "' and (");
  4858. }
  4859. else
  4860. {
  4861. totalxpath = totalxpath.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4862. totalxpathcoded = totalxpathcoded.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4863. totalxpathobsolete = totalxpathobsolete.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4864. totalxpathheadersonly = totalxpathheadersonly.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4865. }
  4866. linkify(totalourls);
  4867. //LINKIFICATION END
  4868. //ENCRYPTED LINKS PROCESSING START
  4869. if (http_file_hosts_coded.length > 0)
  4870. {
  4871. var linksCoded = document.evaluate(totalxpathcoded, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4872.  
  4873. // decrypt coded links (redirects, link protectors etc.)
  4874. if (linksCoded.snapshotLength > 0)
  4875. {
  4876. var link;
  4877. var reallinkreg;
  4878. var reallinkcorrection;
  4879.  
  4880. if (filterId == null)
  4881. {
  4882. cLinksTotal += linksCoded.snapshotLength;
  4883. }
  4884.  
  4885. var y = linksCoded.snapshotLength - 1;
  4886. do
  4887. {
  4888. // linksCoded.snapshotItem(y).id = 'processing_link';
  4889. link = linksCoded.snapshotItem(y);
  4890. filehostIdx = filehostCodedLen;
  4891. while (filehostIdx--)
  4892. {
  4893. if (link.href.match(http_file_hosts_coded[filehostIdx][0]))
  4894. {
  4895. link.href = link.href.replace(/http:\/\/.*?(?:\?|=)http:\/\//, 'http://');
  4896. reallinkreg = http_file_hosts_coded[filehostIdx][1];
  4897. reallinkcorrection = http_file_hosts_coded[filehostIdx][2];
  4898.  
  4899. decurl(link, reallinkreg, reallinkcorrection);
  4900. break;
  4901. }
  4902. }
  4903. }
  4904. while (y--);
  4905. }
  4906. }
  4907. //ENCRYPTED LINKS PROCESSING END
  4908.  
  4909. //STANDARD LINKCHECKING START
  4910. if (http_file_hosts.length > 0)
  4911. {
  4912. var lianks = document.evaluate(totalxpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4913.  
  4914. if (filterId == null)
  4915. {
  4916. cLinksTotal += lianks.snapshotLength;
  4917. }
  4918.  
  4919. if (lianks.snapshotLength > 0)
  4920. {
  4921. var link;
  4922.  
  4923. var URL = "";
  4924. var name = "";
  4925. var isAliveRegex = "";
  4926. var isDeadRegex = "";
  4927. var isUnavaRegex = "";
  4928. var ispremRegex = "";
  4929. var tryLoop = false;
  4930.  
  4931. var y = lianks.snapshotLength;
  4932.  
  4933. while (y--)
  4934. {
  4935. link = lianks.snapshotItem(y);
  4936.  
  4937. filehostIdx = filehostLen;
  4938. while (filehostIdx--)
  4939. {
  4940. if (link.href.match(http_file_hosts[filehostIdx][0]))
  4941. {
  4942. link.href = link.href.replace(/http:\/\/.*?http:\/\//, 'http://'); //anonymizers
  4943. isAliveRegex = http_file_hosts[filehostIdx][1];
  4944. isDeadRegex = http_file_hosts[filehostIdx][2];
  4945. isUnavaRegex = http_file_hosts[filehostIdx][3];
  4946. ispremRegex = http_file_hosts[filehostIdx][6];
  4947. tryLoop = http_file_hosts[filehostIdx][5];
  4948.  
  4949. geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, tryLoop);
  4950.  
  4951. break;
  4952. }
  4953. }
  4954. }
  4955. }
  4956. }
  4957. //STANDARD LINKCHECKING END
  4958. //OBSOLETE FILE HOSTS PROCESSING START
  4959. if (filehostObsoleteLen > 0)
  4960. {
  4961. var obsoletelinks = document.evaluate(totalxpathobsolete, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4962.  
  4963. var obsoleteLink;
  4964.  
  4965. //check links
  4966. if (obsoletelinks.snapshotLength > 0)
  4967. {
  4968. var y = obsoletelinks.snapshotLength;
  4969.  
  4970. if (filterId == null)
  4971. {
  4972. cLinksTotal += y;
  4973. }
  4974.  
  4975. while (y--)
  4976. {
  4977. obsoleteLink = obsoletelinks.snapshotItem(y);
  4978.  
  4979. if (Display_tooltip_info)
  4980. {
  4981. obsoleteLink.warlc_error = 'Cause of error: <b>Obsolete filehosting.</b>';
  4982. }
  4983. displayTheCheckedLink(obsoleteLink, 'adead_link');
  4984. }
  4985. }
  4986. }
  4987. //OBSOLETE FILE HOSTS PROCESSING END
  4988.  
  4989. //DIRECT LINKCHECKING START
  4990. if (http_file_hosts_headers_only.length > 0)
  4991. {
  4992. var links = document.evaluate(totalxpathheadersonly, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4993.  
  4994. //check links
  4995. if (links.snapshotLength > 0)
  4996. {
  4997. var link;
  4998. var isAliveRegex;
  4999. var isDeadRegex;
  5000. var ispremRegex;
  5001.  
  5002. var y = links.snapshotLength;
  5003.  
  5004.  
  5005. if (filterId == null)
  5006. {
  5007. cLinksTotal += y;
  5008. }
  5009.  
  5010. while (y--)
  5011. {
  5012. // links.snapshotItem(y).id = 'processing_link';
  5013. link = links.snapshotItem(y);
  5014. filehostIdx = filehostHeadersOnlyLen;
  5015. while (filehostIdx--)
  5016. {
  5017. if (link.href.match(http_file_hosts_headers_only[filehostIdx][0]))
  5018. {
  5019. link.href = link.href.replace(/http:\/\/.*?(?:\?|=)http:\/\//, 'http://');
  5020. isAliveRegex = http_file_hosts_headers_only[filehostIdx][1];
  5021. isDeadRegex = http_file_hosts_headers_only[filehostIdx][2];
  5022. ispremRegex = http_file_hosts_headers_only[filehostIdx][3];
  5023.  
  5024. geturlHeader(link, isAliveRegex, isDeadRegex, ispremRegex);
  5025.  
  5026. break;
  5027. }
  5028. }
  5029. }
  5030.  
  5031. }
  5032. }
  5033. //DIRECT LINKCHECKING END
  5034.  
  5035.  
  5036. //finds the real url on the page, replaces link.href with it and calls geturl
  5037. function decurl(link, reallinkreg, reallinkcorrection)
  5038. {
  5039.  
  5040. GM_xmlhttpRequest(
  5041. {
  5042. method: 'GET',
  5043. url: link.href,
  5044. headers: {
  5045. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  5046. 'Accept': 'text/xml',
  5047. 'Referer': ""
  5048. },
  5049. onload: function (result)
  5050. {
  5051. // cLinksProcessed++;
  5052.  
  5053. var reallink = result.responseText.match(reallinkreg)[0];
  5054. reallink = reallink.replace(new RegExp(reallinkcorrection, "g"), "");
  5055.  
  5056. link.href = reallink;
  5057.  
  5058. var i = http_file_hosts.length - 1;
  5059. do
  5060. {
  5061. if ((reallink.match(http_file_hosts[i][0])))
  5062. {
  5063. link.href = link.href.replace(/http:\/\/.*?\?http:\/\//, 'http://');
  5064. var isAliveRegex = http_file_hosts[i][1];
  5065. var isDeadRegex = http_file_hosts[i][2];
  5066. var isUnavaRegex = http_file_hosts[i][3];
  5067. var ispremRegex = http_file_hosts[i][4];
  5068.  
  5069. geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, 50);
  5070.  
  5071. break;
  5072. }
  5073. }
  5074. while (i--);
  5075. }
  5076. });
  5077. }
  5078.  
  5079. function randUA()
  5080. {
  5081. //TODO
  5082. }
  5083. //Processes link
  5084. //
  5085. // [string] link link URL
  5086. // [string] isAliveRegex alive link regex
  5087. // [string] isDeadRegex dead link regex
  5088. // [string] isUnavaRegex unavailable link regex
  5089. // [string] ispremRegex premium link regex
  5090. // [boolean] tryLoop repeats request until succeeded
  5091. function geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, tryLoop)
  5092. {
  5093. GM_xmlhttpRequest(
  5094. {
  5095. method: 'GET',
  5096. url: link.href,
  5097. headers: {
  5098. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  5099. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  5100. 'Referer': ""
  5101. },
  5102. onload: function (result)
  5103. {
  5104. var res = result.responseText;
  5105. if (result.responseHeaders.match(/Content-Disposition: attachment; filename=/))//direct download, simple version
  5106. {
  5107. displayTheCheckedLink(link, 'alive_link');
  5108. return;
  5109. }
  5110.  
  5111. if (res.match(isAliveRegex))
  5112. {
  5113. displayTheCheckedLink(link, 'alive_link');
  5114. return;
  5115. }
  5116.  
  5117. if (res.match(isDeadRegex))
  5118. {
  5119. displayTheCheckedLink(link, 'adead_link');
  5120. return;
  5121. }
  5122.  
  5123. if (isUnavaRegex && res.match(isUnavaRegex))
  5124. {
  5125. displayTheCheckedLink(link, 'unava_link');
  5126. return;
  5127. }
  5128. if (res.match(ispremRegex))
  5129. {
  5130. displayTheCheckedLink(link, 'prem_link');
  5131. return;
  5132. }
  5133.  
  5134. var resStatus = result.status;
  5135.  
  5136. if (resStatus == 404)
  5137. {
  5138. displayTheCheckedLink(link, 'adead_link');
  5139. }
  5140. if (resStatus == 500 || resStatus == 503 || resStatus == 403) //not found/available/temp. unava
  5141. {
  5142. if (tryLoop)
  5143. {
  5144. //wait 1-5 seconds and repeat the request
  5145. setTimeout(function(){geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, tryLoop)}, 1000 + (Math.random() * 4000));
  5146. }
  5147. else
  5148. {
  5149. displayTheCheckedLink(link, 'unava_link');
  5150. }
  5151.  
  5152. return;
  5153. }
  5154. },
  5155. onerror: function ()
  5156. {
  5157. displayTheCheckedLink(link, 'unava_link');
  5158. }
  5159. });
  5160. }
  5161.  
  5162. function geturlHeader(link, isAliveRegex, isDeadRegex, ispremRegex)
  5163. {
  5164. GM_xmlhttpRequest(
  5165. {
  5166. method: 'HEAD',
  5167. url: link.href,
  5168. headers: {
  5169. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  5170. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  5171. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  5172. 'Referer': ""
  5173. },
  5174. onload: function (result)
  5175. {
  5176. var resStatus = result.status;
  5177. var resHeaders = "";
  5178. if (resStatus == 403 || resStatus == 404 || resStatus == 500) //not found/available
  5179. {
  5180. displayTheCheckedLink(link, 'adead_link');
  5181. return;
  5182. }
  5183.  
  5184. resHeaders = result.responseHeaders;
  5185.  
  5186. if (resHeaders.match(isDeadRegex))
  5187. {
  5188. displayTheCheckedLink(link, 'adead_link');
  5189. return;
  5190. }
  5191.  
  5192. if (resHeaders.match(isAliveRegex))
  5193. {
  5194. displayTheCheckedLink(link, 'alive_link');
  5195. return;
  5196. }
  5197. if (resHeaders.match(ispremRegex))
  5198. {
  5199. displayTheCheckedLink(link, 'prem_link');
  5200. return;
  5201. }
  5202. },
  5203. onerror: function ()
  5204. {
  5205. displayTheCheckedLink(link, 'unava_link');
  5206. }
  5207. });
  5208. }
  5209.  
  5210. //Delinkfifies the <a> element object
  5211. function delinkifyLink(link)
  5212. {
  5213. var spanElm = document.createElement("span");
  5214. spanElm.className = link.className;
  5215. spanElm.innerHTML = link.innerHTML;
  5216.  
  5217. if (Display_tooltip_info)
  5218. {
  5219. spanElm.href = link.href;
  5220. spanElm.warlc_error = link.warlc_error;
  5221. switch (link.className){
  5222. case "alive_link": spanElm.addEventListener("mouseover", displayTooltipInfo, false); break
  5223. case "adead_link": spanElm.addEventListener("mouseover", displayTooltipError, false); break;
  5224. case "unava_link": //reserved
  5225. case "prem_link": spanElm.addEventListener("mouseover", displayTooltipError, false); break;
  5226. default:
  5227. }
  5228. }
  5229. link.parentNode.replaceChild(spanElm, link);
  5230. }
  5231.  
  5232. //Assigns result status to the <a> element object and calls delinkifying eventually
  5233. //Possible result states: adead_link, alive_link, unava_link, prem_link
  5234. function displayTheCheckedLink(link, resultStatus)
  5235. {
  5236. link.className = resultStatus;
  5237. link.href = Ref_anonymize_service + link.href;
  5238. if (Display_tooltip_info)
  5239. {
  5240. switch (resultStatus){
  5241. case "alive_link": link.addEventListener("mouseover", displayTooltipInfo, false); break
  5242. case "adead_link": link.addEventListener("mouseover", displayTooltipError, false); break;
  5243. case "unava_link": //reserved
  5244. case "prem_link": link.addEventListener("mouseover", displayTooltipInfo, false); break
  5245. default:
  5246. }
  5247. }
  5248. if (doNotLinkify)
  5249. {
  5250. delinkifyLink(link);
  5251. }
  5252. cLinksProcessed++;
  5253.  
  5254. if (resultStatus == "alive_link")
  5255. {
  5256. cLinksAlive++;
  5257. return;
  5258. }
  5259.  
  5260. if (resultStatus == "adead_link")
  5261. {
  5262. cLinksDead++;
  5263. return;
  5264. }
  5265.  
  5266. if (resultStatus == "unava_link")
  5267. {
  5268. cLinksUnava++;
  5269. }
  5270. if (resultStatus == "prem_link")
  5271. {
  5272. cLinksprem++;
  5273. return;
  5274. }
  5275. }
  5276.  
  5277.  
  5278. function initFileHosts()
  5279. {
  5280.  
  5281. function addObsoleteHost(linkRegex, xpathEx)
  5282. {
  5283. var host = new Array(2);
  5284. host[0] = linkRegex;
  5285. host[1] = xpathEx;
  5286. http_file_hosts_obsolete.push(host);
  5287. }
  5288.  
  5289. //obsolete file hosts init start
  5290. if (Obsolete_file_hosts)
  5291. {
  5292. addObsoleteHost("uloz\.cz\/show\/file","//a[contains(@href,'uloz.cz')]");
  5293. addObsoleteHost("storage\\.to\/get","//a[contains(@href,'storage.to')]");
  5294. addObsoleteHost("iskladka\\.cz\/download","//a[contains(@href,'iskladka.cz')]");
  5295. addObsoleteHost("file-rack\\.com\/files","//a[contains(@href,'file-rack.com')]");
  5296. addObsoleteHost("fast-load\\.net\/(\/)?index","//a[contains(@href,'fast-load.net')]");
  5297. addObsoleteHost("subory\\.sk\/download","//a[contains(@href,'subory.sk')]");
  5298. addObsoleteHost("bigandfree\\.com\/\\d+","//a[contains(@href,'bigandfree.com')]");
  5299. addObsoleteHost("fileop\\.com\/\\w+","//a[contains(@href,'fileop.com')]");
  5300. addObsoleteHost("mujsoubor\\.cz\/file\/","//a[contains(@href,'mujsoubor.cz')]");
  5301. addObsoleteHost("sendfile\\.to\/\\w+","//a[contains(@href,'sendfile.to')]");
  5302. addObsoleteHost("superfastfile\\.com\/\\w+","//a[contains(@href,'superfastfile.com')]");
  5303. addObsoleteHost("quickyshare\\.com\/\\w+","//a[contains(@href,'quickyshare.com/')]");
  5304. addObsoleteHost("duckload\\.com\/(?:d|play)","//a[contains(@href,'duckload.com')]");
  5305. addObsoleteHost("uploadstore\\.net\/\\w+","//a[contains(@href,'uploadstore.net')]");
  5306. addObsoleteHost("meinupload\\.com\/dl\/\\d+","//a[contains(@href,'meinupload.com/dl')]");
  5307. addObsoleteHost("dualshare\\.com\/\\w+","//a[contains(@href,'dualshare.com')]");
  5308. addObsoleteHost("2xupload\\.(?:to|de)\/file\/\\w+","//a[contains(@href,'2xupload.to') or contains(@href,'2xupload.de')]");
  5309. addObsoleteHost("oxedion\\.com\/index\\.php\/download\/\\w+","//a[contains(@href,'oxedion.com/index')]");
  5310. addObsoleteHost("uploadline\\.com\/\\d+","//a[contains(@href,'uploadline.com')]");
  5311. addObsoleteHost("dll\\.bz\/file\/\\d+","//a[contains(@href,'dll.bz/file')]");
  5312. addObsoleteHost("movieshare\\.in\/\\w+","//a[contains(@href,'movieshare.in')]");
  5313. addObsoleteHost("milledrive\\.com\/files\/\\d+","//a[contains(@href,'milledrive.com')]");
  5314. addObsoleteHost("quickupload\\.net\/\\w+","//a[contains(@href,'quickupload.net')]");
  5315. addObsoleteHost("safelink\\.in\/\\w+","//a[contains(@href,'safelink.in')]");
  5316. addObsoleteHost("pyramidfiles\\.com\/\\w+","//a[contains(@href,'pyramidfiles.com/')]");
  5317. addObsoleteHost("(?:cloudnator|shragle)\\.com\/files","//a[contains(@href,'cloudnator.com/files') or contains(@href,'shragle.com/files')]");
  5318. addObsoleteHost("batshare\\.com\/\\w+","//a[contains(@href,'batshare.com/')]");
  5319. addObsoleteHost("bitroad\\.net\/download","//a[contains(@href,'bitroad.net/download')]");
  5320. addObsoleteHost("metadivx\\.com\/\\w+","//a[contains(@href,'metadivx.com')]");
  5321. addObsoleteHost("filegaze\\.com\/\\w+","//a[contains(@href,'filegaze.com/')]");
  5322. addObsoleteHost("bulletupload\\.com\/\\w+","//a[contains(@href,'bulletupload.com/')]");
  5323. addObsoleteHost("sharefilehost\\.com\/\\w+","//a[contains(@href,'sharefilehost.com/')]");
  5324. addObsoleteHost("fireuploads\\.net\/\\w+","//a[contains(@href,'fireuploads.net/')]");
  5325. addObsoleteHost("divxlink\\.com\/\\w+","//a[contains(@href,'divxlink.com/')]");
  5326. addObsoleteHost("bzlink\\.us\/\\w+","//a[contains(@href,'bzlink.us/')]");
  5327. addObsoleteHost("filetechnology\\.com\/\\w+","//a[contains(@href,'filetechnology.com/')]");
  5328. addObsoleteHost("filecosy\\.com\/\\w+","//a[contains(@href,'filecosy.com/')]");
  5329. addObsoleteHost("fileserver\\.cc\/\\w+","//a[contains(@href,'fileserver.cc/')]");
  5330. addObsoleteHost("shafiles\\.me\/\\w+","//a[contains(@href,'shafiles.me/')]");
  5331. addObsoleteHost("xfileshare\\.eu\/\\w+","//a[contains(@href,'xfileshare.eu/')]");
  5332. addObsoleteHost("uploadboost\\.com\/\\w+","//a[contains(@href,'uploadboost.com/')]");
  5333. addObsoleteHost("uploadoz\\.com\/\\w+","//a[contains(@href,'uploadoz.com/')]");
  5334. addObsoleteHost("ihostia\\.com\/\\w+","//a[contains(@href,'ihostia.com/')]");
  5335. addObsoleteHost("shareupload\\.com\/\\w+","//a[contains(@href,'shareupload.com/')]");
  5336. addObsoleteHost("ovfile\\.com\/\\w+","//a[contains(@href,'ovfile.com/')]");
  5337. addObsoleteHost("stahuj\\.to\/\\w+","//a[contains(@href,'stahuj.to/')]");
  5338. addObsoleteHost("gigfiles\\.net\/\\w+","//a[contains(@href,'gigfiles.net/')]");
  5339. addObsoleteHost("vidhog\\.com\/\\w+","//a[contains(@href,'vidhog.com/')]");
  5340. addObsoleteHost("filelaser\\.com\/\\w+","//a[contains(@href,'filelaser.com/')]");
  5341. addObsoleteHost("holderfile\\.com\/\\w+","//a[contains(@href,'holderfile.com/')]");
  5342. addObsoleteHost("fileduct\\.(?:com|net)\/\\w+","//a[contains(@href,'fileduct.com/') or contains(@href,'fileduct.net')]");
  5343. addObsoleteHost("filefat\\.com\/\\w+","//a[contains(@href,'filefat.com/')]");
  5344. addObsoleteHost("restfile\\.com\/\\w+","//a[contains(@href,'restfile.com/')]");
  5345. addObsoleteHost("filemashine\\.com\\/download\/\\w+","//a[contains(@href,'filemashine.com/download')]");
  5346. addObsoleteHost("cloudnxt\\.net\/\\w+","//a[contains(@href,'cloudnxt.net/')]");
  5347. addObsoleteHost("uploadrack\\.com\/\\w+","//a[contains(@href,'uploadrack.com')]");
  5348. addObsoleteHost("teradepot\\.com\/\\w+","//a[contains(@href,'teradepot.com')]");
  5349. addObsoleteHost("dataup\\.to\/\\d+\/","//a[contains(@href,'dataup.to')]");
  5350. addObsoleteHost("upit\\.to\/file:\\d+","//a[contains(@href,'upit.to/file')]");
  5351. addObsoleteHost("badongo\\.(?:com|net)\/(?:\\w\\w\/|)(?:vid|cfile|file|pt)\/\\w+","//a[contains(@href,'badongo.com') or contains(@href,'badongo.net')]");
  5352. addObsoleteHost("driveway\\.com\/\\w+","//a[contains(@href,'driveway.com')]");
  5353. addObsoleteHost("eatlime\\.com\/download","//a[contains(@href,'eatlime.com/download')]");
  5354. addObsoleteHost("a2zuploads\\.com\/id\\w+","//a[contains(@href,'a2zuploads.com/id')]");
  5355. addObsoleteHost("friendlyfiles\\.net\/download\/\\w+\/","//a[contains(@href,'friendlyfiles.net/download')]");
  5356. addObsoleteHost("flyfile\\.us\/\\w+","//a[contains(@href,'flyfile.us')]");
  5357. addObsoleteHost("speedyshare\\.com\/\\w+","//a[contains(@href,'speedyshare.com')]");
  5358. addObsoleteHost("brontofile\\.com\/download","//a[contains(@href,'brontofile.com/download')]");
  5359. addObsoleteHost("uploadspace\\.eu\/\\w+","//a[contains(@href,'uploadspace.eu')]");
  5360. addObsoleteHost("fooget\\.com\/\\w+","//a[contains(@href,'fooget.com/')]");
  5361. addObsoleteHost("file-bit.net\/\\w+","//a[contains(@href,'file-bit.net/')]");
  5362. addObsoleteHost("keepfile\\.com\/\\w+","//a[contains(@href,'http://keepfile.com')]");
  5363. addObsoleteHost("piggyshare\\.com\/file\/\\w+","//a[contains(@href,'piggyshare.com')]");
  5364. addObsoleteHost("filecrown\\.com\/\\w+","//a[contains(@href,'filecrown.com')]");
  5365. addObsoleteHost("6giga\\.com\/\\w+","//a[contains(@href,'6giga.com')]");
  5366. addObsoleteHost("uploadjockey\\.com\/download\/\\w+","//a[contains(@href,'uploadjockey.com/download')]");
  5367. addObsoleteHost("bluehost\\.to\/dl=\\w+","//a[contains(@href,'bluehost.to')]");
  5368. addObsoleteHost("coolshare\\.cz\/stahnout\/\\w+","//a[contains(@href,'coolshare.cz/stahnout')]");
  5369. addObsoleteHost("filegu\\.ru\/f\/\\w+","//a[contains(@href,'filegu.ru/f')]");
  5370. addObsoleteHost("filebase\\.to\/files\/\\d+\/","//a[contains(@href,'filebase.to/files')]");
  5371. addObsoleteHost("kickload\\.com\/(?:file|get)\/","//a[contains(@href,'kickload.com/file') or contains(@href,'kickload.com/get')]");
  5372. addObsoleteHost("up-file\\.com\/files\/download\/\\w+\/","//a[contains(@href,'up-file.com/download')]");
  5373. addObsoleteHost("ezyfile\\.net\/\\w+","//a[contains(@href,'ezyfile.net/')]");
  5374. addObsoleteHost("k2files\\.com\/files","//a[contains(@href,'k2files.com/files')]");
  5375. addObsoleteHost("aiotool\\.net\/\\w+","//a[contains(@href,'aiotool.net/')]");
  5376. addObsoleteHost("xvideos\\.com\/files\/\\d+\/\\w+","//a[contains(@href,'xvideos.com/files')]");
  5377. addObsoleteHost("filebling\\.com\/dl\/\\d+\/\\d+\/\\w+","//a[contains(@href,'filebling.com/dl')]");
  5378. addObsoleteHost("loaded\\.it\/divx\/\\w+","//a[contains(@href,'loaded.it/divx')]");
  5379. addObsoleteHost("uploadcell\\.com\/\\w+\/\\w+","//a[contains(@href,'uploadcell.com')]");
  5380. addObsoleteHost("jakfile\\.com\/\\w+","//a[contains(@href,'jakfile.com/')]");
  5381. addObsoleteHost("uploadshare\\.cz\/download\/\\w+\/\\w+","//a[contains(@href,'uploadshare.cz/download')]");
  5382. addObsoleteHost("mangoshare\\.com\/\\w+","//a[contains(@href,'mangoshare.com')]");
  5383. addObsoleteHost("ugotfile\\.com\/file\/\\d+\/\\w+","//a[contains(@href,'ugotfile.com/file')]");
  5384. addObsoleteHost("filestab\\.com\/\\w+","//a[contains(@href,'filestab.com')]");
  5385. addObsoleteHost("dotavi\\.com\/\\w+\/.","//a[contains(@href,'dotavi.com/')]");
  5386. addObsoleteHost("crazyupload\\.com\/\\w+","//a[contains(@href,'crazyupload.com')]");
  5387. addObsoleteHost("gaiafile\\.com\/\\w+","//a[contains(@href,'gaiafile.com')]");
  5388. addObsoleteHost("sharejunky\\.com\/\\w+","//a[contains(@href,'sharejunky.com')]");
  5389. addObsoleteHost("fileho\\.com\/download\/\\d+","//a[contains(@href,'fileho.com/download')]");
  5390. addObsoleteHost("(?:bigandfree|BigAndFree)\\.com\/\\d+","//a[contains(@href,'bigandfree.com') or contains(@href,'BigAndFree.com')]");
  5391. addObsoleteHost("bigfile\\.in\/\\w+","//a[contains(@href,'bigfile.in')]");
  5392. addObsoleteHost("bigshare\\.eu\/download\\.php\\?id=","//a[contains(@href,'bigshare.eu/download.php')]");
  5393. addObsoleteHost("dahosting\\.org\/dl\/\\w+","//a[contains(@href,'dahosting.org/dl')]");
  5394. addObsoleteHost("digisofts\\.net\/\\w+","//a[contains(@href,'digisofts.net')]");
  5395. addObsoleteHost("file4save\\.com\/\\w+\/\\w+","//a[contains(@href,'file4save.com')]");
  5396. addObsoleteHost("filereactor\\.com\/\\w+","//a[contains(@href,'filereactor.com/')]");
  5397. addObsoleteHost("filechip\\.com\/\\w+","//a[contains(@href,'filechip.com')]");
  5398. addObsoleteHost("filescloud\\.com\/\\w+\/\\w+","//a[contains(@href,'filescloud.com')]");
  5399. addObsoleteHost("saveqube\\.com\/getfile\/\\w+","//a[contains(@href,'saveqube.com/getfile')]");
  5400. addObsoleteHost("www2\\.turboshare\\.de\/v\/\\d+","//a[contains(@href,'turboshare.de/v')]");
  5401. addObsoleteHost("z-upload\\.com\/\\w+","//a[contains(@href,'z-upload.com')]");
  5402. addObsoleteHost("youshare\\.com\/view\\.php","//a[contains(@href,'youshare.com/view')]");
  5403. addObsoleteHost("jiffyupload\\.com\/\\w+","//a[contains(@href,'jiffyupload.com')]");
  5404. addObsoleteHost("gigeshare\\.com\/preview\/\\w+","//a[contains(@href,'gigeshare.com')]");
  5405. addObsoleteHost("datenklo\\.net\/dl","//a[contains(@href,'datenklo.net')]");
  5406. addObsoleteHost("upload\\.dj\/download\\.php\\?id=\\w+","//a[contains(@href,'upload.dj/download.php')]");
  5407. addObsoleteHost("loadfiles\\.in\/\\w+\/","//a[contains(@href,'loadfiles.in')]");
  5408. addObsoleteHost("upit\\.to\/file:\\w+\/","//a[contains(@href,'upit.to/file')]");
  5409. addObsoleteHost("zshare\\.net\/(?:download|video|audio)\/\\w+","//a[contains(@href,'zshare.net/')]");
  5410. addObsoleteHost("refile\\.net\/f\/\\?\\w+","//a[contains(@href,'refile.net/f/')]");
  5411. addObsoleteHost("dsfileshare\\.com\/download","//a[contains(@href,'dsfileshare.com/download')]");
  5412. addObsoleteHost("sharesimple\\.net\/\\w{2}\/download","//a[contains(@href,'sharesimple.net')]");
  5413. addObsoleteHost("(?:s\\d+\\.|)4files\\.net\/\\d+","//a[contains(@href,'4files.net')]");
  5414. addObsoleteHost("odsiebie\\.com\/pokaz\/\\d+","//a[contains(@href,'odsiebie.com/pokaz')]");
  5415. addObsoleteHost("filenavi\\.com\/direct\/\\w+","//a[contains(@href,'filenavi.com/direct')]");
  5416. addObsoleteHost("3oof\\.com\/\\w+","//a[contains(@href,'3oof.com/')]");
  5417. addObsoleteHost("meshwaar\\.com\/\\w+","//a[contains(@href,'meshwaar.com')]");
  5418. addObsoleteHost("maxupload\\.com\/files\/\\w+","//a[contains(@href,'maxupload.com/files')]");
  5419. addObsoleteHost("share\\.cx\/videos\/\\d+","//a[contains(@href,'share.cx/videos')]");
  5420. addObsoleteHost("atserver\\.eu\/(?:\\w{2}\/|)download\/\\d+","//a[contains(@href,'atserver.eu')]");
  5421. addObsoleteHost("file2upload\\.net\/download\/\\d+","//a[contains(@href,'file2upload.net/download')]");
  5422. addObsoleteHost("filebling\\.com\/\\w+","//a[contains(@href,'filebling.com')]");
  5423. addObsoleteHost("turboshare\\.(?:eu|com)\/files","//a[contains(@href,'turboshare.') and contains(@href,'/files')]");
  5424. addObsoleteHost("rarhost\\.com\/download","//a[contains(@href,'rarhost.com/download')]");
  5425. addObsoleteHost("isharehd\\.com\/\\w+","//a[contains(@href,'isharehd.com')]");
  5426. addObsoleteHost("datenklo\\.net\/file\\.php\\?id=\\w+","//a[contains(@href,'datenklo.net/file.php')]");
  5427. addObsoleteHost("file2share\\.biz\/download\\.php\\?id=\\w+","//a[contains(@href,'file2share.biz/download.php')]");
  5428. addObsoleteHost("savefiles\\.net\/d\/\\w+\\.html","//a[contains(@href,'savefiles.net/d')]");
  5429. addObsoleteHost("bestsharing\\.com\/files\/\\w+","//a[contains(@href,'bestsharing.com/files')]");
  5430. addObsoleteHost("filecache\\.de\/\\d+","//a[contains(@href,'filecache.de/')]");
  5431. addObsoleteHost("i741\\.com\/files\/\\w+","//a[contains(@href,'i741.com/files')]");
  5432. addObsoleteHost("dataup\\.de\/\\d+","//a[contains(@href,'dataup.de')]");
  5433. addObsoleteHost("fofly\\.com\/\\w+","//a[contains(@href,'fofly.com')]");
  5434. addObsoleteHost("shareonall\\.com\/\\w+","//a[contains(@href,'shareonall.com')]");
  5435. addObsoleteHost("sexuploader\\.com\/(?:|..\/)\\?[d|v]=\\w{8}","//a[contains(@href,'sexuploader.com')]");
  5436. 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')]");
  5437. addObsoleteHost("uploadhyper\\.com\/file\/","//a[contains(@href,'uploadhyper.com')]");
  5438. addObsoleteHost("filespawn\\.com\/file\/","//a[contains(@href,'filespawn.com')]");
  5439. addObsoleteHost("caizzii\\.com\/(?:download|\\?file=)","//a[contains(@href,'caizzii.com')]");
  5440. addObsoleteHost("volnyweb\\.cz\/files\/get\/[\\w-_]+","//a[contains(@href,'volnyweb.cz/files')]");
  5441. addObsoleteHost("gotupload\\.com\/\\w+","//a[contains(@href,'gotupload.com/')]");
  5442. addObsoleteHost("mooload\\.com\/new\/file\\.php\\?file=files\/\\d+\/\\d+","//a[contains(@href,'mooload.com/new/file')]");
  5443. addObsoleteHost("z\\d+\\.zupload\\.com\/download\\.php\\?file=getfile&filepath=\\d+","//a[contains(@href,'zupload.com/download')]");
  5444. addObsoleteHost("mytempdir\\.com\/\\d+","//a[contains(@href,'mytempdir.com/')]");
  5445. addObsoleteHost("usershare\\.net\/\\w+","//a[contains(@href,'usershare.net/')]");
  5446. addObsoleteHost("qshare\\.com\/get\/\\d+\/.","//a[contains(@href,'qshare.com/get')]");
  5447. addObsoleteHost("filescash\\.net\/file\/\\d+","//a[contains(@href,'filescash.net/file')]");
  5448. addObsoleteHost("metahyper\\.com\/\\w+","//a[contains(@href,'metahyper.com/')]");
  5449. addObsoleteHost("combozip\\.com\/\\w+","//a[contains(@href,'combozip.com/')]");
  5450. addObsoleteHost("anonstream\\.com\/get_\\w+","//a[contains(@href,'anonstream.com/get_')]");
  5451. addObsoleteHost("x7\\.to\/\\w+","//a[contains(@href,'x7.to/')]");
  5452. addObsoleteHost("uploadbox\\.com\/files\/\\w+","//a[contains(@href,'uploadbox.com/files')]");
  5453. addObsoleteHost("(?:flyupload\\.)?(?:enterupload|flyupload)\\.com\/[\\?\\w]+","//a[contains(@href,'enterupload.com/') or contains(@href,'flyupload.com/')]");
  5454. addObsoleteHost("filepoint\\.de\/dl\/\\w+","//a[contains(@href,'filepoint.de/dl')]");
  5455. addObsoleteHost("icushare\\.com\/\\w+","//a[contains(@href,'icushare.com/')]");
  5456. addObsoleteHost("oron\\.com\/\\w+","//a[contains(@href,'oron.com/')]");
  5457. addObsoleteHost("mystream\\.to\/file\\-\\d+","//a[contains(@href,'mystream.to/file')]");
  5458. addObsoleteHost("x-fs\\.com\/download\\.php\\?id=\\w+","//a[contains(@href,'x-fs.com/download')]");
  5459. addObsoleteHost("srapid\\.eu\/\\w+","//a[contains(@href,'srapid.eu/')]");
  5460. addObsoleteHost("shareshared\\.com\/\\w+","//a[contains(@href,'shareshared.com/')]");
  5461. addObsoleteHost("sosame\\.cz\/\\w+","//a[contains(@href,'sosame.cz/')]");
  5462. addObsoleteHost("s\\d+\\.filesdump\\.com\/file\/\\w+","//a[contains(@href,'filesdump.com/file')]");
  5463. addObsoleteHost("2-klicks\\.de\/\\?d=\\w+","//a[contains(@href,'2-klicks.de/?d=')]");
  5464. addObsoleteHost("silofiles\\.com\/file\/\\d+","//a[contains(@href,'silofiles.com/file')]");
  5465. addObsoleteHost("upfile\\.in\/\\w+","//a[contains(@href,'upfile.in/')]");
  5466. addObsoleteHost("filehook\\.com\/\\w+","//a[contains(@href,'filehook.com/')]");
  5467. addObsoleteHost("mojofile\\.com\/\\w+","//a[contains(@href,'mojofile.com/')]");
  5468. addObsoleteHost("cloudcache\\.cc\/\\w+","//a[contains(@href,'cloudcache.cc/')]");
  5469. addObsoleteHost("1hostclick\\.com\/\\w+","//a[contains(@href,'1hostclick.com/')]");
  5470. addObsoleteHost("4bytez\\.com\/\\w+","//a[contains(@href,'4bytez.com/')]");
  5471. addObsoleteHost("uploadking\\.com\/\\w+","//a[contains(@href,'uploadking.com/')]");
  5472. addObsoleteHost("nahraj\\.cz\/(?:content|down)\/\\w+","//a[contains(@href,'nahraj.cz/')]");
  5473. addObsoleteHost("megarapid\\.eu\/files\/\\d+","//a[contains(@href,'megarapid.eu/files')]");
  5474. addObsoleteHost("(?:fileserve|uploadstation)\\.com\/(?:file|list)\/\\w+","//a[contains(@href,'fileserve.com/') or contains(@href,'uploadstation.com/')]");
  5475. addObsoleteHost("uploadhere\\.com\/\\w+","//a[contains(@href,'uploadhere.com/')]");
  5476. addObsoleteHost("dualshare\\.com\/\\w+","//a[contains(@href,'dualshare.com/')]");
  5477. addObsoleteHost("yourfilehost\\.com\/media","//a[contains(@href,'yourfilehost.com/media')]");
  5478. addObsoleteHost("ftp2share\\.com\/file\/\\w+","//a[contains(@href,'ftp2share.com/file')]");
  5479. addObsoleteHost("storeandserve\\.com\/download\/\\d+","//a[contains(@href,'storeandserve.com/download')]");
  5480. addObsoleteHost("mountfile\\.com\/file(?:\/\\w+){2}","//a[contains(@href,'mountfile.com/file')]");
  5481. addObsoleteHost("save\\.am\/files\/\\w+","//a[contains(@href,'save.am/files')]");
  5482. addObsoleteHost("transitfiles\\.com\/dl\/\\w+","//a[contains(@href,'transitfiles.com/dl')]");
  5483. addObsoleteHost("smartuploader\\.com\/file\\.php\\?f=\\d+","//a[contains(@href,'smartuploader.com/file.php?=')]");
  5484. addObsoleteHost("skipfile\\.com\/\\w+","//a[contains(@href,'skipfile.com/')]");
  5485. addObsoleteHost("stahnu\\.to\/[\\w\\?]+","//a[contains(@href,'stahnu.to/')]");
  5486. addObsoleteHost("flyshare\.cz\/(?:stahni\/|)\\d+","//a[contains(@href,'flyshare.cz/')]");
  5487. addObsoleteHost("(?:ddlani\\.me|ddlanime\\.com)\/\\w+","//a[contains(@href,'ddlani.me/') or contains(@href,'ddlanime.com/')]");
  5488. addObsoleteHost("loadly\\.com\/\\w+","//a[contains(@href,'loadly.com/')]");
  5489. addObsoleteHost("groovefile\\.com\/\\w+","//a[contains(@href,'groovefile.com/')]");
  5490. addObsoleteHost("filezlot\\.com\/\\w+","//a[contains(@href,'filezlot.com/')]");
  5491. addObsoleteHost("shareator\\.(?:net|com)\/\\w+","//a[contains(@href,'shareator.')]");
  5492. addObsoleteHost("yabadaba\\.ru\/files\/","//a[contains(@href,'yabadaba.ru/files/')]");
  5493. addObsoleteHost("rapidhide\\.com\/download\\.php\\?file=\\w+","//a[contains(@href,'rapidhide.com/download.php')]");
  5494. addObsoleteHost("filejungle\\.com\/[fl]\/\\w+","//a[contains(@href,'filejungle.com/')]");
  5495. addObsoleteHost("kewlshare\\.com\/dl\/\\d+","//a[contains(@href,'kewlshare.com/dl')]");
  5496. addObsoleteHost("petandrive\\.com\/file\/\\w+","//a[contains(@href,'petandrive.com/file')]");
  5497. addObsoleteHost("onionshare\\.com\/\\w+","//a[contains(@href,'onionshare.com/')]");
  5498. addObsoleteHost("rapidable\\.com\/\\w+\/download\\.php\\?id=","//a[contains(@href,'rapidable.com/')]");
  5499. addObsoleteHost("filesdump\\.com\/file\/\\w+\/\\d+","//a[contains(@href,'filesdump.com/file')]");
  5500. addObsoleteHost("file2box\\.(?:net|com)\/\\w+","//a[contains(@href,'file2box.')]");
  5501. addObsoleteHost("(?:filesonic|sharingmatrix|wupload)(?:\\.\\w+){1,2}\/(?:file|folder)\/\\w+","//a[contains(@href,'filesonic.') or contains(@href,'sharingmatrix.com') or contains(@href,'wupload.')]");
  5502. addObsoleteHost("bloggerarticles\\.com\/\\w+","//a[contains(@href,'bloggerarticles.com/')]");
  5503. addObsoleteHost("mojedata\\.sk/","//a[contains(@href,'mojedata.sk/')]");
  5504. addObsoleteHost("sharpfile\\.com\/\\w+","//a[contains(@href,'sharpfile.com/')]");
  5505. addObsoleteHost("upgrand\\.com\/\\w+","//a[contains(@href,'upgrand.com/')]");
  5506. addObsoleteHost("nasdilej\\.cz\/\\w+","//a[contains(@href,'nasdilej.cz/')]");
  5507. addObsoleteHost("mediatack\\.cz\/stahuj/\\w+","//a[contains(@href,'mediatack.cz/stahuj/')]");
  5508. addObsoleteHost("share-it\\.to\/file/\\w+","//a[contains(@href,'share-it.to/file/')]");
  5509. addObsoleteHost("primeupload\\.com\/file/\\w+","//a[contains(@href,'primeupload.com/file/')]");
  5510. addObsoleteHost("(?:uploads\\.glumbo|glumbouploads)\\.com\/\\w+","//a[contains(@href,'uploads.glumbo.com') or contains(@href,'glumbouploads.com')]");
  5511. addObsoleteHost("filebeer\\.info\/\\w+","//a[contains(@href,'filebeer.info/')]");
  5512. addObsoleteHost("baberepublic\\.com\/link\/\\w+","//a[contains(@href,'baberepublic.com/link/')]");
  5513. addObsoleteHost("xtu\\.me\/\\w+","//a[contains(@href,'xtu.me/')]");
  5514. addObsoleteHost("sharebase\\.de\/files\/\\w+","//a[contains(@href,'sharebase.de/files/')]");
  5515. addObsoleteHost("filerobo\\.com\/\\w+","//a[contains(@href,'filerobo.com/')]");
  5516. addObsoleteHost("filevelocity\\.com\/\\w+","//a[contains(@href,'filevelocity.com/')]");
  5517. addObsoleteHost("filezpro\\.com\/\\w+","//a[contains(@href,'filezpro.com/')]");
  5518. addObsoleteHost("file4sharing\\.com\/\\w+","//a[contains(@href,'file4sharing.com/')]");
  5519. addObsoleteHost("cing\\.be\/\\w+","//a[contains(@href,'cing.be/')]");
  5520. addObsoleteHost("ufile\\.eu\/\\w+","//a[contains(@href,'ufile.eu/')]");
  5521. addObsoleteHost("pigsonic\\.com\/\\w+","//a[contains(@href,'pigsonic.com/')]");
  5522. addObsoleteHost("fileupped\\.com\/\\w+","//a[contains(@href,'fileupped.com/')]");
  5523. addObsoleteHost("sharerun\\.com\/\\w+","//a[contains(@href,'sharerun.com/')]");
  5524. addObsoleteHost("rapidslnare\\.com\/\\w+","//a[contains(@href,'rapidslnare.com/')]");
  5525. addObsoleteHost("monsteruploads\\.eu\/\\w+","//a[contains(@href,'monsteruploads.eu/')]");
  5526. addObsoleteHost("b9bb\\.com\/\\w+","//a[contains(@href,'b9bb.com/')]");
  5527. addObsoleteHost("jamber\\.info\/\\w+","//a[contains(@href,'jamber.info/')]");
  5528. addObsoleteHost("(?:megaftp|MegaFTP)\\.com\/\\w+","//a[contains(@href,'megaftp.com/') or contains(@href,'MegaFTP.com/')]");
  5529. addObsoleteHost("desiupload\\.net\/\\?d=\\w+","//a[contains(@href,'desiupload.net/')]");
  5530. addObsoleteHost("file27\\.com\/\\w+","//a[contains(@href,'file27.com/')]");
  5531. addObsoleteHost("yastorage\\.com\/\\w+","//a[contains(@href,'yastorage.com/')]");
  5532. addObsoleteHost("filehost\\.ws\/\\w+","//a[contains(@href,'filehost.ws/')]");
  5533. addObsoleteHost("copyload\\.com\/\\w+","//a[contains(@href,'copyload.com/')]");
  5534. addObsoleteHost("venusfile\\.com\/\\w+","//a[contains(@href,'venusfile.com/')]");
  5535. addObsoleteHost("aieshare\\.com\/\\w+","//a[contains(@href,'aieshare.com/')]");
  5536. addObsoleteHost("fileza\\.net\/\\w+","//a[contains(@href,'fileza.net/')]");
  5537. addObsoleteHost("filerose\\.com\/\\w+","//a[contains(@href,'filerose.com/')]");
  5538. addObsoleteHost("squillion\\.com\/\\w+","//a[contains(@href,'squillion.com/')]");
  5539. addObsoleteHost("fileprohost\\.com\/\\w+","//a[contains(@href,'fileprohost.com/')]");
  5540. addObsoleteHost("bitbonus\\.com\/download\/\\w+","//a[contains(@href,'bitbonus.com/')]");
  5541. addObsoleteHost("warserver\\.cz\/\\w+","//a[contains(@href,'warserver.cz/')]");
  5542. addObsoleteHost("uload\\.to\/\\w+","//a[contains(@href,'uload.to/')]");
  5543. addObsoleteHost("sharedbit\\.net\/\\w+","//a[contains(@href,'sharedbit.net/')]");
  5544. addObsoleteHost("megaload\\.it\/\\w+","//a[contains(@href,'megaload.it/')]");
  5545. addObsoleteHost("filewinds\\.com\/\\w+","//a[contains(@href,'filewinds.com/')]");
  5546. addObsoleteHost("uploadcore\\.com\/\\w+","//a[contains(@href,'uploadcore.com/')]");
  5547. addObsoleteHost("syfiles\\.com\/\\w+","//a[contains(@href,'syfiles.com/')]");
  5548. addObsoleteHost("eyesfile\\.com\/\\w+","//a[contains(@href,'eyesfile.com/')]");
  5549. addObsoleteHost("hotfile\\.com\/\\w+","//a[contains(@href,'hotfile.com/')]");
  5550. addObsoleteHost("superupl\\.com\/\\w+","//a[contains(@href,'superupl.com/')]");
  5551. addObsoleteHost("oteupload\\.com\/\\w+","//a[contains(@href,'oteupload.com/')]");
  5552. addObsoleteHost("henchfile\\.com\/\\w+","//a[contains(@href,'henchfile.com/')]");
  5553. addObsoleteHost("HenchFile\\.com\/\\w+","//a[contains(@href,'HenchFile.com/')]");
  5554. addObsoleteHost("filegag\\.com\/\\w+","//a[contains(@href,'filegag.com/')]");
  5555. addObsoleteHost("filedefend\\.com\/\\w+","//a[contains(@href,'filedefend.com/')]");
  5556. addObsoleteHost("hotfiles\\.ws\/\\w+","//a[contains(@href,'hotfiles.ws/')]");
  5557. addObsoleteHost("share-rapid\\.com\/\\w+","//a[contains(@href,'share-rapid.com/')]");
  5558. addObsoleteHost("rapids\\.cz\/\\w+","//a[contains(@href,'rapids.cz/')]");
  5559. addObsoleteHost("share-credit\\.cz\/\\w+","//a[contains(@href,'share-credit.cz/')]");
  5560. addObsoleteHost("share-central\\.cz\/\\w+","//a[contains(@href,'share-central.cz/')]");
  5561. addObsoleteHost("share-ms\\.cz\/\\w+","//a[contains(@href,'share-ms.cz/')]");
  5562. addObsoleteHost("share-net\\.cz\/\\w+","//a[contains(@href,'share-net.cz/')]");
  5563. addObsoleteHost("srapid\\.cz\/\\w+","//a[contains(@href,'srapid.cz/')]");
  5564. addObsoleteHost("share-rapid\\.cz\/\\w+","//a[contains(@href,'share-rapid.cz/')]");
  5565. addObsoleteHost("wooupload\\.com\/\\w+","//a[contains(@href,'wooupload.com/')]");
  5566. addObsoleteHost("megabitshare\\.com\/\\w+","//a[contains(@href,'megabitshare.com/')]");
  5567. addObsoleteHost("uploking\\.com\/\\w+","//a[contains(@href,'uploking.com/')]");
  5568. addObsoleteHost("esnips\\.com\/\\w+","//a[contains(@href,'esnips.com/')]");
  5569. addObsoleteHost("uplly\\.com\/\\w+","//a[contains(@href,'uplly.com/')]");
  5570. addObsoleteHost("ufox\\.com\/\\w+","//a[contains(@href,'ufox.com/')]");
  5571. addObsoleteHost("clz\\.to\/\\w+","//a[contains(@href,'clz.to/')]");
  5572. addObsoleteHost("cloudzer\\.net\/\\w+","//a[contains(@href,'cloudzer.net/')]");
  5573. addObsoleteHost("cloudzer\\.com\/\\w+","//a[contains(@href,'cloudzer.com/')]");
  5574. addObsoleteHost("extabit\\.com\/\\w+","//a[contains(@href,'extabit.com/')]");
  5575. addObsoleteHost("uploadwaste\\.com\/\\w+","//a[contains(@href,'uploadwaste.com/')]");
  5576. addObsoleteHost("247upload\\.com\/\\w+","//a[contains(@href,'uploadwaste.com/')]");
  5577. addObsoleteHost("2download\\.de\/\\w+","//a[contains(@href,'2download.de/')]");
  5578. addObsoleteHost("4fastfile\\.com\/\\w+","//a[contains(@href,'4fastfile.com/')]");
  5579. addObsoleteHost("asixfiles\\.com\/\\w+","//a[contains(@href,'asixfiles.com/')]");
  5580. addObsoleteHost("berofile\\.com\/\\w+","//a[contains(@href,'berofile.com/')]");
  5581. addObsoleteHost("bigupload\\.com\/\\w+","//a[contains(@href,'bigupload.com/')]");
  5582. addObsoleteHost("cepzo\\.com\/\\w+","//a[contains(@href,'cepzo.com/')]");
  5583. addObsoleteHost("czshare\\.com\/\\w+","//a[contains(@href,'czshare.com/')]");
  5584. addObsoleteHost("clouds\\.to\/\\w+","//a[contains(@href,'clouds.to/')]");
  5585. addObsoleteHost("cobrashare\\.sk\/\\w+","//a[contains(@href,'cobrashare.sk/')]");
  5586. addObsoleteHost("coraldrive\\.net\/\\w+","//a[contains(@href,'coraldrive.net/')]");
  5587. addObsoleteHost("cyberlocker\\.ch\/\\w+","//a[contains(@href,'cyberlocker.ch/')]");
  5588. addObsoleteHost("darkport\\.org\/\\w+","//a[contains(@href,'darkport.org/')]");
  5589. addObsoleteHost("dark-uploads\\.com\/\\w+","//a[contains(@href,'dark-uploads.com/')]");
  5590. addObsoleteHost("davvas\\.com\/\\w+","//a[contains(@href,'davvas.com/')]");
  5591. addObsoleteHost("enigmashare\\.com\/\\w+","//a[contains(@href,'enigmashare.com/')]");
  5592. addObsoleteHost("erofly\\.cz\/\\w+","//a[contains(@href,'erofly.cz/')]");
  5593. addObsoleteHost("fastsonic\\.net\/\\w+","//a[contains(@href,'fastsonic.net/')]");
  5594. addObsoleteHost("filebox\\.com\/\\w+","//a[contains(@href,'filebox.com/')]");
  5595. addObsoleteHost("filecity\\.net\/\\w+","//a[contains(@href,'filecity.net/')]");
  5596. addObsoleteHost("filedap\\.com\/\\w+","//a[contains(@href,'filedap.com/')]");
  5597. addObsoleteHost("filedino\\.com\/\\w+","//a[contains(@href,'filedino.com/')]");
  5598. addObsoleteHost("filedownloads\\.org\/\\w+","//a[contains(@href,'filedownloads.org/')]");
  5599. addObsoleteHost("filefolks\\.com\/\\w+","//a[contains(@href,'filefolks.com/')]");
  5600. addObsoleteHost("fileking\\.co\/\\w+","//a[contains(@href,'fileking.co/')]");
  5601. addObsoleteHost("filemates\\.com\/\\w+","//a[contains(@href,'filemates.com/')]");
  5602. addObsoleteHost("files\\.to\/\\w+","//a[contains(@href,'files.to/')]");
  5603. addObsoleteHost("files2k\\.eu\/\\w+","//a[contains(@href,'files2k.eu/')]");
  5604. addObsoleteHost("filesector\\.cc\/\\w+","//a[contains(@href,'filesector.cc/')]");
  5605. addObsoleteHost("filesega\\.com\/\\w+","//a[contains(@href,'filesega.com/')]");
  5606. addObsoleteHost("filesend\\.net\/\\w+","//a[contains(@href,'filesend.net/')]");
  5607. addObsoleteHost("filestay\\.com\/\\w+","//a[contains(@href,'filestay.com/')]");
  5608. addObsoleteHost("filestrum\\.com\/\\w+","//a[contains(@href,'filestrum.com/')]");
  5609. addObsoleteHost("fileuplo\\.de\/\\w+","//a[contains(@href,'fileuplo.de/')]");
  5610. addObsoleteHost("fileupup\\.com\/\\w+","//a[contains(@href,'fileupup.com/')]");
  5611. addObsoleteHost("forunesia\\.com\/\\w+","//a[contains(@href,'forunesia.com/')]");
  5612. addObsoleteHost("freeuploads\\.fr\/\\w+","//a[contains(@href,'freeuploads.fr/')]");
  5613. addObsoleteHost("uploa\\.dk\/\\w+","//a[contains(@href,'uploa.dk/')]");
  5614. addObsoleteHost("getthebit\\.com\/\\w+","//a[contains(@href,'getthebit.com/')]");
  5615. addObsoleteHost("getzilla\\.net\/\\w+","//a[contains(@href,'getzilla.net/')]");
  5616. addObsoleteHost("goldfile\\.eu\/\\w+","//a[contains(@href,'goldfile.eu/')]");
  5617. addObsoleteHost("good\\.com\/\\w+","//a[contains(@href,'good.com/')]");
  5618. addObsoleteHost("grupload\\.com\/\\w+","//a[contains(@href,'grupload.com/')]");
  5619. addObsoleteHost("hellfile\\.com\/\\w+","//a[contains(@href,'hellfile.com/')]");
  5620. addObsoleteHost("hipfile\\.com\/\\w+","//a[contains(@href,'hipfile.com/')]");
  5621. addObsoleteHost("hitfile\\.com\/\\w+","//a[contains(@href,'hitfile.com/')]");
  5622. addObsoleteHost("hulkfile\\.eu\/\\w+","//a[contains(@href,'hulkfile.eu/')]");
  5623. addObsoleteHost("i-filez\\.com\/\\w+","//a[contains(@href,'i-filez.com/')]");
  5624. addObsoleteHost("ifile\\.ws\/\\w+","//a[contains(@href,'ifile.ws/')]");
  5625. addObsoleteHost("kupload\\.org\/\\w+","//a[contains(@href,'kupload.org/')]");
  5626. addObsoleteHost("duckfile\\.net\/\\w+","//a[contains(@href,'duckfile.net/')]");
  5627. addObsoleteHost("packupload\\.com\/\\w+","//a[contains(@href,'packupload.com/')]");
  5628. addObsoleteHost("terafile\\.com\/\\w+","//a[contains(@href,'terafile.com/')]");
  5629. addObsoleteHost("terafile\\.co\/\\w+","//a[contains(@href,'terafile.co/')]");
  5630. addObsoleteHost("fileom\\.com\/\\w+","//a[contains(@href,'fileom.com/')]");
  5631. addObsoleteHost("luckyshare\\.net\/\\w+","//a[contains(@href,'luckyshare.net/')]");
  5632. addObsoleteHost("lemuploads\\.com\/\\w+","//a[contains(@href,'lemuploads.com/')]");
  5633. addObsoleteHost("limelinx\\.com\/\\w+","//a[contains(@href,'limelinx.com/')]");
  5634. addObsoleteHost("maxshare\\.pl\/\\w+","//a[contains(@href,'maxshare.pl/')]");
  5635. addObsoleteHost("megarelease\\.org\/\\w+","//a[contains(@href,'megarelease.org/')]");
  5636. addObsoleteHost("megashare\\.com\/\\w+","//a[contains(@href,'megashare.com/')]");
  5637. addObsoleteHost("minus\\.com\/\\w+","//a[contains(@href,'minus.com/')]");
  5638. addObsoleteHost("mlfat4arab\\.com\/\\w+","//a[contains(@href,'mlfat4arab.com/')]");
  5639. addObsoleteHost("multishare\\.cz\/\\w+","//a[contains(@href,'multishare.cz/')]");
  5640. addObsoleteHost("nirafile\\.com\/\\w+","//a[contains(@href,'nirafile.com/')]");
  5641. addObsoleteHost("ok2upload\\.com\/\\w+","//a[contains(@href,'ok2upload.com/')]");
  5642. addObsoleteHost("peejeshare\\.com\/\\w+","//a[contains(@href,'peejeshare.com/')]");
  5643. addObsoleteHost("premiuns\\.org\/\\w+","//a[contains(@href,'premiuns.org/')]");
  5644. addObsoleteHost("przeklej\\.net\/\\w+","//a[contains(@href,'przeklej.net/')]");
  5645. addObsoleteHost("qkup\\.net\/\\w+","//a[contains(@href,'qkup.net/')]");
  5646. addObsoleteHost("rapidupload\\.sk\/\\w+","//a[contains(@href,'rapidupload.sk/')]");
  5647. addObsoleteHost("rockdizfile\\.com\/\\w+","//a[contains(@href,'rockdizfile.com/')]");
  5648. addObsoleteHost("rocketfile\\.net\/\\w+","//a[contains(@href,'rocketfile.net/')]");
  5649. addObsoleteHost("share-now\\.net\/\\w+","//a[contains(@href,'share-now.net/')]");
  5650. addObsoleteHost("share76\\.com\/\\w+","//a[contains(@href,'share76.com/')]");
  5651. addObsoleteHost("sharebees\\.com\/\\w+","//a[contains(@href,'sharebees.com/')]");
  5652. addObsoleteHost("sharefiles\\.co\/\\w+","//a[contains(@href,'sharefiles.co/')]");
  5653. addObsoleteHost("slingfile\\.com\/\\w+","//a[contains(@href,'slingfile.com/')]");
  5654. addObsoleteHost("sms4file\\.com\/\\w+","//a[contains(@href,'sms4file.com/')]");
  5655. addObsoleteHost("space4file\\.com\/\\w+","//a[contains(@href,'space4file.com/')]");
  5656. addObsoleteHost("tigershare\\.net\/\\w+","//a[contains(@href,'tigershare.net/')]");
  5657. addObsoleteHost("toucansharing\\.com\/\\w+","//a[contains(@href,'toucansharing.com/')]");
  5658. addObsoleteHost("ubuntuone\\.com\/\\w+","//a[contains(@href,'ubuntuone.com/')]");
  5659. addObsoleteHost("unextfiles\\.com\/\\w+","//a[contains(@href,'unextfiles.com/')]");
  5660. addObsoleteHost("upaj\\.pl\/\\w+","//a[contains(@href,'upaj.pl/')]");
  5661. addObsoleteHost("upfile\\.biz\/\\w+","//a[contains(@href,'upfile.biz/')]");
  5662. addObsoleteHost("uploadbin\\.net\/\\w+","//a[contains(@href,'uploadbin.net/')]");
  5663. addObsoleteHost("uploadic\\.com\/\\w+","//a[contains(@href,'uploadic.com/')]");
  5664. addObsoleteHost("uploadinc\\.com\/\\w+","//a[contains(@href,'uploadinc.com/')]");
  5665. addObsoleteHost("uploading4u\\.eu\/\\w+","//a[contains(@href,'uploading4u.eu/')]");
  5666. addObsoleteHost("uploadjet\\.net\/\\w+","//a[contains(@href,'uploadjet.net/')]");
  5667. addObsoleteHost("uploadorb\\.com\/\\w+","//a[contains(@href,'uploadorb.com/')]");
  5668. addObsoleteHost("upthe\\.net\/\\w+","//a[contains(@href,'upthe.net/')]");
  5669. addObsoleteHost("uptorch\\.com\/\\w+","//a[contains(@href,'uptorch.com/')]");
  5670. addObsoleteHost("vidbox\\.yt\/\\w+","//a[contains(@href,'vidbox.yt/')]");
  5671. addObsoleteHost("videozer\\.com\/\\w+","//a[contains(@href,'videozer.com/')]");
  5672. addObsoleteHost("vreer\\.com\/\\w+","//a[contains(@href,'vreer.com/')]");
  5673. addObsoleteHost("wallobit\\.com\/\\w+","//a[contains(@href,'wallobit.com/')]");
  5674. addObsoleteHost("zooupload\\.com\/\\w+","//a[contains(@href,'zooupload.com/')]");
  5675. addObsoleteHost("xerver\\.co\/\\w+","//a[contains(@href,'xerver.co/')]");
  5676. addObsoleteHost("privatefiles\\.com\/\\w+","//a[contains(@href,'privatefiles.com/')]");
  5677. addObsoleteHost("bitshare\\.com\/\\w+","//a[contains(@href,'bitshare.com/')]");
  5678. addObsoleteHost("asfile\\.com\/\\w+","//a[contains(@href,'asfile.com/')]");
  5679. addObsoleteHost("billionuploads\\.com\/\\w+","//a[contains(@href,'billionuploads.com/')]");
  5680. addObsoleteHost("\\*{7,100}\/[\\w\\d]+","//a[contains(@href,'*******/')]");
  5681. addObsoleteHost("filesaur\\.com\/\\w+","//a[contains(@href,'filesaur.com/')]");
  5682. addObsoleteHost("rapidshare\\.com\/\\w+","//a[contains(@href,'rapidshare.com/')]");
  5683. addObsoleteHost("rapidshare\\.ru\/\\w+","//a[contains(@href,'rapidshare.ru/')]");
  5684. addObsoleteHost("filesfrog\\.net\/\\w+","//a[contains(@href,'filesfrog.net/')]");
  5685. addObsoleteHost("4savefile\\.com\/\\w+","//a[contains(@href,'4savefile.com/')]");
  5686. addObsoleteHost("bayfiles\\.com\/\\w+","//a[contains(@href,'bayfiles.com/')]");
  5687. addObsoleteHost("bayfiles\\.net\/\\w+","//a[contains(@href,'bayfiles.net/')]");
  5688. addObsoleteHost("dodane\\.pl\/\\w+","//a[contains(@href,'dodane.pl/')]");
  5689. addObsoleteHost("dotsemper\\.com\/\\w+","//a[contains(@href,'dotsemper.com/')]");
  5690. addObsoleteHost("egofiles\\.com\/\\w+","//a[contains(@href,'egofiles.com/')]");
  5691. addObsoleteHost("epicshare\\.net\/\\w+","//a[contains(@href,'epicshare.net/')]");
  5692. addObsoleteHost("fiberupload\\.net\/\\w+","//a[contains(@href,'fiberupload.net/')]");
  5693. addObsoleteHost("filemonkey\\.in\/\\w+","//a[contains(@href,'filemonkey.in/')]");
  5694. addObsoleteHost("filemonster\\.net\/\\w+","//a[contains(@href,'filemonster.net/')]");
  5695. addObsoleteHost("filepom\\.com\/\\w+","//a[contains(@href,'filepom.com/')]");
  5696. addObsoleteHost("filesbb\\.com\/\\w+","//a[contains(@href,'filesbb.com/')]");
  5697. addObsoleteHost("fileshareup\\.com\/\\w+","//a[contains(@href,'fileshareup.com/')]");
  5698. addObsoleteHost("filevice\\.com\/\\w+","//a[contains(@href,'filevice.com/')]");
  5699. addObsoleteHost("gigaup\\.fr\/\\w+","//a[contains(@href,'gigaup.fr/')]");
  5700. addObsoleteHost("isavelink\\.com\/\\w+","//a[contains(@href,'isavelink.com/')]");
  5701. addObsoleteHost("loombo\\.com\/\\w+","//a[contains(@href,'loombo.com/')]");
  5702. addObsoleteHost("megafiles\\.se\/\\w+","//a[contains(@href,'megafiles.se/')]");
  5703. addObsoleteHost("migupload\\.com\/\\w+","//a[contains(@href,'migupload.com/')]");
  5704. addObsoleteHost("mydisc\\.net\/\\w+","//a[contains(@href,'mydisc.net/')]");
  5705. addObsoleteHost("nitrobits\\.com\/\\w+","//a[contains(@href,'nitrobits.com/')]");
  5706. addObsoleteHost("potload\\.com\/\\w+","//a[contains(@href,'potload.com/')]");
  5707. addObsoleteHost("redload\\.net\/\\w+","//a[contains(@href,'redload.net/')]");
  5708. addObsoleteHost("shareprofi\\.com\/\\w+","//a[contains(@href,'shareprofi.com/')]");
  5709. addObsoleteHost("sharesuper\\.info\/\\w+","//a[contains(@href,'sharesuper.info/')]");
  5710. addObsoleteHost("sinhro\\.net\/\\w+","//a[contains(@href,'sinhro.net/')]");
  5711. addObsoleteHost("speedfile\\.cz\/\\w+","//a[contains(@href,'speedfile.cz/')]");
  5712. addObsoleteHost("speedshare\\.org\/\\w+","//a[contains(@href,'speedshare.org/')]");
  5713. addObsoleteHost("storage.novoro\\.net\/\\w+","//a[contains(@href,'storage.novoro.net/')]");
  5714. addObsoleteHost("swankshare\\.com\/\\w+","//a[contains(@href,'swankshare.com/')]");
  5715. addObsoleteHost("swatupload\\.com\/\\w+","//a[contains(@href,'swatupload.com/')]");
  5716. addObsoleteHost("upafile\\.com\/\\w+","//a[contains(@href,'upafile.com/')]");
  5717. addObsoleteHost("uploadmachine\\.com\/\\w+","//a[contains(@href,'uploadmachine.com/')]");
  5718. addObsoleteHost("uploadsat\\.com\/\\w+","//a[contains(@href,'uploadsat.com/')]");
  5719. addObsoleteHost("upshared\\.com\/\\w+","//a[contains(@href,'upshared.com/')]");
  5720. addObsoleteHost("usefile\\.com\/\\w+","//a[contains(@href,'usefile.com/')]");
  5721. addObsoleteHost("yourfiles\\.to\/\\w+","//a[contains(@href,'yourfiles.to/')]");
  5722. addObsoleteHost("zomgupload\\.com\/\\w+","//a[contains(@href,'zomgupload.com/')]");
  5723. addObsoleteHost("~[\\w\\s~]*","//a[contains(@href,'//~') or contains(@href,'//www.~')]");
  5724. addObsoleteHost("filemup\\.com\/\\w+","//a[contains(@href,'filemup.com/')]");
  5725. addObsoleteHost("tuxfile\\.com\/\\w+","//a[contains(@href,'tuxfile.com/')]");
  5726. addObsoleteHost("ultramegabit\\.com\/\\w+","//a[contains(@href,'ultramegabit.com/')]");
  5727. addObsoleteHost("uploadto\\.us\/\\w+","//a[contains(@href,'uploadto.us/')]");
  5728. addObsoleteHost("filecore\\.co\\.nz\/\\w+","//a[contains(@href,'filecore.co.nz/')]");
  5729. addObsoleteHost("fileshare\\.in\\.ua\/\\w+","//a[contains(@href,'fileshare.in.ua/')]");
  5730. addObsoleteHost("firedrive\\.com\/\\w+","//a[contains(@href,'firedrive.com/')]");
  5731. addObsoleteHost("putlocker\\.com\/\\w+","//a[contains(@href,'putlocker.com/')]");
  5732. addObsoleteHost("lumfile\\.com\/\\w+","//a[contains(@href,'lumfile.com/')]");
  5733. addObsoleteHost("lumfile\\.se\/\\w+","//a[contains(@href,'lumfile.se/')]");
  5734. addObsoleteHost("lumfile\\.eu\/\\w+","//a[contains(@href,'lumfile.eu/')]");
  5735. addObsoleteHost("shared\\.com\/\\w+","//a[contains(@href,'shared.com/')]");
  5736. addObsoleteHost("stahovadlo\\.cz\/\\w+","//a[contains(@href,'stahovadlo.cz/')]");
  5737. addObsoleteHost("dizzcloud\\.com\/\\w+","//a[contains(@href,'dizzcloud.com/')]");
  5738. addObsoleteHost("ddlstorage\\.com\/\\w+","//a[contains(@href,'ddlstorage.com/')]");
  5739. addObsoleteHost("dataport\\.cz\/\\w+","//a[contains(@href,'dataport.cz/')]");
  5740. addObsoleteHost("daj\\.to\/\\w+","//a[contains(@href,'daj.to/')]");
  5741. addObsoleteHost("sockshare\\.com\/\\w+","//a[contains(@href,'sockshare.com/')]");
  5742. addObsoleteHost("2drive\\.net\/\\w+","//a[contains(@href,'2drive.net/')]");
  5743. addObsoleteHost("bl\\.st\/\\w+","//a[contains(@href,'bl.st/')]");
  5744. addObsoleteHost("uncapped-downloads\\.com\/\\w+","//a[contains(@href,'uncapped-downloads.com/')]");
  5745. addObsoleteHost("freakshare\\.net\/\\w+","//a[contains(@href,'freakshare.net/')]");
  5746. addObsoleteHost("freakshare\\.com\/\\w+","//a[contains(@href,'freakshare.com/')]");
  5747. addObsoleteHost("sharebeast\\.com\/\\w+","//a[contains(@href,'sharebeast.com/')]");
  5748. addObsoleteHost("tufiles\\.ru\/\\w+","//a[contains(@href,'tufiles.ru/')]");
  5749. addObsoleteHost("crisshare\\.com\/\\w+","//a[contains(@href,'crisshare.com/')]");
  5750. addObsoleteHost("ryushare\\.com\/\\w+","//a[contains(@href,'ryushare.com/')]");
  5751. addObsoleteHost("kingfiles\\.net\/\\w+","//a[contains(@href,'kingfiles.net/')]");
  5752. // obsolete start
  5753. }
  5754. //obsolete file hosts init end
  5755.  
  5756. function addFileHost(linkRegex, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, xpathEx, tryLoop)
  5757. {
  5758. var host = new Array(7);
  5759. host[0] = linkRegex;
  5760. host[1] = isAliveRegex;
  5761. host[2] = isDeadRegex;
  5762. host[3] = isUnavaRegex;
  5763. host[6] = ispremRegex;
  5764. host[4] = xpathEx;
  5765. tryLoop ? host[5] = true : host[5] = false;
  5766. http_file_hosts.push(host);
  5767. }
  5768. if (GM_getValue("Check_megafileupload_dot_com_links", false))
  5769. {
  5770. addFileHost(
  5771. "megafileupload\.com\/..\/file\/",
  5772. 'downloadbtn',
  5773. 'is not found',
  5774. 'optional--',
  5775. 'optional2--',
  5776. "//a[contains(@href,'megafileupload.com')]");
  5777. }
  5778. if (GM_getValue("Check_demo_dot_ovh_dot_eu_links", false))
  5779. {
  5780. addFileHost(
  5781. "demo\\.ovh\\.eu\/\\w+\/\\w+",
  5782. 'download\\.gif"',
  5783. 'p_point">',
  5784. 'optional--',
  5785. 'optional2--',
  5786. "//a[contains(@href,'demo.ovh.eu')]");
  5787. }
  5788. if (GM_getValue("Check_xkeepfile_dot_com_links", false))
  5789. {
  5790. addFileHost(
  5791. "xkeepfile\.com\/\\w+",
  5792. 'File has been found|Click here to download',
  5793. 'File cannot be found|class="error">',
  5794. 'optional--',
  5795. 'optional2--',
  5796. "//a[contains(@href,'xkeepfile.com/') or contains(@href,'Gamesena.com/')]");
  5797. }
  5798. if (GM_getValue("Check_safelinking_dot_net_links", false))
  5799. {
  5800. addFileHost(
  5801. "safelinking\\.net\/p\/\\w+",
  5802. 'color:green;"',
  5803. 'color:(?:red|orange);"',
  5804. 'color:(?:grey|brown);"',
  5805. 'optional2--',
  5806. "//a[contains(@href,'safelinking.net/p/')]",
  5807. true);
  5808. }
  5809. if (GM_getValue("Check_fastshare_dot_cz_links", false))
  5810. {
  5811. addFileHost(
  5812. "fastshare\\.cz\/\\d+\/\\w*",
  5813. 'dwntable">',
  5814. 'nebyla nalezena|nebola nájdená|nie została odnaleziona|color:red;font-weight:bold;border\\-style:dashed|<i class="fa fa-copyright"></i>',
  5815. 'optional--',
  5816. 'optional2--',
  5817. "//a[contains(@href,'fastshare.cz')]");
  5818. }
  5819. if (GM_getValue("Check_fastshare_dot_org_links", false))
  5820. {
  5821. addFileHost(
  5822. "[fF]ast[sS]hare\\.org\/download",
  5823. 'Download ">',
  5824. 'Diese Datei wurde wegen|wurde kein Dateiname',
  5825. 'optional--',
  5826. 'optional2--',
  5827. "//a[contains(@href,'fastshare.org/download') or contains(@href,'FastShare.org/download')]");
  5828. }
  5829. if (GM_getValue("Check_partage_dash_facile_dot_com_links", false))
  5830. {
  5831. addFileHost(
  5832. "partage-facile\.com\/\\w+",
  5833. 'class="title"><strong>|colspan="2"',
  5834. 'Page introuvable|class="alert-message',
  5835. 'optional--',
  5836. 'optional2--',
  5837. "//a[contains(@href,'partage-facile.com')]");
  5838. }
  5839. if (GM_getValue("Check_rapidgator_dot_net_links", false))
  5840. {
  5841. addFileHost(
  5842. "rapidgator\\.net\/file\/\\w+",
  5843. '/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',
  5844. 'Error 404|File not found|Error 500|Файл не найден|ファイルが探せませんでした|Fichier non trouvé|Archivo no encontrado|Select your plan',
  5845. 'optional--',
  5846. 'can be downloaded by premium only|files up to 500 MB in free mode',
  5847. "//a[contains(@href,'rapidgator.net/file')]",
  5848. true
  5849. );
  5850. }
  5851. if (GM_getValue("Check_relink_dot_us_links", false))
  5852. {
  5853. addFileHost(
  5854. "relink\\.us\/(?:f\/\\w+|go\\.php\\?id=\\d+|view\\.php\\?id=\\d+)",
  5855. 'online_detail\\.png" alt="Status',
  5856. '(?:offline|partially)_detail\\.png" alt="Status|File deleted',
  5857. 'unknown_detail\\.png" alt="Status',
  5858. 'optional2--',
  5859. "//a[contains(@href,'relink.us/')]"
  5860. );
  5861. }
  5862. if (GM_getValue("Check_uploadstube_dot_de_links", false))
  5863. {
  5864. addFileHost(
  5865. "uploadstube\\.de\/download\\.php\\?file=\\d+",
  5866. 'div id="dl"',
  5867. 'Sie haben den Link falsch',
  5868. 'optional--',
  5869. 'optional2--',
  5870. "//a[contains(@href,'uploadstube.de/download.php?file=')]"
  5871. );
  5872. }
  5873. if (GM_getValue("Check_flyfiles_dot_net_links", false))
  5874. {
  5875. addFileHost(
  5876. "flyfiles\\.net\/\\w+",
  5877. 'download_button"|"Download file"',
  5878. 'File not found!|Файл не найден',
  5879. 'optional--',
  5880. 'optional2--',
  5881. "//a[contains(@href,'flyfiles.net/')]"
  5882. );
  5883. }
  5884. if (GM_getValue("Check_wikiupload_dot_com_links", false))
  5885. {
  5886. addFileHost(
  5887. "wikiupload\\.com\/\\w+",
  5888. 'download-button">',
  5889. 'Sorry, File not found',
  5890. 'optional--',
  5891. 'optional2--',
  5892. "//a[contains(@href,'wikiupload.com/')]"
  5893. );
  5894. }
  5895. if (GM_getValue("Check_hostuje_dot_net_links", false))
  5896. {
  5897. addFileHost(
  5898. "hostuje\\.net\/file\\.php\\?id=\\w+",
  5899. 'file\\.php">|Pobierz Plik',
  5900. 'Podany plik nie zosta',
  5901. 'optional--',
  5902. 'optional2--',
  5903. "//a[contains(@href,'hostuje.net/file')]"
  5904. );
  5905. }
  5906. if (GM_getValue("Check_gettyfile_dot_ru_links", false))
  5907. {
  5908. addFileHost(
  5909. "gettyfile\\.ru\/\\d+",
  5910. 'download\\.gif border',
  5911. '<center><font size="3">',
  5912. 'optional--',
  5913. 'optional2--',
  5914. "//a[contains(@href,'gettyfile.ru/')]"
  5915. );
  5916. }
  5917. if (GM_getValue("Check_turbobit_dot_ru_links", false))
  5918. {
  5919. addFileHost(
  5920. "(?:turbob1t|failoobmenik|filesmail|firebit|dlbit|files\\.china\\-gsm|3aka4aem|file\\.piratski|mnogofiles|links-free|turbo-bit|turbosfiles)\\.\\w+\/\\w+",
  5921. 'download\\-file">',
  5922. 'col-1">\\s*<h1>',
  5923. 'optional--',
  5924. 'optional2--',
  5925. "//a[contains(@href,'turbobit.ru/') or contains(@href,'filesmail.ru/') or contains(@href,'failoobmenik.ru/')"+
  5926. " or contains(@href,'firebit.in/') or contains(@href,'dlbit.net/') or contains(@href,'files.china-gsm.ru/') or contains(@href,'3aka4aem.ru/')"+
  5927. " or contains(@href,'file.piratski.ru/') or contains(@href,'mnogofiles.com/') or contains(@href,'links-free.ru/')"+
  5928. " or contains(@href,'turbo-bit.ru/') or contains(@href,'turbosfiles.ru/')]"
  5929. );
  5930. }
  5931. if (GM_getValue("Check_data_dot_hu_links", false))
  5932. {
  5933. addFileHost(
  5934. "data\\.hu\/get\/\\d+\/",
  5935. 'download_box_button',
  5936. 'missing\\.php',
  5937. 'optional--',
  5938. 'optional2--',
  5939. "//a[contains(@href,'data.hu/get')]",
  5940. true
  5941. );
  5942. }
  5943. if (GM_getValue("Check_filesmelt_dot_com_links", false))
  5944. {
  5945. addFileHost(
  5946. "filesmelt\\.com\/dl\/\\w+",
  5947. '(Your download is ready|Download File)',
  5948. 'Sorry, but your',
  5949. 'optional--',
  5950. 'optional2--',
  5951. "//a[contains(@href,'filesmelt.com/dl')]"
  5952. );
  5953. }
  5954. if (GM_getValue("Check_indowebster_dot_com_links", false))
  5955. {
  5956. addFileHost(
  5957. "(?:files\\.)?indowebster\\.com\/download\/\\w+\/",
  5958. 'premiumBtn"',
  5959. 'errorMessage"',
  5960. 'optional--',
  5961. 'optional2--',
  5962. "//a[contains(@href,'indowebster.com/download')]"
  5963. );
  5964. }
  5965. if (GM_getValue("Check_superload_dot_cz_links", false))
  5966. {
  5967. addFileHost(
  5968. "superload\\.cz\/dl\/\\w+",
  5969. 'icon-download">',
  5970. 'soubor nebyl nalezen',
  5971. 'optional--',
  5972. 'optional2--',
  5973. "//a[contains(@href,'superload.cz/dl')]"
  5974. );
  5975. }
  5976. if (GM_getValue("Check_hulkfile_dot_eu_links", false))
  5977. {
  5978. addFileHost(
  5979. "(?:w\\.hulkfile\\.com|hulkfile\\.eu)\/\\w+",
  5980. 'op" value="download',
  5981. 'class="err">|width:500px;text-align:left;">',
  5982. 'optional--',
  5983. 'optional2--',
  5984. "//a[contains(@href,'hulkfile.')]"
  5985. );
  5986. }
  5987. if (GM_getValue("Check_easybytez_dot_com_links", false))
  5988. {
  5989. addFileHost(
  5990. "easybytez\\.com\/\\w+",
  5991. 'op" value="download',
  5992. 'stop_error\\.gif',
  5993. 'optional--',
  5994. 'optional2--',
  5995. "//a[contains(@href,'easybytez.com/')]"
  5996. );
  5997. }
  5998. if (GM_getValue("Check_filestore_dot_com_dot_ua_links", false))
  5999. {
  6000. addFileHost(
  6001. "filestore\\.com\\.ua\/\\?d=\\w+",
  6002. 'tdrow1>',
  6003. 'class=warn',
  6004. 'optional--',
  6005. 'optional2--',
  6006. "//a[contains(@href,'filestore.com.ua/?d=')]"
  6007. );
  6008. }
  6009. if (GM_getValue("Check_netkups_dot_com_links", false))
  6010. {
  6011. addFileHost(
  6012. "netkups\\.com\/\\?d=\\w+",
  6013. 'submit">Continue',
  6014. 'page">File not found|deleted due to inactivity',
  6015. 'optional--',
  6016. 'optional2--',
  6017. "//a[contains(@href,'netkups.com/?d=')]"
  6018. );
  6019. }
  6020. if (GM_getValue("Check_openfile_dot_ru_links", false))
  6021. {
  6022. addFileHost(
  6023. "openfile\\.ru\/(?:video\/|)\\d+",
  6024. 'videobox_left">',
  6025. 'blog_title">|not found on this server',
  6026. 'optional--',
  6027. 'optional2--',
  6028. "//a[contains(@href,'openfile.ru/')]"
  6029. );
  6030. }
  6031. if (GM_getValue("Check_extmatrix_dot_com_links", false))
  6032. {
  6033. addFileHost(
  6034. "extmatrix\\.com\/files\/\\w+",
  6035. 'div class="success"',
  6036. 'div class="error"',
  6037. 'optional--',
  6038. 'optional2--',
  6039. "//a[contains(@href,'extmatrix.com/files')]"
  6040. );
  6041. }
  6042. if (GM_getValue("Check_sendfiles_dot_nl_links", false))
  6043. {
  6044. addFileHost(
  6045. "sendfiles\\.nl\/download.aspx\\?ID=\\w+",
  6046. 'content_lnkDownload',
  6047. 'error\\.aspx\\?',
  6048. 'optional--',
  6049. 'optional2--',
  6050. "//a[contains(@href,'sendfiles.nl/download.aspx')]"
  6051. );
  6052. }
  6053. if (GM_getValue("Check_yourfilestore_dot_com_links", false))
  6054. {
  6055. addFileHost(
  6056. "yourfilestore\\.com\/download\/\\d+\/",
  6057. 'download_data">',
  6058. 'may have been deleted|<h1>Sorry!<\/h1>',
  6059. 'optional--',
  6060. 'optional2--',
  6061. "//a[contains(@href,'yourfilestore.com/download')]"
  6062. );
  6063. }
  6064. if (GM_getValue("Check_nekaka_dot_com_links", false))
  6065. {
  6066. addFileHost(
  6067. "nekaka\\.com\/d\/[\\w-]+",
  6068. 'downloadForm">',
  6069. 'invalid file link',
  6070. 'optional--',
  6071. 'optional2--',
  6072. "//a[contains(@href,'nekaka.com/d')]"
  6073. );
  6074. }
  6075. if (GM_getValue("Check_filebig_dot_net_links", false))
  6076. {
  6077. addFileHost(
  6078. "filebig\\.net\/files\/\\w+",
  6079. 'downloadFile">',
  6080. '<p>File not found<\/p>',
  6081. 'optional--',
  6082. 'optional2--',
  6083. "//a[contains(@href,'filebig.net/files')]"
  6084. );
  6085. }
  6086. if (GM_getValue("Check_gamefront_dot_com_links", false))
  6087. {
  6088. addFileHost(
  6089. "files\\.filefront\\.com\/\/;\\d+;;",
  6090. 'downloadLink">',
  6091. 'File not found, you',
  6092. 'optional--',
  6093. 'optional2--',
  6094. "//a[contains(@href,'files.filefront.com')]"
  6095. );
  6096.  
  6097. addFileHost(
  6098. "gamefront\\.com\/files\/\\d+",
  6099. 'downloadLink">',
  6100. 'File not found, you',
  6101. 'optional--',
  6102. 'optional2--',
  6103. "//a[contains(@href,'gamefront.com/files')]"
  6104. );
  6105. }
  6106. if (GM_getValue("Check_hyperfileshare_dot_com_links", false))
  6107. {
  6108. addFileHost(
  6109. "(?:download\\.|)hyperfileshare\\.com\/(?:download\\.php\\?code=|d\/)\\w+",
  6110. 'dnlLnk"',
  6111. 'already been deleted',
  6112. 'optional--',
  6113. 'optional2--',
  6114. "//a[contains(@href,'hyperfileshare.com/download') or contains(@href,'hyperfileshare.com/d')]"
  6115. );
  6116. }
  6117. if (GM_getValue("Check_hellupload_dot_com_links", false))
  6118. {
  6119. addFileHost(
  6120. "hellupload\\.com\/\\w+",
  6121. '<h3>Download File<br',
  6122. 'id="podstrona">|AVOID_IE_BUG',
  6123. 'optional--',
  6124. 'optional2--',
  6125. "//a[contains(@href,'hellupload.com/')]"
  6126. );
  6127. }
  6128. if (GM_getValue("Check_free_dash_uploading_dot_com_links", false))
  6129. {
  6130. addFileHost(
  6131. "free\\-uploading\\.com\/\\w+",
  6132. 'op" value="download',
  6133. 'class="err">|width:500px;text-align:left;">',
  6134. 'optional--',
  6135. 'optional2--',
  6136. "//a[contains(@href,'free-uploading.com/')]"
  6137. );
  6138. }
  6139. if (GM_getValue("Check_fileape_dot_com_links", false))
  6140. {
  6141. addFileHost(
  6142. "fileape\\.com\/download\\-",
  6143. 'button_dl\\.png',
  6144. 'does not exist\\.',
  6145. 'optional--',
  6146. 'optional2--',
  6147. "//a[contains(@href,'fileape.com/')]"
  6148. );
  6149. }
  6150. if (GM_getValue("Check_uppit_dot_com_links", false))
  6151. {
  6152. addFileHost(
  6153. "(?:uppit\\.com|up\\.ht)\/\\w+",
  6154. 'op" value="download',
  6155. 'class="err">|style="width:500px;text-align:left;"|fish-404\\.png"',
  6156. 'optional--',
  6157. 'optional2--',
  6158. "//a[contains(@href,'up.ht/') or contains(@href,'uppit.com/')]",
  6159. true
  6160. );
  6161. }
  6162. if (GM_getValue("Check_nosupload_dot_com_links", false))
  6163. {
  6164. addFileHost(
  6165. "nosupload\\.com\/(?:\\?d=)?\\w+",
  6166. 'op" value="download',
  6167. '>File Not Found<',
  6168. 'optional--',
  6169. 'optional2--',
  6170. "//a[contains(@href,'nosupload.com')]",
  6171. true
  6172. );
  6173. }
  6174. if (GM_getValue("Check_filesin_dot_com_links", false))
  6175. {
  6176. addFileHost(
  6177. "filesin\\.com\/\\w+\/download\\.html",
  6178. 'download_area">',
  6179. 'error_note">',
  6180. 'optional--',
  6181. 'optional2--',
  6182. "//a[contains(@href,'filesin.com/')]",
  6183. true
  6184. );
  6185. }
  6186. if (GM_getValue("Check_nowdownload_dot_ch_links", false))
  6187. {
  6188. addFileHost(
  6189. "nowdownload\\.ch\/dl\/\\w+",
  6190. 'alert-success"',
  6191. 'This file does not exist!',
  6192. 'The file is being transfered',
  6193. 'optional2--',
  6194. "//a[contains(@href,'nowdownload.ch/dl')]"
  6195. );
  6196. }
  6197. if (GM_getValue("Check_axifile_dot_com_links", false))
  6198. {
  6199. addFileHost(
  6200. "axifile\\.com(?:\/\w(2))?\/\\??\\w+",
  6201. 'Dbutton_big"',
  6202. 'download\\-error\\.php',
  6203. 'optional--',
  6204. 'optional2--',
  6205. "//a[contains(@href,'axifile.com/')]"
  6206. );
  6207. }
  6208. if (GM_getValue("Check_hulkshare_dot_com_links", false))
  6209. {
  6210. addFileHost(
  6211. "hulkshare\.com\/\\w+",
  6212. 'download\.sam\.png|This is a private file|id="filename',
  6213. 'File does not exist|fingerprint protected copyright',
  6214. 'optional--',
  6215. 'optional2--',
  6216. "//a[contains(@href,'hulkshare.com')]"
  6217. );
  6218. }
  6219. if (GM_getValue("Check_turbobit_dot_net_links", false)) //folders
  6220. {
  6221. addFileHost(
  6222. "turbobit\\.(?:net|pl)\/download\/folder\/\\d+",
  6223. 'col-1">\\s*<s',
  6224. 'col-1">\\s*<h',
  6225. 'optional--',
  6226. 'optional2--',
  6227. "//a[contains(@href,'turbobit.') and contains(@href,'download/folder')]"
  6228. );
  6229. }
  6230. if (GM_getValue("Check_turbobit_dot_net_links", false)) //folders
  6231. {
  6232. addFileHost(
  6233. "turbobit\\.(?:net|pl)",
  6234. 'id="download-gate-info',
  6235. 'afterWait()',
  6236. 'optional--',
  6237. 'optional2--',
  6238. "//a[contains(@href,'turbobit.net')]"
  6239. );
  6240. }
  6241. if (GM_getValue("Check_hitfile_dot_net_links", false)) //folders
  6242. {
  6243. addFileHost(
  6244. "hitfile\\.net\/download\/folder\/\\d+",
  6245. 'content">\\s*<s',
  6246. 'content">\\s*<h',
  6247. 'optional--',
  6248. 'optional2--',
  6249. "//a[contains(@href,'hitfile.net/download/folder')]"
  6250. );
  6251. }
  6252. if (GM_getValue("Check_netload_dot_in_links", false)) //folders
  6253. {
  6254. addFileHost(
  6255. "netload\\.in\/folder\\.php\\?folder_id=\\w+",
  6256. 'images\/online\\.gif',
  6257. 'InPage_Error"',
  6258. 'optional--',
  6259. 'optional2--',
  6260. "//a[contains(@href,'netload.in/folder.php')]"
  6261. );
  6262. }
  6263. if (GM_getValue("Check_movshare_dot_net_links", false))
  6264. {
  6265. addFileHost(
  6266. "movshare\\.net\\/video\\/\\w+",
  6267. 'optional--"',
  6268. 'no longer exists',
  6269. 'optional--',
  6270. 'optional2--',
  6271. "//a[contains(@href,'movshare.net/video')]"
  6272. );
  6273. }
  6274. if (GM_getValue("Check_plunder_dot_com_links", false))
  6275. {
  6276. addFileHost(
  6277. "plunder\.com\/\\w+",
  6278. 'x\/download\\.gif',
  6279. '404 - File or directory not found.',
  6280. 'optional--',
  6281. 'optional2--',
  6282. "//a[contains(@href,'plunder.com')]"
  6283. );
  6284. }
  6285. if (GM_getValue("Check_mafiastorage_dot_com_links", false))
  6286. {
  6287. addFileHost(
  6288. "mafiastorage\\.com\/\\w+",
  6289. 'op" value="download',
  6290. 'class="err">|style="width:500px;text-align:left;"',
  6291. 'optional--',
  6292. 'optional2--',
  6293. "//a[contains(@href,'mafiastorage.com/')]"
  6294. );
  6295. }
  6296. if (GM_getValue("Check_uploadspace_dot_pl_links", false))
  6297. {
  6298. addFileHost(
  6299. "uploadspace\.pl\/plik\\w+",
  6300. 'Downloading .+? \\|',
  6301. 'Downloading a file',
  6302. 'optional--',
  6303. 'optional2--',
  6304. "//a[contains(@href,'uploadspace.pl/plik')]"
  6305. );
  6306. }
  6307. if (GM_getValue("Check_uploadingit_dot_com_links", false))
  6308. {
  6309. addFileHost(
  6310. "uploadingit\\.com\/file\/\\w+",
  6311. 'downloadTitle">',
  6312. 'deleteContent">',
  6313. 'optional--',
  6314. 'optional2--',
  6315. "//a[contains(@href,'uploadingit.com/file')]"
  6316. );
  6317. }
  6318. if (GM_getValue("Check_rghost_dot_net_links", false))
  6319. {
  6320. addFileHost(
  6321. "rghost\.(?:net|ru)\/(?:|private\/)\\d+",
  6322. 'download_link|btn large download',
  6323. 'file is restricted|File is deleted|503 Service Unavailable',
  6324. 'optional--',
  6325. 'optional2--',
  6326. "//a[contains(@href,'rghost.')]"
  6327. );
  6328. }
  6329. if (GM_getValue("Check_xdisk_dot_cz_links", false))
  6330. {
  6331. addFileHost(
  6332. "xdisk\\.cz\/(?:..\/)?download\\.php\\?id=\\w+",
  6333. '">Staženo:\\s*<\/span>',
  6334. 'Soubor, který hledáte nenalezen',
  6335. 'optional--',
  6336. 'optional2--',
  6337. "//a[contains(@href,'xdisk.cz/')]"
  6338. );
  6339. }
  6340. if (GM_getValue("Check_expressleech_dot_com_links", false))
  6341. {
  6342. addFileHost(
  6343. "expressleech\.com\/\\w+",
  6344. 'src="/img/Download.gif"|var _gaq =',
  6345. 'var rr =|403 Forbidden',
  6346. 'optional--',
  6347. 'optional2--',
  6348. "//a[contains(@href,'expressleech.com')]");
  6349. }
  6350. if (GM_getValue("Check_2downloadz_dot_com_links", false))
  6351. {
  6352. addFileHost(
  6353. "2downloadz\.com\/\\w+",
  6354. 'color="#848484|src="images/Download.png"|color:#238DCA',
  6355. 'color="#006DCC|File error',
  6356. 'optional--',
  6357. 'optional2--',
  6358. "//a[contains(@href,'2downloadz.com')]");
  6359. }
  6360. if (GM_getValue("Check_mightyupload_dot_com_links", false))
  6361. {
  6362. addFileHost(
  6363. "mightyupload\.com\/\\w+",
  6364. 'background:#ccc;text-align|CONTENT="Download File"',
  6365. 'style="background:#eee|var rr =|File Not Found',
  6366. 'error-code">1010',
  6367. 'optional2--',
  6368. "//a[contains(@href,'mightyupload.com')]");
  6369. }
  6370. if (GM_getValue("Check_anysend_dot_com_links", false))
  6371. {
  6372. addFileHost(
  6373. "anysend\.com\/\\w+",
  6374. 'var openCalled=false;|content="noindex"',
  6375. '_trackPageview',
  6376. 'optional--',
  6377. 'optional2--',
  6378. "//a[contains(@href,'anysend.com')]");
  6379. }
  6380. if (GM_getValue("Check_datafile_dot_com_links", false))
  6381. {
  6382. addFileHost(
  6383. "datafile\.com\/\\w+",
  6384. 'var captchaPanel|<link href="/css/files_download.css"',
  6385. 'ErrorCode|ErrorCode 0: Invalid Link|btn-orange" href="#"',
  6386. 'You are downloading another file at this moment|You exceeded your free|Site Maintenance',
  6387. '<style type="text/css">',
  6388. "//a[contains(@href,'.com')]",
  6389. true);
  6390. }
  6391. if (GM_getValue("Check_upstore_dot_net_links", false))
  6392. {
  6393. addFileHost(
  6394. "upstore\.net\/\\w+",
  6395. 'style="margin-top: 20px">|style="text-align:center; margin: 20px 0 100px;">',
  6396. 'File not found|onload="redirect|class="error">',
  6397. 'optional--',
  6398. 'optional2--',
  6399. "//a[contains(@href,'upstore.net')]");
  6400. }
  6401. if (GM_getValue("Check_upsto_dot_re_links", false))
  6402. {
  6403. addFileHost(
  6404. "upsto\.re\/\\w+",
  6405. 'style="margin-top: 20px">|style="text-align:center; margin: 20px 0 100px;">',
  6406. 'File not found|onload="redirect|class="error">',
  6407. 'optional--',
  6408. 'optional2--',
  6409. "//a[contains(@href,'upsto.re')]");
  6410. }
  6411. if (GM_getValue("Check_speedy_dot_sh_links", false))
  6412. {
  6413. addFileHost(
  6414. "speedy\.sh\/\\w+",
  6415. 'bgcolor=#eeeeee|class="addthis',
  6416. 'File not found|downloadfilenamenotfound>',
  6417. 'optional--',
  6418. 'optional2--',
  6419. "//a[contains(@href,'speedy.sh')]");
  6420. }
  6421. if (GM_getValue("Check_sanshare_dot_com_links", false))
  6422. {
  6423. addFileHost(
  6424. "sanshare\.com\/\\w+",
  6425. 'SANSHARE_TOPBANNER|offset-1"><h3><b>Download File',
  6426. 'offset-1"><b>File Not Found<|width:500px;text-align',
  6427. 'optional--',
  6428. 'optional2--',
  6429. "//a[contains(@href,'sanshare.com')]");
  6430. }
  6431. if (GM_getValue("Check_uploadhero_dot_co_links", false))
  6432. {
  6433. addFileHost(
  6434. "uploadhero\\.co\/dl\/\\w+",
  6435. 'class="nom_de_fichier"|Unlimited downloads|Estimated download time|Lien de téléchargement"',
  6436. 'not available on our server|pas disponible sur nos serveurs|Le lien du fichier est incorrect',
  6437. 'optional--',
  6438. 'optional2--',
  6439. "//a[contains(@href,'uploadhero.co/dl')]"
  6440. );
  6441. }
  6442. if (GM_getValue("Check_secureupload_dot_eu_links", false))
  6443. {
  6444. addFileHost(
  6445. "secureupload\\.eu\/\\w+",
  6446. 'Downloading',
  6447. 'cannot be found|File Not Found|could not be found',
  6448. 'optional--',
  6449. 'optional2--',
  6450. "//a[contains(@href,'secureupload.eu')]"
  6451. );
  6452. }
  6453. if (GM_getValue("Check_ge_dot_tt_links", false))
  6454. {
  6455. addFileHost(
  6456. "ge\.tt\/\\w+",
  6457. 'downloads pic',
  6458. 'is NOT the same as',
  6459. 'optional--',
  6460. 'optional2--',
  6461. "//a[contains(@href,'ge.tt')]");
  6462. }
  6463. if (GM_getValue("Check_filefactory_dot_com_links", false))
  6464. {
  6465. addFileHost(
  6466. "filefactory\.com\/\\w+",
  6467. 'div id="file_holder"|download.css',
  6468. 'File Removed|Invalid Download Link|File Unavailable|Server Failed|Datei entfernt|This file has been removed|Invalid Download Link',
  6469. 'Server Maintenance|temporarily overloaded',
  6470. 'optional2--',
  6471. "//a[contains(@href,'filefactory.com')]");
  6472. }
  6473. if (GM_getValue("Check_filesflash_dot_net_links", false))
  6474. {
  6475. addFileHost(
  6476. "filesflash\.net\/\\w+",
  6477. 'align:right">Filename:',
  6478. 'class="msg">',
  6479. 'optional--',
  6480. 'optional2--',
  6481. "//a[contains(@href,'filesflash.net')]");
  6482. }
  6483. if (GM_getValue("Check_rapidgator_dot_net_links", false)) //folders
  6484. {
  6485. addFileHost(
  6486. "rapidgator\\.net\/folder\/\\w+",
  6487. 'href="/folder/',
  6488. 'class="empty|Folder not found|Carpeta no encontrada|Dossier non trouvé|Папка не найдена',
  6489. 'optional--',
  6490. 'optional2--',
  6491. "//a[contains(@href,'rapidgator.net/folder')]",
  6492. true
  6493. );
  6494. }
  6495. if (GM_getValue("Check_salefiles_dot_com_links", false))
  6496. {
  6497. addFileHost(
  6498. "salefiles\.com\/\\w+",
  6499. '<Title>Download|CONTENT="Download',
  6500. 'font:15px Arial|background:#eee;',
  6501. 'optional--',
  6502. 'optional2--',
  6503. "//a[contains(@href,'salefiles.com')]");
  6504. }
  6505. if (GM_getValue("Check_megairon_dot_net_links", false))
  6506. {
  6507. addFileHost(
  6508. "megairon\.net\/\\w+",
  6509. 'border: 5px #ffeb90 solid;',
  6510. 'CONTENT="Download File ">|var rr =',
  6511. 'error-code">523',
  6512. 'optional2--',
  6513. "//a[contains(@href,'megairon.net')]",
  6514. true);
  6515. }
  6516. if (GM_getValue("Check_datoid_dot_cz_links", false))
  6517. {
  6518. addFileHost(
  6519. "datoid\.cz\/\\w+",
  6520. 'btn-download|class="icon-download-large"',
  6521. 'Stránka nenalezena|error-404|Soubor byl zablokován',
  6522. 'optional--',
  6523. 'optional2--',
  6524. "//a[contains(@href,'datoid.cz')]");
  6525. }
  6526. if (GM_getValue("Check_stiahni_dot_si_links", false))
  6527. {
  6528. addFileHost(
  6529. "stiahni\.si\/\\w+",
  6530. 'report_icon.png"|slow-download-button',
  6531. 'none.png|deleted|<h2>Error 500</h2>',
  6532. 'optional--',
  6533. 'optional2--',
  6534. "//a[contains(@href,'stiahni.si')]");
  6535. }
  6536. if (GM_getValue("Check_cloudstor_dot_es_links", false))
  6537. {
  6538. addFileHost(
  6539. "cloudstor\.es\/\\w+",
  6540. '"btn_download"',
  6541. '404: Page Not Found',
  6542. 'optional--',
  6543. 'optional2--',
  6544. "//a[contains(@href,'cloudstor.es')]");
  6545. }
  6546. if (GM_getValue("Check_streamfile_dot_com_links", false))
  6547. {
  6548. addFileHost(
  6549. "streamfile\.com\/\\w+",
  6550. 'class="btn',
  6551. 'class="green-btn',
  6552. 'optional--',
  6553. 'optional2--',
  6554. "//a[contains(@href,'streamfile.com')]");
  6555. }
  6556. if (GM_getValue("Check_eyesfile_dot_ca_links", false))
  6557. {
  6558. addFileHost(
  6559. "eyesfile\.ca\/\\w+",
  6560. 'value="Get Link',
  6561. 'var rr =',
  6562. 'optional--',
  6563. 'optional2--',
  6564. "//a[contains(@href,'eyesfile.ca')]");
  6565. }
  6566. if (GM_getValue("Check_filemoney_dot_com_links", false))
  6567. {
  6568. addFileHost(
  6569. "filemoney\.com\/\\w+",
  6570. 'og:title',
  6571. '404 Not Found|<Title>FileMoney|File Not Found|class="err">DMCA</b>',
  6572. 'error-code">1010',
  6573. 'optional2--',
  6574. "//a[contains(@href,'filemoney.com')]");
  6575. }
  6576. if (GM_getValue("Check_uploadboy_dot_com_links", false))
  6577. {
  6578. addFileHost(
  6579. "uploadboy\.com\/\\w+",
  6580. 'width="740">|method_free',
  6581. 'var rr =|background:#ffffff|not be found|file was removed',
  6582. 'optional--',
  6583. 'optional2--',
  6584. "//a[contains(@href,'uploadboy.com')]");
  6585. }
  6586. if (GM_getValue("Check_speedshare_dot_eu_links", false))
  6587. {
  6588. addFileHost(
  6589. "speedshare\.eu\/\\w+",
  6590. 'favicon.png|color:#3d87c0|cross.png"',
  6591. 'var rr =|File Not Found|style="background:#eee',
  6592. 'optional--',
  6593. 'optional2--',
  6594. "//a[contains(@href,'speedshare.eu')]");
  6595. }
  6596. if (GM_getValue("Check_unlimitzone_dot_com_links", false))
  6597. {
  6598. addFileHost(
  6599. "unlimitzone\.com\/\\w+",
  6600. 'name="method_free',
  6601. 'var rr =|File Not Found|removed by administrator|class="err">|Файл не найден|Datei nicht gefunden|fichier non trouve|Dosya bulunamadД±|Nie znaleziono pliku|ไม่พบไฟล์ที่ต้องการ|Nie znaleziono pliku|Archive no Encontrado|ファイルが見つかりません。|File nem talГЎlhatГі|File tidak ditemukan|Bestand niet gevonden',
  6602. 'optional--',
  6603. 'optional2--',
  6604. "//a[contains(@href,'unlimitzone.com')]");
  6605. }
  6606. if (GM_getValue("Check_rioupload_dot_com_links", false))
  6607. {
  6608. addFileHost(
  6609. "rioupload\.com\/\\w+",
  6610. 'sell.jpg',
  6611. 'var rr =',
  6612. 'optional--',
  6613. 'optional2--',
  6614. "//a[contains(@href,'rioupload.com')]");
  6615. }
  6616. if (GM_getValue("Check_rg_dot_to_links", false))
  6617. {
  6618. addFileHost(
  6619. "rg\.to\/\\w+",
  6620. '/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',
  6621. 'Error 404|File not found|Select your plan|Fichier non trouvé|Archivo no encontrado|ファイルが探せませんでした|Файл не найден',
  6622. 'optional--',
  6623. 'can be downloaded by premium only|files up to 500 MB in free mode',
  6624. "//a[contains(@href,'rg.to')]");
  6625. }
  6626. if (GM_getValue("Check_jumbofiles_dot_org_links", false))
  6627. {
  6628. addFileHost(
  6629. "jumbofiles\.org\/\\w+",
  6630. 'H71C5.png|class="downloadtitle">',
  6631. 'var swfu|ViewSourceBIN.png',
  6632. 'optional--',
  6633. 'optional2--',
  6634. "//a[contains(@href,'jumbofiles.org')]");
  6635. }
  6636. if (GM_getValue("Check_fshare_dot_vn_links", false))
  6637. {
  6638. addFileHost(
  6639. "fshare\\.vn\/file\/\\w+",
  6640. 'action="#download"|left; width: 330px;">|class="bt_down"',
  6641. 'không tồn tại|class="color_red m_t_50"',
  6642. 'optional--',
  6643. 'optional2--',
  6644. "//a[contains(@href,'fshare.vn/file')]",
  6645. true
  6646. );
  6647. }
  6648. if (GM_getValue("Check_spaceforfiles_dot_com_links", false))
  6649. {
  6650. addFileHost(
  6651. "spaceforfiles\.com\/\\w+",
  6652. 'btn_slowspeed_b.jpg|value="download1|class="btn_blue',
  6653. 'var rr =|AVOID_IE_BUG',
  6654. 'optional--',
  6655. 'optional2--',
  6656. "//a[contains(@href,'spaceforfiles.com')]");
  6657. }
  6658. if (GM_getValue("Check_google_dot_com_links", false))
  6659. {
  6660. addFileHost(
  6661. "google\\.com\/file\/\\w+",
  6662. 'content="!">|color:#2d2d2d',
  6663. '12pt; font-weight:|class="errorMessage"|F0F6FF',
  6664. 'optional--',
  6665. 'optional2--',
  6666. "//a[contains(@href,'google.com/file')]",
  6667. true
  6668. );
  6669. }
  6670. if (GM_getValue("Check_google_dot_com_links", false))
  6671. {
  6672. addFileHost(
  6673. "docs.google.com\/\\w+",
  6674. 'content="!">|color:#2d2d2d',
  6675. '12pt; font-weight:|class="errorMessage"|F0F6FF|Error 404',
  6676. 'optional--',
  6677. 'optional2--',
  6678. "//a[contains(@href,'docs.google.com')]",
  6679. true
  6680. );
  6681. }
  6682. if (GM_getValue("Check_google_dot_com_links", false))
  6683. {
  6684. addFileHost(
  6685. "drive.google.com\/\\w+",
  6686. 'content="!">|color:#2d2d2d|id="uc-download-link',
  6687. '12pt; font-weight:|class="errorMessage"|F0F6FF|Error 404',
  6688. 'optional--',
  6689. 'optional2--',
  6690. "//a[contains(@href,'drive.google.com')]",
  6691. true
  6692. );
  6693. }
  6694. if (GM_getValue("Check_up_dot_media1fire_dot_com_links", false))
  6695. {
  6696. addFileHost(
  6697. "up.media1fire\.com\/\\w+",
  6698. 'class="addthis_|value="download',
  6699. 'var rr =|AVOID_IE_BUG|<div style="width:500px;text-align:left;">',
  6700. 'optional--',
  6701. 'optional2--',
  6702. "//a[contains(@href,'up.media1fire.com')]");
  6703. }
  6704. if (GM_getValue("Check_depfile_dot_com_links", false))
  6705. {
  6706. addFileHost(
  6707. "depfile\.com\/\\w+",
  6708. 'logo_0.png|downloads.gif"|verifycode',
  6709. 'border-color: #5D729B;|bgcolor="#778AAF"|deleted by the owner|Invalid Link',
  6710. 'optional--',
  6711. 'optional2--',
  6712. "//a[contains(@href,'depfile.com')]");
  6713. }
  6714. if (GM_getValue("Check_go4up_dot_com_links", false))
  6715. {
  6716. addFileHost(
  6717. "go4up\.com\/\\w+",
  6718. 'style="width: 100%;">|value="Access|download_line',
  6719. '<title>GO4UP|dmca',
  6720. 'optional--',
  6721. 'optional2--',
  6722. "//a[contains(@href,'go4up.com')]");
  6723. }
  6724. if (GM_getValue("Check_redbunker_dot_net_links", false))
  6725. {
  6726. addFileHost(
  6727. "redbunker\.net\/\\w+",
  6728. 'dload.png|rowspan="3">|yep.gif',
  6729. 'CONTENT="RedBunker|#D3D3D3;|color:#d33|AVOID_IE_BUG',
  6730. 'optional--',
  6731. 'optional2--',
  6732. "//a[contains(@href,'redbunker.net')]");
  6733. }
  6734. if (GM_getValue("Check_divxpress_dot_com_links", false))
  6735. {
  6736. addFileHost(
  6737. "divxpress\.com\/\\w+",
  6738. 'btn_download|logo.png"',
  6739. 'AVOID_IE_BUG|var rr =',
  6740. 'optional--',
  6741. 'optional2--',
  6742. "//a[contains(@href,'divxpress.com')]");
  6743. }
  6744. if (GM_getValue("Check_anafile_dot_com_links", false))
  6745. {
  6746. addFileHost(
  6747. "anafile\.com\/\\w+",
  6748. 'width="881" valign="top|color="#800080"|name="go"',
  6749. 'style="width:500px;text-align:left;">|file was deleted|AVOID_IE_BUG',
  6750. 'optional--',
  6751. 'optional2--',
  6752. "//a[contains(@href,'anafile.com')]");
  6753. }
  6754. if (GM_getValue("Check_uploadable_dot_ch_links", false))
  6755. {
  6756. addFileHost(
  6757. "uploadable\\.ch\/file\/\\w+",
  6758. 'captcha.js"|payment.js"|class="btn_download"',
  6759. '<div class="icon_err">|<div class="errorBox">|"error_arrow">',
  6760. 'optional--',
  6761. 'optional2--',
  6762. "//a[contains(@href,'uploadable.ch/file')]",
  6763. true
  6764. );
  6765. }
  6766. if (GM_getValue("Check_arabloads_dot_net_links", false))
  6767. {
  6768. addFileHost(
  6769. "arabloads\.net\/\\w+",
  6770. 'name="method_free"|name="method_premium"',
  6771. 'background:#eee;font:15px Arial;">|AVOID_IE_BUG|Verdana;padding:3px;">Error|Not Found',
  6772. 'optional--',
  6773. 'optional2--',
  6774. "//a[contains(@href,'arabloads.net')]");
  6775. }
  6776. if (GM_getValue("Check_sharerepo_dot_com_links", false))
  6777. {
  6778. addFileHost(
  6779. "sharerepo\.com\/\\w+",
  6780. 'name="method_free"',
  6781. 'var public_on=|The file you were looking for could not be found',
  6782. 'optional--',
  6783. 'optional2--',
  6784. "//a[contains(@href,'sharerepo.com')]");
  6785. }
  6786. if (GM_getValue("Check_sfshare_dot_se_links", false))
  6787. {
  6788. addFileHost(
  6789. "sfshare\.se\/\\w+",
  6790. 'id="btn_download"|class="btn btn-primary txt-bold" value="',
  6791. 'AVOID_IE_BUG|var rr =|style="width:500px;text-align:left;">|Reason for deletion|The file was removed',
  6792. 'optional--',
  6793. 'optional2--',
  6794. "//a[contains(@href,'sfshare.se')]");
  6795. }
  6796. if (GM_getValue("Check_files_dot_fm_links", false))
  6797. {
  6798. addFileHost(
  6799. "files\.fm\/\\w+",
  6800. 'dl.png"|background-color: transparent',
  6801. 'margin: 40px 40px|background: none;',
  6802. 'optional--',
  6803. 'optional2--',
  6804. "//a[contains(@href,'files.fm')]");
  6805. }
  6806. if (GM_getValue("Check_koofile_dot_com_links", false))
  6807. {
  6808. addFileHost(
  6809. "koofile\.com\/\\w+",
  6810. 'value="download1">|name="method_free"',
  6811. 'class="overview-content c_text-box ">|style="padding-top:3px;">|class="rt1 c">',
  6812. 'optional--',
  6813. 'optional2--',
  6814. "//a[contains(@href,'koofile.com')]");
  6815. }
  6816. if (GM_getValue("Check_vidxden_dot_com_links", false))
  6817. {
  6818. addFileHost(
  6819. "vidxden\\.com\/\\w+",
  6820. 'Continue to Video"',
  6821. 'No such file',
  6822. 'optional--',
  6823. 'optional2--',
  6824. "//a[contains(@href,'vidxden.com')]"
  6825. );
  6826. }
  6827. if (GM_getValue("Check_muchshare_dot_net_links", false))
  6828. {
  6829. addFileHost(
  6830. "muchshare\\.net\/\\w+",
  6831. 'id="btn_download"',
  6832. 'File Not Found|width: 500px; text-align: left;',
  6833. 'optional--',
  6834. 'optional2--',
  6835. "//a[contains(@href,'muchshare.net')]"
  6836. );
  6837. }
  6838. if (GM_getValue("Check_daten_dash_hoster_dot_de_links", false))
  6839. {
  6840. addFileHost(
  6841. "(?:daten-hoster\\.de\/file\/\\w+|filehosting\\.org\/file\/\\w+|xtraupload\\.de\/\\?d=\\w+)",
  6842. 'Details zur Datei|Details page',
  6843. 'Jetzt hochladen|upload now',
  6844. 'optional--',
  6845. 'optional2--',
  6846. "//a[contains(@href,'daten-hoster.de/file') or contains(@href,'filehosting.org/file') or contains(@href,'xtraupload.de')]"
  6847. );
  6848. }
  6849. if (GM_getValue("Check_upload_dash_il_dot_net_links", false))
  6850. {
  6851. addFileHost(
  6852. "(?:upload-il|przeslij)\.net\/(?:en|he|ar|ru|)\/?\\w+",
  6853. 'downloadbtn"',
  6854. 'DL_FileNotFound',
  6855. 'optional--',
  6856. 'optional2--',
  6857. "//a[contains(@href,'upload-il.net') or contains(@href,'przeslij.net')]"
  6858. );
  6859. }
  6860. if (GM_getValue("Check_fileflyer_dot_com_links", false))
  6861. {
  6862. addFileHost(
  6863. "fileflyer\.com\/view\/\\w+",
  6864. '(?:dwl|locked)btn"',
  6865. 'error.gif"|link">Removed|removedlink">',
  6866. 'optional--',
  6867. 'optional2--',
  6868. "//a[contains(@href,'fileflyer.com')]"
  6869. );
  6870. }
  6871. if (GM_getValue("Check_filestore_dot_to_links", false))
  6872. {
  6873. addFileHost(
  6874. "filestore\.to\/\\?d=\\w+",
  6875. '"downloading"',
  6876. 'Datei wurde nicht gefunden',
  6877. 'optional--',
  6878. 'optional2--',
  6879. "//a[contains(@href,'filestore.to')]"
  6880. );
  6881. }
  6882. if (GM_getValue("Check_easy_dash_share_dot_com_links", false))
  6883. {
  6884. addFileHost(
  6885. "(?:w\\d*\.|)(?:crocko|easy-share)\\.com\/.",
  6886. 'fz24">Download|class="pl15">',
  6887. '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',
  6888. 'optional--',
  6889. 'optional2--',
  6890. "//a[contains(@href,'easy-share.com') or contains(@href,'crocko.com')]"
  6891. );
  6892. }
  6893. if (GM_getValue("Check_burnupload_dot_com_links", false))
  6894. {
  6895. addFileHost(
  6896. "burnupload\\.(?:com\/\\?d=|ihiphop\\.com\/download\\.php\\?id=)\\w+",
  6897. 'File size:',
  6898. 'file is not found',
  6899. 'optional--',
  6900. 'optional2--',
  6901. "//a[contains(@href,'burnupload.com') or contains(@href,'burnupload.ihiphop.com')]"
  6902. );
  6903. }
  6904. if (GM_getValue("Check_datei_dot_to_links", false))
  6905. {
  6906. addFileHost(
  6907. "datei\\.to\/\\??\\w+",
  6908. 'icon_downloaden\\.png|>Download starten<',
  6909. 'Datei wurde nicht gefunden|icon_deleted.png',
  6910. 'optional--',
  6911. 'optional2--',
  6912. "//a[contains(@href,'datei.to')]"
  6913. );
  6914. }
  6915. if (GM_getValue("Check_yunfile_dot_com_links", false))
  6916. {
  6917. addFileHost(
  6918. "(?:yunfile|filemarkets)\\.com\/\\w+",
  6919. '<body class="body" id="body">|value="Slow Download"',
  6920. '<body class="body" >',
  6921. 'optional--',
  6922. 'optional2--',
  6923. "//a[contains(@href,'yunfile.com') or contains(@href,'filemarkets.com')]"
  6924. );
  6925. }
  6926. if (GM_getValue("Check_uploadhero_dot_com_links", false))
  6927. {
  6928. addFileHost(
  6929. "uploadhero\\.com\/dl\/\\w+",
  6930. 'content-dl">',
  6931. 'men_file_lost\\.jpg"',
  6932. 'optional--',
  6933. 'optional2--',
  6934. "//a[contains(@href,'uploadhero.com/dl')]"
  6935. );
  6936. }
  6937. if (GM_getValue("Check_unibytes_dot_com_links", false))
  6938. {
  6939. addFileHost(
  6940. "unibytes\\.com\/[\\w\.]+",
  6941. 'trying to download|пытаетесь загрузить файл|tes entrain de tlcharger',
  6942. 'File not found|Файл не найден|',
  6943. 'optional--',
  6944. 'optional2--',
  6945. "//a[contains(@href,'unibytes.com')]"
  6946. );
  6947. }
  6948. if (GM_getValue("Check_hellshare_dot_com_links", false)) //very old type of links
  6949. {
  6950. addFileHost(
  6951. "www\\.hellshare\\.com\/\\d+",
  6952. 'tab\\-details"',
  6953. 'list-purp-2"|not found on this server',
  6954. 'optional--',
  6955. 'optional2--',
  6956. "//a[contains(@href,'www.hellshare.com')]"
  6957. );
  6958. }
  6959. if (GM_getValue("Check_quickshare_dot_cz_links", false)) //folders
  6960. {
  6961. addFileHost(
  6962. "quickshare\\.cz\/slozka-\\d+",
  6963. 'Počet souborů: <strong>[1-9]',
  6964. 'Počet souborů: <strong>0|Chyba! Taková složka neexistuje',
  6965. 'optional--',
  6966. 'optional2--',
  6967. "//a[contains(@href,'quickshare.cz/slozka')]"
  6968. );
  6969. }
  6970. if (GM_getValue("Check_filefactory_dot_com_links", false)) //folders
  6971. {
  6972. addFileHost(
  6973. "filefactory\\.com\/f\/\\w+",
  6974. 'folderFileList">',
  6975. 'table class="items"|Pointer" class="red">',
  6976. 'optional--',
  6977. 'optional2--',
  6978. "//a[contains(@href,'filefactory.com/f/')]"
  6979. );
  6980. }
  6981. if (GM_getValue("Check_netload_dot_in_links", false)) //folders
  6982. {
  6983. addFileHost(
  6984. "netfolder\\.in\/\\w+",
  6985. 'list" value="http',
  6986. 'InPage_Error">|list" value=""',
  6987. 'optional--',
  6988. 'optional2--',
  6989. "//a[contains(@href,'netfolder.in')]"
  6990. );
  6991. }
  6992. if (GM_getValue("Check_load_dot_to_links", false))
  6993. {
  6994. addFileHost(
  6995. '(?:www\\.|\\/)load\\.to\\/(?:\\w{10}\\/.|\\?d=\\w{10})',
  6996. '"download_table_left">Size',
  6997. 'Can\'t find file',
  6998. 'optional--',
  6999. 'optional2--',
  7000. "//a[contains(@href,'/load.to/') or contains(@href,'www.load.to/')]"
  7001. );
  7002. }
  7003. if (GM_getValue("Check_divshare_dot_com_links", false))
  7004. {
  7005. addFileHost(
  7006. "divshare\\.com\/download\/",
  7007. 'download_new\.png',
  7008. 'have been removed',
  7009. 'optional--',
  7010. 'optional2--',
  7011. "//a[contains(@href,'divshare.com')]"
  7012. );
  7013. }
  7014. if (GM_getValue("Check_euroshare_dot_eu_links", false))
  7015. {
  7016. addFileHost(
  7017. "euroshare\\.(?:eu|pl|sk|cz|hu)\/file\/\\d+",
  7018. 'nazev-souboru">',
  7019. '<div id="obsah">\\s*<h1>',
  7020. 'optional--',
  7021. 'optional2--',
  7022. "//a[contains(@href,'euroshare.eu/file')]"
  7023. );
  7024. }
  7025. if (GM_getValue("Check_files_dot_mail_dot_ru_links", false))
  7026. {
  7027. addFileHost(
  7028. 'files\\.mail\\.ru/(?:\\w*)',
  7029. 'fileList',
  7030. 'errorMessage',
  7031. 'optional--',
  7032. 'optional2--',
  7033. "//a[contains(@href,'files.mail.ru')]"
  7034. );
  7035. }
  7036. if (GM_getValue("Check_megashares_dot_com_links", false))
  7037. {
  7038. addFileHost(
  7039. "(?:d\\d+\.|)megashares\.com\/(?:dl|index\.php\\?d|\\?d\\d+=\\w+)",
  7040. 'Filesize',
  7041. 'Invalid|deleted|Could not download file',
  7042. 'slots|scheduled maintenance',
  7043. 'optional2--',
  7044. "//a[contains(@href,'megashares.com/')]"
  7045. );
  7046. }
  7047. if (GM_getValue("Check_narod_dot_ru_links", false))
  7048. {
  7049. addFileHost(
  7050. 'narod\\.(?:yandex\\.|)ru\/disk\/',
  7051. 'b-submit',
  7052. 'b-download-virus-note|headCode">404<',
  7053. 'Внутренняя ошибка сервиса',
  7054. 'optional2--',
  7055. "//a[contains(@href,'narod.ru') or contains(@href,'narod.yandex.ru')]"
  7056. );
  7057. }
  7058. if (GM_getValue("Check_rayfile_dot_com_links", false))
  7059. {
  7060. addFileHost(
  7061. "rayfile\\.com\/",
  7062. 'FILEtitleTXT',
  7063. 'blueRow',
  7064. 'optional--',
  7065. 'optional2--',
  7066. "//a[contains(@href,'rayfile.com/') and contains(@href,'files')]"
  7067. );
  7068. }
  7069. if (GM_getValue("Check_filesmonster_dot_com_links", false))
  7070. {
  7071. addFileHost(
  7072. "filesmonster\\.com\/download\\.php\\?id=\\w+",
  7073. 'button_green_body"',
  7074. 'error">',
  7075. 'optional--',
  7076. 'optional2--',
  7077. "//a[contains(@href,'filesmonster.com/download')]"
  7078. );
  7079. }
  7080. if (GM_getValue("Check_usaupload_dot_net_links", false))
  7081. {
  7082. addFileHost(
  7083. 'usaupload\\.net\/d\/(?:\w*)',
  7084. '<strong>File size:</strong>',
  7085. 'is not available',
  7086. 'optional--',
  7087. 'optional2--',
  7088. "//a[contains(@href,'usaupload.net/d/')]"
  7089. );
  7090. }
  7091. if (GM_getValue("Check_sendspace_dot_com_links", false))
  7092. {
  7093. addFileHost(
  7094. 'sendspace\\.com\/file\/\\w+',
  7095. 'file_description',
  7096. 'msg error"',
  7097. 'optional--',
  7098. 'optional2--',
  7099. "//a[contains(@href,'sendspace.com/file')]"
  7100. );
  7101. }
  7102. if (GM_getValue("Check_sendspace_dot_pl_links", false))
  7103. {
  7104. addFileHost(
  7105. 'sendspace\\.pl\/file\/\\w+',
  7106. 'download_file"',
  7107. 'Podany plik nie',
  7108. 'optional--',
  7109. 'optional2--',
  7110. "//a[contains(@href,'sendspace.pl/file')]"
  7111. );
  7112. }
  7113. if (GM_getValue("Check_uploading_dot_com_links", false))
  7114. {
  7115. addFileHost(
  7116. 'uploading\\.com\/(?:files\/)?\\w+',
  7117. 'free_method">',
  7118. 'file_error">|error_404">|file not found|OOPS! Looks like file not found',
  7119. 'optional--',
  7120. 'optional2--',
  7121. "//a[contains(@href,'uploading.com')]"
  7122. );
  7123. }
  7124. if (GM_getValue("Check_gigasize_dot_com_links", false))
  7125. {
  7126. addFileHost(
  7127. 'gigasize\\.com\/get\\.php(?:\/\\d+|\\?d=\\w+)',
  7128. 'fileId"',
  7129. 'error">',
  7130. 'optional--',
  7131. 'optional2--',
  7132. "//a[contains(@href,'gigasize.com/get')]"
  7133. );
  7134. }
  7135. if (GM_getValue("Check_good_dot_com_links", false))
  7136. {
  7137. addFileHost(
  7138. 'good\\.net\/(?:_|dl)',
  7139. 'Free Download',
  7140. 'Not Found',
  7141. 'Forbidden',
  7142. 'optional2--',
  7143. "//a[contains(@href,'good.net')]"
  7144. );
  7145. }
  7146. if (GM_getValue("Check_2shared_dot_com_links", false))
  7147. {
  7148. addFileHost(
  7149. '2shared\\.com\/(?:file|video|document|audio)\/\\w*',
  7150. 'File size',
  7151. 'File not found|is not valid|/images/important.gif',
  7152. 'optional--',
  7153. 'optional2--',
  7154. "//a[contains(@href,'2shared.com/file/') or contains (@href,'2shared.com/audio/') or contains (@href,'2shared.com/document/') or contains (@href,'2shared.com/video/')]"
  7155. );
  7156. }
  7157. if (GM_getValue("Check_turboupload_dot_com_links", false))
  7158. {
  7159. addFileHost(
  7160. 'turboupload\\.com\/\\w*',
  7161. 'You have requested',
  7162. 'File Not Found',
  7163. 'optional--',
  7164. 'optional2--',
  7165. "//a[contains(@href,'turboupload.com')]"
  7166. );
  7167. }
  7168. if (GM_getValue("Check_gigapeta_dot_com_links", false))
  7169. {
  7170. addFileHost(
  7171. 'gigapeta\\.com\/dl\/',
  7172. 'Download file|Скачать файл| Herunterzuladen|Scarica il file|Cargar el fichero|Charger le fichier',
  7173. '404|page_error',
  7174. 'optional--',
  7175. 'optional2--',
  7176. "//a[contains(@href,'gigapeta.com/dl')]"
  7177. );
  7178. }
  7179. if (GM_getValue("Check_veehd_dot_com_links", false))
  7180. {
  7181. addFileHost(
  7182. 'veehd\.com\/video\/.*?',
  7183. 'No sound|Download video',
  7184. 'Featured Videos',
  7185. 'optional--',
  7186. 'optional2--',
  7187. "//a[contains(@href,'veehd.com') and contains(@href,'video')]"
  7188. );
  7189. }
  7190. if (GM_getValue("Check_vip_dash_file_dot_com_links", false))
  7191. {
  7192. addFileHost(
  7193. '(?:u\\d+\\.)?vip-file\\.com\/download.*?\/(?:.*?)\/(?:.*?)\\.html',
  7194. 'fast_download_form">|submit_sms_download',
  7195. '<p style="text-align:center">',
  7196. 'optional--',
  7197. 'optional2--',
  7198. "//a[contains(@href,'vip-file.com/download')]"
  7199. );
  7200. }
  7201. if (GM_getValue("Check_letitbit_dot_net_links", false))
  7202. {
  7203. addFileHost(
  7204. '(?:u\\d+\\.)?letitbit\\.net\/download\/\\w+',
  7205. 'download\\-pnl ',
  7206. 'color:#000">|Запрашиваемый файл не найден|страница не существует|File not found|',
  7207. 'optional--',
  7208. 'optional2--',
  7209. "//a[contains(@href,'letitbit.net/download')]"
  7210. );
  7211. }
  7212. if (GM_getValue("Check_ifolder_dot_ru_links", false))
  7213. {
  7214. addFileHost(
  7215. 'ifolder\.ru\/\\d+',
  7216. 'file-info',
  7217. 'ui-state-error',
  7218. 'optional--',
  7219. 'optional2--',
  7220. "//a[contains(@href,'ifolder.ru')]"
  7221. );
  7222. }
  7223. if (GM_getValue("Check_fileswap_dot_com_links", false))
  7224. {
  7225. addFileHost(
  7226. 'fileswap\\.com\/dl\/\\w+',
  7227. 'bttnDownloadLink"',
  7228. 'rounded_block_error"',
  7229. 'is temporary unavailable|disponible en estos momentos|vorläufig unerreichbar|Файл временно недоступен',
  7230. 'optional2--',
  7231. "//a[contains(@href,'fileswap.com/dl')]"
  7232. );
  7233. }
  7234. if (GM_getValue("Check_filecloud_dot_io_links", false))
  7235. {
  7236. addFileHost(
  7237. '(?:s\\d+\\.)?filecloud\\.io\/\\w+',
  7238. 'var __error = 0',
  7239. 'FILES__DOESNT_EXIST|removed or did not exist',
  7240. 'optional--',
  7241. 'optional2--',
  7242. "//a[contains(@href,'filecloud.io/')]"
  7243. );
  7244. addFileHost(
  7245. 'ifile\\.it\/\\w+',
  7246. 'var __error = 0',
  7247. 'FILES__DOESNT_EXIST',
  7248. 'optional--',
  7249. 'optional2--',
  7250. "//a[contains(@href,'ifile.it/')]"
  7251. );
  7252. }
  7253. if (GM_getValue("Check_solidfiles_dot_com_links", false))
  7254. {
  7255. addFileHost(
  7256. 'solidfiles\\.com\/d\/\\w+',
  7257. 'id="download"|content="Download',
  7258. '>Not found<|<h2>404</h2>|Page not found|<h1>404</h1>|File not available|no longer available',
  7259. 'optional--',
  7260. 'optional2--',
  7261. "//a[contains(@href,'solidfiles.com/d')]"
  7262. );
  7263. }
  7264. if (GM_getValue("Check_shareflare_dot_net_links", false))
  7265. {
  7266. addFileHost(
  7267. "(?:.\\.|)shareflare\\.net",
  7268. 'download-pnl|<div class="premium-block">',
  7269. 'File not found|Поиск зеркала на фа|<div id="captcha"',
  7270. 'optional--',
  7271. 'optional2--',
  7272. "//a[contains(@href,'shareflare.net') and contains(@href,'download')]"
  7273. );
  7274. }
  7275. if (GM_getValue("Check_u18116681_dot_shareflare_dot_net_links", false))
  7276. {
  7277. addFileHost(
  7278. "u18116681.shareflare\\.net",
  7279. 'download-pnl|<div class="premium-block">',
  7280. 'File not found|Поиск зеркала на фа|<div id="captcha"',
  7281. 'optional--',
  7282. 'optional2--',
  7283. "//a[contains(@href,'shareflare.net') and contains(@href,'download')]"
  7284. );
  7285. }
  7286. if (GM_getValue("Check_uloz_dot_to_links", false))
  7287. {
  7288. addFileHost(
  7289. "(?:uloz|ulozto|bagruj|zachowajto)\\.(to|cz|sk|net|pl)\/\\w",
  7290. 'fileDownload">|fileSize">',
  7291. 'grayButton deletedFile">|Stránka nenalezena|upload-button"|jako soukromý.',
  7292. 'passwordProtectedFile">|frmaskAgeForm-disagree',
  7293. 'optional2--',
  7294. "//a[contains(@href,'bagruj.cz') or contains(@href,'uloz.to') or contains(@href,'ulozto.') or contains(@href,'zachowajto.pl')]",
  7295. true
  7296. );
  7297. }
  7298. if (GM_getValue("Check_hellspy_dot_com_links", false))
  7299. {
  7300. addFileHost(
  7301. "hellspy\.(?:com|cz|sk|hu|pl)\/\\w+",
  7302. 'file\\-list-orderby|section-filedetail">',
  7303. '<\/span><\/h2>\\s*<p>|list-purp-2">|flash info sticky">',
  7304. 'optional--',
  7305. 'optional2--',
  7306. "//a[contains(@href,'hellspy.')]"
  7307. );
  7308. }
  7309. if (GM_getValue("Check_leteckaposta_dot_cz_links", false))
  7310. {
  7311. addFileHost(
  7312. "(?:leteckaposta\\.cz|sharegadget\\.com)\/\\d+",
  7313. '<body onload="">',
  7314. 'neexistuje|not exist',
  7315. 'optional--',
  7316. 'optional2--',
  7317. "//a[contains(@href,'leteckaposta.cz') or contains(@href,'sharegadget.com')]"
  7318. );
  7319. }
  7320. if (GM_getValue("Check_stahovanizasms_dot_cz_links", false))
  7321. {
  7322. addFileHost(
  7323. "stahovanizasms\\.cz\/\\w+",
  7324. 'download\\.png>|font-size:11px><tr>',
  7325. 'smaz.n u.ivatelem|font-size:11px><\/table>',
  7326. 'optional--',
  7327. 'optional2--',
  7328. "//a[contains(@href,'stahovanizasms.cz')]"
  7329. );
  7330. }
  7331. if (GM_getValue("Check_share_dash_links_dot_biz_links", false))
  7332. {
  7333. addFileHost(
  7334. "share-links\\.biz\/\\w*",
  7335. 'online\\.gif',
  7336. '(?:offline|parts)\\.gif',
  7337. 'optional--',
  7338. 'optional2--',
  7339. "//a[contains(@href,'share-links.biz')]"
  7340. );
  7341. }
  7342. if (GM_getValue("Check_4shared_dot_com_links", false))
  7343. {
  7344. addFileHost(
  7345. "4shared\\.com\/.+\/",
  7346. '<input type="hidden" class="jsSocialTwDefaultText" value=',
  7347. 'class="warn\"|big red"|GetDataBack',
  7348. 'Service Unavailable',
  7349. 'optional2--',
  7350. "//a[contains(@href,'4shared.com')]"
  7351. );
  7352. }
  7353. if (GM_getValue("Check_zippyshare_dot_com_links", false))
  7354. {
  7355. addFileHost(
  7356. "(?:www\\d+\.|)zippyshare\.com\/",
  7357. 'download\.png|Download Now|images/download_small.png|id="dlbutton"',
  7358. 'not exist|Status 404',
  7359. 'optional--',
  7360. 'optional2--',
  7361. "//a[contains(@href,'zippyshare.com') and contains(@href,'file.html')]"
  7362. );
  7363. }
  7364. if (GM_getValue("Check_mediafire_dot_com_links", false))
  7365. {
  7366. addFileHost(
  7367. "mediafire\.com\/",
  7368. 'download_file_title|dlFileName|id="PLAY_downloadButton"',
  7369. 'error\\.php\\?|error_msg_title|<title>Simple File Sharing|No files found',
  7370. 'set to private',
  7371. 'optional2--',
  7372. "//a[contains(@href,'mediafire.com')]"
  7373. );
  7374. }
  7375. if (GM_getValue("Check_uploaded_dot_to_links", false))
  7376. {
  7377. addFileHost(
  7378. '(?:uploaded\\.(?:to|net)\/(?:.id|file|folder|f|410|404))|(?:ul\\.to\/)',
  7379. '<h2>Authentification</h2></li>|MB</small>|KB</small>',
  7380. 'box_red|Error: 404|Error: 410|fileList"><thead><tr><td colspan="2"><\/td><\/tr><\/thead><tbody>\\s*<tr>|<title>uploaded.net</title>',
  7381. 'optional--',
  7382. 'GB</small>',
  7383. "//a[contains(@href,'uploaded.to/') or contains(@href,'uploaded.net/') or contains(@href,'ul.to/')]"
  7384. );
  7385. }
  7386. if (GM_getValue("Check_ulozisko_dot_sk_links", false))
  7387. {
  7388. addFileHost(
  7389. "ulozisko\.sk\/",
  7390. 'Detaily',
  7391. 'neexistuje',
  7392. 'optional--',
  7393. 'optional2--',
  7394. "//a[contains(@href,'ulozisko.sk')]"
  7395. );
  7396. }
  7397. if (GM_getValue("Check_upnito_dot_sk_links", false))
  7398. {
  7399. addFileHost(
  7400. "(?:dl.\\.|)upnito\\.sk\/(download|subor|file)",
  7401. 'download.php',
  7402. 'notfound|upload\\-suborov\\.php"',
  7403. 'optional--',
  7404. 'optional2--',
  7405. "//a[contains(@href,'upnito.sk')]"
  7406. );
  7407. }
  7408. if (GM_getValue("Check_box_dot_com_links", false))
  7409. {
  7410. addFileHost(
  7411. "box\.com\/\\w+",
  7412. 'download-file-btn|id="download_button',
  7413. 'BIyMin.png| <div class="error_message|link has been removed',
  7414. 'optional--',
  7415. 'optional2--',
  7416. "//a[contains(@href,'app.box.com')]");
  7417. }
  7418. if (GM_getValue("Check_uptobox_dot_com_links", false))
  7419. {
  7420. addFileHost(
  7421. "uptobox\\.com\/\\w+",
  7422. 'Create Download Link">|Lien de téléchargement',
  7423. 'The file expired|The file was deleted|Fichier introuvable|not available in your country',
  7424. 'Maintenance',
  7425. 'optional2--',
  7426. "//a[contains(@href,'uptobox.com')]"
  7427. );
  7428. }
  7429. if (GM_getValue("Check_sharecash_dot_org_links", false))
  7430. {
  7431. addFileHost(
  7432. "sharecash\\.org\/download\\.php\\?file=\\d+",
  7433. 'FILE DOWNLOAD<',
  7434. 'File Does Not Exist',
  7435. 'optional--',
  7436. 'optional2--',
  7437. "//a[contains(@href,'sharecash.org/download.php')]"
  7438. );
  7439. }
  7440. if (GM_getValue("Check_depositfiles_dot_com_links", false)) //folders
  7441. {
  7442. addFileHost(
  7443. "depositfiles\\.com\/folders\/\\w+",
  7444. '<div class="progressContainer">',
  7445. '<div id="files" class="files">\\s*<\/div>',
  7446. 'optional--',
  7447. 'optional2--',
  7448. "//a[contains(@href,'depositfiles.com/folders')]"
  7449. );
  7450. }
  7451. if (GM_getValue("Check_rapidfileshare_dot_net_links", false))
  7452. {
  7453. addFileHost(
  7454. "rapidfileshare\\.net/\\w+",
  7455. '<div id="upload-header-bg">',
  7456. '<div style="width:500px;text-align:left;">',
  7457. 'optional--',
  7458. 'optional2--',
  7459. "//a[contains(@href,'rapidfileshare.net/')]"
  7460. );
  7461. }
  7462. if (GM_getValue("Check_stiahnito_dot_sk_links", false))
  7463. {
  7464. addFileHost(
  7465. "stiahnito\\.sk/",
  7466. '<span class="filesize right">',
  7467. '<ol class="list-purp-2">',
  7468. 'optional--',
  7469. 'optional2--',
  7470. "//a[contains(@href,'stiahnito.sk/')]"
  7471. );
  7472. }
  7473. if (GM_getValue("Check_rusfolder_dot_com_links", false))
  7474. {
  7475. addFileHost(
  7476. "rusfolder\\.(?:com|net)",
  7477. '"download-step-one-form"|Название: <b>|Файлы|Файлы в папке',
  7478. '"ui-state-error ui-corner-all"|File is removed|File not found|удален',
  7479. 'optional--',
  7480. 'optional2--',
  7481. "//a[contains(@href,'rusfolder')]"
  7482. );
  7483. }
  7484. if (GM_getValue("Check_fileover_dot_net_links", false))
  7485. {
  7486. addFileHost(
  7487. "fileover\\.net/\\d+",
  7488. 'id="filesize"',
  7489. 'Not found or deleted|The following file is unavailable',
  7490. 'optional--',
  7491. 'optional2--',
  7492. "//a[contains(@href,'fileover.net/')]"
  7493. );
  7494. }
  7495. if (GM_getValue("Check_catshare_dot_net_links", false))
  7496. {
  7497. addFileHost(
  7498. "catshare\\.net/\\w+",
  7499. '"icon-share',
  7500. 'alert alert-error',
  7501. 'optional--',
  7502. 'optional2--',
  7503. "//a[contains(@href,'catshare.net/')]"
  7504. );
  7505. }
  7506. if (GM_getValue("Check_anonfiles_dot_com_links", false))
  7507. {
  7508. addFileHost(
  7509. "anonfiles\\.com/\\w+",
  7510. '"download_button"',
  7511. '<legend><b>404</b>',
  7512. 'optional--',
  7513. 'optional2--',
  7514. "//a[contains(@href,'anonfiles.com')]"
  7515. );
  7516. }
  7517. if (GM_getValue("Check_mixturecloud_dot_com_links", false))
  7518. {
  7519. addFileHost(
  7520. "mixturecloud\\.com/media/\\w+",
  7521. '"btn icon i_globe gray share_150',
  7522. '"s_cross_close"></span> 404:',
  7523. 'optional--',
  7524. 'optional2--',
  7525. "//a[contains(@href,'mixturecloud.com/media/')]"
  7526. );
  7527. }
  7528. if (GM_getValue("Check_akafile_dot_com_links", false))
  7529. {
  7530. addFileHost(
  7531. "akafile\\.com\/\\w+",
  7532. 'download1',
  7533. 'File Not Found',
  7534. 'optional--',
  7535. 'optional2--',
  7536. "//a[contains(@href,'akafile.com/')]"
  7537. );
  7538. }
  7539. if (GM_getValue("Check_creafile_dot_net_links", false))
  7540. {
  7541. addFileHost(
  7542. "creafile\\.net\/\\w+",
  7543. 'downloadblock',
  7544. 'errtitle',
  7545. 'optional--',
  7546. 'optional2--',
  7547. "//a[contains(@href,'creafile.net/')]"
  7548. );
  7549. }
  7550. if (GM_getValue("Check_hugefiles_dot_net_links", false))
  7551. {
  7552. addFileHost(
  7553. "hugefiles\\.net\/\\w+",
  7554. 'download1|class="btn-create-download" value="Create Download Link">',
  7555. 'File Not Found|No such file with this filename|tyle="width:500px;text-align:left;">',
  7556. 'optional--',
  7557. 'optional2--',
  7558. "//a[contains(@href,'hugefiles.net/')]"
  7559. );
  7560. }
  7561. if (GM_getValue("Check_sendmyway_dot_com_links", false))
  7562. {
  7563. addFileHost(
  7564. "sendmyway\\.com\/\\w+",
  7565. 'id="btn_download"',
  7566. '500px;text-align:left;"|<center><h3>',
  7567. 'optional--',
  7568. 'optional2--',
  7569. "//a[contains(@href,'sendmyway.com/')]"
  7570. );
  7571. }
  7572. if (GM_getValue("Check_upload_dot_ee_links", false))
  7573. {
  7574. addFileHost(
  7575. "upload\\.ee\/\\w+",
  7576. 'onmouseout="document.dllink.src',
  7577. 'There is no such file.|File was deleted|Fail kustutati|Файл удалён|Такого файла нет',
  7578. 'optional--',
  7579. 'optional2--',
  7580. "//a[contains(@href,'upload.ee/')]"
  7581. );
  7582. }
  7583. if (GM_getValue("Check_shareplace_dot_org_links", false))
  7584. {
  7585. addFileHost(
  7586. "shareplace\\.org\/\\?\\w+",
  7587. 'Download-Link',
  7588. 'Your requested file is not found|Select file to send',
  7589. 'optional--',
  7590. 'optional2--',
  7591. "//a[contains(@href,'shareplace.org/?')]"
  7592. );
  7593. }
  7594. if (GM_getValue("Check_uploadc_dot_com_links", false))
  7595. {
  7596. addFileHost(
  7597. "uploadc\\.com\/\\w+",
  7598. 'id="prebut"',
  7599. 'File Not Found|This file has been removed due',
  7600. 'optional--',
  7601. 'optional2--',
  7602. "//a[contains(@href,'uploadc.com/')]"
  7603. );
  7604. }
  7605. if (GM_getValue("Check_remixshare_dot_com_links", false))
  7606. {
  7607. addFileHost(
  7608. "remixshare\\.com\/\\w+",
  7609. 'id="dl2"',
  7610. '<table class=\'failed\'><tr><td width=\'90%\'>|Sorry, die Datei konnte nicht gefunden werden',
  7611. 'optional--',
  7612. 'optional2--',
  7613. "//a[contains(@href,'remixshare.com/')]"
  7614. );
  7615. }
  7616. if (GM_getValue("Check_exoshare_dot_com_links", false))
  7617. {
  7618. addFileHost(
  7619. "exoshare\\.com\/download\\.php\\?uid=\\w+",
  7620. 'Last Download :',
  7621. 'img src="\\/404.jpg"',
  7622. 'optional--',
  7623. 'optional2--',
  7624. "//a[contains(@href,'exoshare.com/download.php')]"
  7625. );
  7626. }
  7627. if (GM_getValue("Check_borncash_dot_org_links", false))
  7628. {
  7629. addFileHost(
  7630. "borncash\\.org\/download\/\\?a=\\w+",
  7631. 'class="knop_1"',
  7632. '\/error\/er00',
  7633. 'optional--',
  7634. 'optional2--',
  7635. "//a[contains(@href,'borncash.org/download/')]"
  7636. );
  7637. }
  7638. if (GM_getValue("Check_vidplay_dot_net_links", false))
  7639. {
  7640. addFileHost(
  7641. "vidplay\.net\/\\w+",
  7642. 'solvemedia puzzle widget',
  7643. 'File not found|AVOID_IE_BUG',
  7644. 'optional--',
  7645. 'optional2--',
  7646. "//a[contains(@href,'vidplay.net')]");
  7647. }
  7648. if (GM_getValue("Check_storagon_dot_com_links", false))
  7649. {
  7650. addFileHost(
  7651. "storagon\.com\/\\w+",
  7652. 'class="icon-cloud-download"></i>|content="Download Options',
  7653. 'content="Download Downloads|class="error-container">|class="bigger-300 bolder">404<',
  7654. 'optional--',
  7655. 'optional2--',
  7656. "//a[contains(@href,'storagon.com')]");
  7657. }
  7658. if (GM_getValue("Check_filedais_dot_com_links", false))
  7659. {
  7660. addFileHost(
  7661. "filedais\.com\/\\w+",
  7662. 'class="btn btn-info"|name="method_free"',
  7663. 'style="width:500px;text-align:left;">|File Not Found|AVOID_IE_BUG',
  7664. 'optional--',
  7665. 'optional2--',
  7666. "//a[contains(@href,'filedais.com')]");
  7667. }
  7668. if (GM_getValue("Check_up_dot_4share_dot_vn_links", false))
  7669. {
  7670. addFileHost(
  7671. "up.4share\.vn\/\\w+",
  7672. '<font size="2" face="Verdana">',
  7673. 'font: 13px Tahoma; color: Brown',
  7674. 'optional--',
  7675. 'optional2--',
  7676. "//a[contains(@href,'up.4share.vn')]");
  7677. }
  7678. if (GM_getValue("Check_share_dot_vnn_dot_vn_links", false))
  7679. {
  7680. addFileHost(
  7681. "share.vnn\.vn\/\\w+",
  7682. '"index,follow"|<div class="main" id="download-box">',
  7683. '<meta name="description" content="" />|<h1>Không tìm thấy file bạn yêu cầu</h1>',
  7684. 'optional--',
  7685. 'optional2--',
  7686. "//a[contains(@href,'share.vnn.vn')]");
  7687. }
  7688. if (GM_getValue("Check_upfile_dot_vn_links", false))
  7689. {
  7690. addFileHost(
  7691. "upfile\.vn\/\\w+",
  7692. 'download-timer',
  7693. '<meta name="description" content="Upload files|<meta name="description" content="Error "',
  7694. 'optional--',
  7695. 'optional2--',
  7696. "//a[contains(@href,'upfile.vn')]");
  7697. }
  7698. if (GM_getValue("Check_aisfile_dot_com_links", false))
  7699. {
  7700. addFileHost(
  7701. "aisfile\.com\/\\w+",
  7702. '<h3 style="text-align:left;">|align=right><b>Filename:',
  7703. '<div style="width:500px;text-align:left;">|File Not Found',
  7704. 'optional--',
  7705. 'optional2--',
  7706. "//a[contains(@href,'aisfile.com')]");
  7707. }
  7708. if (GM_getValue("Check_usersfiles_dot_com_links", false))
  7709. {
  7710. addFileHost(
  7711. "usersfiles\.com\/\\w+",
  7712. 'class="btn btn-success|id="btn_download" class="btn"',
  7713. '<div style="width:500px;text-align:left;">|class="label label-inverse">|class="err">',
  7714. 'optional--',
  7715. 'optional2--',
  7716. "//a[contains(@href,'usersfiles.com')]");
  7717. }
  7718. if (GM_getValue("Check_pan_dot_baidu_dot_com_links", false))
  7719. {
  7720. addFileHost(
  7721. "pan.baidu\.com\/\\w+",
  7722. 'target="_blank" title=|share-personal-info',
  7723. 'share_notfound.png|background:#f9f9f9',
  7724. 'optional--',
  7725. 'optional2--',
  7726. "//a[contains(@href,'pan.baidu.com')]");
  7727. }
  7728. if (GM_getValue("Check_yunpan_dot_cn_links", false))
  7729. {
  7730. addFileHost(
  7731. "yunpan\.cn\/\\w+",
  7732. 'class="icon icon-download',
  7733. 'content="360|http://p5.qhimg.com/t01d1c98667df9dc6cc.jpg',
  7734. 'optional--',
  7735. 'optional2--',
  7736. "//a[contains(@href,'yunpan.cn')]");
  7737. }
  7738. if (GM_getValue("Check_file_dash_upload_dot_net_links", false))
  7739. {
  7740. addFileHost(
  7741. "(?:en\\.|)file\\-upload\\.net\/download\\-\\d+\/\\w+",
  7742. 'getElementById("downbild")|style.display',
  7743. 'hochgeladene Datei nicht gefunden werden|has not been found',
  7744. 'optional--',
  7745. 'optional2--',
  7746. "//a[contains(@href,'file-upload.net')]");
  7747. }
  7748. if (GM_getValue("Check_gulfup_dot_com_links", false))
  7749. {
  7750. addFileHost(
  7751. "gulfup\.com\/",
  7752. '<!-- Downlod template -->|download.gif',
  7753. '<!-- Errors template -->|class="error">|<!-- form upload -->|[ رفع الملفات ]',
  7754. 'optional--',
  7755. 'optional2--',
  7756. "//a[contains(@href,'gulfup.com')]");
  7757. }
  7758. if (GM_getValue("Check_datafilehost_dot_com_links", false))
  7759. {
  7760. addFileHost(
  7761. "datafilehost\\.com\/(?:download-\\w+\\.html|d\/\\w+)",
  7762. 'dldtable">',
  7763. 'does not exist\\.',
  7764. 'optional--',
  7765. 'optional2--',
  7766. "//a[contains(@href,'datafilehost.com')]");
  7767. }
  7768. if (GM_getValue("Check_dropbox_dot_com_links", false))
  7769. {
  7770. addFileHost(
  7771. "dropbox\.com\/s\/\\w+",
  7772. 'default_content_download_button" class="freshbutton-blue">|content_download_button',
  7773. '>Nothing Here<|>Error (404)<',
  7774. 'title>Dropbox - 509|Error (403)|Error: 429',
  7775. 'optional2--',
  7776. "//a[contains(@href,'dropbox.com')]");
  7777. }
  7778. if (GM_getValue("Check_box_dot_net_links", false))
  7779. {
  7780. addFileHost(
  7781. "box\.net\/\\w+",
  7782. 'download-file-btn|id="download_button',
  7783. 'BIyMin.png| <div class="error_message',
  7784. 'optional--',
  7785. 'optional2--',
  7786. "//a[contains(@href,'box.net')]");
  7787. }
  7788. if (GM_getValue("Check_fileband_dot_com_links", false))
  7789. {
  7790. addFileHost(
  7791. "fileband\.com\/\\w+",
  7792. 'value="download1">|name="id" value=',
  7793. '<div style="width:500px;text-align:left;">|not be found',
  7794. 'optional--',
  7795. 'optional2--',
  7796. "//a[contains(@href,'fileband.com')]");
  7797. }
  7798. if (GM_getValue("Check_filedropper_dot_com_links", false))
  7799. {
  7800. addFileHost(
  7801. "filedropper\.com\/\\w+",
  7802. 'background:#ddd;|width:985px; ',
  7803. 'background-color:#FFFFFF;|margin-left: -400px;',
  7804. 'optional--',
  7805. 'optional2--',
  7806. "//a[contains(@href,'filedropper.com')]");
  7807. }
  7808. if (GM_getValue("Check_tropicshare_dot_com_links", false))
  7809. {
  7810. addFileHost(
  7811. "tropicshare\\.com\/files\/\\d+",
  7812. 'MB</span>|GB</span>|KB</span>',
  7813. '>FNF<|size: </span>',
  7814. 'optional--',
  7815. 'optional2--',
  7816. "//a[contains(@href,'tropicshare.com')]");
  7817. }
  7818. if (GM_getValue("Check_goldbytez_dot_com_links", false))
  7819. {
  7820. addFileHost(
  7821. "goldbytez\.com\/\\w+",
  7822. '<h2>Download</h2>|<center><h2>File: <font color="red">',
  7823. '<div style="width:500px;text-align:left;">|<h2>Error</h2>',
  7824. 'optional--',
  7825. 'optional2--',
  7826. "//a[contains(@href,'goldbytez.com')]");
  7827. }
  7828. if (GM_getValue("Check_worldbytez_dot_com_links", false))
  7829. {
  7830. addFileHost(
  7831. "worldbytez\.com\/\\w+",
  7832. '<div class="download_type">',
  7833. '<div style="width:500px;text-align:left;">',
  7834. 'optional--',
  7835. 'optional2--',
  7836. "//a[contains(@href,'worldbytez.com')]");
  7837. }
  7838. if (GM_getValue("Check_freefilehosting_dot_net_links", false))
  7839. {
  7840. addFileHost(
  7841. "freefilehosting\.net\/\\w+",
  7842. 'Type: cbr|Type: rar|Type: jpg|Type: mkv|Type: avi|Type: mpg|Type: mpeg|Type: zip|Type: wmvType: bmpType: gifType: mp4Type: mp3',
  7843. '175px;" value="http://www.freefilehosting.net/"|Filename: <br>',
  7844. 'optional--',
  7845. 'optional2--',
  7846. "//a[contains(@href,'freefilehosting.net')]");
  7847. }
  7848. if (GM_getValue("Check_ziddu_dot_com_links", false))
  7849. {
  7850. addFileHost(
  7851. "ziddu\.com\/\\w+",
  7852. 'downloads.ziddu.com|downloadfilelinkicon',
  7853. 'errortracking.php|images/oops.png|fontfamilyverdana error',
  7854. 'optional--',
  7855. 'optional2--',
  7856. "//a[contains(@href,'ziddu.com')]");
  7857. }
  7858. if (GM_getValue("Check_exclusiveloader_dot_com_links", false))
  7859. {
  7860. addFileHost(
  7861. "exclusiveloader\.com\/\\w+",
  7862. 'style="padding-top:55px; padding-bottom:65px;">|<h2>Download</h2>',
  7863. 'File Not Found|width:322px;text-align:left;" class="no_file">',
  7864. 'optional--',
  7865. 'optional2--',
  7866. "//a[contains(@href,'exclusiveloader.com')]");
  7867. }
  7868. if (GM_getValue("Check_sharerapid_dot_cz_links", false))
  7869. {
  7870. addFileHost(
  7871. "sharerapid\.cz\/\\w+",
  7872. 'value="Stáhnout"|soubor" style|Stahování je povoleno pouze pro přihlášené uživatele',
  7873. 'error_div">|404 - Not Found',
  7874. 'optional--',
  7875. 'optional2--',
  7876. "//a[contains(@href,'sharerapid.cz')]");
  7877. }
  7878. if (GM_getValue("Check_sdilej_dot_cz_links", false))
  7879. {
  7880. addFileHost(
  7881. "sdilej\.cz\/\\w+",
  7882. 'class="page-download"',
  7883. '<h2 class="red">|czshare.com|sponsored listings|This domain is for sale',
  7884. 'optional--',
  7885. 'optional2--',
  7886. "//a[contains(@href,'sdilej.cz')]");
  7887. }
  7888. if (GM_getValue("Check_lafiles_dot_com_links", false))
  7889. {
  7890. addFileHost(
  7891. "lafiles\.com\/\\w+",
  7892. '<div id="pay_modes">',
  7893. '<b class="err"></b>',
  7894. 'optional--',
  7895. 'optional2--',
  7896. "//a[contains(@href,'lafiles.com')]");
  7897. }
  7898. if (GM_getValue("Check_acefile_dot_net_links", false))
  7899. {
  7900. addFileHost(
  7901. "acefile\.net\/\\w+",
  7902. 'align=right nowrap><b>',
  7903. 'File Not Found|<div style="width:322px;text-align:left;" class="no_file">',
  7904. 'optional--',
  7905. 'optional2--',
  7906. "//a[contains(@href,'acefile.net')]");
  7907. }
  7908. if (GM_getValue("Check_megarapid_dot_cz_links", false))
  7909. {
  7910. addFileHost(
  7911. "megarapid\.cz\/\\w+",
  7912. 'value="Stáhnout"|soubor" style|Stahování je povoleno pouze pro přihlášené uživatele',
  7913. 'error_div">|404 - Not Found',
  7914. 'optional--',
  7915. 'optional2--',
  7916. "//a[contains(@href,'megarapid.cz')]");
  7917. }
  7918. if (GM_getValue("Check_yadi_dot_sk_links", false))
  7919. {
  7920. addFileHost(
  7921. "yadi\.sk\/\\w+",
  7922. 'twitter:site|View and download',
  7923. 'error code|Nothing found',
  7924. 'optional--',
  7925. 'optional2--',
  7926. "//a[contains(@href,'yadi.sk')]");
  7927. }
  7928. if (GM_getValue("Check_imdb_dot_com_links", false))
  7929. {
  7930. addFileHost(
  7931. "imdb\.com\/\\w+",
  7932. 'imdb.com',
  7933. '404 Error',
  7934. 'optional--',
  7935. 'optional2--',
  7936. "//a[contains(@href,'imdb.com')]");
  7937. }
  7938. if (GM_getValue("Check_hitfile_dot_net_links", false))
  7939. {
  7940. addFileHost(
  7941. "hitfile\.net\/\\w+",
  7942. 'class="download-file',
  7943. 'style="width:16px;height:16px;border:0;|File not found|Файл не найден. Возможно он был удален',
  7944. 'optional--',
  7945. 'optional2--',
  7946. "//a[contains(@href,'hitfile.net')]");
  7947. }
  7948. if (GM_getValue("Check_nitroflare_dot_com_links", true))
  7949. {
  7950. addFileHost(
  7951. "nitroflare\.com\/\\w+",
  7952. 'MB</span>|left;">1 GB<|KB</span>|left;">1.0',
  7953. 'file has been removed|id="error" style="display|Probably deleted',
  7954. 'optional--',
  7955. 'left;">1.1|left;">1.2|left;">1.3|left;">1.4|left;">1.5|left;">1.6|left;">1.7|left;">1.8|left;">1.9|left;">2.|',
  7956. "//a[contains(@href,'nitroflare.com')]");
  7957. }
  7958. if (GM_getValue("Check_up_dot_top4top_dot_net_links", false))
  7959. {
  7960. addFileHost(
  7961. "up.top4top\.net\/\\w+",
  7962. 'start Downlod template',
  7963. 'start err template',
  7964. 'optional--',
  7965. 'optional2--',
  7966. "//a[contains(@href,'up.top4top.net')]");
  7967. }
  7968. if (GM_getValue("Check_filejoker_dot_net_links", false))
  7969. {
  7970. addFileHost(
  7971. "filejoker\.net\/\\w+",
  7972. 'button id="regular-download">Slow|method_free" value="1|<div id="download" class="download0">',
  7973. 'File Not Found|class="not_found|<div id="download" class="not_found">|"err">DMCA Complaint<',
  7974. 'optional--',
  7975. 'id="download" class="premium-only">',
  7976. "//a[contains(@href,'filejoker.net')]");
  7977. }
  7978. if (GM_getValue("Check_free_dot_fr_links", false))
  7979. {
  7980. addFileHost(
  7981. "(?:dl.\\.|)free\\.fr",
  7982. 'Valider et t&eacute;l&eacute',
  7983. 'Fichier inexistant|Fichier supprim&eacute; pour raison de copyright',
  7984. 'optional--',
  7985. 'optional2--',
  7986. "//a[contains(@href,'dl.free.fr')]");
  7987. }
  7988. if (GM_getValue("Check_gboxes_dot_com_links", false))
  7989. {
  7990. addFileHost(
  7991. "gboxes\.com\/\\w+",
  7992. 'You have requested|color="red">http://www.gboxes.com',
  7993. 'File Not Found|<div style="width:500px;text-align:left;">',
  7994. 'optional--',
  7995. 'optional2--',
  7996. "//a[contains(@href,'gboxes.com')]");
  7997. }
  7998. if (GM_getValue("Check_1fichier_dot_com_links", false))
  7999. {
  8000. addFileHost(
  8001. "(?:\\w{10}\\.(?:1fichier|dl4free)\\.com\/)|(?:(?:1fichier|dl4free)\\.com\/\\?\\w{10})|(?:www\\.)?\\w{6,}\\.1fichier\\.com",
  8002. '<title>Download</title>|<br/>You must wait|submit" value="Download|Download without SSL encryption|submit" value="Télécharger|submit" value="Télécharger',
  8003. 'File not found|file could not be found|Select files to send|Sélectionnez les fichiers à envoyer|file has been deleted|Le fichier demandé a été supprimé',
  8004. 'optional--',
  8005. 'optional2--',
  8006. "//a[contains(@href,'1fichier') or contains(@href,'dl4free.com/')]"
  8007. );
  8008. }
  8009. if (GM_getValue("Check_led_dot_wf_links", false))
  8010. {
  8011. addFileHost(
  8012. "led\.wf\/\\w+",
  8013. 'logo_0.png|downloads.gif"|verifycode',
  8014. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  8015. 'optional--',
  8016. 'optional2--',
  8017. "//a[contains(@href,'led.wf')]");
  8018. }
  8019. if (GM_getValue("Check_lan_dot_wf_links", false))
  8020. {
  8021. addFileHost(
  8022. "lan\.wf\/\\w+",
  8023. 'logo_0.png|downloads.gif"|verifycode',
  8024. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  8025. 'optional--',
  8026. 'optional2--',
  8027. "//a[contains(@href,'lan.wf')]");
  8028. }
  8029. if (GM_getValue("Check_adlink_dot_wf_links", false))
  8030. {
  8031. addFileHost(
  8032. "adlink\.wf\/\\w+",
  8033. 'logo_0.png|downloads.gif"|verifycode',
  8034. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  8035. 'optional--',
  8036. 'optional2--',
  8037. "//a[contains(@href,'adlink.wf')]");
  8038. }
  8039. if (GM_getValue("Check_click_dot_tf_links", false))
  8040. {
  8041. addFileHost(
  8042. "click\.tf\/\\w+",
  8043. 'logo_0.png|downloads.gif"|verifycode',
  8044. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  8045. 'optional--',
  8046. 'optional2--',
  8047. "//a[contains(@href,'click.tf')]");
  8048. }
  8049. if (GM_getValue("Check_ssh_dot_tf_links", false))
  8050. {
  8051. addFileHost(
  8052. "ssh\.tf\/\\w+",
  8053. 'logo_0.png|downloads.gif"|verifycode',
  8054. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  8055. 'optional--',
  8056. 'optional2--',
  8057. "//a[contains(@href,'ssh.tf')]");
  8058. }
  8059. if (GM_getValue("Check_ssh_dot_yt_links", false))
  8060. {
  8061. addFileHost(
  8062. "ssh\.yt\/\\w+",
  8063. 'logo_0.png|downloads.gif"|verifycode',
  8064. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  8065. 'optional--',
  8066. 'optional2--',
  8067. "//a[contains(@href,'ssh.yt')]");
  8068. }
  8069. if (GM_getValue("Check_yep_dot_pm_links", false))
  8070. {
  8071. addFileHost(
  8072. "yep\.pm\/\\w+",
  8073. 'logo_0.png|downloads.gif"|verifycode',
  8074. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  8075. 'optional--',
  8076. 'optional2--',
  8077. "//a[contains(@href,'yep.pm')]");
  8078. }
  8079. if (GM_getValue("Check_kyc_dot_pm_links", false))
  8080. {
  8081. addFileHost(
  8082. "kyc\.pm\/\\w+",
  8083. 'logo_0.png|downloads.gif"|verifycode',
  8084. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  8085. 'optional--',
  8086. 'optional2--',
  8087. "//a[contains(@href,'kyc.pm')]");
  8088. }
  8089. if (GM_getValue("Check_brupload_dot_net_links", false))
  8090. {
  8091. addFileHost(
  8092. "brupload\.net\/\\w+",
  8093. 'Download Gratuito',
  8094. '<div style="width:500px;text-align:left;">',
  8095. 'optional--',
  8096. 'optional2--',
  8097. "//a[contains(@href,'brupload.net')]");
  8098. }
  8099. if (GM_getValue("Check_cloudzilla_dot_to_links", false))
  8100. {
  8101. addFileHost(
  8102. "cloudzilla\.to\/\\w+",
  8103. 'btn1" id="free_download|onclick="freeDownload|id="pwd_protected">',
  8104. 'File not found|/imgs/broken.png',
  8105. 'optional--',
  8106. 'optional2--',
  8107. "//a[contains(@href,'cloudzilla.to')]");
  8108. }
  8109. if (GM_getValue("Check_fileparadox_dot_in_links", false))
  8110. {
  8111. addFileHost(
  8112. "fileparadox\.in\/\\w+",
  8113. 'CONTENT="Download File|method_free_file',
  8114. '>File Not Found<|id="no_filedownload">|FILE NOT FOUND|The file does not exist',
  8115. 'optional--',
  8116. 'optional2--',
  8117. "//a[contains(@href,'fileparadox.in')or contains(@href,'3files.net/')]");
  8118. }
  8119. if (GM_getValue("Check_clicknupload_dot_com_links", false))
  8120. {
  8121. addFileHost(
  8122. "clicknupload\.com\/\\w+",
  8123. 'name="method_free',
  8124. 'File Not Found',
  8125. 'optional--',
  8126. 'optional2--',
  8127. "//a[contains(@href,'clicknupload.com')]");
  8128. }
  8129. if (GM_getValue("Check_ex_dash_load_dot_com_links", false))
  8130. {
  8131. addFileHost(
  8132. "ex-load\.com\/\\w+",
  8133. 'name="method_free|<p>Download File:</p>',
  8134. 'Folder Not Found|File Not Found|Error 404',
  8135. 'optional--',
  8136. 'class="downprem wow bounceInLeft',
  8137. "//a[contains(@href,'ex-load.com')]");
  8138. }
  8139. if (GM_getValue("Check_hexupload_dot_com_links", false))
  8140. {
  8141. addFileHost(
  8142. "hexupload\.com\/\\w+",
  8143. 'button" value="Free|type="submit" value=""',
  8144. 'File Not Found|<div style="width:500px;text-align:left;">',
  8145. 'optional--',
  8146. 'optional2--',
  8147. "//a[contains(@href,'hexupload.com')]");
  8148. }
  8149. if (GM_getValue("Check_wizupload_dot_com_links", false))
  8150. {
  8151. addFileHost(
  8152. "wizupload\.com\/\\w+",
  8153. 'btn_download|class="downloadbtn"',
  8154. '>File Not Found<',
  8155. 'optional--',
  8156. 'optional2--',
  8157. "//a[contains(@href,'wizupload.com')]");
  8158. }
  8159. if (GM_getValue("Check_filecloud_dot_cc_links", false))
  8160. {
  8161. addFileHost(
  8162. "filecloud\.cc\/\\w+",
  8163. 'align="center"><input type="submit" name=',
  8164. 'File Not Found|<Title>FileCloud - Premium Hosting Service<',
  8165. 'optional--',
  8166. 'optional2--',
  8167. "//a[contains(@href,'filecloud.cc')]");
  8168. }
  8169. if (GM_getValue("Check_inclouddrive_dot_com_links", false))
  8170. {
  8171. addFileHost(
  8172. "inclouddrive\.com\/\\w+",
  8173. 'initfreedownload',
  8174. '<title>Content Unavailable|The file you are trying to download is no longer available',
  8175. 'optional--',
  8176. 'optional2--',
  8177. "//a[contains(@href,'inclouddrive.com')]");
  8178. }
  8179. if (GM_getValue("Check_radicalshare_dot_com_links", false))
  8180. {
  8181. addFileHost(
  8182. "radicalshare\.com\/\\w+",
  8183. 'value="download1|name="method_free"',
  8184. 'File Not Found<|<div style="width:500px;text-align:left;">',
  8185. 'optional--',
  8186. 'optional2--',
  8187. "//a[contains(@href,'radicalshare.com')]");
  8188. }
  8189. if (GM_getValue("Check_sharemods_dot_com_links", false))
  8190. {
  8191. addFileHost(
  8192. "sharemods\.com\/\\w+",
  8193. 'name="method_free"',
  8194. 'File Not Found<',
  8195. 'optional--',
  8196. 'optional2--',
  8197. "//a[contains(@href,'sharemods.com')]");
  8198. }
  8199. if (GM_getValue("Check_hostr_dot_co_links", false))
  8200. {
  8201. addFileHost(
  8202. "hostr\.co\/\\w+",
  8203. 'method="get"',
  8204. 'File not found<|error-page',
  8205. 'optional--',
  8206. 'optional2--',
  8207. "//a[contains(@href,'hostr.co')]");
  8208. }
  8209. if (GM_getValue("Check_filepi_dot_com_links", false))
  8210. {
  8211. addFileHost(
  8212. "filepi\.com\/\\w+",
  8213. 'id="button_start">',
  8214. 'File not found',
  8215. 'optional--',
  8216. 'optional2--',
  8217. "//a[contains(@href,'filepi.com')]");
  8218. }
  8219. if (GM_getValue("Check_tikfile_dot_com_links", false))
  8220. {
  8221. addFileHost(
  8222. "tikfile\.com\/\\w+",
  8223. 'btn_download',
  8224. 'File Not Found|file was removed|Reason for deletion',
  8225. 'optional--',
  8226. 'optional2--',
  8227. "//a[contains(@href,'tikfile.com')]");
  8228. }
  8229. if (GM_getValue("Check_cloudsix_dot_me_links", false))
  8230. {
  8231. addFileHost(
  8232. "cloudsix\.me\/\\w+",
  8233. 'name="method_free"',
  8234. 'File Not Found|width:500px;text-align:left;">',
  8235. 'optional--',
  8236. 'optional2--',
  8237. "//a[contains(@href,'cloudsix.me')]");
  8238. }
  8239. if (GM_getValue("Check_neodrive_dot_co_links", false))
  8240. {
  8241. addFileHost(
  8242. "neodrive\.co\/\\w+",
  8243. 'btn1" id="free_download|onclick="freeDownload|id="pwd_protected">',
  8244. 'File not found|/imgs/broken.png',
  8245. 'optional--',
  8246. 'optional2--',
  8247. "//a[contains(@href,'neodrive.co')]");
  8248. }
  8249. if (GM_getValue("Check_chayfile_dot_com_links", false))
  8250. {
  8251. addFileHost(
  8252. "chayfile\.com\/\\w+",
  8253. 'name="method_free"',
  8254. 'File Not Found|<h3>The file was removed by administrator</h3>',
  8255. 'optional--',
  8256. 'optional2--',
  8257. "//a[contains(@href,'chayfile.com')]");
  8258. }
  8259. if (GM_getValue("Check_xfileload_dot_com_links", false))
  8260. {
  8261. addFileHost(
  8262. "xfileload\.com\/\\w+",
  8263. 'Filename:|Имя файла:|Dateiname:|nom de fichier :|اسم الملف:|Dosya AdД±|Nazwa:|Nombre de fichero:|NamaFile:|Bestandsnaam:|שם קובץ:"',
  8264. 'The file you were looking for could not be found, sorry for any inconvenience.|Die von Ihnen angeforderte Datei konnte nicht gefunden werden..|le fichier que vous recherchiez ne pourrait pas etre trouve, désole pour aucun derangement|لم يتم إيجاد الملف المطلوب , عذراً للإزعاج|Istenen dosya bulunamadД±..|Plik ktorego szukasz nie zostal odnaleziony na naszych serwerach, przepraszamy.|El archivo que usted buscaba no podrнa ser encontrado, arrepentido para ningъn inconveniente.|File yang sedang anda cari tidak dapat ditemukan, maaf untuk ketidaknyamanan anda saat ini.|De bestand waar u naar zocht is niet gevonden, excuses voor het ongemak..|הקובץ שחיפשת לא נמצא.',
  8265. 'optional--',
  8266. 'optional2--',
  8267. "//a[contains(@href,'xfileload.com')]");
  8268. }
  8269. if (GM_getValue("Check_rockfile_dot_eu_links", false))
  8270. {
  8271. addFileHost(
  8272. "rockfile\.eu\/\\w+",
  8273. 'You have requested:|vous avez demandé|قد طلبت:|você solicitou:|Hai richiesto:|Sie haben angefordert:|Вы заказали:|Has solicitado',
  8274. 'The file you were looking for could not be found, sorry for any inconvenience.',
  8275. 'optional--',
  8276. 'optional2--',
  8277. "//a[contains(@href,'rockfile.eu')]");
  8278. }
  8279. if (GM_getValue("Check_24uploading_dot_com_links", false))
  8280. {
  8281. addFileHost(
  8282. "24uploading\.com\/\\w+",
  8283. 'File:|Download Speed:',
  8284. '<b>File Not Found</b>|file was removed',
  8285. 'optional--',
  8286. 'optional2--',
  8287. "//a[contains(@href,'24uploading.com')]");
  8288. }
  8289. if (GM_getValue("Check_tusfiles_dot_net_links", false))
  8290. {
  8291. addFileHost(
  8292. "tusfiles\.net\/\\w+",
  8293. 'i/icon/dll.png"|>Start download<br',
  8294. 'no longer available<|i/ino.png"',
  8295. 'optional--',
  8296. 'optional2--',
  8297. "//a[contains(@href,'tusfiles.net')]");
  8298. }
  8299. if (GM_getValue("Check_jumbofile_dot_net_links", false))
  8300. {
  8301. addFileHost(
  8302. "jumbofile\.net\/\\w+",
  8303. 'button" class="" value="Free',
  8304. 'This File Was Deleted',
  8305. 'optional--',
  8306. 'optional2--',
  8307. "//a[contains(@href,'jumbofile.net')]");
  8308. }
  8309. if (GM_getValue("Check_ozofiles_dot_com_links", false))
  8310. {
  8311. addFileHost(
  8312. "ozofiles\.com\/\\w+",
  8313. 'button" value="Free',
  8314. 'File Not Found|width:500px;text-align:left;">|File Deleted',
  8315. 'optional--',
  8316. 'optional2--',
  8317. "//a[contains(@href,'ozofiles.com')]");
  8318. }
  8319. if (GM_getValue("Check_loudupload_dot_net_links", false))
  8320. {
  8321. addFileHost(
  8322. "loudupload\.net\/\\w+",
  8323. 'value="Get Links',
  8324. 'File Not Found',
  8325. 'optional--',
  8326. 'optional2--',
  8327. "//a[contains(@href,'loudupload.net')]");
  8328. }
  8329. if (GM_getValue("Check_rapidsonic_dot_com_links", false))
  8330. {
  8331. addFileHost(
  8332. "(rapidsonic|fileparadox)\\.com\/\\w+",
  8333. 'method_free" id="submit_btn|<h4><i class="icon_document_alt"></i>Download File</h4>',
  8334. '>File Not Found<|id="no_filedownload">|>FILE NOT FOUND<|file has been deleted|No such file with this filename|style="font-size:24px;color:#E70012">',
  8335. 'optional--',
  8336. 'optional2--',
  8337. "//a[contains(@href,'rapidsonic') or contains(@href,'3files.net/') or contains(@href,'fileparadox.com')]");
  8338. }
  8339. if (GM_getValue("Check_krotix_dot_net_links", false))
  8340. {
  8341. addFileHost(
  8342. "krotix\.net\/\\w+",
  8343. 'btn btn-warning|btn-free',
  8344. 'pageErrors|This File has been removed',
  8345. 'content="Scheduled Maintenance',
  8346. 'optional2--',
  8347. "//a[contains(@href,'krotix.net')]");
  8348. }
  8349. if (GM_getValue("Check_userscloud_dot_com_links", false))
  8350. {
  8351. addFileHost(
  8352. "userscloud\.com\/\\w+",
  8353. 'btn_download',
  8354. '>Server OFFLINE|background:#D3D3D3;border-bottom:1px solid #BBB;font:bold 13px Verdana;padding:3px;">|-chain-broken',
  8355. 'optional--',
  8356. 'optional2--',
  8357. "//a[contains(@href,'userscloud.com')]");
  8358. }
  8359. if (GM_getValue("Check_kumpulbagi_dot_com_links", false))
  8360. {
  8361. addFileHost(
  8362. "kumpulbagi\.com\/\\w+",
  8363. 'class="button download',
  8364. 'internal server error',
  8365. 'optional--',
  8366. 'optional2--',
  8367. "//a[contains(@href,'kumpulbagi.com')]");
  8368. }
  8369. if (GM_getValue("Check_faststore_dot_org_links", false))
  8370. {
  8371. addFileHost(
  8372. "faststore\.org\/\\w+",
  8373. 'name="method_free',
  8374. 'File Not Found',
  8375. 'optional--',
  8376. 'optional2--',
  8377. "//a[contains(@href,'faststore.org')]");
  8378. }
  8379. if (GM_getValue("Check_prefiles_dot_com_links", false))
  8380. {
  8381. addFileHost(
  8382. "prefiles\.com\/\\w+",
  8383. 'id="method_free',
  8384. 'File not Found',
  8385. 'optional--',
  8386. 'optional2--',
  8387. "//a[contains(@href,'prefiles.com')]");
  8388. }
  8389. if (GM_getValue("Check_doraupload_dot_com_links", false))
  8390. {
  8391. addFileHost(
  8392. "doraupload\.com\/\\w+",
  8393. 'btn_download',
  8394. 'class="error-code|Could Not Be Found',
  8395. 'optional--',
  8396. 'optional2--',
  8397. "//a[contains(@href,'doraupload.com')]");
  8398. }
  8399. if (GM_getValue("Check_openload_dot_io_links", false))
  8400. {
  8401. addFileHost(
  8402. "openload\.io\/\\w+",
  8403. 'btn btn-primary|class="count">',
  8404. 'class="jumbotron">|We are sorry',
  8405. 'optional--',
  8406. 'optional2--',
  8407. "//a[contains(@href,'openload.io')]");
  8408. }
  8409. if (GM_getValue("Check_uploads_dot_xxx_links", false))
  8410. {
  8411. addFileHost(
  8412. "uploads\.xxx\/\\w+",
  8413. 'downoadForFree',
  8414. 'File not found',
  8415. 'optional--',
  8416. 'optional2--',
  8417. "//a[contains(@href,'uploads.xxx')]");
  8418. }
  8419. if (GM_getValue("Check_zxcfiles_dot_com_links", false))
  8420. {
  8421. addFileHost(
  8422. "zxcfiles\.com\/\\w+",
  8423. 'class="downloadbtn',
  8424. 'File Not Found',
  8425. 'optional--',
  8426. 'optional2--',
  8427. "//a[contains(@href,'zxcfiles.com')]");
  8428. }
  8429. if (GM_getValue("Check_up07_dot_net_links", false))
  8430. {
  8431. addFileHost(
  8432. "up07\.net\/\\w+",
  8433. 'name="method_free',
  8434. 'File Not Found',
  8435. 'optional--',
  8436. 'optional2--',
  8437. "//a[contains(@href,'up07.net')]");
  8438. }
  8439. if (GM_getValue("Check_fileupload_dot_pw_links", false))
  8440. {
  8441. addFileHost(
  8442. "fileupload\.pw\/\\w+",
  8443. 'value="Free"',
  8444. 'File Not Found',
  8445. 'optional--',
  8446. 'optional2--',
  8447. "//a[contains(@href,'fileupload.pw')]");
  8448. }
  8449. if (GM_getValue("Check_4upld_dot_com_links", false))
  8450. {
  8451. addFileHost(
  8452. "4upld\.com\/\\w+",
  8453. 'alt="Download Now"|content="Download file">|btn-free-element',
  8454. '<title>Error|content="error|File not found',
  8455. 'optional--',
  8456. 'optional2--',
  8457. "//a[contains(@href,'4upld.com')]");
  8458. }
  8459. if (GM_getValue("Check_newfileland_dot_com_links", false))
  8460. {
  8461. addFileHost(
  8462. "newfileland\.com\/\\w+",
  8463. 'name="method_free',
  8464. 'File Not Found',
  8465. 'optional--',
  8466. 'optional2--',
  8467. "//a[contains(@href,'newfileland.com')]");
  8468. }
  8469. if (GM_getValue("Check_swoopshare_dot_com_links", false))
  8470. {
  8471. addFileHost(
  8472. "(?:.swoopshare)\\.com\/\\w+",
  8473. 'Click below to start|Klicken Sie nachfolgend|Cliquez ci-après pour|Cliccate qui per iniziare|Klik hierna om het bestand|Haga ahora clic para iniciar la',
  8474. '<input type="file" name="f"',
  8475. 'optional--',
  8476. 'optional2--',
  8477. "//a[contains(@href,'swoopshare.com')]"
  8478. );
  8479. }
  8480. if (GM_getValue("Check_cloudshares_dot_net_links", false))
  8481. {
  8482. addFileHost(
  8483. "cloudshares\.net\/\\w+",
  8484. '"method_free|"Low Speed Download|submit" name="go',
  8485. 'Not Found|"width:500px;text-align:left;">|No such file exist',
  8486. 'optional--',
  8487. 'optional2--',
  8488. "//a[contains(@href,'cloudshares.net')]"
  8489. );
  8490. }
  8491. if (GM_getValue("Check_allmyvideos_dot_net_links", false))
  8492. {
  8493. addFileHost(
  8494. "allmyvideos\.net\/\\w+",
  8495. 'Continue to Video',
  8496. 'File Not Found|class="err">Removed for',
  8497. 'optional--',
  8498. 'optional2--',
  8499. "//a[contains(@href,'allmyvideos.net')]"
  8500. );
  8501. }
  8502. if (GM_getValue("Check_vodlocker_dot_com_links", false))
  8503. {
  8504. addFileHost(
  8505. "vodlocker\.com\/\\w+",
  8506. 'Proceed to video',
  8507. 'Not Found',
  8508. 'optional--',
  8509. 'optional2--',
  8510. "//a[contains(@href,'vodlocker.com')]"
  8511. );
  8512. }
  8513. if (GM_getValue("Check_vidbull_dot_com_links", false))
  8514. {
  8515. addFileHost(
  8516. "vidbull\.com\/\\w+",
  8517. 'Verifying Video Request',
  8518. 'File Not Found',
  8519. 'optional--',
  8520. 'optional2--',
  8521. "//a[contains(@href,'vidbull.com')]");
  8522. }
  8523. if (GM_getValue("Check_novamov_dot_com_links", false))
  8524. {
  8525. addFileHost(
  8526. "novamov\.com\/\\w+",
  8527. 'For version detection',
  8528. 'file no longer exists',
  8529. 'optional--',
  8530. 'optional2--',
  8531. "//a[contains(@href,'novamov.com')]"
  8532. );
  8533. }
  8534. if (GM_getValue("Check_filehoot_dot_com_links", false))
  8535. {
  8536. addFileHost(
  8537. "filehoot\.com\/\\w+",
  8538. 'Continue to watch',
  8539. 'File Not Found',
  8540. 'optional--',
  8541. 'optional2--',
  8542. "//a[contains(@href,'filehoot.com')]"
  8543. );
  8544. }
  8545. if (GM_getValue("Check_stagevu_dot_com_links", false))
  8546. {
  8547. addFileHost(
  8548. "stagevu\.com\/\\w+",
  8549. 'Video Info',
  8550. 'No video with the provided',
  8551. 'optional--',
  8552. 'optional2--',
  8553. "//a[contains(@href,'stagevu.com')]"
  8554. );
  8555. }
  8556. if (GM_getValue("Check_cloudtime_dot_to_links", false))
  8557. {
  8558. addFileHost(
  8559. "cloudtime\.to\/\\w+",
  8560. 'Download the video',
  8561. 'no longer exists',
  8562. 'optional--',
  8563. 'optional2--',
  8564. "//a[contains(@href,'cloudtime.to')]"
  8565. );
  8566. }
  8567. if (GM_getValue("Check_streamin_dot_to_links", false))
  8568. {
  8569. addFileHost(
  8570. "streamin\.to\/\\w+",
  8571. 'id="btn_download',
  8572. 'Not Found|Copyright Infringement|File Deleted',
  8573. 'optional--',
  8574. 'optional2--',
  8575. "//a[contains(@href,'streamin.to')]"
  8576. );
  8577. }
  8578. if (GM_getValue("Check_videoweed_dot_es_links", false))
  8579. {
  8580. addFileHost(
  8581. "videoweed\.es\/\\w+",
  8582. 'version detection',
  8583. 'no longer exists',
  8584. 'optional--',
  8585. 'optional2--',
  8586. "//a[contains(@href,'videoweed.es')]"
  8587. );
  8588. }
  8589. if (GM_getValue("Check_nowvideo_dot_sx_links", false))
  8590. {
  8591. addFileHost(
  8592. "nowvideo\.sx\/\\w+",
  8593. 'Download this video',
  8594. 'no longer exists',
  8595. 'optional--',
  8596. 'optional2--',
  8597. "//a[contains(@href,'nowvideo.sx')]"
  8598. );
  8599. }
  8600. if (GM_getValue("Check_thevideo_dot_me_links", false))
  8601. {
  8602. addFileHost(
  8603. "thevideo\.me\/\\w+",
  8604. 'Upgrade your account|Proceed to video|class="btn btn-lg btn-dark">',
  8605. 'File Not Found',
  8606. 'optional--',
  8607. 'optional2--',
  8608. "//a[contains(@href,'thevideo.me')]"
  8609. );
  8610. }
  8611. if (GM_getValue("Check_gorillavid_dot_in_links", false))
  8612. {
  8613. addFileHost(
  8614. "gorillavid\.in\/\\w+",
  8615. 'Wait 5 seconds',
  8616. 'File Not Found',
  8617. 'optional--',
  8618. 'optional2--',
  8619. "//a[contains(@href,'gorillavid.in')]"
  8620. );
  8621. }
  8622. if (GM_getValue("Check_thefile_dot_me_links", false))
  8623. {
  8624. addFileHost(
  8625. "thefile\.me\/\\w+",
  8626. 'Choose free or',
  8627. '',
  8628. 'optional--',
  8629. 'optional2--',
  8630. "//a[contains(@href,'thefile.me')]"
  8631. );
  8632. }
  8633. if (GM_getValue("Check_vidzi_dot_tv_links", false))
  8634. {
  8635. addFileHost(
  8636. "vidzi\.tv\/\\w+",
  8637. 'video-embed-modal row',
  8638. 'File Not Found|file was deleted',
  8639. 'optional--',
  8640. 'optional2--',
  8641. "//a[contains(@href,'vidzi.tv')]"
  8642. );
  8643. }
  8644. if (GM_getValue("Check_filenuke_dot_com_links", false))
  8645. {
  8646. addFileHost(
  8647. "filenuke\.com\/\\w+",
  8648. 'Download File',
  8649. 'Earn with us',
  8650. 'optional--',
  8651. 'optional2--',
  8652. "//a[contains(@href,'filenuke.com')]"
  8653. );
  8654. }
  8655. if (GM_getValue("Check_vidto_dot_me_links", false))
  8656. {
  8657. addFileHost(
  8658. "vidto\.me\/\\w+",
  8659. 'Proceed to video',
  8660. 'Not Found',
  8661. 'optional--',
  8662. 'optional2--',
  8663. "//a[contains(@href,'vidto.me')]"
  8664. );
  8665. }
  8666. if (GM_getValue("Check_vidspot_dot_net_links", false))
  8667. {
  8668. addFileHost(
  8669. "vidspot\.net\/\\w+",
  8670. 'Duration',
  8671. 'Removed for',
  8672. 'optional--',
  8673. 'optional2--',
  8674. "//a[contains(@href,'vidspot.net')]"
  8675. );
  8676. }
  8677. if (GM_getValue("Check_sharesix_dot_com_links", false))
  8678. {
  8679. addFileHost(
  8680. "(?:sharesix\\.com|sharesix\\.net)\/\\w+",
  8681. 'Download File',
  8682. 'File Not Found',
  8683. 'optional--',
  8684. 'optional2--',
  8685. "//a[contains(@href,'sharesix.com') or contains(@href,'sharesix.net/')]"
  8686. );
  8687. }
  8688. if (GM_getValue("Check_movpod_dot_in_links", false))
  8689. {
  8690. addFileHost(
  8691. "movpod\.in\/\\w+",
  8692. 'Continue',
  8693. 'File Not Found',
  8694. 'optional--',
  8695. 'optional2--',
  8696. "//a[contains(@href,'movpod.in')]"
  8697. );
  8698. }
  8699. if (GM_getValue("Check_down4files_dot_com_links", false))
  8700. {
  8701. addFileHost(
  8702. "down4files\.com\/\\w+",
  8703. 'down_table.png',
  8704. 'style="color:#d33|Error</td>|width:500px;text-align:left;">',
  8705. 'optional--',
  8706. 'optional2--',
  8707. "//a[contains(@href,'down4files.com')]"
  8708. );
  8709. }
  8710. if (GM_getValue("Check_storefiles_dot_co_links", false))
  8711. {
  8712. addFileHost(
  8713. "storefiles\.co\/\\w+",
  8714. 'btn_download',
  8715. 'No such file|>Error<|mqmaintitle">',
  8716. 'optional--',
  8717. 'optional2--',
  8718. "//a[contains(@href,'storefiles.co')]"
  8719. );
  8720. }
  8721. if (GM_getValue("Check_filehost_dot_pw_links", false))
  8722. {
  8723. addFileHost(
  8724. "filehost\.pw\/\\w+",
  8725. 'name="method_free',
  8726. '>Error<|style="color:#d33;">|No such file|FILE NOT FOUND',
  8727. 'optional--',
  8728. 'optional2--',
  8729. "//a[contains(@href,'filehost.pw')]"
  8730. );
  8731. }
  8732. if (GM_getValue("Check_inafile_dot_com_links", false))
  8733. {
  8734. addFileHost(
  8735. "inafile\.com\/\\w+",
  8736. 'value="download1">|<h2>File: <font style="color:darkred">',
  8737. '<div style="width:500px;text-align:left;">|File Not Found',
  8738. 'optional--',
  8739. 'optional2--',
  8740. "//a[contains(@href,'inafile.com')]"
  8741. );
  8742. }
  8743. if (GM_getValue("Check_uplea_dot_com_links", false))
  8744. {
  8745. addFileHost(
  8746. "uplea\.com\/\\w+",
  8747. 'Download your file:|de votre fichier:|class="download-container',
  8748. 'expired link|ou est invalide',
  8749. 'optional--',
  8750. 'optional2--',
  8751. "//a[contains(@href,'uplea.com/dl')]"
  8752. );
  8753. }
  8754. if (GM_getValue("Check_openload_dot_co_links", false))
  8755. {
  8756. addFileHost(
  8757. "openload\.co\/\\w+",
  8758. 'id="downloadTimer">|button dlbutton',
  8759. 'jumbotron{color|got deleted|center !important',
  8760. 'optional--',
  8761. 'optional2--',
  8762. "//a[contains(@href,'openload.co')]"
  8763. );
  8764. }
  8765.  
  8766.  
  8767. }
  8768. //start here
  8769.  
  8770. //hosts with direct download, so they must be requested for headers only
  8771. function initFileHostsHeadersOnly()
  8772. {
  8773. function addFileHostHeadersOnly(linkRegex, isAliveRegex, isDeadRegex, xpathEx, ispremRegex)
  8774. {
  8775. var host = new Array(5);
  8776. host[0] = linkRegex;
  8777. host[1] = isAliveRegex;
  8778. host[2] = isDeadRegex;
  8779. host[3] = xpathEx;
  8780. host[4] = ispremRegex;
  8781. http_file_hosts_headers_only.push(host);
  8782. }
  8783. if (GM_getValue("Check_uloziste_dot_com_links", false))
  8784. {
  8785. addFileHostHeadersOnly(
  8786. "(?:|files\\.)uloziste\\.com\/\\w+\/\\w+",
  8787. 'Connection: Keep-Alive',
  8788. 'Content-Length: 3857',
  8789. "//a[contains(@href,'uloziste.com')]"
  8790. )
  8791. }
  8792. if (GM_getValue("Check_adrive_dot_com_links", false))
  8793. {
  8794. addFileHostHeadersOnly(
  8795. "adrive\\.com\/public\/\\w+",
  8796. 'Connection: keep-alive',
  8797. 'orig_ref=deleted',
  8798. "//a[contains(@href,'adrive.com')]"
  8799. )
  8800. }
  8801. if (GM_getValue("Check_myupload_dot_dk_links", false))
  8802. {
  8803. addFileHostHeadersOnly(
  8804. "myupload\\.dk\/showfile\/\\w+",
  8805. 'Expires:',
  8806. 'squeeze1\\s+Vary',
  8807. "//a[contains(@href,'myupload.dk/showfile')]"
  8808. )
  8809. }
  8810. }
  8811. //CustomRules
  8812. //functions add...Host copied here
  8813. function addObsoleteHost(linkRegex, xpathEx)
  8814. {
  8815. var host = new Array(2);
  8816. host[0] = linkRegex;
  8817. host[1] = xpathEx;
  8818. http_file_hosts_obsolete.push(host);
  8819. }
  8820. function addFileHost(linkRegex, isAliveRegex, isDeadRegex, isUnavaRegex, xpathEx, tryLoop, ispremRegex)
  8821. {
  8822. var host = new Array(7);
  8823. host[0] = linkRegex;
  8824. host[1] = isAliveRegex;
  8825. host[2] = isDeadRegex;
  8826. host[3] = isUnavaRegex;
  8827. host[4] = xpathEx;
  8828. tryLoop ? host[5] = true : host[5] = false;
  8829. host[6] = ispremRegex;
  8830. http_file_hosts.push(host);
  8831. }
  8832. function addFileHostHeadersOnly(linkRegex, isAliveRegex, isDeadRegex, xpathEx, ispremRegex)
  8833. {
  8834. var host = new Array(5);
  8835. host[0] = linkRegex;
  8836. host[1] = isAliveRegex;
  8837. host[2] = isDeadRegex;
  8838. host[3] = xpathEx;
  8839. host[4] = ispremRegex;
  8840. http_file_hosts_headers_only.push(host);
  8841. }
  8842. //takes a fully built rules array and adds the rules to WARLC
  8843. function applyCustomRules(customRules)
  8844. {
  8845. if (!customRules) return;
  8846. var rules, r, i;
  8847. rules = customRules.rules;
  8848. for (i = 0 ; i < rules.length ; i++)
  8849. {
  8850. r = rules[i];
  8851. if (r.enabled)
  8852. {
  8853. switch (r.type)
  8854. {
  8855. case 'single':
  8856. addFileHost(r.urlregex, r.aliveregex, r.deadregex, r.unavaregex, r.premregex||'', r.xpath);
  8857. break;
  8858. case 'headers':
  8859. addFileHostHeadersOnly(r.urlregex, r.aliveregex, r.deadregex, r.xpath, r.premregex);
  8860. break;
  8861. case 'obsolete':
  8862. addObsoleteHost(r.urlregex, r.xpath)
  8863. break;
  8864. }
  8865. }
  8866. }
  8867. }
  8868.  
  8869.  
  8870. function initFileHostsCustom()
  8871. {
  8872. if (Custom_rules && Custom_rules_text)
  8873. {
  8874. var msg = '';
  8875. if (newVersion)
  8876. msg = 'New version of W.A.R. Links Checker detected.\n\n';
  8877. else if ((now - last_custom_rules_nag) >= 60*24*60*60*1000)
  8878. msg = '60 or more days have passed since this notification.\n\n';
  8879. if (msg && /^\s*@customrule(?:_obsolete)?\s/mi.test(Custom_rules_text))
  8880. {
  8881. GM_setValue('last_custom_rules_nag', ''+new Date().getTime()); //reset nag
  8882. msg +=
  8883. 'Either new version of W.A.R. Links Checker detected or 60 days passed since this notify.\n'+
  8884. 'Please check that your custom rules haven\'t been built into WARLC.\n'+
  8885. 'If not, please share them with us so they can be included in the next version! Built-in rules are always preferred.\n\n'+
  8886. 'We apologize for this annoying notification, but there is a reason to this.\n'+
  8887. 'Ideally, WARLC would check which of your custom rules have been included and disable them. '+
  8888. 'Unfortunately, there is no easy way to do that, but we don\'t want everybody to just use their custom rules '+
  8889. 'forever without ever checking if the built-in ones have been added/fixed. This is currently the only way '+
  8890. 'to remind you that you should try built-in rules, report missing/non-working ones and share your custom rules.';
  8891. setTimeout(function(){alert(msg)},0);
  8892. }
  8893. var customRules = parseCustomRules(Custom_rules_text);
  8894. if (customRules.warning || customRules.error)
  8895. alert('There were ' + customRules.error + ' errors, ' + customRules.warning + ' warnings, ' +
  8896. customRules.note + ' notes found during Custom Rules processing.\n' + customRules.rules.length + ' valid rules found.\n\n' +
  8897. JSON.stringify(customRules.info, null, ' '));
  8898. applyCustomRules(customRules);
  8899. }
  8900. }
  8901. //end of CustomRules processing
  8902.  
  8903.  
  8904.  
  8905. } //end of function start
  8906.  
  8907.  
  8908.  
  8909. function initClipBoardTools()
  8910. {
  8911. unsafeWindow.copyToClipboard = function(text)
  8912. {
  8913. try
  8914. {
  8915. this.netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
  8916.  
  8917. var str = Components.classes["@mozilla.org/supports-string;1"].
  8918. createInstance(Components.interfaces.nsISupportsString);
  8919. if (!str) return false;
  8920.  
  8921. str.data = text;
  8922.  
  8923. var trans = Components.classes["@mozilla.org/widget/transferable;1"].
  8924. createInstance(Components.interfaces.nsITransferable);
  8925. if (!trans) return false;
  8926.  
  8927. trans.addDataFlavor("text/unicode");
  8928. trans.setTransferData("text/unicode", str, text.length * 2);
  8929.  
  8930. var clipid = Components.interfaces.nsIClipboard;
  8931. var clip = Components.classes["@mozilla.org/widget/clipboard;1"].getService(clipid);
  8932. if (!clip) return false;
  8933.  
  8934. clip.setData(trans, null, clipid.kGlobalClipboard);
  8935. } catch (e) {
  8936. GM_log("Error copyToClipboard : " + e);
  8937. alert(e + "\n\nsigned.applets.codebase_principal_support must be set true in about:config")
  8938. }
  8939. }
  8940. }
  8941.  
  8942.  
  8943.  
  8944. //CustomRules
  8945.  
  8946. function escapeRegex(str)
  8947. {
  8948. return str.replace(/[\-\[\]{}()*+?.,\\\^$|#]/g, "\\$&");
  8949. }
  8950.  
  8951.  
  8952. //called internally from parseCustomRules.
  8953. //expected: rule object with array fields baseurl, alivematch etc, everything must already be checked for input errors
  8954. //returns the rule object with string fields urlregex, xpath, aliveregex etc built from the arrays
  8955. function makeCustomRule(rule)
  8956. {
  8957. function makeMatchRegex(arrmatch)
  8958. {
  8959. return escapeRegex(arrmatch.join('\n'))
  8960. .replace(/ +/g, '\\s+') //two or more spaces to any whitespace
  8961. .replace(/\n/g,'|'); //join together
  8962. }
  8963. if (rule.alivematch) rule.aliveregex = makeMatchRegex(rule.alivematch);
  8964. if (rule.deadmatch) rule.deadregex = makeMatchRegex(rule.deadmatch);
  8965. if (rule.unavamatch) rule.unavaregex = makeMatchRegex(rule.unavamatch);
  8966. if (rule.premmatch) rule.premregex = makeMatchRegex(rule.premmatch);
  8967. if (rule.baseurl)
  8968. {
  8969. var i, m, urlregex = [], xpath = [], len = rule.baseurl.length;
  8970. for (i = 0 ; i < len ; i++)
  8971. {
  8972. m = rule.baseurl[i].match(/^([a-z0-9\.-]+)(?: +([a-z \.]+) +)?(\/.*)$/);
  8973. if (m[2]) //baseurl in the form: example. com co.uk net /xxx
  8974. {
  8975. 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'])
  8976. urlregex.push( (m[1] + '(?:'+ m[2].replace(/\s+/g,'|') + ')').replace(/\./g,'\\.') + escapeRegex(m[3]) + '.'); //urlregex.push('example\\.(?:com|co\\.uk|net)/xxx.')
  8977. }
  8978. else //baseurl in the form: example.com/xxx
  8979. {
  8980. xpath.push(m[0]);
  8981. urlregex.push(escapeRegex(m[0]) + '.');
  8982. }
  8983. }
  8984. rule.xpath = "//a[contains(@href,'" + xpath.join("') or contains(@href,'") + "')]";
  8985. rule.urlregex = '(?:[a-z0-9\\.-]+\\.)?(?:' + urlregex.join('|') + ')';
  8986. }
  8987. return rule;
  8988. } //function makeCustomRule
  8989.  
  8990.  
  8991. /*
  8992. Takes a string containing custom link checking rules.
  8993. Returns an object with fields:
  8994. info - contains notes, warnings and errors found during parsing
  8995. rules - the array of custom rules
  8996. note, warning, error - number of each of them found during parsing
  8997. Format of the input string:
  8998. One command per line. Command format: @keyword parameter
  8999. Keywords:
  9000. @customrule, @customrule_obsolete, @customrule_headers - begin a new custom rule. Parameter: name of the rule
  9001. @#customrule, @#customrule_obsolete, @#customrule_headers - begin and parse this custom rule, but don't use it. Parameter: name of the rule
  9002. These keywords can be multiple (any of them will work):
  9003. @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...)
  9004. @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+
  9005. @alivelink, @deadlink - example links
  9006. @baseurl is always required, @alivematch and @deadmatch are required except for obsolete. @unavamatch is ignored for obsolete. @*link is optional.
  9007. Lines starting with // and empty lines are ignored.
  9008. Invalid parameters generate errors and those lines are skipped.
  9009. Other lines generate warnings, but are otherwise ignored (also those before the first @customrule line or inside a rule with invalid name).
  9010. Example:
  9011. @customrule filehost
  9012. @baseurl filehost.com/download/
  9013. @baseurl filehost2. com net /d?=
  9014. @alivematch id="download">
  9015. @deadmatch File not found
  9016. @deadmatch File deleted
  9017. */
  9018. function parseCustomRules(rulesStr)
  9019. {
  9020. var linenum, customRules = {'info': [], 'rules': [], 'note': 0, 'warning': 0, 'error': 0};
  9021. function addInfo(type, msg, ln){
  9022. customRules.info.push({'linenum':(ln===undefined ? linenum+1 : ln+1), 'type':type, 'msg':msg});
  9023. customRules[type]++;
  9024. }
  9025. var lines = rulesStr.match(/^(.*)$/gm); //split into array of lines
  9026. if (!lines) return null;
  9027. lines.push('@#customrule _'); //to save the last rule
  9028. var m, linecount = lines.length;
  9029. var keyword, param, constr, rule, err;
  9030. var TLD = '[a-z]{2,7}(?:\\.[a-z]{2,7})?';
  9031. var TLDorTLDlist = '(?:'+TLD+'| '+TLD+'(?: '+TLD+'){0,9} )'; //TLD or space-separated list of TLDs
  9032. var baseurlRE = new RegExp('^([a-z0-9-]{1,30}(?:\\.[a-z0-9-]{1,30}){0,2}\\.)'+TLDorTLDlist+'(/[^\'"\s\$]{0,50})$', 'i');
  9033. var constraints = {
  9034. 'baseurl': {
  9035. 'single': {'min': 1, 'max': 10, 'paramRE': baseurlRE},
  9036. 'headers': {'min': 1, 'max': 10, 'paramRE': baseurlRE},
  9037. 'obsolete': {'min': 1, 'max': 10, 'paramRE': baseurlRE}},
  9038. 'alivematch': {
  9039. 'single': {'min': 1, 'max': 10, 'paramRE': null},
  9040. 'headers': {'min': 1, 'max': 10, 'paramRE': null}},
  9041. 'deadmatch': {
  9042. 'single': {'min': 1, 'max': 10, 'paramRE': null},
  9043. 'headers': {'min': 1, 'max': 10, 'paramRE': null}},
  9044. 'unavamatch': {
  9045. 'single': {'min': 0, 'max': 10, 'paramRE': null}},
  9046. 'alivelink': {
  9047. 'single': {'min': 0, 'max': 10, 'paramRE': null},
  9048. 'headers': {'min': 0, 'max': 10, 'paramRE': null}},
  9049. 'deadlink': {
  9050. 'single': {'min': 0, 'max': 10, 'paramRE': null},
  9051. 'headers': {'min': 0, 'max': 10, 'paramRE': null},
  9052. 'obsolete': {'min': 0, 'max': 10, 'paramRE': null}}
  9053. };
  9054. for (linenum = 0 ; linenum < linecount ; linenum++)
  9055. {
  9056. //capturing groups: 1 23 4 5 6
  9057. m = lines[linenum].match(/^\s*(?:(\/\/.*)|@((#?)(customrule)(?:_(headers|obsolete))?|baseurl|alivematch|deadmatch|unavamatch|alivelink|deadlink)\s+(.+))?$/i);
  9058. if (m)
  9059. {
  9060. if (m[1] || !m[2])
  9061. continue; // ignore empty lines and lines starting with //
  9062. keyword = (m[4] || m[2]).toLowerCase();
  9063. param = m[6];
  9064. if (keyword == 'customrule')
  9065. {
  9066. //save the current rule if all required fields are provided
  9067. if (rule)
  9068. {
  9069. err = false;
  9070. $.each(constraints, function(kw, constraint){
  9071. var l, constr = constraint[rule.type];
  9072. if (constr)
  9073. {
  9074. l = rule[kw] ? rule[kw].length : 0;
  9075. if (l < constr.min || l > constr.max)
  9076. {
  9077. 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);
  9078. err = true;
  9079. }
  9080. }
  9081. });
  9082. if (!err)
  9083. customRules.rules.push(makeCustomRule(rule));
  9084. }
  9085. //start a new rule
  9086. if (/^[\w\.-]{1,30}$/.test(param)) //valid name?
  9087. {
  9088. rule = {
  9089. 'enabled': !m[3],
  9090. 'type': m[5] ? m[5].toLowerCase() : 'single',
  9091. 'name': param
  9092. };
  9093. }
  9094. else
  9095. {
  9096. addInfo('error', 'Invalid rule name. Cannot start a new rule definition.');
  9097. rule = null;
  9098. }
  9099. }
  9100. else //good line format, but keyword other than customrule
  9101. {
  9102. if (!rule)
  9103. {
  9104. addInfo('warning', 'Command outside @CUSTOMRULE definiton. Line skipped.');
  9105. continue;
  9106. }
  9107. if (constraints[keyword])
  9108. {
  9109. constr = constraints[keyword][rule.type];
  9110. if (constr)
  9111. {
  9112. if (constr.paramRE && !constr.paramRE.test(param))
  9113. {
  9114. addInfo('warning', 'Invalid @' + keyword.toUpperCase() + ' parameter. Line Skipped.');
  9115. continue;
  9116. }
  9117. }
  9118. else
  9119. {
  9120. addInfo('note', '@' + keyword.toUpperCase() + ' not applicable for type ' + rule.type.toUpperCase() + '. Line skipped.');
  9121. continue;
  9122. }
  9123. }
  9124. //line OK, save
  9125. rule[keyword] ? rule[keyword].push(param) : rule[keyword] = [param];
  9126. }
  9127. } //if (m)
  9128. else
  9129. addInfo('warning', 'Unknown line format. Line skipped.');
  9130. } //for loop
  9131. return customRules;
  9132. } //function parseCustomRules