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

detects live, dead and premium links.

目前为 2015-11-08 提交的版本。查看 最新版本

  1. //fixed some rapidgator premium links not being detected
  2. //fixed doraupload.com
  3.  
  4. // ==UserScript==
  5. // @name W.A.R. Links Checker Customized Premium Link Version
  6. // @description detects live, dead and premium links.
  7. // @details this script automatically checks links from hundreds of filehosts. For Firefox, Chrome, Opera, Safari.
  8. // @namespace premium version
  9. // @version 1.2.0.4
  10. // @icon http://sharenxs.com/photos/2014/02/14/52fd759db90ac/cooltext1428903746.png
  11. // @license GPL version 3 or any later version (http://www.gnu.org/copyleft/gpl.html)
  12. // @author mental
  13. // @include http://*
  14. // @include https://*
  15. // @include file:///*
  16. // @grant GM_setValue
  17. // @grant GM_getValue
  18. // @grant GM_xmlhttpRequest
  19. // @grant GM_log
  20. // @grant GM_addStyle
  21. // @grant GM_registerMenuCommand
  22. // @grant GM_getResourceText
  23. // @grant GM_info
  24. // @require https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js
  25. // @require https://ajax.googleapis.com/ajax/libs/jqueryui/1.9.1/jquery-ui.min.js
  26. // @resource jQueryUICSS https://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/smoothness/jquery-ui.css
  27. // @homepage http://www.warlc.5gbfree.com
  28. // @namespace http://www.warlc.5gbfree.com
  29. // @noframes
  30. // ==/UserScript==
  31.  
  32. //separate alternative domains with "|" char (first name is considered being main)
  33. var allHostNames = [
  34. "1fichier.com|dl4free.com",
  35. "alfafile.net",
  36. "openload.co",
  37. "multiup.org",
  38. "uplea.com",
  39. "filenuke.com",
  40. "inafile.com",
  41. "lolabits.es",
  42. "vidto.me",
  43. "storefiles.co",
  44. "filehost.pw",
  45. "vidspot.net",
  46. "turbobit.ru",
  47. "sharesix.com|sharesix.net",
  48. "movpod.in",
  49. "thefile.me",
  50. "vidzi.tv",
  51. "videoweed.es",
  52. "vodlocker.com",
  53. "nowvideo.sx",
  54. "cloudtime.to",
  55. "thevideo.me",
  56. "vidbull.com",
  57. "allmyvideos.net",
  58. "novamov.com",
  59. "filehoot.com",
  60. "stagevu.com",
  61. "gorillavid.in",
  62. "streamin.to",
  63. "4upld.com",
  64. "cloudshares.net",
  65. "swoopshare.com",
  66. "2shared.com",
  67. "fileupload.pw",
  68. "zxcfiles.com",
  69. "up07.net",
  70. "4shared.com",
  71. "adrive.com",
  72. "aisfile.com",
  73. "hexupload.com",
  74. "bezvadata.cz",
  75. "xkeepfile.com|Gamesena.com",
  76. "usersfiles.com",
  77. "pan.baidu.com",
  78. "radicalshare.com",
  79. "datei.to",
  80. "daten-hoster.de|filehosting.org|xtraupload.de",
  81. "demo.ovh.eu",
  82. "depositfiles.com|depositfiles.lt|depositfiles.org|dfiles.ru|dfiles.eu",
  83. "divshare.com",
  84. "easy-share.com|crocko.com",
  85. "easybytez.com",
  86. "edisk.cz",
  87. "euroshare.eu",
  88. "file-upload.net",
  89. "yadi.sk",
  90. "wizupload.com",
  91. "fastshare.cz",
  92. "filefactory.com",
  93. "share.vnn.vn",
  94. "yunpan.cn",
  95. "gulfup.com",
  96. "tropicshare.com",
  97. "cloudzilla.to",
  98. "inclouddrive.com",
  99. "fileflyer.com",
  100. "filerio.com|filekeen.com",
  101. "up.4share.vn",
  102. "upfile.vn",
  103. "datafilehost.com",
  104. "fileband.com",
  105. "worldbytez.com",
  106. "files.mail.ru",
  107. "filepost.com|fp.io",
  108. "filesflash.com",
  109. "box.com",
  110. "uptobox.com",
  111. "box.net",
  112. "goldbytez.com",
  113. "sdilej.cz",
  114. "ex-load.com",
  115. "filesmonster.com",
  116. "filestore.to",
  117. "hulkload.com",
  118. "filedropper.com",
  119. "free-uploading.com",
  120. "gamefront.com|filefront.com",
  121. "gettyfile.ru",
  122. "gigapeta.com",
  123. "gigasize.com",
  124. "hellshare.com",
  125. "hellspy.com",
  126. "hitfile.net",
  127. "hostuje.net",
  128. "freefilehosting.net",
  129. "free.fr",
  130. "hulkshare.com",
  131. "hyperfileshare.com",
  132. "filecloud.io|ifile.it",
  133. "ifolder.ru",
  134. "jumbofiles.com",
  135. "uploadrocket.net",
  136. "lafiles.com",
  137. "leteckaposta.cz|sharegadget.com",
  138. "letitbit.net",
  139. "load.to",
  140. "mediafire.com",
  141. "megafileupload.com",
  142. "megashares.com",
  143. "movshare.net",
  144. "muchshare.net",
  145. "myupload.dk",
  146. "narod.ru|narod.yandex.ru",
  147. "fboom.me|fileboom.me",
  148. "openfile.ru",
  149. "partage-facile.com",
  150. "plunder.com",
  151. "sharerapid.cz",
  152. "exclusiveloader.com",
  153. "acefile.net",
  154. "queenshare.com",
  155. "rapidgator.net",
  156. "k2s.cc|keep2s.cc|keep2share.cc|keep2share.com",
  157. "oboom.com",
  158. "filepi.com",
  159. "neodrive.co",
  160. "rarefile.net",
  161. "rayfile.com",
  162. "rghost.net",
  163. "sendmyway.com",
  164. "clicknupload.com",
  165. "sharemods.com",
  166. "hostr.co",
  167. "sendspace.com",
  168. "sharecash.org",
  169. "share-links.biz",
  170. "share-online.biz|egoshare.com",
  171. "megarapid.cz",
  172. "shareflare.net",
  173. "solidfiles.com",
  174. "led.wf",
  175. "lan.wf",
  176. "adlink.wf",
  177. "click.tf",
  178. "kyc.pm",
  179. "ssh.tf",
  180. "ssh.yt",
  181. "yep.pm",
  182. "stahovanizasms.cz",
  183. "turbobit.net",
  184. "filecloud.cc",
  185. "tikfile.com",
  186. "cloudsix.me",
  187. "turboupload.com",
  188. "uloz.to|ulozto.cz|bagruj.cz|zachowajto.pl",
  189. "ulozisko.sk",
  190. "uloziste.com",
  191. "unibytes.com",
  192. "upload-il.net|przeslij.net",
  193. "uploaded.to|ul.to",
  194. "uploading.com",
  195. "chayfile.com",
  196. "rockfile.eu",
  197. "24uploading.com",
  198. "uploadspace.pl",
  199. "upnito.sk",
  200. "usaupload.net",
  201. "veehd.com",
  202. "videobb.com",
  203. "vip-file.com",
  204. "webshare.cz",
  205. "xdisk.cz",
  206. "yunfile.com|filemarkets.com",
  207. "ziddu.com",
  208. "zippyshare.com",
  209. "rodfile.com",
  210. "wikiupload.com",
  211. "uploadstube.de",
  212. "faststore.org",
  213. "flyfiles.net",
  214. "nowdownload.ch",
  215. "prefiles.com",
  216. "axifile.com",
  217. "rapidsonic.com|fileparadox.com",
  218. "hackerbox.org",
  219. "amonshare.com",
  220. "data.hu",
  221. "brupload.net",
  222. "userscloud.com",
  223. "netkups.com",
  224. "xfileload.com",
  225. "kumpulbagi.com",
  226. "uppit.com|up.ht",
  227. "downloadani.me",
  228. "filesabc.com",
  229. "180upload.com",
  230. "verzend.be",
  231. "4up.me",
  232. "extmatrix.com",
  233. "sendfiles.nl",
  234. "yourfilestore.com",
  235. "filebig.net",
  236. "nekaka.com",
  237. "file4safe.com",
  238. "tusfiles.net",
  239. "filemac.com",
  240. "idup.in",
  241. "fileswap.com",
  242. "ozofiles.com",
  243. "loudupload.net",
  244. "nosupload.com",
  245. "gboxes.com",
  246. "myvdrive.com|fileserving.com",
  247. "filesin.com",
  248. "novafile.com",
  249. "longfiles.com",
  250. "uploadhero.com",
  251. "uploadbaz.com",
  252. "bitupload.com",
  253. "indowebster.com",
  254. "superload.cz",
  255. "mafiastorage.com",
  256. "4upfiles.com",
  257. "filesmelt.com",
  258. "hellupload.com",
  259. "uploadingit.com",
  260. "stiahni.si",
  261. "sendspace.pl",
  262. "fastshare.org",
  263. "filejoker.net",
  264. "filestore.com.ua",
  265. "secureupload.eu",
  266. "rapidfileshare.net",
  267. "stiahnito.sk",
  268. "rusfolder.com",
  269. "fileover.net",
  270. "catshare.net",
  271. "anonfiles.com",
  272. "mixturecloud.com",
  273. "fileparadox.in",
  274. "filedais.com",
  275. // "imdb.com",
  276. "nitroflare.com",
  277. "akafile.com",
  278. "creafile.net",
  279. "hugefiles.net",
  280. "vidxden.com",
  281. "up.top4top.net",
  282. "upload.ee",
  283. "shareplace.org",
  284. "uploadc.com",
  285. "remixshare.com",
  286. "exoshare.com",
  287. "borncash.org",
  288. "junocloud.me",
  289. "expressleech.com",
  290. "2downloadz.com",
  291. "mightyupload.com",
  292. "anysend.com",
  293. "datafile.com",
  294. "upstore.net",
  295. "upsto.re",
  296. "speedy.sh",
  297. "sanshare.com",
  298. "uploadhero.co",
  299. "ge.tt",
  300. "filesflash.net",
  301. "salefiles.com",
  302. "megairon.net",
  303. "datoid.cz",
  304. "cloudstor.es",
  305. "streamfile.com",
  306. "eyesfile.ca",
  307. "filemoney.com",
  308. "uploadboy.com",
  309. "speedshare.eu",
  310. "google.com",
  311. "unlimitzone.com",
  312. "rioupload.com",
  313. "rg.to",
  314. "jumbofiles.org",
  315. "fshare.vn",
  316. "spaceforfiles.com",
  317. "up.media1fire.com",
  318. "depfile.com",
  319. "go4up.com",
  320. "dropbox.com",
  321. "redbunker.net",
  322. "divxpress.com",
  323. "mega.nz|mega.co.nz",
  324. "anafile.com",
  325. "uploadable.ch",
  326. "arabloads.net",
  327. "sharerepo.com",
  328. "sfshare.se",
  329. "files.fm",
  330. "koofile.com",
  331. "vidplay.net",
  332. "storagon.com",
  333. "doraupload.com",
  334. "openload.io",
  335. "geupload.com|lenfile.com",
  336. "uploads.xxx",
  337. "toutbox.fr",
  338. ];
  339.  
  340. try
  341. {
  342. //iframes excluded
  343. if (window.top != window.self)
  344. {
  345. return;
  346. }
  347. //allHostNames sites excluded
  348. if (window.location.href.match("https?:\/\/(www\.)?[\w\.-]*(?:" +
  349. allHostNames.join("|").replace(/\./g, "\\.").replace(/-/g, "\\-") +
  350. ")"))
  351. {
  352. return;
  353. }
  354. }
  355. catch (e)
  356. {
  357. return;
  358. }
  359.  
  360. //separate alternative domains with "|" char (first name is considered being main)
  361. var allContainerNames = [
  362. "adf.ly",
  363. "linkcrypt.ws",
  364. "linksafe.me",
  365. "linksave.in",
  366. "linkto.net",
  367. "madlink.sk",
  368. "multiload.cz",
  369. "mirrorcreator.com",
  370. "ncrypt.in",
  371. "redi.re",
  372. "relink.us",
  373. "safelinking.net",
  374. "theloo.katt.it",
  375. "bit.ly",
  376.  
  377. ];
  378.  
  379. //separate alternative domains with "|" char (first name is considered being main)
  380. var allObsoleteNames = [
  381. "uloz.cz",
  382. "newfileland.com",
  383. "quickshare.cz",
  384. "netload.in",
  385. "movreel.com",
  386. "migahost.com",
  387. "krotix.net",
  388. "jumbofile.net",
  389. "edoc.com",
  390. "down4files.com",
  391. "cramit.in|cramitin.net",
  392. "freakshare.com",
  393. "burnupload.com|burnupload.ihiphop.com",
  394. "freakshare.net",
  395. "kingfiles.net",
  396. "daj.to",
  397. "bl.st",
  398. "2drive.net",
  399. "ryushare.com",
  400. "crisshare.com",
  401. "tufiles.ru",
  402. "uncapped-downloads.com",
  403. "sockshare.com",
  404. "ddlstorage.com",
  405. "dataport.cz",
  406. "dizzcloud.com",
  407. "sharebeast.com",
  408. "stahovadlo.cz",
  409. "shared.com",
  410. "storage.to",
  411. "putlocker.com",
  412. "lumfile.com",
  413. "lumfile.se",
  414. "lumfile.eu",
  415. "firedrive.com",
  416. "fileshare.in.ua",
  417. "filecore.co.nz",
  418. "iskladka.cz",
  419. "file-rack.com",
  420. "fast-load.net",
  421. "subory.sk",
  422. "bigandfree.com",
  423. "fileop.com",
  424. "mujsoubor.cz",
  425. "sendfile.to",
  426. "superfastfile.com",
  427. "quickyshare.com",
  428. "duckload.com",
  429. "uploadstore.net",
  430. "meinupload.com",
  431. "dualshare.com",
  432. "2xupload.to|2xupload.de",
  433. "oxedion.com",
  434. "uploadline.com",
  435. "dll.bz",
  436. "movieshare.in",
  437. "milledrive.com",
  438. "quickupload.net",
  439. "safelink.in",
  440. "metadivx.com",
  441. "divxlink.com",
  442. "uploadrack.com",
  443. "teradepot.com",
  444. "dataup.to",
  445. "upit.to",
  446. "driveway.com",
  447. "eatlime.com",
  448. "a2zuploads.com",
  449. "friendlyfiles.net",
  450. "flyfile.us",
  451. "speedyshare.com",
  452. "uploadspace.eu",
  453. "keepfile.com",
  454. "piggyshare.com",
  455. "uplly.com",
  456. "filecrown.com",
  457. "6giga.com",
  458. "uploadjockey.com",
  459. "bluehost.to",
  460. "filegu.ru",
  461. "filebase.to",
  462. "up-file.com",
  463. "xvideos.com",
  464. "ufox.com",
  465. "filebling.com",
  466. "loaded.it",
  467. "uploadcell.com",
  468. "uploadshare.cz",
  469. "mangoshare.com",
  470. "filestab.com",
  471. "crazyupload.com",
  472. "gaiafile.com",
  473. "sharejunky.com",
  474. "fileho.com",
  475. "bigandfree.com",
  476. "bigfile.in",
  477. "bigshare.eu",
  478. "dahosting.org",
  479. "digisofts.net",
  480. "file4save.com",
  481. "filechip.com",
  482. "filescloud.com",
  483. "saveqube.com",
  484. "turboshare.de",
  485. "z-upload.com",
  486. "youshare.com",
  487. "jiffyupload.com",
  488. "gigeshare.com",
  489. "datenklo.net",
  490. "upload.dj",
  491. "loadfiles.in",
  492. "upit.to",
  493. "dsfileshare.com",
  494. "sharesimple.net",
  495. "4files.net",
  496. "wooupload.com",
  497. "odsiebie.com",
  498. "filenavi.com",
  499. "3oof.com",
  500. "meshwaar.com",
  501. "maxupload.com",
  502. "share.cx",
  503. "atserver.eu",
  504. "hotfiles.ws",
  505. "esnips.com",
  506. "tuxfile.com",
  507. "file2upload.net",
  508. "filebling.com",
  509. "turboshare.com",
  510. "rarhost.com",
  511. "isharehd.com",
  512. "i741.com",
  513. "dataup.de",
  514. "fofly.com",
  515. "shareonall.com",
  516. "sexuploader.com",
  517. "megaupload.com|megavideo.com|megaporn.com|megarotic.com",
  518. "uploadhyper.com",
  519. "filespawn.com",
  520. "caizzii.com",
  521. "volnyweb.cz",
  522. "usershare.net",
  523. "filescash.net",
  524. "metahyper.com",
  525. "combozip.com",
  526. "x7.to",
  527. "uploadbox.com",
  528. "enterupload.com|flyupload.com",
  529. "filepoint.de",
  530. "mystream.to",
  531. "x-fs.com",
  532. "shareator.com",
  533. "srapid.eu",
  534. "sosame.cz",
  535. "filesdump.com",
  536. "2-klicks.de",
  537. "uploking.com",
  538. "silofiles.com",
  539. "upfile.in",
  540. "filehook.com",
  541. "uploadking.com",
  542. "uploadhere.com",
  543. "kewlshare.com",
  544. "rapidable.com",
  545. "uploadwaste.com",
  546. "filemup.com",
  547. "filesonic.com|sharingmatrix.com",
  548. "fileserve.com",
  549. "wupload.com",
  550. "skipfile.com",
  551. "smartuploader.com",
  552. "dualshare.com",
  553. "storeandserve.com",
  554. "mountfile.com",
  555. "transitfiles.com",
  556. "uploadstation.com",
  557. "filejungle.com",
  558. "shareshared.com",
  559. "quickyshare.com",
  560. "save.am",
  561. "petandrive.com",
  562. "file2box.com",
  563. "flyshare.cz",
  564. "yabadaba.ru",
  565. "cloudcache.cc",
  566. "yourfilehost.com",
  567. "jakfile.com",
  568. "kickload.com",
  569. "pyramidfiles.com",
  570. "refile.net",
  571. "zshare.net",
  572. "ddlani.me|ddlanime.com",
  573. "ftp2share.com",
  574. "fooget.com",
  575. "rapidhide.com",
  576. "gotupload.com",
  577. "mooload.com",
  578. "zupload.com",
  579. "mytempdir.com",
  580. "onionshare.com",
  581. "stahnu.to",
  582. "oron.com",
  583. "badongo.com",
  584. "filereactor.com",
  585. "filegaze.com",
  586. "4bytez.com",
  587. "1hostclick.com",
  588. "anonstream.com",
  589. "batshare.com",
  590. "bitroad.net",
  591. "brontofile.com",
  592. "cloudnxt.net",
  593. "cloudnator.com|shragle.com",
  594. "filesfrog.net",
  595. "coolshare.cz",
  596. "dotavi.com",
  597. "ezyfile.net",
  598. "file-bit.net",
  599. "filecosy.com",
  600. "fileduct.com|fileduct.net",
  601. "filefat.com",
  602. "filelaser.com",
  603. "filemashine.com",
  604. "fileserver.cc",
  605. "filetechnology.com",
  606. "fireuploads.net",
  607. "gigfiles.net",
  608. "holderfile.com",
  609. "ihostia.com",
  610. "k2files.com",
  611. "mojofile.com",
  612. "ovfile.com",
  613. "qshare.com",
  614. "shafiles.me",
  615. "sharefilehost.com",
  616. "shareupload.com",
  617. "stahuj.to",
  618. "ugotfile.com",
  619. "uploadboost.com",
  620. "fileom.com",
  621. "vidhog.com",
  622. "xfileshare.eu",
  623. "bzlink.us",
  624. "bulletupload.com",
  625. "bloggerarticles.com",
  626. "mojedata.sk",
  627. "sharpfile.com",
  628. "upgrand.com",
  629. "nasdilej.cz",
  630. "mediatack.cz",
  631. "share-it.to",
  632. "primeupload.com",
  633. "filebeer.info",
  634. "baberepublic",
  635. "xtu.me",
  636. "sharebase.de",
  637. "luckyshare.net",
  638. "filerobo.com",
  639. "filevelocity.com",
  640. "filezpro.com",
  641. "file4sharing.com",
  642. "cing.be",
  643. "ufile.eu",
  644. "pigsonic.com",
  645. "fileupped.com",
  646. "sharerun.com",
  647. "filesaur.com",
  648. "rapidslnare.com",
  649. "bestsharing.com",
  650. "savefiles.net",
  651. "file2share.biz",
  652. "filecache.de",
  653. "monsteruploads.eu",
  654. "b9bb.com",
  655. "aiotool.net",
  656. "jamber.info",
  657. "megaftp.com",
  658. "desiupload.net",
  659. "file27.com",
  660. "yastorage.com",
  661. "filehost.ws",
  662. "copyload.com",
  663. "venusfile.com",
  664. "aieshare.com",
  665. "terafile.co",
  666. "terafile.com",
  667. "fileza.net",
  668. "filerose.com",
  669. "squillion.com",
  670. "fileprohost.com",
  671. "bitbonus.com",
  672. "warserver.cz",
  673. "uload.to",
  674. "sharedbit.net",
  675. "megaload.it",
  676. "filewinds.com",
  677. "uploadcore.com",
  678. "syfiles.com",
  679. "eyesfile.com",
  680. "hotfile.com",
  681. "superupl.com",
  682. "oteupload.com",
  683. "henchfile.com",
  684. "filegag.com",
  685. "HenchFile.com",
  686. "filedefend.com",
  687. "share-rapid.com|rapids.cz|share-credit.cz|share-central.cz|share-ms.cz|share-net.cz|srapid.cz|share-rapid.cz",
  688. "megabitshare.com",
  689. "cloudzer.com",
  690. "asfile.com",
  691. "cloudzer.net",
  692. "clz.to",
  693. "extabit.com",
  694. "247upload.com",
  695. "2download.de",
  696. "4fastfile.com",
  697. "asixfiles.com",
  698. "berofile.com",
  699. "bigupload.com",
  700. "cepzo.com",
  701. "clouds.to",
  702. "cobrashare.sk",
  703. "coraldrive.net",
  704. "cyberlocker.ch",
  705. "czshare.com",
  706. "darkport.org",
  707. "dark-uploads.com",
  708. "davvas.com",
  709. "enigmashare.com",
  710. "erofly.cz",
  711. "fastsonic.net",
  712. "filebox.com",
  713. "filecity.net",
  714. "filedap.com",
  715. "filedino.com",
  716. "filedownloads.org",
  717. "filefolks.com",
  718. "fileking.co",
  719. "filemates.com",
  720. "files.to",
  721. "files2k.eu",
  722. "filesector.cc",
  723. "bitshare.com",
  724. "filesega.com",
  725. "filesend.net",
  726. "filestay.com",
  727. "filestrum.com",
  728. "fileuplo.de",
  729. "fileupup.com",
  730. "forunesia.com",
  731. "freeuploads.fr",
  732. "uploa.dk",
  733. "getthebit.com",
  734. "getzilla.net",
  735. "goldfile.eu",
  736. "good.com",
  737. "grupload.com",
  738. "hellfile.com",
  739. "hipfile.com",
  740. "hitfile.com",
  741. "hulkfile.eu|duckfile.net",
  742. "i-filez.com",
  743. "ifile.ws",
  744. "kupload.org",
  745. "packupload.com",
  746. "lemuploads.com",
  747. "limelinx.com",
  748. "maxshare.pl",
  749. "megarelease.org",
  750. "megashare.com",
  751. "minus.com",
  752. "mlfat4arab.com",
  753. "multishare.cz",
  754. "nirafile.com",
  755. "ok2upload.com",
  756. "peejeshare.com",
  757. "premiuns.org",
  758. "przeklej.net",
  759. "qkup.net",
  760. "rapidupload.sk",
  761. "rockdizfile.com",
  762. "rocketfile.net",
  763. "share-now.net",
  764. "share76.com",
  765. "sharebees.com",
  766. "sharefiles.co",
  767. "slingfile.com",
  768. "sms4file.com",
  769. "space4file.com",
  770. "tigershare.net",
  771. "toucansharing.com",
  772. "ubuntuone.com",
  773. "unextfiles.com",
  774. "upaj.pl",
  775. "upfile.biz",
  776. "uploadbin.net",
  777. "uploadic.com",
  778. "uploadinc.com",
  779. "uploading4u.eu",
  780. "uploadjet.net",
  781. "uploadorb.com",
  782. "upthe.net",
  783. "uptorch.com",
  784. "vidbox.yt",
  785. "videozer.com",
  786. "vreer.com",
  787. "wallobit.com",
  788. "zooupload.com",
  789. "privatefiles.com",
  790. "xerver.co",
  791. "BillionUploads.com",
  792. "rapidshare.com",
  793. "rapidshare.ru",
  794. "4savefile.com",
  795. "bayfiles.com",
  796. "bayfiles.net",
  797. "dodane.pl",
  798. "dotsemper.com",
  799. "egofiles.com",
  800. "epicshare.net",
  801. "fiberupload.net",
  802. "filemonkey.in",
  803. "filemonster.net",
  804. "filepom.com",
  805. "filesbb.com",
  806. "fileshareup.com",
  807. "filevice.com",
  808. "gigaup.fr",
  809. "isavelink.com",
  810. "loombo.com",
  811. "megafiles.se",
  812. "migupload.com",
  813. "mydisc.net",
  814. "nitrobits.com",
  815. "potload.com",
  816. "redload.net",
  817. "shareprofi.com",
  818. "sharesuper.info",
  819. "sinhro.net",
  820. "speedfile.cz",
  821. "speedshare.org",
  822. "storage.novoro.net",
  823. "swankshare.com",
  824. "swatupload.com",
  825. "upafile.com",
  826. "uploadmachine.com",
  827. "uploadsat.com",
  828. "upshared.com",
  829. "usefile.com",
  830. "yourfiles.to",
  831. "zomgupload.com",
  832. "ultramegabit.com",
  833. "uploadto.us",
  834.  
  835. ];
  836. ///////////////////////////////////////////////////////////////////////////////////////
  837. var firstRun = GM_getValue("First_run", true);
  838.  
  839. var chromeBrowser = /chrom(e|ium)/.test(navigator.userAgent.toLowerCase());
  840. //////////////////////////////////////////////////////////////////////////////////////
  841. try
  842. {
  843. var thisVersion = GM_info.script.version; //not supported in Scriptish and others
  844. var last_known_version = GM_getValue("last_known_version", "");
  845. if (!last_known_version)
  846. {
  847. last_known_version = thisVersion;
  848. GM_setValue("last_known_version", last_known_version);
  849. }
  850. //var newVersion = !(thisVersion == last_known_version);
  851. var newVersion = !(a.replace(/^(\d+\.\d+\.\d+).*/,'$1') == b.replace(/^(\d+\.\d+\.\d+).*/,'$1')); //true only if one of the first three numbers differs
  852. GM_setValue("last_known_version", thisVersion);
  853. }
  854. catch (err)
  855. {
  856. var newVersion = false;
  857. }
  858.  
  859. var now = (new Date()).getTime();
  860. var last_custom_rules_nag = GM_getValue('last_custom_rules_nag', 0);
  861. if (!last_custom_rules_nag)
  862. {
  863. last_custom_rules_nag = now;
  864. GM_setValue('last_custom_rules_nag', ''+now);
  865. }
  866.  
  867.  
  868. allHostNames.sort();
  869. allContainerNames.sort();
  870. allObsoleteNames.sort();
  871.  
  872. var RAND_STRING = "8QyvpOSsRG3QWq";
  873. var DEBUG_MODE = false;
  874.  
  875. var TOOLTIP_MAXWIDTH = 600; //in pixels
  876. var TOOLTIP_THUMBWIDTH = 200;
  877. var containers_processed = false;
  878.  
  879. //settings for keyboard functions start
  880. var CHECK_ALL_LINKS_KEY = "A";
  881. var CONFIGURATION_KEY = "C";
  882. var copy_to_dead_key = "D";
  883. var toggle_autocheck_key = "W";
  884. var toggle_Enable_Anonymizer_key = "Z";
  885. var first_key_keycode = '17'; // 18=ALT 16=Shift 17=Ctrl 32=SPACE_BAR 9=TAB
  886. var first_key_keycodename = 'CTRL';
  887. var second_key_keycode = '18';
  888. var second_key_keycodename = 'ALT';
  889. var CHECK_ALL_LINKS_KEYCODE = CHECK_ALL_LINKS_KEY.charCodeAt(0);
  890. var CONFIGURATION_KEYCODE = CONFIGURATION_KEY.charCodeAt(0);
  891. var copy_to_dead_keycode = copy_to_dead_key.charCodeAt(0);
  892. var toggle_autocheck_keycode = toggle_autocheck_key.charCodeAt(0);
  893. var toggle_Enable_Anonymizer_keycode = toggle_Enable_Anonymizer_key.charCodeAt(0);
  894. //settings for keyboard functions end
  895.  
  896. //global settings start
  897. var Show_black_background_in_DL_links, Show_line_through_in_dead_links, Color_DL_links;
  898. var Live_links_color, Dead_links_color, Temp_unavailable_links_color, Premium_links_color, Ref_anonymize_service;
  899. var Do_not_linkify_DL_links, Keyboard_functions, Autocheck, Enable_Anonymizer;
  900. var Show_progress_stats, Display_tooltip_info, Icon_set;
  901. var Progress_box_pos_bottom, Progress_box_pos_right, Progress_box_opacity, Progress_box_background_color, Progress_box_item_color;
  902. var Progress_box_refresh_rate;
  903. var Obsolete_file_hosts;
  904. var Custom_rules, Custom_rules_text;
  905.  
  906. var messageBox = document.createElement('b'); // top-left message box
  907.  
  908. var cLinksTotal = 0;
  909. var cLinksDead = 0;
  910. var cLinksAlive = 0;
  911. var cLinksUnava = 0;
  912. var cLinksprem = 0;
  913. var cLinksProcessed = 0;
  914.  
  915. var intervalId; //for updateProgress()
  916.  
  917. //icon resources
  918. 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+AXuRLahdYwP2SycQWHTA4vcAAPK7b8H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4AtYdsc7/DVQOMxSNW5cNClGD+Fu41dOZlKDMLmELrOUIhjeN48HpngTnMbDeWjIeHnsvbz98YXqxguumuazdDOs0HjAETRKNjuFyzTE9PAOO//Xm27lvN4b1c8htkAXC2jrKHN5gVSRcRW0SCIpIj/f2ZAkhTkykiOYu+SLa8e6qkeRNXALh5nEc/phARnaSJSSUnO5G+B8tnIkr6rjMTSqfMZQXZ9vE1xGKJpPe4DDjXAYkEjAwmzwwDLIv0NZlE1MYAjsQoAOL8C5rY2AxPlIjwP/wcACKn3tWfrwJ4AAAAAElFTkSuQmCC';
  931. var NEW_ICON_PINK = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABUklEQVQ4jY3TsUuWURQG8F8WEvFNDREfIg5RURAOIeL0DhJBS0tDY9BQQ0Oj29kiIvoDhBpFQRTUD1GKi0sRtEs0SEQ0RBQIRcVXw3eF6+vrWwcunPvc53nuPffcS0uEmA0x38Y5cohwGjOYxBBe4VGI3j8NQlzHYhaW0cfNEAslWCfBw4yvYhkv8hjCgxD7yMdquw/jbJ4+xq2cz+AKdrJRv9EAv/EDx3Ft75QhtrHdcFpHy0mS/lSqcVzAFM7he6XaTNLXJoOmS+ziOc4XcB893A3xodUgm5zAHdzHSLH0DhdD/GwsoSjlV5Je5nK+YQUTOInXSXq7x6134RQuo4unGf6Me7iKMxgrNfUuXMJazr8U+DA6Of/UZrCF9xjFM3zELpZwOptulIKmLlQGNXdqS7u4EWK9BA9cYpJ2KtWcwaMazcInuB3iTZ3fGv/znf8CBMxX4hrPUbUAAAAASUVORK5CYII=';
  932.  
  933. //global settings end
  934. if (window.opera && !window.console)
  935. {
  936. window.console = {};
  937.  
  938. function fn()
  939. {
  940. opera.postError(arguments);
  941. };
  942. ['log', 'debug', 'info', 'warn', 'error', 'assert', 'dir', 'dirxml', 'group', 'groupEnd', 'time', 'timeEnd', 'count', 'trace', 'profile', 'profileEnd'].forEach(function (name)
  943. {
  944. window.console[name] = fn;
  945. });
  946. }
  947.  
  948. //displays colored text in message box
  949. function sendMessage(text, color)
  950. {
  951. var msgDiv = document.createElement('div');
  952. msgDiv.style.color = color;
  953. msgDiv.innerHTML = text;
  954. messageBox.appendChild(msgDiv);
  955. setTimeout(function(){messageBox.removeChild(msgDiv)}, 3000);
  956. }
  957.  
  958. function linkify(totalourls)
  959. { // code from http://userscripts.org/scripts/review/2254 Linkify ting
  960. var ikkeTilladteTags;
  961. var allLinksRegex = "(?:http:\/\/.+?\\?)?(?:https?:\/\/)?"
  962. + "[0-9A-Za-z]+(?:[\\.-][0-9A-Za-z]+)*\\.[A-Za-z]+/" //instead of totalourls
  963. + "[\\w\\–\\-\\.+$!*\\/()\\[\\]\',~%?:@#&=\\\\\\—;…×Ã\\_\\u0080-\\u03FF’‘" + (Allow_spaces_in_DL_links ? "\\u0020" : "") + "]*";
  964. allLinksRegex = new RegExp(allLinksRegex, "g");
  965. var regexy = "^(?:http:\/\/.+?\\?)?(?:https?:\/\/)?(?:www\\.)?(?:" + totalourls + ")";
  966.  
  967. if (Do_not_linkify_DL_links)
  968. ikkeTilladteTags = ['a', 'head', 'script', 'style', 'title', 'option', 'iframe', 'textarea', 'span']; //tags, hvor det der stAΞ’Β¥r inden i ikke skal vAΞ’Β¦re links
  969. else
  970. ikkeTilladteTags = ['a', 'head', 'script', 'style', 'title', 'option', 'iframe', 'textarea']; //tags, hvor det der stAΞ’Β¥r inden i ikke skal vAΞ’Β¦re links
  971.  
  972. var regex = new RegExp(regexy);
  973. var textNode, muligtLink;
  974.  
  975. var path = "//text()[not(parent::" + ikkeTilladteTags.join(" or parent::") + ") and contains(.,'/')]";
  976. var textNodes = document.evaluate(path, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  977.  
  978. var i = textNodes.snapshotLength;
  979. while (i--)
  980. {
  981. textNode = textNodes.snapshotItem(i);
  982.  
  983. muligtLink = textNode.nodeValue; //all links on page
  984.  
  985. var myArray = null;
  986. var span = null;
  987. var lastLastIndex = 0;
  988. allLinksRegex.lastIndex = 0;
  989. if (/^https?:\/\/~[\w\s\~]*\//.test(muligtLink))
  990. {
  991. if (textNode.parentNode.className == "adead_link") continue;
  992. var censoredLink = muligtLink;
  993. var span = document.createElement('span');
  994. span.className = "adead_link";
  995. $(span).attr('warlc_error', "Cause of error: <b>Censored link.</b>");
  996. $(span).html(censoredLink);
  997. span.addEventListener("mouseover", displayTooltipError, false);
  998. cLinksTotal++; cLinksProcessed++; cLinksDead++;
  999. textNode.parentNode.replaceChild(span, textNode);
  1000. continue;
  1001. alert(censoredLink);
  1002. }
  1003. while (myArray = allLinksRegex.exec(muligtLink)) //find all links
  1004. {
  1005. if (!regex.test(myArray[0])) //this link is not recognized
  1006. {
  1007.  
  1008. continue;
  1009. }
  1010. if (!span)
  1011. span = document.createElement('span');
  1012.  
  1013. var link = myArray[0];
  1014. span.appendChild(document.createTextNode(muligtLink.substring(lastLastIndex, myArray.index))); //inds?t det der kommer for dette hit
  1015.  
  1016. var $a = $("<a>" + link + "</a>")
  1017. if (!link.match(/https?:\/\//))
  1018. {
  1019. link = 'http://' + link;
  1020. }
  1021.  
  1022. $a.attr("href", link.replace(/\[\/hide:\w+\]/,""))
  1023. .addClass("processing_link")
  1024. .appendTo(span);
  1025. lastLastIndex = allLinksRegex.lastIndex;
  1026. }
  1027. if (span)
  1028. {
  1029. span.appendChild(document.createTextNode(muligtLink.substring(lastLastIndex))); //ins?t det der kommer efter sidste hit
  1030. textNode.parentNode.replaceChild(span, textNode);
  1031. }
  1032. }
  1033. }
  1034.  
  1035. function add_WARLC_style()
  1036. {
  1037. if (!(document.getElementsByTagName('WARLC')[0]))
  1038. {
  1039. var meta_not_to_add_more_style = document.createElement("WARLC");
  1040. meta_not_to_add_more_style.setAttribute('content', 'war_links_checker');
  1041. meta_not_to_add_more_style.setAttribute('name', 'description');
  1042. document.getElementsByTagName('head')[0].appendChild(meta_not_to_add_more_style);
  1043. alive_link_png = "";
  1044. adead_link_png = "";
  1045. unava_link_png = "";
  1046. prem_link_png = "";
  1047. switch(Icon_set)
  1048. {
  1049. //no icons
  1050. case 0: break;
  1051. // cat paws
  1052. case 1: alive_link_png = PAW_ICON_GREEN;
  1053. adead_link_png = PAW_ICON_RED;
  1054. unava_link_png = PAW_ICON_YELLOW;
  1055. prem_link_png = PAW_ICON_PINK;
  1056. break;
  1057. // classic RSLC look
  1058. case 2: alive_link_png = RSLC_ICON_GREEN;
  1059. adead_link_png = RSLC_ICON_RED;
  1060. unava_link_png = RSLC_ICON_YELLOW;
  1061. prem_link_png = RSLC_ICON_PINK;
  1062. break;
  1063. // New Icons
  1064. case 3: alive_link_png = NEW_ICON_GREEN;
  1065. adead_link_png = NEW_ICON_RED;
  1066. unava_link_png = NEW_ICON_YELLOW;
  1067. prem_link_png = NEW_ICON_PINK;
  1068. break;
  1069. // cat paws
  1070. default:alive_link_png = PAW_ICON_GREEN;
  1071. adead_link_png = PAW_ICON_RED;
  1072. unava_link_png = PAW_ICON_YELLOW;
  1073. prem_link_png = PAW_ICON_PINK;
  1074. break;
  1075. }
  1076. processing_link_gif = 'data:image/gif;base64,' + // or temporary anavailable
  1077. 'R0lGODlhCgAKAJEDAMzMzP9mZv8AAP///yH/C05FVFNDQVBFMi4wAwEAAAAh+QQFAAADACwAAAAACgAKAAACF5wncgaAGgJzJ647cWua4sOBFEd62VEAACH5BAUAAAMALAEAAAAIAAMAAAIKnBM2IoMDAFMQFAAh+QQFAAADACwAAAAABgAGAAACDJwHMBGofKIRItJYAAAh+QQFAAADACwAAAEAAwAIAAACChxgOBPBvpYQYxYAIfkEBQAAAwAsAAAEAAYABgAAAgoEhmPJHOGgEGwWACH5BAUAAAMALAEABwAIAAMAAAIKBIYjYhOhRHqpAAAh+QQFAAADACwEAAQABgAGAAACDJwncqi7EQYAA0p6CgAh+QQJAAADACwHAAEAAwAIAAACCpRmoxoxvQAYchQAOw%3D%3D';
  1078.  
  1079. var dead_color_css, live_color_css, unava_color_css, prem_color_css, black_background_css;
  1080.  
  1081. if (Color_DL_links)
  1082. {
  1083. dead_color_css = 'color:' + Dead_links_color + ' !important;';
  1084. live_color_css = 'color:' + Live_links_color + ' !important;';
  1085. unava_color_css = 'color:' + Temp_unavailable_links_color + ' !important;';
  1086. container_color_css = 'color:' + Container_links_color + ' !important;';
  1087. prem_color_css = 'color:' + Premium_links_color + ' !important;';
  1088. }
  1089. else
  1090. {
  1091. dead_color_css = live_color_css = unava_color_css = container_color_css = prem_color_css = '';
  1092. }
  1093.  
  1094. if (Show_black_background_in_DL_links)
  1095. {
  1096. black_background_css = 'background-color: black !important;';
  1097. }
  1098. else
  1099. {
  1100. black_background_css = '';
  1101. }
  1102.  
  1103. if (Show_line_through_in_dead_links)
  1104. {
  1105. line_through_css = 'text-decoration: line-through !important;';
  1106. }
  1107. else
  1108. {
  1109. line_through_css = '';
  1110. }
  1111.  
  1112. GM_addStyle(".alive_link {background:transparent url(" + alive_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;" + live_color_css + black_background_css + "}");
  1113. 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 + "}");
  1114. GM_addStyle(".unava_link {background:transparent url(" + unava_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;" + unava_color_css + black_background_css + "}");
  1115. GM_addStyle(".processing_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_link {background:transparent url(" + processing_link_gif + ") no-repeat scroll 100% 50%;padding-right:15px;" + container_color_css + black_background_css + "}");
  1117. GM_addStyle(".container_list {font-size:90%; list-style-type:square; padding: 0px 5% 0px; margin: 0px}");
  1118. GM_addStyle(".prem_link {background:transparent url(" + prem_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;" + prem_color_css + black_background_css + "}");
  1119. }
  1120. }
  1121.  
  1122. var warlcTooltip = null;
  1123. var mouseoverLink = null; //link href with mouse cursor over it
  1124.  
  1125. var lastX = 0;
  1126. var lastY = 0;
  1127.  
  1128. $(document).ready(initTooltip);
  1129. //inits tooltip
  1130. function initTooltip()
  1131. { warlcTooltip = document.createElement("div");
  1132. 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;");
  1133. warlcTooltip.style.visibility = "hidden";
  1134. document.body.appendChild(warlcTooltip);
  1135. }
  1136.  
  1137. //"mousemove" event handler for all links
  1138. function moveTooltip(event)
  1139. {
  1140. if ((Math.abs(lastX - event.clientX) + Math.abs(lastY - event.clientY)) < 6)
  1141. { //no need to reflow if the cursor moved just a little
  1142. return;
  1143. }
  1144. else
  1145. {
  1146. lastX = event.clientX;
  1147. lastY = event.clientY;
  1148. }
  1149.  
  1150. posX = event.clientX + window.pageXOffset + 10;
  1151. posY = event.clientY + window.pageYOffset;
  1152. var ttHeight = warlcTooltip.offsetHeight;
  1153. var ttFreeSpace = window.innerHeight - event.clientY;
  1154. if (ttHeight > ttFreeSpace)
  1155. { //prevents tooltip from getting out of the window
  1156. posY -= (ttHeight - (ttFreeSpace)) + 10;
  1157. }
  1158. else
  1159. {
  1160. posY += 7;
  1161. }
  1162. warlcTooltip.style.top = posY + "px";
  1163. warlcTooltip.style.left = posX + "px";
  1164. }
  1165.  
  1166. //"mouseout" event handler for all links
  1167. function hideTooltip(){
  1168. warlcTooltip.style.visibility = "hidden";
  1169. mouseoverLink = null;
  1170. }
  1171.  
  1172.  
  1173. //"mouseover" event handler for dead links
  1174. //displays tooltip error message on dead links
  1175. function displayTooltipError()
  1176. {
  1177. mouseoverLink = this.href;
  1178. this.addEventListener("mouseout", hideTooltip);
  1179. this.addEventListener("mousemove", function(event) { moveTooltip(event); });
  1180. warlcTooltip.innerHTML = '<b>LOADING...</b>';
  1181. warlcTooltip.style.minWidth = 0;
  1182. warlcTooltip.style.visibility = "visible";
  1183. if (this.warlc_error) //an error message is already known and stored in warlc_error attribute
  1184. {
  1185. warlcTooltip.innerHTML = this.warlc_error;
  1186. }
  1187. else
  1188. {
  1189. loadErrorInfo(this);
  1190. }
  1191. function loadErrorInfo(link)
  1192. {
  1193. var href = link.href;
  1194. href = href.replace(/quickshare\.cz\/.+/, "quickshare.cz/chyba");
  1195. GM_xmlhttpRequest({
  1196. method: 'GET',
  1197. url: href.replace(Ref_anonymize_service, ""),
  1198. headers: {
  1199. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1200. 'Accept': 'text/xml',
  1201. 'Referer': ""
  1202. },
  1203. onload: function(result) {
  1204. var res = result.responseText;
  1205. //TODO: errorRegexs -
  1206. var errorRegexs = [ //generic error messages follow
  1207. /(empty directory)/i,
  1208. /(soubor nebyl nalezen)/i,
  1209. /((?:file|page|link|folder)(?:is|not|does|has been|was| ){1,}(?:found|available|blocked|exists?|deleted|removed))/i,
  1210. //server specific error messages follow
  1211. /msg error" style="cursor: default">(.+?)<\/div>/, //sendspace
  1212. /color:red;font\-weight:bold;border\-style:dashed;font-size:12px;border\-width:2px;><tr><td align=center>(.+?)<\/td>/, //fastshare
  1213. /(Takový soubor neexistuje. Je možné, že byl již smazán.)/, //quickshare
  1214. /file_info file_info_deleted">\s*<h1>(.+?)<\/h1>/, //filepost
  1215. /<br \/>\s*<p style="color:#000">(.+?)<\/p>\s*<\/center>/, //letitbit
  1216. /(?:error_div">|<\/h1><p>)<strong>(.+?)<\/strong>/, //share-rapid,quickshare
  1217. /class="red">(.+?)<(?:span|br)>/, //czshare, megashares
  1218. /class="wp640">\s*<h1 class="h1">(.+?)<\/h1>/, //uloz.to
  1219. /not-found">\s*<p>(.+?)<\/p>/, //bayfiles
  1220. /(Your file could not be found. Please check the download link.)/, //stahnu.to
  1221. /error_msg">\s*(<h3>.+?<\/h3><ul>(.+?)<\/ul>)/, //edisk
  1222. /id="obsah">\s*<h2>(.+?)<\/h2>/, //euroshare
  1223. /error">\s*(?:<[bp]>)?\s*(.+?)<\/[bp]>/, //filesmonster, shragle, gigapeta
  1224. ///center aC">\s*<h1>(.+?)<br \/>/, //uploaded.to
  1225. /icon_err">\s*<h1>(.+?)<\/h1>/, //filejungle
  1226. /Code: ER_NFF_\d+<\/h2>\s*(.+?)\s*<\/div>/, //netload
  1227. /(File has been removed due to Copyright Claim)/, //filerio
  1228. ];
  1229. var errorIdx = errorRegexs.length;
  1230. var error = "Cause of error: <b>unknown</b>";
  1231. var errorCandidate = "";
  1232. while(errorIdx--)
  1233. {
  1234. var errorCandidate = res.match(errorRegexs[errorIdx]);
  1235. if (errorCandidate != null)
  1236. {
  1237. error = "Cause of error: <b>" + errorCandidate[1].replace(/&nbsp;/g," ") + "</b>";
  1238. break;
  1239. }
  1240. }
  1241. //link attributes
  1242. link.warlc_error = error;
  1243. if (mouseoverLink == link.href) //mouse cursor is still over the link
  1244. {
  1245. warlcTooltip.innerHTML = error;
  1246. }
  1247. }
  1248. });
  1249. }
  1250. }
  1251.  
  1252. //"mouseover" event handler for alive links
  1253. //displays tooltip info (file size, file name,...) on alive links
  1254. function displayTooltipInfo()
  1255. {
  1256. mouseoverLink = this.href;
  1257. //exclude direct download filehostings
  1258. 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)/))
  1259. {
  1260. return;
  1261. }
  1262. this.addEventListener("mouseout", hideTooltip);
  1263. this.addEventListener("mousemove", function(event) { moveTooltip(event); });
  1264. warlcTooltip.innerHTML = '<b>LOADING...</b>';
  1265. warlcTooltip.style.minWidth = 0;
  1266. warlcTooltip.style.visibility = "visible";
  1267. if (this.warlc_tooltipcache) //file size is already known and stored in warlc_filename and warlc_filesize attributes
  1268. {
  1269. warlcTooltip.innerHTML = this.warlc_tooltipcache;
  1270. }
  1271. else
  1272. {
  1273. loadInfo(this);
  1274. }
  1275. function loadInfo(link)
  1276. {
  1277. var href = link.href;
  1278. GM_xmlhttpRequest({
  1279. method: 'GET',
  1280. url: href.replace(Ref_anonymize_service, ""),
  1281. headers: {
  1282. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1283. 'Accept': 'text/xml',
  1284. 'Referer': ""
  1285. },
  1286. onload: function(result) {
  1287. var res = result.responseText;
  1288. var nameRegexs = [ /Filename: <b class="f_arial f_14px">(.+?)<\/b>/, //oron
  1289. /(?:finfo|file[-_]?name)">\s*(.+?)<\/?(?:h1|a|div|span style|td)/, //hellshare, netload, badongo, 4fastfile
  1290. /fl" title="(.+?)">/, //edisk
  1291. /<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
  1292. /<h3>Stahujete soubor: <\/h3>\s*<div class="textbox">(.+?)<\/div>/, //webshare
  1293. /<h3><b><span style=color:black;>(.+?)<\/b><\/h3><br>/, //fastshare
  1294. /title="download (.+?)">/, //sendspace
  1295. /Stáhnout soubor: (.+?)<\/h1>/, //quickshare
  1296. /fz24">Download:\s*<strong>(.+?)<\/strong>/, //crocko
  1297. // /'file\-icon\d+ \w+'>(?:<\/span><span>)?(.+?)<\/span>/, //hitfile, turbobit
  1298. /d0FileName = "(.+?)";/, //letitbit
  1299. /file(?:_name|-info)" title="">\w+: <span>(.+?)<\/span>/, //vip-file, shareflare
  1300. /recent-comments"><h2>(.+) &nbsp;/, //xdisk
  1301. /fname" value="(.+?)">/, //syfiles, grupload,
  1302. /download\-header">\s*<h2>File:<\/h2>\s*<p title="(.+?)">/, //bayfiles
  1303. /description">\s*<p><b>Soubor: (.+?)<\/b>/, //bezvadata
  1304. /Complete name : (.+?)<br \/>/, //bezvadata
  1305. /itemprop="name">(.+?)<\/span>/, //bezvadata
  1306. ];
  1307. var nameIdx = nameRegexs.length;
  1308. // [sizeRegexs]
  1309. // / \ \?
  1310. // prefix (size) postfix
  1311. // / \
  1312. // val quant
  1313. var quantRegex = '(?:M|G|K)?i?(?:B)(?:[y|i]te?s?)?';
  1314. var valRegex = '\\d+(?:[\\., ]\\d+){0,2}'; // 111([., ]222)?([., ]333)?
  1315. var uniSizeRegex = valRegex + '(?:\\s*|&nbsp;)' + quantRegex;
  1316. var preSizeRegex = '(?::|\\(|>|>, | - )';
  1317. var postSizeRegex = '(?:\\))?';
  1318. var sizeRegexs = [ preSizeRegex + "\\s*(" + uniSizeRegex + ")\\s*" + postSizeRegex,
  1319. 'FileSize_master">(.+?)<\/strong>', //hellshare
  1320. ];
  1321. var sizeIdx = sizeRegexs.length;
  1322. //
  1323. //
  1324. var tooltip = "File Name: <b>";
  1325. var fileName = "unknown";
  1326. var nameCandidate = "";
  1327. while(nameIdx--)
  1328. {
  1329. var nameCandidate = res.match(nameRegexs[nameIdx]);
  1330. if (nameCandidate != null)
  1331. {
  1332. fileName = nameCandidate[1].replace(/&nbsp;/g," ");
  1333. break;
  1334. }
  1335. }
  1336. tooltip += fileName + "</b><br>File Size: <b>";
  1337. var fileSize = "unknown";
  1338. var sizeCandidate = "";
  1339. while(sizeIdx--)
  1340. {
  1341. sizeCandidate = res.match(new RegExp(sizeRegexs[sizeIdx], "i"));
  1342. if (sizeCandidate != null)
  1343. {
  1344. fileSize = sizeCandidate[1].replace(/&nbsp;/g," ");
  1345. if (/^\d+$/.test(fileSize) && fileSize >= 1024) //assume bytes
  1346. {
  1347. if(fileSize > (1<<30)) fileSize = Math.round(10 * fileSize / (1<<30)) / 10 + ' GB';
  1348. else if(fileSize > (1<<20)) fileSize = Math.round(fileSize / (1<<20)) + ' MB';
  1349. else fileSize = Math.round(fileSize / 1024) + ' KB';
  1350. }
  1351. break;
  1352. }
  1353. }
  1354. tooltip += fileSize + "</b>";
  1355. // PROTOTYPE
  1356. // video thumbnails
  1357. if (href.match('hellshare'))
  1358. {
  1359. var thumbs;
  1360. thumbs = res.match(/http:\/\/static\d+\.helldata\.com\/thumbs(?:\/\d+){1,2}\/\d{1,2}"/g);
  1361. if (thumbs)
  1362. {
  1363. tooltip += '<br>';
  1364. var j = Math.min(thumbs.length, 9);
  1365. for (var i = 0; i < j; i++)
  1366. {
  1367. tooltip += '<img src="' + thumbs[i].replace('"',"") + '" width="' + TOOLTIP_THUMBWIDTH + 'px">';
  1368. }
  1369. warlcTooltip.style.minWidth = TOOLTIP_MAXWIDTH;
  1370. }
  1371. }
  1372. if (href.match('czshare'))
  1373. {
  1374. var thumbs;
  1375. thumbs = res.match(/src="http:\/\/www(\d+)\.czshare\.com\/images_velke\/\d+\.(\d+)\.jpeg/);
  1376. if (thumbs)
  1377. {
  1378. var thumbsServer = thumbs[1];
  1379. var thumbsId = thumbs[2];
  1380. tooltip += '<br>';
  1381. for (var i = 1; i < 9; i++)
  1382. {
  1383. tooltip += '<img src="http://www' + thumbsServer + '.czshare.com/images_velke/' + i + '.' + thumbsId + '.jpeg" width="' + TOOLTIP_THUMBWIDTH + 'px">';
  1384. }
  1385. warlcTooltip.style.minWidth = TOOLTIP_MAXWIDTH;
  1386. }
  1387. }
  1388. if (href.match('bezvadata'))
  1389. {
  1390. var thumbs;
  1391. thumbs = res.match(/http:\/\/nahledy\.bezvadata\.cz\/nahledy\/\d+\/\d+\/\d+_\d+_\d+x\d+_\w.jpg/g);
  1392. if (thumbs)
  1393. {
  1394. tooltip += '<br>';
  1395. var j = Math.min(thumbs.length, 9);
  1396. for (var i = 0; i < j; i++)
  1397. {
  1398. tooltip += '<img src="' + thumbs[i] + '" width="' + TOOLTIP_THUMBWIDTH + 'px">';
  1399. }
  1400. warlcTooltip.style.minWidth = TOOLTIP_MAXWIDTH;
  1401. }
  1402. }
  1403. link.warlc_tooltipcache = tooltip;
  1404. if (mouseoverLink == link.href) //mouse cursor is still over the link
  1405. {
  1406. warlcTooltip.innerHTML = tooltip;
  1407. }
  1408. }
  1409. });
  1410. }
  1411. }
  1412.  
  1413. function setVariables()
  1414. {
  1415. if (firstRun)
  1416. {
  1417. GM_log('First run, applying default settings...');
  1418. GM_setValue("Icon_set",1);
  1419. GM_setValue("Display_tooltip_info",true);
  1420. GM_setValue("Show_black_background_in_DL_links",false);
  1421. GM_setValue("Show_line_through_in_dead_links",false);
  1422. GM_setValue("Display_full_links_in_link_containers",false);
  1423. GM_setValue("Allow_spaces_in_DL_links",false);
  1424. GM_setValue("Autocheck",true);
  1425. GM_setValue("Enable_Anonymizer",false);
  1426. GM_setValue("Do_not_linkify_DL_links",false);
  1427. GM_setValue("Show_progress_stats",true);
  1428. GM_setValue("Keyboard_functions",true);
  1429. GM_setValue("Obsolete_file_hosts",false);
  1430. GM_setValue("Color_DL_links",true);
  1431. GM_setValue("Live_links_color","Green");
  1432. GM_setValue("Dead_links_color","#FF3300");
  1433. GM_setValue("Temp_unavailable_links_color","#F7EF09");
  1434. GM_setValue("Container_links_color","DarkKhaki");
  1435. GM_setValue("Premium_links_color","DeepPink");
  1436. GM_setValue("Ref_anonymize_service","http://hiderefer.com/?");
  1437. GM_setValue("Custom_rules",false);
  1438. GM_setValue("Custom_rules_text","");
  1439. GM_setValue("First_run", false);
  1440. }
  1441. //hidden settings
  1442. GM_setValue("Progress_box_pos_bottom", Progress_box_pos_bottom = GM_getValue("Progress_box_pos_bottom", 20));
  1443. GM_setValue("Progress_box_pos_right", Progress_box_pos_right = GM_getValue("Progress_box_pos_right", 10));
  1444. GM_setValue("Progress_box_opacity", Progress_box_opacity = GM_getValue("Progress_box_opacity", 85));
  1445. GM_setValue("Progress_box_background_color", Progress_box_background_color = GM_getValue("Progress_box_background_color", 'DimGray'));
  1446. GM_setValue("Progress_box_item_color", Progress_box_item_color = GM_getValue("Progress_box_item_color", 'DimGray'));
  1447. GM_setValue("Progress_box_refresh_rate", Progress_box_refresh_rate = GM_getValue("Progress_box_refresh_rate", 2000));
  1448. GM_setValue("Debug_mode", DEBUG_MODE = GM_getValue("Debug_mode", false));
  1449. //hidden settings end
  1450.  
  1451. Icon_set = GM_getValue("Icon_set", 1); //0 - no icons, 1 - cat paws, 2 - old RSLC style, 3 - New Icons,
  1452. Display_tooltip_info = GM_getValue("Display_tooltip_info", true);
  1453. Show_black_background_in_DL_links = GM_getValue("Show_black_background_in_DL_links", false);
  1454. Show_line_through_in_dead_links = GM_getValue("Show_line_through_in_dead_links", false);
  1455. Display_full_links_in_link_containers = GM_getValue("Display_full_links_in_link_containers", false);
  1456. Allow_spaces_in_DL_links = GM_getValue("Allow_spaces_in_DL_links", false);
  1457. Autocheck = GM_getValue("Autocheck", true);
  1458. Enable_Anonymizer = GM_getValue("Enable_Anonymizer", false);
  1459. Do_not_linkify_DL_links = GM_getValue("Do_not_linkify_DL_links", false);
  1460. Show_progress_stats = GM_getValue("Show_progress_stats", true);
  1461. Keyboard_functions = GM_getValue("Keyboard_functions", true);
  1462. Obsolete_file_hosts = GM_getValue("Obsolete_file_hosts", false);
  1463. Color_DL_links = GM_getValue("Color_DL_links", true);
  1464. Live_links_color = GM_getValue("Live_links_color", "Green");
  1465. Dead_links_color = GM_getValue("Dead_links_color", "#FF3300");
  1466. Temp_unavailable_links_color = GM_getValue("Temp_unavailable_links_color", "#F7EF09");
  1467. Container_links_color = GM_getValue("Container_links_color", "DarkKhaki");
  1468. Premium_links_color = GM_getValue("Premium_links_color", "DeepPink");
  1469. Ref_anonymize_service = GM_getValue("Ref_anonymize_service", "http://hiderefer.com/?");
  1470. Custom_rules = GM_getValue("Custom_rules", false);
  1471. Custom_rules_text = GM_getValue("Custom_rules_text", false);
  1472. }
  1473.  
  1474.  
  1475. // Delinkifies the links
  1476. // params:
  1477. // links -> list of links or link components (note they should be sufficiently unique to identify the link on page,
  1478. // e.g. 'uloz.to/xs68skxl8')
  1479. function delinkifySnapshot(snapshot)
  1480. {
  1481. var n = snapshot.snapshotLength;
  1482.  
  1483. while (n--)
  1484. {
  1485. thisLink = snapshot.snapshotItem(n);
  1486.  
  1487. var spanElm = document.createElement("span");
  1488. spanElm.className = thisLink.className;
  1489. spanElm.innerHTML = thisLink.innerHTML;
  1490.  
  1491. if (Display_tooltip_info)
  1492. {
  1493. spanElm.href = thisLink.href;
  1494. switch (thisLink.className){
  1495. case "alive_link": spanElm.addEventListener("mouseover", displayTooltipInfo, false); break
  1496. case "adead_link": spanElm.addEventListener("mouseover", displayTooltipError, false); break;
  1497. case "unava_link": //reserved
  1498. default:
  1499. }
  1500. }
  1501. thisLink.parentNode.replaceChild(spanElm, thisLink);
  1502. }
  1503. }
  1504.  
  1505. function processContainers()
  1506. {
  1507. var redirectorTypes = { "HTTP_302": 0,
  1508. "INNER_LINK": 1,
  1509. "THELOO_KATT_IT": 2,
  1510. "CING_BE": 3,
  1511. "ADF_LY": 4};
  1512. var cMultiloadTotal = 0;
  1513. var cMultiloadProcessed = 0;
  1514.  
  1515. var cMirrorcreatorComTotal = 0;
  1516. var cMirrorcreatorComProcessed = 0;
  1517.  
  1518. var hostRestrictionRegex = "";
  1519. var multiloadComRestriction = "";
  1520. var multiloadComRestrictionRegex;
  1521.  
  1522. //
  1523. //HANDLING REDIRECTORS START
  1524. //
  1525.  
  1526. var redirectors = new Array();
  1527. initRedirectors();
  1528.  
  1529. var redirectorsCount = redirectors.length;
  1530.  
  1531. if (redirectorsCount > 0)
  1532. {
  1533. var allRedirectorsRegex = "";
  1534.  
  1535. //linkify redirector links
  1536. for(var redirIdx = 0; redirIdx < redirectorsCount; redirIdx++)
  1537. {
  1538. allRedirectorsRegex += redirectors[redirIdx].linkRegex + "|";
  1539. }
  1540. allRedirectorsRegex = allRedirectorsRegex.replace(/\|$/, "");
  1541. linkify(allRedirectorsRegex);
  1542. //
  1543. //process redirector links
  1544. for(var redirIdx = 0; redirIdx < redirectorsCount; redirIdx++)
  1545. {
  1546. var redirectorsSnapshot = document.evaluate(redirectors[redirIdx].xpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  1547. redirectors[redirIdx].cTotal = redirectorsSnapshot.snapshotLength;
  1548.  
  1549. cLinksTotal += redirectors[redirIdx].cTotal;
  1550. var linkIdx = redirectors[redirIdx].cTotal;
  1551.  
  1552. while(linkIdx--)
  1553. {
  1554. switch(redirectors[redirIdx].type)
  1555. {
  1556. case redirectorTypes.HTTP_302: processRedirectorLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1557. case redirectorTypes.INNER_LINK: processRedirectorLinkEx(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1558. case redirectorTypes.THELOO_KATT_IT: processThelooKattItLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1559. case redirectorTypes.CING_BE: processCingBeLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1560. case redirectorTypes.ADF_LY: processAdfLyLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1561. default:
  1562. }
  1563. }
  1564. }
  1565. //
  1566. }
  1567.  
  1568. //HTTP_302
  1569. function processRedirectorLink(link, redirectorId)
  1570. {
  1571. link.className = 'container_link';
  1572.  
  1573. GM_xmlhttpRequest({
  1574. method: 'HEAD',
  1575. url: link.href,
  1576. headers: {
  1577. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1578. 'Accept': 'text/xml',
  1579. 'Referer': ""
  1580. },
  1581. onload: function(result) {
  1582. if (result.finalUrl.replace("https", "http") == link.href) // service hasn't redirected anywhere
  1583. {
  1584. processRedirectorLink(link, redirectorId);
  1585. }
  1586. else
  1587. {
  1588. redirectors[redirectorId].cProcessed++;
  1589. link.href = result.finalUrl;
  1590. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  1591. checkLinks('container_link');
  1592. }
  1593. },
  1594. onerror: function(result) { //probably caused by unresponsive filehosting
  1595. redirectors[redirectorId].cProcessed++;
  1596. link.className = 'unava_link';
  1597. cLinksProcessed++;
  1598. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  1599. checkLinks('container_link');
  1600. }
  1601. });
  1602. }
  1603. //INNER_LINK
  1604. function processRedirectorLinkEx(link, redirectorId)
  1605. {
  1606. link.className = 'container_link';
  1607. GM_xmlhttpRequest({
  1608. method: 'GET',
  1609. url: link.href,
  1610. headers: {
  1611. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1612. 'Accept': 'text/xml',
  1613. 'Referer': ""
  1614. },
  1615. onload: function(result) {
  1616. link.href = result.responseText.match(redirectors[redirectorId].innerLinkRegex)[1];
  1617. redirectors[redirectorId].cProcessed++;
  1618. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  1619. checkLinks('container_link');
  1620. }
  1621. });
  1622. }
  1623. //theloo.katt.it (wrapped safelinking.net)
  1624. function processThelooKattItLink(link, redirectorId)
  1625. {
  1626. link.className = 'container_link';
  1627. GM_xmlhttpRequest({
  1628. method: 'GET',
  1629. url: link.href,
  1630. headers: {
  1631. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1632. 'Accept': 'text/xml',
  1633. 'Referer': ""
  1634. },
  1635. onload: function(result) {
  1636. link.href = result.responseText.match(redirectors[redirectorId].innerLinkRegex)[1];
  1637. redirectors[redirectorId].cProcessed++;
  1638. //the inner links are safelinking.net links, so lets proceed with it
  1639. if (GM_getValue("Check_safelinking_dot_net_links", false))
  1640. {
  1641. processRedirectorLink(link, 0);
  1642. }
  1643. }
  1644. });
  1645. }
  1646. //adf.ly (adf.ly/go innerLink, locking mechanism)
  1647. function processAdfLyLink(link, redirectorId)
  1648. {
  1649. link.className = 'container_link';
  1650. GM_xmlhttpRequest({
  1651. method: 'GET',
  1652. url: link.href,
  1653. headers: {
  1654. 'User-agent': 'Mozilla/4.0',
  1655. 'Accept': 'text/xml',
  1656. 'Referer': ""
  1657. },
  1658. onload: function(result) {
  1659. if (result.finalUrl.match('/locked/'))
  1660. {
  1661. var delay = result.responseText.match(/countdown">(\d+)</)[1];
  1662. // GM_log(result.finalUrl + 'is locked. Repeating the request in ' + delay + 's.');
  1663. // setTimeout(function(){processAdfLyLink(link, redirectorId);}, delay * 1000);
  1664. }
  1665. else
  1666. {
  1667. // GM_log('Processing... ' + link.href);
  1668. // GM_log('Found...' + result.responseText.match(/\/go\/(\w+\/\w+)/)[1]);
  1669. var directLink = 'http://adf.ly' + result.responseText.match(/(\/go\/\w+\/\w+)/)[1];
  1670. var logToken = result.responseText.match(/flashy_(\w+)/)[1];
  1671. var users = result.responseText.match(/user=\d+&user2=\d+/);
  1672. //confirm advert
  1673. GM_xmlhttpRequest(
  1674. {
  1675. method: 'POST',
  1676. url: 'http://adf.ly/l.php',
  1677. headers: {
  1678. 'User-agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20100101 Firefox/13.0',
  1679. 'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
  1680. 'Referer': link.href
  1681. },
  1682. data: users + '&lt=' + logToken,
  1683. onload: function(result) {
  1684. //retrieve final url from .../go/... link
  1685. GM_xmlhttpRequest({
  1686. method: 'GET',
  1687. url: directLink,
  1688. headers: {
  1689. 'User-agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20100101 Firefox/13.0',
  1690. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  1691. 'Referer': link.href
  1692. },
  1693. onload: function(result) {
  1694. link.href = result.finalUrl;
  1695. redirectors[redirectorId].cProcessed++;
  1696. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  1697. checkLinks('container_link');
  1698. }
  1699. });
  1700. }
  1701. });
  1702. }
  1703. }
  1704. });
  1705. function proceedOK()
  1706. {
  1707. }
  1708. }
  1709. //MULTILOAD.CZ START
  1710. if (GM_getValue("Check_multiload_dot_cz_links", false))
  1711. {
  1712. var mlRegex = 'multiload\\.cz\/stahnout\/\\d+\/';
  1713. var mlXpath = "//a[contains(@href,'http://www.multiload.cz/stahnout')]";
  1714.  
  1715. hostRestrictionRegex = 'Upload se nezdařil|limit exceeded|probíhá reupload|';
  1716.  
  1717. if (GM_getValue("Check_hellshare_dot_com_links", false))
  1718. hostRestrictionRegex += 'hellshare|';
  1719. if (GM_getValue("Check_share_dash_rapid_dot_com_links", false))
  1720. hostRestrictionRegex += 'share-rapid\\.com|';
  1721. if (GM_getValue("Check_quickshare_dot_cz_links", false))
  1722. hostRestrictionRegex += 'quickshare\\.cz|';
  1723. if (GM_getValue("Check_czshare_dot_com_links", false))
  1724. hostRestrictionRegex += 'czshare\\.com|';
  1725. if (GM_getValue("Check_uloz_dot_to_links", false))
  1726. hostRestrictionRegex += 'uloz\\.to|';
  1727. if (GM_getValue("Check_hellspy_dot_com_links", false))
  1728. hostRestrictionRegex += 'hellspy|';
  1729. if (GM_getValue("Check_multishare_dot_cz_links", false))
  1730. hostRestrictionRegex += 'multishare\\.cz|';
  1731.  
  1732. hostRestrictionRegex = hostRestrictionRegex.replace(/\|$/, "");
  1733.  
  1734. linkify(mlRegex);
  1735.  
  1736. var mlSnapshot = document.evaluate(mlXpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  1737. var mlCount = mlSnapshot.snapshotLength;
  1738.  
  1739. if (mlCount > 0)
  1740. {
  1741. cMultiloadTotal += mlCount;
  1742.  
  1743. mlIdx = mlCount - 1;
  1744. do
  1745. {
  1746. processMultiloadLink(mlSnapshot.snapshotItem(mlIdx));
  1747. }
  1748. while(mlIdx--)
  1749. }
  1750. }
  1751. //MULTILOAD.CZ END
  1752.  
  1753.  
  1754.  
  1755. function processMultiloadLink(mlLink)
  1756. {
  1757. GM_xmlhttpRequest({
  1758. method: 'GET',
  1759. url: mlLink.href,
  1760. headers: {
  1761. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1762. 'Accept': 'text/xml',
  1763. 'Referer': ""
  1764. },
  1765. onload: function(result) {
  1766. var res = result.responseText;
  1767.  
  1768. var innerBlockRegex = /<p class="manager-linky">(?:.|\s)+?<\/p>/g;
  1769. 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;
  1770. var innerLinkRegex = /((?:Upload se nezdařil.+|https?:\/\/(?:.|\s)+|Právě probíhá reupload, buďte trpěliví\.\.\.))</;
  1771. var mlRestrictionRegex = new RegExp(hostRestrictionRegex,"g"); //what links should be displayed
  1772.  
  1773. var blocks; // blocks of links
  1774. var blockIdx;
  1775.  
  1776. mlLink.className = '';
  1777.  
  1778. if (result.status == 503) //service temporarily unavailable, repeat request in one second
  1779. {
  1780. setTimeout(function(){ processMultiloadLink(mlLink); }, 1000);
  1781. return;
  1782. }
  1783.  
  1784. blocks = res.match(innerBlockRegex);
  1785.  
  1786. if (blocks == null) //no links found, cancel further processing
  1787. {
  1788. mlLink.parentNode.appendChild(document.createTextNode(' | Požadovaný soubor neexistuje.'));
  1789. cMultiloadProcessed++;
  1790. if (cMultiloadTotal <= cMultiloadProcessed)
  1791. {
  1792. startBulkCheck('container_link');
  1793. start('container_link');
  1794. }
  1795. return;
  1796. }
  1797.  
  1798. blockIdx = blocks.length;
  1799.  
  1800. if (Display_full_links_in_link_containers)
  1801. {
  1802. var ulElm = document.createElement('ul');
  1803. ulElm.className = 'container_list'; //CSS smaller font, padding, margin, square style
  1804.  
  1805. while(blockIdx--)
  1806. {
  1807. if (blocks[blockIdx].match(mlRestrictionRegex) == null)
  1808. {
  1809. continue;
  1810. }
  1811.  
  1812. var innerLinks = blocks[blockIdx].match(innerLinksRegex);
  1813.  
  1814. var linkIdx = innerLinks.length;
  1815. while (linkIdx--)
  1816. {
  1817. var innerLink = innerLinks[linkIdx].match(innerLinkRegex)[1];
  1818.  
  1819. var liElm = document.createElement('li');
  1820.  
  1821. if (innerLink.match(/Upload se nezdařil|limit exceeded|probíhá reupload/))
  1822. {
  1823. liElm.appendChild(document.createTextNode(innerLink));
  1824. }
  1825. else
  1826. {
  1827. var aElm = document.createElement('a');
  1828. aElm.innerHTML = innerLink;
  1829. aElm.href = innerLink;
  1830. aElm.className = 'container_link';
  1831.  
  1832. liElm.appendChild(aElm);
  1833. }
  1834.  
  1835. ulElm.appendChild(liElm);
  1836. cLinksTotal++;
  1837. }
  1838. }
  1839.  
  1840. mlLink.parentNode.appendChild(ulElm);
  1841. }
  1842. else //compact view
  1843. {
  1844. mlLink.parentNode.appendChild(document.createTextNode("|"));
  1845.  
  1846. while(blockIdx--)
  1847. {
  1848. if (blocks[blockIdx].match(mlRestrictionRegex) == null)
  1849. {
  1850. continue;
  1851. }
  1852.  
  1853. var innerLinks = blocks[blockIdx].match(innerLinksRegex);
  1854.  
  1855. var linkIdx = innerLinks.length;
  1856. while (linkIdx--)
  1857. {
  1858. var innerLink = innerLinks[linkIdx].match(innerLinkRegex)[1];
  1859.  
  1860. if (innerLink.match(/Upload se nezdařil|limit exceeded|probíhá reupload/))
  1861. {
  1862. mlLink.parentNode.appendChild(document.createTextNode("----"));
  1863. }
  1864. else
  1865. {
  1866. var aElm = document.createElement('a');
  1867.  
  1868. var hostName = innerLink.match(/quickshare|hellshare|uloz\.to|multishare|hellspy|share\-rapid|czshare/);
  1869.  
  1870. //abbreviate host name
  1871. switch(hostName + ""){
  1872.  
  1873. case 'quickshare': aElm.innerHTML = 'QS'; break;
  1874. case 'hellshare': aElm.innerHTML = 'HS'; break;
  1875. case 'uloz.to': aElm.innerHTML = 'UT'; break;
  1876. case 'multishare': aElm.innerHTML = 'MS'; break;
  1877. case 'hellspy': aElm.innerHTML = 'hs'; break;
  1878. case 'share-rapid': aElm.innerHTML = 'SR'; break;
  1879. case 'czshare': aElm.innerHTML = 'CS'; break;
  1880. default: aElm.innerHTML = 'xx';
  1881.  
  1882. }
  1883.  
  1884. aElm.href = innerLink;
  1885. aElm.className = 'container_link';
  1886.  
  1887. mlLink.parentNode.appendChild(aElm);
  1888. cLinksTotal++;
  1889. }
  1890. }
  1891.  
  1892. mlLink.parentNode.appendChild(document.createTextNode("|")); //blocks delimiter
  1893.  
  1894. }
  1895. }
  1896.  
  1897. cMultiloadProcessed++;
  1898. if (cMultiloadTotal == cMultiloadProcessed) //start check when all ml links have been processed
  1899. {
  1900. if (Do_not_linkify_DL_links)
  1901. {
  1902. delinkifySnapshot(mlSnapshot);
  1903. }
  1904. startBulkCheck('container_link');
  1905. start('container_link');
  1906. }
  1907. }
  1908. });
  1909. }
  1910.  
  1911.  
  1912. if (GM_getValue("Check_mirrorcreator_dot_com_links", false))
  1913. {
  1914. var mcRegex = 'mirrorcreator\\.com/files/(\\w+)';
  1915. var mcXpath = "//a[contains(@href,'mirrorcreator.com/files')]";
  1916. var mcShortHostNames =
  1917. '?? 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';
  1918. // 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
  1919. //?????? depositfiles sendspace load.to ul.to storage.to uploadbox x7.to fileserve ?????? duckload filehook filepost jumbofiles glumbouploads
  1920. // zshare ?????? 2shared uploading ugotfile extabit oron eyvx uploadstation putlocker
  1921. // megaupload badongo megashare gamefront ifile ?????? letitbit ?????? ?????? filejungle megashares
  1922. // easy-share ?????? netload zippyshare ?????? filesonic turbobit enterupload ?????? filekeen wupload crocko fileflyer
  1923.  
  1924. linkify(mcRegex);
  1925.  
  1926. var mcSnapshot = document.evaluate(mcXpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  1927. var mcCount = mcSnapshot.snapshotLength;
  1928.  
  1929. cMirrorcreatorComTotal = mcCount;
  1930.  
  1931. if (mcCount > 0)
  1932. {
  1933. mcShortHostNames = mcShortHostNames.split(' ');
  1934. mcIdx = mcCount;
  1935. while(mcIdx--)
  1936. processMirrorcreatorLink(mcSnapshot.snapshotItem(mcIdx));
  1937. }
  1938.  
  1939. }
  1940. //MIRRORCREATOR.CZ END
  1941.  
  1942.  
  1943. //mirrorcreator.com checking works like this:
  1944. //The base URL is http://www.mirrorcreator.com/files/XXXXXXXX/filename_links
  1945. //the actual list of mirrors is at http://www.mirrorcreator.com/status.php?uid=XXXXXXXX
  1946. //the list contains links in the form of (http://www.mirrorcreator.com)/redirect/XXXXXXXX/1
  1947. //these redirector links are extracted with mcLinkBlockRegex and the pages loaded
  1948. //they contain the actual filehost links, which are extracted with mcHostRegex and displayed in a container list
  1949. function processMirrorcreatorLink(mcLink)
  1950. {
  1951. var mcURL = mcLink.href.match(mcRegex);
  1952. if(!mcURL || !mcURL[1]) return;
  1953. mcURL = 'http://www.mirrorcreator.com/status.php?uid=' + mcURL[1]; //link correction
  1954. GM_xmlhttpRequest({
  1955. method: 'GET',
  1956. url: mcURL,
  1957. headers: {
  1958. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1959. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*'+'/*;q=0.8',
  1960. 'Referer': ""
  1961. },
  1962. onload: function(mcLinkResult) {
  1963. var mcLinkRes = mcLinkResult.responseText;
  1964.  
  1965. var mcLinkBlockRegex = /(\/redirect\/\w+\/(\d+))/gi;
  1966. var mcHostRegex = /<div id="redirectlink">.*?<a href="([^"]+)"/;
  1967.  
  1968. var mcRedirectors;
  1969. var mcHostURLs = [], mcRedirectorIDs = [], mcHostsFound = 0, mcHostsRetrieved = 0, mcHostsToProcess = 0;
  1970. var m = mcLinkRes.match(mcLinkBlockRegex);
  1971. if (m)
  1972. mcHostsFound = m.length;
  1973. else
  1974. { //no files inside container
  1975. processMirrorcreatorFoundHosts(mcLink, []);
  1976. return;
  1977. }
  1978.  
  1979. var mcRedirectorURL, idx, timedOut = false;
  1980.  
  1981. var gmxhrFunc = function(mcRedirectorURL){ //Tampermonkey doesn't know neither this.url or result.finalUrl
  1982. GM_xmlhttpRequest({
  1983. method: 'GET',
  1984. url: mcRedirectorURL,
  1985. headers: {
  1986. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1987. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*'+'/*;q=0.8',
  1988. 'Referer': ""
  1989. },
  1990. onload: function(mcHostResult) {
  1991. if (timedOut) return; //too late, the list is already displayed
  1992. var mcHostRes = mcHostResult.responseText;
  1993. var mcHost = mcHostRes.match(mcHostRegex);
  1994. idx = mcHostURLs.indexOf(mcRedirectorURL);
  1995. if (mcHost && idx!=-1)
  1996. {
  1997. mcHostURLs[idx] = mcHost[1].replace(/^\s+|\s+$/g, '');
  1998. mcHostsRetrieved++;
  1999. mcHostsToProcess++;
  2000. if (mcHostsFound == mcHostsRetrieved) //this is the last one!
  2001. {
  2002. processMirrorcreatorFoundHosts(mcLink, mcHostURLs, mcRedirectorIDs);
  2003. mcHostsToProcess = 0;
  2004. }
  2005. }
  2006. } //end of onload: function
  2007. }); //end of GM_xmlhttpRequest call
  2008. };//end of var gmxhrFunc
  2009.  
  2010. while (mcRedirectors = mcLinkBlockRegex.exec(mcLinkRes))
  2011. { //load individual redirector pages
  2012. mcRedirectorURL = 'http://www.mirrorcreator.com' + mcRedirectors[1];
  2013. mcHostURLs.push(mcRedirectorURL);
  2014. mcRedirectorIDs.push(mcRedirectors[2]);
  2015. gmxhrFunc(mcRedirectorURL);
  2016. } //end of while block
  2017.  
  2018. setTimeout(function(){ //in case the last page fails to load and call the function
  2019. timedOut = true;
  2020. if (mcHostsToProcess)
  2021. processMirrorcreatorFoundHosts(mcLink, mcHostURLs);
  2022. }, 60000);
  2023.  
  2024. } //end of onload function
  2025. }); //end of GM_xmlhttpRequest call
  2026. } //end of function processMirrorcreatorLink
  2027.  
  2028.  
  2029. function processMirrorcreatorFoundHosts(mcLink, mcHostURLs, mcRedirectorIDs)
  2030. {
  2031. var aEl, liEl, docFrag;
  2032. var hostName, mcRedirectorID, trimFilename = false;
  2033. var i = mcHostURLs.length;
  2034. if (i == 0)
  2035. {
  2036. trimFilename = true;
  2037. mcLink.parentNode.insertBefore(document.createTextNode(' | No files inside container'), mcLink.nextSibling);
  2038. }
  2039. else
  2040. {
  2041. if (Display_full_links_in_link_containers)
  2042. { //full view
  2043. var wrapperEl = document.createElement('span');
  2044. wrapperEl.style.display = 'block';
  2045. var ulistEl = document.createElement('ul');
  2046. ulistEl.className = 'container_list';
  2047. while (i--)
  2048. {
  2049. liEl = document.createElement('li');
  2050. aEl = document.createElement('a');
  2051. aEl.appendChild(document.createTextNode(mcHostURLs[i]));
  2052. aEl.href = mcHostURLs[i];
  2053. aEl.className = 'container_link';
  2054. liEl.appendChild(aEl);
  2055. ulistEl.appendChild(liEl);
  2056. }
  2057. wrapperEl.appendChild(ulistEl);
  2058. mcLink.parentNode.replaceChild(wrapperEl, mcLink);
  2059. wrapperEl.insertBefore(mcLink, wrapperEl.firstChild);
  2060. }
  2061. else
  2062. { //compact view
  2063. trimFilename = true;
  2064. docFrag = document.createDocumentFragment();
  2065. docFrag.appendChild(document.createTextNode(' |'));
  2066. while (i--)
  2067. {
  2068. mcRedirectorID = mcRedirectorIDs[i];
  2069. hostName = mcHostURLs[i];
  2070. if (mcRedirectorID > mcShortHostNames.length-1 || mcShortHostNames[mcRedirectorID] == '??')
  2071. hostName = hostName.replace(/https?:\/\/(?:www\.)?([-0-9a-z]+(?:\.[-0-9a-z]+)?)\.[a-z]+\/.*/i, '$1').toUpperCase();
  2072. else
  2073. hostName = mcShortHostNames[mcRedirectorID];
  2074. aEl = document.createElement('a');
  2075. aEl.href = mcHostURLs[i];
  2076. aEl.className = 'container_link';
  2077. aEl.appendChild(document.createTextNode(hostName));
  2078. docFrag.appendChild(aEl);
  2079. docFrag.appendChild(document.createTextNode('|'));
  2080. }
  2081. mcLink.parentNode.insertBefore(docFrag, mcLink.nextSibling);
  2082. } //end of else block
  2083. } //end of else block
  2084. mcLink.className = '';
  2085. if (trimFilename)
  2086. mcLink.firstChild.nodeValue = mcLink.firstChild.nodeValue.replace(/(https?:\/\/[^\/]+\/files\/\w+\/).+/, '$1...');
  2087. cMirrorcreatorComProcessed++;
  2088. if (cMirrorcreatorComProcessed == cMirrorcreatorComTotal) //start check when all mc links have been processed
  2089. {
  2090. if (Do_not_linkify_DL_links)
  2091. delinkifySnapshot(mcSnapshot);
  2092. startBulkCheck('container_link');
  2093. start('container_link');
  2094. }
  2095. } //end of function processMirrorcreatorFoundHosts
  2096.  
  2097. containers_processed = true;
  2098.  
  2099.  
  2100. function initRedirectors()
  2101. {
  2102. function addRedirector(linkRegex, xpathEx, redirType, innerLinkRegex)
  2103. {
  2104. var redirector = new Object();
  2105. redirector.linkRegex = linkRegex;
  2106. redirector.xpath = xpathEx; //xpath expression
  2107. redirector.cProcessed = 0; //processed links count
  2108. redirector.cTotal = 0; //total links count
  2109. redirector.type = redirType; //redirectorTypes enum
  2110. redirector.innerLinkRegex = innerLinkRegex; //innerLink, null if unused
  2111. redirectors.push(redirector);
  2112. }
  2113. if (GM_getValue("Check_safelinking_dot_net_links", false))
  2114. {
  2115. addRedirector(
  2116. 'safelinking\\.net\/d\/\\w+',
  2117. "//a[contains(@href,'safelinking.net/d/')]",
  2118. redirectorTypes.HTTP_302,
  2119. null);
  2120. }
  2121. if (GM_getValue("Check_linksafe_dot_me_links", false))
  2122. {
  2123. addRedirector(
  2124. 'linksafe\\.me\/d\/\\w+',
  2125. "//a[contains(@href,'linksafe.me/d/')]",
  2126. redirectorTypes.HTTP_302,
  2127. null);
  2128. }
  2129. if (GM_getValue("Check_linkto_dot_net_links", false))
  2130. {
  2131. addRedirector(
  2132. 'linkto\\.net\/\\?\\w+\\.\\d+',
  2133. "//a[contains(@href,'linkto.net/?')]",
  2134. redirectorTypes.INNER_LINK,
  2135. /<iframe id="iframe" name="iframe" src="(.+?)\s*" frameborder="0"/);
  2136. }
  2137. if (GM_getValue("Check_theloo_dot_katt_dot_it_links", false))
  2138. {
  2139. addRedirector(
  2140. '(?:the)?loo\\.katt\\.it\/\\w+',
  2141. "//a[contains(@href,'loo.katt.it/')]",
  2142. redirectorTypes.THELOO_KATT_IT,
  2143. /Proceed to URL - <a href="(.+?)">/);
  2144. }
  2145. if (GM_getValue("Check_madlink_dot_sk_links", false))
  2146. {
  2147. addRedirector(
  2148. 'madlink\\.sk\/\\w+',
  2149. "//a[contains(@href,'madlink.sk/')]",
  2150. redirectorTypes.INNER_LINK,
  2151. /name="url" value="(.+?)\s*"\/>/);
  2152. }
  2153. if (GM_getValue("Check_adf_dot_ly_links", false))
  2154. {
  2155. addRedirector(
  2156. '(?:adf\\.ly|[u9]\\.bb|[qj]\\.gs)\/\\w+',
  2157. "//a[contains(@href,'adf.ly/') (@href,'u.bb/') or contains(@href,'9.bb/') or contains(@href,'q.gs/') or contains(@href,'j.gs/')]",
  2158. redirectorTypes.ADF_LY,
  2159. null);
  2160. }
  2161. if (GM_getValue("Check_redi_dot_re_links", false))
  2162. {
  2163. addRedirector(
  2164. 'redi\\.re\/\\w+',
  2165. "//a[contains(@href,'redi.re/')]",
  2166. redirectorTypes.HTTP_302,
  2167. null);
  2168. }
  2169. if (GM_getValue("Check_bit_dot_ly_links", false))
  2170. {
  2171. addRedirector(
  2172. 'bit\\.ly\/\\w+',
  2173. "//a[contains(@href,'bit.ly/')]",
  2174. redirectorTypes.HTTP_302,
  2175. null);
  2176. }
  2177. }
  2178.  
  2179. }
  2180.  
  2181. var bulkHosts = new Array();
  2182. var bulkHostNames = new Array();
  2183. function initBulkCheck()
  2184. {
  2185. /////////////////////////////
  2186. // Inits filehost object
  2187. /////////////////////////////
  2188. // params :
  2189. // hostName -- [string] host name (multiple domains separated with coma)
  2190. // linkRegex -- [string] link regex
  2191. // xpath -- [string] xpath expression to detect the link objects with evaluate
  2192. // blockSize -- [integer] max. number of links sent in one request, 50 if null
  2193. // corrMatch -- [regex] link correction regex (match), applied prior to corrRepl
  2194. // corrReplWhat -- [regex] link correction regex (replace)
  2195. // corrReplWith -- [string]
  2196. // splitSeparator -- [string] POSTDATA links separator, "\r\n" if null
  2197. //
  2198. // apiUrl -- [string] web linkchecker or API URL
  2199. // postData -- [string] POSTDATA of xmlhttprequest
  2200. // resLinkRegex -- [regex]
  2201. // resLiveRegex -- [regex] matches substrings containing live links in the request response
  2202. // resDeadRegex -- [regex] matches substrings containing dead links in the request response
  2203. // resUnavaRegex -- [regex] matches substrings containing unava links in the request response
  2204. // func -- [function] bulkcheck handler, genBulkCheck if null
  2205. //
  2206. //////////////////////////////
  2207. function addHost(hostName, linkRegex, xpath, blockSize, corrMatch, corrReplWhat, corrReplWith, splitSeparator,
  2208. apiUrl, postData, resLinkRegex, resLiveRegex, resDeadRegex, resUnavaRegex, func)
  2209. {
  2210. var fileHost = new Object();
  2211.  
  2212. fileHost.linkRegex = linkRegex;
  2213. fileHost.linkRegexObject = new RegExp(linkRegex, "");
  2214. fileHost.xpath = xpath;
  2215. fileHost.cFound = 0; //found links counter
  2216. fileHost.links = new Array(); //found links
  2217. if (blockSize == null)
  2218. {
  2219. fileHost.blockSize = 50;
  2220. }
  2221. else
  2222. {
  2223. fileHost.blockSize = blockSize;
  2224. }
  2225. fileHost.corrMatch = corrMatch;
  2226. fileHost.corrReplWhat = corrReplWhat;
  2227. fileHost.corrReplWith = corrReplWith;
  2228. if (splitSeparator == null)
  2229. {
  2230. fileHost.splitSeparator = "\r\n";
  2231. }
  2232. else
  2233. {
  2234. fileHost.splitSeparator = splitSeparator;
  2235. }
  2236. fileHost.apiUrl = apiUrl;
  2237. fileHost.postData = postData;
  2238. fileHost.resLinkRegex = resLinkRegex;
  2239. fileHost.resLiveRegex = resLiveRegex;
  2240. fileHost.resDeadRegex = resDeadRegex;
  2241. fileHost.resUnavaRegex = resUnavaRegex;
  2242. if (func == null)
  2243. {
  2244. fileHost.func = genBulkCheck;
  2245. }
  2246. else
  2247. {
  2248. fileHost.func = func;
  2249. }
  2250. bulkHosts.push(fileHost);
  2251. var names = hostName.split(',');
  2252. var i = names.length;
  2253. while(i--)
  2254. {
  2255. bulkHostNames[names[i]] = fileHost;
  2256. }
  2257. }
  2258. var genType1 = [
  2259. "rodfile.com", "downloadani.me", //"migahost.com",
  2260. "rarefile.net",
  2261. "filesabc.com",
  2262. "180upload.com", "verzend.be",
  2263. // "movreel.com",
  2264. "4up.me",
  2265. "file4safe.com", "filemac.com", "4upfiles.com",
  2266. "idup.in", "novafile.com", "longfiles.com",
  2267. "bitupload.com",
  2268. "uploadbaz.com"
  2269. ];
  2270. var genType2 = [ "queenshare.com",
  2271. "hulkload.com",
  2272. "amonshare.com", //"edoc.com",
  2273. ];
  2274. //xfilesharing 1.0
  2275. function addGenericType1()
  2276. {
  2277. var i = genType1.length;
  2278. while(i--)
  2279. {
  2280. if (GM_getValue("Check_" + genType1[i].replace(/\./g, "_dot_").replace(/-/g, "_dash_") + "_links", false))
  2281. {
  2282. var regexSafe = genType1[i].replace(/\./g, "\\.").replace(/-/g, "\\-");
  2283. addHost(
  2284. genType1[i].match(/[\w-]+/)[0], //hostname
  2285. regexSafe + "\/\\w+", //linkregex
  2286. "//a[contains(@href,'" + genType1[i] + "/')]", //xpath
  2287. null, //blocksize
  2288. new RegExp("(http:\/\/(?:|www\\.)" + regexSafe + "\/\\w+)",""),//, //corrmatch
  2289. null, //corrreplwhat
  2290. null, //corrreplwith
  2291. null, //separator
  2292. "http://" + genType1[i] + "/checkfiles.html", //api url
  2293. "op=checkfiles&process=Check+URLs&list=", //postdata
  2294. new RegExp("(" + regexSafe + "\/\\w+)",""), //linkregex
  2295. new RegExp("green'>http:\/\/(?:|www\.)" + regexSafe + "\/\\w+","g"), //liveregex
  2296. new RegExp("red'>http:\/\/(?:|www\.)" + regexSafe + "\/\\w+","g"), //deadregex
  2297. new RegExp("orange'>http:\/\/(?:|www\.)" + regexSafe + "\/\\w+","g"), //unavaregex
  2298. null //function delegate
  2299. )
  2300. }
  2301. }
  2302. }
  2303. //xfilesharing 2.0
  2304. function addGenericType2()
  2305. {
  2306. var i = genType2.length;
  2307. while(i--)
  2308. {
  2309. if (GM_getValue("Check_" + genType2[i].replace(/\./g, "_dot_").replace(/-/g, "_dash_") + "_links", false))
  2310. {
  2311. var regexSafe = genType2[i].replace(/\./g, "\\.").replace(/-/g, "\\-");
  2312. addHost(
  2313. genType2[i].match(/[\w-]+/)[0], //hostname
  2314. regexSafe + "\/\\w+", //linkregex
  2315. "//a[contains(@href,'" + genType2[i] + "/')]", //xpath
  2316. null, //blocksize
  2317. new RegExp("(http:\/\/(?:|www\\.)" + regexSafe + "\/\\w+)",""),//, //corrmatch
  2318. null, //corrreplwhat
  2319. null, //corrreplwith
  2320. null, //separator
  2321. "http://www." + genType2[i] + "/?op=checkfiles", //api url
  2322. "op=checkfiles&process=Check+URLs&list=", //postdata
  2323. new RegExp("(" + regexSafe + "\/\\w+)",""), //linkregex
  2324. new RegExp(regexSafe + "\/\\w+.*?<\/td>\\s*<td style=\"color:green;\">","g"), //liveregex
  2325. new RegExp(regexSafe + "\/\\w+.*?<\/td>\\s*<td style=\"color:red;\">","g"), //deadregex
  2326. new RegExp(regexSafe + "\/\\w+.*?<\/td>\\s*<td style=\"color:orange;\">","g"), //unavaregex
  2327. null //function delegate
  2328. )
  2329. }
  2330. }
  2331. }
  2332. // TEMPLATE
  2333. // if (GM_getValue("Check__dot_com_links", false))
  2334. // {
  2335. // addHost(
  2336. // "", //hostname
  2337. // "", //linkregex
  2338. // "//a[contains(@href,'.com/')]", //xpath
  2339. // null, //blocksize
  2340. // null, //corrmatch
  2341. // null, //corrreplwhat
  2342. // null, //corrreplwith
  2343. // null, //separator
  2344. // "", //api url
  2345. // "", //postdata
  2346. // /()/, //linkregex
  2347. // //liveregex
  2348. // //deadregex
  2349. // //unavaregex
  2350. // null //function delegate
  2351. // )
  2352. // }
  2353. addGenericType1();
  2354. addGenericType2();
  2355.  
  2356. if (GM_getValue("Check_myvdrive_dot_com_links", false))
  2357. {
  2358. addHost(
  2359. "myvdrive,fileserving", //hostname
  2360. "(?:fileserving|myvdrive)\\.com\/files\/[\\w-]+", //linkregex
  2361. "//a[contains(@href,'fileserving.com/files') or contains(@href,'myvdrive.com/files')]", //xpath
  2362. null, //blocksize
  2363. null, //corrmatch
  2364. null, //corrreplwhat
  2365. null, //corrreplwith
  2366. null, //separator
  2367. "http://www.myvdrive.com/Public/linkchecker#", //api url
  2368. "links=", //postdata
  2369. /(?:fileserving|myvdrive)\.com\/(files\/\w+)/, //linkregex
  2370. /icon_file_check_valid"><\/span>\s*http:\/\/www\.(?:fileserving|myvdrive)\.com\/files\/[\w-]+/g, //liveregex
  2371. /icon_file_check_(?:removed|notvalid)"><\/span>\s*http:\/\/www\.(?:fileserving|myvdrive)\.com\/files\/[\w-]+/g, //deadregex
  2372. null, //unavaregex
  2373. null //function delegate
  2374. )
  2375. }
  2376. if (GM_getValue("Check_hackerbox_dot_org_links", false))
  2377. {
  2378. addHost(
  2379. "hackerbox", //hostname
  2380. "host\\.hackerbox\\.org\/\\w+", //linkregex
  2381. "//a[contains(@href,'host.hackerbox.org/')]", //xpath
  2382. null, //blocksize
  2383. /(http:\/\/host\.hackerbox\.org\/\w+)/, //corrmatch
  2384. null, //corrreplwhat
  2385. null, //corrreplwith
  2386. null, //separator
  2387. "http://host.hackerbox.org/checkfiles.html", //api url
  2388. "op=checkfiles&process=Check+URLs&list=", //postdata
  2389. /(host\.hackerbox\.org\/\w+)/, //linkregex
  2390. /green'>http:\/\/host\.hackerbox\.org\/\w+/g, //liveregex
  2391. /red'>http:\/\/host\.hackerbox\.org\/\w+/g, //deadregex
  2392. /orange'>http:\/\/host\.hackerbox\.org\/\w+/g, //unavaregex
  2393. null //function delegate
  2394. )
  2395. }
  2396. if (GM_getValue("Check_hellshare_dot_com_links", false))
  2397. {
  2398. addHost(
  2399. "hellshare", //hostname
  2400. "(?:|download\\.(?:cz\\.|en\\.|sk\\.|)|www\\.)hellshare\\.(?:com|sk|cz|pl|hu|COM|SK|CZ|PL|HU)\/[\\w-\\.]+\/(?:[\\w-\\.]+\/|)\\d{5,}", //linkregex
  2401. "//a[contains(@href,'hellshare.')]", //xpath
  2402. 48, //blocksize
  2403. null, //corrmatch
  2404. null, //corrreplwhat
  2405. null, //corrreplwith
  2406. null, //separator
  2407. null, //api url
  2408. null, //postdata
  2409. null, //linkregex
  2410. null, //liveregex
  2411. null, //deadregex
  2412. null, //unavaregex
  2413. hellshareBulkCheck //function delegate
  2414. )
  2415. }
  2416. if (GM_getValue("Check_ncrypt_dot_in_links", false))
  2417. {
  2418. addHost(
  2419. "ncrypt", //hostname
  2420. "ncrypt\\.in\/folder\\-\\w+", //linkregex
  2421. "//a[contains(@href,'ncrypt.in/folder')]", //xpath
  2422. 100000, //blocksize
  2423. null, //corrmatch
  2424. null, //corrreplwhat
  2425. null, //corrreplwith
  2426. null, //separator
  2427. null,
  2428. null,
  2429. null,
  2430. null,
  2431. null,
  2432. null,
  2433. ncryptBulkCheck //function delegate
  2434. )
  2435. }
  2436. if (GM_getValue("Check_geupload_dot_com_links", false))
  2437. {
  2438. addHost(
  2439. "geupload,lenfile", //hostname
  2440. "(?:geupload\\.com|lenfile\\.com)\/\\w+", //linkregex
  2441. "//a[contains(@href,'geupload.com/') or contains(@href,'lenfile.com/')]", //xpath
  2442. null, //blocksize
  2443. null, //corrmatch
  2444. null, //corrreplwhat
  2445. null, //corrreplwith
  2446. "\n", //separator
  2447. 'http://geupload.com/?op=checkfiles',
  2448. 'op=checkfiles&process=Check+URLs&list=',
  2449. />http:\/\/(?:geupload|lenfile)\.com\/(\w+)/,
  2450. />http:\/\/(?:geupload|lenfile)\.com\/\w+(?:[^>]+>)<td style=\"color\:green/g,
  2451. />http:\/\/(?:geupload|lenfile)\.com\/\w+(?:[^>]+>)<td style=\"color\:red/g,
  2452. null,
  2453. null
  2454. )
  2455. }
  2456. if (GM_getValue("Check_uploadrocket_dot_net_links", false))
  2457. {
  2458. addHost(
  2459. "uploadrocket", //hostname
  2460. "(?:uploadrocket\\.net)\/\\w+", //linkregex
  2461. "//a[contains(@href,'uploadrocket.net/')]", //xpath
  2462. null, //blocksize
  2463. null, //corrmatch
  2464. null, //corrreplwhat
  2465. null, //corrreplwith
  2466. "\n", //separator
  2467. 'http://uploadrocket.net/?op=checkfiles',
  2468. 'op=checkfiles&process=Check+URLs&list=',
  2469. /uploadrocket.net\/(\w+)/,
  2470. />http:\/\/uploadrocket.net\/\w+(?:[^>]+>)<td style="color:green/g,
  2471. />http:\/\/uploadrocket.net\/\w+(?:[^>]+>)<td style="color:red/g,
  2472. null,
  2473. null //function delegate
  2474. )
  2475. }
  2476. if (GM_getValue("Check_k2s_dot_cc_links", false))
  2477. {
  2478. addHost(
  2479. "k2s,keep2s,keep2share",
  2480. "(?:(?:k2s\\.cc)|(?:keep2s\\.cc)|(?:keep2share\\.(?:cc|com)))\/file\/\\w+",
  2481. "//a[contains(@href,'k2s.cc/file/') or contains(@href,'keep2s.cc/file/') or contains(@href,'keep2share.cc/file/') or contains(@href,'keep2share.com/file/')]",
  2482. 100000, //blocksize
  2483. null, //corrmatch
  2484. null, //corrreplwhat
  2485. null, //corrreplwith
  2486. null, //separator
  2487. null,
  2488. null,
  2489. null,
  2490. null,
  2491. null,
  2492. null,
  2493. k2sBulkCheck //function delegate
  2494. )
  2495. }
  2496. if (GM_getValue("Check_fboom_dot_me_links", false))
  2497. {
  2498. addHost(
  2499. "fboom,fileboom",
  2500. "(?:(?:fboom\\.me)|(?:fileboom\\.me))\/file\/\\w+",
  2501. "//a[contains(@href,'fboom.me/file/') or contains(@href,'fileboom.me/file/')]",
  2502. 100000, //blocksize
  2503. null, //corrmatch
  2504. null, //corrreplwhat
  2505. null, //corrreplwith
  2506. null, //separator
  2507. null,
  2508. null,
  2509. null,
  2510. null,
  2511. null,
  2512. null,
  2513. fboomBulkCheck //function delegate
  2514. )
  2515. }
  2516. if (GM_getValue("Check_1fichier_dot_com_links", false))
  2517. {
  2518. addHost(
  2519. "1fichier,dl4free",
  2520. "(?:\\w{10}\\.(?:1fichier|dl4free)\\.com\/)|(?:(?:1fichier|dl4free)\\.com\/\\?\\w{10})|(?:www\\.)?\\w{6,}\\.1fichier\\.com",
  2521. "//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/?')]",
  2522. 100000, //blocksize
  2523. null, //corrmatch
  2524. null, //corrreplwhat
  2525. null, //corrreplwith
  2526. null, //separator
  2527. null,
  2528. null,
  2529. null,
  2530. null,
  2531. null,
  2532. null,
  2533. dl4free_1fichier_BulkCheck //function delegate
  2534. )
  2535. }
  2536. if (GM_getValue("Check_depositfiles_dot_com_links", false))
  2537. {
  2538. addHost(
  2539. "depositfiles,dfiles",
  2540. "(?:(?:depositfiles\\.(?:com|org|lt))|(?:dfiles\\.(?:ru|eu)))\/files\/|en/files\/\\w+",
  2541. "//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/')]",
  2542. 100000, //blocksize
  2543. null, //corrmatch
  2544. null, //corrreplwhat
  2545. null, //corrreplwith
  2546. null, //separator
  2547. null,
  2548. null,
  2549. null,
  2550. null,
  2551. null,
  2552. null,
  2553. depositfilesBulkCheck //function delegate
  2554. )
  2555. }
  2556. if (GM_getValue("Check_filepost_dot_com_links", false))
  2557. {
  2558. addHost(
  2559. "filepost,fp", //hostname
  2560. "(?:filepost\\.com\/files|fp\\.io)\/\\w+", //linkregex
  2561. "//a[contains(@href,'filepost.com/files/') or contains(@href,'fp.io/')]", //xpath
  2562. null, //blocksize
  2563. null, //corrmatch
  2564. null, //corrreplwhat
  2565. null, //corrreplwith
  2566. "\n", //separator
  2567. 'http://filepost.com/files/checker/?JsHttpRequest=0-xml',
  2568. 'urls=',
  2569. /\\\/files\\\/(\w+)/,
  2570. />http:\\\/\\\/filepost\.com\\\/files\\\/\w+(?:[^>]+>){5}(?:\\n|\\t)+<span class=\\"v\\"/g,
  2571. />http:\\\/\\\/filepost\.com\\\/files\\\/\w+(?:[^>]+>){5}(?:\\n|\\t)+<span class=\\"x\\"/g,
  2572. null,
  2573. null //function delegate
  2574. )
  2575. }
  2576. if (GM_getValue("Check_filesflash_dot_com_links", false))
  2577. {
  2578. addHost(
  2579. "filesflash", //hostname
  2580. "filesflash\\.com\/\\w+", //linkregex
  2581. "//a[contains(@href,'filesflash.com')]", //xpath
  2582. null, //blocksize
  2583. null, //corrmatch
  2584. /http:\/\//, //corrreplwhat
  2585. '', //corrreplwith
  2586. null, //separator
  2587. 'http://filesflash.com/checklinks.php',
  2588. 'submit=Go&links=',
  2589. /filesflash\.com\/(\w+)/,
  2590. /<td>filesflash\.com\/\w+<\/td>\s*<td>Available/g,
  2591. /<td>filesflash\.com\/\w+<\/td>\s*<td>(?:Invalid|Deleted|Expired|Banned)?<\/td>/g,
  2592. null,
  2593. null //function delegate
  2594. )
  2595. }
  2596. if (GM_getValue("Check_jumbofiles_dot_com_links", false))
  2597. {
  2598. addHost(
  2599. "jumbofiles", //hostname
  2600. "jumbofiles\\.com\/\\w+", //linkregex
  2601. "//a[contains(@href,'jumbofiles.com/')]", //xpath
  2602. null, //blocksize
  2603. /(http:\/\/(?:|www\.)jumbofiles\.com\/\w+)/, //corrmatch
  2604. null, //corrreplwhat
  2605. null, //corrreplwith
  2606. null, //separator
  2607. "http://jumbofiles.com/checkfiles.html", //api url
  2608. "op=checkfiles&process=Check+URLs&list=", //postdata
  2609. /(jumbofiles\.com\/\w+)/, //linkregex
  2610. /blue'>http:\/\/(?:|www\.)jumbofiles\.com\/\w+/g, //liveregex
  2611. /red'>http:\/\/(?:|www\.)jumbofiles\.com\/\w+/g, //deadregex
  2612. /orange'>http:\/\/(?:|www\.)jumbofiles\.com\/\w+/g, //unavaregex
  2613. null //function delegate
  2614. )
  2615. }
  2616. if (GM_getValue("Check_edisk_dot_cz_links", false))
  2617. {
  2618. addHost(
  2619. "edisk", //hostname
  2620. "(?:(?:muj|data)\\d*\\.|)edisk\\.(?:cz|sk|eu)\/(?:|(?:cz|sk|en|pl)\/)", //linkregex
  2621. "//a[contains(@href,'edisk.')]", //xpath
  2622. null, //blocksize
  2623. null, //corrmatch
  2624. /edisk\.\w{2}\/(?:|\w{2}\/)stahni/, //corrreplwhat
  2625. 'edisk.cz/stahni', //corrreplwith
  2626. null, //separator
  2627. 'http://www.edisk.cz/zkontrolovat-odkazy',
  2628. 'submitBtn=Zkontrolovat&checkFiles=',
  2629. /((?:download|stahn(?:i|out-soubor))\/\d+)/,
  2630. /"ano"\/>\s*<\/td>\s*<td>\s*http:\/\/.+/g,
  2631. /"ne"\/>\s*<\/td>\s*<td>\s*http:\/\/.+/g,
  2632. null,
  2633. null //function delegate
  2634. )
  2635. }
  2636. if (GM_getValue("Check_bezvadata_dot_cz_links", false))
  2637. {
  2638. GM_xmlhttpRequest( //age check skip
  2639. {
  2640. method: 'POST',
  2641. url: 'http://bezvadata.cz/vyhledavani/souhlas-zavadny-obsah',
  2642. headers: {
  2643. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  2644. 'Content-type': 'application/x-www-form-urlencoded',
  2645. 'Referer': ""
  2646. }
  2647. });
  2648. addHost(
  2649. "bezvadata", //hostname
  2650. "(?:beta\\.|)bezvadata\.cz\/stahnout\/\\d+\\w+", //linkregex
  2651. "//a[contains(@href,'bezvadata.cz')]", //xpath
  2652. null, //blocksize
  2653. null, //corrmatch
  2654. null, //corrreplwhat
  2655. null, //corrreplwith
  2656. null, //separator
  2657. 'http://bezvadata.cz/nastroje/kontrola-odkazu?do=kontrolaOdkazuForm-submit',
  2658. 'zkontrolovat=Zkontrolovat&odkazy=',
  2659. /(bezvadata\.cz\/stahnout\/\d+)/,
  2660. /bezvadata\.cz\/stahnout\/.+?<\/td>\s*<td style="background-color: #d9ffb2/g,
  2661. /bezvadata\.cz\/stahnout\/.+?<\/td>\s*<td style="background-color: #ffb2b2/g,
  2662. null,
  2663. null //function delegate
  2664. )
  2665. }
  2666. if (GM_getValue("Check_linkcrypt_dot_ws_links", false))
  2667. {
  2668. addHost(
  2669. "linkcrypt", //hostname
  2670. "linkcrypt\\.ws\/dir\/\\w+", //linkregex
  2671. "//a[contains(@href,'linkcrypt.ws/dir')]", //xpath
  2672. 100000, //blocksize
  2673. null, //corrmatch
  2674. null, //corrreplwhat
  2675. null, //corrreplwith
  2676. null, //separator
  2677. null,
  2678. null,
  2679. null,
  2680. null,
  2681. null,
  2682. null,
  2683. linkcryptBulkCheck //function delegate
  2684. )
  2685. }
  2686. if (GM_getValue("Check_linksave_dot_in_links", false))
  2687. {
  2688. addHost(
  2689. "linksave", //hostname
  2690. "linksave\\.in\/\\w+", //linkregex
  2691. "//a[contains(@href,'linksave.in')]", //xpath
  2692. 100000, //blocksize
  2693. null, //corrmatch
  2694. null, //corrreplwhat
  2695. null, //corrreplwith
  2696. null, //separator
  2697. null,
  2698. null,
  2699. null,
  2700. null,
  2701. null,
  2702. null,
  2703. linksaveBulkCheck //function delegate
  2704. )
  2705. }
  2706. if (GM_getValue("Check_videobb_dot_com_links", false))
  2707. {
  2708. addHost(
  2709. "videobb", //hostname
  2710. "videobb\\.com\/(?:video\/|watch_video\\.php\\?v=)\\w+", //linkregex
  2711. "//a[contains(@href,'videobb.com')]", //xpath
  2712. null, //blocksize
  2713. null, //corrmatch
  2714. /watch_video\.php\?v=/, //corrreplwhat
  2715. 'video/', //corrreplwith
  2716. null, //separator
  2717. 'http://www.videobb.com/link_checker.php',
  2718. 'links=',
  2719. /videobb\.com\/video\/(\w+)/,
  2720. /<td>http:\/\/(?:www\.|)videobb.com\/video\/\w+<\/td>\s+<td>.+?<\/td>\s+<td>\d+:\d+<\/td>\s+<td>Available/g,
  2721. /<td>http:\/\/(?:www\.|)videobb.com\/video\/\w+<\/td>\s+<td><\/td>\s+<td>N\/A<\/td>\s+<td>Not Available/g,
  2722. null,
  2723. null //function delegate
  2724. )
  2725. }
  2726. /* if (GM_getValue("Check_cramit_dot_in_links", false))
  2727. {
  2728. addHost(
  2729. "cramit,cramitin", //hostname
  2730. "cramit(?:\\.in|in\\.net)\/", //linkregex
  2731. "//a[contains(@href,'cramitin.net') or contains(@href,'cramit.in')]", //xpath
  2732. null, //blocksize
  2733. null, //corrmatch
  2734. null, //corrreplwhat
  2735. null, //corrreplwith
  2736. null, //separator
  2737. 'http://cramit.in/checkfiles.html',
  2738. 'op=checkfiles&process=CHECK+URL%27S&list=',
  2739. /(cramit(?:\.in|in\.net)\/\w+)/,
  2740. /green>http:\/\/(?:www\.|)cramit(?:\.in|in\.net)\/\w+/g,
  2741. /red'>http:\/\/(?:www\.|)cramit(?:\.in|in\.net)\/\w+/g,
  2742. /orange'>http:\/\/(?:www\.|)cramit(?:\.in|in\.net)\/\w+/g,
  2743. null //function delegate
  2744. )
  2745. }
  2746. if (GM_getValue("Check_turbobit_dot_net_links", false))
  2747. {
  2748. addHost(
  2749. "turbobit", //hostname
  2750. "turbobit\\.(?:net|pl)\/(?:\\w+\/|).+?\\.html", //linkregex
  2751. "//a[contains(@href,'turbobit.')]", //xpath
  2752. null, //blocksize
  2753. /(turbobit\.(?:net|pl)\/(?:\w+\/|).+?\.html)/, //corrmatch
  2754. null, //corrreplwhat
  2755. null, //corrreplwith
  2756. "\n", //separator
  2757. 'http://turbobit.net/linkchecker/csv',
  2758. 'links_to_check=',
  2759. /(turbobit\.(?:net|pl)\/\w+)/,
  2760. /turbobit\.(?:net|pl)\/.*?, 1/g,
  2761. /turbobit\.(?:net|pl)\/.*?, 0/g,
  2762. null,
  2763. null //function delegate
  2764. )
  2765. } */
  2766. if (GM_getValue("Check_filerio_dot_com_links", false))
  2767. {
  2768. addHost(
  2769. "filekeen,filerio", //hostname
  2770. //"file(?:keen|rio)\\.(?:com|in)\/\\w+\/.", //linkregex
  2771. "file(?:keen|rio)\\.(?:com|in)\/\\w+", //linkregex
  2772. "//a[contains(@href,'filekeen.com') or contains(@href,'filerio.')]", //xpath
  2773. null, //blocksize
  2774. null, //corrmatch
  2775. null, //corrreplwhat
  2776. null, //corrreplwith
  2777. null, //separator
  2778. 'http://filerio.in/checkfiles.html',
  2779. 'op=checkfiles&process=Check+URLs&list=',
  2780. /(file(?:keen|rio)\.(?:com|in)\/\w+)/,
  2781. /green'>http:\/\/(?:www\.|)file(?:keen|rio)\.(?:com|in)\/\w+/g,
  2782. /red'>http:\/\/(?:www\.|)file(?:keen|rio)\.(?:com|in)\/\w+/g,
  2783. /orange'>http:\/\/(?:www\.|)file(?:keen|rio)\.(?:com|in)\/\w+/g,
  2784. null //function delegate
  2785. )
  2786. }
  2787. if (GM_getValue("Check_share_dash_online_dot_biz_links", false))
  2788. {
  2789. addHost(
  2790. "share-online,egoshare", //hostname
  2791. "(?:share-online\\.biz|egoshare\\.com)\/(?:dl\/|download\\.php\\?id=)", //linkregex
  2792. "//a[contains(@href,'share-online.biz') or contains(@href,'egoshare.com')]", //xpath
  2793. null, //blocksize
  2794. /http:\/\/(?:www\.)?(?:share-online\.biz|egoshare\.com)\/d(?:l\/|ownload\.php\?id=)(\w+)/, //corrmatch
  2795. null, //corrreplwhat
  2796. null, //corrreplwith
  2797. "\n", //separator
  2798. 'http://api.share-online.biz/linkcheck.php',
  2799. 'links=',
  2800. /(\w+);(?:OK|NOTFOUND|DELETED)/,
  2801. /\w+;OK/g,
  2802. /\w+;(?:NOTFOUND|DELETED)/g,
  2803. null,
  2804. null //function delegate
  2805. )
  2806. }
  2807. /* if (GM_getValue("Check_quickshare_dot_cz_links", false))
  2808. {
  2809. addHost(
  2810. "quickshare", //hostname
  2811. "quickshare\\.cz\/stahnout-soubor\/\\d+", //linkregex
  2812. "//a[contains(@href,'quickshare.cz')]", //xpath
  2813. null, //blocksize
  2814. null, //corrmatch
  2815. null, //corrreplwhat
  2816. null, //corrreplwith
  2817. null, //separator
  2818. 'http://www.quickshare.cz/nastroje/link-checker',
  2819. 'linky=',
  2820. /quickshare\.cz\/stahnout-soubor\/(\d+(?::\w+)?)/,
  2821. /quickshare\.cz\/stahnout-soubor\/\d+(?::[\w\-.+$!*\/()\[\]\',~%?:@#&=\\]+)?\s*<\/a><\/td><td><img src="\/img\/ok\.gif/g,
  2822. /quickshare\.cz\/stahnout-soubor\/\d+(?::[\w\-.+$!*\/()\[\]\',~%?:@#&=\\]+)?\s*<\/td><td><img src="\/img\/nenalezeno\.gif/g,
  2823. null,
  2824. null //function delegate
  2825. )
  2826. } */
  2827. if (GM_getValue("Check_oboom_dot_com_links", false))
  2828. {
  2829. addHost(
  2830. "oboom", //hostname
  2831. "oboom\\.com\/#?\\w{8}", //linkregex
  2832. "//a[contains(@href,'oboom.com/')]", //xpath
  2833. null, //blocksize
  2834. /oboom\.com\/#?(\w{8})/, //corrmatch
  2835. null, //corrreplwhat
  2836. null, //corrreplwith
  2837. null, //separator
  2838. null,
  2839. null,
  2840. null,
  2841. null, //liveregex
  2842. null, //deadregex
  2843. null,
  2844. oboomBulk //function delegate
  2845. )
  2846. }
  2847. if (GM_getValue("Check_mega_dot_nz_links", false))
  2848. {
  2849. addHost(
  2850. "mega",
  2851. "mega(?:\\.co)?\\.nz\/#!\\w+",
  2852. "//a[contains(@href,'mega.co.nz/') or contains(@href,'mega.nz/')]",
  2853. 100000, //blocksize
  2854. null, //corrmatch
  2855. null, //corrreplwhat
  2856. null, //corrreplwith
  2857. null, //separator
  2858. null,
  2859. null,
  2860. null,
  2861. null,
  2862. null,
  2863. null,
  2864. megaBulkCheck //function delegate
  2865. )
  2866. }
  2867.  
  2868. //the same as GenType2, except api url is 'https://' instead of 'http://www.' and corrmatch is not??? needed
  2869.  
  2870. if (GM_getValue("Check_extabit_dot_com_links", false))
  2871. {
  2872. addHost(
  2873. "extabit", //hostname
  2874. "extabit\\.com\/file\/\\w+", //linkregex
  2875. "//a[contains(@href,'extabit.com')]", //xpath
  2876. null, //blocksize
  2877. null, //corrmatch
  2878. null, //corrreplwhat
  2879. null, //corrreplwith
  2880. "\n", //separator
  2881. "http://extabit.com/linkchecker.jsp", //api url
  2882. "url=", //postdata
  2883. /extabit\.com\/(file\/\w+)/, //linkregex
  2884. /extabit\.com\/file\/\w+\/[^<]+<\/a><\/td>\s*<td class="status"><span class="status_green">/g, //liveregex
  2885. /extabit\.com\/file\/\w+\/[^<]+<\/a><\/td>\s*<td class="status"><span class="status_red">/g, //deadregex
  2886. /extabit\.com\/file\/\w+\/[^<]+<\/a><\/td>\s*<td class="status"><span class="status_yellow">/g, //unavaregex
  2887. extabitBulkCheck //function delegate
  2888. )
  2889. }
  2890. if (GM_getValue("Check_junocloud_dot_me_links", false))
  2891. {
  2892. addHost(
  2893. "junocloud", //hostname
  2894. "junocloud\\.me\/\\w+", //linkregex
  2895. "//a[contains(@href,'junocloud.me')]", //xpath
  2896. null, //blocksize
  2897. null, //corrmatch
  2898. null, //corrreplwhat
  2899. null, //corrreplwith
  2900. "\n", //separator
  2901. "http://junocloud.me/checkfiles.html", //api url
  2902. "op=checkfiles&process=Check+URLs&list=", //postdata
  2903. /(junocloud\.me\/\w+)/, //linkregex
  2904. /<a href="http:\/\/junocloud\.me\/\w+[^<]+<\/a>\s*<span style="color: green/g, //liveregex
  2905. /<a href="http:\/\/junocloud\.me\/\w+[^<]+<\/a>\s*<span style="color: red/g, //deadregex
  2906. null, //unavaregex
  2907. null //function delegate
  2908. )
  2909. }
  2910. if (GM_getValue("Check_webshare_dot_cz_links", false))
  2911. {
  2912. addHost(
  2913. "webshare", //hostname
  2914. "webshare\.cz\/(?:(?:#/)?file/\\w+|\\w+-.*)", //linkregex
  2915. "//a[contains(@href,'webshare.cz')]", //xpath
  2916. 100000, //blocksize
  2917. null, //corrmatch
  2918. null, //corrreplwhat
  2919. null, //corrreplwith
  2920. null, //separator
  2921. null, //api url
  2922. null, //postdata
  2923. null, //linkregex
  2924. null, //liveregex
  2925. null, //deadregex
  2926. null, //unavaregex
  2927. webshareBulkCheck //function delegate
  2928. )
  2929. }
  2930. /////////////////////////////
  2931. // Common function delegate to send links to get checked by host linkchecker
  2932. /////////////////////////////
  2933. // If you define a new delegate, you may use following properties
  2934. // this.links [array] array of strings (link blocks). The links in each block separated with host.splitSeparator.
  2935. // this.apiUrl [string] API or web linkchecker URL
  2936. // this.postData [string] POSTDATA for POST request
  2937. // this.resLiveRegex [regex] matches live substrings in the request response
  2938. // this.resDeadRegex [regex] matches dead substrings in the request response
  2939. // this.resUnavaRegex [regex] matches unava substrings in the request response (the regex is often null!)
  2940. //
  2941. // this.resLinkRegex [regex] matches links further passed to DisplayTheCheckedLinks
  2942. //
  2943. // See the code below for standard bulkcheck handling reference.
  2944. //////////////////////////////
  2945. function genBulkCheck()
  2946. {
  2947. var blockIdx = this.links.length;
  2948. while (blockIdx--)
  2949. {
  2950. postRequest(this.apiUrl, this.postData, this.links[blockIdx],
  2951. this.resLinkRegex, this.resLiveRegex, this.resDeadRegex, this.resUnavaRegex);
  2952. }
  2953. function postRequest(api, postData, links, linkRegex, liveRegex, deadRegex, unavaRegex)
  2954. {
  2955. GM_xmlhttpRequest(
  2956. {
  2957. method: 'POST',
  2958. url: api,
  2959. headers: {
  2960. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  2961. 'Content-type': 'application/x-www-form-urlencoded',
  2962. 'Referer': api,
  2963. 'X-Requested-With': 'XMLHttpRequest'
  2964. },
  2965. data: postData + encodeURIComponent(links),
  2966. onload: function (result)
  2967. {
  2968. var res = result.responseText;
  2969. // GM_log(res);
  2970. var i;
  2971.  
  2972. var livelinks = res.match(liveRegex);
  2973. var deadlinks = res.match(deadRegex);
  2974. // GM_log(livelinks);
  2975. // GM_log(deadlinks);
  2976. if (livelinks != null)
  2977. {
  2978. i = livelinks.length - 1;
  2979. do
  2980. {
  2981. livelinks[i] = livelinks[i].match(linkRegex)[1];
  2982. }
  2983. while (i--);
  2984. DisplayTheCheckedLinks(livelinks, 'alive_link');
  2985. }
  2986.  
  2987. if (deadlinks != null)
  2988. {
  2989. i = deadlinks.length - 1;
  2990. do
  2991. {
  2992. deadlinks[i] = deadlinks[i].match(linkRegex)[1];
  2993. }
  2994. while (i--);
  2995. DisplayTheCheckedLinks(deadlinks, 'adead_link');
  2996. }
  2997.  
  2998. if (unavaRegex != null)
  2999. {
  3000. var unavalinks = res.match(unavaRegex);
  3001. if (unavalinks)
  3002. {
  3003. i = unavalinks.length - 1;
  3004. do
  3005. {
  3006. unavalinks[i] = unavalinks[i].match(linkRegex)[1];
  3007. }
  3008. while (i--);
  3009. DisplayTheCheckedLinks(unavalinks, 'unava_link');
  3010. }
  3011. }
  3012. }
  3013. });
  3014. }
  3015. }
  3016. //specialized bulkchecking handlers follow
  3017. function webshareBulkCheck()
  3018. {
  3019. var arr = this.links[0].split("\r\n");
  3020. var i = arr.length;
  3021. while(i--)
  3022. {
  3023. postRequest(arr[i]);
  3024. }
  3025. //function postRequest(api, postData, links, linkRegex, liveRegex, deadRegex, unavaRegex)
  3026. function postRequest(wsLink)
  3027. {
  3028. var id = wsLink.match(/webshare\.cz\/(?:(?:#\/)?file\/)?(\w+)/)[1];
  3029. GM_xmlhttpRequest(
  3030. {
  3031. method: 'POST',
  3032. url: "http://webshare.cz/api/file_info/",
  3033. headers: {
  3034. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  3035. 'Content-type': 'application/x-www-form-urlencoded',
  3036. 'Referer': "",
  3037. },
  3038. data: "wst=&ident=" + id,
  3039. onload: function (result)
  3040. {
  3041. var res = result.responseText;
  3042. if (res.match(/<name>.+?<\/name>/))
  3043. {
  3044. DisplayTheCheckedLinks([id], 'alive_link');
  3045. }
  3046. else
  3047. {
  3048. DisplayTheCheckedLinks([id], 'adead_link');
  3049. }
  3050. }
  3051. });
  3052. }
  3053. }
  3054. //like genBulkCheck, but extabit linkchecker only works when logged in. If not logged in, non-bulk checking has to be used.
  3055. //extabit also doesn't like requests in fast succession, so some delays are added.
  3056. function extabitBulkCheck()
  3057. {
  3058. var timeoutDelay = 0;
  3059. var blockIdx = this.links.length;
  3060. while (blockIdx--)
  3061. {
  3062. postRequest(this.apiUrl, this.postData, this.links[blockIdx],
  3063. this.resLinkRegex, this.resLiveRegex, this.resDeadRegex, this.resUnavaRegex);
  3064. }
  3065. function postRequest(api, postData, links, linkRegex, liveRegex, deadRegex, unavaRegex)
  3066. {
  3067. GM_xmlhttpRequest(
  3068. {
  3069. method: 'POST',
  3070. url: api,
  3071. headers: {
  3072. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  3073. 'Content-type': 'application/x-www-form-urlencoded',
  3074. 'Referer': api,
  3075. 'X-Requested-With': 'XMLHttpRequest'
  3076. },
  3077. data: postData + encodeURIComponent(links),
  3078. onload: function (result)
  3079. {
  3080. var res = result.responseText;
  3081. if (/id="registration_header"/.test(res)) //not logged in, have to use non-bulk
  3082. {
  3083. function geturlfunc(link, tryID) //basically the geturl function with some changes (compacted, displaythecheckedlinkS, multiple tries)
  3084. {
  3085. //GM_log(tryID + ': ' + link);
  3086. GM_xmlhttpRequest(
  3087. {
  3088. method: 'GET',
  3089. url: link,
  3090. 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': ""},
  3091. onload: function(result2)
  3092. {
  3093. var res2 = result2.responseText;
  3094. var res2Status = result.status;
  3095. if (/download-file-btn/.test(res2)) {DisplayTheCheckedLinks([link], 'alive_link'); return;}
  3096. if (/Search mirrors|id="mirrb"/.test(res2) || res2Status==404) {DisplayTheCheckedLinks([link], 'adead_link'); return;}
  3097. if (/currently unavailable|temporarily unavailable|disponible en estos momentos|vorläufig unerreichbar|Файл временно недоступен/.test(res2) || res2Status == 500 || res2Status == 503)
  3098. {
  3099. if (tryID < 7)
  3100. setTimeout(function(){geturlfunc(link,tryID+1)}, tryID * 1000 + (Math.random() * tryID * 2000));
  3101. else
  3102. {DisplayTheCheckedLinks([link], 'unava_link'); return;}
  3103. }
  3104. }
  3105. });
  3106. }
  3107. //split the hrefs and check them one by one
  3108. GM_log('Using slow extabit.com link checking. Log in to extabit to use fast bulk checking.');
  3109. links = links.split('\n');
  3110. var i = links.length;
  3111. while (i--)
  3112. {
  3113. if (links[i])
  3114. {
  3115. (function(i){setTimeout(function(){geturlfunc(links[i],1)}, timeoutDelay);})(i);
  3116. timeoutDelay += 500;
  3117. }
  3118. }
  3119. return;
  3120. }
  3121. var i;
  3122.  
  3123. var livelinks = res.match(liveRegex);
  3124. var deadlinks = res.match(deadRegex);
  3125. if (livelinks != null)
  3126. {
  3127. i = livelinks.length - 1;
  3128. do
  3129. {
  3130. livelinks[i] = livelinks[i].match(linkRegex)[1];
  3131. }
  3132. while (i--);
  3133. DisplayTheCheckedLinks(livelinks, 'alive_link');
  3134. }
  3135.  
  3136. if (deadlinks != null)
  3137. {
  3138. i = deadlinks.length - 1;
  3139. do
  3140. {
  3141. deadlinks[i] = deadlinks[i].match(linkRegex)[1];
  3142. }
  3143. while (i--);
  3144. DisplayTheCheckedLinks(deadlinks, 'adead_link');
  3145. }
  3146.  
  3147. if (unavaRegex != null)
  3148. {
  3149. var unavalinks = res.match(unavaRegex);
  3150. if (unavalinks)
  3151. {
  3152. i = unavalinks.length - 1;
  3153. do
  3154. {
  3155. unavalinks[i] = unavalinks[i].match(linkRegex)[1];
  3156. }
  3157. while (i--);
  3158. DisplayTheCheckedLinks(unavalinks, 'unava_link');
  3159. }
  3160. }
  3161. }
  3162. });
  3163. }
  3164. }
  3165. function k2sBulkCheck()
  3166. {
  3167. var arr = this.links[0].split("\r\n");
  3168. var i = arr.length;
  3169. c=0;
  3170. while(i--)
  3171. {
  3172. c++;
  3173. setTimeout(k2sRequest,c*500,arr[i]);
  3174. }
  3175. }
  3176. function k2sRequest(K2SLink)
  3177. {
  3178. var id = K2SLink.match(/\/file\/(\w+)/)[1];
  3179. K2SLink2='http://k2s.cc/file/'+id;
  3180. GM_xmlhttpRequest(
  3181. {
  3182. method: 'GET',
  3183. url: K2SLink,
  3184. headers: {
  3185. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  3186. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  3187. 'Referer': ''
  3188. },
  3189. onload: function (result)
  3190. {
  3191. var res = result.responseText;
  3192. if (res.match('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'))
  3193. {
  3194. DisplayTheCheckedLinks([id], 'adead_link');
  3195. return;
  3196. }
  3197. if (res.match('method="post">Displaying'))
  3198. {
  3199. DisplayTheCheckedLinks([id], 'unava_link');
  3200. return;
  3201. }
  3202. if (res.match('Premium only'))
  3203. {
  3204. DisplayTheCheckedLinks([id], 'prem_link');
  3205. return;
  3206. }
  3207. if (res.match('View File|download-file-info|div class="name fontmyriadpro"|style="color: #9fb143;"'))
  3208. {
  3209. slow_id=new RegExp('<input type="hidden" name="slow_id" value="(\\w+)">');
  3210. slID=slow_id.exec(res)[1];
  3211. GM_xmlhttpRequest(
  3212. {
  3213. method: 'POST',
  3214. url: K2SLink2,
  3215. headers: {
  3216. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  3217. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  3218. 'Content-Type': 'application/x-www-form-urlencoded',
  3219. 'Referer': K2SLink
  3220. },
  3221. data: 'slow_id='+slID+'&yt0=',
  3222. onload: function (result)
  3223. {
  3224. var newres = result.responseText;
  3225. newoversizedtest=new RegExp("Free user can't download large files.");
  3226. if (newoversizedtest.test(newres))
  3227. {
  3228. DisplayTheCheckedLinks([id], 'prem_link');
  3229. return;
  3230. }
  3231. else
  3232. {
  3233. DisplayTheCheckedLinks([id], 'alive_link');
  3234. return;
  3235. }
  3236. DisplayTheCheckedLinks([id], 'unava_link');
  3237. return;
  3238. }
  3239. });
  3240. /////////////////////end additional check for oversized links
  3241. return;
  3242. }
  3243. DisplayTheCheckedLinks([id], 'unava_link');
  3244. return;
  3245. },
  3246. onerror: function ()
  3247. {
  3248. DisplayTheCheckedLinks([id], 'unava_link');
  3249. return;
  3250. }
  3251. });
  3252. }
  3253. function fboomBulkCheck()
  3254. {
  3255. var arr = this.links[0].split("\r\n");
  3256. var i = arr.length;
  3257. c=0;
  3258. while(i--)
  3259. {
  3260. c++;
  3261. setTimeout(fboomRequest,c*500,arr[i]);
  3262. }
  3263. }
  3264. function fboomRequest(FBoomLink)
  3265. {
  3266. var id = FBoomLink.match(/\/file\/(\w+)/)[1];
  3267. FBoomLink2='http://fboom.me/file/'+id;
  3268. GM_xmlhttpRequest(
  3269. {
  3270. method: 'GET',
  3271. url: FBoomLink,
  3272. headers: {
  3273. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  3274. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  3275. 'Referer': ''
  3276. },
  3277. onload: function (result)
  3278. {
  3279. var res = result.responseText;
  3280. if (res.match('class="error-v1-title">404<|File not found or deleted|This file is no longer available'))
  3281. {
  3282. DisplayTheCheckedLinks([id], 'adead_link');
  3283. return;
  3284. }
  3285. if (res.match('method="post">Displaying'))
  3286. {
  3287. DisplayTheCheckedLinks([id], 'unava_link');
  3288. return;
  3289. }
  3290. if (res.match('only for premium members'))
  3291. {
  3292. DisplayTheCheckedLinks([id], 'prem_link');
  3293. return;
  3294. }
  3295. if (res.match('id="download-free" href="#"'))
  3296. {
  3297. slow_id=new RegExp('<a id="download-free" href="#" class="free-button btn-u" data-slow-id="(\\w+)">');
  3298. slID=slow_id.exec(res)[1];
  3299. GM_xmlhttpRequest(
  3300. {
  3301. method: 'POST',
  3302. url: FBoomLink2,
  3303. headers: {
  3304. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  3305. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  3306. 'Content-Type': 'application/x-www-form-urlencoded',
  3307. 'Referer': FBoomLink
  3308. },
  3309. data: 'slow_id='+slID,
  3310. onload: function (result)
  3311. {
  3312. var newres = result.responseText;
  3313. newoversizedtest=new RegExp("Free user can't download large files.|Downloading is not possible");
  3314. if (newoversizedtest.test(newres))
  3315. {
  3316. DisplayTheCheckedLinks([id], 'prem_link');
  3317. return;
  3318. }
  3319. else
  3320. {
  3321. DisplayTheCheckedLinks([id], 'alive_link');
  3322. return;
  3323. }
  3324. DisplayTheCheckedLinks([id], 'unava_link');
  3325. return;
  3326. }
  3327. });
  3328. /////////////////////end additional check for oversized links
  3329. return;
  3330. }
  3331. DisplayTheCheckedLinks([id], 'unava_link');
  3332. return;
  3333. },
  3334. onerror: function ()
  3335. {
  3336. DisplayTheCheckedLinks([id], 'unava_link');
  3337. return;
  3338. }
  3339. });
  3340. }
  3341. function dl4free_1fichier_BulkCheck()
  3342. {
  3343. var arr = this.links[0].split("\r\n");
  3344. var i = arr.length;
  3345. while(i--)
  3346. {
  3347. CorrectRE = new RegExp('(https?):\\/\\/(?:www\\.)?(\\w{5,15})\\.1fichier\\.com');
  3348. arr[i]=arr[i].replace(CorrectRE, '$1://1fichier.com/?$2');
  3349. gethead_dl4free_1fichier(arr[i]);
  3350. }
  3351. }
  3352. function gethead_dl4free_1fichier(link)
  3353. {
  3354. var id = link.match(/(?:1fichier|dl4free)\.com(?:\/)?\?(\w{6,})/)[1];
  3355. GM_xmlhttpRequest(
  3356. {
  3357. method: 'HEAD',
  3358. url: link,
  3359. headers: {
  3360. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  3361. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  3362. 'Referer': ''
  3363. },
  3364. onload: function (result)
  3365. {
  3366. if (result.responseHeaders.match(/Content-Disposition: attachment; filename=/))//direct download
  3367. {
  3368. DisplayTheCheckedLinks([id], 'alive_link');
  3369. return;
  3370. }
  3371. else
  3372. {
  3373. getlink_dl4free_1fichier(link);
  3374. }
  3375. return;
  3376. },
  3377. onerror: function ()
  3378. {
  3379. DisplayTheCheckedLinks([id], 'unava_link');
  3380. }
  3381. });
  3382. }
  3383. function getlink_dl4free_1fichier(link)
  3384. {
  3385. var id = link.match(/(?:1fichier|dl4free)\.com(?:\/)?\?(\w{6,})/)[1];
  3386. GM_xmlhttpRequest(
  3387. {
  3388. method: 'GET',
  3389. url: link,
  3390. headers: {
  3391. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  3392. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  3393. 'Referer': ''
  3394. },
  3395. onload: function (result)
  3396. {
  3397. var res = result.responseText;
  3398. 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>');
  3399. if (deadRegex.test(res))
  3400. {
  3401. DisplayTheCheckedLinks([id], 'adead_link');
  3402. return;
  3403. }
  3404. premiumRegex=new RegExp('only for premium users');
  3405. if (premiumRegex.test(res))
  3406. {
  3407. DisplayTheCheckedLinks([id], 'prem_link');
  3408. return;
  3409. }
  3410. 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="');
  3411. if (liveRegex.test(res))
  3412. {
  3413. DisplayTheCheckedLinks([id], 'alive_link');
  3414. return;
  3415. }
  3416. DisplayTheCheckedLinks([id], 'unava_link');
  3417. },
  3418. onerror: function ()
  3419. {
  3420. DisplayTheCheckedLinks([id], 'unava_link');
  3421. }
  3422. });
  3423. }
  3424. function depositfilesBulkCheck()
  3425. {
  3426. var arr = this.links[0].split("\r\n");
  3427. var i = arr.length;
  3428. var seqno = Math.floor(Math.random()*1000000000);
  3429. while(i--)
  3430. {
  3431. DFpostRequest(arr[i]);
  3432. }
  3433. }
  3434. function DFpostRequest(DFLink)
  3435. {
  3436. DFLink=DFLink.replace('depositfiles.lt/','depositfiles.com/');
  3437. DFLink=DFLink.replace('depositfiles.org/','depositfiles.com/');
  3438. DFLink=DFLink.replace('dfiles.ru/','depositfiles.com/');
  3439. DFLink=DFLink.replace('dfiles.eu/','depositfiles.com/');
  3440. DFLink=DFLink.replace('depositfiles.com/en/','depositfiles.com/');
  3441. var id = DFLink.match(/depositfiles\.com\/files\/(\w+)/)[1];
  3442. GM_xmlhttpRequest(
  3443. {
  3444. method: "GET",
  3445. url: "http://depositfiles.com/api/get_download_info.php?id=" + id + "&format=json",
  3446. headers: {
  3447. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3448. 'Content-Type': 'application/x-www-form-urlencoded',
  3449. 'Referer': ""
  3450. },
  3451. onload: function (result)
  3452. {
  3453. var res = result.responseText;
  3454. if (res.match('(?:no_file|file_ban)'))
  3455. {
  3456. DisplayTheCheckedLinks([id], 'adead_link');
  3457. return;
  3458. }
  3459. if (res.match('"download_li(?:nk|mit)|password_check|file_storage"'))
  3460. {
  3461. DisplayTheCheckedLinks([id], 'alive_link');
  3462. return;
  3463. }
  3464. DisplayTheCheckedLinks([id], 'unava_link');
  3465. }
  3466. });
  3467. }
  3468.  
  3469. function megaBulkCheck()
  3470. {
  3471. var arr = this.links[0].split("\r\n");
  3472. var i = arr.length;
  3473. var seqno = Math.floor(Math.random()*1000000000);
  3474. while(i--)
  3475. {
  3476. postRequest(arr[i]);
  3477. }
  3478. function postRequest(megaLink)
  3479. {
  3480. megaLink=megaLink.replace('mega.nz/','mega.co.nz/');
  3481. var id = megaLink.match(/mega\.co\.nz\/#!(\w+)(?:!\w+)?/)[1];
  3482. GM_xmlhttpRequest(
  3483. {
  3484. method: "POST",
  3485. url: 'https://g.api.mega.co.nz/cs?id=' + seqno++,
  3486. data: '[{"a":"g","p":"' + id + '","ssl": "1"}]',
  3487. headers: {
  3488. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3489. 'Content-Type': 'application/xml',
  3490. 'Referer': "https://mega.co.nz/"
  3491. },
  3492. onload: function (result)
  3493. {
  3494. var res = $.parseJSON(result.responseText.match(/\[(.+?)\]/)[1]);
  3495. if ((typeof res == "number" && (res == -9 || res == -16 || res == -6)) || res.d)
  3496. {
  3497.  
  3498. DisplayTheCheckedLinks([id], 'adead_link');
  3499. }
  3500. if (res.at)
  3501. {
  3502. DisplayTheCheckedLinks([id], 'alive_link');
  3503. }
  3504. if (res.e == "ETEMPUNAVAIL")
  3505. {
  3506. DisplayTheCheckedLinks([id], 'unava_link');
  3507. }
  3508. }
  3509. });
  3510. }
  3511.  
  3512. }
  3513.  
  3514. function oboomBulk() {
  3515. var a = [], b = [], c = [];
  3516. var array = this.links;
  3517.  
  3518. GM_xmlhttpRequest({
  3519. method: 'GET',
  3520. url: 'https://www.oboom.com/1/guestsession',
  3521. headers: {
  3522. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  3523. 'Content-type': 'application/x-www-form-urlencoded',
  3524. 'Referer': 'https://www.oboom.com',
  3525. 'X-Requested-With': 'XMLHttpRequest'
  3526. },
  3527. onload: function(result) {
  3528. var blockIdx = array.length;
  3529. var token = JSON.parse(result.responseText)[1];
  3530. while (blockIdx--) {
  3531. startCheck(array[blockIdx].split('\r\n'), token);
  3532. }
  3533. }
  3534. });
  3535.  
  3536. function startCheck(links, token) {
  3537. GM_xmlhttpRequest({
  3538. method: 'POST',
  3539. url: "https://api.oboom.com/1/info",
  3540. headers: {
  3541. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  3542. 'Content-type': 'application/x-www-form-urlencoded',
  3543. 'Referer': 'https://www.oboom.com/',
  3544. 'X-Requested-With': 'XMLHttpRequest'
  3545. },
  3546. data: "token=" + token + "&items=" + links.join(","),
  3547. onload: function(result) {
  3548. var res = JSON.parse(result.responseText)[1];
  3549. var i = res.length, s;
  3550.  
  3551. while (i--) {
  3552. s = res[i].state;
  3553. if (s == 'online') a.push(res[i].id);
  3554. 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);
  3555. else c.push(res[i].id);
  3556. }
  3557.  
  3558. if (a.length > 0) DisplayTheCheckedLinks(a, 'alive_link');
  3559. if (b.length > 0) DisplayTheCheckedLinks(b, 'adead_link');
  3560. if (c.length > 0) DisplayTheCheckedLinks(c, 'unava_link');
  3561. }
  3562. });
  3563. }
  3564. }
  3565. function linksaveBulkCheck()
  3566. {
  3567. var arr = this.links[0].split("\r\n");
  3568. var i = arr.length;
  3569. while(i--)
  3570. {
  3571. postRequest(arr[i]);
  3572. }
  3573. function postRequest(lsLink)
  3574. {
  3575. GM_xmlhttpRequest(
  3576. {
  3577. method: "GET",
  3578. url: lsLink + '-t.jpg',
  3579. headers: {
  3580. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3581. 'Accept': 'text/xml',
  3582. 'Referer': ""
  3583. },
  3584. onload: function (result)
  3585. {
  3586. var imgLen = result.responseHeaders.match(/Content-Length: (\d+)/)[1];
  3587. if (imgLen == 965) //online
  3588. {
  3589. DisplayTheCheckedLinks([lsLink], 'alive_link');
  3590. }
  3591.  
  3592. if (imgLen == 972) //offline
  3593. {
  3594. DisplayTheCheckedLinks([lsLink], 'adead_link');
  3595. }
  3596. if (imgLen == 978) //unava
  3597. {
  3598. DisplayTheCheckedLinks([lsLink], 'unava_link');
  3599. }
  3600. }
  3601. });
  3602. }
  3603.  
  3604. }
  3605. function linkcryptBulkCheck()
  3606. {
  3607. var arr = this.links[0].split("\r\n");
  3608. var i = arr.length;
  3609. while(i--)
  3610. {
  3611. postRequest(arr[i]);
  3612. }
  3613. function postRequest(lcLink)
  3614. {
  3615. GM_xmlhttpRequest(
  3616. {
  3617. method: "GET",
  3618. url: 'http://linkcrypt.ws/api.html?api=status_V1&folderKey=' + lcLink.match(/dir\/(\w+)/)[1],
  3619. headers: {
  3620. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3621. 'Accept': 'text/xml',
  3622. 'Referer': ""
  3623. },
  3624. onload: function (result)
  3625. {
  3626. var res = result.responseText;
  3627. if (res.match(/<errorCode>1101|folderStatus>[23]/)) //Offline status
  3628. {
  3629. DisplayTheCheckedLinks([lcLink], 'adead_link');
  3630. return;
  3631. }
  3632. if (res.match(/folderStatus>1/)) //Online status
  3633. {
  3634. DisplayTheCheckedLinks([lcLink], 'alive_link');
  3635. }
  3636. else
  3637. {
  3638. DisplayTheCheckedLinks([lcLink], 'unava_link');
  3639. }
  3640. }
  3641. });
  3642. }
  3643. }
  3644.  
  3645. function megashareBulkCheck()
  3646. {
  3647. var arr = this.links[0].split("\r\n");
  3648. var i = arr.length;
  3649. while(i--)
  3650. {
  3651. postRequest(arr[i]);
  3652. }
  3653. function postRequest(msLink)
  3654. {
  3655. GM_xmlhttpRequest(
  3656. {
  3657. method: "GET",
  3658. url: msLink,
  3659. headers: {
  3660. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3661. 'Content-Type': 'application/x-www-form-urlencoded',
  3662. 'Referer': ""
  3663. },
  3664. onload: function (result)
  3665. {
  3666. var prZVal = result.responseText.match(/name="(\d+prZVal)" value="(\d+)">/);
  3667. var btn3Name = result.responseText.match(/src="images\/dwn-btn3\.gif" name="(.+?)"/);
  3668. if ((prZVal == null) || (btn3Name == null))
  3669. {
  3670. return;
  3671. }
  3672. GM_xmlhttpRequest(
  3673. {
  3674. method: "POST",
  3675. url: msLink,
  3676. headers: {
  3677. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3678. 'Content-Type': 'application/x-www-form-urlencoded',
  3679. 'Referer': ""
  3680. },
  3681. data: prZVal[1] + "=" + prZVal[2] + '&' + btn3Name[1] + '.x=1&' + btn3Name[1] + '.y=1',
  3682. onload: function (result)
  3683. {
  3684. var res = result.responseText;
  3685. if (res.match(/<div id="err">/))
  3686. {
  3687. DisplayTheCheckedLinks([msLink.match(/\.com(\/\d+)/)[1]], 'adead_link');
  3688. }
  3689. else
  3690. {
  3691. DisplayTheCheckedLinks([msLink.match(/\.com(\/\d+)/)[1]], 'alive_link');
  3692. }
  3693. }
  3694. });
  3695. }
  3696. });
  3697. }
  3698. }
  3699. function ncryptBulkCheck()
  3700. {
  3701. var arr = this.links[0].split("\r\n");
  3702. var i = arr.length;
  3703. while(i--)
  3704. {
  3705. postRequest(arr[i]);
  3706. }
  3707. function postRequest(ncryptLink)
  3708. {
  3709. GM_xmlhttpRequest(
  3710. {
  3711. method: "POST",
  3712. url: 'http://ncrypt.in/api_status.php',
  3713. headers: {
  3714. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3715. 'Content-Type': 'application/x-www-form-urlencoded',
  3716. 'Referer': ""
  3717. },
  3718. data: 'link=' + encodeURI(ncryptLink),
  3719. onload: function (result)
  3720. {
  3721. var foldStatus = result.responseText.match(/(?:offline|online);/);
  3722. switch(foldStatus + ""){
  3723. case "offline;": DisplayTheCheckedLinks([ncryptLink], 'adead_link'); break;
  3724. case "online;": DisplayTheCheckedLinks([ncryptLink], 'alive_link'); break;
  3725. default: DisplayTheCheckedLinks([ncryptLink], 'unava_link');
  3726. }
  3727. }
  3728. });
  3729. }
  3730. }
  3731. function hellshareBulkCheck()
  3732. {
  3733. var links = this.links;
  3734. GM_xmlhttpRequest(
  3735. {
  3736. method: "GET",
  3737. url: 'http://www.hellshare.com',
  3738. headers: {
  3739. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3740. 'Accept': 'text/xml',
  3741. 'Referer': ""
  3742. },
  3743. onload: function (result)
  3744. {
  3745. var domain = result.responseText.match(/param_rau = "www\.hellshare\.(\w+)"/)[1];
  3746.  
  3747. var loc = 'check=Zkontrolovat+dostupnost+soubor%C5%AF&links=';
  3748. if (domain == 'sk')
  3749. loc = 'check=Skontrolova%C5%A5&links=';
  3750. if (domain == 'com')
  3751. loc = 'check=Check+availability&links=';
  3752. if (domain == 'hu')
  3753. loc = 'check=Kontrol%C3%A1lj&links=';
  3754. if (domain == 'pl')
  3755. loc = 'check=Sprawd%C5%BC+dost%C4%99pno%C5%9B%C4%87+plik%C3%B3w&links=';
  3756.  
  3757. genBulkCheck.call({ links: links,
  3758. apiUrl: 'http://www.hellshare.' + domain + '/linkchecker?do=linkChecker-linkcheckerform-submit',
  3759. postData: loc,
  3760. resLinkRegex: /hellshare\.(?:cz|com|sk|hu|pl)\/(?:[\w-\.]+\/|)([\w-\.]+\/\d{5,})/,
  3761. 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,
  3762. resDeadRegex: /<span style="color:gray">.*?<\/span> - <strong>/g,
  3763. resUnavaRegex: null
  3764. });
  3765. }
  3766. });
  3767. }
  3768. /**
  3769. * Displays check result
  3770. * @param {Array} Array of links or link fragments.
  3771. * @param {String} Check result status -> ['alive_link'|'adead_link'|'unava_link']
  3772. */
  3773. function DisplayTheCheckedLinks(links, resultStatus)
  3774. {
  3775. //(a[href*=link_1], a[href*=link_2], ..., a[href*=link_n])
  3776. var $links = $('a[href*="' + links.join('"], a[href*="') + '"]');
  3777. if (Do_not_linkify_DL_links)
  3778. { //TODO into separate jQuery function
  3779. $links.replaceWith(function(){
  3780. return '<span href="' + this.href + '">' + $(this).text() + '</span>';
  3781. });
  3782. $links = $('span[href*="' + links.join('"], span[href*="') + '"]');
  3783. }
  3784. $links.removeClass().addClass(resultStatus);
  3785. $links.each(function() {
  3786. this.href = Ref_anonymize_service + $(this).attr("href");
  3787. });
  3788. switch(resultStatus)
  3789. {
  3790. case "alive_link": cLinksAlive += $links.length;
  3791. if (Display_tooltip_info) $links.mouseover(displayTooltipInfo);
  3792. break;
  3793. case "adead_link": cLinksDead += $links.length;
  3794. if (Display_tooltip_info) $links.mouseover(displayTooltipError);
  3795. break;
  3796. case "prem_link": cLinksprem += $links.length;
  3797. if (Display_tooltip_info) $links.mouseover(displayTooltipError);
  3798. break;
  3799. case "unava_link": cLinksUnava += $links.length; break;
  3800. default:
  3801. }
  3802. cLinksProcessed += $links.length;
  3803. }
  3804. }
  3805. // starts bulkchecking
  3806. //
  3807. // params
  3808. // filterId [string] restricts link detection with passed id attribute
  3809. function startBulkCheck(filterId)
  3810. {
  3811. var cHosts = bulkHosts.length;
  3812. if (cHosts == 0) //no filehostings selected
  3813. return;
  3814. // STEP 1 linkify the links
  3815. var linkifyRegex = '';
  3816. var hostIdx = cHosts;
  3817. while(hostIdx--)
  3818. {
  3819. linkifyRegex += bulkHosts[hostIdx].linkRegex + "|";
  3820. }
  3821. linkifyRegex = linkifyRegex.replace(/\|$/, '');
  3822. linkify(linkifyRegex);
  3823. //
  3824. //STEP 2 detect link objects
  3825. var xpathAll = '';
  3826. var hostIdx = cHosts;
  3827. while(hostIdx--)
  3828. {
  3829. xpathAll += bulkHosts[hostIdx].xpath + "|";
  3830. }
  3831. xpathAll = xpathAll.replace(/\]\|\/\/a\[/g, " or ");
  3832. xpathAll = xpathAll.replace(/\]\|/, ')]');
  3833. if (filterId != null) //insert id restriction in the xpath
  3834. {
  3835. xpathAll = xpathAll.replace(/\[/, "[@class='" + filterId + "' and (");
  3836. }
  3837. else
  3838. {
  3839. xpathAll = xpathAll.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  3840. }
  3841. var links = document.evaluate(xpathAll, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  3842. if (filterId == null)
  3843. {
  3844. cLinksTotal += links.snapshotLength;
  3845. }
  3846. //
  3847. //STEP 3 bind links with hostings
  3848. var linkIdx = links.snapshotLength;
  3849. var href = null;
  3850. if (linkIdx == 0) // no links found
  3851. return;
  3852. var name;
  3853. while (linkIdx--)
  3854. {
  3855. href = links.snapshotItem(linkIdx).href;
  3856. try // DO NOT REMOVE, filters crap that went through xpath detection
  3857. {
  3858. name = gimmeHostName(href);
  3859. if (href.match(bulkHostNames[name].linkRegexObject) != null)
  3860. bulkHostNames[name].links.push(href);
  3861. }
  3862. catch(e)
  3863. {
  3864.  
  3865. }
  3866. }
  3867. //
  3868. //STEP 4 process the links for each filehosting
  3869. var hostIdx = cHosts;
  3870. var host;
  3871. var m,n;
  3872. var arr;
  3873. while (hostIdx--)
  3874. {
  3875. host = bulkHosts[hostIdx];
  3876. arr = host.links;
  3877. if (arr.length == 0) //no links for this hosting, skip
  3878. {
  3879. continue;
  3880. }
  3881. //links match corrections
  3882. if (host.corrMatch != null)
  3883. {
  3884. var idx = arr.length;
  3885. while (idx--)
  3886. {
  3887. arr[idx] = arr[idx].match(host.corrMatch)[1];
  3888. }
  3889. }
  3890. //links replace corrections
  3891. if ((host.corrReplWhat != null) && (host.corrReplWith != null))
  3892. {
  3893. var idx = arr.length;
  3894. while (idx--)
  3895. {
  3896. arr[idx] = arr[idx].replace(host.corrReplWhat, host.corrReplWith);
  3897. }
  3898. }
  3899. m = arr.length;
  3900. n = host.blockSize;
  3901. if (m > n)
  3902. {
  3903. //insert block separators (RAND_STRING) into the array
  3904. for(var i = n; i < m; i += n + 1)
  3905. {
  3906. arr.splice(i, 0, RAND_STRING);
  3907. }
  3908. }
  3909.  
  3910. host.func.call({ links: arr.join(host.splitSeparator).split(RAND_STRING),
  3911. apiUrl: host.apiUrl,
  3912. postData: host.postData,
  3913. resLinkRegex: host.resLinkRegex,
  3914. resLiveRegex: host.resLiveRegex,
  3915. resDeadRegex: host.resDeadRegex,
  3916. resUnavaRegex: host.resUnavaRegex
  3917. });
  3918. //clean up
  3919. arr.length = 0;
  3920. }
  3921. //
  3922.  
  3923. function gimmeHostName(link)
  3924. {
  3925. return link.replace(/https?:\/\/.*?http(s)?:\/\//, "http$1://").match(/https?:\/\/(?:www\.|[\w\.])*?([\w-]+)\.(?:co\.uk|co\.nz|\w+)\//)[1];
  3926. }
  3927. }
  3928. function checkLinks(filterId)
  3929. {
  3930. startBulkCheck(filterId);
  3931. start(filterId);
  3932. }
  3933.  
  3934. /**
  3935. * Initialises progress box including event binding and CSS
  3936. */
  3937. function initProgressBox()
  3938. {
  3939. if ($("#warlc-progressbox").length > 0)
  3940. return;
  3941. //progressbox css change size and color of progress box
  3942. GM_addStyle("#warlc-progressbox {position:fixed; background:DimGray;" + Progress_box_background_color +
  3943. "; opacity:" + (Progress_box_opacity / 100) +
  3944. "; bottom:" + Progress_box_pos_bottom +
  3945. "px; right:" + Progress_box_pos_right +
  3946. "px; padding:5px; font-size:20px; font-weight:bold; cursor:default;}\
  3947. \
  3948. .warlc-progressbar {text-align:center; color: DimGray; height:2px; margin-bottom:2px;}\
  3949. \
  3950. .warlc-progressitem {}\
  3951. \
  3952. .alive {color:#00FF7F; " + Live_links_color +
  3953. "; background:transparent url(" + alive_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;} .dead {color:" + Dead_links_color +
  3954. "; background:transparent url(" + adead_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;} .unava {color: " + Temp_unavailable_links_color +
  3955. "; background:transparent url(" + unava_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;} .processing {color:Black; " + Container_links_color +
  3956. "; background:transparent url(" + processing_link_gif + ") no-repeat scroll 100% 50%;padding-right:15px;} .prem {color:" + Premium_links_color +
  3957. "; background:transparent url(" + prem_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;}"
  3958. );
  3959. //
  3960. $('body').append(' <div id="warlc-progressbox">\
  3961. <div class="warlc-progressbar"></div>\
  3962. <span class="warlc-progressitem alive"></span> - \
  3963. <span class="warlc-progressitem dead"></span> - \
  3964. <span class="warlc-progressitem unava"></span> - \
  3965. <span class="warlc-progressitem prem"></span> - \
  3966. <span class="warlc-progressitem processing"></span>\
  3967. </div>');
  3968. $('#warlc-progressbox').hide().click(function(){
  3969. clearInterval(intervalId);
  3970. $(this).hide();
  3971. return false;
  3972. });
  3973. $(".warlc-progressbar").progressbar({complete: function(){
  3974. $(this).fadeOut();
  3975. clearInterval(intervalId); //stop refreshing the stats
  3976. }
  3977. })
  3978. .one('progressbarchange', function(){$('#warlc-progressbox').show();});
  3979. }
  3980. /**
  3981. * Updates progress data in progress box
  3982. */
  3983. function updateProgress()
  3984. {
  3985. $("#warlc-progressbox").attr('aria-valuenow', Math.round(((100 / cLinksTotal) * cLinksProcessed)));
  3986. if (cLinksTotal) // some links were detected on page
  3987. {
  3988. var percProgress = Math.round(((100 / cLinksTotal) * cLinksProcessed));
  3989. var $progressItems = $('#warlc-progressbox > .warlc-progressitem');
  3990. $(".warlc-progressbar").progressbar('option', 'value', percProgress);
  3991. if ((cLinksTotal - cLinksProcessed) == 0)
  3992. {
  3993. $progressItems.first().text(cLinksAlive)
  3994. .next().text(cLinksDead)
  3995. .next().text(cLinksUnava)
  3996. .next().text(cLinksprem)
  3997. .next().remove();
  3998. $('#warlc-progressbox').html($('#warlc-progressbox').html().substr(0,$('#warlc-progressbox').html().lastIndexOf(">")+1));
  3999. $('#warlc-progressbox div:first-child').remove();
  4000. }
  4001. else
  4002. {
  4003. $progressItems.first().text(cLinksAlive)
  4004. .next().text(cLinksDead)
  4005. .next().text(cLinksUnava)
  4006. .next().text(cLinksprem)
  4007. .next().text(cLinksTotal - cLinksProcessed);
  4008. }
  4009. }
  4010. }
  4011.  
  4012. function check_all_links()
  4013. {
  4014. add_WARLC_style();
  4015.  
  4016. if (Show_progress_stats)
  4017. {
  4018. initProgressBox();
  4019. intervalId = setInterval(function(){updateProgress();}, Progress_box_refresh_rate);
  4020. }
  4021.  
  4022. startBulkCheck(null);
  4023. start(null);
  4024.  
  4025. if (!containers_processed)
  4026. {
  4027. processContainers();
  4028. }
  4029. }
  4030.  
  4031. //Copies all found dead links to clipboard - right now for Scriptish only
  4032. function copy_dead_to_clipboard()
  4033. {
  4034. initClipBoardTools();
  4035.  
  4036. var deadlinksxpath = "//.[@class='adead_link']";
  4037.  
  4038. var foundlinks = document.evaluate(deadlinksxpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4039. var foundlinkstext = '';
  4040.  
  4041. var foundlinkIdx = foundlinks.snapshotLength;
  4042.  
  4043. while(foundlinkIdx--)
  4044. {
  4045. if (foundlinks.snapshotItem(foundlinkIdx).innerHTML != ' x')
  4046. foundlinkstext += foundlinks.snapshotItem(foundlinkIdx).innerHTML.replace(/\[\/hide:\w+\]/,"") + '\n';
  4047. }
  4048.  
  4049. unsafeWindow.copyToClipboard(foundlinkstext);
  4050. }
  4051.  
  4052. function toggle_autocheck()
  4053. {
  4054. var currentState = GM_getValue("Autocheck", false);
  4055. GM_setValue("Autocheck", !currentState);
  4056.  
  4057. if (currentState == true)
  4058. {
  4059. sendMessage('Autocheck disabled', 'red');
  4060. }
  4061. else
  4062. {
  4063. sendMessage('Autocheck enabled', 'SpringGreen');
  4064. }
  4065. }
  4066. function toggle_Enable_Anonymizer()
  4067. {
  4068. var currentState = GM_getValue("Enable_Anonymizer", false);
  4069. GM_setValue("Enable_Anonymizer", !currentState);
  4070.  
  4071. if (currentState == true)
  4072. {
  4073. GM_setValue("Ref_anonymize_service", "");
  4074. sendMessage('Anonymizer Disabled', 'red');
  4075. }
  4076. else
  4077. {
  4078. GM_setValue("Ref_anonymize_service", "http://hiderefer.com/?");
  4079. sendMessage('Anonymizer Enabled', 'SpringGreen');
  4080. }
  4081. }
  4082.  
  4083. function KeyDownHandler(event)
  4084. {
  4085. var kcode = (event.keyCode) ? event.keyCode : event.which;
  4086. if (event.ctrlKey && event.altKey)
  4087. {
  4088. switch(kcode)
  4089. {
  4090. case 65 : check_all_links(); break;
  4091. case 67 : configuration(); break;
  4092. case 68 : copy_dead_to_clipboard(); break;
  4093. case 87 : toggle_autocheck(); break;
  4094. case 90 : toggle_Enable_Anonymizer(); break;
  4095. }
  4096. }
  4097. }
  4098.  
  4099. //
  4100. //
  4101. // SCRIPT EXECUTION START POINT
  4102. //
  4103. //
  4104. // Safari specific GM_getResourceText override
  4105. if (navigator.userAgent.indexOf('Safari') != -1 && navigator.userAgent.indexOf('Chrome') == -1)
  4106. {
  4107. GM_getResourceText = function(res) {
  4108. var $cssText = GM_getValue("jquery_css", "");
  4109. if ($cssText == "")
  4110. {
  4111. GM_xmlhttpRequest(
  4112. {
  4113. method: 'GET',
  4114. url: 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css',
  4115. onload: function (result)
  4116. {
  4117. GM_setValue("jquery_css", result.responseText);
  4118. window.location.reload();
  4119. }
  4120. });
  4121. }
  4122. else
  4123. {
  4124. return $cssText;
  4125. }
  4126. }
  4127. }
  4128. var jQueryUICSS = GM_getResourceText("jQueryUICSS");
  4129. GM_addStyle(jQueryUICSS);
  4130. //init the stuff
  4131. setVariables();
  4132. initBulkCheck();
  4133. //init info boxes
  4134. messageBox.style.position = 'fixed';
  4135. messageBox.style.top = '20px';
  4136. messageBox.style.left = '10px';
  4137. messageBox.style.opacity = '0.85';
  4138. messageBox.style.background = 'DimGray';
  4139. messageBox.style.fontSize = '36px';
  4140. document.body.appendChild(messageBox);
  4141.  
  4142. //register GM menu commands & keyboard shortcut event handler
  4143. if (Keyboard_functions)
  4144. {
  4145. $(document).keydown(KeyDownHandler);
  4146. GM_registerMenuCommand("[W.A.R. Links Checker] Configuration (" + first_key_keycodename + "+" + second_key_keycodename + "+" + String.fromCharCode(CONFIGURATION_KEYCODE) + ")", configuration);
  4147. 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);
  4148. }
  4149. else
  4150. {
  4151. GM_registerMenuCommand("[W.A.R. Links Checker] Configuration", configuration);
  4152. GM_registerMenuCommand("[W.A.R. Links Checker] Check The Links In This Page", check_all_links);
  4153. }
  4154.  
  4155. //start linkchecking
  4156. if (Autocheck)
  4157. {
  4158. $(document).ready(check_all_links);
  4159. }
  4160.  
  4161. //
  4162. //
  4163. // SCRIPT EXECUTION END POINT
  4164. //
  4165. //
  4166.  
  4167. //shows configuration box
  4168. function configuration()
  4169. {
  4170.  
  4171. //prevent multiple creating of config window
  4172. if ($("#hideshow").length)
  4173. {
  4174. $("#hideshow").show();
  4175. return;
  4176. }
  4177.  
  4178. var configcss = '\
  4179. .popup_block .popup fieldset{\
  4180. padding: 1%;\
  4181. border-style: solid;\
  4182. border-width: 1px;\
  4183. border-color: gray;\
  4184. margin-bottom: 1px;\
  4185. }\
  4186. #h3hideshowtitle{\
  4187. font-size: 2em;\
  4188. }\
  4189. #h3hideshow{\
  4190. font-size: 1.5em;\
  4191. }\
  4192. #imghideshow {\
  4193. border: none;\
  4194. }\
  4195. #plusimage{\
  4196. display:inline;\
  4197. }\
  4198. #hideshow {\
  4199. position: fixed;\
  4200. width: 100%;\
  4201. height: 100%;\
  4202. top: 0;\
  4203. left: 0;\
  4204. font-size:12px;\
  4205. z-index:2147483645;\
  4206. text-align:left;\
  4207. }\
  4208. #fade {\
  4209. background: #000;\
  4210. position: fixed;\
  4211. width: 100%;\
  4212. height: 100%;\
  4213. opacity: .80;\
  4214. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";\
  4215. left: 0;\
  4216. z-index: 10;\
  4217. }\
  4218. .popup_block {\
  4219. font-family:verdana;\
  4220. color:black;\
  4221. background: #ddd;\
  4222. padding: 10px 20px;\
  4223. border: 2px solid DarkOrange;\
  4224. float: left;\
  4225. width: 700px;\
  4226. position: absolute;\
  4227. top: 7%;\
  4228. left: 50%;\
  4229. bottom: 7%;\
  4230. margin: 0 0 0 -350px;\
  4231. -moz-border-radius:10px;\
  4232. z-index: 100;\
  4233. \
  4234. }\
  4235. .popup_block .popup {\
  4236. float: left;\
  4237. width: 100%;\
  4238. background: #fff;\
  4239. margin: 10px 0;\
  4240. padding: 0px 0 0px;\
  4241. border-left: 1px solid #bbb;\
  4242. border-top: 1px solid #bbb;\
  4243. border-right: 1px solid #bbb;\
  4244. }\
  4245. #h3hideshow{\
  4246. margin: 1px 0 0px;\
  4247. padding: 1px 10px;\
  4248. border-bottom: 1px solid #bbb;\
  4249. font-size: 1.5em;\
  4250. font-weight: normal;\
  4251. cursor:pointer;\
  4252. background:#DDDDDD none repeat scroll 0 0;\
  4253. }\
  4254. #h3hideshow:hover{\
  4255. background:#C0BEBE none repeat scroll 0 0;\
  4256. }\
  4257. #h3hideshowtitle{\
  4258. margin: 2px 0 0px;\
  4259. padding: 7px 10px;\
  4260. border-bottom: 1px solid #bbb;\
  4261. font-size: 1.5em;\
  4262. font-weight: normal;\
  4263. }\
  4264. .popup_block .popup a {\
  4265. color:DarkSkyBlue;\
  4266. text-decoration:none;\
  4267. }\
  4268. .popup p {\
  4269. padding: 1px 10px;\
  4270. margin: 0px 0;\
  4271. -x-system-font:none;\
  4272. font-family:verdana,geneva,lucida,"lucida grande",arial,helvetica,sans-serif;\
  4273. font-size:10pt;\
  4274. font-size-adjust:none;\
  4275. font-stretch:normal;\
  4276. font-style:normal;\
  4277. font-variant:normal;\
  4278. font-weight:normal;\
  4279. line-height:normal;\
  4280. }\
  4281. #sites {\
  4282. padding: 1px 10px;\
  4283. margin: 0px 0;display:inline-block;width:16em;\
  4284. }\
  4285. #dev_ver {\
  4286. color: #00FF00;\
  4287. background: Black;\
  4288. text-align: right;\
  4289. }\
  4290. #sites_suspended {\
  4291. padding: 1px 10px;\
  4292. margin: 0px 0;display:inline-block;width:16em;\
  4293. text-decoration: line-through;\
  4294. }\
  4295. .popup img.cntrl {\
  4296. position: absolute;\
  4297. right: -15px;\
  4298. top: -15px;\
  4299. }\
  4300. #bulk {\
  4301. font-size:8pt;\
  4302. color:orange;\
  4303. padding: 1px 10px;\
  4304. margin: 0px 0;\
  4305. display:inline-block;\
  4306. width:100px;\
  4307. }\
  4308. #note {\
  4309. font-size:7pt;\
  4310. color:gray;\
  4311. padding: 1px 10px;\
  4312. margin: 0px 0;display:inline-block;\
  4313. min-width:100px;\
  4314. }\
  4315. #rednote {\
  4316. font-size:7pt;\
  4317. color:red;\
  4318. padding: 1px 10px;\
  4319. margin: 0px 0;display:inline-block;\
  4320. }\
  4321. #configinfo {\
  4322. font-size:8pt;\
  4323. color:gray;\
  4324. padding: 1px 10px;\
  4325. margin: 0px 0;display:inline-block;width:60em;\
  4326. }\
  4327. #refAnonymizer, #inputColorLive, #inputColorprem, #hostSearchBox2, #hostSearchBox, #inputColorDead, #inputColorTemp, #inputColorCont, #selectAllButton, #selectNoneButton, #invertButton, #selectAllButton2, #selectNoneButton2, #invertButton2 {\
  4328. color:black;\
  4329. border-style: solid;\
  4330. border-width: 1px;\
  4331. border-color: gray;\
  4332. }\
  4333. #h3hideshowcontent {\
  4334. min-height:220px;\
  4335. max-height:220px;\
  4336. overflow:auto;\
  4337. display: none;\
  4338. padding: 10px 10px;\
  4339. }\
  4340. #specinfo{\
  4341. font-size:14px;\
  4342. }\
  4343. .warlc-ui-tab {\
  4344. height:300px;\
  4345. overflow:auto;\
  4346. }\
  4347. #warlcsitelist2, #warlcsitelist1 {\
  4348. height:220px;\
  4349. border-top: 1px solid #ddd;\
  4350. padding-top: 5px;\
  4351. overflow:auto;\
  4352. }\
  4353. input:hover+label {\
  4354. background:#F1F77C;\
  4355. font-size:110%;\
  4356. }\
  4357. ';
  4358.  
  4359. GM_addStyle(configcss);
  4360.  
  4361. var customRulesRefHTML =
  4362. '\
  4363. <br>\
  4364. A custom rule consists of <b>commands</b>. A command must be on its own line and in this form:<br>\
  4365. <b>@keyword</b> <i>parameter</i>\
  4366. <br><br>\
  4367. 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. \
  4368. <br><br>\
  4369. 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.\
  4370. 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.\
  4371. 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.\
  4372. 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,\
  4373. but all commands until the next valid @customrule are ignored.<br><br>\
  4374. Available forms and types:\
  4375. <ul>\
  4376. <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.\
  4377. <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.\
  4378. <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.\
  4379. <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.\
  4380. </ul>\
  4381. Other available commands:<br>\
  4382. (Note: There can be more than 1 (up to 10) of these commands per rule. In that case, any of them will work.)\
  4383. <ul>\
  4384. <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.\
  4385. It can also specify multiple (up to 10) Top Level Domains (.com, .net etc.)<br>\
  4386. <ul>examples:<br>\
  4387. <li>good: <i>filehost.com/download/</i><br>\
  4388. <li>good: <i>download.filehost.net/?d=</i><br>\
  4389. <li>good: <i>filehost. com net co.uk /</i> - multiple TLDs (note the spaces before, between and after TLDs)<br>\
  4390. <li>ok: <i>filehost.com/</i> - works, but will also find links like filehost.com/login etc. Sometimes it\'s unavoidable though.<br>\
  4391. <li>bad: <i>d8523.filehost.com/</i> - d8523 probably is not constant<br>\
  4392. <li>bad: <i>filehost.com/3bfiq5d1</i> - 3bfiq5d1 probably is not constant<br>\
  4393. <li>bad: <i>filehost.com</i> - no slash<br>\
  4394. </ul>\
  4395. \
  4396. <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.\
  4397. 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 \
  4398. &lt;div&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;p&gt; even if there are new lines, tabulators etc.\
  4399. <li><b>@deadmatch</b> <i>pattern</i> - ignored for OBSOLETE, required for others. (For HEADERS some servers return 404 Error \
  4400. 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.)\
  4401. Two spaces again match any whitespace.\
  4402. <li><b>@unavamatch</b> <i>pattern</i> - optional, ignored for OBSOLETE and HEADERS. If found, the link is deemed temporarily unavailable.\
  4403. Two spaces again match any whitespace.\
  4404. <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. \
  4405. <li><b>@deadlink</b> <i>url</i> - optional. Example dead link.\
  4406. </ul>\
  4407. \
  4408. ';
  4409.  
  4410. //close image and css taken from = http://www.sohtanaka.com/web-design/examples/css-popup icon_close.png;
  4411. var configurationinnerHTML =
  4412. '<div id="fade"></div>\
  4413. <div class="popup_block">\
  4414. <div class="popup">\
  4415. <a href="#"><img id="imghideshow" title="Close" class="cntrl" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAfCAYAAAD0ma06AAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAY1SURBVHjapFZbbFRVFN0zd6Yz08dMoUNf9EGxUItJK62I4AOJEYiQoqE+0OgHCiqG+PgQozH6ofyIJiYEMRqNJpggHySlrRM+hCAtajAUaGgEi9BBSilMO0PnfWeOa597bjt9AEVvsubOPWefs/br7H0sQgj6P4/FYrk9+WkSuoAHgCrgLvV9DLgMdID02rQZmfAmaAJaxS2edDr9s67rL7EB/9XCUuALoEl+pZJEvTAo8A9s6iVKxojKYWheAWxuI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wE9igb/Fa7f9MHGTQuANdbcGLzyFV2smiukr7Siw4WqGvZhlqznxhX7cTzmXayA234c33lqFcjneIqZfxX1TJr+t4dWtcUGXgusNgaPLwvQpgJjHcK8EPOAM6J7+vblEfK0fZ9RoqwAnpTnznsN/2jOkuvOUNvmpXmMTrrQuoJWGj36bAugAMhSo2cnsgUil2fb5LRHi1/jRGlJHc5zenaV7p0PyRB7XkR7vfa4IlZtT69fbVKywyafh8HODHN+WfhH4FnD2alN1B7AdOAcMeT29HfiZJ5oZ3sHrgAeBvcCANzBsHu7Ohe2/AwDnNnxcIIMIUgAAAABJRU5ErkJggg=="></img>&nbsp;W.A.R. Links Checker Customized Premium Link version Configuration</div>\
  4417. <div id="warlc-conf-tabs">\
  4418. <ul>\
  4419. <li><a href="#tabs-1">Filehostings</a></li>\
  4420. <li><a href="#tabs-2">Containers</a></li>\
  4421. <li><a href="#tabs-5">Custom rules</a></li>\
  4422. <li><a href="#tabs-3">Settings</a></li>\
  4423. <li><a href="#tabs-4">About</a></li>\
  4424. </ul>\
  4425. <div id="tabs-1" class="warlc-ui-tab">\
  4426. <div class="warlc-ui-buttonset">\
  4427. <input type="button" class="warlc-ui-select-all" value="Select All">\
  4428. <input type="button" class="warlc-ui-select-none" value="Select None">\
  4429. <input type="button" class="warlc-ui-select-invert" value="Invert">\
  4430. </div><br>\
  4431. <div>Search: <input type="textbox" id="hostSearchBox" value=""></div><br>\
  4432. <div id="warlcsitelist1"><span>Empty</span></div>\
  4433. </div>\
  4434. <div id="tabs-2" class="warlc-ui-tab">\
  4435. <div class="warlc-ui-buttonset">\
  4436. <input type="button" class="warlc-ui-select-all" value="Select All">\
  4437. <input type="button" class="warlc-ui-select-none" value="Select None">\
  4438. <input type="button" class="warlc-ui-select-invert" value="Invert">\
  4439. </div><br>\
  4440. <div>Search: <input type="textbox" id="hostSearchBox2" value=""></div><br>\
  4441. <div id="warlcsitelist2"><span>Empty</span></div>\
  4442. </div>\
  4443. <div id="tabs-5" class="warlc-ui-tab">\
  4444. <div class="warlcsettings">\
  4445. <fieldset><input type="checkbox" id="Custom_rules"> Enable custom rules <div id="bulk">EXPERIMENTAL</div></fieldset>\
  4446. <br>\
  4447. <div>Edit custom rules: \
  4448. <a href="#" id="showCustomRulesReference">(<b>Click here to show/hide the reference</b>)</a>\
  4449. <div id="customRulesReference" style="display:none;">'
  4450. + customRulesRefHTML + '\
  4451. </div>\
  4452. <textarea style="width:100%;height:200px;" id="Custom_rules_text"></textarea>\
  4453. </div>\
  4454. </div>\
  4455. </div>\
  4456. <div id="tabs-3" class="warlc-ui-tab">\
  4457. <div class="warlcsettings">\
  4458. <fieldset>\
  4459. <p><input type="checkbox" id="Keyboard_functions"> Enable keyboard shortcuts</p>\
  4460. <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>\
  4461. </fieldset>\
  4462. <fieldset>\
  4463. <p><input type="checkbox" id="Color_DL_links"> Color DL links</p>\
  4464. <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>\
  4465. <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>\
  4466. <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>\
  4467. <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>\
  4468. <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>\
  4469. <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>\
  4470. <p><input type="checkbox" id="Show_line_through_in_dead_links"> Show line through in dead links</p>\
  4471. <p><input type="checkbox" id="Show_black_background_in_DL_links"> Show black background in DL links</p>\
  4472. <p><input type="checkbox" id="Do_not_linkify_DL_links"> Do NOT linkify DL links</p>\
  4473. <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>\
  4474. <p><input type="checkbox" id="Display_full_links_in_link_containers"> Display full links in link containers</p><br>\
  4475. <fieldset>\
  4476. <p><input type="radio" name="warlciconset" value="0"> No icons</p>\
  4477. <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>\
  4478. <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>\
  4479. <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>\
  4480. </fieldset>\
  4481. </fieldset>\
  4482. <fieldset>\
  4483. <div id="sites"><input type="checkbox" id="Autocheck"> Autocheck</div><br><div id="configinfo">Script starts check automatically.</div><br>\
  4484. </fieldset>\
  4485. <fieldset>\
  4486. <div id="sites"><input type="checkbox" id="Show_progress_stats"> Show progress stats</div><br>\
  4487. </fieldset>\
  4488. <fieldset>\
  4489. <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>\
  4490. </fieldset>\
  4491. <fieldset>\
  4492. <p><input type="checkbox" id="Enable_Anonymizer"> Enable Anonymizer</div><div id="bulk">EXPERIMENTAL Note: Checkbox does not work use CTRL+ALT+Z.</p>\
  4493. <div id="sites"><label for="refAnonymizer">Refererer anonymizing service</label><input type="text" id="refAnonymizer" value="' + Ref_anonymize_service + '"></div>\
  4494. </fieldset>\
  4495. </div>\
  4496. </div>\
  4497. <div id="tabs-4" class="warlc-ui-tab">\
  4498. <p><b>Author:</b> <a href="http://www.warlc.5gbfree.com/viewtopic.php?f=12&t=12">mental</a></p>\
  4499. <br />\
  4500. <p><b>Currently supported:</b><br>\
  4501. Filehostings: ' + allHostNames.length + '<br />\
  4502. Containers: ' + allContainerNames.length + '<br />\
  4503. Obsolete sites: ' + allObsoleteNames.length + '<br /></p>\
  4504. <br />\
  4505. <p><b>Based on:</b><br>\
  4506. <a href="http://userscripts-mirror.org/scripts/show/125631.html">W.A.R. Links Checker - Dev</a></p>\
  4507. <br />\
  4508. <p><b>Uses:</b></p>\
  4509. <p>adam_3\'s <a href="http://userscripts-mirror.org/scripts/show/2254">Linkify ting</a> (modified)</p>\
  4510. <p><a href="http://jquery.com/">jQuery</a> JavaScript Library</p>\
  4511. <br />\
  4512. <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>\
  4513. </div>\
  4514. </div>\
  4515. </div>\
  4516. </div>';
  4517. $('body').append('<div id="hideshow">' + configurationinnerHTML + '</div>');
  4518. $("#warlc-conf-tabs").tabs({ fx: { opacity: 'toggle', duration: 'fast' } });
  4519. $("#imghideshow").click(function(event){$("#hideshow").hide(); event.preventDefault();});
  4520. var elmHostList = document.getElementById("warlcsitelist1");
  4521. var elmContainerList = document.getElementById("warlcsitelist2");
  4522. buildSettings();
  4523. buildSitelist("", allHostNames, elmHostList);
  4524. buildSitelist("", allContainerNames, elmContainerList);
  4525. if (DEBUG_MODE)
  4526. {
  4527. //log all sites availability status
  4528. diagSites();
  4529. }
  4530. //handler for checkbox state change
  4531. function changeConfiguration(e)
  4532. {
  4533. var element = e.target;
  4534.  
  4535. if (element.type == 'checkbox')
  4536. {
  4537. if (element.checked == 1)
  4538. {
  4539. GM_setValue(element.id, true);
  4540. }
  4541. else
  4542. {
  4543. GM_setValue(element.id, false);
  4544. }
  4545.  
  4546. }
  4547. setVariables();
  4548. }
  4549.  
  4550. //Selects all filehosting checkboxes
  4551. function selectAll()
  4552. {
  4553. $(":checkbox:visible:not(:checked)").prop("checked",true)
  4554. .each(function(index, element){GM_setValue(this.id, true)});
  4555. }
  4556.  
  4557. //Deselects all filehosting checkboxes
  4558. function selectNone()
  4559. {
  4560. $(":checkbox:visible:checked").prop("checked",false)
  4561. .each(function(index, element){GM_setValue(this.id, false)});
  4562. }
  4563.  
  4564. //Inverts filehosting checkboxes selection
  4565. function selectInvert()
  4566. {
  4567. var $checked = $(":checkbox:visible:checked");
  4568. var $unchecked = $(":checkbox:visible:not(:checked)");
  4569. $unchecked.prop("checked",true)
  4570. .each(function(index, element){GM_setValue(this.id, true)});
  4571. $checked.prop("checked",false)
  4572. .each(function(index, element){GM_setValue(this.id, false)});
  4573. }
  4574. //toggles anonymizer on off
  4575. function Enable_Anonymizer()
  4576. {
  4577. var $checked = $(":checkbox:visible:checked");
  4578. var $unchecked = $(":checkbox:visible:not(:checked)");
  4579. $unchecked.prop("checked",true)
  4580. .each(function(index, element){GM_setValue(this.id, true)});
  4581. $checked.prop("checked",false)
  4582. .each(function(index, element){GM_setValue(this.id, false)});
  4583. }
  4584.  
  4585. function changeRefAnonymizer(){
  4586. GM_setValue("Ref_anonymize_service", $("#refAnonymizer").attr("value"));
  4587. }
  4588.  
  4589. //Sets live links color
  4590. function changeColorLive()
  4591. {
  4592. var inColorLive = document.getElementById("inputColorLive");
  4593. inColorLive.style.background = inColorLive.value;
  4594. GM_setValue("Live_links_color", inColorLive.value);
  4595. }
  4596.  
  4597. //Sets dead links color
  4598. function changeColorDead()
  4599. {
  4600. var inColorDead = document.getElementById("inputColorDead");
  4601. inColorDead.style.background = inColorDead.value;
  4602. GM_setValue("Dead_links_color", inColorDead.value);
  4603. }
  4604.  
  4605. //Sets temp. unavailable links color
  4606. function changeColorTemp()
  4607. {
  4608. var inColorTemp = document.getElementById("inputColorTemp");
  4609. inColorTemp.style.background = inColorTemp.value;
  4610. GM_setValue("Temp_unavailable_links_color", inColorTemp.value);
  4611. }
  4612.  
  4613. //Sets temp. unavailable links color
  4614. function changeColorCont()
  4615. {
  4616. var inColorCont = document.getElementById("inputColorCont");
  4617. inColorCont.style.background = inColorCont.value;
  4618. GM_setValue("Container_links_color", inColorCont.value);
  4619. }
  4620. //Sets premium. links color
  4621. function changeColorprem()
  4622. {
  4623. var inColorprem = document.getElementById("inputColorprem");
  4624. inColorprem.style.background = inColorprem.value;
  4625. GM_setValue("Premium_links_color", inColorprem.value);
  4626. }
  4627.  
  4628. //Diagnose sites for availability
  4629. function diagSites()
  4630. {
  4631. var boxes = document.getElementById("warlcsitelist1").getElementsByTagName("input");
  4632.  
  4633. for (var i = 0, n = boxes.length - 1; i < n; i++)
  4634. {
  4635. if (boxes[i].type == "checkbox")
  4636. {
  4637. checkAvailability(boxes[i]);
  4638. }
  4639. }
  4640.  
  4641. boxes = document.getElementById("warlcsitelist2").getElementsByTagName("input");
  4642.  
  4643. for (var i = 0, n = boxes.length - 1; i < n; i++)
  4644. {
  4645. if (boxes[i].type == "checkbox")
  4646. {
  4647. checkAvailability(boxes[i]);
  4648. }
  4649. }
  4650.  
  4651. function checkAvailability(cbElm)
  4652. {
  4653. var cb = cbElm;
  4654. GM_xmlhttpRequest(
  4655. {
  4656. method: 'HEAD',
  4657. url: 'http://' + cb.nextSibling.textContent.replace(' ', ''),
  4658. headers: {
  4659. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  4660. 'Accept': 'text/xml',
  4661. 'Referer': ""
  4662. },
  4663. onload: function (result)
  4664. {
  4665. if (result.status != 200)
  4666. {
  4667. GM_log(cb.nextSibling.textContent + ' --- status: [' + result.status + '] ' + result.statusText + ', final url: ' + result.finalUrl);
  4668. }
  4669. },
  4670. onerror: function (result)
  4671. {
  4672. if (result.status != 200)
  4673. {
  4674. GM_log(cb.nextSibling.textContent + ' --- status: [' + result.status + '] ' + result.statusText + ', final url: ' + result.finalUrl);
  4675. }
  4676. }
  4677. });
  4678. }
  4679. }
  4680. function buildSettings()
  4681. {
  4682. $(".warlcsettings :checkbox").each(function(){
  4683. $(this).prop("checked", GM_getValue($(this).attr("id")))
  4684. .click(function(e){
  4685. GM_setValue($(this).attr("id"), $(this).prop("checked"));
  4686. setVariables();
  4687. });
  4688. })
  4689. }
  4690. //Dynamic build of host list
  4691. //param search [string] searches for hostnames matching search substring
  4692. //param siteNames [array] array of site names
  4693. //param targetNode [DOM Node] where the list should be built
  4694. // first child node is replaced
  4695. function buildSitelist(search, siteNames, targetNode)
  4696. {
  4697. var searchRegex = new RegExp("\\|?([\\w\\.-]*" + search.replace(/\./g,"\\.").replace(/-/g, "\\-") + "[\\w\\.-]*)\\|?", "i");
  4698. var $targetNode = $(targetNode).empty();
  4699. var searchedSite = "";
  4700. $.each(siteNames, function(i, site){
  4701. if (searchedSite = site.match(searchRegex))
  4702. {
  4703. var baseSite = site.replace(/\|.+/, ""); //filehosting main domain
  4704. //ensuring backward compatibility with the rest of code, to be refactored later
  4705. var oldRSLCvalue = "Check_" + baseSite.replace(/\|.+/, "").replace(/\./g,"_dot_").replace(/-/g, "_dash_") + "_links";
  4706. //
  4707. $targetNode.append('<input type="checkbox" id="' + oldRSLCvalue +'" />\
  4708. <label for="' + oldRSLCvalue + '">' + searchedSite[1] + '</label>' +
  4709. ((searchedSite[1] != baseSite) ? ('<div id="note"> ( ~ ' + baseSite + ' )</div>') : (""))
  4710. );
  4711. $("#" + oldRSLCvalue).prop("checked", GM_getValue(oldRSLCvalue, false))
  4712. .change(changeConfiguration);
  4713. $targetNode.append('<br />');
  4714. }
  4715. });
  4716. $targetNode.append("<hr>");
  4717. //obsolete hosts checkbox
  4718. $targetNode.append('<input type="checkbox" id="Obsolete_file_hosts" /><label for="Obsolete_file_hosts">Obsolete file hosts</label>');
  4719. $("#Obsolete_file_hosts").prop("checked", GM_getValue("Obsolete_file_hosts", false))
  4720. .change(changeConfiguration);
  4721. $targetNode.append('<br />');
  4722. var foundName = "";
  4723. $.each(allObsoleteNames, function(i, site){
  4724. if (foundName = allObsoleteNames[i].match(searchRegex))
  4725. {
  4726. $targetNode.append('<div id="note">' + foundName[1] + '</div>');
  4727. }
  4728. })
  4729. }
  4730. var hostSearchBox = document.getElementById("hostSearchBox");
  4731. hostSearchBox.addEventListener('keyup', function(){buildSitelist(hostSearchBox.value, allHostNames, elmHostList);}, false);
  4732. var hostSearchBox2 = document.getElementById("hostSearchBox2");
  4733. hostSearchBox2.addEventListener('keyup', function(){buildSitelist(hostSearchBox2.value, allContainerNames, elmContainerList);}, false);
  4734. $(".warlc-ui-select-all").click(selectAll).button();
  4735. $(".warlc-ui-select-none").click(selectNone).button();
  4736. $(".warlc-ui-select-invert").click(selectInvert).button();
  4737. $(".warlc-ui-buttonset").buttonset();
  4738. var inColorLive = document.getElementById("inputColorLive");
  4739. inColorLive.addEventListener('keyup', changeColorLive, false);
  4740.  
  4741. var inColorDead = document.getElementById("inputColorDead");
  4742. inColorDead.addEventListener('keyup', changeColorDead, false);
  4743.  
  4744. var inColorTemp = document.getElementById("inputColorTemp");
  4745. inColorTemp.addEventListener('keyup', changeColorTemp, false);
  4746.  
  4747. var inColorCont = document.getElementById("inputColorCont");
  4748. inColorCont.addEventListener('keyup', changeColorCont, false);
  4749. var inColorprem = document.getElementById("inputColorprem");
  4750. inColorprem.addEventListener('keyup', changeColorprem, false);
  4751. $("#refAnonymizer").change(changeRefAnonymizer);
  4752. //buttons and edit boxes init end
  4753.  
  4754. //icon sets radio buttons
  4755. var radioButtons = document.getElementsByName("warlciconset");
  4756. radioButtons[Icon_set].checked = "checked";
  4757.  
  4758. radioButtons[0].addEventListener("change", updateIconSet);
  4759. radioButtons[1].addEventListener("change", updateIconSet);
  4760. radioButtons[2].addEventListener("change", updateIconSet);
  4761. radioButtons[3].addEventListener("change", updateIconSet);
  4762. function updateIconSet()
  4763. {
  4764. GM_setValue("Icon_set", this.value * 1);
  4765. }
  4766. //
  4767. $('#showCustomRulesReference').click(function(e){
  4768. e.preventDefault();
  4769. $('#customRulesReference').toggle();
  4770. });
  4771. $('#Custom_rules_text')
  4772. .val(Custom_rules_text)
  4773. .change(saveCustomRules);
  4774. function saveCustomRules(e)
  4775. {
  4776. var cr = parseCustomRules(this.value);
  4777. if (cr.info.length)
  4778. 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, ' '));
  4779. GM_setValue('Custom_rules_text', this.value);
  4780. GM_setValue('last_custom_rules_nag', ''+new Date().getTime()); //reset nag
  4781. }
  4782. }
  4783.  
  4784. //begin standard link checking algorithm
  4785. function start(filterId)
  4786. {
  4787. var doNotLinkify = Do_not_linkify_DL_links;
  4788.  
  4789. // USER SELECTED FILE HOSTS INITIALIZATION START
  4790. var http_file_hosts = new Array(); //standard hostings
  4791. var http_file_hosts_coded = new Array(); //hostings which has to be decoded to obtain real checkable link
  4792. var http_file_hosts_obsolete = new Array(); //dead hostings
  4793. var http_file_hosts_headers_only = new Array(); //hostings with direct download, must be handled via headers only
  4794.  
  4795. initFileHosts();
  4796. initFileHostsHeadersOnly();
  4797. initFileHostsCustom(); //CustomRules
  4798. // USER SELECTED FILE HOSTS INITIALIZATION END
  4799.  
  4800. // LINKIFICATION START
  4801. var totalxpath = '';
  4802. var totalxpathcoded = '';
  4803. var totalxpathobsolete = '';
  4804. var totalxpathheadersonly = '';
  4805. var totalourls = '';
  4806.  
  4807. var filehostLen = http_file_hosts.length;
  4808. var filehostCodedLen = http_file_hosts_coded.length;
  4809. var filehostObsoleteLen = http_file_hosts_obsolete.length;
  4810. var filehostHeadersOnlyLen = http_file_hosts_headers_only.length;
  4811.  
  4812. var filehostIdx = filehostLen;
  4813. var filehostCodedIdx = filehostCodedLen;
  4814. var filehostObsoleteIdx = filehostObsoleteLen;
  4815. var filehostHeadersOnlyIdx = filehostHeadersOnlyLen;
  4816.  
  4817. if ((filehostIdx == 0) && (filehostCodedIdx == 0) && (filehostHeadersOnlyIdx == 0) && (filehostObsoleteIdx == 0))
  4818. return;
  4819.  
  4820. while (filehostIdx--)
  4821. {
  4822. totalourls += http_file_hosts[filehostIdx][0] + '|';
  4823. totalxpath += http_file_hosts[filehostIdx][4] + '|';
  4824. }
  4825.  
  4826. while (filehostCodedIdx--)
  4827. {
  4828. totalourls += http_file_hosts_coded[filehostCodedIdx][0] + '|';
  4829. totalxpathcoded += http_file_hosts_coded[filehostCodedIdx][3] + '|';
  4830. }
  4831.  
  4832. while (filehostObsoleteIdx--)
  4833. {
  4834. totalourls += http_file_hosts_obsolete[filehostObsoleteIdx][0] + '|';
  4835. totalxpathobsolete += http_file_hosts_obsolete[filehostObsoleteIdx][1] + '|';
  4836. }
  4837.  
  4838. while (filehostHeadersOnlyIdx--)
  4839. {
  4840. totalourls += http_file_hosts_headers_only[filehostHeadersOnlyIdx][0] + '|';
  4841. totalxpathheadersonly += http_file_hosts_headers_only[filehostHeadersOnlyIdx][3] + '|';
  4842. }
  4843.  
  4844. totalourls = totalourls.replace(/\|$/g, "");
  4845. //TODO: further refactoring needed
  4846. totalxpath = totalxpath.replace(/\]\|\/\/a\[/g, " or ");
  4847. totalxpath = totalxpath.replace(/\]\|/, ')]');
  4848. totalxpathcoded = totalxpathcoded.replace(/\]\|\/\/a\[/g, " or ");
  4849. totalxpathcoded = totalxpathcoded.replace(/\]\|/, ')]');
  4850. totalxpathobsolete = totalxpathobsolete.replace(/\]\|\/\/a\[/g, " or ");
  4851. totalxpathobsolete = totalxpathobsolete.replace(/\]\|/, ')]');
  4852. totalxpathheadersonly = totalxpathheadersonly.replace(/\]\|\/\/a\[/g, " or ");
  4853. totalxpathheadersonly = totalxpathheadersonly.replace(/\]\|/, ')]');
  4854. if (filterId != null) //insert id restriction in the xpath
  4855. {
  4856. totalxpath = totalxpath.replace(/\[/g, "[@class='" + filterId + "' and (");
  4857. totalxpathcoded = totalxpathcoded.replace(/\[/g, "[@class='" + filterId + "' and (");
  4858. totalxpathobsolete = totalxpathobsolete.replace(/\[/g, "[@class='" + filterId + "' and (");
  4859. totalxpathheadersonly = totalxpathheadersonly.replace(/\[/g, "[@class='" + filterId + "' and (");
  4860. }
  4861. else
  4862. {
  4863. totalxpath = totalxpath.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4864. totalxpathcoded = totalxpathcoded.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4865. totalxpathobsolete = totalxpathobsolete.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4866. totalxpathheadersonly = totalxpathheadersonly.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4867. }
  4868. linkify(totalourls);
  4869. //LINKIFICATION END
  4870. //ENCRYPTED LINKS PROCESSING START
  4871. if (http_file_hosts_coded.length > 0)
  4872. {
  4873. var linksCoded = document.evaluate(totalxpathcoded, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4874.  
  4875. // decrypt coded links (redirects, link protectors etc.)
  4876. if (linksCoded.snapshotLength > 0)
  4877. {
  4878. var link;
  4879. var reallinkreg;
  4880. var reallinkcorrection;
  4881.  
  4882. if (filterId == null)
  4883. {
  4884. cLinksTotal += linksCoded.snapshotLength;
  4885. }
  4886.  
  4887. var y = linksCoded.snapshotLength - 1;
  4888. do
  4889. {
  4890. // linksCoded.snapshotItem(y).id = 'processing_link';
  4891. link = linksCoded.snapshotItem(y);
  4892. filehostIdx = filehostCodedLen;
  4893. while (filehostIdx--)
  4894. {
  4895. if (link.href.match(http_file_hosts_coded[filehostIdx][0]))
  4896. {
  4897. link.href = link.href.replace(/http:\/\/.*?(?:\?|=)http:\/\//, 'http://');
  4898. reallinkreg = http_file_hosts_coded[filehostIdx][1];
  4899. reallinkcorrection = http_file_hosts_coded[filehostIdx][2];
  4900.  
  4901. decurl(link, reallinkreg, reallinkcorrection);
  4902. break;
  4903. }
  4904. }
  4905. }
  4906. while (y--);
  4907. }
  4908. }
  4909. //ENCRYPTED LINKS PROCESSING END
  4910.  
  4911. //STANDARD LINKCHECKING START
  4912. if (http_file_hosts.length > 0)
  4913. {
  4914. var lianks = document.evaluate(totalxpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4915.  
  4916. if (filterId == null)
  4917. {
  4918. cLinksTotal += lianks.snapshotLength;
  4919. }
  4920.  
  4921. if (lianks.snapshotLength > 0)
  4922. {
  4923. var link;
  4924.  
  4925. var URL = "";
  4926. var name = "";
  4927. var isAliveRegex = "";
  4928. var isDeadRegex = "";
  4929. var isUnavaRegex = "";
  4930. var ispremRegex = "";
  4931. var tryLoop = false;
  4932.  
  4933. var y = lianks.snapshotLength;
  4934.  
  4935. while (y--)
  4936. {
  4937. link = lianks.snapshotItem(y);
  4938.  
  4939. filehostIdx = filehostLen;
  4940. while (filehostIdx--)
  4941. {
  4942. if (link.href.match(http_file_hosts[filehostIdx][0]))
  4943. {
  4944. link.href = link.href.replace(/http:\/\/.*?http:\/\//, 'http://'); //anonymizers
  4945. isAliveRegex = http_file_hosts[filehostIdx][1];
  4946. isDeadRegex = http_file_hosts[filehostIdx][2];
  4947. isUnavaRegex = http_file_hosts[filehostIdx][3];
  4948. ispremRegex = http_file_hosts[filehostIdx][6];
  4949. tryLoop = http_file_hosts[filehostIdx][5];
  4950.  
  4951. geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, tryLoop);
  4952.  
  4953. break;
  4954. }
  4955. }
  4956. }
  4957. }
  4958. }
  4959. //STANDARD LINKCHECKING END
  4960. //OBSOLETE FILE HOSTS PROCESSING START
  4961. if (filehostObsoleteLen > 0)
  4962. {
  4963. var obsoletelinks = document.evaluate(totalxpathobsolete, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4964.  
  4965. var obsoleteLink;
  4966.  
  4967. //check links
  4968. if (obsoletelinks.snapshotLength > 0)
  4969. {
  4970. var y = obsoletelinks.snapshotLength;
  4971.  
  4972. if (filterId == null)
  4973. {
  4974. cLinksTotal += y;
  4975. }
  4976.  
  4977. while (y--)
  4978. {
  4979. obsoleteLink = obsoletelinks.snapshotItem(y);
  4980.  
  4981. if (Display_tooltip_info)
  4982. {
  4983. obsoleteLink.warlc_error = 'Cause of error: <b>Obsolete filehosting.</b>';
  4984. }
  4985. displayTheCheckedLink(obsoleteLink, 'adead_link');
  4986. }
  4987. }
  4988. }
  4989. //OBSOLETE FILE HOSTS PROCESSING END
  4990.  
  4991. //DIRECT LINKCHECKING START
  4992. if (http_file_hosts_headers_only.length > 0)
  4993. {
  4994. var links = document.evaluate(totalxpathheadersonly, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4995.  
  4996. //check links
  4997. if (links.snapshotLength > 0)
  4998. {
  4999. var link;
  5000. var isAliveRegex;
  5001. var isDeadRegex;
  5002. var ispremRegex;
  5003.  
  5004. var y = links.snapshotLength;
  5005.  
  5006.  
  5007. if (filterId == null)
  5008. {
  5009. cLinksTotal += y;
  5010. }
  5011.  
  5012. while (y--)
  5013. {
  5014. // links.snapshotItem(y).id = 'processing_link';
  5015. link = links.snapshotItem(y);
  5016. filehostIdx = filehostHeadersOnlyLen;
  5017. while (filehostIdx--)
  5018. {
  5019. if (link.href.match(http_file_hosts_headers_only[filehostIdx][0]))
  5020. {
  5021. link.href = link.href.replace(/http:\/\/.*?(?:\?|=)http:\/\//, 'http://');
  5022. isAliveRegex = http_file_hosts_headers_only[filehostIdx][1];
  5023. isDeadRegex = http_file_hosts_headers_only[filehostIdx][2];
  5024. ispremRegex = http_file_hosts_headers_only[filehostIdx][3];
  5025.  
  5026. geturlHeader(link, isAliveRegex, isDeadRegex, ispremRegex);
  5027.  
  5028. break;
  5029. }
  5030. }
  5031. }
  5032.  
  5033. }
  5034. }
  5035. //DIRECT LINKCHECKING END
  5036.  
  5037.  
  5038. //finds the real url on the page, replaces link.href with it and calls geturl
  5039. function decurl(link, reallinkreg, reallinkcorrection)
  5040. {
  5041.  
  5042. GM_xmlhttpRequest(
  5043. {
  5044. method: 'GET',
  5045. url: link.href,
  5046. headers: {
  5047. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  5048. 'Accept': 'text/xml',
  5049. 'Referer': ""
  5050. },
  5051. onload: function (result)
  5052. {
  5053. // cLinksProcessed++;
  5054.  
  5055. var reallink = result.responseText.match(reallinkreg)[0];
  5056. reallink = reallink.replace(new RegExp(reallinkcorrection, "g"), "");
  5057.  
  5058. link.href = reallink;
  5059.  
  5060. var i = http_file_hosts.length - 1;
  5061. do
  5062. {
  5063. if ((reallink.match(http_file_hosts[i][0])))
  5064. {
  5065. link.href = link.href.replace(/http:\/\/.*?\?http:\/\//, 'http://');
  5066. var isAliveRegex = http_file_hosts[i][1];
  5067. var isDeadRegex = http_file_hosts[i][2];
  5068. var isUnavaRegex = http_file_hosts[i][3];
  5069. var ispremRegex = http_file_hosts[i][4];
  5070.  
  5071. geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, 50);
  5072.  
  5073. break;
  5074. }
  5075. }
  5076. while (i--);
  5077. }
  5078. });
  5079. }
  5080.  
  5081. function randUA()
  5082. {
  5083. //TODO
  5084. }
  5085. //Processes link
  5086. //
  5087. // [string] link link URL
  5088. // [string] isAliveRegex alive link regex
  5089. // [string] isDeadRegex dead link regex
  5090. // [string] isUnavaRegex unavailable link regex
  5091. // [string] ispremRegex premium link regex
  5092. // [boolean] tryLoop repeats request until succeeded
  5093. function geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, tryLoop)
  5094. {
  5095. GM_xmlhttpRequest(
  5096. {
  5097. method: 'GET',
  5098. url: link.href,
  5099. headers: {
  5100. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  5101. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  5102. 'Referer': ""
  5103. },
  5104. onload: function (result)
  5105. {
  5106. var res = result.responseText;
  5107. if (result.responseHeaders.match(/Content-Disposition: attachment; filename=/))//direct download, simple version
  5108. {
  5109. displayTheCheckedLink(link, 'alive_link');
  5110. return;
  5111. }
  5112.  
  5113. if (res.match(isAliveRegex))
  5114. {
  5115. displayTheCheckedLink(link, 'alive_link');
  5116. return;
  5117. }
  5118.  
  5119. if (res.match(isDeadRegex))
  5120. {
  5121. displayTheCheckedLink(link, 'adead_link');
  5122. return;
  5123. }
  5124.  
  5125. if (isUnavaRegex && res.match(isUnavaRegex))
  5126. {
  5127. displayTheCheckedLink(link, 'unava_link');
  5128. return;
  5129. }
  5130. if (res.match(ispremRegex))
  5131. {
  5132. displayTheCheckedLink(link, 'prem_link');
  5133. return;
  5134. }
  5135.  
  5136. var resStatus = result.status;
  5137.  
  5138. if (resStatus == 404)
  5139. {
  5140. displayTheCheckedLink(link, 'adead_link');
  5141. }
  5142. if (resStatus == 500 || resStatus == 503 || resStatus == 403) //not found/available/temp. unava
  5143. {
  5144. if (tryLoop)
  5145. {
  5146. //wait 1-5 seconds and repeat the request
  5147. setTimeout(function(){geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, tryLoop)}, 1000 + (Math.random() * 4000));
  5148. }
  5149. else
  5150. {
  5151. displayTheCheckedLink(link, 'unava_link');
  5152. }
  5153.  
  5154. return;
  5155. }
  5156. },
  5157. onerror: function ()
  5158. {
  5159. displayTheCheckedLink(link, 'unava_link');
  5160. }
  5161. });
  5162. }
  5163.  
  5164. function geturlHeader(link, isAliveRegex, isDeadRegex, ispremRegex)
  5165. {
  5166. GM_xmlhttpRequest(
  5167. {
  5168. method: 'HEAD',
  5169. url: link.href,
  5170. headers: {
  5171. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  5172. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  5173. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  5174. 'Referer': ""
  5175. },
  5176. onload: function (result)
  5177. {
  5178. var resStatus = result.status;
  5179. var resHeaders = "";
  5180. if (resStatus == 403 || resStatus == 404 || resStatus == 500) //not found/available
  5181. {
  5182. displayTheCheckedLink(link, 'adead_link');
  5183. return;
  5184. }
  5185.  
  5186. resHeaders = result.responseHeaders;
  5187.  
  5188. if (resHeaders.match(isDeadRegex))
  5189. {
  5190. displayTheCheckedLink(link, 'adead_link');
  5191. return;
  5192. }
  5193.  
  5194. if (resHeaders.match(isAliveRegex))
  5195. {
  5196. displayTheCheckedLink(link, 'alive_link');
  5197. return;
  5198. }
  5199. if (resHeaders.match(ispremRegex))
  5200. {
  5201. displayTheCheckedLink(link, 'prem_link');
  5202. return;
  5203. }
  5204. },
  5205. onerror: function ()
  5206. {
  5207. displayTheCheckedLink(link, 'unava_link');
  5208. }
  5209. });
  5210. }
  5211.  
  5212. //Delinkfifies the <a> element object
  5213. function delinkifyLink(link)
  5214. {
  5215. var spanElm = document.createElement("span");
  5216. spanElm.className = link.className;
  5217. spanElm.innerHTML = link.innerHTML;
  5218.  
  5219. if (Display_tooltip_info)
  5220. {
  5221. spanElm.href = link.href;
  5222. spanElm.warlc_error = link.warlc_error;
  5223. switch (link.className){
  5224. case "alive_link": spanElm.addEventListener("mouseover", displayTooltipInfo, false); break
  5225. case "adead_link": spanElm.addEventListener("mouseover", displayTooltipError, false); break;
  5226. case "unava_link": //reserved
  5227. case "prem_link": spanElm.addEventListener("mouseover", displayTooltipError, false); break;
  5228. default:
  5229. }
  5230. }
  5231. link.parentNode.replaceChild(spanElm, link);
  5232. }
  5233.  
  5234. //Assigns result status to the <a> element object and calls delinkifying eventually
  5235. //Possible result states: adead_link, alive_link, unava_link, prem_link
  5236. function displayTheCheckedLink(link, resultStatus)
  5237. {
  5238. link.className = resultStatus;
  5239. link.href = Ref_anonymize_service + link.href;
  5240. if (Display_tooltip_info)
  5241. {
  5242. switch (resultStatus){
  5243. case "alive_link": link.addEventListener("mouseover", displayTooltipInfo, false); break
  5244. case "adead_link": link.addEventListener("mouseover", displayTooltipError, false); break;
  5245. case "unava_link": //reserved
  5246. case "prem_link": link.addEventListener("mouseover", displayTooltipInfo, false); break
  5247. default:
  5248. }
  5249. }
  5250. if (doNotLinkify)
  5251. {
  5252. delinkifyLink(link);
  5253. }
  5254. cLinksProcessed++;
  5255.  
  5256. if (resultStatus == "alive_link")
  5257. {
  5258. cLinksAlive++;
  5259. return;
  5260. }
  5261.  
  5262. if (resultStatus == "adead_link")
  5263. {
  5264. cLinksDead++;
  5265. return;
  5266. }
  5267.  
  5268. if (resultStatus == "unava_link")
  5269. {
  5270. cLinksUnava++;
  5271. }
  5272. if (resultStatus == "prem_link")
  5273. {
  5274. cLinksprem++;
  5275. return;
  5276. }
  5277. }
  5278.  
  5279.  
  5280. function initFileHosts()
  5281. {
  5282.  
  5283. function addObsoleteHost(linkRegex, xpathEx)
  5284. {
  5285. var host = new Array(2);
  5286. host[0] = linkRegex;
  5287. host[1] = xpathEx;
  5288. http_file_hosts_obsolete.push(host);
  5289. }
  5290.  
  5291. //obsolete file hosts init start
  5292. if (Obsolete_file_hosts)
  5293. {
  5294. addObsoleteHost("uloz\.cz\/show\/file","//a[contains(@href,'uloz.cz')]");
  5295. addObsoleteHost("storage\\.to\/get","//a[contains(@href,'storage.to')]");
  5296. addObsoleteHost("iskladka\\.cz\/download","//a[contains(@href,'iskladka.cz')]");
  5297. addObsoleteHost("file-rack\\.com\/files","//a[contains(@href,'file-rack.com')]");
  5298. addObsoleteHost("fast-load\\.net\/(\/)?index","//a[contains(@href,'fast-load.net')]");
  5299. addObsoleteHost("subory\\.sk\/download","//a[contains(@href,'subory.sk')]");
  5300. addObsoleteHost("bigandfree\\.com\/\\d+","//a[contains(@href,'bigandfree.com')]");
  5301. addObsoleteHost("fileop\\.com\/\\w+","//a[contains(@href,'fileop.com')]");
  5302. addObsoleteHost("mujsoubor\\.cz\/file\/","//a[contains(@href,'mujsoubor.cz')]");
  5303. addObsoleteHost("sendfile\\.to\/\\w+","//a[contains(@href,'sendfile.to')]");
  5304. addObsoleteHost("superfastfile\\.com\/\\w+","//a[contains(@href,'superfastfile.com')]");
  5305. addObsoleteHost("quickyshare\\.com\/\\w+","//a[contains(@href,'quickyshare.com/')]");
  5306. addObsoleteHost("duckload\\.com\/(?:d|play)","//a[contains(@href,'duckload.com')]");
  5307. addObsoleteHost("uploadstore\\.net\/\\w+","//a[contains(@href,'uploadstore.net')]");
  5308. addObsoleteHost("meinupload\\.com\/dl\/\\d+","//a[contains(@href,'meinupload.com/dl')]");
  5309. addObsoleteHost("dualshare\\.com\/\\w+","//a[contains(@href,'dualshare.com')]");
  5310. addObsoleteHost("2xupload\\.(?:to|de)\/file\/\\w+","//a[contains(@href,'2xupload.to') or contains(@href,'2xupload.de')]");
  5311. addObsoleteHost("oxedion\\.com\/index\\.php\/download\/\\w+","//a[contains(@href,'oxedion.com/index')]");
  5312. addObsoleteHost("uploadline\\.com\/\\d+","//a[contains(@href,'uploadline.com')]");
  5313. addObsoleteHost("dll\\.bz\/file\/\\d+","//a[contains(@href,'dll.bz/file')]");
  5314. addObsoleteHost("movieshare\\.in\/\\w+","//a[contains(@href,'movieshare.in')]");
  5315. addObsoleteHost("milledrive\\.com\/files\/\\d+","//a[contains(@href,'milledrive.com')]");
  5316. addObsoleteHost("quickupload\\.net\/\\w+","//a[contains(@href,'quickupload.net')]");
  5317. addObsoleteHost("safelink\\.in\/\\w+","//a[contains(@href,'safelink.in')]");
  5318. addObsoleteHost("pyramidfiles\\.com\/\\w+","//a[contains(@href,'pyramidfiles.com/')]");
  5319. addObsoleteHost("(?:cloudnator|shragle)\\.com\/files","//a[contains(@href,'cloudnator.com/files') or contains(@href,'shragle.com/files')]");
  5320. addObsoleteHost("batshare\\.com\/\\w+","//a[contains(@href,'batshare.com/')]");
  5321. addObsoleteHost("bitroad\\.net\/download","//a[contains(@href,'bitroad.net/download')]");
  5322. addObsoleteHost("metadivx\\.com\/\\w+","//a[contains(@href,'metadivx.com')]");
  5323. addObsoleteHost("filegaze\\.com\/\\w+","//a[contains(@href,'filegaze.com/')]");
  5324. addObsoleteHost("bulletupload\\.com\/\\w+","//a[contains(@href,'bulletupload.com/')]");
  5325. addObsoleteHost("sharefilehost\\.com\/\\w+","//a[contains(@href,'sharefilehost.com/')]");
  5326. addObsoleteHost("fireuploads\\.net\/\\w+","//a[contains(@href,'fireuploads.net/')]");
  5327. addObsoleteHost("divxlink\\.com\/\\w+","//a[contains(@href,'divxlink.com/')]");
  5328. addObsoleteHost("bzlink\\.us\/\\w+","//a[contains(@href,'bzlink.us/')]");
  5329. addObsoleteHost("filetechnology\\.com\/\\w+","//a[contains(@href,'filetechnology.com/')]");
  5330. addObsoleteHost("filecosy\\.com\/\\w+","//a[contains(@href,'filecosy.com/')]");
  5331. addObsoleteHost("fileserver\\.cc\/\\w+","//a[contains(@href,'fileserver.cc/')]");
  5332. addObsoleteHost("shafiles\\.me\/\\w+","//a[contains(@href,'shafiles.me/')]");
  5333. addObsoleteHost("xfileshare\\.eu\/\\w+","//a[contains(@href,'xfileshare.eu/')]");
  5334. addObsoleteHost("uploadboost\\.com\/\\w+","//a[contains(@href,'uploadboost.com/')]");
  5335. addObsoleteHost("uploadoz\\.com\/\\w+","//a[contains(@href,'uploadoz.com/')]");
  5336. addObsoleteHost("ihostia\\.com\/\\w+","//a[contains(@href,'ihostia.com/')]");
  5337. addObsoleteHost("shareupload\\.com\/\\w+","//a[contains(@href,'shareupload.com/')]");
  5338. addObsoleteHost("ovfile\\.com\/\\w+","//a[contains(@href,'ovfile.com/')]");
  5339. addObsoleteHost("stahuj\\.to\/\\w+","//a[contains(@href,'stahuj.to/')]");
  5340. addObsoleteHost("gigfiles\\.net\/\\w+","//a[contains(@href,'gigfiles.net/')]");
  5341. addObsoleteHost("vidhog\\.com\/\\w+","//a[contains(@href,'vidhog.com/')]");
  5342. addObsoleteHost("filelaser\\.com\/\\w+","//a[contains(@href,'filelaser.com/')]");
  5343. addObsoleteHost("holderfile\\.com\/\\w+","//a[contains(@href,'holderfile.com/')]");
  5344. addObsoleteHost("fileduct\\.(?:com|net)\/\\w+","//a[contains(@href,'fileduct.com/') or contains(@href,'fileduct.net')]");
  5345. addObsoleteHost("filefat\\.com\/\\w+","//a[contains(@href,'filefat.com/')]");
  5346. addObsoleteHost("restfile\\.com\/\\w+","//a[contains(@href,'restfile.com/')]");
  5347. addObsoleteHost("filemashine\\.com\\/download\/\\w+","//a[contains(@href,'filemashine.com/download')]");
  5348. addObsoleteHost("cloudnxt\\.net\/\\w+","//a[contains(@href,'cloudnxt.net/')]");
  5349. addObsoleteHost("uploadrack\\.com\/\\w+","//a[contains(@href,'uploadrack.com')]");
  5350. addObsoleteHost("teradepot\\.com\/\\w+","//a[contains(@href,'teradepot.com')]");
  5351. addObsoleteHost("dataup\\.to\/\\d+\/","//a[contains(@href,'dataup.to')]");
  5352. addObsoleteHost("upit\\.to\/file:\\d+","//a[contains(@href,'upit.to/file')]");
  5353. addObsoleteHost("badongo\\.(?:com|net)\/(?:\\w\\w\/|)(?:vid|cfile|file|pt)\/\\w+","//a[contains(@href,'badongo.com') or contains(@href,'badongo.net')]");
  5354. addObsoleteHost("driveway\\.com\/\\w+","//a[contains(@href,'driveway.com')]");
  5355. addObsoleteHost("eatlime\\.com\/download","//a[contains(@href,'eatlime.com/download')]");
  5356. addObsoleteHost("a2zuploads\\.com\/id\\w+","//a[contains(@href,'a2zuploads.com/id')]");
  5357. addObsoleteHost("friendlyfiles\\.net\/download\/\\w+\/","//a[contains(@href,'friendlyfiles.net/download')]");
  5358. addObsoleteHost("flyfile\\.us\/\\w+","//a[contains(@href,'flyfile.us')]");
  5359. addObsoleteHost("speedyshare\\.com\/\\w+","//a[contains(@href,'speedyshare.com')]");
  5360. addObsoleteHost("brontofile\\.com\/download","//a[contains(@href,'brontofile.com/download')]");
  5361. addObsoleteHost("uploadspace\\.eu\/\\w+","//a[contains(@href,'uploadspace.eu')]");
  5362. addObsoleteHost("fooget\\.com\/\\w+","//a[contains(@href,'fooget.com/')]");
  5363. addObsoleteHost("file-bit.net\/\\w+","//a[contains(@href,'file-bit.net/')]");
  5364. addObsoleteHost("keepfile\\.com\/\\w+","//a[contains(@href,'http://keepfile.com')]");
  5365. addObsoleteHost("piggyshare\\.com\/file\/\\w+","//a[contains(@href,'piggyshare.com')]");
  5366. addObsoleteHost("filecrown\\.com\/\\w+","//a[contains(@href,'filecrown.com')]");
  5367. addObsoleteHost("6giga\\.com\/\\w+","//a[contains(@href,'6giga.com')]");
  5368. addObsoleteHost("uploadjockey\\.com\/download\/\\w+","//a[contains(@href,'uploadjockey.com/download')]");
  5369. addObsoleteHost("bluehost\\.to\/dl=\\w+","//a[contains(@href,'bluehost.to')]");
  5370. addObsoleteHost("coolshare\\.cz\/stahnout\/\\w+","//a[contains(@href,'coolshare.cz/stahnout')]");
  5371. addObsoleteHost("filegu\\.ru\/f\/\\w+","//a[contains(@href,'filegu.ru/f')]");
  5372. addObsoleteHost("filebase\\.to\/files\/\\d+\/","//a[contains(@href,'filebase.to/files')]");
  5373. addObsoleteHost("kickload\\.com\/(?:file|get)\/","//a[contains(@href,'kickload.com/file') or contains(@href,'kickload.com/get')]");
  5374. addObsoleteHost("up-file\\.com\/files\/download\/\\w+\/","//a[contains(@href,'up-file.com/download')]");
  5375. addObsoleteHost("ezyfile\\.net\/\\w+","//a[contains(@href,'ezyfile.net/')]");
  5376. addObsoleteHost("k2files\\.com\/files","//a[contains(@href,'k2files.com/files')]");
  5377. addObsoleteHost("aiotool\\.net\/\\w+","//a[contains(@href,'aiotool.net/')]");
  5378. addObsoleteHost("xvideos\\.com\/files\/\\d+\/\\w+","//a[contains(@href,'xvideos.com/files')]");
  5379. addObsoleteHost("filebling\\.com\/dl\/\\d+\/\\d+\/\\w+","//a[contains(@href,'filebling.com/dl')]");
  5380. addObsoleteHost("loaded\\.it\/divx\/\\w+","//a[contains(@href,'loaded.it/divx')]");
  5381. addObsoleteHost("uploadcell\\.com\/\\w+\/\\w+","//a[contains(@href,'uploadcell.com')]");
  5382. addObsoleteHost("jakfile\\.com\/\\w+","//a[contains(@href,'jakfile.com/')]");
  5383. addObsoleteHost("uploadshare\\.cz\/download\/\\w+\/\\w+","//a[contains(@href,'uploadshare.cz/download')]");
  5384. addObsoleteHost("mangoshare\\.com\/\\w+","//a[contains(@href,'mangoshare.com')]");
  5385. addObsoleteHost("ugotfile\\.com\/file\/\\d+\/\\w+","//a[contains(@href,'ugotfile.com/file')]");
  5386. addObsoleteHost("filestab\\.com\/\\w+","//a[contains(@href,'filestab.com')]");
  5387. addObsoleteHost("dotavi\\.com\/\\w+\/.","//a[contains(@href,'dotavi.com/')]");
  5388. addObsoleteHost("crazyupload\\.com\/\\w+","//a[contains(@href,'crazyupload.com')]");
  5389. addObsoleteHost("gaiafile\\.com\/\\w+","//a[contains(@href,'gaiafile.com')]");
  5390. addObsoleteHost("sharejunky\\.com\/\\w+","//a[contains(@href,'sharejunky.com')]");
  5391. addObsoleteHost("fileho\\.com\/download\/\\d+","//a[contains(@href,'fileho.com/download')]");
  5392. addObsoleteHost("(?:bigandfree|BigAndFree)\\.com\/\\d+","//a[contains(@href,'bigandfree.com') or contains(@href,'BigAndFree.com')]");
  5393. addObsoleteHost("bigfile\\.in\/\\w+","//a[contains(@href,'bigfile.in')]");
  5394. addObsoleteHost("bigshare\\.eu\/download\\.php\\?id=","//a[contains(@href,'bigshare.eu/download.php')]");
  5395. addObsoleteHost("dahosting\\.org\/dl\/\\w+","//a[contains(@href,'dahosting.org/dl')]");
  5396. addObsoleteHost("digisofts\\.net\/\\w+","//a[contains(@href,'digisofts.net')]");
  5397. addObsoleteHost("file4save\\.com\/\\w+\/\\w+","//a[contains(@href,'file4save.com')]");
  5398. addObsoleteHost("filereactor\\.com\/\\w+","//a[contains(@href,'filereactor.com/')]");
  5399. addObsoleteHost("filechip\\.com\/\\w+","//a[contains(@href,'filechip.com')]");
  5400. addObsoleteHost("filescloud\\.com\/\\w+\/\\w+","//a[contains(@href,'filescloud.com')]");
  5401. addObsoleteHost("saveqube\\.com\/getfile\/\\w+","//a[contains(@href,'saveqube.com/getfile')]");
  5402. addObsoleteHost("www2\\.turboshare\\.de\/v\/\\d+","//a[contains(@href,'turboshare.de/v')]");
  5403. addObsoleteHost("z-upload\\.com\/\\w+","//a[contains(@href,'z-upload.com')]");
  5404. addObsoleteHost("youshare\\.com\/view\\.php","//a[contains(@href,'youshare.com/view')]");
  5405. addObsoleteHost("jiffyupload\\.com\/\\w+","//a[contains(@href,'jiffyupload.com')]");
  5406. addObsoleteHost("gigeshare\\.com\/preview\/\\w+","//a[contains(@href,'gigeshare.com')]");
  5407. addObsoleteHost("datenklo\\.net\/dl","//a[contains(@href,'datenklo.net')]");
  5408. addObsoleteHost("upload\\.dj\/download\\.php\\?id=\\w+","//a[contains(@href,'upload.dj/download.php')]");
  5409. addObsoleteHost("loadfiles\\.in\/\\w+\/","//a[contains(@href,'loadfiles.in')]");
  5410. addObsoleteHost("upit\\.to\/file:\\w+\/","//a[contains(@href,'upit.to/file')]");
  5411. addObsoleteHost("zshare\\.net\/(?:download|video|audio)\/\\w+","//a[contains(@href,'zshare.net/')]");
  5412. addObsoleteHost("refile\\.net\/f\/\\?\\w+","//a[contains(@href,'refile.net/f/')]");
  5413. addObsoleteHost("dsfileshare\\.com\/download","//a[contains(@href,'dsfileshare.com/download')]");
  5414. addObsoleteHost("sharesimple\\.net\/\\w{2}\/download","//a[contains(@href,'sharesimple.net')]");
  5415. addObsoleteHost("(?:s\\d+\\.|)4files\\.net\/\\d+","//a[contains(@href,'4files.net')]");
  5416. addObsoleteHost("odsiebie\\.com\/pokaz\/\\d+","//a[contains(@href,'odsiebie.com/pokaz')]");
  5417. addObsoleteHost("filenavi\\.com\/direct\/\\w+","//a[contains(@href,'filenavi.com/direct')]");
  5418. addObsoleteHost("3oof\\.com\/\\w+","//a[contains(@href,'3oof.com/')]");
  5419. addObsoleteHost("meshwaar\\.com\/\\w+","//a[contains(@href,'meshwaar.com')]");
  5420. addObsoleteHost("maxupload\\.com\/files\/\\w+","//a[contains(@href,'maxupload.com/files')]");
  5421. addObsoleteHost("share\\.cx\/videos\/\\d+","//a[contains(@href,'share.cx/videos')]");
  5422. addObsoleteHost("atserver\\.eu\/(?:\\w{2}\/|)download\/\\d+","//a[contains(@href,'atserver.eu')]");
  5423. addObsoleteHost("file2upload\\.net\/download\/\\d+","//a[contains(@href,'file2upload.net/download')]");
  5424. addObsoleteHost("filebling\\.com\/\\w+","//a[contains(@href,'filebling.com')]");
  5425. addObsoleteHost("turboshare\\.(?:eu|com)\/files","//a[contains(@href,'turboshare.') and contains(@href,'/files')]");
  5426. addObsoleteHost("rarhost\\.com\/download","//a[contains(@href,'rarhost.com/download')]");
  5427. addObsoleteHost("isharehd\\.com\/\\w+","//a[contains(@href,'isharehd.com')]");
  5428. addObsoleteHost("datenklo\\.net\/file\\.php\\?id=\\w+","//a[contains(@href,'datenklo.net/file.php')]");
  5429. addObsoleteHost("file2share\\.biz\/download\\.php\\?id=\\w+","//a[contains(@href,'file2share.biz/download.php')]");
  5430. addObsoleteHost("savefiles\\.net\/d\/\\w+\\.html","//a[contains(@href,'savefiles.net/d')]");
  5431. addObsoleteHost("bestsharing\\.com\/files\/\\w+","//a[contains(@href,'bestsharing.com/files')]");
  5432. addObsoleteHost("filecache\\.de\/\\d+","//a[contains(@href,'filecache.de/')]");
  5433. addObsoleteHost("i741\\.com\/files\/\\w+","//a[contains(@href,'i741.com/files')]");
  5434. addObsoleteHost("dataup\\.de\/\\d+","//a[contains(@href,'dataup.de')]");
  5435. addObsoleteHost("fofly\\.com\/\\w+","//a[contains(@href,'fofly.com')]");
  5436. addObsoleteHost("shareonall\\.com\/\\w+","//a[contains(@href,'shareonall.com')]");
  5437. addObsoleteHost("sexuploader\\.com\/(?:|..\/)\\?[d|v]=\\w{8}","//a[contains(@href,'sexuploader.com')]");
  5438. 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')]");
  5439. addObsoleteHost("uploadhyper\\.com\/file\/","//a[contains(@href,'uploadhyper.com')]");
  5440. addObsoleteHost("filespawn\\.com\/file\/","//a[contains(@href,'filespawn.com')]");
  5441. addObsoleteHost("caizzii\\.com\/(?:download|\\?file=)","//a[contains(@href,'caizzii.com')]");
  5442. addObsoleteHost("volnyweb\\.cz\/files\/get\/[\\w-_]+","//a[contains(@href,'volnyweb.cz/files')]");
  5443. addObsoleteHost("gotupload\\.com\/\\w+","//a[contains(@href,'gotupload.com/')]");
  5444. addObsoleteHost("mooload\\.com\/new\/file\\.php\\?file=files\/\\d+\/\\d+","//a[contains(@href,'mooload.com/new/file')]");
  5445. addObsoleteHost("z\\d+\\.zupload\\.com\/download\\.php\\?file=getfile&filepath=\\d+","//a[contains(@href,'zupload.com/download')]");
  5446. addObsoleteHost("mytempdir\\.com\/\\d+","//a[contains(@href,'mytempdir.com/')]");
  5447. addObsoleteHost("usershare\\.net\/\\w+","//a[contains(@href,'usershare.net/')]");
  5448. addObsoleteHost("qshare\\.com\/get\/\\d+\/.","//a[contains(@href,'qshare.com/get')]");
  5449. addObsoleteHost("filescash\\.net\/file\/\\d+","//a[contains(@href,'filescash.net/file')]");
  5450. addObsoleteHost("metahyper\\.com\/\\w+","//a[contains(@href,'metahyper.com/')]");
  5451. addObsoleteHost("combozip\\.com\/\\w+","//a[contains(@href,'combozip.com/')]");
  5452. addObsoleteHost("anonstream\\.com\/get_\\w+","//a[contains(@href,'anonstream.com/get_')]");
  5453. addObsoleteHost("x7\\.to\/\\w+","//a[contains(@href,'x7.to/')]");
  5454. addObsoleteHost("uploadbox\\.com\/files\/\\w+","//a[contains(@href,'uploadbox.com/files')]");
  5455. addObsoleteHost("(?:flyupload\\.)?(?:enterupload|flyupload)\\.com\/[\\?\\w]+","//a[contains(@href,'enterupload.com/') or contains(@href,'flyupload.com/')]");
  5456. addObsoleteHost("filepoint\\.de\/dl\/\\w+","//a[contains(@href,'filepoint.de/dl')]");
  5457. addObsoleteHost("icushare\\.com\/\\w+","//a[contains(@href,'icushare.com/')]");
  5458. addObsoleteHost("oron\\.com\/\\w+","//a[contains(@href,'oron.com/')]");
  5459. addObsoleteHost("mystream\\.to\/file\\-\\d+","//a[contains(@href,'mystream.to/file')]");
  5460. addObsoleteHost("x-fs\\.com\/download\\.php\\?id=\\w+","//a[contains(@href,'x-fs.com/download')]");
  5461. addObsoleteHost("srapid\\.eu\/\\w+","//a[contains(@href,'srapid.eu/')]");
  5462. addObsoleteHost("shareshared\\.com\/\\w+","//a[contains(@href,'shareshared.com/')]");
  5463. addObsoleteHost("sosame\\.cz\/\\w+","//a[contains(@href,'sosame.cz/')]");
  5464. addObsoleteHost("s\\d+\\.filesdump\\.com\/file\/\\w+","//a[contains(@href,'filesdump.com/file')]");
  5465. addObsoleteHost("2-klicks\\.de\/\\?d=\\w+","//a[contains(@href,'2-klicks.de/?d=')]");
  5466. addObsoleteHost("silofiles\\.com\/file\/\\d+","//a[contains(@href,'silofiles.com/file')]");
  5467. addObsoleteHost("upfile\\.in\/\\w+","//a[contains(@href,'upfile.in/')]");
  5468. addObsoleteHost("filehook\\.com\/\\w+","//a[contains(@href,'filehook.com/')]");
  5469. addObsoleteHost("mojofile\\.com\/\\w+","//a[contains(@href,'mojofile.com/')]");
  5470. addObsoleteHost("cloudcache\\.cc\/\\w+","//a[contains(@href,'cloudcache.cc/')]");
  5471. addObsoleteHost("1hostclick\\.com\/\\w+","//a[contains(@href,'1hostclick.com/')]");
  5472. addObsoleteHost("4bytez\\.com\/\\w+","//a[contains(@href,'4bytez.com/')]");
  5473. addObsoleteHost("uploadking\\.com\/\\w+","//a[contains(@href,'uploadking.com/')]");
  5474. addObsoleteHost("nahraj\\.cz\/(?:content|down)\/\\w+","//a[contains(@href,'nahraj.cz/')]");
  5475. addObsoleteHost("megarapid\\.eu\/files\/\\d+","//a[contains(@href,'megarapid.eu/files')]");
  5476. addObsoleteHost("(?:fileserve|uploadstation)\\.com\/(?:file|list)\/\\w+","//a[contains(@href,'fileserve.com/') or contains(@href,'uploadstation.com/')]");
  5477. addObsoleteHost("uploadhere\\.com\/\\w+","//a[contains(@href,'uploadhere.com/')]");
  5478. addObsoleteHost("dualshare\\.com\/\\w+","//a[contains(@href,'dualshare.com/')]");
  5479. addObsoleteHost("yourfilehost\\.com\/media","//a[contains(@href,'yourfilehost.com/media')]");
  5480. addObsoleteHost("ftp2share\\.com\/file\/\\w+","//a[contains(@href,'ftp2share.com/file')]");
  5481. addObsoleteHost("storeandserve\\.com\/download\/\\d+","//a[contains(@href,'storeandserve.com/download')]");
  5482. addObsoleteHost("mountfile\\.com\/file(?:\/\\w+){2}","//a[contains(@href,'mountfile.com/file')]");
  5483. addObsoleteHost("save\\.am\/files\/\\w+","//a[contains(@href,'save.am/files')]");
  5484. addObsoleteHost("transitfiles\\.com\/dl\/\\w+","//a[contains(@href,'transitfiles.com/dl')]");
  5485. addObsoleteHost("smartuploader\\.com\/file\\.php\\?f=\\d+","//a[contains(@href,'smartuploader.com/file.php?=')]");
  5486. addObsoleteHost("skipfile\\.com\/\\w+","//a[contains(@href,'skipfile.com/')]");
  5487. addObsoleteHost("stahnu\\.to\/[\\w\\?]+","//a[contains(@href,'stahnu.to/')]");
  5488. addObsoleteHost("flyshare\.cz\/(?:stahni\/|)\\d+","//a[contains(@href,'flyshare.cz/')]");
  5489. addObsoleteHost("(?:ddlani\\.me|ddlanime\\.com)\/\\w+","//a[contains(@href,'ddlani.me/') or contains(@href,'ddlanime.com/')]");
  5490. addObsoleteHost("loadly\\.com\/\\w+","//a[contains(@href,'loadly.com/')]");
  5491. addObsoleteHost("groovefile\\.com\/\\w+","//a[contains(@href,'groovefile.com/')]");
  5492. addObsoleteHost("filezlot\\.com\/\\w+","//a[contains(@href,'filezlot.com/')]");
  5493. addObsoleteHost("shareator\\.(?:net|com)\/\\w+","//a[contains(@href,'shareator.')]");
  5494. addObsoleteHost("yabadaba\\.ru\/files\/","//a[contains(@href,'yabadaba.ru/files/')]");
  5495. addObsoleteHost("rapidhide\\.com\/download\\.php\\?file=\\w+","//a[contains(@href,'rapidhide.com/download.php')]");
  5496. addObsoleteHost("filejungle\\.com\/[fl]\/\\w+","//a[contains(@href,'filejungle.com/')]");
  5497. addObsoleteHost("kewlshare\\.com\/dl\/\\d+","//a[contains(@href,'kewlshare.com/dl')]");
  5498. addObsoleteHost("petandrive\\.com\/file\/\\w+","//a[contains(@href,'petandrive.com/file')]");
  5499. addObsoleteHost("onionshare\\.com\/\\w+","//a[contains(@href,'onionshare.com/')]");
  5500. addObsoleteHost("rapidable\\.com\/\\w+\/download\\.php\\?id=","//a[contains(@href,'rapidable.com/')]");
  5501. addObsoleteHost("filesdump\\.com\/file\/\\w+\/\\d+","//a[contains(@href,'filesdump.com/file')]");
  5502. addObsoleteHost("file2box\\.(?:net|com)\/\\w+","//a[contains(@href,'file2box.')]");
  5503. addObsoleteHost("(?:filesonic|sharingmatrix|wupload)(?:\\.\\w+){1,2}\/(?:file|folder)\/\\w+","//a[contains(@href,'filesonic.') or contains(@href,'sharingmatrix.com') or contains(@href,'wupload.')]");
  5504. addObsoleteHost("bloggerarticles\\.com\/\\w+","//a[contains(@href,'bloggerarticles.com/')]");
  5505. addObsoleteHost("mojedata\\.sk/","//a[contains(@href,'mojedata.sk/')]");
  5506. addObsoleteHost("sharpfile\\.com\/\\w+","//a[contains(@href,'sharpfile.com/')]");
  5507. addObsoleteHost("upgrand\\.com\/\\w+","//a[contains(@href,'upgrand.com/')]");
  5508. addObsoleteHost("nasdilej\\.cz\/\\w+","//a[contains(@href,'nasdilej.cz/')]");
  5509. addObsoleteHost("mediatack\\.cz\/stahuj/\\w+","//a[contains(@href,'mediatack.cz/stahuj/')]");
  5510. addObsoleteHost("share-it\\.to\/file/\\w+","//a[contains(@href,'share-it.to/file/')]");
  5511. addObsoleteHost("primeupload\\.com\/file/\\w+","//a[contains(@href,'primeupload.com/file/')]");
  5512. addObsoleteHost("(?:uploads\\.glumbo|glumbouploads)\\.com\/\\w+","//a[contains(@href,'uploads.glumbo.com') or contains(@href,'glumbouploads.com')]");
  5513. addObsoleteHost("filebeer\\.info\/\\w+","//a[contains(@href,'filebeer.info/')]");
  5514. addObsoleteHost("baberepublic\\.com\/link\/\\w+","//a[contains(@href,'baberepublic.com/link/')]");
  5515. addObsoleteHost("xtu\\.me\/\\w+","//a[contains(@href,'xtu.me/')]");
  5516. addObsoleteHost("sharebase\\.de\/files\/\\w+","//a[contains(@href,'sharebase.de/files/')]");
  5517. addObsoleteHost("filerobo\\.com\/\\w+","//a[contains(@href,'filerobo.com/')]");
  5518. addObsoleteHost("filevelocity\\.com\/\\w+","//a[contains(@href,'filevelocity.com/')]");
  5519. addObsoleteHost("filezpro\\.com\/\\w+","//a[contains(@href,'filezpro.com/')]");
  5520. addObsoleteHost("file4sharing\\.com\/\\w+","//a[contains(@href,'file4sharing.com/')]");
  5521. addObsoleteHost("cing\\.be\/\\w+","//a[contains(@href,'cing.be/')]");
  5522. addObsoleteHost("ufile\\.eu\/\\w+","//a[contains(@href,'ufile.eu/')]");
  5523. addObsoleteHost("pigsonic\\.com\/\\w+","//a[contains(@href,'pigsonic.com/')]");
  5524. addObsoleteHost("fileupped\\.com\/\\w+","//a[contains(@href,'fileupped.com/')]");
  5525. addObsoleteHost("sharerun\\.com\/\\w+","//a[contains(@href,'sharerun.com/')]");
  5526. addObsoleteHost("rapidslnare\\.com\/\\w+","//a[contains(@href,'rapidslnare.com/')]");
  5527. addObsoleteHost("monsteruploads\\.eu\/\\w+","//a[contains(@href,'monsteruploads.eu/')]");
  5528. addObsoleteHost("b9bb\\.com\/\\w+","//a[contains(@href,'b9bb.com/')]");
  5529. addObsoleteHost("jamber\\.info\/\\w+","//a[contains(@href,'jamber.info/')]");
  5530. addObsoleteHost("(?:megaftp|MegaFTP)\\.com\/\\w+","//a[contains(@href,'megaftp.com/') or contains(@href,'MegaFTP.com/')]");
  5531. addObsoleteHost("desiupload\\.net\/\\?d=\\w+","//a[contains(@href,'desiupload.net/')]");
  5532. addObsoleteHost("file27\\.com\/\\w+","//a[contains(@href,'file27.com/')]");
  5533. addObsoleteHost("yastorage\\.com\/\\w+","//a[contains(@href,'yastorage.com/')]");
  5534. addObsoleteHost("filehost\\.ws\/\\w+","//a[contains(@href,'filehost.ws/')]");
  5535. addObsoleteHost("copyload\\.com\/\\w+","//a[contains(@href,'copyload.com/')]");
  5536. addObsoleteHost("venusfile\\.com\/\\w+","//a[contains(@href,'venusfile.com/')]");
  5537. addObsoleteHost("aieshare\\.com\/\\w+","//a[contains(@href,'aieshare.com/')]");
  5538. addObsoleteHost("fileza\\.net\/\\w+","//a[contains(@href,'fileza.net/')]");
  5539. addObsoleteHost("filerose\\.com\/\\w+","//a[contains(@href,'filerose.com/')]");
  5540. addObsoleteHost("squillion\\.com\/\\w+","//a[contains(@href,'squillion.com/')]");
  5541. addObsoleteHost("fileprohost\\.com\/\\w+","//a[contains(@href,'fileprohost.com/')]");
  5542. addObsoleteHost("bitbonus\\.com\/download\/\\w+","//a[contains(@href,'bitbonus.com/')]");
  5543. addObsoleteHost("warserver\\.cz\/\\w+","//a[contains(@href,'warserver.cz/')]");
  5544. addObsoleteHost("uload\\.to\/\\w+","//a[contains(@href,'uload.to/')]");
  5545. addObsoleteHost("sharedbit\\.net\/\\w+","//a[contains(@href,'sharedbit.net/')]");
  5546. addObsoleteHost("megaload\\.it\/\\w+","//a[contains(@href,'megaload.it/')]");
  5547. addObsoleteHost("filewinds\\.com\/\\w+","//a[contains(@href,'filewinds.com/')]");
  5548. addObsoleteHost("uploadcore\\.com\/\\w+","//a[contains(@href,'uploadcore.com/')]");
  5549. addObsoleteHost("syfiles\\.com\/\\w+","//a[contains(@href,'syfiles.com/')]");
  5550. addObsoleteHost("eyesfile\\.com\/\\w+","//a[contains(@href,'eyesfile.com/')]");
  5551. addObsoleteHost("hotfile\\.com\/\\w+","//a[contains(@href,'hotfile.com/')]");
  5552. addObsoleteHost("superupl\\.com\/\\w+","//a[contains(@href,'superupl.com/')]");
  5553. addObsoleteHost("oteupload\\.com\/\\w+","//a[contains(@href,'oteupload.com/')]");
  5554. addObsoleteHost("henchfile\\.com\/\\w+","//a[contains(@href,'henchfile.com/')]");
  5555. addObsoleteHost("HenchFile\\.com\/\\w+","//a[contains(@href,'HenchFile.com/')]");
  5556. addObsoleteHost("filegag\\.com\/\\w+","//a[contains(@href,'filegag.com/')]");
  5557. addObsoleteHost("filedefend\\.com\/\\w+","//a[contains(@href,'filedefend.com/')]");
  5558. addObsoleteHost("hotfiles\\.ws\/\\w+","//a[contains(@href,'hotfiles.ws/')]");
  5559. addObsoleteHost("share-rapid\\.com\/\\w+","//a[contains(@href,'share-rapid.com/')]");
  5560. addObsoleteHost("rapids\\.cz\/\\w+","//a[contains(@href,'rapids.cz/')]");
  5561. addObsoleteHost("share-credit\\.cz\/\\w+","//a[contains(@href,'share-credit.cz/')]");
  5562. addObsoleteHost("share-central\\.cz\/\\w+","//a[contains(@href,'share-central.cz/')]");
  5563. addObsoleteHost("share-ms\\.cz\/\\w+","//a[contains(@href,'share-ms.cz/')]");
  5564. addObsoleteHost("share-net\\.cz\/\\w+","//a[contains(@href,'share-net.cz/')]");
  5565. addObsoleteHost("srapid\\.cz\/\\w+","//a[contains(@href,'srapid.cz/')]");
  5566. addObsoleteHost("share-rapid\\.cz\/\\w+","//a[contains(@href,'share-rapid.cz/')]");
  5567. addObsoleteHost("wooupload\\.com\/\\w+","//a[contains(@href,'wooupload.com/')]");
  5568. addObsoleteHost("megabitshare\\.com\/\\w+","//a[contains(@href,'megabitshare.com/')]");
  5569. addObsoleteHost("uploking\\.com\/\\w+","//a[contains(@href,'uploking.com/')]");
  5570. addObsoleteHost("esnips\\.com\/\\w+","//a[contains(@href,'esnips.com/')]");
  5571. addObsoleteHost("uplly\\.com\/\\w+","//a[contains(@href,'uplly.com/')]");
  5572. addObsoleteHost("ufox\\.com\/\\w+","//a[contains(@href,'ufox.com/')]");
  5573. addObsoleteHost("clz\\.to\/\\w+","//a[contains(@href,'clz.to/')]");
  5574. addObsoleteHost("cloudzer\\.net\/\\w+","//a[contains(@href,'cloudzer.net/')]");
  5575. addObsoleteHost("cloudzer\\.com\/\\w+","//a[contains(@href,'cloudzer.com/')]");
  5576. addObsoleteHost("extabit\\.com\/\\w+","//a[contains(@href,'extabit.com/')]");
  5577. addObsoleteHost("uploadwaste\\.com\/\\w+","//a[contains(@href,'uploadwaste.com/')]");
  5578. addObsoleteHost("247upload\\.com\/\\w+","//a[contains(@href,'uploadwaste.com/')]");
  5579. addObsoleteHost("2download\\.de\/\\w+","//a[contains(@href,'2download.de/')]");
  5580. addObsoleteHost("4fastfile\\.com\/\\w+","//a[contains(@href,'4fastfile.com/')]");
  5581. addObsoleteHost("asixfiles\\.com\/\\w+","//a[contains(@href,'asixfiles.com/')]");
  5582. addObsoleteHost("berofile\\.com\/\\w+","//a[contains(@href,'berofile.com/')]");
  5583. addObsoleteHost("bigupload\\.com\/\\w+","//a[contains(@href,'bigupload.com/')]");
  5584. addObsoleteHost("cepzo\\.com\/\\w+","//a[contains(@href,'cepzo.com/')]");
  5585. addObsoleteHost("czshare\\.com\/\\w+","//a[contains(@href,'czshare.com/')]");
  5586. addObsoleteHost("clouds\\.to\/\\w+","//a[contains(@href,'clouds.to/')]");
  5587. addObsoleteHost("cobrashare\\.sk\/\\w+","//a[contains(@href,'cobrashare.sk/')]");
  5588. addObsoleteHost("coraldrive\\.net\/\\w+","//a[contains(@href,'coraldrive.net/')]");
  5589. addObsoleteHost("cyberlocker\\.ch\/\\w+","//a[contains(@href,'cyberlocker.ch/')]");
  5590. addObsoleteHost("darkport\\.org\/\\w+","//a[contains(@href,'darkport.org/')]");
  5591. addObsoleteHost("dark-uploads\\.com\/\\w+","//a[contains(@href,'dark-uploads.com/')]");
  5592. addObsoleteHost("davvas\\.com\/\\w+","//a[contains(@href,'davvas.com/')]");
  5593. addObsoleteHost("enigmashare\\.com\/\\w+","//a[contains(@href,'enigmashare.com/')]");
  5594. addObsoleteHost("erofly\\.cz\/\\w+","//a[contains(@href,'erofly.cz/')]");
  5595. addObsoleteHost("fastsonic\\.net\/\\w+","//a[contains(@href,'fastsonic.net/')]");
  5596. addObsoleteHost("filebox\\.com\/\\w+","//a[contains(@href,'filebox.com/')]");
  5597. addObsoleteHost("filecity\\.net\/\\w+","//a[contains(@href,'filecity.net/')]");
  5598. addObsoleteHost("filedap\\.com\/\\w+","//a[contains(@href,'filedap.com/')]");
  5599. addObsoleteHost("filedino\\.com\/\\w+","//a[contains(@href,'filedino.com/')]");
  5600. addObsoleteHost("filedownloads\\.org\/\\w+","//a[contains(@href,'filedownloads.org/')]");
  5601. addObsoleteHost("filefolks\\.com\/\\w+","//a[contains(@href,'filefolks.com/')]");
  5602. addObsoleteHost("fileking\\.co\/\\w+","//a[contains(@href,'fileking.co/')]");
  5603. addObsoleteHost("filemates\\.com\/\\w+","//a[contains(@href,'filemates.com/')]");
  5604. addObsoleteHost("files\\.to\/\\w+","//a[contains(@href,'files.to/')]");
  5605. addObsoleteHost("files2k\\.eu\/\\w+","//a[contains(@href,'files2k.eu/')]");
  5606. addObsoleteHost("filesector\\.cc\/\\w+","//a[contains(@href,'filesector.cc/')]");
  5607. addObsoleteHost("filesega\\.com\/\\w+","//a[contains(@href,'filesega.com/')]");
  5608. addObsoleteHost("filesend\\.net\/\\w+","//a[contains(@href,'filesend.net/')]");
  5609. addObsoleteHost("filestay\\.com\/\\w+","//a[contains(@href,'filestay.com/')]");
  5610. addObsoleteHost("filestrum\\.com\/\\w+","//a[contains(@href,'filestrum.com/')]");
  5611. addObsoleteHost("fileuplo\\.de\/\\w+","//a[contains(@href,'fileuplo.de/')]");
  5612. addObsoleteHost("fileupup\\.com\/\\w+","//a[contains(@href,'fileupup.com/')]");
  5613. addObsoleteHost("forunesia\\.com\/\\w+","//a[contains(@href,'forunesia.com/')]");
  5614. addObsoleteHost("freeuploads\\.fr\/\\w+","//a[contains(@href,'freeuploads.fr/')]");
  5615. addObsoleteHost("uploa\\.dk\/\\w+","//a[contains(@href,'uploa.dk/')]");
  5616. addObsoleteHost("getthebit\\.com\/\\w+","//a[contains(@href,'getthebit.com/')]");
  5617. addObsoleteHost("getzilla\\.net\/\\w+","//a[contains(@href,'getzilla.net/')]");
  5618. addObsoleteHost("goldfile\\.eu\/\\w+","//a[contains(@href,'goldfile.eu/')]");
  5619. addObsoleteHost("good\\.com\/\\w+","//a[contains(@href,'good.com/')]");
  5620. addObsoleteHost("grupload\\.com\/\\w+","//a[contains(@href,'grupload.com/')]");
  5621. addObsoleteHost("hellfile\\.com\/\\w+","//a[contains(@href,'hellfile.com/')]");
  5622. addObsoleteHost("hipfile\\.com\/\\w+","//a[contains(@href,'hipfile.com/')]");
  5623. addObsoleteHost("hitfile\\.com\/\\w+","//a[contains(@href,'hitfile.com/')]");
  5624. addObsoleteHost("hulkfile\\.eu\/\\w+","//a[contains(@href,'hulkfile.eu/')]");
  5625. addObsoleteHost("i-filez\\.com\/\\w+","//a[contains(@href,'i-filez.com/')]");
  5626. addObsoleteHost("ifile\\.ws\/\\w+","//a[contains(@href,'ifile.ws/')]");
  5627. addObsoleteHost("kupload\\.org\/\\w+","//a[contains(@href,'kupload.org/')]");
  5628. addObsoleteHost("duckfile\\.net\/\\w+","//a[contains(@href,'duckfile.net/')]");
  5629. addObsoleteHost("packupload\\.com\/\\w+","//a[contains(@href,'packupload.com/')]");
  5630. addObsoleteHost("terafile\\.com\/\\w+","//a[contains(@href,'terafile.com/')]");
  5631. addObsoleteHost("terafile\\.co\/\\w+","//a[contains(@href,'terafile.co/')]");
  5632. addObsoleteHost("fileom\\.com\/\\w+","//a[contains(@href,'fileom.com/')]");
  5633. addObsoleteHost("luckyshare\\.net\/\\w+","//a[contains(@href,'luckyshare.net/')]");
  5634. addObsoleteHost("lemuploads\\.com\/\\w+","//a[contains(@href,'lemuploads.com/')]");
  5635. addObsoleteHost("limelinx\\.com\/\\w+","//a[contains(@href,'limelinx.com/')]");
  5636. addObsoleteHost("maxshare\\.pl\/\\w+","//a[contains(@href,'maxshare.pl/')]");
  5637. addObsoleteHost("megarelease\\.org\/\\w+","//a[contains(@href,'megarelease.org/')]");
  5638. addObsoleteHost("megashare\\.com\/\\w+","//a[contains(@href,'megashare.com/')]");
  5639. addObsoleteHost("minus\\.com\/\\w+","//a[contains(@href,'minus.com/')]");
  5640. addObsoleteHost("mlfat4arab\\.com\/\\w+","//a[contains(@href,'mlfat4arab.com/')]");
  5641. addObsoleteHost("multishare\\.cz\/\\w+","//a[contains(@href,'multishare.cz/')]");
  5642. addObsoleteHost("nirafile\\.com\/\\w+","//a[contains(@href,'nirafile.com/')]");
  5643. addObsoleteHost("ok2upload\\.com\/\\w+","//a[contains(@href,'ok2upload.com/')]");
  5644. addObsoleteHost("peejeshare\\.com\/\\w+","//a[contains(@href,'peejeshare.com/')]");
  5645. addObsoleteHost("premiuns\\.org\/\\w+","//a[contains(@href,'premiuns.org/')]");
  5646. addObsoleteHost("przeklej\\.net\/\\w+","//a[contains(@href,'przeklej.net/')]");
  5647. addObsoleteHost("qkup\\.net\/\\w+","//a[contains(@href,'qkup.net/')]");
  5648. addObsoleteHost("rapidupload\\.sk\/\\w+","//a[contains(@href,'rapidupload.sk/')]");
  5649. addObsoleteHost("rockdizfile\\.com\/\\w+","//a[contains(@href,'rockdizfile.com/')]");
  5650. addObsoleteHost("rocketfile\\.net\/\\w+","//a[contains(@href,'rocketfile.net/')]");
  5651. addObsoleteHost("share-now\\.net\/\\w+","//a[contains(@href,'share-now.net/')]");
  5652. addObsoleteHost("share76\\.com\/\\w+","//a[contains(@href,'share76.com/')]");
  5653. addObsoleteHost("sharebees\\.com\/\\w+","//a[contains(@href,'sharebees.com/')]");
  5654. addObsoleteHost("sharefiles\\.co\/\\w+","//a[contains(@href,'sharefiles.co/')]");
  5655. addObsoleteHost("slingfile\\.com\/\\w+","//a[contains(@href,'slingfile.com/')]");
  5656. addObsoleteHost("sms4file\\.com\/\\w+","//a[contains(@href,'sms4file.com/')]");
  5657. addObsoleteHost("space4file\\.com\/\\w+","//a[contains(@href,'space4file.com/')]");
  5658. addObsoleteHost("tigershare\\.net\/\\w+","//a[contains(@href,'tigershare.net/')]");
  5659. addObsoleteHost("toucansharing\\.com\/\\w+","//a[contains(@href,'toucansharing.com/')]");
  5660. addObsoleteHost("ubuntuone\\.com\/\\w+","//a[contains(@href,'ubuntuone.com/')]");
  5661. addObsoleteHost("unextfiles\\.com\/\\w+","//a[contains(@href,'unextfiles.com/')]");
  5662. addObsoleteHost("upaj\\.pl\/\\w+","//a[contains(@href,'upaj.pl/')]");
  5663. addObsoleteHost("upfile\\.biz\/\\w+","//a[contains(@href,'upfile.biz/')]");
  5664. addObsoleteHost("uploadbin\\.net\/\\w+","//a[contains(@href,'uploadbin.net/')]");
  5665. addObsoleteHost("uploadic\\.com\/\\w+","//a[contains(@href,'uploadic.com/')]");
  5666. addObsoleteHost("uploadinc\\.com\/\\w+","//a[contains(@href,'uploadinc.com/')]");
  5667. addObsoleteHost("uploading4u\\.eu\/\\w+","//a[contains(@href,'uploading4u.eu/')]");
  5668. addObsoleteHost("uploadjet\\.net\/\\w+","//a[contains(@href,'uploadjet.net/')]");
  5669. addObsoleteHost("uploadorb\\.com\/\\w+","//a[contains(@href,'uploadorb.com/')]");
  5670. addObsoleteHost("upthe\\.net\/\\w+","//a[contains(@href,'upthe.net/')]");
  5671. addObsoleteHost("uptorch\\.com\/\\w+","//a[contains(@href,'uptorch.com/')]");
  5672. addObsoleteHost("vidbox\\.yt\/\\w+","//a[contains(@href,'vidbox.yt/')]");
  5673. addObsoleteHost("videozer\\.com\/\\w+","//a[contains(@href,'videozer.com/')]");
  5674. addObsoleteHost("vreer\\.com\/\\w+","//a[contains(@href,'vreer.com/')]");
  5675. addObsoleteHost("wallobit\\.com\/\\w+","//a[contains(@href,'wallobit.com/')]");
  5676. addObsoleteHost("zooupload\\.com\/\\w+","//a[contains(@href,'zooupload.com/')]");
  5677. addObsoleteHost("xerver\\.co\/\\w+","//a[contains(@href,'xerver.co/')]");
  5678. addObsoleteHost("privatefiles\\.com\/\\w+","//a[contains(@href,'privatefiles.com/')]");
  5679. addObsoleteHost("bitshare\\.com\/\\w+","//a[contains(@href,'bitshare.com/')]");
  5680. addObsoleteHost("asfile\\.com\/\\w+","//a[contains(@href,'asfile.com/')]");
  5681. addObsoleteHost("billionuploads\\.com\/\\w+","//a[contains(@href,'billionuploads.com/')]");
  5682. addObsoleteHost("\\*{7,100}\/[\\w\\d]+","//a[contains(@href,'*******/')]");
  5683. addObsoleteHost("filesaur\\.com\/\\w+","//a[contains(@href,'filesaur.com/')]");
  5684. addObsoleteHost("rapidshare\\.com\/\\w+","//a[contains(@href,'rapidshare.com/')]");
  5685. addObsoleteHost("rapidshare\\.ru\/\\w+","//a[contains(@href,'rapidshare.ru/')]");
  5686. addObsoleteHost("filesfrog\\.net\/\\w+","//a[contains(@href,'filesfrog.net/')]");
  5687. addObsoleteHost("4savefile\\.com\/\\w+","//a[contains(@href,'4savefile.com/')]");
  5688. addObsoleteHost("bayfiles\\.com\/\\w+","//a[contains(@href,'bayfiles.com/')]");
  5689. addObsoleteHost("bayfiles\\.net\/\\w+","//a[contains(@href,'bayfiles.net/')]");
  5690. addObsoleteHost("dodane\\.pl\/\\w+","//a[contains(@href,'dodane.pl/')]");
  5691. addObsoleteHost("dotsemper\\.com\/\\w+","//a[contains(@href,'dotsemper.com/')]");
  5692. addObsoleteHost("egofiles\\.com\/\\w+","//a[contains(@href,'egofiles.com/')]");
  5693. addObsoleteHost("epicshare\\.net\/\\w+","//a[contains(@href,'epicshare.net/')]");
  5694. addObsoleteHost("fiberupload\\.net\/\\w+","//a[contains(@href,'fiberupload.net/')]");
  5695. addObsoleteHost("filemonkey\\.in\/\\w+","//a[contains(@href,'filemonkey.in/')]");
  5696. addObsoleteHost("filemonster\\.net\/\\w+","//a[contains(@href,'filemonster.net/')]");
  5697. addObsoleteHost("filepom\\.com\/\\w+","//a[contains(@href,'filepom.com/')]");
  5698. addObsoleteHost("filesbb\\.com\/\\w+","//a[contains(@href,'filesbb.com/')]");
  5699. addObsoleteHost("fileshareup\\.com\/\\w+","//a[contains(@href,'fileshareup.com/')]");
  5700. addObsoleteHost("filevice\\.com\/\\w+","//a[contains(@href,'filevice.com/')]");
  5701. addObsoleteHost("gigaup\\.fr\/\\w+","//a[contains(@href,'gigaup.fr/')]");
  5702. addObsoleteHost("isavelink\\.com\/\\w+","//a[contains(@href,'isavelink.com/')]");
  5703. addObsoleteHost("loombo\\.com\/\\w+","//a[contains(@href,'loombo.com/')]");
  5704. addObsoleteHost("megafiles\\.se\/\\w+","//a[contains(@href,'megafiles.se/')]");
  5705. addObsoleteHost("migupload\\.com\/\\w+","//a[contains(@href,'migupload.com/')]");
  5706. addObsoleteHost("mydisc\\.net\/\\w+","//a[contains(@href,'mydisc.net/')]");
  5707. addObsoleteHost("nitrobits\\.com\/\\w+","//a[contains(@href,'nitrobits.com/')]");
  5708. addObsoleteHost("potload\\.com\/\\w+","//a[contains(@href,'potload.com/')]");
  5709. addObsoleteHost("redload\\.net\/\\w+","//a[contains(@href,'redload.net/')]");
  5710. addObsoleteHost("shareprofi\\.com\/\\w+","//a[contains(@href,'shareprofi.com/')]");
  5711. addObsoleteHost("sharesuper\\.info\/\\w+","//a[contains(@href,'sharesuper.info/')]");
  5712. addObsoleteHost("sinhro\\.net\/\\w+","//a[contains(@href,'sinhro.net/')]");
  5713. addObsoleteHost("speedfile\\.cz\/\\w+","//a[contains(@href,'speedfile.cz/')]");
  5714. addObsoleteHost("speedshare\\.org\/\\w+","//a[contains(@href,'speedshare.org/')]");
  5715. addObsoleteHost("storage.novoro\\.net\/\\w+","//a[contains(@href,'storage.novoro.net/')]");
  5716. addObsoleteHost("swankshare\\.com\/\\w+","//a[contains(@href,'swankshare.com/')]");
  5717. addObsoleteHost("swatupload\\.com\/\\w+","//a[contains(@href,'swatupload.com/')]");
  5718. addObsoleteHost("upafile\\.com\/\\w+","//a[contains(@href,'upafile.com/')]");
  5719. addObsoleteHost("uploadmachine\\.com\/\\w+","//a[contains(@href,'uploadmachine.com/')]");
  5720. addObsoleteHost("uploadsat\\.com\/\\w+","//a[contains(@href,'uploadsat.com/')]");
  5721. addObsoleteHost("upshared\\.com\/\\w+","//a[contains(@href,'upshared.com/')]");
  5722. addObsoleteHost("usefile\\.com\/\\w+","//a[contains(@href,'usefile.com/')]");
  5723. addObsoleteHost("yourfiles\\.to\/\\w+","//a[contains(@href,'yourfiles.to/')]");
  5724. addObsoleteHost("zomgupload\\.com\/\\w+","//a[contains(@href,'zomgupload.com/')]");
  5725. addObsoleteHost("~[\\w\\s~]*","//a[contains(@href,'//~') or contains(@href,'//www.~')]");
  5726. addObsoleteHost("filemup\\.com\/\\w+","//a[contains(@href,'filemup.com/')]");
  5727. addObsoleteHost("tuxfile\\.com\/\\w+","//a[contains(@href,'tuxfile.com/')]");
  5728. addObsoleteHost("ultramegabit\\.com\/\\w+","//a[contains(@href,'ultramegabit.com/')]");
  5729. addObsoleteHost("uploadto\\.us\/\\w+","//a[contains(@href,'uploadto.us/')]");
  5730. addObsoleteHost("filecore\\.co\\.nz\/\\w+","//a[contains(@href,'filecore.co.nz/')]");
  5731. addObsoleteHost("fileshare\\.in\\.ua\/\\w+","//a[contains(@href,'fileshare.in.ua/')]");
  5732. addObsoleteHost("firedrive\\.com\/\\w+","//a[contains(@href,'firedrive.com/')]");
  5733. addObsoleteHost("putlocker\\.com\/\\w+","//a[contains(@href,'putlocker.com/')]");
  5734. addObsoleteHost("lumfile\\.com\/\\w+","//a[contains(@href,'lumfile.com/')]");
  5735. addObsoleteHost("lumfile\\.se\/\\w+","//a[contains(@href,'lumfile.se/')]");
  5736. addObsoleteHost("lumfile\\.eu\/\\w+","//a[contains(@href,'lumfile.eu/')]");
  5737. addObsoleteHost("shared\\.com\/\\w+","//a[contains(@href,'shared.com/')]");
  5738. addObsoleteHost("stahovadlo\\.cz\/\\w+","//a[contains(@href,'stahovadlo.cz/')]");
  5739. addObsoleteHost("dizzcloud\\.com\/\\w+","//a[contains(@href,'dizzcloud.com/')]");
  5740. addObsoleteHost("ddlstorage\\.com\/\\w+","//a[contains(@href,'ddlstorage.com/')]");
  5741. addObsoleteHost("dataport\\.cz\/\\w+","//a[contains(@href,'dataport.cz/')]");
  5742. addObsoleteHost("daj\\.to\/\\w+","//a[contains(@href,'daj.to/')]");
  5743. addObsoleteHost("sockshare\\.com\/\\w+","//a[contains(@href,'sockshare.com/')]");
  5744. addObsoleteHost("2drive\\.net\/\\w+","//a[contains(@href,'2drive.net/')]");
  5745. addObsoleteHost("bl\\.st\/\\w+","//a[contains(@href,'bl.st/')]");
  5746. addObsoleteHost("uncapped-downloads\\.com\/\\w+","//a[contains(@href,'uncapped-downloads.com/')]");
  5747. addObsoleteHost("freakshare\\.net\/\\w+","//a[contains(@href,'freakshare.net/')]");
  5748. addObsoleteHost("freakshare\\.com\/\\w+","//a[contains(@href,'freakshare.com/')]");
  5749. addObsoleteHost("sharebeast\\.com\/\\w+","//a[contains(@href,'sharebeast.com/')]");
  5750. addObsoleteHost("tufiles\\.ru\/\\w+","//a[contains(@href,'tufiles.ru/')]");
  5751. addObsoleteHost("crisshare\\.com\/\\w+","//a[contains(@href,'crisshare.com/')]");
  5752. addObsoleteHost("ryushare\\.com\/\\w+","//a[contains(@href,'ryushare.com/')]");
  5753. addObsoleteHost("kingfiles\\.net\/\\w+","//a[contains(@href,'kingfiles.net/')]");
  5754. addObsoleteHost("burnupload\\.com\/\\w+","//a[contains(@href,'burnupload.com') or contains(@href,'burnupload.ihiphop.com')]");
  5755. addObsoleteHost("down4files\\.com\/\\w+","//a[contains(@href,'down4files.com/')]");
  5756. addObsoleteHost("edoc\\.com\/\\w+","//a[contains(@href,'edoc.com/')]");
  5757. addObsoleteHost("migahost\\.com\/\\w+","//a[contains(@href,'migahost.com/')]");
  5758. addObsoleteHost("movreel\\.com\/\\w+","//a[contains(@href,'movreel.com/')]");
  5759. addObsoleteHost("newfileland\\.com\/\\w+","//a[contains(@href,'newfileland.com/')]");
  5760. addObsoleteHost("jumbofile\\.net\/\\w+","//a[contains(@href,'jumbofile.net/')]");
  5761. addObsoleteHost("krotix\\.net\/\\w+","//a[contains(@href,'krotix.net/')]");
  5762. addObsoleteHost("cramit\\.in\/\\w+","//a[contains(@href,'cramitin.net') or contains(@href,'cramit.in')]");
  5763. addObsoleteHost("netload\\.in\/\\w+","//a[contains(@href,'netload.in/')]")
  5764. addObsoleteHost("quickshare\\.cz\/\\w+","//a[contains(@href,'quickshare.cz/')]");
  5765. // obsolete start
  5766. }
  5767. //obsolete file hosts init end
  5768. //Add Host Example
  5769. /* if (GM_getValue("Check_datafile_dot_com_links", false))
  5770. {
  5771. addFileHost(
  5772. "datafile\.com\/\\w+",
  5773. 'var captchaPanel|<link href="/css/files_download.css"',
  5774. 'ErrorCode|ErrorCode 0: Invalid Link|btn-orange" href="#"',
  5775. 'You are downloading another file at this moment|You exceeded your free|Site Maintenance',
  5776. '<style type="text/css">',
  5777. "//a[contains(@href,'datafile.com')]",
  5778. true);
  5779. } */
  5780.  
  5781. function addFileHost(linkRegex, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, xpathEx, tryLoop)
  5782. {
  5783. var host = new Array(7);
  5784. host[0] = linkRegex;
  5785. host[1] = isAliveRegex;
  5786. host[2] = isDeadRegex;
  5787. host[3] = isUnavaRegex;
  5788. host[6] = ispremRegex;
  5789. host[4] = xpathEx;
  5790. tryLoop ? host[5] = true : host[5] = false;
  5791. http_file_hosts.push(host);
  5792. }
  5793. if (GM_getValue("Check_megafileupload_dot_com_links", false))
  5794. {
  5795. addFileHost(
  5796. "megafileupload\.com\/..\/file\/",
  5797. 'downloadbtn',
  5798. 'is not found',
  5799. 'optional--',
  5800. 'optional2--',
  5801. "//a[contains(@href,'megafileupload.com')]");
  5802. }
  5803. if (GM_getValue("Check_demo_dot_ovh_dot_eu_links", false))
  5804. {
  5805. addFileHost(
  5806. "demo\\.ovh\\.eu\/\\w+\/\\w+",
  5807. 'download\\.gif"',
  5808. 'p_point">',
  5809. 'optional--',
  5810. 'optional2--',
  5811. "//a[contains(@href,'demo.ovh.eu')]");
  5812. }
  5813. if (GM_getValue("Check_xkeepfile_dot_com_links", false))
  5814. {
  5815. addFileHost(
  5816. "xkeepfile\.com\/\\w+",
  5817. 'File has been found|Click here to download',
  5818. 'File cannot be found|class="error">',
  5819. 'optional--',
  5820. 'optional2--',
  5821. "//a[contains(@href,'xkeepfile.com/') or contains(@href,'Gamesena.com/')]");
  5822. }
  5823. if (GM_getValue("Check_safelinking_dot_net_links", false))
  5824. {
  5825. addFileHost(
  5826. "safelinking\\.net\/p\/\\w+",
  5827. 'color:green;"',
  5828. 'color:(?:red|orange);"',
  5829. 'color:(?:grey|brown);"',
  5830. 'optional2--',
  5831. "//a[contains(@href,'safelinking.net/p/')]",
  5832. true);
  5833. }
  5834. if (GM_getValue("Check_fastshare_dot_cz_links", false))
  5835. {
  5836. addFileHost(
  5837. "fastshare\\.cz\/\\d+\/\\w*",
  5838. 'dwntable">',
  5839. 'nebyla nalezena|nebola nájdená|nie została odnaleziona|color:red;font-weight:bold;border\\-style:dashed|<i class="fa fa-copyright"></i>',
  5840. 'optional--',
  5841. 'optional2--',
  5842. "//a[contains(@href,'fastshare.cz')]");
  5843. }
  5844. if (GM_getValue("Check_fastshare_dot_org_links", false))
  5845. {
  5846. addFileHost(
  5847. "[fF]ast[sS]hare\\.org\/download",
  5848. 'Download ">',
  5849. 'Diese Datei wurde wegen|wurde kein Dateiname',
  5850. 'optional--',
  5851. 'optional2--',
  5852. "//a[contains(@href,'fastshare.org/download') or contains(@href,'FastShare.org/download')]");
  5853. }
  5854. if (GM_getValue("Check_partage_dash_facile_dot_com_links", false))
  5855. {
  5856. addFileHost(
  5857. "partage-facile\.com\/\\w+",
  5858. 'class="title"><strong>|colspan="2"',
  5859. 'Page introuvable|class="alert-message',
  5860. 'optional--',
  5861. 'optional2--',
  5862. "//a[contains(@href,'partage-facile.com')]");
  5863. }
  5864. if (GM_getValue("Check_rapidgator_dot_net_links", false))
  5865. {
  5866. addFileHost(
  5867. "rapidgator\\.net\/file\/\\w+",
  5868. '/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',
  5869. 'Error 404|File not found|Error 500|Файл не найден|ファイルが探せませんでした|Fichier non trouvé|Archivo no encontrado|Select your plan',
  5870. 'optional--',
  5871. 'can be downloaded by premium only|files up to 500 MB in free mode|files up to 1 GB in free mode',
  5872. "//a[contains(@href,'rapidgator.net/file')]",
  5873. true
  5874. );
  5875. }
  5876. if (GM_getValue("Check_relink_dot_us_links", false))
  5877. {
  5878. addFileHost(
  5879. "relink\\.us\/(?:f\/\\w+|go\\.php\\?id=\\d+|view\\.php\\?id=\\d+)",
  5880. 'online_detail\\.png" alt="Status',
  5881. '(?:offline|partially)_detail\\.png" alt="Status|File deleted',
  5882. 'unknown_detail\\.png" alt="Status',
  5883. 'optional2--',
  5884. "//a[contains(@href,'relink.us/')]"
  5885. );
  5886. }
  5887. if (GM_getValue("Check_uploadstube_dot_de_links", false))
  5888. {
  5889. addFileHost(
  5890. "uploadstube\\.de\/download\\.php\\?file=\\d+",
  5891. 'div id="dl"',
  5892. 'Sie haben den Link falsch',
  5893. 'optional--',
  5894. 'optional2--',
  5895. "//a[contains(@href,'uploadstube.de/download.php?file=')]"
  5896. );
  5897. }
  5898. if (GM_getValue("Check_flyfiles_dot_net_links", false))
  5899. {
  5900. addFileHost(
  5901. "flyfiles\\.net\/\\w+",
  5902. 'download_button"|"Download file"',
  5903. 'File not found!|Файл не найден',
  5904. 'optional--',
  5905. 'optional2--',
  5906. "//a[contains(@href,'flyfiles.net/')]"
  5907. );
  5908. }
  5909. if (GM_getValue("Check_wikiupload_dot_com_links", false))
  5910. {
  5911. addFileHost(
  5912. "wikiupload\\.com\/\\w+",
  5913. 'download-button">',
  5914. 'Sorry, File not found',
  5915. 'optional--',
  5916. 'optional2--',
  5917. "//a[contains(@href,'wikiupload.com/')]"
  5918. );
  5919. }
  5920. if (GM_getValue("Check_hostuje_dot_net_links", false))
  5921. {
  5922. addFileHost(
  5923. "hostuje\\.net\/file\\.php\\?id=\\w+",
  5924. 'file\\.php">|Pobierz Plik',
  5925. 'Podany plik nie zosta',
  5926. 'optional--',
  5927. 'optional2--',
  5928. "//a[contains(@href,'hostuje.net/file')]"
  5929. );
  5930. }
  5931. if (GM_getValue("Check_gettyfile_dot_ru_links", false))
  5932. {
  5933. addFileHost(
  5934. "gettyfile\\.ru\/\\d+",
  5935. 'download\\.gif border',
  5936. '<center><font size="3">',
  5937. 'optional--',
  5938. 'optional2--',
  5939. "//a[contains(@href,'gettyfile.ru/')]"
  5940. );
  5941. }
  5942. if (GM_getValue("Check_turbobit_dot_ru_links", false))
  5943. {
  5944. addFileHost(
  5945. "(?:turbob1t|failoobmenik|filesmail|firebit|dlbit|files\\.china\\-gsm|3aka4aem|file\\.piratski|mnogofiles|links-free|turbo-bit|turbosfiles)\\.\\w+\/\\w+",
  5946. 'download\\-file">',
  5947. 'col-1">\\s*<h1>',
  5948. 'optional--',
  5949. 'optional2--',
  5950. "//a[contains(@href,'turbobit.ru/') or contains(@href,'filesmail.ru/') or contains(@href,'failoobmenik.ru/')"+
  5951. " or contains(@href,'firebit.in/') or contains(@href,'dlbit.net/') or contains(@href,'files.china-gsm.ru/') or contains(@href,'3aka4aem.ru/')"+
  5952. " or contains(@href,'file.piratski.ru/') or contains(@href,'mnogofiles.com/') or contains(@href,'links-free.ru/')"+
  5953. " or contains(@href,'turbo-bit.ru/') or contains(@href,'turbosfiles.ru/')]"
  5954. );
  5955. }
  5956. if (GM_getValue("Check_data_dot_hu_links", false))
  5957. {
  5958. addFileHost(
  5959. "data\\.hu\/get\/\\d+\/",
  5960. 'download_box_button',
  5961. 'missing\\.php',
  5962. 'optional--',
  5963. 'optional2--',
  5964. "//a[contains(@href,'data.hu/get')]",
  5965. true
  5966. );
  5967. }
  5968. if (GM_getValue("Check_filesmelt_dot_com_links", false))
  5969. {
  5970. addFileHost(
  5971. "filesmelt\\.com\/dl\/\\w+",
  5972. '(Your download is ready|Download File)',
  5973. 'Sorry, but your',
  5974. 'optional--',
  5975. 'optional2--',
  5976. "//a[contains(@href,'filesmelt.com/dl')]"
  5977. );
  5978. }
  5979. if (GM_getValue("Check_indowebster_dot_com_links", false))
  5980. {
  5981. addFileHost(
  5982. "(?:files\\.)?indowebster\\.com\/download\/\\w+\/",
  5983. 'premiumBtn"',
  5984. 'errorMessage"',
  5985. 'optional--',
  5986. 'optional2--',
  5987. "//a[contains(@href,'indowebster.com/download')]"
  5988. );
  5989. }
  5990. if (GM_getValue("Check_superload_dot_cz_links", false))
  5991. {
  5992. addFileHost(
  5993. "superload\\.cz\/dl\/\\w+",
  5994. 'icon-download">',
  5995. 'soubor nebyl nalezen',
  5996. 'optional--',
  5997. 'optional2--',
  5998. "//a[contains(@href,'superload.cz/dl')]"
  5999. );
  6000. }
  6001. if (GM_getValue("Check_hulkfile_dot_eu_links", false))
  6002. {
  6003. addFileHost(
  6004. "(?:w\\.hulkfile\\.com|hulkfile\\.eu)\/\\w+",
  6005. 'op" value="download',
  6006. 'class="err">|width:500px;text-align:left;">',
  6007. 'optional--',
  6008. 'optional2--',
  6009. "//a[contains(@href,'hulkfile.')]"
  6010. );
  6011. }
  6012. if (GM_getValue("Check_easybytez_dot_com_links", false))
  6013. {
  6014. addFileHost(
  6015. "easybytez\\.com\/\\w+",
  6016. 'op" value="download',
  6017. 'stop_error\\.gif',
  6018. 'optional--',
  6019. 'optional2--',
  6020. "//a[contains(@href,'easybytez.com/')]"
  6021. );
  6022. }
  6023. if (GM_getValue("Check_filestore_dot_com_dot_ua_links", false))
  6024. {
  6025. addFileHost(
  6026. "filestore\\.com\\.ua\/\\?d=\\w+",
  6027. 'tdrow1>',
  6028. 'class=warn',
  6029. 'optional--',
  6030. 'optional2--',
  6031. "//a[contains(@href,'filestore.com.ua/?d=')]"
  6032. );
  6033. }
  6034. if (GM_getValue("Check_netkups_dot_com_links", false))
  6035. {
  6036. addFileHost(
  6037. "netkups\\.com\/\\?d=\\w+",
  6038. 'submit">Continue',
  6039. 'page">File not found|deleted due to inactivity',
  6040. 'optional--',
  6041. 'optional2--',
  6042. "//a[contains(@href,'netkups.com/?d=')]"
  6043. );
  6044. }
  6045. if (GM_getValue("Check_openfile_dot_ru_links", false))
  6046. {
  6047. addFileHost(
  6048. "openfile\\.ru\/(?:video\/|)\\d+",
  6049. 'videobox_left">',
  6050. 'blog_title">|not found on this server',
  6051. 'optional--',
  6052. 'optional2--',
  6053. "//a[contains(@href,'openfile.ru/')]"
  6054. );
  6055. }
  6056. if (GM_getValue("Check_extmatrix_dot_com_links", false))
  6057. {
  6058. addFileHost(
  6059. "extmatrix\\.com\/files\/\\w+",
  6060. 'div class="success"',
  6061. 'div class="error"',
  6062. 'optional--',
  6063. 'optional2--',
  6064. "//a[contains(@href,'extmatrix.com/files')]"
  6065. );
  6066. }
  6067. if (GM_getValue("Check_sendfiles_dot_nl_links", false))
  6068. {
  6069. addFileHost(
  6070. "sendfiles\\.nl\/download.aspx\\?ID=\\w+",
  6071. 'content_lnkDownload',
  6072. 'error\\.aspx\\?',
  6073. 'optional--',
  6074. 'optional2--',
  6075. "//a[contains(@href,'sendfiles.nl/download.aspx')]"
  6076. );
  6077. }
  6078. if (GM_getValue("Check_yourfilestore_dot_com_links", false))
  6079. {
  6080. addFileHost(
  6081. "yourfilestore\\.com\/download\/\\d+\/",
  6082. 'download_data">',
  6083. 'may have been deleted|<h1>Sorry!<\/h1>',
  6084. 'optional--',
  6085. 'optional2--',
  6086. "//a[contains(@href,'yourfilestore.com/download')]"
  6087. );
  6088. }
  6089. if (GM_getValue("Check_nekaka_dot_com_links", false))
  6090. {
  6091. addFileHost(
  6092. "nekaka\\.com\/d\/[\\w-]+",
  6093. 'downloadForm">',
  6094. 'invalid file link',
  6095. 'optional--',
  6096. 'optional2--',
  6097. "//a[contains(@href,'nekaka.com/d')]"
  6098. );
  6099. }
  6100. if (GM_getValue("Check_filebig_dot_net_links", false))
  6101. {
  6102. addFileHost(
  6103. "filebig\\.net\/files\/\\w+",
  6104. 'downloadFile">',
  6105. '<p>File not found<\/p>',
  6106. 'optional--',
  6107. 'optional2--',
  6108. "//a[contains(@href,'filebig.net/files')]"
  6109. );
  6110. }
  6111. if (GM_getValue("Check_gamefront_dot_com_links", false))
  6112. {
  6113. addFileHost(
  6114. "files\\.filefront\\.com\/\/;\\d+;;",
  6115. 'downloadLink">',
  6116. 'File not found, you',
  6117. 'optional--',
  6118. 'optional2--',
  6119. "//a[contains(@href,'files.filefront.com')]"
  6120. );
  6121.  
  6122. addFileHost(
  6123. "gamefront\\.com\/files\/\\d+",
  6124. 'downloadLink">',
  6125. 'File not found, you',
  6126. 'optional--',
  6127. 'optional2--',
  6128. "//a[contains(@href,'gamefront.com/files')]"
  6129. );
  6130. }
  6131. if (GM_getValue("Check_hyperfileshare_dot_com_links", false))
  6132. {
  6133. addFileHost(
  6134. "(?:download\\.|)hyperfileshare\\.com\/(?:download\\.php\\?code=|d\/)\\w+",
  6135. 'dnlLnk"',
  6136. 'already been deleted',
  6137. 'optional--',
  6138. 'optional2--',
  6139. "//a[contains(@href,'hyperfileshare.com/download') or contains(@href,'hyperfileshare.com/d')]"
  6140. );
  6141. }
  6142. if (GM_getValue("Check_hellupload_dot_com_links", false))
  6143. {
  6144. addFileHost(
  6145. "hellupload\\.com\/\\w+",
  6146. '<h3>Download File<br',
  6147. 'id="podstrona">|AVOID_IE_BUG',
  6148. 'optional--',
  6149. 'optional2--',
  6150. "//a[contains(@href,'hellupload.com/')]"
  6151. );
  6152. }
  6153. if (GM_getValue("Check_free_dash_uploading_dot_com_links", false))
  6154. {
  6155. addFileHost(
  6156. "free\\-uploading\\.com\/\\w+",
  6157. 'op" value="download',
  6158. 'class="err">|width:500px;text-align:left;">',
  6159. 'optional--',
  6160. 'optional2--',
  6161. "//a[contains(@href,'free-uploading.com/')]"
  6162. );
  6163. }
  6164. if (GM_getValue("Check_fileape_dot_com_links", false))
  6165. {
  6166. addFileHost(
  6167. "fileape\\.com\/download\\-",
  6168. 'button_dl\\.png',
  6169. 'does not exist\\.',
  6170. 'optional--',
  6171. 'optional2--',
  6172. "//a[contains(@href,'fileape.com/')]"
  6173. );
  6174. }
  6175. if (GM_getValue("Check_uppit_dot_com_links", false))
  6176. {
  6177. addFileHost(
  6178. "(?:uppit\\.com|up\\.ht)\/\\w+",
  6179. 'op" value="download',
  6180. 'class="err">|style="width:500px;text-align:left;"|fish-404\\.png"',
  6181. 'optional--',
  6182. 'optional2--',
  6183. "//a[contains(@href,'up.ht/') or contains(@href,'uppit.com/')]",
  6184. true
  6185. );
  6186. }
  6187. if (GM_getValue("Check_nosupload_dot_com_links", false))
  6188. {
  6189. addFileHost(
  6190. "nosupload\\.com\/(?:\\?d=)?\\w+",
  6191. 'op" value="download',
  6192. '>File Not Found<',
  6193. 'optional--',
  6194. 'optional2--',
  6195. "//a[contains(@href,'nosupload.com')]",
  6196. true
  6197. );
  6198. }
  6199. if (GM_getValue("Check_filesin_dot_com_links", false))
  6200. {
  6201. addFileHost(
  6202. "filesin\\.com\/\\w+\/download\\.html",
  6203. 'download_area">',
  6204. 'error_note">',
  6205. 'optional--',
  6206. 'optional2--',
  6207. "//a[contains(@href,'filesin.com/')]",
  6208. true
  6209. );
  6210. }
  6211. if (GM_getValue("Check_nowdownload_dot_ch_links", false))
  6212. {
  6213. addFileHost(
  6214. "nowdownload\\.ch\/dl\/\\w+",
  6215. 'alert-success"',
  6216. 'This file does not exist!',
  6217. 'The file is being transfered',
  6218. 'optional2--',
  6219. "//a[contains(@href,'nowdownload.ch/dl')]"
  6220. );
  6221. }
  6222. if (GM_getValue("Check_axifile_dot_com_links", false))
  6223. {
  6224. addFileHost(
  6225. "axifile\\.com(?:\/\w(2))?\/\\??\\w+",
  6226. 'Dbutton_big"',
  6227. 'download\\-error\\.php',
  6228. 'optional--',
  6229. 'optional2--',
  6230. "//a[contains(@href,'axifile.com/')]"
  6231. );
  6232. }
  6233. if (GM_getValue("Check_hulkshare_dot_com_links", false))
  6234. {
  6235. addFileHost(
  6236. "hulkshare\.com\/\\w+",
  6237. 'download\.sam\.png|This is a private file|id="filename',
  6238. 'File does not exist|fingerprint protected copyright',
  6239. 'optional--',
  6240. 'optional2--',
  6241. "//a[contains(@href,'hulkshare.com')]"
  6242. );
  6243. }
  6244. if (GM_getValue("Check_turbobit_dot_net_links", false)) //folders
  6245. {
  6246. addFileHost(
  6247. "turbobit\\.(?:net|pl)\/download\/folder\/\\d+",
  6248. 'col-1">\\s*<s',
  6249. 'col-1">\\s*<h',
  6250. 'optional--',
  6251. 'optional2--',
  6252. "//a[contains(@href,'turbobit.') and contains(@href,'download/folder')]"
  6253. );
  6254. }
  6255. if (GM_getValue("Check_turbobit_dot_net_links", false)) //folders
  6256. {
  6257. addFileHost(
  6258. "turbobit\\.(?:net|pl)",
  6259. 'id="download-gate-info',
  6260. 'afterWait()',
  6261. 'optional--',
  6262. 'optional2--',
  6263. "//a[contains(@href,'turbobit.net')]"
  6264. );
  6265. }
  6266. if (GM_getValue("Check_hitfile_dot_net_links", false)) //folders
  6267. {
  6268. addFileHost(
  6269. "hitfile\\.net\/download\/folder\/\\d+",
  6270. 'content">\\s*<s',
  6271. 'content">\\s*<h',
  6272. 'optional--',
  6273. 'optional2--',
  6274. "//a[contains(@href,'hitfile.net/download/folder')]"
  6275. );
  6276. }
  6277. if (GM_getValue("Check_movshare_dot_net_links", false))
  6278. {
  6279. addFileHost(
  6280. "movshare\\.net\\/video\\/\\w+",
  6281. 'optional--"',
  6282. 'no longer exists',
  6283. 'optional--',
  6284. 'optional2--',
  6285. "//a[contains(@href,'movshare.net/video')]"
  6286. );
  6287. }
  6288. if (GM_getValue("Check_plunder_dot_com_links", false))
  6289. {
  6290. addFileHost(
  6291. "plunder\.com\/\\w+",
  6292. 'x\/download\\.gif',
  6293. '404 - File or directory not found.',
  6294. 'optional--',
  6295. 'optional2--',
  6296. "//a[contains(@href,'plunder.com')]"
  6297. );
  6298. }
  6299. if (GM_getValue("Check_mafiastorage_dot_com_links", false))
  6300. {
  6301. addFileHost(
  6302. "mafiastorage\\.com\/\\w+",
  6303. 'op" value="download',
  6304. 'class="err">|style="width:500px;text-align:left;"',
  6305. 'optional--',
  6306. 'optional2--',
  6307. "//a[contains(@href,'mafiastorage.com/')]"
  6308. );
  6309. }
  6310. if (GM_getValue("Check_uploadspace_dot_pl_links", false))
  6311. {
  6312. addFileHost(
  6313. "uploadspace\.pl\/plik\\w+",
  6314. 'Downloading .+? \\|',
  6315. 'Downloading a file',
  6316. 'optional--',
  6317. 'optional2--',
  6318. "//a[contains(@href,'uploadspace.pl/plik')]"
  6319. );
  6320. }
  6321. if (GM_getValue("Check_uploadingit_dot_com_links", false))
  6322. {
  6323. addFileHost(
  6324. "uploadingit\\.com\/file\/\\w+",
  6325. 'downloadTitle">',
  6326. 'deleteContent">',
  6327. 'optional--',
  6328. 'optional2--',
  6329. "//a[contains(@href,'uploadingit.com/file')]"
  6330. );
  6331. }
  6332. if (GM_getValue("Check_rghost_dot_net_links", false))
  6333. {
  6334. addFileHost(
  6335. "rghost\.(?:net|ru)\/(?:|private\/)\\d+",
  6336. 'download_link|btn large download',
  6337. 'file is restricted|File is deleted|503 Service Unavailable',
  6338. 'optional--',
  6339. 'optional2--',
  6340. "//a[contains(@href,'rghost.')]"
  6341. );
  6342. }
  6343. if (GM_getValue("Check_xdisk_dot_cz_links", false))
  6344. {
  6345. addFileHost(
  6346. "xdisk\\.cz\/(?:..\/)?download\\.php\\?id=\\w+",
  6347. '">Staženo:\\s*<\/span>',
  6348. 'Soubor, který hledáte nenalezen',
  6349. 'optional--',
  6350. 'optional2--',
  6351. "//a[contains(@href,'xdisk.cz/')]"
  6352. );
  6353. }
  6354. if (GM_getValue("Check_expressleech_dot_com_links", false))
  6355. {
  6356. addFileHost(
  6357. "expressleech\.com\/\\w+",
  6358. 'src="/img/Download.gif"|var _gaq =',
  6359. 'var rr =|403 Forbidden',
  6360. 'optional--',
  6361. 'optional2--',
  6362. "//a[contains(@href,'expressleech.com')]");
  6363. }
  6364. if (GM_getValue("Check_2downloadz_dot_com_links", false))
  6365. {
  6366. addFileHost(
  6367. "2downloadz\.com\/\\w+",
  6368. 'color="#848484|src="images/Download.png"|color:#238DCA',
  6369. 'color="#006DCC|File error',
  6370. 'optional--',
  6371. 'optional2--',
  6372. "//a[contains(@href,'2downloadz.com')]");
  6373. }
  6374. if (GM_getValue("Check_mightyupload_dot_com_links", false))
  6375. {
  6376. addFileHost(
  6377. "mightyupload\.com\/\\w+",
  6378. 'background:#ccc;text-align|CONTENT="Download File"',
  6379. 'style="background:#eee|var rr =|File Not Found',
  6380. 'error-code">1010',
  6381. 'optional2--',
  6382. "//a[contains(@href,'mightyupload.com')]");
  6383. }
  6384. if (GM_getValue("Check_anysend_dot_com_links", false))
  6385. {
  6386. addFileHost(
  6387. "anysend\.com\/\\w+",
  6388. 'var openCalled=false;|content="noindex"',
  6389. '_trackPageview',
  6390. 'optional--',
  6391. 'optional2--',
  6392. "//a[contains(@href,'anysend.com')]");
  6393. }
  6394. if (GM_getValue("Check_datafile_dot_com_links", false))
  6395. {
  6396. addFileHost(
  6397. "datafile\.com\/\\w+",
  6398. 'var captchaPanel|<link href="/css/files_download.css"',
  6399. 'ErrorCode|ErrorCode 0: Invalid Link|btn-orange" href="#"',
  6400. 'You are downloading another file at this moment|You exceeded your free|Site Maintenance',
  6401. '; display:none;">', //<style type="text/css">
  6402. "//a[contains(@href,'datafile.com')]",
  6403. true);
  6404. }
  6405. if (GM_getValue("Check_upstore_dot_net_links", false))
  6406. {
  6407. addFileHost(
  6408. "upstore\.net\/\\w+",
  6409. 'style="margin-top: 20px">|style="text-align:center; margin: 20px 0 100px;">',
  6410. 'File not found|onload="redirect|class="error">',
  6411. 'optional--',
  6412. 'optional2--',
  6413. "//a[contains(@href,'upstore.net')]");
  6414. }
  6415. if (GM_getValue("Check_upsto_dot_re_links", false))
  6416. {
  6417. addFileHost(
  6418. "upsto\.re\/\\w+",
  6419. 'style="margin-top: 20px">|style="text-align:center; margin: 20px 0 100px;">',
  6420. 'File not found|onload="redirect|class="error">',
  6421. 'optional--',
  6422. 'optional2--',
  6423. "//a[contains(@href,'upsto.re')]");
  6424. }
  6425. if (GM_getValue("Check_speedy_dot_sh_links", false))
  6426. {
  6427. addFileHost(
  6428. "speedy\.sh\/\\w+",
  6429. 'bgcolor=#eeeeee|class="addthis',
  6430. 'File not found|downloadfilenamenotfound>',
  6431. 'optional--',
  6432. 'optional2--',
  6433. "//a[contains(@href,'speedy.sh')]");
  6434. }
  6435. if (GM_getValue("Check_sanshare_dot_com_links", false))
  6436. {
  6437. addFileHost(
  6438. "sanshare\.com\/\\w+",
  6439. 'SANSHARE_TOPBANNER|offset-1"><h3><b>Download File',
  6440. 'offset-1"><b>File Not Found<|width:500px;text-align',
  6441. 'optional--',
  6442. 'optional2--',
  6443. "//a[contains(@href,'sanshare.com')]");
  6444. }
  6445. if (GM_getValue("Check_uploadhero_dot_co_links", false))
  6446. {
  6447. addFileHost(
  6448. "uploadhero\\.co\/dl\/\\w+",
  6449. 'class="nom_de_fichier"|Unlimited downloads|Estimated download time|Lien de téléchargement"',
  6450. 'not available on our server|pas disponible sur nos serveurs|Le lien du fichier est incorrect',
  6451. 'optional--',
  6452. 'optional2--',
  6453. "//a[contains(@href,'uploadhero.co/dl')]"
  6454. );
  6455. }
  6456. if (GM_getValue("Check_secureupload_dot_eu_links", false))
  6457. {
  6458. addFileHost(
  6459. "secureupload\\.eu\/\\w+",
  6460. 'Downloading',
  6461. 'cannot be found|File Not Found|could not be found',
  6462. 'optional--',
  6463. 'optional2--',
  6464. "//a[contains(@href,'secureupload.eu')]"
  6465. );
  6466. }
  6467. if (GM_getValue("Check_ge_dot_tt_links", false))
  6468. {
  6469. addFileHost(
  6470. "ge\.tt\/\\w+",
  6471. 'downloads pic',
  6472. 'is NOT the same as',
  6473. 'optional--',
  6474. 'optional2--',
  6475. "//a[contains(@href,'ge.tt')]");
  6476. }
  6477. if (GM_getValue("Check_filefactory_dot_com_links", false))
  6478. {
  6479. addFileHost(
  6480. "filefactory\.com\/\\w+",
  6481. 'div id="file_holder"|download.css',
  6482. 'File Removed|Invalid Download Link|File Unavailable|Server Failed|Datei entfernt|This file has been removed|Invalid Download Link',
  6483. 'Server Maintenance|temporarily overloaded',
  6484. 'optional2--',
  6485. "//a[contains(@href,'filefactory.com')]");
  6486. }
  6487. if (GM_getValue("Check_filesflash_dot_net_links", false))
  6488. {
  6489. addFileHost(
  6490. "filesflash\.net\/\\w+",
  6491. 'align:right">Filename:',
  6492. 'class="msg">',
  6493. 'optional--',
  6494. 'optional2--',
  6495. "//a[contains(@href,'filesflash.net')]");
  6496. }
  6497. if (GM_getValue("Check_rapidgator_dot_net_links", false)) //folders
  6498. {
  6499. addFileHost(
  6500. "rapidgator\\.net\/folder\/\\w+",
  6501. 'href="/folder/',
  6502. 'class="empty|Folder not found|Carpeta no encontrada|Dossier non trouvé|Папка не найдена',
  6503. 'optional--',
  6504. 'optional2--',
  6505. "//a[contains(@href,'rapidgator.net/folder')]",
  6506. true
  6507. );
  6508. }
  6509. if (GM_getValue("Check_salefiles_dot_com_links", false))
  6510. {
  6511. addFileHost(
  6512. "salefiles\.com\/\\w+",
  6513. '<Title>Download|CONTENT="Download',
  6514. 'font:15px Arial|background:#eee;',
  6515. 'optional--',
  6516. 'optional2--',
  6517. "//a[contains(@href,'salefiles.com')]");
  6518. }
  6519. if (GM_getValue("Check_megairon_dot_net_links", false))
  6520. {
  6521. addFileHost(
  6522. "megairon\.net\/\\w+",
  6523. 'border: 5px #ffeb90 solid;',
  6524. 'CONTENT="Download File ">|var rr =',
  6525. 'error-code">523',
  6526. 'optional2--',
  6527. "//a[contains(@href,'megairon.net')]",
  6528. true);
  6529. }
  6530. if (GM_getValue("Check_datoid_dot_cz_links", false))
  6531. {
  6532. addFileHost(
  6533. "datoid\.cz\/\\w+",
  6534. 'btn-download|class="icon-download-large"',
  6535. 'Stránka nenalezena|error-404|Soubor byl zablokován',
  6536. 'optional--',
  6537. 'optional2--',
  6538. "//a[contains(@href,'datoid.cz')]");
  6539. }
  6540. if (GM_getValue("Check_stiahni_dot_si_links", false))
  6541. {
  6542. addFileHost(
  6543. "stiahni\.si\/\\w+",
  6544. 'report_icon.png"|slow-download-button',
  6545. 'none.png|deleted|<h2>Error 500</h2>',
  6546. 'optional--',
  6547. 'optional2--',
  6548. "//a[contains(@href,'stiahni.si')]");
  6549. }
  6550. if (GM_getValue("Check_cloudstor_dot_es_links", false))
  6551. {
  6552. addFileHost(
  6553. "cloudstor\.es\/\\w+",
  6554. '"btn_download"',
  6555. '404: Page Not Found',
  6556. 'optional--',
  6557. 'optional2--',
  6558. "//a[contains(@href,'cloudstor.es')]");
  6559. }
  6560. if (GM_getValue("Check_streamfile_dot_com_links", false))
  6561. {
  6562. addFileHost(
  6563. "streamfile\.com\/\\w+",
  6564. 'class="btn',
  6565. 'class="green-btn',
  6566. 'optional--',
  6567. 'optional2--',
  6568. "//a[contains(@href,'streamfile.com')]");
  6569. }
  6570. if (GM_getValue("Check_eyesfile_dot_ca_links", false))
  6571. {
  6572. addFileHost(
  6573. "eyesfile\.ca\/\\w+",
  6574. 'value="Get Link',
  6575. 'var rr =',
  6576. 'optional--',
  6577. 'optional2--',
  6578. "//a[contains(@href,'eyesfile.ca')]");
  6579. }
  6580. if (GM_getValue("Check_filemoney_dot_com_links", false))
  6581. {
  6582. addFileHost(
  6583. "filemoney\.com\/\\w+",
  6584. 'og:title',
  6585. '404 Not Found|<Title>FileMoney|File Not Found|class="err">DMCA</b>',
  6586. 'error-code">1010',
  6587. 'optional2--',
  6588. "//a[contains(@href,'filemoney.com')]");
  6589. }
  6590. if (GM_getValue("Check_uploadboy_dot_com_links", false))
  6591. {
  6592. addFileHost(
  6593. "uploadboy\.com\/\\w+",
  6594. 'width="740">|method_free',
  6595. 'var rr =|background:#ffffff|not be found|file was removed',
  6596. 'optional--',
  6597. 'optional2--',
  6598. "//a[contains(@href,'uploadboy.com')]");
  6599. }
  6600. if (GM_getValue("Check_speedshare_dot_eu_links", false))
  6601. {
  6602. addFileHost(
  6603. "speedshare\.eu\/\\w+",
  6604. 'favicon.png|color:#3d87c0|cross.png"',
  6605. 'var rr =|File Not Found|style="background:#eee',
  6606. 'optional--',
  6607. 'optional2--',
  6608. "//a[contains(@href,'speedshare.eu')]");
  6609. }
  6610. if (GM_getValue("Check_unlimitzone_dot_com_links", false))
  6611. {
  6612. addFileHost(
  6613. "unlimitzone\.com\/\\w+",
  6614. 'name="method_free',
  6615. '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',
  6616. 'optional--',
  6617. 'optional2--',
  6618. "//a[contains(@href,'unlimitzone.com')]");
  6619. }
  6620. if (GM_getValue("Check_rioupload_dot_com_links", false))
  6621. {
  6622. addFileHost(
  6623. "rioupload\.com\/\\w+",
  6624. 'sell.jpg',
  6625. 'var rr =',
  6626. 'optional--',
  6627. 'optional2--',
  6628. "//a[contains(@href,'rioupload.com')]");
  6629. }
  6630. if (GM_getValue("Check_rg_dot_to_links", false))
  6631. {
  6632. addFileHost(
  6633. "rg\.to\/\\w+",
  6634. '/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',
  6635. 'Error 404|File not found|Select your plan|Fichier non trouvé|Archivo no encontrado|ファイルが探せませんでした|Файл не найден',
  6636. 'optional--',
  6637. 'can be downloaded by premium only|files up to 500 MB in free mode',
  6638. "//a[contains(@href,'rg.to')]");
  6639. }
  6640. if (GM_getValue("Check_jumbofiles_dot_org_links", false))
  6641. {
  6642. addFileHost(
  6643. "jumbofiles\.org\/\\w+",
  6644. 'H71C5.png|class="downloadtitle">',
  6645. 'var swfu|ViewSourceBIN.png',
  6646. 'optional--',
  6647. 'optional2--',
  6648. "//a[contains(@href,'jumbofiles.org')]");
  6649. }
  6650. if (GM_getValue("Check_fshare_dot_vn_links", false))
  6651. {
  6652. addFileHost(
  6653. "fshare\\.vn\/file\/\\w+",
  6654. 'action="#download"|left; width: 330px;">|class="bt_down"',
  6655. 'không tồn tại|class="color_red m_t_50"',
  6656. 'optional--',
  6657. 'optional2--',
  6658. "//a[contains(@href,'fshare.vn/file')]",
  6659. true
  6660. );
  6661. }
  6662. if (GM_getValue("Check_spaceforfiles_dot_com_links", false))
  6663. {
  6664. addFileHost(
  6665. "spaceforfiles\.com\/\\w+",
  6666. 'btn_slowspeed_b.jpg|value="download1|class="btn_blue',
  6667. 'var rr =|AVOID_IE_BUG',
  6668. 'optional--',
  6669. 'optional2--',
  6670. "//a[contains(@href,'spaceforfiles.com')]");
  6671. }
  6672. if (GM_getValue("Check_google_dot_com_links", false))
  6673. {
  6674. addFileHost(
  6675. "google\\.com\/file\/\\w+",
  6676. 'content="!">|color:#2d2d2d',
  6677. '12pt; font-weight:|class="errorMessage"|F0F6FF',
  6678. 'optional--',
  6679. 'optional2--',
  6680. "//a[contains(@href,'google.com/file')]",
  6681. true
  6682. );
  6683. }
  6684. if (GM_getValue("Check_google_dot_com_links", false))
  6685. {
  6686. addFileHost(
  6687. "docs.google.com\/\\w+",
  6688. 'content="!">|color:#2d2d2d',
  6689. '12pt; font-weight:|class="errorMessage"|F0F6FF|Error 404',
  6690. 'optional--',
  6691. 'optional2--',
  6692. "//a[contains(@href,'docs.google.com')]",
  6693. true
  6694. );
  6695. }
  6696. if (GM_getValue("Check_google_dot_com_links", false))
  6697. {
  6698. addFileHost(
  6699. "drive.google.com\/\\w+",
  6700. 'content="!">|color:#2d2d2d|id="uc-download-link',
  6701. '12pt; font-weight:|class="errorMessage"|F0F6FF|Error 404',
  6702. 'optional--',
  6703. 'optional2--',
  6704. "//a[contains(@href,'drive.google.com')]",
  6705. true
  6706. );
  6707. }
  6708. if (GM_getValue("Check_up_dot_media1fire_dot_com_links", false))
  6709. {
  6710. addFileHost(
  6711. "up.media1fire\.com\/\\w+",
  6712. 'class="addthis_|value="download',
  6713. 'var rr =|AVOID_IE_BUG|<div style="width:500px;text-align:left;">',
  6714. 'optional--',
  6715. 'optional2--',
  6716. "//a[contains(@href,'up.media1fire.com')]");
  6717. }
  6718. if (GM_getValue("Check_depfile_dot_com_links", false))
  6719. {
  6720. addFileHost(
  6721. "depfile\.com\/\\w+",
  6722. 'logo_0.png|downloads.gif"|verifycode',
  6723. 'border-color: #5D729B;|bgcolor="#778AAF"|deleted by the owner|Invalid Link',
  6724. 'optional--',
  6725. 'optional2--',
  6726. "//a[contains(@href,'depfile.com')]");
  6727. }
  6728. if (GM_getValue("Check_go4up_dot_com_links", false))
  6729. {
  6730. addFileHost(
  6731. "go4up\.com\/\\w+",
  6732. 'style="width: 100%;">|value="Access|download_line|img/webbuttoned.gif">',
  6733. '<title>GO4UP|dmca',
  6734. 'optional--',
  6735. 'optional2--',
  6736. "//a[contains(@href,'go4up.com')]");
  6737. }
  6738. if (GM_getValue("Check_redbunker_dot_net_links", false))
  6739. {
  6740. addFileHost(
  6741. "redbunker\.net\/\\w+",
  6742. 'name="method_free"',
  6743. 'color="red">Unknow / Bilinmiyor<',
  6744. 'optional--',
  6745. 'optional2--',
  6746. "//a[contains(@href,'redbunker.net')]");
  6747. }
  6748. if (GM_getValue("Check_divxpress_dot_com_links", false))
  6749. {
  6750. addFileHost(
  6751. "divxpress\.com\/\\w+",
  6752. 'btn_download|logo.png"',
  6753. 'AVOID_IE_BUG|var rr =',
  6754. 'optional--',
  6755. 'optional2--',
  6756. "//a[contains(@href,'divxpress.com')]");
  6757. }
  6758. if (GM_getValue("Check_anafile_dot_com_links", false))
  6759. {
  6760. addFileHost(
  6761. "anafile\.com\/\\w+",
  6762. 'width="881" valign="top|color="#800080"|name="go"',
  6763. 'style="width:500px;text-align:left;">|file was deleted|AVOID_IE_BUG',
  6764. 'optional--',
  6765. 'optional2--',
  6766. "//a[contains(@href,'anafile.com')]");
  6767. }
  6768. if (GM_getValue("Check_uploadable_dot_ch_links", false))
  6769. {
  6770. addFileHost(
  6771. "uploadable\\.ch\/file\/\\w+",
  6772. 'captcha.js"|payment.js"|class="btn_download"',
  6773. '<div class="icon_err">|<div class="errorBox">|"error_arrow">',
  6774. 'optional--',
  6775. 'optional2--',
  6776. "//a[contains(@href,'uploadable.ch/file')]",
  6777. true
  6778. );
  6779. }
  6780. if (GM_getValue("Check_arabloads_dot_net_links", false))
  6781. {
  6782. addFileHost(
  6783. "arabloads\.net\/\\w+",
  6784. 'name="method_free"|name="method_premium"',
  6785. 'background:#eee;font:15px Arial;">|AVOID_IE_BUG|Verdana;padding:3px;">Error|Not Found',
  6786. 'optional--',
  6787. 'optional2--',
  6788. "//a[contains(@href,'arabloads.net')]");
  6789. }
  6790. if (GM_getValue("Check_sharerepo_dot_com_links", false))
  6791. {
  6792. addFileHost(
  6793. "sharerepo\.com\/\\w+",
  6794. 'name="method_free"',
  6795. 'var public_on=|The file you were looking for could not be found',
  6796. 'optional--',
  6797. 'optional2--',
  6798. "//a[contains(@href,'sharerepo.com')]");
  6799. }
  6800. if (GM_getValue("Check_sfshare_dot_se_links", false))
  6801. {
  6802. addFileHost(
  6803. "sfshare\.se\/\\w+",
  6804. 'id="btn_download"|class="btn btn-primary txt-bold" value="',
  6805. 'AVOID_IE_BUG|var rr =|style="width:500px;text-align:left;">|Reason for deletion|The file was removed',
  6806. 'optional--',
  6807. 'optional2--',
  6808. "//a[contains(@href,'sfshare.se')]");
  6809. }
  6810. if (GM_getValue("Check_files_dot_fm_links", false))
  6811. {
  6812. addFileHost(
  6813. "files\.fm\/\\w+",
  6814. 'dl.png"|background-color: transparent',
  6815. 'margin: 40px 40px|background: none;',
  6816. 'optional--',
  6817. 'optional2--',
  6818. "//a[contains(@href,'files.fm')]");
  6819. }
  6820. if (GM_getValue("Check_koofile_dot_com_links", false))
  6821. {
  6822. addFileHost(
  6823. "koofile\.com\/\\w+",
  6824. 'value="download1">|name="method_free"',
  6825. 'class="overview-content c_text-box ">|style="padding-top:3px;">|class="rt1 c">',
  6826. 'optional--',
  6827. 'optional2--',
  6828. "//a[contains(@href,'koofile.com')]");
  6829. }
  6830. if (GM_getValue("Check_vidxden_dot_com_links", false))
  6831. {
  6832. addFileHost(
  6833. "vidxden\\.com\/\\w+",
  6834. 'Continue to Video"',
  6835. 'No such file',
  6836. 'optional--',
  6837. 'optional2--',
  6838. "//a[contains(@href,'vidxden.com')]"
  6839. );
  6840. }
  6841. if (GM_getValue("Check_muchshare_dot_net_links", false))
  6842. {
  6843. addFileHost(
  6844. "muchshare\\.net\/\\w+",
  6845. 'id="btn_download"',
  6846. 'File Not Found|width: 500px; text-align: left;',
  6847. 'optional--',
  6848. 'optional2--',
  6849. "//a[contains(@href,'muchshare.net')]"
  6850. );
  6851. }
  6852. if (GM_getValue("Check_daten_dash_hoster_dot_de_links", false))
  6853. {
  6854. addFileHost(
  6855. "(?:daten-hoster\\.de\/file\/\\w+|filehosting\\.org\/file\/\\w+|xtraupload\\.de\/\\?d=\\w+)",
  6856. 'Details zur Datei|Details page',
  6857. 'Jetzt hochladen|upload now',
  6858. 'optional--',
  6859. 'optional2--',
  6860. "//a[contains(@href,'daten-hoster.de/file') or contains(@href,'filehosting.org/file') or contains(@href,'xtraupload.de')]"
  6861. );
  6862. }
  6863. if (GM_getValue("Check_upload_dash_il_dot_net_links", false))
  6864. {
  6865. addFileHost(
  6866. "(?:upload-il|przeslij)\.net\/(?:en|he|ar|ru|)\/?\\w+",
  6867. 'downloadbtn"',
  6868. 'DL_FileNotFound',
  6869. 'optional--',
  6870. 'optional2--',
  6871. "//a[contains(@href,'upload-il.net') or contains(@href,'przeslij.net')]"
  6872. );
  6873. }
  6874. if (GM_getValue("Check_fileflyer_dot_com_links", false))
  6875. {
  6876. addFileHost(
  6877. "fileflyer\.com\/view\/\\w+",
  6878. '(?:dwl|locked)btn"',
  6879. 'error.gif"|link">Removed|removedlink">',
  6880. 'optional--',
  6881. 'optional2--',
  6882. "//a[contains(@href,'fileflyer.com')]"
  6883. );
  6884. }
  6885. if (GM_getValue("Check_filestore_dot_to_links", false))
  6886. {
  6887. addFileHost(
  6888. "filestore\.to\/\\?d=\\w+",
  6889. '"downloading"',
  6890. 'Datei wurde nicht gefunden',
  6891. 'optional--',
  6892. 'optional2--',
  6893. "//a[contains(@href,'filestore.to')]"
  6894. );
  6895. }
  6896. if (GM_getValue("Check_easy_dash_share_dot_com_links", false))
  6897. {
  6898. addFileHost(
  6899. "(?:w\\d*\.|)(?:crocko|easy-share)\\.com\/.",
  6900. 'fz24">Download|class="pl15">',
  6901. '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',
  6902. 'optional--',
  6903. 'optional2--',
  6904. "//a[contains(@href,'easy-share.com') or contains(@href,'crocko.com')]"
  6905. );
  6906. }
  6907. /* if (GM_getValue("Check_burnupload_dot_com_links", false))
  6908. {
  6909. addFileHost(
  6910. "burnupload\\.(?:com\/\\?d=|ihiphop\\.com\/download\\.php\\?id=)\\w+",
  6911. 'File size:',
  6912. 'file is not found',
  6913. 'optional--',
  6914. 'optional2--',
  6915. "//a[contains(@href,'burnupload.com') or contains(@href,'burnupload.ihiphop.com')]"
  6916. );
  6917. } */
  6918. if (GM_getValue("Check_datei_dot_to_links", false))
  6919. {
  6920. addFileHost(
  6921. "datei\\.to\/\\??\\w+",
  6922. 'icon_downloaden\\.png|>Download starten<',
  6923. 'Datei wurde nicht gefunden|icon_deleted.png',
  6924. 'optional--',
  6925. 'optional2--',
  6926. "//a[contains(@href,'datei.to')]"
  6927. );
  6928. }
  6929. if (GM_getValue("Check_yunfile_dot_com_links", false))
  6930. {
  6931. addFileHost(
  6932. "(?:yunfile|filemarkets)\\.com\/\\w+",
  6933. '<body class="body" id="body">|value="Slow Download"',
  6934. '<body class="body" >',
  6935. 'optional--',
  6936. 'optional2--',
  6937. "//a[contains(@href,'yunfile.com') or contains(@href,'filemarkets.com')]"
  6938. );
  6939. }
  6940. if (GM_getValue("Check_uploadhero_dot_com_links", false))
  6941. {
  6942. addFileHost(
  6943. "uploadhero\\.com\/dl\/\\w+",
  6944. 'content-dl">',
  6945. 'men_file_lost\\.jpg"',
  6946. 'optional--',
  6947. 'optional2--',
  6948. "//a[contains(@href,'uploadhero.com/dl')]"
  6949. );
  6950. }
  6951. if (GM_getValue("Check_unibytes_dot_com_links", false))
  6952. {
  6953. addFileHost(
  6954. "unibytes\\.com\/[\\w\.]+",
  6955. 'trying to download|пытаетесь загрузить файл|tes entrain de tlcharger',
  6956. 'File not found|Файл не найден|',
  6957. 'optional--',
  6958. 'optional2--',
  6959. "//a[contains(@href,'unibytes.com')]"
  6960. );
  6961. }
  6962. if (GM_getValue("Check_hellshare_dot_com_links", false)) //very old type of links
  6963. {
  6964. addFileHost(
  6965. "www\\.hellshare\\.com\/\\d+",
  6966. 'tab\\-details"',
  6967. 'list-purp-2"|not found on this server',
  6968. 'optional--',
  6969. 'optional2--',
  6970. "//a[contains(@href,'www.hellshare.com')]"
  6971. );
  6972. }
  6973. /* if (GM_getValue("Check_quickshare_dot_cz_links", false)) //folders
  6974. {
  6975. addFileHost(
  6976. "quickshare\\.cz\/slozka-\\d+",
  6977. 'Počet souborů: <strong>[1-9]',
  6978. 'Počet souborů: <strong>0|Chyba! Taková složka neexistuje',
  6979. 'optional--',
  6980. 'optional2--',
  6981. "//a[contains(@href,'quickshare.cz/slozka')]"
  6982. );
  6983. } */
  6984. if (GM_getValue("Check_filefactory_dot_com_links", false)) //folders
  6985. {
  6986. addFileHost(
  6987. "filefactory\\.com\/f\/\\w+",
  6988. 'folderFileList">',
  6989. 'table class="items"|Pointer" class="red">',
  6990. 'optional--',
  6991. 'optional2--',
  6992. "//a[contains(@href,'filefactory.com/f/')]"
  6993. );
  6994. }
  6995. if (GM_getValue("Check_netload_dot_in_links", false)) //folders
  6996. {
  6997. addFileHost(
  6998. "netfolder\\.in\/\\w+",
  6999. 'list" value="http',
  7000. 'InPage_Error">|list" value=""',
  7001. 'optional--',
  7002. 'optional2--',
  7003. "//a[contains(@href,'netfolder.in')]"
  7004. );
  7005. }
  7006. if (GM_getValue("Check_load_dot_to_links", false))
  7007. {
  7008. addFileHost(
  7009. '(?:www\\.|\\/)load\\.to\\/(?:\\w{10}\\/.|\\?d=\\w{10})',
  7010. '"download_table_left">Size',
  7011. 'Can\'t find file',
  7012. 'optional--',
  7013. 'optional2--',
  7014. "//a[contains(@href,'/load.to/') or contains(@href,'www.load.to/')]"
  7015. );
  7016. }
  7017. if (GM_getValue("Check_divshare_dot_com_links", false))
  7018. {
  7019. addFileHost(
  7020. "divshare\\.com\/download\/",
  7021. 'download_new\.png',
  7022. 'have been removed',
  7023. 'optional--',
  7024. 'optional2--',
  7025. "//a[contains(@href,'divshare.com')]"
  7026. );
  7027. }
  7028. if (GM_getValue("Check_euroshare_dot_eu_links", false))
  7029. {
  7030. addFileHost(
  7031. "euroshare\\.(?:eu|pl|sk|cz|hu)\/file\/\\d+",
  7032. 'nazev-souboru">',
  7033. '<div id="obsah">\\s*<h1>',
  7034. 'optional--',
  7035. 'optional2--',
  7036. "//a[contains(@href,'euroshare.eu/file')]"
  7037. );
  7038. }
  7039. if (GM_getValue("Check_files_dot_mail_dot_ru_links", false))
  7040. {
  7041. addFileHost(
  7042. 'files\\.mail\\.ru/(?:\\w*)',
  7043. 'fileList',
  7044. 'errorMessage',
  7045. 'optional--',
  7046. 'optional2--',
  7047. "//a[contains(@href,'files.mail.ru')]"
  7048. );
  7049. }
  7050. if (GM_getValue("Check_megashares_dot_com_links", false))
  7051. {
  7052. addFileHost(
  7053. "(?:d\\d+\.|)megashares\.com\/(?:dl|index\.php\\?d|\\?d\\d+=\\w+)",
  7054. 'Filesize',
  7055. 'Invalid|deleted|Could not download file',
  7056. 'slots|scheduled maintenance',
  7057. 'optional2--',
  7058. "//a[contains(@href,'megashares.com/')]"
  7059. );
  7060. }
  7061. if (GM_getValue("Check_narod_dot_ru_links", false))
  7062. {
  7063. addFileHost(
  7064. 'narod\\.(?:yandex\\.|)ru\/disk\/',
  7065. 'b-submit',
  7066. 'b-download-virus-note|headCode">404<',
  7067. 'Внутренняя ошибка сервиса',
  7068. 'optional2--',
  7069. "//a[contains(@href,'narod.ru') or contains(@href,'narod.yandex.ru')]"
  7070. );
  7071. }
  7072. if (GM_getValue("Check_rayfile_dot_com_links", false))
  7073. {
  7074. addFileHost(
  7075. "rayfile\\.com\/",
  7076. 'FILEtitleTXT',
  7077. 'blueRow',
  7078. 'optional--',
  7079. 'optional2--',
  7080. "//a[contains(@href,'rayfile.com/') and contains(@href,'files')]"
  7081. );
  7082. }
  7083. if (GM_getValue("Check_filesmonster_dot_com_links", false))
  7084. {
  7085. addFileHost(
  7086. "filesmonster\\.com\/download\\.php\\?id=\\w+",
  7087. 'button_green_body"',
  7088. 'error">',
  7089. 'optional--',
  7090. 'optional2--',
  7091. "//a[contains(@href,'filesmonster.com/download')]"
  7092. );
  7093. }
  7094. if (GM_getValue("Check_usaupload_dot_net_links", false))
  7095. {
  7096. addFileHost(
  7097. 'usaupload\\.net\/d\/(?:\w*)',
  7098. '<strong>File size:</strong>',
  7099. 'is not available',
  7100. 'optional--',
  7101. 'optional2--',
  7102. "//a[contains(@href,'usaupload.net/d/')]"
  7103. );
  7104. }
  7105. if (GM_getValue("Check_sendspace_dot_com_links", false))
  7106. {
  7107. addFileHost(
  7108. 'sendspace\\.com\/file\/\\w+',
  7109. 'file_description',
  7110. 'msg error"',
  7111. 'optional--',
  7112. 'optional2--',
  7113. "//a[contains(@href,'sendspace.com/file')]"
  7114. );
  7115. }
  7116. if (GM_getValue("Check_sendspace_dot_pl_links", false))
  7117. {
  7118. addFileHost(
  7119. 'sendspace\\.pl\/file\/\\w+',
  7120. 'download_file"',
  7121. 'Podany plik nie',
  7122. 'optional--',
  7123. 'optional2--',
  7124. "//a[contains(@href,'sendspace.pl/file')]"
  7125. );
  7126. }
  7127. if (GM_getValue("Check_uploading_dot_com_links", false))
  7128. {
  7129. addFileHost(
  7130. 'uploading\\.com\/(?:files\/)?\\w+',
  7131. 'free_method">',
  7132. 'file_error">|error_404">|file not found|OOPS! Looks like file not found',
  7133. 'optional--',
  7134. 'optional2--',
  7135. "//a[contains(@href,'uploading.com')]"
  7136. );
  7137. }
  7138. if (GM_getValue("Check_gigasize_dot_com_links", false))
  7139. {
  7140. addFileHost(
  7141. 'gigasize\\.com\/get\\.php(?:\/\\d+|\\?d=\\w+)',
  7142. 'fileId"',
  7143. 'error">',
  7144. 'optional--',
  7145. 'optional2--',
  7146. "//a[contains(@href,'gigasize.com/get')]"
  7147. );
  7148. }
  7149. if (GM_getValue("Check_good_dot_com_links", false))
  7150. {
  7151. addFileHost(
  7152. 'good\\.net\/(?:_|dl)',
  7153. 'Free Download',
  7154. 'Not Found',
  7155. 'Forbidden',
  7156. 'optional2--',
  7157. "//a[contains(@href,'good.net')]"
  7158. );
  7159. }
  7160. if (GM_getValue("Check_2shared_dot_com_links", false))
  7161. {
  7162. addFileHost(
  7163. '2shared\\.com\/(?:file|video|document|audio)\/\\w*',
  7164. 'File size',
  7165. 'File not found|is not valid|/images/important.gif',
  7166. 'optional--',
  7167. 'optional2--',
  7168. "//a[contains(@href,'2shared.com/file/') or contains (@href,'2shared.com/audio/') or contains (@href,'2shared.com/document/') or contains (@href,'2shared.com/video/')]"
  7169. );
  7170. }
  7171. if (GM_getValue("Check_turboupload_dot_com_links", false))
  7172. {
  7173. addFileHost(
  7174. 'turboupload\\.com\/\\w*',
  7175. 'You have requested',
  7176. 'File Not Found',
  7177. 'optional--',
  7178. 'optional2--',
  7179. "//a[contains(@href,'turboupload.com')]"
  7180. );
  7181. }
  7182. if (GM_getValue("Check_gigapeta_dot_com_links", false))
  7183. {
  7184. addFileHost(
  7185. 'gigapeta\\.com\/dl\/',
  7186. 'Download file|Скачать файл| Herunterzuladen|Scarica il file|Cargar el fichero|Charger le fichier',
  7187. '404|page_error',
  7188. 'optional--',
  7189. 'optional2--',
  7190. "//a[contains(@href,'gigapeta.com/dl')]"
  7191. );
  7192. }
  7193. if (GM_getValue("Check_veehd_dot_com_links", false))
  7194. {
  7195. addFileHost(
  7196. 'veehd\.com\/video\/.*?',
  7197. 'No sound|Download video',
  7198. 'Featured Videos',
  7199. 'optional--',
  7200. 'optional2--',
  7201. "//a[contains(@href,'veehd.com') and contains(@href,'video')]"
  7202. );
  7203. }
  7204. if (GM_getValue("Check_vip_dash_file_dot_com_links", false))
  7205. {
  7206. addFileHost(
  7207. '(?:u\\d+\\.)?vip-file\\.com\/download.*?\/(?:.*?)\/(?:.*?)\\.html',
  7208. 'fast_download_form">|submit_sms_download',
  7209. '<p style="text-align:center">',
  7210. 'optional--',
  7211. 'optional2--',
  7212. "//a[contains(@href,'vip-file.com/download')]"
  7213. );
  7214. }
  7215. if (GM_getValue("Check_letitbit_dot_net_links", false))
  7216. {
  7217. addFileHost(
  7218. '(?:u\\d+\\.)?letitbit\\.net\/download\/\\w+',
  7219. 'download\\-pnl ',
  7220. 'color:#000">|Запрашиваемый файл не найден|страница не существует|File not found|',
  7221. 'optional--',
  7222. 'optional2--',
  7223. "//a[contains(@href,'letitbit.net/download')]"
  7224. );
  7225. }
  7226. if (GM_getValue("Check_ifolder_dot_ru_links", false))
  7227. {
  7228. addFileHost(
  7229. 'ifolder\.ru\/\\d+',
  7230. 'file-info',
  7231. 'ui-state-error',
  7232. 'optional--',
  7233. 'optional2--',
  7234. "//a[contains(@href,'ifolder.ru')]"
  7235. );
  7236. }
  7237. if (GM_getValue("Check_fileswap_dot_com_links", false))
  7238. {
  7239. addFileHost(
  7240. 'fileswap\\.com\/dl\/\\w+',
  7241. 'bttnDownloadLink"',
  7242. 'rounded_block_error"',
  7243. 'is temporary unavailable|disponible en estos momentos|vorläufig unerreichbar|Файл временно недоступен',
  7244. 'optional2--',
  7245. "//a[contains(@href,'fileswap.com/dl')]"
  7246. );
  7247. }
  7248. if (GM_getValue("Check_filecloud_dot_io_links", false))
  7249. {
  7250. addFileHost(
  7251. '(?:s\\d+\\.)?filecloud\\.io\/\\w+',
  7252. 'var __error = 0',
  7253. 'FILES__DOESNT_EXIST|removed or did not exist',
  7254. 'optional--',
  7255. 'optional2--',
  7256. "//a[contains(@href,'filecloud.io/')]"
  7257. );
  7258. addFileHost(
  7259. 'ifile\\.it\/\\w+',
  7260. 'var __error = 0',
  7261. 'FILES__DOESNT_EXIST',
  7262. 'optional--',
  7263. 'optional2--',
  7264. "//a[contains(@href,'ifile.it/')]"
  7265. );
  7266. }
  7267. if (GM_getValue("Check_solidfiles_dot_com_links", false))
  7268. {
  7269. addFileHost(
  7270. 'solidfiles\\.com\/d\/\\w+',
  7271. 'id="download"|content="Download',
  7272. '>Not found<|<h2>404</h2>|Page not found|<h1>404</h1>|File not available|no longer available',
  7273. 'optional--',
  7274. 'optional2--',
  7275. "//a[contains(@href,'solidfiles.com/d')]"
  7276. );
  7277. }
  7278. if (GM_getValue("Check_shareflare_dot_net_links", false))
  7279. {
  7280. addFileHost(
  7281. "(?:.\\.|)shareflare\\.net",
  7282. 'download-pnl|<div class="premium-block">',
  7283. 'File not found|Поиск зеркала на фа|<div id="captcha"',
  7284. 'optional--',
  7285. 'optional2--',
  7286. "//a[contains(@href,'shareflare.net') and contains(@href,'download')]"
  7287. );
  7288. }
  7289. if (GM_getValue("Check_u18116681_dot_shareflare_dot_net_links", false))
  7290. {
  7291. addFileHost(
  7292. "u18116681.shareflare\\.net",
  7293. 'download-pnl|<div class="premium-block">',
  7294. 'File not found|Поиск зеркала на фа|<div id="captcha"',
  7295. 'optional--',
  7296. 'optional2--',
  7297. "//a[contains(@href,'shareflare.net') and contains(@href,'download')]"
  7298. );
  7299. }
  7300. if (GM_getValue("Check_uloz_dot_to_links", false))
  7301. {
  7302. addFileHost(
  7303. "(?:uloz|ulozto|bagruj|zachowajto)\\.(to|cz|sk|net|pl)\/\\w",
  7304. 'fileDownload">|fileSize">',
  7305. 'grayButton deletedFile">|Stránka nenalezena|upload-button"|jako soukromý.',
  7306. 'passwordProtectedFile">|frmaskAgeForm-disagree',
  7307. 'optional2--',
  7308. "//a[contains(@href,'bagruj.cz') or contains(@href,'uloz.to') or contains(@href,'ulozto.') or contains(@href,'zachowajto.pl')]",
  7309. true
  7310. );
  7311. }
  7312. if (GM_getValue("Check_hellspy_dot_com_links", false))
  7313. {
  7314. addFileHost(
  7315. "hellspy\.(?:com|cz|sk|hu|pl)\/\\w+",
  7316. 'file\\-list-orderby|section-filedetail">',
  7317. '<\/span><\/h2>\\s*<p>|list-purp-2">|flash info sticky">',
  7318. 'optional--',
  7319. 'optional2--',
  7320. "//a[contains(@href,'hellspy.')]"
  7321. );
  7322. }
  7323. if (GM_getValue("Check_leteckaposta_dot_cz_links", false))
  7324. {
  7325. addFileHost(
  7326. "(?:leteckaposta\\.cz|sharegadget\\.com)\/\\d+",
  7327. '<body onload="">',
  7328. 'neexistuje|not exist',
  7329. 'optional--',
  7330. 'optional2--',
  7331. "//a[contains(@href,'leteckaposta.cz') or contains(@href,'sharegadget.com')]"
  7332. );
  7333. }
  7334. if (GM_getValue("Check_stahovanizasms_dot_cz_links", false))
  7335. {
  7336. addFileHost(
  7337. "stahovanizasms\\.cz\/\\w+",
  7338. 'download\\.png>|font-size:11px><tr>',
  7339. 'smaz.n u.ivatelem|font-size:11px><\/table>',
  7340. 'optional--',
  7341. 'optional2--',
  7342. "//a[contains(@href,'stahovanizasms.cz')]"
  7343. );
  7344. }
  7345. if (GM_getValue("Check_share_dash_links_dot_biz_links", false))
  7346. {
  7347. addFileHost(
  7348. "share-links\\.biz\/\\w*",
  7349. 'online\\.gif',
  7350. '(?:offline|parts)\\.gif',
  7351. 'optional--',
  7352. 'optional2--',
  7353. "//a[contains(@href,'share-links.biz')]"
  7354. );
  7355. }
  7356. if (GM_getValue("Check_4shared_dot_com_links", false))
  7357. {
  7358. addFileHost(
  7359. "4shared\\.com\/.+\/",
  7360. '<input type="hidden" class="jsSocialTwDefaultText" value=',
  7361. 'class="warn\"|big red"|GetDataBack',
  7362. 'Service Unavailable',
  7363. 'optional2--',
  7364. "//a[contains(@href,'4shared.com')]"
  7365. );
  7366. }
  7367. if (GM_getValue("Check_zippyshare_dot_com_links", false))
  7368. {
  7369. addFileHost(
  7370. "(?:www\\d+\.|)zippyshare\.com\/",
  7371. 'download\.png|Download Now|images/download_small.png|id="dlbutton"',
  7372. 'not exist|Status 404',
  7373. 'optional--',
  7374. 'optional2--',
  7375. "//a[contains(@href,'zippyshare.com') and contains(@href,'file.html')]"
  7376. );
  7377. }
  7378. if (GM_getValue("Check_mediafire_dot_com_links", false))
  7379. {
  7380. addFileHost(
  7381. "mediafire\.com\/",
  7382. 'download_file_title|dlFileName|id="PLAY_downloadButton"',
  7383. 'error\\.php\\?|error_msg_title|<title>Simple File Sharing|No files found',
  7384. 'set to private',
  7385. 'optional2--',
  7386. "//a[contains(@href,'mediafire.com')]"
  7387. );
  7388. }
  7389. if (GM_getValue("Check_uploaded_dot_to_links", false))
  7390. {
  7391. addFileHost(
  7392. '(?:uploaded\\.(?:to|net)\/(?:.id|file|folder|f|410|404))|(?:ul\\.to\/)',
  7393. '<h2>Authentification</h2></li>|MB</small>|KB</small>|1,00 GB',
  7394. 'box_red|Error: 404|Error: 410|fileList"><thead><tr><td colspan="2"><\/td><\/tr><\/thead><tbody>\\s*<tr>|<title>uploaded.net</title>',
  7395. 'optional--',
  7396. 'GB</small>',
  7397. "//a[contains(@href,'uploaded.to/') or contains(@href,'uploaded.net/') or contains(@href,'ul.to/')]"
  7398. );
  7399. }
  7400. if (GM_getValue("Check_ulozisko_dot_sk_links", false))
  7401. {
  7402. addFileHost(
  7403. "ulozisko\.sk\/",
  7404. 'Detaily',
  7405. 'neexistuje',
  7406. 'optional--',
  7407. 'optional2--',
  7408. "//a[contains(@href,'ulozisko.sk')]"
  7409. );
  7410. }
  7411. if (GM_getValue("Check_upnito_dot_sk_links", false))
  7412. {
  7413. addFileHost(
  7414. "(?:dl.\\.|)upnito\\.sk\/(download|subor|file)",
  7415. 'download.php',
  7416. 'notfound|upload\\-suborov\\.php"',
  7417. 'optional--',
  7418. 'optional2--',
  7419. "//a[contains(@href,'upnito.sk')]"
  7420. );
  7421. }
  7422. if (GM_getValue("Check_box_dot_com_links", false))
  7423. {
  7424. addFileHost(
  7425. "box\.com\/\\w+",
  7426. 'download-file-btn|id="download_button|preview-download',
  7427. 'BIyMin.png| <div class="error_message|link has been removed',
  7428. 'optional--',
  7429. 'optional2--',
  7430. "//a[contains(@href,'app.box.com')]");
  7431. }
  7432. if (GM_getValue("Check_uptobox_dot_com_links", false))
  7433. {
  7434. addFileHost(
  7435. "uptobox\\.com\/\\w+",
  7436. 'Create Download Link">|Lien de téléchargement',
  7437. 'The file expired|The file was deleted|Fichier introuvable|not available in your country',
  7438. 'Maintenance',
  7439. 'optional2--',
  7440. "//a[contains(@href,'uptobox.com')]"
  7441. );
  7442. }
  7443. if (GM_getValue("Check_sharecash_dot_org_links", false))
  7444. {
  7445. addFileHost(
  7446. "sharecash\\.org\/download\\.php\\?file=\\d+",
  7447. 'FILE DOWNLOAD<',
  7448. 'File Does Not Exist',
  7449. 'optional--',
  7450. 'optional2--',
  7451. "//a[contains(@href,'sharecash.org/download.php')]"
  7452. );
  7453. }
  7454. if (GM_getValue("Check_depositfiles_dot_com_links", false)) //folders
  7455. {
  7456. addFileHost(
  7457. "depositfiles\\.com\/folders\/\\w+",
  7458. '<div class="progressContainer">',
  7459. '<div id="files" class="files">\\s*<\/div>',
  7460. 'optional--',
  7461. 'optional2--',
  7462. "//a[contains(@href,'depositfiles.com/folders')]"
  7463. );
  7464. }
  7465. if (GM_getValue("Check_rapidfileshare_dot_net_links", false))
  7466. {
  7467. addFileHost(
  7468. "rapidfileshare\\.net/\\w+",
  7469. '<div id="upload-header-bg">',
  7470. '<div style="width:500px;text-align:left;">',
  7471. 'optional--',
  7472. 'optional2--',
  7473. "//a[contains(@href,'rapidfileshare.net/')]"
  7474. );
  7475. }
  7476. if (GM_getValue("Check_stiahnito_dot_sk_links", false))
  7477. {
  7478. addFileHost(
  7479. "stiahnito\\.sk/",
  7480. '<span class="filesize right">',
  7481. '<ol class="list-purp-2">',
  7482. 'optional--',
  7483. 'optional2--',
  7484. "//a[contains(@href,'stiahnito.sk/')]"
  7485. );
  7486. }
  7487. if (GM_getValue("Check_rusfolder_dot_com_links", false))
  7488. {
  7489. addFileHost(
  7490. "rusfolder\\.(?:com|net)",
  7491. '"download-step-one-form"|Название: <b>|Файлы|Файлы в папке',
  7492. '"ui-state-error ui-corner-all"|File is removed|File not found|удален',
  7493. 'optional--',
  7494. 'optional2--',
  7495. "//a[contains(@href,'rusfolder')]"
  7496. );
  7497. }
  7498. if (GM_getValue("Check_fileover_dot_net_links", false))
  7499. {
  7500. addFileHost(
  7501. "fileover\\.net/\\d+",
  7502. 'id="filesize"',
  7503. 'Not found or deleted|The following file is unavailable',
  7504. 'optional--',
  7505. 'optional2--',
  7506. "//a[contains(@href,'fileover.net/')]"
  7507. );
  7508. }
  7509. if (GM_getValue("Check_catshare_dot_net_links", false))
  7510. {
  7511. addFileHost(
  7512. "catshare\\.net/\\w+",
  7513. '"icon-share',
  7514. 'alert alert-error',
  7515. 'optional--',
  7516. 'optional2--',
  7517. "//a[contains(@href,'catshare.net/')]"
  7518. );
  7519. }
  7520. if (GM_getValue("Check_anonfiles_dot_com_links", false))
  7521. {
  7522. addFileHost(
  7523. "anonfiles\\.com/\\w+",
  7524. '"download_button"',
  7525. '<legend><b>404</b>',
  7526. 'optional--',
  7527. 'optional2--',
  7528. "//a[contains(@href,'anonfiles.com')]"
  7529. );
  7530. }
  7531. if (GM_getValue("Check_mixturecloud_dot_com_links", false))
  7532. {
  7533. addFileHost(
  7534. "mixturecloud\\.com/media/\\w+",
  7535. '"btn icon i_globe gray share_150',
  7536. '"s_cross_close"></span> 404:',
  7537. 'optional--',
  7538. 'optional2--',
  7539. "//a[contains(@href,'mixturecloud.com/media/')]"
  7540. );
  7541. }
  7542. if (GM_getValue("Check_akafile_dot_com_links", false))
  7543. {
  7544. addFileHost(
  7545. "akafile\\.com\/\\w+",
  7546. 'download1',
  7547. 'File Not Found',
  7548. 'optional--',
  7549. 'optional2--',
  7550. "//a[contains(@href,'akafile.com/')]"
  7551. );
  7552. }
  7553. if (GM_getValue("Check_creafile_dot_net_links", false))
  7554. {
  7555. addFileHost(
  7556. "creafile\\.net\/\\w+",
  7557. 'downloadblock',
  7558. 'errtitle',
  7559. 'optional--',
  7560. 'optional2--',
  7561. "//a[contains(@href,'creafile.net/')]"
  7562. );
  7563. }
  7564. if (GM_getValue("Check_hugefiles_dot_net_links", false))
  7565. {
  7566. addFileHost(
  7567. "hugefiles\\.net\/\\w+",
  7568. 'download1|class="btn-create-download" value="Create Download Link">',
  7569. 'File Not Found|No such file with this filename|tyle="width:500px;text-align:left;">',
  7570. 'optional--',
  7571. 'optional2--',
  7572. "//a[contains(@href,'hugefiles.net/')]"
  7573. );
  7574. }
  7575. if (GM_getValue("Check_sendmyway_dot_com_links", false))
  7576. {
  7577. addFileHost(
  7578. "sendmyway\\.com\/\\w+",
  7579. 'id="btn_download"',
  7580. '500px;text-align:left;"|<center><h3>',
  7581. 'optional--',
  7582. 'optional2--',
  7583. "//a[contains(@href,'sendmyway.com/')]"
  7584. );
  7585. }
  7586. if (GM_getValue("Check_upload_dot_ee_links", false))
  7587. {
  7588. addFileHost(
  7589. "upload\\.ee\/\\w+",
  7590. 'onmouseout="document.dllink.src',
  7591. 'There is no such file.|File was deleted|Fail kustutati|Файл удалён|Такого файла нет',
  7592. 'optional--',
  7593. 'optional2--',
  7594. "//a[contains(@href,'upload.ee/')]"
  7595. );
  7596. }
  7597. if (GM_getValue("Check_shareplace_dot_org_links", false))
  7598. {
  7599. addFileHost(
  7600. "shareplace\\.org\/\\?\\w+",
  7601. 'Download-Link',
  7602. 'Your requested file is not found|Select file to send',
  7603. 'optional--',
  7604. 'optional2--',
  7605. "//a[contains(@href,'shareplace.org/?')]"
  7606. );
  7607. }
  7608. if (GM_getValue("Check_uploadc_dot_com_links", false))
  7609. {
  7610. addFileHost(
  7611. "uploadc\\.com\/\\w+",
  7612. 'id="prebut"',
  7613. 'File Not Found|This file has been removed due',
  7614. 'optional--',
  7615. 'optional2--',
  7616. "//a[contains(@href,'uploadc.com/')]"
  7617. );
  7618. }
  7619. if (GM_getValue("Check_remixshare_dot_com_links", false))
  7620. {
  7621. addFileHost(
  7622. "remixshare\\.com\/\\w+",
  7623. 'id="dl2"',
  7624. '<table class=\'failed\'><tr><td width=\'90%\'>|Sorry, die Datei konnte nicht gefunden werden',
  7625. 'optional--',
  7626. 'optional2--',
  7627. "//a[contains(@href,'remixshare.com/')]"
  7628. );
  7629. }
  7630. if (GM_getValue("Check_exoshare_dot_com_links", false))
  7631. {
  7632. addFileHost(
  7633. "exoshare\\.com\/download\\.php\\?uid=\\w+",
  7634. 'Last Download :',
  7635. 'img src="\\/404.jpg"',
  7636. 'optional--',
  7637. 'optional2--',
  7638. "//a[contains(@href,'exoshare.com/download.php')]"
  7639. );
  7640. }
  7641. if (GM_getValue("Check_borncash_dot_org_links", false))
  7642. {
  7643. addFileHost(
  7644. "borncash\\.org\/download\/\\?a=\\w+",
  7645. 'class="knop_1"',
  7646. '\/error\/er00',
  7647. 'optional--',
  7648. 'optional2--',
  7649. "//a[contains(@href,'borncash.org/download/')]"
  7650. );
  7651. }
  7652. if (GM_getValue("Check_vidplay_dot_net_links", false))
  7653. {
  7654. addFileHost(
  7655. "vidplay\.net\/\\w+",
  7656. 'solvemedia puzzle widget',
  7657. 'File not found|AVOID_IE_BUG',
  7658. 'optional--',
  7659. 'optional2--',
  7660. "//a[contains(@href,'vidplay.net')]");
  7661. }
  7662. if (GM_getValue("Check_storagon_dot_com_links", false))
  7663. {
  7664. addFileHost(
  7665. "storagon\.com\/\\w+",
  7666. 'class="icon-cloud-download"></i>|content="Download Options',
  7667. 'content="Download Downloads|class="error-container">|class="bigger-300 bolder">404<',
  7668. 'optional--',
  7669. 'optional2--',
  7670. "//a[contains(@href,'storagon.com')]");
  7671. }
  7672. if (GM_getValue("Check_filedais_dot_com_links", false))
  7673. {
  7674. addFileHost(
  7675. "filedais\.com\/\\w+",
  7676. 'class="btn btn-info"|name="method_free"',
  7677. 'style="width:500px;text-align:left;">|File Not Found|AVOID_IE_BUG',
  7678. 'optional--',
  7679. 'optional2--',
  7680. "//a[contains(@href,'filedais.com')]");
  7681. }
  7682. if (GM_getValue("Check_up_dot_4share_dot_vn_links", false))
  7683. {
  7684. addFileHost(
  7685. "up.4share\.vn\/\\w+",
  7686. '<font size="2" face="Verdana">',
  7687. 'font: 13px Tahoma; color: Brown',
  7688. 'optional--',
  7689. 'optional2--',
  7690. "//a[contains(@href,'up.4share.vn')]");
  7691. }
  7692. if (GM_getValue("Check_share_dot_vnn_dot_vn_links", false))
  7693. {
  7694. addFileHost(
  7695. "share.vnn\.vn\/\\w+",
  7696. '"index,follow"|<div class="main" id="download-box">',
  7697. '<meta name="description" content="" />|<h1>Không tìm thấy file bạn yêu cầu</h1>',
  7698. 'optional--',
  7699. 'optional2--',
  7700. "//a[contains(@href,'share.vnn.vn')]");
  7701. }
  7702. if (GM_getValue("Check_upfile_dot_vn_links", false))
  7703. {
  7704. addFileHost(
  7705. "upfile\.vn\/\\w+",
  7706. 'download-timer',
  7707. '<meta name="description" content="Upload files|<meta name="description" content="Error "',
  7708. 'optional--',
  7709. 'optional2--',
  7710. "//a[contains(@href,'upfile.vn')]");
  7711. }
  7712. if (GM_getValue("Check_aisfile_dot_com_links", false))
  7713. {
  7714. addFileHost(
  7715. "aisfile\.com\/\\w+",
  7716. '<h3 style="text-align:left;">|align=right><b>Filename:',
  7717. '<div style="width:500px;text-align:left;">|File Not Found',
  7718. 'optional--',
  7719. 'optional2--',
  7720. "//a[contains(@href,'aisfile.com')]");
  7721. }
  7722. if (GM_getValue("Check_usersfiles_dot_com_links", false))
  7723. {
  7724. addFileHost(
  7725. "usersfiles\.com\/\\w+",
  7726. 'class="btn btn-success|id="btn_download" class="btn"',
  7727. '<div style="width:500px;text-align:left;">|class="label label-inverse">|class="err">',
  7728. 'optional--',
  7729. 'optional2--',
  7730. "//a[contains(@href,'usersfiles.com')]");
  7731. }
  7732. if (GM_getValue("Check_pan_dot_baidu_dot_com_links", false))
  7733. {
  7734. addFileHost(
  7735. "pan.baidu\.com\/\\w+",
  7736. 'target="_blank" title=|share-personal-info',
  7737. 'share_notfound.png|background:#f9f9f9',
  7738. 'optional--',
  7739. 'optional2--',
  7740. "//a[contains(@href,'pan.baidu.com')]");
  7741. }
  7742. if (GM_getValue("Check_yunpan_dot_cn_links", false))
  7743. {
  7744. addFileHost(
  7745. "yunpan\.cn\/\\w+",
  7746. 'class="icon icon-download',
  7747. 'content="360|http://p5.qhimg.com/t01d1c98667df9dc6cc.jpg',
  7748. 'optional--',
  7749. 'optional2--',
  7750. "//a[contains(@href,'yunpan.cn')]");
  7751. }
  7752. if (GM_getValue("Check_file_dash_upload_dot_net_links", false))
  7753. {
  7754. addFileHost(
  7755. "(?:en\\.|)file\\-upload\\.net\/download\\-\\d+\/\\w+",
  7756. 'getElementById("downbild")|style.display',
  7757. 'hochgeladene Datei nicht gefunden werden|has not been found',
  7758. 'optional--',
  7759. 'optional2--',
  7760. "//a[contains(@href,'file-upload.net')]");
  7761. }
  7762. if (GM_getValue("Check_gulfup_dot_com_links", false))
  7763. {
  7764. addFileHost(
  7765. "gulfup\.com\/",
  7766. '<!-- Downlod template -->|download.gif',
  7767. '<!-- Errors template -->|class="error">|<!-- form upload -->|[ رفع الملفات ]',
  7768. 'optional--',
  7769. 'optional2--',
  7770. "//a[contains(@href,'gulfup.com')]");
  7771. }
  7772. if (GM_getValue("Check_datafilehost_dot_com_links", false))
  7773. {
  7774. addFileHost(
  7775. "datafilehost\\.com\/(?:download-\\w+\\.html|d\/\\w+)",
  7776. 'dldtable">',
  7777. 'does not exist\\.',
  7778. 'optional--',
  7779. 'optional2--',
  7780. "//a[contains(@href,'datafilehost.com')]");
  7781. }
  7782. if (GM_getValue("Check_dropbox_dot_com_links", false))
  7783. {
  7784. addFileHost(
  7785. "dropbox\.com\/s\/\\w+",
  7786. 'default_content_download_button" class="freshbutton-blue">|content_download_button',
  7787. '>Nothing Here<|>Error (404)<',
  7788. 'title>Dropbox - 509|Error (403)|Error: 429',
  7789. 'optional2--',
  7790. "//a[contains(@href,'dropbox.com')]");
  7791. }
  7792. if (GM_getValue("Check_box_dot_net_links", false))
  7793. {
  7794. addFileHost(
  7795. "box\.net\/\\w+",
  7796. 'download-file-btn|id="download_button',
  7797. 'BIyMin.png| <div class="error_message',
  7798. 'optional--',
  7799. 'optional2--',
  7800. "//a[contains(@href,'box.net')]");
  7801. }
  7802. if (GM_getValue("Check_fileband_dot_com_links", false))
  7803. {
  7804. addFileHost(
  7805. "fileband\.com\/\\w+",
  7806. 'value="download1">|name="id" value=',
  7807. '<div style="width:500px;text-align:left;">|not be found',
  7808. 'optional--',
  7809. 'optional2--',
  7810. "//a[contains(@href,'fileband.com')]");
  7811. }
  7812. if (GM_getValue("Check_filedropper_dot_com_links", false))
  7813. {
  7814. addFileHost(
  7815. "filedropper\.com\/\\w+",
  7816. 'background:#ddd;|width:985px; ',
  7817. 'background-color:#FFFFFF;|margin-left: -400px;',
  7818. 'optional--',
  7819. 'optional2--',
  7820. "//a[contains(@href,'filedropper.com')]");
  7821. }
  7822. if (GM_getValue("Check_tropicshare_dot_com_links", false))
  7823. {
  7824. addFileHost(
  7825. "tropicshare\\.com\/files\/\\d+",
  7826. 'MB</span>|GB</span>|KB</span>',
  7827. '>FNF<|size: </span>',
  7828. 'optional--',
  7829. 'optional2--',
  7830. "//a[contains(@href,'tropicshare.com')]");
  7831. }
  7832. if (GM_getValue("Check_goldbytez_dot_com_links", false))
  7833. {
  7834. addFileHost(
  7835. "goldbytez\.com\/\\w+",
  7836. '<h2>Download</h2>|<center><h2>File: <font color="red">',
  7837. '<div style="width:500px;text-align:left;">|<h2>Error</h2>',
  7838. 'optional--',
  7839. 'optional2--',
  7840. "//a[contains(@href,'goldbytez.com')]");
  7841. }
  7842. if (GM_getValue("Check_worldbytez_dot_com_links", false))
  7843. {
  7844. addFileHost(
  7845. "worldbytez\.com\/\\w+",
  7846. '<div class="download_type">',
  7847. '<div style="width:500px;text-align:left;">',
  7848. 'optional--',
  7849. 'optional2--',
  7850. "//a[contains(@href,'worldbytez.com')]");
  7851. }
  7852. if (GM_getValue("Check_freefilehosting_dot_net_links", false))
  7853. {
  7854. addFileHost(
  7855. "freefilehosting\.net\/\\w+",
  7856. 'Type: cbr|Type: rar|Type: jpg|Type: mkv|Type: avi|Type: mpg|Type: mpeg|Type: zip|Type: wmvType: bmpType: gifType: mp4Type: mp3',
  7857. '175px;" value="http://www.freefilehosting.net/"|Filename: <br>',
  7858. 'optional--',
  7859. 'optional2--',
  7860. "//a[contains(@href,'freefilehosting.net')]");
  7861. }
  7862. if (GM_getValue("Check_ziddu_dot_com_links", false))
  7863. {
  7864. addFileHost(
  7865. "ziddu\.com\/\\w+",
  7866. 'downloads.ziddu.com|downloadfilelinkicon',
  7867. 'errortracking.php|images/oops.png|fontfamilyverdana error',
  7868. 'optional--',
  7869. 'optional2--',
  7870. "//a[contains(@href,'ziddu.com')]");
  7871. }
  7872. if (GM_getValue("Check_exclusiveloader_dot_com_links", false))
  7873. {
  7874. addFileHost(
  7875. "exclusiveloader\.com\/\\w+",
  7876. 'style="padding-top:55px; padding-bottom:65px;">|<h2>Download</h2>',
  7877. 'File Not Found|width:322px;text-align:left;" class="no_file">',
  7878. 'optional--',
  7879. 'optional2--',
  7880. "//a[contains(@href,'exclusiveloader.com')]");
  7881. }
  7882. if (GM_getValue("Check_sharerapid_dot_cz_links", false))
  7883. {
  7884. addFileHost(
  7885. "sharerapid\.cz\/\\w+",
  7886. 'value="Stáhnout"|soubor" style|Stahování je povoleno pouze pro přihlášené uživatele',
  7887. 'error_div">|404 - Not Found',
  7888. 'optional--',
  7889. 'optional2--',
  7890. "//a[contains(@href,'sharerapid.cz')]");
  7891. }
  7892. if (GM_getValue("Check_sdilej_dot_cz_links", false))
  7893. {
  7894. addFileHost(
  7895. "sdilej\.cz\/\\w+",
  7896. 'class="page-download"',
  7897. '<h2 class="red">|czshare.com|sponsored listings|This domain is for sale',
  7898. 'optional--',
  7899. 'optional2--',
  7900. "//a[contains(@href,'sdilej.cz')]");
  7901. }
  7902. if (GM_getValue("Check_lafiles_dot_com_links", false))
  7903. {
  7904. addFileHost(
  7905. "lafiles\.com\/\\w+",
  7906. '<div id="pay_modes">',
  7907. '<b class="err"></b>',
  7908. 'optional--',
  7909. 'optional2--',
  7910. "//a[contains(@href,'lafiles.com')]");
  7911. }
  7912. if (GM_getValue("Check_acefile_dot_net_links", false))
  7913. {
  7914. addFileHost(
  7915. "acefile\.net\/\\w+",
  7916. 'align=right nowrap><b>',
  7917. 'File Not Found|<div style="width:322px;text-align:left;" class="no_file">',
  7918. 'optional--',
  7919. 'optional2--',
  7920. "//a[contains(@href,'acefile.net')]");
  7921. }
  7922. if (GM_getValue("Check_megarapid_dot_cz_links", false))
  7923. {
  7924. addFileHost(
  7925. "megarapid\.cz\/\\w+",
  7926. 'value="Stáhnout"|soubor" style|Stahování je povoleno pouze pro přihlášené uživatele',
  7927. 'error_div">|404 - Not Found',
  7928. 'optional--',
  7929. 'optional2--',
  7930. "//a[contains(@href,'megarapid.cz')]");
  7931. }
  7932. if (GM_getValue("Check_yadi_dot_sk_links", false))
  7933. {
  7934. addFileHost(
  7935. "yadi\.sk\/\\w+",
  7936. 'twitter:site|View and download',
  7937. 'error code|Nothing found',
  7938. 'optional--',
  7939. 'optional2--',
  7940. "//a[contains(@href,'yadi.sk')]");
  7941. }
  7942. /* if (GM_getValue("Check_imdb_dot_com_links", false))
  7943. {
  7944. addFileHost(
  7945. "imdb\.com\/\\w+",
  7946. 'imdb.com',
  7947. '404 Error',
  7948. 'optional--',
  7949. 'optional2--',
  7950. "//a[contains(@href,'imdb.com')]");
  7951. } */
  7952. if (GM_getValue("Check_hitfile_dot_net_links", false))
  7953. {
  7954. addFileHost(
  7955. "hitfile\.net\/\\w+",
  7956. 'class="download-file',
  7957. 'style="width:16px;height:16px;border:0;|File not found|Файл не найден. Возможно он был удален',
  7958. 'optional--',
  7959. 'optional2--',
  7960. "//a[contains(@href,'hitfile.net')]");
  7961. }
  7962. if (GM_getValue("Check_nitroflare_dot_com_links", true))
  7963. {
  7964. addFileHost(
  7965. "nitroflare\.com\/\\w+",
  7966. 'MB</span>|left;">1 GB<|KB</span>|left;">1.0',
  7967. 'file has been removed|id="error" style="display|Probably deleted',
  7968. 'optional--',
  7969. '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.|',
  7970. "//a[contains(@href,'nitroflare.com')]");
  7971. }
  7972. if (GM_getValue("Check_up_dot_top4top_dot_net_links", false))
  7973. {
  7974. addFileHost(
  7975. "up.top4top\.net\/\\w+",
  7976. 'start Downlod template',
  7977. 'start err template',
  7978. 'optional--',
  7979. 'optional2--',
  7980. "//a[contains(@href,'up.top4top.net')]");
  7981. }
  7982. if (GM_getValue("Check_filejoker_dot_net_links", false))
  7983. {
  7984. addFileHost(
  7985. "filejoker\.net\/\\w+",
  7986. 'button id="regular-download">Slow|method_free" value="1|<div id="download" class="download0">',
  7987. 'File Not Found|class="not_found|<div id="download" class="not_found">|"err">DMCA Complaint<',
  7988. 'optional--',
  7989. 'id="download" class="premium-only">',
  7990. "//a[contains(@href,'filejoker.net')]");
  7991. }
  7992. if (GM_getValue("Check_free_dot_fr_links", false))
  7993. {
  7994. addFileHost(
  7995. "(?:dl.\\.|)free\\.fr",
  7996. 'Valider et t&eacute;l&eacute',
  7997. 'Fichier inexistant|Fichier supprim&eacute; pour raison de copyright',
  7998. 'optional--',
  7999. 'optional2--',
  8000. "//a[contains(@href,'dl.free.fr')]");
  8001. }
  8002. if (GM_getValue("Check_gboxes_dot_com_links", false))
  8003. {
  8004. addFileHost(
  8005. "gboxes\.com\/\\w+",
  8006. 'You have requested|color="red">http://www.gboxes.com',
  8007. 'File Not Found|<div style="width:500px;text-align:left;">',
  8008. 'optional--',
  8009. 'optional2--',
  8010. "//a[contains(@href,'gboxes.com')]");
  8011. }
  8012. if (GM_getValue("Check_led_dot_wf_links", false))
  8013. {
  8014. addFileHost(
  8015. "led\.wf\/\\w+",
  8016. 'logo_0.png|downloads.gif"|verifycode',
  8017. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  8018. 'optional--',
  8019. 'optional2--',
  8020. "//a[contains(@href,'led.wf')]");
  8021. }
  8022. if (GM_getValue("Check_lan_dot_wf_links", false))
  8023. {
  8024. addFileHost(
  8025. "lan\.wf\/\\w+",
  8026. 'logo_0.png|downloads.gif"|verifycode',
  8027. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  8028. 'optional--',
  8029. 'optional2--',
  8030. "//a[contains(@href,'lan.wf')]");
  8031. }
  8032. if (GM_getValue("Check_adlink_dot_wf_links", false))
  8033. {
  8034. addFileHost(
  8035. "adlink\.wf\/\\w+",
  8036. 'logo_0.png|downloads.gif"|verifycode',
  8037. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  8038. 'optional--',
  8039. 'optional2--',
  8040. "//a[contains(@href,'adlink.wf')]");
  8041. }
  8042. if (GM_getValue("Check_click_dot_tf_links", false))
  8043. {
  8044. addFileHost(
  8045. "click\.tf\/\\w+",
  8046. 'logo_0.png|downloads.gif"|verifycode',
  8047. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  8048. 'optional--',
  8049. 'optional2--',
  8050. "//a[contains(@href,'click.tf')]");
  8051. }
  8052. if (GM_getValue("Check_ssh_dot_tf_links", false))
  8053. {
  8054. addFileHost(
  8055. "ssh\.tf\/\\w+",
  8056. 'logo_0.png|downloads.gif"|verifycode',
  8057. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  8058. 'optional--',
  8059. 'optional2--',
  8060. "//a[contains(@href,'ssh.tf')]");
  8061. }
  8062. if (GM_getValue("Check_ssh_dot_yt_links", false))
  8063. {
  8064. addFileHost(
  8065. "ssh\.yt\/\\w+",
  8066. 'logo_0.png|downloads.gif"|verifycode',
  8067. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  8068. 'optional--',
  8069. 'optional2--',
  8070. "//a[contains(@href,'ssh.yt')]");
  8071. }
  8072. if (GM_getValue("Check_yep_dot_pm_links", false))
  8073. {
  8074. addFileHost(
  8075. "yep\.pm\/\\w+",
  8076. 'logo_0.png|downloads.gif"|verifycode',
  8077. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  8078. 'optional--',
  8079. 'optional2--',
  8080. "//a[contains(@href,'yep.pm')]");
  8081. }
  8082. if (GM_getValue("Check_kyc_dot_pm_links", false))
  8083. {
  8084. addFileHost(
  8085. "kyc\.pm\/\\w+",
  8086. 'logo_0.png|downloads.gif"|verifycode',
  8087. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  8088. 'optional--',
  8089. 'optional2--',
  8090. "//a[contains(@href,'kyc.pm')]");
  8091. }
  8092. if (GM_getValue("Check_brupload_dot_net_links", false))
  8093. {
  8094. addFileHost(
  8095. "brupload\.net\/\\w+",
  8096. 'Download Gratuito',
  8097. '<div style="width:500px;text-align:left;">',
  8098. 'optional--',
  8099. 'optional2--',
  8100. "//a[contains(@href,'brupload.net')]");
  8101. }
  8102. if (GM_getValue("Check_cloudzilla_dot_to_links", false))
  8103. {
  8104. addFileHost(
  8105. "cloudzilla\.to\/\\w+",
  8106. 'btn1" id="free_download|onclick="freeDownload|id="pwd_protected">',
  8107. 'File not found|/imgs/broken.png',
  8108. 'optional--',
  8109. 'optional2--',
  8110. "//a[contains(@href,'cloudzilla.to')]");
  8111. }
  8112. if (GM_getValue("Check_fileparadox_dot_in_links", false))
  8113. {
  8114. addFileHost(
  8115. "fileparadox\.in\/\\w+",
  8116. 'CONTENT="Download File|method_free_file',
  8117. '>File Not Found<|id="no_filedownload">|FILE NOT FOUND|The file does not exist',
  8118. 'optional--',
  8119. 'optional2--',
  8120. "//a[contains(@href,'fileparadox.in')or contains(@href,'3files.net/')]");
  8121. }
  8122. if (GM_getValue("Check_clicknupload_dot_com_links", false))
  8123. {
  8124. addFileHost(
  8125. "clicknupload\.com\/\\w+",
  8126. 'name="method_free',
  8127. 'File Not Found',
  8128. 'optional--',
  8129. 'optional2--',
  8130. "//a[contains(@href,'clicknupload.com')]");
  8131. }
  8132. if (GM_getValue("Check_ex_dash_load_dot_com_links", false))
  8133. {
  8134. addFileHost(
  8135. "ex-load\.com\/\\w+",
  8136. 'name="method_free|<p>Download File:</p>',
  8137. 'Folder Not Found|File Not Found|Error 404',
  8138. 'optional--',
  8139. 'class="downprem wow bounceInLeft',
  8140. "//a[contains(@href,'ex-load.com')]");
  8141. }
  8142. if (GM_getValue("Check_hexupload_dot_com_links", false))
  8143. {
  8144. addFileHost(
  8145. "hexupload\.com\/\\w+",
  8146. 'button" value="Free|type="submit" value=""',
  8147. 'File Not Found|<div style="width:500px;text-align:left;">',
  8148. 'optional--',
  8149. 'optional2--',
  8150. "//a[contains(@href,'hexupload.com')]");
  8151. }
  8152. if (GM_getValue("Check_wizupload_dot_com_links", false))
  8153. {
  8154. addFileHost(
  8155. "wizupload\.com\/\\w+",
  8156. 'btn_download|class="downloadbtn"',
  8157. '>File Not Found<',
  8158. 'optional--',
  8159. 'optional2--',
  8160. "//a[contains(@href,'wizupload.com')]");
  8161. }
  8162. if (GM_getValue("Check_filecloud_dot_cc_links", false))
  8163. {
  8164. addFileHost(
  8165. "filecloud\.cc\/\\w+",
  8166. 'align="center"><input type="submit" name=',
  8167. 'File Not Found|<Title>FileCloud - Premium Hosting Service<',
  8168. 'optional--',
  8169. 'optional2--',
  8170. "//a[contains(@href,'filecloud.cc')]");
  8171. }
  8172. if (GM_getValue("Check_inclouddrive_dot_com_links", false))
  8173. {
  8174. addFileHost(
  8175. "inclouddrive\.com\/\\w+",
  8176. 'initfreedownload',
  8177. '<title>Content Unavailable|The file you are trying to download is no longer available',
  8178. 'optional--',
  8179. 'optional2--',
  8180. "//a[contains(@href,'inclouddrive.com')]");
  8181. }
  8182. if (GM_getValue("Check_radicalshare_dot_com_links", false))
  8183. {
  8184. addFileHost(
  8185. "radicalshare\.com\/\\w+",
  8186. 'value="download1|name="method_free"',
  8187. 'File Not Found<|<div style="width:500px;text-align:left;">',
  8188. 'optional--',
  8189. 'optional2--',
  8190. "//a[contains(@href,'radicalshare.com')]");
  8191. }
  8192. if (GM_getValue("Check_sharemods_dot_com_links", false))
  8193. {
  8194. addFileHost(
  8195. "sharemods\.com\/\\w+",
  8196. 'name="method_free"',
  8197. 'File Not Found<',
  8198. 'optional--',
  8199. 'optional2--',
  8200. "//a[contains(@href,'sharemods.com')]");
  8201. }
  8202. if (GM_getValue("Check_hostr_dot_co_links", false))
  8203. {
  8204. addFileHost(
  8205. "hostr\.co\/\\w+",
  8206. 'method="get"',
  8207. 'File not found<|error-page',
  8208. 'optional--',
  8209. 'optional2--',
  8210. "//a[contains(@href,'hostr.co')]");
  8211. }
  8212. if (GM_getValue("Check_filepi_dot_com_links", false))
  8213. {
  8214. addFileHost(
  8215. "filepi\.com\/\\w+",
  8216. 'id="button_start">',
  8217. 'File not found',
  8218. 'optional--',
  8219. 'optional2--',
  8220. "//a[contains(@href,'filepi.com')]");
  8221. }
  8222. if (GM_getValue("Check_tikfile_dot_com_links", false))
  8223. {
  8224. addFileHost(
  8225. "tikfile\.com\/\\w+",
  8226. 'btn_download',
  8227. 'File Not Found|file was removed|Reason for deletion',
  8228. 'optional--',
  8229. 'optional2--',
  8230. "//a[contains(@href,'tikfile.com')]");
  8231. }
  8232. if (GM_getValue("Check_cloudsix_dot_me_links", false))
  8233. {
  8234. addFileHost(
  8235. "cloudsix\.me\/\\w+",
  8236. 'name="method_free"',
  8237. 'File Not Found|width:500px;text-align:left;">',
  8238. 'optional--',
  8239. 'optional2--',
  8240. "//a[contains(@href,'cloudsix.me')]");
  8241. }
  8242. if (GM_getValue("Check_neodrive_dot_co_links", false))
  8243. {
  8244. addFileHost(
  8245. "neodrive\.co\/\\w+",
  8246. 'btn1" id="free_download|onclick="freeDownload|id="pwd_protected">',
  8247. 'File not found|/imgs/broken.png',
  8248. 'optional--',
  8249. 'optional2--',
  8250. "//a[contains(@href,'neodrive.co')]");
  8251. }
  8252. if (GM_getValue("Check_chayfile_dot_com_links", false))
  8253. {
  8254. addFileHost(
  8255. "chayfile\.com\/\\w+",
  8256. 'name="method_free"',
  8257. 'File Not Found|<h3>The file was removed by administrator</h3>',
  8258. 'optional--',
  8259. 'optional2--',
  8260. "//a[contains(@href,'chayfile.com')]");
  8261. }
  8262. if (GM_getValue("Check_xfileload_dot_com_links", false))
  8263. {
  8264. addFileHost(
  8265. "xfileload\.com\/\\w+",
  8266. 'Filename:|Имя файла:|Dateiname:|nom de fichier :|اسم الملف:|Dosya AdД±|Nazwa:|Nombre de fichero:|NamaFile:|Bestandsnaam:|שם קובץ:"',
  8267. '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..|הקובץ שחיפשת לא נמצא.',
  8268. 'optional--',
  8269. 'optional2--',
  8270. "//a[contains(@href,'xfileload.com')]");
  8271. }
  8272. if (GM_getValue("Check_rockfile_dot_eu_links", false))
  8273. {
  8274. addFileHost(
  8275. "rockfile\.eu\/\\w+",
  8276. 'You have requested:|vous avez demandé|قد طلبت:|você solicitou:|Hai richiesto:|Sie haben angefordert:|Вы заказали:|Has solicitado',
  8277. 'The file you were looking for could not be found, sorry for any inconvenience.|fa-chain-broken">',
  8278. 'optional--',
  8279. 'optional2--',
  8280. "//a[contains(@href,'rockfile.eu')]");
  8281. }
  8282. if (GM_getValue("Check_24uploading_dot_com_links", false))
  8283. {
  8284. addFileHost(
  8285. "24uploading\.com\/\\w+",
  8286. 'File:|Download Speed:',
  8287. '<b>File Not Found</b>|file was removed',
  8288. 'optional--',
  8289. 'optional2--',
  8290. "//a[contains(@href,'24uploading.com')]");
  8291. }
  8292. if (GM_getValue("Check_tusfiles_dot_net_links", false))
  8293. {
  8294. addFileHost(
  8295. "tusfiles\.net\/\\w+",
  8296. 'i/icon/dll.png"|>Start download<br',
  8297. 'no longer available<|i/ino.png"',
  8298. 'optional--',
  8299. 'optional2--',
  8300. "//a[contains(@href,'tusfiles.net')]");
  8301. }
  8302. /* if (GM_getValue("Check_jumbofile_dot_net_links", false))
  8303. {
  8304. addFileHost(
  8305. "jumbofile\.net\/\\w+",
  8306. 'button" class="" value="Free',
  8307. 'This File Was Deleted',
  8308. 'optional--',
  8309. 'optional2--',
  8310. "//a[contains(@href,'jumbofile.net')]");
  8311. } */
  8312. if (GM_getValue("Check_ozofiles_dot_com_links", false))
  8313. {
  8314. addFileHost(
  8315. "ozofiles\.com\/\\w+",
  8316. 'button" value="Free',
  8317. 'File Not Found|width:500px;text-align:left;">|File Deleted',
  8318. 'optional--',
  8319. 'optional2--',
  8320. "//a[contains(@href,'ozofiles.com')]");
  8321. }
  8322. if (GM_getValue("Check_loudupload_dot_net_links", false))
  8323. {
  8324. addFileHost(
  8325. "loudupload\.net\/\\w+",
  8326. 'value="Get Links',
  8327. 'File Not Found',
  8328. 'optional--',
  8329. 'optional2--',
  8330. "//a[contains(@href,'loudupload.net')]");
  8331. }
  8332. if (GM_getValue("Check_rapidsonic_dot_com_links", false))
  8333. {
  8334. addFileHost(
  8335. "(rapidsonic|fileparadox)\\.com\/\\w+",
  8336. 'method_free" id="submit_btn|<h4><i class="icon_document_alt"></i>Download File</h4>',
  8337. '>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">',
  8338. 'optional--',
  8339. 'optional2--',
  8340. "//a[contains(@href,'rapidsonic') or contains(@href,'3files.net/') or contains(@href,'fileparadox.com')]");
  8341. }
  8342. /* if (GM_getValue("Check_krotix_dot_net_links", false))
  8343. {
  8344. addFileHost(
  8345. "krotix\.net\/\\w+",
  8346. 'btn btn-warning|btn-free',
  8347. 'pageErrors|This File has been removed',
  8348. 'content="Scheduled Maintenance',
  8349. 'optional2--',
  8350. "//a[contains(@href,'krotix.net')]");
  8351. } */
  8352. if (GM_getValue("Check_userscloud_dot_com_links", false))
  8353. {
  8354. addFileHost(
  8355. "userscloud\.com\/\\w+",
  8356. 'btn_download',
  8357. '>Server OFFLINE|background:#D3D3D3;border-bottom:1px solid #BBB;font:bold 13px Verdana;padding:3px;">|-chain-broken',
  8358. 'optional--',
  8359. 'optional2--',
  8360. "//a[contains(@href,'userscloud.com')]");
  8361. }
  8362. if (GM_getValue("Check_kumpulbagi_dot_com_links", false))
  8363. {
  8364. addFileHost(
  8365. "kumpulbagi\.com\/\\w+",
  8366. 'class="button download',
  8367. 'internal server error',
  8368. 'optional--',
  8369. 'optional2--',
  8370. "//a[contains(@href,'kumpulbagi.com')]");
  8371. }
  8372. if (GM_getValue("Check_faststore_dot_org_links", false))
  8373. {
  8374. addFileHost(
  8375. "faststore\.org\/\\w+",
  8376. 'name="method_free',
  8377. 'File Not Found',
  8378. 'optional--',
  8379. 'optional2--',
  8380. "//a[contains(@href,'faststore.org')]");
  8381. }
  8382. if (GM_getValue("Check_prefiles_dot_com_links", false))
  8383. {
  8384. addFileHost(
  8385. "prefiles\.com\/\\w+",
  8386. 'id="method_free',
  8387. 'File not Found',
  8388. 'optional--',
  8389. 'optional2--',
  8390. "//a[contains(@href,'prefiles.com')]");
  8391. }
  8392. if (GM_getValue("Check_doraupload_dot_com_links", false))
  8393. {
  8394. addFileHost(
  8395. "doraupload\.com\/\\w+",
  8396. 'btn_download|name="method_free',
  8397. 'class="error-code|Could Not Be Found',
  8398. 'optional--',
  8399. 'optional2--',
  8400. "//a[contains(@href,'doraupload.com')]");
  8401. }
  8402. if (GM_getValue("Check_openload_dot_io_links", false))
  8403. {
  8404. addFileHost(
  8405. "openload\.io\/\\w+",
  8406. 'btn btn-primary|class="count">',
  8407. 'class="jumbotron">|We are sorry',
  8408. 'optional--',
  8409. 'optional2--',
  8410. "//a[contains(@href,'openload.io')]");
  8411. }
  8412. if (GM_getValue("Check_uploads_dot_xxx_links", false))
  8413. {
  8414. addFileHost(
  8415. "uploads\.xxx\/\\w+",
  8416. 'downoadForFree',
  8417. 'File not found',
  8418. 'optional--',
  8419. 'optional2--',
  8420. "//a[contains(@href,'uploads.xxx')]");
  8421. }
  8422. if (GM_getValue("Check_zxcfiles_dot_com_links", false))
  8423. {
  8424. addFileHost(
  8425. "zxcfiles\.com\/\\w+",
  8426. 'class="downloadbtn',
  8427. 'File Not Found',
  8428. 'optional--',
  8429. 'optional2--',
  8430. "//a[contains(@href,'zxcfiles.com')]");
  8431. }
  8432. if (GM_getValue("Check_up07_dot_net_links", false))
  8433. {
  8434. addFileHost(
  8435. "up07\.net\/\\w+",
  8436. 'name="method_free',
  8437. 'File Not Found',
  8438. 'optional--',
  8439. 'optional2--',
  8440. "//a[contains(@href,'up07.net')]");
  8441. }
  8442. if (GM_getValue("Check_fileupload_dot_pw_links", false))
  8443. {
  8444. addFileHost(
  8445. "fileupload\.pw\/\\w+",
  8446. 'value="Free"',
  8447. 'File Not Found',
  8448. 'optional--',
  8449. 'optional2--',
  8450. "//a[contains(@href,'fileupload.pw')]");
  8451. }
  8452. if (GM_getValue("Check_4upld_dot_com_links", false))
  8453. {
  8454. addFileHost(
  8455. "4upld\.com\/\\w+",
  8456. 'alt="Download Now"|content="Download file">|btn-free-element',
  8457. '<title>Error|content="error|File not found',
  8458. 'optional--',
  8459. 'optional2--',
  8460. "//a[contains(@href,'4upld.com')]");
  8461. }
  8462. /* if (GM_getValue("Check_newfileland_dot_com_links", false))
  8463. {
  8464. addFileHost(
  8465. "newfileland\.com\/\\w+",
  8466. 'name="method_free',
  8467. 'File Not Found',
  8468. 'optional--',
  8469. 'optional2--',
  8470. "//a[contains(@href,'newfileland.com')]");
  8471. } */
  8472. if (GM_getValue("Check_swoopshare_dot_com_links", false))
  8473. {
  8474. addFileHost(
  8475. "(?:.swoopshare)\\.com\/\\w+",
  8476. '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',
  8477. '<input type="file" name="f"',
  8478. 'optional--',
  8479. 'optional2--',
  8480. "//a[contains(@href,'swoopshare.com')]"
  8481. );
  8482. }
  8483. if (GM_getValue("Check_cloudshares_dot_net_links", false))
  8484. {
  8485. addFileHost(
  8486. "cloudshares\.net\/\\w+",
  8487. '"method_free|"Low Speed Download|submit" name="go',
  8488. 'Not Found|"width:500px;text-align:left;">|No such file exist',
  8489. 'optional--',
  8490. 'optional2--',
  8491. "//a[contains(@href,'cloudshares.net')]"
  8492. );
  8493. }
  8494. if (GM_getValue("Check_allmyvideos_dot_net_links", false))
  8495. {
  8496. addFileHost(
  8497. "allmyvideos\.net\/\\w+",
  8498. 'Continue to Video',
  8499. 'File Not Found|class="err">Removed for',
  8500. 'optional--',
  8501. 'optional2--',
  8502. "//a[contains(@href,'allmyvideos.net')]"
  8503. );
  8504. }
  8505. if (GM_getValue("Check_vodlocker_dot_com_links", false))
  8506. {
  8507. addFileHost(
  8508. "vodlocker\.com\/\\w+",
  8509. 'Proceed to video',
  8510. 'Not Found',
  8511. 'optional--',
  8512. 'optional2--',
  8513. "//a[contains(@href,'vodlocker.com')]"
  8514. );
  8515. }
  8516. if (GM_getValue("Check_vidbull_dot_com_links", false))
  8517. {
  8518. addFileHost(
  8519. "vidbull\.com\/\\w+",
  8520. 'Verifying Video Request',
  8521. 'File Not Found',
  8522. 'optional--',
  8523. 'optional2--',
  8524. "//a[contains(@href,'vidbull.com')]");
  8525. }
  8526. if (GM_getValue("Check_novamov_dot_com_links", false))
  8527. {
  8528. addFileHost(
  8529. "novamov\.com\/\\w+",
  8530. 'For version detection',
  8531. 'file no longer exists',
  8532. 'optional--',
  8533. 'optional2--',
  8534. "//a[contains(@href,'novamov.com')]"
  8535. );
  8536. }
  8537. if (GM_getValue("Check_filehoot_dot_com_links", false))
  8538. {
  8539. addFileHost(
  8540. "filehoot\.com\/\\w+",
  8541. 'Continue to watch',
  8542. 'File Not Found',
  8543. 'optional--',
  8544. 'optional2--',
  8545. "//a[contains(@href,'filehoot.com')]"
  8546. );
  8547. }
  8548. if (GM_getValue("Check_stagevu_dot_com_links", false))
  8549. {
  8550. addFileHost(
  8551. "stagevu\.com\/\\w+",
  8552. 'Video Info',
  8553. 'No video with the provided',
  8554. 'optional--',
  8555. 'optional2--',
  8556. "//a[contains(@href,'stagevu.com')]"
  8557. );
  8558. }
  8559. if (GM_getValue("Check_cloudtime_dot_to_links", false))
  8560. {
  8561. addFileHost(
  8562. "cloudtime\.to\/\\w+",
  8563. 'Download the video',
  8564. 'no longer exists',
  8565. 'optional--',
  8566. 'optional2--',
  8567. "//a[contains(@href,'cloudtime.to')]"
  8568. );
  8569. }
  8570. if (GM_getValue("Check_streamin_dot_to_links", false))
  8571. {
  8572. addFileHost(
  8573. "streamin\.to\/\\w+",
  8574. 'id="btn_download',
  8575. 'Not Found|Copyright Infringement|File Deleted',
  8576. 'optional--',
  8577. 'optional2--',
  8578. "//a[contains(@href,'streamin.to')]"
  8579. );
  8580. }
  8581. if (GM_getValue("Check_videoweed_dot_es_links", false))
  8582. {
  8583. addFileHost(
  8584. "videoweed\.es\/\\w+",
  8585. 'version detection',
  8586. 'no longer exists',
  8587. 'optional--',
  8588. 'optional2--',
  8589. "//a[contains(@href,'videoweed.es')]"
  8590. );
  8591. }
  8592. if (GM_getValue("Check_nowvideo_dot_sx_links", false))
  8593. {
  8594. addFileHost(
  8595. "nowvideo\.sx\/\\w+",
  8596. 'Download this video',
  8597. 'no longer exists',
  8598. 'optional--',
  8599. 'optional2--',
  8600. "//a[contains(@href,'nowvideo.sx')]"
  8601. );
  8602. }
  8603. if (GM_getValue("Check_thevideo_dot_me_links", false))
  8604. {
  8605. addFileHost(
  8606. "thevideo\.me\/\\w+",
  8607. 'Upgrade your account|Proceed to video|class="btn btn-lg btn-dark">',
  8608. 'File Not Found',
  8609. 'optional--',
  8610. 'optional2--',
  8611. "//a[contains(@href,'thevideo.me')]"
  8612. );
  8613. }
  8614. if (GM_getValue("Check_gorillavid_dot_in_links", false))
  8615. {
  8616. addFileHost(
  8617. "gorillavid\.in\/\\w+",
  8618. 'Wait 5 seconds',
  8619. 'File Not Found',
  8620. 'optional--',
  8621. 'optional2--',
  8622. "//a[contains(@href,'gorillavid.in')]"
  8623. );
  8624. }
  8625. if (GM_getValue("Check_thefile_dot_me_links", false))
  8626. {
  8627. addFileHost(
  8628. "thefile\.me\/\\w+",
  8629. 'Choose free or',
  8630. '',
  8631. 'optional--',
  8632. 'optional2--',
  8633. "//a[contains(@href,'thefile.me')]"
  8634. );
  8635. }
  8636. if (GM_getValue("Check_vidzi_dot_tv_links", false))
  8637. {
  8638. addFileHost(
  8639. "vidzi\.tv\/\\w+",
  8640. 'video-embed-modal row',
  8641. 'File Not Found|file was deleted',
  8642. 'optional--',
  8643. 'optional2--',
  8644. "//a[contains(@href,'vidzi.tv')]"
  8645. );
  8646. }
  8647. if (GM_getValue("Check_filenuke_dot_com_links", false))
  8648. {
  8649. addFileHost(
  8650. "filenuke\.com\/\\w+",
  8651. 'Download File',
  8652. 'Earn with us',
  8653. 'optional--',
  8654. 'optional2--',
  8655. "//a[contains(@href,'filenuke.com')]"
  8656. );
  8657. }
  8658. if (GM_getValue("Check_vidto_dot_me_links", false))
  8659. {
  8660. addFileHost(
  8661. "vidto\.me\/\\w+",
  8662. 'Proceed to video',
  8663. 'Not Found',
  8664. 'optional--',
  8665. 'optional2--',
  8666. "//a[contains(@href,'vidto.me')]"
  8667. );
  8668. }
  8669. if (GM_getValue("Check_vidspot_dot_net_links", false))
  8670. {
  8671. addFileHost(
  8672. "vidspot\.net\/\\w+",
  8673. 'Duration',
  8674. 'Removed for',
  8675. 'optional--',
  8676. 'optional2--',
  8677. "//a[contains(@href,'vidspot.net')]"
  8678. );
  8679. }
  8680. if (GM_getValue("Check_sharesix_dot_com_links", false))
  8681. {
  8682. addFileHost(
  8683. "(?:sharesix\\.com|sharesix\\.net)\/\\w+",
  8684. 'Download File',
  8685. 'File Not Found',
  8686. 'optional--',
  8687. 'optional2--',
  8688. "//a[contains(@href,'sharesix.com') or contains(@href,'sharesix.net/')]"
  8689. );
  8690. }
  8691. if (GM_getValue("Check_movpod_dot_in_links", false))
  8692. {
  8693. addFileHost(
  8694. "movpod\.in\/\\w+",
  8695. 'Continue',
  8696. 'File Not Found',
  8697. 'optional--',
  8698. 'optional2--',
  8699. "//a[contains(@href,'movpod.in')]"
  8700. );
  8701. }
  8702. /* if (GM_getValue("Check_down4files_dot_com_links", false))
  8703. {
  8704. addFileHost(
  8705. "down4files\.com\/\\w+",
  8706. 'down_table.png',
  8707. 'style="color:#d33|Error</td>|width:500px;text-align:left;">',
  8708. 'optional--',
  8709. 'optional2--',
  8710. "//a[contains(@href,'down4files.com')]"
  8711. );
  8712. } */
  8713. if (GM_getValue("Check_storefiles_dot_co_links", false))
  8714. {
  8715. addFileHost(
  8716. "storefiles\.co\/\\w+",
  8717. 'btn_download',
  8718. 'No such file|>Error<|mqmaintitle">',
  8719. 'optional--',
  8720. 'optional2--',
  8721. "//a[contains(@href,'storefiles.co')]"
  8722. );
  8723. }
  8724. if (GM_getValue("Check_filehost_dot_pw_links", false))
  8725. {
  8726. addFileHost(
  8727. "filehost\.pw\/\\w+",
  8728. 'name="method_free',
  8729. '>Error<|style="color:#d33;">|No such file|FILE NOT FOUND',
  8730. 'optional--',
  8731. 'optional2--',
  8732. "//a[contains(@href,'filehost.pw')]"
  8733. );
  8734. }
  8735. if (GM_getValue("Check_inafile_dot_com_links", false))
  8736. {
  8737. addFileHost(
  8738. "inafile\.com\/\\w+",
  8739. 'value="download1">|<h2>File: <font style="color:darkred">',
  8740. '<div style="width:500px;text-align:left;">|File Not Found',
  8741. 'optional--',
  8742. 'optional2--',
  8743. "//a[contains(@href,'inafile.com')]"
  8744. );
  8745. }
  8746. if (GM_getValue("Check_uplea_dot_com_links", false))
  8747. {
  8748. addFileHost(
  8749. "uplea\.com\/\\w+",
  8750. 'Download your file:|de votre fichier:|class="download-container|Téléchargement de votre fichier:',
  8751. 'expired link|ou est invalide',
  8752. 'optional--',
  8753. 'optional2--',
  8754. "//a[contains(@href,'uplea.com/dl')]",
  8755. true);
  8756. }
  8757. if (GM_getValue("Check_toutbox_dot_fr_links", false))
  8758. {
  8759. addFileHost(
  8760. "toutbox\.fr\/\\w+",
  8761. '<div class="downloadFileFid">|class="downloadsCounter">/p>|class="filename"><a href=|img/webbuttoned.gif">',
  8762. 'meta name="description" content="Toutbox.fr|redirect-userpage = "true"',
  8763. 'optional--',
  8764. 'optional2--',
  8765. "//a[contains(@href,'toutbox.fr') or contains(@href,'go4up.com/')]"
  8766. );
  8767. }
  8768. if (GM_getValue("Check_openload_dot_co_links", false))
  8769. {
  8770. addFileHost(
  8771. "openload\.co\/\\w+",
  8772. 'id="downloadTimer">|button dlbutton',
  8773. 'jumbotron{color|got deleted|center !important',
  8774. 'optional--',
  8775. 'optional2--',
  8776. "//a[contains(@href,'openload.co')]"
  8777. );
  8778. }
  8779. if (GM_getValue("Check_lolabits_dot_es_links", false))
  8780. {
  8781. addFileHost(
  8782. "lolabits\.es\/\\w+",
  8783. 'Descargar:',
  8784. '<title>Archivos de usuario',
  8785. 'optional--',
  8786. 'optional2--',
  8787. "//a[contains(@href,'lolabits.es')]"
  8788. );
  8789. }
  8790. if (GM_getValue("Check_alfafile_dot_net_links", false))
  8791. {
  8792. addFileHost(
  8793. "alfafile\.net\/\\w+",
  8794. 'id="slow_download_btn',
  8795. 'class="error-box">',
  8796. 'optional--',
  8797. 'optional2--',
  8798. "//a[contains(@href,'alfafile.net')]"
  8799. );
  8800. }
  8801. if (GM_getValue("Check_multiup_dot_org_links", false))
  8802. {
  8803. addFileHost(
  8804. "multiup\.org\/\\w+",
  8805. '<title>Download|<title>Télécharger|class="link-download btn"|<h5>DOWNLOAD</h5>|<h5>TÉLÉCHARGER</h5>',
  8806. 'File not found|alert-error">|icon-white icon-warning-sign">|<title>Fichier introuvable',
  8807. 'optional--',
  8808. 'optional2--',
  8809. "//a[contains(@href,'multiup.org')]"
  8810. );
  8811. }
  8812.  
  8813.  
  8814. }
  8815. //start here
  8816.  
  8817. //hosts with direct download, so they must be requested for headers only
  8818. function initFileHostsHeadersOnly()
  8819. {
  8820. function addFileHostHeadersOnly(linkRegex, isAliveRegex, isDeadRegex, xpathEx, ispremRegex)
  8821. {
  8822. var host = new Array(5);
  8823. host[0] = linkRegex;
  8824. host[1] = isAliveRegex;
  8825. host[2] = isDeadRegex;
  8826. host[3] = xpathEx;
  8827. host[4] = ispremRegex;
  8828. http_file_hosts_headers_only.push(host);
  8829. }
  8830. if (GM_getValue("Check_uloziste_dot_com_links", false))
  8831. {
  8832. addFileHostHeadersOnly(
  8833. "(?:|files\\.)uloziste\\.com\/\\w+\/\\w+",
  8834. 'Connection: Keep-Alive',
  8835. 'Content-Length: 3857',
  8836. "//a[contains(@href,'uloziste.com')]"
  8837. )
  8838. }
  8839. if (GM_getValue("Check_adrive_dot_com_links", false))
  8840. {
  8841. addFileHostHeadersOnly(
  8842. "adrive\\.com\/public\/\\w+",
  8843. 'Connection: keep-alive',
  8844. 'orig_ref=deleted',
  8845. "//a[contains(@href,'adrive.com')]"
  8846. )
  8847. }
  8848. if (GM_getValue("Check_myupload_dot_dk_links", false))
  8849. {
  8850. addFileHostHeadersOnly(
  8851. "myupload\\.dk\/showfile\/\\w+",
  8852. 'Expires:',
  8853. 'squeeze1\\s+Vary',
  8854. "//a[contains(@href,'myupload.dk/showfile')]"
  8855. )
  8856. }
  8857. }
  8858. //CustomRules
  8859. //functions add...Host copied here
  8860. function addObsoleteHost(linkRegex, xpathEx)
  8861. {
  8862. var host = new Array(2);
  8863. host[0] = linkRegex;
  8864. host[1] = xpathEx;
  8865. http_file_hosts_obsolete.push(host);
  8866. }
  8867. function addFileHost(linkRegex, isAliveRegex, isDeadRegex, isUnavaRegex, xpathEx, tryLoop, ispremRegex)
  8868. {
  8869. var host = new Array(7);
  8870. host[0] = linkRegex;
  8871. host[1] = isAliveRegex;
  8872. host[2] = isDeadRegex;
  8873. host[3] = isUnavaRegex;
  8874. host[4] = xpathEx;
  8875. tryLoop ? host[5] = true : host[5] = false;
  8876. host[6] = ispremRegex;
  8877. http_file_hosts.push(host);
  8878. }
  8879. function addFileHostHeadersOnly(linkRegex, isAliveRegex, isDeadRegex, xpathEx, ispremRegex)
  8880. {
  8881. var host = new Array(5);
  8882. host[0] = linkRegex;
  8883. host[1] = isAliveRegex;
  8884. host[2] = isDeadRegex;
  8885. host[3] = xpathEx;
  8886. host[4] = ispremRegex;
  8887. http_file_hosts_headers_only.push(host);
  8888. }
  8889. //takes a fully built rules array and adds the rules to WARLC
  8890. function applyCustomRules(customRules)
  8891. {
  8892. if (!customRules) return;
  8893. var rules, r, i;
  8894. rules = customRules.rules;
  8895. for (i = 0 ; i < rules.length ; i++)
  8896. {
  8897. r = rules[i];
  8898. if (r.enabled)
  8899. {
  8900. switch (r.type)
  8901. {
  8902. case 'single':
  8903. addFileHost(r.urlregex, r.aliveregex, r.deadregex, r.unavaregex, r.premregex||'', r.xpath);
  8904. break;
  8905. case 'headers':
  8906. addFileHostHeadersOnly(r.urlregex, r.aliveregex, r.deadregex, r.xpath, r.premregex);
  8907. break;
  8908. case 'obsolete':
  8909. addObsoleteHost(r.urlregex, r.xpath)
  8910. break;
  8911. }
  8912. }
  8913. }
  8914. }
  8915.  
  8916.  
  8917. function initFileHostsCustom()
  8918. {
  8919. if (Custom_rules && Custom_rules_text)
  8920. {
  8921. var msg = '';
  8922. if (newVersion)
  8923. msg = 'New version of W.A.R. Links Checker detected.\n\n';
  8924. else if ((now - last_custom_rules_nag) >= 60*24*60*60*1000)
  8925. msg = '60 or more days have passed since this notification.\n\n';
  8926. if (msg && /^\s*@customrule(?:_obsolete)?\s/mi.test(Custom_rules_text))
  8927. {
  8928. GM_setValue('last_custom_rules_nag', ''+new Date().getTime()); //reset nag
  8929. msg +=
  8930. 'Either new version of W.A.R. Links Checker detected or 60 days passed since this notify.\n'+
  8931. 'Please check that your custom rules haven\'t been built into WARLC.\n'+
  8932. 'If not, please share them with us so they can be included in the next version! Built-in rules are always preferred.\n\n'+
  8933. 'We apologize for this annoying notification, but there is a reason to this.\n'+
  8934. 'Ideally, WARLC would check which of your custom rules have been included and disable them. '+
  8935. 'Unfortunately, there is no easy way to do that, but we don\'t want everybody to just use their custom rules '+
  8936. 'forever without ever checking if the built-in ones have been added/fixed. This is currently the only way '+
  8937. 'to remind you that you should try built-in rules, report missing/non-working ones and share your custom rules.';
  8938. setTimeout(function(){alert(msg)},0);
  8939. }
  8940. var customRules = parseCustomRules(Custom_rules_text);
  8941. if (customRules.warning || customRules.error)
  8942. alert('There were ' + customRules.error + ' errors, ' + customRules.warning + ' warnings, ' +
  8943. customRules.note + ' notes found during Custom Rules processing.\n' + customRules.rules.length + ' valid rules found.\n\n' +
  8944. JSON.stringify(customRules.info, null, ' '));
  8945. applyCustomRules(customRules);
  8946. }
  8947. }
  8948. //end of CustomRules processing
  8949.  
  8950.  
  8951.  
  8952. } //end of function start
  8953.  
  8954.  
  8955.  
  8956. function initClipBoardTools()
  8957. {
  8958. unsafeWindow.copyToClipboard = function(text)
  8959. {
  8960. try
  8961. {
  8962. this.netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
  8963.  
  8964. var str = Components.classes["@mozilla.org/supports-string;1"].
  8965. createInstance(Components.interfaces.nsISupportsString);
  8966. if (!str) return false;
  8967.  
  8968. str.data = text;
  8969.  
  8970. var trans = Components.classes["@mozilla.org/widget/transferable;1"].
  8971. createInstance(Components.interfaces.nsITransferable);
  8972. if (!trans) return false;
  8973.  
  8974. trans.addDataFlavor("text/unicode");
  8975. trans.setTransferData("text/unicode", str, text.length * 2);
  8976.  
  8977. var clipid = Components.interfaces.nsIClipboard;
  8978. var clip = Components.classes["@mozilla.org/widget/clipboard;1"].getService(clipid);
  8979. if (!clip) return false;
  8980.  
  8981. clip.setData(trans, null, clipid.kGlobalClipboard);
  8982. } catch (e) {
  8983. GM_log("Error copyToClipboard : " + e);
  8984. alert(e + "\n\nsigned.applets.codebase_principal_support must be set true in about:config")
  8985. }
  8986. }
  8987. }
  8988.  
  8989.  
  8990.  
  8991. //CustomRules
  8992.  
  8993. function escapeRegex(str)
  8994. {
  8995. return str.replace(/[\-\[\]{}()*+?.,\\\^$|#]/g, "\\$&");
  8996. }
  8997.  
  8998.  
  8999. //called internally from parseCustomRules.
  9000. //expected: rule object with array fields baseurl, alivematch etc, everything must already be checked for input errors
  9001. //returns the rule object with string fields urlregex, xpath, aliveregex etc built from the arrays
  9002. function makeCustomRule(rule)
  9003. {
  9004. function makeMatchRegex(arrmatch)
  9005. {
  9006. return escapeRegex(arrmatch.join('\n'))
  9007. .replace(/ +/g, '\\s+') //two or more spaces to any whitespace
  9008. .replace(/\n/g,'|'); //join together
  9009. }
  9010. if (rule.alivematch) rule.aliveregex = makeMatchRegex(rule.alivematch);
  9011. if (rule.deadmatch) rule.deadregex = makeMatchRegex(rule.deadmatch);
  9012. if (rule.unavamatch) rule.unavaregex = makeMatchRegex(rule.unavamatch);
  9013. if (rule.premmatch) rule.premregex = makeMatchRegex(rule.premmatch);
  9014. if (rule.baseurl)
  9015. {
  9016. var i, m, urlregex = [], xpath = [], len = rule.baseurl.length;
  9017. for (i = 0 ; i < len ; i++)
  9018. {
  9019. m = rule.baseurl[i].match(/^([a-z0-9\.-]+)(?: +([a-z \.]+) +)?(\/.*)$/);
  9020. if (m[2]) //baseurl in the form: example. com co.uk net /xxx
  9021. {
  9022. 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'])
  9023. urlregex.push( (m[1] + '(?:'+ m[2].replace(/\s+/g,'|') + ')').replace(/\./g,'\\.') + escapeRegex(m[3]) + '.'); //urlregex.push('example\\.(?:com|co\\.uk|net)/xxx.')
  9024. }
  9025. else //baseurl in the form: example.com/xxx
  9026. {
  9027. xpath.push(m[0]);
  9028. urlregex.push(escapeRegex(m[0]) + '.');
  9029. }
  9030. }
  9031. rule.xpath = "//a[contains(@href,'" + xpath.join("') or contains(@href,'") + "')]";
  9032. rule.urlregex = '(?:[a-z0-9\\.-]+\\.)?(?:' + urlregex.join('|') + ')';
  9033. }
  9034. return rule;
  9035. } //function makeCustomRule
  9036.  
  9037.  
  9038. /*
  9039. Takes a string containing custom link checking rules.
  9040. Returns an object with fields:
  9041. info - contains notes, warnings and errors found during parsing
  9042. rules - the array of custom rules
  9043. note, warning, error - number of each of them found during parsing
  9044. Format of the input string:
  9045. One command per line. Command format: @keyword parameter
  9046. Keywords:
  9047. @customrule, @customrule_obsolete, @customrule_headers - begin a new custom rule. Parameter: name of the rule
  9048. @#customrule, @#customrule_obsolete, @#customrule_headers - begin and parse this custom rule, but don't use it. Parameter: name of the rule
  9049. These keywords can be multiple (any of them will work):
  9050. @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...)
  9051. @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+
  9052. @alivelink, @deadlink - example links
  9053. @baseurl is always required, @alivematch and @deadmatch are required except for obsolete. @unavamatch is ignored for obsolete. @*link is optional.
  9054. Lines starting with // and empty lines are ignored.
  9055. Invalid parameters generate errors and those lines are skipped.
  9056. Other lines generate warnings, but are otherwise ignored (also those before the first @customrule line or inside a rule with invalid name).
  9057. Example:
  9058. @customrule filehost
  9059. @baseurl filehost.com/download/
  9060. @baseurl filehost2. com net /d?=
  9061. @alivematch id="download">
  9062. @deadmatch File not found
  9063. @deadmatch File deleted
  9064. */
  9065. function parseCustomRules(rulesStr)
  9066. {
  9067. var linenum, customRules = {'info': [], 'rules': [], 'note': 0, 'warning': 0, 'error': 0};
  9068. function addInfo(type, msg, ln){
  9069. customRules.info.push({'linenum':(ln===undefined ? linenum+1 : ln+1), 'type':type, 'msg':msg});
  9070. customRules[type]++;
  9071. }
  9072. var lines = rulesStr.match(/^(.*)$/gm); //split into array of lines
  9073. if (!lines) return null;
  9074. lines.push('@#customrule _'); //to save the last rule
  9075. var m, linecount = lines.length;
  9076. var keyword, param, constr, rule, err;
  9077. var TLD = '[a-z]{2,7}(?:\\.[a-z]{2,7})?';
  9078. var TLDorTLDlist = '(?:'+TLD+'| '+TLD+'(?: '+TLD+'){0,9} )'; //TLD or space-separated list of TLDs
  9079. var baseurlRE = new RegExp('^([a-z0-9-]{1,30}(?:\\.[a-z0-9-]{1,30}){0,2}\\.)'+TLDorTLDlist+'(/[^\'"\s\$]{0,50})$', 'i');
  9080. var constraints = {
  9081. 'baseurl': {
  9082. 'single': {'min': 1, 'max': 10, 'paramRE': baseurlRE},
  9083. 'headers': {'min': 1, 'max': 10, 'paramRE': baseurlRE},
  9084. 'obsolete': {'min': 1, 'max': 10, 'paramRE': baseurlRE}},
  9085. 'alivematch': {
  9086. 'single': {'min': 1, 'max': 10, 'paramRE': null},
  9087. 'headers': {'min': 1, 'max': 10, 'paramRE': null}},
  9088. 'deadmatch': {
  9089. 'single': {'min': 1, 'max': 10, 'paramRE': null},
  9090. 'headers': {'min': 1, 'max': 10, 'paramRE': null}},
  9091. 'unavamatch': {
  9092. 'single': {'min': 0, 'max': 10, 'paramRE': null}},
  9093. 'alivelink': {
  9094. 'single': {'min': 0, 'max': 10, 'paramRE': null},
  9095. 'headers': {'min': 0, 'max': 10, 'paramRE': null}},
  9096. 'deadlink': {
  9097. 'single': {'min': 0, 'max': 10, 'paramRE': null},
  9098. 'headers': {'min': 0, 'max': 10, 'paramRE': null},
  9099. 'obsolete': {'min': 0, 'max': 10, 'paramRE': null}}
  9100. };
  9101. for (linenum = 0 ; linenum < linecount ; linenum++)
  9102. {
  9103. //capturing groups: 1 23 4 5 6
  9104. m = lines[linenum].match(/^\s*(?:(\/\/.*)|@((#?)(customrule)(?:_(headers|obsolete))?|baseurl|alivematch|deadmatch|unavamatch|alivelink|deadlink)\s+(.+))?$/i);
  9105. if (m)
  9106. {
  9107. if (m[1] || !m[2])
  9108. continue; // ignore empty lines and lines starting with //
  9109. keyword = (m[4] || m[2]).toLowerCase();
  9110. param = m[6];
  9111. if (keyword == 'customrule')
  9112. {
  9113. //save the current rule if all required fields are provided
  9114. if (rule)
  9115. {
  9116. err = false;
  9117. $.each(constraints, function(kw, constraint){
  9118. var l, constr = constraint[rule.type];
  9119. if (constr)
  9120. {
  9121. l = rule[kw] ? rule[kw].length : 0;
  9122. if (l < constr.min || l > constr.max)
  9123. {
  9124. 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);
  9125. err = true;
  9126. }
  9127. }
  9128. });
  9129. if (!err)
  9130. customRules.rules.push(makeCustomRule(rule));
  9131. }
  9132. //start a new rule
  9133. if (/^[\w\.-]{1,30}$/.test(param)) //valid name?
  9134. {
  9135. rule = {
  9136. 'enabled': !m[3],
  9137. 'type': m[5] ? m[5].toLowerCase() : 'single',
  9138. 'name': param
  9139. };
  9140. }
  9141. else
  9142. {
  9143. addInfo('error', 'Invalid rule name. Cannot start a new rule definition.');
  9144. rule = null;
  9145. }
  9146. }
  9147. else //good line format, but keyword other than customrule
  9148. {
  9149. if (!rule)
  9150. {
  9151. addInfo('warning', 'Command outside @CUSTOMRULE definiton. Line skipped.');
  9152. continue;
  9153. }
  9154. if (constraints[keyword])
  9155. {
  9156. constr = constraints[keyword][rule.type];
  9157. if (constr)
  9158. {
  9159. if (constr.paramRE && !constr.paramRE.test(param))
  9160. {
  9161. addInfo('warning', 'Invalid @' + keyword.toUpperCase() + ' parameter. Line Skipped.');
  9162. continue;
  9163. }
  9164. }
  9165. else
  9166. {
  9167. addInfo('note', '@' + keyword.toUpperCase() + ' not applicable for type ' + rule.type.toUpperCase() + '. Line skipped.');
  9168. continue;
  9169. }
  9170. }
  9171. //line OK, save
  9172. rule[keyword] ? rule[keyword].push(param) : rule[keyword] = [param];
  9173. }
  9174. } //if (m)
  9175. else
  9176. addInfo('warning', 'Unknown line format. Line skipped.');
  9177. } //for loop
  9178. return customRules;
  9179. } //function parseCustomRules