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

detects live, dead and premium links.

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

  1. //added secured.in & linksave.in to obsolete hosts
  2. // ==UserScript==
  3. // @name W.A.R. Links Checker Customized Premium Link Version
  4. // @description detects live, dead and premium links.
  5. // @details this script automatically checks links from hundreds of filehosts. For Firefox, Chrome, Opera, Safari.
  6. // @namespace premium version
  7. // @version 1.2.1.9
  8. // @icon http://sharenxs.com/photos/2014/02/14/52fd759db90ac/cooltext1428903746.png
  9. // @license GPL version 3 or any later version (http://www.gnu.org/copyleft/gpl.html)
  10. // @author mental
  11. // @include http://*
  12. // @include https://*
  13. // @include file:///*
  14. // @grant GM_setValue
  15. // @grant GM_getValue
  16. // @grant GM_xmlhttpRequest
  17. // @grant GM_log
  18. // @grant GM_addStyle
  19. // @grant GM_registerMenuCommand
  20. // @grant GM_getResourceText
  21. // @grant GM_info
  22. // @require https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js
  23. // @require https://ajax.googleapis.com/ajax/libs/jqueryui/1.9.1/jquery-ui.min.js
  24. // @resource jQueryUICSS https://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/smoothness/jquery-ui.css
  25. // @homepage http://www.warlc.5gbfree.com
  26. // @namespace http://www.warlc.5gbfree.com
  27. // @noframes
  28. // ==/UserScript==
  29.  
  30. //separate alternative domains with "|" char (first name is considered being main)
  31. var allHostNames = [
  32. "1fichier.com|dl4free.com",
  33. "dailyuploads.net",
  34. "devilshare.net",
  35. "alfafile.net",
  36. "openload.co",
  37. "multiup.org",
  38. "uplea.com",
  39. "filenuke.com",
  40. "file.al",
  41. // "inafile.com",
  42. "lolabits.es",
  43. "vidto.me",
  44. "storefiles.co",
  45. "filehost.pw",
  46. "vidspot.net",
  47. "turbobit.ru",
  48. "sharesix.com|sharesix.net",
  49. "movpod.in",
  50. "thefile.me",
  51. "vidzi.tv",
  52. "videoweed.es",
  53. "vodlocker.com",
  54. "nowvideo.sx",
  55. "cloudtime.to",
  56. "thevideo.me",
  57. "vidbull.com",
  58. "allmyvideos.net",
  59. "novamov.com",
  60. "filehoot.com",
  61. "stagevu.com",
  62. "gorillavid.in",
  63. "streamin.to",
  64. "4upld.com",
  65. "cloudshares.net",
  66. "swoopshare.com",
  67. "2shared.com",
  68. "fileupload.pw",
  69. "zxcfiles.com",
  70. "up07.net",
  71. "4shared.com",
  72. "adrive.com",
  73. "aisfile.com",
  74. "hexupload.com",
  75. "bezvadata.cz",
  76. "xkeepfile.com|Gamesena.com",
  77. "usersfiles.com",
  78. "pan.baidu.com",
  79. "radicalshare.com",
  80. "datei.to",
  81. "daten-hoster.de|filehosting.org|xtraupload.de",
  82. "demo.ovh.eu",
  83. "depositfiles.com|depositfiles.lt|depositfiles.org|dfiles.ru|dfiles.eu",
  84. "divshare.com",
  85. "easy-share.com|crocko.com",
  86. "easybytez.com",
  87. "edisk.cz",
  88. "euroshare.eu",
  89. "file-upload.net",
  90. "yadi.sk",
  91. "wizupload.com",
  92. "fastshare.cz",
  93. "filefactory.com",
  94. "share.vnn.vn",
  95. "yunpan.cn",
  96. "gulfup.com",
  97. "tropicshare.com",
  98. "cloudzilla.to",
  99. "inclouddrive.com",
  100. "fileflyer.com",
  101. "filerio.com|filekeen.com",
  102. "up.4share.vn",
  103. "upfile.vn",
  104. "datafilehost.com",
  105. "fileband.com",
  106. "worldbytez.com",
  107. "files.mail.ru",
  108. "filesflash.com",
  109. "box.com",
  110. "uptobox.com",
  111. "box.net",
  112. "goldbytez.com",
  113. "sdilej.cz",
  114. "ex-load.com",
  115. "filesmonster.com",
  116. "filestore.to",
  117. "hulkload.com",
  118. "filedropper.com",
  119. "free-uploading.com",
  120. "gamefront.com|filefront.com",
  121. "gettyfile.ru",
  122. "gigapeta.com",
  123. "gigasize.com",
  124. "hellshare.com",
  125. "hellspy.com",
  126. "hitfile.net",
  127. "hostuje.net",
  128. "freefilehosting.net",
  129. "free.fr",
  130. "hulkshare.com",
  131. "hyperfileshare.com",
  132. "filecloud.io|ifile.it",
  133. "ifolder.ru",
  134. "jumbofiles.com",
  135. "uploadrocket.net",
  136. "lafiles.com",
  137. "leteckaposta.cz|sharegadget.com",
  138. "letitbit.net",
  139. "load.to",
  140. "mediafire.com",
  141. "megafileupload.com",
  142. "megashares.com",
  143. "movshare.net",
  144. "muchshare.net",
  145. "myupload.dk",
  146. "narod.ru|narod.yandex.ru",
  147. "fboom.me|fileboom.me",
  148. "openfile.ru",
  149. "partage-facile.com",
  150. "plunder.com",
  151. "sharerapid.cz",
  152. "exclusiveloader.com",
  153. "acefile.net",
  154. "queenshare.com",
  155. "rapidgator.net",
  156. "k2s.cc|keep2s.cc|keep2share.cc|keep2share.com",
  157. "oboom.com",
  158. "filepi.com",
  159. "neodrive.co",
  160. "rarefile.net",
  161. "rayfile.com",
  162. "rghost.net",
  163. "sendmyway.com",
  164. "clicknupload.com",
  165. "clicknupload.me",
  166. "sharemods.com",
  167. "hostr.co",
  168. "sendspace.com",
  169. "sharecash.org",
  170. "share-links.biz",
  171. "share-online.biz|egoshare.com",
  172. "megarapid.cz",
  173. "shareflare.net",
  174. "solidfiles.com",
  175. "led.wf",
  176. "lan.wf",
  177. "adlink.wf",
  178. "click.tf",
  179. "kyc.pm",
  180. "ssh.tf",
  181. "ssh.yt",
  182. "yep.pm",
  183. "stahovanizasms.cz",
  184. "turbobit.net",
  185. "filecloud.cc",
  186. "tikfile.com",
  187. "cloudsix.me",
  188. "turboupload.com",
  189. "uloz.to|ulozto.cz|bagruj.cz|zachowajto.pl",
  190. "ulozisko.sk",
  191. "uloziste.com",
  192. "unibytes.com",
  193. "upload-il.net|przeslij.net",
  194. "uploaded.to|ul.to",
  195. "uploading.com",
  196. "chayfile.com",
  197. "rockfile.eu",
  198. "24uploading.com",
  199. "uploadspace.pl",
  200. "upnito.sk",
  201. "usaupload.net",
  202. "veehd.com",
  203. "videobb.com",
  204. "vip-file.com",
  205. "webshare.cz",
  206. "xdisk.cz",
  207. "yunfile.com|filemarkets.com",
  208. "ziddu.com",
  209. "zippyshare.com",
  210. "rodfile.com",
  211. "wikiupload.com",
  212. "uploadstube.de",
  213. "faststore.org",
  214. "flyfiles.net",
  215. "nowdownload.ch",
  216. "prefiles.com",
  217. "axifile.com",
  218. "hackerbox.org",
  219. "amonshare.com",
  220. "data.hu",
  221. "brupload.net",
  222. "userscloud.com",
  223. "netkups.com",
  224. "xfileload.com",
  225. "kumpulbagi.com",
  226. "uppit.com|up.ht",
  227. "downloadani.me",
  228. "filesabc.com",
  229. "180upload.com",
  230. "verzend.be",
  231. "4up.me",
  232. "extmatrix.com",
  233. "sendfiles.nl",
  234. "yourfilestore.com",
  235. "filebig.net",
  236. "nekaka.com",
  237. "file4safe.com",
  238. "tusfiles.net",
  239. "filemac.com",
  240. "idup.in",
  241. "fileswap.com",
  242. "ozofiles.com",
  243. "loudupload.net",
  244. "nosupload.com",
  245. "gboxes.com",
  246. "myvdrive.com|fileserving.com",
  247. "filesin.com",
  248. "novafile.com",
  249. "longfiles.com",
  250. // "uploadhero.com",
  251. "uploadbaz.com",
  252. "bitupload.com",
  253. "indowebster.com",
  254. "superload.cz",
  255. "mafiastorage.com",
  256. "4upfiles.com",
  257. "filesmelt.com",
  258. "hellupload.com",
  259. "uploadingit.com",
  260. "stiahni.si",
  261. "sendspace.pl",
  262. "fastshare.org",
  263. "filejoker.net",
  264. "filestore.com.ua",
  265. "secureupload.eu",
  266. "rapidfileshare.net",
  267. "stiahnito.sk",
  268. "rusfolder.com",
  269. "fileover.net",
  270. "catshare.net",
  271. "anonfiles.com",
  272. "mixturecloud.com",
  273. "filedais.com",
  274. // "imdb.com",
  275. "nitroflare.com",
  276. "akafile.com",
  277. "creafile.net",
  278. "hugefiles.net",
  279. "vidxden.com",
  280. "up.top4top.net",
  281. "upload.ee",
  282. "shareplace.org",
  283. "uploadc.com",
  284. "remixshare.com",
  285. "exoshare.com",
  286. "borncash.org",
  287. "junocloud.me",
  288. "expressleech.com",
  289. "2downloadz.com",
  290. "mightyupload.com",
  291. "anysend.com",
  292. "datafile.com",
  293. "upstore.net",
  294. "upsto.re",
  295. "speedy.sh",
  296. "sanshare.com",
  297. "kingfiles.net",
  298. // "uploadhero.co",
  299. "ge.tt",
  300. "filesflash.net",
  301. "salefiles.com",
  302. // "megairon.net",
  303. "datoid.cz",
  304. "cloudstor.es",
  305. "streamfile.com",
  306. "eyesfile.ca",
  307. "filemoney.com",
  308. "uploadboy.com",
  309. "speedshare.eu",
  310. "google.com",
  311. "unlimitzone.com",
  312. "rioupload.com",
  313. "rg.to",
  314. "jumbofiles.org",
  315. "fshare.vn",
  316. "spaceforfiles.com",
  317. "up.media1fire.com",
  318. "depfile.com",
  319. "go4up.com",
  320. "dropbox.com",
  321. "redbunker.net",
  322. "divxpress.com",
  323. "mega.nz|mega.co.nz",
  324. "anafile.com",
  325. "uploadable.ch",
  326. "arabloads.net",
  327. "sharerepo.com",
  328. "sfshare.se",
  329. "files.fm",
  330. "koofile.com",
  331. "vidplay.net",
  332. "storagon.com",
  333. "doraupload.com",
  334. "openload.io",
  335. "geupload.com|lenfile.com",
  336. "uploads.xxx",
  337. "toutbox.fr",
  338. ];
  339.  
  340. try
  341. {
  342. //iframes excluded
  343. if (window.top != window.self)
  344. {
  345. return;
  346. }
  347. //allHostNames sites excluded
  348. if (window.location.href.match("https?:\/\/(www\.)?[\w\.-]*(?:" +
  349. allHostNames.join("|").replace(/\./g, "\\.").replace(/-/g, "\\-") +
  350. ")"))
  351. {
  352. return;
  353. }
  354. }
  355. catch (e)
  356. {
  357. return;
  358. }
  359.  
  360. //separate alternative domains with "|" char (first name is considered being main)
  361. var allContainerNames = [
  362. "adf.ly",
  363. "linkcrypt.ws",
  364. "linksafe.me",
  365. // "linksave.in",
  366. "linkto.net",
  367. "madlink.sk",
  368. "multiload.cz",
  369. "mirrorcreator.com",
  370. "ncrypt.in",
  371. "redi.re",
  372. "relink.us",
  373. "safelinking.net",
  374. "theloo.katt.it",
  375. "bit.ly",
  376.  
  377. ];
  378.  
  379. //separate alternative domains with "|" char (first name is considered being main)
  380. var allObsoleteNames = [
  381. "uloz.cz",
  382. "secured.in",
  383. "linksave.in",
  384. "filepost.com|fp.io",
  385. "rapidsonic.com",
  386. "fileparadox.com",
  387. "fileparadox.in",
  388. "uploadhero.co",
  389. "uploadhero.com",
  390. "newfileland.com",
  391. "quickshare.cz",
  392. "netload.in",
  393. "netload.me",
  394. "movreel.com",
  395. "migahost.com",
  396. "krotix.net",
  397. "jumbofile.net",
  398. "edoc.com",
  399. "down4files.com",
  400. "cramit.in|cramitin.net",
  401. "freakshare.com",
  402. "burnupload.com|burnupload.ihiphop.com",
  403. "freakshare.net",
  404. "daj.to",
  405. "bl.st",
  406. "2drive.net",
  407. "ryushare.com",
  408. "crisshare.com",
  409. "tufiles.ru",
  410. "uncapped-downloads.com",
  411. "sockshare.com",
  412. "ddlstorage.com",
  413. "dataport.cz",
  414. "dizzcloud.com",
  415. "sharebeast.com",
  416. "stahovadlo.cz",
  417. "shared.com",
  418. "storage.to",
  419. "putlocker.com",
  420. "lumfile.com",
  421. "lumfile.se",
  422. "lumfile.eu",
  423. "firedrive.com",
  424. "fileshare.in.ua",
  425. "filecore.co.nz",
  426. "iskladka.cz",
  427. "file-rack.com",
  428. "fast-load.net",
  429. "subory.sk",
  430. "bigandfree.com",
  431. "fileop.com",
  432. "mujsoubor.cz",
  433. "sendfile.to",
  434. "superfastfile.com",
  435. "quickyshare.com",
  436. "duckload.com",
  437. "uploadstore.net",
  438. "meinupload.com",
  439. "dualshare.com",
  440. "2xupload.to|2xupload.de",
  441. "oxedion.com",
  442. "uploadline.com",
  443. "dll.bz",
  444. "movieshare.in",
  445. "milledrive.com",
  446. "quickupload.net",
  447. "safelink.in",
  448. "metadivx.com",
  449. "divxlink.com",
  450. "uploadrack.com",
  451. "teradepot.com",
  452. "dataup.to",
  453. "upit.to",
  454. "driveway.com",
  455. "eatlime.com",
  456. "a2zuploads.com",
  457. "friendlyfiles.net",
  458. "flyfile.us",
  459. "speedyshare.com",
  460. "uploadspace.eu",
  461. "keepfile.com",
  462. "piggyshare.com",
  463. "uplly.com",
  464. "filecrown.com",
  465. "6giga.com",
  466. "uploadjockey.com",
  467. "bluehost.to",
  468. "filegu.ru",
  469. "filebase.to",
  470. "up-file.com",
  471. "xvideos.com",
  472. "ufox.com",
  473. "filebling.com",
  474. "loaded.it",
  475. "uploadcell.com",
  476. "uploadshare.cz",
  477. "mangoshare.com",
  478. "filestab.com",
  479. "crazyupload.com",
  480. "gaiafile.com",
  481. "sharejunky.com",
  482. "fileho.com",
  483. "bigandfree.com",
  484. "bigfile.in",
  485. "bigshare.eu",
  486. "dahosting.org",
  487. "digisofts.net",
  488. "file4save.com",
  489. "filechip.com",
  490. "filescloud.com",
  491. "saveqube.com",
  492. "turboshare.de",
  493. "z-upload.com",
  494. "youshare.com",
  495. "jiffyupload.com",
  496. "gigeshare.com",
  497. "datenklo.net",
  498. "upload.dj",
  499. "loadfiles.in",
  500. "upit.to",
  501. "dsfileshare.com",
  502. "sharesimple.net",
  503. "4files.net",
  504. "wooupload.com",
  505. "odsiebie.com",
  506. "filenavi.com",
  507. "3oof.com",
  508. "meshwaar.com",
  509. "maxupload.com",
  510. "share.cx",
  511. "atserver.eu",
  512. "hotfiles.ws",
  513. "esnips.com",
  514. "tuxfile.com",
  515. "file2upload.net",
  516. "filebling.com",
  517. "turboshare.com",
  518. "rarhost.com",
  519. "isharehd.com",
  520. "i741.com",
  521. "dataup.de",
  522. "fofly.com",
  523. "shareonall.com",
  524. "sexuploader.com",
  525. "megaupload.com|megavideo.com|megaporn.com|megarotic.com",
  526. "uploadhyper.com",
  527. "filespawn.com",
  528. "caizzii.com",
  529. "volnyweb.cz",
  530. "usershare.net",
  531. "filescash.net",
  532. "metahyper.com",
  533. "combozip.com",
  534. "x7.to",
  535. "uploadbox.com",
  536. "enterupload.com|flyupload.com",
  537. "filepoint.de",
  538. "mystream.to",
  539. "x-fs.com",
  540. "shareator.com",
  541. "srapid.eu",
  542. "sosame.cz",
  543. "filesdump.com",
  544. "2-klicks.de",
  545. "uploking.com",
  546. "silofiles.com",
  547. "upfile.in",
  548. "filehook.com",
  549. "uploadking.com",
  550. "uploadhere.com",
  551. "kewlshare.com",
  552. "rapidable.com",
  553. "uploadwaste.com",
  554. "filemup.com",
  555. "filesonic.com|sharingmatrix.com",
  556. "fileserve.com",
  557. "wupload.com",
  558. "skipfile.com",
  559. "smartuploader.com",
  560. "dualshare.com",
  561. "storeandserve.com",
  562. "mountfile.com",
  563. "transitfiles.com",
  564. "uploadstation.com",
  565. "filejungle.com",
  566. "shareshared.com",
  567. "quickyshare.com",
  568. "save.am",
  569. "petandrive.com",
  570. "file2box.com",
  571. "flyshare.cz",
  572. "yabadaba.ru",
  573. "cloudcache.cc",
  574. "yourfilehost.com",
  575. "jakfile.com",
  576. "kickload.com",
  577. "pyramidfiles.com",
  578. "refile.net",
  579. "zshare.net",
  580. "ddlani.me|ddlanime.com",
  581. "ftp2share.com",
  582. "fooget.com",
  583. "rapidhide.com",
  584. "gotupload.com",
  585. "mooload.com",
  586. "zupload.com",
  587. "mytempdir.com",
  588. "onionshare.com",
  589. "stahnu.to",
  590. "oron.com",
  591. "badongo.com",
  592. "filereactor.com",
  593. "filegaze.com",
  594. "4bytez.com",
  595. "1hostclick.com",
  596. "anonstream.com",
  597. "batshare.com",
  598. "bitroad.net",
  599. "brontofile.com",
  600. "cloudnxt.net",
  601. "cloudnator.com|shragle.com",
  602. "filesfrog.net",
  603. "coolshare.cz",
  604. "dotavi.com",
  605. "ezyfile.net",
  606. "file-bit.net",
  607. "filecosy.com",
  608. "fileduct.com|fileduct.net",
  609. "filefat.com",
  610. "filelaser.com",
  611. "filemashine.com",
  612. "fileserver.cc",
  613. "filetechnology.com",
  614. "fireuploads.net",
  615. "gigfiles.net",
  616. "holderfile.com",
  617. "ihostia.com",
  618. "k2files.com",
  619. "mojofile.com",
  620. "ovfile.com",
  621. "qshare.com",
  622. "shafiles.me",
  623. "sharefilehost.com",
  624. "shareupload.com",
  625. "stahuj.to",
  626. "ugotfile.com",
  627. "uploadboost.com",
  628. "fileom.com",
  629. "vidhog.com",
  630. "xfileshare.eu",
  631. "bzlink.us",
  632. "bulletupload.com",
  633. "bloggerarticles.com",
  634. "mojedata.sk",
  635. "sharpfile.com",
  636. "upgrand.com",
  637. "nasdilej.cz",
  638. "mediatack.cz",
  639. "share-it.to",
  640. "primeupload.com",
  641. "filebeer.info",
  642. "baberepublic",
  643. "xtu.me",
  644. "sharebase.de",
  645. "luckyshare.net",
  646. "filerobo.com",
  647. "filevelocity.com",
  648. "filezpro.com",
  649. "file4sharing.com",
  650. "cing.be",
  651. "ufile.eu",
  652. "pigsonic.com",
  653. "fileupped.com",
  654. "sharerun.com",
  655. "filesaur.com",
  656. "rapidslnare.com",
  657. "bestsharing.com",
  658. "savefiles.net",
  659. "file2share.biz",
  660. "filecache.de",
  661. "monsteruploads.eu",
  662. "b9bb.com",
  663. "aiotool.net",
  664. "jamber.info",
  665. "megaftp.com",
  666. "desiupload.net",
  667. "file27.com",
  668. "yastorage.com",
  669. "filehost.ws",
  670. "copyload.com",
  671. "venusfile.com",
  672. "aieshare.com",
  673. "terafile.co",
  674. "terafile.com",
  675. "fileza.net",
  676. "filerose.com",
  677. "squillion.com",
  678. "fileprohost.com",
  679. "bitbonus.com",
  680. "warserver.cz",
  681. "uload.to",
  682. "sharedbit.net",
  683. "megaload.it",
  684. "filewinds.com",
  685. "uploadcore.com",
  686. "syfiles.com",
  687. "eyesfile.com",
  688. "hotfile.com",
  689. "superupl.com",
  690. "oteupload.com",
  691. "henchfile.com",
  692. "filegag.com",
  693. "HenchFile.com",
  694. "filedefend.com",
  695. "share-rapid.com|rapids.cz|share-credit.cz|share-central.cz|share-ms.cz|share-net.cz|srapid.cz|share-rapid.cz",
  696. "megabitshare.com",
  697. "cloudzer.com",
  698. "asfile.com",
  699. "cloudzer.net",
  700. "clz.to",
  701. "extabit.com",
  702. "247upload.com",
  703. "2download.de",
  704. "4fastfile.com",
  705. "asixfiles.com",
  706. "berofile.com",
  707. "bigupload.com",
  708. "cepzo.com",
  709. "clouds.to",
  710. "cobrashare.sk",
  711. "coraldrive.net",
  712. "cyberlocker.ch",
  713. "czshare.com",
  714. "darkport.org",
  715. "dark-uploads.com",
  716. "davvas.com",
  717. "enigmashare.com",
  718. "erofly.cz",
  719. "fastsonic.net",
  720. "filebox.com",
  721. "filecity.net",
  722. "filedap.com",
  723. "filedino.com",
  724. "filedownloads.org",
  725. "filefolks.com",
  726. "fileking.co",
  727. "filemates.com",
  728. "files.to",
  729. "files2k.eu",
  730. "filesector.cc",
  731. "bitshare.com",
  732. "filesega.com",
  733. "filesend.net",
  734. "filestay.com",
  735. "filestrum.com",
  736. "fileuplo.de",
  737. "fileupup.com",
  738. "forunesia.com",
  739. "freeuploads.fr",
  740. "uploa.dk",
  741. "getthebit.com",
  742. "getzilla.net",
  743. "goldfile.eu",
  744. "good.com",
  745. "grupload.com",
  746. "hellfile.com",
  747. "hipfile.com",
  748. "hitfile.com",
  749. "hulkfile.eu|duckfile.net",
  750. "i-filez.com",
  751. "ifile.ws",
  752. "kupload.org",
  753. "packupload.com",
  754. "lemuploads.com",
  755. "limelinx.com",
  756. "maxshare.pl",
  757. "megarelease.org",
  758. "megashare.com",
  759. "minus.com",
  760. "mlfat4arab.com",
  761. "multishare.cz",
  762. "nirafile.com",
  763. "ok2upload.com",
  764. "peejeshare.com",
  765. "premiuns.org",
  766. "przeklej.net",
  767. "qkup.net",
  768. "rapidupload.sk",
  769. "rockdizfile.com",
  770. "rocketfile.net",
  771. "share-now.net",
  772. "share76.com",
  773. "sharebees.com",
  774. "sharefiles.co",
  775. "slingfile.com",
  776. "sms4file.com",
  777. "space4file.com",
  778. "tigershare.net",
  779. "toucansharing.com",
  780. "ubuntuone.com",
  781. "unextfiles.com",
  782. "upaj.pl",
  783. "upfile.biz",
  784. "uploadbin.net",
  785. "uploadic.com",
  786. "uploadinc.com",
  787. "uploading4u.eu",
  788. "uploadjet.net",
  789. "uploadorb.com",
  790. "upthe.net",
  791. "uptorch.com",
  792. "vidbox.yt",
  793. "videozer.com",
  794. "vreer.com",
  795. "wallobit.com",
  796. "zooupload.com",
  797. "privatefiles.com",
  798. "xerver.co",
  799. "BillionUploads.com",
  800. "rapidshare.com",
  801. "rapidshare.ru",
  802. "4savefile.com",
  803. "bayfiles.com",
  804. "bayfiles.net",
  805. "dodane.pl",
  806. "dotsemper.com",
  807. "egofiles.com",
  808. "epicshare.net",
  809. "fiberupload.net",
  810. "filemonkey.in",
  811. "filemonster.net",
  812. "filepom.com",
  813. "filesbb.com",
  814. "fileshareup.com",
  815. "filevice.com",
  816. "gigaup.fr",
  817. "isavelink.com",
  818. "loombo.com",
  819. "megafiles.se",
  820. "migupload.com",
  821. "mydisc.net",
  822. "nitrobits.com",
  823. "potload.com",
  824. "redload.net",
  825. "shareprofi.com",
  826. "sharesuper.info",
  827. "sinhro.net",
  828. "speedfile.cz",
  829. "speedshare.org",
  830. "storage.novoro.net",
  831. "swankshare.com",
  832. "swatupload.com",
  833. "upafile.com",
  834. "uploadmachine.com",
  835. "uploadsat.com",
  836. "upshared.com",
  837. "usefile.com",
  838. "yourfiles.to",
  839. "zomgupload.com",
  840. "ultramegabit.com",
  841. "uploadto.us",
  842. "inafile.com",
  843. "megairon.net",
  844.  
  845. ];
  846. ///////////////////////////////////////////////////////////////////////////////////////
  847. var firstRun = GM_getValue("First_run", true);
  848.  
  849. var chromeBrowser = /chrom(e|ium)/.test(navigator.userAgent.toLowerCase());
  850. //////////////////////////////////////////////////////////////////////////////////////
  851. try
  852. {
  853. var thisVersion = GM_info.script.version; //not supported in Scriptish and others
  854. var last_known_version = GM_getValue("last_known_version", "");
  855. if (!last_known_version)
  856. {
  857. last_known_version = thisVersion;
  858. GM_setValue("last_known_version", last_known_version);
  859. }
  860. //var newVersion = !(thisVersion == last_known_version);
  861. var newVersion = !(a.replace(/^(\d+\.\d+\.\d+).*/,'$1') == b.replace(/^(\d+\.\d+\.\d+).*/,'$1')); //true only if one of the first three numbers differs
  862. GM_setValue("last_known_version", thisVersion);
  863. }
  864. catch (err)
  865. {
  866. var newVersion = false;
  867. }
  868.  
  869. var now = (new Date()).getTime();
  870. var last_custom_rules_nag = GM_getValue('last_custom_rules_nag', 0);
  871. if (!last_custom_rules_nag)
  872. {
  873. last_custom_rules_nag = now;
  874. GM_setValue('last_custom_rules_nag', ''+now);
  875. }
  876.  
  877.  
  878. allHostNames.sort();
  879. allContainerNames.sort();
  880. allObsoleteNames.sort();
  881.  
  882. var RAND_STRING = "8QyvpOSsRG3QWq";
  883. var DEBUG_MODE = false;
  884.  
  885. var TOOLTIP_MAXWIDTH = 600; //in pixels
  886. var TOOLTIP_THUMBWIDTH = 200;
  887. var containers_processed = false;
  888.  
  889. //settings for keyboard functions start
  890. var CHECK_ALL_LINKS_KEY = "A";
  891. var CONFIGURATION_KEY = "C";
  892. var copy_to_dead_key = "D";
  893. var toggle_autocheck_key = "W";
  894. var toggle_Enable_Anonymizer_key = "Z";
  895. var first_key_keycode = '17'; // 18=ALT 16=Shift 17=Ctrl 32=SPACE_BAR 9=TAB
  896. var first_key_keycodename = 'CTRL';
  897. var second_key_keycode = '18';
  898. var second_key_keycodename = 'ALT';
  899. var CHECK_ALL_LINKS_KEYCODE = CHECK_ALL_LINKS_KEY.charCodeAt(0);
  900. var CONFIGURATION_KEYCODE = CONFIGURATION_KEY.charCodeAt(0);
  901. var copy_to_dead_keycode = copy_to_dead_key.charCodeAt(0);
  902. var toggle_autocheck_keycode = toggle_autocheck_key.charCodeAt(0);
  903. var toggle_Enable_Anonymizer_keycode = toggle_Enable_Anonymizer_key.charCodeAt(0);
  904. //settings for keyboard functions end
  905.  
  906. //global settings start
  907. var Show_black_background_in_DL_links, Show_line_through_in_dead_links, Color_DL_links;
  908. var Live_links_color, Dead_links_color, Temp_unavailable_links_color, Premium_links_color, Ref_anonymize_service;
  909. var Do_not_linkify_DL_links, Keyboard_functions, Autocheck, Enable_Anonymizer;
  910. var Show_progress_stats, Display_tooltip_info, Icon_set;
  911. var Progress_box_pos_bottom, Progress_box_pos_right, Progress_box_opacity, Progress_box_background_color, Progress_box_item_color;
  912. var Progress_box_refresh_rate;
  913. var Obsolete_file_hosts;
  914. var Custom_rules, Custom_rules_text;
  915.  
  916. var messageBox = document.createElement('b'); // top-left message box
  917.  
  918. var cLinksTotal = 0;
  919. var cLinksDead = 0;
  920. var cLinksAlive = 0;
  921. var cLinksUnava = 0;
  922. var cLinksprem = 0;
  923. var cLinksProcessed = 0;
  924.  
  925. var intervalId; //for updateProgress()
  926.  
  927. //icon resources
  928. 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/Pf14L7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d23aRu7M1KOf4afTMAjWa0e6lUua7JDzNEtceATGoWWHx3a7wu359EzF+tjHfPjYS6kQed2UD3AESEvwMAaQGsQMrwcN0AAAAASUVORK5CYII=';
  937.  
  938. 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==';
  939. var NEW_ICON_RED = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAA6klEQVQ4jbWTwWrCQBRFz6Rxnay6iuAXlJIg+BHZZR/d6++4t/5MpRQRf8CCrurGrDP6uumEST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zfrlFZZsiM1TXbFTtftLdhPI+ZU4GNDotZW0HAzYDSVcSHmDeAyXbXOtsq3QAIsd2020VlRXBYEYdsThSCsdeZlEkhYoBUqBJOioaV0V8YWLgU+Ew3OUllo4jgd4D+4AtYdsc7/DVQOMxSNW5cNClGD+Fu41dOZlKDMLmELrOUIhjeN48HpngTnMbDeWjIeHnsvbz98YXqxguumuazdDOs0HjAETRKNjuFyzTE9PAOO//Xm27lvN4b1c8htkAXC2jrKHN5gVSRcRW0SCIpIj/f2ZAkhTkykiOYu+SLa8e6qkeRNXALh5nEc/phARnaSJSSUnO5G+B8tnIkr6rjMTSqfMZQXZ9vE1xGKJpPe4DDjXAYkEjAwmzwwDLIv0NZlE1MYAjsQoAOL8C5rY2AxPlIjwP/wcACKn3tWfrwJ4AAAAAElFTkSuQmCC';
  941. var NEW_ICON_PINK = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABUklEQVQ4jY3TsUuWURQG8F8WEvFNDREfIg5RURAOIeL0DhJBS0tDY9BQQ0Oj29kiIvoDhBpFQRTUD1GKi0sRtEs0SEQ0RBQIRcVXw3eF6+vrWwcunPvc53nuPffcS0uEmA0x38Y5cohwGjOYxBBe4VGI3j8NQlzHYhaW0cfNEAslWCfBw4yvYhkv8hjCgxD7yMdquw/jbJ4+xq2cz+AKdrJRv9EAv/EDx3Ft75QhtrHdcFpHy0mS/lSqcVzAFM7he6XaTNLXJoOmS+ziOc4XcB893A3xodUgm5zAHdzHSLH0DhdD/GwsoSjlV5Je5nK+YQUTOInXSXq7x6134RQuo4unGf6Me7iKMxgrNfUuXMJazr8U+DA6Of/UZrCF9xjFM3zELpZwOptulIKmLlQGNXdqS7u4EWK9BA9cYpJ2KtWcwaMazcInuB3iTZ3fGv/znf8CBMxX4hrPUbUAAAAASUVORK5CYII=';
  942.  
  943. //global settings end
  944. if (window.opera && !window.console)
  945. {
  946. window.console = {};
  947.  
  948. function fn()
  949. {
  950. opera.postError(arguments);
  951. };
  952. ['log', 'debug', 'info', 'warn', 'error', 'assert', 'dir', 'dirxml', 'group', 'groupEnd', 'time', 'timeEnd', 'count', 'trace', 'profile', 'profileEnd'].forEach(function (name)
  953. {
  954. window.console[name] = fn;
  955. });
  956. }
  957.  
  958. //displays colored text in message box
  959. function sendMessage(text, color)
  960. {
  961. var msgDiv = document.createElement('div');
  962. msgDiv.style.color = color;
  963. msgDiv.innerHTML = text;
  964. messageBox.appendChild(msgDiv);
  965. setTimeout(function(){messageBox.removeChild(msgDiv)}, 3000);
  966. }
  967.  
  968. function linkify(totalourls)
  969. { // code from http://userscripts.org/scripts/review/2254 Linkify ting
  970. var ikkeTilladteTags;
  971. var allLinksRegex = "(?:http:\/\/.+?\\?)?(?:https?:\/\/)?"
  972. + "[0-9A-Za-z]+(?:[\\.-][0-9A-Za-z]+)*\\.[A-Za-z]+/" //instead of totalourls
  973. + "[\\w\\–\\-\\.+$!*\\/()\\[\\]\',~%?:@#&=\\\\\\—;…×Ã\\_\\u0080-\\u03FF’‘" + (Allow_spaces_in_DL_links ? "\\u0020" : "") + "]*";
  974. allLinksRegex = new RegExp(allLinksRegex, "g");
  975. var regexy = "^(?:http:\/\/.+?\\?)?(?:https?:\/\/)?(?:www\\.)?(?:" + totalourls + ")";
  976.  
  977. if (Do_not_linkify_DL_links)
  978. ikkeTilladteTags = ['a', 'head', 'script', 'style', 'title', 'option', 'iframe', 'textarea', 'span']; //tags, hvor det der stAΞ’Β¥r inden i ikke skal vAΞ’Β¦re links
  979. else
  980. ikkeTilladteTags = ['a', 'head', 'script', 'style', 'title', 'option', 'iframe', 'textarea']; //tags, hvor det der stAΞ’Β¥r inden i ikke skal vAΞ’Β¦re links
  981.  
  982. var regex = new RegExp(regexy);
  983. var textNode, muligtLink;
  984.  
  985. var path = "//text()[not(parent::" + ikkeTilladteTags.join(" or parent::") + ") and contains(.,'/')]";
  986. var textNodes = document.evaluate(path, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  987.  
  988. var i = textNodes.snapshotLength;
  989. while (i--)
  990. {
  991. textNode = textNodes.snapshotItem(i);
  992.  
  993. muligtLink = textNode.nodeValue; //all links on page
  994.  
  995. var myArray = null;
  996. var span = null;
  997. var lastLastIndex = 0;
  998. allLinksRegex.lastIndex = 0;
  999. if (/^https?:\/\/~[\w\s\~]*\//.test(muligtLink))
  1000. {
  1001. if (textNode.parentNode.className == "adead_link") continue;
  1002. var censoredLink = muligtLink;
  1003. var span = document.createElement('span');
  1004. span.className = "adead_link";
  1005. $(span).attr('warlc_error', "Cause of error: <b>Censored link.</b>");
  1006. $(span).html(censoredLink);
  1007. span.addEventListener("mouseover", displayTooltipError, false);
  1008. cLinksTotal++; cLinksProcessed++; cLinksDead++;
  1009. textNode.parentNode.replaceChild(span, textNode);
  1010. continue;
  1011. alert(censoredLink);
  1012. }
  1013. while (myArray = allLinksRegex.exec(muligtLink)) //find all links
  1014. {
  1015. if (!regex.test(myArray[0])) //this link is not recognized
  1016. {
  1017.  
  1018. continue;
  1019. }
  1020. if (!span)
  1021. span = document.createElement('span');
  1022.  
  1023. var link = myArray[0];
  1024. span.appendChild(document.createTextNode(muligtLink.substring(lastLastIndex, myArray.index))); //inds?t det der kommer for dette hit
  1025.  
  1026. var $a = $("<a>" + link + "</a>")
  1027. if (!link.match(/https?:\/\//))
  1028. {
  1029. link = 'http://' + link;
  1030. }
  1031.  
  1032. $a.attr("href", link.replace(/\[\/hide:\w+\]/,""))
  1033. .addClass("processing_link")
  1034. .appendTo(span);
  1035. lastLastIndex = allLinksRegex.lastIndex;
  1036. }
  1037. if (span)
  1038. {
  1039. span.appendChild(document.createTextNode(muligtLink.substring(lastLastIndex))); //ins?t det der kommer efter sidste hit
  1040. textNode.parentNode.replaceChild(span, textNode);
  1041. }
  1042. }
  1043. }
  1044.  
  1045. function add_WARLC_style()
  1046. {
  1047. if (!(document.getElementsByTagName('WARLC')[0]))
  1048. {
  1049. var meta_not_to_add_more_style = document.createElement("WARLC");
  1050. meta_not_to_add_more_style.setAttribute('content', 'war_links_checker');
  1051. meta_not_to_add_more_style.setAttribute('name', 'description');
  1052. document.getElementsByTagName('head')[0].appendChild(meta_not_to_add_more_style);
  1053. alive_link_png = "";
  1054. adead_link_png = "";
  1055. unava_link_png = "";
  1056. prem_link_png = "";
  1057. switch(Icon_set)
  1058. {
  1059. //no icons
  1060. case 0: break;
  1061. // cat paws
  1062. case 1: alive_link_png = PAW_ICON_GREEN;
  1063. adead_link_png = PAW_ICON_RED;
  1064. unava_link_png = PAW_ICON_YELLOW;
  1065. prem_link_png = PAW_ICON_PINK;
  1066. break;
  1067. // classic RSLC look
  1068. case 2: alive_link_png = RSLC_ICON_GREEN;
  1069. adead_link_png = RSLC_ICON_RED;
  1070. unava_link_png = RSLC_ICON_YELLOW;
  1071. prem_link_png = RSLC_ICON_PINK;
  1072. break;
  1073. // New Icons
  1074. case 3: alive_link_png = NEW_ICON_GREEN;
  1075. adead_link_png = NEW_ICON_RED;
  1076. unava_link_png = NEW_ICON_YELLOW;
  1077. prem_link_png = NEW_ICON_PINK;
  1078. break;
  1079. // cat paws
  1080. default:alive_link_png = PAW_ICON_GREEN;
  1081. adead_link_png = PAW_ICON_RED;
  1082. unava_link_png = PAW_ICON_YELLOW;
  1083. prem_link_png = PAW_ICON_PINK;
  1084. break;
  1085. }
  1086. processing_link_gif = 'data:image/gif;base64,' + // or temporary anavailable
  1087. 'R0lGODlhCgAKAJEDAMzMzP9mZv8AAP///yH/C05FVFNDQVBFMi4wAwEAAAAh+QQFAAADACwAAAAACgAKAAACF5wncgaAGgJzJ647cWua4sOBFEd62VEAACH5BAUAAAMALAEAAAAIAAMAAAIKnBM2IoMDAFMQFAAh+QQFAAADACwAAAAABgAGAAACDJwHMBGofKIRItJYAAAh+QQFAAADACwAAAEAAwAIAAACChxgOBPBvpYQYxYAIfkEBQAAAwAsAAAEAAYABgAAAgoEhmPJHOGgEGwWACH5BAUAAAMALAEABwAIAAMAAAIKBIYjYhOhRHqpAAAh+QQFAAADACwEAAQABgAGAAACDJwncqi7EQYAA0p6CgAh+QQJAAADACwHAAEAAwAIAAACCpRmoxoxvQAYchQAOw%3D%3D';
  1088.  
  1089. var dead_color_css, live_color_css, unava_color_css, prem_color_css, black_background_css;
  1090.  
  1091. if (Color_DL_links)
  1092. {
  1093. dead_color_css = 'color:' + Dead_links_color + ' !important;';
  1094. live_color_css = 'color:' + Live_links_color + ' !important;';
  1095. unava_color_css = 'color:' + Temp_unavailable_links_color + ' !important;';
  1096. container_color_css = 'color:' + Container_links_color + ' !important;';
  1097. prem_color_css = 'color:' + Premium_links_color + ' !important;';
  1098. }
  1099. else
  1100. {
  1101. dead_color_css = live_color_css = unava_color_css = container_color_css = prem_color_css = '';
  1102. }
  1103.  
  1104. if (Show_black_background_in_DL_links)
  1105. {
  1106. black_background_css = 'background-color: black !important;';
  1107. }
  1108. else
  1109. {
  1110. black_background_css = '';
  1111. }
  1112.  
  1113. if (Show_line_through_in_dead_links)
  1114. {
  1115. line_through_css = 'text-decoration: line-through !important;';
  1116. }
  1117. else
  1118. {
  1119. line_through_css = '';
  1120. }
  1121.  
  1122. GM_addStyle(".alive_link {background:transparent url(" + alive_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;" + live_color_css + black_background_css + "}");
  1123. 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 + "}");
  1124. GM_addStyle(".unava_link {background:transparent url(" + unava_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;" + unava_color_css + black_background_css + "}");
  1125. GM_addStyle(".processing_link {background:transparent url(" + processing_link_gif + ") no-repeat scroll 100% 50%;padding-right:15px;" + container_color_css + black_background_css + "}");
  1126. GM_addStyle(".container_link {background:transparent url(" + processing_link_gif + ") no-repeat scroll 100% 50%;padding-right:15px;" + container_color_css + black_background_css + "}");
  1127. GM_addStyle(".container_list {font-size:90%; list-style-type:square; padding: 0px 5% 0px; margin: 0px}");
  1128. GM_addStyle(".prem_link {background:transparent url(" + prem_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;" + prem_color_css + black_background_css + "}");
  1129. }
  1130. }
  1131.  
  1132. var warlcTooltip = null;
  1133. var mouseoverLink = null; //link href with mouse cursor over it
  1134.  
  1135. var lastX = 0;
  1136. var lastY = 0;
  1137.  
  1138. $(document).ready(initTooltip);
  1139. //inits tooltip
  1140. function initTooltip()
  1141. { warlcTooltip = document.createElement("div");
  1142. 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:2000; max-width: " + TOOLTIP_MAXWIDTH + "px;");
  1143. warlcTooltip.style.visibility = "hidden";
  1144. document.body.appendChild(warlcTooltip);
  1145. }
  1146.  
  1147. //"mousemove" event handler for all links
  1148. function moveTooltip(event)
  1149. {
  1150. if ((Math.abs(lastX - event.clientX) + Math.abs(lastY - event.clientY)) < 6)
  1151. { //no need to reflow if the cursor moved just a little
  1152. return;
  1153. }
  1154. else
  1155. {
  1156. lastX = event.clientX;
  1157. lastY = event.clientY;
  1158. }
  1159.  
  1160. posX = event.clientX + window.pageXOffset + 10;
  1161. posY = event.clientY + window.pageYOffset;
  1162. var ttHeight = warlcTooltip.offsetHeight;
  1163. var ttFreeSpace = window.innerHeight - event.clientY;
  1164. if (ttHeight > ttFreeSpace)
  1165. { //prevents tooltip from getting out of the window
  1166. posY -= (ttHeight - (ttFreeSpace)) + 10;
  1167. }
  1168. else
  1169. {
  1170. posY += 7;
  1171. }
  1172. warlcTooltip.style.top = posY + "px";
  1173. warlcTooltip.style.left = posX + "px";
  1174. }
  1175.  
  1176. //"mouseout" event handler for all links
  1177. function hideTooltip(){
  1178. warlcTooltip.style.visibility = "hidden";
  1179. mouseoverLink = null;
  1180. }
  1181.  
  1182.  
  1183. //"mouseover" event handler for dead links
  1184. //displays tooltip error message on dead links
  1185. function displayTooltipError()
  1186. {
  1187. mouseoverLink = this.href;
  1188. this.addEventListener("mouseout", hideTooltip);
  1189. this.addEventListener("mousemove", function(event) { moveTooltip(event); });
  1190. warlcTooltip.innerHTML = '<b>LOADING...</b>';
  1191. warlcTooltip.style.minWidth = 0;
  1192. warlcTooltip.style.visibility = "visible";
  1193. if (this.warlc_error) //an error message is already known and stored in warlc_error attribute
  1194. {
  1195. warlcTooltip.innerHTML = this.warlc_error;
  1196. }
  1197. else
  1198. {
  1199. loadErrorInfo(this);
  1200. }
  1201. function loadErrorInfo(link)
  1202. {
  1203. var href = link.href;
  1204. href = href.replace(/quickshare\.cz\/.+/, "quickshare.cz/chyba");
  1205. GM_xmlhttpRequest({
  1206. method: 'GET',
  1207. url: href.replace(Ref_anonymize_service, ""),
  1208. headers: {
  1209. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1210. 'Accept': 'text/xml',
  1211. 'Referer': ""
  1212. },
  1213. onload: function(result) {
  1214. var res = result.responseText;
  1215. //TODO: errorRegexs -
  1216. var errorRegexs = [ //generic error messages follow
  1217. /(empty directory)/i,
  1218. /(soubor nebyl nalezen)/i,
  1219. /((?:file|page|link|folder)(?:is|not|does|has been|was| ){1,}(?:found|available|blocked|exists?|deleted|removed))/i,
  1220. //server specific error messages follow
  1221. /msg error" style="cursor: default">(.+?)<\/div>/, //sendspace
  1222. /color:red;font\-weight:bold;border\-style:dashed;font-size:12px;border\-width:2px;><tr><td align=center>(.+?)<\/td>/, //fastshare
  1223. /(Takový soubor neexistuje. Je možné, že byl již smazán.)/, //quickshare
  1224. /file_info file_info_deleted">\s*<h1>(.+?)<\/h1>/, //filepost
  1225. /<br \/>\s*<p style="color:#000">(.+?)<\/p>\s*<\/center>/, //letitbit
  1226. /(?:error_div">|<\/h1><p>)<strong>(.+?)<\/strong>/, //share-rapid,quickshare
  1227. /class="red">(.+?)<(?:span|br)>/, //czshare, megashares
  1228. /class="wp640">\s*<h1 class="h1">(.+?)<\/h1>/, //uloz.to
  1229. /not-found">\s*<p>(.+?)<\/p>/, //bayfiles
  1230. /(Your file could not be found. Please check the download link.)/, //stahnu.to
  1231. /error_msg">\s*(<h3>.+?<\/h3><ul>(.+?)<\/ul>)/, //edisk
  1232. /id="obsah">\s*<h2>(.+?)<\/h2>/, //euroshare
  1233. /error">\s*(?:<[bp]>)?\s*(.+?)<\/[bp]>/, //filesmonster, shragle, gigapeta
  1234. ///center aC">\s*<h1>(.+?)<br \/>/, //uploaded.to
  1235. /icon_err">\s*<h1>(.+?)<\/h1>/, //filejungle
  1236. // /Code: ER_NFF_\d+<\/h2>\s*(.+?)\s*<\/div>/, //netload
  1237. /(File has been removed due to Copyright Claim)/, //filerio
  1238. ];
  1239. var errorIdx = errorRegexs.length;
  1240. var error = "Cause of error: <b>unknown</b>";
  1241. var errorCandidate = "";
  1242. while(errorIdx--)
  1243. {
  1244. var errorCandidate = res.match(errorRegexs[errorIdx]);
  1245. if (errorCandidate != null)
  1246. {
  1247. error = "Cause of error: <b>" + errorCandidate[1].replace(/&nbsp;/g," ") + "</b>";
  1248. break;
  1249. }
  1250. }
  1251. //link attributes
  1252. link.warlc_error = error;
  1253. if (mouseoverLink == link.href) //mouse cursor is still over the link
  1254. {
  1255. warlcTooltip.innerHTML = error;
  1256. }
  1257. }
  1258. });
  1259. }
  1260. }
  1261.  
  1262. //"mouseover" event handler for alive links
  1263. //displays tooltip info (file size, file name,...) on alive links
  1264. function displayTooltipInfo()
  1265. {
  1266. mouseoverLink = this.href;
  1267. //exclude direct download filehostings
  1268. 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)/))
  1269. {
  1270. return;
  1271. }
  1272. this.addEventListener("mouseout", hideTooltip);
  1273. this.addEventListener("mousemove", function(event) { moveTooltip(event); });
  1274. warlcTooltip.innerHTML = '<b>LOADING...</b>';
  1275. warlcTooltip.style.minWidth = 0;
  1276. warlcTooltip.style.visibility = "visible";
  1277. if (this.warlc_tooltipcache) //file size is already known and stored in warlc_filename and warlc_filesize attributes
  1278. {
  1279. warlcTooltip.innerHTML = this.warlc_tooltipcache;
  1280. }
  1281. else
  1282. {
  1283. loadInfo(this);
  1284. }
  1285. function loadInfo(link)
  1286. {
  1287. var href = link.href;
  1288. GM_xmlhttpRequest({
  1289. method: 'GET',
  1290. url: href.replace(Ref_anonymize_service, ""),
  1291. headers: {
  1292. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1293. 'Accept': 'text/xml',
  1294. 'Referer': ""
  1295. },
  1296. onload: function(result) {
  1297. var res = result.responseText;
  1298. var nameRegexs = [ /Filename: <b class="f_arial f_14px">(.+?)<\/b>/, //oron
  1299. /(?:finfo|file[-_]?name)">\s*(.+?)<\/?(?:h1|a|div|span style|td)/, //hellshare, netload, badongo, 4fastfile
  1300. /fl" title="(.+?)">/, //edisk
  1301. /<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
  1302. /<h3>Stahujete soubor: <\/h3>\s*<div class="textbox">(.+?)<\/div>/, //webshare
  1303. /<h3><b><span style=color:black;>(.+?)<\/b><\/h3><br>/, //fastshare
  1304. /title="download (.+?)">/, //sendspace
  1305. /Stáhnout soubor: (.+?)<\/h1>/, //quickshare
  1306. /fz24">Download:\s*<strong>(.+?)<\/strong>/, //crocko
  1307. // /'file\-icon\d+ \w+'>(?:<\/span><span>)?(.+?)<\/span>/, //hitfile, turbobit
  1308. /d0FileName = "(.+?)";/, //letitbit
  1309. /file(?:_name|-info)" title="">\w+: <span>(.+?)<\/span>/, //vip-file, shareflare
  1310. /recent-comments"><h2>(.+) &nbsp;/, //xdisk
  1311. /fname" value="(.+?)">/, //syfiles, grupload,
  1312. /download\-header">\s*<h2>File:<\/h2>\s*<p title="(.+?)">/, //bayfiles
  1313. /description">\s*<p><b>Soubor: (.+?)<\/b>/, //bezvadata
  1314. /Complete name : (.+?)<br \/>/, //bezvadata
  1315. /itemprop="name">(.+?)<\/span>/, //bezvadata
  1316. ];
  1317. var nameIdx = nameRegexs.length;
  1318. // [sizeRegexs]
  1319. // / \ \?
  1320. // prefix (size) postfix
  1321. // / \
  1322. // val quant
  1323. var quantRegex = '(?:M|G|K)?i?(?:B)(?:[y|i]te?s?)?';
  1324. var valRegex = '\\d+(?:[\\., ]\\d+){0,2}'; // 111([., ]222)?([., ]333)?
  1325. var uniSizeRegex = valRegex + '(?:\\s*|&nbsp;)' + quantRegex;
  1326. var preSizeRegex = '(?::|\\(|>|>, | - )';
  1327. var postSizeRegex = '(?:\\))?';
  1328. var sizeRegexs = [ preSizeRegex + "\\s*(" + uniSizeRegex + ")\\s*" + postSizeRegex,
  1329. 'FileSize_master">(.+?)<\/strong>', //hellshare
  1330. ];
  1331. var sizeIdx = sizeRegexs.length;
  1332. //
  1333. //
  1334. var tooltip = "File Name: <b>";
  1335. var fileName = "unknown";
  1336. var nameCandidate = "";
  1337. while(nameIdx--)
  1338. {
  1339. var nameCandidate = res.match(nameRegexs[nameIdx]);
  1340. if (nameCandidate != null)
  1341. {
  1342. fileName = nameCandidate[1].replace(/&nbsp;/g," ");
  1343. break;
  1344. }
  1345. }
  1346. tooltip += fileName + "</b><br>File Size: <b>";
  1347. var fileSize = "unknown";
  1348. var sizeCandidate = "";
  1349. while(sizeIdx--)
  1350. {
  1351. sizeCandidate = res.match(new RegExp(sizeRegexs[sizeIdx], "i"));
  1352. if (sizeCandidate != null)
  1353. {
  1354. fileSize = sizeCandidate[1].replace(/&nbsp;/g," ");
  1355. if (/^\d+$/.test(fileSize) && fileSize >= 1024) //assume bytes
  1356. {
  1357. if(fileSize > (1<<30)) fileSize = Math.round(10 * fileSize / (1<<30)) / 10 + ' GB';
  1358. else if(fileSize > (1<<20)) fileSize = Math.round(fileSize / (1<<20)) + ' MB';
  1359. else fileSize = Math.round(fileSize / 1024) + ' KB';
  1360. }
  1361. break;
  1362. }
  1363. }
  1364. tooltip += fileSize + "</b>";
  1365. // PROTOTYPE
  1366. // video thumbnails
  1367. if (href.match('hellshare'))
  1368. {
  1369. var thumbs;
  1370. thumbs = res.match(/http:\/\/static\d+\.helldata\.com\/thumbs(?:\/\d+){1,2}\/\d{1,2}"/g);
  1371. if (thumbs)
  1372. {
  1373. tooltip += '<br>';
  1374. var j = Math.min(thumbs.length, 9);
  1375. for (var i = 0; i < j; i++)
  1376. {
  1377. tooltip += '<img src="' + thumbs[i].replace('"',"") + '" width="' + TOOLTIP_THUMBWIDTH + 'px">';
  1378. }
  1379. warlcTooltip.style.minWidth = TOOLTIP_MAXWIDTH;
  1380. }
  1381. }
  1382. if (href.match('czshare'))
  1383. {
  1384. var thumbs;
  1385. thumbs = res.match(/src="http:\/\/www(\d+)\.czshare\.com\/images_velke\/\d+\.(\d+)\.jpeg/);
  1386. if (thumbs)
  1387. {
  1388. var thumbsServer = thumbs[1];
  1389. var thumbsId = thumbs[2];
  1390. tooltip += '<br>';
  1391. for (var i = 1; i < 9; i++)
  1392. {
  1393. tooltip += '<img src="http://www' + thumbsServer + '.czshare.com/images_velke/' + i + '.' + thumbsId + '.jpeg" width="' + TOOLTIP_THUMBWIDTH + 'px">';
  1394. }
  1395. warlcTooltip.style.minWidth = TOOLTIP_MAXWIDTH;
  1396. }
  1397. }
  1398. if (href.match('bezvadata'))
  1399. {
  1400. var thumbs;
  1401. thumbs = res.match(/http:\/\/nahledy\.bezvadata\.cz\/nahledy\/\d+\/\d+\/\d+_\d+_\d+x\d+_\w.jpg/g);
  1402. if (thumbs)
  1403. {
  1404. tooltip += '<br>';
  1405. var j = Math.min(thumbs.length, 9);
  1406. for (var i = 0; i < j; i++)
  1407. {
  1408. tooltip += '<img src="' + thumbs[i] + '" width="' + TOOLTIP_THUMBWIDTH + 'px">';
  1409. }
  1410. warlcTooltip.style.minWidth = TOOLTIP_MAXWIDTH;
  1411. }
  1412. }
  1413. link.warlc_tooltipcache = tooltip;
  1414. if (mouseoverLink == link.href) //mouse cursor is still over the link
  1415. {
  1416. warlcTooltip.innerHTML = tooltip;
  1417. }
  1418. }
  1419. });
  1420. }
  1421. }
  1422.  
  1423. function setVariables()
  1424. {
  1425. if (firstRun)
  1426. {
  1427. GM_log('First run, applying default settings...');
  1428. GM_setValue("Icon_set",1);
  1429. GM_setValue("Display_tooltip_info",true);
  1430. GM_setValue("Show_black_background_in_DL_links",false);
  1431. GM_setValue("Show_line_through_in_dead_links",false);
  1432. GM_setValue("Display_full_links_in_link_containers",false);
  1433. GM_setValue("Allow_spaces_in_DL_links",false);
  1434. GM_setValue("Autocheck",true);
  1435. GM_setValue("Enable_Anonymizer",false);
  1436. GM_setValue("Do_not_linkify_DL_links",false);
  1437. GM_setValue("Show_progress_stats",true);
  1438. GM_setValue("Keyboard_functions",true);
  1439. GM_setValue("Obsolete_file_hosts",false);
  1440. GM_setValue("Color_DL_links",true);
  1441. GM_setValue("Live_links_color","Green");
  1442. GM_setValue("Dead_links_color","#FF3300");
  1443. GM_setValue("Temp_unavailable_links_color","#F7EF09");
  1444. GM_setValue("Container_links_color","DarkKhaki");
  1445. GM_setValue("Premium_links_color","DeepPink");
  1446. GM_setValue("Ref_anonymize_service","http://hiderefer.com/?");
  1447. GM_setValue("Custom_rules",false);
  1448. GM_setValue("Custom_rules_text","");
  1449. GM_setValue("First_run", false);
  1450. }
  1451. //hidden settings
  1452. GM_setValue("Progress_box_pos_bottom", Progress_box_pos_bottom = GM_getValue("Progress_box_pos_bottom", 20));
  1453. GM_setValue("Progress_box_pos_right", Progress_box_pos_right = GM_getValue("Progress_box_pos_right", 10));
  1454. GM_setValue("Progress_box_opacity", Progress_box_opacity = GM_getValue("Progress_box_opacity", 85));
  1455. GM_setValue("Progress_box_background_color", Progress_box_background_color = GM_getValue("Progress_box_background_color", 'DimGray'));
  1456. GM_setValue("Progress_box_item_color", Progress_box_item_color = GM_getValue("Progress_box_item_color", 'DimGray'));
  1457. GM_setValue("Progress_box_refresh_rate", Progress_box_refresh_rate = GM_getValue("Progress_box_refresh_rate", 2000));
  1458. GM_setValue("Debug_mode", DEBUG_MODE = GM_getValue("Debug_mode", false));
  1459. //hidden settings end
  1460.  
  1461. Icon_set = GM_getValue("Icon_set", 1); //0 - no icons, 1 - cat paws, 2 - old RSLC style, 3 - New Icons,
  1462. Display_tooltip_info = GM_getValue("Display_tooltip_info", true);
  1463. Show_black_background_in_DL_links = GM_getValue("Show_black_background_in_DL_links", false);
  1464. Show_line_through_in_dead_links = GM_getValue("Show_line_through_in_dead_links", false);
  1465. Display_full_links_in_link_containers = GM_getValue("Display_full_links_in_link_containers", false);
  1466. Allow_spaces_in_DL_links = GM_getValue("Allow_spaces_in_DL_links", false);
  1467. Autocheck = GM_getValue("Autocheck", true);
  1468. Enable_Anonymizer = GM_getValue("Enable_Anonymizer", false);
  1469. Do_not_linkify_DL_links = GM_getValue("Do_not_linkify_DL_links", false);
  1470. Show_progress_stats = GM_getValue("Show_progress_stats", true);
  1471. Keyboard_functions = GM_getValue("Keyboard_functions", true);
  1472. Obsolete_file_hosts = GM_getValue("Obsolete_file_hosts", false);
  1473. Color_DL_links = GM_getValue("Color_DL_links", true);
  1474. Live_links_color = GM_getValue("Live_links_color", "Green");
  1475. Dead_links_color = GM_getValue("Dead_links_color", "#FF3300");
  1476. Temp_unavailable_links_color = GM_getValue("Temp_unavailable_links_color", "#F7EF09");
  1477. Container_links_color = GM_getValue("Container_links_color", "DarkKhaki");
  1478. Premium_links_color = GM_getValue("Premium_links_color", "DeepPink");
  1479. Ref_anonymize_service = GM_getValue("Ref_anonymize_service", "http://hiderefer.com/?");
  1480. Custom_rules = GM_getValue("Custom_rules", false);
  1481. Custom_rules_text = GM_getValue("Custom_rules_text", false);
  1482. }
  1483.  
  1484.  
  1485. // Delinkifies the links
  1486. // params:
  1487. // links -> list of links or link components (note they should be sufficiently unique to identify the link on page,
  1488. // e.g. 'uloz.to/xs68skxl8')
  1489. function delinkifySnapshot(snapshot)
  1490. {
  1491. var n = snapshot.snapshotLength;
  1492.  
  1493. while (n--)
  1494. {
  1495. thisLink = snapshot.snapshotItem(n);
  1496.  
  1497. var spanElm = document.createElement("span");
  1498. spanElm.className = thisLink.className;
  1499. spanElm.innerHTML = thisLink.innerHTML;
  1500.  
  1501. if (Display_tooltip_info)
  1502. {
  1503. spanElm.href = thisLink.href;
  1504. switch (thisLink.className){
  1505. case "alive_link": spanElm.addEventListener("mouseover", displayTooltipInfo, false); break
  1506. case "adead_link": spanElm.addEventListener("mouseover", displayTooltipError, false); break;
  1507. case "unava_link": //reserved
  1508. default:
  1509. }
  1510. }
  1511. thisLink.parentNode.replaceChild(spanElm, thisLink);
  1512. }
  1513. }
  1514.  
  1515. function processContainers()
  1516. {
  1517. var redirectorTypes = { "HTTP_302": 0,
  1518. "INNER_LINK": 1,
  1519. "THELOO_KATT_IT": 2,
  1520. "CING_BE": 3,
  1521. "ADF_LY": 4};
  1522. var cMultiloadTotal = 0;
  1523. var cMultiloadProcessed = 0;
  1524.  
  1525. var cMirrorcreatorComTotal = 0;
  1526. var cMirrorcreatorComProcessed = 0;
  1527.  
  1528. var hostRestrictionRegex = "";
  1529. var multiloadComRestriction = "";
  1530. var multiloadComRestrictionRegex;
  1531.  
  1532. //
  1533. //HANDLING REDIRECTORS START
  1534. //
  1535.  
  1536. var redirectors = new Array();
  1537. initRedirectors();
  1538.  
  1539. var redirectorsCount = redirectors.length;
  1540.  
  1541. if (redirectorsCount > 0)
  1542. {
  1543. var allRedirectorsRegex = "";
  1544.  
  1545. //linkify redirector links
  1546. for(var redirIdx = 0; redirIdx < redirectorsCount; redirIdx++)
  1547. {
  1548. allRedirectorsRegex += redirectors[redirIdx].linkRegex + "|";
  1549. }
  1550. allRedirectorsRegex = allRedirectorsRegex.replace(/\|$/, "");
  1551. linkify(allRedirectorsRegex);
  1552. //
  1553. //process redirector links
  1554. for(var redirIdx = 0; redirIdx < redirectorsCount; redirIdx++)
  1555. {
  1556. var redirectorsSnapshot = document.evaluate(redirectors[redirIdx].xpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  1557. redirectors[redirIdx].cTotal = redirectorsSnapshot.snapshotLength;
  1558.  
  1559. cLinksTotal += redirectors[redirIdx].cTotal;
  1560. var linkIdx = redirectors[redirIdx].cTotal;
  1561.  
  1562. while(linkIdx--)
  1563. {
  1564. switch(redirectors[redirIdx].type)
  1565. {
  1566. case redirectorTypes.HTTP_302: processRedirectorLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1567. case redirectorTypes.INNER_LINK: processRedirectorLinkEx(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1568. case redirectorTypes.THELOO_KATT_IT: processThelooKattItLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1569. case redirectorTypes.CING_BE: processCingBeLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1570. case redirectorTypes.ADF_LY: processAdfLyLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1571. default:
  1572. }
  1573. }
  1574. }
  1575. //
  1576. }
  1577.  
  1578. //HTTP_302
  1579. function processRedirectorLink(link, redirectorId)
  1580. {
  1581. link.className = 'container_link';
  1582.  
  1583. GM_xmlhttpRequest({
  1584. method: 'HEAD',
  1585. url: link.href,
  1586. headers: {
  1587. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1588. 'Accept': 'text/xml',
  1589. 'Referer': ""
  1590. },
  1591. onload: function(result) {
  1592. if (result.finalUrl.replace("https", "http") == link.href) // service hasn't redirected anywhere
  1593. {
  1594. processRedirectorLink(link, redirectorId);
  1595. }
  1596. else
  1597. {
  1598. redirectors[redirectorId].cProcessed++;
  1599. link.href = result.finalUrl;
  1600. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  1601. checkLinks('container_link');
  1602. }
  1603. },
  1604. onerror: function(result) { //probably caused by unresponsive filehosting
  1605. redirectors[redirectorId].cProcessed++;
  1606. link.className = 'unava_link';
  1607. cLinksProcessed++;
  1608. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  1609. checkLinks('container_link');
  1610. }
  1611. });
  1612. }
  1613. //INNER_LINK
  1614. function processRedirectorLinkEx(link, redirectorId)
  1615. {
  1616. link.className = 'container_link';
  1617. GM_xmlhttpRequest({
  1618. method: 'GET',
  1619. url: link.href,
  1620. headers: {
  1621. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1622. 'Accept': 'text/xml',
  1623. 'Referer': ""
  1624. },
  1625. onload: function(result) {
  1626. link.href = result.responseText.match(redirectors[redirectorId].innerLinkRegex)[1];
  1627. redirectors[redirectorId].cProcessed++;
  1628. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  1629. checkLinks('container_link');
  1630. }
  1631. });
  1632. }
  1633. //theloo.katt.it (wrapped safelinking.net)
  1634. function processThelooKattItLink(link, redirectorId)
  1635. {
  1636. link.className = 'container_link';
  1637. GM_xmlhttpRequest({
  1638. method: 'GET',
  1639. url: link.href,
  1640. headers: {
  1641. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1642. 'Accept': 'text/xml',
  1643. 'Referer': ""
  1644. },
  1645. onload: function(result) {
  1646. link.href = result.responseText.match(redirectors[redirectorId].innerLinkRegex)[1];
  1647. redirectors[redirectorId].cProcessed++;
  1648. //the inner links are safelinking.net links, so lets proceed with it
  1649. if (GM_getValue("Check_safelinking_dot_net_links", false))
  1650. {
  1651. processRedirectorLink(link, 0);
  1652. }
  1653. }
  1654. });
  1655. }
  1656. //adf.ly (adf.ly/go innerLink, locking mechanism)
  1657. function processAdfLyLink(link, redirectorId)
  1658. {
  1659. link.className = 'container_link';
  1660. GM_xmlhttpRequest({
  1661. method: 'GET',
  1662. url: link.href,
  1663. headers: {
  1664. 'User-agent': 'Mozilla/4.0',
  1665. 'Accept': 'text/xml',
  1666. 'Referer': ""
  1667. },
  1668. onload: function(result) {
  1669. if (result.finalUrl.match('/locked/'))
  1670. {
  1671. var delay = result.responseText.match(/countdown">(\d+)</)[1];
  1672. // GM_log(result.finalUrl + 'is locked. Repeating the request in ' + delay + 's.');
  1673. // setTimeout(function(){processAdfLyLink(link, redirectorId);}, delay * 1000);
  1674. }
  1675. else
  1676. {
  1677. // GM_log('Processing... ' + link.href);
  1678. // GM_log('Found...' + result.responseText.match(/\/go\/(\w+\/\w+)/)[1]);
  1679. var directLink = 'http://adf.ly' + result.responseText.match(/(\/go\/\w+\/\w+)/)[1];
  1680. var logToken = result.responseText.match(/flashy_(\w+)/)[1];
  1681. var users = result.responseText.match(/user=\d+&user2=\d+/);
  1682. //confirm advert
  1683. GM_xmlhttpRequest(
  1684. {
  1685. method: 'POST',
  1686. url: 'http://adf.ly/l.php',
  1687. headers: {
  1688. 'User-agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20100101 Firefox/13.0',
  1689. 'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
  1690. 'Referer': link.href
  1691. },
  1692. data: users + '&lt=' + logToken,
  1693. onload: function(result) {
  1694. //retrieve final url from .../go/... link
  1695. GM_xmlhttpRequest({
  1696. method: 'GET',
  1697. url: directLink,
  1698. headers: {
  1699. 'User-agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20100101 Firefox/13.0',
  1700. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  1701. 'Referer': link.href
  1702. },
  1703. onload: function(result) {
  1704. link.href = result.finalUrl;
  1705. redirectors[redirectorId].cProcessed++;
  1706. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  1707. checkLinks('container_link');
  1708. }
  1709. });
  1710. }
  1711. });
  1712. }
  1713. }
  1714. });
  1715. function proceedOK()
  1716. {
  1717. }
  1718. }
  1719. //MULTILOAD.CZ START
  1720. if (GM_getValue("Check_multiload_dot_cz_links", false))
  1721. {
  1722. var mlRegex = 'multiload\\.cz\/stahnout\/\\d+\/';
  1723. var mlXpath = "//a[contains(@href,'http://www.multiload.cz/stahnout')]";
  1724.  
  1725. hostRestrictionRegex = 'Upload se nezdařil|limit exceeded|probíhá reupload|';
  1726.  
  1727. if (GM_getValue("Check_hellshare_dot_com_links", false))
  1728. hostRestrictionRegex += 'hellshare|';
  1729. if (GM_getValue("Check_share_dash_rapid_dot_com_links", false))
  1730. hostRestrictionRegex += 'share-rapid\\.com|';
  1731. if (GM_getValue("Check_quickshare_dot_cz_links", false))
  1732. hostRestrictionRegex += 'quickshare\\.cz|';
  1733. if (GM_getValue("Check_czshare_dot_com_links", false))
  1734. hostRestrictionRegex += 'czshare\\.com|';
  1735. if (GM_getValue("Check_uloz_dot_to_links", false))
  1736. hostRestrictionRegex += 'uloz\\.to|';
  1737. if (GM_getValue("Check_hellspy_dot_com_links", false))
  1738. hostRestrictionRegex += 'hellspy|';
  1739. if (GM_getValue("Check_multishare_dot_cz_links", false))
  1740. hostRestrictionRegex += 'multishare\\.cz|';
  1741.  
  1742. hostRestrictionRegex = hostRestrictionRegex.replace(/\|$/, "");
  1743.  
  1744. linkify(mlRegex);
  1745.  
  1746. var mlSnapshot = document.evaluate(mlXpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  1747. var mlCount = mlSnapshot.snapshotLength;
  1748.  
  1749. if (mlCount > 0)
  1750. {
  1751. cMultiloadTotal += mlCount;
  1752.  
  1753. mlIdx = mlCount - 1;
  1754. do
  1755. {
  1756. processMultiloadLink(mlSnapshot.snapshotItem(mlIdx));
  1757. }
  1758. while(mlIdx--)
  1759. }
  1760. }
  1761. //MULTILOAD.CZ END
  1762.  
  1763.  
  1764.  
  1765. function processMultiloadLink(mlLink)
  1766. {
  1767. GM_xmlhttpRequest({
  1768. method: 'GET',
  1769. url: mlLink.href,
  1770. headers: {
  1771. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1772. 'Accept': 'text/xml',
  1773. 'Referer': ""
  1774. },
  1775. onload: function(result) {
  1776. var res = result.responseText;
  1777.  
  1778. var innerBlockRegex = /<p class="manager-linky">(?:.|\s)+?<\/p>/g;
  1779. 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;
  1780. var innerLinkRegex = /((?:Upload se nezdařil.+|https?:\/\/(?:.|\s)+|Právě probíhá reupload, buďte trpěliví\.\.\.))</;
  1781. var mlRestrictionRegex = new RegExp(hostRestrictionRegex,"g"); //what links should be displayed
  1782.  
  1783. var blocks; // blocks of links
  1784. var blockIdx;
  1785.  
  1786. mlLink.className = '';
  1787.  
  1788. if (result.status == 503) //service temporarily unavailable, repeat request in one second
  1789. {
  1790. setTimeout(function(){ processMultiloadLink(mlLink); }, 1000);
  1791. return;
  1792. }
  1793.  
  1794. blocks = res.match(innerBlockRegex);
  1795.  
  1796. if (blocks == null) //no links found, cancel further processing
  1797. {
  1798. mlLink.parentNode.appendChild(document.createTextNode(' | Požadovaný soubor neexistuje.'));
  1799. cMultiloadProcessed++;
  1800. if (cMultiloadTotal <= cMultiloadProcessed)
  1801. {
  1802. startBulkCheck('container_link');
  1803. start('container_link');
  1804. }
  1805. return;
  1806. }
  1807.  
  1808. blockIdx = blocks.length;
  1809.  
  1810. if (Display_full_links_in_link_containers)
  1811. {
  1812. var ulElm = document.createElement('ul');
  1813. ulElm.className = 'container_list'; //CSS smaller font, padding, margin, square style
  1814.  
  1815. while(blockIdx--)
  1816. {
  1817. if (blocks[blockIdx].match(mlRestrictionRegex) == null)
  1818. {
  1819. continue;
  1820. }
  1821.  
  1822. var innerLinks = blocks[blockIdx].match(innerLinksRegex);
  1823.  
  1824. var linkIdx = innerLinks.length;
  1825. while (linkIdx--)
  1826. {
  1827. var innerLink = innerLinks[linkIdx].match(innerLinkRegex)[1];
  1828.  
  1829. var liElm = document.createElement('li');
  1830.  
  1831. if (innerLink.match(/Upload se nezdařil|limit exceeded|probíhá reupload/))
  1832. {
  1833. liElm.appendChild(document.createTextNode(innerLink));
  1834. }
  1835. else
  1836. {
  1837. var aElm = document.createElement('a');
  1838. aElm.innerHTML = innerLink;
  1839. aElm.href = innerLink;
  1840. aElm.className = 'container_link';
  1841.  
  1842. liElm.appendChild(aElm);
  1843. }
  1844.  
  1845. ulElm.appendChild(liElm);
  1846. cLinksTotal++;
  1847. }
  1848. }
  1849.  
  1850. mlLink.parentNode.appendChild(ulElm);
  1851. }
  1852. else //compact view
  1853. {
  1854. mlLink.parentNode.appendChild(document.createTextNode("|"));
  1855.  
  1856. while(blockIdx--)
  1857. {
  1858. if (blocks[blockIdx].match(mlRestrictionRegex) == null)
  1859. {
  1860. continue;
  1861. }
  1862.  
  1863. var innerLinks = blocks[blockIdx].match(innerLinksRegex);
  1864.  
  1865. var linkIdx = innerLinks.length;
  1866. while (linkIdx--)
  1867. {
  1868. var innerLink = innerLinks[linkIdx].match(innerLinkRegex)[1];
  1869.  
  1870. if (innerLink.match(/Upload se nezdařil|limit exceeded|probíhá reupload/))
  1871. {
  1872. mlLink.parentNode.appendChild(document.createTextNode("----"));
  1873. }
  1874. else
  1875. {
  1876. var aElm = document.createElement('a');
  1877.  
  1878. var hostName = innerLink.match(/quickshare|hellshare|uloz\.to|multishare|hellspy|share\-rapid|czshare/);
  1879.  
  1880. //abbreviate host name
  1881. switch(hostName + ""){
  1882.  
  1883. case 'quickshare': aElm.innerHTML = 'QS'; break;
  1884. case 'hellshare': aElm.innerHTML = 'HS'; break;
  1885. case 'uloz.to': aElm.innerHTML = 'UT'; break;
  1886. case 'multishare': aElm.innerHTML = 'MS'; break;
  1887. case 'hellspy': aElm.innerHTML = 'hs'; break;
  1888. case 'share-rapid': aElm.innerHTML = 'SR'; break;
  1889. case 'czshare': aElm.innerHTML = 'CS'; break;
  1890. default: aElm.innerHTML = 'xx';
  1891.  
  1892. }
  1893.  
  1894. aElm.href = innerLink;
  1895. aElm.className = 'container_link';
  1896.  
  1897. mlLink.parentNode.appendChild(aElm);
  1898. cLinksTotal++;
  1899. }
  1900. }
  1901.  
  1902. mlLink.parentNode.appendChild(document.createTextNode("|")); //blocks delimiter
  1903.  
  1904. }
  1905. }
  1906.  
  1907. cMultiloadProcessed++;
  1908. if (cMultiloadTotal == cMultiloadProcessed) //start check when all ml links have been processed
  1909. {
  1910. if (Do_not_linkify_DL_links)
  1911. {
  1912. delinkifySnapshot(mlSnapshot);
  1913. }
  1914. startBulkCheck('container_link');
  1915. start('container_link');
  1916. }
  1917. }
  1918. });
  1919. }
  1920.  
  1921.  
  1922. if (GM_getValue("Check_mirrorcreator_dot_com_links", false))
  1923. {
  1924. var mcRegex = 'mirrorcreator\\.com/files/(\\w+)';
  1925. var mcXpath = "//a[contains(@href,'mirrorcreator.com/files')]";
  1926. var mcShortHostNames =
  1927. '?? 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';
  1928. // 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
  1929. //?????? depositfiles sendspace load.to ul.to storage.to uploadbox x7.to fileserve ?????? duckload filehook filepost jumbofiles glumbouploads
  1930. // zshare ?????? 2shared uploading ugotfile extabit oron eyvx uploadstation putlocker
  1931. // megaupload badongo megashare gamefront ifile ?????? letitbit ?????? ?????? filejungle megashares
  1932. // easy-share ?????? netload zippyshare ?????? filesonic turbobit enterupload ?????? filekeen wupload crocko fileflyer
  1933.  
  1934. linkify(mcRegex);
  1935.  
  1936. var mcSnapshot = document.evaluate(mcXpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  1937. var mcCount = mcSnapshot.snapshotLength;
  1938.  
  1939. cMirrorcreatorComTotal = mcCount;
  1940.  
  1941. if (mcCount > 0)
  1942. {
  1943. mcShortHostNames = mcShortHostNames.split(' ');
  1944. mcIdx = mcCount;
  1945. while(mcIdx--)
  1946. processMirrorcreatorLink(mcSnapshot.snapshotItem(mcIdx));
  1947. }
  1948.  
  1949. }
  1950. //MIRRORCREATOR.CZ END
  1951.  
  1952.  
  1953. //mirrorcreator.com checking works like this:
  1954. //The base URL is http://www.mirrorcreator.com/files/XXXXXXXX/filename_links
  1955. //the actual list of mirrors is at http://www.mirrorcreator.com/status.php?uid=XXXXXXXX
  1956. //the list contains links in the form of (http://www.mirrorcreator.com)/redirect/XXXXXXXX/1
  1957. //these redirector links are extracted with mcLinkBlockRegex and the pages loaded
  1958. //they contain the actual filehost links, which are extracted with mcHostRegex and displayed in a container list
  1959. function processMirrorcreatorLink(mcLink)
  1960. {
  1961. var mcURL = mcLink.href.match(mcRegex);
  1962. if(!mcURL || !mcURL[1]) return;
  1963. mcURL = 'http://www.mirrorcreator.com/status.php?uid=' + mcURL[1]; //link correction
  1964. GM_xmlhttpRequest({
  1965. method: 'GET',
  1966. url: mcURL,
  1967. headers: {
  1968. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1969. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*'+'/*;q=0.8',
  1970. 'Referer': ""
  1971. },
  1972. onload: function(mcLinkResult) {
  1973. var mcLinkRes = mcLinkResult.responseText;
  1974.  
  1975. var mcLinkBlockRegex = /(\/redirect\/\w+\/(\d+))/gi;
  1976. var mcHostRegex = /<div id="redirectlink">.*?<a href="([^"]+)"/;
  1977.  
  1978. var mcRedirectors;
  1979. var mcHostURLs = [], mcRedirectorIDs = [], mcHostsFound = 0, mcHostsRetrieved = 0, mcHostsToProcess = 0;
  1980. var m = mcLinkRes.match(mcLinkBlockRegex);
  1981. if (m)
  1982. mcHostsFound = m.length;
  1983. else
  1984. { //no files inside container
  1985. processMirrorcreatorFoundHosts(mcLink, []);
  1986. return;
  1987. }
  1988.  
  1989. var mcRedirectorURL, idx, timedOut = false;
  1990.  
  1991. var gmxhrFunc = function(mcRedirectorURL){ //Tampermonkey doesn't know neither this.url or result.finalUrl
  1992. GM_xmlhttpRequest({
  1993. method: 'GET',
  1994. url: mcRedirectorURL,
  1995. headers: {
  1996. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1997. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*'+'/*;q=0.8',
  1998. 'Referer': ""
  1999. },
  2000. onload: function(mcHostResult) {
  2001. if (timedOut) return; //too late, the list is already displayed
  2002. var mcHostRes = mcHostResult.responseText;
  2003. var mcHost = mcHostRes.match(mcHostRegex);
  2004. idx = mcHostURLs.indexOf(mcRedirectorURL);
  2005. if (mcHost && idx!=-1)
  2006. {
  2007. mcHostURLs[idx] = mcHost[1].replace(/^\s+|\s+$/g, '');
  2008. mcHostsRetrieved++;
  2009. mcHostsToProcess++;
  2010. if (mcHostsFound == mcHostsRetrieved) //this is the last one!
  2011. {
  2012. processMirrorcreatorFoundHosts(mcLink, mcHostURLs, mcRedirectorIDs);
  2013. mcHostsToProcess = 0;
  2014. }
  2015. }
  2016. } //end of onload: function
  2017. }); //end of GM_xmlhttpRequest call
  2018. };//end of var gmxhrFunc
  2019.  
  2020. while (mcRedirectors = mcLinkBlockRegex.exec(mcLinkRes))
  2021. { //load individual redirector pages
  2022. mcRedirectorURL = 'http://www.mirrorcreator.com' + mcRedirectors[1];
  2023. mcHostURLs.push(mcRedirectorURL);
  2024. mcRedirectorIDs.push(mcRedirectors[2]);
  2025. gmxhrFunc(mcRedirectorURL);
  2026. } //end of while block
  2027.  
  2028. setTimeout(function(){ //in case the last page fails to load and call the function
  2029. timedOut = true;
  2030. if (mcHostsToProcess)
  2031. processMirrorcreatorFoundHosts(mcLink, mcHostURLs);
  2032. }, 60000);
  2033.  
  2034. } //end of onload function
  2035. }); //end of GM_xmlhttpRequest call
  2036. } //end of function processMirrorcreatorLink
  2037.  
  2038.  
  2039. function processMirrorcreatorFoundHosts(mcLink, mcHostURLs, mcRedirectorIDs)
  2040. {
  2041. var aEl, liEl, docFrag;
  2042. var hostName, mcRedirectorID, trimFilename = false;
  2043. var i = mcHostURLs.length;
  2044. if (i == 0)
  2045. {
  2046. trimFilename = true;
  2047. mcLink.parentNode.insertBefore(document.createTextNode(' | No files inside container'), mcLink.nextSibling);
  2048. }
  2049. else
  2050. {
  2051. if (Display_full_links_in_link_containers)
  2052. { //full view
  2053. var wrapperEl = document.createElement('span');
  2054. wrapperEl.style.display = 'block';
  2055. var ulistEl = document.createElement('ul');
  2056. ulistEl.className = 'container_list';
  2057. while (i--)
  2058. {
  2059. liEl = document.createElement('li');
  2060. aEl = document.createElement('a');
  2061. aEl.appendChild(document.createTextNode(mcHostURLs[i]));
  2062. aEl.href = mcHostURLs[i];
  2063. aEl.className = 'container_link';
  2064. liEl.appendChild(aEl);
  2065. ulistEl.appendChild(liEl);
  2066. }
  2067. wrapperEl.appendChild(ulistEl);
  2068. mcLink.parentNode.replaceChild(wrapperEl, mcLink);
  2069. wrapperEl.insertBefore(mcLink, wrapperEl.firstChild);
  2070. }
  2071. else
  2072. { //compact view
  2073. trimFilename = true;
  2074. docFrag = document.createDocumentFragment();
  2075. docFrag.appendChild(document.createTextNode(' |'));
  2076. while (i--)
  2077. {
  2078. mcRedirectorID = mcRedirectorIDs[i];
  2079. hostName = mcHostURLs[i];
  2080. if (mcRedirectorID > mcShortHostNames.length-1 || mcShortHostNames[mcRedirectorID] == '??')
  2081. hostName = hostName.replace(/https?:\/\/(?:www\.)?([-0-9a-z]+(?:\.[-0-9a-z]+)?)\.[a-z]+\/.*/i, '$1').toUpperCase();
  2082. else
  2083. hostName = mcShortHostNames[mcRedirectorID];
  2084. aEl = document.createElement('a');
  2085. aEl.href = mcHostURLs[i];
  2086. aEl.className = 'container_link';
  2087. aEl.appendChild(document.createTextNode(hostName));
  2088. docFrag.appendChild(aEl);
  2089. docFrag.appendChild(document.createTextNode('|'));
  2090. }
  2091. mcLink.parentNode.insertBefore(docFrag, mcLink.nextSibling);
  2092. } //end of else block
  2093. } //end of else block
  2094. mcLink.className = '';
  2095. if (trimFilename)
  2096. mcLink.firstChild.nodeValue = mcLink.firstChild.nodeValue.replace(/(https?:\/\/[^\/]+\/files\/\w+\/).+/, '$1...');
  2097. cMirrorcreatorComProcessed++;
  2098. if (cMirrorcreatorComProcessed == cMirrorcreatorComTotal) //start check when all mc links have been processed
  2099. {
  2100. if (Do_not_linkify_DL_links)
  2101. delinkifySnapshot(mcSnapshot);
  2102. startBulkCheck('container_link');
  2103. start('container_link');
  2104. }
  2105. } //end of function processMirrorcreatorFoundHosts
  2106.  
  2107. containers_processed = true;
  2108.  
  2109.  
  2110. function initRedirectors()
  2111. {
  2112. function addRedirector(linkRegex, xpathEx, redirType, innerLinkRegex)
  2113. {
  2114. var redirector = new Object();
  2115. redirector.linkRegex = linkRegex;
  2116. redirector.xpath = xpathEx; //xpath expression
  2117. redirector.cProcessed = 0; //processed links count
  2118. redirector.cTotal = 0; //total links count
  2119. redirector.type = redirType; //redirectorTypes enum
  2120. redirector.innerLinkRegex = innerLinkRegex; //innerLink, null if unused
  2121. redirectors.push(redirector);
  2122. }
  2123. if (GM_getValue("Check_safelinking_dot_net_links", false))
  2124. {
  2125. addRedirector(
  2126. 'safelinking\\.net\/d\/\\w+',
  2127. "//a[contains(@href,'safelinking.net/d/')]",
  2128. redirectorTypes.HTTP_302,
  2129. null);
  2130. }
  2131. if (GM_getValue("Check_linksafe_dot_me_links", false))
  2132. {
  2133. addRedirector(
  2134. 'linksafe\\.me\/d\/\\w+',
  2135. "//a[contains(@href,'linksafe.me/d/')]",
  2136. redirectorTypes.HTTP_302,
  2137. null);
  2138. }
  2139. if (GM_getValue("Check_linkto_dot_net_links", false))
  2140. {
  2141. addRedirector(
  2142. 'linkto\\.net\/\\?\\w+\\.\\d+',
  2143. "//a[contains(@href,'linkto.net/?')]",
  2144. redirectorTypes.INNER_LINK,
  2145. /<iframe id="iframe" name="iframe" src="(.+?)\s*" frameborder="0"/);
  2146. }
  2147. if (GM_getValue("Check_theloo_dot_katt_dot_it_links", false))
  2148. {
  2149. addRedirector(
  2150. '(?:the)?loo\\.katt\\.it\/\\w+',
  2151. "//a[contains(@href,'loo.katt.it/')]",
  2152. redirectorTypes.THELOO_KATT_IT,
  2153. /Proceed to URL - <a href="(.+?)">/);
  2154. }
  2155. if (GM_getValue("Check_madlink_dot_sk_links", false))
  2156. {
  2157. addRedirector(
  2158. 'madlink\\.sk\/\\w+',
  2159. "//a[contains(@href,'madlink.sk/')]",
  2160. redirectorTypes.INNER_LINK,
  2161. /name="url" value="(.+?)\s*"\/>/);
  2162. }
  2163. if (GM_getValue("Check_adf_dot_ly_links", false))
  2164. {
  2165. addRedirector(
  2166. '(?:adf\\.ly|[u9]\\.bb|[qj]\\.gs)\/\\w+',
  2167. "//a[contains(@href,'adf.ly/') (@href,'u.bb/') or contains(@href,'9.bb/') or contains(@href,'q.gs/') or contains(@href,'j.gs/')]",
  2168. redirectorTypes.ADF_LY,
  2169. null);
  2170. }
  2171. if (GM_getValue("Check_redi_dot_re_links", false))
  2172. {
  2173. addRedirector(
  2174. 'redi\\.re\/\\w+',
  2175. "//a[contains(@href,'redi.re/')]",
  2176. redirectorTypes.HTTP_302,
  2177. null);
  2178. }
  2179. if (GM_getValue("Check_bit_dot_ly_links", false))
  2180. {
  2181. addRedirector(
  2182. 'bit\\.ly\/\\w+',
  2183. "//a[contains(@href,'bit.ly/')]",
  2184. redirectorTypes.HTTP_302,
  2185. null);
  2186. }
  2187. }
  2188.  
  2189. }
  2190.  
  2191. var bulkHosts = new Array();
  2192. var bulkHostNames = new Array();
  2193. function initBulkCheck()
  2194. {
  2195. /////////////////////////////
  2196. // Inits filehost object
  2197. /////////////////////////////
  2198. // params :
  2199. // hostName -- [string] host name (multiple domains separated with coma)
  2200. // linkRegex -- [string] link regex
  2201. // xpath -- [string] xpath expression to detect the link objects with evaluate
  2202. // blockSize -- [integer] max. number of links sent in one request, 50 if null
  2203. // corrMatch -- [regex] link correction regex (match), applied prior to corrRepl
  2204. // corrReplWhat -- [regex] link correction regex (replace)
  2205. // corrReplWith -- [string]
  2206. // splitSeparator -- [string] POSTDATA links separator, "\r\n" if null
  2207. //
  2208. // apiUrl -- [string] web linkchecker or API URL
  2209. // postData -- [string] POSTDATA of xmlhttprequest
  2210. // resLinkRegex -- [regex]
  2211. // resLiveRegex -- [regex] matches substrings containing live links in the request response
  2212. // resDeadRegex -- [regex] matches substrings containing dead links in the request response
  2213. // resUnavaRegex -- [regex] matches substrings containing unava links in the request response
  2214. // func -- [function] bulkcheck handler, genBulkCheck if null
  2215. //
  2216. //////////////////////////////
  2217. function addHost(hostName, linkRegex, xpath, blockSize, corrMatch, corrReplWhat, corrReplWith, splitSeparator,
  2218. apiUrl, postData, resLinkRegex, resLiveRegex, resDeadRegex, resUnavaRegex, func)
  2219. {
  2220. var fileHost = new Object();
  2221.  
  2222. fileHost.linkRegex = linkRegex;
  2223. fileHost.linkRegexObject = new RegExp(linkRegex, "");
  2224. fileHost.xpath = xpath;
  2225. fileHost.cFound = 0; //found links counter
  2226. fileHost.links = new Array(); //found links
  2227. if (blockSize == null)
  2228. {
  2229. fileHost.blockSize = 50;
  2230. }
  2231. else
  2232. {
  2233. fileHost.blockSize = blockSize;
  2234. }
  2235. fileHost.corrMatch = corrMatch;
  2236. fileHost.corrReplWhat = corrReplWhat;
  2237. fileHost.corrReplWith = corrReplWith;
  2238. if (splitSeparator == null)
  2239. {
  2240. fileHost.splitSeparator = "\r\n";
  2241. }
  2242. else
  2243. {
  2244. fileHost.splitSeparator = splitSeparator;
  2245. }
  2246. fileHost.apiUrl = apiUrl;
  2247. fileHost.postData = postData;
  2248. fileHost.resLinkRegex = resLinkRegex;
  2249. fileHost.resLiveRegex = resLiveRegex;
  2250. fileHost.resDeadRegex = resDeadRegex;
  2251. fileHost.resUnavaRegex = resUnavaRegex;
  2252. if (func == null)
  2253. {
  2254. fileHost.func = genBulkCheck;
  2255. }
  2256. else
  2257. {
  2258. fileHost.func = func;
  2259. }
  2260. bulkHosts.push(fileHost);
  2261. var names = hostName.split(',');
  2262. var i = names.length;
  2263. while(i--)
  2264. {
  2265. bulkHostNames[names[i]] = fileHost;
  2266. }
  2267. }
  2268. var genType1 = [
  2269. "rodfile.com", "downloadani.me", //"migahost.com",
  2270. "rarefile.net",
  2271. "filesabc.com",
  2272. "180upload.com", "verzend.be",
  2273. // "movreel.com",
  2274. "4up.me",
  2275. "file4safe.com", "filemac.com", "4upfiles.com",
  2276. "idup.in", "novafile.com", "longfiles.com",
  2277. "bitupload.com",
  2278. "uploadbaz.com"
  2279. ];
  2280. var genType2 = [ "queenshare.com",
  2281. "hulkload.com",
  2282. "amonshare.com", //"edoc.com",
  2283. ];
  2284. //xfilesharing 1.0
  2285. function addGenericType1()
  2286. {
  2287. var i = genType1.length;
  2288. while(i--)
  2289. {
  2290. if (GM_getValue("Check_" + genType1[i].replace(/\./g, "_dot_").replace(/-/g, "_dash_") + "_links", false))
  2291. {
  2292. var regexSafe = genType1[i].replace(/\./g, "\\.").replace(/-/g, "\\-");
  2293. addHost(
  2294. genType1[i].match(/[\w-]+/)[0], //hostname
  2295. regexSafe + "\/\\w+", //linkregex
  2296. "//a[contains(@href,'" + genType1[i] + "/')]", //xpath
  2297. null, //blocksize
  2298. new RegExp("(http:\/\/(?:|www\\.)" + regexSafe + "\/\\w+)",""),//, //corrmatch
  2299. null, //corrreplwhat
  2300. null, //corrreplwith
  2301. null, //separator
  2302. "http://" + genType1[i] + "/checkfiles.html", //api url
  2303. "op=checkfiles&process=Check+URLs&list=", //postdata
  2304. new RegExp("(" + regexSafe + "\/\\w+)",""), //linkregex
  2305. new RegExp("green'>http:\/\/(?:|www\.)" + regexSafe + "\/\\w+","g"), //liveregex
  2306. new RegExp("red'>http:\/\/(?:|www\.)" + regexSafe + "\/\\w+","g"), //deadregex
  2307. new RegExp("orange'>http:\/\/(?:|www\.)" + regexSafe + "\/\\w+","g"), //unavaregex
  2308. null //function delegate
  2309. )
  2310. }
  2311. }
  2312. }
  2313. //xfilesharing 2.0
  2314. function addGenericType2()
  2315. {
  2316. var i = genType2.length;
  2317. while(i--)
  2318. {
  2319. if (GM_getValue("Check_" + genType2[i].replace(/\./g, "_dot_").replace(/-/g, "_dash_") + "_links", false))
  2320. {
  2321. var regexSafe = genType2[i].replace(/\./g, "\\.").replace(/-/g, "\\-");
  2322. addHost(
  2323. genType2[i].match(/[\w-]+/)[0], //hostname
  2324. regexSafe + "\/\\w+", //linkregex
  2325. "//a[contains(@href,'" + genType2[i] + "/')]", //xpath
  2326. null, //blocksize
  2327. new RegExp("(http:\/\/(?:|www\\.)" + regexSafe + "\/\\w+)",""),//, //corrmatch
  2328. null, //corrreplwhat
  2329. null, //corrreplwith
  2330. null, //separator
  2331. "http://www." + genType2[i] + "/?op=checkfiles", //api url
  2332. "op=checkfiles&process=Check+URLs&list=", //postdata
  2333. new RegExp("(" + regexSafe + "\/\\w+)",""), //linkregex
  2334. new RegExp(regexSafe + "\/\\w+.*?<\/td>\\s*<td style=\"color:green;\">","g"), //liveregex
  2335. new RegExp(regexSafe + "\/\\w+.*?<\/td>\\s*<td style=\"color:red;\">","g"), //deadregex
  2336. new RegExp(regexSafe + "\/\\w+.*?<\/td>\\s*<td style=\"color:orange;\">","g"), //unavaregex
  2337. null //function delegate
  2338. )
  2339. }
  2340. }
  2341. }
  2342. // TEMPLATE
  2343. // if (GM_getValue("Check__dot_com_links", false))
  2344. // {
  2345. // addHost(
  2346. // "", //hostname
  2347. // "", //linkregex
  2348. // "//a[contains(@href,'.com/')]", //xpath
  2349. // null, //blocksize
  2350. // null, //corrmatch
  2351. // null, //corrreplwhat
  2352. // null, //corrreplwith
  2353. // null, //separator
  2354. // "", //api url
  2355. // "", //postdata
  2356. // /()/, //linkregex
  2357. // //liveregex
  2358. // //deadregex
  2359. // //unavaregex
  2360. // null //function delegate
  2361. // )
  2362. // }
  2363. addGenericType1();
  2364. addGenericType2();
  2365.  
  2366. if (GM_getValue("Check_myvdrive_dot_com_links", false))
  2367. {
  2368. addHost(
  2369. "myvdrive,fileserving", //hostname
  2370. "(?:fileserving|myvdrive)\\.com\/files\/[\\w-]+", //linkregex
  2371. "//a[contains(@href,'fileserving.com/files') or contains(@href,'myvdrive.com/files')]", //xpath
  2372. null, //blocksize
  2373. null, //corrmatch
  2374. null, //corrreplwhat
  2375. null, //corrreplwith
  2376. null, //separator
  2377. "http://www.myvdrive.com/Public/linkchecker#", //api url
  2378. "links=", //postdata
  2379. /(?:fileserving|myvdrive)\.com\/(files\/\w+)/, //linkregex
  2380. /icon_file_check_valid"><\/span>\s*http:\/\/www\.(?:fileserving|myvdrive)\.com\/files\/[\w-]+/g, //liveregex
  2381. /icon_file_check_(?:removed|notvalid)"><\/span>\s*http:\/\/www\.(?:fileserving|myvdrive)\.com\/files\/[\w-]+/g, //deadregex
  2382. null, //unavaregex
  2383. null //function delegate
  2384. )
  2385. }
  2386. if (GM_getValue("Check_hackerbox_dot_org_links", false))
  2387. {
  2388. addHost(
  2389. "hackerbox", //hostname
  2390. "host\\.hackerbox\\.org\/\\w+", //linkregex
  2391. "//a[contains(@href,'host.hackerbox.org/')]", //xpath
  2392. null, //blocksize
  2393. /(http:\/\/host\.hackerbox\.org\/\w+)/, //corrmatch
  2394. null, //corrreplwhat
  2395. null, //corrreplwith
  2396. null, //separator
  2397. "http://host.hackerbox.org/checkfiles.html", //api url
  2398. "op=checkfiles&process=Check+URLs&list=", //postdata
  2399. /(host\.hackerbox\.org\/\w+)/, //linkregex
  2400. /green'>http:\/\/host\.hackerbox\.org\/\w+/g, //liveregex
  2401. /red'>http:\/\/host\.hackerbox\.org\/\w+/g, //deadregex
  2402. /orange'>http:\/\/host\.hackerbox\.org\/\w+/g, //unavaregex
  2403. null //function delegate
  2404. )
  2405. }
  2406. if (GM_getValue("Check_hellshare_dot_com_links", false))
  2407. {
  2408. addHost(
  2409. "hellshare", //hostname
  2410. "(?:|download\\.(?:cz\\.|en\\.|sk\\.|)|www\\.)hellshare\\.(?:com|sk|cz|pl|hu|COM|SK|CZ|PL|HU)\/[\\w-\\.]+\/(?:[\\w-\\.]+\/|)\\d{5,}", //linkregex
  2411. "//a[contains(@href,'hellshare.')]", //xpath
  2412. 48, //blocksize
  2413. null, //corrmatch
  2414. null, //corrreplwhat
  2415. null, //corrreplwith
  2416. null, //separator
  2417. null, //api url
  2418. null, //postdata
  2419. null, //linkregex
  2420. null, //liveregex
  2421. null, //deadregex
  2422. null, //unavaregex
  2423. hellshareBulkCheck //function delegate
  2424. )
  2425. }
  2426. if (GM_getValue("Check_ncrypt_dot_in_links", false))
  2427. {
  2428. addHost(
  2429. "ncrypt", //hostname
  2430. "ncrypt\\.in\/folder\\-\\w+", //linkregex
  2431. "//a[contains(@href,'ncrypt.in/folder')]", //xpath
  2432. 100000, //blocksize
  2433. null, //corrmatch
  2434. null, //corrreplwhat
  2435. null, //corrreplwith
  2436. null, //separator
  2437. null,
  2438. null,
  2439. null,
  2440. null,
  2441. null,
  2442. null,
  2443. ncryptBulkCheck //function delegate
  2444. )
  2445. }
  2446. if (GM_getValue("Check_geupload_dot_com_links", false))
  2447. {
  2448. addHost(
  2449. "geupload,lenfile", //hostname
  2450. "(?:geupload\\.com|lenfile\\.com)\/\\w+", //linkregex
  2451. "//a[contains(@href,'geupload.com/') or contains(@href,'lenfile.com/')]", //xpath
  2452. null, //blocksize
  2453. null, //corrmatch
  2454. null, //corrreplwhat
  2455. null, //corrreplwith
  2456. "\n", //separator
  2457. 'http://geupload.com/?op=checkfiles',
  2458. 'op=checkfiles&process=Check+URLs&list=',
  2459. />http:\/\/(?:geupload|lenfile)\.com\/(\w+)/,
  2460. />http:\/\/(?:geupload|lenfile)\.com\/\w+(?:[^>]+>)<td style=\"color\:green/g,
  2461. />http:\/\/(?:geupload|lenfile)\.com\/\w+(?:[^>]+>)<td style=\"color\:red/g,
  2462. null,
  2463. null
  2464. )
  2465. }
  2466. if (GM_getValue("Check_uploadrocket_dot_net_links", false))
  2467. {
  2468. addHost(
  2469. "uploadrocket", //hostname
  2470. "(?:uploadrocket\\.net)\/\\w+", //linkregex
  2471. "//a[contains(@href,'uploadrocket.net/')]", //xpath
  2472. null, //blocksize
  2473. null, //corrmatch
  2474. null, //corrreplwhat
  2475. null, //corrreplwith
  2476. "\n", //separator
  2477. 'http://uploadrocket.net/?op=checkfiles',
  2478. 'op=checkfiles&process=Check+URLs&list=',
  2479. /uploadrocket.net\/(\w+)/,
  2480. />http:\/\/uploadrocket.net\/\w+(?:[^>]+>)<td style="color:green/g,
  2481. />http:\/\/uploadrocket.net\/\w+(?:[^>]+>)<td style="color:red/g,
  2482. null,
  2483. null //function delegate
  2484. )
  2485. }
  2486. if (GM_getValue("Check_k2s_dot_cc_links", false))
  2487. {
  2488. addHost(
  2489. "k2s,keep2s,keep2share",
  2490. "(?:(?:k2s\\.cc)|(?:keep2s\\.cc)|(?:keep2share\\.(?:cc|com)))\/file\/\\w+",
  2491. "//a[contains(@href,'k2s.cc/file/') or contains(@href,'keep2s.cc/file/') or contains(@href,'keep2share.cc/file/') or contains(@href,'keep2share.com/file/')]",
  2492. 100000, //blocksize
  2493. null, //corrmatch
  2494. null, //corrreplwhat
  2495. null, //corrreplwith
  2496. null, //separator
  2497. null,
  2498. null,
  2499. null,
  2500. null,
  2501. null,
  2502. null,
  2503. k2sBulkCheck //function delegate
  2504. )
  2505. }
  2506. if (GM_getValue("Check_fboom_dot_me_links", false))
  2507. {
  2508. addHost(
  2509. "fboom,fileboom",
  2510. "(?:(?:fboom\\.me)|(?:fileboom\\.me))\/file\/\\w+",
  2511. "//a[contains(@href,'fboom.me/file/') or contains(@href,'fileboom.me/file/')]",
  2512. 100000, //blocksize
  2513. null, //corrmatch
  2514. null, //corrreplwhat
  2515. null, //corrreplwith
  2516. null, //separator
  2517. null,
  2518. null,
  2519. null,
  2520. null,
  2521. null,
  2522. null,
  2523. fboomBulkCheck //function delegate
  2524. )
  2525. }
  2526. if (GM_getValue("Check_1fichier_dot_com_links", false))
  2527. {
  2528. addHost(
  2529. "1fichier,dl4free",
  2530. "(?:\\w{10}\\.(?:1fichier|dl4free)\\.com\/)|(?:(?:1fichier|dl4free)\\.com\/\\?\\w{10})|(?:www\\.)?\\w{6,}\\.1fichier\\.com",
  2531. "//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/?')]",
  2532. 100000, //blocksize
  2533. null, //corrmatch
  2534. null, //corrreplwhat
  2535. null, //corrreplwith
  2536. null, //separator
  2537. null,
  2538. null,
  2539. null,
  2540. null,
  2541. null,
  2542. null,
  2543. dl4free_1fichier_BulkCheck //function delegate
  2544. )
  2545. }
  2546. if (GM_getValue("Check_depositfiles_dot_com_links", false))
  2547. {
  2548. addHost(
  2549. "depositfiles,dfiles",
  2550. "(?:(?:depositfiles\\.(?:com|org|lt))|(?:dfiles\\.(?:ru|eu)))\/files\/|en/files\/\\w+",
  2551. "//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/')]",
  2552. 100000, //blocksize
  2553. null, //corrmatch
  2554. null, //corrreplwhat
  2555. null, //corrreplwith
  2556. null, //separator
  2557. null,
  2558. null,
  2559. null,
  2560. null,
  2561. null,
  2562. null,
  2563. depositfilesBulkCheck //function delegate
  2564. )
  2565. }
  2566. if (GM_getValue("Check_filesflash_dot_com_links", false))
  2567. {
  2568. addHost(
  2569. "filesflash", //hostname
  2570. "filesflash\\.com\/\\w+", //linkregex
  2571. "//a[contains(@href,'filesflash.com')]", //xpath
  2572. null, //blocksize
  2573. null, //corrmatch
  2574. /http:\/\//, //corrreplwhat
  2575. '', //corrreplwith
  2576. null, //separator
  2577. 'http://filesflash.com/checklinks.php',
  2578. 'submit=Go&links=',
  2579. /filesflash\.com\/(\w+)/,
  2580. /<td>filesflash\.com\/\w+<\/td>\s*<td>Available/g,
  2581. /<td>filesflash\.com\/\w+<\/td>\s*<td>(?:Invalid|Deleted|Expired|Banned)?<\/td>/g,
  2582. null,
  2583. null //function delegate
  2584. )
  2585. }
  2586. if (GM_getValue("Check_jumbofiles_dot_com_links", false))
  2587. {
  2588. addHost(
  2589. "jumbofiles", //hostname
  2590. "jumbofiles\\.com\/\\w+", //linkregex
  2591. "//a[contains(@href,'jumbofiles.com/')]", //xpath
  2592. null, //blocksize
  2593. /(http:\/\/(?:|www\.)jumbofiles\.com\/\w+)/, //corrmatch
  2594. null, //corrreplwhat
  2595. null, //corrreplwith
  2596. null, //separator
  2597. "http://jumbofiles.com/checkfiles.html", //api url
  2598. "op=checkfiles&process=Check+URLs&list=", //postdata
  2599. /(jumbofiles\.com\/\w+)/, //linkregex
  2600. /blue'>http:\/\/(?:|www\.)jumbofiles\.com\/\w+/g, //liveregex
  2601. /red'>http:\/\/(?:|www\.)jumbofiles\.com\/\w+/g, //deadregex
  2602. /orange'>http:\/\/(?:|www\.)jumbofiles\.com\/\w+/g, //unavaregex
  2603. null //function delegate
  2604. )
  2605. }
  2606. if (GM_getValue("Check_edisk_dot_cz_links", false))
  2607. {
  2608. addHost(
  2609. "edisk", //hostname
  2610. "(?:(?:muj|data)\\d*\\.|)edisk\\.(?:cz|sk|eu)\/(?:|(?:cz|sk|en|pl)\/)", //linkregex
  2611. "//a[contains(@href,'edisk.')]", //xpath
  2612. null, //blocksize
  2613. null, //corrmatch
  2614. /edisk\.\w{2}\/(?:|\w{2}\/)stahni/, //corrreplwhat
  2615. 'edisk.cz/stahni', //corrreplwith
  2616. null, //separator
  2617. 'http://www.edisk.cz/zkontrolovat-odkazy',
  2618. 'submitBtn=Zkontrolovat&checkFiles=',
  2619. /((?:download|stahn(?:i|out-soubor))\/\d+)/,
  2620. /"ano"\/>\s*<\/td>\s*<td>\s*http:\/\/.+/g,
  2621. /"ne"\/>\s*<\/td>\s*<td>\s*http:\/\/.+/g,
  2622. null,
  2623. null //function delegate
  2624. )
  2625. }
  2626. if (GM_getValue("Check_bezvadata_dot_cz_links", false))
  2627. {
  2628. GM_xmlhttpRequest( //age check skip
  2629. {
  2630. method: 'POST',
  2631. url: 'http://bezvadata.cz/vyhledavani/souhlas-zavadny-obsah',
  2632. headers: {
  2633. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  2634. 'Content-type': 'application/x-www-form-urlencoded',
  2635. 'Referer': ""
  2636. }
  2637. });
  2638. addHost(
  2639. "bezvadata", //hostname
  2640. "(?:beta\\.|)bezvadata\.cz\/stahnout\/\\d+\\w+", //linkregex
  2641. "//a[contains(@href,'bezvadata.cz')]", //xpath
  2642. null, //blocksize
  2643. null, //corrmatch
  2644. null, //corrreplwhat
  2645. null, //corrreplwith
  2646. null, //separator
  2647. 'http://bezvadata.cz/nastroje/kontrola-odkazu?do=kontrolaOdkazuForm-submit',
  2648. 'zkontrolovat=Zkontrolovat&odkazy=',
  2649. /(bezvadata\.cz\/stahnout\/\d+)/,
  2650. /bezvadata\.cz\/stahnout\/.+?<\/td>\s*<td style="background-color: #d9ffb2/g,
  2651. /bezvadata\.cz\/stahnout\/.+?<\/td>\s*<td style="background-color: #ffb2b2/g,
  2652. null,
  2653. null //function delegate
  2654. )
  2655. }
  2656. if (GM_getValue("Check_linkcrypt_dot_ws_links", false))
  2657. {
  2658. addHost(
  2659. "linkcrypt", //hostname
  2660. "linkcrypt\\.ws\/dir\/\\w+", //linkregex
  2661. "//a[contains(@href,'linkcrypt.ws/dir')]", //xpath
  2662. 100000, //blocksize
  2663. null, //corrmatch
  2664. null, //corrreplwhat
  2665. null, //corrreplwith
  2666. null, //separator
  2667. null,
  2668. null,
  2669. null,
  2670. null,
  2671. null,
  2672. null,
  2673. linkcryptBulkCheck //function delegate
  2674. )
  2675. }
  2676. /* if (GM_getValue("Check_linksave_dot_in_links", false))
  2677. {
  2678. addHost(
  2679. "linksave", //hostname
  2680. "linksave\\.in\/\\w+", //linkregex
  2681. "//a[contains(@href,'linksave.in')]", //xpath
  2682. 100000, //blocksize
  2683. null, //corrmatch
  2684. null, //corrreplwhat
  2685. null, //corrreplwith
  2686. null, //separator
  2687. null,
  2688. null,
  2689. null,
  2690. null,
  2691. null,
  2692. null,
  2693. linksaveBulkCheck //function delegate
  2694. )
  2695. } */
  2696. if (GM_getValue("Check_videobb_dot_com_links", false))
  2697. {
  2698. addHost(
  2699. "videobb", //hostname
  2700. "videobb\\.com\/(?:video\/|watch_video\\.php\\?v=)\\w+", //linkregex
  2701. "//a[contains(@href,'videobb.com')]", //xpath
  2702. null, //blocksize
  2703. null, //corrmatch
  2704. /watch_video\.php\?v=/, //corrreplwhat
  2705. 'video/', //corrreplwith
  2706. null, //separator
  2707. 'http://www.videobb.com/link_checker.php',
  2708. 'links=',
  2709. /videobb\.com\/video\/(\w+)/,
  2710. /<td>http:\/\/(?:www\.|)videobb.com\/video\/\w+<\/td>\s+<td>.+?<\/td>\s+<td>\d+:\d+<\/td>\s+<td>Available/g,
  2711. /<td>http:\/\/(?:www\.|)videobb.com\/video\/\w+<\/td>\s+<td><\/td>\s+<td>N\/A<\/td>\s+<td>Not Available/g,
  2712. null,
  2713. null //function delegate
  2714. )
  2715. }
  2716. /* if (GM_getValue("Check_cramit_dot_in_links", false))
  2717. {
  2718. addHost(
  2719. "cramit,cramitin", //hostname
  2720. "cramit(?:\\.in|in\\.net)\/", //linkregex
  2721. "//a[contains(@href,'cramitin.net') or contains(@href,'cramit.in')]", //xpath
  2722. null, //blocksize
  2723. null, //corrmatch
  2724. null, //corrreplwhat
  2725. null, //corrreplwith
  2726. null, //separator
  2727. 'http://cramit.in/checkfiles.html',
  2728. 'op=checkfiles&process=CHECK+URL%27S&list=',
  2729. /(cramit(?:\.in|in\.net)\/\w+)/,
  2730. /green>http:\/\/(?:www\.|)cramit(?:\.in|in\.net)\/\w+/g,
  2731. /red'>http:\/\/(?:www\.|)cramit(?:\.in|in\.net)\/\w+/g,
  2732. /orange'>http:\/\/(?:www\.|)cramit(?:\.in|in\.net)\/\w+/g,
  2733. null //function delegate
  2734. )
  2735. }
  2736. if (GM_getValue("Check_turbobit_dot_net_links", false))
  2737. {
  2738. addHost(
  2739. "turbobit", //hostname
  2740. "turbobit\\.(?:net|pl)\/(?:\\w+\/|).+?\\.html", //linkregex
  2741. "//a[contains(@href,'turbobit.')]", //xpath
  2742. null, //blocksize
  2743. /(turbobit\.(?:net|pl)\/(?:\w+\/|).+?\.html)/, //corrmatch
  2744. null, //corrreplwhat
  2745. null, //corrreplwith
  2746. "\n", //separator
  2747. 'http://turbobit.net/linkchecker/csv',
  2748. 'links_to_check=',
  2749. /(turbobit\.(?:net|pl)\/\w+)/,
  2750. /turbobit\.(?:net|pl)\/.*?, 1/g,
  2751. /turbobit\.(?:net|pl)\/.*?, 0/g,
  2752. null,
  2753. null //function delegate
  2754. )
  2755. } */
  2756. if (GM_getValue("Check_filerio_dot_com_links", false))
  2757. {
  2758. addHost(
  2759. "filekeen,filerio", //hostname
  2760. //"file(?:keen|rio)\\.(?:com|in)\/\\w+\/.", //linkregex
  2761. "file(?:keen|rio)\\.(?:com|in)\/\\w+", //linkregex
  2762. "//a[contains(@href,'filekeen.com') or contains(@href,'filerio.')]", //xpath
  2763. null, //blocksize
  2764. null, //corrmatch
  2765. null, //corrreplwhat
  2766. null, //corrreplwith
  2767. null, //separator
  2768. 'http://filerio.in/checkfiles.html',
  2769. 'op=checkfiles&process=Check+URLs&list=',
  2770. /(file(?:keen|rio)\.(?:com|in)\/\w+)/,
  2771. /green'>http:\/\/(?:www\.|)file(?:keen|rio)\.(?:com|in)\/\w+/g,
  2772. /red'>http:\/\/(?:www\.|)file(?:keen|rio)\.(?:com|in)\/\w+/g,
  2773. /orange'>http:\/\/(?:www\.|)file(?:keen|rio)\.(?:com|in)\/\w+/g,
  2774. null //function delegate
  2775. )
  2776. }
  2777. if (GM_getValue("Check_share_dash_online_dot_biz_links", false))
  2778. {
  2779. addHost(
  2780. "share-online,egoshare", //hostname
  2781. "(?:share-online\\.biz|egoshare\\.com)\/(?:dl\/|download\\.php\\?id=)", //linkregex
  2782. "//a[contains(@href,'share-online.biz') or contains(@href,'egoshare.com')]", //xpath
  2783. null, //blocksize
  2784. /http:\/\/(?:www\.)?(?:share-online\.biz|egoshare\.com)\/d(?:l\/|ownload\.php\?id=)(\w+)/, //corrmatch
  2785. null, //corrreplwhat
  2786. null, //corrreplwith
  2787. "\n", //separator
  2788. 'http://api.share-online.biz/linkcheck.php',
  2789. 'links=',
  2790. /(\w+);(?:OK|NOTFOUND|DELETED)/,
  2791. /\w+;OK/g,
  2792. /\w+;(?:NOTFOUND|DELETED)/g,
  2793. null,
  2794. null //function delegate
  2795. )
  2796. }
  2797. /* if (GM_getValue("Check_quickshare_dot_cz_links", false))
  2798. {
  2799. addHost(
  2800. "quickshare", //hostname
  2801. "quickshare\\.cz\/stahnout-soubor\/\\d+", //linkregex
  2802. "//a[contains(@href,'quickshare.cz')]", //xpath
  2803. null, //blocksize
  2804. null, //corrmatch
  2805. null, //corrreplwhat
  2806. null, //corrreplwith
  2807. null, //separator
  2808. 'http://www.quickshare.cz/nastroje/link-checker',
  2809. 'linky=',
  2810. /quickshare\.cz\/stahnout-soubor\/(\d+(?::\w+)?)/,
  2811. /quickshare\.cz\/stahnout-soubor\/\d+(?::[\w\-.+$!*\/()\[\]\',~%?:@#&=\\]+)?\s*<\/a><\/td><td><img src="\/img\/ok\.gif/g,
  2812. /quickshare\.cz\/stahnout-soubor\/\d+(?::[\w\-.+$!*\/()\[\]\',~%?:@#&=\\]+)?\s*<\/td><td><img src="\/img\/nenalezeno\.gif/g,
  2813. null,
  2814. null //function delegate
  2815. )
  2816. } */
  2817. if (GM_getValue("Check_oboom_dot_com_links", false))
  2818. {
  2819. addHost(
  2820. "oboom", //hostname
  2821. "oboom\\.com\/#?\\w{8}", //linkregex
  2822. "//a[contains(@href,'oboom.com/')]", //xpath
  2823. null, //blocksize
  2824. /oboom\.com\/#?(\w{8})/, //corrmatch
  2825. null, //corrreplwhat
  2826. null, //corrreplwith
  2827. null, //separator
  2828. null,
  2829. null,
  2830. null,
  2831. null, //liveregex
  2832. null, //deadregex
  2833. null,
  2834. oboomBulk //function delegate
  2835. )
  2836. }
  2837. if (GM_getValue("Check_mega_dot_nz_links", false))
  2838. {
  2839. addHost(
  2840. "mega",
  2841. "mega(?:\\.co)?\\.nz\/#!\\w+",
  2842. "//a[contains(@href,'mega.co.nz/') or contains(@href,'mega.nz/')]",
  2843. 100000, //blocksize
  2844. null, //corrmatch
  2845. null, //corrreplwhat
  2846. null, //corrreplwith
  2847. null, //separator
  2848. null,
  2849. null,
  2850. null,
  2851. null,
  2852. null,
  2853. null,
  2854. megaBulkCheck //function delegate
  2855. )
  2856. }
  2857.  
  2858. //the same as GenType2, except api url is 'https://' instead of 'http://www.' and corrmatch is not??? needed
  2859.  
  2860. if (GM_getValue("Check_extabit_dot_com_links", false))
  2861. {
  2862. addHost(
  2863. "extabit", //hostname
  2864. "extabit\\.com\/file\/\\w+", //linkregex
  2865. "//a[contains(@href,'extabit.com')]", //xpath
  2866. null, //blocksize
  2867. null, //corrmatch
  2868. null, //corrreplwhat
  2869. null, //corrreplwith
  2870. "\n", //separator
  2871. "http://extabit.com/linkchecker.jsp", //api url
  2872. "url=", //postdata
  2873. /extabit\.com\/(file\/\w+)/, //linkregex
  2874. /extabit\.com\/file\/\w+\/[^<]+<\/a><\/td>\s*<td class="status"><span class="status_green">/g, //liveregex
  2875. /extabit\.com\/file\/\w+\/[^<]+<\/a><\/td>\s*<td class="status"><span class="status_red">/g, //deadregex
  2876. /extabit\.com\/file\/\w+\/[^<]+<\/a><\/td>\s*<td class="status"><span class="status_yellow">/g, //unavaregex
  2877. extabitBulkCheck //function delegate
  2878. )
  2879. }
  2880. if (GM_getValue("Check_junocloud_dot_me_links", false))
  2881. {
  2882. addHost(
  2883. "junocloud", //hostname
  2884. "junocloud\\.me\/\\w+", //linkregex
  2885. "//a[contains(@href,'junocloud.me')]", //xpath
  2886. null, //blocksize
  2887. null, //corrmatch
  2888. null, //corrreplwhat
  2889. null, //corrreplwith
  2890. "\n", //separator
  2891. "http://junocloud.me/checkfiles.html", //api url
  2892. "op=checkfiles&process=Check+URLs&list=", //postdata
  2893. /(junocloud\.me\/\w+)/, //linkregex
  2894. /<a href="http:\/\/junocloud\.me\/\w+[^<]+<\/a>\s*<span style="color: green/g, //liveregex
  2895. /<a href="http:\/\/junocloud\.me\/\w+[^<]+<\/a>\s*<span style="color: red/g, //deadregex
  2896. null, //unavaregex
  2897. null //function delegate
  2898. )
  2899. }
  2900. if (GM_getValue("Check_webshare_dot_cz_links", false))
  2901. {
  2902. addHost(
  2903. "webshare", //hostname
  2904. "webshare\.cz\/(?:(?:#/)?file/\\w+|\\w+-.*)", //linkregex
  2905. "//a[contains(@href,'webshare.cz')]", //xpath
  2906. 100000, //blocksize
  2907. null, //corrmatch
  2908. null, //corrreplwhat
  2909. null, //corrreplwith
  2910. null, //separator
  2911. null, //api url
  2912. null, //postdata
  2913. null, //linkregex
  2914. null, //liveregex
  2915. null, //deadregex
  2916. null, //unavaregex
  2917. webshareBulkCheck //function delegate
  2918. )
  2919. }
  2920. /////////////////////////////
  2921. // Common function delegate to send links to get checked by host linkchecker
  2922. /////////////////////////////
  2923. // If you define a new delegate, you may use following properties
  2924. // this.links [array] array of strings (link blocks). The links in each block separated with host.splitSeparator.
  2925. // this.apiUrl [string] API or web linkchecker URL
  2926. // this.postData [string] POSTDATA for POST request
  2927. // this.resLiveRegex [regex] matches live substrings in the request response
  2928. // this.resDeadRegex [regex] matches dead substrings in the request response
  2929. // this.resUnavaRegex [regex] matches unava substrings in the request response (the regex is often null!)
  2930. //
  2931. // this.resLinkRegex [regex] matches links further passed to DisplayTheCheckedLinks
  2932. //
  2933. // See the code below for standard bulkcheck handling reference.
  2934. //////////////////////////////
  2935. function genBulkCheck()
  2936. {
  2937. var blockIdx = this.links.length;
  2938. while (blockIdx--)
  2939. {
  2940. postRequest(this.apiUrl, this.postData, this.links[blockIdx],
  2941. this.resLinkRegex, this.resLiveRegex, this.resDeadRegex, this.resUnavaRegex);
  2942. }
  2943. function postRequest(api, postData, links, linkRegex, liveRegex, deadRegex, unavaRegex)
  2944. {
  2945. GM_xmlhttpRequest(
  2946. {
  2947. method: 'POST',
  2948. url: api,
  2949. headers: {
  2950. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  2951. 'Content-type': 'application/x-www-form-urlencoded',
  2952. 'Referer': api,
  2953. 'X-Requested-With': 'XMLHttpRequest'
  2954. },
  2955. data: postData + encodeURIComponent(links),
  2956. onload: function (result)
  2957. {
  2958. var res = result.responseText;
  2959. // GM_log(res);
  2960. var i;
  2961.  
  2962. var livelinks = res.match(liveRegex);
  2963. var deadlinks = res.match(deadRegex);
  2964. // GM_log(livelinks);
  2965. // GM_log(deadlinks);
  2966. if (livelinks != null)
  2967. {
  2968. i = livelinks.length - 1;
  2969. do
  2970. {
  2971. livelinks[i] = livelinks[i].match(linkRegex)[1];
  2972. }
  2973. while (i--);
  2974. DisplayTheCheckedLinks(livelinks, 'alive_link');
  2975. }
  2976.  
  2977. if (deadlinks != null)
  2978. {
  2979. i = deadlinks.length - 1;
  2980. do
  2981. {
  2982. deadlinks[i] = deadlinks[i].match(linkRegex)[1];
  2983. }
  2984. while (i--);
  2985. DisplayTheCheckedLinks(deadlinks, 'adead_link');
  2986. }
  2987.  
  2988. if (unavaRegex != null)
  2989. {
  2990. var unavalinks = res.match(unavaRegex);
  2991. if (unavalinks)
  2992. {
  2993. i = unavalinks.length - 1;
  2994. do
  2995. {
  2996. unavalinks[i] = unavalinks[i].match(linkRegex)[1];
  2997. }
  2998. while (i--);
  2999. DisplayTheCheckedLinks(unavalinks, 'unava_link');
  3000. }
  3001. }
  3002. }
  3003. });
  3004. }
  3005. }
  3006. //specialized bulkchecking handlers follow
  3007. function webshareBulkCheck()
  3008. {
  3009. var arr = this.links[0].split("\r\n");
  3010. var i = arr.length;
  3011. while(i--)
  3012. {
  3013. postRequest(arr[i]);
  3014. }
  3015. //function postRequest(api, postData, links, linkRegex, liveRegex, deadRegex, unavaRegex)
  3016. function postRequest(wsLink)
  3017. {
  3018. var id = wsLink.match(/webshare\.cz\/(?:(?:#\/)?file\/)?(\w+)/)[1];
  3019. GM_xmlhttpRequest(
  3020. {
  3021. method: 'POST',
  3022. url: "http://webshare.cz/api/file_info/",
  3023. headers: {
  3024. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  3025. 'Content-type': 'application/x-www-form-urlencoded',
  3026. 'Referer': "",
  3027. },
  3028. data: "wst=&ident=" + id,
  3029. onload: function (result)
  3030. {
  3031. var res = result.responseText;
  3032. if (res.match(/<name>.+?<\/name>/))
  3033. {
  3034. DisplayTheCheckedLinks([id], 'alive_link');
  3035. }
  3036. else
  3037. {
  3038. DisplayTheCheckedLinks([id], 'adead_link');
  3039. }
  3040. }
  3041. });
  3042. }
  3043. }
  3044. //like genBulkCheck, but extabit linkchecker only works when logged in. If not logged in, non-bulk checking has to be used.
  3045. //extabit also doesn't like requests in fast succession, so some delays are added.
  3046. function extabitBulkCheck()
  3047. {
  3048. var timeoutDelay = 0;
  3049. var blockIdx = this.links.length;
  3050. while (blockIdx--)
  3051. {
  3052. postRequest(this.apiUrl, this.postData, this.links[blockIdx],
  3053. this.resLinkRegex, this.resLiveRegex, this.resDeadRegex, this.resUnavaRegex);
  3054. }
  3055. function postRequest(api, postData, links, linkRegex, liveRegex, deadRegex, unavaRegex)
  3056. {
  3057. GM_xmlhttpRequest(
  3058. {
  3059. method: 'POST',
  3060. url: api,
  3061. headers: {
  3062. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  3063. 'Content-type': 'application/x-www-form-urlencoded',
  3064. 'Referer': api,
  3065. 'X-Requested-With': 'XMLHttpRequest'
  3066. },
  3067. data: postData + encodeURIComponent(links),
  3068. onload: function (result)
  3069. {
  3070. var res = result.responseText;
  3071. if (/id="registration_header"/.test(res)) //not logged in, have to use non-bulk
  3072. {
  3073. function geturlfunc(link, tryID) //basically the geturl function with some changes (compacted, displaythecheckedlinkS, multiple tries)
  3074. {
  3075. //GM_log(tryID + ': ' + link);
  3076. GM_xmlhttpRequest(
  3077. {
  3078. method: 'GET',
  3079. url: link,
  3080. 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': ""},
  3081. onload: function(result2)
  3082. {
  3083. var res2 = result2.responseText;
  3084. var res2Status = result.status;
  3085. if (/download-file-btn/.test(res2)) {DisplayTheCheckedLinks([link], 'alive_link'); return;}
  3086. if (/Search mirrors|id="mirrb"/.test(res2) || res2Status==404) {DisplayTheCheckedLinks([link], 'adead_link'); return;}
  3087. if (/currently unavailable|temporarily unavailable|disponible en estos momentos|vorläufig unerreichbar|Файл временно недоступен/.test(res2) || res2Status == 500 || res2Status == 503)
  3088. {
  3089. if (tryID < 7)
  3090. setTimeout(function(){geturlfunc(link,tryID+1)}, tryID * 1000 + (Math.random() * tryID * 2000));
  3091. else
  3092. {DisplayTheCheckedLinks([link], 'unava_link'); return;}
  3093. }
  3094. }
  3095. });
  3096. }
  3097. //split the hrefs and check them one by one
  3098. GM_log('Using slow extabit.com link checking. Log in to extabit to use fast bulk checking.');
  3099. links = links.split('\n');
  3100. var i = links.length;
  3101. while (i--)
  3102. {
  3103. if (links[i])
  3104. {
  3105. (function(i){setTimeout(function(){geturlfunc(links[i],1)}, timeoutDelay);})(i);
  3106. timeoutDelay += 500;
  3107. }
  3108. }
  3109. return;
  3110. }
  3111. var i;
  3112.  
  3113. var livelinks = res.match(liveRegex);
  3114. var deadlinks = res.match(deadRegex);
  3115. if (livelinks != null)
  3116. {
  3117. i = livelinks.length - 1;
  3118. do
  3119. {
  3120. livelinks[i] = livelinks[i].match(linkRegex)[1];
  3121. }
  3122. while (i--);
  3123. DisplayTheCheckedLinks(livelinks, 'alive_link');
  3124. }
  3125.  
  3126. if (deadlinks != null)
  3127. {
  3128. i = deadlinks.length - 1;
  3129. do
  3130. {
  3131. deadlinks[i] = deadlinks[i].match(linkRegex)[1];
  3132. }
  3133. while (i--);
  3134. DisplayTheCheckedLinks(deadlinks, 'adead_link');
  3135. }
  3136.  
  3137. if (unavaRegex != null)
  3138. {
  3139. var unavalinks = res.match(unavaRegex);
  3140. if (unavalinks)
  3141. {
  3142. i = unavalinks.length - 1;
  3143. do
  3144. {
  3145. unavalinks[i] = unavalinks[i].match(linkRegex)[1];
  3146. }
  3147. while (i--);
  3148. DisplayTheCheckedLinks(unavalinks, 'unava_link');
  3149. }
  3150. }
  3151. }
  3152. });
  3153. }
  3154. }
  3155. function k2sBulkCheck()
  3156. {
  3157. var arr = this.links[0].split("\r\n");
  3158. var i = arr.length;
  3159. c=0;
  3160. arrIDs=[];
  3161. while(i--)
  3162. {
  3163. id = arr[i].match(/\/file\/(\w+)/)[1];
  3164. k2salreadyexist=false;
  3165. for (j=0;j<arrIDs.length;j++)
  3166. {
  3167. if (arrIDs[j]==id)
  3168. {
  3169. k2salreadyexist=true;
  3170. break;
  3171. }
  3172. }
  3173. if (k2salreadyexist) continue;
  3174. arrIDs.push(id);
  3175. c++;
  3176. setTimeout(k2sRequest,c*500,arr[i]);
  3177. }
  3178. }
  3179. function k2sRequest(K2SLink)
  3180. {
  3181. var id = K2SLink.match(/\/file\/(\w+)/)[1];
  3182. K2SLink2='http://k2s.cc/file/'+id;
  3183. GM_xmlhttpRequest(
  3184. {
  3185. method: 'GET',
  3186. url: K2SLink,
  3187. headers: {
  3188. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  3189. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  3190. 'Referer': ''
  3191. },
  3192. onload: function (result)
  3193. {
  3194. var res = result.responseText;
  3195. 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'))
  3196. {
  3197. DisplayTheCheckedLinks([K2SLink], 'adead_link');
  3198. return;
  3199. }
  3200. if (res.match('method="post">Displaying'))
  3201. {
  3202. DisplayTheCheckedLinks([K2SLink], 'unava_link');
  3203. return;
  3204. }
  3205. if (res.match('Premium only'))
  3206. {
  3207. DisplayTheCheckedLinks([K2SLink], 'prem_link');
  3208. return;
  3209. }
  3210. if (res.match('View File|download-file-info|div class="name fontmyriadpro"|style="color: #9fb143;"'))
  3211. {
  3212. slow_id=new RegExp('<input type="hidden" name="slow_id" value="(\\w+)">');
  3213. slID=slow_id.exec(res)[1];
  3214. GM_xmlhttpRequest(
  3215. {
  3216. method: 'POST',
  3217. url: K2SLink2,
  3218. headers: {
  3219. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  3220. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  3221. 'Content-Type': 'application/x-www-form-urlencoded',
  3222. 'Referer': K2SLink
  3223. },
  3224. data: 'slow_id='+slID+'&yt0=',
  3225. onload: function (result)
  3226. {
  3227. var newres = result.responseText;
  3228. newoversizedtest=new RegExp("Free user can't download large files|Downloading is not possible");
  3229. if (newoversizedtest.test(newres))
  3230. {
  3231. DisplayTheCheckedLinks([K2SLink], 'prem_link');
  3232. return;
  3233. }
  3234. else
  3235. {
  3236. DisplayTheCheckedLinks([K2SLink], 'alive_link');
  3237. return;
  3238. }
  3239. DisplayTheCheckedLinks([K2SLink], 'unava_link');
  3240. return;
  3241. }
  3242. });
  3243. /////////////////////end additional check for oversized links
  3244. return;
  3245. }
  3246. DisplayTheCheckedLinks([K2SLink], 'unava_link');
  3247. return;
  3248. },
  3249. onerror: function ()
  3250. {
  3251. DisplayTheCheckedLinks([K2SLink], 'unava_link');
  3252. return;
  3253. }
  3254. });
  3255. }
  3256. function fboomBulkCheck()
  3257. {
  3258. var arr = this.links[0].split("\r\n");
  3259. var i = arr.length;
  3260. c=0;
  3261. arrIDs=[];
  3262. while(i--)
  3263. {
  3264. id = arr[i].match(/\/file\/(\w+)/)[1];
  3265. fbalreadyexist=false;
  3266. for (j=0;j<arrIDs.length;j++)
  3267. {
  3268. if (arrIDs[j]==id)
  3269. {
  3270. fbalreadyexist=true;
  3271. break;
  3272. }
  3273. }
  3274. if (fbalreadyexist) continue;
  3275. arrIDs.push(id);
  3276. c++;
  3277. setTimeout(fboomRequest,c*500,arr[i]);
  3278. }
  3279. }
  3280. function fboomRequest(FBoomLink)
  3281. {
  3282. var id = FBoomLink.match(/\/file\/(\w+)/)[1];
  3283. FBoomLink2='http://fboom.me/file/'+id;
  3284. GM_xmlhttpRequest(
  3285. {
  3286. method: 'GET',
  3287. url: FBoomLink,
  3288. headers: {
  3289. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  3290. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  3291. 'Referer': ''
  3292. },
  3293. onload: function (result)
  3294. {
  3295. var res = result.responseText;
  3296. if (res.match('no longer available|class="error-v1-title">404<|File not found or deleted|no longer available'))
  3297. {
  3298. DisplayTheCheckedLinks([FBoomLink], 'adead_link');
  3299. return;
  3300. }
  3301. if (res.match('method="post">Displaying'))
  3302. {
  3303. DisplayTheCheckedLinks([FBoomLink], 'unava_link');
  3304. return;
  3305. }
  3306. if (res.match('only for premium members'))
  3307. {
  3308. DisplayTheCheckedLinks([FBoomLink], 'prem_link');
  3309. return;
  3310. }
  3311. if (res.match('id="download-free" href="#"'))
  3312. {
  3313. slow_id=new RegExp('<a id="download-free" href="#" class="free-button btn-u" data-slow-id="(\\w+)">');
  3314. slID=slow_id.exec(res)[1];
  3315. GM_xmlhttpRequest(
  3316. {
  3317. method: 'POST',
  3318. url: FBoomLink2,
  3319. headers: {
  3320. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  3321. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  3322. 'Content-Type': 'application/x-www-form-urlencoded',
  3323. 'Referer': FBoomLink
  3324. },
  3325. data: 'slow_id='+slID,
  3326. onload: function (result)
  3327. {
  3328. var newres = result.responseText;
  3329. newoversizedtest=new RegExp("Free user can't download large files.|Downloading is not possible");
  3330. if (newoversizedtest.test(newres))
  3331. {
  3332. DisplayTheCheckedLinks([FBoomLink], 'prem_link');
  3333. return;
  3334. }
  3335. else
  3336. {
  3337. DisplayTheCheckedLinks([FBoomLink], 'alive_link');
  3338. return;
  3339. }
  3340. DisplayTheCheckedLinks([FBoomLink], 'unava_link');
  3341. return;
  3342. }
  3343. });
  3344. /////////////////////end additional check for oversized links
  3345. return;
  3346. }
  3347. DisplayTheCheckedLinks([FBoomLink], 'unava_link');
  3348. return;
  3349. },
  3350. onerror: function ()
  3351. {
  3352. DisplayTheCheckedLinks([FBoomLink], 'unava_link');
  3353. return;
  3354. }
  3355. });
  3356. }
  3357. function dl4free_1fichier_BulkCheck()
  3358. {
  3359. var arr = this.links[0].split("\r\n");
  3360. var i = arr.length;
  3361. while(i--)
  3362. {
  3363. CorrectRE = new RegExp('(https?):\\/\\/(?:www\\.)?(\\w{5,15})\\.1fichier\\.com');
  3364. arr[i]=arr[i].replace(CorrectRE, '$1://1fichier.com/?$2');
  3365. gethead_dl4free_1fichier(arr[i]);
  3366. }
  3367. }
  3368. function gethead_dl4free_1fichier(link)
  3369. {
  3370. var id = link.match(/(?:1fichier|dl4free)\.com(?:\/)?\?(\w{6,})/)[1];
  3371. GM_xmlhttpRequest(
  3372. {
  3373. method: 'HEAD',
  3374. url: link,
  3375. headers: {
  3376. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  3377. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  3378. 'Referer': ''
  3379. },
  3380. onload: function (result)
  3381. {
  3382. if (result.responseHeaders.match(/Content-Disposition: attachment; filename=/))//direct download
  3383. {
  3384. DisplayTheCheckedLinks([id], 'alive_link');
  3385. return;
  3386. }
  3387. else
  3388. {
  3389. getlink_dl4free_1fichier(link);
  3390. }
  3391. return;
  3392. },
  3393. onerror: function ()
  3394. {
  3395. DisplayTheCheckedLinks([id], 'unava_link');
  3396. }
  3397. });
  3398. }
  3399. function getlink_dl4free_1fichier(link)
  3400. {
  3401. var id = link.match(/(?:1fichier|dl4free)\.com(?:\/)?\?(\w{6,})/)[1];
  3402. GM_xmlhttpRequest(
  3403. {
  3404. method: 'GET',
  3405. url: link,
  3406. headers: {
  3407. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  3408. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  3409. 'Referer': ''
  3410. },
  3411. onload: function (result)
  3412. {
  3413. var res = result.responseText;
  3414. 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>');
  3415. if (deadRegex.test(res))
  3416. {
  3417. DisplayTheCheckedLinks([id], 'adead_link');
  3418. return;
  3419. }
  3420. premiumRegex=new RegExp('only for premium users');
  3421. if (premiumRegex.test(res))
  3422. {
  3423. DisplayTheCheckedLinks([id], 'prem_link');
  3424. return;
  3425. }
  3426. 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="');
  3427. if (liveRegex.test(res))
  3428. {
  3429. DisplayTheCheckedLinks([id], 'alive_link');
  3430. return;
  3431. }
  3432. DisplayTheCheckedLinks([id], 'unava_link');
  3433. },
  3434. onerror: function ()
  3435. {
  3436. DisplayTheCheckedLinks([id], 'unava_link');
  3437. }
  3438. });
  3439. }
  3440. function depositfilesBulkCheck()
  3441. {
  3442. var arr = this.links[0].split("\r\n");
  3443. var i = arr.length;
  3444. var seqno = Math.floor(Math.random()*1000000000);
  3445. while(i--)
  3446. {
  3447. DFpostRequest(arr[i]);
  3448. }
  3449. }
  3450. function DFpostRequest(DFLink)
  3451. {
  3452. DFLink=DFLink.replace('depositfiles.lt/','depositfiles.com/');
  3453. DFLink=DFLink.replace('depositfiles.org/','depositfiles.com/');
  3454. DFLink=DFLink.replace('dfiles.ru/','depositfiles.com/');
  3455. DFLink=DFLink.replace('dfiles.eu/','depositfiles.com/');
  3456. DFLink=DFLink.replace('depositfiles.com/en/','depositfiles.com/');
  3457. var id = DFLink.match(/depositfiles\.com\/files\/(\w+)/)[1];
  3458. GM_xmlhttpRequest(
  3459. {
  3460. method: "GET",
  3461. url: "http://depositfiles.com/api/get_download_info.php?id=" + id + "&format=json",
  3462. headers: {
  3463. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3464. 'Content-Type': 'application/x-www-form-urlencoded',
  3465. 'Referer': ""
  3466. },
  3467. onload: function (result)
  3468. {
  3469. var res = result.responseText;
  3470. if (res.match('(?:no_file|file_ban)'))
  3471. {
  3472. DisplayTheCheckedLinks([id], 'adead_link');
  3473. return;
  3474. }
  3475. if (res.match('"download_li(?:nk|mit)|password_check|file_storage"'))
  3476. {
  3477. DisplayTheCheckedLinks([id], 'alive_link');
  3478. return;
  3479. }
  3480. DisplayTheCheckedLinks([id], 'unava_link');
  3481. }
  3482. });
  3483. }
  3484.  
  3485. function megaBulkCheck()
  3486. {
  3487. var arr = this.links[0].split("\r\n");
  3488. var i = arr.length;
  3489. var seqno = Math.floor(Math.random()*1000000000);
  3490. while(i--)
  3491. {
  3492. postRequest(arr[i]);
  3493. }
  3494. function postRequest(megaLink)
  3495. {
  3496. megaLink=megaLink.replace('mega.nz/','mega.co.nz/');
  3497. var id = megaLink.match(/mega\.co\.nz\/#!(\w+)(?:!\w+)?/)[1];
  3498. GM_xmlhttpRequest(
  3499. {
  3500. method: "POST",
  3501. url: 'https://g.api.mega.co.nz/cs?id=' + seqno++,
  3502. data: '[{"a":"g","p":"' + id + '","ssl": "1"}]',
  3503. headers: {
  3504. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3505. 'Content-Type': 'application/xml',
  3506. 'Referer': "https://mega.co.nz/"
  3507. },
  3508. onload: function (result)
  3509. {
  3510. var res = $.parseJSON(result.responseText.match(/\[(.+?)\]/)[1]);
  3511. if ((typeof res == "number" && (res == -9 || res == -16 || res == -6)) || res.d)
  3512. {
  3513.  
  3514. DisplayTheCheckedLinks([id], 'adead_link');
  3515. }
  3516. if (res.at)
  3517. {
  3518. DisplayTheCheckedLinks([id], 'alive_link');
  3519. }
  3520. if (res.e == "ETEMPUNAVAIL")
  3521. {
  3522. DisplayTheCheckedLinks([id], 'unava_link');
  3523. }
  3524. }
  3525. });
  3526. }
  3527.  
  3528. }
  3529.  
  3530. function oboomBulk() {
  3531. var a = [], b = [], c = [];
  3532. var array = this.links;
  3533.  
  3534. GM_xmlhttpRequest({
  3535. method: 'GET',
  3536. url: 'https://www.oboom.com/1/guestsession',
  3537. headers: {
  3538. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  3539. 'Content-type': 'application/x-www-form-urlencoded',
  3540. 'Referer': 'https://www.oboom.com',
  3541. 'X-Requested-With': 'XMLHttpRequest'
  3542. },
  3543. onload: function(result) {
  3544. var blockIdx = array.length;
  3545. var token = JSON.parse(result.responseText)[1];
  3546. while (blockIdx--) {
  3547. startCheck(array[blockIdx].split('\r\n'), token);
  3548. }
  3549. }
  3550. });
  3551.  
  3552. function startCheck(links, token) {
  3553. GM_xmlhttpRequest({
  3554. method: 'POST',
  3555. url: "https://api.oboom.com/1/info",
  3556. headers: {
  3557. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  3558. 'Content-type': 'application/x-www-form-urlencoded',
  3559. 'Referer': 'https://www.oboom.com/',
  3560. 'X-Requested-With': 'XMLHttpRequest'
  3561. },
  3562. data: "token=" + token + "&items=" + links.join(","),
  3563. onload: function(result) {
  3564. var res = JSON.parse(result.responseText)[1];
  3565. var i = res.length, s;
  3566.  
  3567. while (i--) {
  3568. s = res[i].state;
  3569. if (s == 'online') a.push(res[i].id);
  3570. 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);
  3571. else c.push(res[i].id);
  3572. }
  3573.  
  3574. if (a.length > 0) DisplayTheCheckedLinks(a, 'alive_link');
  3575. if (b.length > 0) DisplayTheCheckedLinks(b, 'adead_link');
  3576. if (c.length > 0) DisplayTheCheckedLinks(c, 'unava_link');
  3577. }
  3578. });
  3579. }
  3580. }
  3581. /* function linksaveBulkCheck()
  3582. {
  3583. var arr = this.links[0].split("\r\n");
  3584. var i = arr.length;
  3585. while(i--)
  3586. {
  3587. postRequest(arr[i]);
  3588. }
  3589. function postRequest(lsLink)
  3590. {
  3591. GM_xmlhttpRequest(
  3592. {
  3593. method: "GET",
  3594. url: lsLink + '-t.jpg',
  3595. headers: {
  3596. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3597. 'Accept': 'text/xml',
  3598. 'Referer': ""
  3599. },
  3600. onload: function (result)
  3601. {
  3602. var imgLen = result.responseHeaders.match(/Content-Length: (\d+)/)[1];
  3603. if (imgLen == 965) //online
  3604. {
  3605. DisplayTheCheckedLinks([lsLink], 'alive_link');
  3606. }
  3607.  
  3608. if (imgLen == 972) //offline
  3609. {
  3610. DisplayTheCheckedLinks([lsLink], 'adead_link');
  3611. }
  3612. if (imgLen == 978) //unava
  3613. {
  3614. DisplayTheCheckedLinks([lsLink], 'unava_link');
  3615. }
  3616. }
  3617. });
  3618. }
  3619.  
  3620. } */
  3621. function linkcryptBulkCheck()
  3622. {
  3623. var arr = this.links[0].split("\r\n");
  3624. var i = arr.length;
  3625. while(i--)
  3626. {
  3627. postRequest(arr[i]);
  3628. }
  3629. function postRequest(lcLink)
  3630. {
  3631. GM_xmlhttpRequest(
  3632. {
  3633. method: "GET",
  3634. url: 'http://linkcrypt.ws/api.html?api=status_V1&folderKey=' + lcLink.match(/dir\/(\w+)/)[1],
  3635. headers: {
  3636. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3637. 'Accept': 'text/xml',
  3638. 'Referer': ""
  3639. },
  3640. onload: function (result)
  3641. {
  3642. var res = result.responseText;
  3643. if (res.match(/<errorCode>1101|Folder not Found|folderStatus>[23]/)) //Offline status
  3644. {
  3645. DisplayTheCheckedLinks([lcLink], 'adead_link');
  3646. return;
  3647. }
  3648. if (res.match(/folderStatus>1/)) //Online status
  3649. {
  3650. DisplayTheCheckedLinks([lcLink], 'alive_link');
  3651. }
  3652. else
  3653. {
  3654. DisplayTheCheckedLinks([lcLink], 'unava_link');
  3655. }
  3656. }
  3657. });
  3658. }
  3659. }
  3660.  
  3661. function megashareBulkCheck()
  3662. {
  3663. var arr = this.links[0].split("\r\n");
  3664. var i = arr.length;
  3665. while(i--)
  3666. {
  3667. postRequest(arr[i]);
  3668. }
  3669. function postRequest(msLink)
  3670. {
  3671. GM_xmlhttpRequest(
  3672. {
  3673. method: "GET",
  3674. url: msLink,
  3675. headers: {
  3676. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3677. 'Content-Type': 'application/x-www-form-urlencoded',
  3678. 'Referer': ""
  3679. },
  3680. onload: function (result)
  3681. {
  3682. var prZVal = result.responseText.match(/name="(\d+prZVal)" value="(\d+)">/);
  3683. var btn3Name = result.responseText.match(/src="images\/dwn-btn3\.gif" name="(.+?)"/);
  3684. if ((prZVal == null) || (btn3Name == null))
  3685. {
  3686. return;
  3687. }
  3688. GM_xmlhttpRequest(
  3689. {
  3690. method: "POST",
  3691. url: msLink,
  3692. headers: {
  3693. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3694. 'Content-Type': 'application/x-www-form-urlencoded',
  3695. 'Referer': ""
  3696. },
  3697. data: prZVal[1] + "=" + prZVal[2] + '&' + btn3Name[1] + '.x=1&' + btn3Name[1] + '.y=1',
  3698. onload: function (result)
  3699. {
  3700. var res = result.responseText;
  3701. if (res.match(/<div id="err">/))
  3702. {
  3703. DisplayTheCheckedLinks([msLink.match(/\.com(\/\d+)/)[1]], 'adead_link');
  3704. }
  3705. else
  3706. {
  3707. DisplayTheCheckedLinks([msLink.match(/\.com(\/\d+)/)[1]], 'alive_link');
  3708. }
  3709. }
  3710. });
  3711. }
  3712. });
  3713. }
  3714. }
  3715. function ncryptBulkCheck()
  3716. {
  3717. var arr = this.links[0].split("\r\n");
  3718. var i = arr.length;
  3719. while(i--)
  3720. {
  3721. postRequest(arr[i]);
  3722. }
  3723. function postRequest(ncryptLink)
  3724. {
  3725. GM_xmlhttpRequest(
  3726. {
  3727. method: "POST",
  3728. url: 'http://ncrypt.in/api_status.php',
  3729. headers: {
  3730. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3731. 'Content-Type': 'application/x-www-form-urlencoded',
  3732. 'Referer': ""
  3733. },
  3734. data: 'link=' + encodeURI(ncryptLink),
  3735. onload: function (result)
  3736. {
  3737. var foldStatus = result.responseText.match(/(?:offline|online);/);
  3738. switch(foldStatus + ""){
  3739. case "offline;": DisplayTheCheckedLinks([ncryptLink], 'adead_link'); break;
  3740. case "online;": DisplayTheCheckedLinks([ncryptLink], 'alive_link'); break;
  3741. default: DisplayTheCheckedLinks([ncryptLink], 'unava_link');
  3742. }
  3743. }
  3744. });
  3745. }
  3746. }
  3747. function hellshareBulkCheck()
  3748. {
  3749. var links = this.links;
  3750. GM_xmlhttpRequest(
  3751. {
  3752. method: "GET",
  3753. url: 'http://www.hellshare.com',
  3754. headers: {
  3755. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3756. 'Accept': 'text/xml',
  3757. 'Referer': ""
  3758. },
  3759. onload: function (result)
  3760. {
  3761. var domain = result.responseText.match(/param_rau = "www\.hellshare\.(\w+)"/)[1];
  3762.  
  3763. var loc = 'check=Zkontrolovat+dostupnost+soubor%C5%AF&links=';
  3764. if (domain == 'sk')
  3765. loc = 'check=Skontrolova%C5%A5&links=';
  3766. if (domain == 'com')
  3767. loc = 'check=Check+availability&links=';
  3768. if (domain == 'hu')
  3769. loc = 'check=Kontrol%C3%A1lj&links=';
  3770. if (domain == 'pl')
  3771. loc = 'check=Sprawd%C5%BC+dost%C4%99pno%C5%9B%C4%87+plik%C3%B3w&links=';
  3772.  
  3773. genBulkCheck.call({ links: links,
  3774. apiUrl: 'http://www.hellshare.' + domain + '/linkchecker?do=linkChecker-linkcheckerform-submit',
  3775. postData: loc,
  3776. resLinkRegex: /hellshare\.(?:cz|com|sk|hu|pl)\/(?:[\w-\.]+\/|)([\w-\.]+\/\d{5,})/,
  3777. 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,
  3778. resDeadRegex: /<span style="color:gray">.*?<\/span> - <strong>/g,
  3779. resUnavaRegex: null
  3780. });
  3781. }
  3782. });
  3783. }
  3784. /**
  3785. * Displays check result
  3786. * @param {Array} Array of links or link fragments.
  3787. * @param {String} Check result status -> ['alive_link'|'adead_link'|'unava_link']
  3788. */
  3789. function DisplayTheCheckedLinks(links, resultStatus)
  3790. {
  3791. //(a[href*=link_1], a[href*=link_2], ..., a[href*=link_n])
  3792. var $links = $('a[href*="' + links.join('"], a[href*="') + '"]');
  3793. if (Do_not_linkify_DL_links)
  3794. { //TODO into separate jQuery function
  3795. $links.replaceWith(function(){
  3796. return '<span href="' + this.href + '">' + $(this).text() + '</span>';
  3797. });
  3798. $links = $('span[href*="' + links.join('"], span[href*="') + '"]');
  3799. }
  3800. $links.removeClass().addClass(resultStatus);
  3801. $links.each(function() {
  3802. this.href = Ref_anonymize_service + $(this).attr("href");
  3803. });
  3804. switch(resultStatus)
  3805. {
  3806. case "alive_link": cLinksAlive += $links.length;
  3807. if (Display_tooltip_info) $links.mouseover(displayTooltipInfo);
  3808. break;
  3809. case "adead_link": cLinksDead += $links.length;
  3810. if (Display_tooltip_info) $links.mouseover(displayTooltipError);
  3811. break;
  3812. case "prem_link": cLinksprem += $links.length;
  3813. if (Display_tooltip_info) $links.mouseover(displayTooltipError);
  3814. break;
  3815. case "unava_link": cLinksUnava += $links.length; break;
  3816. default:
  3817. }
  3818. cLinksProcessed += $links.length;
  3819. }
  3820. }
  3821. // starts bulkchecking
  3822. //
  3823. // params
  3824. // filterId [string] restricts link detection with passed id attribute
  3825. function startBulkCheck(filterId)
  3826. {
  3827. var cHosts = bulkHosts.length;
  3828. if (cHosts == 0) //no filehostings selected
  3829. return;
  3830. // STEP 1 linkify the links
  3831. var linkifyRegex = '';
  3832. var hostIdx = cHosts;
  3833. while(hostIdx--)
  3834. {
  3835. linkifyRegex += bulkHosts[hostIdx].linkRegex + "|";
  3836. }
  3837. linkifyRegex = linkifyRegex.replace(/\|$/, '');
  3838. linkify(linkifyRegex);
  3839. //
  3840. //STEP 2 detect link objects
  3841. var xpathAll = '';
  3842. var hostIdx = cHosts;
  3843. while(hostIdx--)
  3844. {
  3845. xpathAll += bulkHosts[hostIdx].xpath + "|";
  3846. }
  3847. xpathAll = xpathAll.replace(/\]\|\/\/a\[/g, " or ");
  3848. xpathAll = xpathAll.replace(/\]\|/, ')]');
  3849. if (filterId != null) //insert id restriction in the xpath
  3850. {
  3851. xpathAll = xpathAll.replace(/\[/, "[@class='" + filterId + "' and (");
  3852. }
  3853. else
  3854. {
  3855. xpathAll = xpathAll.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  3856. }
  3857. var links = document.evaluate(xpathAll, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  3858. if (filterId == null)
  3859. {
  3860. cLinksTotal += links.snapshotLength;
  3861. }
  3862. //
  3863. //STEP 3 bind links with hostings
  3864. var linkIdx = links.snapshotLength;
  3865. var href = null;
  3866. if (linkIdx == 0) // no links found
  3867. return;
  3868. var name;
  3869. while (linkIdx--)
  3870. {
  3871. href = links.snapshotItem(linkIdx).href;
  3872. try // DO NOT REMOVE, filters crap that went through xpath detection
  3873. {
  3874. name = gimmeHostName(href);
  3875. if (href.match(bulkHostNames[name].linkRegexObject) != null)
  3876. bulkHostNames[name].links.push(href);
  3877. }
  3878. catch(e)
  3879. {
  3880.  
  3881. }
  3882. }
  3883. //
  3884. //STEP 4 process the links for each filehosting
  3885. var hostIdx = cHosts;
  3886. var host;
  3887. var m,n;
  3888. var arr;
  3889. while (hostIdx--)
  3890. {
  3891. host = bulkHosts[hostIdx];
  3892. arr = host.links;
  3893. if (arr.length == 0) //no links for this hosting, skip
  3894. {
  3895. continue;
  3896. }
  3897. //links match corrections
  3898. if (host.corrMatch != null)
  3899. {
  3900. var idx = arr.length;
  3901. while (idx--)
  3902. {
  3903. arr[idx] = arr[idx].match(host.corrMatch)[1];
  3904. }
  3905. }
  3906. //links replace corrections
  3907. if ((host.corrReplWhat != null) && (host.corrReplWith != null))
  3908. {
  3909. var idx = arr.length;
  3910. while (idx--)
  3911. {
  3912. arr[idx] = arr[idx].replace(host.corrReplWhat, host.corrReplWith);
  3913. }
  3914. }
  3915. m = arr.length;
  3916. n = host.blockSize;
  3917. if (m > n)
  3918. {
  3919. //insert block separators (RAND_STRING) into the array
  3920. for(var i = n; i < m; i += n + 1)
  3921. {
  3922. arr.splice(i, 0, RAND_STRING);
  3923. }
  3924. }
  3925.  
  3926. host.func.call({ links: arr.join(host.splitSeparator).split(RAND_STRING),
  3927. apiUrl: host.apiUrl,
  3928. postData: host.postData,
  3929. resLinkRegex: host.resLinkRegex,
  3930. resLiveRegex: host.resLiveRegex,
  3931. resDeadRegex: host.resDeadRegex,
  3932. resUnavaRegex: host.resUnavaRegex
  3933. });
  3934. //clean up
  3935. arr.length = 0;
  3936. }
  3937. //
  3938.  
  3939. function gimmeHostName(link)
  3940. {
  3941. return link.replace(/https?:\/\/.*?http(s)?:\/\//, "http$1://").match(/https?:\/\/(?:www\.|[\w\.])*?([\w-]+)\.(?:co\.uk|co\.nz|\w+)\//)[1];
  3942. }
  3943. }
  3944. function checkLinks(filterId)
  3945. {
  3946. startBulkCheck(filterId);
  3947. start(filterId);
  3948. }
  3949.  
  3950. /**
  3951. * Initialises progress box including event binding and CSS
  3952. */
  3953. function initProgressBox()
  3954. {
  3955. if ($("#warlc-progressbox").length > 0)
  3956. return;
  3957. //progressbox css change size and color of progress box
  3958. GM_addStyle("#warlc-progressbox {position:fixed; background:DimGray;" + Progress_box_background_color +
  3959. "; opacity:" + (Progress_box_opacity / 100) +
  3960. "; bottom:" + Progress_box_pos_bottom +
  3961. "px; right:" + Progress_box_pos_right +
  3962. "px; padding:5px; font-size:20px; font-weight:bold; cursor:default;}\
  3963. \
  3964. .warlc-progressbar {text-align:center; color: DimGray; height:2px; margin-bottom:2px;}\
  3965. \
  3966. .warlc-progressitem {}\
  3967. \
  3968. .alive {color:#00FF7F; " + Live_links_color +
  3969. "; background:transparent url(" + alive_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;} .dead {color:" + Dead_links_color +
  3970. "; background:transparent url(" + adead_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;} .unava {color: " + Temp_unavailable_links_color +
  3971. "; background:transparent url(" + unava_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;} .processing {color:Black; " + Container_links_color +
  3972. "; background:transparent url(" + processing_link_gif + ") no-repeat scroll 100% 50%;padding-right:15px;} .prem {color:" + Premium_links_color +
  3973. "; background:transparent url(" + prem_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;}"
  3974. );
  3975. //
  3976. $('body').append(' <div id="warlc-progressbox">\
  3977. <div class="warlc-progressbar"></div>\
  3978. <span class="warlc-progressitem alive"></span> - \
  3979. <span class="warlc-progressitem dead"></span> - \
  3980. <span class="warlc-progressitem unava"></span> - \
  3981. <span class="warlc-progressitem prem"></span> - \
  3982. <span class="warlc-progressitem processing"></span>\
  3983. </div>');
  3984. $('#warlc-progressbox').hide().click(function(){
  3985. clearInterval(intervalId);
  3986. $(this).hide();
  3987. return false;
  3988. });
  3989. $(".warlc-progressbar").progressbar({complete: function(){
  3990. $(this).fadeOut();
  3991. clearInterval(intervalId); //stop refreshing the stats
  3992. }
  3993. })
  3994. .one('progressbarchange', function(){$('#warlc-progressbox').show();});
  3995. }
  3996. /**
  3997. * Updates progress data in progress box
  3998. */
  3999. function updateProgress()
  4000. {
  4001. $("#warlc-progressbox").attr('aria-valuenow', Math.round(((100 / cLinksTotal) * cLinksProcessed)));
  4002. if (cLinksTotal) // some links were detected on page
  4003. {
  4004. var percProgress = Math.round(((100 / cLinksTotal) * cLinksProcessed));
  4005. var $progressItems = $('#warlc-progressbox > .warlc-progressitem');
  4006. $(".warlc-progressbar").progressbar('option', 'value', percProgress);
  4007. if ((cLinksTotal - cLinksProcessed) == 0)
  4008. {
  4009. $progressItems.first().text(cLinksAlive)
  4010. .next().text(cLinksDead)
  4011. .next().text(cLinksUnava)
  4012. .next().text(cLinksprem)
  4013. .next().remove();
  4014. $('#warlc-progressbox').html($('#warlc-progressbox').html().substr(0,$('#warlc-progressbox').html().lastIndexOf(">")+1));
  4015. $('#warlc-progressbox div:first-child').remove();
  4016. }
  4017. else
  4018. {
  4019. $progressItems.first().text(cLinksAlive)
  4020. .next().text(cLinksDead)
  4021. .next().text(cLinksUnava)
  4022. .next().text(cLinksprem)
  4023. .next().text(cLinksTotal - cLinksProcessed);
  4024. }
  4025. }
  4026. }
  4027.  
  4028. function check_all_links()
  4029. {
  4030. add_WARLC_style();
  4031.  
  4032. if (Show_progress_stats)
  4033. {
  4034. initProgressBox();
  4035. intervalId = setInterval(function(){updateProgress();}, Progress_box_refresh_rate);
  4036. }
  4037.  
  4038. startBulkCheck(null);
  4039. start(null);
  4040.  
  4041. if (!containers_processed)
  4042. {
  4043. processContainers();
  4044. }
  4045. }
  4046.  
  4047. //Copies all found dead links to clipboard - right now for Scriptish only
  4048. function copy_dead_to_clipboard()
  4049. {
  4050. initClipBoardTools();
  4051.  
  4052. var deadlinksxpath = "//.[@class='adead_link']";
  4053.  
  4054. var foundlinks = document.evaluate(deadlinksxpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4055. var foundlinkstext = '';
  4056.  
  4057. var foundlinkIdx = foundlinks.snapshotLength;
  4058.  
  4059. while(foundlinkIdx--)
  4060. {
  4061. if (foundlinks.snapshotItem(foundlinkIdx).innerHTML != ' x')
  4062. foundlinkstext += foundlinks.snapshotItem(foundlinkIdx).innerHTML.replace(/\[\/hide:\w+\]/,"") + '\n';
  4063. }
  4064.  
  4065. unsafeWindow.copyToClipboard(foundlinkstext);
  4066. }
  4067.  
  4068. function toggle_autocheck()
  4069. {
  4070. var currentState = GM_getValue("Autocheck", false);
  4071. GM_setValue("Autocheck", !currentState);
  4072.  
  4073. if (currentState == true)
  4074. {
  4075. sendMessage('Autocheck disabled', 'red');
  4076. }
  4077. else
  4078. {
  4079. sendMessage('Autocheck enabled', 'SpringGreen');
  4080. }
  4081. }
  4082. function toggle_Enable_Anonymizer()
  4083. {
  4084. var currentState = GM_getValue("Enable_Anonymizer", false);
  4085. GM_setValue("Enable_Anonymizer", !currentState);
  4086.  
  4087. if (currentState == true)
  4088. {
  4089. GM_setValue("Ref_anonymize_service", "");
  4090. sendMessage('Anonymizer Disabled', 'red');
  4091. }
  4092. else
  4093. {
  4094. GM_setValue("Ref_anonymize_service", "http://hiderefer.com/?");
  4095. sendMessage('Anonymizer Enabled', 'SpringGreen');
  4096. }
  4097. }
  4098.  
  4099. function KeyDownHandler(event)
  4100. {
  4101. var kcode = (event.keyCode) ? event.keyCode : event.which;
  4102. if (event.ctrlKey && event.altKey)
  4103. {
  4104. switch(kcode)
  4105. {
  4106. case 65 : check_all_links(); break;
  4107. case 67 : configuration(); break;
  4108. case 68 : copy_dead_to_clipboard(); break;
  4109. case 87 : toggle_autocheck(); break;
  4110. case 90 : toggle_Enable_Anonymizer(); break;
  4111. }
  4112. }
  4113. }
  4114.  
  4115. //
  4116. //
  4117. // SCRIPT EXECUTION START POINT
  4118. //
  4119. //
  4120. // Safari specific GM_getResourceText override
  4121. if (navigator.userAgent.indexOf('Safari') != -1 && navigator.userAgent.indexOf('Chrome') == -1)
  4122. {
  4123. GM_getResourceText = function(res) {
  4124. var $cssText = GM_getValue("jquery_css", "");
  4125. if ($cssText == "")
  4126. {
  4127. GM_xmlhttpRequest(
  4128. {
  4129. method: 'GET',
  4130. url: 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css',
  4131. onload: function (result)
  4132. {
  4133. GM_setValue("jquery_css", result.responseText);
  4134. window.location.reload();
  4135. }
  4136. });
  4137. }
  4138. else
  4139. {
  4140. return $cssText;
  4141. }
  4142. }
  4143. }
  4144. var jQueryUICSS = GM_getResourceText("jQueryUICSS");
  4145. GM_addStyle(jQueryUICSS);
  4146. //init the stuff
  4147. setVariables();
  4148. initBulkCheck();
  4149. //init info boxes
  4150. messageBox.style.position = 'fixed';
  4151. messageBox.style.top = '20px';
  4152. messageBox.style.left = '10px';
  4153. messageBox.style.opacity = '0.85';
  4154. messageBox.style.background = 'DimGray';
  4155. messageBox.style.fontSize = '36px';
  4156. document.body.appendChild(messageBox);
  4157.  
  4158. //register GM menu commands & keyboard shortcut event handler
  4159. if (Keyboard_functions)
  4160. {
  4161. $(document).keydown(KeyDownHandler);
  4162. GM_registerMenuCommand("[W.A.R. Links Checker] Configuration (" + first_key_keycodename + "+" + second_key_keycodename + "+" + String.fromCharCode(CONFIGURATION_KEYCODE) + ")", configuration);
  4163. 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);
  4164. }
  4165. else
  4166. {
  4167. GM_registerMenuCommand("[W.A.R. Links Checker] Configuration", configuration);
  4168. GM_registerMenuCommand("[W.A.R. Links Checker] Check The Links In This Page", check_all_links);
  4169. }
  4170.  
  4171. //start linkchecking
  4172. if (Autocheck)
  4173. {
  4174. $(document).ready(check_all_links);
  4175. }
  4176.  
  4177. //
  4178. //
  4179. // SCRIPT EXECUTION END POINT
  4180. //
  4181. //
  4182.  
  4183. //shows configuration box
  4184. function configuration()
  4185. {
  4186.  
  4187. //prevent multiple creating of config window
  4188. if ($("#hideshow").length)
  4189. {
  4190. $("#hideshow").show();
  4191. return;
  4192. }
  4193.  
  4194. var configcss = '\
  4195. .popup_block .popup fieldset{\
  4196. padding: 1%;\
  4197. border-style: solid;\
  4198. border-width: 1px;\
  4199. border-color: gray;\
  4200. margin-bottom: 1px;\
  4201. }\
  4202. #h3hideshowtitle{\
  4203. font-size: 2em;\
  4204. }\
  4205. #h3hideshow{\
  4206. font-size: 1.5em;\
  4207. }\
  4208. #imghideshow {\
  4209. border: none;\
  4210. }\
  4211. #plusimage{\
  4212. display:inline;\
  4213. }\
  4214. #hideshow {\
  4215. position: fixed;\
  4216. width: 100%;\
  4217. height: 100%;\
  4218. top: 0;\
  4219. left: 0;\
  4220. font-size:12px;\
  4221. z-index:2147483645;\
  4222. text-align:left;\
  4223. }\
  4224. #fade {\
  4225. background: #000;\
  4226. position: fixed;\
  4227. width: 100%;\
  4228. height: 100%;\
  4229. opacity: .80;\
  4230. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";\
  4231. left: 0;\
  4232. z-index: 10;\
  4233. }\
  4234. .popup_block {\
  4235. font-family:verdana;\
  4236. color:black;\
  4237. background: #ddd;\
  4238. padding: 10px 20px;\
  4239. border: 2px solid DarkOrange;\
  4240. float: left;\
  4241. width: 700px;\
  4242. position: absolute;\
  4243. top: 7%;\
  4244. left: 50%;\
  4245. bottom: 7%;\
  4246. margin: 0 0 0 -350px;\
  4247. -moz-border-radius:10px;\
  4248. z-index: 100;\
  4249. \
  4250. }\
  4251. .popup_block .popup {\
  4252. float: left;\
  4253. width: 100%;\
  4254. background: #fff;\
  4255. margin: 10px 0;\
  4256. padding: 0px 0 0px;\
  4257. border-left: 1px solid #bbb;\
  4258. border-top: 1px solid #bbb;\
  4259. border-right: 1px solid #bbb;\
  4260. }\
  4261. #h3hideshow{\
  4262. margin: 1px 0 0px;\
  4263. padding: 1px 10px;\
  4264. border-bottom: 1px solid #bbb;\
  4265. font-size: 1.5em;\
  4266. font-weight: normal;\
  4267. cursor:pointer;\
  4268. background:#DDDDDD none repeat scroll 0 0;\
  4269. }\
  4270. #h3hideshow:hover{\
  4271. background:#C0BEBE none repeat scroll 0 0;\
  4272. }\
  4273. #h3hideshowtitle{\
  4274. margin: 2px 0 0px;\
  4275. padding: 7px 10px;\
  4276. border-bottom: 1px solid #bbb;\
  4277. font-size: 1.5em;\
  4278. font-weight: normal;\
  4279. }\
  4280. .popup_block .popup a {\
  4281. color:DarkSkyBlue;\
  4282. text-decoration:none;\
  4283. }\
  4284. .popup p {\
  4285. padding: 1px 10px;\
  4286. margin: 0px 0;\
  4287. -x-system-font:none;\
  4288. font-family:verdana,geneva,lucida,"lucida grande",arial,helvetica,sans-serif;\
  4289. font-size:10pt;\
  4290. font-size-adjust:none;\
  4291. font-stretch:normal;\
  4292. font-style:normal;\
  4293. font-variant:normal;\
  4294. font-weight:normal;\
  4295. line-height:normal;\
  4296. }\
  4297. #sites {\
  4298. padding: 1px 10px;\
  4299. margin: 0px 0;display:inline-block;width:16em;\
  4300. }\
  4301. #dev_ver {\
  4302. color: #00FF00;\
  4303. background: Black;\
  4304. text-align: right;\
  4305. }\
  4306. #sites_suspended {\
  4307. padding: 1px 10px;\
  4308. margin: 0px 0;display:inline-block;width:16em;\
  4309. text-decoration: line-through;\
  4310. }\
  4311. .popup img.cntrl {\
  4312. position: absolute;\
  4313. right: -15px;\
  4314. top: -15px;\
  4315. }\
  4316. #bulk {\
  4317. font-size:8pt;\
  4318. color:orange;\
  4319. padding: 1px 10px;\
  4320. margin: 0px 0;\
  4321. display:inline-block;\
  4322. width:100px;\
  4323. }\
  4324. #note {\
  4325. font-size:7pt;\
  4326. color:gray;\
  4327. padding: 1px 10px;\
  4328. margin: 0px 0;display:inline-block;\
  4329. min-width:100px;\
  4330. }\
  4331. #rednote {\
  4332. font-size:7pt;\
  4333. color:red;\
  4334. padding: 1px 10px;\
  4335. margin: 0px 0;display:inline-block;\
  4336. }\
  4337. #configinfo {\
  4338. font-size:8pt;\
  4339. color:gray;\
  4340. padding: 1px 10px;\
  4341. margin: 0px 0;display:inline-block;width:60em;\
  4342. }\
  4343. #refAnonymizer, #inputColorLive, #inputColorprem, #hostSearchBox2, #hostSearchBox, #inputColorDead, #inputColorTemp, #inputColorCont, #selectAllButton, #selectNoneButton, #invertButton, #selectAllButton2, #selectNoneButton2, #invertButton2 {\
  4344. color:black;\
  4345. border-style: solid;\
  4346. border-width: 1px;\
  4347. border-color: gray;\
  4348. }\
  4349. #h3hideshowcontent {\
  4350. min-height:220px;\
  4351. max-height:220px;\
  4352. overflow:auto;\
  4353. display: none;\
  4354. padding: 10px 10px;\
  4355. }\
  4356. #specinfo{\
  4357. font-size:14px;\
  4358. }\
  4359. .warlc-ui-tab {\
  4360. height:300px;\
  4361. overflow:auto;\
  4362. }\
  4363. #warlcsitelist2, #warlcsitelist1 {\
  4364. height:220px;\
  4365. border-top: 1px solid #ddd;\
  4366. padding-top: 5px;\
  4367. overflow:auto;\
  4368. }\
  4369. input:hover+label {\
  4370. background:#F1F77C;\
  4371. font-size:110%;\
  4372. }\
  4373. ';
  4374.  
  4375. GM_addStyle(configcss);
  4376.  
  4377. var customRulesRefHTML =
  4378. '\
  4379. <br>\
  4380. A custom rule consists of <b>commands</b>. A command must be on its own line and in this form:<br>\
  4381. <b>@keyword</b> <i>parameter</i>\
  4382. <br><br>\
  4383. 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. \
  4384. <br><br>\
  4385. 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.\
  4386. 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.\
  4387. 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.\
  4388. 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,\
  4389. but all commands until the next valid @customrule are ignored.<br><br>\
  4390. Available forms and types:\
  4391. <ul>\
  4392. <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.\
  4393. <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.\
  4394. <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.\
  4395. <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.\
  4396. </ul>\
  4397. Other available commands:<br>\
  4398. (Note: There can be more than 1 (up to 10) of these commands per rule. In that case, any of them will work.)\
  4399. <ul>\
  4400. <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.\
  4401. It can also specify multiple (up to 10) Top Level Domains (.com, .net etc.)<br>\
  4402. <ul>examples:<br>\
  4403. <li>good: <i>filehost.com/download/</i><br>\
  4404. <li>good: <i>download.filehost.net/?d=</i><br>\
  4405. <li>good: <i>filehost. com net co.uk /</i> - multiple TLDs (note the spaces before, between and after TLDs)<br>\
  4406. <li>ok: <i>filehost.com/</i> - works, but will also find links like filehost.com/login etc. Sometimes it\'s unavoidable though.<br>\
  4407. <li>bad: <i>d8523.filehost.com/</i> - d8523 probably is not constant<br>\
  4408. <li>bad: <i>filehost.com/3bfiq5d1</i> - 3bfiq5d1 probably is not constant<br>\
  4409. <li>bad: <i>filehost.com</i> - no slash<br>\
  4410. </ul>\
  4411. \
  4412. <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.\
  4413. 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 \
  4414. &lt;div&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;p&gt; even if there are new lines, tabulators etc.\
  4415. <li><b>@deadmatch</b> <i>pattern</i> - ignored for OBSOLETE, required for others. (For HEADERS some servers return 404 Error \
  4416. 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.)\
  4417. Two spaces again match any whitespace.\
  4418. <li><b>@unavamatch</b> <i>pattern</i> - optional, ignored for OBSOLETE and HEADERS. If found, the link is deemed temporarily unavailable.\
  4419. Two spaces again match any whitespace.\
  4420. <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. \
  4421. <li><b>@deadlink</b> <i>url</i> - optional. Example dead link.\
  4422. </ul>\
  4423. \
  4424. ';
  4425.  
  4426. //close image and css taken from = http://www.sohtanaka.com/web-design/examples/css-popup icon_close.png;
  4427. var configurationinnerHTML =
  4428. '<div id="fade"></div>\
  4429. <div class="popup_block">\
  4430. <div class="popup">\
  4431. <a href="#"><img id="imghideshow" title="Close" class="cntrl" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAfCAYAAAD0ma06AAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAY1SURBVHjapFZbbFRVFN0zd6Yz08dMoUNf9EGxUItJK62I4AOJEYiQoqE+0OgHCiqG+PgQozH6ofyIJiYEMRqNJpggHySlrRM+hCAtajAUaGgEi9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1t9qqWgE3t6uOfCB3gF8FegrBB6x5qrri9688a+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>\
  4433. <div id="warlc-conf-tabs">\
  4434. <ul>\
  4435. <li><a href="#tabs-1">Filehostings</a></li>\
  4436. <li><a href="#tabs-2">Containers</a></li>\
  4437. <li><a href="#tabs-5">Custom rules</a></li>\
  4438. <li><a href="#tabs-3">Settings</a></li>\
  4439. <li><a href="#tabs-4">About</a></li>\
  4440. </ul>\
  4441. <div id="tabs-1" class="warlc-ui-tab">\
  4442. <div class="warlc-ui-buttonset">\
  4443. <input type="button" class="warlc-ui-select-all" value="Select All">\
  4444. <input type="button" class="warlc-ui-select-none" value="Select None">\
  4445. <input type="button" class="warlc-ui-select-invert" value="Invert">\
  4446. </div><br>\
  4447. <div>Search: <input type="textbox" id="hostSearchBox" value=""></div><br>\
  4448. <div id="warlcsitelist1"><span>Empty</span></div>\
  4449. </div>\
  4450. <div id="tabs-2" class="warlc-ui-tab">\
  4451. <div class="warlc-ui-buttonset">\
  4452. <input type="button" class="warlc-ui-select-all" value="Select All">\
  4453. <input type="button" class="warlc-ui-select-none" value="Select None">\
  4454. <input type="button" class="warlc-ui-select-invert" value="Invert">\
  4455. </div><br>\
  4456. <div>Search: <input type="textbox" id="hostSearchBox2" value=""></div><br>\
  4457. <div id="warlcsitelist2"><span>Empty</span></div>\
  4458. </div>\
  4459. <div id="tabs-5" class="warlc-ui-tab">\
  4460. <div class="warlcsettings">\
  4461. <fieldset><input type="checkbox" id="Custom_rules"> Enable custom rules <div id="bulk">EXPERIMENTAL</div></fieldset>\
  4462. <br>\
  4463. <div>Edit custom rules: \
  4464. <a href="#" id="showCustomRulesReference">(<b>Click here to show/hide the reference</b>)</a>\
  4465. <div id="customRulesReference" style="display:none;">'
  4466. + customRulesRefHTML + '\
  4467. </div>\
  4468. <textarea style="width:100%;height:200px;" id="Custom_rules_text"></textarea>\
  4469. </div>\
  4470. </div>\
  4471. </div>\
  4472. <div id="tabs-3" class="warlc-ui-tab">\
  4473. <div class="warlcsettings">\
  4474. <fieldset>\
  4475. <p><input type="checkbox" id="Keyboard_functions"> Enable keyboard shortcuts</p>\
  4476. <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>\
  4477. </fieldset>\
  4478. <fieldset>\
  4479. <p><input type="checkbox" id="Color_DL_links"> Color DL links</p>\
  4480. <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>\
  4481. <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>\
  4482. <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>\
  4483. <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>\
  4484. <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>\
  4485. <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>\
  4486. <p><input type="checkbox" id="Show_line_through_in_dead_links"> Show line through in dead links</p>\
  4487. <p><input type="checkbox" id="Show_black_background_in_DL_links"> Show black background in DL links</p>\
  4488. <p><input type="checkbox" id="Do_not_linkify_DL_links"> Do NOT linkify DL links</p>\
  4489. <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>\
  4490. <p><input type="checkbox" id="Display_full_links_in_link_containers"> Display full links in link containers</p><br>\
  4491. <fieldset>\
  4492. <p><input type="radio" name="warlciconset" value="0"> No icons</p>\
  4493. <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>\
  4494. <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>\
  4495. <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>\
  4496. </fieldset>\
  4497. </fieldset>\
  4498. <fieldset>\
  4499. <div id="sites"><input type="checkbox" id="Autocheck"> Autocheck</div><br><div id="configinfo">Script starts check automatically.</div><br>\
  4500. </fieldset>\
  4501. <fieldset>\
  4502. <div id="sites"><input type="checkbox" id="Show_progress_stats"> Show progress stats</div><br>\
  4503. </fieldset>\
  4504. <fieldset>\
  4505. <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>\
  4506. </fieldset>\
  4507. <fieldset>\
  4508. <p><input type="checkbox" id="Enable_Anonymizer"> Enable Anonymizer</div><div id="bulk">EXPERIMENTAL Note: Checkbox does not work use CTRL+ALT+Z.</p>\
  4509. <div id="sites"><label for="refAnonymizer">Refererer anonymizing service</label><input type="text" id="refAnonymizer" value="' + Ref_anonymize_service + '"></div>\
  4510. </fieldset>\
  4511. </div>\
  4512. </div>\
  4513. <div id="tabs-4" class="warlc-ui-tab">\
  4514. <p><b>Author:</b> <a href="http://www.warlc.5gbfree.com/viewtopic.php?f=12&t=12">mental</a></p>\
  4515. <br />\
  4516. <p><b>Currently supported:</b><br>\
  4517. Filehostings: ' + allHostNames.length + '<br />\
  4518. Containers: ' + allContainerNames.length + '<br />\
  4519. Obsolete sites: ' + allObsoleteNames.length + '<br /></p>\
  4520. <br />\
  4521. <p><b>Based on:</b><br>\
  4522. <a href="http://userscripts-mirror.org/scripts/show/125631.html">W.A.R. Links Checker - Dev</a></p>\
  4523. <br />\
  4524. <p><b>Uses:</b></p>\
  4525. <p>adam_3\'s <a href="http://userscripts-mirror.org/scripts/show/2254">Linkify ting</a> (modified)</p>\
  4526. <p><a href="http://jquery.com/">jQuery</a> JavaScript Library</p>\
  4527. <br />\
  4528. <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>\
  4529. </div>\
  4530. </div>\
  4531. </div>\
  4532. </div>';
  4533. $('body').append('<div id="hideshow">' + configurationinnerHTML + '</div>');
  4534. $("#warlc-conf-tabs").tabs({ fx: { opacity: 'toggle', duration: 'fast' } });
  4535. $("#imghideshow").click(function(event){$("#hideshow").hide(); event.preventDefault();});
  4536. var elmHostList = document.getElementById("warlcsitelist1");
  4537. var elmContainerList = document.getElementById("warlcsitelist2");
  4538. buildSettings();
  4539. buildSitelist("", allHostNames, elmHostList);
  4540. buildSitelist("", allContainerNames, elmContainerList);
  4541. if (DEBUG_MODE)
  4542. {
  4543. //log all sites availability status
  4544. diagSites();
  4545. }
  4546. //handler for checkbox state change
  4547. function changeConfiguration(e)
  4548. {
  4549. var element = e.target;
  4550.  
  4551. if (element.type == 'checkbox')
  4552. {
  4553. if (element.checked == 1)
  4554. {
  4555. GM_setValue(element.id, true);
  4556. }
  4557. else
  4558. {
  4559. GM_setValue(element.id, false);
  4560. }
  4561.  
  4562. }
  4563. setVariables();
  4564. }
  4565.  
  4566. //Selects all filehosting checkboxes
  4567. function selectAll()
  4568. {
  4569. $(":checkbox:visible:not(:checked)").prop("checked",true)
  4570. .each(function(index, element){GM_setValue(this.id, true)});
  4571. }
  4572.  
  4573. //Deselects all filehosting checkboxes
  4574. function selectNone()
  4575. {
  4576. $(":checkbox:visible:checked").prop("checked",false)
  4577. .each(function(index, element){GM_setValue(this.id, false)});
  4578. }
  4579.  
  4580. //Inverts filehosting checkboxes selection
  4581. function selectInvert()
  4582. {
  4583. var $checked = $(":checkbox:visible:checked");
  4584. var $unchecked = $(":checkbox:visible:not(:checked)");
  4585. $unchecked.prop("checked",true)
  4586. .each(function(index, element){GM_setValue(this.id, true)});
  4587. $checked.prop("checked",false)
  4588. .each(function(index, element){GM_setValue(this.id, false)});
  4589. }
  4590. //toggles anonymizer on off
  4591. function Enable_Anonymizer()
  4592. {
  4593. var $checked = $(":checkbox:visible:checked");
  4594. var $unchecked = $(":checkbox:visible:not(:checked)");
  4595. $unchecked.prop("checked",true)
  4596. .each(function(index, element){GM_setValue(this.id, true)});
  4597. $checked.prop("checked",false)
  4598. .each(function(index, element){GM_setValue(this.id, false)});
  4599. }
  4600.  
  4601. function changeRefAnonymizer(){
  4602. GM_setValue("Ref_anonymize_service", $("#refAnonymizer").attr("value"));
  4603. }
  4604.  
  4605. //Sets live links color
  4606. function changeColorLive()
  4607. {
  4608. var inColorLive = document.getElementById("inputColorLive");
  4609. inColorLive.style.background = inColorLive.value;
  4610. GM_setValue("Live_links_color", inColorLive.value);
  4611. }
  4612.  
  4613. //Sets dead links color
  4614. function changeColorDead()
  4615. {
  4616. var inColorDead = document.getElementById("inputColorDead");
  4617. inColorDead.style.background = inColorDead.value;
  4618. GM_setValue("Dead_links_color", inColorDead.value);
  4619. }
  4620.  
  4621. //Sets temp. unavailable links color
  4622. function changeColorTemp()
  4623. {
  4624. var inColorTemp = document.getElementById("inputColorTemp");
  4625. inColorTemp.style.background = inColorTemp.value;
  4626. GM_setValue("Temp_unavailable_links_color", inColorTemp.value);
  4627. }
  4628.  
  4629. //Sets temp. unavailable links color
  4630. function changeColorCont()
  4631. {
  4632. var inColorCont = document.getElementById("inputColorCont");
  4633. inColorCont.style.background = inColorCont.value;
  4634. GM_setValue("Container_links_color", inColorCont.value);
  4635. }
  4636. //Sets premium. links color
  4637. function changeColorprem()
  4638. {
  4639. var inColorprem = document.getElementById("inputColorprem");
  4640. inColorprem.style.background = inColorprem.value;
  4641. GM_setValue("Premium_links_color", inColorprem.value);
  4642. }
  4643.  
  4644. //Diagnose sites for availability
  4645. function diagSites()
  4646. {
  4647. var boxes = document.getElementById("warlcsitelist1").getElementsByTagName("input");
  4648.  
  4649. for (var i = 0, n = boxes.length - 1; i < n; i++)
  4650. {
  4651. if (boxes[i].type == "checkbox")
  4652. {
  4653. checkAvailability(boxes[i]);
  4654. }
  4655. }
  4656.  
  4657. boxes = document.getElementById("warlcsitelist2").getElementsByTagName("input");
  4658.  
  4659. for (var i = 0, n = boxes.length - 1; i < n; i++)
  4660. {
  4661. if (boxes[i].type == "checkbox")
  4662. {
  4663. checkAvailability(boxes[i]);
  4664. }
  4665. }
  4666.  
  4667. function checkAvailability(cbElm)
  4668. {
  4669. var cb = cbElm;
  4670. GM_xmlhttpRequest(
  4671. {
  4672. method: 'HEAD',
  4673. url: 'http://' + cb.nextSibling.textContent.replace(' ', ''),
  4674. headers: {
  4675. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  4676. 'Accept': 'text/xml',
  4677. 'Referer': ""
  4678. },
  4679. onload: function (result)
  4680. {
  4681. if (result.status != 200)
  4682. {
  4683. GM_log(cb.nextSibling.textContent + ' --- status: [' + result.status + '] ' + result.statusText + ', final url: ' + result.finalUrl);
  4684. }
  4685. },
  4686. onerror: function (result)
  4687. {
  4688. if (result.status != 200)
  4689. {
  4690. GM_log(cb.nextSibling.textContent + ' --- status: [' + result.status + '] ' + result.statusText + ', final url: ' + result.finalUrl);
  4691. }
  4692. }
  4693. });
  4694. }
  4695. }
  4696. function buildSettings()
  4697. {
  4698. $(".warlcsettings :checkbox").each(function(){
  4699. $(this).prop("checked", GM_getValue($(this).attr("id")))
  4700. .click(function(e){
  4701. GM_setValue($(this).attr("id"), $(this).prop("checked"));
  4702. setVariables();
  4703. });
  4704. })
  4705. }
  4706. //Dynamic build of host list
  4707. //param search [string] searches for hostnames matching search substring
  4708. //param siteNames [array] array of site names
  4709. //param targetNode [DOM Node] where the list should be built
  4710. // first child node is replaced
  4711. function buildSitelist(search, siteNames, targetNode)
  4712. {
  4713. var searchRegex = new RegExp("\\|?([\\w\\.-]*" + search.replace(/\./g,"\\.").replace(/-/g, "\\-") + "[\\w\\.-]*)\\|?", "i");
  4714. var $targetNode = $(targetNode).empty();
  4715. var searchedSite = "";
  4716. $.each(siteNames, function(i, site){
  4717. if (searchedSite = site.match(searchRegex))
  4718. {
  4719. var baseSite = site.replace(/\|.+/, ""); //filehosting main domain
  4720. //ensuring backward compatibility with the rest of code, to be refactored later
  4721. var oldRSLCvalue = "Check_" + baseSite.replace(/\|.+/, "").replace(/\./g,"_dot_").replace(/-/g, "_dash_") + "_links";
  4722. //
  4723. $targetNode.append('<input type="checkbox" id="' + oldRSLCvalue +'" />\
  4724. <label for="' + oldRSLCvalue + '">' + searchedSite[1] + '</label>' +
  4725. ((searchedSite[1] != baseSite) ? ('<div id="note"> ( ~ ' + baseSite + ' )</div>') : (""))
  4726. );
  4727. $("#" + oldRSLCvalue).prop("checked", GM_getValue(oldRSLCvalue, false))
  4728. .change(changeConfiguration);
  4729. $targetNode.append('<br />');
  4730. }
  4731. });
  4732. $targetNode.append("<hr>");
  4733. //obsolete hosts checkbox
  4734. $targetNode.append('<input type="checkbox" id="Obsolete_file_hosts" /><label for="Obsolete_file_hosts">Obsolete file hosts</label>');
  4735. $("#Obsolete_file_hosts").prop("checked", GM_getValue("Obsolete_file_hosts", false))
  4736. .change(changeConfiguration);
  4737. $targetNode.append('<br />');
  4738. var foundName = "";
  4739. $.each(allObsoleteNames, function(i, site){
  4740. if (foundName = allObsoleteNames[i].match(searchRegex))
  4741. {
  4742. $targetNode.append('<div id="note">' + foundName[1] + '</div>');
  4743. }
  4744. })
  4745. }
  4746. var hostSearchBox = document.getElementById("hostSearchBox");
  4747. hostSearchBox.addEventListener('keyup', function(){buildSitelist(hostSearchBox.value, allHostNames, elmHostList);}, false);
  4748. var hostSearchBox2 = document.getElementById("hostSearchBox2");
  4749. hostSearchBox2.addEventListener('keyup', function(){buildSitelist(hostSearchBox2.value, allContainerNames, elmContainerList);}, false);
  4750. $(".warlc-ui-select-all").click(selectAll).button();
  4751. $(".warlc-ui-select-none").click(selectNone).button();
  4752. $(".warlc-ui-select-invert").click(selectInvert).button();
  4753. $(".warlc-ui-buttonset").buttonset();
  4754. var inColorLive = document.getElementById("inputColorLive");
  4755. inColorLive.addEventListener('keyup', changeColorLive, false);
  4756.  
  4757. var inColorDead = document.getElementById("inputColorDead");
  4758. inColorDead.addEventListener('keyup', changeColorDead, false);
  4759.  
  4760. var inColorTemp = document.getElementById("inputColorTemp");
  4761. inColorTemp.addEventListener('keyup', changeColorTemp, false);
  4762.  
  4763. var inColorCont = document.getElementById("inputColorCont");
  4764. inColorCont.addEventListener('keyup', changeColorCont, false);
  4765. var inColorprem = document.getElementById("inputColorprem");
  4766. inColorprem.addEventListener('keyup', changeColorprem, false);
  4767. $("#refAnonymizer").change(changeRefAnonymizer);
  4768. //buttons and edit boxes init end
  4769.  
  4770. //icon sets radio buttons
  4771. var radioButtons = document.getElementsByName("warlciconset");
  4772. radioButtons[Icon_set].checked = "checked";
  4773.  
  4774. radioButtons[0].addEventListener("change", updateIconSet);
  4775. radioButtons[1].addEventListener("change", updateIconSet);
  4776. radioButtons[2].addEventListener("change", updateIconSet);
  4777. radioButtons[3].addEventListener("change", updateIconSet);
  4778. function updateIconSet()
  4779. {
  4780. GM_setValue("Icon_set", this.value * 1);
  4781. }
  4782. //
  4783. $('#showCustomRulesReference').click(function(e){
  4784. e.preventDefault();
  4785. $('#customRulesReference').toggle();
  4786. });
  4787. $('#Custom_rules_text')
  4788. .val(Custom_rules_text)
  4789. .change(saveCustomRules);
  4790. function saveCustomRules(e)
  4791. {
  4792. var cr = parseCustomRules(this.value);
  4793. if (cr.info.length)
  4794. 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, ' '));
  4795. GM_setValue('Custom_rules_text', this.value);
  4796. GM_setValue('last_custom_rules_nag', ''+new Date().getTime()); //reset nag
  4797. }
  4798. }
  4799.  
  4800. //begin standard link checking algorithm
  4801. function start(filterId)
  4802. {
  4803. var doNotLinkify = Do_not_linkify_DL_links;
  4804.  
  4805. // USER SELECTED FILE HOSTS INITIALIZATION START
  4806. var http_file_hosts = new Array(); //standard hostings
  4807. var http_file_hosts_coded = new Array(); //hostings which has to be decoded to obtain real checkable link
  4808. var http_file_hosts_obsolete = new Array(); //dead hostings
  4809. var http_file_hosts_headers_only = new Array(); //hostings with direct download, must be handled via headers only
  4810.  
  4811. initFileHosts();
  4812. initFileHostsHeadersOnly();
  4813. initFileHostsCustom(); //CustomRules
  4814. // USER SELECTED FILE HOSTS INITIALIZATION END
  4815.  
  4816. // LINKIFICATION START
  4817. var totalxpath = '';
  4818. var totalxpathcoded = '';
  4819. var totalxpathobsolete = '';
  4820. var totalxpathheadersonly = '';
  4821. var totalourls = '';
  4822.  
  4823. var filehostLen = http_file_hosts.length;
  4824. var filehostCodedLen = http_file_hosts_coded.length;
  4825. var filehostObsoleteLen = http_file_hosts_obsolete.length;
  4826. var filehostHeadersOnlyLen = http_file_hosts_headers_only.length;
  4827.  
  4828. var filehostIdx = filehostLen;
  4829. var filehostCodedIdx = filehostCodedLen;
  4830. var filehostObsoleteIdx = filehostObsoleteLen;
  4831. var filehostHeadersOnlyIdx = filehostHeadersOnlyLen;
  4832.  
  4833. if ((filehostIdx == 0) && (filehostCodedIdx == 0) && (filehostHeadersOnlyIdx == 0) && (filehostObsoleteIdx == 0))
  4834. return;
  4835.  
  4836. while (filehostIdx--)
  4837. {
  4838. totalourls += http_file_hosts[filehostIdx][0] + '|';
  4839. totalxpath += http_file_hosts[filehostIdx][4] + '|';
  4840. }
  4841.  
  4842. while (filehostCodedIdx--)
  4843. {
  4844. totalourls += http_file_hosts_coded[filehostCodedIdx][0] + '|';
  4845. totalxpathcoded += http_file_hosts_coded[filehostCodedIdx][3] + '|';
  4846. }
  4847.  
  4848. while (filehostObsoleteIdx--)
  4849. {
  4850. totalourls += http_file_hosts_obsolete[filehostObsoleteIdx][0] + '|';
  4851. totalxpathobsolete += http_file_hosts_obsolete[filehostObsoleteIdx][1] + '|';
  4852. }
  4853.  
  4854. while (filehostHeadersOnlyIdx--)
  4855. {
  4856. totalourls += http_file_hosts_headers_only[filehostHeadersOnlyIdx][0] + '|';
  4857. totalxpathheadersonly += http_file_hosts_headers_only[filehostHeadersOnlyIdx][3] + '|';
  4858. }
  4859.  
  4860. totalourls = totalourls.replace(/\|$/g, "");
  4861. //TODO: further refactoring needed
  4862. totalxpath = totalxpath.replace(/\]\|\/\/a\[/g, " or ");
  4863. totalxpath = totalxpath.replace(/\]\|/, ')]');
  4864. totalxpathcoded = totalxpathcoded.replace(/\]\|\/\/a\[/g, " or ");
  4865. totalxpathcoded = totalxpathcoded.replace(/\]\|/, ')]');
  4866. totalxpathobsolete = totalxpathobsolete.replace(/\]\|\/\/a\[/g, " or ");
  4867. totalxpathobsolete = totalxpathobsolete.replace(/\]\|/, ')]');
  4868. totalxpathheadersonly = totalxpathheadersonly.replace(/\]\|\/\/a\[/g, " or ");
  4869. totalxpathheadersonly = totalxpathheadersonly.replace(/\]\|/, ')]');
  4870. if (filterId != null) //insert id restriction in the xpath
  4871. {
  4872. totalxpath = totalxpath.replace(/\[/g, "[@class='" + filterId + "' and (");
  4873. totalxpathcoded = totalxpathcoded.replace(/\[/g, "[@class='" + filterId + "' and (");
  4874. totalxpathobsolete = totalxpathobsolete.replace(/\[/g, "[@class='" + filterId + "' and (");
  4875. totalxpathheadersonly = totalxpathheadersonly.replace(/\[/g, "[@class='" + filterId + "' and (");
  4876. }
  4877. else
  4878. {
  4879. totalxpath = totalxpath.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4880. totalxpathcoded = totalxpathcoded.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4881. totalxpathobsolete = totalxpathobsolete.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4882. totalxpathheadersonly = totalxpathheadersonly.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4883. }
  4884. linkify(totalourls);
  4885. //LINKIFICATION END
  4886. //ENCRYPTED LINKS PROCESSING START
  4887. if (http_file_hosts_coded.length > 0)
  4888. {
  4889. var linksCoded = document.evaluate(totalxpathcoded, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4890.  
  4891. // decrypt coded links (redirects, link protectors etc.)
  4892. if (linksCoded.snapshotLength > 0)
  4893. {
  4894. var link;
  4895. var reallinkreg;
  4896. var reallinkcorrection;
  4897.  
  4898. if (filterId == null)
  4899. {
  4900. cLinksTotal += linksCoded.snapshotLength;
  4901. }
  4902.  
  4903. var y = linksCoded.snapshotLength - 1;
  4904. do
  4905. {
  4906. // linksCoded.snapshotItem(y).id = 'processing_link';
  4907. link = linksCoded.snapshotItem(y);
  4908. filehostIdx = filehostCodedLen;
  4909. while (filehostIdx--)
  4910. {
  4911. if (link.href.match(http_file_hosts_coded[filehostIdx][0]))
  4912. {
  4913. link.href = link.href.replace(/http:\/\/.*?(?:\?|=)http:\/\//, 'http://');
  4914. reallinkreg = http_file_hosts_coded[filehostIdx][1];
  4915. reallinkcorrection = http_file_hosts_coded[filehostIdx][2];
  4916.  
  4917. decurl(link, reallinkreg, reallinkcorrection);
  4918. break;
  4919. }
  4920. }
  4921. }
  4922. while (y--);
  4923. }
  4924. }
  4925. //ENCRYPTED LINKS PROCESSING END
  4926.  
  4927. //STANDARD LINKCHECKING START
  4928. if (http_file_hosts.length > 0)
  4929. {
  4930. var lianks = document.evaluate(totalxpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4931.  
  4932. if (filterId == null)
  4933. {
  4934. cLinksTotal += lianks.snapshotLength;
  4935. }
  4936.  
  4937. if (lianks.snapshotLength > 0)
  4938. {
  4939. var link;
  4940.  
  4941. var URL = "";
  4942. var name = "";
  4943. var isAliveRegex = "";
  4944. var isDeadRegex = "";
  4945. var isUnavaRegex = "";
  4946. var ispremRegex = "";
  4947. var tryLoop = false;
  4948.  
  4949. var y = lianks.snapshotLength;
  4950.  
  4951. while (y--)
  4952. {
  4953. link = lianks.snapshotItem(y);
  4954.  
  4955. filehostIdx = filehostLen;
  4956. while (filehostIdx--)
  4957. {
  4958. if (link.href.match(http_file_hosts[filehostIdx][0]))
  4959. {
  4960. link.href = link.href.replace(/http:\/\/.*?http:\/\//, 'http://'); //anonymizers
  4961. isAliveRegex = http_file_hosts[filehostIdx][1];
  4962. isDeadRegex = http_file_hosts[filehostIdx][2];
  4963. isUnavaRegex = http_file_hosts[filehostIdx][3];
  4964. ispremRegex = http_file_hosts[filehostIdx][6];
  4965. tryLoop = http_file_hosts[filehostIdx][5];
  4966.  
  4967. geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, tryLoop);
  4968.  
  4969. break;
  4970. }
  4971. }
  4972. }
  4973. }
  4974. }
  4975. //STANDARD LINKCHECKING END
  4976. //OBSOLETE FILE HOSTS PROCESSING START
  4977. if (filehostObsoleteLen > 0)
  4978. {
  4979. var obsoletelinks = document.evaluate(totalxpathobsolete, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4980.  
  4981. var obsoleteLink;
  4982.  
  4983. //check links
  4984. if (obsoletelinks.snapshotLength > 0)
  4985. {
  4986. var y = obsoletelinks.snapshotLength;
  4987.  
  4988. if (filterId == null)
  4989. {
  4990. cLinksTotal += y;
  4991. }
  4992.  
  4993. while (y--)
  4994. {
  4995. obsoleteLink = obsoletelinks.snapshotItem(y);
  4996.  
  4997. if (Display_tooltip_info)
  4998. {
  4999. obsoleteLink.warlc_error = 'Cause of error: <b>Obsolete filehosting.</b>';
  5000. }
  5001. displayTheCheckedLink(obsoleteLink, 'adead_link');
  5002. }
  5003. }
  5004. }
  5005. //OBSOLETE FILE HOSTS PROCESSING END
  5006.  
  5007. //DIRECT LINKCHECKING START
  5008. if (http_file_hosts_headers_only.length > 0)
  5009. {
  5010. var links = document.evaluate(totalxpathheadersonly, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  5011.  
  5012. //check links
  5013. if (links.snapshotLength > 0)
  5014. {
  5015. var link;
  5016. var isAliveRegex;
  5017. var isDeadRegex;
  5018. var ispremRegex;
  5019.  
  5020. var y = links.snapshotLength;
  5021.  
  5022.  
  5023. if (filterId == null)
  5024. {
  5025. cLinksTotal += y;
  5026. }
  5027.  
  5028. while (y--)
  5029. {
  5030. // links.snapshotItem(y).id = 'processing_link';
  5031. link = links.snapshotItem(y);
  5032. filehostIdx = filehostHeadersOnlyLen;
  5033. while (filehostIdx--)
  5034. {
  5035. if (link.href.match(http_file_hosts_headers_only[filehostIdx][0]))
  5036. {
  5037. link.href = link.href.replace(/http:\/\/.*?(?:\?|=)http:\/\//, 'http://');
  5038. isAliveRegex = http_file_hosts_headers_only[filehostIdx][1];
  5039. isDeadRegex = http_file_hosts_headers_only[filehostIdx][2];
  5040. ispremRegex = http_file_hosts_headers_only[filehostIdx][3];
  5041.  
  5042. geturlHeader(link, isAliveRegex, isDeadRegex, ispremRegex);
  5043.  
  5044. break;
  5045. }
  5046. }
  5047. }
  5048.  
  5049. }
  5050. }
  5051. //DIRECT LINKCHECKING END
  5052.  
  5053.  
  5054. //finds the real url on the page, replaces link.href with it and calls geturl
  5055. function decurl(link, reallinkreg, reallinkcorrection)
  5056. {
  5057.  
  5058. GM_xmlhttpRequest(
  5059. {
  5060. method: 'GET',
  5061. url: link.href,
  5062. headers: {
  5063. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  5064. 'Accept': 'text/xml',
  5065. 'Referer': ""
  5066. },
  5067. onload: function (result)
  5068. {
  5069. // cLinksProcessed++;
  5070.  
  5071. var reallink = result.responseText.match(reallinkreg)[0];
  5072. reallink = reallink.replace(new RegExp(reallinkcorrection, "g"), "");
  5073.  
  5074. link.href = reallink;
  5075.  
  5076. var i = http_file_hosts.length - 1;
  5077. do
  5078. {
  5079. if ((reallink.match(http_file_hosts[i][0])))
  5080. {
  5081. link.href = link.href.replace(/http:\/\/.*?\?http:\/\//, 'http://');
  5082. var isAliveRegex = http_file_hosts[i][1];
  5083. var isDeadRegex = http_file_hosts[i][2];
  5084. var isUnavaRegex = http_file_hosts[i][3];
  5085. var ispremRegex = http_file_hosts[i][4];
  5086.  
  5087. geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, 50);
  5088.  
  5089. break;
  5090. }
  5091. }
  5092. while (i--);
  5093. }
  5094. });
  5095. }
  5096.  
  5097. function randUA()
  5098. {
  5099. //TODO
  5100. }
  5101. //Processes link
  5102. //
  5103. // [string] link link URL
  5104. // [string] isAliveRegex alive link regex
  5105. // [string] isDeadRegex dead link regex
  5106. // [string] isUnavaRegex unavailable link regex
  5107. // [string] ispremRegex premium link regex
  5108. // [boolean] tryLoop repeats request until succeeded
  5109. function geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, tryLoop)
  5110. {
  5111. GM_xmlhttpRequest(
  5112. {
  5113. method: 'GET',
  5114. url: link.href,
  5115. headers: {
  5116. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  5117. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  5118. 'Referer': ""
  5119. },
  5120. onload: function (result)
  5121. {
  5122. var res = result.responseText;
  5123. if (result.responseHeaders.match(/Content-Disposition: attachment; filename=/))//direct download, simple version
  5124. {
  5125. displayTheCheckedLink(link, 'alive_link');
  5126. return;
  5127. }
  5128.  
  5129. if (res.match(isAliveRegex))
  5130. {
  5131. displayTheCheckedLink(link, 'alive_link');
  5132. return;
  5133. }
  5134.  
  5135. if (res.match(isDeadRegex))
  5136. {
  5137. displayTheCheckedLink(link, 'adead_link');
  5138. return;
  5139. }
  5140.  
  5141. if (isUnavaRegex && res.match(isUnavaRegex))
  5142. {
  5143. displayTheCheckedLink(link, 'unava_link');
  5144. return;
  5145. }
  5146. if (res.match(ispremRegex))
  5147. {
  5148. displayTheCheckedLink(link, 'prem_link');
  5149. return;
  5150. }
  5151.  
  5152. var resStatus = result.status;
  5153.  
  5154. if (resStatus == 404)
  5155. {
  5156. displayTheCheckedLink(link, 'adead_link');
  5157. }
  5158. if (resStatus == 500 || resStatus == 503 || resStatus == 403) //not found/available/temp. unava
  5159. {
  5160. if (tryLoop)
  5161. {
  5162. //wait 1-5 seconds and repeat the request
  5163. setTimeout(function(){geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, tryLoop)}, 1000 + (Math.random() * 4000));
  5164. }
  5165. else
  5166. {
  5167. displayTheCheckedLink(link, 'unava_link');
  5168. }
  5169.  
  5170. return;
  5171. }
  5172. },
  5173. onerror: function ()
  5174. {
  5175. displayTheCheckedLink(link, 'unava_link');
  5176. }
  5177. });
  5178. }
  5179.  
  5180. function geturlHeader(link, isAliveRegex, isDeadRegex, ispremRegex)
  5181. {
  5182. GM_xmlhttpRequest(
  5183. {
  5184. method: 'HEAD',
  5185. url: link.href,
  5186. headers: {
  5187. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  5188. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  5189. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  5190. 'Referer': ""
  5191. },
  5192. onload: function (result)
  5193. {
  5194. var resStatus = result.status;
  5195. var resHeaders = "";
  5196. if (resStatus == 403 || resStatus == 404 || resStatus == 500) //not found/available
  5197. {
  5198. displayTheCheckedLink(link, 'adead_link');
  5199. return;
  5200. }
  5201.  
  5202. resHeaders = result.responseHeaders;
  5203.  
  5204. if (resHeaders.match(isDeadRegex))
  5205. {
  5206. displayTheCheckedLink(link, 'adead_link');
  5207. return;
  5208. }
  5209.  
  5210. if (resHeaders.match(isAliveRegex))
  5211. {
  5212. displayTheCheckedLink(link, 'alive_link');
  5213. return;
  5214. }
  5215. if (resHeaders.match(ispremRegex))
  5216. {
  5217. displayTheCheckedLink(link, 'prem_link');
  5218. return;
  5219. }
  5220. },
  5221. onerror: function ()
  5222. {
  5223. displayTheCheckedLink(link, 'unava_link');
  5224. }
  5225. });
  5226. }
  5227.  
  5228. //Delinkfifies the <a> element object
  5229. function delinkifyLink(link)
  5230. {
  5231. var spanElm = document.createElement("span");
  5232. spanElm.className = link.className;
  5233. spanElm.innerHTML = link.innerHTML;
  5234.  
  5235. if (Display_tooltip_info)
  5236. {
  5237. spanElm.href = link.href;
  5238. spanElm.warlc_error = link.warlc_error;
  5239. switch (link.className){
  5240. case "alive_link": spanElm.addEventListener("mouseover", displayTooltipInfo, false); break
  5241. case "adead_link": spanElm.addEventListener("mouseover", displayTooltipError, false); break;
  5242. case "unava_link": //reserved
  5243. case "prem_link": spanElm.addEventListener("mouseover", displayTooltipError, false); break;
  5244. default:
  5245. }
  5246. }
  5247. link.parentNode.replaceChild(spanElm, link);
  5248. }
  5249.  
  5250. //Assigns result status to the <a> element object and calls delinkifying eventually
  5251. //Possible result states: adead_link, alive_link, unava_link, prem_link
  5252. function displayTheCheckedLink(link, resultStatus)
  5253. {
  5254. link.className = resultStatus;
  5255. link.href = Ref_anonymize_service + link.href;
  5256. if (Display_tooltip_info)
  5257. {
  5258. switch (resultStatus){
  5259. case "alive_link": link.addEventListener("mouseover", displayTooltipInfo, false); break
  5260. case "adead_link": link.addEventListener("mouseover", displayTooltipError, false); break;
  5261. case "unava_link": //reserved
  5262. case "prem_link": link.addEventListener("mouseover", displayTooltipInfo, false); break
  5263. default:
  5264. }
  5265. }
  5266. if (doNotLinkify)
  5267. {
  5268. delinkifyLink(link);
  5269. }
  5270. cLinksProcessed++;
  5271.  
  5272. if (resultStatus == "alive_link")
  5273. {
  5274. cLinksAlive++;
  5275. return;
  5276. }
  5277.  
  5278. if (resultStatus == "adead_link")
  5279. {
  5280. cLinksDead++;
  5281. return;
  5282. }
  5283.  
  5284. if (resultStatus == "unava_link")
  5285. {
  5286. cLinksUnava++;
  5287. }
  5288. if (resultStatus == "prem_link")
  5289. {
  5290. cLinksprem++;
  5291. return;
  5292. }
  5293. }
  5294.  
  5295.  
  5296. function initFileHosts()
  5297. {
  5298.  
  5299. function addObsoleteHost(linkRegex, xpathEx)
  5300. {
  5301. var host = new Array(2);
  5302. host[0] = linkRegex;
  5303. host[1] = xpathEx;
  5304. http_file_hosts_obsolete.push(host);
  5305. }
  5306.  
  5307. //obsolete file hosts init start
  5308. if (Obsolete_file_hosts)
  5309. {
  5310. addObsoleteHost("uloz\.cz\/show\/file","//a[contains(@href,'uloz.cz')]");
  5311. addObsoleteHost("storage\\.to\/get","//a[contains(@href,'storage.to')]");
  5312. addObsoleteHost("iskladka\\.cz\/download","//a[contains(@href,'iskladka.cz')]");
  5313. addObsoleteHost("file-rack\\.com\/files","//a[contains(@href,'file-rack.com')]");
  5314. addObsoleteHost("fast-load\\.net\/(\/)?index","//a[contains(@href,'fast-load.net')]");
  5315. addObsoleteHost("subory\\.sk\/download","//a[contains(@href,'subory.sk')]");
  5316. addObsoleteHost("bigandfree\\.com\/\\d+","//a[contains(@href,'bigandfree.com')]");
  5317. addObsoleteHost("fileop\\.com\/\\w+","//a[contains(@href,'fileop.com')]");
  5318. addObsoleteHost("mujsoubor\\.cz\/file\/","//a[contains(@href,'mujsoubor.cz')]");
  5319. addObsoleteHost("sendfile\\.to\/\\w+","//a[contains(@href,'sendfile.to')]");
  5320. addObsoleteHost("superfastfile\\.com\/\\w+","//a[contains(@href,'superfastfile.com')]");
  5321. addObsoleteHost("quickyshare\\.com\/\\w+","//a[contains(@href,'quickyshare.com/')]");
  5322. addObsoleteHost("duckload\\.com\/(?:d|play)","//a[contains(@href,'duckload.com')]");
  5323. addObsoleteHost("uploadstore\\.net\/\\w+","//a[contains(@href,'uploadstore.net')]");
  5324. addObsoleteHost("meinupload\\.com\/dl\/\\d+","//a[contains(@href,'meinupload.com/dl')]");
  5325. addObsoleteHost("dualshare\\.com\/\\w+","//a[contains(@href,'dualshare.com')]");
  5326. addObsoleteHost("2xupload\\.(?:to|de)\/file\/\\w+","//a[contains(@href,'2xupload.to') or contains(@href,'2xupload.de')]");
  5327. addObsoleteHost("oxedion\\.com\/index\\.php\/download\/\\w+","//a[contains(@href,'oxedion.com/index')]");
  5328. addObsoleteHost("uploadline\\.com\/\\d+","//a[contains(@href,'uploadline.com')]");
  5329. addObsoleteHost("dll\\.bz\/file\/\\d+","//a[contains(@href,'dll.bz/file')]");
  5330. addObsoleteHost("movieshare\\.in\/\\w+","//a[contains(@href,'movieshare.in')]");
  5331. addObsoleteHost("milledrive\\.com\/files\/\\d+","//a[contains(@href,'milledrive.com')]");
  5332. addObsoleteHost("quickupload\\.net\/\\w+","//a[contains(@href,'quickupload.net')]");
  5333. addObsoleteHost("safelink\\.in\/\\w+","//a[contains(@href,'safelink.in')]");
  5334. addObsoleteHost("pyramidfiles\\.com\/\\w+","//a[contains(@href,'pyramidfiles.com/')]");
  5335. addObsoleteHost("(?:cloudnator|shragle)\\.com\/files","//a[contains(@href,'cloudnator.com/files') or contains(@href,'shragle.com/files')]");
  5336. addObsoleteHost("batshare\\.com\/\\w+","//a[contains(@href,'batshare.com/')]");
  5337. addObsoleteHost("bitroad\\.net\/download","//a[contains(@href,'bitroad.net/download')]");
  5338. addObsoleteHost("metadivx\\.com\/\\w+","//a[contains(@href,'metadivx.com')]");
  5339. addObsoleteHost("filegaze\\.com\/\\w+","//a[contains(@href,'filegaze.com/')]");
  5340. addObsoleteHost("bulletupload\\.com\/\\w+","//a[contains(@href,'bulletupload.com/')]");
  5341. addObsoleteHost("sharefilehost\\.com\/\\w+","//a[contains(@href,'sharefilehost.com/')]");
  5342. addObsoleteHost("fireuploads\\.net\/\\w+","//a[contains(@href,'fireuploads.net/')]");
  5343. addObsoleteHost("divxlink\\.com\/\\w+","//a[contains(@href,'divxlink.com/')]");
  5344. addObsoleteHost("bzlink\\.us\/\\w+","//a[contains(@href,'bzlink.us/')]");
  5345. addObsoleteHost("filetechnology\\.com\/\\w+","//a[contains(@href,'filetechnology.com/')]");
  5346. addObsoleteHost("filecosy\\.com\/\\w+","//a[contains(@href,'filecosy.com/')]");
  5347. addObsoleteHost("fileserver\\.cc\/\\w+","//a[contains(@href,'fileserver.cc/')]");
  5348. addObsoleteHost("shafiles\\.me\/\\w+","//a[contains(@href,'shafiles.me/')]");
  5349. addObsoleteHost("xfileshare\\.eu\/\\w+","//a[contains(@href,'xfileshare.eu/')]");
  5350. addObsoleteHost("uploadboost\\.com\/\\w+","//a[contains(@href,'uploadboost.com/')]");
  5351. addObsoleteHost("uploadoz\\.com\/\\w+","//a[contains(@href,'uploadoz.com/')]");
  5352. addObsoleteHost("ihostia\\.com\/\\w+","//a[contains(@href,'ihostia.com/')]");
  5353. addObsoleteHost("shareupload\\.com\/\\w+","//a[contains(@href,'shareupload.com/')]");
  5354. addObsoleteHost("ovfile\\.com\/\\w+","//a[contains(@href,'ovfile.com/')]");
  5355. addObsoleteHost("stahuj\\.to\/\\w+","//a[contains(@href,'stahuj.to/')]");
  5356. addObsoleteHost("gigfiles\\.net\/\\w+","//a[contains(@href,'gigfiles.net/')]");
  5357. addObsoleteHost("vidhog\\.com\/\\w+","//a[contains(@href,'vidhog.com/')]");
  5358. addObsoleteHost("filelaser\\.com\/\\w+","//a[contains(@href,'filelaser.com/')]");
  5359. addObsoleteHost("holderfile\\.com\/\\w+","//a[contains(@href,'holderfile.com/')]");
  5360. addObsoleteHost("fileduct\\.(?:com|net)\/\\w+","//a[contains(@href,'fileduct.com/') or contains(@href,'fileduct.net')]");
  5361. addObsoleteHost("filefat\\.com\/\\w+","//a[contains(@href,'filefat.com/')]");
  5362. addObsoleteHost("restfile\\.com\/\\w+","//a[contains(@href,'restfile.com/')]");
  5363. addObsoleteHost("filemashine\\.com\\/download\/\\w+","//a[contains(@href,'filemashine.com/download')]");
  5364. addObsoleteHost("cloudnxt\\.net\/\\w+","//a[contains(@href,'cloudnxt.net/')]");
  5365. addObsoleteHost("uploadrack\\.com\/\\w+","//a[contains(@href,'uploadrack.com')]");
  5366. addObsoleteHost("teradepot\\.com\/\\w+","//a[contains(@href,'teradepot.com')]");
  5367. addObsoleteHost("dataup\\.to\/\\d+\/","//a[contains(@href,'dataup.to')]");
  5368. addObsoleteHost("upit\\.to\/file:\\d+","//a[contains(@href,'upit.to/file')]");
  5369. addObsoleteHost("badongo\\.(?:com|net)\/(?:\\w\\w\/|)(?:vid|cfile|file|pt)\/\\w+","//a[contains(@href,'badongo.com') or contains(@href,'badongo.net')]");
  5370. addObsoleteHost("driveway\\.com\/\\w+","//a[contains(@href,'driveway.com')]");
  5371. addObsoleteHost("eatlime\\.com\/download","//a[contains(@href,'eatlime.com/download')]");
  5372. addObsoleteHost("a2zuploads\\.com\/id\\w+","//a[contains(@href,'a2zuploads.com/id')]");
  5373. addObsoleteHost("friendlyfiles\\.net\/download\/\\w+\/","//a[contains(@href,'friendlyfiles.net/download')]");
  5374. addObsoleteHost("flyfile\\.us\/\\w+","//a[contains(@href,'flyfile.us')]");
  5375. addObsoleteHost("speedyshare\\.com\/\\w+","//a[contains(@href,'speedyshare.com')]");
  5376. addObsoleteHost("brontofile\\.com\/download","//a[contains(@href,'brontofile.com/download')]");
  5377. addObsoleteHost("uploadspace\\.eu\/\\w+","//a[contains(@href,'uploadspace.eu')]");
  5378. addObsoleteHost("fooget\\.com\/\\w+","//a[contains(@href,'fooget.com/')]");
  5379. addObsoleteHost("file-bit.net\/\\w+","//a[contains(@href,'file-bit.net/')]");
  5380. addObsoleteHost("keepfile\\.com\/\\w+","//a[contains(@href,'http://keepfile.com')]");
  5381. addObsoleteHost("piggyshare\\.com\/file\/\\w+","//a[contains(@href,'piggyshare.com')]");
  5382. addObsoleteHost("filecrown\\.com\/\\w+","//a[contains(@href,'filecrown.com')]");
  5383. addObsoleteHost("6giga\\.com\/\\w+","//a[contains(@href,'6giga.com')]");
  5384. addObsoleteHost("uploadjockey\\.com\/download\/\\w+","//a[contains(@href,'uploadjockey.com/download')]");
  5385. addObsoleteHost("bluehost\\.to\/dl=\\w+","//a[contains(@href,'bluehost.to')]");
  5386. addObsoleteHost("coolshare\\.cz\/stahnout\/\\w+","//a[contains(@href,'coolshare.cz/stahnout')]");
  5387. addObsoleteHost("filegu\\.ru\/f\/\\w+","//a[contains(@href,'filegu.ru/f')]");
  5388. addObsoleteHost("filebase\\.to\/files\/\\d+\/","//a[contains(@href,'filebase.to/files')]");
  5389. addObsoleteHost("kickload\\.com\/(?:file|get)\/","//a[contains(@href,'kickload.com/file') or contains(@href,'kickload.com/get')]");
  5390. addObsoleteHost("up-file\\.com\/files\/download\/\\w+\/","//a[contains(@href,'up-file.com/download')]");
  5391. addObsoleteHost("ezyfile\\.net\/\\w+","//a[contains(@href,'ezyfile.net/')]");
  5392. addObsoleteHost("k2files\\.com\/files","//a[contains(@href,'k2files.com/files')]");
  5393. addObsoleteHost("aiotool\\.net\/\\w+","//a[contains(@href,'aiotool.net/')]");
  5394. addObsoleteHost("xvideos\\.com\/files\/\\d+\/\\w+","//a[contains(@href,'xvideos.com/files')]");
  5395. addObsoleteHost("filebling\\.com\/dl\/\\d+\/\\d+\/\\w+","//a[contains(@href,'filebling.com/dl')]");
  5396. addObsoleteHost("loaded\\.it\/divx\/\\w+","//a[contains(@href,'loaded.it/divx')]");
  5397. addObsoleteHost("uploadcell\\.com\/\\w+\/\\w+","//a[contains(@href,'uploadcell.com')]");
  5398. addObsoleteHost("jakfile\\.com\/\\w+","//a[contains(@href,'jakfile.com/')]");
  5399. addObsoleteHost("uploadshare\\.cz\/download\/\\w+\/\\w+","//a[contains(@href,'uploadshare.cz/download')]");
  5400. addObsoleteHost("mangoshare\\.com\/\\w+","//a[contains(@href,'mangoshare.com')]");
  5401. addObsoleteHost("ugotfile\\.com\/file\/\\d+\/\\w+","//a[contains(@href,'ugotfile.com/file')]");
  5402. addObsoleteHost("filestab\\.com\/\\w+","//a[contains(@href,'filestab.com')]");
  5403. addObsoleteHost("dotavi\\.com\/\\w+\/.","//a[contains(@href,'dotavi.com/')]");
  5404. addObsoleteHost("crazyupload\\.com\/\\w+","//a[contains(@href,'crazyupload.com')]");
  5405. addObsoleteHost("gaiafile\\.com\/\\w+","//a[contains(@href,'gaiafile.com')]");
  5406. addObsoleteHost("sharejunky\\.com\/\\w+","//a[contains(@href,'sharejunky.com')]");
  5407. addObsoleteHost("fileho\\.com\/download\/\\d+","//a[contains(@href,'fileho.com/download')]");
  5408. addObsoleteHost("(?:bigandfree|BigAndFree)\\.com\/\\d+","//a[contains(@href,'bigandfree.com') or contains(@href,'BigAndFree.com')]");
  5409. addObsoleteHost("bigfile\\.in\/\\w+","//a[contains(@href,'bigfile.in')]");
  5410. addObsoleteHost("bigshare\\.eu\/download\\.php\\?id=","//a[contains(@href,'bigshare.eu/download.php')]");
  5411. addObsoleteHost("dahosting\\.org\/dl\/\\w+","//a[contains(@href,'dahosting.org/dl')]");
  5412. addObsoleteHost("digisofts\\.net\/\\w+","//a[contains(@href,'digisofts.net')]");
  5413. addObsoleteHost("file4save\\.com\/\\w+\/\\w+","//a[contains(@href,'file4save.com')]");
  5414. addObsoleteHost("filereactor\\.com\/\\w+","//a[contains(@href,'filereactor.com/')]");
  5415. addObsoleteHost("filechip\\.com\/\\w+","//a[contains(@href,'filechip.com')]");
  5416. addObsoleteHost("filescloud\\.com\/\\w+\/\\w+","//a[contains(@href,'filescloud.com')]");
  5417. addObsoleteHost("saveqube\\.com\/getfile\/\\w+","//a[contains(@href,'saveqube.com/getfile')]");
  5418. addObsoleteHost("www2\\.turboshare\\.de\/v\/\\d+","//a[contains(@href,'turboshare.de/v')]");
  5419. addObsoleteHost("z-upload\\.com\/\\w+","//a[contains(@href,'z-upload.com')]");
  5420. addObsoleteHost("youshare\\.com\/view\\.php","//a[contains(@href,'youshare.com/view')]");
  5421. addObsoleteHost("jiffyupload\\.com\/\\w+","//a[contains(@href,'jiffyupload.com')]");
  5422. addObsoleteHost("gigeshare\\.com\/preview\/\\w+","//a[contains(@href,'gigeshare.com')]");
  5423. addObsoleteHost("datenklo\\.net\/dl","//a[contains(@href,'datenklo.net')]");
  5424. addObsoleteHost("upload\\.dj\/download\\.php\\?id=\\w+","//a[contains(@href,'upload.dj/download.php')]");
  5425. addObsoleteHost("loadfiles\\.in\/\\w+\/","//a[contains(@href,'loadfiles.in')]");
  5426. addObsoleteHost("upit\\.to\/file:\\w+\/","//a[contains(@href,'upit.to/file')]");
  5427. addObsoleteHost("zshare\\.net\/(?:download|video|audio)\/\\w+","//a[contains(@href,'zshare.net/')]");
  5428. addObsoleteHost("refile\\.net\/f\/\\?\\w+","//a[contains(@href,'refile.net/f/')]");
  5429. addObsoleteHost("dsfileshare\\.com\/download","//a[contains(@href,'dsfileshare.com/download')]");
  5430. addObsoleteHost("sharesimple\\.net\/\\w{2}\/download","//a[contains(@href,'sharesimple.net')]");
  5431. addObsoleteHost("(?:s\\d+\\.|)4files\\.net\/\\d+","//a[contains(@href,'4files.net')]");
  5432. addObsoleteHost("odsiebie\\.com\/pokaz\/\\d+","//a[contains(@href,'odsiebie.com/pokaz')]");
  5433. addObsoleteHost("filenavi\\.com\/direct\/\\w+","//a[contains(@href,'filenavi.com/direct')]");
  5434. addObsoleteHost("3oof\\.com\/\\w+","//a[contains(@href,'3oof.com/')]");
  5435. addObsoleteHost("meshwaar\\.com\/\\w+","//a[contains(@href,'meshwaar.com')]");
  5436. addObsoleteHost("maxupload\\.com\/files\/\\w+","//a[contains(@href,'maxupload.com/files')]");
  5437. addObsoleteHost("share\\.cx\/videos\/\\d+","//a[contains(@href,'share.cx/videos')]");
  5438. addObsoleteHost("atserver\\.eu\/(?:\\w{2}\/|)download\/\\d+","//a[contains(@href,'atserver.eu')]");
  5439. addObsoleteHost("file2upload\\.net\/download\/\\d+","//a[contains(@href,'file2upload.net/download')]");
  5440. addObsoleteHost("filebling\\.com\/\\w+","//a[contains(@href,'filebling.com')]");
  5441. addObsoleteHost("turboshare\\.(?:eu|com)\/files","//a[contains(@href,'turboshare.') and contains(@href,'/files')]");
  5442. addObsoleteHost("rarhost\\.com\/download","//a[contains(@href,'rarhost.com/download')]");
  5443. addObsoleteHost("isharehd\\.com\/\\w+","//a[contains(@href,'isharehd.com')]");
  5444. addObsoleteHost("datenklo\\.net\/file\\.php\\?id=\\w+","//a[contains(@href,'datenklo.net/file.php')]");
  5445. addObsoleteHost("file2share\\.biz\/download\\.php\\?id=\\w+","//a[contains(@href,'file2share.biz/download.php')]");
  5446. addObsoleteHost("savefiles\\.net\/d\/\\w+\\.html","//a[contains(@href,'savefiles.net/d')]");
  5447. addObsoleteHost("bestsharing\\.com\/files\/\\w+","//a[contains(@href,'bestsharing.com/files')]");
  5448. addObsoleteHost("filecache\\.de\/\\d+","//a[contains(@href,'filecache.de/')]");
  5449. addObsoleteHost("i741\\.com\/files\/\\w+","//a[contains(@href,'i741.com/files')]");
  5450. addObsoleteHost("dataup\\.de\/\\d+","//a[contains(@href,'dataup.de')]");
  5451. addObsoleteHost("fofly\\.com\/\\w+","//a[contains(@href,'fofly.com')]");
  5452. addObsoleteHost("shareonall\\.com\/\\w+","//a[contains(@href,'shareonall.com')]");
  5453. addObsoleteHost("sexuploader\\.com\/(?:|..\/)\\?[d|v]=\\w{8}","//a[contains(@href,'sexuploader.com')]");
  5454. 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')]");
  5455. addObsoleteHost("uploadhyper\\.com\/file\/","//a[contains(@href,'uploadhyper.com')]");
  5456. addObsoleteHost("filespawn\\.com\/file\/","//a[contains(@href,'filespawn.com')]");
  5457. addObsoleteHost("caizzii\\.com\/(?:download|\\?file=)","//a[contains(@href,'caizzii.com')]");
  5458. addObsoleteHost("volnyweb\\.cz\/files\/get\/[\\w-_]+","//a[contains(@href,'volnyweb.cz/files')]");
  5459. addObsoleteHost("gotupload\\.com\/\\w+","//a[contains(@href,'gotupload.com/')]");
  5460. addObsoleteHost("mooload\\.com\/new\/file\\.php\\?file=files\/\\d+\/\\d+","//a[contains(@href,'mooload.com/new/file')]");
  5461. addObsoleteHost("z\\d+\\.zupload\\.com\/download\\.php\\?file=getfile&filepath=\\d+","//a[contains(@href,'zupload.com/download')]");
  5462. addObsoleteHost("mytempdir\\.com\/\\d+","//a[contains(@href,'mytempdir.com/')]");
  5463. addObsoleteHost("usershare\\.net\/\\w+","//a[contains(@href,'usershare.net/')]");
  5464. addObsoleteHost("qshare\\.com\/get\/\\d+\/.","//a[contains(@href,'qshare.com/get')]");
  5465. addObsoleteHost("filescash\\.net\/file\/\\d+","//a[contains(@href,'filescash.net/file')]");
  5466. addObsoleteHost("metahyper\\.com\/\\w+","//a[contains(@href,'metahyper.com/')]");
  5467. addObsoleteHost("combozip\\.com\/\\w+","//a[contains(@href,'combozip.com/')]");
  5468. addObsoleteHost("anonstream\\.com\/get_\\w+","//a[contains(@href,'anonstream.com/get_')]");
  5469. addObsoleteHost("x7\\.to\/\\w+","//a[contains(@href,'x7.to/')]");
  5470. addObsoleteHost("uploadbox\\.com\/files\/\\w+","//a[contains(@href,'uploadbox.com/files')]");
  5471. addObsoleteHost("(?:flyupload\\.)?(?:enterupload|flyupload)\\.com\/[\\?\\w]+","//a[contains(@href,'enterupload.com/') or contains(@href,'flyupload.com/')]");
  5472. addObsoleteHost("filepoint\\.de\/dl\/\\w+","//a[contains(@href,'filepoint.de/dl')]");
  5473. addObsoleteHost("icushare\\.com\/\\w+","//a[contains(@href,'icushare.com/')]");
  5474. addObsoleteHost("oron\\.com\/\\w+","//a[contains(@href,'oron.com/')]");
  5475. addObsoleteHost("mystream\\.to\/file\\-\\d+","//a[contains(@href,'mystream.to/file')]");
  5476. addObsoleteHost("x-fs\\.com\/download\\.php\\?id=\\w+","//a[contains(@href,'x-fs.com/download')]");
  5477. addObsoleteHost("srapid\\.eu\/\\w+","//a[contains(@href,'srapid.eu/')]");
  5478. addObsoleteHost("shareshared\\.com\/\\w+","//a[contains(@href,'shareshared.com/')]");
  5479. addObsoleteHost("sosame\\.cz\/\\w+","//a[contains(@href,'sosame.cz/')]");
  5480. addObsoleteHost("s\\d+\\.filesdump\\.com\/file\/\\w+","//a[contains(@href,'filesdump.com/file')]");
  5481. addObsoleteHost("2-klicks\\.de\/\\?d=\\w+","//a[contains(@href,'2-klicks.de/?d=')]");
  5482. addObsoleteHost("silofiles\\.com\/file\/\\d+","//a[contains(@href,'silofiles.com/file')]");
  5483. addObsoleteHost("upfile\\.in\/\\w+","//a[contains(@href,'upfile.in/')]");
  5484. addObsoleteHost("filehook\\.com\/\\w+","//a[contains(@href,'filehook.com/')]");
  5485. addObsoleteHost("mojofile\\.com\/\\w+","//a[contains(@href,'mojofile.com/')]");
  5486. addObsoleteHost("cloudcache\\.cc\/\\w+","//a[contains(@href,'cloudcache.cc/')]");
  5487. addObsoleteHost("1hostclick\\.com\/\\w+","//a[contains(@href,'1hostclick.com/')]");
  5488. addObsoleteHost("4bytez\\.com\/\\w+","//a[contains(@href,'4bytez.com/')]");
  5489. addObsoleteHost("uploadking\\.com\/\\w+","//a[contains(@href,'uploadking.com/')]");
  5490. addObsoleteHost("nahraj\\.cz\/(?:content|down)\/\\w+","//a[contains(@href,'nahraj.cz/')]");
  5491. addObsoleteHost("megarapid\\.eu\/files\/\\d+","//a[contains(@href,'megarapid.eu/files')]");
  5492. addObsoleteHost("(?:fileserve|uploadstation)\\.com\/(?:file|list)\/\\w+","//a[contains(@href,'fileserve.com/') or contains(@href,'uploadstation.com/')]");
  5493. addObsoleteHost("uploadhere\\.com\/\\w+","//a[contains(@href,'uploadhere.com/')]");
  5494. addObsoleteHost("dualshare\\.com\/\\w+","//a[contains(@href,'dualshare.com/')]");
  5495. addObsoleteHost("yourfilehost\\.com\/media","//a[contains(@href,'yourfilehost.com/media')]");
  5496. addObsoleteHost("ftp2share\\.com\/file\/\\w+","//a[contains(@href,'ftp2share.com/file')]");
  5497. addObsoleteHost("storeandserve\\.com\/download\/\\d+","//a[contains(@href,'storeandserve.com/download')]");
  5498. addObsoleteHost("mountfile\\.com\/file(?:\/\\w+){2}","//a[contains(@href,'mountfile.com/file')]");
  5499. addObsoleteHost("save\\.am\/files\/\\w+","//a[contains(@href,'save.am/files')]");
  5500. addObsoleteHost("transitfiles\\.com\/dl\/\\w+","//a[contains(@href,'transitfiles.com/dl')]");
  5501. addObsoleteHost("smartuploader\\.com\/file\\.php\\?f=\\d+","//a[contains(@href,'smartuploader.com/file.php?=')]");
  5502. addObsoleteHost("skipfile\\.com\/\\w+","//a[contains(@href,'skipfile.com/')]");
  5503. addObsoleteHost("stahnu\\.to\/[\\w\\?]+","//a[contains(@href,'stahnu.to/')]");
  5504. addObsoleteHost("flyshare\.cz\/(?:stahni\/|)\\d+","//a[contains(@href,'flyshare.cz/')]");
  5505. addObsoleteHost("(?:ddlani\\.me|ddlanime\\.com)\/\\w+","//a[contains(@href,'ddlani.me/') or contains(@href,'ddlanime.com/')]");
  5506. addObsoleteHost("loadly\\.com\/\\w+","//a[contains(@href,'loadly.com/')]");
  5507. addObsoleteHost("groovefile\\.com\/\\w+","//a[contains(@href,'groovefile.com/')]");
  5508. addObsoleteHost("filezlot\\.com\/\\w+","//a[contains(@href,'filezlot.com/')]");
  5509. addObsoleteHost("shareator\\.(?:net|com)\/\\w+","//a[contains(@href,'shareator.')]");
  5510. addObsoleteHost("yabadaba\\.ru\/files\/","//a[contains(@href,'yabadaba.ru/files/')]");
  5511. addObsoleteHost("rapidhide\\.com\/download\\.php\\?file=\\w+","//a[contains(@href,'rapidhide.com/download.php')]");
  5512. addObsoleteHost("filejungle\\.com\/[fl]\/\\w+","//a[contains(@href,'filejungle.com/')]");
  5513. addObsoleteHost("kewlshare\\.com\/dl\/\\d+","//a[contains(@href,'kewlshare.com/dl')]");
  5514. addObsoleteHost("petandrive\\.com\/file\/\\w+","//a[contains(@href,'petandrive.com/file')]");
  5515. addObsoleteHost("onionshare\\.com\/\\w+","//a[contains(@href,'onionshare.com/')]");
  5516. addObsoleteHost("rapidable\\.com\/\\w+\/download\\.php\\?id=","//a[contains(@href,'rapidable.com/')]");
  5517. addObsoleteHost("filesdump\\.com\/file\/\\w+\/\\d+","//a[contains(@href,'filesdump.com/file')]");
  5518. addObsoleteHost("file2box\\.(?:net|com)\/\\w+","//a[contains(@href,'file2box.')]");
  5519. addObsoleteHost("(?:filesonic|sharingmatrix|wupload)(?:\\.\\w+){1,2}\/(?:file|folder)\/\\w+","//a[contains(@href,'filesonic.') or contains(@href,'sharingmatrix.com') or contains(@href,'wupload.')]");
  5520. addObsoleteHost("bloggerarticles\\.com\/\\w+","//a[contains(@href,'bloggerarticles.com/')]");
  5521. addObsoleteHost("mojedata\\.sk/","//a[contains(@href,'mojedata.sk/')]");
  5522. addObsoleteHost("sharpfile\\.com\/\\w+","//a[contains(@href,'sharpfile.com/')]");
  5523. addObsoleteHost("upgrand\\.com\/\\w+","//a[contains(@href,'upgrand.com/')]");
  5524. addObsoleteHost("nasdilej\\.cz\/\\w+","//a[contains(@href,'nasdilej.cz/')]");
  5525. addObsoleteHost("mediatack\\.cz\/stahuj/\\w+","//a[contains(@href,'mediatack.cz/stahuj/')]");
  5526. addObsoleteHost("share-it\\.to\/file/\\w+","//a[contains(@href,'share-it.to/file/')]");
  5527. addObsoleteHost("primeupload\\.com\/file/\\w+","//a[contains(@href,'primeupload.com/file/')]");
  5528. addObsoleteHost("(?:uploads\\.glumbo|glumbouploads)\\.com\/\\w+","//a[contains(@href,'uploads.glumbo.com') or contains(@href,'glumbouploads.com')]");
  5529. addObsoleteHost("filebeer\\.info\/\\w+","//a[contains(@href,'filebeer.info/')]");
  5530. addObsoleteHost("baberepublic\\.com\/link\/\\w+","//a[contains(@href,'baberepublic.com/link/')]");
  5531. addObsoleteHost("xtu\\.me\/\\w+","//a[contains(@href,'xtu.me/')]");
  5532. addObsoleteHost("sharebase\\.de\/files\/\\w+","//a[contains(@href,'sharebase.de/files/')]");
  5533. addObsoleteHost("filerobo\\.com\/\\w+","//a[contains(@href,'filerobo.com/')]");
  5534. addObsoleteHost("filevelocity\\.com\/\\w+","//a[contains(@href,'filevelocity.com/')]");
  5535. addObsoleteHost("filezpro\\.com\/\\w+","//a[contains(@href,'filezpro.com/')]");
  5536. addObsoleteHost("file4sharing\\.com\/\\w+","//a[contains(@href,'file4sharing.com/')]");
  5537. addObsoleteHost("cing\\.be\/\\w+","//a[contains(@href,'cing.be/')]");
  5538. addObsoleteHost("ufile\\.eu\/\\w+","//a[contains(@href,'ufile.eu/')]");
  5539. addObsoleteHost("pigsonic\\.com\/\\w+","//a[contains(@href,'pigsonic.com/')]");
  5540. addObsoleteHost("fileupped\\.com\/\\w+","//a[contains(@href,'fileupped.com/')]");
  5541. addObsoleteHost("sharerun\\.com\/\\w+","//a[contains(@href,'sharerun.com/')]");
  5542. addObsoleteHost("rapidslnare\\.com\/\\w+","//a[contains(@href,'rapidslnare.com/')]");
  5543. addObsoleteHost("monsteruploads\\.eu\/\\w+","//a[contains(@href,'monsteruploads.eu/')]");
  5544. addObsoleteHost("b9bb\\.com\/\\w+","//a[contains(@href,'b9bb.com/')]");
  5545. addObsoleteHost("jamber\\.info\/\\w+","//a[contains(@href,'jamber.info/')]");
  5546. addObsoleteHost("(?:megaftp|MegaFTP)\\.com\/\\w+","//a[contains(@href,'megaftp.com/') or contains(@href,'MegaFTP.com/')]");
  5547. addObsoleteHost("desiupload\\.net\/\\?d=\\w+","//a[contains(@href,'desiupload.net/')]");
  5548. addObsoleteHost("file27\\.com\/\\w+","//a[contains(@href,'file27.com/')]");
  5549. addObsoleteHost("yastorage\\.com\/\\w+","//a[contains(@href,'yastorage.com/')]");
  5550. addObsoleteHost("filehost\\.ws\/\\w+","//a[contains(@href,'filehost.ws/')]");
  5551. addObsoleteHost("copyload\\.com\/\\w+","//a[contains(@href,'copyload.com/')]");
  5552. addObsoleteHost("venusfile\\.com\/\\w+","//a[contains(@href,'venusfile.com/')]");
  5553. addObsoleteHost("aieshare\\.com\/\\w+","//a[contains(@href,'aieshare.com/')]");
  5554. addObsoleteHost("fileza\\.net\/\\w+","//a[contains(@href,'fileza.net/')]");
  5555. addObsoleteHost("filerose\\.com\/\\w+","//a[contains(@href,'filerose.com/')]");
  5556. addObsoleteHost("squillion\\.com\/\\w+","//a[contains(@href,'squillion.com/')]");
  5557. addObsoleteHost("fileprohost\\.com\/\\w+","//a[contains(@href,'fileprohost.com/')]");
  5558. addObsoleteHost("bitbonus\\.com\/download\/\\w+","//a[contains(@href,'bitbonus.com/')]");
  5559. addObsoleteHost("warserver\\.cz\/\\w+","//a[contains(@href,'warserver.cz/')]");
  5560. addObsoleteHost("uload\\.to\/\\w+","//a[contains(@href,'uload.to/')]");
  5561. addObsoleteHost("sharedbit\\.net\/\\w+","//a[contains(@href,'sharedbit.net/')]");
  5562. addObsoleteHost("megaload\\.it\/\\w+","//a[contains(@href,'megaload.it/')]");
  5563. addObsoleteHost("filewinds\\.com\/\\w+","//a[contains(@href,'filewinds.com/')]");
  5564. addObsoleteHost("uploadcore\\.com\/\\w+","//a[contains(@href,'uploadcore.com/')]");
  5565. addObsoleteHost("syfiles\\.com\/\\w+","//a[contains(@href,'syfiles.com/')]");
  5566. addObsoleteHost("eyesfile\\.com\/\\w+","//a[contains(@href,'eyesfile.com/')]");
  5567. addObsoleteHost("hotfile\\.com\/\\w+","//a[contains(@href,'hotfile.com/')]");
  5568. addObsoleteHost("superupl\\.com\/\\w+","//a[contains(@href,'superupl.com/')]");
  5569. addObsoleteHost("oteupload\\.com\/\\w+","//a[contains(@href,'oteupload.com/')]");
  5570. addObsoleteHost("henchfile\\.com\/\\w+","//a[contains(@href,'henchfile.com/')]");
  5571. addObsoleteHost("HenchFile\\.com\/\\w+","//a[contains(@href,'HenchFile.com/')]");
  5572. addObsoleteHost("filegag\\.com\/\\w+","//a[contains(@href,'filegag.com/')]");
  5573. addObsoleteHost("filedefend\\.com\/\\w+","//a[contains(@href,'filedefend.com/')]");
  5574. addObsoleteHost("hotfiles\\.ws\/\\w+","//a[contains(@href,'hotfiles.ws/')]");
  5575. addObsoleteHost("share-rapid\\.com\/\\w+","//a[contains(@href,'share-rapid.com/')]");
  5576. addObsoleteHost("rapids\\.cz\/\\w+","//a[contains(@href,'rapids.cz/')]");
  5577. addObsoleteHost("share-credit\\.cz\/\\w+","//a[contains(@href,'share-credit.cz/')]");
  5578. addObsoleteHost("share-central\\.cz\/\\w+","//a[contains(@href,'share-central.cz/')]");
  5579. addObsoleteHost("share-ms\\.cz\/\\w+","//a[contains(@href,'share-ms.cz/')]");
  5580. addObsoleteHost("share-net\\.cz\/\\w+","//a[contains(@href,'share-net.cz/')]");
  5581. addObsoleteHost("srapid\\.cz\/\\w+","//a[contains(@href,'srapid.cz/')]");
  5582. addObsoleteHost("share-rapid\\.cz\/\\w+","//a[contains(@href,'share-rapid.cz/')]");
  5583. addObsoleteHost("wooupload\\.com\/\\w+","//a[contains(@href,'wooupload.com/')]");
  5584. addObsoleteHost("megabitshare\\.com\/\\w+","//a[contains(@href,'megabitshare.com/')]");
  5585. addObsoleteHost("uploking\\.com\/\\w+","//a[contains(@href,'uploking.com/')]");
  5586. addObsoleteHost("esnips\\.com\/\\w+","//a[contains(@href,'esnips.com/')]");
  5587. addObsoleteHost("uplly\\.com\/\\w+","//a[contains(@href,'uplly.com/')]");
  5588. addObsoleteHost("ufox\\.com\/\\w+","//a[contains(@href,'ufox.com/')]");
  5589. addObsoleteHost("clz\\.to\/\\w+","//a[contains(@href,'clz.to/')]");
  5590. addObsoleteHost("cloudzer\\.net\/\\w+","//a[contains(@href,'cloudzer.net/')]");
  5591. addObsoleteHost("cloudzer\\.com\/\\w+","//a[contains(@href,'cloudzer.com/')]");
  5592. addObsoleteHost("extabit\\.com\/\\w+","//a[contains(@href,'extabit.com/')]");
  5593. addObsoleteHost("uploadwaste\\.com\/\\w+","//a[contains(@href,'uploadwaste.com/')]");
  5594. addObsoleteHost("247upload\\.com\/\\w+","//a[contains(@href,'uploadwaste.com/')]");
  5595. addObsoleteHost("2download\\.de\/\\w+","//a[contains(@href,'2download.de/')]");
  5596. addObsoleteHost("4fastfile\\.com\/\\w+","//a[contains(@href,'4fastfile.com/')]");
  5597. addObsoleteHost("asixfiles\\.com\/\\w+","//a[contains(@href,'asixfiles.com/')]");
  5598. addObsoleteHost("berofile\\.com\/\\w+","//a[contains(@href,'berofile.com/')]");
  5599. addObsoleteHost("bigupload\\.com\/\\w+","//a[contains(@href,'bigupload.com/')]");
  5600. addObsoleteHost("cepzo\\.com\/\\w+","//a[contains(@href,'cepzo.com/')]");
  5601. addObsoleteHost("czshare\\.com\/\\w+","//a[contains(@href,'czshare.com/')]");
  5602. addObsoleteHost("clouds\\.to\/\\w+","//a[contains(@href,'clouds.to/')]");
  5603. addObsoleteHost("cobrashare\\.sk\/\\w+","//a[contains(@href,'cobrashare.sk/')]");
  5604. addObsoleteHost("coraldrive\\.net\/\\w+","//a[contains(@href,'coraldrive.net/')]");
  5605. addObsoleteHost("cyberlocker\\.ch\/\\w+","//a[contains(@href,'cyberlocker.ch/')]");
  5606. addObsoleteHost("darkport\\.org\/\\w+","//a[contains(@href,'darkport.org/')]");
  5607. addObsoleteHost("dark-uploads\\.com\/\\w+","//a[contains(@href,'dark-uploads.com/')]");
  5608. addObsoleteHost("davvas\\.com\/\\w+","//a[contains(@href,'davvas.com/')]");
  5609. addObsoleteHost("enigmashare\\.com\/\\w+","//a[contains(@href,'enigmashare.com/')]");
  5610. addObsoleteHost("erofly\\.cz\/\\w+","//a[contains(@href,'erofly.cz/')]");
  5611. addObsoleteHost("fastsonic\\.net\/\\w+","//a[contains(@href,'fastsonic.net/')]");
  5612. addObsoleteHost("filebox\\.com\/\\w+","//a[contains(@href,'filebox.com/')]");
  5613. addObsoleteHost("filecity\\.net\/\\w+","//a[contains(@href,'filecity.net/')]");
  5614. addObsoleteHost("filedap\\.com\/\\w+","//a[contains(@href,'filedap.com/')]");
  5615. addObsoleteHost("filedino\\.com\/\\w+","//a[contains(@href,'filedino.com/')]");
  5616. addObsoleteHost("filedownloads\\.org\/\\w+","//a[contains(@href,'filedownloads.org/')]");
  5617. addObsoleteHost("filefolks\\.com\/\\w+","//a[contains(@href,'filefolks.com/')]");
  5618. addObsoleteHost("fileking\\.co\/\\w+","//a[contains(@href,'fileking.co/')]");
  5619. addObsoleteHost("filemates\\.com\/\\w+","//a[contains(@href,'filemates.com/')]");
  5620. addObsoleteHost("files\\.to\/\\w+","//a[contains(@href,'files.to/')]");
  5621. addObsoleteHost("files2k\\.eu\/\\w+","//a[contains(@href,'files2k.eu/')]");
  5622. addObsoleteHost("filesector\\.cc\/\\w+","//a[contains(@href,'filesector.cc/')]");
  5623. addObsoleteHost("filesega\\.com\/\\w+","//a[contains(@href,'filesega.com/')]");
  5624. addObsoleteHost("filesend\\.net\/\\w+","//a[contains(@href,'filesend.net/')]");
  5625. addObsoleteHost("filestay\\.com\/\\w+","//a[contains(@href,'filestay.com/')]");
  5626. addObsoleteHost("filestrum\\.com\/\\w+","//a[contains(@href,'filestrum.com/')]");
  5627. addObsoleteHost("fileuplo\\.de\/\\w+","//a[contains(@href,'fileuplo.de/')]");
  5628. addObsoleteHost("fileupup\\.com\/\\w+","//a[contains(@href,'fileupup.com/')]");
  5629. addObsoleteHost("forunesia\\.com\/\\w+","//a[contains(@href,'forunesia.com/')]");
  5630. addObsoleteHost("freeuploads\\.fr\/\\w+","//a[contains(@href,'freeuploads.fr/')]");
  5631. addObsoleteHost("uploa\\.dk\/\\w+","//a[contains(@href,'uploa.dk/')]");
  5632. addObsoleteHost("getthebit\\.com\/\\w+","//a[contains(@href,'getthebit.com/')]");
  5633. addObsoleteHost("getzilla\\.net\/\\w+","//a[contains(@href,'getzilla.net/')]");
  5634. addObsoleteHost("goldfile\\.eu\/\\w+","//a[contains(@href,'goldfile.eu/')]");
  5635. addObsoleteHost("good\\.com\/\\w+","//a[contains(@href,'good.com/')]");
  5636. addObsoleteHost("grupload\\.com\/\\w+","//a[contains(@href,'grupload.com/')]");
  5637. addObsoleteHost("hellfile\\.com\/\\w+","//a[contains(@href,'hellfile.com/')]");
  5638. addObsoleteHost("hipfile\\.com\/\\w+","//a[contains(@href,'hipfile.com/')]");
  5639. addObsoleteHost("hitfile\\.com\/\\w+","//a[contains(@href,'hitfile.com/')]");
  5640. addObsoleteHost("hulkfile\\.eu\/\\w+","//a[contains(@href,'hulkfile.eu/')]");
  5641. addObsoleteHost("i-filez\\.com\/\\w+","//a[contains(@href,'i-filez.com/')]");
  5642. addObsoleteHost("ifile\\.ws\/\\w+","//a[contains(@href,'ifile.ws/')]");
  5643. addObsoleteHost("kupload\\.org\/\\w+","//a[contains(@href,'kupload.org/')]");
  5644. addObsoleteHost("duckfile\\.net\/\\w+","//a[contains(@href,'duckfile.net/')]");
  5645. addObsoleteHost("packupload\\.com\/\\w+","//a[contains(@href,'packupload.com/')]");
  5646. addObsoleteHost("terafile\\.com\/\\w+","//a[contains(@href,'terafile.com/')]");
  5647. addObsoleteHost("terafile\\.co\/\\w+","//a[contains(@href,'terafile.co/')]");
  5648. addObsoleteHost("fileom\\.com\/\\w+","//a[contains(@href,'fileom.com/')]");
  5649. addObsoleteHost("luckyshare\\.net\/\\w+","//a[contains(@href,'luckyshare.net/')]");
  5650. addObsoleteHost("lemuploads\\.com\/\\w+","//a[contains(@href,'lemuploads.com/')]");
  5651. addObsoleteHost("limelinx\\.com\/\\w+","//a[contains(@href,'limelinx.com/')]");
  5652. addObsoleteHost("maxshare\\.pl\/\\w+","//a[contains(@href,'maxshare.pl/')]");
  5653. addObsoleteHost("megarelease\\.org\/\\w+","//a[contains(@href,'megarelease.org/')]");
  5654. addObsoleteHost("megashare\\.com\/\\w+","//a[contains(@href,'megashare.com/')]");
  5655. addObsoleteHost("minus\\.com\/\\w+","//a[contains(@href,'minus.com/')]");
  5656. addObsoleteHost("mlfat4arab\\.com\/\\w+","//a[contains(@href,'mlfat4arab.com/')]");
  5657. addObsoleteHost("multishare\\.cz\/\\w+","//a[contains(@href,'multishare.cz/')]");
  5658. addObsoleteHost("nirafile\\.com\/\\w+","//a[contains(@href,'nirafile.com/')]");
  5659. addObsoleteHost("ok2upload\\.com\/\\w+","//a[contains(@href,'ok2upload.com/')]");
  5660. addObsoleteHost("peejeshare\\.com\/\\w+","//a[contains(@href,'peejeshare.com/')]");
  5661. addObsoleteHost("premiuns\\.org\/\\w+","//a[contains(@href,'premiuns.org/')]");
  5662. addObsoleteHost("przeklej\\.net\/\\w+","//a[contains(@href,'przeklej.net/')]");
  5663. addObsoleteHost("qkup\\.net\/\\w+","//a[contains(@href,'qkup.net/')]");
  5664. addObsoleteHost("rapidupload\\.sk\/\\w+","//a[contains(@href,'rapidupload.sk/')]");
  5665. addObsoleteHost("rockdizfile\\.com\/\\w+","//a[contains(@href,'rockdizfile.com/')]");
  5666. addObsoleteHost("rocketfile\\.net\/\\w+","//a[contains(@href,'rocketfile.net/')]");
  5667. addObsoleteHost("share-now\\.net\/\\w+","//a[contains(@href,'share-now.net/')]");
  5668. addObsoleteHost("share76\\.com\/\\w+","//a[contains(@href,'share76.com/')]");
  5669. addObsoleteHost("sharebees\\.com\/\\w+","//a[contains(@href,'sharebees.com/')]");
  5670. addObsoleteHost("sharefiles\\.co\/\\w+","//a[contains(@href,'sharefiles.co/')]");
  5671. addObsoleteHost("slingfile\\.com\/\\w+","//a[contains(@href,'slingfile.com/')]");
  5672. addObsoleteHost("sms4file\\.com\/\\w+","//a[contains(@href,'sms4file.com/')]");
  5673. addObsoleteHost("space4file\\.com\/\\w+","//a[contains(@href,'space4file.com/')]");
  5674. addObsoleteHost("tigershare\\.net\/\\w+","//a[contains(@href,'tigershare.net/')]");
  5675. addObsoleteHost("toucansharing\\.com\/\\w+","//a[contains(@href,'toucansharing.com/')]");
  5676. addObsoleteHost("ubuntuone\\.com\/\\w+","//a[contains(@href,'ubuntuone.com/')]");
  5677. addObsoleteHost("unextfiles\\.com\/\\w+","//a[contains(@href,'unextfiles.com/')]");
  5678. addObsoleteHost("upaj\\.pl\/\\w+","//a[contains(@href,'upaj.pl/')]");
  5679. addObsoleteHost("upfile\\.biz\/\\w+","//a[contains(@href,'upfile.biz/')]");
  5680. addObsoleteHost("uploadbin\\.net\/\\w+","//a[contains(@href,'uploadbin.net/')]");
  5681. addObsoleteHost("uploadic\\.com\/\\w+","//a[contains(@href,'uploadic.com/')]");
  5682. addObsoleteHost("uploadinc\\.com\/\\w+","//a[contains(@href,'uploadinc.com/')]");
  5683. addObsoleteHost("uploading4u\\.eu\/\\w+","//a[contains(@href,'uploading4u.eu/')]");
  5684. addObsoleteHost("uploadjet\\.net\/\\w+","//a[contains(@href,'uploadjet.net/')]");
  5685. addObsoleteHost("uploadorb\\.com\/\\w+","//a[contains(@href,'uploadorb.com/')]");
  5686. addObsoleteHost("upthe\\.net\/\\w+","//a[contains(@href,'upthe.net/')]");
  5687. addObsoleteHost("uptorch\\.com\/\\w+","//a[contains(@href,'uptorch.com/')]");
  5688. addObsoleteHost("vidbox\\.yt\/\\w+","//a[contains(@href,'vidbox.yt/')]");
  5689. addObsoleteHost("videozer\\.com\/\\w+","//a[contains(@href,'videozer.com/')]");
  5690. addObsoleteHost("vreer\\.com\/\\w+","//a[contains(@href,'vreer.com/')]");
  5691. addObsoleteHost("wallobit\\.com\/\\w+","//a[contains(@href,'wallobit.com/')]");
  5692. addObsoleteHost("zooupload\\.com\/\\w+","//a[contains(@href,'zooupload.com/')]");
  5693. addObsoleteHost("xerver\\.co\/\\w+","//a[contains(@href,'xerver.co/')]");
  5694. addObsoleteHost("privatefiles\\.com\/\\w+","//a[contains(@href,'privatefiles.com/')]");
  5695. addObsoleteHost("bitshare\\.com\/\\w+","//a[contains(@href,'bitshare.com/')]");
  5696. addObsoleteHost("asfile\\.com\/\\w+","//a[contains(@href,'asfile.com/')]");
  5697. addObsoleteHost("billionuploads\\.com\/\\w+","//a[contains(@href,'billionuploads.com/')]");
  5698. addObsoleteHost("\\*{7,100}\/[\\w\\d]+","//a[contains(@href,'*******/')]");
  5699. addObsoleteHost("filesaur\\.com\/\\w+","//a[contains(@href,'filesaur.com/')]");
  5700. addObsoleteHost("rapidshare\\.com\/\\w+","//a[contains(@href,'rapidshare.com/')]");
  5701. addObsoleteHost("rapidshare\\.ru\/\\w+","//a[contains(@href,'rapidshare.ru/')]");
  5702. addObsoleteHost("filesfrog\\.net\/\\w+","//a[contains(@href,'filesfrog.net/')]");
  5703. addObsoleteHost("4savefile\\.com\/\\w+","//a[contains(@href,'4savefile.com/')]");
  5704. addObsoleteHost("bayfiles\\.com\/\\w+","//a[contains(@href,'bayfiles.com/')]");
  5705. addObsoleteHost("bayfiles\\.net\/\\w+","//a[contains(@href,'bayfiles.net/')]");
  5706. addObsoleteHost("dodane\\.pl\/\\w+","//a[contains(@href,'dodane.pl/')]");
  5707. addObsoleteHost("dotsemper\\.com\/\\w+","//a[contains(@href,'dotsemper.com/')]");
  5708. addObsoleteHost("egofiles\\.com\/\\w+","//a[contains(@href,'egofiles.com/')]");
  5709. addObsoleteHost("epicshare\\.net\/\\w+","//a[contains(@href,'epicshare.net/')]");
  5710. addObsoleteHost("fiberupload\\.net\/\\w+","//a[contains(@href,'fiberupload.net/')]");
  5711. addObsoleteHost("filemonkey\\.in\/\\w+","//a[contains(@href,'filemonkey.in/')]");
  5712. addObsoleteHost("filemonster\\.net\/\\w+","//a[contains(@href,'filemonster.net/')]");
  5713. addObsoleteHost("filepom\\.com\/\\w+","//a[contains(@href,'filepom.com/')]");
  5714. addObsoleteHost("filesbb\\.com\/\\w+","//a[contains(@href,'filesbb.com/')]");
  5715. addObsoleteHost("fileshareup\\.com\/\\w+","//a[contains(@href,'fileshareup.com/')]");
  5716. addObsoleteHost("filevice\\.com\/\\w+","//a[contains(@href,'filevice.com/')]");
  5717. addObsoleteHost("gigaup\\.fr\/\\w+","//a[contains(@href,'gigaup.fr/')]");
  5718. addObsoleteHost("isavelink\\.com\/\\w+","//a[contains(@href,'isavelink.com/')]");
  5719. addObsoleteHost("loombo\\.com\/\\w+","//a[contains(@href,'loombo.com/')]");
  5720. addObsoleteHost("megafiles\\.se\/\\w+","//a[contains(@href,'megafiles.se/')]");
  5721. addObsoleteHost("migupload\\.com\/\\w+","//a[contains(@href,'migupload.com/')]");
  5722. addObsoleteHost("mydisc\\.net\/\\w+","//a[contains(@href,'mydisc.net/')]");
  5723. addObsoleteHost("nitrobits\\.com\/\\w+","//a[contains(@href,'nitrobits.com/')]");
  5724. addObsoleteHost("potload\\.com\/\\w+","//a[contains(@href,'potload.com/')]");
  5725. addObsoleteHost("redload\\.net\/\\w+","//a[contains(@href,'redload.net/')]");
  5726. addObsoleteHost("shareprofi\\.com\/\\w+","//a[contains(@href,'shareprofi.com/')]");
  5727. addObsoleteHost("sharesuper\\.info\/\\w+","//a[contains(@href,'sharesuper.info/')]");
  5728. addObsoleteHost("sinhro\\.net\/\\w+","//a[contains(@href,'sinhro.net/')]");
  5729. addObsoleteHost("speedfile\\.cz\/\\w+","//a[contains(@href,'speedfile.cz/')]");
  5730. addObsoleteHost("speedshare\\.org\/\\w+","//a[contains(@href,'speedshare.org/')]");
  5731. addObsoleteHost("storage.novoro\\.net\/\\w+","//a[contains(@href,'storage.novoro.net/')]");
  5732. addObsoleteHost("swankshare\\.com\/\\w+","//a[contains(@href,'swankshare.com/')]");
  5733. addObsoleteHost("swatupload\\.com\/\\w+","//a[contains(@href,'swatupload.com/')]");
  5734. addObsoleteHost("upafile\\.com\/\\w+","//a[contains(@href,'upafile.com/')]");
  5735. addObsoleteHost("uploadmachine\\.com\/\\w+","//a[contains(@href,'uploadmachine.com/')]");
  5736. addObsoleteHost("uploadsat\\.com\/\\w+","//a[contains(@href,'uploadsat.com/')]");
  5737. addObsoleteHost("upshared\\.com\/\\w+","//a[contains(@href,'upshared.com/')]");
  5738. addObsoleteHost("usefile\\.com\/\\w+","//a[contains(@href,'usefile.com/')]");
  5739. addObsoleteHost("yourfiles\\.to\/\\w+","//a[contains(@href,'yourfiles.to/')]");
  5740. addObsoleteHost("zomgupload\\.com\/\\w+","//a[contains(@href,'zomgupload.com/')]");
  5741. addObsoleteHost("~[\\w\\s~]*","//a[contains(@href,'//~') or contains(@href,'//www.~')]");
  5742. addObsoleteHost("filemup\\.com\/\\w+","//a[contains(@href,'filemup.com/')]");
  5743. addObsoleteHost("tuxfile\\.com\/\\w+","//a[contains(@href,'tuxfile.com/')]");
  5744. addObsoleteHost("ultramegabit\\.com\/\\w+","//a[contains(@href,'ultramegabit.com/')]");
  5745. addObsoleteHost("uploadto\\.us\/\\w+","//a[contains(@href,'uploadto.us/')]");
  5746. addObsoleteHost("filecore\\.co\\.nz\/\\w+","//a[contains(@href,'filecore.co.nz/')]");
  5747. addObsoleteHost("fileshare\\.in\\.ua\/\\w+","//a[contains(@href,'fileshare.in.ua/')]");
  5748. addObsoleteHost("firedrive\\.com\/\\w+","//a[contains(@href,'firedrive.com/')]");
  5749. addObsoleteHost("putlocker\\.com\/\\w+","//a[contains(@href,'putlocker.com/')]");
  5750. addObsoleteHost("lumfile\\.com\/\\w+","//a[contains(@href,'lumfile.com/')]");
  5751. addObsoleteHost("lumfile\\.se\/\\w+","//a[contains(@href,'lumfile.se/')]");
  5752. addObsoleteHost("lumfile\\.eu\/\\w+","//a[contains(@href,'lumfile.eu/')]");
  5753. addObsoleteHost("shared\\.com\/\\w+","//a[contains(@href,'shared.com/')]");
  5754. addObsoleteHost("stahovadlo\\.cz\/\\w+","//a[contains(@href,'stahovadlo.cz/')]");
  5755. addObsoleteHost("dizzcloud\\.com\/\\w+","//a[contains(@href,'dizzcloud.com/')]");
  5756. addObsoleteHost("ddlstorage\\.com\/\\w+","//a[contains(@href,'ddlstorage.com/')]");
  5757. addObsoleteHost("dataport\\.cz\/\\w+","//a[contains(@href,'dataport.cz/')]");
  5758. addObsoleteHost("daj\\.to\/\\w+","//a[contains(@href,'daj.to/')]");
  5759. addObsoleteHost("sockshare\\.com\/\\w+","//a[contains(@href,'sockshare.com/')]");
  5760. addObsoleteHost("2drive\\.net\/\\w+","//a[contains(@href,'2drive.net/')]");
  5761. addObsoleteHost("bl\\.st\/\\w+","//a[contains(@href,'bl.st/')]");
  5762. addObsoleteHost("uncapped-downloads\\.com\/\\w+","//a[contains(@href,'uncapped-downloads.com/')]");
  5763. addObsoleteHost("freakshare\\.net\/\\w+","//a[contains(@href,'freakshare.net/')]");
  5764. addObsoleteHost("freakshare\\.com\/\\w+","//a[contains(@href,'freakshare.com/')]");
  5765. addObsoleteHost("sharebeast\\.com\/\\w+","//a[contains(@href,'sharebeast.com/')]");
  5766. addObsoleteHost("tufiles\\.ru\/\\w+","//a[contains(@href,'tufiles.ru/')]");
  5767. addObsoleteHost("crisshare\\.com\/\\w+","//a[contains(@href,'crisshare.com/')]");
  5768. addObsoleteHost("ryushare\\.com\/\\w+","//a[contains(@href,'ryushare.com/')]");
  5769. addObsoleteHost("burnupload\\.com\/\\w+","//a[contains(@href,'burnupload.com') or contains(@href,'burnupload.ihiphop.com')]");
  5770. addObsoleteHost("down4files\\.com\/\\w+","//a[contains(@href,'down4files.com/')]");
  5771. addObsoleteHost("edoc\\.com\/\\w+","//a[contains(@href,'edoc.com/')]");
  5772. addObsoleteHost("migahost\\.com\/\\w+","//a[contains(@href,'migahost.com/')]");
  5773. addObsoleteHost("movreel\\.com\/\\w+","//a[contains(@href,'movreel.com/')]");
  5774. addObsoleteHost("newfileland\\.com\/\\w+","//a[contains(@href,'newfileland.com/')]");
  5775. addObsoleteHost("jumbofile\\.net\/\\w+","//a[contains(@href,'jumbofile.net/')]");
  5776. addObsoleteHost("krotix\\.net\/\\w+","//a[contains(@href,'krotix.net/')]");
  5777. addObsoleteHost("cramit\\.in\/\\w+","//a[contains(@href,'cramitin.net') or contains(@href,'cramit.in')]");
  5778. addObsoleteHost("netload\\.in\/\\w+","//a[contains(@href,'netload.in/')]")
  5779. addObsoleteHost("netload\\.me\/\\w+","//a[contains(@href,'netload.me/')]")
  5780. addObsoleteHost("quickshare\\.cz\/\\w+","//a[contains(@href,'quickshare.cz/')]");
  5781. addObsoleteHost("filepost\\.com\/\\w+","//a[contains(@href,'filepost.com/')]");
  5782. addObsoleteHost("uploadhero\\.com\/\\w+","//a[contains(@href,'uploadhero.com/')]");
  5783. addObsoleteHost("uploadhero\\.co\/\\w+","//a[contains(@href,'uploadhero.co/')]");
  5784. addObsoleteHost("inafile\\.com\/\\w+","//a[contains(@href,'inafile.com/')]");
  5785. addObsoleteHost("megairon\\.net\/\\w+","//a[contains(@href,'megairon.net/')]");
  5786. addObsoleteHost("rapidsonic\\.com\/\\w+","//a[contains(@href,'rapidsonic.com/')]");
  5787. addObsoleteHost("fileparadox\\.com\/\\w+","//a[contains(@href,'fileparadox.com/')]");
  5788. addObsoleteHost("fileparadox\\.in\/\\w+","//a[contains(@href,'fileparadox.in/')]");
  5789. addObsoleteHost("linksave\\.in\/\\w+","//a[contains(@href,'linksave.in/')]");
  5790. addObsoleteHost("secured\\.in\/\\w+","//a[contains(@href,'secured.in/')]");
  5791. // obsolete start
  5792. }
  5793. //obsolete file hosts init end
  5794. //Add Host Example
  5795. /* if (GM_getValue("Check_datafile_dot_com_links", false))
  5796. {
  5797. addFileHost(
  5798. "datafile\.com\/\\w+",
  5799. 'var captchaPanel|<link href="/css/files_download.css"',
  5800. 'ErrorCode|ErrorCode 0: Invalid Link|btn-orange" href="#"',
  5801. 'You are downloading another file at this moment|You exceeded your free|Site Maintenance',
  5802. '<style type="text/css">',
  5803. "//a[contains(@href,'datafile.com')]",
  5804. true);
  5805. } */
  5806.  
  5807. function addFileHost(linkRegex, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, xpathEx, tryLoop)
  5808. {
  5809. var host = new Array(7);
  5810. host[0] = linkRegex;
  5811. host[1] = isAliveRegex;
  5812. host[2] = isDeadRegex;
  5813. host[3] = isUnavaRegex;
  5814. host[6] = ispremRegex;
  5815. host[4] = xpathEx;
  5816. tryLoop ? host[5] = true : host[5] = false;
  5817. http_file_hosts.push(host);
  5818. }
  5819. if (GM_getValue("Check_megafileupload_dot_com_links", false))
  5820. {
  5821. addFileHost(
  5822. "megafileupload\.com\/..\/file\/",
  5823. 'downloadbtn',
  5824. 'is not found',
  5825. 'optional--',
  5826. 'optional2--',
  5827. "//a[contains(@href,'megafileupload.com')]");
  5828. }
  5829. if (GM_getValue("Check_demo_dot_ovh_dot_eu_links", false))
  5830. {
  5831. addFileHost(
  5832. "demo\\.ovh\\.eu\/\\w+\/\\w+",
  5833. 'download\\.gif"',
  5834. 'p_point">',
  5835. 'optional--',
  5836. 'optional2--',
  5837. "//a[contains(@href,'demo.ovh.eu')]");
  5838. }
  5839. if (GM_getValue("Check_xkeepfile_dot_com_links", false))
  5840. {
  5841. addFileHost(
  5842. "xkeepfile\.com\/\\w+",
  5843. 'File has been found|Click here to download',
  5844. 'File cannot be found|class="error">',
  5845. 'optional--',
  5846. 'optional2--',
  5847. "//a[contains(@href,'xkeepfile.com/') or contains(@href,'Gamesena.com/')]");
  5848. }
  5849. if (GM_getValue("Check_safelinking_dot_net_links", false))
  5850. {
  5851. addFileHost(
  5852. "safelinking\\.net\/p\/\\w+",
  5853. 'color:green;"',
  5854. 'color:(?:red|orange);"',
  5855. 'color:(?:grey|brown);"',
  5856. 'optional2--',
  5857. "//a[contains(@href,'safelinking.net/p/')]",
  5858. true);
  5859. }
  5860. if (GM_getValue("Check_fastshare_dot_cz_links", false))
  5861. {
  5862. addFileHost(
  5863. "fastshare\\.cz\/\\d+\/\\w*",
  5864. 'dwntable">',
  5865. 'nebyla nalezena|nebola nájdená|nie została odnaleziona|color:red;font-weight:bold;border\\-style:dashed|<i class="fa fa-copyright"></i>',
  5866. 'optional--',
  5867. 'optional2--',
  5868. "//a[contains(@href,'fastshare.cz')]");
  5869. }
  5870. if (GM_getValue("Check_fastshare_dot_org_links", false))
  5871. {
  5872. addFileHost(
  5873. "[fF]ast[sS]hare\\.org\/download",
  5874. 'Download ">',
  5875. 'Diese Datei wurde wegen|wurde kein Dateiname',
  5876. 'optional--',
  5877. 'optional2--',
  5878. "//a[contains(@href,'fastshare.org/download') or contains(@href,'FastShare.org/download')]");
  5879. }
  5880. if (GM_getValue("Check_partage_dash_facile_dot_com_links", false))
  5881. {
  5882. addFileHost(
  5883. "partage-facile\.com\/\\w+",
  5884. 'class="title"><strong>|colspan="2"',
  5885. 'Page introuvable|class="alert-message',
  5886. 'optional--',
  5887. 'optional2--',
  5888. "//a[contains(@href,'partage-facile.com')]");
  5889. }
  5890. if (GM_getValue("Check_rapidgator_dot_net_links", false))
  5891. {
  5892. addFileHost(
  5893. "rapidgator\\.net\/file\/\\w+",
  5894. '/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',
  5895. 'Error 404|File not found|Error 500|Файл не найден|ファイルが探せませんでした|Fichier non trouvé|Archivo no encontrado|Select your plan',
  5896. 'optional--',
  5897. 'can be downloaded by premium only|files up to 500 MB in free mode|files up to 1 GB in free mode',
  5898. "//a[contains(@href,'rapidgator.net/file')]",
  5899. true
  5900. );
  5901. }
  5902. if (GM_getValue("Check_relink_dot_us_links", false))
  5903. {
  5904. addFileHost(
  5905. "relink\\.us\/(?:f\/\\w+|go\\.php\\?id=\\d+|view\\.php\\?id=\\d+)",
  5906. 'online_detail\\.png" alt="Status',
  5907. '(?:offline|partially)_detail\\.png" alt="Status|File deleted',
  5908. 'unknown_detail\\.png" alt="Status',
  5909. 'optional2--',
  5910. "//a[contains(@href,'relink.us/')]"
  5911. );
  5912. }
  5913. if (GM_getValue("Check_uploadstube_dot_de_links", false))
  5914. {
  5915. addFileHost(
  5916. "uploadstube\\.de\/download\\.php\\?file=\\d+",
  5917. 'div id="dl"',
  5918. 'Sie haben den Link falsch',
  5919. 'optional--',
  5920. 'optional2--',
  5921. "//a[contains(@href,'uploadstube.de/download.php?file=')]"
  5922. );
  5923. }
  5924. if (GM_getValue("Check_flyfiles_dot_net_links", false))
  5925. {
  5926. addFileHost(
  5927. "flyfiles\\.net\/\\w+",
  5928. 'download_button"|"Download file"',
  5929. 'File not found!|Файл не найден',
  5930. 'optional--',
  5931. 'optional2--',
  5932. "//a[contains(@href,'flyfiles.net/')]"
  5933. );
  5934. }
  5935. if (GM_getValue("Check_wikiupload_dot_com_links", false))
  5936. {
  5937. addFileHost(
  5938. "wikiupload\\.com\/\\w+",
  5939. 'download-button">',
  5940. 'Sorry, File not found',
  5941. 'optional--',
  5942. 'optional2--',
  5943. "//a[contains(@href,'wikiupload.com/')]"
  5944. );
  5945. }
  5946. if (GM_getValue("Check_hostuje_dot_net_links", false))
  5947. {
  5948. addFileHost(
  5949. "hostuje\\.net\/file\\.php\\?id=\\w+",
  5950. 'file\\.php">|Pobierz Plik',
  5951. 'Podany plik nie zosta',
  5952. 'optional--',
  5953. 'optional2--',
  5954. "//a[contains(@href,'hostuje.net/file')]"
  5955. );
  5956. }
  5957. if (GM_getValue("Check_gettyfile_dot_ru_links", false))
  5958. {
  5959. addFileHost(
  5960. "gettyfile\\.ru\/\\d+",
  5961. 'download\\.gif border',
  5962. '<center><font size="3">',
  5963. 'optional--',
  5964. 'optional2--',
  5965. "//a[contains(@href,'gettyfile.ru/')]"
  5966. );
  5967. }
  5968. if (GM_getValue("Check_turbobit_dot_ru_links", false))
  5969. {
  5970. addFileHost(
  5971. "(?:turbob1t|failoobmenik|filesmail|firebit|dlbit|files\\.china\\-gsm|3aka4aem|file\\.piratski|mnogofiles|links-free|turbo-bit|turbosfiles)\\.\\w+\/\\w+",
  5972. 'download\\-file">',
  5973. 'col-1">\\s*<h1>',
  5974. 'optional--',
  5975. 'optional2--',
  5976. "//a[contains(@href,'turbobit.ru/') or contains(@href,'filesmail.ru/') or contains(@href,'failoobmenik.ru/')"+
  5977. " or contains(@href,'firebit.in/') or contains(@href,'dlbit.net/') or contains(@href,'files.china-gsm.ru/') or contains(@href,'3aka4aem.ru/')"+
  5978. " or contains(@href,'file.piratski.ru/') or contains(@href,'mnogofiles.com/') or contains(@href,'links-free.ru/')"+
  5979. " or contains(@href,'turbo-bit.ru/') or contains(@href,'turbosfiles.ru/')]"
  5980. );
  5981. }
  5982. if (GM_getValue("Check_data_dot_hu_links", false))
  5983. {
  5984. addFileHost(
  5985. "data\\.hu\/get\/\\d+\/",
  5986. 'download_box_button',
  5987. 'missing\\.php',
  5988. 'optional--',
  5989. 'optional2--',
  5990. "//a[contains(@href,'data.hu/get')]",
  5991. true
  5992. );
  5993. }
  5994. if (GM_getValue("Check_filesmelt_dot_com_links", false))
  5995. {
  5996. addFileHost(
  5997. "filesmelt\\.com\/dl\/\\w+",
  5998. '(Your download is ready|Download File)',
  5999. 'Sorry, but your',
  6000. 'optional--',
  6001. 'optional2--',
  6002. "//a[contains(@href,'filesmelt.com/dl')]"
  6003. );
  6004. }
  6005. if (GM_getValue("Check_indowebster_dot_com_links", false))
  6006. {
  6007. addFileHost(
  6008. "(?:files\\.)?indowebster\\.com\/download\/\\w+\/",
  6009. 'premiumBtn"',
  6010. 'errorMessage"',
  6011. 'optional--',
  6012. 'optional2--',
  6013. "//a[contains(@href,'indowebster.com/download')]"
  6014. );
  6015. }
  6016. if (GM_getValue("Check_superload_dot_cz_links", false))
  6017. {
  6018. addFileHost(
  6019. "superload\\.cz\/dl\/\\w+",
  6020. 'icon-download">',
  6021. 'soubor nebyl nalezen',
  6022. 'optional--',
  6023. 'optional2--',
  6024. "//a[contains(@href,'superload.cz/dl')]"
  6025. );
  6026. }
  6027. if (GM_getValue("Check_hulkfile_dot_eu_links", false))
  6028. {
  6029. addFileHost(
  6030. "(?:w\\.hulkfile\\.com|hulkfile\\.eu)\/\\w+",
  6031. 'op" value="download',
  6032. 'class="err">|width:500px;text-align:left;">',
  6033. 'optional--',
  6034. 'optional2--',
  6035. "//a[contains(@href,'hulkfile.')]"
  6036. );
  6037. }
  6038. if (GM_getValue("Check_easybytez_dot_com_links", false))
  6039. {
  6040. addFileHost(
  6041. "easybytez\\.com\/\\w+",
  6042. 'op" value="download',
  6043. 'stop_error\\.gif',
  6044. 'optional--',
  6045. 'optional2--',
  6046. "//a[contains(@href,'easybytez.com/')]"
  6047. );
  6048. }
  6049. if (GM_getValue("Check_filestore_dot_com_dot_ua_links", false))
  6050. {
  6051. addFileHost(
  6052. "filestore\\.com\\.ua\/\\?d=\\w+",
  6053. 'tdrow1>',
  6054. 'class=warn',
  6055. 'optional--',
  6056. 'optional2--',
  6057. "//a[contains(@href,'filestore.com.ua/?d=')]"
  6058. );
  6059. }
  6060. if (GM_getValue("Check_netkups_dot_com_links", false))
  6061. {
  6062. addFileHost(
  6063. "netkups\\.com\/\\?d=\\w+",
  6064. 'submit">Continue',
  6065. 'page">File not found|deleted due to inactivity',
  6066. 'optional--',
  6067. 'optional2--',
  6068. "//a[contains(@href,'netkups.com/?d=')]"
  6069. );
  6070. }
  6071. if (GM_getValue("Check_openfile_dot_ru_links", false))
  6072. {
  6073. addFileHost(
  6074. "openfile\\.ru\/(?:video\/|)\\d+",
  6075. 'videobox_left">',
  6076. 'blog_title">|not found on this server',
  6077. 'optional--',
  6078. 'optional2--',
  6079. "//a[contains(@href,'openfile.ru/')]"
  6080. );
  6081. }
  6082. if (GM_getValue("Check_extmatrix_dot_com_links", false))
  6083. {
  6084. addFileHost(
  6085. "extmatrix\\.com\/files\/\\w+",
  6086. 'div class="success"',
  6087. 'div class="error"',
  6088. 'optional--',
  6089. 'optional2--',
  6090. "//a[contains(@href,'extmatrix.com/files')]"
  6091. );
  6092. }
  6093. if (GM_getValue("Check_sendfiles_dot_nl_links", false))
  6094. {
  6095. addFileHost(
  6096. "sendfiles\\.nl\/download.aspx\\?ID=\\w+",
  6097. 'content_lnkDownload',
  6098. 'error\\.aspx\\?',
  6099. 'optional--',
  6100. 'optional2--',
  6101. "//a[contains(@href,'sendfiles.nl/download.aspx')]"
  6102. );
  6103. }
  6104. if (GM_getValue("Check_yourfilestore_dot_com_links", false))
  6105. {
  6106. addFileHost(
  6107. "yourfilestore\\.com\/download\/\\d+\/",
  6108. 'download_data">',
  6109. 'may have been deleted|<h1>Sorry!<\/h1>',
  6110. 'optional--',
  6111. 'optional2--',
  6112. "//a[contains(@href,'yourfilestore.com/download')]"
  6113. );
  6114. }
  6115. if (GM_getValue("Check_nekaka_dot_com_links", false))
  6116. {
  6117. addFileHost(
  6118. "nekaka\\.com\/d\/[\\w-]+",
  6119. 'downloadForm">',
  6120. 'invalid file link',
  6121. 'optional--',
  6122. 'optional2--',
  6123. "//a[contains(@href,'nekaka.com/d')]"
  6124. );
  6125. }
  6126. if (GM_getValue("Check_filebig_dot_net_links", false))
  6127. {
  6128. addFileHost(
  6129. "filebig\\.net\/files\/\\w+",
  6130. 'downloadFile">',
  6131. '<p>File not found<\/p>',
  6132. 'optional--',
  6133. 'optional2--',
  6134. "//a[contains(@href,'filebig.net/files')]"
  6135. );
  6136. }
  6137. if (GM_getValue("Check_gamefront_dot_com_links", false))
  6138. {
  6139. addFileHost(
  6140. "files\\.filefront\\.com\/\/;\\d+;;",
  6141. 'downloadLink">',
  6142. 'File not found, you',
  6143. 'optional--',
  6144. 'optional2--',
  6145. "//a[contains(@href,'files.filefront.com')]"
  6146. );
  6147.  
  6148. addFileHost(
  6149. "gamefront\\.com\/files\/\\d+",
  6150. 'downloadLink">',
  6151. 'File not found, you',
  6152. 'optional--',
  6153. 'optional2--',
  6154. "//a[contains(@href,'gamefront.com/files')]"
  6155. );
  6156. }
  6157. if (GM_getValue("Check_hyperfileshare_dot_com_links", false))
  6158. {
  6159. addFileHost(
  6160. "(?:download\\.|)hyperfileshare\\.com\/(?:download\\.php\\?code=|d\/)\\w+",
  6161. 'dnlLnk"',
  6162. 'already been deleted',
  6163. 'optional--',
  6164. 'optional2--',
  6165. "//a[contains(@href,'hyperfileshare.com/download') or contains(@href,'hyperfileshare.com/d')]"
  6166. );
  6167. }
  6168. if (GM_getValue("Check_hellupload_dot_com_links", false))
  6169. {
  6170. addFileHost(
  6171. "hellupload\\.com\/\\w+",
  6172. '<h3>Download File<br',
  6173. 'id="podstrona">|AVOID_IE_BUG',
  6174. 'optional--',
  6175. 'optional2--',
  6176. "//a[contains(@href,'hellupload.com/')]"
  6177. );
  6178. }
  6179. if (GM_getValue("Check_free_dash_uploading_dot_com_links", false))
  6180. {
  6181. addFileHost(
  6182. "free\\-uploading\\.com\/\\w+",
  6183. 'op" value="download',
  6184. 'class="err">|width:500px;text-align:left;">',
  6185. 'optional--',
  6186. 'optional2--',
  6187. "//a[contains(@href,'free-uploading.com/')]"
  6188. );
  6189. }
  6190. if (GM_getValue("Check_fileape_dot_com_links", false))
  6191. {
  6192. addFileHost(
  6193. "fileape\\.com\/download\\-",
  6194. 'button_dl\\.png',
  6195. 'does not exist\\.',
  6196. 'optional--',
  6197. 'optional2--',
  6198. "//a[contains(@href,'fileape.com/')]"
  6199. );
  6200. }
  6201. if (GM_getValue("Check_uppit_dot_com_links", false))
  6202. {
  6203. addFileHost(
  6204. "(?:uppit\\.com|up\\.ht)\/\\w+",
  6205. 'op" value="download',
  6206. 'class="err">|style="width:500px;text-align:left;"|fish-404\\.png"',
  6207. 'optional--',
  6208. 'optional2--',
  6209. "//a[contains(@href,'up.ht/') or contains(@href,'uppit.com/')]",
  6210. true
  6211. );
  6212. }
  6213. if (GM_getValue("Check_nosupload_dot_com_links", false))
  6214. {
  6215. addFileHost(
  6216. "nosupload\\.com\/(?:\\?d=)?\\w+",
  6217. 'op" value="download',
  6218. '>File Not Found<',
  6219. 'optional--',
  6220. 'optional2--',
  6221. "//a[contains(@href,'nosupload.com')]",
  6222. true
  6223. );
  6224. }
  6225. if (GM_getValue("Check_filesin_dot_com_links", false))
  6226. {
  6227. addFileHost(
  6228. "filesin\\.com\/\\w+\/download\\.html",
  6229. 'download_area">',
  6230. 'error_note">',
  6231. 'optional--',
  6232. 'optional2--',
  6233. "//a[contains(@href,'filesin.com/')]",
  6234. true
  6235. );
  6236. }
  6237. if (GM_getValue("Check_nowdownload_dot_ch_links", false))
  6238. {
  6239. addFileHost(
  6240. "nowdownload\\.ch\/dl\/\\w+",
  6241. 'alert-success"',
  6242. 'This file does not exist!',
  6243. 'The file is being transfered',
  6244. 'optional2--',
  6245. "//a[contains(@href,'nowdownload.ch/dl')]"
  6246. );
  6247. }
  6248. if (GM_getValue("Check_axifile_dot_com_links", false))
  6249. {
  6250. addFileHost(
  6251. "axifile\\.com(?:\/\w(2))?\/\\??\\w+",
  6252. 'Dbutton_big"',
  6253. 'download\\-error\\.php',
  6254. 'optional--',
  6255. 'optional2--',
  6256. "//a[contains(@href,'axifile.com/')]"
  6257. );
  6258. }
  6259. if (GM_getValue("Check_hulkshare_dot_com_links", false))
  6260. {
  6261. addFileHost(
  6262. "hulkshare\.com\/\\w+",
  6263. 'download\.sam\.png|This is a private file|id="filename',
  6264. 'File does not exist|fingerprint protected copyright',
  6265. 'optional--',
  6266. 'optional2--',
  6267. "//a[contains(@href,'hulkshare.com')]"
  6268. );
  6269. }
  6270. if (GM_getValue("Check_turbobit_dot_net_links", false)) //folders
  6271. {
  6272. addFileHost(
  6273. "turbobit\\.(?:net|pl)\/download\/folder\/\\d+",
  6274. 'col-1">\\s*<s',
  6275. 'col-1">\\s*<h',
  6276. 'optional--',
  6277. 'optional2--',
  6278. "//a[contains(@href,'turbobit.') and contains(@href,'download/folder')]"
  6279. );
  6280. }
  6281. if (GM_getValue("Check_turbobit_dot_net_links", false)) //folders
  6282. {
  6283. addFileHost(
  6284. "turbobit\\.(?:net|pl)",
  6285. 'id="download-gate-info',
  6286. 'afterWait()',
  6287. 'optional--',
  6288. 'optional2--',
  6289. "//a[contains(@href,'turbobit.net')]"
  6290. );
  6291. }
  6292. if (GM_getValue("Check_hitfile_dot_net_links", false)) //folders
  6293. {
  6294. addFileHost(
  6295. "hitfile\\.net\/download\/folder\/\\d+",
  6296. 'content">\\s*<s',
  6297. 'content">\\s*<h',
  6298. 'optional--',
  6299. 'optional2--',
  6300. "//a[contains(@href,'hitfile.net/download/folder')]"
  6301. );
  6302. }
  6303. if (GM_getValue("Check_movshare_dot_net_links", false))
  6304. {
  6305. addFileHost(
  6306. "movshare\\.net\\/video\\/\\w+",
  6307. 'optional--"',
  6308. 'no longer exists',
  6309. 'optional--',
  6310. 'optional2--',
  6311. "//a[contains(@href,'movshare.net/video')]"
  6312. );
  6313. }
  6314. if (GM_getValue("Check_plunder_dot_com_links", false))
  6315. {
  6316. addFileHost(
  6317. "plunder\.com\/\\w+",
  6318. 'x\/download\\.gif',
  6319. '404 - File or directory not found.',
  6320. 'optional--',
  6321. 'optional2--',
  6322. "//a[contains(@href,'plunder.com')]"
  6323. );
  6324. }
  6325. if (GM_getValue("Check_mafiastorage_dot_com_links", false))
  6326. {
  6327. addFileHost(
  6328. "mafiastorage\\.com\/\\w+",
  6329. 'op" value="download',
  6330. 'class="err">|style="width:500px;text-align:left;"',
  6331. 'optional--',
  6332. 'optional2--',
  6333. "//a[contains(@href,'mafiastorage.com/')]"
  6334. );
  6335. }
  6336. if (GM_getValue("Check_uploadspace_dot_pl_links", false))
  6337. {
  6338. addFileHost(
  6339. "uploadspace\.pl\/plik\\w+",
  6340. 'Downloading .+? \\|',
  6341. 'Downloading a file',
  6342. 'optional--',
  6343. 'optional2--',
  6344. "//a[contains(@href,'uploadspace.pl/plik')]"
  6345. );
  6346. }
  6347. if (GM_getValue("Check_uploadingit_dot_com_links", false))
  6348. {
  6349. addFileHost(
  6350. "uploadingit\\.com\/file\/\\w+",
  6351. 'downloadTitle">',
  6352. 'deleteContent">',
  6353. 'optional--',
  6354. 'optional2--',
  6355. "//a[contains(@href,'uploadingit.com/file')]"
  6356. );
  6357. }
  6358. if (GM_getValue("Check_rghost_dot_net_links", false))
  6359. {
  6360. addFileHost(
  6361. "rghost\.(?:net|ru)\/(?:|private\/)\\d+",
  6362. 'download_link|btn large download',
  6363. 'file is restricted|File is deleted|503 Service Unavailable',
  6364. 'optional--',
  6365. 'optional2--',
  6366. "//a[contains(@href,'rghost.')]"
  6367. );
  6368. }
  6369. if (GM_getValue("Check_xdisk_dot_cz_links", false))
  6370. {
  6371. addFileHost(
  6372. "xdisk\\.cz\/(?:..\/)?download\\.php\\?id=\\w+",
  6373. '">Staženo:\\s*<\/span>',
  6374. 'Soubor, který hledáte nenalezen',
  6375. 'optional--',
  6376. 'optional2--',
  6377. "//a[contains(@href,'xdisk.cz/')]"
  6378. );
  6379. }
  6380. if (GM_getValue("Check_expressleech_dot_com_links", false))
  6381. {
  6382. addFileHost(
  6383. "expressleech\.com\/\\w+",
  6384. 'src="/img/Download.gif"|var _gaq =',
  6385. 'var rr =|403 Forbidden',
  6386. 'optional--',
  6387. 'optional2--',
  6388. "//a[contains(@href,'expressleech.com')]");
  6389. }
  6390. if (GM_getValue("Check_2downloadz_dot_com_links", false))
  6391. {
  6392. addFileHost(
  6393. "2downloadz\.com\/\\w+",
  6394. 'color="#848484|src="images/Download.png"|color:#238DCA',
  6395. 'color="#006DCC|File error',
  6396. 'optional--',
  6397. 'optional2--',
  6398. "//a[contains(@href,'2downloadz.com')]");
  6399. }
  6400. if (GM_getValue("Check_mightyupload_dot_com_links", false))
  6401. {
  6402. addFileHost(
  6403. "mightyupload\.com\/\\w+",
  6404. 'background:#ccc;text-align|CONTENT="Download File"',
  6405. 'style="background:#eee|var rr =|File Not Found',
  6406. 'error-code">1010',
  6407. 'optional2--',
  6408. "//a[contains(@href,'mightyupload.com')]");
  6409. }
  6410. if (GM_getValue("Check_anysend_dot_com_links", false))
  6411. {
  6412. addFileHost(
  6413. "anysend\.com\/\\w+",
  6414. 'var openCalled=false;|content="noindex"',
  6415. '_trackPageview',
  6416. 'optional--',
  6417. 'optional2--',
  6418. "//a[contains(@href,'anysend.com')]");
  6419. }
  6420. if (GM_getValue("Check_datafile_dot_com_links", false))
  6421. {
  6422. addFileHost(
  6423. "datafile\.com\/\\w+",
  6424. 'var captchaPanel', //|<link href="/css/files_download.css"',
  6425. 'ErrorCode|ErrorCode 0: Invalid Link|btn-orange" href="#"',
  6426. 'You are downloading another file at this moment|You exceeded your free|Site Maintenance',
  6427. '; display:none;">|<a style="margin-top: auto; margin-bottom: auto;" class="get-premium-button" href="javascript:void(0)">', //<style type="text/css">
  6428. "//a[contains(@href,'datafile.com')]",
  6429. true);
  6430. }
  6431. if (GM_getValue("Check_upstore_dot_net_links", false))
  6432. {
  6433. addFileHost(
  6434. "upstore\.net\/\\w+",
  6435. 'style="margin-top: 20px">|style="text-align:center; margin: 20px 0 100px;">',
  6436. 'File not found|onload="redirect|class="error">',
  6437. 'optional--',
  6438. 'optional2--',
  6439. "//a[contains(@href,'upstore.net')]");
  6440. }
  6441. if (GM_getValue("Check_upsto_dot_re_links", false))
  6442. {
  6443. addFileHost(
  6444. "upsto\.re\/\\w+",
  6445. 'style="margin-top: 20px">|style="text-align:center; margin: 20px 0 100px;">',
  6446. 'File not found|onload="redirect|class="error">',
  6447. 'optional--',
  6448. 'optional2--',
  6449. "//a[contains(@href,'upsto.re')]");
  6450. }
  6451. if (GM_getValue("Check_speedy_dot_sh_links", false))
  6452. {
  6453. addFileHost(
  6454. "speedy\.sh\/\\w+",
  6455. 'bgcolor=#eeeeee|class="addthis',
  6456. 'File not found|downloadfilenamenotfound>',
  6457. 'optional--',
  6458. 'optional2--',
  6459. "//a[contains(@href,'speedy.sh')]");
  6460. }
  6461. if (GM_getValue("Check_sanshare_dot_com_links", false))
  6462. {
  6463. addFileHost(
  6464. "sanshare\.com\/\\w+",
  6465. 'SANSHARE_TOPBANNER|offset-1"><h3><b>Download File',
  6466. 'offset-1"><b>File Not Found<|width:500px;text-align',
  6467. 'optional--',
  6468. 'optional2--',
  6469. "//a[contains(@href,'sanshare.com')]");
  6470. }
  6471. if (GM_getValue("Check_kingfiles_dot_net_links", false))
  6472. {
  6473. addFileHost(
  6474. "kingfiles\.net\/\\w+",
  6475. 'method_free',
  6476. 'var rr =|"description" CONTENT="Download File ">|<div style="width:500px;text-align:left;">|The file was removed by administrator',
  6477. 'optional--',
  6478. 'optional2--',
  6479. "//a[contains(@href,'kingfiles.net')]");
  6480. }
  6481. /* if (GM_getValue("Check_uploadhero_dot_co_links", false))
  6482. {
  6483. addFileHost(
  6484. "uploadhero\\.co\/dl\/\\w+",
  6485. 'class="nom_de_fichier"|Unlimited downloads|Estimated download time|Lien de téléchargement"',
  6486. 'not available on our server|pas disponible sur nos serveurs|Le lien du fichier est incorrect',
  6487. 'optional--',
  6488. 'optional2--',
  6489. "//a[contains(@href,'uploadhero.co/dl')]"
  6490. );
  6491. } */
  6492. if (GM_getValue("Check_secureupload_dot_eu_links", false))
  6493. {
  6494. addFileHost(
  6495. "secureupload\\.eu\/\\w+",
  6496. 'Downloading',
  6497. 'cannot be found|File Not Found|could not be found|ne pourrait pas etre trouve|konnte nicht gefunden werden',
  6498. 'optional--',
  6499. 'optional2--',
  6500. "//a[contains(@href,'secureupload.eu')]"
  6501. );
  6502. }
  6503. if (GM_getValue("Check_ge_dot_tt_links", false))
  6504. {
  6505. addFileHost(
  6506. "ge\.tt\/\\w+",
  6507. 'downloads pic',
  6508. 'is NOT the same as',
  6509. 'optional--',
  6510. 'optional2--',
  6511. "//a[contains(@href,'ge.tt')]");
  6512. }
  6513. if (GM_getValue("Check_filefactory_dot_com_links", false))
  6514. {
  6515. addFileHost(
  6516. "filefactory\.com\/\\w+",
  6517. 'div id="file_holder"|download.css',
  6518. 'File Removed|Invalid Download Link|File Unavailable|Server Failed|Datei entfernt|This file has been removed|Invalid Download Link',
  6519. 'Server Maintenance|temporarily overloaded',
  6520. 'optional2--',
  6521. "//a[contains(@href,'filefactory.com')]");
  6522. }
  6523. if (GM_getValue("Check_filesflash_dot_net_links", false))
  6524. {
  6525. addFileHost(
  6526. "filesflash\.net\/\\w+",
  6527. 'align:right">Filename:',
  6528. 'class="msg">',
  6529. 'optional--',
  6530. 'optional2--',
  6531. "//a[contains(@href,'filesflash.net')]");
  6532. }
  6533. if (GM_getValue("Check_rapidgator_dot_net_links", false)) //folders
  6534. {
  6535. addFileHost(
  6536. "rapidgator\\.net\/folder\/\\w+",
  6537. 'href="/folder/',
  6538. 'class="empty|Folder not found|Carpeta no encontrada|Dossier non trouvé|Папка не найдена',
  6539. 'optional--',
  6540. 'optional2--',
  6541. "//a[contains(@href,'rapidgator.net/folder')]",
  6542. true
  6543. );
  6544. }
  6545. if (GM_getValue("Check_salefiles_dot_com_links", false))
  6546. {
  6547. addFileHost(
  6548. "salefiles\.com\/\\w+",
  6549. '<Title>Download|CONTENT="Download',
  6550. 'font:15px Arial|background:#eee;',
  6551. 'optional--',
  6552. 'optional2--',
  6553. "//a[contains(@href,'salefiles.com')]");
  6554. }
  6555. /* if (GM_getValue("Check_megairon_dot_net_links", false))
  6556. {
  6557. addFileHost(
  6558. "megairon\.net\/\\w+",
  6559. 'border: 5px #ffeb90 solid;',
  6560. 'CONTENT="Download File ">|var rr =',
  6561. 'error-code">523',
  6562. 'optional2--',
  6563. "//a[contains(@href,'megairon.net')]",
  6564. true);
  6565. } */
  6566. if (GM_getValue("Check_datoid_dot_cz_links", false))
  6567. {
  6568. addFileHost(
  6569. "datoid\.cz\/\\w+",
  6570. 'btn-download|class="icon-download-large"',
  6571. 'Stránka nenalezena|error-404|Soubor byl zablokován',
  6572. 'optional--',
  6573. 'optional2--',
  6574. "//a[contains(@href,'datoid.cz')]");
  6575. }
  6576. if (GM_getValue("Check_stiahni_dot_si_links", false))
  6577. {
  6578. addFileHost(
  6579. "stiahni\.si\/\\w+",
  6580. 'report_icon.png"|slow-download-button',
  6581. 'none.png|deleted|<h2>Error 500</h2>',
  6582. 'optional--',
  6583. 'optional2--',
  6584. "//a[contains(@href,'stiahni.si')]");
  6585. }
  6586. if (GM_getValue("Check_cloudstor_dot_es_links", false))
  6587. {
  6588. addFileHost(
  6589. "cloudstor\.es\/\\w+",
  6590. '"btn_download"',
  6591. '404: Page Not Found',
  6592. 'optional--',
  6593. 'optional2--',
  6594. "//a[contains(@href,'cloudstor.es')]");
  6595. }
  6596. if (GM_getValue("Check_streamfile_dot_com_links", false))
  6597. {
  6598. addFileHost(
  6599. "streamfile\.com\/\\w+",
  6600. 'class="btn',
  6601. 'class="green-btn',
  6602. 'optional--',
  6603. 'optional2--',
  6604. "//a[contains(@href,'streamfile.com')]");
  6605. }
  6606. if (GM_getValue("Check_eyesfile_dot_ca_links", false))
  6607. {
  6608. addFileHost(
  6609. "eyesfile\.ca\/\\w+",
  6610. 'value="Get Link',
  6611. 'var rr =',
  6612. 'optional--',
  6613. 'optional2--',
  6614. "//a[contains(@href,'eyesfile.ca')]");
  6615. }
  6616. if (GM_getValue("Check_filemoney_dot_com_links", false))
  6617. {
  6618. addFileHost(
  6619. "filemoney\.com\/\\w+",
  6620. 'og:title',
  6621. '404 Not Found|<Title>FileMoney|File Not Found|class="err">DMCA</b>',
  6622. 'error-code">1010',
  6623. 'optional2--',
  6624. "//a[contains(@href,'filemoney.com')]");
  6625. }
  6626. if (GM_getValue("Check_uploadboy_dot_com_links", false))
  6627. {
  6628. addFileHost(
  6629. "uploadboy\.com\/\\w+",
  6630. 'width="740">|method_free',
  6631. 'var rr =|background:#ffffff|not be found|file was removed',
  6632. 'optional--',
  6633. 'optional2--',
  6634. "//a[contains(@href,'uploadboy.com')]");
  6635. }
  6636. if (GM_getValue("Check_speedshare_dot_eu_links", false))
  6637. {
  6638. addFileHost(
  6639. "speedshare\.eu\/\\w+",
  6640. 'favicon.png|color:#3d87c0|cross.png"',
  6641. 'var rr =|File Not Found|style="background:#eee',
  6642. 'optional--',
  6643. 'optional2--',
  6644. "//a[contains(@href,'speedshare.eu')]");
  6645. }
  6646. if (GM_getValue("Check_unlimitzone_dot_com_links", false))
  6647. {
  6648. addFileHost(
  6649. "unlimitzone\.com\/\\w+",
  6650. 'name="method_free',
  6651. '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',
  6652. 'optional--',
  6653. 'optional2--',
  6654. "//a[contains(@href,'unlimitzone.com')]");
  6655. }
  6656. if (GM_getValue("Check_rioupload_dot_com_links", false))
  6657. {
  6658. addFileHost(
  6659. "rioupload\.com\/\\w+",
  6660. 'sell.jpg',
  6661. 'var rr =',
  6662. 'optional--',
  6663. 'optional2--',
  6664. "//a[contains(@href,'rioupload.com')]");
  6665. }
  6666. if (GM_getValue("Check_rg_dot_to_links", false))
  6667. {
  6668. addFileHost(
  6669. "rg\.to\/\\w+",
  6670. '/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',
  6671. 'Error 404|File not found|Select your plan|Fichier non trouvé|Archivo no encontrado|ファイルが探せませんでした|Файл не найден',
  6672. 'optional--',
  6673. 'can be downloaded by premium only|files up to 500 MB in free mode',
  6674. "//a[contains(@href,'rg.to')]");
  6675. }
  6676. if (GM_getValue("Check_jumbofiles_dot_org_links", false))
  6677. {
  6678. addFileHost(
  6679. "jumbofiles\.org\/\\w+",
  6680. 'H71C5.png|class="downloadtitle">',
  6681. 'var swfu|ViewSourceBIN.png',
  6682. 'optional--',
  6683. 'optional2--',
  6684. "//a[contains(@href,'jumbofiles.org')]");
  6685. }
  6686. if (GM_getValue("Check_fshare_dot_vn_links", false))
  6687. {
  6688. addFileHost(
  6689. "fshare\\.vn\/file\/\\w+",
  6690. 'action="#download"|left; width: 330px;">|class="bt_down"',
  6691. 'không tồn tại|class="color_red m_t_50"',
  6692. 'optional--',
  6693. 'optional2--',
  6694. "//a[contains(@href,'fshare.vn/file')]",
  6695. true
  6696. );
  6697. }
  6698. if (GM_getValue("Check_spaceforfiles_dot_com_links", false))
  6699. {
  6700. addFileHost(
  6701. "spaceforfiles\.com\/\\w+",
  6702. 'btn_slowspeed_b.jpg|value="download1|class="btn_blue',
  6703. 'var rr =|AVOID_IE_BUG',
  6704. 'optional--',
  6705. 'optional2--',
  6706. "//a[contains(@href,'spaceforfiles.com')]");
  6707. }
  6708. if (GM_getValue("Check_google_dot_com_links", false))
  6709. {
  6710. addFileHost(
  6711. "google\\.com\/file\/\\w+",
  6712. 'content="!">|color:#2d2d2d',
  6713. '12pt; font-weight:|class="errorMessage"|F0F6FF',
  6714. 'optional--',
  6715. 'optional2--',
  6716. "//a[contains(@href,'google.com/file')]",
  6717. true
  6718. );
  6719. }
  6720. if (GM_getValue("Check_google_dot_com_links", false))
  6721. {
  6722. addFileHost(
  6723. "docs.google.com\/\\w+",
  6724. 'content="!">|color:#2d2d2d',
  6725. '12pt; font-weight:|class="errorMessage"|F0F6FF|Error 404',
  6726. 'optional--',
  6727. 'optional2--',
  6728. "//a[contains(@href,'docs.google.com')]",
  6729. true
  6730. );
  6731. }
  6732. if (GM_getValue("Check_google_dot_com_links", false))
  6733. {
  6734. addFileHost(
  6735. "drive.google.com\/\\w+",
  6736. 'content="!">|color:#2d2d2d|id="uc-download-link',
  6737. '12pt; font-weight:|class="errorMessage"|F0F6FF|Error 404',
  6738. 'optional--',
  6739. 'optional2--',
  6740. "//a[contains(@href,'drive.google.com')]",
  6741. true
  6742. );
  6743. }
  6744. if (GM_getValue("Check_up_dot_media1fire_dot_com_links", false))
  6745. {
  6746. addFileHost(
  6747. "up.media1fire\.com\/\\w+",
  6748. 'class="addthis_|value="download',
  6749. 'var rr =|AVOID_IE_BUG|<div style="width:500px;text-align:left;">',
  6750. 'optional--',
  6751. 'optional2--',
  6752. "//a[contains(@href,'up.media1fire.com')]");
  6753. }
  6754. if (GM_getValue("Check_depfile_dot_com_links", false))
  6755. {
  6756. addFileHost(
  6757. "depfile\.com\/\\w+",
  6758. 'logo_0.png|downloads.gif"|verifycode',
  6759. 'border-color: #5D729B;|bgcolor="#778AAF"|deleted by the owner|Invalid Link',
  6760. 'optional--',
  6761. 'available only for Premium users',
  6762. "//a[contains(@href,'depfile.com')]");
  6763. }
  6764. if (GM_getValue("Check_go4up_dot_com_links", false))
  6765. {
  6766. addFileHost(
  6767. "go4up\.com\/\\w+",
  6768. 'style="width: 100%;">|value="Access|download_line|img/webbuttoned.gif">',
  6769. '<title>GO4UP|dmca',
  6770. 'optional--',
  6771. 'optional2--',
  6772. "//a[contains(@href,'go4up.com')]");
  6773. }
  6774. if (GM_getValue("Check_redbunker_dot_net_links", false))
  6775. {
  6776. addFileHost(
  6777. "redbunker\.net\/\\w+",
  6778. 'name="method_free"',
  6779. 'color="red">Unknow / Bilinmiyor<',
  6780. 'optional--',
  6781. 'optional2--',
  6782. "//a[contains(@href,'redbunker.net')]");
  6783. }
  6784. if (GM_getValue("Check_divxpress_dot_com_links", false))
  6785. {
  6786. addFileHost(
  6787. "divxpress\.com\/\\w+",
  6788. 'btn_download|logo.png"',
  6789. 'AVOID_IE_BUG|var rr =',
  6790. 'optional--',
  6791. 'optional2--',
  6792. "//a[contains(@href,'divxpress.com')]");
  6793. }
  6794. if (GM_getValue("Check_anafile_dot_com_links", false))
  6795. {
  6796. addFileHost(
  6797. "anafile\.com\/\\w+",
  6798. 'width="881" valign="top|color="#800080"|name="go"',
  6799. 'style="width:500px;text-align:left;">|file was deleted|AVOID_IE_BUG',
  6800. 'optional--',
  6801. 'optional2--',
  6802. "//a[contains(@href,'anafile.com')]");
  6803. }
  6804. if (GM_getValue("Check_uploadable_dot_ch_links", false))
  6805. {
  6806. addFileHost(
  6807. "uploadable\\.ch\/file\/\\w+",
  6808. 'captcha.js"|payment.js"|class="btn_download"',
  6809. '<div class="icon_err">|<div class="errorBox">|"error_arrow">',
  6810. 'optional--',
  6811. 'optional2--',
  6812. "//a[contains(@href,'uploadable.ch/file')]",
  6813. true
  6814. );
  6815. }
  6816. if (GM_getValue("Check_arabloads_dot_net_links", false))
  6817. {
  6818. addFileHost(
  6819. "arabloads\.net\/\\w+",
  6820. 'name="method_free"|name="method_premium"',
  6821. 'background:#eee;font:15px Arial;">|AVOID_IE_BUG|Verdana;padding:3px;">Error|Not Found',
  6822. 'optional--',
  6823. 'optional2--',
  6824. "//a[contains(@href,'arabloads.net')]");
  6825. }
  6826. if (GM_getValue("Check_sharerepo_dot_com_links", false))
  6827. {
  6828. addFileHost(
  6829. "sharerepo\.com\/\\w+",
  6830. 'name="method_free"',
  6831. 'var public_on=|The file you were looking for could not be found',
  6832. 'optional--',
  6833. 'optional2--',
  6834. "//a[contains(@href,'sharerepo.com')]");
  6835. }
  6836. if (GM_getValue("Check_sfshare_dot_se_links", false))
  6837. {
  6838. addFileHost(
  6839. "sfshare\.se\/\\w+",
  6840. 'id="btn_download"|class="btn btn-primary txt-bold" value="',
  6841. 'AVOID_IE_BUG|var rr =|style="width:500px;text-align:left;">|Reason for deletion|The file was removed',
  6842. 'optional--',
  6843. 'optional2--',
  6844. "//a[contains(@href,'sfshare.se')]");
  6845. }
  6846. if (GM_getValue("Check_files_dot_fm_links", false))
  6847. {
  6848. addFileHost(
  6849. "files\.fm\/\\w+",
  6850. 'dl.png"|background-color: transparent',
  6851. 'margin: 40px 40px|background: none;',
  6852. 'optional--',
  6853. 'optional2--',
  6854. "//a[contains(@href,'files.fm')]");
  6855. }
  6856. if (GM_getValue("Check_koofile_dot_com_links", false))
  6857. {
  6858. addFileHost(
  6859. "koofile\.com\/\\w+",
  6860. 'value="download1">|name="method_free"',
  6861. 'class="overview-content c_text-box ">|style="padding-top:3px;">|class="rt1 c">',
  6862. 'optional--',
  6863. 'optional2--',
  6864. "//a[contains(@href,'koofile.com')]");
  6865. }
  6866. if (GM_getValue("Check_vidxden_dot_com_links", false))
  6867. {
  6868. addFileHost(
  6869. "vidxden\\.com\/\\w+",
  6870. 'Continue to Video"',
  6871. 'No such file',
  6872. 'optional--',
  6873. 'optional2--',
  6874. "//a[contains(@href,'vidxden.com')]"
  6875. );
  6876. }
  6877. if (GM_getValue("Check_muchshare_dot_net_links", false))
  6878. {
  6879. addFileHost(
  6880. "muchshare\\.net\/\\w+",
  6881. 'id="btn_download"',
  6882. 'File Not Found|width: 500px; text-align: left;',
  6883. 'optional--',
  6884. 'optional2--',
  6885. "//a[contains(@href,'muchshare.net')]"
  6886. );
  6887. }
  6888. if (GM_getValue("Check_daten_dash_hoster_dot_de_links", false))
  6889. {
  6890. addFileHost(
  6891. "(?:daten-hoster\\.de\/file\/\\w+|filehosting\\.org\/file\/\\w+|xtraupload\\.de\/\\?d=\\w+)",
  6892. 'Details zur Datei|Details page',
  6893. 'Jetzt hochladen|upload now',
  6894. 'optional--',
  6895. 'optional2--',
  6896. "//a[contains(@href,'daten-hoster.de/file') or contains(@href,'filehosting.org/file') or contains(@href,'xtraupload.de')]"
  6897. );
  6898. }
  6899. if (GM_getValue("Check_upload_dash_il_dot_net_links", false))
  6900. {
  6901. addFileHost(
  6902. "(?:upload-il|przeslij)\.net\/(?:en|he|ar|ru|)\/?\\w+",
  6903. 'downloadbtn"',
  6904. 'DL_FileNotFound',
  6905. 'optional--',
  6906. 'optional2--',
  6907. "//a[contains(@href,'upload-il.net') or contains(@href,'przeslij.net')]"
  6908. );
  6909. }
  6910. if (GM_getValue("Check_fileflyer_dot_com_links", false))
  6911. {
  6912. addFileHost(
  6913. "fileflyer\.com\/view\/\\w+",
  6914. '(?:dwl|locked)btn"',
  6915. 'error.gif"|link">Removed|removedlink">',
  6916. 'optional--',
  6917. 'optional2--',
  6918. "//a[contains(@href,'fileflyer.com')]"
  6919. );
  6920. }
  6921. if (GM_getValue("Check_filestore_dot_to_links", false))
  6922. {
  6923. addFileHost(
  6924. "filestore\.to\/\\?d=\\w+",
  6925. '"downloading"',
  6926. 'Datei wurde nicht gefunden',
  6927. 'optional--',
  6928. 'optional2--',
  6929. "//a[contains(@href,'filestore.to')]"
  6930. );
  6931. }
  6932. if (GM_getValue("Check_easy_dash_share_dot_com_links", false))
  6933. {
  6934. addFileHost(
  6935. "(?:w\\d*\.|)(?:crocko|easy-share)\\.com\/.",
  6936. 'fz24">Download|class="pl15">',
  6937. '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',
  6938. 'optional--',
  6939. 'optional2--',
  6940. "//a[contains(@href,'easy-share.com') or contains(@href,'crocko.com')]"
  6941. );
  6942. }
  6943. /* if (GM_getValue("Check_burnupload_dot_com_links", false))
  6944. {
  6945. addFileHost(
  6946. "burnupload\\.(?:com\/\\?d=|ihiphop\\.com\/download\\.php\\?id=)\\w+",
  6947. 'File size:',
  6948. 'file is not found',
  6949. 'optional--',
  6950. 'optional2--',
  6951. "//a[contains(@href,'burnupload.com') or contains(@href,'burnupload.ihiphop.com')]"
  6952. );
  6953. } */
  6954. if (GM_getValue("Check_datei_dot_to_links", false))
  6955. {
  6956. addFileHost(
  6957. "datei\\.to\/\\??\\w+",
  6958. 'icon_downloaden\\.png|>Download starten<',
  6959. 'Datei wurde nicht gefunden|icon_deleted.png',
  6960. 'optional--',
  6961. 'optional2--',
  6962. "//a[contains(@href,'datei.to')]"
  6963. );
  6964. }
  6965. if (GM_getValue("Check_yunfile_dot_com_links", false))
  6966. {
  6967. addFileHost(
  6968. "(?:yunfile|filemarkets)\\.com\/\\w+",
  6969. '<body class="body" id="body">|value="Slow Download"',
  6970. '<body class="body" >',
  6971. 'optional--',
  6972. 'optional2--',
  6973. "//a[contains(@href,'yunfile.com') or contains(@href,'filemarkets.com')]"
  6974. );
  6975. }
  6976. /* if (GM_getValue("Check_uploadhero_dot_com_links", false))
  6977. {
  6978. addFileHost(
  6979. "uploadhero\\.com\/dl\/\\w+",
  6980. 'content-dl">',
  6981. 'men_file_lost\\.jpg"',
  6982. 'optional--',
  6983. 'optional2--',
  6984. "//a[contains(@href,'uploadhero.com/dl')]"
  6985. );
  6986. } */
  6987. if (GM_getValue("Check_unibytes_dot_com_links", false))
  6988. {
  6989. addFileHost(
  6990. "unibytes\\.com\/[\\w\.]+",
  6991. 'trying to download|пытаетесь загрузить файл|tes entrain de tlcharger',
  6992. 'File not found|Файл не найден|',
  6993. 'optional--',
  6994. 'optional2--',
  6995. "//a[contains(@href,'unibytes.com')]"
  6996. );
  6997. }
  6998. if (GM_getValue("Check_hellshare_dot_com_links", false)) //very old type of links
  6999. {
  7000. addFileHost(
  7001. "www\\.hellshare\\.com\/\\d+",
  7002. 'tab\\-details"',
  7003. 'list-purp-2"|not found on this server',
  7004. 'optional--',
  7005. 'optional2--',
  7006. "//a[contains(@href,'www.hellshare.com')]"
  7007. );
  7008. }
  7009. /* if (GM_getValue("Check_quickshare_dot_cz_links", false)) //folders
  7010. {
  7011. addFileHost(
  7012. "quickshare\\.cz\/slozka-\\d+",
  7013. 'Počet souborů: <strong>[1-9]',
  7014. 'Počet souborů: <strong>0|Chyba! Taková složka neexistuje',
  7015. 'optional--',
  7016. 'optional2--',
  7017. "//a[contains(@href,'quickshare.cz/slozka')]"
  7018. );
  7019. } */
  7020. if (GM_getValue("Check_filefactory_dot_com_links", false)) //folders
  7021. {
  7022. addFileHost(
  7023. "filefactory\\.com\/f\/\\w+",
  7024. 'folderFileList">',
  7025. 'table class="items"|Pointer" class="red">',
  7026. 'optional--',
  7027. 'optional2--',
  7028. "//a[contains(@href,'filefactory.com/f/')]"
  7029. );
  7030. }
  7031. /* if (GM_getValue("Check_netload_dot_in_links", false)) //folders
  7032. {
  7033. addFileHost(
  7034. "netfolder\\.in\/\\w+",
  7035. 'list" value="http',
  7036. 'InPage_Error">|list" value=""',
  7037. 'optional--',
  7038. 'optional2--',
  7039. "//a[contains(@href,'netfolder.in')]"
  7040. );
  7041. } */
  7042. if (GM_getValue("Check_load_dot_to_links", false))
  7043. {
  7044. addFileHost(
  7045. '(?:www\\.|\\/)load\\.to\\/(?:\\w{10}\\/.|\\?d=\\w{10})',
  7046. '"download_table_left">Size',
  7047. 'Can\'t find file',
  7048. 'optional--',
  7049. 'optional2--',
  7050. "//a[contains(@href,'/load.to/') or contains(@href,'www.load.to/')]"
  7051. );
  7052. }
  7053. if (GM_getValue("Check_divshare_dot_com_links", false))
  7054. {
  7055. addFileHost(
  7056. "divshare\\.com\/download\/",
  7057. 'download_new\.png',
  7058. 'have been removed',
  7059. 'optional--',
  7060. 'optional2--',
  7061. "//a[contains(@href,'divshare.com')]"
  7062. );
  7063. }
  7064. if (GM_getValue("Check_euroshare_dot_eu_links", false))
  7065. {
  7066. addFileHost(
  7067. "euroshare\\.(?:eu|pl|sk|cz|hu)\/file\/\\d+",
  7068. 'nazev-souboru">',
  7069. '<div id="obsah">\\s*<h1>',
  7070. 'optional--',
  7071. 'optional2--',
  7072. "//a[contains(@href,'euroshare.eu/file')]"
  7073. );
  7074. }
  7075. if (GM_getValue("Check_files_dot_mail_dot_ru_links", false))
  7076. {
  7077. addFileHost(
  7078. 'files\\.mail\\.ru/(?:\\w*)',
  7079. 'fileList',
  7080. 'errorMessage',
  7081. 'optional--',
  7082. 'optional2--',
  7083. "//a[contains(@href,'files.mail.ru')]"
  7084. );
  7085. }
  7086. if (GM_getValue("Check_megashares_dot_com_links", false))
  7087. {
  7088. addFileHost(
  7089. "(?:d\\d+\.|)megashares\.com\/(?:dl|index\.php\\?d|\\?d\\d+=\\w+)",
  7090. 'Filesize',
  7091. 'Invalid|deleted|Could not download file',
  7092. 'slots|scheduled maintenance',
  7093. 'optional2--',
  7094. "//a[contains(@href,'megashares.com/')]"
  7095. );
  7096. }
  7097. if (GM_getValue("Check_narod_dot_ru_links", false))
  7098. {
  7099. addFileHost(
  7100. 'narod\\.(?:yandex\\.|)ru\/disk\/',
  7101. 'b-submit',
  7102. 'b-download-virus-note|headCode">404<',
  7103. 'Внутренняя ошибка сервиса',
  7104. 'optional2--',
  7105. "//a[contains(@href,'narod.ru') or contains(@href,'narod.yandex.ru')]"
  7106. );
  7107. }
  7108. if (GM_getValue("Check_rayfile_dot_com_links", false))
  7109. {
  7110. addFileHost(
  7111. "rayfile\\.com\/",
  7112. 'FILEtitleTXT',
  7113. 'blueRow',
  7114. 'optional--',
  7115. 'optional2--',
  7116. "//a[contains(@href,'rayfile.com/') and contains(@href,'files')]"
  7117. );
  7118. }
  7119. if (GM_getValue("Check_filesmonster_dot_com_links", false))
  7120. {
  7121. addFileHost(
  7122. "filesmonster\\.com\/download\\.php\\?id=\\w+",
  7123. 'button_green_body"',
  7124. 'error">',
  7125. 'optional--',
  7126. 'optional2--',
  7127. "//a[contains(@href,'filesmonster.com/download')]"
  7128. );
  7129. }
  7130. if (GM_getValue("Check_usaupload_dot_net_links", false))
  7131. {
  7132. addFileHost(
  7133. 'usaupload\\.net\/d\/(?:\w*)',
  7134. '<strong>File size:</strong>',
  7135. 'is not available',
  7136. 'optional--',
  7137. 'optional2--',
  7138. "//a[contains(@href,'usaupload.net/d/')]"
  7139. );
  7140. }
  7141. if (GM_getValue("Check_sendspace_dot_com_links", false))
  7142. {
  7143. addFileHost(
  7144. 'sendspace\\.com\/file\/\\w+',
  7145. 'file_description',
  7146. 'msg error"',
  7147. 'optional--',
  7148. 'optional2--',
  7149. "//a[contains(@href,'sendspace.com/file')]"
  7150. );
  7151. }
  7152. if (GM_getValue("Check_sendspace_dot_pl_links", false))
  7153. {
  7154. addFileHost(
  7155. 'sendspace\\.pl\/file\/\\w+',
  7156. 'download_file"',
  7157. 'Podany plik nie',
  7158. 'optional--',
  7159. 'optional2--',
  7160. "//a[contains(@href,'sendspace.pl/file')]"
  7161. );
  7162. }
  7163. if (GM_getValue("Check_uploading_dot_com_links", false))
  7164. {
  7165. addFileHost(
  7166. 'uploading\\.com\/(?:files\/)?\\w+',
  7167. 'free_method">',
  7168. 'file_error">|error_404">|file not found|OOPS! Looks like file not found',
  7169. 'optional--',
  7170. 'optional2--',
  7171. "//a[contains(@href,'uploading.com')]"
  7172. );
  7173. }
  7174. if (GM_getValue("Check_gigasize_dot_com_links", false))
  7175. {
  7176. addFileHost(
  7177. 'gigasize\\.com\/get\\.php(?:\/\\d+|\\?d=\\w+)',
  7178. 'fileId"',
  7179. 'error">',
  7180. 'optional--',
  7181. 'optional2--',
  7182. "//a[contains(@href,'gigasize.com/get')]"
  7183. );
  7184. }
  7185. if (GM_getValue("Check_good_dot_com_links", false))
  7186. {
  7187. addFileHost(
  7188. 'good\\.net\/(?:_|dl)',
  7189. 'Free Download',
  7190. 'Not Found',
  7191. 'Forbidden',
  7192. 'optional2--',
  7193. "//a[contains(@href,'good.net')]"
  7194. );
  7195. }
  7196. if (GM_getValue("Check_2shared_dot_com_links", false))
  7197. {
  7198. addFileHost(
  7199. '2shared\\.com\/(?:file|video|document|audio)\/\\w*',
  7200. 'File size',
  7201. 'File not found|is not valid|/images/important.gif',
  7202. 'optional--',
  7203. 'optional2--',
  7204. "//a[contains(@href,'2shared.com/file/') or contains (@href,'2shared.com/audio/') or contains (@href,'2shared.com/document/') or contains (@href,'2shared.com/video/')]"
  7205. );
  7206. }
  7207. if (GM_getValue("Check_turboupload_dot_com_links", false))
  7208. {
  7209. addFileHost(
  7210. 'turboupload\\.com\/\\w*',
  7211. 'You have requested',
  7212. 'File Not Found',
  7213. 'optional--',
  7214. 'optional2--',
  7215. "//a[contains(@href,'turboupload.com')]"
  7216. );
  7217. }
  7218. if (GM_getValue("Check_gigapeta_dot_com_links", false))
  7219. {
  7220. addFileHost(
  7221. 'gigapeta\\.com\/dl\/',
  7222. 'Download file|Скачать файл| Herunterzuladen|Scarica il file|Cargar el fichero|Charger le fichier',
  7223. '404|page_error',
  7224. 'optional--',
  7225. 'optional2--',
  7226. "//a[contains(@href,'gigapeta.com/dl')]"
  7227. );
  7228. }
  7229. if (GM_getValue("Check_veehd_dot_com_links", false))
  7230. {
  7231. addFileHost(
  7232. 'veehd\.com\/video\/.*?',
  7233. 'No sound|Download video',
  7234. 'Featured Videos',
  7235. 'optional--',
  7236. 'optional2--',
  7237. "//a[contains(@href,'veehd.com') and contains(@href,'video')]"
  7238. );
  7239. }
  7240. if (GM_getValue("Check_vip_dash_file_dot_com_links", false))
  7241. {
  7242. addFileHost(
  7243. '(?:u\\d+\\.)?vip-file\\.com\/download.*?\/(?:.*?)\/(?:.*?)\\.html',
  7244. 'fast_download_form">|submit_sms_download',
  7245. '<p style="text-align:center">',
  7246. 'optional--',
  7247. 'optional2--',
  7248. "//a[contains(@href,'vip-file.com/download')]"
  7249. );
  7250. }
  7251. if (GM_getValue("Check_letitbit_dot_net_links", false))
  7252. {
  7253. addFileHost(
  7254. '(?:u\\d+\\.)?letitbit\\.net\/download\/\\w+',
  7255. 'download\\-pnl ',
  7256. 'color:#000">|Запрашиваемый файл не найден|страница не существует|File not found|',
  7257. 'optional--',
  7258. 'optional2--',
  7259. "//a[contains(@href,'letitbit.net/download')]"
  7260. );
  7261. }
  7262. if (GM_getValue("Check_ifolder_dot_ru_links", false))
  7263. {
  7264. addFileHost(
  7265. 'ifolder\.ru\/\\d+',
  7266. 'file-info',
  7267. 'ui-state-error',
  7268. 'optional--',
  7269. 'optional2--',
  7270. "//a[contains(@href,'ifolder.ru')]"
  7271. );
  7272. }
  7273. if (GM_getValue("Check_fileswap_dot_com_links", false))
  7274. {
  7275. addFileHost(
  7276. 'fileswap\\.com\/dl\/\\w+',
  7277. 'bttnDownloadLink"',
  7278. 'rounded_block_error"',
  7279. 'is temporary unavailable|disponible en estos momentos|vorläufig unerreichbar|Файл временно недоступен',
  7280. 'optional2--',
  7281. "//a[contains(@href,'fileswap.com/dl')]"
  7282. );
  7283. }
  7284. if (GM_getValue("Check_filecloud_dot_io_links", false))
  7285. {
  7286. addFileHost(
  7287. '(?:s\\d+\\.)?filecloud\\.io\/\\w+',
  7288. 'var __error = 0',
  7289. 'FILES__DOESNT_EXIST|removed or did not exist',
  7290. 'optional--',
  7291. 'optional2--',
  7292. "//a[contains(@href,'filecloud.io/')]"
  7293. );
  7294. addFileHost(
  7295. 'ifile\\.it\/\\w+',
  7296. 'var __error = 0',
  7297. 'FILES__DOESNT_EXIST',
  7298. 'optional--',
  7299. 'optional2--',
  7300. "//a[contains(@href,'ifile.it/')]"
  7301. );
  7302. }
  7303. if (GM_getValue("Check_solidfiles_dot_com_links", false))
  7304. {
  7305. addFileHost(
  7306. 'solidfiles\\.com\/d\/\\w+',
  7307. 'id="download"|content="Download',
  7308. '>Not found<|<h2>404</h2>|Page not found|<h1>404</h1>|File not available|no longer available',
  7309. 'optional--',
  7310. 'optional2--',
  7311. "//a[contains(@href,'solidfiles.com/d')]"
  7312. );
  7313. }
  7314. if (GM_getValue("Check_shareflare_dot_net_links", false))
  7315. {
  7316. addFileHost(
  7317. "(?:.\\.|)shareflare\\.net",
  7318. 'download-pnl|<div class="premium-block">',
  7319. 'File not found|Поиск зеркала на фа|<div id="captcha"',
  7320. 'optional--',
  7321. 'optional2--',
  7322. "//a[contains(@href,'shareflare.net') and contains(@href,'download')]"
  7323. );
  7324. }
  7325. if (GM_getValue("Check_u18116681_dot_shareflare_dot_net_links", false))
  7326. {
  7327. addFileHost(
  7328. "u18116681.shareflare\\.net",
  7329. 'download-pnl|<div class="premium-block">',
  7330. 'File not found|Поиск зеркала на фа|<div id="captcha"',
  7331. 'optional--',
  7332. 'optional2--',
  7333. "//a[contains(@href,'shareflare.net') and contains(@href,'download')]"
  7334. );
  7335. }
  7336. if (GM_getValue("Check_uloz_dot_to_links", false))
  7337. {
  7338. addFileHost(
  7339. "(?:uloz|ulozto|bagruj|zachowajto)\\.(to|cz|sk|net|pl)\/\\w",
  7340. 'fileDownload">|fileSize">',
  7341. 'grayButton deletedFile">|Stránka nenalezena|upload-button"|jako soukromý.',
  7342. 'passwordProtectedFile">|frmaskAgeForm-disagree',
  7343. 'optional2--',
  7344. "//a[contains(@href,'bagruj.cz') or contains(@href,'uloz.to') or contains(@href,'ulozto.') or contains(@href,'zachowajto.pl')]",
  7345. true
  7346. );
  7347. }
  7348. if (GM_getValue("Check_hellspy_dot_com_links", false))
  7349. {
  7350. addFileHost(
  7351. "hellspy\.(?:com|cz|sk|hu|pl)\/\\w+",
  7352. 'file\\-list-orderby|section-filedetail">',
  7353. '<\/span><\/h2>\\s*<p>|list-purp-2">|flash info sticky">',
  7354. 'optional--',
  7355. 'optional2--',
  7356. "//a[contains(@href,'hellspy.')]"
  7357. );
  7358. }
  7359. if (GM_getValue("Check_leteckaposta_dot_cz_links", false))
  7360. {
  7361. addFileHost(
  7362. "(?:leteckaposta\\.cz|sharegadget\\.com)\/\\d+",
  7363. '<body onload="">',
  7364. 'neexistuje|not exist',
  7365. 'optional--',
  7366. 'optional2--',
  7367. "//a[contains(@href,'leteckaposta.cz') or contains(@href,'sharegadget.com')]"
  7368. );
  7369. }
  7370. if (GM_getValue("Check_stahovanizasms_dot_cz_links", false))
  7371. {
  7372. addFileHost(
  7373. "stahovanizasms\\.cz\/\\w+",
  7374. 'download\\.png>|font-size:11px><tr>',
  7375. 'smaz.n u.ivatelem|font-size:11px><\/table>',
  7376. 'optional--',
  7377. 'optional2--',
  7378. "//a[contains(@href,'stahovanizasms.cz')]"
  7379. );
  7380. }
  7381. if (GM_getValue("Check_share_dash_links_dot_biz_links", false))
  7382. {
  7383. addFileHost(
  7384. "share-links\\.biz\/\\w*",
  7385. 'online\\.gif',
  7386. '(?:offline|parts)\\.gif',
  7387. 'optional--',
  7388. 'optional2--',
  7389. "//a[contains(@href,'share-links.biz')]"
  7390. );
  7391. }
  7392. if (GM_getValue("Check_4shared_dot_com_links", false))
  7393. {
  7394. addFileHost(
  7395. "4shared\\.com\/.+\/",
  7396. '<input type="hidden" class="jsSocialTwDefaultText" value=',
  7397. 'class="warn\"|big red"|GetDataBack',
  7398. 'Service Unavailable',
  7399. 'optional2--',
  7400. "//a[contains(@href,'4shared.com')]"
  7401. );
  7402. }
  7403. if (GM_getValue("Check_zippyshare_dot_com_links", false))
  7404. {
  7405. addFileHost(
  7406. "(?:www\\d+\.|)zippyshare\.com\/",
  7407. 'download\.png|Download Now|images/download_small.png|id="dlbutton"',
  7408. 'not exist|Status 404',
  7409. 'optional--',
  7410. 'optional2--',
  7411. "//a[contains(@href,'zippyshare.com') and contains(@href,'file.html')]"
  7412. );
  7413. }
  7414. if (GM_getValue("Check_mediafire_dot_com_links", false))
  7415. {
  7416. addFileHost(
  7417. "mediafire\.com\/",
  7418. 'download_file_title|dlFileName|id="PLAY_downloadButton"',
  7419. 'error\\.php\\?|error_msg_title|<title>Simple File Sharing|No files found',
  7420. 'set to private',
  7421. 'optional2--',
  7422. "//a[contains(@href,'mediafire.com')]"
  7423. );
  7424. }
  7425. if (GM_getValue("Check_uploaded_dot_to_links", false))
  7426. {
  7427. addFileHost(
  7428. '(?:uploaded\\.(?:to|net)\/(?:.id|file|folder|f|410|404))|(?:ul\\.to\/)',
  7429. '<h2>Authentification</h2></li>|MB</small>|KB</small>|1,00 GB',
  7430. 'box_red|Error: 404|Error: 410|fileList"><thead><tr><td colspan="2"><\/td><\/tr><\/thead><tbody>\\s*<tr>|<title>uploaded.net</title>',
  7431. 'optional--',
  7432. 'GB</small>',
  7433. "//a[contains(@href,'uploaded.to/') or contains(@href,'uploaded.net/') or contains(@href,'ul.to/')]"
  7434. );
  7435. }
  7436. if (GM_getValue("Check_ulozisko_dot_sk_links", false))
  7437. {
  7438. addFileHost(
  7439. "ulozisko\.sk\/",
  7440. 'Detaily',
  7441. 'neexistuje',
  7442. 'optional--',
  7443. 'optional2--',
  7444. "//a[contains(@href,'ulozisko.sk')]"
  7445. );
  7446. }
  7447. if (GM_getValue("Check_upnito_dot_sk_links", false))
  7448. {
  7449. addFileHost(
  7450. "(?:dl.\\.|)upnito\\.sk\/(download|subor|file)",
  7451. 'download.php',
  7452. 'notfound|upload\\-suborov\\.php"',
  7453. 'optional--',
  7454. 'optional2--',
  7455. "//a[contains(@href,'upnito.sk')]"
  7456. );
  7457. }
  7458. if (GM_getValue("Check_box_dot_com_links", false))
  7459. {
  7460. addFileHost(
  7461. "box\.com\/\\w+",
  7462. 'download-file-btn|id="download_button|preview-download',
  7463. 'BIyMin.png| <div class="error_message|link has been removed',
  7464. 'optional--',
  7465. 'optional2--',
  7466. "//a[contains(@href,'app.box.com')]");
  7467. }
  7468. if (GM_getValue("Check_uptobox_dot_com_links", false))
  7469. {
  7470. addFileHost(
  7471. "uptobox\\.com\/\\w+",
  7472. 'Create Download Link">|Lien de téléchargement',
  7473. 'The file expired|The file was deleted|Fichier introuvable|not available in your country',
  7474. 'Maintenance',
  7475. 'optional2--',
  7476. "//a[contains(@href,'uptobox.com')]"
  7477. );
  7478. }
  7479. if (GM_getValue("Check_sharecash_dot_org_links", false))
  7480. {
  7481. addFileHost(
  7482. "sharecash\\.org\/download\\.php\\?file=\\d+",
  7483. 'FILE DOWNLOAD<',
  7484. 'File Does Not Exist',
  7485. 'optional--',
  7486. 'optional2--',
  7487. "//a[contains(@href,'sharecash.org/download.php')]"
  7488. );
  7489. }
  7490. if (GM_getValue("Check_depositfiles_dot_com_links", false)) //folders
  7491. {
  7492. addFileHost(
  7493. "depositfiles\\.com\/folders\/\\w+",
  7494. '<div class="progressContainer">',
  7495. '<div id="files" class="files">\\s*<\/div>',
  7496. 'optional--',
  7497. 'optional2--',
  7498. "//a[contains(@href,'depositfiles.com/folders')]"
  7499. );
  7500. }
  7501. if (GM_getValue("Check_rapidfileshare_dot_net_links", false))
  7502. {
  7503. addFileHost(
  7504. "rapidfileshare\\.net/\\w+",
  7505. '<div id="upload-header-bg">',
  7506. '<div style="width:500px;text-align:left;">',
  7507. 'optional--',
  7508. 'optional2--',
  7509. "//a[contains(@href,'rapidfileshare.net/')]"
  7510. );
  7511. }
  7512. if (GM_getValue("Check_stiahnito_dot_sk_links", false))
  7513. {
  7514. addFileHost(
  7515. "stiahnito\\.sk/",
  7516. '<span class="filesize right">',
  7517. '<ol class="list-purp-2">',
  7518. 'optional--',
  7519. 'optional2--',
  7520. "//a[contains(@href,'stiahnito.sk/')]"
  7521. );
  7522. }
  7523. if (GM_getValue("Check_rusfolder_dot_com_links", false))
  7524. {
  7525. addFileHost(
  7526. "rusfolder\\.(?:com|net)",
  7527. '"download-step-one-form"|Название: <b>|Файлы|Файлы в папке',
  7528. '"ui-state-error ui-corner-all"|File is removed|File not found|удален',
  7529. 'optional--',
  7530. 'optional2--',
  7531. "//a[contains(@href,'rusfolder')]"
  7532. );
  7533. }
  7534. if (GM_getValue("Check_fileover_dot_net_links", false))
  7535. {
  7536. addFileHost(
  7537. "fileover\\.net/\\d+",
  7538. 'id="filesize"',
  7539. 'Not found or deleted|The following file is unavailable',
  7540. 'optional--',
  7541. 'optional2--',
  7542. "//a[contains(@href,'fileover.net/')]"
  7543. );
  7544. }
  7545. if (GM_getValue("Check_catshare_dot_net_links", false))
  7546. {
  7547. addFileHost(
  7548. "catshare\\.net/\\w+",
  7549. '"icon-share',
  7550. 'alert alert-error',
  7551. 'optional--',
  7552. 'optional2--',
  7553. "//a[contains(@href,'catshare.net/')]"
  7554. );
  7555. }
  7556. if (GM_getValue("Check_anonfiles_dot_com_links", false))
  7557. {
  7558. addFileHost(
  7559. "anonfiles\\.com/\\w+",
  7560. '"download_button"',
  7561. '<legend><b>404</b>',
  7562. 'optional--',
  7563. 'optional2--',
  7564. "//a[contains(@href,'anonfiles.com')]"
  7565. );
  7566. }
  7567. if (GM_getValue("Check_mixturecloud_dot_com_links", false))
  7568. {
  7569. addFileHost(
  7570. "mixturecloud\\.com/media/\\w+",
  7571. '"btn icon i_globe gray share_150',
  7572. '"s_cross_close"></span> 404:',
  7573. 'optional--',
  7574. 'optional2--',
  7575. "//a[contains(@href,'mixturecloud.com/media/')]"
  7576. );
  7577. }
  7578. if (GM_getValue("Check_akafile_dot_com_links", false))
  7579. {
  7580. addFileHost(
  7581. "akafile\\.com\/\\w+",
  7582. 'download1',
  7583. 'File Not Found',
  7584. 'optional--',
  7585. 'optional2--',
  7586. "//a[contains(@href,'akafile.com/')]"
  7587. );
  7588. }
  7589. if (GM_getValue("Check_creafile_dot_net_links", false))
  7590. {
  7591. addFileHost(
  7592. "creafile\\.net\/\\w+",
  7593. 'downloadblock',
  7594. 'errtitle',
  7595. 'optional--',
  7596. 'optional2--',
  7597. "//a[contains(@href,'creafile.net/')]"
  7598. );
  7599. }
  7600. if (GM_getValue("Check_hugefiles_dot_net_links", false))
  7601. {
  7602. addFileHost(
  7603. "hugefiles\\.net\/\\w+",
  7604. 'download1|class="btn-create-download" value="Create Download Link">',
  7605. 'File Not Found|No such file with this filename|tyle="width:500px;text-align:left;">',
  7606. 'optional--',
  7607. 'optional2--',
  7608. "//a[contains(@href,'hugefiles.net/')]"
  7609. );
  7610. }
  7611. if (GM_getValue("Check_sendmyway_dot_com_links", false))
  7612. {
  7613. addFileHost(
  7614. "sendmyway\\.com\/\\w+",
  7615. 'id="btn_download"',
  7616. '500px;text-align:left;"|<center><h3>',
  7617. 'optional--',
  7618. 'optional2--',
  7619. "//a[contains(@href,'sendmyway.com/')]"
  7620. );
  7621. }
  7622. if (GM_getValue("Check_upload_dot_ee_links", false))
  7623. {
  7624. addFileHost(
  7625. "upload\\.ee\/\\w+",
  7626. 'onmouseout="document.dllink.src',
  7627. 'There is no such file.|File was deleted|Fail kustutati|Файл удалён|Такого файла нет',
  7628. 'optional--',
  7629. 'optional2--',
  7630. "//a[contains(@href,'upload.ee/')]"
  7631. );
  7632. }
  7633. if (GM_getValue("Check_shareplace_dot_org_links", false))
  7634. {
  7635. addFileHost(
  7636. "shareplace\\.org\/\\?\\w+",
  7637. 'Download-Link',
  7638. 'Your requested file is not found|Select file to send',
  7639. 'optional--',
  7640. 'optional2--',
  7641. "//a[contains(@href,'shareplace.org/?')]"
  7642. );
  7643. }
  7644. if (GM_getValue("Check_uploadc_dot_com_links", false))
  7645. {
  7646. addFileHost(
  7647. "uploadc\\.com\/\\w+",
  7648. 'id="prebut"',
  7649. 'File Not Found|This file has been removed due',
  7650. 'optional--',
  7651. 'optional2--',
  7652. "//a[contains(@href,'uploadc.com/')]"
  7653. );
  7654. }
  7655. if (GM_getValue("Check_remixshare_dot_com_links", false))
  7656. {
  7657. addFileHost(
  7658. "remixshare\\.com\/\\w+",
  7659. 'id="dl2"',
  7660. '<table class=\'failed\'><tr><td width=\'90%\'>|Sorry, die Datei konnte nicht gefunden werden',
  7661. 'optional--',
  7662. 'optional2--',
  7663. "//a[contains(@href,'remixshare.com/')]"
  7664. );
  7665. }
  7666. if (GM_getValue("Check_exoshare_dot_com_links", false))
  7667. {
  7668. addFileHost(
  7669. "exoshare\\.com\/download\\.php\\?uid=\\w+",
  7670. 'Last Download :',
  7671. 'img src="\\/404.jpg"',
  7672. 'optional--',
  7673. 'optional2--',
  7674. "//a[contains(@href,'exoshare.com/download.php')]"
  7675. );
  7676. }
  7677. if (GM_getValue("Check_borncash_dot_org_links", false))
  7678. {
  7679. addFileHost(
  7680. "borncash\\.org\/download\/\\?a=\\w+",
  7681. 'class="knop_1"',
  7682. '\/error\/er00',
  7683. 'optional--',
  7684. 'optional2--',
  7685. "//a[contains(@href,'borncash.org/download/')]"
  7686. );
  7687. }
  7688. if (GM_getValue("Check_vidplay_dot_net_links", false))
  7689. {
  7690. addFileHost(
  7691. "vidplay\.net\/\\w+",
  7692. 'solvemedia puzzle widget',
  7693. 'File not found|AVOID_IE_BUG',
  7694. 'optional--',
  7695. 'optional2--',
  7696. "//a[contains(@href,'vidplay.net')]");
  7697. }
  7698. if (GM_getValue("Check_storagon_dot_com_links", false))
  7699. {
  7700. addFileHost(
  7701. "storagon\.com\/\\w+",
  7702. 'class="icon-cloud-download"></i>|content="Download Options',
  7703. 'content="Download Downloads|class="error-container">|class="bigger-300 bolder">404<',
  7704. 'optional--',
  7705. 'optional2--',
  7706. "//a[contains(@href,'storagon.com')]");
  7707. }
  7708. if (GM_getValue("Check_filedais_dot_com_links", false))
  7709. {
  7710. addFileHost(
  7711. "filedais\.com\/\\w+",
  7712. 'class="btn btn-info"|name="method_free"',
  7713. 'style="width:500px;text-align:left;">|File Not Found|AVOID_IE_BUG',
  7714. 'optional--',
  7715. 'optional2--',
  7716. "//a[contains(@href,'filedais.com')]");
  7717. }
  7718. if (GM_getValue("Check_up_dot_4share_dot_vn_links", false))
  7719. {
  7720. addFileHost(
  7721. "up.4share\.vn\/\\w+",
  7722. '<font size="2" face="Verdana">',
  7723. 'font: 13px Tahoma; color: Brown',
  7724. 'optional--',
  7725. 'optional2--',
  7726. "//a[contains(@href,'up.4share.vn')]");
  7727. }
  7728. if (GM_getValue("Check_share_dot_vnn_dot_vn_links", false))
  7729. {
  7730. addFileHost(
  7731. "share.vnn\.vn\/\\w+",
  7732. '"index,follow"|<div class="main" id="download-box">',
  7733. '<meta name="description" content="" />|<h1>Không tìm thấy file bạn yêu cầu</h1>',
  7734. 'optional--',
  7735. 'optional2--',
  7736. "//a[contains(@href,'share.vnn.vn')]");
  7737. }
  7738. if (GM_getValue("Check_upfile_dot_vn_links", false))
  7739. {
  7740. addFileHost(
  7741. "upfile\.vn\/\\w+",
  7742. 'download-timer',
  7743. '<meta name="description" content="Upload files|<meta name="description" content="Error "',
  7744. 'optional--',
  7745. 'optional2--',
  7746. "//a[contains(@href,'upfile.vn')]");
  7747. }
  7748. if (GM_getValue("Check_aisfile_dot_com_links", false))
  7749. {
  7750. addFileHost(
  7751. "aisfile\.com\/\\w+",
  7752. '<h3 style="text-align:left;">|align=right><b>Filename:',
  7753. '<div style="width:500px;text-align:left;">|File Not Found',
  7754. 'optional--',
  7755. 'optional2--',
  7756. "//a[contains(@href,'aisfile.com')]");
  7757. }
  7758. if (GM_getValue("Check_usersfiles_dot_com_links", false))
  7759. {
  7760. addFileHost(
  7761. "usersfiles\.com\/\\w+",
  7762. 'class="btn btn-success|id="btn_download" class="btn"',
  7763. '<div style="width:500px;text-align:left;">|class="label label-inverse">|class="err">',
  7764. 'optional--',
  7765. 'optional2--',
  7766. "//a[contains(@href,'usersfiles.com')]");
  7767. }
  7768. if (GM_getValue("Check_pan_dot_baidu_dot_com_links", false))
  7769. {
  7770. addFileHost(
  7771. "pan.baidu\.com\/\\w+",
  7772. 'target="_blank" title=|share-personal-info',
  7773. 'share_notfound.png|background:#f9f9f9',
  7774. 'optional--',
  7775. 'optional2--',
  7776. "//a[contains(@href,'pan.baidu.com')]");
  7777. }
  7778. if (GM_getValue("Check_yunpan_dot_cn_links", false))
  7779. {
  7780. addFileHost(
  7781. "yunpan\.cn\/\\w+",
  7782. 'class="icon icon-download',
  7783. 'content="360|http://p5.qhimg.com/t01d1c98667df9dc6cc.jpg',
  7784. 'optional--',
  7785. 'optional2--',
  7786. "//a[contains(@href,'yunpan.cn')]");
  7787. }
  7788. if (GM_getValue("Check_file_dash_upload_dot_net_links", false))
  7789. {
  7790. addFileHost(
  7791. "(?:en\\.|)file\\-upload\\.net\/download\\-\\d+\/\\w+",
  7792. 'getElementById("downbild")|style.display',
  7793. 'hochgeladene Datei nicht gefunden werden|has not been found',
  7794. 'optional--',
  7795. 'optional2--',
  7796. "//a[contains(@href,'file-upload.net')]");
  7797. }
  7798. if (GM_getValue("Check_gulfup_dot_com_links", false))
  7799. {
  7800. addFileHost(
  7801. "gulfup\.com\/",
  7802. '<!-- Downlod template -->|download.gif',
  7803. '<!-- Errors template -->|class="error">|<!-- form upload -->|[ رفع الملفات ]',
  7804. 'optional--',
  7805. 'optional2--',
  7806. "//a[contains(@href,'gulfup.com')]");
  7807. }
  7808. if (GM_getValue("Check_datafilehost_dot_com_links", false))
  7809. {
  7810. addFileHost(
  7811. "datafilehost\\.com\/(?:download-\\w+\\.html|d\/\\w+)",
  7812. 'dldtable">',
  7813. 'does not exist\\.',
  7814. 'optional--',
  7815. 'optional2--',
  7816. "//a[contains(@href,'datafilehost.com')]");
  7817. }
  7818. if (GM_getValue("Check_dropbox_dot_com_links", false))
  7819. {
  7820. addFileHost(
  7821. "dropbox\.com\/s\/\\w+",
  7822. 'default_content_download_button" class="freshbutton-blue">|content_download_button',
  7823. '>Nothing Here<|>Error (404)<',
  7824. 'title>Dropbox - 509|Error (403)|Error: 429',
  7825. 'optional2--',
  7826. "//a[contains(@href,'dropbox.com')]");
  7827. }
  7828. if (GM_getValue("Check_box_dot_net_links", false))
  7829. {
  7830. addFileHost(
  7831. "box\.net\/\\w+",
  7832. 'download-file-btn|id="download_button',
  7833. 'BIyMin.png| <div class="error_message',
  7834. 'optional--',
  7835. 'optional2--',
  7836. "//a[contains(@href,'box.net')]");
  7837. }
  7838. if (GM_getValue("Check_fileband_dot_com_links", false))
  7839. {
  7840. addFileHost(
  7841. "fileband\.com\/\\w+",
  7842. 'value="download1">|name="id" value=',
  7843. '<div style="width:500px;text-align:left;">|not be found',
  7844. 'optional--',
  7845. 'optional2--',
  7846. "//a[contains(@href,'fileband.com')]");
  7847. }
  7848. if (GM_getValue("Check_filedropper_dot_com_links", false))
  7849. {
  7850. addFileHost(
  7851. "filedropper\.com\/\\w+",
  7852. 'background:#ddd;|width:985px; ',
  7853. 'background-color:#FFFFFF;|margin-left: -400px;',
  7854. 'optional--',
  7855. 'optional2--',
  7856. "//a[contains(@href,'filedropper.com')]");
  7857. }
  7858. if (GM_getValue("Check_tropicshare_dot_com_links", false))
  7859. {
  7860. addFileHost(
  7861. "tropicshare\\.com\/files\/\\d+",
  7862. 'MB</span>|GB</span>|KB</span>',
  7863. '>FNF<|size: </span>',
  7864. 'optional--',
  7865. 'optional2--',
  7866. "//a[contains(@href,'tropicshare.com')]");
  7867. }
  7868. if (GM_getValue("Check_goldbytez_dot_com_links", false))
  7869. {
  7870. addFileHost(
  7871. "goldbytez\.com\/\\w+",
  7872. '<h2>Download</h2>|<center><h2>File: <font color="red">',
  7873. '<div style="width:500px;text-align:left;">|<h2>Error</h2>',
  7874. 'optional--',
  7875. 'optional2--',
  7876. "//a[contains(@href,'goldbytez.com')]");
  7877. }
  7878. if (GM_getValue("Check_worldbytez_dot_com_links", false))
  7879. {
  7880. addFileHost(
  7881. "worldbytez\.com\/\\w+",
  7882. '<div class="download_type">',
  7883. '<div style="width:500px;text-align:left;">',
  7884. 'optional--',
  7885. 'optional2--',
  7886. "//a[contains(@href,'worldbytez.com')]");
  7887. }
  7888. if (GM_getValue("Check_freefilehosting_dot_net_links", false))
  7889. {
  7890. addFileHost(
  7891. "freefilehosting\.net\/\\w+",
  7892. 'Type: cbr|Type: rar|Type: jpg|Type: mkv|Type: avi|Type: mpg|Type: mpeg|Type: zip|Type: wmvType: bmpType: gifType: mp4Type: mp3',
  7893. '175px;" value="http://www.freefilehosting.net/"|Filename: <br>',
  7894. 'optional--',
  7895. 'optional2--',
  7896. "//a[contains(@href,'freefilehosting.net')]");
  7897. }
  7898. if (GM_getValue("Check_ziddu_dot_com_links", false))
  7899. {
  7900. addFileHost(
  7901. "ziddu\.com\/\\w+",
  7902. 'downloads.ziddu.com|downloadfilelinkicon',
  7903. 'errortracking.php|images/oops.png|fontfamilyverdana error',
  7904. 'optional--',
  7905. 'optional2--',
  7906. "//a[contains(@href,'ziddu.com')]");
  7907. }
  7908. if (GM_getValue("Check_exclusiveloader_dot_com_links", false))
  7909. {
  7910. addFileHost(
  7911. "exclusiveloader\.com\/\\w+",
  7912. 'style="padding-top:55px; padding-bottom:65px;">|<h2>Download</h2>',
  7913. 'File Not Found|width:322px;text-align:left;" class="no_file">',
  7914. 'optional--',
  7915. 'optional2--',
  7916. "//a[contains(@href,'exclusiveloader.com')]");
  7917. }
  7918. if (GM_getValue("Check_sharerapid_dot_cz_links", false))
  7919. {
  7920. addFileHost(
  7921. "sharerapid\.cz\/\\w+",
  7922. 'value="Stáhnout"|soubor" style|Stahování je povoleno pouze pro přihlášené uživatele',
  7923. 'error_div">|404 - Not Found',
  7924. 'optional--',
  7925. 'optional2--',
  7926. "//a[contains(@href,'sharerapid.cz')]");
  7927. }
  7928. if (GM_getValue("Check_sdilej_dot_cz_links", false))
  7929. {
  7930. addFileHost(
  7931. "sdilej\.cz\/\\w+",
  7932. 'class="page-download"',
  7933. '<h2 class="red">|czshare.com|sponsored listings|This domain is for sale',
  7934. 'optional--',
  7935. 'optional2--',
  7936. "//a[contains(@href,'sdilej.cz')]");
  7937. }
  7938. if (GM_getValue("Check_lafiles_dot_com_links", false))
  7939. {
  7940. addFileHost(
  7941. "lafiles\.com\/\\w+",
  7942. '<div id="pay_modes">',
  7943. '<b class="err"></b>',
  7944. 'optional--',
  7945. 'optional2--',
  7946. "//a[contains(@href,'lafiles.com')]");
  7947. }
  7948. if (GM_getValue("Check_acefile_dot_net_links", false))
  7949. {
  7950. addFileHost(
  7951. "acefile\.net\/\\w+",
  7952. 'align=right nowrap><b>',
  7953. 'File Not Found|<div style="width:322px;text-align:left;" class="no_file">',
  7954. 'optional--',
  7955. 'optional2--',
  7956. "//a[contains(@href,'acefile.net')]");
  7957. }
  7958. if (GM_getValue("Check_megarapid_dot_cz_links", false))
  7959. {
  7960. addFileHost(
  7961. "megarapid\.cz\/\\w+",
  7962. 'value="Stáhnout"|soubor" style|Stahování je povoleno pouze pro přihlášené uživatele',
  7963. 'error_div">|404 - Not Found',
  7964. 'optional--',
  7965. 'optional2--',
  7966. "//a[contains(@href,'megarapid.cz')]");
  7967. }
  7968. if (GM_getValue("Check_yadi_dot_sk_links", false))
  7969. {
  7970. addFileHost(
  7971. "yadi\.sk\/\\w+",
  7972. 'twitter:site|View and download',
  7973. 'error code|Nothing found',
  7974. 'optional--',
  7975. 'optional2--',
  7976. "//a[contains(@href,'yadi.sk')]");
  7977. }
  7978. /* if (GM_getValue("Check_imdb_dot_com_links", false))
  7979. {
  7980. addFileHost(
  7981. "imdb\.com\/\\w+",
  7982. 'imdb.com',
  7983. '404 Error',
  7984. 'optional--',
  7985. 'optional2--',
  7986. "//a[contains(@href,'imdb.com')]");
  7987. } */
  7988. if (GM_getValue("Check_hitfile_dot_net_links", false))
  7989. {
  7990. addFileHost(
  7991. "hitfile\.net\/\\w+",
  7992. 'class="download-file',
  7993. 'style="width:16px;height:16px;border:0;|File not found|File was deleted or not found|Le fichier a été supprimé ou n|Файл не найден. Возможно он был удален',
  7994. 'optional--',
  7995. 'optional2--',
  7996. "//a[contains(@href,'hitfile.net')]");
  7997. }
  7998. if (GM_getValue("Check_nitroflare_dot_com_links", true))
  7999. {
  8000. addFileHost(
  8001. "nitroflare\.com\/\\w+",
  8002. 'Report this file</a>|left;">1 GB<|KB</span>|left;">1.0',
  8003. 'file has been removed|id="error" style="display|Probably deleted|file has been removed due to infringement',
  8004. 'optional--',
  8005. '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.|',
  8006. "//a[contains(@href,'nitroflare.com')]");
  8007. }
  8008. if (GM_getValue("Check_up_dot_top4top_dot_net_links", false))
  8009. {
  8010. addFileHost(
  8011. "up.top4top\.net\/\\w+",
  8012. 'start Downlod template',
  8013. 'start err template',
  8014. 'optional--',
  8015. 'optional2--',
  8016. "//a[contains(@href,'up.top4top.net')]");
  8017. }
  8018. if (GM_getValue("Check_filejoker_dot_net_links", false))
  8019. {
  8020. addFileHost(
  8021. "filejoker\.net\/\\w+",
  8022. 'button id="regular-download">Slow|method_free" value="1|<div id="download" class="download0">|>Get Download Link<',
  8023. 'File Not Found|class="not_found|<div id="download" class="not_found">|"err">DMCA Complaint<',
  8024. 'optional--',
  8025. 'id="download" class="premium-only">',
  8026. "//a[contains(@href,'filejoker.net')]");
  8027. }
  8028. if (GM_getValue("Check_free_dot_fr_links", false))
  8029. {
  8030. addFileHost(
  8031. "(?:dl.\\.|)free\\.fr",
  8032. 'Valider et t&eacute;l&eacute',
  8033. 'Fichier inexistant|Fichier supprim&eacute; pour raison de copyright',
  8034. 'optional--',
  8035. 'optional2--',
  8036. "//a[contains(@href,'dl.free.fr')]");
  8037. }
  8038. if (GM_getValue("Check_gboxes_dot_com_links", false))
  8039. {
  8040. addFileHost(
  8041. "gboxes\.com\/\\w+",
  8042. 'You have requested|color="red">http://www.gboxes.com',
  8043. 'File Not Found|<div style="width:500px;text-align:left;">',
  8044. 'optional--',
  8045. 'optional2--',
  8046. "//a[contains(@href,'gboxes.com')]");
  8047. }
  8048. if (GM_getValue("Check_led_dot_wf_links", false))
  8049. {
  8050. addFileHost(
  8051. "led\.wf\/\\w+",
  8052. 'logo_0.png|downloads.gif"|verifycode',
  8053. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  8054. 'optional--',
  8055. 'available only for Premium users',
  8056. "//a[contains(@href,'led.wf')]");
  8057. }
  8058. if (GM_getValue("Check_lan_dot_wf_links", false))
  8059. {
  8060. addFileHost(
  8061. "lan\.wf\/\\w+",
  8062. 'logo_0.png|downloads.gif"|verifycode',
  8063. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  8064. 'optional--',
  8065. 'available only for Premium users',
  8066. "//a[contains(@href,'lan.wf')]");
  8067. }
  8068. if (GM_getValue("Check_adlink_dot_wf_links", false))
  8069. {
  8070. addFileHost(
  8071. "adlink\.wf\/\\w+",
  8072. 'logo_0.png|downloads.gif"|verifycode',
  8073. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  8074. 'optional--',
  8075. 'available only for Premium users',
  8076. "//a[contains(@href,'adlink.wf')]");
  8077. }
  8078. if (GM_getValue("Check_click_dot_tf_links", false))
  8079. {
  8080. addFileHost(
  8081. "click\.tf\/\\w+",
  8082. 'logo_0.png|downloads.gif"|verifycode',
  8083. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  8084. 'optional--',
  8085. 'available only for Premium users',
  8086. "//a[contains(@href,'click.tf')]");
  8087. }
  8088. if (GM_getValue("Check_ssh_dot_tf_links", false))
  8089. {
  8090. addFileHost(
  8091. "ssh\.tf\/\\w+",
  8092. 'logo_0.png|downloads.gif"|verifycode',
  8093. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  8094. 'optional--',
  8095. 'available only for Premium users',
  8096. "//a[contains(@href,'ssh.tf')]");
  8097. }
  8098. if (GM_getValue("Check_ssh_dot_yt_links", false))
  8099. {
  8100. addFileHost(
  8101. "ssh\.yt\/\\w+",
  8102. 'logo_0.png|downloads.gif"|verifycode',
  8103. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  8104. 'optional--',
  8105. 'available only for Premium users',
  8106. "//a[contains(@href,'ssh.yt')]");
  8107. }
  8108. if (GM_getValue("Check_yep_dot_pm_links", false))
  8109. {
  8110. addFileHost(
  8111. "yep\.pm\/\\w+",
  8112. 'logo_0.png|downloads.gif"|verifycode',
  8113. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  8114. 'optional--',
  8115. 'available only for Premium users',
  8116. "//a[contains(@href,'yep.pm')]");
  8117. }
  8118. if (GM_getValue("Check_kyc_dot_pm_links", false))
  8119. {
  8120. addFileHost(
  8121. "kyc\.pm\/\\w+",
  8122. 'logo_0.png|downloads.gif"|verifycode',
  8123. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  8124. 'optional--',
  8125. 'available only for Premium users',
  8126. "//a[contains(@href,'kyc.pm')]");
  8127. }
  8128. if (GM_getValue("Check_brupload_dot_net_links", false))
  8129. {
  8130. addFileHost(
  8131. "brupload\.net\/\\w+",
  8132. 'Download Gratuito',
  8133. '<div style="width:500px;text-align:left;">',
  8134. 'optional--',
  8135. 'optional2--',
  8136. "//a[contains(@href,'brupload.net')]");
  8137. }
  8138. if (GM_getValue("Check_cloudzilla_dot_to_links", false))
  8139. {
  8140. addFileHost(
  8141. "cloudzilla\.to\/\\w+",
  8142. 'btn1" id="free_download|onclick="freeDownload|id="pwd_protected">',
  8143. 'File not found|/imgs/broken.png',
  8144. 'optional--',
  8145. 'optional2--',
  8146. "//a[contains(@href,'cloudzilla.to')]");
  8147. }
  8148. /* if (GM_getValue("Check_fileparadox_dot_in_links", false))
  8149. {
  8150. addFileHost(
  8151. "fileparadox\.in\/\\w+",
  8152. 'CONTENT="Download File|method_free_file',
  8153. '>File Not Found<|id="no_filedownload">|FILE NOT FOUND|The file does not exist',
  8154. 'optional--',
  8155. 'optional2--',
  8156. "//a[contains(@href,'fileparadox.in')or contains(@href,'3files.net/')]");
  8157. } */
  8158. if (GM_getValue("Check_clicknupload_dot_com_links", false))
  8159. {
  8160. addFileHost(
  8161. "clicknupload\.com\/\\w+",
  8162. 'name="method_free',
  8163. 'File Not Found',
  8164. 'optional--',
  8165. 'optional2--',
  8166. "//a[contains(@href,'clicknupload.com')]");
  8167. }
  8168. if (GM_getValue("Check_clicknupload_dot_me_links", false))
  8169. {
  8170. addFileHost(
  8171. "clicknupload\.me\/\\w+",
  8172. 'name="method_free',
  8173. 'File Not Found',
  8174. 'optional--',
  8175. 'optional2--',
  8176. "//a[contains(@href,'clicknupload.me')]");
  8177. }
  8178. if (GM_getValue("Check_ex_dash_load_dot_com_links", false))
  8179. {
  8180. addFileHost(
  8181. "ex-load\.com\/\\w+",
  8182. 'name="method_free|<p>Download File:</p>',
  8183. 'Folder Not Found|File Not Found|Error 404',
  8184. 'optional--',
  8185. 'class="downprem wow bounceInLeft',
  8186. "//a[contains(@href,'ex-load.com')]");
  8187. }
  8188. if (GM_getValue("Check_hexupload_dot_com_links", false))
  8189. {
  8190. addFileHost(
  8191. "hexupload\.com\/\\w+",
  8192. 'button" value="Free|type="submit" value=""',
  8193. 'File Not Found|<div style="width:500px;text-align:left;">',
  8194. 'optional--',
  8195. 'optional2--',
  8196. "//a[contains(@href,'hexupload.com')]");
  8197. }
  8198. if (GM_getValue("Check_wizupload_dot_com_links", false))
  8199. {
  8200. addFileHost(
  8201. "wizupload\.com\/\\w+",
  8202. 'btn_download|class="downloadbtn"',
  8203. '>File Not Found<',
  8204. 'optional--',
  8205. 'optional2--',
  8206. "//a[contains(@href,'wizupload.com')]");
  8207. }
  8208. if (GM_getValue("Check_filecloud_dot_cc_links", false))
  8209. {
  8210. addFileHost(
  8211. "filecloud\.cc\/\\w+",
  8212. 'align="center"><input type="submit" name=',
  8213. 'File Not Found|<Title>FileCloud - Premium Hosting Service<',
  8214. 'optional--',
  8215. 'optional2--',
  8216. "//a[contains(@href,'filecloud.cc')]");
  8217. }
  8218. if (GM_getValue("Check_inclouddrive_dot_com_links", false))
  8219. {
  8220. addFileHost(
  8221. "inclouddrive\.com\/\\w+",
  8222. 'initfreedownload',
  8223. '<title>Content Unavailable|The file you are trying to download is no longer available',
  8224. 'optional--',
  8225. 'optional2--',
  8226. "//a[contains(@href,'inclouddrive.com')]");
  8227. }
  8228. if (GM_getValue("Check_radicalshare_dot_com_links", false))
  8229. {
  8230. addFileHost(
  8231. "radicalshare\.com\/\\w+",
  8232. 'value="download1|name="method_free"',
  8233. 'File Not Found<|<div style="width:500px;text-align:left;">',
  8234. 'optional--',
  8235. 'optional2--',
  8236. "//a[contains(@href,'radicalshare.com')]");
  8237. }
  8238. if (GM_getValue("Check_sharemods_dot_com_links", false))
  8239. {
  8240. addFileHost(
  8241. "sharemods\.com\/\\w+",
  8242. 'name="method_free"',
  8243. 'File Not Found<',
  8244. 'optional--',
  8245. 'optional2--',
  8246. "//a[contains(@href,'sharemods.com')]");
  8247. }
  8248. if (GM_getValue("Check_hostr_dot_co_links", false))
  8249. {
  8250. addFileHost(
  8251. "hostr\.co\/\\w+",
  8252. 'method="get"',
  8253. 'File not found<|error-page',
  8254. 'optional--',
  8255. 'optional2--',
  8256. "//a[contains(@href,'hostr.co')]");
  8257. }
  8258. if (GM_getValue("Check_filepi_dot_com_links", false))
  8259. {
  8260. addFileHost(
  8261. "filepi\.com\/\\w+",
  8262. 'id="button_start">',
  8263. 'File not found',
  8264. 'optional--',
  8265. 'optional2--',
  8266. "//a[contains(@href,'filepi.com')]");
  8267. }
  8268. if (GM_getValue("Check_tikfile_dot_com_links", false))
  8269. {
  8270. addFileHost(
  8271. "tikfile\.com\/\\w+",
  8272. 'btn_download',
  8273. 'File Not Found|file was removed|Reason for deletion',
  8274. 'optional--',
  8275. 'optional2--',
  8276. "//a[contains(@href,'tikfile.com')]");
  8277. }
  8278. if (GM_getValue("Check_cloudsix_dot_me_links", false))
  8279. {
  8280. addFileHost(
  8281. "cloudsix\.me\/\\w+",
  8282. 'name="method_free"',
  8283. 'File Not Found|width:500px;text-align:left;">',
  8284. 'optional--',
  8285. 'optional2--',
  8286. "//a[contains(@href,'cloudsix.me')]");
  8287. }
  8288. if (GM_getValue("Check_neodrive_dot_co_links", false))
  8289. {
  8290. addFileHost(
  8291. "neodrive\.co\/\\w+",
  8292. 'btn1" id="free_download|onclick="freeDownload|id="pwd_protected">',
  8293. 'File not found|/imgs/broken.png',
  8294. 'optional--',
  8295. 'optional2--',
  8296. "//a[contains(@href,'neodrive.co')]");
  8297. }
  8298. if (GM_getValue("Check_chayfile_dot_com_links", false))
  8299. {
  8300. addFileHost(
  8301. "chayfile\.com\/\\w+",
  8302. 'name="method_free"',
  8303. 'File Not Found|<h3>The file was removed by administrator</h3>',
  8304. 'optional--',
  8305. 'optional2--',
  8306. "//a[contains(@href,'chayfile.com')]");
  8307. }
  8308. if (GM_getValue("Check_xfileload_dot_com_links", false))
  8309. {
  8310. addFileHost(
  8311. "xfileload\.com\/\\w+",
  8312. 'Filename:|Имя файла:|Dateiname:|nom de fichier :|اسم الملف:|Dosya AdД±|Nazwa:|Nombre de fichero:|NamaFile:|Bestandsnaam:|שם קובץ:"',
  8313. '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..|הקובץ שחיפשת לא נמצא.',
  8314. 'optional--',
  8315. 'optional2--',
  8316. "//a[contains(@href,'xfileload.com')]");
  8317. }
  8318. if (GM_getValue("Check_rockfile_dot_eu_links", false))
  8319. {
  8320. addFileHost(
  8321. "rockfile\.eu\/\\w+",
  8322. 'You have requested:|vous avez demandé|قد طلبت:|você solicitou:|Hai richiesto:|Sie haben angefordert:|Вы заказали:|Has solicitado',
  8323. 'The file you were looking for could not be found, sorry for any inconvenience.|fa-chain-broken">',
  8324. 'optional--',
  8325. 'optional2--',
  8326. "//a[contains(@href,'rockfile.eu')]");
  8327. }
  8328. if (GM_getValue("Check_24uploading_dot_com_links", false))
  8329. {
  8330. addFileHost(
  8331. "24uploading\.com\/\\w+",
  8332. 'File:|Download Speed:',
  8333. '<b>File Not Found</b>|file was removed',
  8334. 'optional--',
  8335. 'optional2--',
  8336. "//a[contains(@href,'24uploading.com')]");
  8337. }
  8338. if (GM_getValue("Check_tusfiles_dot_net_links", false))
  8339. {
  8340. addFileHost(
  8341. "tusfiles\.net\/\\w+",
  8342. 'i/icon/dll.png"|>Start download<br',
  8343. 'no longer available<|i/ino.png"',
  8344. 'optional--',
  8345. 'optional2--',
  8346. "//a[contains(@href,'tusfiles.net')]");
  8347. }
  8348. /* if (GM_getValue("Check_jumbofile_dot_net_links", false))
  8349. {
  8350. addFileHost(
  8351. "jumbofile\.net\/\\w+",
  8352. 'button" class="" value="Free',
  8353. 'This File Was Deleted',
  8354. 'optional--',
  8355. 'optional2--',
  8356. "//a[contains(@href,'jumbofile.net')]");
  8357. } */
  8358. if (GM_getValue("Check_ozofiles_dot_com_links", false))
  8359. {
  8360. addFileHost(
  8361. "ozofiles\.com\/\\w+",
  8362. 'button" value="Free',
  8363. 'File Not Found|width:500px;text-align:left;">|File Deleted',
  8364. 'optional--',
  8365. 'optional2--',
  8366. "//a[contains(@href,'ozofiles.com')]");
  8367. }
  8368. if (GM_getValue("Check_loudupload_dot_net_links", false))
  8369. {
  8370. addFileHost(
  8371. "loudupload\.net\/\\w+",
  8372. 'value="Get Links',
  8373. 'File Not Found',
  8374. 'optional--',
  8375. 'optional2--',
  8376. "//a[contains(@href,'loudupload.net')]");
  8377. }
  8378. /* if (GM_getValue("Check_rapidsonic_dot_com_links", false))
  8379. {
  8380. addFileHost(
  8381. "(rapidsonic|fileparadox)\\.com\/\\w+",
  8382. 'method_free" id="submit_btn|<h4><i class="icon_document_alt"></i>Download File</h4>',
  8383. '>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">',
  8384. 'optional--',
  8385. 'optional2--',
  8386. "//a[contains(@href,'rapidsonic') or contains(@href,'3files.net/') or contains(@href,'fileparadox.com')]");
  8387. }
  8388. if (GM_getValue("Check_krotix_dot_net_links", false))
  8389. {
  8390. addFileHost(
  8391. "krotix\.net\/\\w+",
  8392. 'btn btn-warning|btn-free',
  8393. 'pageErrors|This File has been removed',
  8394. 'content="Scheduled Maintenance',
  8395. 'optional2--',
  8396. "//a[contains(@href,'krotix.net')]");
  8397. } */
  8398. if (GM_getValue("Check_userscloud_dot_com_links", false))
  8399. {
  8400. addFileHost(
  8401. "userscloud\.com\/\\w+",
  8402. 'btn_download',
  8403. '>Server OFFLINE|background:#D3D3D3;border-bottom:1px solid #BBB;font:bold 13px Verdana;padding:3px;">|-chain-broken',
  8404. 'optional--',
  8405. 'optional2--',
  8406. "//a[contains(@href,'userscloud.com')]");
  8407. }
  8408. if (GM_getValue("Check_kumpulbagi_dot_com_links", false))
  8409. {
  8410. addFileHost(
  8411. "kumpulbagi\.com\/\\w+",
  8412. 'class="button download',
  8413. 'internal server error',
  8414. 'optional--',
  8415. 'optional2--',
  8416. "//a[contains(@href,'kumpulbagi.com')]");
  8417. }
  8418. if (GM_getValue("Check_faststore_dot_org_links", false))
  8419. {
  8420. addFileHost(
  8421. "faststore\.org\/\\w+",
  8422. 'name="method_free',
  8423. 'File Not Found',
  8424. 'optional--',
  8425. 'optional2--',
  8426. "//a[contains(@href,'faststore.org')]");
  8427. }
  8428. if (GM_getValue("Check_prefiles_dot_com_links", false))
  8429. {
  8430. addFileHost(
  8431. "prefiles\.com\/\\w+",
  8432. 'id="method_free',
  8433. 'File not Found',
  8434. 'optional--',
  8435. 'optional2--',
  8436. "//a[contains(@href,'prefiles.com')]");
  8437. }
  8438. if (GM_getValue("Check_doraupload_dot_com_links", false))
  8439. {
  8440. addFileHost(
  8441. "doraupload\.com\/\\w+",
  8442. 'btn_download|name="method_free',
  8443. 'class="error-code|Could Not Be Found',
  8444. 'optional--',
  8445. 'optional2--',
  8446. "//a[contains(@href,'doraupload.com')]");
  8447. }
  8448. if (GM_getValue("Check_openload_dot_io_links", false))
  8449. {
  8450. addFileHost(
  8451. "openload\.io\/\\w+",
  8452. 'btn btn-primary|class="count">|secondsleftouter',
  8453. 'class="jumbotron">|We are sorry',
  8454. 'optional--',
  8455. 'optional2--',
  8456. "//a[contains(@href,'openload.io')]");
  8457. }
  8458. if (GM_getValue("Check_uploads_dot_xxx_links", false))
  8459. {
  8460. addFileHost(
  8461. "uploads\.xxx\/\\w+",
  8462. 'downoadForFree',
  8463. 'File not found',
  8464. 'optional--',
  8465. 'optional2--',
  8466. "//a[contains(@href,'uploads.xxx')]");
  8467. }
  8468. if (GM_getValue("Check_zxcfiles_dot_com_links", false))
  8469. {
  8470. addFileHost(
  8471. "zxcfiles\.com\/\\w+",
  8472. 'class="downloadbtn',
  8473. 'File Not Found',
  8474. 'optional--',
  8475. 'optional2--',
  8476. "//a[contains(@href,'zxcfiles.com')]");
  8477. }
  8478. if (GM_getValue("Check_up07_dot_net_links", false))
  8479. {
  8480. addFileHost(
  8481. "up07\.net\/\\w+",
  8482. 'name="method_free',
  8483. 'File Not Found',
  8484. 'optional--',
  8485. 'optional2--',
  8486. "//a[contains(@href,'up07.net')]");
  8487. }
  8488. if (GM_getValue("Check_fileupload_dot_pw_links", false))
  8489. {
  8490. addFileHost(
  8491. "fileupload\.pw\/\\w+",
  8492. 'value="Free"',
  8493. 'File Not Found',
  8494. 'optional--',
  8495. 'optional2--',
  8496. "//a[contains(@href,'fileupload.pw')]");
  8497. }
  8498. if (GM_getValue("Check_4upld_dot_com_links", false))
  8499. {
  8500. addFileHost(
  8501. "4upld\.com\/\\w+",
  8502. 'alt="Download Now"|content="Download file">|btn-free-element',
  8503. '<title>Error|content="error|File not found',
  8504. 'optional--',
  8505. 'optional2--',
  8506. "//a[contains(@href,'4upld.com')]");
  8507. }
  8508. /* if (GM_getValue("Check_newfileland_dot_com_links", false))
  8509. {
  8510. addFileHost(
  8511. "newfileland\.com\/\\w+",
  8512. 'name="method_free',
  8513. 'File Not Found',
  8514. 'optional--',
  8515. 'optional2--',
  8516. "//a[contains(@href,'newfileland.com')]");
  8517. } */
  8518. if (GM_getValue("Check_swoopshare_dot_com_links", false))
  8519. {
  8520. addFileHost(
  8521. "(?:.swoopshare)\\.com\/\\w+",
  8522. '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',
  8523. '<input type="file" name="f"',
  8524. 'optional--',
  8525. 'optional2--',
  8526. "//a[contains(@href,'swoopshare.com')]"
  8527. );
  8528. }
  8529. if (GM_getValue("Check_cloudshares_dot_net_links", false))
  8530. {
  8531. addFileHost(
  8532. "cloudshares\.net\/\\w+",
  8533. '"method_free|"Low Speed Download|submit" name="go',
  8534. 'Not Found|"width:500px;text-align:left;">|No such file exist',
  8535. 'optional--',
  8536. 'optional2--',
  8537. "//a[contains(@href,'cloudshares.net')]"
  8538. );
  8539. }
  8540. if (GM_getValue("Check_allmyvideos_dot_net_links", false))
  8541. {
  8542. addFileHost(
  8543. "allmyvideos\.net\/\\w+",
  8544. 'Continue to Video',
  8545. 'File Not Found|class="err">Removed for',
  8546. 'optional--',
  8547. 'optional2--',
  8548. "//a[contains(@href,'allmyvideos.net')]"
  8549. );
  8550. }
  8551. if (GM_getValue("Check_vodlocker_dot_com_links", false))
  8552. {
  8553. addFileHost(
  8554. "vodlocker\.com\/\\w+",
  8555. 'Proceed to video',
  8556. 'Not Found',
  8557. 'optional--',
  8558. 'optional2--',
  8559. "//a[contains(@href,'vodlocker.com')]"
  8560. );
  8561. }
  8562. if (GM_getValue("Check_vidbull_dot_com_links", false))
  8563. {
  8564. addFileHost(
  8565. "vidbull\.com\/\\w+",
  8566. 'Verifying Video Request',
  8567. 'File Not Found',
  8568. 'optional--',
  8569. 'optional2--',
  8570. "//a[contains(@href,'vidbull.com')]");
  8571. }
  8572. if (GM_getValue("Check_novamov_dot_com_links", false))
  8573. {
  8574. addFileHost(
  8575. "novamov\.com\/\\w+",
  8576. 'For version detection',
  8577. 'file no longer exists',
  8578. 'optional--',
  8579. 'optional2--',
  8580. "//a[contains(@href,'novamov.com')]"
  8581. );
  8582. }
  8583. if (GM_getValue("Check_filehoot_dot_com_links", false))
  8584. {
  8585. addFileHost(
  8586. "filehoot\.com\/\\w+",
  8587. 'Continue to watch',
  8588. 'File Not Found',
  8589. 'optional--',
  8590. 'optional2--',
  8591. "//a[contains(@href,'filehoot.com')]"
  8592. );
  8593. }
  8594. if (GM_getValue("Check_stagevu_dot_com_links", false))
  8595. {
  8596. addFileHost(
  8597. "stagevu\.com\/\\w+",
  8598. 'Video Info',
  8599. 'No video with the provided',
  8600. 'optional--',
  8601. 'optional2--',
  8602. "//a[contains(@href,'stagevu.com')]"
  8603. );
  8604. }
  8605. if (GM_getValue("Check_cloudtime_dot_to_links", false))
  8606. {
  8607. addFileHost(
  8608. "cloudtime\.to\/\\w+",
  8609. 'Download the video',
  8610. 'no longer exists',
  8611. 'optional--',
  8612. 'optional2--',
  8613. "//a[contains(@href,'cloudtime.to')]"
  8614. );
  8615. }
  8616. if (GM_getValue("Check_streamin_dot_to_links", false))
  8617. {
  8618. addFileHost(
  8619. "streamin\.to\/\\w+",
  8620. 'id="btn_download',
  8621. 'Not Found|Copyright Infringement|File Deleted',
  8622. 'optional--',
  8623. 'optional2--',
  8624. "//a[contains(@href,'streamin.to')]"
  8625. );
  8626. }
  8627. if (GM_getValue("Check_videoweed_dot_es_links", false))
  8628. {
  8629. addFileHost(
  8630. "videoweed\.es\/\\w+",
  8631. 'version detection',
  8632. 'no longer exists',
  8633. 'optional--',
  8634. 'optional2--',
  8635. "//a[contains(@href,'videoweed.es')]"
  8636. );
  8637. }
  8638. if (GM_getValue("Check_nowvideo_dot_sx_links", false))
  8639. {
  8640. addFileHost(
  8641. "nowvideo\.sx\/\\w+",
  8642. 'Download this video|value="submit">Continue',
  8643. 'no longer exists',
  8644. 'optional--',
  8645. 'optional2--',
  8646. "//a[contains(@href,'nowvideo.sx')]"
  8647. );
  8648. }
  8649. if (GM_getValue("Check_thevideo_dot_me_links", false))
  8650. {
  8651. addFileHost(
  8652. "thevideo\.me\/\\w+",
  8653. 'Upgrade your account|Proceed to video|class="btn btn-lg btn-dark">',
  8654. 'File Not Found',
  8655. 'optional--',
  8656. 'optional2--',
  8657. "//a[contains(@href,'thevideo.me')]"
  8658. );
  8659. }
  8660. if (GM_getValue("Check_gorillavid_dot_in_links", false))
  8661. {
  8662. addFileHost(
  8663. "gorillavid\.in\/\\w+",
  8664. 'Wait 5 seconds',
  8665. 'File Not Found',
  8666. 'optional--',
  8667. 'optional2--',
  8668. "//a[contains(@href,'gorillavid.in')]"
  8669. );
  8670. }
  8671. if (GM_getValue("Check_thefile_dot_me_links", false))
  8672. {
  8673. addFileHost(
  8674. "thefile\.me\/\\w+",
  8675. 'Choose free or',
  8676. '',
  8677. 'optional--',
  8678. 'optional2--',
  8679. "//a[contains(@href,'thefile.me')]"
  8680. );
  8681. }
  8682. if (GM_getValue("Check_vidzi_dot_tv_links", false))
  8683. {
  8684. addFileHost(
  8685. "vidzi\.tv\/\\w+",
  8686. 'video-embed-modal row',
  8687. 'File Not Found|file was deleted',
  8688. 'optional--',
  8689. 'optional2--',
  8690. "//a[contains(@href,'vidzi.tv')]"
  8691. );
  8692. }
  8693. if (GM_getValue("Check_filenuke_dot_com_links", false))
  8694. {
  8695. addFileHost(
  8696. "filenuke\.com\/\\w+",
  8697. 'Download File',
  8698. 'Earn with us',
  8699. 'optional--',
  8700. 'optional2--',
  8701. "//a[contains(@href,'filenuke.com')]"
  8702. );
  8703. }
  8704. if (GM_getValue("Check_vidto_dot_me_links", false))
  8705. {
  8706. addFileHost(
  8707. "vidto\.me\/\\w+",
  8708. 'Proceed to video',
  8709. 'Not Found',
  8710. 'optional--',
  8711. 'optional2--',
  8712. "//a[contains(@href,'vidto.me')]"
  8713. );
  8714. }
  8715. if (GM_getValue("Check_vidspot_dot_net_links", false))
  8716. {
  8717. addFileHost(
  8718. "vidspot\.net\/\\w+",
  8719. 'Duration',
  8720. 'Removed for',
  8721. 'optional--',
  8722. 'optional2--',
  8723. "//a[contains(@href,'vidspot.net')]"
  8724. );
  8725. }
  8726. if (GM_getValue("Check_sharesix_dot_com_links", false))
  8727. {
  8728. addFileHost(
  8729. "(?:sharesix\\.com|sharesix\\.net)\/\\w+",
  8730. 'Download File',
  8731. 'File Not Found',
  8732. 'optional--',
  8733. 'optional2--',
  8734. "//a[contains(@href,'sharesix.com') or contains(@href,'sharesix.net/')]"
  8735. );
  8736. }
  8737. if (GM_getValue("Check_movpod_dot_in_links", false))
  8738. {
  8739. addFileHost(
  8740. "movpod\.in\/\\w+",
  8741. 'Continue',
  8742. 'File Not Found',
  8743. 'optional--',
  8744. 'optional2--',
  8745. "//a[contains(@href,'movpod.in')]"
  8746. );
  8747. }
  8748. /* if (GM_getValue("Check_down4files_dot_com_links", false))
  8749. {
  8750. addFileHost(
  8751. "down4files\.com\/\\w+",
  8752. 'down_table.png',
  8753. 'style="color:#d33|Error</td>|width:500px;text-align:left;">',
  8754. 'optional--',
  8755. 'optional2--',
  8756. "//a[contains(@href,'down4files.com')]"
  8757. );
  8758. } */
  8759. if (GM_getValue("Check_storefiles_dot_co_links", false))
  8760. {
  8761. addFileHost(
  8762. "storefiles\.co\/\\w+",
  8763. 'btn_download',
  8764. 'No such file|>Error<|mqmaintitle">',
  8765. 'optional--',
  8766. 'optional2--',
  8767. "//a[contains(@href,'storefiles.co')]"
  8768. );
  8769. }
  8770. if (GM_getValue("Check_filehost_dot_pw_links", false))
  8771. {
  8772. addFileHost(
  8773. "filehost\.pw\/\\w+",
  8774. 'name="method_free',
  8775. '>Error<|style="color:#d33;">|No such file|FILE NOT FOUND',
  8776. 'optional--',
  8777. 'optional2--',
  8778. "//a[contains(@href,'filehost.pw')]"
  8779. );
  8780. }
  8781. /* if (GM_getValue("Check_inafile_dot_com_links", false))
  8782. {
  8783. addFileHost(
  8784. "inafile\.com\/\\w+",
  8785. 'value="download1">|<h2>File: <font style="color:darkred">',
  8786. '<div style="width:500px;text-align:left;">|File Not Found',
  8787. 'optional--',
  8788. 'optional2--',
  8789. "//a[contains(@href,'inafile.com')]"
  8790. );
  8791. } */
  8792. if (GM_getValue("Check_uplea_dot_com_links", false))
  8793. {
  8794. addFileHost(
  8795. "uplea\.com\/\\w+",
  8796. 'Download your file:|de votre fichier:|class="download-container|Téléchargement de votre fichier:',
  8797. 'expired link|ou est invalide',
  8798. 'optional--',
  8799. 'optional2--',
  8800. "//a[contains(@href,'uplea.com/dl')]",
  8801. true);
  8802. }
  8803. if (GM_getValue("Check_toutbox_dot_fr_links", false))
  8804. {
  8805. addFileHost(
  8806. "toutbox\.fr\/\\w+",
  8807. '<div class="downloadFileFid">|class="downloadsCounter">/p>|class="filename"><a href=|img/webbuttoned.gif">',
  8808. 'meta name="description" content="Toutbox.fr|redirect-userpage = "true"',
  8809. 'Serviço temporariamente indisponível',
  8810. 'optional2--',
  8811. "//a[contains(@href,'toutbox.fr') or contains(@href,'go4up.com/')]"
  8812. );
  8813. }
  8814. if (GM_getValue("Check_openload_dot_co_links", false))
  8815. {
  8816. addFileHost(
  8817. "openload\.co\/\\w+",
  8818. 'id="downloadTimer">|button dlbutton',
  8819. 'jumbotron{color|got deleted|center !important',
  8820. 'optional--',
  8821. 'optional2--',
  8822. "//a[contains(@href,'openload.co')]"
  8823. );
  8824. }
  8825. if (GM_getValue("Check_lolabits_dot_es_links", false))
  8826. {
  8827. addFileHost(
  8828. "lolabits\.es\/\\w+",
  8829. 'Descargar:',
  8830. '<title>Archivos de usuario',
  8831. 'Service Unavailable',
  8832. 'optional2--',
  8833. "//a[contains(@href,'lolabits.es')]"
  8834. );
  8835. }
  8836. if (GM_getValue("Check_alfafile_dot_net_links", false))
  8837. {
  8838. addFileHost(
  8839. "alfafile\.net\/\\w+",
  8840. 'id="slow_download_btn',
  8841. 'class="error-box">',
  8842. 'optional--',
  8843. 'optional2--',
  8844. "//a[contains(@href,'alfafile.net')]"
  8845. );
  8846. }
  8847. if (GM_getValue("Check_multiup_dot_org_links", false))
  8848. {
  8849. addFileHost(
  8850. "multiup\.org\/\\w+",
  8851. '<title>Download|<title>Télécharger|class="link-download btn"|<h5>DOWNLOAD</h5>|<h5>TÉLÉCHARGER</h5>',
  8852. 'File not found|alert-error">|icon-white icon-warning-sign">|<title>Fichier introuvable',
  8853. 'optional--',
  8854. 'optional2--',
  8855. "//a[contains(@href,'multiup.org')]"
  8856. );
  8857. }
  8858. if (GM_getValue("Check_file_dot_al_links", false))
  8859. {
  8860. addFileHost(
  8861. "file\.al\/\\w+",
  8862. 'method_free',
  8863. 'style="width:500px;text-align:left;">',
  8864. 'optional--',
  8865. 'optional2--',
  8866. "//a[contains(@href,'file.al')]"
  8867. );
  8868. }
  8869. if (GM_getValue("Check_devilshare_dot_net_links", false))
  8870. {
  8871. addFileHost(
  8872. "devilshare\.net\/\\w+",
  8873. '<div class="large-12" id="download">',
  8874. '(Link: 0 Invalid)|File Not Found',
  8875. 'optional--',
  8876. 'optional2--',
  8877. "//a[contains(@href,'devilshare.net')]"
  8878. );
  8879. }
  8880. if (GM_getValue("Check_dailyuploads_dot_net_links", false))
  8881. {
  8882. addFileHost(
  8883. "dailyuploads\.net\/\\w+",
  8884. 'id="downloadBtnClickOrignal',
  8885. '<div style="width:500px;text-align:left;">',
  8886. 'optional--',
  8887. 'optional2--',
  8888. "//a[contains(@href,'dailyuploads.net')]"
  8889. );
  8890. }
  8891.  
  8892. }
  8893. //start here
  8894.  
  8895. //hosts with direct download, so they must be requested for headers only
  8896. function initFileHostsHeadersOnly()
  8897. {
  8898. function addFileHostHeadersOnly(linkRegex, isAliveRegex, isDeadRegex, xpathEx, ispremRegex)
  8899. {
  8900. var host = new Array(5);
  8901. host[0] = linkRegex;
  8902. host[1] = isAliveRegex;
  8903. host[2] = isDeadRegex;
  8904. host[3] = xpathEx;
  8905. host[4] = ispremRegex;
  8906. http_file_hosts_headers_only.push(host);
  8907. }
  8908. if (GM_getValue("Check_uloziste_dot_com_links", false))
  8909. {
  8910. addFileHostHeadersOnly(
  8911. "(?:|files\\.)uloziste\\.com\/\\w+\/\\w+",
  8912. 'Connection: Keep-Alive',
  8913. 'Content-Length: 3857',
  8914. "//a[contains(@href,'uloziste.com')]"
  8915. )
  8916. }
  8917. if (GM_getValue("Check_adrive_dot_com_links", false))
  8918. {
  8919. addFileHostHeadersOnly(
  8920. "adrive\\.com\/public\/\\w+",
  8921. 'Connection: keep-alive',
  8922. 'orig_ref=deleted',
  8923. "//a[contains(@href,'adrive.com')]"
  8924. )
  8925. }
  8926. if (GM_getValue("Check_myupload_dot_dk_links", false))
  8927. {
  8928. addFileHostHeadersOnly(
  8929. "myupload\\.dk\/showfile\/\\w+",
  8930. 'Expires:',
  8931. 'squeeze1\\s+Vary',
  8932. "//a[contains(@href,'myupload.dk/showfile')]"
  8933. )
  8934. }
  8935. }
  8936. //CustomRules
  8937. //functions add...Host copied here
  8938. function addObsoleteHost(linkRegex, xpathEx)
  8939. {
  8940. var host = new Array(2);
  8941. host[0] = linkRegex;
  8942. host[1] = xpathEx;
  8943. http_file_hosts_obsolete.push(host);
  8944. }
  8945. function addFileHost(linkRegex, isAliveRegex, isDeadRegex, isUnavaRegex, xpathEx, tryLoop, ispremRegex)
  8946. {
  8947. var host = new Array(7);
  8948. host[0] = linkRegex;
  8949. host[1] = isAliveRegex;
  8950. host[2] = isDeadRegex;
  8951. host[3] = isUnavaRegex;
  8952. host[4] = xpathEx;
  8953. tryLoop ? host[5] = true : host[5] = false;
  8954. host[6] = ispremRegex;
  8955. http_file_hosts.push(host);
  8956. }
  8957. function addFileHostHeadersOnly(linkRegex, isAliveRegex, isDeadRegex, xpathEx, ispremRegex)
  8958. {
  8959. var host = new Array(5);
  8960. host[0] = linkRegex;
  8961. host[1] = isAliveRegex;
  8962. host[2] = isDeadRegex;
  8963. host[3] = xpathEx;
  8964. host[4] = ispremRegex;
  8965. http_file_hosts_headers_only.push(host);
  8966. }
  8967. //takes a fully built rules array and adds the rules to WARLC
  8968. function applyCustomRules(customRules)
  8969. {
  8970. if (!customRules) return;
  8971. var rules, r, i;
  8972. rules = customRules.rules;
  8973. for (i = 0 ; i < rules.length ; i++)
  8974. {
  8975. r = rules[i];
  8976. if (r.enabled)
  8977. {
  8978. switch (r.type)
  8979. {
  8980. case 'single':
  8981. addFileHost(r.urlregex, r.aliveregex, r.deadregex, r.unavaregex, r.premregex||'', r.xpath);
  8982. break;
  8983. case 'headers':
  8984. addFileHostHeadersOnly(r.urlregex, r.aliveregex, r.deadregex, r.xpath, r.premregex);
  8985. break;
  8986. case 'obsolete':
  8987. addObsoleteHost(r.urlregex, r.xpath)
  8988. break;
  8989. }
  8990. }
  8991. }
  8992. }
  8993.  
  8994.  
  8995. function initFileHostsCustom()
  8996. {
  8997. if (Custom_rules && Custom_rules_text)
  8998. {
  8999. var msg = '';
  9000. if (newVersion)
  9001. msg = 'New version of W.A.R. Links Checker detected.\n\n';
  9002. else if ((now - last_custom_rules_nag) >= 60*24*60*60*1000)
  9003. msg = '60 or more days have passed since this notification.\n\n';
  9004. if (msg && /^\s*@customrule(?:_obsolete)?\s/mi.test(Custom_rules_text))
  9005. {
  9006. GM_setValue('last_custom_rules_nag', ''+new Date().getTime()); //reset nag
  9007. msg +=
  9008. 'Either new version of W.A.R. Links Checker detected or 60 days passed since this notify.\n'+
  9009. 'Please check that your custom rules haven\'t been built into WARLC.\n'+
  9010. 'If not, please share them with us so they can be included in the next version! Built-in rules are always preferred.\n\n'+
  9011. 'We apologize for this annoying notification, but there is a reason to this.\n'+
  9012. 'Ideally, WARLC would check which of your custom rules have been included and disable them. '+
  9013. 'Unfortunately, there is no easy way to do that, but we don\'t want everybody to just use their custom rules '+
  9014. 'forever without ever checking if the built-in ones have been added/fixed. This is currently the only way '+
  9015. 'to remind you that you should try built-in rules, report missing/non-working ones and share your custom rules.';
  9016. setTimeout(function(){alert(msg)},0);
  9017. }
  9018. var customRules = parseCustomRules(Custom_rules_text);
  9019. if (customRules.warning || customRules.error)
  9020. alert('There were ' + customRules.error + ' errors, ' + customRules.warning + ' warnings, ' +
  9021. customRules.note + ' notes found during Custom Rules processing.\n' + customRules.rules.length + ' valid rules found.\n\n' +
  9022. JSON.stringify(customRules.info, null, ' '));
  9023. applyCustomRules(customRules);
  9024. }
  9025. }
  9026. //end of CustomRules processing
  9027.  
  9028.  
  9029.  
  9030. } //end of function start
  9031.  
  9032.  
  9033.  
  9034. function initClipBoardTools()
  9035. {
  9036. unsafeWindow.copyToClipboard = function(text)
  9037. {
  9038. try
  9039. {
  9040. this.netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
  9041.  
  9042. var str = Components.classes["@mozilla.org/supports-string;1"].
  9043. createInstance(Components.interfaces.nsISupportsString);
  9044. if (!str) return false;
  9045.  
  9046. str.data = text;
  9047.  
  9048. var trans = Components.classes["@mozilla.org/widget/transferable;1"].
  9049. createInstance(Components.interfaces.nsITransferable);
  9050. if (!trans) return false;
  9051.  
  9052. trans.addDataFlavor("text/unicode");
  9053. trans.setTransferData("text/unicode", str, text.length * 2);
  9054.  
  9055. var clipid = Components.interfaces.nsIClipboard;
  9056. var clip = Components.classes["@mozilla.org/widget/clipboard;1"].getService(clipid);
  9057. if (!clip) return false;
  9058.  
  9059. clip.setData(trans, null, clipid.kGlobalClipboard);
  9060. } catch (e) {
  9061. GM_log("Error copyToClipboard : " + e);
  9062. alert(e + "\n\nsigned.applets.codebase_principal_support must be set true in about:config")
  9063. }
  9064. }
  9065. }
  9066.  
  9067.  
  9068.  
  9069. //CustomRules
  9070.  
  9071. function escapeRegex(str)
  9072. {
  9073. return str.replace(/[\-\[\]{}()*+?.,\\\^$|#]/g, "\\$&");
  9074. }
  9075.  
  9076.  
  9077. //called internally from parseCustomRules.
  9078. //expected: rule object with array fields baseurl, alivematch etc, everything must already be checked for input errors
  9079. //returns the rule object with string fields urlregex, xpath, aliveregex etc built from the arrays
  9080. function makeCustomRule(rule)
  9081. {
  9082. function makeMatchRegex(arrmatch)
  9083. {
  9084. return escapeRegex(arrmatch.join('\n'))
  9085. .replace(/ +/g, '\\s+') //two or more spaces to any whitespace
  9086. .replace(/\n/g,'|'); //join together
  9087. }
  9088. if (rule.alivematch) rule.aliveregex = makeMatchRegex(rule.alivematch);
  9089. if (rule.deadmatch) rule.deadregex = makeMatchRegex(rule.deadmatch);
  9090. if (rule.unavamatch) rule.unavaregex = makeMatchRegex(rule.unavamatch);
  9091. if (rule.premmatch) rule.premregex = makeMatchRegex(rule.premmatch);
  9092. if (rule.baseurl)
  9093. {
  9094. var i, m, urlregex = [], xpath = [], len = rule.baseurl.length;
  9095. for (i = 0 ; i < len ; i++)
  9096. {
  9097. m = rule.baseurl[i].match(/^([a-z0-9\.-]+)(?: +([a-z \.]+) +)?(\/.*)$/);
  9098. if (m[2]) //baseurl in the form: example. com co.uk net /xxx
  9099. {
  9100. 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'])
  9101. urlregex.push( (m[1] + '(?:'+ m[2].replace(/\s+/g,'|') + ')').replace(/\./g,'\\.') + escapeRegex(m[3]) + '.'); //urlregex.push('example\\.(?:com|co\\.uk|net)/xxx.')
  9102. }
  9103. else //baseurl in the form: example.com/xxx
  9104. {
  9105. xpath.push(m[0]);
  9106. urlregex.push(escapeRegex(m[0]) + '.');
  9107. }
  9108. }
  9109. rule.xpath = "//a[contains(@href,'" + xpath.join("') or contains(@href,'") + "')]";
  9110. rule.urlregex = '(?:[a-z0-9\\.-]+\\.)?(?:' + urlregex.join('|') + ')';
  9111. }
  9112. return rule;
  9113. } //function makeCustomRule
  9114.  
  9115.  
  9116. /*
  9117. Takes a string containing custom link checking rules.
  9118. Returns an object with fields:
  9119. info - contains notes, warnings and errors found during parsing
  9120. rules - the array of custom rules
  9121. note, warning, error - number of each of them found during parsing
  9122. Format of the input string:
  9123. One command per line. Command format: @keyword parameter
  9124. Keywords:
  9125. @customrule, @customrule_obsolete, @customrule_headers - begin a new custom rule. Parameter: name of the rule
  9126. @#customrule, @#customrule_obsolete, @#customrule_headers - begin and parse this custom rule, but don't use it. Parameter: name of the rule
  9127. These keywords can be multiple (any of them will work):
  9128. @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...)
  9129. @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+
  9130. @alivelink, @deadlink - example links
  9131. @baseurl is always required, @alivematch and @deadmatch are required except for obsolete. @unavamatch is ignored for obsolete. @*link is optional.
  9132. Lines starting with // and empty lines are ignored.
  9133. Invalid parameters generate errors and those lines are skipped.
  9134. Other lines generate warnings, but are otherwise ignored (also those before the first @customrule line or inside a rule with invalid name).
  9135. Example:
  9136. @customrule filehost
  9137. @baseurl filehost.com/download/
  9138. @baseurl filehost2. com net /d?=
  9139. @alivematch id="download">
  9140. @deadmatch File not found
  9141. @deadmatch File deleted
  9142. */
  9143. function parseCustomRules(rulesStr)
  9144. {
  9145. var linenum, customRules = {'info': [], 'rules': [], 'note': 0, 'warning': 0, 'error': 0};
  9146. function addInfo(type, msg, ln){
  9147. customRules.info.push({'linenum':(ln===undefined ? linenum+1 : ln+1), 'type':type, 'msg':msg});
  9148. customRules[type]++;
  9149. }
  9150. var lines = rulesStr.match(/^(.*)$/gm); //split into array of lines
  9151. if (!lines) return null;
  9152. lines.push('@#customrule _'); //to save the last rule
  9153. var m, linecount = lines.length;
  9154. var keyword, param, constr, rule, err;
  9155. var TLD = '[a-z]{2,7}(?:\\.[a-z]{2,7})?';
  9156. var TLDorTLDlist = '(?:'+TLD+'| '+TLD+'(?: '+TLD+'){0,9} )'; //TLD or space-separated list of TLDs
  9157. var baseurlRE = new RegExp('^([a-z0-9-]{1,30}(?:\\.[a-z0-9-]{1,30}){0,2}\\.)'+TLDorTLDlist+'(/[^\'"\s\$]{0,50})$', 'i');
  9158. var constraints = {
  9159. 'baseurl': {
  9160. 'single': {'min': 1, 'max': 10, 'paramRE': baseurlRE},
  9161. 'headers': {'min': 1, 'max': 10, 'paramRE': baseurlRE},
  9162. 'obsolete': {'min': 1, 'max': 10, 'paramRE': baseurlRE}},
  9163. 'alivematch': {
  9164. 'single': {'min': 1, 'max': 10, 'paramRE': null},
  9165. 'headers': {'min': 1, 'max': 10, 'paramRE': null}},
  9166. 'deadmatch': {
  9167. 'single': {'min': 1, 'max': 10, 'paramRE': null},
  9168. 'headers': {'min': 1, 'max': 10, 'paramRE': null}},
  9169. 'unavamatch': {
  9170. 'single': {'min': 0, 'max': 10, 'paramRE': null}},
  9171. 'alivelink': {
  9172. 'single': {'min': 0, 'max': 10, 'paramRE': null},
  9173. 'headers': {'min': 0, 'max': 10, 'paramRE': null}},
  9174. 'deadlink': {
  9175. 'single': {'min': 0, 'max': 10, 'paramRE': null},
  9176. 'headers': {'min': 0, 'max': 10, 'paramRE': null},
  9177. 'obsolete': {'min': 0, 'max': 10, 'paramRE': null}}
  9178. };
  9179. for (linenum = 0 ; linenum < linecount ; linenum++)
  9180. {
  9181. //capturing groups: 1 23 4 5 6
  9182. m = lines[linenum].match(/^\s*(?:(\/\/.*)|@((#?)(customrule)(?:_(headers|obsolete))?|baseurl|alivematch|deadmatch|unavamatch|alivelink|deadlink)\s+(.+))?$/i);
  9183. if (m)
  9184. {
  9185. if (m[1] || !m[2])
  9186. continue; // ignore empty lines and lines starting with //
  9187. keyword = (m[4] || m[2]).toLowerCase();
  9188. param = m[6];
  9189. if (keyword == 'customrule')
  9190. {
  9191. //save the current rule if all required fields are provided
  9192. if (rule)
  9193. {
  9194. err = false;
  9195. $.each(constraints, function(kw, constraint){
  9196. var l, constr = constraint[rule.type];
  9197. if (constr)
  9198. {
  9199. l = rule[kw] ? rule[kw].length : 0;
  9200. if (l < constr.min || l > constr.max)
  9201. {
  9202. 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);
  9203. err = true;
  9204. }
  9205. }
  9206. });
  9207. if (!err)
  9208. customRules.rules.push(makeCustomRule(rule));
  9209. }
  9210. //start a new rule
  9211. if (/^[\w\.-]{1,30}$/.test(param)) //valid name?
  9212. {
  9213. rule = {
  9214. 'enabled': !m[3],
  9215. 'type': m[5] ? m[5].toLowerCase() : 'single',
  9216. 'name': param
  9217. };
  9218. }
  9219. else
  9220. {
  9221. addInfo('error', 'Invalid rule name. Cannot start a new rule definition.');
  9222. rule = null;
  9223. }
  9224. }
  9225. else //good line format, but keyword other than customrule
  9226. {
  9227. if (!rule)
  9228. {
  9229. addInfo('warning', 'Command outside @CUSTOMRULE definiton. Line skipped.');
  9230. continue;
  9231. }
  9232. if (constraints[keyword])
  9233. {
  9234. constr = constraints[keyword][rule.type];
  9235. if (constr)
  9236. {
  9237. if (constr.paramRE && !constr.paramRE.test(param))
  9238. {
  9239. addInfo('warning', 'Invalid @' + keyword.toUpperCase() + ' parameter. Line Skipped.');
  9240. continue;
  9241. }
  9242. }
  9243. else
  9244. {
  9245. addInfo('note', '@' + keyword.toUpperCase() + ' not applicable for type ' + rule.type.toUpperCase() + '. Line skipped.');
  9246. continue;
  9247. }
  9248. }
  9249. //line OK, save
  9250. rule[keyword] ? rule[keyword].push(param) : rule[keyword] = [param];
  9251. }
  9252. } //if (m)
  9253. else
  9254. addInfo('warning', 'Unknown line format. Line skipped.');
  9255. } //for loop
  9256. return customRules;
  9257. } //function parseCustomRules

QingJ © 2025

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