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

detects live, dead and premium links.

目前為 2015-12-05 提交的版本,檢視 最新版本

  1. //added megairon.net, inafile.com, uploadhero.com & uploadhero.co 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.4
  8. // @icon http://sharenxs.com/photos/2014/02/14/52fd759db90ac/cooltext1428903746.png
  9. // @license GPL version 3 or any later version (http://www.gnu.org/copyleft/gpl.html)
  10. // @author mental
  11. // @include http://*
  12. // @include https://*
  13. // @include file:///*
  14. // @grant GM_setValue
  15. // @grant GM_getValue
  16. // @grant GM_xmlhttpRequest
  17. // @grant GM_log
  18. // @grant GM_addStyle
  19. // @grant GM_registerMenuCommand
  20. // @grant GM_getResourceText
  21. // @grant GM_info
  22. // @require https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js
  23. // @require https://ajax.googleapis.com/ajax/libs/jqueryui/1.9.1/jquery-ui.min.js
  24. // @resource jQueryUICSS https://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/smoothness/jquery-ui.css
  25. // @homepage http://www.warlc.5gbfree.com
  26. // @namespace http://www.warlc.5gbfree.com
  27. // @noframes
  28. // ==/UserScript==
  29.  
  30. //separate alternative domains with "|" char (first name is considered being main)
  31. var allHostNames = [
  32. "1fichier.com|dl4free.com",
  33. "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. "rapidsonic.com|fileparadox.com",
  219. "hackerbox.org",
  220. "amonshare.com",
  221. "data.hu",
  222. "brupload.net",
  223. "userscloud.com",
  224. "netkups.com",
  225. "xfileload.com",
  226. "kumpulbagi.com",
  227. "uppit.com|up.ht",
  228. "downloadani.me",
  229. "filesabc.com",
  230. "180upload.com",
  231. "verzend.be",
  232. "4up.me",
  233. "extmatrix.com",
  234. "sendfiles.nl",
  235. "yourfilestore.com",
  236. "filebig.net",
  237. "nekaka.com",
  238. "file4safe.com",
  239. "tusfiles.net",
  240. "filemac.com",
  241. "idup.in",
  242. "fileswap.com",
  243. "ozofiles.com",
  244. "loudupload.net",
  245. "nosupload.com",
  246. "gboxes.com",
  247. "myvdrive.com|fileserving.com",
  248. "filesin.com",
  249. "novafile.com",
  250. "longfiles.com",
  251. // "uploadhero.com",
  252. "uploadbaz.com",
  253. "bitupload.com",
  254. "indowebster.com",
  255. "superload.cz",
  256. "mafiastorage.com",
  257. "4upfiles.com",
  258. "filesmelt.com",
  259. "hellupload.com",
  260. "uploadingit.com",
  261. "stiahni.si",
  262. "sendspace.pl",
  263. "fastshare.org",
  264. "filejoker.net",
  265. "filestore.com.ua",
  266. "secureupload.eu",
  267. "rapidfileshare.net",
  268. "stiahnito.sk",
  269. "rusfolder.com",
  270. "fileover.net",
  271. "catshare.net",
  272. "anonfiles.com",
  273. "mixturecloud.com",
  274. "fileparadox.in",
  275. "filedais.com",
  276. // "imdb.com",
  277. "nitroflare.com",
  278. "akafile.com",
  279. "creafile.net",
  280. "hugefiles.net",
  281. "vidxden.com",
  282. "up.top4top.net",
  283. "upload.ee",
  284. "shareplace.org",
  285. "uploadc.com",
  286. "remixshare.com",
  287. "exoshare.com",
  288. "borncash.org",
  289. "junocloud.me",
  290. "expressleech.com",
  291. "2downloadz.com",
  292. "mightyupload.com",
  293. "anysend.com",
  294. "datafile.com",
  295. "upstore.net",
  296. "upsto.re",
  297. "speedy.sh",
  298. "sanshare.com",
  299. "kingfiles.net",
  300. // "uploadhero.co",
  301. "ge.tt",
  302. "filesflash.net",
  303. "salefiles.com",
  304. // "megairon.net",
  305. "datoid.cz",
  306. "cloudstor.es",
  307. "streamfile.com",
  308. "eyesfile.ca",
  309. "filemoney.com",
  310. "uploadboy.com",
  311. "speedshare.eu",
  312. "google.com",
  313. "unlimitzone.com",
  314. "rioupload.com",
  315. "rg.to",
  316. "jumbofiles.org",
  317. "fshare.vn",
  318. "spaceforfiles.com",
  319. "up.media1fire.com",
  320. "depfile.com",
  321. "go4up.com",
  322. "dropbox.com",
  323. "redbunker.net",
  324. "divxpress.com",
  325. "mega.nz|mega.co.nz",
  326. "anafile.com",
  327. "uploadable.ch",
  328. "arabloads.net",
  329. "sharerepo.com",
  330. "sfshare.se",
  331. "files.fm",
  332. "koofile.com",
  333. "vidplay.net",
  334. "storagon.com",
  335. "doraupload.com",
  336. "openload.io",
  337. "geupload.com|lenfile.com",
  338. "uploads.xxx",
  339. "toutbox.fr",
  340. ];
  341.  
  342. try
  343. {
  344. //iframes excluded
  345. if (window.top != window.self)
  346. {
  347. return;
  348. }
  349. //allHostNames sites excluded
  350. if (window.location.href.match("https?:\/\/(www\.)?[\w\.-]*(?:" +
  351. allHostNames.join("|").replace(/\./g, "\\.").replace(/-/g, "\\-") +
  352. ")"))
  353. {
  354. return;
  355. }
  356. }
  357. catch (e)
  358. {
  359. return;
  360. }
  361.  
  362. //separate alternative domains with "|" char (first name is considered being main)
  363. var allContainerNames = [
  364. "adf.ly",
  365. "linkcrypt.ws",
  366. "linksafe.me",
  367. "linksave.in",
  368. "linkto.net",
  369. "madlink.sk",
  370. "multiload.cz",
  371. "mirrorcreator.com",
  372. "ncrypt.in",
  373. "redi.re",
  374. "relink.us",
  375. "safelinking.net",
  376. "theloo.katt.it",
  377. "bit.ly",
  378.  
  379. ];
  380.  
  381. //separate alternative domains with "|" char (first name is considered being main)
  382. var allObsoleteNames = [
  383. "uloz.cz",
  384. "filepost.com|fp.io",
  385. "uploadhero.co",
  386. "uploadhero.com",
  387. "newfileland.com",
  388. "quickshare.cz",
  389. "netload.in",
  390. "movreel.com",
  391. "migahost.com",
  392. "krotix.net",
  393. "jumbofile.net",
  394. "edoc.com",
  395. "down4files.com",
  396. "cramit.in|cramitin.net",
  397. "freakshare.com",
  398. "burnupload.com|burnupload.ihiphop.com",
  399. "freakshare.net",
  400. "daj.to",
  401. "bl.st",
  402. "2drive.net",
  403. "ryushare.com",
  404. "crisshare.com",
  405. "tufiles.ru",
  406. "uncapped-downloads.com",
  407. "sockshare.com",
  408. "ddlstorage.com",
  409. "dataport.cz",
  410. "dizzcloud.com",
  411. "sharebeast.com",
  412. "stahovadlo.cz",
  413. "shared.com",
  414. "storage.to",
  415. "putlocker.com",
  416. "lumfile.com",
  417. "lumfile.se",
  418. "lumfile.eu",
  419. "firedrive.com",
  420. "fileshare.in.ua",
  421. "filecore.co.nz",
  422. "iskladka.cz",
  423. "file-rack.com",
  424. "fast-load.net",
  425. "subory.sk",
  426. "bigandfree.com",
  427. "fileop.com",
  428. "mujsoubor.cz",
  429. "sendfile.to",
  430. "superfastfile.com",
  431. "quickyshare.com",
  432. "duckload.com",
  433. "uploadstore.net",
  434. "meinupload.com",
  435. "dualshare.com",
  436. "2xupload.to|2xupload.de",
  437. "oxedion.com",
  438. "uploadline.com",
  439. "dll.bz",
  440. "movieshare.in",
  441. "milledrive.com",
  442. "quickupload.net",
  443. "safelink.in",
  444. "metadivx.com",
  445. "divxlink.com",
  446. "uploadrack.com",
  447. "teradepot.com",
  448. "dataup.to",
  449. "upit.to",
  450. "driveway.com",
  451. "eatlime.com",
  452. "a2zuploads.com",
  453. "friendlyfiles.net",
  454. "flyfile.us",
  455. "speedyshare.com",
  456. "uploadspace.eu",
  457. "keepfile.com",
  458. "piggyshare.com",
  459. "uplly.com",
  460. "filecrown.com",
  461. "6giga.com",
  462. "uploadjockey.com",
  463. "bluehost.to",
  464. "filegu.ru",
  465. "filebase.to",
  466. "up-file.com",
  467. "xvideos.com",
  468. "ufox.com",
  469. "filebling.com",
  470. "loaded.it",
  471. "uploadcell.com",
  472. "uploadshare.cz",
  473. "mangoshare.com",
  474. "filestab.com",
  475. "crazyupload.com",
  476. "gaiafile.com",
  477. "sharejunky.com",
  478. "fileho.com",
  479. "bigandfree.com",
  480. "bigfile.in",
  481. "bigshare.eu",
  482. "dahosting.org",
  483. "digisofts.net",
  484. "file4save.com",
  485. "filechip.com",
  486. "filescloud.com",
  487. "saveqube.com",
  488. "turboshare.de",
  489. "z-upload.com",
  490. "youshare.com",
  491. "jiffyupload.com",
  492. "gigeshare.com",
  493. "datenklo.net",
  494. "upload.dj",
  495. "loadfiles.in",
  496. "upit.to",
  497. "dsfileshare.com",
  498. "sharesimple.net",
  499. "4files.net",
  500. "wooupload.com",
  501. "odsiebie.com",
  502. "filenavi.com",
  503. "3oof.com",
  504. "meshwaar.com",
  505. "maxupload.com",
  506. "share.cx",
  507. "atserver.eu",
  508. "hotfiles.ws",
  509. "esnips.com",
  510. "tuxfile.com",
  511. "file2upload.net",
  512. "filebling.com",
  513. "turboshare.com",
  514. "rarhost.com",
  515. "isharehd.com",
  516. "i741.com",
  517. "dataup.de",
  518. "fofly.com",
  519. "shareonall.com",
  520. "sexuploader.com",
  521. "megaupload.com|megavideo.com|megaporn.com|megarotic.com",
  522. "uploadhyper.com",
  523. "filespawn.com",
  524. "caizzii.com",
  525. "volnyweb.cz",
  526. "usershare.net",
  527. "filescash.net",
  528. "metahyper.com",
  529. "combozip.com",
  530. "x7.to",
  531. "uploadbox.com",
  532. "enterupload.com|flyupload.com",
  533. "filepoint.de",
  534. "mystream.to",
  535. "x-fs.com",
  536. "shareator.com",
  537. "srapid.eu",
  538. "sosame.cz",
  539. "filesdump.com",
  540. "2-klicks.de",
  541. "uploking.com",
  542. "silofiles.com",
  543. "upfile.in",
  544. "filehook.com",
  545. "uploadking.com",
  546. "uploadhere.com",
  547. "kewlshare.com",
  548. "rapidable.com",
  549. "uploadwaste.com",
  550. "filemup.com",
  551. "filesonic.com|sharingmatrix.com",
  552. "fileserve.com",
  553. "wupload.com",
  554. "skipfile.com",
  555. "smartuploader.com",
  556. "dualshare.com",
  557. "storeandserve.com",
  558. "mountfile.com",
  559. "transitfiles.com",
  560. "uploadstation.com",
  561. "filejungle.com",
  562. "shareshared.com",
  563. "quickyshare.com",
  564. "save.am",
  565. "petandrive.com",
  566. "file2box.com",
  567. "flyshare.cz",
  568. "yabadaba.ru",
  569. "cloudcache.cc",
  570. "yourfilehost.com",
  571. "jakfile.com",
  572. "kickload.com",
  573. "pyramidfiles.com",
  574. "refile.net",
  575. "zshare.net",
  576. "ddlani.me|ddlanime.com",
  577. "ftp2share.com",
  578. "fooget.com",
  579. "rapidhide.com",
  580. "gotupload.com",
  581. "mooload.com",
  582. "zupload.com",
  583. "mytempdir.com",
  584. "onionshare.com",
  585. "stahnu.to",
  586. "oron.com",
  587. "badongo.com",
  588. "filereactor.com",
  589. "filegaze.com",
  590. "4bytez.com",
  591. "1hostclick.com",
  592. "anonstream.com",
  593. "batshare.com",
  594. "bitroad.net",
  595. "brontofile.com",
  596. "cloudnxt.net",
  597. "cloudnator.com|shragle.com",
  598. "filesfrog.net",
  599. "coolshare.cz",
  600. "dotavi.com",
  601. "ezyfile.net",
  602. "file-bit.net",
  603. "filecosy.com",
  604. "fileduct.com|fileduct.net",
  605. "filefat.com",
  606. "filelaser.com",
  607. "filemashine.com",
  608. "fileserver.cc",
  609. "filetechnology.com",
  610. "fireuploads.net",
  611. "gigfiles.net",
  612. "holderfile.com",
  613. "ihostia.com",
  614. "k2files.com",
  615. "mojofile.com",
  616. "ovfile.com",
  617. "qshare.com",
  618. "shafiles.me",
  619. "sharefilehost.com",
  620. "shareupload.com",
  621. "stahuj.to",
  622. "ugotfile.com",
  623. "uploadboost.com",
  624. "fileom.com",
  625. "vidhog.com",
  626. "xfileshare.eu",
  627. "bzlink.us",
  628. "bulletupload.com",
  629. "bloggerarticles.com",
  630. "mojedata.sk",
  631. "sharpfile.com",
  632. "upgrand.com",
  633. "nasdilej.cz",
  634. "mediatack.cz",
  635. "share-it.to",
  636. "primeupload.com",
  637. "filebeer.info",
  638. "baberepublic",
  639. "xtu.me",
  640. "sharebase.de",
  641. "luckyshare.net",
  642. "filerobo.com",
  643. "filevelocity.com",
  644. "filezpro.com",
  645. "file4sharing.com",
  646. "cing.be",
  647. "ufile.eu",
  648. "pigsonic.com",
  649. "fileupped.com",
  650. "sharerun.com",
  651. "filesaur.com",
  652. "rapidslnare.com",
  653. "bestsharing.com",
  654. "savefiles.net",
  655. "file2share.biz",
  656. "filecache.de",
  657. "monsteruploads.eu",
  658. "b9bb.com",
  659. "aiotool.net",
  660. "jamber.info",
  661. "megaftp.com",
  662. "desiupload.net",
  663. "file27.com",
  664. "yastorage.com",
  665. "filehost.ws",
  666. "copyload.com",
  667. "venusfile.com",
  668. "aieshare.com",
  669. "terafile.co",
  670. "terafile.com",
  671. "fileza.net",
  672. "filerose.com",
  673. "squillion.com",
  674. "fileprohost.com",
  675. "bitbonus.com",
  676. "warserver.cz",
  677. "uload.to",
  678. "sharedbit.net",
  679. "megaload.it",
  680. "filewinds.com",
  681. "uploadcore.com",
  682. "syfiles.com",
  683. "eyesfile.com",
  684. "hotfile.com",
  685. "superupl.com",
  686. "oteupload.com",
  687. "henchfile.com",
  688. "filegag.com",
  689. "HenchFile.com",
  690. "filedefend.com",
  691. "share-rapid.com|rapids.cz|share-credit.cz|share-central.cz|share-ms.cz|share-net.cz|srapid.cz|share-rapid.cz",
  692. "megabitshare.com",
  693. "cloudzer.com",
  694. "asfile.com",
  695. "cloudzer.net",
  696. "clz.to",
  697. "extabit.com",
  698. "247upload.com",
  699. "2download.de",
  700. "4fastfile.com",
  701. "asixfiles.com",
  702. "berofile.com",
  703. "bigupload.com",
  704. "cepzo.com",
  705. "clouds.to",
  706. "cobrashare.sk",
  707. "coraldrive.net",
  708. "cyberlocker.ch",
  709. "czshare.com",
  710. "darkport.org",
  711. "dark-uploads.com",
  712. "davvas.com",
  713. "enigmashare.com",
  714. "erofly.cz",
  715. "fastsonic.net",
  716. "filebox.com",
  717. "filecity.net",
  718. "filedap.com",
  719. "filedino.com",
  720. "filedownloads.org",
  721. "filefolks.com",
  722. "fileking.co",
  723. "filemates.com",
  724. "files.to",
  725. "files2k.eu",
  726. "filesector.cc",
  727. "bitshare.com",
  728. "filesega.com",
  729. "filesend.net",
  730. "filestay.com",
  731. "filestrum.com",
  732. "fileuplo.de",
  733. "fileupup.com",
  734. "forunesia.com",
  735. "freeuploads.fr",
  736. "uploa.dk",
  737. "getthebit.com",
  738. "getzilla.net",
  739. "goldfile.eu",
  740. "good.com",
  741. "grupload.com",
  742. "hellfile.com",
  743. "hipfile.com",
  744. "hitfile.com",
  745. "hulkfile.eu|duckfile.net",
  746. "i-filez.com",
  747. "ifile.ws",
  748. "kupload.org",
  749. "packupload.com",
  750. "lemuploads.com",
  751. "limelinx.com",
  752. "maxshare.pl",
  753. "megarelease.org",
  754. "megashare.com",
  755. "minus.com",
  756. "mlfat4arab.com",
  757. "multishare.cz",
  758. "nirafile.com",
  759. "ok2upload.com",
  760. "peejeshare.com",
  761. "premiuns.org",
  762. "przeklej.net",
  763. "qkup.net",
  764. "rapidupload.sk",
  765. "rockdizfile.com",
  766. "rocketfile.net",
  767. "share-now.net",
  768. "share76.com",
  769. "sharebees.com",
  770. "sharefiles.co",
  771. "slingfile.com",
  772. "sms4file.com",
  773. "space4file.com",
  774. "tigershare.net",
  775. "toucansharing.com",
  776. "ubuntuone.com",
  777. "unextfiles.com",
  778. "upaj.pl",
  779. "upfile.biz",
  780. "uploadbin.net",
  781. "uploadic.com",
  782. "uploadinc.com",
  783. "uploading4u.eu",
  784. "uploadjet.net",
  785. "uploadorb.com",
  786. "upthe.net",
  787. "uptorch.com",
  788. "vidbox.yt",
  789. "videozer.com",
  790. "vreer.com",
  791. "wallobit.com",
  792. "zooupload.com",
  793. "privatefiles.com",
  794. "xerver.co",
  795. "BillionUploads.com",
  796. "rapidshare.com",
  797. "rapidshare.ru",
  798. "4savefile.com",
  799. "bayfiles.com",
  800. "bayfiles.net",
  801. "dodane.pl",
  802. "dotsemper.com",
  803. "egofiles.com",
  804. "epicshare.net",
  805. "fiberupload.net",
  806. "filemonkey.in",
  807. "filemonster.net",
  808. "filepom.com",
  809. "filesbb.com",
  810. "fileshareup.com",
  811. "filevice.com",
  812. "gigaup.fr",
  813. "isavelink.com",
  814. "loombo.com",
  815. "megafiles.se",
  816. "migupload.com",
  817. "mydisc.net",
  818. "nitrobits.com",
  819. "potload.com",
  820. "redload.net",
  821. "shareprofi.com",
  822. "sharesuper.info",
  823. "sinhro.net",
  824. "speedfile.cz",
  825. "speedshare.org",
  826. "storage.novoro.net",
  827. "swankshare.com",
  828. "swatupload.com",
  829. "upafile.com",
  830. "uploadmachine.com",
  831. "uploadsat.com",
  832. "upshared.com",
  833. "usefile.com",
  834. "yourfiles.to",
  835. "zomgupload.com",
  836. "ultramegabit.com",
  837. "uploadto.us",
  838. "inafile.com",
  839. "megairon.net",
  840.  
  841. ];
  842. ///////////////////////////////////////////////////////////////////////////////////////
  843. var firstRun = GM_getValue("First_run", true);
  844.  
  845. var chromeBrowser = /chrom(e|ium)/.test(navigator.userAgent.toLowerCase());
  846. //////////////////////////////////////////////////////////////////////////////////////
  847. try
  848. {
  849. var thisVersion = GM_info.script.version; //not supported in Scriptish and others
  850. var last_known_version = GM_getValue("last_known_version", "");
  851. if (!last_known_version)
  852. {
  853. last_known_version = thisVersion;
  854. GM_setValue("last_known_version", last_known_version);
  855. }
  856. //var newVersion = !(thisVersion == last_known_version);
  857. var newVersion = !(a.replace(/^(\d+\.\d+\.\d+).*/,'$1') == b.replace(/^(\d+\.\d+\.\d+).*/,'$1')); //true only if one of the first three numbers differs
  858. GM_setValue("last_known_version", thisVersion);
  859. }
  860. catch (err)
  861. {
  862. var newVersion = false;
  863. }
  864.  
  865. var now = (new Date()).getTime();
  866. var last_custom_rules_nag = GM_getValue('last_custom_rules_nag', 0);
  867. if (!last_custom_rules_nag)
  868. {
  869. last_custom_rules_nag = now;
  870. GM_setValue('last_custom_rules_nag', ''+now);
  871. }
  872.  
  873.  
  874. allHostNames.sort();
  875. allContainerNames.sort();
  876. allObsoleteNames.sort();
  877.  
  878. var RAND_STRING = "8QyvpOSsRG3QWq";
  879. var DEBUG_MODE = false;
  880.  
  881. var TOOLTIP_MAXWIDTH = 600; //in pixels
  882. var TOOLTIP_THUMBWIDTH = 200;
  883. var containers_processed = false;
  884.  
  885. //settings for keyboard functions start
  886. var CHECK_ALL_LINKS_KEY = "A";
  887. var CONFIGURATION_KEY = "C";
  888. var copy_to_dead_key = "D";
  889. var toggle_autocheck_key = "W";
  890. var toggle_Enable_Anonymizer_key = "Z";
  891. var first_key_keycode = '17'; // 18=ALT 16=Shift 17=Ctrl 32=SPACE_BAR 9=TAB
  892. var first_key_keycodename = 'CTRL';
  893. var second_key_keycode = '18';
  894. var second_key_keycodename = 'ALT';
  895. var CHECK_ALL_LINKS_KEYCODE = CHECK_ALL_LINKS_KEY.charCodeAt(0);
  896. var CONFIGURATION_KEYCODE = CONFIGURATION_KEY.charCodeAt(0);
  897. var copy_to_dead_keycode = copy_to_dead_key.charCodeAt(0);
  898. var toggle_autocheck_keycode = toggle_autocheck_key.charCodeAt(0);
  899. var toggle_Enable_Anonymizer_keycode = toggle_Enable_Anonymizer_key.charCodeAt(0);
  900. //settings for keyboard functions end
  901.  
  902. //global settings start
  903. var Show_black_background_in_DL_links, Show_line_through_in_dead_links, Color_DL_links;
  904. var Live_links_color, Dead_links_color, Temp_unavailable_links_color, Premium_links_color, Ref_anonymize_service;
  905. var Do_not_linkify_DL_links, Keyboard_functions, Autocheck, Enable_Anonymizer;
  906. var Show_progress_stats, Display_tooltip_info, Icon_set;
  907. var Progress_box_pos_bottom, Progress_box_pos_right, Progress_box_opacity, Progress_box_background_color, Progress_box_item_color;
  908. var Progress_box_refresh_rate;
  909. var Obsolete_file_hosts;
  910. var Custom_rules, Custom_rules_text;
  911.  
  912. var messageBox = document.createElement('b'); // top-left message box
  913.  
  914. var cLinksTotal = 0;
  915. var cLinksDead = 0;
  916. var cLinksAlive = 0;
  917. var cLinksUnava = 0;
  918. var cLinksprem = 0;
  919. var cLinksProcessed = 0;
  920.  
  921. var intervalId; //for updateProgress()
  922.  
  923. //icon resources
  924. 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/Pf14L7iJIEyXYFHBPjgwsz0TK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0e6lUua7JDzNEtceATGoWWHx3a7wu359EzF+tjHfPjYS6kQed2UD3AESEvwMAaQGsQMrwcN0AAAAASUVORK5CYII=';
  933.  
  934. 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==';
  935. var NEW_ICON_RED = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAA6klEQVQ4jbWTwWrCQBRFz6Rxnay6iuAXlJIg+BHZZR/d6++4t/5MpRQRf8CCrurGrDP6uumESTol04J3dbmPd7hvYBTAG5Q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dhPI+ZU4GNDotZW0HAzYDSVcSHmDeAyXbXOtsq3QAIsd2020VlRXBYEYdsThSCsdeZlEkhYoBUqBJOioaV0V8YWLgU+Ew3OUllo4jgd4D+4AtYdsc7/DVQOMxSNW5cNClGD+Fu41dOZlKDMLmELrOUIhjeN48HpngTnMbDeWjIeHnsvbz98YXqxguumuazdDOs0HjAETRKNjuFyzTE9PAOO//Xm27lvN4b1c8htkAXC2jrKHN5gVSRcRW0SCIpIj/f2ZAkhTkykiOYu+SLa8e6qkeRNXALh5nEc/phARnaSJSSUnO5G+B8tnIkr6rjMTSqfMZQXZ9vE1xGKJpPe4DDjXAYkEjAwmzwwDLIv0NZlE1MYAjsQoAOL8C5rY2AxPlIjwP/wcACKn3tWfrwJ4AAAAAElFTkSuQmCC';
  937. var NEW_ICON_PINK = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABUklEQVQ4jY3TsUuWURQG8F8WEvFNDREfIg5RURAOIeL0DhJBS0tDY9BQQ0Oj29kiIvoDhBpFQRTUD1GKi0sRtEs0SEQ0RBQIRcVXw3eF6+vrWwcunPvc53nuPffcS0uEmA0x38Y5cohwGjOYxBBe4VGI3j8NQlzHYhaW0cfNEAslWCfBw4yvYhkv8hjCgxD7yMdquw/jbJ4+xq2cz+AKdrJRv9EAv/EDx3Ft75QhtrHdcFpHy0mS/lSqcVzAFM7he6XaTNLXJoOmS+ziOc4XcB893A3xodUgm5zAHdzHSLH0DhdD/GwsoSjlV5Je5nK+YQUTOInXSXq7x6134RQuo4unGf6Me7iKMxgrNfUuXMJazr8U+DA6Of/UZrCF9xjFM3zELpZwOptulIKmLlQGNXdqS7u4EWK9BA9cYpJ2KtWcwaMazcInuB3iTZ3fGv/znf8CBMxX4hrPUbUAAAAASUVORK5CYII=';
  938.  
  939. //global settings end
  940. if (window.opera && !window.console)
  941. {
  942. window.console = {};
  943.  
  944. function fn()
  945. {
  946. opera.postError(arguments);
  947. };
  948. ['log', 'debug', 'info', 'warn', 'error', 'assert', 'dir', 'dirxml', 'group', 'groupEnd', 'time', 'timeEnd', 'count', 'trace', 'profile', 'profileEnd'].forEach(function (name)
  949. {
  950. window.console[name] = fn;
  951. });
  952. }
  953.  
  954. //displays colored text in message box
  955. function sendMessage(text, color)
  956. {
  957. var msgDiv = document.createElement('div');
  958. msgDiv.style.color = color;
  959. msgDiv.innerHTML = text;
  960. messageBox.appendChild(msgDiv);
  961. setTimeout(function(){messageBox.removeChild(msgDiv)}, 3000);
  962. }
  963.  
  964. function linkify(totalourls)
  965. { // code from http://userscripts.org/scripts/review/2254 Linkify ting
  966. var ikkeTilladteTags;
  967. var allLinksRegex = "(?:http:\/\/.+?\\?)?(?:https?:\/\/)?"
  968. + "[0-9A-Za-z]+(?:[\\.-][0-9A-Za-z]+)*\\.[A-Za-z]+/" //instead of totalourls
  969. + "[\\w\\–\\-\\.+$!*\\/()\\[\\]\',~%?:@#&=\\\\\\—;…×Ã\\_\\u0080-\\u03FF’‘" + (Allow_spaces_in_DL_links ? "\\u0020" : "") + "]*";
  970. allLinksRegex = new RegExp(allLinksRegex, "g");
  971. var regexy = "^(?:http:\/\/.+?\\?)?(?:https?:\/\/)?(?:www\\.)?(?:" + totalourls + ")";
  972.  
  973. if (Do_not_linkify_DL_links)
  974. ikkeTilladteTags = ['a', 'head', 'script', 'style', 'title', 'option', 'iframe', 'textarea', 'span']; //tags, hvor det der stAΞ’Β¥r inden i ikke skal vAΞ’Β¦re links
  975. else
  976. ikkeTilladteTags = ['a', 'head', 'script', 'style', 'title', 'option', 'iframe', 'textarea']; //tags, hvor det der stAΞ’Β¥r inden i ikke skal vAΞ’Β¦re links
  977.  
  978. var regex = new RegExp(regexy);
  979. var textNode, muligtLink;
  980.  
  981. var path = "//text()[not(parent::" + ikkeTilladteTags.join(" or parent::") + ") and contains(.,'/')]";
  982. var textNodes = document.evaluate(path, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  983.  
  984. var i = textNodes.snapshotLength;
  985. while (i--)
  986. {
  987. textNode = textNodes.snapshotItem(i);
  988.  
  989. muligtLink = textNode.nodeValue; //all links on page
  990.  
  991. var myArray = null;
  992. var span = null;
  993. var lastLastIndex = 0;
  994. allLinksRegex.lastIndex = 0;
  995. if (/^https?:\/\/~[\w\s\~]*\//.test(muligtLink))
  996. {
  997. if (textNode.parentNode.className == "adead_link") continue;
  998. var censoredLink = muligtLink;
  999. var span = document.createElement('span');
  1000. span.className = "adead_link";
  1001. $(span).attr('warlc_error', "Cause of error: <b>Censored link.</b>");
  1002. $(span).html(censoredLink);
  1003. span.addEventListener("mouseover", displayTooltipError, false);
  1004. cLinksTotal++; cLinksProcessed++; cLinksDead++;
  1005. textNode.parentNode.replaceChild(span, textNode);
  1006. continue;
  1007. alert(censoredLink);
  1008. }
  1009. while (myArray = allLinksRegex.exec(muligtLink)) //find all links
  1010. {
  1011. if (!regex.test(myArray[0])) //this link is not recognized
  1012. {
  1013.  
  1014. continue;
  1015. }
  1016. if (!span)
  1017. span = document.createElement('span');
  1018.  
  1019. var link = myArray[0];
  1020. span.appendChild(document.createTextNode(muligtLink.substring(lastLastIndex, myArray.index))); //inds?t det der kommer for dette hit
  1021.  
  1022. var $a = $("<a>" + link + "</a>")
  1023. if (!link.match(/https?:\/\//))
  1024. {
  1025. link = 'http://' + link;
  1026. }
  1027.  
  1028. $a.attr("href", link.replace(/\[\/hide:\w+\]/,""))
  1029. .addClass("processing_link")
  1030. .appendTo(span);
  1031. lastLastIndex = allLinksRegex.lastIndex;
  1032. }
  1033. if (span)
  1034. {
  1035. span.appendChild(document.createTextNode(muligtLink.substring(lastLastIndex))); //ins?t det der kommer efter sidste hit
  1036. textNode.parentNode.replaceChild(span, textNode);
  1037. }
  1038. }
  1039. }
  1040.  
  1041. function add_WARLC_style()
  1042. {
  1043. if (!(document.getElementsByTagName('WARLC')[0]))
  1044. {
  1045. var meta_not_to_add_more_style = document.createElement("WARLC");
  1046. meta_not_to_add_more_style.setAttribute('content', 'war_links_checker');
  1047. meta_not_to_add_more_style.setAttribute('name', 'description');
  1048. document.getElementsByTagName('head')[0].appendChild(meta_not_to_add_more_style);
  1049. alive_link_png = "";
  1050. adead_link_png = "";
  1051. unava_link_png = "";
  1052. prem_link_png = "";
  1053. switch(Icon_set)
  1054. {
  1055. //no icons
  1056. case 0: break;
  1057. // cat paws
  1058. case 1: alive_link_png = PAW_ICON_GREEN;
  1059. adead_link_png = PAW_ICON_RED;
  1060. unava_link_png = PAW_ICON_YELLOW;
  1061. prem_link_png = PAW_ICON_PINK;
  1062. break;
  1063. // classic RSLC look
  1064. case 2: alive_link_png = RSLC_ICON_GREEN;
  1065. adead_link_png = RSLC_ICON_RED;
  1066. unava_link_png = RSLC_ICON_YELLOW;
  1067. prem_link_png = RSLC_ICON_PINK;
  1068. break;
  1069. // New Icons
  1070. case 3: alive_link_png = NEW_ICON_GREEN;
  1071. adead_link_png = NEW_ICON_RED;
  1072. unava_link_png = NEW_ICON_YELLOW;
  1073. prem_link_png = NEW_ICON_PINK;
  1074. break;
  1075. // cat paws
  1076. default:alive_link_png = PAW_ICON_GREEN;
  1077. adead_link_png = PAW_ICON_RED;
  1078. unava_link_png = PAW_ICON_YELLOW;
  1079. prem_link_png = PAW_ICON_PINK;
  1080. break;
  1081. }
  1082. processing_link_gif = 'data:image/gif;base64,' + // or temporary anavailable
  1083. 'R0lGODlhCgAKAJEDAMzMzP9mZv8AAP///yH/C05FVFNDQVBFMi4wAwEAAAAh+QQFAAADACwAAAAACgAKAAACF5wncgaAGgJzJ647cWua4sOBFEd62VEAACH5BAUAAAMALAEAAAAIAAMAAAIKnBM2IoMDAFMQFAAh+QQFAAADACwAAAAABgAGAAACDJwHMBGofKIRItJYAAAh+QQFAAADACwAAAEAAwAIAAACChxgOBPBvpYQYxYAIfkEBQAAAwAsAAAEAAYABgAAAgoEhmPJHOGgEGwWACH5BAUAAAMALAEABwAIAAMAAAIKBIYjYhOhRHqpAAAh+QQFAAADACwEAAQABgAGAAACDJwncqi7EQYAA0p6CgAh+QQJAAADACwHAAEAAwAIAAACCpRmoxoxvQAYchQAOw%3D%3D';
  1084.  
  1085. var dead_color_css, live_color_css, unava_color_css, prem_color_css, black_background_css;
  1086.  
  1087. if (Color_DL_links)
  1088. {
  1089. dead_color_css = 'color:' + Dead_links_color + ' !important;';
  1090. live_color_css = 'color:' + Live_links_color + ' !important;';
  1091. unava_color_css = 'color:' + Temp_unavailable_links_color + ' !important;';
  1092. container_color_css = 'color:' + Container_links_color + ' !important;';
  1093. prem_color_css = 'color:' + Premium_links_color + ' !important;';
  1094. }
  1095. else
  1096. {
  1097. dead_color_css = live_color_css = unava_color_css = container_color_css = prem_color_css = '';
  1098. }
  1099.  
  1100. if (Show_black_background_in_DL_links)
  1101. {
  1102. black_background_css = 'background-color: black !important;';
  1103. }
  1104. else
  1105. {
  1106. black_background_css = '';
  1107. }
  1108.  
  1109. if (Show_line_through_in_dead_links)
  1110. {
  1111. line_through_css = 'text-decoration: line-through !important;';
  1112. }
  1113. else
  1114. {
  1115. line_through_css = '';
  1116. }
  1117.  
  1118. GM_addStyle(".alive_link {background:transparent url(" + alive_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;" + live_color_css + black_background_css + "}");
  1119. 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 + "}");
  1120. GM_addStyle(".unava_link {background:transparent url(" + unava_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;" + unava_color_css + black_background_css + "}");
  1121. GM_addStyle(".processing_link {background:transparent url(" + processing_link_gif + ") no-repeat scroll 100% 50%;padding-right:15px;" + container_color_css + black_background_css + "}");
  1122. GM_addStyle(".container_link {background:transparent url(" + processing_link_gif + ") no-repeat scroll 100% 50%;padding-right:15px;" + container_color_css + black_background_css + "}");
  1123. GM_addStyle(".container_list {font-size:90%; list-style-type:square; padding: 0px 5% 0px; margin: 0px}");
  1124. GM_addStyle(".prem_link {background:transparent url(" + prem_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;" + prem_color_css + black_background_css + "}");
  1125. }
  1126. }
  1127.  
  1128. var warlcTooltip = null;
  1129. var mouseoverLink = null; //link href with mouse cursor over it
  1130.  
  1131. var lastX = 0;
  1132. var lastY = 0;
  1133.  
  1134. $(document).ready(initTooltip);
  1135. //inits tooltip
  1136. function initTooltip()
  1137. { warlcTooltip = document.createElement("div");
  1138. 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;");
  1139. warlcTooltip.style.visibility = "hidden";
  1140. document.body.appendChild(warlcTooltip);
  1141. }
  1142.  
  1143. //"mousemove" event handler for all links
  1144. function moveTooltip(event)
  1145. {
  1146. if ((Math.abs(lastX - event.clientX) + Math.abs(lastY - event.clientY)) < 6)
  1147. { //no need to reflow if the cursor moved just a little
  1148. return;
  1149. }
  1150. else
  1151. {
  1152. lastX = event.clientX;
  1153. lastY = event.clientY;
  1154. }
  1155.  
  1156. posX = event.clientX + window.pageXOffset + 10;
  1157. posY = event.clientY + window.pageYOffset;
  1158. var ttHeight = warlcTooltip.offsetHeight;
  1159. var ttFreeSpace = window.innerHeight - event.clientY;
  1160. if (ttHeight > ttFreeSpace)
  1161. { //prevents tooltip from getting out of the window
  1162. posY -= (ttHeight - (ttFreeSpace)) + 10;
  1163. }
  1164. else
  1165. {
  1166. posY += 7;
  1167. }
  1168. warlcTooltip.style.top = posY + "px";
  1169. warlcTooltip.style.left = posX + "px";
  1170. }
  1171.  
  1172. //"mouseout" event handler for all links
  1173. function hideTooltip(){
  1174. warlcTooltip.style.visibility = "hidden";
  1175. mouseoverLink = null;
  1176. }
  1177.  
  1178.  
  1179. //"mouseover" event handler for dead links
  1180. //displays tooltip error message on dead links
  1181. function displayTooltipError()
  1182. {
  1183. mouseoverLink = this.href;
  1184. this.addEventListener("mouseout", hideTooltip);
  1185. this.addEventListener("mousemove", function(event) { moveTooltip(event); });
  1186. warlcTooltip.innerHTML = '<b>LOADING...</b>';
  1187. warlcTooltip.style.minWidth = 0;
  1188. warlcTooltip.style.visibility = "visible";
  1189. if (this.warlc_error) //an error message is already known and stored in warlc_error attribute
  1190. {
  1191. warlcTooltip.innerHTML = this.warlc_error;
  1192. }
  1193. else
  1194. {
  1195. loadErrorInfo(this);
  1196. }
  1197. function loadErrorInfo(link)
  1198. {
  1199. var href = link.href;
  1200. href = href.replace(/quickshare\.cz\/.+/, "quickshare.cz/chyba");
  1201. GM_xmlhttpRequest({
  1202. method: 'GET',
  1203. url: href.replace(Ref_anonymize_service, ""),
  1204. headers: {
  1205. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1206. 'Accept': 'text/xml',
  1207. 'Referer': ""
  1208. },
  1209. onload: function(result) {
  1210. var res = result.responseText;
  1211. //TODO: errorRegexs -
  1212. var errorRegexs = [ //generic error messages follow
  1213. /(empty directory)/i,
  1214. /(soubor nebyl nalezen)/i,
  1215. /((?:file|page|link|folder)(?:is|not|does|has been|was| ){1,}(?:found|available|blocked|exists?|deleted|removed))/i,
  1216. //server specific error messages follow
  1217. /msg error" style="cursor: default">(.+?)<\/div>/, //sendspace
  1218. /color:red;font\-weight:bold;border\-style:dashed;font-size:12px;border\-width:2px;><tr><td align=center>(.+?)<\/td>/, //fastshare
  1219. /(Takový soubor neexistuje. Je možné, že byl již smazán.)/, //quickshare
  1220. /file_info file_info_deleted">\s*<h1>(.+?)<\/h1>/, //filepost
  1221. /<br \/>\s*<p style="color:#000">(.+?)<\/p>\s*<\/center>/, //letitbit
  1222. /(?:error_div">|<\/h1><p>)<strong>(.+?)<\/strong>/, //share-rapid,quickshare
  1223. /class="red">(.+?)<(?:span|br)>/, //czshare, megashares
  1224. /class="wp640">\s*<h1 class="h1">(.+?)<\/h1>/, //uloz.to
  1225. /not-found">\s*<p>(.+?)<\/p>/, //bayfiles
  1226. /(Your file could not be found. Please check the download link.)/, //stahnu.to
  1227. /error_msg">\s*(<h3>.+?<\/h3><ul>(.+?)<\/ul>)/, //edisk
  1228. /id="obsah">\s*<h2>(.+?)<\/h2>/, //euroshare
  1229. /error">\s*(?:<[bp]>)?\s*(.+?)<\/[bp]>/, //filesmonster, shragle, gigapeta
  1230. ///center aC">\s*<h1>(.+?)<br \/>/, //uploaded.to
  1231. /icon_err">\s*<h1>(.+?)<\/h1>/, //filejungle
  1232. /Code: ER_NFF_\d+<\/h2>\s*(.+?)\s*<\/div>/, //netload
  1233. /(File has been removed due to Copyright Claim)/, //filerio
  1234. ];
  1235. var errorIdx = errorRegexs.length;
  1236. var error = "Cause of error: <b>unknown</b>";
  1237. var errorCandidate = "";
  1238. while(errorIdx--)
  1239. {
  1240. var errorCandidate = res.match(errorRegexs[errorIdx]);
  1241. if (errorCandidate != null)
  1242. {
  1243. error = "Cause of error: <b>" + errorCandidate[1].replace(/&nbsp;/g," ") + "</b>";
  1244. break;
  1245. }
  1246. }
  1247. //link attributes
  1248. link.warlc_error = error;
  1249. if (mouseoverLink == link.href) //mouse cursor is still over the link
  1250. {
  1251. warlcTooltip.innerHTML = error;
  1252. }
  1253. }
  1254. });
  1255. }
  1256. }
  1257.  
  1258. //"mouseover" event handler for alive links
  1259. //displays tooltip info (file size, file name,...) on alive links
  1260. function displayTooltipInfo()
  1261. {
  1262. mouseoverLink = this.href;
  1263. //exclude direct download filehostings
  1264. 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)/))
  1265. {
  1266. return;
  1267. }
  1268. this.addEventListener("mouseout", hideTooltip);
  1269. this.addEventListener("mousemove", function(event) { moveTooltip(event); });
  1270. warlcTooltip.innerHTML = '<b>LOADING...</b>';
  1271. warlcTooltip.style.minWidth = 0;
  1272. warlcTooltip.style.visibility = "visible";
  1273. if (this.warlc_tooltipcache) //file size is already known and stored in warlc_filename and warlc_filesize attributes
  1274. {
  1275. warlcTooltip.innerHTML = this.warlc_tooltipcache;
  1276. }
  1277. else
  1278. {
  1279. loadInfo(this);
  1280. }
  1281. function loadInfo(link)
  1282. {
  1283. var href = link.href;
  1284. GM_xmlhttpRequest({
  1285. method: 'GET',
  1286. url: href.replace(Ref_anonymize_service, ""),
  1287. headers: {
  1288. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1289. 'Accept': 'text/xml',
  1290. 'Referer': ""
  1291. },
  1292. onload: function(result) {
  1293. var res = result.responseText;
  1294. var nameRegexs = [ /Filename: <b class="f_arial f_14px">(.+?)<\/b>/, //oron
  1295. /(?:finfo|file[-_]?name)">\s*(.+?)<\/?(?:h1|a|div|span style|td)/, //hellshare, netload, badongo, 4fastfile
  1296. /fl" title="(.+?)">/, //edisk
  1297. /<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
  1298. /<h3>Stahujete soubor: <\/h3>\s*<div class="textbox">(.+?)<\/div>/, //webshare
  1299. /<h3><b><span style=color:black;>(.+?)<\/b><\/h3><br>/, //fastshare
  1300. /title="download (.+?)">/, //sendspace
  1301. /Stáhnout soubor: (.+?)<\/h1>/, //quickshare
  1302. /fz24">Download:\s*<strong>(.+?)<\/strong>/, //crocko
  1303. // /'file\-icon\d+ \w+'>(?:<\/span><span>)?(.+?)<\/span>/, //hitfile, turbobit
  1304. /d0FileName = "(.+?)";/, //letitbit
  1305. /file(?:_name|-info)" title="">\w+: <span>(.+?)<\/span>/, //vip-file, shareflare
  1306. /recent-comments"><h2>(.+) &nbsp;/, //xdisk
  1307. /fname" value="(.+?)">/, //syfiles, grupload,
  1308. /download\-header">\s*<h2>File:<\/h2>\s*<p title="(.+?)">/, //bayfiles
  1309. /description">\s*<p><b>Soubor: (.+?)<\/b>/, //bezvadata
  1310. /Complete name : (.+?)<br \/>/, //bezvadata
  1311. /itemprop="name">(.+?)<\/span>/, //bezvadata
  1312. ];
  1313. var nameIdx = nameRegexs.length;
  1314. // [sizeRegexs]
  1315. // / \ \?
  1316. // prefix (size) postfix
  1317. // / \
  1318. // val quant
  1319. var quantRegex = '(?:M|G|K)?i?(?:B)(?:[y|i]te?s?)?';
  1320. var valRegex = '\\d+(?:[\\., ]\\d+){0,2}'; // 111([., ]222)?([., ]333)?
  1321. var uniSizeRegex = valRegex + '(?:\\s*|&nbsp;)' + quantRegex;
  1322. var preSizeRegex = '(?::|\\(|>|>, | - )';
  1323. var postSizeRegex = '(?:\\))?';
  1324. var sizeRegexs = [ preSizeRegex + "\\s*(" + uniSizeRegex + ")\\s*" + postSizeRegex,
  1325. 'FileSize_master">(.+?)<\/strong>', //hellshare
  1326. ];
  1327. var sizeIdx = sizeRegexs.length;
  1328. //
  1329. //
  1330. var tooltip = "File Name: <b>";
  1331. var fileName = "unknown";
  1332. var nameCandidate = "";
  1333. while(nameIdx--)
  1334. {
  1335. var nameCandidate = res.match(nameRegexs[nameIdx]);
  1336. if (nameCandidate != null)
  1337. {
  1338. fileName = nameCandidate[1].replace(/&nbsp;/g," ");
  1339. break;
  1340. }
  1341. }
  1342. tooltip += fileName + "</b><br>File Size: <b>";
  1343. var fileSize = "unknown";
  1344. var sizeCandidate = "";
  1345. while(sizeIdx--)
  1346. {
  1347. sizeCandidate = res.match(new RegExp(sizeRegexs[sizeIdx], "i"));
  1348. if (sizeCandidate != null)
  1349. {
  1350. fileSize = sizeCandidate[1].replace(/&nbsp;/g," ");
  1351. if (/^\d+$/.test(fileSize) && fileSize >= 1024) //assume bytes
  1352. {
  1353. if(fileSize > (1<<30)) fileSize = Math.round(10 * fileSize / (1<<30)) / 10 + ' GB';
  1354. else if(fileSize > (1<<20)) fileSize = Math.round(fileSize / (1<<20)) + ' MB';
  1355. else fileSize = Math.round(fileSize / 1024) + ' KB';
  1356. }
  1357. break;
  1358. }
  1359. }
  1360. tooltip += fileSize + "</b>";
  1361. // PROTOTYPE
  1362. // video thumbnails
  1363. if (href.match('hellshare'))
  1364. {
  1365. var thumbs;
  1366. thumbs = res.match(/http:\/\/static\d+\.helldata\.com\/thumbs(?:\/\d+){1,2}\/\d{1,2}"/g);
  1367. if (thumbs)
  1368. {
  1369. tooltip += '<br>';
  1370. var j = Math.min(thumbs.length, 9);
  1371. for (var i = 0; i < j; i++)
  1372. {
  1373. tooltip += '<img src="' + thumbs[i].replace('"',"") + '" width="' + TOOLTIP_THUMBWIDTH + 'px">';
  1374. }
  1375. warlcTooltip.style.minWidth = TOOLTIP_MAXWIDTH;
  1376. }
  1377. }
  1378. if (href.match('czshare'))
  1379. {
  1380. var thumbs;
  1381. thumbs = res.match(/src="http:\/\/www(\d+)\.czshare\.com\/images_velke\/\d+\.(\d+)\.jpeg/);
  1382. if (thumbs)
  1383. {
  1384. var thumbsServer = thumbs[1];
  1385. var thumbsId = thumbs[2];
  1386. tooltip += '<br>';
  1387. for (var i = 1; i < 9; i++)
  1388. {
  1389. tooltip += '<img src="http://www' + thumbsServer + '.czshare.com/images_velke/' + i + '.' + thumbsId + '.jpeg" width="' + TOOLTIP_THUMBWIDTH + 'px">';
  1390. }
  1391. warlcTooltip.style.minWidth = TOOLTIP_MAXWIDTH;
  1392. }
  1393. }
  1394. if (href.match('bezvadata'))
  1395. {
  1396. var thumbs;
  1397. thumbs = res.match(/http:\/\/nahledy\.bezvadata\.cz\/nahledy\/\d+\/\d+\/\d+_\d+_\d+x\d+_\w.jpg/g);
  1398. if (thumbs)
  1399. {
  1400. tooltip += '<br>';
  1401. var j = Math.min(thumbs.length, 9);
  1402. for (var i = 0; i < j; i++)
  1403. {
  1404. tooltip += '<img src="' + thumbs[i] + '" width="' + TOOLTIP_THUMBWIDTH + 'px">';
  1405. }
  1406. warlcTooltip.style.minWidth = TOOLTIP_MAXWIDTH;
  1407. }
  1408. }
  1409. link.warlc_tooltipcache = tooltip;
  1410. if (mouseoverLink == link.href) //mouse cursor is still over the link
  1411. {
  1412. warlcTooltip.innerHTML = tooltip;
  1413. }
  1414. }
  1415. });
  1416. }
  1417. }
  1418.  
  1419. function setVariables()
  1420. {
  1421. if (firstRun)
  1422. {
  1423. GM_log('First run, applying default settings...');
  1424. GM_setValue("Icon_set",1);
  1425. GM_setValue("Display_tooltip_info",true);
  1426. GM_setValue("Show_black_background_in_DL_links",false);
  1427. GM_setValue("Show_line_through_in_dead_links",false);
  1428. GM_setValue("Display_full_links_in_link_containers",false);
  1429. GM_setValue("Allow_spaces_in_DL_links",false);
  1430. GM_setValue("Autocheck",true);
  1431. GM_setValue("Enable_Anonymizer",false);
  1432. GM_setValue("Do_not_linkify_DL_links",false);
  1433. GM_setValue("Show_progress_stats",true);
  1434. GM_setValue("Keyboard_functions",true);
  1435. GM_setValue("Obsolete_file_hosts",false);
  1436. GM_setValue("Color_DL_links",true);
  1437. GM_setValue("Live_links_color","Green");
  1438. GM_setValue("Dead_links_color","#FF3300");
  1439. GM_setValue("Temp_unavailable_links_color","#F7EF09");
  1440. GM_setValue("Container_links_color","DarkKhaki");
  1441. GM_setValue("Premium_links_color","DeepPink");
  1442. GM_setValue("Ref_anonymize_service","http://hiderefer.com/?");
  1443. GM_setValue("Custom_rules",false);
  1444. GM_setValue("Custom_rules_text","");
  1445. GM_setValue("First_run", false);
  1446. }
  1447. //hidden settings
  1448. GM_setValue("Progress_box_pos_bottom", Progress_box_pos_bottom = GM_getValue("Progress_box_pos_bottom", 20));
  1449. GM_setValue("Progress_box_pos_right", Progress_box_pos_right = GM_getValue("Progress_box_pos_right", 10));
  1450. GM_setValue("Progress_box_opacity", Progress_box_opacity = GM_getValue("Progress_box_opacity", 85));
  1451. GM_setValue("Progress_box_background_color", Progress_box_background_color = GM_getValue("Progress_box_background_color", 'DimGray'));
  1452. GM_setValue("Progress_box_item_color", Progress_box_item_color = GM_getValue("Progress_box_item_color", 'DimGray'));
  1453. GM_setValue("Progress_box_refresh_rate", Progress_box_refresh_rate = GM_getValue("Progress_box_refresh_rate", 2000));
  1454. GM_setValue("Debug_mode", DEBUG_MODE = GM_getValue("Debug_mode", false));
  1455. //hidden settings end
  1456.  
  1457. Icon_set = GM_getValue("Icon_set", 1); //0 - no icons, 1 - cat paws, 2 - old RSLC style, 3 - New Icons,
  1458. Display_tooltip_info = GM_getValue("Display_tooltip_info", true);
  1459. Show_black_background_in_DL_links = GM_getValue("Show_black_background_in_DL_links", false);
  1460. Show_line_through_in_dead_links = GM_getValue("Show_line_through_in_dead_links", false);
  1461. Display_full_links_in_link_containers = GM_getValue("Display_full_links_in_link_containers", false);
  1462. Allow_spaces_in_DL_links = GM_getValue("Allow_spaces_in_DL_links", false);
  1463. Autocheck = GM_getValue("Autocheck", true);
  1464. Enable_Anonymizer = GM_getValue("Enable_Anonymizer", false);
  1465. Do_not_linkify_DL_links = GM_getValue("Do_not_linkify_DL_links", false);
  1466. Show_progress_stats = GM_getValue("Show_progress_stats", true);
  1467. Keyboard_functions = GM_getValue("Keyboard_functions", true);
  1468. Obsolete_file_hosts = GM_getValue("Obsolete_file_hosts", false);
  1469. Color_DL_links = GM_getValue("Color_DL_links", true);
  1470. Live_links_color = GM_getValue("Live_links_color", "Green");
  1471. Dead_links_color = GM_getValue("Dead_links_color", "#FF3300");
  1472. Temp_unavailable_links_color = GM_getValue("Temp_unavailable_links_color", "#F7EF09");
  1473. Container_links_color = GM_getValue("Container_links_color", "DarkKhaki");
  1474. Premium_links_color = GM_getValue("Premium_links_color", "DeepPink");
  1475. Ref_anonymize_service = GM_getValue("Ref_anonymize_service", "http://hiderefer.com/?");
  1476. Custom_rules = GM_getValue("Custom_rules", false);
  1477. Custom_rules_text = GM_getValue("Custom_rules_text", false);
  1478. }
  1479.  
  1480.  
  1481. // Delinkifies the links
  1482. // params:
  1483. // links -> list of links or link components (note they should be sufficiently unique to identify the link on page,
  1484. // e.g. 'uloz.to/xs68skxl8')
  1485. function delinkifySnapshot(snapshot)
  1486. {
  1487. var n = snapshot.snapshotLength;
  1488.  
  1489. while (n--)
  1490. {
  1491. thisLink = snapshot.snapshotItem(n);
  1492.  
  1493. var spanElm = document.createElement("span");
  1494. spanElm.className = thisLink.className;
  1495. spanElm.innerHTML = thisLink.innerHTML;
  1496.  
  1497. if (Display_tooltip_info)
  1498. {
  1499. spanElm.href = thisLink.href;
  1500. switch (thisLink.className){
  1501. case "alive_link": spanElm.addEventListener("mouseover", displayTooltipInfo, false); break
  1502. case "adead_link": spanElm.addEventListener("mouseover", displayTooltipError, false); break;
  1503. case "unava_link": //reserved
  1504. default:
  1505. }
  1506. }
  1507. thisLink.parentNode.replaceChild(spanElm, thisLink);
  1508. }
  1509. }
  1510.  
  1511. function processContainers()
  1512. {
  1513. var redirectorTypes = { "HTTP_302": 0,
  1514. "INNER_LINK": 1,
  1515. "THELOO_KATT_IT": 2,
  1516. "CING_BE": 3,
  1517. "ADF_LY": 4};
  1518. var cMultiloadTotal = 0;
  1519. var cMultiloadProcessed = 0;
  1520.  
  1521. var cMirrorcreatorComTotal = 0;
  1522. var cMirrorcreatorComProcessed = 0;
  1523.  
  1524. var hostRestrictionRegex = "";
  1525. var multiloadComRestriction = "";
  1526. var multiloadComRestrictionRegex;
  1527.  
  1528. //
  1529. //HANDLING REDIRECTORS START
  1530. //
  1531.  
  1532. var redirectors = new Array();
  1533. initRedirectors();
  1534.  
  1535. var redirectorsCount = redirectors.length;
  1536.  
  1537. if (redirectorsCount > 0)
  1538. {
  1539. var allRedirectorsRegex = "";
  1540.  
  1541. //linkify redirector links
  1542. for(var redirIdx = 0; redirIdx < redirectorsCount; redirIdx++)
  1543. {
  1544. allRedirectorsRegex += redirectors[redirIdx].linkRegex + "|";
  1545. }
  1546. allRedirectorsRegex = allRedirectorsRegex.replace(/\|$/, "");
  1547. linkify(allRedirectorsRegex);
  1548. //
  1549. //process redirector links
  1550. for(var redirIdx = 0; redirIdx < redirectorsCount; redirIdx++)
  1551. {
  1552. var redirectorsSnapshot = document.evaluate(redirectors[redirIdx].xpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  1553. redirectors[redirIdx].cTotal = redirectorsSnapshot.snapshotLength;
  1554.  
  1555. cLinksTotal += redirectors[redirIdx].cTotal;
  1556. var linkIdx = redirectors[redirIdx].cTotal;
  1557.  
  1558. while(linkIdx--)
  1559. {
  1560. switch(redirectors[redirIdx].type)
  1561. {
  1562. case redirectorTypes.HTTP_302: processRedirectorLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1563. case redirectorTypes.INNER_LINK: processRedirectorLinkEx(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1564. case redirectorTypes.THELOO_KATT_IT: processThelooKattItLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1565. case redirectorTypes.CING_BE: processCingBeLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1566. case redirectorTypes.ADF_LY: processAdfLyLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1567. default:
  1568. }
  1569. }
  1570. }
  1571. //
  1572. }
  1573.  
  1574. //HTTP_302
  1575. function processRedirectorLink(link, redirectorId)
  1576. {
  1577. link.className = 'container_link';
  1578.  
  1579. GM_xmlhttpRequest({
  1580. method: 'HEAD',
  1581. url: link.href,
  1582. headers: {
  1583. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1584. 'Accept': 'text/xml',
  1585. 'Referer': ""
  1586. },
  1587. onload: function(result) {
  1588. if (result.finalUrl.replace("https", "http") == link.href) // service hasn't redirected anywhere
  1589. {
  1590. processRedirectorLink(link, redirectorId);
  1591. }
  1592. else
  1593. {
  1594. redirectors[redirectorId].cProcessed++;
  1595. link.href = result.finalUrl;
  1596. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  1597. checkLinks('container_link');
  1598. }
  1599. },
  1600. onerror: function(result) { //probably caused by unresponsive filehosting
  1601. redirectors[redirectorId].cProcessed++;
  1602. link.className = 'unava_link';
  1603. cLinksProcessed++;
  1604. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  1605. checkLinks('container_link');
  1606. }
  1607. });
  1608. }
  1609. //INNER_LINK
  1610. function processRedirectorLinkEx(link, redirectorId)
  1611. {
  1612. link.className = 'container_link';
  1613. GM_xmlhttpRequest({
  1614. method: 'GET',
  1615. url: link.href,
  1616. headers: {
  1617. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1618. 'Accept': 'text/xml',
  1619. 'Referer': ""
  1620. },
  1621. onload: function(result) {
  1622. link.href = result.responseText.match(redirectors[redirectorId].innerLinkRegex)[1];
  1623. redirectors[redirectorId].cProcessed++;
  1624. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  1625. checkLinks('container_link');
  1626. }
  1627. });
  1628. }
  1629. //theloo.katt.it (wrapped safelinking.net)
  1630. function processThelooKattItLink(link, redirectorId)
  1631. {
  1632. link.className = 'container_link';
  1633. GM_xmlhttpRequest({
  1634. method: 'GET',
  1635. url: link.href,
  1636. headers: {
  1637. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1638. 'Accept': 'text/xml',
  1639. 'Referer': ""
  1640. },
  1641. onload: function(result) {
  1642. link.href = result.responseText.match(redirectors[redirectorId].innerLinkRegex)[1];
  1643. redirectors[redirectorId].cProcessed++;
  1644. //the inner links are safelinking.net links, so lets proceed with it
  1645. if (GM_getValue("Check_safelinking_dot_net_links", false))
  1646. {
  1647. processRedirectorLink(link, 0);
  1648. }
  1649. }
  1650. });
  1651. }
  1652. //adf.ly (adf.ly/go innerLink, locking mechanism)
  1653. function processAdfLyLink(link, redirectorId)
  1654. {
  1655. link.className = 'container_link';
  1656. GM_xmlhttpRequest({
  1657. method: 'GET',
  1658. url: link.href,
  1659. headers: {
  1660. 'User-agent': 'Mozilla/4.0',
  1661. 'Accept': 'text/xml',
  1662. 'Referer': ""
  1663. },
  1664. onload: function(result) {
  1665. if (result.finalUrl.match('/locked/'))
  1666. {
  1667. var delay = result.responseText.match(/countdown">(\d+)</)[1];
  1668. // GM_log(result.finalUrl + 'is locked. Repeating the request in ' + delay + 's.');
  1669. // setTimeout(function(){processAdfLyLink(link, redirectorId);}, delay * 1000);
  1670. }
  1671. else
  1672. {
  1673. // GM_log('Processing... ' + link.href);
  1674. // GM_log('Found...' + result.responseText.match(/\/go\/(\w+\/\w+)/)[1]);
  1675. var directLink = 'http://adf.ly' + result.responseText.match(/(\/go\/\w+\/\w+)/)[1];
  1676. var logToken = result.responseText.match(/flashy_(\w+)/)[1];
  1677. var users = result.responseText.match(/user=\d+&user2=\d+/);
  1678. //confirm advert
  1679. GM_xmlhttpRequest(
  1680. {
  1681. method: 'POST',
  1682. url: 'http://adf.ly/l.php',
  1683. headers: {
  1684. 'User-agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20100101 Firefox/13.0',
  1685. 'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
  1686. 'Referer': link.href
  1687. },
  1688. data: users + '&lt=' + logToken,
  1689. onload: function(result) {
  1690. //retrieve final url from .../go/... link
  1691. GM_xmlhttpRequest({
  1692. method: 'GET',
  1693. url: directLink,
  1694. headers: {
  1695. 'User-agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20100101 Firefox/13.0',
  1696. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  1697. 'Referer': link.href
  1698. },
  1699. onload: function(result) {
  1700. link.href = result.finalUrl;
  1701. redirectors[redirectorId].cProcessed++;
  1702. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  1703. checkLinks('container_link');
  1704. }
  1705. });
  1706. }
  1707. });
  1708. }
  1709. }
  1710. });
  1711. function proceedOK()
  1712. {
  1713. }
  1714. }
  1715. //MULTILOAD.CZ START
  1716. if (GM_getValue("Check_multiload_dot_cz_links", false))
  1717. {
  1718. var mlRegex = 'multiload\\.cz\/stahnout\/\\d+\/';
  1719. var mlXpath = "//a[contains(@href,'http://www.multiload.cz/stahnout')]";
  1720.  
  1721. hostRestrictionRegex = 'Upload se nezdařil|limit exceeded|probíhá reupload|';
  1722.  
  1723. if (GM_getValue("Check_hellshare_dot_com_links", false))
  1724. hostRestrictionRegex += 'hellshare|';
  1725. if (GM_getValue("Check_share_dash_rapid_dot_com_links", false))
  1726. hostRestrictionRegex += 'share-rapid\\.com|';
  1727. if (GM_getValue("Check_quickshare_dot_cz_links", false))
  1728. hostRestrictionRegex += 'quickshare\\.cz|';
  1729. if (GM_getValue("Check_czshare_dot_com_links", false))
  1730. hostRestrictionRegex += 'czshare\\.com|';
  1731. if (GM_getValue("Check_uloz_dot_to_links", false))
  1732. hostRestrictionRegex += 'uloz\\.to|';
  1733. if (GM_getValue("Check_hellspy_dot_com_links", false))
  1734. hostRestrictionRegex += 'hellspy|';
  1735. if (GM_getValue("Check_multishare_dot_cz_links", false))
  1736. hostRestrictionRegex += 'multishare\\.cz|';
  1737.  
  1738. hostRestrictionRegex = hostRestrictionRegex.replace(/\|$/, "");
  1739.  
  1740. linkify(mlRegex);
  1741.  
  1742. var mlSnapshot = document.evaluate(mlXpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  1743. var mlCount = mlSnapshot.snapshotLength;
  1744.  
  1745. if (mlCount > 0)
  1746. {
  1747. cMultiloadTotal += mlCount;
  1748.  
  1749. mlIdx = mlCount - 1;
  1750. do
  1751. {
  1752. processMultiloadLink(mlSnapshot.snapshotItem(mlIdx));
  1753. }
  1754. while(mlIdx--)
  1755. }
  1756. }
  1757. //MULTILOAD.CZ END
  1758.  
  1759.  
  1760.  
  1761. function processMultiloadLink(mlLink)
  1762. {
  1763. GM_xmlhttpRequest({
  1764. method: 'GET',
  1765. url: mlLink.href,
  1766. headers: {
  1767. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1768. 'Accept': 'text/xml',
  1769. 'Referer': ""
  1770. },
  1771. onload: function(result) {
  1772. var res = result.responseText;
  1773.  
  1774. var innerBlockRegex = /<p class="manager-linky">(?:.|\s)+?<\/p>/g;
  1775. 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;
  1776. var innerLinkRegex = /((?:Upload se nezdařil.+|https?:\/\/(?:.|\s)+|Právě probíhá reupload, buďte trpěliví\.\.\.))</;
  1777. var mlRestrictionRegex = new RegExp(hostRestrictionRegex,"g"); //what links should be displayed
  1778.  
  1779. var blocks; // blocks of links
  1780. var blockIdx;
  1781.  
  1782. mlLink.className = '';
  1783.  
  1784. if (result.status == 503) //service temporarily unavailable, repeat request in one second
  1785. {
  1786. setTimeout(function(){ processMultiloadLink(mlLink); }, 1000);
  1787. return;
  1788. }
  1789.  
  1790. blocks = res.match(innerBlockRegex);
  1791.  
  1792. if (blocks == null) //no links found, cancel further processing
  1793. {
  1794. mlLink.parentNode.appendChild(document.createTextNode(' | Požadovaný soubor neexistuje.'));
  1795. cMultiloadProcessed++;
  1796. if (cMultiloadTotal <= cMultiloadProcessed)
  1797. {
  1798. startBulkCheck('container_link');
  1799. start('container_link');
  1800. }
  1801. return;
  1802. }
  1803.  
  1804. blockIdx = blocks.length;
  1805.  
  1806. if (Display_full_links_in_link_containers)
  1807. {
  1808. var ulElm = document.createElement('ul');
  1809. ulElm.className = 'container_list'; //CSS smaller font, padding, margin, square style
  1810.  
  1811. while(blockIdx--)
  1812. {
  1813. if (blocks[blockIdx].match(mlRestrictionRegex) == null)
  1814. {
  1815. continue;
  1816. }
  1817.  
  1818. var innerLinks = blocks[blockIdx].match(innerLinksRegex);
  1819.  
  1820. var linkIdx = innerLinks.length;
  1821. while (linkIdx--)
  1822. {
  1823. var innerLink = innerLinks[linkIdx].match(innerLinkRegex)[1];
  1824.  
  1825. var liElm = document.createElement('li');
  1826.  
  1827. if (innerLink.match(/Upload se nezdařil|limit exceeded|probíhá reupload/))
  1828. {
  1829. liElm.appendChild(document.createTextNode(innerLink));
  1830. }
  1831. else
  1832. {
  1833. var aElm = document.createElement('a');
  1834. aElm.innerHTML = innerLink;
  1835. aElm.href = innerLink;
  1836. aElm.className = 'container_link';
  1837.  
  1838. liElm.appendChild(aElm);
  1839. }
  1840.  
  1841. ulElm.appendChild(liElm);
  1842. cLinksTotal++;
  1843. }
  1844. }
  1845.  
  1846. mlLink.parentNode.appendChild(ulElm);
  1847. }
  1848. else //compact view
  1849. {
  1850. mlLink.parentNode.appendChild(document.createTextNode("|"));
  1851.  
  1852. while(blockIdx--)
  1853. {
  1854. if (blocks[blockIdx].match(mlRestrictionRegex) == null)
  1855. {
  1856. continue;
  1857. }
  1858.  
  1859. var innerLinks = blocks[blockIdx].match(innerLinksRegex);
  1860.  
  1861. var linkIdx = innerLinks.length;
  1862. while (linkIdx--)
  1863. {
  1864. var innerLink = innerLinks[linkIdx].match(innerLinkRegex)[1];
  1865.  
  1866. if (innerLink.match(/Upload se nezdařil|limit exceeded|probíhá reupload/))
  1867. {
  1868. mlLink.parentNode.appendChild(document.createTextNode("----"));
  1869. }
  1870. else
  1871. {
  1872. var aElm = document.createElement('a');
  1873.  
  1874. var hostName = innerLink.match(/quickshare|hellshare|uloz\.to|multishare|hellspy|share\-rapid|czshare/);
  1875.  
  1876. //abbreviate host name
  1877. switch(hostName + ""){
  1878.  
  1879. case 'quickshare': aElm.innerHTML = 'QS'; break;
  1880. case 'hellshare': aElm.innerHTML = 'HS'; break;
  1881. case 'uloz.to': aElm.innerHTML = 'UT'; break;
  1882. case 'multishare': aElm.innerHTML = 'MS'; break;
  1883. case 'hellspy': aElm.innerHTML = 'hs'; break;
  1884. case 'share-rapid': aElm.innerHTML = 'SR'; break;
  1885. case 'czshare': aElm.innerHTML = 'CS'; break;
  1886. default: aElm.innerHTML = 'xx';
  1887.  
  1888. }
  1889.  
  1890. aElm.href = innerLink;
  1891. aElm.className = 'container_link';
  1892.  
  1893. mlLink.parentNode.appendChild(aElm);
  1894. cLinksTotal++;
  1895. }
  1896. }
  1897.  
  1898. mlLink.parentNode.appendChild(document.createTextNode("|")); //blocks delimiter
  1899.  
  1900. }
  1901. }
  1902.  
  1903. cMultiloadProcessed++;
  1904. if (cMultiloadTotal == cMultiloadProcessed) //start check when all ml links have been processed
  1905. {
  1906. if (Do_not_linkify_DL_links)
  1907. {
  1908. delinkifySnapshot(mlSnapshot);
  1909. }
  1910. startBulkCheck('container_link');
  1911. start('container_link');
  1912. }
  1913. }
  1914. });
  1915. }
  1916.  
  1917.  
  1918. if (GM_getValue("Check_mirrorcreator_dot_com_links", false))
  1919. {
  1920. var mcRegex = 'mirrorcreator\\.com/files/(\\w+)';
  1921. var mcXpath = "//a[contains(@href,'mirrorcreator.com/files')]";
  1922. var mcShortHostNames =
  1923. '?? 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';
  1924. // 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
  1925. //?????? depositfiles sendspace load.to ul.to storage.to uploadbox x7.to fileserve ?????? duckload filehook filepost jumbofiles glumbouploads
  1926. // zshare ?????? 2shared uploading ugotfile extabit oron eyvx uploadstation putlocker
  1927. // megaupload badongo megashare gamefront ifile ?????? letitbit ?????? ?????? filejungle megashares
  1928. // easy-share ?????? netload zippyshare ?????? filesonic turbobit enterupload ?????? filekeen wupload crocko fileflyer
  1929.  
  1930. linkify(mcRegex);
  1931.  
  1932. var mcSnapshot = document.evaluate(mcXpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  1933. var mcCount = mcSnapshot.snapshotLength;
  1934.  
  1935. cMirrorcreatorComTotal = mcCount;
  1936.  
  1937. if (mcCount > 0)
  1938. {
  1939. mcShortHostNames = mcShortHostNames.split(' ');
  1940. mcIdx = mcCount;
  1941. while(mcIdx--)
  1942. processMirrorcreatorLink(mcSnapshot.snapshotItem(mcIdx));
  1943. }
  1944.  
  1945. }
  1946. //MIRRORCREATOR.CZ END
  1947.  
  1948.  
  1949. //mirrorcreator.com checking works like this:
  1950. //The base URL is http://www.mirrorcreator.com/files/XXXXXXXX/filename_links
  1951. //the actual list of mirrors is at http://www.mirrorcreator.com/status.php?uid=XXXXXXXX
  1952. //the list contains links in the form of (http://www.mirrorcreator.com)/redirect/XXXXXXXX/1
  1953. //these redirector links are extracted with mcLinkBlockRegex and the pages loaded
  1954. //they contain the actual filehost links, which are extracted with mcHostRegex and displayed in a container list
  1955. function processMirrorcreatorLink(mcLink)
  1956. {
  1957. var mcURL = mcLink.href.match(mcRegex);
  1958. if(!mcURL || !mcURL[1]) return;
  1959. mcURL = 'http://www.mirrorcreator.com/status.php?uid=' + mcURL[1]; //link correction
  1960. GM_xmlhttpRequest({
  1961. method: 'GET',
  1962. url: mcURL,
  1963. headers: {
  1964. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1965. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*'+'/*;q=0.8',
  1966. 'Referer': ""
  1967. },
  1968. onload: function(mcLinkResult) {
  1969. var mcLinkRes = mcLinkResult.responseText;
  1970.  
  1971. var mcLinkBlockRegex = /(\/redirect\/\w+\/(\d+))/gi;
  1972. var mcHostRegex = /<div id="redirectlink">.*?<a href="([^"]+)"/;
  1973.  
  1974. var mcRedirectors;
  1975. var mcHostURLs = [], mcRedirectorIDs = [], mcHostsFound = 0, mcHostsRetrieved = 0, mcHostsToProcess = 0;
  1976. var m = mcLinkRes.match(mcLinkBlockRegex);
  1977. if (m)
  1978. mcHostsFound = m.length;
  1979. else
  1980. { //no files inside container
  1981. processMirrorcreatorFoundHosts(mcLink, []);
  1982. return;
  1983. }
  1984.  
  1985. var mcRedirectorURL, idx, timedOut = false;
  1986.  
  1987. var gmxhrFunc = function(mcRedirectorURL){ //Tampermonkey doesn't know neither this.url or result.finalUrl
  1988. GM_xmlhttpRequest({
  1989. method: 'GET',
  1990. url: mcRedirectorURL,
  1991. headers: {
  1992. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1993. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*'+'/*;q=0.8',
  1994. 'Referer': ""
  1995. },
  1996. onload: function(mcHostResult) {
  1997. if (timedOut) return; //too late, the list is already displayed
  1998. var mcHostRes = mcHostResult.responseText;
  1999. var mcHost = mcHostRes.match(mcHostRegex);
  2000. idx = mcHostURLs.indexOf(mcRedirectorURL);
  2001. if (mcHost && idx!=-1)
  2002. {
  2003. mcHostURLs[idx] = mcHost[1].replace(/^\s+|\s+$/g, '');
  2004. mcHostsRetrieved++;
  2005. mcHostsToProcess++;
  2006. if (mcHostsFound == mcHostsRetrieved) //this is the last one!
  2007. {
  2008. processMirrorcreatorFoundHosts(mcLink, mcHostURLs, mcRedirectorIDs);
  2009. mcHostsToProcess = 0;
  2010. }
  2011. }
  2012. } //end of onload: function
  2013. }); //end of GM_xmlhttpRequest call
  2014. };//end of var gmxhrFunc
  2015.  
  2016. while (mcRedirectors = mcLinkBlockRegex.exec(mcLinkRes))
  2017. { //load individual redirector pages
  2018. mcRedirectorURL = 'http://www.mirrorcreator.com' + mcRedirectors[1];
  2019. mcHostURLs.push(mcRedirectorURL);
  2020. mcRedirectorIDs.push(mcRedirectors[2]);
  2021. gmxhrFunc(mcRedirectorURL);
  2022. } //end of while block
  2023.  
  2024. setTimeout(function(){ //in case the last page fails to load and call the function
  2025. timedOut = true;
  2026. if (mcHostsToProcess)
  2027. processMirrorcreatorFoundHosts(mcLink, mcHostURLs);
  2028. }, 60000);
  2029.  
  2030. } //end of onload function
  2031. }); //end of GM_xmlhttpRequest call
  2032. } //end of function processMirrorcreatorLink
  2033.  
  2034.  
  2035. function processMirrorcreatorFoundHosts(mcLink, mcHostURLs, mcRedirectorIDs)
  2036. {
  2037. var aEl, liEl, docFrag;
  2038. var hostName, mcRedirectorID, trimFilename = false;
  2039. var i = mcHostURLs.length;
  2040. if (i == 0)
  2041. {
  2042. trimFilename = true;
  2043. mcLink.parentNode.insertBefore(document.createTextNode(' | No files inside container'), mcLink.nextSibling);
  2044. }
  2045. else
  2046. {
  2047. if (Display_full_links_in_link_containers)
  2048. { //full view
  2049. var wrapperEl = document.createElement('span');
  2050. wrapperEl.style.display = 'block';
  2051. var ulistEl = document.createElement('ul');
  2052. ulistEl.className = 'container_list';
  2053. while (i--)
  2054. {
  2055. liEl = document.createElement('li');
  2056. aEl = document.createElement('a');
  2057. aEl.appendChild(document.createTextNode(mcHostURLs[i]));
  2058. aEl.href = mcHostURLs[i];
  2059. aEl.className = 'container_link';
  2060. liEl.appendChild(aEl);
  2061. ulistEl.appendChild(liEl);
  2062. }
  2063. wrapperEl.appendChild(ulistEl);
  2064. mcLink.parentNode.replaceChild(wrapperEl, mcLink);
  2065. wrapperEl.insertBefore(mcLink, wrapperEl.firstChild);
  2066. }
  2067. else
  2068. { //compact view
  2069. trimFilename = true;
  2070. docFrag = document.createDocumentFragment();
  2071. docFrag.appendChild(document.createTextNode(' |'));
  2072. while (i--)
  2073. {
  2074. mcRedirectorID = mcRedirectorIDs[i];
  2075. hostName = mcHostURLs[i];
  2076. if (mcRedirectorID > mcShortHostNames.length-1 || mcShortHostNames[mcRedirectorID] == '??')
  2077. hostName = hostName.replace(/https?:\/\/(?:www\.)?([-0-9a-z]+(?:\.[-0-9a-z]+)?)\.[a-z]+\/.*/i, '$1').toUpperCase();
  2078. else
  2079. hostName = mcShortHostNames[mcRedirectorID];
  2080. aEl = document.createElement('a');
  2081. aEl.href = mcHostURLs[i];
  2082. aEl.className = 'container_link';
  2083. aEl.appendChild(document.createTextNode(hostName));
  2084. docFrag.appendChild(aEl);
  2085. docFrag.appendChild(document.createTextNode('|'));
  2086. }
  2087. mcLink.parentNode.insertBefore(docFrag, mcLink.nextSibling);
  2088. } //end of else block
  2089. } //end of else block
  2090. mcLink.className = '';
  2091. if (trimFilename)
  2092. mcLink.firstChild.nodeValue = mcLink.firstChild.nodeValue.replace(/(https?:\/\/[^\/]+\/files\/\w+\/).+/, '$1...');
  2093. cMirrorcreatorComProcessed++;
  2094. if (cMirrorcreatorComProcessed == cMirrorcreatorComTotal) //start check when all mc links have been processed
  2095. {
  2096. if (Do_not_linkify_DL_links)
  2097. delinkifySnapshot(mcSnapshot);
  2098. startBulkCheck('container_link');
  2099. start('container_link');
  2100. }
  2101. } //end of function processMirrorcreatorFoundHosts
  2102.  
  2103. containers_processed = true;
  2104.  
  2105.  
  2106. function initRedirectors()
  2107. {
  2108. function addRedirector(linkRegex, xpathEx, redirType, innerLinkRegex)
  2109. {
  2110. var redirector = new Object();
  2111. redirector.linkRegex = linkRegex;
  2112. redirector.xpath = xpathEx; //xpath expression
  2113. redirector.cProcessed = 0; //processed links count
  2114. redirector.cTotal = 0; //total links count
  2115. redirector.type = redirType; //redirectorTypes enum
  2116. redirector.innerLinkRegex = innerLinkRegex; //innerLink, null if unused
  2117. redirectors.push(redirector);
  2118. }
  2119. if (GM_getValue("Check_safelinking_dot_net_links", false))
  2120. {
  2121. addRedirector(
  2122. 'safelinking\\.net\/d\/\\w+',
  2123. "//a[contains(@href,'safelinking.net/d/')]",
  2124. redirectorTypes.HTTP_302,
  2125. null);
  2126. }
  2127. if (GM_getValue("Check_linksafe_dot_me_links", false))
  2128. {
  2129. addRedirector(
  2130. 'linksafe\\.me\/d\/\\w+',
  2131. "//a[contains(@href,'linksafe.me/d/')]",
  2132. redirectorTypes.HTTP_302,
  2133. null);
  2134. }
  2135. if (GM_getValue("Check_linkto_dot_net_links", false))
  2136. {
  2137. addRedirector(
  2138. 'linkto\\.net\/\\?\\w+\\.\\d+',
  2139. "//a[contains(@href,'linkto.net/?')]",
  2140. redirectorTypes.INNER_LINK,
  2141. /<iframe id="iframe" name="iframe" src="(.+?)\s*" frameborder="0"/);
  2142. }
  2143. if (GM_getValue("Check_theloo_dot_katt_dot_it_links", false))
  2144. {
  2145. addRedirector(
  2146. '(?:the)?loo\\.katt\\.it\/\\w+',
  2147. "//a[contains(@href,'loo.katt.it/')]",
  2148. redirectorTypes.THELOO_KATT_IT,
  2149. /Proceed to URL - <a href="(.+?)">/);
  2150. }
  2151. if (GM_getValue("Check_madlink_dot_sk_links", false))
  2152. {
  2153. addRedirector(
  2154. 'madlink\\.sk\/\\w+',
  2155. "//a[contains(@href,'madlink.sk/')]",
  2156. redirectorTypes.INNER_LINK,
  2157. /name="url" value="(.+?)\s*"\/>/);
  2158. }
  2159. if (GM_getValue("Check_adf_dot_ly_links", false))
  2160. {
  2161. addRedirector(
  2162. '(?:adf\\.ly|[u9]\\.bb|[qj]\\.gs)\/\\w+',
  2163. "//a[contains(@href,'adf.ly/') (@href,'u.bb/') or contains(@href,'9.bb/') or contains(@href,'q.gs/') or contains(@href,'j.gs/')]",
  2164. redirectorTypes.ADF_LY,
  2165. null);
  2166. }
  2167. if (GM_getValue("Check_redi_dot_re_links", false))
  2168. {
  2169. addRedirector(
  2170. 'redi\\.re\/\\w+',
  2171. "//a[contains(@href,'redi.re/')]",
  2172. redirectorTypes.HTTP_302,
  2173. null);
  2174. }
  2175. if (GM_getValue("Check_bit_dot_ly_links", false))
  2176. {
  2177. addRedirector(
  2178. 'bit\\.ly\/\\w+',
  2179. "//a[contains(@href,'bit.ly/')]",
  2180. redirectorTypes.HTTP_302,
  2181. null);
  2182. }
  2183. }
  2184.  
  2185. }
  2186.  
  2187. var bulkHosts = new Array();
  2188. var bulkHostNames = new Array();
  2189. function initBulkCheck()
  2190. {
  2191. /////////////////////////////
  2192. // Inits filehost object
  2193. /////////////////////////////
  2194. // params :
  2195. // hostName -- [string] host name (multiple domains separated with coma)
  2196. // linkRegex -- [string] link regex
  2197. // xpath -- [string] xpath expression to detect the link objects with evaluate
  2198. // blockSize -- [integer] max. number of links sent in one request, 50 if null
  2199. // corrMatch -- [regex] link correction regex (match), applied prior to corrRepl
  2200. // corrReplWhat -- [regex] link correction regex (replace)
  2201. // corrReplWith -- [string]
  2202. // splitSeparator -- [string] POSTDATA links separator, "\r\n" if null
  2203. //
  2204. // apiUrl -- [string] web linkchecker or API URL
  2205. // postData -- [string] POSTDATA of xmlhttprequest
  2206. // resLinkRegex -- [regex]
  2207. // resLiveRegex -- [regex] matches substrings containing live links in the request response
  2208. // resDeadRegex -- [regex] matches substrings containing dead links in the request response
  2209. // resUnavaRegex -- [regex] matches substrings containing unava links in the request response
  2210. // func -- [function] bulkcheck handler, genBulkCheck if null
  2211. //
  2212. //////////////////////////////
  2213. function addHost(hostName, linkRegex, xpath, blockSize, corrMatch, corrReplWhat, corrReplWith, splitSeparator,
  2214. apiUrl, postData, resLinkRegex, resLiveRegex, resDeadRegex, resUnavaRegex, func)
  2215. {
  2216. var fileHost = new Object();
  2217.  
  2218. fileHost.linkRegex = linkRegex;
  2219. fileHost.linkRegexObject = new RegExp(linkRegex, "");
  2220. fileHost.xpath = xpath;
  2221. fileHost.cFound = 0; //found links counter
  2222. fileHost.links = new Array(); //found links
  2223. if (blockSize == null)
  2224. {
  2225. fileHost.blockSize = 50;
  2226. }
  2227. else
  2228. {
  2229. fileHost.blockSize = blockSize;
  2230. }
  2231. fileHost.corrMatch = corrMatch;
  2232. fileHost.corrReplWhat = corrReplWhat;
  2233. fileHost.corrReplWith = corrReplWith;
  2234. if (splitSeparator == null)
  2235. {
  2236. fileHost.splitSeparator = "\r\n";
  2237. }
  2238. else
  2239. {
  2240. fileHost.splitSeparator = splitSeparator;
  2241. }
  2242. fileHost.apiUrl = apiUrl;
  2243. fileHost.postData = postData;
  2244. fileHost.resLinkRegex = resLinkRegex;
  2245. fileHost.resLiveRegex = resLiveRegex;
  2246. fileHost.resDeadRegex = resDeadRegex;
  2247. fileHost.resUnavaRegex = resUnavaRegex;
  2248. if (func == null)
  2249. {
  2250. fileHost.func = genBulkCheck;
  2251. }
  2252. else
  2253. {
  2254. fileHost.func = func;
  2255. }
  2256. bulkHosts.push(fileHost);
  2257. var names = hostName.split(',');
  2258. var i = names.length;
  2259. while(i--)
  2260. {
  2261. bulkHostNames[names[i]] = fileHost;
  2262. }
  2263. }
  2264. var genType1 = [
  2265. "rodfile.com", "downloadani.me", //"migahost.com",
  2266. "rarefile.net",
  2267. "filesabc.com",
  2268. "180upload.com", "verzend.be",
  2269. // "movreel.com",
  2270. "4up.me",
  2271. "file4safe.com", "filemac.com", "4upfiles.com",
  2272. "idup.in", "novafile.com", "longfiles.com",
  2273. "bitupload.com",
  2274. "uploadbaz.com"
  2275. ];
  2276. var genType2 = [ "queenshare.com",
  2277. "hulkload.com",
  2278. "amonshare.com", //"edoc.com",
  2279. ];
  2280. //xfilesharing 1.0
  2281. function addGenericType1()
  2282. {
  2283. var i = genType1.length;
  2284. while(i--)
  2285. {
  2286. if (GM_getValue("Check_" + genType1[i].replace(/\./g, "_dot_").replace(/-/g, "_dash_") + "_links", false))
  2287. {
  2288. var regexSafe = genType1[i].replace(/\./g, "\\.").replace(/-/g, "\\-");
  2289. addHost(
  2290. genType1[i].match(/[\w-]+/)[0], //hostname
  2291. regexSafe + "\/\\w+", //linkregex
  2292. "//a[contains(@href,'" + genType1[i] + "/')]", //xpath
  2293. null, //blocksize
  2294. new RegExp("(http:\/\/(?:|www\\.)" + regexSafe + "\/\\w+)",""),//, //corrmatch
  2295. null, //corrreplwhat
  2296. null, //corrreplwith
  2297. null, //separator
  2298. "http://" + genType1[i] + "/checkfiles.html", //api url
  2299. "op=checkfiles&process=Check+URLs&list=", //postdata
  2300. new RegExp("(" + regexSafe + "\/\\w+)",""), //linkregex
  2301. new RegExp("green'>http:\/\/(?:|www\.)" + regexSafe + "\/\\w+","g"), //liveregex
  2302. new RegExp("red'>http:\/\/(?:|www\.)" + regexSafe + "\/\\w+","g"), //deadregex
  2303. new RegExp("orange'>http:\/\/(?:|www\.)" + regexSafe + "\/\\w+","g"), //unavaregex
  2304. null //function delegate
  2305. )
  2306. }
  2307. }
  2308. }
  2309. //xfilesharing 2.0
  2310. function addGenericType2()
  2311. {
  2312. var i = genType2.length;
  2313. while(i--)
  2314. {
  2315. if (GM_getValue("Check_" + genType2[i].replace(/\./g, "_dot_").replace(/-/g, "_dash_") + "_links", false))
  2316. {
  2317. var regexSafe = genType2[i].replace(/\./g, "\\.").replace(/-/g, "\\-");
  2318. addHost(
  2319. genType2[i].match(/[\w-]+/)[0], //hostname
  2320. regexSafe + "\/\\w+", //linkregex
  2321. "//a[contains(@href,'" + genType2[i] + "/')]", //xpath
  2322. null, //blocksize
  2323. new RegExp("(http:\/\/(?:|www\\.)" + regexSafe + "\/\\w+)",""),//, //corrmatch
  2324. null, //corrreplwhat
  2325. null, //corrreplwith
  2326. null, //separator
  2327. "http://www." + genType2[i] + "/?op=checkfiles", //api url
  2328. "op=checkfiles&process=Check+URLs&list=", //postdata
  2329. new RegExp("(" + regexSafe + "\/\\w+)",""), //linkregex
  2330. new RegExp(regexSafe + "\/\\w+.*?<\/td>\\s*<td style=\"color:green;\">","g"), //liveregex
  2331. new RegExp(regexSafe + "\/\\w+.*?<\/td>\\s*<td style=\"color:red;\">","g"), //deadregex
  2332. new RegExp(regexSafe + "\/\\w+.*?<\/td>\\s*<td style=\"color:orange;\">","g"), //unavaregex
  2333. null //function delegate
  2334. )
  2335. }
  2336. }
  2337. }
  2338. // TEMPLATE
  2339. // if (GM_getValue("Check__dot_com_links", false))
  2340. // {
  2341. // addHost(
  2342. // "", //hostname
  2343. // "", //linkregex
  2344. // "//a[contains(@href,'.com/')]", //xpath
  2345. // null, //blocksize
  2346. // null, //corrmatch
  2347. // null, //corrreplwhat
  2348. // null, //corrreplwith
  2349. // null, //separator
  2350. // "", //api url
  2351. // "", //postdata
  2352. // /()/, //linkregex
  2353. // //liveregex
  2354. // //deadregex
  2355. // //unavaregex
  2356. // null //function delegate
  2357. // )
  2358. // }
  2359. addGenericType1();
  2360. addGenericType2();
  2361.  
  2362. if (GM_getValue("Check_myvdrive_dot_com_links", false))
  2363. {
  2364. addHost(
  2365. "myvdrive,fileserving", //hostname
  2366. "(?:fileserving|myvdrive)\\.com\/files\/[\\w-]+", //linkregex
  2367. "//a[contains(@href,'fileserving.com/files') or contains(@href,'myvdrive.com/files')]", //xpath
  2368. null, //blocksize
  2369. null, //corrmatch
  2370. null, //corrreplwhat
  2371. null, //corrreplwith
  2372. null, //separator
  2373. "http://www.myvdrive.com/Public/linkchecker#", //api url
  2374. "links=", //postdata
  2375. /(?:fileserving|myvdrive)\.com\/(files\/\w+)/, //linkregex
  2376. /icon_file_check_valid"><\/span>\s*http:\/\/www\.(?:fileserving|myvdrive)\.com\/files\/[\w-]+/g, //liveregex
  2377. /icon_file_check_(?:removed|notvalid)"><\/span>\s*http:\/\/www\.(?:fileserving|myvdrive)\.com\/files\/[\w-]+/g, //deadregex
  2378. null, //unavaregex
  2379. null //function delegate
  2380. )
  2381. }
  2382. if (GM_getValue("Check_hackerbox_dot_org_links", false))
  2383. {
  2384. addHost(
  2385. "hackerbox", //hostname
  2386. "host\\.hackerbox\\.org\/\\w+", //linkregex
  2387. "//a[contains(@href,'host.hackerbox.org/')]", //xpath
  2388. null, //blocksize
  2389. /(http:\/\/host\.hackerbox\.org\/\w+)/, //corrmatch
  2390. null, //corrreplwhat
  2391. null, //corrreplwith
  2392. null, //separator
  2393. "http://host.hackerbox.org/checkfiles.html", //api url
  2394. "op=checkfiles&process=Check+URLs&list=", //postdata
  2395. /(host\.hackerbox\.org\/\w+)/, //linkregex
  2396. /green'>http:\/\/host\.hackerbox\.org\/\w+/g, //liveregex
  2397. /red'>http:\/\/host\.hackerbox\.org\/\w+/g, //deadregex
  2398. /orange'>http:\/\/host\.hackerbox\.org\/\w+/g, //unavaregex
  2399. null //function delegate
  2400. )
  2401. }
  2402. if (GM_getValue("Check_hellshare_dot_com_links", false))
  2403. {
  2404. addHost(
  2405. "hellshare", //hostname
  2406. "(?:|download\\.(?:cz\\.|en\\.|sk\\.|)|www\\.)hellshare\\.(?:com|sk|cz|pl|hu|COM|SK|CZ|PL|HU)\/[\\w-\\.]+\/(?:[\\w-\\.]+\/|)\\d{5,}", //linkregex
  2407. "//a[contains(@href,'hellshare.')]", //xpath
  2408. 48, //blocksize
  2409. null, //corrmatch
  2410. null, //corrreplwhat
  2411. null, //corrreplwith
  2412. null, //separator
  2413. null, //api url
  2414. null, //postdata
  2415. null, //linkregex
  2416. null, //liveregex
  2417. null, //deadregex
  2418. null, //unavaregex
  2419. hellshareBulkCheck //function delegate
  2420. )
  2421. }
  2422. if (GM_getValue("Check_ncrypt_dot_in_links", false))
  2423. {
  2424. addHost(
  2425. "ncrypt", //hostname
  2426. "ncrypt\\.in\/folder\\-\\w+", //linkregex
  2427. "//a[contains(@href,'ncrypt.in/folder')]", //xpath
  2428. 100000, //blocksize
  2429. null, //corrmatch
  2430. null, //corrreplwhat
  2431. null, //corrreplwith
  2432. null, //separator
  2433. null,
  2434. null,
  2435. null,
  2436. null,
  2437. null,
  2438. null,
  2439. ncryptBulkCheck //function delegate
  2440. )
  2441. }
  2442. if (GM_getValue("Check_geupload_dot_com_links", false))
  2443. {
  2444. addHost(
  2445. "geupload,lenfile", //hostname
  2446. "(?:geupload\\.com|lenfile\\.com)\/\\w+", //linkregex
  2447. "//a[contains(@href,'geupload.com/') or contains(@href,'lenfile.com/')]", //xpath
  2448. null, //blocksize
  2449. null, //corrmatch
  2450. null, //corrreplwhat
  2451. null, //corrreplwith
  2452. "\n", //separator
  2453. 'http://geupload.com/?op=checkfiles',
  2454. 'op=checkfiles&process=Check+URLs&list=',
  2455. />http:\/\/(?:geupload|lenfile)\.com\/(\w+)/,
  2456. />http:\/\/(?:geupload|lenfile)\.com\/\w+(?:[^>]+>)<td style=\"color\:green/g,
  2457. />http:\/\/(?:geupload|lenfile)\.com\/\w+(?:[^>]+>)<td style=\"color\:red/g,
  2458. null,
  2459. null
  2460. )
  2461. }
  2462. if (GM_getValue("Check_uploadrocket_dot_net_links", false))
  2463. {
  2464. addHost(
  2465. "uploadrocket", //hostname
  2466. "(?:uploadrocket\\.net)\/\\w+", //linkregex
  2467. "//a[contains(@href,'uploadrocket.net/')]", //xpath
  2468. null, //blocksize
  2469. null, //corrmatch
  2470. null, //corrreplwhat
  2471. null, //corrreplwith
  2472. "\n", //separator
  2473. 'http://uploadrocket.net/?op=checkfiles',
  2474. 'op=checkfiles&process=Check+URLs&list=',
  2475. /uploadrocket.net\/(\w+)/,
  2476. />http:\/\/uploadrocket.net\/\w+(?:[^>]+>)<td style="color:green/g,
  2477. />http:\/\/uploadrocket.net\/\w+(?:[^>]+>)<td style="color:red/g,
  2478. null,
  2479. null //function delegate
  2480. )
  2481. }
  2482. if (GM_getValue("Check_k2s_dot_cc_links", false))
  2483. {
  2484. addHost(
  2485. "k2s,keep2s,keep2share",
  2486. "(?:(?:k2s\\.cc)|(?:keep2s\\.cc)|(?:keep2share\\.(?:cc|com)))\/file\/\\w+",
  2487. "//a[contains(@href,'k2s.cc/file/') or contains(@href,'keep2s.cc/file/') or contains(@href,'keep2share.cc/file/') or contains(@href,'keep2share.com/file/')]",
  2488. 100000, //blocksize
  2489. null, //corrmatch
  2490. null, //corrreplwhat
  2491. null, //corrreplwith
  2492. null, //separator
  2493. null,
  2494. null,
  2495. null,
  2496. null,
  2497. null,
  2498. null,
  2499. k2sBulkCheck //function delegate
  2500. )
  2501. }
  2502. if (GM_getValue("Check_fboom_dot_me_links", false))
  2503. {
  2504. addHost(
  2505. "fboom,fileboom",
  2506. "(?:(?:fboom\\.me)|(?:fileboom\\.me))\/file\/\\w+",
  2507. "//a[contains(@href,'fboom.me/file/') or contains(@href,'fileboom.me/file/')]",
  2508. 100000, //blocksize
  2509. null, //corrmatch
  2510. null, //corrreplwhat
  2511. null, //corrreplwith
  2512. null, //separator
  2513. null,
  2514. null,
  2515. null,
  2516. null,
  2517. null,
  2518. null,
  2519. fboomBulkCheck //function delegate
  2520. )
  2521. }
  2522. if (GM_getValue("Check_1fichier_dot_com_links", false))
  2523. {
  2524. addHost(
  2525. "1fichier,dl4free",
  2526. "(?:\\w{10}\\.(?:1fichier|dl4free)\\.com\/)|(?:(?:1fichier|dl4free)\\.com\/\\?\\w{10})|(?:www\\.)?\\w{6,}\\.1fichier\\.com",
  2527. "//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/?')]",
  2528. 100000, //blocksize
  2529. null, //corrmatch
  2530. null, //corrreplwhat
  2531. null, //corrreplwith
  2532. null, //separator
  2533. null,
  2534. null,
  2535. null,
  2536. null,
  2537. null,
  2538. null,
  2539. dl4free_1fichier_BulkCheck //function delegate
  2540. )
  2541. }
  2542. if (GM_getValue("Check_depositfiles_dot_com_links", false))
  2543. {
  2544. addHost(
  2545. "depositfiles,dfiles",
  2546. "(?:(?:depositfiles\\.(?:com|org|lt))|(?:dfiles\\.(?:ru|eu)))\/files\/|en/files\/\\w+",
  2547. "//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/')]",
  2548. 100000, //blocksize
  2549. null, //corrmatch
  2550. null, //corrreplwhat
  2551. null, //corrreplwith
  2552. null, //separator
  2553. null,
  2554. null,
  2555. null,
  2556. null,
  2557. null,
  2558. null,
  2559. depositfilesBulkCheck //function delegate
  2560. )
  2561. }
  2562. if (GM_getValue("Check_filesflash_dot_com_links", false))
  2563. {
  2564. addHost(
  2565. "filesflash", //hostname
  2566. "filesflash\\.com\/\\w+", //linkregex
  2567. "//a[contains(@href,'filesflash.com')]", //xpath
  2568. null, //blocksize
  2569. null, //corrmatch
  2570. /http:\/\//, //corrreplwhat
  2571. '', //corrreplwith
  2572. null, //separator
  2573. 'http://filesflash.com/checklinks.php',
  2574. 'submit=Go&links=',
  2575. /filesflash\.com\/(\w+)/,
  2576. /<td>filesflash\.com\/\w+<\/td>\s*<td>Available/g,
  2577. /<td>filesflash\.com\/\w+<\/td>\s*<td>(?:Invalid|Deleted|Expired|Banned)?<\/td>/g,
  2578. null,
  2579. null //function delegate
  2580. )
  2581. }
  2582. if (GM_getValue("Check_jumbofiles_dot_com_links", false))
  2583. {
  2584. addHost(
  2585. "jumbofiles", //hostname
  2586. "jumbofiles\\.com\/\\w+", //linkregex
  2587. "//a[contains(@href,'jumbofiles.com/')]", //xpath
  2588. null, //blocksize
  2589. /(http:\/\/(?:|www\.)jumbofiles\.com\/\w+)/, //corrmatch
  2590. null, //corrreplwhat
  2591. null, //corrreplwith
  2592. null, //separator
  2593. "http://jumbofiles.com/checkfiles.html", //api url
  2594. "op=checkfiles&process=Check+URLs&list=", //postdata
  2595. /(jumbofiles\.com\/\w+)/, //linkregex
  2596. /blue'>http:\/\/(?:|www\.)jumbofiles\.com\/\w+/g, //liveregex
  2597. /red'>http:\/\/(?:|www\.)jumbofiles\.com\/\w+/g, //deadregex
  2598. /orange'>http:\/\/(?:|www\.)jumbofiles\.com\/\w+/g, //unavaregex
  2599. null //function delegate
  2600. )
  2601. }
  2602. if (GM_getValue("Check_edisk_dot_cz_links", false))
  2603. {
  2604. addHost(
  2605. "edisk", //hostname
  2606. "(?:(?:muj|data)\\d*\\.|)edisk\\.(?:cz|sk|eu)\/(?:|(?:cz|sk|en|pl)\/)", //linkregex
  2607. "//a[contains(@href,'edisk.')]", //xpath
  2608. null, //blocksize
  2609. null, //corrmatch
  2610. /edisk\.\w{2}\/(?:|\w{2}\/)stahni/, //corrreplwhat
  2611. 'edisk.cz/stahni', //corrreplwith
  2612. null, //separator
  2613. 'http://www.edisk.cz/zkontrolovat-odkazy',
  2614. 'submitBtn=Zkontrolovat&checkFiles=',
  2615. /((?:download|stahn(?:i|out-soubor))\/\d+)/,
  2616. /"ano"\/>\s*<\/td>\s*<td>\s*http:\/\/.+/g,
  2617. /"ne"\/>\s*<\/td>\s*<td>\s*http:\/\/.+/g,
  2618. null,
  2619. null //function delegate
  2620. )
  2621. }
  2622. if (GM_getValue("Check_bezvadata_dot_cz_links", false))
  2623. {
  2624. GM_xmlhttpRequest( //age check skip
  2625. {
  2626. method: 'POST',
  2627. url: 'http://bezvadata.cz/vyhledavani/souhlas-zavadny-obsah',
  2628. headers: {
  2629. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  2630. 'Content-type': 'application/x-www-form-urlencoded',
  2631. 'Referer': ""
  2632. }
  2633. });
  2634. addHost(
  2635. "bezvadata", //hostname
  2636. "(?:beta\\.|)bezvadata\.cz\/stahnout\/\\d+\\w+", //linkregex
  2637. "//a[contains(@href,'bezvadata.cz')]", //xpath
  2638. null, //blocksize
  2639. null, //corrmatch
  2640. null, //corrreplwhat
  2641. null, //corrreplwith
  2642. null, //separator
  2643. 'http://bezvadata.cz/nastroje/kontrola-odkazu?do=kontrolaOdkazuForm-submit',
  2644. 'zkontrolovat=Zkontrolovat&odkazy=',
  2645. /(bezvadata\.cz\/stahnout\/\d+)/,
  2646. /bezvadata\.cz\/stahnout\/.+?<\/td>\s*<td style="background-color: #d9ffb2/g,
  2647. /bezvadata\.cz\/stahnout\/.+?<\/td>\s*<td style="background-color: #ffb2b2/g,
  2648. null,
  2649. null //function delegate
  2650. )
  2651. }
  2652. if (GM_getValue("Check_linkcrypt_dot_ws_links", false))
  2653. {
  2654. addHost(
  2655. "linkcrypt", //hostname
  2656. "linkcrypt\\.ws\/dir\/\\w+", //linkregex
  2657. "//a[contains(@href,'linkcrypt.ws/dir')]", //xpath
  2658. 100000, //blocksize
  2659. null, //corrmatch
  2660. null, //corrreplwhat
  2661. null, //corrreplwith
  2662. null, //separator
  2663. null,
  2664. null,
  2665. null,
  2666. null,
  2667. null,
  2668. null,
  2669. linkcryptBulkCheck //function delegate
  2670. )
  2671. }
  2672. if (GM_getValue("Check_linksave_dot_in_links", false))
  2673. {
  2674. addHost(
  2675. "linksave", //hostname
  2676. "linksave\\.in\/\\w+", //linkregex
  2677. "//a[contains(@href,'linksave.in')]", //xpath
  2678. 100000, //blocksize
  2679. null, //corrmatch
  2680. null, //corrreplwhat
  2681. null, //corrreplwith
  2682. null, //separator
  2683. null,
  2684. null,
  2685. null,
  2686. null,
  2687. null,
  2688. null,
  2689. linksaveBulkCheck //function delegate
  2690. )
  2691. }
  2692. if (GM_getValue("Check_videobb_dot_com_links", false))
  2693. {
  2694. addHost(
  2695. "videobb", //hostname
  2696. "videobb\\.com\/(?:video\/|watch_video\\.php\\?v=)\\w+", //linkregex
  2697. "//a[contains(@href,'videobb.com')]", //xpath
  2698. null, //blocksize
  2699. null, //corrmatch
  2700. /watch_video\.php\?v=/, //corrreplwhat
  2701. 'video/', //corrreplwith
  2702. null, //separator
  2703. 'http://www.videobb.com/link_checker.php',
  2704. 'links=',
  2705. /videobb\.com\/video\/(\w+)/,
  2706. /<td>http:\/\/(?:www\.|)videobb.com\/video\/\w+<\/td>\s+<td>.+?<\/td>\s+<td>\d+:\d+<\/td>\s+<td>Available/g,
  2707. /<td>http:\/\/(?:www\.|)videobb.com\/video\/\w+<\/td>\s+<td><\/td>\s+<td>N\/A<\/td>\s+<td>Not Available/g,
  2708. null,
  2709. null //function delegate
  2710. )
  2711. }
  2712. /* if (GM_getValue("Check_cramit_dot_in_links", false))
  2713. {
  2714. addHost(
  2715. "cramit,cramitin", //hostname
  2716. "cramit(?:\\.in|in\\.net)\/", //linkregex
  2717. "//a[contains(@href,'cramitin.net') or contains(@href,'cramit.in')]", //xpath
  2718. null, //blocksize
  2719. null, //corrmatch
  2720. null, //corrreplwhat
  2721. null, //corrreplwith
  2722. null, //separator
  2723. 'http://cramit.in/checkfiles.html',
  2724. 'op=checkfiles&process=CHECK+URL%27S&list=',
  2725. /(cramit(?:\.in|in\.net)\/\w+)/,
  2726. /green>http:\/\/(?:www\.|)cramit(?:\.in|in\.net)\/\w+/g,
  2727. /red'>http:\/\/(?:www\.|)cramit(?:\.in|in\.net)\/\w+/g,
  2728. /orange'>http:\/\/(?:www\.|)cramit(?:\.in|in\.net)\/\w+/g,
  2729. null //function delegate
  2730. )
  2731. }
  2732. if (GM_getValue("Check_turbobit_dot_net_links", false))
  2733. {
  2734. addHost(
  2735. "turbobit", //hostname
  2736. "turbobit\\.(?:net|pl)\/(?:\\w+\/|).+?\\.html", //linkregex
  2737. "//a[contains(@href,'turbobit.')]", //xpath
  2738. null, //blocksize
  2739. /(turbobit\.(?:net|pl)\/(?:\w+\/|).+?\.html)/, //corrmatch
  2740. null, //corrreplwhat
  2741. null, //corrreplwith
  2742. "\n", //separator
  2743. 'http://turbobit.net/linkchecker/csv',
  2744. 'links_to_check=',
  2745. /(turbobit\.(?:net|pl)\/\w+)/,
  2746. /turbobit\.(?:net|pl)\/.*?, 1/g,
  2747. /turbobit\.(?:net|pl)\/.*?, 0/g,
  2748. null,
  2749. null //function delegate
  2750. )
  2751. } */
  2752. if (GM_getValue("Check_filerio_dot_com_links", false))
  2753. {
  2754. addHost(
  2755. "filekeen,filerio", //hostname
  2756. //"file(?:keen|rio)\\.(?:com|in)\/\\w+\/.", //linkregex
  2757. "file(?:keen|rio)\\.(?:com|in)\/\\w+", //linkregex
  2758. "//a[contains(@href,'filekeen.com') or contains(@href,'filerio.')]", //xpath
  2759. null, //blocksize
  2760. null, //corrmatch
  2761. null, //corrreplwhat
  2762. null, //corrreplwith
  2763. null, //separator
  2764. 'http://filerio.in/checkfiles.html',
  2765. 'op=checkfiles&process=Check+URLs&list=',
  2766. /(file(?:keen|rio)\.(?:com|in)\/\w+)/,
  2767. /green'>http:\/\/(?:www\.|)file(?:keen|rio)\.(?:com|in)\/\w+/g,
  2768. /red'>http:\/\/(?:www\.|)file(?:keen|rio)\.(?:com|in)\/\w+/g,
  2769. /orange'>http:\/\/(?:www\.|)file(?:keen|rio)\.(?:com|in)\/\w+/g,
  2770. null //function delegate
  2771. )
  2772. }
  2773. if (GM_getValue("Check_share_dash_online_dot_biz_links", false))
  2774. {
  2775. addHost(
  2776. "share-online,egoshare", //hostname
  2777. "(?:share-online\\.biz|egoshare\\.com)\/(?:dl\/|download\\.php\\?id=)", //linkregex
  2778. "//a[contains(@href,'share-online.biz') or contains(@href,'egoshare.com')]", //xpath
  2779. null, //blocksize
  2780. /http:\/\/(?:www\.)?(?:share-online\.biz|egoshare\.com)\/d(?:l\/|ownload\.php\?id=)(\w+)/, //corrmatch
  2781. null, //corrreplwhat
  2782. null, //corrreplwith
  2783. "\n", //separator
  2784. 'http://api.share-online.biz/linkcheck.php',
  2785. 'links=',
  2786. /(\w+);(?:OK|NOTFOUND|DELETED)/,
  2787. /\w+;OK/g,
  2788. /\w+;(?:NOTFOUND|DELETED)/g,
  2789. null,
  2790. null //function delegate
  2791. )
  2792. }
  2793. /* if (GM_getValue("Check_quickshare_dot_cz_links", false))
  2794. {
  2795. addHost(
  2796. "quickshare", //hostname
  2797. "quickshare\\.cz\/stahnout-soubor\/\\d+", //linkregex
  2798. "//a[contains(@href,'quickshare.cz')]", //xpath
  2799. null, //blocksize
  2800. null, //corrmatch
  2801. null, //corrreplwhat
  2802. null, //corrreplwith
  2803. null, //separator
  2804. 'http://www.quickshare.cz/nastroje/link-checker',
  2805. 'linky=',
  2806. /quickshare\.cz\/stahnout-soubor\/(\d+(?::\w+)?)/,
  2807. /quickshare\.cz\/stahnout-soubor\/\d+(?::[\w\-.+$!*\/()\[\]\',~%?:@#&=\\]+)?\s*<\/a><\/td><td><img src="\/img\/ok\.gif/g,
  2808. /quickshare\.cz\/stahnout-soubor\/\d+(?::[\w\-.+$!*\/()\[\]\',~%?:@#&=\\]+)?\s*<\/td><td><img src="\/img\/nenalezeno\.gif/g,
  2809. null,
  2810. null //function delegate
  2811. )
  2812. } */
  2813. if (GM_getValue("Check_oboom_dot_com_links", false))
  2814. {
  2815. addHost(
  2816. "oboom", //hostname
  2817. "oboom\\.com\/#?\\w{8}", //linkregex
  2818. "//a[contains(@href,'oboom.com/')]", //xpath
  2819. null, //blocksize
  2820. /oboom\.com\/#?(\w{8})/, //corrmatch
  2821. null, //corrreplwhat
  2822. null, //corrreplwith
  2823. null, //separator
  2824. null,
  2825. null,
  2826. null,
  2827. null, //liveregex
  2828. null, //deadregex
  2829. null,
  2830. oboomBulk //function delegate
  2831. )
  2832. }
  2833. if (GM_getValue("Check_mega_dot_nz_links", false))
  2834. {
  2835. addHost(
  2836. "mega",
  2837. "mega(?:\\.co)?\\.nz\/#!\\w+",
  2838. "//a[contains(@href,'mega.co.nz/') or contains(@href,'mega.nz/')]",
  2839. 100000, //blocksize
  2840. null, //corrmatch
  2841. null, //corrreplwhat
  2842. null, //corrreplwith
  2843. null, //separator
  2844. null,
  2845. null,
  2846. null,
  2847. null,
  2848. null,
  2849. null,
  2850. megaBulkCheck //function delegate
  2851. )
  2852. }
  2853.  
  2854. //the same as GenType2, except api url is 'https://' instead of 'http://www.' and corrmatch is not??? needed
  2855.  
  2856. if (GM_getValue("Check_extabit_dot_com_links", false))
  2857. {
  2858. addHost(
  2859. "extabit", //hostname
  2860. "extabit\\.com\/file\/\\w+", //linkregex
  2861. "//a[contains(@href,'extabit.com')]", //xpath
  2862. null, //blocksize
  2863. null, //corrmatch
  2864. null, //corrreplwhat
  2865. null, //corrreplwith
  2866. "\n", //separator
  2867. "http://extabit.com/linkchecker.jsp", //api url
  2868. "url=", //postdata
  2869. /extabit\.com\/(file\/\w+)/, //linkregex
  2870. /extabit\.com\/file\/\w+\/[^<]+<\/a><\/td>\s*<td class="status"><span class="status_green">/g, //liveregex
  2871. /extabit\.com\/file\/\w+\/[^<]+<\/a><\/td>\s*<td class="status"><span class="status_red">/g, //deadregex
  2872. /extabit\.com\/file\/\w+\/[^<]+<\/a><\/td>\s*<td class="status"><span class="status_yellow">/g, //unavaregex
  2873. extabitBulkCheck //function delegate
  2874. )
  2875. }
  2876. if (GM_getValue("Check_junocloud_dot_me_links", false))
  2877. {
  2878. addHost(
  2879. "junocloud", //hostname
  2880. "junocloud\\.me\/\\w+", //linkregex
  2881. "//a[contains(@href,'junocloud.me')]", //xpath
  2882. null, //blocksize
  2883. null, //corrmatch
  2884. null, //corrreplwhat
  2885. null, //corrreplwith
  2886. "\n", //separator
  2887. "http://junocloud.me/checkfiles.html", //api url
  2888. "op=checkfiles&process=Check+URLs&list=", //postdata
  2889. /(junocloud\.me\/\w+)/, //linkregex
  2890. /<a href="http:\/\/junocloud\.me\/\w+[^<]+<\/a>\s*<span style="color: green/g, //liveregex
  2891. /<a href="http:\/\/junocloud\.me\/\w+[^<]+<\/a>\s*<span style="color: red/g, //deadregex
  2892. null, //unavaregex
  2893. null //function delegate
  2894. )
  2895. }
  2896. if (GM_getValue("Check_webshare_dot_cz_links", false))
  2897. {
  2898. addHost(
  2899. "webshare", //hostname
  2900. "webshare\.cz\/(?:(?:#/)?file/\\w+|\\w+-.*)", //linkregex
  2901. "//a[contains(@href,'webshare.cz')]", //xpath
  2902. 100000, //blocksize
  2903. null, //corrmatch
  2904. null, //corrreplwhat
  2905. null, //corrreplwith
  2906. null, //separator
  2907. null, //api url
  2908. null, //postdata
  2909. null, //linkregex
  2910. null, //liveregex
  2911. null, //deadregex
  2912. null, //unavaregex
  2913. webshareBulkCheck //function delegate
  2914. )
  2915. }
  2916. /////////////////////////////
  2917. // Common function delegate to send links to get checked by host linkchecker
  2918. /////////////////////////////
  2919. // If you define a new delegate, you may use following properties
  2920. // this.links [array] array of strings (link blocks). The links in each block separated with host.splitSeparator.
  2921. // this.apiUrl [string] API or web linkchecker URL
  2922. // this.postData [string] POSTDATA for POST request
  2923. // this.resLiveRegex [regex] matches live substrings in the request response
  2924. // this.resDeadRegex [regex] matches dead substrings in the request response
  2925. // this.resUnavaRegex [regex] matches unava substrings in the request response (the regex is often null!)
  2926. //
  2927. // this.resLinkRegex [regex] matches links further passed to DisplayTheCheckedLinks
  2928. //
  2929. // See the code below for standard bulkcheck handling reference.
  2930. //////////////////////////////
  2931. function genBulkCheck()
  2932. {
  2933. var blockIdx = this.links.length;
  2934. while (blockIdx--)
  2935. {
  2936. postRequest(this.apiUrl, this.postData, this.links[blockIdx],
  2937. this.resLinkRegex, this.resLiveRegex, this.resDeadRegex, this.resUnavaRegex);
  2938. }
  2939. function postRequest(api, postData, links, linkRegex, liveRegex, deadRegex, unavaRegex)
  2940. {
  2941. GM_xmlhttpRequest(
  2942. {
  2943. method: 'POST',
  2944. url: api,
  2945. headers: {
  2946. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  2947. 'Content-type': 'application/x-www-form-urlencoded',
  2948. 'Referer': api,
  2949. 'X-Requested-With': 'XMLHttpRequest'
  2950. },
  2951. data: postData + encodeURIComponent(links),
  2952. onload: function (result)
  2953. {
  2954. var res = result.responseText;
  2955. // GM_log(res);
  2956. var i;
  2957.  
  2958. var livelinks = res.match(liveRegex);
  2959. var deadlinks = res.match(deadRegex);
  2960. // GM_log(livelinks);
  2961. // GM_log(deadlinks);
  2962. if (livelinks != null)
  2963. {
  2964. i = livelinks.length - 1;
  2965. do
  2966. {
  2967. livelinks[i] = livelinks[i].match(linkRegex)[1];
  2968. }
  2969. while (i--);
  2970. DisplayTheCheckedLinks(livelinks, 'alive_link');
  2971. }
  2972.  
  2973. if (deadlinks != null)
  2974. {
  2975. i = deadlinks.length - 1;
  2976. do
  2977. {
  2978. deadlinks[i] = deadlinks[i].match(linkRegex)[1];
  2979. }
  2980. while (i--);
  2981. DisplayTheCheckedLinks(deadlinks, 'adead_link');
  2982. }
  2983.  
  2984. if (unavaRegex != null)
  2985. {
  2986. var unavalinks = res.match(unavaRegex);
  2987. if (unavalinks)
  2988. {
  2989. i = unavalinks.length - 1;
  2990. do
  2991. {
  2992. unavalinks[i] = unavalinks[i].match(linkRegex)[1];
  2993. }
  2994. while (i--);
  2995. DisplayTheCheckedLinks(unavalinks, 'unava_link');
  2996. }
  2997. }
  2998. }
  2999. });
  3000. }
  3001. }
  3002. //specialized bulkchecking handlers follow
  3003. function webshareBulkCheck()
  3004. {
  3005. var arr = this.links[0].split("\r\n");
  3006. var i = arr.length;
  3007. while(i--)
  3008. {
  3009. postRequest(arr[i]);
  3010. }
  3011. //function postRequest(api, postData, links, linkRegex, liveRegex, deadRegex, unavaRegex)
  3012. function postRequest(wsLink)
  3013. {
  3014. var id = wsLink.match(/webshare\.cz\/(?:(?:#\/)?file\/)?(\w+)/)[1];
  3015. GM_xmlhttpRequest(
  3016. {
  3017. method: 'POST',
  3018. url: "http://webshare.cz/api/file_info/",
  3019. headers: {
  3020. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  3021. 'Content-type': 'application/x-www-form-urlencoded',
  3022. 'Referer': "",
  3023. },
  3024. data: "wst=&ident=" + id,
  3025. onload: function (result)
  3026. {
  3027. var res = result.responseText;
  3028. if (res.match(/<name>.+?<\/name>/))
  3029. {
  3030. DisplayTheCheckedLinks([id], 'alive_link');
  3031. }
  3032. else
  3033. {
  3034. DisplayTheCheckedLinks([id], 'adead_link');
  3035. }
  3036. }
  3037. });
  3038. }
  3039. }
  3040. //like genBulkCheck, but extabit linkchecker only works when logged in. If not logged in, non-bulk checking has to be used.
  3041. //extabit also doesn't like requests in fast succession, so some delays are added.
  3042. function extabitBulkCheck()
  3043. {
  3044. var timeoutDelay = 0;
  3045. var blockIdx = this.links.length;
  3046. while (blockIdx--)
  3047. {
  3048. postRequest(this.apiUrl, this.postData, this.links[blockIdx],
  3049. this.resLinkRegex, this.resLiveRegex, this.resDeadRegex, this.resUnavaRegex);
  3050. }
  3051. function postRequest(api, postData, links, linkRegex, liveRegex, deadRegex, unavaRegex)
  3052. {
  3053. GM_xmlhttpRequest(
  3054. {
  3055. method: 'POST',
  3056. url: api,
  3057. headers: {
  3058. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  3059. 'Content-type': 'application/x-www-form-urlencoded',
  3060. 'Referer': api,
  3061. 'X-Requested-With': 'XMLHttpRequest'
  3062. },
  3063. data: postData + encodeURIComponent(links),
  3064. onload: function (result)
  3065. {
  3066. var res = result.responseText;
  3067. if (/id="registration_header"/.test(res)) //not logged in, have to use non-bulk
  3068. {
  3069. function geturlfunc(link, tryID) //basically the geturl function with some changes (compacted, displaythecheckedlinkS, multiple tries)
  3070. {
  3071. //GM_log(tryID + ': ' + link);
  3072. GM_xmlhttpRequest(
  3073. {
  3074. method: 'GET',
  3075. url: link,
  3076. 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': ""},
  3077. onload: function(result2)
  3078. {
  3079. var res2 = result2.responseText;
  3080. var res2Status = result.status;
  3081. if (/download-file-btn/.test(res2)) {DisplayTheCheckedLinks([link], 'alive_link'); return;}
  3082. if (/Search mirrors|id="mirrb"/.test(res2) || res2Status==404) {DisplayTheCheckedLinks([link], 'adead_link'); return;}
  3083. if (/currently unavailable|temporarily unavailable|disponible en estos momentos|vorläufig unerreichbar|Файл временно недоступен/.test(res2) || res2Status == 500 || res2Status == 503)
  3084. {
  3085. if (tryID < 7)
  3086. setTimeout(function(){geturlfunc(link,tryID+1)}, tryID * 1000 + (Math.random() * tryID * 2000));
  3087. else
  3088. {DisplayTheCheckedLinks([link], 'unava_link'); return;}
  3089. }
  3090. }
  3091. });
  3092. }
  3093. //split the hrefs and check them one by one
  3094. GM_log('Using slow extabit.com link checking. Log in to extabit to use fast bulk checking.');
  3095. links = links.split('\n');
  3096. var i = links.length;
  3097. while (i--)
  3098. {
  3099. if (links[i])
  3100. {
  3101. (function(i){setTimeout(function(){geturlfunc(links[i],1)}, timeoutDelay);})(i);
  3102. timeoutDelay += 500;
  3103. }
  3104. }
  3105. return;
  3106. }
  3107. var i;
  3108.  
  3109. var livelinks = res.match(liveRegex);
  3110. var deadlinks = res.match(deadRegex);
  3111. if (livelinks != null)
  3112. {
  3113. i = livelinks.length - 1;
  3114. do
  3115. {
  3116. livelinks[i] = livelinks[i].match(linkRegex)[1];
  3117. }
  3118. while (i--);
  3119. DisplayTheCheckedLinks(livelinks, 'alive_link');
  3120. }
  3121.  
  3122. if (deadlinks != null)
  3123. {
  3124. i = deadlinks.length - 1;
  3125. do
  3126. {
  3127. deadlinks[i] = deadlinks[i].match(linkRegex)[1];
  3128. }
  3129. while (i--);
  3130. DisplayTheCheckedLinks(deadlinks, 'adead_link');
  3131. }
  3132.  
  3133. if (unavaRegex != null)
  3134. {
  3135. var unavalinks = res.match(unavaRegex);
  3136. if (unavalinks)
  3137. {
  3138. i = unavalinks.length - 1;
  3139. do
  3140. {
  3141. unavalinks[i] = unavalinks[i].match(linkRegex)[1];
  3142. }
  3143. while (i--);
  3144. DisplayTheCheckedLinks(unavalinks, 'unava_link');
  3145. }
  3146. }
  3147. }
  3148. });
  3149. }
  3150. }
  3151. function k2sBulkCheck()
  3152. {
  3153. var arr = this.links[0].split("\r\n");
  3154. var i = arr.length;
  3155. c=0;
  3156. arrIDs=[];
  3157. while(i--)
  3158. {
  3159. id = arr[i].match(/\/file\/(\w+)/)[1];
  3160. k2salreadyexist=false;
  3161. for (j=0;j<arrIDs.length;j++)
  3162. {
  3163. if (arrIDs[j]==id)
  3164. {
  3165. k2salreadyexist=true;
  3166. break;
  3167. }
  3168. }
  3169. if (k2salreadyexist) continue;
  3170. arrIDs.push(id);
  3171. c++;
  3172. setTimeout(k2sRequest,c*500,arr[i]);
  3173. }
  3174. }
  3175. function k2sRequest(K2SLink)
  3176. {
  3177. var id = K2SLink.match(/\/file\/(\w+)/)[1];
  3178. K2SLink2='http://k2s.cc/file/'+id;
  3179. GM_xmlhttpRequest(
  3180. {
  3181. method: 'GET',
  3182. url: K2SLink,
  3183. headers: {
  3184. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  3185. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  3186. 'Referer': ''
  3187. },
  3188. onload: function (result)
  3189. {
  3190. var res = result.responseText;
  3191. 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'))
  3192. {
  3193. DisplayTheCheckedLinks([K2SLink], 'adead_link');
  3194. return;
  3195. }
  3196. if (res.match('method="post">Displaying'))
  3197. {
  3198. DisplayTheCheckedLinks([K2SLink], 'unava_link');
  3199. return;
  3200. }
  3201. if (res.match('Premium only'))
  3202. {
  3203. DisplayTheCheckedLinks([K2SLink], 'prem_link');
  3204. return;
  3205. }
  3206. if (res.match('View File|download-file-info|div class="name fontmyriadpro"|style="color: #9fb143;"'))
  3207. {
  3208. slow_id=new RegExp('<input type="hidden" name="slow_id" value="(\\w+)">');
  3209. slID=slow_id.exec(res)[1];
  3210. GM_xmlhttpRequest(
  3211. {
  3212. method: 'POST',
  3213. url: K2SLink2,
  3214. headers: {
  3215. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  3216. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  3217. 'Content-Type': 'application/x-www-form-urlencoded',
  3218. 'Referer': K2SLink
  3219. },
  3220. data: 'slow_id='+slID+'&yt0=',
  3221. onload: function (result)
  3222. {
  3223. var newres = result.responseText;
  3224. newoversizedtest=new RegExp("Free user can't download large files.");
  3225. if (newoversizedtest.test(newres))
  3226. {
  3227. DisplayTheCheckedLinks([K2SLink], 'prem_link');
  3228. return;
  3229. }
  3230. else
  3231. {
  3232. DisplayTheCheckedLinks([K2SLink], 'alive_link');
  3233. return;
  3234. }
  3235. DisplayTheCheckedLinks([K2SLink], 'unava_link');
  3236. return;
  3237. }
  3238. });
  3239. /////////////////////end additional check for oversized links
  3240. return;
  3241. }
  3242. DisplayTheCheckedLinks([K2SLink], 'unava_link');
  3243. return;
  3244. },
  3245. onerror: function ()
  3246. {
  3247. DisplayTheCheckedLinks([K2SLink], 'unava_link');
  3248. return;
  3249. }
  3250. });
  3251. }
  3252. function fboomBulkCheck()
  3253. {
  3254. var arr = this.links[0].split("\r\n");
  3255. var i = arr.length;
  3256. c=0;
  3257. arrIDs=[];
  3258. while(i--)
  3259. {
  3260. id = arr[i].match(/\/file\/(\w+)/)[1];
  3261. fbalreadyexist=false;
  3262. for (j=0;j<arrIDs.length;j++)
  3263. {
  3264. if (arrIDs[j]==id)
  3265. {
  3266. fbalreadyexist=true;
  3267. break;
  3268. }
  3269. }
  3270. if (fbalreadyexist) continue;
  3271. arrIDs.push(id);
  3272. c++;
  3273. setTimeout(fboomRequest,c*500,arr[i]);
  3274. }
  3275. }
  3276. function fboomRequest(FBoomLink)
  3277. {
  3278. var id = FBoomLink.match(/\/file\/(\w+)/)[1];
  3279. FBoomLink2='http://fboom.me/file/'+id;
  3280. GM_xmlhttpRequest(
  3281. {
  3282. method: 'GET',
  3283. url: FBoomLink,
  3284. headers: {
  3285. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  3286. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  3287. 'Referer': ''
  3288. },
  3289. onload: function (result)
  3290. {
  3291. var res = result.responseText;
  3292. if (res.match('no longer available|class="error-v1-title">404<|File not found or deleted|no longer available'))
  3293. {
  3294. DisplayTheCheckedLinks([FBoomLink], 'adead_link');
  3295. return;
  3296. }
  3297. if (res.match('method="post">Displaying'))
  3298. {
  3299. DisplayTheCheckedLinks([FBoomLink], 'unava_link');
  3300. return;
  3301. }
  3302. if (res.match('only for premium members'))
  3303. {
  3304. DisplayTheCheckedLinks([FBoomLink], 'prem_link');
  3305. return;
  3306. }
  3307. if (res.match('id="download-free" href="#"'))
  3308. {
  3309. slow_id=new RegExp('<a id="download-free" href="#" class="free-button btn-u" data-slow-id="(\\w+)">');
  3310. slID=slow_id.exec(res)[1];
  3311. GM_xmlhttpRequest(
  3312. {
  3313. method: 'POST',
  3314. url: FBoomLink2,
  3315. headers: {
  3316. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  3317. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  3318. 'Content-Type': 'application/x-www-form-urlencoded',
  3319. 'Referer': FBoomLink
  3320. },
  3321. data: 'slow_id='+slID,
  3322. onload: function (result)
  3323. {
  3324. var newres = result.responseText;
  3325. newoversizedtest=new RegExp("Free user can't download large files.|Downloading is not possible");
  3326. if (newoversizedtest.test(newres))
  3327. {
  3328. DisplayTheCheckedLinks([FBoomLink], 'prem_link');
  3329. return;
  3330. }
  3331. else
  3332. {
  3333. DisplayTheCheckedLinks([FBoomLink], 'alive_link');
  3334. return;
  3335. }
  3336. DisplayTheCheckedLinks([FBoomLink], 'unava_link');
  3337. return;
  3338. }
  3339. });
  3340. /////////////////////end additional check for oversized links
  3341. return;
  3342. }
  3343. DisplayTheCheckedLinks([FBoomLink], 'unava_link');
  3344. return;
  3345. },
  3346. onerror: function ()
  3347. {
  3348. DisplayTheCheckedLinks([FBoomLink], 'unava_link');
  3349. return;
  3350. }
  3351. });
  3352. }
  3353. function dl4free_1fichier_BulkCheck()
  3354. {
  3355. var arr = this.links[0].split("\r\n");
  3356. var i = arr.length;
  3357. while(i--)
  3358. {
  3359. CorrectRE = new RegExp('(https?):\\/\\/(?:www\\.)?(\\w{5,15})\\.1fichier\\.com');
  3360. arr[i]=arr[i].replace(CorrectRE, '$1://1fichier.com/?$2');
  3361. gethead_dl4free_1fichier(arr[i]);
  3362. }
  3363. }
  3364. function gethead_dl4free_1fichier(link)
  3365. {
  3366. var id = link.match(/(?:1fichier|dl4free)\.com(?:\/)?\?(\w{6,})/)[1];
  3367. GM_xmlhttpRequest(
  3368. {
  3369. method: 'HEAD',
  3370. url: link,
  3371. headers: {
  3372. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  3373. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  3374. 'Referer': ''
  3375. },
  3376. onload: function (result)
  3377. {
  3378. if (result.responseHeaders.match(/Content-Disposition: attachment; filename=/))//direct download
  3379. {
  3380. DisplayTheCheckedLinks([id], 'alive_link');
  3381. return;
  3382. }
  3383. else
  3384. {
  3385. getlink_dl4free_1fichier(link);
  3386. }
  3387. return;
  3388. },
  3389. onerror: function ()
  3390. {
  3391. DisplayTheCheckedLinks([id], 'unava_link');
  3392. }
  3393. });
  3394. }
  3395. function getlink_dl4free_1fichier(link)
  3396. {
  3397. var id = link.match(/(?:1fichier|dl4free)\.com(?:\/)?\?(\w{6,})/)[1];
  3398. GM_xmlhttpRequest(
  3399. {
  3400. method: 'GET',
  3401. url: link,
  3402. headers: {
  3403. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  3404. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  3405. 'Referer': ''
  3406. },
  3407. onload: function (result)
  3408. {
  3409. var res = result.responseText;
  3410. 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>');
  3411. if (deadRegex.test(res))
  3412. {
  3413. DisplayTheCheckedLinks([id], 'adead_link');
  3414. return;
  3415. }
  3416. premiumRegex=new RegExp('only for premium users');
  3417. if (premiumRegex.test(res))
  3418. {
  3419. DisplayTheCheckedLinks([id], 'prem_link');
  3420. return;
  3421. }
  3422. 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="');
  3423. if (liveRegex.test(res))
  3424. {
  3425. DisplayTheCheckedLinks([id], 'alive_link');
  3426. return;
  3427. }
  3428. DisplayTheCheckedLinks([id], 'unava_link');
  3429. },
  3430. onerror: function ()
  3431. {
  3432. DisplayTheCheckedLinks([id], 'unava_link');
  3433. }
  3434. });
  3435. }
  3436. function depositfilesBulkCheck()
  3437. {
  3438. var arr = this.links[0].split("\r\n");
  3439. var i = arr.length;
  3440. var seqno = Math.floor(Math.random()*1000000000);
  3441. while(i--)
  3442. {
  3443. DFpostRequest(arr[i]);
  3444. }
  3445. }
  3446. function DFpostRequest(DFLink)
  3447. {
  3448. DFLink=DFLink.replace('depositfiles.lt/','depositfiles.com/');
  3449. DFLink=DFLink.replace('depositfiles.org/','depositfiles.com/');
  3450. DFLink=DFLink.replace('dfiles.ru/','depositfiles.com/');
  3451. DFLink=DFLink.replace('dfiles.eu/','depositfiles.com/');
  3452. DFLink=DFLink.replace('depositfiles.com/en/','depositfiles.com/');
  3453. var id = DFLink.match(/depositfiles\.com\/files\/(\w+)/)[1];
  3454. GM_xmlhttpRequest(
  3455. {
  3456. method: "GET",
  3457. url: "http://depositfiles.com/api/get_download_info.php?id=" + id + "&format=json",
  3458. headers: {
  3459. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3460. 'Content-Type': 'application/x-www-form-urlencoded',
  3461. 'Referer': ""
  3462. },
  3463. onload: function (result)
  3464. {
  3465. var res = result.responseText;
  3466. if (res.match('(?:no_file|file_ban)'))
  3467. {
  3468. DisplayTheCheckedLinks([id], 'adead_link');
  3469. return;
  3470. }
  3471. if (res.match('"download_li(?:nk|mit)|password_check|file_storage"'))
  3472. {
  3473. DisplayTheCheckedLinks([id], 'alive_link');
  3474. return;
  3475. }
  3476. DisplayTheCheckedLinks([id], 'unava_link');
  3477. }
  3478. });
  3479. }
  3480.  
  3481. function megaBulkCheck()
  3482. {
  3483. var arr = this.links[0].split("\r\n");
  3484. var i = arr.length;
  3485. var seqno = Math.floor(Math.random()*1000000000);
  3486. while(i--)
  3487. {
  3488. postRequest(arr[i]);
  3489. }
  3490. function postRequest(megaLink)
  3491. {
  3492. megaLink=megaLink.replace('mega.nz/','mega.co.nz/');
  3493. var id = megaLink.match(/mega\.co\.nz\/#!(\w+)(?:!\w+)?/)[1];
  3494. GM_xmlhttpRequest(
  3495. {
  3496. method: "POST",
  3497. url: 'https://g.api.mega.co.nz/cs?id=' + seqno++,
  3498. data: '[{"a":"g","p":"' + id + '","ssl": "1"}]',
  3499. headers: {
  3500. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3501. 'Content-Type': 'application/xml',
  3502. 'Referer': "https://mega.co.nz/"
  3503. },
  3504. onload: function (result)
  3505. {
  3506. var res = $.parseJSON(result.responseText.match(/\[(.+?)\]/)[1]);
  3507. if ((typeof res == "number" && (res == -9 || res == -16 || res == -6)) || res.d)
  3508. {
  3509.  
  3510. DisplayTheCheckedLinks([id], 'adead_link');
  3511. }
  3512. if (res.at)
  3513. {
  3514. DisplayTheCheckedLinks([id], 'alive_link');
  3515. }
  3516. if (res.e == "ETEMPUNAVAIL")
  3517. {
  3518. DisplayTheCheckedLinks([id], 'unava_link');
  3519. }
  3520. }
  3521. });
  3522. }
  3523.  
  3524. }
  3525.  
  3526. function oboomBulk() {
  3527. var a = [], b = [], c = [];
  3528. var array = this.links;
  3529.  
  3530. GM_xmlhttpRequest({
  3531. method: 'GET',
  3532. url: 'https://www.oboom.com/1/guestsession',
  3533. headers: {
  3534. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  3535. 'Content-type': 'application/x-www-form-urlencoded',
  3536. 'Referer': 'https://www.oboom.com',
  3537. 'X-Requested-With': 'XMLHttpRequest'
  3538. },
  3539. onload: function(result) {
  3540. var blockIdx = array.length;
  3541. var token = JSON.parse(result.responseText)[1];
  3542. while (blockIdx--) {
  3543. startCheck(array[blockIdx].split('\r\n'), token);
  3544. }
  3545. }
  3546. });
  3547.  
  3548. function startCheck(links, token) {
  3549. GM_xmlhttpRequest({
  3550. method: 'POST',
  3551. url: "https://api.oboom.com/1/info",
  3552. headers: {
  3553. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  3554. 'Content-type': 'application/x-www-form-urlencoded',
  3555. 'Referer': 'https://www.oboom.com/',
  3556. 'X-Requested-With': 'XMLHttpRequest'
  3557. },
  3558. data: "token=" + token + "&items=" + links.join(","),
  3559. onload: function(result) {
  3560. var res = JSON.parse(result.responseText)[1];
  3561. var i = res.length, s;
  3562.  
  3563. while (i--) {
  3564. s = res[i].state;
  3565. if (s == 'online') a.push(res[i].id);
  3566. 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);
  3567. else c.push(res[i].id);
  3568. }
  3569.  
  3570. if (a.length > 0) DisplayTheCheckedLinks(a, 'alive_link');
  3571. if (b.length > 0) DisplayTheCheckedLinks(b, 'adead_link');
  3572. if (c.length > 0) DisplayTheCheckedLinks(c, 'unava_link');
  3573. }
  3574. });
  3575. }
  3576. }
  3577. function linksaveBulkCheck()
  3578. {
  3579. var arr = this.links[0].split("\r\n");
  3580. var i = arr.length;
  3581. while(i--)
  3582. {
  3583. postRequest(arr[i]);
  3584. }
  3585. function postRequest(lsLink)
  3586. {
  3587. GM_xmlhttpRequest(
  3588. {
  3589. method: "GET",
  3590. url: lsLink + '-t.jpg',
  3591. headers: {
  3592. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3593. 'Accept': 'text/xml',
  3594. 'Referer': ""
  3595. },
  3596. onload: function (result)
  3597. {
  3598. var imgLen = result.responseHeaders.match(/Content-Length: (\d+)/)[1];
  3599. if (imgLen == 965) //online
  3600. {
  3601. DisplayTheCheckedLinks([lsLink], 'alive_link');
  3602. }
  3603.  
  3604. if (imgLen == 972) //offline
  3605. {
  3606. DisplayTheCheckedLinks([lsLink], 'adead_link');
  3607. }
  3608. if (imgLen == 978) //unava
  3609. {
  3610. DisplayTheCheckedLinks([lsLink], 'unava_link');
  3611. }
  3612. }
  3613. });
  3614. }
  3615.  
  3616. }
  3617. function linkcryptBulkCheck()
  3618. {
  3619. var arr = this.links[0].split("\r\n");
  3620. var i = arr.length;
  3621. while(i--)
  3622. {
  3623. postRequest(arr[i]);
  3624. }
  3625. function postRequest(lcLink)
  3626. {
  3627. GM_xmlhttpRequest(
  3628. {
  3629. method: "GET",
  3630. url: 'http://linkcrypt.ws/api.html?api=status_V1&folderKey=' + lcLink.match(/dir\/(\w+)/)[1],
  3631. headers: {
  3632. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3633. 'Accept': 'text/xml',
  3634. 'Referer': ""
  3635. },
  3636. onload: function (result)
  3637. {
  3638. var res = result.responseText;
  3639. if (res.match(/<errorCode>1101|folderStatus>[23]/)) //Offline status
  3640. {
  3641. DisplayTheCheckedLinks([lcLink], 'adead_link');
  3642. return;
  3643. }
  3644. if (res.match(/folderStatus>1/)) //Online status
  3645. {
  3646. DisplayTheCheckedLinks([lcLink], 'alive_link');
  3647. }
  3648. else
  3649. {
  3650. DisplayTheCheckedLinks([lcLink], 'unava_link');
  3651. }
  3652. }
  3653. });
  3654. }
  3655. }
  3656.  
  3657. function megashareBulkCheck()
  3658. {
  3659. var arr = this.links[0].split("\r\n");
  3660. var i = arr.length;
  3661. while(i--)
  3662. {
  3663. postRequest(arr[i]);
  3664. }
  3665. function postRequest(msLink)
  3666. {
  3667. GM_xmlhttpRequest(
  3668. {
  3669. method: "GET",
  3670. url: msLink,
  3671. headers: {
  3672. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3673. 'Content-Type': 'application/x-www-form-urlencoded',
  3674. 'Referer': ""
  3675. },
  3676. onload: function (result)
  3677. {
  3678. var prZVal = result.responseText.match(/name="(\d+prZVal)" value="(\d+)">/);
  3679. var btn3Name = result.responseText.match(/src="images\/dwn-btn3\.gif" name="(.+?)"/);
  3680. if ((prZVal == null) || (btn3Name == null))
  3681. {
  3682. return;
  3683. }
  3684. GM_xmlhttpRequest(
  3685. {
  3686. method: "POST",
  3687. url: msLink,
  3688. headers: {
  3689. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3690. 'Content-Type': 'application/x-www-form-urlencoded',
  3691. 'Referer': ""
  3692. },
  3693. data: prZVal[1] + "=" + prZVal[2] + '&' + btn3Name[1] + '.x=1&' + btn3Name[1] + '.y=1',
  3694. onload: function (result)
  3695. {
  3696. var res = result.responseText;
  3697. if (res.match(/<div id="err">/))
  3698. {
  3699. DisplayTheCheckedLinks([msLink.match(/\.com(\/\d+)/)[1]], 'adead_link');
  3700. }
  3701. else
  3702. {
  3703. DisplayTheCheckedLinks([msLink.match(/\.com(\/\d+)/)[1]], 'alive_link');
  3704. }
  3705. }
  3706. });
  3707. }
  3708. });
  3709. }
  3710. }
  3711. function ncryptBulkCheck()
  3712. {
  3713. var arr = this.links[0].split("\r\n");
  3714. var i = arr.length;
  3715. while(i--)
  3716. {
  3717. postRequest(arr[i]);
  3718. }
  3719. function postRequest(ncryptLink)
  3720. {
  3721. GM_xmlhttpRequest(
  3722. {
  3723. method: "POST",
  3724. url: 'http://ncrypt.in/api_status.php',
  3725. headers: {
  3726. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3727. 'Content-Type': 'application/x-www-form-urlencoded',
  3728. 'Referer': ""
  3729. },
  3730. data: 'link=' + encodeURI(ncryptLink),
  3731. onload: function (result)
  3732. {
  3733. var foldStatus = result.responseText.match(/(?:offline|online);/);
  3734. switch(foldStatus + ""){
  3735. case "offline;": DisplayTheCheckedLinks([ncryptLink], 'adead_link'); break;
  3736. case "online;": DisplayTheCheckedLinks([ncryptLink], 'alive_link'); break;
  3737. default: DisplayTheCheckedLinks([ncryptLink], 'unava_link');
  3738. }
  3739. }
  3740. });
  3741. }
  3742. }
  3743. function hellshareBulkCheck()
  3744. {
  3745. var links = this.links;
  3746. GM_xmlhttpRequest(
  3747. {
  3748. method: "GET",
  3749. url: 'http://www.hellshare.com',
  3750. headers: {
  3751. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3752. 'Accept': 'text/xml',
  3753. 'Referer': ""
  3754. },
  3755. onload: function (result)
  3756. {
  3757. var domain = result.responseText.match(/param_rau = "www\.hellshare\.(\w+)"/)[1];
  3758.  
  3759. var loc = 'check=Zkontrolovat+dostupnost+soubor%C5%AF&links=';
  3760. if (domain == 'sk')
  3761. loc = 'check=Skontrolova%C5%A5&links=';
  3762. if (domain == 'com')
  3763. loc = 'check=Check+availability&links=';
  3764. if (domain == 'hu')
  3765. loc = 'check=Kontrol%C3%A1lj&links=';
  3766. if (domain == 'pl')
  3767. loc = 'check=Sprawd%C5%BC+dost%C4%99pno%C5%9B%C4%87+plik%C3%B3w&links=';
  3768.  
  3769. genBulkCheck.call({ links: links,
  3770. apiUrl: 'http://www.hellshare.' + domain + '/linkchecker?do=linkChecker-linkcheckerform-submit',
  3771. postData: loc,
  3772. resLinkRegex: /hellshare\.(?:cz|com|sk|hu|pl)\/(?:[\w-\.]+\/|)([\w-\.]+\/\d{5,})/,
  3773. 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,
  3774. resDeadRegex: /<span style="color:gray">.*?<\/span> - <strong>/g,
  3775. resUnavaRegex: null
  3776. });
  3777. }
  3778. });
  3779. }
  3780. /**
  3781. * Displays check result
  3782. * @param {Array} Array of links or link fragments.
  3783. * @param {String} Check result status -> ['alive_link'|'adead_link'|'unava_link']
  3784. */
  3785. function DisplayTheCheckedLinks(links, resultStatus)
  3786. {
  3787. //(a[href*=link_1], a[href*=link_2], ..., a[href*=link_n])
  3788. var $links = $('a[href*="' + links.join('"], a[href*="') + '"]');
  3789. if (Do_not_linkify_DL_links)
  3790. { //TODO into separate jQuery function
  3791. $links.replaceWith(function(){
  3792. return '<span href="' + this.href + '">' + $(this).text() + '</span>';
  3793. });
  3794. $links = $('span[href*="' + links.join('"], span[href*="') + '"]');
  3795. }
  3796. $links.removeClass().addClass(resultStatus);
  3797. $links.each(function() {
  3798. this.href = Ref_anonymize_service + $(this).attr("href");
  3799. });
  3800. switch(resultStatus)
  3801. {
  3802. case "alive_link": cLinksAlive += $links.length;
  3803. if (Display_tooltip_info) $links.mouseover(displayTooltipInfo);
  3804. break;
  3805. case "adead_link": cLinksDead += $links.length;
  3806. if (Display_tooltip_info) $links.mouseover(displayTooltipError);
  3807. break;
  3808. case "prem_link": cLinksprem += $links.length;
  3809. if (Display_tooltip_info) $links.mouseover(displayTooltipError);
  3810. break;
  3811. case "unava_link": cLinksUnava += $links.length; break;
  3812. default:
  3813. }
  3814. cLinksProcessed += $links.length;
  3815. }
  3816. }
  3817. // starts bulkchecking
  3818. //
  3819. // params
  3820. // filterId [string] restricts link detection with passed id attribute
  3821. function startBulkCheck(filterId)
  3822. {
  3823. var cHosts = bulkHosts.length;
  3824. if (cHosts == 0) //no filehostings selected
  3825. return;
  3826. // STEP 1 linkify the links
  3827. var linkifyRegex = '';
  3828. var hostIdx = cHosts;
  3829. while(hostIdx--)
  3830. {
  3831. linkifyRegex += bulkHosts[hostIdx].linkRegex + "|";
  3832. }
  3833. linkifyRegex = linkifyRegex.replace(/\|$/, '');
  3834. linkify(linkifyRegex);
  3835. //
  3836. //STEP 2 detect link objects
  3837. var xpathAll = '';
  3838. var hostIdx = cHosts;
  3839. while(hostIdx--)
  3840. {
  3841. xpathAll += bulkHosts[hostIdx].xpath + "|";
  3842. }
  3843. xpathAll = xpathAll.replace(/\]\|\/\/a\[/g, " or ");
  3844. xpathAll = xpathAll.replace(/\]\|/, ')]');
  3845. if (filterId != null) //insert id restriction in the xpath
  3846. {
  3847. xpathAll = xpathAll.replace(/\[/, "[@class='" + filterId + "' and (");
  3848. }
  3849. else
  3850. {
  3851. xpathAll = xpathAll.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  3852. }
  3853. var links = document.evaluate(xpathAll, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  3854. if (filterId == null)
  3855. {
  3856. cLinksTotal += links.snapshotLength;
  3857. }
  3858. //
  3859. //STEP 3 bind links with hostings
  3860. var linkIdx = links.snapshotLength;
  3861. var href = null;
  3862. if (linkIdx == 0) // no links found
  3863. return;
  3864. var name;
  3865. while (linkIdx--)
  3866. {
  3867. href = links.snapshotItem(linkIdx).href;
  3868. try // DO NOT REMOVE, filters crap that went through xpath detection
  3869. {
  3870. name = gimmeHostName(href);
  3871. if (href.match(bulkHostNames[name].linkRegexObject) != null)
  3872. bulkHostNames[name].links.push(href);
  3873. }
  3874. catch(e)
  3875. {
  3876.  
  3877. }
  3878. }
  3879. //
  3880. //STEP 4 process the links for each filehosting
  3881. var hostIdx = cHosts;
  3882. var host;
  3883. var m,n;
  3884. var arr;
  3885. while (hostIdx--)
  3886. {
  3887. host = bulkHosts[hostIdx];
  3888. arr = host.links;
  3889. if (arr.length == 0) //no links for this hosting, skip
  3890. {
  3891. continue;
  3892. }
  3893. //links match corrections
  3894. if (host.corrMatch != null)
  3895. {
  3896. var idx = arr.length;
  3897. while (idx--)
  3898. {
  3899. arr[idx] = arr[idx].match(host.corrMatch)[1];
  3900. }
  3901. }
  3902. //links replace corrections
  3903. if ((host.corrReplWhat != null) && (host.corrReplWith != null))
  3904. {
  3905. var idx = arr.length;
  3906. while (idx--)
  3907. {
  3908. arr[idx] = arr[idx].replace(host.corrReplWhat, host.corrReplWith);
  3909. }
  3910. }
  3911. m = arr.length;
  3912. n = host.blockSize;
  3913. if (m > n)
  3914. {
  3915. //insert block separators (RAND_STRING) into the array
  3916. for(var i = n; i < m; i += n + 1)
  3917. {
  3918. arr.splice(i, 0, RAND_STRING);
  3919. }
  3920. }
  3921.  
  3922. host.func.call({ links: arr.join(host.splitSeparator).split(RAND_STRING),
  3923. apiUrl: host.apiUrl,
  3924. postData: host.postData,
  3925. resLinkRegex: host.resLinkRegex,
  3926. resLiveRegex: host.resLiveRegex,
  3927. resDeadRegex: host.resDeadRegex,
  3928. resUnavaRegex: host.resUnavaRegex
  3929. });
  3930. //clean up
  3931. arr.length = 0;
  3932. }
  3933. //
  3934.  
  3935. function gimmeHostName(link)
  3936. {
  3937. return link.replace(/https?:\/\/.*?http(s)?:\/\//, "http$1://").match(/https?:\/\/(?:www\.|[\w\.])*?([\w-]+)\.(?:co\.uk|co\.nz|\w+)\//)[1];
  3938. }
  3939. }
  3940. function checkLinks(filterId)
  3941. {
  3942. startBulkCheck(filterId);
  3943. start(filterId);
  3944. }
  3945.  
  3946. /**
  3947. * Initialises progress box including event binding and CSS
  3948. */
  3949. function initProgressBox()
  3950. {
  3951. if ($("#warlc-progressbox").length > 0)
  3952. return;
  3953. //progressbox css change size and color of progress box
  3954. GM_addStyle("#warlc-progressbox {position:fixed; background:DimGray;" + Progress_box_background_color +
  3955. "; opacity:" + (Progress_box_opacity / 100) +
  3956. "; bottom:" + Progress_box_pos_bottom +
  3957. "px; right:" + Progress_box_pos_right +
  3958. "px; padding:5px; font-size:20px; font-weight:bold; cursor:default;}\
  3959. \
  3960. .warlc-progressbar {text-align:center; color: DimGray; height:2px; margin-bottom:2px;}\
  3961. \
  3962. .warlc-progressitem {}\
  3963. \
  3964. .alive {color:#00FF7F; " + Live_links_color +
  3965. "; background:transparent url(" + alive_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;} .dead {color:" + Dead_links_color +
  3966. "; background:transparent url(" + adead_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;} .unava {color: " + Temp_unavailable_links_color +
  3967. "; background:transparent url(" + unava_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;} .processing {color:Black; " + Container_links_color +
  3968. "; background:transparent url(" + processing_link_gif + ") no-repeat scroll 100% 50%;padding-right:15px;} .prem {color:" + Premium_links_color +
  3969. "; background:transparent url(" + prem_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;}"
  3970. );
  3971. //
  3972. $('body').append(' <div id="warlc-progressbox">\
  3973. <div class="warlc-progressbar"></div>\
  3974. <span class="warlc-progressitem alive"></span> - \
  3975. <span class="warlc-progressitem dead"></span> - \
  3976. <span class="warlc-progressitem unava"></span> - \
  3977. <span class="warlc-progressitem prem"></span> - \
  3978. <span class="warlc-progressitem processing"></span>\
  3979. </div>');
  3980. $('#warlc-progressbox').hide().click(function(){
  3981. clearInterval(intervalId);
  3982. $(this).hide();
  3983. return false;
  3984. });
  3985. $(".warlc-progressbar").progressbar({complete: function(){
  3986. $(this).fadeOut();
  3987. clearInterval(intervalId); //stop refreshing the stats
  3988. }
  3989. })
  3990. .one('progressbarchange', function(){$('#warlc-progressbox').show();});
  3991. }
  3992. /**
  3993. * Updates progress data in progress box
  3994. */
  3995. function updateProgress()
  3996. {
  3997. $("#warlc-progressbox").attr('aria-valuenow', Math.round(((100 / cLinksTotal) * cLinksProcessed)));
  3998. if (cLinksTotal) // some links were detected on page
  3999. {
  4000. var percProgress = Math.round(((100 / cLinksTotal) * cLinksProcessed));
  4001. var $progressItems = $('#warlc-progressbox > .warlc-progressitem');
  4002. $(".warlc-progressbar").progressbar('option', 'value', percProgress);
  4003. if ((cLinksTotal - cLinksProcessed) == 0)
  4004. {
  4005. $progressItems.first().text(cLinksAlive)
  4006. .next().text(cLinksDead)
  4007. .next().text(cLinksUnava)
  4008. .next().text(cLinksprem)
  4009. .next().remove();
  4010. $('#warlc-progressbox').html($('#warlc-progressbox').html().substr(0,$('#warlc-progressbox').html().lastIndexOf(">")+1));
  4011. $('#warlc-progressbox div:first-child').remove();
  4012. }
  4013. else
  4014. {
  4015. $progressItems.first().text(cLinksAlive)
  4016. .next().text(cLinksDead)
  4017. .next().text(cLinksUnava)
  4018. .next().text(cLinksprem)
  4019. .next().text(cLinksTotal - cLinksProcessed);
  4020. }
  4021. }
  4022. }
  4023.  
  4024. function check_all_links()
  4025. {
  4026. add_WARLC_style();
  4027.  
  4028. if (Show_progress_stats)
  4029. {
  4030. initProgressBox();
  4031. intervalId = setInterval(function(){updateProgress();}, Progress_box_refresh_rate);
  4032. }
  4033.  
  4034. startBulkCheck(null);
  4035. start(null);
  4036.  
  4037. if (!containers_processed)
  4038. {
  4039. processContainers();
  4040. }
  4041. }
  4042.  
  4043. //Copies all found dead links to clipboard - right now for Scriptish only
  4044. function copy_dead_to_clipboard()
  4045. {
  4046. initClipBoardTools();
  4047.  
  4048. var deadlinksxpath = "//.[@class='adead_link']";
  4049.  
  4050. var foundlinks = document.evaluate(deadlinksxpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4051. var foundlinkstext = '';
  4052.  
  4053. var foundlinkIdx = foundlinks.snapshotLength;
  4054.  
  4055. while(foundlinkIdx--)
  4056. {
  4057. if (foundlinks.snapshotItem(foundlinkIdx).innerHTML != ' x')
  4058. foundlinkstext += foundlinks.snapshotItem(foundlinkIdx).innerHTML.replace(/\[\/hide:\w+\]/,"") + '\n';
  4059. }
  4060.  
  4061. unsafeWindow.copyToClipboard(foundlinkstext);
  4062. }
  4063.  
  4064. function toggle_autocheck()
  4065. {
  4066. var currentState = GM_getValue("Autocheck", false);
  4067. GM_setValue("Autocheck", !currentState);
  4068.  
  4069. if (currentState == true)
  4070. {
  4071. sendMessage('Autocheck disabled', 'red');
  4072. }
  4073. else
  4074. {
  4075. sendMessage('Autocheck enabled', 'SpringGreen');
  4076. }
  4077. }
  4078. function toggle_Enable_Anonymizer()
  4079. {
  4080. var currentState = GM_getValue("Enable_Anonymizer", false);
  4081. GM_setValue("Enable_Anonymizer", !currentState);
  4082.  
  4083. if (currentState == true)
  4084. {
  4085. GM_setValue("Ref_anonymize_service", "");
  4086. sendMessage('Anonymizer Disabled', 'red');
  4087. }
  4088. else
  4089. {
  4090. GM_setValue("Ref_anonymize_service", "http://hiderefer.com/?");
  4091. sendMessage('Anonymizer Enabled', 'SpringGreen');
  4092. }
  4093. }
  4094.  
  4095. function KeyDownHandler(event)
  4096. {
  4097. var kcode = (event.keyCode) ? event.keyCode : event.which;
  4098. if (event.ctrlKey && event.altKey)
  4099. {
  4100. switch(kcode)
  4101. {
  4102. case 65 : check_all_links(); break;
  4103. case 67 : configuration(); break;
  4104. case 68 : copy_dead_to_clipboard(); break;
  4105. case 87 : toggle_autocheck(); break;
  4106. case 90 : toggle_Enable_Anonymizer(); break;
  4107. }
  4108. }
  4109. }
  4110.  
  4111. //
  4112. //
  4113. // SCRIPT EXECUTION START POINT
  4114. //
  4115. //
  4116. // Safari specific GM_getResourceText override
  4117. if (navigator.userAgent.indexOf('Safari') != -1 && navigator.userAgent.indexOf('Chrome') == -1)
  4118. {
  4119. GM_getResourceText = function(res) {
  4120. var $cssText = GM_getValue("jquery_css", "");
  4121. if ($cssText == "")
  4122. {
  4123. GM_xmlhttpRequest(
  4124. {
  4125. method: 'GET',
  4126. url: 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css',
  4127. onload: function (result)
  4128. {
  4129. GM_setValue("jquery_css", result.responseText);
  4130. window.location.reload();
  4131. }
  4132. });
  4133. }
  4134. else
  4135. {
  4136. return $cssText;
  4137. }
  4138. }
  4139. }
  4140. var jQueryUICSS = GM_getResourceText("jQueryUICSS");
  4141. GM_addStyle(jQueryUICSS);
  4142. //init the stuff
  4143. setVariables();
  4144. initBulkCheck();
  4145. //init info boxes
  4146. messageBox.style.position = 'fixed';
  4147. messageBox.style.top = '20px';
  4148. messageBox.style.left = '10px';
  4149. messageBox.style.opacity = '0.85';
  4150. messageBox.style.background = 'DimGray';
  4151. messageBox.style.fontSize = '36px';
  4152. document.body.appendChild(messageBox);
  4153.  
  4154. //register GM menu commands & keyboard shortcut event handler
  4155. if (Keyboard_functions)
  4156. {
  4157. $(document).keydown(KeyDownHandler);
  4158. GM_registerMenuCommand("[W.A.R. Links Checker] Configuration (" + first_key_keycodename + "+" + second_key_keycodename + "+" + String.fromCharCode(CONFIGURATION_KEYCODE) + ")", configuration);
  4159. 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);
  4160. }
  4161. else
  4162. {
  4163. GM_registerMenuCommand("[W.A.R. Links Checker] Configuration", configuration);
  4164. GM_registerMenuCommand("[W.A.R. Links Checker] Check The Links In This Page", check_all_links);
  4165. }
  4166.  
  4167. //start linkchecking
  4168. if (Autocheck)
  4169. {
  4170. $(document).ready(check_all_links);
  4171. }
  4172.  
  4173. //
  4174. //
  4175. // SCRIPT EXECUTION END POINT
  4176. //
  4177. //
  4178.  
  4179. //shows configuration box
  4180. function configuration()
  4181. {
  4182.  
  4183. //prevent multiple creating of config window
  4184. if ($("#hideshow").length)
  4185. {
  4186. $("#hideshow").show();
  4187. return;
  4188. }
  4189.  
  4190. var configcss = '\
  4191. .popup_block .popup fieldset{\
  4192. padding: 1%;\
  4193. border-style: solid;\
  4194. border-width: 1px;\
  4195. border-color: gray;\
  4196. margin-bottom: 1px;\
  4197. }\
  4198. #h3hideshowtitle{\
  4199. font-size: 2em;\
  4200. }\
  4201. #h3hideshow{\
  4202. font-size: 1.5em;\
  4203. }\
  4204. #imghideshow {\
  4205. border: none;\
  4206. }\
  4207. #plusimage{\
  4208. display:inline;\
  4209. }\
  4210. #hideshow {\
  4211. position: fixed;\
  4212. width: 100%;\
  4213. height: 100%;\
  4214. top: 0;\
  4215. left: 0;\
  4216. font-size:12px;\
  4217. z-index:2147483645;\
  4218. text-align:left;\
  4219. }\
  4220. #fade {\
  4221. background: #000;\
  4222. position: fixed;\
  4223. width: 100%;\
  4224. height: 100%;\
  4225. opacity: .80;\
  4226. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";\
  4227. left: 0;\
  4228. z-index: 10;\
  4229. }\
  4230. .popup_block {\
  4231. font-family:verdana;\
  4232. color:black;\
  4233. background: #ddd;\
  4234. padding: 10px 20px;\
  4235. border: 2px solid DarkOrange;\
  4236. float: left;\
  4237. width: 700px;\
  4238. position: absolute;\
  4239. top: 7%;\
  4240. left: 50%;\
  4241. bottom: 7%;\
  4242. margin: 0 0 0 -350px;\
  4243. -moz-border-radius:10px;\
  4244. z-index: 100;\
  4245. \
  4246. }\
  4247. .popup_block .popup {\
  4248. float: left;\
  4249. width: 100%;\
  4250. background: #fff;\
  4251. margin: 10px 0;\
  4252. padding: 0px 0 0px;\
  4253. border-left: 1px solid #bbb;\
  4254. border-top: 1px solid #bbb;\
  4255. border-right: 1px solid #bbb;\
  4256. }\
  4257. #h3hideshow{\
  4258. margin: 1px 0 0px;\
  4259. padding: 1px 10px;\
  4260. border-bottom: 1px solid #bbb;\
  4261. font-size: 1.5em;\
  4262. font-weight: normal;\
  4263. cursor:pointer;\
  4264. background:#DDDDDD none repeat scroll 0 0;\
  4265. }\
  4266. #h3hideshow:hover{\
  4267. background:#C0BEBE none repeat scroll 0 0;\
  4268. }\
  4269. #h3hideshowtitle{\
  4270. margin: 2px 0 0px;\
  4271. padding: 7px 10px;\
  4272. border-bottom: 1px solid #bbb;\
  4273. font-size: 1.5em;\
  4274. font-weight: normal;\
  4275. }\
  4276. .popup_block .popup a {\
  4277. color:DarkSkyBlue;\
  4278. text-decoration:none;\
  4279. }\
  4280. .popup p {\
  4281. padding: 1px 10px;\
  4282. margin: 0px 0;\
  4283. -x-system-font:none;\
  4284. font-family:verdana,geneva,lucida,"lucida grande",arial,helvetica,sans-serif;\
  4285. font-size:10pt;\
  4286. font-size-adjust:none;\
  4287. font-stretch:normal;\
  4288. font-style:normal;\
  4289. font-variant:normal;\
  4290. font-weight:normal;\
  4291. line-height:normal;\
  4292. }\
  4293. #sites {\
  4294. padding: 1px 10px;\
  4295. margin: 0px 0;display:inline-block;width:16em;\
  4296. }\
  4297. #dev_ver {\
  4298. color: #00FF00;\
  4299. background: Black;\
  4300. text-align: right;\
  4301. }\
  4302. #sites_suspended {\
  4303. padding: 1px 10px;\
  4304. margin: 0px 0;display:inline-block;width:16em;\
  4305. text-decoration: line-through;\
  4306. }\
  4307. .popup img.cntrl {\
  4308. position: absolute;\
  4309. right: -15px;\
  4310. top: -15px;\
  4311. }\
  4312. #bulk {\
  4313. font-size:8pt;\
  4314. color:orange;\
  4315. padding: 1px 10px;\
  4316. margin: 0px 0;\
  4317. display:inline-block;\
  4318. width:100px;\
  4319. }\
  4320. #note {\
  4321. font-size:7pt;\
  4322. color:gray;\
  4323. padding: 1px 10px;\
  4324. margin: 0px 0;display:inline-block;\
  4325. min-width:100px;\
  4326. }\
  4327. #rednote {\
  4328. font-size:7pt;\
  4329. color:red;\
  4330. padding: 1px 10px;\
  4331. margin: 0px 0;display:inline-block;\
  4332. }\
  4333. #configinfo {\
  4334. font-size:8pt;\
  4335. color:gray;\
  4336. padding: 1px 10px;\
  4337. margin: 0px 0;display:inline-block;width:60em;\
  4338. }\
  4339. #refAnonymizer, #inputColorLive, #inputColorprem, #hostSearchBox2, #hostSearchBox, #inputColorDead, #inputColorTemp, #inputColorCont, #selectAllButton, #selectNoneButton, #invertButton, #selectAllButton2, #selectNoneButton2, #invertButton2 {\
  4340. color:black;\
  4341. border-style: solid;\
  4342. border-width: 1px;\
  4343. border-color: gray;\
  4344. }\
  4345. #h3hideshowcontent {\
  4346. min-height:220px;\
  4347. max-height:220px;\
  4348. overflow:auto;\
  4349. display: none;\
  4350. padding: 10px 10px;\
  4351. }\
  4352. #specinfo{\
  4353. font-size:14px;\
  4354. }\
  4355. .warlc-ui-tab {\
  4356. height:300px;\
  4357. overflow:auto;\
  4358. }\
  4359. #warlcsitelist2, #warlcsitelist1 {\
  4360. height:220px;\
  4361. border-top: 1px solid #ddd;\
  4362. padding-top: 5px;\
  4363. overflow:auto;\
  4364. }\
  4365. input:hover+label {\
  4366. background:#F1F77C;\
  4367. font-size:110%;\
  4368. }\
  4369. ';
  4370.  
  4371. GM_addStyle(configcss);
  4372.  
  4373. var customRulesRefHTML =
  4374. '\
  4375. <br>\
  4376. A custom rule consists of <b>commands</b>. A command must be on its own line and in this form:<br>\
  4377. <b>@keyword</b> <i>parameter</i>\
  4378. <br><br>\
  4379. 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. \
  4380. <br><br>\
  4381. 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.\
  4382. 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.\
  4383. 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.\
  4384. 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,\
  4385. but all commands until the next valid @customrule are ignored.<br><br>\
  4386. Available forms and types:\
  4387. <ul>\
  4388. <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.\
  4389. <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.\
  4390. <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.\
  4391. <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.\
  4392. </ul>\
  4393. Other available commands:<br>\
  4394. (Note: There can be more than 1 (up to 10) of these commands per rule. In that case, any of them will work.)\
  4395. <ul>\
  4396. <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.\
  4397. It can also specify multiple (up to 10) Top Level Domains (.com, .net etc.)<br>\
  4398. <ul>examples:<br>\
  4399. <li>good: <i>filehost.com/download/</i><br>\
  4400. <li>good: <i>download.filehost.net/?d=</i><br>\
  4401. <li>good: <i>filehost. com net co.uk /</i> - multiple TLDs (note the spaces before, between and after TLDs)<br>\
  4402. <li>ok: <i>filehost.com/</i> - works, but will also find links like filehost.com/login etc. Sometimes it\'s unavoidable though.<br>\
  4403. <li>bad: <i>d8523.filehost.com/</i> - d8523 probably is not constant<br>\
  4404. <li>bad: <i>filehost.com/3bfiq5d1</i> - 3bfiq5d1 probably is not constant<br>\
  4405. <li>bad: <i>filehost.com</i> - no slash<br>\
  4406. </ul>\
  4407. \
  4408. <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.\
  4409. 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 \
  4410. &lt;div&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;p&gt; even if there are new lines, tabulators etc.\
  4411. <li><b>@deadmatch</b> <i>pattern</i> - ignored for OBSOLETE, required for others. (For HEADERS some servers return 404 Error \
  4412. 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.)\
  4413. Two spaces again match any whitespace.\
  4414. <li><b>@unavamatch</b> <i>pattern</i> - optional, ignored for OBSOLETE and HEADERS. If found, the link is deemed temporarily unavailable.\
  4415. Two spaces again match any whitespace.\
  4416. <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. \
  4417. <li><b>@deadlink</b> <i>url</i> - optional. Example dead link.\
  4418. </ul>\
  4419. \
  4420. ';
  4421.  
  4422. //close image and css taken from = http://www.sohtanaka.com/web-design/examples/css-popup icon_close.png;
  4423. var configurationinnerHTML =
  4424. '<div id="fade"></div>\
  4425. <div class="popup_block">\
  4426. <div class="popup">\
  4427. <a href="#"><img id="imghideshow" title="Close" class="cntrl" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAfCAYAAAD0ma06AAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAY1SURBVHjapFZbbFRVFN0zd6Yz08dMoUNf9EGxUItJK62I4AOJEYiQoqE+0OgHCiqG+PgQozH6ofyIJiYEMRqNJpggHySlrRM+hCAtajAUaGgEi9BBSilMO0PnfWeOa597bjt9AEVvsubOPWefs/br7H0sQgj6P4/FY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o2HI2+8/HB/8AVAHlQCfQCvz7chOIBTzS1FocNEx1VSNjHmFWS9jvC6mk11QWAbePhl4K/JWa1fbSypU2uSsI8ZgnEyG2wE9igb/Fa7f9MHGTQuANdbcGLzyFV2smiukr7Siw4WqGvZhlqznxhX7cTzmXayA234c33lqFcjneIqZfxX1TJr+t4dWtcUGXgusNgaPLwvQpgJjHcK8EPOAM6J7+vblEfK0fZ9RoqwAnpTnznsN/2jOkuvOUNvmpXmMTrrQuoJWGj36bAugAMhSo2cnsgUil2fb5LRHi1/jRGlJHc5zenaV7p0PyRB7XkR7vfa4IlZtT69fbVKywyafh8HODHN+WfhH4FnD2alN1B7AdOAcMeT29HfiZJ5oZ3sHrgAeBvcCANzBsHu7Ohe2/AwDnNnxcIIMIUgAAAABJRU5ErkJggg=="></img>&nbsp;W.A.R. Links Checker Customized Premium Link version Configuration</div>\
  4429. <div id="warlc-conf-tabs">\
  4430. <ul>\
  4431. <li><a href="#tabs-1">Filehostings</a></li>\
  4432. <li><a href="#tabs-2">Containers</a></li>\
  4433. <li><a href="#tabs-5">Custom rules</a></li>\
  4434. <li><a href="#tabs-3">Settings</a></li>\
  4435. <li><a href="#tabs-4">About</a></li>\
  4436. </ul>\
  4437. <div id="tabs-1" class="warlc-ui-tab">\
  4438. <div class="warlc-ui-buttonset">\
  4439. <input type="button" class="warlc-ui-select-all" value="Select All">\
  4440. <input type="button" class="warlc-ui-select-none" value="Select None">\
  4441. <input type="button" class="warlc-ui-select-invert" value="Invert">\
  4442. </div><br>\
  4443. <div>Search: <input type="textbox" id="hostSearchBox" value=""></div><br>\
  4444. <div id="warlcsitelist1"><span>Empty</span></div>\
  4445. </div>\
  4446. <div id="tabs-2" class="warlc-ui-tab">\
  4447. <div class="warlc-ui-buttonset">\
  4448. <input type="button" class="warlc-ui-select-all" value="Select All">\
  4449. <input type="button" class="warlc-ui-select-none" value="Select None">\
  4450. <input type="button" class="warlc-ui-select-invert" value="Invert">\
  4451. </div><br>\
  4452. <div>Search: <input type="textbox" id="hostSearchBox2" value=""></div><br>\
  4453. <div id="warlcsitelist2"><span>Empty</span></div>\
  4454. </div>\
  4455. <div id="tabs-5" class="warlc-ui-tab">\
  4456. <div class="warlcsettings">\
  4457. <fieldset><input type="checkbox" id="Custom_rules"> Enable custom rules <div id="bulk">EXPERIMENTAL</div></fieldset>\
  4458. <br>\
  4459. <div>Edit custom rules: \
  4460. <a href="#" id="showCustomRulesReference">(<b>Click here to show/hide the reference</b>)</a>\
  4461. <div id="customRulesReference" style="display:none;">'
  4462. + customRulesRefHTML + '\
  4463. </div>\
  4464. <textarea style="width:100%;height:200px;" id="Custom_rules_text"></textarea>\
  4465. </div>\
  4466. </div>\
  4467. </div>\
  4468. <div id="tabs-3" class="warlc-ui-tab">\
  4469. <div class="warlcsettings">\
  4470. <fieldset>\
  4471. <p><input type="checkbox" id="Keyboard_functions"> Enable keyboard shortcuts</p>\
  4472. <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>\
  4473. </fieldset>\
  4474. <fieldset>\
  4475. <p><input type="checkbox" id="Color_DL_links"> Color DL links</p>\
  4476. <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>\
  4477. <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>\
  4478. <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>\
  4479. <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>\
  4480. <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>\
  4481. <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>\
  4482. <p><input type="checkbox" id="Show_line_through_in_dead_links"> Show line through in dead links</p>\
  4483. <p><input type="checkbox" id="Show_black_background_in_DL_links"> Show black background in DL links</p>\
  4484. <p><input type="checkbox" id="Do_not_linkify_DL_links"> Do NOT linkify DL links</p>\
  4485. <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>\
  4486. <p><input type="checkbox" id="Display_full_links_in_link_containers"> Display full links in link containers</p><br>\
  4487. <fieldset>\
  4488. <p><input type="radio" name="warlciconset" value="0"> No icons</p>\
  4489. <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>\
  4490. <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>\
  4491. <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>\
  4492. </fieldset>\
  4493. </fieldset>\
  4494. <fieldset>\
  4495. <div id="sites"><input type="checkbox" id="Autocheck"> Autocheck</div><br><div id="configinfo">Script starts check automatically.</div><br>\
  4496. </fieldset>\
  4497. <fieldset>\
  4498. <div id="sites"><input type="checkbox" id="Show_progress_stats"> Show progress stats</div><br>\
  4499. </fieldset>\
  4500. <fieldset>\
  4501. <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>\
  4502. </fieldset>\
  4503. <fieldset>\
  4504. <p><input type="checkbox" id="Enable_Anonymizer"> Enable Anonymizer</div><div id="bulk">EXPERIMENTAL Note: Checkbox does not work use CTRL+ALT+Z.</p>\
  4505. <div id="sites"><label for="refAnonymizer">Refererer anonymizing service</label><input type="text" id="refAnonymizer" value="' + Ref_anonymize_service + '"></div>\
  4506. </fieldset>\
  4507. </div>\
  4508. </div>\
  4509. <div id="tabs-4" class="warlc-ui-tab">\
  4510. <p><b>Author:</b> <a href="http://www.warlc.5gbfree.com/viewtopic.php?f=12&t=12">mental</a></p>\
  4511. <br />\
  4512. <p><b>Currently supported:</b><br>\
  4513. Filehostings: ' + allHostNames.length + '<br />\
  4514. Containers: ' + allContainerNames.length + '<br />\
  4515. Obsolete sites: ' + allObsoleteNames.length + '<br /></p>\
  4516. <br />\
  4517. <p><b>Based on:</b><br>\
  4518. <a href="http://userscripts-mirror.org/scripts/show/125631.html">W.A.R. Links Checker - Dev</a></p>\
  4519. <br />\
  4520. <p><b>Uses:</b></p>\
  4521. <p>adam_3\'s <a href="http://userscripts-mirror.org/scripts/show/2254">Linkify ting</a> (modified)</p>\
  4522. <p><a href="http://jquery.com/">jQuery</a> JavaScript Library</p>\
  4523. <br />\
  4524. <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>\
  4525. </div>\
  4526. </div>\
  4527. </div>\
  4528. </div>';
  4529. $('body').append('<div id="hideshow">' + configurationinnerHTML + '</div>');
  4530. $("#warlc-conf-tabs").tabs({ fx: { opacity: 'toggle', duration: 'fast' } });
  4531. $("#imghideshow").click(function(event){$("#hideshow").hide(); event.preventDefault();});
  4532. var elmHostList = document.getElementById("warlcsitelist1");
  4533. var elmContainerList = document.getElementById("warlcsitelist2");
  4534. buildSettings();
  4535. buildSitelist("", allHostNames, elmHostList);
  4536. buildSitelist("", allContainerNames, elmContainerList);
  4537. if (DEBUG_MODE)
  4538. {
  4539. //log all sites availability status
  4540. diagSites();
  4541. }
  4542. //handler for checkbox state change
  4543. function changeConfiguration(e)
  4544. {
  4545. var element = e.target;
  4546.  
  4547. if (element.type == 'checkbox')
  4548. {
  4549. if (element.checked == 1)
  4550. {
  4551. GM_setValue(element.id, true);
  4552. }
  4553. else
  4554. {
  4555. GM_setValue(element.id, false);
  4556. }
  4557.  
  4558. }
  4559. setVariables();
  4560. }
  4561.  
  4562. //Selects all filehosting checkboxes
  4563. function selectAll()
  4564. {
  4565. $(":checkbox:visible:not(:checked)").prop("checked",true)
  4566. .each(function(index, element){GM_setValue(this.id, true)});
  4567. }
  4568.  
  4569. //Deselects all filehosting checkboxes
  4570. function selectNone()
  4571. {
  4572. $(":checkbox:visible:checked").prop("checked",false)
  4573. .each(function(index, element){GM_setValue(this.id, false)});
  4574. }
  4575.  
  4576. //Inverts filehosting checkboxes selection
  4577. function selectInvert()
  4578. {
  4579. var $checked = $(":checkbox:visible:checked");
  4580. var $unchecked = $(":checkbox:visible:not(:checked)");
  4581. $unchecked.prop("checked",true)
  4582. .each(function(index, element){GM_setValue(this.id, true)});
  4583. $checked.prop("checked",false)
  4584. .each(function(index, element){GM_setValue(this.id, false)});
  4585. }
  4586. //toggles anonymizer on off
  4587. function Enable_Anonymizer()
  4588. {
  4589. var $checked = $(":checkbox:visible:checked");
  4590. var $unchecked = $(":checkbox:visible:not(:checked)");
  4591. $unchecked.prop("checked",true)
  4592. .each(function(index, element){GM_setValue(this.id, true)});
  4593. $checked.prop("checked",false)
  4594. .each(function(index, element){GM_setValue(this.id, false)});
  4595. }
  4596.  
  4597. function changeRefAnonymizer(){
  4598. GM_setValue("Ref_anonymize_service", $("#refAnonymizer").attr("value"));
  4599. }
  4600.  
  4601. //Sets live links color
  4602. function changeColorLive()
  4603. {
  4604. var inColorLive = document.getElementById("inputColorLive");
  4605. inColorLive.style.background = inColorLive.value;
  4606. GM_setValue("Live_links_color", inColorLive.value);
  4607. }
  4608.  
  4609. //Sets dead links color
  4610. function changeColorDead()
  4611. {
  4612. var inColorDead = document.getElementById("inputColorDead");
  4613. inColorDead.style.background = inColorDead.value;
  4614. GM_setValue("Dead_links_color", inColorDead.value);
  4615. }
  4616.  
  4617. //Sets temp. unavailable links color
  4618. function changeColorTemp()
  4619. {
  4620. var inColorTemp = document.getElementById("inputColorTemp");
  4621. inColorTemp.style.background = inColorTemp.value;
  4622. GM_setValue("Temp_unavailable_links_color", inColorTemp.value);
  4623. }
  4624.  
  4625. //Sets temp. unavailable links color
  4626. function changeColorCont()
  4627. {
  4628. var inColorCont = document.getElementById("inputColorCont");
  4629. inColorCont.style.background = inColorCont.value;
  4630. GM_setValue("Container_links_color", inColorCont.value);
  4631. }
  4632. //Sets premium. links color
  4633. function changeColorprem()
  4634. {
  4635. var inColorprem = document.getElementById("inputColorprem");
  4636. inColorprem.style.background = inColorprem.value;
  4637. GM_setValue("Premium_links_color", inColorprem.value);
  4638. }
  4639.  
  4640. //Diagnose sites for availability
  4641. function diagSites()
  4642. {
  4643. var boxes = document.getElementById("warlcsitelist1").getElementsByTagName("input");
  4644.  
  4645. for (var i = 0, n = boxes.length - 1; i < n; i++)
  4646. {
  4647. if (boxes[i].type == "checkbox")
  4648. {
  4649. checkAvailability(boxes[i]);
  4650. }
  4651. }
  4652.  
  4653. boxes = document.getElementById("warlcsitelist2").getElementsByTagName("input");
  4654.  
  4655. for (var i = 0, n = boxes.length - 1; i < n; i++)
  4656. {
  4657. if (boxes[i].type == "checkbox")
  4658. {
  4659. checkAvailability(boxes[i]);
  4660. }
  4661. }
  4662.  
  4663. function checkAvailability(cbElm)
  4664. {
  4665. var cb = cbElm;
  4666. GM_xmlhttpRequest(
  4667. {
  4668. method: 'HEAD',
  4669. url: 'http://' + cb.nextSibling.textContent.replace(' ', ''),
  4670. headers: {
  4671. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  4672. 'Accept': 'text/xml',
  4673. 'Referer': ""
  4674. },
  4675. onload: function (result)
  4676. {
  4677. if (result.status != 200)
  4678. {
  4679. GM_log(cb.nextSibling.textContent + ' --- status: [' + result.status + '] ' + result.statusText + ', final url: ' + result.finalUrl);
  4680. }
  4681. },
  4682. onerror: function (result)
  4683. {
  4684. if (result.status != 200)
  4685. {
  4686. GM_log(cb.nextSibling.textContent + ' --- status: [' + result.status + '] ' + result.statusText + ', final url: ' + result.finalUrl);
  4687. }
  4688. }
  4689. });
  4690. }
  4691. }
  4692. function buildSettings()
  4693. {
  4694. $(".warlcsettings :checkbox").each(function(){
  4695. $(this).prop("checked", GM_getValue($(this).attr("id")))
  4696. .click(function(e){
  4697. GM_setValue($(this).attr("id"), $(this).prop("checked"));
  4698. setVariables();
  4699. });
  4700. })
  4701. }
  4702. //Dynamic build of host list
  4703. //param search [string] searches for hostnames matching search substring
  4704. //param siteNames [array] array of site names
  4705. //param targetNode [DOM Node] where the list should be built
  4706. // first child node is replaced
  4707. function buildSitelist(search, siteNames, targetNode)
  4708. {
  4709. var searchRegex = new RegExp("\\|?([\\w\\.-]*" + search.replace(/\./g,"\\.").replace(/-/g, "\\-") + "[\\w\\.-]*)\\|?", "i");
  4710. var $targetNode = $(targetNode).empty();
  4711. var searchedSite = "";
  4712. $.each(siteNames, function(i, site){
  4713. if (searchedSite = site.match(searchRegex))
  4714. {
  4715. var baseSite = site.replace(/\|.+/, ""); //filehosting main domain
  4716. //ensuring backward compatibility with the rest of code, to be refactored later
  4717. var oldRSLCvalue = "Check_" + baseSite.replace(/\|.+/, "").replace(/\./g,"_dot_").replace(/-/g, "_dash_") + "_links";
  4718. //
  4719. $targetNode.append('<input type="checkbox" id="' + oldRSLCvalue +'" />\
  4720. <label for="' + oldRSLCvalue + '">' + searchedSite[1] + '</label>' +
  4721. ((searchedSite[1] != baseSite) ? ('<div id="note"> ( ~ ' + baseSite + ' )</div>') : (""))
  4722. );
  4723. $("#" + oldRSLCvalue).prop("checked", GM_getValue(oldRSLCvalue, false))
  4724. .change(changeConfiguration);
  4725. $targetNode.append('<br />');
  4726. }
  4727. });
  4728. $targetNode.append("<hr>");
  4729. //obsolete hosts checkbox
  4730. $targetNode.append('<input type="checkbox" id="Obsolete_file_hosts" /><label for="Obsolete_file_hosts">Obsolete file hosts</label>');
  4731. $("#Obsolete_file_hosts").prop("checked", GM_getValue("Obsolete_file_hosts", false))
  4732. .change(changeConfiguration);
  4733. $targetNode.append('<br />');
  4734. var foundName = "";
  4735. $.each(allObsoleteNames, function(i, site){
  4736. if (foundName = allObsoleteNames[i].match(searchRegex))
  4737. {
  4738. $targetNode.append('<div id="note">' + foundName[1] + '</div>');
  4739. }
  4740. })
  4741. }
  4742. var hostSearchBox = document.getElementById("hostSearchBox");
  4743. hostSearchBox.addEventListener('keyup', function(){buildSitelist(hostSearchBox.value, allHostNames, elmHostList);}, false);
  4744. var hostSearchBox2 = document.getElementById("hostSearchBox2");
  4745. hostSearchBox2.addEventListener('keyup', function(){buildSitelist(hostSearchBox2.value, allContainerNames, elmContainerList);}, false);
  4746. $(".warlc-ui-select-all").click(selectAll).button();
  4747. $(".warlc-ui-select-none").click(selectNone).button();
  4748. $(".warlc-ui-select-invert").click(selectInvert).button();
  4749. $(".warlc-ui-buttonset").buttonset();
  4750. var inColorLive = document.getElementById("inputColorLive");
  4751. inColorLive.addEventListener('keyup', changeColorLive, false);
  4752.  
  4753. var inColorDead = document.getElementById("inputColorDead");
  4754. inColorDead.addEventListener('keyup', changeColorDead, false);
  4755.  
  4756. var inColorTemp = document.getElementById("inputColorTemp");
  4757. inColorTemp.addEventListener('keyup', changeColorTemp, false);
  4758.  
  4759. var inColorCont = document.getElementById("inputColorCont");
  4760. inColorCont.addEventListener('keyup', changeColorCont, false);
  4761. var inColorprem = document.getElementById("inputColorprem");
  4762. inColorprem.addEventListener('keyup', changeColorprem, false);
  4763. $("#refAnonymizer").change(changeRefAnonymizer);
  4764. //buttons and edit boxes init end
  4765.  
  4766. //icon sets radio buttons
  4767. var radioButtons = document.getElementsByName("warlciconset");
  4768. radioButtons[Icon_set].checked = "checked";
  4769.  
  4770. radioButtons[0].addEventListener("change", updateIconSet);
  4771. radioButtons[1].addEventListener("change", updateIconSet);
  4772. radioButtons[2].addEventListener("change", updateIconSet);
  4773. radioButtons[3].addEventListener("change", updateIconSet);
  4774. function updateIconSet()
  4775. {
  4776. GM_setValue("Icon_set", this.value * 1);
  4777. }
  4778. //
  4779. $('#showCustomRulesReference').click(function(e){
  4780. e.preventDefault();
  4781. $('#customRulesReference').toggle();
  4782. });
  4783. $('#Custom_rules_text')
  4784. .val(Custom_rules_text)
  4785. .change(saveCustomRules);
  4786. function saveCustomRules(e)
  4787. {
  4788. var cr = parseCustomRules(this.value);
  4789. if (cr.info.length)
  4790. 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, ' '));
  4791. GM_setValue('Custom_rules_text', this.value);
  4792. GM_setValue('last_custom_rules_nag', ''+new Date().getTime()); //reset nag
  4793. }
  4794. }
  4795.  
  4796. //begin standard link checking algorithm
  4797. function start(filterId)
  4798. {
  4799. var doNotLinkify = Do_not_linkify_DL_links;
  4800.  
  4801. // USER SELECTED FILE HOSTS INITIALIZATION START
  4802. var http_file_hosts = new Array(); //standard hostings
  4803. var http_file_hosts_coded = new Array(); //hostings which has to be decoded to obtain real checkable link
  4804. var http_file_hosts_obsolete = new Array(); //dead hostings
  4805. var http_file_hosts_headers_only = new Array(); //hostings with direct download, must be handled via headers only
  4806.  
  4807. initFileHosts();
  4808. initFileHostsHeadersOnly();
  4809. initFileHostsCustom(); //CustomRules
  4810. // USER SELECTED FILE HOSTS INITIALIZATION END
  4811.  
  4812. // LINKIFICATION START
  4813. var totalxpath = '';
  4814. var totalxpathcoded = '';
  4815. var totalxpathobsolete = '';
  4816. var totalxpathheadersonly = '';
  4817. var totalourls = '';
  4818.  
  4819. var filehostLen = http_file_hosts.length;
  4820. var filehostCodedLen = http_file_hosts_coded.length;
  4821. var filehostObsoleteLen = http_file_hosts_obsolete.length;
  4822. var filehostHeadersOnlyLen = http_file_hosts_headers_only.length;
  4823.  
  4824. var filehostIdx = filehostLen;
  4825. var filehostCodedIdx = filehostCodedLen;
  4826. var filehostObsoleteIdx = filehostObsoleteLen;
  4827. var filehostHeadersOnlyIdx = filehostHeadersOnlyLen;
  4828.  
  4829. if ((filehostIdx == 0) && (filehostCodedIdx == 0) && (filehostHeadersOnlyIdx == 0) && (filehostObsoleteIdx == 0))
  4830. return;
  4831.  
  4832. while (filehostIdx--)
  4833. {
  4834. totalourls += http_file_hosts[filehostIdx][0] + '|';
  4835. totalxpath += http_file_hosts[filehostIdx][4] + '|';
  4836. }
  4837.  
  4838. while (filehostCodedIdx--)
  4839. {
  4840. totalourls += http_file_hosts_coded[filehostCodedIdx][0] + '|';
  4841. totalxpathcoded += http_file_hosts_coded[filehostCodedIdx][3] + '|';
  4842. }
  4843.  
  4844. while (filehostObsoleteIdx--)
  4845. {
  4846. totalourls += http_file_hosts_obsolete[filehostObsoleteIdx][0] + '|';
  4847. totalxpathobsolete += http_file_hosts_obsolete[filehostObsoleteIdx][1] + '|';
  4848. }
  4849.  
  4850. while (filehostHeadersOnlyIdx--)
  4851. {
  4852. totalourls += http_file_hosts_headers_only[filehostHeadersOnlyIdx][0] + '|';
  4853. totalxpathheadersonly += http_file_hosts_headers_only[filehostHeadersOnlyIdx][3] + '|';
  4854. }
  4855.  
  4856. totalourls = totalourls.replace(/\|$/g, "");
  4857. //TODO: further refactoring needed
  4858. totalxpath = totalxpath.replace(/\]\|\/\/a\[/g, " or ");
  4859. totalxpath = totalxpath.replace(/\]\|/, ')]');
  4860. totalxpathcoded = totalxpathcoded.replace(/\]\|\/\/a\[/g, " or ");
  4861. totalxpathcoded = totalxpathcoded.replace(/\]\|/, ')]');
  4862. totalxpathobsolete = totalxpathobsolete.replace(/\]\|\/\/a\[/g, " or ");
  4863. totalxpathobsolete = totalxpathobsolete.replace(/\]\|/, ')]');
  4864. totalxpathheadersonly = totalxpathheadersonly.replace(/\]\|\/\/a\[/g, " or ");
  4865. totalxpathheadersonly = totalxpathheadersonly.replace(/\]\|/, ')]');
  4866. if (filterId != null) //insert id restriction in the xpath
  4867. {
  4868. totalxpath = totalxpath.replace(/\[/g, "[@class='" + filterId + "' and (");
  4869. totalxpathcoded = totalxpathcoded.replace(/\[/g, "[@class='" + filterId + "' and (");
  4870. totalxpathobsolete = totalxpathobsolete.replace(/\[/g, "[@class='" + filterId + "' and (");
  4871. totalxpathheadersonly = totalxpathheadersonly.replace(/\[/g, "[@class='" + filterId + "' and (");
  4872. }
  4873. else
  4874. {
  4875. totalxpath = totalxpath.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4876. totalxpathcoded = totalxpathcoded.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4877. totalxpathobsolete = totalxpathobsolete.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4878. totalxpathheadersonly = totalxpathheadersonly.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4879. }
  4880. linkify(totalourls);
  4881. //LINKIFICATION END
  4882. //ENCRYPTED LINKS PROCESSING START
  4883. if (http_file_hosts_coded.length > 0)
  4884. {
  4885. var linksCoded = document.evaluate(totalxpathcoded, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4886.  
  4887. // decrypt coded links (redirects, link protectors etc.)
  4888. if (linksCoded.snapshotLength > 0)
  4889. {
  4890. var link;
  4891. var reallinkreg;
  4892. var reallinkcorrection;
  4893.  
  4894. if (filterId == null)
  4895. {
  4896. cLinksTotal += linksCoded.snapshotLength;
  4897. }
  4898.  
  4899. var y = linksCoded.snapshotLength - 1;
  4900. do
  4901. {
  4902. // linksCoded.snapshotItem(y).id = 'processing_link';
  4903. link = linksCoded.snapshotItem(y);
  4904. filehostIdx = filehostCodedLen;
  4905. while (filehostIdx--)
  4906. {
  4907. if (link.href.match(http_file_hosts_coded[filehostIdx][0]))
  4908. {
  4909. link.href = link.href.replace(/http:\/\/.*?(?:\?|=)http:\/\//, 'http://');
  4910. reallinkreg = http_file_hosts_coded[filehostIdx][1];
  4911. reallinkcorrection = http_file_hosts_coded[filehostIdx][2];
  4912.  
  4913. decurl(link, reallinkreg, reallinkcorrection);
  4914. break;
  4915. }
  4916. }
  4917. }
  4918. while (y--);
  4919. }
  4920. }
  4921. //ENCRYPTED LINKS PROCESSING END
  4922.  
  4923. //STANDARD LINKCHECKING START
  4924. if (http_file_hosts.length > 0)
  4925. {
  4926. var lianks = document.evaluate(totalxpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4927.  
  4928. if (filterId == null)
  4929. {
  4930. cLinksTotal += lianks.snapshotLength;
  4931. }
  4932.  
  4933. if (lianks.snapshotLength > 0)
  4934. {
  4935. var link;
  4936.  
  4937. var URL = "";
  4938. var name = "";
  4939. var isAliveRegex = "";
  4940. var isDeadRegex = "";
  4941. var isUnavaRegex = "";
  4942. var ispremRegex = "";
  4943. var tryLoop = false;
  4944.  
  4945. var y = lianks.snapshotLength;
  4946.  
  4947. while (y--)
  4948. {
  4949. link = lianks.snapshotItem(y);
  4950.  
  4951. filehostIdx = filehostLen;
  4952. while (filehostIdx--)
  4953. {
  4954. if (link.href.match(http_file_hosts[filehostIdx][0]))
  4955. {
  4956. link.href = link.href.replace(/http:\/\/.*?http:\/\//, 'http://'); //anonymizers
  4957. isAliveRegex = http_file_hosts[filehostIdx][1];
  4958. isDeadRegex = http_file_hosts[filehostIdx][2];
  4959. isUnavaRegex = http_file_hosts[filehostIdx][3];
  4960. ispremRegex = http_file_hosts[filehostIdx][6];
  4961. tryLoop = http_file_hosts[filehostIdx][5];
  4962.  
  4963. geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, tryLoop);
  4964.  
  4965. break;
  4966. }
  4967. }
  4968. }
  4969. }
  4970. }
  4971. //STANDARD LINKCHECKING END
  4972. //OBSOLETE FILE HOSTS PROCESSING START
  4973. if (filehostObsoleteLen > 0)
  4974. {
  4975. var obsoletelinks = document.evaluate(totalxpathobsolete, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4976.  
  4977. var obsoleteLink;
  4978.  
  4979. //check links
  4980. if (obsoletelinks.snapshotLength > 0)
  4981. {
  4982. var y = obsoletelinks.snapshotLength;
  4983.  
  4984. if (filterId == null)
  4985. {
  4986. cLinksTotal += y;
  4987. }
  4988.  
  4989. while (y--)
  4990. {
  4991. obsoleteLink = obsoletelinks.snapshotItem(y);
  4992.  
  4993. if (Display_tooltip_info)
  4994. {
  4995. obsoleteLink.warlc_error = 'Cause of error: <b>Obsolete filehosting.</b>';
  4996. }
  4997. displayTheCheckedLink(obsoleteLink, 'adead_link');
  4998. }
  4999. }
  5000. }
  5001. //OBSOLETE FILE HOSTS PROCESSING END
  5002.  
  5003. //DIRECT LINKCHECKING START
  5004. if (http_file_hosts_headers_only.length > 0)
  5005. {
  5006. var links = document.evaluate(totalxpathheadersonly, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  5007.  
  5008. //check links
  5009. if (links.snapshotLength > 0)
  5010. {
  5011. var link;
  5012. var isAliveRegex;
  5013. var isDeadRegex;
  5014. var ispremRegex;
  5015.  
  5016. var y = links.snapshotLength;
  5017.  
  5018.  
  5019. if (filterId == null)
  5020. {
  5021. cLinksTotal += y;
  5022. }
  5023.  
  5024. while (y--)
  5025. {
  5026. // links.snapshotItem(y).id = 'processing_link';
  5027. link = links.snapshotItem(y);
  5028. filehostIdx = filehostHeadersOnlyLen;
  5029. while (filehostIdx--)
  5030. {
  5031. if (link.href.match(http_file_hosts_headers_only[filehostIdx][0]))
  5032. {
  5033. link.href = link.href.replace(/http:\/\/.*?(?:\?|=)http:\/\//, 'http://');
  5034. isAliveRegex = http_file_hosts_headers_only[filehostIdx][1];
  5035. isDeadRegex = http_file_hosts_headers_only[filehostIdx][2];
  5036. ispremRegex = http_file_hosts_headers_only[filehostIdx][3];
  5037.  
  5038. geturlHeader(link, isAliveRegex, isDeadRegex, ispremRegex);
  5039.  
  5040. break;
  5041. }
  5042. }
  5043. }
  5044.  
  5045. }
  5046. }
  5047. //DIRECT LINKCHECKING END
  5048.  
  5049.  
  5050. //finds the real url on the page, replaces link.href with it and calls geturl
  5051. function decurl(link, reallinkreg, reallinkcorrection)
  5052. {
  5053.  
  5054. GM_xmlhttpRequest(
  5055. {
  5056. method: 'GET',
  5057. url: link.href,
  5058. headers: {
  5059. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  5060. 'Accept': 'text/xml',
  5061. 'Referer': ""
  5062. },
  5063. onload: function (result)
  5064. {
  5065. // cLinksProcessed++;
  5066.  
  5067. var reallink = result.responseText.match(reallinkreg)[0];
  5068. reallink = reallink.replace(new RegExp(reallinkcorrection, "g"), "");
  5069.  
  5070. link.href = reallink;
  5071.  
  5072. var i = http_file_hosts.length - 1;
  5073. do
  5074. {
  5075. if ((reallink.match(http_file_hosts[i][0])))
  5076. {
  5077. link.href = link.href.replace(/http:\/\/.*?\?http:\/\//, 'http://');
  5078. var isAliveRegex = http_file_hosts[i][1];
  5079. var isDeadRegex = http_file_hosts[i][2];
  5080. var isUnavaRegex = http_file_hosts[i][3];
  5081. var ispremRegex = http_file_hosts[i][4];
  5082.  
  5083. geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, 50);
  5084.  
  5085. break;
  5086. }
  5087. }
  5088. while (i--);
  5089. }
  5090. });
  5091. }
  5092.  
  5093. function randUA()
  5094. {
  5095. //TODO
  5096. }
  5097. //Processes link
  5098. //
  5099. // [string] link link URL
  5100. // [string] isAliveRegex alive link regex
  5101. // [string] isDeadRegex dead link regex
  5102. // [string] isUnavaRegex unavailable link regex
  5103. // [string] ispremRegex premium link regex
  5104. // [boolean] tryLoop repeats request until succeeded
  5105. function geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, tryLoop)
  5106. {
  5107. GM_xmlhttpRequest(
  5108. {
  5109. method: 'GET',
  5110. url: link.href,
  5111. headers: {
  5112. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  5113. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  5114. 'Referer': ""
  5115. },
  5116. onload: function (result)
  5117. {
  5118. var res = result.responseText;
  5119. if (result.responseHeaders.match(/Content-Disposition: attachment; filename=/))//direct download, simple version
  5120. {
  5121. displayTheCheckedLink(link, 'alive_link');
  5122. return;
  5123. }
  5124.  
  5125. if (res.match(isAliveRegex))
  5126. {
  5127. displayTheCheckedLink(link, 'alive_link');
  5128. return;
  5129. }
  5130.  
  5131. if (res.match(isDeadRegex))
  5132. {
  5133. displayTheCheckedLink(link, 'adead_link');
  5134. return;
  5135. }
  5136.  
  5137. if (isUnavaRegex && res.match(isUnavaRegex))
  5138. {
  5139. displayTheCheckedLink(link, 'unava_link');
  5140. return;
  5141. }
  5142. if (res.match(ispremRegex))
  5143. {
  5144. displayTheCheckedLink(link, 'prem_link');
  5145. return;
  5146. }
  5147.  
  5148. var resStatus = result.status;
  5149.  
  5150. if (resStatus == 404)
  5151. {
  5152. displayTheCheckedLink(link, 'adead_link');
  5153. }
  5154. if (resStatus == 500 || resStatus == 503 || resStatus == 403) //not found/available/temp. unava
  5155. {
  5156. if (tryLoop)
  5157. {
  5158. //wait 1-5 seconds and repeat the request
  5159. setTimeout(function(){geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, tryLoop)}, 1000 + (Math.random() * 4000));
  5160. }
  5161. else
  5162. {
  5163. displayTheCheckedLink(link, 'unava_link');
  5164. }
  5165.  
  5166. return;
  5167. }
  5168. },
  5169. onerror: function ()
  5170. {
  5171. displayTheCheckedLink(link, 'unava_link');
  5172. }
  5173. });
  5174. }
  5175.  
  5176. function geturlHeader(link, isAliveRegex, isDeadRegex, ispremRegex)
  5177. {
  5178. GM_xmlhttpRequest(
  5179. {
  5180. method: 'HEAD',
  5181. url: link.href,
  5182. headers: {
  5183. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  5184. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  5185. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  5186. 'Referer': ""
  5187. },
  5188. onload: function (result)
  5189. {
  5190. var resStatus = result.status;
  5191. var resHeaders = "";
  5192. if (resStatus == 403 || resStatus == 404 || resStatus == 500) //not found/available
  5193. {
  5194. displayTheCheckedLink(link, 'adead_link');
  5195. return;
  5196. }
  5197.  
  5198. resHeaders = result.responseHeaders;
  5199.  
  5200. if (resHeaders.match(isDeadRegex))
  5201. {
  5202. displayTheCheckedLink(link, 'adead_link');
  5203. return;
  5204. }
  5205.  
  5206. if (resHeaders.match(isAliveRegex))
  5207. {
  5208. displayTheCheckedLink(link, 'alive_link');
  5209. return;
  5210. }
  5211. if (resHeaders.match(ispremRegex))
  5212. {
  5213. displayTheCheckedLink(link, 'prem_link');
  5214. return;
  5215. }
  5216. },
  5217. onerror: function ()
  5218. {
  5219. displayTheCheckedLink(link, 'unava_link');
  5220. }
  5221. });
  5222. }
  5223.  
  5224. //Delinkfifies the <a> element object
  5225. function delinkifyLink(link)
  5226. {
  5227. var spanElm = document.createElement("span");
  5228. spanElm.className = link.className;
  5229. spanElm.innerHTML = link.innerHTML;
  5230.  
  5231. if (Display_tooltip_info)
  5232. {
  5233. spanElm.href = link.href;
  5234. spanElm.warlc_error = link.warlc_error;
  5235. switch (link.className){
  5236. case "alive_link": spanElm.addEventListener("mouseover", displayTooltipInfo, false); break
  5237. case "adead_link": spanElm.addEventListener("mouseover", displayTooltipError, false); break;
  5238. case "unava_link": //reserved
  5239. case "prem_link": spanElm.addEventListener("mouseover", displayTooltipError, false); break;
  5240. default:
  5241. }
  5242. }
  5243. link.parentNode.replaceChild(spanElm, link);
  5244. }
  5245.  
  5246. //Assigns result status to the <a> element object and calls delinkifying eventually
  5247. //Possible result states: adead_link, alive_link, unava_link, prem_link
  5248. function displayTheCheckedLink(link, resultStatus)
  5249. {
  5250. link.className = resultStatus;
  5251. link.href = Ref_anonymize_service + link.href;
  5252. if (Display_tooltip_info)
  5253. {
  5254. switch (resultStatus){
  5255. case "alive_link": link.addEventListener("mouseover", displayTooltipInfo, false); break
  5256. case "adead_link": link.addEventListener("mouseover", displayTooltipError, false); break;
  5257. case "unava_link": //reserved
  5258. case "prem_link": link.addEventListener("mouseover", displayTooltipInfo, false); break
  5259. default:
  5260. }
  5261. }
  5262. if (doNotLinkify)
  5263. {
  5264. delinkifyLink(link);
  5265. }
  5266. cLinksProcessed++;
  5267.  
  5268. if (resultStatus == "alive_link")
  5269. {
  5270. cLinksAlive++;
  5271. return;
  5272. }
  5273.  
  5274. if (resultStatus == "adead_link")
  5275. {
  5276. cLinksDead++;
  5277. return;
  5278. }
  5279.  
  5280. if (resultStatus == "unava_link")
  5281. {
  5282. cLinksUnava++;
  5283. }
  5284. if (resultStatus == "prem_link")
  5285. {
  5286. cLinksprem++;
  5287. return;
  5288. }
  5289. }
  5290.  
  5291.  
  5292. function initFileHosts()
  5293. {
  5294.  
  5295. function addObsoleteHost(linkRegex, xpathEx)
  5296. {
  5297. var host = new Array(2);
  5298. host[0] = linkRegex;
  5299. host[1] = xpathEx;
  5300. http_file_hosts_obsolete.push(host);
  5301. }
  5302.  
  5303. //obsolete file hosts init start
  5304. if (Obsolete_file_hosts)
  5305. {
  5306. addObsoleteHost("uloz\.cz\/show\/file","//a[contains(@href,'uloz.cz')]");
  5307. addObsoleteHost("storage\\.to\/get","//a[contains(@href,'storage.to')]");
  5308. addObsoleteHost("iskladka\\.cz\/download","//a[contains(@href,'iskladka.cz')]");
  5309. addObsoleteHost("file-rack\\.com\/files","//a[contains(@href,'file-rack.com')]");
  5310. addObsoleteHost("fast-load\\.net\/(\/)?index","//a[contains(@href,'fast-load.net')]");
  5311. addObsoleteHost("subory\\.sk\/download","//a[contains(@href,'subory.sk')]");
  5312. addObsoleteHost("bigandfree\\.com\/\\d+","//a[contains(@href,'bigandfree.com')]");
  5313. addObsoleteHost("fileop\\.com\/\\w+","//a[contains(@href,'fileop.com')]");
  5314. addObsoleteHost("mujsoubor\\.cz\/file\/","//a[contains(@href,'mujsoubor.cz')]");
  5315. addObsoleteHost("sendfile\\.to\/\\w+","//a[contains(@href,'sendfile.to')]");
  5316. addObsoleteHost("superfastfile\\.com\/\\w+","//a[contains(@href,'superfastfile.com')]");
  5317. addObsoleteHost("quickyshare\\.com\/\\w+","//a[contains(@href,'quickyshare.com/')]");
  5318. addObsoleteHost("duckload\\.com\/(?:d|play)","//a[contains(@href,'duckload.com')]");
  5319. addObsoleteHost("uploadstore\\.net\/\\w+","//a[contains(@href,'uploadstore.net')]");
  5320. addObsoleteHost("meinupload\\.com\/dl\/\\d+","//a[contains(@href,'meinupload.com/dl')]");
  5321. addObsoleteHost("dualshare\\.com\/\\w+","//a[contains(@href,'dualshare.com')]");
  5322. addObsoleteHost("2xupload\\.(?:to|de)\/file\/\\w+","//a[contains(@href,'2xupload.to') or contains(@href,'2xupload.de')]");
  5323. addObsoleteHost("oxedion\\.com\/index\\.php\/download\/\\w+","//a[contains(@href,'oxedion.com/index')]");
  5324. addObsoleteHost("uploadline\\.com\/\\d+","//a[contains(@href,'uploadline.com')]");
  5325. addObsoleteHost("dll\\.bz\/file\/\\d+","//a[contains(@href,'dll.bz/file')]");
  5326. addObsoleteHost("movieshare\\.in\/\\w+","//a[contains(@href,'movieshare.in')]");
  5327. addObsoleteHost("milledrive\\.com\/files\/\\d+","//a[contains(@href,'milledrive.com')]");
  5328. addObsoleteHost("quickupload\\.net\/\\w+","//a[contains(@href,'quickupload.net')]");
  5329. addObsoleteHost("safelink\\.in\/\\w+","//a[contains(@href,'safelink.in')]");
  5330. addObsoleteHost("pyramidfiles\\.com\/\\w+","//a[contains(@href,'pyramidfiles.com/')]");
  5331. addObsoleteHost("(?:cloudnator|shragle)\\.com\/files","//a[contains(@href,'cloudnator.com/files') or contains(@href,'shragle.com/files')]");
  5332. addObsoleteHost("batshare\\.com\/\\w+","//a[contains(@href,'batshare.com/')]");
  5333. addObsoleteHost("bitroad\\.net\/download","//a[contains(@href,'bitroad.net/download')]");
  5334. addObsoleteHost("metadivx\\.com\/\\w+","//a[contains(@href,'metadivx.com')]");
  5335. addObsoleteHost("filegaze\\.com\/\\w+","//a[contains(@href,'filegaze.com/')]");
  5336. addObsoleteHost("bulletupload\\.com\/\\w+","//a[contains(@href,'bulletupload.com/')]");
  5337. addObsoleteHost("sharefilehost\\.com\/\\w+","//a[contains(@href,'sharefilehost.com/')]");
  5338. addObsoleteHost("fireuploads\\.net\/\\w+","//a[contains(@href,'fireuploads.net/')]");
  5339. addObsoleteHost("divxlink\\.com\/\\w+","//a[contains(@href,'divxlink.com/')]");
  5340. addObsoleteHost("bzlink\\.us\/\\w+","//a[contains(@href,'bzlink.us/')]");
  5341. addObsoleteHost("filetechnology\\.com\/\\w+","//a[contains(@href,'filetechnology.com/')]");
  5342. addObsoleteHost("filecosy\\.com\/\\w+","//a[contains(@href,'filecosy.com/')]");
  5343. addObsoleteHost("fileserver\\.cc\/\\w+","//a[contains(@href,'fileserver.cc/')]");
  5344. addObsoleteHost("shafiles\\.me\/\\w+","//a[contains(@href,'shafiles.me/')]");
  5345. addObsoleteHost("xfileshare\\.eu\/\\w+","//a[contains(@href,'xfileshare.eu/')]");
  5346. addObsoleteHost("uploadboost\\.com\/\\w+","//a[contains(@href,'uploadboost.com/')]");
  5347. addObsoleteHost("uploadoz\\.com\/\\w+","//a[contains(@href,'uploadoz.com/')]");
  5348. addObsoleteHost("ihostia\\.com\/\\w+","//a[contains(@href,'ihostia.com/')]");
  5349. addObsoleteHost("shareupload\\.com\/\\w+","//a[contains(@href,'shareupload.com/')]");
  5350. addObsoleteHost("ovfile\\.com\/\\w+","//a[contains(@href,'ovfile.com/')]");
  5351. addObsoleteHost("stahuj\\.to\/\\w+","//a[contains(@href,'stahuj.to/')]");
  5352. addObsoleteHost("gigfiles\\.net\/\\w+","//a[contains(@href,'gigfiles.net/')]");
  5353. addObsoleteHost("vidhog\\.com\/\\w+","//a[contains(@href,'vidhog.com/')]");
  5354. addObsoleteHost("filelaser\\.com\/\\w+","//a[contains(@href,'filelaser.com/')]");
  5355. addObsoleteHost("holderfile\\.com\/\\w+","//a[contains(@href,'holderfile.com/')]");
  5356. addObsoleteHost("fileduct\\.(?:com|net)\/\\w+","//a[contains(@href,'fileduct.com/') or contains(@href,'fileduct.net')]");
  5357. addObsoleteHost("filefat\\.com\/\\w+","//a[contains(@href,'filefat.com/')]");
  5358. addObsoleteHost("restfile\\.com\/\\w+","//a[contains(@href,'restfile.com/')]");
  5359. addObsoleteHost("filemashine\\.com\\/download\/\\w+","//a[contains(@href,'filemashine.com/download')]");
  5360. addObsoleteHost("cloudnxt\\.net\/\\w+","//a[contains(@href,'cloudnxt.net/')]");
  5361. addObsoleteHost("uploadrack\\.com\/\\w+","//a[contains(@href,'uploadrack.com')]");
  5362. addObsoleteHost("teradepot\\.com\/\\w+","//a[contains(@href,'teradepot.com')]");
  5363. addObsoleteHost("dataup\\.to\/\\d+\/","//a[contains(@href,'dataup.to')]");
  5364. addObsoleteHost("upit\\.to\/file:\\d+","//a[contains(@href,'upit.to/file')]");
  5365. addObsoleteHost("badongo\\.(?:com|net)\/(?:\\w\\w\/|)(?:vid|cfile|file|pt)\/\\w+","//a[contains(@href,'badongo.com') or contains(@href,'badongo.net')]");
  5366. addObsoleteHost("driveway\\.com\/\\w+","//a[contains(@href,'driveway.com')]");
  5367. addObsoleteHost("eatlime\\.com\/download","//a[contains(@href,'eatlime.com/download')]");
  5368. addObsoleteHost("a2zuploads\\.com\/id\\w+","//a[contains(@href,'a2zuploads.com/id')]");
  5369. addObsoleteHost("friendlyfiles\\.net\/download\/\\w+\/","//a[contains(@href,'friendlyfiles.net/download')]");
  5370. addObsoleteHost("flyfile\\.us\/\\w+","//a[contains(@href,'flyfile.us')]");
  5371. addObsoleteHost("speedyshare\\.com\/\\w+","//a[contains(@href,'speedyshare.com')]");
  5372. addObsoleteHost("brontofile\\.com\/download","//a[contains(@href,'brontofile.com/download')]");
  5373. addObsoleteHost("uploadspace\\.eu\/\\w+","//a[contains(@href,'uploadspace.eu')]");
  5374. addObsoleteHost("fooget\\.com\/\\w+","//a[contains(@href,'fooget.com/')]");
  5375. addObsoleteHost("file-bit.net\/\\w+","//a[contains(@href,'file-bit.net/')]");
  5376. addObsoleteHost("keepfile\\.com\/\\w+","//a[contains(@href,'http://keepfile.com')]");
  5377. addObsoleteHost("piggyshare\\.com\/file\/\\w+","//a[contains(@href,'piggyshare.com')]");
  5378. addObsoleteHost("filecrown\\.com\/\\w+","//a[contains(@href,'filecrown.com')]");
  5379. addObsoleteHost("6giga\\.com\/\\w+","//a[contains(@href,'6giga.com')]");
  5380. addObsoleteHost("uploadjockey\\.com\/download\/\\w+","//a[contains(@href,'uploadjockey.com/download')]");
  5381. addObsoleteHost("bluehost\\.to\/dl=\\w+","//a[contains(@href,'bluehost.to')]");
  5382. addObsoleteHost("coolshare\\.cz\/stahnout\/\\w+","//a[contains(@href,'coolshare.cz/stahnout')]");
  5383. addObsoleteHost("filegu\\.ru\/f\/\\w+","//a[contains(@href,'filegu.ru/f')]");
  5384. addObsoleteHost("filebase\\.to\/files\/\\d+\/","//a[contains(@href,'filebase.to/files')]");
  5385. addObsoleteHost("kickload\\.com\/(?:file|get)\/","//a[contains(@href,'kickload.com/file') or contains(@href,'kickload.com/get')]");
  5386. addObsoleteHost("up-file\\.com\/files\/download\/\\w+\/","//a[contains(@href,'up-file.com/download')]");
  5387. addObsoleteHost("ezyfile\\.net\/\\w+","//a[contains(@href,'ezyfile.net/')]");
  5388. addObsoleteHost("k2files\\.com\/files","//a[contains(@href,'k2files.com/files')]");
  5389. addObsoleteHost("aiotool\\.net\/\\w+","//a[contains(@href,'aiotool.net/')]");
  5390. addObsoleteHost("xvideos\\.com\/files\/\\d+\/\\w+","//a[contains(@href,'xvideos.com/files')]");
  5391. addObsoleteHost("filebling\\.com\/dl\/\\d+\/\\d+\/\\w+","//a[contains(@href,'filebling.com/dl')]");
  5392. addObsoleteHost("loaded\\.it\/divx\/\\w+","//a[contains(@href,'loaded.it/divx')]");
  5393. addObsoleteHost("uploadcell\\.com\/\\w+\/\\w+","//a[contains(@href,'uploadcell.com')]");
  5394. addObsoleteHost("jakfile\\.com\/\\w+","//a[contains(@href,'jakfile.com/')]");
  5395. addObsoleteHost("uploadshare\\.cz\/download\/\\w+\/\\w+","//a[contains(@href,'uploadshare.cz/download')]");
  5396. addObsoleteHost("mangoshare\\.com\/\\w+","//a[contains(@href,'mangoshare.com')]");
  5397. addObsoleteHost("ugotfile\\.com\/file\/\\d+\/\\w+","//a[contains(@href,'ugotfile.com/file')]");
  5398. addObsoleteHost("filestab\\.com\/\\w+","//a[contains(@href,'filestab.com')]");
  5399. addObsoleteHost("dotavi\\.com\/\\w+\/.","//a[contains(@href,'dotavi.com/')]");
  5400. addObsoleteHost("crazyupload\\.com\/\\w+","//a[contains(@href,'crazyupload.com')]");
  5401. addObsoleteHost("gaiafile\\.com\/\\w+","//a[contains(@href,'gaiafile.com')]");
  5402. addObsoleteHost("sharejunky\\.com\/\\w+","//a[contains(@href,'sharejunky.com')]");
  5403. addObsoleteHost("fileho\\.com\/download\/\\d+","//a[contains(@href,'fileho.com/download')]");
  5404. addObsoleteHost("(?:bigandfree|BigAndFree)\\.com\/\\d+","//a[contains(@href,'bigandfree.com') or contains(@href,'BigAndFree.com')]");
  5405. addObsoleteHost("bigfile\\.in\/\\w+","//a[contains(@href,'bigfile.in')]");
  5406. addObsoleteHost("bigshare\\.eu\/download\\.php\\?id=","//a[contains(@href,'bigshare.eu/download.php')]");
  5407. addObsoleteHost("dahosting\\.org\/dl\/\\w+","//a[contains(@href,'dahosting.org/dl')]");
  5408. addObsoleteHost("digisofts\\.net\/\\w+","//a[contains(@href,'digisofts.net')]");
  5409. addObsoleteHost("file4save\\.com\/\\w+\/\\w+","//a[contains(@href,'file4save.com')]");
  5410. addObsoleteHost("filereactor\\.com\/\\w+","//a[contains(@href,'filereactor.com/')]");
  5411. addObsoleteHost("filechip\\.com\/\\w+","//a[contains(@href,'filechip.com')]");
  5412. addObsoleteHost("filescloud\\.com\/\\w+\/\\w+","//a[contains(@href,'filescloud.com')]");
  5413. addObsoleteHost("saveqube\\.com\/getfile\/\\w+","//a[contains(@href,'saveqube.com/getfile')]");
  5414. addObsoleteHost("www2\\.turboshare\\.de\/v\/\\d+","//a[contains(@href,'turboshare.de/v')]");
  5415. addObsoleteHost("z-upload\\.com\/\\w+","//a[contains(@href,'z-upload.com')]");
  5416. addObsoleteHost("youshare\\.com\/view\\.php","//a[contains(@href,'youshare.com/view')]");
  5417. addObsoleteHost("jiffyupload\\.com\/\\w+","//a[contains(@href,'jiffyupload.com')]");
  5418. addObsoleteHost("gigeshare\\.com\/preview\/\\w+","//a[contains(@href,'gigeshare.com')]");
  5419. addObsoleteHost("datenklo\\.net\/dl","//a[contains(@href,'datenklo.net')]");
  5420. addObsoleteHost("upload\\.dj\/download\\.php\\?id=\\w+","//a[contains(@href,'upload.dj/download.php')]");
  5421. addObsoleteHost("loadfiles\\.in\/\\w+\/","//a[contains(@href,'loadfiles.in')]");
  5422. addObsoleteHost("upit\\.to\/file:\\w+\/","//a[contains(@href,'upit.to/file')]");
  5423. addObsoleteHost("zshare\\.net\/(?:download|video|audio)\/\\w+","//a[contains(@href,'zshare.net/')]");
  5424. addObsoleteHost("refile\\.net\/f\/\\?\\w+","//a[contains(@href,'refile.net/f/')]");
  5425. addObsoleteHost("dsfileshare\\.com\/download","//a[contains(@href,'dsfileshare.com/download')]");
  5426. addObsoleteHost("sharesimple\\.net\/\\w{2}\/download","//a[contains(@href,'sharesimple.net')]");
  5427. addObsoleteHost("(?:s\\d+\\.|)4files\\.net\/\\d+","//a[contains(@href,'4files.net')]");
  5428. addObsoleteHost("odsiebie\\.com\/pokaz\/\\d+","//a[contains(@href,'odsiebie.com/pokaz')]");
  5429. addObsoleteHost("filenavi\\.com\/direct\/\\w+","//a[contains(@href,'filenavi.com/direct')]");
  5430. addObsoleteHost("3oof\\.com\/\\w+","//a[contains(@href,'3oof.com/')]");
  5431. addObsoleteHost("meshwaar\\.com\/\\w+","//a[contains(@href,'meshwaar.com')]");
  5432. addObsoleteHost("maxupload\\.com\/files\/\\w+","//a[contains(@href,'maxupload.com/files')]");
  5433. addObsoleteHost("share\\.cx\/videos\/\\d+","//a[contains(@href,'share.cx/videos')]");
  5434. addObsoleteHost("atserver\\.eu\/(?:\\w{2}\/|)download\/\\d+","//a[contains(@href,'atserver.eu')]");
  5435. addObsoleteHost("file2upload\\.net\/download\/\\d+","//a[contains(@href,'file2upload.net/download')]");
  5436. addObsoleteHost("filebling\\.com\/\\w+","//a[contains(@href,'filebling.com')]");
  5437. addObsoleteHost("turboshare\\.(?:eu|com)\/files","//a[contains(@href,'turboshare.') and contains(@href,'/files')]");
  5438. addObsoleteHost("rarhost\\.com\/download","//a[contains(@href,'rarhost.com/download')]");
  5439. addObsoleteHost("isharehd\\.com\/\\w+","//a[contains(@href,'isharehd.com')]");
  5440. addObsoleteHost("datenklo\\.net\/file\\.php\\?id=\\w+","//a[contains(@href,'datenklo.net/file.php')]");
  5441. addObsoleteHost("file2share\\.biz\/download\\.php\\?id=\\w+","//a[contains(@href,'file2share.biz/download.php')]");
  5442. addObsoleteHost("savefiles\\.net\/d\/\\w+\\.html","//a[contains(@href,'savefiles.net/d')]");
  5443. addObsoleteHost("bestsharing\\.com\/files\/\\w+","//a[contains(@href,'bestsharing.com/files')]");
  5444. addObsoleteHost("filecache\\.de\/\\d+","//a[contains(@href,'filecache.de/')]");
  5445. addObsoleteHost("i741\\.com\/files\/\\w+","//a[contains(@href,'i741.com/files')]");
  5446. addObsoleteHost("dataup\\.de\/\\d+","//a[contains(@href,'dataup.de')]");
  5447. addObsoleteHost("fofly\\.com\/\\w+","//a[contains(@href,'fofly.com')]");
  5448. addObsoleteHost("shareonall\\.com\/\\w+","//a[contains(@href,'shareonall.com')]");
  5449. addObsoleteHost("sexuploader\\.com\/(?:|..\/)\\?[d|v]=\\w{8}","//a[contains(@href,'sexuploader.com')]");
  5450. 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')]");
  5451. addObsoleteHost("uploadhyper\\.com\/file\/","//a[contains(@href,'uploadhyper.com')]");
  5452. addObsoleteHost("filespawn\\.com\/file\/","//a[contains(@href,'filespawn.com')]");
  5453. addObsoleteHost("caizzii\\.com\/(?:download|\\?file=)","//a[contains(@href,'caizzii.com')]");
  5454. addObsoleteHost("volnyweb\\.cz\/files\/get\/[\\w-_]+","//a[contains(@href,'volnyweb.cz/files')]");
  5455. addObsoleteHost("gotupload\\.com\/\\w+","//a[contains(@href,'gotupload.com/')]");
  5456. addObsoleteHost("mooload\\.com\/new\/file\\.php\\?file=files\/\\d+\/\\d+","//a[contains(@href,'mooload.com/new/file')]");
  5457. addObsoleteHost("z\\d+\\.zupload\\.com\/download\\.php\\?file=getfile&filepath=\\d+","//a[contains(@href,'zupload.com/download')]");
  5458. addObsoleteHost("mytempdir\\.com\/\\d+","//a[contains(@href,'mytempdir.com/')]");
  5459. addObsoleteHost("usershare\\.net\/\\w+","//a[contains(@href,'usershare.net/')]");
  5460. addObsoleteHost("qshare\\.com\/get\/\\d+\/.","//a[contains(@href,'qshare.com/get')]");
  5461. addObsoleteHost("filescash\\.net\/file\/\\d+","//a[contains(@href,'filescash.net/file')]");
  5462. addObsoleteHost("metahyper\\.com\/\\w+","//a[contains(@href,'metahyper.com/')]");
  5463. addObsoleteHost("combozip\\.com\/\\w+","//a[contains(@href,'combozip.com/')]");
  5464. addObsoleteHost("anonstream\\.com\/get_\\w+","//a[contains(@href,'anonstream.com/get_')]");
  5465. addObsoleteHost("x7\\.to\/\\w+","//a[contains(@href,'x7.to/')]");
  5466. addObsoleteHost("uploadbox\\.com\/files\/\\w+","//a[contains(@href,'uploadbox.com/files')]");
  5467. addObsoleteHost("(?:flyupload\\.)?(?:enterupload|flyupload)\\.com\/[\\?\\w]+","//a[contains(@href,'enterupload.com/') or contains(@href,'flyupload.com/')]");
  5468. addObsoleteHost("filepoint\\.de\/dl\/\\w+","//a[contains(@href,'filepoint.de/dl')]");
  5469. addObsoleteHost("icushare\\.com\/\\w+","//a[contains(@href,'icushare.com/')]");
  5470. addObsoleteHost("oron\\.com\/\\w+","//a[contains(@href,'oron.com/')]");
  5471. addObsoleteHost("mystream\\.to\/file\\-\\d+","//a[contains(@href,'mystream.to/file')]");
  5472. addObsoleteHost("x-fs\\.com\/download\\.php\\?id=\\w+","//a[contains(@href,'x-fs.com/download')]");
  5473. addObsoleteHost("srapid\\.eu\/\\w+","//a[contains(@href,'srapid.eu/')]");
  5474. addObsoleteHost("shareshared\\.com\/\\w+","//a[contains(@href,'shareshared.com/')]");
  5475. addObsoleteHost("sosame\\.cz\/\\w+","//a[contains(@href,'sosame.cz/')]");
  5476. addObsoleteHost("s\\d+\\.filesdump\\.com\/file\/\\w+","//a[contains(@href,'filesdump.com/file')]");
  5477. addObsoleteHost("2-klicks\\.de\/\\?d=\\w+","//a[contains(@href,'2-klicks.de/?d=')]");
  5478. addObsoleteHost("silofiles\\.com\/file\/\\d+","//a[contains(@href,'silofiles.com/file')]");
  5479. addObsoleteHost("upfile\\.in\/\\w+","//a[contains(@href,'upfile.in/')]");
  5480. addObsoleteHost("filehook\\.com\/\\w+","//a[contains(@href,'filehook.com/')]");
  5481. addObsoleteHost("mojofile\\.com\/\\w+","//a[contains(@href,'mojofile.com/')]");
  5482. addObsoleteHost("cloudcache\\.cc\/\\w+","//a[contains(@href,'cloudcache.cc/')]");
  5483. addObsoleteHost("1hostclick\\.com\/\\w+","//a[contains(@href,'1hostclick.com/')]");
  5484. addObsoleteHost("4bytez\\.com\/\\w+","//a[contains(@href,'4bytez.com/')]");
  5485. addObsoleteHost("uploadking\\.com\/\\w+","//a[contains(@href,'uploadking.com/')]");
  5486. addObsoleteHost("nahraj\\.cz\/(?:content|down)\/\\w+","//a[contains(@href,'nahraj.cz/')]");
  5487. addObsoleteHost("megarapid\\.eu\/files\/\\d+","//a[contains(@href,'megarapid.eu/files')]");
  5488. addObsoleteHost("(?:fileserve|uploadstation)\\.com\/(?:file|list)\/\\w+","//a[contains(@href,'fileserve.com/') or contains(@href,'uploadstation.com/')]");
  5489. addObsoleteHost("uploadhere\\.com\/\\w+","//a[contains(@href,'uploadhere.com/')]");
  5490. addObsoleteHost("dualshare\\.com\/\\w+","//a[contains(@href,'dualshare.com/')]");
  5491. addObsoleteHost("yourfilehost\\.com\/media","//a[contains(@href,'yourfilehost.com/media')]");
  5492. addObsoleteHost("ftp2share\\.com\/file\/\\w+","//a[contains(@href,'ftp2share.com/file')]");
  5493. addObsoleteHost("storeandserve\\.com\/download\/\\d+","//a[contains(@href,'storeandserve.com/download')]");
  5494. addObsoleteHost("mountfile\\.com\/file(?:\/\\w+){2}","//a[contains(@href,'mountfile.com/file')]");
  5495. addObsoleteHost("save\\.am\/files\/\\w+","//a[contains(@href,'save.am/files')]");
  5496. addObsoleteHost("transitfiles\\.com\/dl\/\\w+","//a[contains(@href,'transitfiles.com/dl')]");
  5497. addObsoleteHost("smartuploader\\.com\/file\\.php\\?f=\\d+","//a[contains(@href,'smartuploader.com/file.php?=')]");
  5498. addObsoleteHost("skipfile\\.com\/\\w+","//a[contains(@href,'skipfile.com/')]");
  5499. addObsoleteHost("stahnu\\.to\/[\\w\\?]+","//a[contains(@href,'stahnu.to/')]");
  5500. addObsoleteHost("flyshare\.cz\/(?:stahni\/|)\\d+","//a[contains(@href,'flyshare.cz/')]");
  5501. addObsoleteHost("(?:ddlani\\.me|ddlanime\\.com)\/\\w+","//a[contains(@href,'ddlani.me/') or contains(@href,'ddlanime.com/')]");
  5502. addObsoleteHost("loadly\\.com\/\\w+","//a[contains(@href,'loadly.com/')]");
  5503. addObsoleteHost("groovefile\\.com\/\\w+","//a[contains(@href,'groovefile.com/')]");
  5504. addObsoleteHost("filezlot\\.com\/\\w+","//a[contains(@href,'filezlot.com/')]");
  5505. addObsoleteHost("shareator\\.(?:net|com)\/\\w+","//a[contains(@href,'shareator.')]");
  5506. addObsoleteHost("yabadaba\\.ru\/files\/","//a[contains(@href,'yabadaba.ru/files/')]");
  5507. addObsoleteHost("rapidhide\\.com\/download\\.php\\?file=\\w+","//a[contains(@href,'rapidhide.com/download.php')]");
  5508. addObsoleteHost("filejungle\\.com\/[fl]\/\\w+","//a[contains(@href,'filejungle.com/')]");
  5509. addObsoleteHost("kewlshare\\.com\/dl\/\\d+","//a[contains(@href,'kewlshare.com/dl')]");
  5510. addObsoleteHost("petandrive\\.com\/file\/\\w+","//a[contains(@href,'petandrive.com/file')]");
  5511. addObsoleteHost("onionshare\\.com\/\\w+","//a[contains(@href,'onionshare.com/')]");
  5512. addObsoleteHost("rapidable\\.com\/\\w+\/download\\.php\\?id=","//a[contains(@href,'rapidable.com/')]");
  5513. addObsoleteHost("filesdump\\.com\/file\/\\w+\/\\d+","//a[contains(@href,'filesdump.com/file')]");
  5514. addObsoleteHost("file2box\\.(?:net|com)\/\\w+","//a[contains(@href,'file2box.')]");
  5515. addObsoleteHost("(?:filesonic|sharingmatrix|wupload)(?:\\.\\w+){1,2}\/(?:file|folder)\/\\w+","//a[contains(@href,'filesonic.') or contains(@href,'sharingmatrix.com') or contains(@href,'wupload.')]");
  5516. addObsoleteHost("bloggerarticles\\.com\/\\w+","//a[contains(@href,'bloggerarticles.com/')]");
  5517. addObsoleteHost("mojedata\\.sk/","//a[contains(@href,'mojedata.sk/')]");
  5518. addObsoleteHost("sharpfile\\.com\/\\w+","//a[contains(@href,'sharpfile.com/')]");
  5519. addObsoleteHost("upgrand\\.com\/\\w+","//a[contains(@href,'upgrand.com/')]");
  5520. addObsoleteHost("nasdilej\\.cz\/\\w+","//a[contains(@href,'nasdilej.cz/')]");
  5521. addObsoleteHost("mediatack\\.cz\/stahuj/\\w+","//a[contains(@href,'mediatack.cz/stahuj/')]");
  5522. addObsoleteHost("share-it\\.to\/file/\\w+","//a[contains(@href,'share-it.to/file/')]");
  5523. addObsoleteHost("primeupload\\.com\/file/\\w+","//a[contains(@href,'primeupload.com/file/')]");
  5524. addObsoleteHost("(?:uploads\\.glumbo|glumbouploads)\\.com\/\\w+","//a[contains(@href,'uploads.glumbo.com') or contains(@href,'glumbouploads.com')]");
  5525. addObsoleteHost("filebeer\\.info\/\\w+","//a[contains(@href,'filebeer.info/')]");
  5526. addObsoleteHost("baberepublic\\.com\/link\/\\w+","//a[contains(@href,'baberepublic.com/link/')]");
  5527. addObsoleteHost("xtu\\.me\/\\w+","//a[contains(@href,'xtu.me/')]");
  5528. addObsoleteHost("sharebase\\.de\/files\/\\w+","//a[contains(@href,'sharebase.de/files/')]");
  5529. addObsoleteHost("filerobo\\.com\/\\w+","//a[contains(@href,'filerobo.com/')]");
  5530. addObsoleteHost("filevelocity\\.com\/\\w+","//a[contains(@href,'filevelocity.com/')]");
  5531. addObsoleteHost("filezpro\\.com\/\\w+","//a[contains(@href,'filezpro.com/')]");
  5532. addObsoleteHost("file4sharing\\.com\/\\w+","//a[contains(@href,'file4sharing.com/')]");
  5533. addObsoleteHost("cing\\.be\/\\w+","//a[contains(@href,'cing.be/')]");
  5534. addObsoleteHost("ufile\\.eu\/\\w+","//a[contains(@href,'ufile.eu/')]");
  5535. addObsoleteHost("pigsonic\\.com\/\\w+","//a[contains(@href,'pigsonic.com/')]");
  5536. addObsoleteHost("fileupped\\.com\/\\w+","//a[contains(@href,'fileupped.com/')]");
  5537. addObsoleteHost("sharerun\\.com\/\\w+","//a[contains(@href,'sharerun.com/')]");
  5538. addObsoleteHost("rapidslnare\\.com\/\\w+","//a[contains(@href,'rapidslnare.com/')]");
  5539. addObsoleteHost("monsteruploads\\.eu\/\\w+","//a[contains(@href,'monsteruploads.eu/')]");
  5540. addObsoleteHost("b9bb\\.com\/\\w+","//a[contains(@href,'b9bb.com/')]");
  5541. addObsoleteHost("jamber\\.info\/\\w+","//a[contains(@href,'jamber.info/')]");
  5542. addObsoleteHost("(?:megaftp|MegaFTP)\\.com\/\\w+","//a[contains(@href,'megaftp.com/') or contains(@href,'MegaFTP.com/')]");
  5543. addObsoleteHost("desiupload\\.net\/\\?d=\\w+","//a[contains(@href,'desiupload.net/')]");
  5544. addObsoleteHost("file27\\.com\/\\w+","//a[contains(@href,'file27.com/')]");
  5545. addObsoleteHost("yastorage\\.com\/\\w+","//a[contains(@href,'yastorage.com/')]");
  5546. addObsoleteHost("filehost\\.ws\/\\w+","//a[contains(@href,'filehost.ws/')]");
  5547. addObsoleteHost("copyload\\.com\/\\w+","//a[contains(@href,'copyload.com/')]");
  5548. addObsoleteHost("venusfile\\.com\/\\w+","//a[contains(@href,'venusfile.com/')]");
  5549. addObsoleteHost("aieshare\\.com\/\\w+","//a[contains(@href,'aieshare.com/')]");
  5550. addObsoleteHost("fileza\\.net\/\\w+","//a[contains(@href,'fileza.net/')]");
  5551. addObsoleteHost("filerose\\.com\/\\w+","//a[contains(@href,'filerose.com/')]");
  5552. addObsoleteHost("squillion\\.com\/\\w+","//a[contains(@href,'squillion.com/')]");
  5553. addObsoleteHost("fileprohost\\.com\/\\w+","//a[contains(@href,'fileprohost.com/')]");
  5554. addObsoleteHost("bitbonus\\.com\/download\/\\w+","//a[contains(@href,'bitbonus.com/')]");
  5555. addObsoleteHost("warserver\\.cz\/\\w+","//a[contains(@href,'warserver.cz/')]");
  5556. addObsoleteHost("uload\\.to\/\\w+","//a[contains(@href,'uload.to/')]");
  5557. addObsoleteHost("sharedbit\\.net\/\\w+","//a[contains(@href,'sharedbit.net/')]");
  5558. addObsoleteHost("megaload\\.it\/\\w+","//a[contains(@href,'megaload.it/')]");
  5559. addObsoleteHost("filewinds\\.com\/\\w+","//a[contains(@href,'filewinds.com/')]");
  5560. addObsoleteHost("uploadcore\\.com\/\\w+","//a[contains(@href,'uploadcore.com/')]");
  5561. addObsoleteHost("syfiles\\.com\/\\w+","//a[contains(@href,'syfiles.com/')]");
  5562. addObsoleteHost("eyesfile\\.com\/\\w+","//a[contains(@href,'eyesfile.com/')]");
  5563. addObsoleteHost("hotfile\\.com\/\\w+","//a[contains(@href,'hotfile.com/')]");
  5564. addObsoleteHost("superupl\\.com\/\\w+","//a[contains(@href,'superupl.com/')]");
  5565. addObsoleteHost("oteupload\\.com\/\\w+","//a[contains(@href,'oteupload.com/')]");
  5566. addObsoleteHost("henchfile\\.com\/\\w+","//a[contains(@href,'henchfile.com/')]");
  5567. addObsoleteHost("HenchFile\\.com\/\\w+","//a[contains(@href,'HenchFile.com/')]");
  5568. addObsoleteHost("filegag\\.com\/\\w+","//a[contains(@href,'filegag.com/')]");
  5569. addObsoleteHost("filedefend\\.com\/\\w+","//a[contains(@href,'filedefend.com/')]");
  5570. addObsoleteHost("hotfiles\\.ws\/\\w+","//a[contains(@href,'hotfiles.ws/')]");
  5571. addObsoleteHost("share-rapid\\.com\/\\w+","//a[contains(@href,'share-rapid.com/')]");
  5572. addObsoleteHost("rapids\\.cz\/\\w+","//a[contains(@href,'rapids.cz/')]");
  5573. addObsoleteHost("share-credit\\.cz\/\\w+","//a[contains(@href,'share-credit.cz/')]");
  5574. addObsoleteHost("share-central\\.cz\/\\w+","//a[contains(@href,'share-central.cz/')]");
  5575. addObsoleteHost("share-ms\\.cz\/\\w+","//a[contains(@href,'share-ms.cz/')]");
  5576. addObsoleteHost("share-net\\.cz\/\\w+","//a[contains(@href,'share-net.cz/')]");
  5577. addObsoleteHost("srapid\\.cz\/\\w+","//a[contains(@href,'srapid.cz/')]");
  5578. addObsoleteHost("share-rapid\\.cz\/\\w+","//a[contains(@href,'share-rapid.cz/')]");
  5579. addObsoleteHost("wooupload\\.com\/\\w+","//a[contains(@href,'wooupload.com/')]");
  5580. addObsoleteHost("megabitshare\\.com\/\\w+","//a[contains(@href,'megabitshare.com/')]");
  5581. addObsoleteHost("uploking\\.com\/\\w+","//a[contains(@href,'uploking.com/')]");
  5582. addObsoleteHost("esnips\\.com\/\\w+","//a[contains(@href,'esnips.com/')]");
  5583. addObsoleteHost("uplly\\.com\/\\w+","//a[contains(@href,'uplly.com/')]");
  5584. addObsoleteHost("ufox\\.com\/\\w+","//a[contains(@href,'ufox.com/')]");
  5585. addObsoleteHost("clz\\.to\/\\w+","//a[contains(@href,'clz.to/')]");
  5586. addObsoleteHost("cloudzer\\.net\/\\w+","//a[contains(@href,'cloudzer.net/')]");
  5587. addObsoleteHost("cloudzer\\.com\/\\w+","//a[contains(@href,'cloudzer.com/')]");
  5588. addObsoleteHost("extabit\\.com\/\\w+","//a[contains(@href,'extabit.com/')]");
  5589. addObsoleteHost("uploadwaste\\.com\/\\w+","//a[contains(@href,'uploadwaste.com/')]");
  5590. addObsoleteHost("247upload\\.com\/\\w+","//a[contains(@href,'uploadwaste.com/')]");
  5591. addObsoleteHost("2download\\.de\/\\w+","//a[contains(@href,'2download.de/')]");
  5592. addObsoleteHost("4fastfile\\.com\/\\w+","//a[contains(@href,'4fastfile.com/')]");
  5593. addObsoleteHost("asixfiles\\.com\/\\w+","//a[contains(@href,'asixfiles.com/')]");
  5594. addObsoleteHost("berofile\\.com\/\\w+","//a[contains(@href,'berofile.com/')]");
  5595. addObsoleteHost("bigupload\\.com\/\\w+","//a[contains(@href,'bigupload.com/')]");
  5596. addObsoleteHost("cepzo\\.com\/\\w+","//a[contains(@href,'cepzo.com/')]");
  5597. addObsoleteHost("czshare\\.com\/\\w+","//a[contains(@href,'czshare.com/')]");
  5598. addObsoleteHost("clouds\\.to\/\\w+","//a[contains(@href,'clouds.to/')]");
  5599. addObsoleteHost("cobrashare\\.sk\/\\w+","//a[contains(@href,'cobrashare.sk/')]");
  5600. addObsoleteHost("coraldrive\\.net\/\\w+","//a[contains(@href,'coraldrive.net/')]");
  5601. addObsoleteHost("cyberlocker\\.ch\/\\w+","//a[contains(@href,'cyberlocker.ch/')]");
  5602. addObsoleteHost("darkport\\.org\/\\w+","//a[contains(@href,'darkport.org/')]");
  5603. addObsoleteHost("dark-uploads\\.com\/\\w+","//a[contains(@href,'dark-uploads.com/')]");
  5604. addObsoleteHost("davvas\\.com\/\\w+","//a[contains(@href,'davvas.com/')]");
  5605. addObsoleteHost("enigmashare\\.com\/\\w+","//a[contains(@href,'enigmashare.com/')]");
  5606. addObsoleteHost("erofly\\.cz\/\\w+","//a[contains(@href,'erofly.cz/')]");
  5607. addObsoleteHost("fastsonic\\.net\/\\w+","//a[contains(@href,'fastsonic.net/')]");
  5608. addObsoleteHost("filebox\\.com\/\\w+","//a[contains(@href,'filebox.com/')]");
  5609. addObsoleteHost("filecity\\.net\/\\w+","//a[contains(@href,'filecity.net/')]");
  5610. addObsoleteHost("filedap\\.com\/\\w+","//a[contains(@href,'filedap.com/')]");
  5611. addObsoleteHost("filedino\\.com\/\\w+","//a[contains(@href,'filedino.com/')]");
  5612. addObsoleteHost("filedownloads\\.org\/\\w+","//a[contains(@href,'filedownloads.org/')]");
  5613. addObsoleteHost("filefolks\\.com\/\\w+","//a[contains(@href,'filefolks.com/')]");
  5614. addObsoleteHost("fileking\\.co\/\\w+","//a[contains(@href,'fileking.co/')]");
  5615. addObsoleteHost("filemates\\.com\/\\w+","//a[contains(@href,'filemates.com/')]");
  5616. addObsoleteHost("files\\.to\/\\w+","//a[contains(@href,'files.to/')]");
  5617. addObsoleteHost("files2k\\.eu\/\\w+","//a[contains(@href,'files2k.eu/')]");
  5618. addObsoleteHost("filesector\\.cc\/\\w+","//a[contains(@href,'filesector.cc/')]");
  5619. addObsoleteHost("filesega\\.com\/\\w+","//a[contains(@href,'filesega.com/')]");
  5620. addObsoleteHost("filesend\\.net\/\\w+","//a[contains(@href,'filesend.net/')]");
  5621. addObsoleteHost("filestay\\.com\/\\w+","//a[contains(@href,'filestay.com/')]");
  5622. addObsoleteHost("filestrum\\.com\/\\w+","//a[contains(@href,'filestrum.com/')]");
  5623. addObsoleteHost("fileuplo\\.de\/\\w+","//a[contains(@href,'fileuplo.de/')]");
  5624. addObsoleteHost("fileupup\\.com\/\\w+","//a[contains(@href,'fileupup.com/')]");
  5625. addObsoleteHost("forunesia\\.com\/\\w+","//a[contains(@href,'forunesia.com/')]");
  5626. addObsoleteHost("freeuploads\\.fr\/\\w+","//a[contains(@href,'freeuploads.fr/')]");
  5627. addObsoleteHost("uploa\\.dk\/\\w+","//a[contains(@href,'uploa.dk/')]");
  5628. addObsoleteHost("getthebit\\.com\/\\w+","//a[contains(@href,'getthebit.com/')]");
  5629. addObsoleteHost("getzilla\\.net\/\\w+","//a[contains(@href,'getzilla.net/')]");
  5630. addObsoleteHost("goldfile\\.eu\/\\w+","//a[contains(@href,'goldfile.eu/')]");
  5631. addObsoleteHost("good\\.com\/\\w+","//a[contains(@href,'good.com/')]");
  5632. addObsoleteHost("grupload\\.com\/\\w+","//a[contains(@href,'grupload.com/')]");
  5633. addObsoleteHost("hellfile\\.com\/\\w+","//a[contains(@href,'hellfile.com/')]");
  5634. addObsoleteHost("hipfile\\.com\/\\w+","//a[contains(@href,'hipfile.com/')]");
  5635. addObsoleteHost("hitfile\\.com\/\\w+","//a[contains(@href,'hitfile.com/')]");
  5636. addObsoleteHost("hulkfile\\.eu\/\\w+","//a[contains(@href,'hulkfile.eu/')]");
  5637. addObsoleteHost("i-filez\\.com\/\\w+","//a[contains(@href,'i-filez.com/')]");
  5638. addObsoleteHost("ifile\\.ws\/\\w+","//a[contains(@href,'ifile.ws/')]");
  5639. addObsoleteHost("kupload\\.org\/\\w+","//a[contains(@href,'kupload.org/')]");
  5640. addObsoleteHost("duckfile\\.net\/\\w+","//a[contains(@href,'duckfile.net/')]");
  5641. addObsoleteHost("packupload\\.com\/\\w+","//a[contains(@href,'packupload.com/')]");
  5642. addObsoleteHost("terafile\\.com\/\\w+","//a[contains(@href,'terafile.com/')]");
  5643. addObsoleteHost("terafile\\.co\/\\w+","//a[contains(@href,'terafile.co/')]");
  5644. addObsoleteHost("fileom\\.com\/\\w+","//a[contains(@href,'fileom.com/')]");
  5645. addObsoleteHost("luckyshare\\.net\/\\w+","//a[contains(@href,'luckyshare.net/')]");
  5646. addObsoleteHost("lemuploads\\.com\/\\w+","//a[contains(@href,'lemuploads.com/')]");
  5647. addObsoleteHost("limelinx\\.com\/\\w+","//a[contains(@href,'limelinx.com/')]");
  5648. addObsoleteHost("maxshare\\.pl\/\\w+","//a[contains(@href,'maxshare.pl/')]");
  5649. addObsoleteHost("megarelease\\.org\/\\w+","//a[contains(@href,'megarelease.org/')]");
  5650. addObsoleteHost("megashare\\.com\/\\w+","//a[contains(@href,'megashare.com/')]");
  5651. addObsoleteHost("minus\\.com\/\\w+","//a[contains(@href,'minus.com/')]");
  5652. addObsoleteHost("mlfat4arab\\.com\/\\w+","//a[contains(@href,'mlfat4arab.com/')]");
  5653. addObsoleteHost("multishare\\.cz\/\\w+","//a[contains(@href,'multishare.cz/')]");
  5654. addObsoleteHost("nirafile\\.com\/\\w+","//a[contains(@href,'nirafile.com/')]");
  5655. addObsoleteHost("ok2upload\\.com\/\\w+","//a[contains(@href,'ok2upload.com/')]");
  5656. addObsoleteHost("peejeshare\\.com\/\\w+","//a[contains(@href,'peejeshare.com/')]");
  5657. addObsoleteHost("premiuns\\.org\/\\w+","//a[contains(@href,'premiuns.org/')]");
  5658. addObsoleteHost("przeklej\\.net\/\\w+","//a[contains(@href,'przeklej.net/')]");
  5659. addObsoleteHost("qkup\\.net\/\\w+","//a[contains(@href,'qkup.net/')]");
  5660. addObsoleteHost("rapidupload\\.sk\/\\w+","//a[contains(@href,'rapidupload.sk/')]");
  5661. addObsoleteHost("rockdizfile\\.com\/\\w+","//a[contains(@href,'rockdizfile.com/')]");
  5662. addObsoleteHost("rocketfile\\.net\/\\w+","//a[contains(@href,'rocketfile.net/')]");
  5663. addObsoleteHost("share-now\\.net\/\\w+","//a[contains(@href,'share-now.net/')]");
  5664. addObsoleteHost("share76\\.com\/\\w+","//a[contains(@href,'share76.com/')]");
  5665. addObsoleteHost("sharebees\\.com\/\\w+","//a[contains(@href,'sharebees.com/')]");
  5666. addObsoleteHost("sharefiles\\.co\/\\w+","//a[contains(@href,'sharefiles.co/')]");
  5667. addObsoleteHost("slingfile\\.com\/\\w+","//a[contains(@href,'slingfile.com/')]");
  5668. addObsoleteHost("sms4file\\.com\/\\w+","//a[contains(@href,'sms4file.com/')]");
  5669. addObsoleteHost("space4file\\.com\/\\w+","//a[contains(@href,'space4file.com/')]");
  5670. addObsoleteHost("tigershare\\.net\/\\w+","//a[contains(@href,'tigershare.net/')]");
  5671. addObsoleteHost("toucansharing\\.com\/\\w+","//a[contains(@href,'toucansharing.com/')]");
  5672. addObsoleteHost("ubuntuone\\.com\/\\w+","//a[contains(@href,'ubuntuone.com/')]");
  5673. addObsoleteHost("unextfiles\\.com\/\\w+","//a[contains(@href,'unextfiles.com/')]");
  5674. addObsoleteHost("upaj\\.pl\/\\w+","//a[contains(@href,'upaj.pl/')]");
  5675. addObsoleteHost("upfile\\.biz\/\\w+","//a[contains(@href,'upfile.biz/')]");
  5676. addObsoleteHost("uploadbin\\.net\/\\w+","//a[contains(@href,'uploadbin.net/')]");
  5677. addObsoleteHost("uploadic\\.com\/\\w+","//a[contains(@href,'uploadic.com/')]");
  5678. addObsoleteHost("uploadinc\\.com\/\\w+","//a[contains(@href,'uploadinc.com/')]");
  5679. addObsoleteHost("uploading4u\\.eu\/\\w+","//a[contains(@href,'uploading4u.eu/')]");
  5680. addObsoleteHost("uploadjet\\.net\/\\w+","//a[contains(@href,'uploadjet.net/')]");
  5681. addObsoleteHost("uploadorb\\.com\/\\w+","//a[contains(@href,'uploadorb.com/')]");
  5682. addObsoleteHost("upthe\\.net\/\\w+","//a[contains(@href,'upthe.net/')]");
  5683. addObsoleteHost("uptorch\\.com\/\\w+","//a[contains(@href,'uptorch.com/')]");
  5684. addObsoleteHost("vidbox\\.yt\/\\w+","//a[contains(@href,'vidbox.yt/')]");
  5685. addObsoleteHost("videozer\\.com\/\\w+","//a[contains(@href,'videozer.com/')]");
  5686. addObsoleteHost("vreer\\.com\/\\w+","//a[contains(@href,'vreer.com/')]");
  5687. addObsoleteHost("wallobit\\.com\/\\w+","//a[contains(@href,'wallobit.com/')]");
  5688. addObsoleteHost("zooupload\\.com\/\\w+","//a[contains(@href,'zooupload.com/')]");
  5689. addObsoleteHost("xerver\\.co\/\\w+","//a[contains(@href,'xerver.co/')]");
  5690. addObsoleteHost("privatefiles\\.com\/\\w+","//a[contains(@href,'privatefiles.com/')]");
  5691. addObsoleteHost("bitshare\\.com\/\\w+","//a[contains(@href,'bitshare.com/')]");
  5692. addObsoleteHost("asfile\\.com\/\\w+","//a[contains(@href,'asfile.com/')]");
  5693. addObsoleteHost("billionuploads\\.com\/\\w+","//a[contains(@href,'billionuploads.com/')]");
  5694. addObsoleteHost("\\*{7,100}\/[\\w\\d]+","//a[contains(@href,'*******/')]");
  5695. addObsoleteHost("filesaur\\.com\/\\w+","//a[contains(@href,'filesaur.com/')]");
  5696. addObsoleteHost("rapidshare\\.com\/\\w+","//a[contains(@href,'rapidshare.com/')]");
  5697. addObsoleteHost("rapidshare\\.ru\/\\w+","//a[contains(@href,'rapidshare.ru/')]");
  5698. addObsoleteHost("filesfrog\\.net\/\\w+","//a[contains(@href,'filesfrog.net/')]");
  5699. addObsoleteHost("4savefile\\.com\/\\w+","//a[contains(@href,'4savefile.com/')]");
  5700. addObsoleteHost("bayfiles\\.com\/\\w+","//a[contains(@href,'bayfiles.com/')]");
  5701. addObsoleteHost("bayfiles\\.net\/\\w+","//a[contains(@href,'bayfiles.net/')]");
  5702. addObsoleteHost("dodane\\.pl\/\\w+","//a[contains(@href,'dodane.pl/')]");
  5703. addObsoleteHost("dotsemper\\.com\/\\w+","//a[contains(@href,'dotsemper.com/')]");
  5704. addObsoleteHost("egofiles\\.com\/\\w+","//a[contains(@href,'egofiles.com/')]");
  5705. addObsoleteHost("epicshare\\.net\/\\w+","//a[contains(@href,'epicshare.net/')]");
  5706. addObsoleteHost("fiberupload\\.net\/\\w+","//a[contains(@href,'fiberupload.net/')]");
  5707. addObsoleteHost("filemonkey\\.in\/\\w+","//a[contains(@href,'filemonkey.in/')]");
  5708. addObsoleteHost("filemonster\\.net\/\\w+","//a[contains(@href,'filemonster.net/')]");
  5709. addObsoleteHost("filepom\\.com\/\\w+","//a[contains(@href,'filepom.com/')]");
  5710. addObsoleteHost("filesbb\\.com\/\\w+","//a[contains(@href,'filesbb.com/')]");
  5711. addObsoleteHost("fileshareup\\.com\/\\w+","//a[contains(@href,'fileshareup.com/')]");
  5712. addObsoleteHost("filevice\\.com\/\\w+","//a[contains(@href,'filevice.com/')]");
  5713. addObsoleteHost("gigaup\\.fr\/\\w+","//a[contains(@href,'gigaup.fr/')]");
  5714. addObsoleteHost("isavelink\\.com\/\\w+","//a[contains(@href,'isavelink.com/')]");
  5715. addObsoleteHost("loombo\\.com\/\\w+","//a[contains(@href,'loombo.com/')]");
  5716. addObsoleteHost("megafiles\\.se\/\\w+","//a[contains(@href,'megafiles.se/')]");
  5717. addObsoleteHost("migupload\\.com\/\\w+","//a[contains(@href,'migupload.com/')]");
  5718. addObsoleteHost("mydisc\\.net\/\\w+","//a[contains(@href,'mydisc.net/')]");
  5719. addObsoleteHost("nitrobits\\.com\/\\w+","//a[contains(@href,'nitrobits.com/')]");
  5720. addObsoleteHost("potload\\.com\/\\w+","//a[contains(@href,'potload.com/')]");
  5721. addObsoleteHost("redload\\.net\/\\w+","//a[contains(@href,'redload.net/')]");
  5722. addObsoleteHost("shareprofi\\.com\/\\w+","//a[contains(@href,'shareprofi.com/')]");
  5723. addObsoleteHost("sharesuper\\.info\/\\w+","//a[contains(@href,'sharesuper.info/')]");
  5724. addObsoleteHost("sinhro\\.net\/\\w+","//a[contains(@href,'sinhro.net/')]");
  5725. addObsoleteHost("speedfile\\.cz\/\\w+","//a[contains(@href,'speedfile.cz/')]");
  5726. addObsoleteHost("speedshare\\.org\/\\w+","//a[contains(@href,'speedshare.org/')]");
  5727. addObsoleteHost("storage.novoro\\.net\/\\w+","//a[contains(@href,'storage.novoro.net/')]");
  5728. addObsoleteHost("swankshare\\.com\/\\w+","//a[contains(@href,'swankshare.com/')]");
  5729. addObsoleteHost("swatupload\\.com\/\\w+","//a[contains(@href,'swatupload.com/')]");
  5730. addObsoleteHost("upafile\\.com\/\\w+","//a[contains(@href,'upafile.com/')]");
  5731. addObsoleteHost("uploadmachine\\.com\/\\w+","//a[contains(@href,'uploadmachine.com/')]");
  5732. addObsoleteHost("uploadsat\\.com\/\\w+","//a[contains(@href,'uploadsat.com/')]");
  5733. addObsoleteHost("upshared\\.com\/\\w+","//a[contains(@href,'upshared.com/')]");
  5734. addObsoleteHost("usefile\\.com\/\\w+","//a[contains(@href,'usefile.com/')]");
  5735. addObsoleteHost("yourfiles\\.to\/\\w+","//a[contains(@href,'yourfiles.to/')]");
  5736. addObsoleteHost("zomgupload\\.com\/\\w+","//a[contains(@href,'zomgupload.com/')]");
  5737. addObsoleteHost("~[\\w\\s~]*","//a[contains(@href,'//~') or contains(@href,'//www.~')]");
  5738. addObsoleteHost("filemup\\.com\/\\w+","//a[contains(@href,'filemup.com/')]");
  5739. addObsoleteHost("tuxfile\\.com\/\\w+","//a[contains(@href,'tuxfile.com/')]");
  5740. addObsoleteHost("ultramegabit\\.com\/\\w+","//a[contains(@href,'ultramegabit.com/')]");
  5741. addObsoleteHost("uploadto\\.us\/\\w+","//a[contains(@href,'uploadto.us/')]");
  5742. addObsoleteHost("filecore\\.co\\.nz\/\\w+","//a[contains(@href,'filecore.co.nz/')]");
  5743. addObsoleteHost("fileshare\\.in\\.ua\/\\w+","//a[contains(@href,'fileshare.in.ua/')]");
  5744. addObsoleteHost("firedrive\\.com\/\\w+","//a[contains(@href,'firedrive.com/')]");
  5745. addObsoleteHost("putlocker\\.com\/\\w+","//a[contains(@href,'putlocker.com/')]");
  5746. addObsoleteHost("lumfile\\.com\/\\w+","//a[contains(@href,'lumfile.com/')]");
  5747. addObsoleteHost("lumfile\\.se\/\\w+","//a[contains(@href,'lumfile.se/')]");
  5748. addObsoleteHost("lumfile\\.eu\/\\w+","//a[contains(@href,'lumfile.eu/')]");
  5749. addObsoleteHost("shared\\.com\/\\w+","//a[contains(@href,'shared.com/')]");
  5750. addObsoleteHost("stahovadlo\\.cz\/\\w+","//a[contains(@href,'stahovadlo.cz/')]");
  5751. addObsoleteHost("dizzcloud\\.com\/\\w+","//a[contains(@href,'dizzcloud.com/')]");
  5752. addObsoleteHost("ddlstorage\\.com\/\\w+","//a[contains(@href,'ddlstorage.com/')]");
  5753. addObsoleteHost("dataport\\.cz\/\\w+","//a[contains(@href,'dataport.cz/')]");
  5754. addObsoleteHost("daj\\.to\/\\w+","//a[contains(@href,'daj.to/')]");
  5755. addObsoleteHost("sockshare\\.com\/\\w+","//a[contains(@href,'sockshare.com/')]");
  5756. addObsoleteHost("2drive\\.net\/\\w+","//a[contains(@href,'2drive.net/')]");
  5757. addObsoleteHost("bl\\.st\/\\w+","//a[contains(@href,'bl.st/')]");
  5758. addObsoleteHost("uncapped-downloads\\.com\/\\w+","//a[contains(@href,'uncapped-downloads.com/')]");
  5759. addObsoleteHost("freakshare\\.net\/\\w+","//a[contains(@href,'freakshare.net/')]");
  5760. addObsoleteHost("freakshare\\.com\/\\w+","//a[contains(@href,'freakshare.com/')]");
  5761. addObsoleteHost("sharebeast\\.com\/\\w+","//a[contains(@href,'sharebeast.com/')]");
  5762. addObsoleteHost("tufiles\\.ru\/\\w+","//a[contains(@href,'tufiles.ru/')]");
  5763. addObsoleteHost("crisshare\\.com\/\\w+","//a[contains(@href,'crisshare.com/')]");
  5764. addObsoleteHost("ryushare\\.com\/\\w+","//a[contains(@href,'ryushare.com/')]");
  5765. addObsoleteHost("burnupload\\.com\/\\w+","//a[contains(@href,'burnupload.com') or contains(@href,'burnupload.ihiphop.com')]");
  5766. addObsoleteHost("down4files\\.com\/\\w+","//a[contains(@href,'down4files.com/')]");
  5767. addObsoleteHost("edoc\\.com\/\\w+","//a[contains(@href,'edoc.com/')]");
  5768. addObsoleteHost("migahost\\.com\/\\w+","//a[contains(@href,'migahost.com/')]");
  5769. addObsoleteHost("movreel\\.com\/\\w+","//a[contains(@href,'movreel.com/')]");
  5770. addObsoleteHost("newfileland\\.com\/\\w+","//a[contains(@href,'newfileland.com/')]");
  5771. addObsoleteHost("jumbofile\\.net\/\\w+","//a[contains(@href,'jumbofile.net/')]");
  5772. addObsoleteHost("krotix\\.net\/\\w+","//a[contains(@href,'krotix.net/')]");
  5773. addObsoleteHost("cramit\\.in\/\\w+","//a[contains(@href,'cramitin.net') or contains(@href,'cramit.in')]");
  5774. addObsoleteHost("netload\\.in\/\\w+","//a[contains(@href,'netload.in/')]")
  5775. addObsoleteHost("quickshare\\.cz\/\\w+","//a[contains(@href,'quickshare.cz/')]");
  5776. addObsoleteHost("filepost\\.com\/\\w+","//a[contains(@href,'filepost.com/')]");
  5777. addObsoleteHost("uploadhero\\.com\/\\w+","//a[contains(@href,'uploadhero.com/')]");
  5778. addObsoleteHost("uploadhero\\.co\/\\w+","//a[contains(@href,'uploadhero.co/')]");
  5779. addObsoleteHost("inafile\\.com\/\\w+","//a[contains(@href,'inafile.com/')]");
  5780. addObsoleteHost("megairon\\.net\/\\w+","//a[contains(@href,'megairon.net/')]");
  5781. // obsolete start
  5782. }
  5783. //obsolete file hosts init end
  5784. //Add Host Example
  5785. /* if (GM_getValue("Check_datafile_dot_com_links", false))
  5786. {
  5787. addFileHost(
  5788. "datafile\.com\/\\w+",
  5789. 'var captchaPanel|<link href="/css/files_download.css"',
  5790. 'ErrorCode|ErrorCode 0: Invalid Link|btn-orange" href="#"',
  5791. 'You are downloading another file at this moment|You exceeded your free|Site Maintenance',
  5792. '<style type="text/css">',
  5793. "//a[contains(@href,'datafile.com')]",
  5794. true);
  5795. } */
  5796.  
  5797. function addFileHost(linkRegex, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, xpathEx, tryLoop)
  5798. {
  5799. var host = new Array(7);
  5800. host[0] = linkRegex;
  5801. host[1] = isAliveRegex;
  5802. host[2] = isDeadRegex;
  5803. host[3] = isUnavaRegex;
  5804. host[6] = ispremRegex;
  5805. host[4] = xpathEx;
  5806. tryLoop ? host[5] = true : host[5] = false;
  5807. http_file_hosts.push(host);
  5808. }
  5809. if (GM_getValue("Check_megafileupload_dot_com_links", false))
  5810. {
  5811. addFileHost(
  5812. "megafileupload\.com\/..\/file\/",
  5813. 'downloadbtn',
  5814. 'is not found',
  5815. 'optional--',
  5816. 'optional2--',
  5817. "//a[contains(@href,'megafileupload.com')]");
  5818. }
  5819. if (GM_getValue("Check_demo_dot_ovh_dot_eu_links", false))
  5820. {
  5821. addFileHost(
  5822. "demo\\.ovh\\.eu\/\\w+\/\\w+",
  5823. 'download\\.gif"',
  5824. 'p_point">',
  5825. 'optional--',
  5826. 'optional2--',
  5827. "//a[contains(@href,'demo.ovh.eu')]");
  5828. }
  5829. if (GM_getValue("Check_xkeepfile_dot_com_links", false))
  5830. {
  5831. addFileHost(
  5832. "xkeepfile\.com\/\\w+",
  5833. 'File has been found|Click here to download',
  5834. 'File cannot be found|class="error">',
  5835. 'optional--',
  5836. 'optional2--',
  5837. "//a[contains(@href,'xkeepfile.com/') or contains(@href,'Gamesena.com/')]");
  5838. }
  5839. if (GM_getValue("Check_safelinking_dot_net_links", false))
  5840. {
  5841. addFileHost(
  5842. "safelinking\\.net\/p\/\\w+",
  5843. 'color:green;"',
  5844. 'color:(?:red|orange);"',
  5845. 'color:(?:grey|brown);"',
  5846. 'optional2--',
  5847. "//a[contains(@href,'safelinking.net/p/')]",
  5848. true);
  5849. }
  5850. if (GM_getValue("Check_fastshare_dot_cz_links", false))
  5851. {
  5852. addFileHost(
  5853. "fastshare\\.cz\/\\d+\/\\w*",
  5854. 'dwntable">',
  5855. 'nebyla nalezena|nebola nájdená|nie została odnaleziona|color:red;font-weight:bold;border\\-style:dashed|<i class="fa fa-copyright"></i>',
  5856. 'optional--',
  5857. 'optional2--',
  5858. "//a[contains(@href,'fastshare.cz')]");
  5859. }
  5860. if (GM_getValue("Check_fastshare_dot_org_links", false))
  5861. {
  5862. addFileHost(
  5863. "[fF]ast[sS]hare\\.org\/download",
  5864. 'Download ">',
  5865. 'Diese Datei wurde wegen|wurde kein Dateiname',
  5866. 'optional--',
  5867. 'optional2--',
  5868. "//a[contains(@href,'fastshare.org/download') or contains(@href,'FastShare.org/download')]");
  5869. }
  5870. if (GM_getValue("Check_partage_dash_facile_dot_com_links", false))
  5871. {
  5872. addFileHost(
  5873. "partage-facile\.com\/\\w+",
  5874. 'class="title"><strong>|colspan="2"',
  5875. 'Page introuvable|class="alert-message',
  5876. 'optional--',
  5877. 'optional2--',
  5878. "//a[contains(@href,'partage-facile.com')]");
  5879. }
  5880. if (GM_getValue("Check_rapidgator_dot_net_links", false))
  5881. {
  5882. addFileHost(
  5883. "rapidgator\\.net\/file\/\\w+",
  5884. '/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',
  5885. 'Error 404|File not found|Error 500|Файл не найден|ファイルが探せませんでした|Fichier non trouvé|Archivo no encontrado|Select your plan',
  5886. 'optional--',
  5887. 'can be downloaded by premium only|files up to 500 MB in free mode|files up to 1 GB in free mode',
  5888. "//a[contains(@href,'rapidgator.net/file')]",
  5889. true
  5890. );
  5891. }
  5892. if (GM_getValue("Check_relink_dot_us_links", false))
  5893. {
  5894. addFileHost(
  5895. "relink\\.us\/(?:f\/\\w+|go\\.php\\?id=\\d+|view\\.php\\?id=\\d+)",
  5896. 'online_detail\\.png" alt="Status',
  5897. '(?:offline|partially)_detail\\.png" alt="Status|File deleted',
  5898. 'unknown_detail\\.png" alt="Status',
  5899. 'optional2--',
  5900. "//a[contains(@href,'relink.us/')]"
  5901. );
  5902. }
  5903. if (GM_getValue("Check_uploadstube_dot_de_links", false))
  5904. {
  5905. addFileHost(
  5906. "uploadstube\\.de\/download\\.php\\?file=\\d+",
  5907. 'div id="dl"',
  5908. 'Sie haben den Link falsch',
  5909. 'optional--',
  5910. 'optional2--',
  5911. "//a[contains(@href,'uploadstube.de/download.php?file=')]"
  5912. );
  5913. }
  5914. if (GM_getValue("Check_flyfiles_dot_net_links", false))
  5915. {
  5916. addFileHost(
  5917. "flyfiles\\.net\/\\w+",
  5918. 'download_button"|"Download file"',
  5919. 'File not found!|Файл не найден',
  5920. 'optional--',
  5921. 'optional2--',
  5922. "//a[contains(@href,'flyfiles.net/')]"
  5923. );
  5924. }
  5925. if (GM_getValue("Check_wikiupload_dot_com_links", false))
  5926. {
  5927. addFileHost(
  5928. "wikiupload\\.com\/\\w+",
  5929. 'download-button">',
  5930. 'Sorry, File not found',
  5931. 'optional--',
  5932. 'optional2--',
  5933. "//a[contains(@href,'wikiupload.com/')]"
  5934. );
  5935. }
  5936. if (GM_getValue("Check_hostuje_dot_net_links", false))
  5937. {
  5938. addFileHost(
  5939. "hostuje\\.net\/file\\.php\\?id=\\w+",
  5940. 'file\\.php">|Pobierz Plik',
  5941. 'Podany plik nie zosta',
  5942. 'optional--',
  5943. 'optional2--',
  5944. "//a[contains(@href,'hostuje.net/file')]"
  5945. );
  5946. }
  5947. if (GM_getValue("Check_gettyfile_dot_ru_links", false))
  5948. {
  5949. addFileHost(
  5950. "gettyfile\\.ru\/\\d+",
  5951. 'download\\.gif border',
  5952. '<center><font size="3">',
  5953. 'optional--',
  5954. 'optional2--',
  5955. "//a[contains(@href,'gettyfile.ru/')]"
  5956. );
  5957. }
  5958. if (GM_getValue("Check_turbobit_dot_ru_links", false))
  5959. {
  5960. addFileHost(
  5961. "(?:turbob1t|failoobmenik|filesmail|firebit|dlbit|files\\.china\\-gsm|3aka4aem|file\\.piratski|mnogofiles|links-free|turbo-bit|turbosfiles)\\.\\w+\/\\w+",
  5962. 'download\\-file">',
  5963. 'col-1">\\s*<h1>',
  5964. 'optional--',
  5965. 'optional2--',
  5966. "//a[contains(@href,'turbobit.ru/') or contains(@href,'filesmail.ru/') or contains(@href,'failoobmenik.ru/')"+
  5967. " or contains(@href,'firebit.in/') or contains(@href,'dlbit.net/') or contains(@href,'files.china-gsm.ru/') or contains(@href,'3aka4aem.ru/')"+
  5968. " or contains(@href,'file.piratski.ru/') or contains(@href,'mnogofiles.com/') or contains(@href,'links-free.ru/')"+
  5969. " or contains(@href,'turbo-bit.ru/') or contains(@href,'turbosfiles.ru/')]"
  5970. );
  5971. }
  5972. if (GM_getValue("Check_data_dot_hu_links", false))
  5973. {
  5974. addFileHost(
  5975. "data\\.hu\/get\/\\d+\/",
  5976. 'download_box_button',
  5977. 'missing\\.php',
  5978. 'optional--',
  5979. 'optional2--',
  5980. "//a[contains(@href,'data.hu/get')]",
  5981. true
  5982. );
  5983. }
  5984. if (GM_getValue("Check_filesmelt_dot_com_links", false))
  5985. {
  5986. addFileHost(
  5987. "filesmelt\\.com\/dl\/\\w+",
  5988. '(Your download is ready|Download File)',
  5989. 'Sorry, but your',
  5990. 'optional--',
  5991. 'optional2--',
  5992. "//a[contains(@href,'filesmelt.com/dl')]"
  5993. );
  5994. }
  5995. if (GM_getValue("Check_indowebster_dot_com_links", false))
  5996. {
  5997. addFileHost(
  5998. "(?:files\\.)?indowebster\\.com\/download\/\\w+\/",
  5999. 'premiumBtn"',
  6000. 'errorMessage"',
  6001. 'optional--',
  6002. 'optional2--',
  6003. "//a[contains(@href,'indowebster.com/download')]"
  6004. );
  6005. }
  6006. if (GM_getValue("Check_superload_dot_cz_links", false))
  6007. {
  6008. addFileHost(
  6009. "superload\\.cz\/dl\/\\w+",
  6010. 'icon-download">',
  6011. 'soubor nebyl nalezen',
  6012. 'optional--',
  6013. 'optional2--',
  6014. "//a[contains(@href,'superload.cz/dl')]"
  6015. );
  6016. }
  6017. if (GM_getValue("Check_hulkfile_dot_eu_links", false))
  6018. {
  6019. addFileHost(
  6020. "(?:w\\.hulkfile\\.com|hulkfile\\.eu)\/\\w+",
  6021. 'op" value="download',
  6022. 'class="err">|width:500px;text-align:left;">',
  6023. 'optional--',
  6024. 'optional2--',
  6025. "//a[contains(@href,'hulkfile.')]"
  6026. );
  6027. }
  6028. if (GM_getValue("Check_easybytez_dot_com_links", false))
  6029. {
  6030. addFileHost(
  6031. "easybytez\\.com\/\\w+",
  6032. 'op" value="download',
  6033. 'stop_error\\.gif',
  6034. 'optional--',
  6035. 'optional2--',
  6036. "//a[contains(@href,'easybytez.com/')]"
  6037. );
  6038. }
  6039. if (GM_getValue("Check_filestore_dot_com_dot_ua_links", false))
  6040. {
  6041. addFileHost(
  6042. "filestore\\.com\\.ua\/\\?d=\\w+",
  6043. 'tdrow1>',
  6044. 'class=warn',
  6045. 'optional--',
  6046. 'optional2--',
  6047. "//a[contains(@href,'filestore.com.ua/?d=')]"
  6048. );
  6049. }
  6050. if (GM_getValue("Check_netkups_dot_com_links", false))
  6051. {
  6052. addFileHost(
  6053. "netkups\\.com\/\\?d=\\w+",
  6054. 'submit">Continue',
  6055. 'page">File not found|deleted due to inactivity',
  6056. 'optional--',
  6057. 'optional2--',
  6058. "//a[contains(@href,'netkups.com/?d=')]"
  6059. );
  6060. }
  6061. if (GM_getValue("Check_openfile_dot_ru_links", false))
  6062. {
  6063. addFileHost(
  6064. "openfile\\.ru\/(?:video\/|)\\d+",
  6065. 'videobox_left">',
  6066. 'blog_title">|not found on this server',
  6067. 'optional--',
  6068. 'optional2--',
  6069. "//a[contains(@href,'openfile.ru/')]"
  6070. );
  6071. }
  6072. if (GM_getValue("Check_extmatrix_dot_com_links", false))
  6073. {
  6074. addFileHost(
  6075. "extmatrix\\.com\/files\/\\w+",
  6076. 'div class="success"',
  6077. 'div class="error"',
  6078. 'optional--',
  6079. 'optional2--',
  6080. "//a[contains(@href,'extmatrix.com/files')]"
  6081. );
  6082. }
  6083. if (GM_getValue("Check_sendfiles_dot_nl_links", false))
  6084. {
  6085. addFileHost(
  6086. "sendfiles\\.nl\/download.aspx\\?ID=\\w+",
  6087. 'content_lnkDownload',
  6088. 'error\\.aspx\\?',
  6089. 'optional--',
  6090. 'optional2--',
  6091. "//a[contains(@href,'sendfiles.nl/download.aspx')]"
  6092. );
  6093. }
  6094. if (GM_getValue("Check_yourfilestore_dot_com_links", false))
  6095. {
  6096. addFileHost(
  6097. "yourfilestore\\.com\/download\/\\d+\/",
  6098. 'download_data">',
  6099. 'may have been deleted|<h1>Sorry!<\/h1>',
  6100. 'optional--',
  6101. 'optional2--',
  6102. "//a[contains(@href,'yourfilestore.com/download')]"
  6103. );
  6104. }
  6105. if (GM_getValue("Check_nekaka_dot_com_links", false))
  6106. {
  6107. addFileHost(
  6108. "nekaka\\.com\/d\/[\\w-]+",
  6109. 'downloadForm">',
  6110. 'invalid file link',
  6111. 'optional--',
  6112. 'optional2--',
  6113. "//a[contains(@href,'nekaka.com/d')]"
  6114. );
  6115. }
  6116. if (GM_getValue("Check_filebig_dot_net_links", false))
  6117. {
  6118. addFileHost(
  6119. "filebig\\.net\/files\/\\w+",
  6120. 'downloadFile">',
  6121. '<p>File not found<\/p>',
  6122. 'optional--',
  6123. 'optional2--',
  6124. "//a[contains(@href,'filebig.net/files')]"
  6125. );
  6126. }
  6127. if (GM_getValue("Check_gamefront_dot_com_links", false))
  6128. {
  6129. addFileHost(
  6130. "files\\.filefront\\.com\/\/;\\d+;;",
  6131. 'downloadLink">',
  6132. 'File not found, you',
  6133. 'optional--',
  6134. 'optional2--',
  6135. "//a[contains(@href,'files.filefront.com')]"
  6136. );
  6137.  
  6138. addFileHost(
  6139. "gamefront\\.com\/files\/\\d+",
  6140. 'downloadLink">',
  6141. 'File not found, you',
  6142. 'optional--',
  6143. 'optional2--',
  6144. "//a[contains(@href,'gamefront.com/files')]"
  6145. );
  6146. }
  6147. if (GM_getValue("Check_hyperfileshare_dot_com_links", false))
  6148. {
  6149. addFileHost(
  6150. "(?:download\\.|)hyperfileshare\\.com\/(?:download\\.php\\?code=|d\/)\\w+",
  6151. 'dnlLnk"',
  6152. 'already been deleted',
  6153. 'optional--',
  6154. 'optional2--',
  6155. "//a[contains(@href,'hyperfileshare.com/download') or contains(@href,'hyperfileshare.com/d')]"
  6156. );
  6157. }
  6158. if (GM_getValue("Check_hellupload_dot_com_links", false))
  6159. {
  6160. addFileHost(
  6161. "hellupload\\.com\/\\w+",
  6162. '<h3>Download File<br',
  6163. 'id="podstrona">|AVOID_IE_BUG',
  6164. 'optional--',
  6165. 'optional2--',
  6166. "//a[contains(@href,'hellupload.com/')]"
  6167. );
  6168. }
  6169. if (GM_getValue("Check_free_dash_uploading_dot_com_links", false))
  6170. {
  6171. addFileHost(
  6172. "free\\-uploading\\.com\/\\w+",
  6173. 'op" value="download',
  6174. 'class="err">|width:500px;text-align:left;">',
  6175. 'optional--',
  6176. 'optional2--',
  6177. "//a[contains(@href,'free-uploading.com/')]"
  6178. );
  6179. }
  6180. if (GM_getValue("Check_fileape_dot_com_links", false))
  6181. {
  6182. addFileHost(
  6183. "fileape\\.com\/download\\-",
  6184. 'button_dl\\.png',
  6185. 'does not exist\\.',
  6186. 'optional--',
  6187. 'optional2--',
  6188. "//a[contains(@href,'fileape.com/')]"
  6189. );
  6190. }
  6191. if (GM_getValue("Check_uppit_dot_com_links", false))
  6192. {
  6193. addFileHost(
  6194. "(?:uppit\\.com|up\\.ht)\/\\w+",
  6195. 'op" value="download',
  6196. 'class="err">|style="width:500px;text-align:left;"|fish-404\\.png"',
  6197. 'optional--',
  6198. 'optional2--',
  6199. "//a[contains(@href,'up.ht/') or contains(@href,'uppit.com/')]",
  6200. true
  6201. );
  6202. }
  6203. if (GM_getValue("Check_nosupload_dot_com_links", false))
  6204. {
  6205. addFileHost(
  6206. "nosupload\\.com\/(?:\\?d=)?\\w+",
  6207. 'op" value="download',
  6208. '>File Not Found<',
  6209. 'optional--',
  6210. 'optional2--',
  6211. "//a[contains(@href,'nosupload.com')]",
  6212. true
  6213. );
  6214. }
  6215. if (GM_getValue("Check_filesin_dot_com_links", false))
  6216. {
  6217. addFileHost(
  6218. "filesin\\.com\/\\w+\/download\\.html",
  6219. 'download_area">',
  6220. 'error_note">',
  6221. 'optional--',
  6222. 'optional2--',
  6223. "//a[contains(@href,'filesin.com/')]",
  6224. true
  6225. );
  6226. }
  6227. if (GM_getValue("Check_nowdownload_dot_ch_links", false))
  6228. {
  6229. addFileHost(
  6230. "nowdownload\\.ch\/dl\/\\w+",
  6231. 'alert-success"',
  6232. 'This file does not exist!',
  6233. 'The file is being transfered',
  6234. 'optional2--',
  6235. "//a[contains(@href,'nowdownload.ch/dl')]"
  6236. );
  6237. }
  6238. if (GM_getValue("Check_axifile_dot_com_links", false))
  6239. {
  6240. addFileHost(
  6241. "axifile\\.com(?:\/\w(2))?\/\\??\\w+",
  6242. 'Dbutton_big"',
  6243. 'download\\-error\\.php',
  6244. 'optional--',
  6245. 'optional2--',
  6246. "//a[contains(@href,'axifile.com/')]"
  6247. );
  6248. }
  6249. if (GM_getValue("Check_hulkshare_dot_com_links", false))
  6250. {
  6251. addFileHost(
  6252. "hulkshare\.com\/\\w+",
  6253. 'download\.sam\.png|This is a private file|id="filename',
  6254. 'File does not exist|fingerprint protected copyright',
  6255. 'optional--',
  6256. 'optional2--',
  6257. "//a[contains(@href,'hulkshare.com')]"
  6258. );
  6259. }
  6260. if (GM_getValue("Check_turbobit_dot_net_links", false)) //folders
  6261. {
  6262. addFileHost(
  6263. "turbobit\\.(?:net|pl)\/download\/folder\/\\d+",
  6264. 'col-1">\\s*<s',
  6265. 'col-1">\\s*<h',
  6266. 'optional--',
  6267. 'optional2--',
  6268. "//a[contains(@href,'turbobit.') and contains(@href,'download/folder')]"
  6269. );
  6270. }
  6271. if (GM_getValue("Check_turbobit_dot_net_links", false)) //folders
  6272. {
  6273. addFileHost(
  6274. "turbobit\\.(?:net|pl)",
  6275. 'id="download-gate-info',
  6276. 'afterWait()',
  6277. 'optional--',
  6278. 'optional2--',
  6279. "//a[contains(@href,'turbobit.net')]"
  6280. );
  6281. }
  6282. if (GM_getValue("Check_hitfile_dot_net_links", false)) //folders
  6283. {
  6284. addFileHost(
  6285. "hitfile\\.net\/download\/folder\/\\d+",
  6286. 'content">\\s*<s',
  6287. 'content">\\s*<h',
  6288. 'optional--',
  6289. 'optional2--',
  6290. "//a[contains(@href,'hitfile.net/download/folder')]"
  6291. );
  6292. }
  6293. if (GM_getValue("Check_movshare_dot_net_links", false))
  6294. {
  6295. addFileHost(
  6296. "movshare\\.net\\/video\\/\\w+",
  6297. 'optional--"',
  6298. 'no longer exists',
  6299. 'optional--',
  6300. 'optional2--',
  6301. "//a[contains(@href,'movshare.net/video')]"
  6302. );
  6303. }
  6304. if (GM_getValue("Check_plunder_dot_com_links", false))
  6305. {
  6306. addFileHost(
  6307. "plunder\.com\/\\w+",
  6308. 'x\/download\\.gif',
  6309. '404 - File or directory not found.',
  6310. 'optional--',
  6311. 'optional2--',
  6312. "//a[contains(@href,'plunder.com')]"
  6313. );
  6314. }
  6315. if (GM_getValue("Check_mafiastorage_dot_com_links", false))
  6316. {
  6317. addFileHost(
  6318. "mafiastorage\\.com\/\\w+",
  6319. 'op" value="download',
  6320. 'class="err">|style="width:500px;text-align:left;"',
  6321. 'optional--',
  6322. 'optional2--',
  6323. "//a[contains(@href,'mafiastorage.com/')]"
  6324. );
  6325. }
  6326. if (GM_getValue("Check_uploadspace_dot_pl_links", false))
  6327. {
  6328. addFileHost(
  6329. "uploadspace\.pl\/plik\\w+",
  6330. 'Downloading .+? \\|',
  6331. 'Downloading a file',
  6332. 'optional--',
  6333. 'optional2--',
  6334. "//a[contains(@href,'uploadspace.pl/plik')]"
  6335. );
  6336. }
  6337. if (GM_getValue("Check_uploadingit_dot_com_links", false))
  6338. {
  6339. addFileHost(
  6340. "uploadingit\\.com\/file\/\\w+",
  6341. 'downloadTitle">',
  6342. 'deleteContent">',
  6343. 'optional--',
  6344. 'optional2--',
  6345. "//a[contains(@href,'uploadingit.com/file')]"
  6346. );
  6347. }
  6348. if (GM_getValue("Check_rghost_dot_net_links", false))
  6349. {
  6350. addFileHost(
  6351. "rghost\.(?:net|ru)\/(?:|private\/)\\d+",
  6352. 'download_link|btn large download',
  6353. 'file is restricted|File is deleted|503 Service Unavailable',
  6354. 'optional--',
  6355. 'optional2--',
  6356. "//a[contains(@href,'rghost.')]"
  6357. );
  6358. }
  6359. if (GM_getValue("Check_xdisk_dot_cz_links", false))
  6360. {
  6361. addFileHost(
  6362. "xdisk\\.cz\/(?:..\/)?download\\.php\\?id=\\w+",
  6363. '">Staženo:\\s*<\/span>',
  6364. 'Soubor, který hledáte nenalezen',
  6365. 'optional--',
  6366. 'optional2--',
  6367. "//a[contains(@href,'xdisk.cz/')]"
  6368. );
  6369. }
  6370. if (GM_getValue("Check_expressleech_dot_com_links", false))
  6371. {
  6372. addFileHost(
  6373. "expressleech\.com\/\\w+",
  6374. 'src="/img/Download.gif"|var _gaq =',
  6375. 'var rr =|403 Forbidden',
  6376. 'optional--',
  6377. 'optional2--',
  6378. "//a[contains(@href,'expressleech.com')]");
  6379. }
  6380. if (GM_getValue("Check_2downloadz_dot_com_links", false))
  6381. {
  6382. addFileHost(
  6383. "2downloadz\.com\/\\w+",
  6384. 'color="#848484|src="images/Download.png"|color:#238DCA',
  6385. 'color="#006DCC|File error',
  6386. 'optional--',
  6387. 'optional2--',
  6388. "//a[contains(@href,'2downloadz.com')]");
  6389. }
  6390. if (GM_getValue("Check_mightyupload_dot_com_links", false))
  6391. {
  6392. addFileHost(
  6393. "mightyupload\.com\/\\w+",
  6394. 'background:#ccc;text-align|CONTENT="Download File"',
  6395. 'style="background:#eee|var rr =|File Not Found',
  6396. 'error-code">1010',
  6397. 'optional2--',
  6398. "//a[contains(@href,'mightyupload.com')]");
  6399. }
  6400. if (GM_getValue("Check_anysend_dot_com_links", false))
  6401. {
  6402. addFileHost(
  6403. "anysend\.com\/\\w+",
  6404. 'var openCalled=false;|content="noindex"',
  6405. '_trackPageview',
  6406. 'optional--',
  6407. 'optional2--',
  6408. "//a[contains(@href,'anysend.com')]");
  6409. }
  6410. if (GM_getValue("Check_datafile_dot_com_links", false))
  6411. {
  6412. addFileHost(
  6413. "datafile\.com\/\\w+",
  6414. 'var captchaPanel', //|<link href="/css/files_download.css"',
  6415. 'ErrorCode|ErrorCode 0: Invalid Link|btn-orange" href="#"',
  6416. 'You are downloading another file at this moment|You exceeded your free|Site Maintenance',
  6417. '; display:none;">|<a style="margin-top: auto; margin-bottom: auto;" class="get-premium-button" href="javascript:void(0)">', //<style type="text/css">
  6418. "//a[contains(@href,'datafile.com')]",
  6419. true);
  6420. }
  6421. if (GM_getValue("Check_upstore_dot_net_links", false))
  6422. {
  6423. addFileHost(
  6424. "upstore\.net\/\\w+",
  6425. 'style="margin-top: 20px">|style="text-align:center; margin: 20px 0 100px;">',
  6426. 'File not found|onload="redirect|class="error">',
  6427. 'optional--',
  6428. 'optional2--',
  6429. "//a[contains(@href,'upstore.net')]");
  6430. }
  6431. if (GM_getValue("Check_upsto_dot_re_links", false))
  6432. {
  6433. addFileHost(
  6434. "upsto\.re\/\\w+",
  6435. 'style="margin-top: 20px">|style="text-align:center; margin: 20px 0 100px;">',
  6436. 'File not found|onload="redirect|class="error">',
  6437. 'optional--',
  6438. 'optional2--',
  6439. "//a[contains(@href,'upsto.re')]");
  6440. }
  6441. if (GM_getValue("Check_speedy_dot_sh_links", false))
  6442. {
  6443. addFileHost(
  6444. "speedy\.sh\/\\w+",
  6445. 'bgcolor=#eeeeee|class="addthis',
  6446. 'File not found|downloadfilenamenotfound>',
  6447. 'optional--',
  6448. 'optional2--',
  6449. "//a[contains(@href,'speedy.sh')]");
  6450. }
  6451. if (GM_getValue("Check_sanshare_dot_com_links", false))
  6452. {
  6453. addFileHost(
  6454. "sanshare\.com\/\\w+",
  6455. 'SANSHARE_TOPBANNER|offset-1"><h3><b>Download File',
  6456. 'offset-1"><b>File Not Found<|width:500px;text-align',
  6457. 'optional--',
  6458. 'optional2--',
  6459. "//a[contains(@href,'sanshare.com')]");
  6460. }
  6461. if (GM_getValue("Check_kingfiles_dot_net_links", false))
  6462. {
  6463. addFileHost(
  6464. "kingfiles\.net\/\\w+",
  6465. 'method_free',
  6466. 'var rr =|"description" CONTENT="Download File ">|<div style="width:500px;text-align:left;">|The file was removed by administrator',
  6467. 'optional--',
  6468. 'optional2--',
  6469. "//a[contains(@href,'kingfiles.net')]");
  6470. }
  6471. /* if (GM_getValue("Check_uploadhero_dot_co_links", false))
  6472. {
  6473. addFileHost(
  6474. "uploadhero\\.co\/dl\/\\w+",
  6475. 'class="nom_de_fichier"|Unlimited downloads|Estimated download time|Lien de téléchargement"',
  6476. 'not available on our server|pas disponible sur nos serveurs|Le lien du fichier est incorrect',
  6477. 'optional--',
  6478. 'optional2--',
  6479. "//a[contains(@href,'uploadhero.co/dl')]"
  6480. );
  6481. } */
  6482. if (GM_getValue("Check_secureupload_dot_eu_links", false))
  6483. {
  6484. addFileHost(
  6485. "secureupload\\.eu\/\\w+",
  6486. 'Downloading',
  6487. 'cannot be found|File Not Found|could not be found',
  6488. 'optional--',
  6489. 'optional2--',
  6490. "//a[contains(@href,'secureupload.eu')]"
  6491. );
  6492. }
  6493. if (GM_getValue("Check_ge_dot_tt_links", false))
  6494. {
  6495. addFileHost(
  6496. "ge\.tt\/\\w+",
  6497. 'downloads pic',
  6498. 'is NOT the same as',
  6499. 'optional--',
  6500. 'optional2--',
  6501. "//a[contains(@href,'ge.tt')]");
  6502. }
  6503. if (GM_getValue("Check_filefactory_dot_com_links", false))
  6504. {
  6505. addFileHost(
  6506. "filefactory\.com\/\\w+",
  6507. 'div id="file_holder"|download.css',
  6508. 'File Removed|Invalid Download Link|File Unavailable|Server Failed|Datei entfernt|This file has been removed|Invalid Download Link',
  6509. 'Server Maintenance|temporarily overloaded',
  6510. 'optional2--',
  6511. "//a[contains(@href,'filefactory.com')]");
  6512. }
  6513. if (GM_getValue("Check_filesflash_dot_net_links", false))
  6514. {
  6515. addFileHost(
  6516. "filesflash\.net\/\\w+",
  6517. 'align:right">Filename:',
  6518. 'class="msg">',
  6519. 'optional--',
  6520. 'optional2--',
  6521. "//a[contains(@href,'filesflash.net')]");
  6522. }
  6523. if (GM_getValue("Check_rapidgator_dot_net_links", false)) //folders
  6524. {
  6525. addFileHost(
  6526. "rapidgator\\.net\/folder\/\\w+",
  6527. 'href="/folder/',
  6528. 'class="empty|Folder not found|Carpeta no encontrada|Dossier non trouvé|Папка не найдена',
  6529. 'optional--',
  6530. 'optional2--',
  6531. "//a[contains(@href,'rapidgator.net/folder')]",
  6532. true
  6533. );
  6534. }
  6535. if (GM_getValue("Check_salefiles_dot_com_links", false))
  6536. {
  6537. addFileHost(
  6538. "salefiles\.com\/\\w+",
  6539. '<Title>Download|CONTENT="Download',
  6540. 'font:15px Arial|background:#eee;',
  6541. 'optional--',
  6542. 'optional2--',
  6543. "//a[contains(@href,'salefiles.com')]");
  6544. }
  6545. /* if (GM_getValue("Check_megairon_dot_net_links", false))
  6546. {
  6547. addFileHost(
  6548. "megairon\.net\/\\w+",
  6549. 'border: 5px #ffeb90 solid;',
  6550. 'CONTENT="Download File ">|var rr =',
  6551. 'error-code">523',
  6552. 'optional2--',
  6553. "//a[contains(@href,'megairon.net')]",
  6554. true);
  6555. } */
  6556. if (GM_getValue("Check_datoid_dot_cz_links", false))
  6557. {
  6558. addFileHost(
  6559. "datoid\.cz\/\\w+",
  6560. 'btn-download|class="icon-download-large"',
  6561. 'Stránka nenalezena|error-404|Soubor byl zablokován',
  6562. 'optional--',
  6563. 'optional2--',
  6564. "//a[contains(@href,'datoid.cz')]");
  6565. }
  6566. if (GM_getValue("Check_stiahni_dot_si_links", false))
  6567. {
  6568. addFileHost(
  6569. "stiahni\.si\/\\w+",
  6570. 'report_icon.png"|slow-download-button',
  6571. 'none.png|deleted|<h2>Error 500</h2>',
  6572. 'optional--',
  6573. 'optional2--',
  6574. "//a[contains(@href,'stiahni.si')]");
  6575. }
  6576. if (GM_getValue("Check_cloudstor_dot_es_links", false))
  6577. {
  6578. addFileHost(
  6579. "cloudstor\.es\/\\w+",
  6580. '"btn_download"',
  6581. '404: Page Not Found',
  6582. 'optional--',
  6583. 'optional2--',
  6584. "//a[contains(@href,'cloudstor.es')]");
  6585. }
  6586. if (GM_getValue("Check_streamfile_dot_com_links", false))
  6587. {
  6588. addFileHost(
  6589. "streamfile\.com\/\\w+",
  6590. 'class="btn',
  6591. 'class="green-btn',
  6592. 'optional--',
  6593. 'optional2--',
  6594. "//a[contains(@href,'streamfile.com')]");
  6595. }
  6596. if (GM_getValue("Check_eyesfile_dot_ca_links", false))
  6597. {
  6598. addFileHost(
  6599. "eyesfile\.ca\/\\w+",
  6600. 'value="Get Link',
  6601. 'var rr =',
  6602. 'optional--',
  6603. 'optional2--',
  6604. "//a[contains(@href,'eyesfile.ca')]");
  6605. }
  6606. if (GM_getValue("Check_filemoney_dot_com_links", false))
  6607. {
  6608. addFileHost(
  6609. "filemoney\.com\/\\w+",
  6610. 'og:title',
  6611. '404 Not Found|<Title>FileMoney|File Not Found|class="err">DMCA</b>',
  6612. 'error-code">1010',
  6613. 'optional2--',
  6614. "//a[contains(@href,'filemoney.com')]");
  6615. }
  6616. if (GM_getValue("Check_uploadboy_dot_com_links", false))
  6617. {
  6618. addFileHost(
  6619. "uploadboy\.com\/\\w+",
  6620. 'width="740">|method_free',
  6621. 'var rr =|background:#ffffff|not be found|file was removed',
  6622. 'optional--',
  6623. 'optional2--',
  6624. "//a[contains(@href,'uploadboy.com')]");
  6625. }
  6626. if (GM_getValue("Check_speedshare_dot_eu_links", false))
  6627. {
  6628. addFileHost(
  6629. "speedshare\.eu\/\\w+",
  6630. 'favicon.png|color:#3d87c0|cross.png"',
  6631. 'var rr =|File Not Found|style="background:#eee',
  6632. 'optional--',
  6633. 'optional2--',
  6634. "//a[contains(@href,'speedshare.eu')]");
  6635. }
  6636. if (GM_getValue("Check_unlimitzone_dot_com_links", false))
  6637. {
  6638. addFileHost(
  6639. "unlimitzone\.com\/\\w+",
  6640. 'name="method_free',
  6641. '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',
  6642. 'optional--',
  6643. 'optional2--',
  6644. "//a[contains(@href,'unlimitzone.com')]");
  6645. }
  6646. if (GM_getValue("Check_rioupload_dot_com_links", false))
  6647. {
  6648. addFileHost(
  6649. "rioupload\.com\/\\w+",
  6650. 'sell.jpg',
  6651. 'var rr =',
  6652. 'optional--',
  6653. 'optional2--',
  6654. "//a[contains(@href,'rioupload.com')]");
  6655. }
  6656. if (GM_getValue("Check_rg_dot_to_links", false))
  6657. {
  6658. addFileHost(
  6659. "rg\.to\/\\w+",
  6660. '/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',
  6661. 'Error 404|File not found|Select your plan|Fichier non trouvé|Archivo no encontrado|ファイルが探せませんでした|Файл не найден',
  6662. 'optional--',
  6663. 'can be downloaded by premium only|files up to 500 MB in free mode',
  6664. "//a[contains(@href,'rg.to')]");
  6665. }
  6666. if (GM_getValue("Check_jumbofiles_dot_org_links", false))
  6667. {
  6668. addFileHost(
  6669. "jumbofiles\.org\/\\w+",
  6670. 'H71C5.png|class="downloadtitle">',
  6671. 'var swfu|ViewSourceBIN.png',
  6672. 'optional--',
  6673. 'optional2--',
  6674. "//a[contains(@href,'jumbofiles.org')]");
  6675. }
  6676. if (GM_getValue("Check_fshare_dot_vn_links", false))
  6677. {
  6678. addFileHost(
  6679. "fshare\\.vn\/file\/\\w+",
  6680. 'action="#download"|left; width: 330px;">|class="bt_down"',
  6681. 'không tồn tại|class="color_red m_t_50"',
  6682. 'optional--',
  6683. 'optional2--',
  6684. "//a[contains(@href,'fshare.vn/file')]",
  6685. true
  6686. );
  6687. }
  6688. if (GM_getValue("Check_spaceforfiles_dot_com_links", false))
  6689. {
  6690. addFileHost(
  6691. "spaceforfiles\.com\/\\w+",
  6692. 'btn_slowspeed_b.jpg|value="download1|class="btn_blue',
  6693. 'var rr =|AVOID_IE_BUG',
  6694. 'optional--',
  6695. 'optional2--',
  6696. "//a[contains(@href,'spaceforfiles.com')]");
  6697. }
  6698. if (GM_getValue("Check_google_dot_com_links", false))
  6699. {
  6700. addFileHost(
  6701. "google\\.com\/file\/\\w+",
  6702. 'content="!">|color:#2d2d2d',
  6703. '12pt; font-weight:|class="errorMessage"|F0F6FF',
  6704. 'optional--',
  6705. 'optional2--',
  6706. "//a[contains(@href,'google.com/file')]",
  6707. true
  6708. );
  6709. }
  6710. if (GM_getValue("Check_google_dot_com_links", false))
  6711. {
  6712. addFileHost(
  6713. "docs.google.com\/\\w+",
  6714. 'content="!">|color:#2d2d2d',
  6715. '12pt; font-weight:|class="errorMessage"|F0F6FF|Error 404',
  6716. 'optional--',
  6717. 'optional2--',
  6718. "//a[contains(@href,'docs.google.com')]",
  6719. true
  6720. );
  6721. }
  6722. if (GM_getValue("Check_google_dot_com_links", false))
  6723. {
  6724. addFileHost(
  6725. "drive.google.com\/\\w+",
  6726. 'content="!">|color:#2d2d2d|id="uc-download-link',
  6727. '12pt; font-weight:|class="errorMessage"|F0F6FF|Error 404',
  6728. 'optional--',
  6729. 'optional2--',
  6730. "//a[contains(@href,'drive.google.com')]",
  6731. true
  6732. );
  6733. }
  6734. if (GM_getValue("Check_up_dot_media1fire_dot_com_links", false))
  6735. {
  6736. addFileHost(
  6737. "up.media1fire\.com\/\\w+",
  6738. 'class="addthis_|value="download',
  6739. 'var rr =|AVOID_IE_BUG|<div style="width:500px;text-align:left;">',
  6740. 'optional--',
  6741. 'optional2--',
  6742. "//a[contains(@href,'up.media1fire.com')]");
  6743. }
  6744. if (GM_getValue("Check_depfile_dot_com_links", false))
  6745. {
  6746. addFileHost(
  6747. "depfile\.com\/\\w+",
  6748. 'logo_0.png|downloads.gif"|verifycode',
  6749. 'border-color: #5D729B;|bgcolor="#778AAF"|deleted by the owner|Invalid Link',
  6750. 'optional--',
  6751. 'available only for Premium users',
  6752. "//a[contains(@href,'depfile.com')]");
  6753. }
  6754. if (GM_getValue("Check_go4up_dot_com_links", false))
  6755. {
  6756. addFileHost(
  6757. "go4up\.com\/\\w+",
  6758. 'style="width: 100%;">|value="Access|download_line|img/webbuttoned.gif">',
  6759. '<title>GO4UP|dmca',
  6760. 'optional--',
  6761. 'optional2--',
  6762. "//a[contains(@href,'go4up.com')]");
  6763. }
  6764. if (GM_getValue("Check_redbunker_dot_net_links", false))
  6765. {
  6766. addFileHost(
  6767. "redbunker\.net\/\\w+",
  6768. 'name="method_free"',
  6769. 'color="red">Unknow / Bilinmiyor<',
  6770. 'optional--',
  6771. 'optional2--',
  6772. "//a[contains(@href,'redbunker.net')]");
  6773. }
  6774. if (GM_getValue("Check_divxpress_dot_com_links", false))
  6775. {
  6776. addFileHost(
  6777. "divxpress\.com\/\\w+",
  6778. 'btn_download|logo.png"',
  6779. 'AVOID_IE_BUG|var rr =',
  6780. 'optional--',
  6781. 'optional2--',
  6782. "//a[contains(@href,'divxpress.com')]");
  6783. }
  6784. if (GM_getValue("Check_anafile_dot_com_links", false))
  6785. {
  6786. addFileHost(
  6787. "anafile\.com\/\\w+",
  6788. 'width="881" valign="top|color="#800080"|name="go"',
  6789. 'style="width:500px;text-align:left;">|file was deleted|AVOID_IE_BUG',
  6790. 'optional--',
  6791. 'optional2--',
  6792. "//a[contains(@href,'anafile.com')]");
  6793. }
  6794. if (GM_getValue("Check_uploadable_dot_ch_links", false))
  6795. {
  6796. addFileHost(
  6797. "uploadable\\.ch\/file\/\\w+",
  6798. 'captcha.js"|payment.js"|class="btn_download"',
  6799. '<div class="icon_err">|<div class="errorBox">|"error_arrow">',
  6800. 'optional--',
  6801. 'optional2--',
  6802. "//a[contains(@href,'uploadable.ch/file')]",
  6803. true
  6804. );
  6805. }
  6806. if (GM_getValue("Check_arabloads_dot_net_links", false))
  6807. {
  6808. addFileHost(
  6809. "arabloads\.net\/\\w+",
  6810. 'name="method_free"|name="method_premium"',
  6811. 'background:#eee;font:15px Arial;">|AVOID_IE_BUG|Verdana;padding:3px;">Error|Not Found',
  6812. 'optional--',
  6813. 'optional2--',
  6814. "//a[contains(@href,'arabloads.net')]");
  6815. }
  6816. if (GM_getValue("Check_sharerepo_dot_com_links", false))
  6817. {
  6818. addFileHost(
  6819. "sharerepo\.com\/\\w+",
  6820. 'name="method_free"',
  6821. 'var public_on=|The file you were looking for could not be found',
  6822. 'optional--',
  6823. 'optional2--',
  6824. "//a[contains(@href,'sharerepo.com')]");
  6825. }
  6826. if (GM_getValue("Check_sfshare_dot_se_links", false))
  6827. {
  6828. addFileHost(
  6829. "sfshare\.se\/\\w+",
  6830. 'id="btn_download"|class="btn btn-primary txt-bold" value="',
  6831. 'AVOID_IE_BUG|var rr =|style="width:500px;text-align:left;">|Reason for deletion|The file was removed',
  6832. 'optional--',
  6833. 'optional2--',
  6834. "//a[contains(@href,'sfshare.se')]");
  6835. }
  6836. if (GM_getValue("Check_files_dot_fm_links", false))
  6837. {
  6838. addFileHost(
  6839. "files\.fm\/\\w+",
  6840. 'dl.png"|background-color: transparent',
  6841. 'margin: 40px 40px|background: none;',
  6842. 'optional--',
  6843. 'optional2--',
  6844. "//a[contains(@href,'files.fm')]");
  6845. }
  6846. if (GM_getValue("Check_koofile_dot_com_links", false))
  6847. {
  6848. addFileHost(
  6849. "koofile\.com\/\\w+",
  6850. 'value="download1">|name="method_free"',
  6851. 'class="overview-content c_text-box ">|style="padding-top:3px;">|class="rt1 c">',
  6852. 'optional--',
  6853. 'optional2--',
  6854. "//a[contains(@href,'koofile.com')]");
  6855. }
  6856. if (GM_getValue("Check_vidxden_dot_com_links", false))
  6857. {
  6858. addFileHost(
  6859. "vidxden\\.com\/\\w+",
  6860. 'Continue to Video"',
  6861. 'No such file',
  6862. 'optional--',
  6863. 'optional2--',
  6864. "//a[contains(@href,'vidxden.com')]"
  6865. );
  6866. }
  6867. if (GM_getValue("Check_muchshare_dot_net_links", false))
  6868. {
  6869. addFileHost(
  6870. "muchshare\\.net\/\\w+",
  6871. 'id="btn_download"',
  6872. 'File Not Found|width: 500px; text-align: left;',
  6873. 'optional--',
  6874. 'optional2--',
  6875. "//a[contains(@href,'muchshare.net')]"
  6876. );
  6877. }
  6878. if (GM_getValue("Check_daten_dash_hoster_dot_de_links", false))
  6879. {
  6880. addFileHost(
  6881. "(?:daten-hoster\\.de\/file\/\\w+|filehosting\\.org\/file\/\\w+|xtraupload\\.de\/\\?d=\\w+)",
  6882. 'Details zur Datei|Details page',
  6883. 'Jetzt hochladen|upload now',
  6884. 'optional--',
  6885. 'optional2--',
  6886. "//a[contains(@href,'daten-hoster.de/file') or contains(@href,'filehosting.org/file') or contains(@href,'xtraupload.de')]"
  6887. );
  6888. }
  6889. if (GM_getValue("Check_upload_dash_il_dot_net_links", false))
  6890. {
  6891. addFileHost(
  6892. "(?:upload-il|przeslij)\.net\/(?:en|he|ar|ru|)\/?\\w+",
  6893. 'downloadbtn"',
  6894. 'DL_FileNotFound',
  6895. 'optional--',
  6896. 'optional2--',
  6897. "//a[contains(@href,'upload-il.net') or contains(@href,'przeslij.net')]"
  6898. );
  6899. }
  6900. if (GM_getValue("Check_fileflyer_dot_com_links", false))
  6901. {
  6902. addFileHost(
  6903. "fileflyer\.com\/view\/\\w+",
  6904. '(?:dwl|locked)btn"',
  6905. 'error.gif"|link">Removed|removedlink">',
  6906. 'optional--',
  6907. 'optional2--',
  6908. "//a[contains(@href,'fileflyer.com')]"
  6909. );
  6910. }
  6911. if (GM_getValue("Check_filestore_dot_to_links", false))
  6912. {
  6913. addFileHost(
  6914. "filestore\.to\/\\?d=\\w+",
  6915. '"downloading"',
  6916. 'Datei wurde nicht gefunden',
  6917. 'optional--',
  6918. 'optional2--',
  6919. "//a[contains(@href,'filestore.to')]"
  6920. );
  6921. }
  6922. if (GM_getValue("Check_easy_dash_share_dot_com_links", false))
  6923. {
  6924. addFileHost(
  6925. "(?:w\\d*\.|)(?:crocko|easy-share)\\.com\/.",
  6926. 'fz24">Download|class="pl15">',
  6927. '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',
  6928. 'optional--',
  6929. 'optional2--',
  6930. "//a[contains(@href,'easy-share.com') or contains(@href,'crocko.com')]"
  6931. );
  6932. }
  6933. /* if (GM_getValue("Check_burnupload_dot_com_links", false))
  6934. {
  6935. addFileHost(
  6936. "burnupload\\.(?:com\/\\?d=|ihiphop\\.com\/download\\.php\\?id=)\\w+",
  6937. 'File size:',
  6938. 'file is not found',
  6939. 'optional--',
  6940. 'optional2--',
  6941. "//a[contains(@href,'burnupload.com') or contains(@href,'burnupload.ihiphop.com')]"
  6942. );
  6943. } */
  6944. if (GM_getValue("Check_datei_dot_to_links", false))
  6945. {
  6946. addFileHost(
  6947. "datei\\.to\/\\??\\w+",
  6948. 'icon_downloaden\\.png|>Download starten<',
  6949. 'Datei wurde nicht gefunden|icon_deleted.png',
  6950. 'optional--',
  6951. 'optional2--',
  6952. "//a[contains(@href,'datei.to')]"
  6953. );
  6954. }
  6955. if (GM_getValue("Check_yunfile_dot_com_links", false))
  6956. {
  6957. addFileHost(
  6958. "(?:yunfile|filemarkets)\\.com\/\\w+",
  6959. '<body class="body" id="body">|value="Slow Download"',
  6960. '<body class="body" >',
  6961. 'optional--',
  6962. 'optional2--',
  6963. "//a[contains(@href,'yunfile.com') or contains(@href,'filemarkets.com')]"
  6964. );
  6965. }
  6966. /* if (GM_getValue("Check_uploadhero_dot_com_links", false))
  6967. {
  6968. addFileHost(
  6969. "uploadhero\\.com\/dl\/\\w+",
  6970. 'content-dl">',
  6971. 'men_file_lost\\.jpg"',
  6972. 'optional--',
  6973. 'optional2--',
  6974. "//a[contains(@href,'uploadhero.com/dl')]"
  6975. );
  6976. } */
  6977. if (GM_getValue("Check_unibytes_dot_com_links", false))
  6978. {
  6979. addFileHost(
  6980. "unibytes\\.com\/[\\w\.]+",
  6981. 'trying to download|пытаетесь загрузить файл|tes entrain de tlcharger',
  6982. 'File not found|Файл не найден|',
  6983. 'optional--',
  6984. 'optional2--',
  6985. "//a[contains(@href,'unibytes.com')]"
  6986. );
  6987. }
  6988. if (GM_getValue("Check_hellshare_dot_com_links", false)) //very old type of links
  6989. {
  6990. addFileHost(
  6991. "www\\.hellshare\\.com\/\\d+",
  6992. 'tab\\-details"',
  6993. 'list-purp-2"|not found on this server',
  6994. 'optional--',
  6995. 'optional2--',
  6996. "//a[contains(@href,'www.hellshare.com')]"
  6997. );
  6998. }
  6999. /* if (GM_getValue("Check_quickshare_dot_cz_links", false)) //folders
  7000. {
  7001. addFileHost(
  7002. "quickshare\\.cz\/slozka-\\d+",
  7003. 'Počet souborů: <strong>[1-9]',
  7004. 'Počet souborů: <strong>0|Chyba! Taková složka neexistuje',
  7005. 'optional--',
  7006. 'optional2--',
  7007. "//a[contains(@href,'quickshare.cz/slozka')]"
  7008. );
  7009. } */
  7010. if (GM_getValue("Check_filefactory_dot_com_links", false)) //folders
  7011. {
  7012. addFileHost(
  7013. "filefactory\\.com\/f\/\\w+",
  7014. 'folderFileList">',
  7015. 'table class="items"|Pointer" class="red">',
  7016. 'optional--',
  7017. 'optional2--',
  7018. "//a[contains(@href,'filefactory.com/f/')]"
  7019. );
  7020. }
  7021. if (GM_getValue("Check_netload_dot_in_links", false)) //folders
  7022. {
  7023. addFileHost(
  7024. "netfolder\\.in\/\\w+",
  7025. 'list" value="http',
  7026. 'InPage_Error">|list" value=""',
  7027. 'optional--',
  7028. 'optional2--',
  7029. "//a[contains(@href,'netfolder.in')]"
  7030. );
  7031. }
  7032. if (GM_getValue("Check_load_dot_to_links", false))
  7033. {
  7034. addFileHost(
  7035. '(?:www\\.|\\/)load\\.to\\/(?:\\w{10}\\/.|\\?d=\\w{10})',
  7036. '"download_table_left">Size',
  7037. 'Can\'t find file',
  7038. 'optional--',
  7039. 'optional2--',
  7040. "//a[contains(@href,'/load.to/') or contains(@href,'www.load.to/')]"
  7041. );
  7042. }
  7043. if (GM_getValue("Check_divshare_dot_com_links", false))
  7044. {
  7045. addFileHost(
  7046. "divshare\\.com\/download\/",
  7047. 'download_new\.png',
  7048. 'have been removed',
  7049. 'optional--',
  7050. 'optional2--',
  7051. "//a[contains(@href,'divshare.com')]"
  7052. );
  7053. }
  7054. if (GM_getValue("Check_euroshare_dot_eu_links", false))
  7055. {
  7056. addFileHost(
  7057. "euroshare\\.(?:eu|pl|sk|cz|hu)\/file\/\\d+",
  7058. 'nazev-souboru">',
  7059. '<div id="obsah">\\s*<h1>',
  7060. 'optional--',
  7061. 'optional2--',
  7062. "//a[contains(@href,'euroshare.eu/file')]"
  7063. );
  7064. }
  7065. if (GM_getValue("Check_files_dot_mail_dot_ru_links", false))
  7066. {
  7067. addFileHost(
  7068. 'files\\.mail\\.ru/(?:\\w*)',
  7069. 'fileList',
  7070. 'errorMessage',
  7071. 'optional--',
  7072. 'optional2--',
  7073. "//a[contains(@href,'files.mail.ru')]"
  7074. );
  7075. }
  7076. if (GM_getValue("Check_megashares_dot_com_links", false))
  7077. {
  7078. addFileHost(
  7079. "(?:d\\d+\.|)megashares\.com\/(?:dl|index\.php\\?d|\\?d\\d+=\\w+)",
  7080. 'Filesize',
  7081. 'Invalid|deleted|Could not download file',
  7082. 'slots|scheduled maintenance',
  7083. 'optional2--',
  7084. "//a[contains(@href,'megashares.com/')]"
  7085. );
  7086. }
  7087. if (GM_getValue("Check_narod_dot_ru_links", false))
  7088. {
  7089. addFileHost(
  7090. 'narod\\.(?:yandex\\.|)ru\/disk\/',
  7091. 'b-submit',
  7092. 'b-download-virus-note|headCode">404<',
  7093. 'Внутренняя ошибка сервиса',
  7094. 'optional2--',
  7095. "//a[contains(@href,'narod.ru') or contains(@href,'narod.yandex.ru')]"
  7096. );
  7097. }
  7098. if (GM_getValue("Check_rayfile_dot_com_links", false))
  7099. {
  7100. addFileHost(
  7101. "rayfile\\.com\/",
  7102. 'FILEtitleTXT',
  7103. 'blueRow',
  7104. 'optional--',
  7105. 'optional2--',
  7106. "//a[contains(@href,'rayfile.com/') and contains(@href,'files')]"
  7107. );
  7108. }
  7109. if (GM_getValue("Check_filesmonster_dot_com_links", false))
  7110. {
  7111. addFileHost(
  7112. "filesmonster\\.com\/download\\.php\\?id=\\w+",
  7113. 'button_green_body"',
  7114. 'error">',
  7115. 'optional--',
  7116. 'optional2--',
  7117. "//a[contains(@href,'filesmonster.com/download')]"
  7118. );
  7119. }
  7120. if (GM_getValue("Check_usaupload_dot_net_links", false))
  7121. {
  7122. addFileHost(
  7123. 'usaupload\\.net\/d\/(?:\w*)',
  7124. '<strong>File size:</strong>',
  7125. 'is not available',
  7126. 'optional--',
  7127. 'optional2--',
  7128. "//a[contains(@href,'usaupload.net/d/')]"
  7129. );
  7130. }
  7131. if (GM_getValue("Check_sendspace_dot_com_links", false))
  7132. {
  7133. addFileHost(
  7134. 'sendspace\\.com\/file\/\\w+',
  7135. 'file_description',
  7136. 'msg error"',
  7137. 'optional--',
  7138. 'optional2--',
  7139. "//a[contains(@href,'sendspace.com/file')]"
  7140. );
  7141. }
  7142. if (GM_getValue("Check_sendspace_dot_pl_links", false))
  7143. {
  7144. addFileHost(
  7145. 'sendspace\\.pl\/file\/\\w+',
  7146. 'download_file"',
  7147. 'Podany plik nie',
  7148. 'optional--',
  7149. 'optional2--',
  7150. "//a[contains(@href,'sendspace.pl/file')]"
  7151. );
  7152. }
  7153. if (GM_getValue("Check_uploading_dot_com_links", false))
  7154. {
  7155. addFileHost(
  7156. 'uploading\\.com\/(?:files\/)?\\w+',
  7157. 'free_method">',
  7158. 'file_error">|error_404">|file not found|OOPS! Looks like file not found',
  7159. 'optional--',
  7160. 'optional2--',
  7161. "//a[contains(@href,'uploading.com')]"
  7162. );
  7163. }
  7164. if (GM_getValue("Check_gigasize_dot_com_links", false))
  7165. {
  7166. addFileHost(
  7167. 'gigasize\\.com\/get\\.php(?:\/\\d+|\\?d=\\w+)',
  7168. 'fileId"',
  7169. 'error">',
  7170. 'optional--',
  7171. 'optional2--',
  7172. "//a[contains(@href,'gigasize.com/get')]"
  7173. );
  7174. }
  7175. if (GM_getValue("Check_good_dot_com_links", false))
  7176. {
  7177. addFileHost(
  7178. 'good\\.net\/(?:_|dl)',
  7179. 'Free Download',
  7180. 'Not Found',
  7181. 'Forbidden',
  7182. 'optional2--',
  7183. "//a[contains(@href,'good.net')]"
  7184. );
  7185. }
  7186. if (GM_getValue("Check_2shared_dot_com_links", false))
  7187. {
  7188. addFileHost(
  7189. '2shared\\.com\/(?:file|video|document|audio)\/\\w*',
  7190. 'File size',
  7191. 'File not found|is not valid|/images/important.gif',
  7192. 'optional--',
  7193. 'optional2--',
  7194. "//a[contains(@href,'2shared.com/file/') or contains (@href,'2shared.com/audio/') or contains (@href,'2shared.com/document/') or contains (@href,'2shared.com/video/')]"
  7195. );
  7196. }
  7197. if (GM_getValue("Check_turboupload_dot_com_links", false))
  7198. {
  7199. addFileHost(
  7200. 'turboupload\\.com\/\\w*',
  7201. 'You have requested',
  7202. 'File Not Found',
  7203. 'optional--',
  7204. 'optional2--',
  7205. "//a[contains(@href,'turboupload.com')]"
  7206. );
  7207. }
  7208. if (GM_getValue("Check_gigapeta_dot_com_links", false))
  7209. {
  7210. addFileHost(
  7211. 'gigapeta\\.com\/dl\/',
  7212. 'Download file|Скачать файл| Herunterzuladen|Scarica il file|Cargar el fichero|Charger le fichier',
  7213. '404|page_error',
  7214. 'optional--',
  7215. 'optional2--',
  7216. "//a[contains(@href,'gigapeta.com/dl')]"
  7217. );
  7218. }
  7219. if (GM_getValue("Check_veehd_dot_com_links", false))
  7220. {
  7221. addFileHost(
  7222. 'veehd\.com\/video\/.*?',
  7223. 'No sound|Download video',
  7224. 'Featured Videos',
  7225. 'optional--',
  7226. 'optional2--',
  7227. "//a[contains(@href,'veehd.com') and contains(@href,'video')]"
  7228. );
  7229. }
  7230. if (GM_getValue("Check_vip_dash_file_dot_com_links", false))
  7231. {
  7232. addFileHost(
  7233. '(?:u\\d+\\.)?vip-file\\.com\/download.*?\/(?:.*?)\/(?:.*?)\\.html',
  7234. 'fast_download_form">|submit_sms_download',
  7235. '<p style="text-align:center">',
  7236. 'optional--',
  7237. 'optional2--',
  7238. "//a[contains(@href,'vip-file.com/download')]"
  7239. );
  7240. }
  7241. if (GM_getValue("Check_letitbit_dot_net_links", false))
  7242. {
  7243. addFileHost(
  7244. '(?:u\\d+\\.)?letitbit\\.net\/download\/\\w+',
  7245. 'download\\-pnl ',
  7246. 'color:#000">|Запрашиваемый файл не найден|страница не существует|File not found|',
  7247. 'optional--',
  7248. 'optional2--',
  7249. "//a[contains(@href,'letitbit.net/download')]"
  7250. );
  7251. }
  7252. if (GM_getValue("Check_ifolder_dot_ru_links", false))
  7253. {
  7254. addFileHost(
  7255. 'ifolder\.ru\/\\d+',
  7256. 'file-info',
  7257. 'ui-state-error',
  7258. 'optional--',
  7259. 'optional2--',
  7260. "//a[contains(@href,'ifolder.ru')]"
  7261. );
  7262. }
  7263. if (GM_getValue("Check_fileswap_dot_com_links", false))
  7264. {
  7265. addFileHost(
  7266. 'fileswap\\.com\/dl\/\\w+',
  7267. 'bttnDownloadLink"',
  7268. 'rounded_block_error"',
  7269. 'is temporary unavailable|disponible en estos momentos|vorläufig unerreichbar|Файл временно недоступен',
  7270. 'optional2--',
  7271. "//a[contains(@href,'fileswap.com/dl')]"
  7272. );
  7273. }
  7274. if (GM_getValue("Check_filecloud_dot_io_links", false))
  7275. {
  7276. addFileHost(
  7277. '(?:s\\d+\\.)?filecloud\\.io\/\\w+',
  7278. 'var __error = 0',
  7279. 'FILES__DOESNT_EXIST|removed or did not exist',
  7280. 'optional--',
  7281. 'optional2--',
  7282. "//a[contains(@href,'filecloud.io/')]"
  7283. );
  7284. addFileHost(
  7285. 'ifile\\.it\/\\w+',
  7286. 'var __error = 0',
  7287. 'FILES__DOESNT_EXIST',
  7288. 'optional--',
  7289. 'optional2--',
  7290. "//a[contains(@href,'ifile.it/')]"
  7291. );
  7292. }
  7293. if (GM_getValue("Check_solidfiles_dot_com_links", false))
  7294. {
  7295. addFileHost(
  7296. 'solidfiles\\.com\/d\/\\w+',
  7297. 'id="download"|content="Download',
  7298. '>Not found<|<h2>404</h2>|Page not found|<h1>404</h1>|File not available|no longer available',
  7299. 'optional--',
  7300. 'optional2--',
  7301. "//a[contains(@href,'solidfiles.com/d')]"
  7302. );
  7303. }
  7304. if (GM_getValue("Check_shareflare_dot_net_links", false))
  7305. {
  7306. addFileHost(
  7307. "(?:.\\.|)shareflare\\.net",
  7308. 'download-pnl|<div class="premium-block">',
  7309. 'File not found|Поиск зеркала на фа|<div id="captcha"',
  7310. 'optional--',
  7311. 'optional2--',
  7312. "//a[contains(@href,'shareflare.net') and contains(@href,'download')]"
  7313. );
  7314. }
  7315. if (GM_getValue("Check_u18116681_dot_shareflare_dot_net_links", false))
  7316. {
  7317. addFileHost(
  7318. "u18116681.shareflare\\.net",
  7319. 'download-pnl|<div class="premium-block">',
  7320. 'File not found|Поиск зеркала на фа|<div id="captcha"',
  7321. 'optional--',
  7322. 'optional2--',
  7323. "//a[contains(@href,'shareflare.net') and contains(@href,'download')]"
  7324. );
  7325. }
  7326. if (GM_getValue("Check_uloz_dot_to_links", false))
  7327. {
  7328. addFileHost(
  7329. "(?:uloz|ulozto|bagruj|zachowajto)\\.(to|cz|sk|net|pl)\/\\w",
  7330. 'fileDownload">|fileSize">',
  7331. 'grayButton deletedFile">|Stránka nenalezena|upload-button"|jako soukromý.',
  7332. 'passwordProtectedFile">|frmaskAgeForm-disagree',
  7333. 'optional2--',
  7334. "//a[contains(@href,'bagruj.cz') or contains(@href,'uloz.to') or contains(@href,'ulozto.') or contains(@href,'zachowajto.pl')]",
  7335. true
  7336. );
  7337. }
  7338. if (GM_getValue("Check_hellspy_dot_com_links", false))
  7339. {
  7340. addFileHost(
  7341. "hellspy\.(?:com|cz|sk|hu|pl)\/\\w+",
  7342. 'file\\-list-orderby|section-filedetail">',
  7343. '<\/span><\/h2>\\s*<p>|list-purp-2">|flash info sticky">',
  7344. 'optional--',
  7345. 'optional2--',
  7346. "//a[contains(@href,'hellspy.')]"
  7347. );
  7348. }
  7349. if (GM_getValue("Check_leteckaposta_dot_cz_links", false))
  7350. {
  7351. addFileHost(
  7352. "(?:leteckaposta\\.cz|sharegadget\\.com)\/\\d+",
  7353. '<body onload="">',
  7354. 'neexistuje|not exist',
  7355. 'optional--',
  7356. 'optional2--',
  7357. "//a[contains(@href,'leteckaposta.cz') or contains(@href,'sharegadget.com')]"
  7358. );
  7359. }
  7360. if (GM_getValue("Check_stahovanizasms_dot_cz_links", false))
  7361. {
  7362. addFileHost(
  7363. "stahovanizasms\\.cz\/\\w+",
  7364. 'download\\.png>|font-size:11px><tr>',
  7365. 'smaz.n u.ivatelem|font-size:11px><\/table>',
  7366. 'optional--',
  7367. 'optional2--',
  7368. "//a[contains(@href,'stahovanizasms.cz')]"
  7369. );
  7370. }
  7371. if (GM_getValue("Check_share_dash_links_dot_biz_links", false))
  7372. {
  7373. addFileHost(
  7374. "share-links\\.biz\/\\w*",
  7375. 'online\\.gif',
  7376. '(?:offline|parts)\\.gif',
  7377. 'optional--',
  7378. 'optional2--',
  7379. "//a[contains(@href,'share-links.biz')]"
  7380. );
  7381. }
  7382. if (GM_getValue("Check_4shared_dot_com_links", false))
  7383. {
  7384. addFileHost(
  7385. "4shared\\.com\/.+\/",
  7386. '<input type="hidden" class="jsSocialTwDefaultText" value=',
  7387. 'class="warn\"|big red"|GetDataBack',
  7388. 'Service Unavailable',
  7389. 'optional2--',
  7390. "//a[contains(@href,'4shared.com')]"
  7391. );
  7392. }
  7393. if (GM_getValue("Check_zippyshare_dot_com_links", false))
  7394. {
  7395. addFileHost(
  7396. "(?:www\\d+\.|)zippyshare\.com\/",
  7397. 'download\.png|Download Now|images/download_small.png|id="dlbutton"',
  7398. 'not exist|Status 404',
  7399. 'optional--',
  7400. 'optional2--',
  7401. "//a[contains(@href,'zippyshare.com') and contains(@href,'file.html')]"
  7402. );
  7403. }
  7404. if (GM_getValue("Check_mediafire_dot_com_links", false))
  7405. {
  7406. addFileHost(
  7407. "mediafire\.com\/",
  7408. 'download_file_title|dlFileName|id="PLAY_downloadButton"',
  7409. 'error\\.php\\?|error_msg_title|<title>Simple File Sharing|No files found',
  7410. 'set to private',
  7411. 'optional2--',
  7412. "//a[contains(@href,'mediafire.com')]"
  7413. );
  7414. }
  7415. if (GM_getValue("Check_uploaded_dot_to_links", false))
  7416. {
  7417. addFileHost(
  7418. '(?:uploaded\\.(?:to|net)\/(?:.id|file|folder|f|410|404))|(?:ul\\.to\/)',
  7419. '<h2>Authentification</h2></li>|MB</small>|KB</small>|1,00 GB',
  7420. 'box_red|Error: 404|Error: 410|fileList"><thead><tr><td colspan="2"><\/td><\/tr><\/thead><tbody>\\s*<tr>|<title>uploaded.net</title>',
  7421. 'optional--',
  7422. 'GB</small>',
  7423. "//a[contains(@href,'uploaded.to/') or contains(@href,'uploaded.net/') or contains(@href,'ul.to/')]"
  7424. );
  7425. }
  7426. if (GM_getValue("Check_ulozisko_dot_sk_links", false))
  7427. {
  7428. addFileHost(
  7429. "ulozisko\.sk\/",
  7430. 'Detaily',
  7431. 'neexistuje',
  7432. 'optional--',
  7433. 'optional2--',
  7434. "//a[contains(@href,'ulozisko.sk')]"
  7435. );
  7436. }
  7437. if (GM_getValue("Check_upnito_dot_sk_links", false))
  7438. {
  7439. addFileHost(
  7440. "(?:dl.\\.|)upnito\\.sk\/(download|subor|file)",
  7441. 'download.php',
  7442. 'notfound|upload\\-suborov\\.php"',
  7443. 'optional--',
  7444. 'optional2--',
  7445. "//a[contains(@href,'upnito.sk')]"
  7446. );
  7447. }
  7448. if (GM_getValue("Check_box_dot_com_links", false))
  7449. {
  7450. addFileHost(
  7451. "box\.com\/\\w+",
  7452. 'download-file-btn|id="download_button|preview-download',
  7453. 'BIyMin.png| <div class="error_message|link has been removed',
  7454. 'optional--',
  7455. 'optional2--',
  7456. "//a[contains(@href,'app.box.com')]");
  7457. }
  7458. if (GM_getValue("Check_uptobox_dot_com_links", false))
  7459. {
  7460. addFileHost(
  7461. "uptobox\\.com\/\\w+",
  7462. 'Create Download Link">|Lien de téléchargement',
  7463. 'The file expired|The file was deleted|Fichier introuvable|not available in your country',
  7464. 'Maintenance',
  7465. 'optional2--',
  7466. "//a[contains(@href,'uptobox.com')]"
  7467. );
  7468. }
  7469. if (GM_getValue("Check_sharecash_dot_org_links", false))
  7470. {
  7471. addFileHost(
  7472. "sharecash\\.org\/download\\.php\\?file=\\d+",
  7473. 'FILE DOWNLOAD<',
  7474. 'File Does Not Exist',
  7475. 'optional--',
  7476. 'optional2--',
  7477. "//a[contains(@href,'sharecash.org/download.php')]"
  7478. );
  7479. }
  7480. if (GM_getValue("Check_depositfiles_dot_com_links", false)) //folders
  7481. {
  7482. addFileHost(
  7483. "depositfiles\\.com\/folders\/\\w+",
  7484. '<div class="progressContainer">',
  7485. '<div id="files" class="files">\\s*<\/div>',
  7486. 'optional--',
  7487. 'optional2--',
  7488. "//a[contains(@href,'depositfiles.com/folders')]"
  7489. );
  7490. }
  7491. if (GM_getValue("Check_rapidfileshare_dot_net_links", false))
  7492. {
  7493. addFileHost(
  7494. "rapidfileshare\\.net/\\w+",
  7495. '<div id="upload-header-bg">',
  7496. '<div style="width:500px;text-align:left;">',
  7497. 'optional--',
  7498. 'optional2--',
  7499. "//a[contains(@href,'rapidfileshare.net/')]"
  7500. );
  7501. }
  7502. if (GM_getValue("Check_stiahnito_dot_sk_links", false))
  7503. {
  7504. addFileHost(
  7505. "stiahnito\\.sk/",
  7506. '<span class="filesize right">',
  7507. '<ol class="list-purp-2">',
  7508. 'optional--',
  7509. 'optional2--',
  7510. "//a[contains(@href,'stiahnito.sk/')]"
  7511. );
  7512. }
  7513. if (GM_getValue("Check_rusfolder_dot_com_links", false))
  7514. {
  7515. addFileHost(
  7516. "rusfolder\\.(?:com|net)",
  7517. '"download-step-one-form"|Название: <b>|Файлы|Файлы в папке',
  7518. '"ui-state-error ui-corner-all"|File is removed|File not found|удален',
  7519. 'optional--',
  7520. 'optional2--',
  7521. "//a[contains(@href,'rusfolder')]"
  7522. );
  7523. }
  7524. if (GM_getValue("Check_fileover_dot_net_links", false))
  7525. {
  7526. addFileHost(
  7527. "fileover\\.net/\\d+",
  7528. 'id="filesize"',
  7529. 'Not found or deleted|The following file is unavailable',
  7530. 'optional--',
  7531. 'optional2--',
  7532. "//a[contains(@href,'fileover.net/')]"
  7533. );
  7534. }
  7535. if (GM_getValue("Check_catshare_dot_net_links", false))
  7536. {
  7537. addFileHost(
  7538. "catshare\\.net/\\w+",
  7539. '"icon-share',
  7540. 'alert alert-error',
  7541. 'optional--',
  7542. 'optional2--',
  7543. "//a[contains(@href,'catshare.net/')]"
  7544. );
  7545. }
  7546. if (GM_getValue("Check_anonfiles_dot_com_links", false))
  7547. {
  7548. addFileHost(
  7549. "anonfiles\\.com/\\w+",
  7550. '"download_button"',
  7551. '<legend><b>404</b>',
  7552. 'optional--',
  7553. 'optional2--',
  7554. "//a[contains(@href,'anonfiles.com')]"
  7555. );
  7556. }
  7557. if (GM_getValue("Check_mixturecloud_dot_com_links", false))
  7558. {
  7559. addFileHost(
  7560. "mixturecloud\\.com/media/\\w+",
  7561. '"btn icon i_globe gray share_150',
  7562. '"s_cross_close"></span> 404:',
  7563. 'optional--',
  7564. 'optional2--',
  7565. "//a[contains(@href,'mixturecloud.com/media/')]"
  7566. );
  7567. }
  7568. if (GM_getValue("Check_akafile_dot_com_links", false))
  7569. {
  7570. addFileHost(
  7571. "akafile\\.com\/\\w+",
  7572. 'download1',
  7573. 'File Not Found',
  7574. 'optional--',
  7575. 'optional2--',
  7576. "//a[contains(@href,'akafile.com/')]"
  7577. );
  7578. }
  7579. if (GM_getValue("Check_creafile_dot_net_links", false))
  7580. {
  7581. addFileHost(
  7582. "creafile\\.net\/\\w+",
  7583. 'downloadblock',
  7584. 'errtitle',
  7585. 'optional--',
  7586. 'optional2--',
  7587. "//a[contains(@href,'creafile.net/')]"
  7588. );
  7589. }
  7590. if (GM_getValue("Check_hugefiles_dot_net_links", false))
  7591. {
  7592. addFileHost(
  7593. "hugefiles\\.net\/\\w+",
  7594. 'download1|class="btn-create-download" value="Create Download Link">',
  7595. 'File Not Found|No such file with this filename|tyle="width:500px;text-align:left;">',
  7596. 'optional--',
  7597. 'optional2--',
  7598. "//a[contains(@href,'hugefiles.net/')]"
  7599. );
  7600. }
  7601. if (GM_getValue("Check_sendmyway_dot_com_links", false))
  7602. {
  7603. addFileHost(
  7604. "sendmyway\\.com\/\\w+",
  7605. 'id="btn_download"',
  7606. '500px;text-align:left;"|<center><h3>',
  7607. 'optional--',
  7608. 'optional2--',
  7609. "//a[contains(@href,'sendmyway.com/')]"
  7610. );
  7611. }
  7612. if (GM_getValue("Check_upload_dot_ee_links", false))
  7613. {
  7614. addFileHost(
  7615. "upload\\.ee\/\\w+",
  7616. 'onmouseout="document.dllink.src',
  7617. 'There is no such file.|File was deleted|Fail kustutati|Файл удалён|Такого файла нет',
  7618. 'optional--',
  7619. 'optional2--',
  7620. "//a[contains(@href,'upload.ee/')]"
  7621. );
  7622. }
  7623. if (GM_getValue("Check_shareplace_dot_org_links", false))
  7624. {
  7625. addFileHost(
  7626. "shareplace\\.org\/\\?\\w+",
  7627. 'Download-Link',
  7628. 'Your requested file is not found|Select file to send',
  7629. 'optional--',
  7630. 'optional2--',
  7631. "//a[contains(@href,'shareplace.org/?')]"
  7632. );
  7633. }
  7634. if (GM_getValue("Check_uploadc_dot_com_links", false))
  7635. {
  7636. addFileHost(
  7637. "uploadc\\.com\/\\w+",
  7638. 'id="prebut"',
  7639. 'File Not Found|This file has been removed due',
  7640. 'optional--',
  7641. 'optional2--',
  7642. "//a[contains(@href,'uploadc.com/')]"
  7643. );
  7644. }
  7645. if (GM_getValue("Check_remixshare_dot_com_links", false))
  7646. {
  7647. addFileHost(
  7648. "remixshare\\.com\/\\w+",
  7649. 'id="dl2"',
  7650. '<table class=\'failed\'><tr><td width=\'90%\'>|Sorry, die Datei konnte nicht gefunden werden',
  7651. 'optional--',
  7652. 'optional2--',
  7653. "//a[contains(@href,'remixshare.com/')]"
  7654. );
  7655. }
  7656. if (GM_getValue("Check_exoshare_dot_com_links", false))
  7657. {
  7658. addFileHost(
  7659. "exoshare\\.com\/download\\.php\\?uid=\\w+",
  7660. 'Last Download :',
  7661. 'img src="\\/404.jpg"',
  7662. 'optional--',
  7663. 'optional2--',
  7664. "//a[contains(@href,'exoshare.com/download.php')]"
  7665. );
  7666. }
  7667. if (GM_getValue("Check_borncash_dot_org_links", false))
  7668. {
  7669. addFileHost(
  7670. "borncash\\.org\/download\/\\?a=\\w+",
  7671. 'class="knop_1"',
  7672. '\/error\/er00',
  7673. 'optional--',
  7674. 'optional2--',
  7675. "//a[contains(@href,'borncash.org/download/')]"
  7676. );
  7677. }
  7678. if (GM_getValue("Check_vidplay_dot_net_links", false))
  7679. {
  7680. addFileHost(
  7681. "vidplay\.net\/\\w+",
  7682. 'solvemedia puzzle widget',
  7683. 'File not found|AVOID_IE_BUG',
  7684. 'optional--',
  7685. 'optional2--',
  7686. "//a[contains(@href,'vidplay.net')]");
  7687. }
  7688. if (GM_getValue("Check_storagon_dot_com_links", false))
  7689. {
  7690. addFileHost(
  7691. "storagon\.com\/\\w+",
  7692. 'class="icon-cloud-download"></i>|content="Download Options',
  7693. 'content="Download Downloads|class="error-container">|class="bigger-300 bolder">404<',
  7694. 'optional--',
  7695. 'optional2--',
  7696. "//a[contains(@href,'storagon.com')]");
  7697. }
  7698. if (GM_getValue("Check_filedais_dot_com_links", false))
  7699. {
  7700. addFileHost(
  7701. "filedais\.com\/\\w+",
  7702. 'class="btn btn-info"|name="method_free"',
  7703. 'style="width:500px;text-align:left;">|File Not Found|AVOID_IE_BUG',
  7704. 'optional--',
  7705. 'optional2--',
  7706. "//a[contains(@href,'filedais.com')]");
  7707. }
  7708. if (GM_getValue("Check_up_dot_4share_dot_vn_links", false))
  7709. {
  7710. addFileHost(
  7711. "up.4share\.vn\/\\w+",
  7712. '<font size="2" face="Verdana">',
  7713. 'font: 13px Tahoma; color: Brown',
  7714. 'optional--',
  7715. 'optional2--',
  7716. "//a[contains(@href,'up.4share.vn')]");
  7717. }
  7718. if (GM_getValue("Check_share_dot_vnn_dot_vn_links", false))
  7719. {
  7720. addFileHost(
  7721. "share.vnn\.vn\/\\w+",
  7722. '"index,follow"|<div class="main" id="download-box">',
  7723. '<meta name="description" content="" />|<h1>Không tìm thấy file bạn yêu cầu</h1>',
  7724. 'optional--',
  7725. 'optional2--',
  7726. "//a[contains(@href,'share.vnn.vn')]");
  7727. }
  7728. if (GM_getValue("Check_upfile_dot_vn_links", false))
  7729. {
  7730. addFileHost(
  7731. "upfile\.vn\/\\w+",
  7732. 'download-timer',
  7733. '<meta name="description" content="Upload files|<meta name="description" content="Error "',
  7734. 'optional--',
  7735. 'optional2--',
  7736. "//a[contains(@href,'upfile.vn')]");
  7737. }
  7738. if (GM_getValue("Check_aisfile_dot_com_links", false))
  7739. {
  7740. addFileHost(
  7741. "aisfile\.com\/\\w+",
  7742. '<h3 style="text-align:left;">|align=right><b>Filename:',
  7743. '<div style="width:500px;text-align:left;">|File Not Found',
  7744. 'optional--',
  7745. 'optional2--',
  7746. "//a[contains(@href,'aisfile.com')]");
  7747. }
  7748. if (GM_getValue("Check_usersfiles_dot_com_links", false))
  7749. {
  7750. addFileHost(
  7751. "usersfiles\.com\/\\w+",
  7752. 'class="btn btn-success|id="btn_download" class="btn"',
  7753. '<div style="width:500px;text-align:left;">|class="label label-inverse">|class="err">',
  7754. 'optional--',
  7755. 'optional2--',
  7756. "//a[contains(@href,'usersfiles.com')]");
  7757. }
  7758. if (GM_getValue("Check_pan_dot_baidu_dot_com_links", false))
  7759. {
  7760. addFileHost(
  7761. "pan.baidu\.com\/\\w+",
  7762. 'target="_blank" title=|share-personal-info',
  7763. 'share_notfound.png|background:#f9f9f9',
  7764. 'optional--',
  7765. 'optional2--',
  7766. "//a[contains(@href,'pan.baidu.com')]");
  7767. }
  7768. if (GM_getValue("Check_yunpan_dot_cn_links", false))
  7769. {
  7770. addFileHost(
  7771. "yunpan\.cn\/\\w+",
  7772. 'class="icon icon-download',
  7773. 'content="360|http://p5.qhimg.com/t01d1c98667df9dc6cc.jpg',
  7774. 'optional--',
  7775. 'optional2--',
  7776. "//a[contains(@href,'yunpan.cn')]");
  7777. }
  7778. if (GM_getValue("Check_file_dash_upload_dot_net_links", false))
  7779. {
  7780. addFileHost(
  7781. "(?:en\\.|)file\\-upload\\.net\/download\\-\\d+\/\\w+",
  7782. 'getElementById("downbild")|style.display',
  7783. 'hochgeladene Datei nicht gefunden werden|has not been found',
  7784. 'optional--',
  7785. 'optional2--',
  7786. "//a[contains(@href,'file-upload.net')]");
  7787. }
  7788. if (GM_getValue("Check_gulfup_dot_com_links", false))
  7789. {
  7790. addFileHost(
  7791. "gulfup\.com\/",
  7792. '<!-- Downlod template -->|download.gif',
  7793. '<!-- Errors template -->|class="error">|<!-- form upload -->|[ رفع الملفات ]',
  7794. 'optional--',
  7795. 'optional2--',
  7796. "//a[contains(@href,'gulfup.com')]");
  7797. }
  7798. if (GM_getValue("Check_datafilehost_dot_com_links", false))
  7799. {
  7800. addFileHost(
  7801. "datafilehost\\.com\/(?:download-\\w+\\.html|d\/\\w+)",
  7802. 'dldtable">',
  7803. 'does not exist\\.',
  7804. 'optional--',
  7805. 'optional2--',
  7806. "//a[contains(@href,'datafilehost.com')]");
  7807. }
  7808. if (GM_getValue("Check_dropbox_dot_com_links", false))
  7809. {
  7810. addFileHost(
  7811. "dropbox\.com\/s\/\\w+",
  7812. 'default_content_download_button" class="freshbutton-blue">|content_download_button',
  7813. '>Nothing Here<|>Error (404)<',
  7814. 'title>Dropbox - 509|Error (403)|Error: 429',
  7815. 'optional2--',
  7816. "//a[contains(@href,'dropbox.com')]");
  7817. }
  7818. if (GM_getValue("Check_box_dot_net_links", false))
  7819. {
  7820. addFileHost(
  7821. "box\.net\/\\w+",
  7822. 'download-file-btn|id="download_button',
  7823. 'BIyMin.png| <div class="error_message',
  7824. 'optional--',
  7825. 'optional2--',
  7826. "//a[contains(@href,'box.net')]");
  7827. }
  7828. if (GM_getValue("Check_fileband_dot_com_links", false))
  7829. {
  7830. addFileHost(
  7831. "fileband\.com\/\\w+",
  7832. 'value="download1">|name="id" value=',
  7833. '<div style="width:500px;text-align:left;">|not be found',
  7834. 'optional--',
  7835. 'optional2--',
  7836. "//a[contains(@href,'fileband.com')]");
  7837. }
  7838. if (GM_getValue("Check_filedropper_dot_com_links", false))
  7839. {
  7840. addFileHost(
  7841. "filedropper\.com\/\\w+",
  7842. 'background:#ddd;|width:985px; ',
  7843. 'background-color:#FFFFFF;|margin-left: -400px;',
  7844. 'optional--',
  7845. 'optional2--',
  7846. "//a[contains(@href,'filedropper.com')]");
  7847. }
  7848. if (GM_getValue("Check_tropicshare_dot_com_links", false))
  7849. {
  7850. addFileHost(
  7851. "tropicshare\\.com\/files\/\\d+",
  7852. 'MB</span>|GB</span>|KB</span>',
  7853. '>FNF<|size: </span>',
  7854. 'optional--',
  7855. 'optional2--',
  7856. "//a[contains(@href,'tropicshare.com')]");
  7857. }
  7858. if (GM_getValue("Check_goldbytez_dot_com_links", false))
  7859. {
  7860. addFileHost(
  7861. "goldbytez\.com\/\\w+",
  7862. '<h2>Download</h2>|<center><h2>File: <font color="red">',
  7863. '<div style="width:500px;text-align:left;">|<h2>Error</h2>',
  7864. 'optional--',
  7865. 'optional2--',
  7866. "//a[contains(@href,'goldbytez.com')]");
  7867. }
  7868. if (GM_getValue("Check_worldbytez_dot_com_links", false))
  7869. {
  7870. addFileHost(
  7871. "worldbytez\.com\/\\w+",
  7872. '<div class="download_type">',
  7873. '<div style="width:500px;text-align:left;">',
  7874. 'optional--',
  7875. 'optional2--',
  7876. "//a[contains(@href,'worldbytez.com')]");
  7877. }
  7878. if (GM_getValue("Check_freefilehosting_dot_net_links", false))
  7879. {
  7880. addFileHost(
  7881. "freefilehosting\.net\/\\w+",
  7882. 'Type: cbr|Type: rar|Type: jpg|Type: mkv|Type: avi|Type: mpg|Type: mpeg|Type: zip|Type: wmvType: bmpType: gifType: mp4Type: mp3',
  7883. '175px;" value="http://www.freefilehosting.net/"|Filename: <br>',
  7884. 'optional--',
  7885. 'optional2--',
  7886. "//a[contains(@href,'freefilehosting.net')]");
  7887. }
  7888. if (GM_getValue("Check_ziddu_dot_com_links", false))
  7889. {
  7890. addFileHost(
  7891. "ziddu\.com\/\\w+",
  7892. 'downloads.ziddu.com|downloadfilelinkicon',
  7893. 'errortracking.php|images/oops.png|fontfamilyverdana error',
  7894. 'optional--',
  7895. 'optional2--',
  7896. "//a[contains(@href,'ziddu.com')]");
  7897. }
  7898. if (GM_getValue("Check_exclusiveloader_dot_com_links", false))
  7899. {
  7900. addFileHost(
  7901. "exclusiveloader\.com\/\\w+",
  7902. 'style="padding-top:55px; padding-bottom:65px;">|<h2>Download</h2>',
  7903. 'File Not Found|width:322px;text-align:left;" class="no_file">',
  7904. 'optional--',
  7905. 'optional2--',
  7906. "//a[contains(@href,'exclusiveloader.com')]");
  7907. }
  7908. if (GM_getValue("Check_sharerapid_dot_cz_links", false))
  7909. {
  7910. addFileHost(
  7911. "sharerapid\.cz\/\\w+",
  7912. 'value="Stáhnout"|soubor" style|Stahování je povoleno pouze pro přihlášené uživatele',
  7913. 'error_div">|404 - Not Found',
  7914. 'optional--',
  7915. 'optional2--',
  7916. "//a[contains(@href,'sharerapid.cz')]");
  7917. }
  7918. if (GM_getValue("Check_sdilej_dot_cz_links", false))
  7919. {
  7920. addFileHost(
  7921. "sdilej\.cz\/\\w+",
  7922. 'class="page-download"',
  7923. '<h2 class="red">|czshare.com|sponsored listings|This domain is for sale',
  7924. 'optional--',
  7925. 'optional2--',
  7926. "//a[contains(@href,'sdilej.cz')]");
  7927. }
  7928. if (GM_getValue("Check_lafiles_dot_com_links", false))
  7929. {
  7930. addFileHost(
  7931. "lafiles\.com\/\\w+",
  7932. '<div id="pay_modes">',
  7933. '<b class="err"></b>',
  7934. 'optional--',
  7935. 'optional2--',
  7936. "//a[contains(@href,'lafiles.com')]");
  7937. }
  7938. if (GM_getValue("Check_acefile_dot_net_links", false))
  7939. {
  7940. addFileHost(
  7941. "acefile\.net\/\\w+",
  7942. 'align=right nowrap><b>',
  7943. 'File Not Found|<div style="width:322px;text-align:left;" class="no_file">',
  7944. 'optional--',
  7945. 'optional2--',
  7946. "//a[contains(@href,'acefile.net')]");
  7947. }
  7948. if (GM_getValue("Check_megarapid_dot_cz_links", false))
  7949. {
  7950. addFileHost(
  7951. "megarapid\.cz\/\\w+",
  7952. 'value="Stáhnout"|soubor" style|Stahování je povoleno pouze pro přihlášené uživatele',
  7953. 'error_div">|404 - Not Found',
  7954. 'optional--',
  7955. 'optional2--',
  7956. "//a[contains(@href,'megarapid.cz')]");
  7957. }
  7958. if (GM_getValue("Check_yadi_dot_sk_links", false))
  7959. {
  7960. addFileHost(
  7961. "yadi\.sk\/\\w+",
  7962. 'twitter:site|View and download',
  7963. 'error code|Nothing found',
  7964. 'optional--',
  7965. 'optional2--',
  7966. "//a[contains(@href,'yadi.sk')]");
  7967. }
  7968. /* if (GM_getValue("Check_imdb_dot_com_links", false))
  7969. {
  7970. addFileHost(
  7971. "imdb\.com\/\\w+",
  7972. 'imdb.com',
  7973. '404 Error',
  7974. 'optional--',
  7975. 'optional2--',
  7976. "//a[contains(@href,'imdb.com')]");
  7977. } */
  7978. if (GM_getValue("Check_hitfile_dot_net_links", false))
  7979. {
  7980. addFileHost(
  7981. "hitfile\.net\/\\w+",
  7982. 'class="download-file',
  7983. 'style="width:16px;height:16px;border:0;|File not found|File was deleted or not found|Le fichier a été supprimé ou n|Файл не найден. Возможно он был удален',
  7984. 'optional--',
  7985. 'optional2--',
  7986. "//a[contains(@href,'hitfile.net')]");
  7987. }
  7988. if (GM_getValue("Check_nitroflare_dot_com_links", true))
  7989. {
  7990. addFileHost(
  7991. "nitroflare\.com\/\\w+",
  7992. 'Report this file</a>|left;">1 GB<|KB</span>|left;">1.0',
  7993. 'file has been removed|id="error" style="display|Probably deleted|file has been removed due to infringement',
  7994. 'optional--',
  7995. '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.|',
  7996. "//a[contains(@href,'nitroflare.com')]");
  7997. }
  7998. if (GM_getValue("Check_up_dot_top4top_dot_net_links", false))
  7999. {
  8000. addFileHost(
  8001. "up.top4top\.net\/\\w+",
  8002. 'start Downlod template',
  8003. 'start err template',
  8004. 'optional--',
  8005. 'optional2--',
  8006. "//a[contains(@href,'up.top4top.net')]");
  8007. }
  8008. if (GM_getValue("Check_filejoker_dot_net_links", false))
  8009. {
  8010. addFileHost(
  8011. "filejoker\.net\/\\w+",
  8012. 'button id="regular-download">Slow|method_free" value="1|<div id="download" class="download0">|>Get Download Link<',
  8013. 'File Not Found|class="not_found|<div id="download" class="not_found">|"err">DMCA Complaint<',
  8014. 'optional--',
  8015. 'id="download" class="premium-only">',
  8016. "//a[contains(@href,'filejoker.net')]");
  8017. }
  8018. if (GM_getValue("Check_free_dot_fr_links", false))
  8019. {
  8020. addFileHost(
  8021. "(?:dl.\\.|)free\\.fr",
  8022. 'Valider et t&eacute;l&eacute',
  8023. 'Fichier inexistant|Fichier supprim&eacute; pour raison de copyright',
  8024. 'optional--',
  8025. 'optional2--',
  8026. "//a[contains(@href,'dl.free.fr')]");
  8027. }
  8028. if (GM_getValue("Check_gboxes_dot_com_links", false))
  8029. {
  8030. addFileHost(
  8031. "gboxes\.com\/\\w+",
  8032. 'You have requested|color="red">http://www.gboxes.com',
  8033. 'File Not Found|<div style="width:500px;text-align:left;">',
  8034. 'optional--',
  8035. 'optional2--',
  8036. "//a[contains(@href,'gboxes.com')]");
  8037. }
  8038. if (GM_getValue("Check_led_dot_wf_links", false))
  8039. {
  8040. addFileHost(
  8041. "led\.wf\/\\w+",
  8042. 'logo_0.png|downloads.gif"|verifycode',
  8043. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  8044. 'optional--',
  8045. 'available only for Premium users',
  8046. "//a[contains(@href,'led.wf')]");
  8047. }
  8048. if (GM_getValue("Check_lan_dot_wf_links", false))
  8049. {
  8050. addFileHost(
  8051. "lan\.wf\/\\w+",
  8052. 'logo_0.png|downloads.gif"|verifycode',
  8053. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  8054. 'optional--',
  8055. 'available only for Premium users',
  8056. "//a[contains(@href,'lan.wf')]");
  8057. }
  8058. if (GM_getValue("Check_adlink_dot_wf_links", false))
  8059. {
  8060. addFileHost(
  8061. "adlink\.wf\/\\w+",
  8062. 'logo_0.png|downloads.gif"|verifycode',
  8063. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  8064. 'optional--',
  8065. 'available only for Premium users',
  8066. "//a[contains(@href,'adlink.wf')]");
  8067. }
  8068. if (GM_getValue("Check_click_dot_tf_links", false))
  8069. {
  8070. addFileHost(
  8071. "click\.tf\/\\w+",
  8072. 'logo_0.png|downloads.gif"|verifycode',
  8073. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  8074. 'optional--',
  8075. 'available only for Premium users',
  8076. "//a[contains(@href,'click.tf')]");
  8077. }
  8078. if (GM_getValue("Check_ssh_dot_tf_links", false))
  8079. {
  8080. addFileHost(
  8081. "ssh\.tf\/\\w+",
  8082. 'logo_0.png|downloads.gif"|verifycode',
  8083. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  8084. 'optional--',
  8085. 'available only for Premium users',
  8086. "//a[contains(@href,'ssh.tf')]");
  8087. }
  8088. if (GM_getValue("Check_ssh_dot_yt_links", false))
  8089. {
  8090. addFileHost(
  8091. "ssh\.yt\/\\w+",
  8092. 'logo_0.png|downloads.gif"|verifycode',
  8093. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  8094. 'optional--',
  8095. 'available only for Premium users',
  8096. "//a[contains(@href,'ssh.yt')]");
  8097. }
  8098. if (GM_getValue("Check_yep_dot_pm_links", false))
  8099. {
  8100. addFileHost(
  8101. "yep\.pm\/\\w+",
  8102. 'logo_0.png|downloads.gif"|verifycode',
  8103. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  8104. 'optional--',
  8105. 'available only for Premium users',
  8106. "//a[contains(@href,'yep.pm')]");
  8107. }
  8108. if (GM_getValue("Check_kyc_dot_pm_links", false))
  8109. {
  8110. addFileHost(
  8111. "kyc\.pm\/\\w+",
  8112. 'logo_0.png|downloads.gif"|verifycode',
  8113. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  8114. 'optional--',
  8115. 'available only for Premium users',
  8116. "//a[contains(@href,'kyc.pm')]");
  8117. }
  8118. if (GM_getValue("Check_brupload_dot_net_links", false))
  8119. {
  8120. addFileHost(
  8121. "brupload\.net\/\\w+",
  8122. 'Download Gratuito',
  8123. '<div style="width:500px;text-align:left;">',
  8124. 'optional--',
  8125. 'optional2--',
  8126. "//a[contains(@href,'brupload.net')]");
  8127. }
  8128. if (GM_getValue("Check_cloudzilla_dot_to_links", false))
  8129. {
  8130. addFileHost(
  8131. "cloudzilla\.to\/\\w+",
  8132. 'btn1" id="free_download|onclick="freeDownload|id="pwd_protected">',
  8133. 'File not found|/imgs/broken.png',
  8134. 'optional--',
  8135. 'optional2--',
  8136. "//a[contains(@href,'cloudzilla.to')]");
  8137. }
  8138. if (GM_getValue("Check_fileparadox_dot_in_links", false))
  8139. {
  8140. addFileHost(
  8141. "fileparadox\.in\/\\w+",
  8142. 'CONTENT="Download File|method_free_file',
  8143. '>File Not Found<|id="no_filedownload">|FILE NOT FOUND|The file does not exist',
  8144. 'optional--',
  8145. 'optional2--',
  8146. "//a[contains(@href,'fileparadox.in')or contains(@href,'3files.net/')]");
  8147. }
  8148. if (GM_getValue("Check_clicknupload_dot_com_links", false))
  8149. {
  8150. addFileHost(
  8151. "clicknupload\.com\/\\w+",
  8152. 'name="method_free',
  8153. 'File Not Found',
  8154. 'optional--',
  8155. 'optional2--',
  8156. "//a[contains(@href,'clicknupload.com')]");
  8157. }
  8158. if (GM_getValue("Check_clicknupload_dot_me_links", false))
  8159. {
  8160. addFileHost(
  8161. "clicknupload\.me\/\\w+",
  8162. 'name="method_free',
  8163. 'File Not Found',
  8164. 'optional--',
  8165. 'optional2--',
  8166. "//a[contains(@href,'clicknupload.me')]");
  8167. }
  8168. if (GM_getValue("Check_ex_dash_load_dot_com_links", false))
  8169. {
  8170. addFileHost(
  8171. "ex-load\.com\/\\w+",
  8172. 'name="method_free|<p>Download File:</p>',
  8173. 'Folder Not Found|File Not Found|Error 404',
  8174. 'optional--',
  8175. 'class="downprem wow bounceInLeft',
  8176. "//a[contains(@href,'ex-load.com')]");
  8177. }
  8178. if (GM_getValue("Check_hexupload_dot_com_links", false))
  8179. {
  8180. addFileHost(
  8181. "hexupload\.com\/\\w+",
  8182. 'button" value="Free|type="submit" value=""',
  8183. 'File Not Found|<div style="width:500px;text-align:left;">',
  8184. 'optional--',
  8185. 'optional2--',
  8186. "//a[contains(@href,'hexupload.com')]");
  8187. }
  8188. if (GM_getValue("Check_wizupload_dot_com_links", false))
  8189. {
  8190. addFileHost(
  8191. "wizupload\.com\/\\w+",
  8192. 'btn_download|class="downloadbtn"',
  8193. '>File Not Found<',
  8194. 'optional--',
  8195. 'optional2--',
  8196. "//a[contains(@href,'wizupload.com')]");
  8197. }
  8198. if (GM_getValue("Check_filecloud_dot_cc_links", false))
  8199. {
  8200. addFileHost(
  8201. "filecloud\.cc\/\\w+",
  8202. 'align="center"><input type="submit" name=',
  8203. 'File Not Found|<Title>FileCloud - Premium Hosting Service<',
  8204. 'optional--',
  8205. 'optional2--',
  8206. "//a[contains(@href,'filecloud.cc')]");
  8207. }
  8208. if (GM_getValue("Check_inclouddrive_dot_com_links", false))
  8209. {
  8210. addFileHost(
  8211. "inclouddrive\.com\/\\w+",
  8212. 'initfreedownload',
  8213. '<title>Content Unavailable|The file you are trying to download is no longer available',
  8214. 'optional--',
  8215. 'optional2--',
  8216. "//a[contains(@href,'inclouddrive.com')]");
  8217. }
  8218. if (GM_getValue("Check_radicalshare_dot_com_links", false))
  8219. {
  8220. addFileHost(
  8221. "radicalshare\.com\/\\w+",
  8222. 'value="download1|name="method_free"',
  8223. 'File Not Found<|<div style="width:500px;text-align:left;">',
  8224. 'optional--',
  8225. 'optional2--',
  8226. "//a[contains(@href,'radicalshare.com')]");
  8227. }
  8228. if (GM_getValue("Check_sharemods_dot_com_links", false))
  8229. {
  8230. addFileHost(
  8231. "sharemods\.com\/\\w+",
  8232. 'name="method_free"',
  8233. 'File Not Found<',
  8234. 'optional--',
  8235. 'optional2--',
  8236. "//a[contains(@href,'sharemods.com')]");
  8237. }
  8238. if (GM_getValue("Check_hostr_dot_co_links", false))
  8239. {
  8240. addFileHost(
  8241. "hostr\.co\/\\w+",
  8242. 'method="get"',
  8243. 'File not found<|error-page',
  8244. 'optional--',
  8245. 'optional2--',
  8246. "//a[contains(@href,'hostr.co')]");
  8247. }
  8248. if (GM_getValue("Check_filepi_dot_com_links", false))
  8249. {
  8250. addFileHost(
  8251. "filepi\.com\/\\w+",
  8252. 'id="button_start">',
  8253. 'File not found',
  8254. 'optional--',
  8255. 'optional2--',
  8256. "//a[contains(@href,'filepi.com')]");
  8257. }
  8258. if (GM_getValue("Check_tikfile_dot_com_links", false))
  8259. {
  8260. addFileHost(
  8261. "tikfile\.com\/\\w+",
  8262. 'btn_download',
  8263. 'File Not Found|file was removed|Reason for deletion',
  8264. 'optional--',
  8265. 'optional2--',
  8266. "//a[contains(@href,'tikfile.com')]");
  8267. }
  8268. if (GM_getValue("Check_cloudsix_dot_me_links", false))
  8269. {
  8270. addFileHost(
  8271. "cloudsix\.me\/\\w+",
  8272. 'name="method_free"',
  8273. 'File Not Found|width:500px;text-align:left;">',
  8274. 'optional--',
  8275. 'optional2--',
  8276. "//a[contains(@href,'cloudsix.me')]");
  8277. }
  8278. if (GM_getValue("Check_neodrive_dot_co_links", false))
  8279. {
  8280. addFileHost(
  8281. "neodrive\.co\/\\w+",
  8282. 'btn1" id="free_download|onclick="freeDownload|id="pwd_protected">',
  8283. 'File not found|/imgs/broken.png',
  8284. 'optional--',
  8285. 'optional2--',
  8286. "//a[contains(@href,'neodrive.co')]");
  8287. }
  8288. if (GM_getValue("Check_chayfile_dot_com_links", false))
  8289. {
  8290. addFileHost(
  8291. "chayfile\.com\/\\w+",
  8292. 'name="method_free"',
  8293. 'File Not Found|<h3>The file was removed by administrator</h3>',
  8294. 'optional--',
  8295. 'optional2--',
  8296. "//a[contains(@href,'chayfile.com')]");
  8297. }
  8298. if (GM_getValue("Check_xfileload_dot_com_links", false))
  8299. {
  8300. addFileHost(
  8301. "xfileload\.com\/\\w+",
  8302. 'Filename:|Имя файла:|Dateiname:|nom de fichier :|اسم الملف:|Dosya AdД±|Nazwa:|Nombre de fichero:|NamaFile:|Bestandsnaam:|שם קובץ:"',
  8303. '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..|הקובץ שחיפשת לא נמצא.',
  8304. 'optional--',
  8305. 'optional2--',
  8306. "//a[contains(@href,'xfileload.com')]");
  8307. }
  8308. if (GM_getValue("Check_rockfile_dot_eu_links", false))
  8309. {
  8310. addFileHost(
  8311. "rockfile\.eu\/\\w+",
  8312. 'You have requested:|vous avez demandé|قد طلبت:|você solicitou:|Hai richiesto:|Sie haben angefordert:|Вы заказали:|Has solicitado',
  8313. 'The file you were looking for could not be found, sorry for any inconvenience.|fa-chain-broken">',
  8314. 'optional--',
  8315. 'optional2--',
  8316. "//a[contains(@href,'rockfile.eu')]");
  8317. }
  8318. if (GM_getValue("Check_24uploading_dot_com_links", false))
  8319. {
  8320. addFileHost(
  8321. "24uploading\.com\/\\w+",
  8322. 'File:|Download Speed:',
  8323. '<b>File Not Found</b>|file was removed',
  8324. 'optional--',
  8325. 'optional2--',
  8326. "//a[contains(@href,'24uploading.com')]");
  8327. }
  8328. if (GM_getValue("Check_tusfiles_dot_net_links", false))
  8329. {
  8330. addFileHost(
  8331. "tusfiles\.net\/\\w+",
  8332. 'i/icon/dll.png"|>Start download<br',
  8333. 'no longer available<|i/ino.png"',
  8334. 'optional--',
  8335. 'optional2--',
  8336. "//a[contains(@href,'tusfiles.net')]");
  8337. }
  8338. /* if (GM_getValue("Check_jumbofile_dot_net_links", false))
  8339. {
  8340. addFileHost(
  8341. "jumbofile\.net\/\\w+",
  8342. 'button" class="" value="Free',
  8343. 'This File Was Deleted',
  8344. 'optional--',
  8345. 'optional2--',
  8346. "//a[contains(@href,'jumbofile.net')]");
  8347. } */
  8348. if (GM_getValue("Check_ozofiles_dot_com_links", false))
  8349. {
  8350. addFileHost(
  8351. "ozofiles\.com\/\\w+",
  8352. 'button" value="Free',
  8353. 'File Not Found|width:500px;text-align:left;">|File Deleted',
  8354. 'optional--',
  8355. 'optional2--',
  8356. "//a[contains(@href,'ozofiles.com')]");
  8357. }
  8358. if (GM_getValue("Check_loudupload_dot_net_links", false))
  8359. {
  8360. addFileHost(
  8361. "loudupload\.net\/\\w+",
  8362. 'value="Get Links',
  8363. 'File Not Found',
  8364. 'optional--',
  8365. 'optional2--',
  8366. "//a[contains(@href,'loudupload.net')]");
  8367. }
  8368. if (GM_getValue("Check_rapidsonic_dot_com_links", false))
  8369. {
  8370. addFileHost(
  8371. "(rapidsonic|fileparadox)\\.com\/\\w+",
  8372. 'method_free" id="submit_btn|<h4><i class="icon_document_alt"></i>Download File</h4>',
  8373. '>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">',
  8374. 'optional--',
  8375. 'optional2--',
  8376. "//a[contains(@href,'rapidsonic') or contains(@href,'3files.net/') or contains(@href,'fileparadox.com')]");
  8377. }
  8378. /* if (GM_getValue("Check_krotix_dot_net_links", false))
  8379. {
  8380. addFileHost(
  8381. "krotix\.net\/\\w+",
  8382. 'btn btn-warning|btn-free',
  8383. 'pageErrors|This File has been removed',
  8384. 'content="Scheduled Maintenance',
  8385. 'optional2--',
  8386. "//a[contains(@href,'krotix.net')]");
  8387. } */
  8388. if (GM_getValue("Check_userscloud_dot_com_links", false))
  8389. {
  8390. addFileHost(
  8391. "userscloud\.com\/\\w+",
  8392. 'btn_download',
  8393. '>Server OFFLINE|background:#D3D3D3;border-bottom:1px solid #BBB;font:bold 13px Verdana;padding:3px;">|-chain-broken',
  8394. 'optional--',
  8395. 'optional2--',
  8396. "//a[contains(@href,'userscloud.com')]");
  8397. }
  8398. if (GM_getValue("Check_kumpulbagi_dot_com_links", false))
  8399. {
  8400. addFileHost(
  8401. "kumpulbagi\.com\/\\w+",
  8402. 'class="button download',
  8403. 'internal server error',
  8404. 'optional--',
  8405. 'optional2--',
  8406. "//a[contains(@href,'kumpulbagi.com')]");
  8407. }
  8408. if (GM_getValue("Check_faststore_dot_org_links", false))
  8409. {
  8410. addFileHost(
  8411. "faststore\.org\/\\w+",
  8412. 'name="method_free',
  8413. 'File Not Found',
  8414. 'optional--',
  8415. 'optional2--',
  8416. "//a[contains(@href,'faststore.org')]");
  8417. }
  8418. if (GM_getValue("Check_prefiles_dot_com_links", false))
  8419. {
  8420. addFileHost(
  8421. "prefiles\.com\/\\w+",
  8422. 'id="method_free',
  8423. 'File not Found',
  8424. 'optional--',
  8425. 'optional2--',
  8426. "//a[contains(@href,'prefiles.com')]");
  8427. }
  8428. if (GM_getValue("Check_doraupload_dot_com_links", false))
  8429. {
  8430. addFileHost(
  8431. "doraupload\.com\/\\w+",
  8432. 'btn_download|name="method_free',
  8433. 'class="error-code|Could Not Be Found',
  8434. 'optional--',
  8435. 'optional2--',
  8436. "//a[contains(@href,'doraupload.com')]");
  8437. }
  8438. if (GM_getValue("Check_openload_dot_io_links", false))
  8439. {
  8440. addFileHost(
  8441. "openload\.io\/\\w+",
  8442. 'btn btn-primary|class="count">|secondsleftouter',
  8443. 'class="jumbotron">|We are sorry',
  8444. 'optional--',
  8445. 'optional2--',
  8446. "//a[contains(@href,'openload.io')]");
  8447. }
  8448. if (GM_getValue("Check_uploads_dot_xxx_links", false))
  8449. {
  8450. addFileHost(
  8451. "uploads\.xxx\/\\w+",
  8452. 'downoadForFree',
  8453. 'File not found',
  8454. 'optional--',
  8455. 'optional2--',
  8456. "//a[contains(@href,'uploads.xxx')]");
  8457. }
  8458. if (GM_getValue("Check_zxcfiles_dot_com_links", false))
  8459. {
  8460. addFileHost(
  8461. "zxcfiles\.com\/\\w+",
  8462. 'class="downloadbtn',
  8463. 'File Not Found',
  8464. 'optional--',
  8465. 'optional2--',
  8466. "//a[contains(@href,'zxcfiles.com')]");
  8467. }
  8468. if (GM_getValue("Check_up07_dot_net_links", false))
  8469. {
  8470. addFileHost(
  8471. "up07\.net\/\\w+",
  8472. 'name="method_free',
  8473. 'File Not Found',
  8474. 'optional--',
  8475. 'optional2--',
  8476. "//a[contains(@href,'up07.net')]");
  8477. }
  8478. if (GM_getValue("Check_fileupload_dot_pw_links", false))
  8479. {
  8480. addFileHost(
  8481. "fileupload\.pw\/\\w+",
  8482. 'value="Free"',
  8483. 'File Not Found',
  8484. 'optional--',
  8485. 'optional2--',
  8486. "//a[contains(@href,'fileupload.pw')]");
  8487. }
  8488. if (GM_getValue("Check_4upld_dot_com_links", false))
  8489. {
  8490. addFileHost(
  8491. "4upld\.com\/\\w+",
  8492. 'alt="Download Now"|content="Download file">|btn-free-element',
  8493. '<title>Error|content="error|File not found',
  8494. 'optional--',
  8495. 'optional2--',
  8496. "//a[contains(@href,'4upld.com')]");
  8497. }
  8498. /* if (GM_getValue("Check_newfileland_dot_com_links", false))
  8499. {
  8500. addFileHost(
  8501. "newfileland\.com\/\\w+",
  8502. 'name="method_free',
  8503. 'File Not Found',
  8504. 'optional--',
  8505. 'optional2--',
  8506. "//a[contains(@href,'newfileland.com')]");
  8507. } */
  8508. if (GM_getValue("Check_swoopshare_dot_com_links", false))
  8509. {
  8510. addFileHost(
  8511. "(?:.swoopshare)\\.com\/\\w+",
  8512. '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',
  8513. '<input type="file" name="f"',
  8514. 'optional--',
  8515. 'optional2--',
  8516. "//a[contains(@href,'swoopshare.com')]"
  8517. );
  8518. }
  8519. if (GM_getValue("Check_cloudshares_dot_net_links", false))
  8520. {
  8521. addFileHost(
  8522. "cloudshares\.net\/\\w+",
  8523. '"method_free|"Low Speed Download|submit" name="go',
  8524. 'Not Found|"width:500px;text-align:left;">|No such file exist',
  8525. 'optional--',
  8526. 'optional2--',
  8527. "//a[contains(@href,'cloudshares.net')]"
  8528. );
  8529. }
  8530. if (GM_getValue("Check_allmyvideos_dot_net_links", false))
  8531. {
  8532. addFileHost(
  8533. "allmyvideos\.net\/\\w+",
  8534. 'Continue to Video',
  8535. 'File Not Found|class="err">Removed for',
  8536. 'optional--',
  8537. 'optional2--',
  8538. "//a[contains(@href,'allmyvideos.net')]"
  8539. );
  8540. }
  8541. if (GM_getValue("Check_vodlocker_dot_com_links", false))
  8542. {
  8543. addFileHost(
  8544. "vodlocker\.com\/\\w+",
  8545. 'Proceed to video',
  8546. 'Not Found',
  8547. 'optional--',
  8548. 'optional2--',
  8549. "//a[contains(@href,'vodlocker.com')]"
  8550. );
  8551. }
  8552. if (GM_getValue("Check_vidbull_dot_com_links", false))
  8553. {
  8554. addFileHost(
  8555. "vidbull\.com\/\\w+",
  8556. 'Verifying Video Request',
  8557. 'File Not Found',
  8558. 'optional--',
  8559. 'optional2--',
  8560. "//a[contains(@href,'vidbull.com')]");
  8561. }
  8562. if (GM_getValue("Check_novamov_dot_com_links", false))
  8563. {
  8564. addFileHost(
  8565. "novamov\.com\/\\w+",
  8566. 'For version detection',
  8567. 'file no longer exists',
  8568. 'optional--',
  8569. 'optional2--',
  8570. "//a[contains(@href,'novamov.com')]"
  8571. );
  8572. }
  8573. if (GM_getValue("Check_filehoot_dot_com_links", false))
  8574. {
  8575. addFileHost(
  8576. "filehoot\.com\/\\w+",
  8577. 'Continue to watch',
  8578. 'File Not Found',
  8579. 'optional--',
  8580. 'optional2--',
  8581. "//a[contains(@href,'filehoot.com')]"
  8582. );
  8583. }
  8584. if (GM_getValue("Check_stagevu_dot_com_links", false))
  8585. {
  8586. addFileHost(
  8587. "stagevu\.com\/\\w+",
  8588. 'Video Info',
  8589. 'No video with the provided',
  8590. 'optional--',
  8591. 'optional2--',
  8592. "//a[contains(@href,'stagevu.com')]"
  8593. );
  8594. }
  8595. if (GM_getValue("Check_cloudtime_dot_to_links", false))
  8596. {
  8597. addFileHost(
  8598. "cloudtime\.to\/\\w+",
  8599. 'Download the video',
  8600. 'no longer exists',
  8601. 'optional--',
  8602. 'optional2--',
  8603. "//a[contains(@href,'cloudtime.to')]"
  8604. );
  8605. }
  8606. if (GM_getValue("Check_streamin_dot_to_links", false))
  8607. {
  8608. addFileHost(
  8609. "streamin\.to\/\\w+",
  8610. 'id="btn_download',
  8611. 'Not Found|Copyright Infringement|File Deleted',
  8612. 'optional--',
  8613. 'optional2--',
  8614. "//a[contains(@href,'streamin.to')]"
  8615. );
  8616. }
  8617. if (GM_getValue("Check_videoweed_dot_es_links", false))
  8618. {
  8619. addFileHost(
  8620. "videoweed\.es\/\\w+",
  8621. 'version detection',
  8622. 'no longer exists',
  8623. 'optional--',
  8624. 'optional2--',
  8625. "//a[contains(@href,'videoweed.es')]"
  8626. );
  8627. }
  8628. if (GM_getValue("Check_nowvideo_dot_sx_links", false))
  8629. {
  8630. addFileHost(
  8631. "nowvideo\.sx\/\\w+",
  8632. 'Download this video|value="submit">Continue',
  8633. 'no longer exists',
  8634. 'optional--',
  8635. 'optional2--',
  8636. "//a[contains(@href,'nowvideo.sx')]"
  8637. );
  8638. }
  8639. if (GM_getValue("Check_thevideo_dot_me_links", false))
  8640. {
  8641. addFileHost(
  8642. "thevideo\.me\/\\w+",
  8643. 'Upgrade your account|Proceed to video|class="btn btn-lg btn-dark">',
  8644. 'File Not Found',
  8645. 'optional--',
  8646. 'optional2--',
  8647. "//a[contains(@href,'thevideo.me')]"
  8648. );
  8649. }
  8650. if (GM_getValue("Check_gorillavid_dot_in_links", false))
  8651. {
  8652. addFileHost(
  8653. "gorillavid\.in\/\\w+",
  8654. 'Wait 5 seconds',
  8655. 'File Not Found',
  8656. 'optional--',
  8657. 'optional2--',
  8658. "//a[contains(@href,'gorillavid.in')]"
  8659. );
  8660. }
  8661. if (GM_getValue("Check_thefile_dot_me_links", false))
  8662. {
  8663. addFileHost(
  8664. "thefile\.me\/\\w+",
  8665. 'Choose free or',
  8666. '',
  8667. 'optional--',
  8668. 'optional2--',
  8669. "//a[contains(@href,'thefile.me')]"
  8670. );
  8671. }
  8672. if (GM_getValue("Check_vidzi_dot_tv_links", false))
  8673. {
  8674. addFileHost(
  8675. "vidzi\.tv\/\\w+",
  8676. 'video-embed-modal row',
  8677. 'File Not Found|file was deleted',
  8678. 'optional--',
  8679. 'optional2--',
  8680. "//a[contains(@href,'vidzi.tv')]"
  8681. );
  8682. }
  8683. if (GM_getValue("Check_filenuke_dot_com_links", false))
  8684. {
  8685. addFileHost(
  8686. "filenuke\.com\/\\w+",
  8687. 'Download File',
  8688. 'Earn with us',
  8689. 'optional--',
  8690. 'optional2--',
  8691. "//a[contains(@href,'filenuke.com')]"
  8692. );
  8693. }
  8694. if (GM_getValue("Check_vidto_dot_me_links", false))
  8695. {
  8696. addFileHost(
  8697. "vidto\.me\/\\w+",
  8698. 'Proceed to video',
  8699. 'Not Found',
  8700. 'optional--',
  8701. 'optional2--',
  8702. "//a[contains(@href,'vidto.me')]"
  8703. );
  8704. }
  8705. if (GM_getValue("Check_vidspot_dot_net_links", false))
  8706. {
  8707. addFileHost(
  8708. "vidspot\.net\/\\w+",
  8709. 'Duration',
  8710. 'Removed for',
  8711. 'optional--',
  8712. 'optional2--',
  8713. "//a[contains(@href,'vidspot.net')]"
  8714. );
  8715. }
  8716. if (GM_getValue("Check_sharesix_dot_com_links", false))
  8717. {
  8718. addFileHost(
  8719. "(?:sharesix\\.com|sharesix\\.net)\/\\w+",
  8720. 'Download File',
  8721. 'File Not Found',
  8722. 'optional--',
  8723. 'optional2--',
  8724. "//a[contains(@href,'sharesix.com') or contains(@href,'sharesix.net/')]"
  8725. );
  8726. }
  8727. if (GM_getValue("Check_movpod_dot_in_links", false))
  8728. {
  8729. addFileHost(
  8730. "movpod\.in\/\\w+",
  8731. 'Continue',
  8732. 'File Not Found',
  8733. 'optional--',
  8734. 'optional2--',
  8735. "//a[contains(@href,'movpod.in')]"
  8736. );
  8737. }
  8738. /* if (GM_getValue("Check_down4files_dot_com_links", false))
  8739. {
  8740. addFileHost(
  8741. "down4files\.com\/\\w+",
  8742. 'down_table.png',
  8743. 'style="color:#d33|Error</td>|width:500px;text-align:left;">',
  8744. 'optional--',
  8745. 'optional2--',
  8746. "//a[contains(@href,'down4files.com')]"
  8747. );
  8748. } */
  8749. if (GM_getValue("Check_storefiles_dot_co_links", false))
  8750. {
  8751. addFileHost(
  8752. "storefiles\.co\/\\w+",
  8753. 'btn_download',
  8754. 'No such file|>Error<|mqmaintitle">',
  8755. 'optional--',
  8756. 'optional2--',
  8757. "//a[contains(@href,'storefiles.co')]"
  8758. );
  8759. }
  8760. if (GM_getValue("Check_filehost_dot_pw_links", false))
  8761. {
  8762. addFileHost(
  8763. "filehost\.pw\/\\w+",
  8764. 'name="method_free',
  8765. '>Error<|style="color:#d33;">|No such file|FILE NOT FOUND',
  8766. 'optional--',
  8767. 'optional2--',
  8768. "//a[contains(@href,'filehost.pw')]"
  8769. );
  8770. }
  8771. /* if (GM_getValue("Check_inafile_dot_com_links", false))
  8772. {
  8773. addFileHost(
  8774. "inafile\.com\/\\w+",
  8775. 'value="download1">|<h2>File: <font style="color:darkred">',
  8776. '<div style="width:500px;text-align:left;">|File Not Found',
  8777. 'optional--',
  8778. 'optional2--',
  8779. "//a[contains(@href,'inafile.com')]"
  8780. );
  8781. } */
  8782. if (GM_getValue("Check_uplea_dot_com_links", false))
  8783. {
  8784. addFileHost(
  8785. "uplea\.com\/\\w+",
  8786. 'Download your file:|de votre fichier:|class="download-container|Téléchargement de votre fichier:',
  8787. 'expired link|ou est invalide',
  8788. 'optional--',
  8789. 'optional2--',
  8790. "//a[contains(@href,'uplea.com/dl')]",
  8791. true);
  8792. }
  8793. if (GM_getValue("Check_toutbox_dot_fr_links", false))
  8794. {
  8795. addFileHost(
  8796. "toutbox\.fr\/\\w+",
  8797. '<div class="downloadFileFid">|class="downloadsCounter">/p>|class="filename"><a href=|img/webbuttoned.gif">',
  8798. 'meta name="description" content="Toutbox.fr|redirect-userpage = "true"',
  8799. 'Serviço temporariamente indisponível',
  8800. 'optional2--',
  8801. "//a[contains(@href,'toutbox.fr') or contains(@href,'go4up.com/')]"
  8802. );
  8803. }
  8804. if (GM_getValue("Check_openload_dot_co_links", false))
  8805. {
  8806. addFileHost(
  8807. "openload\.co\/\\w+",
  8808. 'id="downloadTimer">|button dlbutton',
  8809. 'jumbotron{color|got deleted|center !important',
  8810. 'optional--',
  8811. 'optional2--',
  8812. "//a[contains(@href,'openload.co')]"
  8813. );
  8814. }
  8815. if (GM_getValue("Check_lolabits_dot_es_links", false))
  8816. {
  8817. addFileHost(
  8818. "lolabits\.es\/\\w+",
  8819. 'Descargar:',
  8820. '<title>Archivos de usuario',
  8821. 'Service Unavailable',
  8822. 'optional2--',
  8823. "//a[contains(@href,'lolabits.es')]"
  8824. );
  8825. }
  8826. if (GM_getValue("Check_alfafile_dot_net_links", false))
  8827. {
  8828. addFileHost(
  8829. "alfafile\.net\/\\w+",
  8830. 'id="slow_download_btn',
  8831. 'class="error-box">',
  8832. 'optional--',
  8833. 'optional2--',
  8834. "//a[contains(@href,'alfafile.net')]"
  8835. );
  8836. }
  8837. if (GM_getValue("Check_multiup_dot_org_links", false))
  8838. {
  8839. addFileHost(
  8840. "multiup\.org\/\\w+",
  8841. '<title>Download|<title>Télécharger|class="link-download btn"|<h5>DOWNLOAD</h5>|<h5>TÉLÉCHARGER</h5>',
  8842. 'File not found|alert-error">|icon-white icon-warning-sign">|<title>Fichier introuvable',
  8843. 'optional--',
  8844. 'optional2--',
  8845. "//a[contains(@href,'multiup.org')]"
  8846. );
  8847. }
  8848. if (GM_getValue("Check_file_dot_al_links", false))
  8849. {
  8850. addFileHost(
  8851. "file\.al\/\\w+",
  8852. 'method_free',
  8853. 'style="width:500px;text-align:left;">',
  8854. 'optional--',
  8855. 'optional2--',
  8856. "//a[contains(@href,'file.al')]"
  8857. );
  8858. }
  8859. if (GM_getValue("Check_devilshare_dot_net_links", false))
  8860. {
  8861. addFileHost(
  8862. "devilshare\.net\/\\w+",
  8863. '<div class="large-12" id="download">',
  8864. '(Link: 0 Invalid)|File Not Found',
  8865. 'optional--',
  8866. 'optional2--',
  8867. "//a[contains(@href,'devilshare.net')]"
  8868. );
  8869. }
  8870. if (GM_getValue("Check_dailyuploads_dot_net_links", false))
  8871. {
  8872. addFileHost(
  8873. "dailyuploads\.net\/\\w+",
  8874. 'id="downloadBtnClickOrignal',
  8875. '<div style="width:500px;text-align:left;">',
  8876. 'optional--',
  8877. 'optional2--',
  8878. "//a[contains(@href,'dailyuploads.net')]"
  8879. );
  8880. }
  8881.  
  8882. }
  8883. //start here
  8884.  
  8885. //hosts with direct download, so they must be requested for headers only
  8886. function initFileHostsHeadersOnly()
  8887. {
  8888. function addFileHostHeadersOnly(linkRegex, isAliveRegex, isDeadRegex, xpathEx, ispremRegex)
  8889. {
  8890. var host = new Array(5);
  8891. host[0] = linkRegex;
  8892. host[1] = isAliveRegex;
  8893. host[2] = isDeadRegex;
  8894. host[3] = xpathEx;
  8895. host[4] = ispremRegex;
  8896. http_file_hosts_headers_only.push(host);
  8897. }
  8898. if (GM_getValue("Check_uloziste_dot_com_links", false))
  8899. {
  8900. addFileHostHeadersOnly(
  8901. "(?:|files\\.)uloziste\\.com\/\\w+\/\\w+",
  8902. 'Connection: Keep-Alive',
  8903. 'Content-Length: 3857',
  8904. "//a[contains(@href,'uloziste.com')]"
  8905. )
  8906. }
  8907. if (GM_getValue("Check_adrive_dot_com_links", false))
  8908. {
  8909. addFileHostHeadersOnly(
  8910. "adrive\\.com\/public\/\\w+",
  8911. 'Connection: keep-alive',
  8912. 'orig_ref=deleted',
  8913. "//a[contains(@href,'adrive.com')]"
  8914. )
  8915. }
  8916. if (GM_getValue("Check_myupload_dot_dk_links", false))
  8917. {
  8918. addFileHostHeadersOnly(
  8919. "myupload\\.dk\/showfile\/\\w+",
  8920. 'Expires:',
  8921. 'squeeze1\\s+Vary',
  8922. "//a[contains(@href,'myupload.dk/showfile')]"
  8923. )
  8924. }
  8925. }
  8926. //CustomRules
  8927. //functions add...Host copied here
  8928. function addObsoleteHost(linkRegex, xpathEx)
  8929. {
  8930. var host = new Array(2);
  8931. host[0] = linkRegex;
  8932. host[1] = xpathEx;
  8933. http_file_hosts_obsolete.push(host);
  8934. }
  8935. function addFileHost(linkRegex, isAliveRegex, isDeadRegex, isUnavaRegex, xpathEx, tryLoop, ispremRegex)
  8936. {
  8937. var host = new Array(7);
  8938. host[0] = linkRegex;
  8939. host[1] = isAliveRegex;
  8940. host[2] = isDeadRegex;
  8941. host[3] = isUnavaRegex;
  8942. host[4] = xpathEx;
  8943. tryLoop ? host[5] = true : host[5] = false;
  8944. host[6] = ispremRegex;
  8945. http_file_hosts.push(host);
  8946. }
  8947. function addFileHostHeadersOnly(linkRegex, isAliveRegex, isDeadRegex, xpathEx, ispremRegex)
  8948. {
  8949. var host = new Array(5);
  8950. host[0] = linkRegex;
  8951. host[1] = isAliveRegex;
  8952. host[2] = isDeadRegex;
  8953. host[3] = xpathEx;
  8954. host[4] = ispremRegex;
  8955. http_file_hosts_headers_only.push(host);
  8956. }
  8957. //takes a fully built rules array and adds the rules to WARLC
  8958. function applyCustomRules(customRules)
  8959. {
  8960. if (!customRules) return;
  8961. var rules, r, i;
  8962. rules = customRules.rules;
  8963. for (i = 0 ; i < rules.length ; i++)
  8964. {
  8965. r = rules[i];
  8966. if (r.enabled)
  8967. {
  8968. switch (r.type)
  8969. {
  8970. case 'single':
  8971. addFileHost(r.urlregex, r.aliveregex, r.deadregex, r.unavaregex, r.premregex||'', r.xpath);
  8972. break;
  8973. case 'headers':
  8974. addFileHostHeadersOnly(r.urlregex, r.aliveregex, r.deadregex, r.xpath, r.premregex);
  8975. break;
  8976. case 'obsolete':
  8977. addObsoleteHost(r.urlregex, r.xpath)
  8978. break;
  8979. }
  8980. }
  8981. }
  8982. }
  8983.  
  8984.  
  8985. function initFileHostsCustom()
  8986. {
  8987. if (Custom_rules && Custom_rules_text)
  8988. {
  8989. var msg = '';
  8990. if (newVersion)
  8991. msg = 'New version of W.A.R. Links Checker detected.\n\n';
  8992. else if ((now - last_custom_rules_nag) >= 60*24*60*60*1000)
  8993. msg = '60 or more days have passed since this notification.\n\n';
  8994. if (msg && /^\s*@customrule(?:_obsolete)?\s/mi.test(Custom_rules_text))
  8995. {
  8996. GM_setValue('last_custom_rules_nag', ''+new Date().getTime()); //reset nag
  8997. msg +=
  8998. 'Either new version of W.A.R. Links Checker detected or 60 days passed since this notify.\n'+
  8999. 'Please check that your custom rules haven\'t been built into WARLC.\n'+
  9000. 'If not, please share them with us so they can be included in the next version! Built-in rules are always preferred.\n\n'+
  9001. 'We apologize for this annoying notification, but there is a reason to this.\n'+
  9002. 'Ideally, WARLC would check which of your custom rules have been included and disable them. '+
  9003. 'Unfortunately, there is no easy way to do that, but we don\'t want everybody to just use their custom rules '+
  9004. 'forever without ever checking if the built-in ones have been added/fixed. This is currently the only way '+
  9005. 'to remind you that you should try built-in rules, report missing/non-working ones and share your custom rules.';
  9006. setTimeout(function(){alert(msg)},0);
  9007. }
  9008. var customRules = parseCustomRules(Custom_rules_text);
  9009. if (customRules.warning || customRules.error)
  9010. alert('There were ' + customRules.error + ' errors, ' + customRules.warning + ' warnings, ' +
  9011. customRules.note + ' notes found during Custom Rules processing.\n' + customRules.rules.length + ' valid rules found.\n\n' +
  9012. JSON.stringify(customRules.info, null, ' '));
  9013. applyCustomRules(customRules);
  9014. }
  9015. }
  9016. //end of CustomRules processing
  9017.  
  9018.  
  9019.  
  9020. } //end of function start
  9021.  
  9022.  
  9023.  
  9024. function initClipBoardTools()
  9025. {
  9026. unsafeWindow.copyToClipboard = function(text)
  9027. {
  9028. try
  9029. {
  9030. this.netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
  9031.  
  9032. var str = Components.classes["@mozilla.org/supports-string;1"].
  9033. createInstance(Components.interfaces.nsISupportsString);
  9034. if (!str) return false;
  9035.  
  9036. str.data = text;
  9037.  
  9038. var trans = Components.classes["@mozilla.org/widget/transferable;1"].
  9039. createInstance(Components.interfaces.nsITransferable);
  9040. if (!trans) return false;
  9041.  
  9042. trans.addDataFlavor("text/unicode");
  9043. trans.setTransferData("text/unicode", str, text.length * 2);
  9044.  
  9045. var clipid = Components.interfaces.nsIClipboard;
  9046. var clip = Components.classes["@mozilla.org/widget/clipboard;1"].getService(clipid);
  9047. if (!clip) return false;
  9048.  
  9049. clip.setData(trans, null, clipid.kGlobalClipboard);
  9050. } catch (e) {
  9051. GM_log("Error copyToClipboard : " + e);
  9052. alert(e + "\n\nsigned.applets.codebase_principal_support must be set true in about:config")
  9053. }
  9054. }
  9055. }
  9056.  
  9057.  
  9058.  
  9059. //CustomRules
  9060.  
  9061. function escapeRegex(str)
  9062. {
  9063. return str.replace(/[\-\[\]{}()*+?.,\\\^$|#]/g, "\\$&");
  9064. }
  9065.  
  9066.  
  9067. //called internally from parseCustomRules.
  9068. //expected: rule object with array fields baseurl, alivematch etc, everything must already be checked for input errors
  9069. //returns the rule object with string fields urlregex, xpath, aliveregex etc built from the arrays
  9070. function makeCustomRule(rule)
  9071. {
  9072. function makeMatchRegex(arrmatch)
  9073. {
  9074. return escapeRegex(arrmatch.join('\n'))
  9075. .replace(/ +/g, '\\s+') //two or more spaces to any whitespace
  9076. .replace(/\n/g,'|'); //join together
  9077. }
  9078. if (rule.alivematch) rule.aliveregex = makeMatchRegex(rule.alivematch);
  9079. if (rule.deadmatch) rule.deadregex = makeMatchRegex(rule.deadmatch);
  9080. if (rule.unavamatch) rule.unavaregex = makeMatchRegex(rule.unavamatch);
  9081. if (rule.premmatch) rule.premregex = makeMatchRegex(rule.premmatch);
  9082. if (rule.baseurl)
  9083. {
  9084. var i, m, urlregex = [], xpath = [], len = rule.baseurl.length;
  9085. for (i = 0 ; i < len ; i++)
  9086. {
  9087. m = rule.baseurl[i].match(/^([a-z0-9\.-]+)(?: +([a-z \.]+) +)?(\/.*)$/);
  9088. if (m[2]) //baseurl in the form: example. com co.uk net /xxx
  9089. {
  9090. 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'])
  9091. urlregex.push( (m[1] + '(?:'+ m[2].replace(/\s+/g,'|') + ')').replace(/\./g,'\\.') + escapeRegex(m[3]) + '.'); //urlregex.push('example\\.(?:com|co\\.uk|net)/xxx.')
  9092. }
  9093. else //baseurl in the form: example.com/xxx
  9094. {
  9095. xpath.push(m[0]);
  9096. urlregex.push(escapeRegex(m[0]) + '.');
  9097. }
  9098. }
  9099. rule.xpath = "//a[contains(@href,'" + xpath.join("') or contains(@href,'") + "')]";
  9100. rule.urlregex = '(?:[a-z0-9\\.-]+\\.)?(?:' + urlregex.join('|') + ')';
  9101. }
  9102. return rule;
  9103. } //function makeCustomRule
  9104.  
  9105.  
  9106. /*
  9107. Takes a string containing custom link checking rules.
  9108. Returns an object with fields:
  9109. info - contains notes, warnings and errors found during parsing
  9110. rules - the array of custom rules
  9111. note, warning, error - number of each of them found during parsing
  9112. Format of the input string:
  9113. One command per line. Command format: @keyword parameter
  9114. Keywords:
  9115. @customrule, @customrule_obsolete, @customrule_headers - begin a new custom rule. Parameter: name of the rule
  9116. @#customrule, @#customrule_obsolete, @#customrule_headers - begin and parse this custom rule, but don't use it. Parameter: name of the rule
  9117. These keywords can be multiple (any of them will work):
  9118. @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...)
  9119. @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+
  9120. @alivelink, @deadlink - example links
  9121. @baseurl is always required, @alivematch and @deadmatch are required except for obsolete. @unavamatch is ignored for obsolete. @*link is optional.
  9122. Lines starting with // and empty lines are ignored.
  9123. Invalid parameters generate errors and those lines are skipped.
  9124. Other lines generate warnings, but are otherwise ignored (also those before the first @customrule line or inside a rule with invalid name).
  9125. Example:
  9126. @customrule filehost
  9127. @baseurl filehost.com/download/
  9128. @baseurl filehost2. com net /d?=
  9129. @alivematch id="download">
  9130. @deadmatch File not found
  9131. @deadmatch File deleted
  9132. */
  9133. function parseCustomRules(rulesStr)
  9134. {
  9135. var linenum, customRules = {'info': [], 'rules': [], 'note': 0, 'warning': 0, 'error': 0};
  9136. function addInfo(type, msg, ln){
  9137. customRules.info.push({'linenum':(ln===undefined ? linenum+1 : ln+1), 'type':type, 'msg':msg});
  9138. customRules[type]++;
  9139. }
  9140. var lines = rulesStr.match(/^(.*)$/gm); //split into array of lines
  9141. if (!lines) return null;
  9142. lines.push('@#customrule _'); //to save the last rule
  9143. var m, linecount = lines.length;
  9144. var keyword, param, constr, rule, err;
  9145. var TLD = '[a-z]{2,7}(?:\\.[a-z]{2,7})?';
  9146. var TLDorTLDlist = '(?:'+TLD+'| '+TLD+'(?: '+TLD+'){0,9} )'; //TLD or space-separated list of TLDs
  9147. var baseurlRE = new RegExp('^([a-z0-9-]{1,30}(?:\\.[a-z0-9-]{1,30}){0,2}\\.)'+TLDorTLDlist+'(/[^\'"\s\$]{0,50})$', 'i');
  9148. var constraints = {
  9149. 'baseurl': {
  9150. 'single': {'min': 1, 'max': 10, 'paramRE': baseurlRE},
  9151. 'headers': {'min': 1, 'max': 10, 'paramRE': baseurlRE},
  9152. 'obsolete': {'min': 1, 'max': 10, 'paramRE': baseurlRE}},
  9153. 'alivematch': {
  9154. 'single': {'min': 1, 'max': 10, 'paramRE': null},
  9155. 'headers': {'min': 1, 'max': 10, 'paramRE': null}},
  9156. 'deadmatch': {
  9157. 'single': {'min': 1, 'max': 10, 'paramRE': null},
  9158. 'headers': {'min': 1, 'max': 10, 'paramRE': null}},
  9159. 'unavamatch': {
  9160. 'single': {'min': 0, 'max': 10, 'paramRE': null}},
  9161. 'alivelink': {
  9162. 'single': {'min': 0, 'max': 10, 'paramRE': null},
  9163. 'headers': {'min': 0, 'max': 10, 'paramRE': null}},
  9164. 'deadlink': {
  9165. 'single': {'min': 0, 'max': 10, 'paramRE': null},
  9166. 'headers': {'min': 0, 'max': 10, 'paramRE': null},
  9167. 'obsolete': {'min': 0, 'max': 10, 'paramRE': null}}
  9168. };
  9169. for (linenum = 0 ; linenum < linecount ; linenum++)
  9170. {
  9171. //capturing groups: 1 23 4 5 6
  9172. m = lines[linenum].match(/^\s*(?:(\/\/.*)|@((#?)(customrule)(?:_(headers|obsolete))?|baseurl|alivematch|deadmatch|unavamatch|alivelink|deadlink)\s+(.+))?$/i);
  9173. if (m)
  9174. {
  9175. if (m[1] || !m[2])
  9176. continue; // ignore empty lines and lines starting with //
  9177. keyword = (m[4] || m[2]).toLowerCase();
  9178. param = m[6];
  9179. if (keyword == 'customrule')
  9180. {
  9181. //save the current rule if all required fields are provided
  9182. if (rule)
  9183. {
  9184. err = false;
  9185. $.each(constraints, function(kw, constraint){
  9186. var l, constr = constraint[rule.type];
  9187. if (constr)
  9188. {
  9189. l = rule[kw] ? rule[kw].length : 0;
  9190. if (l < constr.min || l > constr.max)
  9191. {
  9192. 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);
  9193. err = true;
  9194. }
  9195. }
  9196. });
  9197. if (!err)
  9198. customRules.rules.push(makeCustomRule(rule));
  9199. }
  9200. //start a new rule
  9201. if (/^[\w\.-]{1,30}$/.test(param)) //valid name?
  9202. {
  9203. rule = {
  9204. 'enabled': !m[3],
  9205. 'type': m[5] ? m[5].toLowerCase() : 'single',
  9206. 'name': param
  9207. };
  9208. }
  9209. else
  9210. {
  9211. addInfo('error', 'Invalid rule name. Cannot start a new rule definition.');
  9212. rule = null;
  9213. }
  9214. }
  9215. else //good line format, but keyword other than customrule
  9216. {
  9217. if (!rule)
  9218. {
  9219. addInfo('warning', 'Command outside @CUSTOMRULE definiton. Line skipped.');
  9220. continue;
  9221. }
  9222. if (constraints[keyword])
  9223. {
  9224. constr = constraints[keyword][rule.type];
  9225. if (constr)
  9226. {
  9227. if (constr.paramRE && !constr.paramRE.test(param))
  9228. {
  9229. addInfo('warning', 'Invalid @' + keyword.toUpperCase() + ' parameter. Line Skipped.');
  9230. continue;
  9231. }
  9232. }
  9233. else
  9234. {
  9235. addInfo('note', '@' + keyword.toUpperCase() + ' not applicable for type ' + rule.type.toUpperCase() + '. Line skipped.');
  9236. continue;
  9237. }
  9238. }
  9239. //line OK, save
  9240. rule[keyword] ? rule[keyword].push(param) : rule[keyword] = [param];
  9241. }
  9242. } //if (m)
  9243. else
  9244. addInfo('warning', 'Unknown line format. Line skipped.');
  9245. } //for loop
  9246. return customRules;
  9247. } //function parseCustomRules