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

detects live, dead and premium links.

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

  1. //fixed app.box.com, added multiup.org
  2.  
  3. // ==UserScript==
  4. // @name W.A.R. Links Checker Customized Premium Link Version
  5. // @description detects live, dead and premium links.
  6. // @details this script automatically checks links from hundreds of filehosts. For Firefox, Chrome, Opera, Safari.
  7. // @namespace premium version
  8. // @version 1.2.0.1
  9. // @icon http://sharenxs.com/photos/2014/02/14/52fd759db90ac/cooltext1428903746.png
  10. // @license GPL version 3 or any later version (http://www.gnu.org/copyleft/gpl.html)
  11. // @author mental
  12. // @include http://*
  13. // @include https://*
  14. // @include file:///*
  15. // @grant GM_setValue
  16. // @grant GM_getValue
  17. // @grant GM_xmlhttpRequest
  18. // @grant GM_log
  19. // @grant GM_addStyle
  20. // @grant GM_registerMenuCommand
  21. // @grant GM_getResourceText
  22. // @grant GM_info
  23. // @require https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js
  24. // @require https://ajax.googleapis.com/ajax/libs/jqueryui/1.9.1/jquery-ui.min.js
  25. // @resource jQueryUICSS https://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/smoothness/jquery-ui.css
  26. // @homepage http://www.warlc.5gbfree.com
  27. // @namespace http://www.warlc.5gbfree.com
  28. // @noframes
  29. // ==/UserScript==
  30.  
  31. //separate alternative domains with "|" char (first name is considered being main)
  32. var allHostNames = [
  33. "1fichier.com|dl4free.com",
  34. "alfafile.net",
  35. "openload.co",
  36. "multiup.org",
  37. "uplea.com",
  38. "filenuke.com",
  39. "inafile.com",
  40. "lolabits.es",
  41. "vidto.me",
  42. "storefiles.co",
  43. "filehost.pw",
  44. "vidspot.net",
  45. "turbobit.ru",
  46. "sharesix.com|sharesix.net",
  47. "movpod.in",
  48. "thefile.me",
  49. "vidzi.tv",
  50. "videoweed.es",
  51. "vodlocker.com",
  52. "nowvideo.sx",
  53. "cloudtime.to",
  54. "thevideo.me",
  55. "vidbull.com",
  56. "allmyvideos.net",
  57. "novamov.com",
  58. "filehoot.com",
  59. "stagevu.com",
  60. "gorillavid.in",
  61. "streamin.to",
  62. "4upld.com",
  63. "cloudshares.net",
  64. "swoopshare.com",
  65. "2shared.com",
  66. "fileupload.pw",
  67. "zxcfiles.com",
  68. "up07.net",
  69. "4shared.com",
  70. "adrive.com",
  71. "aisfile.com",
  72. "hexupload.com",
  73. "bezvadata.cz",
  74. "xkeepfile.com|Gamesena.com",
  75. "usersfiles.com",
  76. "pan.baidu.com",
  77. "radicalshare.com",
  78. "datei.to",
  79. "daten-hoster.de|filehosting.org|xtraupload.de",
  80. "demo.ovh.eu",
  81. "depositfiles.com|depositfiles.lt|depositfiles.org|dfiles.ru|dfiles.eu",
  82. "divshare.com",
  83. "easy-share.com|crocko.com",
  84. "easybytez.com",
  85. "edisk.cz",
  86. "euroshare.eu",
  87. "file-upload.net",
  88. "yadi.sk",
  89. "wizupload.com",
  90. "fastshare.cz",
  91. "filefactory.com",
  92. "share.vnn.vn",
  93. "yunpan.cn",
  94. "gulfup.com",
  95. "tropicshare.com",
  96. "cloudzilla.to",
  97. "inclouddrive.com",
  98. "fileflyer.com",
  99. "filerio.com|filekeen.com",
  100. "up.4share.vn",
  101. "upfile.vn",
  102. "datafilehost.com",
  103. "fileband.com",
  104. "worldbytez.com",
  105. "files.mail.ru",
  106. "filepost.com|fp.io",
  107. "filesflash.com",
  108. "box.com",
  109. "uptobox.com",
  110. "box.net",
  111. "goldbytez.com",
  112. "sdilej.cz",
  113. "ex-load.com",
  114. "filesmonster.com",
  115. "filestore.to",
  116. "hulkload.com",
  117. "filedropper.com",
  118. "free-uploading.com",
  119. "gamefront.com|filefront.com",
  120. "gettyfile.ru",
  121. "gigapeta.com",
  122. "gigasize.com",
  123. "hellshare.com",
  124. "hellspy.com",
  125. "hitfile.net",
  126. "hostuje.net",
  127. "freefilehosting.net",
  128. "free.fr",
  129. "hulkshare.com",
  130. "hyperfileshare.com",
  131. "filecloud.io|ifile.it",
  132. "ifolder.ru",
  133. "jumbofiles.com",
  134. "uploadrocket.net",
  135. "lafiles.com",
  136. "leteckaposta.cz|sharegadget.com",
  137. "letitbit.net",
  138. "load.to",
  139. "mediafire.com",
  140. "megafileupload.com",
  141. "megashares.com",
  142. "movshare.net",
  143. "muchshare.net",
  144. "myupload.dk",
  145. "narod.ru|narod.yandex.ru",
  146. "fboom.me|fileboom.me",
  147. "openfile.ru",
  148. "partage-facile.com",
  149. "plunder.com",
  150. "sharerapid.cz",
  151. "exclusiveloader.com",
  152. "acefile.net",
  153. "queenshare.com",
  154. "rapidgator.net",
  155. "k2s.cc|keep2s.cc|keep2share.cc|keep2share.com",
  156. "oboom.com",
  157. "filepi.com",
  158. "neodrive.co",
  159. "rarefile.net",
  160. "rayfile.com",
  161. "rghost.net",
  162. "sendmyway.com",
  163. "clicknupload.com",
  164. "sharemods.com",
  165. "hostr.co",
  166. "sendspace.com",
  167. "sharecash.org",
  168. "share-links.biz",
  169. "share-online.biz|egoshare.com",
  170. "megarapid.cz",
  171. "shareflare.net",
  172. "solidfiles.com",
  173. "led.wf",
  174. "lan.wf",
  175. "adlink.wf",
  176. "click.tf",
  177. "kyc.pm",
  178. "ssh.tf",
  179. "ssh.yt",
  180. "yep.pm",
  181. "stahovanizasms.cz",
  182. "turbobit.net",
  183. "filecloud.cc",
  184. "tikfile.com",
  185. "cloudsix.me",
  186. "turboupload.com",
  187. "uloz.to|ulozto.cz|bagruj.cz|zachowajto.pl",
  188. "ulozisko.sk",
  189. "uloziste.com",
  190. "unibytes.com",
  191. "upload-il.net|przeslij.net",
  192. "uploaded.to|ul.to",
  193. "uploading.com",
  194. "chayfile.com",
  195. "rockfile.eu",
  196. "24uploading.com",
  197. "uploadspace.pl",
  198. "upnito.sk",
  199. "usaupload.net",
  200. "veehd.com",
  201. "videobb.com",
  202. "vip-file.com",
  203. "webshare.cz",
  204. "xdisk.cz",
  205. "yunfile.com|filemarkets.com",
  206. "ziddu.com",
  207. "zippyshare.com",
  208. "rodfile.com",
  209. "wikiupload.com",
  210. "uploadstube.de",
  211. "faststore.org",
  212. "flyfiles.net",
  213. "nowdownload.ch",
  214. "prefiles.com",
  215. "axifile.com",
  216. "rapidsonic.com|fileparadox.com",
  217. "hackerbox.org",
  218. "amonshare.com",
  219. "data.hu",
  220. "brupload.net",
  221. "userscloud.com",
  222. "netkups.com",
  223. "xfileload.com",
  224. "kumpulbagi.com",
  225. "uppit.com|up.ht",
  226. "downloadani.me",
  227. "filesabc.com",
  228. "180upload.com",
  229. "verzend.be",
  230. "4up.me",
  231. "extmatrix.com",
  232. "sendfiles.nl",
  233. "yourfilestore.com",
  234. "filebig.net",
  235. "nekaka.com",
  236. "file4safe.com",
  237. "tusfiles.net",
  238. "filemac.com",
  239. "idup.in",
  240. "fileswap.com",
  241. "ozofiles.com",
  242. "loudupload.net",
  243. "nosupload.com",
  244. "gboxes.com",
  245. "myvdrive.com|fileserving.com",
  246. "filesin.com",
  247. "novafile.com",
  248. "longfiles.com",
  249. "uploadhero.com",
  250. "uploadbaz.com",
  251. "bitupload.com",
  252. "indowebster.com",
  253. "superload.cz",
  254. "mafiastorage.com",
  255. "4upfiles.com",
  256. "filesmelt.com",
  257. "hellupload.com",
  258. "uploadingit.com",
  259. "stiahni.si",
  260. "sendspace.pl",
  261. "fastshare.org",
  262. "filejoker.net",
  263. "filestore.com.ua",
  264. "secureupload.eu",
  265. "rapidfileshare.net",
  266. "stiahnito.sk",
  267. "rusfolder.com",
  268. "fileover.net",
  269. "catshare.net",
  270. "anonfiles.com",
  271. "mixturecloud.com",
  272. "fileparadox.in",
  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. "uploadhero.co",
  298. "ge.tt",
  299. "filesflash.net",
  300. "salefiles.com",
  301. "megairon.net",
  302. "datoid.cz",
  303. "cloudstor.es",
  304. "streamfile.com",
  305. "eyesfile.ca",
  306. "filemoney.com",
  307. "uploadboy.com",
  308. "speedshare.eu",
  309. "google.com",
  310. "unlimitzone.com",
  311. "rioupload.com",
  312. "rg.to",
  313. "jumbofiles.org",
  314. "fshare.vn",
  315. "spaceforfiles.com",
  316. "up.media1fire.com",
  317. "depfile.com",
  318. "go4up.com",
  319. "dropbox.com",
  320. "redbunker.net",
  321. "divxpress.com",
  322. "mega.nz|mega.co.nz",
  323. "anafile.com",
  324. "uploadable.ch",
  325. "arabloads.net",
  326. "sharerepo.com",
  327. "sfshare.se",
  328. "files.fm",
  329. "koofile.com",
  330. "vidplay.net",
  331. "storagon.com",
  332. "doraupload.com",
  333. "openload.io",
  334. "geupload.com|lenfile.com",
  335. "uploads.xxx",
  336. "toutbox.fr",
  337. ];
  338.  
  339. try
  340. {
  341. //iframes excluded
  342. if (window.top != window.self)
  343. {
  344. return;
  345. }
  346. //allHostNames sites excluded
  347. if (window.location.href.match("https?:\/\/(www\.)?[\w\.-]*(?:" +
  348. allHostNames.join("|").replace(/\./g, "\\.").replace(/-/g, "\\-") +
  349. ")"))
  350. {
  351. return;
  352. }
  353. }
  354. catch (e)
  355. {
  356. return;
  357. }
  358.  
  359. //separate alternative domains with "|" char (first name is considered being main)
  360. var allContainerNames = [
  361. "adf.ly",
  362. "linkcrypt.ws",
  363. "linksafe.me",
  364. "linksave.in",
  365. "linkto.net",
  366. "madlink.sk",
  367. "multiload.cz",
  368. "mirrorcreator.com",
  369. "ncrypt.in",
  370. "redi.re",
  371. "relink.us",
  372. "safelinking.net",
  373. "theloo.katt.it",
  374. "bit.ly",
  375.  
  376. ];
  377.  
  378. //separate alternative domains with "|" char (first name is considered being main)
  379. var allObsoleteNames = [
  380. "uloz.cz",
  381. "newfileland.com",
  382. "quickshare.cz",
  383. "netload.in",
  384. "movreel.com",
  385. "migahost.com",
  386. "krotix.net",
  387. "jumbofile.net",
  388. "edoc.com",
  389. "down4files.com",
  390. "cramit.in|cramitin.net",
  391. "freakshare.com",
  392. "burnupload.com|burnupload.ihiphop.com",
  393. "freakshare.net",
  394. "kingfiles.net",
  395. "daj.to",
  396. "bl.st",
  397. "2drive.net",
  398. "ryushare.com",
  399. "crisshare.com",
  400. "tufiles.ru",
  401. "uncapped-downloads.com",
  402. "sockshare.com",
  403. "ddlstorage.com",
  404. "dataport.cz",
  405. "dizzcloud.com",
  406. "sharebeast.com",
  407. "stahovadlo.cz",
  408. "shared.com",
  409. "storage.to",
  410. "putlocker.com",
  411. "lumfile.com",
  412. "lumfile.se",
  413. "lumfile.eu",
  414. "firedrive.com",
  415. "fileshare.in.ua",
  416. "filecore.co.nz",
  417. "iskladka.cz",
  418. "file-rack.com",
  419. "fast-load.net",
  420. "subory.sk",
  421. "bigandfree.com",
  422. "fileop.com",
  423. "mujsoubor.cz",
  424. "sendfile.to",
  425. "superfastfile.com",
  426. "quickyshare.com",
  427. "duckload.com",
  428. "uploadstore.net",
  429. "meinupload.com",
  430. "dualshare.com",
  431. "2xupload.to|2xupload.de",
  432. "oxedion.com",
  433. "uploadline.com",
  434. "dll.bz",
  435. "movieshare.in",
  436. "milledrive.com",
  437. "quickupload.net",
  438. "safelink.in",
  439. "metadivx.com",
  440. "divxlink.com",
  441. "uploadrack.com",
  442. "teradepot.com",
  443. "dataup.to",
  444. "upit.to",
  445. "driveway.com",
  446. "eatlime.com",
  447. "a2zuploads.com",
  448. "friendlyfiles.net",
  449. "flyfile.us",
  450. "speedyshare.com",
  451. "uploadspace.eu",
  452. "keepfile.com",
  453. "piggyshare.com",
  454. "uplly.com",
  455. "filecrown.com",
  456. "6giga.com",
  457. "uploadjockey.com",
  458. "bluehost.to",
  459. "filegu.ru",
  460. "filebase.to",
  461. "up-file.com",
  462. "xvideos.com",
  463. "ufox.com",
  464. "filebling.com",
  465. "loaded.it",
  466. "uploadcell.com",
  467. "uploadshare.cz",
  468. "mangoshare.com",
  469. "filestab.com",
  470. "crazyupload.com",
  471. "gaiafile.com",
  472. "sharejunky.com",
  473. "fileho.com",
  474. "bigandfree.com",
  475. "bigfile.in",
  476. "bigshare.eu",
  477. "dahosting.org",
  478. "digisofts.net",
  479. "file4save.com",
  480. "filechip.com",
  481. "filescloud.com",
  482. "saveqube.com",
  483. "turboshare.de",
  484. "z-upload.com",
  485. "youshare.com",
  486. "jiffyupload.com",
  487. "gigeshare.com",
  488. "datenklo.net",
  489. "upload.dj",
  490. "loadfiles.in",
  491. "upit.to",
  492. "dsfileshare.com",
  493. "sharesimple.net",
  494. "4files.net",
  495. "wooupload.com",
  496. "odsiebie.com",
  497. "filenavi.com",
  498. "3oof.com",
  499. "meshwaar.com",
  500. "maxupload.com",
  501. "share.cx",
  502. "atserver.eu",
  503. "hotfiles.ws",
  504. "esnips.com",
  505. "tuxfile.com",
  506. "file2upload.net",
  507. "filebling.com",
  508. "turboshare.com",
  509. "rarhost.com",
  510. "isharehd.com",
  511. "i741.com",
  512. "dataup.de",
  513. "fofly.com",
  514. "shareonall.com",
  515. "sexuploader.com",
  516. "megaupload.com|megavideo.com|megaporn.com|megarotic.com",
  517. "uploadhyper.com",
  518. "filespawn.com",
  519. "caizzii.com",
  520. "volnyweb.cz",
  521. "usershare.net",
  522. "filescash.net",
  523. "metahyper.com",
  524. "combozip.com",
  525. "x7.to",
  526. "uploadbox.com",
  527. "enterupload.com|flyupload.com",
  528. "filepoint.de",
  529. "mystream.to",
  530. "x-fs.com",
  531. "shareator.com",
  532. "srapid.eu",
  533. "sosame.cz",
  534. "filesdump.com",
  535. "2-klicks.de",
  536. "uploking.com",
  537. "silofiles.com",
  538. "upfile.in",
  539. "filehook.com",
  540. "uploadking.com",
  541. "uploadhere.com",
  542. "kewlshare.com",
  543. "rapidable.com",
  544. "uploadwaste.com",
  545. "filemup.com",
  546. "filesonic.com|sharingmatrix.com",
  547. "fileserve.com",
  548. "wupload.com",
  549. "skipfile.com",
  550. "smartuploader.com",
  551. "dualshare.com",
  552. "storeandserve.com",
  553. "mountfile.com",
  554. "transitfiles.com",
  555. "uploadstation.com",
  556. "filejungle.com",
  557. "shareshared.com",
  558. "quickyshare.com",
  559. "save.am",
  560. "petandrive.com",
  561. "file2box.com",
  562. "flyshare.cz",
  563. "yabadaba.ru",
  564. "cloudcache.cc",
  565. "yourfilehost.com",
  566. "jakfile.com",
  567. "kickload.com",
  568. "pyramidfiles.com",
  569. "refile.net",
  570. "zshare.net",
  571. "ddlani.me|ddlanime.com",
  572. "ftp2share.com",
  573. "fooget.com",
  574. "rapidhide.com",
  575. "gotupload.com",
  576. "mooload.com",
  577. "zupload.com",
  578. "mytempdir.com",
  579. "onionshare.com",
  580. "stahnu.to",
  581. "oron.com",
  582. "badongo.com",
  583. "filereactor.com",
  584. "filegaze.com",
  585. "4bytez.com",
  586. "1hostclick.com",
  587. "anonstream.com",
  588. "batshare.com",
  589. "bitroad.net",
  590. "brontofile.com",
  591. "cloudnxt.net",
  592. "cloudnator.com|shragle.com",
  593. "filesfrog.net",
  594. "coolshare.cz",
  595. "dotavi.com",
  596. "ezyfile.net",
  597. "file-bit.net",
  598. "filecosy.com",
  599. "fileduct.com|fileduct.net",
  600. "filefat.com",
  601. "filelaser.com",
  602. "filemashine.com",
  603. "fileserver.cc",
  604. "filetechnology.com",
  605. "fireuploads.net",
  606. "gigfiles.net",
  607. "holderfile.com",
  608. "ihostia.com",
  609. "k2files.com",
  610. "mojofile.com",
  611. "ovfile.com",
  612. "qshare.com",
  613. "shafiles.me",
  614. "sharefilehost.com",
  615. "shareupload.com",
  616. "stahuj.to",
  617. "ugotfile.com",
  618. "uploadboost.com",
  619. "fileom.com",
  620. "vidhog.com",
  621. "xfileshare.eu",
  622. "bzlink.us",
  623. "bulletupload.com",
  624. "bloggerarticles.com",
  625. "mojedata.sk",
  626. "sharpfile.com",
  627. "upgrand.com",
  628. "nasdilej.cz",
  629. "mediatack.cz",
  630. "share-it.to",
  631. "primeupload.com",
  632. "filebeer.info",
  633. "baberepublic",
  634. "xtu.me",
  635. "sharebase.de",
  636. "luckyshare.net",
  637. "filerobo.com",
  638. "filevelocity.com",
  639. "filezpro.com",
  640. "file4sharing.com",
  641. "cing.be",
  642. "ufile.eu",
  643. "pigsonic.com",
  644. "fileupped.com",
  645. "sharerun.com",
  646. "filesaur.com",
  647. "rapidslnare.com",
  648. "bestsharing.com",
  649. "savefiles.net",
  650. "file2share.biz",
  651. "filecache.de",
  652. "monsteruploads.eu",
  653. "b9bb.com",
  654. "aiotool.net",
  655. "jamber.info",
  656. "megaftp.com",
  657. "desiupload.net",
  658. "file27.com",
  659. "yastorage.com",
  660. "filehost.ws",
  661. "copyload.com",
  662. "venusfile.com",
  663. "aieshare.com",
  664. "terafile.co",
  665. "terafile.com",
  666. "fileza.net",
  667. "filerose.com",
  668. "squillion.com",
  669. "fileprohost.com",
  670. "bitbonus.com",
  671. "warserver.cz",
  672. "uload.to",
  673. "sharedbit.net",
  674. "megaload.it",
  675. "filewinds.com",
  676. "uploadcore.com",
  677. "syfiles.com",
  678. "eyesfile.com",
  679. "hotfile.com",
  680. "superupl.com",
  681. "oteupload.com",
  682. "henchfile.com",
  683. "filegag.com",
  684. "HenchFile.com",
  685. "filedefend.com",
  686. "share-rapid.com|rapids.cz|share-credit.cz|share-central.cz|share-ms.cz|share-net.cz|srapid.cz|share-rapid.cz",
  687. "megabitshare.com",
  688. "cloudzer.com",
  689. "asfile.com",
  690. "cloudzer.net",
  691. "clz.to",
  692. "extabit.com",
  693. "247upload.com",
  694. "2download.de",
  695. "4fastfile.com",
  696. "asixfiles.com",
  697. "berofile.com",
  698. "bigupload.com",
  699. "cepzo.com",
  700. "clouds.to",
  701. "cobrashare.sk",
  702. "coraldrive.net",
  703. "cyberlocker.ch",
  704. "czshare.com",
  705. "darkport.org",
  706. "dark-uploads.com",
  707. "davvas.com",
  708. "enigmashare.com",
  709. "erofly.cz",
  710. "fastsonic.net",
  711. "filebox.com",
  712. "filecity.net",
  713. "filedap.com",
  714. "filedino.com",
  715. "filedownloads.org",
  716. "filefolks.com",
  717. "fileking.co",
  718. "filemates.com",
  719. "files.to",
  720. "files2k.eu",
  721. "filesector.cc",
  722. "bitshare.com",
  723. "filesega.com",
  724. "filesend.net",
  725. "filestay.com",
  726. "filestrum.com",
  727. "fileuplo.de",
  728. "fileupup.com",
  729. "forunesia.com",
  730. "freeuploads.fr",
  731. "uploa.dk",
  732. "getthebit.com",
  733. "getzilla.net",
  734. "goldfile.eu",
  735. "good.com",
  736. "grupload.com",
  737. "hellfile.com",
  738. "hipfile.com",
  739. "hitfile.com",
  740. "hulkfile.eu|duckfile.net",
  741. "i-filez.com",
  742. "ifile.ws",
  743. "kupload.org",
  744. "packupload.com",
  745. "lemuploads.com",
  746. "limelinx.com",
  747. "maxshare.pl",
  748. "megarelease.org",
  749. "megashare.com",
  750. "minus.com",
  751. "mlfat4arab.com",
  752. "multishare.cz",
  753. "nirafile.com",
  754. "ok2upload.com",
  755. "peejeshare.com",
  756. "premiuns.org",
  757. "przeklej.net",
  758. "qkup.net",
  759. "rapidupload.sk",
  760. "rockdizfile.com",
  761. "rocketfile.net",
  762. "share-now.net",
  763. "share76.com",
  764. "sharebees.com",
  765. "sharefiles.co",
  766. "slingfile.com",
  767. "sms4file.com",
  768. "space4file.com",
  769. "tigershare.net",
  770. "toucansharing.com",
  771. "ubuntuone.com",
  772. "unextfiles.com",
  773. "upaj.pl",
  774. "upfile.biz",
  775. "uploadbin.net",
  776. "uploadic.com",
  777. "uploadinc.com",
  778. "uploading4u.eu",
  779. "uploadjet.net",
  780. "uploadorb.com",
  781. "upthe.net",
  782. "uptorch.com",
  783. "vidbox.yt",
  784. "videozer.com",
  785. "vreer.com",
  786. "wallobit.com",
  787. "zooupload.com",
  788. "privatefiles.com",
  789. "xerver.co",
  790. "BillionUploads.com",
  791. "rapidshare.com",
  792. "rapidshare.ru",
  793. "4savefile.com",
  794. "bayfiles.com",
  795. "bayfiles.net",
  796. "dodane.pl",
  797. "dotsemper.com",
  798. "egofiles.com",
  799. "epicshare.net",
  800. "fiberupload.net",
  801. "filemonkey.in",
  802. "filemonster.net",
  803. "filepom.com",
  804. "filesbb.com",
  805. "fileshareup.com",
  806. "filevice.com",
  807. "gigaup.fr",
  808. "isavelink.com",
  809. "loombo.com",
  810. "megafiles.se",
  811. "migupload.com",
  812. "mydisc.net",
  813. "nitrobits.com",
  814. "potload.com",
  815. "redload.net",
  816. "shareprofi.com",
  817. "sharesuper.info",
  818. "sinhro.net",
  819. "speedfile.cz",
  820. "speedshare.org",
  821. "storage.novoro.net",
  822. "swankshare.com",
  823. "swatupload.com",
  824. "upafile.com",
  825. "uploadmachine.com",
  826. "uploadsat.com",
  827. "upshared.com",
  828. "usefile.com",
  829. "yourfiles.to",
  830. "zomgupload.com",
  831. "ultramegabit.com",
  832. "uploadto.us",
  833.  
  834. ];
  835. ///////////////////////////////////////////////////////////////////////////////////////
  836. var firstRun = GM_getValue("First_run", true);
  837.  
  838. var chromeBrowser = /chrom(e|ium)/.test(navigator.userAgent.toLowerCase());
  839. //////////////////////////////////////////////////////////////////////////////////////
  840. try
  841. {
  842. var thisVersion = GM_info.script.version; //not supported in Scriptish and others
  843. var last_known_version = GM_getValue("last_known_version", "");
  844. if (!last_known_version)
  845. {
  846. last_known_version = thisVersion;
  847. GM_setValue("last_known_version", last_known_version);
  848. }
  849. //var newVersion = !(thisVersion == last_known_version);
  850. var newVersion = !(a.replace(/^(\d+\.\d+\.\d+).*/,'$1') == b.replace(/^(\d+\.\d+\.\d+).*/,'$1')); //true only if one of the first three numbers differs
  851. GM_setValue("last_known_version", thisVersion);
  852. }
  853. catch (err)
  854. {
  855. var newVersion = false;
  856. }
  857.  
  858. var now = (new Date()).getTime();
  859. var last_custom_rules_nag = GM_getValue('last_custom_rules_nag', 0);
  860. if (!last_custom_rules_nag)
  861. {
  862. last_custom_rules_nag = now;
  863. GM_setValue('last_custom_rules_nag', ''+now);
  864. }
  865.  
  866.  
  867. allHostNames.sort();
  868. allContainerNames.sort();
  869. allObsoleteNames.sort();
  870.  
  871. var RAND_STRING = "8QyvpOSsRG3QWq";
  872. var DEBUG_MODE = false;
  873.  
  874. var TOOLTIP_MAXWIDTH = 600; //in pixels
  875. var TOOLTIP_THUMBWIDTH = 200;
  876. var containers_processed = false;
  877.  
  878. //settings for keyboard functions start
  879. var CHECK_ALL_LINKS_KEY = "A";
  880. var CONFIGURATION_KEY = "C";
  881. var copy_to_dead_key = "D";
  882. var toggle_autocheck_key = "W";
  883. var toggle_Enable_Anonymizer_key = "Z";
  884. var first_key_keycode = '17'; // 18=ALT 16=Shift 17=Ctrl 32=SPACE_BAR 9=TAB
  885. var first_key_keycodename = 'CTRL';
  886. var second_key_keycode = '18';
  887. var second_key_keycodename = 'ALT';
  888. var CHECK_ALL_LINKS_KEYCODE = CHECK_ALL_LINKS_KEY.charCodeAt(0);
  889. var CONFIGURATION_KEYCODE = CONFIGURATION_KEY.charCodeAt(0);
  890. var copy_to_dead_keycode = copy_to_dead_key.charCodeAt(0);
  891. var toggle_autocheck_keycode = toggle_autocheck_key.charCodeAt(0);
  892. var toggle_Enable_Anonymizer_keycode = toggle_Enable_Anonymizer_key.charCodeAt(0);
  893. //settings for keyboard functions end
  894.  
  895. //global settings start
  896. var Show_black_background_in_DL_links, Show_line_through_in_dead_links, Color_DL_links;
  897. var Live_links_color, Dead_links_color, Temp_unavailable_links_color, Premium_links_color, Ref_anonymize_service;
  898. var Do_not_linkify_DL_links, Keyboard_functions, Autocheck, Enable_Anonymizer;
  899. var Show_progress_stats, Display_tooltip_info, Icon_set;
  900. var Progress_box_pos_bottom, Progress_box_pos_right, Progress_box_opacity, Progress_box_background_color, Progress_box_item_color;
  901. var Progress_box_refresh_rate;
  902. var Obsolete_file_hosts;
  903. var Custom_rules, Custom_rules_text;
  904.  
  905. var messageBox = document.createElement('b'); // top-left message box
  906.  
  907. var cLinksTotal = 0;
  908. var cLinksDead = 0;
  909. var cLinksAlive = 0;
  910. var cLinksUnava = 0;
  911. var cLinksprem = 0;
  912. var cLinksProcessed = 0;
  913.  
  914. var intervalId; //for updateProgress()
  915.  
  916. //icon resources
  917. var PAW_ICON_GREEN = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAANCAYAAABy6+R8AAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYwP2SycQWHTA4vcAAPK7b8HUKAgDgGiD4c93/+8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ptTmvtbYlu6T8w+0dbq3nr8R9sfD5w0PFl5SvNUyWna6YLTk2fyz4ydlZ19fi753GDborZ752PO32oPb++6EHTh0kX/i+c7vDvOXPK4dPKy2+UTV7hXmq86X23qdOo8/pPTT8e7nLuarrlca7nuer21e2b36RueN87d9L158Rb/1tWeOT3dvfN6b/fF9/XfFt1+cif9zsu72Xcn7q28T7xf9EDtQdlD3YfVP1v+3Njv3H9qwHeg89HcR/cGhYPP/pH1jw9DBY+Zj8uGDYbrnjg+OTniP3L96fynQ89kzyaeF/6i/suuFxYvfvjV69fO0ZjRoZfyl5O/bXyl/erA6xmv28bCxh6+yXgzMV70VvvtwXfcdx3vo98PT+R8IH8o/2j5sfVT0Kf7kxmTk/8EA5jz/GMzLdsAAAAgY0hSTQAAeiUAAICDAAD5/wAAgOkAAHUwAADqYAAAOpgAABdvkl/FRgAAAaJJREFUeNpkkk1rE1EUhp9zJ21NpxJocxctiAQXXYkQQQsG/EJo0a0LyW8ws9KFP0E3HQv6D9x1KbixdTGIlrZuzUJLCM2iEykRJ23S5B4XsZOpPXAW957zXM773iNkQquUgAKAAlpISx3vDXunB8kA5Zbb3hr6l032HtDc7/rQzlWWJt6yk0Japfxr4udWN3dRAMP5UI5bzi5cu5F/ya7RKqWW204BG66c6bart0ePX1iQRjP6krygZIDCv5FMce0+cELx9WMAimuPUCPY8B6AmfYXcy5PwWhGW/vpR2AKdB8bPkScIswRBxupB84Dk3EIgDh4j+CjHIImxLV18sM/Z3rOibard1A5wcg8Kn1s+IAjb2bsiAPjlNNvwYbLINOgfQ5q6yCTqBzjv7qbMgoYl6PTTerSY+Di4ANqBrSDz0z1D2nXPtHr+STPNgFcN6mLm6EjAEfPKTea0Y74V5yHmEm8/6d23aRu7M1KOf4afTMAjWa0e6lUua7JDzNEtceATGoWWHx3a7wu359EzF+tjHfPjYS6kQed2UD3AESEvwMAaQGsQMrwcN0AAAAASUVORK5CYII=';
  926.  
  927. var NEW_ICON_GREEN = 'data:image/png;base64,iVB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SNW5cNClGD+Fu41dOZlKDMLmELrOUIhjeN48HpngTnMbDeWjIeHnsvbz98YXqxguumuazdDOs0HjAETRKNjuFyzTE9PAOO//Xm27lvN4b1c8htkAXC2jrKHN5gVSRcRW0SCIpIj/f2ZAkhTkykiOYu+SLa8e6qkeRNXALh5nEc/phARnaSJSSUnO5G+B8tnIkr6rjMTSqfMZQXZ9vE1xGKJpPe4DDjXAYkEjAwmzwwDLIv0NZlE1MYAjsQoAOL8C5rY2AxPlIjwP/wcACKn3tWfrwJ4AAAAAElFTkSuQmCC';
  930. var NEW_ICON_PINK = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABUklEQVQ4jY3TsUuWURQG8F8WEvFNDREfIg5RURAOIeL0DhJBS0tDY9BQQ0Oj29kiIvoDhBpFQRTUD1GKi0sRtEs0SEQ0RBQIRcVXw3eF6+vrWwcunPvc53nuPffcS0uEmA0x38Y5cohwGjOYxBBe4VGI3j8NQlzHYhaW0cfNEAslWCfBw4yvYhkv8hjCgxD7yMdquw/jbJ4+xq2cz+AKdrJRv9EAv/EDx3Ft75QhtrHdcFpHy0mS/lSqcVzAFM7he6XaTNLXJoOmS+ziOc4XcB893A3xodUgm5zAHdzHSLH0DhdD/GwsoSjlV5Je5nK+YQUTOInXSXq7x6134RQuo4unGf6Me7iKMxgrNfUuXMJazr8U+DA6Of/UZrCF9xjFM3zELpZwOptulIKmLlQGNXdqS7u4EWK9BA9cYpJ2KtWcwaMazcInuB3iTZ3fGv/znf8CBMxX4hrPUbUAAAAASUVORK5CYII=';
  931.  
  932. //global settings end
  933. if (window.opera && !window.console)
  934. {
  935. window.console = {};
  936.  
  937. function fn()
  938. {
  939. opera.postError(arguments);
  940. };
  941. ['log', 'debug', 'info', 'warn', 'error', 'assert', 'dir', 'dirxml', 'group', 'groupEnd', 'time', 'timeEnd', 'count', 'trace', 'profile', 'profileEnd'].forEach(function (name)
  942. {
  943. window.console[name] = fn;
  944. });
  945. }
  946.  
  947. //displays colored text in message box
  948. function sendMessage(text, color)
  949. {
  950. var msgDiv = document.createElement('div');
  951. msgDiv.style.color = color;
  952. msgDiv.innerHTML = text;
  953. messageBox.appendChild(msgDiv);
  954. setTimeout(function(){messageBox.removeChild(msgDiv)}, 3000);
  955. }
  956.  
  957. function linkify(totalourls)
  958. { // code from http://userscripts.org/scripts/review/2254 Linkify ting
  959. var ikkeTilladteTags;
  960. var allLinksRegex = "(?:http:\/\/.+?\\?)?(?:https?:\/\/)?"
  961. + "[0-9A-Za-z]+(?:[\\.-][0-9A-Za-z]+)*\\.[A-Za-z]+/" //instead of totalourls
  962. + "[\\w\\–\\-\\.+$!*\\/()\\[\\]\',~%?:@#&=\\\\\\—;…×Ã\\_\\u0080-\\u03FF’‘" + (Allow_spaces_in_DL_links ? "\\u0020" : "") + "]*";
  963. allLinksRegex = new RegExp(allLinksRegex, "g");
  964. var regexy = "^(?:http:\/\/.+?\\?)?(?:https?:\/\/)?(?:www\\.)?(?:" + totalourls + ")";
  965.  
  966. if (Do_not_linkify_DL_links)
  967. ikkeTilladteTags = ['a', 'head', 'script', 'style', 'title', 'option', 'iframe', 'textarea', 'span']; //tags, hvor det der stAΞ’Β¥r inden i ikke skal vAΞ’Β¦re links
  968. else
  969. ikkeTilladteTags = ['a', 'head', 'script', 'style', 'title', 'option', 'iframe', 'textarea']; //tags, hvor det der stAΞ’Β¥r inden i ikke skal vAΞ’Β¦re links
  970.  
  971. var regex = new RegExp(regexy);
  972. var textNode, muligtLink;
  973.  
  974. var path = "//text()[not(parent::" + ikkeTilladteTags.join(" or parent::") + ") and contains(.,'/')]";
  975. var textNodes = document.evaluate(path, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  976.  
  977. var i = textNodes.snapshotLength;
  978. while (i--)
  979. {
  980. textNode = textNodes.snapshotItem(i);
  981.  
  982. muligtLink = textNode.nodeValue; //all links on page
  983.  
  984. var myArray = null;
  985. var span = null;
  986. var lastLastIndex = 0;
  987. allLinksRegex.lastIndex = 0;
  988. if (/^https?:\/\/~[\w\s\~]*\//.test(muligtLink))
  989. {
  990. if (textNode.parentNode.className == "adead_link") continue;
  991. var censoredLink = muligtLink;
  992. var span = document.createElement('span');
  993. span.className = "adead_link";
  994. $(span).attr('warlc_error', "Cause of error: <b>Censored link.</b>");
  995. $(span).html(censoredLink);
  996. span.addEventListener("mouseover", displayTooltipError, false);
  997. cLinksTotal++; cLinksProcessed++; cLinksDead++;
  998. textNode.parentNode.replaceChild(span, textNode);
  999. continue;
  1000. alert(censoredLink);
  1001. }
  1002. while (myArray = allLinksRegex.exec(muligtLink)) //find all links
  1003. {
  1004. if (!regex.test(myArray[0])) //this link is not recognized
  1005. {
  1006.  
  1007. continue;
  1008. }
  1009. if (!span)
  1010. span = document.createElement('span');
  1011.  
  1012. var link = myArray[0];
  1013. span.appendChild(document.createTextNode(muligtLink.substring(lastLastIndex, myArray.index))); //inds?t det der kommer for dette hit
  1014.  
  1015. var $a = $("<a>" + link + "</a>")
  1016. if (!link.match(/https?:\/\//))
  1017. {
  1018. link = 'http://' + link;
  1019. }
  1020.  
  1021. $a.attr("href", link.replace(/\[\/hide:\w+\]/,""))
  1022. .addClass("processing_link")
  1023. .appendTo(span);
  1024. lastLastIndex = allLinksRegex.lastIndex;
  1025. }
  1026. if (span)
  1027. {
  1028. span.appendChild(document.createTextNode(muligtLink.substring(lastLastIndex))); //ins?t det der kommer efter sidste hit
  1029. textNode.parentNode.replaceChild(span, textNode);
  1030. }
  1031. }
  1032. }
  1033.  
  1034. function add_WARLC_style()
  1035. {
  1036. if (!(document.getElementsByTagName('WARLC')[0]))
  1037. {
  1038. var meta_not_to_add_more_style = document.createElement("WARLC");
  1039. meta_not_to_add_more_style.setAttribute('content', 'war_links_checker');
  1040. meta_not_to_add_more_style.setAttribute('name', 'description');
  1041. document.getElementsByTagName('head')[0].appendChild(meta_not_to_add_more_style);
  1042. alive_link_png = "";
  1043. adead_link_png = "";
  1044. unava_link_png = "";
  1045. prem_link_png = "";
  1046. switch(Icon_set)
  1047. {
  1048. //no icons
  1049. case 0: break;
  1050. // cat paws
  1051. case 1: alive_link_png = PAW_ICON_GREEN;
  1052. adead_link_png = PAW_ICON_RED;
  1053. unava_link_png = PAW_ICON_YELLOW;
  1054. prem_link_png = PAW_ICON_PINK;
  1055. break;
  1056. // classic RSLC look
  1057. case 2: alive_link_png = RSLC_ICON_GREEN;
  1058. adead_link_png = RSLC_ICON_RED;
  1059. unava_link_png = RSLC_ICON_YELLOW;
  1060. prem_link_png = RSLC_ICON_PINK;
  1061. break;
  1062. // New Icons
  1063. case 3: alive_link_png = NEW_ICON_GREEN;
  1064. adead_link_png = NEW_ICON_RED;
  1065. unava_link_png = NEW_ICON_YELLOW;
  1066. prem_link_png = NEW_ICON_PINK;
  1067. break;
  1068. // cat paws
  1069. default:alive_link_png = PAW_ICON_GREEN;
  1070. adead_link_png = PAW_ICON_RED;
  1071. unava_link_png = PAW_ICON_YELLOW;
  1072. prem_link_png = PAW_ICON_PINK;
  1073. break;
  1074. }
  1075. processing_link_gif = 'data:image/gif;base64,' + // or temporary anavailable
  1076. 'R0lGODlhCgAKAJEDAMzMzP9mZv8AAP///yH/C05FVFNDQVBFMi4wAwEAAAAh+QQFAAADACwAAAAACgAKAAACF5wncgaAGgJzJ647cWua4sOBFEd62VEAACH5BAUAAAMALAEAAAAIAAMAAAIKnBM2IoMDAFMQFAAh+QQFAAADACwAAAAABgAGAAACDJwHMBGofKIRItJYAAAh+QQFAAADACwAAAEAAwAIAAACChxgOBPBvpYQYxYAIfkEBQAAAwAsAAAEAAYABgAAAgoEhmPJHOGgEGwWACH5BAUAAAMALAEABwAIAAMAAAIKBIYjYhOhRHqpAAAh+QQFAAADACwEAAQABgAGAAACDJwncqi7EQYAA0p6CgAh+QQJAAADACwHAAEAAwAIAAACCpRmoxoxvQAYchQAOw%3D%3D';
  1077.  
  1078. var dead_color_css, live_color_css, unava_color_css, prem_color_css, black_background_css;
  1079.  
  1080. if (Color_DL_links)
  1081. {
  1082. dead_color_css = 'color:' + Dead_links_color + ' !important;';
  1083. live_color_css = 'color:' + Live_links_color + ' !important;';
  1084. unava_color_css = 'color:' + Temp_unavailable_links_color + ' !important;';
  1085. container_color_css = 'color:' + Container_links_color + ' !important;';
  1086. prem_color_css = 'color:' + Premium_links_color + ' !important;';
  1087. }
  1088. else
  1089. {
  1090. dead_color_css = live_color_css = unava_color_css = container_color_css = prem_color_css = '';
  1091. }
  1092.  
  1093. if (Show_black_background_in_DL_links)
  1094. {
  1095. black_background_css = 'background-color: black !important;';
  1096. }
  1097. else
  1098. {
  1099. black_background_css = '';
  1100. }
  1101.  
  1102. if (Show_line_through_in_dead_links)
  1103. {
  1104. line_through_css = 'text-decoration: line-through !important;';
  1105. }
  1106. else
  1107. {
  1108. line_through_css = '';
  1109. }
  1110.  
  1111. GM_addStyle(".alive_link {background:transparent url(" + alive_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;" + live_color_css + black_background_css + "}");
  1112. 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 + "}");
  1113. GM_addStyle(".unava_link {background:transparent url(" + unava_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;" + unava_color_css + black_background_css + "}");
  1114. GM_addStyle(".processing_link {background:transparent url(" + processing_link_gif + ") no-repeat scroll 100% 50%;padding-right:15px;" + container_color_css + black_background_css + "}");
  1115. GM_addStyle(".container_link {background:transparent url(" + processing_link_gif + ") no-repeat scroll 100% 50%;padding-right:15px;" + container_color_css + black_background_css + "}");
  1116. GM_addStyle(".container_list {font-size:90%; list-style-type:square; padding: 0px 5% 0px; margin: 0px}");
  1117. GM_addStyle(".prem_link {background:transparent url(" + prem_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;" + prem_color_css + black_background_css + "}");
  1118. }
  1119. }
  1120.  
  1121. var warlcTooltip = null;
  1122. var mouseoverLink = null; //link href with mouse cursor over it
  1123.  
  1124. var lastX = 0;
  1125. var lastY = 0;
  1126.  
  1127. $(document).ready(initTooltip);
  1128. //inits tooltip
  1129. function initTooltip()
  1130. { warlcTooltip = document.createElement("div");
  1131. warlcTooltip.setAttribute("style", "background: #EAEAEA; box-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);padding: 6px 6px 6px 6px; border-radius:2px; border:2px solid #6699CC; color:#000000;font-family:Verdana,sans-serif;font-size:11px;position:absolute;z-index:1000; max-width: " + TOOLTIP_MAXWIDTH + "px;");
  1132. warlcTooltip.style.visibility = "hidden";
  1133. document.body.appendChild(warlcTooltip);
  1134. }
  1135.  
  1136. //"mousemove" event handler for all links
  1137. function moveTooltip(event)
  1138. {
  1139. if ((Math.abs(lastX - event.clientX) + Math.abs(lastY - event.clientY)) < 6)
  1140. { //no need to reflow if the cursor moved just a little
  1141. return;
  1142. }
  1143. else
  1144. {
  1145. lastX = event.clientX;
  1146. lastY = event.clientY;
  1147. }
  1148.  
  1149. posX = event.clientX + window.pageXOffset + 10;
  1150. posY = event.clientY + window.pageYOffset;
  1151. var ttHeight = warlcTooltip.offsetHeight;
  1152. var ttFreeSpace = window.innerHeight - event.clientY;
  1153. if (ttHeight > ttFreeSpace)
  1154. { //prevents tooltip from getting out of the window
  1155. posY -= (ttHeight - (ttFreeSpace)) + 10;
  1156. }
  1157. else
  1158. {
  1159. posY += 7;
  1160. }
  1161. warlcTooltip.style.top = posY + "px";
  1162. warlcTooltip.style.left = posX + "px";
  1163. }
  1164.  
  1165. //"mouseout" event handler for all links
  1166. function hideTooltip(){
  1167. warlcTooltip.style.visibility = "hidden";
  1168. mouseoverLink = null;
  1169. }
  1170.  
  1171.  
  1172. //"mouseover" event handler for dead links
  1173. //displays tooltip error message on dead links
  1174. function displayTooltipError()
  1175. {
  1176. mouseoverLink = this.href;
  1177. this.addEventListener("mouseout", hideTooltip);
  1178. this.addEventListener("mousemove", function(event) { moveTooltip(event); });
  1179. warlcTooltip.innerHTML = '<b>LOADING...</b>';
  1180. warlcTooltip.style.minWidth = 0;
  1181. warlcTooltip.style.visibility = "visible";
  1182. if (this.warlc_error) //an error message is already known and stored in warlc_error attribute
  1183. {
  1184. warlcTooltip.innerHTML = this.warlc_error;
  1185. }
  1186. else
  1187. {
  1188. loadErrorInfo(this);
  1189. }
  1190. function loadErrorInfo(link)
  1191. {
  1192. var href = link.href;
  1193. href = href.replace(/quickshare\.cz\/.+/, "quickshare.cz/chyba");
  1194. GM_xmlhttpRequest({
  1195. method: 'GET',
  1196. url: href.replace(Ref_anonymize_service, ""),
  1197. headers: {
  1198. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1199. 'Accept': 'text/xml',
  1200. 'Referer': ""
  1201. },
  1202. onload: function(result) {
  1203. var res = result.responseText;
  1204. //TODO: errorRegexs -
  1205. var errorRegexs = [ //generic error messages follow
  1206. /(empty directory)/i,
  1207. /(soubor nebyl nalezen)/i,
  1208. /((?:file|page|link|folder)(?:is|not|does|has been|was| ){1,}(?:found|available|blocked|exists?|deleted|removed))/i,
  1209. //server specific error messages follow
  1210. /msg error" style="cursor: default">(.+?)<\/div>/, //sendspace
  1211. /color:red;font\-weight:bold;border\-style:dashed;font-size:12px;border\-width:2px;><tr><td align=center>(.+?)<\/td>/, //fastshare
  1212. /(Takový soubor neexistuje. Je možné, že byl již smazán.)/, //quickshare
  1213. /file_info file_info_deleted">\s*<h1>(.+?)<\/h1>/, //filepost
  1214. /<br \/>\s*<p style="color:#000">(.+?)<\/p>\s*<\/center>/, //letitbit
  1215. /(?:error_div">|<\/h1><p>)<strong>(.+?)<\/strong>/, //share-rapid,quickshare
  1216. /class="red">(.+?)<(?:span|br)>/, //czshare, megashares
  1217. /class="wp640">\s*<h1 class="h1">(.+?)<\/h1>/, //uloz.to
  1218. /not-found">\s*<p>(.+?)<\/p>/, //bayfiles
  1219. /(Your file could not be found. Please check the download link.)/, //stahnu.to
  1220. /error_msg">\s*(<h3>.+?<\/h3><ul>(.+?)<\/ul>)/, //edisk
  1221. /id="obsah">\s*<h2>(.+?)<\/h2>/, //euroshare
  1222. /error">\s*(?:<[bp]>)?\s*(.+?)<\/[bp]>/, //filesmonster, shragle, gigapeta
  1223. ///center aC">\s*<h1>(.+?)<br \/>/, //uploaded.to
  1224. /icon_err">\s*<h1>(.+?)<\/h1>/, //filejungle
  1225. /Code: ER_NFF_\d+<\/h2>\s*(.+?)\s*<\/div>/, //netload
  1226. /(File has been removed due to Copyright Claim)/, //filerio
  1227. ];
  1228. var errorIdx = errorRegexs.length;
  1229. var error = "Cause of error: <b>unknown</b>";
  1230. var errorCandidate = "";
  1231. while(errorIdx--)
  1232. {
  1233. var errorCandidate = res.match(errorRegexs[errorIdx]);
  1234. if (errorCandidate != null)
  1235. {
  1236. error = "Cause of error: <b>" + errorCandidate[1].replace(/&nbsp;/g," ") + "</b>";
  1237. break;
  1238. }
  1239. }
  1240. //link attributes
  1241. link.warlc_error = error;
  1242. if (mouseoverLink == link.href) //mouse cursor is still over the link
  1243. {
  1244. warlcTooltip.innerHTML = error;
  1245. }
  1246. }
  1247. });
  1248. }
  1249. }
  1250.  
  1251. //"mouseover" event handler for alive links
  1252. //displays tooltip info (file size, file name,...) on alive links
  1253. function displayTooltipInfo()
  1254. {
  1255. mouseoverLink = this.href;
  1256. //exclude direct download filehostings
  1257. 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)/))
  1258. {
  1259. return;
  1260. }
  1261. this.addEventListener("mouseout", hideTooltip);
  1262. this.addEventListener("mousemove", function(event) { moveTooltip(event); });
  1263. warlcTooltip.innerHTML = '<b>LOADING...</b>';
  1264. warlcTooltip.style.minWidth = 0;
  1265. warlcTooltip.style.visibility = "visible";
  1266. if (this.warlc_tooltipcache) //file size is already known and stored in warlc_filename and warlc_filesize attributes
  1267. {
  1268. warlcTooltip.innerHTML = this.warlc_tooltipcache;
  1269. }
  1270. else
  1271. {
  1272. loadInfo(this);
  1273. }
  1274. function loadInfo(link)
  1275. {
  1276. var href = link.href;
  1277. GM_xmlhttpRequest({
  1278. method: 'GET',
  1279. url: href.replace(Ref_anonymize_service, ""),
  1280. headers: {
  1281. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1282. 'Accept': 'text/xml',
  1283. 'Referer': ""
  1284. },
  1285. onload: function(result) {
  1286. var res = result.responseText;
  1287. var nameRegexs = [ /Filename: <b class="f_arial f_14px">(.+?)<\/b>/, //oron
  1288. /(?:finfo|file[-_]?name)">\s*(.+?)<\/?(?:h1|a|div|span style|td)/, //hellshare, netload, badongo, 4fastfile
  1289. /fl" title="(.+?)">/, //edisk
  1290. /<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
  1291. /<h3>Stahujete soubor: <\/h3>\s*<div class="textbox">(.+?)<\/div>/, //webshare
  1292. /<h3><b><span style=color:black;>(.+?)<\/b><\/h3><br>/, //fastshare
  1293. /title="download (.+?)">/, //sendspace
  1294. /Stáhnout soubor: (.+?)<\/h1>/, //quickshare
  1295. /fz24">Download:\s*<strong>(.+?)<\/strong>/, //crocko
  1296. // /'file\-icon\d+ \w+'>(?:<\/span><span>)?(.+?)<\/span>/, //hitfile, turbobit
  1297. /d0FileName = "(.+?)";/, //letitbit
  1298. /file(?:_name|-info)" title="">\w+: <span>(.+?)<\/span>/, //vip-file, shareflare
  1299. /recent-comments"><h2>(.+) &nbsp;/, //xdisk
  1300. /fname" value="(.+?)">/, //syfiles, grupload,
  1301. /download\-header">\s*<h2>File:<\/h2>\s*<p title="(.+?)">/, //bayfiles
  1302. /description">\s*<p><b>Soubor: (.+?)<\/b>/, //bezvadata
  1303. /Complete name : (.+?)<br \/>/, //bezvadata
  1304. /itemprop="name">(.+?)<\/span>/, //bezvadata
  1305. ];
  1306. var nameIdx = nameRegexs.length;
  1307. // [sizeRegexs]
  1308. // / \ \?
  1309. // prefix (size) postfix
  1310. // / \
  1311. // val quant
  1312. var quantRegex = '(?:M|G|K)?i?(?:B)(?:[y|i]te?s?)?';
  1313. var valRegex = '\\d+(?:[\\., ]\\d+){0,2}'; // 111([., ]222)?([., ]333)?
  1314. var uniSizeRegex = valRegex + '(?:\\s*|&nbsp;)' + quantRegex;
  1315. var preSizeRegex = '(?::|\\(|>|>, | - )';
  1316. var postSizeRegex = '(?:\\))?';
  1317. var sizeRegexs = [ preSizeRegex + "\\s*(" + uniSizeRegex + ")\\s*" + postSizeRegex,
  1318. 'FileSize_master">(.+?)<\/strong>', //hellshare
  1319. ];
  1320. var sizeIdx = sizeRegexs.length;
  1321. //
  1322. //
  1323. var tooltip = "File Name: <b>";
  1324. var fileName = "unknown";
  1325. var nameCandidate = "";
  1326. while(nameIdx--)
  1327. {
  1328. var nameCandidate = res.match(nameRegexs[nameIdx]);
  1329. if (nameCandidate != null)
  1330. {
  1331. fileName = nameCandidate[1].replace(/&nbsp;/g," ");
  1332. break;
  1333. }
  1334. }
  1335. tooltip += fileName + "</b><br>File Size: <b>";
  1336. var fileSize = "unknown";
  1337. var sizeCandidate = "";
  1338. while(sizeIdx--)
  1339. {
  1340. sizeCandidate = res.match(new RegExp(sizeRegexs[sizeIdx], "i"));
  1341. if (sizeCandidate != null)
  1342. {
  1343. fileSize = sizeCandidate[1].replace(/&nbsp;/g," ");
  1344. if (/^\d+$/.test(fileSize) && fileSize >= 1024) //assume bytes
  1345. {
  1346. if(fileSize > (1<<30)) fileSize = Math.round(10 * fileSize / (1<<30)) / 10 + ' GB';
  1347. else if(fileSize > (1<<20)) fileSize = Math.round(fileSize / (1<<20)) + ' MB';
  1348. else fileSize = Math.round(fileSize / 1024) + ' KB';
  1349. }
  1350. break;
  1351. }
  1352. }
  1353. tooltip += fileSize + "</b>";
  1354. // PROTOTYPE
  1355. // video thumbnails
  1356. if (href.match('hellshare'))
  1357. {
  1358. var thumbs;
  1359. thumbs = res.match(/http:\/\/static\d+\.helldata\.com\/thumbs(?:\/\d+){1,2}\/\d{1,2}"/g);
  1360. if (thumbs)
  1361. {
  1362. tooltip += '<br>';
  1363. var j = Math.min(thumbs.length, 9);
  1364. for (var i = 0; i < j; i++)
  1365. {
  1366. tooltip += '<img src="' + thumbs[i].replace('"',"") + '" width="' + TOOLTIP_THUMBWIDTH + 'px">';
  1367. }
  1368. warlcTooltip.style.minWidth = TOOLTIP_MAXWIDTH;
  1369. }
  1370. }
  1371. if (href.match('czshare'))
  1372. {
  1373. var thumbs;
  1374. thumbs = res.match(/src="http:\/\/www(\d+)\.czshare\.com\/images_velke\/\d+\.(\d+)\.jpeg/);
  1375. if (thumbs)
  1376. {
  1377. var thumbsServer = thumbs[1];
  1378. var thumbsId = thumbs[2];
  1379. tooltip += '<br>';
  1380. for (var i = 1; i < 9; i++)
  1381. {
  1382. tooltip += '<img src="http://www' + thumbsServer + '.czshare.com/images_velke/' + i + '.' + thumbsId + '.jpeg" width="' + TOOLTIP_THUMBWIDTH + 'px">';
  1383. }
  1384. warlcTooltip.style.minWidth = TOOLTIP_MAXWIDTH;
  1385. }
  1386. }
  1387. if (href.match('bezvadata'))
  1388. {
  1389. var thumbs;
  1390. thumbs = res.match(/http:\/\/nahledy\.bezvadata\.cz\/nahledy\/\d+\/\d+\/\d+_\d+_\d+x\d+_\w.jpg/g);
  1391. if (thumbs)
  1392. {
  1393. tooltip += '<br>';
  1394. var j = Math.min(thumbs.length, 9);
  1395. for (var i = 0; i < j; i++)
  1396. {
  1397. tooltip += '<img src="' + thumbs[i] + '" width="' + TOOLTIP_THUMBWIDTH + 'px">';
  1398. }
  1399. warlcTooltip.style.minWidth = TOOLTIP_MAXWIDTH;
  1400. }
  1401. }
  1402. link.warlc_tooltipcache = tooltip;
  1403. if (mouseoverLink == link.href) //mouse cursor is still over the link
  1404. {
  1405. warlcTooltip.innerHTML = tooltip;
  1406. }
  1407. }
  1408. });
  1409. }
  1410. }
  1411.  
  1412. function setVariables()
  1413. {
  1414. if (firstRun)
  1415. {
  1416. GM_log('First run, applying default settings...');
  1417. GM_setValue("Icon_set",1);
  1418. GM_setValue("Display_tooltip_info",true);
  1419. GM_setValue("Show_black_background_in_DL_links",false);
  1420. GM_setValue("Show_line_through_in_dead_links",false);
  1421. GM_setValue("Display_full_links_in_link_containers",false);
  1422. GM_setValue("Allow_spaces_in_DL_links",false);
  1423. GM_setValue("Autocheck",true);
  1424. GM_setValue("Enable_Anonymizer",false);
  1425. GM_setValue("Do_not_linkify_DL_links",false);
  1426. GM_setValue("Show_progress_stats",true);
  1427. GM_setValue("Keyboard_functions",true);
  1428. GM_setValue("Obsolete_file_hosts",false);
  1429. GM_setValue("Color_DL_links",true);
  1430. GM_setValue("Live_links_color","Green");
  1431. GM_setValue("Dead_links_color","#FF3300");
  1432. GM_setValue("Temp_unavailable_links_color","#F7EF09");
  1433. GM_setValue("Container_links_color","DarkKhaki");
  1434. GM_setValue("Premium_links_color","DeepPink");
  1435. GM_setValue("Ref_anonymize_service","http://hiderefer.com/?");
  1436. GM_setValue("Custom_rules",false);
  1437. GM_setValue("Custom_rules_text","");
  1438. GM_setValue("First_run", false);
  1439. }
  1440. //hidden settings
  1441. GM_setValue("Progress_box_pos_bottom", Progress_box_pos_bottom = GM_getValue("Progress_box_pos_bottom", 20));
  1442. GM_setValue("Progress_box_pos_right", Progress_box_pos_right = GM_getValue("Progress_box_pos_right", 10));
  1443. GM_setValue("Progress_box_opacity", Progress_box_opacity = GM_getValue("Progress_box_opacity", 85));
  1444. GM_setValue("Progress_box_background_color", Progress_box_background_color = GM_getValue("Progress_box_background_color", 'DimGray'));
  1445. GM_setValue("Progress_box_item_color", Progress_box_item_color = GM_getValue("Progress_box_item_color", 'DimGray'));
  1446. GM_setValue("Progress_box_refresh_rate", Progress_box_refresh_rate = GM_getValue("Progress_box_refresh_rate", 2000));
  1447. GM_setValue("Debug_mode", DEBUG_MODE = GM_getValue("Debug_mode", false));
  1448. //hidden settings end
  1449.  
  1450. Icon_set = GM_getValue("Icon_set", 1); //0 - no icons, 1 - cat paws, 2 - old RSLC style, 3 - New Icons,
  1451. Display_tooltip_info = GM_getValue("Display_tooltip_info", true);
  1452. Show_black_background_in_DL_links = GM_getValue("Show_black_background_in_DL_links", false);
  1453. Show_line_through_in_dead_links = GM_getValue("Show_line_through_in_dead_links", false);
  1454. Display_full_links_in_link_containers = GM_getValue("Display_full_links_in_link_containers", false);
  1455. Allow_spaces_in_DL_links = GM_getValue("Allow_spaces_in_DL_links", false);
  1456. Autocheck = GM_getValue("Autocheck", true);
  1457. Enable_Anonymizer = GM_getValue("Enable_Anonymizer", false);
  1458. Do_not_linkify_DL_links = GM_getValue("Do_not_linkify_DL_links", false);
  1459. Show_progress_stats = GM_getValue("Show_progress_stats", true);
  1460. Keyboard_functions = GM_getValue("Keyboard_functions", true);
  1461. Obsolete_file_hosts = GM_getValue("Obsolete_file_hosts", false);
  1462. Color_DL_links = GM_getValue("Color_DL_links", true);
  1463. Live_links_color = GM_getValue("Live_links_color", "Green");
  1464. Dead_links_color = GM_getValue("Dead_links_color", "#FF3300");
  1465. Temp_unavailable_links_color = GM_getValue("Temp_unavailable_links_color", "#F7EF09");
  1466. Container_links_color = GM_getValue("Container_links_color", "DarkKhaki");
  1467. Premium_links_color = GM_getValue("Premium_links_color", "DeepPink");
  1468. Ref_anonymize_service = GM_getValue("Ref_anonymize_service", "http://hiderefer.com/?");
  1469. Custom_rules = GM_getValue("Custom_rules", false);
  1470. Custom_rules_text = GM_getValue("Custom_rules_text", false);
  1471. }
  1472.  
  1473.  
  1474. // Delinkifies the links
  1475. // params:
  1476. // links -> list of links or link components (note they should be sufficiently unique to identify the link on page,
  1477. // e.g. 'uloz.to/xs68skxl8')
  1478. function delinkifySnapshot(snapshot)
  1479. {
  1480. var n = snapshot.snapshotLength;
  1481.  
  1482. while (n--)
  1483. {
  1484. thisLink = snapshot.snapshotItem(n);
  1485.  
  1486. var spanElm = document.createElement("span");
  1487. spanElm.className = thisLink.className;
  1488. spanElm.innerHTML = thisLink.innerHTML;
  1489.  
  1490. if (Display_tooltip_info)
  1491. {
  1492. spanElm.href = thisLink.href;
  1493. switch (thisLink.className){
  1494. case "alive_link": spanElm.addEventListener("mouseover", displayTooltipInfo, false); break
  1495. case "adead_link": spanElm.addEventListener("mouseover", displayTooltipError, false); break;
  1496. case "unava_link": //reserved
  1497. default:
  1498. }
  1499. }
  1500. thisLink.parentNode.replaceChild(spanElm, thisLink);
  1501. }
  1502. }
  1503.  
  1504. function processContainers()
  1505. {
  1506. var redirectorTypes = { "HTTP_302": 0,
  1507. "INNER_LINK": 1,
  1508. "THELOO_KATT_IT": 2,
  1509. "CING_BE": 3,
  1510. "ADF_LY": 4};
  1511. var cMultiloadTotal = 0;
  1512. var cMultiloadProcessed = 0;
  1513.  
  1514. var cMirrorcreatorComTotal = 0;
  1515. var cMirrorcreatorComProcessed = 0;
  1516.  
  1517. var hostRestrictionRegex = "";
  1518. var multiloadComRestriction = "";
  1519. var multiloadComRestrictionRegex;
  1520.  
  1521. //
  1522. //HANDLING REDIRECTORS START
  1523. //
  1524.  
  1525. var redirectors = new Array();
  1526. initRedirectors();
  1527.  
  1528. var redirectorsCount = redirectors.length;
  1529.  
  1530. if (redirectorsCount > 0)
  1531. {
  1532. var allRedirectorsRegex = "";
  1533.  
  1534. //linkify redirector links
  1535. for(var redirIdx = 0; redirIdx < redirectorsCount; redirIdx++)
  1536. {
  1537. allRedirectorsRegex += redirectors[redirIdx].linkRegex + "|";
  1538. }
  1539. allRedirectorsRegex = allRedirectorsRegex.replace(/\|$/, "");
  1540. linkify(allRedirectorsRegex);
  1541. //
  1542. //process redirector links
  1543. for(var redirIdx = 0; redirIdx < redirectorsCount; redirIdx++)
  1544. {
  1545. var redirectorsSnapshot = document.evaluate(redirectors[redirIdx].xpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  1546. redirectors[redirIdx].cTotal = redirectorsSnapshot.snapshotLength;
  1547.  
  1548. cLinksTotal += redirectors[redirIdx].cTotal;
  1549. var linkIdx = redirectors[redirIdx].cTotal;
  1550.  
  1551. while(linkIdx--)
  1552. {
  1553. switch(redirectors[redirIdx].type)
  1554. {
  1555. case redirectorTypes.HTTP_302: processRedirectorLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1556. case redirectorTypes.INNER_LINK: processRedirectorLinkEx(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1557. case redirectorTypes.THELOO_KATT_IT: processThelooKattItLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1558. case redirectorTypes.CING_BE: processCingBeLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1559. case redirectorTypes.ADF_LY: processAdfLyLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1560. default:
  1561. }
  1562. }
  1563. }
  1564. //
  1565. }
  1566.  
  1567. //HTTP_302
  1568. function processRedirectorLink(link, redirectorId)
  1569. {
  1570. link.className = 'container_link';
  1571.  
  1572. GM_xmlhttpRequest({
  1573. method: 'HEAD',
  1574. url: link.href,
  1575. headers: {
  1576. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1577. 'Accept': 'text/xml',
  1578. 'Referer': ""
  1579. },
  1580. onload: function(result) {
  1581. if (result.finalUrl.replace("https", "http") == link.href) // service hasn't redirected anywhere
  1582. {
  1583. processRedirectorLink(link, redirectorId);
  1584. }
  1585. else
  1586. {
  1587. redirectors[redirectorId].cProcessed++;
  1588. link.href = result.finalUrl;
  1589. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  1590. checkLinks('container_link');
  1591. }
  1592. },
  1593. onerror: function(result) { //probably caused by unresponsive filehosting
  1594. redirectors[redirectorId].cProcessed++;
  1595. link.className = 'unava_link';
  1596. cLinksProcessed++;
  1597. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  1598. checkLinks('container_link');
  1599. }
  1600. });
  1601. }
  1602. //INNER_LINK
  1603. function processRedirectorLinkEx(link, redirectorId)
  1604. {
  1605. link.className = 'container_link';
  1606. GM_xmlhttpRequest({
  1607. method: 'GET',
  1608. url: link.href,
  1609. headers: {
  1610. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1611. 'Accept': 'text/xml',
  1612. 'Referer': ""
  1613. },
  1614. onload: function(result) {
  1615. link.href = result.responseText.match(redirectors[redirectorId].innerLinkRegex)[1];
  1616. redirectors[redirectorId].cProcessed++;
  1617. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  1618. checkLinks('container_link');
  1619. }
  1620. });
  1621. }
  1622. //theloo.katt.it (wrapped safelinking.net)
  1623. function processThelooKattItLink(link, redirectorId)
  1624. {
  1625. link.className = 'container_link';
  1626. GM_xmlhttpRequest({
  1627. method: 'GET',
  1628. url: link.href,
  1629. headers: {
  1630. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1631. 'Accept': 'text/xml',
  1632. 'Referer': ""
  1633. },
  1634. onload: function(result) {
  1635. link.href = result.responseText.match(redirectors[redirectorId].innerLinkRegex)[1];
  1636. redirectors[redirectorId].cProcessed++;
  1637. //the inner links are safelinking.net links, so lets proceed with it
  1638. if (GM_getValue("Check_safelinking_dot_net_links", false))
  1639. {
  1640. processRedirectorLink(link, 0);
  1641. }
  1642. }
  1643. });
  1644. }
  1645. //adf.ly (adf.ly/go innerLink, locking mechanism)
  1646. function processAdfLyLink(link, redirectorId)
  1647. {
  1648. link.className = 'container_link';
  1649. GM_xmlhttpRequest({
  1650. method: 'GET',
  1651. url: link.href,
  1652. headers: {
  1653. 'User-agent': 'Mozilla/4.0',
  1654. 'Accept': 'text/xml',
  1655. 'Referer': ""
  1656. },
  1657. onload: function(result) {
  1658. if (result.finalUrl.match('/locked/'))
  1659. {
  1660. var delay = result.responseText.match(/countdown">(\d+)</)[1];
  1661. // GM_log(result.finalUrl + 'is locked. Repeating the request in ' + delay + 's.');
  1662. // setTimeout(function(){processAdfLyLink(link, redirectorId);}, delay * 1000);
  1663. }
  1664. else
  1665. {
  1666. // GM_log('Processing... ' + link.href);
  1667. // GM_log('Found...' + result.responseText.match(/\/go\/(\w+\/\w+)/)[1]);
  1668. var directLink = 'http://adf.ly' + result.responseText.match(/(\/go\/\w+\/\w+)/)[1];
  1669. var logToken = result.responseText.match(/flashy_(\w+)/)[1];
  1670. var users = result.responseText.match(/user=\d+&user2=\d+/);
  1671. //confirm advert
  1672. GM_xmlhttpRequest(
  1673. {
  1674. method: 'POST',
  1675. url: 'http://adf.ly/l.php',
  1676. headers: {
  1677. 'User-agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20100101 Firefox/13.0',
  1678. 'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
  1679. 'Referer': link.href
  1680. },
  1681. data: users + '&lt=' + logToken,
  1682. onload: function(result) {
  1683. //retrieve final url from .../go/... link
  1684. GM_xmlhttpRequest({
  1685. method: 'GET',
  1686. url: directLink,
  1687. headers: {
  1688. 'User-agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20100101 Firefox/13.0',
  1689. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  1690. 'Referer': link.href
  1691. },
  1692. onload: function(result) {
  1693. link.href = result.finalUrl;
  1694. redirectors[redirectorId].cProcessed++;
  1695. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  1696. checkLinks('container_link');
  1697. }
  1698. });
  1699. }
  1700. });
  1701. }
  1702. }
  1703. });
  1704. function proceedOK()
  1705. {
  1706. }
  1707. }
  1708. //MULTILOAD.CZ START
  1709. if (GM_getValue("Check_multiload_dot_cz_links", false))
  1710. {
  1711. var mlRegex = 'multiload\\.cz\/stahnout\/\\d+\/';
  1712. var mlXpath = "//a[contains(@href,'http://www.multiload.cz/stahnout')]";
  1713.  
  1714. hostRestrictionRegex = 'Upload se nezdařil|limit exceeded|probíhá reupload|';
  1715.  
  1716. if (GM_getValue("Check_hellshare_dot_com_links", false))
  1717. hostRestrictionRegex += 'hellshare|';
  1718. if (GM_getValue("Check_share_dash_rapid_dot_com_links", false))
  1719. hostRestrictionRegex += 'share-rapid\\.com|';
  1720. if (GM_getValue("Check_quickshare_dot_cz_links", false))
  1721. hostRestrictionRegex += 'quickshare\\.cz|';
  1722. if (GM_getValue("Check_czshare_dot_com_links", false))
  1723. hostRestrictionRegex += 'czshare\\.com|';
  1724. if (GM_getValue("Check_uloz_dot_to_links", false))
  1725. hostRestrictionRegex += 'uloz\\.to|';
  1726. if (GM_getValue("Check_hellspy_dot_com_links", false))
  1727. hostRestrictionRegex += 'hellspy|';
  1728. if (GM_getValue("Check_multishare_dot_cz_links", false))
  1729. hostRestrictionRegex += 'multishare\\.cz|';
  1730.  
  1731. hostRestrictionRegex = hostRestrictionRegex.replace(/\|$/, "");
  1732.  
  1733. linkify(mlRegex);
  1734.  
  1735. var mlSnapshot = document.evaluate(mlXpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  1736. var mlCount = mlSnapshot.snapshotLength;
  1737.  
  1738. if (mlCount > 0)
  1739. {
  1740. cMultiloadTotal += mlCount;
  1741.  
  1742. mlIdx = mlCount - 1;
  1743. do
  1744. {
  1745. processMultiloadLink(mlSnapshot.snapshotItem(mlIdx));
  1746. }
  1747. while(mlIdx--)
  1748. }
  1749. }
  1750. //MULTILOAD.CZ END
  1751.  
  1752.  
  1753.  
  1754. function processMultiloadLink(mlLink)
  1755. {
  1756. GM_xmlhttpRequest({
  1757. method: 'GET',
  1758. url: mlLink.href,
  1759. headers: {
  1760. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1761. 'Accept': 'text/xml',
  1762. 'Referer': ""
  1763. },
  1764. onload: function(result) {
  1765. var res = result.responseText;
  1766.  
  1767. var innerBlockRegex = /<p class="manager-linky">(?:.|\s)+?<\/p>/g;
  1768. 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;
  1769. var innerLinkRegex = /((?:Upload se nezdařil.+|https?:\/\/(?:.|\s)+|Právě probíhá reupload, buďte trpěliví\.\.\.))</;
  1770. var mlRestrictionRegex = new RegExp(hostRestrictionRegex,"g"); //what links should be displayed
  1771.  
  1772. var blocks; // blocks of links
  1773. var blockIdx;
  1774.  
  1775. mlLink.className = '';
  1776.  
  1777. if (result.status == 503) //service temporarily unavailable, repeat request in one second
  1778. {
  1779. setTimeout(function(){ processMultiloadLink(mlLink); }, 1000);
  1780. return;
  1781. }
  1782.  
  1783. blocks = res.match(innerBlockRegex);
  1784.  
  1785. if (blocks == null) //no links found, cancel further processing
  1786. {
  1787. mlLink.parentNode.appendChild(document.createTextNode(' | Požadovaný soubor neexistuje.'));
  1788. cMultiloadProcessed++;
  1789. if (cMultiloadTotal <= cMultiloadProcessed)
  1790. {
  1791. startBulkCheck('container_link');
  1792. start('container_link');
  1793. }
  1794. return;
  1795. }
  1796.  
  1797. blockIdx = blocks.length;
  1798.  
  1799. if (Display_full_links_in_link_containers)
  1800. {
  1801. var ulElm = document.createElement('ul');
  1802. ulElm.className = 'container_list'; //CSS smaller font, padding, margin, square style
  1803.  
  1804. while(blockIdx--)
  1805. {
  1806. if (blocks[blockIdx].match(mlRestrictionRegex) == null)
  1807. {
  1808. continue;
  1809. }
  1810.  
  1811. var innerLinks = blocks[blockIdx].match(innerLinksRegex);
  1812.  
  1813. var linkIdx = innerLinks.length;
  1814. while (linkIdx--)
  1815. {
  1816. var innerLink = innerLinks[linkIdx].match(innerLinkRegex)[1];
  1817.  
  1818. var liElm = document.createElement('li');
  1819.  
  1820. if (innerLink.match(/Upload se nezdařil|limit exceeded|probíhá reupload/))
  1821. {
  1822. liElm.appendChild(document.createTextNode(innerLink));
  1823. }
  1824. else
  1825. {
  1826. var aElm = document.createElement('a');
  1827. aElm.innerHTML = innerLink;
  1828. aElm.href = innerLink;
  1829. aElm.className = 'container_link';
  1830.  
  1831. liElm.appendChild(aElm);
  1832. }
  1833.  
  1834. ulElm.appendChild(liElm);
  1835. cLinksTotal++;
  1836. }
  1837. }
  1838.  
  1839. mlLink.parentNode.appendChild(ulElm);
  1840. }
  1841. else //compact view
  1842. {
  1843. mlLink.parentNode.appendChild(document.createTextNode("|"));
  1844.  
  1845. while(blockIdx--)
  1846. {
  1847. if (blocks[blockIdx].match(mlRestrictionRegex) == null)
  1848. {
  1849. continue;
  1850. }
  1851.  
  1852. var innerLinks = blocks[blockIdx].match(innerLinksRegex);
  1853.  
  1854. var linkIdx = innerLinks.length;
  1855. while (linkIdx--)
  1856. {
  1857. var innerLink = innerLinks[linkIdx].match(innerLinkRegex)[1];
  1858.  
  1859. if (innerLink.match(/Upload se nezdařil|limit exceeded|probíhá reupload/))
  1860. {
  1861. mlLink.parentNode.appendChild(document.createTextNode("----"));
  1862. }
  1863. else
  1864. {
  1865. var aElm = document.createElement('a');
  1866.  
  1867. var hostName = innerLink.match(/quickshare|hellshare|uloz\.to|multishare|hellspy|share\-rapid|czshare/);
  1868.  
  1869. //abbreviate host name
  1870. switch(hostName + ""){
  1871.  
  1872. case 'quickshare': aElm.innerHTML = 'QS'; break;
  1873. case 'hellshare': aElm.innerHTML = 'HS'; break;
  1874. case 'uloz.to': aElm.innerHTML = 'UT'; break;
  1875. case 'multishare': aElm.innerHTML = 'MS'; break;
  1876. case 'hellspy': aElm.innerHTML = 'hs'; break;
  1877. case 'share-rapid': aElm.innerHTML = 'SR'; break;
  1878. case 'czshare': aElm.innerHTML = 'CS'; break;
  1879. default: aElm.innerHTML = 'xx';
  1880.  
  1881. }
  1882.  
  1883. aElm.href = innerLink;
  1884. aElm.className = 'container_link';
  1885.  
  1886. mlLink.parentNode.appendChild(aElm);
  1887. cLinksTotal++;
  1888. }
  1889. }
  1890.  
  1891. mlLink.parentNode.appendChild(document.createTextNode("|")); //blocks delimiter
  1892.  
  1893. }
  1894. }
  1895.  
  1896. cMultiloadProcessed++;
  1897. if (cMultiloadTotal == cMultiloadProcessed) //start check when all ml links have been processed
  1898. {
  1899. if (Do_not_linkify_DL_links)
  1900. {
  1901. delinkifySnapshot(mlSnapshot);
  1902. }
  1903. startBulkCheck('container_link');
  1904. start('container_link');
  1905. }
  1906. }
  1907. });
  1908. }
  1909.  
  1910.  
  1911. if (GM_getValue("Check_mirrorcreator_dot_com_links", false))
  1912. {
  1913. var mcRegex = 'mirrorcreator\\.com/files/(\\w+)';
  1914. var mcXpath = "//a[contains(@href,'mirrorcreator.com/files')]";
  1915. var mcShortHostNames =
  1916. '?? 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';
  1917. // 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
  1918. //?????? depositfiles sendspace load.to ul.to storage.to uploadbox x7.to fileserve ?????? duckload filehook filepost jumbofiles glumbouploads
  1919. // zshare ?????? 2shared uploading ugotfile extabit oron eyvx uploadstation putlocker
  1920. // megaupload badongo megashare gamefront ifile ?????? letitbit ?????? ?????? filejungle megashares
  1921. // easy-share ?????? netload zippyshare ?????? filesonic turbobit enterupload ?????? filekeen wupload crocko fileflyer
  1922.  
  1923. linkify(mcRegex);
  1924.  
  1925. var mcSnapshot = document.evaluate(mcXpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  1926. var mcCount = mcSnapshot.snapshotLength;
  1927.  
  1928. cMirrorcreatorComTotal = mcCount;
  1929.  
  1930. if (mcCount > 0)
  1931. {
  1932. mcShortHostNames = mcShortHostNames.split(' ');
  1933. mcIdx = mcCount;
  1934. while(mcIdx--)
  1935. processMirrorcreatorLink(mcSnapshot.snapshotItem(mcIdx));
  1936. }
  1937.  
  1938. }
  1939. //MIRRORCREATOR.CZ END
  1940.  
  1941.  
  1942. //mirrorcreator.com checking works like this:
  1943. //The base URL is http://www.mirrorcreator.com/files/XXXXXXXX/filename_links
  1944. //the actual list of mirrors is at http://www.mirrorcreator.com/status.php?uid=XXXXXXXX
  1945. //the list contains links in the form of (http://www.mirrorcreator.com)/redirect/XXXXXXXX/1
  1946. //these redirector links are extracted with mcLinkBlockRegex and the pages loaded
  1947. //they contain the actual filehost links, which are extracted with mcHostRegex and displayed in a container list
  1948. function processMirrorcreatorLink(mcLink)
  1949. {
  1950. var mcURL = mcLink.href.match(mcRegex);
  1951. if(!mcURL || !mcURL[1]) return;
  1952. mcURL = 'http://www.mirrorcreator.com/status.php?uid=' + mcURL[1]; //link correction
  1953. GM_xmlhttpRequest({
  1954. method: 'GET',
  1955. url: mcURL,
  1956. headers: {
  1957. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1958. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*'+'/*;q=0.8',
  1959. 'Referer': ""
  1960. },
  1961. onload: function(mcLinkResult) {
  1962. var mcLinkRes = mcLinkResult.responseText;
  1963.  
  1964. var mcLinkBlockRegex = /(\/redirect\/\w+\/(\d+))/gi;
  1965. var mcHostRegex = /<div id="redirectlink">.*?<a href="([^"]+)"/;
  1966.  
  1967. var mcRedirectors;
  1968. var mcHostURLs = [], mcRedirectorIDs = [], mcHostsFound = 0, mcHostsRetrieved = 0, mcHostsToProcess = 0;
  1969. var m = mcLinkRes.match(mcLinkBlockRegex);
  1970. if (m)
  1971. mcHostsFound = m.length;
  1972. else
  1973. { //no files inside container
  1974. processMirrorcreatorFoundHosts(mcLink, []);
  1975. return;
  1976. }
  1977.  
  1978. var mcRedirectorURL, idx, timedOut = false;
  1979.  
  1980. var gmxhrFunc = function(mcRedirectorURL){ //Tampermonkey doesn't know neither this.url or result.finalUrl
  1981. GM_xmlhttpRequest({
  1982. method: 'GET',
  1983. url: mcRedirectorURL,
  1984. headers: {
  1985. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1986. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*'+'/*;q=0.8',
  1987. 'Referer': ""
  1988. },
  1989. onload: function(mcHostResult) {
  1990. if (timedOut) return; //too late, the list is already displayed
  1991. var mcHostRes = mcHostResult.responseText;
  1992. var mcHost = mcHostRes.match(mcHostRegex);
  1993. idx = mcHostURLs.indexOf(mcRedirectorURL);
  1994. if (mcHost && idx!=-1)
  1995. {
  1996. mcHostURLs[idx] = mcHost[1].replace(/^\s+|\s+$/g, '');
  1997. mcHostsRetrieved++;
  1998. mcHostsToProcess++;
  1999. if (mcHostsFound == mcHostsRetrieved) //this is the last one!
  2000. {
  2001. processMirrorcreatorFoundHosts(mcLink, mcHostURLs, mcRedirectorIDs);
  2002. mcHostsToProcess = 0;
  2003. }
  2004. }
  2005. } //end of onload: function
  2006. }); //end of GM_xmlhttpRequest call
  2007. };//end of var gmxhrFunc
  2008.  
  2009. while (mcRedirectors = mcLinkBlockRegex.exec(mcLinkRes))
  2010. { //load individual redirector pages
  2011. mcRedirectorURL = 'http://www.mirrorcreator.com' + mcRedirectors[1];
  2012. mcHostURLs.push(mcRedirectorURL);
  2013. mcRedirectorIDs.push(mcRedirectors[2]);
  2014. gmxhrFunc(mcRedirectorURL);
  2015. } //end of while block
  2016.  
  2017. setTimeout(function(){ //in case the last page fails to load and call the function
  2018. timedOut = true;
  2019. if (mcHostsToProcess)
  2020. processMirrorcreatorFoundHosts(mcLink, mcHostURLs);
  2021. }, 60000);
  2022.  
  2023. } //end of onload function
  2024. }); //end of GM_xmlhttpRequest call
  2025. } //end of function processMirrorcreatorLink
  2026.  
  2027.  
  2028. function processMirrorcreatorFoundHosts(mcLink, mcHostURLs, mcRedirectorIDs)
  2029. {
  2030. var aEl, liEl, docFrag;
  2031. var hostName, mcRedirectorID, trimFilename = false;
  2032. var i = mcHostURLs.length;
  2033. if (i == 0)
  2034. {
  2035. trimFilename = true;
  2036. mcLink.parentNode.insertBefore(document.createTextNode(' | No files inside container'), mcLink.nextSibling);
  2037. }
  2038. else
  2039. {
  2040. if (Display_full_links_in_link_containers)
  2041. { //full view
  2042. var wrapperEl = document.createElement('span');
  2043. wrapperEl.style.display = 'block';
  2044. var ulistEl = document.createElement('ul');
  2045. ulistEl.className = 'container_list';
  2046. while (i--)
  2047. {
  2048. liEl = document.createElement('li');
  2049. aEl = document.createElement('a');
  2050. aEl.appendChild(document.createTextNode(mcHostURLs[i]));
  2051. aEl.href = mcHostURLs[i];
  2052. aEl.className = 'container_link';
  2053. liEl.appendChild(aEl);
  2054. ulistEl.appendChild(liEl);
  2055. }
  2056. wrapperEl.appendChild(ulistEl);
  2057. mcLink.parentNode.replaceChild(wrapperEl, mcLink);
  2058. wrapperEl.insertBefore(mcLink, wrapperEl.firstChild);
  2059. }
  2060. else
  2061. { //compact view
  2062. trimFilename = true;
  2063. docFrag = document.createDocumentFragment();
  2064. docFrag.appendChild(document.createTextNode(' |'));
  2065. while (i--)
  2066. {
  2067. mcRedirectorID = mcRedirectorIDs[i];
  2068. hostName = mcHostURLs[i];
  2069. if (mcRedirectorID > mcShortHostNames.length-1 || mcShortHostNames[mcRedirectorID] == '??')
  2070. hostName = hostName.replace(/https?:\/\/(?:www\.)?([-0-9a-z]+(?:\.[-0-9a-z]+)?)\.[a-z]+\/.*/i, '$1').toUpperCase();
  2071. else
  2072. hostName = mcShortHostNames[mcRedirectorID];
  2073. aEl = document.createElement('a');
  2074. aEl.href = mcHostURLs[i];
  2075. aEl.className = 'container_link';
  2076. aEl.appendChild(document.createTextNode(hostName));
  2077. docFrag.appendChild(aEl);
  2078. docFrag.appendChild(document.createTextNode('|'));
  2079. }
  2080. mcLink.parentNode.insertBefore(docFrag, mcLink.nextSibling);
  2081. } //end of else block
  2082. } //end of else block
  2083. mcLink.className = '';
  2084. if (trimFilename)
  2085. mcLink.firstChild.nodeValue = mcLink.firstChild.nodeValue.replace(/(https?:\/\/[^\/]+\/files\/\w+\/).+/, '$1...');
  2086. cMirrorcreatorComProcessed++;
  2087. if (cMirrorcreatorComProcessed == cMirrorcreatorComTotal) //start check when all mc links have been processed
  2088. {
  2089. if (Do_not_linkify_DL_links)
  2090. delinkifySnapshot(mcSnapshot);
  2091. startBulkCheck('container_link');
  2092. start('container_link');
  2093. }
  2094. } //end of function processMirrorcreatorFoundHosts
  2095.  
  2096. containers_processed = true;
  2097.  
  2098.  
  2099. function initRedirectors()
  2100. {
  2101. function addRedirector(linkRegex, xpathEx, redirType, innerLinkRegex)
  2102. {
  2103. var redirector = new Object();
  2104. redirector.linkRegex = linkRegex;
  2105. redirector.xpath = xpathEx; //xpath expression
  2106. redirector.cProcessed = 0; //processed links count
  2107. redirector.cTotal = 0; //total links count
  2108. redirector.type = redirType; //redirectorTypes enum
  2109. redirector.innerLinkRegex = innerLinkRegex; //innerLink, null if unused
  2110. redirectors.push(redirector);
  2111. }
  2112. if (GM_getValue("Check_safelinking_dot_net_links", false))
  2113. {
  2114. addRedirector(
  2115. 'safelinking\\.net\/d\/\\w+',
  2116. "//a[contains(@href,'safelinking.net/d/')]",
  2117. redirectorTypes.HTTP_302,
  2118. null);
  2119. }
  2120. if (GM_getValue("Check_linksafe_dot_me_links", false))
  2121. {
  2122. addRedirector(
  2123. 'linksafe\\.me\/d\/\\w+',
  2124. "//a[contains(@href,'linksafe.me/d/')]",
  2125. redirectorTypes.HTTP_302,
  2126. null);
  2127. }
  2128. if (GM_getValue("Check_linkto_dot_net_links", false))
  2129. {
  2130. addRedirector(
  2131. 'linkto\\.net\/\\?\\w+\\.\\d+',
  2132. "//a[contains(@href,'linkto.net/?')]",
  2133. redirectorTypes.INNER_LINK,
  2134. /<iframe id="iframe" name="iframe" src="(.+?)\s*" frameborder="0"/);
  2135. }
  2136. if (GM_getValue("Check_theloo_dot_katt_dot_it_links", false))
  2137. {
  2138. addRedirector(
  2139. '(?:the)?loo\\.katt\\.it\/\\w+',
  2140. "//a[contains(@href,'loo.katt.it/')]",
  2141. redirectorTypes.THELOO_KATT_IT,
  2142. /Proceed to URL - <a href="(.+?)">/);
  2143. }
  2144. if (GM_getValue("Check_madlink_dot_sk_links", false))
  2145. {
  2146. addRedirector(
  2147. 'madlink\\.sk\/\\w+',
  2148. "//a[contains(@href,'madlink.sk/')]",
  2149. redirectorTypes.INNER_LINK,
  2150. /name="url" value="(.+?)\s*"\/>/);
  2151. }
  2152. if (GM_getValue("Check_adf_dot_ly_links", false))
  2153. {
  2154. addRedirector(
  2155. '(?:adf\\.ly|[u9]\\.bb|[qj]\\.gs)\/\\w+',
  2156. "//a[contains(@href,'adf.ly/') (@href,'u.bb/') or contains(@href,'9.bb/') or contains(@href,'q.gs/') or contains(@href,'j.gs/')]",
  2157. redirectorTypes.ADF_LY,
  2158. null);
  2159. }
  2160. if (GM_getValue("Check_redi_dot_re_links", false))
  2161. {
  2162. addRedirector(
  2163. 'redi\\.re\/\\w+',
  2164. "//a[contains(@href,'redi.re/')]",
  2165. redirectorTypes.HTTP_302,
  2166. null);
  2167. }
  2168. if (GM_getValue("Check_bit_dot_ly_links", false))
  2169. {
  2170. addRedirector(
  2171. 'bit\\.ly\/\\w+',
  2172. "//a[contains(@href,'bit.ly/')]",
  2173. redirectorTypes.HTTP_302,
  2174. null);
  2175. }
  2176. }
  2177.  
  2178. }
  2179.  
  2180. var bulkHosts = new Array();
  2181. var bulkHostNames = new Array();
  2182. function initBulkCheck()
  2183. {
  2184. /////////////////////////////
  2185. // Inits filehost object
  2186. /////////////////////////////
  2187. // params :
  2188. // hostName -- [string] host name (multiple domains separated with coma)
  2189. // linkRegex -- [string] link regex
  2190. // xpath -- [string] xpath expression to detect the link objects with evaluate
  2191. // blockSize -- [integer] max. number of links sent in one request, 50 if null
  2192. // corrMatch -- [regex] link correction regex (match), applied prior to corrRepl
  2193. // corrReplWhat -- [regex] link correction regex (replace)
  2194. // corrReplWith -- [string]
  2195. // splitSeparator -- [string] POSTDATA links separator, "\r\n" if null
  2196. //
  2197. // apiUrl -- [string] web linkchecker or API URL
  2198. // postData -- [string] POSTDATA of xmlhttprequest
  2199. // resLinkRegex -- [regex]
  2200. // resLiveRegex -- [regex] matches substrings containing live links in the request response
  2201. // resDeadRegex -- [regex] matches substrings containing dead links in the request response
  2202. // resUnavaRegex -- [regex] matches substrings containing unava links in the request response
  2203. // func -- [function] bulkcheck handler, genBulkCheck if null
  2204. //
  2205. //////////////////////////////
  2206. function addHost(hostName, linkRegex, xpath, blockSize, corrMatch, corrReplWhat, corrReplWith, splitSeparator,
  2207. apiUrl, postData, resLinkRegex, resLiveRegex, resDeadRegex, resUnavaRegex, func)
  2208. {
  2209. var fileHost = new Object();
  2210.  
  2211. fileHost.linkRegex = linkRegex;
  2212. fileHost.linkRegexObject = new RegExp(linkRegex, "");
  2213. fileHost.xpath = xpath;
  2214. fileHost.cFound = 0; //found links counter
  2215. fileHost.links = new Array(); //found links
  2216. if (blockSize == null)
  2217. {
  2218. fileHost.blockSize = 50;
  2219. }
  2220. else
  2221. {
  2222. fileHost.blockSize = blockSize;
  2223. }
  2224. fileHost.corrMatch = corrMatch;
  2225. fileHost.corrReplWhat = corrReplWhat;
  2226. fileHost.corrReplWith = corrReplWith;
  2227. if (splitSeparator == null)
  2228. {
  2229. fileHost.splitSeparator = "\r\n";
  2230. }
  2231. else
  2232. {
  2233. fileHost.splitSeparator = splitSeparator;
  2234. }
  2235. fileHost.apiUrl = apiUrl;
  2236. fileHost.postData = postData;
  2237. fileHost.resLinkRegex = resLinkRegex;
  2238. fileHost.resLiveRegex = resLiveRegex;
  2239. fileHost.resDeadRegex = resDeadRegex;
  2240. fileHost.resUnavaRegex = resUnavaRegex;
  2241. if (func == null)
  2242. {
  2243. fileHost.func = genBulkCheck;
  2244. }
  2245. else
  2246. {
  2247. fileHost.func = func;
  2248. }
  2249. bulkHosts.push(fileHost);
  2250. var names = hostName.split(',');
  2251. var i = names.length;
  2252. while(i--)
  2253. {
  2254. bulkHostNames[names[i]] = fileHost;
  2255. }
  2256. }
  2257. var genType1 = [
  2258. "rodfile.com", "downloadani.me", //"migahost.com",
  2259. "rarefile.net",
  2260. "filesabc.com",
  2261. "180upload.com", "verzend.be",
  2262. // "movreel.com",
  2263. "4up.me",
  2264. "file4safe.com", "filemac.com", "4upfiles.com",
  2265. "idup.in", "novafile.com", "longfiles.com",
  2266. "bitupload.com",
  2267. "uploadbaz.com"
  2268. ];
  2269. var genType2 = [ "queenshare.com",
  2270. "hulkload.com",
  2271. "amonshare.com", //"edoc.com",
  2272. ];
  2273. //xfilesharing 1.0
  2274. function addGenericType1()
  2275. {
  2276. var i = genType1.length;
  2277. while(i--)
  2278. {
  2279. if (GM_getValue("Check_" + genType1[i].replace(/\./g, "_dot_").replace(/-/g, "_dash_") + "_links", false))
  2280. {
  2281. var regexSafe = genType1[i].replace(/\./g, "\\.").replace(/-/g, "\\-");
  2282. addHost(
  2283. genType1[i].match(/[\w-]+/)[0], //hostname
  2284. regexSafe + "\/\\w+", //linkregex
  2285. "//a[contains(@href,'" + genType1[i] + "/')]", //xpath
  2286. null, //blocksize
  2287. new RegExp("(http:\/\/(?:|www\\.)" + regexSafe + "\/\\w+)",""),//, //corrmatch
  2288. null, //corrreplwhat
  2289. null, //corrreplwith
  2290. null, //separator
  2291. "http://" + genType1[i] + "/checkfiles.html", //api url
  2292. "op=checkfiles&process=Check+URLs&list=", //postdata
  2293. new RegExp("(" + regexSafe + "\/\\w+)",""), //linkregex
  2294. new RegExp("green'>http:\/\/(?:|www\.)" + regexSafe + "\/\\w+","g"), //liveregex
  2295. new RegExp("red'>http:\/\/(?:|www\.)" + regexSafe + "\/\\w+","g"), //deadregex
  2296. new RegExp("orange'>http:\/\/(?:|www\.)" + regexSafe + "\/\\w+","g"), //unavaregex
  2297. null //function delegate
  2298. )
  2299. }
  2300. }
  2301. }
  2302. //xfilesharing 2.0
  2303. function addGenericType2()
  2304. {
  2305. var i = genType2.length;
  2306. while(i--)
  2307. {
  2308. if (GM_getValue("Check_" + genType2[i].replace(/\./g, "_dot_").replace(/-/g, "_dash_") + "_links", false))
  2309. {
  2310. var regexSafe = genType2[i].replace(/\./g, "\\.").replace(/-/g, "\\-");
  2311. addHost(
  2312. genType2[i].match(/[\w-]+/)[0], //hostname
  2313. regexSafe + "\/\\w+", //linkregex
  2314. "//a[contains(@href,'" + genType2[i] + "/')]", //xpath
  2315. null, //blocksize
  2316. new RegExp("(http:\/\/(?:|www\\.)" + regexSafe + "\/\\w+)",""),//, //corrmatch
  2317. null, //corrreplwhat
  2318. null, //corrreplwith
  2319. null, //separator
  2320. "http://www." + genType2[i] + "/?op=checkfiles", //api url
  2321. "op=checkfiles&process=Check+URLs&list=", //postdata
  2322. new RegExp("(" + regexSafe + "\/\\w+)",""), //linkregex
  2323. new RegExp(regexSafe + "\/\\w+.*?<\/td>\\s*<td style=\"color:green;\">","g"), //liveregex
  2324. new RegExp(regexSafe + "\/\\w+.*?<\/td>\\s*<td style=\"color:red;\">","g"), //deadregex
  2325. new RegExp(regexSafe + "\/\\w+.*?<\/td>\\s*<td style=\"color:orange;\">","g"), //unavaregex
  2326. null //function delegate
  2327. )
  2328. }
  2329. }
  2330. }
  2331. // TEMPLATE
  2332. // if (GM_getValue("Check__dot_com_links", false))
  2333. // {
  2334. // addHost(
  2335. // "", //hostname
  2336. // "", //linkregex
  2337. // "//a[contains(@href,'.com/')]", //xpath
  2338. // null, //blocksize
  2339. // null, //corrmatch
  2340. // null, //corrreplwhat
  2341. // null, //corrreplwith
  2342. // null, //separator
  2343. // "", //api url
  2344. // "", //postdata
  2345. // /()/, //linkregex
  2346. // //liveregex
  2347. // //deadregex
  2348. // //unavaregex
  2349. // null //function delegate
  2350. // )
  2351. // }
  2352. addGenericType1();
  2353. addGenericType2();
  2354.  
  2355. if (GM_getValue("Check_myvdrive_dot_com_links", false))
  2356. {
  2357. addHost(
  2358. "myvdrive,fileserving", //hostname
  2359. "(?:fileserving|myvdrive)\\.com\/files\/[\\w-]+", //linkregex
  2360. "//a[contains(@href,'fileserving.com/files') or contains(@href,'myvdrive.com/files')]", //xpath
  2361. null, //blocksize
  2362. null, //corrmatch
  2363. null, //corrreplwhat
  2364. null, //corrreplwith
  2365. null, //separator
  2366. "http://www.myvdrive.com/Public/linkchecker#", //api url
  2367. "links=", //postdata
  2368. /(?:fileserving|myvdrive)\.com\/(files\/\w+)/, //linkregex
  2369. /icon_file_check_valid"><\/span>\s*http:\/\/www\.(?:fileserving|myvdrive)\.com\/files\/[\w-]+/g, //liveregex
  2370. /icon_file_check_(?:removed|notvalid)"><\/span>\s*http:\/\/www\.(?:fileserving|myvdrive)\.com\/files\/[\w-]+/g, //deadregex
  2371. null, //unavaregex
  2372. null //function delegate
  2373. )
  2374. }
  2375. if (GM_getValue("Check_hackerbox_dot_org_links", false))
  2376. {
  2377. addHost(
  2378. "hackerbox", //hostname
  2379. "host\\.hackerbox\\.org\/\\w+", //linkregex
  2380. "//a[contains(@href,'host.hackerbox.org/')]", //xpath
  2381. null, //blocksize
  2382. /(http:\/\/host\.hackerbox\.org\/\w+)/, //corrmatch
  2383. null, //corrreplwhat
  2384. null, //corrreplwith
  2385. null, //separator
  2386. "http://host.hackerbox.org/checkfiles.html", //api url
  2387. "op=checkfiles&process=Check+URLs&list=", //postdata
  2388. /(host\.hackerbox\.org\/\w+)/, //linkregex
  2389. /green'>http:\/\/host\.hackerbox\.org\/\w+/g, //liveregex
  2390. /red'>http:\/\/host\.hackerbox\.org\/\w+/g, //deadregex
  2391. /orange'>http:\/\/host\.hackerbox\.org\/\w+/g, //unavaregex
  2392. null //function delegate
  2393. )
  2394. }
  2395. if (GM_getValue("Check_hellshare_dot_com_links", false))
  2396. {
  2397. addHost(
  2398. "hellshare", //hostname
  2399. "(?:|download\\.(?:cz\\.|en\\.|sk\\.|)|www\\.)hellshare\\.(?:com|sk|cz|pl|hu|COM|SK|CZ|PL|HU)\/[\\w-\\.]+\/(?:[\\w-\\.]+\/|)\\d{5,}", //linkregex
  2400. "//a[contains(@href,'hellshare.')]", //xpath
  2401. 48, //blocksize
  2402. null, //corrmatch
  2403. null, //corrreplwhat
  2404. null, //corrreplwith
  2405. null, //separator
  2406. null, //api url
  2407. null, //postdata
  2408. null, //linkregex
  2409. null, //liveregex
  2410. null, //deadregex
  2411. null, //unavaregex
  2412. hellshareBulkCheck //function delegate
  2413. )
  2414. }
  2415. if (GM_getValue("Check_ncrypt_dot_in_links", false))
  2416. {
  2417. addHost(
  2418. "ncrypt", //hostname
  2419. "ncrypt\\.in\/folder\\-\\w+", //linkregex
  2420. "//a[contains(@href,'ncrypt.in/folder')]", //xpath
  2421. 100000, //blocksize
  2422. null, //corrmatch
  2423. null, //corrreplwhat
  2424. null, //corrreplwith
  2425. null, //separator
  2426. null,
  2427. null,
  2428. null,
  2429. null,
  2430. null,
  2431. null,
  2432. ncryptBulkCheck //function delegate
  2433. )
  2434. }
  2435. if (GM_getValue("Check_geupload_dot_com_links", false))
  2436. {
  2437. addHost(
  2438. "geupload,lenfile", //hostname
  2439. "(?:geupload\\.com|lenfile\\.com)\/\\w+", //linkregex
  2440. "//a[contains(@href,'geupload.com/') or contains(@href,'lenfile.com/')]", //xpath
  2441. null, //blocksize
  2442. null, //corrmatch
  2443. null, //corrreplwhat
  2444. null, //corrreplwith
  2445. "\n", //separator
  2446. 'http://geupload.com/?op=checkfiles',
  2447. 'op=checkfiles&process=Check+URLs&list=',
  2448. />http:\/\/(?:geupload|lenfile)\.com\/(\w+)/,
  2449. />http:\/\/(?:geupload|lenfile)\.com\/\w+(?:[^>]+>)<td style=\"color\:green/g,
  2450. />http:\/\/(?:geupload|lenfile)\.com\/\w+(?:[^>]+>)<td style=\"color\:red/g,
  2451. null,
  2452. null
  2453. )
  2454. }
  2455. if (GM_getValue("Check_uploadrocket_dot_net_links", false))
  2456. {
  2457. addHost(
  2458. "uploadrocket", //hostname
  2459. "(?:uploadrocket\\.net)\/\\w+", //linkregex
  2460. "//a[contains(@href,'uploadrocket.net/')]", //xpath
  2461. null, //blocksize
  2462. null, //corrmatch
  2463. null, //corrreplwhat
  2464. null, //corrreplwith
  2465. "\n", //separator
  2466. 'http://uploadrocket.net/?op=checkfiles',
  2467. 'op=checkfiles&process=Check+URLs&list=',
  2468. /uploadrocket.net\/(\w+)/,
  2469. />http:\/\/uploadrocket.net\/\w+(?:[^>]+>)<td style="color:green/g,
  2470. />http:\/\/uploadrocket.net\/\w+(?:[^>]+>)<td style="color:red/g,
  2471. null,
  2472. null //function delegate
  2473. )
  2474. }
  2475. if (GM_getValue("Check_k2s_dot_cc_links", false))
  2476. {
  2477. addHost(
  2478. "k2s,keep2s,keep2share",
  2479. "(?:(?:k2s\\.cc)|(?:keep2s\\.cc)|(?:keep2share\\.(?:cc|com)))\/file\/\\w+",
  2480. "//a[contains(@href,'k2s.cc/file/') or contains(@href,'keep2s.cc/file/') or contains(@href,'keep2share.cc/file/') or contains(@href,'keep2share.com/file/')]",
  2481. 100000, //blocksize
  2482. null, //corrmatch
  2483. null, //corrreplwhat
  2484. null, //corrreplwith
  2485. null, //separator
  2486. null,
  2487. null,
  2488. null,
  2489. null,
  2490. null,
  2491. null,
  2492. k2sBulkCheck //function delegate
  2493. )
  2494. }
  2495. if (GM_getValue("Check_fboom_dot_me_links", false))
  2496. {
  2497. addHost(
  2498. "fboom,fileboom",
  2499. "(?:(?:fboom\\.me)|(?:fileboom\\.me))\/file\/\\w+",
  2500. "//a[contains(@href,'fboom.me/file/') or contains(@href,'fileboom.me/file/')]",
  2501. 100000, //blocksize
  2502. null, //corrmatch
  2503. null, //corrreplwhat
  2504. null, //corrreplwith
  2505. null, //separator
  2506. null,
  2507. null,
  2508. null,
  2509. null,
  2510. null,
  2511. null,
  2512. fboomBulkCheck //function delegate
  2513. )
  2514. }
  2515. if (GM_getValue("Check_1fichier_dot_com_links", false))
  2516. {
  2517. addHost(
  2518. "1fichier,dl4free",
  2519. "(?:\\w{10}\\.(?:1fichier|dl4free)\\.com\/)|(?:(?:1fichier|dl4free)\\.com\/\\?\\w{10})|(?:www\\.)?\\w{6,}\\.1fichier\\.com",
  2520. "//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/?')]",
  2521. 100000, //blocksize
  2522. null, //corrmatch
  2523. null, //corrreplwhat
  2524. null, //corrreplwith
  2525. null, //separator
  2526. null,
  2527. null,
  2528. null,
  2529. null,
  2530. null,
  2531. null,
  2532. dl4free_1fichier_BulkCheck //function delegate
  2533. )
  2534. }
  2535. if (GM_getValue("Check_depositfiles_dot_com_links", false))
  2536. {
  2537. addHost(
  2538. "depositfiles,dfiles",
  2539. "(?:(?:depositfiles\\.(?:com|org|lt))|(?:dfiles\\.(?:ru|eu)))\/files\/|en/files\/\\w+",
  2540. "//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/')]",
  2541. 100000, //blocksize
  2542. null, //corrmatch
  2543. null, //corrreplwhat
  2544. null, //corrreplwith
  2545. null, //separator
  2546. null,
  2547. null,
  2548. null,
  2549. null,
  2550. null,
  2551. null,
  2552. depositfilesBulkCheck //function delegate
  2553. )
  2554. }
  2555. if (GM_getValue("Check_filepost_dot_com_links", false))
  2556. {
  2557. addHost(
  2558. "filepost,fp", //hostname
  2559. "(?:filepost\\.com\/files|fp\\.io)\/\\w+", //linkregex
  2560. "//a[contains(@href,'filepost.com/files/') or contains(@href,'fp.io/')]", //xpath
  2561. null, //blocksize
  2562. null, //corrmatch
  2563. null, //corrreplwhat
  2564. null, //corrreplwith
  2565. "\n", //separator
  2566. 'http://filepost.com/files/checker/?JsHttpRequest=0-xml',
  2567. 'urls=',
  2568. /\\\/files\\\/(\w+)/,
  2569. />http:\\\/\\\/filepost\.com\\\/files\\\/\w+(?:[^>]+>){5}(?:\\n|\\t)+<span class=\\"v\\"/g,
  2570. />http:\\\/\\\/filepost\.com\\\/files\\\/\w+(?:[^>]+>){5}(?:\\n|\\t)+<span class=\\"x\\"/g,
  2571. null,
  2572. null //function delegate
  2573. )
  2574. }
  2575. if (GM_getValue("Check_filesflash_dot_com_links", false))
  2576. {
  2577. addHost(
  2578. "filesflash", //hostname
  2579. "filesflash\\.com\/\\w+", //linkregex
  2580. "//a[contains(@href,'filesflash.com')]", //xpath
  2581. null, //blocksize
  2582. null, //corrmatch
  2583. /http:\/\//, //corrreplwhat
  2584. '', //corrreplwith
  2585. null, //separator
  2586. 'http://filesflash.com/checklinks.php',
  2587. 'submit=Go&links=',
  2588. /filesflash\.com\/(\w+)/,
  2589. /<td>filesflash\.com\/\w+<\/td>\s*<td>Available/g,
  2590. /<td>filesflash\.com\/\w+<\/td>\s*<td>(?:Invalid|Deleted|Expired|Banned)?<\/td>/g,
  2591. null,
  2592. null //function delegate
  2593. )
  2594. }
  2595. if (GM_getValue("Check_jumbofiles_dot_com_links", false))
  2596. {
  2597. addHost(
  2598. "jumbofiles", //hostname
  2599. "jumbofiles\\.com\/\\w+", //linkregex
  2600. "//a[contains(@href,'jumbofiles.com/')]", //xpath
  2601. null, //blocksize
  2602. /(http:\/\/(?:|www\.)jumbofiles\.com\/\w+)/, //corrmatch
  2603. null, //corrreplwhat
  2604. null, //corrreplwith
  2605. null, //separator
  2606. "http://jumbofiles.com/checkfiles.html", //api url
  2607. "op=checkfiles&process=Check+URLs&list=", //postdata
  2608. /(jumbofiles\.com\/\w+)/, //linkregex
  2609. /blue'>http:\/\/(?:|www\.)jumbofiles\.com\/\w+/g, //liveregex
  2610. /red'>http:\/\/(?:|www\.)jumbofiles\.com\/\w+/g, //deadregex
  2611. /orange'>http:\/\/(?:|www\.)jumbofiles\.com\/\w+/g, //unavaregex
  2612. null //function delegate
  2613. )
  2614. }
  2615. if (GM_getValue("Check_edisk_dot_cz_links", false))
  2616. {
  2617. addHost(
  2618. "edisk", //hostname
  2619. "(?:(?:muj|data)\\d*\\.|)edisk\\.(?:cz|sk|eu)\/(?:|(?:cz|sk|en|pl)\/)", //linkregex
  2620. "//a[contains(@href,'edisk.')]", //xpath
  2621. null, //blocksize
  2622. null, //corrmatch
  2623. /edisk\.\w{2}\/(?:|\w{2}\/)stahni/, //corrreplwhat
  2624. 'edisk.cz/stahni', //corrreplwith
  2625. null, //separator
  2626. 'http://www.edisk.cz/zkontrolovat-odkazy',
  2627. 'submitBtn=Zkontrolovat&checkFiles=',
  2628. /((?:download|stahn(?:i|out-soubor))\/\d+)/,
  2629. /"ano"\/>\s*<\/td>\s*<td>\s*http:\/\/.+/g,
  2630. /"ne"\/>\s*<\/td>\s*<td>\s*http:\/\/.+/g,
  2631. null,
  2632. null //function delegate
  2633. )
  2634. }
  2635. if (GM_getValue("Check_bezvadata_dot_cz_links", false))
  2636. {
  2637. GM_xmlhttpRequest( //age check skip
  2638. {
  2639. method: 'POST',
  2640. url: 'http://bezvadata.cz/vyhledavani/souhlas-zavadny-obsah',
  2641. headers: {
  2642. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  2643. 'Content-type': 'application/x-www-form-urlencoded',
  2644. 'Referer': ""
  2645. }
  2646. });
  2647. addHost(
  2648. "bezvadata", //hostname
  2649. "(?:beta\\.|)bezvadata\.cz\/stahnout\/\\d+\\w+", //linkregex
  2650. "//a[contains(@href,'bezvadata.cz')]", //xpath
  2651. null, //blocksize
  2652. null, //corrmatch
  2653. null, //corrreplwhat
  2654. null, //corrreplwith
  2655. null, //separator
  2656. 'http://bezvadata.cz/nastroje/kontrola-odkazu?do=kontrolaOdkazuForm-submit',
  2657. 'zkontrolovat=Zkontrolovat&odkazy=',
  2658. /(bezvadata\.cz\/stahnout\/\d+)/,
  2659. /bezvadata\.cz\/stahnout\/.+?<\/td>\s*<td style="background-color: #d9ffb2/g,
  2660. /bezvadata\.cz\/stahnout\/.+?<\/td>\s*<td style="background-color: #ffb2b2/g,
  2661. null,
  2662. null //function delegate
  2663. )
  2664. }
  2665. if (GM_getValue("Check_linkcrypt_dot_ws_links", false))
  2666. {
  2667. addHost(
  2668. "linkcrypt", //hostname
  2669. "linkcrypt\\.ws\/dir\/\\w+", //linkregex
  2670. "//a[contains(@href,'linkcrypt.ws/dir')]", //xpath
  2671. 100000, //blocksize
  2672. null, //corrmatch
  2673. null, //corrreplwhat
  2674. null, //corrreplwith
  2675. null, //separator
  2676. null,
  2677. null,
  2678. null,
  2679. null,
  2680. null,
  2681. null,
  2682. linkcryptBulkCheck //function delegate
  2683. )
  2684. }
  2685. if (GM_getValue("Check_linksave_dot_in_links", false))
  2686. {
  2687. addHost(
  2688. "linksave", //hostname
  2689. "linksave\\.in\/\\w+", //linkregex
  2690. "//a[contains(@href,'linksave.in')]", //xpath
  2691. 100000, //blocksize
  2692. null, //corrmatch
  2693. null, //corrreplwhat
  2694. null, //corrreplwith
  2695. null, //separator
  2696. null,
  2697. null,
  2698. null,
  2699. null,
  2700. null,
  2701. null,
  2702. linksaveBulkCheck //function delegate
  2703. )
  2704. }
  2705. if (GM_getValue("Check_videobb_dot_com_links", false))
  2706. {
  2707. addHost(
  2708. "videobb", //hostname
  2709. "videobb\\.com\/(?:video\/|watch_video\\.php\\?v=)\\w+", //linkregex
  2710. "//a[contains(@href,'videobb.com')]", //xpath
  2711. null, //blocksize
  2712. null, //corrmatch
  2713. /watch_video\.php\?v=/, //corrreplwhat
  2714. 'video/', //corrreplwith
  2715. null, //separator
  2716. 'http://www.videobb.com/link_checker.php',
  2717. 'links=',
  2718. /videobb\.com\/video\/(\w+)/,
  2719. /<td>http:\/\/(?:www\.|)videobb.com\/video\/\w+<\/td>\s+<td>.+?<\/td>\s+<td>\d+:\d+<\/td>\s+<td>Available/g,
  2720. /<td>http:\/\/(?:www\.|)videobb.com\/video\/\w+<\/td>\s+<td><\/td>\s+<td>N\/A<\/td>\s+<td>Not Available/g,
  2721. null,
  2722. null //function delegate
  2723. )
  2724. }
  2725. /* if (GM_getValue("Check_cramit_dot_in_links", false))
  2726. {
  2727. addHost(
  2728. "cramit,cramitin", //hostname
  2729. "cramit(?:\\.in|in\\.net)\/", //linkregex
  2730. "//a[contains(@href,'cramitin.net') or contains(@href,'cramit.in')]", //xpath
  2731. null, //blocksize
  2732. null, //corrmatch
  2733. null, //corrreplwhat
  2734. null, //corrreplwith
  2735. null, //separator
  2736. 'http://cramit.in/checkfiles.html',
  2737. 'op=checkfiles&process=CHECK+URL%27S&list=',
  2738. /(cramit(?:\.in|in\.net)\/\w+)/,
  2739. /green>http:\/\/(?:www\.|)cramit(?:\.in|in\.net)\/\w+/g,
  2740. /red'>http:\/\/(?:www\.|)cramit(?:\.in|in\.net)\/\w+/g,
  2741. /orange'>http:\/\/(?:www\.|)cramit(?:\.in|in\.net)\/\w+/g,
  2742. null //function delegate
  2743. )
  2744. }
  2745. if (GM_getValue("Check_turbobit_dot_net_links", false))
  2746. {
  2747. addHost(
  2748. "turbobit", //hostname
  2749. "turbobit\\.(?:net|pl)\/(?:\\w+\/|).+?\\.html", //linkregex
  2750. "//a[contains(@href,'turbobit.')]", //xpath
  2751. null, //blocksize
  2752. /(turbobit\.(?:net|pl)\/(?:\w+\/|).+?\.html)/, //corrmatch
  2753. null, //corrreplwhat
  2754. null, //corrreplwith
  2755. "\n", //separator
  2756. 'http://turbobit.net/linkchecker/csv',
  2757. 'links_to_check=',
  2758. /(turbobit\.(?:net|pl)\/\w+)/,
  2759. /turbobit\.(?:net|pl)\/.*?, 1/g,
  2760. /turbobit\.(?:net|pl)\/.*?, 0/g,
  2761. null,
  2762. null //function delegate
  2763. )
  2764. } */
  2765. if (GM_getValue("Check_filerio_dot_com_links", false))
  2766. {
  2767. addHost(
  2768. "filekeen,filerio", //hostname
  2769. //"file(?:keen|rio)\\.(?:com|in)\/\\w+\/.", //linkregex
  2770. "file(?:keen|rio)\\.(?:com|in)\/\\w+", //linkregex
  2771. "//a[contains(@href,'filekeen.com') or contains(@href,'filerio.')]", //xpath
  2772. null, //blocksize
  2773. null, //corrmatch
  2774. null, //corrreplwhat
  2775. null, //corrreplwith
  2776. null, //separator
  2777. 'http://filerio.in/checkfiles.html',
  2778. 'op=checkfiles&process=Check+URLs&list=',
  2779. /(file(?:keen|rio)\.(?:com|in)\/\w+)/,
  2780. /green'>http:\/\/(?:www\.|)file(?:keen|rio)\.(?:com|in)\/\w+/g,
  2781. /red'>http:\/\/(?:www\.|)file(?:keen|rio)\.(?:com|in)\/\w+/g,
  2782. /orange'>http:\/\/(?:www\.|)file(?:keen|rio)\.(?:com|in)\/\w+/g,
  2783. null //function delegate
  2784. )
  2785. }
  2786. if (GM_getValue("Check_share_dash_online_dot_biz_links", false))
  2787. {
  2788. addHost(
  2789. "share-online,egoshare", //hostname
  2790. "(?:share-online\\.biz|egoshare\\.com)\/(?:dl\/|download\\.php\\?id=)", //linkregex
  2791. "//a[contains(@href,'share-online.biz') or contains(@href,'egoshare.com')]", //xpath
  2792. null, //blocksize
  2793. /http:\/\/(?:www\.)?(?:share-online\.biz|egoshare\.com)\/d(?:l\/|ownload\.php\?id=)(\w+)/, //corrmatch
  2794. null, //corrreplwhat
  2795. null, //corrreplwith
  2796. "\n", //separator
  2797. 'http://api.share-online.biz/linkcheck.php',
  2798. 'links=',
  2799. /(\w+);(?:OK|NOTFOUND|DELETED)/,
  2800. /\w+;OK/g,
  2801. /\w+;(?:NOTFOUND|DELETED)/g,
  2802. null,
  2803. null //function delegate
  2804. )
  2805. }
  2806. /* if (GM_getValue("Check_quickshare_dot_cz_links", false))
  2807. {
  2808. addHost(
  2809. "quickshare", //hostname
  2810. "quickshare\\.cz\/stahnout-soubor\/\\d+", //linkregex
  2811. "//a[contains(@href,'quickshare.cz')]", //xpath
  2812. null, //blocksize
  2813. null, //corrmatch
  2814. null, //corrreplwhat
  2815. null, //corrreplwith
  2816. null, //separator
  2817. 'http://www.quickshare.cz/nastroje/link-checker',
  2818. 'linky=',
  2819. /quickshare\.cz\/stahnout-soubor\/(\d+(?::\w+)?)/,
  2820. /quickshare\.cz\/stahnout-soubor\/\d+(?::[\w\-.+$!*\/()\[\]\',~%?:@#&=\\]+)?\s*<\/a><\/td><td><img src="\/img\/ok\.gif/g,
  2821. /quickshare\.cz\/stahnout-soubor\/\d+(?::[\w\-.+$!*\/()\[\]\',~%?:@#&=\\]+)?\s*<\/td><td><img src="\/img\/nenalezeno\.gif/g,
  2822. null,
  2823. null //function delegate
  2824. )
  2825. } */
  2826. if (GM_getValue("Check_oboom_dot_com_links", false))
  2827. {
  2828. addHost(
  2829. "oboom", //hostname
  2830. "oboom\\.com\/#?\\w{8}", //linkregex
  2831. "//a[contains(@href,'oboom.com/')]", //xpath
  2832. null, //blocksize
  2833. /oboom\.com\/#?(\w{8})/, //corrmatch
  2834. null, //corrreplwhat
  2835. null, //corrreplwith
  2836. null, //separator
  2837. null,
  2838. null,
  2839. null,
  2840. null, //liveregex
  2841. null, //deadregex
  2842. null,
  2843. oboomBulk //function delegate
  2844. )
  2845. }
  2846. if (GM_getValue("Check_mega_dot_nz_links", false))
  2847. {
  2848. addHost(
  2849. "mega",
  2850. "mega(?:\\.co)?\\.nz\/#!\\w+",
  2851. "//a[contains(@href,'mega.co.nz/') or contains(@href,'mega.nz/')]",
  2852. 100000, //blocksize
  2853. null, //corrmatch
  2854. null, //corrreplwhat
  2855. null, //corrreplwith
  2856. null, //separator
  2857. null,
  2858. null,
  2859. null,
  2860. null,
  2861. null,
  2862. null,
  2863. megaBulkCheck //function delegate
  2864. )
  2865. }
  2866.  
  2867. //the same as GenType2, except api url is 'https://' instead of 'http://www.' and corrmatch is not??? needed
  2868.  
  2869. if (GM_getValue("Check_extabit_dot_com_links", false))
  2870. {
  2871. addHost(
  2872. "extabit", //hostname
  2873. "extabit\\.com\/file\/\\w+", //linkregex
  2874. "//a[contains(@href,'extabit.com')]", //xpath
  2875. null, //blocksize
  2876. null, //corrmatch
  2877. null, //corrreplwhat
  2878. null, //corrreplwith
  2879. "\n", //separator
  2880. "http://extabit.com/linkchecker.jsp", //api url
  2881. "url=", //postdata
  2882. /extabit\.com\/(file\/\w+)/, //linkregex
  2883. /extabit\.com\/file\/\w+\/[^<]+<\/a><\/td>\s*<td class="status"><span class="status_green">/g, //liveregex
  2884. /extabit\.com\/file\/\w+\/[^<]+<\/a><\/td>\s*<td class="status"><span class="status_red">/g, //deadregex
  2885. /extabit\.com\/file\/\w+\/[^<]+<\/a><\/td>\s*<td class="status"><span class="status_yellow">/g, //unavaregex
  2886. extabitBulkCheck //function delegate
  2887. )
  2888. }
  2889. if (GM_getValue("Check_junocloud_dot_me_links", false))
  2890. {
  2891. addHost(
  2892. "junocloud", //hostname
  2893. "junocloud\\.me\/\\w+", //linkregex
  2894. "//a[contains(@href,'junocloud.me')]", //xpath
  2895. null, //blocksize
  2896. null, //corrmatch
  2897. null, //corrreplwhat
  2898. null, //corrreplwith
  2899. "\n", //separator
  2900. "http://junocloud.me/checkfiles.html", //api url
  2901. "op=checkfiles&process=Check+URLs&list=", //postdata
  2902. /(junocloud\.me\/\w+)/, //linkregex
  2903. /<a href="http:\/\/junocloud\.me\/\w+[^<]+<\/a>\s*<span style="color: green/g, //liveregex
  2904. /<a href="http:\/\/junocloud\.me\/\w+[^<]+<\/a>\s*<span style="color: red/g, //deadregex
  2905. null, //unavaregex
  2906. null //function delegate
  2907. )
  2908. }
  2909. if (GM_getValue("Check_webshare_dot_cz_links", false))
  2910. {
  2911. addHost(
  2912. "webshare", //hostname
  2913. "webshare\.cz\/(?:(?:#/)?file/\\w+|\\w+-.*)", //linkregex
  2914. "//a[contains(@href,'webshare.cz')]", //xpath
  2915. 100000, //blocksize
  2916. null, //corrmatch
  2917. null, //corrreplwhat
  2918. null, //corrreplwith
  2919. null, //separator
  2920. null, //api url
  2921. null, //postdata
  2922. null, //linkregex
  2923. null, //liveregex
  2924. null, //deadregex
  2925. null, //unavaregex
  2926. webshareBulkCheck //function delegate
  2927. )
  2928. }
  2929. /////////////////////////////
  2930. // Common function delegate to send links to get checked by host linkchecker
  2931. /////////////////////////////
  2932. // If you define a new delegate, you may use following properties
  2933. // this.links [array] array of strings (link blocks). The links in each block separated with host.splitSeparator.
  2934. // this.apiUrl [string] API or web linkchecker URL
  2935. // this.postData [string] POSTDATA for POST request
  2936. // this.resLiveRegex [regex] matches live substrings in the request response
  2937. // this.resDeadRegex [regex] matches dead substrings in the request response
  2938. // this.resUnavaRegex [regex] matches unava substrings in the request response (the regex is often null!)
  2939. //
  2940. // this.resLinkRegex [regex] matches links further passed to DisplayTheCheckedLinks
  2941. //
  2942. // See the code below for standard bulkcheck handling reference.
  2943. //////////////////////////////
  2944. function genBulkCheck()
  2945. {
  2946. var blockIdx = this.links.length;
  2947. while (blockIdx--)
  2948. {
  2949. postRequest(this.apiUrl, this.postData, this.links[blockIdx],
  2950. this.resLinkRegex, this.resLiveRegex, this.resDeadRegex, this.resUnavaRegex);
  2951. }
  2952. function postRequest(api, postData, links, linkRegex, liveRegex, deadRegex, unavaRegex)
  2953. {
  2954. GM_xmlhttpRequest(
  2955. {
  2956. method: 'POST',
  2957. url: api,
  2958. headers: {
  2959. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  2960. 'Content-type': 'application/x-www-form-urlencoded',
  2961. 'Referer': api,
  2962. 'X-Requested-With': 'XMLHttpRequest'
  2963. },
  2964. data: postData + encodeURIComponent(links),
  2965. onload: function (result)
  2966. {
  2967. var res = result.responseText;
  2968. // GM_log(res);
  2969. var i;
  2970.  
  2971. var livelinks = res.match(liveRegex);
  2972. var deadlinks = res.match(deadRegex);
  2973. // GM_log(livelinks);
  2974. // GM_log(deadlinks);
  2975. if (livelinks != null)
  2976. {
  2977. i = livelinks.length - 1;
  2978. do
  2979. {
  2980. livelinks[i] = livelinks[i].match(linkRegex)[1];
  2981. }
  2982. while (i--);
  2983. DisplayTheCheckedLinks(livelinks, 'alive_link');
  2984. }
  2985.  
  2986. if (deadlinks != null)
  2987. {
  2988. i = deadlinks.length - 1;
  2989. do
  2990. {
  2991. deadlinks[i] = deadlinks[i].match(linkRegex)[1];
  2992. }
  2993. while (i--);
  2994. DisplayTheCheckedLinks(deadlinks, 'adead_link');
  2995. }
  2996.  
  2997. if (unavaRegex != null)
  2998. {
  2999. var unavalinks = res.match(unavaRegex);
  3000. if (unavalinks)
  3001. {
  3002. i = unavalinks.length - 1;
  3003. do
  3004. {
  3005. unavalinks[i] = unavalinks[i].match(linkRegex)[1];
  3006. }
  3007. while (i--);
  3008. DisplayTheCheckedLinks(unavalinks, 'unava_link');
  3009. }
  3010. }
  3011. }
  3012. });
  3013. }
  3014. }
  3015. //specialized bulkchecking handlers follow
  3016. function webshareBulkCheck()
  3017. {
  3018. var arr = this.links[0].split("\r\n");
  3019. var i = arr.length;
  3020. while(i--)
  3021. {
  3022. postRequest(arr[i]);
  3023. }
  3024. //function postRequest(api, postData, links, linkRegex, liveRegex, deadRegex, unavaRegex)
  3025. function postRequest(wsLink)
  3026. {
  3027. var id = wsLink.match(/webshare\.cz\/(?:(?:#\/)?file\/)?(\w+)/)[1];
  3028. GM_xmlhttpRequest(
  3029. {
  3030. method: 'POST',
  3031. url: "http://webshare.cz/api/file_info/",
  3032. headers: {
  3033. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  3034. 'Content-type': 'application/x-www-form-urlencoded',
  3035. 'Referer': "",
  3036. },
  3037. data: "wst=&ident=" + id,
  3038. onload: function (result)
  3039. {
  3040. var res = result.responseText;
  3041. if (res.match(/<name>.+?<\/name>/))
  3042. {
  3043. DisplayTheCheckedLinks([id], 'alive_link');
  3044. }
  3045. else
  3046. {
  3047. DisplayTheCheckedLinks([id], 'adead_link');
  3048. }
  3049. }
  3050. });
  3051. }
  3052. }
  3053. //like genBulkCheck, but extabit linkchecker only works when logged in. If not logged in, non-bulk checking has to be used.
  3054. //extabit also doesn't like requests in fast succession, so some delays are added.
  3055. function extabitBulkCheck()
  3056. {
  3057. var timeoutDelay = 0;
  3058. var blockIdx = this.links.length;
  3059. while (blockIdx--)
  3060. {
  3061. postRequest(this.apiUrl, this.postData, this.links[blockIdx],
  3062. this.resLinkRegex, this.resLiveRegex, this.resDeadRegex, this.resUnavaRegex);
  3063. }
  3064. function postRequest(api, postData, links, linkRegex, liveRegex, deadRegex, unavaRegex)
  3065. {
  3066. GM_xmlhttpRequest(
  3067. {
  3068. method: 'POST',
  3069. url: api,
  3070. headers: {
  3071. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  3072. 'Content-type': 'application/x-www-form-urlencoded',
  3073. 'Referer': api,
  3074. 'X-Requested-With': 'XMLHttpRequest'
  3075. },
  3076. data: postData + encodeURIComponent(links),
  3077. onload: function (result)
  3078. {
  3079. var res = result.responseText;
  3080. if (/id="registration_header"/.test(res)) //not logged in, have to use non-bulk
  3081. {
  3082. function geturlfunc(link, tryID) //basically the geturl function with some changes (compacted, displaythecheckedlinkS, multiple tries)
  3083. {
  3084. //GM_log(tryID + ': ' + link);
  3085. GM_xmlhttpRequest(
  3086. {
  3087. method: 'GET',
  3088. url: link,
  3089. 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': ""},
  3090. onload: function(result2)
  3091. {
  3092. var res2 = result2.responseText;
  3093. var res2Status = result.status;
  3094. if (/download-file-btn/.test(res2)) {DisplayTheCheckedLinks([link], 'alive_link'); return;}
  3095. if (/Search mirrors|id="mirrb"/.test(res2) || res2Status==404) {DisplayTheCheckedLinks([link], 'adead_link'); return;}
  3096. if (/currently unavailable|temporarily unavailable|disponible en estos momentos|vorläufig unerreichbar|Файл временно недоступен/.test(res2) || res2Status == 500 || res2Status == 503)
  3097. {
  3098. if (tryID < 7)
  3099. setTimeout(function(){geturlfunc(link,tryID+1)}, tryID * 1000 + (Math.random() * tryID * 2000));
  3100. else
  3101. {DisplayTheCheckedLinks([link], 'unava_link'); return;}
  3102. }
  3103. }
  3104. });
  3105. }
  3106. //split the hrefs and check them one by one
  3107. GM_log('Using slow extabit.com link checking. Log in to extabit to use fast bulk checking.');
  3108. links = links.split('\n');
  3109. var i = links.length;
  3110. while (i--)
  3111. {
  3112. if (links[i])
  3113. {
  3114. (function(i){setTimeout(function(){geturlfunc(links[i],1)}, timeoutDelay);})(i);
  3115. timeoutDelay += 500;
  3116. }
  3117. }
  3118. return;
  3119. }
  3120. var i;
  3121.  
  3122. var livelinks = res.match(liveRegex);
  3123. var deadlinks = res.match(deadRegex);
  3124. if (livelinks != null)
  3125. {
  3126. i = livelinks.length - 1;
  3127. do
  3128. {
  3129. livelinks[i] = livelinks[i].match(linkRegex)[1];
  3130. }
  3131. while (i--);
  3132. DisplayTheCheckedLinks(livelinks, 'alive_link');
  3133. }
  3134.  
  3135. if (deadlinks != null)
  3136. {
  3137. i = deadlinks.length - 1;
  3138. do
  3139. {
  3140. deadlinks[i] = deadlinks[i].match(linkRegex)[1];
  3141. }
  3142. while (i--);
  3143. DisplayTheCheckedLinks(deadlinks, 'adead_link');
  3144. }
  3145.  
  3146. if (unavaRegex != null)
  3147. {
  3148. var unavalinks = res.match(unavaRegex);
  3149. if (unavalinks)
  3150. {
  3151. i = unavalinks.length - 1;
  3152. do
  3153. {
  3154. unavalinks[i] = unavalinks[i].match(linkRegex)[1];
  3155. }
  3156. while (i--);
  3157. DisplayTheCheckedLinks(unavalinks, 'unava_link');
  3158. }
  3159. }
  3160. }
  3161. });
  3162. }
  3163. }
  3164. function k2sBulkCheck()
  3165. {
  3166. var arr = this.links[0].split("\r\n");
  3167. var i = arr.length;
  3168. c=0;
  3169. while(i--)
  3170. {
  3171. c++;
  3172. setTimeout(k2sRequest,c*500,arr[i]);
  3173. }
  3174. }
  3175. function k2sRequest(K2SLink)
  3176. {
  3177. var id = K2SLink.match(/\/file\/(\w+)/)[1];
  3178. K2SLink2='http://k2s.cc/file/'+id;
  3179. GM_xmlhttpRequest(
  3180. {
  3181. method: 'GET',
  3182. url: K2SLink,
  3183. headers: {
  3184. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  3185. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  3186. 'Referer': ''
  3187. },
  3188. onload: function (result)
  3189. {
  3190. var res = result.responseText;
  3191. if (res.match('div class="well2"|error 404|The system is unable to find the requested action|http://keep2share.cc/file/check.html|To avoid damaged files|This file is no longer available'))
  3192. {
  3193. DisplayTheCheckedLinks([id], 'adead_link');
  3194. return;
  3195. }
  3196. if (res.match('method="post">Displaying'))
  3197. {
  3198. DisplayTheCheckedLinks([id], 'unava_link');
  3199. return;
  3200. }
  3201. if (res.match('Premium only'))
  3202. {
  3203. DisplayTheCheckedLinks([id], 'prem_link');
  3204. return;
  3205. }
  3206. if (res.match('View File|download-file-info|div class="name fontmyriadpro"|style="color: #9fb143;"'))
  3207. {
  3208. slow_id=new RegExp('<input type="hidden" name="slow_id" value="(\\w+)">');
  3209. slID=slow_id.exec(res)[1];
  3210. GM_xmlhttpRequest(
  3211. {
  3212. method: 'POST',
  3213. url: K2SLink2,
  3214. headers: {
  3215. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  3216. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  3217. 'Content-Type': 'application/x-www-form-urlencoded',
  3218. 'Referer': K2SLink
  3219. },
  3220. data: 'slow_id='+slID+'&yt0=',
  3221. onload: function (result)
  3222. {
  3223. var newres = result.responseText;
  3224. newoversizedtest=new RegExp("Free user can't download large files.");
  3225. if (newoversizedtest.test(newres))
  3226. {
  3227. DisplayTheCheckedLinks([id], 'prem_link');
  3228. return;
  3229. }
  3230. else
  3231. {
  3232. DisplayTheCheckedLinks([id], 'alive_link');
  3233. return;
  3234. }
  3235. DisplayTheCheckedLinks([id], 'unava_link');
  3236. return;
  3237. }
  3238. });
  3239. /////////////////////end additional check for oversized links
  3240. return;
  3241. }
  3242. DisplayTheCheckedLinks([id], 'unava_link');
  3243. return;
  3244. },
  3245. onerror: function ()
  3246. {
  3247. DisplayTheCheckedLinks([id], 'unava_link');
  3248. return;
  3249. }
  3250. });
  3251. }
  3252. function fboomBulkCheck()
  3253. {
  3254. var arr = this.links[0].split("\r\n");
  3255. var i = arr.length;
  3256. c=0;
  3257. while(i--)
  3258. {
  3259. c++;
  3260. setTimeout(fboomRequest,c*500,arr[i]);
  3261. }
  3262. }
  3263. function fboomRequest(FBoomLink)
  3264. {
  3265. var id = FBoomLink.match(/\/file\/(\w+)/)[1];
  3266. FBoomLink2='http://fboom.me/file/'+id;
  3267. GM_xmlhttpRequest(
  3268. {
  3269. method: 'GET',
  3270. url: FBoomLink,
  3271. headers: {
  3272. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  3273. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  3274. 'Referer': ''
  3275. },
  3276. onload: function (result)
  3277. {
  3278. var res = result.responseText;
  3279. if (res.match('class="error-v1-title">404<|File not found or deleted|This file is no longer available'))
  3280. {
  3281. DisplayTheCheckedLinks([id], 'adead_link');
  3282. return;
  3283. }
  3284. if (res.match('method="post">Displaying'))
  3285. {
  3286. DisplayTheCheckedLinks([id], 'unava_link');
  3287. return;
  3288. }
  3289. if (res.match('only for premium members'))
  3290. {
  3291. DisplayTheCheckedLinks([id], 'prem_link');
  3292. return;
  3293. }
  3294. if (res.match('id="download-free" href="#"'))
  3295. {
  3296. slow_id=new RegExp('<a id="download-free" href="#" class="free-button btn-u" data-slow-id="(\\w+)">');
  3297. slID=slow_id.exec(res)[1];
  3298. GM_xmlhttpRequest(
  3299. {
  3300. method: 'POST',
  3301. url: FBoomLink2,
  3302. headers: {
  3303. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  3304. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  3305. 'Content-Type': 'application/x-www-form-urlencoded',
  3306. 'Referer': FBoomLink
  3307. },
  3308. data: 'slow_id='+slID,
  3309. onload: function (result)
  3310. {
  3311. var newres = result.responseText;
  3312. newoversizedtest=new RegExp("Free user can't download large files.|Downloading is not possible");
  3313. if (newoversizedtest.test(newres))
  3314. {
  3315. DisplayTheCheckedLinks([id], 'prem_link');
  3316. return;
  3317. }
  3318. else
  3319. {
  3320. DisplayTheCheckedLinks([id], 'alive_link');
  3321. return;
  3322. }
  3323. DisplayTheCheckedLinks([id], 'unava_link');
  3324. return;
  3325. }
  3326. });
  3327. /////////////////////end additional check for oversized links
  3328. return;
  3329. }
  3330. DisplayTheCheckedLinks([id], 'unava_link');
  3331. return;
  3332. },
  3333. onerror: function ()
  3334. {
  3335. DisplayTheCheckedLinks([id], 'unava_link');
  3336. return;
  3337. }
  3338. });
  3339. }
  3340. function dl4free_1fichier_BulkCheck()
  3341. {
  3342. var arr = this.links[0].split("\r\n");
  3343. var i = arr.length;
  3344. while(i--)
  3345. {
  3346. CorrectRE = new RegExp('(https?):\\/\\/(?:www\\.)?(\\w{5,15})\\.1fichier\\.com');
  3347. arr[i]=arr[i].replace(CorrectRE, '$1://1fichier.com/?$2');
  3348. gethead_dl4free_1fichier(arr[i]);
  3349. }
  3350. }
  3351. function gethead_dl4free_1fichier(link)
  3352. {
  3353. var id = link.match(/(?:1fichier|dl4free)\.com(?:\/)?\?(\w{6,})/)[1];
  3354. GM_xmlhttpRequest(
  3355. {
  3356. method: 'HEAD',
  3357. url: link,
  3358. headers: {
  3359. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  3360. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  3361. 'Referer': ''
  3362. },
  3363. onload: function (result)
  3364. {
  3365. if (result.responseHeaders.match(/Content-Disposition: attachment; filename=/))//direct download
  3366. {
  3367. DisplayTheCheckedLinks([id], 'alive_link');
  3368. return;
  3369. }
  3370. else
  3371. {
  3372. getlink_dl4free_1fichier(link);
  3373. }
  3374. return;
  3375. },
  3376. onerror: function ()
  3377. {
  3378. DisplayTheCheckedLinks([id], 'unava_link');
  3379. }
  3380. });
  3381. }
  3382. function getlink_dl4free_1fichier(link)
  3383. {
  3384. var id = link.match(/(?:1fichier|dl4free)\.com(?:\/)?\?(\w{6,})/)[1];
  3385. GM_xmlhttpRequest(
  3386. {
  3387. method: 'GET',
  3388. url: link,
  3389. headers: {
  3390. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  3391. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  3392. 'Referer': ''
  3393. },
  3394. onload: function (result)
  3395. {
  3396. var res = result.responseText;
  3397. 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>');
  3398. if (deadRegex.test(res))
  3399. {
  3400. DisplayTheCheckedLinks([id], 'adead_link');
  3401. return;
  3402. }
  3403. premiumRegex=new RegExp('only for premium users');
  3404. if (premiumRegex.test(res))
  3405. {
  3406. DisplayTheCheckedLinks([id], 'prem_link');
  3407. return;
  3408. }
  3409. 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="');
  3410. if (liveRegex.test(res))
  3411. {
  3412. DisplayTheCheckedLinks([id], 'alive_link');
  3413. return;
  3414. }
  3415. DisplayTheCheckedLinks([id], 'unava_link');
  3416. },
  3417. onerror: function ()
  3418. {
  3419. DisplayTheCheckedLinks([id], 'unava_link');
  3420. }
  3421. });
  3422. }
  3423. function depositfilesBulkCheck()
  3424. {
  3425. var arr = this.links[0].split("\r\n");
  3426. var i = arr.length;
  3427. var seqno = Math.floor(Math.random()*1000000000);
  3428. while(i--)
  3429. {
  3430. DFpostRequest(arr[i]);
  3431. }
  3432. }
  3433. function DFpostRequest(DFLink)
  3434. {
  3435. DFLink=DFLink.replace('depositfiles.lt/','depositfiles.com/');
  3436. DFLink=DFLink.replace('depositfiles.org/','depositfiles.com/');
  3437. DFLink=DFLink.replace('dfiles.ru/','depositfiles.com/');
  3438. DFLink=DFLink.replace('dfiles.eu/','depositfiles.com/');
  3439. DFLink=DFLink.replace('depositfiles.com/en/','depositfiles.com/');
  3440. var id = DFLink.match(/depositfiles\.com\/files\/(\w+)/)[1];
  3441. GM_xmlhttpRequest(
  3442. {
  3443. method: "GET",
  3444. url: "http://depositfiles.com/api/get_download_info.php?id=" + id + "&format=json",
  3445. headers: {
  3446. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3447. 'Content-Type': 'application/x-www-form-urlencoded',
  3448. 'Referer': ""
  3449. },
  3450. onload: function (result)
  3451. {
  3452. var res = result.responseText;
  3453. if (res.match('(?:no_file|file_ban)'))
  3454. {
  3455. DisplayTheCheckedLinks([id], 'adead_link');
  3456. return;
  3457. }
  3458. if (res.match('"download_li(?:nk|mit)|password_check|file_storage"'))
  3459. {
  3460. DisplayTheCheckedLinks([id], 'alive_link');
  3461. return;
  3462. }
  3463. DisplayTheCheckedLinks([id], 'unava_link');
  3464. }
  3465. });
  3466. }
  3467.  
  3468. function megaBulkCheck()
  3469. {
  3470. var arr = this.links[0].split("\r\n");
  3471. var i = arr.length;
  3472. var seqno = Math.floor(Math.random()*1000000000);
  3473. while(i--)
  3474. {
  3475. postRequest(arr[i]);
  3476. }
  3477. function postRequest(megaLink)
  3478. {
  3479. megaLink=megaLink.replace('mega.nz/','mega.co.nz/');
  3480. var id = megaLink.match(/mega\.co\.nz\/#!(\w+)(?:!\w+)?/)[1];
  3481. GM_xmlhttpRequest(
  3482. {
  3483. method: "POST",
  3484. url: 'https://g.api.mega.co.nz/cs?id=' + seqno++,
  3485. data: '[{"a":"g","p":"' + id + '","ssl": "1"}]',
  3486. headers: {
  3487. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3488. 'Content-Type': 'application/xml',
  3489. 'Referer': "https://mega.co.nz/"
  3490. },
  3491. onload: function (result)
  3492. {
  3493. var res = $.parseJSON(result.responseText.match(/\[(.+?)\]/)[1]);
  3494. if ((typeof res == "number" && (res == -9 || res == -16 || res == -6)) || res.d)
  3495. {
  3496.  
  3497. DisplayTheCheckedLinks([id], 'adead_link');
  3498. }
  3499. if (res.at)
  3500. {
  3501. DisplayTheCheckedLinks([id], 'alive_link');
  3502. }
  3503. if (res.e == "ETEMPUNAVAIL")
  3504. {
  3505. DisplayTheCheckedLinks([id], 'unava_link');
  3506. }
  3507. }
  3508. });
  3509. }
  3510.  
  3511. }
  3512.  
  3513. function oboomBulk() {
  3514. var a = [], b = [], c = [];
  3515. var array = this.links;
  3516.  
  3517. GM_xmlhttpRequest({
  3518. method: 'GET',
  3519. url: 'https://www.oboom.com/1/guestsession',
  3520. headers: {
  3521. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  3522. 'Content-type': 'application/x-www-form-urlencoded',
  3523. 'Referer': 'https://www.oboom.com',
  3524. 'X-Requested-With': 'XMLHttpRequest'
  3525. },
  3526. onload: function(result) {
  3527. var blockIdx = array.length;
  3528. var token = JSON.parse(result.responseText)[1];
  3529. while (blockIdx--) {
  3530. startCheck(array[blockIdx].split('\r\n'), token);
  3531. }
  3532. }
  3533. });
  3534.  
  3535. function startCheck(links, token) {
  3536. GM_xmlhttpRequest({
  3537. method: 'POST',
  3538. url: "https://api.oboom.com/1/info",
  3539. headers: {
  3540. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  3541. 'Content-type': 'application/x-www-form-urlencoded',
  3542. 'Referer': 'https://www.oboom.com/',
  3543. 'X-Requested-With': 'XMLHttpRequest'
  3544. },
  3545. data: "token=" + token + "&items=" + links.join(","),
  3546. onload: function(result) {
  3547. var res = JSON.parse(result.responseText)[1];
  3548. var i = res.length, s;
  3549.  
  3550. while (i--) {
  3551. s = res[i].state;
  3552. if (s == 'online') a.push(res[i].id);
  3553. 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);
  3554. else c.push(res[i].id);
  3555. }
  3556.  
  3557. if (a.length > 0) DisplayTheCheckedLinks(a, 'alive_link');
  3558. if (b.length > 0) DisplayTheCheckedLinks(b, 'adead_link');
  3559. if (c.length > 0) DisplayTheCheckedLinks(c, 'unava_link');
  3560. }
  3561. });
  3562. }
  3563. }
  3564. function linksaveBulkCheck()
  3565. {
  3566. var arr = this.links[0].split("\r\n");
  3567. var i = arr.length;
  3568. while(i--)
  3569. {
  3570. postRequest(arr[i]);
  3571. }
  3572. function postRequest(lsLink)
  3573. {
  3574. GM_xmlhttpRequest(
  3575. {
  3576. method: "GET",
  3577. url: lsLink + '-t.jpg',
  3578. headers: {
  3579. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3580. 'Accept': 'text/xml',
  3581. 'Referer': ""
  3582. },
  3583. onload: function (result)
  3584. {
  3585. var imgLen = result.responseHeaders.match(/Content-Length: (\d+)/)[1];
  3586. if (imgLen == 965) //online
  3587. {
  3588. DisplayTheCheckedLinks([lsLink], 'alive_link');
  3589. }
  3590.  
  3591. if (imgLen == 972) //offline
  3592. {
  3593. DisplayTheCheckedLinks([lsLink], 'adead_link');
  3594. }
  3595. if (imgLen == 978) //unava
  3596. {
  3597. DisplayTheCheckedLinks([lsLink], 'unava_link');
  3598. }
  3599. }
  3600. });
  3601. }
  3602.  
  3603. }
  3604. function linkcryptBulkCheck()
  3605. {
  3606. var arr = this.links[0].split("\r\n");
  3607. var i = arr.length;
  3608. while(i--)
  3609. {
  3610. postRequest(arr[i]);
  3611. }
  3612. function postRequest(lcLink)
  3613. {
  3614. GM_xmlhttpRequest(
  3615. {
  3616. method: "GET",
  3617. url: 'http://linkcrypt.ws/api.html?api=status_V1&folderKey=' + lcLink.match(/dir\/(\w+)/)[1],
  3618. headers: {
  3619. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3620. 'Accept': 'text/xml',
  3621. 'Referer': ""
  3622. },
  3623. onload: function (result)
  3624. {
  3625. var res = result.responseText;
  3626. if (res.match(/<errorCode>1101|folderStatus>[23]/)) //Offline status
  3627. {
  3628. DisplayTheCheckedLinks([lcLink], 'adead_link');
  3629. return;
  3630. }
  3631. if (res.match(/folderStatus>1/)) //Online status
  3632. {
  3633. DisplayTheCheckedLinks([lcLink], 'alive_link');
  3634. }
  3635. else
  3636. {
  3637. DisplayTheCheckedLinks([lcLink], 'unava_link');
  3638. }
  3639. }
  3640. });
  3641. }
  3642. }
  3643.  
  3644. function megashareBulkCheck()
  3645. {
  3646. var arr = this.links[0].split("\r\n");
  3647. var i = arr.length;
  3648. while(i--)
  3649. {
  3650. postRequest(arr[i]);
  3651. }
  3652. function postRequest(msLink)
  3653. {
  3654. GM_xmlhttpRequest(
  3655. {
  3656. method: "GET",
  3657. url: msLink,
  3658. headers: {
  3659. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3660. 'Content-Type': 'application/x-www-form-urlencoded',
  3661. 'Referer': ""
  3662. },
  3663. onload: function (result)
  3664. {
  3665. var prZVal = result.responseText.match(/name="(\d+prZVal)" value="(\d+)">/);
  3666. var btn3Name = result.responseText.match(/src="images\/dwn-btn3\.gif" name="(.+?)"/);
  3667. if ((prZVal == null) || (btn3Name == null))
  3668. {
  3669. return;
  3670. }
  3671. GM_xmlhttpRequest(
  3672. {
  3673. method: "POST",
  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. data: prZVal[1] + "=" + prZVal[2] + '&' + btn3Name[1] + '.x=1&' + btn3Name[1] + '.y=1',
  3681. onload: function (result)
  3682. {
  3683. var res = result.responseText;
  3684. if (res.match(/<div id="err">/))
  3685. {
  3686. DisplayTheCheckedLinks([msLink.match(/\.com(\/\d+)/)[1]], 'adead_link');
  3687. }
  3688. else
  3689. {
  3690. DisplayTheCheckedLinks([msLink.match(/\.com(\/\d+)/)[1]], 'alive_link');
  3691. }
  3692. }
  3693. });
  3694. }
  3695. });
  3696. }
  3697. }
  3698. function ncryptBulkCheck()
  3699. {
  3700. var arr = this.links[0].split("\r\n");
  3701. var i = arr.length;
  3702. while(i--)
  3703. {
  3704. postRequest(arr[i]);
  3705. }
  3706. function postRequest(ncryptLink)
  3707. {
  3708. GM_xmlhttpRequest(
  3709. {
  3710. method: "POST",
  3711. url: 'http://ncrypt.in/api_status.php',
  3712. headers: {
  3713. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3714. 'Content-Type': 'application/x-www-form-urlencoded',
  3715. 'Referer': ""
  3716. },
  3717. data: 'link=' + encodeURI(ncryptLink),
  3718. onload: function (result)
  3719. {
  3720. var foldStatus = result.responseText.match(/(?:offline|online);/);
  3721. switch(foldStatus + ""){
  3722. case "offline;": DisplayTheCheckedLinks([ncryptLink], 'adead_link'); break;
  3723. case "online;": DisplayTheCheckedLinks([ncryptLink], 'alive_link'); break;
  3724. default: DisplayTheCheckedLinks([ncryptLink], 'unava_link');
  3725. }
  3726. }
  3727. });
  3728. }
  3729. }
  3730. function hellshareBulkCheck()
  3731. {
  3732. var links = this.links;
  3733. GM_xmlhttpRequest(
  3734. {
  3735. method: "GET",
  3736. url: 'http://www.hellshare.com',
  3737. headers: {
  3738. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3739. 'Accept': 'text/xml',
  3740. 'Referer': ""
  3741. },
  3742. onload: function (result)
  3743. {
  3744. var domain = result.responseText.match(/param_rau = "www\.hellshare\.(\w+)"/)[1];
  3745.  
  3746. var loc = 'check=Zkontrolovat+dostupnost+soubor%C5%AF&links=';
  3747. if (domain == 'sk')
  3748. loc = 'check=Skontrolova%C5%A5&links=';
  3749. if (domain == 'com')
  3750. loc = 'check=Check+availability&links=';
  3751. if (domain == 'hu')
  3752. loc = 'check=Kontrol%C3%A1lj&links=';
  3753. if (domain == 'pl')
  3754. loc = 'check=Sprawd%C5%BC+dost%C4%99pno%C5%9B%C4%87+plik%C3%B3w&links=';
  3755.  
  3756. genBulkCheck.call({ links: links,
  3757. apiUrl: 'http://www.hellshare.' + domain + '/linkchecker?do=linkChecker-linkcheckerform-submit',
  3758. postData: loc,
  3759. resLinkRegex: /hellshare\.(?:cz|com|sk|hu|pl)\/(?:[\w-\.]+\/|)([\w-\.]+\/\d{5,})/,
  3760. 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,
  3761. resDeadRegex: /<span style="color:gray">.*?<\/span> - <strong>/g,
  3762. resUnavaRegex: null
  3763. });
  3764. }
  3765. });
  3766. }
  3767. /**
  3768. * Displays check result
  3769. * @param {Array} Array of links or link fragments.
  3770. * @param {String} Check result status -> ['alive_link'|'adead_link'|'unava_link']
  3771. */
  3772. function DisplayTheCheckedLinks(links, resultStatus)
  3773. {
  3774. //(a[href*=link_1], a[href*=link_2], ..., a[href*=link_n])
  3775. var $links = $('a[href*="' + links.join('"], a[href*="') + '"]');
  3776. if (Do_not_linkify_DL_links)
  3777. { //TODO into separate jQuery function
  3778. $links.replaceWith(function(){
  3779. return '<span href="' + this.href + '">' + $(this).text() + '</span>';
  3780. });
  3781. $links = $('span[href*="' + links.join('"], span[href*="') + '"]');
  3782. }
  3783. $links.removeClass().addClass(resultStatus);
  3784. $links.each(function() {
  3785. this.href = Ref_anonymize_service + $(this).attr("href");
  3786. });
  3787. switch(resultStatus)
  3788. {
  3789. case "alive_link": cLinksAlive += $links.length;
  3790. if (Display_tooltip_info) $links.mouseover(displayTooltipInfo);
  3791. break;
  3792. case "adead_link": cLinksDead += $links.length;
  3793. if (Display_tooltip_info) $links.mouseover(displayTooltipError);
  3794. break;
  3795. case "prem_link": cLinksprem += $links.length;
  3796. if (Display_tooltip_info) $links.mouseover(displayTooltipError);
  3797. break;
  3798. case "unava_link": cLinksUnava += $links.length; break;
  3799. default:
  3800. }
  3801. cLinksProcessed += $links.length;
  3802. }
  3803. }
  3804. // starts bulkchecking
  3805. //
  3806. // params
  3807. // filterId [string] restricts link detection with passed id attribute
  3808. function startBulkCheck(filterId)
  3809. {
  3810. var cHosts = bulkHosts.length;
  3811. if (cHosts == 0) //no filehostings selected
  3812. return;
  3813. // STEP 1 linkify the links
  3814. var linkifyRegex = '';
  3815. var hostIdx = cHosts;
  3816. while(hostIdx--)
  3817. {
  3818. linkifyRegex += bulkHosts[hostIdx].linkRegex + "|";
  3819. }
  3820. linkifyRegex = linkifyRegex.replace(/\|$/, '');
  3821. linkify(linkifyRegex);
  3822. //
  3823. //STEP 2 detect link objects
  3824. var xpathAll = '';
  3825. var hostIdx = cHosts;
  3826. while(hostIdx--)
  3827. {
  3828. xpathAll += bulkHosts[hostIdx].xpath + "|";
  3829. }
  3830. xpathAll = xpathAll.replace(/\]\|\/\/a\[/g, " or ");
  3831. xpathAll = xpathAll.replace(/\]\|/, ')]');
  3832. if (filterId != null) //insert id restriction in the xpath
  3833. {
  3834. xpathAll = xpathAll.replace(/\[/, "[@class='" + filterId + "' and (");
  3835. }
  3836. else
  3837. {
  3838. xpathAll = xpathAll.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  3839. }
  3840. var links = document.evaluate(xpathAll, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  3841. if (filterId == null)
  3842. {
  3843. cLinksTotal += links.snapshotLength;
  3844. }
  3845. //
  3846. //STEP 3 bind links with hostings
  3847. var linkIdx = links.snapshotLength;
  3848. var href = null;
  3849. if (linkIdx == 0) // no links found
  3850. return;
  3851. var name;
  3852. while (linkIdx--)
  3853. {
  3854. href = links.snapshotItem(linkIdx).href;
  3855. try // DO NOT REMOVE, filters crap that went through xpath detection
  3856. {
  3857. name = gimmeHostName(href);
  3858. if (href.match(bulkHostNames[name].linkRegexObject) != null)
  3859. bulkHostNames[name].links.push(href);
  3860. }
  3861. catch(e)
  3862. {
  3863.  
  3864. }
  3865. }
  3866. //
  3867. //STEP 4 process the links for each filehosting
  3868. var hostIdx = cHosts;
  3869. var host;
  3870. var m,n;
  3871. var arr;
  3872. while (hostIdx--)
  3873. {
  3874. host = bulkHosts[hostIdx];
  3875. arr = host.links;
  3876. if (arr.length == 0) //no links for this hosting, skip
  3877. {
  3878. continue;
  3879. }
  3880. //links match corrections
  3881. if (host.corrMatch != null)
  3882. {
  3883. var idx = arr.length;
  3884. while (idx--)
  3885. {
  3886. arr[idx] = arr[idx].match(host.corrMatch)[1];
  3887. }
  3888. }
  3889. //links replace corrections
  3890. if ((host.corrReplWhat != null) && (host.corrReplWith != null))
  3891. {
  3892. var idx = arr.length;
  3893. while (idx--)
  3894. {
  3895. arr[idx] = arr[idx].replace(host.corrReplWhat, host.corrReplWith);
  3896. }
  3897. }
  3898. m = arr.length;
  3899. n = host.blockSize;
  3900. if (m > n)
  3901. {
  3902. //insert block separators (RAND_STRING) into the array
  3903. for(var i = n; i < m; i += n + 1)
  3904. {
  3905. arr.splice(i, 0, RAND_STRING);
  3906. }
  3907. }
  3908.  
  3909. host.func.call({ links: arr.join(host.splitSeparator).split(RAND_STRING),
  3910. apiUrl: host.apiUrl,
  3911. postData: host.postData,
  3912. resLinkRegex: host.resLinkRegex,
  3913. resLiveRegex: host.resLiveRegex,
  3914. resDeadRegex: host.resDeadRegex,
  3915. resUnavaRegex: host.resUnavaRegex
  3916. });
  3917. //clean up
  3918. arr.length = 0;
  3919. }
  3920. //
  3921.  
  3922. function gimmeHostName(link)
  3923. {
  3924. return link.replace(/https?:\/\/.*?http(s)?:\/\//, "http$1://").match(/https?:\/\/(?:www\.|[\w\.])*?([\w-]+)\.(?:co\.uk|co\.nz|\w+)\//)[1];
  3925. }
  3926. }
  3927. function checkLinks(filterId)
  3928. {
  3929. startBulkCheck(filterId);
  3930. start(filterId);
  3931. }
  3932.  
  3933. /**
  3934. * Initialises progress box including event binding and CSS
  3935. */
  3936. function initProgressBox()
  3937. {
  3938. if ($("#warlc-progressbox").length > 0)
  3939. return;
  3940. //progressbox css change size and color of progress box
  3941. GM_addStyle("#warlc-progressbox {position:fixed; background:DimGray;" + Progress_box_background_color +
  3942. "; opacity:" + (Progress_box_opacity / 100) +
  3943. "; bottom:" + Progress_box_pos_bottom +
  3944. "px; right:" + Progress_box_pos_right +
  3945. "px; padding:5px; font-size:20px; font-weight:bold; cursor:default;}\
  3946. \
  3947. .warlc-progressbar {text-align:center; color: DimGray; height:2px; margin-bottom:2px;}\
  3948. \
  3949. .warlc-progressitem {}\
  3950. \
  3951. .alive {color:#00FF7F; " + Live_links_color +
  3952. "; background:transparent url(" + alive_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;} .dead {color:" + Dead_links_color +
  3953. "; background:transparent url(" + adead_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;} .unava {color: " + Temp_unavailable_links_color +
  3954. "; background:transparent url(" + unava_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;} .processing {color:Black; " + Container_links_color +
  3955. "; background:transparent url(" + processing_link_gif + ") no-repeat scroll 100% 50%;padding-right:15px;} .prem {color:" + Premium_links_color +
  3956. "; background:transparent url(" + prem_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;}"
  3957. );
  3958. //
  3959. $('body').append(' <div id="warlc-progressbox">\
  3960. <div class="warlc-progressbar"></div>\
  3961. <span class="warlc-progressitem alive"></span> - \
  3962. <span class="warlc-progressitem dead"></span> - \
  3963. <span class="warlc-progressitem unava"></span> - \
  3964. <span class="warlc-progressitem prem"></span> - \
  3965. <span class="warlc-progressitem processing"></span>\
  3966. </div>');
  3967. $('#warlc-progressbox').hide().click(function(){
  3968. clearInterval(intervalId);
  3969. $(this).hide();
  3970. return false;
  3971. });
  3972. $(".warlc-progressbar").progressbar({complete: function(){
  3973. $(this).fadeOut();
  3974. clearInterval(intervalId); //stop refreshing the stats
  3975. }
  3976. })
  3977. .one('progressbarchange', function(){$('#warlc-progressbox').show();});
  3978. }
  3979. /**
  3980. * Updates progress data in progress box
  3981. */
  3982. function updateProgress()
  3983. {
  3984. $("#warlc-progressbox").attr('aria-valuenow', Math.round(((100 / cLinksTotal) * cLinksProcessed)));
  3985. if (cLinksTotal) // some links were detected on page
  3986. {
  3987. var percProgress = Math.round(((100 / cLinksTotal) * cLinksProcessed));
  3988. var $progressItems = $('#warlc-progressbox > .warlc-progressitem');
  3989. $(".warlc-progressbar").progressbar('option', 'value', percProgress);
  3990. if ((cLinksTotal - cLinksProcessed) == 0)
  3991. {
  3992. $progressItems.first().text(cLinksAlive)
  3993. .next().text(cLinksDead)
  3994. .next().text(cLinksUnava)
  3995. .next().text(cLinksprem)
  3996. .next().remove();
  3997. $('#warlc-progressbox').html($('#warlc-progressbox').html().substr(0,$('#warlc-progressbox').html().lastIndexOf(">")+1));
  3998. $('#warlc-progressbox div:first-child').remove();
  3999. }
  4000. else
  4001. {
  4002. $progressItems.first().text(cLinksAlive)
  4003. .next().text(cLinksDead)
  4004. .next().text(cLinksUnava)
  4005. .next().text(cLinksprem)
  4006. .next().text(cLinksTotal - cLinksProcessed);
  4007. }
  4008. }
  4009. }
  4010.  
  4011. function check_all_links()
  4012. {
  4013. add_WARLC_style();
  4014.  
  4015. if (Show_progress_stats)
  4016. {
  4017. initProgressBox();
  4018. intervalId = setInterval(function(){updateProgress();}, Progress_box_refresh_rate);
  4019. }
  4020.  
  4021. startBulkCheck(null);
  4022. start(null);
  4023.  
  4024. if (!containers_processed)
  4025. {
  4026. processContainers();
  4027. }
  4028. }
  4029.  
  4030. //Copies all found dead links to clipboard - right now for Scriptish only
  4031. function copy_dead_to_clipboard()
  4032. {
  4033. initClipBoardTools();
  4034.  
  4035. var deadlinksxpath = "//.[@class='adead_link']";
  4036.  
  4037. var foundlinks = document.evaluate(deadlinksxpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4038. var foundlinkstext = '';
  4039.  
  4040. var foundlinkIdx = foundlinks.snapshotLength;
  4041.  
  4042. while(foundlinkIdx--)
  4043. {
  4044. if (foundlinks.snapshotItem(foundlinkIdx).innerHTML != ' x')
  4045. foundlinkstext += foundlinks.snapshotItem(foundlinkIdx).innerHTML.replace(/\[\/hide:\w+\]/,"") + '\n';
  4046. }
  4047.  
  4048. unsafeWindow.copyToClipboard(foundlinkstext);
  4049. }
  4050.  
  4051. function toggle_autocheck()
  4052. {
  4053. var currentState = GM_getValue("Autocheck", false);
  4054. GM_setValue("Autocheck", !currentState);
  4055.  
  4056. if (currentState == true)
  4057. {
  4058. sendMessage('Autocheck disabled', 'red');
  4059. }
  4060. else
  4061. {
  4062. sendMessage('Autocheck enabled', 'SpringGreen');
  4063. }
  4064. }
  4065. function toggle_Enable_Anonymizer()
  4066. {
  4067. var currentState = GM_getValue("Enable_Anonymizer", false);
  4068. GM_setValue("Enable_Anonymizer", !currentState);
  4069.  
  4070. if (currentState == true)
  4071. {
  4072. GM_setValue("Ref_anonymize_service", "");
  4073. sendMessage('Anonymizer Disabled', 'red');
  4074. }
  4075. else
  4076. {
  4077. GM_setValue("Ref_anonymize_service", "http://hiderefer.com/?");
  4078. sendMessage('Anonymizer Enabled', 'SpringGreen');
  4079. }
  4080. }
  4081.  
  4082. function KeyDownHandler(event)
  4083. {
  4084. var kcode = (event.keyCode) ? event.keyCode : event.which;
  4085. if (event.ctrlKey && event.altKey)
  4086. {
  4087. switch(kcode)
  4088. {
  4089. case 65 : check_all_links(); break;
  4090. case 67 : configuration(); break;
  4091. case 68 : copy_dead_to_clipboard(); break;
  4092. case 87 : toggle_autocheck(); break;
  4093. case 90 : toggle_Enable_Anonymizer(); break;
  4094. }
  4095. }
  4096. }
  4097.  
  4098. //
  4099. //
  4100. // SCRIPT EXECUTION START POINT
  4101. //
  4102. //
  4103. // Safari specific GM_getResourceText override
  4104. if (navigator.userAgent.indexOf('Safari') != -1 && navigator.userAgent.indexOf('Chrome') == -1)
  4105. {
  4106. GM_getResourceText = function(res) {
  4107. var $cssText = GM_getValue("jquery_css", "");
  4108. if ($cssText == "")
  4109. {
  4110. GM_xmlhttpRequest(
  4111. {
  4112. method: 'GET',
  4113. url: 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css',
  4114. onload: function (result)
  4115. {
  4116. GM_setValue("jquery_css", result.responseText);
  4117. window.location.reload();
  4118. }
  4119. });
  4120. }
  4121. else
  4122. {
  4123. return $cssText;
  4124. }
  4125. }
  4126. }
  4127. var jQueryUICSS = GM_getResourceText("jQueryUICSS");
  4128. GM_addStyle(jQueryUICSS);
  4129. //init the stuff
  4130. setVariables();
  4131. initBulkCheck();
  4132. //init info boxes
  4133. messageBox.style.position = 'fixed';
  4134. messageBox.style.top = '20px';
  4135. messageBox.style.left = '10px';
  4136. messageBox.style.opacity = '0.85';
  4137. messageBox.style.background = 'DimGray';
  4138. messageBox.style.fontSize = '36px';
  4139. document.body.appendChild(messageBox);
  4140.  
  4141. //register GM menu commands & keyboard shortcut event handler
  4142. if (Keyboard_functions)
  4143. {
  4144. $(document).keydown(KeyDownHandler);
  4145. GM_registerMenuCommand("[W.A.R. Links Checker] Configuration (" + first_key_keycodename + "+" + second_key_keycodename + "+" + String.fromCharCode(CONFIGURATION_KEYCODE) + ")", configuration);
  4146. 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);
  4147. }
  4148. else
  4149. {
  4150. GM_registerMenuCommand("[W.A.R. Links Checker] Configuration", configuration);
  4151. GM_registerMenuCommand("[W.A.R. Links Checker] Check The Links In This Page", check_all_links);
  4152. }
  4153.  
  4154. //start linkchecking
  4155. if (Autocheck)
  4156. {
  4157. $(document).ready(check_all_links);
  4158. }
  4159.  
  4160. //
  4161. //
  4162. // SCRIPT EXECUTION END POINT
  4163. //
  4164. //
  4165.  
  4166. //shows configuration box
  4167. function configuration()
  4168. {
  4169.  
  4170. //prevent multiple creating of config window
  4171. if ($("#hideshow").length)
  4172. {
  4173. $("#hideshow").show();
  4174. return;
  4175. }
  4176.  
  4177. var configcss = '\
  4178. .popup_block .popup fieldset{\
  4179. padding: 1%;\
  4180. border-style: solid;\
  4181. border-width: 1px;\
  4182. border-color: gray;\
  4183. margin-bottom: 1px;\
  4184. }\
  4185. #h3hideshowtitle{\
  4186. font-size: 2em;\
  4187. }\
  4188. #h3hideshow{\
  4189. font-size: 1.5em;\
  4190. }\
  4191. #imghideshow {\
  4192. border: none;\
  4193. }\
  4194. #plusimage{\
  4195. display:inline;\
  4196. }\
  4197. #hideshow {\
  4198. position: fixed;\
  4199. width: 100%;\
  4200. height: 100%;\
  4201. top: 0;\
  4202. left: 0;\
  4203. font-size:12px;\
  4204. z-index:2147483645;\
  4205. text-align:left;\
  4206. }\
  4207. #fade {\
  4208. background: #000;\
  4209. position: fixed;\
  4210. width: 100%;\
  4211. height: 100%;\
  4212. opacity: .80;\
  4213. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";\
  4214. left: 0;\
  4215. z-index: 10;\
  4216. }\
  4217. .popup_block {\
  4218. font-family:verdana;\
  4219. color:black;\
  4220. background: #ddd;\
  4221. padding: 10px 20px;\
  4222. border: 2px solid DarkOrange;\
  4223. float: left;\
  4224. width: 700px;\
  4225. position: absolute;\
  4226. top: 7%;\
  4227. left: 50%;\
  4228. bottom: 7%;\
  4229. margin: 0 0 0 -350px;\
  4230. -moz-border-radius:10px;\
  4231. z-index: 100;\
  4232. \
  4233. }\
  4234. .popup_block .popup {\
  4235. float: left;\
  4236. width: 100%;\
  4237. background: #fff;\
  4238. margin: 10px 0;\
  4239. padding: 0px 0 0px;\
  4240. border-left: 1px solid #bbb;\
  4241. border-top: 1px solid #bbb;\
  4242. border-right: 1px solid #bbb;\
  4243. }\
  4244. #h3hideshow{\
  4245. margin: 1px 0 0px;\
  4246. padding: 1px 10px;\
  4247. border-bottom: 1px solid #bbb;\
  4248. font-size: 1.5em;\
  4249. font-weight: normal;\
  4250. cursor:pointer;\
  4251. background:#DDDDDD none repeat scroll 0 0;\
  4252. }\
  4253. #h3hideshow:hover{\
  4254. background:#C0BEBE none repeat scroll 0 0;\
  4255. }\
  4256. #h3hideshowtitle{\
  4257. margin: 2px 0 0px;\
  4258. padding: 7px 10px;\
  4259. border-bottom: 1px solid #bbb;\
  4260. font-size: 1.5em;\
  4261. font-weight: normal;\
  4262. }\
  4263. .popup_block .popup a {\
  4264. color:DarkSkyBlue;\
  4265. text-decoration:none;\
  4266. }\
  4267. .popup p {\
  4268. padding: 1px 10px;\
  4269. margin: 0px 0;\
  4270. -x-system-font:none;\
  4271. font-family:verdana,geneva,lucida,"lucida grande",arial,helvetica,sans-serif;\
  4272. font-size:10pt;\
  4273. font-size-adjust:none;\
  4274. font-stretch:normal;\
  4275. font-style:normal;\
  4276. font-variant:normal;\
  4277. font-weight:normal;\
  4278. line-height:normal;\
  4279. }\
  4280. #sites {\
  4281. padding: 1px 10px;\
  4282. margin: 0px 0;display:inline-block;width:16em;\
  4283. }\
  4284. #dev_ver {\
  4285. color: #00FF00;\
  4286. background: Black;\
  4287. text-align: right;\
  4288. }\
  4289. #sites_suspended {\
  4290. padding: 1px 10px;\
  4291. margin: 0px 0;display:inline-block;width:16em;\
  4292. text-decoration: line-through;\
  4293. }\
  4294. .popup img.cntrl {\
  4295. position: absolute;\
  4296. right: -15px;\
  4297. top: -15px;\
  4298. }\
  4299. #bulk {\
  4300. font-size:8pt;\
  4301. color:orange;\
  4302. padding: 1px 10px;\
  4303. margin: 0px 0;\
  4304. display:inline-block;\
  4305. width:100px;\
  4306. }\
  4307. #note {\
  4308. font-size:7pt;\
  4309. color:gray;\
  4310. padding: 1px 10px;\
  4311. margin: 0px 0;display:inline-block;\
  4312. min-width:100px;\
  4313. }\
  4314. #rednote {\
  4315. font-size:7pt;\
  4316. color:red;\
  4317. padding: 1px 10px;\
  4318. margin: 0px 0;display:inline-block;\
  4319. }\
  4320. #configinfo {\
  4321. font-size:8pt;\
  4322. color:gray;\
  4323. padding: 1px 10px;\
  4324. margin: 0px 0;display:inline-block;width:60em;\
  4325. }\
  4326. #refAnonymizer, #inputColorLive, #inputColorprem, #hostSearchBox2, #hostSearchBox, #inputColorDead, #inputColorTemp, #inputColorCont, #selectAllButton, #selectNoneButton, #invertButton, #selectAllButton2, #selectNoneButton2, #invertButton2 {\
  4327. color:black;\
  4328. border-style: solid;\
  4329. border-width: 1px;\
  4330. border-color: gray;\
  4331. }\
  4332. #h3hideshowcontent {\
  4333. min-height:220px;\
  4334. max-height:220px;\
  4335. overflow:auto;\
  4336. display: none;\
  4337. padding: 10px 10px;\
  4338. }\
  4339. #specinfo{\
  4340. font-size:14px;\
  4341. }\
  4342. .warlc-ui-tab {\
  4343. height:300px;\
  4344. overflow:auto;\
  4345. }\
  4346. #warlcsitelist2, #warlcsitelist1 {\
  4347. height:220px;\
  4348. border-top: 1px solid #ddd;\
  4349. padding-top: 5px;\
  4350. overflow:auto;\
  4351. }\
  4352. input:hover+label {\
  4353. background:#F1F77C;\
  4354. font-size:110%;\
  4355. }\
  4356. ';
  4357.  
  4358. GM_addStyle(configcss);
  4359.  
  4360. var customRulesRefHTML =
  4361. '\
  4362. <br>\
  4363. A custom rule consists of <b>commands</b>. A command must be on its own line and in this form:<br>\
  4364. <b>@keyword</b> <i>parameter</i>\
  4365. <br><br>\
  4366. 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. \
  4367. <br><br>\
  4368. 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.\
  4369. 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.\
  4370. 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.\
  4371. 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,\
  4372. but all commands until the next valid @customrule are ignored.<br><br>\
  4373. Available forms and types:\
  4374. <ul>\
  4375. <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.\
  4376. <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.\
  4377. <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.\
  4378. <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.\
  4379. </ul>\
  4380. Other available commands:<br>\
  4381. (Note: There can be more than 1 (up to 10) of these commands per rule. In that case, any of them will work.)\
  4382. <ul>\
  4383. <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.\
  4384. It can also specify multiple (up to 10) Top Level Domains (.com, .net etc.)<br>\
  4385. <ul>examples:<br>\
  4386. <li>good: <i>filehost.com/download/</i><br>\
  4387. <li>good: <i>download.filehost.net/?d=</i><br>\
  4388. <li>good: <i>filehost. com net co.uk /</i> - multiple TLDs (note the spaces before, between and after TLDs)<br>\
  4389. <li>ok: <i>filehost.com/</i> - works, but will also find links like filehost.com/login etc. Sometimes it\'s unavoidable though.<br>\
  4390. <li>bad: <i>d8523.filehost.com/</i> - d8523 probably is not constant<br>\
  4391. <li>bad: <i>filehost.com/3bfiq5d1</i> - 3bfiq5d1 probably is not constant<br>\
  4392. <li>bad: <i>filehost.com</i> - no slash<br>\
  4393. </ul>\
  4394. \
  4395. <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.\
  4396. 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 \
  4397. &lt;div&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;p&gt; even if there are new lines, tabulators etc.\
  4398. <li><b>@deadmatch</b> <i>pattern</i> - ignored for OBSOLETE, required for others. (For HEADERS some servers return 404 Error \
  4399. 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.)\
  4400. Two spaces again match any whitespace.\
  4401. <li><b>@unavamatch</b> <i>pattern</i> - optional, ignored for OBSOLETE and HEADERS. If found, the link is deemed temporarily unavailable.\
  4402. Two spaces again match any whitespace.\
  4403. <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. \
  4404. <li><b>@deadlink</b> <i>url</i> - optional. Example dead link.\
  4405. </ul>\
  4406. \
  4407. ';
  4408.  
  4409. //close image and css taken from = http://www.sohtanaka.com/web-design/examples/css-popup icon_close.png;
  4410. var configurationinnerHTML =
  4411. '<div id="fade"></div>\
  4412. <div class="popup_block">\
  4413. <div class="popup">\
  4414. <a href="#"><img id="imghideshow" title="Close" class="cntrl" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAfCAYAAAD0ma06AAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAY1SURBVHjapFZbbFRVFN0zd6Yz08dMoUNf9EGxUItJK62I4AOJEYiQoqE+0OgHCiqG+PgQozH6ofyIJiYEMRqNJpggHySlrRM+hCAtajAUaGgEi9BBSilMO0PnfWeOa597bjt9AEVvsubOPWefs/br7H0sQgj6P4/FYrk9+WkSuoAHgCrgLvV9DLgMdID02rQZmfAmaAJaxS2edDr9s67rL7EB/9XCUuALoEl+pZJEvTAo8A9s6iVKxojKYWheAWxuIMr2GGKp1KHh4eF3v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QuANdbcGLzyFV2smiukr7Siw4WqGvZhlqznxhX7cTzmXayA234c33lqFcjneIqZfxX1TJr+t4dWtcUGXgusNgaPLwvQpgJjHcK8EPOAM6J7+vblEfK0fZ9RoqwAnpTnznsN/2jOkuvOUNvmpXmMTrrQuoJWGj36bAugAMhSo2cnsgUil2fb5LRHi1/jRGlJHc5zenaV7p0PyRB7XkR7vfa4IlZtT69fbVKywyafh8HODHN+WfhH4FnD2alN1B7AdOAcMeT29HfiZJ5oZ3sHrgAeBvcCANzBsHu7Ohe2/AwDnNnxcIIMIUgAAAABJRU5ErkJggg=="></img>&nbsp;W.A.R. Links Checker Customized Premium Link version Configuration</div>\
  4416. <div id="warlc-conf-tabs">\
  4417. <ul>\
  4418. <li><a href="#tabs-1">Filehostings</a></li>\
  4419. <li><a href="#tabs-2">Containers</a></li>\
  4420. <li><a href="#tabs-5">Custom rules</a></li>\
  4421. <li><a href="#tabs-3">Settings</a></li>\
  4422. <li><a href="#tabs-4">About</a></li>\
  4423. </ul>\
  4424. <div id="tabs-1" class="warlc-ui-tab">\
  4425. <div class="warlc-ui-buttonset">\
  4426. <input type="button" class="warlc-ui-select-all" value="Select All">\
  4427. <input type="button" class="warlc-ui-select-none" value="Select None">\
  4428. <input type="button" class="warlc-ui-select-invert" value="Invert">\
  4429. </div><br>\
  4430. <div>Search: <input type="textbox" id="hostSearchBox" value=""></div><br>\
  4431. <div id="warlcsitelist1"><span>Empty</span></div>\
  4432. </div>\
  4433. <div id="tabs-2" class="warlc-ui-tab">\
  4434. <div class="warlc-ui-buttonset">\
  4435. <input type="button" class="warlc-ui-select-all" value="Select All">\
  4436. <input type="button" class="warlc-ui-select-none" value="Select None">\
  4437. <input type="button" class="warlc-ui-select-invert" value="Invert">\
  4438. </div><br>\
  4439. <div>Search: <input type="textbox" id="hostSearchBox2" value=""></div><br>\
  4440. <div id="warlcsitelist2"><span>Empty</span></div>\
  4441. </div>\
  4442. <div id="tabs-5" class="warlc-ui-tab">\
  4443. <div class="warlcsettings">\
  4444. <fieldset><input type="checkbox" id="Custom_rules"> Enable custom rules <div id="bulk">EXPERIMENTAL</div></fieldset>\
  4445. <br>\
  4446. <div>Edit custom rules: \
  4447. <a href="#" id="showCustomRulesReference">(<b>Click here to show/hide the reference</b>)</a>\
  4448. <div id="customRulesReference" style="display:none;">'
  4449. + customRulesRefHTML + '\
  4450. </div>\
  4451. <textarea style="width:100%;height:200px;" id="Custom_rules_text"></textarea>\
  4452. </div>\
  4453. </div>\
  4454. </div>\
  4455. <div id="tabs-3" class="warlc-ui-tab">\
  4456. <div class="warlcsettings">\
  4457. <fieldset>\
  4458. <p><input type="checkbox" id="Keyboard_functions"> Enable keyboard shortcuts</p>\
  4459. <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>\
  4460. </fieldset>\
  4461. <fieldset>\
  4462. <p><input type="checkbox" id="Color_DL_links"> Color DL links</p>\
  4463. <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>\
  4464. <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>\
  4465. <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>\
  4466. <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>\
  4467. <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>\
  4468. <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>\
  4469. <p><input type="checkbox" id="Show_line_through_in_dead_links"> Show line through in dead links</p>\
  4470. <p><input type="checkbox" id="Show_black_background_in_DL_links"> Show black background in DL links</p>\
  4471. <p><input type="checkbox" id="Do_not_linkify_DL_links"> Do NOT linkify DL links</p>\
  4472. <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>\
  4473. <p><input type="checkbox" id="Display_full_links_in_link_containers"> Display full links in link containers</p><br>\
  4474. <fieldset>\
  4475. <p><input type="radio" name="warlciconset" value="0"> No icons</p>\
  4476. <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>\
  4477. <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>\
  4478. <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>\
  4479. </fieldset>\
  4480. </fieldset>\
  4481. <fieldset>\
  4482. <div id="sites"><input type="checkbox" id="Autocheck"> Autocheck</div><br><div id="configinfo">Script starts check automatically.</div><br>\
  4483. </fieldset>\
  4484. <fieldset>\
  4485. <div id="sites"><input type="checkbox" id="Show_progress_stats"> Show progress stats</div><br>\
  4486. </fieldset>\
  4487. <fieldset>\
  4488. <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>\
  4489. </fieldset>\
  4490. <fieldset>\
  4491. <p><input type="checkbox" id="Enable_Anonymizer"> Enable Anonymizer</div><div id="bulk">EXPERIMENTAL Note: Checkbox does not work use CTRL+ALT+Z.</p>\
  4492. <div id="sites"><label for="refAnonymizer">Refererer anonymizing service</label><input type="text" id="refAnonymizer" value="' + Ref_anonymize_service + '"></div>\
  4493. </fieldset>\
  4494. </div>\
  4495. </div>\
  4496. <div id="tabs-4" class="warlc-ui-tab">\
  4497. <p><b>Author:</b> <a href="http://www.warlc.5gbfree.com/viewtopic.php?f=12&t=12">mental</a></p>\
  4498. <br />\
  4499. <p><b>Currently supported:</b><br>\
  4500. Filehostings: ' + allHostNames.length + '<br />\
  4501. Containers: ' + allContainerNames.length + '<br />\
  4502. Obsolete sites: ' + allObsoleteNames.length + '<br /></p>\
  4503. <br />\
  4504. <p><b>Based on:</b><br>\
  4505. <a href="http://userscripts-mirror.org/scripts/show/125631.html">W.A.R. Links Checker - Dev</a></p>\
  4506. <br />\
  4507. <p><b>Uses:</b></p>\
  4508. <p>adam_3\'s <a href="http://userscripts-mirror.org/scripts/show/2254">Linkify ting</a> (modified)</p>\
  4509. <p><a href="http://jquery.com/">jQuery</a> JavaScript Library</p>\
  4510. <br />\
  4511. <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>\
  4512. </div>\
  4513. </div>\
  4514. </div>\
  4515. </div>';
  4516. $('body').append('<div id="hideshow">' + configurationinnerHTML + '</div>');
  4517. $("#warlc-conf-tabs").tabs({ fx: { opacity: 'toggle', duration: 'fast' } });
  4518. $("#imghideshow").click(function(event){$("#hideshow").hide(); event.preventDefault();});
  4519. var elmHostList = document.getElementById("warlcsitelist1");
  4520. var elmContainerList = document.getElementById("warlcsitelist2");
  4521. buildSettings();
  4522. buildSitelist("", allHostNames, elmHostList);
  4523. buildSitelist("", allContainerNames, elmContainerList);
  4524. if (DEBUG_MODE)
  4525. {
  4526. //log all sites availability status
  4527. diagSites();
  4528. }
  4529. //handler for checkbox state change
  4530. function changeConfiguration(e)
  4531. {
  4532. var element = e.target;
  4533.  
  4534. if (element.type == 'checkbox')
  4535. {
  4536. if (element.checked == 1)
  4537. {
  4538. GM_setValue(element.id, true);
  4539. }
  4540. else
  4541. {
  4542. GM_setValue(element.id, false);
  4543. }
  4544.  
  4545. }
  4546. setVariables();
  4547. }
  4548.  
  4549. //Selects all filehosting checkboxes
  4550. function selectAll()
  4551. {
  4552. $(":checkbox:visible:not(:checked)").prop("checked",true)
  4553. .each(function(index, element){GM_setValue(this.id, true)});
  4554. }
  4555.  
  4556. //Deselects all filehosting checkboxes
  4557. function selectNone()
  4558. {
  4559. $(":checkbox:visible:checked").prop("checked",false)
  4560. .each(function(index, element){GM_setValue(this.id, false)});
  4561. }
  4562.  
  4563. //Inverts filehosting checkboxes selection
  4564. function selectInvert()
  4565. {
  4566. var $checked = $(":checkbox:visible:checked");
  4567. var $unchecked = $(":checkbox:visible:not(:checked)");
  4568. $unchecked.prop("checked",true)
  4569. .each(function(index, element){GM_setValue(this.id, true)});
  4570. $checked.prop("checked",false)
  4571. .each(function(index, element){GM_setValue(this.id, false)});
  4572. }
  4573. //toggles anonymizer on off
  4574. function Enable_Anonymizer()
  4575. {
  4576. var $checked = $(":checkbox:visible:checked");
  4577. var $unchecked = $(":checkbox:visible:not(:checked)");
  4578. $unchecked.prop("checked",true)
  4579. .each(function(index, element){GM_setValue(this.id, true)});
  4580. $checked.prop("checked",false)
  4581. .each(function(index, element){GM_setValue(this.id, false)});
  4582. }
  4583.  
  4584. function changeRefAnonymizer(){
  4585. GM_setValue("Ref_anonymize_service", $("#refAnonymizer").attr("value"));
  4586. }
  4587.  
  4588. //Sets live links color
  4589. function changeColorLive()
  4590. {
  4591. var inColorLive = document.getElementById("inputColorLive");
  4592. inColorLive.style.background = inColorLive.value;
  4593. GM_setValue("Live_links_color", inColorLive.value);
  4594. }
  4595.  
  4596. //Sets dead links color
  4597. function changeColorDead()
  4598. {
  4599. var inColorDead = document.getElementById("inputColorDead");
  4600. inColorDead.style.background = inColorDead.value;
  4601. GM_setValue("Dead_links_color", inColorDead.value);
  4602. }
  4603.  
  4604. //Sets temp. unavailable links color
  4605. function changeColorTemp()
  4606. {
  4607. var inColorTemp = document.getElementById("inputColorTemp");
  4608. inColorTemp.style.background = inColorTemp.value;
  4609. GM_setValue("Temp_unavailable_links_color", inColorTemp.value);
  4610. }
  4611.  
  4612. //Sets temp. unavailable links color
  4613. function changeColorCont()
  4614. {
  4615. var inColorCont = document.getElementById("inputColorCont");
  4616. inColorCont.style.background = inColorCont.value;
  4617. GM_setValue("Container_links_color", inColorCont.value);
  4618. }
  4619. //Sets premium. links color
  4620. function changeColorprem()
  4621. {
  4622. var inColorprem = document.getElementById("inputColorprem");
  4623. inColorprem.style.background = inColorprem.value;
  4624. GM_setValue("Premium_links_color", inColorprem.value);
  4625. }
  4626.  
  4627. //Diagnose sites for availability
  4628. function diagSites()
  4629. {
  4630. var boxes = document.getElementById("warlcsitelist1").getElementsByTagName("input");
  4631.  
  4632. for (var i = 0, n = boxes.length - 1; i < n; i++)
  4633. {
  4634. if (boxes[i].type == "checkbox")
  4635. {
  4636. checkAvailability(boxes[i]);
  4637. }
  4638. }
  4639.  
  4640. boxes = document.getElementById("warlcsitelist2").getElementsByTagName("input");
  4641.  
  4642. for (var i = 0, n = boxes.length - 1; i < n; i++)
  4643. {
  4644. if (boxes[i].type == "checkbox")
  4645. {
  4646. checkAvailability(boxes[i]);
  4647. }
  4648. }
  4649.  
  4650. function checkAvailability(cbElm)
  4651. {
  4652. var cb = cbElm;
  4653. GM_xmlhttpRequest(
  4654. {
  4655. method: 'HEAD',
  4656. url: 'http://' + cb.nextSibling.textContent.replace(' ', ''),
  4657. headers: {
  4658. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  4659. 'Accept': 'text/xml',
  4660. 'Referer': ""
  4661. },
  4662. onload: function (result)
  4663. {
  4664. if (result.status != 200)
  4665. {
  4666. GM_log(cb.nextSibling.textContent + ' --- status: [' + result.status + '] ' + result.statusText + ', final url: ' + result.finalUrl);
  4667. }
  4668. },
  4669. onerror: function (result)
  4670. {
  4671. if (result.status != 200)
  4672. {
  4673. GM_log(cb.nextSibling.textContent + ' --- status: [' + result.status + '] ' + result.statusText + ', final url: ' + result.finalUrl);
  4674. }
  4675. }
  4676. });
  4677. }
  4678. }
  4679. function buildSettings()
  4680. {
  4681. $(".warlcsettings :checkbox").each(function(){
  4682. $(this).prop("checked", GM_getValue($(this).attr("id")))
  4683. .click(function(e){
  4684. GM_setValue($(this).attr("id"), $(this).prop("checked"));
  4685. setVariables();
  4686. });
  4687. })
  4688. }
  4689. //Dynamic build of host list
  4690. //param search [string] searches for hostnames matching search substring
  4691. //param siteNames [array] array of site names
  4692. //param targetNode [DOM Node] where the list should be built
  4693. // first child node is replaced
  4694. function buildSitelist(search, siteNames, targetNode)
  4695. {
  4696. var searchRegex = new RegExp("\\|?([\\w\\.-]*" + search.replace(/\./g,"\\.").replace(/-/g, "\\-") + "[\\w\\.-]*)\\|?", "i");
  4697. var $targetNode = $(targetNode).empty();
  4698. var searchedSite = "";
  4699. $.each(siteNames, function(i, site){
  4700. if (searchedSite = site.match(searchRegex))
  4701. {
  4702. var baseSite = site.replace(/\|.+/, ""); //filehosting main domain
  4703. //ensuring backward compatibility with the rest of code, to be refactored later
  4704. var oldRSLCvalue = "Check_" + baseSite.replace(/\|.+/, "").replace(/\./g,"_dot_").replace(/-/g, "_dash_") + "_links";
  4705. //
  4706. $targetNode.append('<input type="checkbox" id="' + oldRSLCvalue +'" />\
  4707. <label for="' + oldRSLCvalue + '">' + searchedSite[1] + '</label>' +
  4708. ((searchedSite[1] != baseSite) ? ('<div id="note"> ( ~ ' + baseSite + ' )</div>') : (""))
  4709. );
  4710. $("#" + oldRSLCvalue).prop("checked", GM_getValue(oldRSLCvalue, false))
  4711. .change(changeConfiguration);
  4712. $targetNode.append('<br />');
  4713. }
  4714. });
  4715. $targetNode.append("<hr>");
  4716. //obsolete hosts checkbox
  4717. $targetNode.append('<input type="checkbox" id="Obsolete_file_hosts" /><label for="Obsolete_file_hosts">Obsolete file hosts</label>');
  4718. $("#Obsolete_file_hosts").prop("checked", GM_getValue("Obsolete_file_hosts", false))
  4719. .change(changeConfiguration);
  4720. $targetNode.append('<br />');
  4721. var foundName = "";
  4722. $.each(allObsoleteNames, function(i, site){
  4723. if (foundName = allObsoleteNames[i].match(searchRegex))
  4724. {
  4725. $targetNode.append('<div id="note">' + foundName[1] + '</div>');
  4726. }
  4727. })
  4728. }
  4729. var hostSearchBox = document.getElementById("hostSearchBox");
  4730. hostSearchBox.addEventListener('keyup', function(){buildSitelist(hostSearchBox.value, allHostNames, elmHostList);}, false);
  4731. var hostSearchBox2 = document.getElementById("hostSearchBox2");
  4732. hostSearchBox2.addEventListener('keyup', function(){buildSitelist(hostSearchBox2.value, allContainerNames, elmContainerList);}, false);
  4733. $(".warlc-ui-select-all").click(selectAll).button();
  4734. $(".warlc-ui-select-none").click(selectNone).button();
  4735. $(".warlc-ui-select-invert").click(selectInvert).button();
  4736. $(".warlc-ui-buttonset").buttonset();
  4737. var inColorLive = document.getElementById("inputColorLive");
  4738. inColorLive.addEventListener('keyup', changeColorLive, false);
  4739.  
  4740. var inColorDead = document.getElementById("inputColorDead");
  4741. inColorDead.addEventListener('keyup', changeColorDead, false);
  4742.  
  4743. var inColorTemp = document.getElementById("inputColorTemp");
  4744. inColorTemp.addEventListener('keyup', changeColorTemp, false);
  4745.  
  4746. var inColorCont = document.getElementById("inputColorCont");
  4747. inColorCont.addEventListener('keyup', changeColorCont, false);
  4748. var inColorprem = document.getElementById("inputColorprem");
  4749. inColorprem.addEventListener('keyup', changeColorprem, false);
  4750. $("#refAnonymizer").change(changeRefAnonymizer);
  4751. //buttons and edit boxes init end
  4752.  
  4753. //icon sets radio buttons
  4754. var radioButtons = document.getElementsByName("warlciconset");
  4755. radioButtons[Icon_set].checked = "checked";
  4756.  
  4757. radioButtons[0].addEventListener("change", updateIconSet);
  4758. radioButtons[1].addEventListener("change", updateIconSet);
  4759. radioButtons[2].addEventListener("change", updateIconSet);
  4760. radioButtons[3].addEventListener("change", updateIconSet);
  4761. function updateIconSet()
  4762. {
  4763. GM_setValue("Icon_set", this.value * 1);
  4764. }
  4765. //
  4766. $('#showCustomRulesReference').click(function(e){
  4767. e.preventDefault();
  4768. $('#customRulesReference').toggle();
  4769. });
  4770. $('#Custom_rules_text')
  4771. .val(Custom_rules_text)
  4772. .change(saveCustomRules);
  4773. function saveCustomRules(e)
  4774. {
  4775. var cr = parseCustomRules(this.value);
  4776. if (cr.info.length)
  4777. 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, ' '));
  4778. GM_setValue('Custom_rules_text', this.value);
  4779. GM_setValue('last_custom_rules_nag', ''+new Date().getTime()); //reset nag
  4780. }
  4781. }
  4782.  
  4783. //begin standard link checking algorithm
  4784. function start(filterId)
  4785. {
  4786. var doNotLinkify = Do_not_linkify_DL_links;
  4787.  
  4788. // USER SELECTED FILE HOSTS INITIALIZATION START
  4789. var http_file_hosts = new Array(); //standard hostings
  4790. var http_file_hosts_coded = new Array(); //hostings which has to be decoded to obtain real checkable link
  4791. var http_file_hosts_obsolete = new Array(); //dead hostings
  4792. var http_file_hosts_headers_only = new Array(); //hostings with direct download, must be handled via headers only
  4793.  
  4794. initFileHosts();
  4795. initFileHostsHeadersOnly();
  4796. initFileHostsCustom(); //CustomRules
  4797. // USER SELECTED FILE HOSTS INITIALIZATION END
  4798.  
  4799. // LINKIFICATION START
  4800. var totalxpath = '';
  4801. var totalxpathcoded = '';
  4802. var totalxpathobsolete = '';
  4803. var totalxpathheadersonly = '';
  4804. var totalourls = '';
  4805.  
  4806. var filehostLen = http_file_hosts.length;
  4807. var filehostCodedLen = http_file_hosts_coded.length;
  4808. var filehostObsoleteLen = http_file_hosts_obsolete.length;
  4809. var filehostHeadersOnlyLen = http_file_hosts_headers_only.length;
  4810.  
  4811. var filehostIdx = filehostLen;
  4812. var filehostCodedIdx = filehostCodedLen;
  4813. var filehostObsoleteIdx = filehostObsoleteLen;
  4814. var filehostHeadersOnlyIdx = filehostHeadersOnlyLen;
  4815.  
  4816. if ((filehostIdx == 0) && (filehostCodedIdx == 0) && (filehostHeadersOnlyIdx == 0) && (filehostObsoleteIdx == 0))
  4817. return;
  4818.  
  4819. while (filehostIdx--)
  4820. {
  4821. totalourls += http_file_hosts[filehostIdx][0] + '|';
  4822. totalxpath += http_file_hosts[filehostIdx][4] + '|';
  4823. }
  4824.  
  4825. while (filehostCodedIdx--)
  4826. {
  4827. totalourls += http_file_hosts_coded[filehostCodedIdx][0] + '|';
  4828. totalxpathcoded += http_file_hosts_coded[filehostCodedIdx][3] + '|';
  4829. }
  4830.  
  4831. while (filehostObsoleteIdx--)
  4832. {
  4833. totalourls += http_file_hosts_obsolete[filehostObsoleteIdx][0] + '|';
  4834. totalxpathobsolete += http_file_hosts_obsolete[filehostObsoleteIdx][1] + '|';
  4835. }
  4836.  
  4837. while (filehostHeadersOnlyIdx--)
  4838. {
  4839. totalourls += http_file_hosts_headers_only[filehostHeadersOnlyIdx][0] + '|';
  4840. totalxpathheadersonly += http_file_hosts_headers_only[filehostHeadersOnlyIdx][3] + '|';
  4841. }
  4842.  
  4843. totalourls = totalourls.replace(/\|$/g, "");
  4844. //TODO: further refactoring needed
  4845. totalxpath = totalxpath.replace(/\]\|\/\/a\[/g, " or ");
  4846. totalxpath = totalxpath.replace(/\]\|/, ')]');
  4847. totalxpathcoded = totalxpathcoded.replace(/\]\|\/\/a\[/g, " or ");
  4848. totalxpathcoded = totalxpathcoded.replace(/\]\|/, ')]');
  4849. totalxpathobsolete = totalxpathobsolete.replace(/\]\|\/\/a\[/g, " or ");
  4850. totalxpathobsolete = totalxpathobsolete.replace(/\]\|/, ')]');
  4851. totalxpathheadersonly = totalxpathheadersonly.replace(/\]\|\/\/a\[/g, " or ");
  4852. totalxpathheadersonly = totalxpathheadersonly.replace(/\]\|/, ')]');
  4853. if (filterId != null) //insert id restriction in the xpath
  4854. {
  4855. totalxpath = totalxpath.replace(/\[/g, "[@class='" + filterId + "' and (");
  4856. totalxpathcoded = totalxpathcoded.replace(/\[/g, "[@class='" + filterId + "' and (");
  4857. totalxpathobsolete = totalxpathobsolete.replace(/\[/g, "[@class='" + filterId + "' and (");
  4858. totalxpathheadersonly = totalxpathheadersonly.replace(/\[/g, "[@class='" + filterId + "' and (");
  4859. }
  4860. else
  4861. {
  4862. totalxpath = totalxpath.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4863. totalxpathcoded = totalxpathcoded.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4864. totalxpathobsolete = totalxpathobsolete.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4865. totalxpathheadersonly = totalxpathheadersonly.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4866. }
  4867. linkify(totalourls);
  4868. //LINKIFICATION END
  4869. //ENCRYPTED LINKS PROCESSING START
  4870. if (http_file_hosts_coded.length > 0)
  4871. {
  4872. var linksCoded = document.evaluate(totalxpathcoded, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4873.  
  4874. // decrypt coded links (redirects, link protectors etc.)
  4875. if (linksCoded.snapshotLength > 0)
  4876. {
  4877. var link;
  4878. var reallinkreg;
  4879. var reallinkcorrection;
  4880.  
  4881. if (filterId == null)
  4882. {
  4883. cLinksTotal += linksCoded.snapshotLength;
  4884. }
  4885.  
  4886. var y = linksCoded.snapshotLength - 1;
  4887. do
  4888. {
  4889. // linksCoded.snapshotItem(y).id = 'processing_link';
  4890. link = linksCoded.snapshotItem(y);
  4891. filehostIdx = filehostCodedLen;
  4892. while (filehostIdx--)
  4893. {
  4894. if (link.href.match(http_file_hosts_coded[filehostIdx][0]))
  4895. {
  4896. link.href = link.href.replace(/http:\/\/.*?(?:\?|=)http:\/\//, 'http://');
  4897. reallinkreg = http_file_hosts_coded[filehostIdx][1];
  4898. reallinkcorrection = http_file_hosts_coded[filehostIdx][2];
  4899.  
  4900. decurl(link, reallinkreg, reallinkcorrection);
  4901. break;
  4902. }
  4903. }
  4904. }
  4905. while (y--);
  4906. }
  4907. }
  4908. //ENCRYPTED LINKS PROCESSING END
  4909.  
  4910. //STANDARD LINKCHECKING START
  4911. if (http_file_hosts.length > 0)
  4912. {
  4913. var lianks = document.evaluate(totalxpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4914.  
  4915. if (filterId == null)
  4916. {
  4917. cLinksTotal += lianks.snapshotLength;
  4918. }
  4919.  
  4920. if (lianks.snapshotLength > 0)
  4921. {
  4922. var link;
  4923.  
  4924. var URL = "";
  4925. var name = "";
  4926. var isAliveRegex = "";
  4927. var isDeadRegex = "";
  4928. var isUnavaRegex = "";
  4929. var ispremRegex = "";
  4930. var tryLoop = false;
  4931.  
  4932. var y = lianks.snapshotLength;
  4933.  
  4934. while (y--)
  4935. {
  4936. link = lianks.snapshotItem(y);
  4937.  
  4938. filehostIdx = filehostLen;
  4939. while (filehostIdx--)
  4940. {
  4941. if (link.href.match(http_file_hosts[filehostIdx][0]))
  4942. {
  4943. link.href = link.href.replace(/http:\/\/.*?http:\/\//, 'http://'); //anonymizers
  4944. isAliveRegex = http_file_hosts[filehostIdx][1];
  4945. isDeadRegex = http_file_hosts[filehostIdx][2];
  4946. isUnavaRegex = http_file_hosts[filehostIdx][3];
  4947. ispremRegex = http_file_hosts[filehostIdx][6];
  4948. tryLoop = http_file_hosts[filehostIdx][5];
  4949.  
  4950. geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, tryLoop);
  4951.  
  4952. break;
  4953. }
  4954. }
  4955. }
  4956. }
  4957. }
  4958. //STANDARD LINKCHECKING END
  4959. //OBSOLETE FILE HOSTS PROCESSING START
  4960. if (filehostObsoleteLen > 0)
  4961. {
  4962. var obsoletelinks = document.evaluate(totalxpathobsolete, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4963.  
  4964. var obsoleteLink;
  4965.  
  4966. //check links
  4967. if (obsoletelinks.snapshotLength > 0)
  4968. {
  4969. var y = obsoletelinks.snapshotLength;
  4970.  
  4971. if (filterId == null)
  4972. {
  4973. cLinksTotal += y;
  4974. }
  4975.  
  4976. while (y--)
  4977. {
  4978. obsoleteLink = obsoletelinks.snapshotItem(y);
  4979.  
  4980. if (Display_tooltip_info)
  4981. {
  4982. obsoleteLink.warlc_error = 'Cause of error: <b>Obsolete filehosting.</b>';
  4983. }
  4984. displayTheCheckedLink(obsoleteLink, 'adead_link');
  4985. }
  4986. }
  4987. }
  4988. //OBSOLETE FILE HOSTS PROCESSING END
  4989.  
  4990. //DIRECT LINKCHECKING START
  4991. if (http_file_hosts_headers_only.length > 0)
  4992. {
  4993. var links = document.evaluate(totalxpathheadersonly, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4994.  
  4995. //check links
  4996. if (links.snapshotLength > 0)
  4997. {
  4998. var link;
  4999. var isAliveRegex;
  5000. var isDeadRegex;
  5001. var ispremRegex;
  5002.  
  5003. var y = links.snapshotLength;
  5004.  
  5005.  
  5006. if (filterId == null)
  5007. {
  5008. cLinksTotal += y;
  5009. }
  5010.  
  5011. while (y--)
  5012. {
  5013. // links.snapshotItem(y).id = 'processing_link';
  5014. link = links.snapshotItem(y);
  5015. filehostIdx = filehostHeadersOnlyLen;
  5016. while (filehostIdx--)
  5017. {
  5018. if (link.href.match(http_file_hosts_headers_only[filehostIdx][0]))
  5019. {
  5020. link.href = link.href.replace(/http:\/\/.*?(?:\?|=)http:\/\//, 'http://');
  5021. isAliveRegex = http_file_hosts_headers_only[filehostIdx][1];
  5022. isDeadRegex = http_file_hosts_headers_only[filehostIdx][2];
  5023. ispremRegex = http_file_hosts_headers_only[filehostIdx][3];
  5024.  
  5025. geturlHeader(link, isAliveRegex, isDeadRegex, ispremRegex);
  5026.  
  5027. break;
  5028. }
  5029. }
  5030. }
  5031.  
  5032. }
  5033. }
  5034. //DIRECT LINKCHECKING END
  5035.  
  5036.  
  5037. //finds the real url on the page, replaces link.href with it and calls geturl
  5038. function decurl(link, reallinkreg, reallinkcorrection)
  5039. {
  5040.  
  5041. GM_xmlhttpRequest(
  5042. {
  5043. method: 'GET',
  5044. url: link.href,
  5045. headers: {
  5046. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  5047. 'Accept': 'text/xml',
  5048. 'Referer': ""
  5049. },
  5050. onload: function (result)
  5051. {
  5052. // cLinksProcessed++;
  5053.  
  5054. var reallink = result.responseText.match(reallinkreg)[0];
  5055. reallink = reallink.replace(new RegExp(reallinkcorrection, "g"), "");
  5056.  
  5057. link.href = reallink;
  5058.  
  5059. var i = http_file_hosts.length - 1;
  5060. do
  5061. {
  5062. if ((reallink.match(http_file_hosts[i][0])))
  5063. {
  5064. link.href = link.href.replace(/http:\/\/.*?\?http:\/\//, 'http://');
  5065. var isAliveRegex = http_file_hosts[i][1];
  5066. var isDeadRegex = http_file_hosts[i][2];
  5067. var isUnavaRegex = http_file_hosts[i][3];
  5068. var ispremRegex = http_file_hosts[i][4];
  5069.  
  5070. geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, 50);
  5071.  
  5072. break;
  5073. }
  5074. }
  5075. while (i--);
  5076. }
  5077. });
  5078. }
  5079.  
  5080. function randUA()
  5081. {
  5082. //TODO
  5083. }
  5084. //Processes link
  5085. //
  5086. // [string] link link URL
  5087. // [string] isAliveRegex alive link regex
  5088. // [string] isDeadRegex dead link regex
  5089. // [string] isUnavaRegex unavailable link regex
  5090. // [string] ispremRegex premium link regex
  5091. // [boolean] tryLoop repeats request until succeeded
  5092. function geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, tryLoop)
  5093. {
  5094. GM_xmlhttpRequest(
  5095. {
  5096. method: 'GET',
  5097. url: link.href,
  5098. headers: {
  5099. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  5100. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  5101. 'Referer': ""
  5102. },
  5103. onload: function (result)
  5104. {
  5105. var res = result.responseText;
  5106. if (result.responseHeaders.match(/Content-Disposition: attachment; filename=/))//direct download, simple version
  5107. {
  5108. displayTheCheckedLink(link, 'alive_link');
  5109. return;
  5110. }
  5111.  
  5112. if (res.match(isAliveRegex))
  5113. {
  5114. displayTheCheckedLink(link, 'alive_link');
  5115. return;
  5116. }
  5117.  
  5118. if (res.match(isDeadRegex))
  5119. {
  5120. displayTheCheckedLink(link, 'adead_link');
  5121. return;
  5122. }
  5123.  
  5124. if (isUnavaRegex && res.match(isUnavaRegex))
  5125. {
  5126. displayTheCheckedLink(link, 'unava_link');
  5127. return;
  5128. }
  5129. if (res.match(ispremRegex))
  5130. {
  5131. displayTheCheckedLink(link, 'prem_link');
  5132. return;
  5133. }
  5134.  
  5135. var resStatus = result.status;
  5136.  
  5137. if (resStatus == 404)
  5138. {
  5139. displayTheCheckedLink(link, 'adead_link');
  5140. }
  5141. if (resStatus == 500 || resStatus == 503 || resStatus == 403) //not found/available/temp. unava
  5142. {
  5143. if (tryLoop)
  5144. {
  5145. //wait 1-5 seconds and repeat the request
  5146. setTimeout(function(){geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, tryLoop)}, 1000 + (Math.random() * 4000));
  5147. }
  5148. else
  5149. {
  5150. displayTheCheckedLink(link, 'unava_link');
  5151. }
  5152.  
  5153. return;
  5154. }
  5155. },
  5156. onerror: function ()
  5157. {
  5158. displayTheCheckedLink(link, 'unava_link');
  5159. }
  5160. });
  5161. }
  5162.  
  5163. function geturlHeader(link, isAliveRegex, isDeadRegex, ispremRegex)
  5164. {
  5165. GM_xmlhttpRequest(
  5166. {
  5167. method: 'HEAD',
  5168. url: link.href,
  5169. headers: {
  5170. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  5171. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  5172. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  5173. 'Referer': ""
  5174. },
  5175. onload: function (result)
  5176. {
  5177. var resStatus = result.status;
  5178. var resHeaders = "";
  5179. if (resStatus == 403 || resStatus == 404 || resStatus == 500) //not found/available
  5180. {
  5181. displayTheCheckedLink(link, 'adead_link');
  5182. return;
  5183. }
  5184.  
  5185. resHeaders = result.responseHeaders;
  5186.  
  5187. if (resHeaders.match(isDeadRegex))
  5188. {
  5189. displayTheCheckedLink(link, 'adead_link');
  5190. return;
  5191. }
  5192.  
  5193. if (resHeaders.match(isAliveRegex))
  5194. {
  5195. displayTheCheckedLink(link, 'alive_link');
  5196. return;
  5197. }
  5198. if (resHeaders.match(ispremRegex))
  5199. {
  5200. displayTheCheckedLink(link, 'prem_link');
  5201. return;
  5202. }
  5203. },
  5204. onerror: function ()
  5205. {
  5206. displayTheCheckedLink(link, 'unava_link');
  5207. }
  5208. });
  5209. }
  5210.  
  5211. //Delinkfifies the <a> element object
  5212. function delinkifyLink(link)
  5213. {
  5214. var spanElm = document.createElement("span");
  5215. spanElm.className = link.className;
  5216. spanElm.innerHTML = link.innerHTML;
  5217.  
  5218. if (Display_tooltip_info)
  5219. {
  5220. spanElm.href = link.href;
  5221. spanElm.warlc_error = link.warlc_error;
  5222. switch (link.className){
  5223. case "alive_link": spanElm.addEventListener("mouseover", displayTooltipInfo, false); break
  5224. case "adead_link": spanElm.addEventListener("mouseover", displayTooltipError, false); break;
  5225. case "unava_link": //reserved
  5226. case "prem_link": spanElm.addEventListener("mouseover", displayTooltipError, false); break;
  5227. default:
  5228. }
  5229. }
  5230. link.parentNode.replaceChild(spanElm, link);
  5231. }
  5232.  
  5233. //Assigns result status to the <a> element object and calls delinkifying eventually
  5234. //Possible result states: adead_link, alive_link, unava_link, prem_link
  5235. function displayTheCheckedLink(link, resultStatus)
  5236. {
  5237. link.className = resultStatus;
  5238. link.href = Ref_anonymize_service + link.href;
  5239. if (Display_tooltip_info)
  5240. {
  5241. switch (resultStatus){
  5242. case "alive_link": link.addEventListener("mouseover", displayTooltipInfo, false); break
  5243. case "adead_link": link.addEventListener("mouseover", displayTooltipError, false); break;
  5244. case "unava_link": //reserved
  5245. case "prem_link": link.addEventListener("mouseover", displayTooltipInfo, false); break
  5246. default:
  5247. }
  5248. }
  5249. if (doNotLinkify)
  5250. {
  5251. delinkifyLink(link);
  5252. }
  5253. cLinksProcessed++;
  5254.  
  5255. if (resultStatus == "alive_link")
  5256. {
  5257. cLinksAlive++;
  5258. return;
  5259. }
  5260.  
  5261. if (resultStatus == "adead_link")
  5262. {
  5263. cLinksDead++;
  5264. return;
  5265. }
  5266.  
  5267. if (resultStatus == "unava_link")
  5268. {
  5269. cLinksUnava++;
  5270. }
  5271. if (resultStatus == "prem_link")
  5272. {
  5273. cLinksprem++;
  5274. return;
  5275. }
  5276. }
  5277.  
  5278.  
  5279. function initFileHosts()
  5280. {
  5281.  
  5282. function addObsoleteHost(linkRegex, xpathEx)
  5283. {
  5284. var host = new Array(2);
  5285. host[0] = linkRegex;
  5286. host[1] = xpathEx;
  5287. http_file_hosts_obsolete.push(host);
  5288. }
  5289.  
  5290. //obsolete file hosts init start
  5291. if (Obsolete_file_hosts)
  5292. {
  5293. addObsoleteHost("uloz\.cz\/show\/file","//a[contains(@href,'uloz.cz')]");
  5294. addObsoleteHost("storage\\.to\/get","//a[contains(@href,'storage.to')]");
  5295. addObsoleteHost("iskladka\\.cz\/download","//a[contains(@href,'iskladka.cz')]");
  5296. addObsoleteHost("file-rack\\.com\/files","//a[contains(@href,'file-rack.com')]");
  5297. addObsoleteHost("fast-load\\.net\/(\/)?index","//a[contains(@href,'fast-load.net')]");
  5298. addObsoleteHost("subory\\.sk\/download","//a[contains(@href,'subory.sk')]");
  5299. addObsoleteHost("bigandfree\\.com\/\\d+","//a[contains(@href,'bigandfree.com')]");
  5300. addObsoleteHost("fileop\\.com\/\\w+","//a[contains(@href,'fileop.com')]");
  5301. addObsoleteHost("mujsoubor\\.cz\/file\/","//a[contains(@href,'mujsoubor.cz')]");
  5302. addObsoleteHost("sendfile\\.to\/\\w+","//a[contains(@href,'sendfile.to')]");
  5303. addObsoleteHost("superfastfile\\.com\/\\w+","//a[contains(@href,'superfastfile.com')]");
  5304. addObsoleteHost("quickyshare\\.com\/\\w+","//a[contains(@href,'quickyshare.com/')]");
  5305. addObsoleteHost("duckload\\.com\/(?:d|play)","//a[contains(@href,'duckload.com')]");
  5306. addObsoleteHost("uploadstore\\.net\/\\w+","//a[contains(@href,'uploadstore.net')]");
  5307. addObsoleteHost("meinupload\\.com\/dl\/\\d+","//a[contains(@href,'meinupload.com/dl')]");
  5308. addObsoleteHost("dualshare\\.com\/\\w+","//a[contains(@href,'dualshare.com')]");
  5309. addObsoleteHost("2xupload\\.(?:to|de)\/file\/\\w+","//a[contains(@href,'2xupload.to') or contains(@href,'2xupload.de')]");
  5310. addObsoleteHost("oxedion\\.com\/index\\.php\/download\/\\w+","//a[contains(@href,'oxedion.com/index')]");
  5311. addObsoleteHost("uploadline\\.com\/\\d+","//a[contains(@href,'uploadline.com')]");
  5312. addObsoleteHost("dll\\.bz\/file\/\\d+","//a[contains(@href,'dll.bz/file')]");
  5313. addObsoleteHost("movieshare\\.in\/\\w+","//a[contains(@href,'movieshare.in')]");
  5314. addObsoleteHost("milledrive\\.com\/files\/\\d+","//a[contains(@href,'milledrive.com')]");
  5315. addObsoleteHost("quickupload\\.net\/\\w+","//a[contains(@href,'quickupload.net')]");
  5316. addObsoleteHost("safelink\\.in\/\\w+","//a[contains(@href,'safelink.in')]");
  5317. addObsoleteHost("pyramidfiles\\.com\/\\w+","//a[contains(@href,'pyramidfiles.com/')]");
  5318. addObsoleteHost("(?:cloudnator|shragle)\\.com\/files","//a[contains(@href,'cloudnator.com/files') or contains(@href,'shragle.com/files')]");
  5319. addObsoleteHost("batshare\\.com\/\\w+","//a[contains(@href,'batshare.com/')]");
  5320. addObsoleteHost("bitroad\\.net\/download","//a[contains(@href,'bitroad.net/download')]");
  5321. addObsoleteHost("metadivx\\.com\/\\w+","//a[contains(@href,'metadivx.com')]");
  5322. addObsoleteHost("filegaze\\.com\/\\w+","//a[contains(@href,'filegaze.com/')]");
  5323. addObsoleteHost("bulletupload\\.com\/\\w+","//a[contains(@href,'bulletupload.com/')]");
  5324. addObsoleteHost("sharefilehost\\.com\/\\w+","//a[contains(@href,'sharefilehost.com/')]");
  5325. addObsoleteHost("fireuploads\\.net\/\\w+","//a[contains(@href,'fireuploads.net/')]");
  5326. addObsoleteHost("divxlink\\.com\/\\w+","//a[contains(@href,'divxlink.com/')]");
  5327. addObsoleteHost("bzlink\\.us\/\\w+","//a[contains(@href,'bzlink.us/')]");
  5328. addObsoleteHost("filetechnology\\.com\/\\w+","//a[contains(@href,'filetechnology.com/')]");
  5329. addObsoleteHost("filecosy\\.com\/\\w+","//a[contains(@href,'filecosy.com/')]");
  5330. addObsoleteHost("fileserver\\.cc\/\\w+","//a[contains(@href,'fileserver.cc/')]");
  5331. addObsoleteHost("shafiles\\.me\/\\w+","//a[contains(@href,'shafiles.me/')]");
  5332. addObsoleteHost("xfileshare\\.eu\/\\w+","//a[contains(@href,'xfileshare.eu/')]");
  5333. addObsoleteHost("uploadboost\\.com\/\\w+","//a[contains(@href,'uploadboost.com/')]");
  5334. addObsoleteHost("uploadoz\\.com\/\\w+","//a[contains(@href,'uploadoz.com/')]");
  5335. addObsoleteHost("ihostia\\.com\/\\w+","//a[contains(@href,'ihostia.com/')]");
  5336. addObsoleteHost("shareupload\\.com\/\\w+","//a[contains(@href,'shareupload.com/')]");
  5337. addObsoleteHost("ovfile\\.com\/\\w+","//a[contains(@href,'ovfile.com/')]");
  5338. addObsoleteHost("stahuj\\.to\/\\w+","//a[contains(@href,'stahuj.to/')]");
  5339. addObsoleteHost("gigfiles\\.net\/\\w+","//a[contains(@href,'gigfiles.net/')]");
  5340. addObsoleteHost("vidhog\\.com\/\\w+","//a[contains(@href,'vidhog.com/')]");
  5341. addObsoleteHost("filelaser\\.com\/\\w+","//a[contains(@href,'filelaser.com/')]");
  5342. addObsoleteHost("holderfile\\.com\/\\w+","//a[contains(@href,'holderfile.com/')]");
  5343. addObsoleteHost("fileduct\\.(?:com|net)\/\\w+","//a[contains(@href,'fileduct.com/') or contains(@href,'fileduct.net')]");
  5344. addObsoleteHost("filefat\\.com\/\\w+","//a[contains(@href,'filefat.com/')]");
  5345. addObsoleteHost("restfile\\.com\/\\w+","//a[contains(@href,'restfile.com/')]");
  5346. addObsoleteHost("filemashine\\.com\\/download\/\\w+","//a[contains(@href,'filemashine.com/download')]");
  5347. addObsoleteHost("cloudnxt\\.net\/\\w+","//a[contains(@href,'cloudnxt.net/')]");
  5348. addObsoleteHost("uploadrack\\.com\/\\w+","//a[contains(@href,'uploadrack.com')]");
  5349. addObsoleteHost("teradepot\\.com\/\\w+","//a[contains(@href,'teradepot.com')]");
  5350. addObsoleteHost("dataup\\.to\/\\d+\/","//a[contains(@href,'dataup.to')]");
  5351. addObsoleteHost("upit\\.to\/file:\\d+","//a[contains(@href,'upit.to/file')]");
  5352. addObsoleteHost("badongo\\.(?:com|net)\/(?:\\w\\w\/|)(?:vid|cfile|file|pt)\/\\w+","//a[contains(@href,'badongo.com') or contains(@href,'badongo.net')]");
  5353. addObsoleteHost("driveway\\.com\/\\w+","//a[contains(@href,'driveway.com')]");
  5354. addObsoleteHost("eatlime\\.com\/download","//a[contains(@href,'eatlime.com/download')]");
  5355. addObsoleteHost("a2zuploads\\.com\/id\\w+","//a[contains(@href,'a2zuploads.com/id')]");
  5356. addObsoleteHost("friendlyfiles\\.net\/download\/\\w+\/","//a[contains(@href,'friendlyfiles.net/download')]");
  5357. addObsoleteHost("flyfile\\.us\/\\w+","//a[contains(@href,'flyfile.us')]");
  5358. addObsoleteHost("speedyshare\\.com\/\\w+","//a[contains(@href,'speedyshare.com')]");
  5359. addObsoleteHost("brontofile\\.com\/download","//a[contains(@href,'brontofile.com/download')]");
  5360. addObsoleteHost("uploadspace\\.eu\/\\w+","//a[contains(@href,'uploadspace.eu')]");
  5361. addObsoleteHost("fooget\\.com\/\\w+","//a[contains(@href,'fooget.com/')]");
  5362. addObsoleteHost("file-bit.net\/\\w+","//a[contains(@href,'file-bit.net/')]");
  5363. addObsoleteHost("keepfile\\.com\/\\w+","//a[contains(@href,'http://keepfile.com')]");
  5364. addObsoleteHost("piggyshare\\.com\/file\/\\w+","//a[contains(@href,'piggyshare.com')]");
  5365. addObsoleteHost("filecrown\\.com\/\\w+","//a[contains(@href,'filecrown.com')]");
  5366. addObsoleteHost("6giga\\.com\/\\w+","//a[contains(@href,'6giga.com')]");
  5367. addObsoleteHost("uploadjockey\\.com\/download\/\\w+","//a[contains(@href,'uploadjockey.com/download')]");
  5368. addObsoleteHost("bluehost\\.to\/dl=\\w+","//a[contains(@href,'bluehost.to')]");
  5369. addObsoleteHost("coolshare\\.cz\/stahnout\/\\w+","//a[contains(@href,'coolshare.cz/stahnout')]");
  5370. addObsoleteHost("filegu\\.ru\/f\/\\w+","//a[contains(@href,'filegu.ru/f')]");
  5371. addObsoleteHost("filebase\\.to\/files\/\\d+\/","//a[contains(@href,'filebase.to/files')]");
  5372. addObsoleteHost("kickload\\.com\/(?:file|get)\/","//a[contains(@href,'kickload.com/file') or contains(@href,'kickload.com/get')]");
  5373. addObsoleteHost("up-file\\.com\/files\/download\/\\w+\/","//a[contains(@href,'up-file.com/download')]");
  5374. addObsoleteHost("ezyfile\\.net\/\\w+","//a[contains(@href,'ezyfile.net/')]");
  5375. addObsoleteHost("k2files\\.com\/files","//a[contains(@href,'k2files.com/files')]");
  5376. addObsoleteHost("aiotool\\.net\/\\w+","//a[contains(@href,'aiotool.net/')]");
  5377. addObsoleteHost("xvideos\\.com\/files\/\\d+\/\\w+","//a[contains(@href,'xvideos.com/files')]");
  5378. addObsoleteHost("filebling\\.com\/dl\/\\d+\/\\d+\/\\w+","//a[contains(@href,'filebling.com/dl')]");
  5379. addObsoleteHost("loaded\\.it\/divx\/\\w+","//a[contains(@href,'loaded.it/divx')]");
  5380. addObsoleteHost("uploadcell\\.com\/\\w+\/\\w+","//a[contains(@href,'uploadcell.com')]");
  5381. addObsoleteHost("jakfile\\.com\/\\w+","//a[contains(@href,'jakfile.com/')]");
  5382. addObsoleteHost("uploadshare\\.cz\/download\/\\w+\/\\w+","//a[contains(@href,'uploadshare.cz/download')]");
  5383. addObsoleteHost("mangoshare\\.com\/\\w+","//a[contains(@href,'mangoshare.com')]");
  5384. addObsoleteHost("ugotfile\\.com\/file\/\\d+\/\\w+","//a[contains(@href,'ugotfile.com/file')]");
  5385. addObsoleteHost("filestab\\.com\/\\w+","//a[contains(@href,'filestab.com')]");
  5386. addObsoleteHost("dotavi\\.com\/\\w+\/.","//a[contains(@href,'dotavi.com/')]");
  5387. addObsoleteHost("crazyupload\\.com\/\\w+","//a[contains(@href,'crazyupload.com')]");
  5388. addObsoleteHost("gaiafile\\.com\/\\w+","//a[contains(@href,'gaiafile.com')]");
  5389. addObsoleteHost("sharejunky\\.com\/\\w+","//a[contains(@href,'sharejunky.com')]");
  5390. addObsoleteHost("fileho\\.com\/download\/\\d+","//a[contains(@href,'fileho.com/download')]");
  5391. addObsoleteHost("(?:bigandfree|BigAndFree)\\.com\/\\d+","//a[contains(@href,'bigandfree.com') or contains(@href,'BigAndFree.com')]");
  5392. addObsoleteHost("bigfile\\.in\/\\w+","//a[contains(@href,'bigfile.in')]");
  5393. addObsoleteHost("bigshare\\.eu\/download\\.php\\?id=","//a[contains(@href,'bigshare.eu/download.php')]");
  5394. addObsoleteHost("dahosting\\.org\/dl\/\\w+","//a[contains(@href,'dahosting.org/dl')]");
  5395. addObsoleteHost("digisofts\\.net\/\\w+","//a[contains(@href,'digisofts.net')]");
  5396. addObsoleteHost("file4save\\.com\/\\w+\/\\w+","//a[contains(@href,'file4save.com')]");
  5397. addObsoleteHost("filereactor\\.com\/\\w+","//a[contains(@href,'filereactor.com/')]");
  5398. addObsoleteHost("filechip\\.com\/\\w+","//a[contains(@href,'filechip.com')]");
  5399. addObsoleteHost("filescloud\\.com\/\\w+\/\\w+","//a[contains(@href,'filescloud.com')]");
  5400. addObsoleteHost("saveqube\\.com\/getfile\/\\w+","//a[contains(@href,'saveqube.com/getfile')]");
  5401. addObsoleteHost("www2\\.turboshare\\.de\/v\/\\d+","//a[contains(@href,'turboshare.de/v')]");
  5402. addObsoleteHost("z-upload\\.com\/\\w+","//a[contains(@href,'z-upload.com')]");
  5403. addObsoleteHost("youshare\\.com\/view\\.php","//a[contains(@href,'youshare.com/view')]");
  5404. addObsoleteHost("jiffyupload\\.com\/\\w+","//a[contains(@href,'jiffyupload.com')]");
  5405. addObsoleteHost("gigeshare\\.com\/preview\/\\w+","//a[contains(@href,'gigeshare.com')]");
  5406. addObsoleteHost("datenklo\\.net\/dl","//a[contains(@href,'datenklo.net')]");
  5407. addObsoleteHost("upload\\.dj\/download\\.php\\?id=\\w+","//a[contains(@href,'upload.dj/download.php')]");
  5408. addObsoleteHost("loadfiles\\.in\/\\w+\/","//a[contains(@href,'loadfiles.in')]");
  5409. addObsoleteHost("upit\\.to\/file:\\w+\/","//a[contains(@href,'upit.to/file')]");
  5410. addObsoleteHost("zshare\\.net\/(?:download|video|audio)\/\\w+","//a[contains(@href,'zshare.net/')]");
  5411. addObsoleteHost("refile\\.net\/f\/\\?\\w+","//a[contains(@href,'refile.net/f/')]");
  5412. addObsoleteHost("dsfileshare\\.com\/download","//a[contains(@href,'dsfileshare.com/download')]");
  5413. addObsoleteHost("sharesimple\\.net\/\\w{2}\/download","//a[contains(@href,'sharesimple.net')]");
  5414. addObsoleteHost("(?:s\\d+\\.|)4files\\.net\/\\d+","//a[contains(@href,'4files.net')]");
  5415. addObsoleteHost("odsiebie\\.com\/pokaz\/\\d+","//a[contains(@href,'odsiebie.com/pokaz')]");
  5416. addObsoleteHost("filenavi\\.com\/direct\/\\w+","//a[contains(@href,'filenavi.com/direct')]");
  5417. addObsoleteHost("3oof\\.com\/\\w+","//a[contains(@href,'3oof.com/')]");
  5418. addObsoleteHost("meshwaar\\.com\/\\w+","//a[contains(@href,'meshwaar.com')]");
  5419. addObsoleteHost("maxupload\\.com\/files\/\\w+","//a[contains(@href,'maxupload.com/files')]");
  5420. addObsoleteHost("share\\.cx\/videos\/\\d+","//a[contains(@href,'share.cx/videos')]");
  5421. addObsoleteHost("atserver\\.eu\/(?:\\w{2}\/|)download\/\\d+","//a[contains(@href,'atserver.eu')]");
  5422. addObsoleteHost("file2upload\\.net\/download\/\\d+","//a[contains(@href,'file2upload.net/download')]");
  5423. addObsoleteHost("filebling\\.com\/\\w+","//a[contains(@href,'filebling.com')]");
  5424. addObsoleteHost("turboshare\\.(?:eu|com)\/files","//a[contains(@href,'turboshare.') and contains(@href,'/files')]");
  5425. addObsoleteHost("rarhost\\.com\/download","//a[contains(@href,'rarhost.com/download')]");
  5426. addObsoleteHost("isharehd\\.com\/\\w+","//a[contains(@href,'isharehd.com')]");
  5427. addObsoleteHost("datenklo\\.net\/file\\.php\\?id=\\w+","//a[contains(@href,'datenklo.net/file.php')]");
  5428. addObsoleteHost("file2share\\.biz\/download\\.php\\?id=\\w+","//a[contains(@href,'file2share.biz/download.php')]");
  5429. addObsoleteHost("savefiles\\.net\/d\/\\w+\\.html","//a[contains(@href,'savefiles.net/d')]");
  5430. addObsoleteHost("bestsharing\\.com\/files\/\\w+","//a[contains(@href,'bestsharing.com/files')]");
  5431. addObsoleteHost("filecache\\.de\/\\d+","//a[contains(@href,'filecache.de/')]");
  5432. addObsoleteHost("i741\\.com\/files\/\\w+","//a[contains(@href,'i741.com/files')]");
  5433. addObsoleteHost("dataup\\.de\/\\d+","//a[contains(@href,'dataup.de')]");
  5434. addObsoleteHost("fofly\\.com\/\\w+","//a[contains(@href,'fofly.com')]");
  5435. addObsoleteHost("shareonall\\.com\/\\w+","//a[contains(@href,'shareonall.com')]");
  5436. addObsoleteHost("sexuploader\\.com\/(?:|..\/)\\?[d|v]=\\w{8}","//a[contains(@href,'sexuploader.com')]");
  5437. 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')]");
  5438. addObsoleteHost("uploadhyper\\.com\/file\/","//a[contains(@href,'uploadhyper.com')]");
  5439. addObsoleteHost("filespawn\\.com\/file\/","//a[contains(@href,'filespawn.com')]");
  5440. addObsoleteHost("caizzii\\.com\/(?:download|\\?file=)","//a[contains(@href,'caizzii.com')]");
  5441. addObsoleteHost("volnyweb\\.cz\/files\/get\/[\\w-_]+","//a[contains(@href,'volnyweb.cz/files')]");
  5442. addObsoleteHost("gotupload\\.com\/\\w+","//a[contains(@href,'gotupload.com/')]");
  5443. addObsoleteHost("mooload\\.com\/new\/file\\.php\\?file=files\/\\d+\/\\d+","//a[contains(@href,'mooload.com/new/file')]");
  5444. addObsoleteHost("z\\d+\\.zupload\\.com\/download\\.php\\?file=getfile&filepath=\\d+","//a[contains(@href,'zupload.com/download')]");
  5445. addObsoleteHost("mytempdir\\.com\/\\d+","//a[contains(@href,'mytempdir.com/')]");
  5446. addObsoleteHost("usershare\\.net\/\\w+","//a[contains(@href,'usershare.net/')]");
  5447. addObsoleteHost("qshare\\.com\/get\/\\d+\/.","//a[contains(@href,'qshare.com/get')]");
  5448. addObsoleteHost("filescash\\.net\/file\/\\d+","//a[contains(@href,'filescash.net/file')]");
  5449. addObsoleteHost("metahyper\\.com\/\\w+","//a[contains(@href,'metahyper.com/')]");
  5450. addObsoleteHost("combozip\\.com\/\\w+","//a[contains(@href,'combozip.com/')]");
  5451. addObsoleteHost("anonstream\\.com\/get_\\w+","//a[contains(@href,'anonstream.com/get_')]");
  5452. addObsoleteHost("x7\\.to\/\\w+","//a[contains(@href,'x7.to/')]");
  5453. addObsoleteHost("uploadbox\\.com\/files\/\\w+","//a[contains(@href,'uploadbox.com/files')]");
  5454. addObsoleteHost("(?:flyupload\\.)?(?:enterupload|flyupload)\\.com\/[\\?\\w]+","//a[contains(@href,'enterupload.com/') or contains(@href,'flyupload.com/')]");
  5455. addObsoleteHost("filepoint\\.de\/dl\/\\w+","//a[contains(@href,'filepoint.de/dl')]");
  5456. addObsoleteHost("icushare\\.com\/\\w+","//a[contains(@href,'icushare.com/')]");
  5457. addObsoleteHost("oron\\.com\/\\w+","//a[contains(@href,'oron.com/')]");
  5458. addObsoleteHost("mystream\\.to\/file\\-\\d+","//a[contains(@href,'mystream.to/file')]");
  5459. addObsoleteHost("x-fs\\.com\/download\\.php\\?id=\\w+","//a[contains(@href,'x-fs.com/download')]");
  5460. addObsoleteHost("srapid\\.eu\/\\w+","//a[contains(@href,'srapid.eu/')]");
  5461. addObsoleteHost("shareshared\\.com\/\\w+","//a[contains(@href,'shareshared.com/')]");
  5462. addObsoleteHost("sosame\\.cz\/\\w+","//a[contains(@href,'sosame.cz/')]");
  5463. addObsoleteHost("s\\d+\\.filesdump\\.com\/file\/\\w+","//a[contains(@href,'filesdump.com/file')]");
  5464. addObsoleteHost("2-klicks\\.de\/\\?d=\\w+","//a[contains(@href,'2-klicks.de/?d=')]");
  5465. addObsoleteHost("silofiles\\.com\/file\/\\d+","//a[contains(@href,'silofiles.com/file')]");
  5466. addObsoleteHost("upfile\\.in\/\\w+","//a[contains(@href,'upfile.in/')]");
  5467. addObsoleteHost("filehook\\.com\/\\w+","//a[contains(@href,'filehook.com/')]");
  5468. addObsoleteHost("mojofile\\.com\/\\w+","//a[contains(@href,'mojofile.com/')]");
  5469. addObsoleteHost("cloudcache\\.cc\/\\w+","//a[contains(@href,'cloudcache.cc/')]");
  5470. addObsoleteHost("1hostclick\\.com\/\\w+","//a[contains(@href,'1hostclick.com/')]");
  5471. addObsoleteHost("4bytez\\.com\/\\w+","//a[contains(@href,'4bytez.com/')]");
  5472. addObsoleteHost("uploadking\\.com\/\\w+","//a[contains(@href,'uploadking.com/')]");
  5473. addObsoleteHost("nahraj\\.cz\/(?:content|down)\/\\w+","//a[contains(@href,'nahraj.cz/')]");
  5474. addObsoleteHost("megarapid\\.eu\/files\/\\d+","//a[contains(@href,'megarapid.eu/files')]");
  5475. addObsoleteHost("(?:fileserve|uploadstation)\\.com\/(?:file|list)\/\\w+","//a[contains(@href,'fileserve.com/') or contains(@href,'uploadstation.com/')]");
  5476. addObsoleteHost("uploadhere\\.com\/\\w+","//a[contains(@href,'uploadhere.com/')]");
  5477. addObsoleteHost("dualshare\\.com\/\\w+","//a[contains(@href,'dualshare.com/')]");
  5478. addObsoleteHost("yourfilehost\\.com\/media","//a[contains(@href,'yourfilehost.com/media')]");
  5479. addObsoleteHost("ftp2share\\.com\/file\/\\w+","//a[contains(@href,'ftp2share.com/file')]");
  5480. addObsoleteHost("storeandserve\\.com\/download\/\\d+","//a[contains(@href,'storeandserve.com/download')]");
  5481. addObsoleteHost("mountfile\\.com\/file(?:\/\\w+){2}","//a[contains(@href,'mountfile.com/file')]");
  5482. addObsoleteHost("save\\.am\/files\/\\w+","//a[contains(@href,'save.am/files')]");
  5483. addObsoleteHost("transitfiles\\.com\/dl\/\\w+","//a[contains(@href,'transitfiles.com/dl')]");
  5484. addObsoleteHost("smartuploader\\.com\/file\\.php\\?f=\\d+","//a[contains(@href,'smartuploader.com/file.php?=')]");
  5485. addObsoleteHost("skipfile\\.com\/\\w+","//a[contains(@href,'skipfile.com/')]");
  5486. addObsoleteHost("stahnu\\.to\/[\\w\\?]+","//a[contains(@href,'stahnu.to/')]");
  5487. addObsoleteHost("flyshare\.cz\/(?:stahni\/|)\\d+","//a[contains(@href,'flyshare.cz/')]");
  5488. addObsoleteHost("(?:ddlani\\.me|ddlanime\\.com)\/\\w+","//a[contains(@href,'ddlani.me/') or contains(@href,'ddlanime.com/')]");
  5489. addObsoleteHost("loadly\\.com\/\\w+","//a[contains(@href,'loadly.com/')]");
  5490. addObsoleteHost("groovefile\\.com\/\\w+","//a[contains(@href,'groovefile.com/')]");
  5491. addObsoleteHost("filezlot\\.com\/\\w+","//a[contains(@href,'filezlot.com/')]");
  5492. addObsoleteHost("shareator\\.(?:net|com)\/\\w+","//a[contains(@href,'shareator.')]");
  5493. addObsoleteHost("yabadaba\\.ru\/files\/","//a[contains(@href,'yabadaba.ru/files/')]");
  5494. addObsoleteHost("rapidhide\\.com\/download\\.php\\?file=\\w+","//a[contains(@href,'rapidhide.com/download.php')]");
  5495. addObsoleteHost("filejungle\\.com\/[fl]\/\\w+","//a[contains(@href,'filejungle.com/')]");
  5496. addObsoleteHost("kewlshare\\.com\/dl\/\\d+","//a[contains(@href,'kewlshare.com/dl')]");
  5497. addObsoleteHost("petandrive\\.com\/file\/\\w+","//a[contains(@href,'petandrive.com/file')]");
  5498. addObsoleteHost("onionshare\\.com\/\\w+","//a[contains(@href,'onionshare.com/')]");
  5499. addObsoleteHost("rapidable\\.com\/\\w+\/download\\.php\\?id=","//a[contains(@href,'rapidable.com/')]");
  5500. addObsoleteHost("filesdump\\.com\/file\/\\w+\/\\d+","//a[contains(@href,'filesdump.com/file')]");
  5501. addObsoleteHost("file2box\\.(?:net|com)\/\\w+","//a[contains(@href,'file2box.')]");
  5502. addObsoleteHost("(?:filesonic|sharingmatrix|wupload)(?:\\.\\w+){1,2}\/(?:file|folder)\/\\w+","//a[contains(@href,'filesonic.') or contains(@href,'sharingmatrix.com') or contains(@href,'wupload.')]");
  5503. addObsoleteHost("bloggerarticles\\.com\/\\w+","//a[contains(@href,'bloggerarticles.com/')]");
  5504. addObsoleteHost("mojedata\\.sk/","//a[contains(@href,'mojedata.sk/')]");
  5505. addObsoleteHost("sharpfile\\.com\/\\w+","//a[contains(@href,'sharpfile.com/')]");
  5506. addObsoleteHost("upgrand\\.com\/\\w+","//a[contains(@href,'upgrand.com/')]");
  5507. addObsoleteHost("nasdilej\\.cz\/\\w+","//a[contains(@href,'nasdilej.cz/')]");
  5508. addObsoleteHost("mediatack\\.cz\/stahuj/\\w+","//a[contains(@href,'mediatack.cz/stahuj/')]");
  5509. addObsoleteHost("share-it\\.to\/file/\\w+","//a[contains(@href,'share-it.to/file/')]");
  5510. addObsoleteHost("primeupload\\.com\/file/\\w+","//a[contains(@href,'primeupload.com/file/')]");
  5511. addObsoleteHost("(?:uploads\\.glumbo|glumbouploads)\\.com\/\\w+","//a[contains(@href,'uploads.glumbo.com') or contains(@href,'glumbouploads.com')]");
  5512. addObsoleteHost("filebeer\\.info\/\\w+","//a[contains(@href,'filebeer.info/')]");
  5513. addObsoleteHost("baberepublic\\.com\/link\/\\w+","//a[contains(@href,'baberepublic.com/link/')]");
  5514. addObsoleteHost("xtu\\.me\/\\w+","//a[contains(@href,'xtu.me/')]");
  5515. addObsoleteHost("sharebase\\.de\/files\/\\w+","//a[contains(@href,'sharebase.de/files/')]");
  5516. addObsoleteHost("filerobo\\.com\/\\w+","//a[contains(@href,'filerobo.com/')]");
  5517. addObsoleteHost("filevelocity\\.com\/\\w+","//a[contains(@href,'filevelocity.com/')]");
  5518. addObsoleteHost("filezpro\\.com\/\\w+","//a[contains(@href,'filezpro.com/')]");
  5519. addObsoleteHost("file4sharing\\.com\/\\w+","//a[contains(@href,'file4sharing.com/')]");
  5520. addObsoleteHost("cing\\.be\/\\w+","//a[contains(@href,'cing.be/')]");
  5521. addObsoleteHost("ufile\\.eu\/\\w+","//a[contains(@href,'ufile.eu/')]");
  5522. addObsoleteHost("pigsonic\\.com\/\\w+","//a[contains(@href,'pigsonic.com/')]");
  5523. addObsoleteHost("fileupped\\.com\/\\w+","//a[contains(@href,'fileupped.com/')]");
  5524. addObsoleteHost("sharerun\\.com\/\\w+","//a[contains(@href,'sharerun.com/')]");
  5525. addObsoleteHost("rapidslnare\\.com\/\\w+","//a[contains(@href,'rapidslnare.com/')]");
  5526. addObsoleteHost("monsteruploads\\.eu\/\\w+","//a[contains(@href,'monsteruploads.eu/')]");
  5527. addObsoleteHost("b9bb\\.com\/\\w+","//a[contains(@href,'b9bb.com/')]");
  5528. addObsoleteHost("jamber\\.info\/\\w+","//a[contains(@href,'jamber.info/')]");
  5529. addObsoleteHost("(?:megaftp|MegaFTP)\\.com\/\\w+","//a[contains(@href,'megaftp.com/') or contains(@href,'MegaFTP.com/')]");
  5530. addObsoleteHost("desiupload\\.net\/\\?d=\\w+","//a[contains(@href,'desiupload.net/')]");
  5531. addObsoleteHost("file27\\.com\/\\w+","//a[contains(@href,'file27.com/')]");
  5532. addObsoleteHost("yastorage\\.com\/\\w+","//a[contains(@href,'yastorage.com/')]");
  5533. addObsoleteHost("filehost\\.ws\/\\w+","//a[contains(@href,'filehost.ws/')]");
  5534. addObsoleteHost("copyload\\.com\/\\w+","//a[contains(@href,'copyload.com/')]");
  5535. addObsoleteHost("venusfile\\.com\/\\w+","//a[contains(@href,'venusfile.com/')]");
  5536. addObsoleteHost("aieshare\\.com\/\\w+","//a[contains(@href,'aieshare.com/')]");
  5537. addObsoleteHost("fileza\\.net\/\\w+","//a[contains(@href,'fileza.net/')]");
  5538. addObsoleteHost("filerose\\.com\/\\w+","//a[contains(@href,'filerose.com/')]");
  5539. addObsoleteHost("squillion\\.com\/\\w+","//a[contains(@href,'squillion.com/')]");
  5540. addObsoleteHost("fileprohost\\.com\/\\w+","//a[contains(@href,'fileprohost.com/')]");
  5541. addObsoleteHost("bitbonus\\.com\/download\/\\w+","//a[contains(@href,'bitbonus.com/')]");
  5542. addObsoleteHost("warserver\\.cz\/\\w+","//a[contains(@href,'warserver.cz/')]");
  5543. addObsoleteHost("uload\\.to\/\\w+","//a[contains(@href,'uload.to/')]");
  5544. addObsoleteHost("sharedbit\\.net\/\\w+","//a[contains(@href,'sharedbit.net/')]");
  5545. addObsoleteHost("megaload\\.it\/\\w+","//a[contains(@href,'megaload.it/')]");
  5546. addObsoleteHost("filewinds\\.com\/\\w+","//a[contains(@href,'filewinds.com/')]");
  5547. addObsoleteHost("uploadcore\\.com\/\\w+","//a[contains(@href,'uploadcore.com/')]");
  5548. addObsoleteHost("syfiles\\.com\/\\w+","//a[contains(@href,'syfiles.com/')]");
  5549. addObsoleteHost("eyesfile\\.com\/\\w+","//a[contains(@href,'eyesfile.com/')]");
  5550. addObsoleteHost("hotfile\\.com\/\\w+","//a[contains(@href,'hotfile.com/')]");
  5551. addObsoleteHost("superupl\\.com\/\\w+","//a[contains(@href,'superupl.com/')]");
  5552. addObsoleteHost("oteupload\\.com\/\\w+","//a[contains(@href,'oteupload.com/')]");
  5553. addObsoleteHost("henchfile\\.com\/\\w+","//a[contains(@href,'henchfile.com/')]");
  5554. addObsoleteHost("HenchFile\\.com\/\\w+","//a[contains(@href,'HenchFile.com/')]");
  5555. addObsoleteHost("filegag\\.com\/\\w+","//a[contains(@href,'filegag.com/')]");
  5556. addObsoleteHost("filedefend\\.com\/\\w+","//a[contains(@href,'filedefend.com/')]");
  5557. addObsoleteHost("hotfiles\\.ws\/\\w+","//a[contains(@href,'hotfiles.ws/')]");
  5558. addObsoleteHost("share-rapid\\.com\/\\w+","//a[contains(@href,'share-rapid.com/')]");
  5559. addObsoleteHost("rapids\\.cz\/\\w+","//a[contains(@href,'rapids.cz/')]");
  5560. addObsoleteHost("share-credit\\.cz\/\\w+","//a[contains(@href,'share-credit.cz/')]");
  5561. addObsoleteHost("share-central\\.cz\/\\w+","//a[contains(@href,'share-central.cz/')]");
  5562. addObsoleteHost("share-ms\\.cz\/\\w+","//a[contains(@href,'share-ms.cz/')]");
  5563. addObsoleteHost("share-net\\.cz\/\\w+","//a[contains(@href,'share-net.cz/')]");
  5564. addObsoleteHost("srapid\\.cz\/\\w+","//a[contains(@href,'srapid.cz/')]");
  5565. addObsoleteHost("share-rapid\\.cz\/\\w+","//a[contains(@href,'share-rapid.cz/')]");
  5566. addObsoleteHost("wooupload\\.com\/\\w+","//a[contains(@href,'wooupload.com/')]");
  5567. addObsoleteHost("megabitshare\\.com\/\\w+","//a[contains(@href,'megabitshare.com/')]");
  5568. addObsoleteHost("uploking\\.com\/\\w+","//a[contains(@href,'uploking.com/')]");
  5569. addObsoleteHost("esnips\\.com\/\\w+","//a[contains(@href,'esnips.com/')]");
  5570. addObsoleteHost("uplly\\.com\/\\w+","//a[contains(@href,'uplly.com/')]");
  5571. addObsoleteHost("ufox\\.com\/\\w+","//a[contains(@href,'ufox.com/')]");
  5572. addObsoleteHost("clz\\.to\/\\w+","//a[contains(@href,'clz.to/')]");
  5573. addObsoleteHost("cloudzer\\.net\/\\w+","//a[contains(@href,'cloudzer.net/')]");
  5574. addObsoleteHost("cloudzer\\.com\/\\w+","//a[contains(@href,'cloudzer.com/')]");
  5575. addObsoleteHost("extabit\\.com\/\\w+","//a[contains(@href,'extabit.com/')]");
  5576. addObsoleteHost("uploadwaste\\.com\/\\w+","//a[contains(@href,'uploadwaste.com/')]");
  5577. addObsoleteHost("247upload\\.com\/\\w+","//a[contains(@href,'uploadwaste.com/')]");
  5578. addObsoleteHost("2download\\.de\/\\w+","//a[contains(@href,'2download.de/')]");
  5579. addObsoleteHost("4fastfile\\.com\/\\w+","//a[contains(@href,'4fastfile.com/')]");
  5580. addObsoleteHost("asixfiles\\.com\/\\w+","//a[contains(@href,'asixfiles.com/')]");
  5581. addObsoleteHost("berofile\\.com\/\\w+","//a[contains(@href,'berofile.com/')]");
  5582. addObsoleteHost("bigupload\\.com\/\\w+","//a[contains(@href,'bigupload.com/')]");
  5583. addObsoleteHost("cepzo\\.com\/\\w+","//a[contains(@href,'cepzo.com/')]");
  5584. addObsoleteHost("czshare\\.com\/\\w+","//a[contains(@href,'czshare.com/')]");
  5585. addObsoleteHost("clouds\\.to\/\\w+","//a[contains(@href,'clouds.to/')]");
  5586. addObsoleteHost("cobrashare\\.sk\/\\w+","//a[contains(@href,'cobrashare.sk/')]");
  5587. addObsoleteHost("coraldrive\\.net\/\\w+","//a[contains(@href,'coraldrive.net/')]");
  5588. addObsoleteHost("cyberlocker\\.ch\/\\w+","//a[contains(@href,'cyberlocker.ch/')]");
  5589. addObsoleteHost("darkport\\.org\/\\w+","//a[contains(@href,'darkport.org/')]");
  5590. addObsoleteHost("dark-uploads\\.com\/\\w+","//a[contains(@href,'dark-uploads.com/')]");
  5591. addObsoleteHost("davvas\\.com\/\\w+","//a[contains(@href,'davvas.com/')]");
  5592. addObsoleteHost("enigmashare\\.com\/\\w+","//a[contains(@href,'enigmashare.com/')]");
  5593. addObsoleteHost("erofly\\.cz\/\\w+","//a[contains(@href,'erofly.cz/')]");
  5594. addObsoleteHost("fastsonic\\.net\/\\w+","//a[contains(@href,'fastsonic.net/')]");
  5595. addObsoleteHost("filebox\\.com\/\\w+","//a[contains(@href,'filebox.com/')]");
  5596. addObsoleteHost("filecity\\.net\/\\w+","//a[contains(@href,'filecity.net/')]");
  5597. addObsoleteHost("filedap\\.com\/\\w+","//a[contains(@href,'filedap.com/')]");
  5598. addObsoleteHost("filedino\\.com\/\\w+","//a[contains(@href,'filedino.com/')]");
  5599. addObsoleteHost("filedownloads\\.org\/\\w+","//a[contains(@href,'filedownloads.org/')]");
  5600. addObsoleteHost("filefolks\\.com\/\\w+","//a[contains(@href,'filefolks.com/')]");
  5601. addObsoleteHost("fileking\\.co\/\\w+","//a[contains(@href,'fileking.co/')]");
  5602. addObsoleteHost("filemates\\.com\/\\w+","//a[contains(@href,'filemates.com/')]");
  5603. addObsoleteHost("files\\.to\/\\w+","//a[contains(@href,'files.to/')]");
  5604. addObsoleteHost("files2k\\.eu\/\\w+","//a[contains(@href,'files2k.eu/')]");
  5605. addObsoleteHost("filesector\\.cc\/\\w+","//a[contains(@href,'filesector.cc/')]");
  5606. addObsoleteHost("filesega\\.com\/\\w+","//a[contains(@href,'filesega.com/')]");
  5607. addObsoleteHost("filesend\\.net\/\\w+","//a[contains(@href,'filesend.net/')]");
  5608. addObsoleteHost("filestay\\.com\/\\w+","//a[contains(@href,'filestay.com/')]");
  5609. addObsoleteHost("filestrum\\.com\/\\w+","//a[contains(@href,'filestrum.com/')]");
  5610. addObsoleteHost("fileuplo\\.de\/\\w+","//a[contains(@href,'fileuplo.de/')]");
  5611. addObsoleteHost("fileupup\\.com\/\\w+","//a[contains(@href,'fileupup.com/')]");
  5612. addObsoleteHost("forunesia\\.com\/\\w+","//a[contains(@href,'forunesia.com/')]");
  5613. addObsoleteHost("freeuploads\\.fr\/\\w+","//a[contains(@href,'freeuploads.fr/')]");
  5614. addObsoleteHost("uploa\\.dk\/\\w+","//a[contains(@href,'uploa.dk/')]");
  5615. addObsoleteHost("getthebit\\.com\/\\w+","//a[contains(@href,'getthebit.com/')]");
  5616. addObsoleteHost("getzilla\\.net\/\\w+","//a[contains(@href,'getzilla.net/')]");
  5617. addObsoleteHost("goldfile\\.eu\/\\w+","//a[contains(@href,'goldfile.eu/')]");
  5618. addObsoleteHost("good\\.com\/\\w+","//a[contains(@href,'good.com/')]");
  5619. addObsoleteHost("grupload\\.com\/\\w+","//a[contains(@href,'grupload.com/')]");
  5620. addObsoleteHost("hellfile\\.com\/\\w+","//a[contains(@href,'hellfile.com/')]");
  5621. addObsoleteHost("hipfile\\.com\/\\w+","//a[contains(@href,'hipfile.com/')]");
  5622. addObsoleteHost("hitfile\\.com\/\\w+","//a[contains(@href,'hitfile.com/')]");
  5623. addObsoleteHost("hulkfile\\.eu\/\\w+","//a[contains(@href,'hulkfile.eu/')]");
  5624. addObsoleteHost("i-filez\\.com\/\\w+","//a[contains(@href,'i-filez.com/')]");
  5625. addObsoleteHost("ifile\\.ws\/\\w+","//a[contains(@href,'ifile.ws/')]");
  5626. addObsoleteHost("kupload\\.org\/\\w+","//a[contains(@href,'kupload.org/')]");
  5627. addObsoleteHost("duckfile\\.net\/\\w+","//a[contains(@href,'duckfile.net/')]");
  5628. addObsoleteHost("packupload\\.com\/\\w+","//a[contains(@href,'packupload.com/')]");
  5629. addObsoleteHost("terafile\\.com\/\\w+","//a[contains(@href,'terafile.com/')]");
  5630. addObsoleteHost("terafile\\.co\/\\w+","//a[contains(@href,'terafile.co/')]");
  5631. addObsoleteHost("fileom\\.com\/\\w+","//a[contains(@href,'fileom.com/')]");
  5632. addObsoleteHost("luckyshare\\.net\/\\w+","//a[contains(@href,'luckyshare.net/')]");
  5633. addObsoleteHost("lemuploads\\.com\/\\w+","//a[contains(@href,'lemuploads.com/')]");
  5634. addObsoleteHost("limelinx\\.com\/\\w+","//a[contains(@href,'limelinx.com/')]");
  5635. addObsoleteHost("maxshare\\.pl\/\\w+","//a[contains(@href,'maxshare.pl/')]");
  5636. addObsoleteHost("megarelease\\.org\/\\w+","//a[contains(@href,'megarelease.org/')]");
  5637. addObsoleteHost("megashare\\.com\/\\w+","//a[contains(@href,'megashare.com/')]");
  5638. addObsoleteHost("minus\\.com\/\\w+","//a[contains(@href,'minus.com/')]");
  5639. addObsoleteHost("mlfat4arab\\.com\/\\w+","//a[contains(@href,'mlfat4arab.com/')]");
  5640. addObsoleteHost("multishare\\.cz\/\\w+","//a[contains(@href,'multishare.cz/')]");
  5641. addObsoleteHost("nirafile\\.com\/\\w+","//a[contains(@href,'nirafile.com/')]");
  5642. addObsoleteHost("ok2upload\\.com\/\\w+","//a[contains(@href,'ok2upload.com/')]");
  5643. addObsoleteHost("peejeshare\\.com\/\\w+","//a[contains(@href,'peejeshare.com/')]");
  5644. addObsoleteHost("premiuns\\.org\/\\w+","//a[contains(@href,'premiuns.org/')]");
  5645. addObsoleteHost("przeklej\\.net\/\\w+","//a[contains(@href,'przeklej.net/')]");
  5646. addObsoleteHost("qkup\\.net\/\\w+","//a[contains(@href,'qkup.net/')]");
  5647. addObsoleteHost("rapidupload\\.sk\/\\w+","//a[contains(@href,'rapidupload.sk/')]");
  5648. addObsoleteHost("rockdizfile\\.com\/\\w+","//a[contains(@href,'rockdizfile.com/')]");
  5649. addObsoleteHost("rocketfile\\.net\/\\w+","//a[contains(@href,'rocketfile.net/')]");
  5650. addObsoleteHost("share-now\\.net\/\\w+","//a[contains(@href,'share-now.net/')]");
  5651. addObsoleteHost("share76\\.com\/\\w+","//a[contains(@href,'share76.com/')]");
  5652. addObsoleteHost("sharebees\\.com\/\\w+","//a[contains(@href,'sharebees.com/')]");
  5653. addObsoleteHost("sharefiles\\.co\/\\w+","//a[contains(@href,'sharefiles.co/')]");
  5654. addObsoleteHost("slingfile\\.com\/\\w+","//a[contains(@href,'slingfile.com/')]");
  5655. addObsoleteHost("sms4file\\.com\/\\w+","//a[contains(@href,'sms4file.com/')]");
  5656. addObsoleteHost("space4file\\.com\/\\w+","//a[contains(@href,'space4file.com/')]");
  5657. addObsoleteHost("tigershare\\.net\/\\w+","//a[contains(@href,'tigershare.net/')]");
  5658. addObsoleteHost("toucansharing\\.com\/\\w+","//a[contains(@href,'toucansharing.com/')]");
  5659. addObsoleteHost("ubuntuone\\.com\/\\w+","//a[contains(@href,'ubuntuone.com/')]");
  5660. addObsoleteHost("unextfiles\\.com\/\\w+","//a[contains(@href,'unextfiles.com/')]");
  5661. addObsoleteHost("upaj\\.pl\/\\w+","//a[contains(@href,'upaj.pl/')]");
  5662. addObsoleteHost("upfile\\.biz\/\\w+","//a[contains(@href,'upfile.biz/')]");
  5663. addObsoleteHost("uploadbin\\.net\/\\w+","//a[contains(@href,'uploadbin.net/')]");
  5664. addObsoleteHost("uploadic\\.com\/\\w+","//a[contains(@href,'uploadic.com/')]");
  5665. addObsoleteHost("uploadinc\\.com\/\\w+","//a[contains(@href,'uploadinc.com/')]");
  5666. addObsoleteHost("uploading4u\\.eu\/\\w+","//a[contains(@href,'uploading4u.eu/')]");
  5667. addObsoleteHost("uploadjet\\.net\/\\w+","//a[contains(@href,'uploadjet.net/')]");
  5668. addObsoleteHost("uploadorb\\.com\/\\w+","//a[contains(@href,'uploadorb.com/')]");
  5669. addObsoleteHost("upthe\\.net\/\\w+","//a[contains(@href,'upthe.net/')]");
  5670. addObsoleteHost("uptorch\\.com\/\\w+","//a[contains(@href,'uptorch.com/')]");
  5671. addObsoleteHost("vidbox\\.yt\/\\w+","//a[contains(@href,'vidbox.yt/')]");
  5672. addObsoleteHost("videozer\\.com\/\\w+","//a[contains(@href,'videozer.com/')]");
  5673. addObsoleteHost("vreer\\.com\/\\w+","//a[contains(@href,'vreer.com/')]");
  5674. addObsoleteHost("wallobit\\.com\/\\w+","//a[contains(@href,'wallobit.com/')]");
  5675. addObsoleteHost("zooupload\\.com\/\\w+","//a[contains(@href,'zooupload.com/')]");
  5676. addObsoleteHost("xerver\\.co\/\\w+","//a[contains(@href,'xerver.co/')]");
  5677. addObsoleteHost("privatefiles\\.com\/\\w+","//a[contains(@href,'privatefiles.com/')]");
  5678. addObsoleteHost("bitshare\\.com\/\\w+","//a[contains(@href,'bitshare.com/')]");
  5679. addObsoleteHost("asfile\\.com\/\\w+","//a[contains(@href,'asfile.com/')]");
  5680. addObsoleteHost("billionuploads\\.com\/\\w+","//a[contains(@href,'billionuploads.com/')]");
  5681. addObsoleteHost("\\*{7,100}\/[\\w\\d]+","//a[contains(@href,'*******/')]");
  5682. addObsoleteHost("filesaur\\.com\/\\w+","//a[contains(@href,'filesaur.com/')]");
  5683. addObsoleteHost("rapidshare\\.com\/\\w+","//a[contains(@href,'rapidshare.com/')]");
  5684. addObsoleteHost("rapidshare\\.ru\/\\w+","//a[contains(@href,'rapidshare.ru/')]");
  5685. addObsoleteHost("filesfrog\\.net\/\\w+","//a[contains(@href,'filesfrog.net/')]");
  5686. addObsoleteHost("4savefile\\.com\/\\w+","//a[contains(@href,'4savefile.com/')]");
  5687. addObsoleteHost("bayfiles\\.com\/\\w+","//a[contains(@href,'bayfiles.com/')]");
  5688. addObsoleteHost("bayfiles\\.net\/\\w+","//a[contains(@href,'bayfiles.net/')]");
  5689. addObsoleteHost("dodane\\.pl\/\\w+","//a[contains(@href,'dodane.pl/')]");
  5690. addObsoleteHost("dotsemper\\.com\/\\w+","//a[contains(@href,'dotsemper.com/')]");
  5691. addObsoleteHost("egofiles\\.com\/\\w+","//a[contains(@href,'egofiles.com/')]");
  5692. addObsoleteHost("epicshare\\.net\/\\w+","//a[contains(@href,'epicshare.net/')]");
  5693. addObsoleteHost("fiberupload\\.net\/\\w+","//a[contains(@href,'fiberupload.net/')]");
  5694. addObsoleteHost("filemonkey\\.in\/\\w+","//a[contains(@href,'filemonkey.in/')]");
  5695. addObsoleteHost("filemonster\\.net\/\\w+","//a[contains(@href,'filemonster.net/')]");
  5696. addObsoleteHost("filepom\\.com\/\\w+","//a[contains(@href,'filepom.com/')]");
  5697. addObsoleteHost("filesbb\\.com\/\\w+","//a[contains(@href,'filesbb.com/')]");
  5698. addObsoleteHost("fileshareup\\.com\/\\w+","//a[contains(@href,'fileshareup.com/')]");
  5699. addObsoleteHost("filevice\\.com\/\\w+","//a[contains(@href,'filevice.com/')]");
  5700. addObsoleteHost("gigaup\\.fr\/\\w+","//a[contains(@href,'gigaup.fr/')]");
  5701. addObsoleteHost("isavelink\\.com\/\\w+","//a[contains(@href,'isavelink.com/')]");
  5702. addObsoleteHost("loombo\\.com\/\\w+","//a[contains(@href,'loombo.com/')]");
  5703. addObsoleteHost("megafiles\\.se\/\\w+","//a[contains(@href,'megafiles.se/')]");
  5704. addObsoleteHost("migupload\\.com\/\\w+","//a[contains(@href,'migupload.com/')]");
  5705. addObsoleteHost("mydisc\\.net\/\\w+","//a[contains(@href,'mydisc.net/')]");
  5706. addObsoleteHost("nitrobits\\.com\/\\w+","//a[contains(@href,'nitrobits.com/')]");
  5707. addObsoleteHost("potload\\.com\/\\w+","//a[contains(@href,'potload.com/')]");
  5708. addObsoleteHost("redload\\.net\/\\w+","//a[contains(@href,'redload.net/')]");
  5709. addObsoleteHost("shareprofi\\.com\/\\w+","//a[contains(@href,'shareprofi.com/')]");
  5710. addObsoleteHost("sharesuper\\.info\/\\w+","//a[contains(@href,'sharesuper.info/')]");
  5711. addObsoleteHost("sinhro\\.net\/\\w+","//a[contains(@href,'sinhro.net/')]");
  5712. addObsoleteHost("speedfile\\.cz\/\\w+","//a[contains(@href,'speedfile.cz/')]");
  5713. addObsoleteHost("speedshare\\.org\/\\w+","//a[contains(@href,'speedshare.org/')]");
  5714. addObsoleteHost("storage.novoro\\.net\/\\w+","//a[contains(@href,'storage.novoro.net/')]");
  5715. addObsoleteHost("swankshare\\.com\/\\w+","//a[contains(@href,'swankshare.com/')]");
  5716. addObsoleteHost("swatupload\\.com\/\\w+","//a[contains(@href,'swatupload.com/')]");
  5717. addObsoleteHost("upafile\\.com\/\\w+","//a[contains(@href,'upafile.com/')]");
  5718. addObsoleteHost("uploadmachine\\.com\/\\w+","//a[contains(@href,'uploadmachine.com/')]");
  5719. addObsoleteHost("uploadsat\\.com\/\\w+","//a[contains(@href,'uploadsat.com/')]");
  5720. addObsoleteHost("upshared\\.com\/\\w+","//a[contains(@href,'upshared.com/')]");
  5721. addObsoleteHost("usefile\\.com\/\\w+","//a[contains(@href,'usefile.com/')]");
  5722. addObsoleteHost("yourfiles\\.to\/\\w+","//a[contains(@href,'yourfiles.to/')]");
  5723. addObsoleteHost("zomgupload\\.com\/\\w+","//a[contains(@href,'zomgupload.com/')]");
  5724. addObsoleteHost("~[\\w\\s~]*","//a[contains(@href,'//~') or contains(@href,'//www.~')]");
  5725. addObsoleteHost("filemup\\.com\/\\w+","//a[contains(@href,'filemup.com/')]");
  5726. addObsoleteHost("tuxfile\\.com\/\\w+","//a[contains(@href,'tuxfile.com/')]");
  5727. addObsoleteHost("ultramegabit\\.com\/\\w+","//a[contains(@href,'ultramegabit.com/')]");
  5728. addObsoleteHost("uploadto\\.us\/\\w+","//a[contains(@href,'uploadto.us/')]");
  5729. addObsoleteHost("filecore\\.co\\.nz\/\\w+","//a[contains(@href,'filecore.co.nz/')]");
  5730. addObsoleteHost("fileshare\\.in\\.ua\/\\w+","//a[contains(@href,'fileshare.in.ua/')]");
  5731. addObsoleteHost("firedrive\\.com\/\\w+","//a[contains(@href,'firedrive.com/')]");
  5732. addObsoleteHost("putlocker\\.com\/\\w+","//a[contains(@href,'putlocker.com/')]");
  5733. addObsoleteHost("lumfile\\.com\/\\w+","//a[contains(@href,'lumfile.com/')]");
  5734. addObsoleteHost("lumfile\\.se\/\\w+","//a[contains(@href,'lumfile.se/')]");
  5735. addObsoleteHost("lumfile\\.eu\/\\w+","//a[contains(@href,'lumfile.eu/')]");
  5736. addObsoleteHost("shared\\.com\/\\w+","//a[contains(@href,'shared.com/')]");
  5737. addObsoleteHost("stahovadlo\\.cz\/\\w+","//a[contains(@href,'stahovadlo.cz/')]");
  5738. addObsoleteHost("dizzcloud\\.com\/\\w+","//a[contains(@href,'dizzcloud.com/')]");
  5739. addObsoleteHost("ddlstorage\\.com\/\\w+","//a[contains(@href,'ddlstorage.com/')]");
  5740. addObsoleteHost("dataport\\.cz\/\\w+","//a[contains(@href,'dataport.cz/')]");
  5741. addObsoleteHost("daj\\.to\/\\w+","//a[contains(@href,'daj.to/')]");
  5742. addObsoleteHost("sockshare\\.com\/\\w+","//a[contains(@href,'sockshare.com/')]");
  5743. addObsoleteHost("2drive\\.net\/\\w+","//a[contains(@href,'2drive.net/')]");
  5744. addObsoleteHost("bl\\.st\/\\w+","//a[contains(@href,'bl.st/')]");
  5745. addObsoleteHost("uncapped-downloads\\.com\/\\w+","//a[contains(@href,'uncapped-downloads.com/')]");
  5746. addObsoleteHost("freakshare\\.net\/\\w+","//a[contains(@href,'freakshare.net/')]");
  5747. addObsoleteHost("freakshare\\.com\/\\w+","//a[contains(@href,'freakshare.com/')]");
  5748. addObsoleteHost("sharebeast\\.com\/\\w+","//a[contains(@href,'sharebeast.com/')]");
  5749. addObsoleteHost("tufiles\\.ru\/\\w+","//a[contains(@href,'tufiles.ru/')]");
  5750. addObsoleteHost("crisshare\\.com\/\\w+","//a[contains(@href,'crisshare.com/')]");
  5751. addObsoleteHost("ryushare\\.com\/\\w+","//a[contains(@href,'ryushare.com/')]");
  5752. addObsoleteHost("kingfiles\\.net\/\\w+","//a[contains(@href,'kingfiles.net/')]");
  5753. addObsoleteHost("burnupload\\.com\/\\w+","//a[contains(@href,'burnupload.com') or contains(@href,'burnupload.ihiphop.com')]");
  5754. addObsoleteHost("down4files\\.com\/\\w+","//a[contains(@href,'down4files.com/')]");
  5755. addObsoleteHost("edoc\\.com\/\\w+","//a[contains(@href,'edoc.com/')]");
  5756. addObsoleteHost("migahost\\.com\/\\w+","//a[contains(@href,'migahost.com/')]");
  5757. addObsoleteHost("movreel\\.com\/\\w+","//a[contains(@href,'movreel.com/')]");
  5758. addObsoleteHost("newfileland\\.com\/\\w+","//a[contains(@href,'newfileland.com/')]");
  5759. addObsoleteHost("jumbofile\\.net\/\\w+","//a[contains(@href,'jumbofile.net/')]");
  5760. addObsoleteHost("krotix\\.net\/\\w+","//a[contains(@href,'krotix.net/')]");
  5761. addObsoleteHost("cramit\\.in\/\\w+","//a[contains(@href,'cramitin.net') or contains(@href,'cramit.in')]");
  5762. addObsoleteHost("netload\\.in\/\\w+","//a[contains(@href,'netload.in/')]")
  5763. addObsoleteHost("quickshare\\.cz\/\\w+","//a[contains(@href,'quickshare.cz/')]");
  5764. // obsolete start
  5765. }
  5766. //obsolete file hosts init end
  5767. //Add Host Example
  5768. /* if (GM_getValue("Check_datafile_dot_com_links", false))
  5769. {
  5770. addFileHost(
  5771. "datafile\.com\/\\w+",
  5772. 'var captchaPanel|<link href="/css/files_download.css"',
  5773. 'ErrorCode|ErrorCode 0: Invalid Link|btn-orange" href="#"',
  5774. 'You are downloading another file at this moment|You exceeded your free|Site Maintenance',
  5775. '<style type="text/css">',
  5776. "//a[contains(@href,'datafile.com')]",
  5777. true);
  5778. } */
  5779.  
  5780. function addFileHost(linkRegex, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, xpathEx, tryLoop)
  5781. {
  5782. var host = new Array(7);
  5783. host[0] = linkRegex;
  5784. host[1] = isAliveRegex;
  5785. host[2] = isDeadRegex;
  5786. host[3] = isUnavaRegex;
  5787. host[6] = ispremRegex;
  5788. host[4] = xpathEx;
  5789. tryLoop ? host[5] = true : host[5] = false;
  5790. http_file_hosts.push(host);
  5791. }
  5792. if (GM_getValue("Check_megafileupload_dot_com_links", false))
  5793. {
  5794. addFileHost(
  5795. "megafileupload\.com\/..\/file\/",
  5796. 'downloadbtn',
  5797. 'is not found',
  5798. 'optional--',
  5799. 'optional2--',
  5800. "//a[contains(@href,'megafileupload.com')]");
  5801. }
  5802. if (GM_getValue("Check_demo_dot_ovh_dot_eu_links", false))
  5803. {
  5804. addFileHost(
  5805. "demo\\.ovh\\.eu\/\\w+\/\\w+",
  5806. 'download\\.gif"',
  5807. 'p_point">',
  5808. 'optional--',
  5809. 'optional2--',
  5810. "//a[contains(@href,'demo.ovh.eu')]");
  5811. }
  5812. if (GM_getValue("Check_xkeepfile_dot_com_links", false))
  5813. {
  5814. addFileHost(
  5815. "xkeepfile\.com\/\\w+",
  5816. 'File has been found|Click here to download',
  5817. 'File cannot be found|class="error">',
  5818. 'optional--',
  5819. 'optional2--',
  5820. "//a[contains(@href,'xkeepfile.com/') or contains(@href,'Gamesena.com/')]");
  5821. }
  5822. if (GM_getValue("Check_safelinking_dot_net_links", false))
  5823. {
  5824. addFileHost(
  5825. "safelinking\\.net\/p\/\\w+",
  5826. 'color:green;"',
  5827. 'color:(?:red|orange);"',
  5828. 'color:(?:grey|brown);"',
  5829. 'optional2--',
  5830. "//a[contains(@href,'safelinking.net/p/')]",
  5831. true);
  5832. }
  5833. if (GM_getValue("Check_fastshare_dot_cz_links", false))
  5834. {
  5835. addFileHost(
  5836. "fastshare\\.cz\/\\d+\/\\w*",
  5837. 'dwntable">',
  5838. 'nebyla nalezena|nebola nájdená|nie została odnaleziona|color:red;font-weight:bold;border\\-style:dashed|<i class="fa fa-copyright"></i>',
  5839. 'optional--',
  5840. 'optional2--',
  5841. "//a[contains(@href,'fastshare.cz')]");
  5842. }
  5843. if (GM_getValue("Check_fastshare_dot_org_links", false))
  5844. {
  5845. addFileHost(
  5846. "[fF]ast[sS]hare\\.org\/download",
  5847. 'Download ">',
  5848. 'Diese Datei wurde wegen|wurde kein Dateiname',
  5849. 'optional--',
  5850. 'optional2--',
  5851. "//a[contains(@href,'fastshare.org/download') or contains(@href,'FastShare.org/download')]");
  5852. }
  5853. if (GM_getValue("Check_partage_dash_facile_dot_com_links", false))
  5854. {
  5855. addFileHost(
  5856. "partage-facile\.com\/\\w+",
  5857. 'class="title"><strong>|colspan="2"',
  5858. 'Page introuvable|class="alert-message',
  5859. 'optional--',
  5860. 'optional2--',
  5861. "//a[contains(@href,'partage-facile.com')]");
  5862. }
  5863. if (GM_getValue("Check_rapidgator_dot_net_links", false))
  5864. {
  5865. addFileHost(
  5866. "rapidgator\\.net\/file\/\\w+",
  5867. '/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',
  5868. 'Error 404|File not found|Error 500|Файл не найден|ファイルが探せませんでした|Fichier non trouvé|Archivo no encontrado|Select your plan',
  5869. 'optional--',
  5870. 'can be downloaded by premium only|files up to 500 MB in free mode',
  5871. "//a[contains(@href,'rapidgator.net/file')]",
  5872. true
  5873. );
  5874. }
  5875. if (GM_getValue("Check_relink_dot_us_links", false))
  5876. {
  5877. addFileHost(
  5878. "relink\\.us\/(?:f\/\\w+|go\\.php\\?id=\\d+|view\\.php\\?id=\\d+)",
  5879. 'online_detail\\.png" alt="Status',
  5880. '(?:offline|partially)_detail\\.png" alt="Status|File deleted',
  5881. 'unknown_detail\\.png" alt="Status',
  5882. 'optional2--',
  5883. "//a[contains(@href,'relink.us/')]"
  5884. );
  5885. }
  5886. if (GM_getValue("Check_uploadstube_dot_de_links", false))
  5887. {
  5888. addFileHost(
  5889. "uploadstube\\.de\/download\\.php\\?file=\\d+",
  5890. 'div id="dl"',
  5891. 'Sie haben den Link falsch',
  5892. 'optional--',
  5893. 'optional2--',
  5894. "//a[contains(@href,'uploadstube.de/download.php?file=')]"
  5895. );
  5896. }
  5897. if (GM_getValue("Check_flyfiles_dot_net_links", false))
  5898. {
  5899. addFileHost(
  5900. "flyfiles\\.net\/\\w+",
  5901. 'download_button"|"Download file"',
  5902. 'File not found!|Файл не найден',
  5903. 'optional--',
  5904. 'optional2--',
  5905. "//a[contains(@href,'flyfiles.net/')]"
  5906. );
  5907. }
  5908. if (GM_getValue("Check_wikiupload_dot_com_links", false))
  5909. {
  5910. addFileHost(
  5911. "wikiupload\\.com\/\\w+",
  5912. 'download-button">',
  5913. 'Sorry, File not found',
  5914. 'optional--',
  5915. 'optional2--',
  5916. "//a[contains(@href,'wikiupload.com/')]"
  5917. );
  5918. }
  5919. if (GM_getValue("Check_hostuje_dot_net_links", false))
  5920. {
  5921. addFileHost(
  5922. "hostuje\\.net\/file\\.php\\?id=\\w+",
  5923. 'file\\.php">|Pobierz Plik',
  5924. 'Podany plik nie zosta',
  5925. 'optional--',
  5926. 'optional2--',
  5927. "//a[contains(@href,'hostuje.net/file')]"
  5928. );
  5929. }
  5930. if (GM_getValue("Check_gettyfile_dot_ru_links", false))
  5931. {
  5932. addFileHost(
  5933. "gettyfile\\.ru\/\\d+",
  5934. 'download\\.gif border',
  5935. '<center><font size="3">',
  5936. 'optional--',
  5937. 'optional2--',
  5938. "//a[contains(@href,'gettyfile.ru/')]"
  5939. );
  5940. }
  5941. if (GM_getValue("Check_turbobit_dot_ru_links", false))
  5942. {
  5943. addFileHost(
  5944. "(?:turbob1t|failoobmenik|filesmail|firebit|dlbit|files\\.china\\-gsm|3aka4aem|file\\.piratski|mnogofiles|links-free|turbo-bit|turbosfiles)\\.\\w+\/\\w+",
  5945. 'download\\-file">',
  5946. 'col-1">\\s*<h1>',
  5947. 'optional--',
  5948. 'optional2--',
  5949. "//a[contains(@href,'turbobit.ru/') or contains(@href,'filesmail.ru/') or contains(@href,'failoobmenik.ru/')"+
  5950. " or contains(@href,'firebit.in/') or contains(@href,'dlbit.net/') or contains(@href,'files.china-gsm.ru/') or contains(@href,'3aka4aem.ru/')"+
  5951. " or contains(@href,'file.piratski.ru/') or contains(@href,'mnogofiles.com/') or contains(@href,'links-free.ru/')"+
  5952. " or contains(@href,'turbo-bit.ru/') or contains(@href,'turbosfiles.ru/')]"
  5953. );
  5954. }
  5955. if (GM_getValue("Check_data_dot_hu_links", false))
  5956. {
  5957. addFileHost(
  5958. "data\\.hu\/get\/\\d+\/",
  5959. 'download_box_button',
  5960. 'missing\\.php',
  5961. 'optional--',
  5962. 'optional2--',
  5963. "//a[contains(@href,'data.hu/get')]",
  5964. true
  5965. );
  5966. }
  5967. if (GM_getValue("Check_filesmelt_dot_com_links", false))
  5968. {
  5969. addFileHost(
  5970. "filesmelt\\.com\/dl\/\\w+",
  5971. '(Your download is ready|Download File)',
  5972. 'Sorry, but your',
  5973. 'optional--',
  5974. 'optional2--',
  5975. "//a[contains(@href,'filesmelt.com/dl')]"
  5976. );
  5977. }
  5978. if (GM_getValue("Check_indowebster_dot_com_links", false))
  5979. {
  5980. addFileHost(
  5981. "(?:files\\.)?indowebster\\.com\/download\/\\w+\/",
  5982. 'premiumBtn"',
  5983. 'errorMessage"',
  5984. 'optional--',
  5985. 'optional2--',
  5986. "//a[contains(@href,'indowebster.com/download')]"
  5987. );
  5988. }
  5989. if (GM_getValue("Check_superload_dot_cz_links", false))
  5990. {
  5991. addFileHost(
  5992. "superload\\.cz\/dl\/\\w+",
  5993. 'icon-download">',
  5994. 'soubor nebyl nalezen',
  5995. 'optional--',
  5996. 'optional2--',
  5997. "//a[contains(@href,'superload.cz/dl')]"
  5998. );
  5999. }
  6000. if (GM_getValue("Check_hulkfile_dot_eu_links", false))
  6001. {
  6002. addFileHost(
  6003. "(?:w\\.hulkfile\\.com|hulkfile\\.eu)\/\\w+",
  6004. 'op" value="download',
  6005. 'class="err">|width:500px;text-align:left;">',
  6006. 'optional--',
  6007. 'optional2--',
  6008. "//a[contains(@href,'hulkfile.')]"
  6009. );
  6010. }
  6011. if (GM_getValue("Check_easybytez_dot_com_links", false))
  6012. {
  6013. addFileHost(
  6014. "easybytez\\.com\/\\w+",
  6015. 'op" value="download',
  6016. 'stop_error\\.gif',
  6017. 'optional--',
  6018. 'optional2--',
  6019. "//a[contains(@href,'easybytez.com/')]"
  6020. );
  6021. }
  6022. if (GM_getValue("Check_filestore_dot_com_dot_ua_links", false))
  6023. {
  6024. addFileHost(
  6025. "filestore\\.com\\.ua\/\\?d=\\w+",
  6026. 'tdrow1>',
  6027. 'class=warn',
  6028. 'optional--',
  6029. 'optional2--',
  6030. "//a[contains(@href,'filestore.com.ua/?d=')]"
  6031. );
  6032. }
  6033. if (GM_getValue("Check_netkups_dot_com_links", false))
  6034. {
  6035. addFileHost(
  6036. "netkups\\.com\/\\?d=\\w+",
  6037. 'submit">Continue',
  6038. 'page">File not found|deleted due to inactivity',
  6039. 'optional--',
  6040. 'optional2--',
  6041. "//a[contains(@href,'netkups.com/?d=')]"
  6042. );
  6043. }
  6044. if (GM_getValue("Check_openfile_dot_ru_links", false))
  6045. {
  6046. addFileHost(
  6047. "openfile\\.ru\/(?:video\/|)\\d+",
  6048. 'videobox_left">',
  6049. 'blog_title">|not found on this server',
  6050. 'optional--',
  6051. 'optional2--',
  6052. "//a[contains(@href,'openfile.ru/')]"
  6053. );
  6054. }
  6055. if (GM_getValue("Check_extmatrix_dot_com_links", false))
  6056. {
  6057. addFileHost(
  6058. "extmatrix\\.com\/files\/\\w+",
  6059. 'div class="success"',
  6060. 'div class="error"',
  6061. 'optional--',
  6062. 'optional2--',
  6063. "//a[contains(@href,'extmatrix.com/files')]"
  6064. );
  6065. }
  6066. if (GM_getValue("Check_sendfiles_dot_nl_links", false))
  6067. {
  6068. addFileHost(
  6069. "sendfiles\\.nl\/download.aspx\\?ID=\\w+",
  6070. 'content_lnkDownload',
  6071. 'error\\.aspx\\?',
  6072. 'optional--',
  6073. 'optional2--',
  6074. "//a[contains(@href,'sendfiles.nl/download.aspx')]"
  6075. );
  6076. }
  6077. if (GM_getValue("Check_yourfilestore_dot_com_links", false))
  6078. {
  6079. addFileHost(
  6080. "yourfilestore\\.com\/download\/\\d+\/",
  6081. 'download_data">',
  6082. 'may have been deleted|<h1>Sorry!<\/h1>',
  6083. 'optional--',
  6084. 'optional2--',
  6085. "//a[contains(@href,'yourfilestore.com/download')]"
  6086. );
  6087. }
  6088. if (GM_getValue("Check_nekaka_dot_com_links", false))
  6089. {
  6090. addFileHost(
  6091. "nekaka\\.com\/d\/[\\w-]+",
  6092. 'downloadForm">',
  6093. 'invalid file link',
  6094. 'optional--',
  6095. 'optional2--',
  6096. "//a[contains(@href,'nekaka.com/d')]"
  6097. );
  6098. }
  6099. if (GM_getValue("Check_filebig_dot_net_links", false))
  6100. {
  6101. addFileHost(
  6102. "filebig\\.net\/files\/\\w+",
  6103. 'downloadFile">',
  6104. '<p>File not found<\/p>',
  6105. 'optional--',
  6106. 'optional2--',
  6107. "//a[contains(@href,'filebig.net/files')]"
  6108. );
  6109. }
  6110. if (GM_getValue("Check_gamefront_dot_com_links", false))
  6111. {
  6112. addFileHost(
  6113. "files\\.filefront\\.com\/\/;\\d+;;",
  6114. 'downloadLink">',
  6115. 'File not found, you',
  6116. 'optional--',
  6117. 'optional2--',
  6118. "//a[contains(@href,'files.filefront.com')]"
  6119. );
  6120.  
  6121. addFileHost(
  6122. "gamefront\\.com\/files\/\\d+",
  6123. 'downloadLink">',
  6124. 'File not found, you',
  6125. 'optional--',
  6126. 'optional2--',
  6127. "//a[contains(@href,'gamefront.com/files')]"
  6128. );
  6129. }
  6130. if (GM_getValue("Check_hyperfileshare_dot_com_links", false))
  6131. {
  6132. addFileHost(
  6133. "(?:download\\.|)hyperfileshare\\.com\/(?:download\\.php\\?code=|d\/)\\w+",
  6134. 'dnlLnk"',
  6135. 'already been deleted',
  6136. 'optional--',
  6137. 'optional2--',
  6138. "//a[contains(@href,'hyperfileshare.com/download') or contains(@href,'hyperfileshare.com/d')]"
  6139. );
  6140. }
  6141. if (GM_getValue("Check_hellupload_dot_com_links", false))
  6142. {
  6143. addFileHost(
  6144. "hellupload\\.com\/\\w+",
  6145. '<h3>Download File<br',
  6146. 'id="podstrona">|AVOID_IE_BUG',
  6147. 'optional--',
  6148. 'optional2--',
  6149. "//a[contains(@href,'hellupload.com/')]"
  6150. );
  6151. }
  6152. if (GM_getValue("Check_free_dash_uploading_dot_com_links", false))
  6153. {
  6154. addFileHost(
  6155. "free\\-uploading\\.com\/\\w+",
  6156. 'op" value="download',
  6157. 'class="err">|width:500px;text-align:left;">',
  6158. 'optional--',
  6159. 'optional2--',
  6160. "//a[contains(@href,'free-uploading.com/')]"
  6161. );
  6162. }
  6163. if (GM_getValue("Check_fileape_dot_com_links", false))
  6164. {
  6165. addFileHost(
  6166. "fileape\\.com\/download\\-",
  6167. 'button_dl\\.png',
  6168. 'does not exist\\.',
  6169. 'optional--',
  6170. 'optional2--',
  6171. "//a[contains(@href,'fileape.com/')]"
  6172. );
  6173. }
  6174. if (GM_getValue("Check_uppit_dot_com_links", false))
  6175. {
  6176. addFileHost(
  6177. "(?:uppit\\.com|up\\.ht)\/\\w+",
  6178. 'op" value="download',
  6179. 'class="err">|style="width:500px;text-align:left;"|fish-404\\.png"',
  6180. 'optional--',
  6181. 'optional2--',
  6182. "//a[contains(@href,'up.ht/') or contains(@href,'uppit.com/')]",
  6183. true
  6184. );
  6185. }
  6186. if (GM_getValue("Check_nosupload_dot_com_links", false))
  6187. {
  6188. addFileHost(
  6189. "nosupload\\.com\/(?:\\?d=)?\\w+",
  6190. 'op" value="download',
  6191. '>File Not Found<',
  6192. 'optional--',
  6193. 'optional2--',
  6194. "//a[contains(@href,'nosupload.com')]",
  6195. true
  6196. );
  6197. }
  6198. if (GM_getValue("Check_filesin_dot_com_links", false))
  6199. {
  6200. addFileHost(
  6201. "filesin\\.com\/\\w+\/download\\.html",
  6202. 'download_area">',
  6203. 'error_note">',
  6204. 'optional--',
  6205. 'optional2--',
  6206. "//a[contains(@href,'filesin.com/')]",
  6207. true
  6208. );
  6209. }
  6210. if (GM_getValue("Check_nowdownload_dot_ch_links", false))
  6211. {
  6212. addFileHost(
  6213. "nowdownload\\.ch\/dl\/\\w+",
  6214. 'alert-success"',
  6215. 'This file does not exist!',
  6216. 'The file is being transfered',
  6217. 'optional2--',
  6218. "//a[contains(@href,'nowdownload.ch/dl')]"
  6219. );
  6220. }
  6221. if (GM_getValue("Check_axifile_dot_com_links", false))
  6222. {
  6223. addFileHost(
  6224. "axifile\\.com(?:\/\w(2))?\/\\??\\w+",
  6225. 'Dbutton_big"',
  6226. 'download\\-error\\.php',
  6227. 'optional--',
  6228. 'optional2--',
  6229. "//a[contains(@href,'axifile.com/')]"
  6230. );
  6231. }
  6232. if (GM_getValue("Check_hulkshare_dot_com_links", false))
  6233. {
  6234. addFileHost(
  6235. "hulkshare\.com\/\\w+",
  6236. 'download\.sam\.png|This is a private file|id="filename',
  6237. 'File does not exist|fingerprint protected copyright',
  6238. 'optional--',
  6239. 'optional2--',
  6240. "//a[contains(@href,'hulkshare.com')]"
  6241. );
  6242. }
  6243. if (GM_getValue("Check_turbobit_dot_net_links", false)) //folders
  6244. {
  6245. addFileHost(
  6246. "turbobit\\.(?:net|pl)\/download\/folder\/\\d+",
  6247. 'col-1">\\s*<s',
  6248. 'col-1">\\s*<h',
  6249. 'optional--',
  6250. 'optional2--',
  6251. "//a[contains(@href,'turbobit.') and contains(@href,'download/folder')]"
  6252. );
  6253. }
  6254. if (GM_getValue("Check_turbobit_dot_net_links", false)) //folders
  6255. {
  6256. addFileHost(
  6257. "turbobit\\.(?:net|pl)",
  6258. 'id="download-gate-info',
  6259. 'afterWait()',
  6260. 'optional--',
  6261. 'optional2--',
  6262. "//a[contains(@href,'turbobit.net')]"
  6263. );
  6264. }
  6265. if (GM_getValue("Check_hitfile_dot_net_links", false)) //folders
  6266. {
  6267. addFileHost(
  6268. "hitfile\\.net\/download\/folder\/\\d+",
  6269. 'content">\\s*<s',
  6270. 'content">\\s*<h',
  6271. 'optional--',
  6272. 'optional2--',
  6273. "//a[contains(@href,'hitfile.net/download/folder')]"
  6274. );
  6275. }
  6276. if (GM_getValue("Check_movshare_dot_net_links", false))
  6277. {
  6278. addFileHost(
  6279. "movshare\\.net\\/video\\/\\w+",
  6280. 'optional--"',
  6281. 'no longer exists',
  6282. 'optional--',
  6283. 'optional2--',
  6284. "//a[contains(@href,'movshare.net/video')]"
  6285. );
  6286. }
  6287. if (GM_getValue("Check_plunder_dot_com_links", false))
  6288. {
  6289. addFileHost(
  6290. "plunder\.com\/\\w+",
  6291. 'x\/download\\.gif',
  6292. '404 - File or directory not found.',
  6293. 'optional--',
  6294. 'optional2--',
  6295. "//a[contains(@href,'plunder.com')]"
  6296. );
  6297. }
  6298. if (GM_getValue("Check_mafiastorage_dot_com_links", false))
  6299. {
  6300. addFileHost(
  6301. "mafiastorage\\.com\/\\w+",
  6302. 'op" value="download',
  6303. 'class="err">|style="width:500px;text-align:left;"',
  6304. 'optional--',
  6305. 'optional2--',
  6306. "//a[contains(@href,'mafiastorage.com/')]"
  6307. );
  6308. }
  6309. if (GM_getValue("Check_uploadspace_dot_pl_links", false))
  6310. {
  6311. addFileHost(
  6312. "uploadspace\.pl\/plik\\w+",
  6313. 'Downloading .+? \\|',
  6314. 'Downloading a file',
  6315. 'optional--',
  6316. 'optional2--',
  6317. "//a[contains(@href,'uploadspace.pl/plik')]"
  6318. );
  6319. }
  6320. if (GM_getValue("Check_uploadingit_dot_com_links", false))
  6321. {
  6322. addFileHost(
  6323. "uploadingit\\.com\/file\/\\w+",
  6324. 'downloadTitle">',
  6325. 'deleteContent">',
  6326. 'optional--',
  6327. 'optional2--',
  6328. "//a[contains(@href,'uploadingit.com/file')]"
  6329. );
  6330. }
  6331. if (GM_getValue("Check_rghost_dot_net_links", false))
  6332. {
  6333. addFileHost(
  6334. "rghost\.(?:net|ru)\/(?:|private\/)\\d+",
  6335. 'download_link|btn large download',
  6336. 'file is restricted|File is deleted|503 Service Unavailable',
  6337. 'optional--',
  6338. 'optional2--',
  6339. "//a[contains(@href,'rghost.')]"
  6340. );
  6341. }
  6342. if (GM_getValue("Check_xdisk_dot_cz_links", false))
  6343. {
  6344. addFileHost(
  6345. "xdisk\\.cz\/(?:..\/)?download\\.php\\?id=\\w+",
  6346. '">Staženo:\\s*<\/span>',
  6347. 'Soubor, který hledáte nenalezen',
  6348. 'optional--',
  6349. 'optional2--',
  6350. "//a[contains(@href,'xdisk.cz/')]"
  6351. );
  6352. }
  6353. if (GM_getValue("Check_expressleech_dot_com_links", false))
  6354. {
  6355. addFileHost(
  6356. "expressleech\.com\/\\w+",
  6357. 'src="/img/Download.gif"|var _gaq =',
  6358. 'var rr =|403 Forbidden',
  6359. 'optional--',
  6360. 'optional2--',
  6361. "//a[contains(@href,'expressleech.com')]");
  6362. }
  6363. if (GM_getValue("Check_2downloadz_dot_com_links", false))
  6364. {
  6365. addFileHost(
  6366. "2downloadz\.com\/\\w+",
  6367. 'color="#848484|src="images/Download.png"|color:#238DCA',
  6368. 'color="#006DCC|File error',
  6369. 'optional--',
  6370. 'optional2--',
  6371. "//a[contains(@href,'2downloadz.com')]");
  6372. }
  6373. if (GM_getValue("Check_mightyupload_dot_com_links", false))
  6374. {
  6375. addFileHost(
  6376. "mightyupload\.com\/\\w+",
  6377. 'background:#ccc;text-align|CONTENT="Download File"',
  6378. 'style="background:#eee|var rr =|File Not Found',
  6379. 'error-code">1010',
  6380. 'optional2--',
  6381. "//a[contains(@href,'mightyupload.com')]");
  6382. }
  6383. if (GM_getValue("Check_anysend_dot_com_links", false))
  6384. {
  6385. addFileHost(
  6386. "anysend\.com\/\\w+",
  6387. 'var openCalled=false;|content="noindex"',
  6388. '_trackPageview',
  6389. 'optional--',
  6390. 'optional2--',
  6391. "//a[contains(@href,'anysend.com')]");
  6392. }
  6393. if (GM_getValue("Check_datafile_dot_com_links", false))
  6394. {
  6395. addFileHost(
  6396. "datafile\.com\/\\w+",
  6397. 'var captchaPanel|<link href="/css/files_download.css"',
  6398. 'ErrorCode|ErrorCode 0: Invalid Link|btn-orange" href="#"',
  6399. 'You are downloading another file at this moment|You exceeded your free|Site Maintenance',
  6400. '; display:none;">', //<style type="text/css">
  6401. "//a[contains(@href,'datafile.com')]",
  6402. true);
  6403. }
  6404. if (GM_getValue("Check_upstore_dot_net_links", false))
  6405. {
  6406. addFileHost(
  6407. "upstore\.net\/\\w+",
  6408. 'style="margin-top: 20px">|style="text-align:center; margin: 20px 0 100px;">',
  6409. 'File not found|onload="redirect|class="error">',
  6410. 'optional--',
  6411. 'optional2--',
  6412. "//a[contains(@href,'upstore.net')]");
  6413. }
  6414. if (GM_getValue("Check_upsto_dot_re_links", false))
  6415. {
  6416. addFileHost(
  6417. "upsto\.re\/\\w+",
  6418. 'style="margin-top: 20px">|style="text-align:center; margin: 20px 0 100px;">',
  6419. 'File not found|onload="redirect|class="error">',
  6420. 'optional--',
  6421. 'optional2--',
  6422. "//a[contains(@href,'upsto.re')]");
  6423. }
  6424. if (GM_getValue("Check_speedy_dot_sh_links", false))
  6425. {
  6426. addFileHost(
  6427. "speedy\.sh\/\\w+",
  6428. 'bgcolor=#eeeeee|class="addthis',
  6429. 'File not found|downloadfilenamenotfound>',
  6430. 'optional--',
  6431. 'optional2--',
  6432. "//a[contains(@href,'speedy.sh')]");
  6433. }
  6434. if (GM_getValue("Check_sanshare_dot_com_links", false))
  6435. {
  6436. addFileHost(
  6437. "sanshare\.com\/\\w+",
  6438. 'SANSHARE_TOPBANNER|offset-1"><h3><b>Download File',
  6439. 'offset-1"><b>File Not Found<|width:500px;text-align',
  6440. 'optional--',
  6441. 'optional2--',
  6442. "//a[contains(@href,'sanshare.com')]");
  6443. }
  6444. if (GM_getValue("Check_uploadhero_dot_co_links", false))
  6445. {
  6446. addFileHost(
  6447. "uploadhero\\.co\/dl\/\\w+",
  6448. 'class="nom_de_fichier"|Unlimited downloads|Estimated download time|Lien de téléchargement"',
  6449. 'not available on our server|pas disponible sur nos serveurs|Le lien du fichier est incorrect',
  6450. 'optional--',
  6451. 'optional2--',
  6452. "//a[contains(@href,'uploadhero.co/dl')]"
  6453. );
  6454. }
  6455. if (GM_getValue("Check_secureupload_dot_eu_links", false))
  6456. {
  6457. addFileHost(
  6458. "secureupload\\.eu\/\\w+",
  6459. 'Downloading',
  6460. 'cannot be found|File Not Found|could not be found',
  6461. 'optional--',
  6462. 'optional2--',
  6463. "//a[contains(@href,'secureupload.eu')]"
  6464. );
  6465. }
  6466. if (GM_getValue("Check_ge_dot_tt_links", false))
  6467. {
  6468. addFileHost(
  6469. "ge\.tt\/\\w+",
  6470. 'downloads pic',
  6471. 'is NOT the same as',
  6472. 'optional--',
  6473. 'optional2--',
  6474. "//a[contains(@href,'ge.tt')]");
  6475. }
  6476. if (GM_getValue("Check_filefactory_dot_com_links", false))
  6477. {
  6478. addFileHost(
  6479. "filefactory\.com\/\\w+",
  6480. 'div id="file_holder"|download.css',
  6481. 'File Removed|Invalid Download Link|File Unavailable|Server Failed|Datei entfernt|This file has been removed|Invalid Download Link',
  6482. 'Server Maintenance|temporarily overloaded',
  6483. 'optional2--',
  6484. "//a[contains(@href,'filefactory.com')]");
  6485. }
  6486. if (GM_getValue("Check_filesflash_dot_net_links", false))
  6487. {
  6488. addFileHost(
  6489. "filesflash\.net\/\\w+",
  6490. 'align:right">Filename:',
  6491. 'class="msg">',
  6492. 'optional--',
  6493. 'optional2--',
  6494. "//a[contains(@href,'filesflash.net')]");
  6495. }
  6496. if (GM_getValue("Check_rapidgator_dot_net_links", false)) //folders
  6497. {
  6498. addFileHost(
  6499. "rapidgator\\.net\/folder\/\\w+",
  6500. 'href="/folder/',
  6501. 'class="empty|Folder not found|Carpeta no encontrada|Dossier non trouvé|Папка не найдена',
  6502. 'optional--',
  6503. 'optional2--',
  6504. "//a[contains(@href,'rapidgator.net/folder')]",
  6505. true
  6506. );
  6507. }
  6508. if (GM_getValue("Check_salefiles_dot_com_links", false))
  6509. {
  6510. addFileHost(
  6511. "salefiles\.com\/\\w+",
  6512. '<Title>Download|CONTENT="Download',
  6513. 'font:15px Arial|background:#eee;',
  6514. 'optional--',
  6515. 'optional2--',
  6516. "//a[contains(@href,'salefiles.com')]");
  6517. }
  6518. if (GM_getValue("Check_megairon_dot_net_links", false))
  6519. {
  6520. addFileHost(
  6521. "megairon\.net\/\\w+",
  6522. 'border: 5px #ffeb90 solid;',
  6523. 'CONTENT="Download File ">|var rr =',
  6524. 'error-code">523',
  6525. 'optional2--',
  6526. "//a[contains(@href,'megairon.net')]",
  6527. true);
  6528. }
  6529. if (GM_getValue("Check_datoid_dot_cz_links", false))
  6530. {
  6531. addFileHost(
  6532. "datoid\.cz\/\\w+",
  6533. 'btn-download|class="icon-download-large"',
  6534. 'Stránka nenalezena|error-404|Soubor byl zablokován',
  6535. 'optional--',
  6536. 'optional2--',
  6537. "//a[contains(@href,'datoid.cz')]");
  6538. }
  6539. if (GM_getValue("Check_stiahni_dot_si_links", false))
  6540. {
  6541. addFileHost(
  6542. "stiahni\.si\/\\w+",
  6543. 'report_icon.png"|slow-download-button',
  6544. 'none.png|deleted|<h2>Error 500</h2>',
  6545. 'optional--',
  6546. 'optional2--',
  6547. "//a[contains(@href,'stiahni.si')]");
  6548. }
  6549. if (GM_getValue("Check_cloudstor_dot_es_links", false))
  6550. {
  6551. addFileHost(
  6552. "cloudstor\.es\/\\w+",
  6553. '"btn_download"',
  6554. '404: Page Not Found',
  6555. 'optional--',
  6556. 'optional2--',
  6557. "//a[contains(@href,'cloudstor.es')]");
  6558. }
  6559. if (GM_getValue("Check_streamfile_dot_com_links", false))
  6560. {
  6561. addFileHost(
  6562. "streamfile\.com\/\\w+",
  6563. 'class="btn',
  6564. 'class="green-btn',
  6565. 'optional--',
  6566. 'optional2--',
  6567. "//a[contains(@href,'streamfile.com')]");
  6568. }
  6569. if (GM_getValue("Check_eyesfile_dot_ca_links", false))
  6570. {
  6571. addFileHost(
  6572. "eyesfile\.ca\/\\w+",
  6573. 'value="Get Link',
  6574. 'var rr =',
  6575. 'optional--',
  6576. 'optional2--',
  6577. "//a[contains(@href,'eyesfile.ca')]");
  6578. }
  6579. if (GM_getValue("Check_filemoney_dot_com_links", false))
  6580. {
  6581. addFileHost(
  6582. "filemoney\.com\/\\w+",
  6583. 'og:title',
  6584. '404 Not Found|<Title>FileMoney|File Not Found|class="err">DMCA</b>',
  6585. 'error-code">1010',
  6586. 'optional2--',
  6587. "//a[contains(@href,'filemoney.com')]");
  6588. }
  6589. if (GM_getValue("Check_uploadboy_dot_com_links", false))
  6590. {
  6591. addFileHost(
  6592. "uploadboy\.com\/\\w+",
  6593. 'width="740">|method_free',
  6594. 'var rr =|background:#ffffff|not be found|file was removed',
  6595. 'optional--',
  6596. 'optional2--',
  6597. "//a[contains(@href,'uploadboy.com')]");
  6598. }
  6599. if (GM_getValue("Check_speedshare_dot_eu_links", false))
  6600. {
  6601. addFileHost(
  6602. "speedshare\.eu\/\\w+",
  6603. 'favicon.png|color:#3d87c0|cross.png"',
  6604. 'var rr =|File Not Found|style="background:#eee',
  6605. 'optional--',
  6606. 'optional2--',
  6607. "//a[contains(@href,'speedshare.eu')]");
  6608. }
  6609. if (GM_getValue("Check_unlimitzone_dot_com_links", false))
  6610. {
  6611. addFileHost(
  6612. "unlimitzone\.com\/\\w+",
  6613. 'name="method_free',
  6614. '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',
  6615. 'optional--',
  6616. 'optional2--',
  6617. "//a[contains(@href,'unlimitzone.com')]");
  6618. }
  6619. if (GM_getValue("Check_rioupload_dot_com_links", false))
  6620. {
  6621. addFileHost(
  6622. "rioupload\.com\/\\w+",
  6623. 'sell.jpg',
  6624. 'var rr =',
  6625. 'optional--',
  6626. 'optional2--',
  6627. "//a[contains(@href,'rioupload.com')]");
  6628. }
  6629. if (GM_getValue("Check_rg_dot_to_links", false))
  6630. {
  6631. addFileHost(
  6632. "rg\.to\/\\w+",
  6633. '/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',
  6634. 'Error 404|File not found|Select your plan|Fichier non trouvé|Archivo no encontrado|ファイルが探せませんでした|Файл не найден',
  6635. 'optional--',
  6636. 'can be downloaded by premium only|files up to 500 MB in free mode',
  6637. "//a[contains(@href,'rg.to')]");
  6638. }
  6639. if (GM_getValue("Check_jumbofiles_dot_org_links", false))
  6640. {
  6641. addFileHost(
  6642. "jumbofiles\.org\/\\w+",
  6643. 'H71C5.png|class="downloadtitle">',
  6644. 'var swfu|ViewSourceBIN.png',
  6645. 'optional--',
  6646. 'optional2--',
  6647. "//a[contains(@href,'jumbofiles.org')]");
  6648. }
  6649. if (GM_getValue("Check_fshare_dot_vn_links", false))
  6650. {
  6651. addFileHost(
  6652. "fshare\\.vn\/file\/\\w+",
  6653. 'action="#download"|left; width: 330px;">|class="bt_down"',
  6654. 'không tồn tại|class="color_red m_t_50"',
  6655. 'optional--',
  6656. 'optional2--',
  6657. "//a[contains(@href,'fshare.vn/file')]",
  6658. true
  6659. );
  6660. }
  6661. if (GM_getValue("Check_spaceforfiles_dot_com_links", false))
  6662. {
  6663. addFileHost(
  6664. "spaceforfiles\.com\/\\w+",
  6665. 'btn_slowspeed_b.jpg|value="download1|class="btn_blue',
  6666. 'var rr =|AVOID_IE_BUG',
  6667. 'optional--',
  6668. 'optional2--',
  6669. "//a[contains(@href,'spaceforfiles.com')]");
  6670. }
  6671. if (GM_getValue("Check_google_dot_com_links", false))
  6672. {
  6673. addFileHost(
  6674. "google\\.com\/file\/\\w+",
  6675. 'content="!">|color:#2d2d2d',
  6676. '12pt; font-weight:|class="errorMessage"|F0F6FF',
  6677. 'optional--',
  6678. 'optional2--',
  6679. "//a[contains(@href,'google.com/file')]",
  6680. true
  6681. );
  6682. }
  6683. if (GM_getValue("Check_google_dot_com_links", false))
  6684. {
  6685. addFileHost(
  6686. "docs.google.com\/\\w+",
  6687. 'content="!">|color:#2d2d2d',
  6688. '12pt; font-weight:|class="errorMessage"|F0F6FF|Error 404',
  6689. 'optional--',
  6690. 'optional2--',
  6691. "//a[contains(@href,'docs.google.com')]",
  6692. true
  6693. );
  6694. }
  6695. if (GM_getValue("Check_google_dot_com_links", false))
  6696. {
  6697. addFileHost(
  6698. "drive.google.com\/\\w+",
  6699. 'content="!">|color:#2d2d2d|id="uc-download-link',
  6700. '12pt; font-weight:|class="errorMessage"|F0F6FF|Error 404',
  6701. 'optional--',
  6702. 'optional2--',
  6703. "//a[contains(@href,'drive.google.com')]",
  6704. true
  6705. );
  6706. }
  6707. if (GM_getValue("Check_up_dot_media1fire_dot_com_links", false))
  6708. {
  6709. addFileHost(
  6710. "up.media1fire\.com\/\\w+",
  6711. 'class="addthis_|value="download',
  6712. 'var rr =|AVOID_IE_BUG|<div style="width:500px;text-align:left;">',
  6713. 'optional--',
  6714. 'optional2--',
  6715. "//a[contains(@href,'up.media1fire.com')]");
  6716. }
  6717. if (GM_getValue("Check_depfile_dot_com_links", false))
  6718. {
  6719. addFileHost(
  6720. "depfile\.com\/\\w+",
  6721. 'logo_0.png|downloads.gif"|verifycode',
  6722. 'border-color: #5D729B;|bgcolor="#778AAF"|deleted by the owner|Invalid Link',
  6723. 'optional--',
  6724. 'optional2--',
  6725. "//a[contains(@href,'depfile.com')]");
  6726. }
  6727. if (GM_getValue("Check_go4up_dot_com_links", false))
  6728. {
  6729. addFileHost(
  6730. "go4up\.com\/\\w+",
  6731. 'style="width: 100%;">|value="Access|download_line|img/webbuttoned.gif">',
  6732. '<title>GO4UP|dmca',
  6733. 'optional--',
  6734. 'optional2--',
  6735. "//a[contains(@href,'go4up.com')]");
  6736. }
  6737. if (GM_getValue("Check_redbunker_dot_net_links", false))
  6738. {
  6739. addFileHost(
  6740. "redbunker\.net\/\\w+",
  6741. 'dload.png|rowspan="3">|yep.gif',
  6742. 'CONTENT="RedBunker|#D3D3D3;|color:#d33|AVOID_IE_BUG',
  6743. 'optional--',
  6744. 'optional2--',
  6745. "//a[contains(@href,'redbunker.net')]");
  6746. }
  6747. if (GM_getValue("Check_divxpress_dot_com_links", false))
  6748. {
  6749. addFileHost(
  6750. "divxpress\.com\/\\w+",
  6751. 'btn_download|logo.png"',
  6752. 'AVOID_IE_BUG|var rr =',
  6753. 'optional--',
  6754. 'optional2--',
  6755. "//a[contains(@href,'divxpress.com')]");
  6756. }
  6757. if (GM_getValue("Check_anafile_dot_com_links", false))
  6758. {
  6759. addFileHost(
  6760. "anafile\.com\/\\w+",
  6761. 'width="881" valign="top|color="#800080"|name="go"',
  6762. 'style="width:500px;text-align:left;">|file was deleted|AVOID_IE_BUG',
  6763. 'optional--',
  6764. 'optional2--',
  6765. "//a[contains(@href,'anafile.com')]");
  6766. }
  6767. if (GM_getValue("Check_uploadable_dot_ch_links", false))
  6768. {
  6769. addFileHost(
  6770. "uploadable\\.ch\/file\/\\w+",
  6771. 'captcha.js"|payment.js"|class="btn_download"',
  6772. '<div class="icon_err">|<div class="errorBox">|"error_arrow">',
  6773. 'optional--',
  6774. 'optional2--',
  6775. "//a[contains(@href,'uploadable.ch/file')]",
  6776. true
  6777. );
  6778. }
  6779. if (GM_getValue("Check_arabloads_dot_net_links", false))
  6780. {
  6781. addFileHost(
  6782. "arabloads\.net\/\\w+",
  6783. 'name="method_free"|name="method_premium"',
  6784. 'background:#eee;font:15px Arial;">|AVOID_IE_BUG|Verdana;padding:3px;">Error|Not Found',
  6785. 'optional--',
  6786. 'optional2--',
  6787. "//a[contains(@href,'arabloads.net')]");
  6788. }
  6789. if (GM_getValue("Check_sharerepo_dot_com_links", false))
  6790. {
  6791. addFileHost(
  6792. "sharerepo\.com\/\\w+",
  6793. 'name="method_free"',
  6794. 'var public_on=|The file you were looking for could not be found',
  6795. 'optional--',
  6796. 'optional2--',
  6797. "//a[contains(@href,'sharerepo.com')]");
  6798. }
  6799. if (GM_getValue("Check_sfshare_dot_se_links", false))
  6800. {
  6801. addFileHost(
  6802. "sfshare\.se\/\\w+",
  6803. 'id="btn_download"|class="btn btn-primary txt-bold" value="',
  6804. 'AVOID_IE_BUG|var rr =|style="width:500px;text-align:left;">|Reason for deletion|The file was removed',
  6805. 'optional--',
  6806. 'optional2--',
  6807. "//a[contains(@href,'sfshare.se')]");
  6808. }
  6809. if (GM_getValue("Check_files_dot_fm_links", false))
  6810. {
  6811. addFileHost(
  6812. "files\.fm\/\\w+",
  6813. 'dl.png"|background-color: transparent',
  6814. 'margin: 40px 40px|background: none;',
  6815. 'optional--',
  6816. 'optional2--',
  6817. "//a[contains(@href,'files.fm')]");
  6818. }
  6819. if (GM_getValue("Check_koofile_dot_com_links", false))
  6820. {
  6821. addFileHost(
  6822. "koofile\.com\/\\w+",
  6823. 'value="download1">|name="method_free"',
  6824. 'class="overview-content c_text-box ">|style="padding-top:3px;">|class="rt1 c">',
  6825. 'optional--',
  6826. 'optional2--',
  6827. "//a[contains(@href,'koofile.com')]");
  6828. }
  6829. if (GM_getValue("Check_vidxden_dot_com_links", false))
  6830. {
  6831. addFileHost(
  6832. "vidxden\\.com\/\\w+",
  6833. 'Continue to Video"',
  6834. 'No such file',
  6835. 'optional--',
  6836. 'optional2--',
  6837. "//a[contains(@href,'vidxden.com')]"
  6838. );
  6839. }
  6840. if (GM_getValue("Check_muchshare_dot_net_links", false))
  6841. {
  6842. addFileHost(
  6843. "muchshare\\.net\/\\w+",
  6844. 'id="btn_download"',
  6845. 'File Not Found|width: 500px; text-align: left;',
  6846. 'optional--',
  6847. 'optional2--',
  6848. "//a[contains(@href,'muchshare.net')]"
  6849. );
  6850. }
  6851. if (GM_getValue("Check_daten_dash_hoster_dot_de_links", false))
  6852. {
  6853. addFileHost(
  6854. "(?:daten-hoster\\.de\/file\/\\w+|filehosting\\.org\/file\/\\w+|xtraupload\\.de\/\\?d=\\w+)",
  6855. 'Details zur Datei|Details page',
  6856. 'Jetzt hochladen|upload now',
  6857. 'optional--',
  6858. 'optional2--',
  6859. "//a[contains(@href,'daten-hoster.de/file') or contains(@href,'filehosting.org/file') or contains(@href,'xtraupload.de')]"
  6860. );
  6861. }
  6862. if (GM_getValue("Check_upload_dash_il_dot_net_links", false))
  6863. {
  6864. addFileHost(
  6865. "(?:upload-il|przeslij)\.net\/(?:en|he|ar|ru|)\/?\\w+",
  6866. 'downloadbtn"',
  6867. 'DL_FileNotFound',
  6868. 'optional--',
  6869. 'optional2--',
  6870. "//a[contains(@href,'upload-il.net') or contains(@href,'przeslij.net')]"
  6871. );
  6872. }
  6873. if (GM_getValue("Check_fileflyer_dot_com_links", false))
  6874. {
  6875. addFileHost(
  6876. "fileflyer\.com\/view\/\\w+",
  6877. '(?:dwl|locked)btn"',
  6878. 'error.gif"|link">Removed|removedlink">',
  6879. 'optional--',
  6880. 'optional2--',
  6881. "//a[contains(@href,'fileflyer.com')]"
  6882. );
  6883. }
  6884. if (GM_getValue("Check_filestore_dot_to_links", false))
  6885. {
  6886. addFileHost(
  6887. "filestore\.to\/\\?d=\\w+",
  6888. '"downloading"',
  6889. 'Datei wurde nicht gefunden',
  6890. 'optional--',
  6891. 'optional2--',
  6892. "//a[contains(@href,'filestore.to')]"
  6893. );
  6894. }
  6895. if (GM_getValue("Check_easy_dash_share_dot_com_links", false))
  6896. {
  6897. addFileHost(
  6898. "(?:w\\d*\.|)(?:crocko|easy-share)\\.com\/.",
  6899. 'fz24">Download|class="pl15">',
  6900. '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',
  6901. 'optional--',
  6902. 'optional2--',
  6903. "//a[contains(@href,'easy-share.com') or contains(@href,'crocko.com')]"
  6904. );
  6905. }
  6906. /* if (GM_getValue("Check_burnupload_dot_com_links", false))
  6907. {
  6908. addFileHost(
  6909. "burnupload\\.(?:com\/\\?d=|ihiphop\\.com\/download\\.php\\?id=)\\w+",
  6910. 'File size:',
  6911. 'file is not found',
  6912. 'optional--',
  6913. 'optional2--',
  6914. "//a[contains(@href,'burnupload.com') or contains(@href,'burnupload.ihiphop.com')]"
  6915. );
  6916. } */
  6917. if (GM_getValue("Check_datei_dot_to_links", false))
  6918. {
  6919. addFileHost(
  6920. "datei\\.to\/\\??\\w+",
  6921. 'icon_downloaden\\.png|>Download starten<',
  6922. 'Datei wurde nicht gefunden|icon_deleted.png',
  6923. 'optional--',
  6924. 'optional2--',
  6925. "//a[contains(@href,'datei.to')]"
  6926. );
  6927. }
  6928. if (GM_getValue("Check_yunfile_dot_com_links", false))
  6929. {
  6930. addFileHost(
  6931. "(?:yunfile|filemarkets)\\.com\/\\w+",
  6932. '<body class="body" id="body">|value="Slow Download"',
  6933. '<body class="body" >',
  6934. 'optional--',
  6935. 'optional2--',
  6936. "//a[contains(@href,'yunfile.com') or contains(@href,'filemarkets.com')]"
  6937. );
  6938. }
  6939. if (GM_getValue("Check_uploadhero_dot_com_links", false))
  6940. {
  6941. addFileHost(
  6942. "uploadhero\\.com\/dl\/\\w+",
  6943. 'content-dl">',
  6944. 'men_file_lost\\.jpg"',
  6945. 'optional--',
  6946. 'optional2--',
  6947. "//a[contains(@href,'uploadhero.com/dl')]"
  6948. );
  6949. }
  6950. if (GM_getValue("Check_unibytes_dot_com_links", false))
  6951. {
  6952. addFileHost(
  6953. "unibytes\\.com\/[\\w\.]+",
  6954. 'trying to download|пытаетесь загрузить файл|tes entrain de tlcharger',
  6955. 'File not found|Файл не найден|',
  6956. 'optional--',
  6957. 'optional2--',
  6958. "//a[contains(@href,'unibytes.com')]"
  6959. );
  6960. }
  6961. if (GM_getValue("Check_hellshare_dot_com_links", false)) //very old type of links
  6962. {
  6963. addFileHost(
  6964. "www\\.hellshare\\.com\/\\d+",
  6965. 'tab\\-details"',
  6966. 'list-purp-2"|not found on this server',
  6967. 'optional--',
  6968. 'optional2--',
  6969. "//a[contains(@href,'www.hellshare.com')]"
  6970. );
  6971. }
  6972. /* if (GM_getValue("Check_quickshare_dot_cz_links", false)) //folders
  6973. {
  6974. addFileHost(
  6975. "quickshare\\.cz\/slozka-\\d+",
  6976. 'Počet souborů: <strong>[1-9]',
  6977. 'Počet souborů: <strong>0|Chyba! Taková složka neexistuje',
  6978. 'optional--',
  6979. 'optional2--',
  6980. "//a[contains(@href,'quickshare.cz/slozka')]"
  6981. );
  6982. } */
  6983. if (GM_getValue("Check_filefactory_dot_com_links", false)) //folders
  6984. {
  6985. addFileHost(
  6986. "filefactory\\.com\/f\/\\w+",
  6987. 'folderFileList">',
  6988. 'table class="items"|Pointer" class="red">',
  6989. 'optional--',
  6990. 'optional2--',
  6991. "//a[contains(@href,'filefactory.com/f/')]"
  6992. );
  6993. }
  6994. if (GM_getValue("Check_netload_dot_in_links", false)) //folders
  6995. {
  6996. addFileHost(
  6997. "netfolder\\.in\/\\w+",
  6998. 'list" value="http',
  6999. 'InPage_Error">|list" value=""',
  7000. 'optional--',
  7001. 'optional2--',
  7002. "//a[contains(@href,'netfolder.in')]"
  7003. );
  7004. }
  7005. if (GM_getValue("Check_load_dot_to_links", false))
  7006. {
  7007. addFileHost(
  7008. '(?:www\\.|\\/)load\\.to\\/(?:\\w{10}\\/.|\\?d=\\w{10})',
  7009. '"download_table_left">Size',
  7010. 'Can\'t find file',
  7011. 'optional--',
  7012. 'optional2--',
  7013. "//a[contains(@href,'/load.to/') or contains(@href,'www.load.to/')]"
  7014. );
  7015. }
  7016. if (GM_getValue("Check_divshare_dot_com_links", false))
  7017. {
  7018. addFileHost(
  7019. "divshare\\.com\/download\/",
  7020. 'download_new\.png',
  7021. 'have been removed',
  7022. 'optional--',
  7023. 'optional2--',
  7024. "//a[contains(@href,'divshare.com')]"
  7025. );
  7026. }
  7027. if (GM_getValue("Check_euroshare_dot_eu_links", false))
  7028. {
  7029. addFileHost(
  7030. "euroshare\\.(?:eu|pl|sk|cz|hu)\/file\/\\d+",
  7031. 'nazev-souboru">',
  7032. '<div id="obsah">\\s*<h1>',
  7033. 'optional--',
  7034. 'optional2--',
  7035. "//a[contains(@href,'euroshare.eu/file')]"
  7036. );
  7037. }
  7038. if (GM_getValue("Check_files_dot_mail_dot_ru_links", false))
  7039. {
  7040. addFileHost(
  7041. 'files\\.mail\\.ru/(?:\\w*)',
  7042. 'fileList',
  7043. 'errorMessage',
  7044. 'optional--',
  7045. 'optional2--',
  7046. "//a[contains(@href,'files.mail.ru')]"
  7047. );
  7048. }
  7049. if (GM_getValue("Check_megashares_dot_com_links", false))
  7050. {
  7051. addFileHost(
  7052. "(?:d\\d+\.|)megashares\.com\/(?:dl|index\.php\\?d|\\?d\\d+=\\w+)",
  7053. 'Filesize',
  7054. 'Invalid|deleted|Could not download file',
  7055. 'slots|scheduled maintenance',
  7056. 'optional2--',
  7057. "//a[contains(@href,'megashares.com/')]"
  7058. );
  7059. }
  7060. if (GM_getValue("Check_narod_dot_ru_links", false))
  7061. {
  7062. addFileHost(
  7063. 'narod\\.(?:yandex\\.|)ru\/disk\/',
  7064. 'b-submit',
  7065. 'b-download-virus-note|headCode">404<',
  7066. 'Внутренняя ошибка сервиса',
  7067. 'optional2--',
  7068. "//a[contains(@href,'narod.ru') or contains(@href,'narod.yandex.ru')]"
  7069. );
  7070. }
  7071. if (GM_getValue("Check_rayfile_dot_com_links", false))
  7072. {
  7073. addFileHost(
  7074. "rayfile\\.com\/",
  7075. 'FILEtitleTXT',
  7076. 'blueRow',
  7077. 'optional--',
  7078. 'optional2--',
  7079. "//a[contains(@href,'rayfile.com/') and contains(@href,'files')]"
  7080. );
  7081. }
  7082. if (GM_getValue("Check_filesmonster_dot_com_links", false))
  7083. {
  7084. addFileHost(
  7085. "filesmonster\\.com\/download\\.php\\?id=\\w+",
  7086. 'button_green_body"',
  7087. 'error">',
  7088. 'optional--',
  7089. 'optional2--',
  7090. "//a[contains(@href,'filesmonster.com/download')]"
  7091. );
  7092. }
  7093. if (GM_getValue("Check_usaupload_dot_net_links", false))
  7094. {
  7095. addFileHost(
  7096. 'usaupload\\.net\/d\/(?:\w*)',
  7097. '<strong>File size:</strong>',
  7098. 'is not available',
  7099. 'optional--',
  7100. 'optional2--',
  7101. "//a[contains(@href,'usaupload.net/d/')]"
  7102. );
  7103. }
  7104. if (GM_getValue("Check_sendspace_dot_com_links", false))
  7105. {
  7106. addFileHost(
  7107. 'sendspace\\.com\/file\/\\w+',
  7108. 'file_description',
  7109. 'msg error"',
  7110. 'optional--',
  7111. 'optional2--',
  7112. "//a[contains(@href,'sendspace.com/file')]"
  7113. );
  7114. }
  7115. if (GM_getValue("Check_sendspace_dot_pl_links", false))
  7116. {
  7117. addFileHost(
  7118. 'sendspace\\.pl\/file\/\\w+',
  7119. 'download_file"',
  7120. 'Podany plik nie',
  7121. 'optional--',
  7122. 'optional2--',
  7123. "//a[contains(@href,'sendspace.pl/file')]"
  7124. );
  7125. }
  7126. if (GM_getValue("Check_uploading_dot_com_links", false))
  7127. {
  7128. addFileHost(
  7129. 'uploading\\.com\/(?:files\/)?\\w+',
  7130. 'free_method">',
  7131. 'file_error">|error_404">|file not found|OOPS! Looks like file not found',
  7132. 'optional--',
  7133. 'optional2--',
  7134. "//a[contains(@href,'uploading.com')]"
  7135. );
  7136. }
  7137. if (GM_getValue("Check_gigasize_dot_com_links", false))
  7138. {
  7139. addFileHost(
  7140. 'gigasize\\.com\/get\\.php(?:\/\\d+|\\?d=\\w+)',
  7141. 'fileId"',
  7142. 'error">',
  7143. 'optional--',
  7144. 'optional2--',
  7145. "//a[contains(@href,'gigasize.com/get')]"
  7146. );
  7147. }
  7148. if (GM_getValue("Check_good_dot_com_links", false))
  7149. {
  7150. addFileHost(
  7151. 'good\\.net\/(?:_|dl)',
  7152. 'Free Download',
  7153. 'Not Found',
  7154. 'Forbidden',
  7155. 'optional2--',
  7156. "//a[contains(@href,'good.net')]"
  7157. );
  7158. }
  7159. if (GM_getValue("Check_2shared_dot_com_links", false))
  7160. {
  7161. addFileHost(
  7162. '2shared\\.com\/(?:file|video|document|audio)\/\\w*',
  7163. 'File size',
  7164. 'File not found|is not valid|/images/important.gif',
  7165. 'optional--',
  7166. 'optional2--',
  7167. "//a[contains(@href,'2shared.com/file/') or contains (@href,'2shared.com/audio/') or contains (@href,'2shared.com/document/') or contains (@href,'2shared.com/video/')]"
  7168. );
  7169. }
  7170. if (GM_getValue("Check_turboupload_dot_com_links", false))
  7171. {
  7172. addFileHost(
  7173. 'turboupload\\.com\/\\w*',
  7174. 'You have requested',
  7175. 'File Not Found',
  7176. 'optional--',
  7177. 'optional2--',
  7178. "//a[contains(@href,'turboupload.com')]"
  7179. );
  7180. }
  7181. if (GM_getValue("Check_gigapeta_dot_com_links", false))
  7182. {
  7183. addFileHost(
  7184. 'gigapeta\\.com\/dl\/',
  7185. 'Download file|Скачать файл| Herunterzuladen|Scarica il file|Cargar el fichero|Charger le fichier',
  7186. '404|page_error',
  7187. 'optional--',
  7188. 'optional2--',
  7189. "//a[contains(@href,'gigapeta.com/dl')]"
  7190. );
  7191. }
  7192. if (GM_getValue("Check_veehd_dot_com_links", false))
  7193. {
  7194. addFileHost(
  7195. 'veehd\.com\/video\/.*?',
  7196. 'No sound|Download video',
  7197. 'Featured Videos',
  7198. 'optional--',
  7199. 'optional2--',
  7200. "//a[contains(@href,'veehd.com') and contains(@href,'video')]"
  7201. );
  7202. }
  7203. if (GM_getValue("Check_vip_dash_file_dot_com_links", false))
  7204. {
  7205. addFileHost(
  7206. '(?:u\\d+\\.)?vip-file\\.com\/download.*?\/(?:.*?)\/(?:.*?)\\.html',
  7207. 'fast_download_form">|submit_sms_download',
  7208. '<p style="text-align:center">',
  7209. 'optional--',
  7210. 'optional2--',
  7211. "//a[contains(@href,'vip-file.com/download')]"
  7212. );
  7213. }
  7214. if (GM_getValue("Check_letitbit_dot_net_links", false))
  7215. {
  7216. addFileHost(
  7217. '(?:u\\d+\\.)?letitbit\\.net\/download\/\\w+',
  7218. 'download\\-pnl ',
  7219. 'color:#000">|Запрашиваемый файл не найден|страница не существует|File not found|',
  7220. 'optional--',
  7221. 'optional2--',
  7222. "//a[contains(@href,'letitbit.net/download')]"
  7223. );
  7224. }
  7225. if (GM_getValue("Check_ifolder_dot_ru_links", false))
  7226. {
  7227. addFileHost(
  7228. 'ifolder\.ru\/\\d+',
  7229. 'file-info',
  7230. 'ui-state-error',
  7231. 'optional--',
  7232. 'optional2--',
  7233. "//a[contains(@href,'ifolder.ru')]"
  7234. );
  7235. }
  7236. if (GM_getValue("Check_fileswap_dot_com_links", false))
  7237. {
  7238. addFileHost(
  7239. 'fileswap\\.com\/dl\/\\w+',
  7240. 'bttnDownloadLink"',
  7241. 'rounded_block_error"',
  7242. 'is temporary unavailable|disponible en estos momentos|vorläufig unerreichbar|Файл временно недоступен',
  7243. 'optional2--',
  7244. "//a[contains(@href,'fileswap.com/dl')]"
  7245. );
  7246. }
  7247. if (GM_getValue("Check_filecloud_dot_io_links", false))
  7248. {
  7249. addFileHost(
  7250. '(?:s\\d+\\.)?filecloud\\.io\/\\w+',
  7251. 'var __error = 0',
  7252. 'FILES__DOESNT_EXIST|removed or did not exist',
  7253. 'optional--',
  7254. 'optional2--',
  7255. "//a[contains(@href,'filecloud.io/')]"
  7256. );
  7257. addFileHost(
  7258. 'ifile\\.it\/\\w+',
  7259. 'var __error = 0',
  7260. 'FILES__DOESNT_EXIST',
  7261. 'optional--',
  7262. 'optional2--',
  7263. "//a[contains(@href,'ifile.it/')]"
  7264. );
  7265. }
  7266. if (GM_getValue("Check_solidfiles_dot_com_links", false))
  7267. {
  7268. addFileHost(
  7269. 'solidfiles\\.com\/d\/\\w+',
  7270. 'id="download"|content="Download',
  7271. '>Not found<|<h2>404</h2>|Page not found|<h1>404</h1>|File not available|no longer available',
  7272. 'optional--',
  7273. 'optional2--',
  7274. "//a[contains(@href,'solidfiles.com/d')]"
  7275. );
  7276. }
  7277. if (GM_getValue("Check_shareflare_dot_net_links", false))
  7278. {
  7279. addFileHost(
  7280. "(?:.\\.|)shareflare\\.net",
  7281. 'download-pnl|<div class="premium-block">',
  7282. 'File not found|Поиск зеркала на фа|<div id="captcha"',
  7283. 'optional--',
  7284. 'optional2--',
  7285. "//a[contains(@href,'shareflare.net') and contains(@href,'download')]"
  7286. );
  7287. }
  7288. if (GM_getValue("Check_u18116681_dot_shareflare_dot_net_links", false))
  7289. {
  7290. addFileHost(
  7291. "u18116681.shareflare\\.net",
  7292. 'download-pnl|<div class="premium-block">',
  7293. 'File not found|Поиск зеркала на фа|<div id="captcha"',
  7294. 'optional--',
  7295. 'optional2--',
  7296. "//a[contains(@href,'shareflare.net') and contains(@href,'download')]"
  7297. );
  7298. }
  7299. if (GM_getValue("Check_uloz_dot_to_links", false))
  7300. {
  7301. addFileHost(
  7302. "(?:uloz|ulozto|bagruj|zachowajto)\\.(to|cz|sk|net|pl)\/\\w",
  7303. 'fileDownload">|fileSize">',
  7304. 'grayButton deletedFile">|Stránka nenalezena|upload-button"|jako soukromý.',
  7305. 'passwordProtectedFile">|frmaskAgeForm-disagree',
  7306. 'optional2--',
  7307. "//a[contains(@href,'bagruj.cz') or contains(@href,'uloz.to') or contains(@href,'ulozto.') or contains(@href,'zachowajto.pl')]",
  7308. true
  7309. );
  7310. }
  7311. if (GM_getValue("Check_hellspy_dot_com_links", false))
  7312. {
  7313. addFileHost(
  7314. "hellspy\.(?:com|cz|sk|hu|pl)\/\\w+",
  7315. 'file\\-list-orderby|section-filedetail">',
  7316. '<\/span><\/h2>\\s*<p>|list-purp-2">|flash info sticky">',
  7317. 'optional--',
  7318. 'optional2--',
  7319. "//a[contains(@href,'hellspy.')]"
  7320. );
  7321. }
  7322. if (GM_getValue("Check_leteckaposta_dot_cz_links", false))
  7323. {
  7324. addFileHost(
  7325. "(?:leteckaposta\\.cz|sharegadget\\.com)\/\\d+",
  7326. '<body onload="">',
  7327. 'neexistuje|not exist',
  7328. 'optional--',
  7329. 'optional2--',
  7330. "//a[contains(@href,'leteckaposta.cz') or contains(@href,'sharegadget.com')]"
  7331. );
  7332. }
  7333. if (GM_getValue("Check_stahovanizasms_dot_cz_links", false))
  7334. {
  7335. addFileHost(
  7336. "stahovanizasms\\.cz\/\\w+",
  7337. 'download\\.png>|font-size:11px><tr>',
  7338. 'smaz.n u.ivatelem|font-size:11px><\/table>',
  7339. 'optional--',
  7340. 'optional2--',
  7341. "//a[contains(@href,'stahovanizasms.cz')]"
  7342. );
  7343. }
  7344. if (GM_getValue("Check_share_dash_links_dot_biz_links", false))
  7345. {
  7346. addFileHost(
  7347. "share-links\\.biz\/\\w*",
  7348. 'online\\.gif',
  7349. '(?:offline|parts)\\.gif',
  7350. 'optional--',
  7351. 'optional2--',
  7352. "//a[contains(@href,'share-links.biz')]"
  7353. );
  7354. }
  7355. if (GM_getValue("Check_4shared_dot_com_links", false))
  7356. {
  7357. addFileHost(
  7358. "4shared\\.com\/.+\/",
  7359. '<input type="hidden" class="jsSocialTwDefaultText" value=',
  7360. 'class="warn\"|big red"|GetDataBack',
  7361. 'Service Unavailable',
  7362. 'optional2--',
  7363. "//a[contains(@href,'4shared.com')]"
  7364. );
  7365. }
  7366. if (GM_getValue("Check_zippyshare_dot_com_links", false))
  7367. {
  7368. addFileHost(
  7369. "(?:www\\d+\.|)zippyshare\.com\/",
  7370. 'download\.png|Download Now|images/download_small.png|id="dlbutton"',
  7371. 'not exist|Status 404',
  7372. 'optional--',
  7373. 'optional2--',
  7374. "//a[contains(@href,'zippyshare.com') and contains(@href,'file.html')]"
  7375. );
  7376. }
  7377. if (GM_getValue("Check_mediafire_dot_com_links", false))
  7378. {
  7379. addFileHost(
  7380. "mediafire\.com\/",
  7381. 'download_file_title|dlFileName|id="PLAY_downloadButton"',
  7382. 'error\\.php\\?|error_msg_title|<title>Simple File Sharing|No files found',
  7383. 'set to private',
  7384. 'optional2--',
  7385. "//a[contains(@href,'mediafire.com')]"
  7386. );
  7387. }
  7388. if (GM_getValue("Check_uploaded_dot_to_links", false))
  7389. {
  7390. addFileHost(
  7391. '(?:uploaded\\.(?:to|net)\/(?:.id|file|folder|f|410|404))|(?:ul\\.to\/)',
  7392. '<h2>Authentification</h2></li>|MB</small>|KB</small>',
  7393. 'box_red|Error: 404|Error: 410|fileList"><thead><tr><td colspan="2"><\/td><\/tr><\/thead><tbody>\\s*<tr>|<title>uploaded.net</title>',
  7394. 'optional--',
  7395. 'GB</small>',
  7396. "//a[contains(@href,'uploaded.to/') or contains(@href,'uploaded.net/') or contains(@href,'ul.to/')]"
  7397. );
  7398. }
  7399. if (GM_getValue("Check_ulozisko_dot_sk_links", false))
  7400. {
  7401. addFileHost(
  7402. "ulozisko\.sk\/",
  7403. 'Detaily',
  7404. 'neexistuje',
  7405. 'optional--',
  7406. 'optional2--',
  7407. "//a[contains(@href,'ulozisko.sk')]"
  7408. );
  7409. }
  7410. if (GM_getValue("Check_upnito_dot_sk_links", false))
  7411. {
  7412. addFileHost(
  7413. "(?:dl.\\.|)upnito\\.sk\/(download|subor|file)",
  7414. 'download.php',
  7415. 'notfound|upload\\-suborov\\.php"',
  7416. 'optional--',
  7417. 'optional2--',
  7418. "//a[contains(@href,'upnito.sk')]"
  7419. );
  7420. }
  7421. if (GM_getValue("Check_box_dot_com_links", false))
  7422. {
  7423. addFileHost(
  7424. "box\.com\/\\w+",
  7425. 'download-file-btn|id="download_button|preview-download',
  7426. 'BIyMin.png| <div class="error_message|link has been removed',
  7427. 'optional--',
  7428. 'optional2--',
  7429. "//a[contains(@href,'app.box.com')]");
  7430. }
  7431. if (GM_getValue("Check_uptobox_dot_com_links", false))
  7432. {
  7433. addFileHost(
  7434. "uptobox\\.com\/\\w+",
  7435. 'Create Download Link">|Lien de téléchargement',
  7436. 'The file expired|The file was deleted|Fichier introuvable|not available in your country',
  7437. 'Maintenance',
  7438. 'optional2--',
  7439. "//a[contains(@href,'uptobox.com')]"
  7440. );
  7441. }
  7442. if (GM_getValue("Check_sharecash_dot_org_links", false))
  7443. {
  7444. addFileHost(
  7445. "sharecash\\.org\/download\\.php\\?file=\\d+",
  7446. 'FILE DOWNLOAD<',
  7447. 'File Does Not Exist',
  7448. 'optional--',
  7449. 'optional2--',
  7450. "//a[contains(@href,'sharecash.org/download.php')]"
  7451. );
  7452. }
  7453. if (GM_getValue("Check_depositfiles_dot_com_links", false)) //folders
  7454. {
  7455. addFileHost(
  7456. "depositfiles\\.com\/folders\/\\w+",
  7457. '<div class="progressContainer">',
  7458. '<div id="files" class="files">\\s*<\/div>',
  7459. 'optional--',
  7460. 'optional2--',
  7461. "//a[contains(@href,'depositfiles.com/folders')]"
  7462. );
  7463. }
  7464. if (GM_getValue("Check_rapidfileshare_dot_net_links", false))
  7465. {
  7466. addFileHost(
  7467. "rapidfileshare\\.net/\\w+",
  7468. '<div id="upload-header-bg">',
  7469. '<div style="width:500px;text-align:left;">',
  7470. 'optional--',
  7471. 'optional2--',
  7472. "//a[contains(@href,'rapidfileshare.net/')]"
  7473. );
  7474. }
  7475. if (GM_getValue("Check_stiahnito_dot_sk_links", false))
  7476. {
  7477. addFileHost(
  7478. "stiahnito\\.sk/",
  7479. '<span class="filesize right">',
  7480. '<ol class="list-purp-2">',
  7481. 'optional--',
  7482. 'optional2--',
  7483. "//a[contains(@href,'stiahnito.sk/')]"
  7484. );
  7485. }
  7486. if (GM_getValue("Check_rusfolder_dot_com_links", false))
  7487. {
  7488. addFileHost(
  7489. "rusfolder\\.(?:com|net)",
  7490. '"download-step-one-form"|Название: <b>|Файлы|Файлы в папке',
  7491. '"ui-state-error ui-corner-all"|File is removed|File not found|удален',
  7492. 'optional--',
  7493. 'optional2--',
  7494. "//a[contains(@href,'rusfolder')]"
  7495. );
  7496. }
  7497. if (GM_getValue("Check_fileover_dot_net_links", false))
  7498. {
  7499. addFileHost(
  7500. "fileover\\.net/\\d+",
  7501. 'id="filesize"',
  7502. 'Not found or deleted|The following file is unavailable',
  7503. 'optional--',
  7504. 'optional2--',
  7505. "//a[contains(@href,'fileover.net/')]"
  7506. );
  7507. }
  7508. if (GM_getValue("Check_catshare_dot_net_links", false))
  7509. {
  7510. addFileHost(
  7511. "catshare\\.net/\\w+",
  7512. '"icon-share',
  7513. 'alert alert-error',
  7514. 'optional--',
  7515. 'optional2--',
  7516. "//a[contains(@href,'catshare.net/')]"
  7517. );
  7518. }
  7519. if (GM_getValue("Check_anonfiles_dot_com_links", false))
  7520. {
  7521. addFileHost(
  7522. "anonfiles\\.com/\\w+",
  7523. '"download_button"',
  7524. '<legend><b>404</b>',
  7525. 'optional--',
  7526. 'optional2--',
  7527. "//a[contains(@href,'anonfiles.com')]"
  7528. );
  7529. }
  7530. if (GM_getValue("Check_mixturecloud_dot_com_links", false))
  7531. {
  7532. addFileHost(
  7533. "mixturecloud\\.com/media/\\w+",
  7534. '"btn icon i_globe gray share_150',
  7535. '"s_cross_close"></span> 404:',
  7536. 'optional--',
  7537. 'optional2--',
  7538. "//a[contains(@href,'mixturecloud.com/media/')]"
  7539. );
  7540. }
  7541. if (GM_getValue("Check_akafile_dot_com_links", false))
  7542. {
  7543. addFileHost(
  7544. "akafile\\.com\/\\w+",
  7545. 'download1',
  7546. 'File Not Found',
  7547. 'optional--',
  7548. 'optional2--',
  7549. "//a[contains(@href,'akafile.com/')]"
  7550. );
  7551. }
  7552. if (GM_getValue("Check_creafile_dot_net_links", false))
  7553. {
  7554. addFileHost(
  7555. "creafile\\.net\/\\w+",
  7556. 'downloadblock',
  7557. 'errtitle',
  7558. 'optional--',
  7559. 'optional2--',
  7560. "//a[contains(@href,'creafile.net/')]"
  7561. );
  7562. }
  7563. if (GM_getValue("Check_hugefiles_dot_net_links", false))
  7564. {
  7565. addFileHost(
  7566. "hugefiles\\.net\/\\w+",
  7567. 'download1|class="btn-create-download" value="Create Download Link">',
  7568. 'File Not Found|No such file with this filename|tyle="width:500px;text-align:left;">',
  7569. 'optional--',
  7570. 'optional2--',
  7571. "//a[contains(@href,'hugefiles.net/')]"
  7572. );
  7573. }
  7574. if (GM_getValue("Check_sendmyway_dot_com_links", false))
  7575. {
  7576. addFileHost(
  7577. "sendmyway\\.com\/\\w+",
  7578. 'id="btn_download"',
  7579. '500px;text-align:left;"|<center><h3>',
  7580. 'optional--',
  7581. 'optional2--',
  7582. "//a[contains(@href,'sendmyway.com/')]"
  7583. );
  7584. }
  7585. if (GM_getValue("Check_upload_dot_ee_links", false))
  7586. {
  7587. addFileHost(
  7588. "upload\\.ee\/\\w+",
  7589. 'onmouseout="document.dllink.src',
  7590. 'There is no such file.|File was deleted|Fail kustutati|Файл удалён|Такого файла нет',
  7591. 'optional--',
  7592. 'optional2--',
  7593. "//a[contains(@href,'upload.ee/')]"
  7594. );
  7595. }
  7596. if (GM_getValue("Check_shareplace_dot_org_links", false))
  7597. {
  7598. addFileHost(
  7599. "shareplace\\.org\/\\?\\w+",
  7600. 'Download-Link',
  7601. 'Your requested file is not found|Select file to send',
  7602. 'optional--',
  7603. 'optional2--',
  7604. "//a[contains(@href,'shareplace.org/?')]"
  7605. );
  7606. }
  7607. if (GM_getValue("Check_uploadc_dot_com_links", false))
  7608. {
  7609. addFileHost(
  7610. "uploadc\\.com\/\\w+",
  7611. 'id="prebut"',
  7612. 'File Not Found|This file has been removed due',
  7613. 'optional--',
  7614. 'optional2--',
  7615. "//a[contains(@href,'uploadc.com/')]"
  7616. );
  7617. }
  7618. if (GM_getValue("Check_remixshare_dot_com_links", false))
  7619. {
  7620. addFileHost(
  7621. "remixshare\\.com\/\\w+",
  7622. 'id="dl2"',
  7623. '<table class=\'failed\'><tr><td width=\'90%\'>|Sorry, die Datei konnte nicht gefunden werden',
  7624. 'optional--',
  7625. 'optional2--',
  7626. "//a[contains(@href,'remixshare.com/')]"
  7627. );
  7628. }
  7629. if (GM_getValue("Check_exoshare_dot_com_links", false))
  7630. {
  7631. addFileHost(
  7632. "exoshare\\.com\/download\\.php\\?uid=\\w+",
  7633. 'Last Download :',
  7634. 'img src="\\/404.jpg"',
  7635. 'optional--',
  7636. 'optional2--',
  7637. "//a[contains(@href,'exoshare.com/download.php')]"
  7638. );
  7639. }
  7640. if (GM_getValue("Check_borncash_dot_org_links", false))
  7641. {
  7642. addFileHost(
  7643. "borncash\\.org\/download\/\\?a=\\w+",
  7644. 'class="knop_1"',
  7645. '\/error\/er00',
  7646. 'optional--',
  7647. 'optional2--',
  7648. "//a[contains(@href,'borncash.org/download/')]"
  7649. );
  7650. }
  7651. if (GM_getValue("Check_vidplay_dot_net_links", false))
  7652. {
  7653. addFileHost(
  7654. "vidplay\.net\/\\w+",
  7655. 'solvemedia puzzle widget',
  7656. 'File not found|AVOID_IE_BUG',
  7657. 'optional--',
  7658. 'optional2--',
  7659. "//a[contains(@href,'vidplay.net')]");
  7660. }
  7661. if (GM_getValue("Check_storagon_dot_com_links", false))
  7662. {
  7663. addFileHost(
  7664. "storagon\.com\/\\w+",
  7665. 'class="icon-cloud-download"></i>|content="Download Options',
  7666. 'content="Download Downloads|class="error-container">|class="bigger-300 bolder">404<',
  7667. 'optional--',
  7668. 'optional2--',
  7669. "//a[contains(@href,'storagon.com')]");
  7670. }
  7671. if (GM_getValue("Check_filedais_dot_com_links", false))
  7672. {
  7673. addFileHost(
  7674. "filedais\.com\/\\w+",
  7675. 'class="btn btn-info"|name="method_free"',
  7676. 'style="width:500px;text-align:left;">|File Not Found|AVOID_IE_BUG',
  7677. 'optional--',
  7678. 'optional2--',
  7679. "//a[contains(@href,'filedais.com')]");
  7680. }
  7681. if (GM_getValue("Check_up_dot_4share_dot_vn_links", false))
  7682. {
  7683. addFileHost(
  7684. "up.4share\.vn\/\\w+",
  7685. '<font size="2" face="Verdana">',
  7686. 'font: 13px Tahoma; color: Brown',
  7687. 'optional--',
  7688. 'optional2--',
  7689. "//a[contains(@href,'up.4share.vn')]");
  7690. }
  7691. if (GM_getValue("Check_share_dot_vnn_dot_vn_links", false))
  7692. {
  7693. addFileHost(
  7694. "share.vnn\.vn\/\\w+",
  7695. '"index,follow"|<div class="main" id="download-box">',
  7696. '<meta name="description" content="" />|<h1>Không tìm thấy file bạn yêu cầu</h1>',
  7697. 'optional--',
  7698. 'optional2--',
  7699. "//a[contains(@href,'share.vnn.vn')]");
  7700. }
  7701. if (GM_getValue("Check_upfile_dot_vn_links", false))
  7702. {
  7703. addFileHost(
  7704. "upfile\.vn\/\\w+",
  7705. 'download-timer',
  7706. '<meta name="description" content="Upload files|<meta name="description" content="Error "',
  7707. 'optional--',
  7708. 'optional2--',
  7709. "//a[contains(@href,'upfile.vn')]");
  7710. }
  7711. if (GM_getValue("Check_aisfile_dot_com_links", false))
  7712. {
  7713. addFileHost(
  7714. "aisfile\.com\/\\w+",
  7715. '<h3 style="text-align:left;">|align=right><b>Filename:',
  7716. '<div style="width:500px;text-align:left;">|File Not Found',
  7717. 'optional--',
  7718. 'optional2--',
  7719. "//a[contains(@href,'aisfile.com')]");
  7720. }
  7721. if (GM_getValue("Check_usersfiles_dot_com_links", false))
  7722. {
  7723. addFileHost(
  7724. "usersfiles\.com\/\\w+",
  7725. 'class="btn btn-success|id="btn_download" class="btn"',
  7726. '<div style="width:500px;text-align:left;">|class="label label-inverse">|class="err">',
  7727. 'optional--',
  7728. 'optional2--',
  7729. "//a[contains(@href,'usersfiles.com')]");
  7730. }
  7731. if (GM_getValue("Check_pan_dot_baidu_dot_com_links", false))
  7732. {
  7733. addFileHost(
  7734. "pan.baidu\.com\/\\w+",
  7735. 'target="_blank" title=|share-personal-info',
  7736. 'share_notfound.png|background:#f9f9f9',
  7737. 'optional--',
  7738. 'optional2--',
  7739. "//a[contains(@href,'pan.baidu.com')]");
  7740. }
  7741. if (GM_getValue("Check_yunpan_dot_cn_links", false))
  7742. {
  7743. addFileHost(
  7744. "yunpan\.cn\/\\w+",
  7745. 'class="icon icon-download',
  7746. 'content="360|http://p5.qhimg.com/t01d1c98667df9dc6cc.jpg',
  7747. 'optional--',
  7748. 'optional2--',
  7749. "//a[contains(@href,'yunpan.cn')]");
  7750. }
  7751. if (GM_getValue("Check_file_dash_upload_dot_net_links", false))
  7752. {
  7753. addFileHost(
  7754. "(?:en\\.|)file\\-upload\\.net\/download\\-\\d+\/\\w+",
  7755. 'getElementById("downbild")|style.display',
  7756. 'hochgeladene Datei nicht gefunden werden|has not been found',
  7757. 'optional--',
  7758. 'optional2--',
  7759. "//a[contains(@href,'file-upload.net')]");
  7760. }
  7761. if (GM_getValue("Check_gulfup_dot_com_links", false))
  7762. {
  7763. addFileHost(
  7764. "gulfup\.com\/",
  7765. '<!-- Downlod template -->|download.gif',
  7766. '<!-- Errors template -->|class="error">|<!-- form upload -->|[ رفع الملفات ]',
  7767. 'optional--',
  7768. 'optional2--',
  7769. "//a[contains(@href,'gulfup.com')]");
  7770. }
  7771. if (GM_getValue("Check_datafilehost_dot_com_links", false))
  7772. {
  7773. addFileHost(
  7774. "datafilehost\\.com\/(?:download-\\w+\\.html|d\/\\w+)",
  7775. 'dldtable">',
  7776. 'does not exist\\.',
  7777. 'optional--',
  7778. 'optional2--',
  7779. "//a[contains(@href,'datafilehost.com')]");
  7780. }
  7781. if (GM_getValue("Check_dropbox_dot_com_links", false))
  7782. {
  7783. addFileHost(
  7784. "dropbox\.com\/s\/\\w+",
  7785. 'default_content_download_button" class="freshbutton-blue">|content_download_button',
  7786. '>Nothing Here<|>Error (404)<',
  7787. 'title>Dropbox - 509|Error (403)|Error: 429',
  7788. 'optional2--',
  7789. "//a[contains(@href,'dropbox.com')]");
  7790. }
  7791. if (GM_getValue("Check_box_dot_net_links", false))
  7792. {
  7793. addFileHost(
  7794. "box\.net\/\\w+",
  7795. 'download-file-btn|id="download_button',
  7796. 'BIyMin.png| <div class="error_message',
  7797. 'optional--',
  7798. 'optional2--',
  7799. "//a[contains(@href,'box.net')]");
  7800. }
  7801. if (GM_getValue("Check_fileband_dot_com_links", false))
  7802. {
  7803. addFileHost(
  7804. "fileband\.com\/\\w+",
  7805. 'value="download1">|name="id" value=',
  7806. '<div style="width:500px;text-align:left;">|not be found',
  7807. 'optional--',
  7808. 'optional2--',
  7809. "//a[contains(@href,'fileband.com')]");
  7810. }
  7811. if (GM_getValue("Check_filedropper_dot_com_links", false))
  7812. {
  7813. addFileHost(
  7814. "filedropper\.com\/\\w+",
  7815. 'background:#ddd;|width:985px; ',
  7816. 'background-color:#FFFFFF;|margin-left: -400px;',
  7817. 'optional--',
  7818. 'optional2--',
  7819. "//a[contains(@href,'filedropper.com')]");
  7820. }
  7821. if (GM_getValue("Check_tropicshare_dot_com_links", false))
  7822. {
  7823. addFileHost(
  7824. "tropicshare\\.com\/files\/\\d+",
  7825. 'MB</span>|GB</span>|KB</span>',
  7826. '>FNF<|size: </span>',
  7827. 'optional--',
  7828. 'optional2--',
  7829. "//a[contains(@href,'tropicshare.com')]");
  7830. }
  7831. if (GM_getValue("Check_goldbytez_dot_com_links", false))
  7832. {
  7833. addFileHost(
  7834. "goldbytez\.com\/\\w+",
  7835. '<h2>Download</h2>|<center><h2>File: <font color="red">',
  7836. '<div style="width:500px;text-align:left;">|<h2>Error</h2>',
  7837. 'optional--',
  7838. 'optional2--',
  7839. "//a[contains(@href,'goldbytez.com')]");
  7840. }
  7841. if (GM_getValue("Check_worldbytez_dot_com_links", false))
  7842. {
  7843. addFileHost(
  7844. "worldbytez\.com\/\\w+",
  7845. '<div class="download_type">',
  7846. '<div style="width:500px;text-align:left;">',
  7847. 'optional--',
  7848. 'optional2--',
  7849. "//a[contains(@href,'worldbytez.com')]");
  7850. }
  7851. if (GM_getValue("Check_freefilehosting_dot_net_links", false))
  7852. {
  7853. addFileHost(
  7854. "freefilehosting\.net\/\\w+",
  7855. 'Type: cbr|Type: rar|Type: jpg|Type: mkv|Type: avi|Type: mpg|Type: mpeg|Type: zip|Type: wmvType: bmpType: gifType: mp4Type: mp3',
  7856. '175px;" value="http://www.freefilehosting.net/"|Filename: <br>',
  7857. 'optional--',
  7858. 'optional2--',
  7859. "//a[contains(@href,'freefilehosting.net')]");
  7860. }
  7861. if (GM_getValue("Check_ziddu_dot_com_links", false))
  7862. {
  7863. addFileHost(
  7864. "ziddu\.com\/\\w+",
  7865. 'downloads.ziddu.com|downloadfilelinkicon',
  7866. 'errortracking.php|images/oops.png|fontfamilyverdana error',
  7867. 'optional--',
  7868. 'optional2--',
  7869. "//a[contains(@href,'ziddu.com')]");
  7870. }
  7871. if (GM_getValue("Check_exclusiveloader_dot_com_links", false))
  7872. {
  7873. addFileHost(
  7874. "exclusiveloader\.com\/\\w+",
  7875. 'style="padding-top:55px; padding-bottom:65px;">|<h2>Download</h2>',
  7876. 'File Not Found|width:322px;text-align:left;" class="no_file">',
  7877. 'optional--',
  7878. 'optional2--',
  7879. "//a[contains(@href,'exclusiveloader.com')]");
  7880. }
  7881. if (GM_getValue("Check_sharerapid_dot_cz_links", false))
  7882. {
  7883. addFileHost(
  7884. "sharerapid\.cz\/\\w+",
  7885. 'value="Stáhnout"|soubor" style|Stahování je povoleno pouze pro přihlášené uživatele',
  7886. 'error_div">|404 - Not Found',
  7887. 'optional--',
  7888. 'optional2--',
  7889. "//a[contains(@href,'sharerapid.cz')]");
  7890. }
  7891. if (GM_getValue("Check_sdilej_dot_cz_links", false))
  7892. {
  7893. addFileHost(
  7894. "sdilej\.cz\/\\w+",
  7895. 'class="page-download"',
  7896. '<h2 class="red">|czshare.com|sponsored listings|This domain is for sale',
  7897. 'optional--',
  7898. 'optional2--',
  7899. "//a[contains(@href,'sdilej.cz')]");
  7900. }
  7901. if (GM_getValue("Check_lafiles_dot_com_links", false))
  7902. {
  7903. addFileHost(
  7904. "lafiles\.com\/\\w+",
  7905. '<div id="pay_modes">',
  7906. '<b class="err"></b>',
  7907. 'optional--',
  7908. 'optional2--',
  7909. "//a[contains(@href,'lafiles.com')]");
  7910. }
  7911. if (GM_getValue("Check_acefile_dot_net_links", false))
  7912. {
  7913. addFileHost(
  7914. "acefile\.net\/\\w+",
  7915. 'align=right nowrap><b>',
  7916. 'File Not Found|<div style="width:322px;text-align:left;" class="no_file">',
  7917. 'optional--',
  7918. 'optional2--',
  7919. "//a[contains(@href,'acefile.net')]");
  7920. }
  7921. if (GM_getValue("Check_megarapid_dot_cz_links", false))
  7922. {
  7923. addFileHost(
  7924. "megarapid\.cz\/\\w+",
  7925. 'value="Stáhnout"|soubor" style|Stahování je povoleno pouze pro přihlášené uživatele',
  7926. 'error_div">|404 - Not Found',
  7927. 'optional--',
  7928. 'optional2--',
  7929. "//a[contains(@href,'megarapid.cz')]");
  7930. }
  7931. if (GM_getValue("Check_yadi_dot_sk_links", false))
  7932. {
  7933. addFileHost(
  7934. "yadi\.sk\/\\w+",
  7935. 'twitter:site|View and download',
  7936. 'error code|Nothing found',
  7937. 'optional--',
  7938. 'optional2--',
  7939. "//a[contains(@href,'yadi.sk')]");
  7940. }
  7941. /* if (GM_getValue("Check_imdb_dot_com_links", false))
  7942. {
  7943. addFileHost(
  7944. "imdb\.com\/\\w+",
  7945. 'imdb.com',
  7946. '404 Error',
  7947. 'optional--',
  7948. 'optional2--',
  7949. "//a[contains(@href,'imdb.com')]");
  7950. } */
  7951. if (GM_getValue("Check_hitfile_dot_net_links", false))
  7952. {
  7953. addFileHost(
  7954. "hitfile\.net\/\\w+",
  7955. 'class="download-file',
  7956. 'style="width:16px;height:16px;border:0;|File not found|Файл не найден. Возможно он был удален',
  7957. 'optional--',
  7958. 'optional2--',
  7959. "//a[contains(@href,'hitfile.net')]");
  7960. }
  7961. if (GM_getValue("Check_nitroflare_dot_com_links", true))
  7962. {
  7963. addFileHost(
  7964. "nitroflare\.com\/\\w+",
  7965. 'MB</span>|left;">1 GB<|KB</span>|left;">1.0',
  7966. 'file has been removed|id="error" style="display|Probably deleted',
  7967. 'optional--',
  7968. '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.|',
  7969. "//a[contains(@href,'nitroflare.com')]");
  7970. }
  7971. if (GM_getValue("Check_up_dot_top4top_dot_net_links", false))
  7972. {
  7973. addFileHost(
  7974. "up.top4top\.net\/\\w+",
  7975. 'start Downlod template',
  7976. 'start err template',
  7977. 'optional--',
  7978. 'optional2--',
  7979. "//a[contains(@href,'up.top4top.net')]");
  7980. }
  7981. if (GM_getValue("Check_filejoker_dot_net_links", false))
  7982. {
  7983. addFileHost(
  7984. "filejoker\.net\/\\w+",
  7985. 'button id="regular-download">Slow|method_free" value="1|<div id="download" class="download0">',
  7986. 'File Not Found|class="not_found|<div id="download" class="not_found">|"err">DMCA Complaint<',
  7987. 'optional--',
  7988. 'id="download" class="premium-only">',
  7989. "//a[contains(@href,'filejoker.net')]");
  7990. }
  7991. if (GM_getValue("Check_free_dot_fr_links", false))
  7992. {
  7993. addFileHost(
  7994. "(?:dl.\\.|)free\\.fr",
  7995. 'Valider et t&eacute;l&eacute',
  7996. 'Fichier inexistant|Fichier supprim&eacute; pour raison de copyright',
  7997. 'optional--',
  7998. 'optional2--',
  7999. "//a[contains(@href,'dl.free.fr')]");
  8000. }
  8001. if (GM_getValue("Check_gboxes_dot_com_links", false))
  8002. {
  8003. addFileHost(
  8004. "gboxes\.com\/\\w+",
  8005. 'You have requested|color="red">http://www.gboxes.com',
  8006. 'File Not Found|<div style="width:500px;text-align:left;">',
  8007. 'optional--',
  8008. 'optional2--',
  8009. "//a[contains(@href,'gboxes.com')]");
  8010. }
  8011. if (GM_getValue("Check_led_dot_wf_links", false))
  8012. {
  8013. addFileHost(
  8014. "led\.wf\/\\w+",
  8015. 'logo_0.png|downloads.gif"|verifycode',
  8016. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  8017. 'optional--',
  8018. 'optional2--',
  8019. "//a[contains(@href,'led.wf')]");
  8020. }
  8021. if (GM_getValue("Check_lan_dot_wf_links", false))
  8022. {
  8023. addFileHost(
  8024. "lan\.wf\/\\w+",
  8025. 'logo_0.png|downloads.gif"|verifycode',
  8026. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  8027. 'optional--',
  8028. 'optional2--',
  8029. "//a[contains(@href,'lan.wf')]");
  8030. }
  8031. if (GM_getValue("Check_adlink_dot_wf_links", false))
  8032. {
  8033. addFileHost(
  8034. "adlink\.wf\/\\w+",
  8035. 'logo_0.png|downloads.gif"|verifycode',
  8036. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  8037. 'optional--',
  8038. 'optional2--',
  8039. "//a[contains(@href,'adlink.wf')]");
  8040. }
  8041. if (GM_getValue("Check_click_dot_tf_links", false))
  8042. {
  8043. addFileHost(
  8044. "click\.tf\/\\w+",
  8045. 'logo_0.png|downloads.gif"|verifycode',
  8046. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  8047. 'optional--',
  8048. 'optional2--',
  8049. "//a[contains(@href,'click.tf')]");
  8050. }
  8051. if (GM_getValue("Check_ssh_dot_tf_links", false))
  8052. {
  8053. addFileHost(
  8054. "ssh\.tf\/\\w+",
  8055. 'logo_0.png|downloads.gif"|verifycode',
  8056. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  8057. 'optional--',
  8058. 'optional2--',
  8059. "//a[contains(@href,'ssh.tf')]");
  8060. }
  8061. if (GM_getValue("Check_ssh_dot_yt_links", false))
  8062. {
  8063. addFileHost(
  8064. "ssh\.yt\/\\w+",
  8065. 'logo_0.png|downloads.gif"|verifycode',
  8066. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  8067. 'optional--',
  8068. 'optional2--',
  8069. "//a[contains(@href,'ssh.yt')]");
  8070. }
  8071. if (GM_getValue("Check_yep_dot_pm_links", false))
  8072. {
  8073. addFileHost(
  8074. "yep\.pm\/\\w+",
  8075. 'logo_0.png|downloads.gif"|verifycode',
  8076. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  8077. 'optional--',
  8078. 'optional2--',
  8079. "//a[contains(@href,'yep.pm')]");
  8080. }
  8081. if (GM_getValue("Check_kyc_dot_pm_links", false))
  8082. {
  8083. addFileHost(
  8084. "kyc\.pm\/\\w+",
  8085. 'logo_0.png|downloads.gif"|verifycode',
  8086. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  8087. 'optional--',
  8088. 'optional2--',
  8089. "//a[contains(@href,'kyc.pm')]");
  8090. }
  8091. if (GM_getValue("Check_brupload_dot_net_links", false))
  8092. {
  8093. addFileHost(
  8094. "brupload\.net\/\\w+",
  8095. 'Download Gratuito',
  8096. '<div style="width:500px;text-align:left;">',
  8097. 'optional--',
  8098. 'optional2--',
  8099. "//a[contains(@href,'brupload.net')]");
  8100. }
  8101. if (GM_getValue("Check_cloudzilla_dot_to_links", false))
  8102. {
  8103. addFileHost(
  8104. "cloudzilla\.to\/\\w+",
  8105. 'btn1" id="free_download|onclick="freeDownload|id="pwd_protected">',
  8106. 'File not found|/imgs/broken.png',
  8107. 'optional--',
  8108. 'optional2--',
  8109. "//a[contains(@href,'cloudzilla.to')]");
  8110. }
  8111. if (GM_getValue("Check_fileparadox_dot_in_links", false))
  8112. {
  8113. addFileHost(
  8114. "fileparadox\.in\/\\w+",
  8115. 'CONTENT="Download File|method_free_file',
  8116. '>File Not Found<|id="no_filedownload">|FILE NOT FOUND|The file does not exist',
  8117. 'optional--',
  8118. 'optional2--',
  8119. "//a[contains(@href,'fileparadox.in')or contains(@href,'3files.net/')]");
  8120. }
  8121. if (GM_getValue("Check_clicknupload_dot_com_links", false))
  8122. {
  8123. addFileHost(
  8124. "clicknupload\.com\/\\w+",
  8125. 'name="method_free',
  8126. 'File Not Found',
  8127. 'optional--',
  8128. 'optional2--',
  8129. "//a[contains(@href,'clicknupload.com')]");
  8130. }
  8131. if (GM_getValue("Check_ex_dash_load_dot_com_links", false))
  8132. {
  8133. addFileHost(
  8134. "ex-load\.com\/\\w+",
  8135. 'name="method_free|<p>Download File:</p>',
  8136. 'Folder Not Found|File Not Found|Error 404',
  8137. 'optional--',
  8138. 'class="downprem wow bounceInLeft',
  8139. "//a[contains(@href,'ex-load.com')]");
  8140. }
  8141. if (GM_getValue("Check_hexupload_dot_com_links", false))
  8142. {
  8143. addFileHost(
  8144. "hexupload\.com\/\\w+",
  8145. 'button" value="Free|type="submit" value=""',
  8146. 'File Not Found|<div style="width:500px;text-align:left;">',
  8147. 'optional--',
  8148. 'optional2--',
  8149. "//a[contains(@href,'hexupload.com')]");
  8150. }
  8151. if (GM_getValue("Check_wizupload_dot_com_links", false))
  8152. {
  8153. addFileHost(
  8154. "wizupload\.com\/\\w+",
  8155. 'btn_download|class="downloadbtn"',
  8156. '>File Not Found<',
  8157. 'optional--',
  8158. 'optional2--',
  8159. "//a[contains(@href,'wizupload.com')]");
  8160. }
  8161. if (GM_getValue("Check_filecloud_dot_cc_links", false))
  8162. {
  8163. addFileHost(
  8164. "filecloud\.cc\/\\w+",
  8165. 'align="center"><input type="submit" name=',
  8166. 'File Not Found|<Title>FileCloud - Premium Hosting Service<',
  8167. 'optional--',
  8168. 'optional2--',
  8169. "//a[contains(@href,'filecloud.cc')]");
  8170. }
  8171. if (GM_getValue("Check_inclouddrive_dot_com_links", false))
  8172. {
  8173. addFileHost(
  8174. "inclouddrive\.com\/\\w+",
  8175. 'initfreedownload',
  8176. '<title>Content Unavailable|The file you are trying to download is no longer available',
  8177. 'optional--',
  8178. 'optional2--',
  8179. "//a[contains(@href,'inclouddrive.com')]");
  8180. }
  8181. if (GM_getValue("Check_radicalshare_dot_com_links", false))
  8182. {
  8183. addFileHost(
  8184. "radicalshare\.com\/\\w+",
  8185. 'value="download1|name="method_free"',
  8186. 'File Not Found<|<div style="width:500px;text-align:left;">',
  8187. 'optional--',
  8188. 'optional2--',
  8189. "//a[contains(@href,'radicalshare.com')]");
  8190. }
  8191. if (GM_getValue("Check_sharemods_dot_com_links", false))
  8192. {
  8193. addFileHost(
  8194. "sharemods\.com\/\\w+",
  8195. 'name="method_free"',
  8196. 'File Not Found<',
  8197. 'optional--',
  8198. 'optional2--',
  8199. "//a[contains(@href,'sharemods.com')]");
  8200. }
  8201. if (GM_getValue("Check_hostr_dot_co_links", false))
  8202. {
  8203. addFileHost(
  8204. "hostr\.co\/\\w+",
  8205. 'method="get"',
  8206. 'File not found<|error-page',
  8207. 'optional--',
  8208. 'optional2--',
  8209. "//a[contains(@href,'hostr.co')]");
  8210. }
  8211. if (GM_getValue("Check_filepi_dot_com_links", false))
  8212. {
  8213. addFileHost(
  8214. "filepi\.com\/\\w+",
  8215. 'id="button_start">',
  8216. 'File not found',
  8217. 'optional--',
  8218. 'optional2--',
  8219. "//a[contains(@href,'filepi.com')]");
  8220. }
  8221. if (GM_getValue("Check_tikfile_dot_com_links", false))
  8222. {
  8223. addFileHost(
  8224. "tikfile\.com\/\\w+",
  8225. 'btn_download',
  8226. 'File Not Found|file was removed|Reason for deletion',
  8227. 'optional--',
  8228. 'optional2--',
  8229. "//a[contains(@href,'tikfile.com')]");
  8230. }
  8231. if (GM_getValue("Check_cloudsix_dot_me_links", false))
  8232. {
  8233. addFileHost(
  8234. "cloudsix\.me\/\\w+",
  8235. 'name="method_free"',
  8236. 'File Not Found|width:500px;text-align:left;">',
  8237. 'optional--',
  8238. 'optional2--',
  8239. "//a[contains(@href,'cloudsix.me')]");
  8240. }
  8241. if (GM_getValue("Check_neodrive_dot_co_links", false))
  8242. {
  8243. addFileHost(
  8244. "neodrive\.co\/\\w+",
  8245. 'btn1" id="free_download|onclick="freeDownload|id="pwd_protected">',
  8246. 'File not found|/imgs/broken.png',
  8247. 'optional--',
  8248. 'optional2--',
  8249. "//a[contains(@href,'neodrive.co')]");
  8250. }
  8251. if (GM_getValue("Check_chayfile_dot_com_links", false))
  8252. {
  8253. addFileHost(
  8254. "chayfile\.com\/\\w+",
  8255. 'name="method_free"',
  8256. 'File Not Found|<h3>The file was removed by administrator</h3>',
  8257. 'optional--',
  8258. 'optional2--',
  8259. "//a[contains(@href,'chayfile.com')]");
  8260. }
  8261. if (GM_getValue("Check_xfileload_dot_com_links", false))
  8262. {
  8263. addFileHost(
  8264. "xfileload\.com\/\\w+",
  8265. 'Filename:|Имя файла:|Dateiname:|nom de fichier :|اسم الملف:|Dosya AdД±|Nazwa:|Nombre de fichero:|NamaFile:|Bestandsnaam:|שם קובץ:"',
  8266. '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..|הקובץ שחיפשת לא נמצא.',
  8267. 'optional--',
  8268. 'optional2--',
  8269. "//a[contains(@href,'xfileload.com')]");
  8270. }
  8271. if (GM_getValue("Check_rockfile_dot_eu_links", false))
  8272. {
  8273. addFileHost(
  8274. "rockfile\.eu\/\\w+",
  8275. 'You have requested:|vous avez demandé|قد طلبت:|você solicitou:|Hai richiesto:|Sie haben angefordert:|Вы заказали:|Has solicitado',
  8276. 'The file you were looking for could not be found, sorry for any inconvenience.|fa-chain-broken">',
  8277. 'optional--',
  8278. 'optional2--',
  8279. "//a[contains(@href,'rockfile.eu')]");
  8280. }
  8281. if (GM_getValue("Check_24uploading_dot_com_links", false))
  8282. {
  8283. addFileHost(
  8284. "24uploading\.com\/\\w+",
  8285. 'File:|Download Speed:',
  8286. '<b>File Not Found</b>|file was removed',
  8287. 'optional--',
  8288. 'optional2--',
  8289. "//a[contains(@href,'24uploading.com')]");
  8290. }
  8291. if (GM_getValue("Check_tusfiles_dot_net_links", false))
  8292. {
  8293. addFileHost(
  8294. "tusfiles\.net\/\\w+",
  8295. 'i/icon/dll.png"|>Start download<br',
  8296. 'no longer available<|i/ino.png"',
  8297. 'optional--',
  8298. 'optional2--',
  8299. "//a[contains(@href,'tusfiles.net')]");
  8300. }
  8301. /* if (GM_getValue("Check_jumbofile_dot_net_links", false))
  8302. {
  8303. addFileHost(
  8304. "jumbofile\.net\/\\w+",
  8305. 'button" class="" value="Free',
  8306. 'This File Was Deleted',
  8307. 'optional--',
  8308. 'optional2--',
  8309. "//a[contains(@href,'jumbofile.net')]");
  8310. } */
  8311. if (GM_getValue("Check_ozofiles_dot_com_links", false))
  8312. {
  8313. addFileHost(
  8314. "ozofiles\.com\/\\w+",
  8315. 'button" value="Free',
  8316. 'File Not Found|width:500px;text-align:left;">|File Deleted',
  8317. 'optional--',
  8318. 'optional2--',
  8319. "//a[contains(@href,'ozofiles.com')]");
  8320. }
  8321. if (GM_getValue("Check_loudupload_dot_net_links", false))
  8322. {
  8323. addFileHost(
  8324. "loudupload\.net\/\\w+",
  8325. 'value="Get Links',
  8326. 'File Not Found',
  8327. 'optional--',
  8328. 'optional2--',
  8329. "//a[contains(@href,'loudupload.net')]");
  8330. }
  8331. if (GM_getValue("Check_rapidsonic_dot_com_links", false))
  8332. {
  8333. addFileHost(
  8334. "(rapidsonic|fileparadox)\\.com\/\\w+",
  8335. 'method_free" id="submit_btn|<h4><i class="icon_document_alt"></i>Download File</h4>',
  8336. '>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">',
  8337. 'optional--',
  8338. 'optional2--',
  8339. "//a[contains(@href,'rapidsonic') or contains(@href,'3files.net/') or contains(@href,'fileparadox.com')]");
  8340. }
  8341. /* if (GM_getValue("Check_krotix_dot_net_links", false))
  8342. {
  8343. addFileHost(
  8344. "krotix\.net\/\\w+",
  8345. 'btn btn-warning|btn-free',
  8346. 'pageErrors|This File has been removed',
  8347. 'content="Scheduled Maintenance',
  8348. 'optional2--',
  8349. "//a[contains(@href,'krotix.net')]");
  8350. } */
  8351. if (GM_getValue("Check_userscloud_dot_com_links", false))
  8352. {
  8353. addFileHost(
  8354. "userscloud\.com\/\\w+",
  8355. 'btn_download',
  8356. '>Server OFFLINE|background:#D3D3D3;border-bottom:1px solid #BBB;font:bold 13px Verdana;padding:3px;">|-chain-broken',
  8357. 'optional--',
  8358. 'optional2--',
  8359. "//a[contains(@href,'userscloud.com')]");
  8360. }
  8361. if (GM_getValue("Check_kumpulbagi_dot_com_links", false))
  8362. {
  8363. addFileHost(
  8364. "kumpulbagi\.com\/\\w+",
  8365. 'class="button download',
  8366. 'internal server error',
  8367. 'optional--',
  8368. 'optional2--',
  8369. "//a[contains(@href,'kumpulbagi.com')]");
  8370. }
  8371. if (GM_getValue("Check_faststore_dot_org_links", false))
  8372. {
  8373. addFileHost(
  8374. "faststore\.org\/\\w+",
  8375. 'name="method_free',
  8376. 'File Not Found',
  8377. 'optional--',
  8378. 'optional2--',
  8379. "//a[contains(@href,'faststore.org')]");
  8380. }
  8381. if (GM_getValue("Check_prefiles_dot_com_links", false))
  8382. {
  8383. addFileHost(
  8384. "prefiles\.com\/\\w+",
  8385. 'id="method_free',
  8386. 'File not Found',
  8387. 'optional--',
  8388. 'optional2--',
  8389. "//a[contains(@href,'prefiles.com')]");
  8390. }
  8391. if (GM_getValue("Check_doraupload_dot_com_links", false))
  8392. {
  8393. addFileHost(
  8394. "doraupload\.com\/\\w+",
  8395. 'btn_download',
  8396. 'class="error-code|Could Not Be Found',
  8397. 'optional--',
  8398. 'optional2--',
  8399. "//a[contains(@href,'doraupload.com')]");
  8400. }
  8401. if (GM_getValue("Check_openload_dot_io_links", false))
  8402. {
  8403. addFileHost(
  8404. "openload\.io\/\\w+",
  8405. 'btn btn-primary|class="count">',
  8406. 'class="jumbotron">|We are sorry',
  8407. 'optional--',
  8408. 'optional2--',
  8409. "//a[contains(@href,'openload.io')]");
  8410. }
  8411. if (GM_getValue("Check_uploads_dot_xxx_links", false))
  8412. {
  8413. addFileHost(
  8414. "uploads\.xxx\/\\w+",
  8415. 'downoadForFree',
  8416. 'File not found',
  8417. 'optional--',
  8418. 'optional2--',
  8419. "//a[contains(@href,'uploads.xxx')]");
  8420. }
  8421. if (GM_getValue("Check_zxcfiles_dot_com_links", false))
  8422. {
  8423. addFileHost(
  8424. "zxcfiles\.com\/\\w+",
  8425. 'class="downloadbtn',
  8426. 'File Not Found',
  8427. 'optional--',
  8428. 'optional2--',
  8429. "//a[contains(@href,'zxcfiles.com')]");
  8430. }
  8431. if (GM_getValue("Check_up07_dot_net_links", false))
  8432. {
  8433. addFileHost(
  8434. "up07\.net\/\\w+",
  8435. 'name="method_free',
  8436. 'File Not Found',
  8437. 'optional--',
  8438. 'optional2--',
  8439. "//a[contains(@href,'up07.net')]");
  8440. }
  8441. if (GM_getValue("Check_fileupload_dot_pw_links", false))
  8442. {
  8443. addFileHost(
  8444. "fileupload\.pw\/\\w+",
  8445. 'value="Free"',
  8446. 'File Not Found',
  8447. 'optional--',
  8448. 'optional2--',
  8449. "//a[contains(@href,'fileupload.pw')]");
  8450. }
  8451. if (GM_getValue("Check_4upld_dot_com_links", false))
  8452. {
  8453. addFileHost(
  8454. "4upld\.com\/\\w+",
  8455. 'alt="Download Now"|content="Download file">|btn-free-element',
  8456. '<title>Error|content="error|File not found',
  8457. 'optional--',
  8458. 'optional2--',
  8459. "//a[contains(@href,'4upld.com')]");
  8460. }
  8461. /* if (GM_getValue("Check_newfileland_dot_com_links", false))
  8462. {
  8463. addFileHost(
  8464. "newfileland\.com\/\\w+",
  8465. 'name="method_free',
  8466. 'File Not Found',
  8467. 'optional--',
  8468. 'optional2--',
  8469. "//a[contains(@href,'newfileland.com')]");
  8470. } */
  8471. if (GM_getValue("Check_swoopshare_dot_com_links", false))
  8472. {
  8473. addFileHost(
  8474. "(?:.swoopshare)\\.com\/\\w+",
  8475. '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',
  8476. '<input type="file" name="f"',
  8477. 'optional--',
  8478. 'optional2--',
  8479. "//a[contains(@href,'swoopshare.com')]"
  8480. );
  8481. }
  8482. if (GM_getValue("Check_cloudshares_dot_net_links", false))
  8483. {
  8484. addFileHost(
  8485. "cloudshares\.net\/\\w+",
  8486. '"method_free|"Low Speed Download|submit" name="go',
  8487. 'Not Found|"width:500px;text-align:left;">|No such file exist',
  8488. 'optional--',
  8489. 'optional2--',
  8490. "//a[contains(@href,'cloudshares.net')]"
  8491. );
  8492. }
  8493. if (GM_getValue("Check_allmyvideos_dot_net_links", false))
  8494. {
  8495. addFileHost(
  8496. "allmyvideos\.net\/\\w+",
  8497. 'Continue to Video',
  8498. 'File Not Found|class="err">Removed for',
  8499. 'optional--',
  8500. 'optional2--',
  8501. "//a[contains(@href,'allmyvideos.net')]"
  8502. );
  8503. }
  8504. if (GM_getValue("Check_vodlocker_dot_com_links", false))
  8505. {
  8506. addFileHost(
  8507. "vodlocker\.com\/\\w+",
  8508. 'Proceed to video',
  8509. 'Not Found',
  8510. 'optional--',
  8511. 'optional2--',
  8512. "//a[contains(@href,'vodlocker.com')]"
  8513. );
  8514. }
  8515. if (GM_getValue("Check_vidbull_dot_com_links", false))
  8516. {
  8517. addFileHost(
  8518. "vidbull\.com\/\\w+",
  8519. 'Verifying Video Request',
  8520. 'File Not Found',
  8521. 'optional--',
  8522. 'optional2--',
  8523. "//a[contains(@href,'vidbull.com')]");
  8524. }
  8525. if (GM_getValue("Check_novamov_dot_com_links", false))
  8526. {
  8527. addFileHost(
  8528. "novamov\.com\/\\w+",
  8529. 'For version detection',
  8530. 'file no longer exists',
  8531. 'optional--',
  8532. 'optional2--',
  8533. "//a[contains(@href,'novamov.com')]"
  8534. );
  8535. }
  8536. if (GM_getValue("Check_filehoot_dot_com_links", false))
  8537. {
  8538. addFileHost(
  8539. "filehoot\.com\/\\w+",
  8540. 'Continue to watch',
  8541. 'File Not Found',
  8542. 'optional--',
  8543. 'optional2--',
  8544. "//a[contains(@href,'filehoot.com')]"
  8545. );
  8546. }
  8547. if (GM_getValue("Check_stagevu_dot_com_links", false))
  8548. {
  8549. addFileHost(
  8550. "stagevu\.com\/\\w+",
  8551. 'Video Info',
  8552. 'No video with the provided',
  8553. 'optional--',
  8554. 'optional2--',
  8555. "//a[contains(@href,'stagevu.com')]"
  8556. );
  8557. }
  8558. if (GM_getValue("Check_cloudtime_dot_to_links", false))
  8559. {
  8560. addFileHost(
  8561. "cloudtime\.to\/\\w+",
  8562. 'Download the video',
  8563. 'no longer exists',
  8564. 'optional--',
  8565. 'optional2--',
  8566. "//a[contains(@href,'cloudtime.to')]"
  8567. );
  8568. }
  8569. if (GM_getValue("Check_streamin_dot_to_links", false))
  8570. {
  8571. addFileHost(
  8572. "streamin\.to\/\\w+",
  8573. 'id="btn_download',
  8574. 'Not Found|Copyright Infringement|File Deleted',
  8575. 'optional--',
  8576. 'optional2--',
  8577. "//a[contains(@href,'streamin.to')]"
  8578. );
  8579. }
  8580. if (GM_getValue("Check_videoweed_dot_es_links", false))
  8581. {
  8582. addFileHost(
  8583. "videoweed\.es\/\\w+",
  8584. 'version detection',
  8585. 'no longer exists',
  8586. 'optional--',
  8587. 'optional2--',
  8588. "//a[contains(@href,'videoweed.es')]"
  8589. );
  8590. }
  8591. if (GM_getValue("Check_nowvideo_dot_sx_links", false))
  8592. {
  8593. addFileHost(
  8594. "nowvideo\.sx\/\\w+",
  8595. 'Download this video',
  8596. 'no longer exists',
  8597. 'optional--',
  8598. 'optional2--',
  8599. "//a[contains(@href,'nowvideo.sx')]"
  8600. );
  8601. }
  8602. if (GM_getValue("Check_thevideo_dot_me_links", false))
  8603. {
  8604. addFileHost(
  8605. "thevideo\.me\/\\w+",
  8606. 'Upgrade your account|Proceed to video|class="btn btn-lg btn-dark">',
  8607. 'File Not Found',
  8608. 'optional--',
  8609. 'optional2--',
  8610. "//a[contains(@href,'thevideo.me')]"
  8611. );
  8612. }
  8613. if (GM_getValue("Check_gorillavid_dot_in_links", false))
  8614. {
  8615. addFileHost(
  8616. "gorillavid\.in\/\\w+",
  8617. 'Wait 5 seconds',
  8618. 'File Not Found',
  8619. 'optional--',
  8620. 'optional2--',
  8621. "//a[contains(@href,'gorillavid.in')]"
  8622. );
  8623. }
  8624. if (GM_getValue("Check_thefile_dot_me_links", false))
  8625. {
  8626. addFileHost(
  8627. "thefile\.me\/\\w+",
  8628. 'Choose free or',
  8629. '',
  8630. 'optional--',
  8631. 'optional2--',
  8632. "//a[contains(@href,'thefile.me')]"
  8633. );
  8634. }
  8635. if (GM_getValue("Check_vidzi_dot_tv_links", false))
  8636. {
  8637. addFileHost(
  8638. "vidzi\.tv\/\\w+",
  8639. 'video-embed-modal row',
  8640. 'File Not Found|file was deleted',
  8641. 'optional--',
  8642. 'optional2--',
  8643. "//a[contains(@href,'vidzi.tv')]"
  8644. );
  8645. }
  8646. if (GM_getValue("Check_filenuke_dot_com_links", false))
  8647. {
  8648. addFileHost(
  8649. "filenuke\.com\/\\w+",
  8650. 'Download File',
  8651. 'Earn with us',
  8652. 'optional--',
  8653. 'optional2--',
  8654. "//a[contains(@href,'filenuke.com')]"
  8655. );
  8656. }
  8657. if (GM_getValue("Check_vidto_dot_me_links", false))
  8658. {
  8659. addFileHost(
  8660. "vidto\.me\/\\w+",
  8661. 'Proceed to video',
  8662. 'Not Found',
  8663. 'optional--',
  8664. 'optional2--',
  8665. "//a[contains(@href,'vidto.me')]"
  8666. );
  8667. }
  8668. if (GM_getValue("Check_vidspot_dot_net_links", false))
  8669. {
  8670. addFileHost(
  8671. "vidspot\.net\/\\w+",
  8672. 'Duration',
  8673. 'Removed for',
  8674. 'optional--',
  8675. 'optional2--',
  8676. "//a[contains(@href,'vidspot.net')]"
  8677. );
  8678. }
  8679. if (GM_getValue("Check_sharesix_dot_com_links", false))
  8680. {
  8681. addFileHost(
  8682. "(?:sharesix\\.com|sharesix\\.net)\/\\w+",
  8683. 'Download File',
  8684. 'File Not Found',
  8685. 'optional--',
  8686. 'optional2--',
  8687. "//a[contains(@href,'sharesix.com') or contains(@href,'sharesix.net/')]"
  8688. );
  8689. }
  8690. if (GM_getValue("Check_movpod_dot_in_links", false))
  8691. {
  8692. addFileHost(
  8693. "movpod\.in\/\\w+",
  8694. 'Continue',
  8695. 'File Not Found',
  8696. 'optional--',
  8697. 'optional2--',
  8698. "//a[contains(@href,'movpod.in')]"
  8699. );
  8700. }
  8701. /* if (GM_getValue("Check_down4files_dot_com_links", false))
  8702. {
  8703. addFileHost(
  8704. "down4files\.com\/\\w+",
  8705. 'down_table.png',
  8706. 'style="color:#d33|Error</td>|width:500px;text-align:left;">',
  8707. 'optional--',
  8708. 'optional2--',
  8709. "//a[contains(@href,'down4files.com')]"
  8710. );
  8711. } */
  8712. if (GM_getValue("Check_storefiles_dot_co_links", false))
  8713. {
  8714. addFileHost(
  8715. "storefiles\.co\/\\w+",
  8716. 'btn_download',
  8717. 'No such file|>Error<|mqmaintitle">',
  8718. 'optional--',
  8719. 'optional2--',
  8720. "//a[contains(@href,'storefiles.co')]"
  8721. );
  8722. }
  8723. if (GM_getValue("Check_filehost_dot_pw_links", false))
  8724. {
  8725. addFileHost(
  8726. "filehost\.pw\/\\w+",
  8727. 'name="method_free',
  8728. '>Error<|style="color:#d33;">|No such file|FILE NOT FOUND',
  8729. 'optional--',
  8730. 'optional2--',
  8731. "//a[contains(@href,'filehost.pw')]"
  8732. );
  8733. }
  8734. if (GM_getValue("Check_inafile_dot_com_links", false))
  8735. {
  8736. addFileHost(
  8737. "inafile\.com\/\\w+",
  8738. 'value="download1">|<h2>File: <font style="color:darkred">',
  8739. '<div style="width:500px;text-align:left;">|File Not Found',
  8740. 'optional--',
  8741. 'optional2--',
  8742. "//a[contains(@href,'inafile.com')]"
  8743. );
  8744. }
  8745. if (GM_getValue("Check_uplea_dot_com_links", false))
  8746. {
  8747. addFileHost(
  8748. "uplea\.com\/\\w+",
  8749. 'Download your file:|de votre fichier:|class="download-container|Téléchargement de votre fichier:',
  8750. 'expired link|ou est invalide',
  8751. 'optional--',
  8752. 'optional2--',
  8753. "//a[contains(@href,'uplea.com/dl')]",
  8754. true);
  8755. }
  8756. if (GM_getValue("Check_toutbox_dot_fr_links", false))
  8757. {
  8758. addFileHost(
  8759. "toutbox\.fr\/\\w+",
  8760. '<div class="downloadFileFid">|class="downloadsCounter">/p>|class="filename"><a href=|img/webbuttoned.gif">',
  8761. 'meta name="description" content="Toutbox.fr|redirect-userpage = "true"',
  8762. 'optional--',
  8763. 'optional2--',
  8764. "//a[contains(@href,'toutbox.fr') or contains(@href,'go4up.com/')]"
  8765. );
  8766. }
  8767. if (GM_getValue("Check_openload_dot_co_links", false))
  8768. {
  8769. addFileHost(
  8770. "openload\.co\/\\w+",
  8771. 'id="downloadTimer">|button dlbutton',
  8772. 'jumbotron{color|got deleted|center !important',
  8773. 'optional--',
  8774. 'optional2--',
  8775. "//a[contains(@href,'openload.co')]"
  8776. );
  8777. }
  8778. if (GM_getValue("Check_lolabits_dot_es_links", false))
  8779. {
  8780. addFileHost(
  8781. "lolabits\.es\/\\w+",
  8782. 'Descargar:',
  8783. '<title>Archivos de usuario',
  8784. 'optional--',
  8785. 'optional2--',
  8786. "//a[contains(@href,'lolabits.es')]"
  8787. );
  8788. }
  8789. if (GM_getValue("Check_alfafile_dot_net_links", false))
  8790. {
  8791. addFileHost(
  8792. "alfafile\.net\/\\w+",
  8793. 'id="slow_download_btn',
  8794. 'class="error-box">',
  8795. 'optional--',
  8796. 'optional2--',
  8797. "//a[contains(@href,'alfafile.net')]"
  8798. );
  8799. }
  8800. if (GM_getValue("Check_multiup_dot_org_links", false))
  8801. {
  8802. addFileHost(
  8803. "multiup\.org\/\\w+",
  8804. '<title>Download|<title>Télécharger|class="link-download btn"|<h5>DOWNLOAD</h5>|<h5>TÉLÉCHARGER</h5>',
  8805. 'File not found|alert-error">|icon-white icon-warning-sign">|<title>Fichier introuvable',
  8806. 'optional--',
  8807. 'optional2--',
  8808. "//a[contains(@href,'multiup.org')]"
  8809. );
  8810. }
  8811.  
  8812.  
  8813. }
  8814. //start here
  8815.  
  8816. //hosts with direct download, so they must be requested for headers only
  8817. function initFileHostsHeadersOnly()
  8818. {
  8819. function addFileHostHeadersOnly(linkRegex, isAliveRegex, isDeadRegex, xpathEx, ispremRegex)
  8820. {
  8821. var host = new Array(5);
  8822. host[0] = linkRegex;
  8823. host[1] = isAliveRegex;
  8824. host[2] = isDeadRegex;
  8825. host[3] = xpathEx;
  8826. host[4] = ispremRegex;
  8827. http_file_hosts_headers_only.push(host);
  8828. }
  8829. if (GM_getValue("Check_uloziste_dot_com_links", false))
  8830. {
  8831. addFileHostHeadersOnly(
  8832. "(?:|files\\.)uloziste\\.com\/\\w+\/\\w+",
  8833. 'Connection: Keep-Alive',
  8834. 'Content-Length: 3857',
  8835. "//a[contains(@href,'uloziste.com')]"
  8836. )
  8837. }
  8838. if (GM_getValue("Check_adrive_dot_com_links", false))
  8839. {
  8840. addFileHostHeadersOnly(
  8841. "adrive\\.com\/public\/\\w+",
  8842. 'Connection: keep-alive',
  8843. 'orig_ref=deleted',
  8844. "//a[contains(@href,'adrive.com')]"
  8845. )
  8846. }
  8847. if (GM_getValue("Check_myupload_dot_dk_links", false))
  8848. {
  8849. addFileHostHeadersOnly(
  8850. "myupload\\.dk\/showfile\/\\w+",
  8851. 'Expires:',
  8852. 'squeeze1\\s+Vary',
  8853. "//a[contains(@href,'myupload.dk/showfile')]"
  8854. )
  8855. }
  8856. }
  8857. //CustomRules
  8858. //functions add...Host copied here
  8859. function addObsoleteHost(linkRegex, xpathEx)
  8860. {
  8861. var host = new Array(2);
  8862. host[0] = linkRegex;
  8863. host[1] = xpathEx;
  8864. http_file_hosts_obsolete.push(host);
  8865. }
  8866. function addFileHost(linkRegex, isAliveRegex, isDeadRegex, isUnavaRegex, xpathEx, tryLoop, ispremRegex)
  8867. {
  8868. var host = new Array(7);
  8869. host[0] = linkRegex;
  8870. host[1] = isAliveRegex;
  8871. host[2] = isDeadRegex;
  8872. host[3] = isUnavaRegex;
  8873. host[4] = xpathEx;
  8874. tryLoop ? host[5] = true : host[5] = false;
  8875. host[6] = ispremRegex;
  8876. http_file_hosts.push(host);
  8877. }
  8878. function addFileHostHeadersOnly(linkRegex, isAliveRegex, isDeadRegex, xpathEx, ispremRegex)
  8879. {
  8880. var host = new Array(5);
  8881. host[0] = linkRegex;
  8882. host[1] = isAliveRegex;
  8883. host[2] = isDeadRegex;
  8884. host[3] = xpathEx;
  8885. host[4] = ispremRegex;
  8886. http_file_hosts_headers_only.push(host);
  8887. }
  8888. //takes a fully built rules array and adds the rules to WARLC
  8889. function applyCustomRules(customRules)
  8890. {
  8891. if (!customRules) return;
  8892. var rules, r, i;
  8893. rules = customRules.rules;
  8894. for (i = 0 ; i < rules.length ; i++)
  8895. {
  8896. r = rules[i];
  8897. if (r.enabled)
  8898. {
  8899. switch (r.type)
  8900. {
  8901. case 'single':
  8902. addFileHost(r.urlregex, r.aliveregex, r.deadregex, r.unavaregex, r.premregex||'', r.xpath);
  8903. break;
  8904. case 'headers':
  8905. addFileHostHeadersOnly(r.urlregex, r.aliveregex, r.deadregex, r.xpath, r.premregex);
  8906. break;
  8907. case 'obsolete':
  8908. addObsoleteHost(r.urlregex, r.xpath)
  8909. break;
  8910. }
  8911. }
  8912. }
  8913. }
  8914.  
  8915.  
  8916. function initFileHostsCustom()
  8917. {
  8918. if (Custom_rules && Custom_rules_text)
  8919. {
  8920. var msg = '';
  8921. if (newVersion)
  8922. msg = 'New version of W.A.R. Links Checker detected.\n\n';
  8923. else if ((now - last_custom_rules_nag) >= 60*24*60*60*1000)
  8924. msg = '60 or more days have passed since this notification.\n\n';
  8925. if (msg && /^\s*@customrule(?:_obsolete)?\s/mi.test(Custom_rules_text))
  8926. {
  8927. GM_setValue('last_custom_rules_nag', ''+new Date().getTime()); //reset nag
  8928. msg +=
  8929. 'Either new version of W.A.R. Links Checker detected or 60 days passed since this notify.\n'+
  8930. 'Please check that your custom rules haven\'t been built into WARLC.\n'+
  8931. 'If not, please share them with us so they can be included in the next version! Built-in rules are always preferred.\n\n'+
  8932. 'We apologize for this annoying notification, but there is a reason to this.\n'+
  8933. 'Ideally, WARLC would check which of your custom rules have been included and disable them. '+
  8934. 'Unfortunately, there is no easy way to do that, but we don\'t want everybody to just use their custom rules '+
  8935. 'forever without ever checking if the built-in ones have been added/fixed. This is currently the only way '+
  8936. 'to remind you that you should try built-in rules, report missing/non-working ones and share your custom rules.';
  8937. setTimeout(function(){alert(msg)},0);
  8938. }
  8939. var customRules = parseCustomRules(Custom_rules_text);
  8940. if (customRules.warning || customRules.error)
  8941. alert('There were ' + customRules.error + ' errors, ' + customRules.warning + ' warnings, ' +
  8942. customRules.note + ' notes found during Custom Rules processing.\n' + customRules.rules.length + ' valid rules found.\n\n' +
  8943. JSON.stringify(customRules.info, null, ' '));
  8944. applyCustomRules(customRules);
  8945. }
  8946. }
  8947. //end of CustomRules processing
  8948.  
  8949.  
  8950.  
  8951. } //end of function start
  8952.  
  8953.  
  8954.  
  8955. function initClipBoardTools()
  8956. {
  8957. unsafeWindow.copyToClipboard = function(text)
  8958. {
  8959. try
  8960. {
  8961. this.netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
  8962.  
  8963. var str = Components.classes["@mozilla.org/supports-string;1"].
  8964. createInstance(Components.interfaces.nsISupportsString);
  8965. if (!str) return false;
  8966.  
  8967. str.data = text;
  8968.  
  8969. var trans = Components.classes["@mozilla.org/widget/transferable;1"].
  8970. createInstance(Components.interfaces.nsITransferable);
  8971. if (!trans) return false;
  8972.  
  8973. trans.addDataFlavor("text/unicode");
  8974. trans.setTransferData("text/unicode", str, text.length * 2);
  8975.  
  8976. var clipid = Components.interfaces.nsIClipboard;
  8977. var clip = Components.classes["@mozilla.org/widget/clipboard;1"].getService(clipid);
  8978. if (!clip) return false;
  8979.  
  8980. clip.setData(trans, null, clipid.kGlobalClipboard);
  8981. } catch (e) {
  8982. GM_log("Error copyToClipboard : " + e);
  8983. alert(e + "\n\nsigned.applets.codebase_principal_support must be set true in about:config")
  8984. }
  8985. }
  8986. }
  8987.  
  8988.  
  8989.  
  8990. //CustomRules
  8991.  
  8992. function escapeRegex(str)
  8993. {
  8994. return str.replace(/[\-\[\]{}()*+?.,\\\^$|#]/g, "\\$&");
  8995. }
  8996.  
  8997.  
  8998. //called internally from parseCustomRules.
  8999. //expected: rule object with array fields baseurl, alivematch etc, everything must already be checked for input errors
  9000. //returns the rule object with string fields urlregex, xpath, aliveregex etc built from the arrays
  9001. function makeCustomRule(rule)
  9002. {
  9003. function makeMatchRegex(arrmatch)
  9004. {
  9005. return escapeRegex(arrmatch.join('\n'))
  9006. .replace(/ +/g, '\\s+') //two or more spaces to any whitespace
  9007. .replace(/\n/g,'|'); //join together
  9008. }
  9009. if (rule.alivematch) rule.aliveregex = makeMatchRegex(rule.alivematch);
  9010. if (rule.deadmatch) rule.deadregex = makeMatchRegex(rule.deadmatch);
  9011. if (rule.unavamatch) rule.unavaregex = makeMatchRegex(rule.unavamatch);
  9012. if (rule.premmatch) rule.premregex = makeMatchRegex(rule.premmatch);
  9013. if (rule.baseurl)
  9014. {
  9015. var i, m, urlregex = [], xpath = [], len = rule.baseurl.length;
  9016. for (i = 0 ; i < len ; i++)
  9017. {
  9018. m = rule.baseurl[i].match(/^([a-z0-9\.-]+)(?: +([a-z \.]+) +)?(\/.*)$/);
  9019. if (m[2]) //baseurl in the form: example. com co.uk net /xxx
  9020. {
  9021. 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'])
  9022. urlregex.push( (m[1] + '(?:'+ m[2].replace(/\s+/g,'|') + ')').replace(/\./g,'\\.') + escapeRegex(m[3]) + '.'); //urlregex.push('example\\.(?:com|co\\.uk|net)/xxx.')
  9023. }
  9024. else //baseurl in the form: example.com/xxx
  9025. {
  9026. xpath.push(m[0]);
  9027. urlregex.push(escapeRegex(m[0]) + '.');
  9028. }
  9029. }
  9030. rule.xpath = "//a[contains(@href,'" + xpath.join("') or contains(@href,'") + "')]";
  9031. rule.urlregex = '(?:[a-z0-9\\.-]+\\.)?(?:' + urlregex.join('|') + ')';
  9032. }
  9033. return rule;
  9034. } //function makeCustomRule
  9035.  
  9036.  
  9037. /*
  9038. Takes a string containing custom link checking rules.
  9039. Returns an object with fields:
  9040. info - contains notes, warnings and errors found during parsing
  9041. rules - the array of custom rules
  9042. note, warning, error - number of each of them found during parsing
  9043. Format of the input string:
  9044. One command per line. Command format: @keyword parameter
  9045. Keywords:
  9046. @customrule, @customrule_obsolete, @customrule_headers - begin a new custom rule. Parameter: name of the rule
  9047. @#customrule, @#customrule_obsolete, @#customrule_headers - begin and parse this custom rule, but don't use it. Parameter: name of the rule
  9048. These keywords can be multiple (any of them will work):
  9049. @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...)
  9050. @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+
  9051. @alivelink, @deadlink - example links
  9052. @baseurl is always required, @alivematch and @deadmatch are required except for obsolete. @unavamatch is ignored for obsolete. @*link is optional.
  9053. Lines starting with // and empty lines are ignored.
  9054. Invalid parameters generate errors and those lines are skipped.
  9055. Other lines generate warnings, but are otherwise ignored (also those before the first @customrule line or inside a rule with invalid name).
  9056. Example:
  9057. @customrule filehost
  9058. @baseurl filehost.com/download/
  9059. @baseurl filehost2. com net /d?=
  9060. @alivematch id="download">
  9061. @deadmatch File not found
  9062. @deadmatch File deleted
  9063. */
  9064. function parseCustomRules(rulesStr)
  9065. {
  9066. var linenum, customRules = {'info': [], 'rules': [], 'note': 0, 'warning': 0, 'error': 0};
  9067. function addInfo(type, msg, ln){
  9068. customRules.info.push({'linenum':(ln===undefined ? linenum+1 : ln+1), 'type':type, 'msg':msg});
  9069. customRules[type]++;
  9070. }
  9071. var lines = rulesStr.match(/^(.*)$/gm); //split into array of lines
  9072. if (!lines) return null;
  9073. lines.push('@#customrule _'); //to save the last rule
  9074. var m, linecount = lines.length;
  9075. var keyword, param, constr, rule, err;
  9076. var TLD = '[a-z]{2,7}(?:\\.[a-z]{2,7})?';
  9077. var TLDorTLDlist = '(?:'+TLD+'| '+TLD+'(?: '+TLD+'){0,9} )'; //TLD or space-separated list of TLDs
  9078. var baseurlRE = new RegExp('^([a-z0-9-]{1,30}(?:\\.[a-z0-9-]{1,30}){0,2}\\.)'+TLDorTLDlist+'(/[^\'"\s\$]{0,50})$', 'i');
  9079. var constraints = {
  9080. 'baseurl': {
  9081. 'single': {'min': 1, 'max': 10, 'paramRE': baseurlRE},
  9082. 'headers': {'min': 1, 'max': 10, 'paramRE': baseurlRE},
  9083. 'obsolete': {'min': 1, 'max': 10, 'paramRE': baseurlRE}},
  9084. 'alivematch': {
  9085. 'single': {'min': 1, 'max': 10, 'paramRE': null},
  9086. 'headers': {'min': 1, 'max': 10, 'paramRE': null}},
  9087. 'deadmatch': {
  9088. 'single': {'min': 1, 'max': 10, 'paramRE': null},
  9089. 'headers': {'min': 1, 'max': 10, 'paramRE': null}},
  9090. 'unavamatch': {
  9091. 'single': {'min': 0, 'max': 10, 'paramRE': null}},
  9092. 'alivelink': {
  9093. 'single': {'min': 0, 'max': 10, 'paramRE': null},
  9094. 'headers': {'min': 0, 'max': 10, 'paramRE': null}},
  9095. 'deadlink': {
  9096. 'single': {'min': 0, 'max': 10, 'paramRE': null},
  9097. 'headers': {'min': 0, 'max': 10, 'paramRE': null},
  9098. 'obsolete': {'min': 0, 'max': 10, 'paramRE': null}}
  9099. };
  9100. for (linenum = 0 ; linenum < linecount ; linenum++)
  9101. {
  9102. //capturing groups: 1 23 4 5 6
  9103. m = lines[linenum].match(/^\s*(?:(\/\/.*)|@((#?)(customrule)(?:_(headers|obsolete))?|baseurl|alivematch|deadmatch|unavamatch|alivelink|deadlink)\s+(.+))?$/i);
  9104. if (m)
  9105. {
  9106. if (m[1] || !m[2])
  9107. continue; // ignore empty lines and lines starting with //
  9108. keyword = (m[4] || m[2]).toLowerCase();
  9109. param = m[6];
  9110. if (keyword == 'customrule')
  9111. {
  9112. //save the current rule if all required fields are provided
  9113. if (rule)
  9114. {
  9115. err = false;
  9116. $.each(constraints, function(kw, constraint){
  9117. var l, constr = constraint[rule.type];
  9118. if (constr)
  9119. {
  9120. l = rule[kw] ? rule[kw].length : 0;
  9121. if (l < constr.min || l > constr.max)
  9122. {
  9123. 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);
  9124. err = true;
  9125. }
  9126. }
  9127. });
  9128. if (!err)
  9129. customRules.rules.push(makeCustomRule(rule));
  9130. }
  9131. //start a new rule
  9132. if (/^[\w\.-]{1,30}$/.test(param)) //valid name?
  9133. {
  9134. rule = {
  9135. 'enabled': !m[3],
  9136. 'type': m[5] ? m[5].toLowerCase() : 'single',
  9137. 'name': param
  9138. };
  9139. }
  9140. else
  9141. {
  9142. addInfo('error', 'Invalid rule name. Cannot start a new rule definition.');
  9143. rule = null;
  9144. }
  9145. }
  9146. else //good line format, but keyword other than customrule
  9147. {
  9148. if (!rule)
  9149. {
  9150. addInfo('warning', 'Command outside @CUSTOMRULE definiton. Line skipped.');
  9151. continue;
  9152. }
  9153. if (constraints[keyword])
  9154. {
  9155. constr = constraints[keyword][rule.type];
  9156. if (constr)
  9157. {
  9158. if (constr.paramRE && !constr.paramRE.test(param))
  9159. {
  9160. addInfo('warning', 'Invalid @' + keyword.toUpperCase() + ' parameter. Line Skipped.');
  9161. continue;
  9162. }
  9163. }
  9164. else
  9165. {
  9166. addInfo('note', '@' + keyword.toUpperCase() + ' not applicable for type ' + rule.type.toUpperCase() + '. Line skipped.');
  9167. continue;
  9168. }
  9169. }
  9170. //line OK, save
  9171. rule[keyword] ? rule[keyword].push(param) : rule[keyword] = [param];
  9172. }
  9173. } //if (m)
  9174. else
  9175. addInfo('warning', 'Unknown line format. Line skipped.');
  9176. } //for loop
  9177. return customRules;
  9178. } //function parseCustomRules