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

detects live, dead and premium links.

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

  1. //added rapidsonic.com & fileparadox.com 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.5
  8. // @icon http://sharenxs.com/photos/2014/02/14/52fd759db90ac/cooltext1428903746.png
  9. // @license GPL version 3 or any later version (http://www.gnu.org/copyleft/gpl.html)
  10. // @author mental
  11. // @include http://*
  12. // @include https://*
  13. // @include file:///*
  14. // @grant GM_setValue
  15. // @grant GM_getValue
  16. // @grant GM_xmlhttpRequest
  17. // @grant GM_log
  18. // @grant GM_addStyle
  19. // @grant GM_registerMenuCommand
  20. // @grant GM_getResourceText
  21. // @grant GM_info
  22. // @require https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js
  23. // @require https://ajax.googleapis.com/ajax/libs/jqueryui/1.9.1/jquery-ui.min.js
  24. // @resource jQueryUICSS https://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/smoothness/jquery-ui.css
  25. // @homepage http://www.warlc.5gbfree.com
  26. // @namespace http://www.warlc.5gbfree.com
  27. // @noframes
  28. // ==/UserScript==
  29.  
  30. //separate alternative domains with "|" char (first name is considered being main)
  31. var allHostNames = [
  32. "1fichier.com|dl4free.com",
  33. "dailyuploads.net",
  34. "devilshare.net",
  35. "alfafile.net",
  36. "openload.co",
  37. "multiup.org",
  38. "uplea.com",
  39. "filenuke.com",
  40. "file.al",
  41. // "inafile.com",
  42. "lolabits.es",
  43. "vidto.me",
  44. "storefiles.co",
  45. "filehost.pw",
  46. "vidspot.net",
  47. "turbobit.ru",
  48. "sharesix.com|sharesix.net",
  49. "movpod.in",
  50. "thefile.me",
  51. "vidzi.tv",
  52. "videoweed.es",
  53. "vodlocker.com",
  54. "nowvideo.sx",
  55. "cloudtime.to",
  56. "thevideo.me",
  57. "vidbull.com",
  58. "allmyvideos.net",
  59. "novamov.com",
  60. "filehoot.com",
  61. "stagevu.com",
  62. "gorillavid.in",
  63. "streamin.to",
  64. "4upld.com",
  65. "cloudshares.net",
  66. "swoopshare.com",
  67. "2shared.com",
  68. "fileupload.pw",
  69. "zxcfiles.com",
  70. "up07.net",
  71. "4shared.com",
  72. "adrive.com",
  73. "aisfile.com",
  74. "hexupload.com",
  75. "bezvadata.cz",
  76. "xkeepfile.com|Gamesena.com",
  77. "usersfiles.com",
  78. "pan.baidu.com",
  79. "radicalshare.com",
  80. "datei.to",
  81. "daten-hoster.de|filehosting.org|xtraupload.de",
  82. "demo.ovh.eu",
  83. "depositfiles.com|depositfiles.lt|depositfiles.org|dfiles.ru|dfiles.eu",
  84. "divshare.com",
  85. "easy-share.com|crocko.com",
  86. "easybytez.com",
  87. "edisk.cz",
  88. "euroshare.eu",
  89. "file-upload.net",
  90. "yadi.sk",
  91. "wizupload.com",
  92. "fastshare.cz",
  93. "filefactory.com",
  94. "share.vnn.vn",
  95. "yunpan.cn",
  96. "gulfup.com",
  97. "tropicshare.com",
  98. "cloudzilla.to",
  99. "inclouddrive.com",
  100. "fileflyer.com",
  101. "filerio.com|filekeen.com",
  102. "up.4share.vn",
  103. "upfile.vn",
  104. "datafilehost.com",
  105. "fileband.com",
  106. "worldbytez.com",
  107. "files.mail.ru",
  108. "filesflash.com",
  109. "box.com",
  110. "uptobox.com",
  111. "box.net",
  112. "goldbytez.com",
  113. "sdilej.cz",
  114. "ex-load.com",
  115. "filesmonster.com",
  116. "filestore.to",
  117. "hulkload.com",
  118. "filedropper.com",
  119. "free-uploading.com",
  120. "gamefront.com|filefront.com",
  121. "gettyfile.ru",
  122. "gigapeta.com",
  123. "gigasize.com",
  124. "hellshare.com",
  125. "hellspy.com",
  126. "hitfile.net",
  127. "hostuje.net",
  128. "freefilehosting.net",
  129. "free.fr",
  130. "hulkshare.com",
  131. "hyperfileshare.com",
  132. "filecloud.io|ifile.it",
  133. "ifolder.ru",
  134. "jumbofiles.com",
  135. "uploadrocket.net",
  136. "lafiles.com",
  137. "leteckaposta.cz|sharegadget.com",
  138. "letitbit.net",
  139. "load.to",
  140. "mediafire.com",
  141. "megafileupload.com",
  142. "megashares.com",
  143. "movshare.net",
  144. "muchshare.net",
  145. "myupload.dk",
  146. "narod.ru|narod.yandex.ru",
  147. "fboom.me|fileboom.me",
  148. "openfile.ru",
  149. "partage-facile.com",
  150. "plunder.com",
  151. "sharerapid.cz",
  152. "exclusiveloader.com",
  153. "acefile.net",
  154. "queenshare.com",
  155. "rapidgator.net",
  156. "k2s.cc|keep2s.cc|keep2share.cc|keep2share.com",
  157. "oboom.com",
  158. "filepi.com",
  159. "neodrive.co",
  160. "rarefile.net",
  161. "rayfile.com",
  162. "rghost.net",
  163. "sendmyway.com",
  164. "clicknupload.com",
  165. "clicknupload.me",
  166. "sharemods.com",
  167. "hostr.co",
  168. "sendspace.com",
  169. "sharecash.org",
  170. "share-links.biz",
  171. "share-online.biz|egoshare.com",
  172. "megarapid.cz",
  173. "shareflare.net",
  174. "solidfiles.com",
  175. "led.wf",
  176. "lan.wf",
  177. "adlink.wf",
  178. "click.tf",
  179. "kyc.pm",
  180. "ssh.tf",
  181. "ssh.yt",
  182. "yep.pm",
  183. "stahovanizasms.cz",
  184. "turbobit.net",
  185. "filecloud.cc",
  186. "tikfile.com",
  187. "cloudsix.me",
  188. "turboupload.com",
  189. "uloz.to|ulozto.cz|bagruj.cz|zachowajto.pl",
  190. "ulozisko.sk",
  191. "uloziste.com",
  192. "unibytes.com",
  193. "upload-il.net|przeslij.net",
  194. "uploaded.to|ul.to",
  195. "uploading.com",
  196. "chayfile.com",
  197. "rockfile.eu",
  198. "24uploading.com",
  199. "uploadspace.pl",
  200. "upnito.sk",
  201. "usaupload.net",
  202. "veehd.com",
  203. "videobb.com",
  204. "vip-file.com",
  205. "webshare.cz",
  206. "xdisk.cz",
  207. "yunfile.com|filemarkets.com",
  208. "ziddu.com",
  209. "zippyshare.com",
  210. "rodfile.com",
  211. "wikiupload.com",
  212. "uploadstube.de",
  213. "faststore.org",
  214. "flyfiles.net",
  215. "nowdownload.ch",
  216. "prefiles.com",
  217. "axifile.com",
  218. "hackerbox.org",
  219. "amonshare.com",
  220. "data.hu",
  221. "brupload.net",
  222. "userscloud.com",
  223. "netkups.com",
  224. "xfileload.com",
  225. "kumpulbagi.com",
  226. "uppit.com|up.ht",
  227. "downloadani.me",
  228. "filesabc.com",
  229. "180upload.com",
  230. "verzend.be",
  231. "4up.me",
  232. "extmatrix.com",
  233. "sendfiles.nl",
  234. "yourfilestore.com",
  235. "filebig.net",
  236. "nekaka.com",
  237. "file4safe.com",
  238. "tusfiles.net",
  239. "filemac.com",
  240. "idup.in",
  241. "fileswap.com",
  242. "ozofiles.com",
  243. "loudupload.net",
  244. "nosupload.com",
  245. "gboxes.com",
  246. "myvdrive.com|fileserving.com",
  247. "filesin.com",
  248. "novafile.com",
  249. "longfiles.com",
  250. // "uploadhero.com",
  251. "uploadbaz.com",
  252. "bitupload.com",
  253. "indowebster.com",
  254. "superload.cz",
  255. "mafiastorage.com",
  256. "4upfiles.com",
  257. "filesmelt.com",
  258. "hellupload.com",
  259. "uploadingit.com",
  260. "stiahni.si",
  261. "sendspace.pl",
  262. "fastshare.org",
  263. "filejoker.net",
  264. "filestore.com.ua",
  265. "secureupload.eu",
  266. "rapidfileshare.net",
  267. "stiahnito.sk",
  268. "rusfolder.com",
  269. "fileover.net",
  270. "catshare.net",
  271. "anonfiles.com",
  272. "mixturecloud.com",
  273. "fileparadox.in",
  274. "filedais.com",
  275. // "imdb.com",
  276. "nitroflare.com",
  277. "akafile.com",
  278. "creafile.net",
  279. "hugefiles.net",
  280. "vidxden.com",
  281. "up.top4top.net",
  282. "upload.ee",
  283. "shareplace.org",
  284. "uploadc.com",
  285. "remixshare.com",
  286. "exoshare.com",
  287. "borncash.org",
  288. "junocloud.me",
  289. "expressleech.com",
  290. "2downloadz.com",
  291. "mightyupload.com",
  292. "anysend.com",
  293. "datafile.com",
  294. "upstore.net",
  295. "upsto.re",
  296. "speedy.sh",
  297. "sanshare.com",
  298. "kingfiles.net",
  299. // "uploadhero.co",
  300. "ge.tt",
  301. "filesflash.net",
  302. "salefiles.com",
  303. // "megairon.net",
  304. "datoid.cz",
  305. "cloudstor.es",
  306. "streamfile.com",
  307. "eyesfile.ca",
  308. "filemoney.com",
  309. "uploadboy.com",
  310. "speedshare.eu",
  311. "google.com",
  312. "unlimitzone.com",
  313. "rioupload.com",
  314. "rg.to",
  315. "jumbofiles.org",
  316. "fshare.vn",
  317. "spaceforfiles.com",
  318. "up.media1fire.com",
  319. "depfile.com",
  320. "go4up.com",
  321. "dropbox.com",
  322. "redbunker.net",
  323. "divxpress.com",
  324. "mega.nz|mega.co.nz",
  325. "anafile.com",
  326. "uploadable.ch",
  327. "arabloads.net",
  328. "sharerepo.com",
  329. "sfshare.se",
  330. "files.fm",
  331. "koofile.com",
  332. "vidplay.net",
  333. "storagon.com",
  334. "doraupload.com",
  335. "openload.io",
  336. "geupload.com|lenfile.com",
  337. "uploads.xxx",
  338. "toutbox.fr",
  339. ];
  340.  
  341. try
  342. {
  343. //iframes excluded
  344. if (window.top != window.self)
  345. {
  346. return;
  347. }
  348. //allHostNames sites excluded
  349. if (window.location.href.match("https?:\/\/(www\.)?[\w\.-]*(?:" +
  350. allHostNames.join("|").replace(/\./g, "\\.").replace(/-/g, "\\-") +
  351. ")"))
  352. {
  353. return;
  354. }
  355. }
  356. catch (e)
  357. {
  358. return;
  359. }
  360.  
  361. //separate alternative domains with "|" char (first name is considered being main)
  362. var allContainerNames = [
  363. "adf.ly",
  364. "linkcrypt.ws",
  365. "linksafe.me",
  366. "linksave.in",
  367. "linkto.net",
  368. "madlink.sk",
  369. "multiload.cz",
  370. "mirrorcreator.com",
  371. "ncrypt.in",
  372. "redi.re",
  373. "relink.us",
  374. "safelinking.net",
  375. "theloo.katt.it",
  376. "bit.ly",
  377.  
  378. ];
  379.  
  380. //separate alternative domains with "|" char (first name is considered being main)
  381. var allObsoleteNames = [
  382. "uloz.cz",
  383. "filepost.com|fp.io",
  384. "rapidsonic.com",
  385. "fileparadox.com",
  386. "uploadhero.co",
  387. "uploadhero.com",
  388. "newfileland.com",
  389. "quickshare.cz",
  390. "netload.in",
  391. "movreel.com",
  392. "migahost.com",
  393. "krotix.net",
  394. "jumbofile.net",
  395. "edoc.com",
  396. "down4files.com",
  397. "cramit.in|cramitin.net",
  398. "freakshare.com",
  399. "burnupload.com|burnupload.ihiphop.com",
  400. "freakshare.net",
  401. "daj.to",
  402. "bl.st",
  403. "2drive.net",
  404. "ryushare.com",
  405. "crisshare.com",
  406. "tufiles.ru",
  407. "uncapped-downloads.com",
  408. "sockshare.com",
  409. "ddlstorage.com",
  410. "dataport.cz",
  411. "dizzcloud.com",
  412. "sharebeast.com",
  413. "stahovadlo.cz",
  414. "shared.com",
  415. "storage.to",
  416. "putlocker.com",
  417. "lumfile.com",
  418. "lumfile.se",
  419. "lumfile.eu",
  420. "firedrive.com",
  421. "fileshare.in.ua",
  422. "filecore.co.nz",
  423. "iskladka.cz",
  424. "file-rack.com",
  425. "fast-load.net",
  426. "subory.sk",
  427. "bigandfree.com",
  428. "fileop.com",
  429. "mujsoubor.cz",
  430. "sendfile.to",
  431. "superfastfile.com",
  432. "quickyshare.com",
  433. "duckload.com",
  434. "uploadstore.net",
  435. "meinupload.com",
  436. "dualshare.com",
  437. "2xupload.to|2xupload.de",
  438. "oxedion.com",
  439. "uploadline.com",
  440. "dll.bz",
  441. "movieshare.in",
  442. "milledrive.com",
  443. "quickupload.net",
  444. "safelink.in",
  445. "metadivx.com",
  446. "divxlink.com",
  447. "uploadrack.com",
  448. "teradepot.com",
  449. "dataup.to",
  450. "upit.to",
  451. "driveway.com",
  452. "eatlime.com",
  453. "a2zuploads.com",
  454. "friendlyfiles.net",
  455. "flyfile.us",
  456. "speedyshare.com",
  457. "uploadspace.eu",
  458. "keepfile.com",
  459. "piggyshare.com",
  460. "uplly.com",
  461. "filecrown.com",
  462. "6giga.com",
  463. "uploadjockey.com",
  464. "bluehost.to",
  465. "filegu.ru",
  466. "filebase.to",
  467. "up-file.com",
  468. "xvideos.com",
  469. "ufox.com",
  470. "filebling.com",
  471. "loaded.it",
  472. "uploadcell.com",
  473. "uploadshare.cz",
  474. "mangoshare.com",
  475. "filestab.com",
  476. "crazyupload.com",
  477. "gaiafile.com",
  478. "sharejunky.com",
  479. "fileho.com",
  480. "bigandfree.com",
  481. "bigfile.in",
  482. "bigshare.eu",
  483. "dahosting.org",
  484. "digisofts.net",
  485. "file4save.com",
  486. "filechip.com",
  487. "filescloud.com",
  488. "saveqube.com",
  489. "turboshare.de",
  490. "z-upload.com",
  491. "youshare.com",
  492. "jiffyupload.com",
  493. "gigeshare.com",
  494. "datenklo.net",
  495. "upload.dj",
  496. "loadfiles.in",
  497. "upit.to",
  498. "dsfileshare.com",
  499. "sharesimple.net",
  500. "4files.net",
  501. "wooupload.com",
  502. "odsiebie.com",
  503. "filenavi.com",
  504. "3oof.com",
  505. "meshwaar.com",
  506. "maxupload.com",
  507. "share.cx",
  508. "atserver.eu",
  509. "hotfiles.ws",
  510. "esnips.com",
  511. "tuxfile.com",
  512. "file2upload.net",
  513. "filebling.com",
  514. "turboshare.com",
  515. "rarhost.com",
  516. "isharehd.com",
  517. "i741.com",
  518. "dataup.de",
  519. "fofly.com",
  520. "shareonall.com",
  521. "sexuploader.com",
  522. "megaupload.com|megavideo.com|megaporn.com|megarotic.com",
  523. "uploadhyper.com",
  524. "filespawn.com",
  525. "caizzii.com",
  526. "volnyweb.cz",
  527. "usershare.net",
  528. "filescash.net",
  529. "metahyper.com",
  530. "combozip.com",
  531. "x7.to",
  532. "uploadbox.com",
  533. "enterupload.com|flyupload.com",
  534. "filepoint.de",
  535. "mystream.to",
  536. "x-fs.com",
  537. "shareator.com",
  538. "srapid.eu",
  539. "sosame.cz",
  540. "filesdump.com",
  541. "2-klicks.de",
  542. "uploking.com",
  543. "silofiles.com",
  544. "upfile.in",
  545. "filehook.com",
  546. "uploadking.com",
  547. "uploadhere.com",
  548. "kewlshare.com",
  549. "rapidable.com",
  550. "uploadwaste.com",
  551. "filemup.com",
  552. "filesonic.com|sharingmatrix.com",
  553. "fileserve.com",
  554. "wupload.com",
  555. "skipfile.com",
  556. "smartuploader.com",
  557. "dualshare.com",
  558. "storeandserve.com",
  559. "mountfile.com",
  560. "transitfiles.com",
  561. "uploadstation.com",
  562. "filejungle.com",
  563. "shareshared.com",
  564. "quickyshare.com",
  565. "save.am",
  566. "petandrive.com",
  567. "file2box.com",
  568. "flyshare.cz",
  569. "yabadaba.ru",
  570. "cloudcache.cc",
  571. "yourfilehost.com",
  572. "jakfile.com",
  573. "kickload.com",
  574. "pyramidfiles.com",
  575. "refile.net",
  576. "zshare.net",
  577. "ddlani.me|ddlanime.com",
  578. "ftp2share.com",
  579. "fooget.com",
  580. "rapidhide.com",
  581. "gotupload.com",
  582. "mooload.com",
  583. "zupload.com",
  584. "mytempdir.com",
  585. "onionshare.com",
  586. "stahnu.to",
  587. "oron.com",
  588. "badongo.com",
  589. "filereactor.com",
  590. "filegaze.com",
  591. "4bytez.com",
  592. "1hostclick.com",
  593. "anonstream.com",
  594. "batshare.com",
  595. "bitroad.net",
  596. "brontofile.com",
  597. "cloudnxt.net",
  598. "cloudnator.com|shragle.com",
  599. "filesfrog.net",
  600. "coolshare.cz",
  601. "dotavi.com",
  602. "ezyfile.net",
  603. "file-bit.net",
  604. "filecosy.com",
  605. "fileduct.com|fileduct.net",
  606. "filefat.com",
  607. "filelaser.com",
  608. "filemashine.com",
  609. "fileserver.cc",
  610. "filetechnology.com",
  611. "fireuploads.net",
  612. "gigfiles.net",
  613. "holderfile.com",
  614. "ihostia.com",
  615. "k2files.com",
  616. "mojofile.com",
  617. "ovfile.com",
  618. "qshare.com",
  619. "shafiles.me",
  620. "sharefilehost.com",
  621. "shareupload.com",
  622. "stahuj.to",
  623. "ugotfile.com",
  624. "uploadboost.com",
  625. "fileom.com",
  626. "vidhog.com",
  627. "xfileshare.eu",
  628. "bzlink.us",
  629. "bulletupload.com",
  630. "bloggerarticles.com",
  631. "mojedata.sk",
  632. "sharpfile.com",
  633. "upgrand.com",
  634. "nasdilej.cz",
  635. "mediatack.cz",
  636. "share-it.to",
  637. "primeupload.com",
  638. "filebeer.info",
  639. "baberepublic",
  640. "xtu.me",
  641. "sharebase.de",
  642. "luckyshare.net",
  643. "filerobo.com",
  644. "filevelocity.com",
  645. "filezpro.com",
  646. "file4sharing.com",
  647. "cing.be",
  648. "ufile.eu",
  649. "pigsonic.com",
  650. "fileupped.com",
  651. "sharerun.com",
  652. "filesaur.com",
  653. "rapidslnare.com",
  654. "bestsharing.com",
  655. "savefiles.net",
  656. "file2share.biz",
  657. "filecache.de",
  658. "monsteruploads.eu",
  659. "b9bb.com",
  660. "aiotool.net",
  661. "jamber.info",
  662. "megaftp.com",
  663. "desiupload.net",
  664. "file27.com",
  665. "yastorage.com",
  666. "filehost.ws",
  667. "copyload.com",
  668. "venusfile.com",
  669. "aieshare.com",
  670. "terafile.co",
  671. "terafile.com",
  672. "fileza.net",
  673. "filerose.com",
  674. "squillion.com",
  675. "fileprohost.com",
  676. "bitbonus.com",
  677. "warserver.cz",
  678. "uload.to",
  679. "sharedbit.net",
  680. "megaload.it",
  681. "filewinds.com",
  682. "uploadcore.com",
  683. "syfiles.com",
  684. "eyesfile.com",
  685. "hotfile.com",
  686. "superupl.com",
  687. "oteupload.com",
  688. "henchfile.com",
  689. "filegag.com",
  690. "HenchFile.com",
  691. "filedefend.com",
  692. "share-rapid.com|rapids.cz|share-credit.cz|share-central.cz|share-ms.cz|share-net.cz|srapid.cz|share-rapid.cz",
  693. "megabitshare.com",
  694. "cloudzer.com",
  695. "asfile.com",
  696. "cloudzer.net",
  697. "clz.to",
  698. "extabit.com",
  699. "247upload.com",
  700. "2download.de",
  701. "4fastfile.com",
  702. "asixfiles.com",
  703. "berofile.com",
  704. "bigupload.com",
  705. "cepzo.com",
  706. "clouds.to",
  707. "cobrashare.sk",
  708. "coraldrive.net",
  709. "cyberlocker.ch",
  710. "czshare.com",
  711. "darkport.org",
  712. "dark-uploads.com",
  713. "davvas.com",
  714. "enigmashare.com",
  715. "erofly.cz",
  716. "fastsonic.net",
  717. "filebox.com",
  718. "filecity.net",
  719. "filedap.com",
  720. "filedino.com",
  721. "filedownloads.org",
  722. "filefolks.com",
  723. "fileking.co",
  724. "filemates.com",
  725. "files.to",
  726. "files2k.eu",
  727. "filesector.cc",
  728. "bitshare.com",
  729. "filesega.com",
  730. "filesend.net",
  731. "filestay.com",
  732. "filestrum.com",
  733. "fileuplo.de",
  734. "fileupup.com",
  735. "forunesia.com",
  736. "freeuploads.fr",
  737. "uploa.dk",
  738. "getthebit.com",
  739. "getzilla.net",
  740. "goldfile.eu",
  741. "good.com",
  742. "grupload.com",
  743. "hellfile.com",
  744. "hipfile.com",
  745. "hitfile.com",
  746. "hulkfile.eu|duckfile.net",
  747. "i-filez.com",
  748. "ifile.ws",
  749. "kupload.org",
  750. "packupload.com",
  751. "lemuploads.com",
  752. "limelinx.com",
  753. "maxshare.pl",
  754. "megarelease.org",
  755. "megashare.com",
  756. "minus.com",
  757. "mlfat4arab.com",
  758. "multishare.cz",
  759. "nirafile.com",
  760. "ok2upload.com",
  761. "peejeshare.com",
  762. "premiuns.org",
  763. "przeklej.net",
  764. "qkup.net",
  765. "rapidupload.sk",
  766. "rockdizfile.com",
  767. "rocketfile.net",
  768. "share-now.net",
  769. "share76.com",
  770. "sharebees.com",
  771. "sharefiles.co",
  772. "slingfile.com",
  773. "sms4file.com",
  774. "space4file.com",
  775. "tigershare.net",
  776. "toucansharing.com",
  777. "ubuntuone.com",
  778. "unextfiles.com",
  779. "upaj.pl",
  780. "upfile.biz",
  781. "uploadbin.net",
  782. "uploadic.com",
  783. "uploadinc.com",
  784. "uploading4u.eu",
  785. "uploadjet.net",
  786. "uploadorb.com",
  787. "upthe.net",
  788. "uptorch.com",
  789. "vidbox.yt",
  790. "videozer.com",
  791. "vreer.com",
  792. "wallobit.com",
  793. "zooupload.com",
  794. "privatefiles.com",
  795. "xerver.co",
  796. "BillionUploads.com",
  797. "rapidshare.com",
  798. "rapidshare.ru",
  799. "4savefile.com",
  800. "bayfiles.com",
  801. "bayfiles.net",
  802. "dodane.pl",
  803. "dotsemper.com",
  804. "egofiles.com",
  805. "epicshare.net",
  806. "fiberupload.net",
  807. "filemonkey.in",
  808. "filemonster.net",
  809. "filepom.com",
  810. "filesbb.com",
  811. "fileshareup.com",
  812. "filevice.com",
  813. "gigaup.fr",
  814. "isavelink.com",
  815. "loombo.com",
  816. "megafiles.se",
  817. "migupload.com",
  818. "mydisc.net",
  819. "nitrobits.com",
  820. "potload.com",
  821. "redload.net",
  822. "shareprofi.com",
  823. "sharesuper.info",
  824. "sinhro.net",
  825. "speedfile.cz",
  826. "speedshare.org",
  827. "storage.novoro.net",
  828. "swankshare.com",
  829. "swatupload.com",
  830. "upafile.com",
  831. "uploadmachine.com",
  832. "uploadsat.com",
  833. "upshared.com",
  834. "usefile.com",
  835. "yourfiles.to",
  836. "zomgupload.com",
  837. "ultramegabit.com",
  838. "uploadto.us",
  839. "inafile.com",
  840. "megairon.net",
  841.  
  842. ];
  843. ///////////////////////////////////////////////////////////////////////////////////////
  844. var firstRun = GM_getValue("First_run", true);
  845.  
  846. var chromeBrowser = /chrom(e|ium)/.test(navigator.userAgent.toLowerCase());
  847. //////////////////////////////////////////////////////////////////////////////////////
  848. try
  849. {
  850. var thisVersion = GM_info.script.version; //not supported in Scriptish and others
  851. var last_known_version = GM_getValue("last_known_version", "");
  852. if (!last_known_version)
  853. {
  854. last_known_version = thisVersion;
  855. GM_setValue("last_known_version", last_known_version);
  856. }
  857. //var newVersion = !(thisVersion == last_known_version);
  858. var newVersion = !(a.replace(/^(\d+\.\d+\.\d+).*/,'$1') == b.replace(/^(\d+\.\d+\.\d+).*/,'$1')); //true only if one of the first three numbers differs
  859. GM_setValue("last_known_version", thisVersion);
  860. }
  861. catch (err)
  862. {
  863. var newVersion = false;
  864. }
  865.  
  866. var now = (new Date()).getTime();
  867. var last_custom_rules_nag = GM_getValue('last_custom_rules_nag', 0);
  868. if (!last_custom_rules_nag)
  869. {
  870. last_custom_rules_nag = now;
  871. GM_setValue('last_custom_rules_nag', ''+now);
  872. }
  873.  
  874.  
  875. allHostNames.sort();
  876. allContainerNames.sort();
  877. allObsoleteNames.sort();
  878.  
  879. var RAND_STRING = "8QyvpOSsRG3QWq";
  880. var DEBUG_MODE = false;
  881.  
  882. var TOOLTIP_MAXWIDTH = 600; //in pixels
  883. var TOOLTIP_THUMBWIDTH = 200;
  884. var containers_processed = false;
  885.  
  886. //settings for keyboard functions start
  887. var CHECK_ALL_LINKS_KEY = "A";
  888. var CONFIGURATION_KEY = "C";
  889. var copy_to_dead_key = "D";
  890. var toggle_autocheck_key = "W";
  891. var toggle_Enable_Anonymizer_key = "Z";
  892. var first_key_keycode = '17'; // 18=ALT 16=Shift 17=Ctrl 32=SPACE_BAR 9=TAB
  893. var first_key_keycodename = 'CTRL';
  894. var second_key_keycode = '18';
  895. var second_key_keycodename = 'ALT';
  896. var CHECK_ALL_LINKS_KEYCODE = CHECK_ALL_LINKS_KEY.charCodeAt(0);
  897. var CONFIGURATION_KEYCODE = CONFIGURATION_KEY.charCodeAt(0);
  898. var copy_to_dead_keycode = copy_to_dead_key.charCodeAt(0);
  899. var toggle_autocheck_keycode = toggle_autocheck_key.charCodeAt(0);
  900. var toggle_Enable_Anonymizer_keycode = toggle_Enable_Anonymizer_key.charCodeAt(0);
  901. //settings for keyboard functions end
  902.  
  903. //global settings start
  904. var Show_black_background_in_DL_links, Show_line_through_in_dead_links, Color_DL_links;
  905. var Live_links_color, Dead_links_color, Temp_unavailable_links_color, Premium_links_color, Ref_anonymize_service;
  906. var Do_not_linkify_DL_links, Keyboard_functions, Autocheck, Enable_Anonymizer;
  907. var Show_progress_stats, Display_tooltip_info, Icon_set;
  908. var Progress_box_pos_bottom, Progress_box_pos_right, Progress_box_opacity, Progress_box_background_color, Progress_box_item_color;
  909. var Progress_box_refresh_rate;
  910. var Obsolete_file_hosts;
  911. var Custom_rules, Custom_rules_text;
  912.  
  913. var messageBox = document.createElement('b'); // top-left message box
  914.  
  915. var cLinksTotal = 0;
  916. var cLinksDead = 0;
  917. var cLinksAlive = 0;
  918. var cLinksUnava = 0;
  919. var cLinksprem = 0;
  920. var cLinksProcessed = 0;
  921.  
  922. var intervalId; //for updateProgress()
  923.  
  924. //icon resources
  925. 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/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJh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JDzNEtceATGoWWHx3a7wu359EzF+tjHfPjYS6kQed2UD3AESEvwMAaQGsQMrwcN0AAAAASUVORK5CYII=';
  934.  
  935. 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==';
  936. var NEW_ICON_RED = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAA6klEQVQ4jbWTwWrCQBRFz6Rxnay6iuAXlJIg+BHZZR/d6++4t/5MpRQRf8CCrurGrDP6uumESTol04J3dbmPd7hvYBTAG5QBzIFH/P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U4GNDotZW0HAzYDSVcSHmDeAyXbXOtsq3QAIsd2020VlRXBYEYdsThSCsdeZlEkhYoBUqBJOioaV0V8YWLgU+Ew3OUllo4jgd4D+4AtYdsc7/DVQOMxSNW5cNClGD+Fu41dOZlKDMLmELrOUIhjeN48HpngTnMbDeWjIeHnsvbz98YXqxguumuazdDOs0HjAETRKNjuFyzTE9PAOO//Xm27lvN4b1c8htkAXC2jrKHN5gVSRcRW0SCIpIj/f2ZAkhTkykiOYu+SLa8e6qkeRNXALh5nEc/phARnaSJSSUnO5G+B8tnIkr6rjMTSqfMZQXZ9vE1xGKJpPe4DDjXAYkEjAwmzwwDLIv0NZlE1MYAjsQoAOL8C5rY2AxPlIjwP/wcACKn3tWfrwJ4AAAAAElFTkSuQmCC';
  938. var NEW_ICON_PINK = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABUklEQVQ4jY3TsUuWURQG8F8WEvFNDREfIg5RURAOIeL0DhJBS0tDY9BQQ0Oj29kiIvoDhBpFQRTUD1GKi0sRtEs0SEQ0RBQIRcVXw3eF6+vrWwcunPvc53nuPffcS0uEmA0x38Y5cohwGjOYxBBe4VGI3j8NQlzHYhaW0cfNEAslWCfBw4yvYhkv8hjCgxD7yMdquw/jbJ4+xq2cz+AKdrJRv9EAv/EDx3Ft75QhtrHdcFpHy0mS/lSqcVzAFM7he6XaTNLXJoOmS+ziOc4XcB893A3xodUgm5zAHdzHSLH0DhdD/GwsoSjlV5Je5nK+YQUTOInXSXq7x6134RQuo4unGf6Me7iKMxgrNfUuXMJazr8U+DA6Of/UZrCF9xjFM3zELpZwOptulIKmLlQGNXdqS7u4EWK9BA9cYpJ2KtWcwaMazcInuB3iTZ3fGv/znf8CBMxX4hrPUbUAAAAASUVORK5CYII=';
  939.  
  940. //global settings end
  941. if (window.opera && !window.console)
  942. {
  943. window.console = {};
  944.  
  945. function fn()
  946. {
  947. opera.postError(arguments);
  948. };
  949. ['log', 'debug', 'info', 'warn', 'error', 'assert', 'dir', 'dirxml', 'group', 'groupEnd', 'time', 'timeEnd', 'count', 'trace', 'profile', 'profileEnd'].forEach(function (name)
  950. {
  951. window.console[name] = fn;
  952. });
  953. }
  954.  
  955. //displays colored text in message box
  956. function sendMessage(text, color)
  957. {
  958. var msgDiv = document.createElement('div');
  959. msgDiv.style.color = color;
  960. msgDiv.innerHTML = text;
  961. messageBox.appendChild(msgDiv);
  962. setTimeout(function(){messageBox.removeChild(msgDiv)}, 3000);
  963. }
  964.  
  965. function linkify(totalourls)
  966. { // code from http://userscripts.org/scripts/review/2254 Linkify ting
  967. var ikkeTilladteTags;
  968. var allLinksRegex = "(?:http:\/\/.+?\\?)?(?:https?:\/\/)?"
  969. + "[0-9A-Za-z]+(?:[\\.-][0-9A-Za-z]+)*\\.[A-Za-z]+/" //instead of totalourls
  970. + "[\\w\\–\\-\\.+$!*\\/()\\[\\]\',~%?:@#&=\\\\\\—;…×Ã\\_\\u0080-\\u03FF’‘" + (Allow_spaces_in_DL_links ? "\\u0020" : "") + "]*";
  971. allLinksRegex = new RegExp(allLinksRegex, "g");
  972. var regexy = "^(?:http:\/\/.+?\\?)?(?:https?:\/\/)?(?:www\\.)?(?:" + totalourls + ")";
  973.  
  974. if (Do_not_linkify_DL_links)
  975. ikkeTilladteTags = ['a', 'head', 'script', 'style', 'title', 'option', 'iframe', 'textarea', 'span']; //tags, hvor det der stAΞ’Β¥r inden i ikke skal vAΞ’Β¦re links
  976. else
  977. ikkeTilladteTags = ['a', 'head', 'script', 'style', 'title', 'option', 'iframe', 'textarea']; //tags, hvor det der stAΞ’Β¥r inden i ikke skal vAΞ’Β¦re links
  978.  
  979. var regex = new RegExp(regexy);
  980. var textNode, muligtLink;
  981.  
  982. var path = "//text()[not(parent::" + ikkeTilladteTags.join(" or parent::") + ") and contains(.,'/')]";
  983. var textNodes = document.evaluate(path, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  984.  
  985. var i = textNodes.snapshotLength;
  986. while (i--)
  987. {
  988. textNode = textNodes.snapshotItem(i);
  989.  
  990. muligtLink = textNode.nodeValue; //all links on page
  991.  
  992. var myArray = null;
  993. var span = null;
  994. var lastLastIndex = 0;
  995. allLinksRegex.lastIndex = 0;
  996. if (/^https?:\/\/~[\w\s\~]*\//.test(muligtLink))
  997. {
  998. if (textNode.parentNode.className == "adead_link") continue;
  999. var censoredLink = muligtLink;
  1000. var span = document.createElement('span');
  1001. span.className = "adead_link";
  1002. $(span).attr('warlc_error', "Cause of error: <b>Censored link.</b>");
  1003. $(span).html(censoredLink);
  1004. span.addEventListener("mouseover", displayTooltipError, false);
  1005. cLinksTotal++; cLinksProcessed++; cLinksDead++;
  1006. textNode.parentNode.replaceChild(span, textNode);
  1007. continue;
  1008. alert(censoredLink);
  1009. }
  1010. while (myArray = allLinksRegex.exec(muligtLink)) //find all links
  1011. {
  1012. if (!regex.test(myArray[0])) //this link is not recognized
  1013. {
  1014.  
  1015. continue;
  1016. }
  1017. if (!span)
  1018. span = document.createElement('span');
  1019.  
  1020. var link = myArray[0];
  1021. span.appendChild(document.createTextNode(muligtLink.substring(lastLastIndex, myArray.index))); //inds?t det der kommer for dette hit
  1022.  
  1023. var $a = $("<a>" + link + "</a>")
  1024. if (!link.match(/https?:\/\//))
  1025. {
  1026. link = 'http://' + link;
  1027. }
  1028.  
  1029. $a.attr("href", link.replace(/\[\/hide:\w+\]/,""))
  1030. .addClass("processing_link")
  1031. .appendTo(span);
  1032. lastLastIndex = allLinksRegex.lastIndex;
  1033. }
  1034. if (span)
  1035. {
  1036. span.appendChild(document.createTextNode(muligtLink.substring(lastLastIndex))); //ins?t det der kommer efter sidste hit
  1037. textNode.parentNode.replaceChild(span, textNode);
  1038. }
  1039. }
  1040. }
  1041.  
  1042. function add_WARLC_style()
  1043. {
  1044. if (!(document.getElementsByTagName('WARLC')[0]))
  1045. {
  1046. var meta_not_to_add_more_style = document.createElement("WARLC");
  1047. meta_not_to_add_more_style.setAttribute('content', 'war_links_checker');
  1048. meta_not_to_add_more_style.setAttribute('name', 'description');
  1049. document.getElementsByTagName('head')[0].appendChild(meta_not_to_add_more_style);
  1050. alive_link_png = "";
  1051. adead_link_png = "";
  1052. unava_link_png = "";
  1053. prem_link_png = "";
  1054. switch(Icon_set)
  1055. {
  1056. //no icons
  1057. case 0: break;
  1058. // cat paws
  1059. case 1: alive_link_png = PAW_ICON_GREEN;
  1060. adead_link_png = PAW_ICON_RED;
  1061. unava_link_png = PAW_ICON_YELLOW;
  1062. prem_link_png = PAW_ICON_PINK;
  1063. break;
  1064. // classic RSLC look
  1065. case 2: alive_link_png = RSLC_ICON_GREEN;
  1066. adead_link_png = RSLC_ICON_RED;
  1067. unava_link_png = RSLC_ICON_YELLOW;
  1068. prem_link_png = RSLC_ICON_PINK;
  1069. break;
  1070. // New Icons
  1071. case 3: alive_link_png = NEW_ICON_GREEN;
  1072. adead_link_png = NEW_ICON_RED;
  1073. unava_link_png = NEW_ICON_YELLOW;
  1074. prem_link_png = NEW_ICON_PINK;
  1075. break;
  1076. // cat paws
  1077. default:alive_link_png = PAW_ICON_GREEN;
  1078. adead_link_png = PAW_ICON_RED;
  1079. unava_link_png = PAW_ICON_YELLOW;
  1080. prem_link_png = PAW_ICON_PINK;
  1081. break;
  1082. }
  1083. processing_link_gif = 'data:image/gif;base64,' + // or temporary anavailable
  1084. 'R0lGODlhCgAKAJEDAMzMzP9mZv8AAP///yH/C05FVFNDQVBFMi4wAwEAAAAh+QQFAAADACwAAAAACgAKAAACF5wncgaAGgJzJ647cWua4sOBFEd62VEAACH5BAUAAAMALAEAAAAIAAMAAAIKnBM2IoMDAFMQFAAh+QQFAAADACwAAAAABgAGAAACDJwHMBGofKIRItJYAAAh+QQFAAADACwAAAEAAwAIAAACChxgOBPBvpYQYxYAIfkEBQAAAwAsAAAEAAYABgAAAgoEhmPJHOGgEGwWACH5BAUAAAMALAEABwAIAAMAAAIKBIYjYhOhRHqpAAAh+QQFAAADACwEAAQABgAGAAACDJwncqi7EQYAA0p6CgAh+QQJAAADACwHAAEAAwAIAAACCpRmoxoxvQAYchQAOw%3D%3D';
  1085.  
  1086. var dead_color_css, live_color_css, unava_color_css, prem_color_css, black_background_css;
  1087.  
  1088. if (Color_DL_links)
  1089. {
  1090. dead_color_css = 'color:' + Dead_links_color + ' !important;';
  1091. live_color_css = 'color:' + Live_links_color + ' !important;';
  1092. unava_color_css = 'color:' + Temp_unavailable_links_color + ' !important;';
  1093. container_color_css = 'color:' + Container_links_color + ' !important;';
  1094. prem_color_css = 'color:' + Premium_links_color + ' !important;';
  1095. }
  1096. else
  1097. {
  1098. dead_color_css = live_color_css = unava_color_css = container_color_css = prem_color_css = '';
  1099. }
  1100.  
  1101. if (Show_black_background_in_DL_links)
  1102. {
  1103. black_background_css = 'background-color: black !important;';
  1104. }
  1105. else
  1106. {
  1107. black_background_css = '';
  1108. }
  1109.  
  1110. if (Show_line_through_in_dead_links)
  1111. {
  1112. line_through_css = 'text-decoration: line-through !important;';
  1113. }
  1114. else
  1115. {
  1116. line_through_css = '';
  1117. }
  1118.  
  1119. GM_addStyle(".alive_link {background:transparent url(" + alive_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;" + live_color_css + black_background_css + "}");
  1120. 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 + "}");
  1121. GM_addStyle(".unava_link {background:transparent url(" + unava_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;" + unava_color_css + black_background_css + "}");
  1122. GM_addStyle(".processing_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_link {background:transparent url(" + processing_link_gif + ") no-repeat scroll 100% 50%;padding-right:15px;" + container_color_css + black_background_css + "}");
  1124. GM_addStyle(".container_list {font-size:90%; list-style-type:square; padding: 0px 5% 0px; margin: 0px}");
  1125. GM_addStyle(".prem_link {background:transparent url(" + prem_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;" + prem_color_css + black_background_css + "}");
  1126. }
  1127. }
  1128.  
  1129. var warlcTooltip = null;
  1130. var mouseoverLink = null; //link href with mouse cursor over it
  1131.  
  1132. var lastX = 0;
  1133. var lastY = 0;
  1134.  
  1135. $(document).ready(initTooltip);
  1136. //inits tooltip
  1137. function initTooltip()
  1138. { warlcTooltip = document.createElement("div");
  1139. 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;");
  1140. warlcTooltip.style.visibility = "hidden";
  1141. document.body.appendChild(warlcTooltip);
  1142. }
  1143.  
  1144. //"mousemove" event handler for all links
  1145. function moveTooltip(event)
  1146. {
  1147. if ((Math.abs(lastX - event.clientX) + Math.abs(lastY - event.clientY)) < 6)
  1148. { //no need to reflow if the cursor moved just a little
  1149. return;
  1150. }
  1151. else
  1152. {
  1153. lastX = event.clientX;
  1154. lastY = event.clientY;
  1155. }
  1156.  
  1157. posX = event.clientX + window.pageXOffset + 10;
  1158. posY = event.clientY + window.pageYOffset;
  1159. var ttHeight = warlcTooltip.offsetHeight;
  1160. var ttFreeSpace = window.innerHeight - event.clientY;
  1161. if (ttHeight > ttFreeSpace)
  1162. { //prevents tooltip from getting out of the window
  1163. posY -= (ttHeight - (ttFreeSpace)) + 10;
  1164. }
  1165. else
  1166. {
  1167. posY += 7;
  1168. }
  1169. warlcTooltip.style.top = posY + "px";
  1170. warlcTooltip.style.left = posX + "px";
  1171. }
  1172.  
  1173. //"mouseout" event handler for all links
  1174. function hideTooltip(){
  1175. warlcTooltip.style.visibility = "hidden";
  1176. mouseoverLink = null;
  1177. }
  1178.  
  1179.  
  1180. //"mouseover" event handler for dead links
  1181. //displays tooltip error message on dead links
  1182. function displayTooltipError()
  1183. {
  1184. mouseoverLink = this.href;
  1185. this.addEventListener("mouseout", hideTooltip);
  1186. this.addEventListener("mousemove", function(event) { moveTooltip(event); });
  1187. warlcTooltip.innerHTML = '<b>LOADING...</b>';
  1188. warlcTooltip.style.minWidth = 0;
  1189. warlcTooltip.style.visibility = "visible";
  1190. if (this.warlc_error) //an error message is already known and stored in warlc_error attribute
  1191. {
  1192. warlcTooltip.innerHTML = this.warlc_error;
  1193. }
  1194. else
  1195. {
  1196. loadErrorInfo(this);
  1197. }
  1198. function loadErrorInfo(link)
  1199. {
  1200. var href = link.href;
  1201. href = href.replace(/quickshare\.cz\/.+/, "quickshare.cz/chyba");
  1202. GM_xmlhttpRequest({
  1203. method: 'GET',
  1204. url: href.replace(Ref_anonymize_service, ""),
  1205. headers: {
  1206. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1207. 'Accept': 'text/xml',
  1208. 'Referer': ""
  1209. },
  1210. onload: function(result) {
  1211. var res = result.responseText;
  1212. //TODO: errorRegexs -
  1213. var errorRegexs = [ //generic error messages follow
  1214. /(empty directory)/i,
  1215. /(soubor nebyl nalezen)/i,
  1216. /((?:file|page|link|folder)(?:is|not|does|has been|was| ){1,}(?:found|available|blocked|exists?|deleted|removed))/i,
  1217. //server specific error messages follow
  1218. /msg error" style="cursor: default">(.+?)<\/div>/, //sendspace
  1219. /color:red;font\-weight:bold;border\-style:dashed;font-size:12px;border\-width:2px;><tr><td align=center>(.+?)<\/td>/, //fastshare
  1220. /(Takový soubor neexistuje. Je možné, že byl již smazán.)/, //quickshare
  1221. /file_info file_info_deleted">\s*<h1>(.+?)<\/h1>/, //filepost
  1222. /<br \/>\s*<p style="color:#000">(.+?)<\/p>\s*<\/center>/, //letitbit
  1223. /(?:error_div">|<\/h1><p>)<strong>(.+?)<\/strong>/, //share-rapid,quickshare
  1224. /class="red">(.+?)<(?:span|br)>/, //czshare, megashares
  1225. /class="wp640">\s*<h1 class="h1">(.+?)<\/h1>/, //uloz.to
  1226. /not-found">\s*<p>(.+?)<\/p>/, //bayfiles
  1227. /(Your file could not be found. Please check the download link.)/, //stahnu.to
  1228. /error_msg">\s*(<h3>.+?<\/h3><ul>(.+?)<\/ul>)/, //edisk
  1229. /id="obsah">\s*<h2>(.+?)<\/h2>/, //euroshare
  1230. /error">\s*(?:<[bp]>)?\s*(.+?)<\/[bp]>/, //filesmonster, shragle, gigapeta
  1231. ///center aC">\s*<h1>(.+?)<br \/>/, //uploaded.to
  1232. /icon_err">\s*<h1>(.+?)<\/h1>/, //filejungle
  1233. /Code: ER_NFF_\d+<\/h2>\s*(.+?)\s*<\/div>/, //netload
  1234. /(File has been removed due to Copyright Claim)/, //filerio
  1235. ];
  1236. var errorIdx = errorRegexs.length;
  1237. var error = "Cause of error: <b>unknown</b>";
  1238. var errorCandidate = "";
  1239. while(errorIdx--)
  1240. {
  1241. var errorCandidate = res.match(errorRegexs[errorIdx]);
  1242. if (errorCandidate != null)
  1243. {
  1244. error = "Cause of error: <b>" + errorCandidate[1].replace(/&nbsp;/g," ") + "</b>";
  1245. break;
  1246. }
  1247. }
  1248. //link attributes
  1249. link.warlc_error = error;
  1250. if (mouseoverLink == link.href) //mouse cursor is still over the link
  1251. {
  1252. warlcTooltip.innerHTML = error;
  1253. }
  1254. }
  1255. });
  1256. }
  1257. }
  1258.  
  1259. //"mouseover" event handler for alive links
  1260. //displays tooltip info (file size, file name,...) on alive links
  1261. function displayTooltipInfo()
  1262. {
  1263. mouseoverLink = this.href;
  1264. //exclude direct download filehostings
  1265. 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)/))
  1266. {
  1267. return;
  1268. }
  1269. this.addEventListener("mouseout", hideTooltip);
  1270. this.addEventListener("mousemove", function(event) { moveTooltip(event); });
  1271. warlcTooltip.innerHTML = '<b>LOADING...</b>';
  1272. warlcTooltip.style.minWidth = 0;
  1273. warlcTooltip.style.visibility = "visible";
  1274. if (this.warlc_tooltipcache) //file size is already known and stored in warlc_filename and warlc_filesize attributes
  1275. {
  1276. warlcTooltip.innerHTML = this.warlc_tooltipcache;
  1277. }
  1278. else
  1279. {
  1280. loadInfo(this);
  1281. }
  1282. function loadInfo(link)
  1283. {
  1284. var href = link.href;
  1285. GM_xmlhttpRequest({
  1286. method: 'GET',
  1287. url: href.replace(Ref_anonymize_service, ""),
  1288. headers: {
  1289. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1290. 'Accept': 'text/xml',
  1291. 'Referer': ""
  1292. },
  1293. onload: function(result) {
  1294. var res = result.responseText;
  1295. var nameRegexs = [ /Filename: <b class="f_arial f_14px">(.+?)<\/b>/, //oron
  1296. /(?:finfo|file[-_]?name)">\s*(.+?)<\/?(?:h1|a|div|span style|td)/, //hellshare, netload, badongo, 4fastfile
  1297. /fl" title="(.+?)">/, //edisk
  1298. /<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
  1299. /<h3>Stahujete soubor: <\/h3>\s*<div class="textbox">(.+?)<\/div>/, //webshare
  1300. /<h3><b><span style=color:black;>(.+?)<\/b><\/h3><br>/, //fastshare
  1301. /title="download (.+?)">/, //sendspace
  1302. /Stáhnout soubor: (.+?)<\/h1>/, //quickshare
  1303. /fz24">Download:\s*<strong>(.+?)<\/strong>/, //crocko
  1304. // /'file\-icon\d+ \w+'>(?:<\/span><span>)?(.+?)<\/span>/, //hitfile, turbobit
  1305. /d0FileName = "(.+?)";/, //letitbit
  1306. /file(?:_name|-info)" title="">\w+: <span>(.+?)<\/span>/, //vip-file, shareflare
  1307. /recent-comments"><h2>(.+) &nbsp;/, //xdisk
  1308. /fname" value="(.+?)">/, //syfiles, grupload,
  1309. /download\-header">\s*<h2>File:<\/h2>\s*<p title="(.+?)">/, //bayfiles
  1310. /description">\s*<p><b>Soubor: (.+?)<\/b>/, //bezvadata
  1311. /Complete name : (.+?)<br \/>/, //bezvadata
  1312. /itemprop="name">(.+?)<\/span>/, //bezvadata
  1313. ];
  1314. var nameIdx = nameRegexs.length;
  1315. // [sizeRegexs]
  1316. // / \ \?
  1317. // prefix (size) postfix
  1318. // / \
  1319. // val quant
  1320. var quantRegex = '(?:M|G|K)?i?(?:B)(?:[y|i]te?s?)?';
  1321. var valRegex = '\\d+(?:[\\., ]\\d+){0,2}'; // 111([., ]222)?([., ]333)?
  1322. var uniSizeRegex = valRegex + '(?:\\s*|&nbsp;)' + quantRegex;
  1323. var preSizeRegex = '(?::|\\(|>|>, | - )';
  1324. var postSizeRegex = '(?:\\))?';
  1325. var sizeRegexs = [ preSizeRegex + "\\s*(" + uniSizeRegex + ")\\s*" + postSizeRegex,
  1326. 'FileSize_master">(.+?)<\/strong>', //hellshare
  1327. ];
  1328. var sizeIdx = sizeRegexs.length;
  1329. //
  1330. //
  1331. var tooltip = "File Name: <b>";
  1332. var fileName = "unknown";
  1333. var nameCandidate = "";
  1334. while(nameIdx--)
  1335. {
  1336. var nameCandidate = res.match(nameRegexs[nameIdx]);
  1337. if (nameCandidate != null)
  1338. {
  1339. fileName = nameCandidate[1].replace(/&nbsp;/g," ");
  1340. break;
  1341. }
  1342. }
  1343. tooltip += fileName + "</b><br>File Size: <b>";
  1344. var fileSize = "unknown";
  1345. var sizeCandidate = "";
  1346. while(sizeIdx--)
  1347. {
  1348. sizeCandidate = res.match(new RegExp(sizeRegexs[sizeIdx], "i"));
  1349. if (sizeCandidate != null)
  1350. {
  1351. fileSize = sizeCandidate[1].replace(/&nbsp;/g," ");
  1352. if (/^\d+$/.test(fileSize) && fileSize >= 1024) //assume bytes
  1353. {
  1354. if(fileSize > (1<<30)) fileSize = Math.round(10 * fileSize / (1<<30)) / 10 + ' GB';
  1355. else if(fileSize > (1<<20)) fileSize = Math.round(fileSize / (1<<20)) + ' MB';
  1356. else fileSize = Math.round(fileSize / 1024) + ' KB';
  1357. }
  1358. break;
  1359. }
  1360. }
  1361. tooltip += fileSize + "</b>";
  1362. // PROTOTYPE
  1363. // video thumbnails
  1364. if (href.match('hellshare'))
  1365. {
  1366. var thumbs;
  1367. thumbs = res.match(/http:\/\/static\d+\.helldata\.com\/thumbs(?:\/\d+){1,2}\/\d{1,2}"/g);
  1368. if (thumbs)
  1369. {
  1370. tooltip += '<br>';
  1371. var j = Math.min(thumbs.length, 9);
  1372. for (var i = 0; i < j; i++)
  1373. {
  1374. tooltip += '<img src="' + thumbs[i].replace('"',"") + '" width="' + TOOLTIP_THUMBWIDTH + 'px">';
  1375. }
  1376. warlcTooltip.style.minWidth = TOOLTIP_MAXWIDTH;
  1377. }
  1378. }
  1379. if (href.match('czshare'))
  1380. {
  1381. var thumbs;
  1382. thumbs = res.match(/src="http:\/\/www(\d+)\.czshare\.com\/images_velke\/\d+\.(\d+)\.jpeg/);
  1383. if (thumbs)
  1384. {
  1385. var thumbsServer = thumbs[1];
  1386. var thumbsId = thumbs[2];
  1387. tooltip += '<br>';
  1388. for (var i = 1; i < 9; i++)
  1389. {
  1390. tooltip += '<img src="http://www' + thumbsServer + '.czshare.com/images_velke/' + i + '.' + thumbsId + '.jpeg" width="' + TOOLTIP_THUMBWIDTH + 'px">';
  1391. }
  1392. warlcTooltip.style.minWidth = TOOLTIP_MAXWIDTH;
  1393. }
  1394. }
  1395. if (href.match('bezvadata'))
  1396. {
  1397. var thumbs;
  1398. thumbs = res.match(/http:\/\/nahledy\.bezvadata\.cz\/nahledy\/\d+\/\d+\/\d+_\d+_\d+x\d+_\w.jpg/g);
  1399. if (thumbs)
  1400. {
  1401. tooltip += '<br>';
  1402. var j = Math.min(thumbs.length, 9);
  1403. for (var i = 0; i < j; i++)
  1404. {
  1405. tooltip += '<img src="' + thumbs[i] + '" width="' + TOOLTIP_THUMBWIDTH + 'px">';
  1406. }
  1407. warlcTooltip.style.minWidth = TOOLTIP_MAXWIDTH;
  1408. }
  1409. }
  1410. link.warlc_tooltipcache = tooltip;
  1411. if (mouseoverLink == link.href) //mouse cursor is still over the link
  1412. {
  1413. warlcTooltip.innerHTML = tooltip;
  1414. }
  1415. }
  1416. });
  1417. }
  1418. }
  1419.  
  1420. function setVariables()
  1421. {
  1422. if (firstRun)
  1423. {
  1424. GM_log('First run, applying default settings...');
  1425. GM_setValue("Icon_set",1);
  1426. GM_setValue("Display_tooltip_info",true);
  1427. GM_setValue("Show_black_background_in_DL_links",false);
  1428. GM_setValue("Show_line_through_in_dead_links",false);
  1429. GM_setValue("Display_full_links_in_link_containers",false);
  1430. GM_setValue("Allow_spaces_in_DL_links",false);
  1431. GM_setValue("Autocheck",true);
  1432. GM_setValue("Enable_Anonymizer",false);
  1433. GM_setValue("Do_not_linkify_DL_links",false);
  1434. GM_setValue("Show_progress_stats",true);
  1435. GM_setValue("Keyboard_functions",true);
  1436. GM_setValue("Obsolete_file_hosts",false);
  1437. GM_setValue("Color_DL_links",true);
  1438. GM_setValue("Live_links_color","Green");
  1439. GM_setValue("Dead_links_color","#FF3300");
  1440. GM_setValue("Temp_unavailable_links_color","#F7EF09");
  1441. GM_setValue("Container_links_color","DarkKhaki");
  1442. GM_setValue("Premium_links_color","DeepPink");
  1443. GM_setValue("Ref_anonymize_service","http://hiderefer.com/?");
  1444. GM_setValue("Custom_rules",false);
  1445. GM_setValue("Custom_rules_text","");
  1446. GM_setValue("First_run", false);
  1447. }
  1448. //hidden settings
  1449. GM_setValue("Progress_box_pos_bottom", Progress_box_pos_bottom = GM_getValue("Progress_box_pos_bottom", 20));
  1450. GM_setValue("Progress_box_pos_right", Progress_box_pos_right = GM_getValue("Progress_box_pos_right", 10));
  1451. GM_setValue("Progress_box_opacity", Progress_box_opacity = GM_getValue("Progress_box_opacity", 85));
  1452. GM_setValue("Progress_box_background_color", Progress_box_background_color = GM_getValue("Progress_box_background_color", 'DimGray'));
  1453. GM_setValue("Progress_box_item_color", Progress_box_item_color = GM_getValue("Progress_box_item_color", 'DimGray'));
  1454. GM_setValue("Progress_box_refresh_rate", Progress_box_refresh_rate = GM_getValue("Progress_box_refresh_rate", 2000));
  1455. GM_setValue("Debug_mode", DEBUG_MODE = GM_getValue("Debug_mode", false));
  1456. //hidden settings end
  1457.  
  1458. Icon_set = GM_getValue("Icon_set", 1); //0 - no icons, 1 - cat paws, 2 - old RSLC style, 3 - New Icons,
  1459. Display_tooltip_info = GM_getValue("Display_tooltip_info", true);
  1460. Show_black_background_in_DL_links = GM_getValue("Show_black_background_in_DL_links", false);
  1461. Show_line_through_in_dead_links = GM_getValue("Show_line_through_in_dead_links", false);
  1462. Display_full_links_in_link_containers = GM_getValue("Display_full_links_in_link_containers", false);
  1463. Allow_spaces_in_DL_links = GM_getValue("Allow_spaces_in_DL_links", false);
  1464. Autocheck = GM_getValue("Autocheck", true);
  1465. Enable_Anonymizer = GM_getValue("Enable_Anonymizer", false);
  1466. Do_not_linkify_DL_links = GM_getValue("Do_not_linkify_DL_links", false);
  1467. Show_progress_stats = GM_getValue("Show_progress_stats", true);
  1468. Keyboard_functions = GM_getValue("Keyboard_functions", true);
  1469. Obsolete_file_hosts = GM_getValue("Obsolete_file_hosts", false);
  1470. Color_DL_links = GM_getValue("Color_DL_links", true);
  1471. Live_links_color = GM_getValue("Live_links_color", "Green");
  1472. Dead_links_color = GM_getValue("Dead_links_color", "#FF3300");
  1473. Temp_unavailable_links_color = GM_getValue("Temp_unavailable_links_color", "#F7EF09");
  1474. Container_links_color = GM_getValue("Container_links_color", "DarkKhaki");
  1475. Premium_links_color = GM_getValue("Premium_links_color", "DeepPink");
  1476. Ref_anonymize_service = GM_getValue("Ref_anonymize_service", "http://hiderefer.com/?");
  1477. Custom_rules = GM_getValue("Custom_rules", false);
  1478. Custom_rules_text = GM_getValue("Custom_rules_text", false);
  1479. }
  1480.  
  1481.  
  1482. // Delinkifies the links
  1483. // params:
  1484. // links -> list of links or link components (note they should be sufficiently unique to identify the link on page,
  1485. // e.g. 'uloz.to/xs68skxl8')
  1486. function delinkifySnapshot(snapshot)
  1487. {
  1488. var n = snapshot.snapshotLength;
  1489.  
  1490. while (n--)
  1491. {
  1492. thisLink = snapshot.snapshotItem(n);
  1493.  
  1494. var spanElm = document.createElement("span");
  1495. spanElm.className = thisLink.className;
  1496. spanElm.innerHTML = thisLink.innerHTML;
  1497.  
  1498. if (Display_tooltip_info)
  1499. {
  1500. spanElm.href = thisLink.href;
  1501. switch (thisLink.className){
  1502. case "alive_link": spanElm.addEventListener("mouseover", displayTooltipInfo, false); break
  1503. case "adead_link": spanElm.addEventListener("mouseover", displayTooltipError, false); break;
  1504. case "unava_link": //reserved
  1505. default:
  1506. }
  1507. }
  1508. thisLink.parentNode.replaceChild(spanElm, thisLink);
  1509. }
  1510. }
  1511.  
  1512. function processContainers()
  1513. {
  1514. var redirectorTypes = { "HTTP_302": 0,
  1515. "INNER_LINK": 1,
  1516. "THELOO_KATT_IT": 2,
  1517. "CING_BE": 3,
  1518. "ADF_LY": 4};
  1519. var cMultiloadTotal = 0;
  1520. var cMultiloadProcessed = 0;
  1521.  
  1522. var cMirrorcreatorComTotal = 0;
  1523. var cMirrorcreatorComProcessed = 0;
  1524.  
  1525. var hostRestrictionRegex = "";
  1526. var multiloadComRestriction = "";
  1527. var multiloadComRestrictionRegex;
  1528.  
  1529. //
  1530. //HANDLING REDIRECTORS START
  1531. //
  1532.  
  1533. var redirectors = new Array();
  1534. initRedirectors();
  1535.  
  1536. var redirectorsCount = redirectors.length;
  1537.  
  1538. if (redirectorsCount > 0)
  1539. {
  1540. var allRedirectorsRegex = "";
  1541.  
  1542. //linkify redirector links
  1543. for(var redirIdx = 0; redirIdx < redirectorsCount; redirIdx++)
  1544. {
  1545. allRedirectorsRegex += redirectors[redirIdx].linkRegex + "|";
  1546. }
  1547. allRedirectorsRegex = allRedirectorsRegex.replace(/\|$/, "");
  1548. linkify(allRedirectorsRegex);
  1549. //
  1550. //process redirector links
  1551. for(var redirIdx = 0; redirIdx < redirectorsCount; redirIdx++)
  1552. {
  1553. var redirectorsSnapshot = document.evaluate(redirectors[redirIdx].xpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  1554. redirectors[redirIdx].cTotal = redirectorsSnapshot.snapshotLength;
  1555.  
  1556. cLinksTotal += redirectors[redirIdx].cTotal;
  1557. var linkIdx = redirectors[redirIdx].cTotal;
  1558.  
  1559. while(linkIdx--)
  1560. {
  1561. switch(redirectors[redirIdx].type)
  1562. {
  1563. case redirectorTypes.HTTP_302: processRedirectorLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1564. case redirectorTypes.INNER_LINK: processRedirectorLinkEx(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1565. case redirectorTypes.THELOO_KATT_IT: processThelooKattItLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1566. case redirectorTypes.CING_BE: processCingBeLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1567. case redirectorTypes.ADF_LY: processAdfLyLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1568. default:
  1569. }
  1570. }
  1571. }
  1572. //
  1573. }
  1574.  
  1575. //HTTP_302
  1576. function processRedirectorLink(link, redirectorId)
  1577. {
  1578. link.className = 'container_link';
  1579.  
  1580. GM_xmlhttpRequest({
  1581. method: 'HEAD',
  1582. url: link.href,
  1583. headers: {
  1584. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1585. 'Accept': 'text/xml',
  1586. 'Referer': ""
  1587. },
  1588. onload: function(result) {
  1589. if (result.finalUrl.replace("https", "http") == link.href) // service hasn't redirected anywhere
  1590. {
  1591. processRedirectorLink(link, redirectorId);
  1592. }
  1593. else
  1594. {
  1595. redirectors[redirectorId].cProcessed++;
  1596. link.href = result.finalUrl;
  1597. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  1598. checkLinks('container_link');
  1599. }
  1600. },
  1601. onerror: function(result) { //probably caused by unresponsive filehosting
  1602. redirectors[redirectorId].cProcessed++;
  1603. link.className = 'unava_link';
  1604. cLinksProcessed++;
  1605. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  1606. checkLinks('container_link');
  1607. }
  1608. });
  1609. }
  1610. //INNER_LINK
  1611. function processRedirectorLinkEx(link, redirectorId)
  1612. {
  1613. link.className = 'container_link';
  1614. GM_xmlhttpRequest({
  1615. method: 'GET',
  1616. url: link.href,
  1617. headers: {
  1618. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1619. 'Accept': 'text/xml',
  1620. 'Referer': ""
  1621. },
  1622. onload: function(result) {
  1623. link.href = result.responseText.match(redirectors[redirectorId].innerLinkRegex)[1];
  1624. redirectors[redirectorId].cProcessed++;
  1625. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  1626. checkLinks('container_link');
  1627. }
  1628. });
  1629. }
  1630. //theloo.katt.it (wrapped safelinking.net)
  1631. function processThelooKattItLink(link, redirectorId)
  1632. {
  1633. link.className = 'container_link';
  1634. GM_xmlhttpRequest({
  1635. method: 'GET',
  1636. url: link.href,
  1637. headers: {
  1638. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1639. 'Accept': 'text/xml',
  1640. 'Referer': ""
  1641. },
  1642. onload: function(result) {
  1643. link.href = result.responseText.match(redirectors[redirectorId].innerLinkRegex)[1];
  1644. redirectors[redirectorId].cProcessed++;
  1645. //the inner links are safelinking.net links, so lets proceed with it
  1646. if (GM_getValue("Check_safelinking_dot_net_links", false))
  1647. {
  1648. processRedirectorLink(link, 0);
  1649. }
  1650. }
  1651. });
  1652. }
  1653. //adf.ly (adf.ly/go innerLink, locking mechanism)
  1654. function processAdfLyLink(link, redirectorId)
  1655. {
  1656. link.className = 'container_link';
  1657. GM_xmlhttpRequest({
  1658. method: 'GET',
  1659. url: link.href,
  1660. headers: {
  1661. 'User-agent': 'Mozilla/4.0',
  1662. 'Accept': 'text/xml',
  1663. 'Referer': ""
  1664. },
  1665. onload: function(result) {
  1666. if (result.finalUrl.match('/locked/'))
  1667. {
  1668. var delay = result.responseText.match(/countdown">(\d+)</)[1];
  1669. // GM_log(result.finalUrl + 'is locked. Repeating the request in ' + delay + 's.');
  1670. // setTimeout(function(){processAdfLyLink(link, redirectorId);}, delay * 1000);
  1671. }
  1672. else
  1673. {
  1674. // GM_log('Processing... ' + link.href);
  1675. // GM_log('Found...' + result.responseText.match(/\/go\/(\w+\/\w+)/)[1]);
  1676. var directLink = 'http://adf.ly' + result.responseText.match(/(\/go\/\w+\/\w+)/)[1];
  1677. var logToken = result.responseText.match(/flashy_(\w+)/)[1];
  1678. var users = result.responseText.match(/user=\d+&user2=\d+/);
  1679. //confirm advert
  1680. GM_xmlhttpRequest(
  1681. {
  1682. method: 'POST',
  1683. url: 'http://adf.ly/l.php',
  1684. headers: {
  1685. 'User-agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20100101 Firefox/13.0',
  1686. 'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
  1687. 'Referer': link.href
  1688. },
  1689. data: users + '&lt=' + logToken,
  1690. onload: function(result) {
  1691. //retrieve final url from .../go/... link
  1692. GM_xmlhttpRequest({
  1693. method: 'GET',
  1694. url: directLink,
  1695. headers: {
  1696. 'User-agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20100101 Firefox/13.0',
  1697. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  1698. 'Referer': link.href
  1699. },
  1700. onload: function(result) {
  1701. link.href = result.finalUrl;
  1702. redirectors[redirectorId].cProcessed++;
  1703. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  1704. checkLinks('container_link');
  1705. }
  1706. });
  1707. }
  1708. });
  1709. }
  1710. }
  1711. });
  1712. function proceedOK()
  1713. {
  1714. }
  1715. }
  1716. //MULTILOAD.CZ START
  1717. if (GM_getValue("Check_multiload_dot_cz_links", false))
  1718. {
  1719. var mlRegex = 'multiload\\.cz\/stahnout\/\\d+\/';
  1720. var mlXpath = "//a[contains(@href,'http://www.multiload.cz/stahnout')]";
  1721.  
  1722. hostRestrictionRegex = 'Upload se nezdařil|limit exceeded|probíhá reupload|';
  1723.  
  1724. if (GM_getValue("Check_hellshare_dot_com_links", false))
  1725. hostRestrictionRegex += 'hellshare|';
  1726. if (GM_getValue("Check_share_dash_rapid_dot_com_links", false))
  1727. hostRestrictionRegex += 'share-rapid\\.com|';
  1728. if (GM_getValue("Check_quickshare_dot_cz_links", false))
  1729. hostRestrictionRegex += 'quickshare\\.cz|';
  1730. if (GM_getValue("Check_czshare_dot_com_links", false))
  1731. hostRestrictionRegex += 'czshare\\.com|';
  1732. if (GM_getValue("Check_uloz_dot_to_links", false))
  1733. hostRestrictionRegex += 'uloz\\.to|';
  1734. if (GM_getValue("Check_hellspy_dot_com_links", false))
  1735. hostRestrictionRegex += 'hellspy|';
  1736. if (GM_getValue("Check_multishare_dot_cz_links", false))
  1737. hostRestrictionRegex += 'multishare\\.cz|';
  1738.  
  1739. hostRestrictionRegex = hostRestrictionRegex.replace(/\|$/, "");
  1740.  
  1741. linkify(mlRegex);
  1742.  
  1743. var mlSnapshot = document.evaluate(mlXpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  1744. var mlCount = mlSnapshot.snapshotLength;
  1745.  
  1746. if (mlCount > 0)
  1747. {
  1748. cMultiloadTotal += mlCount;
  1749.  
  1750. mlIdx = mlCount - 1;
  1751. do
  1752. {
  1753. processMultiloadLink(mlSnapshot.snapshotItem(mlIdx));
  1754. }
  1755. while(mlIdx--)
  1756. }
  1757. }
  1758. //MULTILOAD.CZ END
  1759.  
  1760.  
  1761.  
  1762. function processMultiloadLink(mlLink)
  1763. {
  1764. GM_xmlhttpRequest({
  1765. method: 'GET',
  1766. url: mlLink.href,
  1767. headers: {
  1768. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1769. 'Accept': 'text/xml',
  1770. 'Referer': ""
  1771. },
  1772. onload: function(result) {
  1773. var res = result.responseText;
  1774.  
  1775. var innerBlockRegex = /<p class="manager-linky">(?:.|\s)+?<\/p>/g;
  1776. 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;
  1777. var innerLinkRegex = /((?:Upload se nezdařil.+|https?:\/\/(?:.|\s)+|Právě probíhá reupload, buďte trpěliví\.\.\.))</;
  1778. var mlRestrictionRegex = new RegExp(hostRestrictionRegex,"g"); //what links should be displayed
  1779.  
  1780. var blocks; // blocks of links
  1781. var blockIdx;
  1782.  
  1783. mlLink.className = '';
  1784.  
  1785. if (result.status == 503) //service temporarily unavailable, repeat request in one second
  1786. {
  1787. setTimeout(function(){ processMultiloadLink(mlLink); }, 1000);
  1788. return;
  1789. }
  1790.  
  1791. blocks = res.match(innerBlockRegex);
  1792.  
  1793. if (blocks == null) //no links found, cancel further processing
  1794. {
  1795. mlLink.parentNode.appendChild(document.createTextNode(' | Požadovaný soubor neexistuje.'));
  1796. cMultiloadProcessed++;
  1797. if (cMultiloadTotal <= cMultiloadProcessed)
  1798. {
  1799. startBulkCheck('container_link');
  1800. start('container_link');
  1801. }
  1802. return;
  1803. }
  1804.  
  1805. blockIdx = blocks.length;
  1806.  
  1807. if (Display_full_links_in_link_containers)
  1808. {
  1809. var ulElm = document.createElement('ul');
  1810. ulElm.className = 'container_list'; //CSS smaller font, padding, margin, square style
  1811.  
  1812. while(blockIdx--)
  1813. {
  1814. if (blocks[blockIdx].match(mlRestrictionRegex) == null)
  1815. {
  1816. continue;
  1817. }
  1818.  
  1819. var innerLinks = blocks[blockIdx].match(innerLinksRegex);
  1820.  
  1821. var linkIdx = innerLinks.length;
  1822. while (linkIdx--)
  1823. {
  1824. var innerLink = innerLinks[linkIdx].match(innerLinkRegex)[1];
  1825.  
  1826. var liElm = document.createElement('li');
  1827.  
  1828. if (innerLink.match(/Upload se nezdařil|limit exceeded|probíhá reupload/))
  1829. {
  1830. liElm.appendChild(document.createTextNode(innerLink));
  1831. }
  1832. else
  1833. {
  1834. var aElm = document.createElement('a');
  1835. aElm.innerHTML = innerLink;
  1836. aElm.href = innerLink;
  1837. aElm.className = 'container_link';
  1838.  
  1839. liElm.appendChild(aElm);
  1840. }
  1841.  
  1842. ulElm.appendChild(liElm);
  1843. cLinksTotal++;
  1844. }
  1845. }
  1846.  
  1847. mlLink.parentNode.appendChild(ulElm);
  1848. }
  1849. else //compact view
  1850. {
  1851. mlLink.parentNode.appendChild(document.createTextNode("|"));
  1852.  
  1853. while(blockIdx--)
  1854. {
  1855. if (blocks[blockIdx].match(mlRestrictionRegex) == null)
  1856. {
  1857. continue;
  1858. }
  1859.  
  1860. var innerLinks = blocks[blockIdx].match(innerLinksRegex);
  1861.  
  1862. var linkIdx = innerLinks.length;
  1863. while (linkIdx--)
  1864. {
  1865. var innerLink = innerLinks[linkIdx].match(innerLinkRegex)[1];
  1866.  
  1867. if (innerLink.match(/Upload se nezdařil|limit exceeded|probíhá reupload/))
  1868. {
  1869. mlLink.parentNode.appendChild(document.createTextNode("----"));
  1870. }
  1871. else
  1872. {
  1873. var aElm = document.createElement('a');
  1874.  
  1875. var hostName = innerLink.match(/quickshare|hellshare|uloz\.to|multishare|hellspy|share\-rapid|czshare/);
  1876.  
  1877. //abbreviate host name
  1878. switch(hostName + ""){
  1879.  
  1880. case 'quickshare': aElm.innerHTML = 'QS'; break;
  1881. case 'hellshare': aElm.innerHTML = 'HS'; break;
  1882. case 'uloz.to': aElm.innerHTML = 'UT'; break;
  1883. case 'multishare': aElm.innerHTML = 'MS'; break;
  1884. case 'hellspy': aElm.innerHTML = 'hs'; break;
  1885. case 'share-rapid': aElm.innerHTML = 'SR'; break;
  1886. case 'czshare': aElm.innerHTML = 'CS'; break;
  1887. default: aElm.innerHTML = 'xx';
  1888.  
  1889. }
  1890.  
  1891. aElm.href = innerLink;
  1892. aElm.className = 'container_link';
  1893.  
  1894. mlLink.parentNode.appendChild(aElm);
  1895. cLinksTotal++;
  1896. }
  1897. }
  1898.  
  1899. mlLink.parentNode.appendChild(document.createTextNode("|")); //blocks delimiter
  1900.  
  1901. }
  1902. }
  1903.  
  1904. cMultiloadProcessed++;
  1905. if (cMultiloadTotal == cMultiloadProcessed) //start check when all ml links have been processed
  1906. {
  1907. if (Do_not_linkify_DL_links)
  1908. {
  1909. delinkifySnapshot(mlSnapshot);
  1910. }
  1911. startBulkCheck('container_link');
  1912. start('container_link');
  1913. }
  1914. }
  1915. });
  1916. }
  1917.  
  1918.  
  1919. if (GM_getValue("Check_mirrorcreator_dot_com_links", false))
  1920. {
  1921. var mcRegex = 'mirrorcreator\\.com/files/(\\w+)';
  1922. var mcXpath = "//a[contains(@href,'mirrorcreator.com/files')]";
  1923. var mcShortHostNames =
  1924. '?? 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';
  1925. // 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
  1926. //?????? depositfiles sendspace load.to ul.to storage.to uploadbox x7.to fileserve ?????? duckload filehook filepost jumbofiles glumbouploads
  1927. // zshare ?????? 2shared uploading ugotfile extabit oron eyvx uploadstation putlocker
  1928. // megaupload badongo megashare gamefront ifile ?????? letitbit ?????? ?????? filejungle megashares
  1929. // easy-share ?????? netload zippyshare ?????? filesonic turbobit enterupload ?????? filekeen wupload crocko fileflyer
  1930.  
  1931. linkify(mcRegex);
  1932.  
  1933. var mcSnapshot = document.evaluate(mcXpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  1934. var mcCount = mcSnapshot.snapshotLength;
  1935.  
  1936. cMirrorcreatorComTotal = mcCount;
  1937.  
  1938. if (mcCount > 0)
  1939. {
  1940. mcShortHostNames = mcShortHostNames.split(' ');
  1941. mcIdx = mcCount;
  1942. while(mcIdx--)
  1943. processMirrorcreatorLink(mcSnapshot.snapshotItem(mcIdx));
  1944. }
  1945.  
  1946. }
  1947. //MIRRORCREATOR.CZ END
  1948.  
  1949.  
  1950. //mirrorcreator.com checking works like this:
  1951. //The base URL is http://www.mirrorcreator.com/files/XXXXXXXX/filename_links
  1952. //the actual list of mirrors is at http://www.mirrorcreator.com/status.php?uid=XXXXXXXX
  1953. //the list contains links in the form of (http://www.mirrorcreator.com)/redirect/XXXXXXXX/1
  1954. //these redirector links are extracted with mcLinkBlockRegex and the pages loaded
  1955. //they contain the actual filehost links, which are extracted with mcHostRegex and displayed in a container list
  1956. function processMirrorcreatorLink(mcLink)
  1957. {
  1958. var mcURL = mcLink.href.match(mcRegex);
  1959. if(!mcURL || !mcURL[1]) return;
  1960. mcURL = 'http://www.mirrorcreator.com/status.php?uid=' + mcURL[1]; //link correction
  1961. GM_xmlhttpRequest({
  1962. method: 'GET',
  1963. url: mcURL,
  1964. headers: {
  1965. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1966. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*'+'/*;q=0.8',
  1967. 'Referer': ""
  1968. },
  1969. onload: function(mcLinkResult) {
  1970. var mcLinkRes = mcLinkResult.responseText;
  1971.  
  1972. var mcLinkBlockRegex = /(\/redirect\/\w+\/(\d+))/gi;
  1973. var mcHostRegex = /<div id="redirectlink">.*?<a href="([^"]+)"/;
  1974.  
  1975. var mcRedirectors;
  1976. var mcHostURLs = [], mcRedirectorIDs = [], mcHostsFound = 0, mcHostsRetrieved = 0, mcHostsToProcess = 0;
  1977. var m = mcLinkRes.match(mcLinkBlockRegex);
  1978. if (m)
  1979. mcHostsFound = m.length;
  1980. else
  1981. { //no files inside container
  1982. processMirrorcreatorFoundHosts(mcLink, []);
  1983. return;
  1984. }
  1985.  
  1986. var mcRedirectorURL, idx, timedOut = false;
  1987.  
  1988. var gmxhrFunc = function(mcRedirectorURL){ //Tampermonkey doesn't know neither this.url or result.finalUrl
  1989. GM_xmlhttpRequest({
  1990. method: 'GET',
  1991. url: mcRedirectorURL,
  1992. headers: {
  1993. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1994. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*'+'/*;q=0.8',
  1995. 'Referer': ""
  1996. },
  1997. onload: function(mcHostResult) {
  1998. if (timedOut) return; //too late, the list is already displayed
  1999. var mcHostRes = mcHostResult.responseText;
  2000. var mcHost = mcHostRes.match(mcHostRegex);
  2001. idx = mcHostURLs.indexOf(mcRedirectorURL);
  2002. if (mcHost && idx!=-1)
  2003. {
  2004. mcHostURLs[idx] = mcHost[1].replace(/^\s+|\s+$/g, '');
  2005. mcHostsRetrieved++;
  2006. mcHostsToProcess++;
  2007. if (mcHostsFound == mcHostsRetrieved) //this is the last one!
  2008. {
  2009. processMirrorcreatorFoundHosts(mcLink, mcHostURLs, mcRedirectorIDs);
  2010. mcHostsToProcess = 0;
  2011. }
  2012. }
  2013. } //end of onload: function
  2014. }); //end of GM_xmlhttpRequest call
  2015. };//end of var gmxhrFunc
  2016.  
  2017. while (mcRedirectors = mcLinkBlockRegex.exec(mcLinkRes))
  2018. { //load individual redirector pages
  2019. mcRedirectorURL = 'http://www.mirrorcreator.com' + mcRedirectors[1];
  2020. mcHostURLs.push(mcRedirectorURL);
  2021. mcRedirectorIDs.push(mcRedirectors[2]);
  2022. gmxhrFunc(mcRedirectorURL);
  2023. } //end of while block
  2024.  
  2025. setTimeout(function(){ //in case the last page fails to load and call the function
  2026. timedOut = true;
  2027. if (mcHostsToProcess)
  2028. processMirrorcreatorFoundHosts(mcLink, mcHostURLs);
  2029. }, 60000);
  2030.  
  2031. } //end of onload function
  2032. }); //end of GM_xmlhttpRequest call
  2033. } //end of function processMirrorcreatorLink
  2034.  
  2035.  
  2036. function processMirrorcreatorFoundHosts(mcLink, mcHostURLs, mcRedirectorIDs)
  2037. {
  2038. var aEl, liEl, docFrag;
  2039. var hostName, mcRedirectorID, trimFilename = false;
  2040. var i = mcHostURLs.length;
  2041. if (i == 0)
  2042. {
  2043. trimFilename = true;
  2044. mcLink.parentNode.insertBefore(document.createTextNode(' | No files inside container'), mcLink.nextSibling);
  2045. }
  2046. else
  2047. {
  2048. if (Display_full_links_in_link_containers)
  2049. { //full view
  2050. var wrapperEl = document.createElement('span');
  2051. wrapperEl.style.display = 'block';
  2052. var ulistEl = document.createElement('ul');
  2053. ulistEl.className = 'container_list';
  2054. while (i--)
  2055. {
  2056. liEl = document.createElement('li');
  2057. aEl = document.createElement('a');
  2058. aEl.appendChild(document.createTextNode(mcHostURLs[i]));
  2059. aEl.href = mcHostURLs[i];
  2060. aEl.className = 'container_link';
  2061. liEl.appendChild(aEl);
  2062. ulistEl.appendChild(liEl);
  2063. }
  2064. wrapperEl.appendChild(ulistEl);
  2065. mcLink.parentNode.replaceChild(wrapperEl, mcLink);
  2066. wrapperEl.insertBefore(mcLink, wrapperEl.firstChild);
  2067. }
  2068. else
  2069. { //compact view
  2070. trimFilename = true;
  2071. docFrag = document.createDocumentFragment();
  2072. docFrag.appendChild(document.createTextNode(' |'));
  2073. while (i--)
  2074. {
  2075. mcRedirectorID = mcRedirectorIDs[i];
  2076. hostName = mcHostURLs[i];
  2077. if (mcRedirectorID > mcShortHostNames.length-1 || mcShortHostNames[mcRedirectorID] == '??')
  2078. hostName = hostName.replace(/https?:\/\/(?:www\.)?([-0-9a-z]+(?:\.[-0-9a-z]+)?)\.[a-z]+\/.*/i, '$1').toUpperCase();
  2079. else
  2080. hostName = mcShortHostNames[mcRedirectorID];
  2081. aEl = document.createElement('a');
  2082. aEl.href = mcHostURLs[i];
  2083. aEl.className = 'container_link';
  2084. aEl.appendChild(document.createTextNode(hostName));
  2085. docFrag.appendChild(aEl);
  2086. docFrag.appendChild(document.createTextNode('|'));
  2087. }
  2088. mcLink.parentNode.insertBefore(docFrag, mcLink.nextSibling);
  2089. } //end of else block
  2090. } //end of else block
  2091. mcLink.className = '';
  2092. if (trimFilename)
  2093. mcLink.firstChild.nodeValue = mcLink.firstChild.nodeValue.replace(/(https?:\/\/[^\/]+\/files\/\w+\/).+/, '$1...');
  2094. cMirrorcreatorComProcessed++;
  2095. if (cMirrorcreatorComProcessed == cMirrorcreatorComTotal) //start check when all mc links have been processed
  2096. {
  2097. if (Do_not_linkify_DL_links)
  2098. delinkifySnapshot(mcSnapshot);
  2099. startBulkCheck('container_link');
  2100. start('container_link');
  2101. }
  2102. } //end of function processMirrorcreatorFoundHosts
  2103.  
  2104. containers_processed = true;
  2105.  
  2106.  
  2107. function initRedirectors()
  2108. {
  2109. function addRedirector(linkRegex, xpathEx, redirType, innerLinkRegex)
  2110. {
  2111. var redirector = new Object();
  2112. redirector.linkRegex = linkRegex;
  2113. redirector.xpath = xpathEx; //xpath expression
  2114. redirector.cProcessed = 0; //processed links count
  2115. redirector.cTotal = 0; //total links count
  2116. redirector.type = redirType; //redirectorTypes enum
  2117. redirector.innerLinkRegex = innerLinkRegex; //innerLink, null if unused
  2118. redirectors.push(redirector);
  2119. }
  2120. if (GM_getValue("Check_safelinking_dot_net_links", false))
  2121. {
  2122. addRedirector(
  2123. 'safelinking\\.net\/d\/\\w+',
  2124. "//a[contains(@href,'safelinking.net/d/')]",
  2125. redirectorTypes.HTTP_302,
  2126. null);
  2127. }
  2128. if (GM_getValue("Check_linksafe_dot_me_links", false))
  2129. {
  2130. addRedirector(
  2131. 'linksafe\\.me\/d\/\\w+',
  2132. "//a[contains(@href,'linksafe.me/d/')]",
  2133. redirectorTypes.HTTP_302,
  2134. null);
  2135. }
  2136. if (GM_getValue("Check_linkto_dot_net_links", false))
  2137. {
  2138. addRedirector(
  2139. 'linkto\\.net\/\\?\\w+\\.\\d+',
  2140. "//a[contains(@href,'linkto.net/?')]",
  2141. redirectorTypes.INNER_LINK,
  2142. /<iframe id="iframe" name="iframe" src="(.+?)\s*" frameborder="0"/);
  2143. }
  2144. if (GM_getValue("Check_theloo_dot_katt_dot_it_links", false))
  2145. {
  2146. addRedirector(
  2147. '(?:the)?loo\\.katt\\.it\/\\w+',
  2148. "//a[contains(@href,'loo.katt.it/')]",
  2149. redirectorTypes.THELOO_KATT_IT,
  2150. /Proceed to URL - <a href="(.+?)">/);
  2151. }
  2152. if (GM_getValue("Check_madlink_dot_sk_links", false))
  2153. {
  2154. addRedirector(
  2155. 'madlink\\.sk\/\\w+',
  2156. "//a[contains(@href,'madlink.sk/')]",
  2157. redirectorTypes.INNER_LINK,
  2158. /name="url" value="(.+?)\s*"\/>/);
  2159. }
  2160. if (GM_getValue("Check_adf_dot_ly_links", false))
  2161. {
  2162. addRedirector(
  2163. '(?:adf\\.ly|[u9]\\.bb|[qj]\\.gs)\/\\w+',
  2164. "//a[contains(@href,'adf.ly/') (@href,'u.bb/') or contains(@href,'9.bb/') or contains(@href,'q.gs/') or contains(@href,'j.gs/')]",
  2165. redirectorTypes.ADF_LY,
  2166. null);
  2167. }
  2168. if (GM_getValue("Check_redi_dot_re_links", false))
  2169. {
  2170. addRedirector(
  2171. 'redi\\.re\/\\w+',
  2172. "//a[contains(@href,'redi.re/')]",
  2173. redirectorTypes.HTTP_302,
  2174. null);
  2175. }
  2176. if (GM_getValue("Check_bit_dot_ly_links", false))
  2177. {
  2178. addRedirector(
  2179. 'bit\\.ly\/\\w+',
  2180. "//a[contains(@href,'bit.ly/')]",
  2181. redirectorTypes.HTTP_302,
  2182. null);
  2183. }
  2184. }
  2185.  
  2186. }
  2187.  
  2188. var bulkHosts = new Array();
  2189. var bulkHostNames = new Array();
  2190. function initBulkCheck()
  2191. {
  2192. /////////////////////////////
  2193. // Inits filehost object
  2194. /////////////////////////////
  2195. // params :
  2196. // hostName -- [string] host name (multiple domains separated with coma)
  2197. // linkRegex -- [string] link regex
  2198. // xpath -- [string] xpath expression to detect the link objects with evaluate
  2199. // blockSize -- [integer] max. number of links sent in one request, 50 if null
  2200. // corrMatch -- [regex] link correction regex (match), applied prior to corrRepl
  2201. // corrReplWhat -- [regex] link correction regex (replace)
  2202. // corrReplWith -- [string]
  2203. // splitSeparator -- [string] POSTDATA links separator, "\r\n" if null
  2204. //
  2205. // apiUrl -- [string] web linkchecker or API URL
  2206. // postData -- [string] POSTDATA of xmlhttprequest
  2207. // resLinkRegex -- [regex]
  2208. // resLiveRegex -- [regex] matches substrings containing live links in the request response
  2209. // resDeadRegex -- [regex] matches substrings containing dead links in the request response
  2210. // resUnavaRegex -- [regex] matches substrings containing unava links in the request response
  2211. // func -- [function] bulkcheck handler, genBulkCheck if null
  2212. //
  2213. //////////////////////////////
  2214. function addHost(hostName, linkRegex, xpath, blockSize, corrMatch, corrReplWhat, corrReplWith, splitSeparator,
  2215. apiUrl, postData, resLinkRegex, resLiveRegex, resDeadRegex, resUnavaRegex, func)
  2216. {
  2217. var fileHost = new Object();
  2218.  
  2219. fileHost.linkRegex = linkRegex;
  2220. fileHost.linkRegexObject = new RegExp(linkRegex, "");
  2221. fileHost.xpath = xpath;
  2222. fileHost.cFound = 0; //found links counter
  2223. fileHost.links = new Array(); //found links
  2224. if (blockSize == null)
  2225. {
  2226. fileHost.blockSize = 50;
  2227. }
  2228. else
  2229. {
  2230. fileHost.blockSize = blockSize;
  2231. }
  2232. fileHost.corrMatch = corrMatch;
  2233. fileHost.corrReplWhat = corrReplWhat;
  2234. fileHost.corrReplWith = corrReplWith;
  2235. if (splitSeparator == null)
  2236. {
  2237. fileHost.splitSeparator = "\r\n";
  2238. }
  2239. else
  2240. {
  2241. fileHost.splitSeparator = splitSeparator;
  2242. }
  2243. fileHost.apiUrl = apiUrl;
  2244. fileHost.postData = postData;
  2245. fileHost.resLinkRegex = resLinkRegex;
  2246. fileHost.resLiveRegex = resLiveRegex;
  2247. fileHost.resDeadRegex = resDeadRegex;
  2248. fileHost.resUnavaRegex = resUnavaRegex;
  2249. if (func == null)
  2250. {
  2251. fileHost.func = genBulkCheck;
  2252. }
  2253. else
  2254. {
  2255. fileHost.func = func;
  2256. }
  2257. bulkHosts.push(fileHost);
  2258. var names = hostName.split(',');
  2259. var i = names.length;
  2260. while(i--)
  2261. {
  2262. bulkHostNames[names[i]] = fileHost;
  2263. }
  2264. }
  2265. var genType1 = [
  2266. "rodfile.com", "downloadani.me", //"migahost.com",
  2267. "rarefile.net",
  2268. "filesabc.com",
  2269. "180upload.com", "verzend.be",
  2270. // "movreel.com",
  2271. "4up.me",
  2272. "file4safe.com", "filemac.com", "4upfiles.com",
  2273. "idup.in", "novafile.com", "longfiles.com",
  2274. "bitupload.com",
  2275. "uploadbaz.com"
  2276. ];
  2277. var genType2 = [ "queenshare.com",
  2278. "hulkload.com",
  2279. "amonshare.com", //"edoc.com",
  2280. ];
  2281. //xfilesharing 1.0
  2282. function addGenericType1()
  2283. {
  2284. var i = genType1.length;
  2285. while(i--)
  2286. {
  2287. if (GM_getValue("Check_" + genType1[i].replace(/\./g, "_dot_").replace(/-/g, "_dash_") + "_links", false))
  2288. {
  2289. var regexSafe = genType1[i].replace(/\./g, "\\.").replace(/-/g, "\\-");
  2290. addHost(
  2291. genType1[i].match(/[\w-]+/)[0], //hostname
  2292. regexSafe + "\/\\w+", //linkregex
  2293. "//a[contains(@href,'" + genType1[i] + "/')]", //xpath
  2294. null, //blocksize
  2295. new RegExp("(http:\/\/(?:|www\\.)" + regexSafe + "\/\\w+)",""),//, //corrmatch
  2296. null, //corrreplwhat
  2297. null, //corrreplwith
  2298. null, //separator
  2299. "http://" + genType1[i] + "/checkfiles.html", //api url
  2300. "op=checkfiles&process=Check+URLs&list=", //postdata
  2301. new RegExp("(" + regexSafe + "\/\\w+)",""), //linkregex
  2302. new RegExp("green'>http:\/\/(?:|www\.)" + regexSafe + "\/\\w+","g"), //liveregex
  2303. new RegExp("red'>http:\/\/(?:|www\.)" + regexSafe + "\/\\w+","g"), //deadregex
  2304. new RegExp("orange'>http:\/\/(?:|www\.)" + regexSafe + "\/\\w+","g"), //unavaregex
  2305. null //function delegate
  2306. )
  2307. }
  2308. }
  2309. }
  2310. //xfilesharing 2.0
  2311. function addGenericType2()
  2312. {
  2313. var i = genType2.length;
  2314. while(i--)
  2315. {
  2316. if (GM_getValue("Check_" + genType2[i].replace(/\./g, "_dot_").replace(/-/g, "_dash_") + "_links", false))
  2317. {
  2318. var regexSafe = genType2[i].replace(/\./g, "\\.").replace(/-/g, "\\-");
  2319. addHost(
  2320. genType2[i].match(/[\w-]+/)[0], //hostname
  2321. regexSafe + "\/\\w+", //linkregex
  2322. "//a[contains(@href,'" + genType2[i] + "/')]", //xpath
  2323. null, //blocksize
  2324. new RegExp("(http:\/\/(?:|www\\.)" + regexSafe + "\/\\w+)",""),//, //corrmatch
  2325. null, //corrreplwhat
  2326. null, //corrreplwith
  2327. null, //separator
  2328. "http://www." + genType2[i] + "/?op=checkfiles", //api url
  2329. "op=checkfiles&process=Check+URLs&list=", //postdata
  2330. new RegExp("(" + regexSafe + "\/\\w+)",""), //linkregex
  2331. new RegExp(regexSafe + "\/\\w+.*?<\/td>\\s*<td style=\"color:green;\">","g"), //liveregex
  2332. new RegExp(regexSafe + "\/\\w+.*?<\/td>\\s*<td style=\"color:red;\">","g"), //deadregex
  2333. new RegExp(regexSafe + "\/\\w+.*?<\/td>\\s*<td style=\"color:orange;\">","g"), //unavaregex
  2334. null //function delegate
  2335. )
  2336. }
  2337. }
  2338. }
  2339. // TEMPLATE
  2340. // if (GM_getValue("Check__dot_com_links", false))
  2341. // {
  2342. // addHost(
  2343. // "", //hostname
  2344. // "", //linkregex
  2345. // "//a[contains(@href,'.com/')]", //xpath
  2346. // null, //blocksize
  2347. // null, //corrmatch
  2348. // null, //corrreplwhat
  2349. // null, //corrreplwith
  2350. // null, //separator
  2351. // "", //api url
  2352. // "", //postdata
  2353. // /()/, //linkregex
  2354. // //liveregex
  2355. // //deadregex
  2356. // //unavaregex
  2357. // null //function delegate
  2358. // )
  2359. // }
  2360. addGenericType1();
  2361. addGenericType2();
  2362.  
  2363. if (GM_getValue("Check_myvdrive_dot_com_links", false))
  2364. {
  2365. addHost(
  2366. "myvdrive,fileserving", //hostname
  2367. "(?:fileserving|myvdrive)\\.com\/files\/[\\w-]+", //linkregex
  2368. "//a[contains(@href,'fileserving.com/files') or contains(@href,'myvdrive.com/files')]", //xpath
  2369. null, //blocksize
  2370. null, //corrmatch
  2371. null, //corrreplwhat
  2372. null, //corrreplwith
  2373. null, //separator
  2374. "http://www.myvdrive.com/Public/linkchecker#", //api url
  2375. "links=", //postdata
  2376. /(?:fileserving|myvdrive)\.com\/(files\/\w+)/, //linkregex
  2377. /icon_file_check_valid"><\/span>\s*http:\/\/www\.(?:fileserving|myvdrive)\.com\/files\/[\w-]+/g, //liveregex
  2378. /icon_file_check_(?:removed|notvalid)"><\/span>\s*http:\/\/www\.(?:fileserving|myvdrive)\.com\/files\/[\w-]+/g, //deadregex
  2379. null, //unavaregex
  2380. null //function delegate
  2381. )
  2382. }
  2383. if (GM_getValue("Check_hackerbox_dot_org_links", false))
  2384. {
  2385. addHost(
  2386. "hackerbox", //hostname
  2387. "host\\.hackerbox\\.org\/\\w+", //linkregex
  2388. "//a[contains(@href,'host.hackerbox.org/')]", //xpath
  2389. null, //blocksize
  2390. /(http:\/\/host\.hackerbox\.org\/\w+)/, //corrmatch
  2391. null, //corrreplwhat
  2392. null, //corrreplwith
  2393. null, //separator
  2394. "http://host.hackerbox.org/checkfiles.html", //api url
  2395. "op=checkfiles&process=Check+URLs&list=", //postdata
  2396. /(host\.hackerbox\.org\/\w+)/, //linkregex
  2397. /green'>http:\/\/host\.hackerbox\.org\/\w+/g, //liveregex
  2398. /red'>http:\/\/host\.hackerbox\.org\/\w+/g, //deadregex
  2399. /orange'>http:\/\/host\.hackerbox\.org\/\w+/g, //unavaregex
  2400. null //function delegate
  2401. )
  2402. }
  2403. if (GM_getValue("Check_hellshare_dot_com_links", false))
  2404. {
  2405. addHost(
  2406. "hellshare", //hostname
  2407. "(?:|download\\.(?:cz\\.|en\\.|sk\\.|)|www\\.)hellshare\\.(?:com|sk|cz|pl|hu|COM|SK|CZ|PL|HU)\/[\\w-\\.]+\/(?:[\\w-\\.]+\/|)\\d{5,}", //linkregex
  2408. "//a[contains(@href,'hellshare.')]", //xpath
  2409. 48, //blocksize
  2410. null, //corrmatch
  2411. null, //corrreplwhat
  2412. null, //corrreplwith
  2413. null, //separator
  2414. null, //api url
  2415. null, //postdata
  2416. null, //linkregex
  2417. null, //liveregex
  2418. null, //deadregex
  2419. null, //unavaregex
  2420. hellshareBulkCheck //function delegate
  2421. )
  2422. }
  2423. if (GM_getValue("Check_ncrypt_dot_in_links", false))
  2424. {
  2425. addHost(
  2426. "ncrypt", //hostname
  2427. "ncrypt\\.in\/folder\\-\\w+", //linkregex
  2428. "//a[contains(@href,'ncrypt.in/folder')]", //xpath
  2429. 100000, //blocksize
  2430. null, //corrmatch
  2431. null, //corrreplwhat
  2432. null, //corrreplwith
  2433. null, //separator
  2434. null,
  2435. null,
  2436. null,
  2437. null,
  2438. null,
  2439. null,
  2440. ncryptBulkCheck //function delegate
  2441. )
  2442. }
  2443. if (GM_getValue("Check_geupload_dot_com_links", false))
  2444. {
  2445. addHost(
  2446. "geupload,lenfile", //hostname
  2447. "(?:geupload\\.com|lenfile\\.com)\/\\w+", //linkregex
  2448. "//a[contains(@href,'geupload.com/') or contains(@href,'lenfile.com/')]", //xpath
  2449. null, //blocksize
  2450. null, //corrmatch
  2451. null, //corrreplwhat
  2452. null, //corrreplwith
  2453. "\n", //separator
  2454. 'http://geupload.com/?op=checkfiles',
  2455. 'op=checkfiles&process=Check+URLs&list=',
  2456. />http:\/\/(?:geupload|lenfile)\.com\/(\w+)/,
  2457. />http:\/\/(?:geupload|lenfile)\.com\/\w+(?:[^>]+>)<td style=\"color\:green/g,
  2458. />http:\/\/(?:geupload|lenfile)\.com\/\w+(?:[^>]+>)<td style=\"color\:red/g,
  2459. null,
  2460. null
  2461. )
  2462. }
  2463. if (GM_getValue("Check_uploadrocket_dot_net_links", false))
  2464. {
  2465. addHost(
  2466. "uploadrocket", //hostname
  2467. "(?:uploadrocket\\.net)\/\\w+", //linkregex
  2468. "//a[contains(@href,'uploadrocket.net/')]", //xpath
  2469. null, //blocksize
  2470. null, //corrmatch
  2471. null, //corrreplwhat
  2472. null, //corrreplwith
  2473. "\n", //separator
  2474. 'http://uploadrocket.net/?op=checkfiles',
  2475. 'op=checkfiles&process=Check+URLs&list=',
  2476. /uploadrocket.net\/(\w+)/,
  2477. />http:\/\/uploadrocket.net\/\w+(?:[^>]+>)<td style="color:green/g,
  2478. />http:\/\/uploadrocket.net\/\w+(?:[^>]+>)<td style="color:red/g,
  2479. null,
  2480. null //function delegate
  2481. )
  2482. }
  2483. if (GM_getValue("Check_k2s_dot_cc_links", false))
  2484. {
  2485. addHost(
  2486. "k2s,keep2s,keep2share",
  2487. "(?:(?:k2s\\.cc)|(?:keep2s\\.cc)|(?:keep2share\\.(?:cc|com)))\/file\/\\w+",
  2488. "//a[contains(@href,'k2s.cc/file/') or contains(@href,'keep2s.cc/file/') or contains(@href,'keep2share.cc/file/') or contains(@href,'keep2share.com/file/')]",
  2489. 100000, //blocksize
  2490. null, //corrmatch
  2491. null, //corrreplwhat
  2492. null, //corrreplwith
  2493. null, //separator
  2494. null,
  2495. null,
  2496. null,
  2497. null,
  2498. null,
  2499. null,
  2500. k2sBulkCheck //function delegate
  2501. )
  2502. }
  2503. if (GM_getValue("Check_fboom_dot_me_links", false))
  2504. {
  2505. addHost(
  2506. "fboom,fileboom",
  2507. "(?:(?:fboom\\.me)|(?:fileboom\\.me))\/file\/\\w+",
  2508. "//a[contains(@href,'fboom.me/file/') or contains(@href,'fileboom.me/file/')]",
  2509. 100000, //blocksize
  2510. null, //corrmatch
  2511. null, //corrreplwhat
  2512. null, //corrreplwith
  2513. null, //separator
  2514. null,
  2515. null,
  2516. null,
  2517. null,
  2518. null,
  2519. null,
  2520. fboomBulkCheck //function delegate
  2521. )
  2522. }
  2523. if (GM_getValue("Check_1fichier_dot_com_links", false))
  2524. {
  2525. addHost(
  2526. "1fichier,dl4free",
  2527. "(?:\\w{10}\\.(?:1fichier|dl4free)\\.com\/)|(?:(?:1fichier|dl4free)\\.com\/\\?\\w{10})|(?:www\\.)?\\w{6,}\\.1fichier\\.com",
  2528. "//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/?')]",
  2529. 100000, //blocksize
  2530. null, //corrmatch
  2531. null, //corrreplwhat
  2532. null, //corrreplwith
  2533. null, //separator
  2534. null,
  2535. null,
  2536. null,
  2537. null,
  2538. null,
  2539. null,
  2540. dl4free_1fichier_BulkCheck //function delegate
  2541. )
  2542. }
  2543. if (GM_getValue("Check_depositfiles_dot_com_links", false))
  2544. {
  2545. addHost(
  2546. "depositfiles,dfiles",
  2547. "(?:(?:depositfiles\\.(?:com|org|lt))|(?:dfiles\\.(?:ru|eu)))\/files\/|en/files\/\\w+",
  2548. "//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/')]",
  2549. 100000, //blocksize
  2550. null, //corrmatch
  2551. null, //corrreplwhat
  2552. null, //corrreplwith
  2553. null, //separator
  2554. null,
  2555. null,
  2556. null,
  2557. null,
  2558. null,
  2559. null,
  2560. depositfilesBulkCheck //function delegate
  2561. )
  2562. }
  2563. if (GM_getValue("Check_filesflash_dot_com_links", false))
  2564. {
  2565. addHost(
  2566. "filesflash", //hostname
  2567. "filesflash\\.com\/\\w+", //linkregex
  2568. "//a[contains(@href,'filesflash.com')]", //xpath
  2569. null, //blocksize
  2570. null, //corrmatch
  2571. /http:\/\//, //corrreplwhat
  2572. '', //corrreplwith
  2573. null, //separator
  2574. 'http://filesflash.com/checklinks.php',
  2575. 'submit=Go&links=',
  2576. /filesflash\.com\/(\w+)/,
  2577. /<td>filesflash\.com\/\w+<\/td>\s*<td>Available/g,
  2578. /<td>filesflash\.com\/\w+<\/td>\s*<td>(?:Invalid|Deleted|Expired|Banned)?<\/td>/g,
  2579. null,
  2580. null //function delegate
  2581. )
  2582. }
  2583. if (GM_getValue("Check_jumbofiles_dot_com_links", false))
  2584. {
  2585. addHost(
  2586. "jumbofiles", //hostname
  2587. "jumbofiles\\.com\/\\w+", //linkregex
  2588. "//a[contains(@href,'jumbofiles.com/')]", //xpath
  2589. null, //blocksize
  2590. /(http:\/\/(?:|www\.)jumbofiles\.com\/\w+)/, //corrmatch
  2591. null, //corrreplwhat
  2592. null, //corrreplwith
  2593. null, //separator
  2594. "http://jumbofiles.com/checkfiles.html", //api url
  2595. "op=checkfiles&process=Check+URLs&list=", //postdata
  2596. /(jumbofiles\.com\/\w+)/, //linkregex
  2597. /blue'>http:\/\/(?:|www\.)jumbofiles\.com\/\w+/g, //liveregex
  2598. /red'>http:\/\/(?:|www\.)jumbofiles\.com\/\w+/g, //deadregex
  2599. /orange'>http:\/\/(?:|www\.)jumbofiles\.com\/\w+/g, //unavaregex
  2600. null //function delegate
  2601. )
  2602. }
  2603. if (GM_getValue("Check_edisk_dot_cz_links", false))
  2604. {
  2605. addHost(
  2606. "edisk", //hostname
  2607. "(?:(?:muj|data)\\d*\\.|)edisk\\.(?:cz|sk|eu)\/(?:|(?:cz|sk|en|pl)\/)", //linkregex
  2608. "//a[contains(@href,'edisk.')]", //xpath
  2609. null, //blocksize
  2610. null, //corrmatch
  2611. /edisk\.\w{2}\/(?:|\w{2}\/)stahni/, //corrreplwhat
  2612. 'edisk.cz/stahni', //corrreplwith
  2613. null, //separator
  2614. 'http://www.edisk.cz/zkontrolovat-odkazy',
  2615. 'submitBtn=Zkontrolovat&checkFiles=',
  2616. /((?:download|stahn(?:i|out-soubor))\/\d+)/,
  2617. /"ano"\/>\s*<\/td>\s*<td>\s*http:\/\/.+/g,
  2618. /"ne"\/>\s*<\/td>\s*<td>\s*http:\/\/.+/g,
  2619. null,
  2620. null //function delegate
  2621. )
  2622. }
  2623. if (GM_getValue("Check_bezvadata_dot_cz_links", false))
  2624. {
  2625. GM_xmlhttpRequest( //age check skip
  2626. {
  2627. method: 'POST',
  2628. url: 'http://bezvadata.cz/vyhledavani/souhlas-zavadny-obsah',
  2629. headers: {
  2630. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  2631. 'Content-type': 'application/x-www-form-urlencoded',
  2632. 'Referer': ""
  2633. }
  2634. });
  2635. addHost(
  2636. "bezvadata", //hostname
  2637. "(?:beta\\.|)bezvadata\.cz\/stahnout\/\\d+\\w+", //linkregex
  2638. "//a[contains(@href,'bezvadata.cz')]", //xpath
  2639. null, //blocksize
  2640. null, //corrmatch
  2641. null, //corrreplwhat
  2642. null, //corrreplwith
  2643. null, //separator
  2644. 'http://bezvadata.cz/nastroje/kontrola-odkazu?do=kontrolaOdkazuForm-submit',
  2645. 'zkontrolovat=Zkontrolovat&odkazy=',
  2646. /(bezvadata\.cz\/stahnout\/\d+)/,
  2647. /bezvadata\.cz\/stahnout\/.+?<\/td>\s*<td style="background-color: #d9ffb2/g,
  2648. /bezvadata\.cz\/stahnout\/.+?<\/td>\s*<td style="background-color: #ffb2b2/g,
  2649. null,
  2650. null //function delegate
  2651. )
  2652. }
  2653. if (GM_getValue("Check_linkcrypt_dot_ws_links", false))
  2654. {
  2655. addHost(
  2656. "linkcrypt", //hostname
  2657. "linkcrypt\\.ws\/dir\/\\w+", //linkregex
  2658. "//a[contains(@href,'linkcrypt.ws/dir')]", //xpath
  2659. 100000, //blocksize
  2660. null, //corrmatch
  2661. null, //corrreplwhat
  2662. null, //corrreplwith
  2663. null, //separator
  2664. null,
  2665. null,
  2666. null,
  2667. null,
  2668. null,
  2669. null,
  2670. linkcryptBulkCheck //function delegate
  2671. )
  2672. }
  2673. if (GM_getValue("Check_linksave_dot_in_links", false))
  2674. {
  2675. addHost(
  2676. "linksave", //hostname
  2677. "linksave\\.in\/\\w+", //linkregex
  2678. "//a[contains(@href,'linksave.in')]", //xpath
  2679. 100000, //blocksize
  2680. null, //corrmatch
  2681. null, //corrreplwhat
  2682. null, //corrreplwith
  2683. null, //separator
  2684. null,
  2685. null,
  2686. null,
  2687. null,
  2688. null,
  2689. null,
  2690. linksaveBulkCheck //function delegate
  2691. )
  2692. }
  2693. if (GM_getValue("Check_videobb_dot_com_links", false))
  2694. {
  2695. addHost(
  2696. "videobb", //hostname
  2697. "videobb\\.com\/(?:video\/|watch_video\\.php\\?v=)\\w+", //linkregex
  2698. "//a[contains(@href,'videobb.com')]", //xpath
  2699. null, //blocksize
  2700. null, //corrmatch
  2701. /watch_video\.php\?v=/, //corrreplwhat
  2702. 'video/', //corrreplwith
  2703. null, //separator
  2704. 'http://www.videobb.com/link_checker.php',
  2705. 'links=',
  2706. /videobb\.com\/video\/(\w+)/,
  2707. /<td>http:\/\/(?:www\.|)videobb.com\/video\/\w+<\/td>\s+<td>.+?<\/td>\s+<td>\d+:\d+<\/td>\s+<td>Available/g,
  2708. /<td>http:\/\/(?:www\.|)videobb.com\/video\/\w+<\/td>\s+<td><\/td>\s+<td>N\/A<\/td>\s+<td>Not Available/g,
  2709. null,
  2710. null //function delegate
  2711. )
  2712. }
  2713. /* if (GM_getValue("Check_cramit_dot_in_links", false))
  2714. {
  2715. addHost(
  2716. "cramit,cramitin", //hostname
  2717. "cramit(?:\\.in|in\\.net)\/", //linkregex
  2718. "//a[contains(@href,'cramitin.net') or contains(@href,'cramit.in')]", //xpath
  2719. null, //blocksize
  2720. null, //corrmatch
  2721. null, //corrreplwhat
  2722. null, //corrreplwith
  2723. null, //separator
  2724. 'http://cramit.in/checkfiles.html',
  2725. 'op=checkfiles&process=CHECK+URL%27S&list=',
  2726. /(cramit(?:\.in|in\.net)\/\w+)/,
  2727. /green>http:\/\/(?:www\.|)cramit(?:\.in|in\.net)\/\w+/g,
  2728. /red'>http:\/\/(?:www\.|)cramit(?:\.in|in\.net)\/\w+/g,
  2729. /orange'>http:\/\/(?:www\.|)cramit(?:\.in|in\.net)\/\w+/g,
  2730. null //function delegate
  2731. )
  2732. }
  2733. if (GM_getValue("Check_turbobit_dot_net_links", false))
  2734. {
  2735. addHost(
  2736. "turbobit", //hostname
  2737. "turbobit\\.(?:net|pl)\/(?:\\w+\/|).+?\\.html", //linkregex
  2738. "//a[contains(@href,'turbobit.')]", //xpath
  2739. null, //blocksize
  2740. /(turbobit\.(?:net|pl)\/(?:\w+\/|).+?\.html)/, //corrmatch
  2741. null, //corrreplwhat
  2742. null, //corrreplwith
  2743. "\n", //separator
  2744. 'http://turbobit.net/linkchecker/csv',
  2745. 'links_to_check=',
  2746. /(turbobit\.(?:net|pl)\/\w+)/,
  2747. /turbobit\.(?:net|pl)\/.*?, 1/g,
  2748. /turbobit\.(?:net|pl)\/.*?, 0/g,
  2749. null,
  2750. null //function delegate
  2751. )
  2752. } */
  2753. if (GM_getValue("Check_filerio_dot_com_links", false))
  2754. {
  2755. addHost(
  2756. "filekeen,filerio", //hostname
  2757. //"file(?:keen|rio)\\.(?:com|in)\/\\w+\/.", //linkregex
  2758. "file(?:keen|rio)\\.(?:com|in)\/\\w+", //linkregex
  2759. "//a[contains(@href,'filekeen.com') or contains(@href,'filerio.')]", //xpath
  2760. null, //blocksize
  2761. null, //corrmatch
  2762. null, //corrreplwhat
  2763. null, //corrreplwith
  2764. null, //separator
  2765. 'http://filerio.in/checkfiles.html',
  2766. 'op=checkfiles&process=Check+URLs&list=',
  2767. /(file(?:keen|rio)\.(?:com|in)\/\w+)/,
  2768. /green'>http:\/\/(?:www\.|)file(?:keen|rio)\.(?:com|in)\/\w+/g,
  2769. /red'>http:\/\/(?:www\.|)file(?:keen|rio)\.(?:com|in)\/\w+/g,
  2770. /orange'>http:\/\/(?:www\.|)file(?:keen|rio)\.(?:com|in)\/\w+/g,
  2771. null //function delegate
  2772. )
  2773. }
  2774. if (GM_getValue("Check_share_dash_online_dot_biz_links", false))
  2775. {
  2776. addHost(
  2777. "share-online,egoshare", //hostname
  2778. "(?:share-online\\.biz|egoshare\\.com)\/(?:dl\/|download\\.php\\?id=)", //linkregex
  2779. "//a[contains(@href,'share-online.biz') or contains(@href,'egoshare.com')]", //xpath
  2780. null, //blocksize
  2781. /http:\/\/(?:www\.)?(?:share-online\.biz|egoshare\.com)\/d(?:l\/|ownload\.php\?id=)(\w+)/, //corrmatch
  2782. null, //corrreplwhat
  2783. null, //corrreplwith
  2784. "\n", //separator
  2785. 'http://api.share-online.biz/linkcheck.php',
  2786. 'links=',
  2787. /(\w+);(?:OK|NOTFOUND|DELETED)/,
  2788. /\w+;OK/g,
  2789. /\w+;(?:NOTFOUND|DELETED)/g,
  2790. null,
  2791. null //function delegate
  2792. )
  2793. }
  2794. /* if (GM_getValue("Check_quickshare_dot_cz_links", false))
  2795. {
  2796. addHost(
  2797. "quickshare", //hostname
  2798. "quickshare\\.cz\/stahnout-soubor\/\\d+", //linkregex
  2799. "//a[contains(@href,'quickshare.cz')]", //xpath
  2800. null, //blocksize
  2801. null, //corrmatch
  2802. null, //corrreplwhat
  2803. null, //corrreplwith
  2804. null, //separator
  2805. 'http://www.quickshare.cz/nastroje/link-checker',
  2806. 'linky=',
  2807. /quickshare\.cz\/stahnout-soubor\/(\d+(?::\w+)?)/,
  2808. /quickshare\.cz\/stahnout-soubor\/\d+(?::[\w\-.+$!*\/()\[\]\',~%?:@#&=\\]+)?\s*<\/a><\/td><td><img src="\/img\/ok\.gif/g,
  2809. /quickshare\.cz\/stahnout-soubor\/\d+(?::[\w\-.+$!*\/()\[\]\',~%?:@#&=\\]+)?\s*<\/td><td><img src="\/img\/nenalezeno\.gif/g,
  2810. null,
  2811. null //function delegate
  2812. )
  2813. } */
  2814. if (GM_getValue("Check_oboom_dot_com_links", false))
  2815. {
  2816. addHost(
  2817. "oboom", //hostname
  2818. "oboom\\.com\/#?\\w{8}", //linkregex
  2819. "//a[contains(@href,'oboom.com/')]", //xpath
  2820. null, //blocksize
  2821. /oboom\.com\/#?(\w{8})/, //corrmatch
  2822. null, //corrreplwhat
  2823. null, //corrreplwith
  2824. null, //separator
  2825. null,
  2826. null,
  2827. null,
  2828. null, //liveregex
  2829. null, //deadregex
  2830. null,
  2831. oboomBulk //function delegate
  2832. )
  2833. }
  2834. if (GM_getValue("Check_mega_dot_nz_links", false))
  2835. {
  2836. addHost(
  2837. "mega",
  2838. "mega(?:\\.co)?\\.nz\/#!\\w+",
  2839. "//a[contains(@href,'mega.co.nz/') or contains(@href,'mega.nz/')]",
  2840. 100000, //blocksize
  2841. null, //corrmatch
  2842. null, //corrreplwhat
  2843. null, //corrreplwith
  2844. null, //separator
  2845. null,
  2846. null,
  2847. null,
  2848. null,
  2849. null,
  2850. null,
  2851. megaBulkCheck //function delegate
  2852. )
  2853. }
  2854.  
  2855. //the same as GenType2, except api url is 'https://' instead of 'http://www.' and corrmatch is not??? needed
  2856.  
  2857. if (GM_getValue("Check_extabit_dot_com_links", false))
  2858. {
  2859. addHost(
  2860. "extabit", //hostname
  2861. "extabit\\.com\/file\/\\w+", //linkregex
  2862. "//a[contains(@href,'extabit.com')]", //xpath
  2863. null, //blocksize
  2864. null, //corrmatch
  2865. null, //corrreplwhat
  2866. null, //corrreplwith
  2867. "\n", //separator
  2868. "http://extabit.com/linkchecker.jsp", //api url
  2869. "url=", //postdata
  2870. /extabit\.com\/(file\/\w+)/, //linkregex
  2871. /extabit\.com\/file\/\w+\/[^<]+<\/a><\/td>\s*<td class="status"><span class="status_green">/g, //liveregex
  2872. /extabit\.com\/file\/\w+\/[^<]+<\/a><\/td>\s*<td class="status"><span class="status_red">/g, //deadregex
  2873. /extabit\.com\/file\/\w+\/[^<]+<\/a><\/td>\s*<td class="status"><span class="status_yellow">/g, //unavaregex
  2874. extabitBulkCheck //function delegate
  2875. )
  2876. }
  2877. if (GM_getValue("Check_junocloud_dot_me_links", false))
  2878. {
  2879. addHost(
  2880. "junocloud", //hostname
  2881. "junocloud\\.me\/\\w+", //linkregex
  2882. "//a[contains(@href,'junocloud.me')]", //xpath
  2883. null, //blocksize
  2884. null, //corrmatch
  2885. null, //corrreplwhat
  2886. null, //corrreplwith
  2887. "\n", //separator
  2888. "http://junocloud.me/checkfiles.html", //api url
  2889. "op=checkfiles&process=Check+URLs&list=", //postdata
  2890. /(junocloud\.me\/\w+)/, //linkregex
  2891. /<a href="http:\/\/junocloud\.me\/\w+[^<]+<\/a>\s*<span style="color: green/g, //liveregex
  2892. /<a href="http:\/\/junocloud\.me\/\w+[^<]+<\/a>\s*<span style="color: red/g, //deadregex
  2893. null, //unavaregex
  2894. null //function delegate
  2895. )
  2896. }
  2897. if (GM_getValue("Check_webshare_dot_cz_links", false))
  2898. {
  2899. addHost(
  2900. "webshare", //hostname
  2901. "webshare\.cz\/(?:(?:#/)?file/\\w+|\\w+-.*)", //linkregex
  2902. "//a[contains(@href,'webshare.cz')]", //xpath
  2903. 100000, //blocksize
  2904. null, //corrmatch
  2905. null, //corrreplwhat
  2906. null, //corrreplwith
  2907. null, //separator
  2908. null, //api url
  2909. null, //postdata
  2910. null, //linkregex
  2911. null, //liveregex
  2912. null, //deadregex
  2913. null, //unavaregex
  2914. webshareBulkCheck //function delegate
  2915. )
  2916. }
  2917. /////////////////////////////
  2918. // Common function delegate to send links to get checked by host linkchecker
  2919. /////////////////////////////
  2920. // If you define a new delegate, you may use following properties
  2921. // this.links [array] array of strings (link blocks). The links in each block separated with host.splitSeparator.
  2922. // this.apiUrl [string] API or web linkchecker URL
  2923. // this.postData [string] POSTDATA for POST request
  2924. // this.resLiveRegex [regex] matches live substrings in the request response
  2925. // this.resDeadRegex [regex] matches dead substrings in the request response
  2926. // this.resUnavaRegex [regex] matches unava substrings in the request response (the regex is often null!)
  2927. //
  2928. // this.resLinkRegex [regex] matches links further passed to DisplayTheCheckedLinks
  2929. //
  2930. // See the code below for standard bulkcheck handling reference.
  2931. //////////////////////////////
  2932. function genBulkCheck()
  2933. {
  2934. var blockIdx = this.links.length;
  2935. while (blockIdx--)
  2936. {
  2937. postRequest(this.apiUrl, this.postData, this.links[blockIdx],
  2938. this.resLinkRegex, this.resLiveRegex, this.resDeadRegex, this.resUnavaRegex);
  2939. }
  2940. function postRequest(api, postData, links, linkRegex, liveRegex, deadRegex, unavaRegex)
  2941. {
  2942. GM_xmlhttpRequest(
  2943. {
  2944. method: 'POST',
  2945. url: api,
  2946. headers: {
  2947. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  2948. 'Content-type': 'application/x-www-form-urlencoded',
  2949. 'Referer': api,
  2950. 'X-Requested-With': 'XMLHttpRequest'
  2951. },
  2952. data: postData + encodeURIComponent(links),
  2953. onload: function (result)
  2954. {
  2955. var res = result.responseText;
  2956. // GM_log(res);
  2957. var i;
  2958.  
  2959. var livelinks = res.match(liveRegex);
  2960. var deadlinks = res.match(deadRegex);
  2961. // GM_log(livelinks);
  2962. // GM_log(deadlinks);
  2963. if (livelinks != null)
  2964. {
  2965. i = livelinks.length - 1;
  2966. do
  2967. {
  2968. livelinks[i] = livelinks[i].match(linkRegex)[1];
  2969. }
  2970. while (i--);
  2971. DisplayTheCheckedLinks(livelinks, 'alive_link');
  2972. }
  2973.  
  2974. if (deadlinks != null)
  2975. {
  2976. i = deadlinks.length - 1;
  2977. do
  2978. {
  2979. deadlinks[i] = deadlinks[i].match(linkRegex)[1];
  2980. }
  2981. while (i--);
  2982. DisplayTheCheckedLinks(deadlinks, 'adead_link');
  2983. }
  2984.  
  2985. if (unavaRegex != null)
  2986. {
  2987. var unavalinks = res.match(unavaRegex);
  2988. if (unavalinks)
  2989. {
  2990. i = unavalinks.length - 1;
  2991. do
  2992. {
  2993. unavalinks[i] = unavalinks[i].match(linkRegex)[1];
  2994. }
  2995. while (i--);
  2996. DisplayTheCheckedLinks(unavalinks, 'unava_link');
  2997. }
  2998. }
  2999. }
  3000. });
  3001. }
  3002. }
  3003. //specialized bulkchecking handlers follow
  3004. function webshareBulkCheck()
  3005. {
  3006. var arr = this.links[0].split("\r\n");
  3007. var i = arr.length;
  3008. while(i--)
  3009. {
  3010. postRequest(arr[i]);
  3011. }
  3012. //function postRequest(api, postData, links, linkRegex, liveRegex, deadRegex, unavaRegex)
  3013. function postRequest(wsLink)
  3014. {
  3015. var id = wsLink.match(/webshare\.cz\/(?:(?:#\/)?file\/)?(\w+)/)[1];
  3016. GM_xmlhttpRequest(
  3017. {
  3018. method: 'POST',
  3019. url: "http://webshare.cz/api/file_info/",
  3020. headers: {
  3021. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  3022. 'Content-type': 'application/x-www-form-urlencoded',
  3023. 'Referer': "",
  3024. },
  3025. data: "wst=&ident=" + id,
  3026. onload: function (result)
  3027. {
  3028. var res = result.responseText;
  3029. if (res.match(/<name>.+?<\/name>/))
  3030. {
  3031. DisplayTheCheckedLinks([id], 'alive_link');
  3032. }
  3033. else
  3034. {
  3035. DisplayTheCheckedLinks([id], 'adead_link');
  3036. }
  3037. }
  3038. });
  3039. }
  3040. }
  3041. //like genBulkCheck, but extabit linkchecker only works when logged in. If not logged in, non-bulk checking has to be used.
  3042. //extabit also doesn't like requests in fast succession, so some delays are added.
  3043. function extabitBulkCheck()
  3044. {
  3045. var timeoutDelay = 0;
  3046. var blockIdx = this.links.length;
  3047. while (blockIdx--)
  3048. {
  3049. postRequest(this.apiUrl, this.postData, this.links[blockIdx],
  3050. this.resLinkRegex, this.resLiveRegex, this.resDeadRegex, this.resUnavaRegex);
  3051. }
  3052. function postRequest(api, postData, links, linkRegex, liveRegex, deadRegex, unavaRegex)
  3053. {
  3054. GM_xmlhttpRequest(
  3055. {
  3056. method: 'POST',
  3057. url: api,
  3058. headers: {
  3059. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  3060. 'Content-type': 'application/x-www-form-urlencoded',
  3061. 'Referer': api,
  3062. 'X-Requested-With': 'XMLHttpRequest'
  3063. },
  3064. data: postData + encodeURIComponent(links),
  3065. onload: function (result)
  3066. {
  3067. var res = result.responseText;
  3068. if (/id="registration_header"/.test(res)) //not logged in, have to use non-bulk
  3069. {
  3070. function geturlfunc(link, tryID) //basically the geturl function with some changes (compacted, displaythecheckedlinkS, multiple tries)
  3071. {
  3072. //GM_log(tryID + ': ' + link);
  3073. GM_xmlhttpRequest(
  3074. {
  3075. method: 'GET',
  3076. url: link,
  3077. 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': ""},
  3078. onload: function(result2)
  3079. {
  3080. var res2 = result2.responseText;
  3081. var res2Status = result.status;
  3082. if (/download-file-btn/.test(res2)) {DisplayTheCheckedLinks([link], 'alive_link'); return;}
  3083. if (/Search mirrors|id="mirrb"/.test(res2) || res2Status==404) {DisplayTheCheckedLinks([link], 'adead_link'); return;}
  3084. if (/currently unavailable|temporarily unavailable|disponible en estos momentos|vorläufig unerreichbar|Файл временно недоступен/.test(res2) || res2Status == 500 || res2Status == 503)
  3085. {
  3086. if (tryID < 7)
  3087. setTimeout(function(){geturlfunc(link,tryID+1)}, tryID * 1000 + (Math.random() * tryID * 2000));
  3088. else
  3089. {DisplayTheCheckedLinks([link], 'unava_link'); return;}
  3090. }
  3091. }
  3092. });
  3093. }
  3094. //split the hrefs and check them one by one
  3095. GM_log('Using slow extabit.com link checking. Log in to extabit to use fast bulk checking.');
  3096. links = links.split('\n');
  3097. var i = links.length;
  3098. while (i--)
  3099. {
  3100. if (links[i])
  3101. {
  3102. (function(i){setTimeout(function(){geturlfunc(links[i],1)}, timeoutDelay);})(i);
  3103. timeoutDelay += 500;
  3104. }
  3105. }
  3106. return;
  3107. }
  3108. var i;
  3109.  
  3110. var livelinks = res.match(liveRegex);
  3111. var deadlinks = res.match(deadRegex);
  3112. if (livelinks != null)
  3113. {
  3114. i = livelinks.length - 1;
  3115. do
  3116. {
  3117. livelinks[i] = livelinks[i].match(linkRegex)[1];
  3118. }
  3119. while (i--);
  3120. DisplayTheCheckedLinks(livelinks, 'alive_link');
  3121. }
  3122.  
  3123. if (deadlinks != null)
  3124. {
  3125. i = deadlinks.length - 1;
  3126. do
  3127. {
  3128. deadlinks[i] = deadlinks[i].match(linkRegex)[1];
  3129. }
  3130. while (i--);
  3131. DisplayTheCheckedLinks(deadlinks, 'adead_link');
  3132. }
  3133.  
  3134. if (unavaRegex != null)
  3135. {
  3136. var unavalinks = res.match(unavaRegex);
  3137. if (unavalinks)
  3138. {
  3139. i = unavalinks.length - 1;
  3140. do
  3141. {
  3142. unavalinks[i] = unavalinks[i].match(linkRegex)[1];
  3143. }
  3144. while (i--);
  3145. DisplayTheCheckedLinks(unavalinks, 'unava_link');
  3146. }
  3147. }
  3148. }
  3149. });
  3150. }
  3151. }
  3152. function k2sBulkCheck()
  3153. {
  3154. var arr = this.links[0].split("\r\n");
  3155. var i = arr.length;
  3156. c=0;
  3157. arrIDs=[];
  3158. while(i--)
  3159. {
  3160. id = arr[i].match(/\/file\/(\w+)/)[1];
  3161. k2salreadyexist=false;
  3162. for (j=0;j<arrIDs.length;j++)
  3163. {
  3164. if (arrIDs[j]==id)
  3165. {
  3166. k2salreadyexist=true;
  3167. break;
  3168. }
  3169. }
  3170. if (k2salreadyexist) continue;
  3171. arrIDs.push(id);
  3172. c++;
  3173. setTimeout(k2sRequest,c*500,arr[i]);
  3174. }
  3175. }
  3176. function k2sRequest(K2SLink)
  3177. {
  3178. var id = K2SLink.match(/\/file\/(\w+)/)[1];
  3179. K2SLink2='http://k2s.cc/file/'+id;
  3180. GM_xmlhttpRequest(
  3181. {
  3182. method: 'GET',
  3183. url: K2SLink,
  3184. headers: {
  3185. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  3186. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  3187. 'Referer': ''
  3188. },
  3189. onload: function (result)
  3190. {
  3191. var res = result.responseText;
  3192. 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'))
  3193. {
  3194. DisplayTheCheckedLinks([K2SLink], 'adead_link');
  3195. return;
  3196. }
  3197. if (res.match('method="post">Displaying'))
  3198. {
  3199. DisplayTheCheckedLinks([K2SLink], 'unava_link');
  3200. return;
  3201. }
  3202. if (res.match('Premium only'))
  3203. {
  3204. DisplayTheCheckedLinks([K2SLink], 'prem_link');
  3205. return;
  3206. }
  3207. if (res.match('View File|download-file-info|div class="name fontmyriadpro"|style="color: #9fb143;"'))
  3208. {
  3209. slow_id=new RegExp('<input type="hidden" name="slow_id" value="(\\w+)">');
  3210. slID=slow_id.exec(res)[1];
  3211. GM_xmlhttpRequest(
  3212. {
  3213. method: 'POST',
  3214. url: K2SLink2,
  3215. headers: {
  3216. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  3217. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  3218. 'Content-Type': 'application/x-www-form-urlencoded',
  3219. 'Referer': K2SLink
  3220. },
  3221. data: 'slow_id='+slID+'&yt0=',
  3222. onload: function (result)
  3223. {
  3224. var newres = result.responseText;
  3225. newoversizedtest=new RegExp("Free user can't download large files|Downloading is not possible");
  3226. if (newoversizedtest.test(newres))
  3227. {
  3228. DisplayTheCheckedLinks([K2SLink], 'prem_link');
  3229. return;
  3230. }
  3231. else
  3232. {
  3233. DisplayTheCheckedLinks([K2SLink], 'alive_link');
  3234. return;
  3235. }
  3236. DisplayTheCheckedLinks([K2SLink], 'unava_link');
  3237. return;
  3238. }
  3239. });
  3240. /////////////////////end additional check for oversized links
  3241. return;
  3242. }
  3243. DisplayTheCheckedLinks([K2SLink], 'unava_link');
  3244. return;
  3245. },
  3246. onerror: function ()
  3247. {
  3248. DisplayTheCheckedLinks([K2SLink], 'unava_link');
  3249. return;
  3250. }
  3251. });
  3252. }
  3253. function fboomBulkCheck()
  3254. {
  3255. var arr = this.links[0].split("\r\n");
  3256. var i = arr.length;
  3257. c=0;
  3258. arrIDs=[];
  3259. while(i--)
  3260. {
  3261. id = arr[i].match(/\/file\/(\w+)/)[1];
  3262. fbalreadyexist=false;
  3263. for (j=0;j<arrIDs.length;j++)
  3264. {
  3265. if (arrIDs[j]==id)
  3266. {
  3267. fbalreadyexist=true;
  3268. break;
  3269. }
  3270. }
  3271. if (fbalreadyexist) continue;
  3272. arrIDs.push(id);
  3273. c++;
  3274. setTimeout(fboomRequest,c*500,arr[i]);
  3275. }
  3276. }
  3277. function fboomRequest(FBoomLink)
  3278. {
  3279. var id = FBoomLink.match(/\/file\/(\w+)/)[1];
  3280. FBoomLink2='http://fboom.me/file/'+id;
  3281. GM_xmlhttpRequest(
  3282. {
  3283. method: 'GET',
  3284. url: FBoomLink,
  3285. headers: {
  3286. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  3287. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  3288. 'Referer': ''
  3289. },
  3290. onload: function (result)
  3291. {
  3292. var res = result.responseText;
  3293. if (res.match('no longer available|class="error-v1-title">404<|File not found or deleted|no longer available'))
  3294. {
  3295. DisplayTheCheckedLinks([FBoomLink], 'adead_link');
  3296. return;
  3297. }
  3298. if (res.match('method="post">Displaying'))
  3299. {
  3300. DisplayTheCheckedLinks([FBoomLink], 'unava_link');
  3301. return;
  3302. }
  3303. if (res.match('only for premium members'))
  3304. {
  3305. DisplayTheCheckedLinks([FBoomLink], 'prem_link');
  3306. return;
  3307. }
  3308. if (res.match('id="download-free" href="#"'))
  3309. {
  3310. slow_id=new RegExp('<a id="download-free" href="#" class="free-button btn-u" data-slow-id="(\\w+)">');
  3311. slID=slow_id.exec(res)[1];
  3312. GM_xmlhttpRequest(
  3313. {
  3314. method: 'POST',
  3315. url: FBoomLink2,
  3316. headers: {
  3317. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  3318. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  3319. 'Content-Type': 'application/x-www-form-urlencoded',
  3320. 'Referer': FBoomLink
  3321. },
  3322. data: 'slow_id='+slID,
  3323. onload: function (result)
  3324. {
  3325. var newres = result.responseText;
  3326. newoversizedtest=new RegExp("Free user can't download large files.|Downloading is not possible");
  3327. if (newoversizedtest.test(newres))
  3328. {
  3329. DisplayTheCheckedLinks([FBoomLink], 'prem_link');
  3330. return;
  3331. }
  3332. else
  3333. {
  3334. DisplayTheCheckedLinks([FBoomLink], 'alive_link');
  3335. return;
  3336. }
  3337. DisplayTheCheckedLinks([FBoomLink], 'unava_link');
  3338. return;
  3339. }
  3340. });
  3341. /////////////////////end additional check for oversized links
  3342. return;
  3343. }
  3344. DisplayTheCheckedLinks([FBoomLink], 'unava_link');
  3345. return;
  3346. },
  3347. onerror: function ()
  3348. {
  3349. DisplayTheCheckedLinks([FBoomLink], 'unava_link');
  3350. return;
  3351. }
  3352. });
  3353. }
  3354. function dl4free_1fichier_BulkCheck()
  3355. {
  3356. var arr = this.links[0].split("\r\n");
  3357. var i = arr.length;
  3358. while(i--)
  3359. {
  3360. CorrectRE = new RegExp('(https?):\\/\\/(?:www\\.)?(\\w{5,15})\\.1fichier\\.com');
  3361. arr[i]=arr[i].replace(CorrectRE, '$1://1fichier.com/?$2');
  3362. gethead_dl4free_1fichier(arr[i]);
  3363. }
  3364. }
  3365. function gethead_dl4free_1fichier(link)
  3366. {
  3367. var id = link.match(/(?:1fichier|dl4free)\.com(?:\/)?\?(\w{6,})/)[1];
  3368. GM_xmlhttpRequest(
  3369. {
  3370. method: 'HEAD',
  3371. url: link,
  3372. headers: {
  3373. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  3374. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  3375. 'Referer': ''
  3376. },
  3377. onload: function (result)
  3378. {
  3379. if (result.responseHeaders.match(/Content-Disposition: attachment; filename=/))//direct download
  3380. {
  3381. DisplayTheCheckedLinks([id], 'alive_link');
  3382. return;
  3383. }
  3384. else
  3385. {
  3386. getlink_dl4free_1fichier(link);
  3387. }
  3388. return;
  3389. },
  3390. onerror: function ()
  3391. {
  3392. DisplayTheCheckedLinks([id], 'unava_link');
  3393. }
  3394. });
  3395. }
  3396. function getlink_dl4free_1fichier(link)
  3397. {
  3398. var id = link.match(/(?:1fichier|dl4free)\.com(?:\/)?\?(\w{6,})/)[1];
  3399. GM_xmlhttpRequest(
  3400. {
  3401. method: 'GET',
  3402. url: link,
  3403. headers: {
  3404. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  3405. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  3406. 'Referer': ''
  3407. },
  3408. onload: function (result)
  3409. {
  3410. var res = result.responseText;
  3411. 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>');
  3412. if (deadRegex.test(res))
  3413. {
  3414. DisplayTheCheckedLinks([id], 'adead_link');
  3415. return;
  3416. }
  3417. premiumRegex=new RegExp('only for premium users');
  3418. if (premiumRegex.test(res))
  3419. {
  3420. DisplayTheCheckedLinks([id], 'prem_link');
  3421. return;
  3422. }
  3423. 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="');
  3424. if (liveRegex.test(res))
  3425. {
  3426. DisplayTheCheckedLinks([id], 'alive_link');
  3427. return;
  3428. }
  3429. DisplayTheCheckedLinks([id], 'unava_link');
  3430. },
  3431. onerror: function ()
  3432. {
  3433. DisplayTheCheckedLinks([id], 'unava_link');
  3434. }
  3435. });
  3436. }
  3437. function depositfilesBulkCheck()
  3438. {
  3439. var arr = this.links[0].split("\r\n");
  3440. var i = arr.length;
  3441. var seqno = Math.floor(Math.random()*1000000000);
  3442. while(i--)
  3443. {
  3444. DFpostRequest(arr[i]);
  3445. }
  3446. }
  3447. function DFpostRequest(DFLink)
  3448. {
  3449. DFLink=DFLink.replace('depositfiles.lt/','depositfiles.com/');
  3450. DFLink=DFLink.replace('depositfiles.org/','depositfiles.com/');
  3451. DFLink=DFLink.replace('dfiles.ru/','depositfiles.com/');
  3452. DFLink=DFLink.replace('dfiles.eu/','depositfiles.com/');
  3453. DFLink=DFLink.replace('depositfiles.com/en/','depositfiles.com/');
  3454. var id = DFLink.match(/depositfiles\.com\/files\/(\w+)/)[1];
  3455. GM_xmlhttpRequest(
  3456. {
  3457. method: "GET",
  3458. url: "http://depositfiles.com/api/get_download_info.php?id=" + id + "&format=json",
  3459. headers: {
  3460. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3461. 'Content-Type': 'application/x-www-form-urlencoded',
  3462. 'Referer': ""
  3463. },
  3464. onload: function (result)
  3465. {
  3466. var res = result.responseText;
  3467. if (res.match('(?:no_file|file_ban)'))
  3468. {
  3469. DisplayTheCheckedLinks([id], 'adead_link');
  3470. return;
  3471. }
  3472. if (res.match('"download_li(?:nk|mit)|password_check|file_storage"'))
  3473. {
  3474. DisplayTheCheckedLinks([id], 'alive_link');
  3475. return;
  3476. }
  3477. DisplayTheCheckedLinks([id], 'unava_link');
  3478. }
  3479. });
  3480. }
  3481.  
  3482. function megaBulkCheck()
  3483. {
  3484. var arr = this.links[0].split("\r\n");
  3485. var i = arr.length;
  3486. var seqno = Math.floor(Math.random()*1000000000);
  3487. while(i--)
  3488. {
  3489. postRequest(arr[i]);
  3490. }
  3491. function postRequest(megaLink)
  3492. {
  3493. megaLink=megaLink.replace('mega.nz/','mega.co.nz/');
  3494. var id = megaLink.match(/mega\.co\.nz\/#!(\w+)(?:!\w+)?/)[1];
  3495. GM_xmlhttpRequest(
  3496. {
  3497. method: "POST",
  3498. url: 'https://g.api.mega.co.nz/cs?id=' + seqno++,
  3499. data: '[{"a":"g","p":"' + id + '","ssl": "1"}]',
  3500. headers: {
  3501. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3502. 'Content-Type': 'application/xml',
  3503. 'Referer': "https://mega.co.nz/"
  3504. },
  3505. onload: function (result)
  3506. {
  3507. var res = $.parseJSON(result.responseText.match(/\[(.+?)\]/)[1]);
  3508. if ((typeof res == "number" && (res == -9 || res == -16 || res == -6)) || res.d)
  3509. {
  3510.  
  3511. DisplayTheCheckedLinks([id], 'adead_link');
  3512. }
  3513. if (res.at)
  3514. {
  3515. DisplayTheCheckedLinks([id], 'alive_link');
  3516. }
  3517. if (res.e == "ETEMPUNAVAIL")
  3518. {
  3519. DisplayTheCheckedLinks([id], 'unava_link');
  3520. }
  3521. }
  3522. });
  3523. }
  3524.  
  3525. }
  3526.  
  3527. function oboomBulk() {
  3528. var a = [], b = [], c = [];
  3529. var array = this.links;
  3530.  
  3531. GM_xmlhttpRequest({
  3532. method: 'GET',
  3533. url: 'https://www.oboom.com/1/guestsession',
  3534. headers: {
  3535. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  3536. 'Content-type': 'application/x-www-form-urlencoded',
  3537. 'Referer': 'https://www.oboom.com',
  3538. 'X-Requested-With': 'XMLHttpRequest'
  3539. },
  3540. onload: function(result) {
  3541. var blockIdx = array.length;
  3542. var token = JSON.parse(result.responseText)[1];
  3543. while (blockIdx--) {
  3544. startCheck(array[blockIdx].split('\r\n'), token);
  3545. }
  3546. }
  3547. });
  3548.  
  3549. function startCheck(links, token) {
  3550. GM_xmlhttpRequest({
  3551. method: 'POST',
  3552. url: "https://api.oboom.com/1/info",
  3553. headers: {
  3554. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  3555. 'Content-type': 'application/x-www-form-urlencoded',
  3556. 'Referer': 'https://www.oboom.com/',
  3557. 'X-Requested-With': 'XMLHttpRequest'
  3558. },
  3559. data: "token=" + token + "&items=" + links.join(","),
  3560. onload: function(result) {
  3561. var res = JSON.parse(result.responseText)[1];
  3562. var i = res.length, s;
  3563.  
  3564. while (i--) {
  3565. s = res[i].state;
  3566. if (s == 'online') a.push(res[i].id);
  3567. 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);
  3568. else c.push(res[i].id);
  3569. }
  3570.  
  3571. if (a.length > 0) DisplayTheCheckedLinks(a, 'alive_link');
  3572. if (b.length > 0) DisplayTheCheckedLinks(b, 'adead_link');
  3573. if (c.length > 0) DisplayTheCheckedLinks(c, 'unava_link');
  3574. }
  3575. });
  3576. }
  3577. }
  3578. function linksaveBulkCheck()
  3579. {
  3580. var arr = this.links[0].split("\r\n");
  3581. var i = arr.length;
  3582. while(i--)
  3583. {
  3584. postRequest(arr[i]);
  3585. }
  3586. function postRequest(lsLink)
  3587. {
  3588. GM_xmlhttpRequest(
  3589. {
  3590. method: "GET",
  3591. url: lsLink + '-t.jpg',
  3592. headers: {
  3593. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3594. 'Accept': 'text/xml',
  3595. 'Referer': ""
  3596. },
  3597. onload: function (result)
  3598. {
  3599. var imgLen = result.responseHeaders.match(/Content-Length: (\d+)/)[1];
  3600. if (imgLen == 965) //online
  3601. {
  3602. DisplayTheCheckedLinks([lsLink], 'alive_link');
  3603. }
  3604.  
  3605. if (imgLen == 972) //offline
  3606. {
  3607. DisplayTheCheckedLinks([lsLink], 'adead_link');
  3608. }
  3609. if (imgLen == 978) //unava
  3610. {
  3611. DisplayTheCheckedLinks([lsLink], 'unava_link');
  3612. }
  3613. }
  3614. });
  3615. }
  3616.  
  3617. }
  3618. function linkcryptBulkCheck()
  3619. {
  3620. var arr = this.links[0].split("\r\n");
  3621. var i = arr.length;
  3622. while(i--)
  3623. {
  3624. postRequest(arr[i]);
  3625. }
  3626. function postRequest(lcLink)
  3627. {
  3628. GM_xmlhttpRequest(
  3629. {
  3630. method: "GET",
  3631. url: 'http://linkcrypt.ws/api.html?api=status_V1&folderKey=' + lcLink.match(/dir\/(\w+)/)[1],
  3632. headers: {
  3633. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3634. 'Accept': 'text/xml',
  3635. 'Referer': ""
  3636. },
  3637. onload: function (result)
  3638. {
  3639. var res = result.responseText;
  3640. if (res.match(/<errorCode>1101|folderStatus>[23]/)) //Offline status
  3641. {
  3642. DisplayTheCheckedLinks([lcLink], 'adead_link');
  3643. return;
  3644. }
  3645. if (res.match(/folderStatus>1/)) //Online status
  3646. {
  3647. DisplayTheCheckedLinks([lcLink], 'alive_link');
  3648. }
  3649. else
  3650. {
  3651. DisplayTheCheckedLinks([lcLink], 'unava_link');
  3652. }
  3653. }
  3654. });
  3655. }
  3656. }
  3657.  
  3658. function megashareBulkCheck()
  3659. {
  3660. var arr = this.links[0].split("\r\n");
  3661. var i = arr.length;
  3662. while(i--)
  3663. {
  3664. postRequest(arr[i]);
  3665. }
  3666. function postRequest(msLink)
  3667. {
  3668. GM_xmlhttpRequest(
  3669. {
  3670. method: "GET",
  3671. url: msLink,
  3672. headers: {
  3673. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3674. 'Content-Type': 'application/x-www-form-urlencoded',
  3675. 'Referer': ""
  3676. },
  3677. onload: function (result)
  3678. {
  3679. var prZVal = result.responseText.match(/name="(\d+prZVal)" value="(\d+)">/);
  3680. var btn3Name = result.responseText.match(/src="images\/dwn-btn3\.gif" name="(.+?)"/);
  3681. if ((prZVal == null) || (btn3Name == null))
  3682. {
  3683. return;
  3684. }
  3685. GM_xmlhttpRequest(
  3686. {
  3687. method: "POST",
  3688. url: msLink,
  3689. headers: {
  3690. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3691. 'Content-Type': 'application/x-www-form-urlencoded',
  3692. 'Referer': ""
  3693. },
  3694. data: prZVal[1] + "=" + prZVal[2] + '&' + btn3Name[1] + '.x=1&' + btn3Name[1] + '.y=1',
  3695. onload: function (result)
  3696. {
  3697. var res = result.responseText;
  3698. if (res.match(/<div id="err">/))
  3699. {
  3700. DisplayTheCheckedLinks([msLink.match(/\.com(\/\d+)/)[1]], 'adead_link');
  3701. }
  3702. else
  3703. {
  3704. DisplayTheCheckedLinks([msLink.match(/\.com(\/\d+)/)[1]], 'alive_link');
  3705. }
  3706. }
  3707. });
  3708. }
  3709. });
  3710. }
  3711. }
  3712. function ncryptBulkCheck()
  3713. {
  3714. var arr = this.links[0].split("\r\n");
  3715. var i = arr.length;
  3716. while(i--)
  3717. {
  3718. postRequest(arr[i]);
  3719. }
  3720. function postRequest(ncryptLink)
  3721. {
  3722. GM_xmlhttpRequest(
  3723. {
  3724. method: "POST",
  3725. url: 'http://ncrypt.in/api_status.php',
  3726. headers: {
  3727. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3728. 'Content-Type': 'application/x-www-form-urlencoded',
  3729. 'Referer': ""
  3730. },
  3731. data: 'link=' + encodeURI(ncryptLink),
  3732. onload: function (result)
  3733. {
  3734. var foldStatus = result.responseText.match(/(?:offline|online);/);
  3735. switch(foldStatus + ""){
  3736. case "offline;": DisplayTheCheckedLinks([ncryptLink], 'adead_link'); break;
  3737. case "online;": DisplayTheCheckedLinks([ncryptLink], 'alive_link'); break;
  3738. default: DisplayTheCheckedLinks([ncryptLink], 'unava_link');
  3739. }
  3740. }
  3741. });
  3742. }
  3743. }
  3744. function hellshareBulkCheck()
  3745. {
  3746. var links = this.links;
  3747. GM_xmlhttpRequest(
  3748. {
  3749. method: "GET",
  3750. url: 'http://www.hellshare.com',
  3751. headers: {
  3752. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3753. 'Accept': 'text/xml',
  3754. 'Referer': ""
  3755. },
  3756. onload: function (result)
  3757. {
  3758. var domain = result.responseText.match(/param_rau = "www\.hellshare\.(\w+)"/)[1];
  3759.  
  3760. var loc = 'check=Zkontrolovat+dostupnost+soubor%C5%AF&links=';
  3761. if (domain == 'sk')
  3762. loc = 'check=Skontrolova%C5%A5&links=';
  3763. if (domain == 'com')
  3764. loc = 'check=Check+availability&links=';
  3765. if (domain == 'hu')
  3766. loc = 'check=Kontrol%C3%A1lj&links=';
  3767. if (domain == 'pl')
  3768. loc = 'check=Sprawd%C5%BC+dost%C4%99pno%C5%9B%C4%87+plik%C3%B3w&links=';
  3769.  
  3770. genBulkCheck.call({ links: links,
  3771. apiUrl: 'http://www.hellshare.' + domain + '/linkchecker?do=linkChecker-linkcheckerform-submit',
  3772. postData: loc,
  3773. resLinkRegex: /hellshare\.(?:cz|com|sk|hu|pl)\/(?:[\w-\.]+\/|)([\w-\.]+\/\d{5,})/,
  3774. 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,
  3775. resDeadRegex: /<span style="color:gray">.*?<\/span> - <strong>/g,
  3776. resUnavaRegex: null
  3777. });
  3778. }
  3779. });
  3780. }
  3781. /**
  3782. * Displays check result
  3783. * @param {Array} Array of links or link fragments.
  3784. * @param {String} Check result status -> ['alive_link'|'adead_link'|'unava_link']
  3785. */
  3786. function DisplayTheCheckedLinks(links, resultStatus)
  3787. {
  3788. //(a[href*=link_1], a[href*=link_2], ..., a[href*=link_n])
  3789. var $links = $('a[href*="' + links.join('"], a[href*="') + '"]');
  3790. if (Do_not_linkify_DL_links)
  3791. { //TODO into separate jQuery function
  3792. $links.replaceWith(function(){
  3793. return '<span href="' + this.href + '">' + $(this).text() + '</span>';
  3794. });
  3795. $links = $('span[href*="' + links.join('"], span[href*="') + '"]');
  3796. }
  3797. $links.removeClass().addClass(resultStatus);
  3798. $links.each(function() {
  3799. this.href = Ref_anonymize_service + $(this).attr("href");
  3800. });
  3801. switch(resultStatus)
  3802. {
  3803. case "alive_link": cLinksAlive += $links.length;
  3804. if (Display_tooltip_info) $links.mouseover(displayTooltipInfo);
  3805. break;
  3806. case "adead_link": cLinksDead += $links.length;
  3807. if (Display_tooltip_info) $links.mouseover(displayTooltipError);
  3808. break;
  3809. case "prem_link": cLinksprem += $links.length;
  3810. if (Display_tooltip_info) $links.mouseover(displayTooltipError);
  3811. break;
  3812. case "unava_link": cLinksUnava += $links.length; break;
  3813. default:
  3814. }
  3815. cLinksProcessed += $links.length;
  3816. }
  3817. }
  3818. // starts bulkchecking
  3819. //
  3820. // params
  3821. // filterId [string] restricts link detection with passed id attribute
  3822. function startBulkCheck(filterId)
  3823. {
  3824. var cHosts = bulkHosts.length;
  3825. if (cHosts == 0) //no filehostings selected
  3826. return;
  3827. // STEP 1 linkify the links
  3828. var linkifyRegex = '';
  3829. var hostIdx = cHosts;
  3830. while(hostIdx--)
  3831. {
  3832. linkifyRegex += bulkHosts[hostIdx].linkRegex + "|";
  3833. }
  3834. linkifyRegex = linkifyRegex.replace(/\|$/, '');
  3835. linkify(linkifyRegex);
  3836. //
  3837. //STEP 2 detect link objects
  3838. var xpathAll = '';
  3839. var hostIdx = cHosts;
  3840. while(hostIdx--)
  3841. {
  3842. xpathAll += bulkHosts[hostIdx].xpath + "|";
  3843. }
  3844. xpathAll = xpathAll.replace(/\]\|\/\/a\[/g, " or ");
  3845. xpathAll = xpathAll.replace(/\]\|/, ')]');
  3846. if (filterId != null) //insert id restriction in the xpath
  3847. {
  3848. xpathAll = xpathAll.replace(/\[/, "[@class='" + filterId + "' and (");
  3849. }
  3850. else
  3851. {
  3852. xpathAll = xpathAll.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  3853. }
  3854. var links = document.evaluate(xpathAll, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  3855. if (filterId == null)
  3856. {
  3857. cLinksTotal += links.snapshotLength;
  3858. }
  3859. //
  3860. //STEP 3 bind links with hostings
  3861. var linkIdx = links.snapshotLength;
  3862. var href = null;
  3863. if (linkIdx == 0) // no links found
  3864. return;
  3865. var name;
  3866. while (linkIdx--)
  3867. {
  3868. href = links.snapshotItem(linkIdx).href;
  3869. try // DO NOT REMOVE, filters crap that went through xpath detection
  3870. {
  3871. name = gimmeHostName(href);
  3872. if (href.match(bulkHostNames[name].linkRegexObject) != null)
  3873. bulkHostNames[name].links.push(href);
  3874. }
  3875. catch(e)
  3876. {
  3877.  
  3878. }
  3879. }
  3880. //
  3881. //STEP 4 process the links for each filehosting
  3882. var hostIdx = cHosts;
  3883. var host;
  3884. var m,n;
  3885. var arr;
  3886. while (hostIdx--)
  3887. {
  3888. host = bulkHosts[hostIdx];
  3889. arr = host.links;
  3890. if (arr.length == 0) //no links for this hosting, skip
  3891. {
  3892. continue;
  3893. }
  3894. //links match corrections
  3895. if (host.corrMatch != null)
  3896. {
  3897. var idx = arr.length;
  3898. while (idx--)
  3899. {
  3900. arr[idx] = arr[idx].match(host.corrMatch)[1];
  3901. }
  3902. }
  3903. //links replace corrections
  3904. if ((host.corrReplWhat != null) && (host.corrReplWith != null))
  3905. {
  3906. var idx = arr.length;
  3907. while (idx--)
  3908. {
  3909. arr[idx] = arr[idx].replace(host.corrReplWhat, host.corrReplWith);
  3910. }
  3911. }
  3912. m = arr.length;
  3913. n = host.blockSize;
  3914. if (m > n)
  3915. {
  3916. //insert block separators (RAND_STRING) into the array
  3917. for(var i = n; i < m; i += n + 1)
  3918. {
  3919. arr.splice(i, 0, RAND_STRING);
  3920. }
  3921. }
  3922.  
  3923. host.func.call({ links: arr.join(host.splitSeparator).split(RAND_STRING),
  3924. apiUrl: host.apiUrl,
  3925. postData: host.postData,
  3926. resLinkRegex: host.resLinkRegex,
  3927. resLiveRegex: host.resLiveRegex,
  3928. resDeadRegex: host.resDeadRegex,
  3929. resUnavaRegex: host.resUnavaRegex
  3930. });
  3931. //clean up
  3932. arr.length = 0;
  3933. }
  3934. //
  3935.  
  3936. function gimmeHostName(link)
  3937. {
  3938. return link.replace(/https?:\/\/.*?http(s)?:\/\//, "http$1://").match(/https?:\/\/(?:www\.|[\w\.])*?([\w-]+)\.(?:co\.uk|co\.nz|\w+)\//)[1];
  3939. }
  3940. }
  3941. function checkLinks(filterId)
  3942. {
  3943. startBulkCheck(filterId);
  3944. start(filterId);
  3945. }
  3946.  
  3947. /**
  3948. * Initialises progress box including event binding and CSS
  3949. */
  3950. function initProgressBox()
  3951. {
  3952. if ($("#warlc-progressbox").length > 0)
  3953. return;
  3954. //progressbox css change size and color of progress box
  3955. GM_addStyle("#warlc-progressbox {position:fixed; background:DimGray;" + Progress_box_background_color +
  3956. "; opacity:" + (Progress_box_opacity / 100) +
  3957. "; bottom:" + Progress_box_pos_bottom +
  3958. "px; right:" + Progress_box_pos_right +
  3959. "px; padding:5px; font-size:20px; font-weight:bold; cursor:default;}\
  3960. \
  3961. .warlc-progressbar {text-align:center; color: DimGray; height:2px; margin-bottom:2px;}\
  3962. \
  3963. .warlc-progressitem {}\
  3964. \
  3965. .alive {color:#00FF7F; " + Live_links_color +
  3966. "; background:transparent url(" + alive_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;} .dead {color:" + Dead_links_color +
  3967. "; background:transparent url(" + adead_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;} .unava {color: " + Temp_unavailable_links_color +
  3968. "; background:transparent url(" + unava_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;} .processing {color:Black; " + Container_links_color +
  3969. "; background:transparent url(" + processing_link_gif + ") no-repeat scroll 100% 50%;padding-right:15px;} .prem {color:" + Premium_links_color +
  3970. "; background:transparent url(" + prem_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;}"
  3971. );
  3972. //
  3973. $('body').append(' <div id="warlc-progressbox">\
  3974. <div class="warlc-progressbar"></div>\
  3975. <span class="warlc-progressitem alive"></span> - \
  3976. <span class="warlc-progressitem dead"></span> - \
  3977. <span class="warlc-progressitem unava"></span> - \
  3978. <span class="warlc-progressitem prem"></span> - \
  3979. <span class="warlc-progressitem processing"></span>\
  3980. </div>');
  3981. $('#warlc-progressbox').hide().click(function(){
  3982. clearInterval(intervalId);
  3983. $(this).hide();
  3984. return false;
  3985. });
  3986. $(".warlc-progressbar").progressbar({complete: function(){
  3987. $(this).fadeOut();
  3988. clearInterval(intervalId); //stop refreshing the stats
  3989. }
  3990. })
  3991. .one('progressbarchange', function(){$('#warlc-progressbox').show();});
  3992. }
  3993. /**
  3994. * Updates progress data in progress box
  3995. */
  3996. function updateProgress()
  3997. {
  3998. $("#warlc-progressbox").attr('aria-valuenow', Math.round(((100 / cLinksTotal) * cLinksProcessed)));
  3999. if (cLinksTotal) // some links were detected on page
  4000. {
  4001. var percProgress = Math.round(((100 / cLinksTotal) * cLinksProcessed));
  4002. var $progressItems = $('#warlc-progressbox > .warlc-progressitem');
  4003. $(".warlc-progressbar").progressbar('option', 'value', percProgress);
  4004. if ((cLinksTotal - cLinksProcessed) == 0)
  4005. {
  4006. $progressItems.first().text(cLinksAlive)
  4007. .next().text(cLinksDead)
  4008. .next().text(cLinksUnava)
  4009. .next().text(cLinksprem)
  4010. .next().remove();
  4011. $('#warlc-progressbox').html($('#warlc-progressbox').html().substr(0,$('#warlc-progressbox').html().lastIndexOf(">")+1));
  4012. $('#warlc-progressbox div:first-child').remove();
  4013. }
  4014. else
  4015. {
  4016. $progressItems.first().text(cLinksAlive)
  4017. .next().text(cLinksDead)
  4018. .next().text(cLinksUnava)
  4019. .next().text(cLinksprem)
  4020. .next().text(cLinksTotal - cLinksProcessed);
  4021. }
  4022. }
  4023. }
  4024.  
  4025. function check_all_links()
  4026. {
  4027. add_WARLC_style();
  4028.  
  4029. if (Show_progress_stats)
  4030. {
  4031. initProgressBox();
  4032. intervalId = setInterval(function(){updateProgress();}, Progress_box_refresh_rate);
  4033. }
  4034.  
  4035. startBulkCheck(null);
  4036. start(null);
  4037.  
  4038. if (!containers_processed)
  4039. {
  4040. processContainers();
  4041. }
  4042. }
  4043.  
  4044. //Copies all found dead links to clipboard - right now for Scriptish only
  4045. function copy_dead_to_clipboard()
  4046. {
  4047. initClipBoardTools();
  4048.  
  4049. var deadlinksxpath = "//.[@class='adead_link']";
  4050.  
  4051. var foundlinks = document.evaluate(deadlinksxpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4052. var foundlinkstext = '';
  4053.  
  4054. var foundlinkIdx = foundlinks.snapshotLength;
  4055.  
  4056. while(foundlinkIdx--)
  4057. {
  4058. if (foundlinks.snapshotItem(foundlinkIdx).innerHTML != ' x')
  4059. foundlinkstext += foundlinks.snapshotItem(foundlinkIdx).innerHTML.replace(/\[\/hide:\w+\]/,"") + '\n';
  4060. }
  4061.  
  4062. unsafeWindow.copyToClipboard(foundlinkstext);
  4063. }
  4064.  
  4065. function toggle_autocheck()
  4066. {
  4067. var currentState = GM_getValue("Autocheck", false);
  4068. GM_setValue("Autocheck", !currentState);
  4069.  
  4070. if (currentState == true)
  4071. {
  4072. sendMessage('Autocheck disabled', 'red');
  4073. }
  4074. else
  4075. {
  4076. sendMessage('Autocheck enabled', 'SpringGreen');
  4077. }
  4078. }
  4079. function toggle_Enable_Anonymizer()
  4080. {
  4081. var currentState = GM_getValue("Enable_Anonymizer", false);
  4082. GM_setValue("Enable_Anonymizer", !currentState);
  4083.  
  4084. if (currentState == true)
  4085. {
  4086. GM_setValue("Ref_anonymize_service", "");
  4087. sendMessage('Anonymizer Disabled', 'red');
  4088. }
  4089. else
  4090. {
  4091. GM_setValue("Ref_anonymize_service", "http://hiderefer.com/?");
  4092. sendMessage('Anonymizer Enabled', 'SpringGreen');
  4093. }
  4094. }
  4095.  
  4096. function KeyDownHandler(event)
  4097. {
  4098. var kcode = (event.keyCode) ? event.keyCode : event.which;
  4099. if (event.ctrlKey && event.altKey)
  4100. {
  4101. switch(kcode)
  4102. {
  4103. case 65 : check_all_links(); break;
  4104. case 67 : configuration(); break;
  4105. case 68 : copy_dead_to_clipboard(); break;
  4106. case 87 : toggle_autocheck(); break;
  4107. case 90 : toggle_Enable_Anonymizer(); break;
  4108. }
  4109. }
  4110. }
  4111.  
  4112. //
  4113. //
  4114. // SCRIPT EXECUTION START POINT
  4115. //
  4116. //
  4117. // Safari specific GM_getResourceText override
  4118. if (navigator.userAgent.indexOf('Safari') != -1 && navigator.userAgent.indexOf('Chrome') == -1)
  4119. {
  4120. GM_getResourceText = function(res) {
  4121. var $cssText = GM_getValue("jquery_css", "");
  4122. if ($cssText == "")
  4123. {
  4124. GM_xmlhttpRequest(
  4125. {
  4126. method: 'GET',
  4127. url: 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css',
  4128. onload: function (result)
  4129. {
  4130. GM_setValue("jquery_css", result.responseText);
  4131. window.location.reload();
  4132. }
  4133. });
  4134. }
  4135. else
  4136. {
  4137. return $cssText;
  4138. }
  4139. }
  4140. }
  4141. var jQueryUICSS = GM_getResourceText("jQueryUICSS");
  4142. GM_addStyle(jQueryUICSS);
  4143. //init the stuff
  4144. setVariables();
  4145. initBulkCheck();
  4146. //init info boxes
  4147. messageBox.style.position = 'fixed';
  4148. messageBox.style.top = '20px';
  4149. messageBox.style.left = '10px';
  4150. messageBox.style.opacity = '0.85';
  4151. messageBox.style.background = 'DimGray';
  4152. messageBox.style.fontSize = '36px';
  4153. document.body.appendChild(messageBox);
  4154.  
  4155. //register GM menu commands & keyboard shortcut event handler
  4156. if (Keyboard_functions)
  4157. {
  4158. $(document).keydown(KeyDownHandler);
  4159. GM_registerMenuCommand("[W.A.R. Links Checker] Configuration (" + first_key_keycodename + "+" + second_key_keycodename + "+" + String.fromCharCode(CONFIGURATION_KEYCODE) + ")", configuration);
  4160. 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);
  4161. }
  4162. else
  4163. {
  4164. GM_registerMenuCommand("[W.A.R. Links Checker] Configuration", configuration);
  4165. GM_registerMenuCommand("[W.A.R. Links Checker] Check The Links In This Page", check_all_links);
  4166. }
  4167.  
  4168. //start linkchecking
  4169. if (Autocheck)
  4170. {
  4171. $(document).ready(check_all_links);
  4172. }
  4173.  
  4174. //
  4175. //
  4176. // SCRIPT EXECUTION END POINT
  4177. //
  4178. //
  4179.  
  4180. //shows configuration box
  4181. function configuration()
  4182. {
  4183.  
  4184. //prevent multiple creating of config window
  4185. if ($("#hideshow").length)
  4186. {
  4187. $("#hideshow").show();
  4188. return;
  4189. }
  4190.  
  4191. var configcss = '\
  4192. .popup_block .popup fieldset{\
  4193. padding: 1%;\
  4194. border-style: solid;\
  4195. border-width: 1px;\
  4196. border-color: gray;\
  4197. margin-bottom: 1px;\
  4198. }\
  4199. #h3hideshowtitle{\
  4200. font-size: 2em;\
  4201. }\
  4202. #h3hideshow{\
  4203. font-size: 1.5em;\
  4204. }\
  4205. #imghideshow {\
  4206. border: none;\
  4207. }\
  4208. #plusimage{\
  4209. display:inline;\
  4210. }\
  4211. #hideshow {\
  4212. position: fixed;\
  4213. width: 100%;\
  4214. height: 100%;\
  4215. top: 0;\
  4216. left: 0;\
  4217. font-size:12px;\
  4218. z-index:2147483645;\
  4219. text-align:left;\
  4220. }\
  4221. #fade {\
  4222. background: #000;\
  4223. position: fixed;\
  4224. width: 100%;\
  4225. height: 100%;\
  4226. opacity: .80;\
  4227. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";\
  4228. left: 0;\
  4229. z-index: 10;\
  4230. }\
  4231. .popup_block {\
  4232. font-family:verdana;\
  4233. color:black;\
  4234. background: #ddd;\
  4235. padding: 10px 20px;\
  4236. border: 2px solid DarkOrange;\
  4237. float: left;\
  4238. width: 700px;\
  4239. position: absolute;\
  4240. top: 7%;\
  4241. left: 50%;\
  4242. bottom: 7%;\
  4243. margin: 0 0 0 -350px;\
  4244. -moz-border-radius:10px;\
  4245. z-index: 100;\
  4246. \
  4247. }\
  4248. .popup_block .popup {\
  4249. float: left;\
  4250. width: 100%;\
  4251. background: #fff;\
  4252. margin: 10px 0;\
  4253. padding: 0px 0 0px;\
  4254. border-left: 1px solid #bbb;\
  4255. border-top: 1px solid #bbb;\
  4256. border-right: 1px solid #bbb;\
  4257. }\
  4258. #h3hideshow{\
  4259. margin: 1px 0 0px;\
  4260. padding: 1px 10px;\
  4261. border-bottom: 1px solid #bbb;\
  4262. font-size: 1.5em;\
  4263. font-weight: normal;\
  4264. cursor:pointer;\
  4265. background:#DDDDDD none repeat scroll 0 0;\
  4266. }\
  4267. #h3hideshow:hover{\
  4268. background:#C0BEBE none repeat scroll 0 0;\
  4269. }\
  4270. #h3hideshowtitle{\
  4271. margin: 2px 0 0px;\
  4272. padding: 7px 10px;\
  4273. border-bottom: 1px solid #bbb;\
  4274. font-size: 1.5em;\
  4275. font-weight: normal;\
  4276. }\
  4277. .popup_block .popup a {\
  4278. color:DarkSkyBlue;\
  4279. text-decoration:none;\
  4280. }\
  4281. .popup p {\
  4282. padding: 1px 10px;\
  4283. margin: 0px 0;\
  4284. -x-system-font:none;\
  4285. font-family:verdana,geneva,lucida,"lucida grande",arial,helvetica,sans-serif;\
  4286. font-size:10pt;\
  4287. font-size-adjust:none;\
  4288. font-stretch:normal;\
  4289. font-style:normal;\
  4290. font-variant:normal;\
  4291. font-weight:normal;\
  4292. line-height:normal;\
  4293. }\
  4294. #sites {\
  4295. padding: 1px 10px;\
  4296. margin: 0px 0;display:inline-block;width:16em;\
  4297. }\
  4298. #dev_ver {\
  4299. color: #00FF00;\
  4300. background: Black;\
  4301. text-align: right;\
  4302. }\
  4303. #sites_suspended {\
  4304. padding: 1px 10px;\
  4305. margin: 0px 0;display:inline-block;width:16em;\
  4306. text-decoration: line-through;\
  4307. }\
  4308. .popup img.cntrl {\
  4309. position: absolute;\
  4310. right: -15px;\
  4311. top: -15px;\
  4312. }\
  4313. #bulk {\
  4314. font-size:8pt;\
  4315. color:orange;\
  4316. padding: 1px 10px;\
  4317. margin: 0px 0;\
  4318. display:inline-block;\
  4319. width:100px;\
  4320. }\
  4321. #note {\
  4322. font-size:7pt;\
  4323. color:gray;\
  4324. padding: 1px 10px;\
  4325. margin: 0px 0;display:inline-block;\
  4326. min-width:100px;\
  4327. }\
  4328. #rednote {\
  4329. font-size:7pt;\
  4330. color:red;\
  4331. padding: 1px 10px;\
  4332. margin: 0px 0;display:inline-block;\
  4333. }\
  4334. #configinfo {\
  4335. font-size:8pt;\
  4336. color:gray;\
  4337. padding: 1px 10px;\
  4338. margin: 0px 0;display:inline-block;width:60em;\
  4339. }\
  4340. #refAnonymizer, #inputColorLive, #inputColorprem, #hostSearchBox2, #hostSearchBox, #inputColorDead, #inputColorTemp, #inputColorCont, #selectAllButton, #selectNoneButton, #invertButton, #selectAllButton2, #selectNoneButton2, #invertButton2 {\
  4341. color:black;\
  4342. border-style: solid;\
  4343. border-width: 1px;\
  4344. border-color: gray;\
  4345. }\
  4346. #h3hideshowcontent {\
  4347. min-height:220px;\
  4348. max-height:220px;\
  4349. overflow:auto;\
  4350. display: none;\
  4351. padding: 10px 10px;\
  4352. }\
  4353. #specinfo{\
  4354. font-size:14px;\
  4355. }\
  4356. .warlc-ui-tab {\
  4357. height:300px;\
  4358. overflow:auto;\
  4359. }\
  4360. #warlcsitelist2, #warlcsitelist1 {\
  4361. height:220px;\
  4362. border-top: 1px solid #ddd;\
  4363. padding-top: 5px;\
  4364. overflow:auto;\
  4365. }\
  4366. input:hover+label {\
  4367. background:#F1F77C;\
  4368. font-size:110%;\
  4369. }\
  4370. ';
  4371.  
  4372. GM_addStyle(configcss);
  4373.  
  4374. var customRulesRefHTML =
  4375. '\
  4376. <br>\
  4377. A custom rule consists of <b>commands</b>. A command must be on its own line and in this form:<br>\
  4378. <b>@keyword</b> <i>parameter</i>\
  4379. <br><br>\
  4380. 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. \
  4381. <br><br>\
  4382. 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.\
  4383. 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.\
  4384. 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.\
  4385. 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,\
  4386. but all commands until the next valid @customrule are ignored.<br><br>\
  4387. Available forms and types:\
  4388. <ul>\
  4389. <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.\
  4390. <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.\
  4391. <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.\
  4392. <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.\
  4393. </ul>\
  4394. Other available commands:<br>\
  4395. (Note: There can be more than 1 (up to 10) of these commands per rule. In that case, any of them will work.)\
  4396. <ul>\
  4397. <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.\
  4398. It can also specify multiple (up to 10) Top Level Domains (.com, .net etc.)<br>\
  4399. <ul>examples:<br>\
  4400. <li>good: <i>filehost.com/download/</i><br>\
  4401. <li>good: <i>download.filehost.net/?d=</i><br>\
  4402. <li>good: <i>filehost. com net co.uk /</i> - multiple TLDs (note the spaces before, between and after TLDs)<br>\
  4403. <li>ok: <i>filehost.com/</i> - works, but will also find links like filehost.com/login etc. Sometimes it\'s unavoidable though.<br>\
  4404. <li>bad: <i>d8523.filehost.com/</i> - d8523 probably is not constant<br>\
  4405. <li>bad: <i>filehost.com/3bfiq5d1</i> - 3bfiq5d1 probably is not constant<br>\
  4406. <li>bad: <i>filehost.com</i> - no slash<br>\
  4407. </ul>\
  4408. \
  4409. <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.\
  4410. 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 \
  4411. &lt;div&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;p&gt; even if there are new lines, tabulators etc.\
  4412. <li><b>@deadmatch</b> <i>pattern</i> - ignored for OBSOLETE, required for others. (For HEADERS some servers return 404 Error \
  4413. 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.)\
  4414. Two spaces again match any whitespace.\
  4415. <li><b>@unavamatch</b> <i>pattern</i> - optional, ignored for OBSOLETE and HEADERS. If found, the link is deemed temporarily unavailable.\
  4416. Two spaces again match any whitespace.\
  4417. <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. \
  4418. <li><b>@deadlink</b> <i>url</i> - optional. Example dead link.\
  4419. </ul>\
  4420. \
  4421. ';
  4422.  
  4423. //close image and css taken from = http://www.sohtanaka.com/web-design/examples/css-popup icon_close.png;
  4424. var configurationinnerHTML =
  4425. '<div id="fade"></div>\
  4426. <div class="popup_block">\
  4427. <div class="popup">\
  4428. <a href="#"><img id="imghideshow" title="Close" class="cntrl" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAfCAYAAAD0ma06AAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAY1SURBVHjapFZbbFRVFN0zd6Yz08dMoUNf9EGxUItJK62I4AOJEYiQoqE+0OgHCiqG+PgQozH6ofyIJiYEMRqNJpggHySlrRM+hCAtajAUaGgEi9BBSilMO0PnfWeOa597bjt9AEVvsubOPWefs/br7H0sQgj6P4/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ijDo2HI2+8/HB/8AVAHlQCfQCvz7chOIBTzS1FocNEx1VSNjHmFWS9jvC6mk11QWAbePhl4K/JWa1fbSypU2uSsI8ZgnEyG2wE9igb/Fa7f9MHGTQuANdbcGLzyFV2smiukr7Siw4WqGvZhlqznxhX7cTzmXayA234c33lqFcjneIqZfxX1TJr+t4dWtcUGXgusNgaPLwvQpgJjHcK8EPOAM6J7+vblEfK0fZ9RoqwAnpTnznsN/2jOkuvOUNvmpXmMTrrQuoJWGj36bAugAMhSo2cnsgUil2fb5LRHi1/jRGlJHc5zenaV7p0PyRB7XkR7vfa4IlZtT69fbVKywyafh8HODHN+WfhH4FnD2alN1B7AdOAcMeT29HfiZJ5oZ3sHrgAeBvcCANzBsHu7Ohe2/AwDnNnxcIIMIUgAAAABJRU5ErkJggg=="></img>&nbsp;W.A.R. Links Checker Customized Premium Link version Configuration</div>\
  4430. <div id="warlc-conf-tabs">\
  4431. <ul>\
  4432. <li><a href="#tabs-1">Filehostings</a></li>\
  4433. <li><a href="#tabs-2">Containers</a></li>\
  4434. <li><a href="#tabs-5">Custom rules</a></li>\
  4435. <li><a href="#tabs-3">Settings</a></li>\
  4436. <li><a href="#tabs-4">About</a></li>\
  4437. </ul>\
  4438. <div id="tabs-1" class="warlc-ui-tab">\
  4439. <div class="warlc-ui-buttonset">\
  4440. <input type="button" class="warlc-ui-select-all" value="Select All">\
  4441. <input type="button" class="warlc-ui-select-none" value="Select None">\
  4442. <input type="button" class="warlc-ui-select-invert" value="Invert">\
  4443. </div><br>\
  4444. <div>Search: <input type="textbox" id="hostSearchBox" value=""></div><br>\
  4445. <div id="warlcsitelist1"><span>Empty</span></div>\
  4446. </div>\
  4447. <div id="tabs-2" class="warlc-ui-tab">\
  4448. <div class="warlc-ui-buttonset">\
  4449. <input type="button" class="warlc-ui-select-all" value="Select All">\
  4450. <input type="button" class="warlc-ui-select-none" value="Select None">\
  4451. <input type="button" class="warlc-ui-select-invert" value="Invert">\
  4452. </div><br>\
  4453. <div>Search: <input type="textbox" id="hostSearchBox2" value=""></div><br>\
  4454. <div id="warlcsitelist2"><span>Empty</span></div>\
  4455. </div>\
  4456. <div id="tabs-5" class="warlc-ui-tab">\
  4457. <div class="warlcsettings">\
  4458. <fieldset><input type="checkbox" id="Custom_rules"> Enable custom rules <div id="bulk">EXPERIMENTAL</div></fieldset>\
  4459. <br>\
  4460. <div>Edit custom rules: \
  4461. <a href="#" id="showCustomRulesReference">(<b>Click here to show/hide the reference</b>)</a>\
  4462. <div id="customRulesReference" style="display:none;">'
  4463. + customRulesRefHTML + '\
  4464. </div>\
  4465. <textarea style="width:100%;height:200px;" id="Custom_rules_text"></textarea>\
  4466. </div>\
  4467. </div>\
  4468. </div>\
  4469. <div id="tabs-3" class="warlc-ui-tab">\
  4470. <div class="warlcsettings">\
  4471. <fieldset>\
  4472. <p><input type="checkbox" id="Keyboard_functions"> Enable keyboard shortcuts</p>\
  4473. <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>\
  4474. </fieldset>\
  4475. <fieldset>\
  4476. <p><input type="checkbox" id="Color_DL_links"> Color DL links</p>\
  4477. <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>\
  4478. <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>\
  4479. <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>\
  4480. <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>\
  4481. <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>\
  4482. <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>\
  4483. <p><input type="checkbox" id="Show_line_through_in_dead_links"> Show line through in dead links</p>\
  4484. <p><input type="checkbox" id="Show_black_background_in_DL_links"> Show black background in DL links</p>\
  4485. <p><input type="checkbox" id="Do_not_linkify_DL_links"> Do NOT linkify DL links</p>\
  4486. <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>\
  4487. <p><input type="checkbox" id="Display_full_links_in_link_containers"> Display full links in link containers</p><br>\
  4488. <fieldset>\
  4489. <p><input type="radio" name="warlciconset" value="0"> No icons</p>\
  4490. <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>\
  4491. <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>\
  4492. <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>\
  4493. </fieldset>\
  4494. </fieldset>\
  4495. <fieldset>\
  4496. <div id="sites"><input type="checkbox" id="Autocheck"> Autocheck</div><br><div id="configinfo">Script starts check automatically.</div><br>\
  4497. </fieldset>\
  4498. <fieldset>\
  4499. <div id="sites"><input type="checkbox" id="Show_progress_stats"> Show progress stats</div><br>\
  4500. </fieldset>\
  4501. <fieldset>\
  4502. <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>\
  4503. </fieldset>\
  4504. <fieldset>\
  4505. <p><input type="checkbox" id="Enable_Anonymizer"> Enable Anonymizer</div><div id="bulk">EXPERIMENTAL Note: Checkbox does not work use CTRL+ALT+Z.</p>\
  4506. <div id="sites"><label for="refAnonymizer">Refererer anonymizing service</label><input type="text" id="refAnonymizer" value="' + Ref_anonymize_service + '"></div>\
  4507. </fieldset>\
  4508. </div>\
  4509. </div>\
  4510. <div id="tabs-4" class="warlc-ui-tab">\
  4511. <p><b>Author:</b> <a href="http://www.warlc.5gbfree.com/viewtopic.php?f=12&t=12">mental</a></p>\
  4512. <br />\
  4513. <p><b>Currently supported:</b><br>\
  4514. Filehostings: ' + allHostNames.length + '<br />\
  4515. Containers: ' + allContainerNames.length + '<br />\
  4516. Obsolete sites: ' + allObsoleteNames.length + '<br /></p>\
  4517. <br />\
  4518. <p><b>Based on:</b><br>\
  4519. <a href="http://userscripts-mirror.org/scripts/show/125631.html">W.A.R. Links Checker - Dev</a></p>\
  4520. <br />\
  4521. <p><b>Uses:</b></p>\
  4522. <p>adam_3\'s <a href="http://userscripts-mirror.org/scripts/show/2254">Linkify ting</a> (modified)</p>\
  4523. <p><a href="http://jquery.com/">jQuery</a> JavaScript Library</p>\
  4524. <br />\
  4525. <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>\
  4526. </div>\
  4527. </div>\
  4528. </div>\
  4529. </div>';
  4530. $('body').append('<div id="hideshow">' + configurationinnerHTML + '</div>');
  4531. $("#warlc-conf-tabs").tabs({ fx: { opacity: 'toggle', duration: 'fast' } });
  4532. $("#imghideshow").click(function(event){$("#hideshow").hide(); event.preventDefault();});
  4533. var elmHostList = document.getElementById("warlcsitelist1");
  4534. var elmContainerList = document.getElementById("warlcsitelist2");
  4535. buildSettings();
  4536. buildSitelist("", allHostNames, elmHostList);
  4537. buildSitelist("", allContainerNames, elmContainerList);
  4538. if (DEBUG_MODE)
  4539. {
  4540. //log all sites availability status
  4541. diagSites();
  4542. }
  4543. //handler for checkbox state change
  4544. function changeConfiguration(e)
  4545. {
  4546. var element = e.target;
  4547.  
  4548. if (element.type == 'checkbox')
  4549. {
  4550. if (element.checked == 1)
  4551. {
  4552. GM_setValue(element.id, true);
  4553. }
  4554. else
  4555. {
  4556. GM_setValue(element.id, false);
  4557. }
  4558.  
  4559. }
  4560. setVariables();
  4561. }
  4562.  
  4563. //Selects all filehosting checkboxes
  4564. function selectAll()
  4565. {
  4566. $(":checkbox:visible:not(:checked)").prop("checked",true)
  4567. .each(function(index, element){GM_setValue(this.id, true)});
  4568. }
  4569.  
  4570. //Deselects all filehosting checkboxes
  4571. function selectNone()
  4572. {
  4573. $(":checkbox:visible:checked").prop("checked",false)
  4574. .each(function(index, element){GM_setValue(this.id, false)});
  4575. }
  4576.  
  4577. //Inverts filehosting checkboxes selection
  4578. function selectInvert()
  4579. {
  4580. var $checked = $(":checkbox:visible:checked");
  4581. var $unchecked = $(":checkbox:visible:not(:checked)");
  4582. $unchecked.prop("checked",true)
  4583. .each(function(index, element){GM_setValue(this.id, true)});
  4584. $checked.prop("checked",false)
  4585. .each(function(index, element){GM_setValue(this.id, false)});
  4586. }
  4587. //toggles anonymizer on off
  4588. function Enable_Anonymizer()
  4589. {
  4590. var $checked = $(":checkbox:visible:checked");
  4591. var $unchecked = $(":checkbox:visible:not(:checked)");
  4592. $unchecked.prop("checked",true)
  4593. .each(function(index, element){GM_setValue(this.id, true)});
  4594. $checked.prop("checked",false)
  4595. .each(function(index, element){GM_setValue(this.id, false)});
  4596. }
  4597.  
  4598. function changeRefAnonymizer(){
  4599. GM_setValue("Ref_anonymize_service", $("#refAnonymizer").attr("value"));
  4600. }
  4601.  
  4602. //Sets live links color
  4603. function changeColorLive()
  4604. {
  4605. var inColorLive = document.getElementById("inputColorLive");
  4606. inColorLive.style.background = inColorLive.value;
  4607. GM_setValue("Live_links_color", inColorLive.value);
  4608. }
  4609.  
  4610. //Sets dead links color
  4611. function changeColorDead()
  4612. {
  4613. var inColorDead = document.getElementById("inputColorDead");
  4614. inColorDead.style.background = inColorDead.value;
  4615. GM_setValue("Dead_links_color", inColorDead.value);
  4616. }
  4617.  
  4618. //Sets temp. unavailable links color
  4619. function changeColorTemp()
  4620. {
  4621. var inColorTemp = document.getElementById("inputColorTemp");
  4622. inColorTemp.style.background = inColorTemp.value;
  4623. GM_setValue("Temp_unavailable_links_color", inColorTemp.value);
  4624. }
  4625.  
  4626. //Sets temp. unavailable links color
  4627. function changeColorCont()
  4628. {
  4629. var inColorCont = document.getElementById("inputColorCont");
  4630. inColorCont.style.background = inColorCont.value;
  4631. GM_setValue("Container_links_color", inColorCont.value);
  4632. }
  4633. //Sets premium. links color
  4634. function changeColorprem()
  4635. {
  4636. var inColorprem = document.getElementById("inputColorprem");
  4637. inColorprem.style.background = inColorprem.value;
  4638. GM_setValue("Premium_links_color", inColorprem.value);
  4639. }
  4640.  
  4641. //Diagnose sites for availability
  4642. function diagSites()
  4643. {
  4644. var boxes = document.getElementById("warlcsitelist1").getElementsByTagName("input");
  4645.  
  4646. for (var i = 0, n = boxes.length - 1; i < n; i++)
  4647. {
  4648. if (boxes[i].type == "checkbox")
  4649. {
  4650. checkAvailability(boxes[i]);
  4651. }
  4652. }
  4653.  
  4654. boxes = document.getElementById("warlcsitelist2").getElementsByTagName("input");
  4655.  
  4656. for (var i = 0, n = boxes.length - 1; i < n; i++)
  4657. {
  4658. if (boxes[i].type == "checkbox")
  4659. {
  4660. checkAvailability(boxes[i]);
  4661. }
  4662. }
  4663.  
  4664. function checkAvailability(cbElm)
  4665. {
  4666. var cb = cbElm;
  4667. GM_xmlhttpRequest(
  4668. {
  4669. method: 'HEAD',
  4670. url: 'http://' + cb.nextSibling.textContent.replace(' ', ''),
  4671. headers: {
  4672. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  4673. 'Accept': 'text/xml',
  4674. 'Referer': ""
  4675. },
  4676. onload: function (result)
  4677. {
  4678. if (result.status != 200)
  4679. {
  4680. GM_log(cb.nextSibling.textContent + ' --- status: [' + result.status + '] ' + result.statusText + ', final url: ' + result.finalUrl);
  4681. }
  4682. },
  4683. onerror: function (result)
  4684. {
  4685. if (result.status != 200)
  4686. {
  4687. GM_log(cb.nextSibling.textContent + ' --- status: [' + result.status + '] ' + result.statusText + ', final url: ' + result.finalUrl);
  4688. }
  4689. }
  4690. });
  4691. }
  4692. }
  4693. function buildSettings()
  4694. {
  4695. $(".warlcsettings :checkbox").each(function(){
  4696. $(this).prop("checked", GM_getValue($(this).attr("id")))
  4697. .click(function(e){
  4698. GM_setValue($(this).attr("id"), $(this).prop("checked"));
  4699. setVariables();
  4700. });
  4701. })
  4702. }
  4703. //Dynamic build of host list
  4704. //param search [string] searches for hostnames matching search substring
  4705. //param siteNames [array] array of site names
  4706. //param targetNode [DOM Node] where the list should be built
  4707. // first child node is replaced
  4708. function buildSitelist(search, siteNames, targetNode)
  4709. {
  4710. var searchRegex = new RegExp("\\|?([\\w\\.-]*" + search.replace(/\./g,"\\.").replace(/-/g, "\\-") + "[\\w\\.-]*)\\|?", "i");
  4711. var $targetNode = $(targetNode).empty();
  4712. var searchedSite = "";
  4713. $.each(siteNames, function(i, site){
  4714. if (searchedSite = site.match(searchRegex))
  4715. {
  4716. var baseSite = site.replace(/\|.+/, ""); //filehosting main domain
  4717. //ensuring backward compatibility with the rest of code, to be refactored later
  4718. var oldRSLCvalue = "Check_" + baseSite.replace(/\|.+/, "").replace(/\./g,"_dot_").replace(/-/g, "_dash_") + "_links";
  4719. //
  4720. $targetNode.append('<input type="checkbox" id="' + oldRSLCvalue +'" />\
  4721. <label for="' + oldRSLCvalue + '">' + searchedSite[1] + '</label>' +
  4722. ((searchedSite[1] != baseSite) ? ('<div id="note"> ( ~ ' + baseSite + ' )</div>') : (""))
  4723. );
  4724. $("#" + oldRSLCvalue).prop("checked", GM_getValue(oldRSLCvalue, false))
  4725. .change(changeConfiguration);
  4726. $targetNode.append('<br />');
  4727. }
  4728. });
  4729. $targetNode.append("<hr>");
  4730. //obsolete hosts checkbox
  4731. $targetNode.append('<input type="checkbox" id="Obsolete_file_hosts" /><label for="Obsolete_file_hosts">Obsolete file hosts</label>');
  4732. $("#Obsolete_file_hosts").prop("checked", GM_getValue("Obsolete_file_hosts", false))
  4733. .change(changeConfiguration);
  4734. $targetNode.append('<br />');
  4735. var foundName = "";
  4736. $.each(allObsoleteNames, function(i, site){
  4737. if (foundName = allObsoleteNames[i].match(searchRegex))
  4738. {
  4739. $targetNode.append('<div id="note">' + foundName[1] + '</div>');
  4740. }
  4741. })
  4742. }
  4743. var hostSearchBox = document.getElementById("hostSearchBox");
  4744. hostSearchBox.addEventListener('keyup', function(){buildSitelist(hostSearchBox.value, allHostNames, elmHostList);}, false);
  4745. var hostSearchBox2 = document.getElementById("hostSearchBox2");
  4746. hostSearchBox2.addEventListener('keyup', function(){buildSitelist(hostSearchBox2.value, allContainerNames, elmContainerList);}, false);
  4747. $(".warlc-ui-select-all").click(selectAll).button();
  4748. $(".warlc-ui-select-none").click(selectNone).button();
  4749. $(".warlc-ui-select-invert").click(selectInvert).button();
  4750. $(".warlc-ui-buttonset").buttonset();
  4751. var inColorLive = document.getElementById("inputColorLive");
  4752. inColorLive.addEventListener('keyup', changeColorLive, false);
  4753.  
  4754. var inColorDead = document.getElementById("inputColorDead");
  4755. inColorDead.addEventListener('keyup', changeColorDead, false);
  4756.  
  4757. var inColorTemp = document.getElementById("inputColorTemp");
  4758. inColorTemp.addEventListener('keyup', changeColorTemp, false);
  4759.  
  4760. var inColorCont = document.getElementById("inputColorCont");
  4761. inColorCont.addEventListener('keyup', changeColorCont, false);
  4762. var inColorprem = document.getElementById("inputColorprem");
  4763. inColorprem.addEventListener('keyup', changeColorprem, false);
  4764. $("#refAnonymizer").change(changeRefAnonymizer);
  4765. //buttons and edit boxes init end
  4766.  
  4767. //icon sets radio buttons
  4768. var radioButtons = document.getElementsByName("warlciconset");
  4769. radioButtons[Icon_set].checked = "checked";
  4770.  
  4771. radioButtons[0].addEventListener("change", updateIconSet);
  4772. radioButtons[1].addEventListener("change", updateIconSet);
  4773. radioButtons[2].addEventListener("change", updateIconSet);
  4774. radioButtons[3].addEventListener("change", updateIconSet);
  4775. function updateIconSet()
  4776. {
  4777. GM_setValue("Icon_set", this.value * 1);
  4778. }
  4779. //
  4780. $('#showCustomRulesReference').click(function(e){
  4781. e.preventDefault();
  4782. $('#customRulesReference').toggle();
  4783. });
  4784. $('#Custom_rules_text')
  4785. .val(Custom_rules_text)
  4786. .change(saveCustomRules);
  4787. function saveCustomRules(e)
  4788. {
  4789. var cr = parseCustomRules(this.value);
  4790. if (cr.info.length)
  4791. 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, ' '));
  4792. GM_setValue('Custom_rules_text', this.value);
  4793. GM_setValue('last_custom_rules_nag', ''+new Date().getTime()); //reset nag
  4794. }
  4795. }
  4796.  
  4797. //begin standard link checking algorithm
  4798. function start(filterId)
  4799. {
  4800. var doNotLinkify = Do_not_linkify_DL_links;
  4801.  
  4802. // USER SELECTED FILE HOSTS INITIALIZATION START
  4803. var http_file_hosts = new Array(); //standard hostings
  4804. var http_file_hosts_coded = new Array(); //hostings which has to be decoded to obtain real checkable link
  4805. var http_file_hosts_obsolete = new Array(); //dead hostings
  4806. var http_file_hosts_headers_only = new Array(); //hostings with direct download, must be handled via headers only
  4807.  
  4808. initFileHosts();
  4809. initFileHostsHeadersOnly();
  4810. initFileHostsCustom(); //CustomRules
  4811. // USER SELECTED FILE HOSTS INITIALIZATION END
  4812.  
  4813. // LINKIFICATION START
  4814. var totalxpath = '';
  4815. var totalxpathcoded = '';
  4816. var totalxpathobsolete = '';
  4817. var totalxpathheadersonly = '';
  4818. var totalourls = '';
  4819.  
  4820. var filehostLen = http_file_hosts.length;
  4821. var filehostCodedLen = http_file_hosts_coded.length;
  4822. var filehostObsoleteLen = http_file_hosts_obsolete.length;
  4823. var filehostHeadersOnlyLen = http_file_hosts_headers_only.length;
  4824.  
  4825. var filehostIdx = filehostLen;
  4826. var filehostCodedIdx = filehostCodedLen;
  4827. var filehostObsoleteIdx = filehostObsoleteLen;
  4828. var filehostHeadersOnlyIdx = filehostHeadersOnlyLen;
  4829.  
  4830. if ((filehostIdx == 0) && (filehostCodedIdx == 0) && (filehostHeadersOnlyIdx == 0) && (filehostObsoleteIdx == 0))
  4831. return;
  4832.  
  4833. while (filehostIdx--)
  4834. {
  4835. totalourls += http_file_hosts[filehostIdx][0] + '|';
  4836. totalxpath += http_file_hosts[filehostIdx][4] + '|';
  4837. }
  4838.  
  4839. while (filehostCodedIdx--)
  4840. {
  4841. totalourls += http_file_hosts_coded[filehostCodedIdx][0] + '|';
  4842. totalxpathcoded += http_file_hosts_coded[filehostCodedIdx][3] + '|';
  4843. }
  4844.  
  4845. while (filehostObsoleteIdx--)
  4846. {
  4847. totalourls += http_file_hosts_obsolete[filehostObsoleteIdx][0] + '|';
  4848. totalxpathobsolete += http_file_hosts_obsolete[filehostObsoleteIdx][1] + '|';
  4849. }
  4850.  
  4851. while (filehostHeadersOnlyIdx--)
  4852. {
  4853. totalourls += http_file_hosts_headers_only[filehostHeadersOnlyIdx][0] + '|';
  4854. totalxpathheadersonly += http_file_hosts_headers_only[filehostHeadersOnlyIdx][3] + '|';
  4855. }
  4856.  
  4857. totalourls = totalourls.replace(/\|$/g, "");
  4858. //TODO: further refactoring needed
  4859. totalxpath = totalxpath.replace(/\]\|\/\/a\[/g, " or ");
  4860. totalxpath = totalxpath.replace(/\]\|/, ')]');
  4861. totalxpathcoded = totalxpathcoded.replace(/\]\|\/\/a\[/g, " or ");
  4862. totalxpathcoded = totalxpathcoded.replace(/\]\|/, ')]');
  4863. totalxpathobsolete = totalxpathobsolete.replace(/\]\|\/\/a\[/g, " or ");
  4864. totalxpathobsolete = totalxpathobsolete.replace(/\]\|/, ')]');
  4865. totalxpathheadersonly = totalxpathheadersonly.replace(/\]\|\/\/a\[/g, " or ");
  4866. totalxpathheadersonly = totalxpathheadersonly.replace(/\]\|/, ')]');
  4867. if (filterId != null) //insert id restriction in the xpath
  4868. {
  4869. totalxpath = totalxpath.replace(/\[/g, "[@class='" + filterId + "' and (");
  4870. totalxpathcoded = totalxpathcoded.replace(/\[/g, "[@class='" + filterId + "' and (");
  4871. totalxpathobsolete = totalxpathobsolete.replace(/\[/g, "[@class='" + filterId + "' and (");
  4872. totalxpathheadersonly = totalxpathheadersonly.replace(/\[/g, "[@class='" + filterId + "' and (");
  4873. }
  4874. else
  4875. {
  4876. totalxpath = totalxpath.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4877. totalxpathcoded = totalxpathcoded.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4878. totalxpathobsolete = totalxpathobsolete.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4879. totalxpathheadersonly = totalxpathheadersonly.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4880. }
  4881. linkify(totalourls);
  4882. //LINKIFICATION END
  4883. //ENCRYPTED LINKS PROCESSING START
  4884. if (http_file_hosts_coded.length > 0)
  4885. {
  4886. var linksCoded = document.evaluate(totalxpathcoded, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4887.  
  4888. // decrypt coded links (redirects, link protectors etc.)
  4889. if (linksCoded.snapshotLength > 0)
  4890. {
  4891. var link;
  4892. var reallinkreg;
  4893. var reallinkcorrection;
  4894.  
  4895. if (filterId == null)
  4896. {
  4897. cLinksTotal += linksCoded.snapshotLength;
  4898. }
  4899.  
  4900. var y = linksCoded.snapshotLength - 1;
  4901. do
  4902. {
  4903. // linksCoded.snapshotItem(y).id = 'processing_link';
  4904. link = linksCoded.snapshotItem(y);
  4905. filehostIdx = filehostCodedLen;
  4906. while (filehostIdx--)
  4907. {
  4908. if (link.href.match(http_file_hosts_coded[filehostIdx][0]))
  4909. {
  4910. link.href = link.href.replace(/http:\/\/.*?(?:\?|=)http:\/\//, 'http://');
  4911. reallinkreg = http_file_hosts_coded[filehostIdx][1];
  4912. reallinkcorrection = http_file_hosts_coded[filehostIdx][2];
  4913.  
  4914. decurl(link, reallinkreg, reallinkcorrection);
  4915. break;
  4916. }
  4917. }
  4918. }
  4919. while (y--);
  4920. }
  4921. }
  4922. //ENCRYPTED LINKS PROCESSING END
  4923.  
  4924. //STANDARD LINKCHECKING START
  4925. if (http_file_hosts.length > 0)
  4926. {
  4927. var lianks = document.evaluate(totalxpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4928.  
  4929. if (filterId == null)
  4930. {
  4931. cLinksTotal += lianks.snapshotLength;
  4932. }
  4933.  
  4934. if (lianks.snapshotLength > 0)
  4935. {
  4936. var link;
  4937.  
  4938. var URL = "";
  4939. var name = "";
  4940. var isAliveRegex = "";
  4941. var isDeadRegex = "";
  4942. var isUnavaRegex = "";
  4943. var ispremRegex = "";
  4944. var tryLoop = false;
  4945.  
  4946. var y = lianks.snapshotLength;
  4947.  
  4948. while (y--)
  4949. {
  4950. link = lianks.snapshotItem(y);
  4951.  
  4952. filehostIdx = filehostLen;
  4953. while (filehostIdx--)
  4954. {
  4955. if (link.href.match(http_file_hosts[filehostIdx][0]))
  4956. {
  4957. link.href = link.href.replace(/http:\/\/.*?http:\/\//, 'http://'); //anonymizers
  4958. isAliveRegex = http_file_hosts[filehostIdx][1];
  4959. isDeadRegex = http_file_hosts[filehostIdx][2];
  4960. isUnavaRegex = http_file_hosts[filehostIdx][3];
  4961. ispremRegex = http_file_hosts[filehostIdx][6];
  4962. tryLoop = http_file_hosts[filehostIdx][5];
  4963.  
  4964. geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, tryLoop);
  4965.  
  4966. break;
  4967. }
  4968. }
  4969. }
  4970. }
  4971. }
  4972. //STANDARD LINKCHECKING END
  4973. //OBSOLETE FILE HOSTS PROCESSING START
  4974. if (filehostObsoleteLen > 0)
  4975. {
  4976. var obsoletelinks = document.evaluate(totalxpathobsolete, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4977.  
  4978. var obsoleteLink;
  4979.  
  4980. //check links
  4981. if (obsoletelinks.snapshotLength > 0)
  4982. {
  4983. var y = obsoletelinks.snapshotLength;
  4984.  
  4985. if (filterId == null)
  4986. {
  4987. cLinksTotal += y;
  4988. }
  4989.  
  4990. while (y--)
  4991. {
  4992. obsoleteLink = obsoletelinks.snapshotItem(y);
  4993.  
  4994. if (Display_tooltip_info)
  4995. {
  4996. obsoleteLink.warlc_error = 'Cause of error: <b>Obsolete filehosting.</b>';
  4997. }
  4998. displayTheCheckedLink(obsoleteLink, 'adead_link');
  4999. }
  5000. }
  5001. }
  5002. //OBSOLETE FILE HOSTS PROCESSING END
  5003.  
  5004. //DIRECT LINKCHECKING START
  5005. if (http_file_hosts_headers_only.length > 0)
  5006. {
  5007. var links = document.evaluate(totalxpathheadersonly, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  5008.  
  5009. //check links
  5010. if (links.snapshotLength > 0)
  5011. {
  5012. var link;
  5013. var isAliveRegex;
  5014. var isDeadRegex;
  5015. var ispremRegex;
  5016.  
  5017. var y = links.snapshotLength;
  5018.  
  5019.  
  5020. if (filterId == null)
  5021. {
  5022. cLinksTotal += y;
  5023. }
  5024.  
  5025. while (y--)
  5026. {
  5027. // links.snapshotItem(y).id = 'processing_link';
  5028. link = links.snapshotItem(y);
  5029. filehostIdx = filehostHeadersOnlyLen;
  5030. while (filehostIdx--)
  5031. {
  5032. if (link.href.match(http_file_hosts_headers_only[filehostIdx][0]))
  5033. {
  5034. link.href = link.href.replace(/http:\/\/.*?(?:\?|=)http:\/\//, 'http://');
  5035. isAliveRegex = http_file_hosts_headers_only[filehostIdx][1];
  5036. isDeadRegex = http_file_hosts_headers_only[filehostIdx][2];
  5037. ispremRegex = http_file_hosts_headers_only[filehostIdx][3];
  5038.  
  5039. geturlHeader(link, isAliveRegex, isDeadRegex, ispremRegex);
  5040.  
  5041. break;
  5042. }
  5043. }
  5044. }
  5045.  
  5046. }
  5047. }
  5048. //DIRECT LINKCHECKING END
  5049.  
  5050.  
  5051. //finds the real url on the page, replaces link.href with it and calls geturl
  5052. function decurl(link, reallinkreg, reallinkcorrection)
  5053. {
  5054.  
  5055. GM_xmlhttpRequest(
  5056. {
  5057. method: 'GET',
  5058. url: link.href,
  5059. headers: {
  5060. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  5061. 'Accept': 'text/xml',
  5062. 'Referer': ""
  5063. },
  5064. onload: function (result)
  5065. {
  5066. // cLinksProcessed++;
  5067.  
  5068. var reallink = result.responseText.match(reallinkreg)[0];
  5069. reallink = reallink.replace(new RegExp(reallinkcorrection, "g"), "");
  5070.  
  5071. link.href = reallink;
  5072.  
  5073. var i = http_file_hosts.length - 1;
  5074. do
  5075. {
  5076. if ((reallink.match(http_file_hosts[i][0])))
  5077. {
  5078. link.href = link.href.replace(/http:\/\/.*?\?http:\/\//, 'http://');
  5079. var isAliveRegex = http_file_hosts[i][1];
  5080. var isDeadRegex = http_file_hosts[i][2];
  5081. var isUnavaRegex = http_file_hosts[i][3];
  5082. var ispremRegex = http_file_hosts[i][4];
  5083.  
  5084. geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, 50);
  5085.  
  5086. break;
  5087. }
  5088. }
  5089. while (i--);
  5090. }
  5091. });
  5092. }
  5093.  
  5094. function randUA()
  5095. {
  5096. //TODO
  5097. }
  5098. //Processes link
  5099. //
  5100. // [string] link link URL
  5101. // [string] isAliveRegex alive link regex
  5102. // [string] isDeadRegex dead link regex
  5103. // [string] isUnavaRegex unavailable link regex
  5104. // [string] ispremRegex premium link regex
  5105. // [boolean] tryLoop repeats request until succeeded
  5106. function geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, tryLoop)
  5107. {
  5108. GM_xmlhttpRequest(
  5109. {
  5110. method: 'GET',
  5111. url: link.href,
  5112. headers: {
  5113. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  5114. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  5115. 'Referer': ""
  5116. },
  5117. onload: function (result)
  5118. {
  5119. var res = result.responseText;
  5120. if (result.responseHeaders.match(/Content-Disposition: attachment; filename=/))//direct download, simple version
  5121. {
  5122. displayTheCheckedLink(link, 'alive_link');
  5123. return;
  5124. }
  5125.  
  5126. if (res.match(isAliveRegex))
  5127. {
  5128. displayTheCheckedLink(link, 'alive_link');
  5129. return;
  5130. }
  5131.  
  5132. if (res.match(isDeadRegex))
  5133. {
  5134. displayTheCheckedLink(link, 'adead_link');
  5135. return;
  5136. }
  5137.  
  5138. if (isUnavaRegex && res.match(isUnavaRegex))
  5139. {
  5140. displayTheCheckedLink(link, 'unava_link');
  5141. return;
  5142. }
  5143. if (res.match(ispremRegex))
  5144. {
  5145. displayTheCheckedLink(link, 'prem_link');
  5146. return;
  5147. }
  5148.  
  5149. var resStatus = result.status;
  5150.  
  5151. if (resStatus == 404)
  5152. {
  5153. displayTheCheckedLink(link, 'adead_link');
  5154. }
  5155. if (resStatus == 500 || resStatus == 503 || resStatus == 403) //not found/available/temp. unava
  5156. {
  5157. if (tryLoop)
  5158. {
  5159. //wait 1-5 seconds and repeat the request
  5160. setTimeout(function(){geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, tryLoop)}, 1000 + (Math.random() * 4000));
  5161. }
  5162. else
  5163. {
  5164. displayTheCheckedLink(link, 'unava_link');
  5165. }
  5166.  
  5167. return;
  5168. }
  5169. },
  5170. onerror: function ()
  5171. {
  5172. displayTheCheckedLink(link, 'unava_link');
  5173. }
  5174. });
  5175. }
  5176.  
  5177. function geturlHeader(link, isAliveRegex, isDeadRegex, ispremRegex)
  5178. {
  5179. GM_xmlhttpRequest(
  5180. {
  5181. method: 'HEAD',
  5182. url: link.href,
  5183. headers: {
  5184. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  5185. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  5186. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  5187. 'Referer': ""
  5188. },
  5189. onload: function (result)
  5190. {
  5191. var resStatus = result.status;
  5192. var resHeaders = "";
  5193. if (resStatus == 403 || resStatus == 404 || resStatus == 500) //not found/available
  5194. {
  5195. displayTheCheckedLink(link, 'adead_link');
  5196. return;
  5197. }
  5198.  
  5199. resHeaders = result.responseHeaders;
  5200.  
  5201. if (resHeaders.match(isDeadRegex))
  5202. {
  5203. displayTheCheckedLink(link, 'adead_link');
  5204. return;
  5205. }
  5206.  
  5207. if (resHeaders.match(isAliveRegex))
  5208. {
  5209. displayTheCheckedLink(link, 'alive_link');
  5210. return;
  5211. }
  5212. if (resHeaders.match(ispremRegex))
  5213. {
  5214. displayTheCheckedLink(link, 'prem_link');
  5215. return;
  5216. }
  5217. },
  5218. onerror: function ()
  5219. {
  5220. displayTheCheckedLink(link, 'unava_link');
  5221. }
  5222. });
  5223. }
  5224.  
  5225. //Delinkfifies the <a> element object
  5226. function delinkifyLink(link)
  5227. {
  5228. var spanElm = document.createElement("span");
  5229. spanElm.className = link.className;
  5230. spanElm.innerHTML = link.innerHTML;
  5231.  
  5232. if (Display_tooltip_info)
  5233. {
  5234. spanElm.href = link.href;
  5235. spanElm.warlc_error = link.warlc_error;
  5236. switch (link.className){
  5237. case "alive_link": spanElm.addEventListener("mouseover", displayTooltipInfo, false); break
  5238. case "adead_link": spanElm.addEventListener("mouseover", displayTooltipError, false); break;
  5239. case "unava_link": //reserved
  5240. case "prem_link": spanElm.addEventListener("mouseover", displayTooltipError, false); break;
  5241. default:
  5242. }
  5243. }
  5244. link.parentNode.replaceChild(spanElm, link);
  5245. }
  5246.  
  5247. //Assigns result status to the <a> element object and calls delinkifying eventually
  5248. //Possible result states: adead_link, alive_link, unava_link, prem_link
  5249. function displayTheCheckedLink(link, resultStatus)
  5250. {
  5251. link.className = resultStatus;
  5252. link.href = Ref_anonymize_service + link.href;
  5253. if (Display_tooltip_info)
  5254. {
  5255. switch (resultStatus){
  5256. case "alive_link": link.addEventListener("mouseover", displayTooltipInfo, false); break
  5257. case "adead_link": link.addEventListener("mouseover", displayTooltipError, false); break;
  5258. case "unava_link": //reserved
  5259. case "prem_link": link.addEventListener("mouseover", displayTooltipInfo, false); break
  5260. default:
  5261. }
  5262. }
  5263. if (doNotLinkify)
  5264. {
  5265. delinkifyLink(link);
  5266. }
  5267. cLinksProcessed++;
  5268.  
  5269. if (resultStatus == "alive_link")
  5270. {
  5271. cLinksAlive++;
  5272. return;
  5273. }
  5274.  
  5275. if (resultStatus == "adead_link")
  5276. {
  5277. cLinksDead++;
  5278. return;
  5279. }
  5280.  
  5281. if (resultStatus == "unava_link")
  5282. {
  5283. cLinksUnava++;
  5284. }
  5285. if (resultStatus == "prem_link")
  5286. {
  5287. cLinksprem++;
  5288. return;
  5289. }
  5290. }
  5291.  
  5292.  
  5293. function initFileHosts()
  5294. {
  5295.  
  5296. function addObsoleteHost(linkRegex, xpathEx)
  5297. {
  5298. var host = new Array(2);
  5299. host[0] = linkRegex;
  5300. host[1] = xpathEx;
  5301. http_file_hosts_obsolete.push(host);
  5302. }
  5303.  
  5304. //obsolete file hosts init start
  5305. if (Obsolete_file_hosts)
  5306. {
  5307. addObsoleteHost("uloz\.cz\/show\/file","//a[contains(@href,'uloz.cz')]");
  5308. addObsoleteHost("storage\\.to\/get","//a[contains(@href,'storage.to')]");
  5309. addObsoleteHost("iskladka\\.cz\/download","//a[contains(@href,'iskladka.cz')]");
  5310. addObsoleteHost("file-rack\\.com\/files","//a[contains(@href,'file-rack.com')]");
  5311. addObsoleteHost("fast-load\\.net\/(\/)?index","//a[contains(@href,'fast-load.net')]");
  5312. addObsoleteHost("subory\\.sk\/download","//a[contains(@href,'subory.sk')]");
  5313. addObsoleteHost("bigandfree\\.com\/\\d+","//a[contains(@href,'bigandfree.com')]");
  5314. addObsoleteHost("fileop\\.com\/\\w+","//a[contains(@href,'fileop.com')]");
  5315. addObsoleteHost("mujsoubor\\.cz\/file\/","//a[contains(@href,'mujsoubor.cz')]");
  5316. addObsoleteHost("sendfile\\.to\/\\w+","//a[contains(@href,'sendfile.to')]");
  5317. addObsoleteHost("superfastfile\\.com\/\\w+","//a[contains(@href,'superfastfile.com')]");
  5318. addObsoleteHost("quickyshare\\.com\/\\w+","//a[contains(@href,'quickyshare.com/')]");
  5319. addObsoleteHost("duckload\\.com\/(?:d|play)","//a[contains(@href,'duckload.com')]");
  5320. addObsoleteHost("uploadstore\\.net\/\\w+","//a[contains(@href,'uploadstore.net')]");
  5321. addObsoleteHost("meinupload\\.com\/dl\/\\d+","//a[contains(@href,'meinupload.com/dl')]");
  5322. addObsoleteHost("dualshare\\.com\/\\w+","//a[contains(@href,'dualshare.com')]");
  5323. addObsoleteHost("2xupload\\.(?:to|de)\/file\/\\w+","//a[contains(@href,'2xupload.to') or contains(@href,'2xupload.de')]");
  5324. addObsoleteHost("oxedion\\.com\/index\\.php\/download\/\\w+","//a[contains(@href,'oxedion.com/index')]");
  5325. addObsoleteHost("uploadline\\.com\/\\d+","//a[contains(@href,'uploadline.com')]");
  5326. addObsoleteHost("dll\\.bz\/file\/\\d+","//a[contains(@href,'dll.bz/file')]");
  5327. addObsoleteHost("movieshare\\.in\/\\w+","//a[contains(@href,'movieshare.in')]");
  5328. addObsoleteHost("milledrive\\.com\/files\/\\d+","//a[contains(@href,'milledrive.com')]");
  5329. addObsoleteHost("quickupload\\.net\/\\w+","//a[contains(@href,'quickupload.net')]");
  5330. addObsoleteHost("safelink\\.in\/\\w+","//a[contains(@href,'safelink.in')]");
  5331. addObsoleteHost("pyramidfiles\\.com\/\\w+","//a[contains(@href,'pyramidfiles.com/')]");
  5332. addObsoleteHost("(?:cloudnator|shragle)\\.com\/files","//a[contains(@href,'cloudnator.com/files') or contains(@href,'shragle.com/files')]");
  5333. addObsoleteHost("batshare\\.com\/\\w+","//a[contains(@href,'batshare.com/')]");
  5334. addObsoleteHost("bitroad\\.net\/download","//a[contains(@href,'bitroad.net/download')]");
  5335. addObsoleteHost("metadivx\\.com\/\\w+","//a[contains(@href,'metadivx.com')]");
  5336. addObsoleteHost("filegaze\\.com\/\\w+","//a[contains(@href,'filegaze.com/')]");
  5337. addObsoleteHost("bulletupload\\.com\/\\w+","//a[contains(@href,'bulletupload.com/')]");
  5338. addObsoleteHost("sharefilehost\\.com\/\\w+","//a[contains(@href,'sharefilehost.com/')]");
  5339. addObsoleteHost("fireuploads\\.net\/\\w+","//a[contains(@href,'fireuploads.net/')]");
  5340. addObsoleteHost("divxlink\\.com\/\\w+","//a[contains(@href,'divxlink.com/')]");
  5341. addObsoleteHost("bzlink\\.us\/\\w+","//a[contains(@href,'bzlink.us/')]");
  5342. addObsoleteHost("filetechnology\\.com\/\\w+","//a[contains(@href,'filetechnology.com/')]");
  5343. addObsoleteHost("filecosy\\.com\/\\w+","//a[contains(@href,'filecosy.com/')]");
  5344. addObsoleteHost("fileserver\\.cc\/\\w+","//a[contains(@href,'fileserver.cc/')]");
  5345. addObsoleteHost("shafiles\\.me\/\\w+","//a[contains(@href,'shafiles.me/')]");
  5346. addObsoleteHost("xfileshare\\.eu\/\\w+","//a[contains(@href,'xfileshare.eu/')]");
  5347. addObsoleteHost("uploadboost\\.com\/\\w+","//a[contains(@href,'uploadboost.com/')]");
  5348. addObsoleteHost("uploadoz\\.com\/\\w+","//a[contains(@href,'uploadoz.com/')]");
  5349. addObsoleteHost("ihostia\\.com\/\\w+","//a[contains(@href,'ihostia.com/')]");
  5350. addObsoleteHost("shareupload\\.com\/\\w+","//a[contains(@href,'shareupload.com/')]");
  5351. addObsoleteHost("ovfile\\.com\/\\w+","//a[contains(@href,'ovfile.com/')]");
  5352. addObsoleteHost("stahuj\\.to\/\\w+","//a[contains(@href,'stahuj.to/')]");
  5353. addObsoleteHost("gigfiles\\.net\/\\w+","//a[contains(@href,'gigfiles.net/')]");
  5354. addObsoleteHost("vidhog\\.com\/\\w+","//a[contains(@href,'vidhog.com/')]");
  5355. addObsoleteHost("filelaser\\.com\/\\w+","//a[contains(@href,'filelaser.com/')]");
  5356. addObsoleteHost("holderfile\\.com\/\\w+","//a[contains(@href,'holderfile.com/')]");
  5357. addObsoleteHost("fileduct\\.(?:com|net)\/\\w+","//a[contains(@href,'fileduct.com/') or contains(@href,'fileduct.net')]");
  5358. addObsoleteHost("filefat\\.com\/\\w+","//a[contains(@href,'filefat.com/')]");
  5359. addObsoleteHost("restfile\\.com\/\\w+","//a[contains(@href,'restfile.com/')]");
  5360. addObsoleteHost("filemashine\\.com\\/download\/\\w+","//a[contains(@href,'filemashine.com/download')]");
  5361. addObsoleteHost("cloudnxt\\.net\/\\w+","//a[contains(@href,'cloudnxt.net/')]");
  5362. addObsoleteHost("uploadrack\\.com\/\\w+","//a[contains(@href,'uploadrack.com')]");
  5363. addObsoleteHost("teradepot\\.com\/\\w+","//a[contains(@href,'teradepot.com')]");
  5364. addObsoleteHost("dataup\\.to\/\\d+\/","//a[contains(@href,'dataup.to')]");
  5365. addObsoleteHost("upit\\.to\/file:\\d+","//a[contains(@href,'upit.to/file')]");
  5366. addObsoleteHost("badongo\\.(?:com|net)\/(?:\\w\\w\/|)(?:vid|cfile|file|pt)\/\\w+","//a[contains(@href,'badongo.com') or contains(@href,'badongo.net')]");
  5367. addObsoleteHost("driveway\\.com\/\\w+","//a[contains(@href,'driveway.com')]");
  5368. addObsoleteHost("eatlime\\.com\/download","//a[contains(@href,'eatlime.com/download')]");
  5369. addObsoleteHost("a2zuploads\\.com\/id\\w+","//a[contains(@href,'a2zuploads.com/id')]");
  5370. addObsoleteHost("friendlyfiles\\.net\/download\/\\w+\/","//a[contains(@href,'friendlyfiles.net/download')]");
  5371. addObsoleteHost("flyfile\\.us\/\\w+","//a[contains(@href,'flyfile.us')]");
  5372. addObsoleteHost("speedyshare\\.com\/\\w+","//a[contains(@href,'speedyshare.com')]");
  5373. addObsoleteHost("brontofile\\.com\/download","//a[contains(@href,'brontofile.com/download')]");
  5374. addObsoleteHost("uploadspace\\.eu\/\\w+","//a[contains(@href,'uploadspace.eu')]");
  5375. addObsoleteHost("fooget\\.com\/\\w+","//a[contains(@href,'fooget.com/')]");
  5376. addObsoleteHost("file-bit.net\/\\w+","//a[contains(@href,'file-bit.net/')]");
  5377. addObsoleteHost("keepfile\\.com\/\\w+","//a[contains(@href,'http://keepfile.com')]");
  5378. addObsoleteHost("piggyshare\\.com\/file\/\\w+","//a[contains(@href,'piggyshare.com')]");
  5379. addObsoleteHost("filecrown\\.com\/\\w+","//a[contains(@href,'filecrown.com')]");
  5380. addObsoleteHost("6giga\\.com\/\\w+","//a[contains(@href,'6giga.com')]");
  5381. addObsoleteHost("uploadjockey\\.com\/download\/\\w+","//a[contains(@href,'uploadjockey.com/download')]");
  5382. addObsoleteHost("bluehost\\.to\/dl=\\w+","//a[contains(@href,'bluehost.to')]");
  5383. addObsoleteHost("coolshare\\.cz\/stahnout\/\\w+","//a[contains(@href,'coolshare.cz/stahnout')]");
  5384. addObsoleteHost("filegu\\.ru\/f\/\\w+","//a[contains(@href,'filegu.ru/f')]");
  5385. addObsoleteHost("filebase\\.to\/files\/\\d+\/","//a[contains(@href,'filebase.to/files')]");
  5386. addObsoleteHost("kickload\\.com\/(?:file|get)\/","//a[contains(@href,'kickload.com/file') or contains(@href,'kickload.com/get')]");
  5387. addObsoleteHost("up-file\\.com\/files\/download\/\\w+\/","//a[contains(@href,'up-file.com/download')]");
  5388. addObsoleteHost("ezyfile\\.net\/\\w+","//a[contains(@href,'ezyfile.net/')]");
  5389. addObsoleteHost("k2files\\.com\/files","//a[contains(@href,'k2files.com/files')]");
  5390. addObsoleteHost("aiotool\\.net\/\\w+","//a[contains(@href,'aiotool.net/')]");
  5391. addObsoleteHost("xvideos\\.com\/files\/\\d+\/\\w+","//a[contains(@href,'xvideos.com/files')]");
  5392. addObsoleteHost("filebling\\.com\/dl\/\\d+\/\\d+\/\\w+","//a[contains(@href,'filebling.com/dl')]");
  5393. addObsoleteHost("loaded\\.it\/divx\/\\w+","//a[contains(@href,'loaded.it/divx')]");
  5394. addObsoleteHost("uploadcell\\.com\/\\w+\/\\w+","//a[contains(@href,'uploadcell.com')]");
  5395. addObsoleteHost("jakfile\\.com\/\\w+","//a[contains(@href,'jakfile.com/')]");
  5396. addObsoleteHost("uploadshare\\.cz\/download\/\\w+\/\\w+","//a[contains(@href,'uploadshare.cz/download')]");
  5397. addObsoleteHost("mangoshare\\.com\/\\w+","//a[contains(@href,'mangoshare.com')]");
  5398. addObsoleteHost("ugotfile\\.com\/file\/\\d+\/\\w+","//a[contains(@href,'ugotfile.com/file')]");
  5399. addObsoleteHost("filestab\\.com\/\\w+","//a[contains(@href,'filestab.com')]");
  5400. addObsoleteHost("dotavi\\.com\/\\w+\/.","//a[contains(@href,'dotavi.com/')]");
  5401. addObsoleteHost("crazyupload\\.com\/\\w+","//a[contains(@href,'crazyupload.com')]");
  5402. addObsoleteHost("gaiafile\\.com\/\\w+","//a[contains(@href,'gaiafile.com')]");
  5403. addObsoleteHost("sharejunky\\.com\/\\w+","//a[contains(@href,'sharejunky.com')]");
  5404. addObsoleteHost("fileho\\.com\/download\/\\d+","//a[contains(@href,'fileho.com/download')]");
  5405. addObsoleteHost("(?:bigandfree|BigAndFree)\\.com\/\\d+","//a[contains(@href,'bigandfree.com') or contains(@href,'BigAndFree.com')]");
  5406. addObsoleteHost("bigfile\\.in\/\\w+","//a[contains(@href,'bigfile.in')]");
  5407. addObsoleteHost("bigshare\\.eu\/download\\.php\\?id=","//a[contains(@href,'bigshare.eu/download.php')]");
  5408. addObsoleteHost("dahosting\\.org\/dl\/\\w+","//a[contains(@href,'dahosting.org/dl')]");
  5409. addObsoleteHost("digisofts\\.net\/\\w+","//a[contains(@href,'digisofts.net')]");
  5410. addObsoleteHost("file4save\\.com\/\\w+\/\\w+","//a[contains(@href,'file4save.com')]");
  5411. addObsoleteHost("filereactor\\.com\/\\w+","//a[contains(@href,'filereactor.com/')]");
  5412. addObsoleteHost("filechip\\.com\/\\w+","//a[contains(@href,'filechip.com')]");
  5413. addObsoleteHost("filescloud\\.com\/\\w+\/\\w+","//a[contains(@href,'filescloud.com')]");
  5414. addObsoleteHost("saveqube\\.com\/getfile\/\\w+","//a[contains(@href,'saveqube.com/getfile')]");
  5415. addObsoleteHost("www2\\.turboshare\\.de\/v\/\\d+","//a[contains(@href,'turboshare.de/v')]");
  5416. addObsoleteHost("z-upload\\.com\/\\w+","//a[contains(@href,'z-upload.com')]");
  5417. addObsoleteHost("youshare\\.com\/view\\.php","//a[contains(@href,'youshare.com/view')]");
  5418. addObsoleteHost("jiffyupload\\.com\/\\w+","//a[contains(@href,'jiffyupload.com')]");
  5419. addObsoleteHost("gigeshare\\.com\/preview\/\\w+","//a[contains(@href,'gigeshare.com')]");
  5420. addObsoleteHost("datenklo\\.net\/dl","//a[contains(@href,'datenklo.net')]");
  5421. addObsoleteHost("upload\\.dj\/download\\.php\\?id=\\w+","//a[contains(@href,'upload.dj/download.php')]");
  5422. addObsoleteHost("loadfiles\\.in\/\\w+\/","//a[contains(@href,'loadfiles.in')]");
  5423. addObsoleteHost("upit\\.to\/file:\\w+\/","//a[contains(@href,'upit.to/file')]");
  5424. addObsoleteHost("zshare\\.net\/(?:download|video|audio)\/\\w+","//a[contains(@href,'zshare.net/')]");
  5425. addObsoleteHost("refile\\.net\/f\/\\?\\w+","//a[contains(@href,'refile.net/f/')]");
  5426. addObsoleteHost("dsfileshare\\.com\/download","//a[contains(@href,'dsfileshare.com/download')]");
  5427. addObsoleteHost("sharesimple\\.net\/\\w{2}\/download","//a[contains(@href,'sharesimple.net')]");
  5428. addObsoleteHost("(?:s\\d+\\.|)4files\\.net\/\\d+","//a[contains(@href,'4files.net')]");
  5429. addObsoleteHost("odsiebie\\.com\/pokaz\/\\d+","//a[contains(@href,'odsiebie.com/pokaz')]");
  5430. addObsoleteHost("filenavi\\.com\/direct\/\\w+","//a[contains(@href,'filenavi.com/direct')]");
  5431. addObsoleteHost("3oof\\.com\/\\w+","//a[contains(@href,'3oof.com/')]");
  5432. addObsoleteHost("meshwaar\\.com\/\\w+","//a[contains(@href,'meshwaar.com')]");
  5433. addObsoleteHost("maxupload\\.com\/files\/\\w+","//a[contains(@href,'maxupload.com/files')]");
  5434. addObsoleteHost("share\\.cx\/videos\/\\d+","//a[contains(@href,'share.cx/videos')]");
  5435. addObsoleteHost("atserver\\.eu\/(?:\\w{2}\/|)download\/\\d+","//a[contains(@href,'atserver.eu')]");
  5436. addObsoleteHost("file2upload\\.net\/download\/\\d+","//a[contains(@href,'file2upload.net/download')]");
  5437. addObsoleteHost("filebling\\.com\/\\w+","//a[contains(@href,'filebling.com')]");
  5438. addObsoleteHost("turboshare\\.(?:eu|com)\/files","//a[contains(@href,'turboshare.') and contains(@href,'/files')]");
  5439. addObsoleteHost("rarhost\\.com\/download","//a[contains(@href,'rarhost.com/download')]");
  5440. addObsoleteHost("isharehd\\.com\/\\w+","//a[contains(@href,'isharehd.com')]");
  5441. addObsoleteHost("datenklo\\.net\/file\\.php\\?id=\\w+","//a[contains(@href,'datenklo.net/file.php')]");
  5442. addObsoleteHost("file2share\\.biz\/download\\.php\\?id=\\w+","//a[contains(@href,'file2share.biz/download.php')]");
  5443. addObsoleteHost("savefiles\\.net\/d\/\\w+\\.html","//a[contains(@href,'savefiles.net/d')]");
  5444. addObsoleteHost("bestsharing\\.com\/files\/\\w+","//a[contains(@href,'bestsharing.com/files')]");
  5445. addObsoleteHost("filecache\\.de\/\\d+","//a[contains(@href,'filecache.de/')]");
  5446. addObsoleteHost("i741\\.com\/files\/\\w+","//a[contains(@href,'i741.com/files')]");
  5447. addObsoleteHost("dataup\\.de\/\\d+","//a[contains(@href,'dataup.de')]");
  5448. addObsoleteHost("fofly\\.com\/\\w+","//a[contains(@href,'fofly.com')]");
  5449. addObsoleteHost("shareonall\\.com\/\\w+","//a[contains(@href,'shareonall.com')]");
  5450. addObsoleteHost("sexuploader\\.com\/(?:|..\/)\\?[d|v]=\\w{8}","//a[contains(@href,'sexuploader.com')]");
  5451. 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')]");
  5452. addObsoleteHost("uploadhyper\\.com\/file\/","//a[contains(@href,'uploadhyper.com')]");
  5453. addObsoleteHost("filespawn\\.com\/file\/","//a[contains(@href,'filespawn.com')]");
  5454. addObsoleteHost("caizzii\\.com\/(?:download|\\?file=)","//a[contains(@href,'caizzii.com')]");
  5455. addObsoleteHost("volnyweb\\.cz\/files\/get\/[\\w-_]+","//a[contains(@href,'volnyweb.cz/files')]");
  5456. addObsoleteHost("gotupload\\.com\/\\w+","//a[contains(@href,'gotupload.com/')]");
  5457. addObsoleteHost("mooload\\.com\/new\/file\\.php\\?file=files\/\\d+\/\\d+","//a[contains(@href,'mooload.com/new/file')]");
  5458. addObsoleteHost("z\\d+\\.zupload\\.com\/download\\.php\\?file=getfile&filepath=\\d+","//a[contains(@href,'zupload.com/download')]");
  5459. addObsoleteHost("mytempdir\\.com\/\\d+","//a[contains(@href,'mytempdir.com/')]");
  5460. addObsoleteHost("usershare\\.net\/\\w+","//a[contains(@href,'usershare.net/')]");
  5461. addObsoleteHost("qshare\\.com\/get\/\\d+\/.","//a[contains(@href,'qshare.com/get')]");
  5462. addObsoleteHost("filescash\\.net\/file\/\\d+","//a[contains(@href,'filescash.net/file')]");
  5463. addObsoleteHost("metahyper\\.com\/\\w+","//a[contains(@href,'metahyper.com/')]");
  5464. addObsoleteHost("combozip\\.com\/\\w+","//a[contains(@href,'combozip.com/')]");
  5465. addObsoleteHost("anonstream\\.com\/get_\\w+","//a[contains(@href,'anonstream.com/get_')]");
  5466. addObsoleteHost("x7\\.to\/\\w+","//a[contains(@href,'x7.to/')]");
  5467. addObsoleteHost("uploadbox\\.com\/files\/\\w+","//a[contains(@href,'uploadbox.com/files')]");
  5468. addObsoleteHost("(?:flyupload\\.)?(?:enterupload|flyupload)\\.com\/[\\?\\w]+","//a[contains(@href,'enterupload.com/') or contains(@href,'flyupload.com/')]");
  5469. addObsoleteHost("filepoint\\.de\/dl\/\\w+","//a[contains(@href,'filepoint.de/dl')]");
  5470. addObsoleteHost("icushare\\.com\/\\w+","//a[contains(@href,'icushare.com/')]");
  5471. addObsoleteHost("oron\\.com\/\\w+","//a[contains(@href,'oron.com/')]");
  5472. addObsoleteHost("mystream\\.to\/file\\-\\d+","//a[contains(@href,'mystream.to/file')]");
  5473. addObsoleteHost("x-fs\\.com\/download\\.php\\?id=\\w+","//a[contains(@href,'x-fs.com/download')]");
  5474. addObsoleteHost("srapid\\.eu\/\\w+","//a[contains(@href,'srapid.eu/')]");
  5475. addObsoleteHost("shareshared\\.com\/\\w+","//a[contains(@href,'shareshared.com/')]");
  5476. addObsoleteHost("sosame\\.cz\/\\w+","//a[contains(@href,'sosame.cz/')]");
  5477. addObsoleteHost("s\\d+\\.filesdump\\.com\/file\/\\w+","//a[contains(@href,'filesdump.com/file')]");
  5478. addObsoleteHost("2-klicks\\.de\/\\?d=\\w+","//a[contains(@href,'2-klicks.de/?d=')]");
  5479. addObsoleteHost("silofiles\\.com\/file\/\\d+","//a[contains(@href,'silofiles.com/file')]");
  5480. addObsoleteHost("upfile\\.in\/\\w+","//a[contains(@href,'upfile.in/')]");
  5481. addObsoleteHost("filehook\\.com\/\\w+","//a[contains(@href,'filehook.com/')]");
  5482. addObsoleteHost("mojofile\\.com\/\\w+","//a[contains(@href,'mojofile.com/')]");
  5483. addObsoleteHost("cloudcache\\.cc\/\\w+","//a[contains(@href,'cloudcache.cc/')]");
  5484. addObsoleteHost("1hostclick\\.com\/\\w+","//a[contains(@href,'1hostclick.com/')]");
  5485. addObsoleteHost("4bytez\\.com\/\\w+","//a[contains(@href,'4bytez.com/')]");
  5486. addObsoleteHost("uploadking\\.com\/\\w+","//a[contains(@href,'uploadking.com/')]");
  5487. addObsoleteHost("nahraj\\.cz\/(?:content|down)\/\\w+","//a[contains(@href,'nahraj.cz/')]");
  5488. addObsoleteHost("megarapid\\.eu\/files\/\\d+","//a[contains(@href,'megarapid.eu/files')]");
  5489. addObsoleteHost("(?:fileserve|uploadstation)\\.com\/(?:file|list)\/\\w+","//a[contains(@href,'fileserve.com/') or contains(@href,'uploadstation.com/')]");
  5490. addObsoleteHost("uploadhere\\.com\/\\w+","//a[contains(@href,'uploadhere.com/')]");
  5491. addObsoleteHost("dualshare\\.com\/\\w+","//a[contains(@href,'dualshare.com/')]");
  5492. addObsoleteHost("yourfilehost\\.com\/media","//a[contains(@href,'yourfilehost.com/media')]");
  5493. addObsoleteHost("ftp2share\\.com\/file\/\\w+","//a[contains(@href,'ftp2share.com/file')]");
  5494. addObsoleteHost("storeandserve\\.com\/download\/\\d+","//a[contains(@href,'storeandserve.com/download')]");
  5495. addObsoleteHost("mountfile\\.com\/file(?:\/\\w+){2}","//a[contains(@href,'mountfile.com/file')]");
  5496. addObsoleteHost("save\\.am\/files\/\\w+","//a[contains(@href,'save.am/files')]");
  5497. addObsoleteHost("transitfiles\\.com\/dl\/\\w+","//a[contains(@href,'transitfiles.com/dl')]");
  5498. addObsoleteHost("smartuploader\\.com\/file\\.php\\?f=\\d+","//a[contains(@href,'smartuploader.com/file.php?=')]");
  5499. addObsoleteHost("skipfile\\.com\/\\w+","//a[contains(@href,'skipfile.com/')]");
  5500. addObsoleteHost("stahnu\\.to\/[\\w\\?]+","//a[contains(@href,'stahnu.to/')]");
  5501. addObsoleteHost("flyshare\.cz\/(?:stahni\/|)\\d+","//a[contains(@href,'flyshare.cz/')]");
  5502. addObsoleteHost("(?:ddlani\\.me|ddlanime\\.com)\/\\w+","//a[contains(@href,'ddlani.me/') or contains(@href,'ddlanime.com/')]");
  5503. addObsoleteHost("loadly\\.com\/\\w+","//a[contains(@href,'loadly.com/')]");
  5504. addObsoleteHost("groovefile\\.com\/\\w+","//a[contains(@href,'groovefile.com/')]");
  5505. addObsoleteHost("filezlot\\.com\/\\w+","//a[contains(@href,'filezlot.com/')]");
  5506. addObsoleteHost("shareator\\.(?:net|com)\/\\w+","//a[contains(@href,'shareator.')]");
  5507. addObsoleteHost("yabadaba\\.ru\/files\/","//a[contains(@href,'yabadaba.ru/files/')]");
  5508. addObsoleteHost("rapidhide\\.com\/download\\.php\\?file=\\w+","//a[contains(@href,'rapidhide.com/download.php')]");
  5509. addObsoleteHost("filejungle\\.com\/[fl]\/\\w+","//a[contains(@href,'filejungle.com/')]");
  5510. addObsoleteHost("kewlshare\\.com\/dl\/\\d+","//a[contains(@href,'kewlshare.com/dl')]");
  5511. addObsoleteHost("petandrive\\.com\/file\/\\w+","//a[contains(@href,'petandrive.com/file')]");
  5512. addObsoleteHost("onionshare\\.com\/\\w+","//a[contains(@href,'onionshare.com/')]");
  5513. addObsoleteHost("rapidable\\.com\/\\w+\/download\\.php\\?id=","//a[contains(@href,'rapidable.com/')]");
  5514. addObsoleteHost("filesdump\\.com\/file\/\\w+\/\\d+","//a[contains(@href,'filesdump.com/file')]");
  5515. addObsoleteHost("file2box\\.(?:net|com)\/\\w+","//a[contains(@href,'file2box.')]");
  5516. addObsoleteHost("(?:filesonic|sharingmatrix|wupload)(?:\\.\\w+){1,2}\/(?:file|folder)\/\\w+","//a[contains(@href,'filesonic.') or contains(@href,'sharingmatrix.com') or contains(@href,'wupload.')]");
  5517. addObsoleteHost("bloggerarticles\\.com\/\\w+","//a[contains(@href,'bloggerarticles.com/')]");
  5518. addObsoleteHost("mojedata\\.sk/","//a[contains(@href,'mojedata.sk/')]");
  5519. addObsoleteHost("sharpfile\\.com\/\\w+","//a[contains(@href,'sharpfile.com/')]");
  5520. addObsoleteHost("upgrand\\.com\/\\w+","//a[contains(@href,'upgrand.com/')]");
  5521. addObsoleteHost("nasdilej\\.cz\/\\w+","//a[contains(@href,'nasdilej.cz/')]");
  5522. addObsoleteHost("mediatack\\.cz\/stahuj/\\w+","//a[contains(@href,'mediatack.cz/stahuj/')]");
  5523. addObsoleteHost("share-it\\.to\/file/\\w+","//a[contains(@href,'share-it.to/file/')]");
  5524. addObsoleteHost("primeupload\\.com\/file/\\w+","//a[contains(@href,'primeupload.com/file/')]");
  5525. addObsoleteHost("(?:uploads\\.glumbo|glumbouploads)\\.com\/\\w+","//a[contains(@href,'uploads.glumbo.com') or contains(@href,'glumbouploads.com')]");
  5526. addObsoleteHost("filebeer\\.info\/\\w+","//a[contains(@href,'filebeer.info/')]");
  5527. addObsoleteHost("baberepublic\\.com\/link\/\\w+","//a[contains(@href,'baberepublic.com/link/')]");
  5528. addObsoleteHost("xtu\\.me\/\\w+","//a[contains(@href,'xtu.me/')]");
  5529. addObsoleteHost("sharebase\\.de\/files\/\\w+","//a[contains(@href,'sharebase.de/files/')]");
  5530. addObsoleteHost("filerobo\\.com\/\\w+","//a[contains(@href,'filerobo.com/')]");
  5531. addObsoleteHost("filevelocity\\.com\/\\w+","//a[contains(@href,'filevelocity.com/')]");
  5532. addObsoleteHost("filezpro\\.com\/\\w+","//a[contains(@href,'filezpro.com/')]");
  5533. addObsoleteHost("file4sharing\\.com\/\\w+","//a[contains(@href,'file4sharing.com/')]");
  5534. addObsoleteHost("cing\\.be\/\\w+","//a[contains(@href,'cing.be/')]");
  5535. addObsoleteHost("ufile\\.eu\/\\w+","//a[contains(@href,'ufile.eu/')]");
  5536. addObsoleteHost("pigsonic\\.com\/\\w+","//a[contains(@href,'pigsonic.com/')]");
  5537. addObsoleteHost("fileupped\\.com\/\\w+","//a[contains(@href,'fileupped.com/')]");
  5538. addObsoleteHost("sharerun\\.com\/\\w+","//a[contains(@href,'sharerun.com/')]");
  5539. addObsoleteHost("rapidslnare\\.com\/\\w+","//a[contains(@href,'rapidslnare.com/')]");
  5540. addObsoleteHost("monsteruploads\\.eu\/\\w+","//a[contains(@href,'monsteruploads.eu/')]");
  5541. addObsoleteHost("b9bb\\.com\/\\w+","//a[contains(@href,'b9bb.com/')]");
  5542. addObsoleteHost("jamber\\.info\/\\w+","//a[contains(@href,'jamber.info/')]");
  5543. addObsoleteHost("(?:megaftp|MegaFTP)\\.com\/\\w+","//a[contains(@href,'megaftp.com/') or contains(@href,'MegaFTP.com/')]");
  5544. addObsoleteHost("desiupload\\.net\/\\?d=\\w+","//a[contains(@href,'desiupload.net/')]");
  5545. addObsoleteHost("file27\\.com\/\\w+","//a[contains(@href,'file27.com/')]");
  5546. addObsoleteHost("yastorage\\.com\/\\w+","//a[contains(@href,'yastorage.com/')]");
  5547. addObsoleteHost("filehost\\.ws\/\\w+","//a[contains(@href,'filehost.ws/')]");
  5548. addObsoleteHost("copyload\\.com\/\\w+","//a[contains(@href,'copyload.com/')]");
  5549. addObsoleteHost("venusfile\\.com\/\\w+","//a[contains(@href,'venusfile.com/')]");
  5550. addObsoleteHost("aieshare\\.com\/\\w+","//a[contains(@href,'aieshare.com/')]");
  5551. addObsoleteHost("fileza\\.net\/\\w+","//a[contains(@href,'fileza.net/')]");
  5552. addObsoleteHost("filerose\\.com\/\\w+","//a[contains(@href,'filerose.com/')]");
  5553. addObsoleteHost("squillion\\.com\/\\w+","//a[contains(@href,'squillion.com/')]");
  5554. addObsoleteHost("fileprohost\\.com\/\\w+","//a[contains(@href,'fileprohost.com/')]");
  5555. addObsoleteHost("bitbonus\\.com\/download\/\\w+","//a[contains(@href,'bitbonus.com/')]");
  5556. addObsoleteHost("warserver\\.cz\/\\w+","//a[contains(@href,'warserver.cz/')]");
  5557. addObsoleteHost("uload\\.to\/\\w+","//a[contains(@href,'uload.to/')]");
  5558. addObsoleteHost("sharedbit\\.net\/\\w+","//a[contains(@href,'sharedbit.net/')]");
  5559. addObsoleteHost("megaload\\.it\/\\w+","//a[contains(@href,'megaload.it/')]");
  5560. addObsoleteHost("filewinds\\.com\/\\w+","//a[contains(@href,'filewinds.com/')]");
  5561. addObsoleteHost("uploadcore\\.com\/\\w+","//a[contains(@href,'uploadcore.com/')]");
  5562. addObsoleteHost("syfiles\\.com\/\\w+","//a[contains(@href,'syfiles.com/')]");
  5563. addObsoleteHost("eyesfile\\.com\/\\w+","//a[contains(@href,'eyesfile.com/')]");
  5564. addObsoleteHost("hotfile\\.com\/\\w+","//a[contains(@href,'hotfile.com/')]");
  5565. addObsoleteHost("superupl\\.com\/\\w+","//a[contains(@href,'superupl.com/')]");
  5566. addObsoleteHost("oteupload\\.com\/\\w+","//a[contains(@href,'oteupload.com/')]");
  5567. addObsoleteHost("henchfile\\.com\/\\w+","//a[contains(@href,'henchfile.com/')]");
  5568. addObsoleteHost("HenchFile\\.com\/\\w+","//a[contains(@href,'HenchFile.com/')]");
  5569. addObsoleteHost("filegag\\.com\/\\w+","//a[contains(@href,'filegag.com/')]");
  5570. addObsoleteHost("filedefend\\.com\/\\w+","//a[contains(@href,'filedefend.com/')]");
  5571. addObsoleteHost("hotfiles\\.ws\/\\w+","//a[contains(@href,'hotfiles.ws/')]");
  5572. addObsoleteHost("share-rapid\\.com\/\\w+","//a[contains(@href,'share-rapid.com/')]");
  5573. addObsoleteHost("rapids\\.cz\/\\w+","//a[contains(@href,'rapids.cz/')]");
  5574. addObsoleteHost("share-credit\\.cz\/\\w+","//a[contains(@href,'share-credit.cz/')]");
  5575. addObsoleteHost("share-central\\.cz\/\\w+","//a[contains(@href,'share-central.cz/')]");
  5576. addObsoleteHost("share-ms\\.cz\/\\w+","//a[contains(@href,'share-ms.cz/')]");
  5577. addObsoleteHost("share-net\\.cz\/\\w+","//a[contains(@href,'share-net.cz/')]");
  5578. addObsoleteHost("srapid\\.cz\/\\w+","//a[contains(@href,'srapid.cz/')]");
  5579. addObsoleteHost("share-rapid\\.cz\/\\w+","//a[contains(@href,'share-rapid.cz/')]");
  5580. addObsoleteHost("wooupload\\.com\/\\w+","//a[contains(@href,'wooupload.com/')]");
  5581. addObsoleteHost("megabitshare\\.com\/\\w+","//a[contains(@href,'megabitshare.com/')]");
  5582. addObsoleteHost("uploking\\.com\/\\w+","//a[contains(@href,'uploking.com/')]");
  5583. addObsoleteHost("esnips\\.com\/\\w+","//a[contains(@href,'esnips.com/')]");
  5584. addObsoleteHost("uplly\\.com\/\\w+","//a[contains(@href,'uplly.com/')]");
  5585. addObsoleteHost("ufox\\.com\/\\w+","//a[contains(@href,'ufox.com/')]");
  5586. addObsoleteHost("clz\\.to\/\\w+","//a[contains(@href,'clz.to/')]");
  5587. addObsoleteHost("cloudzer\\.net\/\\w+","//a[contains(@href,'cloudzer.net/')]");
  5588. addObsoleteHost("cloudzer\\.com\/\\w+","//a[contains(@href,'cloudzer.com/')]");
  5589. addObsoleteHost("extabit\\.com\/\\w+","//a[contains(@href,'extabit.com/')]");
  5590. addObsoleteHost("uploadwaste\\.com\/\\w+","//a[contains(@href,'uploadwaste.com/')]");
  5591. addObsoleteHost("247upload\\.com\/\\w+","//a[contains(@href,'uploadwaste.com/')]");
  5592. addObsoleteHost("2download\\.de\/\\w+","//a[contains(@href,'2download.de/')]");
  5593. addObsoleteHost("4fastfile\\.com\/\\w+","//a[contains(@href,'4fastfile.com/')]");
  5594. addObsoleteHost("asixfiles\\.com\/\\w+","//a[contains(@href,'asixfiles.com/')]");
  5595. addObsoleteHost("berofile\\.com\/\\w+","//a[contains(@href,'berofile.com/')]");
  5596. addObsoleteHost("bigupload\\.com\/\\w+","//a[contains(@href,'bigupload.com/')]");
  5597. addObsoleteHost("cepzo\\.com\/\\w+","//a[contains(@href,'cepzo.com/')]");
  5598. addObsoleteHost("czshare\\.com\/\\w+","//a[contains(@href,'czshare.com/')]");
  5599. addObsoleteHost("clouds\\.to\/\\w+","//a[contains(@href,'clouds.to/')]");
  5600. addObsoleteHost("cobrashare\\.sk\/\\w+","//a[contains(@href,'cobrashare.sk/')]");
  5601. addObsoleteHost("coraldrive\\.net\/\\w+","//a[contains(@href,'coraldrive.net/')]");
  5602. addObsoleteHost("cyberlocker\\.ch\/\\w+","//a[contains(@href,'cyberlocker.ch/')]");
  5603. addObsoleteHost("darkport\\.org\/\\w+","//a[contains(@href,'darkport.org/')]");
  5604. addObsoleteHost("dark-uploads\\.com\/\\w+","//a[contains(@href,'dark-uploads.com/')]");
  5605. addObsoleteHost("davvas\\.com\/\\w+","//a[contains(@href,'davvas.com/')]");
  5606. addObsoleteHost("enigmashare\\.com\/\\w+","//a[contains(@href,'enigmashare.com/')]");
  5607. addObsoleteHost("erofly\\.cz\/\\w+","//a[contains(@href,'erofly.cz/')]");
  5608. addObsoleteHost("fastsonic\\.net\/\\w+","//a[contains(@href,'fastsonic.net/')]");
  5609. addObsoleteHost("filebox\\.com\/\\w+","//a[contains(@href,'filebox.com/')]");
  5610. addObsoleteHost("filecity\\.net\/\\w+","//a[contains(@href,'filecity.net/')]");
  5611. addObsoleteHost("filedap\\.com\/\\w+","//a[contains(@href,'filedap.com/')]");
  5612. addObsoleteHost("filedino\\.com\/\\w+","//a[contains(@href,'filedino.com/')]");
  5613. addObsoleteHost("filedownloads\\.org\/\\w+","//a[contains(@href,'filedownloads.org/')]");
  5614. addObsoleteHost("filefolks\\.com\/\\w+","//a[contains(@href,'filefolks.com/')]");
  5615. addObsoleteHost("fileking\\.co\/\\w+","//a[contains(@href,'fileking.co/')]");
  5616. addObsoleteHost("filemates\\.com\/\\w+","//a[contains(@href,'filemates.com/')]");
  5617. addObsoleteHost("files\\.to\/\\w+","//a[contains(@href,'files.to/')]");
  5618. addObsoleteHost("files2k\\.eu\/\\w+","//a[contains(@href,'files2k.eu/')]");
  5619. addObsoleteHost("filesector\\.cc\/\\w+","//a[contains(@href,'filesector.cc/')]");
  5620. addObsoleteHost("filesega\\.com\/\\w+","//a[contains(@href,'filesega.com/')]");
  5621. addObsoleteHost("filesend\\.net\/\\w+","//a[contains(@href,'filesend.net/')]");
  5622. addObsoleteHost("filestay\\.com\/\\w+","//a[contains(@href,'filestay.com/')]");
  5623. addObsoleteHost("filestrum\\.com\/\\w+","//a[contains(@href,'filestrum.com/')]");
  5624. addObsoleteHost("fileuplo\\.de\/\\w+","//a[contains(@href,'fileuplo.de/')]");
  5625. addObsoleteHost("fileupup\\.com\/\\w+","//a[contains(@href,'fileupup.com/')]");
  5626. addObsoleteHost("forunesia\\.com\/\\w+","//a[contains(@href,'forunesia.com/')]");
  5627. addObsoleteHost("freeuploads\\.fr\/\\w+","//a[contains(@href,'freeuploads.fr/')]");
  5628. addObsoleteHost("uploa\\.dk\/\\w+","//a[contains(@href,'uploa.dk/')]");
  5629. addObsoleteHost("getthebit\\.com\/\\w+","//a[contains(@href,'getthebit.com/')]");
  5630. addObsoleteHost("getzilla\\.net\/\\w+","//a[contains(@href,'getzilla.net/')]");
  5631. addObsoleteHost("goldfile\\.eu\/\\w+","//a[contains(@href,'goldfile.eu/')]");
  5632. addObsoleteHost("good\\.com\/\\w+","//a[contains(@href,'good.com/')]");
  5633. addObsoleteHost("grupload\\.com\/\\w+","//a[contains(@href,'grupload.com/')]");
  5634. addObsoleteHost("hellfile\\.com\/\\w+","//a[contains(@href,'hellfile.com/')]");
  5635. addObsoleteHost("hipfile\\.com\/\\w+","//a[contains(@href,'hipfile.com/')]");
  5636. addObsoleteHost("hitfile\\.com\/\\w+","//a[contains(@href,'hitfile.com/')]");
  5637. addObsoleteHost("hulkfile\\.eu\/\\w+","//a[contains(@href,'hulkfile.eu/')]");
  5638. addObsoleteHost("i-filez\\.com\/\\w+","//a[contains(@href,'i-filez.com/')]");
  5639. addObsoleteHost("ifile\\.ws\/\\w+","//a[contains(@href,'ifile.ws/')]");
  5640. addObsoleteHost("kupload\\.org\/\\w+","//a[contains(@href,'kupload.org/')]");
  5641. addObsoleteHost("duckfile\\.net\/\\w+","//a[contains(@href,'duckfile.net/')]");
  5642. addObsoleteHost("packupload\\.com\/\\w+","//a[contains(@href,'packupload.com/')]");
  5643. addObsoleteHost("terafile\\.com\/\\w+","//a[contains(@href,'terafile.com/')]");
  5644. addObsoleteHost("terafile\\.co\/\\w+","//a[contains(@href,'terafile.co/')]");
  5645. addObsoleteHost("fileom\\.com\/\\w+","//a[contains(@href,'fileom.com/')]");
  5646. addObsoleteHost("luckyshare\\.net\/\\w+","//a[contains(@href,'luckyshare.net/')]");
  5647. addObsoleteHost("lemuploads\\.com\/\\w+","//a[contains(@href,'lemuploads.com/')]");
  5648. addObsoleteHost("limelinx\\.com\/\\w+","//a[contains(@href,'limelinx.com/')]");
  5649. addObsoleteHost("maxshare\\.pl\/\\w+","//a[contains(@href,'maxshare.pl/')]");
  5650. addObsoleteHost("megarelease\\.org\/\\w+","//a[contains(@href,'megarelease.org/')]");
  5651. addObsoleteHost("megashare\\.com\/\\w+","//a[contains(@href,'megashare.com/')]");
  5652. addObsoleteHost("minus\\.com\/\\w+","//a[contains(@href,'minus.com/')]");
  5653. addObsoleteHost("mlfat4arab\\.com\/\\w+","//a[contains(@href,'mlfat4arab.com/')]");
  5654. addObsoleteHost("multishare\\.cz\/\\w+","//a[contains(@href,'multishare.cz/')]");
  5655. addObsoleteHost("nirafile\\.com\/\\w+","//a[contains(@href,'nirafile.com/')]");
  5656. addObsoleteHost("ok2upload\\.com\/\\w+","//a[contains(@href,'ok2upload.com/')]");
  5657. addObsoleteHost("peejeshare\\.com\/\\w+","//a[contains(@href,'peejeshare.com/')]");
  5658. addObsoleteHost("premiuns\\.org\/\\w+","//a[contains(@href,'premiuns.org/')]");
  5659. addObsoleteHost("przeklej\\.net\/\\w+","//a[contains(@href,'przeklej.net/')]");
  5660. addObsoleteHost("qkup\\.net\/\\w+","//a[contains(@href,'qkup.net/')]");
  5661. addObsoleteHost("rapidupload\\.sk\/\\w+","//a[contains(@href,'rapidupload.sk/')]");
  5662. addObsoleteHost("rockdizfile\\.com\/\\w+","//a[contains(@href,'rockdizfile.com/')]");
  5663. addObsoleteHost("rocketfile\\.net\/\\w+","//a[contains(@href,'rocketfile.net/')]");
  5664. addObsoleteHost("share-now\\.net\/\\w+","//a[contains(@href,'share-now.net/')]");
  5665. addObsoleteHost("share76\\.com\/\\w+","//a[contains(@href,'share76.com/')]");
  5666. addObsoleteHost("sharebees\\.com\/\\w+","//a[contains(@href,'sharebees.com/')]");
  5667. addObsoleteHost("sharefiles\\.co\/\\w+","//a[contains(@href,'sharefiles.co/')]");
  5668. addObsoleteHost("slingfile\\.com\/\\w+","//a[contains(@href,'slingfile.com/')]");
  5669. addObsoleteHost("sms4file\\.com\/\\w+","//a[contains(@href,'sms4file.com/')]");
  5670. addObsoleteHost("space4file\\.com\/\\w+","//a[contains(@href,'space4file.com/')]");
  5671. addObsoleteHost("tigershare\\.net\/\\w+","//a[contains(@href,'tigershare.net/')]");
  5672. addObsoleteHost("toucansharing\\.com\/\\w+","//a[contains(@href,'toucansharing.com/')]");
  5673. addObsoleteHost("ubuntuone\\.com\/\\w+","//a[contains(@href,'ubuntuone.com/')]");
  5674. addObsoleteHost("unextfiles\\.com\/\\w+","//a[contains(@href,'unextfiles.com/')]");
  5675. addObsoleteHost("upaj\\.pl\/\\w+","//a[contains(@href,'upaj.pl/')]");
  5676. addObsoleteHost("upfile\\.biz\/\\w+","//a[contains(@href,'upfile.biz/')]");
  5677. addObsoleteHost("uploadbin\\.net\/\\w+","//a[contains(@href,'uploadbin.net/')]");
  5678. addObsoleteHost("uploadic\\.com\/\\w+","//a[contains(@href,'uploadic.com/')]");
  5679. addObsoleteHost("uploadinc\\.com\/\\w+","//a[contains(@href,'uploadinc.com/')]");
  5680. addObsoleteHost("uploading4u\\.eu\/\\w+","//a[contains(@href,'uploading4u.eu/')]");
  5681. addObsoleteHost("uploadjet\\.net\/\\w+","//a[contains(@href,'uploadjet.net/')]");
  5682. addObsoleteHost("uploadorb\\.com\/\\w+","//a[contains(@href,'uploadorb.com/')]");
  5683. addObsoleteHost("upthe\\.net\/\\w+","//a[contains(@href,'upthe.net/')]");
  5684. addObsoleteHost("uptorch\\.com\/\\w+","//a[contains(@href,'uptorch.com/')]");
  5685. addObsoleteHost("vidbox\\.yt\/\\w+","//a[contains(@href,'vidbox.yt/')]");
  5686. addObsoleteHost("videozer\\.com\/\\w+","//a[contains(@href,'videozer.com/')]");
  5687. addObsoleteHost("vreer\\.com\/\\w+","//a[contains(@href,'vreer.com/')]");
  5688. addObsoleteHost("wallobit\\.com\/\\w+","//a[contains(@href,'wallobit.com/')]");
  5689. addObsoleteHost("zooupload\\.com\/\\w+","//a[contains(@href,'zooupload.com/')]");
  5690. addObsoleteHost("xerver\\.co\/\\w+","//a[contains(@href,'xerver.co/')]");
  5691. addObsoleteHost("privatefiles\\.com\/\\w+","//a[contains(@href,'privatefiles.com/')]");
  5692. addObsoleteHost("bitshare\\.com\/\\w+","//a[contains(@href,'bitshare.com/')]");
  5693. addObsoleteHost("asfile\\.com\/\\w+","//a[contains(@href,'asfile.com/')]");
  5694. addObsoleteHost("billionuploads\\.com\/\\w+","//a[contains(@href,'billionuploads.com/')]");
  5695. addObsoleteHost("\\*{7,100}\/[\\w\\d]+","//a[contains(@href,'*******/')]");
  5696. addObsoleteHost("filesaur\\.com\/\\w+","//a[contains(@href,'filesaur.com/')]");
  5697. addObsoleteHost("rapidshare\\.com\/\\w+","//a[contains(@href,'rapidshare.com/')]");
  5698. addObsoleteHost("rapidshare\\.ru\/\\w+","//a[contains(@href,'rapidshare.ru/')]");
  5699. addObsoleteHost("filesfrog\\.net\/\\w+","//a[contains(@href,'filesfrog.net/')]");
  5700. addObsoleteHost("4savefile\\.com\/\\w+","//a[contains(@href,'4savefile.com/')]");
  5701. addObsoleteHost("bayfiles\\.com\/\\w+","//a[contains(@href,'bayfiles.com/')]");
  5702. addObsoleteHost("bayfiles\\.net\/\\w+","//a[contains(@href,'bayfiles.net/')]");
  5703. addObsoleteHost("dodane\\.pl\/\\w+","//a[contains(@href,'dodane.pl/')]");
  5704. addObsoleteHost("dotsemper\\.com\/\\w+","//a[contains(@href,'dotsemper.com/')]");
  5705. addObsoleteHost("egofiles\\.com\/\\w+","//a[contains(@href,'egofiles.com/')]");
  5706. addObsoleteHost("epicshare\\.net\/\\w+","//a[contains(@href,'epicshare.net/')]");
  5707. addObsoleteHost("fiberupload\\.net\/\\w+","//a[contains(@href,'fiberupload.net/')]");
  5708. addObsoleteHost("filemonkey\\.in\/\\w+","//a[contains(@href,'filemonkey.in/')]");
  5709. addObsoleteHost("filemonster\\.net\/\\w+","//a[contains(@href,'filemonster.net/')]");
  5710. addObsoleteHost("filepom\\.com\/\\w+","//a[contains(@href,'filepom.com/')]");
  5711. addObsoleteHost("filesbb\\.com\/\\w+","//a[contains(@href,'filesbb.com/')]");
  5712. addObsoleteHost("fileshareup\\.com\/\\w+","//a[contains(@href,'fileshareup.com/')]");
  5713. addObsoleteHost("filevice\\.com\/\\w+","//a[contains(@href,'filevice.com/')]");
  5714. addObsoleteHost("gigaup\\.fr\/\\w+","//a[contains(@href,'gigaup.fr/')]");
  5715. addObsoleteHost("isavelink\\.com\/\\w+","//a[contains(@href,'isavelink.com/')]");
  5716. addObsoleteHost("loombo\\.com\/\\w+","//a[contains(@href,'loombo.com/')]");
  5717. addObsoleteHost("megafiles\\.se\/\\w+","//a[contains(@href,'megafiles.se/')]");
  5718. addObsoleteHost("migupload\\.com\/\\w+","//a[contains(@href,'migupload.com/')]");
  5719. addObsoleteHost("mydisc\\.net\/\\w+","//a[contains(@href,'mydisc.net/')]");
  5720. addObsoleteHost("nitrobits\\.com\/\\w+","//a[contains(@href,'nitrobits.com/')]");
  5721. addObsoleteHost("potload\\.com\/\\w+","//a[contains(@href,'potload.com/')]");
  5722. addObsoleteHost("redload\\.net\/\\w+","//a[contains(@href,'redload.net/')]");
  5723. addObsoleteHost("shareprofi\\.com\/\\w+","//a[contains(@href,'shareprofi.com/')]");
  5724. addObsoleteHost("sharesuper\\.info\/\\w+","//a[contains(@href,'sharesuper.info/')]");
  5725. addObsoleteHost("sinhro\\.net\/\\w+","//a[contains(@href,'sinhro.net/')]");
  5726. addObsoleteHost("speedfile\\.cz\/\\w+","//a[contains(@href,'speedfile.cz/')]");
  5727. addObsoleteHost("speedshare\\.org\/\\w+","//a[contains(@href,'speedshare.org/')]");
  5728. addObsoleteHost("storage.novoro\\.net\/\\w+","//a[contains(@href,'storage.novoro.net/')]");
  5729. addObsoleteHost("swankshare\\.com\/\\w+","//a[contains(@href,'swankshare.com/')]");
  5730. addObsoleteHost("swatupload\\.com\/\\w+","//a[contains(@href,'swatupload.com/')]");
  5731. addObsoleteHost("upafile\\.com\/\\w+","//a[contains(@href,'upafile.com/')]");
  5732. addObsoleteHost("uploadmachine\\.com\/\\w+","//a[contains(@href,'uploadmachine.com/')]");
  5733. addObsoleteHost("uploadsat\\.com\/\\w+","//a[contains(@href,'uploadsat.com/')]");
  5734. addObsoleteHost("upshared\\.com\/\\w+","//a[contains(@href,'upshared.com/')]");
  5735. addObsoleteHost("usefile\\.com\/\\w+","//a[contains(@href,'usefile.com/')]");
  5736. addObsoleteHost("yourfiles\\.to\/\\w+","//a[contains(@href,'yourfiles.to/')]");
  5737. addObsoleteHost("zomgupload\\.com\/\\w+","//a[contains(@href,'zomgupload.com/')]");
  5738. addObsoleteHost("~[\\w\\s~]*","//a[contains(@href,'//~') or contains(@href,'//www.~')]");
  5739. addObsoleteHost("filemup\\.com\/\\w+","//a[contains(@href,'filemup.com/')]");
  5740. addObsoleteHost("tuxfile\\.com\/\\w+","//a[contains(@href,'tuxfile.com/')]");
  5741. addObsoleteHost("ultramegabit\\.com\/\\w+","//a[contains(@href,'ultramegabit.com/')]");
  5742. addObsoleteHost("uploadto\\.us\/\\w+","//a[contains(@href,'uploadto.us/')]");
  5743. addObsoleteHost("filecore\\.co\\.nz\/\\w+","//a[contains(@href,'filecore.co.nz/')]");
  5744. addObsoleteHost("fileshare\\.in\\.ua\/\\w+","//a[contains(@href,'fileshare.in.ua/')]");
  5745. addObsoleteHost("firedrive\\.com\/\\w+","//a[contains(@href,'firedrive.com/')]");
  5746. addObsoleteHost("putlocker\\.com\/\\w+","//a[contains(@href,'putlocker.com/')]");
  5747. addObsoleteHost("lumfile\\.com\/\\w+","//a[contains(@href,'lumfile.com/')]");
  5748. addObsoleteHost("lumfile\\.se\/\\w+","//a[contains(@href,'lumfile.se/')]");
  5749. addObsoleteHost("lumfile\\.eu\/\\w+","//a[contains(@href,'lumfile.eu/')]");
  5750. addObsoleteHost("shared\\.com\/\\w+","//a[contains(@href,'shared.com/')]");
  5751. addObsoleteHost("stahovadlo\\.cz\/\\w+","//a[contains(@href,'stahovadlo.cz/')]");
  5752. addObsoleteHost("dizzcloud\\.com\/\\w+","//a[contains(@href,'dizzcloud.com/')]");
  5753. addObsoleteHost("ddlstorage\\.com\/\\w+","//a[contains(@href,'ddlstorage.com/')]");
  5754. addObsoleteHost("dataport\\.cz\/\\w+","//a[contains(@href,'dataport.cz/')]");
  5755. addObsoleteHost("daj\\.to\/\\w+","//a[contains(@href,'daj.to/')]");
  5756. addObsoleteHost("sockshare\\.com\/\\w+","//a[contains(@href,'sockshare.com/')]");
  5757. addObsoleteHost("2drive\\.net\/\\w+","//a[contains(@href,'2drive.net/')]");
  5758. addObsoleteHost("bl\\.st\/\\w+","//a[contains(@href,'bl.st/')]");
  5759. addObsoleteHost("uncapped-downloads\\.com\/\\w+","//a[contains(@href,'uncapped-downloads.com/')]");
  5760. addObsoleteHost("freakshare\\.net\/\\w+","//a[contains(@href,'freakshare.net/')]");
  5761. addObsoleteHost("freakshare\\.com\/\\w+","//a[contains(@href,'freakshare.com/')]");
  5762. addObsoleteHost("sharebeast\\.com\/\\w+","//a[contains(@href,'sharebeast.com/')]");
  5763. addObsoleteHost("tufiles\\.ru\/\\w+","//a[contains(@href,'tufiles.ru/')]");
  5764. addObsoleteHost("crisshare\\.com\/\\w+","//a[contains(@href,'crisshare.com/')]");
  5765. addObsoleteHost("ryushare\\.com\/\\w+","//a[contains(@href,'ryushare.com/')]");
  5766. addObsoleteHost("burnupload\\.com\/\\w+","//a[contains(@href,'burnupload.com') or contains(@href,'burnupload.ihiphop.com')]");
  5767. addObsoleteHost("down4files\\.com\/\\w+","//a[contains(@href,'down4files.com/')]");
  5768. addObsoleteHost("edoc\\.com\/\\w+","//a[contains(@href,'edoc.com/')]");
  5769. addObsoleteHost("migahost\\.com\/\\w+","//a[contains(@href,'migahost.com/')]");
  5770. addObsoleteHost("movreel\\.com\/\\w+","//a[contains(@href,'movreel.com/')]");
  5771. addObsoleteHost("newfileland\\.com\/\\w+","//a[contains(@href,'newfileland.com/')]");
  5772. addObsoleteHost("jumbofile\\.net\/\\w+","//a[contains(@href,'jumbofile.net/')]");
  5773. addObsoleteHost("krotix\\.net\/\\w+","//a[contains(@href,'krotix.net/')]");
  5774. addObsoleteHost("cramit\\.in\/\\w+","//a[contains(@href,'cramitin.net') or contains(@href,'cramit.in')]");
  5775. addObsoleteHost("netload\\.in\/\\w+","//a[contains(@href,'netload.in/')]")
  5776. addObsoleteHost("quickshare\\.cz\/\\w+","//a[contains(@href,'quickshare.cz/')]");
  5777. addObsoleteHost("filepost\\.com\/\\w+","//a[contains(@href,'filepost.com/')]");
  5778. addObsoleteHost("uploadhero\\.com\/\\w+","//a[contains(@href,'uploadhero.com/')]");
  5779. addObsoleteHost("uploadhero\\.co\/\\w+","//a[contains(@href,'uploadhero.co/')]");
  5780. addObsoleteHost("inafile\\.com\/\\w+","//a[contains(@href,'inafile.com/')]");
  5781. addObsoleteHost("megairon\\.net\/\\w+","//a[contains(@href,'megairon.net/')]");
  5782. addObsoleteHost("rapidsonic\\.com\/\\w+","//a[contains(@href,'rapidsonic.com/')]");
  5783. addObsoleteHost("fileparadox\\.com\/\\w+","//a[contains(@href,'fileparadox.com/')]");
  5784. // obsolete start
  5785. }
  5786. //obsolete file hosts init end
  5787. //Add Host Example
  5788. /* if (GM_getValue("Check_datafile_dot_com_links", false))
  5789. {
  5790. addFileHost(
  5791. "datafile\.com\/\\w+",
  5792. 'var captchaPanel|<link href="/css/files_download.css"',
  5793. 'ErrorCode|ErrorCode 0: Invalid Link|btn-orange" href="#"',
  5794. 'You are downloading another file at this moment|You exceeded your free|Site Maintenance',
  5795. '<style type="text/css">',
  5796. "//a[contains(@href,'datafile.com')]",
  5797. true);
  5798. } */
  5799.  
  5800. function addFileHost(linkRegex, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, xpathEx, tryLoop)
  5801. {
  5802. var host = new Array(7);
  5803. host[0] = linkRegex;
  5804. host[1] = isAliveRegex;
  5805. host[2] = isDeadRegex;
  5806. host[3] = isUnavaRegex;
  5807. host[6] = ispremRegex;
  5808. host[4] = xpathEx;
  5809. tryLoop ? host[5] = true : host[5] = false;
  5810. http_file_hosts.push(host);
  5811. }
  5812. if (GM_getValue("Check_megafileupload_dot_com_links", false))
  5813. {
  5814. addFileHost(
  5815. "megafileupload\.com\/..\/file\/",
  5816. 'downloadbtn',
  5817. 'is not found',
  5818. 'optional--',
  5819. 'optional2--',
  5820. "//a[contains(@href,'megafileupload.com')]");
  5821. }
  5822. if (GM_getValue("Check_demo_dot_ovh_dot_eu_links", false))
  5823. {
  5824. addFileHost(
  5825. "demo\\.ovh\\.eu\/\\w+\/\\w+",
  5826. 'download\\.gif"',
  5827. 'p_point">',
  5828. 'optional--',
  5829. 'optional2--',
  5830. "//a[contains(@href,'demo.ovh.eu')]");
  5831. }
  5832. if (GM_getValue("Check_xkeepfile_dot_com_links", false))
  5833. {
  5834. addFileHost(
  5835. "xkeepfile\.com\/\\w+",
  5836. 'File has been found|Click here to download',
  5837. 'File cannot be found|class="error">',
  5838. 'optional--',
  5839. 'optional2--',
  5840. "//a[contains(@href,'xkeepfile.com/') or contains(@href,'Gamesena.com/')]");
  5841. }
  5842. if (GM_getValue("Check_safelinking_dot_net_links", false))
  5843. {
  5844. addFileHost(
  5845. "safelinking\\.net\/p\/\\w+",
  5846. 'color:green;"',
  5847. 'color:(?:red|orange);"',
  5848. 'color:(?:grey|brown);"',
  5849. 'optional2--',
  5850. "//a[contains(@href,'safelinking.net/p/')]",
  5851. true);
  5852. }
  5853. if (GM_getValue("Check_fastshare_dot_cz_links", false))
  5854. {
  5855. addFileHost(
  5856. "fastshare\\.cz\/\\d+\/\\w*",
  5857. 'dwntable">',
  5858. 'nebyla nalezena|nebola nájdená|nie została odnaleziona|color:red;font-weight:bold;border\\-style:dashed|<i class="fa fa-copyright"></i>',
  5859. 'optional--',
  5860. 'optional2--',
  5861. "//a[contains(@href,'fastshare.cz')]");
  5862. }
  5863. if (GM_getValue("Check_fastshare_dot_org_links", false))
  5864. {
  5865. addFileHost(
  5866. "[fF]ast[sS]hare\\.org\/download",
  5867. 'Download ">',
  5868. 'Diese Datei wurde wegen|wurde kein Dateiname',
  5869. 'optional--',
  5870. 'optional2--',
  5871. "//a[contains(@href,'fastshare.org/download') or contains(@href,'FastShare.org/download')]");
  5872. }
  5873. if (GM_getValue("Check_partage_dash_facile_dot_com_links", false))
  5874. {
  5875. addFileHost(
  5876. "partage-facile\.com\/\\w+",
  5877. 'class="title"><strong>|colspan="2"',
  5878. 'Page introuvable|class="alert-message',
  5879. 'optional--',
  5880. 'optional2--',
  5881. "//a[contains(@href,'partage-facile.com')]");
  5882. }
  5883. if (GM_getValue("Check_rapidgator_dot_net_links", false))
  5884. {
  5885. addFileHost(
  5886. "rapidgator\\.net\/file\/\\w+",
  5887. '/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',
  5888. 'Error 404|File not found|Error 500|Файл не найден|ファイルが探せませんでした|Fichier non trouvé|Archivo no encontrado|Select your plan',
  5889. 'optional--',
  5890. 'can be downloaded by premium only|files up to 500 MB in free mode|files up to 1 GB in free mode',
  5891. "//a[contains(@href,'rapidgator.net/file')]",
  5892. true
  5893. );
  5894. }
  5895. if (GM_getValue("Check_relink_dot_us_links", false))
  5896. {
  5897. addFileHost(
  5898. "relink\\.us\/(?:f\/\\w+|go\\.php\\?id=\\d+|view\\.php\\?id=\\d+)",
  5899. 'online_detail\\.png" alt="Status',
  5900. '(?:offline|partially)_detail\\.png" alt="Status|File deleted',
  5901. 'unknown_detail\\.png" alt="Status',
  5902. 'optional2--',
  5903. "//a[contains(@href,'relink.us/')]"
  5904. );
  5905. }
  5906. if (GM_getValue("Check_uploadstube_dot_de_links", false))
  5907. {
  5908. addFileHost(
  5909. "uploadstube\\.de\/download\\.php\\?file=\\d+",
  5910. 'div id="dl"',
  5911. 'Sie haben den Link falsch',
  5912. 'optional--',
  5913. 'optional2--',
  5914. "//a[contains(@href,'uploadstube.de/download.php?file=')]"
  5915. );
  5916. }
  5917. if (GM_getValue("Check_flyfiles_dot_net_links", false))
  5918. {
  5919. addFileHost(
  5920. "flyfiles\\.net\/\\w+",
  5921. 'download_button"|"Download file"',
  5922. 'File not found!|Файл не найден',
  5923. 'optional--',
  5924. 'optional2--',
  5925. "//a[contains(@href,'flyfiles.net/')]"
  5926. );
  5927. }
  5928. if (GM_getValue("Check_wikiupload_dot_com_links", false))
  5929. {
  5930. addFileHost(
  5931. "wikiupload\\.com\/\\w+",
  5932. 'download-button">',
  5933. 'Sorry, File not found',
  5934. 'optional--',
  5935. 'optional2--',
  5936. "//a[contains(@href,'wikiupload.com/')]"
  5937. );
  5938. }
  5939. if (GM_getValue("Check_hostuje_dot_net_links", false))
  5940. {
  5941. addFileHost(
  5942. "hostuje\\.net\/file\\.php\\?id=\\w+",
  5943. 'file\\.php">|Pobierz Plik',
  5944. 'Podany plik nie zosta',
  5945. 'optional--',
  5946. 'optional2--',
  5947. "//a[contains(@href,'hostuje.net/file')]"
  5948. );
  5949. }
  5950. if (GM_getValue("Check_gettyfile_dot_ru_links", false))
  5951. {
  5952. addFileHost(
  5953. "gettyfile\\.ru\/\\d+",
  5954. 'download\\.gif border',
  5955. '<center><font size="3">',
  5956. 'optional--',
  5957. 'optional2--',
  5958. "//a[contains(@href,'gettyfile.ru/')]"
  5959. );
  5960. }
  5961. if (GM_getValue("Check_turbobit_dot_ru_links", false))
  5962. {
  5963. addFileHost(
  5964. "(?:turbob1t|failoobmenik|filesmail|firebit|dlbit|files\\.china\\-gsm|3aka4aem|file\\.piratski|mnogofiles|links-free|turbo-bit|turbosfiles)\\.\\w+\/\\w+",
  5965. 'download\\-file">',
  5966. 'col-1">\\s*<h1>',
  5967. 'optional--',
  5968. 'optional2--',
  5969. "//a[contains(@href,'turbobit.ru/') or contains(@href,'filesmail.ru/') or contains(@href,'failoobmenik.ru/')"+
  5970. " or contains(@href,'firebit.in/') or contains(@href,'dlbit.net/') or contains(@href,'files.china-gsm.ru/') or contains(@href,'3aka4aem.ru/')"+
  5971. " or contains(@href,'file.piratski.ru/') or contains(@href,'mnogofiles.com/') or contains(@href,'links-free.ru/')"+
  5972. " or contains(@href,'turbo-bit.ru/') or contains(@href,'turbosfiles.ru/')]"
  5973. );
  5974. }
  5975. if (GM_getValue("Check_data_dot_hu_links", false))
  5976. {
  5977. addFileHost(
  5978. "data\\.hu\/get\/\\d+\/",
  5979. 'download_box_button',
  5980. 'missing\\.php',
  5981. 'optional--',
  5982. 'optional2--',
  5983. "//a[contains(@href,'data.hu/get')]",
  5984. true
  5985. );
  5986. }
  5987. if (GM_getValue("Check_filesmelt_dot_com_links", false))
  5988. {
  5989. addFileHost(
  5990. "filesmelt\\.com\/dl\/\\w+",
  5991. '(Your download is ready|Download File)',
  5992. 'Sorry, but your',
  5993. 'optional--',
  5994. 'optional2--',
  5995. "//a[contains(@href,'filesmelt.com/dl')]"
  5996. );
  5997. }
  5998. if (GM_getValue("Check_indowebster_dot_com_links", false))
  5999. {
  6000. addFileHost(
  6001. "(?:files\\.)?indowebster\\.com\/download\/\\w+\/",
  6002. 'premiumBtn"',
  6003. 'errorMessage"',
  6004. 'optional--',
  6005. 'optional2--',
  6006. "//a[contains(@href,'indowebster.com/download')]"
  6007. );
  6008. }
  6009. if (GM_getValue("Check_superload_dot_cz_links", false))
  6010. {
  6011. addFileHost(
  6012. "superload\\.cz\/dl\/\\w+",
  6013. 'icon-download">',
  6014. 'soubor nebyl nalezen',
  6015. 'optional--',
  6016. 'optional2--',
  6017. "//a[contains(@href,'superload.cz/dl')]"
  6018. );
  6019. }
  6020. if (GM_getValue("Check_hulkfile_dot_eu_links", false))
  6021. {
  6022. addFileHost(
  6023. "(?:w\\.hulkfile\\.com|hulkfile\\.eu)\/\\w+",
  6024. 'op" value="download',
  6025. 'class="err">|width:500px;text-align:left;">',
  6026. 'optional--',
  6027. 'optional2--',
  6028. "//a[contains(@href,'hulkfile.')]"
  6029. );
  6030. }
  6031. if (GM_getValue("Check_easybytez_dot_com_links", false))
  6032. {
  6033. addFileHost(
  6034. "easybytez\\.com\/\\w+",
  6035. 'op" value="download',
  6036. 'stop_error\\.gif',
  6037. 'optional--',
  6038. 'optional2--',
  6039. "//a[contains(@href,'easybytez.com/')]"
  6040. );
  6041. }
  6042. if (GM_getValue("Check_filestore_dot_com_dot_ua_links", false))
  6043. {
  6044. addFileHost(
  6045. "filestore\\.com\\.ua\/\\?d=\\w+",
  6046. 'tdrow1>',
  6047. 'class=warn',
  6048. 'optional--',
  6049. 'optional2--',
  6050. "//a[contains(@href,'filestore.com.ua/?d=')]"
  6051. );
  6052. }
  6053. if (GM_getValue("Check_netkups_dot_com_links", false))
  6054. {
  6055. addFileHost(
  6056. "netkups\\.com\/\\?d=\\w+",
  6057. 'submit">Continue',
  6058. 'page">File not found|deleted due to inactivity',
  6059. 'optional--',
  6060. 'optional2--',
  6061. "//a[contains(@href,'netkups.com/?d=')]"
  6062. );
  6063. }
  6064. if (GM_getValue("Check_openfile_dot_ru_links", false))
  6065. {
  6066. addFileHost(
  6067. "openfile\\.ru\/(?:video\/|)\\d+",
  6068. 'videobox_left">',
  6069. 'blog_title">|not found on this server',
  6070. 'optional--',
  6071. 'optional2--',
  6072. "//a[contains(@href,'openfile.ru/')]"
  6073. );
  6074. }
  6075. if (GM_getValue("Check_extmatrix_dot_com_links", false))
  6076. {
  6077. addFileHost(
  6078. "extmatrix\\.com\/files\/\\w+",
  6079. 'div class="success"',
  6080. 'div class="error"',
  6081. 'optional--',
  6082. 'optional2--',
  6083. "//a[contains(@href,'extmatrix.com/files')]"
  6084. );
  6085. }
  6086. if (GM_getValue("Check_sendfiles_dot_nl_links", false))
  6087. {
  6088. addFileHost(
  6089. "sendfiles\\.nl\/download.aspx\\?ID=\\w+",
  6090. 'content_lnkDownload',
  6091. 'error\\.aspx\\?',
  6092. 'optional--',
  6093. 'optional2--',
  6094. "//a[contains(@href,'sendfiles.nl/download.aspx')]"
  6095. );
  6096. }
  6097. if (GM_getValue("Check_yourfilestore_dot_com_links", false))
  6098. {
  6099. addFileHost(
  6100. "yourfilestore\\.com\/download\/\\d+\/",
  6101. 'download_data">',
  6102. 'may have been deleted|<h1>Sorry!<\/h1>',
  6103. 'optional--',
  6104. 'optional2--',
  6105. "//a[contains(@href,'yourfilestore.com/download')]"
  6106. );
  6107. }
  6108. if (GM_getValue("Check_nekaka_dot_com_links", false))
  6109. {
  6110. addFileHost(
  6111. "nekaka\\.com\/d\/[\\w-]+",
  6112. 'downloadForm">',
  6113. 'invalid file link',
  6114. 'optional--',
  6115. 'optional2--',
  6116. "//a[contains(@href,'nekaka.com/d')]"
  6117. );
  6118. }
  6119. if (GM_getValue("Check_filebig_dot_net_links", false))
  6120. {
  6121. addFileHost(
  6122. "filebig\\.net\/files\/\\w+",
  6123. 'downloadFile">',
  6124. '<p>File not found<\/p>',
  6125. 'optional--',
  6126. 'optional2--',
  6127. "//a[contains(@href,'filebig.net/files')]"
  6128. );
  6129. }
  6130. if (GM_getValue("Check_gamefront_dot_com_links", false))
  6131. {
  6132. addFileHost(
  6133. "files\\.filefront\\.com\/\/;\\d+;;",
  6134. 'downloadLink">',
  6135. 'File not found, you',
  6136. 'optional--',
  6137. 'optional2--',
  6138. "//a[contains(@href,'files.filefront.com')]"
  6139. );
  6140.  
  6141. addFileHost(
  6142. "gamefront\\.com\/files\/\\d+",
  6143. 'downloadLink">',
  6144. 'File not found, you',
  6145. 'optional--',
  6146. 'optional2--',
  6147. "//a[contains(@href,'gamefront.com/files')]"
  6148. );
  6149. }
  6150. if (GM_getValue("Check_hyperfileshare_dot_com_links", false))
  6151. {
  6152. addFileHost(
  6153. "(?:download\\.|)hyperfileshare\\.com\/(?:download\\.php\\?code=|d\/)\\w+",
  6154. 'dnlLnk"',
  6155. 'already been deleted',
  6156. 'optional--',
  6157. 'optional2--',
  6158. "//a[contains(@href,'hyperfileshare.com/download') or contains(@href,'hyperfileshare.com/d')]"
  6159. );
  6160. }
  6161. if (GM_getValue("Check_hellupload_dot_com_links", false))
  6162. {
  6163. addFileHost(
  6164. "hellupload\\.com\/\\w+",
  6165. '<h3>Download File<br',
  6166. 'id="podstrona">|AVOID_IE_BUG',
  6167. 'optional--',
  6168. 'optional2--',
  6169. "//a[contains(@href,'hellupload.com/')]"
  6170. );
  6171. }
  6172. if (GM_getValue("Check_free_dash_uploading_dot_com_links", false))
  6173. {
  6174. addFileHost(
  6175. "free\\-uploading\\.com\/\\w+",
  6176. 'op" value="download',
  6177. 'class="err">|width:500px;text-align:left;">',
  6178. 'optional--',
  6179. 'optional2--',
  6180. "//a[contains(@href,'free-uploading.com/')]"
  6181. );
  6182. }
  6183. if (GM_getValue("Check_fileape_dot_com_links", false))
  6184. {
  6185. addFileHost(
  6186. "fileape\\.com\/download\\-",
  6187. 'button_dl\\.png',
  6188. 'does not exist\\.',
  6189. 'optional--',
  6190. 'optional2--',
  6191. "//a[contains(@href,'fileape.com/')]"
  6192. );
  6193. }
  6194. if (GM_getValue("Check_uppit_dot_com_links", false))
  6195. {
  6196. addFileHost(
  6197. "(?:uppit\\.com|up\\.ht)\/\\w+",
  6198. 'op" value="download',
  6199. 'class="err">|style="width:500px;text-align:left;"|fish-404\\.png"',
  6200. 'optional--',
  6201. 'optional2--',
  6202. "//a[contains(@href,'up.ht/') or contains(@href,'uppit.com/')]",
  6203. true
  6204. );
  6205. }
  6206. if (GM_getValue("Check_nosupload_dot_com_links", false))
  6207. {
  6208. addFileHost(
  6209. "nosupload\\.com\/(?:\\?d=)?\\w+",
  6210. 'op" value="download',
  6211. '>File Not Found<',
  6212. 'optional--',
  6213. 'optional2--',
  6214. "//a[contains(@href,'nosupload.com')]",
  6215. true
  6216. );
  6217. }
  6218. if (GM_getValue("Check_filesin_dot_com_links", false))
  6219. {
  6220. addFileHost(
  6221. "filesin\\.com\/\\w+\/download\\.html",
  6222. 'download_area">',
  6223. 'error_note">',
  6224. 'optional--',
  6225. 'optional2--',
  6226. "//a[contains(@href,'filesin.com/')]",
  6227. true
  6228. );
  6229. }
  6230. if (GM_getValue("Check_nowdownload_dot_ch_links", false))
  6231. {
  6232. addFileHost(
  6233. "nowdownload\\.ch\/dl\/\\w+",
  6234. 'alert-success"',
  6235. 'This file does not exist!',
  6236. 'The file is being transfered',
  6237. 'optional2--',
  6238. "//a[contains(@href,'nowdownload.ch/dl')]"
  6239. );
  6240. }
  6241. if (GM_getValue("Check_axifile_dot_com_links", false))
  6242. {
  6243. addFileHost(
  6244. "axifile\\.com(?:\/\w(2))?\/\\??\\w+",
  6245. 'Dbutton_big"',
  6246. 'download\\-error\\.php',
  6247. 'optional--',
  6248. 'optional2--',
  6249. "//a[contains(@href,'axifile.com/')]"
  6250. );
  6251. }
  6252. if (GM_getValue("Check_hulkshare_dot_com_links", false))
  6253. {
  6254. addFileHost(
  6255. "hulkshare\.com\/\\w+",
  6256. 'download\.sam\.png|This is a private file|id="filename',
  6257. 'File does not exist|fingerprint protected copyright',
  6258. 'optional--',
  6259. 'optional2--',
  6260. "//a[contains(@href,'hulkshare.com')]"
  6261. );
  6262. }
  6263. if (GM_getValue("Check_turbobit_dot_net_links", false)) //folders
  6264. {
  6265. addFileHost(
  6266. "turbobit\\.(?:net|pl)\/download\/folder\/\\d+",
  6267. 'col-1">\\s*<s',
  6268. 'col-1">\\s*<h',
  6269. 'optional--',
  6270. 'optional2--',
  6271. "//a[contains(@href,'turbobit.') and contains(@href,'download/folder')]"
  6272. );
  6273. }
  6274. if (GM_getValue("Check_turbobit_dot_net_links", false)) //folders
  6275. {
  6276. addFileHost(
  6277. "turbobit\\.(?:net|pl)",
  6278. 'id="download-gate-info',
  6279. 'afterWait()',
  6280. 'optional--',
  6281. 'optional2--',
  6282. "//a[contains(@href,'turbobit.net')]"
  6283. );
  6284. }
  6285. if (GM_getValue("Check_hitfile_dot_net_links", false)) //folders
  6286. {
  6287. addFileHost(
  6288. "hitfile\\.net\/download\/folder\/\\d+",
  6289. 'content">\\s*<s',
  6290. 'content">\\s*<h',
  6291. 'optional--',
  6292. 'optional2--',
  6293. "//a[contains(@href,'hitfile.net/download/folder')]"
  6294. );
  6295. }
  6296. if (GM_getValue("Check_movshare_dot_net_links", false))
  6297. {
  6298. addFileHost(
  6299. "movshare\\.net\\/video\\/\\w+",
  6300. 'optional--"',
  6301. 'no longer exists',
  6302. 'optional--',
  6303. 'optional2--',
  6304. "//a[contains(@href,'movshare.net/video')]"
  6305. );
  6306. }
  6307. if (GM_getValue("Check_plunder_dot_com_links", false))
  6308. {
  6309. addFileHost(
  6310. "plunder\.com\/\\w+",
  6311. 'x\/download\\.gif',
  6312. '404 - File or directory not found.',
  6313. 'optional--',
  6314. 'optional2--',
  6315. "//a[contains(@href,'plunder.com')]"
  6316. );
  6317. }
  6318. if (GM_getValue("Check_mafiastorage_dot_com_links", false))
  6319. {
  6320. addFileHost(
  6321. "mafiastorage\\.com\/\\w+",
  6322. 'op" value="download',
  6323. 'class="err">|style="width:500px;text-align:left;"',
  6324. 'optional--',
  6325. 'optional2--',
  6326. "//a[contains(@href,'mafiastorage.com/')]"
  6327. );
  6328. }
  6329. if (GM_getValue("Check_uploadspace_dot_pl_links", false))
  6330. {
  6331. addFileHost(
  6332. "uploadspace\.pl\/plik\\w+",
  6333. 'Downloading .+? \\|',
  6334. 'Downloading a file',
  6335. 'optional--',
  6336. 'optional2--',
  6337. "//a[contains(@href,'uploadspace.pl/plik')]"
  6338. );
  6339. }
  6340. if (GM_getValue("Check_uploadingit_dot_com_links", false))
  6341. {
  6342. addFileHost(
  6343. "uploadingit\\.com\/file\/\\w+",
  6344. 'downloadTitle">',
  6345. 'deleteContent">',
  6346. 'optional--',
  6347. 'optional2--',
  6348. "//a[contains(@href,'uploadingit.com/file')]"
  6349. );
  6350. }
  6351. if (GM_getValue("Check_rghost_dot_net_links", false))
  6352. {
  6353. addFileHost(
  6354. "rghost\.(?:net|ru)\/(?:|private\/)\\d+",
  6355. 'download_link|btn large download',
  6356. 'file is restricted|File is deleted|503 Service Unavailable',
  6357. 'optional--',
  6358. 'optional2--',
  6359. "//a[contains(@href,'rghost.')]"
  6360. );
  6361. }
  6362. if (GM_getValue("Check_xdisk_dot_cz_links", false))
  6363. {
  6364. addFileHost(
  6365. "xdisk\\.cz\/(?:..\/)?download\\.php\\?id=\\w+",
  6366. '">Staženo:\\s*<\/span>',
  6367. 'Soubor, který hledáte nenalezen',
  6368. 'optional--',
  6369. 'optional2--',
  6370. "//a[contains(@href,'xdisk.cz/')]"
  6371. );
  6372. }
  6373. if (GM_getValue("Check_expressleech_dot_com_links", false))
  6374. {
  6375. addFileHost(
  6376. "expressleech\.com\/\\w+",
  6377. 'src="/img/Download.gif"|var _gaq =',
  6378. 'var rr =|403 Forbidden',
  6379. 'optional--',
  6380. 'optional2--',
  6381. "//a[contains(@href,'expressleech.com')]");
  6382. }
  6383. if (GM_getValue("Check_2downloadz_dot_com_links", false))
  6384. {
  6385. addFileHost(
  6386. "2downloadz\.com\/\\w+",
  6387. 'color="#848484|src="images/Download.png"|color:#238DCA',
  6388. 'color="#006DCC|File error',
  6389. 'optional--',
  6390. 'optional2--',
  6391. "//a[contains(@href,'2downloadz.com')]");
  6392. }
  6393. if (GM_getValue("Check_mightyupload_dot_com_links", false))
  6394. {
  6395. addFileHost(
  6396. "mightyupload\.com\/\\w+",
  6397. 'background:#ccc;text-align|CONTENT="Download File"',
  6398. 'style="background:#eee|var rr =|File Not Found',
  6399. 'error-code">1010',
  6400. 'optional2--',
  6401. "//a[contains(@href,'mightyupload.com')]");
  6402. }
  6403. if (GM_getValue("Check_anysend_dot_com_links", false))
  6404. {
  6405. addFileHost(
  6406. "anysend\.com\/\\w+",
  6407. 'var openCalled=false;|content="noindex"',
  6408. '_trackPageview',
  6409. 'optional--',
  6410. 'optional2--',
  6411. "//a[contains(@href,'anysend.com')]");
  6412. }
  6413. if (GM_getValue("Check_datafile_dot_com_links", false))
  6414. {
  6415. addFileHost(
  6416. "datafile\.com\/\\w+",
  6417. 'var captchaPanel', //|<link href="/css/files_download.css"',
  6418. 'ErrorCode|ErrorCode 0: Invalid Link|btn-orange" href="#"',
  6419. 'You are downloading another file at this moment|You exceeded your free|Site Maintenance',
  6420. '; display:none;">|<a style="margin-top: auto; margin-bottom: auto;" class="get-premium-button" href="javascript:void(0)">', //<style type="text/css">
  6421. "//a[contains(@href,'datafile.com')]",
  6422. true);
  6423. }
  6424. if (GM_getValue("Check_upstore_dot_net_links", false))
  6425. {
  6426. addFileHost(
  6427. "upstore\.net\/\\w+",
  6428. 'style="margin-top: 20px">|style="text-align:center; margin: 20px 0 100px;">',
  6429. 'File not found|onload="redirect|class="error">',
  6430. 'optional--',
  6431. 'optional2--',
  6432. "//a[contains(@href,'upstore.net')]");
  6433. }
  6434. if (GM_getValue("Check_upsto_dot_re_links", false))
  6435. {
  6436. addFileHost(
  6437. "upsto\.re\/\\w+",
  6438. 'style="margin-top: 20px">|style="text-align:center; margin: 20px 0 100px;">',
  6439. 'File not found|onload="redirect|class="error">',
  6440. 'optional--',
  6441. 'optional2--',
  6442. "//a[contains(@href,'upsto.re')]");
  6443. }
  6444. if (GM_getValue("Check_speedy_dot_sh_links", false))
  6445. {
  6446. addFileHost(
  6447. "speedy\.sh\/\\w+",
  6448. 'bgcolor=#eeeeee|class="addthis',
  6449. 'File not found|downloadfilenamenotfound>',
  6450. 'optional--',
  6451. 'optional2--',
  6452. "//a[contains(@href,'speedy.sh')]");
  6453. }
  6454. if (GM_getValue("Check_sanshare_dot_com_links", false))
  6455. {
  6456. addFileHost(
  6457. "sanshare\.com\/\\w+",
  6458. 'SANSHARE_TOPBANNER|offset-1"><h3><b>Download File',
  6459. 'offset-1"><b>File Not Found<|width:500px;text-align',
  6460. 'optional--',
  6461. 'optional2--',
  6462. "//a[contains(@href,'sanshare.com')]");
  6463. }
  6464. if (GM_getValue("Check_kingfiles_dot_net_links", false))
  6465. {
  6466. addFileHost(
  6467. "kingfiles\.net\/\\w+",
  6468. 'method_free',
  6469. 'var rr =|"description" CONTENT="Download File ">|<div style="width:500px;text-align:left;">|The file was removed by administrator',
  6470. 'optional--',
  6471. 'optional2--',
  6472. "//a[contains(@href,'kingfiles.net')]");
  6473. }
  6474. /* if (GM_getValue("Check_uploadhero_dot_co_links", false))
  6475. {
  6476. addFileHost(
  6477. "uploadhero\\.co\/dl\/\\w+",
  6478. 'class="nom_de_fichier"|Unlimited downloads|Estimated download time|Lien de téléchargement"',
  6479. 'not available on our server|pas disponible sur nos serveurs|Le lien du fichier est incorrect',
  6480. 'optional--',
  6481. 'optional2--',
  6482. "//a[contains(@href,'uploadhero.co/dl')]"
  6483. );
  6484. } */
  6485. if (GM_getValue("Check_secureupload_dot_eu_links", false))
  6486. {
  6487. addFileHost(
  6488. "secureupload\\.eu\/\\w+",
  6489. 'Downloading',
  6490. 'cannot be found|File Not Found|could not be found',
  6491. 'optional--',
  6492. 'optional2--',
  6493. "//a[contains(@href,'secureupload.eu')]"
  6494. );
  6495. }
  6496. if (GM_getValue("Check_ge_dot_tt_links", false))
  6497. {
  6498. addFileHost(
  6499. "ge\.tt\/\\w+",
  6500. 'downloads pic',
  6501. 'is NOT the same as',
  6502. 'optional--',
  6503. 'optional2--',
  6504. "//a[contains(@href,'ge.tt')]");
  6505. }
  6506. if (GM_getValue("Check_filefactory_dot_com_links", false))
  6507. {
  6508. addFileHost(
  6509. "filefactory\.com\/\\w+",
  6510. 'div id="file_holder"|download.css',
  6511. 'File Removed|Invalid Download Link|File Unavailable|Server Failed|Datei entfernt|This file has been removed|Invalid Download Link',
  6512. 'Server Maintenance|temporarily overloaded',
  6513. 'optional2--',
  6514. "//a[contains(@href,'filefactory.com')]");
  6515. }
  6516. if (GM_getValue("Check_filesflash_dot_net_links", false))
  6517. {
  6518. addFileHost(
  6519. "filesflash\.net\/\\w+",
  6520. 'align:right">Filename:',
  6521. 'class="msg">',
  6522. 'optional--',
  6523. 'optional2--',
  6524. "//a[contains(@href,'filesflash.net')]");
  6525. }
  6526. if (GM_getValue("Check_rapidgator_dot_net_links", false)) //folders
  6527. {
  6528. addFileHost(
  6529. "rapidgator\\.net\/folder\/\\w+",
  6530. 'href="/folder/',
  6531. 'class="empty|Folder not found|Carpeta no encontrada|Dossier non trouvé|Папка не найдена',
  6532. 'optional--',
  6533. 'optional2--',
  6534. "//a[contains(@href,'rapidgator.net/folder')]",
  6535. true
  6536. );
  6537. }
  6538. if (GM_getValue("Check_salefiles_dot_com_links", false))
  6539. {
  6540. addFileHost(
  6541. "salefiles\.com\/\\w+",
  6542. '<Title>Download|CONTENT="Download',
  6543. 'font:15px Arial|background:#eee;',
  6544. 'optional--',
  6545. 'optional2--',
  6546. "//a[contains(@href,'salefiles.com')]");
  6547. }
  6548. /* if (GM_getValue("Check_megairon_dot_net_links", false))
  6549. {
  6550. addFileHost(
  6551. "megairon\.net\/\\w+",
  6552. 'border: 5px #ffeb90 solid;',
  6553. 'CONTENT="Download File ">|var rr =',
  6554. 'error-code">523',
  6555. 'optional2--',
  6556. "//a[contains(@href,'megairon.net')]",
  6557. true);
  6558. } */
  6559. if (GM_getValue("Check_datoid_dot_cz_links", false))
  6560. {
  6561. addFileHost(
  6562. "datoid\.cz\/\\w+",
  6563. 'btn-download|class="icon-download-large"',
  6564. 'Stránka nenalezena|error-404|Soubor byl zablokován',
  6565. 'optional--',
  6566. 'optional2--',
  6567. "//a[contains(@href,'datoid.cz')]");
  6568. }
  6569. if (GM_getValue("Check_stiahni_dot_si_links", false))
  6570. {
  6571. addFileHost(
  6572. "stiahni\.si\/\\w+",
  6573. 'report_icon.png"|slow-download-button',
  6574. 'none.png|deleted|<h2>Error 500</h2>',
  6575. 'optional--',
  6576. 'optional2--',
  6577. "//a[contains(@href,'stiahni.si')]");
  6578. }
  6579. if (GM_getValue("Check_cloudstor_dot_es_links", false))
  6580. {
  6581. addFileHost(
  6582. "cloudstor\.es\/\\w+",
  6583. '"btn_download"',
  6584. '404: Page Not Found',
  6585. 'optional--',
  6586. 'optional2--',
  6587. "//a[contains(@href,'cloudstor.es')]");
  6588. }
  6589. if (GM_getValue("Check_streamfile_dot_com_links", false))
  6590. {
  6591. addFileHost(
  6592. "streamfile\.com\/\\w+",
  6593. 'class="btn',
  6594. 'class="green-btn',
  6595. 'optional--',
  6596. 'optional2--',
  6597. "//a[contains(@href,'streamfile.com')]");
  6598. }
  6599. if (GM_getValue("Check_eyesfile_dot_ca_links", false))
  6600. {
  6601. addFileHost(
  6602. "eyesfile\.ca\/\\w+",
  6603. 'value="Get Link',
  6604. 'var rr =',
  6605. 'optional--',
  6606. 'optional2--',
  6607. "//a[contains(@href,'eyesfile.ca')]");
  6608. }
  6609. if (GM_getValue("Check_filemoney_dot_com_links", false))
  6610. {
  6611. addFileHost(
  6612. "filemoney\.com\/\\w+",
  6613. 'og:title',
  6614. '404 Not Found|<Title>FileMoney|File Not Found|class="err">DMCA</b>',
  6615. 'error-code">1010',
  6616. 'optional2--',
  6617. "//a[contains(@href,'filemoney.com')]");
  6618. }
  6619. if (GM_getValue("Check_uploadboy_dot_com_links", false))
  6620. {
  6621. addFileHost(
  6622. "uploadboy\.com\/\\w+",
  6623. 'width="740">|method_free',
  6624. 'var rr =|background:#ffffff|not be found|file was removed',
  6625. 'optional--',
  6626. 'optional2--',
  6627. "//a[contains(@href,'uploadboy.com')]");
  6628. }
  6629. if (GM_getValue("Check_speedshare_dot_eu_links", false))
  6630. {
  6631. addFileHost(
  6632. "speedshare\.eu\/\\w+",
  6633. 'favicon.png|color:#3d87c0|cross.png"',
  6634. 'var rr =|File Not Found|style="background:#eee',
  6635. 'optional--',
  6636. 'optional2--',
  6637. "//a[contains(@href,'speedshare.eu')]");
  6638. }
  6639. if (GM_getValue("Check_unlimitzone_dot_com_links", false))
  6640. {
  6641. addFileHost(
  6642. "unlimitzone\.com\/\\w+",
  6643. 'name="method_free',
  6644. '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',
  6645. 'optional--',
  6646. 'optional2--',
  6647. "//a[contains(@href,'unlimitzone.com')]");
  6648. }
  6649. if (GM_getValue("Check_rioupload_dot_com_links", false))
  6650. {
  6651. addFileHost(
  6652. "rioupload\.com\/\\w+",
  6653. 'sell.jpg',
  6654. 'var rr =',
  6655. 'optional--',
  6656. 'optional2--',
  6657. "//a[contains(@href,'rioupload.com')]");
  6658. }
  6659. if (GM_getValue("Check_rg_dot_to_links", false))
  6660. {
  6661. addFileHost(
  6662. "rg\.to\/\\w+",
  6663. '/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',
  6664. 'Error 404|File not found|Select your plan|Fichier non trouvé|Archivo no encontrado|ファイルが探せませんでした|Файл не найден',
  6665. 'optional--',
  6666. 'can be downloaded by premium only|files up to 500 MB in free mode',
  6667. "//a[contains(@href,'rg.to')]");
  6668. }
  6669. if (GM_getValue("Check_jumbofiles_dot_org_links", false))
  6670. {
  6671. addFileHost(
  6672. "jumbofiles\.org\/\\w+",
  6673. 'H71C5.png|class="downloadtitle">',
  6674. 'var swfu|ViewSourceBIN.png',
  6675. 'optional--',
  6676. 'optional2--',
  6677. "//a[contains(@href,'jumbofiles.org')]");
  6678. }
  6679. if (GM_getValue("Check_fshare_dot_vn_links", false))
  6680. {
  6681. addFileHost(
  6682. "fshare\\.vn\/file\/\\w+",
  6683. 'action="#download"|left; width: 330px;">|class="bt_down"',
  6684. 'không tồn tại|class="color_red m_t_50"',
  6685. 'optional--',
  6686. 'optional2--',
  6687. "//a[contains(@href,'fshare.vn/file')]",
  6688. true
  6689. );
  6690. }
  6691. if (GM_getValue("Check_spaceforfiles_dot_com_links", false))
  6692. {
  6693. addFileHost(
  6694. "spaceforfiles\.com\/\\w+",
  6695. 'btn_slowspeed_b.jpg|value="download1|class="btn_blue',
  6696. 'var rr =|AVOID_IE_BUG',
  6697. 'optional--',
  6698. 'optional2--',
  6699. "//a[contains(@href,'spaceforfiles.com')]");
  6700. }
  6701. if (GM_getValue("Check_google_dot_com_links", false))
  6702. {
  6703. addFileHost(
  6704. "google\\.com\/file\/\\w+",
  6705. 'content="!">|color:#2d2d2d',
  6706. '12pt; font-weight:|class="errorMessage"|F0F6FF',
  6707. 'optional--',
  6708. 'optional2--',
  6709. "//a[contains(@href,'google.com/file')]",
  6710. true
  6711. );
  6712. }
  6713. if (GM_getValue("Check_google_dot_com_links", false))
  6714. {
  6715. addFileHost(
  6716. "docs.google.com\/\\w+",
  6717. 'content="!">|color:#2d2d2d',
  6718. '12pt; font-weight:|class="errorMessage"|F0F6FF|Error 404',
  6719. 'optional--',
  6720. 'optional2--',
  6721. "//a[contains(@href,'docs.google.com')]",
  6722. true
  6723. );
  6724. }
  6725. if (GM_getValue("Check_google_dot_com_links", false))
  6726. {
  6727. addFileHost(
  6728. "drive.google.com\/\\w+",
  6729. 'content="!">|color:#2d2d2d|id="uc-download-link',
  6730. '12pt; font-weight:|class="errorMessage"|F0F6FF|Error 404',
  6731. 'optional--',
  6732. 'optional2--',
  6733. "//a[contains(@href,'drive.google.com')]",
  6734. true
  6735. );
  6736. }
  6737. if (GM_getValue("Check_up_dot_media1fire_dot_com_links", false))
  6738. {
  6739. addFileHost(
  6740. "up.media1fire\.com\/\\w+",
  6741. 'class="addthis_|value="download',
  6742. 'var rr =|AVOID_IE_BUG|<div style="width:500px;text-align:left;">',
  6743. 'optional--',
  6744. 'optional2--',
  6745. "//a[contains(@href,'up.media1fire.com')]");
  6746. }
  6747. if (GM_getValue("Check_depfile_dot_com_links", false))
  6748. {
  6749. addFileHost(
  6750. "depfile\.com\/\\w+",
  6751. 'logo_0.png|downloads.gif"|verifycode',
  6752. 'border-color: #5D729B;|bgcolor="#778AAF"|deleted by the owner|Invalid Link',
  6753. 'optional--',
  6754. 'available only for Premium users',
  6755. "//a[contains(@href,'depfile.com')]");
  6756. }
  6757. if (GM_getValue("Check_go4up_dot_com_links", false))
  6758. {
  6759. addFileHost(
  6760. "go4up\.com\/\\w+",
  6761. 'style="width: 100%;">|value="Access|download_line|img/webbuttoned.gif">',
  6762. '<title>GO4UP|dmca',
  6763. 'optional--',
  6764. 'optional2--',
  6765. "//a[contains(@href,'go4up.com')]");
  6766. }
  6767. if (GM_getValue("Check_redbunker_dot_net_links", false))
  6768. {
  6769. addFileHost(
  6770. "redbunker\.net\/\\w+",
  6771. 'name="method_free"',
  6772. 'color="red">Unknow / Bilinmiyor<',
  6773. 'optional--',
  6774. 'optional2--',
  6775. "//a[contains(@href,'redbunker.net')]");
  6776. }
  6777. if (GM_getValue("Check_divxpress_dot_com_links", false))
  6778. {
  6779. addFileHost(
  6780. "divxpress\.com\/\\w+",
  6781. 'btn_download|logo.png"',
  6782. 'AVOID_IE_BUG|var rr =',
  6783. 'optional--',
  6784. 'optional2--',
  6785. "//a[contains(@href,'divxpress.com')]");
  6786. }
  6787. if (GM_getValue("Check_anafile_dot_com_links", false))
  6788. {
  6789. addFileHost(
  6790. "anafile\.com\/\\w+",
  6791. 'width="881" valign="top|color="#800080"|name="go"',
  6792. 'style="width:500px;text-align:left;">|file was deleted|AVOID_IE_BUG',
  6793. 'optional--',
  6794. 'optional2--',
  6795. "//a[contains(@href,'anafile.com')]");
  6796. }
  6797. if (GM_getValue("Check_uploadable_dot_ch_links", false))
  6798. {
  6799. addFileHost(
  6800. "uploadable\\.ch\/file\/\\w+",
  6801. 'captcha.js"|payment.js"|class="btn_download"',
  6802. '<div class="icon_err">|<div class="errorBox">|"error_arrow">',
  6803. 'optional--',
  6804. 'optional2--',
  6805. "//a[contains(@href,'uploadable.ch/file')]",
  6806. true
  6807. );
  6808. }
  6809. if (GM_getValue("Check_arabloads_dot_net_links", false))
  6810. {
  6811. addFileHost(
  6812. "arabloads\.net\/\\w+",
  6813. 'name="method_free"|name="method_premium"',
  6814. 'background:#eee;font:15px Arial;">|AVOID_IE_BUG|Verdana;padding:3px;">Error|Not Found',
  6815. 'optional--',
  6816. 'optional2--',
  6817. "//a[contains(@href,'arabloads.net')]");
  6818. }
  6819. if (GM_getValue("Check_sharerepo_dot_com_links", false))
  6820. {
  6821. addFileHost(
  6822. "sharerepo\.com\/\\w+",
  6823. 'name="method_free"',
  6824. 'var public_on=|The file you were looking for could not be found',
  6825. 'optional--',
  6826. 'optional2--',
  6827. "//a[contains(@href,'sharerepo.com')]");
  6828. }
  6829. if (GM_getValue("Check_sfshare_dot_se_links", false))
  6830. {
  6831. addFileHost(
  6832. "sfshare\.se\/\\w+",
  6833. 'id="btn_download"|class="btn btn-primary txt-bold" value="',
  6834. 'AVOID_IE_BUG|var rr =|style="width:500px;text-align:left;">|Reason for deletion|The file was removed',
  6835. 'optional--',
  6836. 'optional2--',
  6837. "//a[contains(@href,'sfshare.se')]");
  6838. }
  6839. if (GM_getValue("Check_files_dot_fm_links", false))
  6840. {
  6841. addFileHost(
  6842. "files\.fm\/\\w+",
  6843. 'dl.png"|background-color: transparent',
  6844. 'margin: 40px 40px|background: none;',
  6845. 'optional--',
  6846. 'optional2--',
  6847. "//a[contains(@href,'files.fm')]");
  6848. }
  6849. if (GM_getValue("Check_koofile_dot_com_links", false))
  6850. {
  6851. addFileHost(
  6852. "koofile\.com\/\\w+",
  6853. 'value="download1">|name="method_free"',
  6854. 'class="overview-content c_text-box ">|style="padding-top:3px;">|class="rt1 c">',
  6855. 'optional--',
  6856. 'optional2--',
  6857. "//a[contains(@href,'koofile.com')]");
  6858. }
  6859. if (GM_getValue("Check_vidxden_dot_com_links", false))
  6860. {
  6861. addFileHost(
  6862. "vidxden\\.com\/\\w+",
  6863. 'Continue to Video"',
  6864. 'No such file',
  6865. 'optional--',
  6866. 'optional2--',
  6867. "//a[contains(@href,'vidxden.com')]"
  6868. );
  6869. }
  6870. if (GM_getValue("Check_muchshare_dot_net_links", false))
  6871. {
  6872. addFileHost(
  6873. "muchshare\\.net\/\\w+",
  6874. 'id="btn_download"',
  6875. 'File Not Found|width: 500px; text-align: left;',
  6876. 'optional--',
  6877. 'optional2--',
  6878. "//a[contains(@href,'muchshare.net')]"
  6879. );
  6880. }
  6881. if (GM_getValue("Check_daten_dash_hoster_dot_de_links", false))
  6882. {
  6883. addFileHost(
  6884. "(?:daten-hoster\\.de\/file\/\\w+|filehosting\\.org\/file\/\\w+|xtraupload\\.de\/\\?d=\\w+)",
  6885. 'Details zur Datei|Details page',
  6886. 'Jetzt hochladen|upload now',
  6887. 'optional--',
  6888. 'optional2--',
  6889. "//a[contains(@href,'daten-hoster.de/file') or contains(@href,'filehosting.org/file') or contains(@href,'xtraupload.de')]"
  6890. );
  6891. }
  6892. if (GM_getValue("Check_upload_dash_il_dot_net_links", false))
  6893. {
  6894. addFileHost(
  6895. "(?:upload-il|przeslij)\.net\/(?:en|he|ar|ru|)\/?\\w+",
  6896. 'downloadbtn"',
  6897. 'DL_FileNotFound',
  6898. 'optional--',
  6899. 'optional2--',
  6900. "//a[contains(@href,'upload-il.net') or contains(@href,'przeslij.net')]"
  6901. );
  6902. }
  6903. if (GM_getValue("Check_fileflyer_dot_com_links", false))
  6904. {
  6905. addFileHost(
  6906. "fileflyer\.com\/view\/\\w+",
  6907. '(?:dwl|locked)btn"',
  6908. 'error.gif"|link">Removed|removedlink">',
  6909. 'optional--',
  6910. 'optional2--',
  6911. "//a[contains(@href,'fileflyer.com')]"
  6912. );
  6913. }
  6914. if (GM_getValue("Check_filestore_dot_to_links", false))
  6915. {
  6916. addFileHost(
  6917. "filestore\.to\/\\?d=\\w+",
  6918. '"downloading"',
  6919. 'Datei wurde nicht gefunden',
  6920. 'optional--',
  6921. 'optional2--',
  6922. "//a[contains(@href,'filestore.to')]"
  6923. );
  6924. }
  6925. if (GM_getValue("Check_easy_dash_share_dot_com_links", false))
  6926. {
  6927. addFileHost(
  6928. "(?:w\\d*\.|)(?:crocko|easy-share)\\.com\/.",
  6929. 'fz24">Download|class="pl15">',
  6930. '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',
  6931. 'optional--',
  6932. 'optional2--',
  6933. "//a[contains(@href,'easy-share.com') or contains(@href,'crocko.com')]"
  6934. );
  6935. }
  6936. /* if (GM_getValue("Check_burnupload_dot_com_links", false))
  6937. {
  6938. addFileHost(
  6939. "burnupload\\.(?:com\/\\?d=|ihiphop\\.com\/download\\.php\\?id=)\\w+",
  6940. 'File size:',
  6941. 'file is not found',
  6942. 'optional--',
  6943. 'optional2--',
  6944. "//a[contains(@href,'burnupload.com') or contains(@href,'burnupload.ihiphop.com')]"
  6945. );
  6946. } */
  6947. if (GM_getValue("Check_datei_dot_to_links", false))
  6948. {
  6949. addFileHost(
  6950. "datei\\.to\/\\??\\w+",
  6951. 'icon_downloaden\\.png|>Download starten<',
  6952. 'Datei wurde nicht gefunden|icon_deleted.png',
  6953. 'optional--',
  6954. 'optional2--',
  6955. "//a[contains(@href,'datei.to')]"
  6956. );
  6957. }
  6958. if (GM_getValue("Check_yunfile_dot_com_links", false))
  6959. {
  6960. addFileHost(
  6961. "(?:yunfile|filemarkets)\\.com\/\\w+",
  6962. '<body class="body" id="body">|value="Slow Download"',
  6963. '<body class="body" >',
  6964. 'optional--',
  6965. 'optional2--',
  6966. "//a[contains(@href,'yunfile.com') or contains(@href,'filemarkets.com')]"
  6967. );
  6968. }
  6969. /* if (GM_getValue("Check_uploadhero_dot_com_links", false))
  6970. {
  6971. addFileHost(
  6972. "uploadhero\\.com\/dl\/\\w+",
  6973. 'content-dl">',
  6974. 'men_file_lost\\.jpg"',
  6975. 'optional--',
  6976. 'optional2--',
  6977. "//a[contains(@href,'uploadhero.com/dl')]"
  6978. );
  6979. } */
  6980. if (GM_getValue("Check_unibytes_dot_com_links", false))
  6981. {
  6982. addFileHost(
  6983. "unibytes\\.com\/[\\w\.]+",
  6984. 'trying to download|пытаетесь загрузить файл|tes entrain de tlcharger',
  6985. 'File not found|Файл не найден|',
  6986. 'optional--',
  6987. 'optional2--',
  6988. "//a[contains(@href,'unibytes.com')]"
  6989. );
  6990. }
  6991. if (GM_getValue("Check_hellshare_dot_com_links", false)) //very old type of links
  6992. {
  6993. addFileHost(
  6994. "www\\.hellshare\\.com\/\\d+",
  6995. 'tab\\-details"',
  6996. 'list-purp-2"|not found on this server',
  6997. 'optional--',
  6998. 'optional2--',
  6999. "//a[contains(@href,'www.hellshare.com')]"
  7000. );
  7001. }
  7002. /* if (GM_getValue("Check_quickshare_dot_cz_links", false)) //folders
  7003. {
  7004. addFileHost(
  7005. "quickshare\\.cz\/slozka-\\d+",
  7006. 'Počet souborů: <strong>[1-9]',
  7007. 'Počet souborů: <strong>0|Chyba! Taková složka neexistuje',
  7008. 'optional--',
  7009. 'optional2--',
  7010. "//a[contains(@href,'quickshare.cz/slozka')]"
  7011. );
  7012. } */
  7013. if (GM_getValue("Check_filefactory_dot_com_links", false)) //folders
  7014. {
  7015. addFileHost(
  7016. "filefactory\\.com\/f\/\\w+",
  7017. 'folderFileList">',
  7018. 'table class="items"|Pointer" class="red">',
  7019. 'optional--',
  7020. 'optional2--',
  7021. "//a[contains(@href,'filefactory.com/f/')]"
  7022. );
  7023. }
  7024. if (GM_getValue("Check_netload_dot_in_links", false)) //folders
  7025. {
  7026. addFileHost(
  7027. "netfolder\\.in\/\\w+",
  7028. 'list" value="http',
  7029. 'InPage_Error">|list" value=""',
  7030. 'optional--',
  7031. 'optional2--',
  7032. "//a[contains(@href,'netfolder.in')]"
  7033. );
  7034. }
  7035. if (GM_getValue("Check_load_dot_to_links", false))
  7036. {
  7037. addFileHost(
  7038. '(?:www\\.|\\/)load\\.to\\/(?:\\w{10}\\/.|\\?d=\\w{10})',
  7039. '"download_table_left">Size',
  7040. 'Can\'t find file',
  7041. 'optional--',
  7042. 'optional2--',
  7043. "//a[contains(@href,'/load.to/') or contains(@href,'www.load.to/')]"
  7044. );
  7045. }
  7046. if (GM_getValue("Check_divshare_dot_com_links", false))
  7047. {
  7048. addFileHost(
  7049. "divshare\\.com\/download\/",
  7050. 'download_new\.png',
  7051. 'have been removed',
  7052. 'optional--',
  7053. 'optional2--',
  7054. "//a[contains(@href,'divshare.com')]"
  7055. );
  7056. }
  7057. if (GM_getValue("Check_euroshare_dot_eu_links", false))
  7058. {
  7059. addFileHost(
  7060. "euroshare\\.(?:eu|pl|sk|cz|hu)\/file\/\\d+",
  7061. 'nazev-souboru">',
  7062. '<div id="obsah">\\s*<h1>',
  7063. 'optional--',
  7064. 'optional2--',
  7065. "//a[contains(@href,'euroshare.eu/file')]"
  7066. );
  7067. }
  7068. if (GM_getValue("Check_files_dot_mail_dot_ru_links", false))
  7069. {
  7070. addFileHost(
  7071. 'files\\.mail\\.ru/(?:\\w*)',
  7072. 'fileList',
  7073. 'errorMessage',
  7074. 'optional--',
  7075. 'optional2--',
  7076. "//a[contains(@href,'files.mail.ru')]"
  7077. );
  7078. }
  7079. if (GM_getValue("Check_megashares_dot_com_links", false))
  7080. {
  7081. addFileHost(
  7082. "(?:d\\d+\.|)megashares\.com\/(?:dl|index\.php\\?d|\\?d\\d+=\\w+)",
  7083. 'Filesize',
  7084. 'Invalid|deleted|Could not download file',
  7085. 'slots|scheduled maintenance',
  7086. 'optional2--',
  7087. "//a[contains(@href,'megashares.com/')]"
  7088. );
  7089. }
  7090. if (GM_getValue("Check_narod_dot_ru_links", false))
  7091. {
  7092. addFileHost(
  7093. 'narod\\.(?:yandex\\.|)ru\/disk\/',
  7094. 'b-submit',
  7095. 'b-download-virus-note|headCode">404<',
  7096. 'Внутренняя ошибка сервиса',
  7097. 'optional2--',
  7098. "//a[contains(@href,'narod.ru') or contains(@href,'narod.yandex.ru')]"
  7099. );
  7100. }
  7101. if (GM_getValue("Check_rayfile_dot_com_links", false))
  7102. {
  7103. addFileHost(
  7104. "rayfile\\.com\/",
  7105. 'FILEtitleTXT',
  7106. 'blueRow',
  7107. 'optional--',
  7108. 'optional2--',
  7109. "//a[contains(@href,'rayfile.com/') and contains(@href,'files')]"
  7110. );
  7111. }
  7112. if (GM_getValue("Check_filesmonster_dot_com_links", false))
  7113. {
  7114. addFileHost(
  7115. "filesmonster\\.com\/download\\.php\\?id=\\w+",
  7116. 'button_green_body"',
  7117. 'error">',
  7118. 'optional--',
  7119. 'optional2--',
  7120. "//a[contains(@href,'filesmonster.com/download')]"
  7121. );
  7122. }
  7123. if (GM_getValue("Check_usaupload_dot_net_links", false))
  7124. {
  7125. addFileHost(
  7126. 'usaupload\\.net\/d\/(?:\w*)',
  7127. '<strong>File size:</strong>',
  7128. 'is not available',
  7129. 'optional--',
  7130. 'optional2--',
  7131. "//a[contains(@href,'usaupload.net/d/')]"
  7132. );
  7133. }
  7134. if (GM_getValue("Check_sendspace_dot_com_links", false))
  7135. {
  7136. addFileHost(
  7137. 'sendspace\\.com\/file\/\\w+',
  7138. 'file_description',
  7139. 'msg error"',
  7140. 'optional--',
  7141. 'optional2--',
  7142. "//a[contains(@href,'sendspace.com/file')]"
  7143. );
  7144. }
  7145. if (GM_getValue("Check_sendspace_dot_pl_links", false))
  7146. {
  7147. addFileHost(
  7148. 'sendspace\\.pl\/file\/\\w+',
  7149. 'download_file"',
  7150. 'Podany plik nie',
  7151. 'optional--',
  7152. 'optional2--',
  7153. "//a[contains(@href,'sendspace.pl/file')]"
  7154. );
  7155. }
  7156. if (GM_getValue("Check_uploading_dot_com_links", false))
  7157. {
  7158. addFileHost(
  7159. 'uploading\\.com\/(?:files\/)?\\w+',
  7160. 'free_method">',
  7161. 'file_error">|error_404">|file not found|OOPS! Looks like file not found',
  7162. 'optional--',
  7163. 'optional2--',
  7164. "//a[contains(@href,'uploading.com')]"
  7165. );
  7166. }
  7167. if (GM_getValue("Check_gigasize_dot_com_links", false))
  7168. {
  7169. addFileHost(
  7170. 'gigasize\\.com\/get\\.php(?:\/\\d+|\\?d=\\w+)',
  7171. 'fileId"',
  7172. 'error">',
  7173. 'optional--',
  7174. 'optional2--',
  7175. "//a[contains(@href,'gigasize.com/get')]"
  7176. );
  7177. }
  7178. if (GM_getValue("Check_good_dot_com_links", false))
  7179. {
  7180. addFileHost(
  7181. 'good\\.net\/(?:_|dl)',
  7182. 'Free Download',
  7183. 'Not Found',
  7184. 'Forbidden',
  7185. 'optional2--',
  7186. "//a[contains(@href,'good.net')]"
  7187. );
  7188. }
  7189. if (GM_getValue("Check_2shared_dot_com_links", false))
  7190. {
  7191. addFileHost(
  7192. '2shared\\.com\/(?:file|video|document|audio)\/\\w*',
  7193. 'File size',
  7194. 'File not found|is not valid|/images/important.gif',
  7195. 'optional--',
  7196. 'optional2--',
  7197. "//a[contains(@href,'2shared.com/file/') or contains (@href,'2shared.com/audio/') or contains (@href,'2shared.com/document/') or contains (@href,'2shared.com/video/')]"
  7198. );
  7199. }
  7200. if (GM_getValue("Check_turboupload_dot_com_links", false))
  7201. {
  7202. addFileHost(
  7203. 'turboupload\\.com\/\\w*',
  7204. 'You have requested',
  7205. 'File Not Found',
  7206. 'optional--',
  7207. 'optional2--',
  7208. "//a[contains(@href,'turboupload.com')]"
  7209. );
  7210. }
  7211. if (GM_getValue("Check_gigapeta_dot_com_links", false))
  7212. {
  7213. addFileHost(
  7214. 'gigapeta\\.com\/dl\/',
  7215. 'Download file|Скачать файл| Herunterzuladen|Scarica il file|Cargar el fichero|Charger le fichier',
  7216. '404|page_error',
  7217. 'optional--',
  7218. 'optional2--',
  7219. "//a[contains(@href,'gigapeta.com/dl')]"
  7220. );
  7221. }
  7222. if (GM_getValue("Check_veehd_dot_com_links", false))
  7223. {
  7224. addFileHost(
  7225. 'veehd\.com\/video\/.*?',
  7226. 'No sound|Download video',
  7227. 'Featured Videos',
  7228. 'optional--',
  7229. 'optional2--',
  7230. "//a[contains(@href,'veehd.com') and contains(@href,'video')]"
  7231. );
  7232. }
  7233. if (GM_getValue("Check_vip_dash_file_dot_com_links", false))
  7234. {
  7235. addFileHost(
  7236. '(?:u\\d+\\.)?vip-file\\.com\/download.*?\/(?:.*?)\/(?:.*?)\\.html',
  7237. 'fast_download_form">|submit_sms_download',
  7238. '<p style="text-align:center">',
  7239. 'optional--',
  7240. 'optional2--',
  7241. "//a[contains(@href,'vip-file.com/download')]"
  7242. );
  7243. }
  7244. if (GM_getValue("Check_letitbit_dot_net_links", false))
  7245. {
  7246. addFileHost(
  7247. '(?:u\\d+\\.)?letitbit\\.net\/download\/\\w+',
  7248. 'download\\-pnl ',
  7249. 'color:#000">|Запрашиваемый файл не найден|страница не существует|File not found|',
  7250. 'optional--',
  7251. 'optional2--',
  7252. "//a[contains(@href,'letitbit.net/download')]"
  7253. );
  7254. }
  7255. if (GM_getValue("Check_ifolder_dot_ru_links", false))
  7256. {
  7257. addFileHost(
  7258. 'ifolder\.ru\/\\d+',
  7259. 'file-info',
  7260. 'ui-state-error',
  7261. 'optional--',
  7262. 'optional2--',
  7263. "//a[contains(@href,'ifolder.ru')]"
  7264. );
  7265. }
  7266. if (GM_getValue("Check_fileswap_dot_com_links", false))
  7267. {
  7268. addFileHost(
  7269. 'fileswap\\.com\/dl\/\\w+',
  7270. 'bttnDownloadLink"',
  7271. 'rounded_block_error"',
  7272. 'is temporary unavailable|disponible en estos momentos|vorläufig unerreichbar|Файл временно недоступен',
  7273. 'optional2--',
  7274. "//a[contains(@href,'fileswap.com/dl')]"
  7275. );
  7276. }
  7277. if (GM_getValue("Check_filecloud_dot_io_links", false))
  7278. {
  7279. addFileHost(
  7280. '(?:s\\d+\\.)?filecloud\\.io\/\\w+',
  7281. 'var __error = 0',
  7282. 'FILES__DOESNT_EXIST|removed or did not exist',
  7283. 'optional--',
  7284. 'optional2--',
  7285. "//a[contains(@href,'filecloud.io/')]"
  7286. );
  7287. addFileHost(
  7288. 'ifile\\.it\/\\w+',
  7289. 'var __error = 0',
  7290. 'FILES__DOESNT_EXIST',
  7291. 'optional--',
  7292. 'optional2--',
  7293. "//a[contains(@href,'ifile.it/')]"
  7294. );
  7295. }
  7296. if (GM_getValue("Check_solidfiles_dot_com_links", false))
  7297. {
  7298. addFileHost(
  7299. 'solidfiles\\.com\/d\/\\w+',
  7300. 'id="download"|content="Download',
  7301. '>Not found<|<h2>404</h2>|Page not found|<h1>404</h1>|File not available|no longer available',
  7302. 'optional--',
  7303. 'optional2--',
  7304. "//a[contains(@href,'solidfiles.com/d')]"
  7305. );
  7306. }
  7307. if (GM_getValue("Check_shareflare_dot_net_links", false))
  7308. {
  7309. addFileHost(
  7310. "(?:.\\.|)shareflare\\.net",
  7311. 'download-pnl|<div class="premium-block">',
  7312. 'File not found|Поиск зеркала на фа|<div id="captcha"',
  7313. 'optional--',
  7314. 'optional2--',
  7315. "//a[contains(@href,'shareflare.net') and contains(@href,'download')]"
  7316. );
  7317. }
  7318. if (GM_getValue("Check_u18116681_dot_shareflare_dot_net_links", false))
  7319. {
  7320. addFileHost(
  7321. "u18116681.shareflare\\.net",
  7322. 'download-pnl|<div class="premium-block">',
  7323. 'File not found|Поиск зеркала на фа|<div id="captcha"',
  7324. 'optional--',
  7325. 'optional2--',
  7326. "//a[contains(@href,'shareflare.net') and contains(@href,'download')]"
  7327. );
  7328. }
  7329. if (GM_getValue("Check_uloz_dot_to_links", false))
  7330. {
  7331. addFileHost(
  7332. "(?:uloz|ulozto|bagruj|zachowajto)\\.(to|cz|sk|net|pl)\/\\w",
  7333. 'fileDownload">|fileSize">',
  7334. 'grayButton deletedFile">|Stránka nenalezena|upload-button"|jako soukromý.',
  7335. 'passwordProtectedFile">|frmaskAgeForm-disagree',
  7336. 'optional2--',
  7337. "//a[contains(@href,'bagruj.cz') or contains(@href,'uloz.to') or contains(@href,'ulozto.') or contains(@href,'zachowajto.pl')]",
  7338. true
  7339. );
  7340. }
  7341. if (GM_getValue("Check_hellspy_dot_com_links", false))
  7342. {
  7343. addFileHost(
  7344. "hellspy\.(?:com|cz|sk|hu|pl)\/\\w+",
  7345. 'file\\-list-orderby|section-filedetail">',
  7346. '<\/span><\/h2>\\s*<p>|list-purp-2">|flash info sticky">',
  7347. 'optional--',
  7348. 'optional2--',
  7349. "//a[contains(@href,'hellspy.')]"
  7350. );
  7351. }
  7352. if (GM_getValue("Check_leteckaposta_dot_cz_links", false))
  7353. {
  7354. addFileHost(
  7355. "(?:leteckaposta\\.cz|sharegadget\\.com)\/\\d+",
  7356. '<body onload="">',
  7357. 'neexistuje|not exist',
  7358. 'optional--',
  7359. 'optional2--',
  7360. "//a[contains(@href,'leteckaposta.cz') or contains(@href,'sharegadget.com')]"
  7361. );
  7362. }
  7363. if (GM_getValue("Check_stahovanizasms_dot_cz_links", false))
  7364. {
  7365. addFileHost(
  7366. "stahovanizasms\\.cz\/\\w+",
  7367. 'download\\.png>|font-size:11px><tr>',
  7368. 'smaz.n u.ivatelem|font-size:11px><\/table>',
  7369. 'optional--',
  7370. 'optional2--',
  7371. "//a[contains(@href,'stahovanizasms.cz')]"
  7372. );
  7373. }
  7374. if (GM_getValue("Check_share_dash_links_dot_biz_links", false))
  7375. {
  7376. addFileHost(
  7377. "share-links\\.biz\/\\w*",
  7378. 'online\\.gif',
  7379. '(?:offline|parts)\\.gif',
  7380. 'optional--',
  7381. 'optional2--',
  7382. "//a[contains(@href,'share-links.biz')]"
  7383. );
  7384. }
  7385. if (GM_getValue("Check_4shared_dot_com_links", false))
  7386. {
  7387. addFileHost(
  7388. "4shared\\.com\/.+\/",
  7389. '<input type="hidden" class="jsSocialTwDefaultText" value=',
  7390. 'class="warn\"|big red"|GetDataBack',
  7391. 'Service Unavailable',
  7392. 'optional2--',
  7393. "//a[contains(@href,'4shared.com')]"
  7394. );
  7395. }
  7396. if (GM_getValue("Check_zippyshare_dot_com_links", false))
  7397. {
  7398. addFileHost(
  7399. "(?:www\\d+\.|)zippyshare\.com\/",
  7400. 'download\.png|Download Now|images/download_small.png|id="dlbutton"',
  7401. 'not exist|Status 404',
  7402. 'optional--',
  7403. 'optional2--',
  7404. "//a[contains(@href,'zippyshare.com') and contains(@href,'file.html')]"
  7405. );
  7406. }
  7407. if (GM_getValue("Check_mediafire_dot_com_links", false))
  7408. {
  7409. addFileHost(
  7410. "mediafire\.com\/",
  7411. 'download_file_title|dlFileName|id="PLAY_downloadButton"',
  7412. 'error\\.php\\?|error_msg_title|<title>Simple File Sharing|No files found',
  7413. 'set to private',
  7414. 'optional2--',
  7415. "//a[contains(@href,'mediafire.com')]"
  7416. );
  7417. }
  7418. if (GM_getValue("Check_uploaded_dot_to_links", false))
  7419. {
  7420. addFileHost(
  7421. '(?:uploaded\\.(?:to|net)\/(?:.id|file|folder|f|410|404))|(?:ul\\.to\/)',
  7422. '<h2>Authentification</h2></li>|MB</small>|KB</small>|1,00 GB',
  7423. 'box_red|Error: 404|Error: 410|fileList"><thead><tr><td colspan="2"><\/td><\/tr><\/thead><tbody>\\s*<tr>|<title>uploaded.net</title>',
  7424. 'optional--',
  7425. 'GB</small>',
  7426. "//a[contains(@href,'uploaded.to/') or contains(@href,'uploaded.net/') or contains(@href,'ul.to/')]"
  7427. );
  7428. }
  7429. if (GM_getValue("Check_ulozisko_dot_sk_links", false))
  7430. {
  7431. addFileHost(
  7432. "ulozisko\.sk\/",
  7433. 'Detaily',
  7434. 'neexistuje',
  7435. 'optional--',
  7436. 'optional2--',
  7437. "//a[contains(@href,'ulozisko.sk')]"
  7438. );
  7439. }
  7440. if (GM_getValue("Check_upnito_dot_sk_links", false))
  7441. {
  7442. addFileHost(
  7443. "(?:dl.\\.|)upnito\\.sk\/(download|subor|file)",
  7444. 'download.php',
  7445. 'notfound|upload\\-suborov\\.php"',
  7446. 'optional--',
  7447. 'optional2--',
  7448. "//a[contains(@href,'upnito.sk')]"
  7449. );
  7450. }
  7451. if (GM_getValue("Check_box_dot_com_links", false))
  7452. {
  7453. addFileHost(
  7454. "box\.com\/\\w+",
  7455. 'download-file-btn|id="download_button|preview-download',
  7456. 'BIyMin.png| <div class="error_message|link has been removed',
  7457. 'optional--',
  7458. 'optional2--',
  7459. "//a[contains(@href,'app.box.com')]");
  7460. }
  7461. if (GM_getValue("Check_uptobox_dot_com_links", false))
  7462. {
  7463. addFileHost(
  7464. "uptobox\\.com\/\\w+",
  7465. 'Create Download Link">|Lien de téléchargement',
  7466. 'The file expired|The file was deleted|Fichier introuvable|not available in your country',
  7467. 'Maintenance',
  7468. 'optional2--',
  7469. "//a[contains(@href,'uptobox.com')]"
  7470. );
  7471. }
  7472. if (GM_getValue("Check_sharecash_dot_org_links", false))
  7473. {
  7474. addFileHost(
  7475. "sharecash\\.org\/download\\.php\\?file=\\d+",
  7476. 'FILE DOWNLOAD<',
  7477. 'File Does Not Exist',
  7478. 'optional--',
  7479. 'optional2--',
  7480. "//a[contains(@href,'sharecash.org/download.php')]"
  7481. );
  7482. }
  7483. if (GM_getValue("Check_depositfiles_dot_com_links", false)) //folders
  7484. {
  7485. addFileHost(
  7486. "depositfiles\\.com\/folders\/\\w+",
  7487. '<div class="progressContainer">',
  7488. '<div id="files" class="files">\\s*<\/div>',
  7489. 'optional--',
  7490. 'optional2--',
  7491. "//a[contains(@href,'depositfiles.com/folders')]"
  7492. );
  7493. }
  7494. if (GM_getValue("Check_rapidfileshare_dot_net_links", false))
  7495. {
  7496. addFileHost(
  7497. "rapidfileshare\\.net/\\w+",
  7498. '<div id="upload-header-bg">',
  7499. '<div style="width:500px;text-align:left;">',
  7500. 'optional--',
  7501. 'optional2--',
  7502. "//a[contains(@href,'rapidfileshare.net/')]"
  7503. );
  7504. }
  7505. if (GM_getValue("Check_stiahnito_dot_sk_links", false))
  7506. {
  7507. addFileHost(
  7508. "stiahnito\\.sk/",
  7509. '<span class="filesize right">',
  7510. '<ol class="list-purp-2">',
  7511. 'optional--',
  7512. 'optional2--',
  7513. "//a[contains(@href,'stiahnito.sk/')]"
  7514. );
  7515. }
  7516. if (GM_getValue("Check_rusfolder_dot_com_links", false))
  7517. {
  7518. addFileHost(
  7519. "rusfolder\\.(?:com|net)",
  7520. '"download-step-one-form"|Название: <b>|Файлы|Файлы в папке',
  7521. '"ui-state-error ui-corner-all"|File is removed|File not found|удален',
  7522. 'optional--',
  7523. 'optional2--',
  7524. "//a[contains(@href,'rusfolder')]"
  7525. );
  7526. }
  7527. if (GM_getValue("Check_fileover_dot_net_links", false))
  7528. {
  7529. addFileHost(
  7530. "fileover\\.net/\\d+",
  7531. 'id="filesize"',
  7532. 'Not found or deleted|The following file is unavailable',
  7533. 'optional--',
  7534. 'optional2--',
  7535. "//a[contains(@href,'fileover.net/')]"
  7536. );
  7537. }
  7538. if (GM_getValue("Check_catshare_dot_net_links", false))
  7539. {
  7540. addFileHost(
  7541. "catshare\\.net/\\w+",
  7542. '"icon-share',
  7543. 'alert alert-error',
  7544. 'optional--',
  7545. 'optional2--',
  7546. "//a[contains(@href,'catshare.net/')]"
  7547. );
  7548. }
  7549. if (GM_getValue("Check_anonfiles_dot_com_links", false))
  7550. {
  7551. addFileHost(
  7552. "anonfiles\\.com/\\w+",
  7553. '"download_button"',
  7554. '<legend><b>404</b>',
  7555. 'optional--',
  7556. 'optional2--',
  7557. "//a[contains(@href,'anonfiles.com')]"
  7558. );
  7559. }
  7560. if (GM_getValue("Check_mixturecloud_dot_com_links", false))
  7561. {
  7562. addFileHost(
  7563. "mixturecloud\\.com/media/\\w+",
  7564. '"btn icon i_globe gray share_150',
  7565. '"s_cross_close"></span> 404:',
  7566. 'optional--',
  7567. 'optional2--',
  7568. "//a[contains(@href,'mixturecloud.com/media/')]"
  7569. );
  7570. }
  7571. if (GM_getValue("Check_akafile_dot_com_links", false))
  7572. {
  7573. addFileHost(
  7574. "akafile\\.com\/\\w+",
  7575. 'download1',
  7576. 'File Not Found',
  7577. 'optional--',
  7578. 'optional2--',
  7579. "//a[contains(@href,'akafile.com/')]"
  7580. );
  7581. }
  7582. if (GM_getValue("Check_creafile_dot_net_links", false))
  7583. {
  7584. addFileHost(
  7585. "creafile\\.net\/\\w+",
  7586. 'downloadblock',
  7587. 'errtitle',
  7588. 'optional--',
  7589. 'optional2--',
  7590. "//a[contains(@href,'creafile.net/')]"
  7591. );
  7592. }
  7593. if (GM_getValue("Check_hugefiles_dot_net_links", false))
  7594. {
  7595. addFileHost(
  7596. "hugefiles\\.net\/\\w+",
  7597. 'download1|class="btn-create-download" value="Create Download Link">',
  7598. 'File Not Found|No such file with this filename|tyle="width:500px;text-align:left;">',
  7599. 'optional--',
  7600. 'optional2--',
  7601. "//a[contains(@href,'hugefiles.net/')]"
  7602. );
  7603. }
  7604. if (GM_getValue("Check_sendmyway_dot_com_links", false))
  7605. {
  7606. addFileHost(
  7607. "sendmyway\\.com\/\\w+",
  7608. 'id="btn_download"',
  7609. '500px;text-align:left;"|<center><h3>',
  7610. 'optional--',
  7611. 'optional2--',
  7612. "//a[contains(@href,'sendmyway.com/')]"
  7613. );
  7614. }
  7615. if (GM_getValue("Check_upload_dot_ee_links", false))
  7616. {
  7617. addFileHost(
  7618. "upload\\.ee\/\\w+",
  7619. 'onmouseout="document.dllink.src',
  7620. 'There is no such file.|File was deleted|Fail kustutati|Файл удалён|Такого файла нет',
  7621. 'optional--',
  7622. 'optional2--',
  7623. "//a[contains(@href,'upload.ee/')]"
  7624. );
  7625. }
  7626. if (GM_getValue("Check_shareplace_dot_org_links", false))
  7627. {
  7628. addFileHost(
  7629. "shareplace\\.org\/\\?\\w+",
  7630. 'Download-Link',
  7631. 'Your requested file is not found|Select file to send',
  7632. 'optional--',
  7633. 'optional2--',
  7634. "//a[contains(@href,'shareplace.org/?')]"
  7635. );
  7636. }
  7637. if (GM_getValue("Check_uploadc_dot_com_links", false))
  7638. {
  7639. addFileHost(
  7640. "uploadc\\.com\/\\w+",
  7641. 'id="prebut"',
  7642. 'File Not Found|This file has been removed due',
  7643. 'optional--',
  7644. 'optional2--',
  7645. "//a[contains(@href,'uploadc.com/')]"
  7646. );
  7647. }
  7648. if (GM_getValue("Check_remixshare_dot_com_links", false))
  7649. {
  7650. addFileHost(
  7651. "remixshare\\.com\/\\w+",
  7652. 'id="dl2"',
  7653. '<table class=\'failed\'><tr><td width=\'90%\'>|Sorry, die Datei konnte nicht gefunden werden',
  7654. 'optional--',
  7655. 'optional2--',
  7656. "//a[contains(@href,'remixshare.com/')]"
  7657. );
  7658. }
  7659. if (GM_getValue("Check_exoshare_dot_com_links", false))
  7660. {
  7661. addFileHost(
  7662. "exoshare\\.com\/download\\.php\\?uid=\\w+",
  7663. 'Last Download :',
  7664. 'img src="\\/404.jpg"',
  7665. 'optional--',
  7666. 'optional2--',
  7667. "//a[contains(@href,'exoshare.com/download.php')]"
  7668. );
  7669. }
  7670. if (GM_getValue("Check_borncash_dot_org_links", false))
  7671. {
  7672. addFileHost(
  7673. "borncash\\.org\/download\/\\?a=\\w+",
  7674. 'class="knop_1"',
  7675. '\/error\/er00',
  7676. 'optional--',
  7677. 'optional2--',
  7678. "//a[contains(@href,'borncash.org/download/')]"
  7679. );
  7680. }
  7681. if (GM_getValue("Check_vidplay_dot_net_links", false))
  7682. {
  7683. addFileHost(
  7684. "vidplay\.net\/\\w+",
  7685. 'solvemedia puzzle widget',
  7686. 'File not found|AVOID_IE_BUG',
  7687. 'optional--',
  7688. 'optional2--',
  7689. "//a[contains(@href,'vidplay.net')]");
  7690. }
  7691. if (GM_getValue("Check_storagon_dot_com_links", false))
  7692. {
  7693. addFileHost(
  7694. "storagon\.com\/\\w+",
  7695. 'class="icon-cloud-download"></i>|content="Download Options',
  7696. 'content="Download Downloads|class="error-container">|class="bigger-300 bolder">404<',
  7697. 'optional--',
  7698. 'optional2--',
  7699. "//a[contains(@href,'storagon.com')]");
  7700. }
  7701. if (GM_getValue("Check_filedais_dot_com_links", false))
  7702. {
  7703. addFileHost(
  7704. "filedais\.com\/\\w+",
  7705. 'class="btn btn-info"|name="method_free"',
  7706. 'style="width:500px;text-align:left;">|File Not Found|AVOID_IE_BUG',
  7707. 'optional--',
  7708. 'optional2--',
  7709. "//a[contains(@href,'filedais.com')]");
  7710. }
  7711. if (GM_getValue("Check_up_dot_4share_dot_vn_links", false))
  7712. {
  7713. addFileHost(
  7714. "up.4share\.vn\/\\w+",
  7715. '<font size="2" face="Verdana">',
  7716. 'font: 13px Tahoma; color: Brown',
  7717. 'optional--',
  7718. 'optional2--',
  7719. "//a[contains(@href,'up.4share.vn')]");
  7720. }
  7721. if (GM_getValue("Check_share_dot_vnn_dot_vn_links", false))
  7722. {
  7723. addFileHost(
  7724. "share.vnn\.vn\/\\w+",
  7725. '"index,follow"|<div class="main" id="download-box">',
  7726. '<meta name="description" content="" />|<h1>Không tìm thấy file bạn yêu cầu</h1>',
  7727. 'optional--',
  7728. 'optional2--',
  7729. "//a[contains(@href,'share.vnn.vn')]");
  7730. }
  7731. if (GM_getValue("Check_upfile_dot_vn_links", false))
  7732. {
  7733. addFileHost(
  7734. "upfile\.vn\/\\w+",
  7735. 'download-timer',
  7736. '<meta name="description" content="Upload files|<meta name="description" content="Error "',
  7737. 'optional--',
  7738. 'optional2--',
  7739. "//a[contains(@href,'upfile.vn')]");
  7740. }
  7741. if (GM_getValue("Check_aisfile_dot_com_links", false))
  7742. {
  7743. addFileHost(
  7744. "aisfile\.com\/\\w+",
  7745. '<h3 style="text-align:left;">|align=right><b>Filename:',
  7746. '<div style="width:500px;text-align:left;">|File Not Found',
  7747. 'optional--',
  7748. 'optional2--',
  7749. "//a[contains(@href,'aisfile.com')]");
  7750. }
  7751. if (GM_getValue("Check_usersfiles_dot_com_links", false))
  7752. {
  7753. addFileHost(
  7754. "usersfiles\.com\/\\w+",
  7755. 'class="btn btn-success|id="btn_download" class="btn"',
  7756. '<div style="width:500px;text-align:left;">|class="label label-inverse">|class="err">',
  7757. 'optional--',
  7758. 'optional2--',
  7759. "//a[contains(@href,'usersfiles.com')]");
  7760. }
  7761. if (GM_getValue("Check_pan_dot_baidu_dot_com_links", false))
  7762. {
  7763. addFileHost(
  7764. "pan.baidu\.com\/\\w+",
  7765. 'target="_blank" title=|share-personal-info',
  7766. 'share_notfound.png|background:#f9f9f9',
  7767. 'optional--',
  7768. 'optional2--',
  7769. "//a[contains(@href,'pan.baidu.com')]");
  7770. }
  7771. if (GM_getValue("Check_yunpan_dot_cn_links", false))
  7772. {
  7773. addFileHost(
  7774. "yunpan\.cn\/\\w+",
  7775. 'class="icon icon-download',
  7776. 'content="360|http://p5.qhimg.com/t01d1c98667df9dc6cc.jpg',
  7777. 'optional--',
  7778. 'optional2--',
  7779. "//a[contains(@href,'yunpan.cn')]");
  7780. }
  7781. if (GM_getValue("Check_file_dash_upload_dot_net_links", false))
  7782. {
  7783. addFileHost(
  7784. "(?:en\\.|)file\\-upload\\.net\/download\\-\\d+\/\\w+",
  7785. 'getElementById("downbild")|style.display',
  7786. 'hochgeladene Datei nicht gefunden werden|has not been found',
  7787. 'optional--',
  7788. 'optional2--',
  7789. "//a[contains(@href,'file-upload.net')]");
  7790. }
  7791. if (GM_getValue("Check_gulfup_dot_com_links", false))
  7792. {
  7793. addFileHost(
  7794. "gulfup\.com\/",
  7795. '<!-- Downlod template -->|download.gif',
  7796. '<!-- Errors template -->|class="error">|<!-- form upload -->|[ رفع الملفات ]',
  7797. 'optional--',
  7798. 'optional2--',
  7799. "//a[contains(@href,'gulfup.com')]");
  7800. }
  7801. if (GM_getValue("Check_datafilehost_dot_com_links", false))
  7802. {
  7803. addFileHost(
  7804. "datafilehost\\.com\/(?:download-\\w+\\.html|d\/\\w+)",
  7805. 'dldtable">',
  7806. 'does not exist\\.',
  7807. 'optional--',
  7808. 'optional2--',
  7809. "//a[contains(@href,'datafilehost.com')]");
  7810. }
  7811. if (GM_getValue("Check_dropbox_dot_com_links", false))
  7812. {
  7813. addFileHost(
  7814. "dropbox\.com\/s\/\\w+",
  7815. 'default_content_download_button" class="freshbutton-blue">|content_download_button',
  7816. '>Nothing Here<|>Error (404)<',
  7817. 'title>Dropbox - 509|Error (403)|Error: 429',
  7818. 'optional2--',
  7819. "//a[contains(@href,'dropbox.com')]");
  7820. }
  7821. if (GM_getValue("Check_box_dot_net_links", false))
  7822. {
  7823. addFileHost(
  7824. "box\.net\/\\w+",
  7825. 'download-file-btn|id="download_button',
  7826. 'BIyMin.png| <div class="error_message',
  7827. 'optional--',
  7828. 'optional2--',
  7829. "//a[contains(@href,'box.net')]");
  7830. }
  7831. if (GM_getValue("Check_fileband_dot_com_links", false))
  7832. {
  7833. addFileHost(
  7834. "fileband\.com\/\\w+",
  7835. 'value="download1">|name="id" value=',
  7836. '<div style="width:500px;text-align:left;">|not be found',
  7837. 'optional--',
  7838. 'optional2--',
  7839. "//a[contains(@href,'fileband.com')]");
  7840. }
  7841. if (GM_getValue("Check_filedropper_dot_com_links", false))
  7842. {
  7843. addFileHost(
  7844. "filedropper\.com\/\\w+",
  7845. 'background:#ddd;|width:985px; ',
  7846. 'background-color:#FFFFFF;|margin-left: -400px;',
  7847. 'optional--',
  7848. 'optional2--',
  7849. "//a[contains(@href,'filedropper.com')]");
  7850. }
  7851. if (GM_getValue("Check_tropicshare_dot_com_links", false))
  7852. {
  7853. addFileHost(
  7854. "tropicshare\\.com\/files\/\\d+",
  7855. 'MB</span>|GB</span>|KB</span>',
  7856. '>FNF<|size: </span>',
  7857. 'optional--',
  7858. 'optional2--',
  7859. "//a[contains(@href,'tropicshare.com')]");
  7860. }
  7861. if (GM_getValue("Check_goldbytez_dot_com_links", false))
  7862. {
  7863. addFileHost(
  7864. "goldbytez\.com\/\\w+",
  7865. '<h2>Download</h2>|<center><h2>File: <font color="red">',
  7866. '<div style="width:500px;text-align:left;">|<h2>Error</h2>',
  7867. 'optional--',
  7868. 'optional2--',
  7869. "//a[contains(@href,'goldbytez.com')]");
  7870. }
  7871. if (GM_getValue("Check_worldbytez_dot_com_links", false))
  7872. {
  7873. addFileHost(
  7874. "worldbytez\.com\/\\w+",
  7875. '<div class="download_type">',
  7876. '<div style="width:500px;text-align:left;">',
  7877. 'optional--',
  7878. 'optional2--',
  7879. "//a[contains(@href,'worldbytez.com')]");
  7880. }
  7881. if (GM_getValue("Check_freefilehosting_dot_net_links", false))
  7882. {
  7883. addFileHost(
  7884. "freefilehosting\.net\/\\w+",
  7885. 'Type: cbr|Type: rar|Type: jpg|Type: mkv|Type: avi|Type: mpg|Type: mpeg|Type: zip|Type: wmvType: bmpType: gifType: mp4Type: mp3',
  7886. '175px;" value="http://www.freefilehosting.net/"|Filename: <br>',
  7887. 'optional--',
  7888. 'optional2--',
  7889. "//a[contains(@href,'freefilehosting.net')]");
  7890. }
  7891. if (GM_getValue("Check_ziddu_dot_com_links", false))
  7892. {
  7893. addFileHost(
  7894. "ziddu\.com\/\\w+",
  7895. 'downloads.ziddu.com|downloadfilelinkicon',
  7896. 'errortracking.php|images/oops.png|fontfamilyverdana error',
  7897. 'optional--',
  7898. 'optional2--',
  7899. "//a[contains(@href,'ziddu.com')]");
  7900. }
  7901. if (GM_getValue("Check_exclusiveloader_dot_com_links", false))
  7902. {
  7903. addFileHost(
  7904. "exclusiveloader\.com\/\\w+",
  7905. 'style="padding-top:55px; padding-bottom:65px;">|<h2>Download</h2>',
  7906. 'File Not Found|width:322px;text-align:left;" class="no_file">',
  7907. 'optional--',
  7908. 'optional2--',
  7909. "//a[contains(@href,'exclusiveloader.com')]");
  7910. }
  7911. if (GM_getValue("Check_sharerapid_dot_cz_links", false))
  7912. {
  7913. addFileHost(
  7914. "sharerapid\.cz\/\\w+",
  7915. 'value="Stáhnout"|soubor" style|Stahování je povoleno pouze pro přihlášené uživatele',
  7916. 'error_div">|404 - Not Found',
  7917. 'optional--',
  7918. 'optional2--',
  7919. "//a[contains(@href,'sharerapid.cz')]");
  7920. }
  7921. if (GM_getValue("Check_sdilej_dot_cz_links", false))
  7922. {
  7923. addFileHost(
  7924. "sdilej\.cz\/\\w+",
  7925. 'class="page-download"',
  7926. '<h2 class="red">|czshare.com|sponsored listings|This domain is for sale',
  7927. 'optional--',
  7928. 'optional2--',
  7929. "//a[contains(@href,'sdilej.cz')]");
  7930. }
  7931. if (GM_getValue("Check_lafiles_dot_com_links", false))
  7932. {
  7933. addFileHost(
  7934. "lafiles\.com\/\\w+",
  7935. '<div id="pay_modes">',
  7936. '<b class="err"></b>',
  7937. 'optional--',
  7938. 'optional2--',
  7939. "//a[contains(@href,'lafiles.com')]");
  7940. }
  7941. if (GM_getValue("Check_acefile_dot_net_links", false))
  7942. {
  7943. addFileHost(
  7944. "acefile\.net\/\\w+",
  7945. 'align=right nowrap><b>',
  7946. 'File Not Found|<div style="width:322px;text-align:left;" class="no_file">',
  7947. 'optional--',
  7948. 'optional2--',
  7949. "//a[contains(@href,'acefile.net')]");
  7950. }
  7951. if (GM_getValue("Check_megarapid_dot_cz_links", false))
  7952. {
  7953. addFileHost(
  7954. "megarapid\.cz\/\\w+",
  7955. 'value="Stáhnout"|soubor" style|Stahování je povoleno pouze pro přihlášené uživatele',
  7956. 'error_div">|404 - Not Found',
  7957. 'optional--',
  7958. 'optional2--',
  7959. "//a[contains(@href,'megarapid.cz')]");
  7960. }
  7961. if (GM_getValue("Check_yadi_dot_sk_links", false))
  7962. {
  7963. addFileHost(
  7964. "yadi\.sk\/\\w+",
  7965. 'twitter:site|View and download',
  7966. 'error code|Nothing found',
  7967. 'optional--',
  7968. 'optional2--',
  7969. "//a[contains(@href,'yadi.sk')]");
  7970. }
  7971. /* if (GM_getValue("Check_imdb_dot_com_links", false))
  7972. {
  7973. addFileHost(
  7974. "imdb\.com\/\\w+",
  7975. 'imdb.com',
  7976. '404 Error',
  7977. 'optional--',
  7978. 'optional2--',
  7979. "//a[contains(@href,'imdb.com')]");
  7980. } */
  7981. if (GM_getValue("Check_hitfile_dot_net_links", false))
  7982. {
  7983. addFileHost(
  7984. "hitfile\.net\/\\w+",
  7985. 'class="download-file',
  7986. 'style="width:16px;height:16px;border:0;|File not found|File was deleted or not found|Le fichier a été supprimé ou n|Файл не найден. Возможно он был удален',
  7987. 'optional--',
  7988. 'optional2--',
  7989. "//a[contains(@href,'hitfile.net')]");
  7990. }
  7991. if (GM_getValue("Check_nitroflare_dot_com_links", true))
  7992. {
  7993. addFileHost(
  7994. "nitroflare\.com\/\\w+",
  7995. 'Report this file</a>|left;">1 GB<|KB</span>|left;">1.0',
  7996. 'file has been removed|id="error" style="display|Probably deleted|file has been removed due to infringement',
  7997. 'optional--',
  7998. '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.|',
  7999. "//a[contains(@href,'nitroflare.com')]");
  8000. }
  8001. if (GM_getValue("Check_up_dot_top4top_dot_net_links", false))
  8002. {
  8003. addFileHost(
  8004. "up.top4top\.net\/\\w+",
  8005. 'start Downlod template',
  8006. 'start err template',
  8007. 'optional--',
  8008. 'optional2--',
  8009. "//a[contains(@href,'up.top4top.net')]");
  8010. }
  8011. if (GM_getValue("Check_filejoker_dot_net_links", false))
  8012. {
  8013. addFileHost(
  8014. "filejoker\.net\/\\w+",
  8015. 'button id="regular-download">Slow|method_free" value="1|<div id="download" class="download0">|>Get Download Link<',
  8016. 'File Not Found|class="not_found|<div id="download" class="not_found">|"err">DMCA Complaint<',
  8017. 'optional--',
  8018. 'id="download" class="premium-only">',
  8019. "//a[contains(@href,'filejoker.net')]");
  8020. }
  8021. if (GM_getValue("Check_free_dot_fr_links", false))
  8022. {
  8023. addFileHost(
  8024. "(?:dl.\\.|)free\\.fr",
  8025. 'Valider et t&eacute;l&eacute',
  8026. 'Fichier inexistant|Fichier supprim&eacute; pour raison de copyright',
  8027. 'optional--',
  8028. 'optional2--',
  8029. "//a[contains(@href,'dl.free.fr')]");
  8030. }
  8031. if (GM_getValue("Check_gboxes_dot_com_links", false))
  8032. {
  8033. addFileHost(
  8034. "gboxes\.com\/\\w+",
  8035. 'You have requested|color="red">http://www.gboxes.com',
  8036. 'File Not Found|<div style="width:500px;text-align:left;">',
  8037. 'optional--',
  8038. 'optional2--',
  8039. "//a[contains(@href,'gboxes.com')]");
  8040. }
  8041. if (GM_getValue("Check_led_dot_wf_links", false))
  8042. {
  8043. addFileHost(
  8044. "led\.wf\/\\w+",
  8045. 'logo_0.png|downloads.gif"|verifycode',
  8046. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  8047. 'optional--',
  8048. 'available only for Premium users',
  8049. "//a[contains(@href,'led.wf')]");
  8050. }
  8051. if (GM_getValue("Check_lan_dot_wf_links", false))
  8052. {
  8053. addFileHost(
  8054. "lan\.wf\/\\w+",
  8055. 'logo_0.png|downloads.gif"|verifycode',
  8056. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  8057. 'optional--',
  8058. 'available only for Premium users',
  8059. "//a[contains(@href,'lan.wf')]");
  8060. }
  8061. if (GM_getValue("Check_adlink_dot_wf_links", false))
  8062. {
  8063. addFileHost(
  8064. "adlink\.wf\/\\w+",
  8065. 'logo_0.png|downloads.gif"|verifycode',
  8066. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  8067. 'optional--',
  8068. 'available only for Premium users',
  8069. "//a[contains(@href,'adlink.wf')]");
  8070. }
  8071. if (GM_getValue("Check_click_dot_tf_links", false))
  8072. {
  8073. addFileHost(
  8074. "click\.tf\/\\w+",
  8075. 'logo_0.png|downloads.gif"|verifycode',
  8076. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  8077. 'optional--',
  8078. 'available only for Premium users',
  8079. "//a[contains(@href,'click.tf')]");
  8080. }
  8081. if (GM_getValue("Check_ssh_dot_tf_links", false))
  8082. {
  8083. addFileHost(
  8084. "ssh\.tf\/\\w+",
  8085. 'logo_0.png|downloads.gif"|verifycode',
  8086. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  8087. 'optional--',
  8088. 'available only for Premium users',
  8089. "//a[contains(@href,'ssh.tf')]");
  8090. }
  8091. if (GM_getValue("Check_ssh_dot_yt_links", false))
  8092. {
  8093. addFileHost(
  8094. "ssh\.yt\/\\w+",
  8095. 'logo_0.png|downloads.gif"|verifycode',
  8096. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  8097. 'optional--',
  8098. 'available only for Premium users',
  8099. "//a[contains(@href,'ssh.yt')]");
  8100. }
  8101. if (GM_getValue("Check_yep_dot_pm_links", false))
  8102. {
  8103. addFileHost(
  8104. "yep\.pm\/\\w+",
  8105. 'logo_0.png|downloads.gif"|verifycode',
  8106. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  8107. 'optional--',
  8108. 'available only for Premium users',
  8109. "//a[contains(@href,'yep.pm')]");
  8110. }
  8111. if (GM_getValue("Check_kyc_dot_pm_links", false))
  8112. {
  8113. addFileHost(
  8114. "kyc\.pm\/\\w+",
  8115. 'logo_0.png|downloads.gif"|verifycode',
  8116. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  8117. 'optional--',
  8118. 'available only for Premium users',
  8119. "//a[contains(@href,'kyc.pm')]");
  8120. }
  8121. if (GM_getValue("Check_brupload_dot_net_links", false))
  8122. {
  8123. addFileHost(
  8124. "brupload\.net\/\\w+",
  8125. 'Download Gratuito',
  8126. '<div style="width:500px;text-align:left;">',
  8127. 'optional--',
  8128. 'optional2--',
  8129. "//a[contains(@href,'brupload.net')]");
  8130. }
  8131. if (GM_getValue("Check_cloudzilla_dot_to_links", false))
  8132. {
  8133. addFileHost(
  8134. "cloudzilla\.to\/\\w+",
  8135. 'btn1" id="free_download|onclick="freeDownload|id="pwd_protected">',
  8136. 'File not found|/imgs/broken.png',
  8137. 'optional--',
  8138. 'optional2--',
  8139. "//a[contains(@href,'cloudzilla.to')]");
  8140. }
  8141. if (GM_getValue("Check_fileparadox_dot_in_links", false))
  8142. {
  8143. addFileHost(
  8144. "fileparadox\.in\/\\w+",
  8145. 'CONTENT="Download File|method_free_file',
  8146. '>File Not Found<|id="no_filedownload">|FILE NOT FOUND|The file does not exist',
  8147. 'optional--',
  8148. 'optional2--',
  8149. "//a[contains(@href,'fileparadox.in')or contains(@href,'3files.net/')]");
  8150. }
  8151. if (GM_getValue("Check_clicknupload_dot_com_links", false))
  8152. {
  8153. addFileHost(
  8154. "clicknupload\.com\/\\w+",
  8155. 'name="method_free',
  8156. 'File Not Found',
  8157. 'optional--',
  8158. 'optional2--',
  8159. "//a[contains(@href,'clicknupload.com')]");
  8160. }
  8161. if (GM_getValue("Check_clicknupload_dot_me_links", false))
  8162. {
  8163. addFileHost(
  8164. "clicknupload\.me\/\\w+",
  8165. 'name="method_free',
  8166. 'File Not Found',
  8167. 'optional--',
  8168. 'optional2--',
  8169. "//a[contains(@href,'clicknupload.me')]");
  8170. }
  8171. if (GM_getValue("Check_ex_dash_load_dot_com_links", false))
  8172. {
  8173. addFileHost(
  8174. "ex-load\.com\/\\w+",
  8175. 'name="method_free|<p>Download File:</p>',
  8176. 'Folder Not Found|File Not Found|Error 404',
  8177. 'optional--',
  8178. 'class="downprem wow bounceInLeft',
  8179. "//a[contains(@href,'ex-load.com')]");
  8180. }
  8181. if (GM_getValue("Check_hexupload_dot_com_links", false))
  8182. {
  8183. addFileHost(
  8184. "hexupload\.com\/\\w+",
  8185. 'button" value="Free|type="submit" value=""',
  8186. 'File Not Found|<div style="width:500px;text-align:left;">',
  8187. 'optional--',
  8188. 'optional2--',
  8189. "//a[contains(@href,'hexupload.com')]");
  8190. }
  8191. if (GM_getValue("Check_wizupload_dot_com_links", false))
  8192. {
  8193. addFileHost(
  8194. "wizupload\.com\/\\w+",
  8195. 'btn_download|class="downloadbtn"',
  8196. '>File Not Found<',
  8197. 'optional--',
  8198. 'optional2--',
  8199. "//a[contains(@href,'wizupload.com')]");
  8200. }
  8201. if (GM_getValue("Check_filecloud_dot_cc_links", false))
  8202. {
  8203. addFileHost(
  8204. "filecloud\.cc\/\\w+",
  8205. 'align="center"><input type="submit" name=',
  8206. 'File Not Found|<Title>FileCloud - Premium Hosting Service<',
  8207. 'optional--',
  8208. 'optional2--',
  8209. "//a[contains(@href,'filecloud.cc')]");
  8210. }
  8211. if (GM_getValue("Check_inclouddrive_dot_com_links", false))
  8212. {
  8213. addFileHost(
  8214. "inclouddrive\.com\/\\w+",
  8215. 'initfreedownload',
  8216. '<title>Content Unavailable|The file you are trying to download is no longer available',
  8217. 'optional--',
  8218. 'optional2--',
  8219. "//a[contains(@href,'inclouddrive.com')]");
  8220. }
  8221. if (GM_getValue("Check_radicalshare_dot_com_links", false))
  8222. {
  8223. addFileHost(
  8224. "radicalshare\.com\/\\w+",
  8225. 'value="download1|name="method_free"',
  8226. 'File Not Found<|<div style="width:500px;text-align:left;">',
  8227. 'optional--',
  8228. 'optional2--',
  8229. "//a[contains(@href,'radicalshare.com')]");
  8230. }
  8231. if (GM_getValue("Check_sharemods_dot_com_links", false))
  8232. {
  8233. addFileHost(
  8234. "sharemods\.com\/\\w+",
  8235. 'name="method_free"',
  8236. 'File Not Found<',
  8237. 'optional--',
  8238. 'optional2--',
  8239. "//a[contains(@href,'sharemods.com')]");
  8240. }
  8241. if (GM_getValue("Check_hostr_dot_co_links", false))
  8242. {
  8243. addFileHost(
  8244. "hostr\.co\/\\w+",
  8245. 'method="get"',
  8246. 'File not found<|error-page',
  8247. 'optional--',
  8248. 'optional2--',
  8249. "//a[contains(@href,'hostr.co')]");
  8250. }
  8251. if (GM_getValue("Check_filepi_dot_com_links", false))
  8252. {
  8253. addFileHost(
  8254. "filepi\.com\/\\w+",
  8255. 'id="button_start">',
  8256. 'File not found',
  8257. 'optional--',
  8258. 'optional2--',
  8259. "//a[contains(@href,'filepi.com')]");
  8260. }
  8261. if (GM_getValue("Check_tikfile_dot_com_links", false))
  8262. {
  8263. addFileHost(
  8264. "tikfile\.com\/\\w+",
  8265. 'btn_download',
  8266. 'File Not Found|file was removed|Reason for deletion',
  8267. 'optional--',
  8268. 'optional2--',
  8269. "//a[contains(@href,'tikfile.com')]");
  8270. }
  8271. if (GM_getValue("Check_cloudsix_dot_me_links", false))
  8272. {
  8273. addFileHost(
  8274. "cloudsix\.me\/\\w+",
  8275. 'name="method_free"',
  8276. 'File Not Found|width:500px;text-align:left;">',
  8277. 'optional--',
  8278. 'optional2--',
  8279. "//a[contains(@href,'cloudsix.me')]");
  8280. }
  8281. if (GM_getValue("Check_neodrive_dot_co_links", false))
  8282. {
  8283. addFileHost(
  8284. "neodrive\.co\/\\w+",
  8285. 'btn1" id="free_download|onclick="freeDownload|id="pwd_protected">',
  8286. 'File not found|/imgs/broken.png',
  8287. 'optional--',
  8288. 'optional2--',
  8289. "//a[contains(@href,'neodrive.co')]");
  8290. }
  8291. if (GM_getValue("Check_chayfile_dot_com_links", false))
  8292. {
  8293. addFileHost(
  8294. "chayfile\.com\/\\w+",
  8295. 'name="method_free"',
  8296. 'File Not Found|<h3>The file was removed by administrator</h3>',
  8297. 'optional--',
  8298. 'optional2--',
  8299. "//a[contains(@href,'chayfile.com')]");
  8300. }
  8301. if (GM_getValue("Check_xfileload_dot_com_links", false))
  8302. {
  8303. addFileHost(
  8304. "xfileload\.com\/\\w+",
  8305. 'Filename:|Имя файла:|Dateiname:|nom de fichier :|اسم الملف:|Dosya AdД±|Nazwa:|Nombre de fichero:|NamaFile:|Bestandsnaam:|שם קובץ:"',
  8306. '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..|הקובץ שחיפשת לא נמצא.',
  8307. 'optional--',
  8308. 'optional2--',
  8309. "//a[contains(@href,'xfileload.com')]");
  8310. }
  8311. if (GM_getValue("Check_rockfile_dot_eu_links", false))
  8312. {
  8313. addFileHost(
  8314. "rockfile\.eu\/\\w+",
  8315. 'You have requested:|vous avez demandé|قد طلبت:|você solicitou:|Hai richiesto:|Sie haben angefordert:|Вы заказали:|Has solicitado',
  8316. 'The file you were looking for could not be found, sorry for any inconvenience.|fa-chain-broken">',
  8317. 'optional--',
  8318. 'optional2--',
  8319. "//a[contains(@href,'rockfile.eu')]");
  8320. }
  8321. if (GM_getValue("Check_24uploading_dot_com_links", false))
  8322. {
  8323. addFileHost(
  8324. "24uploading\.com\/\\w+",
  8325. 'File:|Download Speed:',
  8326. '<b>File Not Found</b>|file was removed',
  8327. 'optional--',
  8328. 'optional2--',
  8329. "//a[contains(@href,'24uploading.com')]");
  8330. }
  8331. if (GM_getValue("Check_tusfiles_dot_net_links", false))
  8332. {
  8333. addFileHost(
  8334. "tusfiles\.net\/\\w+",
  8335. 'i/icon/dll.png"|>Start download<br',
  8336. 'no longer available<|i/ino.png"',
  8337. 'optional--',
  8338. 'optional2--',
  8339. "//a[contains(@href,'tusfiles.net')]");
  8340. }
  8341. /* if (GM_getValue("Check_jumbofile_dot_net_links", false))
  8342. {
  8343. addFileHost(
  8344. "jumbofile\.net\/\\w+",
  8345. 'button" class="" value="Free',
  8346. 'This File Was Deleted',
  8347. 'optional--',
  8348. 'optional2--',
  8349. "//a[contains(@href,'jumbofile.net')]");
  8350. } */
  8351. if (GM_getValue("Check_ozofiles_dot_com_links", false))
  8352. {
  8353. addFileHost(
  8354. "ozofiles\.com\/\\w+",
  8355. 'button" value="Free',
  8356. 'File Not Found|width:500px;text-align:left;">|File Deleted',
  8357. 'optional--',
  8358. 'optional2--',
  8359. "//a[contains(@href,'ozofiles.com')]");
  8360. }
  8361. if (GM_getValue("Check_loudupload_dot_net_links", false))
  8362. {
  8363. addFileHost(
  8364. "loudupload\.net\/\\w+",
  8365. 'value="Get Links',
  8366. 'File Not Found',
  8367. 'optional--',
  8368. 'optional2--',
  8369. "//a[contains(@href,'loudupload.net')]");
  8370. }
  8371. /* if (GM_getValue("Check_rapidsonic_dot_com_links", false))
  8372. {
  8373. addFileHost(
  8374. "(rapidsonic|fileparadox)\\.com\/\\w+",
  8375. 'method_free" id="submit_btn|<h4><i class="icon_document_alt"></i>Download File</h4>',
  8376. '>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">',
  8377. 'optional--',
  8378. 'optional2--',
  8379. "//a[contains(@href,'rapidsonic') or contains(@href,'3files.net/') or contains(@href,'fileparadox.com')]");
  8380. }
  8381. if (GM_getValue("Check_krotix_dot_net_links", false))
  8382. {
  8383. addFileHost(
  8384. "krotix\.net\/\\w+",
  8385. 'btn btn-warning|btn-free',
  8386. 'pageErrors|This File has been removed',
  8387. 'content="Scheduled Maintenance',
  8388. 'optional2--',
  8389. "//a[contains(@href,'krotix.net')]");
  8390. } */
  8391. if (GM_getValue("Check_userscloud_dot_com_links", false))
  8392. {
  8393. addFileHost(
  8394. "userscloud\.com\/\\w+",
  8395. 'btn_download',
  8396. '>Server OFFLINE|background:#D3D3D3;border-bottom:1px solid #BBB;font:bold 13px Verdana;padding:3px;">|-chain-broken',
  8397. 'optional--',
  8398. 'optional2--',
  8399. "//a[contains(@href,'userscloud.com')]");
  8400. }
  8401. if (GM_getValue("Check_kumpulbagi_dot_com_links", false))
  8402. {
  8403. addFileHost(
  8404. "kumpulbagi\.com\/\\w+",
  8405. 'class="button download',
  8406. 'internal server error',
  8407. 'optional--',
  8408. 'optional2--',
  8409. "//a[contains(@href,'kumpulbagi.com')]");
  8410. }
  8411. if (GM_getValue("Check_faststore_dot_org_links", false))
  8412. {
  8413. addFileHost(
  8414. "faststore\.org\/\\w+",
  8415. 'name="method_free',
  8416. 'File Not Found',
  8417. 'optional--',
  8418. 'optional2--',
  8419. "//a[contains(@href,'faststore.org')]");
  8420. }
  8421. if (GM_getValue("Check_prefiles_dot_com_links", false))
  8422. {
  8423. addFileHost(
  8424. "prefiles\.com\/\\w+",
  8425. 'id="method_free',
  8426. 'File not Found',
  8427. 'optional--',
  8428. 'optional2--',
  8429. "//a[contains(@href,'prefiles.com')]");
  8430. }
  8431. if (GM_getValue("Check_doraupload_dot_com_links", false))
  8432. {
  8433. addFileHost(
  8434. "doraupload\.com\/\\w+",
  8435. 'btn_download|name="method_free',
  8436. 'class="error-code|Could Not Be Found',
  8437. 'optional--',
  8438. 'optional2--',
  8439. "//a[contains(@href,'doraupload.com')]");
  8440. }
  8441. if (GM_getValue("Check_openload_dot_io_links", false))
  8442. {
  8443. addFileHost(
  8444. "openload\.io\/\\w+",
  8445. 'btn btn-primary|class="count">|secondsleftouter',
  8446. 'class="jumbotron">|We are sorry',
  8447. 'optional--',
  8448. 'optional2--',
  8449. "//a[contains(@href,'openload.io')]");
  8450. }
  8451. if (GM_getValue("Check_uploads_dot_xxx_links", false))
  8452. {
  8453. addFileHost(
  8454. "uploads\.xxx\/\\w+",
  8455. 'downoadForFree',
  8456. 'File not found',
  8457. 'optional--',
  8458. 'optional2--',
  8459. "//a[contains(@href,'uploads.xxx')]");
  8460. }
  8461. if (GM_getValue("Check_zxcfiles_dot_com_links", false))
  8462. {
  8463. addFileHost(
  8464. "zxcfiles\.com\/\\w+",
  8465. 'class="downloadbtn',
  8466. 'File Not Found',
  8467. 'optional--',
  8468. 'optional2--',
  8469. "//a[contains(@href,'zxcfiles.com')]");
  8470. }
  8471. if (GM_getValue("Check_up07_dot_net_links", false))
  8472. {
  8473. addFileHost(
  8474. "up07\.net\/\\w+",
  8475. 'name="method_free',
  8476. 'File Not Found',
  8477. 'optional--',
  8478. 'optional2--',
  8479. "//a[contains(@href,'up07.net')]");
  8480. }
  8481. if (GM_getValue("Check_fileupload_dot_pw_links", false))
  8482. {
  8483. addFileHost(
  8484. "fileupload\.pw\/\\w+",
  8485. 'value="Free"',
  8486. 'File Not Found',
  8487. 'optional--',
  8488. 'optional2--',
  8489. "//a[contains(@href,'fileupload.pw')]");
  8490. }
  8491. if (GM_getValue("Check_4upld_dot_com_links", false))
  8492. {
  8493. addFileHost(
  8494. "4upld\.com\/\\w+",
  8495. 'alt="Download Now"|content="Download file">|btn-free-element',
  8496. '<title>Error|content="error|File not found',
  8497. 'optional--',
  8498. 'optional2--',
  8499. "//a[contains(@href,'4upld.com')]");
  8500. }
  8501. /* if (GM_getValue("Check_newfileland_dot_com_links", false))
  8502. {
  8503. addFileHost(
  8504. "newfileland\.com\/\\w+",
  8505. 'name="method_free',
  8506. 'File Not Found',
  8507. 'optional--',
  8508. 'optional2--',
  8509. "//a[contains(@href,'newfileland.com')]");
  8510. } */
  8511. if (GM_getValue("Check_swoopshare_dot_com_links", false))
  8512. {
  8513. addFileHost(
  8514. "(?:.swoopshare)\\.com\/\\w+",
  8515. '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',
  8516. '<input type="file" name="f"',
  8517. 'optional--',
  8518. 'optional2--',
  8519. "//a[contains(@href,'swoopshare.com')]"
  8520. );
  8521. }
  8522. if (GM_getValue("Check_cloudshares_dot_net_links", false))
  8523. {
  8524. addFileHost(
  8525. "cloudshares\.net\/\\w+",
  8526. '"method_free|"Low Speed Download|submit" name="go',
  8527. 'Not Found|"width:500px;text-align:left;">|No such file exist',
  8528. 'optional--',
  8529. 'optional2--',
  8530. "//a[contains(@href,'cloudshares.net')]"
  8531. );
  8532. }
  8533. if (GM_getValue("Check_allmyvideos_dot_net_links", false))
  8534. {
  8535. addFileHost(
  8536. "allmyvideos\.net\/\\w+",
  8537. 'Continue to Video',
  8538. 'File Not Found|class="err">Removed for',
  8539. 'optional--',
  8540. 'optional2--',
  8541. "//a[contains(@href,'allmyvideos.net')]"
  8542. );
  8543. }
  8544. if (GM_getValue("Check_vodlocker_dot_com_links", false))
  8545. {
  8546. addFileHost(
  8547. "vodlocker\.com\/\\w+",
  8548. 'Proceed to video',
  8549. 'Not Found',
  8550. 'optional--',
  8551. 'optional2--',
  8552. "//a[contains(@href,'vodlocker.com')]"
  8553. );
  8554. }
  8555. if (GM_getValue("Check_vidbull_dot_com_links", false))
  8556. {
  8557. addFileHost(
  8558. "vidbull\.com\/\\w+",
  8559. 'Verifying Video Request',
  8560. 'File Not Found',
  8561. 'optional--',
  8562. 'optional2--',
  8563. "//a[contains(@href,'vidbull.com')]");
  8564. }
  8565. if (GM_getValue("Check_novamov_dot_com_links", false))
  8566. {
  8567. addFileHost(
  8568. "novamov\.com\/\\w+",
  8569. 'For version detection',
  8570. 'file no longer exists',
  8571. 'optional--',
  8572. 'optional2--',
  8573. "//a[contains(@href,'novamov.com')]"
  8574. );
  8575. }
  8576. if (GM_getValue("Check_filehoot_dot_com_links", false))
  8577. {
  8578. addFileHost(
  8579. "filehoot\.com\/\\w+",
  8580. 'Continue to watch',
  8581. 'File Not Found',
  8582. 'optional--',
  8583. 'optional2--',
  8584. "//a[contains(@href,'filehoot.com')]"
  8585. );
  8586. }
  8587. if (GM_getValue("Check_stagevu_dot_com_links", false))
  8588. {
  8589. addFileHost(
  8590. "stagevu\.com\/\\w+",
  8591. 'Video Info',
  8592. 'No video with the provided',
  8593. 'optional--',
  8594. 'optional2--',
  8595. "//a[contains(@href,'stagevu.com')]"
  8596. );
  8597. }
  8598. if (GM_getValue("Check_cloudtime_dot_to_links", false))
  8599. {
  8600. addFileHost(
  8601. "cloudtime\.to\/\\w+",
  8602. 'Download the video',
  8603. 'no longer exists',
  8604. 'optional--',
  8605. 'optional2--',
  8606. "//a[contains(@href,'cloudtime.to')]"
  8607. );
  8608. }
  8609. if (GM_getValue("Check_streamin_dot_to_links", false))
  8610. {
  8611. addFileHost(
  8612. "streamin\.to\/\\w+",
  8613. 'id="btn_download',
  8614. 'Not Found|Copyright Infringement|File Deleted',
  8615. 'optional--',
  8616. 'optional2--',
  8617. "//a[contains(@href,'streamin.to')]"
  8618. );
  8619. }
  8620. if (GM_getValue("Check_videoweed_dot_es_links", false))
  8621. {
  8622. addFileHost(
  8623. "videoweed\.es\/\\w+",
  8624. 'version detection',
  8625. 'no longer exists',
  8626. 'optional--',
  8627. 'optional2--',
  8628. "//a[contains(@href,'videoweed.es')]"
  8629. );
  8630. }
  8631. if (GM_getValue("Check_nowvideo_dot_sx_links", false))
  8632. {
  8633. addFileHost(
  8634. "nowvideo\.sx\/\\w+",
  8635. 'Download this video|value="submit">Continue',
  8636. 'no longer exists',
  8637. 'optional--',
  8638. 'optional2--',
  8639. "//a[contains(@href,'nowvideo.sx')]"
  8640. );
  8641. }
  8642. if (GM_getValue("Check_thevideo_dot_me_links", false))
  8643. {
  8644. addFileHost(
  8645. "thevideo\.me\/\\w+",
  8646. 'Upgrade your account|Proceed to video|class="btn btn-lg btn-dark">',
  8647. 'File Not Found',
  8648. 'optional--',
  8649. 'optional2--',
  8650. "//a[contains(@href,'thevideo.me')]"
  8651. );
  8652. }
  8653. if (GM_getValue("Check_gorillavid_dot_in_links", false))
  8654. {
  8655. addFileHost(
  8656. "gorillavid\.in\/\\w+",
  8657. 'Wait 5 seconds',
  8658. 'File Not Found',
  8659. 'optional--',
  8660. 'optional2--',
  8661. "//a[contains(@href,'gorillavid.in')]"
  8662. );
  8663. }
  8664. if (GM_getValue("Check_thefile_dot_me_links", false))
  8665. {
  8666. addFileHost(
  8667. "thefile\.me\/\\w+",
  8668. 'Choose free or',
  8669. '',
  8670. 'optional--',
  8671. 'optional2--',
  8672. "//a[contains(@href,'thefile.me')]"
  8673. );
  8674. }
  8675. if (GM_getValue("Check_vidzi_dot_tv_links", false))
  8676. {
  8677. addFileHost(
  8678. "vidzi\.tv\/\\w+",
  8679. 'video-embed-modal row',
  8680. 'File Not Found|file was deleted',
  8681. 'optional--',
  8682. 'optional2--',
  8683. "//a[contains(@href,'vidzi.tv')]"
  8684. );
  8685. }
  8686. if (GM_getValue("Check_filenuke_dot_com_links", false))
  8687. {
  8688. addFileHost(
  8689. "filenuke\.com\/\\w+",
  8690. 'Download File',
  8691. 'Earn with us',
  8692. 'optional--',
  8693. 'optional2--',
  8694. "//a[contains(@href,'filenuke.com')]"
  8695. );
  8696. }
  8697. if (GM_getValue("Check_vidto_dot_me_links", false))
  8698. {
  8699. addFileHost(
  8700. "vidto\.me\/\\w+",
  8701. 'Proceed to video',
  8702. 'Not Found',
  8703. 'optional--',
  8704. 'optional2--',
  8705. "//a[contains(@href,'vidto.me')]"
  8706. );
  8707. }
  8708. if (GM_getValue("Check_vidspot_dot_net_links", false))
  8709. {
  8710. addFileHost(
  8711. "vidspot\.net\/\\w+",
  8712. 'Duration',
  8713. 'Removed for',
  8714. 'optional--',
  8715. 'optional2--',
  8716. "//a[contains(@href,'vidspot.net')]"
  8717. );
  8718. }
  8719. if (GM_getValue("Check_sharesix_dot_com_links", false))
  8720. {
  8721. addFileHost(
  8722. "(?:sharesix\\.com|sharesix\\.net)\/\\w+",
  8723. 'Download File',
  8724. 'File Not Found',
  8725. 'optional--',
  8726. 'optional2--',
  8727. "//a[contains(@href,'sharesix.com') or contains(@href,'sharesix.net/')]"
  8728. );
  8729. }
  8730. if (GM_getValue("Check_movpod_dot_in_links", false))
  8731. {
  8732. addFileHost(
  8733. "movpod\.in\/\\w+",
  8734. 'Continue',
  8735. 'File Not Found',
  8736. 'optional--',
  8737. 'optional2--',
  8738. "//a[contains(@href,'movpod.in')]"
  8739. );
  8740. }
  8741. /* if (GM_getValue("Check_down4files_dot_com_links", false))
  8742. {
  8743. addFileHost(
  8744. "down4files\.com\/\\w+",
  8745. 'down_table.png',
  8746. 'style="color:#d33|Error</td>|width:500px;text-align:left;">',
  8747. 'optional--',
  8748. 'optional2--',
  8749. "//a[contains(@href,'down4files.com')]"
  8750. );
  8751. } */
  8752. if (GM_getValue("Check_storefiles_dot_co_links", false))
  8753. {
  8754. addFileHost(
  8755. "storefiles\.co\/\\w+",
  8756. 'btn_download',
  8757. 'No such file|>Error<|mqmaintitle">',
  8758. 'optional--',
  8759. 'optional2--',
  8760. "//a[contains(@href,'storefiles.co')]"
  8761. );
  8762. }
  8763. if (GM_getValue("Check_filehost_dot_pw_links", false))
  8764. {
  8765. addFileHost(
  8766. "filehost\.pw\/\\w+",
  8767. 'name="method_free',
  8768. '>Error<|style="color:#d33;">|No such file|FILE NOT FOUND',
  8769. 'optional--',
  8770. 'optional2--',
  8771. "//a[contains(@href,'filehost.pw')]"
  8772. );
  8773. }
  8774. /* if (GM_getValue("Check_inafile_dot_com_links", false))
  8775. {
  8776. addFileHost(
  8777. "inafile\.com\/\\w+",
  8778. 'value="download1">|<h2>File: <font style="color:darkred">',
  8779. '<div style="width:500px;text-align:left;">|File Not Found',
  8780. 'optional--',
  8781. 'optional2--',
  8782. "//a[contains(@href,'inafile.com')]"
  8783. );
  8784. } */
  8785. if (GM_getValue("Check_uplea_dot_com_links", false))
  8786. {
  8787. addFileHost(
  8788. "uplea\.com\/\\w+",
  8789. 'Download your file:|de votre fichier:|class="download-container|Téléchargement de votre fichier:',
  8790. 'expired link|ou est invalide',
  8791. 'optional--',
  8792. 'optional2--',
  8793. "//a[contains(@href,'uplea.com/dl')]",
  8794. true);
  8795. }
  8796. if (GM_getValue("Check_toutbox_dot_fr_links", false))
  8797. {
  8798. addFileHost(
  8799. "toutbox\.fr\/\\w+",
  8800. '<div class="downloadFileFid">|class="downloadsCounter">/p>|class="filename"><a href=|img/webbuttoned.gif">',
  8801. 'meta name="description" content="Toutbox.fr|redirect-userpage = "true"',
  8802. 'Serviço temporariamente indisponível',
  8803. 'optional2--',
  8804. "//a[contains(@href,'toutbox.fr') or contains(@href,'go4up.com/')]"
  8805. );
  8806. }
  8807. if (GM_getValue("Check_openload_dot_co_links", false))
  8808. {
  8809. addFileHost(
  8810. "openload\.co\/\\w+",
  8811. 'id="downloadTimer">|button dlbutton',
  8812. 'jumbotron{color|got deleted|center !important',
  8813. 'optional--',
  8814. 'optional2--',
  8815. "//a[contains(@href,'openload.co')]"
  8816. );
  8817. }
  8818. if (GM_getValue("Check_lolabits_dot_es_links", false))
  8819. {
  8820. addFileHost(
  8821. "lolabits\.es\/\\w+",
  8822. 'Descargar:',
  8823. '<title>Archivos de usuario',
  8824. 'Service Unavailable',
  8825. 'optional2--',
  8826. "//a[contains(@href,'lolabits.es')]"
  8827. );
  8828. }
  8829. if (GM_getValue("Check_alfafile_dot_net_links", false))
  8830. {
  8831. addFileHost(
  8832. "alfafile\.net\/\\w+",
  8833. 'id="slow_download_btn',
  8834. 'class="error-box">',
  8835. 'optional--',
  8836. 'optional2--',
  8837. "//a[contains(@href,'alfafile.net')]"
  8838. );
  8839. }
  8840. if (GM_getValue("Check_multiup_dot_org_links", false))
  8841. {
  8842. addFileHost(
  8843. "multiup\.org\/\\w+",
  8844. '<title>Download|<title>Télécharger|class="link-download btn"|<h5>DOWNLOAD</h5>|<h5>TÉLÉCHARGER</h5>',
  8845. 'File not found|alert-error">|icon-white icon-warning-sign">|<title>Fichier introuvable',
  8846. 'optional--',
  8847. 'optional2--',
  8848. "//a[contains(@href,'multiup.org')]"
  8849. );
  8850. }
  8851. if (GM_getValue("Check_file_dot_al_links", false))
  8852. {
  8853. addFileHost(
  8854. "file\.al\/\\w+",
  8855. 'method_free',
  8856. 'style="width:500px;text-align:left;">',
  8857. 'optional--',
  8858. 'optional2--',
  8859. "//a[contains(@href,'file.al')]"
  8860. );
  8861. }
  8862. if (GM_getValue("Check_devilshare_dot_net_links", false))
  8863. {
  8864. addFileHost(
  8865. "devilshare\.net\/\\w+",
  8866. '<div class="large-12" id="download">',
  8867. '(Link: 0 Invalid)|File Not Found',
  8868. 'optional--',
  8869. 'optional2--',
  8870. "//a[contains(@href,'devilshare.net')]"
  8871. );
  8872. }
  8873. if (GM_getValue("Check_dailyuploads_dot_net_links", false))
  8874. {
  8875. addFileHost(
  8876. "dailyuploads\.net\/\\w+",
  8877. 'id="downloadBtnClickOrignal',
  8878. '<div style="width:500px;text-align:left;">',
  8879. 'optional--',
  8880. 'optional2--',
  8881. "//a[contains(@href,'dailyuploads.net')]"
  8882. );
  8883. }
  8884.  
  8885. }
  8886. //start here
  8887.  
  8888. //hosts with direct download, so they must be requested for headers only
  8889. function initFileHostsHeadersOnly()
  8890. {
  8891. function addFileHostHeadersOnly(linkRegex, isAliveRegex, isDeadRegex, xpathEx, ispremRegex)
  8892. {
  8893. var host = new Array(5);
  8894. host[0] = linkRegex;
  8895. host[1] = isAliveRegex;
  8896. host[2] = isDeadRegex;
  8897. host[3] = xpathEx;
  8898. host[4] = ispremRegex;
  8899. http_file_hosts_headers_only.push(host);
  8900. }
  8901. if (GM_getValue("Check_uloziste_dot_com_links", false))
  8902. {
  8903. addFileHostHeadersOnly(
  8904. "(?:|files\\.)uloziste\\.com\/\\w+\/\\w+",
  8905. 'Connection: Keep-Alive',
  8906. 'Content-Length: 3857',
  8907. "//a[contains(@href,'uloziste.com')]"
  8908. )
  8909. }
  8910. if (GM_getValue("Check_adrive_dot_com_links", false))
  8911. {
  8912. addFileHostHeadersOnly(
  8913. "adrive\\.com\/public\/\\w+",
  8914. 'Connection: keep-alive',
  8915. 'orig_ref=deleted',
  8916. "//a[contains(@href,'adrive.com')]"
  8917. )
  8918. }
  8919. if (GM_getValue("Check_myupload_dot_dk_links", false))
  8920. {
  8921. addFileHostHeadersOnly(
  8922. "myupload\\.dk\/showfile\/\\w+",
  8923. 'Expires:',
  8924. 'squeeze1\\s+Vary',
  8925. "//a[contains(@href,'myupload.dk/showfile')]"
  8926. )
  8927. }
  8928. }
  8929. //CustomRules
  8930. //functions add...Host copied here
  8931. function addObsoleteHost(linkRegex, xpathEx)
  8932. {
  8933. var host = new Array(2);
  8934. host[0] = linkRegex;
  8935. host[1] = xpathEx;
  8936. http_file_hosts_obsolete.push(host);
  8937. }
  8938. function addFileHost(linkRegex, isAliveRegex, isDeadRegex, isUnavaRegex, xpathEx, tryLoop, ispremRegex)
  8939. {
  8940. var host = new Array(7);
  8941. host[0] = linkRegex;
  8942. host[1] = isAliveRegex;
  8943. host[2] = isDeadRegex;
  8944. host[3] = isUnavaRegex;
  8945. host[4] = xpathEx;
  8946. tryLoop ? host[5] = true : host[5] = false;
  8947. host[6] = ispremRegex;
  8948. http_file_hosts.push(host);
  8949. }
  8950. function addFileHostHeadersOnly(linkRegex, isAliveRegex, isDeadRegex, xpathEx, ispremRegex)
  8951. {
  8952. var host = new Array(5);
  8953. host[0] = linkRegex;
  8954. host[1] = isAliveRegex;
  8955. host[2] = isDeadRegex;
  8956. host[3] = xpathEx;
  8957. host[4] = ispremRegex;
  8958. http_file_hosts_headers_only.push(host);
  8959. }
  8960. //takes a fully built rules array and adds the rules to WARLC
  8961. function applyCustomRules(customRules)
  8962. {
  8963. if (!customRules) return;
  8964. var rules, r, i;
  8965. rules = customRules.rules;
  8966. for (i = 0 ; i < rules.length ; i++)
  8967. {
  8968. r = rules[i];
  8969. if (r.enabled)
  8970. {
  8971. switch (r.type)
  8972. {
  8973. case 'single':
  8974. addFileHost(r.urlregex, r.aliveregex, r.deadregex, r.unavaregex, r.premregex||'', r.xpath);
  8975. break;
  8976. case 'headers':
  8977. addFileHostHeadersOnly(r.urlregex, r.aliveregex, r.deadregex, r.xpath, r.premregex);
  8978. break;
  8979. case 'obsolete':
  8980. addObsoleteHost(r.urlregex, r.xpath)
  8981. break;
  8982. }
  8983. }
  8984. }
  8985. }
  8986.  
  8987.  
  8988. function initFileHostsCustom()
  8989. {
  8990. if (Custom_rules && Custom_rules_text)
  8991. {
  8992. var msg = '';
  8993. if (newVersion)
  8994. msg = 'New version of W.A.R. Links Checker detected.\n\n';
  8995. else if ((now - last_custom_rules_nag) >= 60*24*60*60*1000)
  8996. msg = '60 or more days have passed since this notification.\n\n';
  8997. if (msg && /^\s*@customrule(?:_obsolete)?\s/mi.test(Custom_rules_text))
  8998. {
  8999. GM_setValue('last_custom_rules_nag', ''+new Date().getTime()); //reset nag
  9000. msg +=
  9001. 'Either new version of W.A.R. Links Checker detected or 60 days passed since this notify.\n'+
  9002. 'Please check that your custom rules haven\'t been built into WARLC.\n'+
  9003. 'If not, please share them with us so they can be included in the next version! Built-in rules are always preferred.\n\n'+
  9004. 'We apologize for this annoying notification, but there is a reason to this.\n'+
  9005. 'Ideally, WARLC would check which of your custom rules have been included and disable them. '+
  9006. 'Unfortunately, there is no easy way to do that, but we don\'t want everybody to just use their custom rules '+
  9007. 'forever without ever checking if the built-in ones have been added/fixed. This is currently the only way '+
  9008. 'to remind you that you should try built-in rules, report missing/non-working ones and share your custom rules.';
  9009. setTimeout(function(){alert(msg)},0);
  9010. }
  9011. var customRules = parseCustomRules(Custom_rules_text);
  9012. if (customRules.warning || customRules.error)
  9013. alert('There were ' + customRules.error + ' errors, ' + customRules.warning + ' warnings, ' +
  9014. customRules.note + ' notes found during Custom Rules processing.\n' + customRules.rules.length + ' valid rules found.\n\n' +
  9015. JSON.stringify(customRules.info, null, ' '));
  9016. applyCustomRules(customRules);
  9017. }
  9018. }
  9019. //end of CustomRules processing
  9020.  
  9021.  
  9022.  
  9023. } //end of function start
  9024.  
  9025.  
  9026.  
  9027. function initClipBoardTools()
  9028. {
  9029. unsafeWindow.copyToClipboard = function(text)
  9030. {
  9031. try
  9032. {
  9033. this.netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
  9034.  
  9035. var str = Components.classes["@mozilla.org/supports-string;1"].
  9036. createInstance(Components.interfaces.nsISupportsString);
  9037. if (!str) return false;
  9038.  
  9039. str.data = text;
  9040.  
  9041. var trans = Components.classes["@mozilla.org/widget/transferable;1"].
  9042. createInstance(Components.interfaces.nsITransferable);
  9043. if (!trans) return false;
  9044.  
  9045. trans.addDataFlavor("text/unicode");
  9046. trans.setTransferData("text/unicode", str, text.length * 2);
  9047.  
  9048. var clipid = Components.interfaces.nsIClipboard;
  9049. var clip = Components.classes["@mozilla.org/widget/clipboard;1"].getService(clipid);
  9050. if (!clip) return false;
  9051.  
  9052. clip.setData(trans, null, clipid.kGlobalClipboard);
  9053. } catch (e) {
  9054. GM_log("Error copyToClipboard : " + e);
  9055. alert(e + "\n\nsigned.applets.codebase_principal_support must be set true in about:config")
  9056. }
  9057. }
  9058. }
  9059.  
  9060.  
  9061.  
  9062. //CustomRules
  9063.  
  9064. function escapeRegex(str)
  9065. {
  9066. return str.replace(/[\-\[\]{}()*+?.,\\\^$|#]/g, "\\$&");
  9067. }
  9068.  
  9069.  
  9070. //called internally from parseCustomRules.
  9071. //expected: rule object with array fields baseurl, alivematch etc, everything must already be checked for input errors
  9072. //returns the rule object with string fields urlregex, xpath, aliveregex etc built from the arrays
  9073. function makeCustomRule(rule)
  9074. {
  9075. function makeMatchRegex(arrmatch)
  9076. {
  9077. return escapeRegex(arrmatch.join('\n'))
  9078. .replace(/ +/g, '\\s+') //two or more spaces to any whitespace
  9079. .replace(/\n/g,'|'); //join together
  9080. }
  9081. if (rule.alivematch) rule.aliveregex = makeMatchRegex(rule.alivematch);
  9082. if (rule.deadmatch) rule.deadregex = makeMatchRegex(rule.deadmatch);
  9083. if (rule.unavamatch) rule.unavaregex = makeMatchRegex(rule.unavamatch);
  9084. if (rule.premmatch) rule.premregex = makeMatchRegex(rule.premmatch);
  9085. if (rule.baseurl)
  9086. {
  9087. var i, m, urlregex = [], xpath = [], len = rule.baseurl.length;
  9088. for (i = 0 ; i < len ; i++)
  9089. {
  9090. m = rule.baseurl[i].match(/^([a-z0-9\.-]+)(?: +([a-z \.]+) +)?(\/.*)$/);
  9091. if (m[2]) //baseurl in the form: example. com co.uk net /xxx
  9092. {
  9093. 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'])
  9094. urlregex.push( (m[1] + '(?:'+ m[2].replace(/\s+/g,'|') + ')').replace(/\./g,'\\.') + escapeRegex(m[3]) + '.'); //urlregex.push('example\\.(?:com|co\\.uk|net)/xxx.')
  9095. }
  9096. else //baseurl in the form: example.com/xxx
  9097. {
  9098. xpath.push(m[0]);
  9099. urlregex.push(escapeRegex(m[0]) + '.');
  9100. }
  9101. }
  9102. rule.xpath = "//a[contains(@href,'" + xpath.join("') or contains(@href,'") + "')]";
  9103. rule.urlregex = '(?:[a-z0-9\\.-]+\\.)?(?:' + urlregex.join('|') + ')';
  9104. }
  9105. return rule;
  9106. } //function makeCustomRule
  9107.  
  9108.  
  9109. /*
  9110. Takes a string containing custom link checking rules.
  9111. Returns an object with fields:
  9112. info - contains notes, warnings and errors found during parsing
  9113. rules - the array of custom rules
  9114. note, warning, error - number of each of them found during parsing
  9115. Format of the input string:
  9116. One command per line. Command format: @keyword parameter
  9117. Keywords:
  9118. @customrule, @customrule_obsolete, @customrule_headers - begin a new custom rule. Parameter: name of the rule
  9119. @#customrule, @#customrule_obsolete, @#customrule_headers - begin and parse this custom rule, but don't use it. Parameter: name of the rule
  9120. These keywords can be multiple (any of them will work):
  9121. @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...)
  9122. @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+
  9123. @alivelink, @deadlink - example links
  9124. @baseurl is always required, @alivematch and @deadmatch are required except for obsolete. @unavamatch is ignored for obsolete. @*link is optional.
  9125. Lines starting with // and empty lines are ignored.
  9126. Invalid parameters generate errors and those lines are skipped.
  9127. Other lines generate warnings, but are otherwise ignored (also those before the first @customrule line or inside a rule with invalid name).
  9128. Example:
  9129. @customrule filehost
  9130. @baseurl filehost.com/download/
  9131. @baseurl filehost2. com net /d?=
  9132. @alivematch id="download">
  9133. @deadmatch File not found
  9134. @deadmatch File deleted
  9135. */
  9136. function parseCustomRules(rulesStr)
  9137. {
  9138. var linenum, customRules = {'info': [], 'rules': [], 'note': 0, 'warning': 0, 'error': 0};
  9139. function addInfo(type, msg, ln){
  9140. customRules.info.push({'linenum':(ln===undefined ? linenum+1 : ln+1), 'type':type, 'msg':msg});
  9141. customRules[type]++;
  9142. }
  9143. var lines = rulesStr.match(/^(.*)$/gm); //split into array of lines
  9144. if (!lines) return null;
  9145. lines.push('@#customrule _'); //to save the last rule
  9146. var m, linecount = lines.length;
  9147. var keyword, param, constr, rule, err;
  9148. var TLD = '[a-z]{2,7}(?:\\.[a-z]{2,7})?';
  9149. var TLDorTLDlist = '(?:'+TLD+'| '+TLD+'(?: '+TLD+'){0,9} )'; //TLD or space-separated list of TLDs
  9150. var baseurlRE = new RegExp('^([a-z0-9-]{1,30}(?:\\.[a-z0-9-]{1,30}){0,2}\\.)'+TLDorTLDlist+'(/[^\'"\s\$]{0,50})$', 'i');
  9151. var constraints = {
  9152. 'baseurl': {
  9153. 'single': {'min': 1, 'max': 10, 'paramRE': baseurlRE},
  9154. 'headers': {'min': 1, 'max': 10, 'paramRE': baseurlRE},
  9155. 'obsolete': {'min': 1, 'max': 10, 'paramRE': baseurlRE}},
  9156. 'alivematch': {
  9157. 'single': {'min': 1, 'max': 10, 'paramRE': null},
  9158. 'headers': {'min': 1, 'max': 10, 'paramRE': null}},
  9159. 'deadmatch': {
  9160. 'single': {'min': 1, 'max': 10, 'paramRE': null},
  9161. 'headers': {'min': 1, 'max': 10, 'paramRE': null}},
  9162. 'unavamatch': {
  9163. 'single': {'min': 0, 'max': 10, 'paramRE': null}},
  9164. 'alivelink': {
  9165. 'single': {'min': 0, 'max': 10, 'paramRE': null},
  9166. 'headers': {'min': 0, 'max': 10, 'paramRE': null}},
  9167. 'deadlink': {
  9168. 'single': {'min': 0, 'max': 10, 'paramRE': null},
  9169. 'headers': {'min': 0, 'max': 10, 'paramRE': null},
  9170. 'obsolete': {'min': 0, 'max': 10, 'paramRE': null}}
  9171. };
  9172. for (linenum = 0 ; linenum < linecount ; linenum++)
  9173. {
  9174. //capturing groups: 1 23 4 5 6
  9175. m = lines[linenum].match(/^\s*(?:(\/\/.*)|@((#?)(customrule)(?:_(headers|obsolete))?|baseurl|alivematch|deadmatch|unavamatch|alivelink|deadlink)\s+(.+))?$/i);
  9176. if (m)
  9177. {
  9178. if (m[1] || !m[2])
  9179. continue; // ignore empty lines and lines starting with //
  9180. keyword = (m[4] || m[2]).toLowerCase();
  9181. param = m[6];
  9182. if (keyword == 'customrule')
  9183. {
  9184. //save the current rule if all required fields are provided
  9185. if (rule)
  9186. {
  9187. err = false;
  9188. $.each(constraints, function(kw, constraint){
  9189. var l, constr = constraint[rule.type];
  9190. if (constr)
  9191. {
  9192. l = rule[kw] ? rule[kw].length : 0;
  9193. if (l < constr.min || l > constr.max)
  9194. {
  9195. 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);
  9196. err = true;
  9197. }
  9198. }
  9199. });
  9200. if (!err)
  9201. customRules.rules.push(makeCustomRule(rule));
  9202. }
  9203. //start a new rule
  9204. if (/^[\w\.-]{1,30}$/.test(param)) //valid name?
  9205. {
  9206. rule = {
  9207. 'enabled': !m[3],
  9208. 'type': m[5] ? m[5].toLowerCase() : 'single',
  9209. 'name': param
  9210. };
  9211. }
  9212. else
  9213. {
  9214. addInfo('error', 'Invalid rule name. Cannot start a new rule definition.');
  9215. rule = null;
  9216. }
  9217. }
  9218. else //good line format, but keyword other than customrule
  9219. {
  9220. if (!rule)
  9221. {
  9222. addInfo('warning', 'Command outside @CUSTOMRULE definiton. Line skipped.');
  9223. continue;
  9224. }
  9225. if (constraints[keyword])
  9226. {
  9227. constr = constraints[keyword][rule.type];
  9228. if (constr)
  9229. {
  9230. if (constr.paramRE && !constr.paramRE.test(param))
  9231. {
  9232. addInfo('warning', 'Invalid @' + keyword.toUpperCase() + ' parameter. Line Skipped.');
  9233. continue;
  9234. }
  9235. }
  9236. else
  9237. {
  9238. addInfo('note', '@' + keyword.toUpperCase() + ' not applicable for type ' + rule.type.toUpperCase() + '. Line skipped.');
  9239. continue;
  9240. }
  9241. }
  9242. //line OK, save
  9243. rule[keyword] ? rule[keyword].push(param) : rule[keyword] = [param];
  9244. }
  9245. } //if (m)
  9246. else
  9247. addInfo('warning', 'Unknown line format. Line skipped.');
  9248. } //for loop
  9249. return customRules;
  9250. } //function parseCustomRules