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

detects live, dead and premium links.

当前为 2015-11-02 提交的版本,查看 最新版本

  1. //rockfile.eu and 1fichier should work on all languages now
  2.  
  3. // ==UserScript==
  4. // @name W.A.R. Links Checker Customized Premium Link Version
  5. // @description detects live, dead and premium links.
  6. // @details this script automatically checks links from hundreds of filehosts. For Firefox, Chrome, Opera, Safari.
  7. // @namespace premium version
  8. // @version 1.2.0.0
  9. // @icon http://sharenxs.com/photos/2014/02/14/52fd759db90ac/cooltext1428903746.png
  10. // @license GPL version 3 or any later version (http://www.gnu.org/copyleft/gpl.html)
  11. // @author mental
  12. // @include http://*
  13. // @include https://*
  14. // @include file:///*
  15. // @grant GM_setValue
  16. // @grant GM_getValue
  17. // @grant GM_xmlhttpRequest
  18. // @grant GM_log
  19. // @grant GM_addStyle
  20. // @grant GM_registerMenuCommand
  21. // @grant GM_getResourceText
  22. // @grant GM_info
  23. // @require https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js
  24. // @require https://ajax.googleapis.com/ajax/libs/jqueryui/1.9.1/jquery-ui.min.js
  25. // @resource jQueryUICSS https://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/smoothness/jquery-ui.css
  26. // @homepage http://www.warlc.5gbfree.com
  27. // @namespace http://www.warlc.5gbfree.com
  28. // @noframes
  29. // ==/UserScript==
  30.  
  31. //separate alternative domains with "|" char (first name is considered being main)
  32. var allHostNames = [
  33. "1fichier.com|dl4free.com",
  34. "alfafile.net",
  35. "openload.co",
  36. "uplea.com",
  37. "filenuke.com",
  38. "inafile.com",
  39. "lolabits.es",
  40. "vidto.me",
  41. "storefiles.co",
  42. "filehost.pw",
  43. "vidspot.net",
  44. "turbobit.ru",
  45. "sharesix.com|sharesix.net",
  46. "movpod.in",
  47. "thefile.me",
  48. "vidzi.tv",
  49. "videoweed.es",
  50. "vodlocker.com",
  51. "nowvideo.sx",
  52. "cloudtime.to",
  53. "thevideo.me",
  54. "vidbull.com",
  55. "allmyvideos.net",
  56. "novamov.com",
  57. "filehoot.com",
  58. "stagevu.com",
  59. "gorillavid.in",
  60. "streamin.to",
  61. "4upld.com",
  62. "cloudshares.net",
  63. "swoopshare.com",
  64. "2shared.com",
  65. "fileupload.pw",
  66. "zxcfiles.com",
  67. "up07.net",
  68. "4shared.com",
  69. "adrive.com",
  70. "aisfile.com",
  71. "hexupload.com",
  72. "bezvadata.cz",
  73. "xkeepfile.com|Gamesena.com",
  74. "usersfiles.com",
  75. "pan.baidu.com",
  76. "radicalshare.com",
  77. "datei.to",
  78. "daten-hoster.de|filehosting.org|xtraupload.de",
  79. "demo.ovh.eu",
  80. "depositfiles.com|depositfiles.lt|depositfiles.org|dfiles.ru|dfiles.eu",
  81. "divshare.com",
  82. "easy-share.com|crocko.com",
  83. "easybytez.com",
  84. "edisk.cz",
  85. "euroshare.eu",
  86. "file-upload.net",
  87. "yadi.sk",
  88. "wizupload.com",
  89. "fastshare.cz",
  90. "filefactory.com",
  91. "share.vnn.vn",
  92. "yunpan.cn",
  93. "gulfup.com",
  94. "tropicshare.com",
  95. "cloudzilla.to",
  96. "inclouddrive.com",
  97. "fileflyer.com",
  98. "filerio.com|filekeen.com",
  99. "up.4share.vn",
  100. "upfile.vn",
  101. "datafilehost.com",
  102. "fileband.com",
  103. "worldbytez.com",
  104. "files.mail.ru",
  105. "filepost.com|fp.io",
  106. "filesflash.com",
  107. "box.com",
  108. "uptobox.com",
  109. "box.net",
  110. "goldbytez.com",
  111. "sdilej.cz",
  112. "ex-load.com",
  113. "filesmonster.com",
  114. "filestore.to",
  115. "hulkload.com",
  116. "filedropper.com",
  117. "free-uploading.com",
  118. "gamefront.com|filefront.com",
  119. "gettyfile.ru",
  120. "gigapeta.com",
  121. "gigasize.com",
  122. "hellshare.com",
  123. "hellspy.com",
  124. "hitfile.net",
  125. "hostuje.net",
  126. "freefilehosting.net",
  127. "free.fr",
  128. "hulkshare.com",
  129. "hyperfileshare.com",
  130. "filecloud.io|ifile.it",
  131. "ifolder.ru",
  132. "jumbofiles.com",
  133. "uploadrocket.net",
  134. "lafiles.com",
  135. "leteckaposta.cz|sharegadget.com",
  136. "letitbit.net",
  137. "load.to",
  138. "mediafire.com",
  139. "megafileupload.com",
  140. "megashares.com",
  141. "movshare.net",
  142. "muchshare.net",
  143. "myupload.dk",
  144. "narod.ru|narod.yandex.ru",
  145. "fboom.me|fileboom.me",
  146. "openfile.ru",
  147. "partage-facile.com",
  148. "plunder.com",
  149. "sharerapid.cz",
  150. "exclusiveloader.com",
  151. "acefile.net",
  152. "queenshare.com",
  153. "rapidgator.net",
  154. "k2s.cc|keep2s.cc|keep2share.cc|keep2share.com",
  155. "oboom.com",
  156. "filepi.com",
  157. "neodrive.co",
  158. "rarefile.net",
  159. "rayfile.com",
  160. "rghost.net",
  161. "sendmyway.com",
  162. "clicknupload.com",
  163. "sharemods.com",
  164. "hostr.co",
  165. "sendspace.com",
  166. "sharecash.org",
  167. "share-links.biz",
  168. "share-online.biz|egoshare.com",
  169. "megarapid.cz",
  170. "shareflare.net",
  171. "solidfiles.com",
  172. "led.wf",
  173. "lan.wf",
  174. "adlink.wf",
  175. "click.tf",
  176. "kyc.pm",
  177. "ssh.tf",
  178. "ssh.yt",
  179. "yep.pm",
  180. "stahovanizasms.cz",
  181. "turbobit.net",
  182. "filecloud.cc",
  183. "tikfile.com",
  184. "cloudsix.me",
  185. "turboupload.com",
  186. "uloz.to|ulozto.cz|bagruj.cz|zachowajto.pl",
  187. "ulozisko.sk",
  188. "uloziste.com",
  189. "unibytes.com",
  190. "upload-il.net|przeslij.net",
  191. "uploaded.to|ul.to",
  192. "uploading.com",
  193. "chayfile.com",
  194. "rockfile.eu",
  195. "24uploading.com",
  196. "uploadspace.pl",
  197. "upnito.sk",
  198. "usaupload.net",
  199. "veehd.com",
  200. "videobb.com",
  201. "vip-file.com",
  202. "webshare.cz",
  203. "xdisk.cz",
  204. "yunfile.com|filemarkets.com",
  205. "ziddu.com",
  206. "zippyshare.com",
  207. "rodfile.com",
  208. "wikiupload.com",
  209. "uploadstube.de",
  210. "faststore.org",
  211. "flyfiles.net",
  212. "nowdownload.ch",
  213. "prefiles.com",
  214. "axifile.com",
  215. "rapidsonic.com|fileparadox.com",
  216. "hackerbox.org",
  217. "amonshare.com",
  218. "data.hu",
  219. "brupload.net",
  220. "userscloud.com",
  221. "netkups.com",
  222. "xfileload.com",
  223. "kumpulbagi.com",
  224. "uppit.com|up.ht",
  225. "downloadani.me",
  226. "filesabc.com",
  227. "180upload.com",
  228. "verzend.be",
  229. "4up.me",
  230. "extmatrix.com",
  231. "sendfiles.nl",
  232. "yourfilestore.com",
  233. "filebig.net",
  234. "nekaka.com",
  235. "file4safe.com",
  236. "tusfiles.net",
  237. "filemac.com",
  238. "idup.in",
  239. "fileswap.com",
  240. "ozofiles.com",
  241. "loudupload.net",
  242. "nosupload.com",
  243. "gboxes.com",
  244. "myvdrive.com|fileserving.com",
  245. "filesin.com",
  246. "novafile.com",
  247. "longfiles.com",
  248. "uploadhero.com",
  249. "uploadbaz.com",
  250. "bitupload.com",
  251. "indowebster.com",
  252. "superload.cz",
  253. "mafiastorage.com",
  254. "4upfiles.com",
  255. "filesmelt.com",
  256. "hellupload.com",
  257. "uploadingit.com",
  258. "stiahni.si",
  259. "sendspace.pl",
  260. "fastshare.org",
  261. "filejoker.net",
  262. "filestore.com.ua",
  263. "secureupload.eu",
  264. "rapidfileshare.net",
  265. "stiahnito.sk",
  266. "rusfolder.com",
  267. "fileover.net",
  268. "catshare.net",
  269. "anonfiles.com",
  270. "mixturecloud.com",
  271. "fileparadox.in",
  272. "filedais.com",
  273. // "imdb.com",
  274. "nitroflare.com",
  275. "akafile.com",
  276. "creafile.net",
  277. "hugefiles.net",
  278. "vidxden.com",
  279. "up.top4top.net",
  280. "upload.ee",
  281. "shareplace.org",
  282. "uploadc.com",
  283. "remixshare.com",
  284. "exoshare.com",
  285. "borncash.org",
  286. "junocloud.me",
  287. "expressleech.com",
  288. "2downloadz.com",
  289. "mightyupload.com",
  290. "anysend.com",
  291. "datafile.com",
  292. "upstore.net",
  293. "upsto.re",
  294. "speedy.sh",
  295. "sanshare.com",
  296. "uploadhero.co",
  297. "ge.tt",
  298. "filesflash.net",
  299. "salefiles.com",
  300. "megairon.net",
  301. "datoid.cz",
  302. "cloudstor.es",
  303. "streamfile.com",
  304. "eyesfile.ca",
  305. "filemoney.com",
  306. "uploadboy.com",
  307. "speedshare.eu",
  308. "google.com",
  309. "unlimitzone.com",
  310. "rioupload.com",
  311. "rg.to",
  312. "jumbofiles.org",
  313. "fshare.vn",
  314. "spaceforfiles.com",
  315. "up.media1fire.com",
  316. "depfile.com",
  317. "go4up.com",
  318. "dropbox.com",
  319. "redbunker.net",
  320. "divxpress.com",
  321. "mega.nz|mega.co.nz",
  322. "anafile.com",
  323. "uploadable.ch",
  324. "arabloads.net",
  325. "sharerepo.com",
  326. "sfshare.se",
  327. "files.fm",
  328. "koofile.com",
  329. "vidplay.net",
  330. "storagon.com",
  331. "doraupload.com",
  332. "openload.io",
  333. "geupload.com|lenfile.com",
  334. "uploads.xxx",
  335. "toutbox.fr",
  336. ];
  337.  
  338. try
  339. {
  340. //iframes excluded
  341. if (window.top != window.self)
  342. {
  343. return;
  344. }
  345. //allHostNames sites excluded
  346. if (window.location.href.match("https?:\/\/(www\.)?[\w\.-]*(?:" +
  347. allHostNames.join("|").replace(/\./g, "\\.").replace(/-/g, "\\-") +
  348. ")"))
  349. {
  350. return;
  351. }
  352. }
  353. catch (e)
  354. {
  355. return;
  356. }
  357.  
  358. //separate alternative domains with "|" char (first name is considered being main)
  359. var allContainerNames = [
  360. "adf.ly",
  361. "linkcrypt.ws",
  362. "linksafe.me",
  363. "linksave.in",
  364. "linkto.net",
  365. "madlink.sk",
  366. "multiload.cz",
  367. "mirrorcreator.com",
  368. "ncrypt.in",
  369. "redi.re",
  370. "relink.us",
  371. "safelinking.net",
  372. "theloo.katt.it",
  373. "bit.ly",
  374.  
  375. ];
  376.  
  377. //separate alternative domains with "|" char (first name is considered being main)
  378. var allObsoleteNames = [
  379. "uloz.cz",
  380. "newfileland.com",
  381. "quickshare.cz",
  382. "netload.in",
  383. "movreel.com",
  384. "migahost.com",
  385. "krotix.net",
  386. "jumbofile.net",
  387. "edoc.com",
  388. "down4files.com",
  389. "cramit.in|cramitin.net",
  390. "freakshare.com",
  391. "burnupload.com|burnupload.ihiphop.com",
  392. "freakshare.net",
  393. "kingfiles.net",
  394. "daj.to",
  395. "bl.st",
  396. "2drive.net",
  397. "ryushare.com",
  398. "crisshare.com",
  399. "tufiles.ru",
  400. "uncapped-downloads.com",
  401. "sockshare.com",
  402. "ddlstorage.com",
  403. "dataport.cz",
  404. "dizzcloud.com",
  405. "sharebeast.com",
  406. "stahovadlo.cz",
  407. "shared.com",
  408. "storage.to",
  409. "putlocker.com",
  410. "lumfile.com",
  411. "lumfile.se",
  412. "lumfile.eu",
  413. "firedrive.com",
  414. "fileshare.in.ua",
  415. "filecore.co.nz",
  416. "iskladka.cz",
  417. "file-rack.com",
  418. "fast-load.net",
  419. "subory.sk",
  420. "bigandfree.com",
  421. "fileop.com",
  422. "mujsoubor.cz",
  423. "sendfile.to",
  424. "superfastfile.com",
  425. "quickyshare.com",
  426. "duckload.com",
  427. "uploadstore.net",
  428. "meinupload.com",
  429. "dualshare.com",
  430. "2xupload.to|2xupload.de",
  431. "oxedion.com",
  432. "uploadline.com",
  433. "dll.bz",
  434. "movieshare.in",
  435. "milledrive.com",
  436. "quickupload.net",
  437. "safelink.in",
  438. "metadivx.com",
  439. "divxlink.com",
  440. "uploadrack.com",
  441. "teradepot.com",
  442. "dataup.to",
  443. "upit.to",
  444. "driveway.com",
  445. "eatlime.com",
  446. "a2zuploads.com",
  447. "friendlyfiles.net",
  448. "flyfile.us",
  449. "speedyshare.com",
  450. "uploadspace.eu",
  451. "keepfile.com",
  452. "piggyshare.com",
  453. "uplly.com",
  454. "filecrown.com",
  455. "6giga.com",
  456. "uploadjockey.com",
  457. "bluehost.to",
  458. "filegu.ru",
  459. "filebase.to",
  460. "up-file.com",
  461. "xvideos.com",
  462. "ufox.com",
  463. "filebling.com",
  464. "loaded.it",
  465. "uploadcell.com",
  466. "uploadshare.cz",
  467. "mangoshare.com",
  468. "filestab.com",
  469. "crazyupload.com",
  470. "gaiafile.com",
  471. "sharejunky.com",
  472. "fileho.com",
  473. "bigandfree.com",
  474. "bigfile.in",
  475. "bigshare.eu",
  476. "dahosting.org",
  477. "digisofts.net",
  478. "file4save.com",
  479. "filechip.com",
  480. "filescloud.com",
  481. "saveqube.com",
  482. "turboshare.de",
  483. "z-upload.com",
  484. "youshare.com",
  485. "jiffyupload.com",
  486. "gigeshare.com",
  487. "datenklo.net",
  488. "upload.dj",
  489. "loadfiles.in",
  490. "upit.to",
  491. "dsfileshare.com",
  492. "sharesimple.net",
  493. "4files.net",
  494. "wooupload.com",
  495. "odsiebie.com",
  496. "filenavi.com",
  497. "3oof.com",
  498. "meshwaar.com",
  499. "maxupload.com",
  500. "share.cx",
  501. "atserver.eu",
  502. "hotfiles.ws",
  503. "esnips.com",
  504. "tuxfile.com",
  505. "file2upload.net",
  506. "filebling.com",
  507. "turboshare.com",
  508. "rarhost.com",
  509. "isharehd.com",
  510. "i741.com",
  511. "dataup.de",
  512. "fofly.com",
  513. "shareonall.com",
  514. "sexuploader.com",
  515. "megaupload.com|megavideo.com|megaporn.com|megarotic.com",
  516. "uploadhyper.com",
  517. "filespawn.com",
  518. "caizzii.com",
  519. "volnyweb.cz",
  520. "usershare.net",
  521. "filescash.net",
  522. "metahyper.com",
  523. "combozip.com",
  524. "x7.to",
  525. "uploadbox.com",
  526. "enterupload.com|flyupload.com",
  527. "filepoint.de",
  528. "mystream.to",
  529. "x-fs.com",
  530. "shareator.com",
  531. "srapid.eu",
  532. "sosame.cz",
  533. "filesdump.com",
  534. "2-klicks.de",
  535. "uploking.com",
  536. "silofiles.com",
  537. "upfile.in",
  538. "filehook.com",
  539. "uploadking.com",
  540. "uploadhere.com",
  541. "kewlshare.com",
  542. "rapidable.com",
  543. "uploadwaste.com",
  544. "filemup.com",
  545. "filesonic.com|sharingmatrix.com",
  546. "fileserve.com",
  547. "wupload.com",
  548. "skipfile.com",
  549. "smartuploader.com",
  550. "dualshare.com",
  551. "storeandserve.com",
  552. "mountfile.com",
  553. "transitfiles.com",
  554. "uploadstation.com",
  555. "filejungle.com",
  556. "shareshared.com",
  557. "quickyshare.com",
  558. "save.am",
  559. "petandrive.com",
  560. "file2box.com",
  561. "flyshare.cz",
  562. "yabadaba.ru",
  563. "cloudcache.cc",
  564. "yourfilehost.com",
  565. "jakfile.com",
  566. "kickload.com",
  567. "pyramidfiles.com",
  568. "refile.net",
  569. "zshare.net",
  570. "ddlani.me|ddlanime.com",
  571. "ftp2share.com",
  572. "fooget.com",
  573. "rapidhide.com",
  574. "gotupload.com",
  575. "mooload.com",
  576. "zupload.com",
  577. "mytempdir.com",
  578. "onionshare.com",
  579. "stahnu.to",
  580. "oron.com",
  581. "badongo.com",
  582. "filereactor.com",
  583. "filegaze.com",
  584. "4bytez.com",
  585. "1hostclick.com",
  586. "anonstream.com",
  587. "batshare.com",
  588. "bitroad.net",
  589. "brontofile.com",
  590. "cloudnxt.net",
  591. "cloudnator.com|shragle.com",
  592. "filesfrog.net",
  593. "coolshare.cz",
  594. "dotavi.com",
  595. "ezyfile.net",
  596. "file-bit.net",
  597. "filecosy.com",
  598. "fileduct.com|fileduct.net",
  599. "filefat.com",
  600. "filelaser.com",
  601. "filemashine.com",
  602. "fileserver.cc",
  603. "filetechnology.com",
  604. "fireuploads.net",
  605. "gigfiles.net",
  606. "holderfile.com",
  607. "ihostia.com",
  608. "k2files.com",
  609. "mojofile.com",
  610. "ovfile.com",
  611. "qshare.com",
  612. "shafiles.me",
  613. "sharefilehost.com",
  614. "shareupload.com",
  615. "stahuj.to",
  616. "ugotfile.com",
  617. "uploadboost.com",
  618. "fileom.com",
  619. "vidhog.com",
  620. "xfileshare.eu",
  621. "bzlink.us",
  622. "bulletupload.com",
  623. "bloggerarticles.com",
  624. "mojedata.sk",
  625. "sharpfile.com",
  626. "upgrand.com",
  627. "nasdilej.cz",
  628. "mediatack.cz",
  629. "share-it.to",
  630. "primeupload.com",
  631. "filebeer.info",
  632. "baberepublic",
  633. "xtu.me",
  634. "sharebase.de",
  635. "luckyshare.net",
  636. "filerobo.com",
  637. "filevelocity.com",
  638. "filezpro.com",
  639. "file4sharing.com",
  640. "cing.be",
  641. "ufile.eu",
  642. "pigsonic.com",
  643. "fileupped.com",
  644. "sharerun.com",
  645. "filesaur.com",
  646. "rapidslnare.com",
  647. "bestsharing.com",
  648. "savefiles.net",
  649. "file2share.biz",
  650. "filecache.de",
  651. "monsteruploads.eu",
  652. "b9bb.com",
  653. "aiotool.net",
  654. "jamber.info",
  655. "megaftp.com",
  656. "desiupload.net",
  657. "file27.com",
  658. "yastorage.com",
  659. "filehost.ws",
  660. "copyload.com",
  661. "venusfile.com",
  662. "aieshare.com",
  663. "terafile.co",
  664. "terafile.com",
  665. "fileza.net",
  666. "filerose.com",
  667. "squillion.com",
  668. "fileprohost.com",
  669. "bitbonus.com",
  670. "warserver.cz",
  671. "uload.to",
  672. "sharedbit.net",
  673. "megaload.it",
  674. "filewinds.com",
  675. "uploadcore.com",
  676. "syfiles.com",
  677. "eyesfile.com",
  678. "hotfile.com",
  679. "superupl.com",
  680. "oteupload.com",
  681. "henchfile.com",
  682. "filegag.com",
  683. "HenchFile.com",
  684. "filedefend.com",
  685. "share-rapid.com|rapids.cz|share-credit.cz|share-central.cz|share-ms.cz|share-net.cz|srapid.cz|share-rapid.cz",
  686. "megabitshare.com",
  687. "cloudzer.com",
  688. "asfile.com",
  689. "cloudzer.net",
  690. "clz.to",
  691. "extabit.com",
  692. "247upload.com",
  693. "2download.de",
  694. "4fastfile.com",
  695. "asixfiles.com",
  696. "berofile.com",
  697. "bigupload.com",
  698. "cepzo.com",
  699. "clouds.to",
  700. "cobrashare.sk",
  701. "coraldrive.net",
  702. "cyberlocker.ch",
  703. "czshare.com",
  704. "darkport.org",
  705. "dark-uploads.com",
  706. "davvas.com",
  707. "enigmashare.com",
  708. "erofly.cz",
  709. "fastsonic.net",
  710. "filebox.com",
  711. "filecity.net",
  712. "filedap.com",
  713. "filedino.com",
  714. "filedownloads.org",
  715. "filefolks.com",
  716. "fileking.co",
  717. "filemates.com",
  718. "files.to",
  719. "files2k.eu",
  720. "filesector.cc",
  721. "bitshare.com",
  722. "filesega.com",
  723. "filesend.net",
  724. "filestay.com",
  725. "filestrum.com",
  726. "fileuplo.de",
  727. "fileupup.com",
  728. "forunesia.com",
  729. "freeuploads.fr",
  730. "uploa.dk",
  731. "getthebit.com",
  732. "getzilla.net",
  733. "goldfile.eu",
  734. "good.com",
  735. "grupload.com",
  736. "hellfile.com",
  737. "hipfile.com",
  738. "hitfile.com",
  739. "hulkfile.eu|duckfile.net",
  740. "i-filez.com",
  741. "ifile.ws",
  742. "kupload.org",
  743. "packupload.com",
  744. "lemuploads.com",
  745. "limelinx.com",
  746. "maxshare.pl",
  747. "megarelease.org",
  748. "megashare.com",
  749. "minus.com",
  750. "mlfat4arab.com",
  751. "multishare.cz",
  752. "nirafile.com",
  753. "ok2upload.com",
  754. "peejeshare.com",
  755. "premiuns.org",
  756. "przeklej.net",
  757. "qkup.net",
  758. "rapidupload.sk",
  759. "rockdizfile.com",
  760. "rocketfile.net",
  761. "share-now.net",
  762. "share76.com",
  763. "sharebees.com",
  764. "sharefiles.co",
  765. "slingfile.com",
  766. "sms4file.com",
  767. "space4file.com",
  768. "tigershare.net",
  769. "toucansharing.com",
  770. "ubuntuone.com",
  771. "unextfiles.com",
  772. "upaj.pl",
  773. "upfile.biz",
  774. "uploadbin.net",
  775. "uploadic.com",
  776. "uploadinc.com",
  777. "uploading4u.eu",
  778. "uploadjet.net",
  779. "uploadorb.com",
  780. "upthe.net",
  781. "uptorch.com",
  782. "vidbox.yt",
  783. "videozer.com",
  784. "vreer.com",
  785. "wallobit.com",
  786. "zooupload.com",
  787. "privatefiles.com",
  788. "xerver.co",
  789. "BillionUploads.com",
  790. "rapidshare.com",
  791. "rapidshare.ru",
  792. "4savefile.com",
  793. "bayfiles.com",
  794. "bayfiles.net",
  795. "dodane.pl",
  796. "dotsemper.com",
  797. "egofiles.com",
  798. "epicshare.net",
  799. "fiberupload.net",
  800. "filemonkey.in",
  801. "filemonster.net",
  802. "filepom.com",
  803. "filesbb.com",
  804. "fileshareup.com",
  805. "filevice.com",
  806. "gigaup.fr",
  807. "isavelink.com",
  808. "loombo.com",
  809. "megafiles.se",
  810. "migupload.com",
  811. "mydisc.net",
  812. "nitrobits.com",
  813. "potload.com",
  814. "redload.net",
  815. "shareprofi.com",
  816. "sharesuper.info",
  817. "sinhro.net",
  818. "speedfile.cz",
  819. "speedshare.org",
  820. "storage.novoro.net",
  821. "swankshare.com",
  822. "swatupload.com",
  823. "upafile.com",
  824. "uploadmachine.com",
  825. "uploadsat.com",
  826. "upshared.com",
  827. "usefile.com",
  828. "yourfiles.to",
  829. "zomgupload.com",
  830. "ultramegabit.com",
  831. "uploadto.us",
  832.  
  833. ];
  834. ///////////////////////////////////////////////////////////////////////////////////////
  835. var firstRun = GM_getValue("First_run", true);
  836.  
  837. var chromeBrowser = /chrom(e|ium)/.test(navigator.userAgent.toLowerCase());
  838. //////////////////////////////////////////////////////////////////////////////////////
  839. try
  840. {
  841. var thisVersion = GM_info.script.version; //not supported in Scriptish and others
  842. var last_known_version = GM_getValue("last_known_version", "");
  843. if (!last_known_version)
  844. {
  845. last_known_version = thisVersion;
  846. GM_setValue("last_known_version", last_known_version);
  847. }
  848. //var newVersion = !(thisVersion == last_known_version);
  849. var newVersion = !(a.replace(/^(\d+\.\d+\.\d+).*/,'$1') == b.replace(/^(\d+\.\d+\.\d+).*/,'$1')); //true only if one of the first three numbers differs
  850. GM_setValue("last_known_version", thisVersion);
  851. }
  852. catch (err)
  853. {
  854. var newVersion = false;
  855. }
  856.  
  857. var now = (new Date()).getTime();
  858. var last_custom_rules_nag = GM_getValue('last_custom_rules_nag', 0);
  859. if (!last_custom_rules_nag)
  860. {
  861. last_custom_rules_nag = now;
  862. GM_setValue('last_custom_rules_nag', ''+now);
  863. }
  864.  
  865.  
  866. allHostNames.sort();
  867. allContainerNames.sort();
  868. allObsoleteNames.sort();
  869.  
  870. var RAND_STRING = "8QyvpOSsRG3QWq";
  871. var DEBUG_MODE = false;
  872.  
  873. var TOOLTIP_MAXWIDTH = 600; //in pixels
  874. var TOOLTIP_THUMBWIDTH = 200;
  875. var containers_processed = false;
  876.  
  877. //settings for keyboard functions start
  878. var CHECK_ALL_LINKS_KEY = "A";
  879. var CONFIGURATION_KEY = "C";
  880. var copy_to_dead_key = "D";
  881. var toggle_autocheck_key = "W";
  882. var toggle_Enable_Anonymizer_key = "Z";
  883. var first_key_keycode = '17'; // 18=ALT 16=Shift 17=Ctrl 32=SPACE_BAR 9=TAB
  884. var first_key_keycodename = 'CTRL';
  885. var second_key_keycode = '18';
  886. var second_key_keycodename = 'ALT';
  887. var CHECK_ALL_LINKS_KEYCODE = CHECK_ALL_LINKS_KEY.charCodeAt(0);
  888. var CONFIGURATION_KEYCODE = CONFIGURATION_KEY.charCodeAt(0);
  889. var copy_to_dead_keycode = copy_to_dead_key.charCodeAt(0);
  890. var toggle_autocheck_keycode = toggle_autocheck_key.charCodeAt(0);
  891. var toggle_Enable_Anonymizer_keycode = toggle_Enable_Anonymizer_key.charCodeAt(0);
  892. //settings for keyboard functions end
  893.  
  894. //global settings start
  895. var Show_black_background_in_DL_links, Show_line_through_in_dead_links, Color_DL_links;
  896. var Live_links_color, Dead_links_color, Temp_unavailable_links_color, Premium_links_color, Ref_anonymize_service;
  897. var Do_not_linkify_DL_links, Keyboard_functions, Autocheck, Enable_Anonymizer;
  898. var Show_progress_stats, Display_tooltip_info, Icon_set;
  899. var Progress_box_pos_bottom, Progress_box_pos_right, Progress_box_opacity, Progress_box_background_color, Progress_box_item_color;
  900. var Progress_box_refresh_rate;
  901. var Obsolete_file_hosts;
  902. var Custom_rules, Custom_rules_text;
  903.  
  904. var messageBox = document.createElement('b'); // top-left message box
  905.  
  906. var cLinksTotal = 0;
  907. var cLinksDead = 0;
  908. var cLinksAlive = 0;
  909. var cLinksUnava = 0;
  910. var cLinksprem = 0;
  911. var cLinksProcessed = 0;
  912.  
  913. var intervalId; //for updateProgress()
  914.  
  915. //icon resources
  916. var PAW_ICON_GREEN = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAANCAYAAABy6+R8AAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYwP2SycQWHTA4vcAAPK7b8HUKAgDgGiD4c93/+8//UegJQC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Ylu6T8w+0dbq3nr8R9sfD5w0PFl5SvNUyWna6YLTk2fyz4ydlZ19fi753GDborZ752PO32oPb++6EHTh0kX/i+c7vDvOXPK4dPKy2+UTV7hXmq86X23qdOo8/pPTT8e7nLuarrlca7nuer21e2b36RueN87d9L158Rb/1tWeOT3dvfN6b/fF9/XfFt1+cif9zsu72Xcn7q28T7xf9EDtQdlD3YfVP1v+3Njv3H9qwHeg89HcR/cGhYPP/pH1jw9DBY+Zj8uGDYbrnjg+OTniP3L96fynQ89kzyaeF/6i/suuFxYvfvjV69fO0ZjRoZfyl5O/bXyl/erA6xmv28bCxh6+yXgzMV70VvvtwXfcdx3vo98PT+R8IH8o/2j5sfVT0Kf7kxmTk/8EA5jz/GMzLdsAAAAgY0hSTQAAeiUAAICDAAD5/wAAgOkAAHUwAADqYAAAOpgAABdvkl/FRgAAAaJJREFUeNpkkk1rE1EUhp9zJ21NpxJocxctiAQXXYkQQQsG/EJo0a0LyW8ws9KFP0E3HQv6D9x1KbixdTGIlrZuzUJLCM2iEykRJ23S5B4XsZOpPXAW957zXM773iNkQquUgAKAAlpISx3vDXunB8kA5Zbb3hr6l032HtDc7/rQzlWWJt6yk0Japfxr4udWN3dRAMP5UI5bzi5cu5F/ya7RKqWW204BG66c6bart0ePX1iQRjP6krygZIDCv5FMce0+cELx9WMAimuPUCPY8B6AmfYXcy5PwWhGW/vpR2AKdB8bPkScIswRBxupB84Dk3EIgDh4j+CjHIImxLV18sM/Z3rOibard1A5wcg8Kn1s+IAjb2bsiAPjlNNvwYbLINOgfQ5q6yCTqBzjv7qbMgoYl6PTTerSY+Di4ANqBrSDz0z1D2nXPtHr+STPNgFcN6mLm6EjAEfPKTea0Y74V5yHmEm8/6d23aRu7M1KOf4afTMAjWa0e6lUua7JDzNEtceATGoWWHx3a7wu359EzF+tjHfPjYS6kQed2UD3AESEvwMAaQGsQMrwcN0AAAAASUVORK5CYII=';
  925.  
  926. var NEW_ICON_GREEN = 'data:image/png;base64,iVBORw0KGg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ClGD+Fu41dOZlKDMLmELrOUIhjeN48HpngTnMbDeWjIeHnsvbz98YXqxguumuazdDOs0HjAETRKNjuFyzTE9PAOO//Xm27lvN4b1c8htkAXC2jrKHN5gVSRcRW0SCIpIj/f2ZAkhTkykiOYu+SLa8e6qkeRNXALh5nEc/phARnaSJSSUnO5G+B8tnIkr6rjMTSqfMZQXZ9vE1xGKJpPe4DDjXAYkEjAwmzwwDLIv0NZlE1MYAjsQoAOL8C5rY2AxPlIjwP/wcACKn3tWfrwJ4AAAAAElFTkSuQmCC';
  929. var NEW_ICON_PINK = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABUklEQVQ4jY3TsUuWURQG8F8WEvFNDREfIg5RURAOIeL0DhJBS0tDY9BQQ0Oj29kiIvoDhBpFQRTUD1GKi0sRtEs0SEQ0RBQIRcVXw3eF6+vrWwcunPvc53nuPffcS0uEmA0x38Y5cohwGjOYxBBe4VGI3j8NQlzHYhaW0cfNEAslWCfBw4yvYhkv8hjCgxD7yMdquw/jbJ4+xq2cz+AKdrJRv9EAv/EDx3Ft75QhtrHdcFpHy0mS/lSqcVzAFM7he6XaTNLXJoOmS+ziOc4XcB893A3xodUgm5zAHdzHSLH0DhdD/GwsoSjlV5Je5nK+YQUTOInXSXq7x6134RQuo4unGf6Me7iKMxgrNfUuXMJazr8U+DA6Of/UZrCF9xjFM3zELpZwOptulIKmLlQGNXdqS7u4EWK9BA9cYpJ2KtWcwaMazcInuB3iTZ3fGv/znf8CBMxX4hrPUbUAAAAASUVORK5CYII=';
  930.  
  931. //global settings end
  932. if (window.opera && !window.console)
  933. {
  934. window.console = {};
  935.  
  936. function fn()
  937. {
  938. opera.postError(arguments);
  939. };
  940. ['log', 'debug', 'info', 'warn', 'error', 'assert', 'dir', 'dirxml', 'group', 'groupEnd', 'time', 'timeEnd', 'count', 'trace', 'profile', 'profileEnd'].forEach(function (name)
  941. {
  942. window.console[name] = fn;
  943. });
  944. }
  945.  
  946. //displays colored text in message box
  947. function sendMessage(text, color)
  948. {
  949. var msgDiv = document.createElement('div');
  950. msgDiv.style.color = color;
  951. msgDiv.innerHTML = text;
  952. messageBox.appendChild(msgDiv);
  953. setTimeout(function(){messageBox.removeChild(msgDiv)}, 3000);
  954. }
  955.  
  956. function linkify(totalourls)
  957. { // code from http://userscripts.org/scripts/review/2254 Linkify ting
  958. var ikkeTilladteTags;
  959. var allLinksRegex = "(?:http:\/\/.+?\\?)?(?:https?:\/\/)?"
  960. + "[0-9A-Za-z]+(?:[\\.-][0-9A-Za-z]+)*\\.[A-Za-z]+/" //instead of totalourls
  961. + "[\\w\\–\\-\\.+$!*\\/()\\[\\]\',~%?:@#&=\\\\\\—;…×Ã\\_\\u0080-\\u03FF’‘" + (Allow_spaces_in_DL_links ? "\\u0020" : "") + "]*";
  962. allLinksRegex = new RegExp(allLinksRegex, "g");
  963. var regexy = "^(?:http:\/\/.+?\\?)?(?:https?:\/\/)?(?:www\\.)?(?:" + totalourls + ")";
  964.  
  965. if (Do_not_linkify_DL_links)
  966. ikkeTilladteTags = ['a', 'head', 'script', 'style', 'title', 'option', 'iframe', 'textarea', 'span']; //tags, hvor det der stAΞ’Β¥r inden i ikke skal vAΞ’Β¦re links
  967. else
  968. ikkeTilladteTags = ['a', 'head', 'script', 'style', 'title', 'option', 'iframe', 'textarea']; //tags, hvor det der stAΞ’Β¥r inden i ikke skal vAΞ’Β¦re links
  969.  
  970. var regex = new RegExp(regexy);
  971. var textNode, muligtLink;
  972.  
  973. var path = "//text()[not(parent::" + ikkeTilladteTags.join(" or parent::") + ") and contains(.,'/')]";
  974. var textNodes = document.evaluate(path, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  975.  
  976. var i = textNodes.snapshotLength;
  977. while (i--)
  978. {
  979. textNode = textNodes.snapshotItem(i);
  980.  
  981. muligtLink = textNode.nodeValue; //all links on page
  982.  
  983. var myArray = null;
  984. var span = null;
  985. var lastLastIndex = 0;
  986. allLinksRegex.lastIndex = 0;
  987. if (/^https?:\/\/~[\w\s\~]*\//.test(muligtLink))
  988. {
  989. if (textNode.parentNode.className == "adead_link") continue;
  990. var censoredLink = muligtLink;
  991. var span = document.createElement('span');
  992. span.className = "adead_link";
  993. $(span).attr('warlc_error', "Cause of error: <b>Censored link.</b>");
  994. $(span).html(censoredLink);
  995. span.addEventListener("mouseover", displayTooltipError, false);
  996. cLinksTotal++; cLinksProcessed++; cLinksDead++;
  997. textNode.parentNode.replaceChild(span, textNode);
  998. continue;
  999. alert(censoredLink);
  1000. }
  1001. while (myArray = allLinksRegex.exec(muligtLink)) //find all links
  1002. {
  1003. if (!regex.test(myArray[0])) //this link is not recognized
  1004. {
  1005.  
  1006. continue;
  1007. }
  1008. if (!span)
  1009. span = document.createElement('span');
  1010.  
  1011. var link = myArray[0];
  1012. span.appendChild(document.createTextNode(muligtLink.substring(lastLastIndex, myArray.index))); //inds?t det der kommer for dette hit
  1013.  
  1014. var $a = $("<a>" + link + "</a>")
  1015. if (!link.match(/https?:\/\//))
  1016. {
  1017. link = 'http://' + link;
  1018. }
  1019.  
  1020. $a.attr("href", link.replace(/\[\/hide:\w+\]/,""))
  1021. .addClass("processing_link")
  1022. .appendTo(span);
  1023. lastLastIndex = allLinksRegex.lastIndex;
  1024. }
  1025. if (span)
  1026. {
  1027. span.appendChild(document.createTextNode(muligtLink.substring(lastLastIndex))); //ins?t det der kommer efter sidste hit
  1028. textNode.parentNode.replaceChild(span, textNode);
  1029. }
  1030. }
  1031. }
  1032.  
  1033. function add_WARLC_style()
  1034. {
  1035. if (!(document.getElementsByTagName('WARLC')[0]))
  1036. {
  1037. var meta_not_to_add_more_style = document.createElement("WARLC");
  1038. meta_not_to_add_more_style.setAttribute('content', 'war_links_checker');
  1039. meta_not_to_add_more_style.setAttribute('name', 'description');
  1040. document.getElementsByTagName('head')[0].appendChild(meta_not_to_add_more_style);
  1041. alive_link_png = "";
  1042. adead_link_png = "";
  1043. unava_link_png = "";
  1044. prem_link_png = "";
  1045. switch(Icon_set)
  1046. {
  1047. //no icons
  1048. case 0: break;
  1049. // cat paws
  1050. case 1: alive_link_png = PAW_ICON_GREEN;
  1051. adead_link_png = PAW_ICON_RED;
  1052. unava_link_png = PAW_ICON_YELLOW;
  1053. prem_link_png = PAW_ICON_PINK;
  1054. break;
  1055. // classic RSLC look
  1056. case 2: alive_link_png = RSLC_ICON_GREEN;
  1057. adead_link_png = RSLC_ICON_RED;
  1058. unava_link_png = RSLC_ICON_YELLOW;
  1059. prem_link_png = RSLC_ICON_PINK;
  1060. break;
  1061. // New Icons
  1062. case 3: alive_link_png = NEW_ICON_GREEN;
  1063. adead_link_png = NEW_ICON_RED;
  1064. unava_link_png = NEW_ICON_YELLOW;
  1065. prem_link_png = NEW_ICON_PINK;
  1066. break;
  1067. // cat paws
  1068. default:alive_link_png = PAW_ICON_GREEN;
  1069. adead_link_png = PAW_ICON_RED;
  1070. unava_link_png = PAW_ICON_YELLOW;
  1071. prem_link_png = PAW_ICON_PINK;
  1072. break;
  1073. }
  1074. processing_link_gif = 'data:image/gif;base64,' + // or temporary anavailable
  1075. 'R0lGODlhCgAKAJEDAMzMzP9mZv8AAP///yH/C05FVFNDQVBFMi4wAwEAAAAh+QQFAAADACwAAAAACgAKAAACF5wncgaAGgJzJ647cWua4sOBFEd62VEAACH5BAUAAAMALAEAAAAIAAMAAAIKnBM2IoMDAFMQFAAh+QQFAAADACwAAAAABgAGAAACDJwHMBGofKIRItJYAAAh+QQFAAADACwAAAEAAwAIAAACChxgOBPBvpYQYxYAIfkEBQAAAwAsAAAEAAYABgAAAgoEhmPJHOGgEGwWACH5BAUAAAMALAEABwAIAAMAAAIKBIYjYhOhRHqpAAAh+QQFAAADACwEAAQABgAGAAACDJwncqi7EQYAA0p6CgAh+QQJAAADACwHAAEAAwAIAAACCpRmoxoxvQAYchQAOw%3D%3D';
  1076.  
  1077. var dead_color_css, live_color_css, unava_color_css, prem_color_css, black_background_css;
  1078.  
  1079. if (Color_DL_links)
  1080. {
  1081. dead_color_css = 'color:' + Dead_links_color + ' !important;';
  1082. live_color_css = 'color:' + Live_links_color + ' !important;';
  1083. unava_color_css = 'color:' + Temp_unavailable_links_color + ' !important;';
  1084. container_color_css = 'color:' + Container_links_color + ' !important;';
  1085. prem_color_css = 'color:' + Premium_links_color + ' !important;';
  1086. }
  1087. else
  1088. {
  1089. dead_color_css = live_color_css = unava_color_css = container_color_css = prem_color_css = '';
  1090. }
  1091.  
  1092. if (Show_black_background_in_DL_links)
  1093. {
  1094. black_background_css = 'background-color: black !important;';
  1095. }
  1096. else
  1097. {
  1098. black_background_css = '';
  1099. }
  1100.  
  1101. if (Show_line_through_in_dead_links)
  1102. {
  1103. line_through_css = 'text-decoration: line-through !important;';
  1104. }
  1105. else
  1106. {
  1107. line_through_css = '';
  1108. }
  1109.  
  1110. GM_addStyle(".alive_link {background:transparent url(" + alive_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;" + live_color_css + black_background_css + "}");
  1111. 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 + "}");
  1112. GM_addStyle(".unava_link {background:transparent url(" + unava_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;" + unava_color_css + black_background_css + "}");
  1113. GM_addStyle(".processing_link {background:transparent url(" + processing_link_gif + ") no-repeat scroll 100% 50%;padding-right:15px;" + container_color_css + black_background_css + "}");
  1114. GM_addStyle(".container_link {background:transparent url(" + processing_link_gif + ") no-repeat scroll 100% 50%;padding-right:15px;" + container_color_css + black_background_css + "}");
  1115. GM_addStyle(".container_list {font-size:90%; list-style-type:square; padding: 0px 5% 0px; margin: 0px}");
  1116. GM_addStyle(".prem_link {background:transparent url(" + prem_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;" + prem_color_css + black_background_css + "}");
  1117. }
  1118. }
  1119.  
  1120. var warlcTooltip = null;
  1121. var mouseoverLink = null; //link href with mouse cursor over it
  1122.  
  1123. var lastX = 0;
  1124. var lastY = 0;
  1125.  
  1126. $(document).ready(initTooltip);
  1127. //inits tooltip
  1128. function initTooltip()
  1129. { warlcTooltip = document.createElement("div");
  1130. 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;");
  1131. warlcTooltip.style.visibility = "hidden";
  1132. document.body.appendChild(warlcTooltip);
  1133. }
  1134.  
  1135. //"mousemove" event handler for all links
  1136. function moveTooltip(event)
  1137. {
  1138. if ((Math.abs(lastX - event.clientX) + Math.abs(lastY - event.clientY)) < 6)
  1139. { //no need to reflow if the cursor moved just a little
  1140. return;
  1141. }
  1142. else
  1143. {
  1144. lastX = event.clientX;
  1145. lastY = event.clientY;
  1146. }
  1147.  
  1148. posX = event.clientX + window.pageXOffset + 10;
  1149. posY = event.clientY + window.pageYOffset;
  1150. var ttHeight = warlcTooltip.offsetHeight;
  1151. var ttFreeSpace = window.innerHeight - event.clientY;
  1152. if (ttHeight > ttFreeSpace)
  1153. { //prevents tooltip from getting out of the window
  1154. posY -= (ttHeight - (ttFreeSpace)) + 10;
  1155. }
  1156. else
  1157. {
  1158. posY += 7;
  1159. }
  1160. warlcTooltip.style.top = posY + "px";
  1161. warlcTooltip.style.left = posX + "px";
  1162. }
  1163.  
  1164. //"mouseout" event handler for all links
  1165. function hideTooltip(){
  1166. warlcTooltip.style.visibility = "hidden";
  1167. mouseoverLink = null;
  1168. }
  1169.  
  1170.  
  1171. //"mouseover" event handler for dead links
  1172. //displays tooltip error message on dead links
  1173. function displayTooltipError()
  1174. {
  1175. mouseoverLink = this.href;
  1176. this.addEventListener("mouseout", hideTooltip);
  1177. this.addEventListener("mousemove", function(event) { moveTooltip(event); });
  1178. warlcTooltip.innerHTML = '<b>LOADING...</b>';
  1179. warlcTooltip.style.minWidth = 0;
  1180. warlcTooltip.style.visibility = "visible";
  1181. if (this.warlc_error) //an error message is already known and stored in warlc_error attribute
  1182. {
  1183. warlcTooltip.innerHTML = this.warlc_error;
  1184. }
  1185. else
  1186. {
  1187. loadErrorInfo(this);
  1188. }
  1189. function loadErrorInfo(link)
  1190. {
  1191. var href = link.href;
  1192. href = href.replace(/quickshare\.cz\/.+/, "quickshare.cz/chyba");
  1193. GM_xmlhttpRequest({
  1194. method: 'GET',
  1195. url: href.replace(Ref_anonymize_service, ""),
  1196. headers: {
  1197. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1198. 'Accept': 'text/xml',
  1199. 'Referer': ""
  1200. },
  1201. onload: function(result) {
  1202. var res = result.responseText;
  1203. //TODO: errorRegexs -
  1204. var errorRegexs = [ //generic error messages follow
  1205. /(empty directory)/i,
  1206. /(soubor nebyl nalezen)/i,
  1207. /((?:file|page|link|folder)(?:is|not|does|has been|was| ){1,}(?:found|available|blocked|exists?|deleted|removed))/i,
  1208. //server specific error messages follow
  1209. /msg error" style="cursor: default">(.+?)<\/div>/, //sendspace
  1210. /color:red;font\-weight:bold;border\-style:dashed;font-size:12px;border\-width:2px;><tr><td align=center>(.+?)<\/td>/, //fastshare
  1211. /(Takový soubor neexistuje. Je možné, že byl již smazán.)/, //quickshare
  1212. /file_info file_info_deleted">\s*<h1>(.+?)<\/h1>/, //filepost
  1213. /<br \/>\s*<p style="color:#000">(.+?)<\/p>\s*<\/center>/, //letitbit
  1214. /(?:error_div">|<\/h1><p>)<strong>(.+?)<\/strong>/, //share-rapid,quickshare
  1215. /class="red">(.+?)<(?:span|br)>/, //czshare, megashares
  1216. /class="wp640">\s*<h1 class="h1">(.+?)<\/h1>/, //uloz.to
  1217. /not-found">\s*<p>(.+?)<\/p>/, //bayfiles
  1218. /(Your file could not be found. Please check the download link.)/, //stahnu.to
  1219. /error_msg">\s*(<h3>.+?<\/h3><ul>(.+?)<\/ul>)/, //edisk
  1220. /id="obsah">\s*<h2>(.+?)<\/h2>/, //euroshare
  1221. /error">\s*(?:<[bp]>)?\s*(.+?)<\/[bp]>/, //filesmonster, shragle, gigapeta
  1222. ///center aC">\s*<h1>(.+?)<br \/>/, //uploaded.to
  1223. /icon_err">\s*<h1>(.+?)<\/h1>/, //filejungle
  1224. /Code: ER_NFF_\d+<\/h2>\s*(.+?)\s*<\/div>/, //netload
  1225. /(File has been removed due to Copyright Claim)/, //filerio
  1226. ];
  1227. var errorIdx = errorRegexs.length;
  1228. var error = "Cause of error: <b>unknown</b>";
  1229. var errorCandidate = "";
  1230. while(errorIdx--)
  1231. {
  1232. var errorCandidate = res.match(errorRegexs[errorIdx]);
  1233. if (errorCandidate != null)
  1234. {
  1235. error = "Cause of error: <b>" + errorCandidate[1].replace(/&nbsp;/g," ") + "</b>";
  1236. break;
  1237. }
  1238. }
  1239. //link attributes
  1240. link.warlc_error = error;
  1241. if (mouseoverLink == link.href) //mouse cursor is still over the link
  1242. {
  1243. warlcTooltip.innerHTML = error;
  1244. }
  1245. }
  1246. });
  1247. }
  1248. }
  1249.  
  1250. //"mouseover" event handler for alive links
  1251. //displays tooltip info (file size, file name,...) on alive links
  1252. function displayTooltipInfo()
  1253. {
  1254. mouseoverLink = this.href;
  1255. //exclude direct download filehostings
  1256. 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)/))
  1257. {
  1258. return;
  1259. }
  1260. this.addEventListener("mouseout", hideTooltip);
  1261. this.addEventListener("mousemove", function(event) { moveTooltip(event); });
  1262. warlcTooltip.innerHTML = '<b>LOADING...</b>';
  1263. warlcTooltip.style.minWidth = 0;
  1264. warlcTooltip.style.visibility = "visible";
  1265. if (this.warlc_tooltipcache) //file size is already known and stored in warlc_filename and warlc_filesize attributes
  1266. {
  1267. warlcTooltip.innerHTML = this.warlc_tooltipcache;
  1268. }
  1269. else
  1270. {
  1271. loadInfo(this);
  1272. }
  1273. function loadInfo(link)
  1274. {
  1275. var href = link.href;
  1276. GM_xmlhttpRequest({
  1277. method: 'GET',
  1278. url: href.replace(Ref_anonymize_service, ""),
  1279. headers: {
  1280. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1281. 'Accept': 'text/xml',
  1282. 'Referer': ""
  1283. },
  1284. onload: function(result) {
  1285. var res = result.responseText;
  1286. var nameRegexs = [ /Filename: <b class="f_arial f_14px">(.+?)<\/b>/, //oron
  1287. /(?:finfo|file[-_]?name)">\s*(.+?)<\/?(?:h1|a|div|span style|td)/, //hellshare, netload, badongo, 4fastfile
  1288. /fl" title="(.+?)">/, //edisk
  1289. /<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
  1290. /<h3>Stahujete soubor: <\/h3>\s*<div class="textbox">(.+?)<\/div>/, //webshare
  1291. /<h3><b><span style=color:black;>(.+?)<\/b><\/h3><br>/, //fastshare
  1292. /title="download (.+?)">/, //sendspace
  1293. /Stáhnout soubor: (.+?)<\/h1>/, //quickshare
  1294. /fz24">Download:\s*<strong>(.+?)<\/strong>/, //crocko
  1295. // /'file\-icon\d+ \w+'>(?:<\/span><span>)?(.+?)<\/span>/, //hitfile, turbobit
  1296. /d0FileName = "(.+?)";/, //letitbit
  1297. /file(?:_name|-info)" title="">\w+: <span>(.+?)<\/span>/, //vip-file, shareflare
  1298. /recent-comments"><h2>(.+) &nbsp;/, //xdisk
  1299. /fname" value="(.+?)">/, //syfiles, grupload,
  1300. /download\-header">\s*<h2>File:<\/h2>\s*<p title="(.+?)">/, //bayfiles
  1301. /description">\s*<p><b>Soubor: (.+?)<\/b>/, //bezvadata
  1302. /Complete name : (.+?)<br \/>/, //bezvadata
  1303. /itemprop="name">(.+?)<\/span>/, //bezvadata
  1304. ];
  1305. var nameIdx = nameRegexs.length;
  1306. // [sizeRegexs]
  1307. // / \ \?
  1308. // prefix (size) postfix
  1309. // / \
  1310. // val quant
  1311. var quantRegex = '(?:M|G|K)?i?(?:B)(?:[y|i]te?s?)?';
  1312. var valRegex = '\\d+(?:[\\., ]\\d+){0,2}'; // 111([., ]222)?([., ]333)?
  1313. var uniSizeRegex = valRegex + '(?:\\s*|&nbsp;)' + quantRegex;
  1314. var preSizeRegex = '(?::|\\(|>|>, | - )';
  1315. var postSizeRegex = '(?:\\))?';
  1316. var sizeRegexs = [ preSizeRegex + "\\s*(" + uniSizeRegex + ")\\s*" + postSizeRegex,
  1317. 'FileSize_master">(.+?)<\/strong>', //hellshare
  1318. ];
  1319. var sizeIdx = sizeRegexs.length;
  1320. //
  1321. //
  1322. var tooltip = "File Name: <b>";
  1323. var fileName = "unknown";
  1324. var nameCandidate = "";
  1325. while(nameIdx--)
  1326. {
  1327. var nameCandidate = res.match(nameRegexs[nameIdx]);
  1328. if (nameCandidate != null)
  1329. {
  1330. fileName = nameCandidate[1].replace(/&nbsp;/g," ");
  1331. break;
  1332. }
  1333. }
  1334. tooltip += fileName + "</b><br>File Size: <b>";
  1335. var fileSize = "unknown";
  1336. var sizeCandidate = "";
  1337. while(sizeIdx--)
  1338. {
  1339. sizeCandidate = res.match(new RegExp(sizeRegexs[sizeIdx], "i"));
  1340. if (sizeCandidate != null)
  1341. {
  1342. fileSize = sizeCandidate[1].replace(/&nbsp;/g," ");
  1343. if (/^\d+$/.test(fileSize) && fileSize >= 1024) //assume bytes
  1344. {
  1345. if(fileSize > (1<<30)) fileSize = Math.round(10 * fileSize / (1<<30)) / 10 + ' GB';
  1346. else if(fileSize > (1<<20)) fileSize = Math.round(fileSize / (1<<20)) + ' MB';
  1347. else fileSize = Math.round(fileSize / 1024) + ' KB';
  1348. }
  1349. break;
  1350. }
  1351. }
  1352. tooltip += fileSize + "</b>";
  1353. // PROTOTYPE
  1354. // video thumbnails
  1355. if (href.match('hellshare'))
  1356. {
  1357. var thumbs;
  1358. thumbs = res.match(/http:\/\/static\d+\.helldata\.com\/thumbs(?:\/\d+){1,2}\/\d{1,2}"/g);
  1359. if (thumbs)
  1360. {
  1361. tooltip += '<br>';
  1362. var j = Math.min(thumbs.length, 9);
  1363. for (var i = 0; i < j; i++)
  1364. {
  1365. tooltip += '<img src="' + thumbs[i].replace('"',"") + '" width="' + TOOLTIP_THUMBWIDTH + 'px">';
  1366. }
  1367. warlcTooltip.style.minWidth = TOOLTIP_MAXWIDTH;
  1368. }
  1369. }
  1370. if (href.match('czshare'))
  1371. {
  1372. var thumbs;
  1373. thumbs = res.match(/src="http:\/\/www(\d+)\.czshare\.com\/images_velke\/\d+\.(\d+)\.jpeg/);
  1374. if (thumbs)
  1375. {
  1376. var thumbsServer = thumbs[1];
  1377. var thumbsId = thumbs[2];
  1378. tooltip += '<br>';
  1379. for (var i = 1; i < 9; i++)
  1380. {
  1381. tooltip += '<img src="http://www' + thumbsServer + '.czshare.com/images_velke/' + i + '.' + thumbsId + '.jpeg" width="' + TOOLTIP_THUMBWIDTH + 'px">';
  1382. }
  1383. warlcTooltip.style.minWidth = TOOLTIP_MAXWIDTH;
  1384. }
  1385. }
  1386. if (href.match('bezvadata'))
  1387. {
  1388. var thumbs;
  1389. thumbs = res.match(/http:\/\/nahledy\.bezvadata\.cz\/nahledy\/\d+\/\d+\/\d+_\d+_\d+x\d+_\w.jpg/g);
  1390. if (thumbs)
  1391. {
  1392. tooltip += '<br>';
  1393. var j = Math.min(thumbs.length, 9);
  1394. for (var i = 0; i < j; i++)
  1395. {
  1396. tooltip += '<img src="' + thumbs[i] + '" width="' + TOOLTIP_THUMBWIDTH + 'px">';
  1397. }
  1398. warlcTooltip.style.minWidth = TOOLTIP_MAXWIDTH;
  1399. }
  1400. }
  1401. link.warlc_tooltipcache = tooltip;
  1402. if (mouseoverLink == link.href) //mouse cursor is still over the link
  1403. {
  1404. warlcTooltip.innerHTML = tooltip;
  1405. }
  1406. }
  1407. });
  1408. }
  1409. }
  1410.  
  1411. function setVariables()
  1412. {
  1413. if (firstRun)
  1414. {
  1415. GM_log('First run, applying default settings...');
  1416. GM_setValue("Icon_set",1);
  1417. GM_setValue("Display_tooltip_info",true);
  1418. GM_setValue("Show_black_background_in_DL_links",false);
  1419. GM_setValue("Show_line_through_in_dead_links",false);
  1420. GM_setValue("Display_full_links_in_link_containers",false);
  1421. GM_setValue("Allow_spaces_in_DL_links",false);
  1422. GM_setValue("Autocheck",true);
  1423. GM_setValue("Enable_Anonymizer",false);
  1424. GM_setValue("Do_not_linkify_DL_links",false);
  1425. GM_setValue("Show_progress_stats",true);
  1426. GM_setValue("Keyboard_functions",true);
  1427. GM_setValue("Obsolete_file_hosts",false);
  1428. GM_setValue("Color_DL_links",true);
  1429. GM_setValue("Live_links_color","Green");
  1430. GM_setValue("Dead_links_color","#FF3300");
  1431. GM_setValue("Temp_unavailable_links_color","#F7EF09");
  1432. GM_setValue("Container_links_color","DarkKhaki");
  1433. GM_setValue("Premium_links_color","DeepPink");
  1434. GM_setValue("Ref_anonymize_service","http://hiderefer.com/?");
  1435. GM_setValue("Custom_rules",false);
  1436. GM_setValue("Custom_rules_text","");
  1437. GM_setValue("First_run", false);
  1438. }
  1439. //hidden settings
  1440. GM_setValue("Progress_box_pos_bottom", Progress_box_pos_bottom = GM_getValue("Progress_box_pos_bottom", 20));
  1441. GM_setValue("Progress_box_pos_right", Progress_box_pos_right = GM_getValue("Progress_box_pos_right", 10));
  1442. GM_setValue("Progress_box_opacity", Progress_box_opacity = GM_getValue("Progress_box_opacity", 85));
  1443. GM_setValue("Progress_box_background_color", Progress_box_background_color = GM_getValue("Progress_box_background_color", 'DimGray'));
  1444. GM_setValue("Progress_box_item_color", Progress_box_item_color = GM_getValue("Progress_box_item_color", 'DimGray'));
  1445. GM_setValue("Progress_box_refresh_rate", Progress_box_refresh_rate = GM_getValue("Progress_box_refresh_rate", 2000));
  1446. GM_setValue("Debug_mode", DEBUG_MODE = GM_getValue("Debug_mode", false));
  1447. //hidden settings end
  1448.  
  1449. Icon_set = GM_getValue("Icon_set", 1); //0 - no icons, 1 - cat paws, 2 - old RSLC style, 3 - New Icons,
  1450. Display_tooltip_info = GM_getValue("Display_tooltip_info", true);
  1451. Show_black_background_in_DL_links = GM_getValue("Show_black_background_in_DL_links", false);
  1452. Show_line_through_in_dead_links = GM_getValue("Show_line_through_in_dead_links", false);
  1453. Display_full_links_in_link_containers = GM_getValue("Display_full_links_in_link_containers", false);
  1454. Allow_spaces_in_DL_links = GM_getValue("Allow_spaces_in_DL_links", false);
  1455. Autocheck = GM_getValue("Autocheck", true);
  1456. Enable_Anonymizer = GM_getValue("Enable_Anonymizer", false);
  1457. Do_not_linkify_DL_links = GM_getValue("Do_not_linkify_DL_links", false);
  1458. Show_progress_stats = GM_getValue("Show_progress_stats", true);
  1459. Keyboard_functions = GM_getValue("Keyboard_functions", true);
  1460. Obsolete_file_hosts = GM_getValue("Obsolete_file_hosts", false);
  1461. Color_DL_links = GM_getValue("Color_DL_links", true);
  1462. Live_links_color = GM_getValue("Live_links_color", "Green");
  1463. Dead_links_color = GM_getValue("Dead_links_color", "#FF3300");
  1464. Temp_unavailable_links_color = GM_getValue("Temp_unavailable_links_color", "#F7EF09");
  1465. Container_links_color = GM_getValue("Container_links_color", "DarkKhaki");
  1466. Premium_links_color = GM_getValue("Premium_links_color", "DeepPink");
  1467. Ref_anonymize_service = GM_getValue("Ref_anonymize_service", "http://hiderefer.com/?");
  1468. Custom_rules = GM_getValue("Custom_rules", false);
  1469. Custom_rules_text = GM_getValue("Custom_rules_text", false);
  1470. }
  1471.  
  1472.  
  1473. // Delinkifies the links
  1474. // params:
  1475. // links -> list of links or link components (note they should be sufficiently unique to identify the link on page,
  1476. // e.g. 'uloz.to/xs68skxl8')
  1477. function delinkifySnapshot(snapshot)
  1478. {
  1479. var n = snapshot.snapshotLength;
  1480.  
  1481. while (n--)
  1482. {
  1483. thisLink = snapshot.snapshotItem(n);
  1484.  
  1485. var spanElm = document.createElement("span");
  1486. spanElm.className = thisLink.className;
  1487. spanElm.innerHTML = thisLink.innerHTML;
  1488.  
  1489. if (Display_tooltip_info)
  1490. {
  1491. spanElm.href = thisLink.href;
  1492. switch (thisLink.className){
  1493. case "alive_link": spanElm.addEventListener("mouseover", displayTooltipInfo, false); break
  1494. case "adead_link": spanElm.addEventListener("mouseover", displayTooltipError, false); break;
  1495. case "unava_link": //reserved
  1496. default:
  1497. }
  1498. }
  1499. thisLink.parentNode.replaceChild(spanElm, thisLink);
  1500. }
  1501. }
  1502.  
  1503. function processContainers()
  1504. {
  1505. var redirectorTypes = { "HTTP_302": 0,
  1506. "INNER_LINK": 1,
  1507. "THELOO_KATT_IT": 2,
  1508. "CING_BE": 3,
  1509. "ADF_LY": 4};
  1510. var cMultiloadTotal = 0;
  1511. var cMultiloadProcessed = 0;
  1512.  
  1513. var cMirrorcreatorComTotal = 0;
  1514. var cMirrorcreatorComProcessed = 0;
  1515.  
  1516. var hostRestrictionRegex = "";
  1517. var multiloadComRestriction = "";
  1518. var multiloadComRestrictionRegex;
  1519.  
  1520. //
  1521. //HANDLING REDIRECTORS START
  1522. //
  1523.  
  1524. var redirectors = new Array();
  1525. initRedirectors();
  1526.  
  1527. var redirectorsCount = redirectors.length;
  1528.  
  1529. if (redirectorsCount > 0)
  1530. {
  1531. var allRedirectorsRegex = "";
  1532.  
  1533. //linkify redirector links
  1534. for(var redirIdx = 0; redirIdx < redirectorsCount; redirIdx++)
  1535. {
  1536. allRedirectorsRegex += redirectors[redirIdx].linkRegex + "|";
  1537. }
  1538. allRedirectorsRegex = allRedirectorsRegex.replace(/\|$/, "");
  1539. linkify(allRedirectorsRegex);
  1540. //
  1541. //process redirector links
  1542. for(var redirIdx = 0; redirIdx < redirectorsCount; redirIdx++)
  1543. {
  1544. var redirectorsSnapshot = document.evaluate(redirectors[redirIdx].xpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  1545. redirectors[redirIdx].cTotal = redirectorsSnapshot.snapshotLength;
  1546.  
  1547. cLinksTotal += redirectors[redirIdx].cTotal;
  1548. var linkIdx = redirectors[redirIdx].cTotal;
  1549.  
  1550. while(linkIdx--)
  1551. {
  1552. switch(redirectors[redirIdx].type)
  1553. {
  1554. case redirectorTypes.HTTP_302: processRedirectorLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1555. case redirectorTypes.INNER_LINK: processRedirectorLinkEx(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1556. case redirectorTypes.THELOO_KATT_IT: processThelooKattItLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1557. case redirectorTypes.CING_BE: processCingBeLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1558. case redirectorTypes.ADF_LY: processAdfLyLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1559. default:
  1560. }
  1561. }
  1562. }
  1563. //
  1564. }
  1565.  
  1566. //HTTP_302
  1567. function processRedirectorLink(link, redirectorId)
  1568. {
  1569. link.className = 'container_link';
  1570.  
  1571. GM_xmlhttpRequest({
  1572. method: 'HEAD',
  1573. url: link.href,
  1574. headers: {
  1575. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1576. 'Accept': 'text/xml',
  1577. 'Referer': ""
  1578. },
  1579. onload: function(result) {
  1580. if (result.finalUrl.replace("https", "http") == link.href) // service hasn't redirected anywhere
  1581. {
  1582. processRedirectorLink(link, redirectorId);
  1583. }
  1584. else
  1585. {
  1586. redirectors[redirectorId].cProcessed++;
  1587. link.href = result.finalUrl;
  1588. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  1589. checkLinks('container_link');
  1590. }
  1591. },
  1592. onerror: function(result) { //probably caused by unresponsive filehosting
  1593. redirectors[redirectorId].cProcessed++;
  1594. link.className = 'unava_link';
  1595. cLinksProcessed++;
  1596. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  1597. checkLinks('container_link');
  1598. }
  1599. });
  1600. }
  1601. //INNER_LINK
  1602. function processRedirectorLinkEx(link, redirectorId)
  1603. {
  1604. link.className = 'container_link';
  1605. GM_xmlhttpRequest({
  1606. method: 'GET',
  1607. url: link.href,
  1608. headers: {
  1609. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1610. 'Accept': 'text/xml',
  1611. 'Referer': ""
  1612. },
  1613. onload: function(result) {
  1614. link.href = result.responseText.match(redirectors[redirectorId].innerLinkRegex)[1];
  1615. redirectors[redirectorId].cProcessed++;
  1616. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  1617. checkLinks('container_link');
  1618. }
  1619. });
  1620. }
  1621. //theloo.katt.it (wrapped safelinking.net)
  1622. function processThelooKattItLink(link, redirectorId)
  1623. {
  1624. link.className = 'container_link';
  1625. GM_xmlhttpRequest({
  1626. method: 'GET',
  1627. url: link.href,
  1628. headers: {
  1629. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1630. 'Accept': 'text/xml',
  1631. 'Referer': ""
  1632. },
  1633. onload: function(result) {
  1634. link.href = result.responseText.match(redirectors[redirectorId].innerLinkRegex)[1];
  1635. redirectors[redirectorId].cProcessed++;
  1636. //the inner links are safelinking.net links, so lets proceed with it
  1637. if (GM_getValue("Check_safelinking_dot_net_links", false))
  1638. {
  1639. processRedirectorLink(link, 0);
  1640. }
  1641. }
  1642. });
  1643. }
  1644. //adf.ly (adf.ly/go innerLink, locking mechanism)
  1645. function processAdfLyLink(link, redirectorId)
  1646. {
  1647. link.className = 'container_link';
  1648. GM_xmlhttpRequest({
  1649. method: 'GET',
  1650. url: link.href,
  1651. headers: {
  1652. 'User-agent': 'Mozilla/4.0',
  1653. 'Accept': 'text/xml',
  1654. 'Referer': ""
  1655. },
  1656. onload: function(result) {
  1657. if (result.finalUrl.match('/locked/'))
  1658. {
  1659. var delay = result.responseText.match(/countdown">(\d+)</)[1];
  1660. // GM_log(result.finalUrl + 'is locked. Repeating the request in ' + delay + 's.');
  1661. // setTimeout(function(){processAdfLyLink(link, redirectorId);}, delay * 1000);
  1662. }
  1663. else
  1664. {
  1665. // GM_log('Processing... ' + link.href);
  1666. // GM_log('Found...' + result.responseText.match(/\/go\/(\w+\/\w+)/)[1]);
  1667. var directLink = 'http://adf.ly' + result.responseText.match(/(\/go\/\w+\/\w+)/)[1];
  1668. var logToken = result.responseText.match(/flashy_(\w+)/)[1];
  1669. var users = result.responseText.match(/user=\d+&user2=\d+/);
  1670. //confirm advert
  1671. GM_xmlhttpRequest(
  1672. {
  1673. method: 'POST',
  1674. url: 'http://adf.ly/l.php',
  1675. headers: {
  1676. 'User-agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20100101 Firefox/13.0',
  1677. 'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
  1678. 'Referer': link.href
  1679. },
  1680. data: users + '&lt=' + logToken,
  1681. onload: function(result) {
  1682. //retrieve final url from .../go/... link
  1683. GM_xmlhttpRequest({
  1684. method: 'GET',
  1685. url: directLink,
  1686. headers: {
  1687. 'User-agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20100101 Firefox/13.0',
  1688. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  1689. 'Referer': link.href
  1690. },
  1691. onload: function(result) {
  1692. link.href = result.finalUrl;
  1693. redirectors[redirectorId].cProcessed++;
  1694. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  1695. checkLinks('container_link');
  1696. }
  1697. });
  1698. }
  1699. });
  1700. }
  1701. }
  1702. });
  1703. function proceedOK()
  1704. {
  1705. }
  1706. }
  1707. //MULTILOAD.CZ START
  1708. if (GM_getValue("Check_multiload_dot_cz_links", false))
  1709. {
  1710. var mlRegex = 'multiload\\.cz\/stahnout\/\\d+\/';
  1711. var mlXpath = "//a[contains(@href,'http://www.multiload.cz/stahnout')]";
  1712.  
  1713. hostRestrictionRegex = 'Upload se nezdařil|limit exceeded|probíhá reupload|';
  1714.  
  1715. if (GM_getValue("Check_hellshare_dot_com_links", false))
  1716. hostRestrictionRegex += 'hellshare|';
  1717. if (GM_getValue("Check_share_dash_rapid_dot_com_links", false))
  1718. hostRestrictionRegex += 'share-rapid\\.com|';
  1719. if (GM_getValue("Check_quickshare_dot_cz_links", false))
  1720. hostRestrictionRegex += 'quickshare\\.cz|';
  1721. if (GM_getValue("Check_czshare_dot_com_links", false))
  1722. hostRestrictionRegex += 'czshare\\.com|';
  1723. if (GM_getValue("Check_uloz_dot_to_links", false))
  1724. hostRestrictionRegex += 'uloz\\.to|';
  1725. if (GM_getValue("Check_hellspy_dot_com_links", false))
  1726. hostRestrictionRegex += 'hellspy|';
  1727. if (GM_getValue("Check_multishare_dot_cz_links", false))
  1728. hostRestrictionRegex += 'multishare\\.cz|';
  1729.  
  1730. hostRestrictionRegex = hostRestrictionRegex.replace(/\|$/, "");
  1731.  
  1732. linkify(mlRegex);
  1733.  
  1734. var mlSnapshot = document.evaluate(mlXpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  1735. var mlCount = mlSnapshot.snapshotLength;
  1736.  
  1737. if (mlCount > 0)
  1738. {
  1739. cMultiloadTotal += mlCount;
  1740.  
  1741. mlIdx = mlCount - 1;
  1742. do
  1743. {
  1744. processMultiloadLink(mlSnapshot.snapshotItem(mlIdx));
  1745. }
  1746. while(mlIdx--)
  1747. }
  1748. }
  1749. //MULTILOAD.CZ END
  1750.  
  1751.  
  1752.  
  1753. function processMultiloadLink(mlLink)
  1754. {
  1755. GM_xmlhttpRequest({
  1756. method: 'GET',
  1757. url: mlLink.href,
  1758. headers: {
  1759. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1760. 'Accept': 'text/xml',
  1761. 'Referer': ""
  1762. },
  1763. onload: function(result) {
  1764. var res = result.responseText;
  1765.  
  1766. var innerBlockRegex = /<p class="manager-linky">(?:.|\s)+?<\/p>/g;
  1767. 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;
  1768. var innerLinkRegex = /((?:Upload se nezdařil.+|https?:\/\/(?:.|\s)+|Právě probíhá reupload, buďte trpěliví\.\.\.))</;
  1769. var mlRestrictionRegex = new RegExp(hostRestrictionRegex,"g"); //what links should be displayed
  1770.  
  1771. var blocks; // blocks of links
  1772. var blockIdx;
  1773.  
  1774. mlLink.className = '';
  1775.  
  1776. if (result.status == 503) //service temporarily unavailable, repeat request in one second
  1777. {
  1778. setTimeout(function(){ processMultiloadLink(mlLink); }, 1000);
  1779. return;
  1780. }
  1781.  
  1782. blocks = res.match(innerBlockRegex);
  1783.  
  1784. if (blocks == null) //no links found, cancel further processing
  1785. {
  1786. mlLink.parentNode.appendChild(document.createTextNode(' | Požadovaný soubor neexistuje.'));
  1787. cMultiloadProcessed++;
  1788. if (cMultiloadTotal <= cMultiloadProcessed)
  1789. {
  1790. startBulkCheck('container_link');
  1791. start('container_link');
  1792. }
  1793. return;
  1794. }
  1795.  
  1796. blockIdx = blocks.length;
  1797.  
  1798. if (Display_full_links_in_link_containers)
  1799. {
  1800. var ulElm = document.createElement('ul');
  1801. ulElm.className = 'container_list'; //CSS smaller font, padding, margin, square style
  1802.  
  1803. while(blockIdx--)
  1804. {
  1805. if (blocks[blockIdx].match(mlRestrictionRegex) == null)
  1806. {
  1807. continue;
  1808. }
  1809.  
  1810. var innerLinks = blocks[blockIdx].match(innerLinksRegex);
  1811.  
  1812. var linkIdx = innerLinks.length;
  1813. while (linkIdx--)
  1814. {
  1815. var innerLink = innerLinks[linkIdx].match(innerLinkRegex)[1];
  1816.  
  1817. var liElm = document.createElement('li');
  1818.  
  1819. if (innerLink.match(/Upload se nezdařil|limit exceeded|probíhá reupload/))
  1820. {
  1821. liElm.appendChild(document.createTextNode(innerLink));
  1822. }
  1823. else
  1824. {
  1825. var aElm = document.createElement('a');
  1826. aElm.innerHTML = innerLink;
  1827. aElm.href = innerLink;
  1828. aElm.className = 'container_link';
  1829.  
  1830. liElm.appendChild(aElm);
  1831. }
  1832.  
  1833. ulElm.appendChild(liElm);
  1834. cLinksTotal++;
  1835. }
  1836. }
  1837.  
  1838. mlLink.parentNode.appendChild(ulElm);
  1839. }
  1840. else //compact view
  1841. {
  1842. mlLink.parentNode.appendChild(document.createTextNode("|"));
  1843.  
  1844. while(blockIdx--)
  1845. {
  1846. if (blocks[blockIdx].match(mlRestrictionRegex) == null)
  1847. {
  1848. continue;
  1849. }
  1850.  
  1851. var innerLinks = blocks[blockIdx].match(innerLinksRegex);
  1852.  
  1853. var linkIdx = innerLinks.length;
  1854. while (linkIdx--)
  1855. {
  1856. var innerLink = innerLinks[linkIdx].match(innerLinkRegex)[1];
  1857.  
  1858. if (innerLink.match(/Upload se nezdařil|limit exceeded|probíhá reupload/))
  1859. {
  1860. mlLink.parentNode.appendChild(document.createTextNode("----"));
  1861. }
  1862. else
  1863. {
  1864. var aElm = document.createElement('a');
  1865.  
  1866. var hostName = innerLink.match(/quickshare|hellshare|uloz\.to|multishare|hellspy|share\-rapid|czshare/);
  1867.  
  1868. //abbreviate host name
  1869. switch(hostName + ""){
  1870.  
  1871. case 'quickshare': aElm.innerHTML = 'QS'; break;
  1872. case 'hellshare': aElm.innerHTML = 'HS'; break;
  1873. case 'uloz.to': aElm.innerHTML = 'UT'; break;
  1874. case 'multishare': aElm.innerHTML = 'MS'; break;
  1875. case 'hellspy': aElm.innerHTML = 'hs'; break;
  1876. case 'share-rapid': aElm.innerHTML = 'SR'; break;
  1877. case 'czshare': aElm.innerHTML = 'CS'; break;
  1878. default: aElm.innerHTML = 'xx';
  1879.  
  1880. }
  1881.  
  1882. aElm.href = innerLink;
  1883. aElm.className = 'container_link';
  1884.  
  1885. mlLink.parentNode.appendChild(aElm);
  1886. cLinksTotal++;
  1887. }
  1888. }
  1889.  
  1890. mlLink.parentNode.appendChild(document.createTextNode("|")); //blocks delimiter
  1891.  
  1892. }
  1893. }
  1894.  
  1895. cMultiloadProcessed++;
  1896. if (cMultiloadTotal == cMultiloadProcessed) //start check when all ml links have been processed
  1897. {
  1898. if (Do_not_linkify_DL_links)
  1899. {
  1900. delinkifySnapshot(mlSnapshot);
  1901. }
  1902. startBulkCheck('container_link');
  1903. start('container_link');
  1904. }
  1905. }
  1906. });
  1907. }
  1908.  
  1909.  
  1910. if (GM_getValue("Check_mirrorcreator_dot_com_links", false))
  1911. {
  1912. var mcRegex = 'mirrorcreator\\.com/files/(\\w+)';
  1913. var mcXpath = "//a[contains(@href,'mirrorcreator.com/files')]";
  1914. var mcShortHostNames =
  1915. '?? 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';
  1916. // 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
  1917. //?????? depositfiles sendspace load.to ul.to storage.to uploadbox x7.to fileserve ?????? duckload filehook filepost jumbofiles glumbouploads
  1918. // zshare ?????? 2shared uploading ugotfile extabit oron eyvx uploadstation putlocker
  1919. // megaupload badongo megashare gamefront ifile ?????? letitbit ?????? ?????? filejungle megashares
  1920. // easy-share ?????? netload zippyshare ?????? filesonic turbobit enterupload ?????? filekeen wupload crocko fileflyer
  1921.  
  1922. linkify(mcRegex);
  1923.  
  1924. var mcSnapshot = document.evaluate(mcXpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  1925. var mcCount = mcSnapshot.snapshotLength;
  1926.  
  1927. cMirrorcreatorComTotal = mcCount;
  1928.  
  1929. if (mcCount > 0)
  1930. {
  1931. mcShortHostNames = mcShortHostNames.split(' ');
  1932. mcIdx = mcCount;
  1933. while(mcIdx--)
  1934. processMirrorcreatorLink(mcSnapshot.snapshotItem(mcIdx));
  1935. }
  1936.  
  1937. }
  1938. //MIRRORCREATOR.CZ END
  1939.  
  1940.  
  1941. //mirrorcreator.com checking works like this:
  1942. //The base URL is http://www.mirrorcreator.com/files/XXXXXXXX/filename_links
  1943. //the actual list of mirrors is at http://www.mirrorcreator.com/status.php?uid=XXXXXXXX
  1944. //the list contains links in the form of (http://www.mirrorcreator.com)/redirect/XXXXXXXX/1
  1945. //these redirector links are extracted with mcLinkBlockRegex and the pages loaded
  1946. //they contain the actual filehost links, which are extracted with mcHostRegex and displayed in a container list
  1947. function processMirrorcreatorLink(mcLink)
  1948. {
  1949. var mcURL = mcLink.href.match(mcRegex);
  1950. if(!mcURL || !mcURL[1]) return;
  1951. mcURL = 'http://www.mirrorcreator.com/status.php?uid=' + mcURL[1]; //link correction
  1952. GM_xmlhttpRequest({
  1953. method: 'GET',
  1954. url: mcURL,
  1955. headers: {
  1956. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1957. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*'+'/*;q=0.8',
  1958. 'Referer': ""
  1959. },
  1960. onload: function(mcLinkResult) {
  1961. var mcLinkRes = mcLinkResult.responseText;
  1962.  
  1963. var mcLinkBlockRegex = /(\/redirect\/\w+\/(\d+))/gi;
  1964. var mcHostRegex = /<div id="redirectlink">.*?<a href="([^"]+)"/;
  1965.  
  1966. var mcRedirectors;
  1967. var mcHostURLs = [], mcRedirectorIDs = [], mcHostsFound = 0, mcHostsRetrieved = 0, mcHostsToProcess = 0;
  1968. var m = mcLinkRes.match(mcLinkBlockRegex);
  1969. if (m)
  1970. mcHostsFound = m.length;
  1971. else
  1972. { //no files inside container
  1973. processMirrorcreatorFoundHosts(mcLink, []);
  1974. return;
  1975. }
  1976.  
  1977. var mcRedirectorURL, idx, timedOut = false;
  1978.  
  1979. var gmxhrFunc = function(mcRedirectorURL){ //Tampermonkey doesn't know neither this.url or result.finalUrl
  1980. GM_xmlhttpRequest({
  1981. method: 'GET',
  1982. url: mcRedirectorURL,
  1983. headers: {
  1984. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1985. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*'+'/*;q=0.8',
  1986. 'Referer': ""
  1987. },
  1988. onload: function(mcHostResult) {
  1989. if (timedOut) return; //too late, the list is already displayed
  1990. var mcHostRes = mcHostResult.responseText;
  1991. var mcHost = mcHostRes.match(mcHostRegex);
  1992. idx = mcHostURLs.indexOf(mcRedirectorURL);
  1993. if (mcHost && idx!=-1)
  1994. {
  1995. mcHostURLs[idx] = mcHost[1].replace(/^\s+|\s+$/g, '');
  1996. mcHostsRetrieved++;
  1997. mcHostsToProcess++;
  1998. if (mcHostsFound == mcHostsRetrieved) //this is the last one!
  1999. {
  2000. processMirrorcreatorFoundHosts(mcLink, mcHostURLs, mcRedirectorIDs);
  2001. mcHostsToProcess = 0;
  2002. }
  2003. }
  2004. } //end of onload: function
  2005. }); //end of GM_xmlhttpRequest call
  2006. };//end of var gmxhrFunc
  2007.  
  2008. while (mcRedirectors = mcLinkBlockRegex.exec(mcLinkRes))
  2009. { //load individual redirector pages
  2010. mcRedirectorURL = 'http://www.mirrorcreator.com' + mcRedirectors[1];
  2011. mcHostURLs.push(mcRedirectorURL);
  2012. mcRedirectorIDs.push(mcRedirectors[2]);
  2013. gmxhrFunc(mcRedirectorURL);
  2014. } //end of while block
  2015.  
  2016. setTimeout(function(){ //in case the last page fails to load and call the function
  2017. timedOut = true;
  2018. if (mcHostsToProcess)
  2019. processMirrorcreatorFoundHosts(mcLink, mcHostURLs);
  2020. }, 60000);
  2021.  
  2022. } //end of onload function
  2023. }); //end of GM_xmlhttpRequest call
  2024. } //end of function processMirrorcreatorLink
  2025.  
  2026.  
  2027. function processMirrorcreatorFoundHosts(mcLink, mcHostURLs, mcRedirectorIDs)
  2028. {
  2029. var aEl, liEl, docFrag;
  2030. var hostName, mcRedirectorID, trimFilename = false;
  2031. var i = mcHostURLs.length;
  2032. if (i == 0)
  2033. {
  2034. trimFilename = true;
  2035. mcLink.parentNode.insertBefore(document.createTextNode(' | No files inside container'), mcLink.nextSibling);
  2036. }
  2037. else
  2038. {
  2039. if (Display_full_links_in_link_containers)
  2040. { //full view
  2041. var wrapperEl = document.createElement('span');
  2042. wrapperEl.style.display = 'block';
  2043. var ulistEl = document.createElement('ul');
  2044. ulistEl.className = 'container_list';
  2045. while (i--)
  2046. {
  2047. liEl = document.createElement('li');
  2048. aEl = document.createElement('a');
  2049. aEl.appendChild(document.createTextNode(mcHostURLs[i]));
  2050. aEl.href = mcHostURLs[i];
  2051. aEl.className = 'container_link';
  2052. liEl.appendChild(aEl);
  2053. ulistEl.appendChild(liEl);
  2054. }
  2055. wrapperEl.appendChild(ulistEl);
  2056. mcLink.parentNode.replaceChild(wrapperEl, mcLink);
  2057. wrapperEl.insertBefore(mcLink, wrapperEl.firstChild);
  2058. }
  2059. else
  2060. { //compact view
  2061. trimFilename = true;
  2062. docFrag = document.createDocumentFragment();
  2063. docFrag.appendChild(document.createTextNode(' |'));
  2064. while (i--)
  2065. {
  2066. mcRedirectorID = mcRedirectorIDs[i];
  2067. hostName = mcHostURLs[i];
  2068. if (mcRedirectorID > mcShortHostNames.length-1 || mcShortHostNames[mcRedirectorID] == '??')
  2069. hostName = hostName.replace(/https?:\/\/(?:www\.)?([-0-9a-z]+(?:\.[-0-9a-z]+)?)\.[a-z]+\/.*/i, '$1').toUpperCase();
  2070. else
  2071. hostName = mcShortHostNames[mcRedirectorID];
  2072. aEl = document.createElement('a');
  2073. aEl.href = mcHostURLs[i];
  2074. aEl.className = 'container_link';
  2075. aEl.appendChild(document.createTextNode(hostName));
  2076. docFrag.appendChild(aEl);
  2077. docFrag.appendChild(document.createTextNode('|'));
  2078. }
  2079. mcLink.parentNode.insertBefore(docFrag, mcLink.nextSibling);
  2080. } //end of else block
  2081. } //end of else block
  2082. mcLink.className = '';
  2083. if (trimFilename)
  2084. mcLink.firstChild.nodeValue = mcLink.firstChild.nodeValue.replace(/(https?:\/\/[^\/]+\/files\/\w+\/).+/, '$1...');
  2085. cMirrorcreatorComProcessed++;
  2086. if (cMirrorcreatorComProcessed == cMirrorcreatorComTotal) //start check when all mc links have been processed
  2087. {
  2088. if (Do_not_linkify_DL_links)
  2089. delinkifySnapshot(mcSnapshot);
  2090. startBulkCheck('container_link');
  2091. start('container_link');
  2092. }
  2093. } //end of function processMirrorcreatorFoundHosts
  2094.  
  2095. containers_processed = true;
  2096.  
  2097.  
  2098. function initRedirectors()
  2099. {
  2100. function addRedirector(linkRegex, xpathEx, redirType, innerLinkRegex)
  2101. {
  2102. var redirector = new Object();
  2103. redirector.linkRegex = linkRegex;
  2104. redirector.xpath = xpathEx; //xpath expression
  2105. redirector.cProcessed = 0; //processed links count
  2106. redirector.cTotal = 0; //total links count
  2107. redirector.type = redirType; //redirectorTypes enum
  2108. redirector.innerLinkRegex = innerLinkRegex; //innerLink, null if unused
  2109. redirectors.push(redirector);
  2110. }
  2111. if (GM_getValue("Check_safelinking_dot_net_links", false))
  2112. {
  2113. addRedirector(
  2114. 'safelinking\\.net\/d\/\\w+',
  2115. "//a[contains(@href,'safelinking.net/d/')]",
  2116. redirectorTypes.HTTP_302,
  2117. null);
  2118. }
  2119. if (GM_getValue("Check_linksafe_dot_me_links", false))
  2120. {
  2121. addRedirector(
  2122. 'linksafe\\.me\/d\/\\w+',
  2123. "//a[contains(@href,'linksafe.me/d/')]",
  2124. redirectorTypes.HTTP_302,
  2125. null);
  2126. }
  2127. if (GM_getValue("Check_linkto_dot_net_links", false))
  2128. {
  2129. addRedirector(
  2130. 'linkto\\.net\/\\?\\w+\\.\\d+',
  2131. "//a[contains(@href,'linkto.net/?')]",
  2132. redirectorTypes.INNER_LINK,
  2133. /<iframe id="iframe" name="iframe" src="(.+?)\s*" frameborder="0"/);
  2134. }
  2135. if (GM_getValue("Check_theloo_dot_katt_dot_it_links", false))
  2136. {
  2137. addRedirector(
  2138. '(?:the)?loo\\.katt\\.it\/\\w+',
  2139. "//a[contains(@href,'loo.katt.it/')]",
  2140. redirectorTypes.THELOO_KATT_IT,
  2141. /Proceed to URL - <a href="(.+?)">/);
  2142. }
  2143. if (GM_getValue("Check_madlink_dot_sk_links", false))
  2144. {
  2145. addRedirector(
  2146. 'madlink\\.sk\/\\w+',
  2147. "//a[contains(@href,'madlink.sk/')]",
  2148. redirectorTypes.INNER_LINK,
  2149. /name="url" value="(.+?)\s*"\/>/);
  2150. }
  2151. if (GM_getValue("Check_adf_dot_ly_links", false))
  2152. {
  2153. addRedirector(
  2154. '(?:adf\\.ly|[u9]\\.bb|[qj]\\.gs)\/\\w+',
  2155. "//a[contains(@href,'adf.ly/') (@href,'u.bb/') or contains(@href,'9.bb/') or contains(@href,'q.gs/') or contains(@href,'j.gs/')]",
  2156. redirectorTypes.ADF_LY,
  2157. null);
  2158. }
  2159. if (GM_getValue("Check_redi_dot_re_links", false))
  2160. {
  2161. addRedirector(
  2162. 'redi\\.re\/\\w+',
  2163. "//a[contains(@href,'redi.re/')]",
  2164. redirectorTypes.HTTP_302,
  2165. null);
  2166. }
  2167. if (GM_getValue("Check_bit_dot_ly_links", false))
  2168. {
  2169. addRedirector(
  2170. 'bit\\.ly\/\\w+',
  2171. "//a[contains(@href,'bit.ly/')]",
  2172. redirectorTypes.HTTP_302,
  2173. null);
  2174. }
  2175. }
  2176.  
  2177. }
  2178.  
  2179. var bulkHosts = new Array();
  2180. var bulkHostNames = new Array();
  2181. function initBulkCheck()
  2182. {
  2183. /////////////////////////////
  2184. // Inits filehost object
  2185. /////////////////////////////
  2186. // params :
  2187. // hostName -- [string] host name (multiple domains separated with coma)
  2188. // linkRegex -- [string] link regex
  2189. // xpath -- [string] xpath expression to detect the link objects with evaluate
  2190. // blockSize -- [integer] max. number of links sent in one request, 50 if null
  2191. // corrMatch -- [regex] link correction regex (match), applied prior to corrRepl
  2192. // corrReplWhat -- [regex] link correction regex (replace)
  2193. // corrReplWith -- [string]
  2194. // splitSeparator -- [string] POSTDATA links separator, "\r\n" if null
  2195. //
  2196. // apiUrl -- [string] web linkchecker or API URL
  2197. // postData -- [string] POSTDATA of xmlhttprequest
  2198. // resLinkRegex -- [regex]
  2199. // resLiveRegex -- [regex] matches substrings containing live links in the request response
  2200. // resDeadRegex -- [regex] matches substrings containing dead links in the request response
  2201. // resUnavaRegex -- [regex] matches substrings containing unava links in the request response
  2202. // func -- [function] bulkcheck handler, genBulkCheck if null
  2203. //
  2204. //////////////////////////////
  2205. function addHost(hostName, linkRegex, xpath, blockSize, corrMatch, corrReplWhat, corrReplWith, splitSeparator,
  2206. apiUrl, postData, resLinkRegex, resLiveRegex, resDeadRegex, resUnavaRegex, func)
  2207. {
  2208. var fileHost = new Object();
  2209.  
  2210. fileHost.linkRegex = linkRegex;
  2211. fileHost.linkRegexObject = new RegExp(linkRegex, "");
  2212. fileHost.xpath = xpath;
  2213. fileHost.cFound = 0; //found links counter
  2214. fileHost.links = new Array(); //found links
  2215. if (blockSize == null)
  2216. {
  2217. fileHost.blockSize = 50;
  2218. }
  2219. else
  2220. {
  2221. fileHost.blockSize = blockSize;
  2222. }
  2223. fileHost.corrMatch = corrMatch;
  2224. fileHost.corrReplWhat = corrReplWhat;
  2225. fileHost.corrReplWith = corrReplWith;
  2226. if (splitSeparator == null)
  2227. {
  2228. fileHost.splitSeparator = "\r\n";
  2229. }
  2230. else
  2231. {
  2232. fileHost.splitSeparator = splitSeparator;
  2233. }
  2234. fileHost.apiUrl = apiUrl;
  2235. fileHost.postData = postData;
  2236. fileHost.resLinkRegex = resLinkRegex;
  2237. fileHost.resLiveRegex = resLiveRegex;
  2238. fileHost.resDeadRegex = resDeadRegex;
  2239. fileHost.resUnavaRegex = resUnavaRegex;
  2240. if (func == null)
  2241. {
  2242. fileHost.func = genBulkCheck;
  2243. }
  2244. else
  2245. {
  2246. fileHost.func = func;
  2247. }
  2248. bulkHosts.push(fileHost);
  2249. var names = hostName.split(',');
  2250. var i = names.length;
  2251. while(i--)
  2252. {
  2253. bulkHostNames[names[i]] = fileHost;
  2254. }
  2255. }
  2256. var genType1 = [
  2257. "rodfile.com", "downloadani.me", //"migahost.com",
  2258. "rarefile.net",
  2259. "filesabc.com",
  2260. "180upload.com", "verzend.be",
  2261. // "movreel.com",
  2262. "4up.me",
  2263. "file4safe.com", "filemac.com", "4upfiles.com",
  2264. "idup.in", "novafile.com", "longfiles.com",
  2265. "bitupload.com",
  2266. "uploadbaz.com"
  2267. ];
  2268. var genType2 = [ "queenshare.com",
  2269. "hulkload.com",
  2270. "amonshare.com", //"edoc.com",
  2271. ];
  2272. //xfilesharing 1.0
  2273. function addGenericType1()
  2274. {
  2275. var i = genType1.length;
  2276. while(i--)
  2277. {
  2278. if (GM_getValue("Check_" + genType1[i].replace(/\./g, "_dot_").replace(/-/g, "_dash_") + "_links", false))
  2279. {
  2280. var regexSafe = genType1[i].replace(/\./g, "\\.").replace(/-/g, "\\-");
  2281. addHost(
  2282. genType1[i].match(/[\w-]+/)[0], //hostname
  2283. regexSafe + "\/\\w+", //linkregex
  2284. "//a[contains(@href,'" + genType1[i] + "/')]", //xpath
  2285. null, //blocksize
  2286. new RegExp("(http:\/\/(?:|www\\.)" + regexSafe + "\/\\w+)",""),//, //corrmatch
  2287. null, //corrreplwhat
  2288. null, //corrreplwith
  2289. null, //separator
  2290. "http://" + genType1[i] + "/checkfiles.html", //api url
  2291. "op=checkfiles&process=Check+URLs&list=", //postdata
  2292. new RegExp("(" + regexSafe + "\/\\w+)",""), //linkregex
  2293. new RegExp("green'>http:\/\/(?:|www\.)" + regexSafe + "\/\\w+","g"), //liveregex
  2294. new RegExp("red'>http:\/\/(?:|www\.)" + regexSafe + "\/\\w+","g"), //deadregex
  2295. new RegExp("orange'>http:\/\/(?:|www\.)" + regexSafe + "\/\\w+","g"), //unavaregex
  2296. null //function delegate
  2297. )
  2298. }
  2299. }
  2300. }
  2301. //xfilesharing 2.0
  2302. function addGenericType2()
  2303. {
  2304. var i = genType2.length;
  2305. while(i--)
  2306. {
  2307. if (GM_getValue("Check_" + genType2[i].replace(/\./g, "_dot_").replace(/-/g, "_dash_") + "_links", false))
  2308. {
  2309. var regexSafe = genType2[i].replace(/\./g, "\\.").replace(/-/g, "\\-");
  2310. addHost(
  2311. genType2[i].match(/[\w-]+/)[0], //hostname
  2312. regexSafe + "\/\\w+", //linkregex
  2313. "//a[contains(@href,'" + genType2[i] + "/')]", //xpath
  2314. null, //blocksize
  2315. new RegExp("(http:\/\/(?:|www\\.)" + regexSafe + "\/\\w+)",""),//, //corrmatch
  2316. null, //corrreplwhat
  2317. null, //corrreplwith
  2318. null, //separator
  2319. "http://www." + genType2[i] + "/?op=checkfiles", //api url
  2320. "op=checkfiles&process=Check+URLs&list=", //postdata
  2321. new RegExp("(" + regexSafe + "\/\\w+)",""), //linkregex
  2322. new RegExp(regexSafe + "\/\\w+.*?<\/td>\\s*<td style=\"color:green;\">","g"), //liveregex
  2323. new RegExp(regexSafe + "\/\\w+.*?<\/td>\\s*<td style=\"color:red;\">","g"), //deadregex
  2324. new RegExp(regexSafe + "\/\\w+.*?<\/td>\\s*<td style=\"color:orange;\">","g"), //unavaregex
  2325. null //function delegate
  2326. )
  2327. }
  2328. }
  2329. }
  2330. // TEMPLATE
  2331. // if (GM_getValue("Check__dot_com_links", false))
  2332. // {
  2333. // addHost(
  2334. // "", //hostname
  2335. // "", //linkregex
  2336. // "//a[contains(@href,'.com/')]", //xpath
  2337. // null, //blocksize
  2338. // null, //corrmatch
  2339. // null, //corrreplwhat
  2340. // null, //corrreplwith
  2341. // null, //separator
  2342. // "", //api url
  2343. // "", //postdata
  2344. // /()/, //linkregex
  2345. // //liveregex
  2346. // //deadregex
  2347. // //unavaregex
  2348. // null //function delegate
  2349. // )
  2350. // }
  2351. addGenericType1();
  2352. addGenericType2();
  2353.  
  2354. if (GM_getValue("Check_myvdrive_dot_com_links", false))
  2355. {
  2356. addHost(
  2357. "myvdrive,fileserving", //hostname
  2358. "(?:fileserving|myvdrive)\\.com\/files\/[\\w-]+", //linkregex
  2359. "//a[contains(@href,'fileserving.com/files') or contains(@href,'myvdrive.com/files')]", //xpath
  2360. null, //blocksize
  2361. null, //corrmatch
  2362. null, //corrreplwhat
  2363. null, //corrreplwith
  2364. null, //separator
  2365. "http://www.myvdrive.com/Public/linkchecker#", //api url
  2366. "links=", //postdata
  2367. /(?:fileserving|myvdrive)\.com\/(files\/\w+)/, //linkregex
  2368. /icon_file_check_valid"><\/span>\s*http:\/\/www\.(?:fileserving|myvdrive)\.com\/files\/[\w-]+/g, //liveregex
  2369. /icon_file_check_(?:removed|notvalid)"><\/span>\s*http:\/\/www\.(?:fileserving|myvdrive)\.com\/files\/[\w-]+/g, //deadregex
  2370. null, //unavaregex
  2371. null //function delegate
  2372. )
  2373. }
  2374. if (GM_getValue("Check_hackerbox_dot_org_links", false))
  2375. {
  2376. addHost(
  2377. "hackerbox", //hostname
  2378. "host\\.hackerbox\\.org\/\\w+", //linkregex
  2379. "//a[contains(@href,'host.hackerbox.org/')]", //xpath
  2380. null, //blocksize
  2381. /(http:\/\/host\.hackerbox\.org\/\w+)/, //corrmatch
  2382. null, //corrreplwhat
  2383. null, //corrreplwith
  2384. null, //separator
  2385. "http://host.hackerbox.org/checkfiles.html", //api url
  2386. "op=checkfiles&process=Check+URLs&list=", //postdata
  2387. /(host\.hackerbox\.org\/\w+)/, //linkregex
  2388. /green'>http:\/\/host\.hackerbox\.org\/\w+/g, //liveregex
  2389. /red'>http:\/\/host\.hackerbox\.org\/\w+/g, //deadregex
  2390. /orange'>http:\/\/host\.hackerbox\.org\/\w+/g, //unavaregex
  2391. null //function delegate
  2392. )
  2393. }
  2394. if (GM_getValue("Check_hellshare_dot_com_links", false))
  2395. {
  2396. addHost(
  2397. "hellshare", //hostname
  2398. "(?:|download\\.(?:cz\\.|en\\.|sk\\.|)|www\\.)hellshare\\.(?:com|sk|cz|pl|hu|COM|SK|CZ|PL|HU)\/[\\w-\\.]+\/(?:[\\w-\\.]+\/|)\\d{5,}", //linkregex
  2399. "//a[contains(@href,'hellshare.')]", //xpath
  2400. 48, //blocksize
  2401. null, //corrmatch
  2402. null, //corrreplwhat
  2403. null, //corrreplwith
  2404. null, //separator
  2405. null, //api url
  2406. null, //postdata
  2407. null, //linkregex
  2408. null, //liveregex
  2409. null, //deadregex
  2410. null, //unavaregex
  2411. hellshareBulkCheck //function delegate
  2412. )
  2413. }
  2414. if (GM_getValue("Check_ncrypt_dot_in_links", false))
  2415. {
  2416. addHost(
  2417. "ncrypt", //hostname
  2418. "ncrypt\\.in\/folder\\-\\w+", //linkregex
  2419. "//a[contains(@href,'ncrypt.in/folder')]", //xpath
  2420. 100000, //blocksize
  2421. null, //corrmatch
  2422. null, //corrreplwhat
  2423. null, //corrreplwith
  2424. null, //separator
  2425. null,
  2426. null,
  2427. null,
  2428. null,
  2429. null,
  2430. null,
  2431. ncryptBulkCheck //function delegate
  2432. )
  2433. }
  2434. if (GM_getValue("Check_geupload_dot_com_links", false))
  2435. {
  2436. addHost(
  2437. "geupload,lenfile", //hostname
  2438. "(?:geupload\\.com|lenfile\\.com)\/\\w+", //linkregex
  2439. "//a[contains(@href,'geupload.com/') or contains(@href,'lenfile.com/')]", //xpath
  2440. null, //blocksize
  2441. null, //corrmatch
  2442. null, //corrreplwhat
  2443. null, //corrreplwith
  2444. "\n", //separator
  2445. 'http://geupload.com/?op=checkfiles',
  2446. 'op=checkfiles&process=Check+URLs&list=',
  2447. />http:\/\/(?:geupload|lenfile)\.com\/(\w+)/,
  2448. />http:\/\/(?:geupload|lenfile)\.com\/\w+(?:[^>]+>)<td style=\"color\:green/g,
  2449. />http:\/\/(?:geupload|lenfile)\.com\/\w+(?:[^>]+>)<td style=\"color\:red/g,
  2450. null,
  2451. null
  2452. )
  2453. }
  2454. if (GM_getValue("Check_uploadrocket_dot_net_links", false))
  2455. {
  2456. addHost(
  2457. "uploadrocket", //hostname
  2458. "(?:uploadrocket\\.net)\/\\w+", //linkregex
  2459. "//a[contains(@href,'uploadrocket.net/')]", //xpath
  2460. null, //blocksize
  2461. null, //corrmatch
  2462. null, //corrreplwhat
  2463. null, //corrreplwith
  2464. "\n", //separator
  2465. 'http://uploadrocket.net/?op=checkfiles',
  2466. 'op=checkfiles&process=Check+URLs&list=',
  2467. /uploadrocket.net\/(\w+)/,
  2468. />http:\/\/uploadrocket.net\/\w+(?:[^>]+>)<td style="color:green/g,
  2469. />http:\/\/uploadrocket.net\/\w+(?:[^>]+>)<td style="color:red/g,
  2470. null,
  2471. null //function delegate
  2472. )
  2473. }
  2474. if (GM_getValue("Check_k2s_dot_cc_links", false))
  2475. {
  2476. addHost(
  2477. "k2s,keep2s,keep2share",
  2478. "(?:(?:k2s\\.cc)|(?:keep2s\\.cc)|(?:keep2share\\.(?:cc|com)))\/file\/\\w+",
  2479. "//a[contains(@href,'k2s.cc/file/') or contains(@href,'keep2s.cc/file/') or contains(@href,'keep2share.cc/file/') or contains(@href,'keep2share.com/file/')]",
  2480. 100000, //blocksize
  2481. null, //corrmatch
  2482. null, //corrreplwhat
  2483. null, //corrreplwith
  2484. null, //separator
  2485. null,
  2486. null,
  2487. null,
  2488. null,
  2489. null,
  2490. null,
  2491. k2sBulkCheck //function delegate
  2492. )
  2493. }
  2494. if (GM_getValue("Check_fboom_dot_me_links", false))
  2495. {
  2496. addHost(
  2497. "fboom,fileboom",
  2498. "(?:(?:fboom\\.me)|(?:fileboom\\.me))\/file\/\\w+",
  2499. "//a[contains(@href,'fboom.me/file/') or contains(@href,'fileboom.me/file/')]",
  2500. 100000, //blocksize
  2501. null, //corrmatch
  2502. null, //corrreplwhat
  2503. null, //corrreplwith
  2504. null, //separator
  2505. null,
  2506. null,
  2507. null,
  2508. null,
  2509. null,
  2510. null,
  2511. fboomBulkCheck //function delegate
  2512. )
  2513. }
  2514. if (GM_getValue("Check_1fichier_dot_com_links", false))
  2515. {
  2516. addHost(
  2517. "1fichier,dl4free",
  2518. "(?:\\w{10}\\.(?:1fichier|dl4free)\\.com\/)|(?:(?:1fichier|dl4free)\\.com\/\\?\\w{10})|(?:www\\.)?\\w{6,}\\.1fichier\\.com",
  2519. "//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/?')]",
  2520. 100000, //blocksize
  2521. null, //corrmatch
  2522. null, //corrreplwhat
  2523. null, //corrreplwith
  2524. null, //separator
  2525. null,
  2526. null,
  2527. null,
  2528. null,
  2529. null,
  2530. null,
  2531. dl4free_1fichier_BulkCheck //function delegate
  2532. )
  2533. }
  2534. if (GM_getValue("Check_depositfiles_dot_com_links", false))
  2535. {
  2536. addHost(
  2537. "depositfiles,dfiles",
  2538. "(?:(?:depositfiles\\.(?:com|org|lt))|(?:dfiles\\.(?:ru|eu)))\/files\/|en/files\/\\w+",
  2539. "//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/')]",
  2540. 100000, //blocksize
  2541. null, //corrmatch
  2542. null, //corrreplwhat
  2543. null, //corrreplwith
  2544. null, //separator
  2545. null,
  2546. null,
  2547. null,
  2548. null,
  2549. null,
  2550. null,
  2551. depositfilesBulkCheck //function delegate
  2552. )
  2553. }
  2554. if (GM_getValue("Check_filepost_dot_com_links", false))
  2555. {
  2556. addHost(
  2557. "filepost,fp", //hostname
  2558. "(?:filepost\\.com\/files|fp\\.io)\/\\w+", //linkregex
  2559. "//a[contains(@href,'filepost.com/files/') or contains(@href,'fp.io/')]", //xpath
  2560. null, //blocksize
  2561. null, //corrmatch
  2562. null, //corrreplwhat
  2563. null, //corrreplwith
  2564. "\n", //separator
  2565. 'http://filepost.com/files/checker/?JsHttpRequest=0-xml',
  2566. 'urls=',
  2567. /\\\/files\\\/(\w+)/,
  2568. />http:\\\/\\\/filepost\.com\\\/files\\\/\w+(?:[^>]+>){5}(?:\\n|\\t)+<span class=\\"v\\"/g,
  2569. />http:\\\/\\\/filepost\.com\\\/files\\\/\w+(?:[^>]+>){5}(?:\\n|\\t)+<span class=\\"x\\"/g,
  2570. null,
  2571. null //function delegate
  2572. )
  2573. }
  2574. if (GM_getValue("Check_filesflash_dot_com_links", false))
  2575. {
  2576. addHost(
  2577. "filesflash", //hostname
  2578. "filesflash\\.com\/\\w+", //linkregex
  2579. "//a[contains(@href,'filesflash.com')]", //xpath
  2580. null, //blocksize
  2581. null, //corrmatch
  2582. /http:\/\//, //corrreplwhat
  2583. '', //corrreplwith
  2584. null, //separator
  2585. 'http://filesflash.com/checklinks.php',
  2586. 'submit=Go&links=',
  2587. /filesflash\.com\/(\w+)/,
  2588. /<td>filesflash\.com\/\w+<\/td>\s*<td>Available/g,
  2589. /<td>filesflash\.com\/\w+<\/td>\s*<td>(?:Invalid|Deleted|Expired|Banned)?<\/td>/g,
  2590. null,
  2591. null //function delegate
  2592. )
  2593. }
  2594. if (GM_getValue("Check_jumbofiles_dot_com_links", false))
  2595. {
  2596. addHost(
  2597. "jumbofiles", //hostname
  2598. "jumbofiles\\.com\/\\w+", //linkregex
  2599. "//a[contains(@href,'jumbofiles.com/')]", //xpath
  2600. null, //blocksize
  2601. /(http:\/\/(?:|www\.)jumbofiles\.com\/\w+)/, //corrmatch
  2602. null, //corrreplwhat
  2603. null, //corrreplwith
  2604. null, //separator
  2605. "http://jumbofiles.com/checkfiles.html", //api url
  2606. "op=checkfiles&process=Check+URLs&list=", //postdata
  2607. /(jumbofiles\.com\/\w+)/, //linkregex
  2608. /blue'>http:\/\/(?:|www\.)jumbofiles\.com\/\w+/g, //liveregex
  2609. /red'>http:\/\/(?:|www\.)jumbofiles\.com\/\w+/g, //deadregex
  2610. /orange'>http:\/\/(?:|www\.)jumbofiles\.com\/\w+/g, //unavaregex
  2611. null //function delegate
  2612. )
  2613. }
  2614. if (GM_getValue("Check_edisk_dot_cz_links", false))
  2615. {
  2616. addHost(
  2617. "edisk", //hostname
  2618. "(?:(?:muj|data)\\d*\\.|)edisk\\.(?:cz|sk|eu)\/(?:|(?:cz|sk|en|pl)\/)", //linkregex
  2619. "//a[contains(@href,'edisk.')]", //xpath
  2620. null, //blocksize
  2621. null, //corrmatch
  2622. /edisk\.\w{2}\/(?:|\w{2}\/)stahni/, //corrreplwhat
  2623. 'edisk.cz/stahni', //corrreplwith
  2624. null, //separator
  2625. 'http://www.edisk.cz/zkontrolovat-odkazy',
  2626. 'submitBtn=Zkontrolovat&checkFiles=',
  2627. /((?:download|stahn(?:i|out-soubor))\/\d+)/,
  2628. /"ano"\/>\s*<\/td>\s*<td>\s*http:\/\/.+/g,
  2629. /"ne"\/>\s*<\/td>\s*<td>\s*http:\/\/.+/g,
  2630. null,
  2631. null //function delegate
  2632. )
  2633. }
  2634. if (GM_getValue("Check_bezvadata_dot_cz_links", false))
  2635. {
  2636. GM_xmlhttpRequest( //age check skip
  2637. {
  2638. method: 'POST',
  2639. url: 'http://bezvadata.cz/vyhledavani/souhlas-zavadny-obsah',
  2640. headers: {
  2641. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  2642. 'Content-type': 'application/x-www-form-urlencoded',
  2643. 'Referer': ""
  2644. }
  2645. });
  2646. addHost(
  2647. "bezvadata", //hostname
  2648. "(?:beta\\.|)bezvadata\.cz\/stahnout\/\\d+\\w+", //linkregex
  2649. "//a[contains(@href,'bezvadata.cz')]", //xpath
  2650. null, //blocksize
  2651. null, //corrmatch
  2652. null, //corrreplwhat
  2653. null, //corrreplwith
  2654. null, //separator
  2655. 'http://bezvadata.cz/nastroje/kontrola-odkazu?do=kontrolaOdkazuForm-submit',
  2656. 'zkontrolovat=Zkontrolovat&odkazy=',
  2657. /(bezvadata\.cz\/stahnout\/\d+)/,
  2658. /bezvadata\.cz\/stahnout\/.+?<\/td>\s*<td style="background-color: #d9ffb2/g,
  2659. /bezvadata\.cz\/stahnout\/.+?<\/td>\s*<td style="background-color: #ffb2b2/g,
  2660. null,
  2661. null //function delegate
  2662. )
  2663. }
  2664. if (GM_getValue("Check_linkcrypt_dot_ws_links", false))
  2665. {
  2666. addHost(
  2667. "linkcrypt", //hostname
  2668. "linkcrypt\\.ws\/dir\/\\w+", //linkregex
  2669. "//a[contains(@href,'linkcrypt.ws/dir')]", //xpath
  2670. 100000, //blocksize
  2671. null, //corrmatch
  2672. null, //corrreplwhat
  2673. null, //corrreplwith
  2674. null, //separator
  2675. null,
  2676. null,
  2677. null,
  2678. null,
  2679. null,
  2680. null,
  2681. linkcryptBulkCheck //function delegate
  2682. )
  2683. }
  2684. if (GM_getValue("Check_linksave_dot_in_links", false))
  2685. {
  2686. addHost(
  2687. "linksave", //hostname
  2688. "linksave\\.in\/\\w+", //linkregex
  2689. "//a[contains(@href,'linksave.in')]", //xpath
  2690. 100000, //blocksize
  2691. null, //corrmatch
  2692. null, //corrreplwhat
  2693. null, //corrreplwith
  2694. null, //separator
  2695. null,
  2696. null,
  2697. null,
  2698. null,
  2699. null,
  2700. null,
  2701. linksaveBulkCheck //function delegate
  2702. )
  2703. }
  2704. if (GM_getValue("Check_videobb_dot_com_links", false))
  2705. {
  2706. addHost(
  2707. "videobb", //hostname
  2708. "videobb\\.com\/(?:video\/|watch_video\\.php\\?v=)\\w+", //linkregex
  2709. "//a[contains(@href,'videobb.com')]", //xpath
  2710. null, //blocksize
  2711. null, //corrmatch
  2712. /watch_video\.php\?v=/, //corrreplwhat
  2713. 'video/', //corrreplwith
  2714. null, //separator
  2715. 'http://www.videobb.com/link_checker.php',
  2716. 'links=',
  2717. /videobb\.com\/video\/(\w+)/,
  2718. /<td>http:\/\/(?:www\.|)videobb.com\/video\/\w+<\/td>\s+<td>.+?<\/td>\s+<td>\d+:\d+<\/td>\s+<td>Available/g,
  2719. /<td>http:\/\/(?:www\.|)videobb.com\/video\/\w+<\/td>\s+<td><\/td>\s+<td>N\/A<\/td>\s+<td>Not Available/g,
  2720. null,
  2721. null //function delegate
  2722. )
  2723. }
  2724. /* if (GM_getValue("Check_cramit_dot_in_links", false))
  2725. {
  2726. addHost(
  2727. "cramit,cramitin", //hostname
  2728. "cramit(?:\\.in|in\\.net)\/", //linkregex
  2729. "//a[contains(@href,'cramitin.net') or contains(@href,'cramit.in')]", //xpath
  2730. null, //blocksize
  2731. null, //corrmatch
  2732. null, //corrreplwhat
  2733. null, //corrreplwith
  2734. null, //separator
  2735. 'http://cramit.in/checkfiles.html',
  2736. 'op=checkfiles&process=CHECK+URL%27S&list=',
  2737. /(cramit(?:\.in|in\.net)\/\w+)/,
  2738. /green>http:\/\/(?:www\.|)cramit(?:\.in|in\.net)\/\w+/g,
  2739. /red'>http:\/\/(?:www\.|)cramit(?:\.in|in\.net)\/\w+/g,
  2740. /orange'>http:\/\/(?:www\.|)cramit(?:\.in|in\.net)\/\w+/g,
  2741. null //function delegate
  2742. )
  2743. }
  2744. if (GM_getValue("Check_turbobit_dot_net_links", false))
  2745. {
  2746. addHost(
  2747. "turbobit", //hostname
  2748. "turbobit\\.(?:net|pl)\/(?:\\w+\/|).+?\\.html", //linkregex
  2749. "//a[contains(@href,'turbobit.')]", //xpath
  2750. null, //blocksize
  2751. /(turbobit\.(?:net|pl)\/(?:\w+\/|).+?\.html)/, //corrmatch
  2752. null, //corrreplwhat
  2753. null, //corrreplwith
  2754. "\n", //separator
  2755. 'http://turbobit.net/linkchecker/csv',
  2756. 'links_to_check=',
  2757. /(turbobit\.(?:net|pl)\/\w+)/,
  2758. /turbobit\.(?:net|pl)\/.*?, 1/g,
  2759. /turbobit\.(?:net|pl)\/.*?, 0/g,
  2760. null,
  2761. null //function delegate
  2762. )
  2763. } */
  2764. if (GM_getValue("Check_filerio_dot_com_links", false))
  2765. {
  2766. addHost(
  2767. "filekeen,filerio", //hostname
  2768. //"file(?:keen|rio)\\.(?:com|in)\/\\w+\/.", //linkregex
  2769. "file(?:keen|rio)\\.(?:com|in)\/\\w+", //linkregex
  2770. "//a[contains(@href,'filekeen.com') or contains(@href,'filerio.')]", //xpath
  2771. null, //blocksize
  2772. null, //corrmatch
  2773. null, //corrreplwhat
  2774. null, //corrreplwith
  2775. null, //separator
  2776. 'http://filerio.in/checkfiles.html',
  2777. 'op=checkfiles&process=Check+URLs&list=',
  2778. /(file(?:keen|rio)\.(?:com|in)\/\w+)/,
  2779. /green'>http:\/\/(?:www\.|)file(?:keen|rio)\.(?:com|in)\/\w+/g,
  2780. /red'>http:\/\/(?:www\.|)file(?:keen|rio)\.(?:com|in)\/\w+/g,
  2781. /orange'>http:\/\/(?:www\.|)file(?:keen|rio)\.(?:com|in)\/\w+/g,
  2782. null //function delegate
  2783. )
  2784. }
  2785. if (GM_getValue("Check_share_dash_online_dot_biz_links", false))
  2786. {
  2787. addHost(
  2788. "share-online,egoshare", //hostname
  2789. "(?:share-online\\.biz|egoshare\\.com)\/(?:dl\/|download\\.php\\?id=)", //linkregex
  2790. "//a[contains(@href,'share-online.biz') or contains(@href,'egoshare.com')]", //xpath
  2791. null, //blocksize
  2792. /http:\/\/(?:www\.)?(?:share-online\.biz|egoshare\.com)\/d(?:l\/|ownload\.php\?id=)(\w+)/, //corrmatch
  2793. null, //corrreplwhat
  2794. null, //corrreplwith
  2795. "\n", //separator
  2796. 'http://api.share-online.biz/linkcheck.php',
  2797. 'links=',
  2798. /(\w+);(?:OK|NOTFOUND|DELETED)/,
  2799. /\w+;OK/g,
  2800. /\w+;(?:NOTFOUND|DELETED)/g,
  2801. null,
  2802. null //function delegate
  2803. )
  2804. }
  2805. /* if (GM_getValue("Check_quickshare_dot_cz_links", false))
  2806. {
  2807. addHost(
  2808. "quickshare", //hostname
  2809. "quickshare\\.cz\/stahnout-soubor\/\\d+", //linkregex
  2810. "//a[contains(@href,'quickshare.cz')]", //xpath
  2811. null, //blocksize
  2812. null, //corrmatch
  2813. null, //corrreplwhat
  2814. null, //corrreplwith
  2815. null, //separator
  2816. 'http://www.quickshare.cz/nastroje/link-checker',
  2817. 'linky=',
  2818. /quickshare\.cz\/stahnout-soubor\/(\d+(?::\w+)?)/,
  2819. /quickshare\.cz\/stahnout-soubor\/\d+(?::[\w\-.+$!*\/()\[\]\',~%?:@#&=\\]+)?\s*<\/a><\/td><td><img src="\/img\/ok\.gif/g,
  2820. /quickshare\.cz\/stahnout-soubor\/\d+(?::[\w\-.+$!*\/()\[\]\',~%?:@#&=\\]+)?\s*<\/td><td><img src="\/img\/nenalezeno\.gif/g,
  2821. null,
  2822. null //function delegate
  2823. )
  2824. } */
  2825. if (GM_getValue("Check_oboom_dot_com_links", false))
  2826. {
  2827. addHost(
  2828. "oboom", //hostname
  2829. "oboom\\.com\/#?\\w{8}", //linkregex
  2830. "//a[contains(@href,'oboom.com/')]", //xpath
  2831. null, //blocksize
  2832. /oboom\.com\/#?(\w{8})/, //corrmatch
  2833. null, //corrreplwhat
  2834. null, //corrreplwith
  2835. null, //separator
  2836. null,
  2837. null,
  2838. null,
  2839. null, //liveregex
  2840. null, //deadregex
  2841. null,
  2842. oboomBulk //function delegate
  2843. )
  2844. }
  2845. if (GM_getValue("Check_mega_dot_nz_links", false))
  2846. {
  2847. addHost(
  2848. "mega",
  2849. "mega(?:\\.co)?\\.nz\/#!\\w+",
  2850. "//a[contains(@href,'mega.co.nz/') or contains(@href,'mega.nz/')]",
  2851. 100000, //blocksize
  2852. null, //corrmatch
  2853. null, //corrreplwhat
  2854. null, //corrreplwith
  2855. null, //separator
  2856. null,
  2857. null,
  2858. null,
  2859. null,
  2860. null,
  2861. null,
  2862. megaBulkCheck //function delegate
  2863. )
  2864. }
  2865.  
  2866. //the same as GenType2, except api url is 'https://' instead of 'http://www.' and corrmatch is not??? needed
  2867.  
  2868. if (GM_getValue("Check_extabit_dot_com_links", false))
  2869. {
  2870. addHost(
  2871. "extabit", //hostname
  2872. "extabit\\.com\/file\/\\w+", //linkregex
  2873. "//a[contains(@href,'extabit.com')]", //xpath
  2874. null, //blocksize
  2875. null, //corrmatch
  2876. null, //corrreplwhat
  2877. null, //corrreplwith
  2878. "\n", //separator
  2879. "http://extabit.com/linkchecker.jsp", //api url
  2880. "url=", //postdata
  2881. /extabit\.com\/(file\/\w+)/, //linkregex
  2882. /extabit\.com\/file\/\w+\/[^<]+<\/a><\/td>\s*<td class="status"><span class="status_green">/g, //liveregex
  2883. /extabit\.com\/file\/\w+\/[^<]+<\/a><\/td>\s*<td class="status"><span class="status_red">/g, //deadregex
  2884. /extabit\.com\/file\/\w+\/[^<]+<\/a><\/td>\s*<td class="status"><span class="status_yellow">/g, //unavaregex
  2885. extabitBulkCheck //function delegate
  2886. )
  2887. }
  2888. if (GM_getValue("Check_junocloud_dot_me_links", false))
  2889. {
  2890. addHost(
  2891. "junocloud", //hostname
  2892. "junocloud\\.me\/\\w+", //linkregex
  2893. "//a[contains(@href,'junocloud.me')]", //xpath
  2894. null, //blocksize
  2895. null, //corrmatch
  2896. null, //corrreplwhat
  2897. null, //corrreplwith
  2898. "\n", //separator
  2899. "http://junocloud.me/checkfiles.html", //api url
  2900. "op=checkfiles&process=Check+URLs&list=", //postdata
  2901. /(junocloud\.me\/\w+)/, //linkregex
  2902. /<a href="http:\/\/junocloud\.me\/\w+[^<]+<\/a>\s*<span style="color: green/g, //liveregex
  2903. /<a href="http:\/\/junocloud\.me\/\w+[^<]+<\/a>\s*<span style="color: red/g, //deadregex
  2904. null, //unavaregex
  2905. null //function delegate
  2906. )
  2907. }
  2908. if (GM_getValue("Check_webshare_dot_cz_links", false))
  2909. {
  2910. addHost(
  2911. "webshare", //hostname
  2912. "webshare\.cz\/(?:(?:#/)?file/\\w+|\\w+-.*)", //linkregex
  2913. "//a[contains(@href,'webshare.cz')]", //xpath
  2914. 100000, //blocksize
  2915. null, //corrmatch
  2916. null, //corrreplwhat
  2917. null, //corrreplwith
  2918. null, //separator
  2919. null, //api url
  2920. null, //postdata
  2921. null, //linkregex
  2922. null, //liveregex
  2923. null, //deadregex
  2924. null, //unavaregex
  2925. webshareBulkCheck //function delegate
  2926. )
  2927. }
  2928. /////////////////////////////
  2929. // Common function delegate to send links to get checked by host linkchecker
  2930. /////////////////////////////
  2931. // If you define a new delegate, you may use following properties
  2932. // this.links [array] array of strings (link blocks). The links in each block separated with host.splitSeparator.
  2933. // this.apiUrl [string] API or web linkchecker URL
  2934. // this.postData [string] POSTDATA for POST request
  2935. // this.resLiveRegex [regex] matches live substrings in the request response
  2936. // this.resDeadRegex [regex] matches dead substrings in the request response
  2937. // this.resUnavaRegex [regex] matches unava substrings in the request response (the regex is often null!)
  2938. //
  2939. // this.resLinkRegex [regex] matches links further passed to DisplayTheCheckedLinks
  2940. //
  2941. // See the code below for standard bulkcheck handling reference.
  2942. //////////////////////////////
  2943. function genBulkCheck()
  2944. {
  2945. var blockIdx = this.links.length;
  2946. while (blockIdx--)
  2947. {
  2948. postRequest(this.apiUrl, this.postData, this.links[blockIdx],
  2949. this.resLinkRegex, this.resLiveRegex, this.resDeadRegex, this.resUnavaRegex);
  2950. }
  2951. function postRequest(api, postData, links, linkRegex, liveRegex, deadRegex, unavaRegex)
  2952. {
  2953. GM_xmlhttpRequest(
  2954. {
  2955. method: 'POST',
  2956. url: api,
  2957. headers: {
  2958. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  2959. 'Content-type': 'application/x-www-form-urlencoded',
  2960. 'Referer': api,
  2961. 'X-Requested-With': 'XMLHttpRequest'
  2962. },
  2963. data: postData + encodeURIComponent(links),
  2964. onload: function (result)
  2965. {
  2966. var res = result.responseText;
  2967. // GM_log(res);
  2968. var i;
  2969.  
  2970. var livelinks = res.match(liveRegex);
  2971. var deadlinks = res.match(deadRegex);
  2972. // GM_log(livelinks);
  2973. // GM_log(deadlinks);
  2974. if (livelinks != null)
  2975. {
  2976. i = livelinks.length - 1;
  2977. do
  2978. {
  2979. livelinks[i] = livelinks[i].match(linkRegex)[1];
  2980. }
  2981. while (i--);
  2982. DisplayTheCheckedLinks(livelinks, 'alive_link');
  2983. }
  2984.  
  2985. if (deadlinks != null)
  2986. {
  2987. i = deadlinks.length - 1;
  2988. do
  2989. {
  2990. deadlinks[i] = deadlinks[i].match(linkRegex)[1];
  2991. }
  2992. while (i--);
  2993. DisplayTheCheckedLinks(deadlinks, 'adead_link');
  2994. }
  2995.  
  2996. if (unavaRegex != null)
  2997. {
  2998. var unavalinks = res.match(unavaRegex);
  2999. if (unavalinks)
  3000. {
  3001. i = unavalinks.length - 1;
  3002. do
  3003. {
  3004. unavalinks[i] = unavalinks[i].match(linkRegex)[1];
  3005. }
  3006. while (i--);
  3007. DisplayTheCheckedLinks(unavalinks, 'unava_link');
  3008. }
  3009. }
  3010. }
  3011. });
  3012. }
  3013. }
  3014. //specialized bulkchecking handlers follow
  3015. function webshareBulkCheck()
  3016. {
  3017. var arr = this.links[0].split("\r\n");
  3018. var i = arr.length;
  3019. while(i--)
  3020. {
  3021. postRequest(arr[i]);
  3022. }
  3023. //function postRequest(api, postData, links, linkRegex, liveRegex, deadRegex, unavaRegex)
  3024. function postRequest(wsLink)
  3025. {
  3026. var id = wsLink.match(/webshare\.cz\/(?:(?:#\/)?file\/)?(\w+)/)[1];
  3027. GM_xmlhttpRequest(
  3028. {
  3029. method: 'POST',
  3030. url: "http://webshare.cz/api/file_info/",
  3031. headers: {
  3032. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  3033. 'Content-type': 'application/x-www-form-urlencoded',
  3034. 'Referer': "",
  3035. },
  3036. data: "wst=&ident=" + id,
  3037. onload: function (result)
  3038. {
  3039. var res = result.responseText;
  3040. if (res.match(/<name>.+?<\/name>/))
  3041. {
  3042. DisplayTheCheckedLinks([id], 'alive_link');
  3043. }
  3044. else
  3045. {
  3046. DisplayTheCheckedLinks([id], 'adead_link');
  3047. }
  3048. }
  3049. });
  3050. }
  3051. }
  3052. //like genBulkCheck, but extabit linkchecker only works when logged in. If not logged in, non-bulk checking has to be used.
  3053. //extabit also doesn't like requests in fast succession, so some delays are added.
  3054. function extabitBulkCheck()
  3055. {
  3056. var timeoutDelay = 0;
  3057. var blockIdx = this.links.length;
  3058. while (blockIdx--)
  3059. {
  3060. postRequest(this.apiUrl, this.postData, this.links[blockIdx],
  3061. this.resLinkRegex, this.resLiveRegex, this.resDeadRegex, this.resUnavaRegex);
  3062. }
  3063. function postRequest(api, postData, links, linkRegex, liveRegex, deadRegex, unavaRegex)
  3064. {
  3065. GM_xmlhttpRequest(
  3066. {
  3067. method: 'POST',
  3068. url: api,
  3069. headers: {
  3070. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  3071. 'Content-type': 'application/x-www-form-urlencoded',
  3072. 'Referer': api,
  3073. 'X-Requested-With': 'XMLHttpRequest'
  3074. },
  3075. data: postData + encodeURIComponent(links),
  3076. onload: function (result)
  3077. {
  3078. var res = result.responseText;
  3079. if (/id="registration_header"/.test(res)) //not logged in, have to use non-bulk
  3080. {
  3081. function geturlfunc(link, tryID) //basically the geturl function with some changes (compacted, displaythecheckedlinkS, multiple tries)
  3082. {
  3083. //GM_log(tryID + ': ' + link);
  3084. GM_xmlhttpRequest(
  3085. {
  3086. method: 'GET',
  3087. url: link,
  3088. 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': ""},
  3089. onload: function(result2)
  3090. {
  3091. var res2 = result2.responseText;
  3092. var res2Status = result.status;
  3093. if (/download-file-btn/.test(res2)) {DisplayTheCheckedLinks([link], 'alive_link'); return;}
  3094. if (/Search mirrors|id="mirrb"/.test(res2) || res2Status==404) {DisplayTheCheckedLinks([link], 'adead_link'); return;}
  3095. if (/currently unavailable|temporarily unavailable|disponible en estos momentos|vorläufig unerreichbar|Файл временно недоступен/.test(res2) || res2Status == 500 || res2Status == 503)
  3096. {
  3097. if (tryID < 7)
  3098. setTimeout(function(){geturlfunc(link,tryID+1)}, tryID * 1000 + (Math.random() * tryID * 2000));
  3099. else
  3100. {DisplayTheCheckedLinks([link], 'unava_link'); return;}
  3101. }
  3102. }
  3103. });
  3104. }
  3105. //split the hrefs and check them one by one
  3106. GM_log('Using slow extabit.com link checking. Log in to extabit to use fast bulk checking.');
  3107. links = links.split('\n');
  3108. var i = links.length;
  3109. while (i--)
  3110. {
  3111. if (links[i])
  3112. {
  3113. (function(i){setTimeout(function(){geturlfunc(links[i],1)}, timeoutDelay);})(i);
  3114. timeoutDelay += 500;
  3115. }
  3116. }
  3117. return;
  3118. }
  3119. var i;
  3120.  
  3121. var livelinks = res.match(liveRegex);
  3122. var deadlinks = res.match(deadRegex);
  3123. if (livelinks != null)
  3124. {
  3125. i = livelinks.length - 1;
  3126. do
  3127. {
  3128. livelinks[i] = livelinks[i].match(linkRegex)[1];
  3129. }
  3130. while (i--);
  3131. DisplayTheCheckedLinks(livelinks, 'alive_link');
  3132. }
  3133.  
  3134. if (deadlinks != null)
  3135. {
  3136. i = deadlinks.length - 1;
  3137. do
  3138. {
  3139. deadlinks[i] = deadlinks[i].match(linkRegex)[1];
  3140. }
  3141. while (i--);
  3142. DisplayTheCheckedLinks(deadlinks, 'adead_link');
  3143. }
  3144.  
  3145. if (unavaRegex != null)
  3146. {
  3147. var unavalinks = res.match(unavaRegex);
  3148. if (unavalinks)
  3149. {
  3150. i = unavalinks.length - 1;
  3151. do
  3152. {
  3153. unavalinks[i] = unavalinks[i].match(linkRegex)[1];
  3154. }
  3155. while (i--);
  3156. DisplayTheCheckedLinks(unavalinks, 'unava_link');
  3157. }
  3158. }
  3159. }
  3160. });
  3161. }
  3162. }
  3163. function k2sBulkCheck()
  3164. {
  3165. var arr = this.links[0].split("\r\n");
  3166. var i = arr.length;
  3167. c=0;
  3168. while(i--)
  3169. {
  3170. c++;
  3171. setTimeout(k2sRequest,c*500,arr[i]);
  3172. }
  3173. }
  3174. function k2sRequest(K2SLink)
  3175. {
  3176. var id = K2SLink.match(/\/file\/(\w+)/)[1];
  3177. K2SLink2='http://k2s.cc/file/'+id;
  3178. GM_xmlhttpRequest(
  3179. {
  3180. method: 'GET',
  3181. url: K2SLink,
  3182. headers: {
  3183. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  3184. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  3185. 'Referer': ''
  3186. },
  3187. onload: function (result)
  3188. {
  3189. var res = result.responseText;
  3190. if (res.match('div class="well2"|error 404|The system is unable to find the requested action|http://keep2share.cc/file/check.html|To avoid damaged files|This file is no longer available'))
  3191. {
  3192. DisplayTheCheckedLinks([id], 'adead_link');
  3193. return;
  3194. }
  3195. if (res.match('method="post">Displaying'))
  3196. {
  3197. DisplayTheCheckedLinks([id], 'unava_link');
  3198. return;
  3199. }
  3200. if (res.match('Premium only'))
  3201. {
  3202. DisplayTheCheckedLinks([id], 'prem_link');
  3203. return;
  3204. }
  3205. if (res.match('View File|download-file-info|div class="name fontmyriadpro"|style="color: #9fb143;"'))
  3206. {
  3207. slow_id=new RegExp('<input type="hidden" name="slow_id" value="(\\w+)">');
  3208. slID=slow_id.exec(res)[1];
  3209. GM_xmlhttpRequest(
  3210. {
  3211. method: 'POST',
  3212. url: K2SLink2,
  3213. headers: {
  3214. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  3215. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  3216. 'Content-Type': 'application/x-www-form-urlencoded',
  3217. 'Referer': K2SLink
  3218. },
  3219. data: 'slow_id='+slID+'&yt0=',
  3220. onload: function (result)
  3221. {
  3222. var newres = result.responseText;
  3223. newoversizedtest=new RegExp("Free user can't download large files.");
  3224. if (newoversizedtest.test(newres))
  3225. {
  3226. DisplayTheCheckedLinks([id], 'prem_link');
  3227. return;
  3228. }
  3229. else
  3230. {
  3231. DisplayTheCheckedLinks([id], 'alive_link');
  3232. return;
  3233. }
  3234. DisplayTheCheckedLinks([id], 'unava_link');
  3235. return;
  3236. }
  3237. });
  3238. /////////////////////end additional check for oversized links
  3239. return;
  3240. }
  3241. DisplayTheCheckedLinks([id], 'unava_link');
  3242. return;
  3243. },
  3244. onerror: function ()
  3245. {
  3246. DisplayTheCheckedLinks([id], 'unava_link');
  3247. return;
  3248. }
  3249. });
  3250. }
  3251. function fboomBulkCheck()
  3252. {
  3253. var arr = this.links[0].split("\r\n");
  3254. var i = arr.length;
  3255. c=0;
  3256. while(i--)
  3257. {
  3258. c++;
  3259. setTimeout(fboomRequest,c*500,arr[i]);
  3260. }
  3261. }
  3262. function fboomRequest(FBoomLink)
  3263. {
  3264. var id = FBoomLink.match(/\/file\/(\w+)/)[1];
  3265. FBoomLink2='http://fboom.me/file/'+id;
  3266. GM_xmlhttpRequest(
  3267. {
  3268. method: 'GET',
  3269. url: FBoomLink,
  3270. headers: {
  3271. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  3272. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  3273. 'Referer': ''
  3274. },
  3275. onload: function (result)
  3276. {
  3277. var res = result.responseText;
  3278. if (res.match('class="error-v1-title">404<|File not found or deleted|This file is no longer available'))
  3279. {
  3280. DisplayTheCheckedLinks([id], 'adead_link');
  3281. return;
  3282. }
  3283. if (res.match('method="post">Displaying'))
  3284. {
  3285. DisplayTheCheckedLinks([id], 'unava_link');
  3286. return;
  3287. }
  3288. if (res.match('only for premium members'))
  3289. {
  3290. DisplayTheCheckedLinks([id], 'prem_link');
  3291. return;
  3292. }
  3293. if (res.match('id="download-free" href="#"'))
  3294. {
  3295. slow_id=new RegExp('<a id="download-free" href="#" class="free-button btn-u" data-slow-id="(\\w+)">');
  3296. slID=slow_id.exec(res)[1];
  3297. GM_xmlhttpRequest(
  3298. {
  3299. method: 'POST',
  3300. url: FBoomLink2,
  3301. headers: {
  3302. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  3303. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  3304. 'Content-Type': 'application/x-www-form-urlencoded',
  3305. 'Referer': FBoomLink
  3306. },
  3307. data: 'slow_id='+slID,
  3308. onload: function (result)
  3309. {
  3310. var newres = result.responseText;
  3311. newoversizedtest=new RegExp("Free user can't download large files.|Downloading is not possible");
  3312. if (newoversizedtest.test(newres))
  3313. {
  3314. DisplayTheCheckedLinks([id], 'prem_link');
  3315. return;
  3316. }
  3317. else
  3318. {
  3319. DisplayTheCheckedLinks([id], 'alive_link');
  3320. return;
  3321. }
  3322. DisplayTheCheckedLinks([id], 'unava_link');
  3323. return;
  3324. }
  3325. });
  3326. /////////////////////end additional check for oversized links
  3327. return;
  3328. }
  3329. DisplayTheCheckedLinks([id], 'unava_link');
  3330. return;
  3331. },
  3332. onerror: function ()
  3333. {
  3334. DisplayTheCheckedLinks([id], 'unava_link');
  3335. return;
  3336. }
  3337. });
  3338. }
  3339. function dl4free_1fichier_BulkCheck()
  3340. {
  3341. var arr = this.links[0].split("\r\n");
  3342. var i = arr.length;
  3343. while(i--)
  3344. {
  3345. CorrectRE = new RegExp('(https?):\\/\\/(?:www\\.)?(\\w{5,15})\\.1fichier\\.com');
  3346. arr[i]=arr[i].replace(CorrectRE, '$1://1fichier.com/?$2');
  3347. gethead_dl4free_1fichier(arr[i]);
  3348. }
  3349. }
  3350. function gethead_dl4free_1fichier(link)
  3351. {
  3352. var id = link.match(/(?:1fichier|dl4free)\.com(?:\/)?\?(\w{6,})/)[1];
  3353. GM_xmlhttpRequest(
  3354. {
  3355. method: 'HEAD',
  3356. url: link,
  3357. headers: {
  3358. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  3359. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  3360. 'Referer': ''
  3361. },
  3362. onload: function (result)
  3363. {
  3364. if (result.responseHeaders.match(/Content-Disposition: attachment; filename=/))//direct download
  3365. {
  3366. DisplayTheCheckedLinks([id], 'alive_link');
  3367. return;
  3368. }
  3369. else
  3370. {
  3371. getlink_dl4free_1fichier(link);
  3372. }
  3373. return;
  3374. },
  3375. onerror: function ()
  3376. {
  3377. DisplayTheCheckedLinks([id], 'unava_link');
  3378. }
  3379. });
  3380. }
  3381. function getlink_dl4free_1fichier(link)
  3382. {
  3383. var id = link.match(/(?:1fichier|dl4free)\.com(?:\/)?\?(\w{6,})/)[1];
  3384. GM_xmlhttpRequest(
  3385. {
  3386. method: 'GET',
  3387. url: link,
  3388. headers: {
  3389. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  3390. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  3391. 'Referer': ''
  3392. },
  3393. onload: function (result)
  3394. {
  3395. var res = result.responseText;
  3396. 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>');
  3397. if (deadRegex.test(res))
  3398. {
  3399. DisplayTheCheckedLinks([id], 'adead_link');
  3400. return;
  3401. }
  3402. premiumRegex=new RegExp('only for premium users');
  3403. if (premiumRegex.test(res))
  3404. {
  3405. DisplayTheCheckedLinks([id], 'prem_link');
  3406. return;
  3407. }
  3408. 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="');
  3409. if (liveRegex.test(res))
  3410. {
  3411. DisplayTheCheckedLinks([id], 'alive_link');
  3412. return;
  3413. }
  3414. DisplayTheCheckedLinks([id], 'unava_link');
  3415. },
  3416. onerror: function ()
  3417. {
  3418. DisplayTheCheckedLinks([id], 'unava_link');
  3419. }
  3420. });
  3421. }
  3422. function depositfilesBulkCheck()
  3423. {
  3424. var arr = this.links[0].split("\r\n");
  3425. var i = arr.length;
  3426. var seqno = Math.floor(Math.random()*1000000000);
  3427. while(i--)
  3428. {
  3429. DFpostRequest(arr[i]);
  3430. }
  3431. }
  3432. function DFpostRequest(DFLink)
  3433. {
  3434. DFLink=DFLink.replace('depositfiles.lt/','depositfiles.com/');
  3435. DFLink=DFLink.replace('depositfiles.org/','depositfiles.com/');
  3436. DFLink=DFLink.replace('dfiles.ru/','depositfiles.com/');
  3437. DFLink=DFLink.replace('dfiles.eu/','depositfiles.com/');
  3438. DFLink=DFLink.replace('depositfiles.com/en/','depositfiles.com/');
  3439. var id = DFLink.match(/depositfiles\.com\/files\/(\w+)/)[1];
  3440. GM_xmlhttpRequest(
  3441. {
  3442. method: "GET",
  3443. url: "http://depositfiles.com/api/get_download_info.php?id=" + id + "&format=json",
  3444. headers: {
  3445. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3446. 'Content-Type': 'application/x-www-form-urlencoded',
  3447. 'Referer': ""
  3448. },
  3449. onload: function (result)
  3450. {
  3451. var res = result.responseText;
  3452. if (res.match('(?:no_file|file_ban)'))
  3453. {
  3454. DisplayTheCheckedLinks([id], 'adead_link');
  3455. return;
  3456. }
  3457. if (res.match('"download_li(?:nk|mit)|password_check|file_storage"'))
  3458. {
  3459. DisplayTheCheckedLinks([id], 'alive_link');
  3460. return;
  3461. }
  3462. DisplayTheCheckedLinks([id], 'unava_link');
  3463. }
  3464. });
  3465. }
  3466.  
  3467. function megaBulkCheck()
  3468. {
  3469. var arr = this.links[0].split("\r\n");
  3470. var i = arr.length;
  3471. var seqno = Math.floor(Math.random()*1000000000);
  3472. while(i--)
  3473. {
  3474. postRequest(arr[i]);
  3475. }
  3476. function postRequest(megaLink)
  3477. {
  3478. megaLink=megaLink.replace('mega.nz/','mega.co.nz/');
  3479. var id = megaLink.match(/mega\.co\.nz\/#!(\w+)(?:!\w+)?/)[1];
  3480. GM_xmlhttpRequest(
  3481. {
  3482. method: "POST",
  3483. url: 'https://g.api.mega.co.nz/cs?id=' + seqno++,
  3484. data: '[{"a":"g","p":"' + id + '","ssl": "1"}]',
  3485. headers: {
  3486. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3487. 'Content-Type': 'application/xml',
  3488. 'Referer': "https://mega.co.nz/"
  3489. },
  3490. onload: function (result)
  3491. {
  3492. var res = $.parseJSON(result.responseText.match(/\[(.+?)\]/)[1]);
  3493. if ((typeof res == "number" && (res == -9 || res == -16 || res == -6)) || res.d)
  3494. {
  3495.  
  3496. DisplayTheCheckedLinks([id], 'adead_link');
  3497. }
  3498. if (res.at)
  3499. {
  3500. DisplayTheCheckedLinks([id], 'alive_link');
  3501. }
  3502. if (res.e == "ETEMPUNAVAIL")
  3503. {
  3504. DisplayTheCheckedLinks([id], 'unava_link');
  3505. }
  3506. }
  3507. });
  3508. }
  3509.  
  3510. }
  3511.  
  3512. function oboomBulk() {
  3513. var a = [], b = [], c = [];
  3514. var array = this.links;
  3515.  
  3516. GM_xmlhttpRequest({
  3517. method: 'GET',
  3518. url: 'https://www.oboom.com/1/guestsession',
  3519. headers: {
  3520. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  3521. 'Content-type': 'application/x-www-form-urlencoded',
  3522. 'Referer': 'https://www.oboom.com',
  3523. 'X-Requested-With': 'XMLHttpRequest'
  3524. },
  3525. onload: function(result) {
  3526. var blockIdx = array.length;
  3527. var token = JSON.parse(result.responseText)[1];
  3528. while (blockIdx--) {
  3529. startCheck(array[blockIdx].split('\r\n'), token);
  3530. }
  3531. }
  3532. });
  3533.  
  3534. function startCheck(links, token) {
  3535. GM_xmlhttpRequest({
  3536. method: 'POST',
  3537. url: "https://api.oboom.com/1/info",
  3538. headers: {
  3539. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  3540. 'Content-type': 'application/x-www-form-urlencoded',
  3541. 'Referer': 'https://www.oboom.com/',
  3542. 'X-Requested-With': 'XMLHttpRequest'
  3543. },
  3544. data: "token=" + token + "&items=" + links.join(","),
  3545. onload: function(result) {
  3546. var res = JSON.parse(result.responseText)[1];
  3547. var i = res.length, s;
  3548.  
  3549. while (i--) {
  3550. s = res[i].state;
  3551. if (s == 'online') a.push(res[i].id);
  3552. else if (s == 'blocked' || s == 'abused' || s == 'lost' || s == 'not_found' || s == 'not_available'|| s == 'download_error' || s == 'offline' || s == 'expired' ) b.push(res[i].id);
  3553. else c.push(res[i].id);
  3554. }
  3555.  
  3556. if (a.length > 0) DisplayTheCheckedLinks(a, 'alive_link');
  3557. if (b.length > 0) DisplayTheCheckedLinks(b, 'adead_link');
  3558. if (c.length > 0) DisplayTheCheckedLinks(c, 'unava_link');
  3559. }
  3560. });
  3561. }
  3562. }
  3563. function linksaveBulkCheck()
  3564. {
  3565. var arr = this.links[0].split("\r\n");
  3566. var i = arr.length;
  3567. while(i--)
  3568. {
  3569. postRequest(arr[i]);
  3570. }
  3571. function postRequest(lsLink)
  3572. {
  3573. GM_xmlhttpRequest(
  3574. {
  3575. method: "GET",
  3576. url: lsLink + '-t.jpg',
  3577. headers: {
  3578. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3579. 'Accept': 'text/xml',
  3580. 'Referer': ""
  3581. },
  3582. onload: function (result)
  3583. {
  3584. var imgLen = result.responseHeaders.match(/Content-Length: (\d+)/)[1];
  3585. if (imgLen == 965) //online
  3586. {
  3587. DisplayTheCheckedLinks([lsLink], 'alive_link');
  3588. }
  3589.  
  3590. if (imgLen == 972) //offline
  3591. {
  3592. DisplayTheCheckedLinks([lsLink], 'adead_link');
  3593. }
  3594. if (imgLen == 978) //unava
  3595. {
  3596. DisplayTheCheckedLinks([lsLink], 'unava_link');
  3597. }
  3598. }
  3599. });
  3600. }
  3601.  
  3602. }
  3603. function linkcryptBulkCheck()
  3604. {
  3605. var arr = this.links[0].split("\r\n");
  3606. var i = arr.length;
  3607. while(i--)
  3608. {
  3609. postRequest(arr[i]);
  3610. }
  3611. function postRequest(lcLink)
  3612. {
  3613. GM_xmlhttpRequest(
  3614. {
  3615. method: "GET",
  3616. url: 'http://linkcrypt.ws/api.html?api=status_V1&folderKey=' + lcLink.match(/dir\/(\w+)/)[1],
  3617. headers: {
  3618. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3619. 'Accept': 'text/xml',
  3620. 'Referer': ""
  3621. },
  3622. onload: function (result)
  3623. {
  3624. var res = result.responseText;
  3625. if (res.match(/<errorCode>1101|folderStatus>[23]/)) //Offline status
  3626. {
  3627. DisplayTheCheckedLinks([lcLink], 'adead_link');
  3628. return;
  3629. }
  3630. if (res.match(/folderStatus>1/)) //Online status
  3631. {
  3632. DisplayTheCheckedLinks([lcLink], 'alive_link');
  3633. }
  3634. else
  3635. {
  3636. DisplayTheCheckedLinks([lcLink], 'unava_link');
  3637. }
  3638. }
  3639. });
  3640. }
  3641. }
  3642.  
  3643. function megashareBulkCheck()
  3644. {
  3645. var arr = this.links[0].split("\r\n");
  3646. var i = arr.length;
  3647. while(i--)
  3648. {
  3649. postRequest(arr[i]);
  3650. }
  3651. function postRequest(msLink)
  3652. {
  3653. GM_xmlhttpRequest(
  3654. {
  3655. method: "GET",
  3656. url: msLink,
  3657. headers: {
  3658. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3659. 'Content-Type': 'application/x-www-form-urlencoded',
  3660. 'Referer': ""
  3661. },
  3662. onload: function (result)
  3663. {
  3664. var prZVal = result.responseText.match(/name="(\d+prZVal)" value="(\d+)">/);
  3665. var btn3Name = result.responseText.match(/src="images\/dwn-btn3\.gif" name="(.+?)"/);
  3666. if ((prZVal == null) || (btn3Name == null))
  3667. {
  3668. return;
  3669. }
  3670. GM_xmlhttpRequest(
  3671. {
  3672. method: "POST",
  3673. url: msLink,
  3674. headers: {
  3675. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3676. 'Content-Type': 'application/x-www-form-urlencoded',
  3677. 'Referer': ""
  3678. },
  3679. data: prZVal[1] + "=" + prZVal[2] + '&' + btn3Name[1] + '.x=1&' + btn3Name[1] + '.y=1',
  3680. onload: function (result)
  3681. {
  3682. var res = result.responseText;
  3683. if (res.match(/<div id="err">/))
  3684. {
  3685. DisplayTheCheckedLinks([msLink.match(/\.com(\/\d+)/)[1]], 'adead_link');
  3686. }
  3687. else
  3688. {
  3689. DisplayTheCheckedLinks([msLink.match(/\.com(\/\d+)/)[1]], 'alive_link');
  3690. }
  3691. }
  3692. });
  3693. }
  3694. });
  3695. }
  3696. }
  3697. function ncryptBulkCheck()
  3698. {
  3699. var arr = this.links[0].split("\r\n");
  3700. var i = arr.length;
  3701. while(i--)
  3702. {
  3703. postRequest(arr[i]);
  3704. }
  3705. function postRequest(ncryptLink)
  3706. {
  3707. GM_xmlhttpRequest(
  3708. {
  3709. method: "POST",
  3710. url: 'http://ncrypt.in/api_status.php',
  3711. headers: {
  3712. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3713. 'Content-Type': 'application/x-www-form-urlencoded',
  3714. 'Referer': ""
  3715. },
  3716. data: 'link=' + encodeURI(ncryptLink),
  3717. onload: function (result)
  3718. {
  3719. var foldStatus = result.responseText.match(/(?:offline|online);/);
  3720. switch(foldStatus + ""){
  3721. case "offline;": DisplayTheCheckedLinks([ncryptLink], 'adead_link'); break;
  3722. case "online;": DisplayTheCheckedLinks([ncryptLink], 'alive_link'); break;
  3723. default: DisplayTheCheckedLinks([ncryptLink], 'unava_link');
  3724. }
  3725. }
  3726. });
  3727. }
  3728. }
  3729. function hellshareBulkCheck()
  3730. {
  3731. var links = this.links;
  3732. GM_xmlhttpRequest(
  3733. {
  3734. method: "GET",
  3735. url: 'http://www.hellshare.com',
  3736. headers: {
  3737. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3738. 'Accept': 'text/xml',
  3739. 'Referer': ""
  3740. },
  3741. onload: function (result)
  3742. {
  3743. var domain = result.responseText.match(/param_rau = "www\.hellshare\.(\w+)"/)[1];
  3744.  
  3745. var loc = 'check=Zkontrolovat+dostupnost+soubor%C5%AF&links=';
  3746. if (domain == 'sk')
  3747. loc = 'check=Skontrolova%C5%A5&links=';
  3748. if (domain == 'com')
  3749. loc = 'check=Check+availability&links=';
  3750. if (domain == 'hu')
  3751. loc = 'check=Kontrol%C3%A1lj&links=';
  3752. if (domain == 'pl')
  3753. loc = 'check=Sprawd%C5%BC+dost%C4%99pno%C5%9B%C4%87+plik%C3%B3w&links=';
  3754.  
  3755. genBulkCheck.call({ links: links,
  3756. apiUrl: 'http://www.hellshare.' + domain + '/linkchecker?do=linkChecker-linkcheckerform-submit',
  3757. postData: loc,
  3758. resLinkRegex: /hellshare\.(?:cz|com|sk|hu|pl)\/(?:[\w-\.]+\/|)([\w-\.]+\/\d{5,})/,
  3759. resLiveRegex: /OK" style="width:21px;height:20px;margin-right:10px;" \/><a href="http:\/\/download\.hellshare\.(?:cz|com|sk|hu|pl)\/(?:[\w-\.]+\/|)[\w-\.]+\/\d{5,}/g,
  3760. resDeadRegex: /<span style="color:gray">.*?<\/span> - <strong>/g,
  3761. resUnavaRegex: null
  3762. });
  3763. }
  3764. });
  3765. }
  3766. /**
  3767. * Displays check result
  3768. * @param {Array} Array of links or link fragments.
  3769. * @param {String} Check result status -> ['alive_link'|'adead_link'|'unava_link']
  3770. */
  3771. function DisplayTheCheckedLinks(links, resultStatus)
  3772. {
  3773. //(a[href*=link_1], a[href*=link_2], ..., a[href*=link_n])
  3774. var $links = $('a[href*="' + links.join('"], a[href*="') + '"]');
  3775. if (Do_not_linkify_DL_links)
  3776. { //TODO into separate jQuery function
  3777. $links.replaceWith(function(){
  3778. return '<span href="' + this.href + '">' + $(this).text() + '</span>';
  3779. });
  3780. $links = $('span[href*="' + links.join('"], span[href*="') + '"]');
  3781. }
  3782. $links.removeClass().addClass(resultStatus);
  3783. $links.each(function() {
  3784. this.href = Ref_anonymize_service + $(this).attr("href");
  3785. });
  3786. switch(resultStatus)
  3787. {
  3788. case "alive_link": cLinksAlive += $links.length;
  3789. if (Display_tooltip_info) $links.mouseover(displayTooltipInfo);
  3790. break;
  3791. case "adead_link": cLinksDead += $links.length;
  3792. if (Display_tooltip_info) $links.mouseover(displayTooltipError);
  3793. break;
  3794. case "prem_link": cLinksprem += $links.length;
  3795. if (Display_tooltip_info) $links.mouseover(displayTooltipError);
  3796. break;
  3797. case "unava_link": cLinksUnava += $links.length; break;
  3798. default:
  3799. }
  3800. cLinksProcessed += $links.length;
  3801. }
  3802. }
  3803. // starts bulkchecking
  3804. //
  3805. // params
  3806. // filterId [string] restricts link detection with passed id attribute
  3807. function startBulkCheck(filterId)
  3808. {
  3809. var cHosts = bulkHosts.length;
  3810. if (cHosts == 0) //no filehostings selected
  3811. return;
  3812. // STEP 1 linkify the links
  3813. var linkifyRegex = '';
  3814. var hostIdx = cHosts;
  3815. while(hostIdx--)
  3816. {
  3817. linkifyRegex += bulkHosts[hostIdx].linkRegex + "|";
  3818. }
  3819. linkifyRegex = linkifyRegex.replace(/\|$/, '');
  3820. linkify(linkifyRegex);
  3821. //
  3822. //STEP 2 detect link objects
  3823. var xpathAll = '';
  3824. var hostIdx = cHosts;
  3825. while(hostIdx--)
  3826. {
  3827. xpathAll += bulkHosts[hostIdx].xpath + "|";
  3828. }
  3829. xpathAll = xpathAll.replace(/\]\|\/\/a\[/g, " or ");
  3830. xpathAll = xpathAll.replace(/\]\|/, ')]');
  3831. if (filterId != null) //insert id restriction in the xpath
  3832. {
  3833. xpathAll = xpathAll.replace(/\[/, "[@class='" + filterId + "' and (");
  3834. }
  3835. else
  3836. {
  3837. xpathAll = xpathAll.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  3838. }
  3839. var links = document.evaluate(xpathAll, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  3840. if (filterId == null)
  3841. {
  3842. cLinksTotal += links.snapshotLength;
  3843. }
  3844. //
  3845. //STEP 3 bind links with hostings
  3846. var linkIdx = links.snapshotLength;
  3847. var href = null;
  3848. if (linkIdx == 0) // no links found
  3849. return;
  3850. var name;
  3851. while (linkIdx--)
  3852. {
  3853. href = links.snapshotItem(linkIdx).href;
  3854. try // DO NOT REMOVE, filters crap that went through xpath detection
  3855. {
  3856. name = gimmeHostName(href);
  3857. if (href.match(bulkHostNames[name].linkRegexObject) != null)
  3858. bulkHostNames[name].links.push(href);
  3859. }
  3860. catch(e)
  3861. {
  3862.  
  3863. }
  3864. }
  3865. //
  3866. //STEP 4 process the links for each filehosting
  3867. var hostIdx = cHosts;
  3868. var host;
  3869. var m,n;
  3870. var arr;
  3871. while (hostIdx--)
  3872. {
  3873. host = bulkHosts[hostIdx];
  3874. arr = host.links;
  3875. if (arr.length == 0) //no links for this hosting, skip
  3876. {
  3877. continue;
  3878. }
  3879. //links match corrections
  3880. if (host.corrMatch != null)
  3881. {
  3882. var idx = arr.length;
  3883. while (idx--)
  3884. {
  3885. arr[idx] = arr[idx].match(host.corrMatch)[1];
  3886. }
  3887. }
  3888. //links replace corrections
  3889. if ((host.corrReplWhat != null) && (host.corrReplWith != null))
  3890. {
  3891. var idx = arr.length;
  3892. while (idx--)
  3893. {
  3894. arr[idx] = arr[idx].replace(host.corrReplWhat, host.corrReplWith);
  3895. }
  3896. }
  3897. m = arr.length;
  3898. n = host.blockSize;
  3899. if (m > n)
  3900. {
  3901. //insert block separators (RAND_STRING) into the array
  3902. for(var i = n; i < m; i += n + 1)
  3903. {
  3904. arr.splice(i, 0, RAND_STRING);
  3905. }
  3906. }
  3907.  
  3908. host.func.call({ links: arr.join(host.splitSeparator).split(RAND_STRING),
  3909. apiUrl: host.apiUrl,
  3910. postData: host.postData,
  3911. resLinkRegex: host.resLinkRegex,
  3912. resLiveRegex: host.resLiveRegex,
  3913. resDeadRegex: host.resDeadRegex,
  3914. resUnavaRegex: host.resUnavaRegex
  3915. });
  3916. //clean up
  3917. arr.length = 0;
  3918. }
  3919. //
  3920.  
  3921. function gimmeHostName(link)
  3922. {
  3923. return link.replace(/https?:\/\/.*?http(s)?:\/\//, "http$1://").match(/https?:\/\/(?:www\.|[\w\.])*?([\w-]+)\.(?:co\.uk|co\.nz|\w+)\//)[1];
  3924. }
  3925. }
  3926. function checkLinks(filterId)
  3927. {
  3928. startBulkCheck(filterId);
  3929. start(filterId);
  3930. }
  3931.  
  3932. /**
  3933. * Initialises progress box including event binding and CSS
  3934. */
  3935. function initProgressBox()
  3936. {
  3937. if ($("#warlc-progressbox").length > 0)
  3938. return;
  3939. //progressbox css change size and color of progress box
  3940. GM_addStyle("#warlc-progressbox {position:fixed; background:DimGray;" + Progress_box_background_color +
  3941. "; opacity:" + (Progress_box_opacity / 100) +
  3942. "; bottom:" + Progress_box_pos_bottom +
  3943. "px; right:" + Progress_box_pos_right +
  3944. "px; padding:5px; font-size:20px; font-weight:bold; cursor:default;}\
  3945. \
  3946. .warlc-progressbar {text-align:center; color: DimGray; height:2px; margin-bottom:2px;}\
  3947. \
  3948. .warlc-progressitem {}\
  3949. \
  3950. .alive {color:#00FF7F; " + Live_links_color +
  3951. "; background:transparent url(" + alive_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;} .dead {color:" + Dead_links_color +
  3952. "; background:transparent url(" + adead_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;} .unava {color: " + Temp_unavailable_links_color +
  3953. "; background:transparent url(" + unava_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;} .processing {color:Black; " + Container_links_color +
  3954. "; background:transparent url(" + processing_link_gif + ") no-repeat scroll 100% 50%;padding-right:15px;} .prem {color:" + Premium_links_color +
  3955. "; background:transparent url(" + prem_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;}"
  3956. );
  3957. //
  3958. $('body').append(' <div id="warlc-progressbox">\
  3959. <div class="warlc-progressbar"></div>\
  3960. <span class="warlc-progressitem alive"></span> - \
  3961. <span class="warlc-progressitem dead"></span> - \
  3962. <span class="warlc-progressitem unava"></span> - \
  3963. <span class="warlc-progressitem prem"></span> - \
  3964. <span class="warlc-progressitem processing"></span>\
  3965. </div>');
  3966. $('#warlc-progressbox').hide().click(function(){
  3967. clearInterval(intervalId);
  3968. $(this).hide();
  3969. return false;
  3970. });
  3971. $(".warlc-progressbar").progressbar({complete: function(){
  3972. $(this).fadeOut();
  3973. clearInterval(intervalId); //stop refreshing the stats
  3974. }
  3975. })
  3976. .one('progressbarchange', function(){$('#warlc-progressbox').show();});
  3977. }
  3978. /**
  3979. * Updates progress data in progress box
  3980. */
  3981. function updateProgress()
  3982. {
  3983. $("#warlc-progressbox").attr('aria-valuenow', Math.round(((100 / cLinksTotal) * cLinksProcessed)));
  3984. if (cLinksTotal) // some links were detected on page
  3985. {
  3986. var percProgress = Math.round(((100 / cLinksTotal) * cLinksProcessed));
  3987. var $progressItems = $('#warlc-progressbox > .warlc-progressitem');
  3988. $(".warlc-progressbar").progressbar('option', 'value', percProgress);
  3989. if ((cLinksTotal - cLinksProcessed) == 0)
  3990. {
  3991. $progressItems.first().text(cLinksAlive)
  3992. .next().text(cLinksDead)
  3993. .next().text(cLinksUnava)
  3994. .next().text(cLinksprem)
  3995. .next().remove();
  3996. $('#warlc-progressbox').html($('#warlc-progressbox').html().substr(0,$('#warlc-progressbox').html().lastIndexOf(">")+1));
  3997. $('#warlc-progressbox div:first-child').remove();
  3998. }
  3999. else
  4000. {
  4001. $progressItems.first().text(cLinksAlive)
  4002. .next().text(cLinksDead)
  4003. .next().text(cLinksUnava)
  4004. .next().text(cLinksprem)
  4005. .next().text(cLinksTotal - cLinksProcessed);
  4006. }
  4007. }
  4008. }
  4009.  
  4010. function check_all_links()
  4011. {
  4012. add_WARLC_style();
  4013.  
  4014. if (Show_progress_stats)
  4015. {
  4016. initProgressBox();
  4017. intervalId = setInterval(function(){updateProgress();}, Progress_box_refresh_rate);
  4018. }
  4019.  
  4020. startBulkCheck(null);
  4021. start(null);
  4022.  
  4023. if (!containers_processed)
  4024. {
  4025. processContainers();
  4026. }
  4027. }
  4028.  
  4029. //Copies all found dead links to clipboard - right now for Scriptish only
  4030. function copy_dead_to_clipboard()
  4031. {
  4032. initClipBoardTools();
  4033.  
  4034. var deadlinksxpath = "//.[@class='adead_link']";
  4035.  
  4036. var foundlinks = document.evaluate(deadlinksxpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4037. var foundlinkstext = '';
  4038.  
  4039. var foundlinkIdx = foundlinks.snapshotLength;
  4040.  
  4041. while(foundlinkIdx--)
  4042. {
  4043. if (foundlinks.snapshotItem(foundlinkIdx).innerHTML != ' x')
  4044. foundlinkstext += foundlinks.snapshotItem(foundlinkIdx).innerHTML.replace(/\[\/hide:\w+\]/,"") + '\n';
  4045. }
  4046.  
  4047. unsafeWindow.copyToClipboard(foundlinkstext);
  4048. }
  4049.  
  4050. function toggle_autocheck()
  4051. {
  4052. var currentState = GM_getValue("Autocheck", false);
  4053. GM_setValue("Autocheck", !currentState);
  4054.  
  4055. if (currentState == true)
  4056. {
  4057. sendMessage('Autocheck disabled', 'red');
  4058. }
  4059. else
  4060. {
  4061. sendMessage('Autocheck enabled', 'SpringGreen');
  4062. }
  4063. }
  4064. function toggle_Enable_Anonymizer()
  4065. {
  4066. var currentState = GM_getValue("Enable_Anonymizer", false);
  4067. GM_setValue("Enable_Anonymizer", !currentState);
  4068.  
  4069. if (currentState == true)
  4070. {
  4071. GM_setValue("Ref_anonymize_service", "");
  4072. sendMessage('Anonymizer Disabled', 'red');
  4073. }
  4074. else
  4075. {
  4076. GM_setValue("Ref_anonymize_service", "http://hiderefer.com/?");
  4077. sendMessage('Anonymizer Enabled', 'SpringGreen');
  4078. }
  4079. }
  4080.  
  4081. function KeyDownHandler(event)
  4082. {
  4083. var kcode = (event.keyCode) ? event.keyCode : event.which;
  4084. if (event.ctrlKey && event.altKey)
  4085. {
  4086. switch(kcode)
  4087. {
  4088. case 65 : check_all_links(); break;
  4089. case 67 : configuration(); break;
  4090. case 68 : copy_dead_to_clipboard(); break;
  4091. case 87 : toggle_autocheck(); break;
  4092. case 90 : toggle_Enable_Anonymizer(); break;
  4093. }
  4094. }
  4095. }
  4096.  
  4097. //
  4098. //
  4099. // SCRIPT EXECUTION START POINT
  4100. //
  4101. //
  4102. // Safari specific GM_getResourceText override
  4103. if (navigator.userAgent.indexOf('Safari') != -1 && navigator.userAgent.indexOf('Chrome') == -1)
  4104. {
  4105. GM_getResourceText = function(res) {
  4106. var $cssText = GM_getValue("jquery_css", "");
  4107. if ($cssText == "")
  4108. {
  4109. GM_xmlhttpRequest(
  4110. {
  4111. method: 'GET',
  4112. url: 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css',
  4113. onload: function (result)
  4114. {
  4115. GM_setValue("jquery_css", result.responseText);
  4116. window.location.reload();
  4117. }
  4118. });
  4119. }
  4120. else
  4121. {
  4122. return $cssText;
  4123. }
  4124. }
  4125. }
  4126. var jQueryUICSS = GM_getResourceText("jQueryUICSS");
  4127. GM_addStyle(jQueryUICSS);
  4128. //init the stuff
  4129. setVariables();
  4130. initBulkCheck();
  4131. //init info boxes
  4132. messageBox.style.position = 'fixed';
  4133. messageBox.style.top = '20px';
  4134. messageBox.style.left = '10px';
  4135. messageBox.style.opacity = '0.85';
  4136. messageBox.style.background = 'DimGray';
  4137. messageBox.style.fontSize = '36px';
  4138. document.body.appendChild(messageBox);
  4139.  
  4140. //register GM menu commands & keyboard shortcut event handler
  4141. if (Keyboard_functions)
  4142. {
  4143. $(document).keydown(KeyDownHandler);
  4144. GM_registerMenuCommand("[W.A.R. Links Checker] Configuration (" + first_key_keycodename + "+" + second_key_keycodename + "+" + String.fromCharCode(CONFIGURATION_KEYCODE) + ")", configuration);
  4145. GM_registerMenuCommand("[W.A.R. Links Checker] Check The Links In This Page (" + first_key_keycodename + "+" + second_key_keycodename + "+" + String.fromCharCode(CHECK_ALL_LINKS_KEYCODE) + ")", check_all_links);
  4146. }
  4147. else
  4148. {
  4149. GM_registerMenuCommand("[W.A.R. Links Checker] Configuration", configuration);
  4150. GM_registerMenuCommand("[W.A.R. Links Checker] Check The Links In This Page", check_all_links);
  4151. }
  4152.  
  4153. //start linkchecking
  4154. if (Autocheck)
  4155. {
  4156. $(document).ready(check_all_links);
  4157. }
  4158.  
  4159. //
  4160. //
  4161. // SCRIPT EXECUTION END POINT
  4162. //
  4163. //
  4164.  
  4165. //shows configuration box
  4166. function configuration()
  4167. {
  4168.  
  4169. //prevent multiple creating of config window
  4170. if ($("#hideshow").length)
  4171. {
  4172. $("#hideshow").show();
  4173. return;
  4174. }
  4175.  
  4176. var configcss = '\
  4177. .popup_block .popup fieldset{\
  4178. padding: 1%;\
  4179. border-style: solid;\
  4180. border-width: 1px;\
  4181. border-color: gray;\
  4182. margin-bottom: 1px;\
  4183. }\
  4184. #h3hideshowtitle{\
  4185. font-size: 2em;\
  4186. }\
  4187. #h3hideshow{\
  4188. font-size: 1.5em;\
  4189. }\
  4190. #imghideshow {\
  4191. border: none;\
  4192. }\
  4193. #plusimage{\
  4194. display:inline;\
  4195. }\
  4196. #hideshow {\
  4197. position: fixed;\
  4198. width: 100%;\
  4199. height: 100%;\
  4200. top: 0;\
  4201. left: 0;\
  4202. font-size:12px;\
  4203. z-index:2147483645;\
  4204. text-align:left;\
  4205. }\
  4206. #fade {\
  4207. background: #000;\
  4208. position: fixed;\
  4209. width: 100%;\
  4210. height: 100%;\
  4211. opacity: .80;\
  4212. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";\
  4213. left: 0;\
  4214. z-index: 10;\
  4215. }\
  4216. .popup_block {\
  4217. font-family:verdana;\
  4218. color:black;\
  4219. background: #ddd;\
  4220. padding: 10px 20px;\
  4221. border: 2px solid DarkOrange;\
  4222. float: left;\
  4223. width: 700px;\
  4224. position: absolute;\
  4225. top: 7%;\
  4226. left: 50%;\
  4227. bottom: 7%;\
  4228. margin: 0 0 0 -350px;\
  4229. -moz-border-radius:10px;\
  4230. z-index: 100;\
  4231. \
  4232. }\
  4233. .popup_block .popup {\
  4234. float: left;\
  4235. width: 100%;\
  4236. background: #fff;\
  4237. margin: 10px 0;\
  4238. padding: 0px 0 0px;\
  4239. border-left: 1px solid #bbb;\
  4240. border-top: 1px solid #bbb;\
  4241. border-right: 1px solid #bbb;\
  4242. }\
  4243. #h3hideshow{\
  4244. margin: 1px 0 0px;\
  4245. padding: 1px 10px;\
  4246. border-bottom: 1px solid #bbb;\
  4247. font-size: 1.5em;\
  4248. font-weight: normal;\
  4249. cursor:pointer;\
  4250. background:#DDDDDD none repeat scroll 0 0;\
  4251. }\
  4252. #h3hideshow:hover{\
  4253. background:#C0BEBE none repeat scroll 0 0;\
  4254. }\
  4255. #h3hideshowtitle{\
  4256. margin: 2px 0 0px;\
  4257. padding: 7px 10px;\
  4258. border-bottom: 1px solid #bbb;\
  4259. font-size: 1.5em;\
  4260. font-weight: normal;\
  4261. }\
  4262. .popup_block .popup a {\
  4263. color:DarkSkyBlue;\
  4264. text-decoration:none;\
  4265. }\
  4266. .popup p {\
  4267. padding: 1px 10px;\
  4268. margin: 0px 0;\
  4269. -x-system-font:none;\
  4270. font-family:verdana,geneva,lucida,"lucida grande",arial,helvetica,sans-serif;\
  4271. font-size:10pt;\
  4272. font-size-adjust:none;\
  4273. font-stretch:normal;\
  4274. font-style:normal;\
  4275. font-variant:normal;\
  4276. font-weight:normal;\
  4277. line-height:normal;\
  4278. }\
  4279. #sites {\
  4280. padding: 1px 10px;\
  4281. margin: 0px 0;display:inline-block;width:16em;\
  4282. }\
  4283. #dev_ver {\
  4284. color: #00FF00;\
  4285. background: Black;\
  4286. text-align: right;\
  4287. }\
  4288. #sites_suspended {\
  4289. padding: 1px 10px;\
  4290. margin: 0px 0;display:inline-block;width:16em;\
  4291. text-decoration: line-through;\
  4292. }\
  4293. .popup img.cntrl {\
  4294. position: absolute;\
  4295. right: -15px;\
  4296. top: -15px;\
  4297. }\
  4298. #bulk {\
  4299. font-size:8pt;\
  4300. color:orange;\
  4301. padding: 1px 10px;\
  4302. margin: 0px 0;\
  4303. display:inline-block;\
  4304. width:100px;\
  4305. }\
  4306. #note {\
  4307. font-size:7pt;\
  4308. color:gray;\
  4309. padding: 1px 10px;\
  4310. margin: 0px 0;display:inline-block;\
  4311. min-width:100px;\
  4312. }\
  4313. #rednote {\
  4314. font-size:7pt;\
  4315. color:red;\
  4316. padding: 1px 10px;\
  4317. margin: 0px 0;display:inline-block;\
  4318. }\
  4319. #configinfo {\
  4320. font-size:8pt;\
  4321. color:gray;\
  4322. padding: 1px 10px;\
  4323. margin: 0px 0;display:inline-block;width:60em;\
  4324. }\
  4325. #refAnonymizer, #inputColorLive, #inputColorprem, #hostSearchBox2, #hostSearchBox, #inputColorDead, #inputColorTemp, #inputColorCont, #selectAllButton, #selectNoneButton, #invertButton, #selectAllButton2, #selectNoneButton2, #invertButton2 {\
  4326. color:black;\
  4327. border-style: solid;\
  4328. border-width: 1px;\
  4329. border-color: gray;\
  4330. }\
  4331. #h3hideshowcontent {\
  4332. min-height:220px;\
  4333. max-height:220px;\
  4334. overflow:auto;\
  4335. display: none;\
  4336. padding: 10px 10px;\
  4337. }\
  4338. #specinfo{\
  4339. font-size:14px;\
  4340. }\
  4341. .warlc-ui-tab {\
  4342. height:300px;\
  4343. overflow:auto;\
  4344. }\
  4345. #warlcsitelist2, #warlcsitelist1 {\
  4346. height:220px;\
  4347. border-top: 1px solid #ddd;\
  4348. padding-top: 5px;\
  4349. overflow:auto;\
  4350. }\
  4351. input:hover+label {\
  4352. background:#F1F77C;\
  4353. font-size:110%;\
  4354. }\
  4355. ';
  4356.  
  4357. GM_addStyle(configcss);
  4358.  
  4359. var customRulesRefHTML =
  4360. '\
  4361. <br>\
  4362. A custom rule consists of <b>commands</b>. A command must be on its own line and in this form:<br>\
  4363. <b>@keyword</b> <i>parameter</i>\
  4364. <br><br>\
  4365. Empty lines, lines containing only whitespace and lines starting with // are ignored. Whitespace before and after a keyword is also ignored. Keywords are not case sensitive. \
  4366. <br><br>\
  4367. A special type of keyword is <b>@customrule</b> and its forms. This command marks the start of a new rule definition and also the rule type.\
  4368. Its <i>parameter</i> is the name of the rule. The name can contain letters, digits, periods, dashes and underscores and can be up to 30 characters long.\
  4369. At this point, there are no other restrictions for rule naming, however, in future versions, the name can be used to identify and catalogize custom rules.\
  4370. Therefore it is strongly recommended to use host names like <i>example.com</i> or <i>filehost.co.uk</i>. If the name is invalid, previous rule is saved,\
  4371. but all commands until the next valid @customrule are ignored.<br><br>\
  4372. Available forms and types:\
  4373. <ul>\
  4374. <li><b>@customrule</b> <i>name</i> - Classic checking. To determine whether a link is alive or dead, it is loaded and searched for specific patterns.\
  4375. <li><b>@customrule_headers</b> <i>name</i> - Only headers are loaded. Use for direct download hosts (e.g. if you are a paying member), where classic checking would silently download the whole file.\
  4376. <li><b>@customrule_obsolete</b> <i>name</i> - Nothing is loaded and no search patterns are needed. Links matching this rule are immediately deemed dead.\
  4377. <li><b>@#customrule</b>\, <b>@#customrule_headers</b>\, <b>@#customrule_obsolete</b> - write # after @ to quickly disable the whole rule. It is still parsed and checked for errors, but not used.\
  4378. </ul>\
  4379. Other available commands:<br>\
  4380. (Note: There can be more than 1 (up to 10) of these commands per rule. In that case, any of them will work.)\
  4381. <ul>\
  4382. <li><b>@baseurl</b> <i>url_pattern</i> - required. Used to find links for the rule. <i>url_pattern</i> must be the constant part of the url before, including and after the first slash.\
  4383. It can also specify multiple (up to 10) Top Level Domains (.com, .net etc.)<br>\
  4384. <ul>examples:<br>\
  4385. <li>good: <i>filehost.com/download/</i><br>\
  4386. <li>good: <i>download.filehost.net/?d=</i><br>\
  4387. <li>good: <i>filehost. com net co.uk /</i> - multiple TLDs (note the spaces before, between and after TLDs)<br>\
  4388. <li>ok: <i>filehost.com/</i> - works, but will also find links like filehost.com/login etc. Sometimes it\'s unavoidable though.<br>\
  4389. <li>bad: <i>d8523.filehost.com/</i> - d8523 probably is not constant<br>\
  4390. <li>bad: <i>filehost.com/3bfiq5d1</i> - 3bfiq5d1 probably is not constant<br>\
  4391. <li>bad: <i>filehost.com</i> - no slash<br>\
  4392. </ul>\
  4393. \
  4394. <li><b>@alivematch</b> <i>pattern</i> - ignored for type OBSOLETE, required for others. If <i>pattern</i> is found in the server\'s response, the link is deemed alive.\
  4395. Two or more spaces in the pattern will match any whitespace (spaces, tabulators, newlines). <i>&lt;div&gt;&nbsp;&nbsp;&lt;p&gt;</i> will match \
  4396. &lt;div&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;p&gt; even if there are new lines, tabulators etc.\
  4397. <li><b>@deadmatch</b> <i>pattern</i> - ignored for OBSOLETE, required for others. (For HEADERS some servers return 404 Error \
  4398. which is automatically used to deem the link dead and therefore <i>pattern</i> is never used. In that case, just write some rubbish there.)\
  4399. Two spaces again match any whitespace.\
  4400. <li><b>@unavamatch</b> <i>pattern</i> - optional, ignored for OBSOLETE and HEADERS. If found, the link is deemed temporarily unavailable.\
  4401. Two spaces again match any whitespace.\
  4402. <li><b>@alivelink</b> <i>url</i> - optional, ignored for OBSOLETE. It\'s not really a part of the rule, it\'s just an example link to test the rule. \
  4403. <li><b>@deadlink</b> <i>url</i> - optional. Example dead link.\
  4404. </ul>\
  4405. \
  4406. ';
  4407.  
  4408. //close image and css taken from = http://www.sohtanaka.com/web-design/examples/css-popup icon_close.png;
  4409. var configurationinnerHTML =
  4410. '<div id="fade"></div>\
  4411. <div class="popup_block">\
  4412. <div class="popup">\
  4413. <a href="#"><img id="imghideshow" title="Close" class="cntrl" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAfCAYAAAD0ma06AAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAY1SURBVHjapFZbbFRVFN0zd6Yz08dMoUNf9EGxUItJK62I4AOJEYiQoqE+0OgHCiqG+PgQozH6ofyIJiYEMRqNJpggHySlrRM+hCAtajAUaGgEi9BBSilMO0PnfWeOa597bjt9AEVvsubOPWefs/br7H0sQgj6P4/FYrk9+WkSuoAHgCrgLvV9DLgMdID02rQZmfAmaAJaxS2edDr9s67rL7EB/9XCUuALoEl+pZJEvTAo8A9s6iVKxojKYWheAWxuIMr2GGKp1KHh4eF3vF4vW59me6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LzyFV2smiukr7Siw4WqGvZhlqznxhX7cTzmXayA234c33lqFcjneIqZfxX1TJr+t4dWtcUGXgusNgaPLwvQpgJjHcK8EPOAM6J7+vblEfK0fZ9RoqwAnpTnznsN/2jOkuvOUNvmpXmMTrrQuoJWGj36bAugAMhSo2cnsgUil2fb5LRHi1/jRGlJHc5zenaV7p0PyRB7XkR7vfa4IlZtT69fbVKywyafh8HODHN+WfhH4FnD2alN1B7AdOAcMeT29HfiZJ5oZ3sHrgAeBvcCANzBsHu7Ohe2/AwDnNnxcIIMIUgAAAABJRU5ErkJggg=="></img>&nbsp;W.A.R. Links Checker Customized Premium Link version Configuration</div>\
  4415. <div id="warlc-conf-tabs">\
  4416. <ul>\
  4417. <li><a href="#tabs-1">Filehostings</a></li>\
  4418. <li><a href="#tabs-2">Containers</a></li>\
  4419. <li><a href="#tabs-5">Custom rules</a></li>\
  4420. <li><a href="#tabs-3">Settings</a></li>\
  4421. <li><a href="#tabs-4">About</a></li>\
  4422. </ul>\
  4423. <div id="tabs-1" class="warlc-ui-tab">\
  4424. <div class="warlc-ui-buttonset">\
  4425. <input type="button" class="warlc-ui-select-all" value="Select All">\
  4426. <input type="button" class="warlc-ui-select-none" value="Select None">\
  4427. <input type="button" class="warlc-ui-select-invert" value="Invert">\
  4428. </div><br>\
  4429. <div>Search: <input type="textbox" id="hostSearchBox" value=""></div><br>\
  4430. <div id="warlcsitelist1"><span>Empty</span></div>\
  4431. </div>\
  4432. <div id="tabs-2" class="warlc-ui-tab">\
  4433. <div class="warlc-ui-buttonset">\
  4434. <input type="button" class="warlc-ui-select-all" value="Select All">\
  4435. <input type="button" class="warlc-ui-select-none" value="Select None">\
  4436. <input type="button" class="warlc-ui-select-invert" value="Invert">\
  4437. </div><br>\
  4438. <div>Search: <input type="textbox" id="hostSearchBox2" value=""></div><br>\
  4439. <div id="warlcsitelist2"><span>Empty</span></div>\
  4440. </div>\
  4441. <div id="tabs-5" class="warlc-ui-tab">\
  4442. <div class="warlcsettings">\
  4443. <fieldset><input type="checkbox" id="Custom_rules"> Enable custom rules <div id="bulk">EXPERIMENTAL</div></fieldset>\
  4444. <br>\
  4445. <div>Edit custom rules: \
  4446. <a href="#" id="showCustomRulesReference">(<b>Click here to show/hide the reference</b>)</a>\
  4447. <div id="customRulesReference" style="display:none;">'
  4448. + customRulesRefHTML + '\
  4449. </div>\
  4450. <textarea style="width:100%;height:200px;" id="Custom_rules_text"></textarea>\
  4451. </div>\
  4452. </div>\
  4453. </div>\
  4454. <div id="tabs-3" class="warlc-ui-tab">\
  4455. <div class="warlcsettings">\
  4456. <fieldset>\
  4457. <p><input type="checkbox" id="Keyboard_functions"> Enable keyboard shortcuts</p>\
  4458. <div id="configinfo">' + first_key_keycodename + '+' + second_key_keycodename + '+' + CONFIGURATION_KEY + ' = Configuration <br/>' + first_key_keycodename + '+' + second_key_keycodename + '+' + CHECK_ALL_LINKS_KEY + ' = Check all the links' + '<br/>' + first_key_keycodename + '+' + second_key_keycodename + '+' + copy_to_dead_key + ' = Copy found dead links to clipboard' + '<br/>' + first_key_keycodename + '+' + second_key_keycodename + '+' + toggle_autocheck_key + ' = Autocheck ON/OFF' + '<br/>' + first_key_keycodename + '+' + second_key_keycodename + '+' + toggle_Enable_Anonymizer_key + ' = Anonymizer ON/OFF' + '</div>\
  4459. </fieldset>\
  4460. <fieldset>\
  4461. <p><input type="checkbox" id="Color_DL_links"> Color DL links</p>\
  4462. <div id="sites"><label for="inputColorLive">Live links color</label><input type="text" id="inputColorLive" style="background:' + Live_links_color + ';" value="' + Live_links_color + '"></div>\
  4463. <div id="sites"><label for="inputColorDead">Dead links color</label><input type="text" id="inputColorDead" style="background:' + Dead_links_color + ';" value="' + Dead_links_color + '"></div><br>\
  4464. <div id="sites"><label for="inputColorTemp">Temp. unavailable</label><input type="text" id="inputColorTemp" style="background:' + Temp_unavailable_links_color + ';" value="' + Temp_unavailable_links_color + '"></div>\
  4465. <div id="sites"><label for="inputColorCont">Container links color</label><input type="text" id="inputColorCont" style="background:' + Container_links_color + ';" value="' + Container_links_color + '"></div><br>\
  4466. <div id="sites"><label for="inputColorprem">Premium links color</label><input type="text" id="inputColorprem" style="background:' + Premium_links_color + ';" value="' + Premium_links_color + '"></div>\
  4467. <div id="configinfo">For no color leave a field blank.<br>Standard HTML color names are supported. See <a href="http://www.w3schools.com/html/html_colornames.asp">w3schools.com</a> for more info.</div><br>\
  4468. <p><input type="checkbox" id="Show_line_through_in_dead_links"> Show line through in dead links</p>\
  4469. <p><input type="checkbox" id="Show_black_background_in_DL_links"> Show black background in DL links</p>\
  4470. <p><input type="checkbox" id="Do_not_linkify_DL_links"> Do NOT linkify DL links</p>\
  4471. <p><input type="checkbox" id="Allow_spaces_in_DL_links"> Allow spaces in DL links<br><div id="configinfo">Note: All links must end with a new line!</div></p>\
  4472. <p><input type="checkbox" id="Display_full_links_in_link_containers"> Display full links in link containers</p><br>\
  4473. <fieldset>\
  4474. <p><input type="radio" name="warlciconset" value="0"> No icons</p>\
  4475. <p><input type="radio" name="warlciconset" value="1"> <img src=" ' + PAW_ICON_GREEN + '"> <img src=" ' + PAW_ICON_RED + '"> <img src=" ' + PAW_ICON_YELLOW + '"> <img src=" ' + PAW_ICON_PINK + '"></p>\
  4476. <p><input type="radio" name="warlciconset" value="2"> <img src=" ' + RSLC_ICON_GREEN + '"> <img src=" ' + RSLC_ICON_RED + '"> <img src=" ' + RSLC_ICON_YELLOW + '"> <img src=" ' + RSLC_ICON_PINK + '"></p>\
  4477. <p><input type="radio" name="warlciconset" value="3"> <img src=" ' + NEW_ICON_GREEN + '"> <img src=" ' + NEW_ICON_RED + '"> <img src=" ' + NEW_ICON_YELLOW + '"> <img src=" ' + NEW_ICON_PINK + '"></p>\
  4478. </fieldset>\
  4479. </fieldset>\
  4480. <fieldset>\
  4481. <div id="sites"><input type="checkbox" id="Autocheck"> Autocheck</div><br><div id="configinfo">Script starts check automatically.</div><br>\
  4482. </fieldset>\
  4483. <fieldset>\
  4484. <div id="sites"><input type="checkbox" id="Show_progress_stats"> Show progress stats</div><br>\
  4485. </fieldset>\
  4486. <fieldset>\
  4487. <div id="sites"><input type="checkbox" id="Display_tooltip_info"> Display tooltip info</div><div id="bulk"></div><br><div id="configinfo">Note: File name, file size, error messages etc.</div><br>\
  4488. </fieldset>\
  4489. <fieldset>\
  4490. <p><input type="checkbox" id="Enable_Anonymizer"> Enable Anonymizer</div><div id="bulk">EXPERIMENTAL Note: Checkbox does not work use CTRL+ALT+Z.</p>\
  4491. <div id="sites"><label for="refAnonymizer">Refererer anonymizing service</label><input type="text" id="refAnonymizer" value="' + Ref_anonymize_service + '"></div>\
  4492. </fieldset>\
  4493. </div>\
  4494. </div>\
  4495. <div id="tabs-4" class="warlc-ui-tab">\
  4496. <p><b>Author:</b> <a href="http://www.warlc.5gbfree.com/viewtopic.php?f=12&t=12">mental</a></p>\
  4497. <br />\
  4498. <p><b>Currently supported:</b><br>\
  4499. Filehostings: ' + allHostNames.length + '<br />\
  4500. Containers: ' + allContainerNames.length + '<br />\
  4501. Obsolete sites: ' + allObsoleteNames.length + '<br /></p>\
  4502. <br />\
  4503. <p><b>Based on:</b><br>\
  4504. <a href="http://userscripts-mirror.org/scripts/show/125631.html">W.A.R. Links Checker - Dev</a></p>\
  4505. <br />\
  4506. <p><b>Uses:</b></p>\
  4507. <p>adam_3\'s <a href="http://userscripts-mirror.org/scripts/show/2254">Linkify ting</a> (modified)</p>\
  4508. <p><a href="http://jquery.com/">jQuery</a> JavaScript Library</p>\
  4509. <br />\
  4510. <p>License: GPL version 3 or any later version (<a href="http://www.gnu.org/copyleft/gpl.html">http://www.gnu.org/copyleft/gpl.html</a>)</p>\
  4511. </div>\
  4512. </div>\
  4513. </div>\
  4514. </div>';
  4515. $('body').append('<div id="hideshow">' + configurationinnerHTML + '</div>');
  4516. $("#warlc-conf-tabs").tabs({ fx: { opacity: 'toggle', duration: 'fast' } });
  4517. $("#imghideshow").click(function(event){$("#hideshow").hide(); event.preventDefault();});
  4518. var elmHostList = document.getElementById("warlcsitelist1");
  4519. var elmContainerList = document.getElementById("warlcsitelist2");
  4520. buildSettings();
  4521. buildSitelist("", allHostNames, elmHostList);
  4522. buildSitelist("", allContainerNames, elmContainerList);
  4523. if (DEBUG_MODE)
  4524. {
  4525. //log all sites availability status
  4526. diagSites();
  4527. }
  4528. //handler for checkbox state change
  4529. function changeConfiguration(e)
  4530. {
  4531. var element = e.target;
  4532.  
  4533. if (element.type == 'checkbox')
  4534. {
  4535. if (element.checked == 1)
  4536. {
  4537. GM_setValue(element.id, true);
  4538. }
  4539. else
  4540. {
  4541. GM_setValue(element.id, false);
  4542. }
  4543.  
  4544. }
  4545. setVariables();
  4546. }
  4547.  
  4548. //Selects all filehosting checkboxes
  4549. function selectAll()
  4550. {
  4551. $(":checkbox:visible:not(:checked)").prop("checked",true)
  4552. .each(function(index, element){GM_setValue(this.id, true)});
  4553. }
  4554.  
  4555. //Deselects all filehosting checkboxes
  4556. function selectNone()
  4557. {
  4558. $(":checkbox:visible:checked").prop("checked",false)
  4559. .each(function(index, element){GM_setValue(this.id, false)});
  4560. }
  4561.  
  4562. //Inverts filehosting checkboxes selection
  4563. function selectInvert()
  4564. {
  4565. var $checked = $(":checkbox:visible:checked");
  4566. var $unchecked = $(":checkbox:visible:not(:checked)");
  4567. $unchecked.prop("checked",true)
  4568. .each(function(index, element){GM_setValue(this.id, true)});
  4569. $checked.prop("checked",false)
  4570. .each(function(index, element){GM_setValue(this.id, false)});
  4571. }
  4572. //toggles anonymizer on off
  4573. function Enable_Anonymizer()
  4574. {
  4575. var $checked = $(":checkbox:visible:checked");
  4576. var $unchecked = $(":checkbox:visible:not(:checked)");
  4577. $unchecked.prop("checked",true)
  4578. .each(function(index, element){GM_setValue(this.id, true)});
  4579. $checked.prop("checked",false)
  4580. .each(function(index, element){GM_setValue(this.id, false)});
  4581. }
  4582.  
  4583. function changeRefAnonymizer(){
  4584. GM_setValue("Ref_anonymize_service", $("#refAnonymizer").attr("value"));
  4585. }
  4586.  
  4587. //Sets live links color
  4588. function changeColorLive()
  4589. {
  4590. var inColorLive = document.getElementById("inputColorLive");
  4591. inColorLive.style.background = inColorLive.value;
  4592. GM_setValue("Live_links_color", inColorLive.value);
  4593. }
  4594.  
  4595. //Sets dead links color
  4596. function changeColorDead()
  4597. {
  4598. var inColorDead = document.getElementById("inputColorDead");
  4599. inColorDead.style.background = inColorDead.value;
  4600. GM_setValue("Dead_links_color", inColorDead.value);
  4601. }
  4602.  
  4603. //Sets temp. unavailable links color
  4604. function changeColorTemp()
  4605. {
  4606. var inColorTemp = document.getElementById("inputColorTemp");
  4607. inColorTemp.style.background = inColorTemp.value;
  4608. GM_setValue("Temp_unavailable_links_color", inColorTemp.value);
  4609. }
  4610.  
  4611. //Sets temp. unavailable links color
  4612. function changeColorCont()
  4613. {
  4614. var inColorCont = document.getElementById("inputColorCont");
  4615. inColorCont.style.background = inColorCont.value;
  4616. GM_setValue("Container_links_color", inColorCont.value);
  4617. }
  4618. //Sets premium. links color
  4619. function changeColorprem()
  4620. {
  4621. var inColorprem = document.getElementById("inputColorprem");
  4622. inColorprem.style.background = inColorprem.value;
  4623. GM_setValue("Premium_links_color", inColorprem.value);
  4624. }
  4625.  
  4626. //Diagnose sites for availability
  4627. function diagSites()
  4628. {
  4629. var boxes = document.getElementById("warlcsitelist1").getElementsByTagName("input");
  4630.  
  4631. for (var i = 0, n = boxes.length - 1; i < n; i++)
  4632. {
  4633. if (boxes[i].type == "checkbox")
  4634. {
  4635. checkAvailability(boxes[i]);
  4636. }
  4637. }
  4638.  
  4639. boxes = document.getElementById("warlcsitelist2").getElementsByTagName("input");
  4640.  
  4641. for (var i = 0, n = boxes.length - 1; i < n; i++)
  4642. {
  4643. if (boxes[i].type == "checkbox")
  4644. {
  4645. checkAvailability(boxes[i]);
  4646. }
  4647. }
  4648.  
  4649. function checkAvailability(cbElm)
  4650. {
  4651. var cb = cbElm;
  4652. GM_xmlhttpRequest(
  4653. {
  4654. method: 'HEAD',
  4655. url: 'http://' + cb.nextSibling.textContent.replace(' ', ''),
  4656. headers: {
  4657. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  4658. 'Accept': 'text/xml',
  4659. 'Referer': ""
  4660. },
  4661. onload: function (result)
  4662. {
  4663. if (result.status != 200)
  4664. {
  4665. GM_log(cb.nextSibling.textContent + ' --- status: [' + result.status + '] ' + result.statusText + ', final url: ' + result.finalUrl);
  4666. }
  4667. },
  4668. onerror: function (result)
  4669. {
  4670. if (result.status != 200)
  4671. {
  4672. GM_log(cb.nextSibling.textContent + ' --- status: [' + result.status + '] ' + result.statusText + ', final url: ' + result.finalUrl);
  4673. }
  4674. }
  4675. });
  4676. }
  4677. }
  4678. function buildSettings()
  4679. {
  4680. $(".warlcsettings :checkbox").each(function(){
  4681. $(this).prop("checked", GM_getValue($(this).attr("id")))
  4682. .click(function(e){
  4683. GM_setValue($(this).attr("id"), $(this).prop("checked"));
  4684. setVariables();
  4685. });
  4686. })
  4687. }
  4688. //Dynamic build of host list
  4689. //param search [string] searches for hostnames matching search substring
  4690. //param siteNames [array] array of site names
  4691. //param targetNode [DOM Node] where the list should be built
  4692. // first child node is replaced
  4693. function buildSitelist(search, siteNames, targetNode)
  4694. {
  4695. var searchRegex = new RegExp("\\|?([\\w\\.-]*" + search.replace(/\./g,"\\.").replace(/-/g, "\\-") + "[\\w\\.-]*)\\|?", "i");
  4696. var $targetNode = $(targetNode).empty();
  4697. var searchedSite = "";
  4698. $.each(siteNames, function(i, site){
  4699. if (searchedSite = site.match(searchRegex))
  4700. {
  4701. var baseSite = site.replace(/\|.+/, ""); //filehosting main domain
  4702. //ensuring backward compatibility with the rest of code, to be refactored later
  4703. var oldRSLCvalue = "Check_" + baseSite.replace(/\|.+/, "").replace(/\./g,"_dot_").replace(/-/g, "_dash_") + "_links";
  4704. //
  4705. $targetNode.append('<input type="checkbox" id="' + oldRSLCvalue +'" />\
  4706. <label for="' + oldRSLCvalue + '">' + searchedSite[1] + '</label>' +
  4707. ((searchedSite[1] != baseSite) ? ('<div id="note"> ( ~ ' + baseSite + ' )</div>') : (""))
  4708. );
  4709. $("#" + oldRSLCvalue).prop("checked", GM_getValue(oldRSLCvalue, false))
  4710. .change(changeConfiguration);
  4711. $targetNode.append('<br />');
  4712. }
  4713. });
  4714. $targetNode.append("<hr>");
  4715. //obsolete hosts checkbox
  4716. $targetNode.append('<input type="checkbox" id="Obsolete_file_hosts" /><label for="Obsolete_file_hosts">Obsolete file hosts</label>');
  4717. $("#Obsolete_file_hosts").prop("checked", GM_getValue("Obsolete_file_hosts", false))
  4718. .change(changeConfiguration);
  4719. $targetNode.append('<br />');
  4720. var foundName = "";
  4721. $.each(allObsoleteNames, function(i, site){
  4722. if (foundName = allObsoleteNames[i].match(searchRegex))
  4723. {
  4724. $targetNode.append('<div id="note">' + foundName[1] + '</div>');
  4725. }
  4726. })
  4727. }
  4728. var hostSearchBox = document.getElementById("hostSearchBox");
  4729. hostSearchBox.addEventListener('keyup', function(){buildSitelist(hostSearchBox.value, allHostNames, elmHostList);}, false);
  4730. var hostSearchBox2 = document.getElementById("hostSearchBox2");
  4731. hostSearchBox2.addEventListener('keyup', function(){buildSitelist(hostSearchBox2.value, allContainerNames, elmContainerList);}, false);
  4732. $(".warlc-ui-select-all").click(selectAll).button();
  4733. $(".warlc-ui-select-none").click(selectNone).button();
  4734. $(".warlc-ui-select-invert").click(selectInvert).button();
  4735. $(".warlc-ui-buttonset").buttonset();
  4736. var inColorLive = document.getElementById("inputColorLive");
  4737. inColorLive.addEventListener('keyup', changeColorLive, false);
  4738.  
  4739. var inColorDead = document.getElementById("inputColorDead");
  4740. inColorDead.addEventListener('keyup', changeColorDead, false);
  4741.  
  4742. var inColorTemp = document.getElementById("inputColorTemp");
  4743. inColorTemp.addEventListener('keyup', changeColorTemp, false);
  4744.  
  4745. var inColorCont = document.getElementById("inputColorCont");
  4746. inColorCont.addEventListener('keyup', changeColorCont, false);
  4747. var inColorprem = document.getElementById("inputColorprem");
  4748. inColorprem.addEventListener('keyup', changeColorprem, false);
  4749. $("#refAnonymizer").change(changeRefAnonymizer);
  4750. //buttons and edit boxes init end
  4751.  
  4752. //icon sets radio buttons
  4753. var radioButtons = document.getElementsByName("warlciconset");
  4754. radioButtons[Icon_set].checked = "checked";
  4755.  
  4756. radioButtons[0].addEventListener("change", updateIconSet);
  4757. radioButtons[1].addEventListener("change", updateIconSet);
  4758. radioButtons[2].addEventListener("change", updateIconSet);
  4759. radioButtons[3].addEventListener("change", updateIconSet);
  4760. function updateIconSet()
  4761. {
  4762. GM_setValue("Icon_set", this.value * 1);
  4763. }
  4764. //
  4765. $('#showCustomRulesReference').click(function(e){
  4766. e.preventDefault();
  4767. $('#customRulesReference').toggle();
  4768. });
  4769. $('#Custom_rules_text')
  4770. .val(Custom_rules_text)
  4771. .change(saveCustomRules);
  4772. function saveCustomRules(e)
  4773. {
  4774. var cr = parseCustomRules(this.value);
  4775. if (cr.info.length)
  4776. alert('Custom rules saved. However, there were ' + cr.error + ' errors, ' + cr.warning + ' warnings, ' + cr.note + ' notes found.\n' + cr.rules.length + ' valid rules found.\n\n' + JSON.stringify(cr.info, null, ' '));
  4777. GM_setValue('Custom_rules_text', this.value);
  4778. GM_setValue('last_custom_rules_nag', ''+new Date().getTime()); //reset nag
  4779. }
  4780. }
  4781.  
  4782. //begin standard link checking algorithm
  4783. function start(filterId)
  4784. {
  4785. var doNotLinkify = Do_not_linkify_DL_links;
  4786.  
  4787. // USER SELECTED FILE HOSTS INITIALIZATION START
  4788. var http_file_hosts = new Array(); //standard hostings
  4789. var http_file_hosts_coded = new Array(); //hostings which has to be decoded to obtain real checkable link
  4790. var http_file_hosts_obsolete = new Array(); //dead hostings
  4791. var http_file_hosts_headers_only = new Array(); //hostings with direct download, must be handled via headers only
  4792.  
  4793. initFileHosts();
  4794. initFileHostsHeadersOnly();
  4795. initFileHostsCustom(); //CustomRules
  4796. // USER SELECTED FILE HOSTS INITIALIZATION END
  4797.  
  4798. // LINKIFICATION START
  4799. var totalxpath = '';
  4800. var totalxpathcoded = '';
  4801. var totalxpathobsolete = '';
  4802. var totalxpathheadersonly = '';
  4803. var totalourls = '';
  4804.  
  4805. var filehostLen = http_file_hosts.length;
  4806. var filehostCodedLen = http_file_hosts_coded.length;
  4807. var filehostObsoleteLen = http_file_hosts_obsolete.length;
  4808. var filehostHeadersOnlyLen = http_file_hosts_headers_only.length;
  4809.  
  4810. var filehostIdx = filehostLen;
  4811. var filehostCodedIdx = filehostCodedLen;
  4812. var filehostObsoleteIdx = filehostObsoleteLen;
  4813. var filehostHeadersOnlyIdx = filehostHeadersOnlyLen;
  4814.  
  4815. if ((filehostIdx == 0) && (filehostCodedIdx == 0) && (filehostHeadersOnlyIdx == 0) && (filehostObsoleteIdx == 0))
  4816. return;
  4817.  
  4818. while (filehostIdx--)
  4819. {
  4820. totalourls += http_file_hosts[filehostIdx][0] + '|';
  4821. totalxpath += http_file_hosts[filehostIdx][4] + '|';
  4822. }
  4823.  
  4824. while (filehostCodedIdx--)
  4825. {
  4826. totalourls += http_file_hosts_coded[filehostCodedIdx][0] + '|';
  4827. totalxpathcoded += http_file_hosts_coded[filehostCodedIdx][3] + '|';
  4828. }
  4829.  
  4830. while (filehostObsoleteIdx--)
  4831. {
  4832. totalourls += http_file_hosts_obsolete[filehostObsoleteIdx][0] + '|';
  4833. totalxpathobsolete += http_file_hosts_obsolete[filehostObsoleteIdx][1] + '|';
  4834. }
  4835.  
  4836. while (filehostHeadersOnlyIdx--)
  4837. {
  4838. totalourls += http_file_hosts_headers_only[filehostHeadersOnlyIdx][0] + '|';
  4839. totalxpathheadersonly += http_file_hosts_headers_only[filehostHeadersOnlyIdx][3] + '|';
  4840. }
  4841.  
  4842. totalourls = totalourls.replace(/\|$/g, "");
  4843. //TODO: further refactoring needed
  4844. totalxpath = totalxpath.replace(/\]\|\/\/a\[/g, " or ");
  4845. totalxpath = totalxpath.replace(/\]\|/, ')]');
  4846. totalxpathcoded = totalxpathcoded.replace(/\]\|\/\/a\[/g, " or ");
  4847. totalxpathcoded = totalxpathcoded.replace(/\]\|/, ')]');
  4848. totalxpathobsolete = totalxpathobsolete.replace(/\]\|\/\/a\[/g, " or ");
  4849. totalxpathobsolete = totalxpathobsolete.replace(/\]\|/, ')]');
  4850. totalxpathheadersonly = totalxpathheadersonly.replace(/\]\|\/\/a\[/g, " or ");
  4851. totalxpathheadersonly = totalxpathheadersonly.replace(/\]\|/, ')]');
  4852. if (filterId != null) //insert id restriction in the xpath
  4853. {
  4854. totalxpath = totalxpath.replace(/\[/g, "[@class='" + filterId + "' and (");
  4855. totalxpathcoded = totalxpathcoded.replace(/\[/g, "[@class='" + filterId + "' and (");
  4856. totalxpathobsolete = totalxpathobsolete.replace(/\[/g, "[@class='" + filterId + "' and (");
  4857. totalxpathheadersonly = totalxpathheadersonly.replace(/\[/g, "[@class='" + filterId + "' and (");
  4858. }
  4859. else
  4860. {
  4861. totalxpath = totalxpath.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4862. totalxpathcoded = totalxpathcoded.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4863. totalxpathobsolete = totalxpathobsolete.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4864. totalxpathheadersonly = totalxpathheadersonly.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4865. }
  4866. linkify(totalourls);
  4867. //LINKIFICATION END
  4868. //ENCRYPTED LINKS PROCESSING START
  4869. if (http_file_hosts_coded.length > 0)
  4870. {
  4871. var linksCoded = document.evaluate(totalxpathcoded, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4872.  
  4873. // decrypt coded links (redirects, link protectors etc.)
  4874. if (linksCoded.snapshotLength > 0)
  4875. {
  4876. var link;
  4877. var reallinkreg;
  4878. var reallinkcorrection;
  4879.  
  4880. if (filterId == null)
  4881. {
  4882. cLinksTotal += linksCoded.snapshotLength;
  4883. }
  4884.  
  4885. var y = linksCoded.snapshotLength - 1;
  4886. do
  4887. {
  4888. // linksCoded.snapshotItem(y).id = 'processing_link';
  4889. link = linksCoded.snapshotItem(y);
  4890. filehostIdx = filehostCodedLen;
  4891. while (filehostIdx--)
  4892. {
  4893. if (link.href.match(http_file_hosts_coded[filehostIdx][0]))
  4894. {
  4895. link.href = link.href.replace(/http:\/\/.*?(?:\?|=)http:\/\//, 'http://');
  4896. reallinkreg = http_file_hosts_coded[filehostIdx][1];
  4897. reallinkcorrection = http_file_hosts_coded[filehostIdx][2];
  4898.  
  4899. decurl(link, reallinkreg, reallinkcorrection);
  4900. break;
  4901. }
  4902. }
  4903. }
  4904. while (y--);
  4905. }
  4906. }
  4907. //ENCRYPTED LINKS PROCESSING END
  4908.  
  4909. //STANDARD LINKCHECKING START
  4910. if (http_file_hosts.length > 0)
  4911. {
  4912. var lianks = document.evaluate(totalxpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4913.  
  4914. if (filterId == null)
  4915. {
  4916. cLinksTotal += lianks.snapshotLength;
  4917. }
  4918.  
  4919. if (lianks.snapshotLength > 0)
  4920. {
  4921. var link;
  4922.  
  4923. var URL = "";
  4924. var name = "";
  4925. var isAliveRegex = "";
  4926. var isDeadRegex = "";
  4927. var isUnavaRegex = "";
  4928. var ispremRegex = "";
  4929. var tryLoop = false;
  4930.  
  4931. var y = lianks.snapshotLength;
  4932.  
  4933. while (y--)
  4934. {
  4935. link = lianks.snapshotItem(y);
  4936.  
  4937. filehostIdx = filehostLen;
  4938. while (filehostIdx--)
  4939. {
  4940. if (link.href.match(http_file_hosts[filehostIdx][0]))
  4941. {
  4942. link.href = link.href.replace(/http:\/\/.*?http:\/\//, 'http://'); //anonymizers
  4943. isAliveRegex = http_file_hosts[filehostIdx][1];
  4944. isDeadRegex = http_file_hosts[filehostIdx][2];
  4945. isUnavaRegex = http_file_hosts[filehostIdx][3];
  4946. ispremRegex = http_file_hosts[filehostIdx][6];
  4947. tryLoop = http_file_hosts[filehostIdx][5];
  4948.  
  4949. geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, tryLoop);
  4950.  
  4951. break;
  4952. }
  4953. }
  4954. }
  4955. }
  4956. }
  4957. //STANDARD LINKCHECKING END
  4958. //OBSOLETE FILE HOSTS PROCESSING START
  4959. if (filehostObsoleteLen > 0)
  4960. {
  4961. var obsoletelinks = document.evaluate(totalxpathobsolete, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4962.  
  4963. var obsoleteLink;
  4964.  
  4965. //check links
  4966. if (obsoletelinks.snapshotLength > 0)
  4967. {
  4968. var y = obsoletelinks.snapshotLength;
  4969.  
  4970. if (filterId == null)
  4971. {
  4972. cLinksTotal += y;
  4973. }
  4974.  
  4975. while (y--)
  4976. {
  4977. obsoleteLink = obsoletelinks.snapshotItem(y);
  4978.  
  4979. if (Display_tooltip_info)
  4980. {
  4981. obsoleteLink.warlc_error = 'Cause of error: <b>Obsolete filehosting.</b>';
  4982. }
  4983. displayTheCheckedLink(obsoleteLink, 'adead_link');
  4984. }
  4985. }
  4986. }
  4987. //OBSOLETE FILE HOSTS PROCESSING END
  4988.  
  4989. //DIRECT LINKCHECKING START
  4990. if (http_file_hosts_headers_only.length > 0)
  4991. {
  4992. var links = document.evaluate(totalxpathheadersonly, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4993.  
  4994. //check links
  4995. if (links.snapshotLength > 0)
  4996. {
  4997. var link;
  4998. var isAliveRegex;
  4999. var isDeadRegex;
  5000. var ispremRegex;
  5001.  
  5002. var y = links.snapshotLength;
  5003.  
  5004.  
  5005. if (filterId == null)
  5006. {
  5007. cLinksTotal += y;
  5008. }
  5009.  
  5010. while (y--)
  5011. {
  5012. // links.snapshotItem(y).id = 'processing_link';
  5013. link = links.snapshotItem(y);
  5014. filehostIdx = filehostHeadersOnlyLen;
  5015. while (filehostIdx--)
  5016. {
  5017. if (link.href.match(http_file_hosts_headers_only[filehostIdx][0]))
  5018. {
  5019. link.href = link.href.replace(/http:\/\/.*?(?:\?|=)http:\/\//, 'http://');
  5020. isAliveRegex = http_file_hosts_headers_only[filehostIdx][1];
  5021. isDeadRegex = http_file_hosts_headers_only[filehostIdx][2];
  5022. ispremRegex = http_file_hosts_headers_only[filehostIdx][3];
  5023.  
  5024. geturlHeader(link, isAliveRegex, isDeadRegex, ispremRegex);
  5025.  
  5026. break;
  5027. }
  5028. }
  5029. }
  5030.  
  5031. }
  5032. }
  5033. //DIRECT LINKCHECKING END
  5034.  
  5035.  
  5036. //finds the real url on the page, replaces link.href with it and calls geturl
  5037. function decurl(link, reallinkreg, reallinkcorrection)
  5038. {
  5039.  
  5040. GM_xmlhttpRequest(
  5041. {
  5042. method: 'GET',
  5043. url: link.href,
  5044. headers: {
  5045. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  5046. 'Accept': 'text/xml',
  5047. 'Referer': ""
  5048. },
  5049. onload: function (result)
  5050. {
  5051. // cLinksProcessed++;
  5052.  
  5053. var reallink = result.responseText.match(reallinkreg)[0];
  5054. reallink = reallink.replace(new RegExp(reallinkcorrection, "g"), "");
  5055.  
  5056. link.href = reallink;
  5057.  
  5058. var i = http_file_hosts.length - 1;
  5059. do
  5060. {
  5061. if ((reallink.match(http_file_hosts[i][0])))
  5062. {
  5063. link.href = link.href.replace(/http:\/\/.*?\?http:\/\//, 'http://');
  5064. var isAliveRegex = http_file_hosts[i][1];
  5065. var isDeadRegex = http_file_hosts[i][2];
  5066. var isUnavaRegex = http_file_hosts[i][3];
  5067. var ispremRegex = http_file_hosts[i][4];
  5068.  
  5069. geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, 50);
  5070.  
  5071. break;
  5072. }
  5073. }
  5074. while (i--);
  5075. }
  5076. });
  5077. }
  5078.  
  5079. function randUA()
  5080. {
  5081. //TODO
  5082. }
  5083. //Processes link
  5084. //
  5085. // [string] link link URL
  5086. // [string] isAliveRegex alive link regex
  5087. // [string] isDeadRegex dead link regex
  5088. // [string] isUnavaRegex unavailable link regex
  5089. // [string] ispremRegex premium link regex
  5090. // [boolean] tryLoop repeats request until succeeded
  5091. function geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, tryLoop)
  5092. {
  5093. GM_xmlhttpRequest(
  5094. {
  5095. method: 'GET',
  5096. url: link.href,
  5097. headers: {
  5098. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  5099. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  5100. 'Referer': ""
  5101. },
  5102. onload: function (result)
  5103. {
  5104. var res = result.responseText;
  5105. if (result.responseHeaders.match(/Content-Disposition: attachment; filename=/))//direct download, simple version
  5106. {
  5107. displayTheCheckedLink(link, 'alive_link');
  5108. return;
  5109. }
  5110.  
  5111. if (res.match(isAliveRegex))
  5112. {
  5113. displayTheCheckedLink(link, 'alive_link');
  5114. return;
  5115. }
  5116.  
  5117. if (res.match(isDeadRegex))
  5118. {
  5119. displayTheCheckedLink(link, 'adead_link');
  5120. return;
  5121. }
  5122.  
  5123. if (isUnavaRegex && res.match(isUnavaRegex))
  5124. {
  5125. displayTheCheckedLink(link, 'unava_link');
  5126. return;
  5127. }
  5128. if (res.match(ispremRegex))
  5129. {
  5130. displayTheCheckedLink(link, 'prem_link');
  5131. return;
  5132. }
  5133.  
  5134. var resStatus = result.status;
  5135.  
  5136. if (resStatus == 404)
  5137. {
  5138. displayTheCheckedLink(link, 'adead_link');
  5139. }
  5140. if (resStatus == 500 || resStatus == 503 || resStatus == 403) //not found/available/temp. unava
  5141. {
  5142. if (tryLoop)
  5143. {
  5144. //wait 1-5 seconds and repeat the request
  5145. setTimeout(function(){geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, tryLoop)}, 1000 + (Math.random() * 4000));
  5146. }
  5147. else
  5148. {
  5149. displayTheCheckedLink(link, 'unava_link');
  5150. }
  5151.  
  5152. return;
  5153. }
  5154. },
  5155. onerror: function ()
  5156. {
  5157. displayTheCheckedLink(link, 'unava_link');
  5158. }
  5159. });
  5160. }
  5161.  
  5162. function geturlHeader(link, isAliveRegex, isDeadRegex, ispremRegex)
  5163. {
  5164. GM_xmlhttpRequest(
  5165. {
  5166. method: 'HEAD',
  5167. url: link.href,
  5168. headers: {
  5169. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  5170. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  5171. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  5172. 'Referer': ""
  5173. },
  5174. onload: function (result)
  5175. {
  5176. var resStatus = result.status;
  5177. var resHeaders = "";
  5178. if (resStatus == 403 || resStatus == 404 || resStatus == 500) //not found/available
  5179. {
  5180. displayTheCheckedLink(link, 'adead_link');
  5181. return;
  5182. }
  5183.  
  5184. resHeaders = result.responseHeaders;
  5185.  
  5186. if (resHeaders.match(isDeadRegex))
  5187. {
  5188. displayTheCheckedLink(link, 'adead_link');
  5189. return;
  5190. }
  5191.  
  5192. if (resHeaders.match(isAliveRegex))
  5193. {
  5194. displayTheCheckedLink(link, 'alive_link');
  5195. return;
  5196. }
  5197. if (resHeaders.match(ispremRegex))
  5198. {
  5199. displayTheCheckedLink(link, 'prem_link');
  5200. return;
  5201. }
  5202. },
  5203. onerror: function ()
  5204. {
  5205. displayTheCheckedLink(link, 'unava_link');
  5206. }
  5207. });
  5208. }
  5209.  
  5210. //Delinkfifies the <a> element object
  5211. function delinkifyLink(link)
  5212. {
  5213. var spanElm = document.createElement("span");
  5214. spanElm.className = link.className;
  5215. spanElm.innerHTML = link.innerHTML;
  5216.  
  5217. if (Display_tooltip_info)
  5218. {
  5219. spanElm.href = link.href;
  5220. spanElm.warlc_error = link.warlc_error;
  5221. switch (link.className){
  5222. case "alive_link": spanElm.addEventListener("mouseover", displayTooltipInfo, false); break
  5223. case "adead_link": spanElm.addEventListener("mouseover", displayTooltipError, false); break;
  5224. case "unava_link": //reserved
  5225. case "prem_link": spanElm.addEventListener("mouseover", displayTooltipError, false); break;
  5226. default:
  5227. }
  5228. }
  5229. link.parentNode.replaceChild(spanElm, link);
  5230. }
  5231.  
  5232. //Assigns result status to the <a> element object and calls delinkifying eventually
  5233. //Possible result states: adead_link, alive_link, unava_link, prem_link
  5234. function displayTheCheckedLink(link, resultStatus)
  5235. {
  5236. link.className = resultStatus;
  5237. link.href = Ref_anonymize_service + link.href;
  5238. if (Display_tooltip_info)
  5239. {
  5240. switch (resultStatus){
  5241. case "alive_link": link.addEventListener("mouseover", displayTooltipInfo, false); break
  5242. case "adead_link": link.addEventListener("mouseover", displayTooltipError, false); break;
  5243. case "unava_link": //reserved
  5244. case "prem_link": link.addEventListener("mouseover", displayTooltipInfo, false); break
  5245. default:
  5246. }
  5247. }
  5248. if (doNotLinkify)
  5249. {
  5250. delinkifyLink(link);
  5251. }
  5252. cLinksProcessed++;
  5253.  
  5254. if (resultStatus == "alive_link")
  5255. {
  5256. cLinksAlive++;
  5257. return;
  5258. }
  5259.  
  5260. if (resultStatus == "adead_link")
  5261. {
  5262. cLinksDead++;
  5263. return;
  5264. }
  5265.  
  5266. if (resultStatus == "unava_link")
  5267. {
  5268. cLinksUnava++;
  5269. }
  5270. if (resultStatus == "prem_link")
  5271. {
  5272. cLinksprem++;
  5273. return;
  5274. }
  5275. }
  5276.  
  5277.  
  5278. function initFileHosts()
  5279. {
  5280.  
  5281. function addObsoleteHost(linkRegex, xpathEx)
  5282. {
  5283. var host = new Array(2);
  5284. host[0] = linkRegex;
  5285. host[1] = xpathEx;
  5286. http_file_hosts_obsolete.push(host);
  5287. }
  5288.  
  5289. //obsolete file hosts init start
  5290. if (Obsolete_file_hosts)
  5291. {
  5292. addObsoleteHost("uloz\.cz\/show\/file","//a[contains(@href,'uloz.cz')]");
  5293. addObsoleteHost("storage\\.to\/get","//a[contains(@href,'storage.to')]");
  5294. addObsoleteHost("iskladka\\.cz\/download","//a[contains(@href,'iskladka.cz')]");
  5295. addObsoleteHost("file-rack\\.com\/files","//a[contains(@href,'file-rack.com')]");
  5296. addObsoleteHost("fast-load\\.net\/(\/)?index","//a[contains(@href,'fast-load.net')]");
  5297. addObsoleteHost("subory\\.sk\/download","//a[contains(@href,'subory.sk')]");
  5298. addObsoleteHost("bigandfree\\.com\/\\d+","//a[contains(@href,'bigandfree.com')]");
  5299. addObsoleteHost("fileop\\.com\/\\w+","//a[contains(@href,'fileop.com')]");
  5300. addObsoleteHost("mujsoubor\\.cz\/file\/","//a[contains(@href,'mujsoubor.cz')]");
  5301. addObsoleteHost("sendfile\\.to\/\\w+","//a[contains(@href,'sendfile.to')]");
  5302. addObsoleteHost("superfastfile\\.com\/\\w+","//a[contains(@href,'superfastfile.com')]");
  5303. addObsoleteHost("quickyshare\\.com\/\\w+","//a[contains(@href,'quickyshare.com/')]");
  5304. addObsoleteHost("duckload\\.com\/(?:d|play)","//a[contains(@href,'duckload.com')]");
  5305. addObsoleteHost("uploadstore\\.net\/\\w+","//a[contains(@href,'uploadstore.net')]");
  5306. addObsoleteHost("meinupload\\.com\/dl\/\\d+","//a[contains(@href,'meinupload.com/dl')]");
  5307. addObsoleteHost("dualshare\\.com\/\\w+","//a[contains(@href,'dualshare.com')]");
  5308. addObsoleteHost("2xupload\\.(?:to|de)\/file\/\\w+","//a[contains(@href,'2xupload.to') or contains(@href,'2xupload.de')]");
  5309. addObsoleteHost("oxedion\\.com\/index\\.php\/download\/\\w+","//a[contains(@href,'oxedion.com/index')]");
  5310. addObsoleteHost("uploadline\\.com\/\\d+","//a[contains(@href,'uploadline.com')]");
  5311. addObsoleteHost("dll\\.bz\/file\/\\d+","//a[contains(@href,'dll.bz/file')]");
  5312. addObsoleteHost("movieshare\\.in\/\\w+","//a[contains(@href,'movieshare.in')]");
  5313. addObsoleteHost("milledrive\\.com\/files\/\\d+","//a[contains(@href,'milledrive.com')]");
  5314. addObsoleteHost("quickupload\\.net\/\\w+","//a[contains(@href,'quickupload.net')]");
  5315. addObsoleteHost("safelink\\.in\/\\w+","//a[contains(@href,'safelink.in')]");
  5316. addObsoleteHost("pyramidfiles\\.com\/\\w+","//a[contains(@href,'pyramidfiles.com/')]");
  5317. addObsoleteHost("(?:cloudnator|shragle)\\.com\/files","//a[contains(@href,'cloudnator.com/files') or contains(@href,'shragle.com/files')]");
  5318. addObsoleteHost("batshare\\.com\/\\w+","//a[contains(@href,'batshare.com/')]");
  5319. addObsoleteHost("bitroad\\.net\/download","//a[contains(@href,'bitroad.net/download')]");
  5320. addObsoleteHost("metadivx\\.com\/\\w+","//a[contains(@href,'metadivx.com')]");
  5321. addObsoleteHost("filegaze\\.com\/\\w+","//a[contains(@href,'filegaze.com/')]");
  5322. addObsoleteHost("bulletupload\\.com\/\\w+","//a[contains(@href,'bulletupload.com/')]");
  5323. addObsoleteHost("sharefilehost\\.com\/\\w+","//a[contains(@href,'sharefilehost.com/')]");
  5324. addObsoleteHost("fireuploads\\.net\/\\w+","//a[contains(@href,'fireuploads.net/')]");
  5325. addObsoleteHost("divxlink\\.com\/\\w+","//a[contains(@href,'divxlink.com/')]");
  5326. addObsoleteHost("bzlink\\.us\/\\w+","//a[contains(@href,'bzlink.us/')]");
  5327. addObsoleteHost("filetechnology\\.com\/\\w+","//a[contains(@href,'filetechnology.com/')]");
  5328. addObsoleteHost("filecosy\\.com\/\\w+","//a[contains(@href,'filecosy.com/')]");
  5329. addObsoleteHost("fileserver\\.cc\/\\w+","//a[contains(@href,'fileserver.cc/')]");
  5330. addObsoleteHost("shafiles\\.me\/\\w+","//a[contains(@href,'shafiles.me/')]");
  5331. addObsoleteHost("xfileshare\\.eu\/\\w+","//a[contains(@href,'xfileshare.eu/')]");
  5332. addObsoleteHost("uploadboost\\.com\/\\w+","//a[contains(@href,'uploadboost.com/')]");
  5333. addObsoleteHost("uploadoz\\.com\/\\w+","//a[contains(@href,'uploadoz.com/')]");
  5334. addObsoleteHost("ihostia\\.com\/\\w+","//a[contains(@href,'ihostia.com/')]");
  5335. addObsoleteHost("shareupload\\.com\/\\w+","//a[contains(@href,'shareupload.com/')]");
  5336. addObsoleteHost("ovfile\\.com\/\\w+","//a[contains(@href,'ovfile.com/')]");
  5337. addObsoleteHost("stahuj\\.to\/\\w+","//a[contains(@href,'stahuj.to/')]");
  5338. addObsoleteHost("gigfiles\\.net\/\\w+","//a[contains(@href,'gigfiles.net/')]");
  5339. addObsoleteHost("vidhog\\.com\/\\w+","//a[contains(@href,'vidhog.com/')]");
  5340. addObsoleteHost("filelaser\\.com\/\\w+","//a[contains(@href,'filelaser.com/')]");
  5341. addObsoleteHost("holderfile\\.com\/\\w+","//a[contains(@href,'holderfile.com/')]");
  5342. addObsoleteHost("fileduct\\.(?:com|net)\/\\w+","//a[contains(@href,'fileduct.com/') or contains(@href,'fileduct.net')]");
  5343. addObsoleteHost("filefat\\.com\/\\w+","//a[contains(@href,'filefat.com/')]");
  5344. addObsoleteHost("restfile\\.com\/\\w+","//a[contains(@href,'restfile.com/')]");
  5345. addObsoleteHost("filemashine\\.com\\/download\/\\w+","//a[contains(@href,'filemashine.com/download')]");
  5346. addObsoleteHost("cloudnxt\\.net\/\\w+","//a[contains(@href,'cloudnxt.net/')]");
  5347. addObsoleteHost("uploadrack\\.com\/\\w+","//a[contains(@href,'uploadrack.com')]");
  5348. addObsoleteHost("teradepot\\.com\/\\w+","//a[contains(@href,'teradepot.com')]");
  5349. addObsoleteHost("dataup\\.to\/\\d+\/","//a[contains(@href,'dataup.to')]");
  5350. addObsoleteHost("upit\\.to\/file:\\d+","//a[contains(@href,'upit.to/file')]");
  5351. addObsoleteHost("badongo\\.(?:com|net)\/(?:\\w\\w\/|)(?:vid|cfile|file|pt)\/\\w+","//a[contains(@href,'badongo.com') or contains(@href,'badongo.net')]");
  5352. addObsoleteHost("driveway\\.com\/\\w+","//a[contains(@href,'driveway.com')]");
  5353. addObsoleteHost("eatlime\\.com\/download","//a[contains(@href,'eatlime.com/download')]");
  5354. addObsoleteHost("a2zuploads\\.com\/id\\w+","//a[contains(@href,'a2zuploads.com/id')]");
  5355. addObsoleteHost("friendlyfiles\\.net\/download\/\\w+\/","//a[contains(@href,'friendlyfiles.net/download')]");
  5356. addObsoleteHost("flyfile\\.us\/\\w+","//a[contains(@href,'flyfile.us')]");
  5357. addObsoleteHost("speedyshare\\.com\/\\w+","//a[contains(@href,'speedyshare.com')]");
  5358. addObsoleteHost("brontofile\\.com\/download","//a[contains(@href,'brontofile.com/download')]");
  5359. addObsoleteHost("uploadspace\\.eu\/\\w+","//a[contains(@href,'uploadspace.eu')]");
  5360. addObsoleteHost("fooget\\.com\/\\w+","//a[contains(@href,'fooget.com/')]");
  5361. addObsoleteHost("file-bit.net\/\\w+","//a[contains(@href,'file-bit.net/')]");
  5362. addObsoleteHost("keepfile\\.com\/\\w+","//a[contains(@href,'http://keepfile.com')]");
  5363. addObsoleteHost("piggyshare\\.com\/file\/\\w+","//a[contains(@href,'piggyshare.com')]");
  5364. addObsoleteHost("filecrown\\.com\/\\w+","//a[contains(@href,'filecrown.com')]");
  5365. addObsoleteHost("6giga\\.com\/\\w+","//a[contains(@href,'6giga.com')]");
  5366. addObsoleteHost("uploadjockey\\.com\/download\/\\w+","//a[contains(@href,'uploadjockey.com/download')]");
  5367. addObsoleteHost("bluehost\\.to\/dl=\\w+","//a[contains(@href,'bluehost.to')]");
  5368. addObsoleteHost("coolshare\\.cz\/stahnout\/\\w+","//a[contains(@href,'coolshare.cz/stahnout')]");
  5369. addObsoleteHost("filegu\\.ru\/f\/\\w+","//a[contains(@href,'filegu.ru/f')]");
  5370. addObsoleteHost("filebase\\.to\/files\/\\d+\/","//a[contains(@href,'filebase.to/files')]");
  5371. addObsoleteHost("kickload\\.com\/(?:file|get)\/","//a[contains(@href,'kickload.com/file') or contains(@href,'kickload.com/get')]");
  5372. addObsoleteHost("up-file\\.com\/files\/download\/\\w+\/","//a[contains(@href,'up-file.com/download')]");
  5373. addObsoleteHost("ezyfile\\.net\/\\w+","//a[contains(@href,'ezyfile.net/')]");
  5374. addObsoleteHost("k2files\\.com\/files","//a[contains(@href,'k2files.com/files')]");
  5375. addObsoleteHost("aiotool\\.net\/\\w+","//a[contains(@href,'aiotool.net/')]");
  5376. addObsoleteHost("xvideos\\.com\/files\/\\d+\/\\w+","//a[contains(@href,'xvideos.com/files')]");
  5377. addObsoleteHost("filebling\\.com\/dl\/\\d+\/\\d+\/\\w+","//a[contains(@href,'filebling.com/dl')]");
  5378. addObsoleteHost("loaded\\.it\/divx\/\\w+","//a[contains(@href,'loaded.it/divx')]");
  5379. addObsoleteHost("uploadcell\\.com\/\\w+\/\\w+","//a[contains(@href,'uploadcell.com')]");
  5380. addObsoleteHost("jakfile\\.com\/\\w+","//a[contains(@href,'jakfile.com/')]");
  5381. addObsoleteHost("uploadshare\\.cz\/download\/\\w+\/\\w+","//a[contains(@href,'uploadshare.cz/download')]");
  5382. addObsoleteHost("mangoshare\\.com\/\\w+","//a[contains(@href,'mangoshare.com')]");
  5383. addObsoleteHost("ugotfile\\.com\/file\/\\d+\/\\w+","//a[contains(@href,'ugotfile.com/file')]");
  5384. addObsoleteHost("filestab\\.com\/\\w+","//a[contains(@href,'filestab.com')]");
  5385. addObsoleteHost("dotavi\\.com\/\\w+\/.","//a[contains(@href,'dotavi.com/')]");
  5386. addObsoleteHost("crazyupload\\.com\/\\w+","//a[contains(@href,'crazyupload.com')]");
  5387. addObsoleteHost("gaiafile\\.com\/\\w+","//a[contains(@href,'gaiafile.com')]");
  5388. addObsoleteHost("sharejunky\\.com\/\\w+","//a[contains(@href,'sharejunky.com')]");
  5389. addObsoleteHost("fileho\\.com\/download\/\\d+","//a[contains(@href,'fileho.com/download')]");
  5390. addObsoleteHost("(?:bigandfree|BigAndFree)\\.com\/\\d+","//a[contains(@href,'bigandfree.com') or contains(@href,'BigAndFree.com')]");
  5391. addObsoleteHost("bigfile\\.in\/\\w+","//a[contains(@href,'bigfile.in')]");
  5392. addObsoleteHost("bigshare\\.eu\/download\\.php\\?id=","//a[contains(@href,'bigshare.eu/download.php')]");
  5393. addObsoleteHost("dahosting\\.org\/dl\/\\w+","//a[contains(@href,'dahosting.org/dl')]");
  5394. addObsoleteHost("digisofts\\.net\/\\w+","//a[contains(@href,'digisofts.net')]");
  5395. addObsoleteHost("file4save\\.com\/\\w+\/\\w+","//a[contains(@href,'file4save.com')]");
  5396. addObsoleteHost("filereactor\\.com\/\\w+","//a[contains(@href,'filereactor.com/')]");
  5397. addObsoleteHost("filechip\\.com\/\\w+","//a[contains(@href,'filechip.com')]");
  5398. addObsoleteHost("filescloud\\.com\/\\w+\/\\w+","//a[contains(@href,'filescloud.com')]");
  5399. addObsoleteHost("saveqube\\.com\/getfile\/\\w+","//a[contains(@href,'saveqube.com/getfile')]");
  5400. addObsoleteHost("www2\\.turboshare\\.de\/v\/\\d+","//a[contains(@href,'turboshare.de/v')]");
  5401. addObsoleteHost("z-upload\\.com\/\\w+","//a[contains(@href,'z-upload.com')]");
  5402. addObsoleteHost("youshare\\.com\/view\\.php","//a[contains(@href,'youshare.com/view')]");
  5403. addObsoleteHost("jiffyupload\\.com\/\\w+","//a[contains(@href,'jiffyupload.com')]");
  5404. addObsoleteHost("gigeshare\\.com\/preview\/\\w+","//a[contains(@href,'gigeshare.com')]");
  5405. addObsoleteHost("datenklo\\.net\/dl","//a[contains(@href,'datenklo.net')]");
  5406. addObsoleteHost("upload\\.dj\/download\\.php\\?id=\\w+","//a[contains(@href,'upload.dj/download.php')]");
  5407. addObsoleteHost("loadfiles\\.in\/\\w+\/","//a[contains(@href,'loadfiles.in')]");
  5408. addObsoleteHost("upit\\.to\/file:\\w+\/","//a[contains(@href,'upit.to/file')]");
  5409. addObsoleteHost("zshare\\.net\/(?:download|video|audio)\/\\w+","//a[contains(@href,'zshare.net/')]");
  5410. addObsoleteHost("refile\\.net\/f\/\\?\\w+","//a[contains(@href,'refile.net/f/')]");
  5411. addObsoleteHost("dsfileshare\\.com\/download","//a[contains(@href,'dsfileshare.com/download')]");
  5412. addObsoleteHost("sharesimple\\.net\/\\w{2}\/download","//a[contains(@href,'sharesimple.net')]");
  5413. addObsoleteHost("(?:s\\d+\\.|)4files\\.net\/\\d+","//a[contains(@href,'4files.net')]");
  5414. addObsoleteHost("odsiebie\\.com\/pokaz\/\\d+","//a[contains(@href,'odsiebie.com/pokaz')]");
  5415. addObsoleteHost("filenavi\\.com\/direct\/\\w+","//a[contains(@href,'filenavi.com/direct')]");
  5416. addObsoleteHost("3oof\\.com\/\\w+","//a[contains(@href,'3oof.com/')]");
  5417. addObsoleteHost("meshwaar\\.com\/\\w+","//a[contains(@href,'meshwaar.com')]");
  5418. addObsoleteHost("maxupload\\.com\/files\/\\w+","//a[contains(@href,'maxupload.com/files')]");
  5419. addObsoleteHost("share\\.cx\/videos\/\\d+","//a[contains(@href,'share.cx/videos')]");
  5420. addObsoleteHost("atserver\\.eu\/(?:\\w{2}\/|)download\/\\d+","//a[contains(@href,'atserver.eu')]");
  5421. addObsoleteHost("file2upload\\.net\/download\/\\d+","//a[contains(@href,'file2upload.net/download')]");
  5422. addObsoleteHost("filebling\\.com\/\\w+","//a[contains(@href,'filebling.com')]");
  5423. addObsoleteHost("turboshare\\.(?:eu|com)\/files","//a[contains(@href,'turboshare.') and contains(@href,'/files')]");
  5424. addObsoleteHost("rarhost\\.com\/download","//a[contains(@href,'rarhost.com/download')]");
  5425. addObsoleteHost("isharehd\\.com\/\\w+","//a[contains(@href,'isharehd.com')]");
  5426. addObsoleteHost("datenklo\\.net\/file\\.php\\?id=\\w+","//a[contains(@href,'datenklo.net/file.php')]");
  5427. addObsoleteHost("file2share\\.biz\/download\\.php\\?id=\\w+","//a[contains(@href,'file2share.biz/download.php')]");
  5428. addObsoleteHost("savefiles\\.net\/d\/\\w+\\.html","//a[contains(@href,'savefiles.net/d')]");
  5429. addObsoleteHost("bestsharing\\.com\/files\/\\w+","//a[contains(@href,'bestsharing.com/files')]");
  5430. addObsoleteHost("filecache\\.de\/\\d+","//a[contains(@href,'filecache.de/')]");
  5431. addObsoleteHost("i741\\.com\/files\/\\w+","//a[contains(@href,'i741.com/files')]");
  5432. addObsoleteHost("dataup\\.de\/\\d+","//a[contains(@href,'dataup.de')]");
  5433. addObsoleteHost("fofly\\.com\/\\w+","//a[contains(@href,'fofly.com')]");
  5434. addObsoleteHost("shareonall\\.com\/\\w+","//a[contains(@href,'shareonall.com')]");
  5435. addObsoleteHost("sexuploader\\.com\/(?:|..\/)\\?[d|v]=\\w{8}","//a[contains(@href,'sexuploader.com')]");
  5436. addObsoleteHost("mega(upload|video|rotic|porn)\\.com\/(?:|..\/)\\?[d|v|f]=\\w{8}","//a[contains(@href,'megaupload.com') or contains(@href,'megavideo.com') or contains(@href,'megaporn.com') or contains(@href,'megarotic.com')]");
  5437. addObsoleteHost("uploadhyper\\.com\/file\/","//a[contains(@href,'uploadhyper.com')]");
  5438. addObsoleteHost("filespawn\\.com\/file\/","//a[contains(@href,'filespawn.com')]");
  5439. addObsoleteHost("caizzii\\.com\/(?:download|\\?file=)","//a[contains(@href,'caizzii.com')]");
  5440. addObsoleteHost("volnyweb\\.cz\/files\/get\/[\\w-_]+","//a[contains(@href,'volnyweb.cz/files')]");
  5441. addObsoleteHost("gotupload\\.com\/\\w+","//a[contains(@href,'gotupload.com/')]");
  5442. addObsoleteHost("mooload\\.com\/new\/file\\.php\\?file=files\/\\d+\/\\d+","//a[contains(@href,'mooload.com/new/file')]");
  5443. addObsoleteHost("z\\d+\\.zupload\\.com\/download\\.php\\?file=getfile&filepath=\\d+","//a[contains(@href,'zupload.com/download')]");
  5444. addObsoleteHost("mytempdir\\.com\/\\d+","//a[contains(@href,'mytempdir.com/')]");
  5445. addObsoleteHost("usershare\\.net\/\\w+","//a[contains(@href,'usershare.net/')]");
  5446. addObsoleteHost("qshare\\.com\/get\/\\d+\/.","//a[contains(@href,'qshare.com/get')]");
  5447. addObsoleteHost("filescash\\.net\/file\/\\d+","//a[contains(@href,'filescash.net/file')]");
  5448. addObsoleteHost("metahyper\\.com\/\\w+","//a[contains(@href,'metahyper.com/')]");
  5449. addObsoleteHost("combozip\\.com\/\\w+","//a[contains(@href,'combozip.com/')]");
  5450. addObsoleteHost("anonstream\\.com\/get_\\w+","//a[contains(@href,'anonstream.com/get_')]");
  5451. addObsoleteHost("x7\\.to\/\\w+","//a[contains(@href,'x7.to/')]");
  5452. addObsoleteHost("uploadbox\\.com\/files\/\\w+","//a[contains(@href,'uploadbox.com/files')]");
  5453. addObsoleteHost("(?:flyupload\\.)?(?:enterupload|flyupload)\\.com\/[\\?\\w]+","//a[contains(@href,'enterupload.com/') or contains(@href,'flyupload.com/')]");
  5454. addObsoleteHost("filepoint\\.de\/dl\/\\w+","//a[contains(@href,'filepoint.de/dl')]");
  5455. addObsoleteHost("icushare\\.com\/\\w+","//a[contains(@href,'icushare.com/')]");
  5456. addObsoleteHost("oron\\.com\/\\w+","//a[contains(@href,'oron.com/')]");
  5457. addObsoleteHost("mystream\\.to\/file\\-\\d+","//a[contains(@href,'mystream.to/file')]");
  5458. addObsoleteHost("x-fs\\.com\/download\\.php\\?id=\\w+","//a[contains(@href,'x-fs.com/download')]");
  5459. addObsoleteHost("srapid\\.eu\/\\w+","//a[contains(@href,'srapid.eu/')]");
  5460. addObsoleteHost("shareshared\\.com\/\\w+","//a[contains(@href,'shareshared.com/')]");
  5461. addObsoleteHost("sosame\\.cz\/\\w+","//a[contains(@href,'sosame.cz/')]");
  5462. addObsoleteHost("s\\d+\\.filesdump\\.com\/file\/\\w+","//a[contains(@href,'filesdump.com/file')]");
  5463. addObsoleteHost("2-klicks\\.de\/\\?d=\\w+","//a[contains(@href,'2-klicks.de/?d=')]");
  5464. addObsoleteHost("silofiles\\.com\/file\/\\d+","//a[contains(@href,'silofiles.com/file')]");
  5465. addObsoleteHost("upfile\\.in\/\\w+","//a[contains(@href,'upfile.in/')]");
  5466. addObsoleteHost("filehook\\.com\/\\w+","//a[contains(@href,'filehook.com/')]");
  5467. addObsoleteHost("mojofile\\.com\/\\w+","//a[contains(@href,'mojofile.com/')]");
  5468. addObsoleteHost("cloudcache\\.cc\/\\w+","//a[contains(@href,'cloudcache.cc/')]");
  5469. addObsoleteHost("1hostclick\\.com\/\\w+","//a[contains(@href,'1hostclick.com/')]");
  5470. addObsoleteHost("4bytez\\.com\/\\w+","//a[contains(@href,'4bytez.com/')]");
  5471. addObsoleteHost("uploadking\\.com\/\\w+","//a[contains(@href,'uploadking.com/')]");
  5472. addObsoleteHost("nahraj\\.cz\/(?:content|down)\/\\w+","//a[contains(@href,'nahraj.cz/')]");
  5473. addObsoleteHost("megarapid\\.eu\/files\/\\d+","//a[contains(@href,'megarapid.eu/files')]");
  5474. addObsoleteHost("(?:fileserve|uploadstation)\\.com\/(?:file|list)\/\\w+","//a[contains(@href,'fileserve.com/') or contains(@href,'uploadstation.com/')]");
  5475. addObsoleteHost("uploadhere\\.com\/\\w+","//a[contains(@href,'uploadhere.com/')]");
  5476. addObsoleteHost("dualshare\\.com\/\\w+","//a[contains(@href,'dualshare.com/')]");
  5477. addObsoleteHost("yourfilehost\\.com\/media","//a[contains(@href,'yourfilehost.com/media')]");
  5478. addObsoleteHost("ftp2share\\.com\/file\/\\w+","//a[contains(@href,'ftp2share.com/file')]");
  5479. addObsoleteHost("storeandserve\\.com\/download\/\\d+","//a[contains(@href,'storeandserve.com/download')]");
  5480. addObsoleteHost("mountfile\\.com\/file(?:\/\\w+){2}","//a[contains(@href,'mountfile.com/file')]");
  5481. addObsoleteHost("save\\.am\/files\/\\w+","//a[contains(@href,'save.am/files')]");
  5482. addObsoleteHost("transitfiles\\.com\/dl\/\\w+","//a[contains(@href,'transitfiles.com/dl')]");
  5483. addObsoleteHost("smartuploader\\.com\/file\\.php\\?f=\\d+","//a[contains(@href,'smartuploader.com/file.php?=')]");
  5484. addObsoleteHost("skipfile\\.com\/\\w+","//a[contains(@href,'skipfile.com/')]");
  5485. addObsoleteHost("stahnu\\.to\/[\\w\\?]+","//a[contains(@href,'stahnu.to/')]");
  5486. addObsoleteHost("flyshare\.cz\/(?:stahni\/|)\\d+","//a[contains(@href,'flyshare.cz/')]");
  5487. addObsoleteHost("(?:ddlani\\.me|ddlanime\\.com)\/\\w+","//a[contains(@href,'ddlani.me/') or contains(@href,'ddlanime.com/')]");
  5488. addObsoleteHost("loadly\\.com\/\\w+","//a[contains(@href,'loadly.com/')]");
  5489. addObsoleteHost("groovefile\\.com\/\\w+","//a[contains(@href,'groovefile.com/')]");
  5490. addObsoleteHost("filezlot\\.com\/\\w+","//a[contains(@href,'filezlot.com/')]");
  5491. addObsoleteHost("shareator\\.(?:net|com)\/\\w+","//a[contains(@href,'shareator.')]");
  5492. addObsoleteHost("yabadaba\\.ru\/files\/","//a[contains(@href,'yabadaba.ru/files/')]");
  5493. addObsoleteHost("rapidhide\\.com\/download\\.php\\?file=\\w+","//a[contains(@href,'rapidhide.com/download.php')]");
  5494. addObsoleteHost("filejungle\\.com\/[fl]\/\\w+","//a[contains(@href,'filejungle.com/')]");
  5495. addObsoleteHost("kewlshare\\.com\/dl\/\\d+","//a[contains(@href,'kewlshare.com/dl')]");
  5496. addObsoleteHost("petandrive\\.com\/file\/\\w+","//a[contains(@href,'petandrive.com/file')]");
  5497. addObsoleteHost("onionshare\\.com\/\\w+","//a[contains(@href,'onionshare.com/')]");
  5498. addObsoleteHost("rapidable\\.com\/\\w+\/download\\.php\\?id=","//a[contains(@href,'rapidable.com/')]");
  5499. addObsoleteHost("filesdump\\.com\/file\/\\w+\/\\d+","//a[contains(@href,'filesdump.com/file')]");
  5500. addObsoleteHost("file2box\\.(?:net|com)\/\\w+","//a[contains(@href,'file2box.')]");
  5501. addObsoleteHost("(?:filesonic|sharingmatrix|wupload)(?:\\.\\w+){1,2}\/(?:file|folder)\/\\w+","//a[contains(@href,'filesonic.') or contains(@href,'sharingmatrix.com') or contains(@href,'wupload.')]");
  5502. addObsoleteHost("bloggerarticles\\.com\/\\w+","//a[contains(@href,'bloggerarticles.com/')]");
  5503. addObsoleteHost("mojedata\\.sk/","//a[contains(@href,'mojedata.sk/')]");
  5504. addObsoleteHost("sharpfile\\.com\/\\w+","//a[contains(@href,'sharpfile.com/')]");
  5505. addObsoleteHost("upgrand\\.com\/\\w+","//a[contains(@href,'upgrand.com/')]");
  5506. addObsoleteHost("nasdilej\\.cz\/\\w+","//a[contains(@href,'nasdilej.cz/')]");
  5507. addObsoleteHost("mediatack\\.cz\/stahuj/\\w+","//a[contains(@href,'mediatack.cz/stahuj/')]");
  5508. addObsoleteHost("share-it\\.to\/file/\\w+","//a[contains(@href,'share-it.to/file/')]");
  5509. addObsoleteHost("primeupload\\.com\/file/\\w+","//a[contains(@href,'primeupload.com/file/')]");
  5510. addObsoleteHost("(?:uploads\\.glumbo|glumbouploads)\\.com\/\\w+","//a[contains(@href,'uploads.glumbo.com') or contains(@href,'glumbouploads.com')]");
  5511. addObsoleteHost("filebeer\\.info\/\\w+","//a[contains(@href,'filebeer.info/')]");
  5512. addObsoleteHost("baberepublic\\.com\/link\/\\w+","//a[contains(@href,'baberepublic.com/link/')]");
  5513. addObsoleteHost("xtu\\.me\/\\w+","//a[contains(@href,'xtu.me/')]");
  5514. addObsoleteHost("sharebase\\.de\/files\/\\w+","//a[contains(@href,'sharebase.de/files/')]");
  5515. addObsoleteHost("filerobo\\.com\/\\w+","//a[contains(@href,'filerobo.com/')]");
  5516. addObsoleteHost("filevelocity\\.com\/\\w+","//a[contains(@href,'filevelocity.com/')]");
  5517. addObsoleteHost("filezpro\\.com\/\\w+","//a[contains(@href,'filezpro.com/')]");
  5518. addObsoleteHost("file4sharing\\.com\/\\w+","//a[contains(@href,'file4sharing.com/')]");
  5519. addObsoleteHost("cing\\.be\/\\w+","//a[contains(@href,'cing.be/')]");
  5520. addObsoleteHost("ufile\\.eu\/\\w+","//a[contains(@href,'ufile.eu/')]");
  5521. addObsoleteHost("pigsonic\\.com\/\\w+","//a[contains(@href,'pigsonic.com/')]");
  5522. addObsoleteHost("fileupped\\.com\/\\w+","//a[contains(@href,'fileupped.com/')]");
  5523. addObsoleteHost("sharerun\\.com\/\\w+","//a[contains(@href,'sharerun.com/')]");
  5524. addObsoleteHost("rapidslnare\\.com\/\\w+","//a[contains(@href,'rapidslnare.com/')]");
  5525. addObsoleteHost("monsteruploads\\.eu\/\\w+","//a[contains(@href,'monsteruploads.eu/')]");
  5526. addObsoleteHost("b9bb\\.com\/\\w+","//a[contains(@href,'b9bb.com/')]");
  5527. addObsoleteHost("jamber\\.info\/\\w+","//a[contains(@href,'jamber.info/')]");
  5528. addObsoleteHost("(?:megaftp|MegaFTP)\\.com\/\\w+","//a[contains(@href,'megaftp.com/') or contains(@href,'MegaFTP.com/')]");
  5529. addObsoleteHost("desiupload\\.net\/\\?d=\\w+","//a[contains(@href,'desiupload.net/')]");
  5530. addObsoleteHost("file27\\.com\/\\w+","//a[contains(@href,'file27.com/')]");
  5531. addObsoleteHost("yastorage\\.com\/\\w+","//a[contains(@href,'yastorage.com/')]");
  5532. addObsoleteHost("filehost\\.ws\/\\w+","//a[contains(@href,'filehost.ws/')]");
  5533. addObsoleteHost("copyload\\.com\/\\w+","//a[contains(@href,'copyload.com/')]");
  5534. addObsoleteHost("venusfile\\.com\/\\w+","//a[contains(@href,'venusfile.com/')]");
  5535. addObsoleteHost("aieshare\\.com\/\\w+","//a[contains(@href,'aieshare.com/')]");
  5536. addObsoleteHost("fileza\\.net\/\\w+","//a[contains(@href,'fileza.net/')]");
  5537. addObsoleteHost("filerose\\.com\/\\w+","//a[contains(@href,'filerose.com/')]");
  5538. addObsoleteHost("squillion\\.com\/\\w+","//a[contains(@href,'squillion.com/')]");
  5539. addObsoleteHost("fileprohost\\.com\/\\w+","//a[contains(@href,'fileprohost.com/')]");
  5540. addObsoleteHost("bitbonus\\.com\/download\/\\w+","//a[contains(@href,'bitbonus.com/')]");
  5541. addObsoleteHost("warserver\\.cz\/\\w+","//a[contains(@href,'warserver.cz/')]");
  5542. addObsoleteHost("uload\\.to\/\\w+","//a[contains(@href,'uload.to/')]");
  5543. addObsoleteHost("sharedbit\\.net\/\\w+","//a[contains(@href,'sharedbit.net/')]");
  5544. addObsoleteHost("megaload\\.it\/\\w+","//a[contains(@href,'megaload.it/')]");
  5545. addObsoleteHost("filewinds\\.com\/\\w+","//a[contains(@href,'filewinds.com/')]");
  5546. addObsoleteHost("uploadcore\\.com\/\\w+","//a[contains(@href,'uploadcore.com/')]");
  5547. addObsoleteHost("syfiles\\.com\/\\w+","//a[contains(@href,'syfiles.com/')]");
  5548. addObsoleteHost("eyesfile\\.com\/\\w+","//a[contains(@href,'eyesfile.com/')]");
  5549. addObsoleteHost("hotfile\\.com\/\\w+","//a[contains(@href,'hotfile.com/')]");
  5550. addObsoleteHost("superupl\\.com\/\\w+","//a[contains(@href,'superupl.com/')]");
  5551. addObsoleteHost("oteupload\\.com\/\\w+","//a[contains(@href,'oteupload.com/')]");
  5552. addObsoleteHost("henchfile\\.com\/\\w+","//a[contains(@href,'henchfile.com/')]");
  5553. addObsoleteHost("HenchFile\\.com\/\\w+","//a[contains(@href,'HenchFile.com/')]");
  5554. addObsoleteHost("filegag\\.com\/\\w+","//a[contains(@href,'filegag.com/')]");
  5555. addObsoleteHost("filedefend\\.com\/\\w+","//a[contains(@href,'filedefend.com/')]");
  5556. addObsoleteHost("hotfiles\\.ws\/\\w+","//a[contains(@href,'hotfiles.ws/')]");
  5557. addObsoleteHost("share-rapid\\.com\/\\w+","//a[contains(@href,'share-rapid.com/')]");
  5558. addObsoleteHost("rapids\\.cz\/\\w+","//a[contains(@href,'rapids.cz/')]");
  5559. addObsoleteHost("share-credit\\.cz\/\\w+","//a[contains(@href,'share-credit.cz/')]");
  5560. addObsoleteHost("share-central\\.cz\/\\w+","//a[contains(@href,'share-central.cz/')]");
  5561. addObsoleteHost("share-ms\\.cz\/\\w+","//a[contains(@href,'share-ms.cz/')]");
  5562. addObsoleteHost("share-net\\.cz\/\\w+","//a[contains(@href,'share-net.cz/')]");
  5563. addObsoleteHost("srapid\\.cz\/\\w+","//a[contains(@href,'srapid.cz/')]");
  5564. addObsoleteHost("share-rapid\\.cz\/\\w+","//a[contains(@href,'share-rapid.cz/')]");
  5565. addObsoleteHost("wooupload\\.com\/\\w+","//a[contains(@href,'wooupload.com/')]");
  5566. addObsoleteHost("megabitshare\\.com\/\\w+","//a[contains(@href,'megabitshare.com/')]");
  5567. addObsoleteHost("uploking\\.com\/\\w+","//a[contains(@href,'uploking.com/')]");
  5568. addObsoleteHost("esnips\\.com\/\\w+","//a[contains(@href,'esnips.com/')]");
  5569. addObsoleteHost("uplly\\.com\/\\w+","//a[contains(@href,'uplly.com/')]");
  5570. addObsoleteHost("ufox\\.com\/\\w+","//a[contains(@href,'ufox.com/')]");
  5571. addObsoleteHost("clz\\.to\/\\w+","//a[contains(@href,'clz.to/')]");
  5572. addObsoleteHost("cloudzer\\.net\/\\w+","//a[contains(@href,'cloudzer.net/')]");
  5573. addObsoleteHost("cloudzer\\.com\/\\w+","//a[contains(@href,'cloudzer.com/')]");
  5574. addObsoleteHost("extabit\\.com\/\\w+","//a[contains(@href,'extabit.com/')]");
  5575. addObsoleteHost("uploadwaste\\.com\/\\w+","//a[contains(@href,'uploadwaste.com/')]");
  5576. addObsoleteHost("247upload\\.com\/\\w+","//a[contains(@href,'uploadwaste.com/')]");
  5577. addObsoleteHost("2download\\.de\/\\w+","//a[contains(@href,'2download.de/')]");
  5578. addObsoleteHost("4fastfile\\.com\/\\w+","//a[contains(@href,'4fastfile.com/')]");
  5579. addObsoleteHost("asixfiles\\.com\/\\w+","//a[contains(@href,'asixfiles.com/')]");
  5580. addObsoleteHost("berofile\\.com\/\\w+","//a[contains(@href,'berofile.com/')]");
  5581. addObsoleteHost("bigupload\\.com\/\\w+","//a[contains(@href,'bigupload.com/')]");
  5582. addObsoleteHost("cepzo\\.com\/\\w+","//a[contains(@href,'cepzo.com/')]");
  5583. addObsoleteHost("czshare\\.com\/\\w+","//a[contains(@href,'czshare.com/')]");
  5584. addObsoleteHost("clouds\\.to\/\\w+","//a[contains(@href,'clouds.to/')]");
  5585. addObsoleteHost("cobrashare\\.sk\/\\w+","//a[contains(@href,'cobrashare.sk/')]");
  5586. addObsoleteHost("coraldrive\\.net\/\\w+","//a[contains(@href,'coraldrive.net/')]");
  5587. addObsoleteHost("cyberlocker\\.ch\/\\w+","//a[contains(@href,'cyberlocker.ch/')]");
  5588. addObsoleteHost("darkport\\.org\/\\w+","//a[contains(@href,'darkport.org/')]");
  5589. addObsoleteHost("dark-uploads\\.com\/\\w+","//a[contains(@href,'dark-uploads.com/')]");
  5590. addObsoleteHost("davvas\\.com\/\\w+","//a[contains(@href,'davvas.com/')]");
  5591. addObsoleteHost("enigmashare\\.com\/\\w+","//a[contains(@href,'enigmashare.com/')]");
  5592. addObsoleteHost("erofly\\.cz\/\\w+","//a[contains(@href,'erofly.cz/')]");
  5593. addObsoleteHost("fastsonic\\.net\/\\w+","//a[contains(@href,'fastsonic.net/')]");
  5594. addObsoleteHost("filebox\\.com\/\\w+","//a[contains(@href,'filebox.com/')]");
  5595. addObsoleteHost("filecity\\.net\/\\w+","//a[contains(@href,'filecity.net/')]");
  5596. addObsoleteHost("filedap\\.com\/\\w+","//a[contains(@href,'filedap.com/')]");
  5597. addObsoleteHost("filedino\\.com\/\\w+","//a[contains(@href,'filedino.com/')]");
  5598. addObsoleteHost("filedownloads\\.org\/\\w+","//a[contains(@href,'filedownloads.org/')]");
  5599. addObsoleteHost("filefolks\\.com\/\\w+","//a[contains(@href,'filefolks.com/')]");
  5600. addObsoleteHost("fileking\\.co\/\\w+","//a[contains(@href,'fileking.co/')]");
  5601. addObsoleteHost("filemates\\.com\/\\w+","//a[contains(@href,'filemates.com/')]");
  5602. addObsoleteHost("files\\.to\/\\w+","//a[contains(@href,'files.to/')]");
  5603. addObsoleteHost("files2k\\.eu\/\\w+","//a[contains(@href,'files2k.eu/')]");
  5604. addObsoleteHost("filesector\\.cc\/\\w+","//a[contains(@href,'filesector.cc/')]");
  5605. addObsoleteHost("filesega\\.com\/\\w+","//a[contains(@href,'filesega.com/')]");
  5606. addObsoleteHost("filesend\\.net\/\\w+","//a[contains(@href,'filesend.net/')]");
  5607. addObsoleteHost("filestay\\.com\/\\w+","//a[contains(@href,'filestay.com/')]");
  5608. addObsoleteHost("filestrum\\.com\/\\w+","//a[contains(@href,'filestrum.com/')]");
  5609. addObsoleteHost("fileuplo\\.de\/\\w+","//a[contains(@href,'fileuplo.de/')]");
  5610. addObsoleteHost("fileupup\\.com\/\\w+","//a[contains(@href,'fileupup.com/')]");
  5611. addObsoleteHost("forunesia\\.com\/\\w+","//a[contains(@href,'forunesia.com/')]");
  5612. addObsoleteHost("freeuploads\\.fr\/\\w+","//a[contains(@href,'freeuploads.fr/')]");
  5613. addObsoleteHost("uploa\\.dk\/\\w+","//a[contains(@href,'uploa.dk/')]");
  5614. addObsoleteHost("getthebit\\.com\/\\w+","//a[contains(@href,'getthebit.com/')]");
  5615. addObsoleteHost("getzilla\\.net\/\\w+","//a[contains(@href,'getzilla.net/')]");
  5616. addObsoleteHost("goldfile\\.eu\/\\w+","//a[contains(@href,'goldfile.eu/')]");
  5617. addObsoleteHost("good\\.com\/\\w+","//a[contains(@href,'good.com/')]");
  5618. addObsoleteHost("grupload\\.com\/\\w+","//a[contains(@href,'grupload.com/')]");
  5619. addObsoleteHost("hellfile\\.com\/\\w+","//a[contains(@href,'hellfile.com/')]");
  5620. addObsoleteHost("hipfile\\.com\/\\w+","//a[contains(@href,'hipfile.com/')]");
  5621. addObsoleteHost("hitfile\\.com\/\\w+","//a[contains(@href,'hitfile.com/')]");
  5622. addObsoleteHost("hulkfile\\.eu\/\\w+","//a[contains(@href,'hulkfile.eu/')]");
  5623. addObsoleteHost("i-filez\\.com\/\\w+","//a[contains(@href,'i-filez.com/')]");
  5624. addObsoleteHost("ifile\\.ws\/\\w+","//a[contains(@href,'ifile.ws/')]");
  5625. addObsoleteHost("kupload\\.org\/\\w+","//a[contains(@href,'kupload.org/')]");
  5626. addObsoleteHost("duckfile\\.net\/\\w+","//a[contains(@href,'duckfile.net/')]");
  5627. addObsoleteHost("packupload\\.com\/\\w+","//a[contains(@href,'packupload.com/')]");
  5628. addObsoleteHost("terafile\\.com\/\\w+","//a[contains(@href,'terafile.com/')]");
  5629. addObsoleteHost("terafile\\.co\/\\w+","//a[contains(@href,'terafile.co/')]");
  5630. addObsoleteHost("fileom\\.com\/\\w+","//a[contains(@href,'fileom.com/')]");
  5631. addObsoleteHost("luckyshare\\.net\/\\w+","//a[contains(@href,'luckyshare.net/')]");
  5632. addObsoleteHost("lemuploads\\.com\/\\w+","//a[contains(@href,'lemuploads.com/')]");
  5633. addObsoleteHost("limelinx\\.com\/\\w+","//a[contains(@href,'limelinx.com/')]");
  5634. addObsoleteHost("maxshare\\.pl\/\\w+","//a[contains(@href,'maxshare.pl/')]");
  5635. addObsoleteHost("megarelease\\.org\/\\w+","//a[contains(@href,'megarelease.org/')]");
  5636. addObsoleteHost("megashare\\.com\/\\w+","//a[contains(@href,'megashare.com/')]");
  5637. addObsoleteHost("minus\\.com\/\\w+","//a[contains(@href,'minus.com/')]");
  5638. addObsoleteHost("mlfat4arab\\.com\/\\w+","//a[contains(@href,'mlfat4arab.com/')]");
  5639. addObsoleteHost("multishare\\.cz\/\\w+","//a[contains(@href,'multishare.cz/')]");
  5640. addObsoleteHost("nirafile\\.com\/\\w+","//a[contains(@href,'nirafile.com/')]");
  5641. addObsoleteHost("ok2upload\\.com\/\\w+","//a[contains(@href,'ok2upload.com/')]");
  5642. addObsoleteHost("peejeshare\\.com\/\\w+","//a[contains(@href,'peejeshare.com/')]");
  5643. addObsoleteHost("premiuns\\.org\/\\w+","//a[contains(@href,'premiuns.org/')]");
  5644. addObsoleteHost("przeklej\\.net\/\\w+","//a[contains(@href,'przeklej.net/')]");
  5645. addObsoleteHost("qkup\\.net\/\\w+","//a[contains(@href,'qkup.net/')]");
  5646. addObsoleteHost("rapidupload\\.sk\/\\w+","//a[contains(@href,'rapidupload.sk/')]");
  5647. addObsoleteHost("rockdizfile\\.com\/\\w+","//a[contains(@href,'rockdizfile.com/')]");
  5648. addObsoleteHost("rocketfile\\.net\/\\w+","//a[contains(@href,'rocketfile.net/')]");
  5649. addObsoleteHost("share-now\\.net\/\\w+","//a[contains(@href,'share-now.net/')]");
  5650. addObsoleteHost("share76\\.com\/\\w+","//a[contains(@href,'share76.com/')]");
  5651. addObsoleteHost("sharebees\\.com\/\\w+","//a[contains(@href,'sharebees.com/')]");
  5652. addObsoleteHost("sharefiles\\.co\/\\w+","//a[contains(@href,'sharefiles.co/')]");
  5653. addObsoleteHost("slingfile\\.com\/\\w+","//a[contains(@href,'slingfile.com/')]");
  5654. addObsoleteHost("sms4file\\.com\/\\w+","//a[contains(@href,'sms4file.com/')]");
  5655. addObsoleteHost("space4file\\.com\/\\w+","//a[contains(@href,'space4file.com/')]");
  5656. addObsoleteHost("tigershare\\.net\/\\w+","//a[contains(@href,'tigershare.net/')]");
  5657. addObsoleteHost("toucansharing\\.com\/\\w+","//a[contains(@href,'toucansharing.com/')]");
  5658. addObsoleteHost("ubuntuone\\.com\/\\w+","//a[contains(@href,'ubuntuone.com/')]");
  5659. addObsoleteHost("unextfiles\\.com\/\\w+","//a[contains(@href,'unextfiles.com/')]");
  5660. addObsoleteHost("upaj\\.pl\/\\w+","//a[contains(@href,'upaj.pl/')]");
  5661. addObsoleteHost("upfile\\.biz\/\\w+","//a[contains(@href,'upfile.biz/')]");
  5662. addObsoleteHost("uploadbin\\.net\/\\w+","//a[contains(@href,'uploadbin.net/')]");
  5663. addObsoleteHost("uploadic\\.com\/\\w+","//a[contains(@href,'uploadic.com/')]");
  5664. addObsoleteHost("uploadinc\\.com\/\\w+","//a[contains(@href,'uploadinc.com/')]");
  5665. addObsoleteHost("uploading4u\\.eu\/\\w+","//a[contains(@href,'uploading4u.eu/')]");
  5666. addObsoleteHost("uploadjet\\.net\/\\w+","//a[contains(@href,'uploadjet.net/')]");
  5667. addObsoleteHost("uploadorb\\.com\/\\w+","//a[contains(@href,'uploadorb.com/')]");
  5668. addObsoleteHost("upthe\\.net\/\\w+","//a[contains(@href,'upthe.net/')]");
  5669. addObsoleteHost("uptorch\\.com\/\\w+","//a[contains(@href,'uptorch.com/')]");
  5670. addObsoleteHost("vidbox\\.yt\/\\w+","//a[contains(@href,'vidbox.yt/')]");
  5671. addObsoleteHost("videozer\\.com\/\\w+","//a[contains(@href,'videozer.com/')]");
  5672. addObsoleteHost("vreer\\.com\/\\w+","//a[contains(@href,'vreer.com/')]");
  5673. addObsoleteHost("wallobit\\.com\/\\w+","//a[contains(@href,'wallobit.com/')]");
  5674. addObsoleteHost("zooupload\\.com\/\\w+","//a[contains(@href,'zooupload.com/')]");
  5675. addObsoleteHost("xerver\\.co\/\\w+","//a[contains(@href,'xerver.co/')]");
  5676. addObsoleteHost("privatefiles\\.com\/\\w+","//a[contains(@href,'privatefiles.com/')]");
  5677. addObsoleteHost("bitshare\\.com\/\\w+","//a[contains(@href,'bitshare.com/')]");
  5678. addObsoleteHost("asfile\\.com\/\\w+","//a[contains(@href,'asfile.com/')]");
  5679. addObsoleteHost("billionuploads\\.com\/\\w+","//a[contains(@href,'billionuploads.com/')]");
  5680. addObsoleteHost("\\*{7,100}\/[\\w\\d]+","//a[contains(@href,'*******/')]");
  5681. addObsoleteHost("filesaur\\.com\/\\w+","//a[contains(@href,'filesaur.com/')]");
  5682. addObsoleteHost("rapidshare\\.com\/\\w+","//a[contains(@href,'rapidshare.com/')]");
  5683. addObsoleteHost("rapidshare\\.ru\/\\w+","//a[contains(@href,'rapidshare.ru/')]");
  5684. addObsoleteHost("filesfrog\\.net\/\\w+","//a[contains(@href,'filesfrog.net/')]");
  5685. addObsoleteHost("4savefile\\.com\/\\w+","//a[contains(@href,'4savefile.com/')]");
  5686. addObsoleteHost("bayfiles\\.com\/\\w+","//a[contains(@href,'bayfiles.com/')]");
  5687. addObsoleteHost("bayfiles\\.net\/\\w+","//a[contains(@href,'bayfiles.net/')]");
  5688. addObsoleteHost("dodane\\.pl\/\\w+","//a[contains(@href,'dodane.pl/')]");
  5689. addObsoleteHost("dotsemper\\.com\/\\w+","//a[contains(@href,'dotsemper.com/')]");
  5690. addObsoleteHost("egofiles\\.com\/\\w+","//a[contains(@href,'egofiles.com/')]");
  5691. addObsoleteHost("epicshare\\.net\/\\w+","//a[contains(@href,'epicshare.net/')]");
  5692. addObsoleteHost("fiberupload\\.net\/\\w+","//a[contains(@href,'fiberupload.net/')]");
  5693. addObsoleteHost("filemonkey\\.in\/\\w+","//a[contains(@href,'filemonkey.in/')]");
  5694. addObsoleteHost("filemonster\\.net\/\\w+","//a[contains(@href,'filemonster.net/')]");
  5695. addObsoleteHost("filepom\\.com\/\\w+","//a[contains(@href,'filepom.com/')]");
  5696. addObsoleteHost("filesbb\\.com\/\\w+","//a[contains(@href,'filesbb.com/')]");
  5697. addObsoleteHost("fileshareup\\.com\/\\w+","//a[contains(@href,'fileshareup.com/')]");
  5698. addObsoleteHost("filevice\\.com\/\\w+","//a[contains(@href,'filevice.com/')]");
  5699. addObsoleteHost("gigaup\\.fr\/\\w+","//a[contains(@href,'gigaup.fr/')]");
  5700. addObsoleteHost("isavelink\\.com\/\\w+","//a[contains(@href,'isavelink.com/')]");
  5701. addObsoleteHost("loombo\\.com\/\\w+","//a[contains(@href,'loombo.com/')]");
  5702. addObsoleteHost("megafiles\\.se\/\\w+","//a[contains(@href,'megafiles.se/')]");
  5703. addObsoleteHost("migupload\\.com\/\\w+","//a[contains(@href,'migupload.com/')]");
  5704. addObsoleteHost("mydisc\\.net\/\\w+","//a[contains(@href,'mydisc.net/')]");
  5705. addObsoleteHost("nitrobits\\.com\/\\w+","//a[contains(@href,'nitrobits.com/')]");
  5706. addObsoleteHost("potload\\.com\/\\w+","//a[contains(@href,'potload.com/')]");
  5707. addObsoleteHost("redload\\.net\/\\w+","//a[contains(@href,'redload.net/')]");
  5708. addObsoleteHost("shareprofi\\.com\/\\w+","//a[contains(@href,'shareprofi.com/')]");
  5709. addObsoleteHost("sharesuper\\.info\/\\w+","//a[contains(@href,'sharesuper.info/')]");
  5710. addObsoleteHost("sinhro\\.net\/\\w+","//a[contains(@href,'sinhro.net/')]");
  5711. addObsoleteHost("speedfile\\.cz\/\\w+","//a[contains(@href,'speedfile.cz/')]");
  5712. addObsoleteHost("speedshare\\.org\/\\w+","//a[contains(@href,'speedshare.org/')]");
  5713. addObsoleteHost("storage.novoro\\.net\/\\w+","//a[contains(@href,'storage.novoro.net/')]");
  5714. addObsoleteHost("swankshare\\.com\/\\w+","//a[contains(@href,'swankshare.com/')]");
  5715. addObsoleteHost("swatupload\\.com\/\\w+","//a[contains(@href,'swatupload.com/')]");
  5716. addObsoleteHost("upafile\\.com\/\\w+","//a[contains(@href,'upafile.com/')]");
  5717. addObsoleteHost("uploadmachine\\.com\/\\w+","//a[contains(@href,'uploadmachine.com/')]");
  5718. addObsoleteHost("uploadsat\\.com\/\\w+","//a[contains(@href,'uploadsat.com/')]");
  5719. addObsoleteHost("upshared\\.com\/\\w+","//a[contains(@href,'upshared.com/')]");
  5720. addObsoleteHost("usefile\\.com\/\\w+","//a[contains(@href,'usefile.com/')]");
  5721. addObsoleteHost("yourfiles\\.to\/\\w+","//a[contains(@href,'yourfiles.to/')]");
  5722. addObsoleteHost("zomgupload\\.com\/\\w+","//a[contains(@href,'zomgupload.com/')]");
  5723. addObsoleteHost("~[\\w\\s~]*","//a[contains(@href,'//~') or contains(@href,'//www.~')]");
  5724. addObsoleteHost("filemup\\.com\/\\w+","//a[contains(@href,'filemup.com/')]");
  5725. addObsoleteHost("tuxfile\\.com\/\\w+","//a[contains(@href,'tuxfile.com/')]");
  5726. addObsoleteHost("ultramegabit\\.com\/\\w+","//a[contains(@href,'ultramegabit.com/')]");
  5727. addObsoleteHost("uploadto\\.us\/\\w+","//a[contains(@href,'uploadto.us/')]");
  5728. addObsoleteHost("filecore\\.co\\.nz\/\\w+","//a[contains(@href,'filecore.co.nz/')]");
  5729. addObsoleteHost("fileshare\\.in\\.ua\/\\w+","//a[contains(@href,'fileshare.in.ua/')]");
  5730. addObsoleteHost("firedrive\\.com\/\\w+","//a[contains(@href,'firedrive.com/')]");
  5731. addObsoleteHost("putlocker\\.com\/\\w+","//a[contains(@href,'putlocker.com/')]");
  5732. addObsoleteHost("lumfile\\.com\/\\w+","//a[contains(@href,'lumfile.com/')]");
  5733. addObsoleteHost("lumfile\\.se\/\\w+","//a[contains(@href,'lumfile.se/')]");
  5734. addObsoleteHost("lumfile\\.eu\/\\w+","//a[contains(@href,'lumfile.eu/')]");
  5735. addObsoleteHost("shared\\.com\/\\w+","//a[contains(@href,'shared.com/')]");
  5736. addObsoleteHost("stahovadlo\\.cz\/\\w+","//a[contains(@href,'stahovadlo.cz/')]");
  5737. addObsoleteHost("dizzcloud\\.com\/\\w+","//a[contains(@href,'dizzcloud.com/')]");
  5738. addObsoleteHost("ddlstorage\\.com\/\\w+","//a[contains(@href,'ddlstorage.com/')]");
  5739. addObsoleteHost("dataport\\.cz\/\\w+","//a[contains(@href,'dataport.cz/')]");
  5740. addObsoleteHost("daj\\.to\/\\w+","//a[contains(@href,'daj.to/')]");
  5741. addObsoleteHost("sockshare\\.com\/\\w+","//a[contains(@href,'sockshare.com/')]");
  5742. addObsoleteHost("2drive\\.net\/\\w+","//a[contains(@href,'2drive.net/')]");
  5743. addObsoleteHost("bl\\.st\/\\w+","//a[contains(@href,'bl.st/')]");
  5744. addObsoleteHost("uncapped-downloads\\.com\/\\w+","//a[contains(@href,'uncapped-downloads.com/')]");
  5745. addObsoleteHost("freakshare\\.net\/\\w+","//a[contains(@href,'freakshare.net/')]");
  5746. addObsoleteHost("freakshare\\.com\/\\w+","//a[contains(@href,'freakshare.com/')]");
  5747. addObsoleteHost("sharebeast\\.com\/\\w+","//a[contains(@href,'sharebeast.com/')]");
  5748. addObsoleteHost("tufiles\\.ru\/\\w+","//a[contains(@href,'tufiles.ru/')]");
  5749. addObsoleteHost("crisshare\\.com\/\\w+","//a[contains(@href,'crisshare.com/')]");
  5750. addObsoleteHost("ryushare\\.com\/\\w+","//a[contains(@href,'ryushare.com/')]");
  5751. addObsoleteHost("kingfiles\\.net\/\\w+","//a[contains(@href,'kingfiles.net/')]");
  5752. addObsoleteHost("burnupload\\.com\/\\w+","//a[contains(@href,'burnupload.com') or contains(@href,'burnupload.ihiphop.com')]");
  5753. addObsoleteHost("down4files\\.com\/\\w+","//a[contains(@href,'down4files.com/')]");
  5754. addObsoleteHost("edoc\\.com\/\\w+","//a[contains(@href,'edoc.com/')]");
  5755. addObsoleteHost("migahost\\.com\/\\w+","//a[contains(@href,'migahost.com/')]");
  5756. addObsoleteHost("movreel\\.com\/\\w+","//a[contains(@href,'movreel.com/')]");
  5757. addObsoleteHost("newfileland\\.com\/\\w+","//a[contains(@href,'newfileland.com/')]");
  5758. addObsoleteHost("jumbofile\\.net\/\\w+","//a[contains(@href,'jumbofile.net/')]");
  5759. addObsoleteHost("krotix\\.net\/\\w+","//a[contains(@href,'krotix.net/')]");
  5760. addObsoleteHost("cramit\\.in\/\\w+","//a[contains(@href,'cramitin.net') or contains(@href,'cramit.in')]");
  5761. addObsoleteHost("netload\\.in\/\\w+","//a[contains(@href,'netload.in/')]")
  5762. addObsoleteHost("quickshare\\.cz\/\\w+","//a[contains(@href,'quickshare.cz/')]");
  5763. // obsolete start
  5764. }
  5765. //obsolete file hosts init end
  5766. //Add Host Example
  5767. /* if (GM_getValue("Check_datafile_dot_com_links", false))
  5768. {
  5769. addFileHost(
  5770. "datafile\.com\/\\w+",
  5771. 'var captchaPanel|<link href="/css/files_download.css"',
  5772. 'ErrorCode|ErrorCode 0: Invalid Link|btn-orange" href="#"',
  5773. 'You are downloading another file at this moment|You exceeded your free|Site Maintenance',
  5774. '<style type="text/css">',
  5775. "//a[contains(@href,'datafile.com')]",
  5776. true);
  5777. } */
  5778.  
  5779. function addFileHost(linkRegex, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, xpathEx, tryLoop)
  5780. {
  5781. var host = new Array(7);
  5782. host[0] = linkRegex;
  5783. host[1] = isAliveRegex;
  5784. host[2] = isDeadRegex;
  5785. host[3] = isUnavaRegex;
  5786. host[6] = ispremRegex;
  5787. host[4] = xpathEx;
  5788. tryLoop ? host[5] = true : host[5] = false;
  5789. http_file_hosts.push(host);
  5790. }
  5791. if (GM_getValue("Check_megafileupload_dot_com_links", false))
  5792. {
  5793. addFileHost(
  5794. "megafileupload\.com\/..\/file\/",
  5795. 'downloadbtn',
  5796. 'is not found',
  5797. 'optional--',
  5798. 'optional2--',
  5799. "//a[contains(@href,'megafileupload.com')]");
  5800. }
  5801. if (GM_getValue("Check_demo_dot_ovh_dot_eu_links", false))
  5802. {
  5803. addFileHost(
  5804. "demo\\.ovh\\.eu\/\\w+\/\\w+",
  5805. 'download\\.gif"',
  5806. 'p_point">',
  5807. 'optional--',
  5808. 'optional2--',
  5809. "//a[contains(@href,'demo.ovh.eu')]");
  5810. }
  5811. if (GM_getValue("Check_xkeepfile_dot_com_links", false))
  5812. {
  5813. addFileHost(
  5814. "xkeepfile\.com\/\\w+",
  5815. 'File has been found|Click here to download',
  5816. 'File cannot be found|class="error">',
  5817. 'optional--',
  5818. 'optional2--',
  5819. "//a[contains(@href,'xkeepfile.com/') or contains(@href,'Gamesena.com/')]");
  5820. }
  5821. if (GM_getValue("Check_safelinking_dot_net_links", false))
  5822. {
  5823. addFileHost(
  5824. "safelinking\\.net\/p\/\\w+",
  5825. 'color:green;"',
  5826. 'color:(?:red|orange);"',
  5827. 'color:(?:grey|brown);"',
  5828. 'optional2--',
  5829. "//a[contains(@href,'safelinking.net/p/')]",
  5830. true);
  5831. }
  5832. if (GM_getValue("Check_fastshare_dot_cz_links", false))
  5833. {
  5834. addFileHost(
  5835. "fastshare\\.cz\/\\d+\/\\w*",
  5836. 'dwntable">',
  5837. 'nebyla nalezena|nebola nájdená|nie została odnaleziona|color:red;font-weight:bold;border\\-style:dashed|<i class="fa fa-copyright"></i>',
  5838. 'optional--',
  5839. 'optional2--',
  5840. "//a[contains(@href,'fastshare.cz')]");
  5841. }
  5842. if (GM_getValue("Check_fastshare_dot_org_links", false))
  5843. {
  5844. addFileHost(
  5845. "[fF]ast[sS]hare\\.org\/download",
  5846. 'Download ">',
  5847. 'Diese Datei wurde wegen|wurde kein Dateiname',
  5848. 'optional--',
  5849. 'optional2--',
  5850. "//a[contains(@href,'fastshare.org/download') or contains(@href,'FastShare.org/download')]");
  5851. }
  5852. if (GM_getValue("Check_partage_dash_facile_dot_com_links", false))
  5853. {
  5854. addFileHost(
  5855. "partage-facile\.com\/\\w+",
  5856. 'class="title"><strong>|colspan="2"',
  5857. 'Page introuvable|class="alert-message',
  5858. 'optional--',
  5859. 'optional2--',
  5860. "//a[contains(@href,'partage-facile.com')]");
  5861. }
  5862. if (GM_getValue("Check_rapidgator_dot_net_links", false))
  5863. {
  5864. addFileHost(
  5865. "rapidgator\\.net\/file\/\\w+",
  5866. '/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',
  5867. 'Error 404|File not found|Error 500|Файл не найден|ファイルが探せませんでした|Fichier non trouvé|Archivo no encontrado|Select your plan',
  5868. 'optional--',
  5869. 'can be downloaded by premium only|files up to 500 MB in free mode',
  5870. "//a[contains(@href,'rapidgator.net/file')]",
  5871. true
  5872. );
  5873. }
  5874. if (GM_getValue("Check_relink_dot_us_links", false))
  5875. {
  5876. addFileHost(
  5877. "relink\\.us\/(?:f\/\\w+|go\\.php\\?id=\\d+|view\\.php\\?id=\\d+)",
  5878. 'online_detail\\.png" alt="Status',
  5879. '(?:offline|partially)_detail\\.png" alt="Status|File deleted',
  5880. 'unknown_detail\\.png" alt="Status',
  5881. 'optional2--',
  5882. "//a[contains(@href,'relink.us/')]"
  5883. );
  5884. }
  5885. if (GM_getValue("Check_uploadstube_dot_de_links", false))
  5886. {
  5887. addFileHost(
  5888. "uploadstube\\.de\/download\\.php\\?file=\\d+",
  5889. 'div id="dl"',
  5890. 'Sie haben den Link falsch',
  5891. 'optional--',
  5892. 'optional2--',
  5893. "//a[contains(@href,'uploadstube.de/download.php?file=')]"
  5894. );
  5895. }
  5896. if (GM_getValue("Check_flyfiles_dot_net_links", false))
  5897. {
  5898. addFileHost(
  5899. "flyfiles\\.net\/\\w+",
  5900. 'download_button"|"Download file"',
  5901. 'File not found!|Файл не найден',
  5902. 'optional--',
  5903. 'optional2--',
  5904. "//a[contains(@href,'flyfiles.net/')]"
  5905. );
  5906. }
  5907. if (GM_getValue("Check_wikiupload_dot_com_links", false))
  5908. {
  5909. addFileHost(
  5910. "wikiupload\\.com\/\\w+",
  5911. 'download-button">',
  5912. 'Sorry, File not found',
  5913. 'optional--',
  5914. 'optional2--',
  5915. "//a[contains(@href,'wikiupload.com/')]"
  5916. );
  5917. }
  5918. if (GM_getValue("Check_hostuje_dot_net_links", false))
  5919. {
  5920. addFileHost(
  5921. "hostuje\\.net\/file\\.php\\?id=\\w+",
  5922. 'file\\.php">|Pobierz Plik',
  5923. 'Podany plik nie zosta',
  5924. 'optional--',
  5925. 'optional2--',
  5926. "//a[contains(@href,'hostuje.net/file')]"
  5927. );
  5928. }
  5929. if (GM_getValue("Check_gettyfile_dot_ru_links", false))
  5930. {
  5931. addFileHost(
  5932. "gettyfile\\.ru\/\\d+",
  5933. 'download\\.gif border',
  5934. '<center><font size="3">',
  5935. 'optional--',
  5936. 'optional2--',
  5937. "//a[contains(@href,'gettyfile.ru/')]"
  5938. );
  5939. }
  5940. if (GM_getValue("Check_turbobit_dot_ru_links", false))
  5941. {
  5942. addFileHost(
  5943. "(?:turbob1t|failoobmenik|filesmail|firebit|dlbit|files\\.china\\-gsm|3aka4aem|file\\.piratski|mnogofiles|links-free|turbo-bit|turbosfiles)\\.\\w+\/\\w+",
  5944. 'download\\-file">',
  5945. 'col-1">\\s*<h1>',
  5946. 'optional--',
  5947. 'optional2--',
  5948. "//a[contains(@href,'turbobit.ru/') or contains(@href,'filesmail.ru/') or contains(@href,'failoobmenik.ru/')"+
  5949. " or contains(@href,'firebit.in/') or contains(@href,'dlbit.net/') or contains(@href,'files.china-gsm.ru/') or contains(@href,'3aka4aem.ru/')"+
  5950. " or contains(@href,'file.piratski.ru/') or contains(@href,'mnogofiles.com/') or contains(@href,'links-free.ru/')"+
  5951. " or contains(@href,'turbo-bit.ru/') or contains(@href,'turbosfiles.ru/')]"
  5952. );
  5953. }
  5954. if (GM_getValue("Check_data_dot_hu_links", false))
  5955. {
  5956. addFileHost(
  5957. "data\\.hu\/get\/\\d+\/",
  5958. 'download_box_button',
  5959. 'missing\\.php',
  5960. 'optional--',
  5961. 'optional2--',
  5962. "//a[contains(@href,'data.hu/get')]",
  5963. true
  5964. );
  5965. }
  5966. if (GM_getValue("Check_filesmelt_dot_com_links", false))
  5967. {
  5968. addFileHost(
  5969. "filesmelt\\.com\/dl\/\\w+",
  5970. '(Your download is ready|Download File)',
  5971. 'Sorry, but your',
  5972. 'optional--',
  5973. 'optional2--',
  5974. "//a[contains(@href,'filesmelt.com/dl')]"
  5975. );
  5976. }
  5977. if (GM_getValue("Check_indowebster_dot_com_links", false))
  5978. {
  5979. addFileHost(
  5980. "(?:files\\.)?indowebster\\.com\/download\/\\w+\/",
  5981. 'premiumBtn"',
  5982. 'errorMessage"',
  5983. 'optional--',
  5984. 'optional2--',
  5985. "//a[contains(@href,'indowebster.com/download')]"
  5986. );
  5987. }
  5988. if (GM_getValue("Check_superload_dot_cz_links", false))
  5989. {
  5990. addFileHost(
  5991. "superload\\.cz\/dl\/\\w+",
  5992. 'icon-download">',
  5993. 'soubor nebyl nalezen',
  5994. 'optional--',
  5995. 'optional2--',
  5996. "//a[contains(@href,'superload.cz/dl')]"
  5997. );
  5998. }
  5999. if (GM_getValue("Check_hulkfile_dot_eu_links", false))
  6000. {
  6001. addFileHost(
  6002. "(?:w\\.hulkfile\\.com|hulkfile\\.eu)\/\\w+",
  6003. 'op" value="download',
  6004. 'class="err">|width:500px;text-align:left;">',
  6005. 'optional--',
  6006. 'optional2--',
  6007. "//a[contains(@href,'hulkfile.')]"
  6008. );
  6009. }
  6010. if (GM_getValue("Check_easybytez_dot_com_links", false))
  6011. {
  6012. addFileHost(
  6013. "easybytez\\.com\/\\w+",
  6014. 'op" value="download',
  6015. 'stop_error\\.gif',
  6016. 'optional--',
  6017. 'optional2--',
  6018. "//a[contains(@href,'easybytez.com/')]"
  6019. );
  6020. }
  6021. if (GM_getValue("Check_filestore_dot_com_dot_ua_links", false))
  6022. {
  6023. addFileHost(
  6024. "filestore\\.com\\.ua\/\\?d=\\w+",
  6025. 'tdrow1>',
  6026. 'class=warn',
  6027. 'optional--',
  6028. 'optional2--',
  6029. "//a[contains(@href,'filestore.com.ua/?d=')]"
  6030. );
  6031. }
  6032. if (GM_getValue("Check_netkups_dot_com_links", false))
  6033. {
  6034. addFileHost(
  6035. "netkups\\.com\/\\?d=\\w+",
  6036. 'submit">Continue',
  6037. 'page">File not found|deleted due to inactivity',
  6038. 'optional--',
  6039. 'optional2--',
  6040. "//a[contains(@href,'netkups.com/?d=')]"
  6041. );
  6042. }
  6043. if (GM_getValue("Check_openfile_dot_ru_links", false))
  6044. {
  6045. addFileHost(
  6046. "openfile\\.ru\/(?:video\/|)\\d+",
  6047. 'videobox_left">',
  6048. 'blog_title">|not found on this server',
  6049. 'optional--',
  6050. 'optional2--',
  6051. "//a[contains(@href,'openfile.ru/')]"
  6052. );
  6053. }
  6054. if (GM_getValue("Check_extmatrix_dot_com_links", false))
  6055. {
  6056. addFileHost(
  6057. "extmatrix\\.com\/files\/\\w+",
  6058. 'div class="success"',
  6059. 'div class="error"',
  6060. 'optional--',
  6061. 'optional2--',
  6062. "//a[contains(@href,'extmatrix.com/files')]"
  6063. );
  6064. }
  6065. if (GM_getValue("Check_sendfiles_dot_nl_links", false))
  6066. {
  6067. addFileHost(
  6068. "sendfiles\\.nl\/download.aspx\\?ID=\\w+",
  6069. 'content_lnkDownload',
  6070. 'error\\.aspx\\?',
  6071. 'optional--',
  6072. 'optional2--',
  6073. "//a[contains(@href,'sendfiles.nl/download.aspx')]"
  6074. );
  6075. }
  6076. if (GM_getValue("Check_yourfilestore_dot_com_links", false))
  6077. {
  6078. addFileHost(
  6079. "yourfilestore\\.com\/download\/\\d+\/",
  6080. 'download_data">',
  6081. 'may have been deleted|<h1>Sorry!<\/h1>',
  6082. 'optional--',
  6083. 'optional2--',
  6084. "//a[contains(@href,'yourfilestore.com/download')]"
  6085. );
  6086. }
  6087. if (GM_getValue("Check_nekaka_dot_com_links", false))
  6088. {
  6089. addFileHost(
  6090. "nekaka\\.com\/d\/[\\w-]+",
  6091. 'downloadForm">',
  6092. 'invalid file link',
  6093. 'optional--',
  6094. 'optional2--',
  6095. "//a[contains(@href,'nekaka.com/d')]"
  6096. );
  6097. }
  6098. if (GM_getValue("Check_filebig_dot_net_links", false))
  6099. {
  6100. addFileHost(
  6101. "filebig\\.net\/files\/\\w+",
  6102. 'downloadFile">',
  6103. '<p>File not found<\/p>',
  6104. 'optional--',
  6105. 'optional2--',
  6106. "//a[contains(@href,'filebig.net/files')]"
  6107. );
  6108. }
  6109. if (GM_getValue("Check_gamefront_dot_com_links", false))
  6110. {
  6111. addFileHost(
  6112. "files\\.filefront\\.com\/\/;\\d+;;",
  6113. 'downloadLink">',
  6114. 'File not found, you',
  6115. 'optional--',
  6116. 'optional2--',
  6117. "//a[contains(@href,'files.filefront.com')]"
  6118. );
  6119.  
  6120. addFileHost(
  6121. "gamefront\\.com\/files\/\\d+",
  6122. 'downloadLink">',
  6123. 'File not found, you',
  6124. 'optional--',
  6125. 'optional2--',
  6126. "//a[contains(@href,'gamefront.com/files')]"
  6127. );
  6128. }
  6129. if (GM_getValue("Check_hyperfileshare_dot_com_links", false))
  6130. {
  6131. addFileHost(
  6132. "(?:download\\.|)hyperfileshare\\.com\/(?:download\\.php\\?code=|d\/)\\w+",
  6133. 'dnlLnk"',
  6134. 'already been deleted',
  6135. 'optional--',
  6136. 'optional2--',
  6137. "//a[contains(@href,'hyperfileshare.com/download') or contains(@href,'hyperfileshare.com/d')]"
  6138. );
  6139. }
  6140. if (GM_getValue("Check_hellupload_dot_com_links", false))
  6141. {
  6142. addFileHost(
  6143. "hellupload\\.com\/\\w+",
  6144. '<h3>Download File<br',
  6145. 'id="podstrona">|AVOID_IE_BUG',
  6146. 'optional--',
  6147. 'optional2--',
  6148. "//a[contains(@href,'hellupload.com/')]"
  6149. );
  6150. }
  6151. if (GM_getValue("Check_free_dash_uploading_dot_com_links", false))
  6152. {
  6153. addFileHost(
  6154. "free\\-uploading\\.com\/\\w+",
  6155. 'op" value="download',
  6156. 'class="err">|width:500px;text-align:left;">',
  6157. 'optional--',
  6158. 'optional2--',
  6159. "//a[contains(@href,'free-uploading.com/')]"
  6160. );
  6161. }
  6162. if (GM_getValue("Check_fileape_dot_com_links", false))
  6163. {
  6164. addFileHost(
  6165. "fileape\\.com\/download\\-",
  6166. 'button_dl\\.png',
  6167. 'does not exist\\.',
  6168. 'optional--',
  6169. 'optional2--',
  6170. "//a[contains(@href,'fileape.com/')]"
  6171. );
  6172. }
  6173. if (GM_getValue("Check_uppit_dot_com_links", false))
  6174. {
  6175. addFileHost(
  6176. "(?:uppit\\.com|up\\.ht)\/\\w+",
  6177. 'op" value="download',
  6178. 'class="err">|style="width:500px;text-align:left;"|fish-404\\.png"',
  6179. 'optional--',
  6180. 'optional2--',
  6181. "//a[contains(@href,'up.ht/') or contains(@href,'uppit.com/')]",
  6182. true
  6183. );
  6184. }
  6185. if (GM_getValue("Check_nosupload_dot_com_links", false))
  6186. {
  6187. addFileHost(
  6188. "nosupload\\.com\/(?:\\?d=)?\\w+",
  6189. 'op" value="download',
  6190. '>File Not Found<',
  6191. 'optional--',
  6192. 'optional2--',
  6193. "//a[contains(@href,'nosupload.com')]",
  6194. true
  6195. );
  6196. }
  6197. if (GM_getValue("Check_filesin_dot_com_links", false))
  6198. {
  6199. addFileHost(
  6200. "filesin\\.com\/\\w+\/download\\.html",
  6201. 'download_area">',
  6202. 'error_note">',
  6203. 'optional--',
  6204. 'optional2--',
  6205. "//a[contains(@href,'filesin.com/')]",
  6206. true
  6207. );
  6208. }
  6209. if (GM_getValue("Check_nowdownload_dot_ch_links", false))
  6210. {
  6211. addFileHost(
  6212. "nowdownload\\.ch\/dl\/\\w+",
  6213. 'alert-success"',
  6214. 'This file does not exist!',
  6215. 'The file is being transfered',
  6216. 'optional2--',
  6217. "//a[contains(@href,'nowdownload.ch/dl')]"
  6218. );
  6219. }
  6220. if (GM_getValue("Check_axifile_dot_com_links", false))
  6221. {
  6222. addFileHost(
  6223. "axifile\\.com(?:\/\w(2))?\/\\??\\w+",
  6224. 'Dbutton_big"',
  6225. 'download\\-error\\.php',
  6226. 'optional--',
  6227. 'optional2--',
  6228. "//a[contains(@href,'axifile.com/')]"
  6229. );
  6230. }
  6231. if (GM_getValue("Check_hulkshare_dot_com_links", false))
  6232. {
  6233. addFileHost(
  6234. "hulkshare\.com\/\\w+",
  6235. 'download\.sam\.png|This is a private file|id="filename',
  6236. 'File does not exist|fingerprint protected copyright',
  6237. 'optional--',
  6238. 'optional2--',
  6239. "//a[contains(@href,'hulkshare.com')]"
  6240. );
  6241. }
  6242. if (GM_getValue("Check_turbobit_dot_net_links", false)) //folders
  6243. {
  6244. addFileHost(
  6245. "turbobit\\.(?:net|pl)\/download\/folder\/\\d+",
  6246. 'col-1">\\s*<s',
  6247. 'col-1">\\s*<h',
  6248. 'optional--',
  6249. 'optional2--',
  6250. "//a[contains(@href,'turbobit.') and contains(@href,'download/folder')]"
  6251. );
  6252. }
  6253. if (GM_getValue("Check_turbobit_dot_net_links", false)) //folders
  6254. {
  6255. addFileHost(
  6256. "turbobit\\.(?:net|pl)",
  6257. 'id="download-gate-info',
  6258. 'afterWait()',
  6259. 'optional--',
  6260. 'optional2--',
  6261. "//a[contains(@href,'turbobit.net')]"
  6262. );
  6263. }
  6264. if (GM_getValue("Check_hitfile_dot_net_links", false)) //folders
  6265. {
  6266. addFileHost(
  6267. "hitfile\\.net\/download\/folder\/\\d+",
  6268. 'content">\\s*<s',
  6269. 'content">\\s*<h',
  6270. 'optional--',
  6271. 'optional2--',
  6272. "//a[contains(@href,'hitfile.net/download/folder')]"
  6273. );
  6274. }
  6275. if (GM_getValue("Check_movshare_dot_net_links", false))
  6276. {
  6277. addFileHost(
  6278. "movshare\\.net\\/video\\/\\w+",
  6279. 'optional--"',
  6280. 'no longer exists',
  6281. 'optional--',
  6282. 'optional2--',
  6283. "//a[contains(@href,'movshare.net/video')]"
  6284. );
  6285. }
  6286. if (GM_getValue("Check_plunder_dot_com_links", false))
  6287. {
  6288. addFileHost(
  6289. "plunder\.com\/\\w+",
  6290. 'x\/download\\.gif',
  6291. '404 - File or directory not found.',
  6292. 'optional--',
  6293. 'optional2--',
  6294. "//a[contains(@href,'plunder.com')]"
  6295. );
  6296. }
  6297. if (GM_getValue("Check_mafiastorage_dot_com_links", false))
  6298. {
  6299. addFileHost(
  6300. "mafiastorage\\.com\/\\w+",
  6301. 'op" value="download',
  6302. 'class="err">|style="width:500px;text-align:left;"',
  6303. 'optional--',
  6304. 'optional2--',
  6305. "//a[contains(@href,'mafiastorage.com/')]"
  6306. );
  6307. }
  6308. if (GM_getValue("Check_uploadspace_dot_pl_links", false))
  6309. {
  6310. addFileHost(
  6311. "uploadspace\.pl\/plik\\w+",
  6312. 'Downloading .+? \\|',
  6313. 'Downloading a file',
  6314. 'optional--',
  6315. 'optional2--',
  6316. "//a[contains(@href,'uploadspace.pl/plik')]"
  6317. );
  6318. }
  6319. if (GM_getValue("Check_uploadingit_dot_com_links", false))
  6320. {
  6321. addFileHost(
  6322. "uploadingit\\.com\/file\/\\w+",
  6323. 'downloadTitle">',
  6324. 'deleteContent">',
  6325. 'optional--',
  6326. 'optional2--',
  6327. "//a[contains(@href,'uploadingit.com/file')]"
  6328. );
  6329. }
  6330. if (GM_getValue("Check_rghost_dot_net_links", false))
  6331. {
  6332. addFileHost(
  6333. "rghost\.(?:net|ru)\/(?:|private\/)\\d+",
  6334. 'download_link|btn large download',
  6335. 'file is restricted|File is deleted|503 Service Unavailable',
  6336. 'optional--',
  6337. 'optional2--',
  6338. "//a[contains(@href,'rghost.')]"
  6339. );
  6340. }
  6341. if (GM_getValue("Check_xdisk_dot_cz_links", false))
  6342. {
  6343. addFileHost(
  6344. "xdisk\\.cz\/(?:..\/)?download\\.php\\?id=\\w+",
  6345. '">Staženo:\\s*<\/span>',
  6346. 'Soubor, který hledáte nenalezen',
  6347. 'optional--',
  6348. 'optional2--',
  6349. "//a[contains(@href,'xdisk.cz/')]"
  6350. );
  6351. }
  6352. if (GM_getValue("Check_expressleech_dot_com_links", false))
  6353. {
  6354. addFileHost(
  6355. "expressleech\.com\/\\w+",
  6356. 'src="/img/Download.gif"|var _gaq =',
  6357. 'var rr =|403 Forbidden',
  6358. 'optional--',
  6359. 'optional2--',
  6360. "//a[contains(@href,'expressleech.com')]");
  6361. }
  6362. if (GM_getValue("Check_2downloadz_dot_com_links", false))
  6363. {
  6364. addFileHost(
  6365. "2downloadz\.com\/\\w+",
  6366. 'color="#848484|src="images/Download.png"|color:#238DCA',
  6367. 'color="#006DCC|File error',
  6368. 'optional--',
  6369. 'optional2--',
  6370. "//a[contains(@href,'2downloadz.com')]");
  6371. }
  6372. if (GM_getValue("Check_mightyupload_dot_com_links", false))
  6373. {
  6374. addFileHost(
  6375. "mightyupload\.com\/\\w+",
  6376. 'background:#ccc;text-align|CONTENT="Download File"',
  6377. 'style="background:#eee|var rr =|File Not Found',
  6378. 'error-code">1010',
  6379. 'optional2--',
  6380. "//a[contains(@href,'mightyupload.com')]");
  6381. }
  6382. if (GM_getValue("Check_anysend_dot_com_links", false))
  6383. {
  6384. addFileHost(
  6385. "anysend\.com\/\\w+",
  6386. 'var openCalled=false;|content="noindex"',
  6387. '_trackPageview',
  6388. 'optional--',
  6389. 'optional2--',
  6390. "//a[contains(@href,'anysend.com')]");
  6391. }
  6392. if (GM_getValue("Check_datafile_dot_com_links", false))
  6393. {
  6394. addFileHost(
  6395. "datafile\.com\/\\w+",
  6396. 'var captchaPanel|<link href="/css/files_download.css"',
  6397. 'ErrorCode|ErrorCode 0: Invalid Link|btn-orange" href="#"',
  6398. 'You are downloading another file at this moment|You exceeded your free|Site Maintenance',
  6399. '; display:none;">', //<style type="text/css">
  6400. "//a[contains(@href,'datafile.com')]",
  6401. true);
  6402. }
  6403. if (GM_getValue("Check_upstore_dot_net_links", false))
  6404. {
  6405. addFileHost(
  6406. "upstore\.net\/\\w+",
  6407. 'style="margin-top: 20px">|style="text-align:center; margin: 20px 0 100px;">',
  6408. 'File not found|onload="redirect|class="error">',
  6409. 'optional--',
  6410. 'optional2--',
  6411. "//a[contains(@href,'upstore.net')]");
  6412. }
  6413. if (GM_getValue("Check_upsto_dot_re_links", false))
  6414. {
  6415. addFileHost(
  6416. "upsto\.re\/\\w+",
  6417. 'style="margin-top: 20px">|style="text-align:center; margin: 20px 0 100px;">',
  6418. 'File not found|onload="redirect|class="error">',
  6419. 'optional--',
  6420. 'optional2--',
  6421. "//a[contains(@href,'upsto.re')]");
  6422. }
  6423. if (GM_getValue("Check_speedy_dot_sh_links", false))
  6424. {
  6425. addFileHost(
  6426. "speedy\.sh\/\\w+",
  6427. 'bgcolor=#eeeeee|class="addthis',
  6428. 'File not found|downloadfilenamenotfound>',
  6429. 'optional--',
  6430. 'optional2--',
  6431. "//a[contains(@href,'speedy.sh')]");
  6432. }
  6433. if (GM_getValue("Check_sanshare_dot_com_links", false))
  6434. {
  6435. addFileHost(
  6436. "sanshare\.com\/\\w+",
  6437. 'SANSHARE_TOPBANNER|offset-1"><h3><b>Download File',
  6438. 'offset-1"><b>File Not Found<|width:500px;text-align',
  6439. 'optional--',
  6440. 'optional2--',
  6441. "//a[contains(@href,'sanshare.com')]");
  6442. }
  6443. if (GM_getValue("Check_uploadhero_dot_co_links", false))
  6444. {
  6445. addFileHost(
  6446. "uploadhero\\.co\/dl\/\\w+",
  6447. 'class="nom_de_fichier"|Unlimited downloads|Estimated download time|Lien de téléchargement"',
  6448. 'not available on our server|pas disponible sur nos serveurs|Le lien du fichier est incorrect',
  6449. 'optional--',
  6450. 'optional2--',
  6451. "//a[contains(@href,'uploadhero.co/dl')]"
  6452. );
  6453. }
  6454. if (GM_getValue("Check_secureupload_dot_eu_links", false))
  6455. {
  6456. addFileHost(
  6457. "secureupload\\.eu\/\\w+",
  6458. 'Downloading',
  6459. 'cannot be found|File Not Found|could not be found',
  6460. 'optional--',
  6461. 'optional2--',
  6462. "//a[contains(@href,'secureupload.eu')]"
  6463. );
  6464. }
  6465. if (GM_getValue("Check_ge_dot_tt_links", false))
  6466. {
  6467. addFileHost(
  6468. "ge\.tt\/\\w+",
  6469. 'downloads pic',
  6470. 'is NOT the same as',
  6471. 'optional--',
  6472. 'optional2--',
  6473. "//a[contains(@href,'ge.tt')]");
  6474. }
  6475. if (GM_getValue("Check_filefactory_dot_com_links", false))
  6476. {
  6477. addFileHost(
  6478. "filefactory\.com\/\\w+",
  6479. 'div id="file_holder"|download.css',
  6480. 'File Removed|Invalid Download Link|File Unavailable|Server Failed|Datei entfernt|This file has been removed|Invalid Download Link',
  6481. 'Server Maintenance|temporarily overloaded',
  6482. 'optional2--',
  6483. "//a[contains(@href,'filefactory.com')]");
  6484. }
  6485. if (GM_getValue("Check_filesflash_dot_net_links", false))
  6486. {
  6487. addFileHost(
  6488. "filesflash\.net\/\\w+",
  6489. 'align:right">Filename:',
  6490. 'class="msg">',
  6491. 'optional--',
  6492. 'optional2--',
  6493. "//a[contains(@href,'filesflash.net')]");
  6494. }
  6495. if (GM_getValue("Check_rapidgator_dot_net_links", false)) //folders
  6496. {
  6497. addFileHost(
  6498. "rapidgator\\.net\/folder\/\\w+",
  6499. 'href="/folder/',
  6500. 'class="empty|Folder not found|Carpeta no encontrada|Dossier non trouvé|Папка не найдена',
  6501. 'optional--',
  6502. 'optional2--',
  6503. "//a[contains(@href,'rapidgator.net/folder')]",
  6504. true
  6505. );
  6506. }
  6507. if (GM_getValue("Check_salefiles_dot_com_links", false))
  6508. {
  6509. addFileHost(
  6510. "salefiles\.com\/\\w+",
  6511. '<Title>Download|CONTENT="Download',
  6512. 'font:15px Arial|background:#eee;',
  6513. 'optional--',
  6514. 'optional2--',
  6515. "//a[contains(@href,'salefiles.com')]");
  6516. }
  6517. if (GM_getValue("Check_megairon_dot_net_links", false))
  6518. {
  6519. addFileHost(
  6520. "megairon\.net\/\\w+",
  6521. 'border: 5px #ffeb90 solid;',
  6522. 'CONTENT="Download File ">|var rr =',
  6523. 'error-code">523',
  6524. 'optional2--',
  6525. "//a[contains(@href,'megairon.net')]",
  6526. true);
  6527. }
  6528. if (GM_getValue("Check_datoid_dot_cz_links", false))
  6529. {
  6530. addFileHost(
  6531. "datoid\.cz\/\\w+",
  6532. 'btn-download|class="icon-download-large"',
  6533. 'Stránka nenalezena|error-404|Soubor byl zablokován',
  6534. 'optional--',
  6535. 'optional2--',
  6536. "//a[contains(@href,'datoid.cz')]");
  6537. }
  6538. if (GM_getValue("Check_stiahni_dot_si_links", false))
  6539. {
  6540. addFileHost(
  6541. "stiahni\.si\/\\w+",
  6542. 'report_icon.png"|slow-download-button',
  6543. 'none.png|deleted|<h2>Error 500</h2>',
  6544. 'optional--',
  6545. 'optional2--',
  6546. "//a[contains(@href,'stiahni.si')]");
  6547. }
  6548. if (GM_getValue("Check_cloudstor_dot_es_links", false))
  6549. {
  6550. addFileHost(
  6551. "cloudstor\.es\/\\w+",
  6552. '"btn_download"',
  6553. '404: Page Not Found',
  6554. 'optional--',
  6555. 'optional2--',
  6556. "//a[contains(@href,'cloudstor.es')]");
  6557. }
  6558. if (GM_getValue("Check_streamfile_dot_com_links", false))
  6559. {
  6560. addFileHost(
  6561. "streamfile\.com\/\\w+",
  6562. 'class="btn',
  6563. 'class="green-btn',
  6564. 'optional--',
  6565. 'optional2--',
  6566. "//a[contains(@href,'streamfile.com')]");
  6567. }
  6568. if (GM_getValue("Check_eyesfile_dot_ca_links", false))
  6569. {
  6570. addFileHost(
  6571. "eyesfile\.ca\/\\w+",
  6572. 'value="Get Link',
  6573. 'var rr =',
  6574. 'optional--',
  6575. 'optional2--',
  6576. "//a[contains(@href,'eyesfile.ca')]");
  6577. }
  6578. if (GM_getValue("Check_filemoney_dot_com_links", false))
  6579. {
  6580. addFileHost(
  6581. "filemoney\.com\/\\w+",
  6582. 'og:title',
  6583. '404 Not Found|<Title>FileMoney|File Not Found|class="err">DMCA</b>',
  6584. 'error-code">1010',
  6585. 'optional2--',
  6586. "//a[contains(@href,'filemoney.com')]");
  6587. }
  6588. if (GM_getValue("Check_uploadboy_dot_com_links", false))
  6589. {
  6590. addFileHost(
  6591. "uploadboy\.com\/\\w+",
  6592. 'width="740">|method_free',
  6593. 'var rr =|background:#ffffff|not be found|file was removed',
  6594. 'optional--',
  6595. 'optional2--',
  6596. "//a[contains(@href,'uploadboy.com')]");
  6597. }
  6598. if (GM_getValue("Check_speedshare_dot_eu_links", false))
  6599. {
  6600. addFileHost(
  6601. "speedshare\.eu\/\\w+",
  6602. 'favicon.png|color:#3d87c0|cross.png"',
  6603. 'var rr =|File Not Found|style="background:#eee',
  6604. 'optional--',
  6605. 'optional2--',
  6606. "//a[contains(@href,'speedshare.eu')]");
  6607. }
  6608. if (GM_getValue("Check_unlimitzone_dot_com_links", false))
  6609. {
  6610. addFileHost(
  6611. "unlimitzone\.com\/\\w+",
  6612. 'name="method_free',
  6613. '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',
  6614. 'optional--',
  6615. 'optional2--',
  6616. "//a[contains(@href,'unlimitzone.com')]");
  6617. }
  6618. if (GM_getValue("Check_rioupload_dot_com_links", false))
  6619. {
  6620. addFileHost(
  6621. "rioupload\.com\/\\w+",
  6622. 'sell.jpg',
  6623. 'var rr =',
  6624. 'optional--',
  6625. 'optional2--',
  6626. "//a[contains(@href,'rioupload.com')]");
  6627. }
  6628. if (GM_getValue("Check_rg_dot_to_links", false))
  6629. {
  6630. addFileHost(
  6631. "rg\.to\/\\w+",
  6632. '/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',
  6633. 'Error 404|File not found|Select your plan|Fichier non trouvé|Archivo no encontrado|ファイルが探せませんでした|Файл не найден',
  6634. 'optional--',
  6635. 'can be downloaded by premium only|files up to 500 MB in free mode',
  6636. "//a[contains(@href,'rg.to')]");
  6637. }
  6638. if (GM_getValue("Check_jumbofiles_dot_org_links", false))
  6639. {
  6640. addFileHost(
  6641. "jumbofiles\.org\/\\w+",
  6642. 'H71C5.png|class="downloadtitle">',
  6643. 'var swfu|ViewSourceBIN.png',
  6644. 'optional--',
  6645. 'optional2--',
  6646. "//a[contains(@href,'jumbofiles.org')]");
  6647. }
  6648. if (GM_getValue("Check_fshare_dot_vn_links", false))
  6649. {
  6650. addFileHost(
  6651. "fshare\\.vn\/file\/\\w+",
  6652. 'action="#download"|left; width: 330px;">|class="bt_down"',
  6653. 'không tồn tại|class="color_red m_t_50"',
  6654. 'optional--',
  6655. 'optional2--',
  6656. "//a[contains(@href,'fshare.vn/file')]",
  6657. true
  6658. );
  6659. }
  6660. if (GM_getValue("Check_spaceforfiles_dot_com_links", false))
  6661. {
  6662. addFileHost(
  6663. "spaceforfiles\.com\/\\w+",
  6664. 'btn_slowspeed_b.jpg|value="download1|class="btn_blue',
  6665. 'var rr =|AVOID_IE_BUG',
  6666. 'optional--',
  6667. 'optional2--',
  6668. "//a[contains(@href,'spaceforfiles.com')]");
  6669. }
  6670. if (GM_getValue("Check_google_dot_com_links", false))
  6671. {
  6672. addFileHost(
  6673. "google\\.com\/file\/\\w+",
  6674. 'content="!">|color:#2d2d2d',
  6675. '12pt; font-weight:|class="errorMessage"|F0F6FF',
  6676. 'optional--',
  6677. 'optional2--',
  6678. "//a[contains(@href,'google.com/file')]",
  6679. true
  6680. );
  6681. }
  6682. if (GM_getValue("Check_google_dot_com_links", false))
  6683. {
  6684. addFileHost(
  6685. "docs.google.com\/\\w+",
  6686. 'content="!">|color:#2d2d2d',
  6687. '12pt; font-weight:|class="errorMessage"|F0F6FF|Error 404',
  6688. 'optional--',
  6689. 'optional2--',
  6690. "//a[contains(@href,'docs.google.com')]",
  6691. true
  6692. );
  6693. }
  6694. if (GM_getValue("Check_google_dot_com_links", false))
  6695. {
  6696. addFileHost(
  6697. "drive.google.com\/\\w+",
  6698. 'content="!">|color:#2d2d2d|id="uc-download-link',
  6699. '12pt; font-weight:|class="errorMessage"|F0F6FF|Error 404',
  6700. 'optional--',
  6701. 'optional2--',
  6702. "//a[contains(@href,'drive.google.com')]",
  6703. true
  6704. );
  6705. }
  6706. if (GM_getValue("Check_up_dot_media1fire_dot_com_links", false))
  6707. {
  6708. addFileHost(
  6709. "up.media1fire\.com\/\\w+",
  6710. 'class="addthis_|value="download',
  6711. 'var rr =|AVOID_IE_BUG|<div style="width:500px;text-align:left;">',
  6712. 'optional--',
  6713. 'optional2--',
  6714. "//a[contains(@href,'up.media1fire.com')]");
  6715. }
  6716. if (GM_getValue("Check_depfile_dot_com_links", false))
  6717. {
  6718. addFileHost(
  6719. "depfile\.com\/\\w+",
  6720. 'logo_0.png|downloads.gif"|verifycode',
  6721. 'border-color: #5D729B;|bgcolor="#778AAF"|deleted by the owner|Invalid Link',
  6722. 'optional--',
  6723. 'optional2--',
  6724. "//a[contains(@href,'depfile.com')]");
  6725. }
  6726. if (GM_getValue("Check_go4up_dot_com_links", false))
  6727. {
  6728. addFileHost(
  6729. "go4up\.com\/\\w+",
  6730. 'style="width: 100%;">|value="Access|download_line|img/webbuttoned.gif">',
  6731. '<title>GO4UP|dmca',
  6732. 'optional--',
  6733. 'optional2--',
  6734. "//a[contains(@href,'go4up.com')]");
  6735. }
  6736. if (GM_getValue("Check_redbunker_dot_net_links", false))
  6737. {
  6738. addFileHost(
  6739. "redbunker\.net\/\\w+",
  6740. 'dload.png|rowspan="3">|yep.gif',
  6741. 'CONTENT="RedBunker|#D3D3D3;|color:#d33|AVOID_IE_BUG',
  6742. 'optional--',
  6743. 'optional2--',
  6744. "//a[contains(@href,'redbunker.net')]");
  6745. }
  6746. if (GM_getValue("Check_divxpress_dot_com_links", false))
  6747. {
  6748. addFileHost(
  6749. "divxpress\.com\/\\w+",
  6750. 'btn_download|logo.png"',
  6751. 'AVOID_IE_BUG|var rr =',
  6752. 'optional--',
  6753. 'optional2--',
  6754. "//a[contains(@href,'divxpress.com')]");
  6755. }
  6756. if (GM_getValue("Check_anafile_dot_com_links", false))
  6757. {
  6758. addFileHost(
  6759. "anafile\.com\/\\w+",
  6760. 'width="881" valign="top|color="#800080"|name="go"',
  6761. 'style="width:500px;text-align:left;">|file was deleted|AVOID_IE_BUG',
  6762. 'optional--',
  6763. 'optional2--',
  6764. "//a[contains(@href,'anafile.com')]");
  6765. }
  6766. if (GM_getValue("Check_uploadable_dot_ch_links", false))
  6767. {
  6768. addFileHost(
  6769. "uploadable\\.ch\/file\/\\w+",
  6770. 'captcha.js"|payment.js"|class="btn_download"',
  6771. '<div class="icon_err">|<div class="errorBox">|"error_arrow">',
  6772. 'optional--',
  6773. 'optional2--',
  6774. "//a[contains(@href,'uploadable.ch/file')]",
  6775. true
  6776. );
  6777. }
  6778. if (GM_getValue("Check_arabloads_dot_net_links", false))
  6779. {
  6780. addFileHost(
  6781. "arabloads\.net\/\\w+",
  6782. 'name="method_free"|name="method_premium"',
  6783. 'background:#eee;font:15px Arial;">|AVOID_IE_BUG|Verdana;padding:3px;">Error|Not Found',
  6784. 'optional--',
  6785. 'optional2--',
  6786. "//a[contains(@href,'arabloads.net')]");
  6787. }
  6788. if (GM_getValue("Check_sharerepo_dot_com_links", false))
  6789. {
  6790. addFileHost(
  6791. "sharerepo\.com\/\\w+",
  6792. 'name="method_free"',
  6793. 'var public_on=|The file you were looking for could not be found',
  6794. 'optional--',
  6795. 'optional2--',
  6796. "//a[contains(@href,'sharerepo.com')]");
  6797. }
  6798. if (GM_getValue("Check_sfshare_dot_se_links", false))
  6799. {
  6800. addFileHost(
  6801. "sfshare\.se\/\\w+",
  6802. 'id="btn_download"|class="btn btn-primary txt-bold" value="',
  6803. 'AVOID_IE_BUG|var rr =|style="width:500px;text-align:left;">|Reason for deletion|The file was removed',
  6804. 'optional--',
  6805. 'optional2--',
  6806. "//a[contains(@href,'sfshare.se')]");
  6807. }
  6808. if (GM_getValue("Check_files_dot_fm_links", false))
  6809. {
  6810. addFileHost(
  6811. "files\.fm\/\\w+",
  6812. 'dl.png"|background-color: transparent',
  6813. 'margin: 40px 40px|background: none;',
  6814. 'optional--',
  6815. 'optional2--',
  6816. "//a[contains(@href,'files.fm')]");
  6817. }
  6818. if (GM_getValue("Check_koofile_dot_com_links", false))
  6819. {
  6820. addFileHost(
  6821. "koofile\.com\/\\w+",
  6822. 'value="download1">|name="method_free"',
  6823. 'class="overview-content c_text-box ">|style="padding-top:3px;">|class="rt1 c">',
  6824. 'optional--',
  6825. 'optional2--',
  6826. "//a[contains(@href,'koofile.com')]");
  6827. }
  6828. if (GM_getValue("Check_vidxden_dot_com_links", false))
  6829. {
  6830. addFileHost(
  6831. "vidxden\\.com\/\\w+",
  6832. 'Continue to Video"',
  6833. 'No such file',
  6834. 'optional--',
  6835. 'optional2--',
  6836. "//a[contains(@href,'vidxden.com')]"
  6837. );
  6838. }
  6839. if (GM_getValue("Check_muchshare_dot_net_links", false))
  6840. {
  6841. addFileHost(
  6842. "muchshare\\.net\/\\w+",
  6843. 'id="btn_download"',
  6844. 'File Not Found|width: 500px; text-align: left;',
  6845. 'optional--',
  6846. 'optional2--',
  6847. "//a[contains(@href,'muchshare.net')]"
  6848. );
  6849. }
  6850. if (GM_getValue("Check_daten_dash_hoster_dot_de_links", false))
  6851. {
  6852. addFileHost(
  6853. "(?:daten-hoster\\.de\/file\/\\w+|filehosting\\.org\/file\/\\w+|xtraupload\\.de\/\\?d=\\w+)",
  6854. 'Details zur Datei|Details page',
  6855. 'Jetzt hochladen|upload now',
  6856. 'optional--',
  6857. 'optional2--',
  6858. "//a[contains(@href,'daten-hoster.de/file') or contains(@href,'filehosting.org/file') or contains(@href,'xtraupload.de')]"
  6859. );
  6860. }
  6861. if (GM_getValue("Check_upload_dash_il_dot_net_links", false))
  6862. {
  6863. addFileHost(
  6864. "(?:upload-il|przeslij)\.net\/(?:en|he|ar|ru|)\/?\\w+",
  6865. 'downloadbtn"',
  6866. 'DL_FileNotFound',
  6867. 'optional--',
  6868. 'optional2--',
  6869. "//a[contains(@href,'upload-il.net') or contains(@href,'przeslij.net')]"
  6870. );
  6871. }
  6872. if (GM_getValue("Check_fileflyer_dot_com_links", false))
  6873. {
  6874. addFileHost(
  6875. "fileflyer\.com\/view\/\\w+",
  6876. '(?:dwl|locked)btn"',
  6877. 'error.gif"|link">Removed|removedlink">',
  6878. 'optional--',
  6879. 'optional2--',
  6880. "//a[contains(@href,'fileflyer.com')]"
  6881. );
  6882. }
  6883. if (GM_getValue("Check_filestore_dot_to_links", false))
  6884. {
  6885. addFileHost(
  6886. "filestore\.to\/\\?d=\\w+",
  6887. '"downloading"',
  6888. 'Datei wurde nicht gefunden',
  6889. 'optional--',
  6890. 'optional2--',
  6891. "//a[contains(@href,'filestore.to')]"
  6892. );
  6893. }
  6894. if (GM_getValue("Check_easy_dash_share_dot_com_links", false))
  6895. {
  6896. addFileHost(
  6897. "(?:w\\d*\.|)(?:crocko|easy-share)\\.com\/.",
  6898. 'fz24">Download|class="pl15">',
  6899. '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',
  6900. 'optional--',
  6901. 'optional2--',
  6902. "//a[contains(@href,'easy-share.com') or contains(@href,'crocko.com')]"
  6903. );
  6904. }
  6905. /* if (GM_getValue("Check_burnupload_dot_com_links", false))
  6906. {
  6907. addFileHost(
  6908. "burnupload\\.(?:com\/\\?d=|ihiphop\\.com\/download\\.php\\?id=)\\w+",
  6909. 'File size:',
  6910. 'file is not found',
  6911. 'optional--',
  6912. 'optional2--',
  6913. "//a[contains(@href,'burnupload.com') or contains(@href,'burnupload.ihiphop.com')]"
  6914. );
  6915. } */
  6916. if (GM_getValue("Check_datei_dot_to_links", false))
  6917. {
  6918. addFileHost(
  6919. "datei\\.to\/\\??\\w+",
  6920. 'icon_downloaden\\.png|>Download starten<',
  6921. 'Datei wurde nicht gefunden|icon_deleted.png',
  6922. 'optional--',
  6923. 'optional2--',
  6924. "//a[contains(@href,'datei.to')]"
  6925. );
  6926. }
  6927. if (GM_getValue("Check_yunfile_dot_com_links", false))
  6928. {
  6929. addFileHost(
  6930. "(?:yunfile|filemarkets)\\.com\/\\w+",
  6931. '<body class="body" id="body">|value="Slow Download"',
  6932. '<body class="body" >',
  6933. 'optional--',
  6934. 'optional2--',
  6935. "//a[contains(@href,'yunfile.com') or contains(@href,'filemarkets.com')]"
  6936. );
  6937. }
  6938. if (GM_getValue("Check_uploadhero_dot_com_links", false))
  6939. {
  6940. addFileHost(
  6941. "uploadhero\\.com\/dl\/\\w+",
  6942. 'content-dl">',
  6943. 'men_file_lost\\.jpg"',
  6944. 'optional--',
  6945. 'optional2--',
  6946. "//a[contains(@href,'uploadhero.com/dl')]"
  6947. );
  6948. }
  6949. if (GM_getValue("Check_unibytes_dot_com_links", false))
  6950. {
  6951. addFileHost(
  6952. "unibytes\\.com\/[\\w\.]+",
  6953. 'trying to download|пытаетесь загрузить файл|tes entrain de tlcharger',
  6954. 'File not found|Файл не найден|',
  6955. 'optional--',
  6956. 'optional2--',
  6957. "//a[contains(@href,'unibytes.com')]"
  6958. );
  6959. }
  6960. if (GM_getValue("Check_hellshare_dot_com_links", false)) //very old type of links
  6961. {
  6962. addFileHost(
  6963. "www\\.hellshare\\.com\/\\d+",
  6964. 'tab\\-details"',
  6965. 'list-purp-2"|not found on this server',
  6966. 'optional--',
  6967. 'optional2--',
  6968. "//a[contains(@href,'www.hellshare.com')]"
  6969. );
  6970. }
  6971. /* if (GM_getValue("Check_quickshare_dot_cz_links", false)) //folders
  6972. {
  6973. addFileHost(
  6974. "quickshare\\.cz\/slozka-\\d+",
  6975. 'Počet souborů: <strong>[1-9]',
  6976. 'Počet souborů: <strong>0|Chyba! Taková složka neexistuje',
  6977. 'optional--',
  6978. 'optional2--',
  6979. "//a[contains(@href,'quickshare.cz/slozka')]"
  6980. );
  6981. } */
  6982. if (GM_getValue("Check_filefactory_dot_com_links", false)) //folders
  6983. {
  6984. addFileHost(
  6985. "filefactory\\.com\/f\/\\w+",
  6986. 'folderFileList">',
  6987. 'table class="items"|Pointer" class="red">',
  6988. 'optional--',
  6989. 'optional2--',
  6990. "//a[contains(@href,'filefactory.com/f/')]"
  6991. );
  6992. }
  6993. if (GM_getValue("Check_netload_dot_in_links", false)) //folders
  6994. {
  6995. addFileHost(
  6996. "netfolder\\.in\/\\w+",
  6997. 'list" value="http',
  6998. 'InPage_Error">|list" value=""',
  6999. 'optional--',
  7000. 'optional2--',
  7001. "//a[contains(@href,'netfolder.in')]"
  7002. );
  7003. }
  7004. if (GM_getValue("Check_load_dot_to_links", false))
  7005. {
  7006. addFileHost(
  7007. '(?:www\\.|\\/)load\\.to\\/(?:\\w{10}\\/.|\\?d=\\w{10})',
  7008. '"download_table_left">Size',
  7009. 'Can\'t find file',
  7010. 'optional--',
  7011. 'optional2--',
  7012. "//a[contains(@href,'/load.to/') or contains(@href,'www.load.to/')]"
  7013. );
  7014. }
  7015. if (GM_getValue("Check_divshare_dot_com_links", false))
  7016. {
  7017. addFileHost(
  7018. "divshare\\.com\/download\/",
  7019. 'download_new\.png',
  7020. 'have been removed',
  7021. 'optional--',
  7022. 'optional2--',
  7023. "//a[contains(@href,'divshare.com')]"
  7024. );
  7025. }
  7026. if (GM_getValue("Check_euroshare_dot_eu_links", false))
  7027. {
  7028. addFileHost(
  7029. "euroshare\\.(?:eu|pl|sk|cz|hu)\/file\/\\d+",
  7030. 'nazev-souboru">',
  7031. '<div id="obsah">\\s*<h1>',
  7032. 'optional--',
  7033. 'optional2--',
  7034. "//a[contains(@href,'euroshare.eu/file')]"
  7035. );
  7036. }
  7037. if (GM_getValue("Check_files_dot_mail_dot_ru_links", false))
  7038. {
  7039. addFileHost(
  7040. 'files\\.mail\\.ru/(?:\\w*)',
  7041. 'fileList',
  7042. 'errorMessage',
  7043. 'optional--',
  7044. 'optional2--',
  7045. "//a[contains(@href,'files.mail.ru')]"
  7046. );
  7047. }
  7048. if (GM_getValue("Check_megashares_dot_com_links", false))
  7049. {
  7050. addFileHost(
  7051. "(?:d\\d+\.|)megashares\.com\/(?:dl|index\.php\\?d|\\?d\\d+=\\w+)",
  7052. 'Filesize',
  7053. 'Invalid|deleted|Could not download file',
  7054. 'slots|scheduled maintenance',
  7055. 'optional2--',
  7056. "//a[contains(@href,'megashares.com/')]"
  7057. );
  7058. }
  7059. if (GM_getValue("Check_narod_dot_ru_links", false))
  7060. {
  7061. addFileHost(
  7062. 'narod\\.(?:yandex\\.|)ru\/disk\/',
  7063. 'b-submit',
  7064. 'b-download-virus-note|headCode">404<',
  7065. 'Внутренняя ошибка сервиса',
  7066. 'optional2--',
  7067. "//a[contains(@href,'narod.ru') or contains(@href,'narod.yandex.ru')]"
  7068. );
  7069. }
  7070. if (GM_getValue("Check_rayfile_dot_com_links", false))
  7071. {
  7072. addFileHost(
  7073. "rayfile\\.com\/",
  7074. 'FILEtitleTXT',
  7075. 'blueRow',
  7076. 'optional--',
  7077. 'optional2--',
  7078. "//a[contains(@href,'rayfile.com/') and contains(@href,'files')]"
  7079. );
  7080. }
  7081. if (GM_getValue("Check_filesmonster_dot_com_links", false))
  7082. {
  7083. addFileHost(
  7084. "filesmonster\\.com\/download\\.php\\?id=\\w+",
  7085. 'button_green_body"',
  7086. 'error">',
  7087. 'optional--',
  7088. 'optional2--',
  7089. "//a[contains(@href,'filesmonster.com/download')]"
  7090. );
  7091. }
  7092. if (GM_getValue("Check_usaupload_dot_net_links", false))
  7093. {
  7094. addFileHost(
  7095. 'usaupload\\.net\/d\/(?:\w*)',
  7096. '<strong>File size:</strong>',
  7097. 'is not available',
  7098. 'optional--',
  7099. 'optional2--',
  7100. "//a[contains(@href,'usaupload.net/d/')]"
  7101. );
  7102. }
  7103. if (GM_getValue("Check_sendspace_dot_com_links", false))
  7104. {
  7105. addFileHost(
  7106. 'sendspace\\.com\/file\/\\w+',
  7107. 'file_description',
  7108. 'msg error"',
  7109. 'optional--',
  7110. 'optional2--',
  7111. "//a[contains(@href,'sendspace.com/file')]"
  7112. );
  7113. }
  7114. if (GM_getValue("Check_sendspace_dot_pl_links", false))
  7115. {
  7116. addFileHost(
  7117. 'sendspace\\.pl\/file\/\\w+',
  7118. 'download_file"',
  7119. 'Podany plik nie',
  7120. 'optional--',
  7121. 'optional2--',
  7122. "//a[contains(@href,'sendspace.pl/file')]"
  7123. );
  7124. }
  7125. if (GM_getValue("Check_uploading_dot_com_links", false))
  7126. {
  7127. addFileHost(
  7128. 'uploading\\.com\/(?:files\/)?\\w+',
  7129. 'free_method">',
  7130. 'file_error">|error_404">|file not found|OOPS! Looks like file not found',
  7131. 'optional--',
  7132. 'optional2--',
  7133. "//a[contains(@href,'uploading.com')]"
  7134. );
  7135. }
  7136. if (GM_getValue("Check_gigasize_dot_com_links", false))
  7137. {
  7138. addFileHost(
  7139. 'gigasize\\.com\/get\\.php(?:\/\\d+|\\?d=\\w+)',
  7140. 'fileId"',
  7141. 'error">',
  7142. 'optional--',
  7143. 'optional2--',
  7144. "//a[contains(@href,'gigasize.com/get')]"
  7145. );
  7146. }
  7147. if (GM_getValue("Check_good_dot_com_links", false))
  7148. {
  7149. addFileHost(
  7150. 'good\\.net\/(?:_|dl)',
  7151. 'Free Download',
  7152. 'Not Found',
  7153. 'Forbidden',
  7154. 'optional2--',
  7155. "//a[contains(@href,'good.net')]"
  7156. );
  7157. }
  7158. if (GM_getValue("Check_2shared_dot_com_links", false))
  7159. {
  7160. addFileHost(
  7161. '2shared\\.com\/(?:file|video|document|audio)\/\\w*',
  7162. 'File size',
  7163. 'File not found|is not valid|/images/important.gif',
  7164. 'optional--',
  7165. 'optional2--',
  7166. "//a[contains(@href,'2shared.com/file/') or contains (@href,'2shared.com/audio/') or contains (@href,'2shared.com/document/') or contains (@href,'2shared.com/video/')]"
  7167. );
  7168. }
  7169. if (GM_getValue("Check_turboupload_dot_com_links", false))
  7170. {
  7171. addFileHost(
  7172. 'turboupload\\.com\/\\w*',
  7173. 'You have requested',
  7174. 'File Not Found',
  7175. 'optional--',
  7176. 'optional2--',
  7177. "//a[contains(@href,'turboupload.com')]"
  7178. );
  7179. }
  7180. if (GM_getValue("Check_gigapeta_dot_com_links", false))
  7181. {
  7182. addFileHost(
  7183. 'gigapeta\\.com\/dl\/',
  7184. 'Download file|Скачать файл| Herunterzuladen|Scarica il file|Cargar el fichero|Charger le fichier',
  7185. '404|page_error',
  7186. 'optional--',
  7187. 'optional2--',
  7188. "//a[contains(@href,'gigapeta.com/dl')]"
  7189. );
  7190. }
  7191. if (GM_getValue("Check_veehd_dot_com_links", false))
  7192. {
  7193. addFileHost(
  7194. 'veehd\.com\/video\/.*?',
  7195. 'No sound|Download video',
  7196. 'Featured Videos',
  7197. 'optional--',
  7198. 'optional2--',
  7199. "//a[contains(@href,'veehd.com') and contains(@href,'video')]"
  7200. );
  7201. }
  7202. if (GM_getValue("Check_vip_dash_file_dot_com_links", false))
  7203. {
  7204. addFileHost(
  7205. '(?:u\\d+\\.)?vip-file\\.com\/download.*?\/(?:.*?)\/(?:.*?)\\.html',
  7206. 'fast_download_form">|submit_sms_download',
  7207. '<p style="text-align:center">',
  7208. 'optional--',
  7209. 'optional2--',
  7210. "//a[contains(@href,'vip-file.com/download')]"
  7211. );
  7212. }
  7213. if (GM_getValue("Check_letitbit_dot_net_links", false))
  7214. {
  7215. addFileHost(
  7216. '(?:u\\d+\\.)?letitbit\\.net\/download\/\\w+',
  7217. 'download\\-pnl ',
  7218. 'color:#000">|Запрашиваемый файл не найден|страница не существует|File not found|',
  7219. 'optional--',
  7220. 'optional2--',
  7221. "//a[contains(@href,'letitbit.net/download')]"
  7222. );
  7223. }
  7224. if (GM_getValue("Check_ifolder_dot_ru_links", false))
  7225. {
  7226. addFileHost(
  7227. 'ifolder\.ru\/\\d+',
  7228. 'file-info',
  7229. 'ui-state-error',
  7230. 'optional--',
  7231. 'optional2--',
  7232. "//a[contains(@href,'ifolder.ru')]"
  7233. );
  7234. }
  7235. if (GM_getValue("Check_fileswap_dot_com_links", false))
  7236. {
  7237. addFileHost(
  7238. 'fileswap\\.com\/dl\/\\w+',
  7239. 'bttnDownloadLink"',
  7240. 'rounded_block_error"',
  7241. 'is temporary unavailable|disponible en estos momentos|vorläufig unerreichbar|Файл временно недоступен',
  7242. 'optional2--',
  7243. "//a[contains(@href,'fileswap.com/dl')]"
  7244. );
  7245. }
  7246. if (GM_getValue("Check_filecloud_dot_io_links", false))
  7247. {
  7248. addFileHost(
  7249. '(?:s\\d+\\.)?filecloud\\.io\/\\w+',
  7250. 'var __error = 0',
  7251. 'FILES__DOESNT_EXIST|removed or did not exist',
  7252. 'optional--',
  7253. 'optional2--',
  7254. "//a[contains(@href,'filecloud.io/')]"
  7255. );
  7256. addFileHost(
  7257. 'ifile\\.it\/\\w+',
  7258. 'var __error = 0',
  7259. 'FILES__DOESNT_EXIST',
  7260. 'optional--',
  7261. 'optional2--',
  7262. "//a[contains(@href,'ifile.it/')]"
  7263. );
  7264. }
  7265. if (GM_getValue("Check_solidfiles_dot_com_links", false))
  7266. {
  7267. addFileHost(
  7268. 'solidfiles\\.com\/d\/\\w+',
  7269. 'id="download"|content="Download',
  7270. '>Not found<|<h2>404</h2>|Page not found|<h1>404</h1>|File not available|no longer available',
  7271. 'optional--',
  7272. 'optional2--',
  7273. "//a[contains(@href,'solidfiles.com/d')]"
  7274. );
  7275. }
  7276. if (GM_getValue("Check_shareflare_dot_net_links", false))
  7277. {
  7278. addFileHost(
  7279. "(?:.\\.|)shareflare\\.net",
  7280. 'download-pnl|<div class="premium-block">',
  7281. 'File not found|Поиск зеркала на фа|<div id="captcha"',
  7282. 'optional--',
  7283. 'optional2--',
  7284. "//a[contains(@href,'shareflare.net') and contains(@href,'download')]"
  7285. );
  7286. }
  7287. if (GM_getValue("Check_u18116681_dot_shareflare_dot_net_links", false))
  7288. {
  7289. addFileHost(
  7290. "u18116681.shareflare\\.net",
  7291. 'download-pnl|<div class="premium-block">',
  7292. 'File not found|Поиск зеркала на фа|<div id="captcha"',
  7293. 'optional--',
  7294. 'optional2--',
  7295. "//a[contains(@href,'shareflare.net') and contains(@href,'download')]"
  7296. );
  7297. }
  7298. if (GM_getValue("Check_uloz_dot_to_links", false))
  7299. {
  7300. addFileHost(
  7301. "(?:uloz|ulozto|bagruj|zachowajto)\\.(to|cz|sk|net|pl)\/\\w",
  7302. 'fileDownload">|fileSize">',
  7303. 'grayButton deletedFile">|Stránka nenalezena|upload-button"|jako soukromý.',
  7304. 'passwordProtectedFile">|frmaskAgeForm-disagree',
  7305. 'optional2--',
  7306. "//a[contains(@href,'bagruj.cz') or contains(@href,'uloz.to') or contains(@href,'ulozto.') or contains(@href,'zachowajto.pl')]",
  7307. true
  7308. );
  7309. }
  7310. if (GM_getValue("Check_hellspy_dot_com_links", false))
  7311. {
  7312. addFileHost(
  7313. "hellspy\.(?:com|cz|sk|hu|pl)\/\\w+",
  7314. 'file\\-list-orderby|section-filedetail">',
  7315. '<\/span><\/h2>\\s*<p>|list-purp-2">|flash info sticky">',
  7316. 'optional--',
  7317. 'optional2--',
  7318. "//a[contains(@href,'hellspy.')]"
  7319. );
  7320. }
  7321. if (GM_getValue("Check_leteckaposta_dot_cz_links", false))
  7322. {
  7323. addFileHost(
  7324. "(?:leteckaposta\\.cz|sharegadget\\.com)\/\\d+",
  7325. '<body onload="">',
  7326. 'neexistuje|not exist',
  7327. 'optional--',
  7328. 'optional2--',
  7329. "//a[contains(@href,'leteckaposta.cz') or contains(@href,'sharegadget.com')]"
  7330. );
  7331. }
  7332. if (GM_getValue("Check_stahovanizasms_dot_cz_links", false))
  7333. {
  7334. addFileHost(
  7335. "stahovanizasms\\.cz\/\\w+",
  7336. 'download\\.png>|font-size:11px><tr>',
  7337. 'smaz.n u.ivatelem|font-size:11px><\/table>',
  7338. 'optional--',
  7339. 'optional2--',
  7340. "//a[contains(@href,'stahovanizasms.cz')]"
  7341. );
  7342. }
  7343. if (GM_getValue("Check_share_dash_links_dot_biz_links", false))
  7344. {
  7345. addFileHost(
  7346. "share-links\\.biz\/\\w*",
  7347. 'online\\.gif',
  7348. '(?:offline|parts)\\.gif',
  7349. 'optional--',
  7350. 'optional2--',
  7351. "//a[contains(@href,'share-links.biz')]"
  7352. );
  7353. }
  7354. if (GM_getValue("Check_4shared_dot_com_links", false))
  7355. {
  7356. addFileHost(
  7357. "4shared\\.com\/.+\/",
  7358. '<input type="hidden" class="jsSocialTwDefaultText" value=',
  7359. 'class="warn\"|big red"|GetDataBack',
  7360. 'Service Unavailable',
  7361. 'optional2--',
  7362. "//a[contains(@href,'4shared.com')]"
  7363. );
  7364. }
  7365. if (GM_getValue("Check_zippyshare_dot_com_links", false))
  7366. {
  7367. addFileHost(
  7368. "(?:www\\d+\.|)zippyshare\.com\/",
  7369. 'download\.png|Download Now|images/download_small.png|id="dlbutton"',
  7370. 'not exist|Status 404',
  7371. 'optional--',
  7372. 'optional2--',
  7373. "//a[contains(@href,'zippyshare.com') and contains(@href,'file.html')]"
  7374. );
  7375. }
  7376. if (GM_getValue("Check_mediafire_dot_com_links", false))
  7377. {
  7378. addFileHost(
  7379. "mediafire\.com\/",
  7380. 'download_file_title|dlFileName|id="PLAY_downloadButton"',
  7381. 'error\\.php\\?|error_msg_title|<title>Simple File Sharing|No files found',
  7382. 'set to private',
  7383. 'optional2--',
  7384. "//a[contains(@href,'mediafire.com')]"
  7385. );
  7386. }
  7387. if (GM_getValue("Check_uploaded_dot_to_links", false))
  7388. {
  7389. addFileHost(
  7390. '(?:uploaded\\.(?:to|net)\/(?:.id|file|folder|f|410|404))|(?:ul\\.to\/)',
  7391. '<h2>Authentification</h2></li>|MB</small>|KB</small>',
  7392. 'box_red|Error: 404|Error: 410|fileList"><thead><tr><td colspan="2"><\/td><\/tr><\/thead><tbody>\\s*<tr>|<title>uploaded.net</title>',
  7393. 'optional--',
  7394. 'GB</small>',
  7395. "//a[contains(@href,'uploaded.to/') or contains(@href,'uploaded.net/') or contains(@href,'ul.to/')]"
  7396. );
  7397. }
  7398. if (GM_getValue("Check_ulozisko_dot_sk_links", false))
  7399. {
  7400. addFileHost(
  7401. "ulozisko\.sk\/",
  7402. 'Detaily',
  7403. 'neexistuje',
  7404. 'optional--',
  7405. 'optional2--',
  7406. "//a[contains(@href,'ulozisko.sk')]"
  7407. );
  7408. }
  7409. if (GM_getValue("Check_upnito_dot_sk_links", false))
  7410. {
  7411. addFileHost(
  7412. "(?:dl.\\.|)upnito\\.sk\/(download|subor|file)",
  7413. 'download.php',
  7414. 'notfound|upload\\-suborov\\.php"',
  7415. 'optional--',
  7416. 'optional2--',
  7417. "//a[contains(@href,'upnito.sk')]"
  7418. );
  7419. }
  7420. if (GM_getValue("Check_box_dot_com_links", false))
  7421. {
  7422. addFileHost(
  7423. "box\.com\/\\w+",
  7424. 'download-file-btn|id="download_button',
  7425. 'BIyMin.png| <div class="error_message|link has been removed',
  7426. 'optional--',
  7427. 'optional2--',
  7428. "//a[contains(@href,'app.box.com')]");
  7429. }
  7430. if (GM_getValue("Check_uptobox_dot_com_links", false))
  7431. {
  7432. addFileHost(
  7433. "uptobox\\.com\/\\w+",
  7434. 'Create Download Link">|Lien de téléchargement',
  7435. 'The file expired|The file was deleted|Fichier introuvable|not available in your country',
  7436. 'Maintenance',
  7437. 'optional2--',
  7438. "//a[contains(@href,'uptobox.com')]"
  7439. );
  7440. }
  7441. if (GM_getValue("Check_sharecash_dot_org_links", false))
  7442. {
  7443. addFileHost(
  7444. "sharecash\\.org\/download\\.php\\?file=\\d+",
  7445. 'FILE DOWNLOAD<',
  7446. 'File Does Not Exist',
  7447. 'optional--',
  7448. 'optional2--',
  7449. "//a[contains(@href,'sharecash.org/download.php')]"
  7450. );
  7451. }
  7452. if (GM_getValue("Check_depositfiles_dot_com_links", false)) //folders
  7453. {
  7454. addFileHost(
  7455. "depositfiles\\.com\/folders\/\\w+",
  7456. '<div class="progressContainer">',
  7457. '<div id="files" class="files">\\s*<\/div>',
  7458. 'optional--',
  7459. 'optional2--',
  7460. "//a[contains(@href,'depositfiles.com/folders')]"
  7461. );
  7462. }
  7463. if (GM_getValue("Check_rapidfileshare_dot_net_links", false))
  7464. {
  7465. addFileHost(
  7466. "rapidfileshare\\.net/\\w+",
  7467. '<div id="upload-header-bg">',
  7468. '<div style="width:500px;text-align:left;">',
  7469. 'optional--',
  7470. 'optional2--',
  7471. "//a[contains(@href,'rapidfileshare.net/')]"
  7472. );
  7473. }
  7474. if (GM_getValue("Check_stiahnito_dot_sk_links", false))
  7475. {
  7476. addFileHost(
  7477. "stiahnito\\.sk/",
  7478. '<span class="filesize right">',
  7479. '<ol class="list-purp-2">',
  7480. 'optional--',
  7481. 'optional2--',
  7482. "//a[contains(@href,'stiahnito.sk/')]"
  7483. );
  7484. }
  7485. if (GM_getValue("Check_rusfolder_dot_com_links", false))
  7486. {
  7487. addFileHost(
  7488. "rusfolder\\.(?:com|net)",
  7489. '"download-step-one-form"|Название: <b>|Файлы|Файлы в папке',
  7490. '"ui-state-error ui-corner-all"|File is removed|File not found|удален',
  7491. 'optional--',
  7492. 'optional2--',
  7493. "//a[contains(@href,'rusfolder')]"
  7494. );
  7495. }
  7496. if (GM_getValue("Check_fileover_dot_net_links", false))
  7497. {
  7498. addFileHost(
  7499. "fileover\\.net/\\d+",
  7500. 'id="filesize"',
  7501. 'Not found or deleted|The following file is unavailable',
  7502. 'optional--',
  7503. 'optional2--',
  7504. "//a[contains(@href,'fileover.net/')]"
  7505. );
  7506. }
  7507. if (GM_getValue("Check_catshare_dot_net_links", false))
  7508. {
  7509. addFileHost(
  7510. "catshare\\.net/\\w+",
  7511. '"icon-share',
  7512. 'alert alert-error',
  7513. 'optional--',
  7514. 'optional2--',
  7515. "//a[contains(@href,'catshare.net/')]"
  7516. );
  7517. }
  7518. if (GM_getValue("Check_anonfiles_dot_com_links", false))
  7519. {
  7520. addFileHost(
  7521. "anonfiles\\.com/\\w+",
  7522. '"download_button"',
  7523. '<legend><b>404</b>',
  7524. 'optional--',
  7525. 'optional2--',
  7526. "//a[contains(@href,'anonfiles.com')]"
  7527. );
  7528. }
  7529. if (GM_getValue("Check_mixturecloud_dot_com_links", false))
  7530. {
  7531. addFileHost(
  7532. "mixturecloud\\.com/media/\\w+",
  7533. '"btn icon i_globe gray share_150',
  7534. '"s_cross_close"></span> 404:',
  7535. 'optional--',
  7536. 'optional2--',
  7537. "//a[contains(@href,'mixturecloud.com/media/')]"
  7538. );
  7539. }
  7540. if (GM_getValue("Check_akafile_dot_com_links", false))
  7541. {
  7542. addFileHost(
  7543. "akafile\\.com\/\\w+",
  7544. 'download1',
  7545. 'File Not Found',
  7546. 'optional--',
  7547. 'optional2--',
  7548. "//a[contains(@href,'akafile.com/')]"
  7549. );
  7550. }
  7551. if (GM_getValue("Check_creafile_dot_net_links", false))
  7552. {
  7553. addFileHost(
  7554. "creafile\\.net\/\\w+",
  7555. 'downloadblock',
  7556. 'errtitle',
  7557. 'optional--',
  7558. 'optional2--',
  7559. "//a[contains(@href,'creafile.net/')]"
  7560. );
  7561. }
  7562. if (GM_getValue("Check_hugefiles_dot_net_links", false))
  7563. {
  7564. addFileHost(
  7565. "hugefiles\\.net\/\\w+",
  7566. 'download1|class="btn-create-download" value="Create Download Link">',
  7567. 'File Not Found|No such file with this filename|tyle="width:500px;text-align:left;">',
  7568. 'optional--',
  7569. 'optional2--',
  7570. "//a[contains(@href,'hugefiles.net/')]"
  7571. );
  7572. }
  7573. if (GM_getValue("Check_sendmyway_dot_com_links", false))
  7574. {
  7575. addFileHost(
  7576. "sendmyway\\.com\/\\w+",
  7577. 'id="btn_download"',
  7578. '500px;text-align:left;"|<center><h3>',
  7579. 'optional--',
  7580. 'optional2--',
  7581. "//a[contains(@href,'sendmyway.com/')]"
  7582. );
  7583. }
  7584. if (GM_getValue("Check_upload_dot_ee_links", false))
  7585. {
  7586. addFileHost(
  7587. "upload\\.ee\/\\w+",
  7588. 'onmouseout="document.dllink.src',
  7589. 'There is no such file.|File was deleted|Fail kustutati|Файл удалён|Такого файла нет',
  7590. 'optional--',
  7591. 'optional2--',
  7592. "//a[contains(@href,'upload.ee/')]"
  7593. );
  7594. }
  7595. if (GM_getValue("Check_shareplace_dot_org_links", false))
  7596. {
  7597. addFileHost(
  7598. "shareplace\\.org\/\\?\\w+",
  7599. 'Download-Link',
  7600. 'Your requested file is not found|Select file to send',
  7601. 'optional--',
  7602. 'optional2--',
  7603. "//a[contains(@href,'shareplace.org/?')]"
  7604. );
  7605. }
  7606. if (GM_getValue("Check_uploadc_dot_com_links", false))
  7607. {
  7608. addFileHost(
  7609. "uploadc\\.com\/\\w+",
  7610. 'id="prebut"',
  7611. 'File Not Found|This file has been removed due',
  7612. 'optional--',
  7613. 'optional2--',
  7614. "//a[contains(@href,'uploadc.com/')]"
  7615. );
  7616. }
  7617. if (GM_getValue("Check_remixshare_dot_com_links", false))
  7618. {
  7619. addFileHost(
  7620. "remixshare\\.com\/\\w+",
  7621. 'id="dl2"',
  7622. '<table class=\'failed\'><tr><td width=\'90%\'>|Sorry, die Datei konnte nicht gefunden werden',
  7623. 'optional--',
  7624. 'optional2--',
  7625. "//a[contains(@href,'remixshare.com/')]"
  7626. );
  7627. }
  7628. if (GM_getValue("Check_exoshare_dot_com_links", false))
  7629. {
  7630. addFileHost(
  7631. "exoshare\\.com\/download\\.php\\?uid=\\w+",
  7632. 'Last Download :',
  7633. 'img src="\\/404.jpg"',
  7634. 'optional--',
  7635. 'optional2--',
  7636. "//a[contains(@href,'exoshare.com/download.php')]"
  7637. );
  7638. }
  7639. if (GM_getValue("Check_borncash_dot_org_links", false))
  7640. {
  7641. addFileHost(
  7642. "borncash\\.org\/download\/\\?a=\\w+",
  7643. 'class="knop_1"',
  7644. '\/error\/er00',
  7645. 'optional--',
  7646. 'optional2--',
  7647. "//a[contains(@href,'borncash.org/download/')]"
  7648. );
  7649. }
  7650. if (GM_getValue("Check_vidplay_dot_net_links", false))
  7651. {
  7652. addFileHost(
  7653. "vidplay\.net\/\\w+",
  7654. 'solvemedia puzzle widget',
  7655. 'File not found|AVOID_IE_BUG',
  7656. 'optional--',
  7657. 'optional2--',
  7658. "//a[contains(@href,'vidplay.net')]");
  7659. }
  7660. if (GM_getValue("Check_storagon_dot_com_links", false))
  7661. {
  7662. addFileHost(
  7663. "storagon\.com\/\\w+",
  7664. 'class="icon-cloud-download"></i>|content="Download Options',
  7665. 'content="Download Downloads|class="error-container">|class="bigger-300 bolder">404<',
  7666. 'optional--',
  7667. 'optional2--',
  7668. "//a[contains(@href,'storagon.com')]");
  7669. }
  7670. if (GM_getValue("Check_filedais_dot_com_links", false))
  7671. {
  7672. addFileHost(
  7673. "filedais\.com\/\\w+",
  7674. 'class="btn btn-info"|name="method_free"',
  7675. 'style="width:500px;text-align:left;">|File Not Found|AVOID_IE_BUG',
  7676. 'optional--',
  7677. 'optional2--',
  7678. "//a[contains(@href,'filedais.com')]");
  7679. }
  7680. if (GM_getValue("Check_up_dot_4share_dot_vn_links", false))
  7681. {
  7682. addFileHost(
  7683. "up.4share\.vn\/\\w+",
  7684. '<font size="2" face="Verdana">',
  7685. 'font: 13px Tahoma; color: Brown',
  7686. 'optional--',
  7687. 'optional2--',
  7688. "//a[contains(@href,'up.4share.vn')]");
  7689. }
  7690. if (GM_getValue("Check_share_dot_vnn_dot_vn_links", false))
  7691. {
  7692. addFileHost(
  7693. "share.vnn\.vn\/\\w+",
  7694. '"index,follow"|<div class="main" id="download-box">',
  7695. '<meta name="description" content="" />|<h1>Không tìm thấy file bạn yêu cầu</h1>',
  7696. 'optional--',
  7697. 'optional2--',
  7698. "//a[contains(@href,'share.vnn.vn')]");
  7699. }
  7700. if (GM_getValue("Check_upfile_dot_vn_links", false))
  7701. {
  7702. addFileHost(
  7703. "upfile\.vn\/\\w+",
  7704. 'download-timer',
  7705. '<meta name="description" content="Upload files|<meta name="description" content="Error "',
  7706. 'optional--',
  7707. 'optional2--',
  7708. "//a[contains(@href,'upfile.vn')]");
  7709. }
  7710. if (GM_getValue("Check_aisfile_dot_com_links", false))
  7711. {
  7712. addFileHost(
  7713. "aisfile\.com\/\\w+",
  7714. '<h3 style="text-align:left;">|align=right><b>Filename:',
  7715. '<div style="width:500px;text-align:left;">|File Not Found',
  7716. 'optional--',
  7717. 'optional2--',
  7718. "//a[contains(@href,'aisfile.com')]");
  7719. }
  7720. if (GM_getValue("Check_usersfiles_dot_com_links", false))
  7721. {
  7722. addFileHost(
  7723. "usersfiles\.com\/\\w+",
  7724. 'class="btn btn-success|id="btn_download" class="btn"',
  7725. '<div style="width:500px;text-align:left;">|class="label label-inverse">|class="err">',
  7726. 'optional--',
  7727. 'optional2--',
  7728. "//a[contains(@href,'usersfiles.com')]");
  7729. }
  7730. if (GM_getValue("Check_pan_dot_baidu_dot_com_links", false))
  7731. {
  7732. addFileHost(
  7733. "pan.baidu\.com\/\\w+",
  7734. 'target="_blank" title=|share-personal-info',
  7735. 'share_notfound.png|background:#f9f9f9',
  7736. 'optional--',
  7737. 'optional2--',
  7738. "//a[contains(@href,'pan.baidu.com')]");
  7739. }
  7740. if (GM_getValue("Check_yunpan_dot_cn_links", false))
  7741. {
  7742. addFileHost(
  7743. "yunpan\.cn\/\\w+",
  7744. 'class="icon icon-download',
  7745. 'content="360|http://p5.qhimg.com/t01d1c98667df9dc6cc.jpg',
  7746. 'optional--',
  7747. 'optional2--',
  7748. "//a[contains(@href,'yunpan.cn')]");
  7749. }
  7750. if (GM_getValue("Check_file_dash_upload_dot_net_links", false))
  7751. {
  7752. addFileHost(
  7753. "(?:en\\.|)file\\-upload\\.net\/download\\-\\d+\/\\w+",
  7754. 'getElementById("downbild")|style.display',
  7755. 'hochgeladene Datei nicht gefunden werden|has not been found',
  7756. 'optional--',
  7757. 'optional2--',
  7758. "//a[contains(@href,'file-upload.net')]");
  7759. }
  7760. if (GM_getValue("Check_gulfup_dot_com_links", false))
  7761. {
  7762. addFileHost(
  7763. "gulfup\.com\/",
  7764. '<!-- Downlod template -->|download.gif',
  7765. '<!-- Errors template -->|class="error">|<!-- form upload -->|[ رفع الملفات ]',
  7766. 'optional--',
  7767. 'optional2--',
  7768. "//a[contains(@href,'gulfup.com')]");
  7769. }
  7770. if (GM_getValue("Check_datafilehost_dot_com_links", false))
  7771. {
  7772. addFileHost(
  7773. "datafilehost\\.com\/(?:download-\\w+\\.html|d\/\\w+)",
  7774. 'dldtable">',
  7775. 'does not exist\\.',
  7776. 'optional--',
  7777. 'optional2--',
  7778. "//a[contains(@href,'datafilehost.com')]");
  7779. }
  7780. if (GM_getValue("Check_dropbox_dot_com_links", false))
  7781. {
  7782. addFileHost(
  7783. "dropbox\.com\/s\/\\w+",
  7784. 'default_content_download_button" class="freshbutton-blue">|content_download_button',
  7785. '>Nothing Here<|>Error (404)<',
  7786. 'title>Dropbox - 509|Error (403)|Error: 429',
  7787. 'optional2--',
  7788. "//a[contains(@href,'dropbox.com')]");
  7789. }
  7790. if (GM_getValue("Check_box_dot_net_links", false))
  7791. {
  7792. addFileHost(
  7793. "box\.net\/\\w+",
  7794. 'download-file-btn|id="download_button',
  7795. 'BIyMin.png| <div class="error_message',
  7796. 'optional--',
  7797. 'optional2--',
  7798. "//a[contains(@href,'box.net')]");
  7799. }
  7800. if (GM_getValue("Check_fileband_dot_com_links", false))
  7801. {
  7802. addFileHost(
  7803. "fileband\.com\/\\w+",
  7804. 'value="download1">|name="id" value=',
  7805. '<div style="width:500px;text-align:left;">|not be found',
  7806. 'optional--',
  7807. 'optional2--',
  7808. "//a[contains(@href,'fileband.com')]");
  7809. }
  7810. if (GM_getValue("Check_filedropper_dot_com_links", false))
  7811. {
  7812. addFileHost(
  7813. "filedropper\.com\/\\w+",
  7814. 'background:#ddd;|width:985px; ',
  7815. 'background-color:#FFFFFF;|margin-left: -400px;',
  7816. 'optional--',
  7817. 'optional2--',
  7818. "//a[contains(@href,'filedropper.com')]");
  7819. }
  7820. if (GM_getValue("Check_tropicshare_dot_com_links", false))
  7821. {
  7822. addFileHost(
  7823. "tropicshare\\.com\/files\/\\d+",
  7824. 'MB</span>|GB</span>|KB</span>',
  7825. '>FNF<|size: </span>',
  7826. 'optional--',
  7827. 'optional2--',
  7828. "//a[contains(@href,'tropicshare.com')]");
  7829. }
  7830. if (GM_getValue("Check_goldbytez_dot_com_links", false))
  7831. {
  7832. addFileHost(
  7833. "goldbytez\.com\/\\w+",
  7834. '<h2>Download</h2>|<center><h2>File: <font color="red">',
  7835. '<div style="width:500px;text-align:left;">|<h2>Error</h2>',
  7836. 'optional--',
  7837. 'optional2--',
  7838. "//a[contains(@href,'goldbytez.com')]");
  7839. }
  7840. if (GM_getValue("Check_worldbytez_dot_com_links", false))
  7841. {
  7842. addFileHost(
  7843. "worldbytez\.com\/\\w+",
  7844. '<div class="download_type">',
  7845. '<div style="width:500px;text-align:left;">',
  7846. 'optional--',
  7847. 'optional2--',
  7848. "//a[contains(@href,'worldbytez.com')]");
  7849. }
  7850. if (GM_getValue("Check_freefilehosting_dot_net_links", false))
  7851. {
  7852. addFileHost(
  7853. "freefilehosting\.net\/\\w+",
  7854. 'Type: cbr|Type: rar|Type: jpg|Type: mkv|Type: avi|Type: mpg|Type: mpeg|Type: zip|Type: wmvType: bmpType: gifType: mp4Type: mp3',
  7855. '175px;" value="http://www.freefilehosting.net/"|Filename: <br>',
  7856. 'optional--',
  7857. 'optional2--',
  7858. "//a[contains(@href,'freefilehosting.net')]");
  7859. }
  7860. if (GM_getValue("Check_ziddu_dot_com_links", false))
  7861. {
  7862. addFileHost(
  7863. "ziddu\.com\/\\w+",
  7864. 'downloads.ziddu.com|downloadfilelinkicon',
  7865. 'errortracking.php|images/oops.png|fontfamilyverdana error',
  7866. 'optional--',
  7867. 'optional2--',
  7868. "//a[contains(@href,'ziddu.com')]");
  7869. }
  7870. if (GM_getValue("Check_exclusiveloader_dot_com_links", false))
  7871. {
  7872. addFileHost(
  7873. "exclusiveloader\.com\/\\w+",
  7874. 'style="padding-top:55px; padding-bottom:65px;">|<h2>Download</h2>',
  7875. 'File Not Found|width:322px;text-align:left;" class="no_file">',
  7876. 'optional--',
  7877. 'optional2--',
  7878. "//a[contains(@href,'exclusiveloader.com')]");
  7879. }
  7880. if (GM_getValue("Check_sharerapid_dot_cz_links", false))
  7881. {
  7882. addFileHost(
  7883. "sharerapid\.cz\/\\w+",
  7884. 'value="Stáhnout"|soubor" style|Stahování je povoleno pouze pro přihlášené uživatele',
  7885. 'error_div">|404 - Not Found',
  7886. 'optional--',
  7887. 'optional2--',
  7888. "//a[contains(@href,'sharerapid.cz')]");
  7889. }
  7890. if (GM_getValue("Check_sdilej_dot_cz_links", false))
  7891. {
  7892. addFileHost(
  7893. "sdilej\.cz\/\\w+",
  7894. 'class="page-download"',
  7895. '<h2 class="red">|czshare.com|sponsored listings|This domain is for sale',
  7896. 'optional--',
  7897. 'optional2--',
  7898. "//a[contains(@href,'sdilej.cz')]");
  7899. }
  7900. if (GM_getValue("Check_lafiles_dot_com_links", false))
  7901. {
  7902. addFileHost(
  7903. "lafiles\.com\/\\w+",
  7904. '<div id="pay_modes">',
  7905. '<b class="err"></b>',
  7906. 'optional--',
  7907. 'optional2--',
  7908. "//a[contains(@href,'lafiles.com')]");
  7909. }
  7910. if (GM_getValue("Check_acefile_dot_net_links", false))
  7911. {
  7912. addFileHost(
  7913. "acefile\.net\/\\w+",
  7914. 'align=right nowrap><b>',
  7915. 'File Not Found|<div style="width:322px;text-align:left;" class="no_file">',
  7916. 'optional--',
  7917. 'optional2--',
  7918. "//a[contains(@href,'acefile.net')]");
  7919. }
  7920. if (GM_getValue("Check_megarapid_dot_cz_links", false))
  7921. {
  7922. addFileHost(
  7923. "megarapid\.cz\/\\w+",
  7924. 'value="Stáhnout"|soubor" style|Stahování je povoleno pouze pro přihlášené uživatele',
  7925. 'error_div">|404 - Not Found',
  7926. 'optional--',
  7927. 'optional2--',
  7928. "//a[contains(@href,'megarapid.cz')]");
  7929. }
  7930. if (GM_getValue("Check_yadi_dot_sk_links", false))
  7931. {
  7932. addFileHost(
  7933. "yadi\.sk\/\\w+",
  7934. 'twitter:site|View and download',
  7935. 'error code|Nothing found',
  7936. 'optional--',
  7937. 'optional2--',
  7938. "//a[contains(@href,'yadi.sk')]");
  7939. }
  7940. /* if (GM_getValue("Check_imdb_dot_com_links", false))
  7941. {
  7942. addFileHost(
  7943. "imdb\.com\/\\w+",
  7944. 'imdb.com',
  7945. '404 Error',
  7946. 'optional--',
  7947. 'optional2--',
  7948. "//a[contains(@href,'imdb.com')]");
  7949. } */
  7950. if (GM_getValue("Check_hitfile_dot_net_links", false))
  7951. {
  7952. addFileHost(
  7953. "hitfile\.net\/\\w+",
  7954. 'class="download-file',
  7955. 'style="width:16px;height:16px;border:0;|File not found|Файл не найден. Возможно он был удален',
  7956. 'optional--',
  7957. 'optional2--',
  7958. "//a[contains(@href,'hitfile.net')]");
  7959. }
  7960. if (GM_getValue("Check_nitroflare_dot_com_links", true))
  7961. {
  7962. addFileHost(
  7963. "nitroflare\.com\/\\w+",
  7964. 'MB</span>|left;">1 GB<|KB</span>|left;">1.0',
  7965. 'file has been removed|id="error" style="display|Probably deleted',
  7966. 'optional--',
  7967. '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.|',
  7968. "//a[contains(@href,'nitroflare.com')]");
  7969. }
  7970. if (GM_getValue("Check_up_dot_top4top_dot_net_links", false))
  7971. {
  7972. addFileHost(
  7973. "up.top4top\.net\/\\w+",
  7974. 'start Downlod template',
  7975. 'start err template',
  7976. 'optional--',
  7977. 'optional2--',
  7978. "//a[contains(@href,'up.top4top.net')]");
  7979. }
  7980. if (GM_getValue("Check_filejoker_dot_net_links", false))
  7981. {
  7982. addFileHost(
  7983. "filejoker\.net\/\\w+",
  7984. 'button id="regular-download">Slow|method_free" value="1|<div id="download" class="download0">',
  7985. 'File Not Found|class="not_found|<div id="download" class="not_found">|"err">DMCA Complaint<',
  7986. 'optional--',
  7987. 'id="download" class="premium-only">',
  7988. "//a[contains(@href,'filejoker.net')]");
  7989. }
  7990. if (GM_getValue("Check_free_dot_fr_links", false))
  7991. {
  7992. addFileHost(
  7993. "(?:dl.\\.|)free\\.fr",
  7994. 'Valider et t&eacute;l&eacute',
  7995. 'Fichier inexistant|Fichier supprim&eacute; pour raison de copyright',
  7996. 'optional--',
  7997. 'optional2--',
  7998. "//a[contains(@href,'dl.free.fr')]");
  7999. }
  8000. if (GM_getValue("Check_gboxes_dot_com_links", false))
  8001. {
  8002. addFileHost(
  8003. "gboxes\.com\/\\w+",
  8004. 'You have requested|color="red">http://www.gboxes.com',
  8005. 'File Not Found|<div style="width:500px;text-align:left;">',
  8006. 'optional--',
  8007. 'optional2--',
  8008. "//a[contains(@href,'gboxes.com')]");
  8009. }
  8010. if (GM_getValue("Check_led_dot_wf_links", false))
  8011. {
  8012. addFileHost(
  8013. "led\.wf\/\\w+",
  8014. 'logo_0.png|downloads.gif"|verifycode',
  8015. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  8016. 'optional--',
  8017. 'optional2--',
  8018. "//a[contains(@href,'led.wf')]");
  8019. }
  8020. if (GM_getValue("Check_lan_dot_wf_links", false))
  8021. {
  8022. addFileHost(
  8023. "lan\.wf\/\\w+",
  8024. 'logo_0.png|downloads.gif"|verifycode',
  8025. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  8026. 'optional--',
  8027. 'optional2--',
  8028. "//a[contains(@href,'lan.wf')]");
  8029. }
  8030. if (GM_getValue("Check_adlink_dot_wf_links", false))
  8031. {
  8032. addFileHost(
  8033. "adlink\.wf\/\\w+",
  8034. 'logo_0.png|downloads.gif"|verifycode',
  8035. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  8036. 'optional--',
  8037. 'optional2--',
  8038. "//a[contains(@href,'adlink.wf')]");
  8039. }
  8040. if (GM_getValue("Check_click_dot_tf_links", false))
  8041. {
  8042. addFileHost(
  8043. "click\.tf\/\\w+",
  8044. 'logo_0.png|downloads.gif"|verifycode',
  8045. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  8046. 'optional--',
  8047. 'optional2--',
  8048. "//a[contains(@href,'click.tf')]");
  8049. }
  8050. if (GM_getValue("Check_ssh_dot_tf_links", false))
  8051. {
  8052. addFileHost(
  8053. "ssh\.tf\/\\w+",
  8054. 'logo_0.png|downloads.gif"|verifycode',
  8055. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  8056. 'optional--',
  8057. 'optional2--',
  8058. "//a[contains(@href,'ssh.tf')]");
  8059. }
  8060. if (GM_getValue("Check_ssh_dot_yt_links", false))
  8061. {
  8062. addFileHost(
  8063. "ssh\.yt\/\\w+",
  8064. 'logo_0.png|downloads.gif"|verifycode',
  8065. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  8066. 'optional--',
  8067. 'optional2--',
  8068. "//a[contains(@href,'ssh.yt')]");
  8069. }
  8070. if (GM_getValue("Check_yep_dot_pm_links", false))
  8071. {
  8072. addFileHost(
  8073. "yep\.pm\/\\w+",
  8074. 'logo_0.png|downloads.gif"|verifycode',
  8075. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  8076. 'optional--',
  8077. 'optional2--',
  8078. "//a[contains(@href,'yep.pm')]");
  8079. }
  8080. if (GM_getValue("Check_kyc_dot_pm_links", false))
  8081. {
  8082. addFileHost(
  8083. "kyc\.pm\/\\w+",
  8084. 'logo_0.png|downloads.gif"|verifycode',
  8085. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  8086. 'optional--',
  8087. 'optional2--',
  8088. "//a[contains(@href,'kyc.pm')]");
  8089. }
  8090. if (GM_getValue("Check_brupload_dot_net_links", false))
  8091. {
  8092. addFileHost(
  8093. "brupload\.net\/\\w+",
  8094. 'Download Gratuito',
  8095. '<div style="width:500px;text-align:left;">',
  8096. 'optional--',
  8097. 'optional2--',
  8098. "//a[contains(@href,'brupload.net')]");
  8099. }
  8100. if (GM_getValue("Check_cloudzilla_dot_to_links", false))
  8101. {
  8102. addFileHost(
  8103. "cloudzilla\.to\/\\w+",
  8104. 'btn1" id="free_download|onclick="freeDownload|id="pwd_protected">',
  8105. 'File not found|/imgs/broken.png',
  8106. 'optional--',
  8107. 'optional2--',
  8108. "//a[contains(@href,'cloudzilla.to')]");
  8109. }
  8110. if (GM_getValue("Check_fileparadox_dot_in_links", false))
  8111. {
  8112. addFileHost(
  8113. "fileparadox\.in\/\\w+",
  8114. 'CONTENT="Download File|method_free_file',
  8115. '>File Not Found<|id="no_filedownload">|FILE NOT FOUND|The file does not exist',
  8116. 'optional--',
  8117. 'optional2--',
  8118. "//a[contains(@href,'fileparadox.in')or contains(@href,'3files.net/')]");
  8119. }
  8120. if (GM_getValue("Check_clicknupload_dot_com_links", false))
  8121. {
  8122. addFileHost(
  8123. "clicknupload\.com\/\\w+",
  8124. 'name="method_free',
  8125. 'File Not Found',
  8126. 'optional--',
  8127. 'optional2--',
  8128. "//a[contains(@href,'clicknupload.com')]");
  8129. }
  8130. if (GM_getValue("Check_ex_dash_load_dot_com_links", false))
  8131. {
  8132. addFileHost(
  8133. "ex-load\.com\/\\w+",
  8134. 'name="method_free|<p>Download File:</p>',
  8135. 'Folder Not Found|File Not Found|Error 404',
  8136. 'optional--',
  8137. 'class="downprem wow bounceInLeft',
  8138. "//a[contains(@href,'ex-load.com')]");
  8139. }
  8140. if (GM_getValue("Check_hexupload_dot_com_links", false))
  8141. {
  8142. addFileHost(
  8143. "hexupload\.com\/\\w+",
  8144. 'button" value="Free|type="submit" value=""',
  8145. 'File Not Found|<div style="width:500px;text-align:left;">',
  8146. 'optional--',
  8147. 'optional2--',
  8148. "//a[contains(@href,'hexupload.com')]");
  8149. }
  8150. if (GM_getValue("Check_wizupload_dot_com_links", false))
  8151. {
  8152. addFileHost(
  8153. "wizupload\.com\/\\w+",
  8154. 'btn_download|class="downloadbtn"',
  8155. '>File Not Found<',
  8156. 'optional--',
  8157. 'optional2--',
  8158. "//a[contains(@href,'wizupload.com')]");
  8159. }
  8160. if (GM_getValue("Check_filecloud_dot_cc_links", false))
  8161. {
  8162. addFileHost(
  8163. "filecloud\.cc\/\\w+",
  8164. 'align="center"><input type="submit" name=',
  8165. 'File Not Found|<Title>FileCloud - Premium Hosting Service<',
  8166. 'optional--',
  8167. 'optional2--',
  8168. "//a[contains(@href,'filecloud.cc')]");
  8169. }
  8170. if (GM_getValue("Check_inclouddrive_dot_com_links", false))
  8171. {
  8172. addFileHost(
  8173. "inclouddrive\.com\/\\w+",
  8174. 'initfreedownload',
  8175. '<title>Content Unavailable|The file you are trying to download is no longer available',
  8176. 'optional--',
  8177. 'optional2--',
  8178. "//a[contains(@href,'inclouddrive.com')]");
  8179. }
  8180. if (GM_getValue("Check_radicalshare_dot_com_links", false))
  8181. {
  8182. addFileHost(
  8183. "radicalshare\.com\/\\w+",
  8184. 'value="download1|name="method_free"',
  8185. 'File Not Found<|<div style="width:500px;text-align:left;">',
  8186. 'optional--',
  8187. 'optional2--',
  8188. "//a[contains(@href,'radicalshare.com')]");
  8189. }
  8190. if (GM_getValue("Check_sharemods_dot_com_links", false))
  8191. {
  8192. addFileHost(
  8193. "sharemods\.com\/\\w+",
  8194. 'name="method_free"',
  8195. 'File Not Found<',
  8196. 'optional--',
  8197. 'optional2--',
  8198. "//a[contains(@href,'sharemods.com')]");
  8199. }
  8200. if (GM_getValue("Check_hostr_dot_co_links", false))
  8201. {
  8202. addFileHost(
  8203. "hostr\.co\/\\w+",
  8204. 'method="get"',
  8205. 'File not found<|error-page',
  8206. 'optional--',
  8207. 'optional2--',
  8208. "//a[contains(@href,'hostr.co')]");
  8209. }
  8210. if (GM_getValue("Check_filepi_dot_com_links", false))
  8211. {
  8212. addFileHost(
  8213. "filepi\.com\/\\w+",
  8214. 'id="button_start">',
  8215. 'File not found',
  8216. 'optional--',
  8217. 'optional2--',
  8218. "//a[contains(@href,'filepi.com')]");
  8219. }
  8220. if (GM_getValue("Check_tikfile_dot_com_links", false))
  8221. {
  8222. addFileHost(
  8223. "tikfile\.com\/\\w+",
  8224. 'btn_download',
  8225. 'File Not Found|file was removed|Reason for deletion',
  8226. 'optional--',
  8227. 'optional2--',
  8228. "//a[contains(@href,'tikfile.com')]");
  8229. }
  8230. if (GM_getValue("Check_cloudsix_dot_me_links", false))
  8231. {
  8232. addFileHost(
  8233. "cloudsix\.me\/\\w+",
  8234. 'name="method_free"',
  8235. 'File Not Found|width:500px;text-align:left;">',
  8236. 'optional--',
  8237. 'optional2--',
  8238. "//a[contains(@href,'cloudsix.me')]");
  8239. }
  8240. if (GM_getValue("Check_neodrive_dot_co_links", false))
  8241. {
  8242. addFileHost(
  8243. "neodrive\.co\/\\w+",
  8244. 'btn1" id="free_download|onclick="freeDownload|id="pwd_protected">',
  8245. 'File not found|/imgs/broken.png',
  8246. 'optional--',
  8247. 'optional2--',
  8248. "//a[contains(@href,'neodrive.co')]");
  8249. }
  8250. if (GM_getValue("Check_chayfile_dot_com_links", false))
  8251. {
  8252. addFileHost(
  8253. "chayfile\.com\/\\w+",
  8254. 'name="method_free"',
  8255. 'File Not Found|<h3>The file was removed by administrator</h3>',
  8256. 'optional--',
  8257. 'optional2--',
  8258. "//a[contains(@href,'chayfile.com')]");
  8259. }
  8260. if (GM_getValue("Check_xfileload_dot_com_links", false))
  8261. {
  8262. addFileHost(
  8263. "xfileload\.com\/\\w+",
  8264. 'Filename:|Имя файла:|Dateiname:|nom de fichier :|اسم الملف:|Dosya AdД±|Nazwa:|Nombre de fichero:|NamaFile:|Bestandsnaam:|שם קובץ:"',
  8265. '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..|הקובץ שחיפשת לא נמצא.',
  8266. 'optional--',
  8267. 'optional2--',
  8268. "//a[contains(@href,'xfileload.com')]");
  8269. }
  8270. if (GM_getValue("Check_rockfile_dot_eu_links", false))
  8271. {
  8272. addFileHost(
  8273. "rockfile\.eu\/\\w+",
  8274. 'You have requested:|vous avez demandé|قد طلبت:|você solicitou:|Hai richiesto:|Sie haben angefordert:|Вы заказали:|Has solicitado',
  8275. 'The file you were looking for could not be found, sorry for any inconvenience.|fa-chain-broken">',
  8276. 'optional--',
  8277. 'optional2--',
  8278. "//a[contains(@href,'rockfile.eu')]");
  8279. }
  8280. if (GM_getValue("Check_24uploading_dot_com_links", false))
  8281. {
  8282. addFileHost(
  8283. "24uploading\.com\/\\w+",
  8284. 'File:|Download Speed:',
  8285. '<b>File Not Found</b>|file was removed',
  8286. 'optional--',
  8287. 'optional2--',
  8288. "//a[contains(@href,'24uploading.com')]");
  8289. }
  8290. if (GM_getValue("Check_tusfiles_dot_net_links", false))
  8291. {
  8292. addFileHost(
  8293. "tusfiles\.net\/\\w+",
  8294. 'i/icon/dll.png"|>Start download<br',
  8295. 'no longer available<|i/ino.png"',
  8296. 'optional--',
  8297. 'optional2--',
  8298. "//a[contains(@href,'tusfiles.net')]");
  8299. }
  8300. /* if (GM_getValue("Check_jumbofile_dot_net_links", false))
  8301. {
  8302. addFileHost(
  8303. "jumbofile\.net\/\\w+",
  8304. 'button" class="" value="Free',
  8305. 'This File Was Deleted',
  8306. 'optional--',
  8307. 'optional2--',
  8308. "//a[contains(@href,'jumbofile.net')]");
  8309. } */
  8310. if (GM_getValue("Check_ozofiles_dot_com_links", false))
  8311. {
  8312. addFileHost(
  8313. "ozofiles\.com\/\\w+",
  8314. 'button" value="Free',
  8315. 'File Not Found|width:500px;text-align:left;">|File Deleted',
  8316. 'optional--',
  8317. 'optional2--',
  8318. "//a[contains(@href,'ozofiles.com')]");
  8319. }
  8320. if (GM_getValue("Check_loudupload_dot_net_links", false))
  8321. {
  8322. addFileHost(
  8323. "loudupload\.net\/\\w+",
  8324. 'value="Get Links',
  8325. 'File Not Found',
  8326. 'optional--',
  8327. 'optional2--',
  8328. "//a[contains(@href,'loudupload.net')]");
  8329. }
  8330. if (GM_getValue("Check_rapidsonic_dot_com_links", false))
  8331. {
  8332. addFileHost(
  8333. "(rapidsonic|fileparadox)\\.com\/\\w+",
  8334. 'method_free" id="submit_btn|<h4><i class="icon_document_alt"></i>Download File</h4>',
  8335. '>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">',
  8336. 'optional--',
  8337. 'optional2--',
  8338. "//a[contains(@href,'rapidsonic') or contains(@href,'3files.net/') or contains(@href,'fileparadox.com')]");
  8339. }
  8340. /* if (GM_getValue("Check_krotix_dot_net_links", false))
  8341. {
  8342. addFileHost(
  8343. "krotix\.net\/\\w+",
  8344. 'btn btn-warning|btn-free',
  8345. 'pageErrors|This File has been removed',
  8346. 'content="Scheduled Maintenance',
  8347. 'optional2--',
  8348. "//a[contains(@href,'krotix.net')]");
  8349. } */
  8350. if (GM_getValue("Check_userscloud_dot_com_links", false))
  8351. {
  8352. addFileHost(
  8353. "userscloud\.com\/\\w+",
  8354. 'btn_download',
  8355. '>Server OFFLINE|background:#D3D3D3;border-bottom:1px solid #BBB;font:bold 13px Verdana;padding:3px;">|-chain-broken',
  8356. 'optional--',
  8357. 'optional2--',
  8358. "//a[contains(@href,'userscloud.com')]");
  8359. }
  8360. if (GM_getValue("Check_kumpulbagi_dot_com_links", false))
  8361. {
  8362. addFileHost(
  8363. "kumpulbagi\.com\/\\w+",
  8364. 'class="button download',
  8365. 'internal server error',
  8366. 'optional--',
  8367. 'optional2--',
  8368. "//a[contains(@href,'kumpulbagi.com')]");
  8369. }
  8370. if (GM_getValue("Check_faststore_dot_org_links", false))
  8371. {
  8372. addFileHost(
  8373. "faststore\.org\/\\w+",
  8374. 'name="method_free',
  8375. 'File Not Found',
  8376. 'optional--',
  8377. 'optional2--',
  8378. "//a[contains(@href,'faststore.org')]");
  8379. }
  8380. if (GM_getValue("Check_prefiles_dot_com_links", false))
  8381. {
  8382. addFileHost(
  8383. "prefiles\.com\/\\w+",
  8384. 'id="method_free',
  8385. 'File not Found',
  8386. 'optional--',
  8387. 'optional2--',
  8388. "//a[contains(@href,'prefiles.com')]");
  8389. }
  8390. if (GM_getValue("Check_doraupload_dot_com_links", false))
  8391. {
  8392. addFileHost(
  8393. "doraupload\.com\/\\w+",
  8394. 'btn_download',
  8395. 'class="error-code|Could Not Be Found',
  8396. 'optional--',
  8397. 'optional2--',
  8398. "//a[contains(@href,'doraupload.com')]");
  8399. }
  8400. if (GM_getValue("Check_openload_dot_io_links", false))
  8401. {
  8402. addFileHost(
  8403. "openload\.io\/\\w+",
  8404. 'btn btn-primary|class="count">',
  8405. 'class="jumbotron">|We are sorry',
  8406. 'optional--',
  8407. 'optional2--',
  8408. "//a[contains(@href,'openload.io')]");
  8409. }
  8410. if (GM_getValue("Check_uploads_dot_xxx_links", false))
  8411. {
  8412. addFileHost(
  8413. "uploads\.xxx\/\\w+",
  8414. 'downoadForFree',
  8415. 'File not found',
  8416. 'optional--',
  8417. 'optional2--',
  8418. "//a[contains(@href,'uploads.xxx')]");
  8419. }
  8420. if (GM_getValue("Check_zxcfiles_dot_com_links", false))
  8421. {
  8422. addFileHost(
  8423. "zxcfiles\.com\/\\w+",
  8424. 'class="downloadbtn',
  8425. 'File Not Found',
  8426. 'optional--',
  8427. 'optional2--',
  8428. "//a[contains(@href,'zxcfiles.com')]");
  8429. }
  8430. if (GM_getValue("Check_up07_dot_net_links", false))
  8431. {
  8432. addFileHost(
  8433. "up07\.net\/\\w+",
  8434. 'name="method_free',
  8435. 'File Not Found',
  8436. 'optional--',
  8437. 'optional2--',
  8438. "//a[contains(@href,'up07.net')]");
  8439. }
  8440. if (GM_getValue("Check_fileupload_dot_pw_links", false))
  8441. {
  8442. addFileHost(
  8443. "fileupload\.pw\/\\w+",
  8444. 'value="Free"',
  8445. 'File Not Found',
  8446. 'optional--',
  8447. 'optional2--',
  8448. "//a[contains(@href,'fileupload.pw')]");
  8449. }
  8450. if (GM_getValue("Check_4upld_dot_com_links", false))
  8451. {
  8452. addFileHost(
  8453. "4upld\.com\/\\w+",
  8454. 'alt="Download Now"|content="Download file">|btn-free-element',
  8455. '<title>Error|content="error|File not found',
  8456. 'optional--',
  8457. 'optional2--',
  8458. "//a[contains(@href,'4upld.com')]");
  8459. }
  8460. /* if (GM_getValue("Check_newfileland_dot_com_links", false))
  8461. {
  8462. addFileHost(
  8463. "newfileland\.com\/\\w+",
  8464. 'name="method_free',
  8465. 'File Not Found',
  8466. 'optional--',
  8467. 'optional2--',
  8468. "//a[contains(@href,'newfileland.com')]");
  8469. } */
  8470. if (GM_getValue("Check_swoopshare_dot_com_links", false))
  8471. {
  8472. addFileHost(
  8473. "(?:.swoopshare)\\.com\/\\w+",
  8474. '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',
  8475. '<input type="file" name="f"',
  8476. 'optional--',
  8477. 'optional2--',
  8478. "//a[contains(@href,'swoopshare.com')]"
  8479. );
  8480. }
  8481. if (GM_getValue("Check_cloudshares_dot_net_links", false))
  8482. {
  8483. addFileHost(
  8484. "cloudshares\.net\/\\w+",
  8485. '"method_free|"Low Speed Download|submit" name="go',
  8486. 'Not Found|"width:500px;text-align:left;">|No such file exist',
  8487. 'optional--',
  8488. 'optional2--',
  8489. "//a[contains(@href,'cloudshares.net')]"
  8490. );
  8491. }
  8492. if (GM_getValue("Check_allmyvideos_dot_net_links", false))
  8493. {
  8494. addFileHost(
  8495. "allmyvideos\.net\/\\w+",
  8496. 'Continue to Video',
  8497. 'File Not Found|class="err">Removed for',
  8498. 'optional--',
  8499. 'optional2--',
  8500. "//a[contains(@href,'allmyvideos.net')]"
  8501. );
  8502. }
  8503. if (GM_getValue("Check_vodlocker_dot_com_links", false))
  8504. {
  8505. addFileHost(
  8506. "vodlocker\.com\/\\w+",
  8507. 'Proceed to video',
  8508. 'Not Found',
  8509. 'optional--',
  8510. 'optional2--',
  8511. "//a[contains(@href,'vodlocker.com')]"
  8512. );
  8513. }
  8514. if (GM_getValue("Check_vidbull_dot_com_links", false))
  8515. {
  8516. addFileHost(
  8517. "vidbull\.com\/\\w+",
  8518. 'Verifying Video Request',
  8519. 'File Not Found',
  8520. 'optional--',
  8521. 'optional2--',
  8522. "//a[contains(@href,'vidbull.com')]");
  8523. }
  8524. if (GM_getValue("Check_novamov_dot_com_links", false))
  8525. {
  8526. addFileHost(
  8527. "novamov\.com\/\\w+",
  8528. 'For version detection',
  8529. 'file no longer exists',
  8530. 'optional--',
  8531. 'optional2--',
  8532. "//a[contains(@href,'novamov.com')]"
  8533. );
  8534. }
  8535. if (GM_getValue("Check_filehoot_dot_com_links", false))
  8536. {
  8537. addFileHost(
  8538. "filehoot\.com\/\\w+",
  8539. 'Continue to watch',
  8540. 'File Not Found',
  8541. 'optional--',
  8542. 'optional2--',
  8543. "//a[contains(@href,'filehoot.com')]"
  8544. );
  8545. }
  8546. if (GM_getValue("Check_stagevu_dot_com_links", false))
  8547. {
  8548. addFileHost(
  8549. "stagevu\.com\/\\w+",
  8550. 'Video Info',
  8551. 'No video with the provided',
  8552. 'optional--',
  8553. 'optional2--',
  8554. "//a[contains(@href,'stagevu.com')]"
  8555. );
  8556. }
  8557. if (GM_getValue("Check_cloudtime_dot_to_links", false))
  8558. {
  8559. addFileHost(
  8560. "cloudtime\.to\/\\w+",
  8561. 'Download the video',
  8562. 'no longer exists',
  8563. 'optional--',
  8564. 'optional2--',
  8565. "//a[contains(@href,'cloudtime.to')]"
  8566. );
  8567. }
  8568. if (GM_getValue("Check_streamin_dot_to_links", false))
  8569. {
  8570. addFileHost(
  8571. "streamin\.to\/\\w+",
  8572. 'id="btn_download',
  8573. 'Not Found|Copyright Infringement|File Deleted',
  8574. 'optional--',
  8575. 'optional2--',
  8576. "//a[contains(@href,'streamin.to')]"
  8577. );
  8578. }
  8579. if (GM_getValue("Check_videoweed_dot_es_links", false))
  8580. {
  8581. addFileHost(
  8582. "videoweed\.es\/\\w+",
  8583. 'version detection',
  8584. 'no longer exists',
  8585. 'optional--',
  8586. 'optional2--',
  8587. "//a[contains(@href,'videoweed.es')]"
  8588. );
  8589. }
  8590. if (GM_getValue("Check_nowvideo_dot_sx_links", false))
  8591. {
  8592. addFileHost(
  8593. "nowvideo\.sx\/\\w+",
  8594. 'Download this video',
  8595. 'no longer exists',
  8596. 'optional--',
  8597. 'optional2--',
  8598. "//a[contains(@href,'nowvideo.sx')]"
  8599. );
  8600. }
  8601. if (GM_getValue("Check_thevideo_dot_me_links", false))
  8602. {
  8603. addFileHost(
  8604. "thevideo\.me\/\\w+",
  8605. 'Upgrade your account|Proceed to video|class="btn btn-lg btn-dark">',
  8606. 'File Not Found',
  8607. 'optional--',
  8608. 'optional2--',
  8609. "//a[contains(@href,'thevideo.me')]"
  8610. );
  8611. }
  8612. if (GM_getValue("Check_gorillavid_dot_in_links", false))
  8613. {
  8614. addFileHost(
  8615. "gorillavid\.in\/\\w+",
  8616. 'Wait 5 seconds',
  8617. 'File Not Found',
  8618. 'optional--',
  8619. 'optional2--',
  8620. "//a[contains(@href,'gorillavid.in')]"
  8621. );
  8622. }
  8623. if (GM_getValue("Check_thefile_dot_me_links", false))
  8624. {
  8625. addFileHost(
  8626. "thefile\.me\/\\w+",
  8627. 'Choose free or',
  8628. '',
  8629. 'optional--',
  8630. 'optional2--',
  8631. "//a[contains(@href,'thefile.me')]"
  8632. );
  8633. }
  8634. if (GM_getValue("Check_vidzi_dot_tv_links", false))
  8635. {
  8636. addFileHost(
  8637. "vidzi\.tv\/\\w+",
  8638. 'video-embed-modal row',
  8639. 'File Not Found|file was deleted',
  8640. 'optional--',
  8641. 'optional2--',
  8642. "//a[contains(@href,'vidzi.tv')]"
  8643. );
  8644. }
  8645. if (GM_getValue("Check_filenuke_dot_com_links", false))
  8646. {
  8647. addFileHost(
  8648. "filenuke\.com\/\\w+",
  8649. 'Download File',
  8650. 'Earn with us',
  8651. 'optional--',
  8652. 'optional2--',
  8653. "//a[contains(@href,'filenuke.com')]"
  8654. );
  8655. }
  8656. if (GM_getValue("Check_vidto_dot_me_links", false))
  8657. {
  8658. addFileHost(
  8659. "vidto\.me\/\\w+",
  8660. 'Proceed to video',
  8661. 'Not Found',
  8662. 'optional--',
  8663. 'optional2--',
  8664. "//a[contains(@href,'vidto.me')]"
  8665. );
  8666. }
  8667. if (GM_getValue("Check_vidspot_dot_net_links", false))
  8668. {
  8669. addFileHost(
  8670. "vidspot\.net\/\\w+",
  8671. 'Duration',
  8672. 'Removed for',
  8673. 'optional--',
  8674. 'optional2--',
  8675. "//a[contains(@href,'vidspot.net')]"
  8676. );
  8677. }
  8678. if (GM_getValue("Check_sharesix_dot_com_links", false))
  8679. {
  8680. addFileHost(
  8681. "(?:sharesix\\.com|sharesix\\.net)\/\\w+",
  8682. 'Download File',
  8683. 'File Not Found',
  8684. 'optional--',
  8685. 'optional2--',
  8686. "//a[contains(@href,'sharesix.com') or contains(@href,'sharesix.net/')]"
  8687. );
  8688. }
  8689. if (GM_getValue("Check_movpod_dot_in_links", false))
  8690. {
  8691. addFileHost(
  8692. "movpod\.in\/\\w+",
  8693. 'Continue',
  8694. 'File Not Found',
  8695. 'optional--',
  8696. 'optional2--',
  8697. "//a[contains(@href,'movpod.in')]"
  8698. );
  8699. }
  8700. /* if (GM_getValue("Check_down4files_dot_com_links", false))
  8701. {
  8702. addFileHost(
  8703. "down4files\.com\/\\w+",
  8704. 'down_table.png',
  8705. 'style="color:#d33|Error</td>|width:500px;text-align:left;">',
  8706. 'optional--',
  8707. 'optional2--',
  8708. "//a[contains(@href,'down4files.com')]"
  8709. );
  8710. } */
  8711. if (GM_getValue("Check_storefiles_dot_co_links", false))
  8712. {
  8713. addFileHost(
  8714. "storefiles\.co\/\\w+",
  8715. 'btn_download',
  8716. 'No such file|>Error<|mqmaintitle">',
  8717. 'optional--',
  8718. 'optional2--',
  8719. "//a[contains(@href,'storefiles.co')]"
  8720. );
  8721. }
  8722. if (GM_getValue("Check_filehost_dot_pw_links", false))
  8723. {
  8724. addFileHost(
  8725. "filehost\.pw\/\\w+",
  8726. 'name="method_free',
  8727. '>Error<|style="color:#d33;">|No such file|FILE NOT FOUND',
  8728. 'optional--',
  8729. 'optional2--',
  8730. "//a[contains(@href,'filehost.pw')]"
  8731. );
  8732. }
  8733. if (GM_getValue("Check_inafile_dot_com_links", false))
  8734. {
  8735. addFileHost(
  8736. "inafile\.com\/\\w+",
  8737. 'value="download1">|<h2>File: <font style="color:darkred">',
  8738. '<div style="width:500px;text-align:left;">|File Not Found',
  8739. 'optional--',
  8740. 'optional2--',
  8741. "//a[contains(@href,'inafile.com')]"
  8742. );
  8743. }
  8744. if (GM_getValue("Check_uplea_dot_com_links", false))
  8745. {
  8746. addFileHost(
  8747. "uplea\.com\/\\w+",
  8748. 'Download your file:|de votre fichier:|class="download-container|Téléchargement de votre fichier:',
  8749. 'expired link|ou est invalide',
  8750. 'optional--',
  8751. 'optional2--',
  8752. "//a[contains(@href,'uplea.com/dl')]",
  8753. true);
  8754. }
  8755. if (GM_getValue("Check_toutbox_dot_fr_links", false))
  8756. {
  8757. addFileHost(
  8758. "toutbox\.fr\/\\w+",
  8759. '<div class="downloadFileFid">|class="downloadsCounter">/p>|class="filename"><a href=|img/webbuttoned.gif">',
  8760. 'meta name="description" content="Toutbox.fr|redirect-userpage = "true"',
  8761. 'optional--',
  8762. 'optional2--',
  8763. "//a[contains(@href,'toutbox.fr') or contains(@href,'go4up.com/')]"
  8764. );
  8765. }
  8766. if (GM_getValue("Check_openload_dot_co_links", false))
  8767. {
  8768. addFileHost(
  8769. "openload\.co\/\\w+",
  8770. 'id="downloadTimer">|button dlbutton',
  8771. 'jumbotron{color|got deleted|center !important',
  8772. 'optional--',
  8773. 'optional2--',
  8774. "//a[contains(@href,'openload.co')]"
  8775. );
  8776. }
  8777. if (GM_getValue("Check_lolabits_dot_es_links", false))
  8778. {
  8779. addFileHost(
  8780. "lolabits\.es\/\\w+",
  8781. 'Descargar:',
  8782. '<title>Archivos de usuario',
  8783. 'optional--',
  8784. 'optional2--',
  8785. "//a[contains(@href,'lolabits.es')]"
  8786. );
  8787. }
  8788. if (GM_getValue("Check_alfafile_dot_net_links", false))
  8789. {
  8790. addFileHost(
  8791. "alfafile\.net\/\\w+",
  8792. 'id="slow_download_btn',
  8793. 'class="error-box">',
  8794. 'optional--',
  8795. 'optional2--',
  8796. "//a[contains(@href,'alfafile.net')]"
  8797. );
  8798. }
  8799.  
  8800.  
  8801. }
  8802. //start here
  8803.  
  8804. //hosts with direct download, so they must be requested for headers only
  8805. function initFileHostsHeadersOnly()
  8806. {
  8807. function addFileHostHeadersOnly(linkRegex, isAliveRegex, isDeadRegex, xpathEx, ispremRegex)
  8808. {
  8809. var host = new Array(5);
  8810. host[0] = linkRegex;
  8811. host[1] = isAliveRegex;
  8812. host[2] = isDeadRegex;
  8813. host[3] = xpathEx;
  8814. host[4] = ispremRegex;
  8815. http_file_hosts_headers_only.push(host);
  8816. }
  8817. if (GM_getValue("Check_uloziste_dot_com_links", false))
  8818. {
  8819. addFileHostHeadersOnly(
  8820. "(?:|files\\.)uloziste\\.com\/\\w+\/\\w+",
  8821. 'Connection: Keep-Alive',
  8822. 'Content-Length: 3857',
  8823. "//a[contains(@href,'uloziste.com')]"
  8824. )
  8825. }
  8826. if (GM_getValue("Check_adrive_dot_com_links", false))
  8827. {
  8828. addFileHostHeadersOnly(
  8829. "adrive\\.com\/public\/\\w+",
  8830. 'Connection: keep-alive',
  8831. 'orig_ref=deleted',
  8832. "//a[contains(@href,'adrive.com')]"
  8833. )
  8834. }
  8835. if (GM_getValue("Check_myupload_dot_dk_links", false))
  8836. {
  8837. addFileHostHeadersOnly(
  8838. "myupload\\.dk\/showfile\/\\w+",
  8839. 'Expires:',
  8840. 'squeeze1\\s+Vary',
  8841. "//a[contains(@href,'myupload.dk/showfile')]"
  8842. )
  8843. }
  8844. }
  8845. //CustomRules
  8846. //functions add...Host copied here
  8847. function addObsoleteHost(linkRegex, xpathEx)
  8848. {
  8849. var host = new Array(2);
  8850. host[0] = linkRegex;
  8851. host[1] = xpathEx;
  8852. http_file_hosts_obsolete.push(host);
  8853. }
  8854. function addFileHost(linkRegex, isAliveRegex, isDeadRegex, isUnavaRegex, xpathEx, tryLoop, ispremRegex)
  8855. {
  8856. var host = new Array(7);
  8857. host[0] = linkRegex;
  8858. host[1] = isAliveRegex;
  8859. host[2] = isDeadRegex;
  8860. host[3] = isUnavaRegex;
  8861. host[4] = xpathEx;
  8862. tryLoop ? host[5] = true : host[5] = false;
  8863. host[6] = ispremRegex;
  8864. http_file_hosts.push(host);
  8865. }
  8866. function addFileHostHeadersOnly(linkRegex, isAliveRegex, isDeadRegex, xpathEx, ispremRegex)
  8867. {
  8868. var host = new Array(5);
  8869. host[0] = linkRegex;
  8870. host[1] = isAliveRegex;
  8871. host[2] = isDeadRegex;
  8872. host[3] = xpathEx;
  8873. host[4] = ispremRegex;
  8874. http_file_hosts_headers_only.push(host);
  8875. }
  8876. //takes a fully built rules array and adds the rules to WARLC
  8877. function applyCustomRules(customRules)
  8878. {
  8879. if (!customRules) return;
  8880. var rules, r, i;
  8881. rules = customRules.rules;
  8882. for (i = 0 ; i < rules.length ; i++)
  8883. {
  8884. r = rules[i];
  8885. if (r.enabled)
  8886. {
  8887. switch (r.type)
  8888. {
  8889. case 'single':
  8890. addFileHost(r.urlregex, r.aliveregex, r.deadregex, r.unavaregex, r.premregex||'', r.xpath);
  8891. break;
  8892. case 'headers':
  8893. addFileHostHeadersOnly(r.urlregex, r.aliveregex, r.deadregex, r.xpath, r.premregex);
  8894. break;
  8895. case 'obsolete':
  8896. addObsoleteHost(r.urlregex, r.xpath)
  8897. break;
  8898. }
  8899. }
  8900. }
  8901. }
  8902.  
  8903.  
  8904. function initFileHostsCustom()
  8905. {
  8906. if (Custom_rules && Custom_rules_text)
  8907. {
  8908. var msg = '';
  8909. if (newVersion)
  8910. msg = 'New version of W.A.R. Links Checker detected.\n\n';
  8911. else if ((now - last_custom_rules_nag) >= 60*24*60*60*1000)
  8912. msg = '60 or more days have passed since this notification.\n\n';
  8913. if (msg && /^\s*@customrule(?:_obsolete)?\s/mi.test(Custom_rules_text))
  8914. {
  8915. GM_setValue('last_custom_rules_nag', ''+new Date().getTime()); //reset nag
  8916. msg +=
  8917. 'Either new version of W.A.R. Links Checker detected or 60 days passed since this notify.\n'+
  8918. 'Please check that your custom rules haven\'t been built into WARLC.\n'+
  8919. 'If not, please share them with us so they can be included in the next version! Built-in rules are always preferred.\n\n'+
  8920. 'We apologize for this annoying notification, but there is a reason to this.\n'+
  8921. 'Ideally, WARLC would check which of your custom rules have been included and disable them. '+
  8922. 'Unfortunately, there is no easy way to do that, but we don\'t want everybody to just use their custom rules '+
  8923. 'forever without ever checking if the built-in ones have been added/fixed. This is currently the only way '+
  8924. 'to remind you that you should try built-in rules, report missing/non-working ones and share your custom rules.';
  8925. setTimeout(function(){alert(msg)},0);
  8926. }
  8927. var customRules = parseCustomRules(Custom_rules_text);
  8928. if (customRules.warning || customRules.error)
  8929. alert('There were ' + customRules.error + ' errors, ' + customRules.warning + ' warnings, ' +
  8930. customRules.note + ' notes found during Custom Rules processing.\n' + customRules.rules.length + ' valid rules found.\n\n' +
  8931. JSON.stringify(customRules.info, null, ' '));
  8932. applyCustomRules(customRules);
  8933. }
  8934. }
  8935. //end of CustomRules processing
  8936.  
  8937.  
  8938.  
  8939. } //end of function start
  8940.  
  8941.  
  8942.  
  8943. function initClipBoardTools()
  8944. {
  8945. unsafeWindow.copyToClipboard = function(text)
  8946. {
  8947. try
  8948. {
  8949. this.netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
  8950.  
  8951. var str = Components.classes["@mozilla.org/supports-string;1"].
  8952. createInstance(Components.interfaces.nsISupportsString);
  8953. if (!str) return false;
  8954.  
  8955. str.data = text;
  8956.  
  8957. var trans = Components.classes["@mozilla.org/widget/transferable;1"].
  8958. createInstance(Components.interfaces.nsITransferable);
  8959. if (!trans) return false;
  8960.  
  8961. trans.addDataFlavor("text/unicode");
  8962. trans.setTransferData("text/unicode", str, text.length * 2);
  8963.  
  8964. var clipid = Components.interfaces.nsIClipboard;
  8965. var clip = Components.classes["@mozilla.org/widget/clipboard;1"].getService(clipid);
  8966. if (!clip) return false;
  8967.  
  8968. clip.setData(trans, null, clipid.kGlobalClipboard);
  8969. } catch (e) {
  8970. GM_log("Error copyToClipboard : " + e);
  8971. alert(e + "\n\nsigned.applets.codebase_principal_support must be set true in about:config")
  8972. }
  8973. }
  8974. }
  8975.  
  8976.  
  8977.  
  8978. //CustomRules
  8979.  
  8980. function escapeRegex(str)
  8981. {
  8982. return str.replace(/[\-\[\]{}()*+?.,\\\^$|#]/g, "\\$&");
  8983. }
  8984.  
  8985.  
  8986. //called internally from parseCustomRules.
  8987. //expected: rule object with array fields baseurl, alivematch etc, everything must already be checked for input errors
  8988. //returns the rule object with string fields urlregex, xpath, aliveregex etc built from the arrays
  8989. function makeCustomRule(rule)
  8990. {
  8991. function makeMatchRegex(arrmatch)
  8992. {
  8993. return escapeRegex(arrmatch.join('\n'))
  8994. .replace(/ +/g, '\\s+') //two or more spaces to any whitespace
  8995. .replace(/\n/g,'|'); //join together
  8996. }
  8997. if (rule.alivematch) rule.aliveregex = makeMatchRegex(rule.alivematch);
  8998. if (rule.deadmatch) rule.deadregex = makeMatchRegex(rule.deadmatch);
  8999. if (rule.unavamatch) rule.unavaregex = makeMatchRegex(rule.unavamatch);
  9000. if (rule.premmatch) rule.premregex = makeMatchRegex(rule.premmatch);
  9001. if (rule.baseurl)
  9002. {
  9003. var i, m, urlregex = [], xpath = [], len = rule.baseurl.length;
  9004. for (i = 0 ; i < len ; i++)
  9005. {
  9006. m = rule.baseurl[i].match(/^([a-z0-9\.-]+)(?: +([a-z \.]+) +)?(\/.*)$/);
  9007. if (m[2]) //baseurl in the form: example. com co.uk net /xxx
  9008. {
  9009. 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'])
  9010. urlregex.push( (m[1] + '(?:'+ m[2].replace(/\s+/g,'|') + ')').replace(/\./g,'\\.') + escapeRegex(m[3]) + '.'); //urlregex.push('example\\.(?:com|co\\.uk|net)/xxx.')
  9011. }
  9012. else //baseurl in the form: example.com/xxx
  9013. {
  9014. xpath.push(m[0]);
  9015. urlregex.push(escapeRegex(m[0]) + '.');
  9016. }
  9017. }
  9018. rule.xpath = "//a[contains(@href,'" + xpath.join("') or contains(@href,'") + "')]";
  9019. rule.urlregex = '(?:[a-z0-9\\.-]+\\.)?(?:' + urlregex.join('|') + ')';
  9020. }
  9021. return rule;
  9022. } //function makeCustomRule
  9023.  
  9024.  
  9025. /*
  9026. Takes a string containing custom link checking rules.
  9027. Returns an object with fields:
  9028. info - contains notes, warnings and errors found during parsing
  9029. rules - the array of custom rules
  9030. note, warning, error - number of each of them found during parsing
  9031. Format of the input string:
  9032. One command per line. Command format: @keyword parameter
  9033. Keywords:
  9034. @customrule, @customrule_obsolete, @customrule_headers - begin a new custom rule. Parameter: name of the rule
  9035. @#customrule, @#customrule_obsolete, @#customrule_headers - begin and parse this custom rule, but don't use it. Parameter: name of the rule
  9036. These keywords can be multiple (any of them will work):
  9037. @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...)
  9038. @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+
  9039. @alivelink, @deadlink - example links
  9040. @baseurl is always required, @alivematch and @deadmatch are required except for obsolete. @unavamatch is ignored for obsolete. @*link is optional.
  9041. Lines starting with // and empty lines are ignored.
  9042. Invalid parameters generate errors and those lines are skipped.
  9043. Other lines generate warnings, but are otherwise ignored (also those before the first @customrule line or inside a rule with invalid name).
  9044. Example:
  9045. @customrule filehost
  9046. @baseurl filehost.com/download/
  9047. @baseurl filehost2. com net /d?=
  9048. @alivematch id="download">
  9049. @deadmatch File not found
  9050. @deadmatch File deleted
  9051. */
  9052. function parseCustomRules(rulesStr)
  9053. {
  9054. var linenum, customRules = {'info': [], 'rules': [], 'note': 0, 'warning': 0, 'error': 0};
  9055. function addInfo(type, msg, ln){
  9056. customRules.info.push({'linenum':(ln===undefined ? linenum+1 : ln+1), 'type':type, 'msg':msg});
  9057. customRules[type]++;
  9058. }
  9059. var lines = rulesStr.match(/^(.*)$/gm); //split into array of lines
  9060. if (!lines) return null;
  9061. lines.push('@#customrule _'); //to save the last rule
  9062. var m, linecount = lines.length;
  9063. var keyword, param, constr, rule, err;
  9064. var TLD = '[a-z]{2,7}(?:\\.[a-z]{2,7})?';
  9065. var TLDorTLDlist = '(?:'+TLD+'| '+TLD+'(?: '+TLD+'){0,9} )'; //TLD or space-separated list of TLDs
  9066. var baseurlRE = new RegExp('^([a-z0-9-]{1,30}(?:\\.[a-z0-9-]{1,30}){0,2}\\.)'+TLDorTLDlist+'(/[^\'"\s\$]{0,50})$', 'i');
  9067. var constraints = {
  9068. 'baseurl': {
  9069. 'single': {'min': 1, 'max': 10, 'paramRE': baseurlRE},
  9070. 'headers': {'min': 1, 'max': 10, 'paramRE': baseurlRE},
  9071. 'obsolete': {'min': 1, 'max': 10, 'paramRE': baseurlRE}},
  9072. 'alivematch': {
  9073. 'single': {'min': 1, 'max': 10, 'paramRE': null},
  9074. 'headers': {'min': 1, 'max': 10, 'paramRE': null}},
  9075. 'deadmatch': {
  9076. 'single': {'min': 1, 'max': 10, 'paramRE': null},
  9077. 'headers': {'min': 1, 'max': 10, 'paramRE': null}},
  9078. 'unavamatch': {
  9079. 'single': {'min': 0, 'max': 10, 'paramRE': null}},
  9080. 'alivelink': {
  9081. 'single': {'min': 0, 'max': 10, 'paramRE': null},
  9082. 'headers': {'min': 0, 'max': 10, 'paramRE': null}},
  9083. 'deadlink': {
  9084. 'single': {'min': 0, 'max': 10, 'paramRE': null},
  9085. 'headers': {'min': 0, 'max': 10, 'paramRE': null},
  9086. 'obsolete': {'min': 0, 'max': 10, 'paramRE': null}}
  9087. };
  9088. for (linenum = 0 ; linenum < linecount ; linenum++)
  9089. {
  9090. //capturing groups: 1 23 4 5 6
  9091. m = lines[linenum].match(/^\s*(?:(\/\/.*)|@((#?)(customrule)(?:_(headers|obsolete))?|baseurl|alivematch|deadmatch|unavamatch|alivelink|deadlink)\s+(.+))?$/i);
  9092. if (m)
  9093. {
  9094. if (m[1] || !m[2])
  9095. continue; // ignore empty lines and lines starting with //
  9096. keyword = (m[4] || m[2]).toLowerCase();
  9097. param = m[6];
  9098. if (keyword == 'customrule')
  9099. {
  9100. //save the current rule if all required fields are provided
  9101. if (rule)
  9102. {
  9103. err = false;
  9104. $.each(constraints, function(kw, constraint){
  9105. var l, constr = constraint[rule.type];
  9106. if (constr)
  9107. {
  9108. l = rule[kw] ? rule[kw].length : 0;
  9109. if (l < constr.min || l > constr.max)
  9110. {
  9111. 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);
  9112. err = true;
  9113. }
  9114. }
  9115. });
  9116. if (!err)
  9117. customRules.rules.push(makeCustomRule(rule));
  9118. }
  9119. //start a new rule
  9120. if (/^[\w\.-]{1,30}$/.test(param)) //valid name?
  9121. {
  9122. rule = {
  9123. 'enabled': !m[3],
  9124. 'type': m[5] ? m[5].toLowerCase() : 'single',
  9125. 'name': param
  9126. };
  9127. }
  9128. else
  9129. {
  9130. addInfo('error', 'Invalid rule name. Cannot start a new rule definition.');
  9131. rule = null;
  9132. }
  9133. }
  9134. else //good line format, but keyword other than customrule
  9135. {
  9136. if (!rule)
  9137. {
  9138. addInfo('warning', 'Command outside @CUSTOMRULE definiton. Line skipped.');
  9139. continue;
  9140. }
  9141. if (constraints[keyword])
  9142. {
  9143. constr = constraints[keyword][rule.type];
  9144. if (constr)
  9145. {
  9146. if (constr.paramRE && !constr.paramRE.test(param))
  9147. {
  9148. addInfo('warning', 'Invalid @' + keyword.toUpperCase() + ' parameter. Line Skipped.');
  9149. continue;
  9150. }
  9151. }
  9152. else
  9153. {
  9154. addInfo('note', '@' + keyword.toUpperCase() + ' not applicable for type ' + rule.type.toUpperCase() + '. Line skipped.');
  9155. continue;
  9156. }
  9157. }
  9158. //line OK, save
  9159. rule[keyword] ? rule[keyword].push(param) : rule[keyword] = [param];
  9160. }
  9161. } //if (m)
  9162. else
  9163. addInfo('warning', 'Unknown line format. Line skipped.');
  9164. } //for loop
  9165. return customRules;
  9166. } //function parseCustomRules

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址