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

detects live, dead and premium links.

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

  1. /*fixed rghost.net false premium
  2. fixed unlimitzone.com false premium
  3. fixed turbobit.net */
  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 650+ filehosts. For Firefox, Chrome, Opera, Safari.
  8. // @namespace premium version
  9. // @version 1.1.7.9
  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. "filenuke.com",
  36. "vidto.me",
  37. "vidspot.net",
  38. "sharesix.com|sharesix.net",
  39. "movpod.in",
  40. "thefile.me",
  41. "vidzi.tv",
  42. "videoweed.es",
  43. "vodlocker.com",
  44. "nowvideo.sx",
  45. "cloudtime.to",
  46. "thevideo.me",
  47. "vidbull.com",
  48. "allmyvideos.net",
  49. "novamov.com",
  50. "filehoot.com",
  51. "stagevu.com",
  52. "gorillavid.in",
  53. "streamin.to",
  54. "4upld.com",
  55. "cloudshares.net",
  56. "swoopshare.com",
  57. "newfileland.com",
  58. "2shared.com",
  59. "fileupload.pw",
  60. "zxcfiles.com",
  61. "up07.net",
  62. "4shared.com",
  63. "adrive.com",
  64. "aisfile.com",
  65. "hexupload.com",
  66. "bezvadata.cz",
  67. "burnupload.com|burnupload.ihiphop.com",
  68. "xkeepfile.com|Gamesena.com",
  69. // "firedrive.com",
  70. "usersfiles.com",
  71. "pan.baidu.com",
  72. "radicalshare.com",
  73. "cramit.in|cramitin.net",
  74. "datei.to",
  75. "daten-hoster.de|filehosting.org|xtraupload.de",
  76. "demo.ovh.eu",
  77. "depositfiles.com|depositfiles.lt|depositfiles.org|dfiles.ru|dfiles.eu",
  78. "divshare.com",
  79. "easy-share.com|crocko.com",
  80. "easybytez.com",
  81. "edisk.cz",
  82. "euroshare.eu",
  83. "file-upload.net",
  84. "yadi.sk",
  85. "ryushare.com",
  86. "wizupload.com",
  87. "fastshare.cz",
  88. "filefactory.com",
  89. "share.vnn.vn",
  90. "yunpan.cn",
  91. "gulfup.com",
  92. "tropicshare.com",
  93. "cloudzilla.to",
  94. "inclouddrive.com",
  95. "fileflyer.com",
  96. "filerio.com|filekeen.com",
  97. "up.4share.vn",
  98. "upfile.vn",
  99. "datafilehost.com",
  100. "fileband.com",
  101. "worldbytez.com",
  102. "files.mail.ru",
  103. "filepost.com|fp.io",
  104. "filesflash.com",
  105. "box.com",
  106. "box.net",
  107. "goldbytez.com",
  108. "sdilej.cz",
  109. "ex-load.com",
  110. "filesmonster.com",
  111. "filestore.to",
  112. // "freakshare.net",
  113. "hulkload.com",
  114. "filedropper.com",
  115. "free-uploading.com",
  116. "gamefront.com|filefront.com",
  117. "gettyfile.ru",
  118. "gigapeta.com",
  119. "gigasize.com",
  120. "hellshare.com",
  121. "hellspy.com",
  122. "hitfile.net",
  123. "hostuje.net",
  124. "freefilehosting.net",
  125. "free.fr",
  126. "hulkshare.com",
  127. "hyperfileshare.com",
  128. "filecloud.io|ifile.it",
  129. "ifolder.ru",
  130. "jumbofiles.com",
  131. "uploadrocket.net",
  132. "lafiles.com",
  133. "leteckaposta.cz|sharegadget.com",
  134. "letitbit.net",
  135. "load.to",
  136. "mediafire.com",
  137. "megafileupload.com",
  138. "megashares.com",
  139. "movshare.net",
  140. "muchshare.net",
  141. "myupload.dk",
  142. "narod.ru|narod.yandex.ru",
  143. "netload.in",
  144. "fboom.me",
  145. "fileboom.me",
  146. "openfile.ru",
  147. "partage-facile.com",
  148. "plunder.com",
  149. // "putlocker.com",
  150. "sharerapid.cz",
  151. "exclusiveloader.com",
  152. "acefile.net",
  153. "queenshare.com",
  154. "quickshare.cz",
  155. "rapidgator.net",
  156. "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. "tufiles.ru",
  184. "turbobit.net",
  185. "filecloud.cc",
  186. "tikfile.com",
  187. "cloudsix.me",
  188. "turboupload.com",
  189. "uloz.to|ulozto.cz|bagruj.cz|zachowajto.pl",
  190. "ulozisko.sk",
  191. "uloziste.com",
  192. "unibytes.com",
  193. "upload-il.net|przeslij.net",
  194. "uploaded.to|ul.to",
  195. "uploading.com",
  196. "chayfile.com",
  197. "rockfile.eu",
  198. "24uploading.com",
  199. "uploadspace.pl",
  200. "upnito.sk",
  201. "uptobox.com",
  202. "usaupload.net",
  203. "veehd.com",
  204. "videobb.com",
  205. "vip-file.com",
  206. "webshare.cz",
  207. "xdisk.cz",
  208. "yunfile.com|filemarkets.com",
  209. "ziddu.com",
  210. "krotix.net",
  211. "zippyshare.com",
  212. "rodfile.com",
  213. "migahost.com",
  214. "wikiupload.com",
  215. "uploadstube.de",
  216. "faststore.org",
  217. "flyfiles.net",
  218. "nowdownload.eu",
  219. "prefiles.com",
  220. "axifile.com",
  221. "rapidsonic.com|fileparadox.com",
  222. "hackerbox.org",
  223. "amonshare.com",
  224. "data.hu",
  225. "brupload.net",
  226. "userscloud.com",
  227. "netkups.com",
  228. "edoc.com",
  229. "xfileload.com",
  230. "jumbofile.net",
  231. "kumpulbagi.com",
  232. "uppit.com|up.ht",
  233. "downloadani.me",
  234. "filesabc.com",
  235. "sharebeast.com",
  236. "180upload.com",
  237. "verzend.be",
  238. "movreel.com",
  239. "4up.me",
  240. "extmatrix.com",
  241. "sendfiles.nl",
  242. "yourfilestore.com",
  243. "filebig.net",
  244. "nekaka.com",
  245. "file4safe.com",
  246. "tusfiles.net",
  247. "filemac.com",
  248. "idup.in",
  249. "fileswap.com",
  250. "ozofiles.com",
  251. "loudupload.net",
  252. "nosupload.com",
  253. "gboxes.com",
  254. "myvdrive.com|fileserving.com",
  255. "filesin.com",
  256. "novafile.com",
  257. "longfiles.com",
  258. "uploadhero.com",
  259. "uploadbaz.com",
  260. "bitupload.com",
  261. "indowebster.com",
  262. "superload.cz",
  263. "mafiastorage.com",
  264. "4upfiles.com",
  265. "filesmelt.com",
  266. "hellupload.com",
  267. "uploadingit.com",
  268. "stiahni.si",
  269. "sendspace.pl",
  270. "fastshare.org",
  271. "filejoker.net",
  272. "filestore.com.ua",
  273. "secureupload.eu",
  274. "rapidfileshare.net",
  275. "stiahnito.sk",
  276. "rusfolder.com",
  277. "fileover.net",
  278. "catshare.net",
  279. "anonfiles.com",
  280. "mixturecloud.com",
  281. "fileparadox.in",
  282. "filedais.com",
  283. "imdb.com",
  284. "nitroflare.com",
  285. "akafile.com",
  286. "creafile.net",
  287. "hugefiles.net",
  288. "vidxden.com",
  289. "up.top4top.net",
  290. "upload.ee",
  291. "shareplace.org",
  292. "uploadc.com",
  293. "remixshare.com",
  294. "exoshare.com",
  295. "borncash.org",
  296. "junocloud.me",
  297. "keep2share.cc",
  298. "k2s.cc",
  299. "expressleech.com",
  300. "2downloadz.com",
  301. "mightyupload.com",
  302. "anysend.com",
  303. "datafile.com",
  304. "upstore.net",
  305. "upsto.re",
  306. "speedy.sh",
  307. "sanshare.com",
  308. "kingfiles.net",
  309. "uploadhero.co",
  310. "ge.tt",
  311. "filesflash.net",
  312. "salefiles.com",
  313. "keep2s.cc",
  314. "megairon.net",
  315. "datoid.cz",
  316. "cloudstor.es",
  317. "streamfile.com",
  318. "eyesfile.ca",
  319. "filemoney.com",
  320. "uploadboy.com",
  321. "speedshare.eu",
  322. "google.com",
  323. "unlimitzone.com",
  324. "rioupload.com",
  325. "rg.to",
  326. "jumbofiles.org",
  327. "fshare.vn",
  328. "spaceforfiles.com",
  329. "up.media1fire.com",
  330. "depfile.com",
  331. "go4up.com",
  332. "dropbox.com",
  333. "redbunker.net",
  334. "divxpress.com",
  335. "mega.nz|mega.co.nz",
  336. "anafile.com",
  337. "uploadable.ch",
  338. "arabloads.com",
  339. "sharerepo.com",
  340. "sfshare.se",
  341. "files.fm",
  342. "koofile.com",
  343. "vidplay.net",
  344. "storagon.com",
  345. "doraupload.com",
  346. "openload.io",
  347. "geupload.com|lenfile.com",
  348. "uploads.xxx",
  349. ];
  350.  
  351. try
  352. {
  353. //iframes excluded
  354. if (window.top != window.self)
  355. {
  356. return;
  357. }
  358. //allHostNames sites excluded
  359. if (window.location.href.match("https?:\/\/(www\.)?[\w\.-]*(?:" +
  360. allHostNames.join("|").replace(/\./g, "\\.").replace(/-/g, "\\-") +
  361. ")"))
  362. {
  363. return;
  364. }
  365. }
  366. catch (e)
  367. {
  368. return;
  369. }
  370.  
  371. //separate alternative domains with "|" char (first name is considered being main)
  372. var allContainerNames = [
  373. "adf.ly",
  374. "linkcrypt.ws",
  375. "linksafe.me",
  376. "linksave.in",
  377. "linkto.net",
  378. "madlink.sk",
  379. "multiload.cz",
  380. "mirrorcreator.com",
  381. "ncrypt.in",
  382. "redi.re",
  383. "relink.us",
  384. "safelinking.net",
  385. "theloo.katt.it",
  386. "bit.ly",
  387.  
  388. ];
  389.  
  390. //separate alternative domains with "|" char (first name is considered being main)
  391. var allObsoleteNames = [
  392. "uloz.cz",
  393. "freakshare.com",
  394. "freakshare.net",
  395. "daj.to",
  396. "bl.st",
  397. "2drive.net",
  398. "uncapped-downloads.com",
  399. "sockshare.com",
  400. "ddlstorage.com",
  401. "dataport.cz",
  402. "dizzcloud.com",
  403. "stahovadlo.cz",
  404. "shared.com",
  405. "storage.to",
  406. "putlocker.com",
  407. "lumfile.com",
  408. "lumfile.se",
  409. "lumfile.eu",
  410. "firedrive.com",
  411. "fileshare.in.ua",
  412. "filecore.co.nz",
  413. "iskladka.cz",
  414. "file-rack.com",
  415. "fast-load.net",
  416. "subory.sk",
  417. "bigandfree.com",
  418. "fileop.com",
  419. "mujsoubor.cz",
  420. "sendfile.to",
  421. "superfastfile.com",
  422. "quickyshare.com",
  423. "duckload.com",
  424. "uploadstore.net",
  425. "meinupload.com",
  426. "dualshare.com",
  427. "2xupload.to|2xupload.de",
  428. "oxedion.com",
  429. "uploadline.com",
  430. "dll.bz",
  431. "movieshare.in",
  432. "milledrive.com",
  433. "quickupload.net",
  434. "safelink.in",
  435. "metadivx.com",
  436. "divxlink.com",
  437. "uploadrack.com",
  438. "teradepot.com",
  439. "dataup.to",
  440. "upit.to",
  441. "driveway.com",
  442. "eatlime.com",
  443. "a2zuploads.com",
  444. "friendlyfiles.net",
  445. "flyfile.us",
  446. "speedyshare.com",
  447. "uploadspace.eu",
  448. "keepfile.com",
  449. "piggyshare.com",
  450. "uplly.com",
  451. "filecrown.com",
  452. "6giga.com",
  453. "uploadjockey.com",
  454. "bluehost.to",
  455. "filegu.ru",
  456. "filebase.to",
  457. "up-file.com",
  458. "xvideos.com",
  459. "ufox.com",
  460. "filebling.com",
  461. "loaded.it",
  462. "uploadcell.com",
  463. "uploadshare.cz",
  464. "mangoshare.com",
  465. "filestab.com",
  466. "crazyupload.com",
  467. "gaiafile.com",
  468. "sharejunky.com",
  469. "fileho.com",
  470. "bigandfree.com",
  471. "bigfile.in",
  472. "bigshare.eu",
  473. "dahosting.org",
  474. "digisofts.net",
  475. "file4save.com",
  476. "filechip.com",
  477. "filescloud.com",
  478. "saveqube.com",
  479. "turboshare.de",
  480. "z-upload.com",
  481. "youshare.com",
  482. "jiffyupload.com",
  483. "gigeshare.com",
  484. "datenklo.net",
  485. "upload.dj",
  486. "loadfiles.in",
  487. "upit.to",
  488. "dsfileshare.com",
  489. "sharesimple.net",
  490. "4files.net",
  491. "wooupload.com",
  492. "odsiebie.com",
  493. "filenavi.com",
  494. "3oof.com",
  495. "meshwaar.com",
  496. "maxupload.com",
  497. "share.cx",
  498. "atserver.eu",
  499. "hotfiles.ws",
  500. "esnips.com",
  501. "tuxfile.com",
  502. "file2upload.net",
  503. "filebling.com",
  504. "turboshare.com",
  505. "rarhost.com",
  506. "isharehd.com",
  507. "i741.com",
  508. "dataup.de",
  509. "fofly.com",
  510. "shareonall.com",
  511. "sexuploader.com",
  512. "megaupload.com|megavideo.com|megaporn.com|megarotic.com",
  513. "uploadhyper.com",
  514. "filespawn.com",
  515. "caizzii.com",
  516. "volnyweb.cz",
  517. "usershare.net",
  518. "filescash.net",
  519. "metahyper.com",
  520. "combozip.com",
  521. "x7.to",
  522. "uploadbox.com",
  523. "enterupload.com|flyupload.com",
  524. "filepoint.de",
  525. "mystream.to",
  526. "x-fs.com",
  527. "shareator.com",
  528. "srapid.eu",
  529. "sosame.cz",
  530. "filesdump.com",
  531. "2-klicks.de",
  532. "uploking.com",
  533. "silofiles.com",
  534. "upfile.in",
  535. "filehook.com",
  536. "uploadking.com",
  537. "uploadhere.com",
  538. "kewlshare.com",
  539. "rapidable.com",
  540. "uploadwaste.com",
  541. "filemup.com",
  542. "filesonic.com|sharingmatrix.com",
  543. "fileserve.com",
  544. "wupload.com",
  545. "skipfile.com",
  546. "smartuploader.com",
  547. "dualshare.com",
  548. "storeandserve.com",
  549. "mountfile.com",
  550. "transitfiles.com",
  551. "uploadstation.com",
  552. "filejungle.com",
  553. "shareshared.com",
  554. "quickyshare.com",
  555. "save.am",
  556. "petandrive.com",
  557. "file2box.com",
  558. "flyshare.cz",
  559. "yabadaba.ru",
  560. "cloudcache.cc",
  561. "yourfilehost.com",
  562. "jakfile.com",
  563. "kickload.com",
  564. "pyramidfiles.com",
  565. "refile.net",
  566. "zshare.net",
  567. "ddlani.me|ddlanime.com",
  568. "ftp2share.com",
  569. "fooget.com",
  570. "rapidhide.com",
  571. "gotupload.com",
  572. "mooload.com",
  573. "zupload.com",
  574. "mytempdir.com",
  575. "onionshare.com",
  576. "stahnu.to",
  577. "oron.com",
  578. "badongo.com",
  579. "filereactor.com",
  580. "filegaze.com",
  581. "4bytez.com",
  582. "1hostclick.com",
  583. "anonstream.com",
  584. "batshare.com",
  585. "bitroad.net",
  586. "brontofile.com",
  587. "cloudnxt.net",
  588. "cloudnator.com|shragle.com",
  589. "filesfrog.net",
  590. "coolshare.cz",
  591. "dotavi.com",
  592. "ezyfile.net",
  593. "file-bit.net",
  594. "filecosy.com",
  595. "fileduct.com|fileduct.net",
  596. "filefat.com",
  597. "filelaser.com",
  598. "filemashine.com",
  599. "fileserver.cc",
  600. "filetechnology.com",
  601. "fireuploads.net",
  602. "gigfiles.net",
  603. "holderfile.com",
  604. "ihostia.com",
  605. "k2files.com",
  606. "mojofile.com",
  607. "ovfile.com",
  608. "qshare.com",
  609. "shafiles.me",
  610. "sharefilehost.com",
  611. "shareupload.com",
  612. "stahuj.to",
  613. "ugotfile.com",
  614. "uploadboost.com",
  615. "fileom.com",
  616. "vidhog.com",
  617. "xfileshare.eu",
  618. "bzlink.us",
  619. "bulletupload.com",
  620. // "wizzupload.com",
  621. "bloggerarticles.com",
  622. "mojedata.sk",
  623. "sharpfile.com",
  624. "upgrand.com",
  625. "nasdilej.cz",
  626. "mediatack.cz",
  627. "share-it.to",
  628. "primeupload.com",
  629. "filebeer.info",
  630. "baberepublic",
  631. "xtu.me",
  632. "sharebase.de",
  633. "luckyshare.net",
  634. "filerobo.com",
  635. "filevelocity.com",
  636. "filezpro.com",
  637. "file4sharing.com",
  638. "cing.be",
  639. "ufile.eu",
  640. "pigsonic.com",
  641. "fileupped.com",
  642. "sharerun.com",
  643. "filesaur.com",
  644. "rapidslnare.com",
  645. "bestsharing.com",
  646. "savefiles.net",
  647. "file2share.biz",
  648. "filecache.de",
  649. "monsteruploads.eu",
  650. "b9bb.com",
  651. "aiotool.net",
  652. "jamber.info",
  653. "megaftp.com",
  654. "desiupload.net",
  655. "file27.com",
  656. "yastorage.com",
  657. "filehost.ws",
  658. "copyload.com",
  659. "venusfile.com",
  660. "aieshare.com",
  661. "terafile.co",
  662. "terafile.com",
  663. "fileza.net",
  664. "filerose.com",
  665. "squillion.com",
  666. "fileprohost.com",
  667. "bitbonus.com",
  668. "warserver.cz",
  669. "uload.to",
  670. "sharedbit.net",
  671. "megaload.it",
  672. "filewinds.com",
  673. "uploadcore.com",
  674. "syfiles.com",
  675. "eyesfile.com",
  676. "hotfile.com",
  677. "superupl.com",
  678. "oteupload.com",
  679. "henchfile.com",
  680. "filegag.com",
  681. "HenchFile.com",
  682. "filedefend.com",
  683. "share-rapid.com|rapids.cz|share-credit.cz|share-central.cz|share-ms.cz|share-net.cz|srapid.cz|share-rapid.cz",
  684. "megabitshare.com",
  685. "cloudzer.com",
  686. "asfile.com",
  687. "cloudzer.net",
  688. "clz.to",
  689. "extabit.com",
  690. "247upload.com",
  691. "2download.de",
  692. "4fastfile.com",
  693. "asixfiles.com",
  694. "berofile.com",
  695. "bigupload.com",
  696. "cepzo.com",
  697. "clouds.to",
  698. "cobrashare.sk",
  699. "coraldrive.net",
  700. "cyberlocker.ch",
  701. "czshare.com",
  702. "darkport.org",
  703. "dark-uploads.com",
  704. "davvas.com",
  705. "enigmashare.com",
  706. "erofly.cz",
  707. "fastsonic.net",
  708. "filebox.com",
  709. "filecity.net",
  710. "filedap.com",
  711. "filedino.com",
  712. "filedownloads.org",
  713. "filefolks.com",
  714. "fileking.co",
  715. "filemates.com",
  716. "files.to",
  717. "files2k.eu",
  718. "filesector.cc",
  719. "bitshare.com",
  720. "filesega.com",
  721. "filesend.net",
  722. "filestay.com",
  723. "filestrum.com",
  724. "fileuplo.de",
  725. "fileupup.com",
  726. "forunesia.com",
  727. "freeuploads.fr",
  728. "uploa.dk",
  729. "getthebit.com",
  730. "getzilla.net",
  731. "goldfile.eu",
  732. "good.com",
  733. "grupload.com",
  734. "hellfile.com",
  735. "hipfile.com",
  736. "hitfile.com",
  737. "hulkfile.eu|duckfile.net",
  738. "i-filez.com",
  739. "ifile.ws",
  740. "kupload.org",
  741. "packupload.com",
  742. "lemuploads.com",
  743. "limelinx.com",
  744. "maxshare.pl",
  745. "megarelease.org",
  746. "megashare.com",
  747. "minus.com",
  748. "mlfat4arab.com",
  749. "multishare.cz",
  750. "nirafile.com",
  751. "ok2upload.com",
  752. "peejeshare.com",
  753. "premiuns.org",
  754. "przeklej.net",
  755. "qkup.net",
  756. "rapidupload.sk",
  757. "rockdizfile.com",
  758. "rocketfile.net",
  759. "share-now.net",
  760. "share76.com",
  761. "sharebees.com",
  762. "sharefiles.co",
  763. "slingfile.com",
  764. "sms4file.com",
  765. "space4file.com",
  766. "tigershare.net",
  767. "toucansharing.com",
  768. "ubuntuone.com",
  769. "unextfiles.com",
  770. "upaj.pl",
  771. "upfile.biz",
  772. "uploadbin.net",
  773. "uploadic.com",
  774. "uploadinc.com",
  775. "uploading4u.eu",
  776. "uploadjet.net",
  777. "uploadorb.com",
  778. "upthe.net",
  779. "uptorch.com",
  780. "vidbox.yt",
  781. "videozer.com",
  782. "vreer.com",
  783. "wallobit.com",
  784. "zooupload.com",
  785. "privatefiles.com",
  786. "xerver.co",
  787. "BillionUploads.com",
  788. "rapidshare.com",
  789. "rapidshare.ru",
  790. "4savefile.com",
  791. "bayfiles.com",
  792. "bayfiles.net",
  793. "dodane.pl",
  794. "dotsemper.com",
  795. "egofiles.com",
  796. "epicshare.net",
  797. "fiberupload.net",
  798. "filemonkey.in",
  799. "filemonster.net",
  800. "filepom.com",
  801. "filesbb.com",
  802. "fileshareup.com",
  803. "filevice.com",
  804. "gigaup.fr",
  805. "inafile.com",
  806. "isavelink.com",
  807. "loombo.com",
  808. "megafiles.se",
  809. "migupload.com",
  810. "mydisc.net",
  811. "nitrobits.com",
  812. "potload.com",
  813. "redload.net",
  814. "shareprofi.com",
  815. "sharesuper.info",
  816. "sinhro.net",
  817. "speedfile.cz",
  818. "speedshare.org",
  819. "storage.novoro.net",
  820. "swankshare.com",
  821. "swatupload.com",
  822. "upafile.com",
  823. "uploadmachine.com",
  824. "uploadsat.com",
  825. "upshared.com",
  826. "usefile.com",
  827. "yourfiles.to",
  828. "zomgupload.com",
  829. "ultramegabit.com",
  830. "uploadto.us",
  831.  
  832. ];
  833. ///////////////////////////////////////////////////////////////////////////////////////
  834. var firstRun = GM_getValue("First_run", true);
  835.  
  836. var chromeBrowser = /chrom(e|ium)/.test(navigator.userAgent.toLowerCase());
  837. //////////////////////////////////////////////////////////////////////////////////////
  838. try
  839. {
  840. var thisVersion = GM_info.script.version; //not supported in Scriptish and others
  841. var last_known_version = GM_getValue("last_known_version", "");
  842. if (!last_known_version)
  843. {
  844. last_known_version = thisVersion;
  845. GM_setValue("last_known_version", last_known_version);
  846. }
  847. //var newVersion = !(thisVersion == last_known_version);
  848. var newVersion = !(a.replace(/^(\d+\.\d+\.\d+).*/,'$1') == b.replace(/^(\d+\.\d+\.\d+).*/,'$1')); //true only if one of the first three numbers differs
  849. GM_setValue("last_known_version", thisVersion);
  850. }
  851. catch (err)
  852. {
  853. var newVersion = false;
  854. }
  855.  
  856. var now = (new Date()).getTime();
  857. var last_custom_rules_nag = GM_getValue('last_custom_rules_nag', 0);
  858. if (!last_custom_rules_nag)
  859. {
  860. last_custom_rules_nag = now;
  861. GM_setValue('last_custom_rules_nag', ''+now);
  862. }
  863.  
  864.  
  865. allHostNames.sort();
  866. allContainerNames.sort();
  867. allObsoleteNames.sort();
  868.  
  869. var RAND_STRING = "8QyvpOSsRG3QWq";
  870. var DEBUG_MODE = false;
  871.  
  872. var TOOLTIP_MAXWIDTH = 600; //in pixels
  873. var TOOLTIP_THUMBWIDTH = 200;
  874. var containers_processed = false;
  875.  
  876. //settings for keyboard functions start
  877. var CHECK_ALL_LINKS_KEY = "A";
  878. var CONFIGURATION_KEY = "C";
  879. var copy_to_dead_key = "D";
  880. var toggle_autocheck_key = "W";
  881. var toggle_Enable_Anonymizer_key = "Z";
  882. var first_key_keycode = '17'; // 18=ALT 16=Shift 17=Ctrl 32=SPACE_BAR 9=TAB
  883. var first_key_keycodename = 'CTRL';
  884. var second_key_keycode = '18';
  885. var second_key_keycodename = 'ALT';
  886. var CHECK_ALL_LINKS_KEYCODE = CHECK_ALL_LINKS_KEY.charCodeAt(0);
  887. var CONFIGURATION_KEYCODE = CONFIGURATION_KEY.charCodeAt(0);
  888. var copy_to_dead_keycode = copy_to_dead_key.charCodeAt(0);
  889. var toggle_autocheck_keycode = toggle_autocheck_key.charCodeAt(0);
  890. var toggle_Enable_Anonymizer_keycode = toggle_Enable_Anonymizer_key.charCodeAt(0);
  891. //settings for keyboard functions end
  892.  
  893. //global settings start
  894. var Show_black_background_in_DL_links, Show_line_through_in_dead_links, Color_DL_links;
  895. var Live_links_color, Dead_links_color, Temp_unavailable_links_color, Premium_links_color, Ref_anonymize_service;
  896. var Do_not_linkify_DL_links, Keyboard_functions, Autocheck, Enable_Anonymizer;
  897. var Show_progress_stats, Display_tooltip_info, Icon_set;
  898. var Progress_box_pos_bottom, Progress_box_pos_right, Progress_box_opacity, Progress_box_background_color, Progress_box_item_color;
  899. var Progress_box_refresh_rate;
  900. var Obsolete_file_hosts;
  901. var Custom_rules, Custom_rules_text;
  902.  
  903. var messageBox = document.createElement('b'); // top-left message box
  904.  
  905. var cLinksTotal = 0;
  906. var cLinksDead = 0;
  907. var cLinksAlive = 0;
  908. var cLinksUnava = 0;
  909. var cLinksprem = 0;
  910. var cLinksProcessed = 0;
  911.  
  912. var intervalId; //for updateProgress()
  913.  
  914. //icon resources
  915. var PAW_ICON_GREEN = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAANCAYAAABy6+R8AAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYwP2SycQWHTA4vcAAPK7b8HUKAgDgGiD4c93/+8//UegJQCAZkmScQAAXkQkLlTKsz/HCAAARKCBK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t7UyfOkNNjKKTU8Tl8tghq+sEGqvUZwjZA5EAiShPIetLXxhASSIY3An1Gr4xkabq70iar9OkOeoWCSqVMAM8hzMiObnIUnQ0RFyR0DkgNylzhh7cB+bmsLrdQ7n5gj1OlG5TPxoHro7kUsC4mdQUB5u0NdziW/r5q2M/PkLfG2NsLwMkRHevyVkWQib26t+FJYMIIOUvt5XdmXkunXEke/sQchRCNDdRfAQ8vXND97af1qCxqkRLUj9XKFq/cUUMMmRQHKFZquh7OBhCRr/aATQ/I97foxKZ9z7A9QA5voyr3dtAAAAAElFTkSuQmCC';
  922. var RSLC_ICON_YELLOW = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAANCAYAAABy6+R8AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH2AQJDBgxYO68rwAAAZNJREFUeNptkr9LW1EcxT/3GhOTKIG8QTpm8B8IIoJTFkFwsXVyUaxFJHYoFzJYUVFHn4sKtoidCoKtIigWOtQOhRKowaFzJwcF0VeJ+fFe7nUwP57R7/S9nO+595z7PQJfGUgAsWqPaUBOC/yrHQI+QjKTXc7GQq4EhP+uKzdUcbtnelvhDzXQQHL2bCkbxhOA5GmZ24LUC73zPWE4lQYSmexynaCmjh5Nq9FdANER1uL9j7nfeUhIIFaVJNXEPrguKvPzgfD2G0iBGt8DkPG4CGiIyapZAWBvDUEoBOfnqPQxaANxC3v7Ze1hoQFpmsTbGwMQicLNNeTz2HaKYuO/4DnTauwLeC6i8wW4ZdSbA9rw/GtB6kaPmjyESATKZVZWUxAMQqnI9MTXOqdGcvRFoSw8o+0Pg1DxsD+PcFcJYH8aphSNsr71CkAH/17danAEQAGSa98zv7x4W9AIpGkRzap18cKU3vUv9lmQq6N5SH7cSZ8Uuqx205SI1rPL/6/HN1MW5GiKC84z2at6dixf9u4B/PqUtJuX27QAAAAASUVORK5CYII=';
  923. var RSLC_ICON_PINK = 'data:image/png;base64,iVBORw0KGg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SvNUyWna6YLTk2fyz4ydlZ19fi753GDborZ752PO32oPb++6EHTh0kX/i+c7vDvOXPK4dPKy2+UTV7hXmq86X23qdOo8/pPTT8e7nLuarrlca7nuer21e2b36RueN87d9L158Rb/1tWeOT3dvfN6b/fF9/XfFt1+cif9zsu72Xcn7q28T7xf9EDtQdlD3YfVP1v+3Njv3H9qwHeg89HcR/cGhYPP/pH1jw9DBY+Zj8uGDYbrnjg+OTniP3L96fynQ89kzyaeF/6i/suuFxYvfvjV69fO0ZjRoZfyl5O/bXyl/erA6xmv28bCxh6+yXgzMV70VvvtwXfcdx3vo98PT+R8IH8o/2j5sfVT0Kf7kxmTk/8EA5jz/GMzLdsAAAAgY0hSTQAAeiUAAICDAAD5/wAAgOkAAHUwAADqYAAAOpgAABdvkl/FRgAAAaJJREFUeNpkkk1rE1EUhp9zJ21NpxJocxctiAQXXYkQQQsG/EJo0a0LyW8ws9KFP0E3HQv6D9x1KbixdTGIlrZuzUJLCM2iEykRJ23S5B4XsZOpPXAW957zXM773iNkQquUgAKAAlpISx3vDXunB8kA5Zbb3hr6l032HtDc7/rQzlWWJt6yk0Japfxr4udWN3dRAMP5UI5bzi5cu5F/ya7RKqWW204BG66c6bart0ePX1iQRjP6krygZIDCv5FMce0+cELx9WMAimuPUCPY8B6AmfYXcy5PwWhGW/vpR2AKdB8bPkScIswRBxupB84Dk3EIgDh4j+CjHIImxLV18sM/Z3rOibard1A5wcg8Kn1s+IAjb2bsiAPjlNNvwYbLINOgfQ5q6yCTqBzjv7qbMgoYl6PTTerSY+Di4ANqBrSDz0z1D2nXPtHr+STPNgFcN6mLm6EjAEfPKTea0Y74V5yHmEm8/6d23aRu7M1KOf4afTMAjWa0e6lUua7JDzNEtceATGoWWHx3a7wu359EzF+tjHfPjYS6kQed2UD3AESEvwMAaQGsQMrwcN0AAAAASUVORK5CYII=';
  924.  
  925. var NEW_ICON_GREEN = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf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pngTnMbDeWjIeHnsvbz98YXqxguumuazdDOs0HjAETRKNjuFyzTE9PAOO//Xm27lvN4b1c8htkAXC2jrKHN5gVSRcRW0SCIpIj/f2ZAkhTkykiOYu+SLa8e6qkeRNXALh5nEc/phARnaSJSSUnO5G+B8tnIkr6rjMTSqfMZQXZ9vE1xGKJpPe4DDjXAYkEjAwmzwwDLIv0NZlE1MYAjsQoAOL8C5rY2AxPlIjwP/wcACKn3tWfrwJ4AAAAAElFTkSuQmCC';
  928. var NEW_ICON_PINK = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABUklEQVQ4jY3TsUuWURQG8F8WEvFNDREfIg5RURAOIeL0DhJBS0tDY9BQQ0Oj29kiIvoDhBpFQRTUD1GKi0sRtEs0SEQ0RBQIRcVXw3eF6+vrWwcunPvc53nuPffcS0uEmA0x38Y5cohwGjOYxBBe4VGI3j8NQlzHYhaW0cfNEAslWCfBw4yvYhkv8hjCgxD7yMdquw/jbJ4+xq2cz+AKdrJRv9EAv/EDx3Ft75QhtrHdcFpHy0mS/lSqcVzAFM7he6XaTNLXJoOmS+ziOc4XcB893A3xodUgm5zAHdzHSLH0DhdD/GwsoSjlV5Je5nK+YQUTOInXSXq7x6134RQuo4unGf6Me7iKMxgrNfUuXMJazr8U+DA6Of/UZrCF9xjFM3zELpZwOptulIKmLlQGNXdqS7u4EWK9BA9cYpJ2KtWcwaMazcInuB3iTZ3fGv/znf8CBMxX4hrPUbUAAAAASUVORK5CYII=';
  929.  
  930. //global settings end
  931. if (window.opera && !window.console)
  932. {
  933. window.console = {};
  934.  
  935. function fn()
  936. {
  937. opera.postError(arguments);
  938. };
  939. ['log', 'debug', 'info', 'warn', 'error', 'assert', 'dir', 'dirxml', 'group', 'groupEnd', 'time', 'timeEnd', 'count', 'trace', 'profile', 'profileEnd'].forEach(function (name)
  940. {
  941. window.console[name] = fn;
  942. });
  943. }
  944.  
  945. //displays colored text in message box
  946. function sendMessage(text, color)
  947. {
  948. var msgDiv = document.createElement('div');
  949. msgDiv.style.color = color;
  950. msgDiv.innerHTML = text;
  951. messageBox.appendChild(msgDiv);
  952. setTimeout(function(){messageBox.removeChild(msgDiv)}, 3000);
  953. }
  954.  
  955. function linkify(totalourls)
  956. { // code from http://userscripts.org/scripts/review/2254 Linkify ting
  957. var ikkeTilladteTags;
  958. var allLinksRegex = "(?:http:\/\/.+?\\?)?(?:https?:\/\/)?"
  959. + "[0-9A-Za-z]+(?:[\\.-][0-9A-Za-z]+)*\\.[A-Za-z]+/" //instead of totalourls
  960. + "[\\w\\–\\-\\.+$!*\\/()\\[\\]\',~%?:@#&=\\\\\\—;…×Ã\\_\\u0080-\\u03FF’‘" + (Allow_spaces_in_DL_links ? "\\u0020" : "") + "]*";
  961. allLinksRegex = new RegExp(allLinksRegex, "g");
  962. var regexy = "^(?:http:\/\/.+?\\?)?(?:https?:\/\/)?(?:www\\.)?(?:" + totalourls + ")";
  963.  
  964. if (Do_not_linkify_DL_links)
  965. ikkeTilladteTags = ['a', 'head', 'script', 'style', 'title', 'option', 'iframe', 'textarea', 'span']; //tags, hvor det der stAΞ’Β¥r inden i ikke skal vAΞ’Β¦re links
  966. else
  967. ikkeTilladteTags = ['a', 'head', 'script', 'style', 'title', 'option', 'iframe', 'textarea']; //tags, hvor det der stAΞ’Β¥r inden i ikke skal vAΞ’Β¦re links
  968.  
  969. var regex = new RegExp(regexy);
  970. var textNode, muligtLink;
  971.  
  972. var path = "//text()[not(parent::" + ikkeTilladteTags.join(" or parent::") + ") and contains(.,'/')]";
  973. var textNodes = document.evaluate(path, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  974.  
  975. var i = textNodes.snapshotLength;
  976. while (i--)
  977. {
  978. textNode = textNodes.snapshotItem(i);
  979.  
  980. muligtLink = textNode.nodeValue; //all links on page
  981.  
  982. var myArray = null;
  983. var span = null;
  984. var lastLastIndex = 0;
  985. allLinksRegex.lastIndex = 0;
  986. if (/^https?:\/\/~[\w\s\~]*\//.test(muligtLink))
  987. {
  988. if (textNode.parentNode.className == "adead_link") continue;
  989. var censoredLink = muligtLink;
  990. var span = document.createElement('span');
  991. span.className = "adead_link";
  992. $(span).attr('warlc_error', "Cause of error: <b>Censored link.</b>");
  993. $(span).html(censoredLink);
  994. span.addEventListener("mouseover", displayTooltipError, false);
  995. cLinksTotal++; cLinksProcessed++; cLinksDead++;
  996. textNode.parentNode.replaceChild(span, textNode);
  997. continue;
  998. alert(censoredLink);
  999. }
  1000. while (myArray = allLinksRegex.exec(muligtLink)) //find all links
  1001. {
  1002. if (!regex.test(myArray[0])) //this link is not recognized
  1003. {
  1004.  
  1005. continue;
  1006. }
  1007. if (!span)
  1008. span = document.createElement('span');
  1009.  
  1010. var link = myArray[0];
  1011. span.appendChild(document.createTextNode(muligtLink.substring(lastLastIndex, myArray.index))); //inds?t det der kommer for dette hit
  1012.  
  1013. var $a = $("<a>" + link + "</a>")
  1014. if (!link.match(/https?:\/\//))
  1015. {
  1016. link = 'http://' + link;
  1017. }
  1018.  
  1019. $a.attr("href", link.replace(/\[\/hide:\w+\]/,""))
  1020. .addClass("processing_link")
  1021. .appendTo(span);
  1022. lastLastIndex = allLinksRegex.lastIndex;
  1023. }
  1024. if (span)
  1025. {
  1026. span.appendChild(document.createTextNode(muligtLink.substring(lastLastIndex))); //ins?t det der kommer efter sidste hit
  1027. textNode.parentNode.replaceChild(span, textNode);
  1028. }
  1029. }
  1030. }
  1031.  
  1032. function add_WARLC_style()
  1033. {
  1034. if (!(document.getElementsByTagName('WARLC')[0]))
  1035. {
  1036. var meta_not_to_add_more_style = document.createElement("WARLC");
  1037. meta_not_to_add_more_style.setAttribute('content', 'war_links_checker');
  1038. meta_not_to_add_more_style.setAttribute('name', 'description');
  1039. document.getElementsByTagName('head')[0].appendChild(meta_not_to_add_more_style);
  1040. alive_link_png = "";
  1041. adead_link_png = "";
  1042. unava_link_png = "";
  1043. prem_link_png = "";
  1044. switch(Icon_set)
  1045. {
  1046. //no icons
  1047. case 0: break;
  1048. // cat paws
  1049. case 1: alive_link_png = PAW_ICON_GREEN;
  1050. adead_link_png = PAW_ICON_RED;
  1051. unava_link_png = PAW_ICON_YELLOW;
  1052. prem_link_png = PAW_ICON_PINK;
  1053. break;
  1054. // classic RSLC look
  1055. case 2: alive_link_png = RSLC_ICON_GREEN;
  1056. adead_link_png = RSLC_ICON_RED;
  1057. unava_link_png = RSLC_ICON_YELLOW;
  1058. prem_link_png = RSLC_ICON_PINK;
  1059. break;
  1060. // New Icons
  1061. case 3: alive_link_png = NEW_ICON_GREEN;
  1062. adead_link_png = NEW_ICON_RED;
  1063. unava_link_png = NEW_ICON_YELLOW;
  1064. prem_link_png = NEW_ICON_PINK;
  1065. break;
  1066. // cat paws
  1067. default:alive_link_png = PAW_ICON_GREEN;
  1068. adead_link_png = PAW_ICON_RED;
  1069. unava_link_png = PAW_ICON_YELLOW;
  1070. prem_link_png = PAW_ICON_PINK;
  1071. break;
  1072. }
  1073. processing_link_gif = 'data:image/gif;base64,' + // or temporary anavailable
  1074. 'R0lGODlhCgAKAJEDAMzMzP9mZv8AAP///yH/C05FVFNDQVBFMi4wAwEAAAAh+QQFAAADACwAAAAACgAKAAACF5wncgaAGgJzJ647cWua4sOBFEd62VEAACH5BAUAAAMALAEAAAAIAAMAAAIKnBM2IoMDAFMQFAAh+QQFAAADACwAAAAABgAGAAACDJwHMBGofKIRItJYAAAh+QQFAAADACwAAAEAAwAIAAACChxgOBPBvpYQYxYAIfkEBQAAAwAsAAAEAAYABgAAAgoEhmPJHOGgEGwWACH5BAUAAAMALAEABwAIAAMAAAIKBIYjYhOhRHqpAAAh+QQFAAADACwEAAQABgAGAAACDJwncqi7EQYAA0p6CgAh+QQJAAADACwHAAEAAwAIAAACCpRmoxoxvQAYchQAOw%3D%3D';
  1075.  
  1076. var dead_color_css, live_color_css, unava_color_css, prem_color_css, black_background_css;
  1077.  
  1078. if (Color_DL_links)
  1079. {
  1080. dead_color_css = 'color:' + Dead_links_color + ' !important;';
  1081. live_color_css = 'color:' + Live_links_color + ' !important;';
  1082. unava_color_css = 'color:' + Temp_unavailable_links_color + ' !important;';
  1083. container_color_css = 'color:' + Container_links_color + ' !important;';
  1084. prem_color_css = 'color:' + Premium_links_color + ' !important;';
  1085. }
  1086. else
  1087. {
  1088. dead_color_css = live_color_css = unava_color_css = container_color_css = prem_color_css = '';
  1089. }
  1090.  
  1091. if (Show_black_background_in_DL_links)
  1092. {
  1093. black_background_css = 'background-color: black !important;';
  1094. }
  1095. else
  1096. {
  1097. black_background_css = '';
  1098. }
  1099.  
  1100. if (Show_line_through_in_dead_links)
  1101. {
  1102. line_through_css = 'text-decoration: line-through !important;';
  1103. }
  1104. else
  1105. {
  1106. line_through_css = '';
  1107. }
  1108.  
  1109. GM_addStyle(".alive_link {background:transparent url(" + alive_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;" + live_color_css + black_background_css + "}");
  1110. 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 + "}");
  1111. GM_addStyle(".unava_link {background:transparent url(" + unava_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;" + unava_color_css + black_background_css + "}");
  1112. GM_addStyle(".processing_link {background:transparent url(" + processing_link_gif + ") no-repeat scroll 100% 50%;padding-right:15px;" + container_color_css + black_background_css + "}");
  1113. GM_addStyle(".container_link {background:transparent url(" + processing_link_gif + ") no-repeat scroll 100% 50%;padding-right:15px;" + container_color_css + black_background_css + "}");
  1114. GM_addStyle(".container_list {font-size:90%; list-style-type:square; padding: 0px 5% 0px; margin: 0px}");
  1115. GM_addStyle(".prem_link {background:transparent url(" + prem_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;" + prem_color_css + black_background_css + "}");
  1116. }
  1117. }
  1118.  
  1119. var warlcTooltip = null;
  1120. var mouseoverLink = null; //link href with mouse cursor over it
  1121.  
  1122. var lastX = 0;
  1123. var lastY = 0;
  1124.  
  1125. $(document).ready(initTooltip);
  1126. //inits tooltip
  1127. function initTooltip()
  1128. { warlcTooltip = document.createElement("div");
  1129. 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;");
  1130. warlcTooltip.style.visibility = "hidden";
  1131. document.body.appendChild(warlcTooltip);
  1132. }
  1133.  
  1134. //"mousemove" event handler for all links
  1135. function moveTooltip(event)
  1136. {
  1137. if ((Math.abs(lastX - event.clientX) + Math.abs(lastY - event.clientY)) < 6)
  1138. { //no need to reflow if the cursor moved just a little
  1139. return;
  1140. }
  1141. else
  1142. {
  1143. lastX = event.clientX;
  1144. lastY = event.clientY;
  1145. }
  1146.  
  1147. posX = event.clientX + window.pageXOffset + 10;
  1148. posY = event.clientY + window.pageYOffset;
  1149. var ttHeight = warlcTooltip.offsetHeight;
  1150. var ttFreeSpace = window.innerHeight - event.clientY;
  1151. if (ttHeight > ttFreeSpace)
  1152. { //prevents tooltip from getting out of the window
  1153. posY -= (ttHeight - (ttFreeSpace)) + 10;
  1154. }
  1155. else
  1156. {
  1157. posY += 7;
  1158. }
  1159. warlcTooltip.style.top = posY + "px";
  1160. warlcTooltip.style.left = posX + "px";
  1161. }
  1162.  
  1163. //"mouseout" event handler for all links
  1164. function hideTooltip(){
  1165. warlcTooltip.style.visibility = "hidden";
  1166. mouseoverLink = null;
  1167. }
  1168.  
  1169.  
  1170. //"mouseover" event handler for dead links
  1171. //displays tooltip error message on dead links
  1172. function displayTooltipError()
  1173. {
  1174. mouseoverLink = this.href;
  1175. this.addEventListener("mouseout", hideTooltip);
  1176. this.addEventListener("mousemove", function(event) { moveTooltip(event); });
  1177. warlcTooltip.innerHTML = '<b>LOADING...</b>';
  1178. warlcTooltip.style.minWidth = 0;
  1179. warlcTooltip.style.visibility = "visible";
  1180. if (this.warlc_error) //an error message is already known and stored in warlc_error attribute
  1181. {
  1182. warlcTooltip.innerHTML = this.warlc_error;
  1183. }
  1184. else
  1185. {
  1186. loadErrorInfo(this);
  1187. }
  1188. function loadErrorInfo(link)
  1189. {
  1190. var href = link.href;
  1191. href = href.replace(/quickshare\.cz\/.+/, "quickshare.cz/chyba");
  1192. GM_xmlhttpRequest({
  1193. method: 'GET',
  1194. url: href.replace(Ref_anonymize_service, ""),
  1195. headers: {
  1196. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1197. 'Accept': 'text/xml',
  1198. 'Referer': ""
  1199. },
  1200. onload: function(result) {
  1201. var res = result.responseText;
  1202. //TODO: errorRegexs -
  1203. var errorRegexs = [ //generic error messages follow
  1204. /(empty directory)/i,
  1205. /(soubor nebyl nalezen)/i,
  1206. /((?:file|page|link|folder)(?:is|not|does|has been|was| ){1,}(?:found|available|blocked|exists?|deleted|removed))/i,
  1207. //server specific error messages follow
  1208. /msg error" style="cursor: default">(.+?)<\/div>/, //sendspace
  1209. /color:red;font\-weight:bold;border\-style:dashed;font-size:12px;border\-width:2px;><tr><td align=center>(.+?)<\/td>/, //fastshare
  1210. /(Takový soubor neexistuje. Je možné, že byl již smazán.)/, //quickshare
  1211. /file_info file_info_deleted">\s*<h1>(.+?)<\/h1>/, //filepost
  1212. /<br \/>\s*<p style="color:#000">(.+?)<\/p>\s*<\/center>/, //letitbit
  1213. /(?:error_div">|<\/h1><p>)<strong>(.+?)<\/strong>/, //share-rapid,quickshare
  1214. /class="red">(.+?)<(?:span|br)>/, //czshare, megashares
  1215. /class="wp640">\s*<h1 class="h1">(.+?)<\/h1>/, //uloz.to
  1216. /not-found">\s*<p>(.+?)<\/p>/, //bayfiles
  1217. /(Your file could not be found. Please check the download link.)/, //stahnu.to
  1218. /error_msg">\s*(<h3>.+?<\/h3><ul>(.+?)<\/ul>)/, //edisk
  1219. /id="obsah">\s*<h2>(.+?)<\/h2>/, //euroshare
  1220. /error">\s*(?:<[bp]>)?\s*(.+?)<\/[bp]>/, //filesmonster, shragle, gigapeta
  1221. ///center aC">\s*<h1>(.+?)<br \/>/, //uploaded.to
  1222. /icon_err">\s*<h1>(.+?)<\/h1>/, //filejungle
  1223. /Code: ER_NFF_\d+<\/h2>\s*(.+?)\s*<\/div>/, //netload
  1224. /(File has been removed due to Copyright Claim)/, //filerio
  1225. ];
  1226. var errorIdx = errorRegexs.length;
  1227. var error = "Cause of error: <b>unknown</b>";
  1228. var errorCandidate = "";
  1229. while(errorIdx--)
  1230. {
  1231. var errorCandidate = res.match(errorRegexs[errorIdx]);
  1232. if (errorCandidate != null)
  1233. {
  1234. error = "Cause of error: <b>" + errorCandidate[1].replace(/&nbsp;/g," ") + "</b>";
  1235. break;
  1236. }
  1237. }
  1238. //link attributes
  1239. link.warlc_error = error;
  1240. if (mouseoverLink == link.href) //mouse cursor is still over the link
  1241. {
  1242. warlcTooltip.innerHTML = error;
  1243. }
  1244. }
  1245. });
  1246. }
  1247. }
  1248.  
  1249. //"mouseover" event handler for alive links
  1250. //displays tooltip info (file size, file name,...) on alive links
  1251. function displayTooltipInfo()
  1252. {
  1253. mouseoverLink = this.href;
  1254. //exclude direct download filehostings
  1255. 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)/))
  1256. {
  1257. return;
  1258. }
  1259. this.addEventListener("mouseout", hideTooltip);
  1260. this.addEventListener("mousemove", function(event) { moveTooltip(event); });
  1261. warlcTooltip.innerHTML = '<b>LOADING...</b>';
  1262. warlcTooltip.style.minWidth = 0;
  1263. warlcTooltip.style.visibility = "visible";
  1264. if (this.warlc_tooltipcache) //file size is already known and stored in warlc_filename and warlc_filesize attributes
  1265. {
  1266. warlcTooltip.innerHTML = this.warlc_tooltipcache;
  1267. }
  1268. else
  1269. {
  1270. loadInfo(this);
  1271. }
  1272. function loadInfo(link)
  1273. {
  1274. var href = link.href;
  1275. GM_xmlhttpRequest({
  1276. method: 'GET',
  1277. url: href.replace(Ref_anonymize_service, ""),
  1278. headers: {
  1279. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1280. 'Accept': 'text/xml',
  1281. 'Referer': ""
  1282. },
  1283. onload: function(result) {
  1284. var res = result.responseText;
  1285. var nameRegexs = [ /Filename: <b class="f_arial f_14px">(.+?)<\/b>/, //oron
  1286. /(?:finfo|file[-_]?name)">\s*(.+?)<\/?(?:h1|a|div|span style|td)/, //hellshare, netload, badongo, 4fastfile
  1287. /fl" title="(.+?)">/, //edisk
  1288. /<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
  1289. /<h3>Stahujete soubor: <\/h3>\s*<div class="textbox">(.+?)<\/div>/, //webshare
  1290. /<h3><b><span style=color:black;>(.+?)<\/b><\/h3><br>/, //fastshare
  1291. /title="download (.+?)">/, //sendspace
  1292. /Stáhnout soubor: (.+?)<\/h1>/, //quickshare
  1293. /fz24">Download:\s*<strong>(.+?)<\/strong>/, //crocko
  1294. // /'file\-icon\d+ \w+'>(?:<\/span><span>)?(.+?)<\/span>/, //hitfile, turbobit
  1295. /d0FileName = "(.+?)";/, //letitbit
  1296. /file(?:_name|-info)" title="">\w+: <span>(.+?)<\/span>/, //vip-file, shareflare
  1297. /recent-comments"><h2>(.+) &nbsp;/, //xdisk
  1298. /fname" value="(.+?)">/, //syfiles, grupload,
  1299. /download\-header">\s*<h2>File:<\/h2>\s*<p title="(.+?)">/, //bayfiles
  1300. /description">\s*<p><b>Soubor: (.+?)<\/b>/, //bezvadata
  1301. /Complete name : (.+?)<br \/>/, //bezvadata
  1302. /itemprop="name">(.+?)<\/span>/, //bezvadata
  1303. ];
  1304. var nameIdx = nameRegexs.length;
  1305. // [sizeRegexs]
  1306. // / \ \?
  1307. // prefix (size) postfix
  1308. // / \
  1309. // val quant
  1310. var quantRegex = '(?:M|G|K)?i?(?:B)(?:[y|i]te?s?)?';
  1311. var valRegex = '\\d+(?:[\\., ]\\d+){0,2}'; // 111([., ]222)?([., ]333)?
  1312. var uniSizeRegex = valRegex + '(?:\\s*|&nbsp;)' + quantRegex;
  1313. var preSizeRegex = '(?::|\\(|>|>, | - )';
  1314. var postSizeRegex = '(?:\\))?';
  1315. var sizeRegexs = [ preSizeRegex + "\\s*(" + uniSizeRegex + ")\\s*" + postSizeRegex,
  1316. 'FileSize_master">(.+?)<\/strong>', //hellshare
  1317. ];
  1318. var sizeIdx = sizeRegexs.length;
  1319. //
  1320. //
  1321. var tooltip = "File Name: <b>";
  1322. var fileName = "unknown";
  1323. var nameCandidate = "";
  1324. while(nameIdx--)
  1325. {
  1326. var nameCandidate = res.match(nameRegexs[nameIdx]);
  1327. if (nameCandidate != null)
  1328. {
  1329. fileName = nameCandidate[1].replace(/&nbsp;/g," ");
  1330. break;
  1331. }
  1332. }
  1333. tooltip += fileName + "</b><br>File Size: <b>";
  1334. var fileSize = "unknown";
  1335. var sizeCandidate = "";
  1336. while(sizeIdx--)
  1337. {
  1338. sizeCandidate = res.match(new RegExp(sizeRegexs[sizeIdx], "i"));
  1339. if (sizeCandidate != null)
  1340. {
  1341. fileSize = sizeCandidate[1].replace(/&nbsp;/g," ");
  1342. if (/^\d+$/.test(fileSize) && fileSize >= 1024) //assume bytes
  1343. {
  1344. if(fileSize > (1<<30)) fileSize = Math.round(10 * fileSize / (1<<30)) / 10 + ' GB';
  1345. else if(fileSize > (1<<20)) fileSize = Math.round(fileSize / (1<<20)) + ' MB';
  1346. else fileSize = Math.round(fileSize / 1024) + ' KB';
  1347. }
  1348. break;
  1349. }
  1350. }
  1351. tooltip += fileSize + "</b>";
  1352. // PROTOTYPE
  1353. // video thumbnails
  1354. if (href.match('hellshare'))
  1355. {
  1356. var thumbs;
  1357. thumbs = res.match(/http:\/\/static\d+\.helldata\.com\/thumbs(?:\/\d+){1,2}\/\d{1,2}"/g);
  1358. if (thumbs)
  1359. {
  1360. tooltip += '<br>';
  1361. var j = Math.min(thumbs.length, 9);
  1362. for (var i = 0; i < j; i++)
  1363. {
  1364. tooltip += '<img src="' + thumbs[i].replace('"',"") + '" width="' + TOOLTIP_THUMBWIDTH + 'px">';
  1365. }
  1366. warlcTooltip.style.minWidth = TOOLTIP_MAXWIDTH;
  1367. }
  1368. }
  1369. if (href.match('czshare'))
  1370. {
  1371. var thumbs;
  1372. thumbs = res.match(/src="http:\/\/www(\d+)\.czshare\.com\/images_velke\/\d+\.(\d+)\.jpeg/);
  1373. if (thumbs)
  1374. {
  1375. var thumbsServer = thumbs[1];
  1376. var thumbsId = thumbs[2];
  1377. tooltip += '<br>';
  1378. for (var i = 1; i < 9; i++)
  1379. {
  1380. tooltip += '<img src="http://www' + thumbsServer + '.czshare.com/images_velke/' + i + '.' + thumbsId + '.jpeg" width="' + TOOLTIP_THUMBWIDTH + 'px">';
  1381. }
  1382. warlcTooltip.style.minWidth = TOOLTIP_MAXWIDTH;
  1383. }
  1384. }
  1385. if (href.match('bezvadata'))
  1386. {
  1387. var thumbs;
  1388. thumbs = res.match(/http:\/\/nahledy\.bezvadata\.cz\/nahledy\/\d+\/\d+\/\d+_\d+_\d+x\d+_\w.jpg/g);
  1389. if (thumbs)
  1390. {
  1391. tooltip += '<br>';
  1392. var j = Math.min(thumbs.length, 9);
  1393. for (var i = 0; i < j; i++)
  1394. {
  1395. tooltip += '<img src="' + thumbs[i] + '" width="' + TOOLTIP_THUMBWIDTH + 'px">';
  1396. }
  1397. warlcTooltip.style.minWidth = TOOLTIP_MAXWIDTH;
  1398. }
  1399. }
  1400. link.warlc_tooltipcache = tooltip;
  1401. if (mouseoverLink == link.href) //mouse cursor is still over the link
  1402. {
  1403. warlcTooltip.innerHTML = tooltip;
  1404. }
  1405. }
  1406. });
  1407. }
  1408. }
  1409.  
  1410. function setVariables()
  1411. {
  1412. if (firstRun)
  1413. {
  1414. GM_log('First run, applying default settings...');
  1415. GM_setValue("Icon_set",1);
  1416. GM_setValue("Display_tooltip_info",true);
  1417. GM_setValue("Show_black_background_in_DL_links",false);
  1418. GM_setValue("Show_line_through_in_dead_links",false);
  1419. GM_setValue("Display_full_links_in_link_containers",false);
  1420. GM_setValue("Allow_spaces_in_DL_links",false);
  1421. GM_setValue("Autocheck",true);
  1422. GM_setValue("Enable_Anonymizer",false);
  1423. GM_setValue("Do_not_linkify_DL_links",false);
  1424. GM_setValue("Show_progress_stats",true);
  1425. GM_setValue("Keyboard_functions",true);
  1426. GM_setValue("Obsolete_file_hosts",false);
  1427. GM_setValue("Color_DL_links",true);
  1428. GM_setValue("Live_links_color","Green");
  1429. GM_setValue("Dead_links_color","#FF3300");
  1430. GM_setValue("Temp_unavailable_links_color","#F7EF09");
  1431. GM_setValue("Container_links_color","DarkKhaki");
  1432. GM_setValue("Premium_links_color","DeepPink");
  1433. GM_setValue("Ref_anonymize_service","http://hiderefer.com/?");
  1434. GM_setValue("Custom_rules",false);
  1435. GM_setValue("Custom_rules_text","");
  1436. GM_setValue("First_run", false);
  1437. }
  1438. //hidden settings
  1439. GM_setValue("Progress_box_pos_bottom", Progress_box_pos_bottom = GM_getValue("Progress_box_pos_bottom", 20));
  1440. GM_setValue("Progress_box_pos_right", Progress_box_pos_right = GM_getValue("Progress_box_pos_right", 10));
  1441. GM_setValue("Progress_box_opacity", Progress_box_opacity = GM_getValue("Progress_box_opacity", 85));
  1442. GM_setValue("Progress_box_background_color", Progress_box_background_color = GM_getValue("Progress_box_background_color", 'DimGray'));
  1443. GM_setValue("Progress_box_item_color", Progress_box_item_color = GM_getValue("Progress_box_item_color", 'DimGray'));
  1444. GM_setValue("Progress_box_refresh_rate", Progress_box_refresh_rate = GM_getValue("Progress_box_refresh_rate", 2000));
  1445. GM_setValue("Debug_mode", DEBUG_MODE = GM_getValue("Debug_mode", false));
  1446. //hidden settings end
  1447.  
  1448. Icon_set = GM_getValue("Icon_set", 1); //0 - no icons, 1 - cat paws, 2 - old RSLC style, 3 - New Icons,
  1449. Display_tooltip_info = GM_getValue("Display_tooltip_info", true);
  1450. Show_black_background_in_DL_links = GM_getValue("Show_black_background_in_DL_links", false);
  1451. Show_line_through_in_dead_links = GM_getValue("Show_line_through_in_dead_links", false);
  1452. Display_full_links_in_link_containers = GM_getValue("Display_full_links_in_link_containers", false);
  1453. Allow_spaces_in_DL_links = GM_getValue("Allow_spaces_in_DL_links", false);
  1454. Autocheck = GM_getValue("Autocheck", true);
  1455. Enable_Anonymizer = GM_getValue("Enable_Anonymizer", false);
  1456. Do_not_linkify_DL_links = GM_getValue("Do_not_linkify_DL_links", false);
  1457. Show_progress_stats = GM_getValue("Show_progress_stats", true);
  1458. Keyboard_functions = GM_getValue("Keyboard_functions", true);
  1459. Obsolete_file_hosts = GM_getValue("Obsolete_file_hosts", false);
  1460. Color_DL_links = GM_getValue("Color_DL_links", true);
  1461. Live_links_color = GM_getValue("Live_links_color", "Green");
  1462. Dead_links_color = GM_getValue("Dead_links_color", "#FF3300");
  1463. Temp_unavailable_links_color = GM_getValue("Temp_unavailable_links_color", "#F7EF09");
  1464. Container_links_color = GM_getValue("Container_links_color", "DarkKhaki");
  1465. Premium_links_color = GM_getValue("Premium_links_color", "DeepPink");
  1466. Ref_anonymize_service = GM_getValue("Ref_anonymize_service", "http://hiderefer.com/?");
  1467. Custom_rules = GM_getValue("Custom_rules", false);
  1468. Custom_rules_text = GM_getValue("Custom_rules_text", false);
  1469. }
  1470.  
  1471.  
  1472. // Delinkifies the links
  1473. // params:
  1474. // links -> list of links or link components (note they should be sufficiently unique to identify the link on page,
  1475. // e.g. 'uloz.to/xs68skxl8')
  1476. function delinkifySnapshot(snapshot)
  1477. {
  1478. var n = snapshot.snapshotLength;
  1479.  
  1480. while (n--)
  1481. {
  1482. thisLink = snapshot.snapshotItem(n);
  1483.  
  1484. var spanElm = document.createElement("span");
  1485. spanElm.className = thisLink.className;
  1486. spanElm.innerHTML = thisLink.innerHTML;
  1487.  
  1488. if (Display_tooltip_info)
  1489. {
  1490. spanElm.href = thisLink.href;
  1491. switch (thisLink.className){
  1492. case "alive_link": spanElm.addEventListener("mouseover", displayTooltipInfo, false); break
  1493. case "adead_link": spanElm.addEventListener("mouseover", displayTooltipError, false); break;
  1494. case "unava_link": //reserved
  1495. default:
  1496. }
  1497. }
  1498. thisLink.parentNode.replaceChild(spanElm, thisLink);
  1499. }
  1500. }
  1501.  
  1502. function processContainers()
  1503. {
  1504. var redirectorTypes = { "HTTP_302": 0,
  1505. "INNER_LINK": 1,
  1506. "THELOO_KATT_IT": 2,
  1507. "CING_BE": 3,
  1508. "ADF_LY": 4};
  1509. var cMultiloadTotal = 0;
  1510. var cMultiloadProcessed = 0;
  1511.  
  1512. var cMirrorcreatorComTotal = 0;
  1513. var cMirrorcreatorComProcessed = 0;
  1514.  
  1515. var hostRestrictionRegex = "";
  1516. var multiloadComRestriction = "";
  1517. var multiloadComRestrictionRegex;
  1518.  
  1519. //
  1520. //HANDLING REDIRECTORS START
  1521. //
  1522.  
  1523. var redirectors = new Array();
  1524. initRedirectors();
  1525.  
  1526. var redirectorsCount = redirectors.length;
  1527.  
  1528. if (redirectorsCount > 0)
  1529. {
  1530. var allRedirectorsRegex = "";
  1531.  
  1532. //linkify redirector links
  1533. for(var redirIdx = 0; redirIdx < redirectorsCount; redirIdx++)
  1534. {
  1535. allRedirectorsRegex += redirectors[redirIdx].linkRegex + "|";
  1536. }
  1537. allRedirectorsRegex = allRedirectorsRegex.replace(/\|$/, "");
  1538. linkify(allRedirectorsRegex);
  1539. //
  1540. //process redirector links
  1541. for(var redirIdx = 0; redirIdx < redirectorsCount; redirIdx++)
  1542. {
  1543. var redirectorsSnapshot = document.evaluate(redirectors[redirIdx].xpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  1544. redirectors[redirIdx].cTotal = redirectorsSnapshot.snapshotLength;
  1545.  
  1546. cLinksTotal += redirectors[redirIdx].cTotal;
  1547. var linkIdx = redirectors[redirIdx].cTotal;
  1548.  
  1549. while(linkIdx--)
  1550. {
  1551. switch(redirectors[redirIdx].type)
  1552. {
  1553. case redirectorTypes.HTTP_302: processRedirectorLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1554. case redirectorTypes.INNER_LINK: processRedirectorLinkEx(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1555. case redirectorTypes.THELOO_KATT_IT: processThelooKattItLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1556. case redirectorTypes.CING_BE: processCingBeLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1557. case redirectorTypes.ADF_LY: processAdfLyLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1558. default:
  1559. }
  1560. }
  1561. }
  1562. //
  1563. }
  1564.  
  1565. //HTTP_302
  1566. function processRedirectorLink(link, redirectorId)
  1567. {
  1568. link.className = 'container_link';
  1569.  
  1570. GM_xmlhttpRequest({
  1571. method: 'HEAD',
  1572. url: link.href,
  1573. headers: {
  1574. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1575. 'Accept': 'text/xml',
  1576. 'Referer': ""
  1577. },
  1578. onload: function(result) {
  1579. if (result.finalUrl.replace("https", "http") == link.href) // service hasn't redirected anywhere
  1580. {
  1581. processRedirectorLink(link, redirectorId);
  1582. }
  1583. else
  1584. {
  1585. redirectors[redirectorId].cProcessed++;
  1586. link.href = result.finalUrl;
  1587. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  1588. checkLinks('container_link');
  1589. }
  1590. },
  1591. onerror: function(result) { //probably caused by unresponsive filehosting
  1592. redirectors[redirectorId].cProcessed++;
  1593. link.className = 'unava_link';
  1594. cLinksProcessed++;
  1595. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  1596. checkLinks('container_link');
  1597. }
  1598. });
  1599. }
  1600. //INNER_LINK
  1601. function processRedirectorLinkEx(link, redirectorId)
  1602. {
  1603. link.className = 'container_link';
  1604. GM_xmlhttpRequest({
  1605. method: 'GET',
  1606. url: link.href,
  1607. headers: {
  1608. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1609. 'Accept': 'text/xml',
  1610. 'Referer': ""
  1611. },
  1612. onload: function(result) {
  1613. link.href = result.responseText.match(redirectors[redirectorId].innerLinkRegex)[1];
  1614. redirectors[redirectorId].cProcessed++;
  1615. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  1616. checkLinks('container_link');
  1617. }
  1618. });
  1619. }
  1620. //theloo.katt.it (wrapped safelinking.net)
  1621. function processThelooKattItLink(link, redirectorId)
  1622. {
  1623. link.className = 'container_link';
  1624. GM_xmlhttpRequest({
  1625. method: 'GET',
  1626. url: link.href,
  1627. headers: {
  1628. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1629. 'Accept': 'text/xml',
  1630. 'Referer': ""
  1631. },
  1632. onload: function(result) {
  1633. link.href = result.responseText.match(redirectors[redirectorId].innerLinkRegex)[1];
  1634. redirectors[redirectorId].cProcessed++;
  1635. //the inner links are safelinking.net links, so lets proceed with it
  1636. if (GM_getValue("Check_safelinking_dot_net_links", false))
  1637. {
  1638. processRedirectorLink(link, 0);
  1639. }
  1640. }
  1641. });
  1642. }
  1643. //adf.ly (adf.ly/go innerLink, locking mechanism)
  1644. function processAdfLyLink(link, redirectorId)
  1645. {
  1646. link.className = 'container_link';
  1647. GM_xmlhttpRequest({
  1648. method: 'GET',
  1649. url: link.href,
  1650. headers: {
  1651. 'User-agent': 'Mozilla/4.0',
  1652. 'Accept': 'text/xml',
  1653. 'Referer': ""
  1654. },
  1655. onload: function(result) {
  1656. if (result.finalUrl.match('/locked/'))
  1657. {
  1658. var delay = result.responseText.match(/countdown">(\d+)</)[1];
  1659. // GM_log(result.finalUrl + 'is locked. Repeating the request in ' + delay + 's.');
  1660. // setTimeout(function(){processAdfLyLink(link, redirectorId);}, delay * 1000);
  1661. }
  1662. else
  1663. {
  1664. // GM_log('Processing... ' + link.href);
  1665. // GM_log('Found...' + result.responseText.match(/\/go\/(\w+\/\w+)/)[1]);
  1666. var directLink = 'http://adf.ly' + result.responseText.match(/(\/go\/\w+\/\w+)/)[1];
  1667. var logToken = result.responseText.match(/flashy_(\w+)/)[1];
  1668. var users = result.responseText.match(/user=\d+&user2=\d+/);
  1669. //confirm advert
  1670. GM_xmlhttpRequest(
  1671. {
  1672. method: 'POST',
  1673. url: 'http://adf.ly/l.php',
  1674. headers: {
  1675. 'User-agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20100101 Firefox/13.0',
  1676. 'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
  1677. 'Referer': link.href
  1678. },
  1679. data: users + '&lt=' + logToken,
  1680. onload: function(result) {
  1681. //retrieve final url from .../go/... link
  1682. GM_xmlhttpRequest({
  1683. method: 'GET',
  1684. url: directLink,
  1685. headers: {
  1686. 'User-agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20100101 Firefox/13.0',
  1687. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  1688. 'Referer': link.href
  1689. },
  1690. onload: function(result) {
  1691. link.href = result.finalUrl;
  1692. redirectors[redirectorId].cProcessed++;
  1693. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  1694. checkLinks('container_link');
  1695. }
  1696. });
  1697. }
  1698. });
  1699. }
  1700. }
  1701. });
  1702. function proceedOK()
  1703. {
  1704. }
  1705. }
  1706. //MULTILOAD.CZ START
  1707. if (GM_getValue("Check_multiload_dot_cz_links", false))
  1708. {
  1709. var mlRegex = 'multiload\\.cz\/stahnout\/\\d+\/';
  1710. var mlXpath = "//a[contains(@href,'http://www.multiload.cz/stahnout')]";
  1711.  
  1712. hostRestrictionRegex = 'Upload se nezdařil|limit exceeded|probíhá reupload|';
  1713.  
  1714. if (GM_getValue("Check_hellshare_dot_com_links", false))
  1715. hostRestrictionRegex += 'hellshare|';
  1716. if (GM_getValue("Check_share_dash_rapid_dot_com_links", false))
  1717. hostRestrictionRegex += 'share-rapid\\.com|';
  1718. if (GM_getValue("Check_quickshare_dot_cz_links", false))
  1719. hostRestrictionRegex += 'quickshare\\.cz|';
  1720. if (GM_getValue("Check_czshare_dot_com_links", false))
  1721. hostRestrictionRegex += 'czshare\\.com|';
  1722. if (GM_getValue("Check_uloz_dot_to_links", false))
  1723. hostRestrictionRegex += 'uloz\\.to|';
  1724. if (GM_getValue("Check_hellspy_dot_com_links", false))
  1725. hostRestrictionRegex += 'hellspy|';
  1726. if (GM_getValue("Check_multishare_dot_cz_links", false))
  1727. hostRestrictionRegex += 'multishare\\.cz|';
  1728.  
  1729. hostRestrictionRegex = hostRestrictionRegex.replace(/\|$/, "");
  1730.  
  1731. linkify(mlRegex);
  1732.  
  1733. var mlSnapshot = document.evaluate(mlXpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  1734. var mlCount = mlSnapshot.snapshotLength;
  1735.  
  1736. if (mlCount > 0)
  1737. {
  1738. cMultiloadTotal += mlCount;
  1739.  
  1740. mlIdx = mlCount - 1;
  1741. do
  1742. {
  1743. processMultiloadLink(mlSnapshot.snapshotItem(mlIdx));
  1744. }
  1745. while(mlIdx--)
  1746. }
  1747. }
  1748. //MULTILOAD.CZ END
  1749.  
  1750.  
  1751.  
  1752. function processMultiloadLink(mlLink)
  1753. {
  1754. GM_xmlhttpRequest({
  1755. method: 'GET',
  1756. url: mlLink.href,
  1757. headers: {
  1758. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1759. 'Accept': 'text/xml',
  1760. 'Referer': ""
  1761. },
  1762. onload: function(result) {
  1763. var res = result.responseText;
  1764.  
  1765. var innerBlockRegex = /<p class="manager-linky">(?:.|\s)+?<\/p>/g;
  1766. 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;
  1767. var innerLinkRegex = /((?:Upload se nezdařil.+|https?:\/\/(?:.|\s)+|Právě probíhá reupload, buďte trpěliví\.\.\.))</;
  1768. var mlRestrictionRegex = new RegExp(hostRestrictionRegex,"g"); //what links should be displayed
  1769.  
  1770. var blocks; // blocks of links
  1771. var blockIdx;
  1772.  
  1773. mlLink.className = '';
  1774.  
  1775. if (result.status == 503) //service temporarily unavailable, repeat request in one second
  1776. {
  1777. setTimeout(function(){ processMultiloadLink(mlLink); }, 1000);
  1778. return;
  1779. }
  1780.  
  1781. blocks = res.match(innerBlockRegex);
  1782.  
  1783. if (blocks == null) //no links found, cancel further processing
  1784. {
  1785. mlLink.parentNode.appendChild(document.createTextNode(' | Požadovaný soubor neexistuje.'));
  1786. cMultiloadProcessed++;
  1787. if (cMultiloadTotal <= cMultiloadProcessed)
  1788. {
  1789. startBulkCheck('container_link');
  1790. start('container_link');
  1791. }
  1792. return;
  1793. }
  1794.  
  1795. blockIdx = blocks.length;
  1796.  
  1797. if (Display_full_links_in_link_containers)
  1798. {
  1799. var ulElm = document.createElement('ul');
  1800. ulElm.className = 'container_list'; //CSS smaller font, padding, margin, square style
  1801.  
  1802. while(blockIdx--)
  1803. {
  1804. if (blocks[blockIdx].match(mlRestrictionRegex) == null)
  1805. {
  1806. continue;
  1807. }
  1808.  
  1809. var innerLinks = blocks[blockIdx].match(innerLinksRegex);
  1810.  
  1811. var linkIdx = innerLinks.length;
  1812. while (linkIdx--)
  1813. {
  1814. var innerLink = innerLinks[linkIdx].match(innerLinkRegex)[1];
  1815.  
  1816. var liElm = document.createElement('li');
  1817.  
  1818. if (innerLink.match(/Upload se nezdařil|limit exceeded|probíhá reupload/))
  1819. {
  1820. liElm.appendChild(document.createTextNode(innerLink));
  1821. }
  1822. else
  1823. {
  1824. var aElm = document.createElement('a');
  1825. aElm.innerHTML = innerLink;
  1826. aElm.href = innerLink;
  1827. aElm.className = 'container_link';
  1828.  
  1829. liElm.appendChild(aElm);
  1830. }
  1831.  
  1832. ulElm.appendChild(liElm);
  1833. cLinksTotal++;
  1834. }
  1835. }
  1836.  
  1837. mlLink.parentNode.appendChild(ulElm);
  1838. }
  1839. else //compact view
  1840. {
  1841. mlLink.parentNode.appendChild(document.createTextNode("|"));
  1842.  
  1843. while(blockIdx--)
  1844. {
  1845. if (blocks[blockIdx].match(mlRestrictionRegex) == null)
  1846. {
  1847. continue;
  1848. }
  1849.  
  1850. var innerLinks = blocks[blockIdx].match(innerLinksRegex);
  1851.  
  1852. var linkIdx = innerLinks.length;
  1853. while (linkIdx--)
  1854. {
  1855. var innerLink = innerLinks[linkIdx].match(innerLinkRegex)[1];
  1856.  
  1857. if (innerLink.match(/Upload se nezdařil|limit exceeded|probíhá reupload/))
  1858. {
  1859. mlLink.parentNode.appendChild(document.createTextNode("----"));
  1860. }
  1861. else
  1862. {
  1863. var aElm = document.createElement('a');
  1864.  
  1865. var hostName = innerLink.match(/quickshare|hellshare|uloz\.to|multishare|hellspy|share\-rapid|czshare/);
  1866.  
  1867. //abbreviate host name
  1868. switch(hostName + ""){
  1869.  
  1870. case 'quickshare': aElm.innerHTML = 'QS'; break;
  1871. case 'hellshare': aElm.innerHTML = 'HS'; break;
  1872. case 'uloz.to': aElm.innerHTML = 'UT'; break;
  1873. case 'multishare': aElm.innerHTML = 'MS'; break;
  1874. case 'hellspy': aElm.innerHTML = 'hs'; break;
  1875. case 'share-rapid': aElm.innerHTML = 'SR'; break;
  1876. case 'czshare': aElm.innerHTML = 'CS'; break;
  1877. default: aElm.innerHTML = 'xx';
  1878.  
  1879. }
  1880.  
  1881. aElm.href = innerLink;
  1882. aElm.className = 'container_link';
  1883.  
  1884. mlLink.parentNode.appendChild(aElm);
  1885. cLinksTotal++;
  1886. }
  1887. }
  1888.  
  1889. mlLink.parentNode.appendChild(document.createTextNode("|")); //blocks delimiter
  1890.  
  1891. }
  1892. }
  1893.  
  1894. cMultiloadProcessed++;
  1895. if (cMultiloadTotal == cMultiloadProcessed) //start check when all ml links have been processed
  1896. {
  1897. if (Do_not_linkify_DL_links)
  1898. {
  1899. delinkifySnapshot(mlSnapshot);
  1900. }
  1901. startBulkCheck('container_link');
  1902. start('container_link');
  1903. }
  1904. }
  1905. });
  1906. }
  1907.  
  1908.  
  1909. if (GM_getValue("Check_mirrorcreator_dot_com_links", false))
  1910. {
  1911. var mcRegex = 'mirrorcreator\\.com/files/(\\w+)';
  1912. var mcXpath = "//a[contains(@href,'mirrorcreator.com/files')]";
  1913. var mcShortHostNames =
  1914. '?? 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';
  1915. // 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
  1916. //?????? depositfiles sendspace load.to ul.to storage.to uploadbox x7.to fileserve ?????? duckload filehook filepost jumbofiles glumbouploads
  1917. // zshare ?????? 2shared uploading ugotfile extabit oron eyvx uploadstation putlocker
  1918. // megaupload badongo megashare gamefront ifile ?????? letitbit ?????? ?????? filejungle megashares
  1919. // easy-share ?????? netload zippyshare ?????? filesonic turbobit enterupload ?????? filekeen wupload crocko fileflyer
  1920.  
  1921. linkify(mcRegex);
  1922.  
  1923. var mcSnapshot = document.evaluate(mcXpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  1924. var mcCount = mcSnapshot.snapshotLength;
  1925.  
  1926. cMirrorcreatorComTotal = mcCount;
  1927.  
  1928. if (mcCount > 0)
  1929. {
  1930. mcShortHostNames = mcShortHostNames.split(' ');
  1931. mcIdx = mcCount;
  1932. while(mcIdx--)
  1933. processMirrorcreatorLink(mcSnapshot.snapshotItem(mcIdx));
  1934. }
  1935.  
  1936. }
  1937. //MIRRORCREATOR.CZ END
  1938.  
  1939.  
  1940. //mirrorcreator.com checking works like this:
  1941. //The base URL is http://www.mirrorcreator.com/files/XXXXXXXX/filename_links
  1942. //the actual list of mirrors is at http://www.mirrorcreator.com/status.php?uid=XXXXXXXX
  1943. //the list contains links in the form of (http://www.mirrorcreator.com)/redirect/XXXXXXXX/1
  1944. //these redirector links are extracted with mcLinkBlockRegex and the pages loaded
  1945. //they contain the actual filehost links, which are extracted with mcHostRegex and displayed in a container list
  1946. function processMirrorcreatorLink(mcLink)
  1947. {
  1948. var mcURL = mcLink.href.match(mcRegex);
  1949. if(!mcURL || !mcURL[1]) return;
  1950. mcURL = 'http://www.mirrorcreator.com/status.php?uid=' + mcURL[1]; //link correction
  1951. GM_xmlhttpRequest({
  1952. method: 'GET',
  1953. url: mcURL,
  1954. headers: {
  1955. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1956. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*'+'/*;q=0.8',
  1957. 'Referer': ""
  1958. },
  1959. onload: function(mcLinkResult) {
  1960. var mcLinkRes = mcLinkResult.responseText;
  1961.  
  1962. var mcLinkBlockRegex = /(\/redirect\/\w+\/(\d+))/gi;
  1963. var mcHostRegex = /<div id="redirectlink">.*?<a href="([^"]+)"/;
  1964.  
  1965. var mcRedirectors;
  1966. var mcHostURLs = [], mcRedirectorIDs = [], mcHostsFound = 0, mcHostsRetrieved = 0, mcHostsToProcess = 0;
  1967. var m = mcLinkRes.match(mcLinkBlockRegex);
  1968. if (m)
  1969. mcHostsFound = m.length;
  1970. else
  1971. { //no files inside container
  1972. processMirrorcreatorFoundHosts(mcLink, []);
  1973. return;
  1974. }
  1975.  
  1976. var mcRedirectorURL, idx, timedOut = false;
  1977.  
  1978. var gmxhrFunc = function(mcRedirectorURL){ //Tampermonkey doesn't know neither this.url or result.finalUrl
  1979. GM_xmlhttpRequest({
  1980. method: 'GET',
  1981. url: mcRedirectorURL,
  1982. headers: {
  1983. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1984. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*'+'/*;q=0.8',
  1985. 'Referer': ""
  1986. },
  1987. onload: function(mcHostResult) {
  1988. if (timedOut) return; //too late, the list is already displayed
  1989. var mcHostRes = mcHostResult.responseText;
  1990. var mcHost = mcHostRes.match(mcHostRegex);
  1991. idx = mcHostURLs.indexOf(mcRedirectorURL);
  1992. if (mcHost && idx!=-1)
  1993. {
  1994. mcHostURLs[idx] = mcHost[1].replace(/^\s+|\s+$/g, '');
  1995. mcHostsRetrieved++;
  1996. mcHostsToProcess++;
  1997. if (mcHostsFound == mcHostsRetrieved) //this is the last one!
  1998. {
  1999. processMirrorcreatorFoundHosts(mcLink, mcHostURLs, mcRedirectorIDs);
  2000. mcHostsToProcess = 0;
  2001. }
  2002. }
  2003. } //end of onload: function
  2004. }); //end of GM_xmlhttpRequest call
  2005. };//end of var gmxhrFunc
  2006.  
  2007. while (mcRedirectors = mcLinkBlockRegex.exec(mcLinkRes))
  2008. { //load individual redirector pages
  2009. mcRedirectorURL = 'http://www.mirrorcreator.com' + mcRedirectors[1];
  2010. mcHostURLs.push(mcRedirectorURL);
  2011. mcRedirectorIDs.push(mcRedirectors[2]);
  2012. gmxhrFunc(mcRedirectorURL);
  2013. } //end of while block
  2014.  
  2015. setTimeout(function(){ //in case the last page fails to load and call the function
  2016. timedOut = true;
  2017. if (mcHostsToProcess)
  2018. processMirrorcreatorFoundHosts(mcLink, mcHostURLs);
  2019. }, 60000);
  2020.  
  2021. } //end of onload function
  2022. }); //end of GM_xmlhttpRequest call
  2023. } //end of function processMirrorcreatorLink
  2024.  
  2025.  
  2026. function processMirrorcreatorFoundHosts(mcLink, mcHostURLs, mcRedirectorIDs)
  2027. {
  2028. var aEl, liEl, docFrag;
  2029. var hostName, mcRedirectorID, trimFilename = false;
  2030. var i = mcHostURLs.length;
  2031. if (i == 0)
  2032. {
  2033. trimFilename = true;
  2034. mcLink.parentNode.insertBefore(document.createTextNode(' | No files inside container'), mcLink.nextSibling);
  2035. }
  2036. else
  2037. {
  2038. if (Display_full_links_in_link_containers)
  2039. { //full view
  2040. var wrapperEl = document.createElement('span');
  2041. wrapperEl.style.display = 'block';
  2042. var ulistEl = document.createElement('ul');
  2043. ulistEl.className = 'container_list';
  2044. while (i--)
  2045. {
  2046. liEl = document.createElement('li');
  2047. aEl = document.createElement('a');
  2048. aEl.appendChild(document.createTextNode(mcHostURLs[i]));
  2049. aEl.href = mcHostURLs[i];
  2050. aEl.className = 'container_link';
  2051. liEl.appendChild(aEl);
  2052. ulistEl.appendChild(liEl);
  2053. }
  2054. wrapperEl.appendChild(ulistEl);
  2055. mcLink.parentNode.replaceChild(wrapperEl, mcLink);
  2056. wrapperEl.insertBefore(mcLink, wrapperEl.firstChild);
  2057. }
  2058. else
  2059. { //compact view
  2060. trimFilename = true;
  2061. docFrag = document.createDocumentFragment();
  2062. docFrag.appendChild(document.createTextNode(' |'));
  2063. while (i--)
  2064. {
  2065. mcRedirectorID = mcRedirectorIDs[i];
  2066. hostName = mcHostURLs[i];
  2067. if (mcRedirectorID > mcShortHostNames.length-1 || mcShortHostNames[mcRedirectorID] == '??')
  2068. hostName = hostName.replace(/https?:\/\/(?:www\.)?([-0-9a-z]+(?:\.[-0-9a-z]+)?)\.[a-z]+\/.*/i, '$1').toUpperCase();
  2069. else
  2070. hostName = mcShortHostNames[mcRedirectorID];
  2071. aEl = document.createElement('a');
  2072. aEl.href = mcHostURLs[i];
  2073. aEl.className = 'container_link';
  2074. aEl.appendChild(document.createTextNode(hostName));
  2075. docFrag.appendChild(aEl);
  2076. docFrag.appendChild(document.createTextNode('|'));
  2077. }
  2078. mcLink.parentNode.insertBefore(docFrag, mcLink.nextSibling);
  2079. } //end of else block
  2080. } //end of else block
  2081. mcLink.className = '';
  2082. if (trimFilename)
  2083. mcLink.firstChild.nodeValue = mcLink.firstChild.nodeValue.replace(/(https?:\/\/[^\/]+\/files\/\w+\/).+/, '$1...');
  2084. cMirrorcreatorComProcessed++;
  2085. if (cMirrorcreatorComProcessed == cMirrorcreatorComTotal) //start check when all mc links have been processed
  2086. {
  2087. if (Do_not_linkify_DL_links)
  2088. delinkifySnapshot(mcSnapshot);
  2089. startBulkCheck('container_link');
  2090. start('container_link');
  2091. }
  2092. } //end of function processMirrorcreatorFoundHosts
  2093.  
  2094. containers_processed = true;
  2095.  
  2096.  
  2097. function initRedirectors()
  2098. {
  2099. function addRedirector(linkRegex, xpathEx, redirType, innerLinkRegex)
  2100. {
  2101. var redirector = new Object();
  2102. redirector.linkRegex = linkRegex;
  2103. redirector.xpath = xpathEx; //xpath expression
  2104. redirector.cProcessed = 0; //processed links count
  2105. redirector.cTotal = 0; //total links count
  2106. redirector.type = redirType; //redirectorTypes enum
  2107. redirector.innerLinkRegex = innerLinkRegex; //innerLink, null if unused
  2108. redirectors.push(redirector);
  2109. }
  2110. if (GM_getValue("Check_safelinking_dot_net_links", false))
  2111. {
  2112. addRedirector(
  2113. 'safelinking\\.net\/d\/\\w+',
  2114. "//a[contains(@href,'safelinking.net/d/')]",
  2115. redirectorTypes.HTTP_302,
  2116. null);
  2117. }
  2118. if (GM_getValue("Check_linksafe_dot_me_links", false))
  2119. {
  2120. addRedirector(
  2121. 'linksafe\\.me\/d\/\\w+',
  2122. "//a[contains(@href,'linksafe.me/d/')]",
  2123. redirectorTypes.HTTP_302,
  2124. null);
  2125. }
  2126. if (GM_getValue("Check_linkto_dot_net_links", false))
  2127. {
  2128. addRedirector(
  2129. 'linkto\\.net\/\\?\\w+\\.\\d+',
  2130. "//a[contains(@href,'linkto.net/?')]",
  2131. redirectorTypes.INNER_LINK,
  2132. /<iframe id="iframe" name="iframe" src="(.+?)\s*" frameborder="0"/);
  2133. }
  2134. if (GM_getValue("Check_theloo_dot_katt_dot_it_links", false))
  2135. {
  2136. addRedirector(
  2137. '(?:the)?loo\\.katt\\.it\/\\w+',
  2138. "//a[contains(@href,'loo.katt.it/')]",
  2139. redirectorTypes.THELOO_KATT_IT,
  2140. /Proceed to URL - <a href="(.+?)">/);
  2141. }
  2142. if (GM_getValue("Check_madlink_dot_sk_links", false))
  2143. {
  2144. addRedirector(
  2145. 'madlink\\.sk\/\\w+',
  2146. "//a[contains(@href,'madlink.sk/')]",
  2147. redirectorTypes.INNER_LINK,
  2148. /name="url" value="(.+?)\s*"\/>/);
  2149. }
  2150. if (GM_getValue("Check_adf_dot_ly_links", false))
  2151. {
  2152. addRedirector(
  2153. '(?:adf\\.ly|[u9]\\.bb|[qj]\\.gs)\/\\w+',
  2154. "//a[contains(@href,'adf.ly/') or contains(@href,'u.bb/') or contains(@href,'9.bb/') or contains(@href,'q.gs/') or contains(@href,'j.gs/')]",
  2155. redirectorTypes.ADF_LY,
  2156. null);
  2157. }
  2158. if (GM_getValue("Check_redi_dot_re_links", false))
  2159. {
  2160. addRedirector(
  2161. 'redi\\.re\/\\w+',
  2162. "//a[contains(@href,'redi.re/')]",
  2163. redirectorTypes.HTTP_302,
  2164. null);
  2165. }
  2166. if (GM_getValue("Check_bit_dot_ly_links", false))
  2167. {
  2168. addRedirector(
  2169. 'bit\\.ly\/\\w+',
  2170. "//a[contains(@href,'bit.ly/')]",
  2171. redirectorTypes.HTTP_302,
  2172. null);
  2173. }
  2174. }
  2175.  
  2176. }
  2177.  
  2178. var bulkHosts = new Array();
  2179. var bulkHostNames = new Array();
  2180. function initBulkCheck()
  2181. {
  2182. /////////////////////////////
  2183. // Inits filehost object
  2184. /////////////////////////////
  2185. // params :
  2186. // hostName -- [string] host name (multiple domains separated with coma)
  2187. // linkRegex -- [string] link regex
  2188. // xpath -- [string] xpath expression to detect the link objects with evaluate
  2189. // blockSize -- [integer] max. number of links sent in one request, 50 if null
  2190. // corrMatch -- [regex] link correction regex (match), applied prior to corrRepl
  2191. // corrReplWhat -- [regex] link correction regex (replace)
  2192. // corrReplWith -- [string]
  2193. // splitSeparator -- [string] POSTDATA links separator, "\r\n" if null
  2194. //
  2195. // apiUrl -- [string] web linkchecker or API URL
  2196. // postData -- [string] POSTDATA of xmlhttprequest
  2197. // resLinkRegex -- [regex]
  2198. // resLiveRegex -- [regex] matches substrings containing live links in the request response
  2199. // resDeadRegex -- [regex] matches substrings containing dead links in the request response
  2200. // resUnavaRegex -- [regex] matches substrings containing unava links in the request response
  2201. // func -- [function] bulkcheck handler, genBulkCheck if null
  2202. //
  2203. //////////////////////////////
  2204. function addHost(hostName, linkRegex, xpath, blockSize, corrMatch, corrReplWhat, corrReplWith, splitSeparator,
  2205. apiUrl, postData, resLinkRegex, resLiveRegex, resDeadRegex, resUnavaRegex, func)
  2206. {
  2207. var fileHost = new Object();
  2208.  
  2209. fileHost.linkRegex = linkRegex;
  2210. fileHost.linkRegexObject = new RegExp(linkRegex, "");
  2211. fileHost.xpath = xpath;
  2212. fileHost.cFound = 0; //found links counter
  2213. fileHost.links = new Array(); //found links
  2214. if (blockSize == null)
  2215. {
  2216. fileHost.blockSize = 50;
  2217. }
  2218. else
  2219. {
  2220. fileHost.blockSize = blockSize;
  2221. }
  2222. fileHost.corrMatch = corrMatch;
  2223. fileHost.corrReplWhat = corrReplWhat;
  2224. fileHost.corrReplWith = corrReplWith;
  2225. if (splitSeparator == null)
  2226. {
  2227. fileHost.splitSeparator = "\r\n";
  2228. }
  2229. else
  2230. {
  2231. fileHost.splitSeparator = splitSeparator;
  2232. }
  2233. fileHost.apiUrl = apiUrl;
  2234. fileHost.postData = postData;
  2235. fileHost.resLinkRegex = resLinkRegex;
  2236. fileHost.resLiveRegex = resLiveRegex;
  2237. fileHost.resDeadRegex = resDeadRegex;
  2238. fileHost.resUnavaRegex = resUnavaRegex;
  2239. if (func == null)
  2240. {
  2241. fileHost.func = genBulkCheck;
  2242. }
  2243. else
  2244. {
  2245. fileHost.func = func;
  2246. }
  2247. bulkHosts.push(fileHost);
  2248. var names = hostName.split(',');
  2249. var i = names.length;
  2250. while(i--)
  2251. {
  2252. bulkHostNames[names[i]] = fileHost;
  2253. }
  2254. }
  2255. var genType1 = [
  2256. "migahost.com", "rodfile.com", "downloadani.me",
  2257. "rarefile.net",
  2258. "filesabc.com", "sharebeast.com",
  2259. "180upload.com", "verzend.be",
  2260. "movreel.com",
  2261. "4up.me",
  2262. "file4safe.com", "filemac.com", "4upfiles.com",
  2263. "idup.in", "novafile.com", "longfiles.com",
  2264. "bitupload.com",
  2265. "uploadbaz.com"
  2266. ];
  2267. var genType2 = [ "queenshare.com",
  2268. "hulkload.com",
  2269. "amonshare.com", "edoc.com",
  2270. ];
  2271. //xfilesharing 1.0
  2272. function addGenericType1()
  2273. {
  2274. var i = genType1.length;
  2275. while(i--)
  2276. {
  2277. if (GM_getValue("Check_" + genType1[i].replace(/\./g, "_dot_").replace(/-/g, "_dash_") + "_links", false))
  2278. {
  2279. var regexSafe = genType1[i].replace(/\./g, "\\.").replace(/-/g, "\\-");
  2280. addHost(
  2281. genType1[i].match(/[\w-]+/)[0], //hostname
  2282. regexSafe + "\/\\w+", //linkregex
  2283. "//a[contains(@href,'" + genType1[i] + "/')]", //xpath
  2284. null, //blocksize
  2285. new RegExp("(http:\/\/(?:|www\\.)" + regexSafe + "\/\\w+)",""),//, //corrmatch
  2286. null, //corrreplwhat
  2287. null, //corrreplwith
  2288. null, //separator
  2289. "http://" + genType1[i] + "/checkfiles.html", //api url
  2290. "op=checkfiles&process=Check+URLs&list=", //postdata
  2291. new RegExp("(" + regexSafe + "\/\\w+)",""), //linkregex
  2292. new RegExp("green'>http:\/\/(?:|www\.)" + regexSafe + "\/\\w+","g"), //liveregex
  2293. new RegExp("red'>http:\/\/(?:|www\.)" + regexSafe + "\/\\w+","g"), //deadregex
  2294. new RegExp("orange'>http:\/\/(?:|www\.)" + regexSafe + "\/\\w+","g"), //unavaregex
  2295. null //function delegate
  2296. )
  2297. }
  2298. }
  2299. }
  2300. //xfilesharing 2.0
  2301. function addGenericType2()
  2302. {
  2303. var i = genType2.length;
  2304. while(i--)
  2305. {
  2306. if (GM_getValue("Check_" + genType2[i].replace(/\./g, "_dot_").replace(/-/g, "_dash_") + "_links", false))
  2307. {
  2308. var regexSafe = genType2[i].replace(/\./g, "\\.").replace(/-/g, "\\-");
  2309. addHost(
  2310. genType2[i].match(/[\w-]+/)[0], //hostname
  2311. regexSafe + "\/\\w+", //linkregex
  2312. "//a[contains(@href,'" + genType2[i] + "/')]", //xpath
  2313. null, //blocksize
  2314. new RegExp("(http:\/\/(?:|www\\.)" + regexSafe + "\/\\w+)",""),//, //corrmatch
  2315. null, //corrreplwhat
  2316. null, //corrreplwith
  2317. null, //separator
  2318. "http://www." + genType2[i] + "/?op=checkfiles", //api url
  2319. "op=checkfiles&process=Check+URLs&list=", //postdata
  2320. new RegExp("(" + regexSafe + "\/\\w+)",""), //linkregex
  2321. new RegExp(regexSafe + "\/\\w+.*?<\/td>\\s*<td style=\"color:green;\">","g"), //liveregex
  2322. new RegExp(regexSafe + "\/\\w+.*?<\/td>\\s*<td style=\"color:red;\">","g"), //deadregex
  2323. new RegExp(regexSafe + "\/\\w+.*?<\/td>\\s*<td style=\"color:orange;\">","g"), //unavaregex
  2324. null //function delegate
  2325. )
  2326. }
  2327. }
  2328. }
  2329. // TEMPLATE
  2330. // if (GM_getValue("Check__dot_com_links", false))
  2331. // {
  2332. // addHost(
  2333. // "", //hostname
  2334. // "", //linkregex
  2335. // "//a[contains(@href,'.com/')]", //xpath
  2336. // null, //blocksize
  2337. // null, //corrmatch
  2338. // null, //corrreplwhat
  2339. // null, //corrreplwith
  2340. // null, //separator
  2341. // "", //api url
  2342. // "", //postdata
  2343. // /()/, //linkregex
  2344. // //liveregex
  2345. // //deadregex
  2346. // //unavaregex
  2347. // null //function delegate
  2348. // )
  2349. // }
  2350. addGenericType1();
  2351. addGenericType2();
  2352.  
  2353. if (GM_getValue("Check_myvdrive_dot_com_links", false))
  2354. {
  2355. addHost(
  2356. "myvdrive,fileserving", //hostname
  2357. "(?:fileserving|myvdrive)\\.com\/files\/[\\w-]+", //linkregex
  2358. "//a[contains(@href,'fileserving.com/files') or contains(@href,'myvdrive.com/files')]", //xpath
  2359. null, //blocksize
  2360. null, //corrmatch
  2361. null, //corrreplwhat
  2362. null, //corrreplwith
  2363. null, //separator
  2364. "http://www.myvdrive.com/Public/linkchecker#", //api url
  2365. "links=", //postdata
  2366. /(?:fileserving|myvdrive)\.com\/(files\/\w+)/, //linkregex
  2367. /icon_file_check_valid"><\/span>\s*http:\/\/www\.(?:fileserving|myvdrive)\.com\/files\/[\w-]+/g, //liveregex
  2368. /icon_file_check_(?:removed|notvalid)"><\/span>\s*http:\/\/www\.(?:fileserving|myvdrive)\.com\/files\/[\w-]+/g, //deadregex
  2369. null, //unavaregex
  2370. null //function delegate
  2371. )
  2372. }
  2373. if (GM_getValue("Check_hackerbox_dot_org_links", false))
  2374. {
  2375. addHost(
  2376. "hackerbox", //hostname
  2377. "host\\.hackerbox\\.org\/\\w+", //linkregex
  2378. "//a[contains(@href,'host.hackerbox.org/')]", //xpath
  2379. null, //blocksize
  2380. /(http:\/\/host\.hackerbox\.org\/\w+)/, //corrmatch
  2381. null, //corrreplwhat
  2382. null, //corrreplwith
  2383. null, //separator
  2384. "http://host.hackerbox.org/checkfiles.html", //api url
  2385. "op=checkfiles&process=Check+URLs&list=", //postdata
  2386. /(host\.hackerbox\.org\/\w+)/, //linkregex
  2387. /green'>http:\/\/host\.hackerbox\.org\/\w+/g, //liveregex
  2388. /red'>http:\/\/host\.hackerbox\.org\/\w+/g, //deadregex
  2389. /orange'>http:\/\/host\.hackerbox\.org\/\w+/g, //unavaregex
  2390. null //function delegate
  2391. )
  2392. }
  2393. if (GM_getValue("Check_hellshare_dot_com_links", false))
  2394. {
  2395. addHost(
  2396. "hellshare", //hostname
  2397. "(?:|download\\.(?:cz\\.|en\\.|sk\\.|)|www\\.)hellshare\\.(?:com|sk|cz|pl|hu|COM|SK|CZ|PL|HU)\/[\\w-\\.]+\/(?:[\\w-\\.]+\/|)\\d{5,}", //linkregex
  2398. "//a[contains(@href,'hellshare.')]", //xpath
  2399. 48, //blocksize
  2400. null, //corrmatch
  2401. null, //corrreplwhat
  2402. null, //corrreplwith
  2403. null, //separator
  2404. null, //api url
  2405. null, //postdata
  2406. null, //linkregex
  2407. null, //liveregex
  2408. null, //deadregex
  2409. null, //unavaregex
  2410. hellshareBulkCheck //function delegate
  2411. )
  2412. }
  2413. if (GM_getValue("Check_ncrypt_dot_in_links", false))
  2414. {
  2415. addHost(
  2416. "ncrypt", //hostname
  2417. "ncrypt\\.in\/folder\\-\\w+", //linkregex
  2418. "//a[contains(@href,'ncrypt.in/folder')]", //xpath
  2419. 100000, //blocksize
  2420. null, //corrmatch
  2421. null, //corrreplwhat
  2422. null, //corrreplwith
  2423. null, //separator
  2424. null,
  2425. null,
  2426. null,
  2427. null,
  2428. null,
  2429. null,
  2430. ncryptBulkCheck //function delegate
  2431. )
  2432. }
  2433. if (GM_getValue("Check_geupload_dot_com_links", false))
  2434. {
  2435. addHost(
  2436. "geupload,lenfile", //hostname
  2437. "(?:geupload\\.com|lenfile\\.com)\/\\w+", //linkregex
  2438. "//a[contains(@href,'geupload.com/') or contains(@href,'lenfile.com/')]", //xpath
  2439. null, //blocksize
  2440. null, //corrmatch
  2441. null, //corrreplwhat
  2442. null, //corrreplwith
  2443. "\n", //separator
  2444. 'http://geupload.com/?op=checkfiles',
  2445. 'op=checkfiles&process=Check+URLs&list=',
  2446. />http:\/\/(?:geupload|lenfile)\.com\/(\w+)/,
  2447. />http:\/\/(?:geupload|lenfile)\.com\/\w+(?:[^>]+>)<td style=\"color\:green/g,
  2448. />http:\/\/(?:geupload|lenfile)\.com\/\w+(?:[^>]+>)<td style=\"color\:red/g,
  2449. null,
  2450. null
  2451. )
  2452. }
  2453. if (GM_getValue("Check_uploadrocket_dot_net_links", false))
  2454. {
  2455. addHost(
  2456. "uploadrocket", //hostname
  2457. "(?:uploadrocket\\.net)\/\\w+", //linkregex
  2458. "//a[contains(@href,'uploadrocket.net/')]", //xpath
  2459. null, //blocksize
  2460. null, //corrmatch
  2461. null, //corrreplwhat
  2462. null, //corrreplwith
  2463. "\n", //separator
  2464. 'http://uploadrocket.net/?op=checkfiles',
  2465. 'op=checkfiles&process=Check+URLs&list=',
  2466. /uploadrocket.net\/(\w+)/,
  2467. />http:\/\/uploadrocket.net\/\w+(?:[^>]+>)<td style="color:green/g,
  2468. />http:\/\/uploadrocket.net\/\w+(?:[^>]+>)<td style="color:red/g,
  2469. null,
  2470. null //function delegate
  2471. )
  2472. }
  2473. if (GM_getValue("Check_depositfiles_dot_com_links", false))
  2474. {
  2475. addHost(
  2476. "depositfiles,dfiles",
  2477. "(?:(?:depositfiles\\.(?:com|org|lt))|(?:dfiles\\.(?:ru|eu)))\/files\/|en/files\/\\w+",
  2478. "//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/')]",
  2479. 100000, //blocksize
  2480. null, //corrmatch
  2481. null, //corrreplwhat
  2482. null, //corrreplwith
  2483. null, //separator
  2484. null,
  2485. null,
  2486. null,
  2487. null,
  2488. null,
  2489. null,
  2490. depositfilesBulkCheck //function delegate
  2491. )
  2492. }
  2493. if (GM_getValue("Check_filepost_dot_com_links", false))
  2494. {
  2495. addHost(
  2496. "filepost,fp", //hostname
  2497. "(?:filepost\\.com\/files|fp\\.io)\/\\w+", //linkregex
  2498. "//a[contains(@href,'filepost.com/files/') or contains(@href,'fp.io/')]", //xpath
  2499. null, //blocksize
  2500. null, //corrmatch
  2501. null, //corrreplwhat
  2502. null, //corrreplwith
  2503. "\n", //separator
  2504. 'http://filepost.com/files/checker/?JsHttpRequest=0-xml',
  2505. 'urls=',
  2506. /\\\/files\\\/(\w+)/,
  2507. />http:\\\/\\\/filepost\.com\\\/files\\\/\w+(?:[^>]+>){5}(?:\\n|\\t)+<span class=\\"v\\"/g,
  2508. />http:\\\/\\\/filepost\.com\\\/files\\\/\w+(?:[^>]+>){5}(?:\\n|\\t)+<span class=\\"x\\"/g,
  2509. null,
  2510. null //function delegate
  2511. )
  2512. }
  2513. if (GM_getValue("Check_filesflash_dot_com_links", false))
  2514. {
  2515. addHost(
  2516. "filesflash", //hostname
  2517. "filesflash\\.com\/\\w+", //linkregex
  2518. "//a[contains(@href,'filesflash.com')]", //xpath
  2519. null, //blocksize
  2520. null, //corrmatch
  2521. /http:\/\//, //corrreplwhat
  2522. '', //corrreplwith
  2523. null, //separator
  2524. 'http://filesflash.com/checklinks.php',
  2525. 'submit=Go&links=',
  2526. /filesflash\.com\/(\w+)/,
  2527. /<td>filesflash\.com\/\w+<\/td>\s*<td>Available/g,
  2528. /<td>filesflash\.com\/\w+<\/td>\s*<td>(?:Invalid|Deleted|Expired|Banned)?<\/td>/g,
  2529. null,
  2530. null //function delegate
  2531. )
  2532. }
  2533. if (GM_getValue("Check_jumbofiles_dot_com_links", false))
  2534. {
  2535. addHost(
  2536. "jumbofiles", //hostname
  2537. "jumbofiles\\.com\/\\w+", //linkregex
  2538. "//a[contains(@href,'jumbofiles.com/')]", //xpath
  2539. null, //blocksize
  2540. /(http:\/\/(?:|www\.)jumbofiles\.com\/\w+)/, //corrmatch
  2541. null, //corrreplwhat
  2542. null, //corrreplwith
  2543. null, //separator
  2544. "http://jumbofiles.com/checkfiles.html", //api url
  2545. "op=checkfiles&process=Check+URLs&list=", //postdata
  2546. /(jumbofiles\.com\/\w+)/, //linkregex
  2547. /blue'>http:\/\/(?:|www\.)jumbofiles\.com\/\w+/g, //liveregex
  2548. /red'>http:\/\/(?:|www\.)jumbofiles\.com\/\w+/g, //deadregex
  2549. /orange'>http:\/\/(?:|www\.)jumbofiles\.com\/\w+/g, //unavaregex
  2550. null //function delegate
  2551. )
  2552. }
  2553. if (GM_getValue("Check_edisk_dot_cz_links", false))
  2554. {
  2555. addHost(
  2556. "edisk", //hostname
  2557. "(?:(?:muj|data)\\d*\\.|)edisk\\.(?:cz|sk|eu)\/(?:|(?:cz|sk|en|pl)\/)", //linkregex
  2558. "//a[contains(@href,'edisk.')]", //xpath
  2559. null, //blocksize
  2560. null, //corrmatch
  2561. /edisk\.\w{2}\/(?:|\w{2}\/)stahni/, //corrreplwhat
  2562. 'edisk.cz/stahni', //corrreplwith
  2563. null, //separator
  2564. 'http://www.edisk.cz/zkontrolovat-odkazy',
  2565. 'submitBtn=Zkontrolovat&checkFiles=',
  2566. /((?:download|stahn(?:i|out-soubor))\/\d+)/,
  2567. /"ano"\/>\s*<\/td>\s*<td>\s*http:\/\/.+/g,
  2568. /"ne"\/>\s*<\/td>\s*<td>\s*http:\/\/.+/g,
  2569. null,
  2570. null //function delegate
  2571. )
  2572. }
  2573. if (GM_getValue("Check_bezvadata_dot_cz_links", false))
  2574. {
  2575. GM_xmlhttpRequest( //age check skip
  2576. {
  2577. method: 'POST',
  2578. url: 'http://bezvadata.cz/vyhledavani/souhlas-zavadny-obsah',
  2579. headers: {
  2580. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  2581. 'Content-type': 'application/x-www-form-urlencoded',
  2582. 'Referer': ""
  2583. }
  2584. });
  2585. addHost(
  2586. "bezvadata", //hostname
  2587. "(?:beta\\.|)bezvadata\.cz\/stahnout\/\\d+\\w+", //linkregex
  2588. "//a[contains(@href,'bezvadata.cz')]", //xpath
  2589. null, //blocksize
  2590. null, //corrmatch
  2591. null, //corrreplwhat
  2592. null, //corrreplwith
  2593. null, //separator
  2594. 'http://bezvadata.cz/nastroje/kontrola-odkazu?do=kontrolaOdkazuForm-submit',
  2595. 'zkontrolovat=Zkontrolovat&odkazy=',
  2596. /(bezvadata\.cz\/stahnout\/\d+)/,
  2597. /bezvadata\.cz\/stahnout\/.+?<\/td>\s*<td style="background-color: #d9ffb2/g,
  2598. /bezvadata\.cz\/stahnout\/.+?<\/td>\s*<td style="background-color: #ffb2b2/g,
  2599. null,
  2600. null //function delegate
  2601. )
  2602. }
  2603. if (GM_getValue("Check_linkcrypt_dot_ws_links", false))
  2604. {
  2605. addHost(
  2606. "linkcrypt", //hostname
  2607. "linkcrypt\\.ws\/dir\/\\w+", //linkregex
  2608. "//a[contains(@href,'linkcrypt.ws/dir')]", //xpath
  2609. 100000, //blocksize
  2610. null, //corrmatch
  2611. null, //corrreplwhat
  2612. null, //corrreplwith
  2613. null, //separator
  2614. null,
  2615. null,
  2616. null,
  2617. null,
  2618. null,
  2619. null,
  2620. linkcryptBulkCheck //function delegate
  2621. )
  2622. }
  2623. if (GM_getValue("Check_linksave_dot_in_links", false))
  2624. {
  2625. addHost(
  2626. "linksave", //hostname
  2627. "linksave\\.in\/\\w+", //linkregex
  2628. "//a[contains(@href,'linksave.in')]", //xpath
  2629. 100000, //blocksize
  2630. null, //corrmatch
  2631. null, //corrreplwhat
  2632. null, //corrreplwith
  2633. null, //separator
  2634. null,
  2635. null,
  2636. null,
  2637. null,
  2638. null,
  2639. null,
  2640. linksaveBulkCheck //function delegate
  2641. )
  2642. }
  2643. if (GM_getValue("Check_videobb_dot_com_links", false))
  2644. {
  2645. addHost(
  2646. "videobb", //hostname
  2647. "videobb\\.com\/(?:video\/|watch_video\\.php\\?v=)\\w+", //linkregex
  2648. "//a[contains(@href,'videobb.com')]", //xpath
  2649. null, //blocksize
  2650. null, //corrmatch
  2651. /watch_video\.php\?v=/, //corrreplwhat
  2652. 'video/', //corrreplwith
  2653. null, //separator
  2654. 'http://www.videobb.com/link_checker.php',
  2655. 'links=',
  2656. /videobb\.com\/video\/(\w+)/,
  2657. /<td>http:\/\/(?:www\.|)videobb.com\/video\/\w+<\/td>\s+<td>.+?<\/td>\s+<td>\d+:\d+<\/td>\s+<td>Available/g,
  2658. /<td>http:\/\/(?:www\.|)videobb.com\/video\/\w+<\/td>\s+<td><\/td>\s+<td>N\/A<\/td>\s+<td>Not Available/g,
  2659. null,
  2660. null //function delegate
  2661. )
  2662. }
  2663. if (GM_getValue("Check_cramit_dot_in_links", false))
  2664. {
  2665. addHost(
  2666. "cramit,cramitin", //hostname
  2667. "cramit(?:\\.in|in\\.net)\/", //linkregex
  2668. "//a[contains(@href,'cramitin.net') or contains(@href,'cramit.in')]", //xpath
  2669. null, //blocksize
  2670. null, //corrmatch
  2671. null, //corrreplwhat
  2672. null, //corrreplwith
  2673. null, //separator
  2674. 'http://cramit.in/checkfiles.html',
  2675. 'op=checkfiles&process=CHECK+URL%27S&list=',
  2676. /(cramit(?:\.in|in\.net)\/\w+)/,
  2677. /green>http:\/\/(?:www\.|)cramit(?:\.in|in\.net)\/\w+/g,
  2678. /red'>http:\/\/(?:www\.|)cramit(?:\.in|in\.net)\/\w+/g,
  2679. /orange'>http:\/\/(?:www\.|)cramit(?:\.in|in\.net)\/\w+/g,
  2680. null //function delegate
  2681. )
  2682. }
  2683. /* if (GM_getValue("Check_turbobit_dot_net_links", false))
  2684. {
  2685. addHost(
  2686. "turbobit", //hostname
  2687. "turbobit\\.(?:net|pl)\/(?:\\w+\/|).+?\\.html", //linkregex
  2688. "//a[contains(@href,'turbobit.')]", //xpath
  2689. null, //blocksize
  2690. /(turbobit\.(?:net|pl)\/(?:\w+\/|).+?\.html)/, //corrmatch
  2691. null, //corrreplwhat
  2692. null, //corrreplwith
  2693. "\n", //separator
  2694. 'http://turbobit.net/linkchecker/csv',
  2695. 'links_to_check=',
  2696. /(turbobit\.(?:net|pl)\/\w+)/,
  2697. /turbobit\.(?:net|pl)\/.*?, 1/g,
  2698. /turbobit\.(?:net|pl)\/.*?, 0/g,
  2699. null,
  2700. null //function delegate
  2701. )
  2702. } */
  2703. if (GM_getValue("Check_filerio_dot_com_links", false))
  2704. {
  2705. addHost(
  2706. "filekeen,filerio", //hostname
  2707. //"file(?:keen|rio)\\.(?:com|in)\/\\w+\/.", //linkregex
  2708. "file(?:keen|rio)\\.(?:com|in)\/\\w+", //linkregex
  2709. "//a[contains(@href,'filekeen.com') or contains(@href,'filerio.')]", //xpath
  2710. null, //blocksize
  2711. null, //corrmatch
  2712. null, //corrreplwhat
  2713. null, //corrreplwith
  2714. null, //separator
  2715. 'http://filerio.in/checkfiles.html',
  2716. 'op=checkfiles&process=Check+URLs&list=',
  2717. /(file(?:keen|rio)\.(?:com|in)\/\w+)/,
  2718. /green'>http:\/\/(?:www\.|)file(?:keen|rio)\.(?:com|in)\/\w+/g,
  2719. /red'>http:\/\/(?:www\.|)file(?:keen|rio)\.(?:com|in)\/\w+/g,
  2720. /orange'>http:\/\/(?:www\.|)file(?:keen|rio)\.(?:com|in)\/\w+/g,
  2721. null //function delegate
  2722. )
  2723. }
  2724. if (GM_getValue("Check_share_dash_online_dot_biz_links", false))
  2725. {
  2726. addHost(
  2727. "share-online,egoshare", //hostname
  2728. "(?:share-online\\.biz|egoshare\\.com)\/(?:dl\/|download\\.php\\?id=)", //linkregex
  2729. "//a[contains(@href,'share-online.biz') or contains(@href,'egoshare.com')]", //xpath
  2730. null, //blocksize
  2731. /http:\/\/(?:www\.)?(?:share-online\.biz|egoshare\.com)\/d(?:l\/|ownload\.php\?id=)(\w+)/, //corrmatch
  2732. null, //corrreplwhat
  2733. null, //corrreplwith
  2734. "\n", //separator
  2735. 'http://api.share-online.biz/linkcheck.php',
  2736. 'links=',
  2737. /(\w+);(?:OK|NOTFOUND|DELETED)/,
  2738. /\w+;OK/g,
  2739. /\w+;(?:NOTFOUND|DELETED)/g,
  2740. null,
  2741. null //function delegate
  2742. )
  2743. }
  2744. if (GM_getValue("Check_quickshare_dot_cz_links", false))
  2745. {
  2746. addHost(
  2747. "quickshare", //hostname
  2748. "quickshare\\.cz\/stahnout-soubor\/\\d+", //linkregex
  2749. "//a[contains(@href,'quickshare.cz')]", //xpath
  2750. null, //blocksize
  2751. null, //corrmatch
  2752. null, //corrreplwhat
  2753. null, //corrreplwith
  2754. null, //separator
  2755. 'http://www.quickshare.cz/nastroje/link-checker',
  2756. 'linky=',
  2757. /quickshare\.cz\/stahnout-soubor\/(\d+(?::\w+)?)/,
  2758. /quickshare\.cz\/stahnout-soubor\/\d+(?::[\w\-.+$!*\/()\[\]\',~%?:@#&=\\]+)?\s*<\/a><\/td><td><img src="\/img\/ok\.gif/g,
  2759. /quickshare\.cz\/stahnout-soubor\/\d+(?::[\w\-.+$!*\/()\[\]\',~%?:@#&=\\]+)?\s*<\/td><td><img src="\/img\/nenalezeno\.gif/g,
  2760. null,
  2761. null //function delegate
  2762. )
  2763. }
  2764. if (GM_getValue("Check_netload_dot_in_links", false))
  2765. {
  2766. addHost(
  2767. "netload", //hostname
  2768. "netload\\.in\/datei\\w{10}", //linkregex
  2769. "//a[contains(@href,'netload.in')]", //xpath
  2770. null, //blocksize
  2771. null, //corrmatch
  2772. null, //corrreplwhat
  2773. null, //corrreplwith
  2774. "\n", //separator
  2775. "http://api.netload.in/index.php?id=2", //api url
  2776. "send=Absenden&links=", //postdata
  2777. /(\w+);/, //linkregex
  2778. /\w{10,};.+?;.+?;online/g, //liveregex
  2779. /\w{10,};.+?;.+?;offline/g, //deadregex
  2780. null, //unavaregex
  2781. //netloadBulkCheck //function delegate //disabled on probation since 1.2.4.5
  2782. null //function delegate
  2783. )
  2784. }
  2785. if (GM_getValue("Check_oboom_dot_com_links", false))
  2786. {
  2787. addHost(
  2788. "oboom", //hostname
  2789. "oboom\\.com\/#?\\w{8}", //linkregex
  2790. "//a[contains(@href,'oboom.com/')]", //xpath
  2791. null, //blocksize
  2792. /oboom\.com\/#?(\w{8})/, //corrmatch
  2793. null, //corrreplwhat
  2794. null, //corrreplwith
  2795. null, //separator
  2796. null,
  2797. null,
  2798. null,
  2799. null, //liveregex
  2800. null, //deadregex
  2801. null,
  2802. oboomBulk //function delegate
  2803. )
  2804. }
  2805. if (GM_getValue("Check_mega_dot_nz_links", false))
  2806. {
  2807. addHost(
  2808. "mega",
  2809. "mega(?:\\.co)?\\.nz\/#!\\w+",
  2810. "//a[contains(@href,'mega.co.nz/') or contains(@href,'mega.nz/')]",
  2811. 100000, //blocksize
  2812. null, //corrmatch
  2813. null, //corrreplwhat
  2814. null, //corrreplwith
  2815. null, //separator
  2816. null,
  2817. null,
  2818. null,
  2819. null,
  2820. null,
  2821. null,
  2822. megaBulkCheck //function delegate
  2823. )
  2824. }
  2825.  
  2826. //the same as GenType2, except api url is 'https://' instead of 'http://www.' and corrmatch is not??? needed
  2827.  
  2828. if (GM_getValue("Check_extabit_dot_com_links", false))
  2829. {
  2830. addHost(
  2831. "extabit", //hostname
  2832. "extabit\\.com\/file\/\\w+", //linkregex
  2833. "//a[contains(@href,'extabit.com')]", //xpath
  2834. null, //blocksize
  2835. null, //corrmatch
  2836. null, //corrreplwhat
  2837. null, //corrreplwith
  2838. "\n", //separator
  2839. "http://extabit.com/linkchecker.jsp", //api url
  2840. "url=", //postdata
  2841. /extabit\.com\/(file\/\w+)/, //linkregex
  2842. /extabit\.com\/file\/\w+\/[^<]+<\/a><\/td>\s*<td class="status"><span class="status_green">/g, //liveregex
  2843. /extabit\.com\/file\/\w+\/[^<]+<\/a><\/td>\s*<td class="status"><span class="status_red">/g, //deadregex
  2844. /extabit\.com\/file\/\w+\/[^<]+<\/a><\/td>\s*<td class="status"><span class="status_yellow">/g, //unavaregex
  2845. extabitBulkCheck //function delegate
  2846. )
  2847. }
  2848. if (GM_getValue("Check_junocloud_dot_me_links", false))
  2849. {
  2850. addHost(
  2851. "junocloud", //hostname
  2852. "junocloud\\.me\/\\w+", //linkregex
  2853. "//a[contains(@href,'junocloud.me')]", //xpath
  2854. null, //blocksize
  2855. null, //corrmatch
  2856. null, //corrreplwhat
  2857. null, //corrreplwith
  2858. "\n", //separator
  2859. "http://junocloud.me/checkfiles.html", //api url
  2860. "op=checkfiles&process=Check+URLs&list=", //postdata
  2861. /(junocloud\.me\/\w+)/, //linkregex
  2862. /<a href="http:\/\/junocloud\.me\/\w+[^<]+<\/a>\s*<span style="color: green/g, //liveregex
  2863. /<a href="http:\/\/junocloud\.me\/\w+[^<]+<\/a>\s*<span style="color: red/g, //deadregex
  2864. null, //unavaregex
  2865. null //function delegate
  2866. )
  2867. }
  2868. if (GM_getValue("Check_webshare_dot_cz_links", false))
  2869. {
  2870. addHost(
  2871. "webshare", //hostname
  2872. "webshare\.cz\/(?:(?:#/)?file/\\w+|\\w+-.*)", //linkregex
  2873. "//a[contains(@href,'webshare.cz')]", //xpath
  2874. 100000, //blocksize
  2875. null, //corrmatch
  2876. null, //corrreplwhat
  2877. null, //corrreplwith
  2878. null, //separator
  2879. null, //api url
  2880. null, //postdata
  2881. null, //linkregex
  2882. null, //liveregex
  2883. null, //deadregex
  2884. null, //unavaregex
  2885. webshareBulkCheck //function delegate
  2886. )
  2887. }
  2888. /////////////////////////////
  2889. // Common function delegate to send links to get checked by host linkchecker
  2890. /////////////////////////////
  2891. // If you define a new delegate, you may use following properties
  2892. // this.links [array] array of strings (link blocks). The links in each block separated with host.splitSeparator.
  2893. // this.apiUrl [string] API or web linkchecker URL
  2894. // this.postData [string] POSTDATA for POST request
  2895. // this.resLiveRegex [regex] matches live substrings in the request response
  2896. // this.resDeadRegex [regex] matches dead substrings in the request response
  2897. // this.resUnavaRegex [regex] matches unava substrings in the request response (the regex is often null!)
  2898. //
  2899. // this.resLinkRegex [regex] matches links further passed to DisplayTheCheckedLinks
  2900. //
  2901. // See the code below for standard bulkcheck handling reference.
  2902. //////////////////////////////
  2903. function genBulkCheck()
  2904. {
  2905. var blockIdx = this.links.length;
  2906. while (blockIdx--)
  2907. {
  2908. postRequest(this.apiUrl, this.postData, this.links[blockIdx],
  2909. this.resLinkRegex, this.resLiveRegex, this.resDeadRegex, this.resUnavaRegex);
  2910. }
  2911. function postRequest(api, postData, links, linkRegex, liveRegex, deadRegex, unavaRegex)
  2912. {
  2913. GM_xmlhttpRequest(
  2914. {
  2915. method: 'POST',
  2916. url: api,
  2917. headers: {
  2918. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  2919. 'Content-type': 'application/x-www-form-urlencoded',
  2920. 'Referer': api,
  2921. 'X-Requested-With': 'XMLHttpRequest'
  2922. },
  2923. data: postData + encodeURIComponent(links),
  2924. onload: function (result)
  2925. {
  2926. var res = result.responseText;
  2927. // GM_log(res);
  2928. var i;
  2929.  
  2930. var livelinks = res.match(liveRegex);
  2931. var deadlinks = res.match(deadRegex);
  2932. // GM_log(livelinks);
  2933. // GM_log(deadlinks);
  2934. if (livelinks != null)
  2935. {
  2936. i = livelinks.length - 1;
  2937. do
  2938. {
  2939. livelinks[i] = livelinks[i].match(linkRegex)[1];
  2940. }
  2941. while (i--);
  2942. DisplayTheCheckedLinks(livelinks, 'alive_link');
  2943. }
  2944.  
  2945. if (deadlinks != null)
  2946. {
  2947. i = deadlinks.length - 1;
  2948. do
  2949. {
  2950. deadlinks[i] = deadlinks[i].match(linkRegex)[1];
  2951. }
  2952. while (i--);
  2953. DisplayTheCheckedLinks(deadlinks, 'adead_link');
  2954. }
  2955.  
  2956. if (unavaRegex != null)
  2957. {
  2958. var unavalinks = res.match(unavaRegex);
  2959. if (unavalinks)
  2960. {
  2961. i = unavalinks.length - 1;
  2962. do
  2963. {
  2964. unavalinks[i] = unavalinks[i].match(linkRegex)[1];
  2965. }
  2966. while (i--);
  2967. DisplayTheCheckedLinks(unavalinks, 'unava_link');
  2968. }
  2969. }
  2970. }
  2971. });
  2972. }
  2973. }
  2974. //specialized bulkchecking handlers follow
  2975. function webshareBulkCheck()
  2976. {
  2977. var arr = this.links[0].split("\r\n");
  2978. var i = arr.length;
  2979. while(i--)
  2980. {
  2981. postRequest(arr[i]);
  2982. }
  2983. //function postRequest(api, postData, links, linkRegex, liveRegex, deadRegex, unavaRegex)
  2984. function postRequest(wsLink)
  2985. {
  2986. var id = wsLink.match(/webshare\.cz\/(?:(?:#\/)?file\/)?(\w+)/)[1];
  2987. GM_xmlhttpRequest(
  2988. {
  2989. method: 'POST',
  2990. url: "http://webshare.cz/api/file_info/",
  2991. headers: {
  2992. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  2993. 'Content-type': 'application/x-www-form-urlencoded',
  2994. 'Referer': "",
  2995. },
  2996. data: "wst=&ident=" + id,
  2997. onload: function (result)
  2998. {
  2999. var res = result.responseText;
  3000. if (res.match(/<name>.+?<\/name>/))
  3001. {
  3002. DisplayTheCheckedLinks([id], 'alive_link');
  3003. }
  3004. else
  3005. {
  3006. DisplayTheCheckedLinks([id], 'adead_link');
  3007. }
  3008. }
  3009. });
  3010. }
  3011. }
  3012. //like genBulkCheck, but extabit linkchecker only works when logged in. If not logged in, non-bulk checking has to be used.
  3013. //extabit also doesn't like requests in fast succession, so some delays are added.
  3014. function extabitBulkCheck()
  3015. {
  3016. var timeoutDelay = 0;
  3017. var blockIdx = this.links.length;
  3018. while (blockIdx--)
  3019. {
  3020. postRequest(this.apiUrl, this.postData, this.links[blockIdx],
  3021. this.resLinkRegex, this.resLiveRegex, this.resDeadRegex, this.resUnavaRegex);
  3022. }
  3023. function postRequest(api, postData, links, linkRegex, liveRegex, deadRegex, unavaRegex)
  3024. {
  3025. GM_xmlhttpRequest(
  3026. {
  3027. method: 'POST',
  3028. url: api,
  3029. headers: {
  3030. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  3031. 'Content-type': 'application/x-www-form-urlencoded',
  3032. 'Referer': api,
  3033. 'X-Requested-With': 'XMLHttpRequest'
  3034. },
  3035. data: postData + encodeURIComponent(links),
  3036. onload: function (result)
  3037. {
  3038. var res = result.responseText;
  3039. if (/id="registration_header"/.test(res)) //not logged in, have to use non-bulk
  3040. {
  3041. function geturlfunc(link, tryID) //basically the geturl function with some changes (compacted, displaythecheckedlinkS, multiple tries)
  3042. {
  3043. //GM_log(tryID + ': ' + link);
  3044. GM_xmlhttpRequest(
  3045. {
  3046. method: 'GET',
  3047. url: link,
  3048. 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': ""},
  3049. onload: function(result2)
  3050. {
  3051. var res2 = result2.responseText;
  3052. var res2Status = result.status;
  3053. if (/download-file-btn/.test(res2)) {DisplayTheCheckedLinks([link], 'alive_link'); return;}
  3054. if (/Search mirrors|id="mirrb"/.test(res2) || res2Status==404) {DisplayTheCheckedLinks([link], 'adead_link'); return;}
  3055. if (/currently unavailable|temporarily unavailable|disponible en estos momentos|vorläufig unerreichbar|Файл временно недоступен/.test(res2) || res2Status == 500 || res2Status == 503)
  3056. {
  3057. if (tryID < 7)
  3058. setTimeout(function(){geturlfunc(link,tryID+1)}, tryID * 1000 + (Math.random() * tryID * 2000));
  3059. else
  3060. {DisplayTheCheckedLinks([link], 'unava_link'); return;}
  3061. }
  3062. }
  3063. });
  3064. }
  3065. //split the hrefs and check them one by one
  3066. GM_log('Using slow extabit.com link checking. Log in to extabit to use fast bulk checking.');
  3067. links = links.split('\n');
  3068. var i = links.length;
  3069. while (i--)
  3070. {
  3071. if (links[i])
  3072. {
  3073. (function(i){setTimeout(function(){geturlfunc(links[i],1)}, timeoutDelay);})(i);
  3074. timeoutDelay += 500;
  3075. }
  3076. }
  3077. return;
  3078. }
  3079. var i;
  3080.  
  3081. var livelinks = res.match(liveRegex);
  3082. var deadlinks = res.match(deadRegex);
  3083. if (livelinks != null)
  3084. {
  3085. i = livelinks.length - 1;
  3086. do
  3087. {
  3088. livelinks[i] = livelinks[i].match(linkRegex)[1];
  3089. }
  3090. while (i--);
  3091. DisplayTheCheckedLinks(livelinks, 'alive_link');
  3092. }
  3093.  
  3094. if (deadlinks != null)
  3095. {
  3096. i = deadlinks.length - 1;
  3097. do
  3098. {
  3099. deadlinks[i] = deadlinks[i].match(linkRegex)[1];
  3100. }
  3101. while (i--);
  3102. DisplayTheCheckedLinks(deadlinks, 'adead_link');
  3103. }
  3104.  
  3105. if (unavaRegex != null)
  3106. {
  3107. var unavalinks = res.match(unavaRegex);
  3108. if (unavalinks)
  3109. {
  3110. i = unavalinks.length - 1;
  3111. do
  3112. {
  3113. unavalinks[i] = unavalinks[i].match(linkRegex)[1];
  3114. }
  3115. while (i--);
  3116. DisplayTheCheckedLinks(unavalinks, 'unava_link');
  3117. }
  3118. }
  3119. }
  3120. });
  3121. }
  3122. }
  3123. function netloadBulkCheck()
  3124. {
  3125. var blockIdx = this.links.length;
  3126.  
  3127. while (blockIdx--)
  3128. {
  3129. postRequest(this.apiUrl, this.postData, this.links[blockIdx],
  3130. this.resLinkRegex, this.resLiveRegex, this.resDeadRegex, this.unavaRegex);
  3131. }
  3132. function postRequest(api, postData, links, linkRegex, liveRegex, deadRegex, unavaRegex)
  3133. {
  3134. GM_xmlhttpRequest(
  3135. {
  3136. method: 'POST',
  3137. url: api,
  3138. headers: {
  3139. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  3140. 'Content-type': 'application/x-www-form-urlencoded',
  3141. 'Referer': ""
  3142. },
  3143. data: postData + encodeURIComponent(links),
  3144. onload: function (result)
  3145. {
  3146. var res = result.responseText;
  3147. var i;
  3148.  
  3149. var livelinks = res.match(liveRegex);
  3150. var deadlinks = res.match(deadRegex);
  3151. if (livelinks != null)
  3152. {
  3153. i = livelinks.length - 1;
  3154. do
  3155. {
  3156. recheckLink(livelinks[i].match(linkRegex)[1]);
  3157. }
  3158. while(i--);
  3159. }
  3160.  
  3161. if (deadlinks != null)
  3162. {
  3163. i = deadlinks.length - 1;
  3164. do
  3165. {
  3166. deadlinks[i] = deadlinks[i].match(linkRegex)[1];
  3167. }
  3168. while (i--);
  3169. DisplayTheCheckedLinks(deadlinks, 'adead_link');
  3170. }
  3171. }
  3172. });
  3173. }
  3174. function recheckLink(link)
  3175. {
  3176. var link = link;
  3177. GM_xmlhttpRequest(
  3178. {
  3179. method: 'GET',
  3180. url: 'http://netload.in/datei' + link + '.htm',
  3181. headers: {
  3182. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3183. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  3184. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  3185. 'Referer': ""
  3186. },
  3187. onload: function (result)
  3188. {
  3189. var res = result.responseText;
  3190.  
  3191. if (res.match(/dl_first_file_download">|download_limit\.gif/))
  3192. {
  3193. DisplayTheCheckedLinks([link], 'alive_link');
  3194. return;
  3195. }
  3196.  
  3197. if (res.match(/achtung\.jpg"/))
  3198. {
  3199. DisplayTheCheckedLinks([link], 'adead_link');
  3200. }
  3201. },
  3202. onerror: function ()
  3203. {
  3204. displayTheCheckedLink(link, 'unava_link');
  3205. }
  3206. });
  3207. }
  3208. }
  3209.  
  3210. function depositfilesBulkCheck()
  3211. {
  3212. var arr = this.links[0].split("\r\n");
  3213. var i = arr.length;
  3214. var seqno = Math.floor(Math.random()*1000000000);
  3215. while(i--)
  3216. {
  3217. DFpostRequest(arr[i]);
  3218. }
  3219. }
  3220. function DFpostRequest(DFLink)
  3221. {
  3222. DFLink=DFLink.replace('depositfiles.lt/','depositfiles.com/');
  3223. DFLink=DFLink.replace('depositfiles.org/','depositfiles.com/');
  3224. DFLink=DFLink.replace('dfiles.ru/','depositfiles.com/');
  3225. DFLink=DFLink.replace('dfiles.eu/','depositfiles.com/');
  3226. DFLink=DFLink.replace('depositfiles.com/en/','depositfiles.com/');
  3227. var id = DFLink.match(/depositfiles\.com\/files\/(\w+)/)[1];
  3228. GM_xmlhttpRequest(
  3229. {
  3230. method: "GET",
  3231. url: "http://depositfiles.com/api/get_download_info.php?id=" + id + "&format=json",
  3232. headers: {
  3233. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3234. 'Content-Type': 'application/x-www-form-urlencoded',
  3235. 'Referer': ""
  3236. },
  3237. onload: function (result)
  3238. {
  3239. var res = result.responseText;
  3240. if (res.match('(?:no_file|file_ban)'))
  3241. {
  3242. DisplayTheCheckedLinks([id], 'adead_link');
  3243. return;
  3244. }
  3245. if (res.match('"download_li(?:nk|mit)|password_check|file_storage"'))
  3246. {
  3247. DisplayTheCheckedLinks([id], 'alive_link');
  3248. return;
  3249. }
  3250. DisplayTheCheckedLinks([id], 'unava_link');
  3251. }
  3252. });
  3253. }
  3254.  
  3255. function megaBulkCheck()
  3256. {
  3257. var arr = this.links[0].split("\r\n");
  3258. var i = arr.length;
  3259. var seqno = Math.floor(Math.random()*1000000000);
  3260. while(i--)
  3261. {
  3262. postRequest(arr[i]);
  3263. }
  3264. function postRequest(megaLink)
  3265. {
  3266. megaLink=megaLink.replace('mega.nz/','mega.co.nz/');
  3267. var id = megaLink.match(/mega\.co\.nz\/#!(\w+)(?:!\w+)?/)[1];
  3268. GM_xmlhttpRequest(
  3269. {
  3270. method: "POST",
  3271. url: 'https://g.api.mega.co.nz/cs?id=' + seqno++,
  3272. data: '[{"a":"g","p":"' + id + '","ssl": "1"}]',
  3273. headers: {
  3274. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3275. 'Content-Type': 'application/xml',
  3276. 'Referer': "https://mega.co.nz/"
  3277. },
  3278. onload: function (result)
  3279. {
  3280. var res = $.parseJSON(result.responseText.match(/\[(.+?)\]/)[1]);
  3281. if ((typeof res == "number" && (res == -9 || res == -16 || res == -6)) || res.d)
  3282. {
  3283.  
  3284. DisplayTheCheckedLinks([id], 'adead_link');
  3285. }
  3286. if (res.at)
  3287. {
  3288. DisplayTheCheckedLinks([id], 'alive_link');
  3289. }
  3290. if (res.e == "ETEMPUNAVAIL")
  3291. {
  3292. DisplayTheCheckedLinks([id], 'unava_link');
  3293. }
  3294. }
  3295. });
  3296. }
  3297.  
  3298. }
  3299.  
  3300. function oboomBulk() {
  3301. var a = [], b = [], c = [];
  3302. var array = this.links;
  3303.  
  3304. GM_xmlhttpRequest({
  3305. method: 'GET',
  3306. url: 'https://www.oboom.com/1/guestsession',
  3307. headers: {
  3308. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  3309. 'Content-type': 'application/x-www-form-urlencoded',
  3310. 'Referer': 'https://www.oboom.com',
  3311. 'X-Requested-With': 'XMLHttpRequest'
  3312. },
  3313. onload: function(result) {
  3314. var blockIdx = array.length;
  3315. var token = JSON.parse(result.responseText)[1];
  3316. while (blockIdx--) {
  3317. startCheck(array[blockIdx].split('\r\n'), token);
  3318. }
  3319. }
  3320. });
  3321.  
  3322. function startCheck(links, token) {
  3323. GM_xmlhttpRequest({
  3324. method: 'POST',
  3325. url: "https://api.oboom.com/1/info",
  3326. headers: {
  3327. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  3328. 'Content-type': 'application/x-www-form-urlencoded',
  3329. 'Referer': 'https://www.oboom.com/',
  3330. 'X-Requested-With': 'XMLHttpRequest'
  3331. },
  3332. data: "token=" + token + "&items=" + links.join(","),
  3333. onload: function(result) {
  3334. var res = JSON.parse(result.responseText)[1];
  3335. var i = res.length, s;
  3336.  
  3337. while (i--) {
  3338. s = res[i].state;
  3339. if (s == 'online') a.push(res[i].id);
  3340. 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);
  3341. else c.push(res[i].id);
  3342. }
  3343.  
  3344. if (a.length > 0) DisplayTheCheckedLinks(a, 'alive_link');
  3345. if (b.length > 0) DisplayTheCheckedLinks(b, 'adead_link');
  3346. if (c.length > 0) DisplayTheCheckedLinks(c, 'unava_link');
  3347. }
  3348. });
  3349. }
  3350. }
  3351. function linksaveBulkCheck()
  3352. {
  3353. var arr = this.links[0].split("\r\n");
  3354. var i = arr.length;
  3355. while(i--)
  3356. {
  3357. postRequest(arr[i]);
  3358. }
  3359. function postRequest(lsLink)
  3360. {
  3361. GM_xmlhttpRequest(
  3362. {
  3363. method: "GET",
  3364. url: lsLink + '-t.jpg',
  3365. headers: {
  3366. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3367. 'Accept': 'text/xml',
  3368. 'Referer': ""
  3369. },
  3370. onload: function (result)
  3371. {
  3372. var imgLen = result.responseHeaders.match(/Content-Length: (\d+)/)[1];
  3373. if (imgLen == 965) //online
  3374. {
  3375. DisplayTheCheckedLinks([lsLink], 'alive_link');
  3376. }
  3377.  
  3378. if (imgLen == 972) //offline
  3379. {
  3380. DisplayTheCheckedLinks([lsLink], 'adead_link');
  3381. }
  3382. if (imgLen == 978) //unava
  3383. {
  3384. DisplayTheCheckedLinks([lsLink], 'unava_link');
  3385. }
  3386. }
  3387. });
  3388. }
  3389.  
  3390. }
  3391. function linkcryptBulkCheck()
  3392. {
  3393. var arr = this.links[0].split("\r\n");
  3394. var i = arr.length;
  3395. while(i--)
  3396. {
  3397. postRequest(arr[i]);
  3398. }
  3399. function postRequest(lcLink)
  3400. {
  3401. GM_xmlhttpRequest(
  3402. {
  3403. method: "GET",
  3404. url: 'http://linkcrypt.ws/api.html?api=status_V1&folderKey=' + lcLink.match(/dir\/(\w+)/)[1],
  3405. headers: {
  3406. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3407. 'Accept': 'text/xml',
  3408. 'Referer': ""
  3409. },
  3410. onload: function (result)
  3411. {
  3412. var res = result.responseText;
  3413. if (res.match(/<errorCode>1101|folderStatus>[23]/)) //Offline status
  3414. {
  3415. DisplayTheCheckedLinks([lcLink], 'adead_link');
  3416. return;
  3417. }
  3418. if (res.match(/folderStatus>1/)) //Online status
  3419. {
  3420. DisplayTheCheckedLinks([lcLink], 'alive_link');
  3421. }
  3422. else
  3423. {
  3424. DisplayTheCheckedLinks([lcLink], 'unava_link');
  3425. }
  3426. }
  3427. });
  3428. }
  3429. }
  3430.  
  3431. function megashareBulkCheck()
  3432. {
  3433. var arr = this.links[0].split("\r\n");
  3434. var i = arr.length;
  3435. while(i--)
  3436. {
  3437. postRequest(arr[i]);
  3438. }
  3439. function postRequest(msLink)
  3440. {
  3441. GM_xmlhttpRequest(
  3442. {
  3443. method: "GET",
  3444. url: msLink,
  3445. headers: {
  3446. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3447. 'Content-Type': 'application/x-www-form-urlencoded',
  3448. 'Referer': ""
  3449. },
  3450. onload: function (result)
  3451. {
  3452. var prZVal = result.responseText.match(/name="(\d+prZVal)" value="(\d+)">/);
  3453. var btn3Name = result.responseText.match(/src="images\/dwn-btn3\.gif" name="(.+?)"/);
  3454. if ((prZVal == null) || (btn3Name == null))
  3455. {
  3456. return;
  3457. }
  3458. GM_xmlhttpRequest(
  3459. {
  3460. method: "POST",
  3461. url: msLink,
  3462. headers: {
  3463. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3464. 'Content-Type': 'application/x-www-form-urlencoded',
  3465. 'Referer': ""
  3466. },
  3467. data: prZVal[1] + "=" + prZVal[2] + '&' + btn3Name[1] + '.x=1&' + btn3Name[1] + '.y=1',
  3468. onload: function (result)
  3469. {
  3470. var res = result.responseText;
  3471. if (res.match(/<div id="err">/))
  3472. {
  3473. DisplayTheCheckedLinks([msLink.match(/\.com(\/\d+)/)[1]], 'adead_link');
  3474. }
  3475. else
  3476. {
  3477. DisplayTheCheckedLinks([msLink.match(/\.com(\/\d+)/)[1]], 'alive_link');
  3478. }
  3479. }
  3480. });
  3481. }
  3482. });
  3483. }
  3484. }
  3485. function ncryptBulkCheck()
  3486. {
  3487. var arr = this.links[0].split("\r\n");
  3488. var i = arr.length;
  3489. while(i--)
  3490. {
  3491. postRequest(arr[i]);
  3492. }
  3493. function postRequest(ncryptLink)
  3494. {
  3495. GM_xmlhttpRequest(
  3496. {
  3497. method: "POST",
  3498. url: 'http://ncrypt.in/api_status.php',
  3499. headers: {
  3500. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3501. 'Content-Type': 'application/x-www-form-urlencoded',
  3502. 'Referer': ""
  3503. },
  3504. data: 'link=' + encodeURI(ncryptLink),
  3505. onload: function (result)
  3506. {
  3507. var foldStatus = result.responseText.match(/(?:offline|online);/);
  3508. switch(foldStatus + ""){
  3509. case "offline;": DisplayTheCheckedLinks([ncryptLink], 'adead_link'); break;
  3510. case "online;": DisplayTheCheckedLinks([ncryptLink], 'alive_link'); break;
  3511. default: DisplayTheCheckedLinks([ncryptLink], 'unava_link');
  3512. }
  3513. }
  3514. });
  3515. }
  3516. }
  3517. function hellshareBulkCheck()
  3518. {
  3519. var links = this.links;
  3520. GM_xmlhttpRequest(
  3521. {
  3522. method: "GET",
  3523. url: 'http://www.hellshare.com',
  3524. headers: {
  3525. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3526. 'Accept': 'text/xml',
  3527. 'Referer': ""
  3528. },
  3529. onload: function (result)
  3530. {
  3531. var domain = result.responseText.match(/param_rau = "www\.hellshare\.(\w+)"/)[1];
  3532.  
  3533. var loc = 'check=Zkontrolovat+dostupnost+soubor%C5%AF&links=';
  3534. if (domain == 'sk')
  3535. loc = 'check=Skontrolova%C5%A5&links=';
  3536. if (domain == 'com')
  3537. loc = 'check=Check+availability&links=';
  3538. if (domain == 'hu')
  3539. loc = 'check=Kontrol%C3%A1lj&links=';
  3540. if (domain == 'pl')
  3541. loc = 'check=Sprawd%C5%BC+dost%C4%99pno%C5%9B%C4%87+plik%C3%B3w&links=';
  3542.  
  3543. genBulkCheck.call({ links: links,
  3544. apiUrl: 'http://www.hellshare.' + domain + '/linkchecker?do=linkChecker-linkcheckerform-submit',
  3545. postData: loc,
  3546. resLinkRegex: /hellshare\.(?:cz|com|sk|hu|pl)\/(?:[\w-\.]+\/|)([\w-\.]+\/\d{5,})/,
  3547. 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,
  3548. resDeadRegex: /<span style="color:gray">.*?<\/span> - <strong>/g,
  3549. resUnavaRegex: null
  3550. });
  3551. }
  3552. });
  3553. }
  3554. /**
  3555. * Displays check result
  3556. * @param {Array} Array of links or link fragments.
  3557. * @param {String} Check result status -> ['alive_link'|'adead_link'|'unava_link']
  3558. */
  3559. function DisplayTheCheckedLinks(links, resultStatus)
  3560. {
  3561. //(a[href*=link_1], a[href*=link_2], ..., a[href*=link_n])
  3562. var $links = $('a[href*="' + links.join('"], a[href*="') + '"]');
  3563. if (Do_not_linkify_DL_links)
  3564. { //TODO into separate jQuery function
  3565. $links.replaceWith(function(){
  3566. return '<span href="' + this.href + '">' + $(this).text() + '</span>';
  3567. });
  3568. $links = $('span[href*="' + links.join('"], span[href*="') + '"]');
  3569. }
  3570. $links.removeClass().addClass(resultStatus);
  3571. $links.each(function() {
  3572. this.href = Ref_anonymize_service + $(this).attr("href");
  3573. });
  3574. switch(resultStatus)
  3575. {
  3576. case "alive_link": cLinksAlive += $links.length;
  3577. if (Display_tooltip_info) $links.mouseover(displayTooltipInfo);
  3578. break;
  3579. case "adead_link": cLinksDead += $links.length;
  3580. if (Display_tooltip_info) $links.mouseover(displayTooltipError);
  3581. break;
  3582. case "unava_link": cLinksUnava += $links.length; break;
  3583. default:
  3584. }
  3585. cLinksProcessed += $links.length;
  3586. }
  3587. }
  3588. // starts bulkchecking
  3589. //
  3590. // params
  3591. // filterId [string] restricts link detection with passed id attribute
  3592. function startBulkCheck(filterId)
  3593. {
  3594. var cHosts = bulkHosts.length;
  3595. if (cHosts == 0) //no filehostings selected
  3596. return;
  3597. // STEP 1 linkify the links
  3598. var linkifyRegex = '';
  3599. var hostIdx = cHosts;
  3600. while(hostIdx--)
  3601. {
  3602. linkifyRegex += bulkHosts[hostIdx].linkRegex + "|";
  3603. }
  3604. linkifyRegex = linkifyRegex.replace(/\|$/, '');
  3605. linkify(linkifyRegex);
  3606. //
  3607. //STEP 2 detect link objects
  3608. var xpathAll = '';
  3609. var hostIdx = cHosts;
  3610. while(hostIdx--)
  3611. {
  3612. xpathAll += bulkHosts[hostIdx].xpath + "|";
  3613. }
  3614. xpathAll = xpathAll.replace(/\]\|\/\/a\[/g, " or ");
  3615. xpathAll = xpathAll.replace(/\]\|/, ')]');
  3616. if (filterId != null) //insert id restriction in the xpath
  3617. {
  3618. xpathAll = xpathAll.replace(/\[/, "[@class='" + filterId + "' and (");
  3619. }
  3620. else
  3621. {
  3622. xpathAll = xpathAll.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  3623. }
  3624. var links = document.evaluate(xpathAll, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  3625. if (filterId == null)
  3626. {
  3627. cLinksTotal += links.snapshotLength;
  3628. }
  3629. //
  3630. //STEP 3 bind links with hostings
  3631. var linkIdx = links.snapshotLength;
  3632. var href = null;
  3633. if (linkIdx == 0) // no links found
  3634. return;
  3635. var name;
  3636. while (linkIdx--)
  3637. {
  3638. href = links.snapshotItem(linkIdx).href;
  3639. try // DO NOT REMOVE, filters crap that went through xpath detection
  3640. {
  3641. name = gimmeHostName(href);
  3642. if (href.match(bulkHostNames[name].linkRegexObject) != null)
  3643. bulkHostNames[name].links.push(href);
  3644. }
  3645. catch(e)
  3646. {
  3647.  
  3648. }
  3649. }
  3650. //
  3651. //STEP 4 process the links for each filehosting
  3652. var hostIdx = cHosts;
  3653. var host;
  3654. var m,n;
  3655. var arr;
  3656. while (hostIdx--)
  3657. {
  3658. host = bulkHosts[hostIdx];
  3659. arr = host.links;
  3660. if (arr.length == 0) //no links for this hosting, skip
  3661. {
  3662. continue;
  3663. }
  3664. //links match corrections
  3665. if (host.corrMatch != null)
  3666. {
  3667. var idx = arr.length;
  3668. while (idx--)
  3669. {
  3670. arr[idx] = arr[idx].match(host.corrMatch)[1];
  3671. }
  3672. }
  3673. //links replace corrections
  3674. if ((host.corrReplWhat != null) && (host.corrReplWith != null))
  3675. {
  3676. var idx = arr.length;
  3677. while (idx--)
  3678. {
  3679. arr[idx] = arr[idx].replace(host.corrReplWhat, host.corrReplWith);
  3680. }
  3681. }
  3682. m = arr.length;
  3683. n = host.blockSize;
  3684. if (m > n)
  3685. {
  3686. //insert block separators (RAND_STRING) into the array
  3687. for(var i = n; i < m; i += n + 1)
  3688. {
  3689. arr.splice(i, 0, RAND_STRING);
  3690. }
  3691. }
  3692.  
  3693. host.func.call({ links: arr.join(host.splitSeparator).split(RAND_STRING),
  3694. apiUrl: host.apiUrl,
  3695. postData: host.postData,
  3696. resLinkRegex: host.resLinkRegex,
  3697. resLiveRegex: host.resLiveRegex,
  3698. resDeadRegex: host.resDeadRegex,
  3699. resUnavaRegex: host.resUnavaRegex
  3700. });
  3701. //clean up
  3702. arr.length = 0;
  3703. }
  3704. //
  3705.  
  3706. function gimmeHostName(link)
  3707. {
  3708. return link.replace(/https?:\/\/.*?http(s)?:\/\//, "http$1://").match(/https?:\/\/(?:www\.|[\w\.])*?([\w-]+)\.(?:co\.uk|co\.nz|\w+)\//)[1];
  3709. }
  3710. }
  3711. function checkLinks(filterId)
  3712. {
  3713. startBulkCheck(filterId);
  3714. start(filterId);
  3715. }
  3716.  
  3717. /**
  3718. * Initialises progress box including event binding and CSS
  3719. */
  3720. function initProgressBox()
  3721. {
  3722. if ($("#warlc-progressbox").length > 0)
  3723. return;
  3724. //progressbox css change size and color of progress box
  3725. GM_addStyle("#warlc-progressbox {position:fixed; background:DimGray;" + Progress_box_background_color +
  3726. "; opacity:" + (Progress_box_opacity / 100) +
  3727. "; bottom:" + Progress_box_pos_bottom +
  3728. "px; right:" + Progress_box_pos_right +
  3729. "px; padding:5px; font-size:20px; font-weight:bold; cursor:default;}\
  3730. \
  3731. .warlc-progressbar {text-align:center; color: DimGray; height:2px; margin-bottom:2px;}\
  3732. \
  3733. .warlc-progressitem {}\
  3734. \
  3735. .alive {color:#00FF7F; " + Live_links_color +
  3736. "; background:transparent url(" + alive_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;} .dead {color:" + Dead_links_color +
  3737. "; background:transparent url(" + adead_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;} .unava {color: " + Temp_unavailable_links_color +
  3738. "; background:transparent url(" + unava_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;} .processing {color:Black; " + Container_links_color +
  3739. "; background:transparent url(" + processing_link_gif + ") no-repeat scroll 100% 50%;padding-right:15px;} .prem {color:" + Premium_links_color +
  3740. "; background:transparent url(" + prem_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;}"
  3741. );
  3742. //
  3743. $('body').append(' <div id="warlc-progressbox">\
  3744. <div class="warlc-progressbar"></div>\
  3745. <span class="warlc-progressitem alive"></span> - \
  3746. <span class="warlc-progressitem dead"></span> - \
  3747. <span class="warlc-progressitem unava"></span> - \
  3748. <span class="warlc-progressitem prem"></span> - \
  3749. <span class="warlc-progressitem processing"></span>\
  3750. </div>');
  3751. $('#warlc-progressbox').hide().click(function(){
  3752. clearInterval(intervalId);
  3753. $(this).hide();
  3754. return false;
  3755. });
  3756. $(".warlc-progressbar").progressbar({complete: function(){
  3757. $(this).fadeOut();
  3758. clearInterval(intervalId); //stop refreshing the stats
  3759. }
  3760. })
  3761. .one('progressbarchange', function(){$('#warlc-progressbox').show();});
  3762. }
  3763. /**
  3764. * Updates progress data in progress box
  3765. */
  3766. function updateProgress()
  3767. {
  3768. $("#warlc-progressbox").attr('aria-valuenow', Math.round(((100 / cLinksTotal) * cLinksProcessed)));
  3769. if (cLinksTotal) // some links were detected on page
  3770. {
  3771. var percProgress = Math.round(((100 / cLinksTotal) * cLinksProcessed));
  3772. var $progressItems = $('#warlc-progressbox > .warlc-progressitem');
  3773. $(".warlc-progressbar").progressbar('option', 'value', percProgress);
  3774. if ((cLinksTotal - cLinksProcessed) == 0)
  3775. {
  3776. $progressItems.first().text(cLinksAlive)
  3777. .next().text(cLinksDead)
  3778. .next().text(cLinksUnava)
  3779. .next().text(cLinksprem)
  3780. .next().remove();
  3781. $('#warlc-progressbox').html($('#warlc-progressbox').html().substr(0,$('#warlc-progressbox').html().lastIndexOf(">")+1));
  3782. $('#warlc-progressbox div:first-child').remove();
  3783. }
  3784. else
  3785. {
  3786. $progressItems.first().text(cLinksAlive)
  3787. .next().text(cLinksDead)
  3788. .next().text(cLinksUnava)
  3789. .next().text(cLinksprem)
  3790. .next().text(cLinksTotal - cLinksProcessed);
  3791. }
  3792. }
  3793. }
  3794.  
  3795. function check_all_links()
  3796. {
  3797. add_WARLC_style();
  3798.  
  3799. if (Show_progress_stats)
  3800. {
  3801. initProgressBox();
  3802. intervalId = setInterval(function(){updateProgress();}, Progress_box_refresh_rate);
  3803. }
  3804.  
  3805. startBulkCheck(null);
  3806. start(null);
  3807.  
  3808. if (!containers_processed)
  3809. {
  3810. processContainers();
  3811. }
  3812. }
  3813.  
  3814. //Copies all found dead links to clipboard - right now for Scriptish only
  3815. function copy_dead_to_clipboard()
  3816. {
  3817. initClipBoardTools();
  3818.  
  3819. var deadlinksxpath = "//.[@class='adead_link']";
  3820.  
  3821. var foundlinks = document.evaluate(deadlinksxpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  3822. var foundlinkstext = '';
  3823.  
  3824. var foundlinkIdx = foundlinks.snapshotLength;
  3825.  
  3826. while(foundlinkIdx--)
  3827. {
  3828. if (foundlinks.snapshotItem(foundlinkIdx).innerHTML != ' x')
  3829. foundlinkstext += foundlinks.snapshotItem(foundlinkIdx).innerHTML.replace(/\[\/hide:\w+\]/,"") + '\n';
  3830. }
  3831.  
  3832. unsafeWindow.copyToClipboard(foundlinkstext);
  3833. }
  3834.  
  3835. function toggle_autocheck()
  3836. {
  3837. var currentState = GM_getValue("Autocheck", false);
  3838. GM_setValue("Autocheck", !currentState);
  3839.  
  3840. if (currentState == true)
  3841. {
  3842. sendMessage('Autocheck disabled', 'red');
  3843. }
  3844. else
  3845. {
  3846. sendMessage('Autocheck enabled', 'SpringGreen');
  3847. }
  3848. }
  3849. function toggle_Enable_Anonymizer()
  3850. {
  3851. var currentState = GM_getValue("Enable_Anonymizer", false);
  3852. GM_setValue("Enable_Anonymizer", !currentState);
  3853.  
  3854. if (currentState == true)
  3855. {
  3856. GM_setValue("Ref_anonymize_service", "");
  3857. sendMessage('Anonymizer Disabled', 'red');
  3858. }
  3859. else
  3860. {
  3861. GM_setValue("Ref_anonymize_service", "http://hiderefer.com/?");
  3862. sendMessage('Anonymizer Enabled', 'SpringGreen');
  3863. }
  3864. }
  3865.  
  3866. function KeyDownHandler(event)
  3867. {
  3868. var kcode = (event.keyCode) ? event.keyCode : event.which;
  3869. if (event.ctrlKey && event.altKey)
  3870. {
  3871. switch(kcode)
  3872. {
  3873. case 65 : check_all_links(); break;
  3874. case 67 : configuration(); break;
  3875. case 68 : copy_dead_to_clipboard(); break;
  3876. case 87 : toggle_autocheck(); break;
  3877. case 90 : toggle_Enable_Anonymizer(); break;
  3878. }
  3879. }
  3880. }
  3881.  
  3882. //
  3883. //
  3884. // SCRIPT EXECUTION START POINT
  3885. //
  3886. //
  3887. // Safari specific GM_getResourceText override
  3888. if (navigator.userAgent.indexOf('Safari') != -1 && navigator.userAgent.indexOf('Chrome') == -1)
  3889. {
  3890. GM_getResourceText = function(res) {
  3891. var $cssText = GM_getValue("jquery_css", "");
  3892. if ($cssText == "")
  3893. {
  3894. GM_xmlhttpRequest(
  3895. {
  3896. method: 'GET',
  3897. url: 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css',
  3898. onload: function (result)
  3899. {
  3900. GM_setValue("jquery_css", result.responseText);
  3901. window.location.reload();
  3902. }
  3903. });
  3904. }
  3905. else
  3906. {
  3907. return $cssText;
  3908. }
  3909. }
  3910. }
  3911. var jQueryUICSS = GM_getResourceText("jQueryUICSS");
  3912. GM_addStyle(jQueryUICSS);
  3913. //init the stuff
  3914. setVariables();
  3915. initBulkCheck();
  3916. //init info boxes
  3917. messageBox.style.position = 'fixed';
  3918. messageBox.style.top = '20px';
  3919. messageBox.style.left = '10px';
  3920. messageBox.style.opacity = '0.85';
  3921. messageBox.style.background = 'DimGray';
  3922. messageBox.style.fontSize = '36px';
  3923. document.body.appendChild(messageBox);
  3924.  
  3925. //register GM menu commands & keyboard shortcut event handler
  3926. if (Keyboard_functions)
  3927. {
  3928. $(document).keydown(KeyDownHandler);
  3929. GM_registerMenuCommand("[W.A.R. Links Checker] Configuration (" + first_key_keycodename + "+" + second_key_keycodename + "+" + String.fromCharCode(CONFIGURATION_KEYCODE) + ")", configuration);
  3930. 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);
  3931. }
  3932. else
  3933. {
  3934. GM_registerMenuCommand("[W.A.R. Links Checker] Configuration", configuration);
  3935. GM_registerMenuCommand("[W.A.R. Links Checker] Check The Links In This Page", check_all_links);
  3936. }
  3937.  
  3938. //start linkchecking
  3939. if (Autocheck)
  3940. {
  3941. $(document).ready(check_all_links);
  3942. }
  3943.  
  3944. //
  3945. //
  3946. // SCRIPT EXECUTION END POINT
  3947. //
  3948. //
  3949.  
  3950. //shows configuration box
  3951. function configuration()
  3952. {
  3953.  
  3954. //prevent multiple creating of config window
  3955. if ($("#hideshow").length)
  3956. {
  3957. $("#hideshow").show();
  3958. return;
  3959. }
  3960.  
  3961. var configcss = '\
  3962. .popup_block .popup fieldset{\
  3963. padding: 1%;\
  3964. border-style: solid;\
  3965. border-width: 1px;\
  3966. border-color: gray;\
  3967. margin-bottom: 1px;\
  3968. }\
  3969. #h3hideshowtitle{\
  3970. font-size: 2em;\
  3971. }\
  3972. #h3hideshow{\
  3973. font-size: 1.5em;\
  3974. }\
  3975. #imghideshow {\
  3976. border: none;\
  3977. }\
  3978. #plusimage{\
  3979. display:inline;\
  3980. }\
  3981. #hideshow {\
  3982. position: fixed;\
  3983. width: 100%;\
  3984. height: 100%;\
  3985. top: 0;\
  3986. left: 0;\
  3987. font-size:12px;\
  3988. z-index:2147483645;\
  3989. text-align:left;\
  3990. }\
  3991. #fade {\
  3992. background: #000;\
  3993. position: fixed;\
  3994. width: 100%;\
  3995. height: 100%;\
  3996. opacity: .80;\
  3997. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";\
  3998. left: 0;\
  3999. z-index: 10;\
  4000. }\
  4001. .popup_block {\
  4002. font-family:verdana;\
  4003. color:black;\
  4004. background: #ddd;\
  4005. padding: 10px 20px;\
  4006. border: 2px solid DarkOrange;\
  4007. float: left;\
  4008. width: 700px;\
  4009. position: absolute;\
  4010. top: 7%;\
  4011. left: 50%;\
  4012. bottom: 7%;\
  4013. margin: 0 0 0 -350px;\
  4014. -moz-border-radius:10px;\
  4015. z-index: 100;\
  4016. \
  4017. }\
  4018. .popup_block .popup {\
  4019. float: left;\
  4020. width: 100%;\
  4021. background: #fff;\
  4022. margin: 10px 0;\
  4023. padding: 0px 0 0px;\
  4024. border-left: 1px solid #bbb;\
  4025. border-top: 1px solid #bbb;\
  4026. border-right: 1px solid #bbb;\
  4027. }\
  4028. #h3hideshow{\
  4029. margin: 1px 0 0px;\
  4030. padding: 1px 10px;\
  4031. border-bottom: 1px solid #bbb;\
  4032. font-size: 1.5em;\
  4033. font-weight: normal;\
  4034. cursor:pointer;\
  4035. background:#DDDDDD none repeat scroll 0 0;\
  4036. }\
  4037. #h3hideshow:hover{\
  4038. background:#C0BEBE none repeat scroll 0 0;\
  4039. }\
  4040. #h3hideshowtitle{\
  4041. margin: 2px 0 0px;\
  4042. padding: 7px 10px;\
  4043. border-bottom: 1px solid #bbb;\
  4044. font-size: 1.5em;\
  4045. font-weight: normal;\
  4046. }\
  4047. .popup_block .popup a {\
  4048. color:DarkSkyBlue;\
  4049. text-decoration:none;\
  4050. }\
  4051. .popup p {\
  4052. padding: 1px 10px;\
  4053. margin: 0px 0;\
  4054. -x-system-font:none;\
  4055. font-family:verdana,geneva,lucida,"lucida grande",arial,helvetica,sans-serif;\
  4056. font-size:10pt;\
  4057. font-size-adjust:none;\
  4058. font-stretch:normal;\
  4059. font-style:normal;\
  4060. font-variant:normal;\
  4061. font-weight:normal;\
  4062. line-height:normal;\
  4063. }\
  4064. #sites {\
  4065. padding: 1px 10px;\
  4066. margin: 0px 0;display:inline-block;width:16em;\
  4067. }\
  4068. #dev_ver {\
  4069. color: #00FF00;\
  4070. background: Black;\
  4071. text-align: right;\
  4072. }\
  4073. #sites_suspended {\
  4074. padding: 1px 10px;\
  4075. margin: 0px 0;display:inline-block;width:16em;\
  4076. text-decoration: line-through;\
  4077. }\
  4078. .popup img.cntrl {\
  4079. position: absolute;\
  4080. right: -15px;\
  4081. top: -15px;\
  4082. }\
  4083. #bulk {\
  4084. font-size:8pt;\
  4085. color:orange;\
  4086. padding: 1px 10px;\
  4087. margin: 0px 0;\
  4088. display:inline-block;\
  4089. width:100px;\
  4090. }\
  4091. #note {\
  4092. font-size:7pt;\
  4093. color:gray;\
  4094. padding: 1px 10px;\
  4095. margin: 0px 0;display:inline-block;\
  4096. min-width:100px;\
  4097. }\
  4098. #rednote {\
  4099. font-size:7pt;\
  4100. color:red;\
  4101. padding: 1px 10px;\
  4102. margin: 0px 0;display:inline-block;\
  4103. }\
  4104. #configinfo {\
  4105. font-size:8pt;\
  4106. color:gray;\
  4107. padding: 1px 10px;\
  4108. margin: 0px 0;display:inline-block;width:60em;\
  4109. }\
  4110. #refAnonymizer, #inputColorLive, #inputColorprem, #hostSearchBox2, #hostSearchBox, #inputColorDead, #inputColorTemp, #inputColorCont, #selectAllButton, #selectNoneButton, #invertButton, #selectAllButton2, #selectNoneButton2, #invertButton2 {\
  4111. color:black;\
  4112. border-style: solid;\
  4113. border-width: 1px;\
  4114. border-color: gray;\
  4115. }\
  4116. #h3hideshowcontent {\
  4117. min-height:220px;\
  4118. max-height:220px;\
  4119. overflow:auto;\
  4120. display: none;\
  4121. padding: 10px 10px;\
  4122. }\
  4123. #specinfo{\
  4124. font-size:14px;\
  4125. }\
  4126. .warlc-ui-tab {\
  4127. height:300px;\
  4128. overflow:auto;\
  4129. }\
  4130. #warlcsitelist2, #warlcsitelist1 {\
  4131. height:220px;\
  4132. border-top: 1px solid #ddd;\
  4133. padding-top: 5px;\
  4134. overflow:auto;\
  4135. }\
  4136. input:hover+label {\
  4137. background:#F1F77C;\
  4138. font-size:110%;\
  4139. }\
  4140. ';
  4141.  
  4142. GM_addStyle(configcss);
  4143.  
  4144. var customRulesRefHTML =
  4145. '\
  4146. <br>\
  4147. A custom rule consists of <b>commands</b>. A command must be on its own line and in this form:<br>\
  4148. <b>@keyword</b> <i>parameter</i>\
  4149. <br><br>\
  4150. 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. \
  4151. <br><br>\
  4152. 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.\
  4153. 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.\
  4154. 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.\
  4155. 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,\
  4156. but all commands until the next valid @customrule are ignored.<br><br>\
  4157. Available forms and types:\
  4158. <ul>\
  4159. <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.\
  4160. <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.\
  4161. <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.\
  4162. <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.\
  4163. </ul>\
  4164. Other available commands:<br>\
  4165. (Note: There can be more than 1 (up to 10) of these commands per rule. In that case, any of them will work.)\
  4166. <ul>\
  4167. <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.\
  4168. It can also specify multiple (up to 10) Top Level Domains (.com, .net etc.)<br>\
  4169. <ul>examples:<br>\
  4170. <li>good: <i>filehost.com/download/</i><br>\
  4171. <li>good: <i>download.filehost.net/?d=</i><br>\
  4172. <li>good: <i>filehost. com net co.uk /</i> - multiple TLDs (note the spaces before, between and after TLDs)<br>\
  4173. <li>ok: <i>filehost.com/</i> - works, but will also find links like filehost.com/login etc. Sometimes it\'s unavoidable though.<br>\
  4174. <li>bad: <i>d8523.filehost.com/</i> - d8523 probably is not constant<br>\
  4175. <li>bad: <i>filehost.com/3bfiq5d1</i> - 3bfiq5d1 probably is not constant<br>\
  4176. <li>bad: <i>filehost.com</i> - no slash<br>\
  4177. </ul>\
  4178. \
  4179. <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.\
  4180. 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 \
  4181. &lt;div&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;p&gt; even if there are new lines, tabulators etc.\
  4182. <li><b>@deadmatch</b> <i>pattern</i> - ignored for OBSOLETE, required for others. (For HEADERS some servers return 404 Error \
  4183. 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.)\
  4184. Two spaces again match any whitespace.\
  4185. <li><b>@unavamatch</b> <i>pattern</i> - optional, ignored for OBSOLETE and HEADERS. If found, the link is deemed temporarily unavailable.\
  4186. Two spaces again match any whitespace.\
  4187. <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. \
  4188. <li><b>@deadlink</b> <i>url</i> - optional. Example dead link.\
  4189. </ul>\
  4190. \
  4191. ';
  4192.  
  4193. //close image and css taken from = http://www.sohtanaka.com/web-design/examples/css-popup icon_close.png;
  4194. var configurationinnerHTML =
  4195. '<div id="fade"></div>\
  4196. <div class="popup_block">\
  4197. <div class="popup">\
  4198. <a href="#"><img id="imghideshow" title="Close" class="cntrl" src="data:image/png;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HVwasTnmuLzQm3STrtxRUmetW/OXsg3hOh9Z9CTtT+FDsfO7ff2djyVfb5xlrNuxoygQLwbHgUAEjnwIi5dm3J4zsgTYNbqfHAC2H0m7ibf608V7B53urOYngWJ1/YoXS2+bMq9oUuiIbgSYvjQQ6P6b03hsv+trmm3I3GtNZQUUvT1wz6YsnQf0U8CTFHgrFZDw1Hnfl34da2vcFCFTAMqYaBr07nD40/IebZui1t9qqWgE3t6uOfCB3gF8FegrBB6x5qrri9688a+JYN6UK57eijDo2HI2+8/HB/8AVAHlQCfQCvz7chOIBTzS1FocNEx1VSNjHmFWS9jvC6mk11QWAbePhl4K/JWa1fbSypU2uSsI8ZgnEyG2wE9igb/Fa7f9MHGTQuANdbcGLzyFV2smiukr7Siw4WqGvZhlqznxhX7cTzmXayA234c33lqFcjneIqZfxX1TJr+t4dWtcUGXgusNgaPLwvQpgJjHcK8EPOAM6J7+vblEfK0fZ9RoqwAnpTnznsN/2jOkuvOUNvmpXmMTrrQuoJWGj36bAugAMhSo2cnsgUil2fb5LRHi1/jRGlJHc5zenaV7p0PyRB7XkR7vfa4IlZtT69fbVKywyafh8HODHN+WfhH4FnD2alN1B7AdOAcMeT29HfiZJ5oZ3sHrgAeBvcCANzBsHu7Ohe2/AwDnNnxcIIMIUgAAAABJRU5ErkJggg=="></img>&nbsp;W.A.R. Links Checker Customized Premium Link version Configuration</div>\
  4200. <div id="warlc-conf-tabs">\
  4201. <ul>\
  4202. <li><a href="#tabs-1">Filehostings</a></li>\
  4203. <li><a href="#tabs-2">Containers</a></li>\
  4204. <li><a href="#tabs-5">Custom rules</a></li>\
  4205. <li><a href="#tabs-3">Settings</a></li>\
  4206. <li><a href="#tabs-4">About</a></li>\
  4207. </ul>\
  4208. <div id="tabs-1" class="warlc-ui-tab">\
  4209. <div class="warlc-ui-buttonset">\
  4210. <input type="button" class="warlc-ui-select-all" value="Select All">\
  4211. <input type="button" class="warlc-ui-select-none" value="Select None">\
  4212. <input type="button" class="warlc-ui-select-invert" value="Invert">\
  4213. </div><br>\
  4214. <div>Search: <input type="textbox" id="hostSearchBox" value=""></div><br>\
  4215. <div id="warlcsitelist1"><span>Empty</span></div>\
  4216. </div>\
  4217. <div id="tabs-2" class="warlc-ui-tab">\
  4218. <div class="warlc-ui-buttonset">\
  4219. <input type="button" class="warlc-ui-select-all" value="Select All">\
  4220. <input type="button" class="warlc-ui-select-none" value="Select None">\
  4221. <input type="button" class="warlc-ui-select-invert" value="Invert">\
  4222. </div><br>\
  4223. <div>Search: <input type="textbox" id="hostSearchBox2" value=""></div><br>\
  4224. <div id="warlcsitelist2"><span>Empty</span></div>\
  4225. </div>\
  4226. <div id="tabs-5" class="warlc-ui-tab">\
  4227. <div class="warlcsettings">\
  4228. <fieldset><input type="checkbox" id="Custom_rules"> Enable custom rules <div id="bulk">EXPERIMENTAL</div></fieldset>\
  4229. <br>\
  4230. <div>Edit custom rules: \
  4231. <a href="#" id="showCustomRulesReference">(<b>Click here to show/hide the reference</b>)</a>\
  4232. <div id="customRulesReference" style="display:none;">'
  4233. + customRulesRefHTML + '\
  4234. </div>\
  4235. <textarea style="width:100%;height:200px;" id="Custom_rules_text"></textarea>\
  4236. </div>\
  4237. </div>\
  4238. </div>\
  4239. <div id="tabs-3" class="warlc-ui-tab">\
  4240. <div class="warlcsettings">\
  4241. <fieldset>\
  4242. <p><input type="checkbox" id="Keyboard_functions"> Enable keyboard shortcuts</p>\
  4243. <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>\
  4244. </fieldset>\
  4245. <fieldset>\
  4246. <p><input type="checkbox" id="Color_DL_links"> Color DL links</p>\
  4247. <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>\
  4248. <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>\
  4249. <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>\
  4250. <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>\
  4251. <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>\
  4252. <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>\
  4253. <p><input type="checkbox" id="Show_line_through_in_dead_links"> Show line through in dead links</p>\
  4254. <p><input type="checkbox" id="Show_black_background_in_DL_links"> Show black background in DL links</p>\
  4255. <p><input type="checkbox" id="Do_not_linkify_DL_links"> Do NOT linkify DL links</p>\
  4256. <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>\
  4257. <p><input type="checkbox" id="Display_full_links_in_link_containers"> Display full links in link containers</p><br>\
  4258. <fieldset>\
  4259. <p><input type="radio" name="warlciconset" value="0"> No icons</p>\
  4260. <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>\
  4261. <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>\
  4262. <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>\
  4263. </fieldset>\
  4264. </fieldset>\
  4265. <fieldset>\
  4266. <div id="sites"><input type="checkbox" id="Autocheck"> Autocheck</div><br><div id="configinfo">Script starts check automatically.</div><br>\
  4267. </fieldset>\
  4268. <fieldset>\
  4269. <div id="sites"><input type="checkbox" id="Show_progress_stats"> Show progress stats</div><br>\
  4270. </fieldset>\
  4271. <fieldset>\
  4272. <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>\
  4273. </fieldset>\
  4274. <fieldset>\
  4275. <p><input type="checkbox" id="Enable_Anonymizer"> Enable Anonymizer</div><div id="bulk">EXPERIMENTAL Note: Checkbox does not work use CTRL+ALT+Z.</p>\
  4276. <div id="sites"><label for="refAnonymizer">Refererer anonymizing service</label><input type="text" id="refAnonymizer" value="' + Ref_anonymize_service + '"></div>\
  4277. </fieldset>\
  4278. </div>\
  4279. </div>\
  4280. <div id="tabs-4" class="warlc-ui-tab">\
  4281. <p><b>Author:</b> <a href="http://www.mentalps.5gbfree.com/viewtopic.php?f=2&t=6">mentalps</a></p>\
  4282. <br />\
  4283. <p><b>Currently supported:</b><br>\
  4284. Filehostings: ' + allHostNames.length + '<br />\
  4285. Containers: ' + allContainerNames.length + '<br />\
  4286. Obsolete sites: ' + allObsoleteNames.length + '<br /></p>\
  4287. <br />\
  4288. <p><b>Based on:</b><br>\
  4289. <a href="http://userscripts-mirror.org/scripts/show/125631.html">W.A.R. Links Checker - Dev</a></p>\
  4290. <br />\
  4291. <p><b>Uses:</b></p>\
  4292. <p>adam_3\'s <a href="http://userscripts-mirror.org/scripts/show/2254">Linkify ting</a> (modified)</p>\
  4293. <p><a href="http://jquery.com/">jQuery</a> JavaScript Library</p>\
  4294. <br />\
  4295. <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>\
  4296. </div>\
  4297. </div>\
  4298. </div>\
  4299. </div>';
  4300. $('body').append('<div id="hideshow">' + configurationinnerHTML + '</div>');
  4301. $("#warlc-conf-tabs").tabs({ fx: { opacity: 'toggle', duration: 'fast' } });
  4302. $("#imghideshow").click(function(event){$("#hideshow").hide(); event.preventDefault();});
  4303. var elmHostList = document.getElementById("warlcsitelist1");
  4304. var elmContainerList = document.getElementById("warlcsitelist2");
  4305. buildSettings();
  4306. buildSitelist("", allHostNames, elmHostList);
  4307. buildSitelist("", allContainerNames, elmContainerList);
  4308. if (DEBUG_MODE)
  4309. {
  4310. //log all sites availability status
  4311. diagSites();
  4312. }
  4313. //handler for checkbox state change
  4314. function changeConfiguration(e)
  4315. {
  4316. var element = e.target;
  4317.  
  4318. if (element.type == 'checkbox')
  4319. {
  4320. if (element.checked == 1)
  4321. {
  4322. GM_setValue(element.id, true);
  4323. }
  4324. else
  4325. {
  4326. GM_setValue(element.id, false);
  4327. }
  4328.  
  4329. }
  4330. setVariables();
  4331. }
  4332.  
  4333. //Selects all filehosting checkboxes
  4334. function selectAll()
  4335. {
  4336. $(":checkbox:visible:not(:checked)").prop("checked",true)
  4337. .each(function(index, element){GM_setValue(this.id, true)});
  4338. }
  4339.  
  4340. //Deselects all filehosting checkboxes
  4341. function selectNone()
  4342. {
  4343. $(":checkbox:visible:checked").prop("checked",false)
  4344. .each(function(index, element){GM_setValue(this.id, false)});
  4345. }
  4346.  
  4347. //Inverts filehosting checkboxes selection
  4348. function selectInvert()
  4349. {
  4350. var $checked = $(":checkbox:visible:checked");
  4351. var $unchecked = $(":checkbox:visible:not(:checked)");
  4352. $unchecked.prop("checked",true)
  4353. .each(function(index, element){GM_setValue(this.id, true)});
  4354. $checked.prop("checked",false)
  4355. .each(function(index, element){GM_setValue(this.id, false)});
  4356. }
  4357. //toggles anonymizer on off
  4358. function Enable_Anonymizer()
  4359. {
  4360. var $checked = $(":checkbox:visible:checked");
  4361. var $unchecked = $(":checkbox:visible:not(:checked)");
  4362. $unchecked.prop("checked",true)
  4363. .each(function(index, element){GM_setValue(this.id, true)});
  4364. $checked.prop("checked",false)
  4365. .each(function(index, element){GM_setValue(this.id, false)});
  4366. }
  4367.  
  4368. function changeRefAnonymizer(){
  4369. GM_setValue("Ref_anonymize_service", $("#refAnonymizer").attr("value"));
  4370. }
  4371.  
  4372. //Sets live links color
  4373. function changeColorLive()
  4374. {
  4375. var inColorLive = document.getElementById("inputColorLive");
  4376. inColorLive.style.background = inColorLive.value;
  4377. GM_setValue("Live_links_color", inColorLive.value);
  4378. }
  4379.  
  4380. //Sets dead links color
  4381. function changeColorDead()
  4382. {
  4383. var inColorDead = document.getElementById("inputColorDead");
  4384. inColorDead.style.background = inColorDead.value;
  4385. GM_setValue("Dead_links_color", inColorDead.value);
  4386. }
  4387.  
  4388. //Sets temp. unavailable links color
  4389. function changeColorTemp()
  4390. {
  4391. var inColorTemp = document.getElementById("inputColorTemp");
  4392. inColorTemp.style.background = inColorTemp.value;
  4393. GM_setValue("Temp_unavailable_links_color", inColorTemp.value);
  4394. }
  4395.  
  4396. //Sets temp. unavailable links color
  4397. function changeColorCont()
  4398. {
  4399. var inColorCont = document.getElementById("inputColorCont");
  4400. inColorCont.style.background = inColorCont.value;
  4401. GM_setValue("Container_links_color", inColorCont.value);
  4402. }
  4403. //Sets premium. links color
  4404. function changeColorprem()
  4405. {
  4406. var inColorprem = document.getElementById("inputColorprem");
  4407. inColorprem.style.background = inColorprem.value;
  4408. GM_setValue("Premium_links_color", inColorprem.value);
  4409. }
  4410.  
  4411. //Diagnose sites for availability
  4412. function diagSites()
  4413. {
  4414. var boxes = document.getElementById("warlcsitelist1").getElementsByTagName("input");
  4415.  
  4416. for (var i = 0, n = boxes.length - 1; i < n; i++)
  4417. {
  4418. if (boxes[i].type == "checkbox")
  4419. {
  4420. checkAvailability(boxes[i]);
  4421. }
  4422. }
  4423.  
  4424. boxes = document.getElementById("warlcsitelist2").getElementsByTagName("input");
  4425.  
  4426. for (var i = 0, n = boxes.length - 1; i < n; i++)
  4427. {
  4428. if (boxes[i].type == "checkbox")
  4429. {
  4430. checkAvailability(boxes[i]);
  4431. }
  4432. }
  4433.  
  4434. function checkAvailability(cbElm)
  4435. {
  4436. var cb = cbElm;
  4437. GM_xmlhttpRequest(
  4438. {
  4439. method: 'HEAD',
  4440. url: 'http://' + cb.nextSibling.textContent.replace(' ', ''),
  4441. headers: {
  4442. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  4443. 'Accept': 'text/xml',
  4444. 'Referer': ""
  4445. },
  4446. onload: function (result)
  4447. {
  4448. if (result.status != 200)
  4449. {
  4450. GM_log(cb.nextSibling.textContent + ' --- status: [' + result.status + '] ' + result.statusText + ', final url: ' + result.finalUrl);
  4451. }
  4452. },
  4453. onerror: function (result)
  4454. {
  4455. if (result.status != 200)
  4456. {
  4457. GM_log(cb.nextSibling.textContent + ' --- status: [' + result.status + '] ' + result.statusText + ', final url: ' + result.finalUrl);
  4458. }
  4459. }
  4460. });
  4461. }
  4462. }
  4463. function buildSettings()
  4464. {
  4465. $(".warlcsettings :checkbox").each(function(){
  4466. $(this).prop("checked", GM_getValue($(this).attr("id")))
  4467. .click(function(e){
  4468. GM_setValue($(this).attr("id"), $(this).prop("checked"));
  4469. setVariables();
  4470. });
  4471. })
  4472. }
  4473. //Dynamic build of host list
  4474. //param search [string] searches for hostnames matching search substring
  4475. //param siteNames [array] array of site names
  4476. //param targetNode [DOM Node] where the list should be built
  4477. // first child node is replaced
  4478. function buildSitelist(search, siteNames, targetNode)
  4479. {
  4480. var searchRegex = new RegExp("\\|?([\\w\\.-]*" + search.replace(/\./g,"\\.").replace(/-/g, "\\-") + "[\\w\\.-]*)\\|?", "i");
  4481. var $targetNode = $(targetNode).empty();
  4482. var searchedSite = "";
  4483. $.each(siteNames, function(i, site){
  4484. if (searchedSite = site.match(searchRegex))
  4485. {
  4486. var baseSite = site.replace(/\|.+/, ""); //filehosting main domain
  4487. //ensuring backward compatibility with the rest of code, to be refactored later
  4488. var oldRSLCvalue = "Check_" + baseSite.replace(/\|.+/, "").replace(/\./g,"_dot_").replace(/-/g, "_dash_") + "_links";
  4489. //
  4490. $targetNode.append('<input type="checkbox" id="' + oldRSLCvalue +'" />\
  4491. <label for="' + oldRSLCvalue + '">' + searchedSite[1] + '</label>' +
  4492. ((searchedSite[1] != baseSite) ? ('<div id="note"> ( ~ ' + baseSite + ' )</div>') : (""))
  4493. );
  4494. $("#" + oldRSLCvalue).prop("checked", GM_getValue(oldRSLCvalue, false))
  4495. .change(changeConfiguration);
  4496. $targetNode.append('<br />');
  4497. }
  4498. });
  4499. $targetNode.append("<hr>");
  4500. //obsolete hosts checkbox
  4501. $targetNode.append('<input type="checkbox" id="Obsolete_file_hosts" /><label for="Obsolete_file_hosts">Obsolete file hosts</label>');
  4502. $("#Obsolete_file_hosts").prop("checked", GM_getValue("Obsolete_file_hosts", false))
  4503. .change(changeConfiguration);
  4504. $targetNode.append('<br />');
  4505. var foundName = "";
  4506. $.each(allObsoleteNames, function(i, site){
  4507. if (foundName = allObsoleteNames[i].match(searchRegex))
  4508. {
  4509. $targetNode.append('<div id="note">' + foundName[1] + '</div>');
  4510. }
  4511. })
  4512. }
  4513. var hostSearchBox = document.getElementById("hostSearchBox");
  4514. hostSearchBox.addEventListener('keyup', function(){buildSitelist(hostSearchBox.value, allHostNames, elmHostList);}, false);
  4515. var hostSearchBox2 = document.getElementById("hostSearchBox2");
  4516. hostSearchBox2.addEventListener('keyup', function(){buildSitelist(hostSearchBox2.value, allContainerNames, elmContainerList);}, false);
  4517. $(".warlc-ui-select-all").click(selectAll).button();
  4518. $(".warlc-ui-select-none").click(selectNone).button();
  4519. $(".warlc-ui-select-invert").click(selectInvert).button();
  4520. $(".warlc-ui-buttonset").buttonset();
  4521. var inColorLive = document.getElementById("inputColorLive");
  4522. inColorLive.addEventListener('keyup', changeColorLive, false);
  4523.  
  4524. var inColorDead = document.getElementById("inputColorDead");
  4525. inColorDead.addEventListener('keyup', changeColorDead, false);
  4526.  
  4527. var inColorTemp = document.getElementById("inputColorTemp");
  4528. inColorTemp.addEventListener('keyup', changeColorTemp, false);
  4529.  
  4530. var inColorCont = document.getElementById("inputColorCont");
  4531. inColorCont.addEventListener('keyup', changeColorCont, false);
  4532. var inColorprem = document.getElementById("inputColorprem");
  4533. inColorprem.addEventListener('keyup', changeColorprem, false);
  4534. $("#refAnonymizer").change(changeRefAnonymizer);
  4535. //buttons and edit boxes init end
  4536.  
  4537. //icon sets radio buttons
  4538. var radioButtons = document.getElementsByName("warlciconset");
  4539. radioButtons[Icon_set].checked = "checked";
  4540.  
  4541. radioButtons[0].addEventListener("change", updateIconSet);
  4542. radioButtons[1].addEventListener("change", updateIconSet);
  4543. radioButtons[2].addEventListener("change", updateIconSet);
  4544. radioButtons[3].addEventListener("change", updateIconSet);
  4545. function updateIconSet()
  4546. {
  4547. GM_setValue("Icon_set", this.value * 1);
  4548. }
  4549. //
  4550. $('#showCustomRulesReference').click(function(e){
  4551. e.preventDefault();
  4552. $('#customRulesReference').toggle();
  4553. });
  4554. $('#Custom_rules_text')
  4555. .val(Custom_rules_text)
  4556. .change(saveCustomRules);
  4557. function saveCustomRules(e)
  4558. {
  4559. var cr = parseCustomRules(this.value);
  4560. if (cr.info.length)
  4561. 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, ' '));
  4562. GM_setValue('Custom_rules_text', this.value);
  4563. GM_setValue('last_custom_rules_nag', ''+new Date().getTime()); //reset nag
  4564. }
  4565. }
  4566.  
  4567. //begin standard link checking algorithm
  4568. function start(filterId)
  4569. {
  4570. var doNotLinkify = Do_not_linkify_DL_links;
  4571.  
  4572. // USER SELECTED FILE HOSTS INITIALIZATION START
  4573. var http_file_hosts = new Array(); //standard hostings
  4574. var http_file_hosts_coded = new Array(); //hostings which has to be decoded to obtain real checkable link
  4575. var http_file_hosts_obsolete = new Array(); //dead hostings
  4576. var http_file_hosts_headers_only = new Array(); //hostings with direct download, must be handled via headers only
  4577.  
  4578. initFileHosts();
  4579. initFileHostsHeadersOnly();
  4580. initFileHostsCustom(); //CustomRules
  4581. // USER SELECTED FILE HOSTS INITIALIZATION END
  4582.  
  4583. // LINKIFICATION START
  4584. var totalxpath = '';
  4585. var totalxpathcoded = '';
  4586. var totalxpathobsolete = '';
  4587. var totalxpathheadersonly = '';
  4588. var totalourls = '';
  4589.  
  4590. var filehostLen = http_file_hosts.length;
  4591. var filehostCodedLen = http_file_hosts_coded.length;
  4592. var filehostObsoleteLen = http_file_hosts_obsolete.length;
  4593. var filehostHeadersOnlyLen = http_file_hosts_headers_only.length;
  4594.  
  4595. var filehostIdx = filehostLen;
  4596. var filehostCodedIdx = filehostCodedLen;
  4597. var filehostObsoleteIdx = filehostObsoleteLen;
  4598. var filehostHeadersOnlyIdx = filehostHeadersOnlyLen;
  4599.  
  4600. if ((filehostIdx == 0) && (filehostCodedIdx == 0) && (filehostHeadersOnlyIdx == 0) && (filehostObsoleteIdx == 0))
  4601. return;
  4602.  
  4603. while (filehostIdx--)
  4604. {
  4605. totalourls += http_file_hosts[filehostIdx][0] + '|';
  4606. totalxpath += http_file_hosts[filehostIdx][4] + '|';
  4607. }
  4608.  
  4609. while (filehostCodedIdx--)
  4610. {
  4611. totalourls += http_file_hosts_coded[filehostCodedIdx][0] + '|';
  4612. totalxpathcoded += http_file_hosts_coded[filehostCodedIdx][3] + '|';
  4613. }
  4614.  
  4615. while (filehostObsoleteIdx--)
  4616. {
  4617. totalourls += http_file_hosts_obsolete[filehostObsoleteIdx][0] + '|';
  4618. totalxpathobsolete += http_file_hosts_obsolete[filehostObsoleteIdx][1] + '|';
  4619. }
  4620.  
  4621. while (filehostHeadersOnlyIdx--)
  4622. {
  4623. totalourls += http_file_hosts_headers_only[filehostHeadersOnlyIdx][0] + '|';
  4624. totalxpathheadersonly += http_file_hosts_headers_only[filehostHeadersOnlyIdx][3] + '|';
  4625. }
  4626.  
  4627. totalourls = totalourls.replace(/\|$/g, "");
  4628. //TODO: further refactoring needed
  4629. totalxpath = totalxpath.replace(/\]\|\/\/a\[/g, " or ");
  4630. totalxpath = totalxpath.replace(/\]\|/, ')]');
  4631. totalxpathcoded = totalxpathcoded.replace(/\]\|\/\/a\[/g, " or ");
  4632. totalxpathcoded = totalxpathcoded.replace(/\]\|/, ')]');
  4633. totalxpathobsolete = totalxpathobsolete.replace(/\]\|\/\/a\[/g, " or ");
  4634. totalxpathobsolete = totalxpathobsolete.replace(/\]\|/, ')]');
  4635. totalxpathheadersonly = totalxpathheadersonly.replace(/\]\|\/\/a\[/g, " or ");
  4636. totalxpathheadersonly = totalxpathheadersonly.replace(/\]\|/, ')]');
  4637. if (filterId != null) //insert id restriction in the xpath
  4638. {
  4639. totalxpath = totalxpath.replace(/\[/g, "[@class='" + filterId + "' and (");
  4640. totalxpathcoded = totalxpathcoded.replace(/\[/g, "[@class='" + filterId + "' and (");
  4641. totalxpathobsolete = totalxpathobsolete.replace(/\[/g, "[@class='" + filterId + "' and (");
  4642. totalxpathheadersonly = totalxpathheadersonly.replace(/\[/g, "[@class='" + filterId + "' and (");
  4643. }
  4644. else
  4645. {
  4646. totalxpath = totalxpath.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4647. totalxpathcoded = totalxpathcoded.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4648. totalxpathobsolete = totalxpathobsolete.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4649. totalxpathheadersonly = totalxpathheadersonly.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4650. }
  4651. linkify(totalourls);
  4652. //LINKIFICATION END
  4653. //ENCRYPTED LINKS PROCESSING START
  4654. if (http_file_hosts_coded.length > 0)
  4655. {
  4656. var linksCoded = document.evaluate(totalxpathcoded, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4657.  
  4658. // decrypt coded links (redirects, link protectors etc.)
  4659. if (linksCoded.snapshotLength > 0)
  4660. {
  4661. var link;
  4662. var reallinkreg;
  4663. var reallinkcorrection;
  4664.  
  4665. if (filterId == null)
  4666. {
  4667. cLinksTotal += linksCoded.snapshotLength;
  4668. }
  4669.  
  4670. var y = linksCoded.snapshotLength - 1;
  4671. do
  4672. {
  4673. // linksCoded.snapshotItem(y).id = 'processing_link';
  4674. link = linksCoded.snapshotItem(y);
  4675. filehostIdx = filehostCodedLen;
  4676. while (filehostIdx--)
  4677. {
  4678. if (link.href.match(http_file_hosts_coded[filehostIdx][0]))
  4679. {
  4680. link.href = link.href.replace(/http:\/\/.*?(?:\?|=)http:\/\//, 'http://');
  4681. reallinkreg = http_file_hosts_coded[filehostIdx][1];
  4682. reallinkcorrection = http_file_hosts_coded[filehostIdx][2];
  4683.  
  4684. decurl(link, reallinkreg, reallinkcorrection);
  4685. break;
  4686. }
  4687. }
  4688. }
  4689. while (y--);
  4690. }
  4691. }
  4692. //ENCRYPTED LINKS PROCESSING END
  4693.  
  4694. //STANDARD LINKCHECKING START
  4695. if (http_file_hosts.length > 0)
  4696. {
  4697. var lianks = document.evaluate(totalxpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4698.  
  4699. if (filterId == null)
  4700. {
  4701. cLinksTotal += lianks.snapshotLength;
  4702. }
  4703.  
  4704. if (lianks.snapshotLength > 0)
  4705. {
  4706. var link;
  4707.  
  4708. var URL = "";
  4709. var name = "";
  4710. var isAliveRegex = "";
  4711. var isDeadRegex = "";
  4712. var isUnavaRegex = "";
  4713. var ispremRegex = "";
  4714. var tryLoop = false;
  4715.  
  4716. var y = lianks.snapshotLength;
  4717.  
  4718. while (y--)
  4719. {
  4720. link = lianks.snapshotItem(y);
  4721.  
  4722. filehostIdx = filehostLen;
  4723. while (filehostIdx--)
  4724. {
  4725. if (link.href.match(http_file_hosts[filehostIdx][0]))
  4726. {
  4727. link.href = link.href.replace(/http:\/\/.*?http:\/\//, 'http://'); //anonymizers
  4728. isAliveRegex = http_file_hosts[filehostIdx][1];
  4729. isDeadRegex = http_file_hosts[filehostIdx][2];
  4730. isUnavaRegex = http_file_hosts[filehostIdx][3];
  4731. ispremRegex = http_file_hosts[filehostIdx][6];
  4732. tryLoop = http_file_hosts[filehostIdx][5];
  4733.  
  4734. geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, tryLoop);
  4735.  
  4736. break;
  4737. }
  4738. }
  4739. }
  4740. }
  4741. }
  4742. //STANDARD LINKCHECKING END
  4743. //OBSOLETE FILE HOSTS PROCESSING START
  4744. if (filehostObsoleteLen > 0)
  4745. {
  4746. var obsoletelinks = document.evaluate(totalxpathobsolete, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4747.  
  4748. var obsoleteLink;
  4749.  
  4750. //check links
  4751. if (obsoletelinks.snapshotLength > 0)
  4752. {
  4753. var y = obsoletelinks.snapshotLength;
  4754.  
  4755. if (filterId == null)
  4756. {
  4757. cLinksTotal += y;
  4758. }
  4759.  
  4760. while (y--)
  4761. {
  4762. obsoleteLink = obsoletelinks.snapshotItem(y);
  4763.  
  4764. if (Display_tooltip_info)
  4765. {
  4766. obsoleteLink.warlc_error = 'Cause of error: <b>Obsolete filehosting.</b>';
  4767. }
  4768. displayTheCheckedLink(obsoleteLink, 'adead_link');
  4769. }
  4770. }
  4771. }
  4772. //OBSOLETE FILE HOSTS PROCESSING END
  4773.  
  4774. //DIRECT LINKCHECKING START
  4775. if (http_file_hosts_headers_only.length > 0)
  4776. {
  4777. var links = document.evaluate(totalxpathheadersonly, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4778.  
  4779. //check links
  4780. if (links.snapshotLength > 0)
  4781. {
  4782. var link;
  4783. var isAliveRegex;
  4784. var isDeadRegex;
  4785. var ispremRegex;
  4786.  
  4787. var y = links.snapshotLength;
  4788.  
  4789.  
  4790. if (filterId == null)
  4791. {
  4792. cLinksTotal += y;
  4793. }
  4794.  
  4795. while (y--)
  4796. {
  4797. // links.snapshotItem(y).id = 'processing_link';
  4798. link = links.snapshotItem(y);
  4799. filehostIdx = filehostHeadersOnlyLen;
  4800. while (filehostIdx--)
  4801. {
  4802. if (link.href.match(http_file_hosts_headers_only[filehostIdx][0]))
  4803. {
  4804. link.href = link.href.replace(/http:\/\/.*?(?:\?|=)http:\/\//, 'http://');
  4805. isAliveRegex = http_file_hosts_headers_only[filehostIdx][1];
  4806. isDeadRegex = http_file_hosts_headers_only[filehostIdx][2];
  4807. ispremRegex = http_file_hosts_headers_only[filehostIdx][3];
  4808.  
  4809. geturlHeader(link, isAliveRegex, isDeadRegex, ispremRegex);
  4810.  
  4811. break;
  4812. }
  4813. }
  4814. }
  4815.  
  4816. }
  4817. }
  4818. //DIRECT LINKCHECKING END
  4819.  
  4820.  
  4821. //finds the real url on the page, replaces link.href with it and calls geturl
  4822. function decurl(link, reallinkreg, reallinkcorrection)
  4823. {
  4824.  
  4825. GM_xmlhttpRequest(
  4826. {
  4827. method: 'GET',
  4828. url: link.href,
  4829. headers: {
  4830. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  4831. 'Accept': 'text/xml',
  4832. 'Referer': ""
  4833. },
  4834. onload: function (result)
  4835. {
  4836. // cLinksProcessed++;
  4837.  
  4838. var reallink = result.responseText.match(reallinkreg)[0];
  4839. reallink = reallink.replace(new RegExp(reallinkcorrection, "g"), "");
  4840.  
  4841. link.href = reallink;
  4842.  
  4843. var i = http_file_hosts.length - 1;
  4844. do
  4845. {
  4846. if ((reallink.match(http_file_hosts[i][0])))
  4847. {
  4848. link.href = link.href.replace(/http:\/\/.*?\?http:\/\//, 'http://');
  4849. var isAliveRegex = http_file_hosts[i][1];
  4850. var isDeadRegex = http_file_hosts[i][2];
  4851. var isUnavaRegex = http_file_hosts[i][3];
  4852. var ispremRegex = http_file_hosts[i][4];
  4853.  
  4854. geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, 50);
  4855.  
  4856. break;
  4857. }
  4858. }
  4859. while (i--);
  4860. }
  4861. });
  4862. }
  4863.  
  4864. function randUA()
  4865. {
  4866. //TODO
  4867. }
  4868. //Processes link
  4869. //
  4870. // [string] link link URL
  4871. // [string] isAliveRegex alive link regex
  4872. // [string] isDeadRegex dead link regex
  4873. // [string] isUnavaRegex unavailable link regex
  4874. // [string] ispremRegex premium link regex
  4875. // [boolean] tryLoop repeats request until succeeded
  4876. function geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, tryLoop)
  4877. {
  4878. GM_xmlhttpRequest(
  4879. {
  4880. method: 'GET',
  4881. url: link.href,
  4882. headers: {
  4883. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  4884. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  4885. 'Referer': ""
  4886. },
  4887. onload: function (result)
  4888. {
  4889. var res = result.responseText;
  4890. if (result.responseHeaders.match(/Content-Disposition: attachment; filename=/))//direct download, simple version
  4891. {
  4892. displayTheCheckedLink(link, 'alive_link');
  4893. return;
  4894. }
  4895.  
  4896. if (res.match(isAliveRegex))
  4897. {
  4898. displayTheCheckedLink(link, 'alive_link');
  4899. return;
  4900. }
  4901.  
  4902. if (res.match(isDeadRegex))
  4903. {
  4904. displayTheCheckedLink(link, 'adead_link');
  4905. return;
  4906. }
  4907.  
  4908. if (isUnavaRegex && res.match(isUnavaRegex))
  4909. {
  4910. displayTheCheckedLink(link, 'unava_link');
  4911. return;
  4912. }
  4913. if (res.match(ispremRegex))
  4914. {
  4915. displayTheCheckedLink(link, 'prem_link');
  4916. return;
  4917. }
  4918.  
  4919. var resStatus = result.status;
  4920.  
  4921. if (resStatus == 404)
  4922. {
  4923. displayTheCheckedLink(link, 'adead_link');
  4924. }
  4925. if (resStatus == 500 || resStatus == 503 || resStatus == 403) //not found/available/temp. unava
  4926. {
  4927. if (tryLoop)
  4928. {
  4929. //wait 1-5 seconds and repeat the request
  4930. setTimeout(function(){geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, tryLoop)}, 1000 + (Math.random() * 4000));
  4931. }
  4932. else
  4933. {
  4934. displayTheCheckedLink(link, 'unava_link');
  4935. }
  4936.  
  4937. return;
  4938. }
  4939. },
  4940. onerror: function ()
  4941. {
  4942. displayTheCheckedLink(link, 'unava_link');
  4943. }
  4944. });
  4945. }
  4946.  
  4947. function geturlHeader(link, isAliveRegex, isDeadRegex, ispremRegex)
  4948. {
  4949. GM_xmlhttpRequest(
  4950. {
  4951. method: 'HEAD',
  4952. url: link.href,
  4953. headers: {
  4954. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  4955. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  4956. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  4957. 'Referer': ""
  4958. },
  4959. onload: function (result)
  4960. {
  4961. var resStatus = result.status;
  4962. var resHeaders = "";
  4963. if (resStatus == 403 || resStatus == 404 || resStatus == 500) //not found/available
  4964. {
  4965. displayTheCheckedLink(link, 'adead_link');
  4966. return;
  4967. }
  4968.  
  4969. resHeaders = result.responseHeaders;
  4970.  
  4971. if (resHeaders.match(isDeadRegex))
  4972. {
  4973. displayTheCheckedLink(link, 'adead_link');
  4974. return;
  4975. }
  4976.  
  4977. if (resHeaders.match(isAliveRegex))
  4978. {
  4979. displayTheCheckedLink(link, 'alive_link');
  4980. return;
  4981. }
  4982. if (resHeaders.match(ispremRegex))
  4983. {
  4984. displayTheCheckedLink(link, 'prem_link');
  4985. return;
  4986. }
  4987. },
  4988. onerror: function ()
  4989. {
  4990. displayTheCheckedLink(link, 'unava_link');
  4991. }
  4992. });
  4993. }
  4994.  
  4995. //Delinkfifies the <a> element object
  4996. function delinkifyLink(link)
  4997. {
  4998. var spanElm = document.createElement("span");
  4999. spanElm.className = link.className;
  5000. spanElm.innerHTML = link.innerHTML;
  5001.  
  5002. if (Display_tooltip_info)
  5003. {
  5004. spanElm.href = link.href;
  5005. spanElm.warlc_error = link.warlc_error;
  5006. switch (link.className){
  5007. case "alive_link": spanElm.addEventListener("mouseover", displayTooltipInfo, false); break
  5008. case "adead_link": spanElm.addEventListener("mouseover", displayTooltipError, false); break;
  5009. case "unava_link": //reserved
  5010. case "prem_link": spanElm.addEventListener("mouseover", displayTooltipError, false); break;
  5011. default:
  5012. }
  5013. }
  5014. link.parentNode.replaceChild(spanElm, link);
  5015. }
  5016.  
  5017. //Assigns result status to the <a> element object and calls delinkifying eventually
  5018. //Possible result states: adead_link, alive_link, unava_link, prem_link
  5019. function displayTheCheckedLink(link, resultStatus)
  5020. {
  5021. link.className = resultStatus;
  5022. link.href = Ref_anonymize_service + link.href;
  5023. if (Display_tooltip_info)
  5024. {
  5025. switch (resultStatus){
  5026. case "alive_link": link.addEventListener("mouseover", displayTooltipInfo, false); break
  5027. case "adead_link": link.addEventListener("mouseover", displayTooltipError, false); break;
  5028. case "unava_link": //reserved
  5029. case "prem_link": link.addEventListener("mouseover", displayTooltipInfo, false); break
  5030. default:
  5031. }
  5032. }
  5033. if (doNotLinkify)
  5034. {
  5035. delinkifyLink(link);
  5036. }
  5037. cLinksProcessed++;
  5038.  
  5039. if (resultStatus == "alive_link")
  5040. {
  5041. cLinksAlive++;
  5042. return;
  5043. }
  5044.  
  5045. if (resultStatus == "adead_link")
  5046. {
  5047. cLinksDead++;
  5048. return;
  5049. }
  5050.  
  5051. if (resultStatus == "unava_link")
  5052. {
  5053. cLinksUnava++;
  5054. }
  5055. if (resultStatus == "prem_link")
  5056. {
  5057. cLinksprem++;
  5058. return;
  5059. }
  5060. }
  5061.  
  5062.  
  5063. function initFileHosts()
  5064. {
  5065.  
  5066. function addObsoleteHost(linkRegex, xpathEx)
  5067. {
  5068. var host = new Array(2);
  5069. host[0] = linkRegex;
  5070. host[1] = xpathEx;
  5071. http_file_hosts_obsolete.push(host);
  5072. }
  5073.  
  5074. //obsolete file hosts init start
  5075. if (Obsolete_file_hosts)
  5076. {
  5077. addObsoleteHost("uloz\.cz\/show\/file","//a[contains(@href,'uloz.cz')]");
  5078. addObsoleteHost("storage\\.to\/get","//a[contains(@href,'storage.to')]");
  5079. addObsoleteHost("iskladka\\.cz\/download","//a[contains(@href,'iskladka.cz')]");
  5080. addObsoleteHost("file-rack\\.com\/files","//a[contains(@href,'file-rack.com')]");
  5081. addObsoleteHost("fast-load\\.net\/(\/)?index","//a[contains(@href,'fast-load.net')]");
  5082. addObsoleteHost("subory\\.sk\/download","//a[contains(@href,'subory.sk')]");
  5083. addObsoleteHost("bigandfree\\.com\/\\d+","//a[contains(@href,'bigandfree.com')]");
  5084. addObsoleteHost("fileop\\.com\/\\w+","//a[contains(@href,'fileop.com')]");
  5085. addObsoleteHost("mujsoubor\\.cz\/file\/","//a[contains(@href,'mujsoubor.cz')]");
  5086. addObsoleteHost("sendfile\\.to\/\\w+","//a[contains(@href,'sendfile.to')]");
  5087. addObsoleteHost("superfastfile\\.com\/\\w+","//a[contains(@href,'superfastfile.com')]");
  5088. addObsoleteHost("quickyshare\\.com\/\\w+","//a[contains(@href,'quickyshare.com/')]");
  5089. addObsoleteHost("duckload\\.com\/(?:d|play)","//a[contains(@href,'duckload.com')]");
  5090. addObsoleteHost("uploadstore\\.net\/\\w+","//a[contains(@href,'uploadstore.net')]");
  5091. addObsoleteHost("meinupload\\.com\/dl\/\\d+","//a[contains(@href,'meinupload.com/dl')]");
  5092. addObsoleteHost("dualshare\\.com\/\\w+","//a[contains(@href,'dualshare.com')]");
  5093. addObsoleteHost("2xupload\\.(?:to|de)\/file\/\\w+","//a[contains(@href,'2xupload.to') or contains(@href,'2xupload.de')]");
  5094. addObsoleteHost("oxedion\\.com\/index\\.php\/download\/\\w+","//a[contains(@href,'oxedion.com/index')]");
  5095. addObsoleteHost("uploadline\\.com\/\\d+","//a[contains(@href,'uploadline.com')]");
  5096. addObsoleteHost("dll\\.bz\/file\/\\d+","//a[contains(@href,'dll.bz/file')]");
  5097. addObsoleteHost("movieshare\\.in\/\\w+","//a[contains(@href,'movieshare.in')]");
  5098. addObsoleteHost("milledrive\\.com\/files\/\\d+","//a[contains(@href,'milledrive.com')]");
  5099. addObsoleteHost("quickupload\\.net\/\\w+","//a[contains(@href,'quickupload.net')]");
  5100. addObsoleteHost("safelink\\.in\/\\w+","//a[contains(@href,'safelink.in')]");
  5101. addObsoleteHost("pyramidfiles\\.com\/\\w+","//a[contains(@href,'pyramidfiles.com/')]");
  5102. addObsoleteHost("(?:cloudnator|shragle)\\.com\/files","//a[contains(@href,'cloudnator.com/files') or contains(@href,'shragle.com/files')]");
  5103. addObsoleteHost("batshare\\.com\/\\w+","//a[contains(@href,'batshare.com/')]");
  5104. addObsoleteHost("bitroad\\.net\/download","//a[contains(@href,'bitroad.net/download')]");
  5105. addObsoleteHost("metadivx\\.com\/\\w+","//a[contains(@href,'metadivx.com')]");
  5106. addObsoleteHost("filegaze\\.com\/\\w+","//a[contains(@href,'filegaze.com/')]");
  5107. addObsoleteHost("bulletupload\\.com\/\\w+","//a[contains(@href,'bulletupload.com/')]");
  5108. addObsoleteHost("sharefilehost\\.com\/\\w+","//a[contains(@href,'sharefilehost.com/')]");
  5109. addObsoleteHost("fireuploads\\.net\/\\w+","//a[contains(@href,'fireuploads.net/')]");
  5110. addObsoleteHost("divxlink\\.com\/\\w+","//a[contains(@href,'divxlink.com/')]");
  5111. addObsoleteHost("bzlink\\.us\/\\w+","//a[contains(@href,'bzlink.us/')]");
  5112. addObsoleteHost("filetechnology\\.com\/\\w+","//a[contains(@href,'filetechnology.com/')]");
  5113. addObsoleteHost("filecosy\\.com\/\\w+","//a[contains(@href,'filecosy.com/')]");
  5114. addObsoleteHost("fileserver\\.cc\/\\w+","//a[contains(@href,'fileserver.cc/')]");
  5115. addObsoleteHost("shafiles\\.me\/\\w+","//a[contains(@href,'shafiles.me/')]");
  5116. addObsoleteHost("xfileshare\\.eu\/\\w+","//a[contains(@href,'xfileshare.eu/')]");
  5117. addObsoleteHost("uploadboost\\.com\/\\w+","//a[contains(@href,'uploadboost.com/')]");
  5118. addObsoleteHost("uploadoz\\.com\/\\w+","//a[contains(@href,'uploadoz.com/')]");
  5119. addObsoleteHost("ihostia\\.com\/\\w+","//a[contains(@href,'ihostia.com/')]");
  5120. addObsoleteHost("shareupload\\.com\/\\w+","//a[contains(@href,'shareupload.com/')]");
  5121. addObsoleteHost("ovfile\\.com\/\\w+","//a[contains(@href,'ovfile.com/')]");
  5122. addObsoleteHost("stahuj\\.to\/\\w+","//a[contains(@href,'stahuj.to/')]");
  5123. addObsoleteHost("gigfiles\\.net\/\\w+","//a[contains(@href,'gigfiles.net/')]");
  5124. addObsoleteHost("vidhog\\.com\/\\w+","//a[contains(@href,'vidhog.com/')]");
  5125. addObsoleteHost("filelaser\\.com\/\\w+","//a[contains(@href,'filelaser.com/')]");
  5126. addObsoleteHost("holderfile\\.com\/\\w+","//a[contains(@href,'holderfile.com/')]");
  5127. addObsoleteHost("fileduct\\.(?:com|net)\/\\w+","//a[contains(@href,'fileduct.com/') or contains(@href,'fileduct.net')]");
  5128. addObsoleteHost("filefat\\.com\/\\w+","//a[contains(@href,'filefat.com/')]");
  5129. addObsoleteHost("restfile\\.com\/\\w+","//a[contains(@href,'restfile.com/')]");
  5130. addObsoleteHost("filemashine\\.com\\/download\/\\w+","//a[contains(@href,'filemashine.com/download')]");
  5131. addObsoleteHost("cloudnxt\\.net\/\\w+","//a[contains(@href,'cloudnxt.net/')]");
  5132. addObsoleteHost("uploadrack\\.com\/\\w+","//a[contains(@href,'uploadrack.com')]");
  5133. addObsoleteHost("teradepot\\.com\/\\w+","//a[contains(@href,'teradepot.com')]");
  5134. addObsoleteHost("dataup\\.to\/\\d+\/","//a[contains(@href,'dataup.to')]");
  5135. addObsoleteHost("upit\\.to\/file:\\d+","//a[contains(@href,'upit.to/file')]");
  5136. addObsoleteHost("badongo\\.(?:com|net)\/(?:\\w\\w\/|)(?:vid|cfile|file|pt)\/\\w+","//a[contains(@href,'badongo.com') or contains(@href,'badongo.net')]");
  5137. addObsoleteHost("driveway\\.com\/\\w+","//a[contains(@href,'driveway.com')]");
  5138. addObsoleteHost("eatlime\\.com\/download","//a[contains(@href,'eatlime.com/download')]");
  5139. addObsoleteHost("a2zuploads\\.com\/id\\w+","//a[contains(@href,'a2zuploads.com/id')]");
  5140. addObsoleteHost("friendlyfiles\\.net\/download\/\\w+\/","//a[contains(@href,'friendlyfiles.net/download')]");
  5141. addObsoleteHost("flyfile\\.us\/\\w+","//a[contains(@href,'flyfile.us')]");
  5142. addObsoleteHost("speedyshare\\.com\/\\w+","//a[contains(@href,'speedyshare.com')]");
  5143. addObsoleteHost("brontofile\\.com\/download","//a[contains(@href,'brontofile.com/download')]");
  5144. addObsoleteHost("uploadspace\\.eu\/\\w+","//a[contains(@href,'uploadspace.eu')]");
  5145. addObsoleteHost("fooget\\.com\/\\w+","//a[contains(@href,'fooget.com/')]");
  5146. addObsoleteHost("file-bit.net\/\\w+","//a[contains(@href,'file-bit.net/')]");
  5147. addObsoleteHost("keepfile\\.com\/\\w+","//a[contains(@href,'http://keepfile.com')]");
  5148. addObsoleteHost("piggyshare\\.com\/file\/\\w+","//a[contains(@href,'piggyshare.com')]");
  5149. addObsoleteHost("filecrown\\.com\/\\w+","//a[contains(@href,'filecrown.com')]");
  5150. addObsoleteHost("6giga\\.com\/\\w+","//a[contains(@href,'6giga.com')]");
  5151. addObsoleteHost("uploadjockey\\.com\/download\/\\w+","//a[contains(@href,'uploadjockey.com/download')]");
  5152. addObsoleteHost("bluehost\\.to\/dl=\\w+","//a[contains(@href,'bluehost.to')]");
  5153. addObsoleteHost("coolshare\\.cz\/stahnout\/\\w+","//a[contains(@href,'coolshare.cz/stahnout')]");
  5154. addObsoleteHost("filegu\\.ru\/f\/\\w+","//a[contains(@href,'filegu.ru/f')]");
  5155. addObsoleteHost("filebase\\.to\/files\/\\d+\/","//a[contains(@href,'filebase.to/files')]");
  5156. addObsoleteHost("kickload\\.com\/(?:file|get)\/","//a[contains(@href,'kickload.com/file') or contains(@href,'kickload.com/get')]");
  5157. addObsoleteHost("up-file\\.com\/files\/download\/\\w+\/","//a[contains(@href,'up-file.com/download')]");
  5158. addObsoleteHost("ezyfile\\.net\/\\w+","//a[contains(@href,'ezyfile.net/')]");
  5159. addObsoleteHost("k2files\\.com\/files","//a[contains(@href,'k2files.com/files')]");
  5160. addObsoleteHost("aiotool\\.net\/\\w+","//a[contains(@href,'aiotool.net/')]");
  5161. addObsoleteHost("xvideos\\.com\/files\/\\d+\/\\w+","//a[contains(@href,'xvideos.com/files')]");
  5162. addObsoleteHost("filebling\\.com\/dl\/\\d+\/\\d+\/\\w+","//a[contains(@href,'filebling.com/dl')]");
  5163. addObsoleteHost("loaded\\.it\/divx\/\\w+","//a[contains(@href,'loaded.it/divx')]");
  5164. addObsoleteHost("uploadcell\\.com\/\\w+\/\\w+","//a[contains(@href,'uploadcell.com')]");
  5165. addObsoleteHost("jakfile\\.com\/\\w+","//a[contains(@href,'jakfile.com/')]");
  5166. addObsoleteHost("uploadshare\\.cz\/download\/\\w+\/\\w+","//a[contains(@href,'uploadshare.cz/download')]");
  5167. addObsoleteHost("mangoshare\\.com\/\\w+","//a[contains(@href,'mangoshare.com')]");
  5168. addObsoleteHost("ugotfile\\.com\/file\/\\d+\/\\w+","//a[contains(@href,'ugotfile.com/file')]");
  5169. addObsoleteHost("filestab\\.com\/\\w+","//a[contains(@href,'filestab.com')]");
  5170. addObsoleteHost("dotavi\\.com\/\\w+\/.","//a[contains(@href,'dotavi.com/')]");
  5171. addObsoleteHost("crazyupload\\.com\/\\w+","//a[contains(@href,'crazyupload.com')]");
  5172. addObsoleteHost("gaiafile\\.com\/\\w+","//a[contains(@href,'gaiafile.com')]");
  5173. addObsoleteHost("sharejunky\\.com\/\\w+","//a[contains(@href,'sharejunky.com')]");
  5174. addObsoleteHost("fileho\\.com\/download\/\\d+","//a[contains(@href,'fileho.com/download')]");
  5175. addObsoleteHost("(?:bigandfree|BigAndFree)\\.com\/\\d+","//a[contains(@href,'bigandfree.com') or contains(@href,'BigAndFree.com')]");
  5176. addObsoleteHost("bigfile\\.in\/\\w+","//a[contains(@href,'bigfile.in')]");
  5177. addObsoleteHost("bigshare\\.eu\/download\\.php\\?id=","//a[contains(@href,'bigshare.eu/download.php')]");
  5178. addObsoleteHost("dahosting\\.org\/dl\/\\w+","//a[contains(@href,'dahosting.org/dl')]");
  5179. addObsoleteHost("digisofts\\.net\/\\w+","//a[contains(@href,'digisofts.net')]");
  5180. addObsoleteHost("file4save\\.com\/\\w+\/\\w+","//a[contains(@href,'file4save.com')]");
  5181. addObsoleteHost("filereactor\\.com\/\\w+","//a[contains(@href,'filereactor.com/')]");
  5182. addObsoleteHost("filechip\\.com\/\\w+","//a[contains(@href,'filechip.com')]");
  5183. addObsoleteHost("filescloud\\.com\/\\w+\/\\w+","//a[contains(@href,'filescloud.com')]");
  5184. addObsoleteHost("saveqube\\.com\/getfile\/\\w+","//a[contains(@href,'saveqube.com/getfile')]");
  5185. addObsoleteHost("www2\\.turboshare\\.de\/v\/\\d+","//a[contains(@href,'turboshare.de/v')]");
  5186. addObsoleteHost("z-upload\\.com\/\\w+","//a[contains(@href,'z-upload.com')]");
  5187. addObsoleteHost("youshare\\.com\/view\\.php","//a[contains(@href,'youshare.com/view')]");
  5188. addObsoleteHost("jiffyupload\\.com\/\\w+","//a[contains(@href,'jiffyupload.com')]");
  5189. addObsoleteHost("gigeshare\\.com\/preview\/\\w+","//a[contains(@href,'gigeshare.com')]");
  5190. addObsoleteHost("datenklo\\.net\/dl","//a[contains(@href,'datenklo.net')]");
  5191. addObsoleteHost("upload\\.dj\/download\\.php\\?id=\\w+","//a[contains(@href,'upload.dj/download.php')]");
  5192. addObsoleteHost("loadfiles\\.in\/\\w+\/","//a[contains(@href,'loadfiles.in')]");
  5193. addObsoleteHost("upit\\.to\/file:\\w+\/","//a[contains(@href,'upit.to/file')]");
  5194. addObsoleteHost("zshare\\.net\/(?:download|video|audio)\/\\w+","//a[contains(@href,'zshare.net/')]");
  5195. addObsoleteHost("refile\\.net\/f\/\\?\\w+","//a[contains(@href,'refile.net/f/')]");
  5196. addObsoleteHost("dsfileshare\\.com\/download","//a[contains(@href,'dsfileshare.com/download')]");
  5197. addObsoleteHost("sharesimple\\.net\/\\w{2}\/download","//a[contains(@href,'sharesimple.net')]");
  5198. addObsoleteHost("(?:s\\d+\\.|)4files\\.net\/\\d+","//a[contains(@href,'4files.net')]");
  5199. addObsoleteHost("odsiebie\\.com\/pokaz\/\\d+","//a[contains(@href,'odsiebie.com/pokaz')]");
  5200. addObsoleteHost("filenavi\\.com\/direct\/\\w+","//a[contains(@href,'filenavi.com/direct')]");
  5201. addObsoleteHost("3oof\\.com\/\\w+","//a[contains(@href,'3oof.com/')]");
  5202. addObsoleteHost("meshwaar\\.com\/\\w+","//a[contains(@href,'meshwaar.com')]");
  5203. addObsoleteHost("maxupload\\.com\/files\/\\w+","//a[contains(@href,'maxupload.com/files')]");
  5204. addObsoleteHost("share\\.cx\/videos\/\\d+","//a[contains(@href,'share.cx/videos')]");
  5205. addObsoleteHost("atserver\\.eu\/(?:\\w{2}\/|)download\/\\d+","//a[contains(@href,'atserver.eu')]");
  5206. addObsoleteHost("file2upload\\.net\/download\/\\d+","//a[contains(@href,'file2upload.net/download')]");
  5207. addObsoleteHost("filebling\\.com\/\\w+","//a[contains(@href,'filebling.com')]");
  5208. addObsoleteHost("turboshare\\.(?:eu|com)\/files","//a[contains(@href,'turboshare.') and contains(@href,'/files')]");
  5209. addObsoleteHost("rarhost\\.com\/download","//a[contains(@href,'rarhost.com/download')]");
  5210. addObsoleteHost("isharehd\\.com\/\\w+","//a[contains(@href,'isharehd.com')]");
  5211. addObsoleteHost("datenklo\\.net\/file\\.php\\?id=\\w+","//a[contains(@href,'datenklo.net/file.php')]");
  5212. addObsoleteHost("file2share\\.biz\/download\\.php\\?id=\\w+","//a[contains(@href,'file2share.biz/download.php')]");
  5213. addObsoleteHost("savefiles\\.net\/d\/\\w+\\.html","//a[contains(@href,'savefiles.net/d')]");
  5214. addObsoleteHost("bestsharing\\.com\/files\/\\w+","//a[contains(@href,'bestsharing.com/files')]");
  5215. addObsoleteHost("filecache\\.de\/\\d+","//a[contains(@href,'filecache.de/')]");
  5216. addObsoleteHost("i741\\.com\/files\/\\w+","//a[contains(@href,'i741.com/files')]");
  5217. addObsoleteHost("dataup\\.de\/\\d+","//a[contains(@href,'dataup.de')]");
  5218. addObsoleteHost("fofly\\.com\/\\w+","//a[contains(@href,'fofly.com')]");
  5219. addObsoleteHost("shareonall\\.com\/\\w+","//a[contains(@href,'shareonall.com')]");
  5220. addObsoleteHost("sexuploader\\.com\/(?:|..\/)\\?[d|v]=\\w{8}","//a[contains(@href,'sexuploader.com')]");
  5221. 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')]");
  5222. addObsoleteHost("uploadhyper\\.com\/file\/","//a[contains(@href,'uploadhyper.com')]");
  5223. addObsoleteHost("filespawn\\.com\/file\/","//a[contains(@href,'filespawn.com')]");
  5224. addObsoleteHost("caizzii\\.com\/(?:download|\\?file=)","//a[contains(@href,'caizzii.com')]");
  5225. addObsoleteHost("volnyweb\\.cz\/files\/get\/[\\w-_]+","//a[contains(@href,'volnyweb.cz/files')]");
  5226. addObsoleteHost("gotupload\\.com\/\\w+","//a[contains(@href,'gotupload.com/')]");
  5227. addObsoleteHost("mooload\\.com\/new\/file\\.php\\?file=files\/\\d+\/\\d+","//a[contains(@href,'mooload.com/new/file')]");
  5228. addObsoleteHost("z\\d+\\.zupload\\.com\/download\\.php\\?file=getfile&filepath=\\d+","//a[contains(@href,'zupload.com/download')]");
  5229. addObsoleteHost("mytempdir\\.com\/\\d+","//a[contains(@href,'mytempdir.com/')]");
  5230. addObsoleteHost("usershare\\.net\/\\w+","//a[contains(@href,'usershare.net/')]");
  5231. addObsoleteHost("qshare\\.com\/get\/\\d+\/.","//a[contains(@href,'qshare.com/get')]");
  5232. addObsoleteHost("filescash\\.net\/file\/\\d+","//a[contains(@href,'filescash.net/file')]");
  5233. addObsoleteHost("metahyper\\.com\/\\w+","//a[contains(@href,'metahyper.com/')]");
  5234. addObsoleteHost("combozip\\.com\/\\w+","//a[contains(@href,'combozip.com/')]");
  5235. addObsoleteHost("anonstream\\.com\/get_\\w+","//a[contains(@href,'anonstream.com/get_')]");
  5236. addObsoleteHost("x7\\.to\/\\w+","//a[contains(@href,'x7.to/')]");
  5237. addObsoleteHost("uploadbox\\.com\/files\/\\w+","//a[contains(@href,'uploadbox.com/files')]");
  5238. addObsoleteHost("(?:flyupload\\.)?(?:enterupload|flyupload)\\.com\/[\\?\\w]+","//a[contains(@href,'enterupload.com/') or contains(@href,'flyupload.com/')]");
  5239. addObsoleteHost("filepoint\\.de\/dl\/\\w+","//a[contains(@href,'filepoint.de/dl')]");
  5240. addObsoleteHost("icushare\\.com\/\\w+","//a[contains(@href,'icushare.com/')]");
  5241. addObsoleteHost("oron\\.com\/\\w+","//a[contains(@href,'oron.com/')]");
  5242. addObsoleteHost("mystream\\.to\/file\\-\\d+","//a[contains(@href,'mystream.to/file')]");
  5243. addObsoleteHost("x-fs\\.com\/download\\.php\\?id=\\w+","//a[contains(@href,'x-fs.com/download')]");
  5244. addObsoleteHost("srapid\\.eu\/\\w+","//a[contains(@href,'srapid.eu/')]");
  5245. addObsoleteHost("shareshared\\.com\/\\w+","//a[contains(@href,'shareshared.com/')]");
  5246. addObsoleteHost("sosame\\.cz\/\\w+","//a[contains(@href,'sosame.cz/')]");
  5247. addObsoleteHost("s\\d+\\.filesdump\\.com\/file\/\\w+","//a[contains(@href,'filesdump.com/file')]");
  5248. addObsoleteHost("2-klicks\\.de\/\\?d=\\w+","//a[contains(@href,'2-klicks.de/?d=')]");
  5249. addObsoleteHost("silofiles\\.com\/file\/\\d+","//a[contains(@href,'silofiles.com/file')]");
  5250. addObsoleteHost("upfile\\.in\/\\w+","//a[contains(@href,'upfile.in/')]");
  5251. addObsoleteHost("filehook\\.com\/\\w+","//a[contains(@href,'filehook.com/')]");
  5252. addObsoleteHost("mojofile\\.com\/\\w+","//a[contains(@href,'mojofile.com/')]");
  5253. addObsoleteHost("cloudcache\\.cc\/\\w+","//a[contains(@href,'cloudcache.cc/')]");
  5254. addObsoleteHost("1hostclick\\.com\/\\w+","//a[contains(@href,'1hostclick.com/')]");
  5255. addObsoleteHost("4bytez\\.com\/\\w+","//a[contains(@href,'4bytez.com/')]");
  5256. addObsoleteHost("uploadking\\.com\/\\w+","//a[contains(@href,'uploadking.com/')]");
  5257. addObsoleteHost("nahraj\\.cz\/(?:content|down)\/\\w+","//a[contains(@href,'nahraj.cz/')]");
  5258. addObsoleteHost("megarapid\\.eu\/files\/\\d+","//a[contains(@href,'megarapid.eu/files')]");
  5259. addObsoleteHost("(?:fileserve|uploadstation)\\.com\/(?:file|list)\/\\w+","//a[contains(@href,'fileserve.com/') or contains(@href,'uploadstation.com/')]");
  5260. addObsoleteHost("uploadhere\\.com\/\\w+","//a[contains(@href,'uploadhere.com/')]");
  5261. addObsoleteHost("dualshare\\.com\/\\w+","//a[contains(@href,'dualshare.com/')]");
  5262. addObsoleteHost("yourfilehost\\.com\/media","//a[contains(@href,'yourfilehost.com/media')]");
  5263. addObsoleteHost("ftp2share\\.com\/file\/\\w+","//a[contains(@href,'ftp2share.com/file')]");
  5264. addObsoleteHost("storeandserve\\.com\/download\/\\d+","//a[contains(@href,'storeandserve.com/download')]");
  5265. addObsoleteHost("mountfile\\.com\/file(?:\/\\w+){2}","//a[contains(@href,'mountfile.com/file')]");
  5266. addObsoleteHost("save\\.am\/files\/\\w+","//a[contains(@href,'save.am/files')]");
  5267. addObsoleteHost("transitfiles\\.com\/dl\/\\w+","//a[contains(@href,'transitfiles.com/dl')]");
  5268. addObsoleteHost("smartuploader\\.com\/file\\.php\\?f=\\d+","//a[contains(@href,'smartuploader.com/file.php?=')]");
  5269. addObsoleteHost("skipfile\\.com\/\\w+","//a[contains(@href,'skipfile.com/')]");
  5270. addObsoleteHost("stahnu\\.to\/[\\w\\?]+","//a[contains(@href,'stahnu.to/')]");
  5271. addObsoleteHost("flyshare\.cz\/(?:stahni\/|)\\d+","//a[contains(@href,'flyshare.cz/')]");
  5272. addObsoleteHost("(?:ddlani\\.me|ddlanime\\.com)\/\\w+","//a[contains(@href,'ddlani.me/') or contains(@href,'ddlanime.com/')]");
  5273. addObsoleteHost("loadly\\.com\/\\w+","//a[contains(@href,'loadly.com/')]");
  5274. addObsoleteHost("groovefile\\.com\/\\w+","//a[contains(@href,'groovefile.com/')]");
  5275. addObsoleteHost("filezlot\\.com\/\\w+","//a[contains(@href,'filezlot.com/')]");
  5276. addObsoleteHost("shareator\\.(?:net|com)\/\\w+","//a[contains(@href,'shareator.')]");
  5277. addObsoleteHost("yabadaba\\.ru\/files\/","//a[contains(@href,'yabadaba.ru/files/')]");
  5278. addObsoleteHost("rapidhide\\.com\/download\\.php\\?file=\\w+","//a[contains(@href,'rapidhide.com/download.php')]");
  5279. addObsoleteHost("filejungle\\.com\/[fl]\/\\w+","//a[contains(@href,'filejungle.com/')]");
  5280. addObsoleteHost("kewlshare\\.com\/dl\/\\d+","//a[contains(@href,'kewlshare.com/dl')]");
  5281. addObsoleteHost("petandrive\\.com\/file\/\\w+","//a[contains(@href,'petandrive.com/file')]");
  5282. addObsoleteHost("onionshare\\.com\/\\w+","//a[contains(@href,'onionshare.com/')]");
  5283. addObsoleteHost("rapidable\\.com\/\\w+\/download\\.php\\?id=","//a[contains(@href,'rapidable.com/')]");
  5284. addObsoleteHost("filesdump\\.com\/file\/\\w+\/\\d+","//a[contains(@href,'filesdump.com/file')]");
  5285. addObsoleteHost("file2box\\.(?:net|com)\/\\w+","//a[contains(@href,'file2box.')]");
  5286. addObsoleteHost("(?:filesonic|sharingmatrix|wupload)(?:\\.\\w+){1,2}\/(?:file|folder)\/\\w+","//a[contains(@href,'filesonic.') or contains(@href,'sharingmatrix.com') or contains(@href,'wupload.')]");
  5287. // addObsoleteHost("wizzupload\\.com\/\\w+","//a[contains(@href,'wizzupload.com/')]");
  5288. addObsoleteHost("bloggerarticles\\.com\/\\w+","//a[contains(@href,'bloggerarticles.com/')]");
  5289. addObsoleteHost("mojedata\\.sk/","//a[contains(@href,'mojedata.sk/')]");
  5290. addObsoleteHost("sharpfile\\.com\/\\w+","//a[contains(@href,'sharpfile.com/')]");
  5291. addObsoleteHost("upgrand\\.com\/\\w+","//a[contains(@href,'upgrand.com/')]");
  5292. addObsoleteHost("nasdilej\\.cz\/\\w+","//a[contains(@href,'nasdilej.cz/')]");
  5293. addObsoleteHost("mediatack\\.cz\/stahuj/\\w+","//a[contains(@href,'mediatack.cz/stahuj/')]");
  5294. addObsoleteHost("share-it\\.to\/file/\\w+","//a[contains(@href,'share-it.to/file/')]");
  5295. addObsoleteHost("primeupload\\.com\/file/\\w+","//a[contains(@href,'primeupload.com/file/')]");
  5296. addObsoleteHost("(?:uploads\\.glumbo|glumbouploads)\\.com\/\\w+","//a[contains(@href,'uploads.glumbo.com') or contains(@href,'glumbouploads.com')]");
  5297. addObsoleteHost("filebeer\\.info\/\\w+","//a[contains(@href,'filebeer.info/')]");
  5298. addObsoleteHost("baberepublic\\.com\/link\/\\w+","//a[contains(@href,'baberepublic.com/link/')]");
  5299. addObsoleteHost("xtu\\.me\/\\w+","//a[contains(@href,'xtu.me/')]");
  5300. addObsoleteHost("sharebase\\.de\/files\/\\w+","//a[contains(@href,'sharebase.de/files/')]");
  5301. addObsoleteHost("filerobo\\.com\/\\w+","//a[contains(@href,'filerobo.com/')]");
  5302. addObsoleteHost("filevelocity\\.com\/\\w+","//a[contains(@href,'filevelocity.com/')]");
  5303. addObsoleteHost("filezpro\\.com\/\\w+","//a[contains(@href,'filezpro.com/')]");
  5304. addObsoleteHost("file4sharing\\.com\/\\w+","//a[contains(@href,'file4sharing.com/')]");
  5305. addObsoleteHost("cing\\.be\/\\w+","//a[contains(@href,'cing.be/')]");
  5306. addObsoleteHost("ufile\\.eu\/\\w+","//a[contains(@href,'ufile.eu/')]");
  5307. addObsoleteHost("pigsonic\\.com\/\\w+","//a[contains(@href,'pigsonic.com/')]");
  5308. addObsoleteHost("fileupped\\.com\/\\w+","//a[contains(@href,'fileupped.com/')]");
  5309. addObsoleteHost("sharerun\\.com\/\\w+","//a[contains(@href,'sharerun.com/')]");
  5310. addObsoleteHost("rapidslnare\\.com\/\\w+","//a[contains(@href,'rapidslnare.com/')]");
  5311. addObsoleteHost("monsteruploads\\.eu\/\\w+","//a[contains(@href,'monsteruploads.eu/')]");
  5312. addObsoleteHost("b9bb\\.com\/\\w+","//a[contains(@href,'b9bb.com/')]");
  5313. addObsoleteHost("jamber\\.info\/\\w+","//a[contains(@href,'jamber.info/')]");
  5314. addObsoleteHost("(?:megaftp|MegaFTP)\\.com\/\\w+","//a[contains(@href,'megaftp.com/') or contains(@href,'MegaFTP.com/')]");
  5315. addObsoleteHost("desiupload\\.net\/\\?d=\\w+","//a[contains(@href,'desiupload.net/')]");
  5316. addObsoleteHost("file27\\.com\/\\w+","//a[contains(@href,'file27.com/')]");
  5317. addObsoleteHost("yastorage\\.com\/\\w+","//a[contains(@href,'yastorage.com/')]");
  5318. addObsoleteHost("filehost\\.ws\/\\w+","//a[contains(@href,'filehost.ws/')]");
  5319. addObsoleteHost("copyload\\.com\/\\w+","//a[contains(@href,'copyload.com/')]");
  5320. addObsoleteHost("venusfile\\.com\/\\w+","//a[contains(@href,'venusfile.com/')]");
  5321. addObsoleteHost("aieshare\\.com\/\\w+","//a[contains(@href,'aieshare.com/')]");
  5322. addObsoleteHost("fileza\\.net\/\\w+","//a[contains(@href,'fileza.net/')]");
  5323. addObsoleteHost("filerose\\.com\/\\w+","//a[contains(@href,'filerose.com/')]");
  5324. addObsoleteHost("squillion\\.com\/\\w+","//a[contains(@href,'squillion.com/')]");
  5325. addObsoleteHost("fileprohost\\.com\/\\w+","//a[contains(@href,'fileprohost.com/')]");
  5326. addObsoleteHost("bitbonus\\.com\/download\/\\w+","//a[contains(@href,'bitbonus.com/')]");
  5327. addObsoleteHost("warserver\\.cz\/\\w+","//a[contains(@href,'warserver.cz/')]");
  5328. addObsoleteHost("uload\\.to\/\\w+","//a[contains(@href,'uload.to/')]");
  5329. addObsoleteHost("sharedbit\\.net\/\\w+","//a[contains(@href,'sharedbit.net/')]");
  5330. addObsoleteHost("megaload\\.it\/\\w+","//a[contains(@href,'megaload.it/')]");
  5331. addObsoleteHost("filewinds\\.com\/\\w+","//a[contains(@href,'filewinds.com/')]");
  5332. addObsoleteHost("uploadcore\\.com\/\\w+","//a[contains(@href,'uploadcore.com/')]");
  5333. addObsoleteHost("syfiles\\.com\/\\w+","//a[contains(@href,'syfiles.com/')]");
  5334. addObsoleteHost("eyesfile\\.com\/\\w+","//a[contains(@href,'eyesfile.com/')]");
  5335. addObsoleteHost("hotfile\\.com\/\\w+","//a[contains(@href,'hotfile.com/')]");
  5336. addObsoleteHost("superupl\\.com\/\\w+","//a[contains(@href,'superupl.com/')]");
  5337. addObsoleteHost("oteupload\\.com\/\\w+","//a[contains(@href,'oteupload.com/')]");
  5338. addObsoleteHost("henchfile\\.com\/\\w+","//a[contains(@href,'henchfile.com/')]");
  5339. addObsoleteHost("HenchFile\\.com\/\\w+","//a[contains(@href,'HenchFile.com/')]");
  5340. addObsoleteHost("filegag\\.com\/\\w+","//a[contains(@href,'filegag.com/')]");
  5341. addObsoleteHost("filedefend\\.com\/\\w+","//a[contains(@href,'filedefend.com/')]");
  5342. addObsoleteHost("hotfiles\\.ws\/\\w+","//a[contains(@href,'hotfiles.ws/')]");
  5343. addObsoleteHost("share-rapid\\.com\/\\w+","//a[contains(@href,'share-rapid.com/')]");
  5344. //addObsoleteHost("sharerapid\\.cz\/\\w+","//a[contains(@href,'sharerapid.cz/')]");
  5345. addObsoleteHost("rapids\\.cz\/\\w+","//a[contains(@href,'rapids.cz/')]");
  5346. addObsoleteHost("share-credit\\.cz\/\\w+","//a[contains(@href,'share-credit.cz/')]");
  5347. addObsoleteHost("share-central\\.cz\/\\w+","//a[contains(@href,'share-central.cz/')]");
  5348. addObsoleteHost("share-ms\\.cz\/\\w+","//a[contains(@href,'share-ms.cz/')]");
  5349. addObsoleteHost("share-net\\.cz\/\\w+","//a[contains(@href,'share-net.cz/')]");
  5350. addObsoleteHost("srapid\\.cz\/\\w+","//a[contains(@href,'srapid.cz/')]");
  5351. addObsoleteHost("share-rapid\\.cz\/\\w+","//a[contains(@href,'share-rapid.cz/')]");
  5352. addObsoleteHost("wooupload\\.com\/\\w+","//a[contains(@href,'wooupload.com/')]");
  5353. addObsoleteHost("megabitshare\\.com\/\\w+","//a[contains(@href,'megabitshare.com/')]");
  5354. addObsoleteHost("uploking\\.com\/\\w+","//a[contains(@href,'uploking.com/')]");
  5355. addObsoleteHost("esnips\\.com\/\\w+","//a[contains(@href,'esnips.com/')]");
  5356. addObsoleteHost("uplly\\.com\/\\w+","//a[contains(@href,'uplly.com/')]");
  5357. addObsoleteHost("ufox\\.com\/\\w+","//a[contains(@href,'ufox.com/')]");
  5358. addObsoleteHost("clz\\.to\/\\w+","//a[contains(@href,'clz.to/')]");
  5359. addObsoleteHost("cloudzer\\.net\/\\w+","//a[contains(@href,'cloudzer.net/')]");
  5360. addObsoleteHost("cloudzer\\.com\/\\w+","//a[contains(@href,'cloudzer.com/')]");
  5361. addObsoleteHost("extabit\\.com\/\\w+","//a[contains(@href,'extabit.com/')]");
  5362. addObsoleteHost("uploadwaste\\.com\/\\w+","//a[contains(@href,'uploadwaste.com/')]");
  5363. addObsoleteHost("247upload\\.com\/\\w+","//a[contains(@href,'uploadwaste.com/')]");
  5364. addObsoleteHost("2download\\.de\/\\w+","//a[contains(@href,'2download.de/')]");
  5365. addObsoleteHost("4fastfile\\.com\/\\w+","//a[contains(@href,'4fastfile.com/')]");
  5366. addObsoleteHost("asixfiles\\.com\/\\w+","//a[contains(@href,'asixfiles.com/')]");
  5367. addObsoleteHost("berofile\\.com\/\\w+","//a[contains(@href,'berofile.com/')]");
  5368. addObsoleteHost("bigupload\\.com\/\\w+","//a[contains(@href,'bigupload.com/')]");
  5369. addObsoleteHost("cepzo\\.com\/\\w+","//a[contains(@href,'cepzo.com/')]");
  5370. addObsoleteHost("czshare\\.com\/\\w+","//a[contains(@href,'czshare.com/')]");
  5371. addObsoleteHost("clouds\\.to\/\\w+","//a[contains(@href,'clouds.to/')]");
  5372. addObsoleteHost("cobrashare\\.sk\/\\w+","//a[contains(@href,'cobrashare.sk/')]");
  5373. addObsoleteHost("coraldrive\\.net\/\\w+","//a[contains(@href,'coraldrive.net/')]");
  5374. addObsoleteHost("cyberlocker\\.ch\/\\w+","//a[contains(@href,'cyberlocker.ch/')]");
  5375. addObsoleteHost("darkport\\.org\/\\w+","//a[contains(@href,'darkport.org/')]");
  5376. addObsoleteHost("dark-uploads\\.com\/\\w+","//a[contains(@href,'dark-uploads.com/')]");
  5377. addObsoleteHost("davvas\\.com\/\\w+","//a[contains(@href,'davvas.com/')]");
  5378. addObsoleteHost("enigmashare\\.com\/\\w+","//a[contains(@href,'enigmashare.com/')]");
  5379. addObsoleteHost("erofly\\.cz\/\\w+","//a[contains(@href,'erofly.cz/')]");
  5380. addObsoleteHost("fastsonic\\.net\/\\w+","//a[contains(@href,'fastsonic.net/')]");
  5381. addObsoleteHost("filebox\\.com\/\\w+","//a[contains(@href,'filebox.com/')]");
  5382. addObsoleteHost("filecity\\.net\/\\w+","//a[contains(@href,'filecity.net/')]");
  5383. addObsoleteHost("filedap\\.com\/\\w+","//a[contains(@href,'filedap.com/')]");
  5384. addObsoleteHost("filedino\\.com\/\\w+","//a[contains(@href,'filedino.com/')]");
  5385. addObsoleteHost("filedownloads\\.org\/\\w+","//a[contains(@href,'filedownloads.org/')]");
  5386. addObsoleteHost("filefolks\\.com\/\\w+","//a[contains(@href,'filefolks.com/')]");
  5387. addObsoleteHost("fileking\\.co\/\\w+","//a[contains(@href,'fileking.co/')]");
  5388. addObsoleteHost("filemates\\.com\/\\w+","//a[contains(@href,'filemates.com/')]");
  5389. addObsoleteHost("files\\.to\/\\w+","//a[contains(@href,'files.to/')]");
  5390. addObsoleteHost("files2k\\.eu\/\\w+","//a[contains(@href,'files2k.eu/')]");
  5391. addObsoleteHost("filesector\\.cc\/\\w+","//a[contains(@href,'filesector.cc/')]");
  5392. addObsoleteHost("filesega\\.com\/\\w+","//a[contains(@href,'filesega.com/')]");
  5393. addObsoleteHost("filesend\\.net\/\\w+","//a[contains(@href,'filesend.net/')]");
  5394. addObsoleteHost("filestay\\.com\/\\w+","//a[contains(@href,'filestay.com/')]");
  5395. addObsoleteHost("filestrum\\.com\/\\w+","//a[contains(@href,'filestrum.com/')]");
  5396. addObsoleteHost("fileuplo\\.de\/\\w+","//a[contains(@href,'fileuplo.de/')]");
  5397. addObsoleteHost("fileupup\\.com\/\\w+","//a[contains(@href,'fileupup.com/')]");
  5398. addObsoleteHost("forunesia\\.com\/\\w+","//a[contains(@href,'forunesia.com/')]");
  5399. addObsoleteHost("freeuploads\\.fr\/\\w+","//a[contains(@href,'freeuploads.fr/')]");
  5400. addObsoleteHost("uploa\\.dk\/\\w+","//a[contains(@href,'uploa.dk/')]");
  5401. addObsoleteHost("getthebit\\.com\/\\w+","//a[contains(@href,'getthebit.com/')]");
  5402. addObsoleteHost("getzilla\\.net\/\\w+","//a[contains(@href,'getzilla.net/')]");
  5403. addObsoleteHost("goldfile\\.eu\/\\w+","//a[contains(@href,'goldfile.eu/')]");
  5404. addObsoleteHost("good\\.com\/\\w+","//a[contains(@href,'good.com/')]");
  5405. addObsoleteHost("grupload\\.com\/\\w+","//a[contains(@href,'grupload.com/')]");
  5406. addObsoleteHost("hellfile\\.com\/\\w+","//a[contains(@href,'hellfile.com/')]");
  5407. addObsoleteHost("hipfile\\.com\/\\w+","//a[contains(@href,'hipfile.com/')]");
  5408. addObsoleteHost("hitfile\\.com\/\\w+","//a[contains(@href,'hitfile.com/')]");
  5409. addObsoleteHost("hulkfile\\.eu\/\\w+","//a[contains(@href,'hulkfile.eu/')]");
  5410. addObsoleteHost("i-filez\\.com\/\\w+","//a[contains(@href,'i-filez.com/')]");
  5411. addObsoleteHost("ifile\\.ws\/\\w+","//a[contains(@href,'ifile.ws/')]");
  5412. addObsoleteHost("kupload\\.org\/\\w+","//a[contains(@href,'kupload.org/')]");
  5413. addObsoleteHost("duckfile\\.net\/\\w+","//a[contains(@href,'duckfile.net/')]");
  5414. addObsoleteHost("packupload\\.com\/\\w+","//a[contains(@href,'packupload.com/')]");
  5415. addObsoleteHost("terafile\\.com\/\\w+","//a[contains(@href,'terafile.com/')]");
  5416. addObsoleteHost("terafile\\.co\/\\w+","//a[contains(@href,'terafile.co/')]");
  5417. addObsoleteHost("fileom\\.com\/\\w+","//a[contains(@href,'fileom.com/')]");
  5418. addObsoleteHost("luckyshare\\.net\/\\w+","//a[contains(@href,'luckyshare.net/')]");
  5419. addObsoleteHost("lemuploads\\.com\/\\w+","//a[contains(@href,'lemuploads.com/')]");
  5420. addObsoleteHost("limelinx\\.com\/\\w+","//a[contains(@href,'limelinx.com/')]");
  5421. addObsoleteHost("maxshare\\.pl\/\\w+","//a[contains(@href,'maxshare.pl/')]");
  5422. addObsoleteHost("megarelease\\.org\/\\w+","//a[contains(@href,'megarelease.org/')]");
  5423. addObsoleteHost("megashare\\.com\/\\w+","//a[contains(@href,'megashare.com/')]");
  5424. addObsoleteHost("minus\\.com\/\\w+","//a[contains(@href,'minus.com/')]");
  5425. addObsoleteHost("mlfat4arab\\.com\/\\w+","//a[contains(@href,'mlfat4arab.com/')]");
  5426. addObsoleteHost("multishare\\.cz\/\\w+","//a[contains(@href,'multishare.cz/')]");
  5427. addObsoleteHost("nirafile\\.com\/\\w+","//a[contains(@href,'nirafile.com/')]");
  5428. addObsoleteHost("ok2upload\\.com\/\\w+","//a[contains(@href,'ok2upload.com/')]");
  5429. addObsoleteHost("peejeshare\\.com\/\\w+","//a[contains(@href,'peejeshare.com/')]");
  5430. addObsoleteHost("premiuns\\.org\/\\w+","//a[contains(@href,'premiuns.org/')]");
  5431. addObsoleteHost("przeklej\\.net\/\\w+","//a[contains(@href,'przeklej.net/')]");
  5432. addObsoleteHost("qkup\\.net\/\\w+","//a[contains(@href,'qkup.net/')]");
  5433. addObsoleteHost("rapidupload\\.sk\/\\w+","//a[contains(@href,'rapidupload.sk/')]");
  5434. addObsoleteHost("rockdizfile\\.com\/\\w+","//a[contains(@href,'rockdizfile.com/')]");
  5435. addObsoleteHost("rocketfile\\.net\/\\w+","//a[contains(@href,'rocketfile.net/')]");
  5436. addObsoleteHost("share-now\\.net\/\\w+","//a[contains(@href,'share-now.net/')]");
  5437. addObsoleteHost("share76\\.com\/\\w+","//a[contains(@href,'share76.com/')]");
  5438. addObsoleteHost("sharebees\\.com\/\\w+","//a[contains(@href,'sharebees.com/')]");
  5439. addObsoleteHost("sharefiles\\.co\/\\w+","//a[contains(@href,'sharefiles.co/')]");
  5440. addObsoleteHost("slingfile\\.com\/\\w+","//a[contains(@href,'slingfile.com/')]");
  5441. addObsoleteHost("sms4file\\.com\/\\w+","//a[contains(@href,'sms4file.com/')]");
  5442. addObsoleteHost("space4file\\.com\/\\w+","//a[contains(@href,'space4file.com/')]");
  5443. addObsoleteHost("tigershare\\.net\/\\w+","//a[contains(@href,'tigershare.net/')]");
  5444. addObsoleteHost("toucansharing\\.com\/\\w+","//a[contains(@href,'toucansharing.com/')]");
  5445. addObsoleteHost("ubuntuone\\.com\/\\w+","//a[contains(@href,'ubuntuone.com/')]");
  5446. addObsoleteHost("unextfiles\\.com\/\\w+","//a[contains(@href,'unextfiles.com/')]");
  5447. addObsoleteHost("upaj\\.pl\/\\w+","//a[contains(@href,'upaj.pl/')]");
  5448. addObsoleteHost("upfile\\.biz\/\\w+","//a[contains(@href,'upfile.biz/')]");
  5449. addObsoleteHost("uploadbin\\.net\/\\w+","//a[contains(@href,'uploadbin.net/')]");
  5450. addObsoleteHost("uploadic\\.com\/\\w+","//a[contains(@href,'uploadic.com/')]");
  5451. addObsoleteHost("uploadinc\\.com\/\\w+","//a[contains(@href,'uploadinc.com/')]");
  5452. addObsoleteHost("uploading4u\\.eu\/\\w+","//a[contains(@href,'uploading4u.eu/')]");
  5453. addObsoleteHost("uploadjet\\.net\/\\w+","//a[contains(@href,'uploadjet.net/')]");
  5454. addObsoleteHost("uploadorb\\.com\/\\w+","//a[contains(@href,'uploadorb.com/')]");
  5455. addObsoleteHost("upthe\\.net\/\\w+","//a[contains(@href,'upthe.net/')]");
  5456. addObsoleteHost("uptorch\\.com\/\\w+","//a[contains(@href,'uptorch.com/')]");
  5457. addObsoleteHost("vidbox\\.yt\/\\w+","//a[contains(@href,'vidbox.yt/')]");
  5458. addObsoleteHost("videozer\\.com\/\\w+","//a[contains(@href,'videozer.com/')]");
  5459. addObsoleteHost("vreer\\.com\/\\w+","//a[contains(@href,'vreer.com/')]");
  5460. addObsoleteHost("wallobit\\.com\/\\w+","//a[contains(@href,'wallobit.com/')]");
  5461. addObsoleteHost("zooupload\\.com\/\\w+","//a[contains(@href,'zooupload.com/')]");
  5462. addObsoleteHost("xerver\\.co\/\\w+","//a[contains(@href,'xerver.co/')]");
  5463. addObsoleteHost("privatefiles\\.com\/\\w+","//a[contains(@href,'privatefiles.com/')]");
  5464. addObsoleteHost("bitshare\\.com\/\\w+","//a[contains(@href,'bitshare.com/')]");
  5465. addObsoleteHost("asfile\\.com\/\\w+","//a[contains(@href,'asfile.com/')]");
  5466. addObsoleteHost("billionuploads\\.com\/\\w+","//a[contains(@href,'billionuploads.com/')]");
  5467. addObsoleteHost("\\*{7,100}\/[\\w\\d]+","//a[contains(@href,'*******/')]");
  5468. addObsoleteHost("filesaur\\.com\/\\w+","//a[contains(@href,'filesaur.com/')]");
  5469. addObsoleteHost("rapidshare\\.com\/\\w+","//a[contains(@href,'rapidshare.com/')]");
  5470. addObsoleteHost("rapidshare\\.ru\/\\w+","//a[contains(@href,'rapidshare.ru/')]");
  5471. addObsoleteHost("filesfrog\\.net\/\\w+","//a[contains(@href,'filesfrog.net/')]");
  5472. addObsoleteHost("4savefile\\.com\/\\w+","//a[contains(@href,'4savefile.com/')]");
  5473. addObsoleteHost("bayfiles\\.com\/\\w+","//a[contains(@href,'bayfiles.com/')]");
  5474. addObsoleteHost("bayfiles\\.net\/\\w+","//a[contains(@href,'bayfiles.net/')]");
  5475. addObsoleteHost("dodane\\.pl\/\\w+","//a[contains(@href,'dodane.pl/')]");
  5476. addObsoleteHost("dotsemper\\.com\/\\w+","//a[contains(@href,'dotsemper.com/')]");
  5477. addObsoleteHost("egofiles\\.com\/\\w+","//a[contains(@href,'egofiles.com/')]");
  5478. addObsoleteHost("epicshare\\.net\/\\w+","//a[contains(@href,'epicshare.net/')]");
  5479. addObsoleteHost("fiberupload\\.net\/\\w+","//a[contains(@href,'fiberupload.net/')]");
  5480. addObsoleteHost("filemonkey\\.in\/\\w+","//a[contains(@href,'filemonkey.in/')]");
  5481. addObsoleteHost("filemonster\\.net\/\\w+","//a[contains(@href,'filemonster.net/')]");
  5482. addObsoleteHost("filepom\\.com\/\\w+","//a[contains(@href,'filepom.com/')]");
  5483. addObsoleteHost("filesbb\\.com\/\\w+","//a[contains(@href,'filesbb.com/')]");
  5484. addObsoleteHost("fileshareup\\.com\/\\w+","//a[contains(@href,'fileshareup.com/')]");
  5485. addObsoleteHost("filevice\\.com\/\\w+","//a[contains(@href,'filevice.com/')]");
  5486. addObsoleteHost("gigaup\\.fr\/\\w+","//a[contains(@href,'gigaup.fr/')]");
  5487. addObsoleteHost("inafile\\.com\/\\w+","//a[contains(@href,'inafile.com/')]");
  5488. addObsoleteHost("isavelink\\.com\/\\w+","//a[contains(@href,'isavelink.com/')]");
  5489. addObsoleteHost("loombo\\.com\/\\w+","//a[contains(@href,'loombo.com/')]");
  5490. addObsoleteHost("megafiles\\.se\/\\w+","//a[contains(@href,'megafiles.se/')]");
  5491. addObsoleteHost("migupload\\.com\/\\w+","//a[contains(@href,'migupload.com/')]");
  5492. addObsoleteHost("mydisc\\.net\/\\w+","//a[contains(@href,'mydisc.net/')]");
  5493. addObsoleteHost("nitrobits\\.com\/\\w+","//a[contains(@href,'nitrobits.com/')]");
  5494. addObsoleteHost("potload\\.com\/\\w+","//a[contains(@href,'potload.com/')]");
  5495. addObsoleteHost("redload\\.net\/\\w+","//a[contains(@href,'redload.net/')]");
  5496. addObsoleteHost("shareprofi\\.com\/\\w+","//a[contains(@href,'shareprofi.com/')]");
  5497. addObsoleteHost("sharesuper\\.info\/\\w+","//a[contains(@href,'sharesuper.info/')]");
  5498. addObsoleteHost("sinhro\\.net\/\\w+","//a[contains(@href,'sinhro.net/')]");
  5499. addObsoleteHost("speedfile\\.cz\/\\w+","//a[contains(@href,'speedfile.cz/')]");
  5500. addObsoleteHost("speedshare\\.org\/\\w+","//a[contains(@href,'speedshare.org/')]");
  5501. addObsoleteHost("storage.novoro\\.net\/\\w+","//a[contains(@href,'storage.novoro.net/')]");
  5502. addObsoleteHost("swankshare\\.com\/\\w+","//a[contains(@href,'swankshare.com/')]");
  5503. addObsoleteHost("swatupload\\.com\/\\w+","//a[contains(@href,'swatupload.com/')]");
  5504. addObsoleteHost("upafile\\.com\/\\w+","//a[contains(@href,'upafile.com/')]");
  5505. addObsoleteHost("uploadmachine\\.com\/\\w+","//a[contains(@href,'uploadmachine.com/')]");
  5506. addObsoleteHost("uploadsat\\.com\/\\w+","//a[contains(@href,'uploadsat.com/')]");
  5507. addObsoleteHost("upshared\\.com\/\\w+","//a[contains(@href,'upshared.com/')]");
  5508. addObsoleteHost("usefile\\.com\/\\w+","//a[contains(@href,'usefile.com/')]");
  5509. addObsoleteHost("yourfiles\\.to\/\\w+","//a[contains(@href,'yourfiles.to/')]");
  5510. addObsoleteHost("zomgupload\\.com\/\\w+","//a[contains(@href,'zomgupload.com/')]");
  5511. addObsoleteHost("~[\\w\\s~]*","//a[contains(@href,'//~') or contains(@href,'//www.~')]");
  5512. addObsoleteHost("filemup\\.com\/\\w+","//a[contains(@href,'filemup.com/')]");
  5513. addObsoleteHost("tuxfile\\.com\/\\w+","//a[contains(@href,'tuxfile.com/')]");
  5514. addObsoleteHost("ultramegabit\\.com\/\\w+","//a[contains(@href,'ultramegabit.com/')]");
  5515. addObsoleteHost("uploadto\\.us\/\\w+","//a[contains(@href,'uploadto.us/')]");
  5516. addObsoleteHost("filecore\\.co\\.nz\/\\w+","//a[contains(@href,'filecore.co.nz/')]");
  5517. addObsoleteHost("fileshare\\.in\\.ua\/\\w+","//a[contains(@href,'fileshare.in.ua/')]");
  5518. addObsoleteHost("firedrive\\.com\/\\w+","//a[contains(@href,'firedrive.com/')]");
  5519. addObsoleteHost("putlocker\\.com\/\\w+","//a[contains(@href,'putlocker.com/')]");
  5520. addObsoleteHost("lumfile\\.com\/\\w+","//a[contains(@href,'lumfile.com/')]");
  5521. addObsoleteHost("lumfile\\.se\/\\w+","//a[contains(@href,'lumfile.se/')]");
  5522. addObsoleteHost("lumfile\\.eu\/\\w+","//a[contains(@href,'lumfile.eu/')]");
  5523. addObsoleteHost("shared\\.com\/\\w+","//a[contains(@href,'shared.com/')]");
  5524. addObsoleteHost("stahovadlo\\.cz\/\\w+","//a[contains(@href,'stahovadlo.cz/')]");
  5525. addObsoleteHost("dizzcloud\\.com\/\\w+","//a[contains(@href,'dizzcloud.com/')]");
  5526. addObsoleteHost("ddlstorage\\.com\/\\w+","//a[contains(@href,'ddlstorage.com/')]");
  5527. addObsoleteHost("dataport\\.cz\/\\w+","//a[contains(@href,'dataport.cz/')]");
  5528. addObsoleteHost("daj\\.to\/\\w+","//a[contains(@href,'daj.to/')]");
  5529. addObsoleteHost("sockshare\\.com\/\\w+","//a[contains(@href,'sockshare.com/')]");
  5530. addObsoleteHost("2drive\\.net\/\\w+","//a[contains(@href,'2drive.net/')]");
  5531. addObsoleteHost("bl\\.st\/\\w+","//a[contains(@href,'bl.st/')]");
  5532. addObsoleteHost("uncapped-downloads\\.com\/\\w+","//a[contains(@href,'uncapped-downloads.com/')]");
  5533. addObsoleteHost("freakshare\\.net\/\\w+","//a[contains(@href,'freakshare.net/')]");
  5534. addObsoleteHost("freakshare\\.com\/\\w+","//a[contains(@href,'freakshare.com/')]");
  5535. // obsolete start
  5536. }
  5537. //obsolete file hosts init end
  5538.  
  5539. function addFileHost(linkRegex, isAliveRegex, isDeadRegex, isUnavaRegex, xpathEx, tryLoop, ispremRegex)
  5540. {
  5541. var host = new Array(7);
  5542. host[0] = linkRegex;
  5543. host[1] = isAliveRegex;
  5544. host[2] = isDeadRegex;
  5545. host[3] = isUnavaRegex;
  5546. host[6] = ispremRegex;
  5547. host[4] = xpathEx;
  5548. tryLoop ? host[5] = true : host[5] = false;
  5549. http_file_hosts.push(host);
  5550. }
  5551. if (GM_getValue("Check_megafileupload_dot_com_links", false))
  5552. {
  5553. addFileHost(
  5554. "megafileupload\.com\/..\/file\/",
  5555. 'downloadbtn',
  5556. 'is not found',
  5557. 'optional--',
  5558. "//a[contains(@href,'megafileupload.com')]");
  5559. }
  5560. if (GM_getValue("Check_demo_dot_ovh_dot_eu_links", false))
  5561. {
  5562. addFileHost(
  5563. "demo\\.ovh\\.eu\/\\w+\/\\w+",
  5564. 'download\\.gif"',
  5565. 'p_point">',
  5566. 'optional--',
  5567. "//a[contains(@href,'demo.ovh.eu')]");
  5568. }
  5569. if (GM_getValue("Check_xkeepfile_dot_com_links", false))
  5570. {
  5571. addFileHost(
  5572. "xkeepfile\.com\/\\w+",
  5573. 'File has been found|Click here to download',
  5574. 'File cannot be found|class="error">',
  5575. 'optional--',
  5576. //'optional--',
  5577. "//a[contains(@href,'xkeepfile.com/') or contains(@href,'Gamesena.com/')]");
  5578. }
  5579. if (GM_getValue("Check_safelinking_dot_net_links", false))
  5580. {
  5581. addFileHost(
  5582. "safelinking\\.net\/p\/\\w+",
  5583. 'color:green;"',
  5584. 'color:(?:red|orange);"',
  5585. 'color:(?:grey|brown);"',
  5586. "//a[contains(@href,'safelinking.net/p/')]",
  5587. true);
  5588. }
  5589. /* if (GM_getValue("Check_ultramegabit_dot_com_links", false))
  5590. {
  5591. addFileHost(
  5592. "ultramegabit\\.com\/file\/details\/[\\w+-]",
  5593. 'name="recaptcha_response',
  5594. '="/folder/add"|>File (?:not found|restricted|has been deleted)|<title>ULTRAMEGABIT</title>',
  5595. 'btn-large btn-danger">|Account limitation notice|502 Bad Gateway',
  5596. "//a[contains(@href,'ultramegabit.com/file')]",
  5597. true);
  5598. } */
  5599. if (GM_getValue("Check_fastshare_dot_cz_links", false))
  5600. {
  5601. addFileHost(
  5602. "fastshare\\.cz\/\\d+\/\\w*",
  5603. 'dwntable">',
  5604. 'nebyla nalezena|nebola nájdená|nie została odnaleziona|color:red;font-weight:bold;border\\-style:dashed|<i class="fa fa-copyright"></i>',
  5605. 'optional--',
  5606. "//a[contains(@href,'fastshare.cz')]");
  5607. }
  5608. if (GM_getValue("Check_fastshare_dot_org_links", false))
  5609. {
  5610. addFileHost(
  5611. "[fF]ast[sS]hare\\.org\/download",
  5612. 'Download ">',
  5613. 'Diese Datei wurde wegen|wurde kein Dateiname',
  5614. 'optional--',
  5615. "//a[contains(@href,'fastshare.org/download') or contains(@href,'FastShare.org/download')]");
  5616. }
  5617. if (GM_getValue("Check_partage_dash_facile_dot_com_links", false))
  5618. {
  5619. addFileHost(
  5620. "partage-facile\.com\/\\w+",
  5621. 'class="title"><strong>|colspan="2"',
  5622. 'Page introuvable|class="alert-message',
  5623. 'optional--',
  5624. "//a[contains(@href,'partage-facile.com')]");
  5625. }
  5626. if (GM_getValue("Check_rapidgator_dot_net_links", false))
  5627. {
  5628. addFileHost(
  5629. "rapidgator\\.net\/file\/\\w+",
  5630. '/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',
  5631. 'Error 404|File not found|Error 500|Файл не найден|ファイルが探せませんでした|Fichier non trouvé|Archivo no encontrado|Select your plan',
  5632. 'optional--',
  5633. "//a[contains(@href,'rapidgator.net/file')]",
  5634. true
  5635. );
  5636. }
  5637. if (GM_getValue("Check_relink_dot_us_links", false))
  5638. {
  5639. addFileHost(
  5640. "relink\\.us\/(?:f\/\\w+|go\\.php\\?id=\\d+|view\\.php\\?id=\\d+)",
  5641. 'online_detail\\.png" alt="Status',
  5642. '(?:offline|partially)_detail\\.png" alt="Status|File deleted',
  5643. 'unknown_detail\\.png" alt="Status',
  5644. "//a[contains(@href,'relink.us/')]"
  5645. );
  5646. }
  5647. if (GM_getValue("Check_uploadstube_dot_de_links", false))
  5648. {
  5649. addFileHost(
  5650. "uploadstube\\.de\/download\\.php\\?file=\\d+",
  5651. 'div id="dl"',
  5652. 'Sie haben den Link falsch',
  5653. 'optional--',
  5654. "//a[contains(@href,'uploadstube.de/download.php?file=')]"
  5655. );
  5656. }
  5657. if (GM_getValue("Check_flyfiles_dot_net_links", false))
  5658. {
  5659. addFileHost(
  5660. "flyfiles\\.net\/\\w+",
  5661. 'download_button"|"Download file"',
  5662. 'File not found!|Файл не найден',
  5663. 'optional--',
  5664. "//a[contains(@href,'flyfiles.net/')]"
  5665. );
  5666. }
  5667. if (GM_getValue("Check_wikiupload_dot_com_links", false))
  5668. {
  5669. addFileHost(
  5670. "wikiupload\\.com\/\\w+",
  5671. 'download-button">',
  5672. 'Sorry, File not found',
  5673. 'optional--',
  5674. "//a[contains(@href,'wikiupload.com/')]"
  5675. );
  5676. }
  5677. if (GM_getValue("Check_hostuje_dot_net_links", false))
  5678. {
  5679. addFileHost(
  5680. "hostuje\\.net\/file\\.php\\?id=\\w+",
  5681. 'file\\.php">|Pobierz Plik',
  5682. 'Podany plik nie zosta',
  5683. 'optional--',
  5684. "//a[contains(@href,'hostuje.net/file')]"
  5685. );
  5686. }
  5687. if (GM_getValue("Check_gettyfile_dot_ru_links", false))
  5688. {
  5689. addFileHost(
  5690. "gettyfile\\.ru\/\\d+",
  5691. 'download\\.gif border',
  5692. '<center><font size="3">',
  5693. 'optional--',
  5694. "//a[contains(@href,'gettyfile.ru/')]"
  5695. );
  5696. }
  5697. if (GM_getValue("Check_tufiles_dot_ru_links", false))
  5698. {
  5699. addFileHost(
  5700. "(?:tufiles|turbob1t|failoobmenik|filesmail|firebit|dlbit|files\\.china\\-gsm|3aka4aem|file\\.piratski|mnogofiles|links-free|turbo-bit|turbosfiles)\\.\\w+\/\\w+",
  5701. 'download\\-file">',
  5702. 'col-1">\\s*<h1>',
  5703. 'optional--',
  5704. "//a[contains(@href,'tufiles.ru/') or contains(@href,'turbob1t.ru/') or contains(@href,'filesmail.ru/') or contains(@href,'failoobmenik.ru/')"+
  5705. " or contains(@href,'firebit.in/') or contains(@href,'dlbit.net/') or contains(@href,'files.china-gsm.ru/') or contains(@href,'3aka4aem.ru/')"+
  5706. " or contains(@href,'file.piratski.ru/') or contains(@href,'mnogofiles.com/') or contains(@href,'links-free.ru/')"+
  5707. " or contains(@href,'turbo-bit.ru/') or contains(@href,'turbosfiles.ru/')]"
  5708. );
  5709. }
  5710. if (GM_getValue("Check_data_dot_hu_links", false))
  5711. {
  5712. addFileHost(
  5713. "data\\.hu\/get\/\\d+\/",
  5714. 'download_box_button',
  5715. 'missing\\.php',
  5716. 'optional--',
  5717. "//a[contains(@href,'data.hu/get')]",
  5718. true
  5719. );
  5720. }
  5721. if (GM_getValue("Check_filesmelt_dot_com_links", false))
  5722. {
  5723. addFileHost(
  5724. "filesmelt\\.com\/dl\/\\w+",
  5725. '(Your download is ready|Download File)',
  5726. 'Sorry, but your',
  5727. 'optional--',
  5728. "//a[contains(@href,'filesmelt.com/dl')]"
  5729. );
  5730. }
  5731. if (GM_getValue("Check_indowebster_dot_com_links", false))
  5732. {
  5733. addFileHost(
  5734. "(?:files\\.)?indowebster\\.com\/download\/\\w+\/",
  5735. 'premiumBtn"',
  5736. 'errorMessage"',
  5737. 'optional--',
  5738. "//a[contains(@href,'indowebster.com/download')]"
  5739. );
  5740. }
  5741. if (GM_getValue("Check_superload_dot_cz_links", false))
  5742. {
  5743. addFileHost(
  5744. "superload\\.cz\/dl\/\\w+",
  5745. 'icon-download">',
  5746. 'soubor nebyl nalezen',
  5747. 'optional--',
  5748. "//a[contains(@href,'superload.cz/dl')]"
  5749. );
  5750. }
  5751. if (GM_getValue("Check_hulkfile_dot_eu_links", false))
  5752. {
  5753. addFileHost(
  5754. "(?:w\\.hulkfile\\.com|hulkfile\\.eu)\/\\w+",
  5755. 'op" value="download',
  5756. 'class="err">|width:500px;text-align:left;">',
  5757. 'optional--',
  5758. "//a[contains(@href,'hulkfile.')]"
  5759. );
  5760. }
  5761. if (GM_getValue("Check_easybytez_dot_com_links", false))
  5762. {
  5763. addFileHost(
  5764. "easybytez\\.com\/\\w+",
  5765. 'op" value="download',
  5766. 'stop_error\\.gif',
  5767. 'optional--',
  5768. "//a[contains(@href,'easybytez.com/')]"
  5769. );
  5770. }
  5771. if (GM_getValue("Check_filestore_dot_com_dot_ua_links", false))
  5772. {
  5773. addFileHost(
  5774. "filestore\\.com\\.ua\/\\?d=\\w+",
  5775. 'tdrow1>',
  5776. 'class=warn',
  5777. 'optional--',
  5778. "//a[contains(@href,'filestore.com.ua/?d=')]"
  5779. );
  5780. }
  5781. if (GM_getValue("Check_netkups_dot_com_links", false))
  5782. {
  5783. addFileHost(
  5784. "netkups\\.com\/\\?d=\\w+",
  5785. 'submit">Continue',
  5786. 'page">File not found|deleted due to inactivity',
  5787. 'optional--',
  5788. "//a[contains(@href,'netkups.com/?d=')]"
  5789. );
  5790. }
  5791. if (GM_getValue("Check_openfile_dot_ru_links", false))
  5792. {
  5793. addFileHost(
  5794. "openfile\\.ru\/(?:video\/|)\\d+",
  5795. 'videobox_left">',
  5796. 'blog_title">|not found on this server',
  5797. 'optional--',
  5798. "//a[contains(@href,'openfile.ru/')]"
  5799. );
  5800. }
  5801. if (GM_getValue("Check_extmatrix_dot_com_links", false))
  5802. {
  5803. addFileHost(
  5804. "extmatrix\\.com\/files\/\\w+",
  5805. 'div class="success"',
  5806. 'div class="error"',
  5807. 'optional--',
  5808. "//a[contains(@href,'extmatrix.com/files')]"
  5809. );
  5810. }
  5811. if (GM_getValue("Check_sendfiles_dot_nl_links", false))
  5812. {
  5813. addFileHost(
  5814. "sendfiles\\.nl\/download.aspx\\?ID=\\w+",
  5815. 'content_lnkDownload',
  5816. 'error\\.aspx\\?',
  5817. 'optional--',
  5818. "//a[contains(@href,'sendfiles.nl/download.aspx')]"
  5819. );
  5820. }
  5821. /* if (GM_getValue("Check_sockshare_dot_com_links", false))
  5822. {
  5823. addFileHost(
  5824. "sockshare\\.com\/file\/\\w+",
  5825. 'choose_speed">',
  5826. 'message t_0\'>',
  5827. 'optional--',
  5828. "//a[contains(@href,'sockshare.com/file')]"
  5829. );
  5830. } */
  5831. if (GM_getValue("Check_yourfilestore_dot_com_links", false))
  5832. {
  5833. addFileHost(
  5834. "yourfilestore\\.com\/download\/\\d+\/",
  5835. 'download_data">',
  5836. 'may have been deleted|<h1>Sorry!<\/h1>',
  5837. 'optional--',
  5838. "//a[contains(@href,'yourfilestore.com/download')]"
  5839. );
  5840. }
  5841. if (GM_getValue("Check_nekaka_dot_com_links", false))
  5842. {
  5843. addFileHost(
  5844. "nekaka\\.com\/d\/[\\w-]+",
  5845. 'downloadForm">',
  5846. 'invalid file link',
  5847. 'optional--',
  5848. "//a[contains(@href,'nekaka.com/d')]"
  5849. );
  5850. }
  5851. if (GM_getValue("Check_filebig_dot_net_links", false))
  5852. {
  5853. addFileHost(
  5854. "filebig\\.net\/files\/\\w+",
  5855. 'downloadFile">',
  5856. '<p>File not found<\/p>',
  5857. 'optional--',
  5858. "//a[contains(@href,'filebig.net/files')]"
  5859. );
  5860. }
  5861. if (GM_getValue("Check_gamefront_dot_com_links", false))
  5862. {
  5863. addFileHost(
  5864. "files\\.filefront\\.com\/\/;\\d+;;",
  5865. 'downloadLink">',
  5866. 'File not found, you',
  5867. 'optional--',
  5868. "//a[contains(@href,'files.filefront.com')]"
  5869. );
  5870.  
  5871. addFileHost(
  5872. "gamefront\\.com\/files\/\\d+",
  5873. 'downloadLink">',
  5874. 'File not found, you',
  5875. 'optional--',
  5876. "//a[contains(@href,'gamefront.com/files')]"
  5877. );
  5878. }
  5879. if (GM_getValue("Check_hyperfileshare_dot_com_links", false))
  5880. {
  5881. addFileHost(
  5882. "(?:download\\.|)hyperfileshare\\.com\/(?:download\\.php\\?code=|d\/)\\w+",
  5883. 'dnlLnk"',
  5884. 'already been deleted',
  5885. 'optional--',
  5886. "//a[contains(@href,'hyperfileshare.com/download') or contains(@href,'hyperfileshare.com/d')]"
  5887. );
  5888. }
  5889. if (GM_getValue("Check_hellupload_dot_com_links", false))
  5890. {
  5891. addFileHost(
  5892. "hellupload\\.com\/\\w+",
  5893. '<h3>Download File<br',
  5894. 'id="podstrona">|AVOID_IE_BUG',
  5895. 'optional--',
  5896. "//a[contains(@href,'hellupload.com/')]"
  5897. );
  5898. }
  5899. if (GM_getValue("Check_free_dash_uploading_dot_com_links", false))
  5900. {
  5901. addFileHost(
  5902. "free\\-uploading\\.com\/\\w+",
  5903. 'op" value="download',
  5904. 'class="err">|width:500px;text-align:left;">',
  5905. 'optional--',
  5906. "//a[contains(@href,'free-uploading.com/')]"
  5907. );
  5908. }
  5909. if (GM_getValue("Check_fileape_dot_com_links", false))
  5910. {
  5911. addFileHost(
  5912. "fileape\\.com\/download\\-",
  5913. 'button_dl\\.png',
  5914. 'does not exist\\.',
  5915. 'optional--',
  5916. "//a[contains(@href,'fileape.com/')]"
  5917. );
  5918. }
  5919. if (GM_getValue("Check_uppit_dot_com_links", false))
  5920. {
  5921. addFileHost(
  5922. "(?:uppit\\.com|up\\.ht)\/\\w+",
  5923. 'op" value="download',
  5924. 'class="err">|style="width:500px;text-align:left;"|fish-404\\.png"',
  5925. 'optional--',
  5926. "//a[contains(@href,'up.ht/') or contains(@href,'uppit.com/')]",
  5927. true
  5928. );
  5929. }
  5930. if (GM_getValue("Check_nosupload_dot_com_links", false))
  5931. {
  5932. addFileHost(
  5933. "nosupload\\.com\/(?:\\?d=)?\\w+",
  5934. 'op" value="download',
  5935. '>File Not Found<',
  5936. 'optional--',
  5937. "//a[contains(@href,'nosupload.com')]",
  5938. true
  5939. );
  5940. }
  5941. if (GM_getValue("Check_filesin_dot_com_links", false))
  5942. {
  5943. addFileHost(
  5944. "filesin\\.com\/\\w+\/download\\.html",
  5945. 'download_area">',
  5946. 'error_note">',
  5947. 'optional--',
  5948. "//a[contains(@href,'filesin.com/')]",
  5949. true
  5950. );
  5951. }
  5952. if (GM_getValue("Check_nowdownload_dot_eu_links", false))
  5953. {
  5954. addFileHost(
  5955. "nowdownload\\.eu\/dl\/\\w+",
  5956. 'alert-success"',
  5957. 'This file does not exist!',
  5958. 'The file is being transfered',
  5959. "//a[contains(@href,'nowdownload.eu/dl')]"
  5960. );
  5961. }
  5962. if (GM_getValue("Check_axifile_dot_com_links", false))
  5963. {
  5964. addFileHost(
  5965. "axifile\\.com(?:\/\w(2))?\/\\??\\w+",
  5966. 'Dbutton_big"',
  5967. 'download\\-error\\.php',
  5968. 'optional--',
  5969. "//a[contains(@href,'axifile.com/')]"
  5970. );
  5971. }
  5972. if (GM_getValue("Check_hulkshare_dot_com_links", false))
  5973. {
  5974. addFileHost(
  5975. "hulkshare\.com\/\\w+",
  5976. 'download\.sam\.png|This is a private file|id="filename',
  5977. 'File does not exist|fingerprint protected copyright',
  5978. 'optional--',
  5979. "//a[contains(@href,'hulkshare.com')]"
  5980. );
  5981. }
  5982. if (GM_getValue("Check_turbobit_dot_net_links", false)) //folders
  5983. {
  5984. addFileHost(
  5985. "turbobit\\.(?:net|pl)\/download\/folder\/\\d+",
  5986. 'col-1">\\s*<s',
  5987. 'col-1">\\s*<h',
  5988. 'optional--',
  5989. "//a[contains(@href,'turbobit.') and contains(@href,'download/folder')]"
  5990. );
  5991. }
  5992. if (GM_getValue("Check_turbobit_dot_net_links", false)) //folders
  5993. {
  5994. addFileHost(
  5995. "turbobit\\.(?:net|pl)",
  5996. 'id="download-gate-info',
  5997. 'afterWait()',
  5998. 'optional--',
  5999. "//a[contains(@href,'turbobit.net')]"
  6000. );
  6001. }
  6002. if (GM_getValue("Check_hitfile_dot_net_links", false)) //folders
  6003. {
  6004. addFileHost(
  6005. "hitfile\\.net\/download\/folder\/\\d+",
  6006. 'content">\\s*<s',
  6007. 'content">\\s*<h',
  6008. 'optional--',
  6009. "//a[contains(@href,'hitfile.net/download/folder')]"
  6010. );
  6011. }
  6012. if (GM_getValue("Check_netload_dot_in_links", false)) //folders
  6013. {
  6014. addFileHost(
  6015. "netload\\.in\/folder\\.php\\?folder_id=\\w+",
  6016. 'images\/online\\.gif',
  6017. 'InPage_Error"',
  6018. 'optional--',
  6019. "//a[contains(@href,'netload.in/folder.php')]"
  6020. );
  6021. }
  6022. if (GM_getValue("Check_movshare_dot_net_links", false))
  6023. {
  6024. addFileHost(
  6025. "movshare\\.net\\/video\\/\\w+",
  6026. 'optional--"',
  6027. 'no longer exists',
  6028. 'optional--',
  6029. "//a[contains(@href,'movshare.net/video')]"
  6030. );
  6031. }
  6032. if (GM_getValue("Check_plunder_dot_com_links", false))
  6033. {
  6034. addFileHost(
  6035. "plunder\.com\/\\w+",
  6036. 'x\/download\\.gif',
  6037. '404 - File or directory not found.',
  6038. 'optional--',
  6039. "//a[contains(@href,'plunder.com')]"
  6040. );
  6041. }
  6042. if (GM_getValue("Check_mafiastorage_dot_com_links", false))
  6043. {
  6044. addFileHost(
  6045. "mafiastorage\\.com\/\\w+",
  6046. 'op" value="download',
  6047. 'class="err">|style="width:500px;text-align:left;"',
  6048. 'optional--',
  6049. "//a[contains(@href,'mafiastorage.com/')]"
  6050. );
  6051. }
  6052. if (GM_getValue("Check_uploadspace_dot_pl_links", false))
  6053. {
  6054. addFileHost(
  6055. "uploadspace\.pl\/plik\\w+",
  6056. 'Downloading .+? \\|',
  6057. 'Downloading a file',
  6058. 'optional--',
  6059. "//a[contains(@href,'uploadspace.pl/plik')]"
  6060. );
  6061. }
  6062. if (GM_getValue("Check_uploadingit_dot_com_links", false))
  6063. {
  6064. addFileHost(
  6065. "uploadingit\\.com\/file\/\\w+",
  6066. 'downloadTitle">',
  6067. 'deleteContent">',
  6068. 'optional--',
  6069. "//a[contains(@href,'uploadingit.com/file')]"
  6070. );
  6071. }
  6072. if (GM_getValue("Check_rghost_dot_net_links", false))
  6073. {
  6074. addFileHost(
  6075. "rghost\.(?:net|ru)\/(?:|private\/)\\d+",
  6076. 'download_link|btn large download',
  6077. 'file is restricted|File is deleted|503 Service Unavailable',
  6078. 'File was deleted',
  6079. "//a[contains(@href,'rghost.')]"
  6080. );
  6081. }
  6082. if (GM_getValue("Check_xdisk_dot_cz_links", false))
  6083. {
  6084. addFileHost(
  6085. "xdisk\\.cz\/(?:..\/)?download\\.php\\?id=\\w+",
  6086. '">Staženo:\\s*<\/span>',
  6087. 'Soubor, který hledáte nenalezen',
  6088. 'optional--',
  6089. "//a[contains(@href,'xdisk.cz/')]"
  6090. );
  6091. }
  6092. if (GM_getValue("Check_expressleech_dot_com_links", false))
  6093. {
  6094. addFileHost(
  6095. "expressleech\.com\/\\w+",
  6096. 'src="/img/Download.gif"|var _gaq =',
  6097. 'var rr =|403 Forbidden',
  6098. 'optional--',
  6099. "//a[contains(@href,'expressleech.com')]");
  6100. }
  6101. if (GM_getValue("Check_2downloadz_dot_com_links", false))
  6102. {
  6103. addFileHost(
  6104. "2downloadz\.com\/\\w+",
  6105. 'color="#848484|src="images/Download.png"|color:#238DCA',
  6106. 'color="#006DCC|File error',
  6107. 'optional--',
  6108. "//a[contains(@href,'2downloadz.com')]");
  6109. }
  6110. if (GM_getValue("Check_mightyupload_dot_com_links", false))
  6111. {
  6112. addFileHost(
  6113. "mightyupload\.com\/\\w+",
  6114. 'background:#ccc;text-align|CONTENT="Download File"',
  6115. 'style="background:#eee|var rr =|File Not Found',
  6116. 'error-code">1010',
  6117. "//a[contains(@href,'mightyupload.com')]");
  6118. }
  6119. if (GM_getValue("Check_k2s_dot_cc_links", false))
  6120. {
  6121. addFileHost(
  6122. "k2s\.cc\/file\/\\w+",
  6123. 'Click here for slow download with|class="btn" id="yw0"|onclick="download',
  6124. 'Error 404|class="errorSummary">|this file is blocked or deleted|>404 Not Found<|To avoid damaged files|This file is no longer available',
  6125. 'please try later',
  6126. //'optional--',
  6127. "//a[contains(@href,'k2s.cc')]");
  6128. }
  6129. if (GM_getValue("Check_keep2share_dot_cc_links", false))
  6130. {
  6131. addFileHost(
  6132. "keep2share\.cc\/file\/\\w+",
  6133. 'Click here for slow download with|class="btn" id="yw0"|onclick="download',
  6134. 'Error 404|class="errorSummary">|this file is blocked or deleted|>404 Not Found<|To avoid damaged files|This file is no longer available',
  6135. 'please try later',
  6136. //'premium only',
  6137. "//a[contains(@href,'keep2share.cc')]");
  6138. }
  6139. if (GM_getValue("Check_keep2s_dot_cc_links", false))
  6140. {
  6141. addFileHost(
  6142. "keep2s\.cc\/file\/\\w+",
  6143. 'Click here for slow download with|class="btn" id="yw0"|onclick="download',
  6144. 'Error 404|class="errorSummary">|this file is blocked or deleted|>404 Not Found<|To avoid damaged files|This file is no longer available',
  6145. 'please try later',
  6146. //'optional--',
  6147. "//a[contains(@href,'keep2s.cc')]");
  6148. }
  6149. if (GM_getValue("Check_keep2share_dot_com_links", false))
  6150. {
  6151. addFileHost(
  6152. "keep2share\.com\/file\/\\w+",
  6153. 'Click here for slow download with|class="btn" id="yw0"|onclick="download',
  6154. 'Error 404|class="errorSummary">|this file is blocked or deleted|>404 Not Found<|To avoid damaged files|This file is no longer available',
  6155. 'please try later',
  6156. //'optional--',
  6157. "//a[contains(@href,'keep2share.com')]");
  6158. }
  6159. if (GM_getValue("Check_anysend_dot_com_links", false))
  6160. {
  6161. addFileHost(
  6162. "anysend\.com\/\\w+",
  6163. 'var openCalled=false;|content="noindex"',
  6164. '_trackPageview',
  6165. 'optional--',
  6166. "//a[contains(@href,'anysend.com')]");
  6167. }
  6168. if (GM_getValue("Check_datafile_dot_com_links", false))
  6169. {
  6170. addFileHost(
  6171. "datafile\.com\/\\w+",
  6172. 'var captchaPanel',
  6173. 'ErrorCode|ErrorCode 0: Invalid Link|btn-orange" href="#"', //class="error-msg"
  6174. 'You are downloading another file at this moment|You exceeded your free|Site Maintenance',
  6175. //'optional--',
  6176. "//a[contains(@href,'datafile.com')]",
  6177. true);
  6178. }
  6179. if (GM_getValue("Check_upstore_dot_net_links", false))
  6180. {
  6181. addFileHost(
  6182. "upstore\.net\/\\w+",
  6183. 'style="margin-top: 20px">|style="text-align:center; margin: 20px 0 100px;">',
  6184. 'File not found|onload="redirect|class="error">',
  6185. 'optional--',
  6186. "//a[contains(@href,'upstore.net')]");
  6187. }
  6188. if (GM_getValue("Check_upsto_dot_re_links", false))
  6189. {
  6190. addFileHost(
  6191. "upsto\.re\/\\w+",
  6192. 'style="margin-top: 20px">|style="text-align:center; margin: 20px 0 100px;">',
  6193. 'File not found|onload="redirect|class="error">',
  6194. 'optional--',
  6195. "//a[contains(@href,'upsto.re')]");
  6196. }
  6197. if (GM_getValue("Check_speedy_dot_sh_links", false))
  6198. {
  6199. addFileHost(
  6200. "speedy\.sh\/\\w+",
  6201. 'bgcolor=#eeeeee|class="addthis',
  6202. 'File not found|downloadfilenamenotfound>',
  6203. 'optional--',
  6204. "//a[contains(@href,'speedy.sh')]");
  6205. }
  6206. if (GM_getValue("Check_sanshare_dot_com_links", false))
  6207. {
  6208. addFileHost(
  6209. "sanshare\.com\/\\w+",
  6210. 'SANSHARE_TOPBANNER|offset-1"><h3><b>Download File',
  6211. 'offset-1"><b>File Not Found<|width:500px;text-align',
  6212. 'optional--',
  6213. "//a[contains(@href,'sanshare.com')]");
  6214. }
  6215. if (GM_getValue("Check_kingfiles_dot_net_links", false))
  6216. {
  6217. addFileHost(
  6218. "kingfiles\.net\/\\w+",
  6219. 'img/spriteBanner.png|If you are the owner of this file',
  6220. 'var rr =|"description" CONTENT="Download File ">|<div style="width:500px;text-align:left;">|The file was removed by administrator',
  6221. 'optional--',
  6222. "//a[contains(@href,'kingfiles.net')]");
  6223. }
  6224. if (GM_getValue("Check_uploadhero_dot_co_links", false))
  6225. {
  6226. addFileHost(
  6227. "uploadhero\\.co\/dl\/\\w+",
  6228. 'class="nom_de_fichier"|Unlimited downloads|Estimated download time|Lien de téléchargement"',
  6229. 'not available on our server|pas disponible sur nos serveurs|Le lien du fichier est incorrect',
  6230. 'optional--',
  6231. "//a[contains(@href,'uploadhero.co/dl')]"
  6232. );
  6233. }
  6234. if (GM_getValue("Check_secureupload_dot_eu_links", false))
  6235. {
  6236. addFileHost(
  6237. "secureupload\\.eu\/\\w+",
  6238. 'Downloading',
  6239. 'cannot be found|File Not Found|could not be found',
  6240. 'optional--',
  6241. "//a[contains(@href,'secureupload.eu')]"
  6242. );
  6243. }
  6244. if (GM_getValue("Check_ge_dot_tt_links", false))
  6245. {
  6246. addFileHost(
  6247. "ge\.tt\/\\w+",
  6248. 'downloads pic',
  6249. 'is NOT the same as',
  6250. 'optional--',
  6251. "//a[contains(@href,'ge.tt')]");
  6252. }
  6253. if (GM_getValue("Check_filefactory_dot_com_links", false))
  6254. {
  6255. addFileHost(
  6256. "filefactory\.com\/\\w+",
  6257. 'div id="file_holder"|download.css',
  6258. 'File Removed|Invalid Download Link|File Unavailable|Server Failed|Datei entfernt|This file has been removed|Invalid Download Link|class="alert alert-danger">',
  6259. 'Server Maintenance|temporarily overloaded',
  6260. //'optional--',
  6261. "//a[contains(@href,'filefactory.com')]");
  6262. }
  6263. if (GM_getValue("Check_filesflash_dot_net_links", false))
  6264. {
  6265. addFileHost(
  6266. "filesflash\.net\/\\w+",
  6267. 'align:right">Filename:',
  6268. 'class="msg">',
  6269. 'optional--',
  6270. "//a[contains(@href,'filesflash.net')]");
  6271. }
  6272. if (GM_getValue("Check_rapidgator_dot_net_links", false)) //folders
  6273. {
  6274. addFileHost(
  6275. "rapidgator\\.net\/folder\/\\w+",
  6276. 'href="/folder/',
  6277. 'class="empty|Folder not found|Carpeta no encontrada|Dossier non trouvé|Папка не найдена',
  6278. 'optional--',
  6279. "//a[contains(@href,'rapidgator.net/folder')]",
  6280. true
  6281. );
  6282. }
  6283. if (GM_getValue("Check_salefiles_dot_com_links", false))
  6284. {
  6285. addFileHost(
  6286. "salefiles\.com\/\\w+",
  6287. '<Title>Download|CONTENT="Download',
  6288. 'font:15px Arial|background:#eee;',
  6289. 'optional--',
  6290. "//a[contains(@href,'salefiles.com')]");
  6291. }
  6292. if (GM_getValue("Check_megairon_dot_net_links", false))
  6293. {
  6294. addFileHost(
  6295. "megairon\.net\/\\w+",
  6296. 'border: 5px #ffeb90 solid;',
  6297. 'CONTENT="Download File ">|var rr =',
  6298. 'optional--',
  6299. "//a[contains(@href,'megairon.net')]");
  6300. }
  6301. if (GM_getValue("Check_datoid_dot_cz_links", false))
  6302. {
  6303. addFileHost(
  6304. "datoid\.cz\/\\w+",
  6305. 'btn-download|class="icon-download-large"',
  6306. 'Stránka nenalezena|error-404|Soubor byl zablokován',
  6307. 'optional--',
  6308. "//a[contains(@href,'datoid.cz')]");
  6309. }
  6310. if (GM_getValue("Check_stiahni_dot_si_links", false))
  6311. {
  6312. addFileHost(
  6313. "stiahni\.si\/\\w+",
  6314. 'report_icon.png"|slow-download-button',
  6315. 'none.png|deleted|<h2>Error 500</h2>',
  6316. 'optional--',
  6317. "//a[contains(@href,'stiahni.si')]");
  6318. }
  6319. if (GM_getValue("Check_cloudstor_dot_es_links", false))
  6320. {
  6321. addFileHost(
  6322. "cloudstor\.es\/\\w+",
  6323. '"btn_download"',
  6324. '404: Page Not Found',
  6325. 'optional--',
  6326. "//a[contains(@href,'cloudstor.es')]");
  6327. }
  6328. if (GM_getValue("Check_streamfile_dot_com_links", false))
  6329. {
  6330. addFileHost(
  6331. "streamfile\.com\/\\w+",
  6332. 'class="btn',
  6333. 'class="green-btn',
  6334. 'optional--',
  6335. "//a[contains(@href,'streamfile.com')]");
  6336. }
  6337. if (GM_getValue("Check_eyesfile_dot_ca_links", false))
  6338. {
  6339. addFileHost(
  6340. "eyesfile\.ca\/\\w+",
  6341. 'value="Get Link',
  6342. 'var rr =',
  6343. 'optional--',
  6344. "//a[contains(@href,'eyesfile.ca')]");
  6345. }
  6346. if (GM_getValue("Check_filemoney_dot_com_links", false))
  6347. {
  6348. addFileHost(
  6349. "filemoney\.com\/\\w+",
  6350. 'og:title',
  6351. '404 Not Found|<Title>FileMoney|File Not Found',
  6352. 'error-code">1010',
  6353. "//a[contains(@href,'filemoney.com')]");
  6354. }
  6355. if (GM_getValue("Check_uploadboy_dot_com_links", false))
  6356. {
  6357. addFileHost(
  6358. "uploadboy\.com\/\\w+",
  6359. 'width="740">|method_free',
  6360. 'var rr =|background:#ffffff|not be found|file was removed',
  6361. 'optional--',
  6362. "//a[contains(@href,'uploadboy.com')]");
  6363. }
  6364. if (GM_getValue("Check_speedshare_dot_eu_links", false))
  6365. {
  6366. addFileHost(
  6367. "speedshare\.eu\/\\w+",
  6368. 'favicon.png|color:#3d87c0|cross.png"',
  6369. 'var rr =|File Not Found|style="background:#eee',
  6370. 'optional--',
  6371. "//a[contains(@href,'speedshare.eu')]");
  6372. }
  6373. if (GM_getValue("Check_unlimitzone_dot_com_links", false))
  6374. {
  6375. addFileHost(
  6376. "unlimitzone\.com\/\\w+",
  6377. 'name="method_free',
  6378. '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',
  6379. 'optional--',
  6380. "//a[contains(@href,'unlimitzone.com')]");
  6381. }
  6382. if (GM_getValue("Check_rioupload_dot_com_links", false))
  6383. {
  6384. addFileHost(
  6385. "rioupload\.com\/\\w+",
  6386. 'sell.jpg',
  6387. 'var rr =',
  6388. 'optional--',
  6389. "//a[contains(@href,'rioupload.com')]");
  6390. }
  6391. if (GM_getValue("Check_rg_dot_to_links", false))
  6392. {
  6393. addFileHost(
  6394. "rg\.to\/\\w+",
  6395. '/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',
  6396. 'Error 404|File not found|Select your plan',
  6397. 'optional--',
  6398. //'optional--',
  6399. "//a[contains(@href,'rg.to')]");
  6400. }
  6401. if (GM_getValue("Check_jumbofiles_dot_org_links", false))
  6402. {
  6403. addFileHost(
  6404. "jumbofiles\.org\/\\w+",
  6405. 'H71C5.png|class="downloadtitle">',
  6406. 'var swfu|ViewSourceBIN.png',
  6407. 'optional--',
  6408. "//a[contains(@href,'jumbofiles.org')]");
  6409. }
  6410. if (GM_getValue("Check_fshare_dot_vn_links", false))
  6411. {
  6412. addFileHost(
  6413. "fshare\\.vn\/file\/\\w+",
  6414. 'action="#download"|left; width: 330px;">|class="bt_down"',
  6415. 'không tồn tại|class="color_red m_t_50"',
  6416. 'optional--',
  6417. "//a[contains(@href,'fshare.vn/file')]",
  6418. true
  6419. );
  6420. }
  6421. if (GM_getValue("Check_spaceforfiles_dot_com_links", false))
  6422. {
  6423. addFileHost(
  6424. "spaceforfiles\.com\/\\w+",
  6425. 'btn_slowspeed_b.jpg|value="download1|class="btn_blue',
  6426. 'var rr =|AVOID_IE_BUG',
  6427. 'optional--',
  6428. "//a[contains(@href,'spaceforfiles.com')]");
  6429. }
  6430. if (GM_getValue("Check_google_dot_com_links", false))
  6431. {
  6432. addFileHost(
  6433. "google\\.com\/file\/\\w+",
  6434. 'content="!">|color:#2d2d2d',
  6435. '12pt; font-weight:|class="errorMessage"|F0F6FF',
  6436. 'optional--',
  6437. "//a[contains(@href,'google.com/file')]",
  6438. true
  6439. );
  6440. }
  6441. if (GM_getValue("Check_google_dot_com_links", false))
  6442. {
  6443. addFileHost(
  6444. "docs.google.com\/\\w+",
  6445. 'content="!">|color:#2d2d2d',
  6446. '12pt; font-weight:|class="errorMessage"|F0F6FF|Error 404',
  6447. 'optional--',
  6448. "//a[contains(@href,'docs.google.com')]",
  6449. true
  6450. );
  6451. }
  6452. if (GM_getValue("Check_google_dot_com_links", false))
  6453. {
  6454. addFileHost(
  6455. "drive.google.com\/\\w+",
  6456. 'content="!">|color:#2d2d2d|id="uc-download-link',
  6457. '12pt; font-weight:|class="errorMessage"|F0F6FF|Error 404',
  6458. 'optional--',
  6459. "//a[contains(@href,'drive.google.com')]",
  6460. true
  6461. );
  6462. }
  6463. if (GM_getValue("Check_up_dot_media1fire_dot_com_links", false))
  6464. {
  6465. addFileHost(
  6466. "up.media1fire\.com\/\\w+",
  6467. 'class="addthis_|value="download',
  6468. 'var rr =|AVOID_IE_BUG|<div style="width:500px;text-align:left;">',
  6469. 'optional--',
  6470. "//a[contains(@href,'up.media1fire.com')]");
  6471. }
  6472. if (GM_getValue("Check_depfile_dot_com_links", false))
  6473. {
  6474. addFileHost(
  6475. "depfile\.com\/\\w+",
  6476. 'logo_0.png|downloads.gif"|verifycode',
  6477. 'border-color: #5D729B;|bgcolor="#778AAF"|deleted by the owner|Invalid Link',
  6478. 'optional--',
  6479. "//a[contains(@href,'depfile.com')]");
  6480. }
  6481. if (GM_getValue("Check_go4up_dot_com_links", false))
  6482. {
  6483. addFileHost(
  6484. "go4up\.com\/\\w+",
  6485. 'style="width: 100%;">|value="Access|download_line',
  6486. '<title>GO4UP|dmca',
  6487. 'optional--',
  6488. "//a[contains(@href,'go4up.com')]");
  6489. }
  6490. if (GM_getValue("Check_redbunker_dot_net_links", false))
  6491. {
  6492. addFileHost(
  6493. "redbunker\.net\/\\w+",
  6494. 'dload.png|rowspan="3">|yep.gif',
  6495. 'CONTENT="RedBunker|#D3D3D3;|color:#d33|AVOID_IE_BUG',
  6496. 'optional--',
  6497. "//a[contains(@href,'redbunker.net')]");
  6498. }
  6499. if (GM_getValue("Check_divxpress_dot_com_links", false))
  6500. {
  6501. addFileHost(
  6502. "divxpress\.com\/\\w+",
  6503. 'btn_download|logo.png"',
  6504. 'AVOID_IE_BUG|var rr =',
  6505. 'optional--',
  6506. "//a[contains(@href,'divxpress.com')]");
  6507. }
  6508. if (GM_getValue("Check_anafile_dot_com_links", false))
  6509. {
  6510. addFileHost(
  6511. "anafile\.com\/\\w+",
  6512. 'width="881" valign="top|color="#800080"',
  6513. 'style="width:500px;text-align:left;">|file was deleted|AVOID_IE_BUG',
  6514. 'optional--',
  6515. "//a[contains(@href,'anafile.com')]");
  6516. }
  6517. if (GM_getValue("Check_uploadable_dot_ch_links", false))
  6518. {
  6519. addFileHost(
  6520. "uploadable\\.ch\/file\/\\w+",
  6521. 'captcha.js"|payment.js"|class="btn_download"',
  6522. '<div class="icon_err">|<div class="errorBox">|"error_arrow">',
  6523. 'optional--',
  6524. "//a[contains(@href,'uploadable.ch/file')]",
  6525. true
  6526. );
  6527. }
  6528. if (GM_getValue("Check_arabloads_dot_com_links", false))
  6529. {
  6530. addFileHost(
  6531. "arabloads\.com\/\\w+",
  6532. 'name="method_free"|name="method_premium"',
  6533. 'background:#eee;font:15px Arial;">|AVOID_IE_BUG|Verdana;padding:3px;">Error',
  6534. 'optional--',
  6535. "//a[contains(@href,'arabloads.com')]");
  6536. }
  6537. if (GM_getValue("Check_sharerepo_dot_com_links", false))
  6538. {
  6539. addFileHost(
  6540. "sharerepo\.com\/\\w+",
  6541. 'name="method_free"',
  6542. 'var public_on=|The file you were looking for could not be found',
  6543. 'optional--',
  6544. "//a[contains(@href,'sharerepo.com')]");
  6545. }
  6546. if (GM_getValue("Check_sfshare_dot_se_links", false))
  6547. {
  6548. addFileHost(
  6549. "sfshare\.se\/\\w+",
  6550. 'id="btn_download"|class="btn btn-primary txt-bold" value="',
  6551. 'AVOID_IE_BUG|var rr =|style="width:500px;text-align:left;">|Reason for deletion|The file was removed',
  6552. 'optional--',
  6553. "//a[contains(@href,'sfshare.se')]");
  6554. }
  6555. if (GM_getValue("Check_files_dot_fm_links", false))
  6556. {
  6557. addFileHost(
  6558. "files\.fm\/\\w+",
  6559. 'dl.png"|background-color: transparent',
  6560. 'margin: 40px 40px|background: none;',
  6561. 'optional--',
  6562. "//a[contains(@href,'files.fm')]");
  6563. }
  6564. if (GM_getValue("Check_koofile_dot_com_links", false))
  6565. {
  6566. addFileHost(
  6567. "koofile\.com\/\\w+",
  6568. 'value="download1">|name="method_free"',
  6569. 'class="overview-content c_text-box ">|style="padding-top:3px;">|class="rt1 c">',
  6570. 'optional--',
  6571. "//a[contains(@href,'koofile.com')]");
  6572. }
  6573. if (GM_getValue("Check_vidxden_dot_com_links", false))
  6574. {
  6575. addFileHost(
  6576. "vidxden\\.com\/\\w+",
  6577. 'Continue to Video"',
  6578. 'No such file',
  6579. 'optional--',
  6580. "//a[contains(@href,'vidxden.com')]"
  6581. );
  6582. }
  6583. if (GM_getValue("Check_muchshare_dot_net_links", false))
  6584. {
  6585. addFileHost(
  6586. "muchshare\\.net\/\\w+",
  6587. 'id="btn_download"',
  6588. 'File Not Found|width: 500px; text-align: left;',
  6589. 'optional--',
  6590. "//a[contains(@href,'muchshare.net')]"
  6591. );
  6592. }
  6593. if (GM_getValue("Check_daten_dash_hoster_dot_de_links", false))
  6594. {
  6595. addFileHost(
  6596. "(?:daten-hoster\\.de\/file\/\\w+|filehosting\\.org\/file\/\\w+|xtraupload\\.de\/\\?d=\\w+)",
  6597. 'Details zur Datei|Details page',
  6598. 'Jetzt hochladen|upload now',
  6599. 'optional--',
  6600. "//a[contains(@href,'daten-hoster.de/file') or contains(@href,'filehosting.org/file') or contains(@href,'xtraupload.de')]"
  6601. );
  6602. }
  6603. if (GM_getValue("Check_upload_dash_il_dot_net_links", false))
  6604. {
  6605. addFileHost(
  6606. "(?:upload-il|przeslij)\.net\/(?:en|he|ar|ru|)\/?\\w+",
  6607. 'downloadbtn"',
  6608. 'DL_FileNotFound',
  6609. 'optional--',
  6610. "//a[contains(@href,'upload-il.net') or contains(@href,'przeslij.net')]"
  6611. );
  6612. }
  6613. if (GM_getValue("Check_fileflyer_dot_com_links", false))
  6614. {
  6615. addFileHost(
  6616. "fileflyer\.com\/view\/\\w+",
  6617. '(?:dwl|locked)btn"',
  6618. 'error.gif"|link">Removed|removedlink">',
  6619. 'optional--',
  6620. "//a[contains(@href,'fileflyer.com')]"
  6621. );
  6622. }
  6623. if (GM_getValue("Check_filestore_dot_to_links", false))
  6624. {
  6625. addFileHost(
  6626. "filestore\.to\/\\?d=\\w+",
  6627. '"downloading"',
  6628. 'Datei wurde nicht gefunden',
  6629. 'optional--',
  6630. "//a[contains(@href,'filestore.to')]"
  6631. );
  6632. }
  6633. if (GM_getValue("Check_easy_dash_share_dot_com_links", false))
  6634. {
  6635. addFileHost(
  6636. "(?:w\\d*\.|)(?:crocko|easy-share)\\.com\/.",
  6637. 'fz24">Download|class="pl15">',
  6638. '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',
  6639. 'optional--',
  6640. "//a[contains(@href,'easy-share.com') or contains(@href,'crocko.com')]"
  6641. );
  6642. }
  6643. if (GM_getValue("Check_burnupload_dot_com_links", false))
  6644. {
  6645. addFileHost(
  6646. "burnupload\\.(?:com\/\\?d=|ihiphop\\.com\/download\\.php\\?id=)\\w+",
  6647. 'File size:',
  6648. 'file is not found',
  6649. 'optional--',
  6650. "//a[contains(@href,'burnupload.com') or contains(@href,'burnupload.ihiphop.com')]"
  6651. );
  6652. }
  6653. if (GM_getValue("Check_datei_dot_to_links", false))
  6654. {
  6655. addFileHost(
  6656. "datei\\.to\/\\??\\w+",
  6657. 'icon_downloaden\\.png|>Download starten<',
  6658. 'Datei wurde nicht gefunden|icon_deleted.png',
  6659. 'optional--',
  6660. "//a[contains(@href,'datei.to')]"
  6661. );
  6662. }
  6663. if (GM_getValue("Check_yunfile_dot_com_links", false))
  6664. {
  6665. addFileHost(
  6666. "(?:yunfile|filemarkets)\\.com\/\\w+",
  6667. '<body class="body" id="body">|value="Slow Download"',
  6668. '<body class="body" >',
  6669. 'optional--',
  6670. "//a[contains(@href,'yunfile.com') or contains(@href,'filemarkets.com')]"
  6671. );
  6672. }
  6673. /* if (GM_getValue("Check_putlocker_dot_com_links", false))
  6674. {
  6675. addFileHost(
  6676. "putlocker\\.com\/file\/\\w{16}",
  6677. 'as Free User|<a class="continue"|Continue to file|#feedback_btn|application file_standalone',
  6678. 'Welcome to PutLocker|<div class="sad_face_image">|404:',
  6679. 'undergoing scheduled maintenance',
  6680. "//a[contains(@href,'putlocker.com/file')]"
  6681. );
  6682. } */
  6683. if (GM_getValue("Check_uploadhero_dot_com_links", false))
  6684. {
  6685. addFileHost(
  6686. "uploadhero\\.com\/dl\/\\w+",
  6687. 'content-dl">',
  6688. 'men_file_lost\\.jpg"',
  6689. 'optional--',
  6690. "//a[contains(@href,'uploadhero.com/dl')]"
  6691. );
  6692. }
  6693. if (GM_getValue("Check_unibytes_dot_com_links", false))
  6694. {
  6695. addFileHost(
  6696. "unibytes\\.com\/[\\w\.]+",
  6697. 'trying to download|пытаетесь загрузить файл|tes entrain de tlcharger',
  6698. 'File not found|Файл не найден|',
  6699. 'optional--',
  6700. "//a[contains(@href,'unibytes.com')]"
  6701. );
  6702. }
  6703. if (GM_getValue("Check_hellshare_dot_com_links", false)) //very old type of links
  6704. {
  6705. addFileHost(
  6706. "www\\.hellshare\\.com\/\\d+",
  6707. 'tab\\-details"',
  6708. 'list-purp-2"|not found on this server',
  6709. 'optional--',
  6710. "//a[contains(@href,'www.hellshare.com')]"
  6711. );
  6712. }
  6713. if (GM_getValue("Check_quickshare_dot_cz_links", false)) //folders
  6714. {
  6715. addFileHost(
  6716. "quickshare\\.cz\/slozka-\\d+",
  6717. 'Počet souborů: <strong>[1-9]',
  6718. 'Počet souborů: <strong>0|Chyba! Taková složka neexistuje',
  6719. 'optional--',
  6720. "//a[contains(@href,'quickshare.cz/slozka')]"
  6721. );
  6722. }
  6723. if (GM_getValue("Check_filefactory_dot_com_links", false)) //folders
  6724. {
  6725. addFileHost(
  6726. "filefactory\\.com\/f\/\\w+",
  6727. 'folderFileList">',
  6728. 'table class="items"|Pointer" class="red">',
  6729. 'optional--',
  6730. "//a[contains(@href,'filefactory.com/f/')]"
  6731. );
  6732. }
  6733. if (GM_getValue("Check_netload_dot_in_links", false)) //folders
  6734. {
  6735. addFileHost(
  6736. "netfolder\\.in\/\\w+",
  6737. 'list" value="http',
  6738. 'InPage_Error">|list" value=""',
  6739. 'optional--',
  6740. "//a[contains(@href,'netfolder.in')]"
  6741. );
  6742. }
  6743. if (GM_getValue("Check_load_dot_to_links", false))
  6744. {
  6745. addFileHost(
  6746. '(?:www\\.|\\/)load\\.to\\/(?:\\w{10}\\/.|\\?d=\\w{10})',
  6747. '"download_table_left">Size',
  6748. 'Can\'t find file',
  6749. 'optional--',
  6750. "//a[contains(@href,'/load.to/') or contains(@href,'www.load.to/')]"
  6751. );
  6752. }
  6753. /* if (GM_getValue("Check_freakshare_dot_net_links", false))
  6754. {
  6755. addFileHost(
  6756. "freakshare\\.(?:net|com)\/files\/",
  6757. 'box_heading',
  6758. 'Este archivo no existe|Esse arquivo não existe|existent pas|К сожалению, этот файл больше не существует|Plik nie istnieje|Ez a fájl nem létezik|Acest fișier nu există|Dosya bulunamadı|ไฟล์นี้ไม่มีอยู่ |Tệp này không tồn tại|ファイルをありません|이 파일은 존재하지 않습니다!|此文件不存在|This file does not exist|Dieser Download existiert nicht|الملف المطلوب غير موجود',
  6759. 'Your Traffic is used up for today',
  6760. "//a[(contains(@href,'freakshare.net') or contains(@href,'freakshare.com')) and contains(@href,'files')]",
  6761. true
  6762. );
  6763. //folders
  6764. addFileHost(
  6765. "freakshare\\.(?:net|com)\/folder\/",
  6766. 'Files: [1-9]',
  6767. 'Files: 0',
  6768. 'optional--',
  6769. "//a[(contains(@href,'freakshare.net') or contains(@href,'freakshare.com')) and contains(@href,'folder')]",
  6770. true
  6771. );
  6772. } */
  6773. if (GM_getValue("Check_divshare_dot_com_links", false))
  6774. {
  6775. addFileHost(
  6776. "divshare\\.com\/download\/",
  6777. 'download_new\.png',
  6778. 'have been removed',
  6779. 'optional--',
  6780. "//a[contains(@href,'divshare.com')]"
  6781. );
  6782. }
  6783. if (GM_getValue("Check_euroshare_dot_eu_links", false))
  6784. {
  6785. addFileHost(
  6786. "euroshare\\.(?:eu|pl|sk|cz|hu)\/file\/\\d+",
  6787. 'nazev-souboru">',
  6788. '<div id="obsah">\\s*<h1>',
  6789. 'optional--',
  6790. "//a[contains(@href,'euroshare.eu/file')]"
  6791. );
  6792. }
  6793. if (GM_getValue("Check_files_dot_mail_dot_ru_links", false))
  6794. {
  6795. addFileHost(
  6796. 'files\\.mail\\.ru/(?:\\w*)',
  6797. 'fileList',
  6798. 'errorMessage',
  6799. 'optional--',
  6800. "//a[contains(@href,'files.mail.ru')]"
  6801. );
  6802. }
  6803. if (GM_getValue("Check_megashares_dot_com_links", false))
  6804. {
  6805. addFileHost(
  6806. "(?:d\\d+\.|)megashares\.com\/(?:dl|index\.php\\?d|\\?d\\d+=\\w+)",
  6807. 'Filesize',
  6808. 'Invalid|deleted|Could not download file',
  6809. 'slots|scheduled maintenance',
  6810. "//a[contains(@href,'megashares.com/')]"
  6811. );
  6812. }
  6813. if (GM_getValue("Check_narod_dot_ru_links", false))
  6814. {
  6815. addFileHost(
  6816. 'narod\\.(?:yandex\\.|)ru\/disk\/',
  6817. 'b-submit',
  6818. 'b-download-virus-note|headCode">404<',
  6819. 'Внутренняя ошибка сервиса',
  6820. "//a[contains(@href,'narod.ru') or contains(@href,'narod.yandex.ru')]"
  6821. );
  6822. }
  6823. if (GM_getValue("Check_rayfile_dot_com_links", false))
  6824. {
  6825. addFileHost(
  6826. "rayfile\\.com\/",
  6827. 'FILEtitleTXT',
  6828. 'blueRow',
  6829. 'optional--',
  6830. "//a[contains(@href,'rayfile.com/') and contains(@href,'files')]"
  6831. );
  6832. }
  6833. if (GM_getValue("Check_filesmonster_dot_com_links", false))
  6834. {
  6835. addFileHost(
  6836. "filesmonster\\.com\/download\\.php\\?id=\\w+",
  6837. 'button_green_body"',
  6838. 'error">',
  6839. 'optional--',
  6840. "//a[contains(@href,'filesmonster.com/download')]"
  6841. );
  6842. }
  6843. if (GM_getValue("Check_usaupload_dot_net_links", false))
  6844. {
  6845. addFileHost(
  6846. 'usaupload\\.net\/d\/(?:\w*)',
  6847. '<strong>File size:</strong>',
  6848. 'is not available',
  6849. 'optional--',
  6850. "//a[contains(@href,'usaupload.net/d/')]"
  6851. );
  6852. }
  6853. if (GM_getValue("Check_sendspace_dot_com_links", false))
  6854. {
  6855. addFileHost(
  6856. 'sendspace\\.com\/file\/\\w+',
  6857. 'file_description',
  6858. 'msg error"',
  6859. 'optional--',
  6860. "//a[contains(@href,'sendspace.com/file')]"
  6861. );
  6862. }
  6863. if (GM_getValue("Check_sendspace_dot_pl_links", false))
  6864. {
  6865. addFileHost(
  6866. 'sendspace\\.pl\/file\/\\w+',
  6867. 'download_file"',
  6868. 'Podany plik nie',
  6869. 'optional--',
  6870. "//a[contains(@href,'sendspace.pl/file')]"
  6871. );
  6872. }
  6873. if (GM_getValue("Check_uploading_dot_com_links", false))
  6874. {
  6875. addFileHost(
  6876. 'uploading\\.com\/(?:files\/)?\\w+',
  6877. 'free_method">',
  6878. 'file_error">|error_404">|file not found|OOPS! Looks like file not found',
  6879. 'optional--',
  6880. "//a[contains(@href,'uploading.com')]"
  6881. );
  6882. }
  6883. if (GM_getValue("Check_gigasize_dot_com_links", false))
  6884. {
  6885. addFileHost(
  6886. 'gigasize\\.com\/get\\.php(?:\/\\d+|\\?d=\\w+)',
  6887. 'fileId"',
  6888. 'error">',
  6889. 'optional--',
  6890. "//a[contains(@href,'gigasize.com/get')]"
  6891. );
  6892. }
  6893. if (GM_getValue("Check_good_dot_com_links", false))
  6894. {
  6895. addFileHost(
  6896. 'good\\.net\/(?:_|dl)',
  6897. 'Free Download',
  6898. 'Not Found',
  6899. 'Forbidden',
  6900. "//a[contains(@href,'good.net')]"
  6901. );
  6902. }
  6903. if (GM_getValue("Check_2shared_dot_com_links", false))
  6904. {
  6905. addFileHost(
  6906. '2shared\\.com\/(?:file|video|document|audio)\/\\w*',
  6907. 'File size',
  6908. 'File not found|is not valid|/images/important.gif',
  6909. 'optional--',
  6910. "//a[contains(@href,'2shared.com/file/') or contains (@href,'2shared.com/audio/') or contains (@href,'2shared.com/document/') or contains (@href,'2shared.com/video/')]"
  6911. );
  6912. }
  6913. if (GM_getValue("Check_turboupload_dot_com_links", false))
  6914. {
  6915. addFileHost(
  6916. 'turboupload\\.com\/\\w*',
  6917. 'You have requested',
  6918. 'File Not Found',
  6919. 'optional--',
  6920. "//a[contains(@href,'turboupload.com')]"
  6921. );
  6922. }
  6923. if (GM_getValue("Check_gigapeta_dot_com_links", false))
  6924. {
  6925. addFileHost(
  6926. 'gigapeta\\.com\/dl\/',
  6927. 'Download file|Скачать файл| Herunterzuladen|Scarica il file|Cargar el fichero|Charger le fichier',
  6928. '404|page_error',
  6929. 'optional--',
  6930. "//a[contains(@href,'gigapeta.com/dl')]"
  6931. );
  6932. }
  6933. if (GM_getValue("Check_veehd_dot_com_links", false))
  6934. {
  6935. addFileHost(
  6936. 'veehd\.com\/video\/.*?',
  6937. 'No sound|Download video',
  6938. 'Featured Videos',
  6939. 'optional--',
  6940. "//a[contains(@href,'veehd.com') and contains(@href,'video')]"
  6941. );
  6942. }
  6943. if (GM_getValue("Check_vip_dash_file_dot_com_links", false))
  6944. {
  6945. addFileHost(
  6946. '(?:u\\d+\\.)?vip-file\\.com\/download.*?\/(?:.*?)\/(?:.*?)\\.html',
  6947. 'fast_download_form">|submit_sms_download',
  6948. '<p style="text-align:center">',
  6949. 'optional--',
  6950. "//a[contains(@href,'vip-file.com/download')]"
  6951. );
  6952. }
  6953. if (GM_getValue("Check_letitbit_dot_net_links", false))
  6954. {
  6955. addFileHost(
  6956. '(?:u\\d+\\.)?letitbit\\.net\/download\/\\w+',
  6957. 'download\\-pnl ',
  6958. 'color:#000">|Запрашиваемый файл не найден|страница не существует|File not found|',
  6959. 'optional--',
  6960. "//a[contains(@href,'letitbit.net/download')]"
  6961. );
  6962. }
  6963. if (GM_getValue("Check_ifolder_dot_ru_links", false))
  6964. {
  6965. addFileHost(
  6966. 'ifolder\.ru\/\\d+',
  6967. 'file-info',
  6968. 'ui-state-error',
  6969. 'optional--',
  6970. "//a[contains(@href,'ifolder.ru')]"
  6971. );
  6972. }
  6973. if (GM_getValue("Check_fileswap_dot_com_links", false))
  6974. {
  6975. addFileHost(
  6976. 'fileswap\\.com\/dl\/\\w+',
  6977. 'bttnDownloadLink"',
  6978. 'rounded_block_error"',
  6979. 'is temporary unavailable|disponible en estos momentos|vorläufig unerreichbar|Файл временно недоступен',
  6980. "//a[contains(@href,'fileswap.com/dl')]"
  6981. );
  6982. }
  6983. if (GM_getValue("Check_filecloud_dot_io_links", false))
  6984. {
  6985. addFileHost(
  6986. '(?:s\\d+\\.)?filecloud\\.io\/\\w+',
  6987. 'var __error = 0',
  6988. 'FILES__DOESNT_EXIST|removed or did not exist',
  6989. 'optional--',
  6990. "//a[contains(@href,'filecloud.io/')]"
  6991. );
  6992. addFileHost(
  6993. 'ifile\\.it\/\\w+',
  6994. 'var __error = 0',
  6995. 'FILES__DOESNT_EXIST',
  6996. 'optional--',
  6997. "//a[contains(@href,'ifile.it/')]"
  6998. );
  6999. }
  7000. if (GM_getValue("Check_solidfiles_dot_com_links", false))
  7001. {
  7002. addFileHost(
  7003. 'solidfiles\\.com\/d\/\\w+',
  7004. 'id="download"|content="Download',
  7005. '>Not found<|<h2>404</h2>|Page not found|<h1>404</h1>|File not available|no longer available',
  7006. 'optional--',
  7007. "//a[contains(@href,'solidfiles.com/d')]"
  7008. );
  7009. }
  7010. if (GM_getValue("Check_shareflare_dot_net_links", false))
  7011. {
  7012. addFileHost(
  7013. "(?:.\\.|)shareflare\\.net",
  7014. 'download-pnl|<div class="premium-block">',
  7015. 'File not found|Поиск зеркала на фа|<div id="captcha"',
  7016. 'optional--',
  7017. "//a[contains(@href,'shareflare.net') and contains(@href,'download')]"
  7018. );
  7019. }
  7020. if (GM_getValue("Check_u18116681_dot_shareflare_dot_net_links", false))
  7021. {
  7022. addFileHost(
  7023. "u18116681.shareflare\\.net",
  7024. 'download-pnl|<div class="premium-block">',
  7025. 'File not found|Поиск зеркала на фа|<div id="captcha"',
  7026. 'optional--',
  7027. "//a[contains(@href,'shareflare.net') and contains(@href,'download')]"
  7028. );
  7029. }
  7030. if (GM_getValue("Check_uloz_dot_to_links", false))
  7031. {
  7032. addFileHost(
  7033. "(?:uloz|ulozto|bagruj|zachowajto)\\.(to|cz|sk|net|pl)\/\\w",
  7034. 'fileDownload">|fileSize">',
  7035. 'grayButton deletedFile">|Stránka nenalezena|upload-button"|jako soukromý.',
  7036. 'passwordProtectedFile">|frmaskAgeForm-disagree',
  7037. "//a[contains(@href,'bagruj.cz') or contains(@href,'uloz.to') or contains(@href,'ulozto.') or contains(@href,'zachowajto.pl')]",
  7038. true
  7039. );
  7040. }
  7041. if (GM_getValue("Check_hellspy_dot_com_links", false))
  7042. {
  7043. addFileHost(
  7044. "hellspy\.(?:com|cz|sk|hu|pl)\/\\w+",
  7045. 'file\\-list-orderby|section-filedetail">',
  7046. '<\/span><\/h2>\\s*<p>|list-purp-2">|flash info sticky">',
  7047. 'optional--',
  7048. "//a[contains(@href,'hellspy.')]"
  7049. );
  7050. }
  7051. if (GM_getValue("Check_leteckaposta_dot_cz_links", false))
  7052. {
  7053. addFileHost(
  7054. "(?:leteckaposta\\.cz|sharegadget\\.com)\/\\d+",
  7055. '<body onload="">',
  7056. 'neexistuje|not exist',
  7057. 'optional--',
  7058. "//a[contains(@href,'leteckaposta.cz') or contains(@href,'sharegadget.com')]"
  7059. );
  7060. }
  7061. if (GM_getValue("Check_stahovanizasms_dot_cz_links", false))
  7062. {
  7063. addFileHost(
  7064. "stahovanizasms\\.cz\/\\w+",
  7065. 'download\\.png>|font-size:11px><tr>',
  7066. 'smaz.n u.ivatelem|font-size:11px><\/table>',
  7067. 'optional--',
  7068. "//a[contains(@href,'stahovanizasms.cz')]"
  7069. );
  7070. }
  7071. if (GM_getValue("Check_share_dash_links_dot_biz_links", false))
  7072. {
  7073. addFileHost(
  7074. "share-links\\.biz\/\\w*",
  7075. 'online\\.gif',
  7076. '(?:offline|parts)\\.gif',
  7077. 'optional--',
  7078. "//a[contains(@href,'share-links.biz')]"
  7079. );
  7080. }
  7081. if (GM_getValue("Check_4shared_dot_com_links", false))
  7082. {
  7083. addFileHost(
  7084. "4shared\\.com\/.+\/",
  7085. '<input type="hidden" class="jsSocialTwDefaultText" value=',
  7086. 'class="warn\"|big red"|GetDataBack',
  7087. 'Service Unavailable',
  7088. "//a[contains(@href,'4shared.com')]"
  7089. );
  7090. }
  7091. if (GM_getValue("Check_zippyshare_dot_com_links", false))
  7092. {
  7093. addFileHost(
  7094. "(?:www\\d+\.|)zippyshare\.com\/",
  7095. 'download\.png|Download Now|images/download_small.png|id="dlbutton"',
  7096. 'not exist|Status 404',
  7097. 'optional--',
  7098. "//a[contains(@href,'zippyshare.com') and contains(@href,'file.html')]"
  7099. );
  7100. }
  7101. if (GM_getValue("Check_mediafire_dot_com_links", false))
  7102. {
  7103. addFileHost(
  7104. "mediafire\.com\/",
  7105. 'download_file_title|dlFileName|id="PLAY_downloadButton"',
  7106. 'error\\.php\\?|error_msg_title|<title>Simple File Sharing|No files found',
  7107. 'set to private',
  7108. "//a[contains(@href,'mediafire.com')]"
  7109. );
  7110. }
  7111. if (GM_getValue("Check_uploaded_dot_to_links", false))
  7112. {
  7113. addFileHost(
  7114. '(?:uploaded\\.(?:to|net)\/(?:.id|file|folder|f|410|404))|(?:ul\\.to\/)',
  7115. '<h2>Authentification</h2></li>| MB|1,00 GB',
  7116. 'box_red|Error: 404|Error: 410|fileList"><thead><tr><td colspan="2"><\/td><\/tr><\/thead><tbody>\\s*<tr>|<title>uploaded.net</title>',
  7117. 'optional--',
  7118. "//a[contains(@href,'uploaded.to/') or contains(@href,'uploaded.net/') or contains(@href,'ul.to/')]"
  7119. );
  7120. }
  7121. if (GM_getValue("Check_ulozisko_dot_sk_links", false))
  7122. {
  7123. addFileHost(
  7124. "ulozisko\.sk\/",
  7125. 'Detaily',
  7126. 'neexistuje',
  7127. 'optional--',
  7128. "//a[contains(@href,'ulozisko.sk')]"
  7129. );
  7130. }
  7131. if (GM_getValue("Check_upnito_dot_sk_links", false))
  7132. {
  7133. addFileHost(
  7134. "(?:dl.\\.|)upnito\\.sk\/(download|subor|file)",
  7135. 'download.php',
  7136. 'notfound|upload\\-suborov\\.php"',
  7137. 'optional--',
  7138. "//a[contains(@href,'upnito.sk')]"
  7139. );
  7140. }
  7141. if (GM_getValue("Check_uptobox_dot_com_links", false))
  7142. {
  7143. addFileHost(
  7144. "uptobox\\.com\/\\w+",
  7145. 'Create Download Link">',
  7146. '500px;text-align:left;">|File not found|Fichier introuvable',
  7147. 'Maintenance|not available in your country',
  7148. "//a[contains(@href,'uptobox.com')]"
  7149. );
  7150. }
  7151. if (GM_getValue("Check_sharecash_dot_org_links", false))
  7152. {
  7153. addFileHost(
  7154. "sharecash\\.org\/download\\.php\\?file=\\d+",
  7155. 'FILE DOWNLOAD<',
  7156. 'File Does Not Exist',
  7157. 'optional--',
  7158. "//a[contains(@href,'sharecash.org/download.php')]"
  7159. );
  7160. }
  7161. if (GM_getValue("Check_depositfiles_dot_com_links", false)) //folders
  7162. {
  7163. addFileHost(
  7164. "depositfiles\\.com\/folders\/\\w+",
  7165. '<div class="progressContainer">',
  7166. '<div id="files" class="files">\\s*<\/div>',
  7167. 'optional--',
  7168. "//a[contains(@href,'depositfiles.com/folders')]"
  7169. );
  7170. }
  7171. if (GM_getValue("Check_rapidfileshare_dot_net_links", false))
  7172. {
  7173. addFileHost(
  7174. "rapidfileshare\\.net/\\w+",
  7175. '<div id="upload-header-bg">',
  7176. '<div style="width:500px;text-align:left;">',
  7177. 'optional--',
  7178. "//a[contains(@href,'rapidfileshare.net/')]"
  7179. );
  7180. }
  7181. if (GM_getValue("Check_stiahnito_dot_sk_links", false))
  7182. {
  7183. addFileHost(
  7184. "stiahnito\\.sk/",
  7185. '<span class="filesize right">',
  7186. '<ol class="list-purp-2">',
  7187. 'optional--',
  7188. "//a[contains(@href,'stiahnito.sk/')]"
  7189. );
  7190. }
  7191. if (GM_getValue("Check_rusfolder_dot_com_links", false))
  7192. {
  7193. addFileHost(
  7194. "rusfolder\\.(?:com|net)",
  7195. '"download-step-one-form"|Название: <b>|Файлы|Файлы в папке',
  7196. '"ui-state-error ui-corner-all"|File is removed|File not found|удален',
  7197. 'optional--',
  7198. "//a[contains(@href,'rusfolder')]"
  7199. );
  7200. }
  7201. if (GM_getValue("Check_fileover_dot_net_links", false))
  7202. {
  7203. addFileHost(
  7204. "fileover\\.net/\\d+",
  7205. 'id="filesize"',
  7206. 'Not found or deleted|The following file is unavailable',
  7207. 'optional--',
  7208. "//a[contains(@href,'fileover.net/')]"
  7209. );
  7210. }
  7211. if (GM_getValue("Check_catshare_dot_net_links", false))
  7212. {
  7213. addFileHost(
  7214. "catshare\\.net/\\w+",
  7215. '"icon-share',
  7216. 'alert alert-error',
  7217. 'optional--',
  7218. "//a[contains(@href,'catshare.net/')]"
  7219. );
  7220. }
  7221. if (GM_getValue("Check_anonfiles_dot_com_links", false))
  7222. {
  7223. addFileHost(
  7224. "anonfiles\\.com/\\w+",
  7225. '"download_button"',
  7226. '<legend><b>404</b>',
  7227. 'optional--',
  7228. "//a[contains(@href,'anonfiles.com')]"
  7229. );
  7230. }
  7231. if (GM_getValue("Check_mixturecloud_dot_com_links", false))
  7232. {
  7233. addFileHost(
  7234. "mixturecloud\\.com/media/\\w+",
  7235. '"btn icon i_globe gray share_150',
  7236. '"s_cross_close"></span> 404:',
  7237. 'optional--',
  7238. "//a[contains(@href,'mixturecloud.com/media/')]"
  7239. );
  7240. }
  7241. if (GM_getValue("Check_akafile_dot_com_links", false))
  7242. {
  7243. addFileHost(
  7244. "akafile\\.com\/\\w+",
  7245. 'download1',
  7246. 'File Not Found',
  7247. 'optional--',
  7248. "//a[contains(@href,'akafile.com/')]"
  7249. );
  7250. }
  7251. if (GM_getValue("Check_creafile_dot_net_links", false))
  7252. {
  7253. addFileHost(
  7254. "creafile\\.net\/\\w+",
  7255. 'downloadblock',
  7256. 'errtitle',
  7257. 'optional--',
  7258. "//a[contains(@href,'creafile.net/')]"
  7259. );
  7260. }
  7261. if (GM_getValue("Check_hugefiles_dot_net_links", false))
  7262. {
  7263. addFileHost(
  7264. "hugefiles\\.net\/\\w+",
  7265. 'download1|class="btn-create-download" value="Create Download Link">',
  7266. 'File Not Found|No such file with this filename',
  7267. 'optional--',
  7268. "//a[contains(@href,'hugefiles.net/')]"
  7269. );
  7270. }
  7271. if (GM_getValue("Check_sendmyway_dot_com_links", false))
  7272. {
  7273. addFileHost(
  7274. "sendmyway\\.com\/\\w+",
  7275. 'id="btn_download"',
  7276. '500px;text-align:left;"|<center><h3>',
  7277. 'optional--',
  7278. "//a[contains(@href,'sendmyway.com/')]"
  7279. );
  7280. }
  7281. if (GM_getValue("Check_upload_dot_ee_links", false))
  7282. {
  7283. addFileHost(
  7284. "upload\\.ee\/\\w+",
  7285. 'onmouseout="document.dllink.src',
  7286. 'There is no such file.|File was deleted|Fail kustutati|Файл удалён|Такого файла нет',
  7287. 'optional--',
  7288. "//a[contains(@href,'upload.ee/')]"
  7289. );
  7290. }
  7291. if (GM_getValue("Check_shareplace_dot_org_links", false))
  7292. {
  7293. addFileHost(
  7294. "shareplace\\.org\/\\?\\w+",
  7295. 'Download-Link',
  7296. 'Your requested file is not found|Select file to send',
  7297. 'optional--',
  7298. "//a[contains(@href,'shareplace.org/?')]"
  7299. );
  7300. }
  7301. if (GM_getValue("Check_uploadc_dot_com_links", false))
  7302. {
  7303. addFileHost(
  7304. "uploadc\\.com\/\\w+",
  7305. 'id="prebut"',
  7306. 'File Not Found|This file has been removed due',
  7307. 'optional--',
  7308. "//a[contains(@href,'uploadc.com/')]"
  7309. );
  7310. }
  7311. if (GM_getValue("Check_remixshare_dot_com_links", false))
  7312. {
  7313. addFileHost(
  7314. "remixshare\\.com\/\\w+",
  7315. 'id="dl2"',
  7316. '<table class=\'failed\'><tr><td width=\'90%\'>|Sorry, die Datei konnte nicht gefunden werden',
  7317. 'optional--',
  7318. "//a[contains(@href,'remixshare.com/')]"
  7319. );
  7320. }
  7321. if (GM_getValue("Check_exoshare_dot_com_links", false))
  7322. {
  7323. addFileHost(
  7324. "exoshare\\.com\/download\\.php\\?uid=\\w+",
  7325. 'Last Download :',
  7326. 'img src="\\/404.jpg"',
  7327. 'optional--',
  7328. "//a[contains(@href,'exoshare.com/download.php')]"
  7329. );
  7330. }
  7331. if (GM_getValue("Check_borncash_dot_org_links", false))
  7332. {
  7333. addFileHost(
  7334. "borncash\\.org\/download\/\\?a=\\w+",
  7335. 'class="knop_1"',
  7336. '\/error\/er00',
  7337. 'optional--',
  7338. "//a[contains(@href,'borncash.org/download/')]"
  7339. );
  7340. }
  7341. if (GM_getValue("Check_vidplay_dot_net_links", false))
  7342. {
  7343. addFileHost(
  7344. "vidplay\.net\/\\w+",
  7345. 'solvemedia puzzle widget',
  7346. 'File not found|AVOID_IE_BUG',
  7347. 'optional--',
  7348. "//a[contains(@href,'vidplay.net')]");
  7349. }
  7350. if (GM_getValue("Check_storagon_dot_com_links", false))
  7351. {
  7352. addFileHost(
  7353. "storagon\.com\/\\w+",
  7354. 'class="icon-cloud-download"></i>|content="Download Options',
  7355. 'content="Download Downloads|class="error-container">|class="bigger-300 bolder">404<',
  7356. 'optional--',
  7357. "//a[contains(@href,'storagon.com')]");
  7358. }
  7359. if (GM_getValue("Check_filedais_dot_com_links", false))
  7360. {
  7361. addFileHost(
  7362. "filedais\.com\/\\w+",
  7363. 'class="btn btn-info"|name="method_free"',
  7364. 'style="width:500px;text-align:left;">|File Not Found|AVOID_IE_BUG',
  7365. 'optional--',
  7366. "//a[contains(@href,'filedais.com')]");
  7367. }
  7368. if (GM_getValue("Check_ryushare_dot_com_links", false))
  7369. {
  7370. addFileHost(
  7371. "ryushare\.com\/\\w+",
  7372. 'KB|MB',
  7373. '<div style="width:500px;text-align:left;">',
  7374. 'in maintenance mode|Software error:',
  7375. "//a[contains(@href,'ryushare.com')]");
  7376. }
  7377. if (GM_getValue("Check_up_dot_4share_dot_vn_links", false))
  7378. {
  7379. addFileHost(
  7380. "up.4share\.vn\/\\w+",
  7381. '<font size="2" face="Verdana">',
  7382. 'font: 13px Tahoma; color: Brown',
  7383. 'optional--',
  7384. //'optional--',
  7385. "//a[contains(@href,'up.4share.vn')]");
  7386. }
  7387. if (GM_getValue("Check_share_dot_vnn_dot_vn_links", false))
  7388. {
  7389. addFileHost(
  7390. "share.vnn\.vn\/\\w+",
  7391. '"index,follow"|<div class="main" id="download-box">',
  7392. '<meta name="description" content="" />|<h1>Không tìm thấy file bạn yêu cầu</h1>',
  7393. 'optional--',
  7394. //'optional--',
  7395. "//a[contains(@href,'share.vnn.vn')]");
  7396. }
  7397. if (GM_getValue("Check_upfile_dot_vn_links", false))
  7398. {
  7399. addFileHost(
  7400. "upfile\.vn\/\\w+",
  7401. 'download-timer',
  7402. '<meta name="description" content="Upload files|<meta name="description" content="Error "',
  7403. 'optional--',
  7404. //'optional--',
  7405. "//a[contains(@href,'upfile.vn')]");
  7406. }
  7407. /* if (GM_getValue("Check_firedrive_dot_com_links", false))
  7408. {
  7409. addFileHost(
  7410. "firedrive\\.com\/file\/\\w{16}",
  7411. 'as Free User|<a class="continue"|Continue to file|#feedback_btn|application file_standalone',
  7412. 'Welcome to PutLocker|<div class="sad_face_image">|404:',
  7413. 'undergoing scheduled maintenance',
  7414. "//a[contains(@href,'firedrive.com/file')]"
  7415. );
  7416. } */
  7417. if (GM_getValue("Check_aisfile_dot_com_links", false))
  7418. {
  7419. addFileHost(
  7420. "aisfile\.com\/\\w+",
  7421. '<h3 style="text-align:left;">|align=right><b>Filename:',
  7422. '<div style="width:500px;text-align:left;">|File Not Found',
  7423. 'optional--',
  7424. //'optional--',
  7425. "//a[contains(@href,'aisfile.com')]");
  7426. }
  7427. if (GM_getValue("Check_usersfiles_dot_com_links", false))
  7428. {
  7429. addFileHost(
  7430. "usersfiles\.com\/\\w+",
  7431. 'class="btn btn-success|id="btn_download" class="btn"',
  7432. '<div style="width:500px;text-align:left;">',
  7433. 'optional--',
  7434. //'optional--',
  7435. "//a[contains(@href,'usersfiles.com')]");
  7436. }
  7437. if (GM_getValue("Check_pan_dot_baidu_dot_com_links", false))
  7438. {
  7439. addFileHost(
  7440. "pan.baidu\.com\/\\w+",
  7441. 'target="_blank" title=|share-personal-info',
  7442. 'share_notfound.png|background:#f9f9f9',
  7443. 'optional--',
  7444. //'optional--',
  7445. "//a[contains(@href,'pan.baidu.com')]");
  7446. }
  7447. if (GM_getValue("Check_yunpan_dot_cn_links", false))
  7448. {
  7449. addFileHost(
  7450. "yunpan\.cn\/\\w+",
  7451. 'class="icon icon-download',
  7452. 'content="360|http://p5.qhimg.com/t01d1c98667df9dc6cc.jpg',
  7453. 'optional--',
  7454. //'optional--',
  7455. "//a[contains(@href,'yunpan.cn')]");
  7456. }
  7457. if (GM_getValue("Check_file_dash_upload_dot_net_links", false))
  7458. {
  7459. addFileHost(
  7460. "(?:en\\.|)file\\-upload\\.net\/download\\-\\d+\/\\w+",
  7461. 'getElementById("downbild")|style.display',
  7462. 'hochgeladene Datei nicht gefunden werden|has not been found',
  7463. 'optional--',
  7464. //'optional--',
  7465. "//a[contains(@href,'file-upload.net')]");
  7466. }
  7467. if (GM_getValue("Check_gulfup_dot_com_links", false))
  7468. {
  7469. addFileHost(
  7470. "gulfup\.com\/",
  7471. '<!-- Downlod template -->|download.gif',
  7472. '<!-- Errors template -->|class="error">|<!-- form upload -->|[ رفع الملفات ]',
  7473. 'optional--',
  7474. //'optional--',
  7475. "//a[contains(@href,'gulfup.com')]");
  7476. }
  7477. if (GM_getValue("Check_datafilehost_dot_com_links", false))
  7478. {
  7479. addFileHost(
  7480. "datafilehost\\.com\/(?:download-\\w+\\.html|d\/\\w+)",
  7481. 'dldtable">',
  7482. 'does not exist\\.',
  7483. 'optional--',
  7484. //'optional--',
  7485. "//a[contains(@href,'datafilehost.com')]");
  7486. }
  7487. if (GM_getValue("Check_box_dot_com_links", false))
  7488. {
  7489. addFileHost(
  7490. "box\.com\/\\w+",
  7491. 'download-file-btn|id="download_button',
  7492. 'BIyMin.png| <div class="error_message|link has been removed',
  7493. 'optional--',
  7494. //'optional--',
  7495. "//a[contains(@href,'app.box.com')]");
  7496. }
  7497. if (GM_getValue("Check_dropbox_dot_com_links", false))
  7498. {
  7499. addFileHost(
  7500. "dropbox\.com\/s\/\\w+",
  7501. 'default_content_download_button" class="freshbutton-blue">|content_download_button',
  7502. '>Nothing Here<|>Error (404)<',
  7503. 'title>Dropbox - 509|Error (403)|Error: 429',
  7504. "//a[contains(@href,'dropbox.com')]");
  7505. }
  7506. if (GM_getValue("Check_box_dot_net_links", false))
  7507. {
  7508. addFileHost(
  7509. "box\.net\/\\w+",
  7510. 'download-file-btn|id="download_button',
  7511. 'BIyMin.png| <div class="error_message',
  7512. 'optional--',
  7513. //'optional--',
  7514. "//a[contains(@href,'box.net')]");
  7515. }
  7516. if (GM_getValue("Check_fileband_dot_com_links", false))
  7517. {
  7518. addFileHost(
  7519. "fileband\.com\/\\w+",
  7520. 'value="download1">|name="id" value=',
  7521. '<div style="width:500px;text-align:left;">|not be found',
  7522. 'optional--',
  7523. //'optional--',
  7524. "//a[contains(@href,'fileband.com')]");
  7525. }
  7526. if (GM_getValue("Check_filedropper_dot_com_links", false))
  7527. {
  7528. addFileHost(
  7529. "filedropper\.com\/\\w+",
  7530. 'background:#ddd;|width:985px; ',
  7531. 'background-color:#FFFFFF;|margin-left: -400px;',
  7532. 'optional--',
  7533. //'optional--',
  7534. "//a[contains(@href,'filedropper.com')]");
  7535. }
  7536. if (GM_getValue("Check_tropicshare_dot_com_links", false))
  7537. {
  7538. addFileHost(
  7539. "tropicshare\\.com\/files\/\\d+",
  7540. 'MB</span>|GB</span>|KB</span>',
  7541. '>FNF<|size: </span>',
  7542. 'optional--',
  7543. //'optional--',
  7544. "//a[contains(@href,'tropicshare.com')]");
  7545. }
  7546. if (GM_getValue("Check_goldbytez_dot_com_links", false))
  7547. {
  7548. addFileHost(
  7549. "goldbytez\.com\/\\w+",
  7550. '<h2>Download</h2>|<center><h2>File: <font color="red">',
  7551. '<div style="width:500px;text-align:left;">|<h2>Error</h2>',
  7552. 'optional--',
  7553. //'optional--',
  7554. "//a[contains(@href,'goldbytez.com')]");
  7555. }
  7556. if (GM_getValue("Check_worldbytez_dot_com_links", false))
  7557. {
  7558. addFileHost(
  7559. "worldbytez\.com\/\\w+",
  7560. '<div class="download_type">',
  7561. '<div style="width:500px;text-align:left;">',
  7562. 'optional--',
  7563. //'optional--',
  7564. "//a[contains(@href,'worldbytez.com')]");
  7565. }
  7566. if (GM_getValue("Check_freefilehosting_dot_net_links", false))
  7567. {
  7568. addFileHost(
  7569. "freefilehosting\.net\/\\w+",
  7570. 'Type: cbr|Type: rar|Type: jpg|Type: mkv|Type: avi|Type: mpg|Type: mpeg|Type: zip|Type: wmvType: bmpType: gifType: mp4Type: mp3',
  7571. '175px;" value="http://www.freefilehosting.net/"|Filename: <br>',
  7572. 'optional--',
  7573. //'optional--',
  7574. "//a[contains(@href,'freefilehosting.net')]");
  7575. }
  7576. if (GM_getValue("Check_ziddu_dot_com_links", false))
  7577. {
  7578. addFileHost(
  7579. "ziddu\.com\/\\w+",
  7580. 'downloads.ziddu.com|downloadfilelinkicon',
  7581. 'errortracking.php|images/oops.png|fontfamilyverdana error',
  7582. 'optional--',
  7583. //'optional--',
  7584. "//a[contains(@href,'ziddu.com')]");
  7585. }
  7586. if (GM_getValue("Check_exclusiveloader_dot_com_links", false))
  7587. {
  7588. addFileHost(
  7589. "exclusiveloader\.com\/\\w+",
  7590. 'style="padding-top:55px; padding-bottom:65px;">|<h2>Download</h2>',
  7591. 'File Not Found|width:322px;text-align:left;" class="no_file">',
  7592. 'optional--',
  7593. //'optional--',
  7594. "//a[contains(@href,'exclusiveloader.com')]");
  7595. }
  7596. if (GM_getValue("Check_sharerapid_dot_cz_links", false))
  7597. {
  7598. addFileHost(
  7599. "sharerapid\.cz\/\\w+",
  7600. 'value="Stáhnout"|soubor" style|Stahování je povoleno pouze pro přihlášené uživatele',
  7601. 'error_div">|404 - Not Found',
  7602. 'optional--',
  7603. //'optional--',
  7604. "//a[contains(@href,'sharerapid.cz')]");
  7605. }
  7606. if (GM_getValue("Check_sdilej_dot_cz_links", false))
  7607. {
  7608. addFileHost(
  7609. "sdilej\.cz\/\\w+",
  7610. 'class="page-download"',
  7611. '<h2 class="red">|czshare.com|sponsored listings|This domain is for sale',
  7612. 'optional--',
  7613. //'optional--',
  7614. "//a[contains(@href,'sdilej.cz')]");
  7615. }
  7616. if (GM_getValue("Check_lafiles_dot_com_links", false))
  7617. {
  7618. addFileHost(
  7619. "lafiles\.com\/\\w+",
  7620. '<div id="pay_modes">',
  7621. '<b class="err"></b>',
  7622. 'optional--',
  7623. //'optional--',
  7624. "//a[contains(@href,'lafiles.com')]");
  7625. }
  7626. if (GM_getValue("Check_fboom_dot_me_links", false))
  7627. {
  7628. addFileHost(
  7629. "fboom\.me\/file\/\\w+",
  7630. 'id="download-free" href="#"',
  7631. 'class="error-v1-title">404<|File not found or deleted',
  7632. 'optional--',
  7633. //'optional--',
  7634. "//a[contains(@href,'fboom.me')]");
  7635. }
  7636. if (GM_getValue("Check_fileboom_dot_me_links", false))
  7637. {
  7638. addFileHost(
  7639. "fileboom\.me\/file\/\\w+",
  7640. 'id="download-free" href="#"',
  7641. 'class="error-v1-title">404<|File not found or deleted',
  7642. 'optional--',
  7643. //'optional--',
  7644. "//a[contains(@href,'fileboom.me')]");
  7645. }
  7646. if (GM_getValue("Check_acefile_dot_net_links", false))
  7647. {
  7648. addFileHost(
  7649. "acefile\.net\/\\w+",
  7650. 'align=right nowrap><b>',
  7651. 'File Not Found|<div style="width:322px;text-align:left;" class="no_file">',
  7652. 'optional--',
  7653. //'optional--',
  7654. "//a[contains(@href,'acefile.net')]");
  7655. }
  7656. if (GM_getValue("Check_megarapid_dot_cz_links", false))
  7657. {
  7658. addFileHost(
  7659. "megarapid\.cz\/\\w+",
  7660. 'value="Stáhnout"|soubor" style|Stahování je povoleno pouze pro přihlášené uživatele',
  7661. 'error_div">|404 - Not Found',
  7662. 'optional--',
  7663. //'optional--',
  7664. "//a[contains(@href,'megarapid.cz')]");
  7665. }
  7666. if (GM_getValue("Check_yadi_dot_sk_links", false))
  7667. {
  7668. addFileHost(
  7669. "yadi\.sk\/\\w+",
  7670. 'twitter:site|View and download',
  7671. 'error code|Nothing found',
  7672. 'optional--',
  7673. //'optional--',
  7674. "//a[contains(@href,'yadi.sk')]");
  7675. }
  7676. if (GM_getValue("Check_imdb_dot_com_links", false))
  7677. {
  7678. addFileHost(
  7679. "imdb\.com\/\\w+",
  7680. 'imdb.com',
  7681. '404 Error',
  7682. 'optional--',
  7683. "//a[contains(@href,'imdb.com')]");
  7684. }
  7685. if (GM_getValue("Check_hitfile_dot_net_links", false))
  7686. {
  7687. addFileHost(
  7688. "hitfile\.net\/\\w+",
  7689. 'class="download-file',
  7690. 'style="width:16px;height:16px;border:0;|File not found|Файл не найден. Возможно он был удален',
  7691. 'optional--',
  7692. //'optional--',
  7693. "//a[contains(@href,'hitfile.net')]");
  7694. }
  7695. /* if (GM_getValue("Check_uploadto_dot_us_links", false))
  7696. {
  7697. addFileHost(
  7698. "uploadto\\.us\/file\/details\/[\\w+-]",
  7699. 'name="recaptcha_response',
  7700. '="/folder/add"|>File (?:not found|restricted|has been deleted)|<title>UPLOADTO.US</title>',
  7701. 'btn-large btn-danger">|Account limitation notice|502 Bad Gateway',
  7702. "//a[contains(@href,'uploadto.us/file')]",
  7703. true);
  7704. } */
  7705. if (GM_getValue("Check_nitroflare_dot_com_links", true))
  7706. {
  7707. addFileHost(
  7708. "nitroflare\.com\/\\w+",
  7709. 'alert.png|LowSpeedMeter.png',
  7710. 'file has been removed|id="error" style="display|Probably deleted',
  7711. 'optional--',
  7712. "//a[contains(@href,'nitroflare.com')]");
  7713. }
  7714. if (GM_getValue("Check_up_dot_top4top_dot_net_links", false))
  7715. {
  7716. addFileHost(
  7717. "up.top4top\.net\/\\w+",
  7718. 'start Downlod template',
  7719. 'start err template',
  7720. 'optional--',
  7721. "//a[contains(@href,'up.top4top.net')]");
  7722. }
  7723. if (GM_getValue("Check_filejoker_dot_net_links", false))
  7724. {
  7725. addFileHost(
  7726. "filejoker\.net\/\\w+",
  7727. 'button id="regular-download">Slow|method_free" value="1|<div id="download" class="download0">',
  7728. 'File Not Found|class="not_found|<div id="download" class="not_found">|"err">DMCA Complaint<',
  7729. 'optional--',
  7730. "//a[contains(@href,'filejoker.net')]");
  7731. }
  7732. if (GM_getValue("Check_free_dot_fr_links", false))
  7733. {
  7734. addFileHost(
  7735. "(?:dl.\\.|)free\\.fr",
  7736. 'Valider et t&eacute;l&eacute',
  7737. 'Fichier inexistant',
  7738. 'optional--',
  7739. "//a[contains(@href,'free.fr')]");
  7740. }
  7741. if (GM_getValue("Check_gboxes_dot_com_links", false))
  7742. {
  7743. addFileHost(
  7744. "gboxes\.com\/\\w+",
  7745. 'You have requested|color="red">http://www.gboxes.com',
  7746. 'File Not Found|<div style="width:500px;text-align:left;">',
  7747. 'optional--',
  7748. "//a[contains(@href,'gboxes.com')]");
  7749. }
  7750. if (GM_getValue("Check_1fichier_dot_com_links", false))
  7751. {
  7752. addFileHost(
  7753. "(?:\\w{10}\\.(?:1fichier|dl4free)\\.com\/)|(?:(?:1fichier|dl4free)\\.com\/\\?\\w{10})|(?:www\\.)?\\w{6,}\\.1fichier\\.com",
  7754. '<title>Download</title>|<br/>You must wait|submit" value="Download|Download without SSL encryption|submit" value="Télécharger|submit" value="Télécharger',
  7755. 'File not found|file could not be found|Select files to send|Sélectionnez les fichiers à envoyer|file has been deleted|Le fichier demandé a été supprimé',
  7756. 'optional--',
  7757. "//a[contains(@href,'1fichier') or contains(@href,'dl4free.com/')]"
  7758. );
  7759. }
  7760. if (GM_getValue("Check_led_dot_wf_links", false))
  7761. {
  7762. addFileHost(
  7763. "led\.wf\/\\w+",
  7764. 'logo_0.png|downloads.gif"|verifycode',
  7765. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  7766. 'optional--',
  7767. "//a[contains(@href,'led.wf')]");
  7768. }
  7769. if (GM_getValue("Check_lan_dot_wf_links", false))
  7770. {
  7771. addFileHost(
  7772. "lan\.wf\/\\w+",
  7773. 'logo_0.png|downloads.gif"|verifycode',
  7774. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  7775. 'optional--',
  7776. "//a[contains(@href,'lan.wf')]");
  7777. }
  7778. if (GM_getValue("Check_adlink_dot_wf_links", false))
  7779. {
  7780. addFileHost(
  7781. "adlink\.wf\/\\w+",
  7782. 'logo_0.png|downloads.gif"|verifycode',
  7783. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  7784. 'optional--',
  7785. "//a[contains(@href,'adlink.wf')]");
  7786. }
  7787. if (GM_getValue("Check_click_dot_tf_links", false))
  7788. {
  7789. addFileHost(
  7790. "click\.tf\/\\w+",
  7791. 'logo_0.png|downloads.gif"|verifycode',
  7792. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  7793. 'optional--',
  7794. "//a[contains(@href,'click.tf')]");
  7795. }
  7796. if (GM_getValue("Check_ssh_dot_tf_links", false))
  7797. {
  7798. addFileHost(
  7799. "ssh\.tf\/\\w+",
  7800. 'logo_0.png|downloads.gif"|verifycode',
  7801. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  7802. 'optional--',
  7803. "//a[contains(@href,'ssh.tf')]");
  7804. }
  7805. if (GM_getValue("Check_ssh_dot_yt_links", false))
  7806. {
  7807. addFileHost(
  7808. "ssh\.yt\/\\w+",
  7809. 'logo_0.png|downloads.gif"|verifycode',
  7810. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  7811. 'optional--',
  7812. "//a[contains(@href,'ssh.yt')]");
  7813. }
  7814. if (GM_getValue("Check_yep_dot_pm_links", false))
  7815. {
  7816. addFileHost(
  7817. "yep\.pm\/\\w+",
  7818. 'logo_0.png|downloads.gif"|verifycode',
  7819. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  7820. 'optional--',
  7821. "//a[contains(@href,'yep.pm')]");
  7822. }
  7823. if (GM_getValue("Check_kyc_dot_pm_links", false))
  7824. {
  7825. addFileHost(
  7826. "kyc\.pm\/\\w+",
  7827. 'logo_0.png|downloads.gif"|verifycode',
  7828. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  7829. 'optional--',
  7830. "//a[contains(@href,'kyc.pm')]");
  7831. }
  7832. if (GM_getValue("Check_brupload_dot_net_links", false))
  7833. {
  7834. addFileHost(
  7835. "brupload\.net\/\\w+",
  7836. 'Download Gratuito',
  7837. '<div style="width:500px;text-align:left;">',
  7838. 'optional--',
  7839. //'optional--',
  7840. "//a[contains(@href,'brupload.net')]");
  7841. }
  7842. if (GM_getValue("Check_cloudzilla_dot_to_links", false))
  7843. {
  7844. addFileHost(
  7845. "cloudzilla\.to\/\\w+",
  7846. 'btn1" id="free_download|onclick="freeDownload|id="pwd_protected">',
  7847. 'File not found|/imgs/broken.png',
  7848. 'optional--',
  7849. //'optional--',
  7850. "//a[contains(@href,'cloudzilla.to')]");
  7851. }
  7852. if (GM_getValue("Check_fileparadox_dot_in_links", false))
  7853. {
  7854. addFileHost(
  7855. "fileparadox\.in\/\\w+",
  7856. 'CONTENT="Download File|method_free_file',
  7857. '>File Not Found<|id="no_filedownload">|FILE NOT FOUND',
  7858. 'optional--',
  7859. //'optional--',
  7860. "//a[contains(@href,'fileparadox.in')]");
  7861. }
  7862. if (GM_getValue("Check_clicknupload_dot_com_links", false))
  7863. {
  7864. addFileHost(
  7865. "clicknupload\.com\/\\w+",
  7866. 'name="method_free',
  7867. 'File Not Found',
  7868. 'optional--',
  7869. //'optional--',
  7870. "//a[contains(@href,'clicknupload.com')]");
  7871. }
  7872. if (GM_getValue("Check_ex_dash_load_dot_com_links", false))
  7873. {
  7874. addFileHost(
  7875. "ex-load\.com\/\\w+",
  7876. 'name="method_free|<p>Download File:</p>',
  7877. 'Folder Not Found|File Not Found|Error 404',
  7878. 'optional--',
  7879. //'optional--',
  7880. "//a[contains(@href,'ex-load.com')]");
  7881. }
  7882. if (GM_getValue("Check_hexupload_dot_com_links", false))
  7883. {
  7884. addFileHost(
  7885. "hexupload\.com\/\\w+",
  7886. 'button" value="Free|type="submit" value=""',
  7887. 'File Not Found|<div style="width:500px;text-align:left;">',
  7888. 'optional--',
  7889. //'optional--',
  7890. "//a[contains(@href,'hexupload.com')]");
  7891. }
  7892. if (GM_getValue("Check_wizupload_dot_com_links", false))
  7893. {
  7894. addFileHost(
  7895. "wizupload\.com\/\\w+",
  7896. 'btn_download|class="downloadbtn"',
  7897. '>File Not Found<',
  7898. 'optional--',
  7899. //'optional--',
  7900. "//a[contains(@href,'wizupload.com')]");
  7901. }
  7902. if (GM_getValue("Check_filecloud_dot_cc_links", false))
  7903. {
  7904. addFileHost(
  7905. "filecloud\.cc\/\\w+",
  7906. 'align="center"><input type="submit" name=',
  7907. 'File Not Found|<Title>FileCloud - Premium Hosting Service<',
  7908. 'optional--',
  7909. //'optional--',
  7910. "//a[contains(@href,'filecloud.cc')]");
  7911. }
  7912. if (GM_getValue("Check_inclouddrive_dot_com_links", false))
  7913. {
  7914. addFileHost(
  7915. "inclouddrive\.com\/\\w+",
  7916. 'initfreedownload',
  7917. '<title>Content Unavailable|The file you are trying to download is no longer available',
  7918. 'optional--',
  7919. //'optional--',
  7920. "//a[contains(@href,'inclouddrive.com')]");
  7921. }
  7922. if (GM_getValue("Check_radicalshare_dot_com_links", false))
  7923. {
  7924. addFileHost(
  7925. "radicalshare\.com\/\\w+",
  7926. 'value="download1|name="method_free"',
  7927. 'File Not Found<|<div style="width:500px;text-align:left;">',
  7928. 'optional--',
  7929. //'optional--',
  7930. "//a[contains(@href,'radicalshare.com')]");
  7931. }
  7932. if (GM_getValue("Check_sharemods_dot_com_links", false))
  7933. {
  7934. addFileHost(
  7935. "sharemods\.com\/\\w+",
  7936. 'name="method_free"',
  7937. 'File Not Found<',
  7938. 'optional--',
  7939. //'optional--',
  7940. "//a[contains(@href,'sharemods.com')]");
  7941. }
  7942. if (GM_getValue("Check_hostr_dot_co_links", false))
  7943. {
  7944. addFileHost(
  7945. "hostr\.co\/\\w+",
  7946. 'method="get"',
  7947. 'File not found<|error-page',
  7948. 'optional--',
  7949. //'optional--',
  7950. "//a[contains(@href,'hostr.co')]");
  7951. }
  7952. if (GM_getValue("Check_filepi_dot_com_links", false))
  7953. {
  7954. addFileHost(
  7955. "filepi\.com\/\\w+",
  7956. 'id="button_start">',
  7957. 'File not found',
  7958. 'optional--',
  7959. //'optional--',
  7960. "//a[contains(@href,'filepi.com')]");
  7961. }
  7962. if (GM_getValue("Check_tikfile_dot_com_links", false))
  7963. {
  7964. addFileHost(
  7965. "tikfile\.com\/\\w+",
  7966. 'btn_download',
  7967. 'File Not Found|file was removed|Reason for deletion',
  7968. 'optional--',
  7969. //'optional--',
  7970. "//a[contains(@href,'tikfile.com')]");
  7971. }
  7972. if (GM_getValue("Check_cloudsix_dot_me_links", false))
  7973. {
  7974. addFileHost(
  7975. "cloudsix\.me\/\\w+",
  7976. 'name="method_free"',
  7977. 'File Not Found|width:500px;text-align:left;">',
  7978. 'optional--',
  7979. //'optional--',
  7980. "//a[contains(@href,'cloudsix.me')]");
  7981. }
  7982. if (GM_getValue("Check_neodrive_dot_co_links", false))
  7983. {
  7984. addFileHost(
  7985. "neodrive\.co\/\\w+",
  7986. 'btn1" id="free_download|onclick="freeDownload|id="pwd_protected">',
  7987. 'File not found|/imgs/broken.png',
  7988. 'optional--',
  7989. //'optional--',
  7990. "//a[contains(@href,'neodrive.co')]");
  7991. }
  7992. if (GM_getValue("Check_chayfile_dot_com_links", false))
  7993. {
  7994. addFileHost(
  7995. "chayfile\.com\/\\w+",
  7996. 'name="method_free"',
  7997. 'File Not Found|<h3>The file was removed by administrator</h3>',
  7998. 'optional--',
  7999. //'optional--',
  8000. "//a[contains(@href,'chayfile.com')]");
  8001. }
  8002. if (GM_getValue("Check_xfileload_dot_com_links", false))
  8003. {
  8004. addFileHost(
  8005. "xfileload\.com\/\\w+",
  8006. 'Filename:|Имя файла:|Dateiname:|nom de fichier :|اسم الملف:|Dosya AdД±|Nazwa:|Nombre de fichero:|NamaFile:|Bestandsnaam:|שם קובץ:"',
  8007. '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..|הקובץ שחיפשת לא נמצא.',
  8008. 'optional--',
  8009. //'optional--',
  8010. "//a[contains(@href,'xfileload.com')]");
  8011. }
  8012. if (GM_getValue("Check_rockfile_dot_eu_links", false))
  8013. {
  8014. addFileHost(
  8015. "rockfile\.eu\/\\w+",
  8016. 'You have requested:',
  8017. 'The file you were looking for could not be found, sorry for any inconvenience.',
  8018. 'optional--',
  8019. //'optional--',
  8020. "//a[contains(@href,'rockfile.eu')]");
  8021. }
  8022. if (GM_getValue("Check_24uploading_dot_com_links", false))
  8023. {
  8024. addFileHost(
  8025. "24uploading\.com\/\\w+",
  8026. 'File:|Download Speed:',
  8027. '<b>File Not Found</b>|file was removed',
  8028. 'optional--',
  8029. //'optional--',
  8030. "//a[contains(@href,'24uploading.com')]");
  8031. }
  8032. if (GM_getValue("Check_tusfiles_dot_net_links", false))
  8033. {
  8034. addFileHost(
  8035. "tusfiles\.net\/\\w+",
  8036. 'i/icon/dll.png"|>Start download<br',
  8037. 'no longer available<|i/ino.png"',
  8038. 'optional--',
  8039. //'optional--',
  8040. "//a[contains(@href,'tusfiles.net')]");
  8041. }
  8042. if (GM_getValue("Check_jumbofile_dot_net_links", false))
  8043. {
  8044. addFileHost(
  8045. "jumbofile\.net\/\\w+",
  8046. 'button" class="" value="Free',
  8047. 'This File Was Deleted',
  8048. 'optional--',
  8049. //'optional--',
  8050. "//a[contains(@href,'jumbofile.net')]");
  8051. }
  8052. if (GM_getValue("Check_ozofiles_dot_com_links", false))
  8053. {
  8054. addFileHost(
  8055. "ozofiles\.com\/\\w+",
  8056. 'button" value="Free',
  8057. 'File Not Found|width:500px;text-align:left;">|File Deleted',
  8058. 'optional--',
  8059. //'optional--',
  8060. "//a[contains(@href,'ozofiles.com')]");
  8061. }
  8062. if (GM_getValue("Check_loudupload_dot_net_links", false))
  8063. {
  8064. addFileHost(
  8065. "loudupload\.net\/\\w+",
  8066. 'value="Get Links',
  8067. 'File Not Found',
  8068. 'optional--',
  8069. //'optional--',
  8070. "//a[contains(@href,'loudupload.net')]");
  8071. }
  8072. if (GM_getValue("Check_rapidsonic_dot_com_links", false))
  8073. {
  8074. addFileHost(
  8075. "(rapidsonic|fileparadox)\\.com\/\\w+",
  8076. 'method_free" id="submit_btn|<h4><i class="icon_document_alt"></i>Download File</h4>',
  8077. '>File Not Found<|id="no_filedownload">|>FILE NOT FOUND<|file has been deleted|No such file with this filename',
  8078. 'optional--',
  8079. //'optional--',
  8080. "//a[contains(@href,'rapidsonic') or contains(@href,'fileparadox.com')]");
  8081. }
  8082. if (GM_getValue("Check_krotix_dot_net_links", false))
  8083. {
  8084. addFileHost(
  8085. "krotix\.net\/\\w+",
  8086. 'btn btn-warning|btn-free',
  8087. 'pageErrors|This File has been removed',
  8088. 'content="Scheduled Maintenance',
  8089. //'optional--',
  8090. "//a[contains(@href,'krotix.net')]");
  8091. }
  8092. if (GM_getValue("Check_userscloud_dot_com_links", false))
  8093. {
  8094. addFileHost(
  8095. "userscloud\.com\/\\w+",
  8096. 'btn_download',
  8097. '>Server OFFLINE|background:#D3D3D3;border-bottom:1px solid #BBB;font:bold 13px Verdana;padding:3px;">',
  8098. 'optional--',
  8099. //'optional--',
  8100. "//a[contains(@href,'userscloud.com')]");
  8101. }
  8102. if (GM_getValue("Check_kumpulbagi_dot_com_links", false))
  8103. {
  8104. addFileHost(
  8105. "kumpulbagi\.com\/\\w+",
  8106. 'class="button download',
  8107. 'internal server error',
  8108. 'optional--',
  8109. //'optional--',
  8110. "//a[contains(@href,'kumpulbagi.com')]");
  8111. }
  8112. if (GM_getValue("Check_faststore_dot_org_links", false))
  8113. {
  8114. addFileHost(
  8115. "faststore\.org\/\\w+",
  8116. 'name="method_free',
  8117. 'File Not Found',
  8118. 'optional--',
  8119. //'optional--',
  8120. "//a[contains(@href,'faststore.org')]");
  8121. }
  8122. if (GM_getValue("Check_prefiles_dot_com_links", false))
  8123. {
  8124. addFileHost(
  8125. "prefiles\.com\/\\w+",
  8126. 'id="method_free',
  8127. 'File not Found',
  8128. 'optional--',
  8129. //'optional--',
  8130. "//a[contains(@href,'prefiles.com')]");
  8131. }
  8132. if (GM_getValue("Check_doraupload_dot_com_links", false))
  8133. {
  8134. addFileHost(
  8135. "doraupload\.com\/\\w+",
  8136. 'btn_download',
  8137. 'class="error-code|Could Not Be Found',
  8138. 'optional--',
  8139. //'optional--',
  8140. "//a[contains(@href,'doraupload.com')]");
  8141. }
  8142. if (GM_getValue("Check_openload_dot_io_links", false))
  8143. {
  8144. addFileHost(
  8145. "openload\.io\/\\w+",
  8146. 'btn btn-primary|class="count">',
  8147. 'class="jumbotron">|We are sorry',
  8148. 'optional--',
  8149. //'optional--',
  8150. "//a[contains(@href,'openload.io')]");
  8151. }
  8152. if (GM_getValue("Check_uploads_dot_xxx_links", false))
  8153. {
  8154. addFileHost(
  8155. "uploads\.xxx\/\\w+",
  8156. 'downoadForFree',
  8157. 'File not found',
  8158. 'optional--',
  8159. //'optional--',
  8160. "//a[contains(@href,'uploads.xxx')]");
  8161. }
  8162. if (GM_getValue("Check_zxcfiles_dot_com_links", false))
  8163. {
  8164. addFileHost(
  8165. "zxcfiles\.com\/\\w+",
  8166. 'class="downloadbtn',
  8167. 'File Not Found',
  8168. 'optional--',
  8169. //'optional--',
  8170. "//a[contains(@href,'zxcfiles.com')]");
  8171. }
  8172. if (GM_getValue("Check_up07_dot_net_links", false))
  8173. {
  8174. addFileHost(
  8175. "up07\.net\/\\w+",
  8176. 'name="method_free',
  8177. 'File Not Found',
  8178. 'optional--',
  8179. //'optional--',
  8180. "//a[contains(@href,'up07.net')]");
  8181. }
  8182. if (GM_getValue("Check_fileupload_dot_pw_links", false))
  8183. {
  8184. addFileHost(
  8185. "fileupload\.pw\/\\w+",
  8186. 'value="Free"',
  8187. 'File Not Found',
  8188. 'optional--',
  8189. //'optional--',
  8190. "//a[contains(@href,'fileupload.pw')]");
  8191. }
  8192. if (GM_getValue("Check_4upld_dot_com_links", false))
  8193. {
  8194. addFileHost(
  8195. "4upld\.com\/\\w+",
  8196. 'alt="Download Now"|content="Download file">|btn-free-element',
  8197. '<title>Error|content="error|File not found',
  8198. 'optional--',
  8199. //'optional--',
  8200. "//a[contains(@href,'4upld.com')]");
  8201. }
  8202. if (GM_getValue("Check_newfileland_dot_com_links", false))
  8203. {
  8204. addFileHost(
  8205. "newfileland\.com\/\\w+",
  8206. 'name="method_free',
  8207. 'File Not Found',
  8208. 'optional--',
  8209. //'optional--',
  8210. "//a[contains(@href,'newfileland.com')]");
  8211. }
  8212. if (GM_getValue("Check_swoopshare_dot_com_links", false))
  8213. {
  8214. addFileHost(
  8215. "(?:.swoopshare)\\.com\/\\w+",
  8216. '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',
  8217. '<input type="file" name="f"',
  8218. 'optional--',
  8219. //'optional--',
  8220. "//a[contains(@href,'swoopshare.com')]"
  8221. );
  8222. }
  8223. if (GM_getValue("Check_cloudshares_dot_net_links", false))
  8224. {
  8225. addFileHost(
  8226. "cloudshares\.net\/\\w+",
  8227. '"method_free|"Low Speed Download|submit" name="go',
  8228. 'Not Found|"width:500px;text-align:left;">|No such file exist',
  8229. 'optional--',
  8230. //'optional--',
  8231. "//a[contains(@href,'cloudshares.net')]"
  8232. );
  8233. }
  8234. if (GM_getValue("Check_allmyvideos_dot_net_links", false))
  8235. {
  8236. addFileHost(
  8237. "allmyvideos\.net\/\\w+",
  8238. 'Continue to Video',
  8239. 'File Not Found|class="err">Removed for',
  8240. 'optional--',
  8241. //'optional--',
  8242. "//a[contains(@href,'allmyvideos.net')]"
  8243. );
  8244. }
  8245. if (GM_getValue("Check_vodlocker_dot_com_links", false))
  8246. {
  8247. addFileHost(
  8248. "vodlocker\.com\/\\w+",
  8249. 'Proceed to video',
  8250. 'Not Found',
  8251. 'optional--',
  8252. //'optional--',
  8253. "//a[contains(@href,'vodlocker.com')]"
  8254. );
  8255. }
  8256. if (GM_getValue("Check_vidbull_dot_com_links", false))
  8257. {
  8258. addFileHost(
  8259. "vidbull\.com\/\\w+",
  8260. 'Verifying Video Request',
  8261. 'File Not Found',
  8262. 'optional--',
  8263. //'optional--',
  8264. "//a[contains(@href,'vidbull.com')]");
  8265. }
  8266. if (GM_getValue("Check_novamov_dot_com_links", false))
  8267. {
  8268. addFileHost(
  8269. "novamov\.com\/\\w+",
  8270. 'For version detection',
  8271. 'file no longer exists',
  8272. 'optional--',
  8273. //'optional--',
  8274. "//a[contains(@href,'novamov.com')]"
  8275. );
  8276. }
  8277. if (GM_getValue("Check_filehoot_dot_com_links", false))
  8278. {
  8279. addFileHost(
  8280. "filehoot\.com\/\\w+",
  8281. 'Continue to watch',
  8282. 'File Not Found',
  8283. 'optional--',
  8284. //'optional--',
  8285. "//a[contains(@href,'filehoot.com')]"
  8286. );
  8287. }
  8288. if (GM_getValue("Check_stagevu_dot_com_links", false))
  8289. {
  8290. addFileHost(
  8291. "stagevu\.com\/\\w+",
  8292. 'Video Info',
  8293. 'No video with the provided',
  8294. 'optional--',
  8295. //'optional--',
  8296. "//a[contains(@href,'stagevu.com')]"
  8297. );
  8298. }
  8299. if (GM_getValue("Check_cloudtime_dot_to_links", false))
  8300. {
  8301. addFileHost(
  8302. "cloudtime\.to\/\\w+",
  8303. 'Download the video',
  8304. 'no longer exists',
  8305. 'optional--',
  8306. //'optional--',
  8307. "//a[contains(@href,'cloudtime.to')]"
  8308. );
  8309. }
  8310. if (GM_getValue("Check_streamin_dot_to_links", false))
  8311. {
  8312. addFileHost(
  8313. "streamin\.to\/\\w+",
  8314. 'id="btn_download',
  8315. 'Not Found|Copyright Infringement|File Deleted',
  8316. 'optional--',
  8317. //'optional--',
  8318. "//a[contains(@href,'streamin.to')]"
  8319. );
  8320. }
  8321. if (GM_getValue("Check_videoweed_dot_es_links", false))
  8322. {
  8323. addFileHost(
  8324. "videoweed\.es\/\\w+",
  8325. 'version detection',
  8326. 'no longer exists',
  8327. 'optional--',
  8328. //'optional--',
  8329. "//a[contains(@href,'videoweed.es')]"
  8330. );
  8331. }
  8332. if (GM_getValue("Check_nowvideo_dot_sx_links", false))
  8333. {
  8334. addFileHost(
  8335. "nowvideo\.sx\/\\w+",
  8336. 'Download this video',
  8337. 'no longer exists',
  8338. 'optional--',
  8339. //'optional--',
  8340. "//a[contains(@href,'nowvideo.sx')]"
  8341. );
  8342. }
  8343. if (GM_getValue("Check_thevideo_dot_me_links", false))
  8344. {
  8345. addFileHost(
  8346. "thevideo\.me\/\\w+",
  8347. 'Upgrade your account|Proceed to video',
  8348. 'File Not Found',
  8349. 'optional--',
  8350. //'optional--',
  8351. "//a[contains(@href,'thevideo.me')]"
  8352. );
  8353. }
  8354. if (GM_getValue("Check_gorillavid_dot_in_links", false))
  8355. {
  8356. addFileHost(
  8357. "gorillavid\.in\/\\w+",
  8358. 'Wait 5 seconds',
  8359. 'File Not Found',
  8360. 'optional--',
  8361. //'optional--',
  8362. "//a[contains(@href,'gorillavid.in')]"
  8363. );
  8364. }
  8365. if (GM_getValue("Check_thefile_dot_me_links", false))
  8366. {
  8367. addFileHost(
  8368. "thefile\.me\/\\w+",
  8369. 'Choose free or',
  8370. '',
  8371. 'optional--',
  8372. //'optional--',
  8373. "//a[contains(@href,'thefile.me')]"
  8374. );
  8375. }
  8376. if (GM_getValue("Check_vidzi_dot_tv_links", false))
  8377. {
  8378. addFileHost(
  8379. "vidzi\.tv\/\\w+",
  8380. 'video-embed-modal row',
  8381. 'File Not Found|file was deleted',
  8382. 'optional--',
  8383. //'optional--',
  8384. "//a[contains(@href,'vidzi.tv')]"
  8385. );
  8386. }
  8387. if (GM_getValue("Check_filenuke_dot_com_links", false))
  8388. {
  8389. addFileHost(
  8390. "filenuke\.com\/\\w+",
  8391. 'Download File',
  8392. 'Earn with us',
  8393. 'optional--',
  8394. //'optional--',
  8395. "//a[contains(@href,'filenuke.com')]"
  8396. );
  8397. }
  8398. if (GM_getValue("Check_vidto_dot_me_links", false))
  8399. {
  8400. addFileHost(
  8401. "vidto\.me\/\\w+",
  8402. 'Proceed to video',
  8403. 'Not Found',
  8404. 'optional--',
  8405. //'optional--',
  8406. "//a[contains(@href,'vidto.me')]"
  8407. );
  8408. }
  8409. if (GM_getValue("Check_vidspot_dot_net_links", false))
  8410. {
  8411. addFileHost(
  8412. "vidspot\.net\/\\w+",
  8413. 'Duration',
  8414. 'Removed for',
  8415. 'optional--',
  8416. //'optional--',
  8417. "//a[contains(@href,'vidspot.net')]"
  8418. );
  8419. }
  8420. if (GM_getValue("Check_sharesix_dot_com_links", false))
  8421. {
  8422. addFileHost(
  8423. "(?:sharesix\\.com|sharesix\\.net)\/\\w+",
  8424. 'Download File',
  8425. 'File Not Found',
  8426. 'optional--',
  8427. //'optional--',
  8428. "//a[contains(@href,'sharesix.com') or contains(@href,'sharesix.net/')]"
  8429. );
  8430. }
  8431. if (GM_getValue("Check_movpod_dot_in_links", false))
  8432. {
  8433. addFileHost(
  8434. "movpod\.in\/\\w+",
  8435. 'Continue',
  8436. 'File Not Found',
  8437. 'optional--',
  8438. //'optional--',
  8439. "//a[contains(@href,'movpod.in')]"
  8440. );
  8441. }
  8442.  
  8443. }
  8444. //start here
  8445.  
  8446. //hosts with direct download, so they must be requested for headers only
  8447. function initFileHostsHeadersOnly()
  8448. {
  8449. function addFileHostHeadersOnly(linkRegex, isAliveRegex, isDeadRegex, xpathEx, ispremRegex)
  8450. {
  8451. var host = new Array(5);
  8452. host[0] = linkRegex;
  8453. host[1] = isAliveRegex;
  8454. host[2] = isDeadRegex;
  8455. host[3] = xpathEx;
  8456. host[4] = ispremRegex;
  8457. http_file_hosts_headers_only.push(host);
  8458. }
  8459. if (GM_getValue("Check_uloziste_dot_com_links", false))
  8460. {
  8461. addFileHostHeadersOnly(
  8462. "(?:|files\\.)uloziste\\.com\/\\w+\/\\w+",
  8463. 'Connection: Keep-Alive',
  8464. 'Content-Length: 3857',
  8465. "//a[contains(@href,'uloziste.com')]"
  8466. )
  8467. }
  8468. if (GM_getValue("Check_adrive_dot_com_links", false))
  8469. {
  8470. addFileHostHeadersOnly(
  8471. "adrive\\.com\/public\/\\w+",
  8472. 'Connection: keep-alive',
  8473. 'orig_ref=deleted',
  8474. "//a[contains(@href,'adrive.com')]"
  8475. )
  8476. }
  8477. if (GM_getValue("Check_myupload_dot_dk_links", false))
  8478. {
  8479. addFileHostHeadersOnly(
  8480. "myupload\\.dk\/showfile\/\\w+",
  8481. 'Expires:',
  8482. 'squeeze1\\s+Vary',
  8483. "//a[contains(@href,'myupload.dk/showfile')]"
  8484. )
  8485. }
  8486. }
  8487. //CustomRules
  8488. //functions add...Host copied here
  8489. function addObsoleteHost(linkRegex, xpathEx)
  8490. {
  8491. var host = new Array(2);
  8492. host[0] = linkRegex;
  8493. host[1] = xpathEx;
  8494. http_file_hosts_obsolete.push(host);
  8495. }
  8496. function addFileHost(linkRegex, isAliveRegex, isDeadRegex, isUnavaRegex, xpathEx, tryLoop, ispremRegex)
  8497. {
  8498. var host = new Array(7);
  8499. host[0] = linkRegex;
  8500. host[1] = isAliveRegex;
  8501. host[2] = isDeadRegex;
  8502. host[3] = isUnavaRegex;
  8503. host[4] = xpathEx;
  8504. tryLoop ? host[5] = true : host[5] = false;
  8505. host[6] = ispremRegex;
  8506. http_file_hosts.push(host);
  8507. }
  8508. function addFileHostHeadersOnly(linkRegex, isAliveRegex, isDeadRegex, xpathEx, ispremRegex)
  8509. {
  8510. var host = new Array(5);
  8511. host[0] = linkRegex;
  8512. host[1] = isAliveRegex;
  8513. host[2] = isDeadRegex;
  8514. host[3] = xpathEx;
  8515. host[4] = ispremRegex;
  8516. http_file_hosts_headers_only.push(host);
  8517. }
  8518. //takes a fully built rules array and adds the rules to WARLC
  8519. function applyCustomRules(customRules)
  8520. {
  8521. if (!customRules) return;
  8522. var rules, r, i;
  8523. rules = customRules.rules;
  8524. for (i = 0 ; i < rules.length ; i++)
  8525. {
  8526. r = rules[i];
  8527. if (r.enabled)
  8528. {
  8529. switch (r.type)
  8530. {
  8531. case 'single':
  8532. addFileHost(r.urlregex, r.aliveregex, r.deadregex, r.unavaregex, r.premregex||'', r.xpath);
  8533. break;
  8534. case 'headers':
  8535. addFileHostHeadersOnly(r.urlregex, r.aliveregex, r.deadregex, r.xpath, r.premregex);
  8536. break;
  8537. case 'obsolete':
  8538. addObsoleteHost(r.urlregex, r.xpath)
  8539. break;
  8540. }
  8541. }
  8542. }
  8543. }
  8544.  
  8545.  
  8546. function initFileHostsCustom()
  8547. {
  8548. if (Custom_rules && Custom_rules_text)
  8549. {
  8550. var msg = '';
  8551. if (newVersion)
  8552. msg = 'New version of W.A.R. Links Checker detected.\n\n';
  8553. else if ((now - last_custom_rules_nag) >= 60*24*60*60*1000)
  8554. msg = '60 or more days have passed since this notification.\n\n';
  8555. if (msg && /^\s*@customrule(?:_obsolete)?\s/mi.test(Custom_rules_text))
  8556. {
  8557. GM_setValue('last_custom_rules_nag', ''+new Date().getTime()); //reset nag
  8558. msg +=
  8559. 'Either new version of W.A.R. Links Checker detected or 60 days passed since this notify.\n'+
  8560. 'Please check that your custom rules haven\'t been built into WARLC.\n'+
  8561. 'If not, please share them with us so they can be included in the next version! Built-in rules are always preferred.\n\n'+
  8562. 'We apologize for this annoying notification, but there is a reason to this.\n'+
  8563. 'Ideally, WARLC would check which of your custom rules have been included and disable them. '+
  8564. 'Unfortunately, there is no easy way to do that, but we don\'t want everybody to just use their custom rules '+
  8565. 'forever without ever checking if the built-in ones have been added/fixed. This is currently the only way '+
  8566. 'to remind you that you should try built-in rules, report missing/non-working ones and share your custom rules.';
  8567. setTimeout(function(){alert(msg)},0);
  8568. }
  8569. var customRules = parseCustomRules(Custom_rules_text);
  8570. if (customRules.warning || customRules.error)
  8571. alert('There were ' + customRules.error + ' errors, ' + customRules.warning + ' warnings, ' +
  8572. customRules.note + ' notes found during Custom Rules processing.\n' + customRules.rules.length + ' valid rules found.\n\n' +
  8573. JSON.stringify(customRules.info, null, ' '));
  8574. applyCustomRules(customRules);
  8575. }
  8576. }
  8577. //end of CustomRules processing
  8578.  
  8579.  
  8580.  
  8581. } //end of function start
  8582.  
  8583.  
  8584.  
  8585. function initClipBoardTools()
  8586. {
  8587. unsafeWindow.copyToClipboard = function(text)
  8588. {
  8589. try
  8590. {
  8591. this.netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
  8592.  
  8593. var str = Components.classes["@mozilla.org/supports-string;1"].
  8594. createInstance(Components.interfaces.nsISupportsString);
  8595. if (!str) return false;
  8596.  
  8597. str.data = text;
  8598.  
  8599. var trans = Components.classes["@mozilla.org/widget/transferable;1"].
  8600. createInstance(Components.interfaces.nsITransferable);
  8601. if (!trans) return false;
  8602.  
  8603. trans.addDataFlavor("text/unicode");
  8604. trans.setTransferData("text/unicode", str, text.length * 2);
  8605.  
  8606. var clipid = Components.interfaces.nsIClipboard;
  8607. var clip = Components.classes["@mozilla.org/widget/clipboard;1"].getService(clipid);
  8608. if (!clip) return false;
  8609.  
  8610. clip.setData(trans, null, clipid.kGlobalClipboard);
  8611. } catch (e) {
  8612. GM_log("Error copyToClipboard : " + e);
  8613. alert(e + "\n\nsigned.applets.codebase_principal_support must be set true in about:config")
  8614. }
  8615. }
  8616. }
  8617.  
  8618.  
  8619.  
  8620. //CustomRules
  8621.  
  8622. function escapeRegex(str)
  8623. {
  8624. return str.replace(/[\-\[\]{}()*+?.,\\\^$|#]/g, "\\$&");
  8625. }
  8626.  
  8627.  
  8628. //called internally from parseCustomRules.
  8629. //expected: rule object with array fields baseurl, alivematch etc, everything must already be checked for input errors
  8630. //returns the rule object with string fields urlregex, xpath, aliveregex etc built from the arrays
  8631. function makeCustomRule(rule)
  8632. {
  8633. function makeMatchRegex(arrmatch)
  8634. {
  8635. return escapeRegex(arrmatch.join('\n'))
  8636. .replace(/ +/g, '\\s+') //two or more spaces to any whitespace
  8637. .replace(/\n/g,'|'); //join together
  8638. }
  8639. if (rule.alivematch) rule.aliveregex = makeMatchRegex(rule.alivematch);
  8640. if (rule.deadmatch) rule.deadregex = makeMatchRegex(rule.deadmatch);
  8641. if (rule.unavamatch) rule.unavaregex = makeMatchRegex(rule.unavamatch);
  8642. if (rule.premmatch) rule.premregex = makeMatchRegex(rule.premmatch);
  8643. if (rule.baseurl)
  8644. {
  8645. var i, m, urlregex = [], xpath = [], len = rule.baseurl.length;
  8646. for (i = 0 ; i < len ; i++)
  8647. {
  8648. m = rule.baseurl[i].match(/^([a-z0-9\.-]+)(?: +([a-z \.]+) +)?(\/.*)$/);
  8649. if (m[2]) //baseurl in the form: example. com co.uk net /xxx
  8650. {
  8651. 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'])
  8652. urlregex.push( (m[1] + '(?:'+ m[2].replace(/\s+/g,'|') + ')').replace(/\./g,'\\.') + escapeRegex(m[3]) + '.'); //urlregex.push('example\\.(?:com|co\\.uk|net)/xxx.')
  8653. }
  8654. else //baseurl in the form: example.com/xxx
  8655. {
  8656. xpath.push(m[0]);
  8657. urlregex.push(escapeRegex(m[0]) + '.');
  8658. }
  8659. }
  8660. rule.xpath = "//a[contains(@href,'" + xpath.join("') or contains(@href,'") + "')]";
  8661. rule.urlregex = '(?:[a-z0-9\\.-]+\\.)?(?:' + urlregex.join('|') + ')';
  8662. }
  8663. return rule;
  8664. } //function makeCustomRule
  8665.  
  8666.  
  8667. /*
  8668. Takes a string containing custom link checking rules.
  8669. Returns an object with fields:
  8670. info - contains notes, warnings and errors found during parsing
  8671. rules - the array of custom rules
  8672. note, warning, error - number of each of them found during parsing
  8673. Format of the input string:
  8674. One command per line. Command format: @keyword parameter
  8675. Keywords:
  8676. @customrule, @customrule_obsolete, @customrule_headers - begin a new custom rule. Parameter: name of the rule
  8677. @#customrule, @#customrule_obsolete, @#customrule_headers - begin and parse this custom rule, but don't use it. Parameter: name of the rule
  8678. These keywords can be multiple (any of them will work):
  8679. @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...)
  8680. @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+
  8681. @alivelink, @deadlink - example links
  8682. @baseurl is always required, @alivematch and @deadmatch are required except for obsolete. @unavamatch is ignored for obsolete. @*link is optional.
  8683. Lines starting with // and empty lines are ignored.
  8684. Invalid parameters generate errors and those lines are skipped.
  8685. Other lines generate warnings, but are otherwise ignored (also those before the first @customrule line or inside a rule with invalid name).
  8686. Example:
  8687. @customrule filehost
  8688. @baseurl filehost.com/download/
  8689. @baseurl filehost2. com net /d?=
  8690. @alivematch id="download">
  8691. @deadmatch File not found
  8692. @deadmatch File deleted
  8693. */
  8694. function parseCustomRules(rulesStr)
  8695. {
  8696. var linenum, customRules = {'info': [], 'rules': [], 'note': 0, 'warning': 0, 'error': 0};
  8697. function addInfo(type, msg, ln){
  8698. customRules.info.push({'linenum':(ln===undefined ? linenum+1 : ln+1), 'type':type, 'msg':msg});
  8699. customRules[type]++;
  8700. }
  8701. var lines = rulesStr.match(/^(.*)$/gm); //split into array of lines
  8702. if (!lines) return null;
  8703. lines.push('@#customrule _'); //to save the last rule
  8704. var m, linecount = lines.length;
  8705. var keyword, param, constr, rule, err;
  8706. var TLD = '[a-z]{2,7}(?:\\.[a-z]{2,7})?';
  8707. var TLDorTLDlist = '(?:'+TLD+'| '+TLD+'(?: '+TLD+'){0,9} )'; //TLD or space-separated list of TLDs
  8708. var baseurlRE = new RegExp('^([a-z0-9-]{1,30}(?:\\.[a-z0-9-]{1,30}){0,2}\\.)'+TLDorTLDlist+'(/[^\'"\s\$]{0,50})$', 'i');
  8709. var constraints = {
  8710. 'baseurl': {
  8711. 'single': {'min': 1, 'max': 10, 'paramRE': baseurlRE},
  8712. 'headers': {'min': 1, 'max': 10, 'paramRE': baseurlRE},
  8713. 'obsolete': {'min': 1, 'max': 10, 'paramRE': baseurlRE}},
  8714. 'alivematch': {
  8715. 'single': {'min': 1, 'max': 10, 'paramRE': null},
  8716. 'headers': {'min': 1, 'max': 10, 'paramRE': null}},
  8717. 'deadmatch': {
  8718. 'single': {'min': 1, 'max': 10, 'paramRE': null},
  8719. 'headers': {'min': 1, 'max': 10, 'paramRE': null}},
  8720. 'unavamatch': {
  8721. 'single': {'min': 0, 'max': 10, 'paramRE': null}},
  8722. 'alivelink': {
  8723. 'single': {'min': 0, 'max': 10, 'paramRE': null},
  8724. 'headers': {'min': 0, 'max': 10, 'paramRE': null}},
  8725. 'deadlink': {
  8726. 'single': {'min': 0, 'max': 10, 'paramRE': null},
  8727. 'headers': {'min': 0, 'max': 10, 'paramRE': null},
  8728. 'obsolete': {'min': 0, 'max': 10, 'paramRE': null}}
  8729. };
  8730. for (linenum = 0 ; linenum < linecount ; linenum++)
  8731. {
  8732. //capturing groups: 1 23 4 5 6
  8733. m = lines[linenum].match(/^\s*(?:(\/\/.*)|@((#?)(customrule)(?:_(headers|obsolete))?|baseurl|alivematch|deadmatch|unavamatch|alivelink|deadlink)\s+(.+))?$/i);
  8734. if (m)
  8735. {
  8736. if (m[1] || !m[2])
  8737. continue; // ignore empty lines and lines starting with //
  8738. keyword = (m[4] || m[2]).toLowerCase();
  8739. param = m[6];
  8740. if (keyword == 'customrule')
  8741. {
  8742. //save the current rule if all required fields are provided
  8743. if (rule)
  8744. {
  8745. err = false;
  8746. $.each(constraints, function(kw, constraint){
  8747. var l, constr = constraint[rule.type];
  8748. if (constr)
  8749. {
  8750. l = rule[kw] ? rule[kw].length : 0;
  8751. if (l < constr.min || l > constr.max)
  8752. {
  8753. 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);
  8754. err = true;
  8755. }
  8756. }
  8757. });
  8758. if (!err)
  8759. customRules.rules.push(makeCustomRule(rule));
  8760. }
  8761. //start a new rule
  8762. if (/^[\w\.-]{1,30}$/.test(param)) //valid name?
  8763. {
  8764. rule = {
  8765. 'enabled': !m[3],
  8766. 'type': m[5] ? m[5].toLowerCase() : 'single',
  8767. 'name': param
  8768. };
  8769. }
  8770. else
  8771. {
  8772. addInfo('error', 'Invalid rule name. Cannot start a new rule definition.');
  8773. rule = null;
  8774. }
  8775. }
  8776. else //good line format, but keyword other than customrule
  8777. {
  8778. if (!rule)
  8779. {
  8780. addInfo('warning', 'Command outside @CUSTOMRULE definiton. Line skipped.');
  8781. continue;
  8782. }
  8783. if (constraints[keyword])
  8784. {
  8785. constr = constraints[keyword][rule.type];
  8786. if (constr)
  8787. {
  8788. if (constr.paramRE && !constr.paramRE.test(param))
  8789. {
  8790. addInfo('warning', 'Invalid @' + keyword.toUpperCase() + ' parameter. Line Skipped.');
  8791. continue;
  8792. }
  8793. }
  8794. else
  8795. {
  8796. addInfo('note', '@' + keyword.toUpperCase() + ' not applicable for type ' + rule.type.toUpperCase() + '. Line skipped.');
  8797. continue;
  8798. }
  8799. }
  8800. //line OK, save
  8801. rule[keyword] ? rule[keyword].push(param) : rule[keyword] = [param];
  8802. }
  8803. } //if (m)
  8804. else
  8805. addInfo('warning', 'Unknown line format. Line skipped.');
  8806. } //for loop
  8807. return customRules;
  8808. } //function parseCustomRules

QingJ © 2025

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