Greasy Fork 还支持 简体中文。

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

detects live, dead and premium links.

目前為 2015-11-21 提交的版本,檢視 最新版本

  1. //added file.al
  2. //fixed nitroflare.com false live links
  3. //fixed keep2share/fileboom links not checking some links (fixed by yurii)
  4.  
  5. // ==UserScript==
  6. // @name W.A.R. Links Checker Customized Premium Link Version
  7. // @description detects live, dead and premium links.
  8. // @details this script automatically checks links from hundreds of filehosts. For Firefox, Chrome, Opera, Safari.
  9. // @namespace premium version
  10. // @version 1.2.0.7
  11. // @icon http://sharenxs.com/photos/2014/02/14/52fd759db90ac/cooltext1428903746.png
  12. // @license GPL version 3 or any later version (http://www.gnu.org/copyleft/gpl.html)
  13. // @author mental
  14. // @include http://*
  15. // @include https://*
  16. // @include file:///*
  17. // @grant GM_setValue
  18. // @grant GM_getValue
  19. // @grant GM_xmlhttpRequest
  20. // @grant GM_log
  21. // @grant GM_addStyle
  22. // @grant GM_registerMenuCommand
  23. // @grant GM_getResourceText
  24. // @grant GM_info
  25. // @require https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js
  26. // @require https://ajax.googleapis.com/ajax/libs/jqueryui/1.9.1/jquery-ui.min.js
  27. // @resource jQueryUICSS https://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/smoothness/jquery-ui.css
  28. // @homepage http://www.warlc.5gbfree.com
  29. // @namespace http://www.warlc.5gbfree.com
  30. // @noframes
  31. // ==/UserScript==
  32.  
  33. //separate alternative domains with "|" char (first name is considered being main)
  34. var allHostNames = [
  35. "1fichier.com|dl4free.com",
  36. "alfafile.net",
  37. "openload.co",
  38. "multiup.org",
  39. "uplea.com",
  40. "filenuke.com",
  41. "file.al",
  42. "inafile.com",
  43. "lolabits.es",
  44. "vidto.me",
  45. "storefiles.co",
  46. "filehost.pw",
  47. "vidspot.net",
  48. "turbobit.ru",
  49. "sharesix.com|sharesix.net",
  50. "movpod.in",
  51. "thefile.me",
  52. "vidzi.tv",
  53. "videoweed.es",
  54. "vodlocker.com",
  55. "nowvideo.sx",
  56. "cloudtime.to",
  57. "thevideo.me",
  58. "vidbull.com",
  59. "allmyvideos.net",
  60. "novamov.com",
  61. "filehoot.com",
  62. "stagevu.com",
  63. "gorillavid.in",
  64. "streamin.to",
  65. "4upld.com",
  66. "cloudshares.net",
  67. "swoopshare.com",
  68. "2shared.com",
  69. "fileupload.pw",
  70. "zxcfiles.com",
  71. "up07.net",
  72. "4shared.com",
  73. "adrive.com",
  74. "aisfile.com",
  75. "hexupload.com",
  76. "bezvadata.cz",
  77. "xkeepfile.com|Gamesena.com",
  78. "usersfiles.com",
  79. "pan.baidu.com",
  80. "radicalshare.com",
  81. "datei.to",
  82. "daten-hoster.de|filehosting.org|xtraupload.de",
  83. "demo.ovh.eu",
  84. "depositfiles.com|depositfiles.lt|depositfiles.org|dfiles.ru|dfiles.eu",
  85. "divshare.com",
  86. "easy-share.com|crocko.com",
  87. "easybytez.com",
  88. "edisk.cz",
  89. "euroshare.eu",
  90. "file-upload.net",
  91. "yadi.sk",
  92. "wizupload.com",
  93. "fastshare.cz",
  94. "filefactory.com",
  95. "share.vnn.vn",
  96. "yunpan.cn",
  97. "gulfup.com",
  98. "tropicshare.com",
  99. "cloudzilla.to",
  100. "inclouddrive.com",
  101. "fileflyer.com",
  102. "filerio.com|filekeen.com",
  103. "up.4share.vn",
  104. "upfile.vn",
  105. "datafilehost.com",
  106. "fileband.com",
  107. "worldbytez.com",
  108. "files.mail.ru",
  109. "filepost.com|fp.io",
  110. "filesflash.com",
  111. "box.com",
  112. "uptobox.com",
  113. "box.net",
  114. "goldbytez.com",
  115. "sdilej.cz",
  116. "ex-load.com",
  117. "filesmonster.com",
  118. "filestore.to",
  119. "hulkload.com",
  120. "filedropper.com",
  121. "free-uploading.com",
  122. "gamefront.com|filefront.com",
  123. "gettyfile.ru",
  124. "gigapeta.com",
  125. "gigasize.com",
  126. "hellshare.com",
  127. "hellspy.com",
  128. "hitfile.net",
  129. "hostuje.net",
  130. "freefilehosting.net",
  131. "free.fr",
  132. "hulkshare.com",
  133. "hyperfileshare.com",
  134. "filecloud.io|ifile.it",
  135. "ifolder.ru",
  136. "jumbofiles.com",
  137. "uploadrocket.net",
  138. "lafiles.com",
  139. "leteckaposta.cz|sharegadget.com",
  140. "letitbit.net",
  141. "load.to",
  142. "mediafire.com",
  143. "megafileupload.com",
  144. "megashares.com",
  145. "movshare.net",
  146. "muchshare.net",
  147. "myupload.dk",
  148. "narod.ru|narod.yandex.ru",
  149. "fboom.me|fileboom.me",
  150. "openfile.ru",
  151. "partage-facile.com",
  152. "plunder.com",
  153. "sharerapid.cz",
  154. "exclusiveloader.com",
  155. "acefile.net",
  156. "queenshare.com",
  157. "rapidgator.net",
  158. "k2s.cc|keep2s.cc|keep2share.cc|keep2share.com",
  159. "oboom.com",
  160. "filepi.com",
  161. "neodrive.co",
  162. "rarefile.net",
  163. "rayfile.com",
  164. "rghost.net",
  165. "sendmyway.com",
  166. "clicknupload.com",
  167. "clicknupload.me",
  168. "sharemods.com",
  169. "hostr.co",
  170. "sendspace.com",
  171. "sharecash.org",
  172. "share-links.biz",
  173. "share-online.biz|egoshare.com",
  174. "megarapid.cz",
  175. "shareflare.net",
  176. "solidfiles.com",
  177. "led.wf",
  178. "lan.wf",
  179. "adlink.wf",
  180. "click.tf",
  181. "kyc.pm",
  182. "ssh.tf",
  183. "ssh.yt",
  184. "yep.pm",
  185. "stahovanizasms.cz",
  186. "turbobit.net",
  187. "filecloud.cc",
  188. "tikfile.com",
  189. "cloudsix.me",
  190. "turboupload.com",
  191. "uloz.to|ulozto.cz|bagruj.cz|zachowajto.pl",
  192. "ulozisko.sk",
  193. "uloziste.com",
  194. "unibytes.com",
  195. "upload-il.net|przeslij.net",
  196. "uploaded.to|ul.to",
  197. "uploading.com",
  198. "chayfile.com",
  199. "rockfile.eu",
  200. "24uploading.com",
  201. "uploadspace.pl",
  202. "upnito.sk",
  203. "usaupload.net",
  204. "veehd.com",
  205. "videobb.com",
  206. "vip-file.com",
  207. "webshare.cz",
  208. "xdisk.cz",
  209. "yunfile.com|filemarkets.com",
  210. "ziddu.com",
  211. "zippyshare.com",
  212. "rodfile.com",
  213. "wikiupload.com",
  214. "uploadstube.de",
  215. "faststore.org",
  216. "flyfiles.net",
  217. "nowdownload.ch",
  218. "prefiles.com",
  219. "axifile.com",
  220. "rapidsonic.com|fileparadox.com",
  221. "hackerbox.org",
  222. "amonshare.com",
  223. "data.hu",
  224. "brupload.net",
  225. "userscloud.com",
  226. "netkups.com",
  227. "xfileload.com",
  228. "kumpulbagi.com",
  229. "uppit.com|up.ht",
  230. "downloadani.me",
  231. "filesabc.com",
  232. "180upload.com",
  233. "verzend.be",
  234. "4up.me",
  235. "extmatrix.com",
  236. "sendfiles.nl",
  237. "yourfilestore.com",
  238. "filebig.net",
  239. "nekaka.com",
  240. "file4safe.com",
  241. "tusfiles.net",
  242. "filemac.com",
  243. "idup.in",
  244. "fileswap.com",
  245. "ozofiles.com",
  246. "loudupload.net",
  247. "nosupload.com",
  248. "gboxes.com",
  249. "myvdrive.com|fileserving.com",
  250. "filesin.com",
  251. "novafile.com",
  252. "longfiles.com",
  253. "uploadhero.com",
  254. "uploadbaz.com",
  255. "bitupload.com",
  256. "indowebster.com",
  257. "superload.cz",
  258. "mafiastorage.com",
  259. "4upfiles.com",
  260. "filesmelt.com",
  261. "hellupload.com",
  262. "uploadingit.com",
  263. "stiahni.si",
  264. "sendspace.pl",
  265. "fastshare.org",
  266. "filejoker.net",
  267. "filestore.com.ua",
  268. "secureupload.eu",
  269. "rapidfileshare.net",
  270. "stiahnito.sk",
  271. "rusfolder.com",
  272. "fileover.net",
  273. "catshare.net",
  274. "anonfiles.com",
  275. "mixturecloud.com",
  276. "fileparadox.in",
  277. "filedais.com",
  278. // "imdb.com",
  279. "nitroflare.com",
  280. "akafile.com",
  281. "creafile.net",
  282. "hugefiles.net",
  283. "vidxden.com",
  284. "up.top4top.net",
  285. "upload.ee",
  286. "shareplace.org",
  287. "uploadc.com",
  288. "remixshare.com",
  289. "exoshare.com",
  290. "borncash.org",
  291. "junocloud.me",
  292. "expressleech.com",
  293. "2downloadz.com",
  294. "mightyupload.com",
  295. "anysend.com",
  296. "datafile.com",
  297. "upstore.net",
  298. "upsto.re",
  299. "speedy.sh",
  300. "sanshare.com",
  301. "uploadhero.co",
  302. "ge.tt",
  303. "filesflash.net",
  304. "salefiles.com",
  305. "megairon.net",
  306. "datoid.cz",
  307. "cloudstor.es",
  308. "streamfile.com",
  309. "eyesfile.ca",
  310. "filemoney.com",
  311. "uploadboy.com",
  312. "speedshare.eu",
  313. "google.com",
  314. "unlimitzone.com",
  315. "rioupload.com",
  316. "rg.to",
  317. "jumbofiles.org",
  318. "fshare.vn",
  319. "spaceforfiles.com",
  320. "up.media1fire.com",
  321. "depfile.com",
  322. "go4up.com",
  323. "dropbox.com",
  324. "redbunker.net",
  325. "divxpress.com",
  326. "mega.nz|mega.co.nz",
  327. "anafile.com",
  328. "uploadable.ch",
  329. "arabloads.net",
  330. "sharerepo.com",
  331. "sfshare.se",
  332. "files.fm",
  333. "koofile.com",
  334. "vidplay.net",
  335. "storagon.com",
  336. "doraupload.com",
  337. "openload.io",
  338. "geupload.com|lenfile.com",
  339. "uploads.xxx",
  340. "toutbox.fr",
  341. ];
  342.  
  343. try
  344. {
  345. //iframes excluded
  346. if (window.top != window.self)
  347. {
  348. return;
  349. }
  350. //allHostNames sites excluded
  351. if (window.location.href.match("https?:\/\/(www\.)?[\w\.-]*(?:" +
  352. allHostNames.join("|").replace(/\./g, "\\.").replace(/-/g, "\\-") +
  353. ")"))
  354. {
  355. return;
  356. }
  357. }
  358. catch (e)
  359. {
  360. return;
  361. }
  362.  
  363. //separate alternative domains with "|" char (first name is considered being main)
  364. var allContainerNames = [
  365. "adf.ly",
  366. "linkcrypt.ws",
  367. "linksafe.me",
  368. "linksave.in",
  369. "linkto.net",
  370. "madlink.sk",
  371. "multiload.cz",
  372. "mirrorcreator.com",
  373. "ncrypt.in",
  374. "redi.re",
  375. "relink.us",
  376. "safelinking.net",
  377. "theloo.katt.it",
  378. "bit.ly",
  379.  
  380. ];
  381.  
  382. //separate alternative domains with "|" char (first name is considered being main)
  383. var allObsoleteNames = [
  384. "uloz.cz",
  385. "newfileland.com",
  386. "quickshare.cz",
  387. "netload.in",
  388. "movreel.com",
  389. "migahost.com",
  390. "krotix.net",
  391. "jumbofile.net",
  392. "edoc.com",
  393. "down4files.com",
  394. "cramit.in|cramitin.net",
  395. "freakshare.com",
  396. "burnupload.com|burnupload.ihiphop.com",
  397. "freakshare.net",
  398. "kingfiles.net",
  399. "daj.to",
  400. "bl.st",
  401. "2drive.net",
  402. "ryushare.com",
  403. "crisshare.com",
  404. "tufiles.ru",
  405. "uncapped-downloads.com",
  406. "sockshare.com",
  407. "ddlstorage.com",
  408. "dataport.cz",
  409. "dizzcloud.com",
  410. "sharebeast.com",
  411. "stahovadlo.cz",
  412. "shared.com",
  413. "storage.to",
  414. "putlocker.com",
  415. "lumfile.com",
  416. "lumfile.se",
  417. "lumfile.eu",
  418. "firedrive.com",
  419. "fileshare.in.ua",
  420. "filecore.co.nz",
  421. "iskladka.cz",
  422. "file-rack.com",
  423. "fast-load.net",
  424. "subory.sk",
  425. "bigandfree.com",
  426. "fileop.com",
  427. "mujsoubor.cz",
  428. "sendfile.to",
  429. "superfastfile.com",
  430. "quickyshare.com",
  431. "duckload.com",
  432. "uploadstore.net",
  433. "meinupload.com",
  434. "dualshare.com",
  435. "2xupload.to|2xupload.de",
  436. "oxedion.com",
  437. "uploadline.com",
  438. "dll.bz",
  439. "movieshare.in",
  440. "milledrive.com",
  441. "quickupload.net",
  442. "safelink.in",
  443. "metadivx.com",
  444. "divxlink.com",
  445. "uploadrack.com",
  446. "teradepot.com",
  447. "dataup.to",
  448. "upit.to",
  449. "driveway.com",
  450. "eatlime.com",
  451. "a2zuploads.com",
  452. "friendlyfiles.net",
  453. "flyfile.us",
  454. "speedyshare.com",
  455. "uploadspace.eu",
  456. "keepfile.com",
  457. "piggyshare.com",
  458. "uplly.com",
  459. "filecrown.com",
  460. "6giga.com",
  461. "uploadjockey.com",
  462. "bluehost.to",
  463. "filegu.ru",
  464. "filebase.to",
  465. "up-file.com",
  466. "xvideos.com",
  467. "ufox.com",
  468. "filebling.com",
  469. "loaded.it",
  470. "uploadcell.com",
  471. "uploadshare.cz",
  472. "mangoshare.com",
  473. "filestab.com",
  474. "crazyupload.com",
  475. "gaiafile.com",
  476. "sharejunky.com",
  477. "fileho.com",
  478. "bigandfree.com",
  479. "bigfile.in",
  480. "bigshare.eu",
  481. "dahosting.org",
  482. "digisofts.net",
  483. "file4save.com",
  484. "filechip.com",
  485. "filescloud.com",
  486. "saveqube.com",
  487. "turboshare.de",
  488. "z-upload.com",
  489. "youshare.com",
  490. "jiffyupload.com",
  491. "gigeshare.com",
  492. "datenklo.net",
  493. "upload.dj",
  494. "loadfiles.in",
  495. "upit.to",
  496. "dsfileshare.com",
  497. "sharesimple.net",
  498. "4files.net",
  499. "wooupload.com",
  500. "odsiebie.com",
  501. "filenavi.com",
  502. "3oof.com",
  503. "meshwaar.com",
  504. "maxupload.com",
  505. "share.cx",
  506. "atserver.eu",
  507. "hotfiles.ws",
  508. "esnips.com",
  509. "tuxfile.com",
  510. "file2upload.net",
  511. "filebling.com",
  512. "turboshare.com",
  513. "rarhost.com",
  514. "isharehd.com",
  515. "i741.com",
  516. "dataup.de",
  517. "fofly.com",
  518. "shareonall.com",
  519. "sexuploader.com",
  520. "megaupload.com|megavideo.com|megaporn.com|megarotic.com",
  521. "uploadhyper.com",
  522. "filespawn.com",
  523. "caizzii.com",
  524. "volnyweb.cz",
  525. "usershare.net",
  526. "filescash.net",
  527. "metahyper.com",
  528. "combozip.com",
  529. "x7.to",
  530. "uploadbox.com",
  531. "enterupload.com|flyupload.com",
  532. "filepoint.de",
  533. "mystream.to",
  534. "x-fs.com",
  535. "shareator.com",
  536. "srapid.eu",
  537. "sosame.cz",
  538. "filesdump.com",
  539. "2-klicks.de",
  540. "uploking.com",
  541. "silofiles.com",
  542. "upfile.in",
  543. "filehook.com",
  544. "uploadking.com",
  545. "uploadhere.com",
  546. "kewlshare.com",
  547. "rapidable.com",
  548. "uploadwaste.com",
  549. "filemup.com",
  550. "filesonic.com|sharingmatrix.com",
  551. "fileserve.com",
  552. "wupload.com",
  553. "skipfile.com",
  554. "smartuploader.com",
  555. "dualshare.com",
  556. "storeandserve.com",
  557. "mountfile.com",
  558. "transitfiles.com",
  559. "uploadstation.com",
  560. "filejungle.com",
  561. "shareshared.com",
  562. "quickyshare.com",
  563. "save.am",
  564. "petandrive.com",
  565. "file2box.com",
  566. "flyshare.cz",
  567. "yabadaba.ru",
  568. "cloudcache.cc",
  569. "yourfilehost.com",
  570. "jakfile.com",
  571. "kickload.com",
  572. "pyramidfiles.com",
  573. "refile.net",
  574. "zshare.net",
  575. "ddlani.me|ddlanime.com",
  576. "ftp2share.com",
  577. "fooget.com",
  578. "rapidhide.com",
  579. "gotupload.com",
  580. "mooload.com",
  581. "zupload.com",
  582. "mytempdir.com",
  583. "onionshare.com",
  584. "stahnu.to",
  585. "oron.com",
  586. "badongo.com",
  587. "filereactor.com",
  588. "filegaze.com",
  589. "4bytez.com",
  590. "1hostclick.com",
  591. "anonstream.com",
  592. "batshare.com",
  593. "bitroad.net",
  594. "brontofile.com",
  595. "cloudnxt.net",
  596. "cloudnator.com|shragle.com",
  597. "filesfrog.net",
  598. "coolshare.cz",
  599. "dotavi.com",
  600. "ezyfile.net",
  601. "file-bit.net",
  602. "filecosy.com",
  603. "fileduct.com|fileduct.net",
  604. "filefat.com",
  605. "filelaser.com",
  606. "filemashine.com",
  607. "fileserver.cc",
  608. "filetechnology.com",
  609. "fireuploads.net",
  610. "gigfiles.net",
  611. "holderfile.com",
  612. "ihostia.com",
  613. "k2files.com",
  614. "mojofile.com",
  615. "ovfile.com",
  616. "qshare.com",
  617. "shafiles.me",
  618. "sharefilehost.com",
  619. "shareupload.com",
  620. "stahuj.to",
  621. "ugotfile.com",
  622. "uploadboost.com",
  623. "fileom.com",
  624. "vidhog.com",
  625. "xfileshare.eu",
  626. "bzlink.us",
  627. "bulletupload.com",
  628. "bloggerarticles.com",
  629. "mojedata.sk",
  630. "sharpfile.com",
  631. "upgrand.com",
  632. "nasdilej.cz",
  633. "mediatack.cz",
  634. "share-it.to",
  635. "primeupload.com",
  636. "filebeer.info",
  637. "baberepublic",
  638. "xtu.me",
  639. "sharebase.de",
  640. "luckyshare.net",
  641. "filerobo.com",
  642. "filevelocity.com",
  643. "filezpro.com",
  644. "file4sharing.com",
  645. "cing.be",
  646. "ufile.eu",
  647. "pigsonic.com",
  648. "fileupped.com",
  649. "sharerun.com",
  650. "filesaur.com",
  651. "rapidslnare.com",
  652. "bestsharing.com",
  653. "savefiles.net",
  654. "file2share.biz",
  655. "filecache.de",
  656. "monsteruploads.eu",
  657. "b9bb.com",
  658. "aiotool.net",
  659. "jamber.info",
  660. "megaftp.com",
  661. "desiupload.net",
  662. "file27.com",
  663. "yastorage.com",
  664. "filehost.ws",
  665. "copyload.com",
  666. "venusfile.com",
  667. "aieshare.com",
  668. "terafile.co",
  669. "terafile.com",
  670. "fileza.net",
  671. "filerose.com",
  672. "squillion.com",
  673. "fileprohost.com",
  674. "bitbonus.com",
  675. "warserver.cz",
  676. "uload.to",
  677. "sharedbit.net",
  678. "megaload.it",
  679. "filewinds.com",
  680. "uploadcore.com",
  681. "syfiles.com",
  682. "eyesfile.com",
  683. "hotfile.com",
  684. "superupl.com",
  685. "oteupload.com",
  686. "henchfile.com",
  687. "filegag.com",
  688. "HenchFile.com",
  689. "filedefend.com",
  690. "share-rapid.com|rapids.cz|share-credit.cz|share-central.cz|share-ms.cz|share-net.cz|srapid.cz|share-rapid.cz",
  691. "megabitshare.com",
  692. "cloudzer.com",
  693. "asfile.com",
  694. "cloudzer.net",
  695. "clz.to",
  696. "extabit.com",
  697. "247upload.com",
  698. "2download.de",
  699. "4fastfile.com",
  700. "asixfiles.com",
  701. "berofile.com",
  702. "bigupload.com",
  703. "cepzo.com",
  704. "clouds.to",
  705. "cobrashare.sk",
  706. "coraldrive.net",
  707. "cyberlocker.ch",
  708. "czshare.com",
  709. "darkport.org",
  710. "dark-uploads.com",
  711. "davvas.com",
  712. "enigmashare.com",
  713. "erofly.cz",
  714. "fastsonic.net",
  715. "filebox.com",
  716. "filecity.net",
  717. "filedap.com",
  718. "filedino.com",
  719. "filedownloads.org",
  720. "filefolks.com",
  721. "fileking.co",
  722. "filemates.com",
  723. "files.to",
  724. "files2k.eu",
  725. "filesector.cc",
  726. "bitshare.com",
  727. "filesega.com",
  728. "filesend.net",
  729. "filestay.com",
  730. "filestrum.com",
  731. "fileuplo.de",
  732. "fileupup.com",
  733. "forunesia.com",
  734. "freeuploads.fr",
  735. "uploa.dk",
  736. "getthebit.com",
  737. "getzilla.net",
  738. "goldfile.eu",
  739. "good.com",
  740. "grupload.com",
  741. "hellfile.com",
  742. "hipfile.com",
  743. "hitfile.com",
  744. "hulkfile.eu|duckfile.net",
  745. "i-filez.com",
  746. "ifile.ws",
  747. "kupload.org",
  748. "packupload.com",
  749. "lemuploads.com",
  750. "limelinx.com",
  751. "maxshare.pl",
  752. "megarelease.org",
  753. "megashare.com",
  754. "minus.com",
  755. "mlfat4arab.com",
  756. "multishare.cz",
  757. "nirafile.com",
  758. "ok2upload.com",
  759. "peejeshare.com",
  760. "premiuns.org",
  761. "przeklej.net",
  762. "qkup.net",
  763. "rapidupload.sk",
  764. "rockdizfile.com",
  765. "rocketfile.net",
  766. "share-now.net",
  767. "share76.com",
  768. "sharebees.com",
  769. "sharefiles.co",
  770. "slingfile.com",
  771. "sms4file.com",
  772. "space4file.com",
  773. "tigershare.net",
  774. "toucansharing.com",
  775. "ubuntuone.com",
  776. "unextfiles.com",
  777. "upaj.pl",
  778. "upfile.biz",
  779. "uploadbin.net",
  780. "uploadic.com",
  781. "uploadinc.com",
  782. "uploading4u.eu",
  783. "uploadjet.net",
  784. "uploadorb.com",
  785. "upthe.net",
  786. "uptorch.com",
  787. "vidbox.yt",
  788. "videozer.com",
  789. "vreer.com",
  790. "wallobit.com",
  791. "zooupload.com",
  792. "privatefiles.com",
  793. "xerver.co",
  794. "BillionUploads.com",
  795. "rapidshare.com",
  796. "rapidshare.ru",
  797. "4savefile.com",
  798. "bayfiles.com",
  799. "bayfiles.net",
  800. "dodane.pl",
  801. "dotsemper.com",
  802. "egofiles.com",
  803. "epicshare.net",
  804. "fiberupload.net",
  805. "filemonkey.in",
  806. "filemonster.net",
  807. "filepom.com",
  808. "filesbb.com",
  809. "fileshareup.com",
  810. "filevice.com",
  811. "gigaup.fr",
  812. "isavelink.com",
  813. "loombo.com",
  814. "megafiles.se",
  815. "migupload.com",
  816. "mydisc.net",
  817. "nitrobits.com",
  818. "potload.com",
  819. "redload.net",
  820. "shareprofi.com",
  821. "sharesuper.info",
  822. "sinhro.net",
  823. "speedfile.cz",
  824. "speedshare.org",
  825. "storage.novoro.net",
  826. "swankshare.com",
  827. "swatupload.com",
  828. "upafile.com",
  829. "uploadmachine.com",
  830. "uploadsat.com",
  831. "upshared.com",
  832. "usefile.com",
  833. "yourfiles.to",
  834. "zomgupload.com",
  835. "ultramegabit.com",
  836. "uploadto.us",
  837.  
  838. ];
  839. ///////////////////////////////////////////////////////////////////////////////////////
  840. var firstRun = GM_getValue("First_run", true);
  841.  
  842. var chromeBrowser = /chrom(e|ium)/.test(navigator.userAgent.toLowerCase());
  843. //////////////////////////////////////////////////////////////////////////////////////
  844. try
  845. {
  846. var thisVersion = GM_info.script.version; //not supported in Scriptish and others
  847. var last_known_version = GM_getValue("last_known_version", "");
  848. if (!last_known_version)
  849. {
  850. last_known_version = thisVersion;
  851. GM_setValue("last_known_version", last_known_version);
  852. }
  853. //var newVersion = !(thisVersion == last_known_version);
  854. var newVersion = !(a.replace(/^(\d+\.\d+\.\d+).*/,'$1') == b.replace(/^(\d+\.\d+\.\d+).*/,'$1')); //true only if one of the first three numbers differs
  855. GM_setValue("last_known_version", thisVersion);
  856. }
  857. catch (err)
  858. {
  859. var newVersion = false;
  860. }
  861.  
  862. var now = (new Date()).getTime();
  863. var last_custom_rules_nag = GM_getValue('last_custom_rules_nag', 0);
  864. if (!last_custom_rules_nag)
  865. {
  866. last_custom_rules_nag = now;
  867. GM_setValue('last_custom_rules_nag', ''+now);
  868. }
  869.  
  870.  
  871. allHostNames.sort();
  872. allContainerNames.sort();
  873. allObsoleteNames.sort();
  874.  
  875. var RAND_STRING = "8QyvpOSsRG3QWq";
  876. var DEBUG_MODE = false;
  877.  
  878. var TOOLTIP_MAXWIDTH = 600; //in pixels
  879. var TOOLTIP_THUMBWIDTH = 200;
  880. var containers_processed = false;
  881.  
  882. //settings for keyboard functions start
  883. var CHECK_ALL_LINKS_KEY = "A";
  884. var CONFIGURATION_KEY = "C";
  885. var copy_to_dead_key = "D";
  886. var toggle_autocheck_key = "W";
  887. var toggle_Enable_Anonymizer_key = "Z";
  888. var first_key_keycode = '17'; // 18=ALT 16=Shift 17=Ctrl 32=SPACE_BAR 9=TAB
  889. var first_key_keycodename = 'CTRL';
  890. var second_key_keycode = '18';
  891. var second_key_keycodename = 'ALT';
  892. var CHECK_ALL_LINKS_KEYCODE = CHECK_ALL_LINKS_KEY.charCodeAt(0);
  893. var CONFIGURATION_KEYCODE = CONFIGURATION_KEY.charCodeAt(0);
  894. var copy_to_dead_keycode = copy_to_dead_key.charCodeAt(0);
  895. var toggle_autocheck_keycode = toggle_autocheck_key.charCodeAt(0);
  896. var toggle_Enable_Anonymizer_keycode = toggle_Enable_Anonymizer_key.charCodeAt(0);
  897. //settings for keyboard functions end
  898.  
  899. //global settings start
  900. var Show_black_background_in_DL_links, Show_line_through_in_dead_links, Color_DL_links;
  901. var Live_links_color, Dead_links_color, Temp_unavailable_links_color, Premium_links_color, Ref_anonymize_service;
  902. var Do_not_linkify_DL_links, Keyboard_functions, Autocheck, Enable_Anonymizer;
  903. var Show_progress_stats, Display_tooltip_info, Icon_set;
  904. var Progress_box_pos_bottom, Progress_box_pos_right, Progress_box_opacity, Progress_box_background_color, Progress_box_item_color;
  905. var Progress_box_refresh_rate;
  906. var Obsolete_file_hosts;
  907. var Custom_rules, Custom_rules_text;
  908.  
  909. var messageBox = document.createElement('b'); // top-left message box
  910.  
  911. var cLinksTotal = 0;
  912. var cLinksDead = 0;
  913. var cLinksAlive = 0;
  914. var cLinksUnava = 0;
  915. var cLinksprem = 0;
  916. var cLinksProcessed = 0;
  917.  
  918. var intervalId; //for updateProgress()
  919.  
  920. //icon resources
  921. 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//wd0yLESWK5WCoU41EScY5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YS6kQed2UD3AESEvwMAaQGsQMrwcN0AAAAASUVORK5CYII=';
  930.  
  931. var NEW_ICON_GREEN = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACGklEQVR42mNkIBcwMWQwsDMrMZKhlZmRi2mCWYtE9st1bx+SagAPlwTLCt+pot6vrv/8t7/mnQcpBsjI6jNvDp4uZvDuMw/D8uA7U39/+Z9DrAGG5r5Mmz06pKQ//BVnWJl89daL0z8MgeLfiDHAN6SAaZlhjjzP+x8SDAcX3P1zuueVDVD8JEiSkVOcZbWAJKPi8wu/q4H8nSgBzcyQl9jN1ifvp8z8+acQw50brxk2Rd1u+fvzfy1MDaN7DOO7ohnSgqe2Pf0/rYJh1/N7/0uB4tdYuRknJMzgzZYyV2L89pub4c3Xbwwb4q+de3/9pwVQ/jfcAGYWhrJ5x207ZdSFGB59Ockwb+L3vydX/7oRPYFPW05DnuHbb1aGD79+MRyZev/H9TlvTIB6riK7EhQGbNr2rJe714eq/fjLwPD8x22GO5/eM/CzijN8BdoD0nz3/FuG/an3Sv7/ZehFDyBYIHplzFHcYullyPjp13eGj79/MHwEagRpfvPpB8OuuJsHvz785QRU9w+XAQwCMkyby3aZ+/xj5YBr/vDzD8OpngefHq55rw9U8gBbFCFHo4pljvAV60x19o+/fgMN+cNw79h7hjNFD5IZ/jPMwxXHKOmAmYOxPWCNWgWzKBfDm7c/GY4m3Nr089Uff3yJBD0h8Ug68tzQbVCUvtD66PWrXR91gWIvSTEABOw5pNlKfjz91QNkHySUTAGg7t0uvj1ytQAAAABJRU5ErkJggg==';
  932. var NEW_ICON_RED = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAA6klEQVQ4jbWTwWrCQBRFz6Rxnay6iuAXlJIg+BHZZR/d6++4t/5MpRQRf8CCrurGrDP6uumESTol04J3dbmPd7hvYBTAG5QBzIFH/PQpsBzDWm2gDGEFKM9lIxGYBSEsustRnp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q3QAIsd2020VlRXBYEYdsThSCsdeZlEkhYoBUqBJOioaV0V8YWLgU+Ew3OUllo4jgd4D+4AtYdsc7/DVQOMxSNW5cNClGD+Fu41dOZlKDMLmELrOUIhjeN48HpngTnMbDeWjIeHnsvbz98YXqxguumuazdDOs0HjAETRKNjuFyzTE9PAOO//Xm27lvN4b1c8htkAXC2jrKHN5gVSRcRW0SCIpIj/f2ZAkhTkykiOYu+SLa8e6qkeRNXALh5nEc/phARnaSJSSUnO5G+B8tnIkr6rjMTSqfMZQXZ9vE1xGKJpPe4DDjXAYkEjAwmzwwDLIv0NZlE1MYAjsQoAOL8C5rY2AxPlIjwP/wcACKn3tWfrwJ4AAAAAElFTkSuQmCC';
  934. var NEW_ICON_PINK = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABUklEQVQ4jY3TsUuWURQG8F8WEvFNDREfIg5RURAOIeL0DhJBS0tDY9BQQ0Oj29kiIvoDhBpFQRTUD1GKi0sRtEs0SEQ0RBQIRcVXw3eF6+vrWwcunPvc53nuPffcS0uEmA0x38Y5cohwGjOYxBBe4VGI3j8NQlzHYhaW0cfNEAslWCfBw4yvYhkv8hjCgxD7yMdquw/jbJ4+xq2cz+AKdrJRv9EAv/EDx3Ft75QhtrHdcFpHy0mS/lSqcVzAFM7he6XaTNLXJoOmS+ziOc4XcB893A3xodUgm5zAHdzHSLH0DhdD/GwsoSjlV5Je5nK+YQUTOInXSXq7x6134RQuo4unGf6Me7iKMxgrNfUuXMJazr8U+DA6Of/UZrCF9xjFM3zELpZwOptulIKmLlQGNXdqS7u4EWK9BA9cYpJ2KtWcwaMazcInuB3iTZ3fGv/znf8CBMxX4hrPUbUAAAAASUVORK5CYII=';
  935.  
  936. //global settings end
  937. if (window.opera && !window.console)
  938. {
  939. window.console = {};
  940.  
  941. function fn()
  942. {
  943. opera.postError(arguments);
  944. };
  945. ['log', 'debug', 'info', 'warn', 'error', 'assert', 'dir', 'dirxml', 'group', 'groupEnd', 'time', 'timeEnd', 'count', 'trace', 'profile', 'profileEnd'].forEach(function (name)
  946. {
  947. window.console[name] = fn;
  948. });
  949. }
  950.  
  951. //displays colored text in message box
  952. function sendMessage(text, color)
  953. {
  954. var msgDiv = document.createElement('div');
  955. msgDiv.style.color = color;
  956. msgDiv.innerHTML = text;
  957. messageBox.appendChild(msgDiv);
  958. setTimeout(function(){messageBox.removeChild(msgDiv)}, 3000);
  959. }
  960.  
  961. function linkify(totalourls)
  962. { // code from http://userscripts.org/scripts/review/2254 Linkify ting
  963. var ikkeTilladteTags;
  964. var allLinksRegex = "(?:http:\/\/.+?\\?)?(?:https?:\/\/)?"
  965. + "[0-9A-Za-z]+(?:[\\.-][0-9A-Za-z]+)*\\.[A-Za-z]+/" //instead of totalourls
  966. + "[\\w\\–\\-\\.+$!*\\/()\\[\\]\',~%?:@#&=\\\\\\—;…×Ã\\_\\u0080-\\u03FF’‘" + (Allow_spaces_in_DL_links ? "\\u0020" : "") + "]*";
  967. allLinksRegex = new RegExp(allLinksRegex, "g");
  968. var regexy = "^(?:http:\/\/.+?\\?)?(?:https?:\/\/)?(?:www\\.)?(?:" + totalourls + ")";
  969.  
  970. if (Do_not_linkify_DL_links)
  971. ikkeTilladteTags = ['a', 'head', 'script', 'style', 'title', 'option', 'iframe', 'textarea', 'span']; //tags, hvor det der stAΞ’Β¥r inden i ikke skal vAΞ’Β¦re links
  972. else
  973. ikkeTilladteTags = ['a', 'head', 'script', 'style', 'title', 'option', 'iframe', 'textarea']; //tags, hvor det der stAΞ’Β¥r inden i ikke skal vAΞ’Β¦re links
  974.  
  975. var regex = new RegExp(regexy);
  976. var textNode, muligtLink;
  977.  
  978. var path = "//text()[not(parent::" + ikkeTilladteTags.join(" or parent::") + ") and contains(.,'/')]";
  979. var textNodes = document.evaluate(path, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  980.  
  981. var i = textNodes.snapshotLength;
  982. while (i--)
  983. {
  984. textNode = textNodes.snapshotItem(i);
  985.  
  986. muligtLink = textNode.nodeValue; //all links on page
  987.  
  988. var myArray = null;
  989. var span = null;
  990. var lastLastIndex = 0;
  991. allLinksRegex.lastIndex = 0;
  992. if (/^https?:\/\/~[\w\s\~]*\//.test(muligtLink))
  993. {
  994. if (textNode.parentNode.className == "adead_link") continue;
  995. var censoredLink = muligtLink;
  996. var span = document.createElement('span');
  997. span.className = "adead_link";
  998. $(span).attr('warlc_error', "Cause of error: <b>Censored link.</b>");
  999. $(span).html(censoredLink);
  1000. span.addEventListener("mouseover", displayTooltipError, false);
  1001. cLinksTotal++; cLinksProcessed++; cLinksDead++;
  1002. textNode.parentNode.replaceChild(span, textNode);
  1003. continue;
  1004. alert(censoredLink);
  1005. }
  1006. while (myArray = allLinksRegex.exec(muligtLink)) //find all links
  1007. {
  1008. if (!regex.test(myArray[0])) //this link is not recognized
  1009. {
  1010.  
  1011. continue;
  1012. }
  1013. if (!span)
  1014. span = document.createElement('span');
  1015.  
  1016. var link = myArray[0];
  1017. span.appendChild(document.createTextNode(muligtLink.substring(lastLastIndex, myArray.index))); //inds?t det der kommer for dette hit
  1018.  
  1019. var $a = $("<a>" + link + "</a>")
  1020. if (!link.match(/https?:\/\//))
  1021. {
  1022. link = 'http://' + link;
  1023. }
  1024.  
  1025. $a.attr("href", link.replace(/\[\/hide:\w+\]/,""))
  1026. .addClass("processing_link")
  1027. .appendTo(span);
  1028. lastLastIndex = allLinksRegex.lastIndex;
  1029. }
  1030. if (span)
  1031. {
  1032. span.appendChild(document.createTextNode(muligtLink.substring(lastLastIndex))); //ins?t det der kommer efter sidste hit
  1033. textNode.parentNode.replaceChild(span, textNode);
  1034. }
  1035. }
  1036. }
  1037.  
  1038. function add_WARLC_style()
  1039. {
  1040. if (!(document.getElementsByTagName('WARLC')[0]))
  1041. {
  1042. var meta_not_to_add_more_style = document.createElement("WARLC");
  1043. meta_not_to_add_more_style.setAttribute('content', 'war_links_checker');
  1044. meta_not_to_add_more_style.setAttribute('name', 'description');
  1045. document.getElementsByTagName('head')[0].appendChild(meta_not_to_add_more_style);
  1046. alive_link_png = "";
  1047. adead_link_png = "";
  1048. unava_link_png = "";
  1049. prem_link_png = "";
  1050. switch(Icon_set)
  1051. {
  1052. //no icons
  1053. case 0: break;
  1054. // cat paws
  1055. case 1: alive_link_png = PAW_ICON_GREEN;
  1056. adead_link_png = PAW_ICON_RED;
  1057. unava_link_png = PAW_ICON_YELLOW;
  1058. prem_link_png = PAW_ICON_PINK;
  1059. break;
  1060. // classic RSLC look
  1061. case 2: alive_link_png = RSLC_ICON_GREEN;
  1062. adead_link_png = RSLC_ICON_RED;
  1063. unava_link_png = RSLC_ICON_YELLOW;
  1064. prem_link_png = RSLC_ICON_PINK;
  1065. break;
  1066. // New Icons
  1067. case 3: alive_link_png = NEW_ICON_GREEN;
  1068. adead_link_png = NEW_ICON_RED;
  1069. unava_link_png = NEW_ICON_YELLOW;
  1070. prem_link_png = NEW_ICON_PINK;
  1071. break;
  1072. // cat paws
  1073. default:alive_link_png = PAW_ICON_GREEN;
  1074. adead_link_png = PAW_ICON_RED;
  1075. unava_link_png = PAW_ICON_YELLOW;
  1076. prem_link_png = PAW_ICON_PINK;
  1077. break;
  1078. }
  1079. processing_link_gif = 'data:image/gif;base64,' + // or temporary anavailable
  1080. 'R0lGODlhCgAKAJEDAMzMzP9mZv8AAP///yH/C05FVFNDQVBFMi4wAwEAAAAh+QQFAAADACwAAAAACgAKAAACF5wncgaAGgJzJ647cWua4sOBFEd62VEAACH5BAUAAAMALAEAAAAIAAMAAAIKnBM2IoMDAFMQFAAh+QQFAAADACwAAAAABgAGAAACDJwHMBGofKIRItJYAAAh+QQFAAADACwAAAEAAwAIAAACChxgOBPBvpYQYxYAIfkEBQAAAwAsAAAEAAYABgAAAgoEhmPJHOGgEGwWACH5BAUAAAMALAEABwAIAAMAAAIKBIYjYhOhRHqpAAAh+QQFAAADACwEAAQABgAGAAACDJwncqi7EQYAA0p6CgAh+QQJAAADACwHAAEAAwAIAAACCpRmoxoxvQAYchQAOw%3D%3D';
  1081.  
  1082. var dead_color_css, live_color_css, unava_color_css, prem_color_css, black_background_css;
  1083.  
  1084. if (Color_DL_links)
  1085. {
  1086. dead_color_css = 'color:' + Dead_links_color + ' !important;';
  1087. live_color_css = 'color:' + Live_links_color + ' !important;';
  1088. unava_color_css = 'color:' + Temp_unavailable_links_color + ' !important;';
  1089. container_color_css = 'color:' + Container_links_color + ' !important;';
  1090. prem_color_css = 'color:' + Premium_links_color + ' !important;';
  1091. }
  1092. else
  1093. {
  1094. dead_color_css = live_color_css = unava_color_css = container_color_css = prem_color_css = '';
  1095. }
  1096.  
  1097. if (Show_black_background_in_DL_links)
  1098. {
  1099. black_background_css = 'background-color: black !important;';
  1100. }
  1101. else
  1102. {
  1103. black_background_css = '';
  1104. }
  1105.  
  1106. if (Show_line_through_in_dead_links)
  1107. {
  1108. line_through_css = 'text-decoration: line-through !important;';
  1109. }
  1110. else
  1111. {
  1112. line_through_css = '';
  1113. }
  1114.  
  1115. GM_addStyle(".alive_link {background:transparent url(" + alive_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;" + live_color_css + black_background_css + "}");
  1116. 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 + "}");
  1117. GM_addStyle(".unava_link {background:transparent url(" + unava_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;" + unava_color_css + black_background_css + "}");
  1118. GM_addStyle(".processing_link {background:transparent url(" + processing_link_gif + ") no-repeat scroll 100% 50%;padding-right:15px;" + container_color_css + black_background_css + "}");
  1119. GM_addStyle(".container_link {background:transparent url(" + processing_link_gif + ") no-repeat scroll 100% 50%;padding-right:15px;" + container_color_css + black_background_css + "}");
  1120. GM_addStyle(".container_list {font-size:90%; list-style-type:square; padding: 0px 5% 0px; margin: 0px}");
  1121. GM_addStyle(".prem_link {background:transparent url(" + prem_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;" + prem_color_css + black_background_css + "}");
  1122. }
  1123. }
  1124.  
  1125. var warlcTooltip = null;
  1126. var mouseoverLink = null; //link href with mouse cursor over it
  1127.  
  1128. var lastX = 0;
  1129. var lastY = 0;
  1130.  
  1131. $(document).ready(initTooltip);
  1132. //inits tooltip
  1133. function initTooltip()
  1134. { warlcTooltip = document.createElement("div");
  1135. 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;");
  1136. warlcTooltip.style.visibility = "hidden";
  1137. document.body.appendChild(warlcTooltip);
  1138. }
  1139.  
  1140. //"mousemove" event handler for all links
  1141. function moveTooltip(event)
  1142. {
  1143. if ((Math.abs(lastX - event.clientX) + Math.abs(lastY - event.clientY)) < 6)
  1144. { //no need to reflow if the cursor moved just a little
  1145. return;
  1146. }
  1147. else
  1148. {
  1149. lastX = event.clientX;
  1150. lastY = event.clientY;
  1151. }
  1152.  
  1153. posX = event.clientX + window.pageXOffset + 10;
  1154. posY = event.clientY + window.pageYOffset;
  1155. var ttHeight = warlcTooltip.offsetHeight;
  1156. var ttFreeSpace = window.innerHeight - event.clientY;
  1157. if (ttHeight > ttFreeSpace)
  1158. { //prevents tooltip from getting out of the window
  1159. posY -= (ttHeight - (ttFreeSpace)) + 10;
  1160. }
  1161. else
  1162. {
  1163. posY += 7;
  1164. }
  1165. warlcTooltip.style.top = posY + "px";
  1166. warlcTooltip.style.left = posX + "px";
  1167. }
  1168.  
  1169. //"mouseout" event handler for all links
  1170. function hideTooltip(){
  1171. warlcTooltip.style.visibility = "hidden";
  1172. mouseoverLink = null;
  1173. }
  1174.  
  1175.  
  1176. //"mouseover" event handler for dead links
  1177. //displays tooltip error message on dead links
  1178. function displayTooltipError()
  1179. {
  1180. mouseoverLink = this.href;
  1181. this.addEventListener("mouseout", hideTooltip);
  1182. this.addEventListener("mousemove", function(event) { moveTooltip(event); });
  1183. warlcTooltip.innerHTML = '<b>LOADING...</b>';
  1184. warlcTooltip.style.minWidth = 0;
  1185. warlcTooltip.style.visibility = "visible";
  1186. if (this.warlc_error) //an error message is already known and stored in warlc_error attribute
  1187. {
  1188. warlcTooltip.innerHTML = this.warlc_error;
  1189. }
  1190. else
  1191. {
  1192. loadErrorInfo(this);
  1193. }
  1194. function loadErrorInfo(link)
  1195. {
  1196. var href = link.href;
  1197. href = href.replace(/quickshare\.cz\/.+/, "quickshare.cz/chyba");
  1198. GM_xmlhttpRequest({
  1199. method: 'GET',
  1200. url: href.replace(Ref_anonymize_service, ""),
  1201. headers: {
  1202. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1203. 'Accept': 'text/xml',
  1204. 'Referer': ""
  1205. },
  1206. onload: function(result) {
  1207. var res = result.responseText;
  1208. //TODO: errorRegexs -
  1209. var errorRegexs = [ //generic error messages follow
  1210. /(empty directory)/i,
  1211. /(soubor nebyl nalezen)/i,
  1212. /((?:file|page|link|folder)(?:is|not|does|has been|was| ){1,}(?:found|available|blocked|exists?|deleted|removed))/i,
  1213. //server specific error messages follow
  1214. /msg error" style="cursor: default">(.+?)<\/div>/, //sendspace
  1215. /color:red;font\-weight:bold;border\-style:dashed;font-size:12px;border\-width:2px;><tr><td align=center>(.+?)<\/td>/, //fastshare
  1216. /(Takový soubor neexistuje. Je možné, že byl již smazán.)/, //quickshare
  1217. /file_info file_info_deleted">\s*<h1>(.+?)<\/h1>/, //filepost
  1218. /<br \/>\s*<p style="color:#000">(.+?)<\/p>\s*<\/center>/, //letitbit
  1219. /(?:error_div">|<\/h1><p>)<strong>(.+?)<\/strong>/, //share-rapid,quickshare
  1220. /class="red">(.+?)<(?:span|br)>/, //czshare, megashares
  1221. /class="wp640">\s*<h1 class="h1">(.+?)<\/h1>/, //uloz.to
  1222. /not-found">\s*<p>(.+?)<\/p>/, //bayfiles
  1223. /(Your file could not be found. Please check the download link.)/, //stahnu.to
  1224. /error_msg">\s*(<h3>.+?<\/h3><ul>(.+?)<\/ul>)/, //edisk
  1225. /id="obsah">\s*<h2>(.+?)<\/h2>/, //euroshare
  1226. /error">\s*(?:<[bp]>)?\s*(.+?)<\/[bp]>/, //filesmonster, shragle, gigapeta
  1227. ///center aC">\s*<h1>(.+?)<br \/>/, //uploaded.to
  1228. /icon_err">\s*<h1>(.+?)<\/h1>/, //filejungle
  1229. /Code: ER_NFF_\d+<\/h2>\s*(.+?)\s*<\/div>/, //netload
  1230. /(File has been removed due to Copyright Claim)/, //filerio
  1231. ];
  1232. var errorIdx = errorRegexs.length;
  1233. var error = "Cause of error: <b>unknown</b>";
  1234. var errorCandidate = "";
  1235. while(errorIdx--)
  1236. {
  1237. var errorCandidate = res.match(errorRegexs[errorIdx]);
  1238. if (errorCandidate != null)
  1239. {
  1240. error = "Cause of error: <b>" + errorCandidate[1].replace(/&nbsp;/g," ") + "</b>";
  1241. break;
  1242. }
  1243. }
  1244. //link attributes
  1245. link.warlc_error = error;
  1246. if (mouseoverLink == link.href) //mouse cursor is still over the link
  1247. {
  1248. warlcTooltip.innerHTML = error;
  1249. }
  1250. }
  1251. });
  1252. }
  1253. }
  1254.  
  1255. //"mouseover" event handler for alive links
  1256. //displays tooltip info (file size, file name,...) on alive links
  1257. function displayTooltipInfo()
  1258. {
  1259. mouseoverLink = this.href;
  1260. //exclude direct download filehostings
  1261. 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)/))
  1262. {
  1263. return;
  1264. }
  1265. this.addEventListener("mouseout", hideTooltip);
  1266. this.addEventListener("mousemove", function(event) { moveTooltip(event); });
  1267. warlcTooltip.innerHTML = '<b>LOADING...</b>';
  1268. warlcTooltip.style.minWidth = 0;
  1269. warlcTooltip.style.visibility = "visible";
  1270. if (this.warlc_tooltipcache) //file size is already known and stored in warlc_filename and warlc_filesize attributes
  1271. {
  1272. warlcTooltip.innerHTML = this.warlc_tooltipcache;
  1273. }
  1274. else
  1275. {
  1276. loadInfo(this);
  1277. }
  1278. function loadInfo(link)
  1279. {
  1280. var href = link.href;
  1281. GM_xmlhttpRequest({
  1282. method: 'GET',
  1283. url: href.replace(Ref_anonymize_service, ""),
  1284. headers: {
  1285. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1286. 'Accept': 'text/xml',
  1287. 'Referer': ""
  1288. },
  1289. onload: function(result) {
  1290. var res = result.responseText;
  1291. var nameRegexs = [ /Filename: <b class="f_arial f_14px">(.+?)<\/b>/, //oron
  1292. /(?:finfo|file[-_]?name)">\s*(.+?)<\/?(?:h1|a|div|span style|td)/, //hellshare, netload, badongo, 4fastfile
  1293. /fl" title="(.+?)">/, //edisk
  1294. /<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
  1295. /<h3>Stahujete soubor: <\/h3>\s*<div class="textbox">(.+?)<\/div>/, //webshare
  1296. /<h3><b><span style=color:black;>(.+?)<\/b><\/h3><br>/, //fastshare
  1297. /title="download (.+?)">/, //sendspace
  1298. /Stáhnout soubor: (.+?)<\/h1>/, //quickshare
  1299. /fz24">Download:\s*<strong>(.+?)<\/strong>/, //crocko
  1300. // /'file\-icon\d+ \w+'>(?:<\/span><span>)?(.+?)<\/span>/, //hitfile, turbobit
  1301. /d0FileName = "(.+?)";/, //letitbit
  1302. /file(?:_name|-info)" title="">\w+: <span>(.+?)<\/span>/, //vip-file, shareflare
  1303. /recent-comments"><h2>(.+) &nbsp;/, //xdisk
  1304. /fname" value="(.+?)">/, //syfiles, grupload,
  1305. /download\-header">\s*<h2>File:<\/h2>\s*<p title="(.+?)">/, //bayfiles
  1306. /description">\s*<p><b>Soubor: (.+?)<\/b>/, //bezvadata
  1307. /Complete name : (.+?)<br \/>/, //bezvadata
  1308. /itemprop="name">(.+?)<\/span>/, //bezvadata
  1309. ];
  1310. var nameIdx = nameRegexs.length;
  1311. // [sizeRegexs]
  1312. // / \ \?
  1313. // prefix (size) postfix
  1314. // / \
  1315. // val quant
  1316. var quantRegex = '(?:M|G|K)?i?(?:B)(?:[y|i]te?s?)?';
  1317. var valRegex = '\\d+(?:[\\., ]\\d+){0,2}'; // 111([., ]222)?([., ]333)?
  1318. var uniSizeRegex = valRegex + '(?:\\s*|&nbsp;)' + quantRegex;
  1319. var preSizeRegex = '(?::|\\(|>|>, | - )';
  1320. var postSizeRegex = '(?:\\))?';
  1321. var sizeRegexs = [ preSizeRegex + "\\s*(" + uniSizeRegex + ")\\s*" + postSizeRegex,
  1322. 'FileSize_master">(.+?)<\/strong>', //hellshare
  1323. ];
  1324. var sizeIdx = sizeRegexs.length;
  1325. //
  1326. //
  1327. var tooltip = "File Name: <b>";
  1328. var fileName = "unknown";
  1329. var nameCandidate = "";
  1330. while(nameIdx--)
  1331. {
  1332. var nameCandidate = res.match(nameRegexs[nameIdx]);
  1333. if (nameCandidate != null)
  1334. {
  1335. fileName = nameCandidate[1].replace(/&nbsp;/g," ");
  1336. break;
  1337. }
  1338. }
  1339. tooltip += fileName + "</b><br>File Size: <b>";
  1340. var fileSize = "unknown";
  1341. var sizeCandidate = "";
  1342. while(sizeIdx--)
  1343. {
  1344. sizeCandidate = res.match(new RegExp(sizeRegexs[sizeIdx], "i"));
  1345. if (sizeCandidate != null)
  1346. {
  1347. fileSize = sizeCandidate[1].replace(/&nbsp;/g," ");
  1348. if (/^\d+$/.test(fileSize) && fileSize >= 1024) //assume bytes
  1349. {
  1350. if(fileSize > (1<<30)) fileSize = Math.round(10 * fileSize / (1<<30)) / 10 + ' GB';
  1351. else if(fileSize > (1<<20)) fileSize = Math.round(fileSize / (1<<20)) + ' MB';
  1352. else fileSize = Math.round(fileSize / 1024) + ' KB';
  1353. }
  1354. break;
  1355. }
  1356. }
  1357. tooltip += fileSize + "</b>";
  1358. // PROTOTYPE
  1359. // video thumbnails
  1360. if (href.match('hellshare'))
  1361. {
  1362. var thumbs;
  1363. thumbs = res.match(/http:\/\/static\d+\.helldata\.com\/thumbs(?:\/\d+){1,2}\/\d{1,2}"/g);
  1364. if (thumbs)
  1365. {
  1366. tooltip += '<br>';
  1367. var j = Math.min(thumbs.length, 9);
  1368. for (var i = 0; i < j; i++)
  1369. {
  1370. tooltip += '<img src="' + thumbs[i].replace('"',"") + '" width="' + TOOLTIP_THUMBWIDTH + 'px">';
  1371. }
  1372. warlcTooltip.style.minWidth = TOOLTIP_MAXWIDTH;
  1373. }
  1374. }
  1375. if (href.match('czshare'))
  1376. {
  1377. var thumbs;
  1378. thumbs = res.match(/src="http:\/\/www(\d+)\.czshare\.com\/images_velke\/\d+\.(\d+)\.jpeg/);
  1379. if (thumbs)
  1380. {
  1381. var thumbsServer = thumbs[1];
  1382. var thumbsId = thumbs[2];
  1383. tooltip += '<br>';
  1384. for (var i = 1; i < 9; i++)
  1385. {
  1386. tooltip += '<img src="http://www' + thumbsServer + '.czshare.com/images_velke/' + i + '.' + thumbsId + '.jpeg" width="' + TOOLTIP_THUMBWIDTH + 'px">';
  1387. }
  1388. warlcTooltip.style.minWidth = TOOLTIP_MAXWIDTH;
  1389. }
  1390. }
  1391. if (href.match('bezvadata'))
  1392. {
  1393. var thumbs;
  1394. thumbs = res.match(/http:\/\/nahledy\.bezvadata\.cz\/nahledy\/\d+\/\d+\/\d+_\d+_\d+x\d+_\w.jpg/g);
  1395. if (thumbs)
  1396. {
  1397. tooltip += '<br>';
  1398. var j = Math.min(thumbs.length, 9);
  1399. for (var i = 0; i < j; i++)
  1400. {
  1401. tooltip += '<img src="' + thumbs[i] + '" width="' + TOOLTIP_THUMBWIDTH + 'px">';
  1402. }
  1403. warlcTooltip.style.minWidth = TOOLTIP_MAXWIDTH;
  1404. }
  1405. }
  1406. link.warlc_tooltipcache = tooltip;
  1407. if (mouseoverLink == link.href) //mouse cursor is still over the link
  1408. {
  1409. warlcTooltip.innerHTML = tooltip;
  1410. }
  1411. }
  1412. });
  1413. }
  1414. }
  1415.  
  1416. function setVariables()
  1417. {
  1418. if (firstRun)
  1419. {
  1420. GM_log('First run, applying default settings...');
  1421. GM_setValue("Icon_set",1);
  1422. GM_setValue("Display_tooltip_info",true);
  1423. GM_setValue("Show_black_background_in_DL_links",false);
  1424. GM_setValue("Show_line_through_in_dead_links",false);
  1425. GM_setValue("Display_full_links_in_link_containers",false);
  1426. GM_setValue("Allow_spaces_in_DL_links",false);
  1427. GM_setValue("Autocheck",true);
  1428. GM_setValue("Enable_Anonymizer",false);
  1429. GM_setValue("Do_not_linkify_DL_links",false);
  1430. GM_setValue("Show_progress_stats",true);
  1431. GM_setValue("Keyboard_functions",true);
  1432. GM_setValue("Obsolete_file_hosts",false);
  1433. GM_setValue("Color_DL_links",true);
  1434. GM_setValue("Live_links_color","Green");
  1435. GM_setValue("Dead_links_color","#FF3300");
  1436. GM_setValue("Temp_unavailable_links_color","#F7EF09");
  1437. GM_setValue("Container_links_color","DarkKhaki");
  1438. GM_setValue("Premium_links_color","DeepPink");
  1439. GM_setValue("Ref_anonymize_service","http://hiderefer.com/?");
  1440. GM_setValue("Custom_rules",false);
  1441. GM_setValue("Custom_rules_text","");
  1442. GM_setValue("First_run", false);
  1443. }
  1444. //hidden settings
  1445. GM_setValue("Progress_box_pos_bottom", Progress_box_pos_bottom = GM_getValue("Progress_box_pos_bottom", 20));
  1446. GM_setValue("Progress_box_pos_right", Progress_box_pos_right = GM_getValue("Progress_box_pos_right", 10));
  1447. GM_setValue("Progress_box_opacity", Progress_box_opacity = GM_getValue("Progress_box_opacity", 85));
  1448. GM_setValue("Progress_box_background_color", Progress_box_background_color = GM_getValue("Progress_box_background_color", 'DimGray'));
  1449. GM_setValue("Progress_box_item_color", Progress_box_item_color = GM_getValue("Progress_box_item_color", 'DimGray'));
  1450. GM_setValue("Progress_box_refresh_rate", Progress_box_refresh_rate = GM_getValue("Progress_box_refresh_rate", 2000));
  1451. GM_setValue("Debug_mode", DEBUG_MODE = GM_getValue("Debug_mode", false));
  1452. //hidden settings end
  1453.  
  1454. Icon_set = GM_getValue("Icon_set", 1); //0 - no icons, 1 - cat paws, 2 - old RSLC style, 3 - New Icons,
  1455. Display_tooltip_info = GM_getValue("Display_tooltip_info", true);
  1456. Show_black_background_in_DL_links = GM_getValue("Show_black_background_in_DL_links", false);
  1457. Show_line_through_in_dead_links = GM_getValue("Show_line_through_in_dead_links", false);
  1458. Display_full_links_in_link_containers = GM_getValue("Display_full_links_in_link_containers", false);
  1459. Allow_spaces_in_DL_links = GM_getValue("Allow_spaces_in_DL_links", false);
  1460. Autocheck = GM_getValue("Autocheck", true);
  1461. Enable_Anonymizer = GM_getValue("Enable_Anonymizer", false);
  1462. Do_not_linkify_DL_links = GM_getValue("Do_not_linkify_DL_links", false);
  1463. Show_progress_stats = GM_getValue("Show_progress_stats", true);
  1464. Keyboard_functions = GM_getValue("Keyboard_functions", true);
  1465. Obsolete_file_hosts = GM_getValue("Obsolete_file_hosts", false);
  1466. Color_DL_links = GM_getValue("Color_DL_links", true);
  1467. Live_links_color = GM_getValue("Live_links_color", "Green");
  1468. Dead_links_color = GM_getValue("Dead_links_color", "#FF3300");
  1469. Temp_unavailable_links_color = GM_getValue("Temp_unavailable_links_color", "#F7EF09");
  1470. Container_links_color = GM_getValue("Container_links_color", "DarkKhaki");
  1471. Premium_links_color = GM_getValue("Premium_links_color", "DeepPink");
  1472. Ref_anonymize_service = GM_getValue("Ref_anonymize_service", "http://hiderefer.com/?");
  1473. Custom_rules = GM_getValue("Custom_rules", false);
  1474. Custom_rules_text = GM_getValue("Custom_rules_text", false);
  1475. }
  1476.  
  1477.  
  1478. // Delinkifies the links
  1479. // params:
  1480. // links -> list of links or link components (note they should be sufficiently unique to identify the link on page,
  1481. // e.g. 'uloz.to/xs68skxl8')
  1482. function delinkifySnapshot(snapshot)
  1483. {
  1484. var n = snapshot.snapshotLength;
  1485.  
  1486. while (n--)
  1487. {
  1488. thisLink = snapshot.snapshotItem(n);
  1489.  
  1490. var spanElm = document.createElement("span");
  1491. spanElm.className = thisLink.className;
  1492. spanElm.innerHTML = thisLink.innerHTML;
  1493.  
  1494. if (Display_tooltip_info)
  1495. {
  1496. spanElm.href = thisLink.href;
  1497. switch (thisLink.className){
  1498. case "alive_link": spanElm.addEventListener("mouseover", displayTooltipInfo, false); break
  1499. case "adead_link": spanElm.addEventListener("mouseover", displayTooltipError, false); break;
  1500. case "unava_link": //reserved
  1501. default:
  1502. }
  1503. }
  1504. thisLink.parentNode.replaceChild(spanElm, thisLink);
  1505. }
  1506. }
  1507.  
  1508. function processContainers()
  1509. {
  1510. var redirectorTypes = { "HTTP_302": 0,
  1511. "INNER_LINK": 1,
  1512. "THELOO_KATT_IT": 2,
  1513. "CING_BE": 3,
  1514. "ADF_LY": 4};
  1515. var cMultiloadTotal = 0;
  1516. var cMultiloadProcessed = 0;
  1517.  
  1518. var cMirrorcreatorComTotal = 0;
  1519. var cMirrorcreatorComProcessed = 0;
  1520.  
  1521. var hostRestrictionRegex = "";
  1522. var multiloadComRestriction = "";
  1523. var multiloadComRestrictionRegex;
  1524.  
  1525. //
  1526. //HANDLING REDIRECTORS START
  1527. //
  1528.  
  1529. var redirectors = new Array();
  1530. initRedirectors();
  1531.  
  1532. var redirectorsCount = redirectors.length;
  1533.  
  1534. if (redirectorsCount > 0)
  1535. {
  1536. var allRedirectorsRegex = "";
  1537.  
  1538. //linkify redirector links
  1539. for(var redirIdx = 0; redirIdx < redirectorsCount; redirIdx++)
  1540. {
  1541. allRedirectorsRegex += redirectors[redirIdx].linkRegex + "|";
  1542. }
  1543. allRedirectorsRegex = allRedirectorsRegex.replace(/\|$/, "");
  1544. linkify(allRedirectorsRegex);
  1545. //
  1546. //process redirector links
  1547. for(var redirIdx = 0; redirIdx < redirectorsCount; redirIdx++)
  1548. {
  1549. var redirectorsSnapshot = document.evaluate(redirectors[redirIdx].xpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  1550. redirectors[redirIdx].cTotal = redirectorsSnapshot.snapshotLength;
  1551.  
  1552. cLinksTotal += redirectors[redirIdx].cTotal;
  1553. var linkIdx = redirectors[redirIdx].cTotal;
  1554.  
  1555. while(linkIdx--)
  1556. {
  1557. switch(redirectors[redirIdx].type)
  1558. {
  1559. case redirectorTypes.HTTP_302: processRedirectorLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1560. case redirectorTypes.INNER_LINK: processRedirectorLinkEx(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1561. case redirectorTypes.THELOO_KATT_IT: processThelooKattItLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1562. case redirectorTypes.CING_BE: processCingBeLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1563. case redirectorTypes.ADF_LY: processAdfLyLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1564. default:
  1565. }
  1566. }
  1567. }
  1568. //
  1569. }
  1570.  
  1571. //HTTP_302
  1572. function processRedirectorLink(link, redirectorId)
  1573. {
  1574. link.className = 'container_link';
  1575.  
  1576. GM_xmlhttpRequest({
  1577. method: 'HEAD',
  1578. url: link.href,
  1579. headers: {
  1580. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1581. 'Accept': 'text/xml',
  1582. 'Referer': ""
  1583. },
  1584. onload: function(result) {
  1585. if (result.finalUrl.replace("https", "http") == link.href) // service hasn't redirected anywhere
  1586. {
  1587. processRedirectorLink(link, redirectorId);
  1588. }
  1589. else
  1590. {
  1591. redirectors[redirectorId].cProcessed++;
  1592. link.href = result.finalUrl;
  1593. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  1594. checkLinks('container_link');
  1595. }
  1596. },
  1597. onerror: function(result) { //probably caused by unresponsive filehosting
  1598. redirectors[redirectorId].cProcessed++;
  1599. link.className = 'unava_link';
  1600. cLinksProcessed++;
  1601. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  1602. checkLinks('container_link');
  1603. }
  1604. });
  1605. }
  1606. //INNER_LINK
  1607. function processRedirectorLinkEx(link, redirectorId)
  1608. {
  1609. link.className = 'container_link';
  1610. GM_xmlhttpRequest({
  1611. method: 'GET',
  1612. url: link.href,
  1613. headers: {
  1614. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1615. 'Accept': 'text/xml',
  1616. 'Referer': ""
  1617. },
  1618. onload: function(result) {
  1619. link.href = result.responseText.match(redirectors[redirectorId].innerLinkRegex)[1];
  1620. redirectors[redirectorId].cProcessed++;
  1621. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  1622. checkLinks('container_link');
  1623. }
  1624. });
  1625. }
  1626. //theloo.katt.it (wrapped safelinking.net)
  1627. function processThelooKattItLink(link, redirectorId)
  1628. {
  1629. link.className = 'container_link';
  1630. GM_xmlhttpRequest({
  1631. method: 'GET',
  1632. url: link.href,
  1633. headers: {
  1634. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1635. 'Accept': 'text/xml',
  1636. 'Referer': ""
  1637. },
  1638. onload: function(result) {
  1639. link.href = result.responseText.match(redirectors[redirectorId].innerLinkRegex)[1];
  1640. redirectors[redirectorId].cProcessed++;
  1641. //the inner links are safelinking.net links, so lets proceed with it
  1642. if (GM_getValue("Check_safelinking_dot_net_links", false))
  1643. {
  1644. processRedirectorLink(link, 0);
  1645. }
  1646. }
  1647. });
  1648. }
  1649. //adf.ly (adf.ly/go innerLink, locking mechanism)
  1650. function processAdfLyLink(link, redirectorId)
  1651. {
  1652. link.className = 'container_link';
  1653. GM_xmlhttpRequest({
  1654. method: 'GET',
  1655. url: link.href,
  1656. headers: {
  1657. 'User-agent': 'Mozilla/4.0',
  1658. 'Accept': 'text/xml',
  1659. 'Referer': ""
  1660. },
  1661. onload: function(result) {
  1662. if (result.finalUrl.match('/locked/'))
  1663. {
  1664. var delay = result.responseText.match(/countdown">(\d+)</)[1];
  1665. // GM_log(result.finalUrl + 'is locked. Repeating the request in ' + delay + 's.');
  1666. // setTimeout(function(){processAdfLyLink(link, redirectorId);}, delay * 1000);
  1667. }
  1668. else
  1669. {
  1670. // GM_log('Processing... ' + link.href);
  1671. // GM_log('Found...' + result.responseText.match(/\/go\/(\w+\/\w+)/)[1]);
  1672. var directLink = 'http://adf.ly' + result.responseText.match(/(\/go\/\w+\/\w+)/)[1];
  1673. var logToken = result.responseText.match(/flashy_(\w+)/)[1];
  1674. var users = result.responseText.match(/user=\d+&user2=\d+/);
  1675. //confirm advert
  1676. GM_xmlhttpRequest(
  1677. {
  1678. method: 'POST',
  1679. url: 'http://adf.ly/l.php',
  1680. headers: {
  1681. 'User-agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20100101 Firefox/13.0',
  1682. 'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
  1683. 'Referer': link.href
  1684. },
  1685. data: users + '&lt=' + logToken,
  1686. onload: function(result) {
  1687. //retrieve final url from .../go/... link
  1688. GM_xmlhttpRequest({
  1689. method: 'GET',
  1690. url: directLink,
  1691. headers: {
  1692. 'User-agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20100101 Firefox/13.0',
  1693. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  1694. 'Referer': link.href
  1695. },
  1696. onload: function(result) {
  1697. link.href = result.finalUrl;
  1698. redirectors[redirectorId].cProcessed++;
  1699. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  1700. checkLinks('container_link');
  1701. }
  1702. });
  1703. }
  1704. });
  1705. }
  1706. }
  1707. });
  1708. function proceedOK()
  1709. {
  1710. }
  1711. }
  1712. //MULTILOAD.CZ START
  1713. if (GM_getValue("Check_multiload_dot_cz_links", false))
  1714. {
  1715. var mlRegex = 'multiload\\.cz\/stahnout\/\\d+\/';
  1716. var mlXpath = "//a[contains(@href,'http://www.multiload.cz/stahnout')]";
  1717.  
  1718. hostRestrictionRegex = 'Upload se nezdařil|limit exceeded|probíhá reupload|';
  1719.  
  1720. if (GM_getValue("Check_hellshare_dot_com_links", false))
  1721. hostRestrictionRegex += 'hellshare|';
  1722. if (GM_getValue("Check_share_dash_rapid_dot_com_links", false))
  1723. hostRestrictionRegex += 'share-rapid\\.com|';
  1724. if (GM_getValue("Check_quickshare_dot_cz_links", false))
  1725. hostRestrictionRegex += 'quickshare\\.cz|';
  1726. if (GM_getValue("Check_czshare_dot_com_links", false))
  1727. hostRestrictionRegex += 'czshare\\.com|';
  1728. if (GM_getValue("Check_uloz_dot_to_links", false))
  1729. hostRestrictionRegex += 'uloz\\.to|';
  1730. if (GM_getValue("Check_hellspy_dot_com_links", false))
  1731. hostRestrictionRegex += 'hellspy|';
  1732. if (GM_getValue("Check_multishare_dot_cz_links", false))
  1733. hostRestrictionRegex += 'multishare\\.cz|';
  1734.  
  1735. hostRestrictionRegex = hostRestrictionRegex.replace(/\|$/, "");
  1736.  
  1737. linkify(mlRegex);
  1738.  
  1739. var mlSnapshot = document.evaluate(mlXpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  1740. var mlCount = mlSnapshot.snapshotLength;
  1741.  
  1742. if (mlCount > 0)
  1743. {
  1744. cMultiloadTotal += mlCount;
  1745.  
  1746. mlIdx = mlCount - 1;
  1747. do
  1748. {
  1749. processMultiloadLink(mlSnapshot.snapshotItem(mlIdx));
  1750. }
  1751. while(mlIdx--)
  1752. }
  1753. }
  1754. //MULTILOAD.CZ END
  1755.  
  1756.  
  1757.  
  1758. function processMultiloadLink(mlLink)
  1759. {
  1760. GM_xmlhttpRequest({
  1761. method: 'GET',
  1762. url: mlLink.href,
  1763. headers: {
  1764. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1765. 'Accept': 'text/xml',
  1766. 'Referer': ""
  1767. },
  1768. onload: function(result) {
  1769. var res = result.responseText;
  1770.  
  1771. var innerBlockRegex = /<p class="manager-linky">(?:.|\s)+?<\/p>/g;
  1772. 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;
  1773. var innerLinkRegex = /((?:Upload se nezdařil.+|https?:\/\/(?:.|\s)+|Právě probíhá reupload, buďte trpěliví\.\.\.))</;
  1774. var mlRestrictionRegex = new RegExp(hostRestrictionRegex,"g"); //what links should be displayed
  1775.  
  1776. var blocks; // blocks of links
  1777. var blockIdx;
  1778.  
  1779. mlLink.className = '';
  1780.  
  1781. if (result.status == 503) //service temporarily unavailable, repeat request in one second
  1782. {
  1783. setTimeout(function(){ processMultiloadLink(mlLink); }, 1000);
  1784. return;
  1785. }
  1786.  
  1787. blocks = res.match(innerBlockRegex);
  1788.  
  1789. if (blocks == null) //no links found, cancel further processing
  1790. {
  1791. mlLink.parentNode.appendChild(document.createTextNode(' | Požadovaný soubor neexistuje.'));
  1792. cMultiloadProcessed++;
  1793. if (cMultiloadTotal <= cMultiloadProcessed)
  1794. {
  1795. startBulkCheck('container_link');
  1796. start('container_link');
  1797. }
  1798. return;
  1799. }
  1800.  
  1801. blockIdx = blocks.length;
  1802.  
  1803. if (Display_full_links_in_link_containers)
  1804. {
  1805. var ulElm = document.createElement('ul');
  1806. ulElm.className = 'container_list'; //CSS smaller font, padding, margin, square style
  1807.  
  1808. while(blockIdx--)
  1809. {
  1810. if (blocks[blockIdx].match(mlRestrictionRegex) == null)
  1811. {
  1812. continue;
  1813. }
  1814.  
  1815. var innerLinks = blocks[blockIdx].match(innerLinksRegex);
  1816.  
  1817. var linkIdx = innerLinks.length;
  1818. while (linkIdx--)
  1819. {
  1820. var innerLink = innerLinks[linkIdx].match(innerLinkRegex)[1];
  1821.  
  1822. var liElm = document.createElement('li');
  1823.  
  1824. if (innerLink.match(/Upload se nezdařil|limit exceeded|probíhá reupload/))
  1825. {
  1826. liElm.appendChild(document.createTextNode(innerLink));
  1827. }
  1828. else
  1829. {
  1830. var aElm = document.createElement('a');
  1831. aElm.innerHTML = innerLink;
  1832. aElm.href = innerLink;
  1833. aElm.className = 'container_link';
  1834.  
  1835. liElm.appendChild(aElm);
  1836. }
  1837.  
  1838. ulElm.appendChild(liElm);
  1839. cLinksTotal++;
  1840. }
  1841. }
  1842.  
  1843. mlLink.parentNode.appendChild(ulElm);
  1844. }
  1845. else //compact view
  1846. {
  1847. mlLink.parentNode.appendChild(document.createTextNode("|"));
  1848.  
  1849. while(blockIdx--)
  1850. {
  1851. if (blocks[blockIdx].match(mlRestrictionRegex) == null)
  1852. {
  1853. continue;
  1854. }
  1855.  
  1856. var innerLinks = blocks[blockIdx].match(innerLinksRegex);
  1857.  
  1858. var linkIdx = innerLinks.length;
  1859. while (linkIdx--)
  1860. {
  1861. var innerLink = innerLinks[linkIdx].match(innerLinkRegex)[1];
  1862.  
  1863. if (innerLink.match(/Upload se nezdařil|limit exceeded|probíhá reupload/))
  1864. {
  1865. mlLink.parentNode.appendChild(document.createTextNode("----"));
  1866. }
  1867. else
  1868. {
  1869. var aElm = document.createElement('a');
  1870.  
  1871. var hostName = innerLink.match(/quickshare|hellshare|uloz\.to|multishare|hellspy|share\-rapid|czshare/);
  1872.  
  1873. //abbreviate host name
  1874. switch(hostName + ""){
  1875.  
  1876. case 'quickshare': aElm.innerHTML = 'QS'; break;
  1877. case 'hellshare': aElm.innerHTML = 'HS'; break;
  1878. case 'uloz.to': aElm.innerHTML = 'UT'; break;
  1879. case 'multishare': aElm.innerHTML = 'MS'; break;
  1880. case 'hellspy': aElm.innerHTML = 'hs'; break;
  1881. case 'share-rapid': aElm.innerHTML = 'SR'; break;
  1882. case 'czshare': aElm.innerHTML = 'CS'; break;
  1883. default: aElm.innerHTML = 'xx';
  1884.  
  1885. }
  1886.  
  1887. aElm.href = innerLink;
  1888. aElm.className = 'container_link';
  1889.  
  1890. mlLink.parentNode.appendChild(aElm);
  1891. cLinksTotal++;
  1892. }
  1893. }
  1894.  
  1895. mlLink.parentNode.appendChild(document.createTextNode("|")); //blocks delimiter
  1896.  
  1897. }
  1898. }
  1899.  
  1900. cMultiloadProcessed++;
  1901. if (cMultiloadTotal == cMultiloadProcessed) //start check when all ml links have been processed
  1902. {
  1903. if (Do_not_linkify_DL_links)
  1904. {
  1905. delinkifySnapshot(mlSnapshot);
  1906. }
  1907. startBulkCheck('container_link');
  1908. start('container_link');
  1909. }
  1910. }
  1911. });
  1912. }
  1913.  
  1914.  
  1915. if (GM_getValue("Check_mirrorcreator_dot_com_links", false))
  1916. {
  1917. var mcRegex = 'mirrorcreator\\.com/files/(\\w+)';
  1918. var mcXpath = "//a[contains(@href,'mirrorcreator.com/files')]";
  1919. var mcShortHostNames =
  1920. '?? 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';
  1921. // 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
  1922. //?????? depositfiles sendspace load.to ul.to storage.to uploadbox x7.to fileserve ?????? duckload filehook filepost jumbofiles glumbouploads
  1923. // zshare ?????? 2shared uploading ugotfile extabit oron eyvx uploadstation putlocker
  1924. // megaupload badongo megashare gamefront ifile ?????? letitbit ?????? ?????? filejungle megashares
  1925. // easy-share ?????? netload zippyshare ?????? filesonic turbobit enterupload ?????? filekeen wupload crocko fileflyer
  1926.  
  1927. linkify(mcRegex);
  1928.  
  1929. var mcSnapshot = document.evaluate(mcXpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  1930. var mcCount = mcSnapshot.snapshotLength;
  1931.  
  1932. cMirrorcreatorComTotal = mcCount;
  1933.  
  1934. if (mcCount > 0)
  1935. {
  1936. mcShortHostNames = mcShortHostNames.split(' ');
  1937. mcIdx = mcCount;
  1938. while(mcIdx--)
  1939. processMirrorcreatorLink(mcSnapshot.snapshotItem(mcIdx));
  1940. }
  1941.  
  1942. }
  1943. //MIRRORCREATOR.CZ END
  1944.  
  1945.  
  1946. //mirrorcreator.com checking works like this:
  1947. //The base URL is http://www.mirrorcreator.com/files/XXXXXXXX/filename_links
  1948. //the actual list of mirrors is at http://www.mirrorcreator.com/status.php?uid=XXXXXXXX
  1949. //the list contains links in the form of (http://www.mirrorcreator.com)/redirect/XXXXXXXX/1
  1950. //these redirector links are extracted with mcLinkBlockRegex and the pages loaded
  1951. //they contain the actual filehost links, which are extracted with mcHostRegex and displayed in a container list
  1952. function processMirrorcreatorLink(mcLink)
  1953. {
  1954. var mcURL = mcLink.href.match(mcRegex);
  1955. if(!mcURL || !mcURL[1]) return;
  1956. mcURL = 'http://www.mirrorcreator.com/status.php?uid=' + mcURL[1]; //link correction
  1957. GM_xmlhttpRequest({
  1958. method: 'GET',
  1959. url: mcURL,
  1960. headers: {
  1961. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1962. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*'+'/*;q=0.8',
  1963. 'Referer': ""
  1964. },
  1965. onload: function(mcLinkResult) {
  1966. var mcLinkRes = mcLinkResult.responseText;
  1967.  
  1968. var mcLinkBlockRegex = /(\/redirect\/\w+\/(\d+))/gi;
  1969. var mcHostRegex = /<div id="redirectlink">.*?<a href="([^"]+)"/;
  1970.  
  1971. var mcRedirectors;
  1972. var mcHostURLs = [], mcRedirectorIDs = [], mcHostsFound = 0, mcHostsRetrieved = 0, mcHostsToProcess = 0;
  1973. var m = mcLinkRes.match(mcLinkBlockRegex);
  1974. if (m)
  1975. mcHostsFound = m.length;
  1976. else
  1977. { //no files inside container
  1978. processMirrorcreatorFoundHosts(mcLink, []);
  1979. return;
  1980. }
  1981.  
  1982. var mcRedirectorURL, idx, timedOut = false;
  1983.  
  1984. var gmxhrFunc = function(mcRedirectorURL){ //Tampermonkey doesn't know neither this.url or result.finalUrl
  1985. GM_xmlhttpRequest({
  1986. method: 'GET',
  1987. url: mcRedirectorURL,
  1988. headers: {
  1989. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1990. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*'+'/*;q=0.8',
  1991. 'Referer': ""
  1992. },
  1993. onload: function(mcHostResult) {
  1994. if (timedOut) return; //too late, the list is already displayed
  1995. var mcHostRes = mcHostResult.responseText;
  1996. var mcHost = mcHostRes.match(mcHostRegex);
  1997. idx = mcHostURLs.indexOf(mcRedirectorURL);
  1998. if (mcHost && idx!=-1)
  1999. {
  2000. mcHostURLs[idx] = mcHost[1].replace(/^\s+|\s+$/g, '');
  2001. mcHostsRetrieved++;
  2002. mcHostsToProcess++;
  2003. if (mcHostsFound == mcHostsRetrieved) //this is the last one!
  2004. {
  2005. processMirrorcreatorFoundHosts(mcLink, mcHostURLs, mcRedirectorIDs);
  2006. mcHostsToProcess = 0;
  2007. }
  2008. }
  2009. } //end of onload: function
  2010. }); //end of GM_xmlhttpRequest call
  2011. };//end of var gmxhrFunc
  2012.  
  2013. while (mcRedirectors = mcLinkBlockRegex.exec(mcLinkRes))
  2014. { //load individual redirector pages
  2015. mcRedirectorURL = 'http://www.mirrorcreator.com' + mcRedirectors[1];
  2016. mcHostURLs.push(mcRedirectorURL);
  2017. mcRedirectorIDs.push(mcRedirectors[2]);
  2018. gmxhrFunc(mcRedirectorURL);
  2019. } //end of while block
  2020.  
  2021. setTimeout(function(){ //in case the last page fails to load and call the function
  2022. timedOut = true;
  2023. if (mcHostsToProcess)
  2024. processMirrorcreatorFoundHosts(mcLink, mcHostURLs);
  2025. }, 60000);
  2026.  
  2027. } //end of onload function
  2028. }); //end of GM_xmlhttpRequest call
  2029. } //end of function processMirrorcreatorLink
  2030.  
  2031.  
  2032. function processMirrorcreatorFoundHosts(mcLink, mcHostURLs, mcRedirectorIDs)
  2033. {
  2034. var aEl, liEl, docFrag;
  2035. var hostName, mcRedirectorID, trimFilename = false;
  2036. var i = mcHostURLs.length;
  2037. if (i == 0)
  2038. {
  2039. trimFilename = true;
  2040. mcLink.parentNode.insertBefore(document.createTextNode(' | No files inside container'), mcLink.nextSibling);
  2041. }
  2042. else
  2043. {
  2044. if (Display_full_links_in_link_containers)
  2045. { //full view
  2046. var wrapperEl = document.createElement('span');
  2047. wrapperEl.style.display = 'block';
  2048. var ulistEl = document.createElement('ul');
  2049. ulistEl.className = 'container_list';
  2050. while (i--)
  2051. {
  2052. liEl = document.createElement('li');
  2053. aEl = document.createElement('a');
  2054. aEl.appendChild(document.createTextNode(mcHostURLs[i]));
  2055. aEl.href = mcHostURLs[i];
  2056. aEl.className = 'container_link';
  2057. liEl.appendChild(aEl);
  2058. ulistEl.appendChild(liEl);
  2059. }
  2060. wrapperEl.appendChild(ulistEl);
  2061. mcLink.parentNode.replaceChild(wrapperEl, mcLink);
  2062. wrapperEl.insertBefore(mcLink, wrapperEl.firstChild);
  2063. }
  2064. else
  2065. { //compact view
  2066. trimFilename = true;
  2067. docFrag = document.createDocumentFragment();
  2068. docFrag.appendChild(document.createTextNode(' |'));
  2069. while (i--)
  2070. {
  2071. mcRedirectorID = mcRedirectorIDs[i];
  2072. hostName = mcHostURLs[i];
  2073. if (mcRedirectorID > mcShortHostNames.length-1 || mcShortHostNames[mcRedirectorID] == '??')
  2074. hostName = hostName.replace(/https?:\/\/(?:www\.)?([-0-9a-z]+(?:\.[-0-9a-z]+)?)\.[a-z]+\/.*/i, '$1').toUpperCase();
  2075. else
  2076. hostName = mcShortHostNames[mcRedirectorID];
  2077. aEl = document.createElement('a');
  2078. aEl.href = mcHostURLs[i];
  2079. aEl.className = 'container_link';
  2080. aEl.appendChild(document.createTextNode(hostName));
  2081. docFrag.appendChild(aEl);
  2082. docFrag.appendChild(document.createTextNode('|'));
  2083. }
  2084. mcLink.parentNode.insertBefore(docFrag, mcLink.nextSibling);
  2085. } //end of else block
  2086. } //end of else block
  2087. mcLink.className = '';
  2088. if (trimFilename)
  2089. mcLink.firstChild.nodeValue = mcLink.firstChild.nodeValue.replace(/(https?:\/\/[^\/]+\/files\/\w+\/).+/, '$1...');
  2090. cMirrorcreatorComProcessed++;
  2091. if (cMirrorcreatorComProcessed == cMirrorcreatorComTotal) //start check when all mc links have been processed
  2092. {
  2093. if (Do_not_linkify_DL_links)
  2094. delinkifySnapshot(mcSnapshot);
  2095. startBulkCheck('container_link');
  2096. start('container_link');
  2097. }
  2098. } //end of function processMirrorcreatorFoundHosts
  2099.  
  2100. containers_processed = true;
  2101.  
  2102.  
  2103. function initRedirectors()
  2104. {
  2105. function addRedirector(linkRegex, xpathEx, redirType, innerLinkRegex)
  2106. {
  2107. var redirector = new Object();
  2108. redirector.linkRegex = linkRegex;
  2109. redirector.xpath = xpathEx; //xpath expression
  2110. redirector.cProcessed = 0; //processed links count
  2111. redirector.cTotal = 0; //total links count
  2112. redirector.type = redirType; //redirectorTypes enum
  2113. redirector.innerLinkRegex = innerLinkRegex; //innerLink, null if unused
  2114. redirectors.push(redirector);
  2115. }
  2116. if (GM_getValue("Check_safelinking_dot_net_links", false))
  2117. {
  2118. addRedirector(
  2119. 'safelinking\\.net\/d\/\\w+',
  2120. "//a[contains(@href,'safelinking.net/d/')]",
  2121. redirectorTypes.HTTP_302,
  2122. null);
  2123. }
  2124. if (GM_getValue("Check_linksafe_dot_me_links", false))
  2125. {
  2126. addRedirector(
  2127. 'linksafe\\.me\/d\/\\w+',
  2128. "//a[contains(@href,'linksafe.me/d/')]",
  2129. redirectorTypes.HTTP_302,
  2130. null);
  2131. }
  2132. if (GM_getValue("Check_linkto_dot_net_links", false))
  2133. {
  2134. addRedirector(
  2135. 'linkto\\.net\/\\?\\w+\\.\\d+',
  2136. "//a[contains(@href,'linkto.net/?')]",
  2137. redirectorTypes.INNER_LINK,
  2138. /<iframe id="iframe" name="iframe" src="(.+?)\s*" frameborder="0"/);
  2139. }
  2140. if (GM_getValue("Check_theloo_dot_katt_dot_it_links", false))
  2141. {
  2142. addRedirector(
  2143. '(?:the)?loo\\.katt\\.it\/\\w+',
  2144. "//a[contains(@href,'loo.katt.it/')]",
  2145. redirectorTypes.THELOO_KATT_IT,
  2146. /Proceed to URL - <a href="(.+?)">/);
  2147. }
  2148. if (GM_getValue("Check_madlink_dot_sk_links", false))
  2149. {
  2150. addRedirector(
  2151. 'madlink\\.sk\/\\w+',
  2152. "//a[contains(@href,'madlink.sk/')]",
  2153. redirectorTypes.INNER_LINK,
  2154. /name="url" value="(.+?)\s*"\/>/);
  2155. }
  2156. if (GM_getValue("Check_adf_dot_ly_links", false))
  2157. {
  2158. addRedirector(
  2159. '(?:adf\\.ly|[u9]\\.bb|[qj]\\.gs)\/\\w+',
  2160. "//a[contains(@href,'adf.ly/') (@href,'u.bb/') or contains(@href,'9.bb/') or contains(@href,'q.gs/') or contains(@href,'j.gs/')]",
  2161. redirectorTypes.ADF_LY,
  2162. null);
  2163. }
  2164. if (GM_getValue("Check_redi_dot_re_links", false))
  2165. {
  2166. addRedirector(
  2167. 'redi\\.re\/\\w+',
  2168. "//a[contains(@href,'redi.re/')]",
  2169. redirectorTypes.HTTP_302,
  2170. null);
  2171. }
  2172. if (GM_getValue("Check_bit_dot_ly_links", false))
  2173. {
  2174. addRedirector(
  2175. 'bit\\.ly\/\\w+',
  2176. "//a[contains(@href,'bit.ly/')]",
  2177. redirectorTypes.HTTP_302,
  2178. null);
  2179. }
  2180. }
  2181.  
  2182. }
  2183.  
  2184. var bulkHosts = new Array();
  2185. var bulkHostNames = new Array();
  2186. function initBulkCheck()
  2187. {
  2188. /////////////////////////////
  2189. // Inits filehost object
  2190. /////////////////////////////
  2191. // params :
  2192. // hostName -- [string] host name (multiple domains separated with coma)
  2193. // linkRegex -- [string] link regex
  2194. // xpath -- [string] xpath expression to detect the link objects with evaluate
  2195. // blockSize -- [integer] max. number of links sent in one request, 50 if null
  2196. // corrMatch -- [regex] link correction regex (match), applied prior to corrRepl
  2197. // corrReplWhat -- [regex] link correction regex (replace)
  2198. // corrReplWith -- [string]
  2199. // splitSeparator -- [string] POSTDATA links separator, "\r\n" if null
  2200. //
  2201. // apiUrl -- [string] web linkchecker or API URL
  2202. // postData -- [string] POSTDATA of xmlhttprequest
  2203. // resLinkRegex -- [regex]
  2204. // resLiveRegex -- [regex] matches substrings containing live links in the request response
  2205. // resDeadRegex -- [regex] matches substrings containing dead links in the request response
  2206. // resUnavaRegex -- [regex] matches substrings containing unava links in the request response
  2207. // func -- [function] bulkcheck handler, genBulkCheck if null
  2208. //
  2209. //////////////////////////////
  2210. function addHost(hostName, linkRegex, xpath, blockSize, corrMatch, corrReplWhat, corrReplWith, splitSeparator,
  2211. apiUrl, postData, resLinkRegex, resLiveRegex, resDeadRegex, resUnavaRegex, func)
  2212. {
  2213. var fileHost = new Object();
  2214.  
  2215. fileHost.linkRegex = linkRegex;
  2216. fileHost.linkRegexObject = new RegExp(linkRegex, "");
  2217. fileHost.xpath = xpath;
  2218. fileHost.cFound = 0; //found links counter
  2219. fileHost.links = new Array(); //found links
  2220. if (blockSize == null)
  2221. {
  2222. fileHost.blockSize = 50;
  2223. }
  2224. else
  2225. {
  2226. fileHost.blockSize = blockSize;
  2227. }
  2228. fileHost.corrMatch = corrMatch;
  2229. fileHost.corrReplWhat = corrReplWhat;
  2230. fileHost.corrReplWith = corrReplWith;
  2231. if (splitSeparator == null)
  2232. {
  2233. fileHost.splitSeparator = "\r\n";
  2234. }
  2235. else
  2236. {
  2237. fileHost.splitSeparator = splitSeparator;
  2238. }
  2239. fileHost.apiUrl = apiUrl;
  2240. fileHost.postData = postData;
  2241. fileHost.resLinkRegex = resLinkRegex;
  2242. fileHost.resLiveRegex = resLiveRegex;
  2243. fileHost.resDeadRegex = resDeadRegex;
  2244. fileHost.resUnavaRegex = resUnavaRegex;
  2245. if (func == null)
  2246. {
  2247. fileHost.func = genBulkCheck;
  2248. }
  2249. else
  2250. {
  2251. fileHost.func = func;
  2252. }
  2253. bulkHosts.push(fileHost);
  2254. var names = hostName.split(',');
  2255. var i = names.length;
  2256. while(i--)
  2257. {
  2258. bulkHostNames[names[i]] = fileHost;
  2259. }
  2260. }
  2261. var genType1 = [
  2262. "rodfile.com", "downloadani.me", //"migahost.com",
  2263. "rarefile.net",
  2264. "filesabc.com",
  2265. "180upload.com", "verzend.be",
  2266. // "movreel.com",
  2267. "4up.me",
  2268. "file4safe.com", "filemac.com", "4upfiles.com",
  2269. "idup.in", "novafile.com", "longfiles.com",
  2270. "bitupload.com",
  2271. "uploadbaz.com"
  2272. ];
  2273. var genType2 = [ "queenshare.com",
  2274. "hulkload.com",
  2275. "amonshare.com", //"edoc.com",
  2276. ];
  2277. //xfilesharing 1.0
  2278. function addGenericType1()
  2279. {
  2280. var i = genType1.length;
  2281. while(i--)
  2282. {
  2283. if (GM_getValue("Check_" + genType1[i].replace(/\./g, "_dot_").replace(/-/g, "_dash_") + "_links", false))
  2284. {
  2285. var regexSafe = genType1[i].replace(/\./g, "\\.").replace(/-/g, "\\-");
  2286. addHost(
  2287. genType1[i].match(/[\w-]+/)[0], //hostname
  2288. regexSafe + "\/\\w+", //linkregex
  2289. "//a[contains(@href,'" + genType1[i] + "/')]", //xpath
  2290. null, //blocksize
  2291. new RegExp("(http:\/\/(?:|www\\.)" + regexSafe + "\/\\w+)",""),//, //corrmatch
  2292. null, //corrreplwhat
  2293. null, //corrreplwith
  2294. null, //separator
  2295. "http://" + genType1[i] + "/checkfiles.html", //api url
  2296. "op=checkfiles&process=Check+URLs&list=", //postdata
  2297. new RegExp("(" + regexSafe + "\/\\w+)",""), //linkregex
  2298. new RegExp("green'>http:\/\/(?:|www\.)" + regexSafe + "\/\\w+","g"), //liveregex
  2299. new RegExp("red'>http:\/\/(?:|www\.)" + regexSafe + "\/\\w+","g"), //deadregex
  2300. new RegExp("orange'>http:\/\/(?:|www\.)" + regexSafe + "\/\\w+","g"), //unavaregex
  2301. null //function delegate
  2302. )
  2303. }
  2304. }
  2305. }
  2306. //xfilesharing 2.0
  2307. function addGenericType2()
  2308. {
  2309. var i = genType2.length;
  2310. while(i--)
  2311. {
  2312. if (GM_getValue("Check_" + genType2[i].replace(/\./g, "_dot_").replace(/-/g, "_dash_") + "_links", false))
  2313. {
  2314. var regexSafe = genType2[i].replace(/\./g, "\\.").replace(/-/g, "\\-");
  2315. addHost(
  2316. genType2[i].match(/[\w-]+/)[0], //hostname
  2317. regexSafe + "\/\\w+", //linkregex
  2318. "//a[contains(@href,'" + genType2[i] + "/')]", //xpath
  2319. null, //blocksize
  2320. new RegExp("(http:\/\/(?:|www\\.)" + regexSafe + "\/\\w+)",""),//, //corrmatch
  2321. null, //corrreplwhat
  2322. null, //corrreplwith
  2323. null, //separator
  2324. "http://www." + genType2[i] + "/?op=checkfiles", //api url
  2325. "op=checkfiles&process=Check+URLs&list=", //postdata
  2326. new RegExp("(" + regexSafe + "\/\\w+)",""), //linkregex
  2327. new RegExp(regexSafe + "\/\\w+.*?<\/td>\\s*<td style=\"color:green;\">","g"), //liveregex
  2328. new RegExp(regexSafe + "\/\\w+.*?<\/td>\\s*<td style=\"color:red;\">","g"), //deadregex
  2329. new RegExp(regexSafe + "\/\\w+.*?<\/td>\\s*<td style=\"color:orange;\">","g"), //unavaregex
  2330. null //function delegate
  2331. )
  2332. }
  2333. }
  2334. }
  2335. // TEMPLATE
  2336. // if (GM_getValue("Check__dot_com_links", false))
  2337. // {
  2338. // addHost(
  2339. // "", //hostname
  2340. // "", //linkregex
  2341. // "//a[contains(@href,'.com/')]", //xpath
  2342. // null, //blocksize
  2343. // null, //corrmatch
  2344. // null, //corrreplwhat
  2345. // null, //corrreplwith
  2346. // null, //separator
  2347. // "", //api url
  2348. // "", //postdata
  2349. // /()/, //linkregex
  2350. // //liveregex
  2351. // //deadregex
  2352. // //unavaregex
  2353. // null //function delegate
  2354. // )
  2355. // }
  2356. addGenericType1();
  2357. addGenericType2();
  2358.  
  2359. if (GM_getValue("Check_myvdrive_dot_com_links", false))
  2360. {
  2361. addHost(
  2362. "myvdrive,fileserving", //hostname
  2363. "(?:fileserving|myvdrive)\\.com\/files\/[\\w-]+", //linkregex
  2364. "//a[contains(@href,'fileserving.com/files') or contains(@href,'myvdrive.com/files')]", //xpath
  2365. null, //blocksize
  2366. null, //corrmatch
  2367. null, //corrreplwhat
  2368. null, //corrreplwith
  2369. null, //separator
  2370. "http://www.myvdrive.com/Public/linkchecker#", //api url
  2371. "links=", //postdata
  2372. /(?:fileserving|myvdrive)\.com\/(files\/\w+)/, //linkregex
  2373. /icon_file_check_valid"><\/span>\s*http:\/\/www\.(?:fileserving|myvdrive)\.com\/files\/[\w-]+/g, //liveregex
  2374. /icon_file_check_(?:removed|notvalid)"><\/span>\s*http:\/\/www\.(?:fileserving|myvdrive)\.com\/files\/[\w-]+/g, //deadregex
  2375. null, //unavaregex
  2376. null //function delegate
  2377. )
  2378. }
  2379. if (GM_getValue("Check_hackerbox_dot_org_links", false))
  2380. {
  2381. addHost(
  2382. "hackerbox", //hostname
  2383. "host\\.hackerbox\\.org\/\\w+", //linkregex
  2384. "//a[contains(@href,'host.hackerbox.org/')]", //xpath
  2385. null, //blocksize
  2386. /(http:\/\/host\.hackerbox\.org\/\w+)/, //corrmatch
  2387. null, //corrreplwhat
  2388. null, //corrreplwith
  2389. null, //separator
  2390. "http://host.hackerbox.org/checkfiles.html", //api url
  2391. "op=checkfiles&process=Check+URLs&list=", //postdata
  2392. /(host\.hackerbox\.org\/\w+)/, //linkregex
  2393. /green'>http:\/\/host\.hackerbox\.org\/\w+/g, //liveregex
  2394. /red'>http:\/\/host\.hackerbox\.org\/\w+/g, //deadregex
  2395. /orange'>http:\/\/host\.hackerbox\.org\/\w+/g, //unavaregex
  2396. null //function delegate
  2397. )
  2398. }
  2399. if (GM_getValue("Check_hellshare_dot_com_links", false))
  2400. {
  2401. addHost(
  2402. "hellshare", //hostname
  2403. "(?:|download\\.(?:cz\\.|en\\.|sk\\.|)|www\\.)hellshare\\.(?:com|sk|cz|pl|hu|COM|SK|CZ|PL|HU)\/[\\w-\\.]+\/(?:[\\w-\\.]+\/|)\\d{5,}", //linkregex
  2404. "//a[contains(@href,'hellshare.')]", //xpath
  2405. 48, //blocksize
  2406. null, //corrmatch
  2407. null, //corrreplwhat
  2408. null, //corrreplwith
  2409. null, //separator
  2410. null, //api url
  2411. null, //postdata
  2412. null, //linkregex
  2413. null, //liveregex
  2414. null, //deadregex
  2415. null, //unavaregex
  2416. hellshareBulkCheck //function delegate
  2417. )
  2418. }
  2419. if (GM_getValue("Check_ncrypt_dot_in_links", false))
  2420. {
  2421. addHost(
  2422. "ncrypt", //hostname
  2423. "ncrypt\\.in\/folder\\-\\w+", //linkregex
  2424. "//a[contains(@href,'ncrypt.in/folder')]", //xpath
  2425. 100000, //blocksize
  2426. null, //corrmatch
  2427. null, //corrreplwhat
  2428. null, //corrreplwith
  2429. null, //separator
  2430. null,
  2431. null,
  2432. null,
  2433. null,
  2434. null,
  2435. null,
  2436. ncryptBulkCheck //function delegate
  2437. )
  2438. }
  2439. if (GM_getValue("Check_geupload_dot_com_links", false))
  2440. {
  2441. addHost(
  2442. "geupload,lenfile", //hostname
  2443. "(?:geupload\\.com|lenfile\\.com)\/\\w+", //linkregex
  2444. "//a[contains(@href,'geupload.com/') or contains(@href,'lenfile.com/')]", //xpath
  2445. null, //blocksize
  2446. null, //corrmatch
  2447. null, //corrreplwhat
  2448. null, //corrreplwith
  2449. "\n", //separator
  2450. 'http://geupload.com/?op=checkfiles',
  2451. 'op=checkfiles&process=Check+URLs&list=',
  2452. />http:\/\/(?:geupload|lenfile)\.com\/(\w+)/,
  2453. />http:\/\/(?:geupload|lenfile)\.com\/\w+(?:[^>]+>)<td style=\"color\:green/g,
  2454. />http:\/\/(?:geupload|lenfile)\.com\/\w+(?:[^>]+>)<td style=\"color\:red/g,
  2455. null,
  2456. null
  2457. )
  2458. }
  2459. if (GM_getValue("Check_uploadrocket_dot_net_links", false))
  2460. {
  2461. addHost(
  2462. "uploadrocket", //hostname
  2463. "(?:uploadrocket\\.net)\/\\w+", //linkregex
  2464. "//a[contains(@href,'uploadrocket.net/')]", //xpath
  2465. null, //blocksize
  2466. null, //corrmatch
  2467. null, //corrreplwhat
  2468. null, //corrreplwith
  2469. "\n", //separator
  2470. 'http://uploadrocket.net/?op=checkfiles',
  2471. 'op=checkfiles&process=Check+URLs&list=',
  2472. /uploadrocket.net\/(\w+)/,
  2473. />http:\/\/uploadrocket.net\/\w+(?:[^>]+>)<td style="color:green/g,
  2474. />http:\/\/uploadrocket.net\/\w+(?:[^>]+>)<td style="color:red/g,
  2475. null,
  2476. null //function delegate
  2477. )
  2478. }
  2479. if (GM_getValue("Check_k2s_dot_cc_links", false))
  2480. {
  2481. addHost(
  2482. "k2s,keep2s,keep2share",
  2483. "(?:(?:k2s\\.cc)|(?:keep2s\\.cc)|(?:keep2share\\.(?:cc|com)))\/file\/\\w+",
  2484. "//a[contains(@href,'k2s.cc/file/') or contains(@href,'keep2s.cc/file/') or contains(@href,'keep2share.cc/file/') or contains(@href,'keep2share.com/file/')]",
  2485. 100000, //blocksize
  2486. null, //corrmatch
  2487. null, //corrreplwhat
  2488. null, //corrreplwith
  2489. null, //separator
  2490. null,
  2491. null,
  2492. null,
  2493. null,
  2494. null,
  2495. null,
  2496. k2sBulkCheck //function delegate
  2497. )
  2498. }
  2499. if (GM_getValue("Check_fboom_dot_me_links", false))
  2500. {
  2501. addHost(
  2502. "fboom,fileboom",
  2503. "(?:(?:fboom\\.me)|(?:fileboom\\.me))\/file\/\\w+",
  2504. "//a[contains(@href,'fboom.me/file/') or contains(@href,'fileboom.me/file/')]",
  2505. 100000, //blocksize
  2506. null, //corrmatch
  2507. null, //corrreplwhat
  2508. null, //corrreplwith
  2509. null, //separator
  2510. null,
  2511. null,
  2512. null,
  2513. null,
  2514. null,
  2515. null,
  2516. fboomBulkCheck //function delegate
  2517. )
  2518. }
  2519. if (GM_getValue("Check_1fichier_dot_com_links", false))
  2520. {
  2521. addHost(
  2522. "1fichier,dl4free",
  2523. "(?:\\w{10}\\.(?:1fichier|dl4free)\\.com\/)|(?:(?:1fichier|dl4free)\\.com\/\\?\\w{10})|(?:www\\.)?\\w{6,}\\.1fichier\\.com",
  2524. "//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/?')]",
  2525. 100000, //blocksize
  2526. null, //corrmatch
  2527. null, //corrreplwhat
  2528. null, //corrreplwith
  2529. null, //separator
  2530. null,
  2531. null,
  2532. null,
  2533. null,
  2534. null,
  2535. null,
  2536. dl4free_1fichier_BulkCheck //function delegate
  2537. )
  2538. }
  2539. if (GM_getValue("Check_depositfiles_dot_com_links", false))
  2540. {
  2541. addHost(
  2542. "depositfiles,dfiles",
  2543. "(?:(?:depositfiles\\.(?:com|org|lt))|(?:dfiles\\.(?:ru|eu)))\/files\/|en/files\/\\w+",
  2544. "//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/')]",
  2545. 100000, //blocksize
  2546. null, //corrmatch
  2547. null, //corrreplwhat
  2548. null, //corrreplwith
  2549. null, //separator
  2550. null,
  2551. null,
  2552. null,
  2553. null,
  2554. null,
  2555. null,
  2556. depositfilesBulkCheck //function delegate
  2557. )
  2558. }
  2559. if (GM_getValue("Check_filepost_dot_com_links", false))
  2560. {
  2561. addHost(
  2562. "filepost,fp", //hostname
  2563. "(?:filepost\\.com\/files|fp\\.io)\/\\w+", //linkregex
  2564. "//a[contains(@href,'filepost.com/files/') or contains(@href,'fp.io/')]", //xpath
  2565. null, //blocksize
  2566. null, //corrmatch
  2567. null, //corrreplwhat
  2568. null, //corrreplwith
  2569. "\n", //separator
  2570. 'http://filepost.com/files/checker/?JsHttpRequest=0-xml',
  2571. 'urls=',
  2572. /\\\/files\\\/(\w+)/,
  2573. />http:\\\/\\\/filepost\.com\\\/files\\\/\w+(?:[^>]+>){5}(?:\\n|\\t)+<span class=\\"v\\"/g,
  2574. />http:\\\/\\\/filepost\.com\\\/files\\\/\w+(?:[^>]+>){5}(?:\\n|\\t)+<span class=\\"x\\"/g,
  2575. null,
  2576. null //function delegate
  2577. )
  2578. }
  2579. if (GM_getValue("Check_filesflash_dot_com_links", false))
  2580. {
  2581. addHost(
  2582. "filesflash", //hostname
  2583. "filesflash\\.com\/\\w+", //linkregex
  2584. "//a[contains(@href,'filesflash.com')]", //xpath
  2585. null, //blocksize
  2586. null, //corrmatch
  2587. /http:\/\//, //corrreplwhat
  2588. '', //corrreplwith
  2589. null, //separator
  2590. 'http://filesflash.com/checklinks.php',
  2591. 'submit=Go&links=',
  2592. /filesflash\.com\/(\w+)/,
  2593. /<td>filesflash\.com\/\w+<\/td>\s*<td>Available/g,
  2594. /<td>filesflash\.com\/\w+<\/td>\s*<td>(?:Invalid|Deleted|Expired|Banned)?<\/td>/g,
  2595. null,
  2596. null //function delegate
  2597. )
  2598. }
  2599. if (GM_getValue("Check_jumbofiles_dot_com_links", false))
  2600. {
  2601. addHost(
  2602. "jumbofiles", //hostname
  2603. "jumbofiles\\.com\/\\w+", //linkregex
  2604. "//a[contains(@href,'jumbofiles.com/')]", //xpath
  2605. null, //blocksize
  2606. /(http:\/\/(?:|www\.)jumbofiles\.com\/\w+)/, //corrmatch
  2607. null, //corrreplwhat
  2608. null, //corrreplwith
  2609. null, //separator
  2610. "http://jumbofiles.com/checkfiles.html", //api url
  2611. "op=checkfiles&process=Check+URLs&list=", //postdata
  2612. /(jumbofiles\.com\/\w+)/, //linkregex
  2613. /blue'>http:\/\/(?:|www\.)jumbofiles\.com\/\w+/g, //liveregex
  2614. /red'>http:\/\/(?:|www\.)jumbofiles\.com\/\w+/g, //deadregex
  2615. /orange'>http:\/\/(?:|www\.)jumbofiles\.com\/\w+/g, //unavaregex
  2616. null //function delegate
  2617. )
  2618. }
  2619. if (GM_getValue("Check_edisk_dot_cz_links", false))
  2620. {
  2621. addHost(
  2622. "edisk", //hostname
  2623. "(?:(?:muj|data)\\d*\\.|)edisk\\.(?:cz|sk|eu)\/(?:|(?:cz|sk|en|pl)\/)", //linkregex
  2624. "//a[contains(@href,'edisk.')]", //xpath
  2625. null, //blocksize
  2626. null, //corrmatch
  2627. /edisk\.\w{2}\/(?:|\w{2}\/)stahni/, //corrreplwhat
  2628. 'edisk.cz/stahni', //corrreplwith
  2629. null, //separator
  2630. 'http://www.edisk.cz/zkontrolovat-odkazy',
  2631. 'submitBtn=Zkontrolovat&checkFiles=',
  2632. /((?:download|stahn(?:i|out-soubor))\/\d+)/,
  2633. /"ano"\/>\s*<\/td>\s*<td>\s*http:\/\/.+/g,
  2634. /"ne"\/>\s*<\/td>\s*<td>\s*http:\/\/.+/g,
  2635. null,
  2636. null //function delegate
  2637. )
  2638. }
  2639. if (GM_getValue("Check_bezvadata_dot_cz_links", false))
  2640. {
  2641. GM_xmlhttpRequest( //age check skip
  2642. {
  2643. method: 'POST',
  2644. url: 'http://bezvadata.cz/vyhledavani/souhlas-zavadny-obsah',
  2645. headers: {
  2646. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  2647. 'Content-type': 'application/x-www-form-urlencoded',
  2648. 'Referer': ""
  2649. }
  2650. });
  2651. addHost(
  2652. "bezvadata", //hostname
  2653. "(?:beta\\.|)bezvadata\.cz\/stahnout\/\\d+\\w+", //linkregex
  2654. "//a[contains(@href,'bezvadata.cz')]", //xpath
  2655. null, //blocksize
  2656. null, //corrmatch
  2657. null, //corrreplwhat
  2658. null, //corrreplwith
  2659. null, //separator
  2660. 'http://bezvadata.cz/nastroje/kontrola-odkazu?do=kontrolaOdkazuForm-submit',
  2661. 'zkontrolovat=Zkontrolovat&odkazy=',
  2662. /(bezvadata\.cz\/stahnout\/\d+)/,
  2663. /bezvadata\.cz\/stahnout\/.+?<\/td>\s*<td style="background-color: #d9ffb2/g,
  2664. /bezvadata\.cz\/stahnout\/.+?<\/td>\s*<td style="background-color: #ffb2b2/g,
  2665. null,
  2666. null //function delegate
  2667. )
  2668. }
  2669. if (GM_getValue("Check_linkcrypt_dot_ws_links", false))
  2670. {
  2671. addHost(
  2672. "linkcrypt", //hostname
  2673. "linkcrypt\\.ws\/dir\/\\w+", //linkregex
  2674. "//a[contains(@href,'linkcrypt.ws/dir')]", //xpath
  2675. 100000, //blocksize
  2676. null, //corrmatch
  2677. null, //corrreplwhat
  2678. null, //corrreplwith
  2679. null, //separator
  2680. null,
  2681. null,
  2682. null,
  2683. null,
  2684. null,
  2685. null,
  2686. linkcryptBulkCheck //function delegate
  2687. )
  2688. }
  2689. if (GM_getValue("Check_linksave_dot_in_links", false))
  2690. {
  2691. addHost(
  2692. "linksave", //hostname
  2693. "linksave\\.in\/\\w+", //linkregex
  2694. "//a[contains(@href,'linksave.in')]", //xpath
  2695. 100000, //blocksize
  2696. null, //corrmatch
  2697. null, //corrreplwhat
  2698. null, //corrreplwith
  2699. null, //separator
  2700. null,
  2701. null,
  2702. null,
  2703. null,
  2704. null,
  2705. null,
  2706. linksaveBulkCheck //function delegate
  2707. )
  2708. }
  2709. if (GM_getValue("Check_videobb_dot_com_links", false))
  2710. {
  2711. addHost(
  2712. "videobb", //hostname
  2713. "videobb\\.com\/(?:video\/|watch_video\\.php\\?v=)\\w+", //linkregex
  2714. "//a[contains(@href,'videobb.com')]", //xpath
  2715. null, //blocksize
  2716. null, //corrmatch
  2717. /watch_video\.php\?v=/, //corrreplwhat
  2718. 'video/', //corrreplwith
  2719. null, //separator
  2720. 'http://www.videobb.com/link_checker.php',
  2721. 'links=',
  2722. /videobb\.com\/video\/(\w+)/,
  2723. /<td>http:\/\/(?:www\.|)videobb.com\/video\/\w+<\/td>\s+<td>.+?<\/td>\s+<td>\d+:\d+<\/td>\s+<td>Available/g,
  2724. /<td>http:\/\/(?:www\.|)videobb.com\/video\/\w+<\/td>\s+<td><\/td>\s+<td>N\/A<\/td>\s+<td>Not Available/g,
  2725. null,
  2726. null //function delegate
  2727. )
  2728. }
  2729. /* if (GM_getValue("Check_cramit_dot_in_links", false))
  2730. {
  2731. addHost(
  2732. "cramit,cramitin", //hostname
  2733. "cramit(?:\\.in|in\\.net)\/", //linkregex
  2734. "//a[contains(@href,'cramitin.net') or contains(@href,'cramit.in')]", //xpath
  2735. null, //blocksize
  2736. null, //corrmatch
  2737. null, //corrreplwhat
  2738. null, //corrreplwith
  2739. null, //separator
  2740. 'http://cramit.in/checkfiles.html',
  2741. 'op=checkfiles&process=CHECK+URL%27S&list=',
  2742. /(cramit(?:\.in|in\.net)\/\w+)/,
  2743. /green>http:\/\/(?:www\.|)cramit(?:\.in|in\.net)\/\w+/g,
  2744. /red'>http:\/\/(?:www\.|)cramit(?:\.in|in\.net)\/\w+/g,
  2745. /orange'>http:\/\/(?:www\.|)cramit(?:\.in|in\.net)\/\w+/g,
  2746. null //function delegate
  2747. )
  2748. }
  2749. if (GM_getValue("Check_turbobit_dot_net_links", false))
  2750. {
  2751. addHost(
  2752. "turbobit", //hostname
  2753. "turbobit\\.(?:net|pl)\/(?:\\w+\/|).+?\\.html", //linkregex
  2754. "//a[contains(@href,'turbobit.')]", //xpath
  2755. null, //blocksize
  2756. /(turbobit\.(?:net|pl)\/(?:\w+\/|).+?\.html)/, //corrmatch
  2757. null, //corrreplwhat
  2758. null, //corrreplwith
  2759. "\n", //separator
  2760. 'http://turbobit.net/linkchecker/csv',
  2761. 'links_to_check=',
  2762. /(turbobit\.(?:net|pl)\/\w+)/,
  2763. /turbobit\.(?:net|pl)\/.*?, 1/g,
  2764. /turbobit\.(?:net|pl)\/.*?, 0/g,
  2765. null,
  2766. null //function delegate
  2767. )
  2768. } */
  2769. if (GM_getValue("Check_filerio_dot_com_links", false))
  2770. {
  2771. addHost(
  2772. "filekeen,filerio", //hostname
  2773. //"file(?:keen|rio)\\.(?:com|in)\/\\w+\/.", //linkregex
  2774. "file(?:keen|rio)\\.(?:com|in)\/\\w+", //linkregex
  2775. "//a[contains(@href,'filekeen.com') or contains(@href,'filerio.')]", //xpath
  2776. null, //blocksize
  2777. null, //corrmatch
  2778. null, //corrreplwhat
  2779. null, //corrreplwith
  2780. null, //separator
  2781. 'http://filerio.in/checkfiles.html',
  2782. 'op=checkfiles&process=Check+URLs&list=',
  2783. /(file(?:keen|rio)\.(?:com|in)\/\w+)/,
  2784. /green'>http:\/\/(?:www\.|)file(?:keen|rio)\.(?:com|in)\/\w+/g,
  2785. /red'>http:\/\/(?:www\.|)file(?:keen|rio)\.(?:com|in)\/\w+/g,
  2786. /orange'>http:\/\/(?:www\.|)file(?:keen|rio)\.(?:com|in)\/\w+/g,
  2787. null //function delegate
  2788. )
  2789. }
  2790. if (GM_getValue("Check_share_dash_online_dot_biz_links", false))
  2791. {
  2792. addHost(
  2793. "share-online,egoshare", //hostname
  2794. "(?:share-online\\.biz|egoshare\\.com)\/(?:dl\/|download\\.php\\?id=)", //linkregex
  2795. "//a[contains(@href,'share-online.biz') or contains(@href,'egoshare.com')]", //xpath
  2796. null, //blocksize
  2797. /http:\/\/(?:www\.)?(?:share-online\.biz|egoshare\.com)\/d(?:l\/|ownload\.php\?id=)(\w+)/, //corrmatch
  2798. null, //corrreplwhat
  2799. null, //corrreplwith
  2800. "\n", //separator
  2801. 'http://api.share-online.biz/linkcheck.php',
  2802. 'links=',
  2803. /(\w+);(?:OK|NOTFOUND|DELETED)/,
  2804. /\w+;OK/g,
  2805. /\w+;(?:NOTFOUND|DELETED)/g,
  2806. null,
  2807. null //function delegate
  2808. )
  2809. }
  2810. /* if (GM_getValue("Check_quickshare_dot_cz_links", false))
  2811. {
  2812. addHost(
  2813. "quickshare", //hostname
  2814. "quickshare\\.cz\/stahnout-soubor\/\\d+", //linkregex
  2815. "//a[contains(@href,'quickshare.cz')]", //xpath
  2816. null, //blocksize
  2817. null, //corrmatch
  2818. null, //corrreplwhat
  2819. null, //corrreplwith
  2820. null, //separator
  2821. 'http://www.quickshare.cz/nastroje/link-checker',
  2822. 'linky=',
  2823. /quickshare\.cz\/stahnout-soubor\/(\d+(?::\w+)?)/,
  2824. /quickshare\.cz\/stahnout-soubor\/\d+(?::[\w\-.+$!*\/()\[\]\',~%?:@#&=\\]+)?\s*<\/a><\/td><td><img src="\/img\/ok\.gif/g,
  2825. /quickshare\.cz\/stahnout-soubor\/\d+(?::[\w\-.+$!*\/()\[\]\',~%?:@#&=\\]+)?\s*<\/td><td><img src="\/img\/nenalezeno\.gif/g,
  2826. null,
  2827. null //function delegate
  2828. )
  2829. } */
  2830. if (GM_getValue("Check_oboom_dot_com_links", false))
  2831. {
  2832. addHost(
  2833. "oboom", //hostname
  2834. "oboom\\.com\/#?\\w{8}", //linkregex
  2835. "//a[contains(@href,'oboom.com/')]", //xpath
  2836. null, //blocksize
  2837. /oboom\.com\/#?(\w{8})/, //corrmatch
  2838. null, //corrreplwhat
  2839. null, //corrreplwith
  2840. null, //separator
  2841. null,
  2842. null,
  2843. null,
  2844. null, //liveregex
  2845. null, //deadregex
  2846. null,
  2847. oboomBulk //function delegate
  2848. )
  2849. }
  2850. if (GM_getValue("Check_mega_dot_nz_links", false))
  2851. {
  2852. addHost(
  2853. "mega",
  2854. "mega(?:\\.co)?\\.nz\/#!\\w+",
  2855. "//a[contains(@href,'mega.co.nz/') or contains(@href,'mega.nz/')]",
  2856. 100000, //blocksize
  2857. null, //corrmatch
  2858. null, //corrreplwhat
  2859. null, //corrreplwith
  2860. null, //separator
  2861. null,
  2862. null,
  2863. null,
  2864. null,
  2865. null,
  2866. null,
  2867. megaBulkCheck //function delegate
  2868. )
  2869. }
  2870.  
  2871. //the same as GenType2, except api url is 'https://' instead of 'http://www.' and corrmatch is not??? needed
  2872.  
  2873. if (GM_getValue("Check_extabit_dot_com_links", false))
  2874. {
  2875. addHost(
  2876. "extabit", //hostname
  2877. "extabit\\.com\/file\/\\w+", //linkregex
  2878. "//a[contains(@href,'extabit.com')]", //xpath
  2879. null, //blocksize
  2880. null, //corrmatch
  2881. null, //corrreplwhat
  2882. null, //corrreplwith
  2883. "\n", //separator
  2884. "http://extabit.com/linkchecker.jsp", //api url
  2885. "url=", //postdata
  2886. /extabit\.com\/(file\/\w+)/, //linkregex
  2887. /extabit\.com\/file\/\w+\/[^<]+<\/a><\/td>\s*<td class="status"><span class="status_green">/g, //liveregex
  2888. /extabit\.com\/file\/\w+\/[^<]+<\/a><\/td>\s*<td class="status"><span class="status_red">/g, //deadregex
  2889. /extabit\.com\/file\/\w+\/[^<]+<\/a><\/td>\s*<td class="status"><span class="status_yellow">/g, //unavaregex
  2890. extabitBulkCheck //function delegate
  2891. )
  2892. }
  2893. if (GM_getValue("Check_junocloud_dot_me_links", false))
  2894. {
  2895. addHost(
  2896. "junocloud", //hostname
  2897. "junocloud\\.me\/\\w+", //linkregex
  2898. "//a[contains(@href,'junocloud.me')]", //xpath
  2899. null, //blocksize
  2900. null, //corrmatch
  2901. null, //corrreplwhat
  2902. null, //corrreplwith
  2903. "\n", //separator
  2904. "http://junocloud.me/checkfiles.html", //api url
  2905. "op=checkfiles&process=Check+URLs&list=", //postdata
  2906. /(junocloud\.me\/\w+)/, //linkregex
  2907. /<a href="http:\/\/junocloud\.me\/\w+[^<]+<\/a>\s*<span style="color: green/g, //liveregex
  2908. /<a href="http:\/\/junocloud\.me\/\w+[^<]+<\/a>\s*<span style="color: red/g, //deadregex
  2909. null, //unavaregex
  2910. null //function delegate
  2911. )
  2912. }
  2913. if (GM_getValue("Check_webshare_dot_cz_links", false))
  2914. {
  2915. addHost(
  2916. "webshare", //hostname
  2917. "webshare\.cz\/(?:(?:#/)?file/\\w+|\\w+-.*)", //linkregex
  2918. "//a[contains(@href,'webshare.cz')]", //xpath
  2919. 100000, //blocksize
  2920. null, //corrmatch
  2921. null, //corrreplwhat
  2922. null, //corrreplwith
  2923. null, //separator
  2924. null, //api url
  2925. null, //postdata
  2926. null, //linkregex
  2927. null, //liveregex
  2928. null, //deadregex
  2929. null, //unavaregex
  2930. webshareBulkCheck //function delegate
  2931. )
  2932. }
  2933. /////////////////////////////
  2934. // Common function delegate to send links to get checked by host linkchecker
  2935. /////////////////////////////
  2936. // If you define a new delegate, you may use following properties
  2937. // this.links [array] array of strings (link blocks). The links in each block separated with host.splitSeparator.
  2938. // this.apiUrl [string] API or web linkchecker URL
  2939. // this.postData [string] POSTDATA for POST request
  2940. // this.resLiveRegex [regex] matches live substrings in the request response
  2941. // this.resDeadRegex [regex] matches dead substrings in the request response
  2942. // this.resUnavaRegex [regex] matches unava substrings in the request response (the regex is often null!)
  2943. //
  2944. // this.resLinkRegex [regex] matches links further passed to DisplayTheCheckedLinks
  2945. //
  2946. // See the code below for standard bulkcheck handling reference.
  2947. //////////////////////////////
  2948. function genBulkCheck()
  2949. {
  2950. var blockIdx = this.links.length;
  2951. while (blockIdx--)
  2952. {
  2953. postRequest(this.apiUrl, this.postData, this.links[blockIdx],
  2954. this.resLinkRegex, this.resLiveRegex, this.resDeadRegex, this.resUnavaRegex);
  2955. }
  2956. function postRequest(api, postData, links, linkRegex, liveRegex, deadRegex, unavaRegex)
  2957. {
  2958. GM_xmlhttpRequest(
  2959. {
  2960. method: 'POST',
  2961. url: api,
  2962. headers: {
  2963. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  2964. 'Content-type': 'application/x-www-form-urlencoded',
  2965. 'Referer': api,
  2966. 'X-Requested-With': 'XMLHttpRequest'
  2967. },
  2968. data: postData + encodeURIComponent(links),
  2969. onload: function (result)
  2970. {
  2971. var res = result.responseText;
  2972. // GM_log(res);
  2973. var i;
  2974.  
  2975. var livelinks = res.match(liveRegex);
  2976. var deadlinks = res.match(deadRegex);
  2977. // GM_log(livelinks);
  2978. // GM_log(deadlinks);
  2979. if (livelinks != null)
  2980. {
  2981. i = livelinks.length - 1;
  2982. do
  2983. {
  2984. livelinks[i] = livelinks[i].match(linkRegex)[1];
  2985. }
  2986. while (i--);
  2987. DisplayTheCheckedLinks(livelinks, 'alive_link');
  2988. }
  2989.  
  2990. if (deadlinks != null)
  2991. {
  2992. i = deadlinks.length - 1;
  2993. do
  2994. {
  2995. deadlinks[i] = deadlinks[i].match(linkRegex)[1];
  2996. }
  2997. while (i--);
  2998. DisplayTheCheckedLinks(deadlinks, 'adead_link');
  2999. }
  3000.  
  3001. if (unavaRegex != null)
  3002. {
  3003. var unavalinks = res.match(unavaRegex);
  3004. if (unavalinks)
  3005. {
  3006. i = unavalinks.length - 1;
  3007. do
  3008. {
  3009. unavalinks[i] = unavalinks[i].match(linkRegex)[1];
  3010. }
  3011. while (i--);
  3012. DisplayTheCheckedLinks(unavalinks, 'unava_link');
  3013. }
  3014. }
  3015. }
  3016. });
  3017. }
  3018. }
  3019. //specialized bulkchecking handlers follow
  3020. function webshareBulkCheck()
  3021. {
  3022. var arr = this.links[0].split("\r\n");
  3023. var i = arr.length;
  3024. while(i--)
  3025. {
  3026. postRequest(arr[i]);
  3027. }
  3028. //function postRequest(api, postData, links, linkRegex, liveRegex, deadRegex, unavaRegex)
  3029. function postRequest(wsLink)
  3030. {
  3031. var id = wsLink.match(/webshare\.cz\/(?:(?:#\/)?file\/)?(\w+)/)[1];
  3032. GM_xmlhttpRequest(
  3033. {
  3034. method: 'POST',
  3035. url: "http://webshare.cz/api/file_info/",
  3036. headers: {
  3037. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  3038. 'Content-type': 'application/x-www-form-urlencoded',
  3039. 'Referer': "",
  3040. },
  3041. data: "wst=&ident=" + id,
  3042. onload: function (result)
  3043. {
  3044. var res = result.responseText;
  3045. if (res.match(/<name>.+?<\/name>/))
  3046. {
  3047. DisplayTheCheckedLinks([id], 'alive_link');
  3048. }
  3049. else
  3050. {
  3051. DisplayTheCheckedLinks([id], 'adead_link');
  3052. }
  3053. }
  3054. });
  3055. }
  3056. }
  3057. //like genBulkCheck, but extabit linkchecker only works when logged in. If not logged in, non-bulk checking has to be used.
  3058. //extabit also doesn't like requests in fast succession, so some delays are added.
  3059. function extabitBulkCheck()
  3060. {
  3061. var timeoutDelay = 0;
  3062. var blockIdx = this.links.length;
  3063. while (blockIdx--)
  3064. {
  3065. postRequest(this.apiUrl, this.postData, this.links[blockIdx],
  3066. this.resLinkRegex, this.resLiveRegex, this.resDeadRegex, this.resUnavaRegex);
  3067. }
  3068. function postRequest(api, postData, links, linkRegex, liveRegex, deadRegex, unavaRegex)
  3069. {
  3070. GM_xmlhttpRequest(
  3071. {
  3072. method: 'POST',
  3073. url: api,
  3074. headers: {
  3075. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  3076. 'Content-type': 'application/x-www-form-urlencoded',
  3077. 'Referer': api,
  3078. 'X-Requested-With': 'XMLHttpRequest'
  3079. },
  3080. data: postData + encodeURIComponent(links),
  3081. onload: function (result)
  3082. {
  3083. var res = result.responseText;
  3084. if (/id="registration_header"/.test(res)) //not logged in, have to use non-bulk
  3085. {
  3086. function geturlfunc(link, tryID) //basically the geturl function with some changes (compacted, displaythecheckedlinkS, multiple tries)
  3087. {
  3088. //GM_log(tryID + ': ' + link);
  3089. GM_xmlhttpRequest(
  3090. {
  3091. method: 'GET',
  3092. url: link,
  3093. 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': ""},
  3094. onload: function(result2)
  3095. {
  3096. var res2 = result2.responseText;
  3097. var res2Status = result.status;
  3098. if (/download-file-btn/.test(res2)) {DisplayTheCheckedLinks([link], 'alive_link'); return;}
  3099. if (/Search mirrors|id="mirrb"/.test(res2) || res2Status==404) {DisplayTheCheckedLinks([link], 'adead_link'); return;}
  3100. if (/currently unavailable|temporarily unavailable|disponible en estos momentos|vorläufig unerreichbar|Файл временно недоступен/.test(res2) || res2Status == 500 || res2Status == 503)
  3101. {
  3102. if (tryID < 7)
  3103. setTimeout(function(){geturlfunc(link,tryID+1)}, tryID * 1000 + (Math.random() * tryID * 2000));
  3104. else
  3105. {DisplayTheCheckedLinks([link], 'unava_link'); return;}
  3106. }
  3107. }
  3108. });
  3109. }
  3110. //split the hrefs and check them one by one
  3111. GM_log('Using slow extabit.com link checking. Log in to extabit to use fast bulk checking.');
  3112. links = links.split('\n');
  3113. var i = links.length;
  3114. while (i--)
  3115. {
  3116. if (links[i])
  3117. {
  3118. (function(i){setTimeout(function(){geturlfunc(links[i],1)}, timeoutDelay);})(i);
  3119. timeoutDelay += 500;
  3120. }
  3121. }
  3122. return;
  3123. }
  3124. var i;
  3125.  
  3126. var livelinks = res.match(liveRegex);
  3127. var deadlinks = res.match(deadRegex);
  3128. if (livelinks != null)
  3129. {
  3130. i = livelinks.length - 1;
  3131. do
  3132. {
  3133. livelinks[i] = livelinks[i].match(linkRegex)[1];
  3134. }
  3135. while (i--);
  3136. DisplayTheCheckedLinks(livelinks, 'alive_link');
  3137. }
  3138.  
  3139. if (deadlinks != null)
  3140. {
  3141. i = deadlinks.length - 1;
  3142. do
  3143. {
  3144. deadlinks[i] = deadlinks[i].match(linkRegex)[1];
  3145. }
  3146. while (i--);
  3147. DisplayTheCheckedLinks(deadlinks, 'adead_link');
  3148. }
  3149.  
  3150. if (unavaRegex != null)
  3151. {
  3152. var unavalinks = res.match(unavaRegex);
  3153. if (unavalinks)
  3154. {
  3155. i = unavalinks.length - 1;
  3156. do
  3157. {
  3158. unavalinks[i] = unavalinks[i].match(linkRegex)[1];
  3159. }
  3160. while (i--);
  3161. DisplayTheCheckedLinks(unavalinks, 'unava_link');
  3162. }
  3163. }
  3164. }
  3165. });
  3166. }
  3167. }
  3168. function k2sBulkCheck()
  3169. {
  3170. var arr = this.links[0].split("\r\n");
  3171. var i = arr.length;
  3172. c=0;
  3173. arrIDs=[];
  3174. while(i--)
  3175. {
  3176. id = arr[i].match(/\/file\/(\w+)/)[1];
  3177. k2salreadyexist=false;
  3178. for (j=0;j<arrIDs.length;j++)
  3179. {
  3180. if (arrIDs[j]==id)
  3181. {
  3182. k2salreadyexist=true;
  3183. break;
  3184. }
  3185. }
  3186. if (k2salreadyexist) continue;
  3187. arrIDs.push(id);
  3188. c++;
  3189. setTimeout(k2sRequest,c*500,arr[i]);
  3190. }
  3191. }
  3192. function k2sRequest(K2SLink)
  3193. {
  3194. var id = K2SLink.match(/\/file\/(\w+)/)[1];
  3195. K2SLink2='http://k2s.cc/file/'+id;
  3196. GM_xmlhttpRequest(
  3197. {
  3198. method: 'GET',
  3199. url: K2SLink,
  3200. headers: {
  3201. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  3202. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  3203. 'Referer': ''
  3204. },
  3205. onload: function (result)
  3206. {
  3207. var res = result.responseText;
  3208. if (res.match('no longer available|div class="well2"|error 404|The system is unable to find the requested action|http://keep2share.cc/file/check.html|To avoid damaged files'))
  3209. {
  3210. DisplayTheCheckedLinks([K2SLink], 'adead_link');
  3211. return;
  3212. }
  3213. if (res.match('method="post">Displaying'))
  3214. {
  3215. DisplayTheCheckedLinks([K2SLink], 'unava_link');
  3216. return;
  3217. }
  3218. if (res.match('Premium only'))
  3219. {
  3220. DisplayTheCheckedLinks([K2SLink], 'prem_link');
  3221. return;
  3222. }
  3223. if (res.match('View File|download-file-info|div class="name fontmyriadpro"|style="color: #9fb143;"'))
  3224. {
  3225. slow_id=new RegExp('<input type="hidden" name="slow_id" value="(\\w+)">');
  3226. slID=slow_id.exec(res)[1];
  3227. GM_xmlhttpRequest(
  3228. {
  3229. method: 'POST',
  3230. url: K2SLink2,
  3231. headers: {
  3232. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  3233. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  3234. 'Content-Type': 'application/x-www-form-urlencoded',
  3235. 'Referer': K2SLink
  3236. },
  3237. data: 'slow_id='+slID+'&yt0=',
  3238. onload: function (result)
  3239. {
  3240. var newres = result.responseText;
  3241. newoversizedtest=new RegExp("Free user can't download large files.");
  3242. if (newoversizedtest.test(newres))
  3243. {
  3244. DisplayTheCheckedLinks([K2SLink], 'prem_link');
  3245. return;
  3246. }
  3247. else
  3248. {
  3249. DisplayTheCheckedLinks([K2SLink], 'alive_link');
  3250. return;
  3251. }
  3252. DisplayTheCheckedLinks([K2SLink], 'unava_link');
  3253. return;
  3254. }
  3255. });
  3256. /////////////////////end additional check for oversized links
  3257. return;
  3258. }
  3259. DisplayTheCheckedLinks([K2SLink], 'unava_link');
  3260. return;
  3261. },
  3262. onerror: function ()
  3263. {
  3264. DisplayTheCheckedLinks([K2SLink], 'unava_link');
  3265. return;
  3266. }
  3267. });
  3268. }
  3269. function fboomBulkCheck()
  3270. {
  3271. var arr = this.links[0].split("\r\n");
  3272. var i = arr.length;
  3273. c=0;
  3274. arrIDs=[];
  3275. while(i--)
  3276. {
  3277. id = arr[i].match(/\/file\/(\w+)/)[1];
  3278. fbalreadyexist=false;
  3279. for (j=0;j<arrIDs.length;j++)
  3280. {
  3281. if (arrIDs[j]==id)
  3282. {
  3283. fbalreadyexist=true;
  3284. break;
  3285. }
  3286. }
  3287. if (fbalreadyexist) continue;
  3288. arrIDs.push(id);
  3289. c++;
  3290. setTimeout(fboomRequest,c*500,arr[i]);
  3291. }
  3292. }
  3293. function fboomRequest(FBoomLink)
  3294. {
  3295. var id = FBoomLink.match(/\/file\/(\w+)/)[1];
  3296. FBoomLink2='http://fboom.me/file/'+id;
  3297. GM_xmlhttpRequest(
  3298. {
  3299. method: 'GET',
  3300. url: FBoomLink,
  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. 'Referer': ''
  3305. },
  3306. onload: function (result)
  3307. {
  3308. var res = result.responseText;
  3309. if (res.match('no longer available|class="error-v1-title">404<|File not found or deleted|no longer available'))
  3310. {
  3311. DisplayTheCheckedLinks([FBoomLink], 'adead_link');
  3312. return;
  3313. }
  3314. if (res.match('method="post">Displaying'))
  3315. {
  3316. DisplayTheCheckedLinks([FBoomLink], 'unava_link');
  3317. return;
  3318. }
  3319. if (res.match('only for premium members'))
  3320. {
  3321. DisplayTheCheckedLinks([FBoomLink], 'prem_link');
  3322. return;
  3323. }
  3324. if (res.match('id="download-free" href="#"'))
  3325. {
  3326. slow_id=new RegExp('<a id="download-free" href="#" class="free-button btn-u" data-slow-id="(\\w+)">');
  3327. slID=slow_id.exec(res)[1];
  3328. GM_xmlhttpRequest(
  3329. {
  3330. method: 'POST',
  3331. url: FBoomLink2,
  3332. headers: {
  3333. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  3334. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  3335. 'Content-Type': 'application/x-www-form-urlencoded',
  3336. 'Referer': FBoomLink
  3337. },
  3338. data: 'slow_id='+slID,
  3339. onload: function (result)
  3340. {
  3341. var newres = result.responseText;
  3342. newoversizedtest=new RegExp("Free user can't download large files.|Downloading is not possible");
  3343. if (newoversizedtest.test(newres))
  3344. {
  3345. DisplayTheCheckedLinks([FBoomLink], 'prem_link');
  3346. return;
  3347. }
  3348. else
  3349. {
  3350. DisplayTheCheckedLinks([FBoomLink], 'alive_link');
  3351. return;
  3352. }
  3353. DisplayTheCheckedLinks([FBoomLink], 'unava_link');
  3354. return;
  3355. }
  3356. });
  3357. /////////////////////end additional check for oversized links
  3358. return;
  3359. }
  3360. DisplayTheCheckedLinks([FBoomLink], 'unava_link');
  3361. return;
  3362. },
  3363. onerror: function ()
  3364. {
  3365. DisplayTheCheckedLinks([FBoomLink], 'unava_link');
  3366. return;
  3367. }
  3368. });
  3369. }
  3370. function dl4free_1fichier_BulkCheck()
  3371. {
  3372. var arr = this.links[0].split("\r\n");
  3373. var i = arr.length;
  3374. while(i--)
  3375. {
  3376. CorrectRE = new RegExp('(https?):\\/\\/(?:www\\.)?(\\w{5,15})\\.1fichier\\.com');
  3377. arr[i]=arr[i].replace(CorrectRE, '$1://1fichier.com/?$2');
  3378. gethead_dl4free_1fichier(arr[i]);
  3379. }
  3380. }
  3381. function gethead_dl4free_1fichier(link)
  3382. {
  3383. var id = link.match(/(?:1fichier|dl4free)\.com(?:\/)?\?(\w{6,})/)[1];
  3384. GM_xmlhttpRequest(
  3385. {
  3386. method: 'HEAD',
  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. if (result.responseHeaders.match(/Content-Disposition: attachment; filename=/))//direct download
  3396. {
  3397. DisplayTheCheckedLinks([id], 'alive_link');
  3398. return;
  3399. }
  3400. else
  3401. {
  3402. getlink_dl4free_1fichier(link);
  3403. }
  3404. return;
  3405. },
  3406. onerror: function ()
  3407. {
  3408. DisplayTheCheckedLinks([id], 'unava_link');
  3409. }
  3410. });
  3411. }
  3412. function getlink_dl4free_1fichier(link)
  3413. {
  3414. var id = link.match(/(?:1fichier|dl4free)\.com(?:\/)?\?(\w{6,})/)[1];
  3415. GM_xmlhttpRequest(
  3416. {
  3417. method: 'GET',
  3418. url: link,
  3419. headers: {
  3420. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  3421. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  3422. 'Referer': ''
  3423. },
  3424. onload: function (result)
  3425. {
  3426. var res = result.responseText;
  3427. 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>');
  3428. if (deadRegex.test(res))
  3429. {
  3430. DisplayTheCheckedLinks([id], 'adead_link');
  3431. return;
  3432. }
  3433. premiumRegex=new RegExp('only for premium users');
  3434. if (premiumRegex.test(res))
  3435. {
  3436. DisplayTheCheckedLinks([id], 'prem_link');
  3437. return;
  3438. }
  3439. 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="');
  3440. if (liveRegex.test(res))
  3441. {
  3442. DisplayTheCheckedLinks([id], 'alive_link');
  3443. return;
  3444. }
  3445. DisplayTheCheckedLinks([id], 'unava_link');
  3446. },
  3447. onerror: function ()
  3448. {
  3449. DisplayTheCheckedLinks([id], 'unava_link');
  3450. }
  3451. });
  3452. }
  3453. function depositfilesBulkCheck()
  3454. {
  3455. var arr = this.links[0].split("\r\n");
  3456. var i = arr.length;
  3457. var seqno = Math.floor(Math.random()*1000000000);
  3458. while(i--)
  3459. {
  3460. DFpostRequest(arr[i]);
  3461. }
  3462. }
  3463. function DFpostRequest(DFLink)
  3464. {
  3465. DFLink=DFLink.replace('depositfiles.lt/','depositfiles.com/');
  3466. DFLink=DFLink.replace('depositfiles.org/','depositfiles.com/');
  3467. DFLink=DFLink.replace('dfiles.ru/','depositfiles.com/');
  3468. DFLink=DFLink.replace('dfiles.eu/','depositfiles.com/');
  3469. DFLink=DFLink.replace('depositfiles.com/en/','depositfiles.com/');
  3470. var id = DFLink.match(/depositfiles\.com\/files\/(\w+)/)[1];
  3471. GM_xmlhttpRequest(
  3472. {
  3473. method: "GET",
  3474. url: "http://depositfiles.com/api/get_download_info.php?id=" + id + "&format=json",
  3475. headers: {
  3476. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3477. 'Content-Type': 'application/x-www-form-urlencoded',
  3478. 'Referer': ""
  3479. },
  3480. onload: function (result)
  3481. {
  3482. var res = result.responseText;
  3483. if (res.match('(?:no_file|file_ban)'))
  3484. {
  3485. DisplayTheCheckedLinks([id], 'adead_link');
  3486. return;
  3487. }
  3488. if (res.match('"download_li(?:nk|mit)|password_check|file_storage"'))
  3489. {
  3490. DisplayTheCheckedLinks([id], 'alive_link');
  3491. return;
  3492. }
  3493. DisplayTheCheckedLinks([id], 'unava_link');
  3494. }
  3495. });
  3496. }
  3497.  
  3498. function megaBulkCheck()
  3499. {
  3500. var arr = this.links[0].split("\r\n");
  3501. var i = arr.length;
  3502. var seqno = Math.floor(Math.random()*1000000000);
  3503. while(i--)
  3504. {
  3505. postRequest(arr[i]);
  3506. }
  3507. function postRequest(megaLink)
  3508. {
  3509. megaLink=megaLink.replace('mega.nz/','mega.co.nz/');
  3510. var id = megaLink.match(/mega\.co\.nz\/#!(\w+)(?:!\w+)?/)[1];
  3511. GM_xmlhttpRequest(
  3512. {
  3513. method: "POST",
  3514. url: 'https://g.api.mega.co.nz/cs?id=' + seqno++,
  3515. data: '[{"a":"g","p":"' + id + '","ssl": "1"}]',
  3516. headers: {
  3517. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3518. 'Content-Type': 'application/xml',
  3519. 'Referer': "https://mega.co.nz/"
  3520. },
  3521. onload: function (result)
  3522. {
  3523. var res = $.parseJSON(result.responseText.match(/\[(.+?)\]/)[1]);
  3524. if ((typeof res == "number" && (res == -9 || res == -16 || res == -6)) || res.d)
  3525. {
  3526.  
  3527. DisplayTheCheckedLinks([id], 'adead_link');
  3528. }
  3529. if (res.at)
  3530. {
  3531. DisplayTheCheckedLinks([id], 'alive_link');
  3532. }
  3533. if (res.e == "ETEMPUNAVAIL")
  3534. {
  3535. DisplayTheCheckedLinks([id], 'unava_link');
  3536. }
  3537. }
  3538. });
  3539. }
  3540.  
  3541. }
  3542.  
  3543. function oboomBulk() {
  3544. var a = [], b = [], c = [];
  3545. var array = this.links;
  3546.  
  3547. GM_xmlhttpRequest({
  3548. method: 'GET',
  3549. url: 'https://www.oboom.com/1/guestsession',
  3550. headers: {
  3551. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  3552. 'Content-type': 'application/x-www-form-urlencoded',
  3553. 'Referer': 'https://www.oboom.com',
  3554. 'X-Requested-With': 'XMLHttpRequest'
  3555. },
  3556. onload: function(result) {
  3557. var blockIdx = array.length;
  3558. var token = JSON.parse(result.responseText)[1];
  3559. while (blockIdx--) {
  3560. startCheck(array[blockIdx].split('\r\n'), token);
  3561. }
  3562. }
  3563. });
  3564.  
  3565. function startCheck(links, token) {
  3566. GM_xmlhttpRequest({
  3567. method: 'POST',
  3568. url: "https://api.oboom.com/1/info",
  3569. headers: {
  3570. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  3571. 'Content-type': 'application/x-www-form-urlencoded',
  3572. 'Referer': 'https://www.oboom.com/',
  3573. 'X-Requested-With': 'XMLHttpRequest'
  3574. },
  3575. data: "token=" + token + "&items=" + links.join(","),
  3576. onload: function(result) {
  3577. var res = JSON.parse(result.responseText)[1];
  3578. var i = res.length, s;
  3579.  
  3580. while (i--) {
  3581. s = res[i].state;
  3582. if (s == 'online') a.push(res[i].id);
  3583. 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);
  3584. else c.push(res[i].id);
  3585. }
  3586.  
  3587. if (a.length > 0) DisplayTheCheckedLinks(a, 'alive_link');
  3588. if (b.length > 0) DisplayTheCheckedLinks(b, 'adead_link');
  3589. if (c.length > 0) DisplayTheCheckedLinks(c, 'unava_link');
  3590. }
  3591. });
  3592. }
  3593. }
  3594. function linksaveBulkCheck()
  3595. {
  3596. var arr = this.links[0].split("\r\n");
  3597. var i = arr.length;
  3598. while(i--)
  3599. {
  3600. postRequest(arr[i]);
  3601. }
  3602. function postRequest(lsLink)
  3603. {
  3604. GM_xmlhttpRequest(
  3605. {
  3606. method: "GET",
  3607. url: lsLink + '-t.jpg',
  3608. headers: {
  3609. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3610. 'Accept': 'text/xml',
  3611. 'Referer': ""
  3612. },
  3613. onload: function (result)
  3614. {
  3615. var imgLen = result.responseHeaders.match(/Content-Length: (\d+)/)[1];
  3616. if (imgLen == 965) //online
  3617. {
  3618. DisplayTheCheckedLinks([lsLink], 'alive_link');
  3619. }
  3620.  
  3621. if (imgLen == 972) //offline
  3622. {
  3623. DisplayTheCheckedLinks([lsLink], 'adead_link');
  3624. }
  3625. if (imgLen == 978) //unava
  3626. {
  3627. DisplayTheCheckedLinks([lsLink], 'unava_link');
  3628. }
  3629. }
  3630. });
  3631. }
  3632.  
  3633. }
  3634. function linkcryptBulkCheck()
  3635. {
  3636. var arr = this.links[0].split("\r\n");
  3637. var i = arr.length;
  3638. while(i--)
  3639. {
  3640. postRequest(arr[i]);
  3641. }
  3642. function postRequest(lcLink)
  3643. {
  3644. GM_xmlhttpRequest(
  3645. {
  3646. method: "GET",
  3647. url: 'http://linkcrypt.ws/api.html?api=status_V1&folderKey=' + lcLink.match(/dir\/(\w+)/)[1],
  3648. headers: {
  3649. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3650. 'Accept': 'text/xml',
  3651. 'Referer': ""
  3652. },
  3653. onload: function (result)
  3654. {
  3655. var res = result.responseText;
  3656. if (res.match(/<errorCode>1101|folderStatus>[23]/)) //Offline status
  3657. {
  3658. DisplayTheCheckedLinks([lcLink], 'adead_link');
  3659. return;
  3660. }
  3661. if (res.match(/folderStatus>1/)) //Online status
  3662. {
  3663. DisplayTheCheckedLinks([lcLink], 'alive_link');
  3664. }
  3665. else
  3666. {
  3667. DisplayTheCheckedLinks([lcLink], 'unava_link');
  3668. }
  3669. }
  3670. });
  3671. }
  3672. }
  3673.  
  3674. function megashareBulkCheck()
  3675. {
  3676. var arr = this.links[0].split("\r\n");
  3677. var i = arr.length;
  3678. while(i--)
  3679. {
  3680. postRequest(arr[i]);
  3681. }
  3682. function postRequest(msLink)
  3683. {
  3684. GM_xmlhttpRequest(
  3685. {
  3686. method: "GET",
  3687. url: msLink,
  3688. headers: {
  3689. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3690. 'Content-Type': 'application/x-www-form-urlencoded',
  3691. 'Referer': ""
  3692. },
  3693. onload: function (result)
  3694. {
  3695. var prZVal = result.responseText.match(/name="(\d+prZVal)" value="(\d+)">/);
  3696. var btn3Name = result.responseText.match(/src="images\/dwn-btn3\.gif" name="(.+?)"/);
  3697. if ((prZVal == null) || (btn3Name == null))
  3698. {
  3699. return;
  3700. }
  3701. GM_xmlhttpRequest(
  3702. {
  3703. method: "POST",
  3704. url: msLink,
  3705. headers: {
  3706. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3707. 'Content-Type': 'application/x-www-form-urlencoded',
  3708. 'Referer': ""
  3709. },
  3710. data: prZVal[1] + "=" + prZVal[2] + '&' + btn3Name[1] + '.x=1&' + btn3Name[1] + '.y=1',
  3711. onload: function (result)
  3712. {
  3713. var res = result.responseText;
  3714. if (res.match(/<div id="err">/))
  3715. {
  3716. DisplayTheCheckedLinks([msLink.match(/\.com(\/\d+)/)[1]], 'adead_link');
  3717. }
  3718. else
  3719. {
  3720. DisplayTheCheckedLinks([msLink.match(/\.com(\/\d+)/)[1]], 'alive_link');
  3721. }
  3722. }
  3723. });
  3724. }
  3725. });
  3726. }
  3727. }
  3728. function ncryptBulkCheck()
  3729. {
  3730. var arr = this.links[0].split("\r\n");
  3731. var i = arr.length;
  3732. while(i--)
  3733. {
  3734. postRequest(arr[i]);
  3735. }
  3736. function postRequest(ncryptLink)
  3737. {
  3738. GM_xmlhttpRequest(
  3739. {
  3740. method: "POST",
  3741. url: 'http://ncrypt.in/api_status.php',
  3742. headers: {
  3743. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3744. 'Content-Type': 'application/x-www-form-urlencoded',
  3745. 'Referer': ""
  3746. },
  3747. data: 'link=' + encodeURI(ncryptLink),
  3748. onload: function (result)
  3749. {
  3750. var foldStatus = result.responseText.match(/(?:offline|online);/);
  3751. switch(foldStatus + ""){
  3752. case "offline;": DisplayTheCheckedLinks([ncryptLink], 'adead_link'); break;
  3753. case "online;": DisplayTheCheckedLinks([ncryptLink], 'alive_link'); break;
  3754. default: DisplayTheCheckedLinks([ncryptLink], 'unava_link');
  3755. }
  3756. }
  3757. });
  3758. }
  3759. }
  3760. function hellshareBulkCheck()
  3761. {
  3762. var links = this.links;
  3763. GM_xmlhttpRequest(
  3764. {
  3765. method: "GET",
  3766. url: 'http://www.hellshare.com',
  3767. headers: {
  3768. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3769. 'Accept': 'text/xml',
  3770. 'Referer': ""
  3771. },
  3772. onload: function (result)
  3773. {
  3774. var domain = result.responseText.match(/param_rau = "www\.hellshare\.(\w+)"/)[1];
  3775.  
  3776. var loc = 'check=Zkontrolovat+dostupnost+soubor%C5%AF&links=';
  3777. if (domain == 'sk')
  3778. loc = 'check=Skontrolova%C5%A5&links=';
  3779. if (domain == 'com')
  3780. loc = 'check=Check+availability&links=';
  3781. if (domain == 'hu')
  3782. loc = 'check=Kontrol%C3%A1lj&links=';
  3783. if (domain == 'pl')
  3784. loc = 'check=Sprawd%C5%BC+dost%C4%99pno%C5%9B%C4%87+plik%C3%B3w&links=';
  3785.  
  3786. genBulkCheck.call({ links: links,
  3787. apiUrl: 'http://www.hellshare.' + domain + '/linkchecker?do=linkChecker-linkcheckerform-submit',
  3788. postData: loc,
  3789. resLinkRegex: /hellshare\.(?:cz|com|sk|hu|pl)\/(?:[\w-\.]+\/|)([\w-\.]+\/\d{5,})/,
  3790. 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,
  3791. resDeadRegex: /<span style="color:gray">.*?<\/span> - <strong>/g,
  3792. resUnavaRegex: null
  3793. });
  3794. }
  3795. });
  3796. }
  3797. /**
  3798. * Displays check result
  3799. * @param {Array} Array of links or link fragments.
  3800. * @param {String} Check result status -> ['alive_link'|'adead_link'|'unava_link']
  3801. */
  3802. function DisplayTheCheckedLinks(links, resultStatus)
  3803. {
  3804. //(a[href*=link_1], a[href*=link_2], ..., a[href*=link_n])
  3805. var $links = $('a[href*="' + links.join('"], a[href*="') + '"]');
  3806. if (Do_not_linkify_DL_links)
  3807. { //TODO into separate jQuery function
  3808. $links.replaceWith(function(){
  3809. return '<span href="' + this.href + '">' + $(this).text() + '</span>';
  3810. });
  3811. $links = $('span[href*="' + links.join('"], span[href*="') + '"]');
  3812. }
  3813. $links.removeClass().addClass(resultStatus);
  3814. $links.each(function() {
  3815. this.href = Ref_anonymize_service + $(this).attr("href");
  3816. });
  3817. switch(resultStatus)
  3818. {
  3819. case "alive_link": cLinksAlive += $links.length;
  3820. if (Display_tooltip_info) $links.mouseover(displayTooltipInfo);
  3821. break;
  3822. case "adead_link": cLinksDead += $links.length;
  3823. if (Display_tooltip_info) $links.mouseover(displayTooltipError);
  3824. break;
  3825. case "prem_link": cLinksprem += $links.length;
  3826. if (Display_tooltip_info) $links.mouseover(displayTooltipError);
  3827. break;
  3828. case "unava_link": cLinksUnava += $links.length; break;
  3829. default:
  3830. }
  3831. cLinksProcessed += $links.length;
  3832. }
  3833. }
  3834. // starts bulkchecking
  3835. //
  3836. // params
  3837. // filterId [string] restricts link detection with passed id attribute
  3838. function startBulkCheck(filterId)
  3839. {
  3840. var cHosts = bulkHosts.length;
  3841. if (cHosts == 0) //no filehostings selected
  3842. return;
  3843. // STEP 1 linkify the links
  3844. var linkifyRegex = '';
  3845. var hostIdx = cHosts;
  3846. while(hostIdx--)
  3847. {
  3848. linkifyRegex += bulkHosts[hostIdx].linkRegex + "|";
  3849. }
  3850. linkifyRegex = linkifyRegex.replace(/\|$/, '');
  3851. linkify(linkifyRegex);
  3852. //
  3853. //STEP 2 detect link objects
  3854. var xpathAll = '';
  3855. var hostIdx = cHosts;
  3856. while(hostIdx--)
  3857. {
  3858. xpathAll += bulkHosts[hostIdx].xpath + "|";
  3859. }
  3860. xpathAll = xpathAll.replace(/\]\|\/\/a\[/g, " or ");
  3861. xpathAll = xpathAll.replace(/\]\|/, ')]');
  3862. if (filterId != null) //insert id restriction in the xpath
  3863. {
  3864. xpathAll = xpathAll.replace(/\[/, "[@class='" + filterId + "' and (");
  3865. }
  3866. else
  3867. {
  3868. xpathAll = xpathAll.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  3869. }
  3870. var links = document.evaluate(xpathAll, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  3871. if (filterId == null)
  3872. {
  3873. cLinksTotal += links.snapshotLength;
  3874. }
  3875. //
  3876. //STEP 3 bind links with hostings
  3877. var linkIdx = links.snapshotLength;
  3878. var href = null;
  3879. if (linkIdx == 0) // no links found
  3880. return;
  3881. var name;
  3882. while (linkIdx--)
  3883. {
  3884. href = links.snapshotItem(linkIdx).href;
  3885. try // DO NOT REMOVE, filters crap that went through xpath detection
  3886. {
  3887. name = gimmeHostName(href);
  3888. if (href.match(bulkHostNames[name].linkRegexObject) != null)
  3889. bulkHostNames[name].links.push(href);
  3890. }
  3891. catch(e)
  3892. {
  3893.  
  3894. }
  3895. }
  3896. //
  3897. //STEP 4 process the links for each filehosting
  3898. var hostIdx = cHosts;
  3899. var host;
  3900. var m,n;
  3901. var arr;
  3902. while (hostIdx--)
  3903. {
  3904. host = bulkHosts[hostIdx];
  3905. arr = host.links;
  3906. if (arr.length == 0) //no links for this hosting, skip
  3907. {
  3908. continue;
  3909. }
  3910. //links match corrections
  3911. if (host.corrMatch != null)
  3912. {
  3913. var idx = arr.length;
  3914. while (idx--)
  3915. {
  3916. arr[idx] = arr[idx].match(host.corrMatch)[1];
  3917. }
  3918. }
  3919. //links replace corrections
  3920. if ((host.corrReplWhat != null) && (host.corrReplWith != null))
  3921. {
  3922. var idx = arr.length;
  3923. while (idx--)
  3924. {
  3925. arr[idx] = arr[idx].replace(host.corrReplWhat, host.corrReplWith);
  3926. }
  3927. }
  3928. m = arr.length;
  3929. n = host.blockSize;
  3930. if (m > n)
  3931. {
  3932. //insert block separators (RAND_STRING) into the array
  3933. for(var i = n; i < m; i += n + 1)
  3934. {
  3935. arr.splice(i, 0, RAND_STRING);
  3936. }
  3937. }
  3938.  
  3939. host.func.call({ links: arr.join(host.splitSeparator).split(RAND_STRING),
  3940. apiUrl: host.apiUrl,
  3941. postData: host.postData,
  3942. resLinkRegex: host.resLinkRegex,
  3943. resLiveRegex: host.resLiveRegex,
  3944. resDeadRegex: host.resDeadRegex,
  3945. resUnavaRegex: host.resUnavaRegex
  3946. });
  3947. //clean up
  3948. arr.length = 0;
  3949. }
  3950. //
  3951.  
  3952. function gimmeHostName(link)
  3953. {
  3954. return link.replace(/https?:\/\/.*?http(s)?:\/\//, "http$1://").match(/https?:\/\/(?:www\.|[\w\.])*?([\w-]+)\.(?:co\.uk|co\.nz|\w+)\//)[1];
  3955. }
  3956. }
  3957. function checkLinks(filterId)
  3958. {
  3959. startBulkCheck(filterId);
  3960. start(filterId);
  3961. }
  3962.  
  3963. /**
  3964. * Initialises progress box including event binding and CSS
  3965. */
  3966. function initProgressBox()
  3967. {
  3968. if ($("#warlc-progressbox").length > 0)
  3969. return;
  3970. //progressbox css change size and color of progress box
  3971. GM_addStyle("#warlc-progressbox {position:fixed; background:DimGray;" + Progress_box_background_color +
  3972. "; opacity:" + (Progress_box_opacity / 100) +
  3973. "; bottom:" + Progress_box_pos_bottom +
  3974. "px; right:" + Progress_box_pos_right +
  3975. "px; padding:5px; font-size:20px; font-weight:bold; cursor:default;}\
  3976. \
  3977. .warlc-progressbar {text-align:center; color: DimGray; height:2px; margin-bottom:2px;}\
  3978. \
  3979. .warlc-progressitem {}\
  3980. \
  3981. .alive {color:#00FF7F; " + Live_links_color +
  3982. "; background:transparent url(" + alive_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;} .dead {color:" + Dead_links_color +
  3983. "; background:transparent url(" + adead_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;} .unava {color: " + Temp_unavailable_links_color +
  3984. "; background:transparent url(" + unava_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;} .processing {color:Black; " + Container_links_color +
  3985. "; background:transparent url(" + processing_link_gif + ") no-repeat scroll 100% 50%;padding-right:15px;} .prem {color:" + Premium_links_color +
  3986. "; background:transparent url(" + prem_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;}"
  3987. );
  3988. //
  3989. $('body').append(' <div id="warlc-progressbox">\
  3990. <div class="warlc-progressbar"></div>\
  3991. <span class="warlc-progressitem alive"></span> - \
  3992. <span class="warlc-progressitem dead"></span> - \
  3993. <span class="warlc-progressitem unava"></span> - \
  3994. <span class="warlc-progressitem prem"></span> - \
  3995. <span class="warlc-progressitem processing"></span>\
  3996. </div>');
  3997. $('#warlc-progressbox').hide().click(function(){
  3998. clearInterval(intervalId);
  3999. $(this).hide();
  4000. return false;
  4001. });
  4002. $(".warlc-progressbar").progressbar({complete: function(){
  4003. $(this).fadeOut();
  4004. clearInterval(intervalId); //stop refreshing the stats
  4005. }
  4006. })
  4007. .one('progressbarchange', function(){$('#warlc-progressbox').show();});
  4008. }
  4009. /**
  4010. * Updates progress data in progress box
  4011. */
  4012. function updateProgress()
  4013. {
  4014. $("#warlc-progressbox").attr('aria-valuenow', Math.round(((100 / cLinksTotal) * cLinksProcessed)));
  4015. if (cLinksTotal) // some links were detected on page
  4016. {
  4017. var percProgress = Math.round(((100 / cLinksTotal) * cLinksProcessed));
  4018. var $progressItems = $('#warlc-progressbox > .warlc-progressitem');
  4019. $(".warlc-progressbar").progressbar('option', 'value', percProgress);
  4020. if ((cLinksTotal - cLinksProcessed) == 0)
  4021. {
  4022. $progressItems.first().text(cLinksAlive)
  4023. .next().text(cLinksDead)
  4024. .next().text(cLinksUnava)
  4025. .next().text(cLinksprem)
  4026. .next().remove();
  4027. $('#warlc-progressbox').html($('#warlc-progressbox').html().substr(0,$('#warlc-progressbox').html().lastIndexOf(">")+1));
  4028. $('#warlc-progressbox div:first-child').remove();
  4029. }
  4030. else
  4031. {
  4032. $progressItems.first().text(cLinksAlive)
  4033. .next().text(cLinksDead)
  4034. .next().text(cLinksUnava)
  4035. .next().text(cLinksprem)
  4036. .next().text(cLinksTotal - cLinksProcessed);
  4037. }
  4038. }
  4039. }
  4040.  
  4041. function check_all_links()
  4042. {
  4043. add_WARLC_style();
  4044.  
  4045. if (Show_progress_stats)
  4046. {
  4047. initProgressBox();
  4048. intervalId = setInterval(function(){updateProgress();}, Progress_box_refresh_rate);
  4049. }
  4050.  
  4051. startBulkCheck(null);
  4052. start(null);
  4053.  
  4054. if (!containers_processed)
  4055. {
  4056. processContainers();
  4057. }
  4058. }
  4059.  
  4060. //Copies all found dead links to clipboard - right now for Scriptish only
  4061. function copy_dead_to_clipboard()
  4062. {
  4063. initClipBoardTools();
  4064.  
  4065. var deadlinksxpath = "//.[@class='adead_link']";
  4066.  
  4067. var foundlinks = document.evaluate(deadlinksxpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4068. var foundlinkstext = '';
  4069.  
  4070. var foundlinkIdx = foundlinks.snapshotLength;
  4071.  
  4072. while(foundlinkIdx--)
  4073. {
  4074. if (foundlinks.snapshotItem(foundlinkIdx).innerHTML != ' x')
  4075. foundlinkstext += foundlinks.snapshotItem(foundlinkIdx).innerHTML.replace(/\[\/hide:\w+\]/,"") + '\n';
  4076. }
  4077.  
  4078. unsafeWindow.copyToClipboard(foundlinkstext);
  4079. }
  4080.  
  4081. function toggle_autocheck()
  4082. {
  4083. var currentState = GM_getValue("Autocheck", false);
  4084. GM_setValue("Autocheck", !currentState);
  4085.  
  4086. if (currentState == true)
  4087. {
  4088. sendMessage('Autocheck disabled', 'red');
  4089. }
  4090. else
  4091. {
  4092. sendMessage('Autocheck enabled', 'SpringGreen');
  4093. }
  4094. }
  4095. function toggle_Enable_Anonymizer()
  4096. {
  4097. var currentState = GM_getValue("Enable_Anonymizer", false);
  4098. GM_setValue("Enable_Anonymizer", !currentState);
  4099.  
  4100. if (currentState == true)
  4101. {
  4102. GM_setValue("Ref_anonymize_service", "");
  4103. sendMessage('Anonymizer Disabled', 'red');
  4104. }
  4105. else
  4106. {
  4107. GM_setValue("Ref_anonymize_service", "http://hiderefer.com/?");
  4108. sendMessage('Anonymizer Enabled', 'SpringGreen');
  4109. }
  4110. }
  4111.  
  4112. function KeyDownHandler(event)
  4113. {
  4114. var kcode = (event.keyCode) ? event.keyCode : event.which;
  4115. if (event.ctrlKey && event.altKey)
  4116. {
  4117. switch(kcode)
  4118. {
  4119. case 65 : check_all_links(); break;
  4120. case 67 : configuration(); break;
  4121. case 68 : copy_dead_to_clipboard(); break;
  4122. case 87 : toggle_autocheck(); break;
  4123. case 90 : toggle_Enable_Anonymizer(); break;
  4124. }
  4125. }
  4126. }
  4127.  
  4128. //
  4129. //
  4130. // SCRIPT EXECUTION START POINT
  4131. //
  4132. //
  4133. // Safari specific GM_getResourceText override
  4134. if (navigator.userAgent.indexOf('Safari') != -1 && navigator.userAgent.indexOf('Chrome') == -1)
  4135. {
  4136. GM_getResourceText = function(res) {
  4137. var $cssText = GM_getValue("jquery_css", "");
  4138. if ($cssText == "")
  4139. {
  4140. GM_xmlhttpRequest(
  4141. {
  4142. method: 'GET',
  4143. url: 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css',
  4144. onload: function (result)
  4145. {
  4146. GM_setValue("jquery_css", result.responseText);
  4147. window.location.reload();
  4148. }
  4149. });
  4150. }
  4151. else
  4152. {
  4153. return $cssText;
  4154. }
  4155. }
  4156. }
  4157. var jQueryUICSS = GM_getResourceText("jQueryUICSS");
  4158. GM_addStyle(jQueryUICSS);
  4159. //init the stuff
  4160. setVariables();
  4161. initBulkCheck();
  4162. //init info boxes
  4163. messageBox.style.position = 'fixed';
  4164. messageBox.style.top = '20px';
  4165. messageBox.style.left = '10px';
  4166. messageBox.style.opacity = '0.85';
  4167. messageBox.style.background = 'DimGray';
  4168. messageBox.style.fontSize = '36px';
  4169. document.body.appendChild(messageBox);
  4170.  
  4171. //register GM menu commands & keyboard shortcut event handler
  4172. if (Keyboard_functions)
  4173. {
  4174. $(document).keydown(KeyDownHandler);
  4175. GM_registerMenuCommand("[W.A.R. Links Checker] Configuration (" + first_key_keycodename + "+" + second_key_keycodename + "+" + String.fromCharCode(CONFIGURATION_KEYCODE) + ")", configuration);
  4176. 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);
  4177. }
  4178. else
  4179. {
  4180. GM_registerMenuCommand("[W.A.R. Links Checker] Configuration", configuration);
  4181. GM_registerMenuCommand("[W.A.R. Links Checker] Check The Links In This Page", check_all_links);
  4182. }
  4183.  
  4184. //start linkchecking
  4185. if (Autocheck)
  4186. {
  4187. $(document).ready(check_all_links);
  4188. }
  4189.  
  4190. //
  4191. //
  4192. // SCRIPT EXECUTION END POINT
  4193. //
  4194. //
  4195.  
  4196. //shows configuration box
  4197. function configuration()
  4198. {
  4199.  
  4200. //prevent multiple creating of config window
  4201. if ($("#hideshow").length)
  4202. {
  4203. $("#hideshow").show();
  4204. return;
  4205. }
  4206.  
  4207. var configcss = '\
  4208. .popup_block .popup fieldset{\
  4209. padding: 1%;\
  4210. border-style: solid;\
  4211. border-width: 1px;\
  4212. border-color: gray;\
  4213. margin-bottom: 1px;\
  4214. }\
  4215. #h3hideshowtitle{\
  4216. font-size: 2em;\
  4217. }\
  4218. #h3hideshow{\
  4219. font-size: 1.5em;\
  4220. }\
  4221. #imghideshow {\
  4222. border: none;\
  4223. }\
  4224. #plusimage{\
  4225. display:inline;\
  4226. }\
  4227. #hideshow {\
  4228. position: fixed;\
  4229. width: 100%;\
  4230. height: 100%;\
  4231. top: 0;\
  4232. left: 0;\
  4233. font-size:12px;\
  4234. z-index:2147483645;\
  4235. text-align:left;\
  4236. }\
  4237. #fade {\
  4238. background: #000;\
  4239. position: fixed;\
  4240. width: 100%;\
  4241. height: 100%;\
  4242. opacity: .80;\
  4243. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";\
  4244. left: 0;\
  4245. z-index: 10;\
  4246. }\
  4247. .popup_block {\
  4248. font-family:verdana;\
  4249. color:black;\
  4250. background: #ddd;\
  4251. padding: 10px 20px;\
  4252. border: 2px solid DarkOrange;\
  4253. float: left;\
  4254. width: 700px;\
  4255. position: absolute;\
  4256. top: 7%;\
  4257. left: 50%;\
  4258. bottom: 7%;\
  4259. margin: 0 0 0 -350px;\
  4260. -moz-border-radius:10px;\
  4261. z-index: 100;\
  4262. \
  4263. }\
  4264. .popup_block .popup {\
  4265. float: left;\
  4266. width: 100%;\
  4267. background: #fff;\
  4268. margin: 10px 0;\
  4269. padding: 0px 0 0px;\
  4270. border-left: 1px solid #bbb;\
  4271. border-top: 1px solid #bbb;\
  4272. border-right: 1px solid #bbb;\
  4273. }\
  4274. #h3hideshow{\
  4275. margin: 1px 0 0px;\
  4276. padding: 1px 10px;\
  4277. border-bottom: 1px solid #bbb;\
  4278. font-size: 1.5em;\
  4279. font-weight: normal;\
  4280. cursor:pointer;\
  4281. background:#DDDDDD none repeat scroll 0 0;\
  4282. }\
  4283. #h3hideshow:hover{\
  4284. background:#C0BEBE none repeat scroll 0 0;\
  4285. }\
  4286. #h3hideshowtitle{\
  4287. margin: 2px 0 0px;\
  4288. padding: 7px 10px;\
  4289. border-bottom: 1px solid #bbb;\
  4290. font-size: 1.5em;\
  4291. font-weight: normal;\
  4292. }\
  4293. .popup_block .popup a {\
  4294. color:DarkSkyBlue;\
  4295. text-decoration:none;\
  4296. }\
  4297. .popup p {\
  4298. padding: 1px 10px;\
  4299. margin: 0px 0;\
  4300. -x-system-font:none;\
  4301. font-family:verdana,geneva,lucida,"lucida grande",arial,helvetica,sans-serif;\
  4302. font-size:10pt;\
  4303. font-size-adjust:none;\
  4304. font-stretch:normal;\
  4305. font-style:normal;\
  4306. font-variant:normal;\
  4307. font-weight:normal;\
  4308. line-height:normal;\
  4309. }\
  4310. #sites {\
  4311. padding: 1px 10px;\
  4312. margin: 0px 0;display:inline-block;width:16em;\
  4313. }\
  4314. #dev_ver {\
  4315. color: #00FF00;\
  4316. background: Black;\
  4317. text-align: right;\
  4318. }\
  4319. #sites_suspended {\
  4320. padding: 1px 10px;\
  4321. margin: 0px 0;display:inline-block;width:16em;\
  4322. text-decoration: line-through;\
  4323. }\
  4324. .popup img.cntrl {\
  4325. position: absolute;\
  4326. right: -15px;\
  4327. top: -15px;\
  4328. }\
  4329. #bulk {\
  4330. font-size:8pt;\
  4331. color:orange;\
  4332. padding: 1px 10px;\
  4333. margin: 0px 0;\
  4334. display:inline-block;\
  4335. width:100px;\
  4336. }\
  4337. #note {\
  4338. font-size:7pt;\
  4339. color:gray;\
  4340. padding: 1px 10px;\
  4341. margin: 0px 0;display:inline-block;\
  4342. min-width:100px;\
  4343. }\
  4344. #rednote {\
  4345. font-size:7pt;\
  4346. color:red;\
  4347. padding: 1px 10px;\
  4348. margin: 0px 0;display:inline-block;\
  4349. }\
  4350. #configinfo {\
  4351. font-size:8pt;\
  4352. color:gray;\
  4353. padding: 1px 10px;\
  4354. margin: 0px 0;display:inline-block;width:60em;\
  4355. }\
  4356. #refAnonymizer, #inputColorLive, #inputColorprem, #hostSearchBox2, #hostSearchBox, #inputColorDead, #inputColorTemp, #inputColorCont, #selectAllButton, #selectNoneButton, #invertButton, #selectAllButton2, #selectNoneButton2, #invertButton2 {\
  4357. color:black;\
  4358. border-style: solid;\
  4359. border-width: 1px;\
  4360. border-color: gray;\
  4361. }\
  4362. #h3hideshowcontent {\
  4363. min-height:220px;\
  4364. max-height:220px;\
  4365. overflow:auto;\
  4366. display: none;\
  4367. padding: 10px 10px;\
  4368. }\
  4369. #specinfo{\
  4370. font-size:14px;\
  4371. }\
  4372. .warlc-ui-tab {\
  4373. height:300px;\
  4374. overflow:auto;\
  4375. }\
  4376. #warlcsitelist2, #warlcsitelist1 {\
  4377. height:220px;\
  4378. border-top: 1px solid #ddd;\
  4379. padding-top: 5px;\
  4380. overflow:auto;\
  4381. }\
  4382. input:hover+label {\
  4383. background:#F1F77C;\
  4384. font-size:110%;\
  4385. }\
  4386. ';
  4387.  
  4388. GM_addStyle(configcss);
  4389.  
  4390. var customRulesRefHTML =
  4391. '\
  4392. <br>\
  4393. A custom rule consists of <b>commands</b>. A command must be on its own line and in this form:<br>\
  4394. <b>@keyword</b> <i>parameter</i>\
  4395. <br><br>\
  4396. 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. \
  4397. <br><br>\
  4398. 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.\
  4399. 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.\
  4400. 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.\
  4401. 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,\
  4402. but all commands until the next valid @customrule are ignored.<br><br>\
  4403. Available forms and types:\
  4404. <ul>\
  4405. <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.\
  4406. <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.\
  4407. <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.\
  4408. <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.\
  4409. </ul>\
  4410. Other available commands:<br>\
  4411. (Note: There can be more than 1 (up to 10) of these commands per rule. In that case, any of them will work.)\
  4412. <ul>\
  4413. <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.\
  4414. It can also specify multiple (up to 10) Top Level Domains (.com, .net etc.)<br>\
  4415. <ul>examples:<br>\
  4416. <li>good: <i>filehost.com/download/</i><br>\
  4417. <li>good: <i>download.filehost.net/?d=</i><br>\
  4418. <li>good: <i>filehost. com net co.uk /</i> - multiple TLDs (note the spaces before, between and after TLDs)<br>\
  4419. <li>ok: <i>filehost.com/</i> - works, but will also find links like filehost.com/login etc. Sometimes it\'s unavoidable though.<br>\
  4420. <li>bad: <i>d8523.filehost.com/</i> - d8523 probably is not constant<br>\
  4421. <li>bad: <i>filehost.com/3bfiq5d1</i> - 3bfiq5d1 probably is not constant<br>\
  4422. <li>bad: <i>filehost.com</i> - no slash<br>\
  4423. </ul>\
  4424. \
  4425. <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.\
  4426. 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 \
  4427. &lt;div&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;p&gt; even if there are new lines, tabulators etc.\
  4428. <li><b>@deadmatch</b> <i>pattern</i> - ignored for OBSOLETE, required for others. (For HEADERS some servers return 404 Error \
  4429. 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.)\
  4430. Two spaces again match any whitespace.\
  4431. <li><b>@unavamatch</b> <i>pattern</i> - optional, ignored for OBSOLETE and HEADERS. If found, the link is deemed temporarily unavailable.\
  4432. Two spaces again match any whitespace.\
  4433. <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. \
  4434. <li><b>@deadlink</b> <i>url</i> - optional. Example dead link.\
  4435. </ul>\
  4436. \
  4437. ';
  4438.  
  4439. //close image and css taken from = http://www.sohtanaka.com/web-design/examples/css-popup icon_close.png;
  4440. var configurationinnerHTML =
  4441. '<div id="fade"></div>\
  4442. <div class="popup_block">\
  4443. <div class="popup">\
  4444. <a href="#"><img id="imghideshow" title="Close" class="cntrl" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAfCAYAAAD0ma06AAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAY1SURBVHjapFZbbFRVFN0zd6Yz08dMoUNf9EGxUItJK62I4AOJEYiQoqE+0OgHCiqG+PgQozH6ofyIJiYEMRqNJpggHySlrRM+hCAtajAUaGgEi9BBSilMO0PnfWeOa597bjt9AEVvsubOPWefs/br7H0sQgj6P4/FYrk9+WkSuoAHgCrgLvV9DLgMdID02rQZmfAmaAJaxS2edDr9s67rL7EB/9XCUuALoEl+pZJEvTAo8A9s6iVKxojKYWheAWxuIMr2GGKp1KHh4eF3vF4vW59me6ZD2Ajsle6LXify7SI68iNROIgtIKtpBvQEB5DI7iC6Zw3Rmi1EM0vlBsFg8OX8/PxvWQdFKm5E2KhiQ9R9iOjL17E6QFRUhAGQpFNjklYrhhT6YbndTtT8LtGjG+T0lStXNhcVFTGpnkE8jpAT4hdgNvm+Ivr+AyIHtM+Fu3Ss0RUZO8pqqos/NiDLblgcQO48/CzRpk/l9KlTp56oq6s7gL8JkzST0AespN9/Itq2Hu7xQnsbRFOcWSBKT50FVpMUHrBD/iKsXb+V6KmtFI/H/3Q6nZzdEZPU1PVFSXbtEoltz0Nzm2HRqleIvjsLa/9CoiSnBs99cwaym4lCYSRSHr4/REg64SBHTX9//2fqGNmVevJ5jn/0Xe+Rhd2SBVdGkInr3hizZI8fOibGg8fM5/EthgIJwxPJ7a/Jd05Ozn14uQEHGRGXsVtOIwHS2nbDlTOIYlHoMoUL9w0Q/GSA/0/KeXglFmEWsp/uIjp9FAbnzWttbV3H3ECWFWdnubTu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efT8aOHjizcxW4BVgbm2N0TS9RqFzF0PiC8DuPcLhj6QfOGYAXcDjz55Knv1xVx+YCiwDLINdKYdMXjqAVLzR99LqN8oebWqNRu1qixxC3hASiwOser1sdtP9kZeBTUBZPIY/HAKtRyXDB6++kieVlnZg72iNfA14/qa4HVwasTnmuLzQm3STrtxRUmetW/OXsg3hOh9Z9CTtT+FDsfO7ff2djyVfb5xlrNuxoygQLwbHgUAEjnwIi5dm3J4zsgTYNbqfHAC2H0m7ibf608V7B53urOYngWJ1/YoXS2+bMq9oUuiIbgSYvjQQ6P6b03hsv+trmm3I3GtNZQUUvT1wz6YsnQf0U8CTFHgrFZDw1Hnfl34da2vcFCFTAMqYaBr07nD40/IebZui1t9qqWgE3t6uOfCB3gF8FegrBB6x5qrri9688a+JYN6UK57eijDo2HI2+8/HB/8AVAHlQCfQCvz7chOIBTzS1FocNEx1VSNjHmFWS9jvC6mk11QWAbePhl4K/JWa1fbSypU2uSsI8ZgnEyG2wE9igb/Fa7f9MHGTQuANdbcGLzyFV2smiukr7Siw4WqGvZhlqznxhX7cTzmXayA234c33lqFcjneIqZfxX1TJr+t4dWtcUGXgusNgaPLwvQpgJjHcK8EPOAM6J7+vblEfK0fZ9RoqwAnpTnznsN/2jOkuvOUNvmpXmMTrrQuoJWGj36bAugAMhSo2cnsgUil2fb5LRHi1/jRGlJHc5zenaV7p0PyRB7XkR7vfa4IlZtT69fbVKywyafh8HODHN+WfhH4FnD2alN1B7AdOAcMeT29HfiZJ5oZ3sHrgAeBvcCANzBsHu7Ohe2/AwDnNnxcIIMIUgAAAABJRU5ErkJggg=="></img>&nbsp;W.A.R. Links Checker Customized Premium Link version Configuration</div>\
  4446. <div id="warlc-conf-tabs">\
  4447. <ul>\
  4448. <li><a href="#tabs-1">Filehostings</a></li>\
  4449. <li><a href="#tabs-2">Containers</a></li>\
  4450. <li><a href="#tabs-5">Custom rules</a></li>\
  4451. <li><a href="#tabs-3">Settings</a></li>\
  4452. <li><a href="#tabs-4">About</a></li>\
  4453. </ul>\
  4454. <div id="tabs-1" class="warlc-ui-tab">\
  4455. <div class="warlc-ui-buttonset">\
  4456. <input type="button" class="warlc-ui-select-all" value="Select All">\
  4457. <input type="button" class="warlc-ui-select-none" value="Select None">\
  4458. <input type="button" class="warlc-ui-select-invert" value="Invert">\
  4459. </div><br>\
  4460. <div>Search: <input type="textbox" id="hostSearchBox" value=""></div><br>\
  4461. <div id="warlcsitelist1"><span>Empty</span></div>\
  4462. </div>\
  4463. <div id="tabs-2" class="warlc-ui-tab">\
  4464. <div class="warlc-ui-buttonset">\
  4465. <input type="button" class="warlc-ui-select-all" value="Select All">\
  4466. <input type="button" class="warlc-ui-select-none" value="Select None">\
  4467. <input type="button" class="warlc-ui-select-invert" value="Invert">\
  4468. </div><br>\
  4469. <div>Search: <input type="textbox" id="hostSearchBox2" value=""></div><br>\
  4470. <div id="warlcsitelist2"><span>Empty</span></div>\
  4471. </div>\
  4472. <div id="tabs-5" class="warlc-ui-tab">\
  4473. <div class="warlcsettings">\
  4474. <fieldset><input type="checkbox" id="Custom_rules"> Enable custom rules <div id="bulk">EXPERIMENTAL</div></fieldset>\
  4475. <br>\
  4476. <div>Edit custom rules: \
  4477. <a href="#" id="showCustomRulesReference">(<b>Click here to show/hide the reference</b>)</a>\
  4478. <div id="customRulesReference" style="display:none;">'
  4479. + customRulesRefHTML + '\
  4480. </div>\
  4481. <textarea style="width:100%;height:200px;" id="Custom_rules_text"></textarea>\
  4482. </div>\
  4483. </div>\
  4484. </div>\
  4485. <div id="tabs-3" class="warlc-ui-tab">\
  4486. <div class="warlcsettings">\
  4487. <fieldset>\
  4488. <p><input type="checkbox" id="Keyboard_functions"> Enable keyboard shortcuts</p>\
  4489. <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>\
  4490. </fieldset>\
  4491. <fieldset>\
  4492. <p><input type="checkbox" id="Color_DL_links"> Color DL links</p>\
  4493. <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>\
  4494. <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>\
  4495. <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>\
  4496. <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>\
  4497. <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>\
  4498. <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>\
  4499. <p><input type="checkbox" id="Show_line_through_in_dead_links"> Show line through in dead links</p>\
  4500. <p><input type="checkbox" id="Show_black_background_in_DL_links"> Show black background in DL links</p>\
  4501. <p><input type="checkbox" id="Do_not_linkify_DL_links"> Do NOT linkify DL links</p>\
  4502. <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>\
  4503. <p><input type="checkbox" id="Display_full_links_in_link_containers"> Display full links in link containers</p><br>\
  4504. <fieldset>\
  4505. <p><input type="radio" name="warlciconset" value="0"> No icons</p>\
  4506. <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>\
  4507. <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>\
  4508. <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>\
  4509. </fieldset>\
  4510. </fieldset>\
  4511. <fieldset>\
  4512. <div id="sites"><input type="checkbox" id="Autocheck"> Autocheck</div><br><div id="configinfo">Script starts check automatically.</div><br>\
  4513. </fieldset>\
  4514. <fieldset>\
  4515. <div id="sites"><input type="checkbox" id="Show_progress_stats"> Show progress stats</div><br>\
  4516. </fieldset>\
  4517. <fieldset>\
  4518. <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>\
  4519. </fieldset>\
  4520. <fieldset>\
  4521. <p><input type="checkbox" id="Enable_Anonymizer"> Enable Anonymizer</div><div id="bulk">EXPERIMENTAL Note: Checkbox does not work use CTRL+ALT+Z.</p>\
  4522. <div id="sites"><label for="refAnonymizer">Refererer anonymizing service</label><input type="text" id="refAnonymizer" value="' + Ref_anonymize_service + '"></div>\
  4523. </fieldset>\
  4524. </div>\
  4525. </div>\
  4526. <div id="tabs-4" class="warlc-ui-tab">\
  4527. <p><b>Author:</b> <a href="http://www.warlc.5gbfree.com/viewtopic.php?f=12&t=12">mental</a></p>\
  4528. <br />\
  4529. <p><b>Currently supported:</b><br>\
  4530. Filehostings: ' + allHostNames.length + '<br />\
  4531. Containers: ' + allContainerNames.length + '<br />\
  4532. Obsolete sites: ' + allObsoleteNames.length + '<br /></p>\
  4533. <br />\
  4534. <p><b>Based on:</b><br>\
  4535. <a href="http://userscripts-mirror.org/scripts/show/125631.html">W.A.R. Links Checker - Dev</a></p>\
  4536. <br />\
  4537. <p><b>Uses:</b></p>\
  4538. <p>adam_3\'s <a href="http://userscripts-mirror.org/scripts/show/2254">Linkify ting</a> (modified)</p>\
  4539. <p><a href="http://jquery.com/">jQuery</a> JavaScript Library</p>\
  4540. <br />\
  4541. <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>\
  4542. </div>\
  4543. </div>\
  4544. </div>\
  4545. </div>';
  4546. $('body').append('<div id="hideshow">' + configurationinnerHTML + '</div>');
  4547. $("#warlc-conf-tabs").tabs({ fx: { opacity: 'toggle', duration: 'fast' } });
  4548. $("#imghideshow").click(function(event){$("#hideshow").hide(); event.preventDefault();});
  4549. var elmHostList = document.getElementById("warlcsitelist1");
  4550. var elmContainerList = document.getElementById("warlcsitelist2");
  4551. buildSettings();
  4552. buildSitelist("", allHostNames, elmHostList);
  4553. buildSitelist("", allContainerNames, elmContainerList);
  4554. if (DEBUG_MODE)
  4555. {
  4556. //log all sites availability status
  4557. diagSites();
  4558. }
  4559. //handler for checkbox state change
  4560. function changeConfiguration(e)
  4561. {
  4562. var element = e.target;
  4563.  
  4564. if (element.type == 'checkbox')
  4565. {
  4566. if (element.checked == 1)
  4567. {
  4568. GM_setValue(element.id, true);
  4569. }
  4570. else
  4571. {
  4572. GM_setValue(element.id, false);
  4573. }
  4574.  
  4575. }
  4576. setVariables();
  4577. }
  4578.  
  4579. //Selects all filehosting checkboxes
  4580. function selectAll()
  4581. {
  4582. $(":checkbox:visible:not(:checked)").prop("checked",true)
  4583. .each(function(index, element){GM_setValue(this.id, true)});
  4584. }
  4585.  
  4586. //Deselects all filehosting checkboxes
  4587. function selectNone()
  4588. {
  4589. $(":checkbox:visible:checked").prop("checked",false)
  4590. .each(function(index, element){GM_setValue(this.id, false)});
  4591. }
  4592.  
  4593. //Inverts filehosting checkboxes selection
  4594. function selectInvert()
  4595. {
  4596. var $checked = $(":checkbox:visible:checked");
  4597. var $unchecked = $(":checkbox:visible:not(:checked)");
  4598. $unchecked.prop("checked",true)
  4599. .each(function(index, element){GM_setValue(this.id, true)});
  4600. $checked.prop("checked",false)
  4601. .each(function(index, element){GM_setValue(this.id, false)});
  4602. }
  4603. //toggles anonymizer on off
  4604. function Enable_Anonymizer()
  4605. {
  4606. var $checked = $(":checkbox:visible:checked");
  4607. var $unchecked = $(":checkbox:visible:not(:checked)");
  4608. $unchecked.prop("checked",true)
  4609. .each(function(index, element){GM_setValue(this.id, true)});
  4610. $checked.prop("checked",false)
  4611. .each(function(index, element){GM_setValue(this.id, false)});
  4612. }
  4613.  
  4614. function changeRefAnonymizer(){
  4615. GM_setValue("Ref_anonymize_service", $("#refAnonymizer").attr("value"));
  4616. }
  4617.  
  4618. //Sets live links color
  4619. function changeColorLive()
  4620. {
  4621. var inColorLive = document.getElementById("inputColorLive");
  4622. inColorLive.style.background = inColorLive.value;
  4623. GM_setValue("Live_links_color", inColorLive.value);
  4624. }
  4625.  
  4626. //Sets dead links color
  4627. function changeColorDead()
  4628. {
  4629. var inColorDead = document.getElementById("inputColorDead");
  4630. inColorDead.style.background = inColorDead.value;
  4631. GM_setValue("Dead_links_color", inColorDead.value);
  4632. }
  4633.  
  4634. //Sets temp. unavailable links color
  4635. function changeColorTemp()
  4636. {
  4637. var inColorTemp = document.getElementById("inputColorTemp");
  4638. inColorTemp.style.background = inColorTemp.value;
  4639. GM_setValue("Temp_unavailable_links_color", inColorTemp.value);
  4640. }
  4641.  
  4642. //Sets temp. unavailable links color
  4643. function changeColorCont()
  4644. {
  4645. var inColorCont = document.getElementById("inputColorCont");
  4646. inColorCont.style.background = inColorCont.value;
  4647. GM_setValue("Container_links_color", inColorCont.value);
  4648. }
  4649. //Sets premium. links color
  4650. function changeColorprem()
  4651. {
  4652. var inColorprem = document.getElementById("inputColorprem");
  4653. inColorprem.style.background = inColorprem.value;
  4654. GM_setValue("Premium_links_color", inColorprem.value);
  4655. }
  4656.  
  4657. //Diagnose sites for availability
  4658. function diagSites()
  4659. {
  4660. var boxes = document.getElementById("warlcsitelist1").getElementsByTagName("input");
  4661.  
  4662. for (var i = 0, n = boxes.length - 1; i < n; i++)
  4663. {
  4664. if (boxes[i].type == "checkbox")
  4665. {
  4666. checkAvailability(boxes[i]);
  4667. }
  4668. }
  4669.  
  4670. boxes = document.getElementById("warlcsitelist2").getElementsByTagName("input");
  4671.  
  4672. for (var i = 0, n = boxes.length - 1; i < n; i++)
  4673. {
  4674. if (boxes[i].type == "checkbox")
  4675. {
  4676. checkAvailability(boxes[i]);
  4677. }
  4678. }
  4679.  
  4680. function checkAvailability(cbElm)
  4681. {
  4682. var cb = cbElm;
  4683. GM_xmlhttpRequest(
  4684. {
  4685. method: 'HEAD',
  4686. url: 'http://' + cb.nextSibling.textContent.replace(' ', ''),
  4687. headers: {
  4688. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  4689. 'Accept': 'text/xml',
  4690. 'Referer': ""
  4691. },
  4692. onload: function (result)
  4693. {
  4694. if (result.status != 200)
  4695. {
  4696. GM_log(cb.nextSibling.textContent + ' --- status: [' + result.status + '] ' + result.statusText + ', final url: ' + result.finalUrl);
  4697. }
  4698. },
  4699. onerror: function (result)
  4700. {
  4701. if (result.status != 200)
  4702. {
  4703. GM_log(cb.nextSibling.textContent + ' --- status: [' + result.status + '] ' + result.statusText + ', final url: ' + result.finalUrl);
  4704. }
  4705. }
  4706. });
  4707. }
  4708. }
  4709. function buildSettings()
  4710. {
  4711. $(".warlcsettings :checkbox").each(function(){
  4712. $(this).prop("checked", GM_getValue($(this).attr("id")))
  4713. .click(function(e){
  4714. GM_setValue($(this).attr("id"), $(this).prop("checked"));
  4715. setVariables();
  4716. });
  4717. })
  4718. }
  4719. //Dynamic build of host list
  4720. //param search [string] searches for hostnames matching search substring
  4721. //param siteNames [array] array of site names
  4722. //param targetNode [DOM Node] where the list should be built
  4723. // first child node is replaced
  4724. function buildSitelist(search, siteNames, targetNode)
  4725. {
  4726. var searchRegex = new RegExp("\\|?([\\w\\.-]*" + search.replace(/\./g,"\\.").replace(/-/g, "\\-") + "[\\w\\.-]*)\\|?", "i");
  4727. var $targetNode = $(targetNode).empty();
  4728. var searchedSite = "";
  4729. $.each(siteNames, function(i, site){
  4730. if (searchedSite = site.match(searchRegex))
  4731. {
  4732. var baseSite = site.replace(/\|.+/, ""); //filehosting main domain
  4733. //ensuring backward compatibility with the rest of code, to be refactored later
  4734. var oldRSLCvalue = "Check_" + baseSite.replace(/\|.+/, "").replace(/\./g,"_dot_").replace(/-/g, "_dash_") + "_links";
  4735. //
  4736. $targetNode.append('<input type="checkbox" id="' + oldRSLCvalue +'" />\
  4737. <label for="' + oldRSLCvalue + '">' + searchedSite[1] + '</label>' +
  4738. ((searchedSite[1] != baseSite) ? ('<div id="note"> ( ~ ' + baseSite + ' )</div>') : (""))
  4739. );
  4740. $("#" + oldRSLCvalue).prop("checked", GM_getValue(oldRSLCvalue, false))
  4741. .change(changeConfiguration);
  4742. $targetNode.append('<br />');
  4743. }
  4744. });
  4745. $targetNode.append("<hr>");
  4746. //obsolete hosts checkbox
  4747. $targetNode.append('<input type="checkbox" id="Obsolete_file_hosts" /><label for="Obsolete_file_hosts">Obsolete file hosts</label>');
  4748. $("#Obsolete_file_hosts").prop("checked", GM_getValue("Obsolete_file_hosts", false))
  4749. .change(changeConfiguration);
  4750. $targetNode.append('<br />');
  4751. var foundName = "";
  4752. $.each(allObsoleteNames, function(i, site){
  4753. if (foundName = allObsoleteNames[i].match(searchRegex))
  4754. {
  4755. $targetNode.append('<div id="note">' + foundName[1] + '</div>');
  4756. }
  4757. })
  4758. }
  4759. var hostSearchBox = document.getElementById("hostSearchBox");
  4760. hostSearchBox.addEventListener('keyup', function(){buildSitelist(hostSearchBox.value, allHostNames, elmHostList);}, false);
  4761. var hostSearchBox2 = document.getElementById("hostSearchBox2");
  4762. hostSearchBox2.addEventListener('keyup', function(){buildSitelist(hostSearchBox2.value, allContainerNames, elmContainerList);}, false);
  4763. $(".warlc-ui-select-all").click(selectAll).button();
  4764. $(".warlc-ui-select-none").click(selectNone).button();
  4765. $(".warlc-ui-select-invert").click(selectInvert).button();
  4766. $(".warlc-ui-buttonset").buttonset();
  4767. var inColorLive = document.getElementById("inputColorLive");
  4768. inColorLive.addEventListener('keyup', changeColorLive, false);
  4769.  
  4770. var inColorDead = document.getElementById("inputColorDead");
  4771. inColorDead.addEventListener('keyup', changeColorDead, false);
  4772.  
  4773. var inColorTemp = document.getElementById("inputColorTemp");
  4774. inColorTemp.addEventListener('keyup', changeColorTemp, false);
  4775.  
  4776. var inColorCont = document.getElementById("inputColorCont");
  4777. inColorCont.addEventListener('keyup', changeColorCont, false);
  4778. var inColorprem = document.getElementById("inputColorprem");
  4779. inColorprem.addEventListener('keyup', changeColorprem, false);
  4780. $("#refAnonymizer").change(changeRefAnonymizer);
  4781. //buttons and edit boxes init end
  4782.  
  4783. //icon sets radio buttons
  4784. var radioButtons = document.getElementsByName("warlciconset");
  4785. radioButtons[Icon_set].checked = "checked";
  4786.  
  4787. radioButtons[0].addEventListener("change", updateIconSet);
  4788. radioButtons[1].addEventListener("change", updateIconSet);
  4789. radioButtons[2].addEventListener("change", updateIconSet);
  4790. radioButtons[3].addEventListener("change", updateIconSet);
  4791. function updateIconSet()
  4792. {
  4793. GM_setValue("Icon_set", this.value * 1);
  4794. }
  4795. //
  4796. $('#showCustomRulesReference').click(function(e){
  4797. e.preventDefault();
  4798. $('#customRulesReference').toggle();
  4799. });
  4800. $('#Custom_rules_text')
  4801. .val(Custom_rules_text)
  4802. .change(saveCustomRules);
  4803. function saveCustomRules(e)
  4804. {
  4805. var cr = parseCustomRules(this.value);
  4806. if (cr.info.length)
  4807. 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, ' '));
  4808. GM_setValue('Custom_rules_text', this.value);
  4809. GM_setValue('last_custom_rules_nag', ''+new Date().getTime()); //reset nag
  4810. }
  4811. }
  4812.  
  4813. //begin standard link checking algorithm
  4814. function start(filterId)
  4815. {
  4816. var doNotLinkify = Do_not_linkify_DL_links;
  4817.  
  4818. // USER SELECTED FILE HOSTS INITIALIZATION START
  4819. var http_file_hosts = new Array(); //standard hostings
  4820. var http_file_hosts_coded = new Array(); //hostings which has to be decoded to obtain real checkable link
  4821. var http_file_hosts_obsolete = new Array(); //dead hostings
  4822. var http_file_hosts_headers_only = new Array(); //hostings with direct download, must be handled via headers only
  4823.  
  4824. initFileHosts();
  4825. initFileHostsHeadersOnly();
  4826. initFileHostsCustom(); //CustomRules
  4827. // USER SELECTED FILE HOSTS INITIALIZATION END
  4828.  
  4829. // LINKIFICATION START
  4830. var totalxpath = '';
  4831. var totalxpathcoded = '';
  4832. var totalxpathobsolete = '';
  4833. var totalxpathheadersonly = '';
  4834. var totalourls = '';
  4835.  
  4836. var filehostLen = http_file_hosts.length;
  4837. var filehostCodedLen = http_file_hosts_coded.length;
  4838. var filehostObsoleteLen = http_file_hosts_obsolete.length;
  4839. var filehostHeadersOnlyLen = http_file_hosts_headers_only.length;
  4840.  
  4841. var filehostIdx = filehostLen;
  4842. var filehostCodedIdx = filehostCodedLen;
  4843. var filehostObsoleteIdx = filehostObsoleteLen;
  4844. var filehostHeadersOnlyIdx = filehostHeadersOnlyLen;
  4845.  
  4846. if ((filehostIdx == 0) && (filehostCodedIdx == 0) && (filehostHeadersOnlyIdx == 0) && (filehostObsoleteIdx == 0))
  4847. return;
  4848.  
  4849. while (filehostIdx--)
  4850. {
  4851. totalourls += http_file_hosts[filehostIdx][0] + '|';
  4852. totalxpath += http_file_hosts[filehostIdx][4] + '|';
  4853. }
  4854.  
  4855. while (filehostCodedIdx--)
  4856. {
  4857. totalourls += http_file_hosts_coded[filehostCodedIdx][0] + '|';
  4858. totalxpathcoded += http_file_hosts_coded[filehostCodedIdx][3] + '|';
  4859. }
  4860.  
  4861. while (filehostObsoleteIdx--)
  4862. {
  4863. totalourls += http_file_hosts_obsolete[filehostObsoleteIdx][0] + '|';
  4864. totalxpathobsolete += http_file_hosts_obsolete[filehostObsoleteIdx][1] + '|';
  4865. }
  4866.  
  4867. while (filehostHeadersOnlyIdx--)
  4868. {
  4869. totalourls += http_file_hosts_headers_only[filehostHeadersOnlyIdx][0] + '|';
  4870. totalxpathheadersonly += http_file_hosts_headers_only[filehostHeadersOnlyIdx][3] + '|';
  4871. }
  4872.  
  4873. totalourls = totalourls.replace(/\|$/g, "");
  4874. //TODO: further refactoring needed
  4875. totalxpath = totalxpath.replace(/\]\|\/\/a\[/g, " or ");
  4876. totalxpath = totalxpath.replace(/\]\|/, ')]');
  4877. totalxpathcoded = totalxpathcoded.replace(/\]\|\/\/a\[/g, " or ");
  4878. totalxpathcoded = totalxpathcoded.replace(/\]\|/, ')]');
  4879. totalxpathobsolete = totalxpathobsolete.replace(/\]\|\/\/a\[/g, " or ");
  4880. totalxpathobsolete = totalxpathobsolete.replace(/\]\|/, ')]');
  4881. totalxpathheadersonly = totalxpathheadersonly.replace(/\]\|\/\/a\[/g, " or ");
  4882. totalxpathheadersonly = totalxpathheadersonly.replace(/\]\|/, ')]');
  4883. if (filterId != null) //insert id restriction in the xpath
  4884. {
  4885. totalxpath = totalxpath.replace(/\[/g, "[@class='" + filterId + "' and (");
  4886. totalxpathcoded = totalxpathcoded.replace(/\[/g, "[@class='" + filterId + "' and (");
  4887. totalxpathobsolete = totalxpathobsolete.replace(/\[/g, "[@class='" + filterId + "' and (");
  4888. totalxpathheadersonly = totalxpathheadersonly.replace(/\[/g, "[@class='" + filterId + "' and (");
  4889. }
  4890. else
  4891. {
  4892. totalxpath = totalxpath.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4893. totalxpathcoded = totalxpathcoded.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4894. totalxpathobsolete = totalxpathobsolete.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4895. totalxpathheadersonly = totalxpathheadersonly.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4896. }
  4897. linkify(totalourls);
  4898. //LINKIFICATION END
  4899. //ENCRYPTED LINKS PROCESSING START
  4900. if (http_file_hosts_coded.length > 0)
  4901. {
  4902. var linksCoded = document.evaluate(totalxpathcoded, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4903.  
  4904. // decrypt coded links (redirects, link protectors etc.)
  4905. if (linksCoded.snapshotLength > 0)
  4906. {
  4907. var link;
  4908. var reallinkreg;
  4909. var reallinkcorrection;
  4910.  
  4911. if (filterId == null)
  4912. {
  4913. cLinksTotal += linksCoded.snapshotLength;
  4914. }
  4915.  
  4916. var y = linksCoded.snapshotLength - 1;
  4917. do
  4918. {
  4919. // linksCoded.snapshotItem(y).id = 'processing_link';
  4920. link = linksCoded.snapshotItem(y);
  4921. filehostIdx = filehostCodedLen;
  4922. while (filehostIdx--)
  4923. {
  4924. if (link.href.match(http_file_hosts_coded[filehostIdx][0]))
  4925. {
  4926. link.href = link.href.replace(/http:\/\/.*?(?:\?|=)http:\/\//, 'http://');
  4927. reallinkreg = http_file_hosts_coded[filehostIdx][1];
  4928. reallinkcorrection = http_file_hosts_coded[filehostIdx][2];
  4929.  
  4930. decurl(link, reallinkreg, reallinkcorrection);
  4931. break;
  4932. }
  4933. }
  4934. }
  4935. while (y--);
  4936. }
  4937. }
  4938. //ENCRYPTED LINKS PROCESSING END
  4939.  
  4940. //STANDARD LINKCHECKING START
  4941. if (http_file_hosts.length > 0)
  4942. {
  4943. var lianks = document.evaluate(totalxpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4944.  
  4945. if (filterId == null)
  4946. {
  4947. cLinksTotal += lianks.snapshotLength;
  4948. }
  4949.  
  4950. if (lianks.snapshotLength > 0)
  4951. {
  4952. var link;
  4953.  
  4954. var URL = "";
  4955. var name = "";
  4956. var isAliveRegex = "";
  4957. var isDeadRegex = "";
  4958. var isUnavaRegex = "";
  4959. var ispremRegex = "";
  4960. var tryLoop = false;
  4961.  
  4962. var y = lianks.snapshotLength;
  4963.  
  4964. while (y--)
  4965. {
  4966. link = lianks.snapshotItem(y);
  4967.  
  4968. filehostIdx = filehostLen;
  4969. while (filehostIdx--)
  4970. {
  4971. if (link.href.match(http_file_hosts[filehostIdx][0]))
  4972. {
  4973. link.href = link.href.replace(/http:\/\/.*?http:\/\//, 'http://'); //anonymizers
  4974. isAliveRegex = http_file_hosts[filehostIdx][1];
  4975. isDeadRegex = http_file_hosts[filehostIdx][2];
  4976. isUnavaRegex = http_file_hosts[filehostIdx][3];
  4977. ispremRegex = http_file_hosts[filehostIdx][6];
  4978. tryLoop = http_file_hosts[filehostIdx][5];
  4979.  
  4980. geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, tryLoop);
  4981.  
  4982. break;
  4983. }
  4984. }
  4985. }
  4986. }
  4987. }
  4988. //STANDARD LINKCHECKING END
  4989. //OBSOLETE FILE HOSTS PROCESSING START
  4990. if (filehostObsoleteLen > 0)
  4991. {
  4992. var obsoletelinks = document.evaluate(totalxpathobsolete, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4993.  
  4994. var obsoleteLink;
  4995.  
  4996. //check links
  4997. if (obsoletelinks.snapshotLength > 0)
  4998. {
  4999. var y = obsoletelinks.snapshotLength;
  5000.  
  5001. if (filterId == null)
  5002. {
  5003. cLinksTotal += y;
  5004. }
  5005.  
  5006. while (y--)
  5007. {
  5008. obsoleteLink = obsoletelinks.snapshotItem(y);
  5009.  
  5010. if (Display_tooltip_info)
  5011. {
  5012. obsoleteLink.warlc_error = 'Cause of error: <b>Obsolete filehosting.</b>';
  5013. }
  5014. displayTheCheckedLink(obsoleteLink, 'adead_link');
  5015. }
  5016. }
  5017. }
  5018. //OBSOLETE FILE HOSTS PROCESSING END
  5019.  
  5020. //DIRECT LINKCHECKING START
  5021. if (http_file_hosts_headers_only.length > 0)
  5022. {
  5023. var links = document.evaluate(totalxpathheadersonly, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  5024.  
  5025. //check links
  5026. if (links.snapshotLength > 0)
  5027. {
  5028. var link;
  5029. var isAliveRegex;
  5030. var isDeadRegex;
  5031. var ispremRegex;
  5032.  
  5033. var y = links.snapshotLength;
  5034.  
  5035.  
  5036. if (filterId == null)
  5037. {
  5038. cLinksTotal += y;
  5039. }
  5040.  
  5041. while (y--)
  5042. {
  5043. // links.snapshotItem(y).id = 'processing_link';
  5044. link = links.snapshotItem(y);
  5045. filehostIdx = filehostHeadersOnlyLen;
  5046. while (filehostIdx--)
  5047. {
  5048. if (link.href.match(http_file_hosts_headers_only[filehostIdx][0]))
  5049. {
  5050. link.href = link.href.replace(/http:\/\/.*?(?:\?|=)http:\/\//, 'http://');
  5051. isAliveRegex = http_file_hosts_headers_only[filehostIdx][1];
  5052. isDeadRegex = http_file_hosts_headers_only[filehostIdx][2];
  5053. ispremRegex = http_file_hosts_headers_only[filehostIdx][3];
  5054.  
  5055. geturlHeader(link, isAliveRegex, isDeadRegex, ispremRegex);
  5056.  
  5057. break;
  5058. }
  5059. }
  5060. }
  5061.  
  5062. }
  5063. }
  5064. //DIRECT LINKCHECKING END
  5065.  
  5066.  
  5067. //finds the real url on the page, replaces link.href with it and calls geturl
  5068. function decurl(link, reallinkreg, reallinkcorrection)
  5069. {
  5070.  
  5071. GM_xmlhttpRequest(
  5072. {
  5073. method: 'GET',
  5074. url: link.href,
  5075. headers: {
  5076. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  5077. 'Accept': 'text/xml',
  5078. 'Referer': ""
  5079. },
  5080. onload: function (result)
  5081. {
  5082. // cLinksProcessed++;
  5083.  
  5084. var reallink = result.responseText.match(reallinkreg)[0];
  5085. reallink = reallink.replace(new RegExp(reallinkcorrection, "g"), "");
  5086.  
  5087. link.href = reallink;
  5088.  
  5089. var i = http_file_hosts.length - 1;
  5090. do
  5091. {
  5092. if ((reallink.match(http_file_hosts[i][0])))
  5093. {
  5094. link.href = link.href.replace(/http:\/\/.*?\?http:\/\//, 'http://');
  5095. var isAliveRegex = http_file_hosts[i][1];
  5096. var isDeadRegex = http_file_hosts[i][2];
  5097. var isUnavaRegex = http_file_hosts[i][3];
  5098. var ispremRegex = http_file_hosts[i][4];
  5099.  
  5100. geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, 50);
  5101.  
  5102. break;
  5103. }
  5104. }
  5105. while (i--);
  5106. }
  5107. });
  5108. }
  5109.  
  5110. function randUA()
  5111. {
  5112. //TODO
  5113. }
  5114. //Processes link
  5115. //
  5116. // [string] link link URL
  5117. // [string] isAliveRegex alive link regex
  5118. // [string] isDeadRegex dead link regex
  5119. // [string] isUnavaRegex unavailable link regex
  5120. // [string] ispremRegex premium link regex
  5121. // [boolean] tryLoop repeats request until succeeded
  5122. function geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, tryLoop)
  5123. {
  5124. GM_xmlhttpRequest(
  5125. {
  5126. method: 'GET',
  5127. url: link.href,
  5128. headers: {
  5129. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  5130. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  5131. 'Referer': ""
  5132. },
  5133. onload: function (result)
  5134. {
  5135. var res = result.responseText;
  5136. if (result.responseHeaders.match(/Content-Disposition: attachment; filename=/))//direct download, simple version
  5137. {
  5138. displayTheCheckedLink(link, 'alive_link');
  5139. return;
  5140. }
  5141.  
  5142. if (res.match(isAliveRegex))
  5143. {
  5144. displayTheCheckedLink(link, 'alive_link');
  5145. return;
  5146. }
  5147.  
  5148. if (res.match(isDeadRegex))
  5149. {
  5150. displayTheCheckedLink(link, 'adead_link');
  5151. return;
  5152. }
  5153.  
  5154. if (isUnavaRegex && res.match(isUnavaRegex))
  5155. {
  5156. displayTheCheckedLink(link, 'unava_link');
  5157. return;
  5158. }
  5159. if (res.match(ispremRegex))
  5160. {
  5161. displayTheCheckedLink(link, 'prem_link');
  5162. return;
  5163. }
  5164.  
  5165. var resStatus = result.status;
  5166.  
  5167. if (resStatus == 404)
  5168. {
  5169. displayTheCheckedLink(link, 'adead_link');
  5170. }
  5171. if (resStatus == 500 || resStatus == 503 || resStatus == 403) //not found/available/temp. unava
  5172. {
  5173. if (tryLoop)
  5174. {
  5175. //wait 1-5 seconds and repeat the request
  5176. setTimeout(function(){geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, tryLoop)}, 1000 + (Math.random() * 4000));
  5177. }
  5178. else
  5179. {
  5180. displayTheCheckedLink(link, 'unava_link');
  5181. }
  5182.  
  5183. return;
  5184. }
  5185. },
  5186. onerror: function ()
  5187. {
  5188. displayTheCheckedLink(link, 'unava_link');
  5189. }
  5190. });
  5191. }
  5192.  
  5193. function geturlHeader(link, isAliveRegex, isDeadRegex, ispremRegex)
  5194. {
  5195. GM_xmlhttpRequest(
  5196. {
  5197. method: 'HEAD',
  5198. url: link.href,
  5199. headers: {
  5200. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  5201. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  5202. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  5203. 'Referer': ""
  5204. },
  5205. onload: function (result)
  5206. {
  5207. var resStatus = result.status;
  5208. var resHeaders = "";
  5209. if (resStatus == 403 || resStatus == 404 || resStatus == 500) //not found/available
  5210. {
  5211. displayTheCheckedLink(link, 'adead_link');
  5212. return;
  5213. }
  5214.  
  5215. resHeaders = result.responseHeaders;
  5216.  
  5217. if (resHeaders.match(isDeadRegex))
  5218. {
  5219. displayTheCheckedLink(link, 'adead_link');
  5220. return;
  5221. }
  5222.  
  5223. if (resHeaders.match(isAliveRegex))
  5224. {
  5225. displayTheCheckedLink(link, 'alive_link');
  5226. return;
  5227. }
  5228. if (resHeaders.match(ispremRegex))
  5229. {
  5230. displayTheCheckedLink(link, 'prem_link');
  5231. return;
  5232. }
  5233. },
  5234. onerror: function ()
  5235. {
  5236. displayTheCheckedLink(link, 'unava_link');
  5237. }
  5238. });
  5239. }
  5240.  
  5241. //Delinkfifies the <a> element object
  5242. function delinkifyLink(link)
  5243. {
  5244. var spanElm = document.createElement("span");
  5245. spanElm.className = link.className;
  5246. spanElm.innerHTML = link.innerHTML;
  5247.  
  5248. if (Display_tooltip_info)
  5249. {
  5250. spanElm.href = link.href;
  5251. spanElm.warlc_error = link.warlc_error;
  5252. switch (link.className){
  5253. case "alive_link": spanElm.addEventListener("mouseover", displayTooltipInfo, false); break
  5254. case "adead_link": spanElm.addEventListener("mouseover", displayTooltipError, false); break;
  5255. case "unava_link": //reserved
  5256. case "prem_link": spanElm.addEventListener("mouseover", displayTooltipError, false); break;
  5257. default:
  5258. }
  5259. }
  5260. link.parentNode.replaceChild(spanElm, link);
  5261. }
  5262.  
  5263. //Assigns result status to the <a> element object and calls delinkifying eventually
  5264. //Possible result states: adead_link, alive_link, unava_link, prem_link
  5265. function displayTheCheckedLink(link, resultStatus)
  5266. {
  5267. link.className = resultStatus;
  5268. link.href = Ref_anonymize_service + link.href;
  5269. if (Display_tooltip_info)
  5270. {
  5271. switch (resultStatus){
  5272. case "alive_link": link.addEventListener("mouseover", displayTooltipInfo, false); break
  5273. case "adead_link": link.addEventListener("mouseover", displayTooltipError, false); break;
  5274. case "unava_link": //reserved
  5275. case "prem_link": link.addEventListener("mouseover", displayTooltipInfo, false); break
  5276. default:
  5277. }
  5278. }
  5279. if (doNotLinkify)
  5280. {
  5281. delinkifyLink(link);
  5282. }
  5283. cLinksProcessed++;
  5284.  
  5285. if (resultStatus == "alive_link")
  5286. {
  5287. cLinksAlive++;
  5288. return;
  5289. }
  5290.  
  5291. if (resultStatus == "adead_link")
  5292. {
  5293. cLinksDead++;
  5294. return;
  5295. }
  5296.  
  5297. if (resultStatus == "unava_link")
  5298. {
  5299. cLinksUnava++;
  5300. }
  5301. if (resultStatus == "prem_link")
  5302. {
  5303. cLinksprem++;
  5304. return;
  5305. }
  5306. }
  5307.  
  5308.  
  5309. function initFileHosts()
  5310. {
  5311.  
  5312. function addObsoleteHost(linkRegex, xpathEx)
  5313. {
  5314. var host = new Array(2);
  5315. host[0] = linkRegex;
  5316. host[1] = xpathEx;
  5317. http_file_hosts_obsolete.push(host);
  5318. }
  5319.  
  5320. //obsolete file hosts init start
  5321. if (Obsolete_file_hosts)
  5322. {
  5323. addObsoleteHost("uloz\.cz\/show\/file","//a[contains(@href,'uloz.cz')]");
  5324. addObsoleteHost("storage\\.to\/get","//a[contains(@href,'storage.to')]");
  5325. addObsoleteHost("iskladka\\.cz\/download","//a[contains(@href,'iskladka.cz')]");
  5326. addObsoleteHost("file-rack\\.com\/files","//a[contains(@href,'file-rack.com')]");
  5327. addObsoleteHost("fast-load\\.net\/(\/)?index","//a[contains(@href,'fast-load.net')]");
  5328. addObsoleteHost("subory\\.sk\/download","//a[contains(@href,'subory.sk')]");
  5329. addObsoleteHost("bigandfree\\.com\/\\d+","//a[contains(@href,'bigandfree.com')]");
  5330. addObsoleteHost("fileop\\.com\/\\w+","//a[contains(@href,'fileop.com')]");
  5331. addObsoleteHost("mujsoubor\\.cz\/file\/","//a[contains(@href,'mujsoubor.cz')]");
  5332. addObsoleteHost("sendfile\\.to\/\\w+","//a[contains(@href,'sendfile.to')]");
  5333. addObsoleteHost("superfastfile\\.com\/\\w+","//a[contains(@href,'superfastfile.com')]");
  5334. addObsoleteHost("quickyshare\\.com\/\\w+","//a[contains(@href,'quickyshare.com/')]");
  5335. addObsoleteHost("duckload\\.com\/(?:d|play)","//a[contains(@href,'duckload.com')]");
  5336. addObsoleteHost("uploadstore\\.net\/\\w+","//a[contains(@href,'uploadstore.net')]");
  5337. addObsoleteHost("meinupload\\.com\/dl\/\\d+","//a[contains(@href,'meinupload.com/dl')]");
  5338. addObsoleteHost("dualshare\\.com\/\\w+","//a[contains(@href,'dualshare.com')]");
  5339. addObsoleteHost("2xupload\\.(?:to|de)\/file\/\\w+","//a[contains(@href,'2xupload.to') or contains(@href,'2xupload.de')]");
  5340. addObsoleteHost("oxedion\\.com\/index\\.php\/download\/\\w+","//a[contains(@href,'oxedion.com/index')]");
  5341. addObsoleteHost("uploadline\\.com\/\\d+","//a[contains(@href,'uploadline.com')]");
  5342. addObsoleteHost("dll\\.bz\/file\/\\d+","//a[contains(@href,'dll.bz/file')]");
  5343. addObsoleteHost("movieshare\\.in\/\\w+","//a[contains(@href,'movieshare.in')]");
  5344. addObsoleteHost("milledrive\\.com\/files\/\\d+","//a[contains(@href,'milledrive.com')]");
  5345. addObsoleteHost("quickupload\\.net\/\\w+","//a[contains(@href,'quickupload.net')]");
  5346. addObsoleteHost("safelink\\.in\/\\w+","//a[contains(@href,'safelink.in')]");
  5347. addObsoleteHost("pyramidfiles\\.com\/\\w+","//a[contains(@href,'pyramidfiles.com/')]");
  5348. addObsoleteHost("(?:cloudnator|shragle)\\.com\/files","//a[contains(@href,'cloudnator.com/files') or contains(@href,'shragle.com/files')]");
  5349. addObsoleteHost("batshare\\.com\/\\w+","//a[contains(@href,'batshare.com/')]");
  5350. addObsoleteHost("bitroad\\.net\/download","//a[contains(@href,'bitroad.net/download')]");
  5351. addObsoleteHost("metadivx\\.com\/\\w+","//a[contains(@href,'metadivx.com')]");
  5352. addObsoleteHost("filegaze\\.com\/\\w+","//a[contains(@href,'filegaze.com/')]");
  5353. addObsoleteHost("bulletupload\\.com\/\\w+","//a[contains(@href,'bulletupload.com/')]");
  5354. addObsoleteHost("sharefilehost\\.com\/\\w+","//a[contains(@href,'sharefilehost.com/')]");
  5355. addObsoleteHost("fireuploads\\.net\/\\w+","//a[contains(@href,'fireuploads.net/')]");
  5356. addObsoleteHost("divxlink\\.com\/\\w+","//a[contains(@href,'divxlink.com/')]");
  5357. addObsoleteHost("bzlink\\.us\/\\w+","//a[contains(@href,'bzlink.us/')]");
  5358. addObsoleteHost("filetechnology\\.com\/\\w+","//a[contains(@href,'filetechnology.com/')]");
  5359. addObsoleteHost("filecosy\\.com\/\\w+","//a[contains(@href,'filecosy.com/')]");
  5360. addObsoleteHost("fileserver\\.cc\/\\w+","//a[contains(@href,'fileserver.cc/')]");
  5361. addObsoleteHost("shafiles\\.me\/\\w+","//a[contains(@href,'shafiles.me/')]");
  5362. addObsoleteHost("xfileshare\\.eu\/\\w+","//a[contains(@href,'xfileshare.eu/')]");
  5363. addObsoleteHost("uploadboost\\.com\/\\w+","//a[contains(@href,'uploadboost.com/')]");
  5364. addObsoleteHost("uploadoz\\.com\/\\w+","//a[contains(@href,'uploadoz.com/')]");
  5365. addObsoleteHost("ihostia\\.com\/\\w+","//a[contains(@href,'ihostia.com/')]");
  5366. addObsoleteHost("shareupload\\.com\/\\w+","//a[contains(@href,'shareupload.com/')]");
  5367. addObsoleteHost("ovfile\\.com\/\\w+","//a[contains(@href,'ovfile.com/')]");
  5368. addObsoleteHost("stahuj\\.to\/\\w+","//a[contains(@href,'stahuj.to/')]");
  5369. addObsoleteHost("gigfiles\\.net\/\\w+","//a[contains(@href,'gigfiles.net/')]");
  5370. addObsoleteHost("vidhog\\.com\/\\w+","//a[contains(@href,'vidhog.com/')]");
  5371. addObsoleteHost("filelaser\\.com\/\\w+","//a[contains(@href,'filelaser.com/')]");
  5372. addObsoleteHost("holderfile\\.com\/\\w+","//a[contains(@href,'holderfile.com/')]");
  5373. addObsoleteHost("fileduct\\.(?:com|net)\/\\w+","//a[contains(@href,'fileduct.com/') or contains(@href,'fileduct.net')]");
  5374. addObsoleteHost("filefat\\.com\/\\w+","//a[contains(@href,'filefat.com/')]");
  5375. addObsoleteHost("restfile\\.com\/\\w+","//a[contains(@href,'restfile.com/')]");
  5376. addObsoleteHost("filemashine\\.com\\/download\/\\w+","//a[contains(@href,'filemashine.com/download')]");
  5377. addObsoleteHost("cloudnxt\\.net\/\\w+","//a[contains(@href,'cloudnxt.net/')]");
  5378. addObsoleteHost("uploadrack\\.com\/\\w+","//a[contains(@href,'uploadrack.com')]");
  5379. addObsoleteHost("teradepot\\.com\/\\w+","//a[contains(@href,'teradepot.com')]");
  5380. addObsoleteHost("dataup\\.to\/\\d+\/","//a[contains(@href,'dataup.to')]");
  5381. addObsoleteHost("upit\\.to\/file:\\d+","//a[contains(@href,'upit.to/file')]");
  5382. addObsoleteHost("badongo\\.(?:com|net)\/(?:\\w\\w\/|)(?:vid|cfile|file|pt)\/\\w+","//a[contains(@href,'badongo.com') or contains(@href,'badongo.net')]");
  5383. addObsoleteHost("driveway\\.com\/\\w+","//a[contains(@href,'driveway.com')]");
  5384. addObsoleteHost("eatlime\\.com\/download","//a[contains(@href,'eatlime.com/download')]");
  5385. addObsoleteHost("a2zuploads\\.com\/id\\w+","//a[contains(@href,'a2zuploads.com/id')]");
  5386. addObsoleteHost("friendlyfiles\\.net\/download\/\\w+\/","//a[contains(@href,'friendlyfiles.net/download')]");
  5387. addObsoleteHost("flyfile\\.us\/\\w+","//a[contains(@href,'flyfile.us')]");
  5388. addObsoleteHost("speedyshare\\.com\/\\w+","//a[contains(@href,'speedyshare.com')]");
  5389. addObsoleteHost("brontofile\\.com\/download","//a[contains(@href,'brontofile.com/download')]");
  5390. addObsoleteHost("uploadspace\\.eu\/\\w+","//a[contains(@href,'uploadspace.eu')]");
  5391. addObsoleteHost("fooget\\.com\/\\w+","//a[contains(@href,'fooget.com/')]");
  5392. addObsoleteHost("file-bit.net\/\\w+","//a[contains(@href,'file-bit.net/')]");
  5393. addObsoleteHost("keepfile\\.com\/\\w+","//a[contains(@href,'http://keepfile.com')]");
  5394. addObsoleteHost("piggyshare\\.com\/file\/\\w+","//a[contains(@href,'piggyshare.com')]");
  5395. addObsoleteHost("filecrown\\.com\/\\w+","//a[contains(@href,'filecrown.com')]");
  5396. addObsoleteHost("6giga\\.com\/\\w+","//a[contains(@href,'6giga.com')]");
  5397. addObsoleteHost("uploadjockey\\.com\/download\/\\w+","//a[contains(@href,'uploadjockey.com/download')]");
  5398. addObsoleteHost("bluehost\\.to\/dl=\\w+","//a[contains(@href,'bluehost.to')]");
  5399. addObsoleteHost("coolshare\\.cz\/stahnout\/\\w+","//a[contains(@href,'coolshare.cz/stahnout')]");
  5400. addObsoleteHost("filegu\\.ru\/f\/\\w+","//a[contains(@href,'filegu.ru/f')]");
  5401. addObsoleteHost("filebase\\.to\/files\/\\d+\/","//a[contains(@href,'filebase.to/files')]");
  5402. addObsoleteHost("kickload\\.com\/(?:file|get)\/","//a[contains(@href,'kickload.com/file') or contains(@href,'kickload.com/get')]");
  5403. addObsoleteHost("up-file\\.com\/files\/download\/\\w+\/","//a[contains(@href,'up-file.com/download')]");
  5404. addObsoleteHost("ezyfile\\.net\/\\w+","//a[contains(@href,'ezyfile.net/')]");
  5405. addObsoleteHost("k2files\\.com\/files","//a[contains(@href,'k2files.com/files')]");
  5406. addObsoleteHost("aiotool\\.net\/\\w+","//a[contains(@href,'aiotool.net/')]");
  5407. addObsoleteHost("xvideos\\.com\/files\/\\d+\/\\w+","//a[contains(@href,'xvideos.com/files')]");
  5408. addObsoleteHost("filebling\\.com\/dl\/\\d+\/\\d+\/\\w+","//a[contains(@href,'filebling.com/dl')]");
  5409. addObsoleteHost("loaded\\.it\/divx\/\\w+","//a[contains(@href,'loaded.it/divx')]");
  5410. addObsoleteHost("uploadcell\\.com\/\\w+\/\\w+","//a[contains(@href,'uploadcell.com')]");
  5411. addObsoleteHost("jakfile\\.com\/\\w+","//a[contains(@href,'jakfile.com/')]");
  5412. addObsoleteHost("uploadshare\\.cz\/download\/\\w+\/\\w+","//a[contains(@href,'uploadshare.cz/download')]");
  5413. addObsoleteHost("mangoshare\\.com\/\\w+","//a[contains(@href,'mangoshare.com')]");
  5414. addObsoleteHost("ugotfile\\.com\/file\/\\d+\/\\w+","//a[contains(@href,'ugotfile.com/file')]");
  5415. addObsoleteHost("filestab\\.com\/\\w+","//a[contains(@href,'filestab.com')]");
  5416. addObsoleteHost("dotavi\\.com\/\\w+\/.","//a[contains(@href,'dotavi.com/')]");
  5417. addObsoleteHost("crazyupload\\.com\/\\w+","//a[contains(@href,'crazyupload.com')]");
  5418. addObsoleteHost("gaiafile\\.com\/\\w+","//a[contains(@href,'gaiafile.com')]");
  5419. addObsoleteHost("sharejunky\\.com\/\\w+","//a[contains(@href,'sharejunky.com')]");
  5420. addObsoleteHost("fileho\\.com\/download\/\\d+","//a[contains(@href,'fileho.com/download')]");
  5421. addObsoleteHost("(?:bigandfree|BigAndFree)\\.com\/\\d+","//a[contains(@href,'bigandfree.com') or contains(@href,'BigAndFree.com')]");
  5422. addObsoleteHost("bigfile\\.in\/\\w+","//a[contains(@href,'bigfile.in')]");
  5423. addObsoleteHost("bigshare\\.eu\/download\\.php\\?id=","//a[contains(@href,'bigshare.eu/download.php')]");
  5424. addObsoleteHost("dahosting\\.org\/dl\/\\w+","//a[contains(@href,'dahosting.org/dl')]");
  5425. addObsoleteHost("digisofts\\.net\/\\w+","//a[contains(@href,'digisofts.net')]");
  5426. addObsoleteHost("file4save\\.com\/\\w+\/\\w+","//a[contains(@href,'file4save.com')]");
  5427. addObsoleteHost("filereactor\\.com\/\\w+","//a[contains(@href,'filereactor.com/')]");
  5428. addObsoleteHost("filechip\\.com\/\\w+","//a[contains(@href,'filechip.com')]");
  5429. addObsoleteHost("filescloud\\.com\/\\w+\/\\w+","//a[contains(@href,'filescloud.com')]");
  5430. addObsoleteHost("saveqube\\.com\/getfile\/\\w+","//a[contains(@href,'saveqube.com/getfile')]");
  5431. addObsoleteHost("www2\\.turboshare\\.de\/v\/\\d+","//a[contains(@href,'turboshare.de/v')]");
  5432. addObsoleteHost("z-upload\\.com\/\\w+","//a[contains(@href,'z-upload.com')]");
  5433. addObsoleteHost("youshare\\.com\/view\\.php","//a[contains(@href,'youshare.com/view')]");
  5434. addObsoleteHost("jiffyupload\\.com\/\\w+","//a[contains(@href,'jiffyupload.com')]");
  5435. addObsoleteHost("gigeshare\\.com\/preview\/\\w+","//a[contains(@href,'gigeshare.com')]");
  5436. addObsoleteHost("datenklo\\.net\/dl","//a[contains(@href,'datenklo.net')]");
  5437. addObsoleteHost("upload\\.dj\/download\\.php\\?id=\\w+","//a[contains(@href,'upload.dj/download.php')]");
  5438. addObsoleteHost("loadfiles\\.in\/\\w+\/","//a[contains(@href,'loadfiles.in')]");
  5439. addObsoleteHost("upit\\.to\/file:\\w+\/","//a[contains(@href,'upit.to/file')]");
  5440. addObsoleteHost("zshare\\.net\/(?:download|video|audio)\/\\w+","//a[contains(@href,'zshare.net/')]");
  5441. addObsoleteHost("refile\\.net\/f\/\\?\\w+","//a[contains(@href,'refile.net/f/')]");
  5442. addObsoleteHost("dsfileshare\\.com\/download","//a[contains(@href,'dsfileshare.com/download')]");
  5443. addObsoleteHost("sharesimple\\.net\/\\w{2}\/download","//a[contains(@href,'sharesimple.net')]");
  5444. addObsoleteHost("(?:s\\d+\\.|)4files\\.net\/\\d+","//a[contains(@href,'4files.net')]");
  5445. addObsoleteHost("odsiebie\\.com\/pokaz\/\\d+","//a[contains(@href,'odsiebie.com/pokaz')]");
  5446. addObsoleteHost("filenavi\\.com\/direct\/\\w+","//a[contains(@href,'filenavi.com/direct')]");
  5447. addObsoleteHost("3oof\\.com\/\\w+","//a[contains(@href,'3oof.com/')]");
  5448. addObsoleteHost("meshwaar\\.com\/\\w+","//a[contains(@href,'meshwaar.com')]");
  5449. addObsoleteHost("maxupload\\.com\/files\/\\w+","//a[contains(@href,'maxupload.com/files')]");
  5450. addObsoleteHost("share\\.cx\/videos\/\\d+","//a[contains(@href,'share.cx/videos')]");
  5451. addObsoleteHost("atserver\\.eu\/(?:\\w{2}\/|)download\/\\d+","//a[contains(@href,'atserver.eu')]");
  5452. addObsoleteHost("file2upload\\.net\/download\/\\d+","//a[contains(@href,'file2upload.net/download')]");
  5453. addObsoleteHost("filebling\\.com\/\\w+","//a[contains(@href,'filebling.com')]");
  5454. addObsoleteHost("turboshare\\.(?:eu|com)\/files","//a[contains(@href,'turboshare.') and contains(@href,'/files')]");
  5455. addObsoleteHost("rarhost\\.com\/download","//a[contains(@href,'rarhost.com/download')]");
  5456. addObsoleteHost("isharehd\\.com\/\\w+","//a[contains(@href,'isharehd.com')]");
  5457. addObsoleteHost("datenklo\\.net\/file\\.php\\?id=\\w+","//a[contains(@href,'datenklo.net/file.php')]");
  5458. addObsoleteHost("file2share\\.biz\/download\\.php\\?id=\\w+","//a[contains(@href,'file2share.biz/download.php')]");
  5459. addObsoleteHost("savefiles\\.net\/d\/\\w+\\.html","//a[contains(@href,'savefiles.net/d')]");
  5460. addObsoleteHost("bestsharing\\.com\/files\/\\w+","//a[contains(@href,'bestsharing.com/files')]");
  5461. addObsoleteHost("filecache\\.de\/\\d+","//a[contains(@href,'filecache.de/')]");
  5462. addObsoleteHost("i741\\.com\/files\/\\w+","//a[contains(@href,'i741.com/files')]");
  5463. addObsoleteHost("dataup\\.de\/\\d+","//a[contains(@href,'dataup.de')]");
  5464. addObsoleteHost("fofly\\.com\/\\w+","//a[contains(@href,'fofly.com')]");
  5465. addObsoleteHost("shareonall\\.com\/\\w+","//a[contains(@href,'shareonall.com')]");
  5466. addObsoleteHost("sexuploader\\.com\/(?:|..\/)\\?[d|v]=\\w{8}","//a[contains(@href,'sexuploader.com')]");
  5467. 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')]");
  5468. addObsoleteHost("uploadhyper\\.com\/file\/","//a[contains(@href,'uploadhyper.com')]");
  5469. addObsoleteHost("filespawn\\.com\/file\/","//a[contains(@href,'filespawn.com')]");
  5470. addObsoleteHost("caizzii\\.com\/(?:download|\\?file=)","//a[contains(@href,'caizzii.com')]");
  5471. addObsoleteHost("volnyweb\\.cz\/files\/get\/[\\w-_]+","//a[contains(@href,'volnyweb.cz/files')]");
  5472. addObsoleteHost("gotupload\\.com\/\\w+","//a[contains(@href,'gotupload.com/')]");
  5473. addObsoleteHost("mooload\\.com\/new\/file\\.php\\?file=files\/\\d+\/\\d+","//a[contains(@href,'mooload.com/new/file')]");
  5474. addObsoleteHost("z\\d+\\.zupload\\.com\/download\\.php\\?file=getfile&filepath=\\d+","//a[contains(@href,'zupload.com/download')]");
  5475. addObsoleteHost("mytempdir\\.com\/\\d+","//a[contains(@href,'mytempdir.com/')]");
  5476. addObsoleteHost("usershare\\.net\/\\w+","//a[contains(@href,'usershare.net/')]");
  5477. addObsoleteHost("qshare\\.com\/get\/\\d+\/.","//a[contains(@href,'qshare.com/get')]");
  5478. addObsoleteHost("filescash\\.net\/file\/\\d+","//a[contains(@href,'filescash.net/file')]");
  5479. addObsoleteHost("metahyper\\.com\/\\w+","//a[contains(@href,'metahyper.com/')]");
  5480. addObsoleteHost("combozip\\.com\/\\w+","//a[contains(@href,'combozip.com/')]");
  5481. addObsoleteHost("anonstream\\.com\/get_\\w+","//a[contains(@href,'anonstream.com/get_')]");
  5482. addObsoleteHost("x7\\.to\/\\w+","//a[contains(@href,'x7.to/')]");
  5483. addObsoleteHost("uploadbox\\.com\/files\/\\w+","//a[contains(@href,'uploadbox.com/files')]");
  5484. addObsoleteHost("(?:flyupload\\.)?(?:enterupload|flyupload)\\.com\/[\\?\\w]+","//a[contains(@href,'enterupload.com/') or contains(@href,'flyupload.com/')]");
  5485. addObsoleteHost("filepoint\\.de\/dl\/\\w+","//a[contains(@href,'filepoint.de/dl')]");
  5486. addObsoleteHost("icushare\\.com\/\\w+","//a[contains(@href,'icushare.com/')]");
  5487. addObsoleteHost("oron\\.com\/\\w+","//a[contains(@href,'oron.com/')]");
  5488. addObsoleteHost("mystream\\.to\/file\\-\\d+","//a[contains(@href,'mystream.to/file')]");
  5489. addObsoleteHost("x-fs\\.com\/download\\.php\\?id=\\w+","//a[contains(@href,'x-fs.com/download')]");
  5490. addObsoleteHost("srapid\\.eu\/\\w+","//a[contains(@href,'srapid.eu/')]");
  5491. addObsoleteHost("shareshared\\.com\/\\w+","//a[contains(@href,'shareshared.com/')]");
  5492. addObsoleteHost("sosame\\.cz\/\\w+","//a[contains(@href,'sosame.cz/')]");
  5493. addObsoleteHost("s\\d+\\.filesdump\\.com\/file\/\\w+","//a[contains(@href,'filesdump.com/file')]");
  5494. addObsoleteHost("2-klicks\\.de\/\\?d=\\w+","//a[contains(@href,'2-klicks.de/?d=')]");
  5495. addObsoleteHost("silofiles\\.com\/file\/\\d+","//a[contains(@href,'silofiles.com/file')]");
  5496. addObsoleteHost("upfile\\.in\/\\w+","//a[contains(@href,'upfile.in/')]");
  5497. addObsoleteHost("filehook\\.com\/\\w+","//a[contains(@href,'filehook.com/')]");
  5498. addObsoleteHost("mojofile\\.com\/\\w+","//a[contains(@href,'mojofile.com/')]");
  5499. addObsoleteHost("cloudcache\\.cc\/\\w+","//a[contains(@href,'cloudcache.cc/')]");
  5500. addObsoleteHost("1hostclick\\.com\/\\w+","//a[contains(@href,'1hostclick.com/')]");
  5501. addObsoleteHost("4bytez\\.com\/\\w+","//a[contains(@href,'4bytez.com/')]");
  5502. addObsoleteHost("uploadking\\.com\/\\w+","//a[contains(@href,'uploadking.com/')]");
  5503. addObsoleteHost("nahraj\\.cz\/(?:content|down)\/\\w+","//a[contains(@href,'nahraj.cz/')]");
  5504. addObsoleteHost("megarapid\\.eu\/files\/\\d+","//a[contains(@href,'megarapid.eu/files')]");
  5505. addObsoleteHost("(?:fileserve|uploadstation)\\.com\/(?:file|list)\/\\w+","//a[contains(@href,'fileserve.com/') or contains(@href,'uploadstation.com/')]");
  5506. addObsoleteHost("uploadhere\\.com\/\\w+","//a[contains(@href,'uploadhere.com/')]");
  5507. addObsoleteHost("dualshare\\.com\/\\w+","//a[contains(@href,'dualshare.com/')]");
  5508. addObsoleteHost("yourfilehost\\.com\/media","//a[contains(@href,'yourfilehost.com/media')]");
  5509. addObsoleteHost("ftp2share\\.com\/file\/\\w+","//a[contains(@href,'ftp2share.com/file')]");
  5510. addObsoleteHost("storeandserve\\.com\/download\/\\d+","//a[contains(@href,'storeandserve.com/download')]");
  5511. addObsoleteHost("mountfile\\.com\/file(?:\/\\w+){2}","//a[contains(@href,'mountfile.com/file')]");
  5512. addObsoleteHost("save\\.am\/files\/\\w+","//a[contains(@href,'save.am/files')]");
  5513. addObsoleteHost("transitfiles\\.com\/dl\/\\w+","//a[contains(@href,'transitfiles.com/dl')]");
  5514. addObsoleteHost("smartuploader\\.com\/file\\.php\\?f=\\d+","//a[contains(@href,'smartuploader.com/file.php?=')]");
  5515. addObsoleteHost("skipfile\\.com\/\\w+","//a[contains(@href,'skipfile.com/')]");
  5516. addObsoleteHost("stahnu\\.to\/[\\w\\?]+","//a[contains(@href,'stahnu.to/')]");
  5517. addObsoleteHost("flyshare\.cz\/(?:stahni\/|)\\d+","//a[contains(@href,'flyshare.cz/')]");
  5518. addObsoleteHost("(?:ddlani\\.me|ddlanime\\.com)\/\\w+","//a[contains(@href,'ddlani.me/') or contains(@href,'ddlanime.com/')]");
  5519. addObsoleteHost("loadly\\.com\/\\w+","//a[contains(@href,'loadly.com/')]");
  5520. addObsoleteHost("groovefile\\.com\/\\w+","//a[contains(@href,'groovefile.com/')]");
  5521. addObsoleteHost("filezlot\\.com\/\\w+","//a[contains(@href,'filezlot.com/')]");
  5522. addObsoleteHost("shareator\\.(?:net|com)\/\\w+","//a[contains(@href,'shareator.')]");
  5523. addObsoleteHost("yabadaba\\.ru\/files\/","//a[contains(@href,'yabadaba.ru/files/')]");
  5524. addObsoleteHost("rapidhide\\.com\/download\\.php\\?file=\\w+","//a[contains(@href,'rapidhide.com/download.php')]");
  5525. addObsoleteHost("filejungle\\.com\/[fl]\/\\w+","//a[contains(@href,'filejungle.com/')]");
  5526. addObsoleteHost("kewlshare\\.com\/dl\/\\d+","//a[contains(@href,'kewlshare.com/dl')]");
  5527. addObsoleteHost("petandrive\\.com\/file\/\\w+","//a[contains(@href,'petandrive.com/file')]");
  5528. addObsoleteHost("onionshare\\.com\/\\w+","//a[contains(@href,'onionshare.com/')]");
  5529. addObsoleteHost("rapidable\\.com\/\\w+\/download\\.php\\?id=","//a[contains(@href,'rapidable.com/')]");
  5530. addObsoleteHost("filesdump\\.com\/file\/\\w+\/\\d+","//a[contains(@href,'filesdump.com/file')]");
  5531. addObsoleteHost("file2box\\.(?:net|com)\/\\w+","//a[contains(@href,'file2box.')]");
  5532. addObsoleteHost("(?:filesonic|sharingmatrix|wupload)(?:\\.\\w+){1,2}\/(?:file|folder)\/\\w+","//a[contains(@href,'filesonic.') or contains(@href,'sharingmatrix.com') or contains(@href,'wupload.')]");
  5533. addObsoleteHost("bloggerarticles\\.com\/\\w+","//a[contains(@href,'bloggerarticles.com/')]");
  5534. addObsoleteHost("mojedata\\.sk/","//a[contains(@href,'mojedata.sk/')]");
  5535. addObsoleteHost("sharpfile\\.com\/\\w+","//a[contains(@href,'sharpfile.com/')]");
  5536. addObsoleteHost("upgrand\\.com\/\\w+","//a[contains(@href,'upgrand.com/')]");
  5537. addObsoleteHost("nasdilej\\.cz\/\\w+","//a[contains(@href,'nasdilej.cz/')]");
  5538. addObsoleteHost("mediatack\\.cz\/stahuj/\\w+","//a[contains(@href,'mediatack.cz/stahuj/')]");
  5539. addObsoleteHost("share-it\\.to\/file/\\w+","//a[contains(@href,'share-it.to/file/')]");
  5540. addObsoleteHost("primeupload\\.com\/file/\\w+","//a[contains(@href,'primeupload.com/file/')]");
  5541. addObsoleteHost("(?:uploads\\.glumbo|glumbouploads)\\.com\/\\w+","//a[contains(@href,'uploads.glumbo.com') or contains(@href,'glumbouploads.com')]");
  5542. addObsoleteHost("filebeer\\.info\/\\w+","//a[contains(@href,'filebeer.info/')]");
  5543. addObsoleteHost("baberepublic\\.com\/link\/\\w+","//a[contains(@href,'baberepublic.com/link/')]");
  5544. addObsoleteHost("xtu\\.me\/\\w+","//a[contains(@href,'xtu.me/')]");
  5545. addObsoleteHost("sharebase\\.de\/files\/\\w+","//a[contains(@href,'sharebase.de/files/')]");
  5546. addObsoleteHost("filerobo\\.com\/\\w+","//a[contains(@href,'filerobo.com/')]");
  5547. addObsoleteHost("filevelocity\\.com\/\\w+","//a[contains(@href,'filevelocity.com/')]");
  5548. addObsoleteHost("filezpro\\.com\/\\w+","//a[contains(@href,'filezpro.com/')]");
  5549. addObsoleteHost("file4sharing\\.com\/\\w+","//a[contains(@href,'file4sharing.com/')]");
  5550. addObsoleteHost("cing\\.be\/\\w+","//a[contains(@href,'cing.be/')]");
  5551. addObsoleteHost("ufile\\.eu\/\\w+","//a[contains(@href,'ufile.eu/')]");
  5552. addObsoleteHost("pigsonic\\.com\/\\w+","//a[contains(@href,'pigsonic.com/')]");
  5553. addObsoleteHost("fileupped\\.com\/\\w+","//a[contains(@href,'fileupped.com/')]");
  5554. addObsoleteHost("sharerun\\.com\/\\w+","//a[contains(@href,'sharerun.com/')]");
  5555. addObsoleteHost("rapidslnare\\.com\/\\w+","//a[contains(@href,'rapidslnare.com/')]");
  5556. addObsoleteHost("monsteruploads\\.eu\/\\w+","//a[contains(@href,'monsteruploads.eu/')]");
  5557. addObsoleteHost("b9bb\\.com\/\\w+","//a[contains(@href,'b9bb.com/')]");
  5558. addObsoleteHost("jamber\\.info\/\\w+","//a[contains(@href,'jamber.info/')]");
  5559. addObsoleteHost("(?:megaftp|MegaFTP)\\.com\/\\w+","//a[contains(@href,'megaftp.com/') or contains(@href,'MegaFTP.com/')]");
  5560. addObsoleteHost("desiupload\\.net\/\\?d=\\w+","//a[contains(@href,'desiupload.net/')]");
  5561. addObsoleteHost("file27\\.com\/\\w+","//a[contains(@href,'file27.com/')]");
  5562. addObsoleteHost("yastorage\\.com\/\\w+","//a[contains(@href,'yastorage.com/')]");
  5563. addObsoleteHost("filehost\\.ws\/\\w+","//a[contains(@href,'filehost.ws/')]");
  5564. addObsoleteHost("copyload\\.com\/\\w+","//a[contains(@href,'copyload.com/')]");
  5565. addObsoleteHost("venusfile\\.com\/\\w+","//a[contains(@href,'venusfile.com/')]");
  5566. addObsoleteHost("aieshare\\.com\/\\w+","//a[contains(@href,'aieshare.com/')]");
  5567. addObsoleteHost("fileza\\.net\/\\w+","//a[contains(@href,'fileza.net/')]");
  5568. addObsoleteHost("filerose\\.com\/\\w+","//a[contains(@href,'filerose.com/')]");
  5569. addObsoleteHost("squillion\\.com\/\\w+","//a[contains(@href,'squillion.com/')]");
  5570. addObsoleteHost("fileprohost\\.com\/\\w+","//a[contains(@href,'fileprohost.com/')]");
  5571. addObsoleteHost("bitbonus\\.com\/download\/\\w+","//a[contains(@href,'bitbonus.com/')]");
  5572. addObsoleteHost("warserver\\.cz\/\\w+","//a[contains(@href,'warserver.cz/')]");
  5573. addObsoleteHost("uload\\.to\/\\w+","//a[contains(@href,'uload.to/')]");
  5574. addObsoleteHost("sharedbit\\.net\/\\w+","//a[contains(@href,'sharedbit.net/')]");
  5575. addObsoleteHost("megaload\\.it\/\\w+","//a[contains(@href,'megaload.it/')]");
  5576. addObsoleteHost("filewinds\\.com\/\\w+","//a[contains(@href,'filewinds.com/')]");
  5577. addObsoleteHost("uploadcore\\.com\/\\w+","//a[contains(@href,'uploadcore.com/')]");
  5578. addObsoleteHost("syfiles\\.com\/\\w+","//a[contains(@href,'syfiles.com/')]");
  5579. addObsoleteHost("eyesfile\\.com\/\\w+","//a[contains(@href,'eyesfile.com/')]");
  5580. addObsoleteHost("hotfile\\.com\/\\w+","//a[contains(@href,'hotfile.com/')]");
  5581. addObsoleteHost("superupl\\.com\/\\w+","//a[contains(@href,'superupl.com/')]");
  5582. addObsoleteHost("oteupload\\.com\/\\w+","//a[contains(@href,'oteupload.com/')]");
  5583. addObsoleteHost("henchfile\\.com\/\\w+","//a[contains(@href,'henchfile.com/')]");
  5584. addObsoleteHost("HenchFile\\.com\/\\w+","//a[contains(@href,'HenchFile.com/')]");
  5585. addObsoleteHost("filegag\\.com\/\\w+","//a[contains(@href,'filegag.com/')]");
  5586. addObsoleteHost("filedefend\\.com\/\\w+","//a[contains(@href,'filedefend.com/')]");
  5587. addObsoleteHost("hotfiles\\.ws\/\\w+","//a[contains(@href,'hotfiles.ws/')]");
  5588. addObsoleteHost("share-rapid\\.com\/\\w+","//a[contains(@href,'share-rapid.com/')]");
  5589. addObsoleteHost("rapids\\.cz\/\\w+","//a[contains(@href,'rapids.cz/')]");
  5590. addObsoleteHost("share-credit\\.cz\/\\w+","//a[contains(@href,'share-credit.cz/')]");
  5591. addObsoleteHost("share-central\\.cz\/\\w+","//a[contains(@href,'share-central.cz/')]");
  5592. addObsoleteHost("share-ms\\.cz\/\\w+","//a[contains(@href,'share-ms.cz/')]");
  5593. addObsoleteHost("share-net\\.cz\/\\w+","//a[contains(@href,'share-net.cz/')]");
  5594. addObsoleteHost("srapid\\.cz\/\\w+","//a[contains(@href,'srapid.cz/')]");
  5595. addObsoleteHost("share-rapid\\.cz\/\\w+","//a[contains(@href,'share-rapid.cz/')]");
  5596. addObsoleteHost("wooupload\\.com\/\\w+","//a[contains(@href,'wooupload.com/')]");
  5597. addObsoleteHost("megabitshare\\.com\/\\w+","//a[contains(@href,'megabitshare.com/')]");
  5598. addObsoleteHost("uploking\\.com\/\\w+","//a[contains(@href,'uploking.com/')]");
  5599. addObsoleteHost("esnips\\.com\/\\w+","//a[contains(@href,'esnips.com/')]");
  5600. addObsoleteHost("uplly\\.com\/\\w+","//a[contains(@href,'uplly.com/')]");
  5601. addObsoleteHost("ufox\\.com\/\\w+","//a[contains(@href,'ufox.com/')]");
  5602. addObsoleteHost("clz\\.to\/\\w+","//a[contains(@href,'clz.to/')]");
  5603. addObsoleteHost("cloudzer\\.net\/\\w+","//a[contains(@href,'cloudzer.net/')]");
  5604. addObsoleteHost("cloudzer\\.com\/\\w+","//a[contains(@href,'cloudzer.com/')]");
  5605. addObsoleteHost("extabit\\.com\/\\w+","//a[contains(@href,'extabit.com/')]");
  5606. addObsoleteHost("uploadwaste\\.com\/\\w+","//a[contains(@href,'uploadwaste.com/')]");
  5607. addObsoleteHost("247upload\\.com\/\\w+","//a[contains(@href,'uploadwaste.com/')]");
  5608. addObsoleteHost("2download\\.de\/\\w+","//a[contains(@href,'2download.de/')]");
  5609. addObsoleteHost("4fastfile\\.com\/\\w+","//a[contains(@href,'4fastfile.com/')]");
  5610. addObsoleteHost("asixfiles\\.com\/\\w+","//a[contains(@href,'asixfiles.com/')]");
  5611. addObsoleteHost("berofile\\.com\/\\w+","//a[contains(@href,'berofile.com/')]");
  5612. addObsoleteHost("bigupload\\.com\/\\w+","//a[contains(@href,'bigupload.com/')]");
  5613. addObsoleteHost("cepzo\\.com\/\\w+","//a[contains(@href,'cepzo.com/')]");
  5614. addObsoleteHost("czshare\\.com\/\\w+","//a[contains(@href,'czshare.com/')]");
  5615. addObsoleteHost("clouds\\.to\/\\w+","//a[contains(@href,'clouds.to/')]");
  5616. addObsoleteHost("cobrashare\\.sk\/\\w+","//a[contains(@href,'cobrashare.sk/')]");
  5617. addObsoleteHost("coraldrive\\.net\/\\w+","//a[contains(@href,'coraldrive.net/')]");
  5618. addObsoleteHost("cyberlocker\\.ch\/\\w+","//a[contains(@href,'cyberlocker.ch/')]");
  5619. addObsoleteHost("darkport\\.org\/\\w+","//a[contains(@href,'darkport.org/')]");
  5620. addObsoleteHost("dark-uploads\\.com\/\\w+","//a[contains(@href,'dark-uploads.com/')]");
  5621. addObsoleteHost("davvas\\.com\/\\w+","//a[contains(@href,'davvas.com/')]");
  5622. addObsoleteHost("enigmashare\\.com\/\\w+","//a[contains(@href,'enigmashare.com/')]");
  5623. addObsoleteHost("erofly\\.cz\/\\w+","//a[contains(@href,'erofly.cz/')]");
  5624. addObsoleteHost("fastsonic\\.net\/\\w+","//a[contains(@href,'fastsonic.net/')]");
  5625. addObsoleteHost("filebox\\.com\/\\w+","//a[contains(@href,'filebox.com/')]");
  5626. addObsoleteHost("filecity\\.net\/\\w+","//a[contains(@href,'filecity.net/')]");
  5627. addObsoleteHost("filedap\\.com\/\\w+","//a[contains(@href,'filedap.com/')]");
  5628. addObsoleteHost("filedino\\.com\/\\w+","//a[contains(@href,'filedino.com/')]");
  5629. addObsoleteHost("filedownloads\\.org\/\\w+","//a[contains(@href,'filedownloads.org/')]");
  5630. addObsoleteHost("filefolks\\.com\/\\w+","//a[contains(@href,'filefolks.com/')]");
  5631. addObsoleteHost("fileking\\.co\/\\w+","//a[contains(@href,'fileking.co/')]");
  5632. addObsoleteHost("filemates\\.com\/\\w+","//a[contains(@href,'filemates.com/')]");
  5633. addObsoleteHost("files\\.to\/\\w+","//a[contains(@href,'files.to/')]");
  5634. addObsoleteHost("files2k\\.eu\/\\w+","//a[contains(@href,'files2k.eu/')]");
  5635. addObsoleteHost("filesector\\.cc\/\\w+","//a[contains(@href,'filesector.cc/')]");
  5636. addObsoleteHost("filesega\\.com\/\\w+","//a[contains(@href,'filesega.com/')]");
  5637. addObsoleteHost("filesend\\.net\/\\w+","//a[contains(@href,'filesend.net/')]");
  5638. addObsoleteHost("filestay\\.com\/\\w+","//a[contains(@href,'filestay.com/')]");
  5639. addObsoleteHost("filestrum\\.com\/\\w+","//a[contains(@href,'filestrum.com/')]");
  5640. addObsoleteHost("fileuplo\\.de\/\\w+","//a[contains(@href,'fileuplo.de/')]");
  5641. addObsoleteHost("fileupup\\.com\/\\w+","//a[contains(@href,'fileupup.com/')]");
  5642. addObsoleteHost("forunesia\\.com\/\\w+","//a[contains(@href,'forunesia.com/')]");
  5643. addObsoleteHost("freeuploads\\.fr\/\\w+","//a[contains(@href,'freeuploads.fr/')]");
  5644. addObsoleteHost("uploa\\.dk\/\\w+","//a[contains(@href,'uploa.dk/')]");
  5645. addObsoleteHost("getthebit\\.com\/\\w+","//a[contains(@href,'getthebit.com/')]");
  5646. addObsoleteHost("getzilla\\.net\/\\w+","//a[contains(@href,'getzilla.net/')]");
  5647. addObsoleteHost("goldfile\\.eu\/\\w+","//a[contains(@href,'goldfile.eu/')]");
  5648. addObsoleteHost("good\\.com\/\\w+","//a[contains(@href,'good.com/')]");
  5649. addObsoleteHost("grupload\\.com\/\\w+","//a[contains(@href,'grupload.com/')]");
  5650. addObsoleteHost("hellfile\\.com\/\\w+","//a[contains(@href,'hellfile.com/')]");
  5651. addObsoleteHost("hipfile\\.com\/\\w+","//a[contains(@href,'hipfile.com/')]");
  5652. addObsoleteHost("hitfile\\.com\/\\w+","//a[contains(@href,'hitfile.com/')]");
  5653. addObsoleteHost("hulkfile\\.eu\/\\w+","//a[contains(@href,'hulkfile.eu/')]");
  5654. addObsoleteHost("i-filez\\.com\/\\w+","//a[contains(@href,'i-filez.com/')]");
  5655. addObsoleteHost("ifile\\.ws\/\\w+","//a[contains(@href,'ifile.ws/')]");
  5656. addObsoleteHost("kupload\\.org\/\\w+","//a[contains(@href,'kupload.org/')]");
  5657. addObsoleteHost("duckfile\\.net\/\\w+","//a[contains(@href,'duckfile.net/')]");
  5658. addObsoleteHost("packupload\\.com\/\\w+","//a[contains(@href,'packupload.com/')]");
  5659. addObsoleteHost("terafile\\.com\/\\w+","//a[contains(@href,'terafile.com/')]");
  5660. addObsoleteHost("terafile\\.co\/\\w+","//a[contains(@href,'terafile.co/')]");
  5661. addObsoleteHost("fileom\\.com\/\\w+","//a[contains(@href,'fileom.com/')]");
  5662. addObsoleteHost("luckyshare\\.net\/\\w+","//a[contains(@href,'luckyshare.net/')]");
  5663. addObsoleteHost("lemuploads\\.com\/\\w+","//a[contains(@href,'lemuploads.com/')]");
  5664. addObsoleteHost("limelinx\\.com\/\\w+","//a[contains(@href,'limelinx.com/')]");
  5665. addObsoleteHost("maxshare\\.pl\/\\w+","//a[contains(@href,'maxshare.pl/')]");
  5666. addObsoleteHost("megarelease\\.org\/\\w+","//a[contains(@href,'megarelease.org/')]");
  5667. addObsoleteHost("megashare\\.com\/\\w+","//a[contains(@href,'megashare.com/')]");
  5668. addObsoleteHost("minus\\.com\/\\w+","//a[contains(@href,'minus.com/')]");
  5669. addObsoleteHost("mlfat4arab\\.com\/\\w+","//a[contains(@href,'mlfat4arab.com/')]");
  5670. addObsoleteHost("multishare\\.cz\/\\w+","//a[contains(@href,'multishare.cz/')]");
  5671. addObsoleteHost("nirafile\\.com\/\\w+","//a[contains(@href,'nirafile.com/')]");
  5672. addObsoleteHost("ok2upload\\.com\/\\w+","//a[contains(@href,'ok2upload.com/')]");
  5673. addObsoleteHost("peejeshare\\.com\/\\w+","//a[contains(@href,'peejeshare.com/')]");
  5674. addObsoleteHost("premiuns\\.org\/\\w+","//a[contains(@href,'premiuns.org/')]");
  5675. addObsoleteHost("przeklej\\.net\/\\w+","//a[contains(@href,'przeklej.net/')]");
  5676. addObsoleteHost("qkup\\.net\/\\w+","//a[contains(@href,'qkup.net/')]");
  5677. addObsoleteHost("rapidupload\\.sk\/\\w+","//a[contains(@href,'rapidupload.sk/')]");
  5678. addObsoleteHost("rockdizfile\\.com\/\\w+","//a[contains(@href,'rockdizfile.com/')]");
  5679. addObsoleteHost("rocketfile\\.net\/\\w+","//a[contains(@href,'rocketfile.net/')]");
  5680. addObsoleteHost("share-now\\.net\/\\w+","//a[contains(@href,'share-now.net/')]");
  5681. addObsoleteHost("share76\\.com\/\\w+","//a[contains(@href,'share76.com/')]");
  5682. addObsoleteHost("sharebees\\.com\/\\w+","//a[contains(@href,'sharebees.com/')]");
  5683. addObsoleteHost("sharefiles\\.co\/\\w+","//a[contains(@href,'sharefiles.co/')]");
  5684. addObsoleteHost("slingfile\\.com\/\\w+","//a[contains(@href,'slingfile.com/')]");
  5685. addObsoleteHost("sms4file\\.com\/\\w+","//a[contains(@href,'sms4file.com/')]");
  5686. addObsoleteHost("space4file\\.com\/\\w+","//a[contains(@href,'space4file.com/')]");
  5687. addObsoleteHost("tigershare\\.net\/\\w+","//a[contains(@href,'tigershare.net/')]");
  5688. addObsoleteHost("toucansharing\\.com\/\\w+","//a[contains(@href,'toucansharing.com/')]");
  5689. addObsoleteHost("ubuntuone\\.com\/\\w+","//a[contains(@href,'ubuntuone.com/')]");
  5690. addObsoleteHost("unextfiles\\.com\/\\w+","//a[contains(@href,'unextfiles.com/')]");
  5691. addObsoleteHost("upaj\\.pl\/\\w+","//a[contains(@href,'upaj.pl/')]");
  5692. addObsoleteHost("upfile\\.biz\/\\w+","//a[contains(@href,'upfile.biz/')]");
  5693. addObsoleteHost("uploadbin\\.net\/\\w+","//a[contains(@href,'uploadbin.net/')]");
  5694. addObsoleteHost("uploadic\\.com\/\\w+","//a[contains(@href,'uploadic.com/')]");
  5695. addObsoleteHost("uploadinc\\.com\/\\w+","//a[contains(@href,'uploadinc.com/')]");
  5696. addObsoleteHost("uploading4u\\.eu\/\\w+","//a[contains(@href,'uploading4u.eu/')]");
  5697. addObsoleteHost("uploadjet\\.net\/\\w+","//a[contains(@href,'uploadjet.net/')]");
  5698. addObsoleteHost("uploadorb\\.com\/\\w+","//a[contains(@href,'uploadorb.com/')]");
  5699. addObsoleteHost("upthe\\.net\/\\w+","//a[contains(@href,'upthe.net/')]");
  5700. addObsoleteHost("uptorch\\.com\/\\w+","//a[contains(@href,'uptorch.com/')]");
  5701. addObsoleteHost("vidbox\\.yt\/\\w+","//a[contains(@href,'vidbox.yt/')]");
  5702. addObsoleteHost("videozer\\.com\/\\w+","//a[contains(@href,'videozer.com/')]");
  5703. addObsoleteHost("vreer\\.com\/\\w+","//a[contains(@href,'vreer.com/')]");
  5704. addObsoleteHost("wallobit\\.com\/\\w+","//a[contains(@href,'wallobit.com/')]");
  5705. addObsoleteHost("zooupload\\.com\/\\w+","//a[contains(@href,'zooupload.com/')]");
  5706. addObsoleteHost("xerver\\.co\/\\w+","//a[contains(@href,'xerver.co/')]");
  5707. addObsoleteHost("privatefiles\\.com\/\\w+","//a[contains(@href,'privatefiles.com/')]");
  5708. addObsoleteHost("bitshare\\.com\/\\w+","//a[contains(@href,'bitshare.com/')]");
  5709. addObsoleteHost("asfile\\.com\/\\w+","//a[contains(@href,'asfile.com/')]");
  5710. addObsoleteHost("billionuploads\\.com\/\\w+","//a[contains(@href,'billionuploads.com/')]");
  5711. addObsoleteHost("\\*{7,100}\/[\\w\\d]+","//a[contains(@href,'*******/')]");
  5712. addObsoleteHost("filesaur\\.com\/\\w+","//a[contains(@href,'filesaur.com/')]");
  5713. addObsoleteHost("rapidshare\\.com\/\\w+","//a[contains(@href,'rapidshare.com/')]");
  5714. addObsoleteHost("rapidshare\\.ru\/\\w+","//a[contains(@href,'rapidshare.ru/')]");
  5715. addObsoleteHost("filesfrog\\.net\/\\w+","//a[contains(@href,'filesfrog.net/')]");
  5716. addObsoleteHost("4savefile\\.com\/\\w+","//a[contains(@href,'4savefile.com/')]");
  5717. addObsoleteHost("bayfiles\\.com\/\\w+","//a[contains(@href,'bayfiles.com/')]");
  5718. addObsoleteHost("bayfiles\\.net\/\\w+","//a[contains(@href,'bayfiles.net/')]");
  5719. addObsoleteHost("dodane\\.pl\/\\w+","//a[contains(@href,'dodane.pl/')]");
  5720. addObsoleteHost("dotsemper\\.com\/\\w+","//a[contains(@href,'dotsemper.com/')]");
  5721. addObsoleteHost("egofiles\\.com\/\\w+","//a[contains(@href,'egofiles.com/')]");
  5722. addObsoleteHost("epicshare\\.net\/\\w+","//a[contains(@href,'epicshare.net/')]");
  5723. addObsoleteHost("fiberupload\\.net\/\\w+","//a[contains(@href,'fiberupload.net/')]");
  5724. addObsoleteHost("filemonkey\\.in\/\\w+","//a[contains(@href,'filemonkey.in/')]");
  5725. addObsoleteHost("filemonster\\.net\/\\w+","//a[contains(@href,'filemonster.net/')]");
  5726. addObsoleteHost("filepom\\.com\/\\w+","//a[contains(@href,'filepom.com/')]");
  5727. addObsoleteHost("filesbb\\.com\/\\w+","//a[contains(@href,'filesbb.com/')]");
  5728. addObsoleteHost("fileshareup\\.com\/\\w+","//a[contains(@href,'fileshareup.com/')]");
  5729. addObsoleteHost("filevice\\.com\/\\w+","//a[contains(@href,'filevice.com/')]");
  5730. addObsoleteHost("gigaup\\.fr\/\\w+","//a[contains(@href,'gigaup.fr/')]");
  5731. addObsoleteHost("isavelink\\.com\/\\w+","//a[contains(@href,'isavelink.com/')]");
  5732. addObsoleteHost("loombo\\.com\/\\w+","//a[contains(@href,'loombo.com/')]");
  5733. addObsoleteHost("megafiles\\.se\/\\w+","//a[contains(@href,'megafiles.se/')]");
  5734. addObsoleteHost("migupload\\.com\/\\w+","//a[contains(@href,'migupload.com/')]");
  5735. addObsoleteHost("mydisc\\.net\/\\w+","//a[contains(@href,'mydisc.net/')]");
  5736. addObsoleteHost("nitrobits\\.com\/\\w+","//a[contains(@href,'nitrobits.com/')]");
  5737. addObsoleteHost("potload\\.com\/\\w+","//a[contains(@href,'potload.com/')]");
  5738. addObsoleteHost("redload\\.net\/\\w+","//a[contains(@href,'redload.net/')]");
  5739. addObsoleteHost("shareprofi\\.com\/\\w+","//a[contains(@href,'shareprofi.com/')]");
  5740. addObsoleteHost("sharesuper\\.info\/\\w+","//a[contains(@href,'sharesuper.info/')]");
  5741. addObsoleteHost("sinhro\\.net\/\\w+","//a[contains(@href,'sinhro.net/')]");
  5742. addObsoleteHost("speedfile\\.cz\/\\w+","//a[contains(@href,'speedfile.cz/')]");
  5743. addObsoleteHost("speedshare\\.org\/\\w+","//a[contains(@href,'speedshare.org/')]");
  5744. addObsoleteHost("storage.novoro\\.net\/\\w+","//a[contains(@href,'storage.novoro.net/')]");
  5745. addObsoleteHost("swankshare\\.com\/\\w+","//a[contains(@href,'swankshare.com/')]");
  5746. addObsoleteHost("swatupload\\.com\/\\w+","//a[contains(@href,'swatupload.com/')]");
  5747. addObsoleteHost("upafile\\.com\/\\w+","//a[contains(@href,'upafile.com/')]");
  5748. addObsoleteHost("uploadmachine\\.com\/\\w+","//a[contains(@href,'uploadmachine.com/')]");
  5749. addObsoleteHost("uploadsat\\.com\/\\w+","//a[contains(@href,'uploadsat.com/')]");
  5750. addObsoleteHost("upshared\\.com\/\\w+","//a[contains(@href,'upshared.com/')]");
  5751. addObsoleteHost("usefile\\.com\/\\w+","//a[contains(@href,'usefile.com/')]");
  5752. addObsoleteHost("yourfiles\\.to\/\\w+","//a[contains(@href,'yourfiles.to/')]");
  5753. addObsoleteHost("zomgupload\\.com\/\\w+","//a[contains(@href,'zomgupload.com/')]");
  5754. addObsoleteHost("~[\\w\\s~]*","//a[contains(@href,'//~') or contains(@href,'//www.~')]");
  5755. addObsoleteHost("filemup\\.com\/\\w+","//a[contains(@href,'filemup.com/')]");
  5756. addObsoleteHost("tuxfile\\.com\/\\w+","//a[contains(@href,'tuxfile.com/')]");
  5757. addObsoleteHost("ultramegabit\\.com\/\\w+","//a[contains(@href,'ultramegabit.com/')]");
  5758. addObsoleteHost("uploadto\\.us\/\\w+","//a[contains(@href,'uploadto.us/')]");
  5759. addObsoleteHost("filecore\\.co\\.nz\/\\w+","//a[contains(@href,'filecore.co.nz/')]");
  5760. addObsoleteHost("fileshare\\.in\\.ua\/\\w+","//a[contains(@href,'fileshare.in.ua/')]");
  5761. addObsoleteHost("firedrive\\.com\/\\w+","//a[contains(@href,'firedrive.com/')]");
  5762. addObsoleteHost("putlocker\\.com\/\\w+","//a[contains(@href,'putlocker.com/')]");
  5763. addObsoleteHost("lumfile\\.com\/\\w+","//a[contains(@href,'lumfile.com/')]");
  5764. addObsoleteHost("lumfile\\.se\/\\w+","//a[contains(@href,'lumfile.se/')]");
  5765. addObsoleteHost("lumfile\\.eu\/\\w+","//a[contains(@href,'lumfile.eu/')]");
  5766. addObsoleteHost("shared\\.com\/\\w+","//a[contains(@href,'shared.com/')]");
  5767. addObsoleteHost("stahovadlo\\.cz\/\\w+","//a[contains(@href,'stahovadlo.cz/')]");
  5768. addObsoleteHost("dizzcloud\\.com\/\\w+","//a[contains(@href,'dizzcloud.com/')]");
  5769. addObsoleteHost("ddlstorage\\.com\/\\w+","//a[contains(@href,'ddlstorage.com/')]");
  5770. addObsoleteHost("dataport\\.cz\/\\w+","//a[contains(@href,'dataport.cz/')]");
  5771. addObsoleteHost("daj\\.to\/\\w+","//a[contains(@href,'daj.to/')]");
  5772. addObsoleteHost("sockshare\\.com\/\\w+","//a[contains(@href,'sockshare.com/')]");
  5773. addObsoleteHost("2drive\\.net\/\\w+","//a[contains(@href,'2drive.net/')]");
  5774. addObsoleteHost("bl\\.st\/\\w+","//a[contains(@href,'bl.st/')]");
  5775. addObsoleteHost("uncapped-downloads\\.com\/\\w+","//a[contains(@href,'uncapped-downloads.com/')]");
  5776. addObsoleteHost("freakshare\\.net\/\\w+","//a[contains(@href,'freakshare.net/')]");
  5777. addObsoleteHost("freakshare\\.com\/\\w+","//a[contains(@href,'freakshare.com/')]");
  5778. addObsoleteHost("sharebeast\\.com\/\\w+","//a[contains(@href,'sharebeast.com/')]");
  5779. addObsoleteHost("tufiles\\.ru\/\\w+","//a[contains(@href,'tufiles.ru/')]");
  5780. addObsoleteHost("crisshare\\.com\/\\w+","//a[contains(@href,'crisshare.com/')]");
  5781. addObsoleteHost("ryushare\\.com\/\\w+","//a[contains(@href,'ryushare.com/')]");
  5782. addObsoleteHost("kingfiles\\.net\/\\w+","//a[contains(@href,'kingfiles.net/')]");
  5783. addObsoleteHost("burnupload\\.com\/\\w+","//a[contains(@href,'burnupload.com') or contains(@href,'burnupload.ihiphop.com')]");
  5784. addObsoleteHost("down4files\\.com\/\\w+","//a[contains(@href,'down4files.com/')]");
  5785. addObsoleteHost("edoc\\.com\/\\w+","//a[contains(@href,'edoc.com/')]");
  5786. addObsoleteHost("migahost\\.com\/\\w+","//a[contains(@href,'migahost.com/')]");
  5787. addObsoleteHost("movreel\\.com\/\\w+","//a[contains(@href,'movreel.com/')]");
  5788. addObsoleteHost("newfileland\\.com\/\\w+","//a[contains(@href,'newfileland.com/')]");
  5789. addObsoleteHost("jumbofile\\.net\/\\w+","//a[contains(@href,'jumbofile.net/')]");
  5790. addObsoleteHost("krotix\\.net\/\\w+","//a[contains(@href,'krotix.net/')]");
  5791. addObsoleteHost("cramit\\.in\/\\w+","//a[contains(@href,'cramitin.net') or contains(@href,'cramit.in')]");
  5792. addObsoleteHost("netload\\.in\/\\w+","//a[contains(@href,'netload.in/')]")
  5793. addObsoleteHost("quickshare\\.cz\/\\w+","//a[contains(@href,'quickshare.cz/')]");
  5794. // obsolete start
  5795. }
  5796. //obsolete file hosts init end
  5797. //Add Host Example
  5798. /* if (GM_getValue("Check_datafile_dot_com_links", false))
  5799. {
  5800. addFileHost(
  5801. "datafile\.com\/\\w+",
  5802. 'var captchaPanel|<link href="/css/files_download.css"',
  5803. 'ErrorCode|ErrorCode 0: Invalid Link|btn-orange" href="#"',
  5804. 'You are downloading another file at this moment|You exceeded your free|Site Maintenance',
  5805. '<style type="text/css">',
  5806. "//a[contains(@href,'datafile.com')]",
  5807. true);
  5808. } */
  5809.  
  5810. function addFileHost(linkRegex, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, xpathEx, tryLoop)
  5811. {
  5812. var host = new Array(7);
  5813. host[0] = linkRegex;
  5814. host[1] = isAliveRegex;
  5815. host[2] = isDeadRegex;
  5816. host[3] = isUnavaRegex;
  5817. host[6] = ispremRegex;
  5818. host[4] = xpathEx;
  5819. tryLoop ? host[5] = true : host[5] = false;
  5820. http_file_hosts.push(host);
  5821. }
  5822. if (GM_getValue("Check_megafileupload_dot_com_links", false))
  5823. {
  5824. addFileHost(
  5825. "megafileupload\.com\/..\/file\/",
  5826. 'downloadbtn',
  5827. 'is not found',
  5828. 'optional--',
  5829. 'optional2--',
  5830. "//a[contains(@href,'megafileupload.com')]");
  5831. }
  5832. if (GM_getValue("Check_demo_dot_ovh_dot_eu_links", false))
  5833. {
  5834. addFileHost(
  5835. "demo\\.ovh\\.eu\/\\w+\/\\w+",
  5836. 'download\\.gif"',
  5837. 'p_point">',
  5838. 'optional--',
  5839. 'optional2--',
  5840. "//a[contains(@href,'demo.ovh.eu')]");
  5841. }
  5842. if (GM_getValue("Check_xkeepfile_dot_com_links", false))
  5843. {
  5844. addFileHost(
  5845. "xkeepfile\.com\/\\w+",
  5846. 'File has been found|Click here to download',
  5847. 'File cannot be found|class="error">',
  5848. 'optional--',
  5849. 'optional2--',
  5850. "//a[contains(@href,'xkeepfile.com/') or contains(@href,'Gamesena.com/')]");
  5851. }
  5852. if (GM_getValue("Check_safelinking_dot_net_links", false))
  5853. {
  5854. addFileHost(
  5855. "safelinking\\.net\/p\/\\w+",
  5856. 'color:green;"',
  5857. 'color:(?:red|orange);"',
  5858. 'color:(?:grey|brown);"',
  5859. 'optional2--',
  5860. "//a[contains(@href,'safelinking.net/p/')]",
  5861. true);
  5862. }
  5863. if (GM_getValue("Check_fastshare_dot_cz_links", false))
  5864. {
  5865. addFileHost(
  5866. "fastshare\\.cz\/\\d+\/\\w*",
  5867. 'dwntable">',
  5868. 'nebyla nalezena|nebola nájdená|nie została odnaleziona|color:red;font-weight:bold;border\\-style:dashed|<i class="fa fa-copyright"></i>',
  5869. 'optional--',
  5870. 'optional2--',
  5871. "//a[contains(@href,'fastshare.cz')]");
  5872. }
  5873. if (GM_getValue("Check_fastshare_dot_org_links", false))
  5874. {
  5875. addFileHost(
  5876. "[fF]ast[sS]hare\\.org\/download",
  5877. 'Download ">',
  5878. 'Diese Datei wurde wegen|wurde kein Dateiname',
  5879. 'optional--',
  5880. 'optional2--',
  5881. "//a[contains(@href,'fastshare.org/download') or contains(@href,'FastShare.org/download')]");
  5882. }
  5883. if (GM_getValue("Check_partage_dash_facile_dot_com_links", false))
  5884. {
  5885. addFileHost(
  5886. "partage-facile\.com\/\\w+",
  5887. 'class="title"><strong>|colspan="2"',
  5888. 'Page introuvable|class="alert-message',
  5889. 'optional--',
  5890. 'optional2--',
  5891. "//a[contains(@href,'partage-facile.com')]");
  5892. }
  5893. if (GM_getValue("Check_rapidgator_dot_net_links", false))
  5894. {
  5895. addFileHost(
  5896. "rapidgator\\.net\/file\/\\w+",
  5897. '/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',
  5898. 'Error 404|File not found|Error 500|Файл не найден|ファイルが探せませんでした|Fichier non trouvé|Archivo no encontrado|Select your plan',
  5899. 'optional--',
  5900. 'can be downloaded by premium only|files up to 500 MB in free mode|files up to 1 GB in free mode',
  5901. "//a[contains(@href,'rapidgator.net/file')]",
  5902. true
  5903. );
  5904. }
  5905. if (GM_getValue("Check_relink_dot_us_links", false))
  5906. {
  5907. addFileHost(
  5908. "relink\\.us\/(?:f\/\\w+|go\\.php\\?id=\\d+|view\\.php\\?id=\\d+)",
  5909. 'online_detail\\.png" alt="Status',
  5910. '(?:offline|partially)_detail\\.png" alt="Status|File deleted',
  5911. 'unknown_detail\\.png" alt="Status',
  5912. 'optional2--',
  5913. "//a[contains(@href,'relink.us/')]"
  5914. );
  5915. }
  5916. if (GM_getValue("Check_uploadstube_dot_de_links", false))
  5917. {
  5918. addFileHost(
  5919. "uploadstube\\.de\/download\\.php\\?file=\\d+",
  5920. 'div id="dl"',
  5921. 'Sie haben den Link falsch',
  5922. 'optional--',
  5923. 'optional2--',
  5924. "//a[contains(@href,'uploadstube.de/download.php?file=')]"
  5925. );
  5926. }
  5927. if (GM_getValue("Check_flyfiles_dot_net_links", false))
  5928. {
  5929. addFileHost(
  5930. "flyfiles\\.net\/\\w+",
  5931. 'download_button"|"Download file"',
  5932. 'File not found!|Файл не найден',
  5933. 'optional--',
  5934. 'optional2--',
  5935. "//a[contains(@href,'flyfiles.net/')]"
  5936. );
  5937. }
  5938. if (GM_getValue("Check_wikiupload_dot_com_links", false))
  5939. {
  5940. addFileHost(
  5941. "wikiupload\\.com\/\\w+",
  5942. 'download-button">',
  5943. 'Sorry, File not found',
  5944. 'optional--',
  5945. 'optional2--',
  5946. "//a[contains(@href,'wikiupload.com/')]"
  5947. );
  5948. }
  5949. if (GM_getValue("Check_hostuje_dot_net_links", false))
  5950. {
  5951. addFileHost(
  5952. "hostuje\\.net\/file\\.php\\?id=\\w+",
  5953. 'file\\.php">|Pobierz Plik',
  5954. 'Podany plik nie zosta',
  5955. 'optional--',
  5956. 'optional2--',
  5957. "//a[contains(@href,'hostuje.net/file')]"
  5958. );
  5959. }
  5960. if (GM_getValue("Check_gettyfile_dot_ru_links", false))
  5961. {
  5962. addFileHost(
  5963. "gettyfile\\.ru\/\\d+",
  5964. 'download\\.gif border',
  5965. '<center><font size="3">',
  5966. 'optional--',
  5967. 'optional2--',
  5968. "//a[contains(@href,'gettyfile.ru/')]"
  5969. );
  5970. }
  5971. if (GM_getValue("Check_turbobit_dot_ru_links", false))
  5972. {
  5973. addFileHost(
  5974. "(?:turbob1t|failoobmenik|filesmail|firebit|dlbit|files\\.china\\-gsm|3aka4aem|file\\.piratski|mnogofiles|links-free|turbo-bit|turbosfiles)\\.\\w+\/\\w+",
  5975. 'download\\-file">',
  5976. 'col-1">\\s*<h1>',
  5977. 'optional--',
  5978. 'optional2--',
  5979. "//a[contains(@href,'turbobit.ru/') or contains(@href,'filesmail.ru/') or contains(@href,'failoobmenik.ru/')"+
  5980. " or contains(@href,'firebit.in/') or contains(@href,'dlbit.net/') or contains(@href,'files.china-gsm.ru/') or contains(@href,'3aka4aem.ru/')"+
  5981. " or contains(@href,'file.piratski.ru/') or contains(@href,'mnogofiles.com/') or contains(@href,'links-free.ru/')"+
  5982. " or contains(@href,'turbo-bit.ru/') or contains(@href,'turbosfiles.ru/')]"
  5983. );
  5984. }
  5985. if (GM_getValue("Check_data_dot_hu_links", false))
  5986. {
  5987. addFileHost(
  5988. "data\\.hu\/get\/\\d+\/",
  5989. 'download_box_button',
  5990. 'missing\\.php',
  5991. 'optional--',
  5992. 'optional2--',
  5993. "//a[contains(@href,'data.hu/get')]",
  5994. true
  5995. );
  5996. }
  5997. if (GM_getValue("Check_filesmelt_dot_com_links", false))
  5998. {
  5999. addFileHost(
  6000. "filesmelt\\.com\/dl\/\\w+",
  6001. '(Your download is ready|Download File)',
  6002. 'Sorry, but your',
  6003. 'optional--',
  6004. 'optional2--',
  6005. "//a[contains(@href,'filesmelt.com/dl')]"
  6006. );
  6007. }
  6008. if (GM_getValue("Check_indowebster_dot_com_links", false))
  6009. {
  6010. addFileHost(
  6011. "(?:files\\.)?indowebster\\.com\/download\/\\w+\/",
  6012. 'premiumBtn"',
  6013. 'errorMessage"',
  6014. 'optional--',
  6015. 'optional2--',
  6016. "//a[contains(@href,'indowebster.com/download')]"
  6017. );
  6018. }
  6019. if (GM_getValue("Check_superload_dot_cz_links", false))
  6020. {
  6021. addFileHost(
  6022. "superload\\.cz\/dl\/\\w+",
  6023. 'icon-download">',
  6024. 'soubor nebyl nalezen',
  6025. 'optional--',
  6026. 'optional2--',
  6027. "//a[contains(@href,'superload.cz/dl')]"
  6028. );
  6029. }
  6030. if (GM_getValue("Check_hulkfile_dot_eu_links", false))
  6031. {
  6032. addFileHost(
  6033. "(?:w\\.hulkfile\\.com|hulkfile\\.eu)\/\\w+",
  6034. 'op" value="download',
  6035. 'class="err">|width:500px;text-align:left;">',
  6036. 'optional--',
  6037. 'optional2--',
  6038. "//a[contains(@href,'hulkfile.')]"
  6039. );
  6040. }
  6041. if (GM_getValue("Check_easybytez_dot_com_links", false))
  6042. {
  6043. addFileHost(
  6044. "easybytez\\.com\/\\w+",
  6045. 'op" value="download',
  6046. 'stop_error\\.gif',
  6047. 'optional--',
  6048. 'optional2--',
  6049. "//a[contains(@href,'easybytez.com/')]"
  6050. );
  6051. }
  6052. if (GM_getValue("Check_filestore_dot_com_dot_ua_links", false))
  6053. {
  6054. addFileHost(
  6055. "filestore\\.com\\.ua\/\\?d=\\w+",
  6056. 'tdrow1>',
  6057. 'class=warn',
  6058. 'optional--',
  6059. 'optional2--',
  6060. "//a[contains(@href,'filestore.com.ua/?d=')]"
  6061. );
  6062. }
  6063. if (GM_getValue("Check_netkups_dot_com_links", false))
  6064. {
  6065. addFileHost(
  6066. "netkups\\.com\/\\?d=\\w+",
  6067. 'submit">Continue',
  6068. 'page">File not found|deleted due to inactivity',
  6069. 'optional--',
  6070. 'optional2--',
  6071. "//a[contains(@href,'netkups.com/?d=')]"
  6072. );
  6073. }
  6074. if (GM_getValue("Check_openfile_dot_ru_links", false))
  6075. {
  6076. addFileHost(
  6077. "openfile\\.ru\/(?:video\/|)\\d+",
  6078. 'videobox_left">',
  6079. 'blog_title">|not found on this server',
  6080. 'optional--',
  6081. 'optional2--',
  6082. "//a[contains(@href,'openfile.ru/')]"
  6083. );
  6084. }
  6085. if (GM_getValue("Check_extmatrix_dot_com_links", false))
  6086. {
  6087. addFileHost(
  6088. "extmatrix\\.com\/files\/\\w+",
  6089. 'div class="success"',
  6090. 'div class="error"',
  6091. 'optional--',
  6092. 'optional2--',
  6093. "//a[contains(@href,'extmatrix.com/files')]"
  6094. );
  6095. }
  6096. if (GM_getValue("Check_sendfiles_dot_nl_links", false))
  6097. {
  6098. addFileHost(
  6099. "sendfiles\\.nl\/download.aspx\\?ID=\\w+",
  6100. 'content_lnkDownload',
  6101. 'error\\.aspx\\?',
  6102. 'optional--',
  6103. 'optional2--',
  6104. "//a[contains(@href,'sendfiles.nl/download.aspx')]"
  6105. );
  6106. }
  6107. if (GM_getValue("Check_yourfilestore_dot_com_links", false))
  6108. {
  6109. addFileHost(
  6110. "yourfilestore\\.com\/download\/\\d+\/",
  6111. 'download_data">',
  6112. 'may have been deleted|<h1>Sorry!<\/h1>',
  6113. 'optional--',
  6114. 'optional2--',
  6115. "//a[contains(@href,'yourfilestore.com/download')]"
  6116. );
  6117. }
  6118. if (GM_getValue("Check_nekaka_dot_com_links", false))
  6119. {
  6120. addFileHost(
  6121. "nekaka\\.com\/d\/[\\w-]+",
  6122. 'downloadForm">',
  6123. 'invalid file link',
  6124. 'optional--',
  6125. 'optional2--',
  6126. "//a[contains(@href,'nekaka.com/d')]"
  6127. );
  6128. }
  6129. if (GM_getValue("Check_filebig_dot_net_links", false))
  6130. {
  6131. addFileHost(
  6132. "filebig\\.net\/files\/\\w+",
  6133. 'downloadFile">',
  6134. '<p>File not found<\/p>',
  6135. 'optional--',
  6136. 'optional2--',
  6137. "//a[contains(@href,'filebig.net/files')]"
  6138. );
  6139. }
  6140. if (GM_getValue("Check_gamefront_dot_com_links", false))
  6141. {
  6142. addFileHost(
  6143. "files\\.filefront\\.com\/\/;\\d+;;",
  6144. 'downloadLink">',
  6145. 'File not found, you',
  6146. 'optional--',
  6147. 'optional2--',
  6148. "//a[contains(@href,'files.filefront.com')]"
  6149. );
  6150.  
  6151. addFileHost(
  6152. "gamefront\\.com\/files\/\\d+",
  6153. 'downloadLink">',
  6154. 'File not found, you',
  6155. 'optional--',
  6156. 'optional2--',
  6157. "//a[contains(@href,'gamefront.com/files')]"
  6158. );
  6159. }
  6160. if (GM_getValue("Check_hyperfileshare_dot_com_links", false))
  6161. {
  6162. addFileHost(
  6163. "(?:download\\.|)hyperfileshare\\.com\/(?:download\\.php\\?code=|d\/)\\w+",
  6164. 'dnlLnk"',
  6165. 'already been deleted',
  6166. 'optional--',
  6167. 'optional2--',
  6168. "//a[contains(@href,'hyperfileshare.com/download') or contains(@href,'hyperfileshare.com/d')]"
  6169. );
  6170. }
  6171. if (GM_getValue("Check_hellupload_dot_com_links", false))
  6172. {
  6173. addFileHost(
  6174. "hellupload\\.com\/\\w+",
  6175. '<h3>Download File<br',
  6176. 'id="podstrona">|AVOID_IE_BUG',
  6177. 'optional--',
  6178. 'optional2--',
  6179. "//a[contains(@href,'hellupload.com/')]"
  6180. );
  6181. }
  6182. if (GM_getValue("Check_free_dash_uploading_dot_com_links", false))
  6183. {
  6184. addFileHost(
  6185. "free\\-uploading\\.com\/\\w+",
  6186. 'op" value="download',
  6187. 'class="err">|width:500px;text-align:left;">',
  6188. 'optional--',
  6189. 'optional2--',
  6190. "//a[contains(@href,'free-uploading.com/')]"
  6191. );
  6192. }
  6193. if (GM_getValue("Check_fileape_dot_com_links", false))
  6194. {
  6195. addFileHost(
  6196. "fileape\\.com\/download\\-",
  6197. 'button_dl\\.png',
  6198. 'does not exist\\.',
  6199. 'optional--',
  6200. 'optional2--',
  6201. "//a[contains(@href,'fileape.com/')]"
  6202. );
  6203. }
  6204. if (GM_getValue("Check_uppit_dot_com_links", false))
  6205. {
  6206. addFileHost(
  6207. "(?:uppit\\.com|up\\.ht)\/\\w+",
  6208. 'op" value="download',
  6209. 'class="err">|style="width:500px;text-align:left;"|fish-404\\.png"',
  6210. 'optional--',
  6211. 'optional2--',
  6212. "//a[contains(@href,'up.ht/') or contains(@href,'uppit.com/')]",
  6213. true
  6214. );
  6215. }
  6216. if (GM_getValue("Check_nosupload_dot_com_links", false))
  6217. {
  6218. addFileHost(
  6219. "nosupload\\.com\/(?:\\?d=)?\\w+",
  6220. 'op" value="download',
  6221. '>File Not Found<',
  6222. 'optional--',
  6223. 'optional2--',
  6224. "//a[contains(@href,'nosupload.com')]",
  6225. true
  6226. );
  6227. }
  6228. if (GM_getValue("Check_filesin_dot_com_links", false))
  6229. {
  6230. addFileHost(
  6231. "filesin\\.com\/\\w+\/download\\.html",
  6232. 'download_area">',
  6233. 'error_note">',
  6234. 'optional--',
  6235. 'optional2--',
  6236. "//a[contains(@href,'filesin.com/')]",
  6237. true
  6238. );
  6239. }
  6240. if (GM_getValue("Check_nowdownload_dot_ch_links", false))
  6241. {
  6242. addFileHost(
  6243. "nowdownload\\.ch\/dl\/\\w+",
  6244. 'alert-success"',
  6245. 'This file does not exist!',
  6246. 'The file is being transfered',
  6247. 'optional2--',
  6248. "//a[contains(@href,'nowdownload.ch/dl')]"
  6249. );
  6250. }
  6251. if (GM_getValue("Check_axifile_dot_com_links", false))
  6252. {
  6253. addFileHost(
  6254. "axifile\\.com(?:\/\w(2))?\/\\??\\w+",
  6255. 'Dbutton_big"',
  6256. 'download\\-error\\.php',
  6257. 'optional--',
  6258. 'optional2--',
  6259. "//a[contains(@href,'axifile.com/')]"
  6260. );
  6261. }
  6262. if (GM_getValue("Check_hulkshare_dot_com_links", false))
  6263. {
  6264. addFileHost(
  6265. "hulkshare\.com\/\\w+",
  6266. 'download\.sam\.png|This is a private file|id="filename',
  6267. 'File does not exist|fingerprint protected copyright',
  6268. 'optional--',
  6269. 'optional2--',
  6270. "//a[contains(@href,'hulkshare.com')]"
  6271. );
  6272. }
  6273. if (GM_getValue("Check_turbobit_dot_net_links", false)) //folders
  6274. {
  6275. addFileHost(
  6276. "turbobit\\.(?:net|pl)\/download\/folder\/\\d+",
  6277. 'col-1">\\s*<s',
  6278. 'col-1">\\s*<h',
  6279. 'optional--',
  6280. 'optional2--',
  6281. "//a[contains(@href,'turbobit.') and contains(@href,'download/folder')]"
  6282. );
  6283. }
  6284. if (GM_getValue("Check_turbobit_dot_net_links", false)) //folders
  6285. {
  6286. addFileHost(
  6287. "turbobit\\.(?:net|pl)",
  6288. 'id="download-gate-info',
  6289. 'afterWait()',
  6290. 'optional--',
  6291. 'optional2--',
  6292. "//a[contains(@href,'turbobit.net')]"
  6293. );
  6294. }
  6295. if (GM_getValue("Check_hitfile_dot_net_links", false)) //folders
  6296. {
  6297. addFileHost(
  6298. "hitfile\\.net\/download\/folder\/\\d+",
  6299. 'content">\\s*<s',
  6300. 'content">\\s*<h',
  6301. 'optional--',
  6302. 'optional2--',
  6303. "//a[contains(@href,'hitfile.net/download/folder')]"
  6304. );
  6305. }
  6306. if (GM_getValue("Check_movshare_dot_net_links", false))
  6307. {
  6308. addFileHost(
  6309. "movshare\\.net\\/video\\/\\w+",
  6310. 'optional--"',
  6311. 'no longer exists',
  6312. 'optional--',
  6313. 'optional2--',
  6314. "//a[contains(@href,'movshare.net/video')]"
  6315. );
  6316. }
  6317. if (GM_getValue("Check_plunder_dot_com_links", false))
  6318. {
  6319. addFileHost(
  6320. "plunder\.com\/\\w+",
  6321. 'x\/download\\.gif',
  6322. '404 - File or directory not found.',
  6323. 'optional--',
  6324. 'optional2--',
  6325. "//a[contains(@href,'plunder.com')]"
  6326. );
  6327. }
  6328. if (GM_getValue("Check_mafiastorage_dot_com_links", false))
  6329. {
  6330. addFileHost(
  6331. "mafiastorage\\.com\/\\w+",
  6332. 'op" value="download',
  6333. 'class="err">|style="width:500px;text-align:left;"',
  6334. 'optional--',
  6335. 'optional2--',
  6336. "//a[contains(@href,'mafiastorage.com/')]"
  6337. );
  6338. }
  6339. if (GM_getValue("Check_uploadspace_dot_pl_links", false))
  6340. {
  6341. addFileHost(
  6342. "uploadspace\.pl\/plik\\w+",
  6343. 'Downloading .+? \\|',
  6344. 'Downloading a file',
  6345. 'optional--',
  6346. 'optional2--',
  6347. "//a[contains(@href,'uploadspace.pl/plik')]"
  6348. );
  6349. }
  6350. if (GM_getValue("Check_uploadingit_dot_com_links", false))
  6351. {
  6352. addFileHost(
  6353. "uploadingit\\.com\/file\/\\w+",
  6354. 'downloadTitle">',
  6355. 'deleteContent">',
  6356. 'optional--',
  6357. 'optional2--',
  6358. "//a[contains(@href,'uploadingit.com/file')]"
  6359. );
  6360. }
  6361. if (GM_getValue("Check_rghost_dot_net_links", false))
  6362. {
  6363. addFileHost(
  6364. "rghost\.(?:net|ru)\/(?:|private\/)\\d+",
  6365. 'download_link|btn large download',
  6366. 'file is restricted|File is deleted|503 Service Unavailable',
  6367. 'optional--',
  6368. 'optional2--',
  6369. "//a[contains(@href,'rghost.')]"
  6370. );
  6371. }
  6372. if (GM_getValue("Check_xdisk_dot_cz_links", false))
  6373. {
  6374. addFileHost(
  6375. "xdisk\\.cz\/(?:..\/)?download\\.php\\?id=\\w+",
  6376. '">Staženo:\\s*<\/span>',
  6377. 'Soubor, který hledáte nenalezen',
  6378. 'optional--',
  6379. 'optional2--',
  6380. "//a[contains(@href,'xdisk.cz/')]"
  6381. );
  6382. }
  6383. if (GM_getValue("Check_expressleech_dot_com_links", false))
  6384. {
  6385. addFileHost(
  6386. "expressleech\.com\/\\w+",
  6387. 'src="/img/Download.gif"|var _gaq =',
  6388. 'var rr =|403 Forbidden',
  6389. 'optional--',
  6390. 'optional2--',
  6391. "//a[contains(@href,'expressleech.com')]");
  6392. }
  6393. if (GM_getValue("Check_2downloadz_dot_com_links", false))
  6394. {
  6395. addFileHost(
  6396. "2downloadz\.com\/\\w+",
  6397. 'color="#848484|src="images/Download.png"|color:#238DCA',
  6398. 'color="#006DCC|File error',
  6399. 'optional--',
  6400. 'optional2--',
  6401. "//a[contains(@href,'2downloadz.com')]");
  6402. }
  6403. if (GM_getValue("Check_mightyupload_dot_com_links", false))
  6404. {
  6405. addFileHost(
  6406. "mightyupload\.com\/\\w+",
  6407. 'background:#ccc;text-align|CONTENT="Download File"',
  6408. 'style="background:#eee|var rr =|File Not Found',
  6409. 'error-code">1010',
  6410. 'optional2--',
  6411. "//a[contains(@href,'mightyupload.com')]");
  6412. }
  6413. if (GM_getValue("Check_anysend_dot_com_links", false))
  6414. {
  6415. addFileHost(
  6416. "anysend\.com\/\\w+",
  6417. 'var openCalled=false;|content="noindex"',
  6418. '_trackPageview',
  6419. 'optional--',
  6420. 'optional2--',
  6421. "//a[contains(@href,'anysend.com')]");
  6422. }
  6423. if (GM_getValue("Check_datafile_dot_com_links", false))
  6424. {
  6425. addFileHost(
  6426. "datafile\.com\/\\w+",
  6427. 'var captchaPanel|<link href="/css/files_download.css"',
  6428. 'ErrorCode|ErrorCode 0: Invalid Link|btn-orange" href="#"',
  6429. 'You are downloading another file at this moment|You exceeded your free|Site Maintenance',
  6430. '; display:none;">', //<style type="text/css">
  6431. "//a[contains(@href,'datafile.com')]",
  6432. true);
  6433. }
  6434. if (GM_getValue("Check_upstore_dot_net_links", false))
  6435. {
  6436. addFileHost(
  6437. "upstore\.net\/\\w+",
  6438. 'style="margin-top: 20px">|style="text-align:center; margin: 20px 0 100px;">',
  6439. 'File not found|onload="redirect|class="error">',
  6440. 'optional--',
  6441. 'optional2--',
  6442. "//a[contains(@href,'upstore.net')]");
  6443. }
  6444. if (GM_getValue("Check_upsto_dot_re_links", false))
  6445. {
  6446. addFileHost(
  6447. "upsto\.re\/\\w+",
  6448. 'style="margin-top: 20px">|style="text-align:center; margin: 20px 0 100px;">',
  6449. 'File not found|onload="redirect|class="error">',
  6450. 'optional--',
  6451. 'optional2--',
  6452. "//a[contains(@href,'upsto.re')]");
  6453. }
  6454. if (GM_getValue("Check_speedy_dot_sh_links", false))
  6455. {
  6456. addFileHost(
  6457. "speedy\.sh\/\\w+",
  6458. 'bgcolor=#eeeeee|class="addthis',
  6459. 'File not found|downloadfilenamenotfound>',
  6460. 'optional--',
  6461. 'optional2--',
  6462. "//a[contains(@href,'speedy.sh')]");
  6463. }
  6464. if (GM_getValue("Check_sanshare_dot_com_links", false))
  6465. {
  6466. addFileHost(
  6467. "sanshare\.com\/\\w+",
  6468. 'SANSHARE_TOPBANNER|offset-1"><h3><b>Download File',
  6469. 'offset-1"><b>File Not Found<|width:500px;text-align',
  6470. 'optional--',
  6471. 'optional2--',
  6472. "//a[contains(@href,'sanshare.com')]");
  6473. }
  6474. if (GM_getValue("Check_uploadhero_dot_co_links", false))
  6475. {
  6476. addFileHost(
  6477. "uploadhero\\.co\/dl\/\\w+",
  6478. 'class="nom_de_fichier"|Unlimited downloads|Estimated download time|Lien de téléchargement"',
  6479. 'not available on our server|pas disponible sur nos serveurs|Le lien du fichier est incorrect',
  6480. 'optional--',
  6481. 'optional2--',
  6482. "//a[contains(@href,'uploadhero.co/dl')]"
  6483. );
  6484. }
  6485. if (GM_getValue("Check_secureupload_dot_eu_links", false))
  6486. {
  6487. addFileHost(
  6488. "secureupload\\.eu\/\\w+",
  6489. 'Downloading',
  6490. 'cannot be found|File Not Found|could not be found',
  6491. 'optional--',
  6492. 'optional2--',
  6493. "//a[contains(@href,'secureupload.eu')]"
  6494. );
  6495. }
  6496. if (GM_getValue("Check_ge_dot_tt_links", false))
  6497. {
  6498. addFileHost(
  6499. "ge\.tt\/\\w+",
  6500. 'downloads pic',
  6501. 'is NOT the same as',
  6502. 'optional--',
  6503. 'optional2--',
  6504. "//a[contains(@href,'ge.tt')]");
  6505. }
  6506. if (GM_getValue("Check_filefactory_dot_com_links", false))
  6507. {
  6508. addFileHost(
  6509. "filefactory\.com\/\\w+",
  6510. 'div id="file_holder"|download.css',
  6511. 'File Removed|Invalid Download Link|File Unavailable|Server Failed|Datei entfernt|This file has been removed|Invalid Download Link',
  6512. 'Server Maintenance|temporarily overloaded',
  6513. 'optional2--',
  6514. "//a[contains(@href,'filefactory.com')]");
  6515. }
  6516. if (GM_getValue("Check_filesflash_dot_net_links", false))
  6517. {
  6518. addFileHost(
  6519. "filesflash\.net\/\\w+",
  6520. 'align:right">Filename:',
  6521. 'class="msg">',
  6522. 'optional--',
  6523. 'optional2--',
  6524. "//a[contains(@href,'filesflash.net')]");
  6525. }
  6526. if (GM_getValue("Check_rapidgator_dot_net_links", false)) //folders
  6527. {
  6528. addFileHost(
  6529. "rapidgator\\.net\/folder\/\\w+",
  6530. 'href="/folder/',
  6531. 'class="empty|Folder not found|Carpeta no encontrada|Dossier non trouvé|Папка не найдена',
  6532. 'optional--',
  6533. 'optional2--',
  6534. "//a[contains(@href,'rapidgator.net/folder')]",
  6535. true
  6536. );
  6537. }
  6538. if (GM_getValue("Check_salefiles_dot_com_links", false))
  6539. {
  6540. addFileHost(
  6541. "salefiles\.com\/\\w+",
  6542. '<Title>Download|CONTENT="Download',
  6543. 'font:15px Arial|background:#eee;',
  6544. 'optional--',
  6545. 'optional2--',
  6546. "//a[contains(@href,'salefiles.com')]");
  6547. }
  6548. if (GM_getValue("Check_megairon_dot_net_links", false))
  6549. {
  6550. addFileHost(
  6551. "megairon\.net\/\\w+",
  6552. 'border: 5px #ffeb90 solid;',
  6553. 'CONTENT="Download File ">|var rr =',
  6554. 'error-code">523',
  6555. 'optional2--',
  6556. "//a[contains(@href,'megairon.net')]",
  6557. true);
  6558. }
  6559. if (GM_getValue("Check_datoid_dot_cz_links", false))
  6560. {
  6561. addFileHost(
  6562. "datoid\.cz\/\\w+",
  6563. 'btn-download|class="icon-download-large"',
  6564. 'Stránka nenalezena|error-404|Soubor byl zablokován',
  6565. 'optional--',
  6566. 'optional2--',
  6567. "//a[contains(@href,'datoid.cz')]");
  6568. }
  6569. if (GM_getValue("Check_stiahni_dot_si_links", false))
  6570. {
  6571. addFileHost(
  6572. "stiahni\.si\/\\w+",
  6573. 'report_icon.png"|slow-download-button',
  6574. 'none.png|deleted|<h2>Error 500</h2>',
  6575. 'optional--',
  6576. 'optional2--',
  6577. "//a[contains(@href,'stiahni.si')]");
  6578. }
  6579. if (GM_getValue("Check_cloudstor_dot_es_links", false))
  6580. {
  6581. addFileHost(
  6582. "cloudstor\.es\/\\w+",
  6583. '"btn_download"',
  6584. '404: Page Not Found',
  6585. 'optional--',
  6586. 'optional2--',
  6587. "//a[contains(@href,'cloudstor.es')]");
  6588. }
  6589. if (GM_getValue("Check_streamfile_dot_com_links", false))
  6590. {
  6591. addFileHost(
  6592. "streamfile\.com\/\\w+",
  6593. 'class="btn',
  6594. 'class="green-btn',
  6595. 'optional--',
  6596. 'optional2--',
  6597. "//a[contains(@href,'streamfile.com')]");
  6598. }
  6599. if (GM_getValue("Check_eyesfile_dot_ca_links", false))
  6600. {
  6601. addFileHost(
  6602. "eyesfile\.ca\/\\w+",
  6603. 'value="Get Link',
  6604. 'var rr =',
  6605. 'optional--',
  6606. 'optional2--',
  6607. "//a[contains(@href,'eyesfile.ca')]");
  6608. }
  6609. if (GM_getValue("Check_filemoney_dot_com_links", false))
  6610. {
  6611. addFileHost(
  6612. "filemoney\.com\/\\w+",
  6613. 'og:title',
  6614. '404 Not Found|<Title>FileMoney|File Not Found|class="err">DMCA</b>',
  6615. 'error-code">1010',
  6616. 'optional2--',
  6617. "//a[contains(@href,'filemoney.com')]");
  6618. }
  6619. if (GM_getValue("Check_uploadboy_dot_com_links", false))
  6620. {
  6621. addFileHost(
  6622. "uploadboy\.com\/\\w+",
  6623. 'width="740">|method_free',
  6624. 'var rr =|background:#ffffff|not be found|file was removed',
  6625. 'optional--',
  6626. 'optional2--',
  6627. "//a[contains(@href,'uploadboy.com')]");
  6628. }
  6629. if (GM_getValue("Check_speedshare_dot_eu_links", false))
  6630. {
  6631. addFileHost(
  6632. "speedshare\.eu\/\\w+",
  6633. 'favicon.png|color:#3d87c0|cross.png"',
  6634. 'var rr =|File Not Found|style="background:#eee',
  6635. 'optional--',
  6636. 'optional2--',
  6637. "//a[contains(@href,'speedshare.eu')]");
  6638. }
  6639. if (GM_getValue("Check_unlimitzone_dot_com_links", false))
  6640. {
  6641. addFileHost(
  6642. "unlimitzone\.com\/\\w+",
  6643. 'name="method_free',
  6644. 'var rr =|File Not Found|removed by administrator|class="err">|Файл не найден|Datei nicht gefunden|fichier non trouve|Dosya bulunamadД±|Nie znaleziono pliku|ไม่พบไฟล์ที่ต้องการ|Nie znaleziono pliku|Archive no Encontrado|ファイルが見つかりません。|File nem talГЎlhatГі|File tidak ditemukan|Bestand niet gevonden',
  6645. 'optional--',
  6646. 'optional2--',
  6647. "//a[contains(@href,'unlimitzone.com')]");
  6648. }
  6649. if (GM_getValue("Check_rioupload_dot_com_links", false))
  6650. {
  6651. addFileHost(
  6652. "rioupload\.com\/\\w+",
  6653. 'sell.jpg',
  6654. 'var rr =',
  6655. 'optional--',
  6656. 'optional2--',
  6657. "//a[contains(@href,'rioupload.com')]");
  6658. }
  6659. if (GM_getValue("Check_rg_dot_to_links", false))
  6660. {
  6661. addFileHost(
  6662. "rg\.to\/\\w+",
  6663. '/download/AjaxStartTimer|not more than 1 file at a time|your hourly downloads limit|почасовой лимит скачиваний|limite horaire de téléchargements|límite de descargas en una hora',
  6664. 'Error 404|File not found|Select your plan|Fichier non trouvé|Archivo no encontrado|ファイルが探せませんでした|Файл не найден',
  6665. 'optional--',
  6666. 'can be downloaded by premium only|files up to 500 MB in free mode',
  6667. "//a[contains(@href,'rg.to')]");
  6668. }
  6669. if (GM_getValue("Check_jumbofiles_dot_org_links", false))
  6670. {
  6671. addFileHost(
  6672. "jumbofiles\.org\/\\w+",
  6673. 'H71C5.png|class="downloadtitle">',
  6674. 'var swfu|ViewSourceBIN.png',
  6675. 'optional--',
  6676. 'optional2--',
  6677. "//a[contains(@href,'jumbofiles.org')]");
  6678. }
  6679. if (GM_getValue("Check_fshare_dot_vn_links", false))
  6680. {
  6681. addFileHost(
  6682. "fshare\\.vn\/file\/\\w+",
  6683. 'action="#download"|left; width: 330px;">|class="bt_down"',
  6684. 'không tồn tại|class="color_red m_t_50"',
  6685. 'optional--',
  6686. 'optional2--',
  6687. "//a[contains(@href,'fshare.vn/file')]",
  6688. true
  6689. );
  6690. }
  6691. if (GM_getValue("Check_spaceforfiles_dot_com_links", false))
  6692. {
  6693. addFileHost(
  6694. "spaceforfiles\.com\/\\w+",
  6695. 'btn_slowspeed_b.jpg|value="download1|class="btn_blue',
  6696. 'var rr =|AVOID_IE_BUG',
  6697. 'optional--',
  6698. 'optional2--',
  6699. "//a[contains(@href,'spaceforfiles.com')]");
  6700. }
  6701. if (GM_getValue("Check_google_dot_com_links", false))
  6702. {
  6703. addFileHost(
  6704. "google\\.com\/file\/\\w+",
  6705. 'content="!">|color:#2d2d2d',
  6706. '12pt; font-weight:|class="errorMessage"|F0F6FF',
  6707. 'optional--',
  6708. 'optional2--',
  6709. "//a[contains(@href,'google.com/file')]",
  6710. true
  6711. );
  6712. }
  6713. if (GM_getValue("Check_google_dot_com_links", false))
  6714. {
  6715. addFileHost(
  6716. "docs.google.com\/\\w+",
  6717. 'content="!">|color:#2d2d2d',
  6718. '12pt; font-weight:|class="errorMessage"|F0F6FF|Error 404',
  6719. 'optional--',
  6720. 'optional2--',
  6721. "//a[contains(@href,'docs.google.com')]",
  6722. true
  6723. );
  6724. }
  6725. if (GM_getValue("Check_google_dot_com_links", false))
  6726. {
  6727. addFileHost(
  6728. "drive.google.com\/\\w+",
  6729. 'content="!">|color:#2d2d2d|id="uc-download-link',
  6730. '12pt; font-weight:|class="errorMessage"|F0F6FF|Error 404',
  6731. 'optional--',
  6732. 'optional2--',
  6733. "//a[contains(@href,'drive.google.com')]",
  6734. true
  6735. );
  6736. }
  6737. if (GM_getValue("Check_up_dot_media1fire_dot_com_links", false))
  6738. {
  6739. addFileHost(
  6740. "up.media1fire\.com\/\\w+",
  6741. 'class="addthis_|value="download',
  6742. 'var rr =|AVOID_IE_BUG|<div style="width:500px;text-align:left;">',
  6743. 'optional--',
  6744. 'optional2--',
  6745. "//a[contains(@href,'up.media1fire.com')]");
  6746. }
  6747. if (GM_getValue("Check_depfile_dot_com_links", false))
  6748. {
  6749. addFileHost(
  6750. "depfile\.com\/\\w+",
  6751. 'logo_0.png|downloads.gif"|verifycode',
  6752. 'border-color: #5D729B;|bgcolor="#778AAF"|deleted by the owner|Invalid Link',
  6753. 'optional--',
  6754. 'available only for Premium users',
  6755. "//a[contains(@href,'depfile.com')]");
  6756. }
  6757. if (GM_getValue("Check_go4up_dot_com_links", false))
  6758. {
  6759. addFileHost(
  6760. "go4up\.com\/\\w+",
  6761. 'style="width: 100%;">|value="Access|download_line|img/webbuttoned.gif">',
  6762. '<title>GO4UP|dmca',
  6763. 'optional--',
  6764. 'optional2--',
  6765. "//a[contains(@href,'go4up.com')]");
  6766. }
  6767. if (GM_getValue("Check_redbunker_dot_net_links", false))
  6768. {
  6769. addFileHost(
  6770. "redbunker\.net\/\\w+",
  6771. 'name="method_free"',
  6772. 'color="red">Unknow / Bilinmiyor<',
  6773. 'optional--',
  6774. 'optional2--',
  6775. "//a[contains(@href,'redbunker.net')]");
  6776. }
  6777. if (GM_getValue("Check_divxpress_dot_com_links", false))
  6778. {
  6779. addFileHost(
  6780. "divxpress\.com\/\\w+",
  6781. 'btn_download|logo.png"',
  6782. 'AVOID_IE_BUG|var rr =',
  6783. 'optional--',
  6784. 'optional2--',
  6785. "//a[contains(@href,'divxpress.com')]");
  6786. }
  6787. if (GM_getValue("Check_anafile_dot_com_links", false))
  6788. {
  6789. addFileHost(
  6790. "anafile\.com\/\\w+",
  6791. 'width="881" valign="top|color="#800080"|name="go"',
  6792. 'style="width:500px;text-align:left;">|file was deleted|AVOID_IE_BUG',
  6793. 'optional--',
  6794. 'optional2--',
  6795. "//a[contains(@href,'anafile.com')]");
  6796. }
  6797. if (GM_getValue("Check_uploadable_dot_ch_links", false))
  6798. {
  6799. addFileHost(
  6800. "uploadable\\.ch\/file\/\\w+",
  6801. 'captcha.js"|payment.js"|class="btn_download"',
  6802. '<div class="icon_err">|<div class="errorBox">|"error_arrow">',
  6803. 'optional--',
  6804. 'optional2--',
  6805. "//a[contains(@href,'uploadable.ch/file')]",
  6806. true
  6807. );
  6808. }
  6809. if (GM_getValue("Check_arabloads_dot_net_links", false))
  6810. {
  6811. addFileHost(
  6812. "arabloads\.net\/\\w+",
  6813. 'name="method_free"|name="method_premium"',
  6814. 'background:#eee;font:15px Arial;">|AVOID_IE_BUG|Verdana;padding:3px;">Error|Not Found',
  6815. 'optional--',
  6816. 'optional2--',
  6817. "//a[contains(@href,'arabloads.net')]");
  6818. }
  6819. if (GM_getValue("Check_sharerepo_dot_com_links", false))
  6820. {
  6821. addFileHost(
  6822. "sharerepo\.com\/\\w+",
  6823. 'name="method_free"',
  6824. 'var public_on=|The file you were looking for could not be found',
  6825. 'optional--',
  6826. 'optional2--',
  6827. "//a[contains(@href,'sharerepo.com')]");
  6828. }
  6829. if (GM_getValue("Check_sfshare_dot_se_links", false))
  6830. {
  6831. addFileHost(
  6832. "sfshare\.se\/\\w+",
  6833. 'id="btn_download"|class="btn btn-primary txt-bold" value="',
  6834. 'AVOID_IE_BUG|var rr =|style="width:500px;text-align:left;">|Reason for deletion|The file was removed',
  6835. 'optional--',
  6836. 'optional2--',
  6837. "//a[contains(@href,'sfshare.se')]");
  6838. }
  6839. if (GM_getValue("Check_files_dot_fm_links", false))
  6840. {
  6841. addFileHost(
  6842. "files\.fm\/\\w+",
  6843. 'dl.png"|background-color: transparent',
  6844. 'margin: 40px 40px|background: none;',
  6845. 'optional--',
  6846. 'optional2--',
  6847. "//a[contains(@href,'files.fm')]");
  6848. }
  6849. if (GM_getValue("Check_koofile_dot_com_links", false))
  6850. {
  6851. addFileHost(
  6852. "koofile\.com\/\\w+",
  6853. 'value="download1">|name="method_free"',
  6854. 'class="overview-content c_text-box ">|style="padding-top:3px;">|class="rt1 c">',
  6855. 'optional--',
  6856. 'optional2--',
  6857. "//a[contains(@href,'koofile.com')]");
  6858. }
  6859. if (GM_getValue("Check_vidxden_dot_com_links", false))
  6860. {
  6861. addFileHost(
  6862. "vidxden\\.com\/\\w+",
  6863. 'Continue to Video"',
  6864. 'No such file',
  6865. 'optional--',
  6866. 'optional2--',
  6867. "//a[contains(@href,'vidxden.com')]"
  6868. );
  6869. }
  6870. if (GM_getValue("Check_muchshare_dot_net_links", false))
  6871. {
  6872. addFileHost(
  6873. "muchshare\\.net\/\\w+",
  6874. 'id="btn_download"',
  6875. 'File Not Found|width: 500px; text-align: left;',
  6876. 'optional--',
  6877. 'optional2--',
  6878. "//a[contains(@href,'muchshare.net')]"
  6879. );
  6880. }
  6881. if (GM_getValue("Check_daten_dash_hoster_dot_de_links", false))
  6882. {
  6883. addFileHost(
  6884. "(?:daten-hoster\\.de\/file\/\\w+|filehosting\\.org\/file\/\\w+|xtraupload\\.de\/\\?d=\\w+)",
  6885. 'Details zur Datei|Details page',
  6886. 'Jetzt hochladen|upload now',
  6887. 'optional--',
  6888. 'optional2--',
  6889. "//a[contains(@href,'daten-hoster.de/file') or contains(@href,'filehosting.org/file') or contains(@href,'xtraupload.de')]"
  6890. );
  6891. }
  6892. if (GM_getValue("Check_upload_dash_il_dot_net_links", false))
  6893. {
  6894. addFileHost(
  6895. "(?:upload-il|przeslij)\.net\/(?:en|he|ar|ru|)\/?\\w+",
  6896. 'downloadbtn"',
  6897. 'DL_FileNotFound',
  6898. 'optional--',
  6899. 'optional2--',
  6900. "//a[contains(@href,'upload-il.net') or contains(@href,'przeslij.net')]"
  6901. );
  6902. }
  6903. if (GM_getValue("Check_fileflyer_dot_com_links", false))
  6904. {
  6905. addFileHost(
  6906. "fileflyer\.com\/view\/\\w+",
  6907. '(?:dwl|locked)btn"',
  6908. 'error.gif"|link">Removed|removedlink">',
  6909. 'optional--',
  6910. 'optional2--',
  6911. "//a[contains(@href,'fileflyer.com')]"
  6912. );
  6913. }
  6914. if (GM_getValue("Check_filestore_dot_to_links", false))
  6915. {
  6916. addFileHost(
  6917. "filestore\.to\/\\?d=\\w+",
  6918. '"downloading"',
  6919. 'Datei wurde nicht gefunden',
  6920. 'optional--',
  6921. 'optional2--',
  6922. "//a[contains(@href,'filestore.to')]"
  6923. );
  6924. }
  6925. if (GM_getValue("Check_easy_dash_share_dot_com_links", false))
  6926. {
  6927. addFileHost(
  6928. "(?:w\\d*\.|)(?:crocko|easy-share)\\.com\/.",
  6929. 'fz24">Download|class="pl15">',
  6930. 'msg-err"|the page you\'re looking for|1>400 Bad Request<|class="search_result">|Searching for file|Information is not available|name="keywords" content="">|<title>Crocko.com 404',
  6931. 'optional--',
  6932. 'optional2--',
  6933. "//a[contains(@href,'easy-share.com') or contains(@href,'crocko.com')]"
  6934. );
  6935. }
  6936. /* if (GM_getValue("Check_burnupload_dot_com_links", false))
  6937. {
  6938. addFileHost(
  6939. "burnupload\\.(?:com\/\\?d=|ihiphop\\.com\/download\\.php\\?id=)\\w+",
  6940. 'File size:',
  6941. 'file is not found',
  6942. 'optional--',
  6943. 'optional2--',
  6944. "//a[contains(@href,'burnupload.com') or contains(@href,'burnupload.ihiphop.com')]"
  6945. );
  6946. } */
  6947. if (GM_getValue("Check_datei_dot_to_links", false))
  6948. {
  6949. addFileHost(
  6950. "datei\\.to\/\\??\\w+",
  6951. 'icon_downloaden\\.png|>Download starten<',
  6952. 'Datei wurde nicht gefunden|icon_deleted.png',
  6953. 'optional--',
  6954. 'optional2--',
  6955. "//a[contains(@href,'datei.to')]"
  6956. );
  6957. }
  6958. if (GM_getValue("Check_yunfile_dot_com_links", false))
  6959. {
  6960. addFileHost(
  6961. "(?:yunfile|filemarkets)\\.com\/\\w+",
  6962. '<body class="body" id="body">|value="Slow Download"',
  6963. '<body class="body" >',
  6964. 'optional--',
  6965. 'optional2--',
  6966. "//a[contains(@href,'yunfile.com') or contains(@href,'filemarkets.com')]"
  6967. );
  6968. }
  6969. if (GM_getValue("Check_uploadhero_dot_com_links", false))
  6970. {
  6971. addFileHost(
  6972. "uploadhero\\.com\/dl\/\\w+",
  6973. 'content-dl">',
  6974. 'men_file_lost\\.jpg"',
  6975. 'optional--',
  6976. 'optional2--',
  6977. "//a[contains(@href,'uploadhero.com/dl')]"
  6978. );
  6979. }
  6980. if (GM_getValue("Check_unibytes_dot_com_links", false))
  6981. {
  6982. addFileHost(
  6983. "unibytes\\.com\/[\\w\.]+",
  6984. 'trying to download|пытаетесь загрузить файл|tes entrain de tlcharger',
  6985. 'File not found|Файл не найден|',
  6986. 'optional--',
  6987. 'optional2--',
  6988. "//a[contains(@href,'unibytes.com')]"
  6989. );
  6990. }
  6991. if (GM_getValue("Check_hellshare_dot_com_links", false)) //very old type of links
  6992. {
  6993. addFileHost(
  6994. "www\\.hellshare\\.com\/\\d+",
  6995. 'tab\\-details"',
  6996. 'list-purp-2"|not found on this server',
  6997. 'optional--',
  6998. 'optional2--',
  6999. "//a[contains(@href,'www.hellshare.com')]"
  7000. );
  7001. }
  7002. /* if (GM_getValue("Check_quickshare_dot_cz_links", false)) //folders
  7003. {
  7004. addFileHost(
  7005. "quickshare\\.cz\/slozka-\\d+",
  7006. 'Počet souborů: <strong>[1-9]',
  7007. 'Počet souborů: <strong>0|Chyba! Taková složka neexistuje',
  7008. 'optional--',
  7009. 'optional2--',
  7010. "//a[contains(@href,'quickshare.cz/slozka')]"
  7011. );
  7012. } */
  7013. if (GM_getValue("Check_filefactory_dot_com_links", false)) //folders
  7014. {
  7015. addFileHost(
  7016. "filefactory\\.com\/f\/\\w+",
  7017. 'folderFileList">',
  7018. 'table class="items"|Pointer" class="red">',
  7019. 'optional--',
  7020. 'optional2--',
  7021. "//a[contains(@href,'filefactory.com/f/')]"
  7022. );
  7023. }
  7024. if (GM_getValue("Check_netload_dot_in_links", false)) //folders
  7025. {
  7026. addFileHost(
  7027. "netfolder\\.in\/\\w+",
  7028. 'list" value="http',
  7029. 'InPage_Error">|list" value=""',
  7030. 'optional--',
  7031. 'optional2--',
  7032. "//a[contains(@href,'netfolder.in')]"
  7033. );
  7034. }
  7035. if (GM_getValue("Check_load_dot_to_links", false))
  7036. {
  7037. addFileHost(
  7038. '(?:www\\.|\\/)load\\.to\\/(?:\\w{10}\\/.|\\?d=\\w{10})',
  7039. '"download_table_left">Size',
  7040. 'Can\'t find file',
  7041. 'optional--',
  7042. 'optional2--',
  7043. "//a[contains(@href,'/load.to/') or contains(@href,'www.load.to/')]"
  7044. );
  7045. }
  7046. if (GM_getValue("Check_divshare_dot_com_links", false))
  7047. {
  7048. addFileHost(
  7049. "divshare\\.com\/download\/",
  7050. 'download_new\.png',
  7051. 'have been removed',
  7052. 'optional--',
  7053. 'optional2--',
  7054. "//a[contains(@href,'divshare.com')]"
  7055. );
  7056. }
  7057. if (GM_getValue("Check_euroshare_dot_eu_links", false))
  7058. {
  7059. addFileHost(
  7060. "euroshare\\.(?:eu|pl|sk|cz|hu)\/file\/\\d+",
  7061. 'nazev-souboru">',
  7062. '<div id="obsah">\\s*<h1>',
  7063. 'optional--',
  7064. 'optional2--',
  7065. "//a[contains(@href,'euroshare.eu/file')]"
  7066. );
  7067. }
  7068. if (GM_getValue("Check_files_dot_mail_dot_ru_links", false))
  7069. {
  7070. addFileHost(
  7071. 'files\\.mail\\.ru/(?:\\w*)',
  7072. 'fileList',
  7073. 'errorMessage',
  7074. 'optional--',
  7075. 'optional2--',
  7076. "//a[contains(@href,'files.mail.ru')]"
  7077. );
  7078. }
  7079. if (GM_getValue("Check_megashares_dot_com_links", false))
  7080. {
  7081. addFileHost(
  7082. "(?:d\\d+\.|)megashares\.com\/(?:dl|index\.php\\?d|\\?d\\d+=\\w+)",
  7083. 'Filesize',
  7084. 'Invalid|deleted|Could not download file',
  7085. 'slots|scheduled maintenance',
  7086. 'optional2--',
  7087. "//a[contains(@href,'megashares.com/')]"
  7088. );
  7089. }
  7090. if (GM_getValue("Check_narod_dot_ru_links", false))
  7091. {
  7092. addFileHost(
  7093. 'narod\\.(?:yandex\\.|)ru\/disk\/',
  7094. 'b-submit',
  7095. 'b-download-virus-note|headCode">404<',
  7096. 'Внутренняя ошибка сервиса',
  7097. 'optional2--',
  7098. "//a[contains(@href,'narod.ru') or contains(@href,'narod.yandex.ru')]"
  7099. );
  7100. }
  7101. if (GM_getValue("Check_rayfile_dot_com_links", false))
  7102. {
  7103. addFileHost(
  7104. "rayfile\\.com\/",
  7105. 'FILEtitleTXT',
  7106. 'blueRow',
  7107. 'optional--',
  7108. 'optional2--',
  7109. "//a[contains(@href,'rayfile.com/') and contains(@href,'files')]"
  7110. );
  7111. }
  7112. if (GM_getValue("Check_filesmonster_dot_com_links", false))
  7113. {
  7114. addFileHost(
  7115. "filesmonster\\.com\/download\\.php\\?id=\\w+",
  7116. 'button_green_body"',
  7117. 'error">',
  7118. 'optional--',
  7119. 'optional2--',
  7120. "//a[contains(@href,'filesmonster.com/download')]"
  7121. );
  7122. }
  7123. if (GM_getValue("Check_usaupload_dot_net_links", false))
  7124. {
  7125. addFileHost(
  7126. 'usaupload\\.net\/d\/(?:\w*)',
  7127. '<strong>File size:</strong>',
  7128. 'is not available',
  7129. 'optional--',
  7130. 'optional2--',
  7131. "//a[contains(@href,'usaupload.net/d/')]"
  7132. );
  7133. }
  7134. if (GM_getValue("Check_sendspace_dot_com_links", false))
  7135. {
  7136. addFileHost(
  7137. 'sendspace\\.com\/file\/\\w+',
  7138. 'file_description',
  7139. 'msg error"',
  7140. 'optional--',
  7141. 'optional2--',
  7142. "//a[contains(@href,'sendspace.com/file')]"
  7143. );
  7144. }
  7145. if (GM_getValue("Check_sendspace_dot_pl_links", false))
  7146. {
  7147. addFileHost(
  7148. 'sendspace\\.pl\/file\/\\w+',
  7149. 'download_file"',
  7150. 'Podany plik nie',
  7151. 'optional--',
  7152. 'optional2--',
  7153. "//a[contains(@href,'sendspace.pl/file')]"
  7154. );
  7155. }
  7156. if (GM_getValue("Check_uploading_dot_com_links", false))
  7157. {
  7158. addFileHost(
  7159. 'uploading\\.com\/(?:files\/)?\\w+',
  7160. 'free_method">',
  7161. 'file_error">|error_404">|file not found|OOPS! Looks like file not found',
  7162. 'optional--',
  7163. 'optional2--',
  7164. "//a[contains(@href,'uploading.com')]"
  7165. );
  7166. }
  7167. if (GM_getValue("Check_gigasize_dot_com_links", false))
  7168. {
  7169. addFileHost(
  7170. 'gigasize\\.com\/get\\.php(?:\/\\d+|\\?d=\\w+)',
  7171. 'fileId"',
  7172. 'error">',
  7173. 'optional--',
  7174. 'optional2--',
  7175. "//a[contains(@href,'gigasize.com/get')]"
  7176. );
  7177. }
  7178. if (GM_getValue("Check_good_dot_com_links", false))
  7179. {
  7180. addFileHost(
  7181. 'good\\.net\/(?:_|dl)',
  7182. 'Free Download',
  7183. 'Not Found',
  7184. 'Forbidden',
  7185. 'optional2--',
  7186. "//a[contains(@href,'good.net')]"
  7187. );
  7188. }
  7189. if (GM_getValue("Check_2shared_dot_com_links", false))
  7190. {
  7191. addFileHost(
  7192. '2shared\\.com\/(?:file|video|document|audio)\/\\w*',
  7193. 'File size',
  7194. 'File not found|is not valid|/images/important.gif',
  7195. 'optional--',
  7196. 'optional2--',
  7197. "//a[contains(@href,'2shared.com/file/') or contains (@href,'2shared.com/audio/') or contains (@href,'2shared.com/document/') or contains (@href,'2shared.com/video/')]"
  7198. );
  7199. }
  7200. if (GM_getValue("Check_turboupload_dot_com_links", false))
  7201. {
  7202. addFileHost(
  7203. 'turboupload\\.com\/\\w*',
  7204. 'You have requested',
  7205. 'File Not Found',
  7206. 'optional--',
  7207. 'optional2--',
  7208. "//a[contains(@href,'turboupload.com')]"
  7209. );
  7210. }
  7211. if (GM_getValue("Check_gigapeta_dot_com_links", false))
  7212. {
  7213. addFileHost(
  7214. 'gigapeta\\.com\/dl\/',
  7215. 'Download file|Скачать файл| Herunterzuladen|Scarica il file|Cargar el fichero|Charger le fichier',
  7216. '404|page_error',
  7217. 'optional--',
  7218. 'optional2--',
  7219. "//a[contains(@href,'gigapeta.com/dl')]"
  7220. );
  7221. }
  7222. if (GM_getValue("Check_veehd_dot_com_links", false))
  7223. {
  7224. addFileHost(
  7225. 'veehd\.com\/video\/.*?',
  7226. 'No sound|Download video',
  7227. 'Featured Videos',
  7228. 'optional--',
  7229. 'optional2--',
  7230. "//a[contains(@href,'veehd.com') and contains(@href,'video')]"
  7231. );
  7232. }
  7233. if (GM_getValue("Check_vip_dash_file_dot_com_links", false))
  7234. {
  7235. addFileHost(
  7236. '(?:u\\d+\\.)?vip-file\\.com\/download.*?\/(?:.*?)\/(?:.*?)\\.html',
  7237. 'fast_download_form">|submit_sms_download',
  7238. '<p style="text-align:center">',
  7239. 'optional--',
  7240. 'optional2--',
  7241. "//a[contains(@href,'vip-file.com/download')]"
  7242. );
  7243. }
  7244. if (GM_getValue("Check_letitbit_dot_net_links", false))
  7245. {
  7246. addFileHost(
  7247. '(?:u\\d+\\.)?letitbit\\.net\/download\/\\w+',
  7248. 'download\\-pnl ',
  7249. 'color:#000">|Запрашиваемый файл не найден|страница не существует|File not found|',
  7250. 'optional--',
  7251. 'optional2--',
  7252. "//a[contains(@href,'letitbit.net/download')]"
  7253. );
  7254. }
  7255. if (GM_getValue("Check_ifolder_dot_ru_links", false))
  7256. {
  7257. addFileHost(
  7258. 'ifolder\.ru\/\\d+',
  7259. 'file-info',
  7260. 'ui-state-error',
  7261. 'optional--',
  7262. 'optional2--',
  7263. "//a[contains(@href,'ifolder.ru')]"
  7264. );
  7265. }
  7266. if (GM_getValue("Check_fileswap_dot_com_links", false))
  7267. {
  7268. addFileHost(
  7269. 'fileswap\\.com\/dl\/\\w+',
  7270. 'bttnDownloadLink"',
  7271. 'rounded_block_error"',
  7272. 'is temporary unavailable|disponible en estos momentos|vorläufig unerreichbar|Файл временно недоступен',
  7273. 'optional2--',
  7274. "//a[contains(@href,'fileswap.com/dl')]"
  7275. );
  7276. }
  7277. if (GM_getValue("Check_filecloud_dot_io_links", false))
  7278. {
  7279. addFileHost(
  7280. '(?:s\\d+\\.)?filecloud\\.io\/\\w+',
  7281. 'var __error = 0',
  7282. 'FILES__DOESNT_EXIST|removed or did not exist',
  7283. 'optional--',
  7284. 'optional2--',
  7285. "//a[contains(@href,'filecloud.io/')]"
  7286. );
  7287. addFileHost(
  7288. 'ifile\\.it\/\\w+',
  7289. 'var __error = 0',
  7290. 'FILES__DOESNT_EXIST',
  7291. 'optional--',
  7292. 'optional2--',
  7293. "//a[contains(@href,'ifile.it/')]"
  7294. );
  7295. }
  7296. if (GM_getValue("Check_solidfiles_dot_com_links", false))
  7297. {
  7298. addFileHost(
  7299. 'solidfiles\\.com\/d\/\\w+',
  7300. 'id="download"|content="Download',
  7301. '>Not found<|<h2>404</h2>|Page not found|<h1>404</h1>|File not available|no longer available',
  7302. 'optional--',
  7303. 'optional2--',
  7304. "//a[contains(@href,'solidfiles.com/d')]"
  7305. );
  7306. }
  7307. if (GM_getValue("Check_shareflare_dot_net_links", false))
  7308. {
  7309. addFileHost(
  7310. "(?:.\\.|)shareflare\\.net",
  7311. 'download-pnl|<div class="premium-block">',
  7312. 'File not found|Поиск зеркала на фа|<div id="captcha"',
  7313. 'optional--',
  7314. 'optional2--',
  7315. "//a[contains(@href,'shareflare.net') and contains(@href,'download')]"
  7316. );
  7317. }
  7318. if (GM_getValue("Check_u18116681_dot_shareflare_dot_net_links", false))
  7319. {
  7320. addFileHost(
  7321. "u18116681.shareflare\\.net",
  7322. 'download-pnl|<div class="premium-block">',
  7323. 'File not found|Поиск зеркала на фа|<div id="captcha"',
  7324. 'optional--',
  7325. 'optional2--',
  7326. "//a[contains(@href,'shareflare.net') and contains(@href,'download')]"
  7327. );
  7328. }
  7329. if (GM_getValue("Check_uloz_dot_to_links", false))
  7330. {
  7331. addFileHost(
  7332. "(?:uloz|ulozto|bagruj|zachowajto)\\.(to|cz|sk|net|pl)\/\\w",
  7333. 'fileDownload">|fileSize">',
  7334. 'grayButton deletedFile">|Stránka nenalezena|upload-button"|jako soukromý.',
  7335. 'passwordProtectedFile">|frmaskAgeForm-disagree',
  7336. 'optional2--',
  7337. "//a[contains(@href,'bagruj.cz') or contains(@href,'uloz.to') or contains(@href,'ulozto.') or contains(@href,'zachowajto.pl')]",
  7338. true
  7339. );
  7340. }
  7341. if (GM_getValue("Check_hellspy_dot_com_links", false))
  7342. {
  7343. addFileHost(
  7344. "hellspy\.(?:com|cz|sk|hu|pl)\/\\w+",
  7345. 'file\\-list-orderby|section-filedetail">',
  7346. '<\/span><\/h2>\\s*<p>|list-purp-2">|flash info sticky">',
  7347. 'optional--',
  7348. 'optional2--',
  7349. "//a[contains(@href,'hellspy.')]"
  7350. );
  7351. }
  7352. if (GM_getValue("Check_leteckaposta_dot_cz_links", false))
  7353. {
  7354. addFileHost(
  7355. "(?:leteckaposta\\.cz|sharegadget\\.com)\/\\d+",
  7356. '<body onload="">',
  7357. 'neexistuje|not exist',
  7358. 'optional--',
  7359. 'optional2--',
  7360. "//a[contains(@href,'leteckaposta.cz') or contains(@href,'sharegadget.com')]"
  7361. );
  7362. }
  7363. if (GM_getValue("Check_stahovanizasms_dot_cz_links", false))
  7364. {
  7365. addFileHost(
  7366. "stahovanizasms\\.cz\/\\w+",
  7367. 'download\\.png>|font-size:11px><tr>',
  7368. 'smaz.n u.ivatelem|font-size:11px><\/table>',
  7369. 'optional--',
  7370. 'optional2--',
  7371. "//a[contains(@href,'stahovanizasms.cz')]"
  7372. );
  7373. }
  7374. if (GM_getValue("Check_share_dash_links_dot_biz_links", false))
  7375. {
  7376. addFileHost(
  7377. "share-links\\.biz\/\\w*",
  7378. 'online\\.gif',
  7379. '(?:offline|parts)\\.gif',
  7380. 'optional--',
  7381. 'optional2--',
  7382. "//a[contains(@href,'share-links.biz')]"
  7383. );
  7384. }
  7385. if (GM_getValue("Check_4shared_dot_com_links", false))
  7386. {
  7387. addFileHost(
  7388. "4shared\\.com\/.+\/",
  7389. '<input type="hidden" class="jsSocialTwDefaultText" value=',
  7390. 'class="warn\"|big red"|GetDataBack',
  7391. 'Service Unavailable',
  7392. 'optional2--',
  7393. "//a[contains(@href,'4shared.com')]"
  7394. );
  7395. }
  7396. if (GM_getValue("Check_zippyshare_dot_com_links", false))
  7397. {
  7398. addFileHost(
  7399. "(?:www\\d+\.|)zippyshare\.com\/",
  7400. 'download\.png|Download Now|images/download_small.png|id="dlbutton"',
  7401. 'not exist|Status 404',
  7402. 'optional--',
  7403. 'optional2--',
  7404. "//a[contains(@href,'zippyshare.com') and contains(@href,'file.html')]"
  7405. );
  7406. }
  7407. if (GM_getValue("Check_mediafire_dot_com_links", false))
  7408. {
  7409. addFileHost(
  7410. "mediafire\.com\/",
  7411. 'download_file_title|dlFileName|id="PLAY_downloadButton"',
  7412. 'error\\.php\\?|error_msg_title|<title>Simple File Sharing|No files found',
  7413. 'set to private',
  7414. 'optional2--',
  7415. "//a[contains(@href,'mediafire.com')]"
  7416. );
  7417. }
  7418. if (GM_getValue("Check_uploaded_dot_to_links", false))
  7419. {
  7420. addFileHost(
  7421. '(?:uploaded\\.(?:to|net)\/(?:.id|file|folder|f|410|404))|(?:ul\\.to\/)',
  7422. '<h2>Authentification</h2></li>|MB</small>|KB</small>|1,00 GB',
  7423. 'box_red|Error: 404|Error: 410|fileList"><thead><tr><td colspan="2"><\/td><\/tr><\/thead><tbody>\\s*<tr>|<title>uploaded.net</title>',
  7424. 'optional--',
  7425. 'GB</small>',
  7426. "//a[contains(@href,'uploaded.to/') or contains(@href,'uploaded.net/') or contains(@href,'ul.to/')]"
  7427. );
  7428. }
  7429. if (GM_getValue("Check_ulozisko_dot_sk_links", false))
  7430. {
  7431. addFileHost(
  7432. "ulozisko\.sk\/",
  7433. 'Detaily',
  7434. 'neexistuje',
  7435. 'optional--',
  7436. 'optional2--',
  7437. "//a[contains(@href,'ulozisko.sk')]"
  7438. );
  7439. }
  7440. if (GM_getValue("Check_upnito_dot_sk_links", false))
  7441. {
  7442. addFileHost(
  7443. "(?:dl.\\.|)upnito\\.sk\/(download|subor|file)",
  7444. 'download.php',
  7445. 'notfound|upload\\-suborov\\.php"',
  7446. 'optional--',
  7447. 'optional2--',
  7448. "//a[contains(@href,'upnito.sk')]"
  7449. );
  7450. }
  7451. if (GM_getValue("Check_box_dot_com_links", false))
  7452. {
  7453. addFileHost(
  7454. "box\.com\/\\w+",
  7455. 'download-file-btn|id="download_button|preview-download',
  7456. 'BIyMin.png| <div class="error_message|link has been removed',
  7457. 'optional--',
  7458. 'optional2--',
  7459. "//a[contains(@href,'app.box.com')]");
  7460. }
  7461. if (GM_getValue("Check_uptobox_dot_com_links", false))
  7462. {
  7463. addFileHost(
  7464. "uptobox\\.com\/\\w+",
  7465. 'Create Download Link">|Lien de téléchargement',
  7466. 'The file expired|The file was deleted|Fichier introuvable|not available in your country',
  7467. 'Maintenance',
  7468. 'optional2--',
  7469. "//a[contains(@href,'uptobox.com')]"
  7470. );
  7471. }
  7472. if (GM_getValue("Check_sharecash_dot_org_links", false))
  7473. {
  7474. addFileHost(
  7475. "sharecash\\.org\/download\\.php\\?file=\\d+",
  7476. 'FILE DOWNLOAD<',
  7477. 'File Does Not Exist',
  7478. 'optional--',
  7479. 'optional2--',
  7480. "//a[contains(@href,'sharecash.org/download.php')]"
  7481. );
  7482. }
  7483. if (GM_getValue("Check_depositfiles_dot_com_links", false)) //folders
  7484. {
  7485. addFileHost(
  7486. "depositfiles\\.com\/folders\/\\w+",
  7487. '<div class="progressContainer">',
  7488. '<div id="files" class="files">\\s*<\/div>',
  7489. 'optional--',
  7490. 'optional2--',
  7491. "//a[contains(@href,'depositfiles.com/folders')]"
  7492. );
  7493. }
  7494. if (GM_getValue("Check_rapidfileshare_dot_net_links", false))
  7495. {
  7496. addFileHost(
  7497. "rapidfileshare\\.net/\\w+",
  7498. '<div id="upload-header-bg">',
  7499. '<div style="width:500px;text-align:left;">',
  7500. 'optional--',
  7501. 'optional2--',
  7502. "//a[contains(@href,'rapidfileshare.net/')]"
  7503. );
  7504. }
  7505. if (GM_getValue("Check_stiahnito_dot_sk_links", false))
  7506. {
  7507. addFileHost(
  7508. "stiahnito\\.sk/",
  7509. '<span class="filesize right">',
  7510. '<ol class="list-purp-2">',
  7511. 'optional--',
  7512. 'optional2--',
  7513. "//a[contains(@href,'stiahnito.sk/')]"
  7514. );
  7515. }
  7516. if (GM_getValue("Check_rusfolder_dot_com_links", false))
  7517. {
  7518. addFileHost(
  7519. "rusfolder\\.(?:com|net)",
  7520. '"download-step-one-form"|Название: <b>|Файлы|Файлы в папке',
  7521. '"ui-state-error ui-corner-all"|File is removed|File not found|удален',
  7522. 'optional--',
  7523. 'optional2--',
  7524. "//a[contains(@href,'rusfolder')]"
  7525. );
  7526. }
  7527. if (GM_getValue("Check_fileover_dot_net_links", false))
  7528. {
  7529. addFileHost(
  7530. "fileover\\.net/\\d+",
  7531. 'id="filesize"',
  7532. 'Not found or deleted|The following file is unavailable',
  7533. 'optional--',
  7534. 'optional2--',
  7535. "//a[contains(@href,'fileover.net/')]"
  7536. );
  7537. }
  7538. if (GM_getValue("Check_catshare_dot_net_links", false))
  7539. {
  7540. addFileHost(
  7541. "catshare\\.net/\\w+",
  7542. '"icon-share',
  7543. 'alert alert-error',
  7544. 'optional--',
  7545. 'optional2--',
  7546. "//a[contains(@href,'catshare.net/')]"
  7547. );
  7548. }
  7549. if (GM_getValue("Check_anonfiles_dot_com_links", false))
  7550. {
  7551. addFileHost(
  7552. "anonfiles\\.com/\\w+",
  7553. '"download_button"',
  7554. '<legend><b>404</b>',
  7555. 'optional--',
  7556. 'optional2--',
  7557. "//a[contains(@href,'anonfiles.com')]"
  7558. );
  7559. }
  7560. if (GM_getValue("Check_mixturecloud_dot_com_links", false))
  7561. {
  7562. addFileHost(
  7563. "mixturecloud\\.com/media/\\w+",
  7564. '"btn icon i_globe gray share_150',
  7565. '"s_cross_close"></span> 404:',
  7566. 'optional--',
  7567. 'optional2--',
  7568. "//a[contains(@href,'mixturecloud.com/media/')]"
  7569. );
  7570. }
  7571. if (GM_getValue("Check_akafile_dot_com_links", false))
  7572. {
  7573. addFileHost(
  7574. "akafile\\.com\/\\w+",
  7575. 'download1',
  7576. 'File Not Found',
  7577. 'optional--',
  7578. 'optional2--',
  7579. "//a[contains(@href,'akafile.com/')]"
  7580. );
  7581. }
  7582. if (GM_getValue("Check_creafile_dot_net_links", false))
  7583. {
  7584. addFileHost(
  7585. "creafile\\.net\/\\w+",
  7586. 'downloadblock',
  7587. 'errtitle',
  7588. 'optional--',
  7589. 'optional2--',
  7590. "//a[contains(@href,'creafile.net/')]"
  7591. );
  7592. }
  7593. if (GM_getValue("Check_hugefiles_dot_net_links", false))
  7594. {
  7595. addFileHost(
  7596. "hugefiles\\.net\/\\w+",
  7597. 'download1|class="btn-create-download" value="Create Download Link">',
  7598. 'File Not Found|No such file with this filename|tyle="width:500px;text-align:left;">',
  7599. 'optional--',
  7600. 'optional2--',
  7601. "//a[contains(@href,'hugefiles.net/')]"
  7602. );
  7603. }
  7604. if (GM_getValue("Check_sendmyway_dot_com_links", false))
  7605. {
  7606. addFileHost(
  7607. "sendmyway\\.com\/\\w+",
  7608. 'id="btn_download"',
  7609. '500px;text-align:left;"|<center><h3>',
  7610. 'optional--',
  7611. 'optional2--',
  7612. "//a[contains(@href,'sendmyway.com/')]"
  7613. );
  7614. }
  7615. if (GM_getValue("Check_upload_dot_ee_links", false))
  7616. {
  7617. addFileHost(
  7618. "upload\\.ee\/\\w+",
  7619. 'onmouseout="document.dllink.src',
  7620. 'There is no such file.|File was deleted|Fail kustutati|Файл удалён|Такого файла нет',
  7621. 'optional--',
  7622. 'optional2--',
  7623. "//a[contains(@href,'upload.ee/')]"
  7624. );
  7625. }
  7626. if (GM_getValue("Check_shareplace_dot_org_links", false))
  7627. {
  7628. addFileHost(
  7629. "shareplace\\.org\/\\?\\w+",
  7630. 'Download-Link',
  7631. 'Your requested file is not found|Select file to send',
  7632. 'optional--',
  7633. 'optional2--',
  7634. "//a[contains(@href,'shareplace.org/?')]"
  7635. );
  7636. }
  7637. if (GM_getValue("Check_uploadc_dot_com_links", false))
  7638. {
  7639. addFileHost(
  7640. "uploadc\\.com\/\\w+",
  7641. 'id="prebut"',
  7642. 'File Not Found|This file has been removed due',
  7643. 'optional--',
  7644. 'optional2--',
  7645. "//a[contains(@href,'uploadc.com/')]"
  7646. );
  7647. }
  7648. if (GM_getValue("Check_remixshare_dot_com_links", false))
  7649. {
  7650. addFileHost(
  7651. "remixshare\\.com\/\\w+",
  7652. 'id="dl2"',
  7653. '<table class=\'failed\'><tr><td width=\'90%\'>|Sorry, die Datei konnte nicht gefunden werden',
  7654. 'optional--',
  7655. 'optional2--',
  7656. "//a[contains(@href,'remixshare.com/')]"
  7657. );
  7658. }
  7659. if (GM_getValue("Check_exoshare_dot_com_links", false))
  7660. {
  7661. addFileHost(
  7662. "exoshare\\.com\/download\\.php\\?uid=\\w+",
  7663. 'Last Download :',
  7664. 'img src="\\/404.jpg"',
  7665. 'optional--',
  7666. 'optional2--',
  7667. "//a[contains(@href,'exoshare.com/download.php')]"
  7668. );
  7669. }
  7670. if (GM_getValue("Check_borncash_dot_org_links", false))
  7671. {
  7672. addFileHost(
  7673. "borncash\\.org\/download\/\\?a=\\w+",
  7674. 'class="knop_1"',
  7675. '\/error\/er00',
  7676. 'optional--',
  7677. 'optional2--',
  7678. "//a[contains(@href,'borncash.org/download/')]"
  7679. );
  7680. }
  7681. if (GM_getValue("Check_vidplay_dot_net_links", false))
  7682. {
  7683. addFileHost(
  7684. "vidplay\.net\/\\w+",
  7685. 'solvemedia puzzle widget',
  7686. 'File not found|AVOID_IE_BUG',
  7687. 'optional--',
  7688. 'optional2--',
  7689. "//a[contains(@href,'vidplay.net')]");
  7690. }
  7691. if (GM_getValue("Check_storagon_dot_com_links", false))
  7692. {
  7693. addFileHost(
  7694. "storagon\.com\/\\w+",
  7695. 'class="icon-cloud-download"></i>|content="Download Options',
  7696. 'content="Download Downloads|class="error-container">|class="bigger-300 bolder">404<',
  7697. 'optional--',
  7698. 'optional2--',
  7699. "//a[contains(@href,'storagon.com')]");
  7700. }
  7701. if (GM_getValue("Check_filedais_dot_com_links", false))
  7702. {
  7703. addFileHost(
  7704. "filedais\.com\/\\w+",
  7705. 'class="btn btn-info"|name="method_free"',
  7706. 'style="width:500px;text-align:left;">|File Not Found|AVOID_IE_BUG',
  7707. 'optional--',
  7708. 'optional2--',
  7709. "//a[contains(@href,'filedais.com')]");
  7710. }
  7711. if (GM_getValue("Check_up_dot_4share_dot_vn_links", false))
  7712. {
  7713. addFileHost(
  7714. "up.4share\.vn\/\\w+",
  7715. '<font size="2" face="Verdana">',
  7716. 'font: 13px Tahoma; color: Brown',
  7717. 'optional--',
  7718. 'optional2--',
  7719. "//a[contains(@href,'up.4share.vn')]");
  7720. }
  7721. if (GM_getValue("Check_share_dot_vnn_dot_vn_links", false))
  7722. {
  7723. addFileHost(
  7724. "share.vnn\.vn\/\\w+",
  7725. '"index,follow"|<div class="main" id="download-box">',
  7726. '<meta name="description" content="" />|<h1>Không tìm thấy file bạn yêu cầu</h1>',
  7727. 'optional--',
  7728. 'optional2--',
  7729. "//a[contains(@href,'share.vnn.vn')]");
  7730. }
  7731. if (GM_getValue("Check_upfile_dot_vn_links", false))
  7732. {
  7733. addFileHost(
  7734. "upfile\.vn\/\\w+",
  7735. 'download-timer',
  7736. '<meta name="description" content="Upload files|<meta name="description" content="Error "',
  7737. 'optional--',
  7738. 'optional2--',
  7739. "//a[contains(@href,'upfile.vn')]");
  7740. }
  7741. if (GM_getValue("Check_aisfile_dot_com_links", false))
  7742. {
  7743. addFileHost(
  7744. "aisfile\.com\/\\w+",
  7745. '<h3 style="text-align:left;">|align=right><b>Filename:',
  7746. '<div style="width:500px;text-align:left;">|File Not Found',
  7747. 'optional--',
  7748. 'optional2--',
  7749. "//a[contains(@href,'aisfile.com')]");
  7750. }
  7751. if (GM_getValue("Check_usersfiles_dot_com_links", false))
  7752. {
  7753. addFileHost(
  7754. "usersfiles\.com\/\\w+",
  7755. 'class="btn btn-success|id="btn_download" class="btn"',
  7756. '<div style="width:500px;text-align:left;">|class="label label-inverse">|class="err">',
  7757. 'optional--',
  7758. 'optional2--',
  7759. "//a[contains(@href,'usersfiles.com')]");
  7760. }
  7761. if (GM_getValue("Check_pan_dot_baidu_dot_com_links", false))
  7762. {
  7763. addFileHost(
  7764. "pan.baidu\.com\/\\w+",
  7765. 'target="_blank" title=|share-personal-info',
  7766. 'share_notfound.png|background:#f9f9f9',
  7767. 'optional--',
  7768. 'optional2--',
  7769. "//a[contains(@href,'pan.baidu.com')]");
  7770. }
  7771. if (GM_getValue("Check_yunpan_dot_cn_links", false))
  7772. {
  7773. addFileHost(
  7774. "yunpan\.cn\/\\w+",
  7775. 'class="icon icon-download',
  7776. 'content="360|http://p5.qhimg.com/t01d1c98667df9dc6cc.jpg',
  7777. 'optional--',
  7778. 'optional2--',
  7779. "//a[contains(@href,'yunpan.cn')]");
  7780. }
  7781. if (GM_getValue("Check_file_dash_upload_dot_net_links", false))
  7782. {
  7783. addFileHost(
  7784. "(?:en\\.|)file\\-upload\\.net\/download\\-\\d+\/\\w+",
  7785. 'getElementById("downbild")|style.display',
  7786. 'hochgeladene Datei nicht gefunden werden|has not been found',
  7787. 'optional--',
  7788. 'optional2--',
  7789. "//a[contains(@href,'file-upload.net')]");
  7790. }
  7791. if (GM_getValue("Check_gulfup_dot_com_links", false))
  7792. {
  7793. addFileHost(
  7794. "gulfup\.com\/",
  7795. '<!-- Downlod template -->|download.gif',
  7796. '<!-- Errors template -->|class="error">|<!-- form upload -->|[ رفع الملفات ]',
  7797. 'optional--',
  7798. 'optional2--',
  7799. "//a[contains(@href,'gulfup.com')]");
  7800. }
  7801. if (GM_getValue("Check_datafilehost_dot_com_links", false))
  7802. {
  7803. addFileHost(
  7804. "datafilehost\\.com\/(?:download-\\w+\\.html|d\/\\w+)",
  7805. 'dldtable">',
  7806. 'does not exist\\.',
  7807. 'optional--',
  7808. 'optional2--',
  7809. "//a[contains(@href,'datafilehost.com')]");
  7810. }
  7811. if (GM_getValue("Check_dropbox_dot_com_links", false))
  7812. {
  7813. addFileHost(
  7814. "dropbox\.com\/s\/\\w+",
  7815. 'default_content_download_button" class="freshbutton-blue">|content_download_button',
  7816. '>Nothing Here<|>Error (404)<',
  7817. 'title>Dropbox - 509|Error (403)|Error: 429',
  7818. 'optional2--',
  7819. "//a[contains(@href,'dropbox.com')]");
  7820. }
  7821. if (GM_getValue("Check_box_dot_net_links", false))
  7822. {
  7823. addFileHost(
  7824. "box\.net\/\\w+",
  7825. 'download-file-btn|id="download_button',
  7826. 'BIyMin.png| <div class="error_message',
  7827. 'optional--',
  7828. 'optional2--',
  7829. "//a[contains(@href,'box.net')]");
  7830. }
  7831. if (GM_getValue("Check_fileband_dot_com_links", false))
  7832. {
  7833. addFileHost(
  7834. "fileband\.com\/\\w+",
  7835. 'value="download1">|name="id" value=',
  7836. '<div style="width:500px;text-align:left;">|not be found',
  7837. 'optional--',
  7838. 'optional2--',
  7839. "//a[contains(@href,'fileband.com')]");
  7840. }
  7841. if (GM_getValue("Check_filedropper_dot_com_links", false))
  7842. {
  7843. addFileHost(
  7844. "filedropper\.com\/\\w+",
  7845. 'background:#ddd;|width:985px; ',
  7846. 'background-color:#FFFFFF;|margin-left: -400px;',
  7847. 'optional--',
  7848. 'optional2--',
  7849. "//a[contains(@href,'filedropper.com')]");
  7850. }
  7851. if (GM_getValue("Check_tropicshare_dot_com_links", false))
  7852. {
  7853. addFileHost(
  7854. "tropicshare\\.com\/files\/\\d+",
  7855. 'MB</span>|GB</span>|KB</span>',
  7856. '>FNF<|size: </span>',
  7857. 'optional--',
  7858. 'optional2--',
  7859. "//a[contains(@href,'tropicshare.com')]");
  7860. }
  7861. if (GM_getValue("Check_goldbytez_dot_com_links", false))
  7862. {
  7863. addFileHost(
  7864. "goldbytez\.com\/\\w+",
  7865. '<h2>Download</h2>|<center><h2>File: <font color="red">',
  7866. '<div style="width:500px;text-align:left;">|<h2>Error</h2>',
  7867. 'optional--',
  7868. 'optional2--',
  7869. "//a[contains(@href,'goldbytez.com')]");
  7870. }
  7871. if (GM_getValue("Check_worldbytez_dot_com_links", false))
  7872. {
  7873. addFileHost(
  7874. "worldbytez\.com\/\\w+",
  7875. '<div class="download_type">',
  7876. '<div style="width:500px;text-align:left;">',
  7877. 'optional--',
  7878. 'optional2--',
  7879. "//a[contains(@href,'worldbytez.com')]");
  7880. }
  7881. if (GM_getValue("Check_freefilehosting_dot_net_links", false))
  7882. {
  7883. addFileHost(
  7884. "freefilehosting\.net\/\\w+",
  7885. 'Type: cbr|Type: rar|Type: jpg|Type: mkv|Type: avi|Type: mpg|Type: mpeg|Type: zip|Type: wmvType: bmpType: gifType: mp4Type: mp3',
  7886. '175px;" value="http://www.freefilehosting.net/"|Filename: <br>',
  7887. 'optional--',
  7888. 'optional2--',
  7889. "//a[contains(@href,'freefilehosting.net')]");
  7890. }
  7891. if (GM_getValue("Check_ziddu_dot_com_links", false))
  7892. {
  7893. addFileHost(
  7894. "ziddu\.com\/\\w+",
  7895. 'downloads.ziddu.com|downloadfilelinkicon',
  7896. 'errortracking.php|images/oops.png|fontfamilyverdana error',
  7897. 'optional--',
  7898. 'optional2--',
  7899. "//a[contains(@href,'ziddu.com')]");
  7900. }
  7901. if (GM_getValue("Check_exclusiveloader_dot_com_links", false))
  7902. {
  7903. addFileHost(
  7904. "exclusiveloader\.com\/\\w+",
  7905. 'style="padding-top:55px; padding-bottom:65px;">|<h2>Download</h2>',
  7906. 'File Not Found|width:322px;text-align:left;" class="no_file">',
  7907. 'optional--',
  7908. 'optional2--',
  7909. "//a[contains(@href,'exclusiveloader.com')]");
  7910. }
  7911. if (GM_getValue("Check_sharerapid_dot_cz_links", false))
  7912. {
  7913. addFileHost(
  7914. "sharerapid\.cz\/\\w+",
  7915. 'value="Stáhnout"|soubor" style|Stahování je povoleno pouze pro přihlášené uživatele',
  7916. 'error_div">|404 - Not Found',
  7917. 'optional--',
  7918. 'optional2--',
  7919. "//a[contains(@href,'sharerapid.cz')]");
  7920. }
  7921. if (GM_getValue("Check_sdilej_dot_cz_links", false))
  7922. {
  7923. addFileHost(
  7924. "sdilej\.cz\/\\w+",
  7925. 'class="page-download"',
  7926. '<h2 class="red">|czshare.com|sponsored listings|This domain is for sale',
  7927. 'optional--',
  7928. 'optional2--',
  7929. "//a[contains(@href,'sdilej.cz')]");
  7930. }
  7931. if (GM_getValue("Check_lafiles_dot_com_links", false))
  7932. {
  7933. addFileHost(
  7934. "lafiles\.com\/\\w+",
  7935. '<div id="pay_modes">',
  7936. '<b class="err"></b>',
  7937. 'optional--',
  7938. 'optional2--',
  7939. "//a[contains(@href,'lafiles.com')]");
  7940. }
  7941. if (GM_getValue("Check_acefile_dot_net_links", false))
  7942. {
  7943. addFileHost(
  7944. "acefile\.net\/\\w+",
  7945. 'align=right nowrap><b>',
  7946. 'File Not Found|<div style="width:322px;text-align:left;" class="no_file">',
  7947. 'optional--',
  7948. 'optional2--',
  7949. "//a[contains(@href,'acefile.net')]");
  7950. }
  7951. if (GM_getValue("Check_megarapid_dot_cz_links", false))
  7952. {
  7953. addFileHost(
  7954. "megarapid\.cz\/\\w+",
  7955. 'value="Stáhnout"|soubor" style|Stahování je povoleno pouze pro přihlášené uživatele',
  7956. 'error_div">|404 - Not Found',
  7957. 'optional--',
  7958. 'optional2--',
  7959. "//a[contains(@href,'megarapid.cz')]");
  7960. }
  7961. if (GM_getValue("Check_yadi_dot_sk_links", false))
  7962. {
  7963. addFileHost(
  7964. "yadi\.sk\/\\w+",
  7965. 'twitter:site|View and download',
  7966. 'error code|Nothing found',
  7967. 'optional--',
  7968. 'optional2--',
  7969. "//a[contains(@href,'yadi.sk')]");
  7970. }
  7971. /* if (GM_getValue("Check_imdb_dot_com_links", false))
  7972. {
  7973. addFileHost(
  7974. "imdb\.com\/\\w+",
  7975. 'imdb.com',
  7976. '404 Error',
  7977. 'optional--',
  7978. 'optional2--',
  7979. "//a[contains(@href,'imdb.com')]");
  7980. } */
  7981. if (GM_getValue("Check_hitfile_dot_net_links", false))
  7982. {
  7983. addFileHost(
  7984. "hitfile\.net\/\\w+",
  7985. 'class="download-file',
  7986. 'style="width:16px;height:16px;border:0;|File not found|Файл не найден. Возможно он был удален',
  7987. 'optional--',
  7988. 'optional2--',
  7989. "//a[contains(@href,'hitfile.net')]");
  7990. }
  7991. if (GM_getValue("Check_nitroflare_dot_com_links", true))
  7992. {
  7993. addFileHost(
  7994. "nitroflare\.com\/\\w+",
  7995. 'Report this file</a>|left;">1 GB<|KB</span>|left;">1.0',
  7996. 'file has been removed|id="error" style="display|Probably deleted|file has been removed due to infringement',
  7997. 'optional--',
  7998. 'left;">1.1|left;">1.2|left;">1.3|left;">1.4|left;">1.5|left;">1.6|left;">1.7|left;">1.8|left;">1.9|left;">2.|',
  7999. "//a[contains(@href,'nitroflare.com')]");
  8000. }
  8001. if (GM_getValue("Check_up_dot_top4top_dot_net_links", false))
  8002. {
  8003. addFileHost(
  8004. "up.top4top\.net\/\\w+",
  8005. 'start Downlod template',
  8006. 'start err template',
  8007. 'optional--',
  8008. 'optional2--',
  8009. "//a[contains(@href,'up.top4top.net')]");
  8010. }
  8011. if (GM_getValue("Check_filejoker_dot_net_links", false))
  8012. {
  8013. addFileHost(
  8014. "filejoker\.net\/\\w+",
  8015. 'button id="regular-download">Slow|method_free" value="1|<div id="download" class="download0">',
  8016. 'File Not Found|class="not_found|<div id="download" class="not_found">|"err">DMCA Complaint<',
  8017. 'optional--',
  8018. 'id="download" class="premium-only">',
  8019. "//a[contains(@href,'filejoker.net')]");
  8020. }
  8021. if (GM_getValue("Check_free_dot_fr_links", false))
  8022. {
  8023. addFileHost(
  8024. "(?:dl.\\.|)free\\.fr",
  8025. 'Valider et t&eacute;l&eacute',
  8026. 'Fichier inexistant|Fichier supprim&eacute; pour raison de copyright',
  8027. 'optional--',
  8028. 'optional2--',
  8029. "//a[contains(@href,'dl.free.fr')]");
  8030. }
  8031. if (GM_getValue("Check_gboxes_dot_com_links", false))
  8032. {
  8033. addFileHost(
  8034. "gboxes\.com\/\\w+",
  8035. 'You have requested|color="red">http://www.gboxes.com',
  8036. 'File Not Found|<div style="width:500px;text-align:left;">',
  8037. 'optional--',
  8038. 'optional2--',
  8039. "//a[contains(@href,'gboxes.com')]");
  8040. }
  8041. if (GM_getValue("Check_led_dot_wf_links", false))
  8042. {
  8043. addFileHost(
  8044. "led\.wf\/\\w+",
  8045. 'logo_0.png|downloads.gif"|verifycode',
  8046. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  8047. 'optional--',
  8048. 'available only for Premium users',
  8049. "//a[contains(@href,'led.wf')]");
  8050. }
  8051. if (GM_getValue("Check_lan_dot_wf_links", false))
  8052. {
  8053. addFileHost(
  8054. "lan\.wf\/\\w+",
  8055. 'logo_0.png|downloads.gif"|verifycode',
  8056. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  8057. 'optional--',
  8058. 'available only for Premium users',
  8059. "//a[contains(@href,'lan.wf')]");
  8060. }
  8061. if (GM_getValue("Check_adlink_dot_wf_links", false))
  8062. {
  8063. addFileHost(
  8064. "adlink\.wf\/\\w+",
  8065. 'logo_0.png|downloads.gif"|verifycode',
  8066. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  8067. 'optional--',
  8068. 'available only for Premium users',
  8069. "//a[contains(@href,'adlink.wf')]");
  8070. }
  8071. if (GM_getValue("Check_click_dot_tf_links", false))
  8072. {
  8073. addFileHost(
  8074. "click\.tf\/\\w+",
  8075. 'logo_0.png|downloads.gif"|verifycode',
  8076. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  8077. 'optional--',
  8078. 'available only for Premium users',
  8079. "//a[contains(@href,'click.tf')]");
  8080. }
  8081. if (GM_getValue("Check_ssh_dot_tf_links", false))
  8082. {
  8083. addFileHost(
  8084. "ssh\.tf\/\\w+",
  8085. 'logo_0.png|downloads.gif"|verifycode',
  8086. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  8087. 'optional--',
  8088. 'available only for Premium users',
  8089. "//a[contains(@href,'ssh.tf')]");
  8090. }
  8091. if (GM_getValue("Check_ssh_dot_yt_links", false))
  8092. {
  8093. addFileHost(
  8094. "ssh\.yt\/\\w+",
  8095. 'logo_0.png|downloads.gif"|verifycode',
  8096. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  8097. 'optional--',
  8098. 'available only for Premium users',
  8099. "//a[contains(@href,'ssh.yt')]");
  8100. }
  8101. if (GM_getValue("Check_yep_dot_pm_links", false))
  8102. {
  8103. addFileHost(
  8104. "yep\.pm\/\\w+",
  8105. 'logo_0.png|downloads.gif"|verifycode',
  8106. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  8107. 'optional--',
  8108. 'available only for Premium users',
  8109. "//a[contains(@href,'yep.pm')]");
  8110. }
  8111. if (GM_getValue("Check_kyc_dot_pm_links", false))
  8112. {
  8113. addFileHost(
  8114. "kyc\.pm\/\\w+",
  8115. 'logo_0.png|downloads.gif"|verifycode',
  8116. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  8117. 'optional--',
  8118. 'available only for Premium users',
  8119. "//a[contains(@href,'kyc.pm')]");
  8120. }
  8121. if (GM_getValue("Check_brupload_dot_net_links", false))
  8122. {
  8123. addFileHost(
  8124. "brupload\.net\/\\w+",
  8125. 'Download Gratuito',
  8126. '<div style="width:500px;text-align:left;">',
  8127. 'optional--',
  8128. 'optional2--',
  8129. "//a[contains(@href,'brupload.net')]");
  8130. }
  8131. if (GM_getValue("Check_cloudzilla_dot_to_links", false))
  8132. {
  8133. addFileHost(
  8134. "cloudzilla\.to\/\\w+",
  8135. 'btn1" id="free_download|onclick="freeDownload|id="pwd_protected">',
  8136. 'File not found|/imgs/broken.png',
  8137. 'optional--',
  8138. 'optional2--',
  8139. "//a[contains(@href,'cloudzilla.to')]");
  8140. }
  8141. if (GM_getValue("Check_fileparadox_dot_in_links", false))
  8142. {
  8143. addFileHost(
  8144. "fileparadox\.in\/\\w+",
  8145. 'CONTENT="Download File|method_free_file',
  8146. '>File Not Found<|id="no_filedownload">|FILE NOT FOUND|The file does not exist',
  8147. 'optional--',
  8148. 'optional2--',
  8149. "//a[contains(@href,'fileparadox.in')or contains(@href,'3files.net/')]");
  8150. }
  8151. if (GM_getValue("Check_clicknupload_dot_com_links", false))
  8152. {
  8153. addFileHost(
  8154. "clicknupload\.com\/\\w+",
  8155. 'name="method_free',
  8156. 'File Not Found',
  8157. 'optional--',
  8158. 'optional2--',
  8159. "//a[contains(@href,'clicknupload.com')]");
  8160. }
  8161. if (GM_getValue("Check_clicknupload_dot_me_links", false))
  8162. {
  8163. addFileHost(
  8164. "clicknupload\.me\/\\w+",
  8165. 'name="method_free',
  8166. 'File Not Found',
  8167. 'optional--',
  8168. 'optional2--',
  8169. "//a[contains(@href,'clicknupload.me')]");
  8170. }
  8171. if (GM_getValue("Check_ex_dash_load_dot_com_links", false))
  8172. {
  8173. addFileHost(
  8174. "ex-load\.com\/\\w+",
  8175. 'name="method_free|<p>Download File:</p>',
  8176. 'Folder Not Found|File Not Found|Error 404',
  8177. 'optional--',
  8178. 'class="downprem wow bounceInLeft',
  8179. "//a[contains(@href,'ex-load.com')]");
  8180. }
  8181. if (GM_getValue("Check_hexupload_dot_com_links", false))
  8182. {
  8183. addFileHost(
  8184. "hexupload\.com\/\\w+",
  8185. 'button" value="Free|type="submit" value=""',
  8186. 'File Not Found|<div style="width:500px;text-align:left;">',
  8187. 'optional--',
  8188. 'optional2--',
  8189. "//a[contains(@href,'hexupload.com')]");
  8190. }
  8191. if (GM_getValue("Check_wizupload_dot_com_links", false))
  8192. {
  8193. addFileHost(
  8194. "wizupload\.com\/\\w+",
  8195. 'btn_download|class="downloadbtn"',
  8196. '>File Not Found<',
  8197. 'optional--',
  8198. 'optional2--',
  8199. "//a[contains(@href,'wizupload.com')]");
  8200. }
  8201. if (GM_getValue("Check_filecloud_dot_cc_links", false))
  8202. {
  8203. addFileHost(
  8204. "filecloud\.cc\/\\w+",
  8205. 'align="center"><input type="submit" name=',
  8206. 'File Not Found|<Title>FileCloud - Premium Hosting Service<',
  8207. 'optional--',
  8208. 'optional2--',
  8209. "//a[contains(@href,'filecloud.cc')]");
  8210. }
  8211. if (GM_getValue("Check_inclouddrive_dot_com_links", false))
  8212. {
  8213. addFileHost(
  8214. "inclouddrive\.com\/\\w+",
  8215. 'initfreedownload',
  8216. '<title>Content Unavailable|The file you are trying to download is no longer available',
  8217. 'optional--',
  8218. 'optional2--',
  8219. "//a[contains(@href,'inclouddrive.com')]");
  8220. }
  8221. if (GM_getValue("Check_radicalshare_dot_com_links", false))
  8222. {
  8223. addFileHost(
  8224. "radicalshare\.com\/\\w+",
  8225. 'value="download1|name="method_free"',
  8226. 'File Not Found<|<div style="width:500px;text-align:left;">',
  8227. 'optional--',
  8228. 'optional2--',
  8229. "//a[contains(@href,'radicalshare.com')]");
  8230. }
  8231. if (GM_getValue("Check_sharemods_dot_com_links", false))
  8232. {
  8233. addFileHost(
  8234. "sharemods\.com\/\\w+",
  8235. 'name="method_free"',
  8236. 'File Not Found<',
  8237. 'optional--',
  8238. 'optional2--',
  8239. "//a[contains(@href,'sharemods.com')]");
  8240. }
  8241. if (GM_getValue("Check_hostr_dot_co_links", false))
  8242. {
  8243. addFileHost(
  8244. "hostr\.co\/\\w+",
  8245. 'method="get"',
  8246. 'File not found<|error-page',
  8247. 'optional--',
  8248. 'optional2--',
  8249. "//a[contains(@href,'hostr.co')]");
  8250. }
  8251. if (GM_getValue("Check_filepi_dot_com_links", false))
  8252. {
  8253. addFileHost(
  8254. "filepi\.com\/\\w+",
  8255. 'id="button_start">',
  8256. 'File not found',
  8257. 'optional--',
  8258. 'optional2--',
  8259. "//a[contains(@href,'filepi.com')]");
  8260. }
  8261. if (GM_getValue("Check_tikfile_dot_com_links", false))
  8262. {
  8263. addFileHost(
  8264. "tikfile\.com\/\\w+",
  8265. 'btn_download',
  8266. 'File Not Found|file was removed|Reason for deletion',
  8267. 'optional--',
  8268. 'optional2--',
  8269. "//a[contains(@href,'tikfile.com')]");
  8270. }
  8271. if (GM_getValue("Check_cloudsix_dot_me_links", false))
  8272. {
  8273. addFileHost(
  8274. "cloudsix\.me\/\\w+",
  8275. 'name="method_free"',
  8276. 'File Not Found|width:500px;text-align:left;">',
  8277. 'optional--',
  8278. 'optional2--',
  8279. "//a[contains(@href,'cloudsix.me')]");
  8280. }
  8281. if (GM_getValue("Check_neodrive_dot_co_links", false))
  8282. {
  8283. addFileHost(
  8284. "neodrive\.co\/\\w+",
  8285. 'btn1" id="free_download|onclick="freeDownload|id="pwd_protected">',
  8286. 'File not found|/imgs/broken.png',
  8287. 'optional--',
  8288. 'optional2--',
  8289. "//a[contains(@href,'neodrive.co')]");
  8290. }
  8291. if (GM_getValue("Check_chayfile_dot_com_links", false))
  8292. {
  8293. addFileHost(
  8294. "chayfile\.com\/\\w+",
  8295. 'name="method_free"',
  8296. 'File Not Found|<h3>The file was removed by administrator</h3>',
  8297. 'optional--',
  8298. 'optional2--',
  8299. "//a[contains(@href,'chayfile.com')]");
  8300. }
  8301. if (GM_getValue("Check_xfileload_dot_com_links", false))
  8302. {
  8303. addFileHost(
  8304. "xfileload\.com\/\\w+",
  8305. 'Filename:|Имя файла:|Dateiname:|nom de fichier :|اسم الملف:|Dosya AdД±|Nazwa:|Nombre de fichero:|NamaFile:|Bestandsnaam:|שם קובץ:"',
  8306. 'The file you were looking for could not be found, sorry for any inconvenience.|Die von Ihnen angeforderte Datei konnte nicht gefunden werden..|le fichier que vous recherchiez ne pourrait pas etre trouve, désole pour aucun derangement|لم يتم إيجاد الملف المطلوب , عذراً للإزعاج|Istenen dosya bulunamadД±..|Plik ktorego szukasz nie zostal odnaleziony na naszych serwerach, przepraszamy.|El archivo que usted buscaba no podrнa ser encontrado, arrepentido para ningъn inconveniente.|File yang sedang anda cari tidak dapat ditemukan, maaf untuk ketidaknyamanan anda saat ini.|De bestand waar u naar zocht is niet gevonden, excuses voor het ongemak..|הקובץ שחיפשת לא נמצא.',
  8307. 'optional--',
  8308. 'optional2--',
  8309. "//a[contains(@href,'xfileload.com')]");
  8310. }
  8311. if (GM_getValue("Check_rockfile_dot_eu_links", false))
  8312. {
  8313. addFileHost(
  8314. "rockfile\.eu\/\\w+",
  8315. 'You have requested:|vous avez demandé|قد طلبت:|você solicitou:|Hai richiesto:|Sie haben angefordert:|Вы заказали:|Has solicitado',
  8316. 'The file you were looking for could not be found, sorry for any inconvenience.|fa-chain-broken">',
  8317. 'optional--',
  8318. 'optional2--',
  8319. "//a[contains(@href,'rockfile.eu')]");
  8320. }
  8321. if (GM_getValue("Check_24uploading_dot_com_links", false))
  8322. {
  8323. addFileHost(
  8324. "24uploading\.com\/\\w+",
  8325. 'File:|Download Speed:',
  8326. '<b>File Not Found</b>|file was removed',
  8327. 'optional--',
  8328. 'optional2--',
  8329. "//a[contains(@href,'24uploading.com')]");
  8330. }
  8331. if (GM_getValue("Check_tusfiles_dot_net_links", false))
  8332. {
  8333. addFileHost(
  8334. "tusfiles\.net\/\\w+",
  8335. 'i/icon/dll.png"|>Start download<br',
  8336. 'no longer available<|i/ino.png"',
  8337. 'optional--',
  8338. 'optional2--',
  8339. "//a[contains(@href,'tusfiles.net')]");
  8340. }
  8341. /* if (GM_getValue("Check_jumbofile_dot_net_links", false))
  8342. {
  8343. addFileHost(
  8344. "jumbofile\.net\/\\w+",
  8345. 'button" class="" value="Free',
  8346. 'This File Was Deleted',
  8347. 'optional--',
  8348. 'optional2--',
  8349. "//a[contains(@href,'jumbofile.net')]");
  8350. } */
  8351. if (GM_getValue("Check_ozofiles_dot_com_links", false))
  8352. {
  8353. addFileHost(
  8354. "ozofiles\.com\/\\w+",
  8355. 'button" value="Free',
  8356. 'File Not Found|width:500px;text-align:left;">|File Deleted',
  8357. 'optional--',
  8358. 'optional2--',
  8359. "//a[contains(@href,'ozofiles.com')]");
  8360. }
  8361. if (GM_getValue("Check_loudupload_dot_net_links", false))
  8362. {
  8363. addFileHost(
  8364. "loudupload\.net\/\\w+",
  8365. 'value="Get Links',
  8366. 'File Not Found',
  8367. 'optional--',
  8368. 'optional2--',
  8369. "//a[contains(@href,'loudupload.net')]");
  8370. }
  8371. if (GM_getValue("Check_rapidsonic_dot_com_links", false))
  8372. {
  8373. addFileHost(
  8374. "(rapidsonic|fileparadox)\\.com\/\\w+",
  8375. 'method_free" id="submit_btn|<h4><i class="icon_document_alt"></i>Download File</h4>',
  8376. '>File Not Found<|id="no_filedownload">|>FILE NOT FOUND<|file has been deleted|No such file with this filename|style="font-size:24px;color:#E70012">',
  8377. 'optional--',
  8378. 'optional2--',
  8379. "//a[contains(@href,'rapidsonic') or contains(@href,'3files.net/') or contains(@href,'fileparadox.com')]");
  8380. }
  8381. /* if (GM_getValue("Check_krotix_dot_net_links", false))
  8382. {
  8383. addFileHost(
  8384. "krotix\.net\/\\w+",
  8385. 'btn btn-warning|btn-free',
  8386. 'pageErrors|This File has been removed',
  8387. 'content="Scheduled Maintenance',
  8388. 'optional2--',
  8389. "//a[contains(@href,'krotix.net')]");
  8390. } */
  8391. if (GM_getValue("Check_userscloud_dot_com_links", false))
  8392. {
  8393. addFileHost(
  8394. "userscloud\.com\/\\w+",
  8395. 'btn_download',
  8396. '>Server OFFLINE|background:#D3D3D3;border-bottom:1px solid #BBB;font:bold 13px Verdana;padding:3px;">|-chain-broken',
  8397. 'optional--',
  8398. 'optional2--',
  8399. "//a[contains(@href,'userscloud.com')]");
  8400. }
  8401. if (GM_getValue("Check_kumpulbagi_dot_com_links", false))
  8402. {
  8403. addFileHost(
  8404. "kumpulbagi\.com\/\\w+",
  8405. 'class="button download',
  8406. 'internal server error',
  8407. 'optional--',
  8408. 'optional2--',
  8409. "//a[contains(@href,'kumpulbagi.com')]");
  8410. }
  8411. if (GM_getValue("Check_faststore_dot_org_links", false))
  8412. {
  8413. addFileHost(
  8414. "faststore\.org\/\\w+",
  8415. 'name="method_free',
  8416. 'File Not Found',
  8417. 'optional--',
  8418. 'optional2--',
  8419. "//a[contains(@href,'faststore.org')]");
  8420. }
  8421. if (GM_getValue("Check_prefiles_dot_com_links", false))
  8422. {
  8423. addFileHost(
  8424. "prefiles\.com\/\\w+",
  8425. 'id="method_free',
  8426. 'File not Found',
  8427. 'optional--',
  8428. 'optional2--',
  8429. "//a[contains(@href,'prefiles.com')]");
  8430. }
  8431. if (GM_getValue("Check_doraupload_dot_com_links", false))
  8432. {
  8433. addFileHost(
  8434. "doraupload\.com\/\\w+",
  8435. 'btn_download|name="method_free',
  8436. 'class="error-code|Could Not Be Found',
  8437. 'optional--',
  8438. 'optional2--',
  8439. "//a[contains(@href,'doraupload.com')]");
  8440. }
  8441. if (GM_getValue("Check_openload_dot_io_links", false))
  8442. {
  8443. addFileHost(
  8444. "openload\.io\/\\w+",
  8445. 'btn btn-primary|class="count">',
  8446. 'class="jumbotron">|We are sorry',
  8447. 'optional--',
  8448. 'optional2--',
  8449. "//a[contains(@href,'openload.io')]");
  8450. }
  8451. if (GM_getValue("Check_uploads_dot_xxx_links", false))
  8452. {
  8453. addFileHost(
  8454. "uploads\.xxx\/\\w+",
  8455. 'downoadForFree',
  8456. 'File not found',
  8457. 'optional--',
  8458. 'optional2--',
  8459. "//a[contains(@href,'uploads.xxx')]");
  8460. }
  8461. if (GM_getValue("Check_zxcfiles_dot_com_links", false))
  8462. {
  8463. addFileHost(
  8464. "zxcfiles\.com\/\\w+",
  8465. 'class="downloadbtn',
  8466. 'File Not Found',
  8467. 'optional--',
  8468. 'optional2--',
  8469. "//a[contains(@href,'zxcfiles.com')]");
  8470. }
  8471. if (GM_getValue("Check_up07_dot_net_links", false))
  8472. {
  8473. addFileHost(
  8474. "up07\.net\/\\w+",
  8475. 'name="method_free',
  8476. 'File Not Found',
  8477. 'optional--',
  8478. 'optional2--',
  8479. "//a[contains(@href,'up07.net')]");
  8480. }
  8481. if (GM_getValue("Check_fileupload_dot_pw_links", false))
  8482. {
  8483. addFileHost(
  8484. "fileupload\.pw\/\\w+",
  8485. 'value="Free"',
  8486. 'File Not Found',
  8487. 'optional--',
  8488. 'optional2--',
  8489. "//a[contains(@href,'fileupload.pw')]");
  8490. }
  8491. if (GM_getValue("Check_4upld_dot_com_links", false))
  8492. {
  8493. addFileHost(
  8494. "4upld\.com\/\\w+",
  8495. 'alt="Download Now"|content="Download file">|btn-free-element',
  8496. '<title>Error|content="error|File not found',
  8497. 'optional--',
  8498. 'optional2--',
  8499. "//a[contains(@href,'4upld.com')]");
  8500. }
  8501. /* if (GM_getValue("Check_newfileland_dot_com_links", false))
  8502. {
  8503. addFileHost(
  8504. "newfileland\.com\/\\w+",
  8505. 'name="method_free',
  8506. 'File Not Found',
  8507. 'optional--',
  8508. 'optional2--',
  8509. "//a[contains(@href,'newfileland.com')]");
  8510. } */
  8511. if (GM_getValue("Check_swoopshare_dot_com_links", false))
  8512. {
  8513. addFileHost(
  8514. "(?:.swoopshare)\\.com\/\\w+",
  8515. 'Click below to start|Klicken Sie nachfolgend|Cliquez ci-après pour|Cliccate qui per iniziare|Klik hierna om het bestand|Haga ahora clic para iniciar la',
  8516. '<input type="file" name="f"',
  8517. 'optional--',
  8518. 'optional2--',
  8519. "//a[contains(@href,'swoopshare.com')]"
  8520. );
  8521. }
  8522. if (GM_getValue("Check_cloudshares_dot_net_links", false))
  8523. {
  8524. addFileHost(
  8525. "cloudshares\.net\/\\w+",
  8526. '"method_free|"Low Speed Download|submit" name="go',
  8527. 'Not Found|"width:500px;text-align:left;">|No such file exist',
  8528. 'optional--',
  8529. 'optional2--',
  8530. "//a[contains(@href,'cloudshares.net')]"
  8531. );
  8532. }
  8533. if (GM_getValue("Check_allmyvideos_dot_net_links", false))
  8534. {
  8535. addFileHost(
  8536. "allmyvideos\.net\/\\w+",
  8537. 'Continue to Video',
  8538. 'File Not Found|class="err">Removed for',
  8539. 'optional--',
  8540. 'optional2--',
  8541. "//a[contains(@href,'allmyvideos.net')]"
  8542. );
  8543. }
  8544. if (GM_getValue("Check_vodlocker_dot_com_links", false))
  8545. {
  8546. addFileHost(
  8547. "vodlocker\.com\/\\w+",
  8548. 'Proceed to video',
  8549. 'Not Found',
  8550. 'optional--',
  8551. 'optional2--',
  8552. "//a[contains(@href,'vodlocker.com')]"
  8553. );
  8554. }
  8555. if (GM_getValue("Check_vidbull_dot_com_links", false))
  8556. {
  8557. addFileHost(
  8558. "vidbull\.com\/\\w+",
  8559. 'Verifying Video Request',
  8560. 'File Not Found',
  8561. 'optional--',
  8562. 'optional2--',
  8563. "//a[contains(@href,'vidbull.com')]");
  8564. }
  8565. if (GM_getValue("Check_novamov_dot_com_links", false))
  8566. {
  8567. addFileHost(
  8568. "novamov\.com\/\\w+",
  8569. 'For version detection',
  8570. 'file no longer exists',
  8571. 'optional--',
  8572. 'optional2--',
  8573. "//a[contains(@href,'novamov.com')]"
  8574. );
  8575. }
  8576. if (GM_getValue("Check_filehoot_dot_com_links", false))
  8577. {
  8578. addFileHost(
  8579. "filehoot\.com\/\\w+",
  8580. 'Continue to watch',
  8581. 'File Not Found',
  8582. 'optional--',
  8583. 'optional2--',
  8584. "//a[contains(@href,'filehoot.com')]"
  8585. );
  8586. }
  8587. if (GM_getValue("Check_stagevu_dot_com_links", false))
  8588. {
  8589. addFileHost(
  8590. "stagevu\.com\/\\w+",
  8591. 'Video Info',
  8592. 'No video with the provided',
  8593. 'optional--',
  8594. 'optional2--',
  8595. "//a[contains(@href,'stagevu.com')]"
  8596. );
  8597. }
  8598. if (GM_getValue("Check_cloudtime_dot_to_links", false))
  8599. {
  8600. addFileHost(
  8601. "cloudtime\.to\/\\w+",
  8602. 'Download the video',
  8603. 'no longer exists',
  8604. 'optional--',
  8605. 'optional2--',
  8606. "//a[contains(@href,'cloudtime.to')]"
  8607. );
  8608. }
  8609. if (GM_getValue("Check_streamin_dot_to_links", false))
  8610. {
  8611. addFileHost(
  8612. "streamin\.to\/\\w+",
  8613. 'id="btn_download',
  8614. 'Not Found|Copyright Infringement|File Deleted',
  8615. 'optional--',
  8616. 'optional2--',
  8617. "//a[contains(@href,'streamin.to')]"
  8618. );
  8619. }
  8620. if (GM_getValue("Check_videoweed_dot_es_links", false))
  8621. {
  8622. addFileHost(
  8623. "videoweed\.es\/\\w+",
  8624. 'version detection',
  8625. 'no longer exists',
  8626. 'optional--',
  8627. 'optional2--',
  8628. "//a[contains(@href,'videoweed.es')]"
  8629. );
  8630. }
  8631. if (GM_getValue("Check_nowvideo_dot_sx_links", false))
  8632. {
  8633. addFileHost(
  8634. "nowvideo\.sx\/\\w+",
  8635. 'Download this video',
  8636. 'no longer exists',
  8637. 'optional--',
  8638. 'optional2--',
  8639. "//a[contains(@href,'nowvideo.sx')]"
  8640. );
  8641. }
  8642. if (GM_getValue("Check_thevideo_dot_me_links", false))
  8643. {
  8644. addFileHost(
  8645. "thevideo\.me\/\\w+",
  8646. 'Upgrade your account|Proceed to video|class="btn btn-lg btn-dark">',
  8647. 'File Not Found',
  8648. 'optional--',
  8649. 'optional2--',
  8650. "//a[contains(@href,'thevideo.me')]"
  8651. );
  8652. }
  8653. if (GM_getValue("Check_gorillavid_dot_in_links", false))
  8654. {
  8655. addFileHost(
  8656. "gorillavid\.in\/\\w+",
  8657. 'Wait 5 seconds',
  8658. 'File Not Found',
  8659. 'optional--',
  8660. 'optional2--',
  8661. "//a[contains(@href,'gorillavid.in')]"
  8662. );
  8663. }
  8664. if (GM_getValue("Check_thefile_dot_me_links", false))
  8665. {
  8666. addFileHost(
  8667. "thefile\.me\/\\w+",
  8668. 'Choose free or',
  8669. '',
  8670. 'optional--',
  8671. 'optional2--',
  8672. "//a[contains(@href,'thefile.me')]"
  8673. );
  8674. }
  8675. if (GM_getValue("Check_vidzi_dot_tv_links", false))
  8676. {
  8677. addFileHost(
  8678. "vidzi\.tv\/\\w+",
  8679. 'video-embed-modal row',
  8680. 'File Not Found|file was deleted',
  8681. 'optional--',
  8682. 'optional2--',
  8683. "//a[contains(@href,'vidzi.tv')]"
  8684. );
  8685. }
  8686. if (GM_getValue("Check_filenuke_dot_com_links", false))
  8687. {
  8688. addFileHost(
  8689. "filenuke\.com\/\\w+",
  8690. 'Download File',
  8691. 'Earn with us',
  8692. 'optional--',
  8693. 'optional2--',
  8694. "//a[contains(@href,'filenuke.com')]"
  8695. );
  8696. }
  8697. if (GM_getValue("Check_vidto_dot_me_links", false))
  8698. {
  8699. addFileHost(
  8700. "vidto\.me\/\\w+",
  8701. 'Proceed to video',
  8702. 'Not Found',
  8703. 'optional--',
  8704. 'optional2--',
  8705. "//a[contains(@href,'vidto.me')]"
  8706. );
  8707. }
  8708. if (GM_getValue("Check_vidspot_dot_net_links", false))
  8709. {
  8710. addFileHost(
  8711. "vidspot\.net\/\\w+",
  8712. 'Duration',
  8713. 'Removed for',
  8714. 'optional--',
  8715. 'optional2--',
  8716. "//a[contains(@href,'vidspot.net')]"
  8717. );
  8718. }
  8719. if (GM_getValue("Check_sharesix_dot_com_links", false))
  8720. {
  8721. addFileHost(
  8722. "(?:sharesix\\.com|sharesix\\.net)\/\\w+",
  8723. 'Download File',
  8724. 'File Not Found',
  8725. 'optional--',
  8726. 'optional2--',
  8727. "//a[contains(@href,'sharesix.com') or contains(@href,'sharesix.net/')]"
  8728. );
  8729. }
  8730. if (GM_getValue("Check_movpod_dot_in_links", false))
  8731. {
  8732. addFileHost(
  8733. "movpod\.in\/\\w+",
  8734. 'Continue',
  8735. 'File Not Found',
  8736. 'optional--',
  8737. 'optional2--',
  8738. "//a[contains(@href,'movpod.in')]"
  8739. );
  8740. }
  8741. /* if (GM_getValue("Check_down4files_dot_com_links", false))
  8742. {
  8743. addFileHost(
  8744. "down4files\.com\/\\w+",
  8745. 'down_table.png',
  8746. 'style="color:#d33|Error</td>|width:500px;text-align:left;">',
  8747. 'optional--',
  8748. 'optional2--',
  8749. "//a[contains(@href,'down4files.com')]"
  8750. );
  8751. } */
  8752. if (GM_getValue("Check_storefiles_dot_co_links", false))
  8753. {
  8754. addFileHost(
  8755. "storefiles\.co\/\\w+",
  8756. 'btn_download',
  8757. 'No such file|>Error<|mqmaintitle">',
  8758. 'optional--',
  8759. 'optional2--',
  8760. "//a[contains(@href,'storefiles.co')]"
  8761. );
  8762. }
  8763. if (GM_getValue("Check_filehost_dot_pw_links", false))
  8764. {
  8765. addFileHost(
  8766. "filehost\.pw\/\\w+",
  8767. 'name="method_free',
  8768. '>Error<|style="color:#d33;">|No such file|FILE NOT FOUND',
  8769. 'optional--',
  8770. 'optional2--',
  8771. "//a[contains(@href,'filehost.pw')]"
  8772. );
  8773. }
  8774. if (GM_getValue("Check_inafile_dot_com_links", false))
  8775. {
  8776. addFileHost(
  8777. "inafile\.com\/\\w+",
  8778. 'value="download1">|<h2>File: <font style="color:darkred">',
  8779. '<div style="width:500px;text-align:left;">|File Not Found',
  8780. 'optional--',
  8781. 'optional2--',
  8782. "//a[contains(@href,'inafile.com')]"
  8783. );
  8784. }
  8785. if (GM_getValue("Check_uplea_dot_com_links", false))
  8786. {
  8787. addFileHost(
  8788. "uplea\.com\/\\w+",
  8789. 'Download your file:|de votre fichier:|class="download-container|Téléchargement de votre fichier:',
  8790. 'expired link|ou est invalide',
  8791. 'optional--',
  8792. 'optional2--',
  8793. "//a[contains(@href,'uplea.com/dl')]",
  8794. true);
  8795. }
  8796. if (GM_getValue("Check_toutbox_dot_fr_links", false))
  8797. {
  8798. addFileHost(
  8799. "toutbox\.fr\/\\w+",
  8800. '<div class="downloadFileFid">|class="downloadsCounter">/p>|class="filename"><a href=|img/webbuttoned.gif">',
  8801. 'meta name="description" content="Toutbox.fr|redirect-userpage = "true"',
  8802. 'optional--',
  8803. 'optional2--',
  8804. "//a[contains(@href,'toutbox.fr') or contains(@href,'go4up.com/')]"
  8805. );
  8806. }
  8807. if (GM_getValue("Check_openload_dot_co_links", false))
  8808. {
  8809. addFileHost(
  8810. "openload\.co\/\\w+",
  8811. 'id="downloadTimer">|button dlbutton',
  8812. 'jumbotron{color|got deleted|center !important',
  8813. 'optional--',
  8814. 'optional2--',
  8815. "//a[contains(@href,'openload.co')]"
  8816. );
  8817. }
  8818. if (GM_getValue("Check_lolabits_dot_es_links", false))
  8819. {
  8820. addFileHost(
  8821. "lolabits\.es\/\\w+",
  8822. 'Descargar:',
  8823. '<title>Archivos de usuario',
  8824. 'optional--',
  8825. 'optional2--',
  8826. "//a[contains(@href,'lolabits.es')]"
  8827. );
  8828. }
  8829. if (GM_getValue("Check_alfafile_dot_net_links", false))
  8830. {
  8831. addFileHost(
  8832. "alfafile\.net\/\\w+",
  8833. 'id="slow_download_btn',
  8834. 'class="error-box">',
  8835. 'optional--',
  8836. 'optional2--',
  8837. "//a[contains(@href,'alfafile.net')]"
  8838. );
  8839. }
  8840. if (GM_getValue("Check_multiup_dot_org_links", false))
  8841. {
  8842. addFileHost(
  8843. "multiup\.org\/\\w+",
  8844. '<title>Download|<title>Télécharger|class="link-download btn"|<h5>DOWNLOAD</h5>|<h5>TÉLÉCHARGER</h5>',
  8845. 'File not found|alert-error">|icon-white icon-warning-sign">|<title>Fichier introuvable',
  8846. 'optional--',
  8847. 'optional2--',
  8848. "//a[contains(@href,'multiup.org')]"
  8849. );
  8850. }
  8851. if (GM_getValue("Check_file_dot_al_links", false))
  8852. {
  8853. addFileHost(
  8854. "file\.al\/\\w+",
  8855. 'method_free',
  8856. 'style="width:500px;text-align:left;">',
  8857. 'optional--',
  8858. 'optional2--',
  8859. "//a[contains(@href,'file.al')]"
  8860. );
  8861. }
  8862.  
  8863.  
  8864. }
  8865. //start here
  8866.  
  8867. //hosts with direct download, so they must be requested for headers only
  8868. function initFileHostsHeadersOnly()
  8869. {
  8870. function addFileHostHeadersOnly(linkRegex, isAliveRegex, isDeadRegex, xpathEx, ispremRegex)
  8871. {
  8872. var host = new Array(5);
  8873. host[0] = linkRegex;
  8874. host[1] = isAliveRegex;
  8875. host[2] = isDeadRegex;
  8876. host[3] = xpathEx;
  8877. host[4] = ispremRegex;
  8878. http_file_hosts_headers_only.push(host);
  8879. }
  8880. if (GM_getValue("Check_uloziste_dot_com_links", false))
  8881. {
  8882. addFileHostHeadersOnly(
  8883. "(?:|files\\.)uloziste\\.com\/\\w+\/\\w+",
  8884. 'Connection: Keep-Alive',
  8885. 'Content-Length: 3857',
  8886. "//a[contains(@href,'uloziste.com')]"
  8887. )
  8888. }
  8889. if (GM_getValue("Check_adrive_dot_com_links", false))
  8890. {
  8891. addFileHostHeadersOnly(
  8892. "adrive\\.com\/public\/\\w+",
  8893. 'Connection: keep-alive',
  8894. 'orig_ref=deleted',
  8895. "//a[contains(@href,'adrive.com')]"
  8896. )
  8897. }
  8898. if (GM_getValue("Check_myupload_dot_dk_links", false))
  8899. {
  8900. addFileHostHeadersOnly(
  8901. "myupload\\.dk\/showfile\/\\w+",
  8902. 'Expires:',
  8903. 'squeeze1\\s+Vary',
  8904. "//a[contains(@href,'myupload.dk/showfile')]"
  8905. )
  8906. }
  8907. }
  8908. //CustomRules
  8909. //functions add...Host copied here
  8910. function addObsoleteHost(linkRegex, xpathEx)
  8911. {
  8912. var host = new Array(2);
  8913. host[0] = linkRegex;
  8914. host[1] = xpathEx;
  8915. http_file_hosts_obsolete.push(host);
  8916. }
  8917. function addFileHost(linkRegex, isAliveRegex, isDeadRegex, isUnavaRegex, xpathEx, tryLoop, ispremRegex)
  8918. {
  8919. var host = new Array(7);
  8920. host[0] = linkRegex;
  8921. host[1] = isAliveRegex;
  8922. host[2] = isDeadRegex;
  8923. host[3] = isUnavaRegex;
  8924. host[4] = xpathEx;
  8925. tryLoop ? host[5] = true : host[5] = false;
  8926. host[6] = ispremRegex;
  8927. http_file_hosts.push(host);
  8928. }
  8929. function addFileHostHeadersOnly(linkRegex, isAliveRegex, isDeadRegex, xpathEx, ispremRegex)
  8930. {
  8931. var host = new Array(5);
  8932. host[0] = linkRegex;
  8933. host[1] = isAliveRegex;
  8934. host[2] = isDeadRegex;
  8935. host[3] = xpathEx;
  8936. host[4] = ispremRegex;
  8937. http_file_hosts_headers_only.push(host);
  8938. }
  8939. //takes a fully built rules array and adds the rules to WARLC
  8940. function applyCustomRules(customRules)
  8941. {
  8942. if (!customRules) return;
  8943. var rules, r, i;
  8944. rules = customRules.rules;
  8945. for (i = 0 ; i < rules.length ; i++)
  8946. {
  8947. r = rules[i];
  8948. if (r.enabled)
  8949. {
  8950. switch (r.type)
  8951. {
  8952. case 'single':
  8953. addFileHost(r.urlregex, r.aliveregex, r.deadregex, r.unavaregex, r.premregex||'', r.xpath);
  8954. break;
  8955. case 'headers':
  8956. addFileHostHeadersOnly(r.urlregex, r.aliveregex, r.deadregex, r.xpath, r.premregex);
  8957. break;
  8958. case 'obsolete':
  8959. addObsoleteHost(r.urlregex, r.xpath)
  8960. break;
  8961. }
  8962. }
  8963. }
  8964. }
  8965.  
  8966.  
  8967. function initFileHostsCustom()
  8968. {
  8969. if (Custom_rules && Custom_rules_text)
  8970. {
  8971. var msg = '';
  8972. if (newVersion)
  8973. msg = 'New version of W.A.R. Links Checker detected.\n\n';
  8974. else if ((now - last_custom_rules_nag) >= 60*24*60*60*1000)
  8975. msg = '60 or more days have passed since this notification.\n\n';
  8976. if (msg && /^\s*@customrule(?:_obsolete)?\s/mi.test(Custom_rules_text))
  8977. {
  8978. GM_setValue('last_custom_rules_nag', ''+new Date().getTime()); //reset nag
  8979. msg +=
  8980. 'Either new version of W.A.R. Links Checker detected or 60 days passed since this notify.\n'+
  8981. 'Please check that your custom rules haven\'t been built into WARLC.\n'+
  8982. 'If not, please share them with us so they can be included in the next version! Built-in rules are always preferred.\n\n'+
  8983. 'We apologize for this annoying notification, but there is a reason to this.\n'+
  8984. 'Ideally, WARLC would check which of your custom rules have been included and disable them. '+
  8985. 'Unfortunately, there is no easy way to do that, but we don\'t want everybody to just use their custom rules '+
  8986. 'forever without ever checking if the built-in ones have been added/fixed. This is currently the only way '+
  8987. 'to remind you that you should try built-in rules, report missing/non-working ones and share your custom rules.';
  8988. setTimeout(function(){alert(msg)},0);
  8989. }
  8990. var customRules = parseCustomRules(Custom_rules_text);
  8991. if (customRules.warning || customRules.error)
  8992. alert('There were ' + customRules.error + ' errors, ' + customRules.warning + ' warnings, ' +
  8993. customRules.note + ' notes found during Custom Rules processing.\n' + customRules.rules.length + ' valid rules found.\n\n' +
  8994. JSON.stringify(customRules.info, null, ' '));
  8995. applyCustomRules(customRules);
  8996. }
  8997. }
  8998. //end of CustomRules processing
  8999.  
  9000.  
  9001.  
  9002. } //end of function start
  9003.  
  9004.  
  9005.  
  9006. function initClipBoardTools()
  9007. {
  9008. unsafeWindow.copyToClipboard = function(text)
  9009. {
  9010. try
  9011. {
  9012. this.netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
  9013.  
  9014. var str = Components.classes["@mozilla.org/supports-string;1"].
  9015. createInstance(Components.interfaces.nsISupportsString);
  9016. if (!str) return false;
  9017.  
  9018. str.data = text;
  9019.  
  9020. var trans = Components.classes["@mozilla.org/widget/transferable;1"].
  9021. createInstance(Components.interfaces.nsITransferable);
  9022. if (!trans) return false;
  9023.  
  9024. trans.addDataFlavor("text/unicode");
  9025. trans.setTransferData("text/unicode", str, text.length * 2);
  9026.  
  9027. var clipid = Components.interfaces.nsIClipboard;
  9028. var clip = Components.classes["@mozilla.org/widget/clipboard;1"].getService(clipid);
  9029. if (!clip) return false;
  9030.  
  9031. clip.setData(trans, null, clipid.kGlobalClipboard);
  9032. } catch (e) {
  9033. GM_log("Error copyToClipboard : " + e);
  9034. alert(e + "\n\nsigned.applets.codebase_principal_support must be set true in about:config")
  9035. }
  9036. }
  9037. }
  9038.  
  9039.  
  9040.  
  9041. //CustomRules
  9042.  
  9043. function escapeRegex(str)
  9044. {
  9045. return str.replace(/[\-\[\]{}()*+?.,\\\^$|#]/g, "\\$&");
  9046. }
  9047.  
  9048.  
  9049. //called internally from parseCustomRules.
  9050. //expected: rule object with array fields baseurl, alivematch etc, everything must already be checked for input errors
  9051. //returns the rule object with string fields urlregex, xpath, aliveregex etc built from the arrays
  9052. function makeCustomRule(rule)
  9053. {
  9054. function makeMatchRegex(arrmatch)
  9055. {
  9056. return escapeRegex(arrmatch.join('\n'))
  9057. .replace(/ +/g, '\\s+') //two or more spaces to any whitespace
  9058. .replace(/\n/g,'|'); //join together
  9059. }
  9060. if (rule.alivematch) rule.aliveregex = makeMatchRegex(rule.alivematch);
  9061. if (rule.deadmatch) rule.deadregex = makeMatchRegex(rule.deadmatch);
  9062. if (rule.unavamatch) rule.unavaregex = makeMatchRegex(rule.unavamatch);
  9063. if (rule.premmatch) rule.premregex = makeMatchRegex(rule.premmatch);
  9064. if (rule.baseurl)
  9065. {
  9066. var i, m, urlregex = [], xpath = [], len = rule.baseurl.length;
  9067. for (i = 0 ; i < len ; i++)
  9068. {
  9069. m = rule.baseurl[i].match(/^([a-z0-9\.-]+)(?: +([a-z \.]+) +)?(\/.*)$/);
  9070. if (m[2]) //baseurl in the form: example. com co.uk net /xxx
  9071. {
  9072. 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'])
  9073. urlregex.push( (m[1] + '(?:'+ m[2].replace(/\s+/g,'|') + ')').replace(/\./g,'\\.') + escapeRegex(m[3]) + '.'); //urlregex.push('example\\.(?:com|co\\.uk|net)/xxx.')
  9074. }
  9075. else //baseurl in the form: example.com/xxx
  9076. {
  9077. xpath.push(m[0]);
  9078. urlregex.push(escapeRegex(m[0]) + '.');
  9079. }
  9080. }
  9081. rule.xpath = "//a[contains(@href,'" + xpath.join("') or contains(@href,'") + "')]";
  9082. rule.urlregex = '(?:[a-z0-9\\.-]+\\.)?(?:' + urlregex.join('|') + ')';
  9083. }
  9084. return rule;
  9085. } //function makeCustomRule
  9086.  
  9087.  
  9088. /*
  9089. Takes a string containing custom link checking rules.
  9090. Returns an object with fields:
  9091. info - contains notes, warnings and errors found during parsing
  9092. rules - the array of custom rules
  9093. note, warning, error - number of each of them found during parsing
  9094. Format of the input string:
  9095. One command per line. Command format: @keyword parameter
  9096. Keywords:
  9097. @customrule, @customrule_obsolete, @customrule_headers - begin a new custom rule. Parameter: name of the rule
  9098. @#customrule, @#customrule_obsolete, @#customrule_headers - begin and parse this custom rule, but don't use it. Parameter: name of the rule
  9099. These keywords can be multiple (any of them will work):
  9100. @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...)
  9101. @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+
  9102. @alivelink, @deadlink - example links
  9103. @baseurl is always required, @alivematch and @deadmatch are required except for obsolete. @unavamatch is ignored for obsolete. @*link is optional.
  9104. Lines starting with // and empty lines are ignored.
  9105. Invalid parameters generate errors and those lines are skipped.
  9106. Other lines generate warnings, but are otherwise ignored (also those before the first @customrule line or inside a rule with invalid name).
  9107. Example:
  9108. @customrule filehost
  9109. @baseurl filehost.com/download/
  9110. @baseurl filehost2. com net /d?=
  9111. @alivematch id="download">
  9112. @deadmatch File not found
  9113. @deadmatch File deleted
  9114. */
  9115. function parseCustomRules(rulesStr)
  9116. {
  9117. var linenum, customRules = {'info': [], 'rules': [], 'note': 0, 'warning': 0, 'error': 0};
  9118. function addInfo(type, msg, ln){
  9119. customRules.info.push({'linenum':(ln===undefined ? linenum+1 : ln+1), 'type':type, 'msg':msg});
  9120. customRules[type]++;
  9121. }
  9122. var lines = rulesStr.match(/^(.*)$/gm); //split into array of lines
  9123. if (!lines) return null;
  9124. lines.push('@#customrule _'); //to save the last rule
  9125. var m, linecount = lines.length;
  9126. var keyword, param, constr, rule, err;
  9127. var TLD = '[a-z]{2,7}(?:\\.[a-z]{2,7})?';
  9128. var TLDorTLDlist = '(?:'+TLD+'| '+TLD+'(?: '+TLD+'){0,9} )'; //TLD or space-separated list of TLDs
  9129. var baseurlRE = new RegExp('^([a-z0-9-]{1,30}(?:\\.[a-z0-9-]{1,30}){0,2}\\.)'+TLDorTLDlist+'(/[^\'"\s\$]{0,50})$', 'i');
  9130. var constraints = {
  9131. 'baseurl': {
  9132. 'single': {'min': 1, 'max': 10, 'paramRE': baseurlRE},
  9133. 'headers': {'min': 1, 'max': 10, 'paramRE': baseurlRE},
  9134. 'obsolete': {'min': 1, 'max': 10, 'paramRE': baseurlRE}},
  9135. 'alivematch': {
  9136. 'single': {'min': 1, 'max': 10, 'paramRE': null},
  9137. 'headers': {'min': 1, 'max': 10, 'paramRE': null}},
  9138. 'deadmatch': {
  9139. 'single': {'min': 1, 'max': 10, 'paramRE': null},
  9140. 'headers': {'min': 1, 'max': 10, 'paramRE': null}},
  9141. 'unavamatch': {
  9142. 'single': {'min': 0, 'max': 10, 'paramRE': null}},
  9143. 'alivelink': {
  9144. 'single': {'min': 0, 'max': 10, 'paramRE': null},
  9145. 'headers': {'min': 0, 'max': 10, 'paramRE': null}},
  9146. 'deadlink': {
  9147. 'single': {'min': 0, 'max': 10, 'paramRE': null},
  9148. 'headers': {'min': 0, 'max': 10, 'paramRE': null},
  9149. 'obsolete': {'min': 0, 'max': 10, 'paramRE': null}}
  9150. };
  9151. for (linenum = 0 ; linenum < linecount ; linenum++)
  9152. {
  9153. //capturing groups: 1 23 4 5 6
  9154. m = lines[linenum].match(/^\s*(?:(\/\/.*)|@((#?)(customrule)(?:_(headers|obsolete))?|baseurl|alivematch|deadmatch|unavamatch|alivelink|deadlink)\s+(.+))?$/i);
  9155. if (m)
  9156. {
  9157. if (m[1] || !m[2])
  9158. continue; // ignore empty lines and lines starting with //
  9159. keyword = (m[4] || m[2]).toLowerCase();
  9160. param = m[6];
  9161. if (keyword == 'customrule')
  9162. {
  9163. //save the current rule if all required fields are provided
  9164. if (rule)
  9165. {
  9166. err = false;
  9167. $.each(constraints, function(kw, constraint){
  9168. var l, constr = constraint[rule.type];
  9169. if (constr)
  9170. {
  9171. l = rule[kw] ? rule[kw].length : 0;
  9172. if (l < constr.min || l > constr.max)
  9173. {
  9174. 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);
  9175. err = true;
  9176. }
  9177. }
  9178. });
  9179. if (!err)
  9180. customRules.rules.push(makeCustomRule(rule));
  9181. }
  9182. //start a new rule
  9183. if (/^[\w\.-]{1,30}$/.test(param)) //valid name?
  9184. {
  9185. rule = {
  9186. 'enabled': !m[3],
  9187. 'type': m[5] ? m[5].toLowerCase() : 'single',
  9188. 'name': param
  9189. };
  9190. }
  9191. else
  9192. {
  9193. addInfo('error', 'Invalid rule name. Cannot start a new rule definition.');
  9194. rule = null;
  9195. }
  9196. }
  9197. else //good line format, but keyword other than customrule
  9198. {
  9199. if (!rule)
  9200. {
  9201. addInfo('warning', 'Command outside @CUSTOMRULE definiton. Line skipped.');
  9202. continue;
  9203. }
  9204. if (constraints[keyword])
  9205. {
  9206. constr = constraints[keyword][rule.type];
  9207. if (constr)
  9208. {
  9209. if (constr.paramRE && !constr.paramRE.test(param))
  9210. {
  9211. addInfo('warning', 'Invalid @' + keyword.toUpperCase() + ' parameter. Line Skipped.');
  9212. continue;
  9213. }
  9214. }
  9215. else
  9216. {
  9217. addInfo('note', '@' + keyword.toUpperCase() + ' not applicable for type ' + rule.type.toUpperCase() + '. Line skipped.');
  9218. continue;
  9219. }
  9220. }
  9221. //line OK, save
  9222. rule[keyword] ? rule[keyword].push(param) : rule[keyword] = [param];
  9223. }
  9224. } //if (m)
  9225. else
  9226. addInfo('warning', 'Unknown line format. Line skipped.');
  9227. } //for loop
  9228. return customRules;
  9229. } //function parseCustomRules