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

detects live, dead and premium links.

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

  1. //fixed filefactory.com false premium
  2. // ==UserScript==
  3. // @name W.A.R. Links Checker Customized Premium Link Version
  4. // @description detects live, dead and premium links.
  5. // @details this script automatically checks links from 650+ filehosts. For Firefox, Chrome, Opera, Safari.
  6. // @namespace premium version
  7. // @version 1.1.7.8
  8. // @icon http://sharenxs.com/photos/2014/02/14/52fd759db90ac/cooltext1428903746.png
  9. // @license GPL version 3 or any later version (http://www.gnu.org/copyleft/gpl.html)
  10. // @author mental
  11. // @include http://*
  12. // @include https://*
  13. // @include file:///*
  14. // @grant GM_setValue
  15. // @grant GM_getValue
  16. // @grant GM_xmlhttpRequest
  17. // @grant GM_log
  18. // @grant GM_addStyle
  19. // @grant GM_registerMenuCommand
  20. // @grant GM_getResourceText
  21. // @grant GM_info
  22. // @require https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js
  23. // @require https://ajax.googleapis.com/ajax/libs/jqueryui/1.9.1/jquery-ui.min.js
  24. // @resource jQueryUICSS https://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/smoothness/jquery-ui.css
  25. // @homepage http://www.warlc.5gbfree.com
  26. // @namespace http://www.warlc.5gbfree.com
  27. // @noframes
  28. // ==/UserScript==
  29.  
  30. //separate alternative domains with "|" char (first name is considered being main)
  31. var allHostNames = [
  32. "1fichier.com|dl4free.com",
  33. "filenuke.com",
  34. "vidto.me",
  35. "vidspot.net",
  36. "sharesix.com|sharesix.net",
  37. "movpod.in",
  38. "thefile.me",
  39. "vidzi.tv",
  40. "videoweed.es",
  41. "vodlocker.com",
  42. "nowvideo.sx",
  43. "cloudtime.to",
  44. "thevideo.me",
  45. "vidbull.com",
  46. "allmyvideos.net",
  47. "novamov.com",
  48. "filehoot.com",
  49. "stagevu.com",
  50. "gorillavid.in",
  51. "streamin.to",
  52. "4upld.com",
  53. "cloudshares.net",
  54. "swoopshare.com",
  55. "newfileland.com",
  56. "2shared.com",
  57. "fileupload.pw",
  58. "zxcfiles.com",
  59. "up07.net",
  60. "4shared.com",
  61. "adrive.com",
  62. "aisfile.com",
  63. "hexupload.com",
  64. "bezvadata.cz",
  65. "burnupload.com|burnupload.ihiphop.com",
  66. "xkeepfile.com|Gamesena.com",
  67. // "firedrive.com",
  68. "usersfiles.com",
  69. "pan.baidu.com",
  70. "radicalshare.com",
  71. "cramit.in|cramitin.net",
  72. "datei.to",
  73. "daten-hoster.de|filehosting.org|xtraupload.de",
  74. "demo.ovh.eu",
  75. "depositfiles.com|depositfiles.lt|depositfiles.org|dfiles.ru|dfiles.eu",
  76. "divshare.com",
  77. "easy-share.com|crocko.com",
  78. "easybytez.com",
  79. "edisk.cz",
  80. "euroshare.eu",
  81. "file-upload.net",
  82. "yadi.sk",
  83. "ryushare.com",
  84. "wizupload.com",
  85. "fastshare.cz",
  86. "filefactory.com",
  87. "share.vnn.vn",
  88. "yunpan.cn",
  89. "gulfup.com",
  90. "tropicshare.com",
  91. "cloudzilla.to",
  92. "inclouddrive.com",
  93. "fileflyer.com",
  94. "filerio.com|filekeen.com",
  95. "up.4share.vn",
  96. "upfile.vn",
  97. "datafilehost.com",
  98. "fileband.com",
  99. "worldbytez.com",
  100. "files.mail.ru",
  101. "filepost.com|fp.io",
  102. "filesflash.com",
  103. "box.com",
  104. "box.net",
  105. "goldbytez.com",
  106. "sdilej.cz",
  107. "ex-load.com",
  108. "filesmonster.com",
  109. "filestore.to",
  110. // "freakshare.net",
  111. "hulkload.com",
  112. "filedropper.com",
  113. "free-uploading.com",
  114. "gamefront.com|filefront.com",
  115. "gettyfile.ru",
  116. "gigapeta.com",
  117. "gigasize.com",
  118. "hellshare.com",
  119. "hellspy.com",
  120. "hitfile.net",
  121. "hostuje.net",
  122. "freefilehosting.net",
  123. "free.fr",
  124. "hulkshare.com",
  125. "hyperfileshare.com",
  126. "filecloud.io|ifile.it",
  127. "ifolder.ru",
  128. "jumbofiles.com",
  129. "uploadrocket.net",
  130. "lafiles.com",
  131. "leteckaposta.cz|sharegadget.com",
  132. "letitbit.net",
  133. "load.to",
  134. "mediafire.com",
  135. "megafileupload.com",
  136. "megashares.com",
  137. "movshare.net",
  138. "muchshare.net",
  139. "myupload.dk",
  140. "narod.ru|narod.yandex.ru",
  141. "netload.in",
  142. "fboom.me",
  143. "fileboom.me",
  144. "openfile.ru",
  145. "partage-facile.com",
  146. "plunder.com",
  147. // "putlocker.com",
  148. "sharerapid.cz",
  149. "exclusiveloader.com",
  150. "acefile.net",
  151. "queenshare.com",
  152. "quickshare.cz",
  153. "rapidgator.net",
  154. "keep2share.com",
  155. "oboom.com",
  156. "filepi.com",
  157. "neodrive.co",
  158. "rarefile.net",
  159. "rayfile.com",
  160. "rghost.net",
  161. "sendmyway.com",
  162. "clicknupload.com",
  163. "sharemods.com",
  164. "hostr.co",
  165. "sendspace.com",
  166. "sharecash.org",
  167. "share-links.biz",
  168. "share-online.biz|egoshare.com",
  169. "megarapid.cz",
  170. "shareflare.net",
  171. "solidfiles.com",
  172. "led.wf",
  173. "lan.wf",
  174. "adlink.wf",
  175. "click.tf",
  176. "kyc.pm",
  177. "ssh.tf",
  178. "ssh.yt",
  179. "yep.pm",
  180. "stahovanizasms.cz",
  181. "tufiles.ru",
  182. "turbobit.net",
  183. "filecloud.cc",
  184. "tikfile.com",
  185. "cloudsix.me",
  186. "turboupload.com",
  187. "uloz.to|ulozto.cz|bagruj.cz|zachowajto.pl",
  188. "ulozisko.sk",
  189. "uloziste.com",
  190. "unibytes.com",
  191. "upload-il.net|przeslij.net",
  192. "uploaded.to|ul.to",
  193. "uploading.com",
  194. "chayfile.com",
  195. "rockfile.eu",
  196. "24uploading.com",
  197. "uploadspace.pl",
  198. "upnito.sk",
  199. "uptobox.com",
  200. "usaupload.net",
  201. "veehd.com",
  202. "videobb.com",
  203. "vip-file.com",
  204. "webshare.cz",
  205. "xdisk.cz",
  206. "yunfile.com|filemarkets.com",
  207. "ziddu.com",
  208. "krotix.net",
  209. "zippyshare.com",
  210. "rodfile.com",
  211. "migahost.com",
  212. "wikiupload.com",
  213. "uploadstube.de",
  214. "faststore.org",
  215. "flyfiles.net",
  216. "nowdownload.eu",
  217. "prefiles.com",
  218. "axifile.com",
  219. "rapidsonic.com|fileparadox.com",
  220. "hackerbox.org",
  221. "amonshare.com",
  222. "data.hu",
  223. "brupload.net",
  224. "userscloud.com",
  225. "netkups.com",
  226. "edoc.com",
  227. "xfileload.com",
  228. "jumbofile.net",
  229. "kumpulbagi.com",
  230. "uppit.com|up.ht",
  231. "downloadani.me",
  232. "filesabc.com",
  233. "sharebeast.com",
  234. "180upload.com",
  235. "verzend.be",
  236. "movreel.com",
  237. "4up.me",
  238. "extmatrix.com",
  239. "sendfiles.nl",
  240. "yourfilestore.com",
  241. "filebig.net",
  242. "nekaka.com",
  243. "file4safe.com",
  244. "tusfiles.net",
  245. "filemac.com",
  246. "idup.in",
  247. "fileswap.com",
  248. "ozofiles.com",
  249. "loudupload.net",
  250. "nosupload.com",
  251. "gboxes.com",
  252. "myvdrive.com|fileserving.com",
  253. "filesin.com",
  254. "novafile.com",
  255. "longfiles.com",
  256. "uploadhero.com",
  257. "uploadbaz.com",
  258. "bitupload.com",
  259. "indowebster.com",
  260. "superload.cz",
  261. "mafiastorage.com",
  262. "4upfiles.com",
  263. "filesmelt.com",
  264. "hellupload.com",
  265. "uploadingit.com",
  266. "stiahni.si",
  267. "sendspace.pl",
  268. "fastshare.org",
  269. "filejoker.net",
  270. "filestore.com.ua",
  271. "secureupload.eu",
  272. "rapidfileshare.net",
  273. "stiahnito.sk",
  274. "rusfolder.com",
  275. "fileover.net",
  276. "catshare.net",
  277. "anonfiles.com",
  278. "mixturecloud.com",
  279. "fileparadox.in",
  280. "filedais.com",
  281. "imdb.com",
  282. "nitroflare.com",
  283. "akafile.com",
  284. "creafile.net",
  285. "hugefiles.net",
  286. "vidxden.com",
  287. "up.top4top.net",
  288. "upload.ee",
  289. "shareplace.org",
  290. "uploadc.com",
  291. "remixshare.com",
  292. "exoshare.com",
  293. "borncash.org",
  294. "junocloud.me",
  295. "keep2share.cc",
  296. "k2s.cc",
  297. "expressleech.com",
  298. "2downloadz.com",
  299. "mightyupload.com",
  300. "anysend.com",
  301. "datafile.com",
  302. "upstore.net",
  303. "upsto.re",
  304. "speedy.sh",
  305. "sanshare.com",
  306. "kingfiles.net",
  307. "uploadhero.co",
  308. "ge.tt",
  309. "filesflash.net",
  310. "salefiles.com",
  311. "keep2s.cc",
  312. "megairon.net",
  313. "datoid.cz",
  314. "cloudstor.es",
  315. "streamfile.com",
  316. "eyesfile.ca",
  317. "filemoney.com",
  318. "uploadboy.com",
  319. "speedshare.eu",
  320. "google.com",
  321. "unlimitzone.com",
  322. "rioupload.com",
  323. "rg.to",
  324. "jumbofiles.org",
  325. "fshare.vn",
  326. "spaceforfiles.com",
  327. "up.media1fire.com",
  328. "depfile.com",
  329. "go4up.com",
  330. "dropbox.com",
  331. "redbunker.net",
  332. "divxpress.com",
  333. "mega.nz|mega.co.nz",
  334. "anafile.com",
  335. "uploadable.ch",
  336. "arabloads.com",
  337. "sharerepo.com",
  338. "sfshare.se",
  339. "files.fm",
  340. "koofile.com",
  341. "vidplay.net",
  342. "storagon.com",
  343. "doraupload.com",
  344. "openload.io",
  345. "geupload.com|lenfile.com",
  346. "uploads.xxx",
  347. ];
  348.  
  349. try
  350. {
  351. //iframes excluded
  352. if (window.top != window.self)
  353. {
  354. return;
  355. }
  356. //allHostNames sites excluded
  357. if (window.location.href.match("https?:\/\/(www\.)?[\w\.-]*(?:" +
  358. allHostNames.join("|").replace(/\./g, "\\.").replace(/-/g, "\\-") +
  359. ")"))
  360. {
  361. return;
  362. }
  363. }
  364. catch (e)
  365. {
  366. return;
  367. }
  368.  
  369. //separate alternative domains with "|" char (first name is considered being main)
  370. var allContainerNames = [
  371. "adf.ly",
  372. "linkcrypt.ws",
  373. "linksafe.me",
  374. "linksave.in",
  375. "linkto.net",
  376. "madlink.sk",
  377. "multiload.cz",
  378. "mirrorcreator.com",
  379. "ncrypt.in",
  380. "redi.re",
  381. "relink.us",
  382. "safelinking.net",
  383. "theloo.katt.it",
  384. "bit.ly",
  385.  
  386. ];
  387.  
  388. //separate alternative domains with "|" char (first name is considered being main)
  389. var allObsoleteNames = [
  390. "uloz.cz",
  391. "freakshare.com",
  392. "freakshare.net",
  393. "daj.to",
  394. "bl.st",
  395. "2drive.net",
  396. "uncapped-downloads.com",
  397. "sockshare.com",
  398. "ddlstorage.com",
  399. "dataport.cz",
  400. "dizzcloud.com",
  401. "stahovadlo.cz",
  402. "shared.com",
  403. "storage.to",
  404. "putlocker.com",
  405. "lumfile.com",
  406. "lumfile.se",
  407. "lumfile.eu",
  408. "firedrive.com",
  409. "fileshare.in.ua",
  410. "filecore.co.nz",
  411. "iskladka.cz",
  412. "file-rack.com",
  413. "fast-load.net",
  414. "subory.sk",
  415. "bigandfree.com",
  416. "fileop.com",
  417. "mujsoubor.cz",
  418. "sendfile.to",
  419. "superfastfile.com",
  420. "quickyshare.com",
  421. "duckload.com",
  422. "uploadstore.net",
  423. "meinupload.com",
  424. "dualshare.com",
  425. "2xupload.to|2xupload.de",
  426. "oxedion.com",
  427. "uploadline.com",
  428. "dll.bz",
  429. "movieshare.in",
  430. "milledrive.com",
  431. "quickupload.net",
  432. "safelink.in",
  433. "metadivx.com",
  434. "divxlink.com",
  435. "uploadrack.com",
  436. "teradepot.com",
  437. "dataup.to",
  438. "upit.to",
  439. "driveway.com",
  440. "eatlime.com",
  441. "a2zuploads.com",
  442. "friendlyfiles.net",
  443. "flyfile.us",
  444. "speedyshare.com",
  445. "uploadspace.eu",
  446. "keepfile.com",
  447. "piggyshare.com",
  448. "uplly.com",
  449. "filecrown.com",
  450. "6giga.com",
  451. "uploadjockey.com",
  452. "bluehost.to",
  453. "filegu.ru",
  454. "filebase.to",
  455. "up-file.com",
  456. "xvideos.com",
  457. "ufox.com",
  458. "filebling.com",
  459. "loaded.it",
  460. "uploadcell.com",
  461. "uploadshare.cz",
  462. "mangoshare.com",
  463. "filestab.com",
  464. "crazyupload.com",
  465. "gaiafile.com",
  466. "sharejunky.com",
  467. "fileho.com",
  468. "bigandfree.com",
  469. "bigfile.in",
  470. "bigshare.eu",
  471. "dahosting.org",
  472. "digisofts.net",
  473. "file4save.com",
  474. "filechip.com",
  475. "filescloud.com",
  476. "saveqube.com",
  477. "turboshare.de",
  478. "z-upload.com",
  479. "youshare.com",
  480. "jiffyupload.com",
  481. "gigeshare.com",
  482. "datenklo.net",
  483. "upload.dj",
  484. "loadfiles.in",
  485. "upit.to",
  486. "dsfileshare.com",
  487. "sharesimple.net",
  488. "4files.net",
  489. "wooupload.com",
  490. "odsiebie.com",
  491. "filenavi.com",
  492. "3oof.com",
  493. "meshwaar.com",
  494. "maxupload.com",
  495. "share.cx",
  496. "atserver.eu",
  497. "hotfiles.ws",
  498. "esnips.com",
  499. "tuxfile.com",
  500. "file2upload.net",
  501. "filebling.com",
  502. "turboshare.com",
  503. "rarhost.com",
  504. "isharehd.com",
  505. "i741.com",
  506. "dataup.de",
  507. "fofly.com",
  508. "shareonall.com",
  509. "sexuploader.com",
  510. "megaupload.com|megavideo.com|megaporn.com|megarotic.com",
  511. "uploadhyper.com",
  512. "filespawn.com",
  513. "caizzii.com",
  514. "volnyweb.cz",
  515. "usershare.net",
  516. "filescash.net",
  517. "metahyper.com",
  518. "combozip.com",
  519. "x7.to",
  520. "uploadbox.com",
  521. "enterupload.com|flyupload.com",
  522. "filepoint.de",
  523. "mystream.to",
  524. "x-fs.com",
  525. "shareator.com",
  526. "srapid.eu",
  527. "sosame.cz",
  528. "filesdump.com",
  529. "2-klicks.de",
  530. "uploking.com",
  531. "silofiles.com",
  532. "upfile.in",
  533. "filehook.com",
  534. "uploadking.com",
  535. "uploadhere.com",
  536. "kewlshare.com",
  537. "rapidable.com",
  538. "uploadwaste.com",
  539. "filemup.com",
  540. "filesonic.com|sharingmatrix.com",
  541. "fileserve.com",
  542. "wupload.com",
  543. "skipfile.com",
  544. "smartuploader.com",
  545. "dualshare.com",
  546. "storeandserve.com",
  547. "mountfile.com",
  548. "transitfiles.com",
  549. "uploadstation.com",
  550. "filejungle.com",
  551. "shareshared.com",
  552. "quickyshare.com",
  553. "save.am",
  554. "petandrive.com",
  555. "file2box.com",
  556. "flyshare.cz",
  557. "yabadaba.ru",
  558. "cloudcache.cc",
  559. "yourfilehost.com",
  560. "jakfile.com",
  561. "kickload.com",
  562. "pyramidfiles.com",
  563. "refile.net",
  564. "zshare.net",
  565. "ddlani.me|ddlanime.com",
  566. "ftp2share.com",
  567. "fooget.com",
  568. "rapidhide.com",
  569. "gotupload.com",
  570. "mooload.com",
  571. "zupload.com",
  572. "mytempdir.com",
  573. "onionshare.com",
  574. "stahnu.to",
  575. "oron.com",
  576. "badongo.com",
  577. "filereactor.com",
  578. "filegaze.com",
  579. "4bytez.com",
  580. "1hostclick.com",
  581. "anonstream.com",
  582. "batshare.com",
  583. "bitroad.net",
  584. "brontofile.com",
  585. "cloudnxt.net",
  586. "cloudnator.com|shragle.com",
  587. "filesfrog.net",
  588. "coolshare.cz",
  589. "dotavi.com",
  590. "ezyfile.net",
  591. "file-bit.net",
  592. "filecosy.com",
  593. "fileduct.com|fileduct.net",
  594. "filefat.com",
  595. "filelaser.com",
  596. "filemashine.com",
  597. "fileserver.cc",
  598. "filetechnology.com",
  599. "fireuploads.net",
  600. "gigfiles.net",
  601. "holderfile.com",
  602. "ihostia.com",
  603. "k2files.com",
  604. "mojofile.com",
  605. "ovfile.com",
  606. "qshare.com",
  607. "shafiles.me",
  608. "sharefilehost.com",
  609. "shareupload.com",
  610. "stahuj.to",
  611. "ugotfile.com",
  612. "uploadboost.com",
  613. "fileom.com",
  614. "vidhog.com",
  615. "xfileshare.eu",
  616. "bzlink.us",
  617. "bulletupload.com",
  618. // "wizzupload.com",
  619. "bloggerarticles.com",
  620. "mojedata.sk",
  621. "sharpfile.com",
  622. "upgrand.com",
  623. "nasdilej.cz",
  624. "mediatack.cz",
  625. "share-it.to",
  626. "primeupload.com",
  627. "filebeer.info",
  628. "baberepublic",
  629. "xtu.me",
  630. "sharebase.de",
  631. "luckyshare.net",
  632. "filerobo.com",
  633. "filevelocity.com",
  634. "filezpro.com",
  635. "file4sharing.com",
  636. "cing.be",
  637. "ufile.eu",
  638. "pigsonic.com",
  639. "fileupped.com",
  640. "sharerun.com",
  641. "filesaur.com",
  642. "rapidslnare.com",
  643. "bestsharing.com",
  644. "savefiles.net",
  645. "file2share.biz",
  646. "filecache.de",
  647. "monsteruploads.eu",
  648. "b9bb.com",
  649. "aiotool.net",
  650. "jamber.info",
  651. "megaftp.com",
  652. "desiupload.net",
  653. "file27.com",
  654. "yastorage.com",
  655. "filehost.ws",
  656. "copyload.com",
  657. "venusfile.com",
  658. "aieshare.com",
  659. "terafile.co",
  660. "terafile.com",
  661. "fileza.net",
  662. "filerose.com",
  663. "squillion.com",
  664. "fileprohost.com",
  665. "bitbonus.com",
  666. "warserver.cz",
  667. "uload.to",
  668. "sharedbit.net",
  669. "megaload.it",
  670. "filewinds.com",
  671. "uploadcore.com",
  672. "syfiles.com",
  673. "eyesfile.com",
  674. "hotfile.com",
  675. "superupl.com",
  676. "oteupload.com",
  677. "henchfile.com",
  678. "filegag.com",
  679. "HenchFile.com",
  680. "filedefend.com",
  681. "share-rapid.com|rapids.cz|share-credit.cz|share-central.cz|share-ms.cz|share-net.cz|srapid.cz|share-rapid.cz",
  682. "megabitshare.com",
  683. "cloudzer.com",
  684. "asfile.com",
  685. "cloudzer.net",
  686. "clz.to",
  687. "extabit.com",
  688. "247upload.com",
  689. "2download.de",
  690. "4fastfile.com",
  691. "asixfiles.com",
  692. "berofile.com",
  693. "bigupload.com",
  694. "cepzo.com",
  695. "clouds.to",
  696. "cobrashare.sk",
  697. "coraldrive.net",
  698. "cyberlocker.ch",
  699. "czshare.com",
  700. "darkport.org",
  701. "dark-uploads.com",
  702. "davvas.com",
  703. "enigmashare.com",
  704. "erofly.cz",
  705. "fastsonic.net",
  706. "filebox.com",
  707. "filecity.net",
  708. "filedap.com",
  709. "filedino.com",
  710. "filedownloads.org",
  711. "filefolks.com",
  712. "fileking.co",
  713. "filemates.com",
  714. "files.to",
  715. "files2k.eu",
  716. "filesector.cc",
  717. "bitshare.com",
  718. "filesega.com",
  719. "filesend.net",
  720. "filestay.com",
  721. "filestrum.com",
  722. "fileuplo.de",
  723. "fileupup.com",
  724. "forunesia.com",
  725. "freeuploads.fr",
  726. "uploa.dk",
  727. "getthebit.com",
  728. "getzilla.net",
  729. "goldfile.eu",
  730. "good.com",
  731. "grupload.com",
  732. "hellfile.com",
  733. "hipfile.com",
  734. "hitfile.com",
  735. "hulkfile.eu|duckfile.net",
  736. "i-filez.com",
  737. "ifile.ws",
  738. "kupload.org",
  739. "packupload.com",
  740. "lemuploads.com",
  741. "limelinx.com",
  742. "maxshare.pl",
  743. "megarelease.org",
  744. "megashare.com",
  745. "minus.com",
  746. "mlfat4arab.com",
  747. "multishare.cz",
  748. "nirafile.com",
  749. "ok2upload.com",
  750. "peejeshare.com",
  751. "premiuns.org",
  752. "przeklej.net",
  753. "qkup.net",
  754. "rapidupload.sk",
  755. "rockdizfile.com",
  756. "rocketfile.net",
  757. "share-now.net",
  758. "share76.com",
  759. "sharebees.com",
  760. "sharefiles.co",
  761. "slingfile.com",
  762. "sms4file.com",
  763. "space4file.com",
  764. "tigershare.net",
  765. "toucansharing.com",
  766. "ubuntuone.com",
  767. "unextfiles.com",
  768. "upaj.pl",
  769. "upfile.biz",
  770. "uploadbin.net",
  771. "uploadic.com",
  772. "uploadinc.com",
  773. "uploading4u.eu",
  774. "uploadjet.net",
  775. "uploadorb.com",
  776. "upthe.net",
  777. "uptorch.com",
  778. "vidbox.yt",
  779. "videozer.com",
  780. "vreer.com",
  781. "wallobit.com",
  782. "zooupload.com",
  783. "privatefiles.com",
  784. "xerver.co",
  785. "BillionUploads.com",
  786. "rapidshare.com",
  787. "rapidshare.ru",
  788. "4savefile.com",
  789. "bayfiles.com",
  790. "bayfiles.net",
  791. "dodane.pl",
  792. "dotsemper.com",
  793. "egofiles.com",
  794. "epicshare.net",
  795. "fiberupload.net",
  796. "filemonkey.in",
  797. "filemonster.net",
  798. "filepom.com",
  799. "filesbb.com",
  800. "fileshareup.com",
  801. "filevice.com",
  802. "gigaup.fr",
  803. "inafile.com",
  804. "isavelink.com",
  805. "loombo.com",
  806. "megafiles.se",
  807. "migupload.com",
  808. "mydisc.net",
  809. "nitrobits.com",
  810. "potload.com",
  811. "redload.net",
  812. "shareprofi.com",
  813. "sharesuper.info",
  814. "sinhro.net",
  815. "speedfile.cz",
  816. "speedshare.org",
  817. "storage.novoro.net",
  818. "swankshare.com",
  819. "swatupload.com",
  820. "upafile.com",
  821. "uploadmachine.com",
  822. "uploadsat.com",
  823. "upshared.com",
  824. "usefile.com",
  825. "yourfiles.to",
  826. "zomgupload.com",
  827. "ultramegabit.com",
  828. "uploadto.us",
  829.  
  830. ];
  831. ///////////////////////////////////////////////////////////////////////////////////////
  832. var firstRun = GM_getValue("First_run", true);
  833.  
  834. var chromeBrowser = /chrom(e|ium)/.test(navigator.userAgent.toLowerCase());
  835. //////////////////////////////////////////////////////////////////////////////////////
  836. try
  837. {
  838. var thisVersion = GM_info.script.version; //not supported in Scriptish and others
  839. var last_known_version = GM_getValue("last_known_version", "");
  840. if (!last_known_version)
  841. {
  842. last_known_version = thisVersion;
  843. GM_setValue("last_known_version", last_known_version);
  844. }
  845. //var newVersion = !(thisVersion == last_known_version);
  846. var newVersion = !(a.replace(/^(\d+\.\d+\.\d+).*/,'$1') == b.replace(/^(\d+\.\d+\.\d+).*/,'$1')); //true only if one of the first three numbers differs
  847. GM_setValue("last_known_version", thisVersion);
  848. }
  849. catch (err)
  850. {
  851. var newVersion = false;
  852. }
  853.  
  854. var now = (new Date()).getTime();
  855. var last_custom_rules_nag = GM_getValue('last_custom_rules_nag', 0);
  856. if (!last_custom_rules_nag)
  857. {
  858. last_custom_rules_nag = now;
  859. GM_setValue('last_custom_rules_nag', ''+now);
  860. }
  861.  
  862.  
  863. allHostNames.sort();
  864. allContainerNames.sort();
  865. allObsoleteNames.sort();
  866.  
  867. var RAND_STRING = "8QyvpOSsRG3QWq";
  868. var DEBUG_MODE = false;
  869.  
  870. var TOOLTIP_MAXWIDTH = 600; //in pixels
  871. var TOOLTIP_THUMBWIDTH = 200;
  872. var containers_processed = false;
  873.  
  874. //settings for keyboard functions start
  875. var CHECK_ALL_LINKS_KEY = "A";
  876. var CONFIGURATION_KEY = "C";
  877. var copy_to_dead_key = "D";
  878. var toggle_autocheck_key = "W";
  879. var toggle_Enable_Anonymizer_key = "Z";
  880. var first_key_keycode = '17'; // 18=ALT 16=Shift 17=Ctrl 32=SPACE_BAR 9=TAB
  881. var first_key_keycodename = 'CTRL';
  882. var second_key_keycode = '18';
  883. var second_key_keycodename = 'ALT';
  884. var CHECK_ALL_LINKS_KEYCODE = CHECK_ALL_LINKS_KEY.charCodeAt(0);
  885. var CONFIGURATION_KEYCODE = CONFIGURATION_KEY.charCodeAt(0);
  886. var copy_to_dead_keycode = copy_to_dead_key.charCodeAt(0);
  887. var toggle_autocheck_keycode = toggle_autocheck_key.charCodeAt(0);
  888. var toggle_Enable_Anonymizer_keycode = toggle_Enable_Anonymizer_key.charCodeAt(0);
  889. //settings for keyboard functions end
  890.  
  891. //global settings start
  892. var Show_black_background_in_DL_links, Show_line_through_in_dead_links, Color_DL_links;
  893. var Live_links_color, Dead_links_color, Temp_unavailable_links_color, Premium_links_color, Ref_anonymize_service;
  894. var Do_not_linkify_DL_links, Keyboard_functions, Autocheck, Enable_Anonymizer;
  895. var Show_progress_stats, Display_tooltip_info, Icon_set;
  896. var Progress_box_pos_bottom, Progress_box_pos_right, Progress_box_opacity, Progress_box_background_color, Progress_box_item_color;
  897. var Progress_box_refresh_rate;
  898. var Obsolete_file_hosts;
  899. var Custom_rules, Custom_rules_text;
  900.  
  901. var messageBox = document.createElement('b'); // top-left message box
  902.  
  903. var cLinksTotal = 0;
  904. var cLinksDead = 0;
  905. var cLinksAlive = 0;
  906. var cLinksUnava = 0;
  907. var cLinksprem = 0;
  908. var cLinksProcessed = 0;
  909.  
  910. var intervalId; //for updateProgress()
  911.  
  912. //icon resources
  913. 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/HCAAARKCBKrBBG/TBGCzABhzBBdzBC/xgNoRCJMTCQh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ZA5EAiShPIetLXxhASSIY3An1Gr4xkabq70iar9OkOeoWCSqVMAM8hzMiObnIUnQ0RFyR0DkgNylzhh7cB+bmsLrdQ7n5gj1OlG5TPxoHro7kUsC4mdQUB5u0NdziW/r5q2M/PkLfG2NsLwMkRHevyVkWQib26t+FJYMIIOUvt5XdmXkunXEke/sQchRCNDdRfAQ8vXND97af1qCxqkRLUj9XKFq/cUUMMmRQHKFZquh7OBhCRr/aATQ/I97foxKZ9z7A9QA5voyr3dtAAAAAElFTkSuQmCC';
  920. 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=';
  921. var RSLC_ICON_PINK = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAANCAYAAABy6+R8A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PO32oPb++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=';
  922.  
  923. var NEW_ICON_GREEN = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACGklEQVR42mNkIBcwMWQwsDMrMZK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HjAETRKNjuFyzTE9PAOO//Xm27lvN4b1c8htkAXC2jrKHN5gVSRcRW0SCIpIj/f2ZAkhTkykiOYu+SLa8e6qkeRNXALh5nEc/phARnaSJSSUnO5G+B8tnIkr6rjMTSqfMZQXZ9vE1xGKJpPe4DDjXAYkEjAwmzwwDLIv0NZlE1MYAjsQoAOL8C5rY2AxPlIjwP/wcACKn3tWfrwJ4AAAAAElFTkSuQmCC';
  926. var NEW_ICON_PINK = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABUklEQVQ4jY3TsUuWURQG8F8WEvFNDREfIg5RURAOIeL0DhJBS0tDY9BQQ0Oj29kiIvoDhBpFQRTUD1GKi0sRtEs0SEQ0RBQIRcVXw3eF6+vrWwcunPvc53nuPffcS0uEmA0x38Y5cohwGjOYxBBe4VGI3j8NQlzHYhaW0cfNEAslWCfBw4yvYhkv8hjCgxD7yMdquw/jbJ4+xq2cz+AKdrJRv9EAv/EDx3Ft75QhtrHdcFpHy0mS/lSqcVzAFM7he6XaTNLXJoOmS+ziOc4XcB893A3xodUgm5zAHdzHSLH0DhdD/GwsoSjlV5Je5nK+YQUTOInXSXq7x6134RQuo4unGf6Me7iKMxgrNfUuXMJazr8U+DA6Of/UZrCF9xjFM3zELpZwOptulIKmLlQGNXdqS7u4EWK9BA9cYpJ2KtWcwaMazcInuB3iTZ3fGv/znf8CBMxX4hrPUbUAAAAASUVORK5CYII=';
  927.  
  928. //global settings end
  929. if (window.opera && !window.console)
  930. {
  931. window.console = {};
  932.  
  933. function fn()
  934. {
  935. opera.postError(arguments);
  936. };
  937. ['log', 'debug', 'info', 'warn', 'error', 'assert', 'dir', 'dirxml', 'group', 'groupEnd', 'time', 'timeEnd', 'count', 'trace', 'profile', 'profileEnd'].forEach(function (name)
  938. {
  939. window.console[name] = fn;
  940. });
  941. }
  942.  
  943. //displays colored text in message box
  944. function sendMessage(text, color)
  945. {
  946. var msgDiv = document.createElement('div');
  947. msgDiv.style.color = color;
  948. msgDiv.innerHTML = text;
  949. messageBox.appendChild(msgDiv);
  950. setTimeout(function(){messageBox.removeChild(msgDiv)}, 3000);
  951. }
  952.  
  953. function linkify(totalourls)
  954. { // code from http://userscripts.org/scripts/review/2254 Linkify ting
  955. var ikkeTilladteTags;
  956. var allLinksRegex = "(?:http:\/\/.+?\\?)?(?:https?:\/\/)?"
  957. + "[0-9A-Za-z]+(?:[\\.-][0-9A-Za-z]+)*\\.[A-Za-z]+/" //instead of totalourls
  958. + "[\\w\\–\\-\\.+$!*\\/()\\[\\]\',~%?:@#&=\\\\\\—;…×Ã\\_\\u0080-\\u03FF’‘" + (Allow_spaces_in_DL_links ? "\\u0020" : "") + "]*";
  959. allLinksRegex = new RegExp(allLinksRegex, "g");
  960. var regexy = "^(?:http:\/\/.+?\\?)?(?:https?:\/\/)?(?:www\\.)?(?:" + totalourls + ")";
  961.  
  962. if (Do_not_linkify_DL_links)
  963. ikkeTilladteTags = ['a', 'head', 'script', 'style', 'title', 'option', 'iframe', 'textarea', 'span']; //tags, hvor det der stAΞ’Β¥r inden i ikke skal vAΞ’Β¦re links
  964. else
  965. ikkeTilladteTags = ['a', 'head', 'script', 'style', 'title', 'option', 'iframe', 'textarea']; //tags, hvor det der stAΞ’Β¥r inden i ikke skal vAΞ’Β¦re links
  966.  
  967. var regex = new RegExp(regexy);
  968. var textNode, muligtLink;
  969.  
  970. var path = "//text()[not(parent::" + ikkeTilladteTags.join(" or parent::") + ") and contains(.,'/')]";
  971. var textNodes = document.evaluate(path, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  972.  
  973. var i = textNodes.snapshotLength;
  974. while (i--)
  975. {
  976. textNode = textNodes.snapshotItem(i);
  977.  
  978. muligtLink = textNode.nodeValue; //all links on page
  979.  
  980. var myArray = null;
  981. var span = null;
  982. var lastLastIndex = 0;
  983. allLinksRegex.lastIndex = 0;
  984. if (/^https?:\/\/~[\w\s\~]*\//.test(muligtLink))
  985. {
  986. if (textNode.parentNode.className == "adead_link") continue;
  987. var censoredLink = muligtLink;
  988. var span = document.createElement('span');
  989. span.className = "adead_link";
  990. $(span).attr('warlc_error', "Cause of error: <b>Censored link.</b>");
  991. $(span).html(censoredLink);
  992. span.addEventListener("mouseover", displayTooltipError, false);
  993. cLinksTotal++; cLinksProcessed++; cLinksDead++;
  994. textNode.parentNode.replaceChild(span, textNode);
  995. continue;
  996. alert(censoredLink);
  997. }
  998. while (myArray = allLinksRegex.exec(muligtLink)) //find all links
  999. {
  1000. if (!regex.test(myArray[0])) //this link is not recognized
  1001. {
  1002.  
  1003. continue;
  1004. }
  1005. if (!span)
  1006. span = document.createElement('span');
  1007.  
  1008. var link = myArray[0];
  1009. span.appendChild(document.createTextNode(muligtLink.substring(lastLastIndex, myArray.index))); //inds?t det der kommer for dette hit
  1010.  
  1011. var $a = $("<a>" + link + "</a>")
  1012. if (!link.match(/https?:\/\//))
  1013. {
  1014. link = 'http://' + link;
  1015. }
  1016.  
  1017. $a.attr("href", link.replace(/\[\/hide:\w+\]/,""))
  1018. .addClass("processing_link")
  1019. .appendTo(span);
  1020. lastLastIndex = allLinksRegex.lastIndex;
  1021. }
  1022. if (span)
  1023. {
  1024. span.appendChild(document.createTextNode(muligtLink.substring(lastLastIndex))); //ins?t det der kommer efter sidste hit
  1025. textNode.parentNode.replaceChild(span, textNode);
  1026. }
  1027. }
  1028. }
  1029.  
  1030. function add_WARLC_style()
  1031. {
  1032. if (!(document.getElementsByTagName('WARLC')[0]))
  1033. {
  1034. var meta_not_to_add_more_style = document.createElement("WARLC");
  1035. meta_not_to_add_more_style.setAttribute('content', 'war_links_checker');
  1036. meta_not_to_add_more_style.setAttribute('name', 'description');
  1037. document.getElementsByTagName('head')[0].appendChild(meta_not_to_add_more_style);
  1038. alive_link_png = "";
  1039. adead_link_png = "";
  1040. unava_link_png = "";
  1041. prem_link_png = "";
  1042. switch(Icon_set)
  1043. {
  1044. //no icons
  1045. case 0: break;
  1046. // cat paws
  1047. case 1: alive_link_png = PAW_ICON_GREEN;
  1048. adead_link_png = PAW_ICON_RED;
  1049. unava_link_png = PAW_ICON_YELLOW;
  1050. prem_link_png = PAW_ICON_PINK;
  1051. break;
  1052. // classic RSLC look
  1053. case 2: alive_link_png = RSLC_ICON_GREEN;
  1054. adead_link_png = RSLC_ICON_RED;
  1055. unava_link_png = RSLC_ICON_YELLOW;
  1056. prem_link_png = RSLC_ICON_PINK;
  1057. break;
  1058. // New Icons
  1059. case 3: alive_link_png = NEW_ICON_GREEN;
  1060. adead_link_png = NEW_ICON_RED;
  1061. unava_link_png = NEW_ICON_YELLOW;
  1062. prem_link_png = NEW_ICON_PINK;
  1063. break;
  1064. // cat paws
  1065. default:alive_link_png = PAW_ICON_GREEN;
  1066. adead_link_png = PAW_ICON_RED;
  1067. unava_link_png = PAW_ICON_YELLOW;
  1068. prem_link_png = PAW_ICON_PINK;
  1069. break;
  1070. }
  1071. processing_link_gif = 'data:image/gif;base64,' + // or temporary anavailable
  1072. 'R0lGODlhCgAKAJEDAMzMzP9mZv8AAP///yH/C05FVFNDQVBFMi4wAwEAAAAh+QQFAAADACwAAAAACgAKAAACF5wncgaAGgJzJ647cWua4sOBFEd62VEAACH5BAUAAAMALAEAAAAIAAMAAAIKnBM2IoMDAFMQFAAh+QQFAAADACwAAAAABgAGAAACDJwHMBGofKIRItJYAAAh+QQFAAADACwAAAEAAwAIAAACChxgOBPBvpYQYxYAIfkEBQAAAwAsAAAEAAYABgAAAgoEhmPJHOGgEGwWACH5BAUAAAMALAEABwAIAAMAAAIKBIYjYhOhRHqpAAAh+QQFAAADACwEAAQABgAGAAACDJwncqi7EQYAA0p6CgAh+QQJAAADACwHAAEAAwAIAAACCpRmoxoxvQAYchQAOw%3D%3D';
  1073.  
  1074. var dead_color_css, live_color_css, unava_color_css, prem_color_css, black_background_css;
  1075.  
  1076. if (Color_DL_links)
  1077. {
  1078. dead_color_css = 'color:' + Dead_links_color + ' !important;';
  1079. live_color_css = 'color:' + Live_links_color + ' !important;';
  1080. unava_color_css = 'color:' + Temp_unavailable_links_color + ' !important;';
  1081. container_color_css = 'color:' + Container_links_color + ' !important;';
  1082. prem_color_css = 'color:' + Premium_links_color + ' !important;';
  1083. }
  1084. else
  1085. {
  1086. dead_color_css = live_color_css = unava_color_css = container_color_css = prem_color_css = '';
  1087. }
  1088.  
  1089. if (Show_black_background_in_DL_links)
  1090. {
  1091. black_background_css = 'background-color: black !important;';
  1092. }
  1093. else
  1094. {
  1095. black_background_css = '';
  1096. }
  1097.  
  1098. if (Show_line_through_in_dead_links)
  1099. {
  1100. line_through_css = 'text-decoration: line-through !important;';
  1101. }
  1102. else
  1103. {
  1104. line_through_css = '';
  1105. }
  1106.  
  1107. GM_addStyle(".alive_link {background:transparent url(" + alive_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;" + live_color_css + black_background_css + "}");
  1108. 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 + "}");
  1109. GM_addStyle(".unava_link {background:transparent url(" + unava_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;" + unava_color_css + black_background_css + "}");
  1110. GM_addStyle(".processing_link {background:transparent url(" + processing_link_gif + ") no-repeat scroll 100% 50%;padding-right:15px;" + container_color_css + black_background_css + "}");
  1111. GM_addStyle(".container_link {background:transparent url(" + processing_link_gif + ") no-repeat scroll 100% 50%;padding-right:15px;" + container_color_css + black_background_css + "}");
  1112. GM_addStyle(".container_list {font-size:90%; list-style-type:square; padding: 0px 5% 0px; margin: 0px}");
  1113. GM_addStyle(".prem_link {background:transparent url(" + prem_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;" + prem_color_css + black_background_css + "}");
  1114. }
  1115. }
  1116.  
  1117. var warlcTooltip = null;
  1118. var mouseoverLink = null; //link href with mouse cursor over it
  1119.  
  1120. var lastX = 0;
  1121. var lastY = 0;
  1122.  
  1123. $(document).ready(initTooltip);
  1124. //inits tooltip
  1125. function initTooltip()
  1126. { warlcTooltip = document.createElement("div");
  1127. 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;");
  1128. warlcTooltip.style.visibility = "hidden";
  1129. document.body.appendChild(warlcTooltip);
  1130. }
  1131.  
  1132. //"mousemove" event handler for all links
  1133. function moveTooltip(event)
  1134. {
  1135. if ((Math.abs(lastX - event.clientX) + Math.abs(lastY - event.clientY)) < 6)
  1136. { //no need to reflow if the cursor moved just a little
  1137. return;
  1138. }
  1139. else
  1140. {
  1141. lastX = event.clientX;
  1142. lastY = event.clientY;
  1143. }
  1144.  
  1145. posX = event.clientX + window.pageXOffset + 10;
  1146. posY = event.clientY + window.pageYOffset;
  1147. var ttHeight = warlcTooltip.offsetHeight;
  1148. var ttFreeSpace = window.innerHeight - event.clientY;
  1149. if (ttHeight > ttFreeSpace)
  1150. { //prevents tooltip from getting out of the window
  1151. posY -= (ttHeight - (ttFreeSpace)) + 10;
  1152. }
  1153. else
  1154. {
  1155. posY += 7;
  1156. }
  1157. warlcTooltip.style.top = posY + "px";
  1158. warlcTooltip.style.left = posX + "px";
  1159. }
  1160.  
  1161. //"mouseout" event handler for all links
  1162. function hideTooltip(){
  1163. warlcTooltip.style.visibility = "hidden";
  1164. mouseoverLink = null;
  1165. }
  1166.  
  1167.  
  1168. //"mouseover" event handler for dead links
  1169. //displays tooltip error message on dead links
  1170. function displayTooltipError()
  1171. {
  1172. mouseoverLink = this.href;
  1173. this.addEventListener("mouseout", hideTooltip);
  1174. this.addEventListener("mousemove", function(event) { moveTooltip(event); });
  1175. warlcTooltip.innerHTML = '<b>LOADING...</b>';
  1176. warlcTooltip.style.minWidth = 0;
  1177. warlcTooltip.style.visibility = "visible";
  1178. if (this.warlc_error) //an error message is already known and stored in warlc_error attribute
  1179. {
  1180. warlcTooltip.innerHTML = this.warlc_error;
  1181. }
  1182. else
  1183. {
  1184. loadErrorInfo(this);
  1185. }
  1186. function loadErrorInfo(link)
  1187. {
  1188. var href = link.href;
  1189. href = href.replace(/quickshare\.cz\/.+/, "quickshare.cz/chyba");
  1190. GM_xmlhttpRequest({
  1191. method: 'GET',
  1192. url: href.replace(Ref_anonymize_service, ""),
  1193. headers: {
  1194. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1195. 'Accept': 'text/xml',
  1196. 'Referer': ""
  1197. },
  1198. onload: function(result) {
  1199. var res = result.responseText;
  1200. //TODO: errorRegexs -
  1201. var errorRegexs = [ //generic error messages follow
  1202. /(empty directory)/i,
  1203. /(soubor nebyl nalezen)/i,
  1204. /((?:file|page|link|folder)(?:is|not|does|has been|was| ){1,}(?:found|available|blocked|exists?|deleted|removed))/i,
  1205. //server specific error messages follow
  1206. /msg error" style="cursor: default">(.+?)<\/div>/, //sendspace
  1207. /color:red;font\-weight:bold;border\-style:dashed;font-size:12px;border\-width:2px;><tr><td align=center>(.+?)<\/td>/, //fastshare
  1208. /(Takový soubor neexistuje. Je možné, že byl již smazán.)/, //quickshare
  1209. /file_info file_info_deleted">\s*<h1>(.+?)<\/h1>/, //filepost
  1210. /<br \/>\s*<p style="color:#000">(.+?)<\/p>\s*<\/center>/, //letitbit
  1211. /(?:error_div">|<\/h1><p>)<strong>(.+?)<\/strong>/, //share-rapid,quickshare
  1212. /class="red">(.+?)<(?:span|br)>/, //czshare, megashares
  1213. /class="wp640">\s*<h1 class="h1">(.+?)<\/h1>/, //uloz.to
  1214. /not-found">\s*<p>(.+?)<\/p>/, //bayfiles
  1215. /(Your file could not be found. Please check the download link.)/, //stahnu.to
  1216. /error_msg">\s*(<h3>.+?<\/h3><ul>(.+?)<\/ul>)/, //edisk
  1217. /id="obsah">\s*<h2>(.+?)<\/h2>/, //euroshare
  1218. /error">\s*(?:<[bp]>)?\s*(.+?)<\/[bp]>/, //filesmonster, shragle, gigapeta
  1219. ///center aC">\s*<h1>(.+?)<br \/>/, //uploaded.to
  1220. /icon_err">\s*<h1>(.+?)<\/h1>/, //filejungle
  1221. /Code: ER_NFF_\d+<\/h2>\s*(.+?)\s*<\/div>/, //netload
  1222. /(File has been removed due to Copyright Claim)/, //filerio
  1223. ];
  1224. var errorIdx = errorRegexs.length;
  1225. var error = "Cause of error: <b>unknown</b>";
  1226. var errorCandidate = "";
  1227. while(errorIdx--)
  1228. {
  1229. var errorCandidate = res.match(errorRegexs[errorIdx]);
  1230. if (errorCandidate != null)
  1231. {
  1232. error = "Cause of error: <b>" + errorCandidate[1].replace(/&nbsp;/g," ") + "</b>";
  1233. break;
  1234. }
  1235. }
  1236. //link attributes
  1237. link.warlc_error = error;
  1238. if (mouseoverLink == link.href) //mouse cursor is still over the link
  1239. {
  1240. warlcTooltip.innerHTML = error;
  1241. }
  1242. }
  1243. });
  1244. }
  1245. }
  1246.  
  1247. //"mouseover" event handler for alive links
  1248. //displays tooltip info (file size, file name,...) on alive links
  1249. function displayTooltipInfo()
  1250. {
  1251. mouseoverLink = this.href;
  1252. //exclude direct download filehostings
  1253. 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)/))
  1254. {
  1255. return;
  1256. }
  1257. this.addEventListener("mouseout", hideTooltip);
  1258. this.addEventListener("mousemove", function(event) { moveTooltip(event); });
  1259. warlcTooltip.innerHTML = '<b>LOADING...</b>';
  1260. warlcTooltip.style.minWidth = 0;
  1261. warlcTooltip.style.visibility = "visible";
  1262. if (this.warlc_tooltipcache) //file size is already known and stored in warlc_filename and warlc_filesize attributes
  1263. {
  1264. warlcTooltip.innerHTML = this.warlc_tooltipcache;
  1265. }
  1266. else
  1267. {
  1268. loadInfo(this);
  1269. }
  1270. function loadInfo(link)
  1271. {
  1272. var href = link.href;
  1273. GM_xmlhttpRequest({
  1274. method: 'GET',
  1275. url: href.replace(Ref_anonymize_service, ""),
  1276. headers: {
  1277. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1278. 'Accept': 'text/xml',
  1279. 'Referer': ""
  1280. },
  1281. onload: function(result) {
  1282. var res = result.responseText;
  1283. var nameRegexs = [ /Filename: <b class="f_arial f_14px">(.+?)<\/b>/, //oron
  1284. /(?:finfo|file[-_]?name)">\s*(.+?)<\/?(?:h1|a|div|span style|td)/, //hellshare, netload, badongo, 4fastfile
  1285. /fl" title="(.+?)">/, //edisk
  1286. /<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
  1287. /<h3>Stahujete soubor: <\/h3>\s*<div class="textbox">(.+?)<\/div>/, //webshare
  1288. /<h3><b><span style=color:black;>(.+?)<\/b><\/h3><br>/, //fastshare
  1289. /title="download (.+?)">/, //sendspace
  1290. /Stáhnout soubor: (.+?)<\/h1>/, //quickshare
  1291. /fz24">Download:\s*<strong>(.+?)<\/strong>/, //crocko
  1292. /'file\-icon\d+ \w+'>(?:<\/span><span>)?(.+?)<\/span>/, //hitfile, turbobit
  1293. /d0FileName = "(.+?)";/, //letitbit
  1294. /file(?:_name|-info)" title="">\w+: <span>(.+?)<\/span>/, //vip-file, shareflare
  1295. /recent-comments"><h2>(.+) &nbsp;/, //xdisk
  1296. /fname" value="(.+?)">/, //syfiles, grupload,
  1297. /download\-header">\s*<h2>File:<\/h2>\s*<p title="(.+?)">/, //bayfiles
  1298. /description">\s*<p><b>Soubor: (.+?)<\/b>/, //bezvadata
  1299. /Complete name : (.+?)<br \/>/, //bezvadata
  1300. /itemprop="name">(.+?)<\/span>/, //bezvadata
  1301. ];
  1302. var nameIdx = nameRegexs.length;
  1303. // [sizeRegexs]
  1304. // / \ \?
  1305. // prefix (size) postfix
  1306. // / \
  1307. // val quant
  1308. var quantRegex = '(?:M|G|K)?i?(?:B)(?:[y|i]te?s?)?';
  1309. var valRegex = '\\d+(?:[\\., ]\\d+){0,2}'; // 111([., ]222)?([., ]333)?
  1310. var uniSizeRegex = valRegex + '(?:\\s*|&nbsp;)' + quantRegex;
  1311. var preSizeRegex = '(?::|\\(|>|>, | - )';
  1312. var postSizeRegex = '(?:\\))?';
  1313. var sizeRegexs = [ preSizeRegex + "\\s*(" + uniSizeRegex + ")\\s*" + postSizeRegex,
  1314. 'FileSize_master">(.+?)<\/strong>', //hellshare
  1315. ];
  1316. var sizeIdx = sizeRegexs.length;
  1317. //
  1318. //
  1319. var tooltip = "File Name: <b>";
  1320. var fileName = "unknown";
  1321. var nameCandidate = "";
  1322. while(nameIdx--)
  1323. {
  1324. var nameCandidate = res.match(nameRegexs[nameIdx]);
  1325. if (nameCandidate != null)
  1326. {
  1327. fileName = nameCandidate[1].replace(/&nbsp;/g," ");
  1328. break;
  1329. }
  1330. }
  1331. tooltip += fileName + "</b><br>File Size: <b>";
  1332. var fileSize = "unknown";
  1333. var sizeCandidate = "";
  1334. while(sizeIdx--)
  1335. {
  1336. sizeCandidate = res.match(new RegExp(sizeRegexs[sizeIdx], "i"));
  1337. if (sizeCandidate != null)
  1338. {
  1339. fileSize = sizeCandidate[1].replace(/&nbsp;/g," ");
  1340. if (/^\d+$/.test(fileSize) && fileSize >= 1024) //assume bytes
  1341. {
  1342. if(fileSize > (1<<30)) fileSize = Math.round(10 * fileSize / (1<<30)) / 10 + ' GB';
  1343. else if(fileSize > (1<<20)) fileSize = Math.round(fileSize / (1<<20)) + ' MB';
  1344. else fileSize = Math.round(fileSize / 1024) + ' KB';
  1345. }
  1346. break;
  1347. }
  1348. }
  1349. tooltip += fileSize + "</b>";
  1350. // PROTOTYPE
  1351. // video thumbnails
  1352. if (href.match('hellshare'))
  1353. {
  1354. var thumbs;
  1355. thumbs = res.match(/http:\/\/static\d+\.helldata\.com\/thumbs(?:\/\d+){1,2}\/\d{1,2}"/g);
  1356. if (thumbs)
  1357. {
  1358. tooltip += '<br>';
  1359. var j = Math.min(thumbs.length, 9);
  1360. for (var i = 0; i < j; i++)
  1361. {
  1362. tooltip += '<img src="' + thumbs[i].replace('"',"") + '" width="' + TOOLTIP_THUMBWIDTH + 'px">';
  1363. }
  1364. warlcTooltip.style.minWidth = TOOLTIP_MAXWIDTH;
  1365. }
  1366. }
  1367. if (href.match('czshare'))
  1368. {
  1369. var thumbs;
  1370. thumbs = res.match(/src="http:\/\/www(\d+)\.czshare\.com\/images_velke\/\d+\.(\d+)\.jpeg/);
  1371. if (thumbs)
  1372. {
  1373. var thumbsServer = thumbs[1];
  1374. var thumbsId = thumbs[2];
  1375. tooltip += '<br>';
  1376. for (var i = 1; i < 9; i++)
  1377. {
  1378. tooltip += '<img src="http://www' + thumbsServer + '.czshare.com/images_velke/' + i + '.' + thumbsId + '.jpeg" width="' + TOOLTIP_THUMBWIDTH + 'px">';
  1379. }
  1380. warlcTooltip.style.minWidth = TOOLTIP_MAXWIDTH;
  1381. }
  1382. }
  1383. if (href.match('bezvadata'))
  1384. {
  1385. var thumbs;
  1386. thumbs = res.match(/http:\/\/nahledy\.bezvadata\.cz\/nahledy\/\d+\/\d+\/\d+_\d+_\d+x\d+_\w.jpg/g);
  1387. if (thumbs)
  1388. {
  1389. tooltip += '<br>';
  1390. var j = Math.min(thumbs.length, 9);
  1391. for (var i = 0; i < j; i++)
  1392. {
  1393. tooltip += '<img src="' + thumbs[i] + '" width="' + TOOLTIP_THUMBWIDTH + 'px">';
  1394. }
  1395. warlcTooltip.style.minWidth = TOOLTIP_MAXWIDTH;
  1396. }
  1397. }
  1398. link.warlc_tooltipcache = tooltip;
  1399. if (mouseoverLink == link.href) //mouse cursor is still over the link
  1400. {
  1401. warlcTooltip.innerHTML = tooltip;
  1402. }
  1403. }
  1404. });
  1405. }
  1406. }
  1407.  
  1408. function setVariables()
  1409. {
  1410. if (firstRun)
  1411. {
  1412. GM_log('First run, applying default settings...');
  1413. GM_setValue("Icon_set",1);
  1414. GM_setValue("Display_tooltip_info",true);
  1415. GM_setValue("Show_black_background_in_DL_links",false);
  1416. GM_setValue("Show_line_through_in_dead_links",false);
  1417. GM_setValue("Display_full_links_in_link_containers",false);
  1418. GM_setValue("Allow_spaces_in_DL_links",false);
  1419. GM_setValue("Autocheck",true);
  1420. GM_setValue("Enable_Anonymizer",false);
  1421. GM_setValue("Do_not_linkify_DL_links",false);
  1422. GM_setValue("Show_progress_stats",true);
  1423. GM_setValue("Keyboard_functions",true);
  1424. GM_setValue("Obsolete_file_hosts",false);
  1425. GM_setValue("Color_DL_links",true);
  1426. GM_setValue("Live_links_color","Green");
  1427. GM_setValue("Dead_links_color","#FF3300");
  1428. GM_setValue("Temp_unavailable_links_color","#F7EF09");
  1429. GM_setValue("Container_links_color","DarkKhaki");
  1430. GM_setValue("Premium_links_color","DeepPink");
  1431. GM_setValue("Ref_anonymize_service","http://hiderefer.com/?");
  1432. GM_setValue("Custom_rules",false);
  1433. GM_setValue("Custom_rules_text","");
  1434. GM_setValue("First_run", false);
  1435. }
  1436. //hidden settings
  1437. GM_setValue("Progress_box_pos_bottom", Progress_box_pos_bottom = GM_getValue("Progress_box_pos_bottom", 20));
  1438. GM_setValue("Progress_box_pos_right", Progress_box_pos_right = GM_getValue("Progress_box_pos_right", 10));
  1439. GM_setValue("Progress_box_opacity", Progress_box_opacity = GM_getValue("Progress_box_opacity", 85));
  1440. GM_setValue("Progress_box_background_color", Progress_box_background_color = GM_getValue("Progress_box_background_color", 'DimGray'));
  1441. GM_setValue("Progress_box_item_color", Progress_box_item_color = GM_getValue("Progress_box_item_color", 'DimGray'));
  1442. GM_setValue("Progress_box_refresh_rate", Progress_box_refresh_rate = GM_getValue("Progress_box_refresh_rate", 2000));
  1443. GM_setValue("Debug_mode", DEBUG_MODE = GM_getValue("Debug_mode", false));
  1444. //hidden settings end
  1445.  
  1446. Icon_set = GM_getValue("Icon_set", 1); //0 - no icons, 1 - cat paws, 2 - old RSLC style, 3 - New Icons,
  1447. Display_tooltip_info = GM_getValue("Display_tooltip_info", true);
  1448. Show_black_background_in_DL_links = GM_getValue("Show_black_background_in_DL_links", false);
  1449. Show_line_through_in_dead_links = GM_getValue("Show_line_through_in_dead_links", false);
  1450. Display_full_links_in_link_containers = GM_getValue("Display_full_links_in_link_containers", false);
  1451. Allow_spaces_in_DL_links = GM_getValue("Allow_spaces_in_DL_links", false);
  1452. Autocheck = GM_getValue("Autocheck", true);
  1453. Enable_Anonymizer = GM_getValue("Enable_Anonymizer", false);
  1454. Do_not_linkify_DL_links = GM_getValue("Do_not_linkify_DL_links", false);
  1455. Show_progress_stats = GM_getValue("Show_progress_stats", true);
  1456. Keyboard_functions = GM_getValue("Keyboard_functions", true);
  1457. Obsolete_file_hosts = GM_getValue("Obsolete_file_hosts", false);
  1458. Color_DL_links = GM_getValue("Color_DL_links", true);
  1459. Live_links_color = GM_getValue("Live_links_color", "Green");
  1460. Dead_links_color = GM_getValue("Dead_links_color", "#FF3300");
  1461. Temp_unavailable_links_color = GM_getValue("Temp_unavailable_links_color", "#F7EF09");
  1462. Container_links_color = GM_getValue("Container_links_color", "DarkKhaki");
  1463. Premium_links_color = GM_getValue("Premium_links_color", "DeepPink");
  1464. Ref_anonymize_service = GM_getValue("Ref_anonymize_service", "http://hiderefer.com/?");
  1465. Custom_rules = GM_getValue("Custom_rules", false);
  1466. Custom_rules_text = GM_getValue("Custom_rules_text", false);
  1467. }
  1468.  
  1469.  
  1470. // Delinkifies the links
  1471. // params:
  1472. // links -> list of links or link components (note they should be sufficiently unique to identify the link on page,
  1473. // e.g. 'uloz.to/xs68skxl8')
  1474. function delinkifySnapshot(snapshot)
  1475. {
  1476. var n = snapshot.snapshotLength;
  1477.  
  1478. while (n--)
  1479. {
  1480. thisLink = snapshot.snapshotItem(n);
  1481.  
  1482. var spanElm = document.createElement("span");
  1483. spanElm.className = thisLink.className;
  1484. spanElm.innerHTML = thisLink.innerHTML;
  1485.  
  1486. if (Display_tooltip_info)
  1487. {
  1488. spanElm.href = thisLink.href;
  1489. switch (thisLink.className){
  1490. case "alive_link": spanElm.addEventListener("mouseover", displayTooltipInfo, false); break
  1491. case "adead_link": spanElm.addEventListener("mouseover", displayTooltipError, false); break;
  1492. case "unava_link": //reserved
  1493. default:
  1494. }
  1495. }
  1496. thisLink.parentNode.replaceChild(spanElm, thisLink);
  1497. }
  1498. }
  1499.  
  1500. function processContainers()
  1501. {
  1502. var redirectorTypes = { "HTTP_302": 0,
  1503. "INNER_LINK": 1,
  1504. "THELOO_KATT_IT": 2,
  1505. "CING_BE": 3,
  1506. "ADF_LY": 4};
  1507. var cMultiloadTotal = 0;
  1508. var cMultiloadProcessed = 0;
  1509.  
  1510. var cMirrorcreatorComTotal = 0;
  1511. var cMirrorcreatorComProcessed = 0;
  1512.  
  1513. var hostRestrictionRegex = "";
  1514. var multiloadComRestriction = "";
  1515. var multiloadComRestrictionRegex;
  1516.  
  1517. //
  1518. //HANDLING REDIRECTORS START
  1519. //
  1520.  
  1521. var redirectors = new Array();
  1522. initRedirectors();
  1523.  
  1524. var redirectorsCount = redirectors.length;
  1525.  
  1526. if (redirectorsCount > 0)
  1527. {
  1528. var allRedirectorsRegex = "";
  1529.  
  1530. //linkify redirector links
  1531. for(var redirIdx = 0; redirIdx < redirectorsCount; redirIdx++)
  1532. {
  1533. allRedirectorsRegex += redirectors[redirIdx].linkRegex + "|";
  1534. }
  1535. allRedirectorsRegex = allRedirectorsRegex.replace(/\|$/, "");
  1536. linkify(allRedirectorsRegex);
  1537. //
  1538. //process redirector links
  1539. for(var redirIdx = 0; redirIdx < redirectorsCount; redirIdx++)
  1540. {
  1541. var redirectorsSnapshot = document.evaluate(redirectors[redirIdx].xpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  1542. redirectors[redirIdx].cTotal = redirectorsSnapshot.snapshotLength;
  1543.  
  1544. cLinksTotal += redirectors[redirIdx].cTotal;
  1545. var linkIdx = redirectors[redirIdx].cTotal;
  1546.  
  1547. while(linkIdx--)
  1548. {
  1549. switch(redirectors[redirIdx].type)
  1550. {
  1551. case redirectorTypes.HTTP_302: processRedirectorLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1552. case redirectorTypes.INNER_LINK: processRedirectorLinkEx(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1553. case redirectorTypes.THELOO_KATT_IT: processThelooKattItLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1554. case redirectorTypes.CING_BE: processCingBeLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1555. case redirectorTypes.ADF_LY: processAdfLyLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1556. default:
  1557. }
  1558. }
  1559. }
  1560. //
  1561. }
  1562.  
  1563. //HTTP_302
  1564. function processRedirectorLink(link, redirectorId)
  1565. {
  1566. link.className = 'container_link';
  1567.  
  1568. GM_xmlhttpRequest({
  1569. method: 'HEAD',
  1570. url: link.href,
  1571. headers: {
  1572. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1573. 'Accept': 'text/xml',
  1574. 'Referer': ""
  1575. },
  1576. onload: function(result) {
  1577. if (result.finalUrl.replace("https", "http") == link.href) // service hasn't redirected anywhere
  1578. {
  1579. processRedirectorLink(link, redirectorId);
  1580. }
  1581. else
  1582. {
  1583. redirectors[redirectorId].cProcessed++;
  1584. link.href = result.finalUrl;
  1585. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  1586. checkLinks('container_link');
  1587. }
  1588. },
  1589. onerror: function(result) { //probably caused by unresponsive filehosting
  1590. redirectors[redirectorId].cProcessed++;
  1591. link.className = 'unava_link';
  1592. cLinksProcessed++;
  1593. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  1594. checkLinks('container_link');
  1595. }
  1596. });
  1597. }
  1598. //INNER_LINK
  1599. function processRedirectorLinkEx(link, redirectorId)
  1600. {
  1601. link.className = 'container_link';
  1602. GM_xmlhttpRequest({
  1603. method: 'GET',
  1604. url: link.href,
  1605. headers: {
  1606. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1607. 'Accept': 'text/xml',
  1608. 'Referer': ""
  1609. },
  1610. onload: function(result) {
  1611. link.href = result.responseText.match(redirectors[redirectorId].innerLinkRegex)[1];
  1612. redirectors[redirectorId].cProcessed++;
  1613. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  1614. checkLinks('container_link');
  1615. }
  1616. });
  1617. }
  1618. //theloo.katt.it (wrapped safelinking.net)
  1619. function processThelooKattItLink(link, redirectorId)
  1620. {
  1621. link.className = 'container_link';
  1622. GM_xmlhttpRequest({
  1623. method: 'GET',
  1624. url: link.href,
  1625. headers: {
  1626. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1627. 'Accept': 'text/xml',
  1628. 'Referer': ""
  1629. },
  1630. onload: function(result) {
  1631. link.href = result.responseText.match(redirectors[redirectorId].innerLinkRegex)[1];
  1632. redirectors[redirectorId].cProcessed++;
  1633. //the inner links are safelinking.net links, so lets proceed with it
  1634. if (GM_getValue("Check_safelinking_dot_net_links", false))
  1635. {
  1636. processRedirectorLink(link, 0);
  1637. }
  1638. }
  1639. });
  1640. }
  1641. //adf.ly (adf.ly/go innerLink, locking mechanism)
  1642. function processAdfLyLink(link, redirectorId)
  1643. {
  1644. link.className = 'container_link';
  1645. GM_xmlhttpRequest({
  1646. method: 'GET',
  1647. url: link.href,
  1648. headers: {
  1649. 'User-agent': 'Mozilla/4.0',
  1650. 'Accept': 'text/xml',
  1651. 'Referer': ""
  1652. },
  1653. onload: function(result) {
  1654. if (result.finalUrl.match('/locked/'))
  1655. {
  1656. var delay = result.responseText.match(/countdown">(\d+)</)[1];
  1657. // GM_log(result.finalUrl + 'is locked. Repeating the request in ' + delay + 's.');
  1658. // setTimeout(function(){processAdfLyLink(link, redirectorId);}, delay * 1000);
  1659. }
  1660. else
  1661. {
  1662. // GM_log('Processing... ' + link.href);
  1663. // GM_log('Found...' + result.responseText.match(/\/go\/(\w+\/\w+)/)[1]);
  1664. var directLink = 'http://adf.ly' + result.responseText.match(/(\/go\/\w+\/\w+)/)[1];
  1665. var logToken = result.responseText.match(/flashy_(\w+)/)[1];
  1666. var users = result.responseText.match(/user=\d+&user2=\d+/);
  1667. //confirm advert
  1668. GM_xmlhttpRequest(
  1669. {
  1670. method: 'POST',
  1671. url: 'http://adf.ly/l.php',
  1672. headers: {
  1673. 'User-agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20100101 Firefox/13.0',
  1674. 'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
  1675. 'Referer': link.href
  1676. },
  1677. data: users + '&lt=' + logToken,
  1678. onload: function(result) {
  1679. //retrieve final url from .../go/... link
  1680. GM_xmlhttpRequest({
  1681. method: 'GET',
  1682. url: directLink,
  1683. headers: {
  1684. 'User-agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20100101 Firefox/13.0',
  1685. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  1686. 'Referer': link.href
  1687. },
  1688. onload: function(result) {
  1689. link.href = result.finalUrl;
  1690. redirectors[redirectorId].cProcessed++;
  1691. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  1692. checkLinks('container_link');
  1693. }
  1694. });
  1695. }
  1696. });
  1697. }
  1698. }
  1699. });
  1700. function proceedOK()
  1701. {
  1702. }
  1703. }
  1704. //MULTILOAD.CZ START
  1705. if (GM_getValue("Check_multiload_dot_cz_links", false))
  1706. {
  1707. var mlRegex = 'multiload\\.cz\/stahnout\/\\d+\/';
  1708. var mlXpath = "//a[contains(@href,'http://www.multiload.cz/stahnout')]";
  1709.  
  1710. hostRestrictionRegex = 'Upload se nezdařil|limit exceeded|probíhá reupload|';
  1711.  
  1712. if (GM_getValue("Check_hellshare_dot_com_links", false))
  1713. hostRestrictionRegex += 'hellshare|';
  1714. if (GM_getValue("Check_share_dash_rapid_dot_com_links", false))
  1715. hostRestrictionRegex += 'share-rapid\\.com|';
  1716. if (GM_getValue("Check_quickshare_dot_cz_links", false))
  1717. hostRestrictionRegex += 'quickshare\\.cz|';
  1718. if (GM_getValue("Check_czshare_dot_com_links", false))
  1719. hostRestrictionRegex += 'czshare\\.com|';
  1720. if (GM_getValue("Check_uloz_dot_to_links", false))
  1721. hostRestrictionRegex += 'uloz\\.to|';
  1722. if (GM_getValue("Check_hellspy_dot_com_links", false))
  1723. hostRestrictionRegex += 'hellspy|';
  1724. if (GM_getValue("Check_multishare_dot_cz_links", false))
  1725. hostRestrictionRegex += 'multishare\\.cz|';
  1726.  
  1727. hostRestrictionRegex = hostRestrictionRegex.replace(/\|$/, "");
  1728.  
  1729. linkify(mlRegex);
  1730.  
  1731. var mlSnapshot = document.evaluate(mlXpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  1732. var mlCount = mlSnapshot.snapshotLength;
  1733.  
  1734. if (mlCount > 0)
  1735. {
  1736. cMultiloadTotal += mlCount;
  1737.  
  1738. mlIdx = mlCount - 1;
  1739. do
  1740. {
  1741. processMultiloadLink(mlSnapshot.snapshotItem(mlIdx));
  1742. }
  1743. while(mlIdx--)
  1744. }
  1745. }
  1746. //MULTILOAD.CZ END
  1747.  
  1748.  
  1749.  
  1750. function processMultiloadLink(mlLink)
  1751. {
  1752. GM_xmlhttpRequest({
  1753. method: 'GET',
  1754. url: mlLink.href,
  1755. headers: {
  1756. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1757. 'Accept': 'text/xml',
  1758. 'Referer': ""
  1759. },
  1760. onload: function(result) {
  1761. var res = result.responseText;
  1762.  
  1763. var innerBlockRegex = /<p class="manager-linky">(?:.|\s)+?<\/p>/g;
  1764. 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;
  1765. var innerLinkRegex = /((?:Upload se nezdařil.+|https?:\/\/(?:.|\s)+|Právě probíhá reupload, buďte trpěliví\.\.\.))</;
  1766. var mlRestrictionRegex = new RegExp(hostRestrictionRegex,"g"); //what links should be displayed
  1767.  
  1768. var blocks; // blocks of links
  1769. var blockIdx;
  1770.  
  1771. mlLink.className = '';
  1772.  
  1773. if (result.status == 503) //service temporarily unavailable, repeat request in one second
  1774. {
  1775. setTimeout(function(){ processMultiloadLink(mlLink); }, 1000);
  1776. return;
  1777. }
  1778.  
  1779. blocks = res.match(innerBlockRegex);
  1780.  
  1781. if (blocks == null) //no links found, cancel further processing
  1782. {
  1783. mlLink.parentNode.appendChild(document.createTextNode(' | Požadovaný soubor neexistuje.'));
  1784. cMultiloadProcessed++;
  1785. if (cMultiloadTotal <= cMultiloadProcessed)
  1786. {
  1787. startBulkCheck('container_link');
  1788. start('container_link');
  1789. }
  1790. return;
  1791. }
  1792.  
  1793. blockIdx = blocks.length;
  1794.  
  1795. if (Display_full_links_in_link_containers)
  1796. {
  1797. var ulElm = document.createElement('ul');
  1798. ulElm.className = 'container_list'; //CSS smaller font, padding, margin, square style
  1799.  
  1800. while(blockIdx--)
  1801. {
  1802. if (blocks[blockIdx].match(mlRestrictionRegex) == null)
  1803. {
  1804. continue;
  1805. }
  1806.  
  1807. var innerLinks = blocks[blockIdx].match(innerLinksRegex);
  1808.  
  1809. var linkIdx = innerLinks.length;
  1810. while (linkIdx--)
  1811. {
  1812. var innerLink = innerLinks[linkIdx].match(innerLinkRegex)[1];
  1813.  
  1814. var liElm = document.createElement('li');
  1815.  
  1816. if (innerLink.match(/Upload se nezdařil|limit exceeded|probíhá reupload/))
  1817. {
  1818. liElm.appendChild(document.createTextNode(innerLink));
  1819. }
  1820. else
  1821. {
  1822. var aElm = document.createElement('a');
  1823. aElm.innerHTML = innerLink;
  1824. aElm.href = innerLink;
  1825. aElm.className = 'container_link';
  1826.  
  1827. liElm.appendChild(aElm);
  1828. }
  1829.  
  1830. ulElm.appendChild(liElm);
  1831. cLinksTotal++;
  1832. }
  1833. }
  1834.  
  1835. mlLink.parentNode.appendChild(ulElm);
  1836. }
  1837. else //compact view
  1838. {
  1839. mlLink.parentNode.appendChild(document.createTextNode("|"));
  1840.  
  1841. while(blockIdx--)
  1842. {
  1843. if (blocks[blockIdx].match(mlRestrictionRegex) == null)
  1844. {
  1845. continue;
  1846. }
  1847.  
  1848. var innerLinks = blocks[blockIdx].match(innerLinksRegex);
  1849.  
  1850. var linkIdx = innerLinks.length;
  1851. while (linkIdx--)
  1852. {
  1853. var innerLink = innerLinks[linkIdx].match(innerLinkRegex)[1];
  1854.  
  1855. if (innerLink.match(/Upload se nezdařil|limit exceeded|probíhá reupload/))
  1856. {
  1857. mlLink.parentNode.appendChild(document.createTextNode("----"));
  1858. }
  1859. else
  1860. {
  1861. var aElm = document.createElement('a');
  1862.  
  1863. var hostName = innerLink.match(/quickshare|hellshare|uloz\.to|multishare|hellspy|share\-rapid|czshare/);
  1864.  
  1865. //abbreviate host name
  1866. switch(hostName + ""){
  1867.  
  1868. case 'quickshare': aElm.innerHTML = 'QS'; break;
  1869. case 'hellshare': aElm.innerHTML = 'HS'; break;
  1870. case 'uloz.to': aElm.innerHTML = 'UT'; break;
  1871. case 'multishare': aElm.innerHTML = 'MS'; break;
  1872. case 'hellspy': aElm.innerHTML = 'hs'; break;
  1873. case 'share-rapid': aElm.innerHTML = 'SR'; break;
  1874. case 'czshare': aElm.innerHTML = 'CS'; break;
  1875. default: aElm.innerHTML = 'xx';
  1876.  
  1877. }
  1878.  
  1879. aElm.href = innerLink;
  1880. aElm.className = 'container_link';
  1881.  
  1882. mlLink.parentNode.appendChild(aElm);
  1883. cLinksTotal++;
  1884. }
  1885. }
  1886.  
  1887. mlLink.parentNode.appendChild(document.createTextNode("|")); //blocks delimiter
  1888.  
  1889. }
  1890. }
  1891.  
  1892. cMultiloadProcessed++;
  1893. if (cMultiloadTotal == cMultiloadProcessed) //start check when all ml links have been processed
  1894. {
  1895. if (Do_not_linkify_DL_links)
  1896. {
  1897. delinkifySnapshot(mlSnapshot);
  1898. }
  1899. startBulkCheck('container_link');
  1900. start('container_link');
  1901. }
  1902. }
  1903. });
  1904. }
  1905.  
  1906.  
  1907. if (GM_getValue("Check_mirrorcreator_dot_com_links", false))
  1908. {
  1909. var mcRegex = 'mirrorcreator\\.com/files/(\\w+)';
  1910. var mcXpath = "//a[contains(@href,'mirrorcreator.com/files')]";
  1911. var mcShortHostNames =
  1912. '?? 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';
  1913. // 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
  1914. //?????? depositfiles sendspace load.to ul.to storage.to uploadbox x7.to fileserve ?????? duckload filehook filepost jumbofiles glumbouploads
  1915. // zshare ?????? 2shared uploading ugotfile extabit oron eyvx uploadstation putlocker
  1916. // megaupload badongo megashare gamefront ifile ?????? letitbit ?????? ?????? filejungle megashares
  1917. // easy-share ?????? netload zippyshare ?????? filesonic turbobit enterupload ?????? filekeen wupload crocko fileflyer
  1918.  
  1919. linkify(mcRegex);
  1920.  
  1921. var mcSnapshot = document.evaluate(mcXpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  1922. var mcCount = mcSnapshot.snapshotLength;
  1923.  
  1924. cMirrorcreatorComTotal = mcCount;
  1925.  
  1926. if (mcCount > 0)
  1927. {
  1928. mcShortHostNames = mcShortHostNames.split(' ');
  1929. mcIdx = mcCount;
  1930. while(mcIdx--)
  1931. processMirrorcreatorLink(mcSnapshot.snapshotItem(mcIdx));
  1932. }
  1933.  
  1934. }
  1935. //MIRRORCREATOR.CZ END
  1936.  
  1937.  
  1938. //mirrorcreator.com checking works like this:
  1939. //The base URL is http://www.mirrorcreator.com/files/XXXXXXXX/filename_links
  1940. //the actual list of mirrors is at http://www.mirrorcreator.com/status.php?uid=XXXXXXXX
  1941. //the list contains links in the form of (http://www.mirrorcreator.com)/redirect/XXXXXXXX/1
  1942. //these redirector links are extracted with mcLinkBlockRegex and the pages loaded
  1943. //they contain the actual filehost links, which are extracted with mcHostRegex and displayed in a container list
  1944. function processMirrorcreatorLink(mcLink)
  1945. {
  1946. var mcURL = mcLink.href.match(mcRegex);
  1947. if(!mcURL || !mcURL[1]) return;
  1948. mcURL = 'http://www.mirrorcreator.com/status.php?uid=' + mcURL[1]; //link correction
  1949. GM_xmlhttpRequest({
  1950. method: 'GET',
  1951. url: mcURL,
  1952. headers: {
  1953. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1954. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*'+'/*;q=0.8',
  1955. 'Referer': ""
  1956. },
  1957. onload: function(mcLinkResult) {
  1958. var mcLinkRes = mcLinkResult.responseText;
  1959.  
  1960. var mcLinkBlockRegex = /(\/redirect\/\w+\/(\d+))/gi;
  1961. var mcHostRegex = /<div id="redirectlink">.*?<a href="([^"]+)"/;
  1962.  
  1963. var mcRedirectors;
  1964. var mcHostURLs = [], mcRedirectorIDs = [], mcHostsFound = 0, mcHostsRetrieved = 0, mcHostsToProcess = 0;
  1965. var m = mcLinkRes.match(mcLinkBlockRegex);
  1966. if (m)
  1967. mcHostsFound = m.length;
  1968. else
  1969. { //no files inside container
  1970. processMirrorcreatorFoundHosts(mcLink, []);
  1971. return;
  1972. }
  1973.  
  1974. var mcRedirectorURL, idx, timedOut = false;
  1975.  
  1976. var gmxhrFunc = function(mcRedirectorURL){ //Tampermonkey doesn't know neither this.url or result.finalUrl
  1977. GM_xmlhttpRequest({
  1978. method: 'GET',
  1979. url: mcRedirectorURL,
  1980. headers: {
  1981. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1982. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*'+'/*;q=0.8',
  1983. 'Referer': ""
  1984. },
  1985. onload: function(mcHostResult) {
  1986. if (timedOut) return; //too late, the list is already displayed
  1987. var mcHostRes = mcHostResult.responseText;
  1988. var mcHost = mcHostRes.match(mcHostRegex);
  1989. idx = mcHostURLs.indexOf(mcRedirectorURL);
  1990. if (mcHost && idx!=-1)
  1991. {
  1992. mcHostURLs[idx] = mcHost[1].replace(/^\s+|\s+$/g, '');
  1993. mcHostsRetrieved++;
  1994. mcHostsToProcess++;
  1995. if (mcHostsFound == mcHostsRetrieved) //this is the last one!
  1996. {
  1997. processMirrorcreatorFoundHosts(mcLink, mcHostURLs, mcRedirectorIDs);
  1998. mcHostsToProcess = 0;
  1999. }
  2000. }
  2001. } //end of onload: function
  2002. }); //end of GM_xmlhttpRequest call
  2003. };//end of var gmxhrFunc
  2004.  
  2005. while (mcRedirectors = mcLinkBlockRegex.exec(mcLinkRes))
  2006. { //load individual redirector pages
  2007. mcRedirectorURL = 'http://www.mirrorcreator.com' + mcRedirectors[1];
  2008. mcHostURLs.push(mcRedirectorURL);
  2009. mcRedirectorIDs.push(mcRedirectors[2]);
  2010. gmxhrFunc(mcRedirectorURL);
  2011. } //end of while block
  2012.  
  2013. setTimeout(function(){ //in case the last page fails to load and call the function
  2014. timedOut = true;
  2015. if (mcHostsToProcess)
  2016. processMirrorcreatorFoundHosts(mcLink, mcHostURLs);
  2017. }, 60000);
  2018.  
  2019. } //end of onload function
  2020. }); //end of GM_xmlhttpRequest call
  2021. } //end of function processMirrorcreatorLink
  2022.  
  2023.  
  2024. function processMirrorcreatorFoundHosts(mcLink, mcHostURLs, mcRedirectorIDs)
  2025. {
  2026. var aEl, liEl, docFrag;
  2027. var hostName, mcRedirectorID, trimFilename = false;
  2028. var i = mcHostURLs.length;
  2029. if (i == 0)
  2030. {
  2031. trimFilename = true;
  2032. mcLink.parentNode.insertBefore(document.createTextNode(' | No files inside container'), mcLink.nextSibling);
  2033. }
  2034. else
  2035. {
  2036. if (Display_full_links_in_link_containers)
  2037. { //full view
  2038. var wrapperEl = document.createElement('span');
  2039. wrapperEl.style.display = 'block';
  2040. var ulistEl = document.createElement('ul');
  2041. ulistEl.className = 'container_list';
  2042. while (i--)
  2043. {
  2044. liEl = document.createElement('li');
  2045. aEl = document.createElement('a');
  2046. aEl.appendChild(document.createTextNode(mcHostURLs[i]));
  2047. aEl.href = mcHostURLs[i];
  2048. aEl.className = 'container_link';
  2049. liEl.appendChild(aEl);
  2050. ulistEl.appendChild(liEl);
  2051. }
  2052. wrapperEl.appendChild(ulistEl);
  2053. mcLink.parentNode.replaceChild(wrapperEl, mcLink);
  2054. wrapperEl.insertBefore(mcLink, wrapperEl.firstChild);
  2055. }
  2056. else
  2057. { //compact view
  2058. trimFilename = true;
  2059. docFrag = document.createDocumentFragment();
  2060. docFrag.appendChild(document.createTextNode(' |'));
  2061. while (i--)
  2062. {
  2063. mcRedirectorID = mcRedirectorIDs[i];
  2064. hostName = mcHostURLs[i];
  2065. if (mcRedirectorID > mcShortHostNames.length-1 || mcShortHostNames[mcRedirectorID] == '??')
  2066. hostName = hostName.replace(/https?:\/\/(?:www\.)?([-0-9a-z]+(?:\.[-0-9a-z]+)?)\.[a-z]+\/.*/i, '$1').toUpperCase();
  2067. else
  2068. hostName = mcShortHostNames[mcRedirectorID];
  2069. aEl = document.createElement('a');
  2070. aEl.href = mcHostURLs[i];
  2071. aEl.className = 'container_link';
  2072. aEl.appendChild(document.createTextNode(hostName));
  2073. docFrag.appendChild(aEl);
  2074. docFrag.appendChild(document.createTextNode('|'));
  2075. }
  2076. mcLink.parentNode.insertBefore(docFrag, mcLink.nextSibling);
  2077. } //end of else block
  2078. } //end of else block
  2079. mcLink.className = '';
  2080. if (trimFilename)
  2081. mcLink.firstChild.nodeValue = mcLink.firstChild.nodeValue.replace(/(https?:\/\/[^\/]+\/files\/\w+\/).+/, '$1...');
  2082. cMirrorcreatorComProcessed++;
  2083. if (cMirrorcreatorComProcessed == cMirrorcreatorComTotal) //start check when all mc links have been processed
  2084. {
  2085. if (Do_not_linkify_DL_links)
  2086. delinkifySnapshot(mcSnapshot);
  2087. startBulkCheck('container_link');
  2088. start('container_link');
  2089. }
  2090. } //end of function processMirrorcreatorFoundHosts
  2091.  
  2092. containers_processed = true;
  2093.  
  2094.  
  2095. function initRedirectors()
  2096. {
  2097. function addRedirector(linkRegex, xpathEx, redirType, innerLinkRegex)
  2098. {
  2099. var redirector = new Object();
  2100. redirector.linkRegex = linkRegex;
  2101. redirector.xpath = xpathEx; //xpath expression
  2102. redirector.cProcessed = 0; //processed links count
  2103. redirector.cTotal = 0; //total links count
  2104. redirector.type = redirType; //redirectorTypes enum
  2105. redirector.innerLinkRegex = innerLinkRegex; //innerLink, null if unused
  2106. redirectors.push(redirector);
  2107. }
  2108. if (GM_getValue("Check_safelinking_dot_net_links", false))
  2109. {
  2110. addRedirector(
  2111. 'safelinking\\.net\/d\/\\w+',
  2112. "//a[contains(@href,'safelinking.net/d/')]",
  2113. redirectorTypes.HTTP_302,
  2114. null);
  2115. }
  2116. if (GM_getValue("Check_linksafe_dot_me_links", false))
  2117. {
  2118. addRedirector(
  2119. 'linksafe\\.me\/d\/\\w+',
  2120. "//a[contains(@href,'linksafe.me/d/')]",
  2121. redirectorTypes.HTTP_302,
  2122. null);
  2123. }
  2124. if (GM_getValue("Check_linkto_dot_net_links", false))
  2125. {
  2126. addRedirector(
  2127. 'linkto\\.net\/\\?\\w+\\.\\d+',
  2128. "//a[contains(@href,'linkto.net/?')]",
  2129. redirectorTypes.INNER_LINK,
  2130. /<iframe id="iframe" name="iframe" src="(.+?)\s*" frameborder="0"/);
  2131. }
  2132. if (GM_getValue("Check_theloo_dot_katt_dot_it_links", false))
  2133. {
  2134. addRedirector(
  2135. '(?:the)?loo\\.katt\\.it\/\\w+',
  2136. "//a[contains(@href,'loo.katt.it/')]",
  2137. redirectorTypes.THELOO_KATT_IT,
  2138. /Proceed to URL - <a href="(.+?)">/);
  2139. }
  2140. if (GM_getValue("Check_madlink_dot_sk_links", false))
  2141. {
  2142. addRedirector(
  2143. 'madlink\\.sk\/\\w+',
  2144. "//a[contains(@href,'madlink.sk/')]",
  2145. redirectorTypes.INNER_LINK,
  2146. /name="url" value="(.+?)\s*"\/>/);
  2147. }
  2148. if (GM_getValue("Check_adf_dot_ly_links", false))
  2149. {
  2150. addRedirector(
  2151. '(?:adf\\.ly|[u9]\\.bb|[qj]\\.gs)\/\\w+',
  2152. "//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/')]",
  2153. redirectorTypes.ADF_LY,
  2154. null);
  2155. }
  2156. if (GM_getValue("Check_redi_dot_re_links", false))
  2157. {
  2158. addRedirector(
  2159. 'redi\\.re\/\\w+',
  2160. "//a[contains(@href,'redi.re/')]",
  2161. redirectorTypes.HTTP_302,
  2162. null);
  2163. }
  2164. if (GM_getValue("Check_bit_dot_ly_links", false))
  2165. {
  2166. addRedirector(
  2167. 'bit\\.ly\/\\w+',
  2168. "//a[contains(@href,'bit.ly/')]",
  2169. redirectorTypes.HTTP_302,
  2170. null);
  2171. }
  2172. }
  2173.  
  2174. }
  2175.  
  2176. var bulkHosts = new Array();
  2177. var bulkHostNames = new Array();
  2178. function initBulkCheck()
  2179. {
  2180. /////////////////////////////
  2181. // Inits filehost object
  2182. /////////////////////////////
  2183. // params :
  2184. // hostName -- [string] host name (multiple domains separated with coma)
  2185. // linkRegex -- [string] link regex
  2186. // xpath -- [string] xpath expression to detect the link objects with evaluate
  2187. // blockSize -- [integer] max. number of links sent in one request, 50 if null
  2188. // corrMatch -- [regex] link correction regex (match), applied prior to corrRepl
  2189. // corrReplWhat -- [regex] link correction regex (replace)
  2190. // corrReplWith -- [string]
  2191. // splitSeparator -- [string] POSTDATA links separator, "\r\n" if null
  2192. //
  2193. // apiUrl -- [string] web linkchecker or API URL
  2194. // postData -- [string] POSTDATA of xmlhttprequest
  2195. // resLinkRegex -- [regex]
  2196. // resLiveRegex -- [regex] matches substrings containing live links in the request response
  2197. // resDeadRegex -- [regex] matches substrings containing dead links in the request response
  2198. // resUnavaRegex -- [regex] matches substrings containing unava links in the request response
  2199. // func -- [function] bulkcheck handler, genBulkCheck if null
  2200. //
  2201. //////////////////////////////
  2202. function addHost(hostName, linkRegex, xpath, blockSize, corrMatch, corrReplWhat, corrReplWith, splitSeparator,
  2203. apiUrl, postData, resLinkRegex, resLiveRegex, resDeadRegex, resUnavaRegex, func)
  2204. {
  2205. var fileHost = new Object();
  2206.  
  2207. fileHost.linkRegex = linkRegex;
  2208. fileHost.linkRegexObject = new RegExp(linkRegex, "");
  2209. fileHost.xpath = xpath;
  2210. fileHost.cFound = 0; //found links counter
  2211. fileHost.links = new Array(); //found links
  2212. if (blockSize == null)
  2213. {
  2214. fileHost.blockSize = 50;
  2215. }
  2216. else
  2217. {
  2218. fileHost.blockSize = blockSize;
  2219. }
  2220. fileHost.corrMatch = corrMatch;
  2221. fileHost.corrReplWhat = corrReplWhat;
  2222. fileHost.corrReplWith = corrReplWith;
  2223. if (splitSeparator == null)
  2224. {
  2225. fileHost.splitSeparator = "\r\n";
  2226. }
  2227. else
  2228. {
  2229. fileHost.splitSeparator = splitSeparator;
  2230. }
  2231. fileHost.apiUrl = apiUrl;
  2232. fileHost.postData = postData;
  2233. fileHost.resLinkRegex = resLinkRegex;
  2234. fileHost.resLiveRegex = resLiveRegex;
  2235. fileHost.resDeadRegex = resDeadRegex;
  2236. fileHost.resUnavaRegex = resUnavaRegex;
  2237. if (func == null)
  2238. {
  2239. fileHost.func = genBulkCheck;
  2240. }
  2241. else
  2242. {
  2243. fileHost.func = func;
  2244. }
  2245. bulkHosts.push(fileHost);
  2246. var names = hostName.split(',');
  2247. var i = names.length;
  2248. while(i--)
  2249. {
  2250. bulkHostNames[names[i]] = fileHost;
  2251. }
  2252. }
  2253. var genType1 = [
  2254. "migahost.com", "rodfile.com", "downloadani.me",
  2255. "rarefile.net",
  2256. "filesabc.com", "sharebeast.com",
  2257. "180upload.com", "verzend.be",
  2258. "movreel.com",
  2259. "4up.me",
  2260. "file4safe.com", "filemac.com", "4upfiles.com",
  2261. "idup.in", "novafile.com", "longfiles.com",
  2262. "bitupload.com",
  2263. "uploadbaz.com"
  2264. ];
  2265. var genType2 = [ "queenshare.com",
  2266. "hulkload.com",
  2267. "amonshare.com", "edoc.com",
  2268. ];
  2269. //xfilesharing 1.0
  2270. function addGenericType1()
  2271. {
  2272. var i = genType1.length;
  2273. while(i--)
  2274. {
  2275. if (GM_getValue("Check_" + genType1[i].replace(/\./g, "_dot_").replace(/-/g, "_dash_") + "_links", false))
  2276. {
  2277. var regexSafe = genType1[i].replace(/\./g, "\\.").replace(/-/g, "\\-");
  2278. addHost(
  2279. genType1[i].match(/[\w-]+/)[0], //hostname
  2280. regexSafe + "\/\\w+", //linkregex
  2281. "//a[contains(@href,'" + genType1[i] + "/')]", //xpath
  2282. null, //blocksize
  2283. new RegExp("(http:\/\/(?:|www\\.)" + regexSafe + "\/\\w+)",""),//, //corrmatch
  2284. null, //corrreplwhat
  2285. null, //corrreplwith
  2286. null, //separator
  2287. "http://" + genType1[i] + "/checkfiles.html", //api url
  2288. "op=checkfiles&process=Check+URLs&list=", //postdata
  2289. new RegExp("(" + regexSafe + "\/\\w+)",""), //linkregex
  2290. new RegExp("green'>http:\/\/(?:|www\.)" + regexSafe + "\/\\w+","g"), //liveregex
  2291. new RegExp("red'>http:\/\/(?:|www\.)" + regexSafe + "\/\\w+","g"), //deadregex
  2292. new RegExp("orange'>http:\/\/(?:|www\.)" + regexSafe + "\/\\w+","g"), //unavaregex
  2293. null //function delegate
  2294. )
  2295. }
  2296. }
  2297. }
  2298. //xfilesharing 2.0
  2299. function addGenericType2()
  2300. {
  2301. var i = genType2.length;
  2302. while(i--)
  2303. {
  2304. if (GM_getValue("Check_" + genType2[i].replace(/\./g, "_dot_").replace(/-/g, "_dash_") + "_links", false))
  2305. {
  2306. var regexSafe = genType2[i].replace(/\./g, "\\.").replace(/-/g, "\\-");
  2307. addHost(
  2308. genType2[i].match(/[\w-]+/)[0], //hostname
  2309. regexSafe + "\/\\w+", //linkregex
  2310. "//a[contains(@href,'" + genType2[i] + "/')]", //xpath
  2311. null, //blocksize
  2312. new RegExp("(http:\/\/(?:|www\\.)" + regexSafe + "\/\\w+)",""),//, //corrmatch
  2313. null, //corrreplwhat
  2314. null, //corrreplwith
  2315. null, //separator
  2316. "http://www." + genType2[i] + "/?op=checkfiles", //api url
  2317. "op=checkfiles&process=Check+URLs&list=", //postdata
  2318. new RegExp("(" + regexSafe + "\/\\w+)",""), //linkregex
  2319. new RegExp(regexSafe + "\/\\w+.*?<\/td>\\s*<td style=\"color:green;\">","g"), //liveregex
  2320. new RegExp(regexSafe + "\/\\w+.*?<\/td>\\s*<td style=\"color:red;\">","g"), //deadregex
  2321. new RegExp(regexSafe + "\/\\w+.*?<\/td>\\s*<td style=\"color:orange;\">","g"), //unavaregex
  2322. null //function delegate
  2323. )
  2324. }
  2325. }
  2326. }
  2327. // TEMPLATE
  2328. // if (GM_getValue("Check__dot_com_links", false))
  2329. // {
  2330. // addHost(
  2331. // "", //hostname
  2332. // "", //linkregex
  2333. // "//a[contains(@href,'.com/')]", //xpath
  2334. // null, //blocksize
  2335. // null, //corrmatch
  2336. // null, //corrreplwhat
  2337. // null, //corrreplwith
  2338. // null, //separator
  2339. // "", //api url
  2340. // "", //postdata
  2341. // /()/, //linkregex
  2342. // //liveregex
  2343. // //deadregex
  2344. // //unavaregex
  2345. // null //function delegate
  2346. // )
  2347. // }
  2348. addGenericType1();
  2349. addGenericType2();
  2350.  
  2351. if (GM_getValue("Check_myvdrive_dot_com_links", false))
  2352. {
  2353. addHost(
  2354. "myvdrive,fileserving", //hostname
  2355. "(?:fileserving|myvdrive)\\.com\/files\/[\\w-]+", //linkregex
  2356. "//a[contains(@href,'fileserving.com/files') or contains(@href,'myvdrive.com/files')]", //xpath
  2357. null, //blocksize
  2358. null, //corrmatch
  2359. null, //corrreplwhat
  2360. null, //corrreplwith
  2361. null, //separator
  2362. "http://www.myvdrive.com/Public/linkchecker#", //api url
  2363. "links=", //postdata
  2364. /(?:fileserving|myvdrive)\.com\/(files\/\w+)/, //linkregex
  2365. /icon_file_check_valid"><\/span>\s*http:\/\/www\.(?:fileserving|myvdrive)\.com\/files\/[\w-]+/g, //liveregex
  2366. /icon_file_check_(?:removed|notvalid)"><\/span>\s*http:\/\/www\.(?:fileserving|myvdrive)\.com\/files\/[\w-]+/g, //deadregex
  2367. null, //unavaregex
  2368. null //function delegate
  2369. )
  2370. }
  2371. if (GM_getValue("Check_hackerbox_dot_org_links", false))
  2372. {
  2373. addHost(
  2374. "hackerbox", //hostname
  2375. "host\\.hackerbox\\.org\/\\w+", //linkregex
  2376. "//a[contains(@href,'host.hackerbox.org/')]", //xpath
  2377. null, //blocksize
  2378. /(http:\/\/host\.hackerbox\.org\/\w+)/, //corrmatch
  2379. null, //corrreplwhat
  2380. null, //corrreplwith
  2381. null, //separator
  2382. "http://host.hackerbox.org/checkfiles.html", //api url
  2383. "op=checkfiles&process=Check+URLs&list=", //postdata
  2384. /(host\.hackerbox\.org\/\w+)/, //linkregex
  2385. /green'>http:\/\/host\.hackerbox\.org\/\w+/g, //liveregex
  2386. /red'>http:\/\/host\.hackerbox\.org\/\w+/g, //deadregex
  2387. /orange'>http:\/\/host\.hackerbox\.org\/\w+/g, //unavaregex
  2388. null //function delegate
  2389. )
  2390. }
  2391. if (GM_getValue("Check_hellshare_dot_com_links", false))
  2392. {
  2393. addHost(
  2394. "hellshare", //hostname
  2395. "(?:|download\\.(?:cz\\.|en\\.|sk\\.|)|www\\.)hellshare\\.(?:com|sk|cz|pl|hu|COM|SK|CZ|PL|HU)\/[\\w-\\.]+\/(?:[\\w-\\.]+\/|)\\d{5,}", //linkregex
  2396. "//a[contains(@href,'hellshare.')]", //xpath
  2397. 48, //blocksize
  2398. null, //corrmatch
  2399. null, //corrreplwhat
  2400. null, //corrreplwith
  2401. null, //separator
  2402. null, //api url
  2403. null, //postdata
  2404. null, //linkregex
  2405. null, //liveregex
  2406. null, //deadregex
  2407. null, //unavaregex
  2408. hellshareBulkCheck //function delegate
  2409. )
  2410. }
  2411. if (GM_getValue("Check_ncrypt_dot_in_links", false))
  2412. {
  2413. addHost(
  2414. "ncrypt", //hostname
  2415. "ncrypt\\.in\/folder\\-\\w+", //linkregex
  2416. "//a[contains(@href,'ncrypt.in/folder')]", //xpath
  2417. 100000, //blocksize
  2418. null, //corrmatch
  2419. null, //corrreplwhat
  2420. null, //corrreplwith
  2421. null, //separator
  2422. null,
  2423. null,
  2424. null,
  2425. null,
  2426. null,
  2427. null,
  2428. ncryptBulkCheck //function delegate
  2429. )
  2430. }
  2431. if (GM_getValue("Check_geupload_dot_com_links", false))
  2432. {
  2433. addHost(
  2434. "geupload,lenfile", //hostname
  2435. "(?:geupload\\.com|lenfile\\.com)\/\\w+", //linkregex
  2436. "//a[contains(@href,'geupload.com/') or contains(@href,'lenfile.com/')]", //xpath
  2437. null, //blocksize
  2438. null, //corrmatch
  2439. null, //corrreplwhat
  2440. null, //corrreplwith
  2441. "\n", //separator
  2442. 'http://geupload.com/?op=checkfiles',
  2443. 'op=checkfiles&process=Check+URLs&list=',
  2444. />http:\/\/(?:geupload|lenfile)\.com\/(\w+)/,
  2445. />http:\/\/(?:geupload|lenfile)\.com\/\w+(?:[^>]+>)<td style=\"color\:green/g,
  2446. />http:\/\/(?:geupload|lenfile)\.com\/\w+(?:[^>]+>)<td style=\"color\:red/g,
  2447. null,
  2448. null
  2449. )
  2450. }
  2451. if (GM_getValue("Check_uploadrocket_dot_net_links", false))
  2452. {
  2453. addHost(
  2454. "uploadrocket", //hostname
  2455. "(?:uploadrocket\\.net)\/\\w+", //linkregex
  2456. "//a[contains(@href,'uploadrocket.net/')]", //xpath
  2457. null, //blocksize
  2458. null, //corrmatch
  2459. null, //corrreplwhat
  2460. null, //corrreplwith
  2461. "\n", //separator
  2462. 'http://uploadrocket.net/?op=checkfiles',
  2463. 'op=checkfiles&process=Check+URLs&list=',
  2464. /uploadrocket.net\/(\w+)/,
  2465. />http:\/\/uploadrocket.net\/\w+(?:[^>]+>)<td style="color:green/g,
  2466. />http:\/\/uploadrocket.net\/\w+(?:[^>]+>)<td style="color:red/g,
  2467. null,
  2468. null //function delegate
  2469. )
  2470. }
  2471. if (GM_getValue("Check_depositfiles_dot_com_links", false))
  2472. {
  2473. addHost(
  2474. "depositfiles,dfiles",
  2475. "(?:(?:depositfiles\\.(?:com|org|lt))|(?:dfiles\\.(?:ru|eu)))\/files\/|en/files\/\\w+",
  2476. "//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/')]",
  2477. 100000, //blocksize
  2478. null, //corrmatch
  2479. null, //corrreplwhat
  2480. null, //corrreplwith
  2481. null, //separator
  2482. null,
  2483. null,
  2484. null,
  2485. null,
  2486. null,
  2487. null,
  2488. depositfilesBulkCheck //function delegate
  2489. )
  2490. }
  2491. if (GM_getValue("Check_filepost_dot_com_links", false))
  2492. {
  2493. addHost(
  2494. "filepost,fp", //hostname
  2495. "(?:filepost\\.com\/files|fp\\.io)\/\\w+", //linkregex
  2496. "//a[contains(@href,'filepost.com/files/') or contains(@href,'fp.io/')]", //xpath
  2497. null, //blocksize
  2498. null, //corrmatch
  2499. null, //corrreplwhat
  2500. null, //corrreplwith
  2501. "\n", //separator
  2502. 'http://filepost.com/files/checker/?JsHttpRequest=0-xml',
  2503. 'urls=',
  2504. /\\\/files\\\/(\w+)/,
  2505. />http:\\\/\\\/filepost\.com\\\/files\\\/\w+(?:[^>]+>){5}(?:\\n|\\t)+<span class=\\"v\\"/g,
  2506. />http:\\\/\\\/filepost\.com\\\/files\\\/\w+(?:[^>]+>){5}(?:\\n|\\t)+<span class=\\"x\\"/g,
  2507. null,
  2508. null //function delegate
  2509. )
  2510. }
  2511. if (GM_getValue("Check_filesflash_dot_com_links", false))
  2512. {
  2513. addHost(
  2514. "filesflash", //hostname
  2515. "filesflash\\.com\/\\w+", //linkregex
  2516. "//a[contains(@href,'filesflash.com')]", //xpath
  2517. null, //blocksize
  2518. null, //corrmatch
  2519. /http:\/\//, //corrreplwhat
  2520. '', //corrreplwith
  2521. null, //separator
  2522. 'http://filesflash.com/checklinks.php',
  2523. 'submit=Go&links=',
  2524. /filesflash\.com\/(\w+)/,
  2525. /<td>filesflash\.com\/\w+<\/td>\s*<td>Available/g,
  2526. /<td>filesflash\.com\/\w+<\/td>\s*<td>(?:Invalid|Deleted|Expired|Banned)?<\/td>/g,
  2527. null,
  2528. null //function delegate
  2529. )
  2530. }
  2531. if (GM_getValue("Check_jumbofiles_dot_com_links", false))
  2532. {
  2533. addHost(
  2534. "jumbofiles", //hostname
  2535. "jumbofiles\\.com\/\\w+", //linkregex
  2536. "//a[contains(@href,'jumbofiles.com/')]", //xpath
  2537. null, //blocksize
  2538. /(http:\/\/(?:|www\.)jumbofiles\.com\/\w+)/, //corrmatch
  2539. null, //corrreplwhat
  2540. null, //corrreplwith
  2541. null, //separator
  2542. "http://jumbofiles.com/checkfiles.html", //api url
  2543. "op=checkfiles&process=Check+URLs&list=", //postdata
  2544. /(jumbofiles\.com\/\w+)/, //linkregex
  2545. /blue'>http:\/\/(?:|www\.)jumbofiles\.com\/\w+/g, //liveregex
  2546. /red'>http:\/\/(?:|www\.)jumbofiles\.com\/\w+/g, //deadregex
  2547. /orange'>http:\/\/(?:|www\.)jumbofiles\.com\/\w+/g, //unavaregex
  2548. null //function delegate
  2549. )
  2550. }
  2551. if (GM_getValue("Check_edisk_dot_cz_links", false))
  2552. {
  2553. addHost(
  2554. "edisk", //hostname
  2555. "(?:(?:muj|data)\\d*\\.|)edisk\\.(?:cz|sk|eu)\/(?:|(?:cz|sk|en|pl)\/)", //linkregex
  2556. "//a[contains(@href,'edisk.')]", //xpath
  2557. null, //blocksize
  2558. null, //corrmatch
  2559. /edisk\.\w{2}\/(?:|\w{2}\/)stahni/, //corrreplwhat
  2560. 'edisk.cz/stahni', //corrreplwith
  2561. null, //separator
  2562. 'http://www.edisk.cz/zkontrolovat-odkazy',
  2563. 'submitBtn=Zkontrolovat&checkFiles=',
  2564. /((?:download|stahn(?:i|out-soubor))\/\d+)/,
  2565. /"ano"\/>\s*<\/td>\s*<td>\s*http:\/\/.+/g,
  2566. /"ne"\/>\s*<\/td>\s*<td>\s*http:\/\/.+/g,
  2567. null,
  2568. null //function delegate
  2569. )
  2570. }
  2571. if (GM_getValue("Check_bezvadata_dot_cz_links", false))
  2572. {
  2573. GM_xmlhttpRequest( //age check skip
  2574. {
  2575. method: 'POST',
  2576. url: 'http://bezvadata.cz/vyhledavani/souhlas-zavadny-obsah',
  2577. headers: {
  2578. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  2579. 'Content-type': 'application/x-www-form-urlencoded',
  2580. 'Referer': ""
  2581. }
  2582. });
  2583. addHost(
  2584. "bezvadata", //hostname
  2585. "(?:beta\\.|)bezvadata\.cz\/stahnout\/\\d+\\w+", //linkregex
  2586. "//a[contains(@href,'bezvadata.cz')]", //xpath
  2587. null, //blocksize
  2588. null, //corrmatch
  2589. null, //corrreplwhat
  2590. null, //corrreplwith
  2591. null, //separator
  2592. 'http://bezvadata.cz/nastroje/kontrola-odkazu?do=kontrolaOdkazuForm-submit',
  2593. 'zkontrolovat=Zkontrolovat&odkazy=',
  2594. /(bezvadata\.cz\/stahnout\/\d+)/,
  2595. /bezvadata\.cz\/stahnout\/.+?<\/td>\s*<td style="background-color: #d9ffb2/g,
  2596. /bezvadata\.cz\/stahnout\/.+?<\/td>\s*<td style="background-color: #ffb2b2/g,
  2597. null,
  2598. null //function delegate
  2599. )
  2600. }
  2601. if (GM_getValue("Check_linkcrypt_dot_ws_links", false))
  2602. {
  2603. addHost(
  2604. "linkcrypt", //hostname
  2605. "linkcrypt\\.ws\/dir\/\\w+", //linkregex
  2606. "//a[contains(@href,'linkcrypt.ws/dir')]", //xpath
  2607. 100000, //blocksize
  2608. null, //corrmatch
  2609. null, //corrreplwhat
  2610. null, //corrreplwith
  2611. null, //separator
  2612. null,
  2613. null,
  2614. null,
  2615. null,
  2616. null,
  2617. null,
  2618. linkcryptBulkCheck //function delegate
  2619. )
  2620. }
  2621. if (GM_getValue("Check_linksave_dot_in_links", false))
  2622. {
  2623. addHost(
  2624. "linksave", //hostname
  2625. "linksave\\.in\/\\w+", //linkregex
  2626. "//a[contains(@href,'linksave.in')]", //xpath
  2627. 100000, //blocksize
  2628. null, //corrmatch
  2629. null, //corrreplwhat
  2630. null, //corrreplwith
  2631. null, //separator
  2632. null,
  2633. null,
  2634. null,
  2635. null,
  2636. null,
  2637. null,
  2638. linksaveBulkCheck //function delegate
  2639. )
  2640. }
  2641. if (GM_getValue("Check_videobb_dot_com_links", false))
  2642. {
  2643. addHost(
  2644. "videobb", //hostname
  2645. "videobb\\.com\/(?:video\/|watch_video\\.php\\?v=)\\w+", //linkregex
  2646. "//a[contains(@href,'videobb.com')]", //xpath
  2647. null, //blocksize
  2648. null, //corrmatch
  2649. /watch_video\.php\?v=/, //corrreplwhat
  2650. 'video/', //corrreplwith
  2651. null, //separator
  2652. 'http://www.videobb.com/link_checker.php',
  2653. 'links=',
  2654. /videobb\.com\/video\/(\w+)/,
  2655. /<td>http:\/\/(?:www\.|)videobb.com\/video\/\w+<\/td>\s+<td>.+?<\/td>\s+<td>\d+:\d+<\/td>\s+<td>Available/g,
  2656. /<td>http:\/\/(?:www\.|)videobb.com\/video\/\w+<\/td>\s+<td><\/td>\s+<td>N\/A<\/td>\s+<td>Not Available/g,
  2657. null,
  2658. null //function delegate
  2659. )
  2660. }
  2661. if (GM_getValue("Check_cramit_dot_in_links", false))
  2662. {
  2663. addHost(
  2664. "cramit,cramitin", //hostname
  2665. "cramit(?:\\.in|in\\.net)\/", //linkregex
  2666. "//a[contains(@href,'cramitin.net') or contains(@href,'cramit.in')]", //xpath
  2667. null, //blocksize
  2668. null, //corrmatch
  2669. null, //corrreplwhat
  2670. null, //corrreplwith
  2671. null, //separator
  2672. 'http://cramit.in/checkfiles.html',
  2673. 'op=checkfiles&process=CHECK+URL%27S&list=',
  2674. /(cramit(?:\.in|in\.net)\/\w+)/,
  2675. /green>http:\/\/(?:www\.|)cramit(?:\.in|in\.net)\/\w+/g,
  2676. /red'>http:\/\/(?:www\.|)cramit(?:\.in|in\.net)\/\w+/g,
  2677. /orange'>http:\/\/(?:www\.|)cramit(?:\.in|in\.net)\/\w+/g,
  2678. null //function delegate
  2679. )
  2680. }
  2681. if (GM_getValue("Check_turbobit_dot_net_links", false))
  2682. {
  2683. addHost(
  2684. "turbobit", //hostname
  2685. "turbobit\\.(?:net|pl)\/(?:\\w+\/|).+?\\.html", //linkregex
  2686. "//a[contains(@href,'turbobit.')]", //xpath
  2687. null, //blocksize
  2688. /(turbobit\.(?:net|pl)\/(?:\w+\/|).+?\.html)/, //corrmatch
  2689. null, //corrreplwhat
  2690. null, //corrreplwith
  2691. "\n", //separator
  2692. 'http://turbobit.net/linkchecker/csv',
  2693. 'links_to_check=',
  2694. /(turbobit\.(?:net|pl)\/\w+)/,
  2695. /turbobit\.(?:net|pl)\/.*?, 1/g,
  2696. /turbobit\.(?:net|pl)\/.*?, 0/g,
  2697. null,
  2698. null //function delegate
  2699. )
  2700. }
  2701. if (GM_getValue("Check_filerio_dot_com_links", false))
  2702. {
  2703. addHost(
  2704. "filekeen,filerio", //hostname
  2705. //"file(?:keen|rio)\\.(?:com|in)\/\\w+\/.", //linkregex
  2706. "file(?:keen|rio)\\.(?:com|in)\/\\w+", //linkregex
  2707. "//a[contains(@href,'filekeen.com') or contains(@href,'filerio.')]", //xpath
  2708. null, //blocksize
  2709. null, //corrmatch
  2710. null, //corrreplwhat
  2711. null, //corrreplwith
  2712. null, //separator
  2713. 'http://filerio.in/checkfiles.html',
  2714. 'op=checkfiles&process=Check+URLs&list=',
  2715. /(file(?:keen|rio)\.(?:com|in)\/\w+)/,
  2716. /green'>http:\/\/(?:www\.|)file(?:keen|rio)\.(?:com|in)\/\w+/g,
  2717. /red'>http:\/\/(?:www\.|)file(?:keen|rio)\.(?:com|in)\/\w+/g,
  2718. /orange'>http:\/\/(?:www\.|)file(?:keen|rio)\.(?:com|in)\/\w+/g,
  2719. null //function delegate
  2720. )
  2721. }
  2722. if (GM_getValue("Check_share_dash_online_dot_biz_links", false))
  2723. {
  2724. addHost(
  2725. "share-online,egoshare", //hostname
  2726. "(?:share-online\\.biz|egoshare\\.com)\/(?:dl\/|download\\.php\\?id=)", //linkregex
  2727. "//a[contains(@href,'share-online.biz') or contains(@href,'egoshare.com')]", //xpath
  2728. null, //blocksize
  2729. /http:\/\/(?:www\.)?(?:share-online\.biz|egoshare\.com)\/d(?:l\/|ownload\.php\?id=)(\w+)/, //corrmatch
  2730. null, //corrreplwhat
  2731. null, //corrreplwith
  2732. "\n", //separator
  2733. 'http://api.share-online.biz/linkcheck.php',
  2734. 'links=',
  2735. /(\w+);(?:OK|NOTFOUND|DELETED)/,
  2736. /\w+;OK/g,
  2737. /\w+;(?:NOTFOUND|DELETED)/g,
  2738. null,
  2739. null //function delegate
  2740. )
  2741. }
  2742. if (GM_getValue("Check_quickshare_dot_cz_links", false))
  2743. {
  2744. addHost(
  2745. "quickshare", //hostname
  2746. "quickshare\\.cz\/stahnout-soubor\/\\d+", //linkregex
  2747. "//a[contains(@href,'quickshare.cz')]", //xpath
  2748. null, //blocksize
  2749. null, //corrmatch
  2750. null, //corrreplwhat
  2751. null, //corrreplwith
  2752. null, //separator
  2753. 'http://www.quickshare.cz/nastroje/link-checker',
  2754. 'linky=',
  2755. /quickshare\.cz\/stahnout-soubor\/(\d+(?::\w+)?)/,
  2756. /quickshare\.cz\/stahnout-soubor\/\d+(?::[\w\-.+$!*\/()\[\]\',~%?:@#&=\\]+)?\s*<\/a><\/td><td><img src="\/img\/ok\.gif/g,
  2757. /quickshare\.cz\/stahnout-soubor\/\d+(?::[\w\-.+$!*\/()\[\]\',~%?:@#&=\\]+)?\s*<\/td><td><img src="\/img\/nenalezeno\.gif/g,
  2758. null,
  2759. null //function delegate
  2760. )
  2761. }
  2762. if (GM_getValue("Check_netload_dot_in_links", false))
  2763. {
  2764. addHost(
  2765. "netload", //hostname
  2766. "netload\\.in\/datei\\w{10}", //linkregex
  2767. "//a[contains(@href,'netload.in')]", //xpath
  2768. null, //blocksize
  2769. null, //corrmatch
  2770. null, //corrreplwhat
  2771. null, //corrreplwith
  2772. "\n", //separator
  2773. "http://api.netload.in/index.php?id=2", //api url
  2774. "send=Absenden&links=", //postdata
  2775. /(\w+);/, //linkregex
  2776. /\w{10,};.+?;.+?;online/g, //liveregex
  2777. /\w{10,};.+?;.+?;offline/g, //deadregex
  2778. null, //unavaregex
  2779. //netloadBulkCheck //function delegate //disabled on probation since 1.2.4.5
  2780. null //function delegate
  2781. )
  2782. }
  2783. if (GM_getValue("Check_oboom_dot_com_links", false))
  2784. {
  2785. addHost(
  2786. "oboom", //hostname
  2787. "oboom\\.com\/#?\\w{8}", //linkregex
  2788. "//a[contains(@href,'oboom.com/')]", //xpath
  2789. null, //blocksize
  2790. /oboom\.com\/#?(\w{8})/, //corrmatch
  2791. null, //corrreplwhat
  2792. null, //corrreplwith
  2793. null, //separator
  2794. null,
  2795. null,
  2796. null,
  2797. null, //liveregex
  2798. null, //deadregex
  2799. null,
  2800. oboomBulk //function delegate
  2801. )
  2802. }
  2803. if (GM_getValue("Check_mega_dot_nz_links", false))
  2804. {
  2805. addHost(
  2806. "mega",
  2807. "mega(?:\\.co)?\\.nz\/#!\\w+",
  2808. "//a[contains(@href,'mega.co.nz/') or contains(@href,'mega.nz/')]",
  2809. 100000, //blocksize
  2810. null, //corrmatch
  2811. null, //corrreplwhat
  2812. null, //corrreplwith
  2813. null, //separator
  2814. null,
  2815. null,
  2816. null,
  2817. null,
  2818. null,
  2819. null,
  2820. megaBulkCheck //function delegate
  2821. )
  2822. }
  2823.  
  2824. //the same as GenType2, except api url is 'https://' instead of 'http://www.' and corrmatch is not??? needed
  2825.  
  2826. if (GM_getValue("Check_extabit_dot_com_links", false))
  2827. {
  2828. addHost(
  2829. "extabit", //hostname
  2830. "extabit\\.com\/file\/\\w+", //linkregex
  2831. "//a[contains(@href,'extabit.com')]", //xpath
  2832. null, //blocksize
  2833. null, //corrmatch
  2834. null, //corrreplwhat
  2835. null, //corrreplwith
  2836. "\n", //separator
  2837. "http://extabit.com/linkchecker.jsp", //api url
  2838. "url=", //postdata
  2839. /extabit\.com\/(file\/\w+)/, //linkregex
  2840. /extabit\.com\/file\/\w+\/[^<]+<\/a><\/td>\s*<td class="status"><span class="status_green">/g, //liveregex
  2841. /extabit\.com\/file\/\w+\/[^<]+<\/a><\/td>\s*<td class="status"><span class="status_red">/g, //deadregex
  2842. /extabit\.com\/file\/\w+\/[^<]+<\/a><\/td>\s*<td class="status"><span class="status_yellow">/g, //unavaregex
  2843. extabitBulkCheck //function delegate
  2844. )
  2845. }
  2846. if (GM_getValue("Check_junocloud_dot_me_links", false))
  2847. {
  2848. addHost(
  2849. "junocloud", //hostname
  2850. "junocloud\\.me\/\\w+", //linkregex
  2851. "//a[contains(@href,'junocloud.me')]", //xpath
  2852. null, //blocksize
  2853. null, //corrmatch
  2854. null, //corrreplwhat
  2855. null, //corrreplwith
  2856. "\n", //separator
  2857. "http://junocloud.me/checkfiles.html", //api url
  2858. "op=checkfiles&process=Check+URLs&list=", //postdata
  2859. /(junocloud\.me\/\w+)/, //linkregex
  2860. /<a href="http:\/\/junocloud\.me\/\w+[^<]+<\/a>\s*<span style="color: green/g, //liveregex
  2861. /<a href="http:\/\/junocloud\.me\/\w+[^<]+<\/a>\s*<span style="color: red/g, //deadregex
  2862. null, //unavaregex
  2863. null //function delegate
  2864. )
  2865. }
  2866. if (GM_getValue("Check_webshare_dot_cz_links", false))
  2867. {
  2868. addHost(
  2869. "webshare", //hostname
  2870. "webshare\.cz\/(?:(?:#/)?file/\\w+|\\w+-.*)", //linkregex
  2871. "//a[contains(@href,'webshare.cz')]", //xpath
  2872. 100000, //blocksize
  2873. null, //corrmatch
  2874. null, //corrreplwhat
  2875. null, //corrreplwith
  2876. null, //separator
  2877. null, //api url
  2878. null, //postdata
  2879. null, //linkregex
  2880. null, //liveregex
  2881. null, //deadregex
  2882. null, //unavaregex
  2883. webshareBulkCheck //function delegate
  2884. )
  2885. }
  2886. /////////////////////////////
  2887. // Common function delegate to send links to get checked by host linkchecker
  2888. /////////////////////////////
  2889. // If you define a new delegate, you may use following properties
  2890. // this.links [array] array of strings (link blocks). The links in each block separated with host.splitSeparator.
  2891. // this.apiUrl [string] API or web linkchecker URL
  2892. // this.postData [string] POSTDATA for POST request
  2893. // this.resLiveRegex [regex] matches live substrings in the request response
  2894. // this.resDeadRegex [regex] matches dead substrings in the request response
  2895. // this.resUnavaRegex [regex] matches unava substrings in the request response (the regex is often null!)
  2896. //
  2897. // this.resLinkRegex [regex] matches links further passed to DisplayTheCheckedLinks
  2898. //
  2899. // See the code below for standard bulkcheck handling reference.
  2900. //////////////////////////////
  2901. function genBulkCheck()
  2902. {
  2903. var blockIdx = this.links.length;
  2904. while (blockIdx--)
  2905. {
  2906. postRequest(this.apiUrl, this.postData, this.links[blockIdx],
  2907. this.resLinkRegex, this.resLiveRegex, this.resDeadRegex, this.resUnavaRegex);
  2908. }
  2909. function postRequest(api, postData, links, linkRegex, liveRegex, deadRegex, unavaRegex)
  2910. {
  2911. GM_xmlhttpRequest(
  2912. {
  2913. method: 'POST',
  2914. url: api,
  2915. headers: {
  2916. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  2917. 'Content-type': 'application/x-www-form-urlencoded',
  2918. 'Referer': api,
  2919. 'X-Requested-With': 'XMLHttpRequest'
  2920. },
  2921. data: postData + encodeURIComponent(links),
  2922. onload: function (result)
  2923. {
  2924. var res = result.responseText;
  2925. // GM_log(res);
  2926. var i;
  2927.  
  2928. var livelinks = res.match(liveRegex);
  2929. var deadlinks = res.match(deadRegex);
  2930. // GM_log(livelinks);
  2931. // GM_log(deadlinks);
  2932. if (livelinks != null)
  2933. {
  2934. i = livelinks.length - 1;
  2935. do
  2936. {
  2937. livelinks[i] = livelinks[i].match(linkRegex)[1];
  2938. }
  2939. while (i--);
  2940. DisplayTheCheckedLinks(livelinks, 'alive_link');
  2941. }
  2942.  
  2943. if (deadlinks != null)
  2944. {
  2945. i = deadlinks.length - 1;
  2946. do
  2947. {
  2948. deadlinks[i] = deadlinks[i].match(linkRegex)[1];
  2949. }
  2950. while (i--);
  2951. DisplayTheCheckedLinks(deadlinks, 'adead_link');
  2952. }
  2953.  
  2954. if (unavaRegex != null)
  2955. {
  2956. var unavalinks = res.match(unavaRegex);
  2957. if (unavalinks)
  2958. {
  2959. i = unavalinks.length - 1;
  2960. do
  2961. {
  2962. unavalinks[i] = unavalinks[i].match(linkRegex)[1];
  2963. }
  2964. while (i--);
  2965. DisplayTheCheckedLinks(unavalinks, 'unava_link');
  2966. }
  2967. }
  2968. }
  2969. });
  2970. }
  2971. }
  2972. //specialized bulkchecking handlers follow
  2973. function webshareBulkCheck()
  2974. {
  2975. var arr = this.links[0].split("\r\n");
  2976. var i = arr.length;
  2977. while(i--)
  2978. {
  2979. postRequest(arr[i]);
  2980. }
  2981. //function postRequest(api, postData, links, linkRegex, liveRegex, deadRegex, unavaRegex)
  2982. function postRequest(wsLink)
  2983. {
  2984. var id = wsLink.match(/webshare\.cz\/(?:(?:#\/)?file\/)?(\w+)/)[1];
  2985. GM_xmlhttpRequest(
  2986. {
  2987. method: 'POST',
  2988. url: "http://webshare.cz/api/file_info/",
  2989. headers: {
  2990. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  2991. 'Content-type': 'application/x-www-form-urlencoded',
  2992. 'Referer': "",
  2993. },
  2994. data: "wst=&ident=" + id,
  2995. onload: function (result)
  2996. {
  2997. var res = result.responseText;
  2998. if (res.match(/<name>.+?<\/name>/))
  2999. {
  3000. DisplayTheCheckedLinks([id], 'alive_link');
  3001. }
  3002. else
  3003. {
  3004. DisplayTheCheckedLinks([id], 'adead_link');
  3005. }
  3006. }
  3007. });
  3008. }
  3009. }
  3010. //like genBulkCheck, but extabit linkchecker only works when logged in. If not logged in, non-bulk checking has to be used.
  3011. //extabit also doesn't like requests in fast succession, so some delays are added.
  3012. function extabitBulkCheck()
  3013. {
  3014. var timeoutDelay = 0;
  3015. var blockIdx = this.links.length;
  3016. while (blockIdx--)
  3017. {
  3018. postRequest(this.apiUrl, this.postData, this.links[blockIdx],
  3019. this.resLinkRegex, this.resLiveRegex, this.resDeadRegex, this.resUnavaRegex);
  3020. }
  3021. function postRequest(api, postData, links, linkRegex, liveRegex, deadRegex, unavaRegex)
  3022. {
  3023. GM_xmlhttpRequest(
  3024. {
  3025. method: 'POST',
  3026. url: api,
  3027. headers: {
  3028. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  3029. 'Content-type': 'application/x-www-form-urlencoded',
  3030. 'Referer': api,
  3031. 'X-Requested-With': 'XMLHttpRequest'
  3032. },
  3033. data: postData + encodeURIComponent(links),
  3034. onload: function (result)
  3035. {
  3036. var res = result.responseText;
  3037. if (/id="registration_header"/.test(res)) //not logged in, have to use non-bulk
  3038. {
  3039. function geturlfunc(link, tryID) //basically the geturl function with some changes (compacted, displaythecheckedlinkS, multiple tries)
  3040. {
  3041. //GM_log(tryID + ': ' + link);
  3042. GM_xmlhttpRequest(
  3043. {
  3044. method: 'GET',
  3045. url: link,
  3046. 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': ""},
  3047. onload: function(result2)
  3048. {
  3049. var res2 = result2.responseText;
  3050. var res2Status = result.status;
  3051. if (/download-file-btn/.test(res2)) {DisplayTheCheckedLinks([link], 'alive_link'); return;}
  3052. if (/Search mirrors|id="mirrb"/.test(res2) || res2Status==404) {DisplayTheCheckedLinks([link], 'adead_link'); return;}
  3053. if (/currently unavailable|temporarily unavailable|disponible en estos momentos|vorläufig unerreichbar|Файл временно недоступен/.test(res2) || res2Status == 500 || res2Status == 503)
  3054. {
  3055. if (tryID < 7)
  3056. setTimeout(function(){geturlfunc(link,tryID+1)}, tryID * 1000 + (Math.random() * tryID * 2000));
  3057. else
  3058. {DisplayTheCheckedLinks([link], 'unava_link'); return;}
  3059. }
  3060. }
  3061. });
  3062. }
  3063. //split the hrefs and check them one by one
  3064. GM_log('Using slow extabit.com link checking. Log in to extabit to use fast bulk checking.');
  3065. links = links.split('\n');
  3066. var i = links.length;
  3067. while (i--)
  3068. {
  3069. if (links[i])
  3070. {
  3071. (function(i){setTimeout(function(){geturlfunc(links[i],1)}, timeoutDelay);})(i);
  3072. timeoutDelay += 500;
  3073. }
  3074. }
  3075. return;
  3076. }
  3077. var i;
  3078.  
  3079. var livelinks = res.match(liveRegex);
  3080. var deadlinks = res.match(deadRegex);
  3081. if (livelinks != null)
  3082. {
  3083. i = livelinks.length - 1;
  3084. do
  3085. {
  3086. livelinks[i] = livelinks[i].match(linkRegex)[1];
  3087. }
  3088. while (i--);
  3089. DisplayTheCheckedLinks(livelinks, 'alive_link');
  3090. }
  3091.  
  3092. if (deadlinks != null)
  3093. {
  3094. i = deadlinks.length - 1;
  3095. do
  3096. {
  3097. deadlinks[i] = deadlinks[i].match(linkRegex)[1];
  3098. }
  3099. while (i--);
  3100. DisplayTheCheckedLinks(deadlinks, 'adead_link');
  3101. }
  3102.  
  3103. if (unavaRegex != null)
  3104. {
  3105. var unavalinks = res.match(unavaRegex);
  3106. if (unavalinks)
  3107. {
  3108. i = unavalinks.length - 1;
  3109. do
  3110. {
  3111. unavalinks[i] = unavalinks[i].match(linkRegex)[1];
  3112. }
  3113. while (i--);
  3114. DisplayTheCheckedLinks(unavalinks, 'unava_link');
  3115. }
  3116. }
  3117. }
  3118. });
  3119. }
  3120. }
  3121. function netloadBulkCheck()
  3122. {
  3123. var blockIdx = this.links.length;
  3124.  
  3125. while (blockIdx--)
  3126. {
  3127. postRequest(this.apiUrl, this.postData, this.links[blockIdx],
  3128. this.resLinkRegex, this.resLiveRegex, this.resDeadRegex, this.unavaRegex);
  3129. }
  3130. function postRequest(api, postData, links, linkRegex, liveRegex, deadRegex, unavaRegex)
  3131. {
  3132. GM_xmlhttpRequest(
  3133. {
  3134. method: 'POST',
  3135. url: api,
  3136. headers: {
  3137. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  3138. 'Content-type': 'application/x-www-form-urlencoded',
  3139. 'Referer': ""
  3140. },
  3141. data: postData + encodeURIComponent(links),
  3142. onload: function (result)
  3143. {
  3144. var res = result.responseText;
  3145. var i;
  3146.  
  3147. var livelinks = res.match(liveRegex);
  3148. var deadlinks = res.match(deadRegex);
  3149. if (livelinks != null)
  3150. {
  3151. i = livelinks.length - 1;
  3152. do
  3153. {
  3154. recheckLink(livelinks[i].match(linkRegex)[1]);
  3155. }
  3156. while(i--);
  3157. }
  3158.  
  3159. if (deadlinks != null)
  3160. {
  3161. i = deadlinks.length - 1;
  3162. do
  3163. {
  3164. deadlinks[i] = deadlinks[i].match(linkRegex)[1];
  3165. }
  3166. while (i--);
  3167. DisplayTheCheckedLinks(deadlinks, 'adead_link');
  3168. }
  3169. }
  3170. });
  3171. }
  3172. function recheckLink(link)
  3173. {
  3174. var link = link;
  3175. GM_xmlhttpRequest(
  3176. {
  3177. method: 'GET',
  3178. url: 'http://netload.in/datei' + link + '.htm',
  3179. headers: {
  3180. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3181. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  3182. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  3183. 'Referer': ""
  3184. },
  3185. onload: function (result)
  3186. {
  3187. var res = result.responseText;
  3188.  
  3189. if (res.match(/dl_first_file_download">|download_limit\.gif/))
  3190. {
  3191. DisplayTheCheckedLinks([link], 'alive_link');
  3192. return;
  3193. }
  3194.  
  3195. if (res.match(/achtung\.jpg"/))
  3196. {
  3197. DisplayTheCheckedLinks([link], 'adead_link');
  3198. }
  3199. },
  3200. onerror: function ()
  3201. {
  3202. displayTheCheckedLink(link, 'unava_link');
  3203. }
  3204. });
  3205. }
  3206. }
  3207.  
  3208. function depositfilesBulkCheck()
  3209. {
  3210. var arr = this.links[0].split("\r\n");
  3211. var i = arr.length;
  3212. var seqno = Math.floor(Math.random()*1000000000);
  3213. while(i--)
  3214. {
  3215. DFpostRequest(arr[i]);
  3216. }
  3217. }
  3218. function DFpostRequest(DFLink)
  3219. {
  3220. DFLink=DFLink.replace('depositfiles.lt/','depositfiles.com/');
  3221. DFLink=DFLink.replace('depositfiles.org/','depositfiles.com/');
  3222. DFLink=DFLink.replace('dfiles.ru/','depositfiles.com/');
  3223. DFLink=DFLink.replace('dfiles.eu/','depositfiles.com/');
  3224. DFLink=DFLink.replace('depositfiles.com/en/','depositfiles.com/');
  3225. var id = DFLink.match(/depositfiles\.com\/files\/(\w+)/)[1];
  3226. GM_xmlhttpRequest(
  3227. {
  3228. method: "GET",
  3229. url: "http://depositfiles.com/api/get_download_info.php?id=" + id + "&format=json",
  3230. headers: {
  3231. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3232. 'Content-Type': 'application/x-www-form-urlencoded',
  3233. 'Referer': ""
  3234. },
  3235. onload: function (result)
  3236. {
  3237. var res = result.responseText;
  3238. if (res.match('(?:no_file|file_ban)'))
  3239. {
  3240. DisplayTheCheckedLinks([id], 'adead_link');
  3241. return;
  3242. }
  3243. if (res.match('"download_li(?:nk|mit)|password_check|file_storage"'))
  3244. {
  3245. DisplayTheCheckedLinks([id], 'alive_link');
  3246. return;
  3247. }
  3248. DisplayTheCheckedLinks([id], 'unava_link');
  3249. }
  3250. });
  3251. }
  3252.  
  3253. function megaBulkCheck()
  3254. {
  3255. var arr = this.links[0].split("\r\n");
  3256. var i = arr.length;
  3257. var seqno = Math.floor(Math.random()*1000000000);
  3258. while(i--)
  3259. {
  3260. postRequest(arr[i]);
  3261. }
  3262. function postRequest(megaLink)
  3263. {
  3264. megaLink=megaLink.replace('mega.nz/','mega.co.nz/');
  3265. var id = megaLink.match(/mega\.co\.nz\/#!(\w+)(?:!\w+)?/)[1];
  3266. GM_xmlhttpRequest(
  3267. {
  3268. method: "POST",
  3269. url: 'https://g.api.mega.co.nz/cs?id=' + seqno++,
  3270. data: '[{"a":"g","p":"' + id + '","ssl": "1"}]',
  3271. headers: {
  3272. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3273. 'Content-Type': 'application/xml',
  3274. 'Referer': "https://mega.co.nz/"
  3275. },
  3276. onload: function (result)
  3277. {
  3278. var res = $.parseJSON(result.responseText.match(/\[(.+?)\]/)[1]);
  3279. if ((typeof res == "number" && (res == -9 || res == -16 || res == -6)) || res.d)
  3280. {
  3281.  
  3282. DisplayTheCheckedLinks([id], 'adead_link');
  3283. }
  3284. if (res.at)
  3285. {
  3286. DisplayTheCheckedLinks([id], 'alive_link');
  3287. }
  3288. if (res.e == "ETEMPUNAVAIL")
  3289. {
  3290. DisplayTheCheckedLinks([id], 'unava_link');
  3291. }
  3292. }
  3293. });
  3294. }
  3295.  
  3296. }
  3297.  
  3298. function oboomBulk() {
  3299. var a = [], b = [], c = [];
  3300. var array = this.links;
  3301.  
  3302. GM_xmlhttpRequest({
  3303. method: 'GET',
  3304. url: 'https://www.oboom.com/1/guestsession',
  3305. headers: {
  3306. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  3307. 'Content-type': 'application/x-www-form-urlencoded',
  3308. 'Referer': 'https://www.oboom.com',
  3309. 'X-Requested-With': 'XMLHttpRequest'
  3310. },
  3311. onload: function(result) {
  3312. var blockIdx = array.length;
  3313. var token = JSON.parse(result.responseText)[1];
  3314. while (blockIdx--) {
  3315. startCheck(array[blockIdx].split('\r\n'), token);
  3316. }
  3317. }
  3318. });
  3319.  
  3320. function startCheck(links, token) {
  3321. GM_xmlhttpRequest({
  3322. method: 'POST',
  3323. url: "https://api.oboom.com/1/info",
  3324. headers: {
  3325. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  3326. 'Content-type': 'application/x-www-form-urlencoded',
  3327. 'Referer': 'https://www.oboom.com/',
  3328. 'X-Requested-With': 'XMLHttpRequest'
  3329. },
  3330. data: "token=" + token + "&items=" + links.join(","),
  3331. onload: function(result) {
  3332. var res = JSON.parse(result.responseText)[1];
  3333. var i = res.length, s;
  3334.  
  3335. while (i--) {
  3336. s = res[i].state;
  3337. if (s == 'online') a.push(res[i].id);
  3338. 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);
  3339. else c.push(res[i].id);
  3340. }
  3341.  
  3342. if (a.length > 0) DisplayTheCheckedLinks(a, 'alive_link');
  3343. if (b.length > 0) DisplayTheCheckedLinks(b, 'adead_link');
  3344. if (c.length > 0) DisplayTheCheckedLinks(c, 'unava_link');
  3345. }
  3346. });
  3347. }
  3348. }
  3349. function linksaveBulkCheck()
  3350. {
  3351. var arr = this.links[0].split("\r\n");
  3352. var i = arr.length;
  3353. while(i--)
  3354. {
  3355. postRequest(arr[i]);
  3356. }
  3357. function postRequest(lsLink)
  3358. {
  3359. GM_xmlhttpRequest(
  3360. {
  3361. method: "GET",
  3362. url: lsLink + '-t.jpg',
  3363. headers: {
  3364. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3365. 'Accept': 'text/xml',
  3366. 'Referer': ""
  3367. },
  3368. onload: function (result)
  3369. {
  3370. var imgLen = result.responseHeaders.match(/Content-Length: (\d+)/)[1];
  3371. if (imgLen == 965) //online
  3372. {
  3373. DisplayTheCheckedLinks([lsLink], 'alive_link');
  3374. }
  3375.  
  3376. if (imgLen == 972) //offline
  3377. {
  3378. DisplayTheCheckedLinks([lsLink], 'adead_link');
  3379. }
  3380. if (imgLen == 978) //unava
  3381. {
  3382. DisplayTheCheckedLinks([lsLink], 'unava_link');
  3383. }
  3384. }
  3385. });
  3386. }
  3387.  
  3388. }
  3389. function linkcryptBulkCheck()
  3390. {
  3391. var arr = this.links[0].split("\r\n");
  3392. var i = arr.length;
  3393. while(i--)
  3394. {
  3395. postRequest(arr[i]);
  3396. }
  3397. function postRequest(lcLink)
  3398. {
  3399. GM_xmlhttpRequest(
  3400. {
  3401. method: "GET",
  3402. url: 'http://linkcrypt.ws/api.html?api=status_V1&folderKey=' + lcLink.match(/dir\/(\w+)/)[1],
  3403. headers: {
  3404. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3405. 'Accept': 'text/xml',
  3406. 'Referer': ""
  3407. },
  3408. onload: function (result)
  3409. {
  3410. var res = result.responseText;
  3411. if (res.match(/<errorCode>1101|folderStatus>[23]/)) //Offline status
  3412. {
  3413. DisplayTheCheckedLinks([lcLink], 'adead_link');
  3414. return;
  3415. }
  3416. if (res.match(/folderStatus>1/)) //Online status
  3417. {
  3418. DisplayTheCheckedLinks([lcLink], 'alive_link');
  3419. }
  3420. else
  3421. {
  3422. DisplayTheCheckedLinks([lcLink], 'unava_link');
  3423. }
  3424. }
  3425. });
  3426. }
  3427. }
  3428.  
  3429. function megashareBulkCheck()
  3430. {
  3431. var arr = this.links[0].split("\r\n");
  3432. var i = arr.length;
  3433. while(i--)
  3434. {
  3435. postRequest(arr[i]);
  3436. }
  3437. function postRequest(msLink)
  3438. {
  3439. GM_xmlhttpRequest(
  3440. {
  3441. method: "GET",
  3442. url: msLink,
  3443. headers: {
  3444. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3445. 'Content-Type': 'application/x-www-form-urlencoded',
  3446. 'Referer': ""
  3447. },
  3448. onload: function (result)
  3449. {
  3450. var prZVal = result.responseText.match(/name="(\d+prZVal)" value="(\d+)">/);
  3451. var btn3Name = result.responseText.match(/src="images\/dwn-btn3\.gif" name="(.+?)"/);
  3452. if ((prZVal == null) || (btn3Name == null))
  3453. {
  3454. return;
  3455. }
  3456. GM_xmlhttpRequest(
  3457. {
  3458. method: "POST",
  3459. url: msLink,
  3460. headers: {
  3461. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3462. 'Content-Type': 'application/x-www-form-urlencoded',
  3463. 'Referer': ""
  3464. },
  3465. data: prZVal[1] + "=" + prZVal[2] + '&' + btn3Name[1] + '.x=1&' + btn3Name[1] + '.y=1',
  3466. onload: function (result)
  3467. {
  3468. var res = result.responseText;
  3469. if (res.match(/<div id="err">/))
  3470. {
  3471. DisplayTheCheckedLinks([msLink.match(/\.com(\/\d+)/)[1]], 'adead_link');
  3472. }
  3473. else
  3474. {
  3475. DisplayTheCheckedLinks([msLink.match(/\.com(\/\d+)/)[1]], 'alive_link');
  3476. }
  3477. }
  3478. });
  3479. }
  3480. });
  3481. }
  3482. }
  3483. function ncryptBulkCheck()
  3484. {
  3485. var arr = this.links[0].split("\r\n");
  3486. var i = arr.length;
  3487. while(i--)
  3488. {
  3489. postRequest(arr[i]);
  3490. }
  3491. function postRequest(ncryptLink)
  3492. {
  3493. GM_xmlhttpRequest(
  3494. {
  3495. method: "POST",
  3496. url: 'http://ncrypt.in/api_status.php',
  3497. headers: {
  3498. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3499. 'Content-Type': 'application/x-www-form-urlencoded',
  3500. 'Referer': ""
  3501. },
  3502. data: 'link=' + encodeURI(ncryptLink),
  3503. onload: function (result)
  3504. {
  3505. var foldStatus = result.responseText.match(/(?:offline|online);/);
  3506. switch(foldStatus + ""){
  3507. case "offline;": DisplayTheCheckedLinks([ncryptLink], 'adead_link'); break;
  3508. case "online;": DisplayTheCheckedLinks([ncryptLink], 'alive_link'); break;
  3509. default: DisplayTheCheckedLinks([ncryptLink], 'unava_link');
  3510. }
  3511. }
  3512. });
  3513. }
  3514. }
  3515. function hellshareBulkCheck()
  3516. {
  3517. var links = this.links;
  3518. GM_xmlhttpRequest(
  3519. {
  3520. method: "GET",
  3521. url: 'http://www.hellshare.com',
  3522. headers: {
  3523. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3524. 'Accept': 'text/xml',
  3525. 'Referer': ""
  3526. },
  3527. onload: function (result)
  3528. {
  3529. var domain = result.responseText.match(/param_rau = "www\.hellshare\.(\w+)"/)[1];
  3530.  
  3531. var loc = 'check=Zkontrolovat+dostupnost+soubor%C5%AF&links=';
  3532. if (domain == 'sk')
  3533. loc = 'check=Skontrolova%C5%A5&links=';
  3534. if (domain == 'com')
  3535. loc = 'check=Check+availability&links=';
  3536. if (domain == 'hu')
  3537. loc = 'check=Kontrol%C3%A1lj&links=';
  3538. if (domain == 'pl')
  3539. loc = 'check=Sprawd%C5%BC+dost%C4%99pno%C5%9B%C4%87+plik%C3%B3w&links=';
  3540.  
  3541. genBulkCheck.call({ links: links,
  3542. apiUrl: 'http://www.hellshare.' + domain + '/linkchecker?do=linkChecker-linkcheckerform-submit',
  3543. postData: loc,
  3544. resLinkRegex: /hellshare\.(?:cz|com|sk|hu|pl)\/(?:[\w-\.]+\/|)([\w-\.]+\/\d{5,})/,
  3545. 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,
  3546. resDeadRegex: /<span style="color:gray">.*?<\/span> - <strong>/g,
  3547. resUnavaRegex: null
  3548. });
  3549. }
  3550. });
  3551. }
  3552. /**
  3553. * Displays check result
  3554. * @param {Array} Array of links or link fragments.
  3555. * @param {String} Check result status -> ['alive_link'|'adead_link'|'unava_link']
  3556. */
  3557. function DisplayTheCheckedLinks(links, resultStatus)
  3558. {
  3559. //(a[href*=link_1], a[href*=link_2], ..., a[href*=link_n])
  3560. var $links = $('a[href*="' + links.join('"], a[href*="') + '"]');
  3561. if (Do_not_linkify_DL_links)
  3562. { //TODO into separate jQuery function
  3563. $links.replaceWith(function(){
  3564. return '<span href="' + this.href + '">' + $(this).text() + '</span>';
  3565. });
  3566. $links = $('span[href*="' + links.join('"], span[href*="') + '"]');
  3567. }
  3568. $links.removeClass().addClass(resultStatus);
  3569. $links.each(function() {
  3570. this.href = Ref_anonymize_service + $(this).attr("href");
  3571. });
  3572. switch(resultStatus)
  3573. {
  3574. case "alive_link": cLinksAlive += $links.length;
  3575. if (Display_tooltip_info) $links.mouseover(displayTooltipInfo);
  3576. break;
  3577. case "adead_link": cLinksDead += $links.length;
  3578. if (Display_tooltip_info) $links.mouseover(displayTooltipError);
  3579. break;
  3580. case "unava_link": cLinksUnava += $links.length; break;
  3581. default:
  3582. }
  3583. cLinksProcessed += $links.length;
  3584. }
  3585. }
  3586. // starts bulkchecking
  3587. //
  3588. // params
  3589. // filterId [string] restricts link detection with passed id attribute
  3590. function startBulkCheck(filterId)
  3591. {
  3592. var cHosts = bulkHosts.length;
  3593. if (cHosts == 0) //no filehostings selected
  3594. return;
  3595. // STEP 1 linkify the links
  3596. var linkifyRegex = '';
  3597. var hostIdx = cHosts;
  3598. while(hostIdx--)
  3599. {
  3600. linkifyRegex += bulkHosts[hostIdx].linkRegex + "|";
  3601. }
  3602. linkifyRegex = linkifyRegex.replace(/\|$/, '');
  3603. linkify(linkifyRegex);
  3604. //
  3605. //STEP 2 detect link objects
  3606. var xpathAll = '';
  3607. var hostIdx = cHosts;
  3608. while(hostIdx--)
  3609. {
  3610. xpathAll += bulkHosts[hostIdx].xpath + "|";
  3611. }
  3612. xpathAll = xpathAll.replace(/\]\|\/\/a\[/g, " or ");
  3613. xpathAll = xpathAll.replace(/\]\|/, ')]');
  3614. if (filterId != null) //insert id restriction in the xpath
  3615. {
  3616. xpathAll = xpathAll.replace(/\[/, "[@class='" + filterId + "' and (");
  3617. }
  3618. else
  3619. {
  3620. xpathAll = xpathAll.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  3621. }
  3622. var links = document.evaluate(xpathAll, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  3623. if (filterId == null)
  3624. {
  3625. cLinksTotal += links.snapshotLength;
  3626. }
  3627. //
  3628. //STEP 3 bind links with hostings
  3629. var linkIdx = links.snapshotLength;
  3630. var href = null;
  3631. if (linkIdx == 0) // no links found
  3632. return;
  3633. var name;
  3634. while (linkIdx--)
  3635. {
  3636. href = links.snapshotItem(linkIdx).href;
  3637. try // DO NOT REMOVE, filters crap that went through xpath detection
  3638. {
  3639. name = gimmeHostName(href);
  3640. if (href.match(bulkHostNames[name].linkRegexObject) != null)
  3641. bulkHostNames[name].links.push(href);
  3642. }
  3643. catch(e)
  3644. {
  3645.  
  3646. }
  3647. }
  3648. //
  3649. //STEP 4 process the links for each filehosting
  3650. var hostIdx = cHosts;
  3651. var host;
  3652. var m,n;
  3653. var arr;
  3654. while (hostIdx--)
  3655. {
  3656. host = bulkHosts[hostIdx];
  3657. arr = host.links;
  3658. if (arr.length == 0) //no links for this hosting, skip
  3659. {
  3660. continue;
  3661. }
  3662. //links match corrections
  3663. if (host.corrMatch != null)
  3664. {
  3665. var idx = arr.length;
  3666. while (idx--)
  3667. {
  3668. arr[idx] = arr[idx].match(host.corrMatch)[1];
  3669. }
  3670. }
  3671. //links replace corrections
  3672. if ((host.corrReplWhat != null) && (host.corrReplWith != null))
  3673. {
  3674. var idx = arr.length;
  3675. while (idx--)
  3676. {
  3677. arr[idx] = arr[idx].replace(host.corrReplWhat, host.corrReplWith);
  3678. }
  3679. }
  3680. m = arr.length;
  3681. n = host.blockSize;
  3682. if (m > n)
  3683. {
  3684. //insert block separators (RAND_STRING) into the array
  3685. for(var i = n; i < m; i += n + 1)
  3686. {
  3687. arr.splice(i, 0, RAND_STRING);
  3688. }
  3689. }
  3690.  
  3691. host.func.call({ links: arr.join(host.splitSeparator).split(RAND_STRING),
  3692. apiUrl: host.apiUrl,
  3693. postData: host.postData,
  3694. resLinkRegex: host.resLinkRegex,
  3695. resLiveRegex: host.resLiveRegex,
  3696. resDeadRegex: host.resDeadRegex,
  3697. resUnavaRegex: host.resUnavaRegex
  3698. });
  3699. //clean up
  3700. arr.length = 0;
  3701. }
  3702. //
  3703.  
  3704. function gimmeHostName(link)
  3705. {
  3706. return link.replace(/https?:\/\/.*?http(s)?:\/\//, "http$1://").match(/https?:\/\/(?:www\.|[\w\.])*?([\w-]+)\.(?:co\.uk|co\.nz|\w+)\//)[1];
  3707. }
  3708. }
  3709. function checkLinks(filterId)
  3710. {
  3711. startBulkCheck(filterId);
  3712. start(filterId);
  3713. }
  3714.  
  3715. /**
  3716. * Initialises progress box including event binding and CSS
  3717. */
  3718. function initProgressBox()
  3719. {
  3720. if ($("#warlc-progressbox").length > 0)
  3721. return;
  3722. //progressbox css change size and color of progress box
  3723. GM_addStyle("#warlc-progressbox {position:fixed; background:DimGray;" + Progress_box_background_color +
  3724. "; opacity:" + (Progress_box_opacity / 100) +
  3725. "; bottom:" + Progress_box_pos_bottom +
  3726. "px; right:" + Progress_box_pos_right +
  3727. "px; padding:5px; font-size:20px; font-weight:bold; cursor:default;}\
  3728. \
  3729. .warlc-progressbar {text-align:center; color: DimGray; height:2px; margin-bottom:2px;}\
  3730. \
  3731. .warlc-progressitem {}\
  3732. \
  3733. .alive {color:#00FF7F; " + Live_links_color +
  3734. "; background:transparent url(" + alive_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;} .dead {color:" + Dead_links_color +
  3735. "; background:transparent url(" + adead_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;} .unava {color: " + Temp_unavailable_links_color +
  3736. "; background:transparent url(" + unava_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;} .processing {color:Black; " + Container_links_color +
  3737. "; background:transparent url(" + processing_link_gif + ") no-repeat scroll 100% 50%;padding-right:15px;} .prem {color:" + Premium_links_color +
  3738. "; background:transparent url(" + prem_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;}"
  3739. );
  3740. //
  3741. $('body').append(' <div id="warlc-progressbox">\
  3742. <div class="warlc-progressbar"></div>\
  3743. <span class="warlc-progressitem alive"></span> - \
  3744. <span class="warlc-progressitem dead"></span> - \
  3745. <span class="warlc-progressitem unava"></span> - \
  3746. <span class="warlc-progressitem prem"></span> - \
  3747. <span class="warlc-progressitem processing"></span>\
  3748. </div>');
  3749. $('#warlc-progressbox').hide().click(function(){
  3750. clearInterval(intervalId);
  3751. $(this).hide();
  3752. return false;
  3753. });
  3754. $(".warlc-progressbar").progressbar({complete: function(){
  3755. $(this).fadeOut();
  3756. clearInterval(intervalId); //stop refreshing the stats
  3757. }
  3758. })
  3759. .one('progressbarchange', function(){$('#warlc-progressbox').show();});
  3760. }
  3761. /**
  3762. * Updates progress data in progress box
  3763. */
  3764. function updateProgress()
  3765. {
  3766. $("#warlc-progressbox").attr('aria-valuenow', Math.round(((100 / cLinksTotal) * cLinksProcessed)));
  3767. if (cLinksTotal) // some links were detected on page
  3768. {
  3769. var percProgress = Math.round(((100 / cLinksTotal) * cLinksProcessed));
  3770. var $progressItems = $('#warlc-progressbox > .warlc-progressitem');
  3771. $(".warlc-progressbar").progressbar('option', 'value', percProgress);
  3772. if ((cLinksTotal - cLinksProcessed) == 0)
  3773. {
  3774. $progressItems.first().text(cLinksAlive)
  3775. .next().text(cLinksDead)
  3776. .next().text(cLinksUnava)
  3777. .next().text(cLinksprem)
  3778. .next().remove();
  3779. $('#warlc-progressbox').html($('#warlc-progressbox').html().substr(0,$('#warlc-progressbox').html().lastIndexOf(">")+1));
  3780. $('#warlc-progressbox div:first-child').remove();
  3781. }
  3782. else
  3783. {
  3784. $progressItems.first().text(cLinksAlive)
  3785. .next().text(cLinksDead)
  3786. .next().text(cLinksUnava)
  3787. .next().text(cLinksprem)
  3788. .next().text(cLinksTotal - cLinksProcessed);
  3789. }
  3790. }
  3791. }
  3792.  
  3793. function check_all_links()
  3794. {
  3795. add_WARLC_style();
  3796.  
  3797. if (Show_progress_stats)
  3798. {
  3799. initProgressBox();
  3800. intervalId = setInterval(function(){updateProgress();}, Progress_box_refresh_rate);
  3801. }
  3802.  
  3803. startBulkCheck(null);
  3804. start(null);
  3805.  
  3806. if (!containers_processed)
  3807. {
  3808. processContainers();
  3809. }
  3810. }
  3811.  
  3812. //Copies all found dead links to clipboard - right now for Scriptish only
  3813. function copy_dead_to_clipboard()
  3814. {
  3815. initClipBoardTools();
  3816.  
  3817. var deadlinksxpath = "//.[@class='adead_link']";
  3818.  
  3819. var foundlinks = document.evaluate(deadlinksxpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  3820. var foundlinkstext = '';
  3821.  
  3822. var foundlinkIdx = foundlinks.snapshotLength;
  3823.  
  3824. while(foundlinkIdx--)
  3825. {
  3826. if (foundlinks.snapshotItem(foundlinkIdx).innerHTML != ' x')
  3827. foundlinkstext += foundlinks.snapshotItem(foundlinkIdx).innerHTML.replace(/\[\/hide:\w+\]/,"") + '\n';
  3828. }
  3829.  
  3830. unsafeWindow.copyToClipboard(foundlinkstext);
  3831. }
  3832.  
  3833. function toggle_autocheck()
  3834. {
  3835. var currentState = GM_getValue("Autocheck", false);
  3836. GM_setValue("Autocheck", !currentState);
  3837.  
  3838. if (currentState == true)
  3839. {
  3840. sendMessage('Autocheck disabled', 'red');
  3841. }
  3842. else
  3843. {
  3844. sendMessage('Autocheck enabled', 'SpringGreen');
  3845. }
  3846. }
  3847. function toggle_Enable_Anonymizer()
  3848. {
  3849. var currentState = GM_getValue("Enable_Anonymizer", false);
  3850. GM_setValue("Enable_Anonymizer", !currentState);
  3851.  
  3852. if (currentState == true)
  3853. {
  3854. GM_setValue("Ref_anonymize_service", "");
  3855. sendMessage('Anonymizer Disabled', 'red');
  3856. }
  3857. else
  3858. {
  3859. GM_setValue("Ref_anonymize_service", "http://hiderefer.com/?");
  3860. sendMessage('Anonymizer Enabled', 'SpringGreen');
  3861. }
  3862. }
  3863.  
  3864. function KeyDownHandler(event)
  3865. {
  3866. var kcode = (event.keyCode) ? event.keyCode : event.which;
  3867. if (event.ctrlKey && event.altKey)
  3868. {
  3869. switch(kcode)
  3870. {
  3871. case 65 : check_all_links(); break;
  3872. case 67 : configuration(); break;
  3873. case 68 : copy_dead_to_clipboard(); break;
  3874. case 87 : toggle_autocheck(); break;
  3875. case 90 : toggle_Enable_Anonymizer(); break;
  3876. }
  3877. }
  3878. }
  3879.  
  3880. //
  3881. //
  3882. // SCRIPT EXECUTION START POINT
  3883. //
  3884. //
  3885. // Safari specific GM_getResourceText override
  3886. if (navigator.userAgent.indexOf('Safari') != -1 && navigator.userAgent.indexOf('Chrome') == -1)
  3887. {
  3888. GM_getResourceText = function(res) {
  3889. var $cssText = GM_getValue("jquery_css", "");
  3890. if ($cssText == "")
  3891. {
  3892. GM_xmlhttpRequest(
  3893. {
  3894. method: 'GET',
  3895. url: 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css',
  3896. onload: function (result)
  3897. {
  3898. GM_setValue("jquery_css", result.responseText);
  3899. window.location.reload();
  3900. }
  3901. });
  3902. }
  3903. else
  3904. {
  3905. return $cssText;
  3906. }
  3907. }
  3908. }
  3909. var jQueryUICSS = GM_getResourceText("jQueryUICSS");
  3910. GM_addStyle(jQueryUICSS);
  3911. //init the stuff
  3912. setVariables();
  3913. initBulkCheck();
  3914. //init info boxes
  3915. messageBox.style.position = 'fixed';
  3916. messageBox.style.top = '20px';
  3917. messageBox.style.left = '10px';
  3918. messageBox.style.opacity = '0.85';
  3919. messageBox.style.background = 'DimGray';
  3920. messageBox.style.fontSize = '36px';
  3921. document.body.appendChild(messageBox);
  3922.  
  3923. //register GM menu commands & keyboard shortcut event handler
  3924. if (Keyboard_functions)
  3925. {
  3926. $(document).keydown(KeyDownHandler);
  3927. GM_registerMenuCommand("[W.A.R. Links Checker] Configuration (" + first_key_keycodename + "+" + second_key_keycodename + "+" + String.fromCharCode(CONFIGURATION_KEYCODE) + ")", configuration);
  3928. 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);
  3929. }
  3930. else
  3931. {
  3932. GM_registerMenuCommand("[W.A.R. Links Checker] Configuration", configuration);
  3933. GM_registerMenuCommand("[W.A.R. Links Checker] Check The Links In This Page", check_all_links);
  3934. }
  3935.  
  3936. //start linkchecking
  3937. if (Autocheck)
  3938. {
  3939. $(document).ready(check_all_links);
  3940. }
  3941.  
  3942. //
  3943. //
  3944. // SCRIPT EXECUTION END POINT
  3945. //
  3946. //
  3947.  
  3948. //shows configuration box
  3949. function configuration()
  3950. {
  3951.  
  3952. //prevent multiple creating of config window
  3953. if ($("#hideshow").length)
  3954. {
  3955. $("#hideshow").show();
  3956. return;
  3957. }
  3958.  
  3959. var configcss = '\
  3960. .popup_block .popup fieldset{\
  3961. padding: 1%;\
  3962. border-style: solid;\
  3963. border-width: 1px;\
  3964. border-color: gray;\
  3965. margin-bottom: 1px;\
  3966. }\
  3967. #h3hideshowtitle{\
  3968. font-size: 2em;\
  3969. }\
  3970. #h3hideshow{\
  3971. font-size: 1.5em;\
  3972. }\
  3973. #imghideshow {\
  3974. border: none;\
  3975. }\
  3976. #plusimage{\
  3977. display:inline;\
  3978. }\
  3979. #hideshow {\
  3980. position: fixed;\
  3981. width: 100%;\
  3982. height: 100%;\
  3983. top: 0;\
  3984. left: 0;\
  3985. font-size:12px;\
  3986. z-index:2147483645;\
  3987. text-align:left;\
  3988. }\
  3989. #fade {\
  3990. background: #000;\
  3991. position: fixed;\
  3992. width: 100%;\
  3993. height: 100%;\
  3994. opacity: .80;\
  3995. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";\
  3996. left: 0;\
  3997. z-index: 10;\
  3998. }\
  3999. .popup_block {\
  4000. font-family:verdana;\
  4001. color:black;\
  4002. background: #ddd;\
  4003. padding: 10px 20px;\
  4004. border: 2px solid DarkOrange;\
  4005. float: left;\
  4006. width: 700px;\
  4007. position: absolute;\
  4008. top: 7%;\
  4009. left: 50%;\
  4010. bottom: 7%;\
  4011. margin: 0 0 0 -350px;\
  4012. -moz-border-radius:10px;\
  4013. z-index: 100;\
  4014. \
  4015. }\
  4016. .popup_block .popup {\
  4017. float: left;\
  4018. width: 100%;\
  4019. background: #fff;\
  4020. margin: 10px 0;\
  4021. padding: 0px 0 0px;\
  4022. border-left: 1px solid #bbb;\
  4023. border-top: 1px solid #bbb;\
  4024. border-right: 1px solid #bbb;\
  4025. }\
  4026. #h3hideshow{\
  4027. margin: 1px 0 0px;\
  4028. padding: 1px 10px;\
  4029. border-bottom: 1px solid #bbb;\
  4030. font-size: 1.5em;\
  4031. font-weight: normal;\
  4032. cursor:pointer;\
  4033. background:#DDDDDD none repeat scroll 0 0;\
  4034. }\
  4035. #h3hideshow:hover{\
  4036. background:#C0BEBE none repeat scroll 0 0;\
  4037. }\
  4038. #h3hideshowtitle{\
  4039. margin: 2px 0 0px;\
  4040. padding: 7px 10px;\
  4041. border-bottom: 1px solid #bbb;\
  4042. font-size: 1.5em;\
  4043. font-weight: normal;\
  4044. }\
  4045. .popup_block .popup a {\
  4046. color:DarkSkyBlue;\
  4047. text-decoration:none;\
  4048. }\
  4049. .popup p {\
  4050. padding: 1px 10px;\
  4051. margin: 0px 0;\
  4052. -x-system-font:none;\
  4053. font-family:verdana,geneva,lucida,"lucida grande",arial,helvetica,sans-serif;\
  4054. font-size:10pt;\
  4055. font-size-adjust:none;\
  4056. font-stretch:normal;\
  4057. font-style:normal;\
  4058. font-variant:normal;\
  4059. font-weight:normal;\
  4060. line-height:normal;\
  4061. }\
  4062. #sites {\
  4063. padding: 1px 10px;\
  4064. margin: 0px 0;display:inline-block;width:16em;\
  4065. }\
  4066. #dev_ver {\
  4067. color: #00FF00;\
  4068. background: Black;\
  4069. text-align: right;\
  4070. }\
  4071. #sites_suspended {\
  4072. padding: 1px 10px;\
  4073. margin: 0px 0;display:inline-block;width:16em;\
  4074. text-decoration: line-through;\
  4075. }\
  4076. .popup img.cntrl {\
  4077. position: absolute;\
  4078. right: -15px;\
  4079. top: -15px;\
  4080. }\
  4081. #bulk {\
  4082. font-size:8pt;\
  4083. color:orange;\
  4084. padding: 1px 10px;\
  4085. margin: 0px 0;\
  4086. display:inline-block;\
  4087. width:100px;\
  4088. }\
  4089. #note {\
  4090. font-size:7pt;\
  4091. color:gray;\
  4092. padding: 1px 10px;\
  4093. margin: 0px 0;display:inline-block;\
  4094. min-width:100px;\
  4095. }\
  4096. #rednote {\
  4097. font-size:7pt;\
  4098. color:red;\
  4099. padding: 1px 10px;\
  4100. margin: 0px 0;display:inline-block;\
  4101. }\
  4102. #configinfo {\
  4103. font-size:8pt;\
  4104. color:gray;\
  4105. padding: 1px 10px;\
  4106. margin: 0px 0;display:inline-block;width:60em;\
  4107. }\
  4108. #refAnonymizer, #inputColorLive, #inputColorprem, #hostSearchBox2, #hostSearchBox, #inputColorDead, #inputColorTemp, #inputColorCont, #selectAllButton, #selectNoneButton, #invertButton, #selectAllButton2, #selectNoneButton2, #invertButton2 {\
  4109. color:black;\
  4110. border-style: solid;\
  4111. border-width: 1px;\
  4112. border-color: gray;\
  4113. }\
  4114. #h3hideshowcontent {\
  4115. min-height:220px;\
  4116. max-height:220px;\
  4117. overflow:auto;\
  4118. display: none;\
  4119. padding: 10px 10px;\
  4120. }\
  4121. #specinfo{\
  4122. font-size:14px;\
  4123. }\
  4124. .warlc-ui-tab {\
  4125. height:300px;\
  4126. overflow:auto;\
  4127. }\
  4128. #warlcsitelist2, #warlcsitelist1 {\
  4129. height:220px;\
  4130. border-top: 1px solid #ddd;\
  4131. padding-top: 5px;\
  4132. overflow:auto;\
  4133. }\
  4134. input:hover+label {\
  4135. background:#F1F77C;\
  4136. font-size:110%;\
  4137. }\
  4138. ';
  4139.  
  4140. GM_addStyle(configcss);
  4141.  
  4142. var customRulesRefHTML =
  4143. '\
  4144. <br>\
  4145. A custom rule consists of <b>commands</b>. A command must be on its own line and in this form:<br>\
  4146. <b>@keyword</b> <i>parameter</i>\
  4147. <br><br>\
  4148. 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. \
  4149. <br><br>\
  4150. 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.\
  4151. 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.\
  4152. 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.\
  4153. 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,\
  4154. but all commands until the next valid @customrule are ignored.<br><br>\
  4155. Available forms and types:\
  4156. <ul>\
  4157. <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.\
  4158. <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.\
  4159. <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.\
  4160. <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.\
  4161. </ul>\
  4162. Other available commands:<br>\
  4163. (Note: There can be more than 1 (up to 10) of these commands per rule. In that case, any of them will work.)\
  4164. <ul>\
  4165. <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.\
  4166. It can also specify multiple (up to 10) Top Level Domains (.com, .net etc.)<br>\
  4167. <ul>examples:<br>\
  4168. <li>good: <i>filehost.com/download/</i><br>\
  4169. <li>good: <i>download.filehost.net/?d=</i><br>\
  4170. <li>good: <i>filehost. com net co.uk /</i> - multiple TLDs (note the spaces before, between and after TLDs)<br>\
  4171. <li>ok: <i>filehost.com/</i> - works, but will also find links like filehost.com/login etc. Sometimes it\'s unavoidable though.<br>\
  4172. <li>bad: <i>d8523.filehost.com/</i> - d8523 probably is not constant<br>\
  4173. <li>bad: <i>filehost.com/3bfiq5d1</i> - 3bfiq5d1 probably is not constant<br>\
  4174. <li>bad: <i>filehost.com</i> - no slash<br>\
  4175. </ul>\
  4176. \
  4177. <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.\
  4178. 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 \
  4179. &lt;div&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;p&gt; even if there are new lines, tabulators etc.\
  4180. <li><b>@deadmatch</b> <i>pattern</i> - ignored for OBSOLETE, required for others. (For HEADERS some servers return 404 Error \
  4181. 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.)\
  4182. Two spaces again match any whitespace.\
  4183. <li><b>@unavamatch</b> <i>pattern</i> - optional, ignored for OBSOLETE and HEADERS. If found, the link is deemed temporarily unavailable.\
  4184. Two spaces again match any whitespace.\
  4185. <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. \
  4186. <li><b>@deadlink</b> <i>url</i> - optional. Example dead link.\
  4187. </ul>\
  4188. \
  4189. ';
  4190.  
  4191. //close image and css taken from = http://www.sohtanaka.com/web-design/examples/css-popup icon_close.png;
  4192. var configurationinnerHTML =
  4193. '<div id="fade"></div>\
  4194. <div class="popup_block">\
  4195. <div class="popup">\
  4196. <a href="#"><img id="imghideshow" title="Close" class="cntrl" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAfCAYAAA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T+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>\
  4198. <div id="warlc-conf-tabs">\
  4199. <ul>\
  4200. <li><a href="#tabs-1">Filehostings</a></li>\
  4201. <li><a href="#tabs-2">Containers</a></li>\
  4202. <li><a href="#tabs-5">Custom rules</a></li>\
  4203. <li><a href="#tabs-3">Settings</a></li>\
  4204. <li><a href="#tabs-4">About</a></li>\
  4205. </ul>\
  4206. <div id="tabs-1" class="warlc-ui-tab">\
  4207. <div class="warlc-ui-buttonset">\
  4208. <input type="button" class="warlc-ui-select-all" value="Select All">\
  4209. <input type="button" class="warlc-ui-select-none" value="Select None">\
  4210. <input type="button" class="warlc-ui-select-invert" value="Invert">\
  4211. </div><br>\
  4212. <div>Search: <input type="textbox" id="hostSearchBox" value=""></div><br>\
  4213. <div id="warlcsitelist1"><span>Empty</span></div>\
  4214. </div>\
  4215. <div id="tabs-2" class="warlc-ui-tab">\
  4216. <div class="warlc-ui-buttonset">\
  4217. <input type="button" class="warlc-ui-select-all" value="Select All">\
  4218. <input type="button" class="warlc-ui-select-none" value="Select None">\
  4219. <input type="button" class="warlc-ui-select-invert" value="Invert">\
  4220. </div><br>\
  4221. <div>Search: <input type="textbox" id="hostSearchBox2" value=""></div><br>\
  4222. <div id="warlcsitelist2"><span>Empty</span></div>\
  4223. </div>\
  4224. <div id="tabs-5" class="warlc-ui-tab">\
  4225. <div class="warlcsettings">\
  4226. <fieldset><input type="checkbox" id="Custom_rules"> Enable custom rules <div id="bulk">EXPERIMENTAL</div></fieldset>\
  4227. <br>\
  4228. <div>Edit custom rules: \
  4229. <a href="#" id="showCustomRulesReference">(<b>Click here to show/hide the reference</b>)</a>\
  4230. <div id="customRulesReference" style="display:none;">'
  4231. + customRulesRefHTML + '\
  4232. </div>\
  4233. <textarea style="width:100%;height:200px;" id="Custom_rules_text"></textarea>\
  4234. </div>\
  4235. </div>\
  4236. </div>\
  4237. <div id="tabs-3" class="warlc-ui-tab">\
  4238. <div class="warlcsettings">\
  4239. <fieldset>\
  4240. <p><input type="checkbox" id="Keyboard_functions"> Enable keyboard shortcuts</p>\
  4241. <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>\
  4242. </fieldset>\
  4243. <fieldset>\
  4244. <p><input type="checkbox" id="Color_DL_links"> Color DL links</p>\
  4245. <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>\
  4246. <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>\
  4247. <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>\
  4248. <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>\
  4249. <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>\
  4250. <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>\
  4251. <p><input type="checkbox" id="Show_line_through_in_dead_links"> Show line through in dead links</p>\
  4252. <p><input type="checkbox" id="Show_black_background_in_DL_links"> Show black background in DL links</p>\
  4253. <p><input type="checkbox" id="Do_not_linkify_DL_links"> Do NOT linkify DL links</p>\
  4254. <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>\
  4255. <p><input type="checkbox" id="Display_full_links_in_link_containers"> Display full links in link containers</p><br>\
  4256. <fieldset>\
  4257. <p><input type="radio" name="warlciconset" value="0"> No icons</p>\
  4258. <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>\
  4259. <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>\
  4260. <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>\
  4261. </fieldset>\
  4262. </fieldset>\
  4263. <fieldset>\
  4264. <div id="sites"><input type="checkbox" id="Autocheck"> Autocheck</div><br><div id="configinfo">Script starts check automatically.</div><br>\
  4265. </fieldset>\
  4266. <fieldset>\
  4267. <div id="sites"><input type="checkbox" id="Show_progress_stats"> Show progress stats</div><br>\
  4268. </fieldset>\
  4269. <fieldset>\
  4270. <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>\
  4271. </fieldset>\
  4272. <fieldset>\
  4273. <p><input type="checkbox" id="Enable_Anonymizer"> Enable Anonymizer</div><div id="bulk">EXPERIMENTAL Note: Checkbox does not work use CTRL+ALT+Z.</p>\
  4274. <div id="sites"><label for="refAnonymizer">Refererer anonymizing service</label><input type="text" id="refAnonymizer" value="' + Ref_anonymize_service + '"></div>\
  4275. </fieldset>\
  4276. </div>\
  4277. </div>\
  4278. <div id="tabs-4" class="warlc-ui-tab">\
  4279. <p><b>Author:</b> <a href="http://www.mentalps.5gbfree.com/viewtopic.php?f=2&t=6">mentalps</a></p>\
  4280. <br />\
  4281. <p><b>Currently supported:</b><br>\
  4282. Filehostings: ' + allHostNames.length + '<br />\
  4283. Containers: ' + allContainerNames.length + '<br />\
  4284. Obsolete sites: ' + allObsoleteNames.length + '<br /></p>\
  4285. <br />\
  4286. <p><b>Based on:</b><br>\
  4287. <a href="http://userscripts-mirror.org/scripts/show/125631.html">W.A.R. Links Checker - Dev</a></p>\
  4288. <br />\
  4289. <p><b>Uses:</b></p>\
  4290. <p>adam_3\'s <a href="http://userscripts-mirror.org/scripts/show/2254">Linkify ting</a> (modified)</p>\
  4291. <p><a href="http://jquery.com/">jQuery</a> JavaScript Library</p>\
  4292. <br />\
  4293. <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>\
  4294. </div>\
  4295. </div>\
  4296. </div>\
  4297. </div>';
  4298. $('body').append('<div id="hideshow">' + configurationinnerHTML + '</div>');
  4299. $("#warlc-conf-tabs").tabs({ fx: { opacity: 'toggle', duration: 'fast' } });
  4300. $("#imghideshow").click(function(event){$("#hideshow").hide(); event.preventDefault();});
  4301. var elmHostList = document.getElementById("warlcsitelist1");
  4302. var elmContainerList = document.getElementById("warlcsitelist2");
  4303. buildSettings();
  4304. buildSitelist("", allHostNames, elmHostList);
  4305. buildSitelist("", allContainerNames, elmContainerList);
  4306. if (DEBUG_MODE)
  4307. {
  4308. //log all sites availability status
  4309. diagSites();
  4310. }
  4311. //handler for checkbox state change
  4312. function changeConfiguration(e)
  4313. {
  4314. var element = e.target;
  4315.  
  4316. if (element.type == 'checkbox')
  4317. {
  4318. if (element.checked == 1)
  4319. {
  4320. GM_setValue(element.id, true);
  4321. }
  4322. else
  4323. {
  4324. GM_setValue(element.id, false);
  4325. }
  4326.  
  4327. }
  4328. setVariables();
  4329. }
  4330.  
  4331. //Selects all filehosting checkboxes
  4332. function selectAll()
  4333. {
  4334. $(":checkbox:visible:not(:checked)").prop("checked",true)
  4335. .each(function(index, element){GM_setValue(this.id, true)});
  4336. }
  4337.  
  4338. //Deselects all filehosting checkboxes
  4339. function selectNone()
  4340. {
  4341. $(":checkbox:visible:checked").prop("checked",false)
  4342. .each(function(index, element){GM_setValue(this.id, false)});
  4343. }
  4344.  
  4345. //Inverts filehosting checkboxes selection
  4346. function selectInvert()
  4347. {
  4348. var $checked = $(":checkbox:visible:checked");
  4349. var $unchecked = $(":checkbox:visible:not(:checked)");
  4350. $unchecked.prop("checked",true)
  4351. .each(function(index, element){GM_setValue(this.id, true)});
  4352. $checked.prop("checked",false)
  4353. .each(function(index, element){GM_setValue(this.id, false)});
  4354. }
  4355. //toggles anonymizer on off
  4356. function Enable_Anonymizer()
  4357. {
  4358. var $checked = $(":checkbox:visible:checked");
  4359. var $unchecked = $(":checkbox:visible:not(:checked)");
  4360. $unchecked.prop("checked",true)
  4361. .each(function(index, element){GM_setValue(this.id, true)});
  4362. $checked.prop("checked",false)
  4363. .each(function(index, element){GM_setValue(this.id, false)});
  4364. }
  4365.  
  4366. function changeRefAnonymizer(){
  4367. GM_setValue("Ref_anonymize_service", $("#refAnonymizer").attr("value"));
  4368. }
  4369.  
  4370. //Sets live links color
  4371. function changeColorLive()
  4372. {
  4373. var inColorLive = document.getElementById("inputColorLive");
  4374. inColorLive.style.background = inColorLive.value;
  4375. GM_setValue("Live_links_color", inColorLive.value);
  4376. }
  4377.  
  4378. //Sets dead links color
  4379. function changeColorDead()
  4380. {
  4381. var inColorDead = document.getElementById("inputColorDead");
  4382. inColorDead.style.background = inColorDead.value;
  4383. GM_setValue("Dead_links_color", inColorDead.value);
  4384. }
  4385.  
  4386. //Sets temp. unavailable links color
  4387. function changeColorTemp()
  4388. {
  4389. var inColorTemp = document.getElementById("inputColorTemp");
  4390. inColorTemp.style.background = inColorTemp.value;
  4391. GM_setValue("Temp_unavailable_links_color", inColorTemp.value);
  4392. }
  4393.  
  4394. //Sets temp. unavailable links color
  4395. function changeColorCont()
  4396. {
  4397. var inColorCont = document.getElementById("inputColorCont");
  4398. inColorCont.style.background = inColorCont.value;
  4399. GM_setValue("Container_links_color", inColorCont.value);
  4400. }
  4401. //Sets premium. links color
  4402. function changeColorprem()
  4403. {
  4404. var inColorprem = document.getElementById("inputColorprem");
  4405. inColorprem.style.background = inColorprem.value;
  4406. GM_setValue("Premium_links_color", inColorprem.value);
  4407. }
  4408.  
  4409. //Diagnose sites for availability
  4410. function diagSites()
  4411. {
  4412. var boxes = document.getElementById("warlcsitelist1").getElementsByTagName("input");
  4413.  
  4414. for (var i = 0, n = boxes.length - 1; i < n; i++)
  4415. {
  4416. if (boxes[i].type == "checkbox")
  4417. {
  4418. checkAvailability(boxes[i]);
  4419. }
  4420. }
  4421.  
  4422. boxes = document.getElementById("warlcsitelist2").getElementsByTagName("input");
  4423.  
  4424. for (var i = 0, n = boxes.length - 1; i < n; i++)
  4425. {
  4426. if (boxes[i].type == "checkbox")
  4427. {
  4428. checkAvailability(boxes[i]);
  4429. }
  4430. }
  4431.  
  4432. function checkAvailability(cbElm)
  4433. {
  4434. var cb = cbElm;
  4435. GM_xmlhttpRequest(
  4436. {
  4437. method: 'HEAD',
  4438. url: 'http://' + cb.nextSibling.textContent.replace(' ', ''),
  4439. headers: {
  4440. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  4441. 'Accept': 'text/xml',
  4442. 'Referer': ""
  4443. },
  4444. onload: function (result)
  4445. {
  4446. if (result.status != 200)
  4447. {
  4448. GM_log(cb.nextSibling.textContent + ' --- status: [' + result.status + '] ' + result.statusText + ', final url: ' + result.finalUrl);
  4449. }
  4450. },
  4451. onerror: function (result)
  4452. {
  4453. if (result.status != 200)
  4454. {
  4455. GM_log(cb.nextSibling.textContent + ' --- status: [' + result.status + '] ' + result.statusText + ', final url: ' + result.finalUrl);
  4456. }
  4457. }
  4458. });
  4459. }
  4460. }
  4461. function buildSettings()
  4462. {
  4463. $(".warlcsettings :checkbox").each(function(){
  4464. $(this).prop("checked", GM_getValue($(this).attr("id")))
  4465. .click(function(e){
  4466. GM_setValue($(this).attr("id"), $(this).prop("checked"));
  4467. setVariables();
  4468. });
  4469. })
  4470. }
  4471. //Dynamic build of host list
  4472. //param search [string] searches for hostnames matching search substring
  4473. //param siteNames [array] array of site names
  4474. //param targetNode [DOM Node] where the list should be built
  4475. // first child node is replaced
  4476. function buildSitelist(search, siteNames, targetNode)
  4477. {
  4478. var searchRegex = new RegExp("\\|?([\\w\\.-]*" + search.replace(/\./g,"\\.").replace(/-/g, "\\-") + "[\\w\\.-]*)\\|?", "i");
  4479. var $targetNode = $(targetNode).empty();
  4480. var searchedSite = "";
  4481. $.each(siteNames, function(i, site){
  4482. if (searchedSite = site.match(searchRegex))
  4483. {
  4484. var baseSite = site.replace(/\|.+/, ""); //filehosting main domain
  4485. //ensuring backward compatibility with the rest of code, to be refactored later
  4486. var oldRSLCvalue = "Check_" + baseSite.replace(/\|.+/, "").replace(/\./g,"_dot_").replace(/-/g, "_dash_") + "_links";
  4487. //
  4488. $targetNode.append('<input type="checkbox" id="' + oldRSLCvalue +'" />\
  4489. <label for="' + oldRSLCvalue + '">' + searchedSite[1] + '</label>' +
  4490. ((searchedSite[1] != baseSite) ? ('<div id="note"> ( ~ ' + baseSite + ' )</div>') : (""))
  4491. );
  4492. $("#" + oldRSLCvalue).prop("checked", GM_getValue(oldRSLCvalue, false))
  4493. .change(changeConfiguration);
  4494. $targetNode.append('<br />');
  4495. }
  4496. });
  4497. $targetNode.append("<hr>");
  4498. //obsolete hosts checkbox
  4499. $targetNode.append('<input type="checkbox" id="Obsolete_file_hosts" /><label for="Obsolete_file_hosts">Obsolete file hosts</label>');
  4500. $("#Obsolete_file_hosts").prop("checked", GM_getValue("Obsolete_file_hosts", false))
  4501. .change(changeConfiguration);
  4502. $targetNode.append('<br />');
  4503. var foundName = "";
  4504. $.each(allObsoleteNames, function(i, site){
  4505. if (foundName = allObsoleteNames[i].match(searchRegex))
  4506. {
  4507. $targetNode.append('<div id="note">' + foundName[1] + '</div>');
  4508. }
  4509. })
  4510. }
  4511. var hostSearchBox = document.getElementById("hostSearchBox");
  4512. hostSearchBox.addEventListener('keyup', function(){buildSitelist(hostSearchBox.value, allHostNames, elmHostList);}, false);
  4513. var hostSearchBox2 = document.getElementById("hostSearchBox2");
  4514. hostSearchBox2.addEventListener('keyup', function(){buildSitelist(hostSearchBox2.value, allContainerNames, elmContainerList);}, false);
  4515. $(".warlc-ui-select-all").click(selectAll).button();
  4516. $(".warlc-ui-select-none").click(selectNone).button();
  4517. $(".warlc-ui-select-invert").click(selectInvert).button();
  4518. $(".warlc-ui-buttonset").buttonset();
  4519. var inColorLive = document.getElementById("inputColorLive");
  4520. inColorLive.addEventListener('keyup', changeColorLive, false);
  4521.  
  4522. var inColorDead = document.getElementById("inputColorDead");
  4523. inColorDead.addEventListener('keyup', changeColorDead, false);
  4524.  
  4525. var inColorTemp = document.getElementById("inputColorTemp");
  4526. inColorTemp.addEventListener('keyup', changeColorTemp, false);
  4527.  
  4528. var inColorCont = document.getElementById("inputColorCont");
  4529. inColorCont.addEventListener('keyup', changeColorCont, false);
  4530. var inColorprem = document.getElementById("inputColorprem");
  4531. inColorprem.addEventListener('keyup', changeColorprem, false);
  4532. $("#refAnonymizer").change(changeRefAnonymizer);
  4533. //buttons and edit boxes init end
  4534.  
  4535. //icon sets radio buttons
  4536. var radioButtons = document.getElementsByName("warlciconset");
  4537. radioButtons[Icon_set].checked = "checked";
  4538.  
  4539. radioButtons[0].addEventListener("change", updateIconSet);
  4540. radioButtons[1].addEventListener("change", updateIconSet);
  4541. radioButtons[2].addEventListener("change", updateIconSet);
  4542. radioButtons[3].addEventListener("change", updateIconSet);
  4543. function updateIconSet()
  4544. {
  4545. GM_setValue("Icon_set", this.value * 1);
  4546. }
  4547. //
  4548. $('#showCustomRulesReference').click(function(e){
  4549. e.preventDefault();
  4550. $('#customRulesReference').toggle();
  4551. });
  4552. $('#Custom_rules_text')
  4553. .val(Custom_rules_text)
  4554. .change(saveCustomRules);
  4555. function saveCustomRules(e)
  4556. {
  4557. var cr = parseCustomRules(this.value);
  4558. if (cr.info.length)
  4559. 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, ' '));
  4560. GM_setValue('Custom_rules_text', this.value);
  4561. GM_setValue('last_custom_rules_nag', ''+new Date().getTime()); //reset nag
  4562. }
  4563. }
  4564.  
  4565. //begin standard link checking algorithm
  4566. function start(filterId)
  4567. {
  4568. var doNotLinkify = Do_not_linkify_DL_links;
  4569.  
  4570. // USER SELECTED FILE HOSTS INITIALIZATION START
  4571. var http_file_hosts = new Array(); //standard hostings
  4572. var http_file_hosts_coded = new Array(); //hostings which has to be decoded to obtain real checkable link
  4573. var http_file_hosts_obsolete = new Array(); //dead hostings
  4574. var http_file_hosts_headers_only = new Array(); //hostings with direct download, must be handled via headers only
  4575.  
  4576. initFileHosts();
  4577. initFileHostsHeadersOnly();
  4578. initFileHostsCustom(); //CustomRules
  4579. // USER SELECTED FILE HOSTS INITIALIZATION END
  4580.  
  4581. // LINKIFICATION START
  4582. var totalxpath = '';
  4583. var totalxpathcoded = '';
  4584. var totalxpathobsolete = '';
  4585. var totalxpathheadersonly = '';
  4586. var totalourls = '';
  4587.  
  4588. var filehostLen = http_file_hosts.length;
  4589. var filehostCodedLen = http_file_hosts_coded.length;
  4590. var filehostObsoleteLen = http_file_hosts_obsolete.length;
  4591. var filehostHeadersOnlyLen = http_file_hosts_headers_only.length;
  4592.  
  4593. var filehostIdx = filehostLen;
  4594. var filehostCodedIdx = filehostCodedLen;
  4595. var filehostObsoleteIdx = filehostObsoleteLen;
  4596. var filehostHeadersOnlyIdx = filehostHeadersOnlyLen;
  4597.  
  4598. if ((filehostIdx == 0) && (filehostCodedIdx == 0) && (filehostHeadersOnlyIdx == 0) && (filehostObsoleteIdx == 0))
  4599. return;
  4600.  
  4601. while (filehostIdx--)
  4602. {
  4603. totalourls += http_file_hosts[filehostIdx][0] + '|';
  4604. totalxpath += http_file_hosts[filehostIdx][4] + '|';
  4605. }
  4606.  
  4607. while (filehostCodedIdx--)
  4608. {
  4609. totalourls += http_file_hosts_coded[filehostCodedIdx][0] + '|';
  4610. totalxpathcoded += http_file_hosts_coded[filehostCodedIdx][3] + '|';
  4611. }
  4612.  
  4613. while (filehostObsoleteIdx--)
  4614. {
  4615. totalourls += http_file_hosts_obsolete[filehostObsoleteIdx][0] + '|';
  4616. totalxpathobsolete += http_file_hosts_obsolete[filehostObsoleteIdx][1] + '|';
  4617. }
  4618.  
  4619. while (filehostHeadersOnlyIdx--)
  4620. {
  4621. totalourls += http_file_hosts_headers_only[filehostHeadersOnlyIdx][0] + '|';
  4622. totalxpathheadersonly += http_file_hosts_headers_only[filehostHeadersOnlyIdx][3] + '|';
  4623. }
  4624.  
  4625. totalourls = totalourls.replace(/\|$/g, "");
  4626. //TODO: further refactoring needed
  4627. totalxpath = totalxpath.replace(/\]\|\/\/a\[/g, " or ");
  4628. totalxpath = totalxpath.replace(/\]\|/, ')]');
  4629. totalxpathcoded = totalxpathcoded.replace(/\]\|\/\/a\[/g, " or ");
  4630. totalxpathcoded = totalxpathcoded.replace(/\]\|/, ')]');
  4631. totalxpathobsolete = totalxpathobsolete.replace(/\]\|\/\/a\[/g, " or ");
  4632. totalxpathobsolete = totalxpathobsolete.replace(/\]\|/, ')]');
  4633. totalxpathheadersonly = totalxpathheadersonly.replace(/\]\|\/\/a\[/g, " or ");
  4634. totalxpathheadersonly = totalxpathheadersonly.replace(/\]\|/, ')]');
  4635. if (filterId != null) //insert id restriction in the xpath
  4636. {
  4637. totalxpath = totalxpath.replace(/\[/g, "[@class='" + filterId + "' and (");
  4638. totalxpathcoded = totalxpathcoded.replace(/\[/g, "[@class='" + filterId + "' and (");
  4639. totalxpathobsolete = totalxpathobsolete.replace(/\[/g, "[@class='" + filterId + "' and (");
  4640. totalxpathheadersonly = totalxpathheadersonly.replace(/\[/g, "[@class='" + filterId + "' and (");
  4641. }
  4642. else
  4643. {
  4644. totalxpath = totalxpath.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4645. totalxpathcoded = totalxpathcoded.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4646. totalxpathobsolete = totalxpathobsolete.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4647. totalxpathheadersonly = totalxpathheadersonly.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4648. }
  4649. linkify(totalourls);
  4650. //LINKIFICATION END
  4651. //ENCRYPTED LINKS PROCESSING START
  4652. if (http_file_hosts_coded.length > 0)
  4653. {
  4654. var linksCoded = document.evaluate(totalxpathcoded, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4655.  
  4656. // decrypt coded links (redirects, link protectors etc.)
  4657. if (linksCoded.snapshotLength > 0)
  4658. {
  4659. var link;
  4660. var reallinkreg;
  4661. var reallinkcorrection;
  4662.  
  4663. if (filterId == null)
  4664. {
  4665. cLinksTotal += linksCoded.snapshotLength;
  4666. }
  4667.  
  4668. var y = linksCoded.snapshotLength - 1;
  4669. do
  4670. {
  4671. // linksCoded.snapshotItem(y).id = 'processing_link';
  4672. link = linksCoded.snapshotItem(y);
  4673. filehostIdx = filehostCodedLen;
  4674. while (filehostIdx--)
  4675. {
  4676. if (link.href.match(http_file_hosts_coded[filehostIdx][0]))
  4677. {
  4678. link.href = link.href.replace(/http:\/\/.*?(?:\?|=)http:\/\//, 'http://');
  4679. reallinkreg = http_file_hosts_coded[filehostIdx][1];
  4680. reallinkcorrection = http_file_hosts_coded[filehostIdx][2];
  4681.  
  4682. decurl(link, reallinkreg, reallinkcorrection);
  4683. break;
  4684. }
  4685. }
  4686. }
  4687. while (y--);
  4688. }
  4689. }
  4690. //ENCRYPTED LINKS PROCESSING END
  4691.  
  4692. //STANDARD LINKCHECKING START
  4693. if (http_file_hosts.length > 0)
  4694. {
  4695. var lianks = document.evaluate(totalxpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4696.  
  4697. if (filterId == null)
  4698. {
  4699. cLinksTotal += lianks.snapshotLength;
  4700. }
  4701.  
  4702. if (lianks.snapshotLength > 0)
  4703. {
  4704. var link;
  4705.  
  4706. var URL = "";
  4707. var name = "";
  4708. var isAliveRegex = "";
  4709. var isDeadRegex = "";
  4710. var isUnavaRegex = "";
  4711. var ispremRegex = "";
  4712. var tryLoop = false;
  4713.  
  4714. var y = lianks.snapshotLength;
  4715.  
  4716. while (y--)
  4717. {
  4718. link = lianks.snapshotItem(y);
  4719.  
  4720. filehostIdx = filehostLen;
  4721. while (filehostIdx--)
  4722. {
  4723. if (link.href.match(http_file_hosts[filehostIdx][0]))
  4724. {
  4725. link.href = link.href.replace(/http:\/\/.*?http:\/\//, 'http://'); //anonymizers
  4726. isAliveRegex = http_file_hosts[filehostIdx][1];
  4727. isDeadRegex = http_file_hosts[filehostIdx][2];
  4728. isUnavaRegex = http_file_hosts[filehostIdx][3];
  4729. ispremRegex = http_file_hosts[filehostIdx][6];
  4730. tryLoop = http_file_hosts[filehostIdx][5];
  4731.  
  4732. geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, tryLoop);
  4733.  
  4734. break;
  4735. }
  4736. }
  4737. }
  4738. }
  4739. }
  4740. //STANDARD LINKCHECKING END
  4741. //OBSOLETE FILE HOSTS PROCESSING START
  4742. if (filehostObsoleteLen > 0)
  4743. {
  4744. var obsoletelinks = document.evaluate(totalxpathobsolete, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4745.  
  4746. var obsoleteLink;
  4747.  
  4748. //check links
  4749. if (obsoletelinks.snapshotLength > 0)
  4750. {
  4751. var y = obsoletelinks.snapshotLength;
  4752.  
  4753. if (filterId == null)
  4754. {
  4755. cLinksTotal += y;
  4756. }
  4757.  
  4758. while (y--)
  4759. {
  4760. obsoleteLink = obsoletelinks.snapshotItem(y);
  4761.  
  4762. if (Display_tooltip_info)
  4763. {
  4764. obsoleteLink.warlc_error = 'Cause of error: <b>Obsolete filehosting.</b>';
  4765. }
  4766. displayTheCheckedLink(obsoleteLink, 'adead_link');
  4767. }
  4768. }
  4769. }
  4770. //OBSOLETE FILE HOSTS PROCESSING END
  4771.  
  4772. //DIRECT LINKCHECKING START
  4773. if (http_file_hosts_headers_only.length > 0)
  4774. {
  4775. var links = document.evaluate(totalxpathheadersonly, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4776.  
  4777. //check links
  4778. if (links.snapshotLength > 0)
  4779. {
  4780. var link;
  4781. var isAliveRegex;
  4782. var isDeadRegex;
  4783. var ispremRegex;
  4784.  
  4785. var y = links.snapshotLength;
  4786.  
  4787.  
  4788. if (filterId == null)
  4789. {
  4790. cLinksTotal += y;
  4791. }
  4792.  
  4793. while (y--)
  4794. {
  4795. // links.snapshotItem(y).id = 'processing_link';
  4796. link = links.snapshotItem(y);
  4797. filehostIdx = filehostHeadersOnlyLen;
  4798. while (filehostIdx--)
  4799. {
  4800. if (link.href.match(http_file_hosts_headers_only[filehostIdx][0]))
  4801. {
  4802. link.href = link.href.replace(/http:\/\/.*?(?:\?|=)http:\/\//, 'http://');
  4803. isAliveRegex = http_file_hosts_headers_only[filehostIdx][1];
  4804. isDeadRegex = http_file_hosts_headers_only[filehostIdx][2];
  4805. ispremRegex = http_file_hosts_headers_only[filehostIdx][3];
  4806.  
  4807. geturlHeader(link, isAliveRegex, isDeadRegex, ispremRegex);
  4808.  
  4809. break;
  4810. }
  4811. }
  4812. }
  4813.  
  4814. }
  4815. }
  4816. //DIRECT LINKCHECKING END
  4817.  
  4818.  
  4819. //finds the real url on the page, replaces link.href with it and calls geturl
  4820. function decurl(link, reallinkreg, reallinkcorrection)
  4821. {
  4822.  
  4823. GM_xmlhttpRequest(
  4824. {
  4825. method: 'GET',
  4826. url: link.href,
  4827. headers: {
  4828. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  4829. 'Accept': 'text/xml',
  4830. 'Referer': ""
  4831. },
  4832. onload: function (result)
  4833. {
  4834. // cLinksProcessed++;
  4835.  
  4836. var reallink = result.responseText.match(reallinkreg)[0];
  4837. reallink = reallink.replace(new RegExp(reallinkcorrection, "g"), "");
  4838.  
  4839. link.href = reallink;
  4840.  
  4841. var i = http_file_hosts.length - 1;
  4842. do
  4843. {
  4844. if ((reallink.match(http_file_hosts[i][0])))
  4845. {
  4846. link.href = link.href.replace(/http:\/\/.*?\?http:\/\//, 'http://');
  4847. var isAliveRegex = http_file_hosts[i][1];
  4848. var isDeadRegex = http_file_hosts[i][2];
  4849. var isUnavaRegex = http_file_hosts[i][3];
  4850. var ispremRegex = http_file_hosts[i][4];
  4851.  
  4852. geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, 50);
  4853.  
  4854. break;
  4855. }
  4856. }
  4857. while (i--);
  4858. }
  4859. });
  4860. }
  4861.  
  4862. function randUA()
  4863. {
  4864. //TODO
  4865. }
  4866. //Processes link
  4867. //
  4868. // [string] link link URL
  4869. // [string] isAliveRegex alive link regex
  4870. // [string] isDeadRegex dead link regex
  4871. // [string] isUnavaRegex unavailable link regex
  4872. // [string] ispremRegex premium link regex
  4873. // [boolean] tryLoop repeats request until succeeded
  4874. function geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, tryLoop)
  4875. {
  4876. GM_xmlhttpRequest(
  4877. {
  4878. method: 'GET',
  4879. url: link.href,
  4880. headers: {
  4881. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  4882. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  4883. 'Referer': ""
  4884. },
  4885. onload: function (result)
  4886. {
  4887. var res = result.responseText;
  4888. if (result.responseHeaders.match(/Content-Disposition: attachment; filename=/))//direct download, simple version
  4889. {
  4890. displayTheCheckedLink(link, 'alive_link');
  4891. return;
  4892. }
  4893.  
  4894. if (res.match(isAliveRegex))
  4895. {
  4896. displayTheCheckedLink(link, 'alive_link');
  4897. return;
  4898. }
  4899.  
  4900. if (res.match(isDeadRegex))
  4901. {
  4902. displayTheCheckedLink(link, 'adead_link');
  4903. return;
  4904. }
  4905.  
  4906. if (isUnavaRegex && res.match(isUnavaRegex))
  4907. {
  4908. displayTheCheckedLink(link, 'unava_link');
  4909. return;
  4910. }
  4911. if (res.match(ispremRegex))
  4912. {
  4913. displayTheCheckedLink(link, 'prem_link');
  4914. return;
  4915. }
  4916.  
  4917. var resStatus = result.status;
  4918.  
  4919. if (resStatus == 404)
  4920. {
  4921. displayTheCheckedLink(link, 'adead_link');
  4922. }
  4923. if (resStatus == 500 || resStatus == 503 || resStatus == 403) //not found/available/temp. unava
  4924. {
  4925. if (tryLoop)
  4926. {
  4927. //wait 1-5 seconds and repeat the request
  4928. setTimeout(function(){geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, tryLoop)}, 1000 + (Math.random() * 4000));
  4929. }
  4930. else
  4931. {
  4932. displayTheCheckedLink(link, 'unava_link');
  4933. }
  4934.  
  4935. return;
  4936. }
  4937. },
  4938. onerror: function ()
  4939. {
  4940. displayTheCheckedLink(link, 'unava_link');
  4941. }
  4942. });
  4943. }
  4944.  
  4945. function geturlHeader(link, isAliveRegex, isDeadRegex, ispremRegex)
  4946. {
  4947. GM_xmlhttpRequest(
  4948. {
  4949. method: 'HEAD',
  4950. url: link.href,
  4951. headers: {
  4952. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  4953. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  4954. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  4955. 'Referer': ""
  4956. },
  4957. onload: function (result)
  4958. {
  4959. var resStatus = result.status;
  4960. var resHeaders = "";
  4961. if (resStatus == 403 || resStatus == 404 || resStatus == 500) //not found/available
  4962. {
  4963. displayTheCheckedLink(link, 'adead_link');
  4964. return;
  4965. }
  4966.  
  4967. resHeaders = result.responseHeaders;
  4968.  
  4969. if (resHeaders.match(isDeadRegex))
  4970. {
  4971. displayTheCheckedLink(link, 'adead_link');
  4972. return;
  4973. }
  4974.  
  4975. if (resHeaders.match(isAliveRegex))
  4976. {
  4977. displayTheCheckedLink(link, 'alive_link');
  4978. return;
  4979. }
  4980. if (resHeaders.match(ispremRegex))
  4981. {
  4982. displayTheCheckedLink(link, 'prem_link');
  4983. return;
  4984. }
  4985. },
  4986. onerror: function ()
  4987. {
  4988. displayTheCheckedLink(link, 'unava_link');
  4989. }
  4990. });
  4991. }
  4992.  
  4993. //Delinkfifies the <a> element object
  4994. function delinkifyLink(link)
  4995. {
  4996. var spanElm = document.createElement("span");
  4997. spanElm.className = link.className;
  4998. spanElm.innerHTML = link.innerHTML;
  4999.  
  5000. if (Display_tooltip_info)
  5001. {
  5002. spanElm.href = link.href;
  5003. spanElm.warlc_error = link.warlc_error;
  5004. switch (link.className){
  5005. case "alive_link": spanElm.addEventListener("mouseover", displayTooltipInfo, false); break
  5006. case "adead_link": spanElm.addEventListener("mouseover", displayTooltipError, false); break;
  5007. case "unava_link": //reserved
  5008. case "prem_link": spanElm.addEventListener("mouseover", displayTooltipError, false); break;
  5009. default:
  5010. }
  5011. }
  5012. link.parentNode.replaceChild(spanElm, link);
  5013. }
  5014.  
  5015. //Assigns result status to the <a> element object and calls delinkifying eventually
  5016. //Possible result states: adead_link, alive_link, unava_link, prem_link
  5017. function displayTheCheckedLink(link, resultStatus)
  5018. {
  5019. link.className = resultStatus;
  5020. link.href = Ref_anonymize_service + link.href;
  5021. if (Display_tooltip_info)
  5022. {
  5023. switch (resultStatus){
  5024. case "alive_link": link.addEventListener("mouseover", displayTooltipInfo, false); break
  5025. case "adead_link": link.addEventListener("mouseover", displayTooltipError, false); break;
  5026. case "unava_link": //reserved
  5027. case "prem_link": link.addEventListener("mouseover", displayTooltipInfo, false); break
  5028. default:
  5029. }
  5030. }
  5031. if (doNotLinkify)
  5032. {
  5033. delinkifyLink(link);
  5034. }
  5035. cLinksProcessed++;
  5036.  
  5037. if (resultStatus == "alive_link")
  5038. {
  5039. cLinksAlive++;
  5040. return;
  5041. }
  5042.  
  5043. if (resultStatus == "adead_link")
  5044. {
  5045. cLinksDead++;
  5046. return;
  5047. }
  5048.  
  5049. if (resultStatus == "unava_link")
  5050. {
  5051. cLinksUnava++;
  5052. }
  5053. if (resultStatus == "prem_link")
  5054. {
  5055. cLinksprem++;
  5056. return;
  5057. }
  5058. }
  5059.  
  5060.  
  5061. function initFileHosts()
  5062. {
  5063.  
  5064. function addObsoleteHost(linkRegex, xpathEx)
  5065. {
  5066. var host = new Array(2);
  5067. host[0] = linkRegex;
  5068. host[1] = xpathEx;
  5069. http_file_hosts_obsolete.push(host);
  5070. }
  5071.  
  5072. //obsolete file hosts init start
  5073. if (Obsolete_file_hosts)
  5074. {
  5075. addObsoleteHost("uloz\.cz\/show\/file","//a[contains(@href,'uloz.cz')]");
  5076. addObsoleteHost("storage\\.to\/get","//a[contains(@href,'storage.to')]");
  5077. addObsoleteHost("iskladka\\.cz\/download","//a[contains(@href,'iskladka.cz')]");
  5078. addObsoleteHost("file-rack\\.com\/files","//a[contains(@href,'file-rack.com')]");
  5079. addObsoleteHost("fast-load\\.net\/(\/)?index","//a[contains(@href,'fast-load.net')]");
  5080. addObsoleteHost("subory\\.sk\/download","//a[contains(@href,'subory.sk')]");
  5081. addObsoleteHost("bigandfree\\.com\/\\d+","//a[contains(@href,'bigandfree.com')]");
  5082. addObsoleteHost("fileop\\.com\/\\w+","//a[contains(@href,'fileop.com')]");
  5083. addObsoleteHost("mujsoubor\\.cz\/file\/","//a[contains(@href,'mujsoubor.cz')]");
  5084. addObsoleteHost("sendfile\\.to\/\\w+","//a[contains(@href,'sendfile.to')]");
  5085. addObsoleteHost("superfastfile\\.com\/\\w+","//a[contains(@href,'superfastfile.com')]");
  5086. addObsoleteHost("quickyshare\\.com\/\\w+","//a[contains(@href,'quickyshare.com/')]");
  5087. addObsoleteHost("duckload\\.com\/(?:d|play)","//a[contains(@href,'duckload.com')]");
  5088. addObsoleteHost("uploadstore\\.net\/\\w+","//a[contains(@href,'uploadstore.net')]");
  5089. addObsoleteHost("meinupload\\.com\/dl\/\\d+","//a[contains(@href,'meinupload.com/dl')]");
  5090. addObsoleteHost("dualshare\\.com\/\\w+","//a[contains(@href,'dualshare.com')]");
  5091. addObsoleteHost("2xupload\\.(?:to|de)\/file\/\\w+","//a[contains(@href,'2xupload.to') or contains(@href,'2xupload.de')]");
  5092. addObsoleteHost("oxedion\\.com\/index\\.php\/download\/\\w+","//a[contains(@href,'oxedion.com/index')]");
  5093. addObsoleteHost("uploadline\\.com\/\\d+","//a[contains(@href,'uploadline.com')]");
  5094. addObsoleteHost("dll\\.bz\/file\/\\d+","//a[contains(@href,'dll.bz/file')]");
  5095. addObsoleteHost("movieshare\\.in\/\\w+","//a[contains(@href,'movieshare.in')]");
  5096. addObsoleteHost("milledrive\\.com\/files\/\\d+","//a[contains(@href,'milledrive.com')]");
  5097. addObsoleteHost("quickupload\\.net\/\\w+","//a[contains(@href,'quickupload.net')]");
  5098. addObsoleteHost("safelink\\.in\/\\w+","//a[contains(@href,'safelink.in')]");
  5099. addObsoleteHost("pyramidfiles\\.com\/\\w+","//a[contains(@href,'pyramidfiles.com/')]");
  5100. addObsoleteHost("(?:cloudnator|shragle)\\.com\/files","//a[contains(@href,'cloudnator.com/files') or contains(@href,'shragle.com/files')]");
  5101. addObsoleteHost("batshare\\.com\/\\w+","//a[contains(@href,'batshare.com/')]");
  5102. addObsoleteHost("bitroad\\.net\/download","//a[contains(@href,'bitroad.net/download')]");
  5103. addObsoleteHost("metadivx\\.com\/\\w+","//a[contains(@href,'metadivx.com')]");
  5104. addObsoleteHost("filegaze\\.com\/\\w+","//a[contains(@href,'filegaze.com/')]");
  5105. addObsoleteHost("bulletupload\\.com\/\\w+","//a[contains(@href,'bulletupload.com/')]");
  5106. addObsoleteHost("sharefilehost\\.com\/\\w+","//a[contains(@href,'sharefilehost.com/')]");
  5107. addObsoleteHost("fireuploads\\.net\/\\w+","//a[contains(@href,'fireuploads.net/')]");
  5108. addObsoleteHost("divxlink\\.com\/\\w+","//a[contains(@href,'divxlink.com/')]");
  5109. addObsoleteHost("bzlink\\.us\/\\w+","//a[contains(@href,'bzlink.us/')]");
  5110. addObsoleteHost("filetechnology\\.com\/\\w+","//a[contains(@href,'filetechnology.com/')]");
  5111. addObsoleteHost("filecosy\\.com\/\\w+","//a[contains(@href,'filecosy.com/')]");
  5112. addObsoleteHost("fileserver\\.cc\/\\w+","//a[contains(@href,'fileserver.cc/')]");
  5113. addObsoleteHost("shafiles\\.me\/\\w+","//a[contains(@href,'shafiles.me/')]");
  5114. addObsoleteHost("xfileshare\\.eu\/\\w+","//a[contains(@href,'xfileshare.eu/')]");
  5115. addObsoleteHost("uploadboost\\.com\/\\w+","//a[contains(@href,'uploadboost.com/')]");
  5116. addObsoleteHost("uploadoz\\.com\/\\w+","//a[contains(@href,'uploadoz.com/')]");
  5117. addObsoleteHost("ihostia\\.com\/\\w+","//a[contains(@href,'ihostia.com/')]");
  5118. addObsoleteHost("shareupload\\.com\/\\w+","//a[contains(@href,'shareupload.com/')]");
  5119. addObsoleteHost("ovfile\\.com\/\\w+","//a[contains(@href,'ovfile.com/')]");
  5120. addObsoleteHost("stahuj\\.to\/\\w+","//a[contains(@href,'stahuj.to/')]");
  5121. addObsoleteHost("gigfiles\\.net\/\\w+","//a[contains(@href,'gigfiles.net/')]");
  5122. addObsoleteHost("vidhog\\.com\/\\w+","//a[contains(@href,'vidhog.com/')]");
  5123. addObsoleteHost("filelaser\\.com\/\\w+","//a[contains(@href,'filelaser.com/')]");
  5124. addObsoleteHost("holderfile\\.com\/\\w+","//a[contains(@href,'holderfile.com/')]");
  5125. addObsoleteHost("fileduct\\.(?:com|net)\/\\w+","//a[contains(@href,'fileduct.com/') or contains(@href,'fileduct.net')]");
  5126. addObsoleteHost("filefat\\.com\/\\w+","//a[contains(@href,'filefat.com/')]");
  5127. addObsoleteHost("restfile\\.com\/\\w+","//a[contains(@href,'restfile.com/')]");
  5128. addObsoleteHost("filemashine\\.com\\/download\/\\w+","//a[contains(@href,'filemashine.com/download')]");
  5129. addObsoleteHost("cloudnxt\\.net\/\\w+","//a[contains(@href,'cloudnxt.net/')]");
  5130. addObsoleteHost("uploadrack\\.com\/\\w+","//a[contains(@href,'uploadrack.com')]");
  5131. addObsoleteHost("teradepot\\.com\/\\w+","//a[contains(@href,'teradepot.com')]");
  5132. addObsoleteHost("dataup\\.to\/\\d+\/","//a[contains(@href,'dataup.to')]");
  5133. addObsoleteHost("upit\\.to\/file:\\d+","//a[contains(@href,'upit.to/file')]");
  5134. addObsoleteHost("badongo\\.(?:com|net)\/(?:\\w\\w\/|)(?:vid|cfile|file|pt)\/\\w+","//a[contains(@href,'badongo.com') or contains(@href,'badongo.net')]");
  5135. addObsoleteHost("driveway\\.com\/\\w+","//a[contains(@href,'driveway.com')]");
  5136. addObsoleteHost("eatlime\\.com\/download","//a[contains(@href,'eatlime.com/download')]");
  5137. addObsoleteHost("a2zuploads\\.com\/id\\w+","//a[contains(@href,'a2zuploads.com/id')]");
  5138. addObsoleteHost("friendlyfiles\\.net\/download\/\\w+\/","//a[contains(@href,'friendlyfiles.net/download')]");
  5139. addObsoleteHost("flyfile\\.us\/\\w+","//a[contains(@href,'flyfile.us')]");
  5140. addObsoleteHost("speedyshare\\.com\/\\w+","//a[contains(@href,'speedyshare.com')]");
  5141. addObsoleteHost("brontofile\\.com\/download","//a[contains(@href,'brontofile.com/download')]");
  5142. addObsoleteHost("uploadspace\\.eu\/\\w+","//a[contains(@href,'uploadspace.eu')]");
  5143. addObsoleteHost("fooget\\.com\/\\w+","//a[contains(@href,'fooget.com/')]");
  5144. addObsoleteHost("file-bit.net\/\\w+","//a[contains(@href,'file-bit.net/')]");
  5145. addObsoleteHost("keepfile\\.com\/\\w+","//a[contains(@href,'http://keepfile.com')]");
  5146. addObsoleteHost("piggyshare\\.com\/file\/\\w+","//a[contains(@href,'piggyshare.com')]");
  5147. addObsoleteHost("filecrown\\.com\/\\w+","//a[contains(@href,'filecrown.com')]");
  5148. addObsoleteHost("6giga\\.com\/\\w+","//a[contains(@href,'6giga.com')]");
  5149. addObsoleteHost("uploadjockey\\.com\/download\/\\w+","//a[contains(@href,'uploadjockey.com/download')]");
  5150. addObsoleteHost("bluehost\\.to\/dl=\\w+","//a[contains(@href,'bluehost.to')]");
  5151. addObsoleteHost("coolshare\\.cz\/stahnout\/\\w+","//a[contains(@href,'coolshare.cz/stahnout')]");
  5152. addObsoleteHost("filegu\\.ru\/f\/\\w+","//a[contains(@href,'filegu.ru/f')]");
  5153. addObsoleteHost("filebase\\.to\/files\/\\d+\/","//a[contains(@href,'filebase.to/files')]");
  5154. addObsoleteHost("kickload\\.com\/(?:file|get)\/","//a[contains(@href,'kickload.com/file') or contains(@href,'kickload.com/get')]");
  5155. addObsoleteHost("up-file\\.com\/files\/download\/\\w+\/","//a[contains(@href,'up-file.com/download')]");
  5156. addObsoleteHost("ezyfile\\.net\/\\w+","//a[contains(@href,'ezyfile.net/')]");
  5157. addObsoleteHost("k2files\\.com\/files","//a[contains(@href,'k2files.com/files')]");
  5158. addObsoleteHost("aiotool\\.net\/\\w+","//a[contains(@href,'aiotool.net/')]");
  5159. addObsoleteHost("xvideos\\.com\/files\/\\d+\/\\w+","//a[contains(@href,'xvideos.com/files')]");
  5160. addObsoleteHost("filebling\\.com\/dl\/\\d+\/\\d+\/\\w+","//a[contains(@href,'filebling.com/dl')]");
  5161. addObsoleteHost("loaded\\.it\/divx\/\\w+","//a[contains(@href,'loaded.it/divx')]");
  5162. addObsoleteHost("uploadcell\\.com\/\\w+\/\\w+","//a[contains(@href,'uploadcell.com')]");
  5163. addObsoleteHost("jakfile\\.com\/\\w+","//a[contains(@href,'jakfile.com/')]");
  5164. addObsoleteHost("uploadshare\\.cz\/download\/\\w+\/\\w+","//a[contains(@href,'uploadshare.cz/download')]");
  5165. addObsoleteHost("mangoshare\\.com\/\\w+","//a[contains(@href,'mangoshare.com')]");
  5166. addObsoleteHost("ugotfile\\.com\/file\/\\d+\/\\w+","//a[contains(@href,'ugotfile.com/file')]");
  5167. addObsoleteHost("filestab\\.com\/\\w+","//a[contains(@href,'filestab.com')]");
  5168. addObsoleteHost("dotavi\\.com\/\\w+\/.","//a[contains(@href,'dotavi.com/')]");
  5169. addObsoleteHost("crazyupload\\.com\/\\w+","//a[contains(@href,'crazyupload.com')]");
  5170. addObsoleteHost("gaiafile\\.com\/\\w+","//a[contains(@href,'gaiafile.com')]");
  5171. addObsoleteHost("sharejunky\\.com\/\\w+","//a[contains(@href,'sharejunky.com')]");
  5172. addObsoleteHost("fileho\\.com\/download\/\\d+","//a[contains(@href,'fileho.com/download')]");
  5173. addObsoleteHost("(?:bigandfree|BigAndFree)\\.com\/\\d+","//a[contains(@href,'bigandfree.com') or contains(@href,'BigAndFree.com')]");
  5174. addObsoleteHost("bigfile\\.in\/\\w+","//a[contains(@href,'bigfile.in')]");
  5175. addObsoleteHost("bigshare\\.eu\/download\\.php\\?id=","//a[contains(@href,'bigshare.eu/download.php')]");
  5176. addObsoleteHost("dahosting\\.org\/dl\/\\w+","//a[contains(@href,'dahosting.org/dl')]");
  5177. addObsoleteHost("digisofts\\.net\/\\w+","//a[contains(@href,'digisofts.net')]");
  5178. addObsoleteHost("file4save\\.com\/\\w+\/\\w+","//a[contains(@href,'file4save.com')]");
  5179. addObsoleteHost("filereactor\\.com\/\\w+","//a[contains(@href,'filereactor.com/')]");
  5180. addObsoleteHost("filechip\\.com\/\\w+","//a[contains(@href,'filechip.com')]");
  5181. addObsoleteHost("filescloud\\.com\/\\w+\/\\w+","//a[contains(@href,'filescloud.com')]");
  5182. addObsoleteHost("saveqube\\.com\/getfile\/\\w+","//a[contains(@href,'saveqube.com/getfile')]");
  5183. addObsoleteHost("www2\\.turboshare\\.de\/v\/\\d+","//a[contains(@href,'turboshare.de/v')]");
  5184. addObsoleteHost("z-upload\\.com\/\\w+","//a[contains(@href,'z-upload.com')]");
  5185. addObsoleteHost("youshare\\.com\/view\\.php","//a[contains(@href,'youshare.com/view')]");
  5186. addObsoleteHost("jiffyupload\\.com\/\\w+","//a[contains(@href,'jiffyupload.com')]");
  5187. addObsoleteHost("gigeshare\\.com\/preview\/\\w+","//a[contains(@href,'gigeshare.com')]");
  5188. addObsoleteHost("datenklo\\.net\/dl","//a[contains(@href,'datenklo.net')]");
  5189. addObsoleteHost("upload\\.dj\/download\\.php\\?id=\\w+","//a[contains(@href,'upload.dj/download.php')]");
  5190. addObsoleteHost("loadfiles\\.in\/\\w+\/","//a[contains(@href,'loadfiles.in')]");
  5191. addObsoleteHost("upit\\.to\/file:\\w+\/","//a[contains(@href,'upit.to/file')]");
  5192. addObsoleteHost("zshare\\.net\/(?:download|video|audio)\/\\w+","//a[contains(@href,'zshare.net/')]");
  5193. addObsoleteHost("refile\\.net\/f\/\\?\\w+","//a[contains(@href,'refile.net/f/')]");
  5194. addObsoleteHost("dsfileshare\\.com\/download","//a[contains(@href,'dsfileshare.com/download')]");
  5195. addObsoleteHost("sharesimple\\.net\/\\w{2}\/download","//a[contains(@href,'sharesimple.net')]");
  5196. addObsoleteHost("(?:s\\d+\\.|)4files\\.net\/\\d+","//a[contains(@href,'4files.net')]");
  5197. addObsoleteHost("odsiebie\\.com\/pokaz\/\\d+","//a[contains(@href,'odsiebie.com/pokaz')]");
  5198. addObsoleteHost("filenavi\\.com\/direct\/\\w+","//a[contains(@href,'filenavi.com/direct')]");
  5199. addObsoleteHost("3oof\\.com\/\\w+","//a[contains(@href,'3oof.com/')]");
  5200. addObsoleteHost("meshwaar\\.com\/\\w+","//a[contains(@href,'meshwaar.com')]");
  5201. addObsoleteHost("maxupload\\.com\/files\/\\w+","//a[contains(@href,'maxupload.com/files')]");
  5202. addObsoleteHost("share\\.cx\/videos\/\\d+","//a[contains(@href,'share.cx/videos')]");
  5203. addObsoleteHost("atserver\\.eu\/(?:\\w{2}\/|)download\/\\d+","//a[contains(@href,'atserver.eu')]");
  5204. addObsoleteHost("file2upload\\.net\/download\/\\d+","//a[contains(@href,'file2upload.net/download')]");
  5205. addObsoleteHost("filebling\\.com\/\\w+","//a[contains(@href,'filebling.com')]");
  5206. addObsoleteHost("turboshare\\.(?:eu|com)\/files","//a[contains(@href,'turboshare.') and contains(@href,'/files')]");
  5207. addObsoleteHost("rarhost\\.com\/download","//a[contains(@href,'rarhost.com/download')]");
  5208. addObsoleteHost("isharehd\\.com\/\\w+","//a[contains(@href,'isharehd.com')]");
  5209. addObsoleteHost("datenklo\\.net\/file\\.php\\?id=\\w+","//a[contains(@href,'datenklo.net/file.php')]");
  5210. addObsoleteHost("file2share\\.biz\/download\\.php\\?id=\\w+","//a[contains(@href,'file2share.biz/download.php')]");
  5211. addObsoleteHost("savefiles\\.net\/d\/\\w+\\.html","//a[contains(@href,'savefiles.net/d')]");
  5212. addObsoleteHost("bestsharing\\.com\/files\/\\w+","//a[contains(@href,'bestsharing.com/files')]");
  5213. addObsoleteHost("filecache\\.de\/\\d+","//a[contains(@href,'filecache.de/')]");
  5214. addObsoleteHost("i741\\.com\/files\/\\w+","//a[contains(@href,'i741.com/files')]");
  5215. addObsoleteHost("dataup\\.de\/\\d+","//a[contains(@href,'dataup.de')]");
  5216. addObsoleteHost("fofly\\.com\/\\w+","//a[contains(@href,'fofly.com')]");
  5217. addObsoleteHost("shareonall\\.com\/\\w+","//a[contains(@href,'shareonall.com')]");
  5218. addObsoleteHost("sexuploader\\.com\/(?:|..\/)\\?[d|v]=\\w{8}","//a[contains(@href,'sexuploader.com')]");
  5219. 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')]");
  5220. addObsoleteHost("uploadhyper\\.com\/file\/","//a[contains(@href,'uploadhyper.com')]");
  5221. addObsoleteHost("filespawn\\.com\/file\/","//a[contains(@href,'filespawn.com')]");
  5222. addObsoleteHost("caizzii\\.com\/(?:download|\\?file=)","//a[contains(@href,'caizzii.com')]");
  5223. addObsoleteHost("volnyweb\\.cz\/files\/get\/[\\w-_]+","//a[contains(@href,'volnyweb.cz/files')]");
  5224. addObsoleteHost("gotupload\\.com\/\\w+","//a[contains(@href,'gotupload.com/')]");
  5225. addObsoleteHost("mooload\\.com\/new\/file\\.php\\?file=files\/\\d+\/\\d+","//a[contains(@href,'mooload.com/new/file')]");
  5226. addObsoleteHost("z\\d+\\.zupload\\.com\/download\\.php\\?file=getfile&filepath=\\d+","//a[contains(@href,'zupload.com/download')]");
  5227. addObsoleteHost("mytempdir\\.com\/\\d+","//a[contains(@href,'mytempdir.com/')]");
  5228. addObsoleteHost("usershare\\.net\/\\w+","//a[contains(@href,'usershare.net/')]");
  5229. addObsoleteHost("qshare\\.com\/get\/\\d+\/.","//a[contains(@href,'qshare.com/get')]");
  5230. addObsoleteHost("filescash\\.net\/file\/\\d+","//a[contains(@href,'filescash.net/file')]");
  5231. addObsoleteHost("metahyper\\.com\/\\w+","//a[contains(@href,'metahyper.com/')]");
  5232. addObsoleteHost("combozip\\.com\/\\w+","//a[contains(@href,'combozip.com/')]");
  5233. addObsoleteHost("anonstream\\.com\/get_\\w+","//a[contains(@href,'anonstream.com/get_')]");
  5234. addObsoleteHost("x7\\.to\/\\w+","//a[contains(@href,'x7.to/')]");
  5235. addObsoleteHost("uploadbox\\.com\/files\/\\w+","//a[contains(@href,'uploadbox.com/files')]");
  5236. addObsoleteHost("(?:flyupload\\.)?(?:enterupload|flyupload)\\.com\/[\\?\\w]+","//a[contains(@href,'enterupload.com/') or contains(@href,'flyupload.com/')]");
  5237. addObsoleteHost("filepoint\\.de\/dl\/\\w+","//a[contains(@href,'filepoint.de/dl')]");
  5238. addObsoleteHost("icushare\\.com\/\\w+","//a[contains(@href,'icushare.com/')]");
  5239. addObsoleteHost("oron\\.com\/\\w+","//a[contains(@href,'oron.com/')]");
  5240. addObsoleteHost("mystream\\.to\/file\\-\\d+","//a[contains(@href,'mystream.to/file')]");
  5241. addObsoleteHost("x-fs\\.com\/download\\.php\\?id=\\w+","//a[contains(@href,'x-fs.com/download')]");
  5242. addObsoleteHost("srapid\\.eu\/\\w+","//a[contains(@href,'srapid.eu/')]");
  5243. addObsoleteHost("shareshared\\.com\/\\w+","//a[contains(@href,'shareshared.com/')]");
  5244. addObsoleteHost("sosame\\.cz\/\\w+","//a[contains(@href,'sosame.cz/')]");
  5245. addObsoleteHost("s\\d+\\.filesdump\\.com\/file\/\\w+","//a[contains(@href,'filesdump.com/file')]");
  5246. addObsoleteHost("2-klicks\\.de\/\\?d=\\w+","//a[contains(@href,'2-klicks.de/?d=')]");
  5247. addObsoleteHost("silofiles\\.com\/file\/\\d+","//a[contains(@href,'silofiles.com/file')]");
  5248. addObsoleteHost("upfile\\.in\/\\w+","//a[contains(@href,'upfile.in/')]");
  5249. addObsoleteHost("filehook\\.com\/\\w+","//a[contains(@href,'filehook.com/')]");
  5250. addObsoleteHost("mojofile\\.com\/\\w+","//a[contains(@href,'mojofile.com/')]");
  5251. addObsoleteHost("cloudcache\\.cc\/\\w+","//a[contains(@href,'cloudcache.cc/')]");
  5252. addObsoleteHost("1hostclick\\.com\/\\w+","//a[contains(@href,'1hostclick.com/')]");
  5253. addObsoleteHost("4bytez\\.com\/\\w+","//a[contains(@href,'4bytez.com/')]");
  5254. addObsoleteHost("uploadking\\.com\/\\w+","//a[contains(@href,'uploadking.com/')]");
  5255. addObsoleteHost("nahraj\\.cz\/(?:content|down)\/\\w+","//a[contains(@href,'nahraj.cz/')]");
  5256. addObsoleteHost("megarapid\\.eu\/files\/\\d+","//a[contains(@href,'megarapid.eu/files')]");
  5257. addObsoleteHost("(?:fileserve|uploadstation)\\.com\/(?:file|list)\/\\w+","//a[contains(@href,'fileserve.com/') or contains(@href,'uploadstation.com/')]");
  5258. addObsoleteHost("uploadhere\\.com\/\\w+","//a[contains(@href,'uploadhere.com/')]");
  5259. addObsoleteHost("dualshare\\.com\/\\w+","//a[contains(@href,'dualshare.com/')]");
  5260. addObsoleteHost("yourfilehost\\.com\/media","//a[contains(@href,'yourfilehost.com/media')]");
  5261. addObsoleteHost("ftp2share\\.com\/file\/\\w+","//a[contains(@href,'ftp2share.com/file')]");
  5262. addObsoleteHost("storeandserve\\.com\/download\/\\d+","//a[contains(@href,'storeandserve.com/download')]");
  5263. addObsoleteHost("mountfile\\.com\/file(?:\/\\w+){2}","//a[contains(@href,'mountfile.com/file')]");
  5264. addObsoleteHost("save\\.am\/files\/\\w+","//a[contains(@href,'save.am/files')]");
  5265. addObsoleteHost("transitfiles\\.com\/dl\/\\w+","//a[contains(@href,'transitfiles.com/dl')]");
  5266. addObsoleteHost("smartuploader\\.com\/file\\.php\\?f=\\d+","//a[contains(@href,'smartuploader.com/file.php?=')]");
  5267. addObsoleteHost("skipfile\\.com\/\\w+","//a[contains(@href,'skipfile.com/')]");
  5268. addObsoleteHost("stahnu\\.to\/[\\w\\?]+","//a[contains(@href,'stahnu.to/')]");
  5269. addObsoleteHost("flyshare\.cz\/(?:stahni\/|)\\d+","//a[contains(@href,'flyshare.cz/')]");
  5270. addObsoleteHost("(?:ddlani\\.me|ddlanime\\.com)\/\\w+","//a[contains(@href,'ddlani.me/') or contains(@href,'ddlanime.com/')]");
  5271. addObsoleteHost("loadly\\.com\/\\w+","//a[contains(@href,'loadly.com/')]");
  5272. addObsoleteHost("groovefile\\.com\/\\w+","//a[contains(@href,'groovefile.com/')]");
  5273. addObsoleteHost("filezlot\\.com\/\\w+","//a[contains(@href,'filezlot.com/')]");
  5274. addObsoleteHost("shareator\\.(?:net|com)\/\\w+","//a[contains(@href,'shareator.')]");
  5275. addObsoleteHost("yabadaba\\.ru\/files\/","//a[contains(@href,'yabadaba.ru/files/')]");
  5276. addObsoleteHost("rapidhide\\.com\/download\\.php\\?file=\\w+","//a[contains(@href,'rapidhide.com/download.php')]");
  5277. addObsoleteHost("filejungle\\.com\/[fl]\/\\w+","//a[contains(@href,'filejungle.com/')]");
  5278. addObsoleteHost("kewlshare\\.com\/dl\/\\d+","//a[contains(@href,'kewlshare.com/dl')]");
  5279. addObsoleteHost("petandrive\\.com\/file\/\\w+","//a[contains(@href,'petandrive.com/file')]");
  5280. addObsoleteHost("onionshare\\.com\/\\w+","//a[contains(@href,'onionshare.com/')]");
  5281. addObsoleteHost("rapidable\\.com\/\\w+\/download\\.php\\?id=","//a[contains(@href,'rapidable.com/')]");
  5282. addObsoleteHost("filesdump\\.com\/file\/\\w+\/\\d+","//a[contains(@href,'filesdump.com/file')]");
  5283. addObsoleteHost("file2box\\.(?:net|com)\/\\w+","//a[contains(@href,'file2box.')]");
  5284. addObsoleteHost("(?:filesonic|sharingmatrix|wupload)(?:\\.\\w+){1,2}\/(?:file|folder)\/\\w+","//a[contains(@href,'filesonic.') or contains(@href,'sharingmatrix.com') or contains(@href,'wupload.')]");
  5285. // addObsoleteHost("wizzupload\\.com\/\\w+","//a[contains(@href,'wizzupload.com/')]");
  5286. addObsoleteHost("bloggerarticles\\.com\/\\w+","//a[contains(@href,'bloggerarticles.com/')]");
  5287. addObsoleteHost("mojedata\\.sk/","//a[contains(@href,'mojedata.sk/')]");
  5288. addObsoleteHost("sharpfile\\.com\/\\w+","//a[contains(@href,'sharpfile.com/')]");
  5289. addObsoleteHost("upgrand\\.com\/\\w+","//a[contains(@href,'upgrand.com/')]");
  5290. addObsoleteHost("nasdilej\\.cz\/\\w+","//a[contains(@href,'nasdilej.cz/')]");
  5291. addObsoleteHost("mediatack\\.cz\/stahuj/\\w+","//a[contains(@href,'mediatack.cz/stahuj/')]");
  5292. addObsoleteHost("share-it\\.to\/file/\\w+","//a[contains(@href,'share-it.to/file/')]");
  5293. addObsoleteHost("primeupload\\.com\/file/\\w+","//a[contains(@href,'primeupload.com/file/')]");
  5294. addObsoleteHost("(?:uploads\\.glumbo|glumbouploads)\\.com\/\\w+","//a[contains(@href,'uploads.glumbo.com') or contains(@href,'glumbouploads.com')]");
  5295. addObsoleteHost("filebeer\\.info\/\\w+","//a[contains(@href,'filebeer.info/')]");
  5296. addObsoleteHost("baberepublic\\.com\/link\/\\w+","//a[contains(@href,'baberepublic.com/link/')]");
  5297. addObsoleteHost("xtu\\.me\/\\w+","//a[contains(@href,'xtu.me/')]");
  5298. addObsoleteHost("sharebase\\.de\/files\/\\w+","//a[contains(@href,'sharebase.de/files/')]");
  5299. addObsoleteHost("filerobo\\.com\/\\w+","//a[contains(@href,'filerobo.com/')]");
  5300. addObsoleteHost("filevelocity\\.com\/\\w+","//a[contains(@href,'filevelocity.com/')]");
  5301. addObsoleteHost("filezpro\\.com\/\\w+","//a[contains(@href,'filezpro.com/')]");
  5302. addObsoleteHost("file4sharing\\.com\/\\w+","//a[contains(@href,'file4sharing.com/')]");
  5303. addObsoleteHost("cing\\.be\/\\w+","//a[contains(@href,'cing.be/')]");
  5304. addObsoleteHost("ufile\\.eu\/\\w+","//a[contains(@href,'ufile.eu/')]");
  5305. addObsoleteHost("pigsonic\\.com\/\\w+","//a[contains(@href,'pigsonic.com/')]");
  5306. addObsoleteHost("fileupped\\.com\/\\w+","//a[contains(@href,'fileupped.com/')]");
  5307. addObsoleteHost("sharerun\\.com\/\\w+","//a[contains(@href,'sharerun.com/')]");
  5308. addObsoleteHost("rapidslnare\\.com\/\\w+","//a[contains(@href,'rapidslnare.com/')]");
  5309. addObsoleteHost("monsteruploads\\.eu\/\\w+","//a[contains(@href,'monsteruploads.eu/')]");
  5310. addObsoleteHost("b9bb\\.com\/\\w+","//a[contains(@href,'b9bb.com/')]");
  5311. addObsoleteHost("jamber\\.info\/\\w+","//a[contains(@href,'jamber.info/')]");
  5312. addObsoleteHost("(?:megaftp|MegaFTP)\\.com\/\\w+","//a[contains(@href,'megaftp.com/') or contains(@href,'MegaFTP.com/')]");
  5313. addObsoleteHost("desiupload\\.net\/\\?d=\\w+","//a[contains(@href,'desiupload.net/')]");
  5314. addObsoleteHost("file27\\.com\/\\w+","//a[contains(@href,'file27.com/')]");
  5315. addObsoleteHost("yastorage\\.com\/\\w+","//a[contains(@href,'yastorage.com/')]");
  5316. addObsoleteHost("filehost\\.ws\/\\w+","//a[contains(@href,'filehost.ws/')]");
  5317. addObsoleteHost("copyload\\.com\/\\w+","//a[contains(@href,'copyload.com/')]");
  5318. addObsoleteHost("venusfile\\.com\/\\w+","//a[contains(@href,'venusfile.com/')]");
  5319. addObsoleteHost("aieshare\\.com\/\\w+","//a[contains(@href,'aieshare.com/')]");
  5320. addObsoleteHost("fileza\\.net\/\\w+","//a[contains(@href,'fileza.net/')]");
  5321. addObsoleteHost("filerose\\.com\/\\w+","//a[contains(@href,'filerose.com/')]");
  5322. addObsoleteHost("squillion\\.com\/\\w+","//a[contains(@href,'squillion.com/')]");
  5323. addObsoleteHost("fileprohost\\.com\/\\w+","//a[contains(@href,'fileprohost.com/')]");
  5324. addObsoleteHost("bitbonus\\.com\/download\/\\w+","//a[contains(@href,'bitbonus.com/')]");
  5325. addObsoleteHost("warserver\\.cz\/\\w+","//a[contains(@href,'warserver.cz/')]");
  5326. addObsoleteHost("uload\\.to\/\\w+","//a[contains(@href,'uload.to/')]");
  5327. addObsoleteHost("sharedbit\\.net\/\\w+","//a[contains(@href,'sharedbit.net/')]");
  5328. addObsoleteHost("megaload\\.it\/\\w+","//a[contains(@href,'megaload.it/')]");
  5329. addObsoleteHost("filewinds\\.com\/\\w+","//a[contains(@href,'filewinds.com/')]");
  5330. addObsoleteHost("uploadcore\\.com\/\\w+","//a[contains(@href,'uploadcore.com/')]");
  5331. addObsoleteHost("syfiles\\.com\/\\w+","//a[contains(@href,'syfiles.com/')]");
  5332. addObsoleteHost("eyesfile\\.com\/\\w+","//a[contains(@href,'eyesfile.com/')]");
  5333. addObsoleteHost("hotfile\\.com\/\\w+","//a[contains(@href,'hotfile.com/')]");
  5334. addObsoleteHost("superupl\\.com\/\\w+","//a[contains(@href,'superupl.com/')]");
  5335. addObsoleteHost("oteupload\\.com\/\\w+","//a[contains(@href,'oteupload.com/')]");
  5336. addObsoleteHost("henchfile\\.com\/\\w+","//a[contains(@href,'henchfile.com/')]");
  5337. addObsoleteHost("HenchFile\\.com\/\\w+","//a[contains(@href,'HenchFile.com/')]");
  5338. addObsoleteHost("filegag\\.com\/\\w+","//a[contains(@href,'filegag.com/')]");
  5339. addObsoleteHost("filedefend\\.com\/\\w+","//a[contains(@href,'filedefend.com/')]");
  5340. addObsoleteHost("hotfiles\\.ws\/\\w+","//a[contains(@href,'hotfiles.ws/')]");
  5341. addObsoleteHost("share-rapid\\.com\/\\w+","//a[contains(@href,'share-rapid.com/')]");
  5342. //addObsoleteHost("sharerapid\\.cz\/\\w+","//a[contains(@href,'sharerapid.cz/')]");
  5343. addObsoleteHost("rapids\\.cz\/\\w+","//a[contains(@href,'rapids.cz/')]");
  5344. addObsoleteHost("share-credit\\.cz\/\\w+","//a[contains(@href,'share-credit.cz/')]");
  5345. addObsoleteHost("share-central\\.cz\/\\w+","//a[contains(@href,'share-central.cz/')]");
  5346. addObsoleteHost("share-ms\\.cz\/\\w+","//a[contains(@href,'share-ms.cz/')]");
  5347. addObsoleteHost("share-net\\.cz\/\\w+","//a[contains(@href,'share-net.cz/')]");
  5348. addObsoleteHost("srapid\\.cz\/\\w+","//a[contains(@href,'srapid.cz/')]");
  5349. addObsoleteHost("share-rapid\\.cz\/\\w+","//a[contains(@href,'share-rapid.cz/')]");
  5350. addObsoleteHost("wooupload\\.com\/\\w+","//a[contains(@href,'wooupload.com/')]");
  5351. addObsoleteHost("megabitshare\\.com\/\\w+","//a[contains(@href,'megabitshare.com/')]");
  5352. addObsoleteHost("uploking\\.com\/\\w+","//a[contains(@href,'uploking.com/')]");
  5353. addObsoleteHost("esnips\\.com\/\\w+","//a[contains(@href,'esnips.com/')]");
  5354. addObsoleteHost("uplly\\.com\/\\w+","//a[contains(@href,'uplly.com/')]");
  5355. addObsoleteHost("ufox\\.com\/\\w+","//a[contains(@href,'ufox.com/')]");
  5356. addObsoleteHost("clz\\.to\/\\w+","//a[contains(@href,'clz.to/')]");
  5357. addObsoleteHost("cloudzer\\.net\/\\w+","//a[contains(@href,'cloudzer.net/')]");
  5358. addObsoleteHost("cloudzer\\.com\/\\w+","//a[contains(@href,'cloudzer.com/')]");
  5359. addObsoleteHost("extabit\\.com\/\\w+","//a[contains(@href,'extabit.com/')]");
  5360. addObsoleteHost("uploadwaste\\.com\/\\w+","//a[contains(@href,'uploadwaste.com/')]");
  5361. addObsoleteHost("247upload\\.com\/\\w+","//a[contains(@href,'uploadwaste.com/')]");
  5362. addObsoleteHost("2download\\.de\/\\w+","//a[contains(@href,'2download.de/')]");
  5363. addObsoleteHost("4fastfile\\.com\/\\w+","//a[contains(@href,'4fastfile.com/')]");
  5364. addObsoleteHost("asixfiles\\.com\/\\w+","//a[contains(@href,'asixfiles.com/')]");
  5365. addObsoleteHost("berofile\\.com\/\\w+","//a[contains(@href,'berofile.com/')]");
  5366. addObsoleteHost("bigupload\\.com\/\\w+","//a[contains(@href,'bigupload.com/')]");
  5367. addObsoleteHost("cepzo\\.com\/\\w+","//a[contains(@href,'cepzo.com/')]");
  5368. addObsoleteHost("czshare\\.com\/\\w+","//a[contains(@href,'czshare.com/')]");
  5369. addObsoleteHost("clouds\\.to\/\\w+","//a[contains(@href,'clouds.to/')]");
  5370. addObsoleteHost("cobrashare\\.sk\/\\w+","//a[contains(@href,'cobrashare.sk/')]");
  5371. addObsoleteHost("coraldrive\\.net\/\\w+","//a[contains(@href,'coraldrive.net/')]");
  5372. addObsoleteHost("cyberlocker\\.ch\/\\w+","//a[contains(@href,'cyberlocker.ch/')]");
  5373. addObsoleteHost("darkport\\.org\/\\w+","//a[contains(@href,'darkport.org/')]");
  5374. addObsoleteHost("dark-uploads\\.com\/\\w+","//a[contains(@href,'dark-uploads.com/')]");
  5375. addObsoleteHost("davvas\\.com\/\\w+","//a[contains(@href,'davvas.com/')]");
  5376. addObsoleteHost("enigmashare\\.com\/\\w+","//a[contains(@href,'enigmashare.com/')]");
  5377. addObsoleteHost("erofly\\.cz\/\\w+","//a[contains(@href,'erofly.cz/')]");
  5378. addObsoleteHost("fastsonic\\.net\/\\w+","//a[contains(@href,'fastsonic.net/')]");
  5379. addObsoleteHost("filebox\\.com\/\\w+","//a[contains(@href,'filebox.com/')]");
  5380. addObsoleteHost("filecity\\.net\/\\w+","//a[contains(@href,'filecity.net/')]");
  5381. addObsoleteHost("filedap\\.com\/\\w+","//a[contains(@href,'filedap.com/')]");
  5382. addObsoleteHost("filedino\\.com\/\\w+","//a[contains(@href,'filedino.com/')]");
  5383. addObsoleteHost("filedownloads\\.org\/\\w+","//a[contains(@href,'filedownloads.org/')]");
  5384. addObsoleteHost("filefolks\\.com\/\\w+","//a[contains(@href,'filefolks.com/')]");
  5385. addObsoleteHost("fileking\\.co\/\\w+","//a[contains(@href,'fileking.co/')]");
  5386. addObsoleteHost("filemates\\.com\/\\w+","//a[contains(@href,'filemates.com/')]");
  5387. addObsoleteHost("files\\.to\/\\w+","//a[contains(@href,'files.to/')]");
  5388. addObsoleteHost("files2k\\.eu\/\\w+","//a[contains(@href,'files2k.eu/')]");
  5389. addObsoleteHost("filesector\\.cc\/\\w+","//a[contains(@href,'filesector.cc/')]");
  5390. addObsoleteHost("filesega\\.com\/\\w+","//a[contains(@href,'filesega.com/')]");
  5391. addObsoleteHost("filesend\\.net\/\\w+","//a[contains(@href,'filesend.net/')]");
  5392. addObsoleteHost("filestay\\.com\/\\w+","//a[contains(@href,'filestay.com/')]");
  5393. addObsoleteHost("filestrum\\.com\/\\w+","//a[contains(@href,'filestrum.com/')]");
  5394. addObsoleteHost("fileuplo\\.de\/\\w+","//a[contains(@href,'fileuplo.de/')]");
  5395. addObsoleteHost("fileupup\\.com\/\\w+","//a[contains(@href,'fileupup.com/')]");
  5396. addObsoleteHost("forunesia\\.com\/\\w+","//a[contains(@href,'forunesia.com/')]");
  5397. addObsoleteHost("freeuploads\\.fr\/\\w+","//a[contains(@href,'freeuploads.fr/')]");
  5398. addObsoleteHost("uploa\\.dk\/\\w+","//a[contains(@href,'uploa.dk/')]");
  5399. addObsoleteHost("getthebit\\.com\/\\w+","//a[contains(@href,'getthebit.com/')]");
  5400. addObsoleteHost("getzilla\\.net\/\\w+","//a[contains(@href,'getzilla.net/')]");
  5401. addObsoleteHost("goldfile\\.eu\/\\w+","//a[contains(@href,'goldfile.eu/')]");
  5402. addObsoleteHost("good\\.com\/\\w+","//a[contains(@href,'good.com/')]");
  5403. addObsoleteHost("grupload\\.com\/\\w+","//a[contains(@href,'grupload.com/')]");
  5404. addObsoleteHost("hellfile\\.com\/\\w+","//a[contains(@href,'hellfile.com/')]");
  5405. addObsoleteHost("hipfile\\.com\/\\w+","//a[contains(@href,'hipfile.com/')]");
  5406. addObsoleteHost("hitfile\\.com\/\\w+","//a[contains(@href,'hitfile.com/')]");
  5407. addObsoleteHost("hulkfile\\.eu\/\\w+","//a[contains(@href,'hulkfile.eu/')]");
  5408. addObsoleteHost("i-filez\\.com\/\\w+","//a[contains(@href,'i-filez.com/')]");
  5409. addObsoleteHost("ifile\\.ws\/\\w+","//a[contains(@href,'ifile.ws/')]");
  5410. addObsoleteHost("kupload\\.org\/\\w+","//a[contains(@href,'kupload.org/')]");
  5411. addObsoleteHost("duckfile\\.net\/\\w+","//a[contains(@href,'duckfile.net/')]");
  5412. addObsoleteHost("packupload\\.com\/\\w+","//a[contains(@href,'packupload.com/')]");
  5413. addObsoleteHost("terafile\\.com\/\\w+","//a[contains(@href,'terafile.com/')]");
  5414. addObsoleteHost("terafile\\.co\/\\w+","//a[contains(@href,'terafile.co/')]");
  5415. addObsoleteHost("fileom\\.com\/\\w+","//a[contains(@href,'fileom.com/')]");
  5416. addObsoleteHost("luckyshare\\.net\/\\w+","//a[contains(@href,'luckyshare.net/')]");
  5417. addObsoleteHost("lemuploads\\.com\/\\w+","//a[contains(@href,'lemuploads.com/')]");
  5418. addObsoleteHost("limelinx\\.com\/\\w+","//a[contains(@href,'limelinx.com/')]");
  5419. addObsoleteHost("maxshare\\.pl\/\\w+","//a[contains(@href,'maxshare.pl/')]");
  5420. addObsoleteHost("megarelease\\.org\/\\w+","//a[contains(@href,'megarelease.org/')]");
  5421. addObsoleteHost("megashare\\.com\/\\w+","//a[contains(@href,'megashare.com/')]");
  5422. addObsoleteHost("minus\\.com\/\\w+","//a[contains(@href,'minus.com/')]");
  5423. addObsoleteHost("mlfat4arab\\.com\/\\w+","//a[contains(@href,'mlfat4arab.com/')]");
  5424. addObsoleteHost("multishare\\.cz\/\\w+","//a[contains(@href,'multishare.cz/')]");
  5425. addObsoleteHost("nirafile\\.com\/\\w+","//a[contains(@href,'nirafile.com/')]");
  5426. addObsoleteHost("ok2upload\\.com\/\\w+","//a[contains(@href,'ok2upload.com/')]");
  5427. addObsoleteHost("peejeshare\\.com\/\\w+","//a[contains(@href,'peejeshare.com/')]");
  5428. addObsoleteHost("premiuns\\.org\/\\w+","//a[contains(@href,'premiuns.org/')]");
  5429. addObsoleteHost("przeklej\\.net\/\\w+","//a[contains(@href,'przeklej.net/')]");
  5430. addObsoleteHost("qkup\\.net\/\\w+","//a[contains(@href,'qkup.net/')]");
  5431. addObsoleteHost("rapidupload\\.sk\/\\w+","//a[contains(@href,'rapidupload.sk/')]");
  5432. addObsoleteHost("rockdizfile\\.com\/\\w+","//a[contains(@href,'rockdizfile.com/')]");
  5433. addObsoleteHost("rocketfile\\.net\/\\w+","//a[contains(@href,'rocketfile.net/')]");
  5434. addObsoleteHost("share-now\\.net\/\\w+","//a[contains(@href,'share-now.net/')]");
  5435. addObsoleteHost("share76\\.com\/\\w+","//a[contains(@href,'share76.com/')]");
  5436. addObsoleteHost("sharebees\\.com\/\\w+","//a[contains(@href,'sharebees.com/')]");
  5437. addObsoleteHost("sharefiles\\.co\/\\w+","//a[contains(@href,'sharefiles.co/')]");
  5438. addObsoleteHost("slingfile\\.com\/\\w+","//a[contains(@href,'slingfile.com/')]");
  5439. addObsoleteHost("sms4file\\.com\/\\w+","//a[contains(@href,'sms4file.com/')]");
  5440. addObsoleteHost("space4file\\.com\/\\w+","//a[contains(@href,'space4file.com/')]");
  5441. addObsoleteHost("tigershare\\.net\/\\w+","//a[contains(@href,'tigershare.net/')]");
  5442. addObsoleteHost("toucansharing\\.com\/\\w+","//a[contains(@href,'toucansharing.com/')]");
  5443. addObsoleteHost("ubuntuone\\.com\/\\w+","//a[contains(@href,'ubuntuone.com/')]");
  5444. addObsoleteHost("unextfiles\\.com\/\\w+","//a[contains(@href,'unextfiles.com/')]");
  5445. addObsoleteHost("upaj\\.pl\/\\w+","//a[contains(@href,'upaj.pl/')]");
  5446. addObsoleteHost("upfile\\.biz\/\\w+","//a[contains(@href,'upfile.biz/')]");
  5447. addObsoleteHost("uploadbin\\.net\/\\w+","//a[contains(@href,'uploadbin.net/')]");
  5448. addObsoleteHost("uploadic\\.com\/\\w+","//a[contains(@href,'uploadic.com/')]");
  5449. addObsoleteHost("uploadinc\\.com\/\\w+","//a[contains(@href,'uploadinc.com/')]");
  5450. addObsoleteHost("uploading4u\\.eu\/\\w+","//a[contains(@href,'uploading4u.eu/')]");
  5451. addObsoleteHost("uploadjet\\.net\/\\w+","//a[contains(@href,'uploadjet.net/')]");
  5452. addObsoleteHost("uploadorb\\.com\/\\w+","//a[contains(@href,'uploadorb.com/')]");
  5453. addObsoleteHost("upthe\\.net\/\\w+","//a[contains(@href,'upthe.net/')]");
  5454. addObsoleteHost("uptorch\\.com\/\\w+","//a[contains(@href,'uptorch.com/')]");
  5455. addObsoleteHost("vidbox\\.yt\/\\w+","//a[contains(@href,'vidbox.yt/')]");
  5456. addObsoleteHost("videozer\\.com\/\\w+","//a[contains(@href,'videozer.com/')]");
  5457. addObsoleteHost("vreer\\.com\/\\w+","//a[contains(@href,'vreer.com/')]");
  5458. addObsoleteHost("wallobit\\.com\/\\w+","//a[contains(@href,'wallobit.com/')]");
  5459. addObsoleteHost("zooupload\\.com\/\\w+","//a[contains(@href,'zooupload.com/')]");
  5460. addObsoleteHost("xerver\\.co\/\\w+","//a[contains(@href,'xerver.co/')]");
  5461. addObsoleteHost("privatefiles\\.com\/\\w+","//a[contains(@href,'privatefiles.com/')]");
  5462. addObsoleteHost("bitshare\\.com\/\\w+","//a[contains(@href,'bitshare.com/')]");
  5463. addObsoleteHost("asfile\\.com\/\\w+","//a[contains(@href,'asfile.com/')]");
  5464. addObsoleteHost("billionuploads\\.com\/\\w+","//a[contains(@href,'billionuploads.com/')]");
  5465. addObsoleteHost("\\*{7,100}\/[\\w\\d]+","//a[contains(@href,'*******/')]");
  5466. addObsoleteHost("filesaur\\.com\/\\w+","//a[contains(@href,'filesaur.com/')]");
  5467. addObsoleteHost("rapidshare\\.com\/\\w+","//a[contains(@href,'rapidshare.com/')]");
  5468. addObsoleteHost("rapidshare\\.ru\/\\w+","//a[contains(@href,'rapidshare.ru/')]");
  5469. addObsoleteHost("filesfrog\\.net\/\\w+","//a[contains(@href,'filesfrog.net/')]");
  5470. addObsoleteHost("4savefile\\.com\/\\w+","//a[contains(@href,'4savefile.com/')]");
  5471. addObsoleteHost("bayfiles\\.com\/\\w+","//a[contains(@href,'bayfiles.com/')]");
  5472. addObsoleteHost("bayfiles\\.net\/\\w+","//a[contains(@href,'bayfiles.net/')]");
  5473. addObsoleteHost("dodane\\.pl\/\\w+","//a[contains(@href,'dodane.pl/')]");
  5474. addObsoleteHost("dotsemper\\.com\/\\w+","//a[contains(@href,'dotsemper.com/')]");
  5475. addObsoleteHost("egofiles\\.com\/\\w+","//a[contains(@href,'egofiles.com/')]");
  5476. addObsoleteHost("epicshare\\.net\/\\w+","//a[contains(@href,'epicshare.net/')]");
  5477. addObsoleteHost("fiberupload\\.net\/\\w+","//a[contains(@href,'fiberupload.net/')]");
  5478. addObsoleteHost("filemonkey\\.in\/\\w+","//a[contains(@href,'filemonkey.in/')]");
  5479. addObsoleteHost("filemonster\\.net\/\\w+","//a[contains(@href,'filemonster.net/')]");
  5480. addObsoleteHost("filepom\\.com\/\\w+","//a[contains(@href,'filepom.com/')]");
  5481. addObsoleteHost("filesbb\\.com\/\\w+","//a[contains(@href,'filesbb.com/')]");
  5482. addObsoleteHost("fileshareup\\.com\/\\w+","//a[contains(@href,'fileshareup.com/')]");
  5483. addObsoleteHost("filevice\\.com\/\\w+","//a[contains(@href,'filevice.com/')]");
  5484. addObsoleteHost("gigaup\\.fr\/\\w+","//a[contains(@href,'gigaup.fr/')]");
  5485. addObsoleteHost("inafile\\.com\/\\w+","//a[contains(@href,'inafile.com/')]");
  5486. addObsoleteHost("isavelink\\.com\/\\w+","//a[contains(@href,'isavelink.com/')]");
  5487. addObsoleteHost("loombo\\.com\/\\w+","//a[contains(@href,'loombo.com/')]");
  5488. addObsoleteHost("megafiles\\.se\/\\w+","//a[contains(@href,'megafiles.se/')]");
  5489. addObsoleteHost("migupload\\.com\/\\w+","//a[contains(@href,'migupload.com/')]");
  5490. addObsoleteHost("mydisc\\.net\/\\w+","//a[contains(@href,'mydisc.net/')]");
  5491. addObsoleteHost("nitrobits\\.com\/\\w+","//a[contains(@href,'nitrobits.com/')]");
  5492. addObsoleteHost("potload\\.com\/\\w+","//a[contains(@href,'potload.com/')]");
  5493. addObsoleteHost("redload\\.net\/\\w+","//a[contains(@href,'redload.net/')]");
  5494. addObsoleteHost("shareprofi\\.com\/\\w+","//a[contains(@href,'shareprofi.com/')]");
  5495. addObsoleteHost("sharesuper\\.info\/\\w+","//a[contains(@href,'sharesuper.info/')]");
  5496. addObsoleteHost("sinhro\\.net\/\\w+","//a[contains(@href,'sinhro.net/')]");
  5497. addObsoleteHost("speedfile\\.cz\/\\w+","//a[contains(@href,'speedfile.cz/')]");
  5498. addObsoleteHost("speedshare\\.org\/\\w+","//a[contains(@href,'speedshare.org/')]");
  5499. addObsoleteHost("storage.novoro\\.net\/\\w+","//a[contains(@href,'storage.novoro.net/')]");
  5500. addObsoleteHost("swankshare\\.com\/\\w+","//a[contains(@href,'swankshare.com/')]");
  5501. addObsoleteHost("swatupload\\.com\/\\w+","//a[contains(@href,'swatupload.com/')]");
  5502. addObsoleteHost("upafile\\.com\/\\w+","//a[contains(@href,'upafile.com/')]");
  5503. addObsoleteHost("uploadmachine\\.com\/\\w+","//a[contains(@href,'uploadmachine.com/')]");
  5504. addObsoleteHost("uploadsat\\.com\/\\w+","//a[contains(@href,'uploadsat.com/')]");
  5505. addObsoleteHost("upshared\\.com\/\\w+","//a[contains(@href,'upshared.com/')]");
  5506. addObsoleteHost("usefile\\.com\/\\w+","//a[contains(@href,'usefile.com/')]");
  5507. addObsoleteHost("yourfiles\\.to\/\\w+","//a[contains(@href,'yourfiles.to/')]");
  5508. addObsoleteHost("zomgupload\\.com\/\\w+","//a[contains(@href,'zomgupload.com/')]");
  5509. addObsoleteHost("~[\\w\\s~]*","//a[contains(@href,'//~') or contains(@href,'//www.~')]");
  5510. addObsoleteHost("filemup\\.com\/\\w+","//a[contains(@href,'filemup.com/')]");
  5511. addObsoleteHost("tuxfile\\.com\/\\w+","//a[contains(@href,'tuxfile.com/')]");
  5512. addObsoleteHost("ultramegabit\\.com\/\\w+","//a[contains(@href,'ultramegabit.com/')]");
  5513. addObsoleteHost("uploadto\\.us\/\\w+","//a[contains(@href,'uploadto.us/')]");
  5514. addObsoleteHost("filecore\\.co\\.nz\/\\w+","//a[contains(@href,'filecore.co.nz/')]");
  5515. addObsoleteHost("fileshare\\.in\\.ua\/\\w+","//a[contains(@href,'fileshare.in.ua/')]");
  5516. addObsoleteHost("firedrive\\.com\/\\w+","//a[contains(@href,'firedrive.com/')]");
  5517. addObsoleteHost("putlocker\\.com\/\\w+","//a[contains(@href,'putlocker.com/')]");
  5518. addObsoleteHost("lumfile\\.com\/\\w+","//a[contains(@href,'lumfile.com/')]");
  5519. addObsoleteHost("lumfile\\.se\/\\w+","//a[contains(@href,'lumfile.se/')]");
  5520. addObsoleteHost("lumfile\\.eu\/\\w+","//a[contains(@href,'lumfile.eu/')]");
  5521. addObsoleteHost("shared\\.com\/\\w+","//a[contains(@href,'shared.com/')]");
  5522. addObsoleteHost("stahovadlo\\.cz\/\\w+","//a[contains(@href,'stahovadlo.cz/')]");
  5523. addObsoleteHost("dizzcloud\\.com\/\\w+","//a[contains(@href,'dizzcloud.com/')]");
  5524. addObsoleteHost("ddlstorage\\.com\/\\w+","//a[contains(@href,'ddlstorage.com/')]");
  5525. addObsoleteHost("dataport\\.cz\/\\w+","//a[contains(@href,'dataport.cz/')]");
  5526. addObsoleteHost("daj\\.to\/\\w+","//a[contains(@href,'daj.to/')]");
  5527. addObsoleteHost("sockshare\\.com\/\\w+","//a[contains(@href,'sockshare.com/')]");
  5528. addObsoleteHost("2drive\\.net\/\\w+","//a[contains(@href,'2drive.net/')]");
  5529. addObsoleteHost("bl\\.st\/\\w+","//a[contains(@href,'bl.st/')]");
  5530. addObsoleteHost("uncapped-downloads\\.com\/\\w+","//a[contains(@href,'uncapped-downloads.com/')]");
  5531. addObsoleteHost("freakshare\\.net\/\\w+","//a[contains(@href,'freakshare.net/')]");
  5532. addObsoleteHost("freakshare\\.com\/\\w+","//a[contains(@href,'freakshare.com/')]");
  5533. // obsolete start
  5534. }
  5535. //obsolete file hosts init end
  5536.  
  5537. function addFileHost(linkRegex, isAliveRegex, isDeadRegex, isUnavaRegex, xpathEx, tryLoop, ispremRegex)
  5538. {
  5539. var host = new Array(7);
  5540. host[0] = linkRegex;
  5541. host[1] = isAliveRegex;
  5542. host[2] = isDeadRegex;
  5543. host[3] = isUnavaRegex;
  5544. host[6] = ispremRegex;
  5545. host[4] = xpathEx;
  5546. tryLoop ? host[5] = true : host[5] = false;
  5547. http_file_hosts.push(host);
  5548. }
  5549. if (GM_getValue("Check_megafileupload_dot_com_links", false))
  5550. {
  5551. addFileHost(
  5552. "megafileupload\.com\/..\/file\/",
  5553. 'downloadbtn',
  5554. 'is not found',
  5555. 'optional--',
  5556. "//a[contains(@href,'megafileupload.com')]");
  5557. }
  5558. if (GM_getValue("Check_demo_dot_ovh_dot_eu_links", false))
  5559. {
  5560. addFileHost(
  5561. "demo\\.ovh\\.eu\/\\w+\/\\w+",
  5562. 'download\\.gif"',
  5563. 'p_point">',
  5564. 'optional--',
  5565. "//a[contains(@href,'demo.ovh.eu')]");
  5566. }
  5567. if (GM_getValue("Check_xkeepfile_dot_com_links", false))
  5568. {
  5569. addFileHost(
  5570. "xkeepfile\.com\/\\w+",
  5571. 'File has been found|Click here to download',
  5572. 'File cannot be found|class="error">',
  5573. 'optional--',
  5574. //'optional--',
  5575. "//a[contains(@href,'xkeepfile.com/') or contains(@href,'Gamesena.com/')]");
  5576. }
  5577. if (GM_getValue("Check_safelinking_dot_net_links", false))
  5578. {
  5579. addFileHost(
  5580. "safelinking\\.net\/p\/\\w+",
  5581. 'color:green;"',
  5582. 'color:(?:red|orange);"',
  5583. 'color:(?:grey|brown);"',
  5584. "//a[contains(@href,'safelinking.net/p/')]",
  5585. true);
  5586. }
  5587. /* if (GM_getValue("Check_ultramegabit_dot_com_links", false))
  5588. {
  5589. addFileHost(
  5590. "ultramegabit\\.com\/file\/details\/[\\w+-]",
  5591. 'name="recaptcha_response',
  5592. '="/folder/add"|>File (?:not found|restricted|has been deleted)|<title>ULTRAMEGABIT</title>',
  5593. 'btn-large btn-danger">|Account limitation notice|502 Bad Gateway',
  5594. "//a[contains(@href,'ultramegabit.com/file')]",
  5595. true);
  5596. } */
  5597. if (GM_getValue("Check_fastshare_dot_cz_links", false))
  5598. {
  5599. addFileHost(
  5600. "fastshare\\.cz\/\\d+\/\\w*",
  5601. 'dwntable">',
  5602. 'nebyla nalezena|nebola nájdená|nie została odnaleziona|color:red;font-weight:bold;border\\-style:dashed|<i class="fa fa-copyright"></i>',
  5603. 'optional--',
  5604. "//a[contains(@href,'fastshare.cz')]");
  5605. }
  5606. if (GM_getValue("Check_fastshare_dot_org_links", false))
  5607. {
  5608. addFileHost(
  5609. "[fF]ast[sS]hare\\.org\/download",
  5610. 'Download ">',
  5611. 'Diese Datei wurde wegen|wurde kein Dateiname',
  5612. 'optional--',
  5613. "//a[contains(@href,'fastshare.org/download') or contains(@href,'FastShare.org/download')]");
  5614. }
  5615. if (GM_getValue("Check_partage_dash_facile_dot_com_links", false))
  5616. {
  5617. addFileHost(
  5618. "partage-facile\.com\/\\w+",
  5619. 'class="title"><strong>|colspan="2"',
  5620. 'Page introuvable|class="alert-message',
  5621. 'optional--',
  5622. "//a[contains(@href,'partage-facile.com')]");
  5623. }
  5624. if (GM_getValue("Check_rapidgator_dot_net_links", false))
  5625. {
  5626. addFileHost(
  5627. "rapidgator\\.net\/file\/\\w+",
  5628. '/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',
  5629. 'Error 404|File not found|Error 500|Файл не найден|ファイルが探せませんでした|Fichier non trouvé|Archivo no encontrado|Select your plan',
  5630. 'optional--',
  5631. "//a[contains(@href,'rapidgator.net/file')]",
  5632. true
  5633. );
  5634. }
  5635. if (GM_getValue("Check_relink_dot_us_links", false))
  5636. {
  5637. addFileHost(
  5638. "relink\\.us\/(?:f\/\\w+|go\\.php\\?id=\\d+|view\\.php\\?id=\\d+)",
  5639. 'online_detail\\.png" alt="Status',
  5640. '(?:offline|partially)_detail\\.png" alt="Status|File deleted',
  5641. 'unknown_detail\\.png" alt="Status',
  5642. "//a[contains(@href,'relink.us/')]"
  5643. );
  5644. }
  5645. if (GM_getValue("Check_uploadstube_dot_de_links", false))
  5646. {
  5647. addFileHost(
  5648. "uploadstube\\.de\/download\\.php\\?file=\\d+",
  5649. 'div id="dl"',
  5650. 'Sie haben den Link falsch',
  5651. 'optional--',
  5652. "//a[contains(@href,'uploadstube.de/download.php?file=')]"
  5653. );
  5654. }
  5655. if (GM_getValue("Check_flyfiles_dot_net_links", false))
  5656. {
  5657. addFileHost(
  5658. "flyfiles\\.net\/\\w+",
  5659. 'download_button"|"Download file"',
  5660. 'File not found!|Файл не найден',
  5661. 'optional--',
  5662. "//a[contains(@href,'flyfiles.net/')]"
  5663. );
  5664. }
  5665. if (GM_getValue("Check_wikiupload_dot_com_links", false))
  5666. {
  5667. addFileHost(
  5668. "wikiupload\\.com\/\\w+",
  5669. 'download-button">',
  5670. 'Sorry, File not found',
  5671. 'optional--',
  5672. "//a[contains(@href,'wikiupload.com/')]"
  5673. );
  5674. }
  5675. if (GM_getValue("Check_hostuje_dot_net_links", false))
  5676. {
  5677. addFileHost(
  5678. "hostuje\\.net\/file\\.php\\?id=\\w+",
  5679. 'file\\.php">|Pobierz Plik',
  5680. 'Podany plik nie zosta',
  5681. 'optional--',
  5682. "//a[contains(@href,'hostuje.net/file')]"
  5683. );
  5684. }
  5685. if (GM_getValue("Check_gettyfile_dot_ru_links", false))
  5686. {
  5687. addFileHost(
  5688. "gettyfile\\.ru\/\\d+",
  5689. 'download\\.gif border',
  5690. '<center><font size="3">',
  5691. 'optional--',
  5692. "//a[contains(@href,'gettyfile.ru/')]"
  5693. );
  5694. }
  5695. if (GM_getValue("Check_tufiles_dot_ru_links", false))
  5696. {
  5697. addFileHost(
  5698. "(?:tufiles|turbob1t|failoobmenik|filesmail|firebit|dlbit|files\\.china\\-gsm|3aka4aem|file\\.piratski|mnogofiles|links-free|turbo-bit|turbosfiles)\\.\\w+\/\\w+",
  5699. 'download\\-file">',
  5700. 'col-1">\\s*<h1>',
  5701. 'optional--',
  5702. "//a[contains(@href,'tufiles.ru/') or contains(@href,'turbob1t.ru/') or contains(@href,'filesmail.ru/') or contains(@href,'failoobmenik.ru/')"+
  5703. " or contains(@href,'firebit.in/') or contains(@href,'dlbit.net/') or contains(@href,'files.china-gsm.ru/') or contains(@href,'3aka4aem.ru/')"+
  5704. " or contains(@href,'file.piratski.ru/') or contains(@href,'mnogofiles.com/') or contains(@href,'links-free.ru/')"+
  5705. " or contains(@href,'turbo-bit.ru/') or contains(@href,'turbosfiles.ru/')]"
  5706. );
  5707. }
  5708. if (GM_getValue("Check_data_dot_hu_links", false))
  5709. {
  5710. addFileHost(
  5711. "data\\.hu\/get\/\\d+\/",
  5712. 'download_box_button',
  5713. 'missing\\.php',
  5714. 'optional--',
  5715. "//a[contains(@href,'data.hu/get')]",
  5716. true
  5717. );
  5718. }
  5719. if (GM_getValue("Check_filesmelt_dot_com_links", false))
  5720. {
  5721. addFileHost(
  5722. "filesmelt\\.com\/dl\/\\w+",
  5723. '(Your download is ready|Download File)',
  5724. 'Sorry, but your',
  5725. 'optional--',
  5726. "//a[contains(@href,'filesmelt.com/dl')]"
  5727. );
  5728. }
  5729. if (GM_getValue("Check_indowebster_dot_com_links", false))
  5730. {
  5731. addFileHost(
  5732. "(?:files\\.)?indowebster\\.com\/download\/\\w+\/",
  5733. 'premiumBtn"',
  5734. 'errorMessage"',
  5735. 'optional--',
  5736. "//a[contains(@href,'indowebster.com/download')]"
  5737. );
  5738. }
  5739. if (GM_getValue("Check_superload_dot_cz_links", false))
  5740. {
  5741. addFileHost(
  5742. "superload\\.cz\/dl\/\\w+",
  5743. 'icon-download">',
  5744. 'soubor nebyl nalezen',
  5745. 'optional--',
  5746. "//a[contains(@href,'superload.cz/dl')]"
  5747. );
  5748. }
  5749. if (GM_getValue("Check_hulkfile_dot_eu_links", false))
  5750. {
  5751. addFileHost(
  5752. "(?:w\\.hulkfile\\.com|hulkfile\\.eu)\/\\w+",
  5753. 'op" value="download',
  5754. 'class="err">|width:500px;text-align:left;">',
  5755. 'optional--',
  5756. "//a[contains(@href,'hulkfile.')]"
  5757. );
  5758. }
  5759. if (GM_getValue("Check_easybytez_dot_com_links", false))
  5760. {
  5761. addFileHost(
  5762. "easybytez\\.com\/\\w+",
  5763. 'op" value="download',
  5764. 'stop_error\\.gif',
  5765. 'optional--',
  5766. "//a[contains(@href,'easybytez.com/')]"
  5767. );
  5768. }
  5769. if (GM_getValue("Check_filestore_dot_com_dot_ua_links", false))
  5770. {
  5771. addFileHost(
  5772. "filestore\\.com\\.ua\/\\?d=\\w+",
  5773. 'tdrow1>',
  5774. 'class=warn',
  5775. 'optional--',
  5776. "//a[contains(@href,'filestore.com.ua/?d=')]"
  5777. );
  5778. }
  5779. if (GM_getValue("Check_netkups_dot_com_links", false))
  5780. {
  5781. addFileHost(
  5782. "netkups\\.com\/\\?d=\\w+",
  5783. 'submit">Continue',
  5784. 'page">File not found|deleted due to inactivity',
  5785. 'optional--',
  5786. "//a[contains(@href,'netkups.com/?d=')]"
  5787. );
  5788. }
  5789. if (GM_getValue("Check_openfile_dot_ru_links", false))
  5790. {
  5791. addFileHost(
  5792. "openfile\\.ru\/(?:video\/|)\\d+",
  5793. 'videobox_left">',
  5794. 'blog_title">|not found on this server',
  5795. 'optional--',
  5796. "//a[contains(@href,'openfile.ru/')]"
  5797. );
  5798. }
  5799. if (GM_getValue("Check_extmatrix_dot_com_links", false))
  5800. {
  5801. addFileHost(
  5802. "extmatrix\\.com\/files\/\\w+",
  5803. 'div class="success"',
  5804. 'div class="error"',
  5805. 'optional--',
  5806. "//a[contains(@href,'extmatrix.com/files')]"
  5807. );
  5808. }
  5809. if (GM_getValue("Check_sendfiles_dot_nl_links", false))
  5810. {
  5811. addFileHost(
  5812. "sendfiles\\.nl\/download.aspx\\?ID=\\w+",
  5813. 'content_lnkDownload',
  5814. 'error\\.aspx\\?',
  5815. 'optional--',
  5816. "//a[contains(@href,'sendfiles.nl/download.aspx')]"
  5817. );
  5818. }
  5819. /* if (GM_getValue("Check_sockshare_dot_com_links", false))
  5820. {
  5821. addFileHost(
  5822. "sockshare\\.com\/file\/\\w+",
  5823. 'choose_speed">',
  5824. 'message t_0\'>',
  5825. 'optional--',
  5826. "//a[contains(@href,'sockshare.com/file')]"
  5827. );
  5828. } */
  5829. if (GM_getValue("Check_yourfilestore_dot_com_links", false))
  5830. {
  5831. addFileHost(
  5832. "yourfilestore\\.com\/download\/\\d+\/",
  5833. 'download_data">',
  5834. 'may have been deleted|<h1>Sorry!<\/h1>',
  5835. 'optional--',
  5836. "//a[contains(@href,'yourfilestore.com/download')]"
  5837. );
  5838. }
  5839. if (GM_getValue("Check_nekaka_dot_com_links", false))
  5840. {
  5841. addFileHost(
  5842. "nekaka\\.com\/d\/[\\w-]+",
  5843. 'downloadForm">',
  5844. 'invalid file link',
  5845. 'optional--',
  5846. "//a[contains(@href,'nekaka.com/d')]"
  5847. );
  5848. }
  5849. if (GM_getValue("Check_filebig_dot_net_links", false))
  5850. {
  5851. addFileHost(
  5852. "filebig\\.net\/files\/\\w+",
  5853. 'downloadFile">',
  5854. '<p>File not found<\/p>',
  5855. 'optional--',
  5856. "//a[contains(@href,'filebig.net/files')]"
  5857. );
  5858. }
  5859. if (GM_getValue("Check_gamefront_dot_com_links", false))
  5860. {
  5861. addFileHost(
  5862. "files\\.filefront\\.com\/\/;\\d+;;",
  5863. 'downloadLink">',
  5864. 'File not found, you',
  5865. 'optional--',
  5866. "//a[contains(@href,'files.filefront.com')]"
  5867. );
  5868.  
  5869. addFileHost(
  5870. "gamefront\\.com\/files\/\\d+",
  5871. 'downloadLink">',
  5872. 'File not found, you',
  5873. 'optional--',
  5874. "//a[contains(@href,'gamefront.com/files')]"
  5875. );
  5876. }
  5877. if (GM_getValue("Check_hyperfileshare_dot_com_links", false))
  5878. {
  5879. addFileHost(
  5880. "(?:download\\.|)hyperfileshare\\.com\/(?:download\\.php\\?code=|d\/)\\w+",
  5881. 'dnlLnk"',
  5882. 'already been deleted',
  5883. 'optional--',
  5884. "//a[contains(@href,'hyperfileshare.com/download') or contains(@href,'hyperfileshare.com/d')]"
  5885. );
  5886. }
  5887. if (GM_getValue("Check_hellupload_dot_com_links", false))
  5888. {
  5889. addFileHost(
  5890. "hellupload\\.com\/\\w+",
  5891. '<h3>Download File<br',
  5892. 'id="podstrona">|AVOID_IE_BUG',
  5893. 'optional--',
  5894. "//a[contains(@href,'hellupload.com/')]"
  5895. );
  5896. }
  5897. if (GM_getValue("Check_free_dash_uploading_dot_com_links", false))
  5898. {
  5899. addFileHost(
  5900. "free\\-uploading\\.com\/\\w+",
  5901. 'op" value="download',
  5902. 'class="err">|width:500px;text-align:left;">',
  5903. 'optional--',
  5904. "//a[contains(@href,'free-uploading.com/')]"
  5905. );
  5906. }
  5907. if (GM_getValue("Check_fileape_dot_com_links", false))
  5908. {
  5909. addFileHost(
  5910. "fileape\\.com\/download\\-",
  5911. 'button_dl\\.png',
  5912. 'does not exist\\.',
  5913. 'optional--',
  5914. "//a[contains(@href,'fileape.com/')]"
  5915. );
  5916. }
  5917. if (GM_getValue("Check_uppit_dot_com_links", false))
  5918. {
  5919. addFileHost(
  5920. "(?:uppit\\.com|up\\.ht)\/\\w+",
  5921. 'op" value="download',
  5922. 'class="err">|style="width:500px;text-align:left;"|fish-404\\.png"',
  5923. 'optional--',
  5924. "//a[contains(@href,'up.ht/') or contains(@href,'uppit.com/')]",
  5925. true
  5926. );
  5927. }
  5928. if (GM_getValue("Check_nosupload_dot_com_links", false))
  5929. {
  5930. addFileHost(
  5931. "nosupload\\.com\/(?:\\?d=)?\\w+",
  5932. 'op" value="download',
  5933. '>File Not Found<',
  5934. 'optional--',
  5935. "//a[contains(@href,'nosupload.com')]",
  5936. true
  5937. );
  5938. }
  5939. if (GM_getValue("Check_filesin_dot_com_links", false))
  5940. {
  5941. addFileHost(
  5942. "filesin\\.com\/\\w+\/download\\.html",
  5943. 'download_area">',
  5944. 'error_note">',
  5945. 'optional--',
  5946. "//a[contains(@href,'filesin.com/')]",
  5947. true
  5948. );
  5949. }
  5950. if (GM_getValue("Check_nowdownload_dot_eu_links", false))
  5951. {
  5952. addFileHost(
  5953. "nowdownload\\.eu\/dl\/\\w+",
  5954. 'alert-success"',
  5955. 'This file does not exist!',
  5956. 'The file is being transfered',
  5957. "//a[contains(@href,'nowdownload.eu/dl')]"
  5958. );
  5959. }
  5960. if (GM_getValue("Check_axifile_dot_com_links", false))
  5961. {
  5962. addFileHost(
  5963. "axifile\\.com(?:\/\w(2))?\/\\??\\w+",
  5964. 'Dbutton_big"',
  5965. 'download\\-error\\.php',
  5966. 'optional--',
  5967. "//a[contains(@href,'axifile.com/')]"
  5968. );
  5969. }
  5970. if (GM_getValue("Check_hulkshare_dot_com_links", false))
  5971. {
  5972. addFileHost(
  5973. "hulkshare\.com\/\\w+",
  5974. 'download\.sam\.png|This is a private file|id="filename',
  5975. 'File does not exist|fingerprint protected copyright',
  5976. 'optional--',
  5977. "//a[contains(@href,'hulkshare.com')]"
  5978. );
  5979. }
  5980. if (GM_getValue("Check_turbobit_dot_net_links", false)) //folders
  5981. {
  5982. addFileHost(
  5983. "turbobit\\.(?:net|pl)\/download\/folder\/\\d+",
  5984. 'col-1">\\s*<s',
  5985. 'col-1">\\s*<h',
  5986. 'optional--',
  5987. "//a[contains(@href,'turbobit.') and contains(@href,'download/folder')]"
  5988. );
  5989. }
  5990. if (GM_getValue("Check_hitfile_dot_net_links", false)) //folders
  5991. {
  5992. addFileHost(
  5993. "hitfile\\.net\/download\/folder\/\\d+",
  5994. 'content">\\s*<s',
  5995. 'content">\\s*<h',
  5996. 'optional--',
  5997. "//a[contains(@href,'hitfile.net/download/folder')]"
  5998. );
  5999. }
  6000. if (GM_getValue("Check_netload_dot_in_links", false)) //folders
  6001. {
  6002. addFileHost(
  6003. "netload\\.in\/folder\\.php\\?folder_id=\\w+",
  6004. 'images\/online\\.gif',
  6005. 'InPage_Error"',
  6006. 'optional--',
  6007. "//a[contains(@href,'netload.in/folder.php')]"
  6008. );
  6009. }
  6010. if (GM_getValue("Check_movshare_dot_net_links", false))
  6011. {
  6012. addFileHost(
  6013. "movshare\\.net\\/video\\/\\w+",
  6014. 'optional--"',
  6015. 'no longer exists',
  6016. 'optional--',
  6017. "//a[contains(@href,'movshare.net/video')]"
  6018. );
  6019. }
  6020. if (GM_getValue("Check_plunder_dot_com_links", false))
  6021. {
  6022. addFileHost(
  6023. "plunder\.com\/\\w+",
  6024. 'x\/download\\.gif',
  6025. '404 - File or directory not found.',
  6026. 'optional--',
  6027. "//a[contains(@href,'plunder.com')]"
  6028. );
  6029. }
  6030. if (GM_getValue("Check_mafiastorage_dot_com_links", false))
  6031. {
  6032. addFileHost(
  6033. "mafiastorage\\.com\/\\w+",
  6034. 'op" value="download',
  6035. 'class="err">|style="width:500px;text-align:left;"',
  6036. 'optional--',
  6037. "//a[contains(@href,'mafiastorage.com/')]"
  6038. );
  6039. }
  6040. if (GM_getValue("Check_uploadspace_dot_pl_links", false))
  6041. {
  6042. addFileHost(
  6043. "uploadspace\.pl\/plik\\w+",
  6044. 'Downloading .+? \\|',
  6045. 'Downloading a file',
  6046. 'optional--',
  6047. "//a[contains(@href,'uploadspace.pl/plik')]"
  6048. );
  6049. }
  6050. if (GM_getValue("Check_uploadingit_dot_com_links", false))
  6051. {
  6052. addFileHost(
  6053. "uploadingit\\.com\/file\/\\w+",
  6054. 'downloadTitle">',
  6055. 'deleteContent">',
  6056. 'optional--',
  6057. "//a[contains(@href,'uploadingit.com/file')]"
  6058. );
  6059. }
  6060. if (GM_getValue("Check_rghost_dot_net_links", false))
  6061. {
  6062. addFileHost(
  6063. "rghost\.(?:net|ru)\/(?:|private\/)\\d+",
  6064. 'download_link|btn large download"',
  6065. 'file is restricted|File is deleted|503 Service Unavailable',
  6066. 'File was deleted',
  6067. "//a[contains(@href,'rghost.')]"
  6068. );
  6069. }
  6070. if (GM_getValue("Check_xdisk_dot_cz_links", false))
  6071. {
  6072. addFileHost(
  6073. "xdisk\\.cz\/(?:..\/)?download\\.php\\?id=\\w+",
  6074. '">Staženo:\\s*<\/span>',
  6075. 'Soubor, který hledáte nenalezen',
  6076. 'optional--',
  6077. "//a[contains(@href,'xdisk.cz/')]"
  6078. );
  6079. }
  6080. if (GM_getValue("Check_expressleech_dot_com_links", false))
  6081. {
  6082. addFileHost(
  6083. "expressleech\.com\/\\w+",
  6084. 'src="/img/Download.gif"|var _gaq =',
  6085. 'var rr =|403 Forbidden',
  6086. 'optional--',
  6087. "//a[contains(@href,'expressleech.com')]");
  6088. }
  6089. if (GM_getValue("Check_2downloadz_dot_com_links", false))
  6090. {
  6091. addFileHost(
  6092. "2downloadz\.com\/\\w+",
  6093. 'color="#848484|src="images/Download.png"|color:#238DCA',
  6094. 'color="#006DCC|File error',
  6095. 'optional--',
  6096. "//a[contains(@href,'2downloadz.com')]");
  6097. }
  6098. if (GM_getValue("Check_mightyupload_dot_com_links", false))
  6099. {
  6100. addFileHost(
  6101. "mightyupload\.com\/\\w+",
  6102. 'background:#ccc;text-align|CONTENT="Download File"',
  6103. 'style="background:#eee|var rr =|File Not Found',
  6104. 'error-code">1010',
  6105. "//a[contains(@href,'mightyupload.com')]");
  6106. }
  6107. if (GM_getValue("Check_k2s_dot_cc_links", false))
  6108. {
  6109. addFileHost(
  6110. "k2s\.cc\/file\/\\w+",
  6111. 'Click here for slow download with|class="btn" id="yw0"|onclick="download',
  6112. 'Error 404|class="errorSummary">|this file is blocked or deleted|>404 Not Found<|To avoid damaged files|This file is no longer available',
  6113. 'please try later',
  6114. //'optional--',
  6115. "//a[contains(@href,'k2s.cc')]");
  6116. }
  6117. if (GM_getValue("Check_keep2share_dot_cc_links", false))
  6118. {
  6119. addFileHost(
  6120. "keep2share\.cc\/file\/\\w+",
  6121. 'Click here for slow download with|class="btn" id="yw0"|onclick="download',
  6122. 'Error 404|class="errorSummary">|this file is blocked or deleted|>404 Not Found<|To avoid damaged files|This file is no longer available',
  6123. 'please try later',
  6124. //'premium only',
  6125. "//a[contains(@href,'keep2share.cc')]");
  6126. }
  6127. if (GM_getValue("Check_keep2s_dot_cc_links", false))
  6128. {
  6129. addFileHost(
  6130. "keep2s\.cc\/file\/\\w+",
  6131. 'Click here for slow download with|class="btn" id="yw0"|onclick="download',
  6132. 'Error 404|class="errorSummary">|this file is blocked or deleted|>404 Not Found<|To avoid damaged files|This file is no longer available',
  6133. 'please try later',
  6134. //'optional--',
  6135. "//a[contains(@href,'keep2s.cc')]");
  6136. }
  6137. if (GM_getValue("Check_keep2share_dot_com_links", false))
  6138. {
  6139. addFileHost(
  6140. "keep2share\.com\/file\/\\w+",
  6141. 'Click here for slow download with|class="btn" id="yw0"|onclick="download',
  6142. 'Error 404|class="errorSummary">|this file is blocked or deleted|>404 Not Found<|To avoid damaged files|This file is no longer available',
  6143. 'please try later',
  6144. //'optional--',
  6145. "//a[contains(@href,'keep2share.com')]");
  6146. }
  6147. if (GM_getValue("Check_anysend_dot_com_links", false))
  6148. {
  6149. addFileHost(
  6150. "anysend\.com\/\\w+",
  6151. 'var openCalled=false;|content="noindex"',
  6152. '_trackPageview',
  6153. 'optional--',
  6154. "//a[contains(@href,'anysend.com')]");
  6155. }
  6156. if (GM_getValue("Check_datafile_dot_com_links", false))
  6157. {
  6158. addFileHost(
  6159. "datafile\.com\/\\w+",
  6160. 'var captchaPanel',
  6161. 'ErrorCode|ErrorCode 0: Invalid Link|btn-orange" href="#"', //class="error-msg"
  6162. 'You are downloading another file at this moment|You exceeded your free|Site Maintenance',
  6163. //'optional--',
  6164. "//a[contains(@href,'datafile.com')]",
  6165. true);
  6166. }
  6167. if (GM_getValue("Check_upstore_dot_net_links", false))
  6168. {
  6169. addFileHost(
  6170. "upstore\.net\/\\w+",
  6171. 'style="margin-top: 20px">|style="text-align:center; margin: 20px 0 100px;">',
  6172. 'File not found|onload="redirect|class="error">',
  6173. 'optional--',
  6174. "//a[contains(@href,'upstore.net')]");
  6175. }
  6176. if (GM_getValue("Check_upsto_dot_re_links", false))
  6177. {
  6178. addFileHost(
  6179. "upsto\.re\/\\w+",
  6180. 'style="margin-top: 20px">|style="text-align:center; margin: 20px 0 100px;">',
  6181. 'File not found|onload="redirect|class="error">',
  6182. 'optional--',
  6183. "//a[contains(@href,'upsto.re')]");
  6184. }
  6185. if (GM_getValue("Check_speedy_dot_sh_links", false))
  6186. {
  6187. addFileHost(
  6188. "speedy\.sh\/\\w+",
  6189. 'bgcolor=#eeeeee|class="addthis',
  6190. 'File not found|downloadfilenamenotfound>',
  6191. 'optional--',
  6192. "//a[contains(@href,'speedy.sh')]");
  6193. }
  6194. if (GM_getValue("Check_sanshare_dot_com_links", false))
  6195. {
  6196. addFileHost(
  6197. "sanshare\.com\/\\w+",
  6198. 'SANSHARE_TOPBANNER|offset-1"><h3><b>Download File',
  6199. 'offset-1"><b>File Not Found<|width:500px;text-align',
  6200. 'optional--',
  6201. "//a[contains(@href,'sanshare.com')]");
  6202. }
  6203. if (GM_getValue("Check_kingfiles_dot_net_links", false))
  6204. {
  6205. addFileHost(
  6206. "kingfiles\.net\/\\w+",
  6207. 'img/spriteBanner.png|If you are the owner of this file',
  6208. 'var rr =|"description" CONTENT="Download File ">|<div style="width:500px;text-align:left;">|The file was removed by administrator',
  6209. 'optional--',
  6210. "//a[contains(@href,'kingfiles.net')]");
  6211. }
  6212. if (GM_getValue("Check_uploadhero_dot_co_links", false))
  6213. {
  6214. addFileHost(
  6215. "uploadhero\\.co\/dl\/\\w+",
  6216. 'class="nom_de_fichier"|Unlimited downloads|Estimated download time|Lien de téléchargement"',
  6217. 'not available on our server|pas disponible sur nos serveurs|Le lien du fichier est incorrect',
  6218. 'optional--',
  6219. "//a[contains(@href,'uploadhero.co/dl')]"
  6220. );
  6221. }
  6222. if (GM_getValue("Check_secureupload_dot_eu_links", false))
  6223. {
  6224. addFileHost(
  6225. "secureupload\\.eu\/\\w+",
  6226. 'Downloading',
  6227. 'cannot be found|File Not Found|could not be found',
  6228. 'optional--',
  6229. "//a[contains(@href,'secureupload.eu')]"
  6230. );
  6231. }
  6232. if (GM_getValue("Check_ge_dot_tt_links", false))
  6233. {
  6234. addFileHost(
  6235. "ge\.tt\/\\w+",
  6236. 'downloads pic',
  6237. 'is NOT the same as',
  6238. 'optional--',
  6239. "//a[contains(@href,'ge.tt')]");
  6240. }
  6241. if (GM_getValue("Check_filefactory_dot_com_links", false))
  6242. {
  6243. addFileHost(
  6244. "filefactory\.com\/\\w+",
  6245. 'div id="file_holder"|download.css',
  6246. 'File Removed|Invalid Download Link|File Unavailable|Server Failed|Datei entfernt|This file has been removed|Invalid Download Link|class="alert alert-danger">',
  6247. 'Server Maintenance|temporarily overloaded',
  6248. //'optional--',
  6249. "//a[contains(@href,'filefactory.com')]");
  6250. }
  6251. if (GM_getValue("Check_filesflash_dot_net_links", false))
  6252. {
  6253. addFileHost(
  6254. "filesflash\.net\/\\w+",
  6255. 'align:right">Filename:',
  6256. 'class="msg">',
  6257. 'optional--',
  6258. "//a[contains(@href,'filesflash.net')]");
  6259. }
  6260. if (GM_getValue("Check_rapidgator_dot_net_links", false)) //folders
  6261. {
  6262. addFileHost(
  6263. "rapidgator\\.net\/folder\/\\w+",
  6264. 'href="/folder/',
  6265. 'class="empty|Folder not found|Carpeta no encontrada|Dossier non trouvé|Папка не найдена',
  6266. 'optional--',
  6267. "//a[contains(@href,'rapidgator.net/folder')]",
  6268. true
  6269. );
  6270. }
  6271. if (GM_getValue("Check_salefiles_dot_com_links", false))
  6272. {
  6273. addFileHost(
  6274. "salefiles\.com\/\\w+",
  6275. '<Title>Download|CONTENT="Download',
  6276. 'font:15px Arial|background:#eee;',
  6277. 'optional--',
  6278. "//a[contains(@href,'salefiles.com')]");
  6279. }
  6280. if (GM_getValue("Check_megairon_dot_net_links", false))
  6281. {
  6282. addFileHost(
  6283. "megairon\.net\/\\w+",
  6284. 'border: 5px #ffeb90 solid;',
  6285. 'CONTENT="Download File ">|var rr =',
  6286. 'optional--',
  6287. "//a[contains(@href,'megairon.net')]");
  6288. }
  6289. if (GM_getValue("Check_datoid_dot_cz_links", false))
  6290. {
  6291. addFileHost(
  6292. "datoid\.cz\/\\w+",
  6293. 'btn-download|class="icon-download-large"',
  6294. 'Stránka nenalezena|error-404|Soubor byl zablokován',
  6295. 'optional--',
  6296. "//a[contains(@href,'datoid.cz')]");
  6297. }
  6298. if (GM_getValue("Check_stiahni_dot_si_links", false))
  6299. {
  6300. addFileHost(
  6301. "stiahni\.si\/\\w+",
  6302. 'report_icon.png"|slow-download-button',
  6303. 'none.png|deleted|<h2>Error 500</h2>',
  6304. 'optional--',
  6305. "//a[contains(@href,'stiahni.si')]");
  6306. }
  6307. if (GM_getValue("Check_cloudstor_dot_es_links", false))
  6308. {
  6309. addFileHost(
  6310. "cloudstor\.es\/\\w+",
  6311. '"btn_download"',
  6312. '404: Page Not Found',
  6313. 'optional--',
  6314. "//a[contains(@href,'cloudstor.es')]");
  6315. }
  6316. if (GM_getValue("Check_streamfile_dot_com_links", false))
  6317. {
  6318. addFileHost(
  6319. "streamfile\.com\/\\w+",
  6320. 'class="btn',
  6321. 'class="green-btn',
  6322. 'optional--',
  6323. "//a[contains(@href,'streamfile.com')]");
  6324. }
  6325. if (GM_getValue("Check_eyesfile_dot_ca_links", false))
  6326. {
  6327. addFileHost(
  6328. "eyesfile\.ca\/\\w+",
  6329. 'value="Get Link',
  6330. 'var rr =',
  6331. 'optional--',
  6332. "//a[contains(@href,'eyesfile.ca')]");
  6333. }
  6334. if (GM_getValue("Check_filemoney_dot_com_links", false))
  6335. {
  6336. addFileHost(
  6337. "filemoney\.com\/\\w+",
  6338. 'og:title',
  6339. '404 Not Found|<Title>FileMoney|File Not Found',
  6340. 'error-code">1010',
  6341. "//a[contains(@href,'filemoney.com')]");
  6342. }
  6343. if (GM_getValue("Check_uploadboy_dot_com_links", false))
  6344. {
  6345. addFileHost(
  6346. "uploadboy\.com\/\\w+",
  6347. 'width="740">|method_free',
  6348. 'var rr =|background:#ffffff|not be found|file was removed',
  6349. 'optional--',
  6350. "//a[contains(@href,'uploadboy.com')]");
  6351. }
  6352. if (GM_getValue("Check_speedshare_dot_eu_links", false))
  6353. {
  6354. addFileHost(
  6355. "speedshare\.eu\/\\w+",
  6356. 'favicon.png|color:#3d87c0|cross.png"',
  6357. 'var rr =|File Not Found|style="background:#eee',
  6358. 'optional--',
  6359. "//a[contains(@href,'speedshare.eu')]");
  6360. }
  6361. if (GM_getValue("Check_unlimitzone_dot_com_links", false))
  6362. {
  6363. addFileHost(
  6364. "unlimitzone\.com\/\\w+",
  6365. 'name="method_free',
  6366. 'var rr =|File Not Found|removed by administrator|class="err">',
  6367. 'optional--',
  6368. "//a[contains(@href,'unlimitzone.com')]");
  6369. }
  6370. if (GM_getValue("Check_rioupload_dot_com_links", false))
  6371. {
  6372. addFileHost(
  6373. "rioupload\.com\/\\w+",
  6374. 'sell.jpg',
  6375. 'var rr =',
  6376. 'optional--',
  6377. "//a[contains(@href,'rioupload.com')]");
  6378. }
  6379. if (GM_getValue("Check_rg_dot_to_links", false))
  6380. {
  6381. addFileHost(
  6382. "rg\.to\/\\w+",
  6383. '/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',
  6384. 'Error 404|File not found|Select your plan',
  6385. 'optional--',
  6386. //'optional--',
  6387. "//a[contains(@href,'rg.to')]");
  6388. }
  6389. if (GM_getValue("Check_jumbofiles_dot_org_links", false))
  6390. {
  6391. addFileHost(
  6392. "jumbofiles\.org\/\\w+",
  6393. 'H71C5.png|class="downloadtitle">',
  6394. 'var swfu|ViewSourceBIN.png',
  6395. 'optional--',
  6396. "//a[contains(@href,'jumbofiles.org')]");
  6397. }
  6398. if (GM_getValue("Check_fshare_dot_vn_links", false))
  6399. {
  6400. addFileHost(
  6401. "fshare\\.vn\/file\/\\w+",
  6402. 'action="#download"|left; width: 330px;">|class="bt_down"',
  6403. 'không tồn tại|class="color_red m_t_50"',
  6404. 'optional--',
  6405. "//a[contains(@href,'fshare.vn/file')]",
  6406. true
  6407. );
  6408. }
  6409. if (GM_getValue("Check_spaceforfiles_dot_com_links", false))
  6410. {
  6411. addFileHost(
  6412. "spaceforfiles\.com\/\\w+",
  6413. 'btn_slowspeed_b.jpg|value="download1|class="btn_blue',
  6414. 'var rr =|AVOID_IE_BUG',
  6415. 'optional--',
  6416. "//a[contains(@href,'spaceforfiles.com')]");
  6417. }
  6418. if (GM_getValue("Check_google_dot_com_links", false))
  6419. {
  6420. addFileHost(
  6421. "google\\.com\/file\/\\w+",
  6422. 'content="!">|color:#2d2d2d',
  6423. '12pt; font-weight:|class="errorMessage"|F0F6FF',
  6424. 'optional--',
  6425. "//a[contains(@href,'google.com/file')]",
  6426. true
  6427. );
  6428. }
  6429. if (GM_getValue("Check_google_dot_com_links", false))
  6430. {
  6431. addFileHost(
  6432. "docs.google.com\/\\w+",
  6433. 'content="!">|color:#2d2d2d',
  6434. '12pt; font-weight:|class="errorMessage"|F0F6FF|Error 404',
  6435. 'optional--',
  6436. "//a[contains(@href,'docs.google.com')]",
  6437. true
  6438. );
  6439. }
  6440. if (GM_getValue("Check_google_dot_com_links", false))
  6441. {
  6442. addFileHost(
  6443. "drive.google.com\/\\w+",
  6444. 'content="!">|color:#2d2d2d|id="uc-download-link',
  6445. '12pt; font-weight:|class="errorMessage"|F0F6FF|Error 404',
  6446. 'optional--',
  6447. "//a[contains(@href,'drive.google.com')]",
  6448. true
  6449. );
  6450. }
  6451. if (GM_getValue("Check_up_dot_media1fire_dot_com_links", false))
  6452. {
  6453. addFileHost(
  6454. "up.media1fire\.com\/\\w+",
  6455. 'class="addthis_|value="download',
  6456. 'var rr =|AVOID_IE_BUG|<div style="width:500px;text-align:left;">',
  6457. 'optional--',
  6458. "//a[contains(@href,'up.media1fire.com')]");
  6459. }
  6460. if (GM_getValue("Check_depfile_dot_com_links", false))
  6461. {
  6462. addFileHost(
  6463. "depfile\.com\/\\w+",
  6464. 'logo_0.png|downloads.gif"|verifycode',
  6465. 'border-color: #5D729B;|bgcolor="#778AAF"|deleted by the owner|Invalid Link',
  6466. 'optional--',
  6467. "//a[contains(@href,'depfile.com')]");
  6468. }
  6469. if (GM_getValue("Check_go4up_dot_com_links", false))
  6470. {
  6471. addFileHost(
  6472. "go4up\.com\/\\w+",
  6473. 'style="width: 100%;">|value="Access|download_line',
  6474. '<title>GO4UP|dmca',
  6475. 'optional--',
  6476. "//a[contains(@href,'go4up.com')]");
  6477. }
  6478. if (GM_getValue("Check_redbunker_dot_net_links", false))
  6479. {
  6480. addFileHost(
  6481. "redbunker\.net\/\\w+",
  6482. 'dload.png|rowspan="3">|yep.gif',
  6483. 'CONTENT="RedBunker|#D3D3D3;|color:#d33|AVOID_IE_BUG',
  6484. 'optional--',
  6485. "//a[contains(@href,'redbunker.net')]");
  6486. }
  6487. if (GM_getValue("Check_divxpress_dot_com_links", false))
  6488. {
  6489. addFileHost(
  6490. "divxpress\.com\/\\w+",
  6491. 'btn_download|logo.png"',
  6492. 'AVOID_IE_BUG|var rr =',
  6493. 'optional--',
  6494. "//a[contains(@href,'divxpress.com')]");
  6495. }
  6496. if (GM_getValue("Check_anafile_dot_com_links", false))
  6497. {
  6498. addFileHost(
  6499. "anafile\.com\/\\w+",
  6500. 'width="881" valign="top|color="#800080"',
  6501. 'style="width:500px;text-align:left;">|file was deleted|AVOID_IE_BUG',
  6502. 'optional--',
  6503. "//a[contains(@href,'anafile.com')]");
  6504. }
  6505. if (GM_getValue("Check_uploadable_dot_ch_links", false))
  6506. {
  6507. addFileHost(
  6508. "uploadable\\.ch\/file\/\\w+",
  6509. 'captcha.js"|payment.js"|class="btn_download"',
  6510. '<div class="icon_err">|<div class="errorBox">|"error_arrow">',
  6511. 'optional--',
  6512. "//a[contains(@href,'uploadable.ch/file')]",
  6513. true
  6514. );
  6515. }
  6516. if (GM_getValue("Check_arabloads_dot_com_links", false))
  6517. {
  6518. addFileHost(
  6519. "arabloads\.com\/\\w+",
  6520. 'name="method_free"|name="method_premium"',
  6521. 'background:#eee;font:15px Arial;">|AVOID_IE_BUG|Verdana;padding:3px;">Error',
  6522. 'optional--',
  6523. "//a[contains(@href,'arabloads.com')]");
  6524. }
  6525. if (GM_getValue("Check_sharerepo_dot_com_links", false))
  6526. {
  6527. addFileHost(
  6528. "sharerepo\.com\/\\w+",
  6529. 'name="method_free"',
  6530. 'var public_on=|The file you were looking for could not be found',
  6531. 'optional--',
  6532. "//a[contains(@href,'sharerepo.com')]");
  6533. }
  6534. if (GM_getValue("Check_sfshare_dot_se_links", false))
  6535. {
  6536. addFileHost(
  6537. "sfshare\.se\/\\w+",
  6538. 'id="btn_download"|class="btn btn-primary txt-bold" value="',
  6539. 'AVOID_IE_BUG|var rr =|style="width:500px;text-align:left;">|Reason for deletion|The file was removed',
  6540. 'optional--',
  6541. "//a[contains(@href,'sfshare.se')]");
  6542. }
  6543. if (GM_getValue("Check_files_dot_fm_links", false))
  6544. {
  6545. addFileHost(
  6546. "files\.fm\/\\w+",
  6547. 'dl.png"|background-color: transparent',
  6548. 'margin: 40px 40px|background: none;',
  6549. 'optional--',
  6550. "//a[contains(@href,'files.fm')]");
  6551. }
  6552. if (GM_getValue("Check_koofile_dot_com_links", false))
  6553. {
  6554. addFileHost(
  6555. "koofile\.com\/\\w+",
  6556. 'value="download1">|name="method_free"',
  6557. 'class="overview-content c_text-box ">|style="padding-top:3px;">|class="rt1 c">',
  6558. 'optional--',
  6559. "//a[contains(@href,'koofile.com')]");
  6560. }
  6561. if (GM_getValue("Check_vidxden_dot_com_links", false))
  6562. {
  6563. addFileHost(
  6564. "vidxden\\.com\/\\w+",
  6565. 'Continue to Video"',
  6566. 'No such file',
  6567. 'optional--',
  6568. "//a[contains(@href,'vidxden.com')]"
  6569. );
  6570. }
  6571. if (GM_getValue("Check_muchshare_dot_net_links", false))
  6572. {
  6573. addFileHost(
  6574. "muchshare\\.net\/\\w+",
  6575. 'id="btn_download"',
  6576. 'File Not Found|width: 500px; text-align: left;',
  6577. 'optional--',
  6578. "//a[contains(@href,'muchshare.net')]"
  6579. );
  6580. }
  6581. if (GM_getValue("Check_daten_dash_hoster_dot_de_links", false))
  6582. {
  6583. addFileHost(
  6584. "(?:daten-hoster\\.de\/file\/\\w+|filehosting\\.org\/file\/\\w+|xtraupload\\.de\/\\?d=\\w+)",
  6585. 'Details zur Datei|Details page',
  6586. 'Jetzt hochladen|upload now',
  6587. 'optional--',
  6588. "//a[contains(@href,'daten-hoster.de/file') or contains(@href,'filehosting.org/file') or contains(@href,'xtraupload.de')]"
  6589. );
  6590. }
  6591. if (GM_getValue("Check_upload_dash_il_dot_net_links", false))
  6592. {
  6593. addFileHost(
  6594. "(?:upload-il|przeslij)\.net\/(?:en|he|ar|ru|)\/?\\w+",
  6595. 'downloadbtn"',
  6596. 'DL_FileNotFound',
  6597. 'optional--',
  6598. "//a[contains(@href,'upload-il.net') or contains(@href,'przeslij.net')]"
  6599. );
  6600. }
  6601. if (GM_getValue("Check_fileflyer_dot_com_links", false))
  6602. {
  6603. addFileHost(
  6604. "fileflyer\.com\/view\/\\w+",
  6605. '(?:dwl|locked)btn"',
  6606. 'error.gif"|link">Removed|removedlink">',
  6607. 'optional--',
  6608. "//a[contains(@href,'fileflyer.com')]"
  6609. );
  6610. }
  6611. if (GM_getValue("Check_filestore_dot_to_links", false))
  6612. {
  6613. addFileHost(
  6614. "filestore\.to\/\\?d=\\w+",
  6615. '"downloading"',
  6616. 'Datei wurde nicht gefunden',
  6617. 'optional--',
  6618. "//a[contains(@href,'filestore.to')]"
  6619. );
  6620. }
  6621. if (GM_getValue("Check_easy_dash_share_dot_com_links", false))
  6622. {
  6623. addFileHost(
  6624. "(?:w\\d*\.|)(?:crocko|easy-share)\\.com\/.",
  6625. 'fz24">Download|class="pl15">',
  6626. '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',
  6627. 'optional--',
  6628. "//a[contains(@href,'easy-share.com') or contains(@href,'crocko.com')]"
  6629. );
  6630. }
  6631. if (GM_getValue("Check_burnupload_dot_com_links", false))
  6632. {
  6633. addFileHost(
  6634. "burnupload\\.(?:com\/\\?d=|ihiphop\\.com\/download\\.php\\?id=)\\w+",
  6635. 'File size:',
  6636. 'file is not found',
  6637. 'optional--',
  6638. "//a[contains(@href,'burnupload.com') or contains(@href,'burnupload.ihiphop.com')]"
  6639. );
  6640. }
  6641. if (GM_getValue("Check_datei_dot_to_links", false))
  6642. {
  6643. addFileHost(
  6644. "datei\\.to\/\\??\\w+",
  6645. 'icon_downloaden\\.png|>Download starten<',
  6646. 'Datei wurde nicht gefunden|icon_deleted.png',
  6647. 'optional--',
  6648. "//a[contains(@href,'datei.to')]"
  6649. );
  6650. }
  6651. if (GM_getValue("Check_yunfile_dot_com_links", false))
  6652. {
  6653. addFileHost(
  6654. "(?:yunfile|filemarkets)\\.com\/\\w+",
  6655. '<body class="body" id="body">|value="Slow Download"',
  6656. '<body class="body" >',
  6657. 'optional--',
  6658. "//a[contains(@href,'yunfile.com') or contains(@href,'filemarkets.com')]"
  6659. );
  6660. }
  6661. /* if (GM_getValue("Check_putlocker_dot_com_links", false))
  6662. {
  6663. addFileHost(
  6664. "putlocker\\.com\/file\/\\w{16}",
  6665. 'as Free User|<a class="continue"|Continue to file|#feedback_btn|application file_standalone',
  6666. 'Welcome to PutLocker|<div class="sad_face_image">|404:',
  6667. 'undergoing scheduled maintenance',
  6668. "//a[contains(@href,'putlocker.com/file')]"
  6669. );
  6670. } */
  6671. if (GM_getValue("Check_uploadhero_dot_com_links", false))
  6672. {
  6673. addFileHost(
  6674. "uploadhero\\.com\/dl\/\\w+",
  6675. 'content-dl">',
  6676. 'men_file_lost\\.jpg"',
  6677. 'optional--',
  6678. "//a[contains(@href,'uploadhero.com/dl')]"
  6679. );
  6680. }
  6681. if (GM_getValue("Check_unibytes_dot_com_links", false))
  6682. {
  6683. addFileHost(
  6684. "unibytes\\.com\/[\\w\.]+",
  6685. 'trying to download|пытаетесь загрузить файл|tes entrain de tlcharger',
  6686. 'File not found|Файл не найден|',
  6687. 'optional--',
  6688. "//a[contains(@href,'unibytes.com')]"
  6689. );
  6690. }
  6691. if (GM_getValue("Check_hellshare_dot_com_links", false)) //very old type of links
  6692. {
  6693. addFileHost(
  6694. "www\\.hellshare\\.com\/\\d+",
  6695. 'tab\\-details"',
  6696. 'list-purp-2"|not found on this server',
  6697. 'optional--',
  6698. "//a[contains(@href,'www.hellshare.com')]"
  6699. );
  6700. }
  6701. if (GM_getValue("Check_quickshare_dot_cz_links", false)) //folders
  6702. {
  6703. addFileHost(
  6704. "quickshare\\.cz\/slozka-\\d+",
  6705. 'Počet souborů: <strong>[1-9]',
  6706. 'Počet souborů: <strong>0|Chyba! Taková složka neexistuje',
  6707. 'optional--',
  6708. "//a[contains(@href,'quickshare.cz/slozka')]"
  6709. );
  6710. }
  6711. if (GM_getValue("Check_filefactory_dot_com_links", false)) //folders
  6712. {
  6713. addFileHost(
  6714. "filefactory\\.com\/f\/\\w+",
  6715. 'folderFileList">',
  6716. 'table class="items"|Pointer" class="red">',
  6717. 'optional--',
  6718. "//a[contains(@href,'filefactory.com/f/')]"
  6719. );
  6720. }
  6721. if (GM_getValue("Check_netload_dot_in_links", false)) //folders
  6722. {
  6723. addFileHost(
  6724. "netfolder\\.in\/\\w+",
  6725. 'list" value="http',
  6726. 'InPage_Error">|list" value=""',
  6727. 'optional--',
  6728. "//a[contains(@href,'netfolder.in')]"
  6729. );
  6730. }
  6731. if (GM_getValue("Check_load_dot_to_links", false))
  6732. {
  6733. addFileHost(
  6734. '(?:www\\.|\\/)load\\.to\\/(?:\\w{10}\\/.|\\?d=\\w{10})',
  6735. '"download_table_left">Size',
  6736. 'Can\'t find file',
  6737. 'optional--',
  6738. "//a[contains(@href,'/load.to/') or contains(@href,'www.load.to/')]"
  6739. );
  6740. }
  6741. /* if (GM_getValue("Check_freakshare_dot_net_links", false))
  6742. {
  6743. addFileHost(
  6744. "freakshare\\.(?:net|com)\/files\/",
  6745. 'box_heading',
  6746. '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|الملف المطلوب غير موجود',
  6747. 'Your Traffic is used up for today',
  6748. "//a[(contains(@href,'freakshare.net') or contains(@href,'freakshare.com')) and contains(@href,'files')]",
  6749. true
  6750. );
  6751. //folders
  6752. addFileHost(
  6753. "freakshare\\.(?:net|com)\/folder\/",
  6754. 'Files: [1-9]',
  6755. 'Files: 0',
  6756. 'optional--',
  6757. "//a[(contains(@href,'freakshare.net') or contains(@href,'freakshare.com')) and contains(@href,'folder')]",
  6758. true
  6759. );
  6760. } */
  6761. if (GM_getValue("Check_divshare_dot_com_links", false))
  6762. {
  6763. addFileHost(
  6764. "divshare\\.com\/download\/",
  6765. 'download_new\.png',
  6766. 'have been removed',
  6767. 'optional--',
  6768. "//a[contains(@href,'divshare.com')]"
  6769. );
  6770. }
  6771. if (GM_getValue("Check_euroshare_dot_eu_links", false))
  6772. {
  6773. addFileHost(
  6774. "euroshare\\.(?:eu|pl|sk|cz|hu)\/file\/\\d+",
  6775. 'nazev-souboru">',
  6776. '<div id="obsah">\\s*<h1>',
  6777. 'optional--',
  6778. "//a[contains(@href,'euroshare.eu/file')]"
  6779. );
  6780. }
  6781. if (GM_getValue("Check_files_dot_mail_dot_ru_links", false))
  6782. {
  6783. addFileHost(
  6784. 'files\\.mail\\.ru/(?:\\w*)',
  6785. 'fileList',
  6786. 'errorMessage',
  6787. 'optional--',
  6788. "//a[contains(@href,'files.mail.ru')]"
  6789. );
  6790. }
  6791. if (GM_getValue("Check_megashares_dot_com_links", false))
  6792. {
  6793. addFileHost(
  6794. "(?:d\\d+\.|)megashares\.com\/(?:dl|index\.php\\?d|\\?d\\d+=\\w+)",
  6795. 'Filesize',
  6796. 'Invalid|deleted|Could not download file',
  6797. 'slots|scheduled maintenance',
  6798. "//a[contains(@href,'megashares.com/')]"
  6799. );
  6800. }
  6801. if (GM_getValue("Check_narod_dot_ru_links", false))
  6802. {
  6803. addFileHost(
  6804. 'narod\\.(?:yandex\\.|)ru\/disk\/',
  6805. 'b-submit',
  6806. 'b-download-virus-note|headCode">404<',
  6807. 'Внутренняя ошибка сервиса',
  6808. "//a[contains(@href,'narod.ru') or contains(@href,'narod.yandex.ru')]"
  6809. );
  6810. }
  6811. if (GM_getValue("Check_rayfile_dot_com_links", false))
  6812. {
  6813. addFileHost(
  6814. "rayfile\\.com\/",
  6815. 'FILEtitleTXT',
  6816. 'blueRow',
  6817. 'optional--',
  6818. "//a[contains(@href,'rayfile.com/') and contains(@href,'files')]"
  6819. );
  6820. }
  6821. if (GM_getValue("Check_filesmonster_dot_com_links", false))
  6822. {
  6823. addFileHost(
  6824. "filesmonster\\.com\/download\\.php\\?id=\\w+",
  6825. 'button_green_body"',
  6826. 'error">',
  6827. 'optional--',
  6828. "//a[contains(@href,'filesmonster.com/download')]"
  6829. );
  6830. }
  6831. if (GM_getValue("Check_usaupload_dot_net_links", false))
  6832. {
  6833. addFileHost(
  6834. 'usaupload\\.net\/d\/(?:\w*)',
  6835. '<strong>File size:</strong>',
  6836. 'is not available',
  6837. 'optional--',
  6838. "//a[contains(@href,'usaupload.net/d/')]"
  6839. );
  6840. }
  6841. if (GM_getValue("Check_sendspace_dot_com_links", false))
  6842. {
  6843. addFileHost(
  6844. 'sendspace\\.com\/file\/\\w+',
  6845. 'file_description',
  6846. 'msg error"',
  6847. 'optional--',
  6848. "//a[contains(@href,'sendspace.com/file')]"
  6849. );
  6850. }
  6851. if (GM_getValue("Check_sendspace_dot_pl_links", false))
  6852. {
  6853. addFileHost(
  6854. 'sendspace\\.pl\/file\/\\w+',
  6855. 'download_file"',
  6856. 'Podany plik nie',
  6857. 'optional--',
  6858. "//a[contains(@href,'sendspace.pl/file')]"
  6859. );
  6860. }
  6861. if (GM_getValue("Check_uploading_dot_com_links", false))
  6862. {
  6863. addFileHost(
  6864. 'uploading\\.com\/(?:files\/)?\\w+',
  6865. 'free_method">',
  6866. 'file_error">|error_404">|file not found|OOPS! Looks like file not found',
  6867. 'optional--',
  6868. "//a[contains(@href,'uploading.com')]"
  6869. );
  6870. }
  6871. if (GM_getValue("Check_gigasize_dot_com_links", false))
  6872. {
  6873. addFileHost(
  6874. 'gigasize\\.com\/get\\.php(?:\/\\d+|\\?d=\\w+)',
  6875. 'fileId"',
  6876. 'error">',
  6877. 'optional--',
  6878. "//a[contains(@href,'gigasize.com/get')]"
  6879. );
  6880. }
  6881. if (GM_getValue("Check_good_dot_com_links", false))
  6882. {
  6883. addFileHost(
  6884. 'good\\.net\/(?:_|dl)',
  6885. 'Free Download',
  6886. 'Not Found',
  6887. 'Forbidden',
  6888. "//a[contains(@href,'good.net')]"
  6889. );
  6890. }
  6891. if (GM_getValue("Check_2shared_dot_com_links", false))
  6892. {
  6893. addFileHost(
  6894. '2shared\\.com\/(?:file|video|document|audio)\/\\w*',
  6895. 'File size',
  6896. 'File not found|is not valid|/images/important.gif',
  6897. 'optional--',
  6898. "//a[contains(@href,'2shared.com/file/') or contains (@href,'2shared.com/audio/') or contains (@href,'2shared.com/document/') or contains (@href,'2shared.com/video/')]"
  6899. );
  6900. }
  6901. if (GM_getValue("Check_turboupload_dot_com_links", false))
  6902. {
  6903. addFileHost(
  6904. 'turboupload\\.com\/\\w*',
  6905. 'You have requested',
  6906. 'File Not Found',
  6907. 'optional--',
  6908. "//a[contains(@href,'turboupload.com')]"
  6909. );
  6910. }
  6911. if (GM_getValue("Check_gigapeta_dot_com_links", false))
  6912. {
  6913. addFileHost(
  6914. 'gigapeta\\.com\/dl\/',
  6915. 'Download file|Скачать файл| Herunterzuladen|Scarica il file|Cargar el fichero|Charger le fichier',
  6916. '404|page_error',
  6917. 'optional--',
  6918. "//a[contains(@href,'gigapeta.com/dl')]"
  6919. );
  6920. }
  6921. if (GM_getValue("Check_veehd_dot_com_links", false))
  6922. {
  6923. addFileHost(
  6924. 'veehd\.com\/video\/.*?',
  6925. 'No sound|Download video',
  6926. 'Featured Videos',
  6927. 'optional--',
  6928. "//a[contains(@href,'veehd.com') and contains(@href,'video')]"
  6929. );
  6930. }
  6931. if (GM_getValue("Check_vip_dash_file_dot_com_links", false))
  6932. {
  6933. addFileHost(
  6934. '(?:u\\d+\\.)?vip-file\\.com\/download.*?\/(?:.*?)\/(?:.*?)\\.html',
  6935. 'fast_download_form">|submit_sms_download',
  6936. '<p style="text-align:center">',
  6937. 'optional--',
  6938. "//a[contains(@href,'vip-file.com/download')]"
  6939. );
  6940. }
  6941. if (GM_getValue("Check_letitbit_dot_net_links", false))
  6942. {
  6943. addFileHost(
  6944. '(?:u\\d+\\.)?letitbit\\.net\/download\/\\w+',
  6945. 'download\\-pnl ',
  6946. 'color:#000">|Запрашиваемый файл не найден|страница не существует|File not found|',
  6947. 'optional--',
  6948. "//a[contains(@href,'letitbit.net/download')]"
  6949. );
  6950. }
  6951. if (GM_getValue("Check_ifolder_dot_ru_links", false))
  6952. {
  6953. addFileHost(
  6954. 'ifolder\.ru\/\\d+',
  6955. 'file-info',
  6956. 'ui-state-error',
  6957. 'optional--',
  6958. "//a[contains(@href,'ifolder.ru')]"
  6959. );
  6960. }
  6961. if (GM_getValue("Check_fileswap_dot_com_links", false))
  6962. {
  6963. addFileHost(
  6964. 'fileswap\\.com\/dl\/\\w+',
  6965. 'bttnDownloadLink"',
  6966. 'rounded_block_error"',
  6967. 'is temporary unavailable|disponible en estos momentos|vorläufig unerreichbar|Файл временно недоступен',
  6968. "//a[contains(@href,'fileswap.com/dl')]"
  6969. );
  6970. }
  6971. if (GM_getValue("Check_filecloud_dot_io_links", false))
  6972. {
  6973. addFileHost(
  6974. '(?:s\\d+\\.)?filecloud\\.io\/\\w+',
  6975. 'var __error = 0',
  6976. 'FILES__DOESNT_EXIST|removed or did not exist',
  6977. 'optional--',
  6978. "//a[contains(@href,'filecloud.io/')]"
  6979. );
  6980. addFileHost(
  6981. 'ifile\\.it\/\\w+',
  6982. 'var __error = 0',
  6983. 'FILES__DOESNT_EXIST',
  6984. 'optional--',
  6985. "//a[contains(@href,'ifile.it/')]"
  6986. );
  6987. }
  6988. if (GM_getValue("Check_solidfiles_dot_com_links", false))
  6989. {
  6990. addFileHost(
  6991. 'solidfiles\\.com\/d\/\\w+',
  6992. 'id="download"|content="Download',
  6993. '>Not found<|<h2>404</h2>|Page not found|<h1>404</h1>|File not available|no longer available',
  6994. 'optional--',
  6995. "//a[contains(@href,'solidfiles.com/d')]"
  6996. );
  6997. }
  6998. if (GM_getValue("Check_shareflare_dot_net_links", false))
  6999. {
  7000. addFileHost(
  7001. "(?:.\\.|)shareflare\\.net",
  7002. 'download-pnl|<div class="premium-block">',
  7003. 'File not found|Поиск зеркала на фа|<div id="captcha"',
  7004. 'optional--',
  7005. "//a[contains(@href,'shareflare.net') and contains(@href,'download')]"
  7006. );
  7007. }
  7008. if (GM_getValue("Check_u18116681_dot_shareflare_dot_net_links", false))
  7009. {
  7010. addFileHost(
  7011. "u18116681.shareflare\\.net",
  7012. 'download-pnl|<div class="premium-block">',
  7013. 'File not found|Поиск зеркала на фа|<div id="captcha"',
  7014. 'optional--',
  7015. "//a[contains(@href,'shareflare.net') and contains(@href,'download')]"
  7016. );
  7017. }
  7018. if (GM_getValue("Check_uloz_dot_to_links", false))
  7019. {
  7020. addFileHost(
  7021. "(?:uloz|ulozto|bagruj|zachowajto)\\.(to|cz|sk|net|pl)\/\\w",
  7022. 'fileDownload">|fileSize">',
  7023. 'grayButton deletedFile">|Stránka nenalezena|upload-button"|jako soukromý.',
  7024. 'passwordProtectedFile">|frmaskAgeForm-disagree',
  7025. "//a[contains(@href,'bagruj.cz') or contains(@href,'uloz.to') or contains(@href,'ulozto.') or contains(@href,'zachowajto.pl')]",
  7026. true
  7027. );
  7028. }
  7029. if (GM_getValue("Check_hellspy_dot_com_links", false))
  7030. {
  7031. addFileHost(
  7032. "hellspy\.(?:com|cz|sk|hu|pl)\/\\w+",
  7033. 'file\\-list-orderby|section-filedetail">',
  7034. '<\/span><\/h2>\\s*<p>|list-purp-2">|flash info sticky">',
  7035. 'optional--',
  7036. "//a[contains(@href,'hellspy.')]"
  7037. );
  7038. }
  7039. if (GM_getValue("Check_leteckaposta_dot_cz_links", false))
  7040. {
  7041. addFileHost(
  7042. "(?:leteckaposta\\.cz|sharegadget\\.com)\/\\d+",
  7043. '<body onload="">',
  7044. 'neexistuje|not exist',
  7045. 'optional--',
  7046. "//a[contains(@href,'leteckaposta.cz') or contains(@href,'sharegadget.com')]"
  7047. );
  7048. }
  7049. if (GM_getValue("Check_stahovanizasms_dot_cz_links", false))
  7050. {
  7051. addFileHost(
  7052. "stahovanizasms\\.cz\/\\w+",
  7053. 'download\\.png>|font-size:11px><tr>',
  7054. 'smaz.n u.ivatelem|font-size:11px><\/table>',
  7055. 'optional--',
  7056. "//a[contains(@href,'stahovanizasms.cz')]"
  7057. );
  7058. }
  7059. if (GM_getValue("Check_share_dash_links_dot_biz_links", false))
  7060. {
  7061. addFileHost(
  7062. "share-links\\.biz\/\\w*",
  7063. 'online\\.gif',
  7064. '(?:offline|parts)\\.gif',
  7065. 'optional--',
  7066. "//a[contains(@href,'share-links.biz')]"
  7067. );
  7068. }
  7069. if (GM_getValue("Check_4shared_dot_com_links", false))
  7070. {
  7071. addFileHost(
  7072. "4shared\\.com\/.+\/",
  7073. '<input type="hidden" class="jsSocialTwDefaultText" value=',
  7074. 'class="warn\"|big red"|GetDataBack',
  7075. 'Service Unavailable',
  7076. "//a[contains(@href,'4shared.com')]"
  7077. );
  7078. }
  7079. if (GM_getValue("Check_zippyshare_dot_com_links", false))
  7080. {
  7081. addFileHost(
  7082. "(?:www\\d+\.|)zippyshare\.com\/",
  7083. 'download\.png|Download Now|images/download_small.png|id="dlbutton"',
  7084. 'not exist|Status 404',
  7085. 'optional--',
  7086. "//a[contains(@href,'zippyshare.com') and contains(@href,'file.html')]"
  7087. );
  7088. }
  7089. if (GM_getValue("Check_mediafire_dot_com_links", false))
  7090. {
  7091. addFileHost(
  7092. "mediafire\.com\/",
  7093. 'download_file_title|dlFileName|id="PLAY_downloadButton"',
  7094. 'error\\.php\\?|error_msg_title|<title>Simple File Sharing|No files found',
  7095. 'set to private',
  7096. "//a[contains(@href,'mediafire.com')]"
  7097. );
  7098. }
  7099. if (GM_getValue("Check_uploaded_dot_to_links", false))
  7100. {
  7101. addFileHost(
  7102. '(?:uploaded\\.(?:to|net)\/(?:.id|file|folder|f|410|404))|(?:ul\\.to\/)',
  7103. '<h2>Authentification</h2></li>| MB|1,00 GB',
  7104. 'box_red|Error: 404|Error: 410|fileList"><thead><tr><td colspan="2"><\/td><\/tr><\/thead><tbody>\\s*<tr>|<title>uploaded.net</title>',
  7105. 'optional--',
  7106. "//a[contains(@href,'uploaded.to/') or contains(@href,'uploaded.net/') or contains(@href,'ul.to/')]"
  7107. );
  7108. }
  7109. if (GM_getValue("Check_ulozisko_dot_sk_links", false))
  7110. {
  7111. addFileHost(
  7112. "ulozisko\.sk\/",
  7113. 'Detaily',
  7114. 'neexistuje',
  7115. 'optional--',
  7116. "//a[contains(@href,'ulozisko.sk')]"
  7117. );
  7118. }
  7119. if (GM_getValue("Check_upnito_dot_sk_links", false))
  7120. {
  7121. addFileHost(
  7122. "(?:dl.\\.|)upnito\\.sk\/(download|subor|file)",
  7123. 'download.php',
  7124. 'notfound|upload\\-suborov\\.php"',
  7125. 'optional--',
  7126. "//a[contains(@href,'upnito.sk')]"
  7127. );
  7128. }
  7129. if (GM_getValue("Check_uptobox_dot_com_links", false))
  7130. {
  7131. addFileHost(
  7132. "uptobox\\.com\/\\w+",
  7133. 'Create Download Link">',
  7134. '500px;text-align:left;">|File not found|Fichier introuvable',
  7135. 'Maintenance|not available in your country',
  7136. "//a[contains(@href,'uptobox.com')]"
  7137. );
  7138. }
  7139. if (GM_getValue("Check_sharecash_dot_org_links", false))
  7140. {
  7141. addFileHost(
  7142. "sharecash\\.org\/download\\.php\\?file=\\d+",
  7143. 'FILE DOWNLOAD<',
  7144. 'File Does Not Exist',
  7145. 'optional--',
  7146. "//a[contains(@href,'sharecash.org/download.php')]"
  7147. );
  7148. }
  7149. if (GM_getValue("Check_depositfiles_dot_com_links", false)) //folders
  7150. {
  7151. addFileHost(
  7152. "depositfiles\\.com\/folders\/\\w+",
  7153. '<div class="progressContainer">',
  7154. '<div id="files" class="files">\\s*<\/div>',
  7155. 'optional--',
  7156. "//a[contains(@href,'depositfiles.com/folders')]"
  7157. );
  7158. }
  7159. if (GM_getValue("Check_rapidfileshare_dot_net_links", false))
  7160. {
  7161. addFileHost(
  7162. "rapidfileshare\\.net/\\w+",
  7163. '<div id="upload-header-bg">',
  7164. '<div style="width:500px;text-align:left;">',
  7165. 'optional--',
  7166. "//a[contains(@href,'rapidfileshare.net/')]"
  7167. );
  7168. }
  7169. if (GM_getValue("Check_stiahnito_dot_sk_links", false))
  7170. {
  7171. addFileHost(
  7172. "stiahnito\\.sk/",
  7173. '<span class="filesize right">',
  7174. '<ol class="list-purp-2">',
  7175. 'optional--',
  7176. "//a[contains(@href,'stiahnito.sk/')]"
  7177. );
  7178. }
  7179. if (GM_getValue("Check_rusfolder_dot_com_links", false))
  7180. {
  7181. addFileHost(
  7182. "rusfolder\\.(?:com|net)",
  7183. '"download-step-one-form"|Название: <b>|Файлы|Файлы в папке',
  7184. '"ui-state-error ui-corner-all"|File is removed|File not found|удален',
  7185. 'optional--',
  7186. "//a[contains(@href,'rusfolder')]"
  7187. );
  7188. }
  7189. if (GM_getValue("Check_fileover_dot_net_links", false))
  7190. {
  7191. addFileHost(
  7192. "fileover\\.net/\\d+",
  7193. 'id="filesize"',
  7194. 'Not found or deleted|The following file is unavailable',
  7195. 'optional--',
  7196. "//a[contains(@href,'fileover.net/')]"
  7197. );
  7198. }
  7199. if (GM_getValue("Check_catshare_dot_net_links", false))
  7200. {
  7201. addFileHost(
  7202. "catshare\\.net/\\w+",
  7203. '"icon-share',
  7204. 'alert alert-error',
  7205. 'optional--',
  7206. "//a[contains(@href,'catshare.net/')]"
  7207. );
  7208. }
  7209. if (GM_getValue("Check_anonfiles_dot_com_links", false))
  7210. {
  7211. addFileHost(
  7212. "anonfiles\\.com/\\w+",
  7213. '"download_button"',
  7214. '<legend><b>404</b>',
  7215. 'optional--',
  7216. "//a[contains(@href,'anonfiles.com')]"
  7217. );
  7218. }
  7219. if (GM_getValue("Check_mixturecloud_dot_com_links", false))
  7220. {
  7221. addFileHost(
  7222. "mixturecloud\\.com/media/\\w+",
  7223. '"btn icon i_globe gray share_150',
  7224. '"s_cross_close"></span> 404:',
  7225. 'optional--',
  7226. "//a[contains(@href,'mixturecloud.com/media/')]"
  7227. );
  7228. }
  7229. if (GM_getValue("Check_akafile_dot_com_links", false))
  7230. {
  7231. addFileHost(
  7232. "akafile\\.com\/\\w+",
  7233. 'download1',
  7234. 'File Not Found',
  7235. 'optional--',
  7236. "//a[contains(@href,'akafile.com/')]"
  7237. );
  7238. }
  7239. if (GM_getValue("Check_creafile_dot_net_links", false))
  7240. {
  7241. addFileHost(
  7242. "creafile\\.net\/\\w+",
  7243. 'downloadblock',
  7244. 'errtitle',
  7245. 'optional--',
  7246. "//a[contains(@href,'creafile.net/')]"
  7247. );
  7248. }
  7249. if (GM_getValue("Check_hugefiles_dot_net_links", false))
  7250. {
  7251. addFileHost(
  7252. "hugefiles\\.net\/\\w+",
  7253. 'download1|class="btn-create-download" value="Create Download Link">',
  7254. 'File Not Found|No such file with this filename',
  7255. 'optional--',
  7256. "//a[contains(@href,'hugefiles.net/')]"
  7257. );
  7258. }
  7259. if (GM_getValue("Check_sendmyway_dot_com_links", false))
  7260. {
  7261. addFileHost(
  7262. "sendmyway\\.com\/\\w+",
  7263. 'id="btn_download"',
  7264. '500px;text-align:left;"|<center><h3>',
  7265. 'optional--',
  7266. "//a[contains(@href,'sendmyway.com/')]"
  7267. );
  7268. }
  7269. if (GM_getValue("Check_upload_dot_ee_links", false))
  7270. {
  7271. addFileHost(
  7272. "upload\\.ee\/\\w+",
  7273. 'onmouseout="document.dllink.src',
  7274. 'There is no such file.|File was deleted|Fail kustutati|Файл удалён|Такого файла нет',
  7275. 'optional--',
  7276. "//a[contains(@href,'upload.ee/')]"
  7277. );
  7278. }
  7279. if (GM_getValue("Check_shareplace_dot_org_links", false))
  7280. {
  7281. addFileHost(
  7282. "shareplace\\.org\/\\?\\w+",
  7283. 'Download-Link',
  7284. 'Your requested file is not found|Select file to send',
  7285. 'optional--',
  7286. "//a[contains(@href,'shareplace.org/?')]"
  7287. );
  7288. }
  7289. if (GM_getValue("Check_uploadc_dot_com_links", false))
  7290. {
  7291. addFileHost(
  7292. "uploadc\\.com\/\\w+",
  7293. 'id="prebut"',
  7294. 'File Not Found|This file has been removed due',
  7295. 'optional--',
  7296. "//a[contains(@href,'uploadc.com/')]"
  7297. );
  7298. }
  7299. if (GM_getValue("Check_remixshare_dot_com_links", false))
  7300. {
  7301. addFileHost(
  7302. "remixshare\\.com\/\\w+",
  7303. 'id="dl2"',
  7304. '<table class=\'failed\'><tr><td width=\'90%\'>|Sorry, die Datei konnte nicht gefunden werden',
  7305. 'optional--',
  7306. "//a[contains(@href,'remixshare.com/')]"
  7307. );
  7308. }
  7309. if (GM_getValue("Check_exoshare_dot_com_links", false))
  7310. {
  7311. addFileHost(
  7312. "exoshare\\.com\/download\\.php\\?uid=\\w+",
  7313. 'Last Download :',
  7314. 'img src="\\/404.jpg"',
  7315. 'optional--',
  7316. "//a[contains(@href,'exoshare.com/download.php')]"
  7317. );
  7318. }
  7319. if (GM_getValue("Check_borncash_dot_org_links", false))
  7320. {
  7321. addFileHost(
  7322. "borncash\\.org\/download\/\\?a=\\w+",
  7323. 'class="knop_1"',
  7324. '\/error\/er00',
  7325. 'optional--',
  7326. "//a[contains(@href,'borncash.org/download/')]"
  7327. );
  7328. }
  7329. if (GM_getValue("Check_vidplay_dot_net_links", false))
  7330. {
  7331. addFileHost(
  7332. "vidplay\.net\/\\w+",
  7333. 'solvemedia puzzle widget',
  7334. 'File not found|AVOID_IE_BUG',
  7335. 'optional--',
  7336. "//a[contains(@href,'vidplay.net')]");
  7337. }
  7338. if (GM_getValue("Check_storagon_dot_com_links", false))
  7339. {
  7340. addFileHost(
  7341. "storagon\.com\/\\w+",
  7342. 'class="icon-cloud-download"></i>|content="Download Options',
  7343. 'content="Download Downloads|class="error-container">|class="bigger-300 bolder">404<',
  7344. 'optional--',
  7345. "//a[contains(@href,'storagon.com')]");
  7346. }
  7347. if (GM_getValue("Check_filedais_dot_com_links", false))
  7348. {
  7349. addFileHost(
  7350. "filedais\.com\/\\w+",
  7351. 'class="btn btn-info"|name="method_free"',
  7352. 'style="width:500px;text-align:left;">|File Not Found|AVOID_IE_BUG',
  7353. 'optional--',
  7354. "//a[contains(@href,'filedais.com')]");
  7355. }
  7356. if (GM_getValue("Check_ryushare_dot_com_links", false))
  7357. {
  7358. addFileHost(
  7359. "ryushare\.com\/\\w+",
  7360. 'KB|MB',
  7361. '<div style="width:500px;text-align:left;">',
  7362. 'in maintenance mode|Software error:',
  7363. "//a[contains(@href,'ryushare.com')]");
  7364. }
  7365. if (GM_getValue("Check_up_dot_4share_dot_vn_links", false))
  7366. {
  7367. addFileHost(
  7368. "up.4share\.vn\/\\w+",
  7369. '<font size="2" face="Verdana">',
  7370. 'font: 13px Tahoma; color: Brown',
  7371. 'optional--',
  7372. //'optional--',
  7373. "//a[contains(@href,'up.4share.vn')]");
  7374. }
  7375. if (GM_getValue("Check_share_dot_vnn_dot_vn_links", false))
  7376. {
  7377. addFileHost(
  7378. "share.vnn\.vn\/\\w+",
  7379. '"index,follow"|<div class="main" id="download-box">',
  7380. '<meta name="description" content="" />|<h1>Không tìm thấy file bạn yêu cầu</h1>',
  7381. 'optional--',
  7382. //'optional--',
  7383. "//a[contains(@href,'share.vnn.vn')]");
  7384. }
  7385. if (GM_getValue("Check_upfile_dot_vn_links", false))
  7386. {
  7387. addFileHost(
  7388. "upfile\.vn\/\\w+",
  7389. 'download-timer',
  7390. '<meta name="description" content="Upload files|<meta name="description" content="Error "',
  7391. 'optional--',
  7392. //'optional--',
  7393. "//a[contains(@href,'upfile.vn')]");
  7394. }
  7395. /* if (GM_getValue("Check_firedrive_dot_com_links", false))
  7396. {
  7397. addFileHost(
  7398. "firedrive\\.com\/file\/\\w{16}",
  7399. 'as Free User|<a class="continue"|Continue to file|#feedback_btn|application file_standalone',
  7400. 'Welcome to PutLocker|<div class="sad_face_image">|404:',
  7401. 'undergoing scheduled maintenance',
  7402. "//a[contains(@href,'firedrive.com/file')]"
  7403. );
  7404. } */
  7405. if (GM_getValue("Check_aisfile_dot_com_links", false))
  7406. {
  7407. addFileHost(
  7408. "aisfile\.com\/\\w+",
  7409. '<h3 style="text-align:left;">|align=right><b>Filename:',
  7410. '<div style="width:500px;text-align:left;">|File Not Found',
  7411. 'optional--',
  7412. //'optional--',
  7413. "//a[contains(@href,'aisfile.com')]");
  7414. }
  7415. if (GM_getValue("Check_usersfiles_dot_com_links", false))
  7416. {
  7417. addFileHost(
  7418. "usersfiles\.com\/\\w+",
  7419. 'class="btn btn-success|id="btn_download" class="btn"',
  7420. '<div style="width:500px;text-align:left;">',
  7421. 'optional--',
  7422. //'optional--',
  7423. "//a[contains(@href,'usersfiles.com')]");
  7424. }
  7425. if (GM_getValue("Check_pan_dot_baidu_dot_com_links", false))
  7426. {
  7427. addFileHost(
  7428. "pan.baidu\.com\/\\w+",
  7429. 'target="_blank" title=|share-personal-info',
  7430. 'share_notfound.png|background:#f9f9f9',
  7431. 'optional--',
  7432. //'optional--',
  7433. "//a[contains(@href,'pan.baidu.com')]");
  7434. }
  7435. if (GM_getValue("Check_yunpan_dot_cn_links", false))
  7436. {
  7437. addFileHost(
  7438. "yunpan\.cn\/\\w+",
  7439. 'class="icon icon-download',
  7440. 'content="360|http://p5.qhimg.com/t01d1c98667df9dc6cc.jpg',
  7441. 'optional--',
  7442. //'optional--',
  7443. "//a[contains(@href,'yunpan.cn')]");
  7444. }
  7445. if (GM_getValue("Check_file_dash_upload_dot_net_links", false))
  7446. {
  7447. addFileHost(
  7448. "(?:en\\.|)file\\-upload\\.net\/download\\-\\d+\/\\w+",
  7449. 'getElementById("downbild")|style.display',
  7450. 'hochgeladene Datei nicht gefunden werden|has not been found',
  7451. 'optional--',
  7452. //'optional--',
  7453. "//a[contains(@href,'file-upload.net')]");
  7454. }
  7455. if (GM_getValue("Check_gulfup_dot_com_links", false))
  7456. {
  7457. addFileHost(
  7458. "gulfup\.com\/",
  7459. '<!-- Downlod template -->|download.gif',
  7460. '<!-- Errors template -->|class="error">|<!-- form upload -->|[ رفع الملفات ]',
  7461. 'optional--',
  7462. //'optional--',
  7463. "//a[contains(@href,'gulfup.com')]");
  7464. }
  7465. if (GM_getValue("Check_datafilehost_dot_com_links", false))
  7466. {
  7467. addFileHost(
  7468. "datafilehost\\.com\/(?:download-\\w+\\.html|d\/\\w+)",
  7469. 'dldtable">',
  7470. 'does not exist\\.',
  7471. 'optional--',
  7472. //'optional--',
  7473. "//a[contains(@href,'datafilehost.com')]");
  7474. }
  7475. if (GM_getValue("Check_box_dot_com_links", false))
  7476. {
  7477. addFileHost(
  7478. "box\.com\/\\w+",
  7479. 'download-file-btn|id="download_button',
  7480. 'BIyMin.png| <div class="error_message|link has been removed',
  7481. 'optional--',
  7482. //'optional--',
  7483. "//a[contains(@href,'app.box.com')]");
  7484. }
  7485. if (GM_getValue("Check_dropbox_dot_com_links", false))
  7486. {
  7487. addFileHost(
  7488. "dropbox\.com\/s\/\\w+",
  7489. 'default_content_download_button" class="freshbutton-blue">|content_download_button',
  7490. '>Nothing Here<|>Error (404)<',
  7491. 'title>Dropbox - 509|Error (403)|Error: 429',
  7492. "//a[contains(@href,'dropbox.com')]");
  7493. }
  7494. if (GM_getValue("Check_box_dot_net_links", false))
  7495. {
  7496. addFileHost(
  7497. "box\.net\/\\w+",
  7498. 'download-file-btn|id="download_button',
  7499. 'BIyMin.png| <div class="error_message',
  7500. 'optional--',
  7501. //'optional--',
  7502. "//a[contains(@href,'box.net')]");
  7503. }
  7504. if (GM_getValue("Check_fileband_dot_com_links", false))
  7505. {
  7506. addFileHost(
  7507. "fileband\.com\/\\w+",
  7508. 'value="download1">|name="id" value=',
  7509. '<div style="width:500px;text-align:left;">|not be found',
  7510. 'optional--',
  7511. //'optional--',
  7512. "//a[contains(@href,'fileband.com')]");
  7513. }
  7514. if (GM_getValue("Check_filedropper_dot_com_links", false))
  7515. {
  7516. addFileHost(
  7517. "filedropper\.com\/\\w+",
  7518. 'background:#ddd;|width:985px; ',
  7519. 'background-color:#FFFFFF;|margin-left: -400px;',
  7520. 'optional--',
  7521. //'optional--',
  7522. "//a[contains(@href,'filedropper.com')]");
  7523. }
  7524. if (GM_getValue("Check_tropicshare_dot_com_links", false))
  7525. {
  7526. addFileHost(
  7527. "tropicshare\\.com\/files\/\\d+",
  7528. 'MB</span>|GB</span>|KB</span>',
  7529. '>FNF<|size: </span>',
  7530. 'optional--',
  7531. //'optional--',
  7532. "//a[contains(@href,'tropicshare.com')]");
  7533. }
  7534. if (GM_getValue("Check_goldbytez_dot_com_links", false))
  7535. {
  7536. addFileHost(
  7537. "goldbytez\.com\/\\w+",
  7538. '<h2>Download</h2>|<center><h2>File: <font color="red">',
  7539. '<div style="width:500px;text-align:left;">|<h2>Error</h2>',
  7540. 'optional--',
  7541. //'optional--',
  7542. "//a[contains(@href,'goldbytez.com')]");
  7543. }
  7544. if (GM_getValue("Check_worldbytez_dot_com_links", false))
  7545. {
  7546. addFileHost(
  7547. "worldbytez\.com\/\\w+",
  7548. '<div class="download_type">',
  7549. '<div style="width:500px;text-align:left;">',
  7550. 'optional--',
  7551. //'optional--',
  7552. "//a[contains(@href,'worldbytez.com')]");
  7553. }
  7554. if (GM_getValue("Check_freefilehosting_dot_net_links", false))
  7555. {
  7556. addFileHost(
  7557. "freefilehosting\.net\/\\w+",
  7558. 'Type: cbr|Type: rar|Type: jpg|Type: mkv|Type: avi|Type: mpg|Type: mpeg|Type: zip|Type: wmvType: bmpType: gifType: mp4Type: mp3',
  7559. '175px;" value="http://www.freefilehosting.net/"|Filename: <br>',
  7560. 'optional--',
  7561. //'optional--',
  7562. "//a[contains(@href,'freefilehosting.net')]");
  7563. }
  7564. if (GM_getValue("Check_ziddu_dot_com_links", false))
  7565. {
  7566. addFileHost(
  7567. "ziddu\.com\/\\w+",
  7568. 'downloads.ziddu.com|downloadfilelinkicon',
  7569. 'errortracking.php|images/oops.png|fontfamilyverdana error',
  7570. 'optional--',
  7571. //'optional--',
  7572. "//a[contains(@href,'ziddu.com')]");
  7573. }
  7574. if (GM_getValue("Check_exclusiveloader_dot_com_links", false))
  7575. {
  7576. addFileHost(
  7577. "exclusiveloader\.com\/\\w+",
  7578. 'style="padding-top:55px; padding-bottom:65px;">|<h2>Download</h2>',
  7579. 'File Not Found|width:322px;text-align:left;" class="no_file">',
  7580. 'optional--',
  7581. //'optional--',
  7582. "//a[contains(@href,'exclusiveloader.com')]");
  7583. }
  7584. if (GM_getValue("Check_sharerapid_dot_cz_links", false))
  7585. {
  7586. addFileHost(
  7587. "sharerapid\.cz\/\\w+",
  7588. 'value="Stáhnout"|soubor" style|Stahování je povoleno pouze pro přihlášené uživatele',
  7589. 'error_div">|404 - Not Found',
  7590. 'optional--',
  7591. //'optional--',
  7592. "//a[contains(@href,'sharerapid.cz')]");
  7593. }
  7594. if (GM_getValue("Check_sdilej_dot_cz_links", false))
  7595. {
  7596. addFileHost(
  7597. "sdilej\.cz\/\\w+",
  7598. 'class="page-download"',
  7599. '<h2 class="red">|czshare.com|sponsored listings|This domain is for sale',
  7600. 'optional--',
  7601. //'optional--',
  7602. "//a[contains(@href,'sdilej.cz')]");
  7603. }
  7604. if (GM_getValue("Check_lafiles_dot_com_links", false))
  7605. {
  7606. addFileHost(
  7607. "lafiles\.com\/\\w+",
  7608. '<div id="pay_modes">',
  7609. '<b class="err"></b>',
  7610. 'optional--',
  7611. //'optional--',
  7612. "//a[contains(@href,'lafiles.com')]");
  7613. }
  7614. if (GM_getValue("Check_fboom_dot_me_links", false))
  7615. {
  7616. addFileHost(
  7617. "fboom\.me\/file\/\\w+",
  7618. 'id="download-free" href="#"',
  7619. 'class="error-v1-title">404<|File not found or deleted',
  7620. 'optional--',
  7621. //'optional--',
  7622. "//a[contains(@href,'fboom.me')]");
  7623. }
  7624. if (GM_getValue("Check_fileboom_dot_me_links", false))
  7625. {
  7626. addFileHost(
  7627. "fileboom\.me\/file\/\\w+",
  7628. 'id="download-free" href="#"',
  7629. 'class="error-v1-title">404<|File not found or deleted',
  7630. 'optional--',
  7631. //'optional--',
  7632. "//a[contains(@href,'fileboom.me')]");
  7633. }
  7634. if (GM_getValue("Check_acefile_dot_net_links", false))
  7635. {
  7636. addFileHost(
  7637. "acefile\.net\/\\w+",
  7638. 'align=right nowrap><b>',
  7639. 'File Not Found|<div style="width:322px;text-align:left;" class="no_file">',
  7640. 'optional--',
  7641. //'optional--',
  7642. "//a[contains(@href,'acefile.net')]");
  7643. }
  7644. if (GM_getValue("Check_megarapid_dot_cz_links", false))
  7645. {
  7646. addFileHost(
  7647. "megarapid\.cz\/\\w+",
  7648. 'value="Stáhnout"|soubor" style|Stahování je povoleno pouze pro přihlášené uživatele',
  7649. 'error_div">|404 - Not Found',
  7650. 'optional--',
  7651. //'optional--',
  7652. "//a[contains(@href,'megarapid.cz')]");
  7653. }
  7654. if (GM_getValue("Check_yadi_dot_sk_links", false))
  7655. {
  7656. addFileHost(
  7657. "yadi\.sk\/\\w+",
  7658. 'twitter:site|View and download',
  7659. 'error code|Nothing found',
  7660. 'optional--',
  7661. //'optional--',
  7662. "//a[contains(@href,'yadi.sk')]");
  7663. }
  7664. if (GM_getValue("Check_imdb_dot_com_links", false))
  7665. {
  7666. addFileHost(
  7667. "imdb\.com\/\\w+",
  7668. 'imdb.com',
  7669. '404 Error',
  7670. 'optional--',
  7671. "//a[contains(@href,'imdb.com')]");
  7672. }
  7673. if (GM_getValue("Check_hitfile_dot_net_links", false))
  7674. {
  7675. addFileHost(
  7676. "hitfile\.net\/\\w+",
  7677. 'class="download-file',
  7678. 'style="width:16px;height:16px;border:0;|File not found|Файл не найден. Возможно он был удален',
  7679. 'optional--',
  7680. //'optional--',
  7681. "//a[contains(@href,'hitfile.net')]");
  7682. }
  7683. /* if (GM_getValue("Check_uploadto_dot_us_links", false))
  7684. {
  7685. addFileHost(
  7686. "uploadto\\.us\/file\/details\/[\\w+-]",
  7687. 'name="recaptcha_response',
  7688. '="/folder/add"|>File (?:not found|restricted|has been deleted)|<title>UPLOADTO.US</title>',
  7689. 'btn-large btn-danger">|Account limitation notice|502 Bad Gateway',
  7690. "//a[contains(@href,'uploadto.us/file')]",
  7691. true);
  7692. } */
  7693. if (GM_getValue("Check_nitroflare_dot_com_links", true))
  7694. {
  7695. addFileHost(
  7696. "nitroflare\.com\/\\w+",
  7697. 'alert.png|LowSpeedMeter.png',
  7698. 'file has been removed|id="error" style="display|Probably deleted',
  7699. 'optional--',
  7700. "//a[contains(@href,'nitroflare.com')]");
  7701. }
  7702. if (GM_getValue("Check_up_dot_top4top_dot_net_links", false))
  7703. {
  7704. addFileHost(
  7705. "up.top4top\.net\/\\w+",
  7706. 'start Downlod template',
  7707. 'start err template',
  7708. 'optional--',
  7709. "//a[contains(@href,'up.top4top.net')]");
  7710. }
  7711. if (GM_getValue("Check_filejoker_dot_net_links", false))
  7712. {
  7713. addFileHost(
  7714. "filejoker\.net\/\\w+",
  7715. 'button id="regular-download">Slow|method_free" value="1|<div id="download" class="download0">',
  7716. 'File Not Found|class="not_found|<div id="download" class="not_found">|"err">DMCA Complaint<',
  7717. 'optional--',
  7718. "//a[contains(@href,'filejoker.net')]");
  7719. }
  7720. if (GM_getValue("Check_free_dot_fr_links", false))
  7721. {
  7722. addFileHost(
  7723. "(?:dl.\\.|)free\\.fr",
  7724. 'Valider et t&eacute;l&eacute',
  7725. 'Fichier inexistant',
  7726. 'optional--',
  7727. "//a[contains(@href,'free.fr')]");
  7728. }
  7729. if (GM_getValue("Check_gboxes_dot_com_links", false))
  7730. {
  7731. addFileHost(
  7732. "gboxes\.com\/\\w+",
  7733. 'You have requested|color="red">http://www.gboxes.com',
  7734. 'File Not Found|<div style="width:500px;text-align:left;">',
  7735. 'optional--',
  7736. "//a[contains(@href,'gboxes.com')]");
  7737. }
  7738. if (GM_getValue("Check_1fichier_dot_com_links", false))
  7739. {
  7740. addFileHost(
  7741. "(?:\\w{10}\\.(?:1fichier|dl4free)\\.com\/)|(?:(?:1fichier|dl4free)\\.com\/\\?\\w{10})|(?:www\\.)?\\w{6,}\\.1fichier\\.com",
  7742. '<title>Download</title>|<br/>You must wait|submit" value="Download|Download without SSL encryption|submit" value="Télécharger|submit" value="Télécharger',
  7743. '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é',
  7744. 'optional--',
  7745. "//a[contains(@href,'1fichier') or contains(@href,'dl4free.com/')]"
  7746. );
  7747. }
  7748. if (GM_getValue("Check_led_dot_wf_links", false))
  7749. {
  7750. addFileHost(
  7751. "led\.wf\/\\w+",
  7752. 'logo_0.png|downloads.gif"|verifycode',
  7753. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  7754. 'optional--',
  7755. "//a[contains(@href,'led.wf')]");
  7756. }
  7757. if (GM_getValue("Check_lan_dot_wf_links", false))
  7758. {
  7759. addFileHost(
  7760. "lan\.wf\/\\w+",
  7761. 'logo_0.png|downloads.gif"|verifycode',
  7762. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  7763. 'optional--',
  7764. "//a[contains(@href,'lan.wf')]");
  7765. }
  7766. if (GM_getValue("Check_adlink_dot_wf_links", false))
  7767. {
  7768. addFileHost(
  7769. "adlink\.wf\/\\w+",
  7770. 'logo_0.png|downloads.gif"|verifycode',
  7771. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  7772. 'optional--',
  7773. "//a[contains(@href,'adlink.wf')]");
  7774. }
  7775. if (GM_getValue("Check_click_dot_tf_links", false))
  7776. {
  7777. addFileHost(
  7778. "click\.tf\/\\w+",
  7779. 'logo_0.png|downloads.gif"|verifycode',
  7780. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  7781. 'optional--',
  7782. "//a[contains(@href,'click.tf')]");
  7783. }
  7784. if (GM_getValue("Check_ssh_dot_tf_links", false))
  7785. {
  7786. addFileHost(
  7787. "ssh\.tf\/\\w+",
  7788. 'logo_0.png|downloads.gif"|verifycode',
  7789. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  7790. 'optional--',
  7791. "//a[contains(@href,'ssh.tf')]");
  7792. }
  7793. if (GM_getValue("Check_ssh_dot_yt_links", false))
  7794. {
  7795. addFileHost(
  7796. "ssh\.yt\/\\w+",
  7797. 'logo_0.png|downloads.gif"|verifycode',
  7798. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  7799. 'optional--',
  7800. "//a[contains(@href,'ssh.yt')]");
  7801. }
  7802. if (GM_getValue("Check_yep_dot_pm_links", false))
  7803. {
  7804. addFileHost(
  7805. "yep\.pm\/\\w+",
  7806. 'logo_0.png|downloads.gif"|verifycode',
  7807. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  7808. 'optional--',
  7809. "//a[contains(@href,'yep.pm')]");
  7810. }
  7811. if (GM_getValue("Check_kyc_dot_pm_links", false))
  7812. {
  7813. addFileHost(
  7814. "kyc\.pm\/\\w+",
  7815. 'logo_0.png|downloads.gif"|verifycode',
  7816. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  7817. 'optional--',
  7818. "//a[contains(@href,'kyc.pm')]");
  7819. }
  7820. if (GM_getValue("Check_brupload_dot_net_links", false))
  7821. {
  7822. addFileHost(
  7823. "brupload\.net\/\\w+",
  7824. 'Download Gratuito',
  7825. '<div style="width:500px;text-align:left;">',
  7826. 'optional--',
  7827. //'optional--',
  7828. "//a[contains(@href,'brupload.net')]");
  7829. }
  7830. if (GM_getValue("Check_cloudzilla_dot_to_links", false))
  7831. {
  7832. addFileHost(
  7833. "cloudzilla\.to\/\\w+",
  7834. 'btn1" id="free_download|onclick="freeDownload|id="pwd_protected">',
  7835. 'File not found|/imgs/broken.png',
  7836. 'optional--',
  7837. //'optional--',
  7838. "//a[contains(@href,'cloudzilla.to')]");
  7839. }
  7840. if (GM_getValue("Check_fileparadox_dot_in_links", false))
  7841. {
  7842. addFileHost(
  7843. "fileparadox\.in\/\\w+",
  7844. 'CONTENT="Download File|method_free_file',
  7845. '>File Not Found<|id="no_filedownload">|FILE NOT FOUND',
  7846. 'optional--',
  7847. //'optional--',
  7848. "//a[contains(@href,'fileparadox.in')]");
  7849. }
  7850. if (GM_getValue("Check_clicknupload_dot_com_links", false))
  7851. {
  7852. addFileHost(
  7853. "clicknupload\.com\/\\w+",
  7854. 'name="method_free',
  7855. 'File Not Found',
  7856. 'optional--',
  7857. //'optional--',
  7858. "//a[contains(@href,'clicknupload.com')]");
  7859. }
  7860. if (GM_getValue("Check_ex_dash_load_dot_com_links", false))
  7861. {
  7862. addFileHost(
  7863. "ex-load\.com\/\\w+",
  7864. 'name="method_free|<p>Download File:</p>',
  7865. 'Folder Not Found|File Not Found|Error 404',
  7866. 'optional--',
  7867. //'optional--',
  7868. "//a[contains(@href,'ex-load.com')]");
  7869. }
  7870. if (GM_getValue("Check_hexupload_dot_com_links", false))
  7871. {
  7872. addFileHost(
  7873. "hexupload\.com\/\\w+",
  7874. 'button" value="Free|type="submit" value=""',
  7875. 'File Not Found|<div style="width:500px;text-align:left;">',
  7876. 'optional--',
  7877. //'optional--',
  7878. "//a[contains(@href,'hexupload.com')]");
  7879. }
  7880. if (GM_getValue("Check_wizupload_dot_com_links", false))
  7881. {
  7882. addFileHost(
  7883. "wizupload\.com\/\\w+",
  7884. 'btn_download|class="downloadbtn"',
  7885. '>File Not Found<',
  7886. 'optional--',
  7887. //'optional--',
  7888. "//a[contains(@href,'wizupload.com')]");
  7889. }
  7890. if (GM_getValue("Check_filecloud_dot_cc_links", false))
  7891. {
  7892. addFileHost(
  7893. "filecloud\.cc\/\\w+",
  7894. 'align="center"><input type="submit" name=',
  7895. 'File Not Found|<Title>FileCloud - Premium Hosting Service<',
  7896. 'optional--',
  7897. //'optional--',
  7898. "//a[contains(@href,'filecloud.cc')]");
  7899. }
  7900. if (GM_getValue("Check_inclouddrive_dot_com_links", false))
  7901. {
  7902. addFileHost(
  7903. "inclouddrive\.com\/\\w+",
  7904. 'initfreedownload',
  7905. '<title>Content Unavailable|The file you are trying to download is no longer available',
  7906. 'optional--',
  7907. //'optional--',
  7908. "//a[contains(@href,'inclouddrive.com')]");
  7909. }
  7910. if (GM_getValue("Check_radicalshare_dot_com_links", false))
  7911. {
  7912. addFileHost(
  7913. "radicalshare\.com\/\\w+",
  7914. 'value="download1|name="method_free"',
  7915. 'File Not Found<|<div style="width:500px;text-align:left;">',
  7916. 'optional--',
  7917. //'optional--',
  7918. "//a[contains(@href,'radicalshare.com')]");
  7919. }
  7920. if (GM_getValue("Check_sharemods_dot_com_links", false))
  7921. {
  7922. addFileHost(
  7923. "sharemods\.com\/\\w+",
  7924. 'name="method_free"',
  7925. 'File Not Found<',
  7926. 'optional--',
  7927. //'optional--',
  7928. "//a[contains(@href,'sharemods.com')]");
  7929. }
  7930. if (GM_getValue("Check_hostr_dot_co_links", false))
  7931. {
  7932. addFileHost(
  7933. "hostr\.co\/\\w+",
  7934. 'method="get"',
  7935. 'File not found<|error-page',
  7936. 'optional--',
  7937. //'optional--',
  7938. "//a[contains(@href,'hostr.co')]");
  7939. }
  7940. if (GM_getValue("Check_filepi_dot_com_links", false))
  7941. {
  7942. addFileHost(
  7943. "filepi\.com\/\\w+",
  7944. 'id="button_start">',
  7945. 'File not found',
  7946. 'optional--',
  7947. //'optional--',
  7948. "//a[contains(@href,'filepi.com')]");
  7949. }
  7950. if (GM_getValue("Check_tikfile_dot_com_links", false))
  7951. {
  7952. addFileHost(
  7953. "tikfile\.com\/\\w+",
  7954. 'btn_download',
  7955. 'File Not Found|file was removed|Reason for deletion',
  7956. 'optional--',
  7957. //'optional--',
  7958. "//a[contains(@href,'tikfile.com')]");
  7959. }
  7960. if (GM_getValue("Check_cloudsix_dot_me_links", false))
  7961. {
  7962. addFileHost(
  7963. "cloudsix\.me\/\\w+",
  7964. 'name="method_free"',
  7965. 'File Not Found|width:500px;text-align:left;">',
  7966. 'optional--',
  7967. //'optional--',
  7968. "//a[contains(@href,'cloudsix.me')]");
  7969. }
  7970. if (GM_getValue("Check_neodrive_dot_co_links", false))
  7971. {
  7972. addFileHost(
  7973. "neodrive\.co\/\\w+",
  7974. 'btn1" id="free_download|onclick="freeDownload|id="pwd_protected">',
  7975. 'File not found|/imgs/broken.png',
  7976. 'optional--',
  7977. //'optional--',
  7978. "//a[contains(@href,'neodrive.co')]");
  7979. }
  7980. if (GM_getValue("Check_chayfile_dot_com_links", false))
  7981. {
  7982. addFileHost(
  7983. "chayfile\.com\/\\w+",
  7984. 'name="method_free"',
  7985. 'File Not Found|<h3>The file was removed by administrator</h3>',
  7986. 'optional--',
  7987. //'optional--',
  7988. "//a[contains(@href,'chayfile.com')]");
  7989. }
  7990. if (GM_getValue("Check_xfileload_dot_com_links", false))
  7991. {
  7992. addFileHost(
  7993. "xfileload\.com\/\\w+",
  7994. 'Filename:|Имя файла:|Dateiname:|nom de fichier :|اسم الملف:|Dosya AdД±|Nazwa:|Nombre de fichero:|NamaFile:|Bestandsnaam:|שם קובץ:"',
  7995. '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..|הקובץ שחיפשת לא נמצא.',
  7996. 'optional--',
  7997. //'optional--',
  7998. "//a[contains(@href,'xfileload.com')]");
  7999. }
  8000. if (GM_getValue("Check_rockfile_dot_eu_links", false))
  8001. {
  8002. addFileHost(
  8003. "rockfile\.eu\/\\w+",
  8004. 'You have requested:',
  8005. 'The file you were looking for could not be found, sorry for any inconvenience.',
  8006. 'optional--',
  8007. //'optional--',
  8008. "//a[contains(@href,'rockfile.eu')]");
  8009. }
  8010. if (GM_getValue("Check_24uploading_dot_com_links", false))
  8011. {
  8012. addFileHost(
  8013. "24uploading\.com\/\\w+",
  8014. 'File:|Download Speed:',
  8015. '<b>File Not Found</b>|file was removed',
  8016. 'optional--',
  8017. //'optional--',
  8018. "//a[contains(@href,'24uploading.com')]");
  8019. }
  8020. if (GM_getValue("Check_tusfiles_dot_net_links", false))
  8021. {
  8022. addFileHost(
  8023. "tusfiles\.net\/\\w+",
  8024. 'i/icon/dll.png"|>Start download<br',
  8025. 'no longer available<|i/ino.png"',
  8026. 'optional--',
  8027. //'optional--',
  8028. "//a[contains(@href,'tusfiles.net')]");
  8029. }
  8030. if (GM_getValue("Check_jumbofile_dot_net_links", false))
  8031. {
  8032. addFileHost(
  8033. "jumbofile\.net\/\\w+",
  8034. 'button" class="" value="Free',
  8035. 'This File Was Deleted',
  8036. 'optional--',
  8037. //'optional--',
  8038. "//a[contains(@href,'jumbofile.net')]");
  8039. }
  8040. if (GM_getValue("Check_ozofiles_dot_com_links", false))
  8041. {
  8042. addFileHost(
  8043. "ozofiles\.com\/\\w+",
  8044. 'button" value="Free',
  8045. 'File Not Found|width:500px;text-align:left;">|File Deleted',
  8046. 'optional--',
  8047. //'optional--',
  8048. "//a[contains(@href,'ozofiles.com')]");
  8049. }
  8050. if (GM_getValue("Check_loudupload_dot_net_links", false))
  8051. {
  8052. addFileHost(
  8053. "loudupload\.net\/\\w+",
  8054. 'value="Get Links',
  8055. 'File Not Found',
  8056. 'optional--',
  8057. //'optional--',
  8058. "//a[contains(@href,'loudupload.net')]");
  8059. }
  8060. if (GM_getValue("Check_rapidsonic_dot_com_links", false))
  8061. {
  8062. addFileHost(
  8063. "(rapidsonic|fileparadox)\\.com\/\\w+",
  8064. 'method_free" id="submit_btn|<h4><i class="icon_document_alt"></i>Download File</h4>',
  8065. '>File Not Found<|id="no_filedownload">|>FILE NOT FOUND<|file has been deleted|No such file with this filename',
  8066. 'optional--',
  8067. //'optional--',
  8068. "//a[contains(@href,'rapidsonic') or contains(@href,'fileparadox.com')]");
  8069. }
  8070. if (GM_getValue("Check_krotix_dot_net_links", false))
  8071. {
  8072. addFileHost(
  8073. "krotix\.net\/\\w+",
  8074. 'btn btn-warning|btn-free',
  8075. 'pageErrors|This File has been removed',
  8076. 'content="Scheduled Maintenance',
  8077. //'optional--',
  8078. "//a[contains(@href,'krotix.net')]");
  8079. }
  8080. if (GM_getValue("Check_userscloud_dot_com_links", false))
  8081. {
  8082. addFileHost(
  8083. "userscloud\.com\/\\w+",
  8084. 'btn_download',
  8085. '>Server OFFLINE|background:#D3D3D3;border-bottom:1px solid #BBB;font:bold 13px Verdana;padding:3px;">',
  8086. 'optional--',
  8087. //'optional--',
  8088. "//a[contains(@href,'userscloud.com')]");
  8089. }
  8090. if (GM_getValue("Check_kumpulbagi_dot_com_links", false))
  8091. {
  8092. addFileHost(
  8093. "kumpulbagi\.com\/\\w+",
  8094. 'class="button download',
  8095. 'internal server error',
  8096. 'optional--',
  8097. //'optional--',
  8098. "//a[contains(@href,'kumpulbagi.com')]");
  8099. }
  8100. if (GM_getValue("Check_faststore_dot_org_links", false))
  8101. {
  8102. addFileHost(
  8103. "faststore\.org\/\\w+",
  8104. 'name="method_free',
  8105. 'File Not Found',
  8106. 'optional--',
  8107. //'optional--',
  8108. "//a[contains(@href,'faststore.org')]");
  8109. }
  8110. if (GM_getValue("Check_prefiles_dot_com_links", false))
  8111. {
  8112. addFileHost(
  8113. "prefiles\.com\/\\w+",
  8114. 'id="method_free',
  8115. 'File not Found',
  8116. 'optional--',
  8117. //'optional--',
  8118. "//a[contains(@href,'prefiles.com')]");
  8119. }
  8120. if (GM_getValue("Check_doraupload_dot_com_links", false))
  8121. {
  8122. addFileHost(
  8123. "doraupload\.com\/\\w+",
  8124. 'btn_download',
  8125. 'class="error-code|Could Not Be Found',
  8126. 'optional--',
  8127. //'optional--',
  8128. "//a[contains(@href,'doraupload.com')]");
  8129. }
  8130. if (GM_getValue("Check_openload_dot_io_links", false))
  8131. {
  8132. addFileHost(
  8133. "openload\.io\/\\w+",
  8134. 'btn btn-primary|class="count">',
  8135. 'class="jumbotron">|We are sorry',
  8136. 'optional--',
  8137. //'optional--',
  8138. "//a[contains(@href,'openload.io')]");
  8139. }
  8140. if (GM_getValue("Check_uploads_dot_xxx_links", false))
  8141. {
  8142. addFileHost(
  8143. "uploads\.xxx\/\\w+",
  8144. 'downoadForFree',
  8145. 'File not found',
  8146. 'optional--',
  8147. //'optional--',
  8148. "//a[contains(@href,'uploads.xxx')]");
  8149. }
  8150. if (GM_getValue("Check_zxcfiles_dot_com_links", false))
  8151. {
  8152. addFileHost(
  8153. "zxcfiles\.com\/\\w+",
  8154. 'class="downloadbtn',
  8155. 'File Not Found',
  8156. 'optional--',
  8157. //'optional--',
  8158. "//a[contains(@href,'zxcfiles.com')]");
  8159. }
  8160. if (GM_getValue("Check_up07_dot_net_links", false))
  8161. {
  8162. addFileHost(
  8163. "up07\.net\/\\w+",
  8164. 'name="method_free',
  8165. 'File Not Found',
  8166. 'optional--',
  8167. //'optional--',
  8168. "//a[contains(@href,'up07.net')]");
  8169. }
  8170. if (GM_getValue("Check_fileupload_dot_pw_links", false))
  8171. {
  8172. addFileHost(
  8173. "fileupload\.pw\/\\w+",
  8174. 'value="Free"',
  8175. 'File Not Found',
  8176. 'optional--',
  8177. //'optional--',
  8178. "//a[contains(@href,'fileupload.pw')]");
  8179. }
  8180. if (GM_getValue("Check_4upld_dot_com_links", false))
  8181. {
  8182. addFileHost(
  8183. "4upld\.com\/\\w+",
  8184. 'alt="Download Now"|content="Download file">|btn-free-element',
  8185. '<title>Error|content="error|File not found',
  8186. 'optional--',
  8187. //'optional--',
  8188. "//a[contains(@href,'4upld.com')]");
  8189. }
  8190. if (GM_getValue("Check_newfileland_dot_com_links", false))
  8191. {
  8192. addFileHost(
  8193. "newfileland\.com\/\\w+",
  8194. 'name="method_free',
  8195. 'File Not Found',
  8196. 'optional--',
  8197. //'optional--',
  8198. "//a[contains(@href,'newfileland.com')]");
  8199. }
  8200. if (GM_getValue("Check_swoopshare_dot_com_links", false))
  8201. {
  8202. addFileHost(
  8203. "(?:.swoopshare)\\.com\/\\w+",
  8204. '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',
  8205. '<input type="file" name="f"',
  8206. 'optional--',
  8207. //'optional--',
  8208. "//a[contains(@href,'swoopshare.com')]"
  8209. );
  8210. }
  8211. if (GM_getValue("Check_cloudshares_dot_net_links", false))
  8212. {
  8213. addFileHost(
  8214. "cloudshares\.net\/\\w+",
  8215. '"method_free|"Low Speed Download|submit" name="go',
  8216. 'Not Found|"width:500px;text-align:left;">|No such file exist',
  8217. 'optional--',
  8218. //'optional--',
  8219. "//a[contains(@href,'cloudshares.net')]"
  8220. );
  8221. }
  8222. if (GM_getValue("Check_allmyvideos_dot_net_links", false))
  8223. {
  8224. addFileHost(
  8225. "allmyvideos\.net\/\\w+",
  8226. 'Continue to Video',
  8227. 'File Not Found|class="err">Removed for',
  8228. 'optional--',
  8229. //'optional--',
  8230. "//a[contains(@href,'allmyvideos.net')]"
  8231. );
  8232. }
  8233. if (GM_getValue("Check_vodlocker_dot_com_links", false))
  8234. {
  8235. addFileHost(
  8236. "vodlocker\.com\/\\w+",
  8237. 'Proceed to video',
  8238. 'Not Found',
  8239. 'optional--',
  8240. //'optional--',
  8241. "//a[contains(@href,'vodlocker.com')]"
  8242. );
  8243. }
  8244. if (GM_getValue("Check_vidbull_dot_com_links", false))
  8245. {
  8246. addFileHost(
  8247. "vidbull\.com\/\\w+",
  8248. 'Verifying Video Request',
  8249. 'File Not Found',
  8250. 'optional--',
  8251. //'optional--',
  8252. "//a[contains(@href,'vidbull.com')]");
  8253. }
  8254. if (GM_getValue("Check_novamov_dot_com_links", false))
  8255. {
  8256. addFileHost(
  8257. "novamov\.com\/\\w+",
  8258. 'For version detection',
  8259. 'file no longer exists',
  8260. 'optional--',
  8261. //'optional--',
  8262. "//a[contains(@href,'novamov.com')]"
  8263. );
  8264. }
  8265. if (GM_getValue("Check_filehoot_dot_com_links", false))
  8266. {
  8267. addFileHost(
  8268. "filehoot\.com\/\\w+",
  8269. 'Continue to watch',
  8270. 'File Not Found',
  8271. 'optional--',
  8272. //'optional--',
  8273. "//a[contains(@href,'filehoot.com')]"
  8274. );
  8275. }
  8276. if (GM_getValue("Check_stagevu_dot_com_links", false))
  8277. {
  8278. addFileHost(
  8279. "stagevu\.com\/\\w+",
  8280. 'Video Info',
  8281. 'No video with the provided',
  8282. 'optional--',
  8283. //'optional--',
  8284. "//a[contains(@href,'stagevu.com')]"
  8285. );
  8286. }
  8287. if (GM_getValue("Check_cloudtime_dot_to_links", false))
  8288. {
  8289. addFileHost(
  8290. "cloudtime\.to\/\\w+",
  8291. 'Download the video',
  8292. 'no longer exists',
  8293. 'optional--',
  8294. //'optional--',
  8295. "//a[contains(@href,'cloudtime.to')]"
  8296. );
  8297. }
  8298. if (GM_getValue("Check_streamin_dot_to_links", false))
  8299. {
  8300. addFileHost(
  8301. "streamin\.to\/\\w+",
  8302. 'id="btn_download',
  8303. 'Not Found|Copyright Infringement|File Deleted',
  8304. 'optional--',
  8305. //'optional--',
  8306. "//a[contains(@href,'streamin.to')]"
  8307. );
  8308. }
  8309. if (GM_getValue("Check_videoweed_dot_es_links", false))
  8310. {
  8311. addFileHost(
  8312. "videoweed\.es\/\\w+",
  8313. 'version detection',
  8314. 'no longer exists',
  8315. 'optional--',
  8316. //'optional--',
  8317. "//a[contains(@href,'videoweed.es')]"
  8318. );
  8319. }
  8320. if (GM_getValue("Check_nowvideo_dot_sx_links", false))
  8321. {
  8322. addFileHost(
  8323. "nowvideo\.sx\/\\w+",
  8324. 'Download this video',
  8325. 'no longer exists',
  8326. 'optional--',
  8327. //'optional--',
  8328. "//a[contains(@href,'nowvideo.sx')]"
  8329. );
  8330. }
  8331. if (GM_getValue("Check_thevideo_dot_me_links", false))
  8332. {
  8333. addFileHost(
  8334. "thevideo\.me\/\\w+",
  8335. 'Upgrade your account|Proceed to video',
  8336. 'File Not Found',
  8337. 'optional--',
  8338. //'optional--',
  8339. "//a[contains(@href,'thevideo.me')]"
  8340. );
  8341. }
  8342. if (GM_getValue("Check_gorillavid_dot_in_links", false))
  8343. {
  8344. addFileHost(
  8345. "gorillavid\.in\/\\w+",
  8346. 'Wait 5 seconds',
  8347. 'File Not Found',
  8348. 'optional--',
  8349. //'optional--',
  8350. "//a[contains(@href,'gorillavid.in')]"
  8351. );
  8352. }
  8353. if (GM_getValue("Check_thefile_dot_me_links", false))
  8354. {
  8355. addFileHost(
  8356. "thefile\.me\/\\w+",
  8357. 'Choose free or',
  8358. '',
  8359. 'optional--',
  8360. //'optional--',
  8361. "//a[contains(@href,'thefile.me')]"
  8362. );
  8363. }
  8364. if (GM_getValue("Check_vidzi_dot_tv_links", false))
  8365. {
  8366. addFileHost(
  8367. "vidzi\.tv\/\\w+",
  8368. 'video-embed-modal row',
  8369. 'File Not Found|file was deleted',
  8370. 'optional--',
  8371. //'optional--',
  8372. "//a[contains(@href,'vidzi.tv')]"
  8373. );
  8374. }
  8375. if (GM_getValue("Check_filenuke_dot_com_links", false))
  8376. {
  8377. addFileHost(
  8378. "filenuke\.com\/\\w+",
  8379. 'Download File',
  8380. 'Earn with us',
  8381. 'optional--',
  8382. //'optional--',
  8383. "//a[contains(@href,'filenuke.com')]"
  8384. );
  8385. }
  8386. if (GM_getValue("Check_vidto_dot_me_links", false))
  8387. {
  8388. addFileHost(
  8389. "vidto\.me\/\\w+",
  8390. 'Proceed to video',
  8391. 'Not Found',
  8392. 'optional--',
  8393. //'optional--',
  8394. "//a[contains(@href,'vidto.me')]"
  8395. );
  8396. }
  8397. if (GM_getValue("Check_vidspot_dot_net_links", false))
  8398. {
  8399. addFileHost(
  8400. "vidspot\.net\/\\w+",
  8401. 'Duration',
  8402. 'Removed for',
  8403. 'optional--',
  8404. //'optional--',
  8405. "//a[contains(@href,'vidspot.net')]"
  8406. );
  8407. }
  8408. if (GM_getValue("Check_sharesix_dot_com_links", false))
  8409. {
  8410. addFileHost(
  8411. "(?:sharesix\\.com|sharesix\\.net)\/\\w+",
  8412. 'Download File',
  8413. 'File Not Found',
  8414. 'optional--',
  8415. //'optional--',
  8416. "//a[contains(@href,'sharesix.com') or contains(@href,'sharesix.net/')]"
  8417. );
  8418. }
  8419. if (GM_getValue("Check_movpod_dot_in_links", false))
  8420. {
  8421. addFileHost(
  8422. "movpod\.in\/\\w+",
  8423. 'Continue',
  8424. 'File Not Found',
  8425. 'optional--',
  8426. //'optional--',
  8427. "//a[contains(@href,'movpod.in')]"
  8428. );
  8429. }
  8430.  
  8431. }
  8432. //start here
  8433.  
  8434. //hosts with direct download, so they must be requested for headers only
  8435. function initFileHostsHeadersOnly()
  8436. {
  8437. function addFileHostHeadersOnly(linkRegex, isAliveRegex, isDeadRegex, xpathEx, ispremRegex)
  8438. {
  8439. var host = new Array(5);
  8440. host[0] = linkRegex;
  8441. host[1] = isAliveRegex;
  8442. host[2] = isDeadRegex;
  8443. host[3] = xpathEx;
  8444. host[4] = ispremRegex;
  8445. http_file_hosts_headers_only.push(host);
  8446. }
  8447. if (GM_getValue("Check_uloziste_dot_com_links", false))
  8448. {
  8449. addFileHostHeadersOnly(
  8450. "(?:|files\\.)uloziste\\.com\/\\w+\/\\w+",
  8451. 'Connection: Keep-Alive',
  8452. 'Content-Length: 3857',
  8453. "//a[contains(@href,'uloziste.com')]"
  8454. )
  8455. }
  8456. if (GM_getValue("Check_adrive_dot_com_links", false))
  8457. {
  8458. addFileHostHeadersOnly(
  8459. "adrive\\.com\/public\/\\w+",
  8460. 'Connection: keep-alive',
  8461. 'orig_ref=deleted',
  8462. "//a[contains(@href,'adrive.com')]"
  8463. )
  8464. }
  8465. if (GM_getValue("Check_myupload_dot_dk_links", false))
  8466. {
  8467. addFileHostHeadersOnly(
  8468. "myupload\\.dk\/showfile\/\\w+",
  8469. 'Expires:',
  8470. 'squeeze1\\s+Vary',
  8471. "//a[contains(@href,'myupload.dk/showfile')]"
  8472. )
  8473. }
  8474. }
  8475. //CustomRules
  8476. //functions add...Host copied here
  8477. function addObsoleteHost(linkRegex, xpathEx)
  8478. {
  8479. var host = new Array(2);
  8480. host[0] = linkRegex;
  8481. host[1] = xpathEx;
  8482. http_file_hosts_obsolete.push(host);
  8483. }
  8484. function addFileHost(linkRegex, isAliveRegex, isDeadRegex, isUnavaRegex, xpathEx, tryLoop, ispremRegex)
  8485. {
  8486. var host = new Array(7);
  8487. host[0] = linkRegex;
  8488. host[1] = isAliveRegex;
  8489. host[2] = isDeadRegex;
  8490. host[3] = isUnavaRegex;
  8491. host[4] = xpathEx;
  8492. tryLoop ? host[5] = true : host[5] = false;
  8493. host[6] = ispremRegex;
  8494. http_file_hosts.push(host);
  8495. }
  8496. function addFileHostHeadersOnly(linkRegex, isAliveRegex, isDeadRegex, xpathEx, ispremRegex)
  8497. {
  8498. var host = new Array(5);
  8499. host[0] = linkRegex;
  8500. host[1] = isAliveRegex;
  8501. host[2] = isDeadRegex;
  8502. host[3] = xpathEx;
  8503. host[4] = ispremRegex;
  8504. http_file_hosts_headers_only.push(host);
  8505. }
  8506. //takes a fully built rules array and adds the rules to WARLC
  8507. function applyCustomRules(customRules)
  8508. {
  8509. if (!customRules) return;
  8510. var rules, r, i;
  8511. rules = customRules.rules;
  8512. for (i = 0 ; i < rules.length ; i++)
  8513. {
  8514. r = rules[i];
  8515. if (r.enabled)
  8516. {
  8517. switch (r.type)
  8518. {
  8519. case 'single':
  8520. addFileHost(r.urlregex, r.aliveregex, r.deadregex, r.unavaregex, r.premregex||'', r.xpath);
  8521. break;
  8522. case 'headers':
  8523. addFileHostHeadersOnly(r.urlregex, r.aliveregex, r.deadregex, r.xpath, r.premregex);
  8524. break;
  8525. case 'obsolete':
  8526. addObsoleteHost(r.urlregex, r.xpath)
  8527. break;
  8528. }
  8529. }
  8530. }
  8531. }
  8532.  
  8533.  
  8534. function initFileHostsCustom()
  8535. {
  8536. if (Custom_rules && Custom_rules_text)
  8537. {
  8538. var msg = '';
  8539. if (newVersion)
  8540. msg = 'New version of W.A.R. Links Checker detected.\n\n';
  8541. else if ((now - last_custom_rules_nag) >= 60*24*60*60*1000)
  8542. msg = '60 or more days have passed since this notification.\n\n';
  8543. if (msg && /^\s*@customrule(?:_obsolete)?\s/mi.test(Custom_rules_text))
  8544. {
  8545. GM_setValue('last_custom_rules_nag', ''+new Date().getTime()); //reset nag
  8546. msg +=
  8547. 'Either new version of W.A.R. Links Checker detected or 60 days passed since this notify.\n'+
  8548. 'Please check that your custom rules haven\'t been built into WARLC.\n'+
  8549. 'If not, please share them with us so they can be included in the next version! Built-in rules are always preferred.\n\n'+
  8550. 'We apologize for this annoying notification, but there is a reason to this.\n'+
  8551. 'Ideally, WARLC would check which of your custom rules have been included and disable them. '+
  8552. 'Unfortunately, there is no easy way to do that, but we don\'t want everybody to just use their custom rules '+
  8553. 'forever without ever checking if the built-in ones have been added/fixed. This is currently the only way '+
  8554. 'to remind you that you should try built-in rules, report missing/non-working ones and share your custom rules.';
  8555. setTimeout(function(){alert(msg)},0);
  8556. }
  8557. var customRules = parseCustomRules(Custom_rules_text);
  8558. if (customRules.warning || customRules.error)
  8559. alert('There were ' + customRules.error + ' errors, ' + customRules.warning + ' warnings, ' +
  8560. customRules.note + ' notes found during Custom Rules processing.\n' + customRules.rules.length + ' valid rules found.\n\n' +
  8561. JSON.stringify(customRules.info, null, ' '));
  8562. applyCustomRules(customRules);
  8563. }
  8564. }
  8565. //end of CustomRules processing
  8566.  
  8567.  
  8568.  
  8569. } //end of function start
  8570.  
  8571.  
  8572.  
  8573. function initClipBoardTools()
  8574. {
  8575. unsafeWindow.copyToClipboard = function(text)
  8576. {
  8577. try
  8578. {
  8579. this.netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
  8580.  
  8581. var str = Components.classes["@mozilla.org/supports-string;1"].
  8582. createInstance(Components.interfaces.nsISupportsString);
  8583. if (!str) return false;
  8584.  
  8585. str.data = text;
  8586.  
  8587. var trans = Components.classes["@mozilla.org/widget/transferable;1"].
  8588. createInstance(Components.interfaces.nsITransferable);
  8589. if (!trans) return false;
  8590.  
  8591. trans.addDataFlavor("text/unicode");
  8592. trans.setTransferData("text/unicode", str, text.length * 2);
  8593.  
  8594. var clipid = Components.interfaces.nsIClipboard;
  8595. var clip = Components.classes["@mozilla.org/widget/clipboard;1"].getService(clipid);
  8596. if (!clip) return false;
  8597.  
  8598. clip.setData(trans, null, clipid.kGlobalClipboard);
  8599. } catch (e) {
  8600. GM_log("Error copyToClipboard : " + e);
  8601. alert(e + "\n\nsigned.applets.codebase_principal_support must be set true in about:config")
  8602. }
  8603. }
  8604. }
  8605.  
  8606.  
  8607.  
  8608. //CustomRules
  8609.  
  8610. function escapeRegex(str)
  8611. {
  8612. return str.replace(/[\-\[\]{}()*+?.,\\\^$|#]/g, "\\$&");
  8613. }
  8614.  
  8615.  
  8616. //called internally from parseCustomRules.
  8617. //expected: rule object with array fields baseurl, alivematch etc, everything must already be checked for input errors
  8618. //returns the rule object with string fields urlregex, xpath, aliveregex etc built from the arrays
  8619. function makeCustomRule(rule)
  8620. {
  8621. function makeMatchRegex(arrmatch)
  8622. {
  8623. return escapeRegex(arrmatch.join('\n'))
  8624. .replace(/ +/g, '\\s+') //two or more spaces to any whitespace
  8625. .replace(/\n/g,'|'); //join together
  8626. }
  8627. if (rule.alivematch) rule.aliveregex = makeMatchRegex(rule.alivematch);
  8628. if (rule.deadmatch) rule.deadregex = makeMatchRegex(rule.deadmatch);
  8629. if (rule.unavamatch) rule.unavaregex = makeMatchRegex(rule.unavamatch);
  8630. if (rule.premmatch) rule.premregex = makeMatchRegex(rule.premmatch);
  8631. if (rule.baseurl)
  8632. {
  8633. var i, m, urlregex = [], xpath = [], len = rule.baseurl.length;
  8634. for (i = 0 ; i < len ; i++)
  8635. {
  8636. m = rule.baseurl[i].match(/^([a-z0-9\.-]+)(?: +([a-z \.]+) +)?(\/.*)$/);
  8637. if (m[2]) //baseurl in the form: example. com co.uk net /xxx
  8638. {
  8639. 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'])
  8640. urlregex.push( (m[1] + '(?:'+ m[2].replace(/\s+/g,'|') + ')').replace(/\./g,'\\.') + escapeRegex(m[3]) + '.'); //urlregex.push('example\\.(?:com|co\\.uk|net)/xxx.')
  8641. }
  8642. else //baseurl in the form: example.com/xxx
  8643. {
  8644. xpath.push(m[0]);
  8645. urlregex.push(escapeRegex(m[0]) + '.');
  8646. }
  8647. }
  8648. rule.xpath = "//a[contains(@href,'" + xpath.join("') or contains(@href,'") + "')]";
  8649. rule.urlregex = '(?:[a-z0-9\\.-]+\\.)?(?:' + urlregex.join('|') + ')';
  8650. }
  8651. return rule;
  8652. } //function makeCustomRule
  8653.  
  8654.  
  8655. /*
  8656. Takes a string containing custom link checking rules.
  8657. Returns an object with fields:
  8658. info - contains notes, warnings and errors found during parsing
  8659. rules - the array of custom rules
  8660. note, warning, error - number of each of them found during parsing
  8661. Format of the input string:
  8662. One command per line. Command format: @keyword parameter
  8663. Keywords:
  8664. @customrule, @customrule_obsolete, @customrule_headers - begin a new custom rule. Parameter: name of the rule
  8665. @#customrule, @#customrule_obsolete, @#customrule_headers - begin and parse this custom rule, but don't use it. Parameter: name of the rule
  8666. These keywords can be multiple (any of them will work):
  8667. @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...)
  8668. @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+
  8669. @alivelink, @deadlink - example links
  8670. @baseurl is always required, @alivematch and @deadmatch are required except for obsolete. @unavamatch is ignored for obsolete. @*link is optional.
  8671. Lines starting with // and empty lines are ignored.
  8672. Invalid parameters generate errors and those lines are skipped.
  8673. Other lines generate warnings, but are otherwise ignored (also those before the first @customrule line or inside a rule with invalid name).
  8674. Example:
  8675. @customrule filehost
  8676. @baseurl filehost.com/download/
  8677. @baseurl filehost2. com net /d?=
  8678. @alivematch id="download">
  8679. @deadmatch File not found
  8680. @deadmatch File deleted
  8681. */
  8682. function parseCustomRules(rulesStr)
  8683. {
  8684. var linenum, customRules = {'info': [], 'rules': [], 'note': 0, 'warning': 0, 'error': 0};
  8685. function addInfo(type, msg, ln){
  8686. customRules.info.push({'linenum':(ln===undefined ? linenum+1 : ln+1), 'type':type, 'msg':msg});
  8687. customRules[type]++;
  8688. }
  8689. var lines = rulesStr.match(/^(.*)$/gm); //split into array of lines
  8690. if (!lines) return null;
  8691. lines.push('@#customrule _'); //to save the last rule
  8692. var m, linecount = lines.length;
  8693. var keyword, param, constr, rule, err;
  8694. var TLD = '[a-z]{2,7}(?:\\.[a-z]{2,7})?';
  8695. var TLDorTLDlist = '(?:'+TLD+'| '+TLD+'(?: '+TLD+'){0,9} )'; //TLD or space-separated list of TLDs
  8696. var baseurlRE = new RegExp('^([a-z0-9-]{1,30}(?:\\.[a-z0-9-]{1,30}){0,2}\\.)'+TLDorTLDlist+'(/[^\'"\s\$]{0,50})$', 'i');
  8697. var constraints = {
  8698. 'baseurl': {
  8699. 'single': {'min': 1, 'max': 10, 'paramRE': baseurlRE},
  8700. 'headers': {'min': 1, 'max': 10, 'paramRE': baseurlRE},
  8701. 'obsolete': {'min': 1, 'max': 10, 'paramRE': baseurlRE}},
  8702. 'alivematch': {
  8703. 'single': {'min': 1, 'max': 10, 'paramRE': null},
  8704. 'headers': {'min': 1, 'max': 10, 'paramRE': null}},
  8705. 'deadmatch': {
  8706. 'single': {'min': 1, 'max': 10, 'paramRE': null},
  8707. 'headers': {'min': 1, 'max': 10, 'paramRE': null}},
  8708. 'unavamatch': {
  8709. 'single': {'min': 0, 'max': 10, 'paramRE': null}},
  8710. 'alivelink': {
  8711. 'single': {'min': 0, 'max': 10, 'paramRE': null},
  8712. 'headers': {'min': 0, 'max': 10, 'paramRE': null}},
  8713. 'deadlink': {
  8714. 'single': {'min': 0, 'max': 10, 'paramRE': null},
  8715. 'headers': {'min': 0, 'max': 10, 'paramRE': null},
  8716. 'obsolete': {'min': 0, 'max': 10, 'paramRE': null}}
  8717. };
  8718. for (linenum = 0 ; linenum < linecount ; linenum++)
  8719. {
  8720. //capturing groups: 1 23 4 5 6
  8721. m = lines[linenum].match(/^\s*(?:(\/\/.*)|@((#?)(customrule)(?:_(headers|obsolete))?|baseurl|alivematch|deadmatch|unavamatch|alivelink|deadlink)\s+(.+))?$/i);
  8722. if (m)
  8723. {
  8724. if (m[1] || !m[2])
  8725. continue; // ignore empty lines and lines starting with //
  8726. keyword = (m[4] || m[2]).toLowerCase();
  8727. param = m[6];
  8728. if (keyword == 'customrule')
  8729. {
  8730. //save the current rule if all required fields are provided
  8731. if (rule)
  8732. {
  8733. err = false;
  8734. $.each(constraints, function(kw, constraint){
  8735. var l, constr = constraint[rule.type];
  8736. if (constr)
  8737. {
  8738. l = rule[kw] ? rule[kw].length : 0;
  8739. if (l < constr.min || l > constr.max)
  8740. {
  8741. 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);
  8742. err = true;
  8743. }
  8744. }
  8745. });
  8746. if (!err)
  8747. customRules.rules.push(makeCustomRule(rule));
  8748. }
  8749. //start a new rule
  8750. if (/^[\w\.-]{1,30}$/.test(param)) //valid name?
  8751. {
  8752. rule = {
  8753. 'enabled': !m[3],
  8754. 'type': m[5] ? m[5].toLowerCase() : 'single',
  8755. 'name': param
  8756. };
  8757. }
  8758. else
  8759. {
  8760. addInfo('error', 'Invalid rule name. Cannot start a new rule definition.');
  8761. rule = null;
  8762. }
  8763. }
  8764. else //good line format, but keyword other than customrule
  8765. {
  8766. if (!rule)
  8767. {
  8768. addInfo('warning', 'Command outside @CUSTOMRULE definiton. Line skipped.');
  8769. continue;
  8770. }
  8771. if (constraints[keyword])
  8772. {
  8773. constr = constraints[keyword][rule.type];
  8774. if (constr)
  8775. {
  8776. if (constr.paramRE && !constr.paramRE.test(param))
  8777. {
  8778. addInfo('warning', 'Invalid @' + keyword.toUpperCase() + ' parameter. Line Skipped.');
  8779. continue;
  8780. }
  8781. }
  8782. else
  8783. {
  8784. addInfo('note', '@' + keyword.toUpperCase() + ' not applicable for type ' + rule.type.toUpperCase() + '. Line skipped.');
  8785. continue;
  8786. }
  8787. }
  8788. //line OK, save
  8789. rule[keyword] ? rule[keyword].push(param) : rule[keyword] = [param];
  8790. }
  8791. } //if (m)
  8792. else
  8793. addInfo('warning', 'Unknown line format. Line skipped.');
  8794. } //for loop
  8795. return customRules;
  8796. } //function parseCustomRules

QingJ © 2025

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