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

detects live, dead and premium links.

当前为 2015-12-14 提交的版本,查看 最新版本

  1. //added netload.me & fileparadox.in to obsolete hosts
  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.2.1.6
  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. "dailyuploads.net",
  34. "devilshare.net",
  35. "alfafile.net",
  36. "openload.co",
  37. "multiup.org",
  38. "uplea.com",
  39. "filenuke.com",
  40. "file.al",
  41. // "inafile.com",
  42. "lolabits.es",
  43. "vidto.me",
  44. "storefiles.co",
  45. "filehost.pw",
  46. "vidspot.net",
  47. "turbobit.ru",
  48. "sharesix.com|sharesix.net",
  49. "movpod.in",
  50. "thefile.me",
  51. "vidzi.tv",
  52. "videoweed.es",
  53. "vodlocker.com",
  54. "nowvideo.sx",
  55. "cloudtime.to",
  56. "thevideo.me",
  57. "vidbull.com",
  58. "allmyvideos.net",
  59. "novamov.com",
  60. "filehoot.com",
  61. "stagevu.com",
  62. "gorillavid.in",
  63. "streamin.to",
  64. "4upld.com",
  65. "cloudshares.net",
  66. "swoopshare.com",
  67. "2shared.com",
  68. "fileupload.pw",
  69. "zxcfiles.com",
  70. "up07.net",
  71. "4shared.com",
  72. "adrive.com",
  73. "aisfile.com",
  74. "hexupload.com",
  75. "bezvadata.cz",
  76. "xkeepfile.com|Gamesena.com",
  77. "usersfiles.com",
  78. "pan.baidu.com",
  79. "radicalshare.com",
  80. "datei.to",
  81. "daten-hoster.de|filehosting.org|xtraupload.de",
  82. "demo.ovh.eu",
  83. "depositfiles.com|depositfiles.lt|depositfiles.org|dfiles.ru|dfiles.eu",
  84. "divshare.com",
  85. "easy-share.com|crocko.com",
  86. "easybytez.com",
  87. "edisk.cz",
  88. "euroshare.eu",
  89. "file-upload.net",
  90. "yadi.sk",
  91. "wizupload.com",
  92. "fastshare.cz",
  93. "filefactory.com",
  94. "share.vnn.vn",
  95. "yunpan.cn",
  96. "gulfup.com",
  97. "tropicshare.com",
  98. "cloudzilla.to",
  99. "inclouddrive.com",
  100. "fileflyer.com",
  101. "filerio.com|filekeen.com",
  102. "up.4share.vn",
  103. "upfile.vn",
  104. "datafilehost.com",
  105. "fileband.com",
  106. "worldbytez.com",
  107. "files.mail.ru",
  108. "filesflash.com",
  109. "box.com",
  110. "uptobox.com",
  111. "box.net",
  112. "goldbytez.com",
  113. "sdilej.cz",
  114. "ex-load.com",
  115. "filesmonster.com",
  116. "filestore.to",
  117. "hulkload.com",
  118. "filedropper.com",
  119. "free-uploading.com",
  120. "gamefront.com|filefront.com",
  121. "gettyfile.ru",
  122. "gigapeta.com",
  123. "gigasize.com",
  124. "hellshare.com",
  125. "hellspy.com",
  126. "hitfile.net",
  127. "hostuje.net",
  128. "freefilehosting.net",
  129. "free.fr",
  130. "hulkshare.com",
  131. "hyperfileshare.com",
  132. "filecloud.io|ifile.it",
  133. "ifolder.ru",
  134. "jumbofiles.com",
  135. "uploadrocket.net",
  136. "lafiles.com",
  137. "leteckaposta.cz|sharegadget.com",
  138. "letitbit.net",
  139. "load.to",
  140. "mediafire.com",
  141. "megafileupload.com",
  142. "megashares.com",
  143. "movshare.net",
  144. "muchshare.net",
  145. "myupload.dk",
  146. "narod.ru|narod.yandex.ru",
  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. "rapidgator.net",
  156. "k2s.cc|keep2s.cc|keep2share.cc|keep2share.com",
  157. "oboom.com",
  158. "filepi.com",
  159. "neodrive.co",
  160. "rarefile.net",
  161. "rayfile.com",
  162. "rghost.net",
  163. "sendmyway.com",
  164. "clicknupload.com",
  165. "clicknupload.me",
  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. "zippyshare.com",
  210. "rodfile.com",
  211. "wikiupload.com",
  212. "uploadstube.de",
  213. "faststore.org",
  214. "flyfiles.net",
  215. "nowdownload.ch",
  216. "prefiles.com",
  217. "axifile.com",
  218. "hackerbox.org",
  219. "amonshare.com",
  220. "data.hu",
  221. "brupload.net",
  222. "userscloud.com",
  223. "netkups.com",
  224. "xfileload.com",
  225. "kumpulbagi.com",
  226. "uppit.com|up.ht",
  227. "downloadani.me",
  228. "filesabc.com",
  229. "180upload.com",
  230. "verzend.be",
  231. "4up.me",
  232. "extmatrix.com",
  233. "sendfiles.nl",
  234. "yourfilestore.com",
  235. "filebig.net",
  236. "nekaka.com",
  237. "file4safe.com",
  238. "tusfiles.net",
  239. "filemac.com",
  240. "idup.in",
  241. "fileswap.com",
  242. "ozofiles.com",
  243. "loudupload.net",
  244. "nosupload.com",
  245. "gboxes.com",
  246. "myvdrive.com|fileserving.com",
  247. "filesin.com",
  248. "novafile.com",
  249. "longfiles.com",
  250. // "uploadhero.com",
  251. "uploadbaz.com",
  252. "bitupload.com",
  253. "indowebster.com",
  254. "superload.cz",
  255. "mafiastorage.com",
  256. "4upfiles.com",
  257. "filesmelt.com",
  258. "hellupload.com",
  259. "uploadingit.com",
  260. "stiahni.si",
  261. "sendspace.pl",
  262. "fastshare.org",
  263. "filejoker.net",
  264. "filestore.com.ua",
  265. "secureupload.eu",
  266. "rapidfileshare.net",
  267. "stiahnito.sk",
  268. "rusfolder.com",
  269. "fileover.net",
  270. "catshare.net",
  271. "anonfiles.com",
  272. "mixturecloud.com",
  273. "filedais.com",
  274. // "imdb.com",
  275. "nitroflare.com",
  276. "akafile.com",
  277. "creafile.net",
  278. "hugefiles.net",
  279. "vidxden.com",
  280. "up.top4top.net",
  281. "upload.ee",
  282. "shareplace.org",
  283. "uploadc.com",
  284. "remixshare.com",
  285. "exoshare.com",
  286. "borncash.org",
  287. "junocloud.me",
  288. "expressleech.com",
  289. "2downloadz.com",
  290. "mightyupload.com",
  291. "anysend.com",
  292. "datafile.com",
  293. "upstore.net",
  294. "upsto.re",
  295. "speedy.sh",
  296. "sanshare.com",
  297. "kingfiles.net",
  298. // "uploadhero.co",
  299. "ge.tt",
  300. "filesflash.net",
  301. "salefiles.com",
  302. // "megairon.net",
  303. "datoid.cz",
  304. "cloudstor.es",
  305. "streamfile.com",
  306. "eyesfile.ca",
  307. "filemoney.com",
  308. "uploadboy.com",
  309. "speedshare.eu",
  310. "google.com",
  311. "unlimitzone.com",
  312. "rioupload.com",
  313. "rg.to",
  314. "jumbofiles.org",
  315. "fshare.vn",
  316. "spaceforfiles.com",
  317. "up.media1fire.com",
  318. "depfile.com",
  319. "go4up.com",
  320. "dropbox.com",
  321. "redbunker.net",
  322. "divxpress.com",
  323. "mega.nz|mega.co.nz",
  324. "anafile.com",
  325. "uploadable.ch",
  326. "arabloads.net",
  327. "sharerepo.com",
  328. "sfshare.se",
  329. "files.fm",
  330. "koofile.com",
  331. "vidplay.net",
  332. "storagon.com",
  333. "doraupload.com",
  334. "openload.io",
  335. "geupload.com|lenfile.com",
  336. "uploads.xxx",
  337. "toutbox.fr",
  338. ];
  339.  
  340. try
  341. {
  342. //iframes excluded
  343. if (window.top != window.self)
  344. {
  345. return;
  346. }
  347. //allHostNames sites excluded
  348. if (window.location.href.match("https?:\/\/(www\.)?[\w\.-]*(?:" +
  349. allHostNames.join("|").replace(/\./g, "\\.").replace(/-/g, "\\-") +
  350. ")"))
  351. {
  352. return;
  353. }
  354. }
  355. catch (e)
  356. {
  357. return;
  358. }
  359.  
  360. //separate alternative domains with "|" char (first name is considered being main)
  361. var allContainerNames = [
  362. "adf.ly",
  363. "linkcrypt.ws",
  364. "linksafe.me",
  365. "linksave.in",
  366. "linkto.net",
  367. "madlink.sk",
  368. "multiload.cz",
  369. "mirrorcreator.com",
  370. "ncrypt.in",
  371. "redi.re",
  372. "relink.us",
  373. "safelinking.net",
  374. "theloo.katt.it",
  375. "bit.ly",
  376.  
  377. ];
  378.  
  379. //separate alternative domains with "|" char (first name is considered being main)
  380. var allObsoleteNames = [
  381. "uloz.cz",
  382. "filepost.com|fp.io",
  383. "rapidsonic.com",
  384. "fileparadox.com",
  385. "fileparadox.in",
  386. "uploadhero.co",
  387. "uploadhero.com",
  388. "newfileland.com",
  389. "quickshare.cz",
  390. "netload.in",
  391. "netload.me",
  392. "movreel.com",
  393. "migahost.com",
  394. "krotix.net",
  395. "jumbofile.net",
  396. "edoc.com",
  397. "down4files.com",
  398. "cramit.in|cramitin.net",
  399. "freakshare.com",
  400. "burnupload.com|burnupload.ihiphop.com",
  401. "freakshare.net",
  402. "daj.to",
  403. "bl.st",
  404. "2drive.net",
  405. "ryushare.com",
  406. "crisshare.com",
  407. "tufiles.ru",
  408. "uncapped-downloads.com",
  409. "sockshare.com",
  410. "ddlstorage.com",
  411. "dataport.cz",
  412. "dizzcloud.com",
  413. "sharebeast.com",
  414. "stahovadlo.cz",
  415. "shared.com",
  416. "storage.to",
  417. "putlocker.com",
  418. "lumfile.com",
  419. "lumfile.se",
  420. "lumfile.eu",
  421. "firedrive.com",
  422. "fileshare.in.ua",
  423. "filecore.co.nz",
  424. "iskladka.cz",
  425. "file-rack.com",
  426. "fast-load.net",
  427. "subory.sk",
  428. "bigandfree.com",
  429. "fileop.com",
  430. "mujsoubor.cz",
  431. "sendfile.to",
  432. "superfastfile.com",
  433. "quickyshare.com",
  434. "duckload.com",
  435. "uploadstore.net",
  436. "meinupload.com",
  437. "dualshare.com",
  438. "2xupload.to|2xupload.de",
  439. "oxedion.com",
  440. "uploadline.com",
  441. "dll.bz",
  442. "movieshare.in",
  443. "milledrive.com",
  444. "quickupload.net",
  445. "safelink.in",
  446. "metadivx.com",
  447. "divxlink.com",
  448. "uploadrack.com",
  449. "teradepot.com",
  450. "dataup.to",
  451. "upit.to",
  452. "driveway.com",
  453. "eatlime.com",
  454. "a2zuploads.com",
  455. "friendlyfiles.net",
  456. "flyfile.us",
  457. "speedyshare.com",
  458. "uploadspace.eu",
  459. "keepfile.com",
  460. "piggyshare.com",
  461. "uplly.com",
  462. "filecrown.com",
  463. "6giga.com",
  464. "uploadjockey.com",
  465. "bluehost.to",
  466. "filegu.ru",
  467. "filebase.to",
  468. "up-file.com",
  469. "xvideos.com",
  470. "ufox.com",
  471. "filebling.com",
  472. "loaded.it",
  473. "uploadcell.com",
  474. "uploadshare.cz",
  475. "mangoshare.com",
  476. "filestab.com",
  477. "crazyupload.com",
  478. "gaiafile.com",
  479. "sharejunky.com",
  480. "fileho.com",
  481. "bigandfree.com",
  482. "bigfile.in",
  483. "bigshare.eu",
  484. "dahosting.org",
  485. "digisofts.net",
  486. "file4save.com",
  487. "filechip.com",
  488. "filescloud.com",
  489. "saveqube.com",
  490. "turboshare.de",
  491. "z-upload.com",
  492. "youshare.com",
  493. "jiffyupload.com",
  494. "gigeshare.com",
  495. "datenklo.net",
  496. "upload.dj",
  497. "loadfiles.in",
  498. "upit.to",
  499. "dsfileshare.com",
  500. "sharesimple.net",
  501. "4files.net",
  502. "wooupload.com",
  503. "odsiebie.com",
  504. "filenavi.com",
  505. "3oof.com",
  506. "meshwaar.com",
  507. "maxupload.com",
  508. "share.cx",
  509. "atserver.eu",
  510. "hotfiles.ws",
  511. "esnips.com",
  512. "tuxfile.com",
  513. "file2upload.net",
  514. "filebling.com",
  515. "turboshare.com",
  516. "rarhost.com",
  517. "isharehd.com",
  518. "i741.com",
  519. "dataup.de",
  520. "fofly.com",
  521. "shareonall.com",
  522. "sexuploader.com",
  523. "megaupload.com|megavideo.com|megaporn.com|megarotic.com",
  524. "uploadhyper.com",
  525. "filespawn.com",
  526. "caizzii.com",
  527. "volnyweb.cz",
  528. "usershare.net",
  529. "filescash.net",
  530. "metahyper.com",
  531. "combozip.com",
  532. "x7.to",
  533. "uploadbox.com",
  534. "enterupload.com|flyupload.com",
  535. "filepoint.de",
  536. "mystream.to",
  537. "x-fs.com",
  538. "shareator.com",
  539. "srapid.eu",
  540. "sosame.cz",
  541. "filesdump.com",
  542. "2-klicks.de",
  543. "uploking.com",
  544. "silofiles.com",
  545. "upfile.in",
  546. "filehook.com",
  547. "uploadking.com",
  548. "uploadhere.com",
  549. "kewlshare.com",
  550. "rapidable.com",
  551. "uploadwaste.com",
  552. "filemup.com",
  553. "filesonic.com|sharingmatrix.com",
  554. "fileserve.com",
  555. "wupload.com",
  556. "skipfile.com",
  557. "smartuploader.com",
  558. "dualshare.com",
  559. "storeandserve.com",
  560. "mountfile.com",
  561. "transitfiles.com",
  562. "uploadstation.com",
  563. "filejungle.com",
  564. "shareshared.com",
  565. "quickyshare.com",
  566. "save.am",
  567. "petandrive.com",
  568. "file2box.com",
  569. "flyshare.cz",
  570. "yabadaba.ru",
  571. "cloudcache.cc",
  572. "yourfilehost.com",
  573. "jakfile.com",
  574. "kickload.com",
  575. "pyramidfiles.com",
  576. "refile.net",
  577. "zshare.net",
  578. "ddlani.me|ddlanime.com",
  579. "ftp2share.com",
  580. "fooget.com",
  581. "rapidhide.com",
  582. "gotupload.com",
  583. "mooload.com",
  584. "zupload.com",
  585. "mytempdir.com",
  586. "onionshare.com",
  587. "stahnu.to",
  588. "oron.com",
  589. "badongo.com",
  590. "filereactor.com",
  591. "filegaze.com",
  592. "4bytez.com",
  593. "1hostclick.com",
  594. "anonstream.com",
  595. "batshare.com",
  596. "bitroad.net",
  597. "brontofile.com",
  598. "cloudnxt.net",
  599. "cloudnator.com|shragle.com",
  600. "filesfrog.net",
  601. "coolshare.cz",
  602. "dotavi.com",
  603. "ezyfile.net",
  604. "file-bit.net",
  605. "filecosy.com",
  606. "fileduct.com|fileduct.net",
  607. "filefat.com",
  608. "filelaser.com",
  609. "filemashine.com",
  610. "fileserver.cc",
  611. "filetechnology.com",
  612. "fireuploads.net",
  613. "gigfiles.net",
  614. "holderfile.com",
  615. "ihostia.com",
  616. "k2files.com",
  617. "mojofile.com",
  618. "ovfile.com",
  619. "qshare.com",
  620. "shafiles.me",
  621. "sharefilehost.com",
  622. "shareupload.com",
  623. "stahuj.to",
  624. "ugotfile.com",
  625. "uploadboost.com",
  626. "fileom.com",
  627. "vidhog.com",
  628. "xfileshare.eu",
  629. "bzlink.us",
  630. "bulletupload.com",
  631. "bloggerarticles.com",
  632. "mojedata.sk",
  633. "sharpfile.com",
  634. "upgrand.com",
  635. "nasdilej.cz",
  636. "mediatack.cz",
  637. "share-it.to",
  638. "primeupload.com",
  639. "filebeer.info",
  640. "baberepublic",
  641. "xtu.me",
  642. "sharebase.de",
  643. "luckyshare.net",
  644. "filerobo.com",
  645. "filevelocity.com",
  646. "filezpro.com",
  647. "file4sharing.com",
  648. "cing.be",
  649. "ufile.eu",
  650. "pigsonic.com",
  651. "fileupped.com",
  652. "sharerun.com",
  653. "filesaur.com",
  654. "rapidslnare.com",
  655. "bestsharing.com",
  656. "savefiles.net",
  657. "file2share.biz",
  658. "filecache.de",
  659. "monsteruploads.eu",
  660. "b9bb.com",
  661. "aiotool.net",
  662. "jamber.info",
  663. "megaftp.com",
  664. "desiupload.net",
  665. "file27.com",
  666. "yastorage.com",
  667. "filehost.ws",
  668. "copyload.com",
  669. "venusfile.com",
  670. "aieshare.com",
  671. "terafile.co",
  672. "terafile.com",
  673. "fileza.net",
  674. "filerose.com",
  675. "squillion.com",
  676. "fileprohost.com",
  677. "bitbonus.com",
  678. "warserver.cz",
  679. "uload.to",
  680. "sharedbit.net",
  681. "megaload.it",
  682. "filewinds.com",
  683. "uploadcore.com",
  684. "syfiles.com",
  685. "eyesfile.com",
  686. "hotfile.com",
  687. "superupl.com",
  688. "oteupload.com",
  689. "henchfile.com",
  690. "filegag.com",
  691. "HenchFile.com",
  692. "filedefend.com",
  693. "share-rapid.com|rapids.cz|share-credit.cz|share-central.cz|share-ms.cz|share-net.cz|srapid.cz|share-rapid.cz",
  694. "megabitshare.com",
  695. "cloudzer.com",
  696. "asfile.com",
  697. "cloudzer.net",
  698. "clz.to",
  699. "extabit.com",
  700. "247upload.com",
  701. "2download.de",
  702. "4fastfile.com",
  703. "asixfiles.com",
  704. "berofile.com",
  705. "bigupload.com",
  706. "cepzo.com",
  707. "clouds.to",
  708. "cobrashare.sk",
  709. "coraldrive.net",
  710. "cyberlocker.ch",
  711. "czshare.com",
  712. "darkport.org",
  713. "dark-uploads.com",
  714. "davvas.com",
  715. "enigmashare.com",
  716. "erofly.cz",
  717. "fastsonic.net",
  718. "filebox.com",
  719. "filecity.net",
  720. "filedap.com",
  721. "filedino.com",
  722. "filedownloads.org",
  723. "filefolks.com",
  724. "fileking.co",
  725. "filemates.com",
  726. "files.to",
  727. "files2k.eu",
  728. "filesector.cc",
  729. "bitshare.com",
  730. "filesega.com",
  731. "filesend.net",
  732. "filestay.com",
  733. "filestrum.com",
  734. "fileuplo.de",
  735. "fileupup.com",
  736. "forunesia.com",
  737. "freeuploads.fr",
  738. "uploa.dk",
  739. "getthebit.com",
  740. "getzilla.net",
  741. "goldfile.eu",
  742. "good.com",
  743. "grupload.com",
  744. "hellfile.com",
  745. "hipfile.com",
  746. "hitfile.com",
  747. "hulkfile.eu|duckfile.net",
  748. "i-filez.com",
  749. "ifile.ws",
  750. "kupload.org",
  751. "packupload.com",
  752. "lemuploads.com",
  753. "limelinx.com",
  754. "maxshare.pl",
  755. "megarelease.org",
  756. "megashare.com",
  757. "minus.com",
  758. "mlfat4arab.com",
  759. "multishare.cz",
  760. "nirafile.com",
  761. "ok2upload.com",
  762. "peejeshare.com",
  763. "premiuns.org",
  764. "przeklej.net",
  765. "qkup.net",
  766. "rapidupload.sk",
  767. "rockdizfile.com",
  768. "rocketfile.net",
  769. "share-now.net",
  770. "share76.com",
  771. "sharebees.com",
  772. "sharefiles.co",
  773. "slingfile.com",
  774. "sms4file.com",
  775. "space4file.com",
  776. "tigershare.net",
  777. "toucansharing.com",
  778. "ubuntuone.com",
  779. "unextfiles.com",
  780. "upaj.pl",
  781. "upfile.biz",
  782. "uploadbin.net",
  783. "uploadic.com",
  784. "uploadinc.com",
  785. "uploading4u.eu",
  786. "uploadjet.net",
  787. "uploadorb.com",
  788. "upthe.net",
  789. "uptorch.com",
  790. "vidbox.yt",
  791. "videozer.com",
  792. "vreer.com",
  793. "wallobit.com",
  794. "zooupload.com",
  795. "privatefiles.com",
  796. "xerver.co",
  797. "BillionUploads.com",
  798. "rapidshare.com",
  799. "rapidshare.ru",
  800. "4savefile.com",
  801. "bayfiles.com",
  802. "bayfiles.net",
  803. "dodane.pl",
  804. "dotsemper.com",
  805. "egofiles.com",
  806. "epicshare.net",
  807. "fiberupload.net",
  808. "filemonkey.in",
  809. "filemonster.net",
  810. "filepom.com",
  811. "filesbb.com",
  812. "fileshareup.com",
  813. "filevice.com",
  814. "gigaup.fr",
  815. "isavelink.com",
  816. "loombo.com",
  817. "megafiles.se",
  818. "migupload.com",
  819. "mydisc.net",
  820. "nitrobits.com",
  821. "potload.com",
  822. "redload.net",
  823. "shareprofi.com",
  824. "sharesuper.info",
  825. "sinhro.net",
  826. "speedfile.cz",
  827. "speedshare.org",
  828. "storage.novoro.net",
  829. "swankshare.com",
  830. "swatupload.com",
  831. "upafile.com",
  832. "uploadmachine.com",
  833. "uploadsat.com",
  834. "upshared.com",
  835. "usefile.com",
  836. "yourfiles.to",
  837. "zomgupload.com",
  838. "ultramegabit.com",
  839. "uploadto.us",
  840. "inafile.com",
  841. "megairon.net",
  842.  
  843. ];
  844. ///////////////////////////////////////////////////////////////////////////////////////
  845. var firstRun = GM_getValue("First_run", true);
  846.  
  847. var chromeBrowser = /chrom(e|ium)/.test(navigator.userAgent.toLowerCase());
  848. //////////////////////////////////////////////////////////////////////////////////////
  849. try
  850. {
  851. var thisVersion = GM_info.script.version; //not supported in Scriptish and others
  852. var last_known_version = GM_getValue("last_known_version", "");
  853. if (!last_known_version)
  854. {
  855. last_known_version = thisVersion;
  856. GM_setValue("last_known_version", last_known_version);
  857. }
  858. //var newVersion = !(thisVersion == last_known_version);
  859. var newVersion = !(a.replace(/^(\d+\.\d+\.\d+).*/,'$1') == b.replace(/^(\d+\.\d+\.\d+).*/,'$1')); //true only if one of the first three numbers differs
  860. GM_setValue("last_known_version", thisVersion);
  861. }
  862. catch (err)
  863. {
  864. var newVersion = false;
  865. }
  866.  
  867. var now = (new Date()).getTime();
  868. var last_custom_rules_nag = GM_getValue('last_custom_rules_nag', 0);
  869. if (!last_custom_rules_nag)
  870. {
  871. last_custom_rules_nag = now;
  872. GM_setValue('last_custom_rules_nag', ''+now);
  873. }
  874.  
  875.  
  876. allHostNames.sort();
  877. allContainerNames.sort();
  878. allObsoleteNames.sort();
  879.  
  880. var RAND_STRING = "8QyvpOSsRG3QWq";
  881. var DEBUG_MODE = false;
  882.  
  883. var TOOLTIP_MAXWIDTH = 600; //in pixels
  884. var TOOLTIP_THUMBWIDTH = 200;
  885. var containers_processed = false;
  886.  
  887. //settings for keyboard functions start
  888. var CHECK_ALL_LINKS_KEY = "A";
  889. var CONFIGURATION_KEY = "C";
  890. var copy_to_dead_key = "D";
  891. var toggle_autocheck_key = "W";
  892. var toggle_Enable_Anonymizer_key = "Z";
  893. var first_key_keycode = '17'; // 18=ALT 16=Shift 17=Ctrl 32=SPACE_BAR 9=TAB
  894. var first_key_keycodename = 'CTRL';
  895. var second_key_keycode = '18';
  896. var second_key_keycodename = 'ALT';
  897. var CHECK_ALL_LINKS_KEYCODE = CHECK_ALL_LINKS_KEY.charCodeAt(0);
  898. var CONFIGURATION_KEYCODE = CONFIGURATION_KEY.charCodeAt(0);
  899. var copy_to_dead_keycode = copy_to_dead_key.charCodeAt(0);
  900. var toggle_autocheck_keycode = toggle_autocheck_key.charCodeAt(0);
  901. var toggle_Enable_Anonymizer_keycode = toggle_Enable_Anonymizer_key.charCodeAt(0);
  902. //settings for keyboard functions end
  903.  
  904. //global settings start
  905. var Show_black_background_in_DL_links, Show_line_through_in_dead_links, Color_DL_links;
  906. var Live_links_color, Dead_links_color, Temp_unavailable_links_color, Premium_links_color, Ref_anonymize_service;
  907. var Do_not_linkify_DL_links, Keyboard_functions, Autocheck, Enable_Anonymizer;
  908. var Show_progress_stats, Display_tooltip_info, Icon_set;
  909. var Progress_box_pos_bottom, Progress_box_pos_right, Progress_box_opacity, Progress_box_background_color, Progress_box_item_color;
  910. var Progress_box_refresh_rate;
  911. var Obsolete_file_hosts;
  912. var Custom_rules, Custom_rules_text;
  913.  
  914. var messageBox = document.createElement('b'); // top-left message box
  915.  
  916. var cLinksTotal = 0;
  917. var cLinksDead = 0;
  918. var cLinksAlive = 0;
  919. var cLinksUnava = 0;
  920. var cLinksprem = 0;
  921. var cLinksProcessed = 0;
  922.  
  923. var intervalId; //for updateProgress()
  924.  
  925. //icon resources
  926. 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/Pf14L7iJIEyXYFHBPjgwsz0TKU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e6lUua7JDzNEtceATGoWWHx3a7wu359EzF+tjHfPjYS6kQed2UD3AESEvwMAaQGsQMrwcN0AAAAASUVORK5CYII=';
  935.  
  936. var NEW_ICON_GREEN = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACGklEQVR42mNkIBcwMWQwsDMrMZKhlZmRi2mCWYtE9st1bx+SagAPlwTLCt+pot6vrv/8t7/mnQcpBsjI6jNvDp4uZvDuMw/D8uA7U39/+Z9DrAGG5r5Mmz06pKQ//BVnWJl89daL0z8MgeLfiDHAN6SAaZlhjjzP+x8SDAcX3P1zuueVDVD8JEiSkVOcZbWAJKPi8wu/q4H8nSgBzcyQl9jN1ifvp8z8+acQw50brxk2Rd1u+fvzfy1MDaN7DOO7ohnSgqe2Pf0/rYJh1/N7/0uB4tdYuRknJMzgzZYyV2L89pub4c3Xbwwb4q+de3/9pwVQ/jfcAGYWhrJ5x207ZdSFGB59Ockwb+L3vydX/7oRPYFPW05DnuHbb1aGD79+MRyZev/H9TlvTIB6riK7EhQGbNr2rJe714eq/fjLwPD8x22GO5/eM/CzijN8BdoD0nz3/FuG/an3Sv7/ZehFDyBYIHplzFHcYullyPjp13eGj79/MHwEagRpfvPpB8OuuJsHvz785QRU9w+XAQwCMkyby3aZ+/xj5YBr/vDzD8OpngefHq55rw9U8gBbFCFHo4pljvAV60x19o+/fgMN+cNw79h7hjNFD5IZ/jPMwxXHKOmAmYOxPWCNWgWzKBfDm7c/GY4m3Nr089Uff3yJBD0h8Ug68tzQbVCUvtD66PWrXR91gWIvSTEABOw5pNlKfjz91QNkHySUTAGg7t0uvj1ytQAAAABJRU5ErkJggg==';
  937. var NEW_ICON_RED = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAA6klEQVQ4jbWTwWrCQBRFz6Rxnay6iuAXlJIg+BHZZR/d6++4t/5MpRQRf8CCrurGrDP6uumESTol04J3dbmPd7hvYBTAG5QB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hPI+ZU4GNDotZW0HAzYDSVcSHmDeAyXbXOtsq3QAIsd2020VlRXBYEYdsThSCsdeZlEkhYoBUqBJOioaV0V8YWLgU+Ew3OUllo4jgd4D+4AtYdsc7/DVQOMxSNW5cNClGD+Fu41dOZlKDMLmELrOUIhjeN48HpngTnMbDeWjIeHnsvbz98YXqxguumuazdDOs0HjAETRKNjuFyzTE9PAOO//Xm27lvN4b1c8htkAXC2jrKHN5gVSRcRW0SCIpIj/f2ZAkhTkykiOYu+SLa8e6qkeRNXALh5nEc/phARnaSJSSUnO5G+B8tnIkr6rjMTSqfMZQXZ9vE1xGKJpPe4DDjXAYkEjAwmzwwDLIv0NZlE1MYAjsQoAOL8C5rY2AxPlIjwP/wcACKn3tWfrwJ4AAAAAElFTkSuQmCC';
  939. var NEW_ICON_PINK = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABUklEQVQ4jY3TsUuWURQG8F8WEvFNDREfIg5RURAOIeL0DhJBS0tDY9BQQ0Oj29kiIvoDhBpFQRTUD1GKi0sRtEs0SEQ0RBQIRcVXw3eF6+vrWwcunPvc53nuPffcS0uEmA0x38Y5cohwGjOYxBBe4VGI3j8NQlzHYhaW0cfNEAslWCfBw4yvYhkv8hjCgxD7yMdquw/jbJ4+xq2cz+AKdrJRv9EAv/EDx3Ft75QhtrHdcFpHy0mS/lSqcVzAFM7he6XaTNLXJoOmS+ziOc4XcB893A3xodUgm5zAHdzHSLH0DhdD/GwsoSjlV5Je5nK+YQUTOInXSXq7x6134RQuo4unGf6Me7iKMxgrNfUuXMJazr8U+DA6Of/UZrCF9xjFM3zELpZwOptulIKmLlQGNXdqS7u4EWK9BA9cYpJ2KtWcwaMazcInuB3iTZ3fGv/znf8CBMxX4hrPUbUAAAAASUVORK5CYII=';
  940.  
  941. //global settings end
  942. if (window.opera && !window.console)
  943. {
  944. window.console = {};
  945.  
  946. function fn()
  947. {
  948. opera.postError(arguments);
  949. };
  950. ['log', 'debug', 'info', 'warn', 'error', 'assert', 'dir', 'dirxml', 'group', 'groupEnd', 'time', 'timeEnd', 'count', 'trace', 'profile', 'profileEnd'].forEach(function (name)
  951. {
  952. window.console[name] = fn;
  953. });
  954. }
  955.  
  956. //displays colored text in message box
  957. function sendMessage(text, color)
  958. {
  959. var msgDiv = document.createElement('div');
  960. msgDiv.style.color = color;
  961. msgDiv.innerHTML = text;
  962. messageBox.appendChild(msgDiv);
  963. setTimeout(function(){messageBox.removeChild(msgDiv)}, 3000);
  964. }
  965.  
  966. function linkify(totalourls)
  967. { // code from http://userscripts.org/scripts/review/2254 Linkify ting
  968. var ikkeTilladteTags;
  969. var allLinksRegex = "(?:http:\/\/.+?\\?)?(?:https?:\/\/)?"
  970. + "[0-9A-Za-z]+(?:[\\.-][0-9A-Za-z]+)*\\.[A-Za-z]+/" //instead of totalourls
  971. + "[\\w\\–\\-\\.+$!*\\/()\\[\\]\',~%?:@#&=\\\\\\—;…×Ã\\_\\u0080-\\u03FF’‘" + (Allow_spaces_in_DL_links ? "\\u0020" : "") + "]*";
  972. allLinksRegex = new RegExp(allLinksRegex, "g");
  973. var regexy = "^(?:http:\/\/.+?\\?)?(?:https?:\/\/)?(?:www\\.)?(?:" + totalourls + ")";
  974.  
  975. if (Do_not_linkify_DL_links)
  976. ikkeTilladteTags = ['a', 'head', 'script', 'style', 'title', 'option', 'iframe', 'textarea', 'span']; //tags, hvor det der stAΞ’Β¥r inden i ikke skal vAΞ’Β¦re links
  977. else
  978. ikkeTilladteTags = ['a', 'head', 'script', 'style', 'title', 'option', 'iframe', 'textarea']; //tags, hvor det der stAΞ’Β¥r inden i ikke skal vAΞ’Β¦re links
  979.  
  980. var regex = new RegExp(regexy);
  981. var textNode, muligtLink;
  982.  
  983. var path = "//text()[not(parent::" + ikkeTilladteTags.join(" or parent::") + ") and contains(.,'/')]";
  984. var textNodes = document.evaluate(path, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  985.  
  986. var i = textNodes.snapshotLength;
  987. while (i--)
  988. {
  989. textNode = textNodes.snapshotItem(i);
  990.  
  991. muligtLink = textNode.nodeValue; //all links on page
  992.  
  993. var myArray = null;
  994. var span = null;
  995. var lastLastIndex = 0;
  996. allLinksRegex.lastIndex = 0;
  997. if (/^https?:\/\/~[\w\s\~]*\//.test(muligtLink))
  998. {
  999. if (textNode.parentNode.className == "adead_link") continue;
  1000. var censoredLink = muligtLink;
  1001. var span = document.createElement('span');
  1002. span.className = "adead_link";
  1003. $(span).attr('warlc_error', "Cause of error: <b>Censored link.</b>");
  1004. $(span).html(censoredLink);
  1005. span.addEventListener("mouseover", displayTooltipError, false);
  1006. cLinksTotal++; cLinksProcessed++; cLinksDead++;
  1007. textNode.parentNode.replaceChild(span, textNode);
  1008. continue;
  1009. alert(censoredLink);
  1010. }
  1011. while (myArray = allLinksRegex.exec(muligtLink)) //find all links
  1012. {
  1013. if (!regex.test(myArray[0])) //this link is not recognized
  1014. {
  1015.  
  1016. continue;
  1017. }
  1018. if (!span)
  1019. span = document.createElement('span');
  1020.  
  1021. var link = myArray[0];
  1022. span.appendChild(document.createTextNode(muligtLink.substring(lastLastIndex, myArray.index))); //inds?t det der kommer for dette hit
  1023.  
  1024. var $a = $("<a>" + link + "</a>")
  1025. if (!link.match(/https?:\/\//))
  1026. {
  1027. link = 'http://' + link;
  1028. }
  1029.  
  1030. $a.attr("href", link.replace(/\[\/hide:\w+\]/,""))
  1031. .addClass("processing_link")
  1032. .appendTo(span);
  1033. lastLastIndex = allLinksRegex.lastIndex;
  1034. }
  1035. if (span)
  1036. {
  1037. span.appendChild(document.createTextNode(muligtLink.substring(lastLastIndex))); //ins?t det der kommer efter sidste hit
  1038. textNode.parentNode.replaceChild(span, textNode);
  1039. }
  1040. }
  1041. }
  1042.  
  1043. function add_WARLC_style()
  1044. {
  1045. if (!(document.getElementsByTagName('WARLC')[0]))
  1046. {
  1047. var meta_not_to_add_more_style = document.createElement("WARLC");
  1048. meta_not_to_add_more_style.setAttribute('content', 'war_links_checker');
  1049. meta_not_to_add_more_style.setAttribute('name', 'description');
  1050. document.getElementsByTagName('head')[0].appendChild(meta_not_to_add_more_style);
  1051. alive_link_png = "";
  1052. adead_link_png = "";
  1053. unava_link_png = "";
  1054. prem_link_png = "";
  1055. switch(Icon_set)
  1056. {
  1057. //no icons
  1058. case 0: break;
  1059. // cat paws
  1060. case 1: alive_link_png = PAW_ICON_GREEN;
  1061. adead_link_png = PAW_ICON_RED;
  1062. unava_link_png = PAW_ICON_YELLOW;
  1063. prem_link_png = PAW_ICON_PINK;
  1064. break;
  1065. // classic RSLC look
  1066. case 2: alive_link_png = RSLC_ICON_GREEN;
  1067. adead_link_png = RSLC_ICON_RED;
  1068. unava_link_png = RSLC_ICON_YELLOW;
  1069. prem_link_png = RSLC_ICON_PINK;
  1070. break;
  1071. // New Icons
  1072. case 3: alive_link_png = NEW_ICON_GREEN;
  1073. adead_link_png = NEW_ICON_RED;
  1074. unava_link_png = NEW_ICON_YELLOW;
  1075. prem_link_png = NEW_ICON_PINK;
  1076. break;
  1077. // cat paws
  1078. default:alive_link_png = PAW_ICON_GREEN;
  1079. adead_link_png = PAW_ICON_RED;
  1080. unava_link_png = PAW_ICON_YELLOW;
  1081. prem_link_png = PAW_ICON_PINK;
  1082. break;
  1083. }
  1084. processing_link_gif = 'data:image/gif;base64,' + // or temporary anavailable
  1085. 'R0lGODlhCgAKAJEDAMzMzP9mZv8AAP///yH/C05FVFNDQVBFMi4wAwEAAAAh+QQFAAADACwAAAAACgAKAAACF5wncgaAGgJzJ647cWua4sOBFEd62VEAACH5BAUAAAMALAEAAAAIAAMAAAIKnBM2IoMDAFMQFAAh+QQFAAADACwAAAAABgAGAAACDJwHMBGofKIRItJYAAAh+QQFAAADACwAAAEAAwAIAAACChxgOBPBvpYQYxYAIfkEBQAAAwAsAAAEAAYABgAAAgoEhmPJHOGgEGwWACH5BAUAAAMALAEABwAIAAMAAAIKBIYjYhOhRHqpAAAh+QQFAAADACwEAAQABgAGAAACDJwncqi7EQYAA0p6CgAh+QQJAAADACwHAAEAAwAIAAACCpRmoxoxvQAYchQAOw%3D%3D';
  1086.  
  1087. var dead_color_css, live_color_css, unava_color_css, prem_color_css, black_background_css;
  1088.  
  1089. if (Color_DL_links)
  1090. {
  1091. dead_color_css = 'color:' + Dead_links_color + ' !important;';
  1092. live_color_css = 'color:' + Live_links_color + ' !important;';
  1093. unava_color_css = 'color:' + Temp_unavailable_links_color + ' !important;';
  1094. container_color_css = 'color:' + Container_links_color + ' !important;';
  1095. prem_color_css = 'color:' + Premium_links_color + ' !important;';
  1096. }
  1097. else
  1098. {
  1099. dead_color_css = live_color_css = unava_color_css = container_color_css = prem_color_css = '';
  1100. }
  1101.  
  1102. if (Show_black_background_in_DL_links)
  1103. {
  1104. black_background_css = 'background-color: black !important;';
  1105. }
  1106. else
  1107. {
  1108. black_background_css = '';
  1109. }
  1110.  
  1111. if (Show_line_through_in_dead_links)
  1112. {
  1113. line_through_css = 'text-decoration: line-through !important;';
  1114. }
  1115. else
  1116. {
  1117. line_through_css = '';
  1118. }
  1119.  
  1120. GM_addStyle(".alive_link {background:transparent url(" + alive_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;" + live_color_css + black_background_css + "}");
  1121. 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 + "}");
  1122. GM_addStyle(".unava_link {background:transparent url(" + unava_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;" + unava_color_css + black_background_css + "}");
  1123. GM_addStyle(".processing_link {background:transparent url(" + processing_link_gif + ") no-repeat scroll 100% 50%;padding-right:15px;" + container_color_css + black_background_css + "}");
  1124. GM_addStyle(".container_link {background:transparent url(" + processing_link_gif + ") no-repeat scroll 100% 50%;padding-right:15px;" + container_color_css + black_background_css + "}");
  1125. GM_addStyle(".container_list {font-size:90%; list-style-type:square; padding: 0px 5% 0px; margin: 0px}");
  1126. GM_addStyle(".prem_link {background:transparent url(" + prem_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;" + prem_color_css + black_background_css + "}");
  1127. }
  1128. }
  1129.  
  1130. var warlcTooltip = null;
  1131. var mouseoverLink = null; //link href with mouse cursor over it
  1132.  
  1133. var lastX = 0;
  1134. var lastY = 0;
  1135.  
  1136. $(document).ready(initTooltip);
  1137. //inits tooltip
  1138. function initTooltip()
  1139. { warlcTooltip = document.createElement("div");
  1140. 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;");
  1141. warlcTooltip.style.visibility = "hidden";
  1142. document.body.appendChild(warlcTooltip);
  1143. }
  1144.  
  1145. //"mousemove" event handler for all links
  1146. function moveTooltip(event)
  1147. {
  1148. if ((Math.abs(lastX - event.clientX) + Math.abs(lastY - event.clientY)) < 6)
  1149. { //no need to reflow if the cursor moved just a little
  1150. return;
  1151. }
  1152. else
  1153. {
  1154. lastX = event.clientX;
  1155. lastY = event.clientY;
  1156. }
  1157.  
  1158. posX = event.clientX + window.pageXOffset + 10;
  1159. posY = event.clientY + window.pageYOffset;
  1160. var ttHeight = warlcTooltip.offsetHeight;
  1161. var ttFreeSpace = window.innerHeight - event.clientY;
  1162. if (ttHeight > ttFreeSpace)
  1163. { //prevents tooltip from getting out of the window
  1164. posY -= (ttHeight - (ttFreeSpace)) + 10;
  1165. }
  1166. else
  1167. {
  1168. posY += 7;
  1169. }
  1170. warlcTooltip.style.top = posY + "px";
  1171. warlcTooltip.style.left = posX + "px";
  1172. }
  1173.  
  1174. //"mouseout" event handler for all links
  1175. function hideTooltip(){
  1176. warlcTooltip.style.visibility = "hidden";
  1177. mouseoverLink = null;
  1178. }
  1179.  
  1180.  
  1181. //"mouseover" event handler for dead links
  1182. //displays tooltip error message on dead links
  1183. function displayTooltipError()
  1184. {
  1185. mouseoverLink = this.href;
  1186. this.addEventListener("mouseout", hideTooltip);
  1187. this.addEventListener("mousemove", function(event) { moveTooltip(event); });
  1188. warlcTooltip.innerHTML = '<b>LOADING...</b>';
  1189. warlcTooltip.style.minWidth = 0;
  1190. warlcTooltip.style.visibility = "visible";
  1191. if (this.warlc_error) //an error message is already known and stored in warlc_error attribute
  1192. {
  1193. warlcTooltip.innerHTML = this.warlc_error;
  1194. }
  1195. else
  1196. {
  1197. loadErrorInfo(this);
  1198. }
  1199. function loadErrorInfo(link)
  1200. {
  1201. var href = link.href;
  1202. href = href.replace(/quickshare\.cz\/.+/, "quickshare.cz/chyba");
  1203. GM_xmlhttpRequest({
  1204. method: 'GET',
  1205. url: href.replace(Ref_anonymize_service, ""),
  1206. headers: {
  1207. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1208. 'Accept': 'text/xml',
  1209. 'Referer': ""
  1210. },
  1211. onload: function(result) {
  1212. var res = result.responseText;
  1213. //TODO: errorRegexs -
  1214. var errorRegexs = [ //generic error messages follow
  1215. /(empty directory)/i,
  1216. /(soubor nebyl nalezen)/i,
  1217. /((?:file|page|link|folder)(?:is|not|does|has been|was| ){1,}(?:found|available|blocked|exists?|deleted|removed))/i,
  1218. //server specific error messages follow
  1219. /msg error" style="cursor: default">(.+?)<\/div>/, //sendspace
  1220. /color:red;font\-weight:bold;border\-style:dashed;font-size:12px;border\-width:2px;><tr><td align=center>(.+?)<\/td>/, //fastshare
  1221. /(Takový soubor neexistuje. Je možné, že byl již smazán.)/, //quickshare
  1222. /file_info file_info_deleted">\s*<h1>(.+?)<\/h1>/, //filepost
  1223. /<br \/>\s*<p style="color:#000">(.+?)<\/p>\s*<\/center>/, //letitbit
  1224. /(?:error_div">|<\/h1><p>)<strong>(.+?)<\/strong>/, //share-rapid,quickshare
  1225. /class="red">(.+?)<(?:span|br)>/, //czshare, megashares
  1226. /class="wp640">\s*<h1 class="h1">(.+?)<\/h1>/, //uloz.to
  1227. /not-found">\s*<p>(.+?)<\/p>/, //bayfiles
  1228. /(Your file could not be found. Please check the download link.)/, //stahnu.to
  1229. /error_msg">\s*(<h3>.+?<\/h3><ul>(.+?)<\/ul>)/, //edisk
  1230. /id="obsah">\s*<h2>(.+?)<\/h2>/, //euroshare
  1231. /error">\s*(?:<[bp]>)?\s*(.+?)<\/[bp]>/, //filesmonster, shragle, gigapeta
  1232. ///center aC">\s*<h1>(.+?)<br \/>/, //uploaded.to
  1233. /icon_err">\s*<h1>(.+?)<\/h1>/, //filejungle
  1234. // /Code: ER_NFF_\d+<\/h2>\s*(.+?)\s*<\/div>/, //netload
  1235. /(File has been removed due to Copyright Claim)/, //filerio
  1236. ];
  1237. var errorIdx = errorRegexs.length;
  1238. var error = "Cause of error: <b>unknown</b>";
  1239. var errorCandidate = "";
  1240. while(errorIdx--)
  1241. {
  1242. var errorCandidate = res.match(errorRegexs[errorIdx]);
  1243. if (errorCandidate != null)
  1244. {
  1245. error = "Cause of error: <b>" + errorCandidate[1].replace(/&nbsp;/g," ") + "</b>";
  1246. break;
  1247. }
  1248. }
  1249. //link attributes
  1250. link.warlc_error = error;
  1251. if (mouseoverLink == link.href) //mouse cursor is still over the link
  1252. {
  1253. warlcTooltip.innerHTML = error;
  1254. }
  1255. }
  1256. });
  1257. }
  1258. }
  1259.  
  1260. //"mouseover" event handler for alive links
  1261. //displays tooltip info (file size, file name,...) on alive links
  1262. function displayTooltipInfo()
  1263. {
  1264. mouseoverLink = this.href;
  1265. //exclude direct download filehostings
  1266. 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)/))
  1267. {
  1268. return;
  1269. }
  1270. this.addEventListener("mouseout", hideTooltip);
  1271. this.addEventListener("mousemove", function(event) { moveTooltip(event); });
  1272. warlcTooltip.innerHTML = '<b>LOADING...</b>';
  1273. warlcTooltip.style.minWidth = 0;
  1274. warlcTooltip.style.visibility = "visible";
  1275. if (this.warlc_tooltipcache) //file size is already known and stored in warlc_filename and warlc_filesize attributes
  1276. {
  1277. warlcTooltip.innerHTML = this.warlc_tooltipcache;
  1278. }
  1279. else
  1280. {
  1281. loadInfo(this);
  1282. }
  1283. function loadInfo(link)
  1284. {
  1285. var href = link.href;
  1286. GM_xmlhttpRequest({
  1287. method: 'GET',
  1288. url: href.replace(Ref_anonymize_service, ""),
  1289. headers: {
  1290. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1291. 'Accept': 'text/xml',
  1292. 'Referer': ""
  1293. },
  1294. onload: function(result) {
  1295. var res = result.responseText;
  1296. var nameRegexs = [ /Filename: <b class="f_arial f_14px">(.+?)<\/b>/, //oron
  1297. /(?:finfo|file[-_]?name)">\s*(.+?)<\/?(?:h1|a|div|span style|td)/, //hellshare, netload, badongo, 4fastfile
  1298. /fl" title="(.+?)">/, //edisk
  1299. /<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
  1300. /<h3>Stahujete soubor: <\/h3>\s*<div class="textbox">(.+?)<\/div>/, //webshare
  1301. /<h3><b><span style=color:black;>(.+?)<\/b><\/h3><br>/, //fastshare
  1302. /title="download (.+?)">/, //sendspace
  1303. /Stáhnout soubor: (.+?)<\/h1>/, //quickshare
  1304. /fz24">Download:\s*<strong>(.+?)<\/strong>/, //crocko
  1305. // /'file\-icon\d+ \w+'>(?:<\/span><span>)?(.+?)<\/span>/, //hitfile, turbobit
  1306. /d0FileName = "(.+?)";/, //letitbit
  1307. /file(?:_name|-info)" title="">\w+: <span>(.+?)<\/span>/, //vip-file, shareflare
  1308. /recent-comments"><h2>(.+) &nbsp;/, //xdisk
  1309. /fname" value="(.+?)">/, //syfiles, grupload,
  1310. /download\-header">\s*<h2>File:<\/h2>\s*<p title="(.+?)">/, //bayfiles
  1311. /description">\s*<p><b>Soubor: (.+?)<\/b>/, //bezvadata
  1312. /Complete name : (.+?)<br \/>/, //bezvadata
  1313. /itemprop="name">(.+?)<\/span>/, //bezvadata
  1314. ];
  1315. var nameIdx = nameRegexs.length;
  1316. // [sizeRegexs]
  1317. // / \ \?
  1318. // prefix (size) postfix
  1319. // / \
  1320. // val quant
  1321. var quantRegex = '(?:M|G|K)?i?(?:B)(?:[y|i]te?s?)?';
  1322. var valRegex = '\\d+(?:[\\., ]\\d+){0,2}'; // 111([., ]222)?([., ]333)?
  1323. var uniSizeRegex = valRegex + '(?:\\s*|&nbsp;)' + quantRegex;
  1324. var preSizeRegex = '(?::|\\(|>|>, | - )';
  1325. var postSizeRegex = '(?:\\))?';
  1326. var sizeRegexs = [ preSizeRegex + "\\s*(" + uniSizeRegex + ")\\s*" + postSizeRegex,
  1327. 'FileSize_master">(.+?)<\/strong>', //hellshare
  1328. ];
  1329. var sizeIdx = sizeRegexs.length;
  1330. //
  1331. //
  1332. var tooltip = "File Name: <b>";
  1333. var fileName = "unknown";
  1334. var nameCandidate = "";
  1335. while(nameIdx--)
  1336. {
  1337. var nameCandidate = res.match(nameRegexs[nameIdx]);
  1338. if (nameCandidate != null)
  1339. {
  1340. fileName = nameCandidate[1].replace(/&nbsp;/g," ");
  1341. break;
  1342. }
  1343. }
  1344. tooltip += fileName + "</b><br>File Size: <b>";
  1345. var fileSize = "unknown";
  1346. var sizeCandidate = "";
  1347. while(sizeIdx--)
  1348. {
  1349. sizeCandidate = res.match(new RegExp(sizeRegexs[sizeIdx], "i"));
  1350. if (sizeCandidate != null)
  1351. {
  1352. fileSize = sizeCandidate[1].replace(/&nbsp;/g," ");
  1353. if (/^\d+$/.test(fileSize) && fileSize >= 1024) //assume bytes
  1354. {
  1355. if(fileSize > (1<<30)) fileSize = Math.round(10 * fileSize / (1<<30)) / 10 + ' GB';
  1356. else if(fileSize > (1<<20)) fileSize = Math.round(fileSize / (1<<20)) + ' MB';
  1357. else fileSize = Math.round(fileSize / 1024) + ' KB';
  1358. }
  1359. break;
  1360. }
  1361. }
  1362. tooltip += fileSize + "</b>";
  1363. // PROTOTYPE
  1364. // video thumbnails
  1365. if (href.match('hellshare'))
  1366. {
  1367. var thumbs;
  1368. thumbs = res.match(/http:\/\/static\d+\.helldata\.com\/thumbs(?:\/\d+){1,2}\/\d{1,2}"/g);
  1369. if (thumbs)
  1370. {
  1371. tooltip += '<br>';
  1372. var j = Math.min(thumbs.length, 9);
  1373. for (var i = 0; i < j; i++)
  1374. {
  1375. tooltip += '<img src="' + thumbs[i].replace('"',"") + '" width="' + TOOLTIP_THUMBWIDTH + 'px">';
  1376. }
  1377. warlcTooltip.style.minWidth = TOOLTIP_MAXWIDTH;
  1378. }
  1379. }
  1380. if (href.match('czshare'))
  1381. {
  1382. var thumbs;
  1383. thumbs = res.match(/src="http:\/\/www(\d+)\.czshare\.com\/images_velke\/\d+\.(\d+)\.jpeg/);
  1384. if (thumbs)
  1385. {
  1386. var thumbsServer = thumbs[1];
  1387. var thumbsId = thumbs[2];
  1388. tooltip += '<br>';
  1389. for (var i = 1; i < 9; i++)
  1390. {
  1391. tooltip += '<img src="http://www' + thumbsServer + '.czshare.com/images_velke/' + i + '.' + thumbsId + '.jpeg" width="' + TOOLTIP_THUMBWIDTH + 'px">';
  1392. }
  1393. warlcTooltip.style.minWidth = TOOLTIP_MAXWIDTH;
  1394. }
  1395. }
  1396. if (href.match('bezvadata'))
  1397. {
  1398. var thumbs;
  1399. thumbs = res.match(/http:\/\/nahledy\.bezvadata\.cz\/nahledy\/\d+\/\d+\/\d+_\d+_\d+x\d+_\w.jpg/g);
  1400. if (thumbs)
  1401. {
  1402. tooltip += '<br>';
  1403. var j = Math.min(thumbs.length, 9);
  1404. for (var i = 0; i < j; i++)
  1405. {
  1406. tooltip += '<img src="' + thumbs[i] + '" width="' + TOOLTIP_THUMBWIDTH + 'px">';
  1407. }
  1408. warlcTooltip.style.minWidth = TOOLTIP_MAXWIDTH;
  1409. }
  1410. }
  1411. link.warlc_tooltipcache = tooltip;
  1412. if (mouseoverLink == link.href) //mouse cursor is still over the link
  1413. {
  1414. warlcTooltip.innerHTML = tooltip;
  1415. }
  1416. }
  1417. });
  1418. }
  1419. }
  1420.  
  1421. function setVariables()
  1422. {
  1423. if (firstRun)
  1424. {
  1425. GM_log('First run, applying default settings...');
  1426. GM_setValue("Icon_set",1);
  1427. GM_setValue("Display_tooltip_info",true);
  1428. GM_setValue("Show_black_background_in_DL_links",false);
  1429. GM_setValue("Show_line_through_in_dead_links",false);
  1430. GM_setValue("Display_full_links_in_link_containers",false);
  1431. GM_setValue("Allow_spaces_in_DL_links",false);
  1432. GM_setValue("Autocheck",true);
  1433. GM_setValue("Enable_Anonymizer",false);
  1434. GM_setValue("Do_not_linkify_DL_links",false);
  1435. GM_setValue("Show_progress_stats",true);
  1436. GM_setValue("Keyboard_functions",true);
  1437. GM_setValue("Obsolete_file_hosts",false);
  1438. GM_setValue("Color_DL_links",true);
  1439. GM_setValue("Live_links_color","Green");
  1440. GM_setValue("Dead_links_color","#FF3300");
  1441. GM_setValue("Temp_unavailable_links_color","#F7EF09");
  1442. GM_setValue("Container_links_color","DarkKhaki");
  1443. GM_setValue("Premium_links_color","DeepPink");
  1444. GM_setValue("Ref_anonymize_service","http://hiderefer.com/?");
  1445. GM_setValue("Custom_rules",false);
  1446. GM_setValue("Custom_rules_text","");
  1447. GM_setValue("First_run", false);
  1448. }
  1449. //hidden settings
  1450. GM_setValue("Progress_box_pos_bottom", Progress_box_pos_bottom = GM_getValue("Progress_box_pos_bottom", 20));
  1451. GM_setValue("Progress_box_pos_right", Progress_box_pos_right = GM_getValue("Progress_box_pos_right", 10));
  1452. GM_setValue("Progress_box_opacity", Progress_box_opacity = GM_getValue("Progress_box_opacity", 85));
  1453. GM_setValue("Progress_box_background_color", Progress_box_background_color = GM_getValue("Progress_box_background_color", 'DimGray'));
  1454. GM_setValue("Progress_box_item_color", Progress_box_item_color = GM_getValue("Progress_box_item_color", 'DimGray'));
  1455. GM_setValue("Progress_box_refresh_rate", Progress_box_refresh_rate = GM_getValue("Progress_box_refresh_rate", 2000));
  1456. GM_setValue("Debug_mode", DEBUG_MODE = GM_getValue("Debug_mode", false));
  1457. //hidden settings end
  1458.  
  1459. Icon_set = GM_getValue("Icon_set", 1); //0 - no icons, 1 - cat paws, 2 - old RSLC style, 3 - New Icons,
  1460. Display_tooltip_info = GM_getValue("Display_tooltip_info", true);
  1461. Show_black_background_in_DL_links = GM_getValue("Show_black_background_in_DL_links", false);
  1462. Show_line_through_in_dead_links = GM_getValue("Show_line_through_in_dead_links", false);
  1463. Display_full_links_in_link_containers = GM_getValue("Display_full_links_in_link_containers", false);
  1464. Allow_spaces_in_DL_links = GM_getValue("Allow_spaces_in_DL_links", false);
  1465. Autocheck = GM_getValue("Autocheck", true);
  1466. Enable_Anonymizer = GM_getValue("Enable_Anonymizer", false);
  1467. Do_not_linkify_DL_links = GM_getValue("Do_not_linkify_DL_links", false);
  1468. Show_progress_stats = GM_getValue("Show_progress_stats", true);
  1469. Keyboard_functions = GM_getValue("Keyboard_functions", true);
  1470. Obsolete_file_hosts = GM_getValue("Obsolete_file_hosts", false);
  1471. Color_DL_links = GM_getValue("Color_DL_links", true);
  1472. Live_links_color = GM_getValue("Live_links_color", "Green");
  1473. Dead_links_color = GM_getValue("Dead_links_color", "#FF3300");
  1474. Temp_unavailable_links_color = GM_getValue("Temp_unavailable_links_color", "#F7EF09");
  1475. Container_links_color = GM_getValue("Container_links_color", "DarkKhaki");
  1476. Premium_links_color = GM_getValue("Premium_links_color", "DeepPink");
  1477. Ref_anonymize_service = GM_getValue("Ref_anonymize_service", "http://hiderefer.com/?");
  1478. Custom_rules = GM_getValue("Custom_rules", false);
  1479. Custom_rules_text = GM_getValue("Custom_rules_text", false);
  1480. }
  1481.  
  1482.  
  1483. // Delinkifies the links
  1484. // params:
  1485. // links -> list of links or link components (note they should be sufficiently unique to identify the link on page,
  1486. // e.g. 'uloz.to/xs68skxl8')
  1487. function delinkifySnapshot(snapshot)
  1488. {
  1489. var n = snapshot.snapshotLength;
  1490.  
  1491. while (n--)
  1492. {
  1493. thisLink = snapshot.snapshotItem(n);
  1494.  
  1495. var spanElm = document.createElement("span");
  1496. spanElm.className = thisLink.className;
  1497. spanElm.innerHTML = thisLink.innerHTML;
  1498.  
  1499. if (Display_tooltip_info)
  1500. {
  1501. spanElm.href = thisLink.href;
  1502. switch (thisLink.className){
  1503. case "alive_link": spanElm.addEventListener("mouseover", displayTooltipInfo, false); break
  1504. case "adead_link": spanElm.addEventListener("mouseover", displayTooltipError, false); break;
  1505. case "unava_link": //reserved
  1506. default:
  1507. }
  1508. }
  1509. thisLink.parentNode.replaceChild(spanElm, thisLink);
  1510. }
  1511. }
  1512.  
  1513. function processContainers()
  1514. {
  1515. var redirectorTypes = { "HTTP_302": 0,
  1516. "INNER_LINK": 1,
  1517. "THELOO_KATT_IT": 2,
  1518. "CING_BE": 3,
  1519. "ADF_LY": 4};
  1520. var cMultiloadTotal = 0;
  1521. var cMultiloadProcessed = 0;
  1522.  
  1523. var cMirrorcreatorComTotal = 0;
  1524. var cMirrorcreatorComProcessed = 0;
  1525.  
  1526. var hostRestrictionRegex = "";
  1527. var multiloadComRestriction = "";
  1528. var multiloadComRestrictionRegex;
  1529.  
  1530. //
  1531. //HANDLING REDIRECTORS START
  1532. //
  1533.  
  1534. var redirectors = new Array();
  1535. initRedirectors();
  1536.  
  1537. var redirectorsCount = redirectors.length;
  1538.  
  1539. if (redirectorsCount > 0)
  1540. {
  1541. var allRedirectorsRegex = "";
  1542.  
  1543. //linkify redirector links
  1544. for(var redirIdx = 0; redirIdx < redirectorsCount; redirIdx++)
  1545. {
  1546. allRedirectorsRegex += redirectors[redirIdx].linkRegex + "|";
  1547. }
  1548. allRedirectorsRegex = allRedirectorsRegex.replace(/\|$/, "");
  1549. linkify(allRedirectorsRegex);
  1550. //
  1551. //process redirector links
  1552. for(var redirIdx = 0; redirIdx < redirectorsCount; redirIdx++)
  1553. {
  1554. var redirectorsSnapshot = document.evaluate(redirectors[redirIdx].xpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  1555. redirectors[redirIdx].cTotal = redirectorsSnapshot.snapshotLength;
  1556.  
  1557. cLinksTotal += redirectors[redirIdx].cTotal;
  1558. var linkIdx = redirectors[redirIdx].cTotal;
  1559.  
  1560. while(linkIdx--)
  1561. {
  1562. switch(redirectors[redirIdx].type)
  1563. {
  1564. case redirectorTypes.HTTP_302: processRedirectorLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1565. case redirectorTypes.INNER_LINK: processRedirectorLinkEx(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1566. case redirectorTypes.THELOO_KATT_IT: processThelooKattItLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1567. case redirectorTypes.CING_BE: processCingBeLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1568. case redirectorTypes.ADF_LY: processAdfLyLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1569. default:
  1570. }
  1571. }
  1572. }
  1573. //
  1574. }
  1575.  
  1576. //HTTP_302
  1577. function processRedirectorLink(link, redirectorId)
  1578. {
  1579. link.className = 'container_link';
  1580.  
  1581. GM_xmlhttpRequest({
  1582. method: 'HEAD',
  1583. url: link.href,
  1584. headers: {
  1585. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1586. 'Accept': 'text/xml',
  1587. 'Referer': ""
  1588. },
  1589. onload: function(result) {
  1590. if (result.finalUrl.replace("https", "http") == link.href) // service hasn't redirected anywhere
  1591. {
  1592. processRedirectorLink(link, redirectorId);
  1593. }
  1594. else
  1595. {
  1596. redirectors[redirectorId].cProcessed++;
  1597. link.href = result.finalUrl;
  1598. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  1599. checkLinks('container_link');
  1600. }
  1601. },
  1602. onerror: function(result) { //probably caused by unresponsive filehosting
  1603. redirectors[redirectorId].cProcessed++;
  1604. link.className = 'unava_link';
  1605. cLinksProcessed++;
  1606. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  1607. checkLinks('container_link');
  1608. }
  1609. });
  1610. }
  1611. //INNER_LINK
  1612. function processRedirectorLinkEx(link, redirectorId)
  1613. {
  1614. link.className = 'container_link';
  1615. GM_xmlhttpRequest({
  1616. method: 'GET',
  1617. url: link.href,
  1618. headers: {
  1619. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1620. 'Accept': 'text/xml',
  1621. 'Referer': ""
  1622. },
  1623. onload: function(result) {
  1624. link.href = result.responseText.match(redirectors[redirectorId].innerLinkRegex)[1];
  1625. redirectors[redirectorId].cProcessed++;
  1626. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  1627. checkLinks('container_link');
  1628. }
  1629. });
  1630. }
  1631. //theloo.katt.it (wrapped safelinking.net)
  1632. function processThelooKattItLink(link, redirectorId)
  1633. {
  1634. link.className = 'container_link';
  1635. GM_xmlhttpRequest({
  1636. method: 'GET',
  1637. url: link.href,
  1638. headers: {
  1639. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1640. 'Accept': 'text/xml',
  1641. 'Referer': ""
  1642. },
  1643. onload: function(result) {
  1644. link.href = result.responseText.match(redirectors[redirectorId].innerLinkRegex)[1];
  1645. redirectors[redirectorId].cProcessed++;
  1646. //the inner links are safelinking.net links, so lets proceed with it
  1647. if (GM_getValue("Check_safelinking_dot_net_links", false))
  1648. {
  1649. processRedirectorLink(link, 0);
  1650. }
  1651. }
  1652. });
  1653. }
  1654. //adf.ly (adf.ly/go innerLink, locking mechanism)
  1655. function processAdfLyLink(link, redirectorId)
  1656. {
  1657. link.className = 'container_link';
  1658. GM_xmlhttpRequest({
  1659. method: 'GET',
  1660. url: link.href,
  1661. headers: {
  1662. 'User-agent': 'Mozilla/4.0',
  1663. 'Accept': 'text/xml',
  1664. 'Referer': ""
  1665. },
  1666. onload: function(result) {
  1667. if (result.finalUrl.match('/locked/'))
  1668. {
  1669. var delay = result.responseText.match(/countdown">(\d+)</)[1];
  1670. // GM_log(result.finalUrl + 'is locked. Repeating the request in ' + delay + 's.');
  1671. // setTimeout(function(){processAdfLyLink(link, redirectorId);}, delay * 1000);
  1672. }
  1673. else
  1674. {
  1675. // GM_log('Processing... ' + link.href);
  1676. // GM_log('Found...' + result.responseText.match(/\/go\/(\w+\/\w+)/)[1]);
  1677. var directLink = 'http://adf.ly' + result.responseText.match(/(\/go\/\w+\/\w+)/)[1];
  1678. var logToken = result.responseText.match(/flashy_(\w+)/)[1];
  1679. var users = result.responseText.match(/user=\d+&user2=\d+/);
  1680. //confirm advert
  1681. GM_xmlhttpRequest(
  1682. {
  1683. method: 'POST',
  1684. url: 'http://adf.ly/l.php',
  1685. headers: {
  1686. 'User-agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20100101 Firefox/13.0',
  1687. 'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
  1688. 'Referer': link.href
  1689. },
  1690. data: users + '&lt=' + logToken,
  1691. onload: function(result) {
  1692. //retrieve final url from .../go/... link
  1693. GM_xmlhttpRequest({
  1694. method: 'GET',
  1695. url: directLink,
  1696. headers: {
  1697. 'User-agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20100101 Firefox/13.0',
  1698. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  1699. 'Referer': link.href
  1700. },
  1701. onload: function(result) {
  1702. link.href = result.finalUrl;
  1703. redirectors[redirectorId].cProcessed++;
  1704. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  1705. checkLinks('container_link');
  1706. }
  1707. });
  1708. }
  1709. });
  1710. }
  1711. }
  1712. });
  1713. function proceedOK()
  1714. {
  1715. }
  1716. }
  1717. //MULTILOAD.CZ START
  1718. if (GM_getValue("Check_multiload_dot_cz_links", false))
  1719. {
  1720. var mlRegex = 'multiload\\.cz\/stahnout\/\\d+\/';
  1721. var mlXpath = "//a[contains(@href,'http://www.multiload.cz/stahnout')]";
  1722.  
  1723. hostRestrictionRegex = 'Upload se nezdařil|limit exceeded|probíhá reupload|';
  1724.  
  1725. if (GM_getValue("Check_hellshare_dot_com_links", false))
  1726. hostRestrictionRegex += 'hellshare|';
  1727. if (GM_getValue("Check_share_dash_rapid_dot_com_links", false))
  1728. hostRestrictionRegex += 'share-rapid\\.com|';
  1729. if (GM_getValue("Check_quickshare_dot_cz_links", false))
  1730. hostRestrictionRegex += 'quickshare\\.cz|';
  1731. if (GM_getValue("Check_czshare_dot_com_links", false))
  1732. hostRestrictionRegex += 'czshare\\.com|';
  1733. if (GM_getValue("Check_uloz_dot_to_links", false))
  1734. hostRestrictionRegex += 'uloz\\.to|';
  1735. if (GM_getValue("Check_hellspy_dot_com_links", false))
  1736. hostRestrictionRegex += 'hellspy|';
  1737. if (GM_getValue("Check_multishare_dot_cz_links", false))
  1738. hostRestrictionRegex += 'multishare\\.cz|';
  1739.  
  1740. hostRestrictionRegex = hostRestrictionRegex.replace(/\|$/, "");
  1741.  
  1742. linkify(mlRegex);
  1743.  
  1744. var mlSnapshot = document.evaluate(mlXpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  1745. var mlCount = mlSnapshot.snapshotLength;
  1746.  
  1747. if (mlCount > 0)
  1748. {
  1749. cMultiloadTotal += mlCount;
  1750.  
  1751. mlIdx = mlCount - 1;
  1752. do
  1753. {
  1754. processMultiloadLink(mlSnapshot.snapshotItem(mlIdx));
  1755. }
  1756. while(mlIdx--)
  1757. }
  1758. }
  1759. //MULTILOAD.CZ END
  1760.  
  1761.  
  1762.  
  1763. function processMultiloadLink(mlLink)
  1764. {
  1765. GM_xmlhttpRequest({
  1766. method: 'GET',
  1767. url: mlLink.href,
  1768. headers: {
  1769. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1770. 'Accept': 'text/xml',
  1771. 'Referer': ""
  1772. },
  1773. onload: function(result) {
  1774. var res = result.responseText;
  1775.  
  1776. var innerBlockRegex = /<p class="manager-linky">(?:.|\s)+?<\/p>/g;
  1777. 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;
  1778. var innerLinkRegex = /((?:Upload se nezdařil.+|https?:\/\/(?:.|\s)+|Právě probíhá reupload, buďte trpěliví\.\.\.))</;
  1779. var mlRestrictionRegex = new RegExp(hostRestrictionRegex,"g"); //what links should be displayed
  1780.  
  1781. var blocks; // blocks of links
  1782. var blockIdx;
  1783.  
  1784. mlLink.className = '';
  1785.  
  1786. if (result.status == 503) //service temporarily unavailable, repeat request in one second
  1787. {
  1788. setTimeout(function(){ processMultiloadLink(mlLink); }, 1000);
  1789. return;
  1790. }
  1791.  
  1792. blocks = res.match(innerBlockRegex);
  1793.  
  1794. if (blocks == null) //no links found, cancel further processing
  1795. {
  1796. mlLink.parentNode.appendChild(document.createTextNode(' | Požadovaný soubor neexistuje.'));
  1797. cMultiloadProcessed++;
  1798. if (cMultiloadTotal <= cMultiloadProcessed)
  1799. {
  1800. startBulkCheck('container_link');
  1801. start('container_link');
  1802. }
  1803. return;
  1804. }
  1805.  
  1806. blockIdx = blocks.length;
  1807.  
  1808. if (Display_full_links_in_link_containers)
  1809. {
  1810. var ulElm = document.createElement('ul');
  1811. ulElm.className = 'container_list'; //CSS smaller font, padding, margin, square style
  1812.  
  1813. while(blockIdx--)
  1814. {
  1815. if (blocks[blockIdx].match(mlRestrictionRegex) == null)
  1816. {
  1817. continue;
  1818. }
  1819.  
  1820. var innerLinks = blocks[blockIdx].match(innerLinksRegex);
  1821.  
  1822. var linkIdx = innerLinks.length;
  1823. while (linkIdx--)
  1824. {
  1825. var innerLink = innerLinks[linkIdx].match(innerLinkRegex)[1];
  1826.  
  1827. var liElm = document.createElement('li');
  1828.  
  1829. if (innerLink.match(/Upload se nezdařil|limit exceeded|probíhá reupload/))
  1830. {
  1831. liElm.appendChild(document.createTextNode(innerLink));
  1832. }
  1833. else
  1834. {
  1835. var aElm = document.createElement('a');
  1836. aElm.innerHTML = innerLink;
  1837. aElm.href = innerLink;
  1838. aElm.className = 'container_link';
  1839.  
  1840. liElm.appendChild(aElm);
  1841. }
  1842.  
  1843. ulElm.appendChild(liElm);
  1844. cLinksTotal++;
  1845. }
  1846. }
  1847.  
  1848. mlLink.parentNode.appendChild(ulElm);
  1849. }
  1850. else //compact view
  1851. {
  1852. mlLink.parentNode.appendChild(document.createTextNode("|"));
  1853.  
  1854. while(blockIdx--)
  1855. {
  1856. if (blocks[blockIdx].match(mlRestrictionRegex) == null)
  1857. {
  1858. continue;
  1859. }
  1860.  
  1861. var innerLinks = blocks[blockIdx].match(innerLinksRegex);
  1862.  
  1863. var linkIdx = innerLinks.length;
  1864. while (linkIdx--)
  1865. {
  1866. var innerLink = innerLinks[linkIdx].match(innerLinkRegex)[1];
  1867.  
  1868. if (innerLink.match(/Upload se nezdařil|limit exceeded|probíhá reupload/))
  1869. {
  1870. mlLink.parentNode.appendChild(document.createTextNode("----"));
  1871. }
  1872. else
  1873. {
  1874. var aElm = document.createElement('a');
  1875.  
  1876. var hostName = innerLink.match(/quickshare|hellshare|uloz\.to|multishare|hellspy|share\-rapid|czshare/);
  1877.  
  1878. //abbreviate host name
  1879. switch(hostName + ""){
  1880.  
  1881. case 'quickshare': aElm.innerHTML = 'QS'; break;
  1882. case 'hellshare': aElm.innerHTML = 'HS'; break;
  1883. case 'uloz.to': aElm.innerHTML = 'UT'; break;
  1884. case 'multishare': aElm.innerHTML = 'MS'; break;
  1885. case 'hellspy': aElm.innerHTML = 'hs'; break;
  1886. case 'share-rapid': aElm.innerHTML = 'SR'; break;
  1887. case 'czshare': aElm.innerHTML = 'CS'; break;
  1888. default: aElm.innerHTML = 'xx';
  1889.  
  1890. }
  1891.  
  1892. aElm.href = innerLink;
  1893. aElm.className = 'container_link';
  1894.  
  1895. mlLink.parentNode.appendChild(aElm);
  1896. cLinksTotal++;
  1897. }
  1898. }
  1899.  
  1900. mlLink.parentNode.appendChild(document.createTextNode("|")); //blocks delimiter
  1901.  
  1902. }
  1903. }
  1904.  
  1905. cMultiloadProcessed++;
  1906. if (cMultiloadTotal == cMultiloadProcessed) //start check when all ml links have been processed
  1907. {
  1908. if (Do_not_linkify_DL_links)
  1909. {
  1910. delinkifySnapshot(mlSnapshot);
  1911. }
  1912. startBulkCheck('container_link');
  1913. start('container_link');
  1914. }
  1915. }
  1916. });
  1917. }
  1918.  
  1919.  
  1920. if (GM_getValue("Check_mirrorcreator_dot_com_links", false))
  1921. {
  1922. var mcRegex = 'mirrorcreator\\.com/files/(\\w+)';
  1923. var mcXpath = "//a[contains(@href,'mirrorcreator.com/files')]";
  1924. var mcShortHostNames =
  1925. '?? 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';
  1926. // 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
  1927. //?????? depositfiles sendspace load.to ul.to storage.to uploadbox x7.to fileserve ?????? duckload filehook filepost jumbofiles glumbouploads
  1928. // zshare ?????? 2shared uploading ugotfile extabit oron eyvx uploadstation putlocker
  1929. // megaupload badongo megashare gamefront ifile ?????? letitbit ?????? ?????? filejungle megashares
  1930. // easy-share ?????? netload zippyshare ?????? filesonic turbobit enterupload ?????? filekeen wupload crocko fileflyer
  1931.  
  1932. linkify(mcRegex);
  1933.  
  1934. var mcSnapshot = document.evaluate(mcXpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  1935. var mcCount = mcSnapshot.snapshotLength;
  1936.  
  1937. cMirrorcreatorComTotal = mcCount;
  1938.  
  1939. if (mcCount > 0)
  1940. {
  1941. mcShortHostNames = mcShortHostNames.split(' ');
  1942. mcIdx = mcCount;
  1943. while(mcIdx--)
  1944. processMirrorcreatorLink(mcSnapshot.snapshotItem(mcIdx));
  1945. }
  1946.  
  1947. }
  1948. //MIRRORCREATOR.CZ END
  1949.  
  1950.  
  1951. //mirrorcreator.com checking works like this:
  1952. //The base URL is http://www.mirrorcreator.com/files/XXXXXXXX/filename_links
  1953. //the actual list of mirrors is at http://www.mirrorcreator.com/status.php?uid=XXXXXXXX
  1954. //the list contains links in the form of (http://www.mirrorcreator.com)/redirect/XXXXXXXX/1
  1955. //these redirector links are extracted with mcLinkBlockRegex and the pages loaded
  1956. //they contain the actual filehost links, which are extracted with mcHostRegex and displayed in a container list
  1957. function processMirrorcreatorLink(mcLink)
  1958. {
  1959. var mcURL = mcLink.href.match(mcRegex);
  1960. if(!mcURL || !mcURL[1]) return;
  1961. mcURL = 'http://www.mirrorcreator.com/status.php?uid=' + mcURL[1]; //link correction
  1962. GM_xmlhttpRequest({
  1963. method: 'GET',
  1964. url: mcURL,
  1965. headers: {
  1966. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1967. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*'+'/*;q=0.8',
  1968. 'Referer': ""
  1969. },
  1970. onload: function(mcLinkResult) {
  1971. var mcLinkRes = mcLinkResult.responseText;
  1972.  
  1973. var mcLinkBlockRegex = /(\/redirect\/\w+\/(\d+))/gi;
  1974. var mcHostRegex = /<div id="redirectlink">.*?<a href="([^"]+)"/;
  1975.  
  1976. var mcRedirectors;
  1977. var mcHostURLs = [], mcRedirectorIDs = [], mcHostsFound = 0, mcHostsRetrieved = 0, mcHostsToProcess = 0;
  1978. var m = mcLinkRes.match(mcLinkBlockRegex);
  1979. if (m)
  1980. mcHostsFound = m.length;
  1981. else
  1982. { //no files inside container
  1983. processMirrorcreatorFoundHosts(mcLink, []);
  1984. return;
  1985. }
  1986.  
  1987. var mcRedirectorURL, idx, timedOut = false;
  1988.  
  1989. var gmxhrFunc = function(mcRedirectorURL){ //Tampermonkey doesn't know neither this.url or result.finalUrl
  1990. GM_xmlhttpRequest({
  1991. method: 'GET',
  1992. url: mcRedirectorURL,
  1993. headers: {
  1994. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1995. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*'+'/*;q=0.8',
  1996. 'Referer': ""
  1997. },
  1998. onload: function(mcHostResult) {
  1999. if (timedOut) return; //too late, the list is already displayed
  2000. var mcHostRes = mcHostResult.responseText;
  2001. var mcHost = mcHostRes.match(mcHostRegex);
  2002. idx = mcHostURLs.indexOf(mcRedirectorURL);
  2003. if (mcHost && idx!=-1)
  2004. {
  2005. mcHostURLs[idx] = mcHost[1].replace(/^\s+|\s+$/g, '');
  2006. mcHostsRetrieved++;
  2007. mcHostsToProcess++;
  2008. if (mcHostsFound == mcHostsRetrieved) //this is the last one!
  2009. {
  2010. processMirrorcreatorFoundHosts(mcLink, mcHostURLs, mcRedirectorIDs);
  2011. mcHostsToProcess = 0;
  2012. }
  2013. }
  2014. } //end of onload: function
  2015. }); //end of GM_xmlhttpRequest call
  2016. };//end of var gmxhrFunc
  2017.  
  2018. while (mcRedirectors = mcLinkBlockRegex.exec(mcLinkRes))
  2019. { //load individual redirector pages
  2020. mcRedirectorURL = 'http://www.mirrorcreator.com' + mcRedirectors[1];
  2021. mcHostURLs.push(mcRedirectorURL);
  2022. mcRedirectorIDs.push(mcRedirectors[2]);
  2023. gmxhrFunc(mcRedirectorURL);
  2024. } //end of while block
  2025.  
  2026. setTimeout(function(){ //in case the last page fails to load and call the function
  2027. timedOut = true;
  2028. if (mcHostsToProcess)
  2029. processMirrorcreatorFoundHosts(mcLink, mcHostURLs);
  2030. }, 60000);
  2031.  
  2032. } //end of onload function
  2033. }); //end of GM_xmlhttpRequest call
  2034. } //end of function processMirrorcreatorLink
  2035.  
  2036.  
  2037. function processMirrorcreatorFoundHosts(mcLink, mcHostURLs, mcRedirectorIDs)
  2038. {
  2039. var aEl, liEl, docFrag;
  2040. var hostName, mcRedirectorID, trimFilename = false;
  2041. var i = mcHostURLs.length;
  2042. if (i == 0)
  2043. {
  2044. trimFilename = true;
  2045. mcLink.parentNode.insertBefore(document.createTextNode(' | No files inside container'), mcLink.nextSibling);
  2046. }
  2047. else
  2048. {
  2049. if (Display_full_links_in_link_containers)
  2050. { //full view
  2051. var wrapperEl = document.createElement('span');
  2052. wrapperEl.style.display = 'block';
  2053. var ulistEl = document.createElement('ul');
  2054. ulistEl.className = 'container_list';
  2055. while (i--)
  2056. {
  2057. liEl = document.createElement('li');
  2058. aEl = document.createElement('a');
  2059. aEl.appendChild(document.createTextNode(mcHostURLs[i]));
  2060. aEl.href = mcHostURLs[i];
  2061. aEl.className = 'container_link';
  2062. liEl.appendChild(aEl);
  2063. ulistEl.appendChild(liEl);
  2064. }
  2065. wrapperEl.appendChild(ulistEl);
  2066. mcLink.parentNode.replaceChild(wrapperEl, mcLink);
  2067. wrapperEl.insertBefore(mcLink, wrapperEl.firstChild);
  2068. }
  2069. else
  2070. { //compact view
  2071. trimFilename = true;
  2072. docFrag = document.createDocumentFragment();
  2073. docFrag.appendChild(document.createTextNode(' |'));
  2074. while (i--)
  2075. {
  2076. mcRedirectorID = mcRedirectorIDs[i];
  2077. hostName = mcHostURLs[i];
  2078. if (mcRedirectorID > mcShortHostNames.length-1 || mcShortHostNames[mcRedirectorID] == '??')
  2079. hostName = hostName.replace(/https?:\/\/(?:www\.)?([-0-9a-z]+(?:\.[-0-9a-z]+)?)\.[a-z]+\/.*/i, '$1').toUpperCase();
  2080. else
  2081. hostName = mcShortHostNames[mcRedirectorID];
  2082. aEl = document.createElement('a');
  2083. aEl.href = mcHostURLs[i];
  2084. aEl.className = 'container_link';
  2085. aEl.appendChild(document.createTextNode(hostName));
  2086. docFrag.appendChild(aEl);
  2087. docFrag.appendChild(document.createTextNode('|'));
  2088. }
  2089. mcLink.parentNode.insertBefore(docFrag, mcLink.nextSibling);
  2090. } //end of else block
  2091. } //end of else block
  2092. mcLink.className = '';
  2093. if (trimFilename)
  2094. mcLink.firstChild.nodeValue = mcLink.firstChild.nodeValue.replace(/(https?:\/\/[^\/]+\/files\/\w+\/).+/, '$1...');
  2095. cMirrorcreatorComProcessed++;
  2096. if (cMirrorcreatorComProcessed == cMirrorcreatorComTotal) //start check when all mc links have been processed
  2097. {
  2098. if (Do_not_linkify_DL_links)
  2099. delinkifySnapshot(mcSnapshot);
  2100. startBulkCheck('container_link');
  2101. start('container_link');
  2102. }
  2103. } //end of function processMirrorcreatorFoundHosts
  2104.  
  2105. containers_processed = true;
  2106.  
  2107.  
  2108. function initRedirectors()
  2109. {
  2110. function addRedirector(linkRegex, xpathEx, redirType, innerLinkRegex)
  2111. {
  2112. var redirector = new Object();
  2113. redirector.linkRegex = linkRegex;
  2114. redirector.xpath = xpathEx; //xpath expression
  2115. redirector.cProcessed = 0; //processed links count
  2116. redirector.cTotal = 0; //total links count
  2117. redirector.type = redirType; //redirectorTypes enum
  2118. redirector.innerLinkRegex = innerLinkRegex; //innerLink, null if unused
  2119. redirectors.push(redirector);
  2120. }
  2121. if (GM_getValue("Check_safelinking_dot_net_links", false))
  2122. {
  2123. addRedirector(
  2124. 'safelinking\\.net\/d\/\\w+',
  2125. "//a[contains(@href,'safelinking.net/d/')]",
  2126. redirectorTypes.HTTP_302,
  2127. null);
  2128. }
  2129. if (GM_getValue("Check_linksafe_dot_me_links", false))
  2130. {
  2131. addRedirector(
  2132. 'linksafe\\.me\/d\/\\w+',
  2133. "//a[contains(@href,'linksafe.me/d/')]",
  2134. redirectorTypes.HTTP_302,
  2135. null);
  2136. }
  2137. if (GM_getValue("Check_linkto_dot_net_links", false))
  2138. {
  2139. addRedirector(
  2140. 'linkto\\.net\/\\?\\w+\\.\\d+',
  2141. "//a[contains(@href,'linkto.net/?')]",
  2142. redirectorTypes.INNER_LINK,
  2143. /<iframe id="iframe" name="iframe" src="(.+?)\s*" frameborder="0"/);
  2144. }
  2145. if (GM_getValue("Check_theloo_dot_katt_dot_it_links", false))
  2146. {
  2147. addRedirector(
  2148. '(?:the)?loo\\.katt\\.it\/\\w+',
  2149. "//a[contains(@href,'loo.katt.it/')]",
  2150. redirectorTypes.THELOO_KATT_IT,
  2151. /Proceed to URL - <a href="(.+?)">/);
  2152. }
  2153. if (GM_getValue("Check_madlink_dot_sk_links", false))
  2154. {
  2155. addRedirector(
  2156. 'madlink\\.sk\/\\w+',
  2157. "//a[contains(@href,'madlink.sk/')]",
  2158. redirectorTypes.INNER_LINK,
  2159. /name="url" value="(.+?)\s*"\/>/);
  2160. }
  2161. if (GM_getValue("Check_adf_dot_ly_links", false))
  2162. {
  2163. addRedirector(
  2164. '(?:adf\\.ly|[u9]\\.bb|[qj]\\.gs)\/\\w+',
  2165. "//a[contains(@href,'adf.ly/') (@href,'u.bb/') or contains(@href,'9.bb/') or contains(@href,'q.gs/') or contains(@href,'j.gs/')]",
  2166. redirectorTypes.ADF_LY,
  2167. null);
  2168. }
  2169. if (GM_getValue("Check_redi_dot_re_links", false))
  2170. {
  2171. addRedirector(
  2172. 'redi\\.re\/\\w+',
  2173. "//a[contains(@href,'redi.re/')]",
  2174. redirectorTypes.HTTP_302,
  2175. null);
  2176. }
  2177. if (GM_getValue("Check_bit_dot_ly_links", false))
  2178. {
  2179. addRedirector(
  2180. 'bit\\.ly\/\\w+',
  2181. "//a[contains(@href,'bit.ly/')]",
  2182. redirectorTypes.HTTP_302,
  2183. null);
  2184. }
  2185. }
  2186.  
  2187. }
  2188.  
  2189. var bulkHosts = new Array();
  2190. var bulkHostNames = new Array();
  2191. function initBulkCheck()
  2192. {
  2193. /////////////////////////////
  2194. // Inits filehost object
  2195. /////////////////////////////
  2196. // params :
  2197. // hostName -- [string] host name (multiple domains separated with coma)
  2198. // linkRegex -- [string] link regex
  2199. // xpath -- [string] xpath expression to detect the link objects with evaluate
  2200. // blockSize -- [integer] max. number of links sent in one request, 50 if null
  2201. // corrMatch -- [regex] link correction regex (match), applied prior to corrRepl
  2202. // corrReplWhat -- [regex] link correction regex (replace)
  2203. // corrReplWith -- [string]
  2204. // splitSeparator -- [string] POSTDATA links separator, "\r\n" if null
  2205. //
  2206. // apiUrl -- [string] web linkchecker or API URL
  2207. // postData -- [string] POSTDATA of xmlhttprequest
  2208. // resLinkRegex -- [regex]
  2209. // resLiveRegex -- [regex] matches substrings containing live links in the request response
  2210. // resDeadRegex -- [regex] matches substrings containing dead links in the request response
  2211. // resUnavaRegex -- [regex] matches substrings containing unava links in the request response
  2212. // func -- [function] bulkcheck handler, genBulkCheck if null
  2213. //
  2214. //////////////////////////////
  2215. function addHost(hostName, linkRegex, xpath, blockSize, corrMatch, corrReplWhat, corrReplWith, splitSeparator,
  2216. apiUrl, postData, resLinkRegex, resLiveRegex, resDeadRegex, resUnavaRegex, func)
  2217. {
  2218. var fileHost = new Object();
  2219.  
  2220. fileHost.linkRegex = linkRegex;
  2221. fileHost.linkRegexObject = new RegExp(linkRegex, "");
  2222. fileHost.xpath = xpath;
  2223. fileHost.cFound = 0; //found links counter
  2224. fileHost.links = new Array(); //found links
  2225. if (blockSize == null)
  2226. {
  2227. fileHost.blockSize = 50;
  2228. }
  2229. else
  2230. {
  2231. fileHost.blockSize = blockSize;
  2232. }
  2233. fileHost.corrMatch = corrMatch;
  2234. fileHost.corrReplWhat = corrReplWhat;
  2235. fileHost.corrReplWith = corrReplWith;
  2236. if (splitSeparator == null)
  2237. {
  2238. fileHost.splitSeparator = "\r\n";
  2239. }
  2240. else
  2241. {
  2242. fileHost.splitSeparator = splitSeparator;
  2243. }
  2244. fileHost.apiUrl = apiUrl;
  2245. fileHost.postData = postData;
  2246. fileHost.resLinkRegex = resLinkRegex;
  2247. fileHost.resLiveRegex = resLiveRegex;
  2248. fileHost.resDeadRegex = resDeadRegex;
  2249. fileHost.resUnavaRegex = resUnavaRegex;
  2250. if (func == null)
  2251. {
  2252. fileHost.func = genBulkCheck;
  2253. }
  2254. else
  2255. {
  2256. fileHost.func = func;
  2257. }
  2258. bulkHosts.push(fileHost);
  2259. var names = hostName.split(',');
  2260. var i = names.length;
  2261. while(i--)
  2262. {
  2263. bulkHostNames[names[i]] = fileHost;
  2264. }
  2265. }
  2266. var genType1 = [
  2267. "rodfile.com", "downloadani.me", //"migahost.com",
  2268. "rarefile.net",
  2269. "filesabc.com",
  2270. "180upload.com", "verzend.be",
  2271. // "movreel.com",
  2272. "4up.me",
  2273. "file4safe.com", "filemac.com", "4upfiles.com",
  2274. "idup.in", "novafile.com", "longfiles.com",
  2275. "bitupload.com",
  2276. "uploadbaz.com"
  2277. ];
  2278. var genType2 = [ "queenshare.com",
  2279. "hulkload.com",
  2280. "amonshare.com", //"edoc.com",
  2281. ];
  2282. //xfilesharing 1.0
  2283. function addGenericType1()
  2284. {
  2285. var i = genType1.length;
  2286. while(i--)
  2287. {
  2288. if (GM_getValue("Check_" + genType1[i].replace(/\./g, "_dot_").replace(/-/g, "_dash_") + "_links", false))
  2289. {
  2290. var regexSafe = genType1[i].replace(/\./g, "\\.").replace(/-/g, "\\-");
  2291. addHost(
  2292. genType1[i].match(/[\w-]+/)[0], //hostname
  2293. regexSafe + "\/\\w+", //linkregex
  2294. "//a[contains(@href,'" + genType1[i] + "/')]", //xpath
  2295. null, //blocksize
  2296. new RegExp("(http:\/\/(?:|www\\.)" + regexSafe + "\/\\w+)",""),//, //corrmatch
  2297. null, //corrreplwhat
  2298. null, //corrreplwith
  2299. null, //separator
  2300. "http://" + genType1[i] + "/checkfiles.html", //api url
  2301. "op=checkfiles&process=Check+URLs&list=", //postdata
  2302. new RegExp("(" + regexSafe + "\/\\w+)",""), //linkregex
  2303. new RegExp("green'>http:\/\/(?:|www\.)" + regexSafe + "\/\\w+","g"), //liveregex
  2304. new RegExp("red'>http:\/\/(?:|www\.)" + regexSafe + "\/\\w+","g"), //deadregex
  2305. new RegExp("orange'>http:\/\/(?:|www\.)" + regexSafe + "\/\\w+","g"), //unavaregex
  2306. null //function delegate
  2307. )
  2308. }
  2309. }
  2310. }
  2311. //xfilesharing 2.0
  2312. function addGenericType2()
  2313. {
  2314. var i = genType2.length;
  2315. while(i--)
  2316. {
  2317. if (GM_getValue("Check_" + genType2[i].replace(/\./g, "_dot_").replace(/-/g, "_dash_") + "_links", false))
  2318. {
  2319. var regexSafe = genType2[i].replace(/\./g, "\\.").replace(/-/g, "\\-");
  2320. addHost(
  2321. genType2[i].match(/[\w-]+/)[0], //hostname
  2322. regexSafe + "\/\\w+", //linkregex
  2323. "//a[contains(@href,'" + genType2[i] + "/')]", //xpath
  2324. null, //blocksize
  2325. new RegExp("(http:\/\/(?:|www\\.)" + regexSafe + "\/\\w+)",""),//, //corrmatch
  2326. null, //corrreplwhat
  2327. null, //corrreplwith
  2328. null, //separator
  2329. "http://www." + genType2[i] + "/?op=checkfiles", //api url
  2330. "op=checkfiles&process=Check+URLs&list=", //postdata
  2331. new RegExp("(" + regexSafe + "\/\\w+)",""), //linkregex
  2332. new RegExp(regexSafe + "\/\\w+.*?<\/td>\\s*<td style=\"color:green;\">","g"), //liveregex
  2333. new RegExp(regexSafe + "\/\\w+.*?<\/td>\\s*<td style=\"color:red;\">","g"), //deadregex
  2334. new RegExp(regexSafe + "\/\\w+.*?<\/td>\\s*<td style=\"color:orange;\">","g"), //unavaregex
  2335. null //function delegate
  2336. )
  2337. }
  2338. }
  2339. }
  2340. // TEMPLATE
  2341. // if (GM_getValue("Check__dot_com_links", false))
  2342. // {
  2343. // addHost(
  2344. // "", //hostname
  2345. // "", //linkregex
  2346. // "//a[contains(@href,'.com/')]", //xpath
  2347. // null, //blocksize
  2348. // null, //corrmatch
  2349. // null, //corrreplwhat
  2350. // null, //corrreplwith
  2351. // null, //separator
  2352. // "", //api url
  2353. // "", //postdata
  2354. // /()/, //linkregex
  2355. // //liveregex
  2356. // //deadregex
  2357. // //unavaregex
  2358. // null //function delegate
  2359. // )
  2360. // }
  2361. addGenericType1();
  2362. addGenericType2();
  2363.  
  2364. if (GM_getValue("Check_myvdrive_dot_com_links", false))
  2365. {
  2366. addHost(
  2367. "myvdrive,fileserving", //hostname
  2368. "(?:fileserving|myvdrive)\\.com\/files\/[\\w-]+", //linkregex
  2369. "//a[contains(@href,'fileserving.com/files') or contains(@href,'myvdrive.com/files')]", //xpath
  2370. null, //blocksize
  2371. null, //corrmatch
  2372. null, //corrreplwhat
  2373. null, //corrreplwith
  2374. null, //separator
  2375. "http://www.myvdrive.com/Public/linkchecker#", //api url
  2376. "links=", //postdata
  2377. /(?:fileserving|myvdrive)\.com\/(files\/\w+)/, //linkregex
  2378. /icon_file_check_valid"><\/span>\s*http:\/\/www\.(?:fileserving|myvdrive)\.com\/files\/[\w-]+/g, //liveregex
  2379. /icon_file_check_(?:removed|notvalid)"><\/span>\s*http:\/\/www\.(?:fileserving|myvdrive)\.com\/files\/[\w-]+/g, //deadregex
  2380. null, //unavaregex
  2381. null //function delegate
  2382. )
  2383. }
  2384. if (GM_getValue("Check_hackerbox_dot_org_links", false))
  2385. {
  2386. addHost(
  2387. "hackerbox", //hostname
  2388. "host\\.hackerbox\\.org\/\\w+", //linkregex
  2389. "//a[contains(@href,'host.hackerbox.org/')]", //xpath
  2390. null, //blocksize
  2391. /(http:\/\/host\.hackerbox\.org\/\w+)/, //corrmatch
  2392. null, //corrreplwhat
  2393. null, //corrreplwith
  2394. null, //separator
  2395. "http://host.hackerbox.org/checkfiles.html", //api url
  2396. "op=checkfiles&process=Check+URLs&list=", //postdata
  2397. /(host\.hackerbox\.org\/\w+)/, //linkregex
  2398. /green'>http:\/\/host\.hackerbox\.org\/\w+/g, //liveregex
  2399. /red'>http:\/\/host\.hackerbox\.org\/\w+/g, //deadregex
  2400. /orange'>http:\/\/host\.hackerbox\.org\/\w+/g, //unavaregex
  2401. null //function delegate
  2402. )
  2403. }
  2404. if (GM_getValue("Check_hellshare_dot_com_links", false))
  2405. {
  2406. addHost(
  2407. "hellshare", //hostname
  2408. "(?:|download\\.(?:cz\\.|en\\.|sk\\.|)|www\\.)hellshare\\.(?:com|sk|cz|pl|hu|COM|SK|CZ|PL|HU)\/[\\w-\\.]+\/(?:[\\w-\\.]+\/|)\\d{5,}", //linkregex
  2409. "//a[contains(@href,'hellshare.')]", //xpath
  2410. 48, //blocksize
  2411. null, //corrmatch
  2412. null, //corrreplwhat
  2413. null, //corrreplwith
  2414. null, //separator
  2415. null, //api url
  2416. null, //postdata
  2417. null, //linkregex
  2418. null, //liveregex
  2419. null, //deadregex
  2420. null, //unavaregex
  2421. hellshareBulkCheck //function delegate
  2422. )
  2423. }
  2424. if (GM_getValue("Check_ncrypt_dot_in_links", false))
  2425. {
  2426. addHost(
  2427. "ncrypt", //hostname
  2428. "ncrypt\\.in\/folder\\-\\w+", //linkregex
  2429. "//a[contains(@href,'ncrypt.in/folder')]", //xpath
  2430. 100000, //blocksize
  2431. null, //corrmatch
  2432. null, //corrreplwhat
  2433. null, //corrreplwith
  2434. null, //separator
  2435. null,
  2436. null,
  2437. null,
  2438. null,
  2439. null,
  2440. null,
  2441. ncryptBulkCheck //function delegate
  2442. )
  2443. }
  2444. if (GM_getValue("Check_geupload_dot_com_links", false))
  2445. {
  2446. addHost(
  2447. "geupload,lenfile", //hostname
  2448. "(?:geupload\\.com|lenfile\\.com)\/\\w+", //linkregex
  2449. "//a[contains(@href,'geupload.com/') or contains(@href,'lenfile.com/')]", //xpath
  2450. null, //blocksize
  2451. null, //corrmatch
  2452. null, //corrreplwhat
  2453. null, //corrreplwith
  2454. "\n", //separator
  2455. 'http://geupload.com/?op=checkfiles',
  2456. 'op=checkfiles&process=Check+URLs&list=',
  2457. />http:\/\/(?:geupload|lenfile)\.com\/(\w+)/,
  2458. />http:\/\/(?:geupload|lenfile)\.com\/\w+(?:[^>]+>)<td style=\"color\:green/g,
  2459. />http:\/\/(?:geupload|lenfile)\.com\/\w+(?:[^>]+>)<td style=\"color\:red/g,
  2460. null,
  2461. null
  2462. )
  2463. }
  2464. if (GM_getValue("Check_uploadrocket_dot_net_links", false))
  2465. {
  2466. addHost(
  2467. "uploadrocket", //hostname
  2468. "(?:uploadrocket\\.net)\/\\w+", //linkregex
  2469. "//a[contains(@href,'uploadrocket.net/')]", //xpath
  2470. null, //blocksize
  2471. null, //corrmatch
  2472. null, //corrreplwhat
  2473. null, //corrreplwith
  2474. "\n", //separator
  2475. 'http://uploadrocket.net/?op=checkfiles',
  2476. 'op=checkfiles&process=Check+URLs&list=',
  2477. /uploadrocket.net\/(\w+)/,
  2478. />http:\/\/uploadrocket.net\/\w+(?:[^>]+>)<td style="color:green/g,
  2479. />http:\/\/uploadrocket.net\/\w+(?:[^>]+>)<td style="color:red/g,
  2480. null,
  2481. null //function delegate
  2482. )
  2483. }
  2484. if (GM_getValue("Check_k2s_dot_cc_links", false))
  2485. {
  2486. addHost(
  2487. "k2s,keep2s,keep2share",
  2488. "(?:(?:k2s\\.cc)|(?:keep2s\\.cc)|(?:keep2share\\.(?:cc|com)))\/file\/\\w+",
  2489. "//a[contains(@href,'k2s.cc/file/') or contains(@href,'keep2s.cc/file/') or contains(@href,'keep2share.cc/file/') or contains(@href,'keep2share.com/file/')]",
  2490. 100000, //blocksize
  2491. null, //corrmatch
  2492. null, //corrreplwhat
  2493. null, //corrreplwith
  2494. null, //separator
  2495. null,
  2496. null,
  2497. null,
  2498. null,
  2499. null,
  2500. null,
  2501. k2sBulkCheck //function delegate
  2502. )
  2503. }
  2504. if (GM_getValue("Check_fboom_dot_me_links", false))
  2505. {
  2506. addHost(
  2507. "fboom,fileboom",
  2508. "(?:(?:fboom\\.me)|(?:fileboom\\.me))\/file\/\\w+",
  2509. "//a[contains(@href,'fboom.me/file/') or contains(@href,'fileboom.me/file/')]",
  2510. 100000, //blocksize
  2511. null, //corrmatch
  2512. null, //corrreplwhat
  2513. null, //corrreplwith
  2514. null, //separator
  2515. null,
  2516. null,
  2517. null,
  2518. null,
  2519. null,
  2520. null,
  2521. fboomBulkCheck //function delegate
  2522. )
  2523. }
  2524. if (GM_getValue("Check_1fichier_dot_com_links", false))
  2525. {
  2526. addHost(
  2527. "1fichier,dl4free",
  2528. "(?:\\w{10}\\.(?:1fichier|dl4free)\\.com\/)|(?:(?:1fichier|dl4free)\\.com\/\\?\\w{10})|(?:www\\.)?\\w{6,}\\.1fichier\\.com",
  2529. "//a[contains(@href,'.1fichier.com') or contains(@href,'1fichier.com?') or contains(@href,'1fichier.com/?') or contains(@href,'.dl4free.com') or contains(@href,'dl4free.com?')or contains(@href,'dl4free.com/?')]",
  2530. 100000, //blocksize
  2531. null, //corrmatch
  2532. null, //corrreplwhat
  2533. null, //corrreplwith
  2534. null, //separator
  2535. null,
  2536. null,
  2537. null,
  2538. null,
  2539. null,
  2540. null,
  2541. dl4free_1fichier_BulkCheck //function delegate
  2542. )
  2543. }
  2544. if (GM_getValue("Check_depositfiles_dot_com_links", false))
  2545. {
  2546. addHost(
  2547. "depositfiles,dfiles",
  2548. "(?:(?:depositfiles\\.(?:com|org|lt))|(?:dfiles\\.(?:ru|eu)))\/files\/|en/files\/\\w+",
  2549. "//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/')]",
  2550. 100000, //blocksize
  2551. null, //corrmatch
  2552. null, //corrreplwhat
  2553. null, //corrreplwith
  2554. null, //separator
  2555. null,
  2556. null,
  2557. null,
  2558. null,
  2559. null,
  2560. null,
  2561. depositfilesBulkCheck //function delegate
  2562. )
  2563. }
  2564. if (GM_getValue("Check_filesflash_dot_com_links", false))
  2565. {
  2566. addHost(
  2567. "filesflash", //hostname
  2568. "filesflash\\.com\/\\w+", //linkregex
  2569. "//a[contains(@href,'filesflash.com')]", //xpath
  2570. null, //blocksize
  2571. null, //corrmatch
  2572. /http:\/\//, //corrreplwhat
  2573. '', //corrreplwith
  2574. null, //separator
  2575. 'http://filesflash.com/checklinks.php',
  2576. 'submit=Go&links=',
  2577. /filesflash\.com\/(\w+)/,
  2578. /<td>filesflash\.com\/\w+<\/td>\s*<td>Available/g,
  2579. /<td>filesflash\.com\/\w+<\/td>\s*<td>(?:Invalid|Deleted|Expired|Banned)?<\/td>/g,
  2580. null,
  2581. null //function delegate
  2582. )
  2583. }
  2584. if (GM_getValue("Check_jumbofiles_dot_com_links", false))
  2585. {
  2586. addHost(
  2587. "jumbofiles", //hostname
  2588. "jumbofiles\\.com\/\\w+", //linkregex
  2589. "//a[contains(@href,'jumbofiles.com/')]", //xpath
  2590. null, //blocksize
  2591. /(http:\/\/(?:|www\.)jumbofiles\.com\/\w+)/, //corrmatch
  2592. null, //corrreplwhat
  2593. null, //corrreplwith
  2594. null, //separator
  2595. "http://jumbofiles.com/checkfiles.html", //api url
  2596. "op=checkfiles&process=Check+URLs&list=", //postdata
  2597. /(jumbofiles\.com\/\w+)/, //linkregex
  2598. /blue'>http:\/\/(?:|www\.)jumbofiles\.com\/\w+/g, //liveregex
  2599. /red'>http:\/\/(?:|www\.)jumbofiles\.com\/\w+/g, //deadregex
  2600. /orange'>http:\/\/(?:|www\.)jumbofiles\.com\/\w+/g, //unavaregex
  2601. null //function delegate
  2602. )
  2603. }
  2604. if (GM_getValue("Check_edisk_dot_cz_links", false))
  2605. {
  2606. addHost(
  2607. "edisk", //hostname
  2608. "(?:(?:muj|data)\\d*\\.|)edisk\\.(?:cz|sk|eu)\/(?:|(?:cz|sk|en|pl)\/)", //linkregex
  2609. "//a[contains(@href,'edisk.')]", //xpath
  2610. null, //blocksize
  2611. null, //corrmatch
  2612. /edisk\.\w{2}\/(?:|\w{2}\/)stahni/, //corrreplwhat
  2613. 'edisk.cz/stahni', //corrreplwith
  2614. null, //separator
  2615. 'http://www.edisk.cz/zkontrolovat-odkazy',
  2616. 'submitBtn=Zkontrolovat&checkFiles=',
  2617. /((?:download|stahn(?:i|out-soubor))\/\d+)/,
  2618. /"ano"\/>\s*<\/td>\s*<td>\s*http:\/\/.+/g,
  2619. /"ne"\/>\s*<\/td>\s*<td>\s*http:\/\/.+/g,
  2620. null,
  2621. null //function delegate
  2622. )
  2623. }
  2624. if (GM_getValue("Check_bezvadata_dot_cz_links", false))
  2625. {
  2626. GM_xmlhttpRequest( //age check skip
  2627. {
  2628. method: 'POST',
  2629. url: 'http://bezvadata.cz/vyhledavani/souhlas-zavadny-obsah',
  2630. headers: {
  2631. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  2632. 'Content-type': 'application/x-www-form-urlencoded',
  2633. 'Referer': ""
  2634. }
  2635. });
  2636. addHost(
  2637. "bezvadata", //hostname
  2638. "(?:beta\\.|)bezvadata\.cz\/stahnout\/\\d+\\w+", //linkregex
  2639. "//a[contains(@href,'bezvadata.cz')]", //xpath
  2640. null, //blocksize
  2641. null, //corrmatch
  2642. null, //corrreplwhat
  2643. null, //corrreplwith
  2644. null, //separator
  2645. 'http://bezvadata.cz/nastroje/kontrola-odkazu?do=kontrolaOdkazuForm-submit',
  2646. 'zkontrolovat=Zkontrolovat&odkazy=',
  2647. /(bezvadata\.cz\/stahnout\/\d+)/,
  2648. /bezvadata\.cz\/stahnout\/.+?<\/td>\s*<td style="background-color: #d9ffb2/g,
  2649. /bezvadata\.cz\/stahnout\/.+?<\/td>\s*<td style="background-color: #ffb2b2/g,
  2650. null,
  2651. null //function delegate
  2652. )
  2653. }
  2654. if (GM_getValue("Check_linkcrypt_dot_ws_links", false))
  2655. {
  2656. addHost(
  2657. "linkcrypt", //hostname
  2658. "linkcrypt\\.ws\/dir\/\\w+", //linkregex
  2659. "//a[contains(@href,'linkcrypt.ws/dir')]", //xpath
  2660. 100000, //blocksize
  2661. null, //corrmatch
  2662. null, //corrreplwhat
  2663. null, //corrreplwith
  2664. null, //separator
  2665. null,
  2666. null,
  2667. null,
  2668. null,
  2669. null,
  2670. null,
  2671. linkcryptBulkCheck //function delegate
  2672. )
  2673. }
  2674. if (GM_getValue("Check_linksave_dot_in_links", false))
  2675. {
  2676. addHost(
  2677. "linksave", //hostname
  2678. "linksave\\.in\/\\w+", //linkregex
  2679. "//a[contains(@href,'linksave.in')]", //xpath
  2680. 100000, //blocksize
  2681. null, //corrmatch
  2682. null, //corrreplwhat
  2683. null, //corrreplwith
  2684. null, //separator
  2685. null,
  2686. null,
  2687. null,
  2688. null,
  2689. null,
  2690. null,
  2691. linksaveBulkCheck //function delegate
  2692. )
  2693. }
  2694. if (GM_getValue("Check_videobb_dot_com_links", false))
  2695. {
  2696. addHost(
  2697. "videobb", //hostname
  2698. "videobb\\.com\/(?:video\/|watch_video\\.php\\?v=)\\w+", //linkregex
  2699. "//a[contains(@href,'videobb.com')]", //xpath
  2700. null, //blocksize
  2701. null, //corrmatch
  2702. /watch_video\.php\?v=/, //corrreplwhat
  2703. 'video/', //corrreplwith
  2704. null, //separator
  2705. 'http://www.videobb.com/link_checker.php',
  2706. 'links=',
  2707. /videobb\.com\/video\/(\w+)/,
  2708. /<td>http:\/\/(?:www\.|)videobb.com\/video\/\w+<\/td>\s+<td>.+?<\/td>\s+<td>\d+:\d+<\/td>\s+<td>Available/g,
  2709. /<td>http:\/\/(?:www\.|)videobb.com\/video\/\w+<\/td>\s+<td><\/td>\s+<td>N\/A<\/td>\s+<td>Not Available/g,
  2710. null,
  2711. null //function delegate
  2712. )
  2713. }
  2714. /* if (GM_getValue("Check_cramit_dot_in_links", false))
  2715. {
  2716. addHost(
  2717. "cramit,cramitin", //hostname
  2718. "cramit(?:\\.in|in\\.net)\/", //linkregex
  2719. "//a[contains(@href,'cramitin.net') or contains(@href,'cramit.in')]", //xpath
  2720. null, //blocksize
  2721. null, //corrmatch
  2722. null, //corrreplwhat
  2723. null, //corrreplwith
  2724. null, //separator
  2725. 'http://cramit.in/checkfiles.html',
  2726. 'op=checkfiles&process=CHECK+URL%27S&list=',
  2727. /(cramit(?:\.in|in\.net)\/\w+)/,
  2728. /green>http:\/\/(?:www\.|)cramit(?:\.in|in\.net)\/\w+/g,
  2729. /red'>http:\/\/(?:www\.|)cramit(?:\.in|in\.net)\/\w+/g,
  2730. /orange'>http:\/\/(?:www\.|)cramit(?:\.in|in\.net)\/\w+/g,
  2731. null //function delegate
  2732. )
  2733. }
  2734. if (GM_getValue("Check_turbobit_dot_net_links", false))
  2735. {
  2736. addHost(
  2737. "turbobit", //hostname
  2738. "turbobit\\.(?:net|pl)\/(?:\\w+\/|).+?\\.html", //linkregex
  2739. "//a[contains(@href,'turbobit.')]", //xpath
  2740. null, //blocksize
  2741. /(turbobit\.(?:net|pl)\/(?:\w+\/|).+?\.html)/, //corrmatch
  2742. null, //corrreplwhat
  2743. null, //corrreplwith
  2744. "\n", //separator
  2745. 'http://turbobit.net/linkchecker/csv',
  2746. 'links_to_check=',
  2747. /(turbobit\.(?:net|pl)\/\w+)/,
  2748. /turbobit\.(?:net|pl)\/.*?, 1/g,
  2749. /turbobit\.(?:net|pl)\/.*?, 0/g,
  2750. null,
  2751. null //function delegate
  2752. )
  2753. } */
  2754. if (GM_getValue("Check_filerio_dot_com_links", false))
  2755. {
  2756. addHost(
  2757. "filekeen,filerio", //hostname
  2758. //"file(?:keen|rio)\\.(?:com|in)\/\\w+\/.", //linkregex
  2759. "file(?:keen|rio)\\.(?:com|in)\/\\w+", //linkregex
  2760. "//a[contains(@href,'filekeen.com') or contains(@href,'filerio.')]", //xpath
  2761. null, //blocksize
  2762. null, //corrmatch
  2763. null, //corrreplwhat
  2764. null, //corrreplwith
  2765. null, //separator
  2766. 'http://filerio.in/checkfiles.html',
  2767. 'op=checkfiles&process=Check+URLs&list=',
  2768. /(file(?:keen|rio)\.(?:com|in)\/\w+)/,
  2769. /green'>http:\/\/(?:www\.|)file(?:keen|rio)\.(?:com|in)\/\w+/g,
  2770. /red'>http:\/\/(?:www\.|)file(?:keen|rio)\.(?:com|in)\/\w+/g,
  2771. /orange'>http:\/\/(?:www\.|)file(?:keen|rio)\.(?:com|in)\/\w+/g,
  2772. null //function delegate
  2773. )
  2774. }
  2775. if (GM_getValue("Check_share_dash_online_dot_biz_links", false))
  2776. {
  2777. addHost(
  2778. "share-online,egoshare", //hostname
  2779. "(?:share-online\\.biz|egoshare\\.com)\/(?:dl\/|download\\.php\\?id=)", //linkregex
  2780. "//a[contains(@href,'share-online.biz') or contains(@href,'egoshare.com')]", //xpath
  2781. null, //blocksize
  2782. /http:\/\/(?:www\.)?(?:share-online\.biz|egoshare\.com)\/d(?:l\/|ownload\.php\?id=)(\w+)/, //corrmatch
  2783. null, //corrreplwhat
  2784. null, //corrreplwith
  2785. "\n", //separator
  2786. 'http://api.share-online.biz/linkcheck.php',
  2787. 'links=',
  2788. /(\w+);(?:OK|NOTFOUND|DELETED)/,
  2789. /\w+;OK/g,
  2790. /\w+;(?:NOTFOUND|DELETED)/g,
  2791. null,
  2792. null //function delegate
  2793. )
  2794. }
  2795. /* if (GM_getValue("Check_quickshare_dot_cz_links", false))
  2796. {
  2797. addHost(
  2798. "quickshare", //hostname
  2799. "quickshare\\.cz\/stahnout-soubor\/\\d+", //linkregex
  2800. "//a[contains(@href,'quickshare.cz')]", //xpath
  2801. null, //blocksize
  2802. null, //corrmatch
  2803. null, //corrreplwhat
  2804. null, //corrreplwith
  2805. null, //separator
  2806. 'http://www.quickshare.cz/nastroje/link-checker',
  2807. 'linky=',
  2808. /quickshare\.cz\/stahnout-soubor\/(\d+(?::\w+)?)/,
  2809. /quickshare\.cz\/stahnout-soubor\/\d+(?::[\w\-.+$!*\/()\[\]\',~%?:@#&=\\]+)?\s*<\/a><\/td><td><img src="\/img\/ok\.gif/g,
  2810. /quickshare\.cz\/stahnout-soubor\/\d+(?::[\w\-.+$!*\/()\[\]\',~%?:@#&=\\]+)?\s*<\/td><td><img src="\/img\/nenalezeno\.gif/g,
  2811. null,
  2812. null //function delegate
  2813. )
  2814. } */
  2815. if (GM_getValue("Check_oboom_dot_com_links", false))
  2816. {
  2817. addHost(
  2818. "oboom", //hostname
  2819. "oboom\\.com\/#?\\w{8}", //linkregex
  2820. "//a[contains(@href,'oboom.com/')]", //xpath
  2821. null, //blocksize
  2822. /oboom\.com\/#?(\w{8})/, //corrmatch
  2823. null, //corrreplwhat
  2824. null, //corrreplwith
  2825. null, //separator
  2826. null,
  2827. null,
  2828. null,
  2829. null, //liveregex
  2830. null, //deadregex
  2831. null,
  2832. oboomBulk //function delegate
  2833. )
  2834. }
  2835. if (GM_getValue("Check_mega_dot_nz_links", false))
  2836. {
  2837. addHost(
  2838. "mega",
  2839. "mega(?:\\.co)?\\.nz\/#!\\w+",
  2840. "//a[contains(@href,'mega.co.nz/') or contains(@href,'mega.nz/')]",
  2841. 100000, //blocksize
  2842. null, //corrmatch
  2843. null, //corrreplwhat
  2844. null, //corrreplwith
  2845. null, //separator
  2846. null,
  2847. null,
  2848. null,
  2849. null,
  2850. null,
  2851. null,
  2852. megaBulkCheck //function delegate
  2853. )
  2854. }
  2855.  
  2856. //the same as GenType2, except api url is 'https://' instead of 'http://www.' and corrmatch is not??? needed
  2857.  
  2858. if (GM_getValue("Check_extabit_dot_com_links", false))
  2859. {
  2860. addHost(
  2861. "extabit", //hostname
  2862. "extabit\\.com\/file\/\\w+", //linkregex
  2863. "//a[contains(@href,'extabit.com')]", //xpath
  2864. null, //blocksize
  2865. null, //corrmatch
  2866. null, //corrreplwhat
  2867. null, //corrreplwith
  2868. "\n", //separator
  2869. "http://extabit.com/linkchecker.jsp", //api url
  2870. "url=", //postdata
  2871. /extabit\.com\/(file\/\w+)/, //linkregex
  2872. /extabit\.com\/file\/\w+\/[^<]+<\/a><\/td>\s*<td class="status"><span class="status_green">/g, //liveregex
  2873. /extabit\.com\/file\/\w+\/[^<]+<\/a><\/td>\s*<td class="status"><span class="status_red">/g, //deadregex
  2874. /extabit\.com\/file\/\w+\/[^<]+<\/a><\/td>\s*<td class="status"><span class="status_yellow">/g, //unavaregex
  2875. extabitBulkCheck //function delegate
  2876. )
  2877. }
  2878. if (GM_getValue("Check_junocloud_dot_me_links", false))
  2879. {
  2880. addHost(
  2881. "junocloud", //hostname
  2882. "junocloud\\.me\/\\w+", //linkregex
  2883. "//a[contains(@href,'junocloud.me')]", //xpath
  2884. null, //blocksize
  2885. null, //corrmatch
  2886. null, //corrreplwhat
  2887. null, //corrreplwith
  2888. "\n", //separator
  2889. "http://junocloud.me/checkfiles.html", //api url
  2890. "op=checkfiles&process=Check+URLs&list=", //postdata
  2891. /(junocloud\.me\/\w+)/, //linkregex
  2892. /<a href="http:\/\/junocloud\.me\/\w+[^<]+<\/a>\s*<span style="color: green/g, //liveregex
  2893. /<a href="http:\/\/junocloud\.me\/\w+[^<]+<\/a>\s*<span style="color: red/g, //deadregex
  2894. null, //unavaregex
  2895. null //function delegate
  2896. )
  2897. }
  2898. if (GM_getValue("Check_webshare_dot_cz_links", false))
  2899. {
  2900. addHost(
  2901. "webshare", //hostname
  2902. "webshare\.cz\/(?:(?:#/)?file/\\w+|\\w+-.*)", //linkregex
  2903. "//a[contains(@href,'webshare.cz')]", //xpath
  2904. 100000, //blocksize
  2905. null, //corrmatch
  2906. null, //corrreplwhat
  2907. null, //corrreplwith
  2908. null, //separator
  2909. null, //api url
  2910. null, //postdata
  2911. null, //linkregex
  2912. null, //liveregex
  2913. null, //deadregex
  2914. null, //unavaregex
  2915. webshareBulkCheck //function delegate
  2916. )
  2917. }
  2918. /////////////////////////////
  2919. // Common function delegate to send links to get checked by host linkchecker
  2920. /////////////////////////////
  2921. // If you define a new delegate, you may use following properties
  2922. // this.links [array] array of strings (link blocks). The links in each block separated with host.splitSeparator.
  2923. // this.apiUrl [string] API or web linkchecker URL
  2924. // this.postData [string] POSTDATA for POST request
  2925. // this.resLiveRegex [regex] matches live substrings in the request response
  2926. // this.resDeadRegex [regex] matches dead substrings in the request response
  2927. // this.resUnavaRegex [regex] matches unava substrings in the request response (the regex is often null!)
  2928. //
  2929. // this.resLinkRegex [regex] matches links further passed to DisplayTheCheckedLinks
  2930. //
  2931. // See the code below for standard bulkcheck handling reference.
  2932. //////////////////////////////
  2933. function genBulkCheck()
  2934. {
  2935. var blockIdx = this.links.length;
  2936. while (blockIdx--)
  2937. {
  2938. postRequest(this.apiUrl, this.postData, this.links[blockIdx],
  2939. this.resLinkRegex, this.resLiveRegex, this.resDeadRegex, this.resUnavaRegex);
  2940. }
  2941. function postRequest(api, postData, links, linkRegex, liveRegex, deadRegex, unavaRegex)
  2942. {
  2943. GM_xmlhttpRequest(
  2944. {
  2945. method: 'POST',
  2946. url: api,
  2947. headers: {
  2948. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  2949. 'Content-type': 'application/x-www-form-urlencoded',
  2950. 'Referer': api,
  2951. 'X-Requested-With': 'XMLHttpRequest'
  2952. },
  2953. data: postData + encodeURIComponent(links),
  2954. onload: function (result)
  2955. {
  2956. var res = result.responseText;
  2957. // GM_log(res);
  2958. var i;
  2959.  
  2960. var livelinks = res.match(liveRegex);
  2961. var deadlinks = res.match(deadRegex);
  2962. // GM_log(livelinks);
  2963. // GM_log(deadlinks);
  2964. if (livelinks != null)
  2965. {
  2966. i = livelinks.length - 1;
  2967. do
  2968. {
  2969. livelinks[i] = livelinks[i].match(linkRegex)[1];
  2970. }
  2971. while (i--);
  2972. DisplayTheCheckedLinks(livelinks, 'alive_link');
  2973. }
  2974.  
  2975. if (deadlinks != null)
  2976. {
  2977. i = deadlinks.length - 1;
  2978. do
  2979. {
  2980. deadlinks[i] = deadlinks[i].match(linkRegex)[1];
  2981. }
  2982. while (i--);
  2983. DisplayTheCheckedLinks(deadlinks, 'adead_link');
  2984. }
  2985.  
  2986. if (unavaRegex != null)
  2987. {
  2988. var unavalinks = res.match(unavaRegex);
  2989. if (unavalinks)
  2990. {
  2991. i = unavalinks.length - 1;
  2992. do
  2993. {
  2994. unavalinks[i] = unavalinks[i].match(linkRegex)[1];
  2995. }
  2996. while (i--);
  2997. DisplayTheCheckedLinks(unavalinks, 'unava_link');
  2998. }
  2999. }
  3000. }
  3001. });
  3002. }
  3003. }
  3004. //specialized bulkchecking handlers follow
  3005. function webshareBulkCheck()
  3006. {
  3007. var arr = this.links[0].split("\r\n");
  3008. var i = arr.length;
  3009. while(i--)
  3010. {
  3011. postRequest(arr[i]);
  3012. }
  3013. //function postRequest(api, postData, links, linkRegex, liveRegex, deadRegex, unavaRegex)
  3014. function postRequest(wsLink)
  3015. {
  3016. var id = wsLink.match(/webshare\.cz\/(?:(?:#\/)?file\/)?(\w+)/)[1];
  3017. GM_xmlhttpRequest(
  3018. {
  3019. method: 'POST',
  3020. url: "http://webshare.cz/api/file_info/",
  3021. headers: {
  3022. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  3023. 'Content-type': 'application/x-www-form-urlencoded',
  3024. 'Referer': "",
  3025. },
  3026. data: "wst=&ident=" + id,
  3027. onload: function (result)
  3028. {
  3029. var res = result.responseText;
  3030. if (res.match(/<name>.+?<\/name>/))
  3031. {
  3032. DisplayTheCheckedLinks([id], 'alive_link');
  3033. }
  3034. else
  3035. {
  3036. DisplayTheCheckedLinks([id], 'adead_link');
  3037. }
  3038. }
  3039. });
  3040. }
  3041. }
  3042. //like genBulkCheck, but extabit linkchecker only works when logged in. If not logged in, non-bulk checking has to be used.
  3043. //extabit also doesn't like requests in fast succession, so some delays are added.
  3044. function extabitBulkCheck()
  3045. {
  3046. var timeoutDelay = 0;
  3047. var blockIdx = this.links.length;
  3048. while (blockIdx--)
  3049. {
  3050. postRequest(this.apiUrl, this.postData, this.links[blockIdx],
  3051. this.resLinkRegex, this.resLiveRegex, this.resDeadRegex, this.resUnavaRegex);
  3052. }
  3053. function postRequest(api, postData, links, linkRegex, liveRegex, deadRegex, unavaRegex)
  3054. {
  3055. GM_xmlhttpRequest(
  3056. {
  3057. method: 'POST',
  3058. url: api,
  3059. headers: {
  3060. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  3061. 'Content-type': 'application/x-www-form-urlencoded',
  3062. 'Referer': api,
  3063. 'X-Requested-With': 'XMLHttpRequest'
  3064. },
  3065. data: postData + encodeURIComponent(links),
  3066. onload: function (result)
  3067. {
  3068. var res = result.responseText;
  3069. if (/id="registration_header"/.test(res)) //not logged in, have to use non-bulk
  3070. {
  3071. function geturlfunc(link, tryID) //basically the geturl function with some changes (compacted, displaythecheckedlinkS, multiple tries)
  3072. {
  3073. //GM_log(tryID + ': ' + link);
  3074. GM_xmlhttpRequest(
  3075. {
  3076. method: 'GET',
  3077. url: link,
  3078. 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': ""},
  3079. onload: function(result2)
  3080. {
  3081. var res2 = result2.responseText;
  3082. var res2Status = result.status;
  3083. if (/download-file-btn/.test(res2)) {DisplayTheCheckedLinks([link], 'alive_link'); return;}
  3084. if (/Search mirrors|id="mirrb"/.test(res2) || res2Status==404) {DisplayTheCheckedLinks([link], 'adead_link'); return;}
  3085. if (/currently unavailable|temporarily unavailable|disponible en estos momentos|vorläufig unerreichbar|Файл временно недоступен/.test(res2) || res2Status == 500 || res2Status == 503)
  3086. {
  3087. if (tryID < 7)
  3088. setTimeout(function(){geturlfunc(link,tryID+1)}, tryID * 1000 + (Math.random() * tryID * 2000));
  3089. else
  3090. {DisplayTheCheckedLinks([link], 'unava_link'); return;}
  3091. }
  3092. }
  3093. });
  3094. }
  3095. //split the hrefs and check them one by one
  3096. GM_log('Using slow extabit.com link checking. Log in to extabit to use fast bulk checking.');
  3097. links = links.split('\n');
  3098. var i = links.length;
  3099. while (i--)
  3100. {
  3101. if (links[i])
  3102. {
  3103. (function(i){setTimeout(function(){geturlfunc(links[i],1)}, timeoutDelay);})(i);
  3104. timeoutDelay += 500;
  3105. }
  3106. }
  3107. return;
  3108. }
  3109. var i;
  3110.  
  3111. var livelinks = res.match(liveRegex);
  3112. var deadlinks = res.match(deadRegex);
  3113. if (livelinks != null)
  3114. {
  3115. i = livelinks.length - 1;
  3116. do
  3117. {
  3118. livelinks[i] = livelinks[i].match(linkRegex)[1];
  3119. }
  3120. while (i--);
  3121. DisplayTheCheckedLinks(livelinks, 'alive_link');
  3122. }
  3123.  
  3124. if (deadlinks != null)
  3125. {
  3126. i = deadlinks.length - 1;
  3127. do
  3128. {
  3129. deadlinks[i] = deadlinks[i].match(linkRegex)[1];
  3130. }
  3131. while (i--);
  3132. DisplayTheCheckedLinks(deadlinks, 'adead_link');
  3133. }
  3134.  
  3135. if (unavaRegex != null)
  3136. {
  3137. var unavalinks = res.match(unavaRegex);
  3138. if (unavalinks)
  3139. {
  3140. i = unavalinks.length - 1;
  3141. do
  3142. {
  3143. unavalinks[i] = unavalinks[i].match(linkRegex)[1];
  3144. }
  3145. while (i--);
  3146. DisplayTheCheckedLinks(unavalinks, 'unava_link');
  3147. }
  3148. }
  3149. }
  3150. });
  3151. }
  3152. }
  3153. function k2sBulkCheck()
  3154. {
  3155. var arr = this.links[0].split("\r\n");
  3156. var i = arr.length;
  3157. c=0;
  3158. arrIDs=[];
  3159. while(i--)
  3160. {
  3161. id = arr[i].match(/\/file\/(\w+)/)[1];
  3162. k2salreadyexist=false;
  3163. for (j=0;j<arrIDs.length;j++)
  3164. {
  3165. if (arrIDs[j]==id)
  3166. {
  3167. k2salreadyexist=true;
  3168. break;
  3169. }
  3170. }
  3171. if (k2salreadyexist) continue;
  3172. arrIDs.push(id);
  3173. c++;
  3174. setTimeout(k2sRequest,c*500,arr[i]);
  3175. }
  3176. }
  3177. function k2sRequest(K2SLink)
  3178. {
  3179. var id = K2SLink.match(/\/file\/(\w+)/)[1];
  3180. K2SLink2='http://k2s.cc/file/'+id;
  3181. GM_xmlhttpRequest(
  3182. {
  3183. method: 'GET',
  3184. url: K2SLink,
  3185. headers: {
  3186. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  3187. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  3188. 'Referer': ''
  3189. },
  3190. onload: function (result)
  3191. {
  3192. var res = result.responseText;
  3193. if (res.match('no longer available|div class="well2"|error 404|The system is unable to find the requested action|http://keep2share.cc/file/check.html|To avoid damaged files'))
  3194. {
  3195. DisplayTheCheckedLinks([K2SLink], 'adead_link');
  3196. return;
  3197. }
  3198. if (res.match('method="post">Displaying'))
  3199. {
  3200. DisplayTheCheckedLinks([K2SLink], 'unava_link');
  3201. return;
  3202. }
  3203. if (res.match('Premium only'))
  3204. {
  3205. DisplayTheCheckedLinks([K2SLink], 'prem_link');
  3206. return;
  3207. }
  3208. if (res.match('View File|download-file-info|div class="name fontmyriadpro"|style="color: #9fb143;"'))
  3209. {
  3210. slow_id=new RegExp('<input type="hidden" name="slow_id" value="(\\w+)">');
  3211. slID=slow_id.exec(res)[1];
  3212. GM_xmlhttpRequest(
  3213. {
  3214. method: 'POST',
  3215. url: K2SLink2,
  3216. headers: {
  3217. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  3218. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  3219. 'Content-Type': 'application/x-www-form-urlencoded',
  3220. 'Referer': K2SLink
  3221. },
  3222. data: 'slow_id='+slID+'&yt0=',
  3223. onload: function (result)
  3224. {
  3225. var newres = result.responseText;
  3226. newoversizedtest=new RegExp("Free user can't download large files|Downloading is not possible");
  3227. if (newoversizedtest.test(newres))
  3228. {
  3229. DisplayTheCheckedLinks([K2SLink], 'prem_link');
  3230. return;
  3231. }
  3232. else
  3233. {
  3234. DisplayTheCheckedLinks([K2SLink], 'alive_link');
  3235. return;
  3236. }
  3237. DisplayTheCheckedLinks([K2SLink], 'unava_link');
  3238. return;
  3239. }
  3240. });
  3241. /////////////////////end additional check for oversized links
  3242. return;
  3243. }
  3244. DisplayTheCheckedLinks([K2SLink], 'unava_link');
  3245. return;
  3246. },
  3247. onerror: function ()
  3248. {
  3249. DisplayTheCheckedLinks([K2SLink], 'unava_link');
  3250. return;
  3251. }
  3252. });
  3253. }
  3254. function fboomBulkCheck()
  3255. {
  3256. var arr = this.links[0].split("\r\n");
  3257. var i = arr.length;
  3258. c=0;
  3259. arrIDs=[];
  3260. while(i--)
  3261. {
  3262. id = arr[i].match(/\/file\/(\w+)/)[1];
  3263. fbalreadyexist=false;
  3264. for (j=0;j<arrIDs.length;j++)
  3265. {
  3266. if (arrIDs[j]==id)
  3267. {
  3268. fbalreadyexist=true;
  3269. break;
  3270. }
  3271. }
  3272. if (fbalreadyexist) continue;
  3273. arrIDs.push(id);
  3274. c++;
  3275. setTimeout(fboomRequest,c*500,arr[i]);
  3276. }
  3277. }
  3278. function fboomRequest(FBoomLink)
  3279. {
  3280. var id = FBoomLink.match(/\/file\/(\w+)/)[1];
  3281. FBoomLink2='http://fboom.me/file/'+id;
  3282. GM_xmlhttpRequest(
  3283. {
  3284. method: 'GET',
  3285. url: FBoomLink,
  3286. headers: {
  3287. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  3288. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  3289. 'Referer': ''
  3290. },
  3291. onload: function (result)
  3292. {
  3293. var res = result.responseText;
  3294. if (res.match('no longer available|class="error-v1-title">404<|File not found or deleted|no longer available'))
  3295. {
  3296. DisplayTheCheckedLinks([FBoomLink], 'adead_link');
  3297. return;
  3298. }
  3299. if (res.match('method="post">Displaying'))
  3300. {
  3301. DisplayTheCheckedLinks([FBoomLink], 'unava_link');
  3302. return;
  3303. }
  3304. if (res.match('only for premium members'))
  3305. {
  3306. DisplayTheCheckedLinks([FBoomLink], 'prem_link');
  3307. return;
  3308. }
  3309. if (res.match('id="download-free" href="#"'))
  3310. {
  3311. slow_id=new RegExp('<a id="download-free" href="#" class="free-button btn-u" data-slow-id="(\\w+)">');
  3312. slID=slow_id.exec(res)[1];
  3313. GM_xmlhttpRequest(
  3314. {
  3315. method: 'POST',
  3316. url: FBoomLink2,
  3317. headers: {
  3318. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  3319. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  3320. 'Content-Type': 'application/x-www-form-urlencoded',
  3321. 'Referer': FBoomLink
  3322. },
  3323. data: 'slow_id='+slID,
  3324. onload: function (result)
  3325. {
  3326. var newres = result.responseText;
  3327. newoversizedtest=new RegExp("Free user can't download large files.|Downloading is not possible");
  3328. if (newoversizedtest.test(newres))
  3329. {
  3330. DisplayTheCheckedLinks([FBoomLink], 'prem_link');
  3331. return;
  3332. }
  3333. else
  3334. {
  3335. DisplayTheCheckedLinks([FBoomLink], 'alive_link');
  3336. return;
  3337. }
  3338. DisplayTheCheckedLinks([FBoomLink], 'unava_link');
  3339. return;
  3340. }
  3341. });
  3342. /////////////////////end additional check for oversized links
  3343. return;
  3344. }
  3345. DisplayTheCheckedLinks([FBoomLink], 'unava_link');
  3346. return;
  3347. },
  3348. onerror: function ()
  3349. {
  3350. DisplayTheCheckedLinks([FBoomLink], 'unava_link');
  3351. return;
  3352. }
  3353. });
  3354. }
  3355. function dl4free_1fichier_BulkCheck()
  3356. {
  3357. var arr = this.links[0].split("\r\n");
  3358. var i = arr.length;
  3359. while(i--)
  3360. {
  3361. CorrectRE = new RegExp('(https?):\\/\\/(?:www\\.)?(\\w{5,15})\\.1fichier\\.com');
  3362. arr[i]=arr[i].replace(CorrectRE, '$1://1fichier.com/?$2');
  3363. gethead_dl4free_1fichier(arr[i]);
  3364. }
  3365. }
  3366. function gethead_dl4free_1fichier(link)
  3367. {
  3368. var id = link.match(/(?:1fichier|dl4free)\.com(?:\/)?\?(\w{6,})/)[1];
  3369. GM_xmlhttpRequest(
  3370. {
  3371. method: 'HEAD',
  3372. url: link,
  3373. headers: {
  3374. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  3375. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  3376. 'Referer': ''
  3377. },
  3378. onload: function (result)
  3379. {
  3380. if (result.responseHeaders.match(/Content-Disposition: attachment; filename=/))//direct download
  3381. {
  3382. DisplayTheCheckedLinks([id], 'alive_link');
  3383. return;
  3384. }
  3385. else
  3386. {
  3387. getlink_dl4free_1fichier(link);
  3388. }
  3389. return;
  3390. },
  3391. onerror: function ()
  3392. {
  3393. DisplayTheCheckedLinks([id], 'unava_link');
  3394. }
  3395. });
  3396. }
  3397. function getlink_dl4free_1fichier(link)
  3398. {
  3399. var id = link.match(/(?:1fichier|dl4free)\.com(?:\/)?\?(\w{6,})/)[1];
  3400. GM_xmlhttpRequest(
  3401. {
  3402. method: 'GET',
  3403. url: link,
  3404. headers: {
  3405. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  3406. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  3407. 'Referer': ''
  3408. },
  3409. onload: function (result)
  3410. {
  3411. var res = result.responseText;
  3412. deadRegex=new RegExp('The requested file has been deleted|File not found|file could not be found|Select files to send|Selectionnez les fichiers a envoyer|file has been deleted|Le fichier demande a ete supprime|Le fichier demandé n|<span class="spacer spacer-20"></span>');
  3413. if (deadRegex.test(res))
  3414. {
  3415. DisplayTheCheckedLinks([id], 'adead_link');
  3416. return;
  3417. }
  3418. premiumRegex=new RegExp('only for premium users');
  3419. if (premiumRegex.test(res))
  3420. {
  3421. DisplayTheCheckedLinks([id], 'prem_link');
  3422. return;
  3423. }
  3424. liveRegex=new RegExp('<title>Download</title>|<br/>You must wait|submit" value="Download|Download without SSL encryption|submit" value="Telecharger|submit" value="Telecharger|<input type="submit" value="');
  3425. if (liveRegex.test(res))
  3426. {
  3427. DisplayTheCheckedLinks([id], 'alive_link');
  3428. return;
  3429. }
  3430. DisplayTheCheckedLinks([id], 'unava_link');
  3431. },
  3432. onerror: function ()
  3433. {
  3434. DisplayTheCheckedLinks([id], 'unava_link');
  3435. }
  3436. });
  3437. }
  3438. function depositfilesBulkCheck()
  3439. {
  3440. var arr = this.links[0].split("\r\n");
  3441. var i = arr.length;
  3442. var seqno = Math.floor(Math.random()*1000000000);
  3443. while(i--)
  3444. {
  3445. DFpostRequest(arr[i]);
  3446. }
  3447. }
  3448. function DFpostRequest(DFLink)
  3449. {
  3450. DFLink=DFLink.replace('depositfiles.lt/','depositfiles.com/');
  3451. DFLink=DFLink.replace('depositfiles.org/','depositfiles.com/');
  3452. DFLink=DFLink.replace('dfiles.ru/','depositfiles.com/');
  3453. DFLink=DFLink.replace('dfiles.eu/','depositfiles.com/');
  3454. DFLink=DFLink.replace('depositfiles.com/en/','depositfiles.com/');
  3455. var id = DFLink.match(/depositfiles\.com\/files\/(\w+)/)[1];
  3456. GM_xmlhttpRequest(
  3457. {
  3458. method: "GET",
  3459. url: "http://depositfiles.com/api/get_download_info.php?id=" + id + "&format=json",
  3460. headers: {
  3461. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3462. 'Content-Type': 'application/x-www-form-urlencoded',
  3463. 'Referer': ""
  3464. },
  3465. onload: function (result)
  3466. {
  3467. var res = result.responseText;
  3468. if (res.match('(?:no_file|file_ban)'))
  3469. {
  3470. DisplayTheCheckedLinks([id], 'adead_link');
  3471. return;
  3472. }
  3473. if (res.match('"download_li(?:nk|mit)|password_check|file_storage"'))
  3474. {
  3475. DisplayTheCheckedLinks([id], 'alive_link');
  3476. return;
  3477. }
  3478. DisplayTheCheckedLinks([id], 'unava_link');
  3479. }
  3480. });
  3481. }
  3482.  
  3483. function megaBulkCheck()
  3484. {
  3485. var arr = this.links[0].split("\r\n");
  3486. var i = arr.length;
  3487. var seqno = Math.floor(Math.random()*1000000000);
  3488. while(i--)
  3489. {
  3490. postRequest(arr[i]);
  3491. }
  3492. function postRequest(megaLink)
  3493. {
  3494. megaLink=megaLink.replace('mega.nz/','mega.co.nz/');
  3495. var id = megaLink.match(/mega\.co\.nz\/#!(\w+)(?:!\w+)?/)[1];
  3496. GM_xmlhttpRequest(
  3497. {
  3498. method: "POST",
  3499. url: 'https://g.api.mega.co.nz/cs?id=' + seqno++,
  3500. data: '[{"a":"g","p":"' + id + '","ssl": "1"}]',
  3501. headers: {
  3502. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3503. 'Content-Type': 'application/xml',
  3504. 'Referer': "https://mega.co.nz/"
  3505. },
  3506. onload: function (result)
  3507. {
  3508. var res = $.parseJSON(result.responseText.match(/\[(.+?)\]/)[1]);
  3509. if ((typeof res == "number" && (res == -9 || res == -16 || res == -6)) || res.d)
  3510. {
  3511.  
  3512. DisplayTheCheckedLinks([id], 'adead_link');
  3513. }
  3514. if (res.at)
  3515. {
  3516. DisplayTheCheckedLinks([id], 'alive_link');
  3517. }
  3518. if (res.e == "ETEMPUNAVAIL")
  3519. {
  3520. DisplayTheCheckedLinks([id], 'unava_link');
  3521. }
  3522. }
  3523. });
  3524. }
  3525.  
  3526. }
  3527.  
  3528. function oboomBulk() {
  3529. var a = [], b = [], c = [];
  3530. var array = this.links;
  3531.  
  3532. GM_xmlhttpRequest({
  3533. method: 'GET',
  3534. url: 'https://www.oboom.com/1/guestsession',
  3535. headers: {
  3536. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  3537. 'Content-type': 'application/x-www-form-urlencoded',
  3538. 'Referer': 'https://www.oboom.com',
  3539. 'X-Requested-With': 'XMLHttpRequest'
  3540. },
  3541. onload: function(result) {
  3542. var blockIdx = array.length;
  3543. var token = JSON.parse(result.responseText)[1];
  3544. while (blockIdx--) {
  3545. startCheck(array[blockIdx].split('\r\n'), token);
  3546. }
  3547. }
  3548. });
  3549.  
  3550. function startCheck(links, token) {
  3551. GM_xmlhttpRequest({
  3552. method: 'POST',
  3553. url: "https://api.oboom.com/1/info",
  3554. headers: {
  3555. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  3556. 'Content-type': 'application/x-www-form-urlencoded',
  3557. 'Referer': 'https://www.oboom.com/',
  3558. 'X-Requested-With': 'XMLHttpRequest'
  3559. },
  3560. data: "token=" + token + "&items=" + links.join(","),
  3561. onload: function(result) {
  3562. var res = JSON.parse(result.responseText)[1];
  3563. var i = res.length, s;
  3564.  
  3565. while (i--) {
  3566. s = res[i].state;
  3567. if (s == 'online') a.push(res[i].id);
  3568. 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);
  3569. else c.push(res[i].id);
  3570. }
  3571.  
  3572. if (a.length > 0) DisplayTheCheckedLinks(a, 'alive_link');
  3573. if (b.length > 0) DisplayTheCheckedLinks(b, 'adead_link');
  3574. if (c.length > 0) DisplayTheCheckedLinks(c, 'unava_link');
  3575. }
  3576. });
  3577. }
  3578. }
  3579. function linksaveBulkCheck()
  3580. {
  3581. var arr = this.links[0].split("\r\n");
  3582. var i = arr.length;
  3583. while(i--)
  3584. {
  3585. postRequest(arr[i]);
  3586. }
  3587. function postRequest(lsLink)
  3588. {
  3589. GM_xmlhttpRequest(
  3590. {
  3591. method: "GET",
  3592. url: lsLink + '-t.jpg',
  3593. headers: {
  3594. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3595. 'Accept': 'text/xml',
  3596. 'Referer': ""
  3597. },
  3598. onload: function (result)
  3599. {
  3600. var imgLen = result.responseHeaders.match(/Content-Length: (\d+)/)[1];
  3601. if (imgLen == 965) //online
  3602. {
  3603. DisplayTheCheckedLinks([lsLink], 'alive_link');
  3604. }
  3605.  
  3606. if (imgLen == 972) //offline
  3607. {
  3608. DisplayTheCheckedLinks([lsLink], 'adead_link');
  3609. }
  3610. if (imgLen == 978) //unava
  3611. {
  3612. DisplayTheCheckedLinks([lsLink], 'unava_link');
  3613. }
  3614. }
  3615. });
  3616. }
  3617.  
  3618. }
  3619. function linkcryptBulkCheck()
  3620. {
  3621. var arr = this.links[0].split("\r\n");
  3622. var i = arr.length;
  3623. while(i--)
  3624. {
  3625. postRequest(arr[i]);
  3626. }
  3627. function postRequest(lcLink)
  3628. {
  3629. GM_xmlhttpRequest(
  3630. {
  3631. method: "GET",
  3632. url: 'http://linkcrypt.ws/api.html?api=status_V1&folderKey=' + lcLink.match(/dir\/(\w+)/)[1],
  3633. headers: {
  3634. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3635. 'Accept': 'text/xml',
  3636. 'Referer': ""
  3637. },
  3638. onload: function (result)
  3639. {
  3640. var res = result.responseText;
  3641. if (res.match(/<errorCode>1101|folderStatus>[23]/)) //Offline status
  3642. {
  3643. DisplayTheCheckedLinks([lcLink], 'adead_link');
  3644. return;
  3645. }
  3646. if (res.match(/folderStatus>1/)) //Online status
  3647. {
  3648. DisplayTheCheckedLinks([lcLink], 'alive_link');
  3649. }
  3650. else
  3651. {
  3652. DisplayTheCheckedLinks([lcLink], 'unava_link');
  3653. }
  3654. }
  3655. });
  3656. }
  3657. }
  3658.  
  3659. function megashareBulkCheck()
  3660. {
  3661. var arr = this.links[0].split("\r\n");
  3662. var i = arr.length;
  3663. while(i--)
  3664. {
  3665. postRequest(arr[i]);
  3666. }
  3667. function postRequest(msLink)
  3668. {
  3669. GM_xmlhttpRequest(
  3670. {
  3671. method: "GET",
  3672. url: msLink,
  3673. headers: {
  3674. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3675. 'Content-Type': 'application/x-www-form-urlencoded',
  3676. 'Referer': ""
  3677. },
  3678. onload: function (result)
  3679. {
  3680. var prZVal = result.responseText.match(/name="(\d+prZVal)" value="(\d+)">/);
  3681. var btn3Name = result.responseText.match(/src="images\/dwn-btn3\.gif" name="(.+?)"/);
  3682. if ((prZVal == null) || (btn3Name == null))
  3683. {
  3684. return;
  3685. }
  3686. GM_xmlhttpRequest(
  3687. {
  3688. method: "POST",
  3689. url: msLink,
  3690. headers: {
  3691. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3692. 'Content-Type': 'application/x-www-form-urlencoded',
  3693. 'Referer': ""
  3694. },
  3695. data: prZVal[1] + "=" + prZVal[2] + '&' + btn3Name[1] + '.x=1&' + btn3Name[1] + '.y=1',
  3696. onload: function (result)
  3697. {
  3698. var res = result.responseText;
  3699. if (res.match(/<div id="err">/))
  3700. {
  3701. DisplayTheCheckedLinks([msLink.match(/\.com(\/\d+)/)[1]], 'adead_link');
  3702. }
  3703. else
  3704. {
  3705. DisplayTheCheckedLinks([msLink.match(/\.com(\/\d+)/)[1]], 'alive_link');
  3706. }
  3707. }
  3708. });
  3709. }
  3710. });
  3711. }
  3712. }
  3713. function ncryptBulkCheck()
  3714. {
  3715. var arr = this.links[0].split("\r\n");
  3716. var i = arr.length;
  3717. while(i--)
  3718. {
  3719. postRequest(arr[i]);
  3720. }
  3721. function postRequest(ncryptLink)
  3722. {
  3723. GM_xmlhttpRequest(
  3724. {
  3725. method: "POST",
  3726. url: 'http://ncrypt.in/api_status.php',
  3727. headers: {
  3728. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3729. 'Content-Type': 'application/x-www-form-urlencoded',
  3730. 'Referer': ""
  3731. },
  3732. data: 'link=' + encodeURI(ncryptLink),
  3733. onload: function (result)
  3734. {
  3735. var foldStatus = result.responseText.match(/(?:offline|online);/);
  3736. switch(foldStatus + ""){
  3737. case "offline;": DisplayTheCheckedLinks([ncryptLink], 'adead_link'); break;
  3738. case "online;": DisplayTheCheckedLinks([ncryptLink], 'alive_link'); break;
  3739. default: DisplayTheCheckedLinks([ncryptLink], 'unava_link');
  3740. }
  3741. }
  3742. });
  3743. }
  3744. }
  3745. function hellshareBulkCheck()
  3746. {
  3747. var links = this.links;
  3748. GM_xmlhttpRequest(
  3749. {
  3750. method: "GET",
  3751. url: 'http://www.hellshare.com',
  3752. headers: {
  3753. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3754. 'Accept': 'text/xml',
  3755. 'Referer': ""
  3756. },
  3757. onload: function (result)
  3758. {
  3759. var domain = result.responseText.match(/param_rau = "www\.hellshare\.(\w+)"/)[1];
  3760.  
  3761. var loc = 'check=Zkontrolovat+dostupnost+soubor%C5%AF&links=';
  3762. if (domain == 'sk')
  3763. loc = 'check=Skontrolova%C5%A5&links=';
  3764. if (domain == 'com')
  3765. loc = 'check=Check+availability&links=';
  3766. if (domain == 'hu')
  3767. loc = 'check=Kontrol%C3%A1lj&links=';
  3768. if (domain == 'pl')
  3769. loc = 'check=Sprawd%C5%BC+dost%C4%99pno%C5%9B%C4%87+plik%C3%B3w&links=';
  3770.  
  3771. genBulkCheck.call({ links: links,
  3772. apiUrl: 'http://www.hellshare.' + domain + '/linkchecker?do=linkChecker-linkcheckerform-submit',
  3773. postData: loc,
  3774. resLinkRegex: /hellshare\.(?:cz|com|sk|hu|pl)\/(?:[\w-\.]+\/|)([\w-\.]+\/\d{5,})/,
  3775. 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,
  3776. resDeadRegex: /<span style="color:gray">.*?<\/span> - <strong>/g,
  3777. resUnavaRegex: null
  3778. });
  3779. }
  3780. });
  3781. }
  3782. /**
  3783. * Displays check result
  3784. * @param {Array} Array of links or link fragments.
  3785. * @param {String} Check result status -> ['alive_link'|'adead_link'|'unava_link']
  3786. */
  3787. function DisplayTheCheckedLinks(links, resultStatus)
  3788. {
  3789. //(a[href*=link_1], a[href*=link_2], ..., a[href*=link_n])
  3790. var $links = $('a[href*="' + links.join('"], a[href*="') + '"]');
  3791. if (Do_not_linkify_DL_links)
  3792. { //TODO into separate jQuery function
  3793. $links.replaceWith(function(){
  3794. return '<span href="' + this.href + '">' + $(this).text() + '</span>';
  3795. });
  3796. $links = $('span[href*="' + links.join('"], span[href*="') + '"]');
  3797. }
  3798. $links.removeClass().addClass(resultStatus);
  3799. $links.each(function() {
  3800. this.href = Ref_anonymize_service + $(this).attr("href");
  3801. });
  3802. switch(resultStatus)
  3803. {
  3804. case "alive_link": cLinksAlive += $links.length;
  3805. if (Display_tooltip_info) $links.mouseover(displayTooltipInfo);
  3806. break;
  3807. case "adead_link": cLinksDead += $links.length;
  3808. if (Display_tooltip_info) $links.mouseover(displayTooltipError);
  3809. break;
  3810. case "prem_link": cLinksprem += $links.length;
  3811. if (Display_tooltip_info) $links.mouseover(displayTooltipError);
  3812. break;
  3813. case "unava_link": cLinksUnava += $links.length; break;
  3814. default:
  3815. }
  3816. cLinksProcessed += $links.length;
  3817. }
  3818. }
  3819. // starts bulkchecking
  3820. //
  3821. // params
  3822. // filterId [string] restricts link detection with passed id attribute
  3823. function startBulkCheck(filterId)
  3824. {
  3825. var cHosts = bulkHosts.length;
  3826. if (cHosts == 0) //no filehostings selected
  3827. return;
  3828. // STEP 1 linkify the links
  3829. var linkifyRegex = '';
  3830. var hostIdx = cHosts;
  3831. while(hostIdx--)
  3832. {
  3833. linkifyRegex += bulkHosts[hostIdx].linkRegex + "|";
  3834. }
  3835. linkifyRegex = linkifyRegex.replace(/\|$/, '');
  3836. linkify(linkifyRegex);
  3837. //
  3838. //STEP 2 detect link objects
  3839. var xpathAll = '';
  3840. var hostIdx = cHosts;
  3841. while(hostIdx--)
  3842. {
  3843. xpathAll += bulkHosts[hostIdx].xpath + "|";
  3844. }
  3845. xpathAll = xpathAll.replace(/\]\|\/\/a\[/g, " or ");
  3846. xpathAll = xpathAll.replace(/\]\|/, ')]');
  3847. if (filterId != null) //insert id restriction in the xpath
  3848. {
  3849. xpathAll = xpathAll.replace(/\[/, "[@class='" + filterId + "' and (");
  3850. }
  3851. else
  3852. {
  3853. xpathAll = xpathAll.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  3854. }
  3855. var links = document.evaluate(xpathAll, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  3856. if (filterId == null)
  3857. {
  3858. cLinksTotal += links.snapshotLength;
  3859. }
  3860. //
  3861. //STEP 3 bind links with hostings
  3862. var linkIdx = links.snapshotLength;
  3863. var href = null;
  3864. if (linkIdx == 0) // no links found
  3865. return;
  3866. var name;
  3867. while (linkIdx--)
  3868. {
  3869. href = links.snapshotItem(linkIdx).href;
  3870. try // DO NOT REMOVE, filters crap that went through xpath detection
  3871. {
  3872. name = gimmeHostName(href);
  3873. if (href.match(bulkHostNames[name].linkRegexObject) != null)
  3874. bulkHostNames[name].links.push(href);
  3875. }
  3876. catch(e)
  3877. {
  3878.  
  3879. }
  3880. }
  3881. //
  3882. //STEP 4 process the links for each filehosting
  3883. var hostIdx = cHosts;
  3884. var host;
  3885. var m,n;
  3886. var arr;
  3887. while (hostIdx--)
  3888. {
  3889. host = bulkHosts[hostIdx];
  3890. arr = host.links;
  3891. if (arr.length == 0) //no links for this hosting, skip
  3892. {
  3893. continue;
  3894. }
  3895. //links match corrections
  3896. if (host.corrMatch != null)
  3897. {
  3898. var idx = arr.length;
  3899. while (idx--)
  3900. {
  3901. arr[idx] = arr[idx].match(host.corrMatch)[1];
  3902. }
  3903. }
  3904. //links replace corrections
  3905. if ((host.corrReplWhat != null) && (host.corrReplWith != null))
  3906. {
  3907. var idx = arr.length;
  3908. while (idx--)
  3909. {
  3910. arr[idx] = arr[idx].replace(host.corrReplWhat, host.corrReplWith);
  3911. }
  3912. }
  3913. m = arr.length;
  3914. n = host.blockSize;
  3915. if (m > n)
  3916. {
  3917. //insert block separators (RAND_STRING) into the array
  3918. for(var i = n; i < m; i += n + 1)
  3919. {
  3920. arr.splice(i, 0, RAND_STRING);
  3921. }
  3922. }
  3923.  
  3924. host.func.call({ links: arr.join(host.splitSeparator).split(RAND_STRING),
  3925. apiUrl: host.apiUrl,
  3926. postData: host.postData,
  3927. resLinkRegex: host.resLinkRegex,
  3928. resLiveRegex: host.resLiveRegex,
  3929. resDeadRegex: host.resDeadRegex,
  3930. resUnavaRegex: host.resUnavaRegex
  3931. });
  3932. //clean up
  3933. arr.length = 0;
  3934. }
  3935. //
  3936.  
  3937. function gimmeHostName(link)
  3938. {
  3939. return link.replace(/https?:\/\/.*?http(s)?:\/\//, "http$1://").match(/https?:\/\/(?:www\.|[\w\.])*?([\w-]+)\.(?:co\.uk|co\.nz|\w+)\//)[1];
  3940. }
  3941. }
  3942. function checkLinks(filterId)
  3943. {
  3944. startBulkCheck(filterId);
  3945. start(filterId);
  3946. }
  3947.  
  3948. /**
  3949. * Initialises progress box including event binding and CSS
  3950. */
  3951. function initProgressBox()
  3952. {
  3953. if ($("#warlc-progressbox").length > 0)
  3954. return;
  3955. //progressbox css change size and color of progress box
  3956. GM_addStyle("#warlc-progressbox {position:fixed; background:DimGray;" + Progress_box_background_color +
  3957. "; opacity:" + (Progress_box_opacity / 100) +
  3958. "; bottom:" + Progress_box_pos_bottom +
  3959. "px; right:" + Progress_box_pos_right +
  3960. "px; padding:5px; font-size:20px; font-weight:bold; cursor:default;}\
  3961. \
  3962. .warlc-progressbar {text-align:center; color: DimGray; height:2px; margin-bottom:2px;}\
  3963. \
  3964. .warlc-progressitem {}\
  3965. \
  3966. .alive {color:#00FF7F; " + Live_links_color +
  3967. "; background:transparent url(" + alive_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;} .dead {color:" + Dead_links_color +
  3968. "; background:transparent url(" + adead_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;} .unava {color: " + Temp_unavailable_links_color +
  3969. "; background:transparent url(" + unava_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;} .processing {color:Black; " + Container_links_color +
  3970. "; background:transparent url(" + processing_link_gif + ") no-repeat scroll 100% 50%;padding-right:15px;} .prem {color:" + Premium_links_color +
  3971. "; background:transparent url(" + prem_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;}"
  3972. );
  3973. //
  3974. $('body').append(' <div id="warlc-progressbox">\
  3975. <div class="warlc-progressbar"></div>\
  3976. <span class="warlc-progressitem alive"></span> - \
  3977. <span class="warlc-progressitem dead"></span> - \
  3978. <span class="warlc-progressitem unava"></span> - \
  3979. <span class="warlc-progressitem prem"></span> - \
  3980. <span class="warlc-progressitem processing"></span>\
  3981. </div>');
  3982. $('#warlc-progressbox').hide().click(function(){
  3983. clearInterval(intervalId);
  3984. $(this).hide();
  3985. return false;
  3986. });
  3987. $(".warlc-progressbar").progressbar({complete: function(){
  3988. $(this).fadeOut();
  3989. clearInterval(intervalId); //stop refreshing the stats
  3990. }
  3991. })
  3992. .one('progressbarchange', function(){$('#warlc-progressbox').show();});
  3993. }
  3994. /**
  3995. * Updates progress data in progress box
  3996. */
  3997. function updateProgress()
  3998. {
  3999. $("#warlc-progressbox").attr('aria-valuenow', Math.round(((100 / cLinksTotal) * cLinksProcessed)));
  4000. if (cLinksTotal) // some links were detected on page
  4001. {
  4002. var percProgress = Math.round(((100 / cLinksTotal) * cLinksProcessed));
  4003. var $progressItems = $('#warlc-progressbox > .warlc-progressitem');
  4004. $(".warlc-progressbar").progressbar('option', 'value', percProgress);
  4005. if ((cLinksTotal - cLinksProcessed) == 0)
  4006. {
  4007. $progressItems.first().text(cLinksAlive)
  4008. .next().text(cLinksDead)
  4009. .next().text(cLinksUnava)
  4010. .next().text(cLinksprem)
  4011. .next().remove();
  4012. $('#warlc-progressbox').html($('#warlc-progressbox').html().substr(0,$('#warlc-progressbox').html().lastIndexOf(">")+1));
  4013. $('#warlc-progressbox div:first-child').remove();
  4014. }
  4015. else
  4016. {
  4017. $progressItems.first().text(cLinksAlive)
  4018. .next().text(cLinksDead)
  4019. .next().text(cLinksUnava)
  4020. .next().text(cLinksprem)
  4021. .next().text(cLinksTotal - cLinksProcessed);
  4022. }
  4023. }
  4024. }
  4025.  
  4026. function check_all_links()
  4027. {
  4028. add_WARLC_style();
  4029.  
  4030. if (Show_progress_stats)
  4031. {
  4032. initProgressBox();
  4033. intervalId = setInterval(function(){updateProgress();}, Progress_box_refresh_rate);
  4034. }
  4035.  
  4036. startBulkCheck(null);
  4037. start(null);
  4038.  
  4039. if (!containers_processed)
  4040. {
  4041. processContainers();
  4042. }
  4043. }
  4044.  
  4045. //Copies all found dead links to clipboard - right now for Scriptish only
  4046. function copy_dead_to_clipboard()
  4047. {
  4048. initClipBoardTools();
  4049.  
  4050. var deadlinksxpath = "//.[@class='adead_link']";
  4051.  
  4052. var foundlinks = document.evaluate(deadlinksxpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4053. var foundlinkstext = '';
  4054.  
  4055. var foundlinkIdx = foundlinks.snapshotLength;
  4056.  
  4057. while(foundlinkIdx--)
  4058. {
  4059. if (foundlinks.snapshotItem(foundlinkIdx).innerHTML != ' x')
  4060. foundlinkstext += foundlinks.snapshotItem(foundlinkIdx).innerHTML.replace(/\[\/hide:\w+\]/,"") + '\n';
  4061. }
  4062.  
  4063. unsafeWindow.copyToClipboard(foundlinkstext);
  4064. }
  4065.  
  4066. function toggle_autocheck()
  4067. {
  4068. var currentState = GM_getValue("Autocheck", false);
  4069. GM_setValue("Autocheck", !currentState);
  4070.  
  4071. if (currentState == true)
  4072. {
  4073. sendMessage('Autocheck disabled', 'red');
  4074. }
  4075. else
  4076. {
  4077. sendMessage('Autocheck enabled', 'SpringGreen');
  4078. }
  4079. }
  4080. function toggle_Enable_Anonymizer()
  4081. {
  4082. var currentState = GM_getValue("Enable_Anonymizer", false);
  4083. GM_setValue("Enable_Anonymizer", !currentState);
  4084.  
  4085. if (currentState == true)
  4086. {
  4087. GM_setValue("Ref_anonymize_service", "");
  4088. sendMessage('Anonymizer Disabled', 'red');
  4089. }
  4090. else
  4091. {
  4092. GM_setValue("Ref_anonymize_service", "http://hiderefer.com/?");
  4093. sendMessage('Anonymizer Enabled', 'SpringGreen');
  4094. }
  4095. }
  4096.  
  4097. function KeyDownHandler(event)
  4098. {
  4099. var kcode = (event.keyCode) ? event.keyCode : event.which;
  4100. if (event.ctrlKey && event.altKey)
  4101. {
  4102. switch(kcode)
  4103. {
  4104. case 65 : check_all_links(); break;
  4105. case 67 : configuration(); break;
  4106. case 68 : copy_dead_to_clipboard(); break;
  4107. case 87 : toggle_autocheck(); break;
  4108. case 90 : toggle_Enable_Anonymizer(); break;
  4109. }
  4110. }
  4111. }
  4112.  
  4113. //
  4114. //
  4115. // SCRIPT EXECUTION START POINT
  4116. //
  4117. //
  4118. // Safari specific GM_getResourceText override
  4119. if (navigator.userAgent.indexOf('Safari') != -1 && navigator.userAgent.indexOf('Chrome') == -1)
  4120. {
  4121. GM_getResourceText = function(res) {
  4122. var $cssText = GM_getValue("jquery_css", "");
  4123. if ($cssText == "")
  4124. {
  4125. GM_xmlhttpRequest(
  4126. {
  4127. method: 'GET',
  4128. url: 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css',
  4129. onload: function (result)
  4130. {
  4131. GM_setValue("jquery_css", result.responseText);
  4132. window.location.reload();
  4133. }
  4134. });
  4135. }
  4136. else
  4137. {
  4138. return $cssText;
  4139. }
  4140. }
  4141. }
  4142. var jQueryUICSS = GM_getResourceText("jQueryUICSS");
  4143. GM_addStyle(jQueryUICSS);
  4144. //init the stuff
  4145. setVariables();
  4146. initBulkCheck();
  4147. //init info boxes
  4148. messageBox.style.position = 'fixed';
  4149. messageBox.style.top = '20px';
  4150. messageBox.style.left = '10px';
  4151. messageBox.style.opacity = '0.85';
  4152. messageBox.style.background = 'DimGray';
  4153. messageBox.style.fontSize = '36px';
  4154. document.body.appendChild(messageBox);
  4155.  
  4156. //register GM menu commands & keyboard shortcut event handler
  4157. if (Keyboard_functions)
  4158. {
  4159. $(document).keydown(KeyDownHandler);
  4160. GM_registerMenuCommand("[W.A.R. Links Checker] Configuration (" + first_key_keycodename + "+" + second_key_keycodename + "+" + String.fromCharCode(CONFIGURATION_KEYCODE) + ")", configuration);
  4161. 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);
  4162. }
  4163. else
  4164. {
  4165. GM_registerMenuCommand("[W.A.R. Links Checker] Configuration", configuration);
  4166. GM_registerMenuCommand("[W.A.R. Links Checker] Check The Links In This Page", check_all_links);
  4167. }
  4168.  
  4169. //start linkchecking
  4170. if (Autocheck)
  4171. {
  4172. $(document).ready(check_all_links);
  4173. }
  4174.  
  4175. //
  4176. //
  4177. // SCRIPT EXECUTION END POINT
  4178. //
  4179. //
  4180.  
  4181. //shows configuration box
  4182. function configuration()
  4183. {
  4184.  
  4185. //prevent multiple creating of config window
  4186. if ($("#hideshow").length)
  4187. {
  4188. $("#hideshow").show();
  4189. return;
  4190. }
  4191.  
  4192. var configcss = '\
  4193. .popup_block .popup fieldset{\
  4194. padding: 1%;\
  4195. border-style: solid;\
  4196. border-width: 1px;\
  4197. border-color: gray;\
  4198. margin-bottom: 1px;\
  4199. }\
  4200. #h3hideshowtitle{\
  4201. font-size: 2em;\
  4202. }\
  4203. #h3hideshow{\
  4204. font-size: 1.5em;\
  4205. }\
  4206. #imghideshow {\
  4207. border: none;\
  4208. }\
  4209. #plusimage{\
  4210. display:inline;\
  4211. }\
  4212. #hideshow {\
  4213. position: fixed;\
  4214. width: 100%;\
  4215. height: 100%;\
  4216. top: 0;\
  4217. left: 0;\
  4218. font-size:12px;\
  4219. z-index:2147483645;\
  4220. text-align:left;\
  4221. }\
  4222. #fade {\
  4223. background: #000;\
  4224. position: fixed;\
  4225. width: 100%;\
  4226. height: 100%;\
  4227. opacity: .80;\
  4228. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";\
  4229. left: 0;\
  4230. z-index: 10;\
  4231. }\
  4232. .popup_block {\
  4233. font-family:verdana;\
  4234. color:black;\
  4235. background: #ddd;\
  4236. padding: 10px 20px;\
  4237. border: 2px solid DarkOrange;\
  4238. float: left;\
  4239. width: 700px;\
  4240. position: absolute;\
  4241. top: 7%;\
  4242. left: 50%;\
  4243. bottom: 7%;\
  4244. margin: 0 0 0 -350px;\
  4245. -moz-border-radius:10px;\
  4246. z-index: 100;\
  4247. \
  4248. }\
  4249. .popup_block .popup {\
  4250. float: left;\
  4251. width: 100%;\
  4252. background: #fff;\
  4253. margin: 10px 0;\
  4254. padding: 0px 0 0px;\
  4255. border-left: 1px solid #bbb;\
  4256. border-top: 1px solid #bbb;\
  4257. border-right: 1px solid #bbb;\
  4258. }\
  4259. #h3hideshow{\
  4260. margin: 1px 0 0px;\
  4261. padding: 1px 10px;\
  4262. border-bottom: 1px solid #bbb;\
  4263. font-size: 1.5em;\
  4264. font-weight: normal;\
  4265. cursor:pointer;\
  4266. background:#DDDDDD none repeat scroll 0 0;\
  4267. }\
  4268. #h3hideshow:hover{\
  4269. background:#C0BEBE none repeat scroll 0 0;\
  4270. }\
  4271. #h3hideshowtitle{\
  4272. margin: 2px 0 0px;\
  4273. padding: 7px 10px;\
  4274. border-bottom: 1px solid #bbb;\
  4275. font-size: 1.5em;\
  4276. font-weight: normal;\
  4277. }\
  4278. .popup_block .popup a {\
  4279. color:DarkSkyBlue;\
  4280. text-decoration:none;\
  4281. }\
  4282. .popup p {\
  4283. padding: 1px 10px;\
  4284. margin: 0px 0;\
  4285. -x-system-font:none;\
  4286. font-family:verdana,geneva,lucida,"lucida grande",arial,helvetica,sans-serif;\
  4287. font-size:10pt;\
  4288. font-size-adjust:none;\
  4289. font-stretch:normal;\
  4290. font-style:normal;\
  4291. font-variant:normal;\
  4292. font-weight:normal;\
  4293. line-height:normal;\
  4294. }\
  4295. #sites {\
  4296. padding: 1px 10px;\
  4297. margin: 0px 0;display:inline-block;width:16em;\
  4298. }\
  4299. #dev_ver {\
  4300. color: #00FF00;\
  4301. background: Black;\
  4302. text-align: right;\
  4303. }\
  4304. #sites_suspended {\
  4305. padding: 1px 10px;\
  4306. margin: 0px 0;display:inline-block;width:16em;\
  4307. text-decoration: line-through;\
  4308. }\
  4309. .popup img.cntrl {\
  4310. position: absolute;\
  4311. right: -15px;\
  4312. top: -15px;\
  4313. }\
  4314. #bulk {\
  4315. font-size:8pt;\
  4316. color:orange;\
  4317. padding: 1px 10px;\
  4318. margin: 0px 0;\
  4319. display:inline-block;\
  4320. width:100px;\
  4321. }\
  4322. #note {\
  4323. font-size:7pt;\
  4324. color:gray;\
  4325. padding: 1px 10px;\
  4326. margin: 0px 0;display:inline-block;\
  4327. min-width:100px;\
  4328. }\
  4329. #rednote {\
  4330. font-size:7pt;\
  4331. color:red;\
  4332. padding: 1px 10px;\
  4333. margin: 0px 0;display:inline-block;\
  4334. }\
  4335. #configinfo {\
  4336. font-size:8pt;\
  4337. color:gray;\
  4338. padding: 1px 10px;\
  4339. margin: 0px 0;display:inline-block;width:60em;\
  4340. }\
  4341. #refAnonymizer, #inputColorLive, #inputColorprem, #hostSearchBox2, #hostSearchBox, #inputColorDead, #inputColorTemp, #inputColorCont, #selectAllButton, #selectNoneButton, #invertButton, #selectAllButton2, #selectNoneButton2, #invertButton2 {\
  4342. color:black;\
  4343. border-style: solid;\
  4344. border-width: 1px;\
  4345. border-color: gray;\
  4346. }\
  4347. #h3hideshowcontent {\
  4348. min-height:220px;\
  4349. max-height:220px;\
  4350. overflow:auto;\
  4351. display: none;\
  4352. padding: 10px 10px;\
  4353. }\
  4354. #specinfo{\
  4355. font-size:14px;\
  4356. }\
  4357. .warlc-ui-tab {\
  4358. height:300px;\
  4359. overflow:auto;\
  4360. }\
  4361. #warlcsitelist2, #warlcsitelist1 {\
  4362. height:220px;\
  4363. border-top: 1px solid #ddd;\
  4364. padding-top: 5px;\
  4365. overflow:auto;\
  4366. }\
  4367. input:hover+label {\
  4368. background:#F1F77C;\
  4369. font-size:110%;\
  4370. }\
  4371. ';
  4372.  
  4373. GM_addStyle(configcss);
  4374.  
  4375. var customRulesRefHTML =
  4376. '\
  4377. <br>\
  4378. A custom rule consists of <b>commands</b>. A command must be on its own line and in this form:<br>\
  4379. <b>@keyword</b> <i>parameter</i>\
  4380. <br><br>\
  4381. 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. \
  4382. <br><br>\
  4383. 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.\
  4384. 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.\
  4385. 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.\
  4386. 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,\
  4387. but all commands until the next valid @customrule are ignored.<br><br>\
  4388. Available forms and types:\
  4389. <ul>\
  4390. <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.\
  4391. <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.\
  4392. <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.\
  4393. <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.\
  4394. </ul>\
  4395. Other available commands:<br>\
  4396. (Note: There can be more than 1 (up to 10) of these commands per rule. In that case, any of them will work.)\
  4397. <ul>\
  4398. <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.\
  4399. It can also specify multiple (up to 10) Top Level Domains (.com, .net etc.)<br>\
  4400. <ul>examples:<br>\
  4401. <li>good: <i>filehost.com/download/</i><br>\
  4402. <li>good: <i>download.filehost.net/?d=</i><br>\
  4403. <li>good: <i>filehost. com net co.uk /</i> - multiple TLDs (note the spaces before, between and after TLDs)<br>\
  4404. <li>ok: <i>filehost.com/</i> - works, but will also find links like filehost.com/login etc. Sometimes it\'s unavoidable though.<br>\
  4405. <li>bad: <i>d8523.filehost.com/</i> - d8523 probably is not constant<br>\
  4406. <li>bad: <i>filehost.com/3bfiq5d1</i> - 3bfiq5d1 probably is not constant<br>\
  4407. <li>bad: <i>filehost.com</i> - no slash<br>\
  4408. </ul>\
  4409. \
  4410. <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.\
  4411. 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 \
  4412. &lt;div&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;p&gt; even if there are new lines, tabulators etc.\
  4413. <li><b>@deadmatch</b> <i>pattern</i> - ignored for OBSOLETE, required for others. (For HEADERS some servers return 404 Error \
  4414. 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.)\
  4415. Two spaces again match any whitespace.\
  4416. <li><b>@unavamatch</b> <i>pattern</i> - optional, ignored for OBSOLETE and HEADERS. If found, the link is deemed temporarily unavailable.\
  4417. Two spaces again match any whitespace.\
  4418. <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. \
  4419. <li><b>@deadlink</b> <i>url</i> - optional. Example dead link.\
  4420. </ul>\
  4421. \
  4422. ';
  4423.  
  4424. //close image and css taken from = http://www.sohtanaka.com/web-design/examples/css-popup icon_close.png;
  4425. var configurationinnerHTML =
  4426. '<div id="fade"></div>\
  4427. <div class="popup_block">\
  4428. <div class="popup">\
  4429. <a href="#"><img id="imghideshow" title="Close" class="cntrl" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAfCAYAAAD0ma06AAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAY1SURBVHjapFZbbFRVFN0zd6Yz08dMoUNf9EGxUItJK62I4AOJEYiQoqE+0OgHCiqG+PgQozH6ofyIJiYEMRqNJpggHySlrRM+hCAtajAUaGgEi9BBSilMO0PnfWeOa597bjt9AEVvsubOPWefs/br7H0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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>\
  4431. <div id="warlc-conf-tabs">\
  4432. <ul>\
  4433. <li><a href="#tabs-1">Filehostings</a></li>\
  4434. <li><a href="#tabs-2">Containers</a></li>\
  4435. <li><a href="#tabs-5">Custom rules</a></li>\
  4436. <li><a href="#tabs-3">Settings</a></li>\
  4437. <li><a href="#tabs-4">About</a></li>\
  4438. </ul>\
  4439. <div id="tabs-1" class="warlc-ui-tab">\
  4440. <div class="warlc-ui-buttonset">\
  4441. <input type="button" class="warlc-ui-select-all" value="Select All">\
  4442. <input type="button" class="warlc-ui-select-none" value="Select None">\
  4443. <input type="button" class="warlc-ui-select-invert" value="Invert">\
  4444. </div><br>\
  4445. <div>Search: <input type="textbox" id="hostSearchBox" value=""></div><br>\
  4446. <div id="warlcsitelist1"><span>Empty</span></div>\
  4447. </div>\
  4448. <div id="tabs-2" class="warlc-ui-tab">\
  4449. <div class="warlc-ui-buttonset">\
  4450. <input type="button" class="warlc-ui-select-all" value="Select All">\
  4451. <input type="button" class="warlc-ui-select-none" value="Select None">\
  4452. <input type="button" class="warlc-ui-select-invert" value="Invert">\
  4453. </div><br>\
  4454. <div>Search: <input type="textbox" id="hostSearchBox2" value=""></div><br>\
  4455. <div id="warlcsitelist2"><span>Empty</span></div>\
  4456. </div>\
  4457. <div id="tabs-5" class="warlc-ui-tab">\
  4458. <div class="warlcsettings">\
  4459. <fieldset><input type="checkbox" id="Custom_rules"> Enable custom rules <div id="bulk">EXPERIMENTAL</div></fieldset>\
  4460. <br>\
  4461. <div>Edit custom rules: \
  4462. <a href="#" id="showCustomRulesReference">(<b>Click here to show/hide the reference</b>)</a>\
  4463. <div id="customRulesReference" style="display:none;">'
  4464. + customRulesRefHTML + '\
  4465. </div>\
  4466. <textarea style="width:100%;height:200px;" id="Custom_rules_text"></textarea>\
  4467. </div>\
  4468. </div>\
  4469. </div>\
  4470. <div id="tabs-3" class="warlc-ui-tab">\
  4471. <div class="warlcsettings">\
  4472. <fieldset>\
  4473. <p><input type="checkbox" id="Keyboard_functions"> Enable keyboard shortcuts</p>\
  4474. <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>\
  4475. </fieldset>\
  4476. <fieldset>\
  4477. <p><input type="checkbox" id="Color_DL_links"> Color DL links</p>\
  4478. <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>\
  4479. <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>\
  4480. <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>\
  4481. <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>\
  4482. <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>\
  4483. <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>\
  4484. <p><input type="checkbox" id="Show_line_through_in_dead_links"> Show line through in dead links</p>\
  4485. <p><input type="checkbox" id="Show_black_background_in_DL_links"> Show black background in DL links</p>\
  4486. <p><input type="checkbox" id="Do_not_linkify_DL_links"> Do NOT linkify DL links</p>\
  4487. <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>\
  4488. <p><input type="checkbox" id="Display_full_links_in_link_containers"> Display full links in link containers</p><br>\
  4489. <fieldset>\
  4490. <p><input type="radio" name="warlciconset" value="0"> No icons</p>\
  4491. <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>\
  4492. <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>\
  4493. <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>\
  4494. </fieldset>\
  4495. </fieldset>\
  4496. <fieldset>\
  4497. <div id="sites"><input type="checkbox" id="Autocheck"> Autocheck</div><br><div id="configinfo">Script starts check automatically.</div><br>\
  4498. </fieldset>\
  4499. <fieldset>\
  4500. <div id="sites"><input type="checkbox" id="Show_progress_stats"> Show progress stats</div><br>\
  4501. </fieldset>\
  4502. <fieldset>\
  4503. <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>\
  4504. </fieldset>\
  4505. <fieldset>\
  4506. <p><input type="checkbox" id="Enable_Anonymizer"> Enable Anonymizer</div><div id="bulk">EXPERIMENTAL Note: Checkbox does not work use CTRL+ALT+Z.</p>\
  4507. <div id="sites"><label for="refAnonymizer">Refererer anonymizing service</label><input type="text" id="refAnonymizer" value="' + Ref_anonymize_service + '"></div>\
  4508. </fieldset>\
  4509. </div>\
  4510. </div>\
  4511. <div id="tabs-4" class="warlc-ui-tab">\
  4512. <p><b>Author:</b> <a href="http://www.warlc.5gbfree.com/viewtopic.php?f=12&t=12">mental</a></p>\
  4513. <br />\
  4514. <p><b>Currently supported:</b><br>\
  4515. Filehostings: ' + allHostNames.length + '<br />\
  4516. Containers: ' + allContainerNames.length + '<br />\
  4517. Obsolete sites: ' + allObsoleteNames.length + '<br /></p>\
  4518. <br />\
  4519. <p><b>Based on:</b><br>\
  4520. <a href="http://userscripts-mirror.org/scripts/show/125631.html">W.A.R. Links Checker - Dev</a></p>\
  4521. <br />\
  4522. <p><b>Uses:</b></p>\
  4523. <p>adam_3\'s <a href="http://userscripts-mirror.org/scripts/show/2254">Linkify ting</a> (modified)</p>\
  4524. <p><a href="http://jquery.com/">jQuery</a> JavaScript Library</p>\
  4525. <br />\
  4526. <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>\
  4527. </div>\
  4528. </div>\
  4529. </div>\
  4530. </div>';
  4531. $('body').append('<div id="hideshow">' + configurationinnerHTML + '</div>');
  4532. $("#warlc-conf-tabs").tabs({ fx: { opacity: 'toggle', duration: 'fast' } });
  4533. $("#imghideshow").click(function(event){$("#hideshow").hide(); event.preventDefault();});
  4534. var elmHostList = document.getElementById("warlcsitelist1");
  4535. var elmContainerList = document.getElementById("warlcsitelist2");
  4536. buildSettings();
  4537. buildSitelist("", allHostNames, elmHostList);
  4538. buildSitelist("", allContainerNames, elmContainerList);
  4539. if (DEBUG_MODE)
  4540. {
  4541. //log all sites availability status
  4542. diagSites();
  4543. }
  4544. //handler for checkbox state change
  4545. function changeConfiguration(e)
  4546. {
  4547. var element = e.target;
  4548.  
  4549. if (element.type == 'checkbox')
  4550. {
  4551. if (element.checked == 1)
  4552. {
  4553. GM_setValue(element.id, true);
  4554. }
  4555. else
  4556. {
  4557. GM_setValue(element.id, false);
  4558. }
  4559.  
  4560. }
  4561. setVariables();
  4562. }
  4563.  
  4564. //Selects all filehosting checkboxes
  4565. function selectAll()
  4566. {
  4567. $(":checkbox:visible:not(:checked)").prop("checked",true)
  4568. .each(function(index, element){GM_setValue(this.id, true)});
  4569. }
  4570.  
  4571. //Deselects all filehosting checkboxes
  4572. function selectNone()
  4573. {
  4574. $(":checkbox:visible:checked").prop("checked",false)
  4575. .each(function(index, element){GM_setValue(this.id, false)});
  4576. }
  4577.  
  4578. //Inverts filehosting checkboxes selection
  4579. function selectInvert()
  4580. {
  4581. var $checked = $(":checkbox:visible:checked");
  4582. var $unchecked = $(":checkbox:visible:not(:checked)");
  4583. $unchecked.prop("checked",true)
  4584. .each(function(index, element){GM_setValue(this.id, true)});
  4585. $checked.prop("checked",false)
  4586. .each(function(index, element){GM_setValue(this.id, false)});
  4587. }
  4588. //toggles anonymizer on off
  4589. function Enable_Anonymizer()
  4590. {
  4591. var $checked = $(":checkbox:visible:checked");
  4592. var $unchecked = $(":checkbox:visible:not(:checked)");
  4593. $unchecked.prop("checked",true)
  4594. .each(function(index, element){GM_setValue(this.id, true)});
  4595. $checked.prop("checked",false)
  4596. .each(function(index, element){GM_setValue(this.id, false)});
  4597. }
  4598.  
  4599. function changeRefAnonymizer(){
  4600. GM_setValue("Ref_anonymize_service", $("#refAnonymizer").attr("value"));
  4601. }
  4602.  
  4603. //Sets live links color
  4604. function changeColorLive()
  4605. {
  4606. var inColorLive = document.getElementById("inputColorLive");
  4607. inColorLive.style.background = inColorLive.value;
  4608. GM_setValue("Live_links_color", inColorLive.value);
  4609. }
  4610.  
  4611. //Sets dead links color
  4612. function changeColorDead()
  4613. {
  4614. var inColorDead = document.getElementById("inputColorDead");
  4615. inColorDead.style.background = inColorDead.value;
  4616. GM_setValue("Dead_links_color", inColorDead.value);
  4617. }
  4618.  
  4619. //Sets temp. unavailable links color
  4620. function changeColorTemp()
  4621. {
  4622. var inColorTemp = document.getElementById("inputColorTemp");
  4623. inColorTemp.style.background = inColorTemp.value;
  4624. GM_setValue("Temp_unavailable_links_color", inColorTemp.value);
  4625. }
  4626.  
  4627. //Sets temp. unavailable links color
  4628. function changeColorCont()
  4629. {
  4630. var inColorCont = document.getElementById("inputColorCont");
  4631. inColorCont.style.background = inColorCont.value;
  4632. GM_setValue("Container_links_color", inColorCont.value);
  4633. }
  4634. //Sets premium. links color
  4635. function changeColorprem()
  4636. {
  4637. var inColorprem = document.getElementById("inputColorprem");
  4638. inColorprem.style.background = inColorprem.value;
  4639. GM_setValue("Premium_links_color", inColorprem.value);
  4640. }
  4641.  
  4642. //Diagnose sites for availability
  4643. function diagSites()
  4644. {
  4645. var boxes = document.getElementById("warlcsitelist1").getElementsByTagName("input");
  4646.  
  4647. for (var i = 0, n = boxes.length - 1; i < n; i++)
  4648. {
  4649. if (boxes[i].type == "checkbox")
  4650. {
  4651. checkAvailability(boxes[i]);
  4652. }
  4653. }
  4654.  
  4655. boxes = document.getElementById("warlcsitelist2").getElementsByTagName("input");
  4656.  
  4657. for (var i = 0, n = boxes.length - 1; i < n; i++)
  4658. {
  4659. if (boxes[i].type == "checkbox")
  4660. {
  4661. checkAvailability(boxes[i]);
  4662. }
  4663. }
  4664.  
  4665. function checkAvailability(cbElm)
  4666. {
  4667. var cb = cbElm;
  4668. GM_xmlhttpRequest(
  4669. {
  4670. method: 'HEAD',
  4671. url: 'http://' + cb.nextSibling.textContent.replace(' ', ''),
  4672. headers: {
  4673. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  4674. 'Accept': 'text/xml',
  4675. 'Referer': ""
  4676. },
  4677. onload: function (result)
  4678. {
  4679. if (result.status != 200)
  4680. {
  4681. GM_log(cb.nextSibling.textContent + ' --- status: [' + result.status + '] ' + result.statusText + ', final url: ' + result.finalUrl);
  4682. }
  4683. },
  4684. onerror: function (result)
  4685. {
  4686. if (result.status != 200)
  4687. {
  4688. GM_log(cb.nextSibling.textContent + ' --- status: [' + result.status + '] ' + result.statusText + ', final url: ' + result.finalUrl);
  4689. }
  4690. }
  4691. });
  4692. }
  4693. }
  4694. function buildSettings()
  4695. {
  4696. $(".warlcsettings :checkbox").each(function(){
  4697. $(this).prop("checked", GM_getValue($(this).attr("id")))
  4698. .click(function(e){
  4699. GM_setValue($(this).attr("id"), $(this).prop("checked"));
  4700. setVariables();
  4701. });
  4702. })
  4703. }
  4704. //Dynamic build of host list
  4705. //param search [string] searches for hostnames matching search substring
  4706. //param siteNames [array] array of site names
  4707. //param targetNode [DOM Node] where the list should be built
  4708. // first child node is replaced
  4709. function buildSitelist(search, siteNames, targetNode)
  4710. {
  4711. var searchRegex = new RegExp("\\|?([\\w\\.-]*" + search.replace(/\./g,"\\.").replace(/-/g, "\\-") + "[\\w\\.-]*)\\|?", "i");
  4712. var $targetNode = $(targetNode).empty();
  4713. var searchedSite = "";
  4714. $.each(siteNames, function(i, site){
  4715. if (searchedSite = site.match(searchRegex))
  4716. {
  4717. var baseSite = site.replace(/\|.+/, ""); //filehosting main domain
  4718. //ensuring backward compatibility with the rest of code, to be refactored later
  4719. var oldRSLCvalue = "Check_" + baseSite.replace(/\|.+/, "").replace(/\./g,"_dot_").replace(/-/g, "_dash_") + "_links";
  4720. //
  4721. $targetNode.append('<input type="checkbox" id="' + oldRSLCvalue +'" />\
  4722. <label for="' + oldRSLCvalue + '">' + searchedSite[1] + '</label>' +
  4723. ((searchedSite[1] != baseSite) ? ('<div id="note"> ( ~ ' + baseSite + ' )</div>') : (""))
  4724. );
  4725. $("#" + oldRSLCvalue).prop("checked", GM_getValue(oldRSLCvalue, false))
  4726. .change(changeConfiguration);
  4727. $targetNode.append('<br />');
  4728. }
  4729. });
  4730. $targetNode.append("<hr>");
  4731. //obsolete hosts checkbox
  4732. $targetNode.append('<input type="checkbox" id="Obsolete_file_hosts" /><label for="Obsolete_file_hosts">Obsolete file hosts</label>');
  4733. $("#Obsolete_file_hosts").prop("checked", GM_getValue("Obsolete_file_hosts", false))
  4734. .change(changeConfiguration);
  4735. $targetNode.append('<br />');
  4736. var foundName = "";
  4737. $.each(allObsoleteNames, function(i, site){
  4738. if (foundName = allObsoleteNames[i].match(searchRegex))
  4739. {
  4740. $targetNode.append('<div id="note">' + foundName[1] + '</div>');
  4741. }
  4742. })
  4743. }
  4744. var hostSearchBox = document.getElementById("hostSearchBox");
  4745. hostSearchBox.addEventListener('keyup', function(){buildSitelist(hostSearchBox.value, allHostNames, elmHostList);}, false);
  4746. var hostSearchBox2 = document.getElementById("hostSearchBox2");
  4747. hostSearchBox2.addEventListener('keyup', function(){buildSitelist(hostSearchBox2.value, allContainerNames, elmContainerList);}, false);
  4748. $(".warlc-ui-select-all").click(selectAll).button();
  4749. $(".warlc-ui-select-none").click(selectNone).button();
  4750. $(".warlc-ui-select-invert").click(selectInvert).button();
  4751. $(".warlc-ui-buttonset").buttonset();
  4752. var inColorLive = document.getElementById("inputColorLive");
  4753. inColorLive.addEventListener('keyup', changeColorLive, false);
  4754.  
  4755. var inColorDead = document.getElementById("inputColorDead");
  4756. inColorDead.addEventListener('keyup', changeColorDead, false);
  4757.  
  4758. var inColorTemp = document.getElementById("inputColorTemp");
  4759. inColorTemp.addEventListener('keyup', changeColorTemp, false);
  4760.  
  4761. var inColorCont = document.getElementById("inputColorCont");
  4762. inColorCont.addEventListener('keyup', changeColorCont, false);
  4763. var inColorprem = document.getElementById("inputColorprem");
  4764. inColorprem.addEventListener('keyup', changeColorprem, false);
  4765. $("#refAnonymizer").change(changeRefAnonymizer);
  4766. //buttons and edit boxes init end
  4767.  
  4768. //icon sets radio buttons
  4769. var radioButtons = document.getElementsByName("warlciconset");
  4770. radioButtons[Icon_set].checked = "checked";
  4771.  
  4772. radioButtons[0].addEventListener("change", updateIconSet);
  4773. radioButtons[1].addEventListener("change", updateIconSet);
  4774. radioButtons[2].addEventListener("change", updateIconSet);
  4775. radioButtons[3].addEventListener("change", updateIconSet);
  4776. function updateIconSet()
  4777. {
  4778. GM_setValue("Icon_set", this.value * 1);
  4779. }
  4780. //
  4781. $('#showCustomRulesReference').click(function(e){
  4782. e.preventDefault();
  4783. $('#customRulesReference').toggle();
  4784. });
  4785. $('#Custom_rules_text')
  4786. .val(Custom_rules_text)
  4787. .change(saveCustomRules);
  4788. function saveCustomRules(e)
  4789. {
  4790. var cr = parseCustomRules(this.value);
  4791. if (cr.info.length)
  4792. 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, ' '));
  4793. GM_setValue('Custom_rules_text', this.value);
  4794. GM_setValue('last_custom_rules_nag', ''+new Date().getTime()); //reset nag
  4795. }
  4796. }
  4797.  
  4798. //begin standard link checking algorithm
  4799. function start(filterId)
  4800. {
  4801. var doNotLinkify = Do_not_linkify_DL_links;
  4802.  
  4803. // USER SELECTED FILE HOSTS INITIALIZATION START
  4804. var http_file_hosts = new Array(); //standard hostings
  4805. var http_file_hosts_coded = new Array(); //hostings which has to be decoded to obtain real checkable link
  4806. var http_file_hosts_obsolete = new Array(); //dead hostings
  4807. var http_file_hosts_headers_only = new Array(); //hostings with direct download, must be handled via headers only
  4808.  
  4809. initFileHosts();
  4810. initFileHostsHeadersOnly();
  4811. initFileHostsCustom(); //CustomRules
  4812. // USER SELECTED FILE HOSTS INITIALIZATION END
  4813.  
  4814. // LINKIFICATION START
  4815. var totalxpath = '';
  4816. var totalxpathcoded = '';
  4817. var totalxpathobsolete = '';
  4818. var totalxpathheadersonly = '';
  4819. var totalourls = '';
  4820.  
  4821. var filehostLen = http_file_hosts.length;
  4822. var filehostCodedLen = http_file_hosts_coded.length;
  4823. var filehostObsoleteLen = http_file_hosts_obsolete.length;
  4824. var filehostHeadersOnlyLen = http_file_hosts_headers_only.length;
  4825.  
  4826. var filehostIdx = filehostLen;
  4827. var filehostCodedIdx = filehostCodedLen;
  4828. var filehostObsoleteIdx = filehostObsoleteLen;
  4829. var filehostHeadersOnlyIdx = filehostHeadersOnlyLen;
  4830.  
  4831. if ((filehostIdx == 0) && (filehostCodedIdx == 0) && (filehostHeadersOnlyIdx == 0) && (filehostObsoleteIdx == 0))
  4832. return;
  4833.  
  4834. while (filehostIdx--)
  4835. {
  4836. totalourls += http_file_hosts[filehostIdx][0] + '|';
  4837. totalxpath += http_file_hosts[filehostIdx][4] + '|';
  4838. }
  4839.  
  4840. while (filehostCodedIdx--)
  4841. {
  4842. totalourls += http_file_hosts_coded[filehostCodedIdx][0] + '|';
  4843. totalxpathcoded += http_file_hosts_coded[filehostCodedIdx][3] + '|';
  4844. }
  4845.  
  4846. while (filehostObsoleteIdx--)
  4847. {
  4848. totalourls += http_file_hosts_obsolete[filehostObsoleteIdx][0] + '|';
  4849. totalxpathobsolete += http_file_hosts_obsolete[filehostObsoleteIdx][1] + '|';
  4850. }
  4851.  
  4852. while (filehostHeadersOnlyIdx--)
  4853. {
  4854. totalourls += http_file_hosts_headers_only[filehostHeadersOnlyIdx][0] + '|';
  4855. totalxpathheadersonly += http_file_hosts_headers_only[filehostHeadersOnlyIdx][3] + '|';
  4856. }
  4857.  
  4858. totalourls = totalourls.replace(/\|$/g, "");
  4859. //TODO: further refactoring needed
  4860. totalxpath = totalxpath.replace(/\]\|\/\/a\[/g, " or ");
  4861. totalxpath = totalxpath.replace(/\]\|/, ')]');
  4862. totalxpathcoded = totalxpathcoded.replace(/\]\|\/\/a\[/g, " or ");
  4863. totalxpathcoded = totalxpathcoded.replace(/\]\|/, ')]');
  4864. totalxpathobsolete = totalxpathobsolete.replace(/\]\|\/\/a\[/g, " or ");
  4865. totalxpathobsolete = totalxpathobsolete.replace(/\]\|/, ')]');
  4866. totalxpathheadersonly = totalxpathheadersonly.replace(/\]\|\/\/a\[/g, " or ");
  4867. totalxpathheadersonly = totalxpathheadersonly.replace(/\]\|/, ')]');
  4868. if (filterId != null) //insert id restriction in the xpath
  4869. {
  4870. totalxpath = totalxpath.replace(/\[/g, "[@class='" + filterId + "' and (");
  4871. totalxpathcoded = totalxpathcoded.replace(/\[/g, "[@class='" + filterId + "' and (");
  4872. totalxpathobsolete = totalxpathobsolete.replace(/\[/g, "[@class='" + filterId + "' and (");
  4873. totalxpathheadersonly = totalxpathheadersonly.replace(/\[/g, "[@class='" + filterId + "' and (");
  4874. }
  4875. else
  4876. {
  4877. totalxpath = totalxpath.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4878. totalxpathcoded = totalxpathcoded.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4879. totalxpathobsolete = totalxpathobsolete.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4880. totalxpathheadersonly = totalxpathheadersonly.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4881. }
  4882. linkify(totalourls);
  4883. //LINKIFICATION END
  4884. //ENCRYPTED LINKS PROCESSING START
  4885. if (http_file_hosts_coded.length > 0)
  4886. {
  4887. var linksCoded = document.evaluate(totalxpathcoded, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4888.  
  4889. // decrypt coded links (redirects, link protectors etc.)
  4890. if (linksCoded.snapshotLength > 0)
  4891. {
  4892. var link;
  4893. var reallinkreg;
  4894. var reallinkcorrection;
  4895.  
  4896. if (filterId == null)
  4897. {
  4898. cLinksTotal += linksCoded.snapshotLength;
  4899. }
  4900.  
  4901. var y = linksCoded.snapshotLength - 1;
  4902. do
  4903. {
  4904. // linksCoded.snapshotItem(y).id = 'processing_link';
  4905. link = linksCoded.snapshotItem(y);
  4906. filehostIdx = filehostCodedLen;
  4907. while (filehostIdx--)
  4908. {
  4909. if (link.href.match(http_file_hosts_coded[filehostIdx][0]))
  4910. {
  4911. link.href = link.href.replace(/http:\/\/.*?(?:\?|=)http:\/\//, 'http://');
  4912. reallinkreg = http_file_hosts_coded[filehostIdx][1];
  4913. reallinkcorrection = http_file_hosts_coded[filehostIdx][2];
  4914.  
  4915. decurl(link, reallinkreg, reallinkcorrection);
  4916. break;
  4917. }
  4918. }
  4919. }
  4920. while (y--);
  4921. }
  4922. }
  4923. //ENCRYPTED LINKS PROCESSING END
  4924.  
  4925. //STANDARD LINKCHECKING START
  4926. if (http_file_hosts.length > 0)
  4927. {
  4928. var lianks = document.evaluate(totalxpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4929.  
  4930. if (filterId == null)
  4931. {
  4932. cLinksTotal += lianks.snapshotLength;
  4933. }
  4934.  
  4935. if (lianks.snapshotLength > 0)
  4936. {
  4937. var link;
  4938.  
  4939. var URL = "";
  4940. var name = "";
  4941. var isAliveRegex = "";
  4942. var isDeadRegex = "";
  4943. var isUnavaRegex = "";
  4944. var ispremRegex = "";
  4945. var tryLoop = false;
  4946.  
  4947. var y = lianks.snapshotLength;
  4948.  
  4949. while (y--)
  4950. {
  4951. link = lianks.snapshotItem(y);
  4952.  
  4953. filehostIdx = filehostLen;
  4954. while (filehostIdx--)
  4955. {
  4956. if (link.href.match(http_file_hosts[filehostIdx][0]))
  4957. {
  4958. link.href = link.href.replace(/http:\/\/.*?http:\/\//, 'http://'); //anonymizers
  4959. isAliveRegex = http_file_hosts[filehostIdx][1];
  4960. isDeadRegex = http_file_hosts[filehostIdx][2];
  4961. isUnavaRegex = http_file_hosts[filehostIdx][3];
  4962. ispremRegex = http_file_hosts[filehostIdx][6];
  4963. tryLoop = http_file_hosts[filehostIdx][5];
  4964.  
  4965. geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, tryLoop);
  4966.  
  4967. break;
  4968. }
  4969. }
  4970. }
  4971. }
  4972. }
  4973. //STANDARD LINKCHECKING END
  4974. //OBSOLETE FILE HOSTS PROCESSING START
  4975. if (filehostObsoleteLen > 0)
  4976. {
  4977. var obsoletelinks = document.evaluate(totalxpathobsolete, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4978.  
  4979. var obsoleteLink;
  4980.  
  4981. //check links
  4982. if (obsoletelinks.snapshotLength > 0)
  4983. {
  4984. var y = obsoletelinks.snapshotLength;
  4985.  
  4986. if (filterId == null)
  4987. {
  4988. cLinksTotal += y;
  4989. }
  4990.  
  4991. while (y--)
  4992. {
  4993. obsoleteLink = obsoletelinks.snapshotItem(y);
  4994.  
  4995. if (Display_tooltip_info)
  4996. {
  4997. obsoleteLink.warlc_error = 'Cause of error: <b>Obsolete filehosting.</b>';
  4998. }
  4999. displayTheCheckedLink(obsoleteLink, 'adead_link');
  5000. }
  5001. }
  5002. }
  5003. //OBSOLETE FILE HOSTS PROCESSING END
  5004.  
  5005. //DIRECT LINKCHECKING START
  5006. if (http_file_hosts_headers_only.length > 0)
  5007. {
  5008. var links = document.evaluate(totalxpathheadersonly, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  5009.  
  5010. //check links
  5011. if (links.snapshotLength > 0)
  5012. {
  5013. var link;
  5014. var isAliveRegex;
  5015. var isDeadRegex;
  5016. var ispremRegex;
  5017.  
  5018. var y = links.snapshotLength;
  5019.  
  5020.  
  5021. if (filterId == null)
  5022. {
  5023. cLinksTotal += y;
  5024. }
  5025.  
  5026. while (y--)
  5027. {
  5028. // links.snapshotItem(y).id = 'processing_link';
  5029. link = links.snapshotItem(y);
  5030. filehostIdx = filehostHeadersOnlyLen;
  5031. while (filehostIdx--)
  5032. {
  5033. if (link.href.match(http_file_hosts_headers_only[filehostIdx][0]))
  5034. {
  5035. link.href = link.href.replace(/http:\/\/.*?(?:\?|=)http:\/\//, 'http://');
  5036. isAliveRegex = http_file_hosts_headers_only[filehostIdx][1];
  5037. isDeadRegex = http_file_hosts_headers_only[filehostIdx][2];
  5038. ispremRegex = http_file_hosts_headers_only[filehostIdx][3];
  5039.  
  5040. geturlHeader(link, isAliveRegex, isDeadRegex, ispremRegex);
  5041.  
  5042. break;
  5043. }
  5044. }
  5045. }
  5046.  
  5047. }
  5048. }
  5049. //DIRECT LINKCHECKING END
  5050.  
  5051.  
  5052. //finds the real url on the page, replaces link.href with it and calls geturl
  5053. function decurl(link, reallinkreg, reallinkcorrection)
  5054. {
  5055.  
  5056. GM_xmlhttpRequest(
  5057. {
  5058. method: 'GET',
  5059. url: link.href,
  5060. headers: {
  5061. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  5062. 'Accept': 'text/xml',
  5063. 'Referer': ""
  5064. },
  5065. onload: function (result)
  5066. {
  5067. // cLinksProcessed++;
  5068.  
  5069. var reallink = result.responseText.match(reallinkreg)[0];
  5070. reallink = reallink.replace(new RegExp(reallinkcorrection, "g"), "");
  5071.  
  5072. link.href = reallink;
  5073.  
  5074. var i = http_file_hosts.length - 1;
  5075. do
  5076. {
  5077. if ((reallink.match(http_file_hosts[i][0])))
  5078. {
  5079. link.href = link.href.replace(/http:\/\/.*?\?http:\/\//, 'http://');
  5080. var isAliveRegex = http_file_hosts[i][1];
  5081. var isDeadRegex = http_file_hosts[i][2];
  5082. var isUnavaRegex = http_file_hosts[i][3];
  5083. var ispremRegex = http_file_hosts[i][4];
  5084.  
  5085. geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, 50);
  5086.  
  5087. break;
  5088. }
  5089. }
  5090. while (i--);
  5091. }
  5092. });
  5093. }
  5094.  
  5095. function randUA()
  5096. {
  5097. //TODO
  5098. }
  5099. //Processes link
  5100. //
  5101. // [string] link link URL
  5102. // [string] isAliveRegex alive link regex
  5103. // [string] isDeadRegex dead link regex
  5104. // [string] isUnavaRegex unavailable link regex
  5105. // [string] ispremRegex premium link regex
  5106. // [boolean] tryLoop repeats request until succeeded
  5107. function geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, tryLoop)
  5108. {
  5109. GM_xmlhttpRequest(
  5110. {
  5111. method: 'GET',
  5112. url: link.href,
  5113. headers: {
  5114. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  5115. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  5116. 'Referer': ""
  5117. },
  5118. onload: function (result)
  5119. {
  5120. var res = result.responseText;
  5121. if (result.responseHeaders.match(/Content-Disposition: attachment; filename=/))//direct download, simple version
  5122. {
  5123. displayTheCheckedLink(link, 'alive_link');
  5124. return;
  5125. }
  5126.  
  5127. if (res.match(isAliveRegex))
  5128. {
  5129. displayTheCheckedLink(link, 'alive_link');
  5130. return;
  5131. }
  5132.  
  5133. if (res.match(isDeadRegex))
  5134. {
  5135. displayTheCheckedLink(link, 'adead_link');
  5136. return;
  5137. }
  5138.  
  5139. if (isUnavaRegex && res.match(isUnavaRegex))
  5140. {
  5141. displayTheCheckedLink(link, 'unava_link');
  5142. return;
  5143. }
  5144. if (res.match(ispremRegex))
  5145. {
  5146. displayTheCheckedLink(link, 'prem_link');
  5147. return;
  5148. }
  5149.  
  5150. var resStatus = result.status;
  5151.  
  5152. if (resStatus == 404)
  5153. {
  5154. displayTheCheckedLink(link, 'adead_link');
  5155. }
  5156. if (resStatus == 500 || resStatus == 503 || resStatus == 403) //not found/available/temp. unava
  5157. {
  5158. if (tryLoop)
  5159. {
  5160. //wait 1-5 seconds and repeat the request
  5161. setTimeout(function(){geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, tryLoop)}, 1000 + (Math.random() * 4000));
  5162. }
  5163. else
  5164. {
  5165. displayTheCheckedLink(link, 'unava_link');
  5166. }
  5167.  
  5168. return;
  5169. }
  5170. },
  5171. onerror: function ()
  5172. {
  5173. displayTheCheckedLink(link, 'unava_link');
  5174. }
  5175. });
  5176. }
  5177.  
  5178. function geturlHeader(link, isAliveRegex, isDeadRegex, ispremRegex)
  5179. {
  5180. GM_xmlhttpRequest(
  5181. {
  5182. method: 'HEAD',
  5183. url: link.href,
  5184. headers: {
  5185. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  5186. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  5187. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  5188. 'Referer': ""
  5189. },
  5190. onload: function (result)
  5191. {
  5192. var resStatus = result.status;
  5193. var resHeaders = "";
  5194. if (resStatus == 403 || resStatus == 404 || resStatus == 500) //not found/available
  5195. {
  5196. displayTheCheckedLink(link, 'adead_link');
  5197. return;
  5198. }
  5199.  
  5200. resHeaders = result.responseHeaders;
  5201.  
  5202. if (resHeaders.match(isDeadRegex))
  5203. {
  5204. displayTheCheckedLink(link, 'adead_link');
  5205. return;
  5206. }
  5207.  
  5208. if (resHeaders.match(isAliveRegex))
  5209. {
  5210. displayTheCheckedLink(link, 'alive_link');
  5211. return;
  5212. }
  5213. if (resHeaders.match(ispremRegex))
  5214. {
  5215. displayTheCheckedLink(link, 'prem_link');
  5216. return;
  5217. }
  5218. },
  5219. onerror: function ()
  5220. {
  5221. displayTheCheckedLink(link, 'unava_link');
  5222. }
  5223. });
  5224. }
  5225.  
  5226. //Delinkfifies the <a> element object
  5227. function delinkifyLink(link)
  5228. {
  5229. var spanElm = document.createElement("span");
  5230. spanElm.className = link.className;
  5231. spanElm.innerHTML = link.innerHTML;
  5232.  
  5233. if (Display_tooltip_info)
  5234. {
  5235. spanElm.href = link.href;
  5236. spanElm.warlc_error = link.warlc_error;
  5237. switch (link.className){
  5238. case "alive_link": spanElm.addEventListener("mouseover", displayTooltipInfo, false); break
  5239. case "adead_link": spanElm.addEventListener("mouseover", displayTooltipError, false); break;
  5240. case "unava_link": //reserved
  5241. case "prem_link": spanElm.addEventListener("mouseover", displayTooltipError, false); break;
  5242. default:
  5243. }
  5244. }
  5245. link.parentNode.replaceChild(spanElm, link);
  5246. }
  5247.  
  5248. //Assigns result status to the <a> element object and calls delinkifying eventually
  5249. //Possible result states: adead_link, alive_link, unava_link, prem_link
  5250. function displayTheCheckedLink(link, resultStatus)
  5251. {
  5252. link.className = resultStatus;
  5253. link.href = Ref_anonymize_service + link.href;
  5254. if (Display_tooltip_info)
  5255. {
  5256. switch (resultStatus){
  5257. case "alive_link": link.addEventListener("mouseover", displayTooltipInfo, false); break
  5258. case "adead_link": link.addEventListener("mouseover", displayTooltipError, false); break;
  5259. case "unava_link": //reserved
  5260. case "prem_link": link.addEventListener("mouseover", displayTooltipInfo, false); break
  5261. default:
  5262. }
  5263. }
  5264. if (doNotLinkify)
  5265. {
  5266. delinkifyLink(link);
  5267. }
  5268. cLinksProcessed++;
  5269.  
  5270. if (resultStatus == "alive_link")
  5271. {
  5272. cLinksAlive++;
  5273. return;
  5274. }
  5275.  
  5276. if (resultStatus == "adead_link")
  5277. {
  5278. cLinksDead++;
  5279. return;
  5280. }
  5281.  
  5282. if (resultStatus == "unava_link")
  5283. {
  5284. cLinksUnava++;
  5285. }
  5286. if (resultStatus == "prem_link")
  5287. {
  5288. cLinksprem++;
  5289. return;
  5290. }
  5291. }
  5292.  
  5293.  
  5294. function initFileHosts()
  5295. {
  5296.  
  5297. function addObsoleteHost(linkRegex, xpathEx)
  5298. {
  5299. var host = new Array(2);
  5300. host[0] = linkRegex;
  5301. host[1] = xpathEx;
  5302. http_file_hosts_obsolete.push(host);
  5303. }
  5304.  
  5305. //obsolete file hosts init start
  5306. if (Obsolete_file_hosts)
  5307. {
  5308. addObsoleteHost("uloz\.cz\/show\/file","//a[contains(@href,'uloz.cz')]");
  5309. addObsoleteHost("storage\\.to\/get","//a[contains(@href,'storage.to')]");
  5310. addObsoleteHost("iskladka\\.cz\/download","//a[contains(@href,'iskladka.cz')]");
  5311. addObsoleteHost("file-rack\\.com\/files","//a[contains(@href,'file-rack.com')]");
  5312. addObsoleteHost("fast-load\\.net\/(\/)?index","//a[contains(@href,'fast-load.net')]");
  5313. addObsoleteHost("subory\\.sk\/download","//a[contains(@href,'subory.sk')]");
  5314. addObsoleteHost("bigandfree\\.com\/\\d+","//a[contains(@href,'bigandfree.com')]");
  5315. addObsoleteHost("fileop\\.com\/\\w+","//a[contains(@href,'fileop.com')]");
  5316. addObsoleteHost("mujsoubor\\.cz\/file\/","//a[contains(@href,'mujsoubor.cz')]");
  5317. addObsoleteHost("sendfile\\.to\/\\w+","//a[contains(@href,'sendfile.to')]");
  5318. addObsoleteHost("superfastfile\\.com\/\\w+","//a[contains(@href,'superfastfile.com')]");
  5319. addObsoleteHost("quickyshare\\.com\/\\w+","//a[contains(@href,'quickyshare.com/')]");
  5320. addObsoleteHost("duckload\\.com\/(?:d|play)","//a[contains(@href,'duckload.com')]");
  5321. addObsoleteHost("uploadstore\\.net\/\\w+","//a[contains(@href,'uploadstore.net')]");
  5322. addObsoleteHost("meinupload\\.com\/dl\/\\d+","//a[contains(@href,'meinupload.com/dl')]");
  5323. addObsoleteHost("dualshare\\.com\/\\w+","//a[contains(@href,'dualshare.com')]");
  5324. addObsoleteHost("2xupload\\.(?:to|de)\/file\/\\w+","//a[contains(@href,'2xupload.to') or contains(@href,'2xupload.de')]");
  5325. addObsoleteHost("oxedion\\.com\/index\\.php\/download\/\\w+","//a[contains(@href,'oxedion.com/index')]");
  5326. addObsoleteHost("uploadline\\.com\/\\d+","//a[contains(@href,'uploadline.com')]");
  5327. addObsoleteHost("dll\\.bz\/file\/\\d+","//a[contains(@href,'dll.bz/file')]");
  5328. addObsoleteHost("movieshare\\.in\/\\w+","//a[contains(@href,'movieshare.in')]");
  5329. addObsoleteHost("milledrive\\.com\/files\/\\d+","//a[contains(@href,'milledrive.com')]");
  5330. addObsoleteHost("quickupload\\.net\/\\w+","//a[contains(@href,'quickupload.net')]");
  5331. addObsoleteHost("safelink\\.in\/\\w+","//a[contains(@href,'safelink.in')]");
  5332. addObsoleteHost("pyramidfiles\\.com\/\\w+","//a[contains(@href,'pyramidfiles.com/')]");
  5333. addObsoleteHost("(?:cloudnator|shragle)\\.com\/files","//a[contains(@href,'cloudnator.com/files') or contains(@href,'shragle.com/files')]");
  5334. addObsoleteHost("batshare\\.com\/\\w+","//a[contains(@href,'batshare.com/')]");
  5335. addObsoleteHost("bitroad\\.net\/download","//a[contains(@href,'bitroad.net/download')]");
  5336. addObsoleteHost("metadivx\\.com\/\\w+","//a[contains(@href,'metadivx.com')]");
  5337. addObsoleteHost("filegaze\\.com\/\\w+","//a[contains(@href,'filegaze.com/')]");
  5338. addObsoleteHost("bulletupload\\.com\/\\w+","//a[contains(@href,'bulletupload.com/')]");
  5339. addObsoleteHost("sharefilehost\\.com\/\\w+","//a[contains(@href,'sharefilehost.com/')]");
  5340. addObsoleteHost("fireuploads\\.net\/\\w+","//a[contains(@href,'fireuploads.net/')]");
  5341. addObsoleteHost("divxlink\\.com\/\\w+","//a[contains(@href,'divxlink.com/')]");
  5342. addObsoleteHost("bzlink\\.us\/\\w+","//a[contains(@href,'bzlink.us/')]");
  5343. addObsoleteHost("filetechnology\\.com\/\\w+","//a[contains(@href,'filetechnology.com/')]");
  5344. addObsoleteHost("filecosy\\.com\/\\w+","//a[contains(@href,'filecosy.com/')]");
  5345. addObsoleteHost("fileserver\\.cc\/\\w+","//a[contains(@href,'fileserver.cc/')]");
  5346. addObsoleteHost("shafiles\\.me\/\\w+","//a[contains(@href,'shafiles.me/')]");
  5347. addObsoleteHost("xfileshare\\.eu\/\\w+","//a[contains(@href,'xfileshare.eu/')]");
  5348. addObsoleteHost("uploadboost\\.com\/\\w+","//a[contains(@href,'uploadboost.com/')]");
  5349. addObsoleteHost("uploadoz\\.com\/\\w+","//a[contains(@href,'uploadoz.com/')]");
  5350. addObsoleteHost("ihostia\\.com\/\\w+","//a[contains(@href,'ihostia.com/')]");
  5351. addObsoleteHost("shareupload\\.com\/\\w+","//a[contains(@href,'shareupload.com/')]");
  5352. addObsoleteHost("ovfile\\.com\/\\w+","//a[contains(@href,'ovfile.com/')]");
  5353. addObsoleteHost("stahuj\\.to\/\\w+","//a[contains(@href,'stahuj.to/')]");
  5354. addObsoleteHost("gigfiles\\.net\/\\w+","//a[contains(@href,'gigfiles.net/')]");
  5355. addObsoleteHost("vidhog\\.com\/\\w+","//a[contains(@href,'vidhog.com/')]");
  5356. addObsoleteHost("filelaser\\.com\/\\w+","//a[contains(@href,'filelaser.com/')]");
  5357. addObsoleteHost("holderfile\\.com\/\\w+","//a[contains(@href,'holderfile.com/')]");
  5358. addObsoleteHost("fileduct\\.(?:com|net)\/\\w+","//a[contains(@href,'fileduct.com/') or contains(@href,'fileduct.net')]");
  5359. addObsoleteHost("filefat\\.com\/\\w+","//a[contains(@href,'filefat.com/')]");
  5360. addObsoleteHost("restfile\\.com\/\\w+","//a[contains(@href,'restfile.com/')]");
  5361. addObsoleteHost("filemashine\\.com\\/download\/\\w+","//a[contains(@href,'filemashine.com/download')]");
  5362. addObsoleteHost("cloudnxt\\.net\/\\w+","//a[contains(@href,'cloudnxt.net/')]");
  5363. addObsoleteHost("uploadrack\\.com\/\\w+","//a[contains(@href,'uploadrack.com')]");
  5364. addObsoleteHost("teradepot\\.com\/\\w+","//a[contains(@href,'teradepot.com')]");
  5365. addObsoleteHost("dataup\\.to\/\\d+\/","//a[contains(@href,'dataup.to')]");
  5366. addObsoleteHost("upit\\.to\/file:\\d+","//a[contains(@href,'upit.to/file')]");
  5367. addObsoleteHost("badongo\\.(?:com|net)\/(?:\\w\\w\/|)(?:vid|cfile|file|pt)\/\\w+","//a[contains(@href,'badongo.com') or contains(@href,'badongo.net')]");
  5368. addObsoleteHost("driveway\\.com\/\\w+","//a[contains(@href,'driveway.com')]");
  5369. addObsoleteHost("eatlime\\.com\/download","//a[contains(@href,'eatlime.com/download')]");
  5370. addObsoleteHost("a2zuploads\\.com\/id\\w+","//a[contains(@href,'a2zuploads.com/id')]");
  5371. addObsoleteHost("friendlyfiles\\.net\/download\/\\w+\/","//a[contains(@href,'friendlyfiles.net/download')]");
  5372. addObsoleteHost("flyfile\\.us\/\\w+","//a[contains(@href,'flyfile.us')]");
  5373. addObsoleteHost("speedyshare\\.com\/\\w+","//a[contains(@href,'speedyshare.com')]");
  5374. addObsoleteHost("brontofile\\.com\/download","//a[contains(@href,'brontofile.com/download')]");
  5375. addObsoleteHost("uploadspace\\.eu\/\\w+","//a[contains(@href,'uploadspace.eu')]");
  5376. addObsoleteHost("fooget\\.com\/\\w+","//a[contains(@href,'fooget.com/')]");
  5377. addObsoleteHost("file-bit.net\/\\w+","//a[contains(@href,'file-bit.net/')]");
  5378. addObsoleteHost("keepfile\\.com\/\\w+","//a[contains(@href,'http://keepfile.com')]");
  5379. addObsoleteHost("piggyshare\\.com\/file\/\\w+","//a[contains(@href,'piggyshare.com')]");
  5380. addObsoleteHost("filecrown\\.com\/\\w+","//a[contains(@href,'filecrown.com')]");
  5381. addObsoleteHost("6giga\\.com\/\\w+","//a[contains(@href,'6giga.com')]");
  5382. addObsoleteHost("uploadjockey\\.com\/download\/\\w+","//a[contains(@href,'uploadjockey.com/download')]");
  5383. addObsoleteHost("bluehost\\.to\/dl=\\w+","//a[contains(@href,'bluehost.to')]");
  5384. addObsoleteHost("coolshare\\.cz\/stahnout\/\\w+","//a[contains(@href,'coolshare.cz/stahnout')]");
  5385. addObsoleteHost("filegu\\.ru\/f\/\\w+","//a[contains(@href,'filegu.ru/f')]");
  5386. addObsoleteHost("filebase\\.to\/files\/\\d+\/","//a[contains(@href,'filebase.to/files')]");
  5387. addObsoleteHost("kickload\\.com\/(?:file|get)\/","//a[contains(@href,'kickload.com/file') or contains(@href,'kickload.com/get')]");
  5388. addObsoleteHost("up-file\\.com\/files\/download\/\\w+\/","//a[contains(@href,'up-file.com/download')]");
  5389. addObsoleteHost("ezyfile\\.net\/\\w+","//a[contains(@href,'ezyfile.net/')]");
  5390. addObsoleteHost("k2files\\.com\/files","//a[contains(@href,'k2files.com/files')]");
  5391. addObsoleteHost("aiotool\\.net\/\\w+","//a[contains(@href,'aiotool.net/')]");
  5392. addObsoleteHost("xvideos\\.com\/files\/\\d+\/\\w+","//a[contains(@href,'xvideos.com/files')]");
  5393. addObsoleteHost("filebling\\.com\/dl\/\\d+\/\\d+\/\\w+","//a[contains(@href,'filebling.com/dl')]");
  5394. addObsoleteHost("loaded\\.it\/divx\/\\w+","//a[contains(@href,'loaded.it/divx')]");
  5395. addObsoleteHost("uploadcell\\.com\/\\w+\/\\w+","//a[contains(@href,'uploadcell.com')]");
  5396. addObsoleteHost("jakfile\\.com\/\\w+","//a[contains(@href,'jakfile.com/')]");
  5397. addObsoleteHost("uploadshare\\.cz\/download\/\\w+\/\\w+","//a[contains(@href,'uploadshare.cz/download')]");
  5398. addObsoleteHost("mangoshare\\.com\/\\w+","//a[contains(@href,'mangoshare.com')]");
  5399. addObsoleteHost("ugotfile\\.com\/file\/\\d+\/\\w+","//a[contains(@href,'ugotfile.com/file')]");
  5400. addObsoleteHost("filestab\\.com\/\\w+","//a[contains(@href,'filestab.com')]");
  5401. addObsoleteHost("dotavi\\.com\/\\w+\/.","//a[contains(@href,'dotavi.com/')]");
  5402. addObsoleteHost("crazyupload\\.com\/\\w+","//a[contains(@href,'crazyupload.com')]");
  5403. addObsoleteHost("gaiafile\\.com\/\\w+","//a[contains(@href,'gaiafile.com')]");
  5404. addObsoleteHost("sharejunky\\.com\/\\w+","//a[contains(@href,'sharejunky.com')]");
  5405. addObsoleteHost("fileho\\.com\/download\/\\d+","//a[contains(@href,'fileho.com/download')]");
  5406. addObsoleteHost("(?:bigandfree|BigAndFree)\\.com\/\\d+","//a[contains(@href,'bigandfree.com') or contains(@href,'BigAndFree.com')]");
  5407. addObsoleteHost("bigfile\\.in\/\\w+","//a[contains(@href,'bigfile.in')]");
  5408. addObsoleteHost("bigshare\\.eu\/download\\.php\\?id=","//a[contains(@href,'bigshare.eu/download.php')]");
  5409. addObsoleteHost("dahosting\\.org\/dl\/\\w+","//a[contains(@href,'dahosting.org/dl')]");
  5410. addObsoleteHost("digisofts\\.net\/\\w+","//a[contains(@href,'digisofts.net')]");
  5411. addObsoleteHost("file4save\\.com\/\\w+\/\\w+","//a[contains(@href,'file4save.com')]");
  5412. addObsoleteHost("filereactor\\.com\/\\w+","//a[contains(@href,'filereactor.com/')]");
  5413. addObsoleteHost("filechip\\.com\/\\w+","//a[contains(@href,'filechip.com')]");
  5414. addObsoleteHost("filescloud\\.com\/\\w+\/\\w+","//a[contains(@href,'filescloud.com')]");
  5415. addObsoleteHost("saveqube\\.com\/getfile\/\\w+","//a[contains(@href,'saveqube.com/getfile')]");
  5416. addObsoleteHost("www2\\.turboshare\\.de\/v\/\\d+","//a[contains(@href,'turboshare.de/v')]");
  5417. addObsoleteHost("z-upload\\.com\/\\w+","//a[contains(@href,'z-upload.com')]");
  5418. addObsoleteHost("youshare\\.com\/view\\.php","//a[contains(@href,'youshare.com/view')]");
  5419. addObsoleteHost("jiffyupload\\.com\/\\w+","//a[contains(@href,'jiffyupload.com')]");
  5420. addObsoleteHost("gigeshare\\.com\/preview\/\\w+","//a[contains(@href,'gigeshare.com')]");
  5421. addObsoleteHost("datenklo\\.net\/dl","//a[contains(@href,'datenklo.net')]");
  5422. addObsoleteHost("upload\\.dj\/download\\.php\\?id=\\w+","//a[contains(@href,'upload.dj/download.php')]");
  5423. addObsoleteHost("loadfiles\\.in\/\\w+\/","//a[contains(@href,'loadfiles.in')]");
  5424. addObsoleteHost("upit\\.to\/file:\\w+\/","//a[contains(@href,'upit.to/file')]");
  5425. addObsoleteHost("zshare\\.net\/(?:download|video|audio)\/\\w+","//a[contains(@href,'zshare.net/')]");
  5426. addObsoleteHost("refile\\.net\/f\/\\?\\w+","//a[contains(@href,'refile.net/f/')]");
  5427. addObsoleteHost("dsfileshare\\.com\/download","//a[contains(@href,'dsfileshare.com/download')]");
  5428. addObsoleteHost("sharesimple\\.net\/\\w{2}\/download","//a[contains(@href,'sharesimple.net')]");
  5429. addObsoleteHost("(?:s\\d+\\.|)4files\\.net\/\\d+","//a[contains(@href,'4files.net')]");
  5430. addObsoleteHost("odsiebie\\.com\/pokaz\/\\d+","//a[contains(@href,'odsiebie.com/pokaz')]");
  5431. addObsoleteHost("filenavi\\.com\/direct\/\\w+","//a[contains(@href,'filenavi.com/direct')]");
  5432. addObsoleteHost("3oof\\.com\/\\w+","//a[contains(@href,'3oof.com/')]");
  5433. addObsoleteHost("meshwaar\\.com\/\\w+","//a[contains(@href,'meshwaar.com')]");
  5434. addObsoleteHost("maxupload\\.com\/files\/\\w+","//a[contains(@href,'maxupload.com/files')]");
  5435. addObsoleteHost("share\\.cx\/videos\/\\d+","//a[contains(@href,'share.cx/videos')]");
  5436. addObsoleteHost("atserver\\.eu\/(?:\\w{2}\/|)download\/\\d+","//a[contains(@href,'atserver.eu')]");
  5437. addObsoleteHost("file2upload\\.net\/download\/\\d+","//a[contains(@href,'file2upload.net/download')]");
  5438. addObsoleteHost("filebling\\.com\/\\w+","//a[contains(@href,'filebling.com')]");
  5439. addObsoleteHost("turboshare\\.(?:eu|com)\/files","//a[contains(@href,'turboshare.') and contains(@href,'/files')]");
  5440. addObsoleteHost("rarhost\\.com\/download","//a[contains(@href,'rarhost.com/download')]");
  5441. addObsoleteHost("isharehd\\.com\/\\w+","//a[contains(@href,'isharehd.com')]");
  5442. addObsoleteHost("datenklo\\.net\/file\\.php\\?id=\\w+","//a[contains(@href,'datenklo.net/file.php')]");
  5443. addObsoleteHost("file2share\\.biz\/download\\.php\\?id=\\w+","//a[contains(@href,'file2share.biz/download.php')]");
  5444. addObsoleteHost("savefiles\\.net\/d\/\\w+\\.html","//a[contains(@href,'savefiles.net/d')]");
  5445. addObsoleteHost("bestsharing\\.com\/files\/\\w+","//a[contains(@href,'bestsharing.com/files')]");
  5446. addObsoleteHost("filecache\\.de\/\\d+","//a[contains(@href,'filecache.de/')]");
  5447. addObsoleteHost("i741\\.com\/files\/\\w+","//a[contains(@href,'i741.com/files')]");
  5448. addObsoleteHost("dataup\\.de\/\\d+","//a[contains(@href,'dataup.de')]");
  5449. addObsoleteHost("fofly\\.com\/\\w+","//a[contains(@href,'fofly.com')]");
  5450. addObsoleteHost("shareonall\\.com\/\\w+","//a[contains(@href,'shareonall.com')]");
  5451. addObsoleteHost("sexuploader\\.com\/(?:|..\/)\\?[d|v]=\\w{8}","//a[contains(@href,'sexuploader.com')]");
  5452. 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')]");
  5453. addObsoleteHost("uploadhyper\\.com\/file\/","//a[contains(@href,'uploadhyper.com')]");
  5454. addObsoleteHost("filespawn\\.com\/file\/","//a[contains(@href,'filespawn.com')]");
  5455. addObsoleteHost("caizzii\\.com\/(?:download|\\?file=)","//a[contains(@href,'caizzii.com')]");
  5456. addObsoleteHost("volnyweb\\.cz\/files\/get\/[\\w-_]+","//a[contains(@href,'volnyweb.cz/files')]");
  5457. addObsoleteHost("gotupload\\.com\/\\w+","//a[contains(@href,'gotupload.com/')]");
  5458. addObsoleteHost("mooload\\.com\/new\/file\\.php\\?file=files\/\\d+\/\\d+","//a[contains(@href,'mooload.com/new/file')]");
  5459. addObsoleteHost("z\\d+\\.zupload\\.com\/download\\.php\\?file=getfile&filepath=\\d+","//a[contains(@href,'zupload.com/download')]");
  5460. addObsoleteHost("mytempdir\\.com\/\\d+","//a[contains(@href,'mytempdir.com/')]");
  5461. addObsoleteHost("usershare\\.net\/\\w+","//a[contains(@href,'usershare.net/')]");
  5462. addObsoleteHost("qshare\\.com\/get\/\\d+\/.","//a[contains(@href,'qshare.com/get')]");
  5463. addObsoleteHost("filescash\\.net\/file\/\\d+","//a[contains(@href,'filescash.net/file')]");
  5464. addObsoleteHost("metahyper\\.com\/\\w+","//a[contains(@href,'metahyper.com/')]");
  5465. addObsoleteHost("combozip\\.com\/\\w+","//a[contains(@href,'combozip.com/')]");
  5466. addObsoleteHost("anonstream\\.com\/get_\\w+","//a[contains(@href,'anonstream.com/get_')]");
  5467. addObsoleteHost("x7\\.to\/\\w+","//a[contains(@href,'x7.to/')]");
  5468. addObsoleteHost("uploadbox\\.com\/files\/\\w+","//a[contains(@href,'uploadbox.com/files')]");
  5469. addObsoleteHost("(?:flyupload\\.)?(?:enterupload|flyupload)\\.com\/[\\?\\w]+","//a[contains(@href,'enterupload.com/') or contains(@href,'flyupload.com/')]");
  5470. addObsoleteHost("filepoint\\.de\/dl\/\\w+","//a[contains(@href,'filepoint.de/dl')]");
  5471. addObsoleteHost("icushare\\.com\/\\w+","//a[contains(@href,'icushare.com/')]");
  5472. addObsoleteHost("oron\\.com\/\\w+","//a[contains(@href,'oron.com/')]");
  5473. addObsoleteHost("mystream\\.to\/file\\-\\d+","//a[contains(@href,'mystream.to/file')]");
  5474. addObsoleteHost("x-fs\\.com\/download\\.php\\?id=\\w+","//a[contains(@href,'x-fs.com/download')]");
  5475. addObsoleteHost("srapid\\.eu\/\\w+","//a[contains(@href,'srapid.eu/')]");
  5476. addObsoleteHost("shareshared\\.com\/\\w+","//a[contains(@href,'shareshared.com/')]");
  5477. addObsoleteHost("sosame\\.cz\/\\w+","//a[contains(@href,'sosame.cz/')]");
  5478. addObsoleteHost("s\\d+\\.filesdump\\.com\/file\/\\w+","//a[contains(@href,'filesdump.com/file')]");
  5479. addObsoleteHost("2-klicks\\.de\/\\?d=\\w+","//a[contains(@href,'2-klicks.de/?d=')]");
  5480. addObsoleteHost("silofiles\\.com\/file\/\\d+","//a[contains(@href,'silofiles.com/file')]");
  5481. addObsoleteHost("upfile\\.in\/\\w+","//a[contains(@href,'upfile.in/')]");
  5482. addObsoleteHost("filehook\\.com\/\\w+","//a[contains(@href,'filehook.com/')]");
  5483. addObsoleteHost("mojofile\\.com\/\\w+","//a[contains(@href,'mojofile.com/')]");
  5484. addObsoleteHost("cloudcache\\.cc\/\\w+","//a[contains(@href,'cloudcache.cc/')]");
  5485. addObsoleteHost("1hostclick\\.com\/\\w+","//a[contains(@href,'1hostclick.com/')]");
  5486. addObsoleteHost("4bytez\\.com\/\\w+","//a[contains(@href,'4bytez.com/')]");
  5487. addObsoleteHost("uploadking\\.com\/\\w+","//a[contains(@href,'uploadking.com/')]");
  5488. addObsoleteHost("nahraj\\.cz\/(?:content|down)\/\\w+","//a[contains(@href,'nahraj.cz/')]");
  5489. addObsoleteHost("megarapid\\.eu\/files\/\\d+","//a[contains(@href,'megarapid.eu/files')]");
  5490. addObsoleteHost("(?:fileserve|uploadstation)\\.com\/(?:file|list)\/\\w+","//a[contains(@href,'fileserve.com/') or contains(@href,'uploadstation.com/')]");
  5491. addObsoleteHost("uploadhere\\.com\/\\w+","//a[contains(@href,'uploadhere.com/')]");
  5492. addObsoleteHost("dualshare\\.com\/\\w+","//a[contains(@href,'dualshare.com/')]");
  5493. addObsoleteHost("yourfilehost\\.com\/media","//a[contains(@href,'yourfilehost.com/media')]");
  5494. addObsoleteHost("ftp2share\\.com\/file\/\\w+","//a[contains(@href,'ftp2share.com/file')]");
  5495. addObsoleteHost("storeandserve\\.com\/download\/\\d+","//a[contains(@href,'storeandserve.com/download')]");
  5496. addObsoleteHost("mountfile\\.com\/file(?:\/\\w+){2}","//a[contains(@href,'mountfile.com/file')]");
  5497. addObsoleteHost("save\\.am\/files\/\\w+","//a[contains(@href,'save.am/files')]");
  5498. addObsoleteHost("transitfiles\\.com\/dl\/\\w+","//a[contains(@href,'transitfiles.com/dl')]");
  5499. addObsoleteHost("smartuploader\\.com\/file\\.php\\?f=\\d+","//a[contains(@href,'smartuploader.com/file.php?=')]");
  5500. addObsoleteHost("skipfile\\.com\/\\w+","//a[contains(@href,'skipfile.com/')]");
  5501. addObsoleteHost("stahnu\\.to\/[\\w\\?]+","//a[contains(@href,'stahnu.to/')]");
  5502. addObsoleteHost("flyshare\.cz\/(?:stahni\/|)\\d+","//a[contains(@href,'flyshare.cz/')]");
  5503. addObsoleteHost("(?:ddlani\\.me|ddlanime\\.com)\/\\w+","//a[contains(@href,'ddlani.me/') or contains(@href,'ddlanime.com/')]");
  5504. addObsoleteHost("loadly\\.com\/\\w+","//a[contains(@href,'loadly.com/')]");
  5505. addObsoleteHost("groovefile\\.com\/\\w+","//a[contains(@href,'groovefile.com/')]");
  5506. addObsoleteHost("filezlot\\.com\/\\w+","//a[contains(@href,'filezlot.com/')]");
  5507. addObsoleteHost("shareator\\.(?:net|com)\/\\w+","//a[contains(@href,'shareator.')]");
  5508. addObsoleteHost("yabadaba\\.ru\/files\/","//a[contains(@href,'yabadaba.ru/files/')]");
  5509. addObsoleteHost("rapidhide\\.com\/download\\.php\\?file=\\w+","//a[contains(@href,'rapidhide.com/download.php')]");
  5510. addObsoleteHost("filejungle\\.com\/[fl]\/\\w+","//a[contains(@href,'filejungle.com/')]");
  5511. addObsoleteHost("kewlshare\\.com\/dl\/\\d+","//a[contains(@href,'kewlshare.com/dl')]");
  5512. addObsoleteHost("petandrive\\.com\/file\/\\w+","//a[contains(@href,'petandrive.com/file')]");
  5513. addObsoleteHost("onionshare\\.com\/\\w+","//a[contains(@href,'onionshare.com/')]");
  5514. addObsoleteHost("rapidable\\.com\/\\w+\/download\\.php\\?id=","//a[contains(@href,'rapidable.com/')]");
  5515. addObsoleteHost("filesdump\\.com\/file\/\\w+\/\\d+","//a[contains(@href,'filesdump.com/file')]");
  5516. addObsoleteHost("file2box\\.(?:net|com)\/\\w+","//a[contains(@href,'file2box.')]");
  5517. addObsoleteHost("(?:filesonic|sharingmatrix|wupload)(?:\\.\\w+){1,2}\/(?:file|folder)\/\\w+","//a[contains(@href,'filesonic.') or contains(@href,'sharingmatrix.com') or contains(@href,'wupload.')]");
  5518. addObsoleteHost("bloggerarticles\\.com\/\\w+","//a[contains(@href,'bloggerarticles.com/')]");
  5519. addObsoleteHost("mojedata\\.sk/","//a[contains(@href,'mojedata.sk/')]");
  5520. addObsoleteHost("sharpfile\\.com\/\\w+","//a[contains(@href,'sharpfile.com/')]");
  5521. addObsoleteHost("upgrand\\.com\/\\w+","//a[contains(@href,'upgrand.com/')]");
  5522. addObsoleteHost("nasdilej\\.cz\/\\w+","//a[contains(@href,'nasdilej.cz/')]");
  5523. addObsoleteHost("mediatack\\.cz\/stahuj/\\w+","//a[contains(@href,'mediatack.cz/stahuj/')]");
  5524. addObsoleteHost("share-it\\.to\/file/\\w+","//a[contains(@href,'share-it.to/file/')]");
  5525. addObsoleteHost("primeupload\\.com\/file/\\w+","//a[contains(@href,'primeupload.com/file/')]");
  5526. addObsoleteHost("(?:uploads\\.glumbo|glumbouploads)\\.com\/\\w+","//a[contains(@href,'uploads.glumbo.com') or contains(@href,'glumbouploads.com')]");
  5527. addObsoleteHost("filebeer\\.info\/\\w+","//a[contains(@href,'filebeer.info/')]");
  5528. addObsoleteHost("baberepublic\\.com\/link\/\\w+","//a[contains(@href,'baberepublic.com/link/')]");
  5529. addObsoleteHost("xtu\\.me\/\\w+","//a[contains(@href,'xtu.me/')]");
  5530. addObsoleteHost("sharebase\\.de\/files\/\\w+","//a[contains(@href,'sharebase.de/files/')]");
  5531. addObsoleteHost("filerobo\\.com\/\\w+","//a[contains(@href,'filerobo.com/')]");
  5532. addObsoleteHost("filevelocity\\.com\/\\w+","//a[contains(@href,'filevelocity.com/')]");
  5533. addObsoleteHost("filezpro\\.com\/\\w+","//a[contains(@href,'filezpro.com/')]");
  5534. addObsoleteHost("file4sharing\\.com\/\\w+","//a[contains(@href,'file4sharing.com/')]");
  5535. addObsoleteHost("cing\\.be\/\\w+","//a[contains(@href,'cing.be/')]");
  5536. addObsoleteHost("ufile\\.eu\/\\w+","//a[contains(@href,'ufile.eu/')]");
  5537. addObsoleteHost("pigsonic\\.com\/\\w+","//a[contains(@href,'pigsonic.com/')]");
  5538. addObsoleteHost("fileupped\\.com\/\\w+","//a[contains(@href,'fileupped.com/')]");
  5539. addObsoleteHost("sharerun\\.com\/\\w+","//a[contains(@href,'sharerun.com/')]");
  5540. addObsoleteHost("rapidslnare\\.com\/\\w+","//a[contains(@href,'rapidslnare.com/')]");
  5541. addObsoleteHost("monsteruploads\\.eu\/\\w+","//a[contains(@href,'monsteruploads.eu/')]");
  5542. addObsoleteHost("b9bb\\.com\/\\w+","//a[contains(@href,'b9bb.com/')]");
  5543. addObsoleteHost("jamber\\.info\/\\w+","//a[contains(@href,'jamber.info/')]");
  5544. addObsoleteHost("(?:megaftp|MegaFTP)\\.com\/\\w+","//a[contains(@href,'megaftp.com/') or contains(@href,'MegaFTP.com/')]");
  5545. addObsoleteHost("desiupload\\.net\/\\?d=\\w+","//a[contains(@href,'desiupload.net/')]");
  5546. addObsoleteHost("file27\\.com\/\\w+","//a[contains(@href,'file27.com/')]");
  5547. addObsoleteHost("yastorage\\.com\/\\w+","//a[contains(@href,'yastorage.com/')]");
  5548. addObsoleteHost("filehost\\.ws\/\\w+","//a[contains(@href,'filehost.ws/')]");
  5549. addObsoleteHost("copyload\\.com\/\\w+","//a[contains(@href,'copyload.com/')]");
  5550. addObsoleteHost("venusfile\\.com\/\\w+","//a[contains(@href,'venusfile.com/')]");
  5551. addObsoleteHost("aieshare\\.com\/\\w+","//a[contains(@href,'aieshare.com/')]");
  5552. addObsoleteHost("fileza\\.net\/\\w+","//a[contains(@href,'fileza.net/')]");
  5553. addObsoleteHost("filerose\\.com\/\\w+","//a[contains(@href,'filerose.com/')]");
  5554. addObsoleteHost("squillion\\.com\/\\w+","//a[contains(@href,'squillion.com/')]");
  5555. addObsoleteHost("fileprohost\\.com\/\\w+","//a[contains(@href,'fileprohost.com/')]");
  5556. addObsoleteHost("bitbonus\\.com\/download\/\\w+","//a[contains(@href,'bitbonus.com/')]");
  5557. addObsoleteHost("warserver\\.cz\/\\w+","//a[contains(@href,'warserver.cz/')]");
  5558. addObsoleteHost("uload\\.to\/\\w+","//a[contains(@href,'uload.to/')]");
  5559. addObsoleteHost("sharedbit\\.net\/\\w+","//a[contains(@href,'sharedbit.net/')]");
  5560. addObsoleteHost("megaload\\.it\/\\w+","//a[contains(@href,'megaload.it/')]");
  5561. addObsoleteHost("filewinds\\.com\/\\w+","//a[contains(@href,'filewinds.com/')]");
  5562. addObsoleteHost("uploadcore\\.com\/\\w+","//a[contains(@href,'uploadcore.com/')]");
  5563. addObsoleteHost("syfiles\\.com\/\\w+","//a[contains(@href,'syfiles.com/')]");
  5564. addObsoleteHost("eyesfile\\.com\/\\w+","//a[contains(@href,'eyesfile.com/')]");
  5565. addObsoleteHost("hotfile\\.com\/\\w+","//a[contains(@href,'hotfile.com/')]");
  5566. addObsoleteHost("superupl\\.com\/\\w+","//a[contains(@href,'superupl.com/')]");
  5567. addObsoleteHost("oteupload\\.com\/\\w+","//a[contains(@href,'oteupload.com/')]");
  5568. addObsoleteHost("henchfile\\.com\/\\w+","//a[contains(@href,'henchfile.com/')]");
  5569. addObsoleteHost("HenchFile\\.com\/\\w+","//a[contains(@href,'HenchFile.com/')]");
  5570. addObsoleteHost("filegag\\.com\/\\w+","//a[contains(@href,'filegag.com/')]");
  5571. addObsoleteHost("filedefend\\.com\/\\w+","//a[contains(@href,'filedefend.com/')]");
  5572. addObsoleteHost("hotfiles\\.ws\/\\w+","//a[contains(@href,'hotfiles.ws/')]");
  5573. addObsoleteHost("share-rapid\\.com\/\\w+","//a[contains(@href,'share-rapid.com/')]");
  5574. addObsoleteHost("rapids\\.cz\/\\w+","//a[contains(@href,'rapids.cz/')]");
  5575. addObsoleteHost("share-credit\\.cz\/\\w+","//a[contains(@href,'share-credit.cz/')]");
  5576. addObsoleteHost("share-central\\.cz\/\\w+","//a[contains(@href,'share-central.cz/')]");
  5577. addObsoleteHost("share-ms\\.cz\/\\w+","//a[contains(@href,'share-ms.cz/')]");
  5578. addObsoleteHost("share-net\\.cz\/\\w+","//a[contains(@href,'share-net.cz/')]");
  5579. addObsoleteHost("srapid\\.cz\/\\w+","//a[contains(@href,'srapid.cz/')]");
  5580. addObsoleteHost("share-rapid\\.cz\/\\w+","//a[contains(@href,'share-rapid.cz/')]");
  5581. addObsoleteHost("wooupload\\.com\/\\w+","//a[contains(@href,'wooupload.com/')]");
  5582. addObsoleteHost("megabitshare\\.com\/\\w+","//a[contains(@href,'megabitshare.com/')]");
  5583. addObsoleteHost("uploking\\.com\/\\w+","//a[contains(@href,'uploking.com/')]");
  5584. addObsoleteHost("esnips\\.com\/\\w+","//a[contains(@href,'esnips.com/')]");
  5585. addObsoleteHost("uplly\\.com\/\\w+","//a[contains(@href,'uplly.com/')]");
  5586. addObsoleteHost("ufox\\.com\/\\w+","//a[contains(@href,'ufox.com/')]");
  5587. addObsoleteHost("clz\\.to\/\\w+","//a[contains(@href,'clz.to/')]");
  5588. addObsoleteHost("cloudzer\\.net\/\\w+","//a[contains(@href,'cloudzer.net/')]");
  5589. addObsoleteHost("cloudzer\\.com\/\\w+","//a[contains(@href,'cloudzer.com/')]");
  5590. addObsoleteHost("extabit\\.com\/\\w+","//a[contains(@href,'extabit.com/')]");
  5591. addObsoleteHost("uploadwaste\\.com\/\\w+","//a[contains(@href,'uploadwaste.com/')]");
  5592. addObsoleteHost("247upload\\.com\/\\w+","//a[contains(@href,'uploadwaste.com/')]");
  5593. addObsoleteHost("2download\\.de\/\\w+","//a[contains(@href,'2download.de/')]");
  5594. addObsoleteHost("4fastfile\\.com\/\\w+","//a[contains(@href,'4fastfile.com/')]");
  5595. addObsoleteHost("asixfiles\\.com\/\\w+","//a[contains(@href,'asixfiles.com/')]");
  5596. addObsoleteHost("berofile\\.com\/\\w+","//a[contains(@href,'berofile.com/')]");
  5597. addObsoleteHost("bigupload\\.com\/\\w+","//a[contains(@href,'bigupload.com/')]");
  5598. addObsoleteHost("cepzo\\.com\/\\w+","//a[contains(@href,'cepzo.com/')]");
  5599. addObsoleteHost("czshare\\.com\/\\w+","//a[contains(@href,'czshare.com/')]");
  5600. addObsoleteHost("clouds\\.to\/\\w+","//a[contains(@href,'clouds.to/')]");
  5601. addObsoleteHost("cobrashare\\.sk\/\\w+","//a[contains(@href,'cobrashare.sk/')]");
  5602. addObsoleteHost("coraldrive\\.net\/\\w+","//a[contains(@href,'coraldrive.net/')]");
  5603. addObsoleteHost("cyberlocker\\.ch\/\\w+","//a[contains(@href,'cyberlocker.ch/')]");
  5604. addObsoleteHost("darkport\\.org\/\\w+","//a[contains(@href,'darkport.org/')]");
  5605. addObsoleteHost("dark-uploads\\.com\/\\w+","//a[contains(@href,'dark-uploads.com/')]");
  5606. addObsoleteHost("davvas\\.com\/\\w+","//a[contains(@href,'davvas.com/')]");
  5607. addObsoleteHost("enigmashare\\.com\/\\w+","//a[contains(@href,'enigmashare.com/')]");
  5608. addObsoleteHost("erofly\\.cz\/\\w+","//a[contains(@href,'erofly.cz/')]");
  5609. addObsoleteHost("fastsonic\\.net\/\\w+","//a[contains(@href,'fastsonic.net/')]");
  5610. addObsoleteHost("filebox\\.com\/\\w+","//a[contains(@href,'filebox.com/')]");
  5611. addObsoleteHost("filecity\\.net\/\\w+","//a[contains(@href,'filecity.net/')]");
  5612. addObsoleteHost("filedap\\.com\/\\w+","//a[contains(@href,'filedap.com/')]");
  5613. addObsoleteHost("filedino\\.com\/\\w+","//a[contains(@href,'filedino.com/')]");
  5614. addObsoleteHost("filedownloads\\.org\/\\w+","//a[contains(@href,'filedownloads.org/')]");
  5615. addObsoleteHost("filefolks\\.com\/\\w+","//a[contains(@href,'filefolks.com/')]");
  5616. addObsoleteHost("fileking\\.co\/\\w+","//a[contains(@href,'fileking.co/')]");
  5617. addObsoleteHost("filemates\\.com\/\\w+","//a[contains(@href,'filemates.com/')]");
  5618. addObsoleteHost("files\\.to\/\\w+","//a[contains(@href,'files.to/')]");
  5619. addObsoleteHost("files2k\\.eu\/\\w+","//a[contains(@href,'files2k.eu/')]");
  5620. addObsoleteHost("filesector\\.cc\/\\w+","//a[contains(@href,'filesector.cc/')]");
  5621. addObsoleteHost("filesega\\.com\/\\w+","//a[contains(@href,'filesega.com/')]");
  5622. addObsoleteHost("filesend\\.net\/\\w+","//a[contains(@href,'filesend.net/')]");
  5623. addObsoleteHost("filestay\\.com\/\\w+","//a[contains(@href,'filestay.com/')]");
  5624. addObsoleteHost("filestrum\\.com\/\\w+","//a[contains(@href,'filestrum.com/')]");
  5625. addObsoleteHost("fileuplo\\.de\/\\w+","//a[contains(@href,'fileuplo.de/')]");
  5626. addObsoleteHost("fileupup\\.com\/\\w+","//a[contains(@href,'fileupup.com/')]");
  5627. addObsoleteHost("forunesia\\.com\/\\w+","//a[contains(@href,'forunesia.com/')]");
  5628. addObsoleteHost("freeuploads\\.fr\/\\w+","//a[contains(@href,'freeuploads.fr/')]");
  5629. addObsoleteHost("uploa\\.dk\/\\w+","//a[contains(@href,'uploa.dk/')]");
  5630. addObsoleteHost("getthebit\\.com\/\\w+","//a[contains(@href,'getthebit.com/')]");
  5631. addObsoleteHost("getzilla\\.net\/\\w+","//a[contains(@href,'getzilla.net/')]");
  5632. addObsoleteHost("goldfile\\.eu\/\\w+","//a[contains(@href,'goldfile.eu/')]");
  5633. addObsoleteHost("good\\.com\/\\w+","//a[contains(@href,'good.com/')]");
  5634. addObsoleteHost("grupload\\.com\/\\w+","//a[contains(@href,'grupload.com/')]");
  5635. addObsoleteHost("hellfile\\.com\/\\w+","//a[contains(@href,'hellfile.com/')]");
  5636. addObsoleteHost("hipfile\\.com\/\\w+","//a[contains(@href,'hipfile.com/')]");
  5637. addObsoleteHost("hitfile\\.com\/\\w+","//a[contains(@href,'hitfile.com/')]");
  5638. addObsoleteHost("hulkfile\\.eu\/\\w+","//a[contains(@href,'hulkfile.eu/')]");
  5639. addObsoleteHost("i-filez\\.com\/\\w+","//a[contains(@href,'i-filez.com/')]");
  5640. addObsoleteHost("ifile\\.ws\/\\w+","//a[contains(@href,'ifile.ws/')]");
  5641. addObsoleteHost("kupload\\.org\/\\w+","//a[contains(@href,'kupload.org/')]");
  5642. addObsoleteHost("duckfile\\.net\/\\w+","//a[contains(@href,'duckfile.net/')]");
  5643. addObsoleteHost("packupload\\.com\/\\w+","//a[contains(@href,'packupload.com/')]");
  5644. addObsoleteHost("terafile\\.com\/\\w+","//a[contains(@href,'terafile.com/')]");
  5645. addObsoleteHost("terafile\\.co\/\\w+","//a[contains(@href,'terafile.co/')]");
  5646. addObsoleteHost("fileom\\.com\/\\w+","//a[contains(@href,'fileom.com/')]");
  5647. addObsoleteHost("luckyshare\\.net\/\\w+","//a[contains(@href,'luckyshare.net/')]");
  5648. addObsoleteHost("lemuploads\\.com\/\\w+","//a[contains(@href,'lemuploads.com/')]");
  5649. addObsoleteHost("limelinx\\.com\/\\w+","//a[contains(@href,'limelinx.com/')]");
  5650. addObsoleteHost("maxshare\\.pl\/\\w+","//a[contains(@href,'maxshare.pl/')]");
  5651. addObsoleteHost("megarelease\\.org\/\\w+","//a[contains(@href,'megarelease.org/')]");
  5652. addObsoleteHost("megashare\\.com\/\\w+","//a[contains(@href,'megashare.com/')]");
  5653. addObsoleteHost("minus\\.com\/\\w+","//a[contains(@href,'minus.com/')]");
  5654. addObsoleteHost("mlfat4arab\\.com\/\\w+","//a[contains(@href,'mlfat4arab.com/')]");
  5655. addObsoleteHost("multishare\\.cz\/\\w+","//a[contains(@href,'multishare.cz/')]");
  5656. addObsoleteHost("nirafile\\.com\/\\w+","//a[contains(@href,'nirafile.com/')]");
  5657. addObsoleteHost("ok2upload\\.com\/\\w+","//a[contains(@href,'ok2upload.com/')]");
  5658. addObsoleteHost("peejeshare\\.com\/\\w+","//a[contains(@href,'peejeshare.com/')]");
  5659. addObsoleteHost("premiuns\\.org\/\\w+","//a[contains(@href,'premiuns.org/')]");
  5660. addObsoleteHost("przeklej\\.net\/\\w+","//a[contains(@href,'przeklej.net/')]");
  5661. addObsoleteHost("qkup\\.net\/\\w+","//a[contains(@href,'qkup.net/')]");
  5662. addObsoleteHost("rapidupload\\.sk\/\\w+","//a[contains(@href,'rapidupload.sk/')]");
  5663. addObsoleteHost("rockdizfile\\.com\/\\w+","//a[contains(@href,'rockdizfile.com/')]");
  5664. addObsoleteHost("rocketfile\\.net\/\\w+","//a[contains(@href,'rocketfile.net/')]");
  5665. addObsoleteHost("share-now\\.net\/\\w+","//a[contains(@href,'share-now.net/')]");
  5666. addObsoleteHost("share76\\.com\/\\w+","//a[contains(@href,'share76.com/')]");
  5667. addObsoleteHost("sharebees\\.com\/\\w+","//a[contains(@href,'sharebees.com/')]");
  5668. addObsoleteHost("sharefiles\\.co\/\\w+","//a[contains(@href,'sharefiles.co/')]");
  5669. addObsoleteHost("slingfile\\.com\/\\w+","//a[contains(@href,'slingfile.com/')]");
  5670. addObsoleteHost("sms4file\\.com\/\\w+","//a[contains(@href,'sms4file.com/')]");
  5671. addObsoleteHost("space4file\\.com\/\\w+","//a[contains(@href,'space4file.com/')]");
  5672. addObsoleteHost("tigershare\\.net\/\\w+","//a[contains(@href,'tigershare.net/')]");
  5673. addObsoleteHost("toucansharing\\.com\/\\w+","//a[contains(@href,'toucansharing.com/')]");
  5674. addObsoleteHost("ubuntuone\\.com\/\\w+","//a[contains(@href,'ubuntuone.com/')]");
  5675. addObsoleteHost("unextfiles\\.com\/\\w+","//a[contains(@href,'unextfiles.com/')]");
  5676. addObsoleteHost("upaj\\.pl\/\\w+","//a[contains(@href,'upaj.pl/')]");
  5677. addObsoleteHost("upfile\\.biz\/\\w+","//a[contains(@href,'upfile.biz/')]");
  5678. addObsoleteHost("uploadbin\\.net\/\\w+","//a[contains(@href,'uploadbin.net/')]");
  5679. addObsoleteHost("uploadic\\.com\/\\w+","//a[contains(@href,'uploadic.com/')]");
  5680. addObsoleteHost("uploadinc\\.com\/\\w+","//a[contains(@href,'uploadinc.com/')]");
  5681. addObsoleteHost("uploading4u\\.eu\/\\w+","//a[contains(@href,'uploading4u.eu/')]");
  5682. addObsoleteHost("uploadjet\\.net\/\\w+","//a[contains(@href,'uploadjet.net/')]");
  5683. addObsoleteHost("uploadorb\\.com\/\\w+","//a[contains(@href,'uploadorb.com/')]");
  5684. addObsoleteHost("upthe\\.net\/\\w+","//a[contains(@href,'upthe.net/')]");
  5685. addObsoleteHost("uptorch\\.com\/\\w+","//a[contains(@href,'uptorch.com/')]");
  5686. addObsoleteHost("vidbox\\.yt\/\\w+","//a[contains(@href,'vidbox.yt/')]");
  5687. addObsoleteHost("videozer\\.com\/\\w+","//a[contains(@href,'videozer.com/')]");
  5688. addObsoleteHost("vreer\\.com\/\\w+","//a[contains(@href,'vreer.com/')]");
  5689. addObsoleteHost("wallobit\\.com\/\\w+","//a[contains(@href,'wallobit.com/')]");
  5690. addObsoleteHost("zooupload\\.com\/\\w+","//a[contains(@href,'zooupload.com/')]");
  5691. addObsoleteHost("xerver\\.co\/\\w+","//a[contains(@href,'xerver.co/')]");
  5692. addObsoleteHost("privatefiles\\.com\/\\w+","//a[contains(@href,'privatefiles.com/')]");
  5693. addObsoleteHost("bitshare\\.com\/\\w+","//a[contains(@href,'bitshare.com/')]");
  5694. addObsoleteHost("asfile\\.com\/\\w+","//a[contains(@href,'asfile.com/')]");
  5695. addObsoleteHost("billionuploads\\.com\/\\w+","//a[contains(@href,'billionuploads.com/')]");
  5696. addObsoleteHost("\\*{7,100}\/[\\w\\d]+","//a[contains(@href,'*******/')]");
  5697. addObsoleteHost("filesaur\\.com\/\\w+","//a[contains(@href,'filesaur.com/')]");
  5698. addObsoleteHost("rapidshare\\.com\/\\w+","//a[contains(@href,'rapidshare.com/')]");
  5699. addObsoleteHost("rapidshare\\.ru\/\\w+","//a[contains(@href,'rapidshare.ru/')]");
  5700. addObsoleteHost("filesfrog\\.net\/\\w+","//a[contains(@href,'filesfrog.net/')]");
  5701. addObsoleteHost("4savefile\\.com\/\\w+","//a[contains(@href,'4savefile.com/')]");
  5702. addObsoleteHost("bayfiles\\.com\/\\w+","//a[contains(@href,'bayfiles.com/')]");
  5703. addObsoleteHost("bayfiles\\.net\/\\w+","//a[contains(@href,'bayfiles.net/')]");
  5704. addObsoleteHost("dodane\\.pl\/\\w+","//a[contains(@href,'dodane.pl/')]");
  5705. addObsoleteHost("dotsemper\\.com\/\\w+","//a[contains(@href,'dotsemper.com/')]");
  5706. addObsoleteHost("egofiles\\.com\/\\w+","//a[contains(@href,'egofiles.com/')]");
  5707. addObsoleteHost("epicshare\\.net\/\\w+","//a[contains(@href,'epicshare.net/')]");
  5708. addObsoleteHost("fiberupload\\.net\/\\w+","//a[contains(@href,'fiberupload.net/')]");
  5709. addObsoleteHost("filemonkey\\.in\/\\w+","//a[contains(@href,'filemonkey.in/')]");
  5710. addObsoleteHost("filemonster\\.net\/\\w+","//a[contains(@href,'filemonster.net/')]");
  5711. addObsoleteHost("filepom\\.com\/\\w+","//a[contains(@href,'filepom.com/')]");
  5712. addObsoleteHost("filesbb\\.com\/\\w+","//a[contains(@href,'filesbb.com/')]");
  5713. addObsoleteHost("fileshareup\\.com\/\\w+","//a[contains(@href,'fileshareup.com/')]");
  5714. addObsoleteHost("filevice\\.com\/\\w+","//a[contains(@href,'filevice.com/')]");
  5715. addObsoleteHost("gigaup\\.fr\/\\w+","//a[contains(@href,'gigaup.fr/')]");
  5716. addObsoleteHost("isavelink\\.com\/\\w+","//a[contains(@href,'isavelink.com/')]");
  5717. addObsoleteHost("loombo\\.com\/\\w+","//a[contains(@href,'loombo.com/')]");
  5718. addObsoleteHost("megafiles\\.se\/\\w+","//a[contains(@href,'megafiles.se/')]");
  5719. addObsoleteHost("migupload\\.com\/\\w+","//a[contains(@href,'migupload.com/')]");
  5720. addObsoleteHost("mydisc\\.net\/\\w+","//a[contains(@href,'mydisc.net/')]");
  5721. addObsoleteHost("nitrobits\\.com\/\\w+","//a[contains(@href,'nitrobits.com/')]");
  5722. addObsoleteHost("potload\\.com\/\\w+","//a[contains(@href,'potload.com/')]");
  5723. addObsoleteHost("redload\\.net\/\\w+","//a[contains(@href,'redload.net/')]");
  5724. addObsoleteHost("shareprofi\\.com\/\\w+","//a[contains(@href,'shareprofi.com/')]");
  5725. addObsoleteHost("sharesuper\\.info\/\\w+","//a[contains(@href,'sharesuper.info/')]");
  5726. addObsoleteHost("sinhro\\.net\/\\w+","//a[contains(@href,'sinhro.net/')]");
  5727. addObsoleteHost("speedfile\\.cz\/\\w+","//a[contains(@href,'speedfile.cz/')]");
  5728. addObsoleteHost("speedshare\\.org\/\\w+","//a[contains(@href,'speedshare.org/')]");
  5729. addObsoleteHost("storage.novoro\\.net\/\\w+","//a[contains(@href,'storage.novoro.net/')]");
  5730. addObsoleteHost("swankshare\\.com\/\\w+","//a[contains(@href,'swankshare.com/')]");
  5731. addObsoleteHost("swatupload\\.com\/\\w+","//a[contains(@href,'swatupload.com/')]");
  5732. addObsoleteHost("upafile\\.com\/\\w+","//a[contains(@href,'upafile.com/')]");
  5733. addObsoleteHost("uploadmachine\\.com\/\\w+","//a[contains(@href,'uploadmachine.com/')]");
  5734. addObsoleteHost("uploadsat\\.com\/\\w+","//a[contains(@href,'uploadsat.com/')]");
  5735. addObsoleteHost("upshared\\.com\/\\w+","//a[contains(@href,'upshared.com/')]");
  5736. addObsoleteHost("usefile\\.com\/\\w+","//a[contains(@href,'usefile.com/')]");
  5737. addObsoleteHost("yourfiles\\.to\/\\w+","//a[contains(@href,'yourfiles.to/')]");
  5738. addObsoleteHost("zomgupload\\.com\/\\w+","//a[contains(@href,'zomgupload.com/')]");
  5739. addObsoleteHost("~[\\w\\s~]*","//a[contains(@href,'//~') or contains(@href,'//www.~')]");
  5740. addObsoleteHost("filemup\\.com\/\\w+","//a[contains(@href,'filemup.com/')]");
  5741. addObsoleteHost("tuxfile\\.com\/\\w+","//a[contains(@href,'tuxfile.com/')]");
  5742. addObsoleteHost("ultramegabit\\.com\/\\w+","//a[contains(@href,'ultramegabit.com/')]");
  5743. addObsoleteHost("uploadto\\.us\/\\w+","//a[contains(@href,'uploadto.us/')]");
  5744. addObsoleteHost("filecore\\.co\\.nz\/\\w+","//a[contains(@href,'filecore.co.nz/')]");
  5745. addObsoleteHost("fileshare\\.in\\.ua\/\\w+","//a[contains(@href,'fileshare.in.ua/')]");
  5746. addObsoleteHost("firedrive\\.com\/\\w+","//a[contains(@href,'firedrive.com/')]");
  5747. addObsoleteHost("putlocker\\.com\/\\w+","//a[contains(@href,'putlocker.com/')]");
  5748. addObsoleteHost("lumfile\\.com\/\\w+","//a[contains(@href,'lumfile.com/')]");
  5749. addObsoleteHost("lumfile\\.se\/\\w+","//a[contains(@href,'lumfile.se/')]");
  5750. addObsoleteHost("lumfile\\.eu\/\\w+","//a[contains(@href,'lumfile.eu/')]");
  5751. addObsoleteHost("shared\\.com\/\\w+","//a[contains(@href,'shared.com/')]");
  5752. addObsoleteHost("stahovadlo\\.cz\/\\w+","//a[contains(@href,'stahovadlo.cz/')]");
  5753. addObsoleteHost("dizzcloud\\.com\/\\w+","//a[contains(@href,'dizzcloud.com/')]");
  5754. addObsoleteHost("ddlstorage\\.com\/\\w+","//a[contains(@href,'ddlstorage.com/')]");
  5755. addObsoleteHost("dataport\\.cz\/\\w+","//a[contains(@href,'dataport.cz/')]");
  5756. addObsoleteHost("daj\\.to\/\\w+","//a[contains(@href,'daj.to/')]");
  5757. addObsoleteHost("sockshare\\.com\/\\w+","//a[contains(@href,'sockshare.com/')]");
  5758. addObsoleteHost("2drive\\.net\/\\w+","//a[contains(@href,'2drive.net/')]");
  5759. addObsoleteHost("bl\\.st\/\\w+","//a[contains(@href,'bl.st/')]");
  5760. addObsoleteHost("uncapped-downloads\\.com\/\\w+","//a[contains(@href,'uncapped-downloads.com/')]");
  5761. addObsoleteHost("freakshare\\.net\/\\w+","//a[contains(@href,'freakshare.net/')]");
  5762. addObsoleteHost("freakshare\\.com\/\\w+","//a[contains(@href,'freakshare.com/')]");
  5763. addObsoleteHost("sharebeast\\.com\/\\w+","//a[contains(@href,'sharebeast.com/')]");
  5764. addObsoleteHost("tufiles\\.ru\/\\w+","//a[contains(@href,'tufiles.ru/')]");
  5765. addObsoleteHost("crisshare\\.com\/\\w+","//a[contains(@href,'crisshare.com/')]");
  5766. addObsoleteHost("ryushare\\.com\/\\w+","//a[contains(@href,'ryushare.com/')]");
  5767. addObsoleteHost("burnupload\\.com\/\\w+","//a[contains(@href,'burnupload.com') or contains(@href,'burnupload.ihiphop.com')]");
  5768. addObsoleteHost("down4files\\.com\/\\w+","//a[contains(@href,'down4files.com/')]");
  5769. addObsoleteHost("edoc\\.com\/\\w+","//a[contains(@href,'edoc.com/')]");
  5770. addObsoleteHost("migahost\\.com\/\\w+","//a[contains(@href,'migahost.com/')]");
  5771. addObsoleteHost("movreel\\.com\/\\w+","//a[contains(@href,'movreel.com/')]");
  5772. addObsoleteHost("newfileland\\.com\/\\w+","//a[contains(@href,'newfileland.com/')]");
  5773. addObsoleteHost("jumbofile\\.net\/\\w+","//a[contains(@href,'jumbofile.net/')]");
  5774. addObsoleteHost("krotix\\.net\/\\w+","//a[contains(@href,'krotix.net/')]");
  5775. addObsoleteHost("cramit\\.in\/\\w+","//a[contains(@href,'cramitin.net') or contains(@href,'cramit.in')]");
  5776. addObsoleteHost("netload\\.in\/\\w+","//a[contains(@href,'netload.in/')]")
  5777. addObsoleteHost("netload\\.me\/\\w+","//a[contains(@href,'netload.me/')]")
  5778. addObsoleteHost("quickshare\\.cz\/\\w+","//a[contains(@href,'quickshare.cz/')]");
  5779. addObsoleteHost("filepost\\.com\/\\w+","//a[contains(@href,'filepost.com/')]");
  5780. addObsoleteHost("uploadhero\\.com\/\\w+","//a[contains(@href,'uploadhero.com/')]");
  5781. addObsoleteHost("uploadhero\\.co\/\\w+","//a[contains(@href,'uploadhero.co/')]");
  5782. addObsoleteHost("inafile\\.com\/\\w+","//a[contains(@href,'inafile.com/')]");
  5783. addObsoleteHost("megairon\\.net\/\\w+","//a[contains(@href,'megairon.net/')]");
  5784. addObsoleteHost("rapidsonic\\.com\/\\w+","//a[contains(@href,'rapidsonic.com/')]");
  5785. addObsoleteHost("fileparadox\\.com\/\\w+","//a[contains(@href,'fileparadox.com/')]");
  5786. addObsoleteHost("fileparadox\\.in\/\\w+","//a[contains(@href,'fileparadox.in/')]");
  5787. // obsolete start
  5788. }
  5789. //obsolete file hosts init end
  5790. //Add Host Example
  5791. /* if (GM_getValue("Check_datafile_dot_com_links", false))
  5792. {
  5793. addFileHost(
  5794. "datafile\.com\/\\w+",
  5795. 'var captchaPanel|<link href="/css/files_download.css"',
  5796. 'ErrorCode|ErrorCode 0: Invalid Link|btn-orange" href="#"',
  5797. 'You are downloading another file at this moment|You exceeded your free|Site Maintenance',
  5798. '<style type="text/css">',
  5799. "//a[contains(@href,'datafile.com')]",
  5800. true);
  5801. } */
  5802.  
  5803. function addFileHost(linkRegex, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, xpathEx, tryLoop)
  5804. {
  5805. var host = new Array(7);
  5806. host[0] = linkRegex;
  5807. host[1] = isAliveRegex;
  5808. host[2] = isDeadRegex;
  5809. host[3] = isUnavaRegex;
  5810. host[6] = ispremRegex;
  5811. host[4] = xpathEx;
  5812. tryLoop ? host[5] = true : host[5] = false;
  5813. http_file_hosts.push(host);
  5814. }
  5815. if (GM_getValue("Check_megafileupload_dot_com_links", false))
  5816. {
  5817. addFileHost(
  5818. "megafileupload\.com\/..\/file\/",
  5819. 'downloadbtn',
  5820. 'is not found',
  5821. 'optional--',
  5822. 'optional2--',
  5823. "//a[contains(@href,'megafileupload.com')]");
  5824. }
  5825. if (GM_getValue("Check_demo_dot_ovh_dot_eu_links", false))
  5826. {
  5827. addFileHost(
  5828. "demo\\.ovh\\.eu\/\\w+\/\\w+",
  5829. 'download\\.gif"',
  5830. 'p_point">',
  5831. 'optional--',
  5832. 'optional2--',
  5833. "//a[contains(@href,'demo.ovh.eu')]");
  5834. }
  5835. if (GM_getValue("Check_xkeepfile_dot_com_links", false))
  5836. {
  5837. addFileHost(
  5838. "xkeepfile\.com\/\\w+",
  5839. 'File has been found|Click here to download',
  5840. 'File cannot be found|class="error">',
  5841. 'optional--',
  5842. 'optional2--',
  5843. "//a[contains(@href,'xkeepfile.com/') or contains(@href,'Gamesena.com/')]");
  5844. }
  5845. if (GM_getValue("Check_safelinking_dot_net_links", false))
  5846. {
  5847. addFileHost(
  5848. "safelinking\\.net\/p\/\\w+",
  5849. 'color:green;"',
  5850. 'color:(?:red|orange);"',
  5851. 'color:(?:grey|brown);"',
  5852. 'optional2--',
  5853. "//a[contains(@href,'safelinking.net/p/')]",
  5854. true);
  5855. }
  5856. if (GM_getValue("Check_fastshare_dot_cz_links", false))
  5857. {
  5858. addFileHost(
  5859. "fastshare\\.cz\/\\d+\/\\w*",
  5860. 'dwntable">',
  5861. 'nebyla nalezena|nebola nájdená|nie została odnaleziona|color:red;font-weight:bold;border\\-style:dashed|<i class="fa fa-copyright"></i>',
  5862. 'optional--',
  5863. 'optional2--',
  5864. "//a[contains(@href,'fastshare.cz')]");
  5865. }
  5866. if (GM_getValue("Check_fastshare_dot_org_links", false))
  5867. {
  5868. addFileHost(
  5869. "[fF]ast[sS]hare\\.org\/download",
  5870. 'Download ">',
  5871. 'Diese Datei wurde wegen|wurde kein Dateiname',
  5872. 'optional--',
  5873. 'optional2--',
  5874. "//a[contains(@href,'fastshare.org/download') or contains(@href,'FastShare.org/download')]");
  5875. }
  5876. if (GM_getValue("Check_partage_dash_facile_dot_com_links", false))
  5877. {
  5878. addFileHost(
  5879. "partage-facile\.com\/\\w+",
  5880. 'class="title"><strong>|colspan="2"',
  5881. 'Page introuvable|class="alert-message',
  5882. 'optional--',
  5883. 'optional2--',
  5884. "//a[contains(@href,'partage-facile.com')]");
  5885. }
  5886. if (GM_getValue("Check_rapidgator_dot_net_links", false))
  5887. {
  5888. addFileHost(
  5889. "rapidgator\\.net\/file\/\\w+",
  5890. '/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',
  5891. 'Error 404|File not found|Error 500|Файл не найден|ファイルが探せませんでした|Fichier non trouvé|Archivo no encontrado|Select your plan',
  5892. 'optional--',
  5893. 'can be downloaded by premium only|files up to 500 MB in free mode|files up to 1 GB in free mode',
  5894. "//a[contains(@href,'rapidgator.net/file')]",
  5895. true
  5896. );
  5897. }
  5898. if (GM_getValue("Check_relink_dot_us_links", false))
  5899. {
  5900. addFileHost(
  5901. "relink\\.us\/(?:f\/\\w+|go\\.php\\?id=\\d+|view\\.php\\?id=\\d+)",
  5902. 'online_detail\\.png" alt="Status',
  5903. '(?:offline|partially)_detail\\.png" alt="Status|File deleted',
  5904. 'unknown_detail\\.png" alt="Status',
  5905. 'optional2--',
  5906. "//a[contains(@href,'relink.us/')]"
  5907. );
  5908. }
  5909. if (GM_getValue("Check_uploadstube_dot_de_links", false))
  5910. {
  5911. addFileHost(
  5912. "uploadstube\\.de\/download\\.php\\?file=\\d+",
  5913. 'div id="dl"',
  5914. 'Sie haben den Link falsch',
  5915. 'optional--',
  5916. 'optional2--',
  5917. "//a[contains(@href,'uploadstube.de/download.php?file=')]"
  5918. );
  5919. }
  5920. if (GM_getValue("Check_flyfiles_dot_net_links", false))
  5921. {
  5922. addFileHost(
  5923. "flyfiles\\.net\/\\w+",
  5924. 'download_button"|"Download file"',
  5925. 'File not found!|Файл не найден',
  5926. 'optional--',
  5927. 'optional2--',
  5928. "//a[contains(@href,'flyfiles.net/')]"
  5929. );
  5930. }
  5931. if (GM_getValue("Check_wikiupload_dot_com_links", false))
  5932. {
  5933. addFileHost(
  5934. "wikiupload\\.com\/\\w+",
  5935. 'download-button">',
  5936. 'Sorry, File not found',
  5937. 'optional--',
  5938. 'optional2--',
  5939. "//a[contains(@href,'wikiupload.com/')]"
  5940. );
  5941. }
  5942. if (GM_getValue("Check_hostuje_dot_net_links", false))
  5943. {
  5944. addFileHost(
  5945. "hostuje\\.net\/file\\.php\\?id=\\w+",
  5946. 'file\\.php">|Pobierz Plik',
  5947. 'Podany plik nie zosta',
  5948. 'optional--',
  5949. 'optional2--',
  5950. "//a[contains(@href,'hostuje.net/file')]"
  5951. );
  5952. }
  5953. if (GM_getValue("Check_gettyfile_dot_ru_links", false))
  5954. {
  5955. addFileHost(
  5956. "gettyfile\\.ru\/\\d+",
  5957. 'download\\.gif border',
  5958. '<center><font size="3">',
  5959. 'optional--',
  5960. 'optional2--',
  5961. "//a[contains(@href,'gettyfile.ru/')]"
  5962. );
  5963. }
  5964. if (GM_getValue("Check_turbobit_dot_ru_links", false))
  5965. {
  5966. addFileHost(
  5967. "(?:turbob1t|failoobmenik|filesmail|firebit|dlbit|files\\.china\\-gsm|3aka4aem|file\\.piratski|mnogofiles|links-free|turbo-bit|turbosfiles)\\.\\w+\/\\w+",
  5968. 'download\\-file">',
  5969. 'col-1">\\s*<h1>',
  5970. 'optional--',
  5971. 'optional2--',
  5972. "//a[contains(@href,'turbobit.ru/') or contains(@href,'filesmail.ru/') or contains(@href,'failoobmenik.ru/')"+
  5973. " or contains(@href,'firebit.in/') or contains(@href,'dlbit.net/') or contains(@href,'files.china-gsm.ru/') or contains(@href,'3aka4aem.ru/')"+
  5974. " or contains(@href,'file.piratski.ru/') or contains(@href,'mnogofiles.com/') or contains(@href,'links-free.ru/')"+
  5975. " or contains(@href,'turbo-bit.ru/') or contains(@href,'turbosfiles.ru/')]"
  5976. );
  5977. }
  5978. if (GM_getValue("Check_data_dot_hu_links", false))
  5979. {
  5980. addFileHost(
  5981. "data\\.hu\/get\/\\d+\/",
  5982. 'download_box_button',
  5983. 'missing\\.php',
  5984. 'optional--',
  5985. 'optional2--',
  5986. "//a[contains(@href,'data.hu/get')]",
  5987. true
  5988. );
  5989. }
  5990. if (GM_getValue("Check_filesmelt_dot_com_links", false))
  5991. {
  5992. addFileHost(
  5993. "filesmelt\\.com\/dl\/\\w+",
  5994. '(Your download is ready|Download File)',
  5995. 'Sorry, but your',
  5996. 'optional--',
  5997. 'optional2--',
  5998. "//a[contains(@href,'filesmelt.com/dl')]"
  5999. );
  6000. }
  6001. if (GM_getValue("Check_indowebster_dot_com_links", false))
  6002. {
  6003. addFileHost(
  6004. "(?:files\\.)?indowebster\\.com\/download\/\\w+\/",
  6005. 'premiumBtn"',
  6006. 'errorMessage"',
  6007. 'optional--',
  6008. 'optional2--',
  6009. "//a[contains(@href,'indowebster.com/download')]"
  6010. );
  6011. }
  6012. if (GM_getValue("Check_superload_dot_cz_links", false))
  6013. {
  6014. addFileHost(
  6015. "superload\\.cz\/dl\/\\w+",
  6016. 'icon-download">',
  6017. 'soubor nebyl nalezen',
  6018. 'optional--',
  6019. 'optional2--',
  6020. "//a[contains(@href,'superload.cz/dl')]"
  6021. );
  6022. }
  6023. if (GM_getValue("Check_hulkfile_dot_eu_links", false))
  6024. {
  6025. addFileHost(
  6026. "(?:w\\.hulkfile\\.com|hulkfile\\.eu)\/\\w+",
  6027. 'op" value="download',
  6028. 'class="err">|width:500px;text-align:left;">',
  6029. 'optional--',
  6030. 'optional2--',
  6031. "//a[contains(@href,'hulkfile.')]"
  6032. );
  6033. }
  6034. if (GM_getValue("Check_easybytez_dot_com_links", false))
  6035. {
  6036. addFileHost(
  6037. "easybytez\\.com\/\\w+",
  6038. 'op" value="download',
  6039. 'stop_error\\.gif',
  6040. 'optional--',
  6041. 'optional2--',
  6042. "//a[contains(@href,'easybytez.com/')]"
  6043. );
  6044. }
  6045. if (GM_getValue("Check_filestore_dot_com_dot_ua_links", false))
  6046. {
  6047. addFileHost(
  6048. "filestore\\.com\\.ua\/\\?d=\\w+",
  6049. 'tdrow1>',
  6050. 'class=warn',
  6051. 'optional--',
  6052. 'optional2--',
  6053. "//a[contains(@href,'filestore.com.ua/?d=')]"
  6054. );
  6055. }
  6056. if (GM_getValue("Check_netkups_dot_com_links", false))
  6057. {
  6058. addFileHost(
  6059. "netkups\\.com\/\\?d=\\w+",
  6060. 'submit">Continue',
  6061. 'page">File not found|deleted due to inactivity',
  6062. 'optional--',
  6063. 'optional2--',
  6064. "//a[contains(@href,'netkups.com/?d=')]"
  6065. );
  6066. }
  6067. if (GM_getValue("Check_openfile_dot_ru_links", false))
  6068. {
  6069. addFileHost(
  6070. "openfile\\.ru\/(?:video\/|)\\d+",
  6071. 'videobox_left">',
  6072. 'blog_title">|not found on this server',
  6073. 'optional--',
  6074. 'optional2--',
  6075. "//a[contains(@href,'openfile.ru/')]"
  6076. );
  6077. }
  6078. if (GM_getValue("Check_extmatrix_dot_com_links", false))
  6079. {
  6080. addFileHost(
  6081. "extmatrix\\.com\/files\/\\w+",
  6082. 'div class="success"',
  6083. 'div class="error"',
  6084. 'optional--',
  6085. 'optional2--',
  6086. "//a[contains(@href,'extmatrix.com/files')]"
  6087. );
  6088. }
  6089. if (GM_getValue("Check_sendfiles_dot_nl_links", false))
  6090. {
  6091. addFileHost(
  6092. "sendfiles\\.nl\/download.aspx\\?ID=\\w+",
  6093. 'content_lnkDownload',
  6094. 'error\\.aspx\\?',
  6095. 'optional--',
  6096. 'optional2--',
  6097. "//a[contains(@href,'sendfiles.nl/download.aspx')]"
  6098. );
  6099. }
  6100. if (GM_getValue("Check_yourfilestore_dot_com_links", false))
  6101. {
  6102. addFileHost(
  6103. "yourfilestore\\.com\/download\/\\d+\/",
  6104. 'download_data">',
  6105. 'may have been deleted|<h1>Sorry!<\/h1>',
  6106. 'optional--',
  6107. 'optional2--',
  6108. "//a[contains(@href,'yourfilestore.com/download')]"
  6109. );
  6110. }
  6111. if (GM_getValue("Check_nekaka_dot_com_links", false))
  6112. {
  6113. addFileHost(
  6114. "nekaka\\.com\/d\/[\\w-]+",
  6115. 'downloadForm">',
  6116. 'invalid file link',
  6117. 'optional--',
  6118. 'optional2--',
  6119. "//a[contains(@href,'nekaka.com/d')]"
  6120. );
  6121. }
  6122. if (GM_getValue("Check_filebig_dot_net_links", false))
  6123. {
  6124. addFileHost(
  6125. "filebig\\.net\/files\/\\w+",
  6126. 'downloadFile">',
  6127. '<p>File not found<\/p>',
  6128. 'optional--',
  6129. 'optional2--',
  6130. "//a[contains(@href,'filebig.net/files')]"
  6131. );
  6132. }
  6133. if (GM_getValue("Check_gamefront_dot_com_links", false))
  6134. {
  6135. addFileHost(
  6136. "files\\.filefront\\.com\/\/;\\d+;;",
  6137. 'downloadLink">',
  6138. 'File not found, you',
  6139. 'optional--',
  6140. 'optional2--',
  6141. "//a[contains(@href,'files.filefront.com')]"
  6142. );
  6143.  
  6144. addFileHost(
  6145. "gamefront\\.com\/files\/\\d+",
  6146. 'downloadLink">',
  6147. 'File not found, you',
  6148. 'optional--',
  6149. 'optional2--',
  6150. "//a[contains(@href,'gamefront.com/files')]"
  6151. );
  6152. }
  6153. if (GM_getValue("Check_hyperfileshare_dot_com_links", false))
  6154. {
  6155. addFileHost(
  6156. "(?:download\\.|)hyperfileshare\\.com\/(?:download\\.php\\?code=|d\/)\\w+",
  6157. 'dnlLnk"',
  6158. 'already been deleted',
  6159. 'optional--',
  6160. 'optional2--',
  6161. "//a[contains(@href,'hyperfileshare.com/download') or contains(@href,'hyperfileshare.com/d')]"
  6162. );
  6163. }
  6164. if (GM_getValue("Check_hellupload_dot_com_links", false))
  6165. {
  6166. addFileHost(
  6167. "hellupload\\.com\/\\w+",
  6168. '<h3>Download File<br',
  6169. 'id="podstrona">|AVOID_IE_BUG',
  6170. 'optional--',
  6171. 'optional2--',
  6172. "//a[contains(@href,'hellupload.com/')]"
  6173. );
  6174. }
  6175. if (GM_getValue("Check_free_dash_uploading_dot_com_links", false))
  6176. {
  6177. addFileHost(
  6178. "free\\-uploading\\.com\/\\w+",
  6179. 'op" value="download',
  6180. 'class="err">|width:500px;text-align:left;">',
  6181. 'optional--',
  6182. 'optional2--',
  6183. "//a[contains(@href,'free-uploading.com/')]"
  6184. );
  6185. }
  6186. if (GM_getValue("Check_fileape_dot_com_links", false))
  6187. {
  6188. addFileHost(
  6189. "fileape\\.com\/download\\-",
  6190. 'button_dl\\.png',
  6191. 'does not exist\\.',
  6192. 'optional--',
  6193. 'optional2--',
  6194. "//a[contains(@href,'fileape.com/')]"
  6195. );
  6196. }
  6197. if (GM_getValue("Check_uppit_dot_com_links", false))
  6198. {
  6199. addFileHost(
  6200. "(?:uppit\\.com|up\\.ht)\/\\w+",
  6201. 'op" value="download',
  6202. 'class="err">|style="width:500px;text-align:left;"|fish-404\\.png"',
  6203. 'optional--',
  6204. 'optional2--',
  6205. "//a[contains(@href,'up.ht/') or contains(@href,'uppit.com/')]",
  6206. true
  6207. );
  6208. }
  6209. if (GM_getValue("Check_nosupload_dot_com_links", false))
  6210. {
  6211. addFileHost(
  6212. "nosupload\\.com\/(?:\\?d=)?\\w+",
  6213. 'op" value="download',
  6214. '>File Not Found<',
  6215. 'optional--',
  6216. 'optional2--',
  6217. "//a[contains(@href,'nosupload.com')]",
  6218. true
  6219. );
  6220. }
  6221. if (GM_getValue("Check_filesin_dot_com_links", false))
  6222. {
  6223. addFileHost(
  6224. "filesin\\.com\/\\w+\/download\\.html",
  6225. 'download_area">',
  6226. 'error_note">',
  6227. 'optional--',
  6228. 'optional2--',
  6229. "//a[contains(@href,'filesin.com/')]",
  6230. true
  6231. );
  6232. }
  6233. if (GM_getValue("Check_nowdownload_dot_ch_links", false))
  6234. {
  6235. addFileHost(
  6236. "nowdownload\\.ch\/dl\/\\w+",
  6237. 'alert-success"',
  6238. 'This file does not exist!',
  6239. 'The file is being transfered',
  6240. 'optional2--',
  6241. "//a[contains(@href,'nowdownload.ch/dl')]"
  6242. );
  6243. }
  6244. if (GM_getValue("Check_axifile_dot_com_links", false))
  6245. {
  6246. addFileHost(
  6247. "axifile\\.com(?:\/\w(2))?\/\\??\\w+",
  6248. 'Dbutton_big"',
  6249. 'download\\-error\\.php',
  6250. 'optional--',
  6251. 'optional2--',
  6252. "//a[contains(@href,'axifile.com/')]"
  6253. );
  6254. }
  6255. if (GM_getValue("Check_hulkshare_dot_com_links", false))
  6256. {
  6257. addFileHost(
  6258. "hulkshare\.com\/\\w+",
  6259. 'download\.sam\.png|This is a private file|id="filename',
  6260. 'File does not exist|fingerprint protected copyright',
  6261. 'optional--',
  6262. 'optional2--',
  6263. "//a[contains(@href,'hulkshare.com')]"
  6264. );
  6265. }
  6266. if (GM_getValue("Check_turbobit_dot_net_links", false)) //folders
  6267. {
  6268. addFileHost(
  6269. "turbobit\\.(?:net|pl)\/download\/folder\/\\d+",
  6270. 'col-1">\\s*<s',
  6271. 'col-1">\\s*<h',
  6272. 'optional--',
  6273. 'optional2--',
  6274. "//a[contains(@href,'turbobit.') and contains(@href,'download/folder')]"
  6275. );
  6276. }
  6277. if (GM_getValue("Check_turbobit_dot_net_links", false)) //folders
  6278. {
  6279. addFileHost(
  6280. "turbobit\\.(?:net|pl)",
  6281. 'id="download-gate-info',
  6282. 'afterWait()',
  6283. 'optional--',
  6284. 'optional2--',
  6285. "//a[contains(@href,'turbobit.net')]"
  6286. );
  6287. }
  6288. if (GM_getValue("Check_hitfile_dot_net_links", false)) //folders
  6289. {
  6290. addFileHost(
  6291. "hitfile\\.net\/download\/folder\/\\d+",
  6292. 'content">\\s*<s',
  6293. 'content">\\s*<h',
  6294. 'optional--',
  6295. 'optional2--',
  6296. "//a[contains(@href,'hitfile.net/download/folder')]"
  6297. );
  6298. }
  6299. if (GM_getValue("Check_movshare_dot_net_links", false))
  6300. {
  6301. addFileHost(
  6302. "movshare\\.net\\/video\\/\\w+",
  6303. 'optional--"',
  6304. 'no longer exists',
  6305. 'optional--',
  6306. 'optional2--',
  6307. "//a[contains(@href,'movshare.net/video')]"
  6308. );
  6309. }
  6310. if (GM_getValue("Check_plunder_dot_com_links", false))
  6311. {
  6312. addFileHost(
  6313. "plunder\.com\/\\w+",
  6314. 'x\/download\\.gif',
  6315. '404 - File or directory not found.',
  6316. 'optional--',
  6317. 'optional2--',
  6318. "//a[contains(@href,'plunder.com')]"
  6319. );
  6320. }
  6321. if (GM_getValue("Check_mafiastorage_dot_com_links", false))
  6322. {
  6323. addFileHost(
  6324. "mafiastorage\\.com\/\\w+",
  6325. 'op" value="download',
  6326. 'class="err">|style="width:500px;text-align:left;"',
  6327. 'optional--',
  6328. 'optional2--',
  6329. "//a[contains(@href,'mafiastorage.com/')]"
  6330. );
  6331. }
  6332. if (GM_getValue("Check_uploadspace_dot_pl_links", false))
  6333. {
  6334. addFileHost(
  6335. "uploadspace\.pl\/plik\\w+",
  6336. 'Downloading .+? \\|',
  6337. 'Downloading a file',
  6338. 'optional--',
  6339. 'optional2--',
  6340. "//a[contains(@href,'uploadspace.pl/plik')]"
  6341. );
  6342. }
  6343. if (GM_getValue("Check_uploadingit_dot_com_links", false))
  6344. {
  6345. addFileHost(
  6346. "uploadingit\\.com\/file\/\\w+",
  6347. 'downloadTitle">',
  6348. 'deleteContent">',
  6349. 'optional--',
  6350. 'optional2--',
  6351. "//a[contains(@href,'uploadingit.com/file')]"
  6352. );
  6353. }
  6354. if (GM_getValue("Check_rghost_dot_net_links", false))
  6355. {
  6356. addFileHost(
  6357. "rghost\.(?:net|ru)\/(?:|private\/)\\d+",
  6358. 'download_link|btn large download',
  6359. 'file is restricted|File is deleted|503 Service Unavailable',
  6360. 'optional--',
  6361. 'optional2--',
  6362. "//a[contains(@href,'rghost.')]"
  6363. );
  6364. }
  6365. if (GM_getValue("Check_xdisk_dot_cz_links", false))
  6366. {
  6367. addFileHost(
  6368. "xdisk\\.cz\/(?:..\/)?download\\.php\\?id=\\w+",
  6369. '">Staženo:\\s*<\/span>',
  6370. 'Soubor, který hledáte nenalezen',
  6371. 'optional--',
  6372. 'optional2--',
  6373. "//a[contains(@href,'xdisk.cz/')]"
  6374. );
  6375. }
  6376. if (GM_getValue("Check_expressleech_dot_com_links", false))
  6377. {
  6378. addFileHost(
  6379. "expressleech\.com\/\\w+",
  6380. 'src="/img/Download.gif"|var _gaq =',
  6381. 'var rr =|403 Forbidden',
  6382. 'optional--',
  6383. 'optional2--',
  6384. "//a[contains(@href,'expressleech.com')]");
  6385. }
  6386. if (GM_getValue("Check_2downloadz_dot_com_links", false))
  6387. {
  6388. addFileHost(
  6389. "2downloadz\.com\/\\w+",
  6390. 'color="#848484|src="images/Download.png"|color:#238DCA',
  6391. 'color="#006DCC|File error',
  6392. 'optional--',
  6393. 'optional2--',
  6394. "//a[contains(@href,'2downloadz.com')]");
  6395. }
  6396. if (GM_getValue("Check_mightyupload_dot_com_links", false))
  6397. {
  6398. addFileHost(
  6399. "mightyupload\.com\/\\w+",
  6400. 'background:#ccc;text-align|CONTENT="Download File"',
  6401. 'style="background:#eee|var rr =|File Not Found',
  6402. 'error-code">1010',
  6403. 'optional2--',
  6404. "//a[contains(@href,'mightyupload.com')]");
  6405. }
  6406. if (GM_getValue("Check_anysend_dot_com_links", false))
  6407. {
  6408. addFileHost(
  6409. "anysend\.com\/\\w+",
  6410. 'var openCalled=false;|content="noindex"',
  6411. '_trackPageview',
  6412. 'optional--',
  6413. 'optional2--',
  6414. "//a[contains(@href,'anysend.com')]");
  6415. }
  6416. if (GM_getValue("Check_datafile_dot_com_links", false))
  6417. {
  6418. addFileHost(
  6419. "datafile\.com\/\\w+",
  6420. 'var captchaPanel', //|<link href="/css/files_download.css"',
  6421. 'ErrorCode|ErrorCode 0: Invalid Link|btn-orange" href="#"',
  6422. 'You are downloading another file at this moment|You exceeded your free|Site Maintenance',
  6423. '; display:none;">|<a style="margin-top: auto; margin-bottom: auto;" class="get-premium-button" href="javascript:void(0)">', //<style type="text/css">
  6424. "//a[contains(@href,'datafile.com')]",
  6425. true);
  6426. }
  6427. if (GM_getValue("Check_upstore_dot_net_links", false))
  6428. {
  6429. addFileHost(
  6430. "upstore\.net\/\\w+",
  6431. 'style="margin-top: 20px">|style="text-align:center; margin: 20px 0 100px;">',
  6432. 'File not found|onload="redirect|class="error">',
  6433. 'optional--',
  6434. 'optional2--',
  6435. "//a[contains(@href,'upstore.net')]");
  6436. }
  6437. if (GM_getValue("Check_upsto_dot_re_links", false))
  6438. {
  6439. addFileHost(
  6440. "upsto\.re\/\\w+",
  6441. 'style="margin-top: 20px">|style="text-align:center; margin: 20px 0 100px;">',
  6442. 'File not found|onload="redirect|class="error">',
  6443. 'optional--',
  6444. 'optional2--',
  6445. "//a[contains(@href,'upsto.re')]");
  6446. }
  6447. if (GM_getValue("Check_speedy_dot_sh_links", false))
  6448. {
  6449. addFileHost(
  6450. "speedy\.sh\/\\w+",
  6451. 'bgcolor=#eeeeee|class="addthis',
  6452. 'File not found|downloadfilenamenotfound>',
  6453. 'optional--',
  6454. 'optional2--',
  6455. "//a[contains(@href,'speedy.sh')]");
  6456. }
  6457. if (GM_getValue("Check_sanshare_dot_com_links", false))
  6458. {
  6459. addFileHost(
  6460. "sanshare\.com\/\\w+",
  6461. 'SANSHARE_TOPBANNER|offset-1"><h3><b>Download File',
  6462. 'offset-1"><b>File Not Found<|width:500px;text-align',
  6463. 'optional--',
  6464. 'optional2--',
  6465. "//a[contains(@href,'sanshare.com')]");
  6466. }
  6467. if (GM_getValue("Check_kingfiles_dot_net_links", false))
  6468. {
  6469. addFileHost(
  6470. "kingfiles\.net\/\\w+",
  6471. 'method_free',
  6472. 'var rr =|"description" CONTENT="Download File ">|<div style="width:500px;text-align:left;">|The file was removed by administrator',
  6473. 'optional--',
  6474. 'optional2--',
  6475. "//a[contains(@href,'kingfiles.net')]");
  6476. }
  6477. /* if (GM_getValue("Check_uploadhero_dot_co_links", false))
  6478. {
  6479. addFileHost(
  6480. "uploadhero\\.co\/dl\/\\w+",
  6481. 'class="nom_de_fichier"|Unlimited downloads|Estimated download time|Lien de téléchargement"',
  6482. 'not available on our server|pas disponible sur nos serveurs|Le lien du fichier est incorrect',
  6483. 'optional--',
  6484. 'optional2--',
  6485. "//a[contains(@href,'uploadhero.co/dl')]"
  6486. );
  6487. } */
  6488. if (GM_getValue("Check_secureupload_dot_eu_links", false))
  6489. {
  6490. addFileHost(
  6491. "secureupload\\.eu\/\\w+",
  6492. 'Downloading',
  6493. 'cannot be found|File Not Found|could not be found',
  6494. 'optional--',
  6495. 'optional2--',
  6496. "//a[contains(@href,'secureupload.eu')]"
  6497. );
  6498. }
  6499. if (GM_getValue("Check_ge_dot_tt_links", false))
  6500. {
  6501. addFileHost(
  6502. "ge\.tt\/\\w+",
  6503. 'downloads pic',
  6504. 'is NOT the same as',
  6505. 'optional--',
  6506. 'optional2--',
  6507. "//a[contains(@href,'ge.tt')]");
  6508. }
  6509. if (GM_getValue("Check_filefactory_dot_com_links", false))
  6510. {
  6511. addFileHost(
  6512. "filefactory\.com\/\\w+",
  6513. 'div id="file_holder"|download.css',
  6514. 'File Removed|Invalid Download Link|File Unavailable|Server Failed|Datei entfernt|This file has been removed|Invalid Download Link',
  6515. 'Server Maintenance|temporarily overloaded',
  6516. 'optional2--',
  6517. "//a[contains(@href,'filefactory.com')]");
  6518. }
  6519. if (GM_getValue("Check_filesflash_dot_net_links", false))
  6520. {
  6521. addFileHost(
  6522. "filesflash\.net\/\\w+",
  6523. 'align:right">Filename:',
  6524. 'class="msg">',
  6525. 'optional--',
  6526. 'optional2--',
  6527. "//a[contains(@href,'filesflash.net')]");
  6528. }
  6529. if (GM_getValue("Check_rapidgator_dot_net_links", false)) //folders
  6530. {
  6531. addFileHost(
  6532. "rapidgator\\.net\/folder\/\\w+",
  6533. 'href="/folder/',
  6534. 'class="empty|Folder not found|Carpeta no encontrada|Dossier non trouvé|Папка не найдена',
  6535. 'optional--',
  6536. 'optional2--',
  6537. "//a[contains(@href,'rapidgator.net/folder')]",
  6538. true
  6539. );
  6540. }
  6541. if (GM_getValue("Check_salefiles_dot_com_links", false))
  6542. {
  6543. addFileHost(
  6544. "salefiles\.com\/\\w+",
  6545. '<Title>Download|CONTENT="Download',
  6546. 'font:15px Arial|background:#eee;',
  6547. 'optional--',
  6548. 'optional2--',
  6549. "//a[contains(@href,'salefiles.com')]");
  6550. }
  6551. /* if (GM_getValue("Check_megairon_dot_net_links", false))
  6552. {
  6553. addFileHost(
  6554. "megairon\.net\/\\w+",
  6555. 'border: 5px #ffeb90 solid;',
  6556. 'CONTENT="Download File ">|var rr =',
  6557. 'error-code">523',
  6558. 'optional2--',
  6559. "//a[contains(@href,'megairon.net')]",
  6560. true);
  6561. } */
  6562. if (GM_getValue("Check_datoid_dot_cz_links", false))
  6563. {
  6564. addFileHost(
  6565. "datoid\.cz\/\\w+",
  6566. 'btn-download|class="icon-download-large"',
  6567. 'Stránka nenalezena|error-404|Soubor byl zablokován',
  6568. 'optional--',
  6569. 'optional2--',
  6570. "//a[contains(@href,'datoid.cz')]");
  6571. }
  6572. if (GM_getValue("Check_stiahni_dot_si_links", false))
  6573. {
  6574. addFileHost(
  6575. "stiahni\.si\/\\w+",
  6576. 'report_icon.png"|slow-download-button',
  6577. 'none.png|deleted|<h2>Error 500</h2>',
  6578. 'optional--',
  6579. 'optional2--',
  6580. "//a[contains(@href,'stiahni.si')]");
  6581. }
  6582. if (GM_getValue("Check_cloudstor_dot_es_links", false))
  6583. {
  6584. addFileHost(
  6585. "cloudstor\.es\/\\w+",
  6586. '"btn_download"',
  6587. '404: Page Not Found',
  6588. 'optional--',
  6589. 'optional2--',
  6590. "//a[contains(@href,'cloudstor.es')]");
  6591. }
  6592. if (GM_getValue("Check_streamfile_dot_com_links", false))
  6593. {
  6594. addFileHost(
  6595. "streamfile\.com\/\\w+",
  6596. 'class="btn',
  6597. 'class="green-btn',
  6598. 'optional--',
  6599. 'optional2--',
  6600. "//a[contains(@href,'streamfile.com')]");
  6601. }
  6602. if (GM_getValue("Check_eyesfile_dot_ca_links", false))
  6603. {
  6604. addFileHost(
  6605. "eyesfile\.ca\/\\w+",
  6606. 'value="Get Link',
  6607. 'var rr =',
  6608. 'optional--',
  6609. 'optional2--',
  6610. "//a[contains(@href,'eyesfile.ca')]");
  6611. }
  6612. if (GM_getValue("Check_filemoney_dot_com_links", false))
  6613. {
  6614. addFileHost(
  6615. "filemoney\.com\/\\w+",
  6616. 'og:title',
  6617. '404 Not Found|<Title>FileMoney|File Not Found|class="err">DMCA</b>',
  6618. 'error-code">1010',
  6619. 'optional2--',
  6620. "//a[contains(@href,'filemoney.com')]");
  6621. }
  6622. if (GM_getValue("Check_uploadboy_dot_com_links", false))
  6623. {
  6624. addFileHost(
  6625. "uploadboy\.com\/\\w+",
  6626. 'width="740">|method_free',
  6627. 'var rr =|background:#ffffff|not be found|file was removed',
  6628. 'optional--',
  6629. 'optional2--',
  6630. "//a[contains(@href,'uploadboy.com')]");
  6631. }
  6632. if (GM_getValue("Check_speedshare_dot_eu_links", false))
  6633. {
  6634. addFileHost(
  6635. "speedshare\.eu\/\\w+",
  6636. 'favicon.png|color:#3d87c0|cross.png"',
  6637. 'var rr =|File Not Found|style="background:#eee',
  6638. 'optional--',
  6639. 'optional2--',
  6640. "//a[contains(@href,'speedshare.eu')]");
  6641. }
  6642. if (GM_getValue("Check_unlimitzone_dot_com_links", false))
  6643. {
  6644. addFileHost(
  6645. "unlimitzone\.com\/\\w+",
  6646. 'name="method_free',
  6647. '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',
  6648. 'optional--',
  6649. 'optional2--',
  6650. "//a[contains(@href,'unlimitzone.com')]");
  6651. }
  6652. if (GM_getValue("Check_rioupload_dot_com_links", false))
  6653. {
  6654. addFileHost(
  6655. "rioupload\.com\/\\w+",
  6656. 'sell.jpg',
  6657. 'var rr =',
  6658. 'optional--',
  6659. 'optional2--',
  6660. "//a[contains(@href,'rioupload.com')]");
  6661. }
  6662. if (GM_getValue("Check_rg_dot_to_links", false))
  6663. {
  6664. addFileHost(
  6665. "rg\.to\/\\w+",
  6666. '/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',
  6667. 'Error 404|File not found|Select your plan|Fichier non trouvé|Archivo no encontrado|ファイルが探せませんでした|Файл не найден',
  6668. 'optional--',
  6669. 'can be downloaded by premium only|files up to 500 MB in free mode',
  6670. "//a[contains(@href,'rg.to')]");
  6671. }
  6672. if (GM_getValue("Check_jumbofiles_dot_org_links", false))
  6673. {
  6674. addFileHost(
  6675. "jumbofiles\.org\/\\w+",
  6676. 'H71C5.png|class="downloadtitle">',
  6677. 'var swfu|ViewSourceBIN.png',
  6678. 'optional--',
  6679. 'optional2--',
  6680. "//a[contains(@href,'jumbofiles.org')]");
  6681. }
  6682. if (GM_getValue("Check_fshare_dot_vn_links", false))
  6683. {
  6684. addFileHost(
  6685. "fshare\\.vn\/file\/\\w+",
  6686. 'action="#download"|left; width: 330px;">|class="bt_down"',
  6687. 'không tồn tại|class="color_red m_t_50"',
  6688. 'optional--',
  6689. 'optional2--',
  6690. "//a[contains(@href,'fshare.vn/file')]",
  6691. true
  6692. );
  6693. }
  6694. if (GM_getValue("Check_spaceforfiles_dot_com_links", false))
  6695. {
  6696. addFileHost(
  6697. "spaceforfiles\.com\/\\w+",
  6698. 'btn_slowspeed_b.jpg|value="download1|class="btn_blue',
  6699. 'var rr =|AVOID_IE_BUG',
  6700. 'optional--',
  6701. 'optional2--',
  6702. "//a[contains(@href,'spaceforfiles.com')]");
  6703. }
  6704. if (GM_getValue("Check_google_dot_com_links", false))
  6705. {
  6706. addFileHost(
  6707. "google\\.com\/file\/\\w+",
  6708. 'content="!">|color:#2d2d2d',
  6709. '12pt; font-weight:|class="errorMessage"|F0F6FF',
  6710. 'optional--',
  6711. 'optional2--',
  6712. "//a[contains(@href,'google.com/file')]",
  6713. true
  6714. );
  6715. }
  6716. if (GM_getValue("Check_google_dot_com_links", false))
  6717. {
  6718. addFileHost(
  6719. "docs.google.com\/\\w+",
  6720. 'content="!">|color:#2d2d2d',
  6721. '12pt; font-weight:|class="errorMessage"|F0F6FF|Error 404',
  6722. 'optional--',
  6723. 'optional2--',
  6724. "//a[contains(@href,'docs.google.com')]",
  6725. true
  6726. );
  6727. }
  6728. if (GM_getValue("Check_google_dot_com_links", false))
  6729. {
  6730. addFileHost(
  6731. "drive.google.com\/\\w+",
  6732. 'content="!">|color:#2d2d2d|id="uc-download-link',
  6733. '12pt; font-weight:|class="errorMessage"|F0F6FF|Error 404',
  6734. 'optional--',
  6735. 'optional2--',
  6736. "//a[contains(@href,'drive.google.com')]",
  6737. true
  6738. );
  6739. }
  6740. if (GM_getValue("Check_up_dot_media1fire_dot_com_links", false))
  6741. {
  6742. addFileHost(
  6743. "up.media1fire\.com\/\\w+",
  6744. 'class="addthis_|value="download',
  6745. 'var rr =|AVOID_IE_BUG|<div style="width:500px;text-align:left;">',
  6746. 'optional--',
  6747. 'optional2--',
  6748. "//a[contains(@href,'up.media1fire.com')]");
  6749. }
  6750. if (GM_getValue("Check_depfile_dot_com_links", false))
  6751. {
  6752. addFileHost(
  6753. "depfile\.com\/\\w+",
  6754. 'logo_0.png|downloads.gif"|verifycode',
  6755. 'border-color: #5D729B;|bgcolor="#778AAF"|deleted by the owner|Invalid Link',
  6756. 'optional--',
  6757. 'available only for Premium users',
  6758. "//a[contains(@href,'depfile.com')]");
  6759. }
  6760. if (GM_getValue("Check_go4up_dot_com_links", false))
  6761. {
  6762. addFileHost(
  6763. "go4up\.com\/\\w+",
  6764. 'style="width: 100%;">|value="Access|download_line|img/webbuttoned.gif">',
  6765. '<title>GO4UP|dmca',
  6766. 'optional--',
  6767. 'optional2--',
  6768. "//a[contains(@href,'go4up.com')]");
  6769. }
  6770. if (GM_getValue("Check_redbunker_dot_net_links", false))
  6771. {
  6772. addFileHost(
  6773. "redbunker\.net\/\\w+",
  6774. 'name="method_free"',
  6775. 'color="red">Unknow / Bilinmiyor<',
  6776. 'optional--',
  6777. 'optional2--',
  6778. "//a[contains(@href,'redbunker.net')]");
  6779. }
  6780. if (GM_getValue("Check_divxpress_dot_com_links", false))
  6781. {
  6782. addFileHost(
  6783. "divxpress\.com\/\\w+",
  6784. 'btn_download|logo.png"',
  6785. 'AVOID_IE_BUG|var rr =',
  6786. 'optional--',
  6787. 'optional2--',
  6788. "//a[contains(@href,'divxpress.com')]");
  6789. }
  6790. if (GM_getValue("Check_anafile_dot_com_links", false))
  6791. {
  6792. addFileHost(
  6793. "anafile\.com\/\\w+",
  6794. 'width="881" valign="top|color="#800080"|name="go"',
  6795. 'style="width:500px;text-align:left;">|file was deleted|AVOID_IE_BUG',
  6796. 'optional--',
  6797. 'optional2--',
  6798. "//a[contains(@href,'anafile.com')]");
  6799. }
  6800. if (GM_getValue("Check_uploadable_dot_ch_links", false))
  6801. {
  6802. addFileHost(
  6803. "uploadable\\.ch\/file\/\\w+",
  6804. 'captcha.js"|payment.js"|class="btn_download"',
  6805. '<div class="icon_err">|<div class="errorBox">|"error_arrow">',
  6806. 'optional--',
  6807. 'optional2--',
  6808. "//a[contains(@href,'uploadable.ch/file')]",
  6809. true
  6810. );
  6811. }
  6812. if (GM_getValue("Check_arabloads_dot_net_links", false))
  6813. {
  6814. addFileHost(
  6815. "arabloads\.net\/\\w+",
  6816. 'name="method_free"|name="method_premium"',
  6817. 'background:#eee;font:15px Arial;">|AVOID_IE_BUG|Verdana;padding:3px;">Error|Not Found',
  6818. 'optional--',
  6819. 'optional2--',
  6820. "//a[contains(@href,'arabloads.net')]");
  6821. }
  6822. if (GM_getValue("Check_sharerepo_dot_com_links", false))
  6823. {
  6824. addFileHost(
  6825. "sharerepo\.com\/\\w+",
  6826. 'name="method_free"',
  6827. 'var public_on=|The file you were looking for could not be found',
  6828. 'optional--',
  6829. 'optional2--',
  6830. "//a[contains(@href,'sharerepo.com')]");
  6831. }
  6832. if (GM_getValue("Check_sfshare_dot_se_links", false))
  6833. {
  6834. addFileHost(
  6835. "sfshare\.se\/\\w+",
  6836. 'id="btn_download"|class="btn btn-primary txt-bold" value="',
  6837. 'AVOID_IE_BUG|var rr =|style="width:500px;text-align:left;">|Reason for deletion|The file was removed',
  6838. 'optional--',
  6839. 'optional2--',
  6840. "//a[contains(@href,'sfshare.se')]");
  6841. }
  6842. if (GM_getValue("Check_files_dot_fm_links", false))
  6843. {
  6844. addFileHost(
  6845. "files\.fm\/\\w+",
  6846. 'dl.png"|background-color: transparent',
  6847. 'margin: 40px 40px|background: none;',
  6848. 'optional--',
  6849. 'optional2--',
  6850. "//a[contains(@href,'files.fm')]");
  6851. }
  6852. if (GM_getValue("Check_koofile_dot_com_links", false))
  6853. {
  6854. addFileHost(
  6855. "koofile\.com\/\\w+",
  6856. 'value="download1">|name="method_free"',
  6857. 'class="overview-content c_text-box ">|style="padding-top:3px;">|class="rt1 c">',
  6858. 'optional--',
  6859. 'optional2--',
  6860. "//a[contains(@href,'koofile.com')]");
  6861. }
  6862. if (GM_getValue("Check_vidxden_dot_com_links", false))
  6863. {
  6864. addFileHost(
  6865. "vidxden\\.com\/\\w+",
  6866. 'Continue to Video"',
  6867. 'No such file',
  6868. 'optional--',
  6869. 'optional2--',
  6870. "//a[contains(@href,'vidxden.com')]"
  6871. );
  6872. }
  6873. if (GM_getValue("Check_muchshare_dot_net_links", false))
  6874. {
  6875. addFileHost(
  6876. "muchshare\\.net\/\\w+",
  6877. 'id="btn_download"',
  6878. 'File Not Found|width: 500px; text-align: left;',
  6879. 'optional--',
  6880. 'optional2--',
  6881. "//a[contains(@href,'muchshare.net')]"
  6882. );
  6883. }
  6884. if (GM_getValue("Check_daten_dash_hoster_dot_de_links", false))
  6885. {
  6886. addFileHost(
  6887. "(?:daten-hoster\\.de\/file\/\\w+|filehosting\\.org\/file\/\\w+|xtraupload\\.de\/\\?d=\\w+)",
  6888. 'Details zur Datei|Details page',
  6889. 'Jetzt hochladen|upload now',
  6890. 'optional--',
  6891. 'optional2--',
  6892. "//a[contains(@href,'daten-hoster.de/file') or contains(@href,'filehosting.org/file') or contains(@href,'xtraupload.de')]"
  6893. );
  6894. }
  6895. if (GM_getValue("Check_upload_dash_il_dot_net_links", false))
  6896. {
  6897. addFileHost(
  6898. "(?:upload-il|przeslij)\.net\/(?:en|he|ar|ru|)\/?\\w+",
  6899. 'downloadbtn"',
  6900. 'DL_FileNotFound',
  6901. 'optional--',
  6902. 'optional2--',
  6903. "//a[contains(@href,'upload-il.net') or contains(@href,'przeslij.net')]"
  6904. );
  6905. }
  6906. if (GM_getValue("Check_fileflyer_dot_com_links", false))
  6907. {
  6908. addFileHost(
  6909. "fileflyer\.com\/view\/\\w+",
  6910. '(?:dwl|locked)btn"',
  6911. 'error.gif"|link">Removed|removedlink">',
  6912. 'optional--',
  6913. 'optional2--',
  6914. "//a[contains(@href,'fileflyer.com')]"
  6915. );
  6916. }
  6917. if (GM_getValue("Check_filestore_dot_to_links", false))
  6918. {
  6919. addFileHost(
  6920. "filestore\.to\/\\?d=\\w+",
  6921. '"downloading"',
  6922. 'Datei wurde nicht gefunden',
  6923. 'optional--',
  6924. 'optional2--',
  6925. "//a[contains(@href,'filestore.to')]"
  6926. );
  6927. }
  6928. if (GM_getValue("Check_easy_dash_share_dot_com_links", false))
  6929. {
  6930. addFileHost(
  6931. "(?:w\\d*\.|)(?:crocko|easy-share)\\.com\/.",
  6932. 'fz24">Download|class="pl15">',
  6933. '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',
  6934. 'optional--',
  6935. 'optional2--',
  6936. "//a[contains(@href,'easy-share.com') or contains(@href,'crocko.com')]"
  6937. );
  6938. }
  6939. /* if (GM_getValue("Check_burnupload_dot_com_links", false))
  6940. {
  6941. addFileHost(
  6942. "burnupload\\.(?:com\/\\?d=|ihiphop\\.com\/download\\.php\\?id=)\\w+",
  6943. 'File size:',
  6944. 'file is not found',
  6945. 'optional--',
  6946. 'optional2--',
  6947. "//a[contains(@href,'burnupload.com') or contains(@href,'burnupload.ihiphop.com')]"
  6948. );
  6949. } */
  6950. if (GM_getValue("Check_datei_dot_to_links", false))
  6951. {
  6952. addFileHost(
  6953. "datei\\.to\/\\??\\w+",
  6954. 'icon_downloaden\\.png|>Download starten<',
  6955. 'Datei wurde nicht gefunden|icon_deleted.png',
  6956. 'optional--',
  6957. 'optional2--',
  6958. "//a[contains(@href,'datei.to')]"
  6959. );
  6960. }
  6961. if (GM_getValue("Check_yunfile_dot_com_links", false))
  6962. {
  6963. addFileHost(
  6964. "(?:yunfile|filemarkets)\\.com\/\\w+",
  6965. '<body class="body" id="body">|value="Slow Download"',
  6966. '<body class="body" >',
  6967. 'optional--',
  6968. 'optional2--',
  6969. "//a[contains(@href,'yunfile.com') or contains(@href,'filemarkets.com')]"
  6970. );
  6971. }
  6972. /* if (GM_getValue("Check_uploadhero_dot_com_links", false))
  6973. {
  6974. addFileHost(
  6975. "uploadhero\\.com\/dl\/\\w+",
  6976. 'content-dl">',
  6977. 'men_file_lost\\.jpg"',
  6978. 'optional--',
  6979. 'optional2--',
  6980. "//a[contains(@href,'uploadhero.com/dl')]"
  6981. );
  6982. } */
  6983. if (GM_getValue("Check_unibytes_dot_com_links", false))
  6984. {
  6985. addFileHost(
  6986. "unibytes\\.com\/[\\w\.]+",
  6987. 'trying to download|пытаетесь загрузить файл|tes entrain de tlcharger',
  6988. 'File not found|Файл не найден|',
  6989. 'optional--',
  6990. 'optional2--',
  6991. "//a[contains(@href,'unibytes.com')]"
  6992. );
  6993. }
  6994. if (GM_getValue("Check_hellshare_dot_com_links", false)) //very old type of links
  6995. {
  6996. addFileHost(
  6997. "www\\.hellshare\\.com\/\\d+",
  6998. 'tab\\-details"',
  6999. 'list-purp-2"|not found on this server',
  7000. 'optional--',
  7001. 'optional2--',
  7002. "//a[contains(@href,'www.hellshare.com')]"
  7003. );
  7004. }
  7005. /* if (GM_getValue("Check_quickshare_dot_cz_links", false)) //folders
  7006. {
  7007. addFileHost(
  7008. "quickshare\\.cz\/slozka-\\d+",
  7009. 'Počet souborů: <strong>[1-9]',
  7010. 'Počet souborů: <strong>0|Chyba! Taková složka neexistuje',
  7011. 'optional--',
  7012. 'optional2--',
  7013. "//a[contains(@href,'quickshare.cz/slozka')]"
  7014. );
  7015. } */
  7016. if (GM_getValue("Check_filefactory_dot_com_links", false)) //folders
  7017. {
  7018. addFileHost(
  7019. "filefactory\\.com\/f\/\\w+",
  7020. 'folderFileList">',
  7021. 'table class="items"|Pointer" class="red">',
  7022. 'optional--',
  7023. 'optional2--',
  7024. "//a[contains(@href,'filefactory.com/f/')]"
  7025. );
  7026. }
  7027. /* if (GM_getValue("Check_netload_dot_in_links", false)) //folders
  7028. {
  7029. addFileHost(
  7030. "netfolder\\.in\/\\w+",
  7031. 'list" value="http',
  7032. 'InPage_Error">|list" value=""',
  7033. 'optional--',
  7034. 'optional2--',
  7035. "//a[contains(@href,'netfolder.in')]"
  7036. );
  7037. } */
  7038. if (GM_getValue("Check_load_dot_to_links", false))
  7039. {
  7040. addFileHost(
  7041. '(?:www\\.|\\/)load\\.to\\/(?:\\w{10}\\/.|\\?d=\\w{10})',
  7042. '"download_table_left">Size',
  7043. 'Can\'t find file',
  7044. 'optional--',
  7045. 'optional2--',
  7046. "//a[contains(@href,'/load.to/') or contains(@href,'www.load.to/')]"
  7047. );
  7048. }
  7049. if (GM_getValue("Check_divshare_dot_com_links", false))
  7050. {
  7051. addFileHost(
  7052. "divshare\\.com\/download\/",
  7053. 'download_new\.png',
  7054. 'have been removed',
  7055. 'optional--',
  7056. 'optional2--',
  7057. "//a[contains(@href,'divshare.com')]"
  7058. );
  7059. }
  7060. if (GM_getValue("Check_euroshare_dot_eu_links", false))
  7061. {
  7062. addFileHost(
  7063. "euroshare\\.(?:eu|pl|sk|cz|hu)\/file\/\\d+",
  7064. 'nazev-souboru">',
  7065. '<div id="obsah">\\s*<h1>',
  7066. 'optional--',
  7067. 'optional2--',
  7068. "//a[contains(@href,'euroshare.eu/file')]"
  7069. );
  7070. }
  7071. if (GM_getValue("Check_files_dot_mail_dot_ru_links", false))
  7072. {
  7073. addFileHost(
  7074. 'files\\.mail\\.ru/(?:\\w*)',
  7075. 'fileList',
  7076. 'errorMessage',
  7077. 'optional--',
  7078. 'optional2--',
  7079. "//a[contains(@href,'files.mail.ru')]"
  7080. );
  7081. }
  7082. if (GM_getValue("Check_megashares_dot_com_links", false))
  7083. {
  7084. addFileHost(
  7085. "(?:d\\d+\.|)megashares\.com\/(?:dl|index\.php\\?d|\\?d\\d+=\\w+)",
  7086. 'Filesize',
  7087. 'Invalid|deleted|Could not download file',
  7088. 'slots|scheduled maintenance',
  7089. 'optional2--',
  7090. "//a[contains(@href,'megashares.com/')]"
  7091. );
  7092. }
  7093. if (GM_getValue("Check_narod_dot_ru_links", false))
  7094. {
  7095. addFileHost(
  7096. 'narod\\.(?:yandex\\.|)ru\/disk\/',
  7097. 'b-submit',
  7098. 'b-download-virus-note|headCode">404<',
  7099. 'Внутренняя ошибка сервиса',
  7100. 'optional2--',
  7101. "//a[contains(@href,'narod.ru') or contains(@href,'narod.yandex.ru')]"
  7102. );
  7103. }
  7104. if (GM_getValue("Check_rayfile_dot_com_links", false))
  7105. {
  7106. addFileHost(
  7107. "rayfile\\.com\/",
  7108. 'FILEtitleTXT',
  7109. 'blueRow',
  7110. 'optional--',
  7111. 'optional2--',
  7112. "//a[contains(@href,'rayfile.com/') and contains(@href,'files')]"
  7113. );
  7114. }
  7115. if (GM_getValue("Check_filesmonster_dot_com_links", false))
  7116. {
  7117. addFileHost(
  7118. "filesmonster\\.com\/download\\.php\\?id=\\w+",
  7119. 'button_green_body"',
  7120. 'error">',
  7121. 'optional--',
  7122. 'optional2--',
  7123. "//a[contains(@href,'filesmonster.com/download')]"
  7124. );
  7125. }
  7126. if (GM_getValue("Check_usaupload_dot_net_links", false))
  7127. {
  7128. addFileHost(
  7129. 'usaupload\\.net\/d\/(?:\w*)',
  7130. '<strong>File size:</strong>',
  7131. 'is not available',
  7132. 'optional--',
  7133. 'optional2--',
  7134. "//a[contains(@href,'usaupload.net/d/')]"
  7135. );
  7136. }
  7137. if (GM_getValue("Check_sendspace_dot_com_links", false))
  7138. {
  7139. addFileHost(
  7140. 'sendspace\\.com\/file\/\\w+',
  7141. 'file_description',
  7142. 'msg error"',
  7143. 'optional--',
  7144. 'optional2--',
  7145. "//a[contains(@href,'sendspace.com/file')]"
  7146. );
  7147. }
  7148. if (GM_getValue("Check_sendspace_dot_pl_links", false))
  7149. {
  7150. addFileHost(
  7151. 'sendspace\\.pl\/file\/\\w+',
  7152. 'download_file"',
  7153. 'Podany plik nie',
  7154. 'optional--',
  7155. 'optional2--',
  7156. "//a[contains(@href,'sendspace.pl/file')]"
  7157. );
  7158. }
  7159. if (GM_getValue("Check_uploading_dot_com_links", false))
  7160. {
  7161. addFileHost(
  7162. 'uploading\\.com\/(?:files\/)?\\w+',
  7163. 'free_method">',
  7164. 'file_error">|error_404">|file not found|OOPS! Looks like file not found',
  7165. 'optional--',
  7166. 'optional2--',
  7167. "//a[contains(@href,'uploading.com')]"
  7168. );
  7169. }
  7170. if (GM_getValue("Check_gigasize_dot_com_links", false))
  7171. {
  7172. addFileHost(
  7173. 'gigasize\\.com\/get\\.php(?:\/\\d+|\\?d=\\w+)',
  7174. 'fileId"',
  7175. 'error">',
  7176. 'optional--',
  7177. 'optional2--',
  7178. "//a[contains(@href,'gigasize.com/get')]"
  7179. );
  7180. }
  7181. if (GM_getValue("Check_good_dot_com_links", false))
  7182. {
  7183. addFileHost(
  7184. 'good\\.net\/(?:_|dl)',
  7185. 'Free Download',
  7186. 'Not Found',
  7187. 'Forbidden',
  7188. 'optional2--',
  7189. "//a[contains(@href,'good.net')]"
  7190. );
  7191. }
  7192. if (GM_getValue("Check_2shared_dot_com_links", false))
  7193. {
  7194. addFileHost(
  7195. '2shared\\.com\/(?:file|video|document|audio)\/\\w*',
  7196. 'File size',
  7197. 'File not found|is not valid|/images/important.gif',
  7198. 'optional--',
  7199. 'optional2--',
  7200. "//a[contains(@href,'2shared.com/file/') or contains (@href,'2shared.com/audio/') or contains (@href,'2shared.com/document/') or contains (@href,'2shared.com/video/')]"
  7201. );
  7202. }
  7203. if (GM_getValue("Check_turboupload_dot_com_links", false))
  7204. {
  7205. addFileHost(
  7206. 'turboupload\\.com\/\\w*',
  7207. 'You have requested',
  7208. 'File Not Found',
  7209. 'optional--',
  7210. 'optional2--',
  7211. "//a[contains(@href,'turboupload.com')]"
  7212. );
  7213. }
  7214. if (GM_getValue("Check_gigapeta_dot_com_links", false))
  7215. {
  7216. addFileHost(
  7217. 'gigapeta\\.com\/dl\/',
  7218. 'Download file|Скачать файл| Herunterzuladen|Scarica il file|Cargar el fichero|Charger le fichier',
  7219. '404|page_error',
  7220. 'optional--',
  7221. 'optional2--',
  7222. "//a[contains(@href,'gigapeta.com/dl')]"
  7223. );
  7224. }
  7225. if (GM_getValue("Check_veehd_dot_com_links", false))
  7226. {
  7227. addFileHost(
  7228. 'veehd\.com\/video\/.*?',
  7229. 'No sound|Download video',
  7230. 'Featured Videos',
  7231. 'optional--',
  7232. 'optional2--',
  7233. "//a[contains(@href,'veehd.com') and contains(@href,'video')]"
  7234. );
  7235. }
  7236. if (GM_getValue("Check_vip_dash_file_dot_com_links", false))
  7237. {
  7238. addFileHost(
  7239. '(?:u\\d+\\.)?vip-file\\.com\/download.*?\/(?:.*?)\/(?:.*?)\\.html',
  7240. 'fast_download_form">|submit_sms_download',
  7241. '<p style="text-align:center">',
  7242. 'optional--',
  7243. 'optional2--',
  7244. "//a[contains(@href,'vip-file.com/download')]"
  7245. );
  7246. }
  7247. if (GM_getValue("Check_letitbit_dot_net_links", false))
  7248. {
  7249. addFileHost(
  7250. '(?:u\\d+\\.)?letitbit\\.net\/download\/\\w+',
  7251. 'download\\-pnl ',
  7252. 'color:#000">|Запрашиваемый файл не найден|страница не существует|File not found|',
  7253. 'optional--',
  7254. 'optional2--',
  7255. "//a[contains(@href,'letitbit.net/download')]"
  7256. );
  7257. }
  7258. if (GM_getValue("Check_ifolder_dot_ru_links", false))
  7259. {
  7260. addFileHost(
  7261. 'ifolder\.ru\/\\d+',
  7262. 'file-info',
  7263. 'ui-state-error',
  7264. 'optional--',
  7265. 'optional2--',
  7266. "//a[contains(@href,'ifolder.ru')]"
  7267. );
  7268. }
  7269. if (GM_getValue("Check_fileswap_dot_com_links", false))
  7270. {
  7271. addFileHost(
  7272. 'fileswap\\.com\/dl\/\\w+',
  7273. 'bttnDownloadLink"',
  7274. 'rounded_block_error"',
  7275. 'is temporary unavailable|disponible en estos momentos|vorläufig unerreichbar|Файл временно недоступен',
  7276. 'optional2--',
  7277. "//a[contains(@href,'fileswap.com/dl')]"
  7278. );
  7279. }
  7280. if (GM_getValue("Check_filecloud_dot_io_links", false))
  7281. {
  7282. addFileHost(
  7283. '(?:s\\d+\\.)?filecloud\\.io\/\\w+',
  7284. 'var __error = 0',
  7285. 'FILES__DOESNT_EXIST|removed or did not exist',
  7286. 'optional--',
  7287. 'optional2--',
  7288. "//a[contains(@href,'filecloud.io/')]"
  7289. );
  7290. addFileHost(
  7291. 'ifile\\.it\/\\w+',
  7292. 'var __error = 0',
  7293. 'FILES__DOESNT_EXIST',
  7294. 'optional--',
  7295. 'optional2--',
  7296. "//a[contains(@href,'ifile.it/')]"
  7297. );
  7298. }
  7299. if (GM_getValue("Check_solidfiles_dot_com_links", false))
  7300. {
  7301. addFileHost(
  7302. 'solidfiles\\.com\/d\/\\w+',
  7303. 'id="download"|content="Download',
  7304. '>Not found<|<h2>404</h2>|Page not found|<h1>404</h1>|File not available|no longer available',
  7305. 'optional--',
  7306. 'optional2--',
  7307. "//a[contains(@href,'solidfiles.com/d')]"
  7308. );
  7309. }
  7310. if (GM_getValue("Check_shareflare_dot_net_links", false))
  7311. {
  7312. addFileHost(
  7313. "(?:.\\.|)shareflare\\.net",
  7314. 'download-pnl|<div class="premium-block">',
  7315. 'File not found|Поиск зеркала на фа|<div id="captcha"',
  7316. 'optional--',
  7317. 'optional2--',
  7318. "//a[contains(@href,'shareflare.net') and contains(@href,'download')]"
  7319. );
  7320. }
  7321. if (GM_getValue("Check_u18116681_dot_shareflare_dot_net_links", false))
  7322. {
  7323. addFileHost(
  7324. "u18116681.shareflare\\.net",
  7325. 'download-pnl|<div class="premium-block">',
  7326. 'File not found|Поиск зеркала на фа|<div id="captcha"',
  7327. 'optional--',
  7328. 'optional2--',
  7329. "//a[contains(@href,'shareflare.net') and contains(@href,'download')]"
  7330. );
  7331. }
  7332. if (GM_getValue("Check_uloz_dot_to_links", false))
  7333. {
  7334. addFileHost(
  7335. "(?:uloz|ulozto|bagruj|zachowajto)\\.(to|cz|sk|net|pl)\/\\w",
  7336. 'fileDownload">|fileSize">',
  7337. 'grayButton deletedFile">|Stránka nenalezena|upload-button"|jako soukromý.',
  7338. 'passwordProtectedFile">|frmaskAgeForm-disagree',
  7339. 'optional2--',
  7340. "//a[contains(@href,'bagruj.cz') or contains(@href,'uloz.to') or contains(@href,'ulozto.') or contains(@href,'zachowajto.pl')]",
  7341. true
  7342. );
  7343. }
  7344. if (GM_getValue("Check_hellspy_dot_com_links", false))
  7345. {
  7346. addFileHost(
  7347. "hellspy\.(?:com|cz|sk|hu|pl)\/\\w+",
  7348. 'file\\-list-orderby|section-filedetail">',
  7349. '<\/span><\/h2>\\s*<p>|list-purp-2">|flash info sticky">',
  7350. 'optional--',
  7351. 'optional2--',
  7352. "//a[contains(@href,'hellspy.')]"
  7353. );
  7354. }
  7355. if (GM_getValue("Check_leteckaposta_dot_cz_links", false))
  7356. {
  7357. addFileHost(
  7358. "(?:leteckaposta\\.cz|sharegadget\\.com)\/\\d+",
  7359. '<body onload="">',
  7360. 'neexistuje|not exist',
  7361. 'optional--',
  7362. 'optional2--',
  7363. "//a[contains(@href,'leteckaposta.cz') or contains(@href,'sharegadget.com')]"
  7364. );
  7365. }
  7366. if (GM_getValue("Check_stahovanizasms_dot_cz_links", false))
  7367. {
  7368. addFileHost(
  7369. "stahovanizasms\\.cz\/\\w+",
  7370. 'download\\.png>|font-size:11px><tr>',
  7371. 'smaz.n u.ivatelem|font-size:11px><\/table>',
  7372. 'optional--',
  7373. 'optional2--',
  7374. "//a[contains(@href,'stahovanizasms.cz')]"
  7375. );
  7376. }
  7377. if (GM_getValue("Check_share_dash_links_dot_biz_links", false))
  7378. {
  7379. addFileHost(
  7380. "share-links\\.biz\/\\w*",
  7381. 'online\\.gif',
  7382. '(?:offline|parts)\\.gif',
  7383. 'optional--',
  7384. 'optional2--',
  7385. "//a[contains(@href,'share-links.biz')]"
  7386. );
  7387. }
  7388. if (GM_getValue("Check_4shared_dot_com_links", false))
  7389. {
  7390. addFileHost(
  7391. "4shared\\.com\/.+\/",
  7392. '<input type="hidden" class="jsSocialTwDefaultText" value=',
  7393. 'class="warn\"|big red"|GetDataBack',
  7394. 'Service Unavailable',
  7395. 'optional2--',
  7396. "//a[contains(@href,'4shared.com')]"
  7397. );
  7398. }
  7399. if (GM_getValue("Check_zippyshare_dot_com_links", false))
  7400. {
  7401. addFileHost(
  7402. "(?:www\\d+\.|)zippyshare\.com\/",
  7403. 'download\.png|Download Now|images/download_small.png|id="dlbutton"',
  7404. 'not exist|Status 404',
  7405. 'optional--',
  7406. 'optional2--',
  7407. "//a[contains(@href,'zippyshare.com') and contains(@href,'file.html')]"
  7408. );
  7409. }
  7410. if (GM_getValue("Check_mediafire_dot_com_links", false))
  7411. {
  7412. addFileHost(
  7413. "mediafire\.com\/",
  7414. 'download_file_title|dlFileName|id="PLAY_downloadButton"',
  7415. 'error\\.php\\?|error_msg_title|<title>Simple File Sharing|No files found',
  7416. 'set to private',
  7417. 'optional2--',
  7418. "//a[contains(@href,'mediafire.com')]"
  7419. );
  7420. }
  7421. if (GM_getValue("Check_uploaded_dot_to_links", false))
  7422. {
  7423. addFileHost(
  7424. '(?:uploaded\\.(?:to|net)\/(?:.id|file|folder|f|410|404))|(?:ul\\.to\/)',
  7425. '<h2>Authentification</h2></li>|MB</small>|KB</small>|1,00 GB',
  7426. 'box_red|Error: 404|Error: 410|fileList"><thead><tr><td colspan="2"><\/td><\/tr><\/thead><tbody>\\s*<tr>|<title>uploaded.net</title>',
  7427. 'optional--',
  7428. 'GB</small>',
  7429. "//a[contains(@href,'uploaded.to/') or contains(@href,'uploaded.net/') or contains(@href,'ul.to/')]"
  7430. );
  7431. }
  7432. if (GM_getValue("Check_ulozisko_dot_sk_links", false))
  7433. {
  7434. addFileHost(
  7435. "ulozisko\.sk\/",
  7436. 'Detaily',
  7437. 'neexistuje',
  7438. 'optional--',
  7439. 'optional2--',
  7440. "//a[contains(@href,'ulozisko.sk')]"
  7441. );
  7442. }
  7443. if (GM_getValue("Check_upnito_dot_sk_links", false))
  7444. {
  7445. addFileHost(
  7446. "(?:dl.\\.|)upnito\\.sk\/(download|subor|file)",
  7447. 'download.php',
  7448. 'notfound|upload\\-suborov\\.php"',
  7449. 'optional--',
  7450. 'optional2--',
  7451. "//a[contains(@href,'upnito.sk')]"
  7452. );
  7453. }
  7454. if (GM_getValue("Check_box_dot_com_links", false))
  7455. {
  7456. addFileHost(
  7457. "box\.com\/\\w+",
  7458. 'download-file-btn|id="download_button|preview-download',
  7459. 'BIyMin.png| <div class="error_message|link has been removed',
  7460. 'optional--',
  7461. 'optional2--',
  7462. "//a[contains(@href,'app.box.com')]");
  7463. }
  7464. if (GM_getValue("Check_uptobox_dot_com_links", false))
  7465. {
  7466. addFileHost(
  7467. "uptobox\\.com\/\\w+",
  7468. 'Create Download Link">|Lien de téléchargement',
  7469. 'The file expired|The file was deleted|Fichier introuvable|not available in your country',
  7470. 'Maintenance',
  7471. 'optional2--',
  7472. "//a[contains(@href,'uptobox.com')]"
  7473. );
  7474. }
  7475. if (GM_getValue("Check_sharecash_dot_org_links", false))
  7476. {
  7477. addFileHost(
  7478. "sharecash\\.org\/download\\.php\\?file=\\d+",
  7479. 'FILE DOWNLOAD<',
  7480. 'File Does Not Exist',
  7481. 'optional--',
  7482. 'optional2--',
  7483. "//a[contains(@href,'sharecash.org/download.php')]"
  7484. );
  7485. }
  7486. if (GM_getValue("Check_depositfiles_dot_com_links", false)) //folders
  7487. {
  7488. addFileHost(
  7489. "depositfiles\\.com\/folders\/\\w+",
  7490. '<div class="progressContainer">',
  7491. '<div id="files" class="files">\\s*<\/div>',
  7492. 'optional--',
  7493. 'optional2--',
  7494. "//a[contains(@href,'depositfiles.com/folders')]"
  7495. );
  7496. }
  7497. if (GM_getValue("Check_rapidfileshare_dot_net_links", false))
  7498. {
  7499. addFileHost(
  7500. "rapidfileshare\\.net/\\w+",
  7501. '<div id="upload-header-bg">',
  7502. '<div style="width:500px;text-align:left;">',
  7503. 'optional--',
  7504. 'optional2--',
  7505. "//a[contains(@href,'rapidfileshare.net/')]"
  7506. );
  7507. }
  7508. if (GM_getValue("Check_stiahnito_dot_sk_links", false))
  7509. {
  7510. addFileHost(
  7511. "stiahnito\\.sk/",
  7512. '<span class="filesize right">',
  7513. '<ol class="list-purp-2">',
  7514. 'optional--',
  7515. 'optional2--',
  7516. "//a[contains(@href,'stiahnito.sk/')]"
  7517. );
  7518. }
  7519. if (GM_getValue("Check_rusfolder_dot_com_links", false))
  7520. {
  7521. addFileHost(
  7522. "rusfolder\\.(?:com|net)",
  7523. '"download-step-one-form"|Название: <b>|Файлы|Файлы в папке',
  7524. '"ui-state-error ui-corner-all"|File is removed|File not found|удален',
  7525. 'optional--',
  7526. 'optional2--',
  7527. "//a[contains(@href,'rusfolder')]"
  7528. );
  7529. }
  7530. if (GM_getValue("Check_fileover_dot_net_links", false))
  7531. {
  7532. addFileHost(
  7533. "fileover\\.net/\\d+",
  7534. 'id="filesize"',
  7535. 'Not found or deleted|The following file is unavailable',
  7536. 'optional--',
  7537. 'optional2--',
  7538. "//a[contains(@href,'fileover.net/')]"
  7539. );
  7540. }
  7541. if (GM_getValue("Check_catshare_dot_net_links", false))
  7542. {
  7543. addFileHost(
  7544. "catshare\\.net/\\w+",
  7545. '"icon-share',
  7546. 'alert alert-error',
  7547. 'optional--',
  7548. 'optional2--',
  7549. "//a[contains(@href,'catshare.net/')]"
  7550. );
  7551. }
  7552. if (GM_getValue("Check_anonfiles_dot_com_links", false))
  7553. {
  7554. addFileHost(
  7555. "anonfiles\\.com/\\w+",
  7556. '"download_button"',
  7557. '<legend><b>404</b>',
  7558. 'optional--',
  7559. 'optional2--',
  7560. "//a[contains(@href,'anonfiles.com')]"
  7561. );
  7562. }
  7563. if (GM_getValue("Check_mixturecloud_dot_com_links", false))
  7564. {
  7565. addFileHost(
  7566. "mixturecloud\\.com/media/\\w+",
  7567. '"btn icon i_globe gray share_150',
  7568. '"s_cross_close"></span> 404:',
  7569. 'optional--',
  7570. 'optional2--',
  7571. "//a[contains(@href,'mixturecloud.com/media/')]"
  7572. );
  7573. }
  7574. if (GM_getValue("Check_akafile_dot_com_links", false))
  7575. {
  7576. addFileHost(
  7577. "akafile\\.com\/\\w+",
  7578. 'download1',
  7579. 'File Not Found',
  7580. 'optional--',
  7581. 'optional2--',
  7582. "//a[contains(@href,'akafile.com/')]"
  7583. );
  7584. }
  7585. if (GM_getValue("Check_creafile_dot_net_links", false))
  7586. {
  7587. addFileHost(
  7588. "creafile\\.net\/\\w+",
  7589. 'downloadblock',
  7590. 'errtitle',
  7591. 'optional--',
  7592. 'optional2--',
  7593. "//a[contains(@href,'creafile.net/')]"
  7594. );
  7595. }
  7596. if (GM_getValue("Check_hugefiles_dot_net_links", false))
  7597. {
  7598. addFileHost(
  7599. "hugefiles\\.net\/\\w+",
  7600. 'download1|class="btn-create-download" value="Create Download Link">',
  7601. 'File Not Found|No such file with this filename|tyle="width:500px;text-align:left;">',
  7602. 'optional--',
  7603. 'optional2--',
  7604. "//a[contains(@href,'hugefiles.net/')]"
  7605. );
  7606. }
  7607. if (GM_getValue("Check_sendmyway_dot_com_links", false))
  7608. {
  7609. addFileHost(
  7610. "sendmyway\\.com\/\\w+",
  7611. 'id="btn_download"',
  7612. '500px;text-align:left;"|<center><h3>',
  7613. 'optional--',
  7614. 'optional2--',
  7615. "//a[contains(@href,'sendmyway.com/')]"
  7616. );
  7617. }
  7618. if (GM_getValue("Check_upload_dot_ee_links", false))
  7619. {
  7620. addFileHost(
  7621. "upload\\.ee\/\\w+",
  7622. 'onmouseout="document.dllink.src',
  7623. 'There is no such file.|File was deleted|Fail kustutati|Файл удалён|Такого файла нет',
  7624. 'optional--',
  7625. 'optional2--',
  7626. "//a[contains(@href,'upload.ee/')]"
  7627. );
  7628. }
  7629. if (GM_getValue("Check_shareplace_dot_org_links", false))
  7630. {
  7631. addFileHost(
  7632. "shareplace\\.org\/\\?\\w+",
  7633. 'Download-Link',
  7634. 'Your requested file is not found|Select file to send',
  7635. 'optional--',
  7636. 'optional2--',
  7637. "//a[contains(@href,'shareplace.org/?')]"
  7638. );
  7639. }
  7640. if (GM_getValue("Check_uploadc_dot_com_links", false))
  7641. {
  7642. addFileHost(
  7643. "uploadc\\.com\/\\w+",
  7644. 'id="prebut"',
  7645. 'File Not Found|This file has been removed due',
  7646. 'optional--',
  7647. 'optional2--',
  7648. "//a[contains(@href,'uploadc.com/')]"
  7649. );
  7650. }
  7651. if (GM_getValue("Check_remixshare_dot_com_links", false))
  7652. {
  7653. addFileHost(
  7654. "remixshare\\.com\/\\w+",
  7655. 'id="dl2"',
  7656. '<table class=\'failed\'><tr><td width=\'90%\'>|Sorry, die Datei konnte nicht gefunden werden',
  7657. 'optional--',
  7658. 'optional2--',
  7659. "//a[contains(@href,'remixshare.com/')]"
  7660. );
  7661. }
  7662. if (GM_getValue("Check_exoshare_dot_com_links", false))
  7663. {
  7664. addFileHost(
  7665. "exoshare\\.com\/download\\.php\\?uid=\\w+",
  7666. 'Last Download :',
  7667. 'img src="\\/404.jpg"',
  7668. 'optional--',
  7669. 'optional2--',
  7670. "//a[contains(@href,'exoshare.com/download.php')]"
  7671. );
  7672. }
  7673. if (GM_getValue("Check_borncash_dot_org_links", false))
  7674. {
  7675. addFileHost(
  7676. "borncash\\.org\/download\/\\?a=\\w+",
  7677. 'class="knop_1"',
  7678. '\/error\/er00',
  7679. 'optional--',
  7680. 'optional2--',
  7681. "//a[contains(@href,'borncash.org/download/')]"
  7682. );
  7683. }
  7684. if (GM_getValue("Check_vidplay_dot_net_links", false))
  7685. {
  7686. addFileHost(
  7687. "vidplay\.net\/\\w+",
  7688. 'solvemedia puzzle widget',
  7689. 'File not found|AVOID_IE_BUG',
  7690. 'optional--',
  7691. 'optional2--',
  7692. "//a[contains(@href,'vidplay.net')]");
  7693. }
  7694. if (GM_getValue("Check_storagon_dot_com_links", false))
  7695. {
  7696. addFileHost(
  7697. "storagon\.com\/\\w+",
  7698. 'class="icon-cloud-download"></i>|content="Download Options',
  7699. 'content="Download Downloads|class="error-container">|class="bigger-300 bolder">404<',
  7700. 'optional--',
  7701. 'optional2--',
  7702. "//a[contains(@href,'storagon.com')]");
  7703. }
  7704. if (GM_getValue("Check_filedais_dot_com_links", false))
  7705. {
  7706. addFileHost(
  7707. "filedais\.com\/\\w+",
  7708. 'class="btn btn-info"|name="method_free"',
  7709. 'style="width:500px;text-align:left;">|File Not Found|AVOID_IE_BUG',
  7710. 'optional--',
  7711. 'optional2--',
  7712. "//a[contains(@href,'filedais.com')]");
  7713. }
  7714. if (GM_getValue("Check_up_dot_4share_dot_vn_links", false))
  7715. {
  7716. addFileHost(
  7717. "up.4share\.vn\/\\w+",
  7718. '<font size="2" face="Verdana">',
  7719. 'font: 13px Tahoma; color: Brown',
  7720. 'optional--',
  7721. 'optional2--',
  7722. "//a[contains(@href,'up.4share.vn')]");
  7723. }
  7724. if (GM_getValue("Check_share_dot_vnn_dot_vn_links", false))
  7725. {
  7726. addFileHost(
  7727. "share.vnn\.vn\/\\w+",
  7728. '"index,follow"|<div class="main" id="download-box">',
  7729. '<meta name="description" content="" />|<h1>Không tìm thấy file bạn yêu cầu</h1>',
  7730. 'optional--',
  7731. 'optional2--',
  7732. "//a[contains(@href,'share.vnn.vn')]");
  7733. }
  7734. if (GM_getValue("Check_upfile_dot_vn_links", false))
  7735. {
  7736. addFileHost(
  7737. "upfile\.vn\/\\w+",
  7738. 'download-timer',
  7739. '<meta name="description" content="Upload files|<meta name="description" content="Error "',
  7740. 'optional--',
  7741. 'optional2--',
  7742. "//a[contains(@href,'upfile.vn')]");
  7743. }
  7744. if (GM_getValue("Check_aisfile_dot_com_links", false))
  7745. {
  7746. addFileHost(
  7747. "aisfile\.com\/\\w+",
  7748. '<h3 style="text-align:left;">|align=right><b>Filename:',
  7749. '<div style="width:500px;text-align:left;">|File Not Found',
  7750. 'optional--',
  7751. 'optional2--',
  7752. "//a[contains(@href,'aisfile.com')]");
  7753. }
  7754. if (GM_getValue("Check_usersfiles_dot_com_links", false))
  7755. {
  7756. addFileHost(
  7757. "usersfiles\.com\/\\w+",
  7758. 'class="btn btn-success|id="btn_download" class="btn"',
  7759. '<div style="width:500px;text-align:left;">|class="label label-inverse">|class="err">',
  7760. 'optional--',
  7761. 'optional2--',
  7762. "//a[contains(@href,'usersfiles.com')]");
  7763. }
  7764. if (GM_getValue("Check_pan_dot_baidu_dot_com_links", false))
  7765. {
  7766. addFileHost(
  7767. "pan.baidu\.com\/\\w+",
  7768. 'target="_blank" title=|share-personal-info',
  7769. 'share_notfound.png|background:#f9f9f9',
  7770. 'optional--',
  7771. 'optional2--',
  7772. "//a[contains(@href,'pan.baidu.com')]");
  7773. }
  7774. if (GM_getValue("Check_yunpan_dot_cn_links", false))
  7775. {
  7776. addFileHost(
  7777. "yunpan\.cn\/\\w+",
  7778. 'class="icon icon-download',
  7779. 'content="360|http://p5.qhimg.com/t01d1c98667df9dc6cc.jpg',
  7780. 'optional--',
  7781. 'optional2--',
  7782. "//a[contains(@href,'yunpan.cn')]");
  7783. }
  7784. if (GM_getValue("Check_file_dash_upload_dot_net_links", false))
  7785. {
  7786. addFileHost(
  7787. "(?:en\\.|)file\\-upload\\.net\/download\\-\\d+\/\\w+",
  7788. 'getElementById("downbild")|style.display',
  7789. 'hochgeladene Datei nicht gefunden werden|has not been found',
  7790. 'optional--',
  7791. 'optional2--',
  7792. "//a[contains(@href,'file-upload.net')]");
  7793. }
  7794. if (GM_getValue("Check_gulfup_dot_com_links", false))
  7795. {
  7796. addFileHost(
  7797. "gulfup\.com\/",
  7798. '<!-- Downlod template -->|download.gif',
  7799. '<!-- Errors template -->|class="error">|<!-- form upload -->|[ رفع الملفات ]',
  7800. 'optional--',
  7801. 'optional2--',
  7802. "//a[contains(@href,'gulfup.com')]");
  7803. }
  7804. if (GM_getValue("Check_datafilehost_dot_com_links", false))
  7805. {
  7806. addFileHost(
  7807. "datafilehost\\.com\/(?:download-\\w+\\.html|d\/\\w+)",
  7808. 'dldtable">',
  7809. 'does not exist\\.',
  7810. 'optional--',
  7811. 'optional2--',
  7812. "//a[contains(@href,'datafilehost.com')]");
  7813. }
  7814. if (GM_getValue("Check_dropbox_dot_com_links", false))
  7815. {
  7816. addFileHost(
  7817. "dropbox\.com\/s\/\\w+",
  7818. 'default_content_download_button" class="freshbutton-blue">|content_download_button',
  7819. '>Nothing Here<|>Error (404)<',
  7820. 'title>Dropbox - 509|Error (403)|Error: 429',
  7821. 'optional2--',
  7822. "//a[contains(@href,'dropbox.com')]");
  7823. }
  7824. if (GM_getValue("Check_box_dot_net_links", false))
  7825. {
  7826. addFileHost(
  7827. "box\.net\/\\w+",
  7828. 'download-file-btn|id="download_button',
  7829. 'BIyMin.png| <div class="error_message',
  7830. 'optional--',
  7831. 'optional2--',
  7832. "//a[contains(@href,'box.net')]");
  7833. }
  7834. if (GM_getValue("Check_fileband_dot_com_links", false))
  7835. {
  7836. addFileHost(
  7837. "fileband\.com\/\\w+",
  7838. 'value="download1">|name="id" value=',
  7839. '<div style="width:500px;text-align:left;">|not be found',
  7840. 'optional--',
  7841. 'optional2--',
  7842. "//a[contains(@href,'fileband.com')]");
  7843. }
  7844. if (GM_getValue("Check_filedropper_dot_com_links", false))
  7845. {
  7846. addFileHost(
  7847. "filedropper\.com\/\\w+",
  7848. 'background:#ddd;|width:985px; ',
  7849. 'background-color:#FFFFFF;|margin-left: -400px;',
  7850. 'optional--',
  7851. 'optional2--',
  7852. "//a[contains(@href,'filedropper.com')]");
  7853. }
  7854. if (GM_getValue("Check_tropicshare_dot_com_links", false))
  7855. {
  7856. addFileHost(
  7857. "tropicshare\\.com\/files\/\\d+",
  7858. 'MB</span>|GB</span>|KB</span>',
  7859. '>FNF<|size: </span>',
  7860. 'optional--',
  7861. 'optional2--',
  7862. "//a[contains(@href,'tropicshare.com')]");
  7863. }
  7864. if (GM_getValue("Check_goldbytez_dot_com_links", false))
  7865. {
  7866. addFileHost(
  7867. "goldbytez\.com\/\\w+",
  7868. '<h2>Download</h2>|<center><h2>File: <font color="red">',
  7869. '<div style="width:500px;text-align:left;">|<h2>Error</h2>',
  7870. 'optional--',
  7871. 'optional2--',
  7872. "//a[contains(@href,'goldbytez.com')]");
  7873. }
  7874. if (GM_getValue("Check_worldbytez_dot_com_links", false))
  7875. {
  7876. addFileHost(
  7877. "worldbytez\.com\/\\w+",
  7878. '<div class="download_type">',
  7879. '<div style="width:500px;text-align:left;">',
  7880. 'optional--',
  7881. 'optional2--',
  7882. "//a[contains(@href,'worldbytez.com')]");
  7883. }
  7884. if (GM_getValue("Check_freefilehosting_dot_net_links", false))
  7885. {
  7886. addFileHost(
  7887. "freefilehosting\.net\/\\w+",
  7888. 'Type: cbr|Type: rar|Type: jpg|Type: mkv|Type: avi|Type: mpg|Type: mpeg|Type: zip|Type: wmvType: bmpType: gifType: mp4Type: mp3',
  7889. '175px;" value="http://www.freefilehosting.net/"|Filename: <br>',
  7890. 'optional--',
  7891. 'optional2--',
  7892. "//a[contains(@href,'freefilehosting.net')]");
  7893. }
  7894. if (GM_getValue("Check_ziddu_dot_com_links", false))
  7895. {
  7896. addFileHost(
  7897. "ziddu\.com\/\\w+",
  7898. 'downloads.ziddu.com|downloadfilelinkicon',
  7899. 'errortracking.php|images/oops.png|fontfamilyverdana error',
  7900. 'optional--',
  7901. 'optional2--',
  7902. "//a[contains(@href,'ziddu.com')]");
  7903. }
  7904. if (GM_getValue("Check_exclusiveloader_dot_com_links", false))
  7905. {
  7906. addFileHost(
  7907. "exclusiveloader\.com\/\\w+",
  7908. 'style="padding-top:55px; padding-bottom:65px;">|<h2>Download</h2>',
  7909. 'File Not Found|width:322px;text-align:left;" class="no_file">',
  7910. 'optional--',
  7911. 'optional2--',
  7912. "//a[contains(@href,'exclusiveloader.com')]");
  7913. }
  7914. if (GM_getValue("Check_sharerapid_dot_cz_links", false))
  7915. {
  7916. addFileHost(
  7917. "sharerapid\.cz\/\\w+",
  7918. 'value="Stáhnout"|soubor" style|Stahování je povoleno pouze pro přihlášené uživatele',
  7919. 'error_div">|404 - Not Found',
  7920. 'optional--',
  7921. 'optional2--',
  7922. "//a[contains(@href,'sharerapid.cz')]");
  7923. }
  7924. if (GM_getValue("Check_sdilej_dot_cz_links", false))
  7925. {
  7926. addFileHost(
  7927. "sdilej\.cz\/\\w+",
  7928. 'class="page-download"',
  7929. '<h2 class="red">|czshare.com|sponsored listings|This domain is for sale',
  7930. 'optional--',
  7931. 'optional2--',
  7932. "//a[contains(@href,'sdilej.cz')]");
  7933. }
  7934. if (GM_getValue("Check_lafiles_dot_com_links", false))
  7935. {
  7936. addFileHost(
  7937. "lafiles\.com\/\\w+",
  7938. '<div id="pay_modes">',
  7939. '<b class="err"></b>',
  7940. 'optional--',
  7941. 'optional2--',
  7942. "//a[contains(@href,'lafiles.com')]");
  7943. }
  7944. if (GM_getValue("Check_acefile_dot_net_links", false))
  7945. {
  7946. addFileHost(
  7947. "acefile\.net\/\\w+",
  7948. 'align=right nowrap><b>',
  7949. 'File Not Found|<div style="width:322px;text-align:left;" class="no_file">',
  7950. 'optional--',
  7951. 'optional2--',
  7952. "//a[contains(@href,'acefile.net')]");
  7953. }
  7954. if (GM_getValue("Check_megarapid_dot_cz_links", false))
  7955. {
  7956. addFileHost(
  7957. "megarapid\.cz\/\\w+",
  7958. 'value="Stáhnout"|soubor" style|Stahování je povoleno pouze pro přihlášené uživatele',
  7959. 'error_div">|404 - Not Found',
  7960. 'optional--',
  7961. 'optional2--',
  7962. "//a[contains(@href,'megarapid.cz')]");
  7963. }
  7964. if (GM_getValue("Check_yadi_dot_sk_links", false))
  7965. {
  7966. addFileHost(
  7967. "yadi\.sk\/\\w+",
  7968. 'twitter:site|View and download',
  7969. 'error code|Nothing found',
  7970. 'optional--',
  7971. 'optional2--',
  7972. "//a[contains(@href,'yadi.sk')]");
  7973. }
  7974. /* if (GM_getValue("Check_imdb_dot_com_links", false))
  7975. {
  7976. addFileHost(
  7977. "imdb\.com\/\\w+",
  7978. 'imdb.com',
  7979. '404 Error',
  7980. 'optional--',
  7981. 'optional2--',
  7982. "//a[contains(@href,'imdb.com')]");
  7983. } */
  7984. if (GM_getValue("Check_hitfile_dot_net_links", false))
  7985. {
  7986. addFileHost(
  7987. "hitfile\.net\/\\w+",
  7988. 'class="download-file',
  7989. 'style="width:16px;height:16px;border:0;|File not found|File was deleted or not found|Le fichier a été supprimé ou n|Файл не найден. Возможно он был удален',
  7990. 'optional--',
  7991. 'optional2--',
  7992. "//a[contains(@href,'hitfile.net')]");
  7993. }
  7994. if (GM_getValue("Check_nitroflare_dot_com_links", true))
  7995. {
  7996. addFileHost(
  7997. "nitroflare\.com\/\\w+",
  7998. 'Report this file</a>|left;">1 GB<|KB</span>|left;">1.0',
  7999. 'file has been removed|id="error" style="display|Probably deleted|file has been removed due to infringement',
  8000. 'optional--',
  8001. '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.|',
  8002. "//a[contains(@href,'nitroflare.com')]");
  8003. }
  8004. if (GM_getValue("Check_up_dot_top4top_dot_net_links", false))
  8005. {
  8006. addFileHost(
  8007. "up.top4top\.net\/\\w+",
  8008. 'start Downlod template',
  8009. 'start err template',
  8010. 'optional--',
  8011. 'optional2--',
  8012. "//a[contains(@href,'up.top4top.net')]");
  8013. }
  8014. if (GM_getValue("Check_filejoker_dot_net_links", false))
  8015. {
  8016. addFileHost(
  8017. "filejoker\.net\/\\w+",
  8018. 'button id="regular-download">Slow|method_free" value="1|<div id="download" class="download0">|>Get Download Link<',
  8019. 'File Not Found|class="not_found|<div id="download" class="not_found">|"err">DMCA Complaint<',
  8020. 'optional--',
  8021. 'id="download" class="premium-only">',
  8022. "//a[contains(@href,'filejoker.net')]");
  8023. }
  8024. if (GM_getValue("Check_free_dot_fr_links", false))
  8025. {
  8026. addFileHost(
  8027. "(?:dl.\\.|)free\\.fr",
  8028. 'Valider et t&eacute;l&eacute',
  8029. 'Fichier inexistant|Fichier supprim&eacute; pour raison de copyright',
  8030. 'optional--',
  8031. 'optional2--',
  8032. "//a[contains(@href,'dl.free.fr')]");
  8033. }
  8034. if (GM_getValue("Check_gboxes_dot_com_links", false))
  8035. {
  8036. addFileHost(
  8037. "gboxes\.com\/\\w+",
  8038. 'You have requested|color="red">http://www.gboxes.com',
  8039. 'File Not Found|<div style="width:500px;text-align:left;">',
  8040. 'optional--',
  8041. 'optional2--',
  8042. "//a[contains(@href,'gboxes.com')]");
  8043. }
  8044. if (GM_getValue("Check_led_dot_wf_links", false))
  8045. {
  8046. addFileHost(
  8047. "led\.wf\/\\w+",
  8048. 'logo_0.png|downloads.gif"|verifycode',
  8049. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  8050. 'optional--',
  8051. 'available only for Premium users',
  8052. "//a[contains(@href,'led.wf')]");
  8053. }
  8054. if (GM_getValue("Check_lan_dot_wf_links", false))
  8055. {
  8056. addFileHost(
  8057. "lan\.wf\/\\w+",
  8058. 'logo_0.png|downloads.gif"|verifycode',
  8059. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  8060. 'optional--',
  8061. 'available only for Premium users',
  8062. "//a[contains(@href,'lan.wf')]");
  8063. }
  8064. if (GM_getValue("Check_adlink_dot_wf_links", false))
  8065. {
  8066. addFileHost(
  8067. "adlink\.wf\/\\w+",
  8068. 'logo_0.png|downloads.gif"|verifycode',
  8069. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  8070. 'optional--',
  8071. 'available only for Premium users',
  8072. "//a[contains(@href,'adlink.wf')]");
  8073. }
  8074. if (GM_getValue("Check_click_dot_tf_links", false))
  8075. {
  8076. addFileHost(
  8077. "click\.tf\/\\w+",
  8078. 'logo_0.png|downloads.gif"|verifycode',
  8079. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  8080. 'optional--',
  8081. 'available only for Premium users',
  8082. "//a[contains(@href,'click.tf')]");
  8083. }
  8084. if (GM_getValue("Check_ssh_dot_tf_links", false))
  8085. {
  8086. addFileHost(
  8087. "ssh\.tf\/\\w+",
  8088. 'logo_0.png|downloads.gif"|verifycode',
  8089. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  8090. 'optional--',
  8091. 'available only for Premium users',
  8092. "//a[contains(@href,'ssh.tf')]");
  8093. }
  8094. if (GM_getValue("Check_ssh_dot_yt_links", false))
  8095. {
  8096. addFileHost(
  8097. "ssh\.yt\/\\w+",
  8098. 'logo_0.png|downloads.gif"|verifycode',
  8099. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  8100. 'optional--',
  8101. 'available only for Premium users',
  8102. "//a[contains(@href,'ssh.yt')]");
  8103. }
  8104. if (GM_getValue("Check_yep_dot_pm_links", false))
  8105. {
  8106. addFileHost(
  8107. "yep\.pm\/\\w+",
  8108. 'logo_0.png|downloads.gif"|verifycode',
  8109. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  8110. 'optional--',
  8111. 'available only for Premium users',
  8112. "//a[contains(@href,'yep.pm')]");
  8113. }
  8114. if (GM_getValue("Check_kyc_dot_pm_links", false))
  8115. {
  8116. addFileHost(
  8117. "kyc\.pm\/\\w+",
  8118. 'logo_0.png|downloads.gif"|verifycode',
  8119. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  8120. 'optional--',
  8121. 'available only for Premium users',
  8122. "//a[contains(@href,'kyc.pm')]");
  8123. }
  8124. if (GM_getValue("Check_brupload_dot_net_links", false))
  8125. {
  8126. addFileHost(
  8127. "brupload\.net\/\\w+",
  8128. 'Download Gratuito',
  8129. '<div style="width:500px;text-align:left;">',
  8130. 'optional--',
  8131. 'optional2--',
  8132. "//a[contains(@href,'brupload.net')]");
  8133. }
  8134. if (GM_getValue("Check_cloudzilla_dot_to_links", false))
  8135. {
  8136. addFileHost(
  8137. "cloudzilla\.to\/\\w+",
  8138. 'btn1" id="free_download|onclick="freeDownload|id="pwd_protected">',
  8139. 'File not found|/imgs/broken.png',
  8140. 'optional--',
  8141. 'optional2--',
  8142. "//a[contains(@href,'cloudzilla.to')]");
  8143. }
  8144. /* if (GM_getValue("Check_fileparadox_dot_in_links", false))
  8145. {
  8146. addFileHost(
  8147. "fileparadox\.in\/\\w+",
  8148. 'CONTENT="Download File|method_free_file',
  8149. '>File Not Found<|id="no_filedownload">|FILE NOT FOUND|The file does not exist',
  8150. 'optional--',
  8151. 'optional2--',
  8152. "//a[contains(@href,'fileparadox.in')or contains(@href,'3files.net/')]");
  8153. } */
  8154. if (GM_getValue("Check_clicknupload_dot_com_links", false))
  8155. {
  8156. addFileHost(
  8157. "clicknupload\.com\/\\w+",
  8158. 'name="method_free',
  8159. 'File Not Found',
  8160. 'optional--',
  8161. 'optional2--',
  8162. "//a[contains(@href,'clicknupload.com')]");
  8163. }
  8164. if (GM_getValue("Check_clicknupload_dot_me_links", false))
  8165. {
  8166. addFileHost(
  8167. "clicknupload\.me\/\\w+",
  8168. 'name="method_free',
  8169. 'File Not Found',
  8170. 'optional--',
  8171. 'optional2--',
  8172. "//a[contains(@href,'clicknupload.me')]");
  8173. }
  8174. if (GM_getValue("Check_ex_dash_load_dot_com_links", false))
  8175. {
  8176. addFileHost(
  8177. "ex-load\.com\/\\w+",
  8178. 'name="method_free|<p>Download File:</p>',
  8179. 'Folder Not Found|File Not Found|Error 404',
  8180. 'optional--',
  8181. 'class="downprem wow bounceInLeft',
  8182. "//a[contains(@href,'ex-load.com')]");
  8183. }
  8184. if (GM_getValue("Check_hexupload_dot_com_links", false))
  8185. {
  8186. addFileHost(
  8187. "hexupload\.com\/\\w+",
  8188. 'button" value="Free|type="submit" value=""',
  8189. 'File Not Found|<div style="width:500px;text-align:left;">',
  8190. 'optional--',
  8191. 'optional2--',
  8192. "//a[contains(@href,'hexupload.com')]");
  8193. }
  8194. if (GM_getValue("Check_wizupload_dot_com_links", false))
  8195. {
  8196. addFileHost(
  8197. "wizupload\.com\/\\w+",
  8198. 'btn_download|class="downloadbtn"',
  8199. '>File Not Found<',
  8200. 'optional--',
  8201. 'optional2--',
  8202. "//a[contains(@href,'wizupload.com')]");
  8203. }
  8204. if (GM_getValue("Check_filecloud_dot_cc_links", false))
  8205. {
  8206. addFileHost(
  8207. "filecloud\.cc\/\\w+",
  8208. 'align="center"><input type="submit" name=',
  8209. 'File Not Found|<Title>FileCloud - Premium Hosting Service<',
  8210. 'optional--',
  8211. 'optional2--',
  8212. "//a[contains(@href,'filecloud.cc')]");
  8213. }
  8214. if (GM_getValue("Check_inclouddrive_dot_com_links", false))
  8215. {
  8216. addFileHost(
  8217. "inclouddrive\.com\/\\w+",
  8218. 'initfreedownload',
  8219. '<title>Content Unavailable|The file you are trying to download is no longer available',
  8220. 'optional--',
  8221. 'optional2--',
  8222. "//a[contains(@href,'inclouddrive.com')]");
  8223. }
  8224. if (GM_getValue("Check_radicalshare_dot_com_links", false))
  8225. {
  8226. addFileHost(
  8227. "radicalshare\.com\/\\w+",
  8228. 'value="download1|name="method_free"',
  8229. 'File Not Found<|<div style="width:500px;text-align:left;">',
  8230. 'optional--',
  8231. 'optional2--',
  8232. "//a[contains(@href,'radicalshare.com')]");
  8233. }
  8234. if (GM_getValue("Check_sharemods_dot_com_links", false))
  8235. {
  8236. addFileHost(
  8237. "sharemods\.com\/\\w+",
  8238. 'name="method_free"',
  8239. 'File Not Found<',
  8240. 'optional--',
  8241. 'optional2--',
  8242. "//a[contains(@href,'sharemods.com')]");
  8243. }
  8244. if (GM_getValue("Check_hostr_dot_co_links", false))
  8245. {
  8246. addFileHost(
  8247. "hostr\.co\/\\w+",
  8248. 'method="get"',
  8249. 'File not found<|error-page',
  8250. 'optional--',
  8251. 'optional2--',
  8252. "//a[contains(@href,'hostr.co')]");
  8253. }
  8254. if (GM_getValue("Check_filepi_dot_com_links", false))
  8255. {
  8256. addFileHost(
  8257. "filepi\.com\/\\w+",
  8258. 'id="button_start">',
  8259. 'File not found',
  8260. 'optional--',
  8261. 'optional2--',
  8262. "//a[contains(@href,'filepi.com')]");
  8263. }
  8264. if (GM_getValue("Check_tikfile_dot_com_links", false))
  8265. {
  8266. addFileHost(
  8267. "tikfile\.com\/\\w+",
  8268. 'btn_download',
  8269. 'File Not Found|file was removed|Reason for deletion',
  8270. 'optional--',
  8271. 'optional2--',
  8272. "//a[contains(@href,'tikfile.com')]");
  8273. }
  8274. if (GM_getValue("Check_cloudsix_dot_me_links", false))
  8275. {
  8276. addFileHost(
  8277. "cloudsix\.me\/\\w+",
  8278. 'name="method_free"',
  8279. 'File Not Found|width:500px;text-align:left;">',
  8280. 'optional--',
  8281. 'optional2--',
  8282. "//a[contains(@href,'cloudsix.me')]");
  8283. }
  8284. if (GM_getValue("Check_neodrive_dot_co_links", false))
  8285. {
  8286. addFileHost(
  8287. "neodrive\.co\/\\w+",
  8288. 'btn1" id="free_download|onclick="freeDownload|id="pwd_protected">',
  8289. 'File not found|/imgs/broken.png',
  8290. 'optional--',
  8291. 'optional2--',
  8292. "//a[contains(@href,'neodrive.co')]");
  8293. }
  8294. if (GM_getValue("Check_chayfile_dot_com_links", false))
  8295. {
  8296. addFileHost(
  8297. "chayfile\.com\/\\w+",
  8298. 'name="method_free"',
  8299. 'File Not Found|<h3>The file was removed by administrator</h3>',
  8300. 'optional--',
  8301. 'optional2--',
  8302. "//a[contains(@href,'chayfile.com')]");
  8303. }
  8304. if (GM_getValue("Check_xfileload_dot_com_links", false))
  8305. {
  8306. addFileHost(
  8307. "xfileload\.com\/\\w+",
  8308. 'Filename:|Имя файла:|Dateiname:|nom de fichier :|اسم الملف:|Dosya AdД±|Nazwa:|Nombre de fichero:|NamaFile:|Bestandsnaam:|שם קובץ:"',
  8309. '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..|הקובץ שחיפשת לא נמצא.',
  8310. 'optional--',
  8311. 'optional2--',
  8312. "//a[contains(@href,'xfileload.com')]");
  8313. }
  8314. if (GM_getValue("Check_rockfile_dot_eu_links", false))
  8315. {
  8316. addFileHost(
  8317. "rockfile\.eu\/\\w+",
  8318. 'You have requested:|vous avez demandé|قد طلبت:|você solicitou:|Hai richiesto:|Sie haben angefordert:|Вы заказали:|Has solicitado',
  8319. 'The file you were looking for could not be found, sorry for any inconvenience.|fa-chain-broken">',
  8320. 'optional--',
  8321. 'optional2--',
  8322. "//a[contains(@href,'rockfile.eu')]");
  8323. }
  8324. if (GM_getValue("Check_24uploading_dot_com_links", false))
  8325. {
  8326. addFileHost(
  8327. "24uploading\.com\/\\w+",
  8328. 'File:|Download Speed:',
  8329. '<b>File Not Found</b>|file was removed',
  8330. 'optional--',
  8331. 'optional2--',
  8332. "//a[contains(@href,'24uploading.com')]");
  8333. }
  8334. if (GM_getValue("Check_tusfiles_dot_net_links", false))
  8335. {
  8336. addFileHost(
  8337. "tusfiles\.net\/\\w+",
  8338. 'i/icon/dll.png"|>Start download<br',
  8339. 'no longer available<|i/ino.png"',
  8340. 'optional--',
  8341. 'optional2--',
  8342. "//a[contains(@href,'tusfiles.net')]");
  8343. }
  8344. /* if (GM_getValue("Check_jumbofile_dot_net_links", false))
  8345. {
  8346. addFileHost(
  8347. "jumbofile\.net\/\\w+",
  8348. 'button" class="" value="Free',
  8349. 'This File Was Deleted',
  8350. 'optional--',
  8351. 'optional2--',
  8352. "//a[contains(@href,'jumbofile.net')]");
  8353. } */
  8354. if (GM_getValue("Check_ozofiles_dot_com_links", false))
  8355. {
  8356. addFileHost(
  8357. "ozofiles\.com\/\\w+",
  8358. 'button" value="Free',
  8359. 'File Not Found|width:500px;text-align:left;">|File Deleted',
  8360. 'optional--',
  8361. 'optional2--',
  8362. "//a[contains(@href,'ozofiles.com')]");
  8363. }
  8364. if (GM_getValue("Check_loudupload_dot_net_links", false))
  8365. {
  8366. addFileHost(
  8367. "loudupload\.net\/\\w+",
  8368. 'value="Get Links',
  8369. 'File Not Found',
  8370. 'optional--',
  8371. 'optional2--',
  8372. "//a[contains(@href,'loudupload.net')]");
  8373. }
  8374. /* if (GM_getValue("Check_rapidsonic_dot_com_links", false))
  8375. {
  8376. addFileHost(
  8377. "(rapidsonic|fileparadox)\\.com\/\\w+",
  8378. 'method_free" id="submit_btn|<h4><i class="icon_document_alt"></i>Download File</h4>',
  8379. '>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">',
  8380. 'optional--',
  8381. 'optional2--',
  8382. "//a[contains(@href,'rapidsonic') or contains(@href,'3files.net/') or contains(@href,'fileparadox.com')]");
  8383. }
  8384. if (GM_getValue("Check_krotix_dot_net_links", false))
  8385. {
  8386. addFileHost(
  8387. "krotix\.net\/\\w+",
  8388. 'btn btn-warning|btn-free',
  8389. 'pageErrors|This File has been removed',
  8390. 'content="Scheduled Maintenance',
  8391. 'optional2--',
  8392. "//a[contains(@href,'krotix.net')]");
  8393. } */
  8394. if (GM_getValue("Check_userscloud_dot_com_links", false))
  8395. {
  8396. addFileHost(
  8397. "userscloud\.com\/\\w+",
  8398. 'btn_download',
  8399. '>Server OFFLINE|background:#D3D3D3;border-bottom:1px solid #BBB;font:bold 13px Verdana;padding:3px;">|-chain-broken',
  8400. 'optional--',
  8401. 'optional2--',
  8402. "//a[contains(@href,'userscloud.com')]");
  8403. }
  8404. if (GM_getValue("Check_kumpulbagi_dot_com_links", false))
  8405. {
  8406. addFileHost(
  8407. "kumpulbagi\.com\/\\w+",
  8408. 'class="button download',
  8409. 'internal server error',
  8410. 'optional--',
  8411. 'optional2--',
  8412. "//a[contains(@href,'kumpulbagi.com')]");
  8413. }
  8414. if (GM_getValue("Check_faststore_dot_org_links", false))
  8415. {
  8416. addFileHost(
  8417. "faststore\.org\/\\w+",
  8418. 'name="method_free',
  8419. 'File Not Found',
  8420. 'optional--',
  8421. 'optional2--',
  8422. "//a[contains(@href,'faststore.org')]");
  8423. }
  8424. if (GM_getValue("Check_prefiles_dot_com_links", false))
  8425. {
  8426. addFileHost(
  8427. "prefiles\.com\/\\w+",
  8428. 'id="method_free',
  8429. 'File not Found',
  8430. 'optional--',
  8431. 'optional2--',
  8432. "//a[contains(@href,'prefiles.com')]");
  8433. }
  8434. if (GM_getValue("Check_doraupload_dot_com_links", false))
  8435. {
  8436. addFileHost(
  8437. "doraupload\.com\/\\w+",
  8438. 'btn_download|name="method_free',
  8439. 'class="error-code|Could Not Be Found',
  8440. 'optional--',
  8441. 'optional2--',
  8442. "//a[contains(@href,'doraupload.com')]");
  8443. }
  8444. if (GM_getValue("Check_openload_dot_io_links", false))
  8445. {
  8446. addFileHost(
  8447. "openload\.io\/\\w+",
  8448. 'btn btn-primary|class="count">|secondsleftouter',
  8449. 'class="jumbotron">|We are sorry',
  8450. 'optional--',
  8451. 'optional2--',
  8452. "//a[contains(@href,'openload.io')]");
  8453. }
  8454. if (GM_getValue("Check_uploads_dot_xxx_links", false))
  8455. {
  8456. addFileHost(
  8457. "uploads\.xxx\/\\w+",
  8458. 'downoadForFree',
  8459. 'File not found',
  8460. 'optional--',
  8461. 'optional2--',
  8462. "//a[contains(@href,'uploads.xxx')]");
  8463. }
  8464. if (GM_getValue("Check_zxcfiles_dot_com_links", false))
  8465. {
  8466. addFileHost(
  8467. "zxcfiles\.com\/\\w+",
  8468. 'class="downloadbtn',
  8469. 'File Not Found',
  8470. 'optional--',
  8471. 'optional2--',
  8472. "//a[contains(@href,'zxcfiles.com')]");
  8473. }
  8474. if (GM_getValue("Check_up07_dot_net_links", false))
  8475. {
  8476. addFileHost(
  8477. "up07\.net\/\\w+",
  8478. 'name="method_free',
  8479. 'File Not Found',
  8480. 'optional--',
  8481. 'optional2--',
  8482. "//a[contains(@href,'up07.net')]");
  8483. }
  8484. if (GM_getValue("Check_fileupload_dot_pw_links", false))
  8485. {
  8486. addFileHost(
  8487. "fileupload\.pw\/\\w+",
  8488. 'value="Free"',
  8489. 'File Not Found',
  8490. 'optional--',
  8491. 'optional2--',
  8492. "//a[contains(@href,'fileupload.pw')]");
  8493. }
  8494. if (GM_getValue("Check_4upld_dot_com_links", false))
  8495. {
  8496. addFileHost(
  8497. "4upld\.com\/\\w+",
  8498. 'alt="Download Now"|content="Download file">|btn-free-element',
  8499. '<title>Error|content="error|File not found',
  8500. 'optional--',
  8501. 'optional2--',
  8502. "//a[contains(@href,'4upld.com')]");
  8503. }
  8504. /* if (GM_getValue("Check_newfileland_dot_com_links", false))
  8505. {
  8506. addFileHost(
  8507. "newfileland\.com\/\\w+",
  8508. 'name="method_free',
  8509. 'File Not Found',
  8510. 'optional--',
  8511. 'optional2--',
  8512. "//a[contains(@href,'newfileland.com')]");
  8513. } */
  8514. if (GM_getValue("Check_swoopshare_dot_com_links", false))
  8515. {
  8516. addFileHost(
  8517. "(?:.swoopshare)\\.com\/\\w+",
  8518. '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',
  8519. '<input type="file" name="f"',
  8520. 'optional--',
  8521. 'optional2--',
  8522. "//a[contains(@href,'swoopshare.com')]"
  8523. );
  8524. }
  8525. if (GM_getValue("Check_cloudshares_dot_net_links", false))
  8526. {
  8527. addFileHost(
  8528. "cloudshares\.net\/\\w+",
  8529. '"method_free|"Low Speed Download|submit" name="go',
  8530. 'Not Found|"width:500px;text-align:left;">|No such file exist',
  8531. 'optional--',
  8532. 'optional2--',
  8533. "//a[contains(@href,'cloudshares.net')]"
  8534. );
  8535. }
  8536. if (GM_getValue("Check_allmyvideos_dot_net_links", false))
  8537. {
  8538. addFileHost(
  8539. "allmyvideos\.net\/\\w+",
  8540. 'Continue to Video',
  8541. 'File Not Found|class="err">Removed for',
  8542. 'optional--',
  8543. 'optional2--',
  8544. "//a[contains(@href,'allmyvideos.net')]"
  8545. );
  8546. }
  8547. if (GM_getValue("Check_vodlocker_dot_com_links", false))
  8548. {
  8549. addFileHost(
  8550. "vodlocker\.com\/\\w+",
  8551. 'Proceed to video',
  8552. 'Not Found',
  8553. 'optional--',
  8554. 'optional2--',
  8555. "//a[contains(@href,'vodlocker.com')]"
  8556. );
  8557. }
  8558. if (GM_getValue("Check_vidbull_dot_com_links", false))
  8559. {
  8560. addFileHost(
  8561. "vidbull\.com\/\\w+",
  8562. 'Verifying Video Request',
  8563. 'File Not Found',
  8564. 'optional--',
  8565. 'optional2--',
  8566. "//a[contains(@href,'vidbull.com')]");
  8567. }
  8568. if (GM_getValue("Check_novamov_dot_com_links", false))
  8569. {
  8570. addFileHost(
  8571. "novamov\.com\/\\w+",
  8572. 'For version detection',
  8573. 'file no longer exists',
  8574. 'optional--',
  8575. 'optional2--',
  8576. "//a[contains(@href,'novamov.com')]"
  8577. );
  8578. }
  8579. if (GM_getValue("Check_filehoot_dot_com_links", false))
  8580. {
  8581. addFileHost(
  8582. "filehoot\.com\/\\w+",
  8583. 'Continue to watch',
  8584. 'File Not Found',
  8585. 'optional--',
  8586. 'optional2--',
  8587. "//a[contains(@href,'filehoot.com')]"
  8588. );
  8589. }
  8590. if (GM_getValue("Check_stagevu_dot_com_links", false))
  8591. {
  8592. addFileHost(
  8593. "stagevu\.com\/\\w+",
  8594. 'Video Info',
  8595. 'No video with the provided',
  8596. 'optional--',
  8597. 'optional2--',
  8598. "//a[contains(@href,'stagevu.com')]"
  8599. );
  8600. }
  8601. if (GM_getValue("Check_cloudtime_dot_to_links", false))
  8602. {
  8603. addFileHost(
  8604. "cloudtime\.to\/\\w+",
  8605. 'Download the video',
  8606. 'no longer exists',
  8607. 'optional--',
  8608. 'optional2--',
  8609. "//a[contains(@href,'cloudtime.to')]"
  8610. );
  8611. }
  8612. if (GM_getValue("Check_streamin_dot_to_links", false))
  8613. {
  8614. addFileHost(
  8615. "streamin\.to\/\\w+",
  8616. 'id="btn_download',
  8617. 'Not Found|Copyright Infringement|File Deleted',
  8618. 'optional--',
  8619. 'optional2--',
  8620. "//a[contains(@href,'streamin.to')]"
  8621. );
  8622. }
  8623. if (GM_getValue("Check_videoweed_dot_es_links", false))
  8624. {
  8625. addFileHost(
  8626. "videoweed\.es\/\\w+",
  8627. 'version detection',
  8628. 'no longer exists',
  8629. 'optional--',
  8630. 'optional2--',
  8631. "//a[contains(@href,'videoweed.es')]"
  8632. );
  8633. }
  8634. if (GM_getValue("Check_nowvideo_dot_sx_links", false))
  8635. {
  8636. addFileHost(
  8637. "nowvideo\.sx\/\\w+",
  8638. 'Download this video|value="submit">Continue',
  8639. 'no longer exists',
  8640. 'optional--',
  8641. 'optional2--',
  8642. "//a[contains(@href,'nowvideo.sx')]"
  8643. );
  8644. }
  8645. if (GM_getValue("Check_thevideo_dot_me_links", false))
  8646. {
  8647. addFileHost(
  8648. "thevideo\.me\/\\w+",
  8649. 'Upgrade your account|Proceed to video|class="btn btn-lg btn-dark">',
  8650. 'File Not Found',
  8651. 'optional--',
  8652. 'optional2--',
  8653. "//a[contains(@href,'thevideo.me')]"
  8654. );
  8655. }
  8656. if (GM_getValue("Check_gorillavid_dot_in_links", false))
  8657. {
  8658. addFileHost(
  8659. "gorillavid\.in\/\\w+",
  8660. 'Wait 5 seconds',
  8661. 'File Not Found',
  8662. 'optional--',
  8663. 'optional2--',
  8664. "//a[contains(@href,'gorillavid.in')]"
  8665. );
  8666. }
  8667. if (GM_getValue("Check_thefile_dot_me_links", false))
  8668. {
  8669. addFileHost(
  8670. "thefile\.me\/\\w+",
  8671. 'Choose free or',
  8672. '',
  8673. 'optional--',
  8674. 'optional2--',
  8675. "//a[contains(@href,'thefile.me')]"
  8676. );
  8677. }
  8678. if (GM_getValue("Check_vidzi_dot_tv_links", false))
  8679. {
  8680. addFileHost(
  8681. "vidzi\.tv\/\\w+",
  8682. 'video-embed-modal row',
  8683. 'File Not Found|file was deleted',
  8684. 'optional--',
  8685. 'optional2--',
  8686. "//a[contains(@href,'vidzi.tv')]"
  8687. );
  8688. }
  8689. if (GM_getValue("Check_filenuke_dot_com_links", false))
  8690. {
  8691. addFileHost(
  8692. "filenuke\.com\/\\w+",
  8693. 'Download File',
  8694. 'Earn with us',
  8695. 'optional--',
  8696. 'optional2--',
  8697. "//a[contains(@href,'filenuke.com')]"
  8698. );
  8699. }
  8700. if (GM_getValue("Check_vidto_dot_me_links", false))
  8701. {
  8702. addFileHost(
  8703. "vidto\.me\/\\w+",
  8704. 'Proceed to video',
  8705. 'Not Found',
  8706. 'optional--',
  8707. 'optional2--',
  8708. "//a[contains(@href,'vidto.me')]"
  8709. );
  8710. }
  8711. if (GM_getValue("Check_vidspot_dot_net_links", false))
  8712. {
  8713. addFileHost(
  8714. "vidspot\.net\/\\w+",
  8715. 'Duration',
  8716. 'Removed for',
  8717. 'optional--',
  8718. 'optional2--',
  8719. "//a[contains(@href,'vidspot.net')]"
  8720. );
  8721. }
  8722. if (GM_getValue("Check_sharesix_dot_com_links", false))
  8723. {
  8724. addFileHost(
  8725. "(?:sharesix\\.com|sharesix\\.net)\/\\w+",
  8726. 'Download File',
  8727. 'File Not Found',
  8728. 'optional--',
  8729. 'optional2--',
  8730. "//a[contains(@href,'sharesix.com') or contains(@href,'sharesix.net/')]"
  8731. );
  8732. }
  8733. if (GM_getValue("Check_movpod_dot_in_links", false))
  8734. {
  8735. addFileHost(
  8736. "movpod\.in\/\\w+",
  8737. 'Continue',
  8738. 'File Not Found',
  8739. 'optional--',
  8740. 'optional2--',
  8741. "//a[contains(@href,'movpod.in')]"
  8742. );
  8743. }
  8744. /* if (GM_getValue("Check_down4files_dot_com_links", false))
  8745. {
  8746. addFileHost(
  8747. "down4files\.com\/\\w+",
  8748. 'down_table.png',
  8749. 'style="color:#d33|Error</td>|width:500px;text-align:left;">',
  8750. 'optional--',
  8751. 'optional2--',
  8752. "//a[contains(@href,'down4files.com')]"
  8753. );
  8754. } */
  8755. if (GM_getValue("Check_storefiles_dot_co_links", false))
  8756. {
  8757. addFileHost(
  8758. "storefiles\.co\/\\w+",
  8759. 'btn_download',
  8760. 'No such file|>Error<|mqmaintitle">',
  8761. 'optional--',
  8762. 'optional2--',
  8763. "//a[contains(@href,'storefiles.co')]"
  8764. );
  8765. }
  8766. if (GM_getValue("Check_filehost_dot_pw_links", false))
  8767. {
  8768. addFileHost(
  8769. "filehost\.pw\/\\w+",
  8770. 'name="method_free',
  8771. '>Error<|style="color:#d33;">|No such file|FILE NOT FOUND',
  8772. 'optional--',
  8773. 'optional2--',
  8774. "//a[contains(@href,'filehost.pw')]"
  8775. );
  8776. }
  8777. /* if (GM_getValue("Check_inafile_dot_com_links", false))
  8778. {
  8779. addFileHost(
  8780. "inafile\.com\/\\w+",
  8781. 'value="download1">|<h2>File: <font style="color:darkred">',
  8782. '<div style="width:500px;text-align:left;">|File Not Found',
  8783. 'optional--',
  8784. 'optional2--',
  8785. "//a[contains(@href,'inafile.com')]"
  8786. );
  8787. } */
  8788. if (GM_getValue("Check_uplea_dot_com_links", false))
  8789. {
  8790. addFileHost(
  8791. "uplea\.com\/\\w+",
  8792. 'Download your file:|de votre fichier:|class="download-container|Téléchargement de votre fichier:',
  8793. 'expired link|ou est invalide',
  8794. 'optional--',
  8795. 'optional2--',
  8796. "//a[contains(@href,'uplea.com/dl')]",
  8797. true);
  8798. }
  8799. if (GM_getValue("Check_toutbox_dot_fr_links", false))
  8800. {
  8801. addFileHost(
  8802. "toutbox\.fr\/\\w+",
  8803. '<div class="downloadFileFid">|class="downloadsCounter">/p>|class="filename"><a href=|img/webbuttoned.gif">',
  8804. 'meta name="description" content="Toutbox.fr|redirect-userpage = "true"',
  8805. 'Serviço temporariamente indisponível',
  8806. 'optional2--',
  8807. "//a[contains(@href,'toutbox.fr') or contains(@href,'go4up.com/')]"
  8808. );
  8809. }
  8810. if (GM_getValue("Check_openload_dot_co_links", false))
  8811. {
  8812. addFileHost(
  8813. "openload\.co\/\\w+",
  8814. 'id="downloadTimer">|button dlbutton',
  8815. 'jumbotron{color|got deleted|center !important',
  8816. 'optional--',
  8817. 'optional2--',
  8818. "//a[contains(@href,'openload.co')]"
  8819. );
  8820. }
  8821. if (GM_getValue("Check_lolabits_dot_es_links", false))
  8822. {
  8823. addFileHost(
  8824. "lolabits\.es\/\\w+",
  8825. 'Descargar:',
  8826. '<title>Archivos de usuario',
  8827. 'Service Unavailable',
  8828. 'optional2--',
  8829. "//a[contains(@href,'lolabits.es')]"
  8830. );
  8831. }
  8832. if (GM_getValue("Check_alfafile_dot_net_links", false))
  8833. {
  8834. addFileHost(
  8835. "alfafile\.net\/\\w+",
  8836. 'id="slow_download_btn',
  8837. 'class="error-box">',
  8838. 'optional--',
  8839. 'optional2--',
  8840. "//a[contains(@href,'alfafile.net')]"
  8841. );
  8842. }
  8843. if (GM_getValue("Check_multiup_dot_org_links", false))
  8844. {
  8845. addFileHost(
  8846. "multiup\.org\/\\w+",
  8847. '<title>Download|<title>Télécharger|class="link-download btn"|<h5>DOWNLOAD</h5>|<h5>TÉLÉCHARGER</h5>',
  8848. 'File not found|alert-error">|icon-white icon-warning-sign">|<title>Fichier introuvable',
  8849. 'optional--',
  8850. 'optional2--',
  8851. "//a[contains(@href,'multiup.org')]"
  8852. );
  8853. }
  8854. if (GM_getValue("Check_file_dot_al_links", false))
  8855. {
  8856. addFileHost(
  8857. "file\.al\/\\w+",
  8858. 'method_free',
  8859. 'style="width:500px;text-align:left;">',
  8860. 'optional--',
  8861. 'optional2--',
  8862. "//a[contains(@href,'file.al')]"
  8863. );
  8864. }
  8865. if (GM_getValue("Check_devilshare_dot_net_links", false))
  8866. {
  8867. addFileHost(
  8868. "devilshare\.net\/\\w+",
  8869. '<div class="large-12" id="download">',
  8870. '(Link: 0 Invalid)|File Not Found',
  8871. 'optional--',
  8872. 'optional2--',
  8873. "//a[contains(@href,'devilshare.net')]"
  8874. );
  8875. }
  8876. if (GM_getValue("Check_dailyuploads_dot_net_links", false))
  8877. {
  8878. addFileHost(
  8879. "dailyuploads\.net\/\\w+",
  8880. 'id="downloadBtnClickOrignal',
  8881. '<div style="width:500px;text-align:left;">',
  8882. 'optional--',
  8883. 'optional2--',
  8884. "//a[contains(@href,'dailyuploads.net')]"
  8885. );
  8886. }
  8887.  
  8888. }
  8889. //start here
  8890.  
  8891. //hosts with direct download, so they must be requested for headers only
  8892. function initFileHostsHeadersOnly()
  8893. {
  8894. function addFileHostHeadersOnly(linkRegex, isAliveRegex, isDeadRegex, xpathEx, ispremRegex)
  8895. {
  8896. var host = new Array(5);
  8897. host[0] = linkRegex;
  8898. host[1] = isAliveRegex;
  8899. host[2] = isDeadRegex;
  8900. host[3] = xpathEx;
  8901. host[4] = ispremRegex;
  8902. http_file_hosts_headers_only.push(host);
  8903. }
  8904. if (GM_getValue("Check_uloziste_dot_com_links", false))
  8905. {
  8906. addFileHostHeadersOnly(
  8907. "(?:|files\\.)uloziste\\.com\/\\w+\/\\w+",
  8908. 'Connection: Keep-Alive',
  8909. 'Content-Length: 3857',
  8910. "//a[contains(@href,'uloziste.com')]"
  8911. )
  8912. }
  8913. if (GM_getValue("Check_adrive_dot_com_links", false))
  8914. {
  8915. addFileHostHeadersOnly(
  8916. "adrive\\.com\/public\/\\w+",
  8917. 'Connection: keep-alive',
  8918. 'orig_ref=deleted',
  8919. "//a[contains(@href,'adrive.com')]"
  8920. )
  8921. }
  8922. if (GM_getValue("Check_myupload_dot_dk_links", false))
  8923. {
  8924. addFileHostHeadersOnly(
  8925. "myupload\\.dk\/showfile\/\\w+",
  8926. 'Expires:',
  8927. 'squeeze1\\s+Vary',
  8928. "//a[contains(@href,'myupload.dk/showfile')]"
  8929. )
  8930. }
  8931. }
  8932. //CustomRules
  8933. //functions add...Host copied here
  8934. function addObsoleteHost(linkRegex, xpathEx)
  8935. {
  8936. var host = new Array(2);
  8937. host[0] = linkRegex;
  8938. host[1] = xpathEx;
  8939. http_file_hosts_obsolete.push(host);
  8940. }
  8941. function addFileHost(linkRegex, isAliveRegex, isDeadRegex, isUnavaRegex, xpathEx, tryLoop, ispremRegex)
  8942. {
  8943. var host = new Array(7);
  8944. host[0] = linkRegex;
  8945. host[1] = isAliveRegex;
  8946. host[2] = isDeadRegex;
  8947. host[3] = isUnavaRegex;
  8948. host[4] = xpathEx;
  8949. tryLoop ? host[5] = true : host[5] = false;
  8950. host[6] = ispremRegex;
  8951. http_file_hosts.push(host);
  8952. }
  8953. function addFileHostHeadersOnly(linkRegex, isAliveRegex, isDeadRegex, xpathEx, ispremRegex)
  8954. {
  8955. var host = new Array(5);
  8956. host[0] = linkRegex;
  8957. host[1] = isAliveRegex;
  8958. host[2] = isDeadRegex;
  8959. host[3] = xpathEx;
  8960. host[4] = ispremRegex;
  8961. http_file_hosts_headers_only.push(host);
  8962. }
  8963. //takes a fully built rules array and adds the rules to WARLC
  8964. function applyCustomRules(customRules)
  8965. {
  8966. if (!customRules) return;
  8967. var rules, r, i;
  8968. rules = customRules.rules;
  8969. for (i = 0 ; i < rules.length ; i++)
  8970. {
  8971. r = rules[i];
  8972. if (r.enabled)
  8973. {
  8974. switch (r.type)
  8975. {
  8976. case 'single':
  8977. addFileHost(r.urlregex, r.aliveregex, r.deadregex, r.unavaregex, r.premregex||'', r.xpath);
  8978. break;
  8979. case 'headers':
  8980. addFileHostHeadersOnly(r.urlregex, r.aliveregex, r.deadregex, r.xpath, r.premregex);
  8981. break;
  8982. case 'obsolete':
  8983. addObsoleteHost(r.urlregex, r.xpath)
  8984. break;
  8985. }
  8986. }
  8987. }
  8988. }
  8989.  
  8990.  
  8991. function initFileHostsCustom()
  8992. {
  8993. if (Custom_rules && Custom_rules_text)
  8994. {
  8995. var msg = '';
  8996. if (newVersion)
  8997. msg = 'New version of W.A.R. Links Checker detected.\n\n';
  8998. else if ((now - last_custom_rules_nag) >= 60*24*60*60*1000)
  8999. msg = '60 or more days have passed since this notification.\n\n';
  9000. if (msg && /^\s*@customrule(?:_obsolete)?\s/mi.test(Custom_rules_text))
  9001. {
  9002. GM_setValue('last_custom_rules_nag', ''+new Date().getTime()); //reset nag
  9003. msg +=
  9004. 'Either new version of W.A.R. Links Checker detected or 60 days passed since this notify.\n'+
  9005. 'Please check that your custom rules haven\'t been built into WARLC.\n'+
  9006. 'If not, please share them with us so they can be included in the next version! Built-in rules are always preferred.\n\n'+
  9007. 'We apologize for this annoying notification, but there is a reason to this.\n'+
  9008. 'Ideally, WARLC would check which of your custom rules have been included and disable them. '+
  9009. 'Unfortunately, there is no easy way to do that, but we don\'t want everybody to just use their custom rules '+
  9010. 'forever without ever checking if the built-in ones have been added/fixed. This is currently the only way '+
  9011. 'to remind you that you should try built-in rules, report missing/non-working ones and share your custom rules.';
  9012. setTimeout(function(){alert(msg)},0);
  9013. }
  9014. var customRules = parseCustomRules(Custom_rules_text);
  9015. if (customRules.warning || customRules.error)
  9016. alert('There were ' + customRules.error + ' errors, ' + customRules.warning + ' warnings, ' +
  9017. customRules.note + ' notes found during Custom Rules processing.\n' + customRules.rules.length + ' valid rules found.\n\n' +
  9018. JSON.stringify(customRules.info, null, ' '));
  9019. applyCustomRules(customRules);
  9020. }
  9021. }
  9022. //end of CustomRules processing
  9023.  
  9024.  
  9025.  
  9026. } //end of function start
  9027.  
  9028.  
  9029.  
  9030. function initClipBoardTools()
  9031. {
  9032. unsafeWindow.copyToClipboard = function(text)
  9033. {
  9034. try
  9035. {
  9036. this.netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
  9037.  
  9038. var str = Components.classes["@mozilla.org/supports-string;1"].
  9039. createInstance(Components.interfaces.nsISupportsString);
  9040. if (!str) return false;
  9041.  
  9042. str.data = text;
  9043.  
  9044. var trans = Components.classes["@mozilla.org/widget/transferable;1"].
  9045. createInstance(Components.interfaces.nsITransferable);
  9046. if (!trans) return false;
  9047.  
  9048. trans.addDataFlavor("text/unicode");
  9049. trans.setTransferData("text/unicode", str, text.length * 2);
  9050.  
  9051. var clipid = Components.interfaces.nsIClipboard;
  9052. var clip = Components.classes["@mozilla.org/widget/clipboard;1"].getService(clipid);
  9053. if (!clip) return false;
  9054.  
  9055. clip.setData(trans, null, clipid.kGlobalClipboard);
  9056. } catch (e) {
  9057. GM_log("Error copyToClipboard : " + e);
  9058. alert(e + "\n\nsigned.applets.codebase_principal_support must be set true in about:config")
  9059. }
  9060. }
  9061. }
  9062.  
  9063.  
  9064.  
  9065. //CustomRules
  9066.  
  9067. function escapeRegex(str)
  9068. {
  9069. return str.replace(/[\-\[\]{}()*+?.,\\\^$|#]/g, "\\$&");
  9070. }
  9071.  
  9072.  
  9073. //called internally from parseCustomRules.
  9074. //expected: rule object with array fields baseurl, alivematch etc, everything must already be checked for input errors
  9075. //returns the rule object with string fields urlregex, xpath, aliveregex etc built from the arrays
  9076. function makeCustomRule(rule)
  9077. {
  9078. function makeMatchRegex(arrmatch)
  9079. {
  9080. return escapeRegex(arrmatch.join('\n'))
  9081. .replace(/ +/g, '\\s+') //two or more spaces to any whitespace
  9082. .replace(/\n/g,'|'); //join together
  9083. }
  9084. if (rule.alivematch) rule.aliveregex = makeMatchRegex(rule.alivematch);
  9085. if (rule.deadmatch) rule.deadregex = makeMatchRegex(rule.deadmatch);
  9086. if (rule.unavamatch) rule.unavaregex = makeMatchRegex(rule.unavamatch);
  9087. if (rule.premmatch) rule.premregex = makeMatchRegex(rule.premmatch);
  9088. if (rule.baseurl)
  9089. {
  9090. var i, m, urlregex = [], xpath = [], len = rule.baseurl.length;
  9091. for (i = 0 ; i < len ; i++)
  9092. {
  9093. m = rule.baseurl[i].match(/^([a-z0-9\.-]+)(?: +([a-z \.]+) +)?(\/.*)$/);
  9094. if (m[2]) //baseurl in the form: example. com co.uk net /xxx
  9095. {
  9096. 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'])
  9097. urlregex.push( (m[1] + '(?:'+ m[2].replace(/\s+/g,'|') + ')').replace(/\./g,'\\.') + escapeRegex(m[3]) + '.'); //urlregex.push('example\\.(?:com|co\\.uk|net)/xxx.')
  9098. }
  9099. else //baseurl in the form: example.com/xxx
  9100. {
  9101. xpath.push(m[0]);
  9102. urlregex.push(escapeRegex(m[0]) + '.');
  9103. }
  9104. }
  9105. rule.xpath = "//a[contains(@href,'" + xpath.join("') or contains(@href,'") + "')]";
  9106. rule.urlregex = '(?:[a-z0-9\\.-]+\\.)?(?:' + urlregex.join('|') + ')';
  9107. }
  9108. return rule;
  9109. } //function makeCustomRule
  9110.  
  9111.  
  9112. /*
  9113. Takes a string containing custom link checking rules.
  9114. Returns an object with fields:
  9115. info - contains notes, warnings and errors found during parsing
  9116. rules - the array of custom rules
  9117. note, warning, error - number of each of them found during parsing
  9118. Format of the input string:
  9119. One command per line. Command format: @keyword parameter
  9120. Keywords:
  9121. @customrule, @customrule_obsolete, @customrule_headers - begin a new custom rule. Parameter: name of the rule
  9122. @#customrule, @#customrule_obsolete, @#customrule_headers - begin and parse this custom rule, but don't use it. Parameter: name of the rule
  9123. These keywords can be multiple (any of them will work):
  9124. @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...)
  9125. @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+
  9126. @alivelink, @deadlink - example links
  9127. @baseurl is always required, @alivematch and @deadmatch are required except for obsolete. @unavamatch is ignored for obsolete. @*link is optional.
  9128. Lines starting with // and empty lines are ignored.
  9129. Invalid parameters generate errors and those lines are skipped.
  9130. Other lines generate warnings, but are otherwise ignored (also those before the first @customrule line or inside a rule with invalid name).
  9131. Example:
  9132. @customrule filehost
  9133. @baseurl filehost.com/download/
  9134. @baseurl filehost2. com net /d?=
  9135. @alivematch id="download">
  9136. @deadmatch File not found
  9137. @deadmatch File deleted
  9138. */
  9139. function parseCustomRules(rulesStr)
  9140. {
  9141. var linenum, customRules = {'info': [], 'rules': [], 'note': 0, 'warning': 0, 'error': 0};
  9142. function addInfo(type, msg, ln){
  9143. customRules.info.push({'linenum':(ln===undefined ? linenum+1 : ln+1), 'type':type, 'msg':msg});
  9144. customRules[type]++;
  9145. }
  9146. var lines = rulesStr.match(/^(.*)$/gm); //split into array of lines
  9147. if (!lines) return null;
  9148. lines.push('@#customrule _'); //to save the last rule
  9149. var m, linecount = lines.length;
  9150. var keyword, param, constr, rule, err;
  9151. var TLD = '[a-z]{2,7}(?:\\.[a-z]{2,7})?';
  9152. var TLDorTLDlist = '(?:'+TLD+'| '+TLD+'(?: '+TLD+'){0,9} )'; //TLD or space-separated list of TLDs
  9153. var baseurlRE = new RegExp('^([a-z0-9-]{1,30}(?:\\.[a-z0-9-]{1,30}){0,2}\\.)'+TLDorTLDlist+'(/[^\'"\s\$]{0,50})$', 'i');
  9154. var constraints = {
  9155. 'baseurl': {
  9156. 'single': {'min': 1, 'max': 10, 'paramRE': baseurlRE},
  9157. 'headers': {'min': 1, 'max': 10, 'paramRE': baseurlRE},
  9158. 'obsolete': {'min': 1, 'max': 10, 'paramRE': baseurlRE}},
  9159. 'alivematch': {
  9160. 'single': {'min': 1, 'max': 10, 'paramRE': null},
  9161. 'headers': {'min': 1, 'max': 10, 'paramRE': null}},
  9162. 'deadmatch': {
  9163. 'single': {'min': 1, 'max': 10, 'paramRE': null},
  9164. 'headers': {'min': 1, 'max': 10, 'paramRE': null}},
  9165. 'unavamatch': {
  9166. 'single': {'min': 0, 'max': 10, 'paramRE': null}},
  9167. 'alivelink': {
  9168. 'single': {'min': 0, 'max': 10, 'paramRE': null},
  9169. 'headers': {'min': 0, 'max': 10, 'paramRE': null}},
  9170. 'deadlink': {
  9171. 'single': {'min': 0, 'max': 10, 'paramRE': null},
  9172. 'headers': {'min': 0, 'max': 10, 'paramRE': null},
  9173. 'obsolete': {'min': 0, 'max': 10, 'paramRE': null}}
  9174. };
  9175. for (linenum = 0 ; linenum < linecount ; linenum++)
  9176. {
  9177. //capturing groups: 1 23 4 5 6
  9178. m = lines[linenum].match(/^\s*(?:(\/\/.*)|@((#?)(customrule)(?:_(headers|obsolete))?|baseurl|alivematch|deadmatch|unavamatch|alivelink|deadlink)\s+(.+))?$/i);
  9179. if (m)
  9180. {
  9181. if (m[1] || !m[2])
  9182. continue; // ignore empty lines and lines starting with //
  9183. keyword = (m[4] || m[2]).toLowerCase();
  9184. param = m[6];
  9185. if (keyword == 'customrule')
  9186. {
  9187. //save the current rule if all required fields are provided
  9188. if (rule)
  9189. {
  9190. err = false;
  9191. $.each(constraints, function(kw, constraint){
  9192. var l, constr = constraint[rule.type];
  9193. if (constr)
  9194. {
  9195. l = rule[kw] ? rule[kw].length : 0;
  9196. if (l < constr.min || l > constr.max)
  9197. {
  9198. 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);
  9199. err = true;
  9200. }
  9201. }
  9202. });
  9203. if (!err)
  9204. customRules.rules.push(makeCustomRule(rule));
  9205. }
  9206. //start a new rule
  9207. if (/^[\w\.-]{1,30}$/.test(param)) //valid name?
  9208. {
  9209. rule = {
  9210. 'enabled': !m[3],
  9211. 'type': m[5] ? m[5].toLowerCase() : 'single',
  9212. 'name': param
  9213. };
  9214. }
  9215. else
  9216. {
  9217. addInfo('error', 'Invalid rule name. Cannot start a new rule definition.');
  9218. rule = null;
  9219. }
  9220. }
  9221. else //good line format, but keyword other than customrule
  9222. {
  9223. if (!rule)
  9224. {
  9225. addInfo('warning', 'Command outside @CUSTOMRULE definiton. Line skipped.');
  9226. continue;
  9227. }
  9228. if (constraints[keyword])
  9229. {
  9230. constr = constraints[keyword][rule.type];
  9231. if (constr)
  9232. {
  9233. if (constr.paramRE && !constr.paramRE.test(param))
  9234. {
  9235. addInfo('warning', 'Invalid @' + keyword.toUpperCase() + ' parameter. Line Skipped.');
  9236. continue;
  9237. }
  9238. }
  9239. else
  9240. {
  9241. addInfo('note', '@' + keyword.toUpperCase() + ' not applicable for type ' + rule.type.toUpperCase() + '. Line skipped.');
  9242. continue;
  9243. }
  9244. }
  9245. //line OK, save
  9246. rule[keyword] ? rule[keyword].push(param) : rule[keyword] = [param];
  9247. }
  9248. } //if (m)
  9249. else
  9250. addInfo('warning', 'Unknown line format. Line skipped.');
  9251. } //for loop
  9252. return customRules;
  9253. } //function parseCustomRules