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

detects live, dead and premium links.

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

  1. // ==UserScript==
  2. // @name W.A.R. Links Checker Customized Premium Link Version
  3. // @description detects live, dead and premium links.
  4. // @details this script automatically checks links from hundreds of filehosts. For Firefox, Chrome, Opera, Safari.
  5. // @namespace premium version
  6. // @version 1.1.8.8
  7. // @icon http://sharenxs.com/photos/2014/02/14/52fd759db90ac/cooltext1428903746.png
  8. // @license GPL version 3 or any later version (http://www.gnu.org/copyleft/gpl.html)
  9. // @author mental
  10. // @include http://*
  11. // @include https://*
  12. // @include file:///*
  13. // @grant GM_setValue
  14. // @grant GM_getValue
  15. // @grant GM_xmlhttpRequest
  16. // @grant GM_log
  17. // @grant GM_addStyle
  18. // @grant GM_registerMenuCommand
  19. // @grant GM_getResourceText
  20. // @grant GM_info
  21. // @require https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js
  22. // @require https://ajax.googleapis.com/ajax/libs/jqueryui/1.9.1/jquery-ui.min.js
  23. // @resource jQueryUICSS https://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/smoothness/jquery-ui.css
  24. // @homepage http://www.warlc.5gbfree.com
  25. // @namespace http://www.warlc.5gbfree.com
  26. // @noframes
  27. // ==/UserScript==
  28.  
  29. //separate alternative domains with "|" char (first name is considered being main)
  30. var allHostNames = [
  31. "1fichier.com|dl4free.com",
  32. "openload.co",
  33. "uplea.com",
  34. "filenuke.com",
  35. "inafile.com",
  36. "vidto.me",
  37. "storefiles.co",
  38. "filehost.pw",
  39. "down4files.com",
  40. "vidspot.net",
  41. "turbobit.ru",
  42. "sharesix.com|sharesix.net",
  43. "movpod.in",
  44. "thefile.me",
  45. "vidzi.tv",
  46. "videoweed.es",
  47. "vodlocker.com",
  48. "nowvideo.sx",
  49. "cloudtime.to",
  50. "thevideo.me",
  51. "vidbull.com",
  52. "allmyvideos.net",
  53. "novamov.com",
  54. "filehoot.com",
  55. "stagevu.com",
  56. "gorillavid.in",
  57. "streamin.to",
  58. "4upld.com",
  59. "cloudshares.net",
  60. "swoopshare.com",
  61. "newfileland.com",
  62. "2shared.com",
  63. "fileupload.pw",
  64. "zxcfiles.com",
  65. "up07.net",
  66. "4shared.com",
  67. "adrive.com",
  68. "aisfile.com",
  69. "hexupload.com",
  70. "bezvadata.cz",
  71. "burnupload.com|burnupload.ihiphop.com",
  72. "xkeepfile.com|Gamesena.com",
  73. // "firedrive.com",
  74. "usersfiles.com",
  75. "pan.baidu.com",
  76. "radicalshare.com",
  77. "cramit.in|cramitin.net",
  78. "datei.to",
  79. "daten-hoster.de|filehosting.org|xtraupload.de",
  80. "demo.ovh.eu",
  81. "depositfiles.com|depositfiles.lt|depositfiles.org|dfiles.ru|dfiles.eu",
  82. "divshare.com",
  83. "easy-share.com|crocko.com",
  84. "easybytez.com",
  85. "edisk.cz",
  86. "euroshare.eu",
  87. "file-upload.net",
  88. "yadi.sk",
  89. "wizupload.com",
  90. "fastshare.cz",
  91. "filefactory.com",
  92. "share.vnn.vn",
  93. "yunpan.cn",
  94. "gulfup.com",
  95. "tropicshare.com",
  96. "cloudzilla.to",
  97. "inclouddrive.com",
  98. "fileflyer.com",
  99. "filerio.com|filekeen.com",
  100. "up.4share.vn",
  101. "upfile.vn",
  102. "datafilehost.com",
  103. "fileband.com",
  104. "worldbytez.com",
  105. "files.mail.ru",
  106. "filepost.com|fp.io",
  107. "filesflash.com",
  108. "box.com",
  109. "box.net",
  110. "goldbytez.com",
  111. "sdilej.cz",
  112. "ex-load.com",
  113. "filesmonster.com",
  114. "filestore.to",
  115. // "freakshare.net",
  116. "hulkload.com",
  117. "filedropper.com",
  118. "free-uploading.com",
  119. "gamefront.com|filefront.com",
  120. "gettyfile.ru",
  121. "gigapeta.com",
  122. "gigasize.com",
  123. "hellshare.com",
  124. "hellspy.com",
  125. "hitfile.net",
  126. "hostuje.net",
  127. "freefilehosting.net",
  128. "free.fr",
  129. "hulkshare.com",
  130. "hyperfileshare.com",
  131. "filecloud.io|ifile.it",
  132. "ifolder.ru",
  133. "jumbofiles.com",
  134. "uploadrocket.net",
  135. "lafiles.com",
  136. "leteckaposta.cz|sharegadget.com",
  137. "letitbit.net",
  138. "load.to",
  139. "mediafire.com",
  140. "megafileupload.com",
  141. "megashares.com",
  142. "movshare.net",
  143. "muchshare.net",
  144. "myupload.dk",
  145. "narod.ru|narod.yandex.ru",
  146. "netload.in",
  147. "fboom.me",
  148. "fileboom.me",
  149. "openfile.ru",
  150. "partage-facile.com",
  151. "plunder.com",
  152. // "putlocker.com",
  153. "sharerapid.cz",
  154. "exclusiveloader.com",
  155. "acefile.net",
  156. "queenshare.com",
  157. "quickshare.cz",
  158. "rapidgator.net",
  159. "keep2share.com",
  160. "oboom.com",
  161. "filepi.com",
  162. "neodrive.co",
  163. "rarefile.net",
  164. "rayfile.com",
  165. "rghost.net",
  166. "sendmyway.com",
  167. "clicknupload.com",
  168. "sharemods.com",
  169. "hostr.co",
  170. "sendspace.com",
  171. "sharecash.org",
  172. "share-links.biz",
  173. "share-online.biz|egoshare.com",
  174. "megarapid.cz",
  175. "shareflare.net",
  176. "solidfiles.com",
  177. "led.wf",
  178. "lan.wf",
  179. "adlink.wf",
  180. "click.tf",
  181. "kyc.pm",
  182. "ssh.tf",
  183. "ssh.yt",
  184. "yep.pm",
  185. "stahovanizasms.cz",
  186. "turbobit.net",
  187. "filecloud.cc",
  188. "tikfile.com",
  189. "cloudsix.me",
  190. "turboupload.com",
  191. "uloz.to|ulozto.cz|bagruj.cz|zachowajto.pl",
  192. "ulozisko.sk",
  193. "uloziste.com",
  194. "unibytes.com",
  195. "upload-il.net|przeslij.net",
  196. "uploaded.to|ul.to",
  197. "uploading.com",
  198. "chayfile.com",
  199. "rockfile.eu",
  200. "24uploading.com",
  201. "uploadspace.pl",
  202. "upnito.sk",
  203. "uptobox.com",
  204. "usaupload.net",
  205. "veehd.com",
  206. "videobb.com",
  207. "vip-file.com",
  208. "webshare.cz",
  209. "xdisk.cz",
  210. "yunfile.com|filemarkets.com",
  211. "ziddu.com",
  212. "krotix.net",
  213. "zippyshare.com",
  214. "rodfile.com",
  215. "migahost.com",
  216. "wikiupload.com",
  217. "uploadstube.de",
  218. "faststore.org",
  219. "flyfiles.net",
  220. "nowdownload.ch",
  221. "prefiles.com",
  222. "axifile.com",
  223. "rapidsonic.com|fileparadox.com",
  224. "hackerbox.org",
  225. "amonshare.com",
  226. "data.hu",
  227. "brupload.net",
  228. "userscloud.com",
  229. "netkups.com",
  230. "edoc.com",
  231. "xfileload.com",
  232. "jumbofile.net",
  233. "kumpulbagi.com",
  234. "uppit.com|up.ht",
  235. "downloadani.me",
  236. "filesabc.com",
  237. "180upload.com",
  238. "verzend.be",
  239. "movreel.com",
  240. "4up.me",
  241. "extmatrix.com",
  242. "sendfiles.nl",
  243. "yourfilestore.com",
  244. "filebig.net",
  245. "nekaka.com",
  246. "file4safe.com",
  247. "tusfiles.net",
  248. "filemac.com",
  249. "idup.in",
  250. "fileswap.com",
  251. "ozofiles.com",
  252. "loudupload.net",
  253. "nosupload.com",
  254. "gboxes.com",
  255. "myvdrive.com|fileserving.com",
  256. "filesin.com",
  257. "novafile.com",
  258. "longfiles.com",
  259. "uploadhero.com",
  260. "uploadbaz.com",
  261. "bitupload.com",
  262. "indowebster.com",
  263. "superload.cz",
  264. "mafiastorage.com",
  265. "4upfiles.com",
  266. "filesmelt.com",
  267. "hellupload.com",
  268. "uploadingit.com",
  269. "stiahni.si",
  270. "sendspace.pl",
  271. "fastshare.org",
  272. "filejoker.net",
  273. "filestore.com.ua",
  274. "secureupload.eu",
  275. "rapidfileshare.net",
  276. "stiahnito.sk",
  277. "rusfolder.com",
  278. "fileover.net",
  279. "catshare.net",
  280. "anonfiles.com",
  281. "mixturecloud.com",
  282. "fileparadox.in",
  283. "filedais.com",
  284. "imdb.com",
  285. "nitroflare.com",
  286. "akafile.com",
  287. "creafile.net",
  288. "hugefiles.net",
  289. "vidxden.com",
  290. "up.top4top.net",
  291. "upload.ee",
  292. "shareplace.org",
  293. "uploadc.com",
  294. "remixshare.com",
  295. "exoshare.com",
  296. "borncash.org",
  297. "junocloud.me",
  298. "keep2share.cc",
  299. "k2s.cc",
  300. "expressleech.com",
  301. "2downloadz.com",
  302. "mightyupload.com",
  303. "anysend.com",
  304. "datafile.com",
  305. "upstore.net",
  306. "upsto.re",
  307. "speedy.sh",
  308. "sanshare.com",
  309. "uploadhero.co",
  310. "ge.tt",
  311. "filesflash.net",
  312. "salefiles.com",
  313. "keep2s.cc",
  314. "megairon.net",
  315. "datoid.cz",
  316. "cloudstor.es",
  317. "streamfile.com",
  318. "eyesfile.ca",
  319. "filemoney.com",
  320. "uploadboy.com",
  321. "speedshare.eu",
  322. "google.com",
  323. "unlimitzone.com",
  324. "rioupload.com",
  325. "rg.to",
  326. "jumbofiles.org",
  327. "fshare.vn",
  328. "spaceforfiles.com",
  329. "up.media1fire.com",
  330. "depfile.com",
  331. "go4up.com",
  332. "dropbox.com",
  333. "redbunker.net",
  334. "divxpress.com",
  335. "mega.nz|mega.co.nz",
  336. "anafile.com",
  337. "uploadable.ch",
  338. "arabloads.net",
  339. "sharerepo.com",
  340. "sfshare.se",
  341. "files.fm",
  342. "koofile.com",
  343. "vidplay.net",
  344. "storagon.com",
  345. "doraupload.com",
  346. "openload.io",
  347. "geupload.com|lenfile.com",
  348. "uploads.xxx",
  349. ];
  350.  
  351. try
  352. {
  353. //iframes excluded
  354. if (window.top != window.self)
  355. {
  356. return;
  357. }
  358. //allHostNames sites excluded
  359. if (window.location.href.match("https?:\/\/(www\.)?[\w\.-]*(?:" +
  360. allHostNames.join("|").replace(/\./g, "\\.").replace(/-/g, "\\-") +
  361. ")"))
  362. {
  363. return;
  364. }
  365. }
  366. catch (e)
  367. {
  368. return;
  369. }
  370.  
  371. //separate alternative domains with "|" char (first name is considered being main)
  372. var allContainerNames = [
  373. "adf.ly",
  374. "linkcrypt.ws",
  375. "linksafe.me",
  376. "linksave.in",
  377. "linkto.net",
  378. "madlink.sk",
  379. "multiload.cz",
  380. "mirrorcreator.com",
  381. "ncrypt.in",
  382. "redi.re",
  383. "relink.us",
  384. "safelinking.net",
  385. "theloo.katt.it",
  386. "bit.ly",
  387.  
  388. ];
  389.  
  390. //separate alternative domains with "|" char (first name is considered being main)
  391. var allObsoleteNames = [
  392. "uloz.cz",
  393. "freakshare.com",
  394. "freakshare.net",
  395. "kingfiles.net",
  396. "daj.to",
  397. "bl.st",
  398. "2drive.net",
  399. "ryushare.com",
  400. "crisshare.com",
  401. "tufiles.ru",
  402. "uncapped-downloads.com",
  403. "sockshare.com",
  404. "ddlstorage.com",
  405. "dataport.cz",
  406. "dizzcloud.com",
  407. "sharebeast.com",
  408. "stahovadlo.cz",
  409. "shared.com",
  410. "storage.to",
  411. "putlocker.com",
  412. "lumfile.com",
  413. "lumfile.se",
  414. "lumfile.eu",
  415. "firedrive.com",
  416. "fileshare.in.ua",
  417. "filecore.co.nz",
  418. "iskladka.cz",
  419. "file-rack.com",
  420. "fast-load.net",
  421. "subory.sk",
  422. "bigandfree.com",
  423. "fileop.com",
  424. "mujsoubor.cz",
  425. "sendfile.to",
  426. "superfastfile.com",
  427. "quickyshare.com",
  428. "duckload.com",
  429. "uploadstore.net",
  430. "meinupload.com",
  431. "dualshare.com",
  432. "2xupload.to|2xupload.de",
  433. "oxedion.com",
  434. "uploadline.com",
  435. "dll.bz",
  436. "movieshare.in",
  437. "milledrive.com",
  438. "quickupload.net",
  439. "safelink.in",
  440. "metadivx.com",
  441. "divxlink.com",
  442. "uploadrack.com",
  443. "teradepot.com",
  444. "dataup.to",
  445. "upit.to",
  446. "driveway.com",
  447. "eatlime.com",
  448. "a2zuploads.com",
  449. "friendlyfiles.net",
  450. "flyfile.us",
  451. "speedyshare.com",
  452. "uploadspace.eu",
  453. "keepfile.com",
  454. "piggyshare.com",
  455. "uplly.com",
  456. "filecrown.com",
  457. "6giga.com",
  458. "uploadjockey.com",
  459. "bluehost.to",
  460. "filegu.ru",
  461. "filebase.to",
  462. "up-file.com",
  463. "xvideos.com",
  464. "ufox.com",
  465. "filebling.com",
  466. "loaded.it",
  467. "uploadcell.com",
  468. "uploadshare.cz",
  469. "mangoshare.com",
  470. "filestab.com",
  471. "crazyupload.com",
  472. "gaiafile.com",
  473. "sharejunky.com",
  474. "fileho.com",
  475. "bigandfree.com",
  476. "bigfile.in",
  477. "bigshare.eu",
  478. "dahosting.org",
  479. "digisofts.net",
  480. "file4save.com",
  481. "filechip.com",
  482. "filescloud.com",
  483. "saveqube.com",
  484. "turboshare.de",
  485. "z-upload.com",
  486. "youshare.com",
  487. "jiffyupload.com",
  488. "gigeshare.com",
  489. "datenklo.net",
  490. "upload.dj",
  491. "loadfiles.in",
  492. "upit.to",
  493. "dsfileshare.com",
  494. "sharesimple.net",
  495. "4files.net",
  496. "wooupload.com",
  497. "odsiebie.com",
  498. "filenavi.com",
  499. "3oof.com",
  500. "meshwaar.com",
  501. "maxupload.com",
  502. "share.cx",
  503. "atserver.eu",
  504. "hotfiles.ws",
  505. "esnips.com",
  506. "tuxfile.com",
  507. "file2upload.net",
  508. "filebling.com",
  509. "turboshare.com",
  510. "rarhost.com",
  511. "isharehd.com",
  512. "i741.com",
  513. "dataup.de",
  514. "fofly.com",
  515. "shareonall.com",
  516. "sexuploader.com",
  517. "megaupload.com|megavideo.com|megaporn.com|megarotic.com",
  518. "uploadhyper.com",
  519. "filespawn.com",
  520. "caizzii.com",
  521. "volnyweb.cz",
  522. "usershare.net",
  523. "filescash.net",
  524. "metahyper.com",
  525. "combozip.com",
  526. "x7.to",
  527. "uploadbox.com",
  528. "enterupload.com|flyupload.com",
  529. "filepoint.de",
  530. "mystream.to",
  531. "x-fs.com",
  532. "shareator.com",
  533. "srapid.eu",
  534. "sosame.cz",
  535. "filesdump.com",
  536. "2-klicks.de",
  537. "uploking.com",
  538. "silofiles.com",
  539. "upfile.in",
  540. "filehook.com",
  541. "uploadking.com",
  542. "uploadhere.com",
  543. "kewlshare.com",
  544. "rapidable.com",
  545. "uploadwaste.com",
  546. "filemup.com",
  547. "filesonic.com|sharingmatrix.com",
  548. "fileserve.com",
  549. "wupload.com",
  550. "skipfile.com",
  551. "smartuploader.com",
  552. "dualshare.com",
  553. "storeandserve.com",
  554. "mountfile.com",
  555. "transitfiles.com",
  556. "uploadstation.com",
  557. "filejungle.com",
  558. "shareshared.com",
  559. "quickyshare.com",
  560. "save.am",
  561. "petandrive.com",
  562. "file2box.com",
  563. "flyshare.cz",
  564. "yabadaba.ru",
  565. "cloudcache.cc",
  566. "yourfilehost.com",
  567. "jakfile.com",
  568. "kickload.com",
  569. "pyramidfiles.com",
  570. "refile.net",
  571. "zshare.net",
  572. "ddlani.me|ddlanime.com",
  573. "ftp2share.com",
  574. "fooget.com",
  575. "rapidhide.com",
  576. "gotupload.com",
  577. "mooload.com",
  578. "zupload.com",
  579. "mytempdir.com",
  580. "onionshare.com",
  581. "stahnu.to",
  582. "oron.com",
  583. "badongo.com",
  584. "filereactor.com",
  585. "filegaze.com",
  586. "4bytez.com",
  587. "1hostclick.com",
  588. "anonstream.com",
  589. "batshare.com",
  590. "bitroad.net",
  591. "brontofile.com",
  592. "cloudnxt.net",
  593. "cloudnator.com|shragle.com",
  594. "filesfrog.net",
  595. "coolshare.cz",
  596. "dotavi.com",
  597. "ezyfile.net",
  598. "file-bit.net",
  599. "filecosy.com",
  600. "fileduct.com|fileduct.net",
  601. "filefat.com",
  602. "filelaser.com",
  603. "filemashine.com",
  604. "fileserver.cc",
  605. "filetechnology.com",
  606. "fireuploads.net",
  607. "gigfiles.net",
  608. "holderfile.com",
  609. "ihostia.com",
  610. "k2files.com",
  611. "mojofile.com",
  612. "ovfile.com",
  613. "qshare.com",
  614. "shafiles.me",
  615. "sharefilehost.com",
  616. "shareupload.com",
  617. "stahuj.to",
  618. "ugotfile.com",
  619. "uploadboost.com",
  620. "fileom.com",
  621. "vidhog.com",
  622. "xfileshare.eu",
  623. "bzlink.us",
  624. "bulletupload.com",
  625. // "wizzupload.com",
  626. "bloggerarticles.com",
  627. "mojedata.sk",
  628. "sharpfile.com",
  629. "upgrand.com",
  630. "nasdilej.cz",
  631. "mediatack.cz",
  632. "share-it.to",
  633. "primeupload.com",
  634. "filebeer.info",
  635. "baberepublic",
  636. "xtu.me",
  637. "sharebase.de",
  638. "luckyshare.net",
  639. "filerobo.com",
  640. "filevelocity.com",
  641. "filezpro.com",
  642. "file4sharing.com",
  643. "cing.be",
  644. "ufile.eu",
  645. "pigsonic.com",
  646. "fileupped.com",
  647. "sharerun.com",
  648. "filesaur.com",
  649. "rapidslnare.com",
  650. "bestsharing.com",
  651. "savefiles.net",
  652. "file2share.biz",
  653. "filecache.de",
  654. "monsteruploads.eu",
  655. "b9bb.com",
  656. "aiotool.net",
  657. "jamber.info",
  658. "megaftp.com",
  659. "desiupload.net",
  660. "file27.com",
  661. "yastorage.com",
  662. "filehost.ws",
  663. "copyload.com",
  664. "venusfile.com",
  665. "aieshare.com",
  666. "terafile.co",
  667. "terafile.com",
  668. "fileza.net",
  669. "filerose.com",
  670. "squillion.com",
  671. "fileprohost.com",
  672. "bitbonus.com",
  673. "warserver.cz",
  674. "uload.to",
  675. "sharedbit.net",
  676. "megaload.it",
  677. "filewinds.com",
  678. "uploadcore.com",
  679. "syfiles.com",
  680. "eyesfile.com",
  681. "hotfile.com",
  682. "superupl.com",
  683. "oteupload.com",
  684. "henchfile.com",
  685. "filegag.com",
  686. "HenchFile.com",
  687. "filedefend.com",
  688. "share-rapid.com|rapids.cz|share-credit.cz|share-central.cz|share-ms.cz|share-net.cz|srapid.cz|share-rapid.cz",
  689. "megabitshare.com",
  690. "cloudzer.com",
  691. "asfile.com",
  692. "cloudzer.net",
  693. "clz.to",
  694. "extabit.com",
  695. "247upload.com",
  696. "2download.de",
  697. "4fastfile.com",
  698. "asixfiles.com",
  699. "berofile.com",
  700. "bigupload.com",
  701. "cepzo.com",
  702. "clouds.to",
  703. "cobrashare.sk",
  704. "coraldrive.net",
  705. "cyberlocker.ch",
  706. "czshare.com",
  707. "darkport.org",
  708. "dark-uploads.com",
  709. "davvas.com",
  710. "enigmashare.com",
  711. "erofly.cz",
  712. "fastsonic.net",
  713. "filebox.com",
  714. "filecity.net",
  715. "filedap.com",
  716. "filedino.com",
  717. "filedownloads.org",
  718. "filefolks.com",
  719. "fileking.co",
  720. "filemates.com",
  721. "files.to",
  722. "files2k.eu",
  723. "filesector.cc",
  724. "bitshare.com",
  725. "filesega.com",
  726. "filesend.net",
  727. "filestay.com",
  728. "filestrum.com",
  729. "fileuplo.de",
  730. "fileupup.com",
  731. "forunesia.com",
  732. "freeuploads.fr",
  733. "uploa.dk",
  734. "getthebit.com",
  735. "getzilla.net",
  736. "goldfile.eu",
  737. "good.com",
  738. "grupload.com",
  739. "hellfile.com",
  740. "hipfile.com",
  741. "hitfile.com",
  742. "hulkfile.eu|duckfile.net",
  743. "i-filez.com",
  744. "ifile.ws",
  745. "kupload.org",
  746. "packupload.com",
  747. "lemuploads.com",
  748. "limelinx.com",
  749. "maxshare.pl",
  750. "megarelease.org",
  751. "megashare.com",
  752. "minus.com",
  753. "mlfat4arab.com",
  754. "multishare.cz",
  755. "nirafile.com",
  756. "ok2upload.com",
  757. "peejeshare.com",
  758. "premiuns.org",
  759. "przeklej.net",
  760. "qkup.net",
  761. "rapidupload.sk",
  762. "rockdizfile.com",
  763. "rocketfile.net",
  764. "share-now.net",
  765. "share76.com",
  766. "sharebees.com",
  767. "sharefiles.co",
  768. "slingfile.com",
  769. "sms4file.com",
  770. "space4file.com",
  771. "tigershare.net",
  772. "toucansharing.com",
  773. "ubuntuone.com",
  774. "unextfiles.com",
  775. "upaj.pl",
  776. "upfile.biz",
  777. "uploadbin.net",
  778. "uploadic.com",
  779. "uploadinc.com",
  780. "uploading4u.eu",
  781. "uploadjet.net",
  782. "uploadorb.com",
  783. "upthe.net",
  784. "uptorch.com",
  785. "vidbox.yt",
  786. "videozer.com",
  787. "vreer.com",
  788. "wallobit.com",
  789. "zooupload.com",
  790. "privatefiles.com",
  791. "xerver.co",
  792. "BillionUploads.com",
  793. "rapidshare.com",
  794. "rapidshare.ru",
  795. "4savefile.com",
  796. "bayfiles.com",
  797. "bayfiles.net",
  798. "dodane.pl",
  799. "dotsemper.com",
  800. "egofiles.com",
  801. "epicshare.net",
  802. "fiberupload.net",
  803. "filemonkey.in",
  804. "filemonster.net",
  805. "filepom.com",
  806. "filesbb.com",
  807. "fileshareup.com",
  808. "filevice.com",
  809. "gigaup.fr",
  810. // "inafile.com",
  811. "isavelink.com",
  812. "loombo.com",
  813. "megafiles.se",
  814. "migupload.com",
  815. "mydisc.net",
  816. "nitrobits.com",
  817. "potload.com",
  818. "redload.net",
  819. "shareprofi.com",
  820. "sharesuper.info",
  821. "sinhro.net",
  822. "speedfile.cz",
  823. "speedshare.org",
  824. "storage.novoro.net",
  825. "swankshare.com",
  826. "swatupload.com",
  827. "upafile.com",
  828. "uploadmachine.com",
  829. "uploadsat.com",
  830. "upshared.com",
  831. "usefile.com",
  832. "yourfiles.to",
  833. "zomgupload.com",
  834. "ultramegabit.com",
  835. "uploadto.us",
  836.  
  837. ];
  838. ///////////////////////////////////////////////////////////////////////////////////////
  839. var firstRun = GM_getValue("First_run", true);
  840.  
  841. var chromeBrowser = /chrom(e|ium)/.test(navigator.userAgent.toLowerCase());
  842. //////////////////////////////////////////////////////////////////////////////////////
  843. try
  844. {
  845. var thisVersion = GM_info.script.version; //not supported in Scriptish and others
  846. var last_known_version = GM_getValue("last_known_version", "");
  847. if (!last_known_version)
  848. {
  849. last_known_version = thisVersion;
  850. GM_setValue("last_known_version", last_known_version);
  851. }
  852. //var newVersion = !(thisVersion == last_known_version);
  853. var newVersion = !(a.replace(/^(\d+\.\d+\.\d+).*/,'$1') == b.replace(/^(\d+\.\d+\.\d+).*/,'$1')); //true only if one of the first three numbers differs
  854. GM_setValue("last_known_version", thisVersion);
  855. }
  856. catch (err)
  857. {
  858. var newVersion = false;
  859. }
  860.  
  861. var now = (new Date()).getTime();
  862. var last_custom_rules_nag = GM_getValue('last_custom_rules_nag', 0);
  863. if (!last_custom_rules_nag)
  864. {
  865. last_custom_rules_nag = now;
  866. GM_setValue('last_custom_rules_nag', ''+now);
  867. }
  868.  
  869.  
  870. allHostNames.sort();
  871. allContainerNames.sort();
  872. allObsoleteNames.sort();
  873.  
  874. var RAND_STRING = "8QyvpOSsRG3QWq";
  875. var DEBUG_MODE = false;
  876.  
  877. var TOOLTIP_MAXWIDTH = 600; //in pixels
  878. var TOOLTIP_THUMBWIDTH = 200;
  879. var containers_processed = false;
  880.  
  881. //settings for keyboard functions start
  882. var CHECK_ALL_LINKS_KEY = "A";
  883. var CONFIGURATION_KEY = "C";
  884. var copy_to_dead_key = "D";
  885. var toggle_autocheck_key = "W";
  886. var toggle_Enable_Anonymizer_key = "Z";
  887. var first_key_keycode = '17'; // 18=ALT 16=Shift 17=Ctrl 32=SPACE_BAR 9=TAB
  888. var first_key_keycodename = 'CTRL';
  889. var second_key_keycode = '18';
  890. var second_key_keycodename = 'ALT';
  891. var CHECK_ALL_LINKS_KEYCODE = CHECK_ALL_LINKS_KEY.charCodeAt(0);
  892. var CONFIGURATION_KEYCODE = CONFIGURATION_KEY.charCodeAt(0);
  893. var copy_to_dead_keycode = copy_to_dead_key.charCodeAt(0);
  894. var toggle_autocheck_keycode = toggle_autocheck_key.charCodeAt(0);
  895. var toggle_Enable_Anonymizer_keycode = toggle_Enable_Anonymizer_key.charCodeAt(0);
  896. //settings for keyboard functions end
  897.  
  898. //global settings start
  899. var Show_black_background_in_DL_links, Show_line_through_in_dead_links, Color_DL_links;
  900. var Live_links_color, Dead_links_color, Temp_unavailable_links_color, Premium_links_color, Ref_anonymize_service;
  901. var Do_not_linkify_DL_links, Keyboard_functions, Autocheck, Enable_Anonymizer;
  902. var Show_progress_stats, Display_tooltip_info, Icon_set;
  903. var Progress_box_pos_bottom, Progress_box_pos_right, Progress_box_opacity, Progress_box_background_color, Progress_box_item_color;
  904. var Progress_box_refresh_rate;
  905. var Obsolete_file_hosts;
  906. var Custom_rules, Custom_rules_text;
  907.  
  908. var messageBox = document.createElement('b'); // top-left message box
  909.  
  910. var cLinksTotal = 0;
  911. var cLinksDead = 0;
  912. var cLinksAlive = 0;
  913. var cLinksUnava = 0;
  914. var cLinksprem = 0;
  915. var cLinksProcessed = 0;
  916.  
  917. var intervalId; //for updateProgress()
  918.  
  919. //icon resources
  920. 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+AXuRLahdYwP2SycQWHTA4vcAAPK7b8HUKAg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dsc7/DVQOMxSNW5cNClGD+Fu41dOZlKDMLmELrOUIhjeN48HpngTnMbDeWjIeHnsvbz98YXqxguumuazdDOs0HjAETRKNjuFyzTE9PAOO//Xm27lvN4b1c8htkAXC2jrKHN5gVSRcRW0SCIpIj/f2ZAkhTkykiOYu+SLa8e6qkeRNXALh5nEc/phARnaSJSSUnO5G+B8tnIkr6rjMTSqfMZQXZ9vE1xGKJpPe4DDjXAYkEjAwmzwwDLIv0NZlE1MYAjsQoAOL8C5rY2AxPlIjwP/wcACKn3tWfrwJ4AAAAAElFTkSuQmCC';
  933. var NEW_ICON_PINK = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABUklEQVQ4jY3TsUuWURQG8F8WEvFNDREfIg5RURAOIeL0DhJBS0tDY9BQQ0Oj29kiIvoDhBpFQRTUD1GKi0sRtEs0SEQ0RBQIRcVXw3eF6+vrWwcunPvc53nuPffcS0uEmA0x38Y5cohwGjOYxBBe4VGI3j8NQlzHYhaW0cfNEAslWCfBw4yvYhkv8hjCgxD7yMdquw/jbJ4+xq2cz+AKdrJRv9EAv/EDx3Ft75QhtrHdcFpHy0mS/lSqcVzAFM7he6XaTNLXJoOmS+ziOc4XcB893A3xodUgm5zAHdzHSLH0DhdD/GwsoSjlV5Je5nK+YQUTOInXSXq7x6134RQuo4unGf6Me7iKMxgrNfUuXMJazr8U+DA6Of/UZrCF9xjFM3zELpZwOptulIKmLlQGNXdqS7u4EWK9BA9cYpJ2KtWcwaMazcInuB3iTZ3fGv/znf8CBMxX4hrPUbUAAAAASUVORK5CYII=';
  934.  
  935. //global settings end
  936. if (window.opera && !window.console)
  937. {
  938. window.console = {};
  939.  
  940. function fn()
  941. {
  942. opera.postError(arguments);
  943. };
  944. ['log', 'debug', 'info', 'warn', 'error', 'assert', 'dir', 'dirxml', 'group', 'groupEnd', 'time', 'timeEnd', 'count', 'trace', 'profile', 'profileEnd'].forEach(function (name)
  945. {
  946. window.console[name] = fn;
  947. });
  948. }
  949.  
  950. //displays colored text in message box
  951. function sendMessage(text, color)
  952. {
  953. var msgDiv = document.createElement('div');
  954. msgDiv.style.color = color;
  955. msgDiv.innerHTML = text;
  956. messageBox.appendChild(msgDiv);
  957. setTimeout(function(){messageBox.removeChild(msgDiv)}, 3000);
  958. }
  959.  
  960. function linkify(totalourls)
  961. { // code from http://userscripts.org/scripts/review/2254 Linkify ting
  962. var ikkeTilladteTags;
  963. var allLinksRegex = "(?:http:\/\/.+?\\?)?(?:https?:\/\/)?"
  964. + "[0-9A-Za-z]+(?:[\\.-][0-9A-Za-z]+)*\\.[A-Za-z]+/" //instead of totalourls
  965. + "[\\w\\–\\-\\.+$!*\\/()\\[\\]\',~%?:@#&=\\\\\\—;…×Ã\\_\\u0080-\\u03FF’‘" + (Allow_spaces_in_DL_links ? "\\u0020" : "") + "]*";
  966. allLinksRegex = new RegExp(allLinksRegex, "g");
  967. var regexy = "^(?:http:\/\/.+?\\?)?(?:https?:\/\/)?(?:www\\.)?(?:" + totalourls + ")";
  968.  
  969. if (Do_not_linkify_DL_links)
  970. ikkeTilladteTags = ['a', 'head', 'script', 'style', 'title', 'option', 'iframe', 'textarea', 'span']; //tags, hvor det der stAΞ’Β¥r inden i ikke skal vAΞ’Β¦re links
  971. else
  972. ikkeTilladteTags = ['a', 'head', 'script', 'style', 'title', 'option', 'iframe', 'textarea']; //tags, hvor det der stAΞ’Β¥r inden i ikke skal vAΞ’Β¦re links
  973.  
  974. var regex = new RegExp(regexy);
  975. var textNode, muligtLink;
  976.  
  977. var path = "//text()[not(parent::" + ikkeTilladteTags.join(" or parent::") + ") and contains(.,'/')]";
  978. var textNodes = document.evaluate(path, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  979.  
  980. var i = textNodes.snapshotLength;
  981. while (i--)
  982. {
  983. textNode = textNodes.snapshotItem(i);
  984.  
  985. muligtLink = textNode.nodeValue; //all links on page
  986.  
  987. var myArray = null;
  988. var span = null;
  989. var lastLastIndex = 0;
  990. allLinksRegex.lastIndex = 0;
  991. if (/^https?:\/\/~[\w\s\~]*\//.test(muligtLink))
  992. {
  993. if (textNode.parentNode.className == "adead_link") continue;
  994. var censoredLink = muligtLink;
  995. var span = document.createElement('span');
  996. span.className = "adead_link";
  997. $(span).attr('warlc_error', "Cause of error: <b>Censored link.</b>");
  998. $(span).html(censoredLink);
  999. span.addEventListener("mouseover", displayTooltipError, false);
  1000. cLinksTotal++; cLinksProcessed++; cLinksDead++;
  1001. textNode.parentNode.replaceChild(span, textNode);
  1002. continue;
  1003. alert(censoredLink);
  1004. }
  1005. while (myArray = allLinksRegex.exec(muligtLink)) //find all links
  1006. {
  1007. if (!regex.test(myArray[0])) //this link is not recognized
  1008. {
  1009.  
  1010. continue;
  1011. }
  1012. if (!span)
  1013. span = document.createElement('span');
  1014.  
  1015. var link = myArray[0];
  1016. span.appendChild(document.createTextNode(muligtLink.substring(lastLastIndex, myArray.index))); //inds?t det der kommer for dette hit
  1017.  
  1018. var $a = $("<a>" + link + "</a>")
  1019. if (!link.match(/https?:\/\//))
  1020. {
  1021. link = 'http://' + link;
  1022. }
  1023.  
  1024. $a.attr("href", link.replace(/\[\/hide:\w+\]/,""))
  1025. .addClass("processing_link")
  1026. .appendTo(span);
  1027. lastLastIndex = allLinksRegex.lastIndex;
  1028. }
  1029. if (span)
  1030. {
  1031. span.appendChild(document.createTextNode(muligtLink.substring(lastLastIndex))); //ins?t det der kommer efter sidste hit
  1032. textNode.parentNode.replaceChild(span, textNode);
  1033. }
  1034. }
  1035. }
  1036.  
  1037. function add_WARLC_style()
  1038. {
  1039. if (!(document.getElementsByTagName('WARLC')[0]))
  1040. {
  1041. var meta_not_to_add_more_style = document.createElement("WARLC");
  1042. meta_not_to_add_more_style.setAttribute('content', 'war_links_checker');
  1043. meta_not_to_add_more_style.setAttribute('name', 'description');
  1044. document.getElementsByTagName('head')[0].appendChild(meta_not_to_add_more_style);
  1045. alive_link_png = "";
  1046. adead_link_png = "";
  1047. unava_link_png = "";
  1048. prem_link_png = "";
  1049. switch(Icon_set)
  1050. {
  1051. //no icons
  1052. case 0: break;
  1053. // cat paws
  1054. case 1: alive_link_png = PAW_ICON_GREEN;
  1055. adead_link_png = PAW_ICON_RED;
  1056. unava_link_png = PAW_ICON_YELLOW;
  1057. prem_link_png = PAW_ICON_PINK;
  1058. break;
  1059. // classic RSLC look
  1060. case 2: alive_link_png = RSLC_ICON_GREEN;
  1061. adead_link_png = RSLC_ICON_RED;
  1062. unava_link_png = RSLC_ICON_YELLOW;
  1063. prem_link_png = RSLC_ICON_PINK;
  1064. break;
  1065. // New Icons
  1066. case 3: alive_link_png = NEW_ICON_GREEN;
  1067. adead_link_png = NEW_ICON_RED;
  1068. unava_link_png = NEW_ICON_YELLOW;
  1069. prem_link_png = NEW_ICON_PINK;
  1070. break;
  1071. // cat paws
  1072. default:alive_link_png = PAW_ICON_GREEN;
  1073. adead_link_png = PAW_ICON_RED;
  1074. unava_link_png = PAW_ICON_YELLOW;
  1075. prem_link_png = PAW_ICON_PINK;
  1076. break;
  1077. }
  1078. processing_link_gif = 'data:image/gif;base64,' + // or temporary anavailable
  1079. 'R0lGODlhCgAKAJEDAMzMzP9mZv8AAP///yH/C05FVFNDQVBFMi4wAwEAAAAh+QQFAAADACwAAAAACgAKAAACF5wncgaAGgJzJ647cWua4sOBFEd62VEAACH5BAUAAAMALAEAAAAIAAMAAAIKnBM2IoMDAFMQFAAh+QQFAAADACwAAAAABgAGAAACDJwHMBGofKIRItJYAAAh+QQFAAADACwAAAEAAwAIAAACChxgOBPBvpYQYxYAIfkEBQAAAwAsAAAEAAYABgAAAgoEhmPJHOGgEGwWACH5BAUAAAMALAEABwAIAAMAAAIKBIYjYhOhRHqpAAAh+QQFAAADACwEAAQABgAGAAACDJwncqi7EQYAA0p6CgAh+QQJAAADACwHAAEAAwAIAAACCpRmoxoxvQAYchQAOw%3D%3D';
  1080.  
  1081. var dead_color_css, live_color_css, unava_color_css, prem_color_css, black_background_css;
  1082.  
  1083. if (Color_DL_links)
  1084. {
  1085. dead_color_css = 'color:' + Dead_links_color + ' !important;';
  1086. live_color_css = 'color:' + Live_links_color + ' !important;';
  1087. unava_color_css = 'color:' + Temp_unavailable_links_color + ' !important;';
  1088. container_color_css = 'color:' + Container_links_color + ' !important;';
  1089. prem_color_css = 'color:' + Premium_links_color + ' !important;';
  1090. }
  1091. else
  1092. {
  1093. dead_color_css = live_color_css = unava_color_css = container_color_css = prem_color_css = '';
  1094. }
  1095.  
  1096. if (Show_black_background_in_DL_links)
  1097. {
  1098. black_background_css = 'background-color: black !important;';
  1099. }
  1100. else
  1101. {
  1102. black_background_css = '';
  1103. }
  1104.  
  1105. if (Show_line_through_in_dead_links)
  1106. {
  1107. line_through_css = 'text-decoration: line-through !important;';
  1108. }
  1109. else
  1110. {
  1111. line_through_css = '';
  1112. }
  1113.  
  1114. GM_addStyle(".alive_link {background:transparent url(" + alive_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;" + live_color_css + black_background_css + "}");
  1115. 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 + "}");
  1116. GM_addStyle(".unava_link {background:transparent url(" + unava_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;" + unava_color_css + black_background_css + "}");
  1117. GM_addStyle(".processing_link {background:transparent url(" + processing_link_gif + ") no-repeat scroll 100% 50%;padding-right:15px;" + container_color_css + black_background_css + "}");
  1118. GM_addStyle(".container_link {background:transparent url(" + processing_link_gif + ") no-repeat scroll 100% 50%;padding-right:15px;" + container_color_css + black_background_css + "}");
  1119. GM_addStyle(".container_list {font-size:90%; list-style-type:square; padding: 0px 5% 0px; margin: 0px}");
  1120. GM_addStyle(".prem_link {background:transparent url(" + prem_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;" + prem_color_css + black_background_css + "}");
  1121. }
  1122. }
  1123.  
  1124. var warlcTooltip = null;
  1125. var mouseoverLink = null; //link href with mouse cursor over it
  1126.  
  1127. var lastX = 0;
  1128. var lastY = 0;
  1129.  
  1130. $(document).ready(initTooltip);
  1131. //inits tooltip
  1132. function initTooltip()
  1133. { warlcTooltip = document.createElement("div");
  1134. 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;");
  1135. warlcTooltip.style.visibility = "hidden";
  1136. document.body.appendChild(warlcTooltip);
  1137. }
  1138.  
  1139. //"mousemove" event handler for all links
  1140. function moveTooltip(event)
  1141. {
  1142. if ((Math.abs(lastX - event.clientX) + Math.abs(lastY - event.clientY)) < 6)
  1143. { //no need to reflow if the cursor moved just a little
  1144. return;
  1145. }
  1146. else
  1147. {
  1148. lastX = event.clientX;
  1149. lastY = event.clientY;
  1150. }
  1151.  
  1152. posX = event.clientX + window.pageXOffset + 10;
  1153. posY = event.clientY + window.pageYOffset;
  1154. var ttHeight = warlcTooltip.offsetHeight;
  1155. var ttFreeSpace = window.innerHeight - event.clientY;
  1156. if (ttHeight > ttFreeSpace)
  1157. { //prevents tooltip from getting out of the window
  1158. posY -= (ttHeight - (ttFreeSpace)) + 10;
  1159. }
  1160. else
  1161. {
  1162. posY += 7;
  1163. }
  1164. warlcTooltip.style.top = posY + "px";
  1165. warlcTooltip.style.left = posX + "px";
  1166. }
  1167.  
  1168. //"mouseout" event handler for all links
  1169. function hideTooltip(){
  1170. warlcTooltip.style.visibility = "hidden";
  1171. mouseoverLink = null;
  1172. }
  1173.  
  1174.  
  1175. //"mouseover" event handler for dead links
  1176. //displays tooltip error message on dead links
  1177. function displayTooltipError()
  1178. {
  1179. mouseoverLink = this.href;
  1180. this.addEventListener("mouseout", hideTooltip);
  1181. this.addEventListener("mousemove", function(event) { moveTooltip(event); });
  1182. warlcTooltip.innerHTML = '<b>LOADING...</b>';
  1183. warlcTooltip.style.minWidth = 0;
  1184. warlcTooltip.style.visibility = "visible";
  1185. if (this.warlc_error) //an error message is already known and stored in warlc_error attribute
  1186. {
  1187. warlcTooltip.innerHTML = this.warlc_error;
  1188. }
  1189. else
  1190. {
  1191. loadErrorInfo(this);
  1192. }
  1193. function loadErrorInfo(link)
  1194. {
  1195. var href = link.href;
  1196. href = href.replace(/quickshare\.cz\/.+/, "quickshare.cz/chyba");
  1197. GM_xmlhttpRequest({
  1198. method: 'GET',
  1199. url: href.replace(Ref_anonymize_service, ""),
  1200. headers: {
  1201. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1202. 'Accept': 'text/xml',
  1203. 'Referer': ""
  1204. },
  1205. onload: function(result) {
  1206. var res = result.responseText;
  1207. //TODO: errorRegexs -
  1208. var errorRegexs = [ //generic error messages follow
  1209. /(empty directory)/i,
  1210. /(soubor nebyl nalezen)/i,
  1211. /((?:file|page|link|folder)(?:is|not|does|has been|was| ){1,}(?:found|available|blocked|exists?|deleted|removed))/i,
  1212. //server specific error messages follow
  1213. /msg error" style="cursor: default">(.+?)<\/div>/, //sendspace
  1214. /color:red;font\-weight:bold;border\-style:dashed;font-size:12px;border\-width:2px;><tr><td align=center>(.+?)<\/td>/, //fastshare
  1215. /(Takový soubor neexistuje. Je možné, že byl již smazán.)/, //quickshare
  1216. /file_info file_info_deleted">\s*<h1>(.+?)<\/h1>/, //filepost
  1217. /<br \/>\s*<p style="color:#000">(.+?)<\/p>\s*<\/center>/, //letitbit
  1218. /(?:error_div">|<\/h1><p>)<strong>(.+?)<\/strong>/, //share-rapid,quickshare
  1219. /class="red">(.+?)<(?:span|br)>/, //czshare, megashares
  1220. /class="wp640">\s*<h1 class="h1">(.+?)<\/h1>/, //uloz.to
  1221. /not-found">\s*<p>(.+?)<\/p>/, //bayfiles
  1222. /(Your file could not be found. Please check the download link.)/, //stahnu.to
  1223. /error_msg">\s*(<h3>.+?<\/h3><ul>(.+?)<\/ul>)/, //edisk
  1224. /id="obsah">\s*<h2>(.+?)<\/h2>/, //euroshare
  1225. /error">\s*(?:<[bp]>)?\s*(.+?)<\/[bp]>/, //filesmonster, shragle, gigapeta
  1226. ///center aC">\s*<h1>(.+?)<br \/>/, //uploaded.to
  1227. /icon_err">\s*<h1>(.+?)<\/h1>/, //filejungle
  1228. /Code: ER_NFF_\d+<\/h2>\s*(.+?)\s*<\/div>/, //netload
  1229. /(File has been removed due to Copyright Claim)/, //filerio
  1230. ];
  1231. var errorIdx = errorRegexs.length;
  1232. var error = "Cause of error: <b>unknown</b>";
  1233. var errorCandidate = "";
  1234. while(errorIdx--)
  1235. {
  1236. var errorCandidate = res.match(errorRegexs[errorIdx]);
  1237. if (errorCandidate != null)
  1238. {
  1239. error = "Cause of error: <b>" + errorCandidate[1].replace(/&nbsp;/g," ") + "</b>";
  1240. break;
  1241. }
  1242. }
  1243. //link attributes
  1244. link.warlc_error = error;
  1245. if (mouseoverLink == link.href) //mouse cursor is still over the link
  1246. {
  1247. warlcTooltip.innerHTML = error;
  1248. }
  1249. }
  1250. });
  1251. }
  1252. }
  1253.  
  1254. //"mouseover" event handler for alive links
  1255. //displays tooltip info (file size, file name,...) on alive links
  1256. function displayTooltipInfo()
  1257. {
  1258. mouseoverLink = this.href;
  1259. //exclude direct download filehostings
  1260. 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)/))
  1261. {
  1262. return;
  1263. }
  1264. this.addEventListener("mouseout", hideTooltip);
  1265. this.addEventListener("mousemove", function(event) { moveTooltip(event); });
  1266. warlcTooltip.innerHTML = '<b>LOADING...</b>';
  1267. warlcTooltip.style.minWidth = 0;
  1268. warlcTooltip.style.visibility = "visible";
  1269. if (this.warlc_tooltipcache) //file size is already known and stored in warlc_filename and warlc_filesize attributes
  1270. {
  1271. warlcTooltip.innerHTML = this.warlc_tooltipcache;
  1272. }
  1273. else
  1274. {
  1275. loadInfo(this);
  1276. }
  1277. function loadInfo(link)
  1278. {
  1279. var href = link.href;
  1280. GM_xmlhttpRequest({
  1281. method: 'GET',
  1282. url: href.replace(Ref_anonymize_service, ""),
  1283. headers: {
  1284. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1285. 'Accept': 'text/xml',
  1286. 'Referer': ""
  1287. },
  1288. onload: function(result) {
  1289. var res = result.responseText;
  1290. var nameRegexs = [ /Filename: <b class="f_arial f_14px">(.+?)<\/b>/, //oron
  1291. /(?:finfo|file[-_]?name)">\s*(.+?)<\/?(?:h1|a|div|span style|td)/, //hellshare, netload, badongo, 4fastfile
  1292. /fl" title="(.+?)">/, //edisk
  1293. /<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
  1294. /<h3>Stahujete soubor: <\/h3>\s*<div class="textbox">(.+?)<\/div>/, //webshare
  1295. /<h3><b><span style=color:black;>(.+?)<\/b><\/h3><br>/, //fastshare
  1296. /title="download (.+?)">/, //sendspace
  1297. /Stáhnout soubor: (.+?)<\/h1>/, //quickshare
  1298. /fz24">Download:\s*<strong>(.+?)<\/strong>/, //crocko
  1299. // /'file\-icon\d+ \w+'>(?:<\/span><span>)?(.+?)<\/span>/, //hitfile, turbobit
  1300. /d0FileName = "(.+?)";/, //letitbit
  1301. /file(?:_name|-info)" title="">\w+: <span>(.+?)<\/span>/, //vip-file, shareflare
  1302. /recent-comments"><h2>(.+) &nbsp;/, //xdisk
  1303. /fname" value="(.+?)">/, //syfiles, grupload,
  1304. /download\-header">\s*<h2>File:<\/h2>\s*<p title="(.+?)">/, //bayfiles
  1305. /description">\s*<p><b>Soubor: (.+?)<\/b>/, //bezvadata
  1306. /Complete name : (.+?)<br \/>/, //bezvadata
  1307. /itemprop="name">(.+?)<\/span>/, //bezvadata
  1308. ];
  1309. var nameIdx = nameRegexs.length;
  1310. // [sizeRegexs]
  1311. // / \ \?
  1312. // prefix (size) postfix
  1313. // / \
  1314. // val quant
  1315. var quantRegex = '(?:M|G|K)?i?(?:B)(?:[y|i]te?s?)?';
  1316. var valRegex = '\\d+(?:[\\., ]\\d+){0,2}'; // 111([., ]222)?([., ]333)?
  1317. var uniSizeRegex = valRegex + '(?:\\s*|&nbsp;)' + quantRegex;
  1318. var preSizeRegex = '(?::|\\(|>|>, | - )';
  1319. var postSizeRegex = '(?:\\))?';
  1320. var sizeRegexs = [ preSizeRegex + "\\s*(" + uniSizeRegex + ")\\s*" + postSizeRegex,
  1321. 'FileSize_master">(.+?)<\/strong>', //hellshare
  1322. ];
  1323. var sizeIdx = sizeRegexs.length;
  1324. //
  1325. //
  1326. var tooltip = "File Name: <b>";
  1327. var fileName = "unknown";
  1328. var nameCandidate = "";
  1329. while(nameIdx--)
  1330. {
  1331. var nameCandidate = res.match(nameRegexs[nameIdx]);
  1332. if (nameCandidate != null)
  1333. {
  1334. fileName = nameCandidate[1].replace(/&nbsp;/g," ");
  1335. break;
  1336. }
  1337. }
  1338. tooltip += fileName + "</b><br>File Size: <b>";
  1339. var fileSize = "unknown";
  1340. var sizeCandidate = "";
  1341. while(sizeIdx--)
  1342. {
  1343. sizeCandidate = res.match(new RegExp(sizeRegexs[sizeIdx], "i"));
  1344. if (sizeCandidate != null)
  1345. {
  1346. fileSize = sizeCandidate[1].replace(/&nbsp;/g," ");
  1347. if (/^\d+$/.test(fileSize) && fileSize >= 1024) //assume bytes
  1348. {
  1349. if(fileSize > (1<<30)) fileSize = Math.round(10 * fileSize / (1<<30)) / 10 + ' GB';
  1350. else if(fileSize > (1<<20)) fileSize = Math.round(fileSize / (1<<20)) + ' MB';
  1351. else fileSize = Math.round(fileSize / 1024) + ' KB';
  1352. }
  1353. break;
  1354. }
  1355. }
  1356. tooltip += fileSize + "</b>";
  1357. // PROTOTYPE
  1358. // video thumbnails
  1359. if (href.match('hellshare'))
  1360. {
  1361. var thumbs;
  1362. thumbs = res.match(/http:\/\/static\d+\.helldata\.com\/thumbs(?:\/\d+){1,2}\/\d{1,2}"/g);
  1363. if (thumbs)
  1364. {
  1365. tooltip += '<br>';
  1366. var j = Math.min(thumbs.length, 9);
  1367. for (var i = 0; i < j; i++)
  1368. {
  1369. tooltip += '<img src="' + thumbs[i].replace('"',"") + '" width="' + TOOLTIP_THUMBWIDTH + 'px">';
  1370. }
  1371. warlcTooltip.style.minWidth = TOOLTIP_MAXWIDTH;
  1372. }
  1373. }
  1374. if (href.match('czshare'))
  1375. {
  1376. var thumbs;
  1377. thumbs = res.match(/src="http:\/\/www(\d+)\.czshare\.com\/images_velke\/\d+\.(\d+)\.jpeg/);
  1378. if (thumbs)
  1379. {
  1380. var thumbsServer = thumbs[1];
  1381. var thumbsId = thumbs[2];
  1382. tooltip += '<br>';
  1383. for (var i = 1; i < 9; i++)
  1384. {
  1385. tooltip += '<img src="http://www' + thumbsServer + '.czshare.com/images_velke/' + i + '.' + thumbsId + '.jpeg" width="' + TOOLTIP_THUMBWIDTH + 'px">';
  1386. }
  1387. warlcTooltip.style.minWidth = TOOLTIP_MAXWIDTH;
  1388. }
  1389. }
  1390. if (href.match('bezvadata'))
  1391. {
  1392. var thumbs;
  1393. thumbs = res.match(/http:\/\/nahledy\.bezvadata\.cz\/nahledy\/\d+\/\d+\/\d+_\d+_\d+x\d+_\w.jpg/g);
  1394. if (thumbs)
  1395. {
  1396. tooltip += '<br>';
  1397. var j = Math.min(thumbs.length, 9);
  1398. for (var i = 0; i < j; i++)
  1399. {
  1400. tooltip += '<img src="' + thumbs[i] + '" width="' + TOOLTIP_THUMBWIDTH + 'px">';
  1401. }
  1402. warlcTooltip.style.minWidth = TOOLTIP_MAXWIDTH;
  1403. }
  1404. }
  1405. link.warlc_tooltipcache = tooltip;
  1406. if (mouseoverLink == link.href) //mouse cursor is still over the link
  1407. {
  1408. warlcTooltip.innerHTML = tooltip;
  1409. }
  1410. }
  1411. });
  1412. }
  1413. }
  1414.  
  1415. function setVariables()
  1416. {
  1417. if (firstRun)
  1418. {
  1419. GM_log('First run, applying default settings...');
  1420. GM_setValue("Icon_set",1);
  1421. GM_setValue("Display_tooltip_info",true);
  1422. GM_setValue("Show_black_background_in_DL_links",false);
  1423. GM_setValue("Show_line_through_in_dead_links",false);
  1424. GM_setValue("Display_full_links_in_link_containers",false);
  1425. GM_setValue("Allow_spaces_in_DL_links",false);
  1426. GM_setValue("Autocheck",true);
  1427. GM_setValue("Enable_Anonymizer",false);
  1428. GM_setValue("Do_not_linkify_DL_links",false);
  1429. GM_setValue("Show_progress_stats",true);
  1430. GM_setValue("Keyboard_functions",true);
  1431. GM_setValue("Obsolete_file_hosts",false);
  1432. GM_setValue("Color_DL_links",true);
  1433. GM_setValue("Live_links_color","Green");
  1434. GM_setValue("Dead_links_color","#FF3300");
  1435. GM_setValue("Temp_unavailable_links_color","#F7EF09");
  1436. GM_setValue("Container_links_color","DarkKhaki");
  1437. GM_setValue("Premium_links_color","DeepPink");
  1438. GM_setValue("Ref_anonymize_service","http://hiderefer.com/?");
  1439. GM_setValue("Custom_rules",false);
  1440. GM_setValue("Custom_rules_text","");
  1441. GM_setValue("First_run", false);
  1442. }
  1443. //hidden settings
  1444. GM_setValue("Progress_box_pos_bottom", Progress_box_pos_bottom = GM_getValue("Progress_box_pos_bottom", 20));
  1445. GM_setValue("Progress_box_pos_right", Progress_box_pos_right = GM_getValue("Progress_box_pos_right", 10));
  1446. GM_setValue("Progress_box_opacity", Progress_box_opacity = GM_getValue("Progress_box_opacity", 85));
  1447. GM_setValue("Progress_box_background_color", Progress_box_background_color = GM_getValue("Progress_box_background_color", 'DimGray'));
  1448. GM_setValue("Progress_box_item_color", Progress_box_item_color = GM_getValue("Progress_box_item_color", 'DimGray'));
  1449. GM_setValue("Progress_box_refresh_rate", Progress_box_refresh_rate = GM_getValue("Progress_box_refresh_rate", 2000));
  1450. GM_setValue("Debug_mode", DEBUG_MODE = GM_getValue("Debug_mode", false));
  1451. //hidden settings end
  1452.  
  1453. Icon_set = GM_getValue("Icon_set", 1); //0 - no icons, 1 - cat paws, 2 - old RSLC style, 3 - New Icons,
  1454. Display_tooltip_info = GM_getValue("Display_tooltip_info", true);
  1455. Show_black_background_in_DL_links = GM_getValue("Show_black_background_in_DL_links", false);
  1456. Show_line_through_in_dead_links = GM_getValue("Show_line_through_in_dead_links", false);
  1457. Display_full_links_in_link_containers = GM_getValue("Display_full_links_in_link_containers", false);
  1458. Allow_spaces_in_DL_links = GM_getValue("Allow_spaces_in_DL_links", false);
  1459. Autocheck = GM_getValue("Autocheck", true);
  1460. Enable_Anonymizer = GM_getValue("Enable_Anonymizer", false);
  1461. Do_not_linkify_DL_links = GM_getValue("Do_not_linkify_DL_links", false);
  1462. Show_progress_stats = GM_getValue("Show_progress_stats", true);
  1463. Keyboard_functions = GM_getValue("Keyboard_functions", true);
  1464. Obsolete_file_hosts = GM_getValue("Obsolete_file_hosts", false);
  1465. Color_DL_links = GM_getValue("Color_DL_links", true);
  1466. Live_links_color = GM_getValue("Live_links_color", "Green");
  1467. Dead_links_color = GM_getValue("Dead_links_color", "#FF3300");
  1468. Temp_unavailable_links_color = GM_getValue("Temp_unavailable_links_color", "#F7EF09");
  1469. Container_links_color = GM_getValue("Container_links_color", "DarkKhaki");
  1470. Premium_links_color = GM_getValue("Premium_links_color", "DeepPink");
  1471. Ref_anonymize_service = GM_getValue("Ref_anonymize_service", "http://hiderefer.com/?");
  1472. Custom_rules = GM_getValue("Custom_rules", false);
  1473. Custom_rules_text = GM_getValue("Custom_rules_text", false);
  1474. }
  1475.  
  1476.  
  1477. // Delinkifies the links
  1478. // params:
  1479. // links -> list of links or link components (note they should be sufficiently unique to identify the link on page,
  1480. // e.g. 'uloz.to/xs68skxl8')
  1481. function delinkifySnapshot(snapshot)
  1482. {
  1483. var n = snapshot.snapshotLength;
  1484.  
  1485. while (n--)
  1486. {
  1487. thisLink = snapshot.snapshotItem(n);
  1488.  
  1489. var spanElm = document.createElement("span");
  1490. spanElm.className = thisLink.className;
  1491. spanElm.innerHTML = thisLink.innerHTML;
  1492.  
  1493. if (Display_tooltip_info)
  1494. {
  1495. spanElm.href = thisLink.href;
  1496. switch (thisLink.className){
  1497. case "alive_link": spanElm.addEventListener("mouseover", displayTooltipInfo, false); break
  1498. case "adead_link": spanElm.addEventListener("mouseover", displayTooltipError, false); break;
  1499. case "unava_link": //reserved
  1500. default:
  1501. }
  1502. }
  1503. thisLink.parentNode.replaceChild(spanElm, thisLink);
  1504. }
  1505. }
  1506.  
  1507. function processContainers()
  1508. {
  1509. var redirectorTypes = { "HTTP_302": 0,
  1510. "INNER_LINK": 1,
  1511. "THELOO_KATT_IT": 2,
  1512. "CING_BE": 3,
  1513. "ADF_LY": 4};
  1514. var cMultiloadTotal = 0;
  1515. var cMultiloadProcessed = 0;
  1516.  
  1517. var cMirrorcreatorComTotal = 0;
  1518. var cMirrorcreatorComProcessed = 0;
  1519.  
  1520. var hostRestrictionRegex = "";
  1521. var multiloadComRestriction = "";
  1522. var multiloadComRestrictionRegex;
  1523.  
  1524. //
  1525. //HANDLING REDIRECTORS START
  1526. //
  1527.  
  1528. var redirectors = new Array();
  1529. initRedirectors();
  1530.  
  1531. var redirectorsCount = redirectors.length;
  1532.  
  1533. if (redirectorsCount > 0)
  1534. {
  1535. var allRedirectorsRegex = "";
  1536.  
  1537. //linkify redirector links
  1538. for(var redirIdx = 0; redirIdx < redirectorsCount; redirIdx++)
  1539. {
  1540. allRedirectorsRegex += redirectors[redirIdx].linkRegex + "|";
  1541. }
  1542. allRedirectorsRegex = allRedirectorsRegex.replace(/\|$/, "");
  1543. linkify(allRedirectorsRegex);
  1544. //
  1545. //process redirector links
  1546. for(var redirIdx = 0; redirIdx < redirectorsCount; redirIdx++)
  1547. {
  1548. var redirectorsSnapshot = document.evaluate(redirectors[redirIdx].xpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  1549. redirectors[redirIdx].cTotal = redirectorsSnapshot.snapshotLength;
  1550.  
  1551. cLinksTotal += redirectors[redirIdx].cTotal;
  1552. var linkIdx = redirectors[redirIdx].cTotal;
  1553.  
  1554. while(linkIdx--)
  1555. {
  1556. switch(redirectors[redirIdx].type)
  1557. {
  1558. case redirectorTypes.HTTP_302: processRedirectorLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1559. case redirectorTypes.INNER_LINK: processRedirectorLinkEx(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1560. case redirectorTypes.THELOO_KATT_IT: processThelooKattItLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1561. case redirectorTypes.CING_BE: processCingBeLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1562. case redirectorTypes.ADF_LY: processAdfLyLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1563. default:
  1564. }
  1565. }
  1566. }
  1567. //
  1568. }
  1569.  
  1570. //HTTP_302
  1571. function processRedirectorLink(link, redirectorId)
  1572. {
  1573. link.className = 'container_link';
  1574.  
  1575. GM_xmlhttpRequest({
  1576. method: 'HEAD',
  1577. url: link.href,
  1578. headers: {
  1579. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1580. 'Accept': 'text/xml',
  1581. 'Referer': ""
  1582. },
  1583. onload: function(result) {
  1584. if (result.finalUrl.replace("https", "http") == link.href) // service hasn't redirected anywhere
  1585. {
  1586. processRedirectorLink(link, redirectorId);
  1587. }
  1588. else
  1589. {
  1590. redirectors[redirectorId].cProcessed++;
  1591. link.href = result.finalUrl;
  1592. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  1593. checkLinks('container_link');
  1594. }
  1595. },
  1596. onerror: function(result) { //probably caused by unresponsive filehosting
  1597. redirectors[redirectorId].cProcessed++;
  1598. link.className = 'unava_link';
  1599. cLinksProcessed++;
  1600. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  1601. checkLinks('container_link');
  1602. }
  1603. });
  1604. }
  1605. //INNER_LINK
  1606. function processRedirectorLinkEx(link, redirectorId)
  1607. {
  1608. link.className = 'container_link';
  1609. GM_xmlhttpRequest({
  1610. method: 'GET',
  1611. url: link.href,
  1612. headers: {
  1613. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1614. 'Accept': 'text/xml',
  1615. 'Referer': ""
  1616. },
  1617. onload: function(result) {
  1618. link.href = result.responseText.match(redirectors[redirectorId].innerLinkRegex)[1];
  1619. redirectors[redirectorId].cProcessed++;
  1620. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  1621. checkLinks('container_link');
  1622. }
  1623. });
  1624. }
  1625. //theloo.katt.it (wrapped safelinking.net)
  1626. function processThelooKattItLink(link, redirectorId)
  1627. {
  1628. link.className = 'container_link';
  1629. GM_xmlhttpRequest({
  1630. method: 'GET',
  1631. url: link.href,
  1632. headers: {
  1633. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1634. 'Accept': 'text/xml',
  1635. 'Referer': ""
  1636. },
  1637. onload: function(result) {
  1638. link.href = result.responseText.match(redirectors[redirectorId].innerLinkRegex)[1];
  1639. redirectors[redirectorId].cProcessed++;
  1640. //the inner links are safelinking.net links, so lets proceed with it
  1641. if (GM_getValue("Check_safelinking_dot_net_links", false))
  1642. {
  1643. processRedirectorLink(link, 0);
  1644. }
  1645. }
  1646. });
  1647. }
  1648. //adf.ly (adf.ly/go innerLink, locking mechanism)
  1649. function processAdfLyLink(link, redirectorId)
  1650. {
  1651. link.className = 'container_link';
  1652. GM_xmlhttpRequest({
  1653. method: 'GET',
  1654. url: link.href,
  1655. headers: {
  1656. 'User-agent': 'Mozilla/4.0',
  1657. 'Accept': 'text/xml',
  1658. 'Referer': ""
  1659. },
  1660. onload: function(result) {
  1661. if (result.finalUrl.match('/locked/'))
  1662. {
  1663. var delay = result.responseText.match(/countdown">(\d+)</)[1];
  1664. // GM_log(result.finalUrl + 'is locked. Repeating the request in ' + delay + 's.');
  1665. // setTimeout(function(){processAdfLyLink(link, redirectorId);}, delay * 1000);
  1666. }
  1667. else
  1668. {
  1669. // GM_log('Processing... ' + link.href);
  1670. // GM_log('Found...' + result.responseText.match(/\/go\/(\w+\/\w+)/)[1]);
  1671. var directLink = 'http://adf.ly' + result.responseText.match(/(\/go\/\w+\/\w+)/)[1];
  1672. var logToken = result.responseText.match(/flashy_(\w+)/)[1];
  1673. var users = result.responseText.match(/user=\d+&user2=\d+/);
  1674. //confirm advert
  1675. GM_xmlhttpRequest(
  1676. {
  1677. method: 'POST',
  1678. url: 'http://adf.ly/l.php',
  1679. headers: {
  1680. 'User-agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20100101 Firefox/13.0',
  1681. 'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
  1682. 'Referer': link.href
  1683. },
  1684. data: users + '&lt=' + logToken,
  1685. onload: function(result) {
  1686. //retrieve final url from .../go/... link
  1687. GM_xmlhttpRequest({
  1688. method: 'GET',
  1689. url: directLink,
  1690. headers: {
  1691. 'User-agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20100101 Firefox/13.0',
  1692. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  1693. 'Referer': link.href
  1694. },
  1695. onload: function(result) {
  1696. link.href = result.finalUrl;
  1697. redirectors[redirectorId].cProcessed++;
  1698. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  1699. checkLinks('container_link');
  1700. }
  1701. });
  1702. }
  1703. });
  1704. }
  1705. }
  1706. });
  1707. function proceedOK()
  1708. {
  1709. }
  1710. }
  1711. //MULTILOAD.CZ START
  1712. if (GM_getValue("Check_multiload_dot_cz_links", false))
  1713. {
  1714. var mlRegex = 'multiload\\.cz\/stahnout\/\\d+\/';
  1715. var mlXpath = "//a[contains(@href,'http://www.multiload.cz/stahnout')]";
  1716.  
  1717. hostRestrictionRegex = 'Upload se nezdařil|limit exceeded|probíhá reupload|';
  1718.  
  1719. if (GM_getValue("Check_hellshare_dot_com_links", false))
  1720. hostRestrictionRegex += 'hellshare|';
  1721. if (GM_getValue("Check_share_dash_rapid_dot_com_links", false))
  1722. hostRestrictionRegex += 'share-rapid\\.com|';
  1723. if (GM_getValue("Check_quickshare_dot_cz_links", false))
  1724. hostRestrictionRegex += 'quickshare\\.cz|';
  1725. if (GM_getValue("Check_czshare_dot_com_links", false))
  1726. hostRestrictionRegex += 'czshare\\.com|';
  1727. if (GM_getValue("Check_uloz_dot_to_links", false))
  1728. hostRestrictionRegex += 'uloz\\.to|';
  1729. if (GM_getValue("Check_hellspy_dot_com_links", false))
  1730. hostRestrictionRegex += 'hellspy|';
  1731. if (GM_getValue("Check_multishare_dot_cz_links", false))
  1732. hostRestrictionRegex += 'multishare\\.cz|';
  1733.  
  1734. hostRestrictionRegex = hostRestrictionRegex.replace(/\|$/, "");
  1735.  
  1736. linkify(mlRegex);
  1737.  
  1738. var mlSnapshot = document.evaluate(mlXpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  1739. var mlCount = mlSnapshot.snapshotLength;
  1740.  
  1741. if (mlCount > 0)
  1742. {
  1743. cMultiloadTotal += mlCount;
  1744.  
  1745. mlIdx = mlCount - 1;
  1746. do
  1747. {
  1748. processMultiloadLink(mlSnapshot.snapshotItem(mlIdx));
  1749. }
  1750. while(mlIdx--)
  1751. }
  1752. }
  1753. //MULTILOAD.CZ END
  1754.  
  1755.  
  1756.  
  1757. function processMultiloadLink(mlLink)
  1758. {
  1759. GM_xmlhttpRequest({
  1760. method: 'GET',
  1761. url: mlLink.href,
  1762. headers: {
  1763. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1764. 'Accept': 'text/xml',
  1765. 'Referer': ""
  1766. },
  1767. onload: function(result) {
  1768. var res = result.responseText;
  1769.  
  1770. var innerBlockRegex = /<p class="manager-linky">(?:.|\s)+?<\/p>/g;
  1771. 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;
  1772. var innerLinkRegex = /((?:Upload se nezdařil.+|https?:\/\/(?:.|\s)+|Právě probíhá reupload, buďte trpěliví\.\.\.))</;
  1773. var mlRestrictionRegex = new RegExp(hostRestrictionRegex,"g"); //what links should be displayed
  1774.  
  1775. var blocks; // blocks of links
  1776. var blockIdx;
  1777.  
  1778. mlLink.className = '';
  1779.  
  1780. if (result.status == 503) //service temporarily unavailable, repeat request in one second
  1781. {
  1782. setTimeout(function(){ processMultiloadLink(mlLink); }, 1000);
  1783. return;
  1784. }
  1785.  
  1786. blocks = res.match(innerBlockRegex);
  1787.  
  1788. if (blocks == null) //no links found, cancel further processing
  1789. {
  1790. mlLink.parentNode.appendChild(document.createTextNode(' | Požadovaný soubor neexistuje.'));
  1791. cMultiloadProcessed++;
  1792. if (cMultiloadTotal <= cMultiloadProcessed)
  1793. {
  1794. startBulkCheck('container_link');
  1795. start('container_link');
  1796. }
  1797. return;
  1798. }
  1799.  
  1800. blockIdx = blocks.length;
  1801.  
  1802. if (Display_full_links_in_link_containers)
  1803. {
  1804. var ulElm = document.createElement('ul');
  1805. ulElm.className = 'container_list'; //CSS smaller font, padding, margin, square style
  1806.  
  1807. while(blockIdx--)
  1808. {
  1809. if (blocks[blockIdx].match(mlRestrictionRegex) == null)
  1810. {
  1811. continue;
  1812. }
  1813.  
  1814. var innerLinks = blocks[blockIdx].match(innerLinksRegex);
  1815.  
  1816. var linkIdx = innerLinks.length;
  1817. while (linkIdx--)
  1818. {
  1819. var innerLink = innerLinks[linkIdx].match(innerLinkRegex)[1];
  1820.  
  1821. var liElm = document.createElement('li');
  1822.  
  1823. if (innerLink.match(/Upload se nezdařil|limit exceeded|probíhá reupload/))
  1824. {
  1825. liElm.appendChild(document.createTextNode(innerLink));
  1826. }
  1827. else
  1828. {
  1829. var aElm = document.createElement('a');
  1830. aElm.innerHTML = innerLink;
  1831. aElm.href = innerLink;
  1832. aElm.className = 'container_link';
  1833.  
  1834. liElm.appendChild(aElm);
  1835. }
  1836.  
  1837. ulElm.appendChild(liElm);
  1838. cLinksTotal++;
  1839. }
  1840. }
  1841.  
  1842. mlLink.parentNode.appendChild(ulElm);
  1843. }
  1844. else //compact view
  1845. {
  1846. mlLink.parentNode.appendChild(document.createTextNode("|"));
  1847.  
  1848. while(blockIdx--)
  1849. {
  1850. if (blocks[blockIdx].match(mlRestrictionRegex) == null)
  1851. {
  1852. continue;
  1853. }
  1854.  
  1855. var innerLinks = blocks[blockIdx].match(innerLinksRegex);
  1856.  
  1857. var linkIdx = innerLinks.length;
  1858. while (linkIdx--)
  1859. {
  1860. var innerLink = innerLinks[linkIdx].match(innerLinkRegex)[1];
  1861.  
  1862. if (innerLink.match(/Upload se nezdařil|limit exceeded|probíhá reupload/))
  1863. {
  1864. mlLink.parentNode.appendChild(document.createTextNode("----"));
  1865. }
  1866. else
  1867. {
  1868. var aElm = document.createElement('a');
  1869.  
  1870. var hostName = innerLink.match(/quickshare|hellshare|uloz\.to|multishare|hellspy|share\-rapid|czshare/);
  1871.  
  1872. //abbreviate host name
  1873. switch(hostName + ""){
  1874.  
  1875. case 'quickshare': aElm.innerHTML = 'QS'; break;
  1876. case 'hellshare': aElm.innerHTML = 'HS'; break;
  1877. case 'uloz.to': aElm.innerHTML = 'UT'; break;
  1878. case 'multishare': aElm.innerHTML = 'MS'; break;
  1879. case 'hellspy': aElm.innerHTML = 'hs'; break;
  1880. case 'share-rapid': aElm.innerHTML = 'SR'; break;
  1881. case 'czshare': aElm.innerHTML = 'CS'; break;
  1882. default: aElm.innerHTML = 'xx';
  1883.  
  1884. }
  1885.  
  1886. aElm.href = innerLink;
  1887. aElm.className = 'container_link';
  1888.  
  1889. mlLink.parentNode.appendChild(aElm);
  1890. cLinksTotal++;
  1891. }
  1892. }
  1893.  
  1894. mlLink.parentNode.appendChild(document.createTextNode("|")); //blocks delimiter
  1895.  
  1896. }
  1897. }
  1898.  
  1899. cMultiloadProcessed++;
  1900. if (cMultiloadTotal == cMultiloadProcessed) //start check when all ml links have been processed
  1901. {
  1902. if (Do_not_linkify_DL_links)
  1903. {
  1904. delinkifySnapshot(mlSnapshot);
  1905. }
  1906. startBulkCheck('container_link');
  1907. start('container_link');
  1908. }
  1909. }
  1910. });
  1911. }
  1912.  
  1913.  
  1914. if (GM_getValue("Check_mirrorcreator_dot_com_links", false))
  1915. {
  1916. var mcRegex = 'mirrorcreator\\.com/files/(\\w+)';
  1917. var mcXpath = "//a[contains(@href,'mirrorcreator.com/files')]";
  1918. var mcShortHostNames =
  1919. '?? 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';
  1920. // 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
  1921. //?????? depositfiles sendspace load.to ul.to storage.to uploadbox x7.to fileserve ?????? duckload filehook filepost jumbofiles glumbouploads
  1922. // zshare ?????? 2shared uploading ugotfile extabit oron eyvx uploadstation putlocker
  1923. // megaupload badongo megashare gamefront ifile ?????? letitbit ?????? ?????? filejungle megashares
  1924. // easy-share ?????? netload zippyshare ?????? filesonic turbobit enterupload ?????? filekeen wupload crocko fileflyer
  1925.  
  1926. linkify(mcRegex);
  1927.  
  1928. var mcSnapshot = document.evaluate(mcXpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  1929. var mcCount = mcSnapshot.snapshotLength;
  1930.  
  1931. cMirrorcreatorComTotal = mcCount;
  1932.  
  1933. if (mcCount > 0)
  1934. {
  1935. mcShortHostNames = mcShortHostNames.split(' ');
  1936. mcIdx = mcCount;
  1937. while(mcIdx--)
  1938. processMirrorcreatorLink(mcSnapshot.snapshotItem(mcIdx));
  1939. }
  1940.  
  1941. }
  1942. //MIRRORCREATOR.CZ END
  1943.  
  1944.  
  1945. //mirrorcreator.com checking works like this:
  1946. //The base URL is http://www.mirrorcreator.com/files/XXXXXXXX/filename_links
  1947. //the actual list of mirrors is at http://www.mirrorcreator.com/status.php?uid=XXXXXXXX
  1948. //the list contains links in the form of (http://www.mirrorcreator.com)/redirect/XXXXXXXX/1
  1949. //these redirector links are extracted with mcLinkBlockRegex and the pages loaded
  1950. //they contain the actual filehost links, which are extracted with mcHostRegex and displayed in a container list
  1951. function processMirrorcreatorLink(mcLink)
  1952. {
  1953. var mcURL = mcLink.href.match(mcRegex);
  1954. if(!mcURL || !mcURL[1]) return;
  1955. mcURL = 'http://www.mirrorcreator.com/status.php?uid=' + mcURL[1]; //link correction
  1956. GM_xmlhttpRequest({
  1957. method: 'GET',
  1958. url: mcURL,
  1959. headers: {
  1960. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1961. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*'+'/*;q=0.8',
  1962. 'Referer': ""
  1963. },
  1964. onload: function(mcLinkResult) {
  1965. var mcLinkRes = mcLinkResult.responseText;
  1966.  
  1967. var mcLinkBlockRegex = /(\/redirect\/\w+\/(\d+))/gi;
  1968. var mcHostRegex = /<div id="redirectlink">.*?<a href="([^"]+)"/;
  1969.  
  1970. var mcRedirectors;
  1971. var mcHostURLs = [], mcRedirectorIDs = [], mcHostsFound = 0, mcHostsRetrieved = 0, mcHostsToProcess = 0;
  1972. var m = mcLinkRes.match(mcLinkBlockRegex);
  1973. if (m)
  1974. mcHostsFound = m.length;
  1975. else
  1976. { //no files inside container
  1977. processMirrorcreatorFoundHosts(mcLink, []);
  1978. return;
  1979. }
  1980.  
  1981. var mcRedirectorURL, idx, timedOut = false;
  1982.  
  1983. var gmxhrFunc = function(mcRedirectorURL){ //Tampermonkey doesn't know neither this.url or result.finalUrl
  1984. GM_xmlhttpRequest({
  1985. method: 'GET',
  1986. url: mcRedirectorURL,
  1987. headers: {
  1988. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1989. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*'+'/*;q=0.8',
  1990. 'Referer': ""
  1991. },
  1992. onload: function(mcHostResult) {
  1993. if (timedOut) return; //too late, the list is already displayed
  1994. var mcHostRes = mcHostResult.responseText;
  1995. var mcHost = mcHostRes.match(mcHostRegex);
  1996. idx = mcHostURLs.indexOf(mcRedirectorURL);
  1997. if (mcHost && idx!=-1)
  1998. {
  1999. mcHostURLs[idx] = mcHost[1].replace(/^\s+|\s+$/g, '');
  2000. mcHostsRetrieved++;
  2001. mcHostsToProcess++;
  2002. if (mcHostsFound == mcHostsRetrieved) //this is the last one!
  2003. {
  2004. processMirrorcreatorFoundHosts(mcLink, mcHostURLs, mcRedirectorIDs);
  2005. mcHostsToProcess = 0;
  2006. }
  2007. }
  2008. } //end of onload: function
  2009. }); //end of GM_xmlhttpRequest call
  2010. };//end of var gmxhrFunc
  2011.  
  2012. while (mcRedirectors = mcLinkBlockRegex.exec(mcLinkRes))
  2013. { //load individual redirector pages
  2014. mcRedirectorURL = 'http://www.mirrorcreator.com' + mcRedirectors[1];
  2015. mcHostURLs.push(mcRedirectorURL);
  2016. mcRedirectorIDs.push(mcRedirectors[2]);
  2017. gmxhrFunc(mcRedirectorURL);
  2018. } //end of while block
  2019.  
  2020. setTimeout(function(){ //in case the last page fails to load and call the function
  2021. timedOut = true;
  2022. if (mcHostsToProcess)
  2023. processMirrorcreatorFoundHosts(mcLink, mcHostURLs);
  2024. }, 60000);
  2025.  
  2026. } //end of onload function
  2027. }); //end of GM_xmlhttpRequest call
  2028. } //end of function processMirrorcreatorLink
  2029.  
  2030.  
  2031. function processMirrorcreatorFoundHosts(mcLink, mcHostURLs, mcRedirectorIDs)
  2032. {
  2033. var aEl, liEl, docFrag;
  2034. var hostName, mcRedirectorID, trimFilename = false;
  2035. var i = mcHostURLs.length;
  2036. if (i == 0)
  2037. {
  2038. trimFilename = true;
  2039. mcLink.parentNode.insertBefore(document.createTextNode(' | No files inside container'), mcLink.nextSibling);
  2040. }
  2041. else
  2042. {
  2043. if (Display_full_links_in_link_containers)
  2044. { //full view
  2045. var wrapperEl = document.createElement('span');
  2046. wrapperEl.style.display = 'block';
  2047. var ulistEl = document.createElement('ul');
  2048. ulistEl.className = 'container_list';
  2049. while (i--)
  2050. {
  2051. liEl = document.createElement('li');
  2052. aEl = document.createElement('a');
  2053. aEl.appendChild(document.createTextNode(mcHostURLs[i]));
  2054. aEl.href = mcHostURLs[i];
  2055. aEl.className = 'container_link';
  2056. liEl.appendChild(aEl);
  2057. ulistEl.appendChild(liEl);
  2058. }
  2059. wrapperEl.appendChild(ulistEl);
  2060. mcLink.parentNode.replaceChild(wrapperEl, mcLink);
  2061. wrapperEl.insertBefore(mcLink, wrapperEl.firstChild);
  2062. }
  2063. else
  2064. { //compact view
  2065. trimFilename = true;
  2066. docFrag = document.createDocumentFragment();
  2067. docFrag.appendChild(document.createTextNode(' |'));
  2068. while (i--)
  2069. {
  2070. mcRedirectorID = mcRedirectorIDs[i];
  2071. hostName = mcHostURLs[i];
  2072. if (mcRedirectorID > mcShortHostNames.length-1 || mcShortHostNames[mcRedirectorID] == '??')
  2073. hostName = hostName.replace(/https?:\/\/(?:www\.)?([-0-9a-z]+(?:\.[-0-9a-z]+)?)\.[a-z]+\/.*/i, '$1').toUpperCase();
  2074. else
  2075. hostName = mcShortHostNames[mcRedirectorID];
  2076. aEl = document.createElement('a');
  2077. aEl.href = mcHostURLs[i];
  2078. aEl.className = 'container_link';
  2079. aEl.appendChild(document.createTextNode(hostName));
  2080. docFrag.appendChild(aEl);
  2081. docFrag.appendChild(document.createTextNode('|'));
  2082. }
  2083. mcLink.parentNode.insertBefore(docFrag, mcLink.nextSibling);
  2084. } //end of else block
  2085. } //end of else block
  2086. mcLink.className = '';
  2087. if (trimFilename)
  2088. mcLink.firstChild.nodeValue = mcLink.firstChild.nodeValue.replace(/(https?:\/\/[^\/]+\/files\/\w+\/).+/, '$1...');
  2089. cMirrorcreatorComProcessed++;
  2090. if (cMirrorcreatorComProcessed == cMirrorcreatorComTotal) //start check when all mc links have been processed
  2091. {
  2092. if (Do_not_linkify_DL_links)
  2093. delinkifySnapshot(mcSnapshot);
  2094. startBulkCheck('container_link');
  2095. start('container_link');
  2096. }
  2097. } //end of function processMirrorcreatorFoundHosts
  2098.  
  2099. containers_processed = true;
  2100.  
  2101.  
  2102. function initRedirectors()
  2103. {
  2104. function addRedirector(linkRegex, xpathEx, redirType, innerLinkRegex)
  2105. {
  2106. var redirector = new Object();
  2107. redirector.linkRegex = linkRegex;
  2108. redirector.xpath = xpathEx; //xpath expression
  2109. redirector.cProcessed = 0; //processed links count
  2110. redirector.cTotal = 0; //total links count
  2111. redirector.type = redirType; //redirectorTypes enum
  2112. redirector.innerLinkRegex = innerLinkRegex; //innerLink, null if unused
  2113. redirectors.push(redirector);
  2114. }
  2115. if (GM_getValue("Check_safelinking_dot_net_links", false))
  2116. {
  2117. addRedirector(
  2118. 'safelinking\\.net\/d\/\\w+',
  2119. "//a[contains(@href,'safelinking.net/d/')]",
  2120. redirectorTypes.HTTP_302,
  2121. null);
  2122. }
  2123. if (GM_getValue("Check_linksafe_dot_me_links", false))
  2124. {
  2125. addRedirector(
  2126. 'linksafe\\.me\/d\/\\w+',
  2127. "//a[contains(@href,'linksafe.me/d/')]",
  2128. redirectorTypes.HTTP_302,
  2129. null);
  2130. }
  2131. if (GM_getValue("Check_linkto_dot_net_links", false))
  2132. {
  2133. addRedirector(
  2134. 'linkto\\.net\/\\?\\w+\\.\\d+',
  2135. "//a[contains(@href,'linkto.net/?')]",
  2136. redirectorTypes.INNER_LINK,
  2137. /<iframe id="iframe" name="iframe" src="(.+?)\s*" frameborder="0"/);
  2138. }
  2139. if (GM_getValue("Check_theloo_dot_katt_dot_it_links", false))
  2140. {
  2141. addRedirector(
  2142. '(?:the)?loo\\.katt\\.it\/\\w+',
  2143. "//a[contains(@href,'loo.katt.it/')]",
  2144. redirectorTypes.THELOO_KATT_IT,
  2145. /Proceed to URL - <a href="(.+?)">/);
  2146. }
  2147. if (GM_getValue("Check_madlink_dot_sk_links", false))
  2148. {
  2149. addRedirector(
  2150. 'madlink\\.sk\/\\w+',
  2151. "//a[contains(@href,'madlink.sk/')]",
  2152. redirectorTypes.INNER_LINK,
  2153. /name="url" value="(.+?)\s*"\/>/);
  2154. }
  2155. if (GM_getValue("Check_adf_dot_ly_links", false))
  2156. {
  2157. addRedirector(
  2158. '(?:adf\\.ly|[u9]\\.bb|[qj]\\.gs)\/\\w+',
  2159. "//a[contains(@href,'adf.ly/') (@href,'u.bb/') or contains(@href,'9.bb/') or contains(@href,'q.gs/') or contains(@href,'j.gs/')]",
  2160. redirectorTypes.ADF_LY,
  2161. null);
  2162. }
  2163. if (GM_getValue("Check_redi_dot_re_links", false))
  2164. {
  2165. addRedirector(
  2166. 'redi\\.re\/\\w+',
  2167. "//a[contains(@href,'redi.re/')]",
  2168. redirectorTypes.HTTP_302,
  2169. null);
  2170. }
  2171. if (GM_getValue("Check_bit_dot_ly_links", false))
  2172. {
  2173. addRedirector(
  2174. 'bit\\.ly\/\\w+',
  2175. "//a[contains(@href,'bit.ly/')]",
  2176. redirectorTypes.HTTP_302,
  2177. null);
  2178. }
  2179. }
  2180.  
  2181. }
  2182.  
  2183. var bulkHosts = new Array();
  2184. var bulkHostNames = new Array();
  2185. function initBulkCheck()
  2186. {
  2187. /////////////////////////////
  2188. // Inits filehost object
  2189. /////////////////////////////
  2190. // params :
  2191. // hostName -- [string] host name (multiple domains separated with coma)
  2192. // linkRegex -- [string] link regex
  2193. // xpath -- [string] xpath expression to detect the link objects with evaluate
  2194. // blockSize -- [integer] max. number of links sent in one request, 50 if null
  2195. // corrMatch -- [regex] link correction regex (match), applied prior to corrRepl
  2196. // corrReplWhat -- [regex] link correction regex (replace)
  2197. // corrReplWith -- [string]
  2198. // splitSeparator -- [string] POSTDATA links separator, "\r\n" if null
  2199. //
  2200. // apiUrl -- [string] web linkchecker or API URL
  2201. // postData -- [string] POSTDATA of xmlhttprequest
  2202. // resLinkRegex -- [regex]
  2203. // resLiveRegex -- [regex] matches substrings containing live links in the request response
  2204. // resDeadRegex -- [regex] matches substrings containing dead links in the request response
  2205. // resUnavaRegex -- [regex] matches substrings containing unava links in the request response
  2206. // func -- [function] bulkcheck handler, genBulkCheck if null
  2207. //
  2208. //////////////////////////////
  2209. function addHost(hostName, linkRegex, xpath, blockSize, corrMatch, corrReplWhat, corrReplWith, splitSeparator,
  2210. apiUrl, postData, resLinkRegex, resLiveRegex, resDeadRegex, resUnavaRegex, func)
  2211. {
  2212. var fileHost = new Object();
  2213.  
  2214. fileHost.linkRegex = linkRegex;
  2215. fileHost.linkRegexObject = new RegExp(linkRegex, "");
  2216. fileHost.xpath = xpath;
  2217. fileHost.cFound = 0; //found links counter
  2218. fileHost.links = new Array(); //found links
  2219. if (blockSize == null)
  2220. {
  2221. fileHost.blockSize = 50;
  2222. }
  2223. else
  2224. {
  2225. fileHost.blockSize = blockSize;
  2226. }
  2227. fileHost.corrMatch = corrMatch;
  2228. fileHost.corrReplWhat = corrReplWhat;
  2229. fileHost.corrReplWith = corrReplWith;
  2230. if (splitSeparator == null)
  2231. {
  2232. fileHost.splitSeparator = "\r\n";
  2233. }
  2234. else
  2235. {
  2236. fileHost.splitSeparator = splitSeparator;
  2237. }
  2238. fileHost.apiUrl = apiUrl;
  2239. fileHost.postData = postData;
  2240. fileHost.resLinkRegex = resLinkRegex;
  2241. fileHost.resLiveRegex = resLiveRegex;
  2242. fileHost.resDeadRegex = resDeadRegex;
  2243. fileHost.resUnavaRegex = resUnavaRegex;
  2244. if (func == null)
  2245. {
  2246. fileHost.func = genBulkCheck;
  2247. }
  2248. else
  2249. {
  2250. fileHost.func = func;
  2251. }
  2252. bulkHosts.push(fileHost);
  2253. var names = hostName.split(',');
  2254. var i = names.length;
  2255. while(i--)
  2256. {
  2257. bulkHostNames[names[i]] = fileHost;
  2258. }
  2259. }
  2260. var genType1 = [
  2261. "migahost.com", "rodfile.com", "downloadani.me",
  2262. "rarefile.net",
  2263. "filesabc.com",
  2264. "180upload.com", "verzend.be",
  2265. "movreel.com",
  2266. "4up.me",
  2267. "file4safe.com", "filemac.com", "4upfiles.com",
  2268. "idup.in", "novafile.com", "longfiles.com",
  2269. "bitupload.com",
  2270. "uploadbaz.com"
  2271. ];
  2272. var genType2 = [ "queenshare.com",
  2273. "hulkload.com",
  2274. "amonshare.com", "edoc.com",
  2275. ];
  2276. //xfilesharing 1.0
  2277. function addGenericType1()
  2278. {
  2279. var i = genType1.length;
  2280. while(i--)
  2281. {
  2282. if (GM_getValue("Check_" + genType1[i].replace(/\./g, "_dot_").replace(/-/g, "_dash_") + "_links", false))
  2283. {
  2284. var regexSafe = genType1[i].replace(/\./g, "\\.").replace(/-/g, "\\-");
  2285. addHost(
  2286. genType1[i].match(/[\w-]+/)[0], //hostname
  2287. regexSafe + "\/\\w+", //linkregex
  2288. "//a[contains(@href,'" + genType1[i] + "/')]", //xpath
  2289. null, //blocksize
  2290. new RegExp("(http:\/\/(?:|www\\.)" + regexSafe + "\/\\w+)",""),//, //corrmatch
  2291. null, //corrreplwhat
  2292. null, //corrreplwith
  2293. null, //separator
  2294. "http://" + genType1[i] + "/checkfiles.html", //api url
  2295. "op=checkfiles&process=Check+URLs&list=", //postdata
  2296. new RegExp("(" + regexSafe + "\/\\w+)",""), //linkregex
  2297. new RegExp("green'>http:\/\/(?:|www\.)" + regexSafe + "\/\\w+","g"), //liveregex
  2298. new RegExp("red'>http:\/\/(?:|www\.)" + regexSafe + "\/\\w+","g"), //deadregex
  2299. new RegExp("orange'>http:\/\/(?:|www\.)" + regexSafe + "\/\\w+","g"), //unavaregex
  2300. null //function delegate
  2301. )
  2302. }
  2303. }
  2304. }
  2305. //xfilesharing 2.0
  2306. function addGenericType2()
  2307. {
  2308. var i = genType2.length;
  2309. while(i--)
  2310. {
  2311. if (GM_getValue("Check_" + genType2[i].replace(/\./g, "_dot_").replace(/-/g, "_dash_") + "_links", false))
  2312. {
  2313. var regexSafe = genType2[i].replace(/\./g, "\\.").replace(/-/g, "\\-");
  2314. addHost(
  2315. genType2[i].match(/[\w-]+/)[0], //hostname
  2316. regexSafe + "\/\\w+", //linkregex
  2317. "//a[contains(@href,'" + genType2[i] + "/')]", //xpath
  2318. null, //blocksize
  2319. new RegExp("(http:\/\/(?:|www\\.)" + regexSafe + "\/\\w+)",""),//, //corrmatch
  2320. null, //corrreplwhat
  2321. null, //corrreplwith
  2322. null, //separator
  2323. "http://www." + genType2[i] + "/?op=checkfiles", //api url
  2324. "op=checkfiles&process=Check+URLs&list=", //postdata
  2325. new RegExp("(" + regexSafe + "\/\\w+)",""), //linkregex
  2326. new RegExp(regexSafe + "\/\\w+.*?<\/td>\\s*<td style=\"color:green;\">","g"), //liveregex
  2327. new RegExp(regexSafe + "\/\\w+.*?<\/td>\\s*<td style=\"color:red;\">","g"), //deadregex
  2328. new RegExp(regexSafe + "\/\\w+.*?<\/td>\\s*<td style=\"color:orange;\">","g"), //unavaregex
  2329. null //function delegate
  2330. )
  2331. }
  2332. }
  2333. }
  2334. // TEMPLATE
  2335. // if (GM_getValue("Check__dot_com_links", false))
  2336. // {
  2337. // addHost(
  2338. // "", //hostname
  2339. // "", //linkregex
  2340. // "//a[contains(@href,'.com/')]", //xpath
  2341. // null, //blocksize
  2342. // null, //corrmatch
  2343. // null, //corrreplwhat
  2344. // null, //corrreplwith
  2345. // null, //separator
  2346. // "", //api url
  2347. // "", //postdata
  2348. // /()/, //linkregex
  2349. // //liveregex
  2350. // //deadregex
  2351. // //unavaregex
  2352. // null //function delegate
  2353. // )
  2354. // }
  2355. addGenericType1();
  2356. addGenericType2();
  2357.  
  2358. if (GM_getValue("Check_myvdrive_dot_com_links", false))
  2359. {
  2360. addHost(
  2361. "myvdrive,fileserving", //hostname
  2362. "(?:fileserving|myvdrive)\\.com\/files\/[\\w-]+", //linkregex
  2363. "//a[contains(@href,'fileserving.com/files') or contains(@href,'myvdrive.com/files')]", //xpath
  2364. null, //blocksize
  2365. null, //corrmatch
  2366. null, //corrreplwhat
  2367. null, //corrreplwith
  2368. null, //separator
  2369. "http://www.myvdrive.com/Public/linkchecker#", //api url
  2370. "links=", //postdata
  2371. /(?:fileserving|myvdrive)\.com\/(files\/\w+)/, //linkregex
  2372. /icon_file_check_valid"><\/span>\s*http:\/\/www\.(?:fileserving|myvdrive)\.com\/files\/[\w-]+/g, //liveregex
  2373. /icon_file_check_(?:removed|notvalid)"><\/span>\s*http:\/\/www\.(?:fileserving|myvdrive)\.com\/files\/[\w-]+/g, //deadregex
  2374. null, //unavaregex
  2375. null //function delegate
  2376. )
  2377. }
  2378. if (GM_getValue("Check_hackerbox_dot_org_links", false))
  2379. {
  2380. addHost(
  2381. "hackerbox", //hostname
  2382. "host\\.hackerbox\\.org\/\\w+", //linkregex
  2383. "//a[contains(@href,'host.hackerbox.org/')]", //xpath
  2384. null, //blocksize
  2385. /(http:\/\/host\.hackerbox\.org\/\w+)/, //corrmatch
  2386. null, //corrreplwhat
  2387. null, //corrreplwith
  2388. null, //separator
  2389. "http://host.hackerbox.org/checkfiles.html", //api url
  2390. "op=checkfiles&process=Check+URLs&list=", //postdata
  2391. /(host\.hackerbox\.org\/\w+)/, //linkregex
  2392. /green'>http:\/\/host\.hackerbox\.org\/\w+/g, //liveregex
  2393. /red'>http:\/\/host\.hackerbox\.org\/\w+/g, //deadregex
  2394. /orange'>http:\/\/host\.hackerbox\.org\/\w+/g, //unavaregex
  2395. null //function delegate
  2396. )
  2397. }
  2398. if (GM_getValue("Check_hellshare_dot_com_links", false))
  2399. {
  2400. addHost(
  2401. "hellshare", //hostname
  2402. "(?:|download\\.(?:cz\\.|en\\.|sk\\.|)|www\\.)hellshare\\.(?:com|sk|cz|pl|hu|COM|SK|CZ|PL|HU)\/[\\w-\\.]+\/(?:[\\w-\\.]+\/|)\\d{5,}", //linkregex
  2403. "//a[contains(@href,'hellshare.')]", //xpath
  2404. 48, //blocksize
  2405. null, //corrmatch
  2406. null, //corrreplwhat
  2407. null, //corrreplwith
  2408. null, //separator
  2409. null, //api url
  2410. null, //postdata
  2411. null, //linkregex
  2412. null, //liveregex
  2413. null, //deadregex
  2414. null, //unavaregex
  2415. hellshareBulkCheck //function delegate
  2416. )
  2417. }
  2418. if (GM_getValue("Check_ncrypt_dot_in_links", false))
  2419. {
  2420. addHost(
  2421. "ncrypt", //hostname
  2422. "ncrypt\\.in\/folder\\-\\w+", //linkregex
  2423. "//a[contains(@href,'ncrypt.in/folder')]", //xpath
  2424. 100000, //blocksize
  2425. null, //corrmatch
  2426. null, //corrreplwhat
  2427. null, //corrreplwith
  2428. null, //separator
  2429. null,
  2430. null,
  2431. null,
  2432. null,
  2433. null,
  2434. null,
  2435. ncryptBulkCheck //function delegate
  2436. )
  2437. }
  2438. if (GM_getValue("Check_geupload_dot_com_links", false))
  2439. {
  2440. addHost(
  2441. "geupload,lenfile", //hostname
  2442. "(?:geupload\\.com|lenfile\\.com)\/\\w+", //linkregex
  2443. "//a[contains(@href,'geupload.com/') or contains(@href,'lenfile.com/')]", //xpath
  2444. null, //blocksize
  2445. null, //corrmatch
  2446. null, //corrreplwhat
  2447. null, //corrreplwith
  2448. "\n", //separator
  2449. 'http://geupload.com/?op=checkfiles',
  2450. 'op=checkfiles&process=Check+URLs&list=',
  2451. />http:\/\/(?:geupload|lenfile)\.com\/(\w+)/,
  2452. />http:\/\/(?:geupload|lenfile)\.com\/\w+(?:[^>]+>)<td style=\"color\:green/g,
  2453. />http:\/\/(?:geupload|lenfile)\.com\/\w+(?:[^>]+>)<td style=\"color\:red/g,
  2454. null,
  2455. null
  2456. )
  2457. }
  2458. if (GM_getValue("Check_uploadrocket_dot_net_links", false))
  2459. {
  2460. addHost(
  2461. "uploadrocket", //hostname
  2462. "(?:uploadrocket\\.net)\/\\w+", //linkregex
  2463. "//a[contains(@href,'uploadrocket.net/')]", //xpath
  2464. null, //blocksize
  2465. null, //corrmatch
  2466. null, //corrreplwhat
  2467. null, //corrreplwith
  2468. "\n", //separator
  2469. 'http://uploadrocket.net/?op=checkfiles',
  2470. 'op=checkfiles&process=Check+URLs&list=',
  2471. /uploadrocket.net\/(\w+)/,
  2472. />http:\/\/uploadrocket.net\/\w+(?:[^>]+>)<td style="color:green/g,
  2473. />http:\/\/uploadrocket.net\/\w+(?:[^>]+>)<td style="color:red/g,
  2474. null,
  2475. null //function delegate
  2476. )
  2477. }
  2478. if (GM_getValue("Check_depositfiles_dot_com_links", false))
  2479. {
  2480. addHost(
  2481. "depositfiles,dfiles",
  2482. "(?:(?:depositfiles\\.(?:com|org|lt))|(?:dfiles\\.(?:ru|eu)))\/files\/|en/files\/\\w+",
  2483. "//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/')]",
  2484. 100000, //blocksize
  2485. null, //corrmatch
  2486. null, //corrreplwhat
  2487. null, //corrreplwith
  2488. null, //separator
  2489. null,
  2490. null,
  2491. null,
  2492. null,
  2493. null,
  2494. null,
  2495. depositfilesBulkCheck //function delegate
  2496. )
  2497. }
  2498. if (GM_getValue("Check_filepost_dot_com_links", false))
  2499. {
  2500. addHost(
  2501. "filepost,fp", //hostname
  2502. "(?:filepost\\.com\/files|fp\\.io)\/\\w+", //linkregex
  2503. "//a[contains(@href,'filepost.com/files/') or contains(@href,'fp.io/')]", //xpath
  2504. null, //blocksize
  2505. null, //corrmatch
  2506. null, //corrreplwhat
  2507. null, //corrreplwith
  2508. "\n", //separator
  2509. 'http://filepost.com/files/checker/?JsHttpRequest=0-xml',
  2510. 'urls=',
  2511. /\\\/files\\\/(\w+)/,
  2512. />http:\\\/\\\/filepost\.com\\\/files\\\/\w+(?:[^>]+>){5}(?:\\n|\\t)+<span class=\\"v\\"/g,
  2513. />http:\\\/\\\/filepost\.com\\\/files\\\/\w+(?:[^>]+>){5}(?:\\n|\\t)+<span class=\\"x\\"/g,
  2514. null,
  2515. null //function delegate
  2516. )
  2517. }
  2518. if (GM_getValue("Check_filesflash_dot_com_links", false))
  2519. {
  2520. addHost(
  2521. "filesflash", //hostname
  2522. "filesflash\\.com\/\\w+", //linkregex
  2523. "//a[contains(@href,'filesflash.com')]", //xpath
  2524. null, //blocksize
  2525. null, //corrmatch
  2526. /http:\/\//, //corrreplwhat
  2527. '', //corrreplwith
  2528. null, //separator
  2529. 'http://filesflash.com/checklinks.php',
  2530. 'submit=Go&links=',
  2531. /filesflash\.com\/(\w+)/,
  2532. /<td>filesflash\.com\/\w+<\/td>\s*<td>Available/g,
  2533. /<td>filesflash\.com\/\w+<\/td>\s*<td>(?:Invalid|Deleted|Expired|Banned)?<\/td>/g,
  2534. null,
  2535. null //function delegate
  2536. )
  2537. }
  2538. if (GM_getValue("Check_jumbofiles_dot_com_links", false))
  2539. {
  2540. addHost(
  2541. "jumbofiles", //hostname
  2542. "jumbofiles\\.com\/\\w+", //linkregex
  2543. "//a[contains(@href,'jumbofiles.com/')]", //xpath
  2544. null, //blocksize
  2545. /(http:\/\/(?:|www\.)jumbofiles\.com\/\w+)/, //corrmatch
  2546. null, //corrreplwhat
  2547. null, //corrreplwith
  2548. null, //separator
  2549. "http://jumbofiles.com/checkfiles.html", //api url
  2550. "op=checkfiles&process=Check+URLs&list=", //postdata
  2551. /(jumbofiles\.com\/\w+)/, //linkregex
  2552. /blue'>http:\/\/(?:|www\.)jumbofiles\.com\/\w+/g, //liveregex
  2553. /red'>http:\/\/(?:|www\.)jumbofiles\.com\/\w+/g, //deadregex
  2554. /orange'>http:\/\/(?:|www\.)jumbofiles\.com\/\w+/g, //unavaregex
  2555. null //function delegate
  2556. )
  2557. }
  2558. if (GM_getValue("Check_edisk_dot_cz_links", false))
  2559. {
  2560. addHost(
  2561. "edisk", //hostname
  2562. "(?:(?:muj|data)\\d*\\.|)edisk\\.(?:cz|sk|eu)\/(?:|(?:cz|sk|en|pl)\/)", //linkregex
  2563. "//a[contains(@href,'edisk.')]", //xpath
  2564. null, //blocksize
  2565. null, //corrmatch
  2566. /edisk\.\w{2}\/(?:|\w{2}\/)stahni/, //corrreplwhat
  2567. 'edisk.cz/stahni', //corrreplwith
  2568. null, //separator
  2569. 'http://www.edisk.cz/zkontrolovat-odkazy',
  2570. 'submitBtn=Zkontrolovat&checkFiles=',
  2571. /((?:download|stahn(?:i|out-soubor))\/\d+)/,
  2572. /"ano"\/>\s*<\/td>\s*<td>\s*http:\/\/.+/g,
  2573. /"ne"\/>\s*<\/td>\s*<td>\s*http:\/\/.+/g,
  2574. null,
  2575. null //function delegate
  2576. )
  2577. }
  2578. if (GM_getValue("Check_bezvadata_dot_cz_links", false))
  2579. {
  2580. GM_xmlhttpRequest( //age check skip
  2581. {
  2582. method: 'POST',
  2583. url: 'http://bezvadata.cz/vyhledavani/souhlas-zavadny-obsah',
  2584. headers: {
  2585. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  2586. 'Content-type': 'application/x-www-form-urlencoded',
  2587. 'Referer': ""
  2588. }
  2589. });
  2590. addHost(
  2591. "bezvadata", //hostname
  2592. "(?:beta\\.|)bezvadata\.cz\/stahnout\/\\d+\\w+", //linkregex
  2593. "//a[contains(@href,'bezvadata.cz')]", //xpath
  2594. null, //blocksize
  2595. null, //corrmatch
  2596. null, //corrreplwhat
  2597. null, //corrreplwith
  2598. null, //separator
  2599. 'http://bezvadata.cz/nastroje/kontrola-odkazu?do=kontrolaOdkazuForm-submit',
  2600. 'zkontrolovat=Zkontrolovat&odkazy=',
  2601. /(bezvadata\.cz\/stahnout\/\d+)/,
  2602. /bezvadata\.cz\/stahnout\/.+?<\/td>\s*<td style="background-color: #d9ffb2/g,
  2603. /bezvadata\.cz\/stahnout\/.+?<\/td>\s*<td style="background-color: #ffb2b2/g,
  2604. null,
  2605. null //function delegate
  2606. )
  2607. }
  2608. if (GM_getValue("Check_linkcrypt_dot_ws_links", false))
  2609. {
  2610. addHost(
  2611. "linkcrypt", //hostname
  2612. "linkcrypt\\.ws\/dir\/\\w+", //linkregex
  2613. "//a[contains(@href,'linkcrypt.ws/dir')]", //xpath
  2614. 100000, //blocksize
  2615. null, //corrmatch
  2616. null, //corrreplwhat
  2617. null, //corrreplwith
  2618. null, //separator
  2619. null,
  2620. null,
  2621. null,
  2622. null,
  2623. null,
  2624. null,
  2625. linkcryptBulkCheck //function delegate
  2626. )
  2627. }
  2628. if (GM_getValue("Check_linksave_dot_in_links", false))
  2629. {
  2630. addHost(
  2631. "linksave", //hostname
  2632. "linksave\\.in\/\\w+", //linkregex
  2633. "//a[contains(@href,'linksave.in')]", //xpath
  2634. 100000, //blocksize
  2635. null, //corrmatch
  2636. null, //corrreplwhat
  2637. null, //corrreplwith
  2638. null, //separator
  2639. null,
  2640. null,
  2641. null,
  2642. null,
  2643. null,
  2644. null,
  2645. linksaveBulkCheck //function delegate
  2646. )
  2647. }
  2648. if (GM_getValue("Check_videobb_dot_com_links", false))
  2649. {
  2650. addHost(
  2651. "videobb", //hostname
  2652. "videobb\\.com\/(?:video\/|watch_video\\.php\\?v=)\\w+", //linkregex
  2653. "//a[contains(@href,'videobb.com')]", //xpath
  2654. null, //blocksize
  2655. null, //corrmatch
  2656. /watch_video\.php\?v=/, //corrreplwhat
  2657. 'video/', //corrreplwith
  2658. null, //separator
  2659. 'http://www.videobb.com/link_checker.php',
  2660. 'links=',
  2661. /videobb\.com\/video\/(\w+)/,
  2662. /<td>http:\/\/(?:www\.|)videobb.com\/video\/\w+<\/td>\s+<td>.+?<\/td>\s+<td>\d+:\d+<\/td>\s+<td>Available/g,
  2663. /<td>http:\/\/(?:www\.|)videobb.com\/video\/\w+<\/td>\s+<td><\/td>\s+<td>N\/A<\/td>\s+<td>Not Available/g,
  2664. null,
  2665. null //function delegate
  2666. )
  2667. }
  2668. if (GM_getValue("Check_cramit_dot_in_links", false))
  2669. {
  2670. addHost(
  2671. "cramit,cramitin", //hostname
  2672. "cramit(?:\\.in|in\\.net)\/", //linkregex
  2673. "//a[contains(@href,'cramitin.net') or contains(@href,'cramit.in')]", //xpath
  2674. null, //blocksize
  2675. null, //corrmatch
  2676. null, //corrreplwhat
  2677. null, //corrreplwith
  2678. null, //separator
  2679. 'http://cramit.in/checkfiles.html',
  2680. 'op=checkfiles&process=CHECK+URL%27S&list=',
  2681. /(cramit(?:\.in|in\.net)\/\w+)/,
  2682. /green>http:\/\/(?:www\.|)cramit(?:\.in|in\.net)\/\w+/g,
  2683. /red'>http:\/\/(?:www\.|)cramit(?:\.in|in\.net)\/\w+/g,
  2684. /orange'>http:\/\/(?:www\.|)cramit(?:\.in|in\.net)\/\w+/g,
  2685. null //function delegate
  2686. )
  2687. }
  2688. /* if (GM_getValue("Check_turbobit_dot_net_links", false))
  2689. {
  2690. addHost(
  2691. "turbobit", //hostname
  2692. "turbobit\\.(?:net|pl)\/(?:\\w+\/|).+?\\.html", //linkregex
  2693. "//a[contains(@href,'turbobit.')]", //xpath
  2694. null, //blocksize
  2695. /(turbobit\.(?:net|pl)\/(?:\w+\/|).+?\.html)/, //corrmatch
  2696. null, //corrreplwhat
  2697. null, //corrreplwith
  2698. "\n", //separator
  2699. 'http://turbobit.net/linkchecker/csv',
  2700. 'links_to_check=',
  2701. /(turbobit\.(?:net|pl)\/\w+)/,
  2702. /turbobit\.(?:net|pl)\/.*?, 1/g,
  2703. /turbobit\.(?:net|pl)\/.*?, 0/g,
  2704. null,
  2705. null //function delegate
  2706. )
  2707. } */
  2708. if (GM_getValue("Check_filerio_dot_com_links", false))
  2709. {
  2710. addHost(
  2711. "filekeen,filerio", //hostname
  2712. //"file(?:keen|rio)\\.(?:com|in)\/\\w+\/.", //linkregex
  2713. "file(?:keen|rio)\\.(?:com|in)\/\\w+", //linkregex
  2714. "//a[contains(@href,'filekeen.com') or contains(@href,'filerio.')]", //xpath
  2715. null, //blocksize
  2716. null, //corrmatch
  2717. null, //corrreplwhat
  2718. null, //corrreplwith
  2719. null, //separator
  2720. 'http://filerio.in/checkfiles.html',
  2721. 'op=checkfiles&process=Check+URLs&list=',
  2722. /(file(?:keen|rio)\.(?:com|in)\/\w+)/,
  2723. /green'>http:\/\/(?:www\.|)file(?:keen|rio)\.(?:com|in)\/\w+/g,
  2724. /red'>http:\/\/(?:www\.|)file(?:keen|rio)\.(?:com|in)\/\w+/g,
  2725. /orange'>http:\/\/(?:www\.|)file(?:keen|rio)\.(?:com|in)\/\w+/g,
  2726. null //function delegate
  2727. )
  2728. }
  2729. if (GM_getValue("Check_share_dash_online_dot_biz_links", false))
  2730. {
  2731. addHost(
  2732. "share-online,egoshare", //hostname
  2733. "(?:share-online\\.biz|egoshare\\.com)\/(?:dl\/|download\\.php\\?id=)", //linkregex
  2734. "//a[contains(@href,'share-online.biz') or contains(@href,'egoshare.com')]", //xpath
  2735. null, //blocksize
  2736. /http:\/\/(?:www\.)?(?:share-online\.biz|egoshare\.com)\/d(?:l\/|ownload\.php\?id=)(\w+)/, //corrmatch
  2737. null, //corrreplwhat
  2738. null, //corrreplwith
  2739. "\n", //separator
  2740. 'http://api.share-online.biz/linkcheck.php',
  2741. 'links=',
  2742. /(\w+);(?:OK|NOTFOUND|DELETED)/,
  2743. /\w+;OK/g,
  2744. /\w+;(?:NOTFOUND|DELETED)/g,
  2745. null,
  2746. null //function delegate
  2747. )
  2748. }
  2749. if (GM_getValue("Check_quickshare_dot_cz_links", false))
  2750. {
  2751. addHost(
  2752. "quickshare", //hostname
  2753. "quickshare\\.cz\/stahnout-soubor\/\\d+", //linkregex
  2754. "//a[contains(@href,'quickshare.cz')]", //xpath
  2755. null, //blocksize
  2756. null, //corrmatch
  2757. null, //corrreplwhat
  2758. null, //corrreplwith
  2759. null, //separator
  2760. 'http://www.quickshare.cz/nastroje/link-checker',
  2761. 'linky=',
  2762. /quickshare\.cz\/stahnout-soubor\/(\d+(?::\w+)?)/,
  2763. /quickshare\.cz\/stahnout-soubor\/\d+(?::[\w\-.+$!*\/()\[\]\',~%?:@#&=\\]+)?\s*<\/a><\/td><td><img src="\/img\/ok\.gif/g,
  2764. /quickshare\.cz\/stahnout-soubor\/\d+(?::[\w\-.+$!*\/()\[\]\',~%?:@#&=\\]+)?\s*<\/td><td><img src="\/img\/nenalezeno\.gif/g,
  2765. null,
  2766. null //function delegate
  2767. )
  2768. }
  2769. if (GM_getValue("Check_netload_dot_in_links", false))
  2770. {
  2771. addHost(
  2772. "netload", //hostname
  2773. "netload\\.in\/datei\\w{10}", //linkregex
  2774. "//a[contains(@href,'netload.in')]", //xpath
  2775. null, //blocksize
  2776. null, //corrmatch
  2777. null, //corrreplwhat
  2778. null, //corrreplwith
  2779. "\n", //separator
  2780. "http://api.netload.in/index.php?id=2", //api url
  2781. "send=Absenden&links=", //postdata
  2782. /(\w+);/, //linkregex
  2783. /\w{10,};.+?;.+?;online/g, //liveregex
  2784. /\w{10,};.+?;.+?;offline/g, //deadregex
  2785. null, //unavaregex
  2786. //netloadBulkCheck //function delegate //disabled on probation since 1.2.4.5
  2787. null //function delegate
  2788. )
  2789. }
  2790. if (GM_getValue("Check_oboom_dot_com_links", false))
  2791. {
  2792. addHost(
  2793. "oboom", //hostname
  2794. "oboom\\.com\/#?\\w{8}", //linkregex
  2795. "//a[contains(@href,'oboom.com/')]", //xpath
  2796. null, //blocksize
  2797. /oboom\.com\/#?(\w{8})/, //corrmatch
  2798. null, //corrreplwhat
  2799. null, //corrreplwith
  2800. null, //separator
  2801. null,
  2802. null,
  2803. null,
  2804. null, //liveregex
  2805. null, //deadregex
  2806. null,
  2807. oboomBulk //function delegate
  2808. )
  2809. }
  2810. if (GM_getValue("Check_mega_dot_nz_links", false))
  2811. {
  2812. addHost(
  2813. "mega",
  2814. "mega(?:\\.co)?\\.nz\/#!\\w+",
  2815. "//a[contains(@href,'mega.co.nz/') or contains(@href,'mega.nz/')]",
  2816. 100000, //blocksize
  2817. null, //corrmatch
  2818. null, //corrreplwhat
  2819. null, //corrreplwith
  2820. null, //separator
  2821. null,
  2822. null,
  2823. null,
  2824. null,
  2825. null,
  2826. null,
  2827. megaBulkCheck //function delegate
  2828. )
  2829. }
  2830.  
  2831. //the same as GenType2, except api url is 'https://' instead of 'http://www.' and corrmatch is not??? needed
  2832.  
  2833. if (GM_getValue("Check_extabit_dot_com_links", false))
  2834. {
  2835. addHost(
  2836. "extabit", //hostname
  2837. "extabit\\.com\/file\/\\w+", //linkregex
  2838. "//a[contains(@href,'extabit.com')]", //xpath
  2839. null, //blocksize
  2840. null, //corrmatch
  2841. null, //corrreplwhat
  2842. null, //corrreplwith
  2843. "\n", //separator
  2844. "http://extabit.com/linkchecker.jsp", //api url
  2845. "url=", //postdata
  2846. /extabit\.com\/(file\/\w+)/, //linkregex
  2847. /extabit\.com\/file\/\w+\/[^<]+<\/a><\/td>\s*<td class="status"><span class="status_green">/g, //liveregex
  2848. /extabit\.com\/file\/\w+\/[^<]+<\/a><\/td>\s*<td class="status"><span class="status_red">/g, //deadregex
  2849. /extabit\.com\/file\/\w+\/[^<]+<\/a><\/td>\s*<td class="status"><span class="status_yellow">/g, //unavaregex
  2850. extabitBulkCheck //function delegate
  2851. )
  2852. }
  2853. if (GM_getValue("Check_junocloud_dot_me_links", false))
  2854. {
  2855. addHost(
  2856. "junocloud", //hostname
  2857. "junocloud\\.me\/\\w+", //linkregex
  2858. "//a[contains(@href,'junocloud.me')]", //xpath
  2859. null, //blocksize
  2860. null, //corrmatch
  2861. null, //corrreplwhat
  2862. null, //corrreplwith
  2863. "\n", //separator
  2864. "http://junocloud.me/checkfiles.html", //api url
  2865. "op=checkfiles&process=Check+URLs&list=", //postdata
  2866. /(junocloud\.me\/\w+)/, //linkregex
  2867. /<a href="http:\/\/junocloud\.me\/\w+[^<]+<\/a>\s*<span style="color: green/g, //liveregex
  2868. /<a href="http:\/\/junocloud\.me\/\w+[^<]+<\/a>\s*<span style="color: red/g, //deadregex
  2869. null, //unavaregex
  2870. null //function delegate
  2871. )
  2872. }
  2873. if (GM_getValue("Check_webshare_dot_cz_links", false))
  2874. {
  2875. addHost(
  2876. "webshare", //hostname
  2877. "webshare\.cz\/(?:(?:#/)?file/\\w+|\\w+-.*)", //linkregex
  2878. "//a[contains(@href,'webshare.cz')]", //xpath
  2879. 100000, //blocksize
  2880. null, //corrmatch
  2881. null, //corrreplwhat
  2882. null, //corrreplwith
  2883. null, //separator
  2884. null, //api url
  2885. null, //postdata
  2886. null, //linkregex
  2887. null, //liveregex
  2888. null, //deadregex
  2889. null, //unavaregex
  2890. webshareBulkCheck //function delegate
  2891. )
  2892. }
  2893. /////////////////////////////
  2894. // Common function delegate to send links to get checked by host linkchecker
  2895. /////////////////////////////
  2896. // If you define a new delegate, you may use following properties
  2897. // this.links [array] array of strings (link blocks). The links in each block separated with host.splitSeparator.
  2898. // this.apiUrl [string] API or web linkchecker URL
  2899. // this.postData [string] POSTDATA for POST request
  2900. // this.resLiveRegex [regex] matches live substrings in the request response
  2901. // this.resDeadRegex [regex] matches dead substrings in the request response
  2902. // this.resUnavaRegex [regex] matches unava substrings in the request response (the regex is often null!)
  2903. //
  2904. // this.resLinkRegex [regex] matches links further passed to DisplayTheCheckedLinks
  2905. //
  2906. // See the code below for standard bulkcheck handling reference.
  2907. //////////////////////////////
  2908. function genBulkCheck()
  2909. {
  2910. var blockIdx = this.links.length;
  2911. while (blockIdx--)
  2912. {
  2913. postRequest(this.apiUrl, this.postData, this.links[blockIdx],
  2914. this.resLinkRegex, this.resLiveRegex, this.resDeadRegex, this.resUnavaRegex);
  2915. }
  2916. function postRequest(api, postData, links, linkRegex, liveRegex, deadRegex, unavaRegex)
  2917. {
  2918. GM_xmlhttpRequest(
  2919. {
  2920. method: 'POST',
  2921. url: api,
  2922. headers: {
  2923. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  2924. 'Content-type': 'application/x-www-form-urlencoded',
  2925. 'Referer': api,
  2926. 'X-Requested-With': 'XMLHttpRequest'
  2927. },
  2928. data: postData + encodeURIComponent(links),
  2929. onload: function (result)
  2930. {
  2931. var res = result.responseText;
  2932. // GM_log(res);
  2933. var i;
  2934.  
  2935. var livelinks = res.match(liveRegex);
  2936. var deadlinks = res.match(deadRegex);
  2937. // GM_log(livelinks);
  2938. // GM_log(deadlinks);
  2939. if (livelinks != null)
  2940. {
  2941. i = livelinks.length - 1;
  2942. do
  2943. {
  2944. livelinks[i] = livelinks[i].match(linkRegex)[1];
  2945. }
  2946. while (i--);
  2947. DisplayTheCheckedLinks(livelinks, 'alive_link');
  2948. }
  2949.  
  2950. if (deadlinks != null)
  2951. {
  2952. i = deadlinks.length - 1;
  2953. do
  2954. {
  2955. deadlinks[i] = deadlinks[i].match(linkRegex)[1];
  2956. }
  2957. while (i--);
  2958. DisplayTheCheckedLinks(deadlinks, 'adead_link');
  2959. }
  2960.  
  2961. if (unavaRegex != null)
  2962. {
  2963. var unavalinks = res.match(unavaRegex);
  2964. if (unavalinks)
  2965. {
  2966. i = unavalinks.length - 1;
  2967. do
  2968. {
  2969. unavalinks[i] = unavalinks[i].match(linkRegex)[1];
  2970. }
  2971. while (i--);
  2972. DisplayTheCheckedLinks(unavalinks, 'unava_link');
  2973. }
  2974. }
  2975. }
  2976. });
  2977. }
  2978. }
  2979. //specialized bulkchecking handlers follow
  2980. function webshareBulkCheck()
  2981. {
  2982. var arr = this.links[0].split("\r\n");
  2983. var i = arr.length;
  2984. while(i--)
  2985. {
  2986. postRequest(arr[i]);
  2987. }
  2988. //function postRequest(api, postData, links, linkRegex, liveRegex, deadRegex, unavaRegex)
  2989. function postRequest(wsLink)
  2990. {
  2991. var id = wsLink.match(/webshare\.cz\/(?:(?:#\/)?file\/)?(\w+)/)[1];
  2992. GM_xmlhttpRequest(
  2993. {
  2994. method: 'POST',
  2995. url: "http://webshare.cz/api/file_info/",
  2996. headers: {
  2997. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  2998. 'Content-type': 'application/x-www-form-urlencoded',
  2999. 'Referer': "",
  3000. },
  3001. data: "wst=&ident=" + id,
  3002. onload: function (result)
  3003. {
  3004. var res = result.responseText;
  3005. if (res.match(/<name>.+?<\/name>/))
  3006. {
  3007. DisplayTheCheckedLinks([id], 'alive_link');
  3008. }
  3009. else
  3010. {
  3011. DisplayTheCheckedLinks([id], 'adead_link');
  3012. }
  3013. }
  3014. });
  3015. }
  3016. }
  3017. //like genBulkCheck, but extabit linkchecker only works when logged in. If not logged in, non-bulk checking has to be used.
  3018. //extabit also doesn't like requests in fast succession, so some delays are added.
  3019. function extabitBulkCheck()
  3020. {
  3021. var timeoutDelay = 0;
  3022. var blockIdx = this.links.length;
  3023. while (blockIdx--)
  3024. {
  3025. postRequest(this.apiUrl, this.postData, this.links[blockIdx],
  3026. this.resLinkRegex, this.resLiveRegex, this.resDeadRegex, this.resUnavaRegex);
  3027. }
  3028. function postRequest(api, postData, links, linkRegex, liveRegex, deadRegex, unavaRegex)
  3029. {
  3030. GM_xmlhttpRequest(
  3031. {
  3032. method: 'POST',
  3033. url: api,
  3034. headers: {
  3035. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  3036. 'Content-type': 'application/x-www-form-urlencoded',
  3037. 'Referer': api,
  3038. 'X-Requested-With': 'XMLHttpRequest'
  3039. },
  3040. data: postData + encodeURIComponent(links),
  3041. onload: function (result)
  3042. {
  3043. var res = result.responseText;
  3044. if (/id="registration_header"/.test(res)) //not logged in, have to use non-bulk
  3045. {
  3046. function geturlfunc(link, tryID) //basically the geturl function with some changes (compacted, displaythecheckedlinkS, multiple tries)
  3047. {
  3048. //GM_log(tryID + ': ' + link);
  3049. GM_xmlhttpRequest(
  3050. {
  3051. method: 'GET',
  3052. url: link,
  3053. 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': ""},
  3054. onload: function(result2)
  3055. {
  3056. var res2 = result2.responseText;
  3057. var res2Status = result.status;
  3058. if (/download-file-btn/.test(res2)) {DisplayTheCheckedLinks([link], 'alive_link'); return;}
  3059. if (/Search mirrors|id="mirrb"/.test(res2) || res2Status==404) {DisplayTheCheckedLinks([link], 'adead_link'); return;}
  3060. if (/currently unavailable|temporarily unavailable|disponible en estos momentos|vorläufig unerreichbar|Файл временно недоступен/.test(res2) || res2Status == 500 || res2Status == 503)
  3061. {
  3062. if (tryID < 7)
  3063. setTimeout(function(){geturlfunc(link,tryID+1)}, tryID * 1000 + (Math.random() * tryID * 2000));
  3064. else
  3065. {DisplayTheCheckedLinks([link], 'unava_link'); return;}
  3066. }
  3067. }
  3068. });
  3069. }
  3070. //split the hrefs and check them one by one
  3071. GM_log('Using slow extabit.com link checking. Log in to extabit to use fast bulk checking.');
  3072. links = links.split('\n');
  3073. var i = links.length;
  3074. while (i--)
  3075. {
  3076. if (links[i])
  3077. {
  3078. (function(i){setTimeout(function(){geturlfunc(links[i],1)}, timeoutDelay);})(i);
  3079. timeoutDelay += 500;
  3080. }
  3081. }
  3082. return;
  3083. }
  3084. var i;
  3085.  
  3086. var livelinks = res.match(liveRegex);
  3087. var deadlinks = res.match(deadRegex);
  3088. if (livelinks != null)
  3089. {
  3090. i = livelinks.length - 1;
  3091. do
  3092. {
  3093. livelinks[i] = livelinks[i].match(linkRegex)[1];
  3094. }
  3095. while (i--);
  3096. DisplayTheCheckedLinks(livelinks, 'alive_link');
  3097. }
  3098.  
  3099. if (deadlinks != null)
  3100. {
  3101. i = deadlinks.length - 1;
  3102. do
  3103. {
  3104. deadlinks[i] = deadlinks[i].match(linkRegex)[1];
  3105. }
  3106. while (i--);
  3107. DisplayTheCheckedLinks(deadlinks, 'adead_link');
  3108. }
  3109.  
  3110. if (unavaRegex != null)
  3111. {
  3112. var unavalinks = res.match(unavaRegex);
  3113. if (unavalinks)
  3114. {
  3115. i = unavalinks.length - 1;
  3116. do
  3117. {
  3118. unavalinks[i] = unavalinks[i].match(linkRegex)[1];
  3119. }
  3120. while (i--);
  3121. DisplayTheCheckedLinks(unavalinks, 'unava_link');
  3122. }
  3123. }
  3124. }
  3125. });
  3126. }
  3127. }
  3128. function netloadBulkCheck()
  3129. {
  3130. var blockIdx = this.links.length;
  3131.  
  3132. while (blockIdx--)
  3133. {
  3134. postRequest(this.apiUrl, this.postData, this.links[blockIdx],
  3135. this.resLinkRegex, this.resLiveRegex, this.resDeadRegex, this.unavaRegex);
  3136. }
  3137. function postRequest(api, postData, links, linkRegex, liveRegex, deadRegex, unavaRegex)
  3138. {
  3139. GM_xmlhttpRequest(
  3140. {
  3141. method: 'POST',
  3142. url: api,
  3143. headers: {
  3144. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  3145. 'Content-type': 'application/x-www-form-urlencoded',
  3146. 'Referer': ""
  3147. },
  3148. data: postData + encodeURIComponent(links),
  3149. onload: function (result)
  3150. {
  3151. var res = result.responseText;
  3152. var i;
  3153.  
  3154. var livelinks = res.match(liveRegex);
  3155. var deadlinks = res.match(deadRegex);
  3156. if (livelinks != null)
  3157. {
  3158. i = livelinks.length - 1;
  3159. do
  3160. {
  3161. recheckLink(livelinks[i].match(linkRegex)[1]);
  3162. }
  3163. while(i--);
  3164. }
  3165.  
  3166. if (deadlinks != null)
  3167. {
  3168. i = deadlinks.length - 1;
  3169. do
  3170. {
  3171. deadlinks[i] = deadlinks[i].match(linkRegex)[1];
  3172. }
  3173. while (i--);
  3174. DisplayTheCheckedLinks(deadlinks, 'adead_link');
  3175. }
  3176. }
  3177. });
  3178. }
  3179. function recheckLink(link)
  3180. {
  3181. var link = link;
  3182. GM_xmlhttpRequest(
  3183. {
  3184. method: 'GET',
  3185. url: 'http://netload.in/datei' + link + '.htm',
  3186. headers: {
  3187. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3188. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  3189. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  3190. 'Referer': ""
  3191. },
  3192. onload: function (result)
  3193. {
  3194. var res = result.responseText;
  3195.  
  3196. if (res.match(/dl_first_file_download">|download_limit\.gif/))
  3197. {
  3198. DisplayTheCheckedLinks([link], 'alive_link');
  3199. return;
  3200. }
  3201.  
  3202. if (res.match(/achtung\.jpg"/))
  3203. {
  3204. DisplayTheCheckedLinks([link], 'adead_link');
  3205. }
  3206. },
  3207. onerror: function ()
  3208. {
  3209. displayTheCheckedLink(link, 'unava_link');
  3210. }
  3211. });
  3212. }
  3213. }
  3214.  
  3215. function depositfilesBulkCheck()
  3216. {
  3217. var arr = this.links[0].split("\r\n");
  3218. var i = arr.length;
  3219. var seqno = Math.floor(Math.random()*1000000000);
  3220. while(i--)
  3221. {
  3222. DFpostRequest(arr[i]);
  3223. }
  3224. }
  3225. function DFpostRequest(DFLink)
  3226. {
  3227. DFLink=DFLink.replace('depositfiles.lt/','depositfiles.com/');
  3228. DFLink=DFLink.replace('depositfiles.org/','depositfiles.com/');
  3229. DFLink=DFLink.replace('dfiles.ru/','depositfiles.com/');
  3230. DFLink=DFLink.replace('dfiles.eu/','depositfiles.com/');
  3231. DFLink=DFLink.replace('depositfiles.com/en/','depositfiles.com/');
  3232. var id = DFLink.match(/depositfiles\.com\/files\/(\w+)/)[1];
  3233. GM_xmlhttpRequest(
  3234. {
  3235. method: "GET",
  3236. url: "http://depositfiles.com/api/get_download_info.php?id=" + id + "&format=json",
  3237. headers: {
  3238. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3239. 'Content-Type': 'application/x-www-form-urlencoded',
  3240. 'Referer': ""
  3241. },
  3242. onload: function (result)
  3243. {
  3244. var res = result.responseText;
  3245. if (res.match('(?:no_file|file_ban)'))
  3246. {
  3247. DisplayTheCheckedLinks([id], 'adead_link');
  3248. return;
  3249. }
  3250. if (res.match('"download_li(?:nk|mit)|password_check|file_storage"'))
  3251. {
  3252. DisplayTheCheckedLinks([id], 'alive_link');
  3253. return;
  3254. }
  3255. DisplayTheCheckedLinks([id], 'unava_link');
  3256. }
  3257. });
  3258. }
  3259.  
  3260. function megaBulkCheck()
  3261. {
  3262. var arr = this.links[0].split("\r\n");
  3263. var i = arr.length;
  3264. var seqno = Math.floor(Math.random()*1000000000);
  3265. while(i--)
  3266. {
  3267. postRequest(arr[i]);
  3268. }
  3269. function postRequest(megaLink)
  3270. {
  3271. megaLink=megaLink.replace('mega.nz/','mega.co.nz/');
  3272. var id = megaLink.match(/mega\.co\.nz\/#!(\w+)(?:!\w+)?/)[1];
  3273. GM_xmlhttpRequest(
  3274. {
  3275. method: "POST",
  3276. url: 'https://g.api.mega.co.nz/cs?id=' + seqno++,
  3277. data: '[{"a":"g","p":"' + id + '","ssl": "1"}]',
  3278. headers: {
  3279. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3280. 'Content-Type': 'application/xml',
  3281. 'Referer': "https://mega.co.nz/"
  3282. },
  3283. onload: function (result)
  3284. {
  3285. var res = $.parseJSON(result.responseText.match(/\[(.+?)\]/)[1]);
  3286. if ((typeof res == "number" && (res == -9 || res == -16 || res == -6)) || res.d)
  3287. {
  3288.  
  3289. DisplayTheCheckedLinks([id], 'adead_link');
  3290. }
  3291. if (res.at)
  3292. {
  3293. DisplayTheCheckedLinks([id], 'alive_link');
  3294. }
  3295. if (res.e == "ETEMPUNAVAIL")
  3296. {
  3297. DisplayTheCheckedLinks([id], 'unava_link');
  3298. }
  3299. }
  3300. });
  3301. }
  3302.  
  3303. }
  3304.  
  3305. function oboomBulk() {
  3306. var a = [], b = [], c = [];
  3307. var array = this.links;
  3308.  
  3309. GM_xmlhttpRequest({
  3310. method: 'GET',
  3311. url: 'https://www.oboom.com/1/guestsession',
  3312. headers: {
  3313. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  3314. 'Content-type': 'application/x-www-form-urlencoded',
  3315. 'Referer': 'https://www.oboom.com',
  3316. 'X-Requested-With': 'XMLHttpRequest'
  3317. },
  3318. onload: function(result) {
  3319. var blockIdx = array.length;
  3320. var token = JSON.parse(result.responseText)[1];
  3321. while (blockIdx--) {
  3322. startCheck(array[blockIdx].split('\r\n'), token);
  3323. }
  3324. }
  3325. });
  3326.  
  3327. function startCheck(links, token) {
  3328. GM_xmlhttpRequest({
  3329. method: 'POST',
  3330. url: "https://api.oboom.com/1/info",
  3331. headers: {
  3332. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  3333. 'Content-type': 'application/x-www-form-urlencoded',
  3334. 'Referer': 'https://www.oboom.com/',
  3335. 'X-Requested-With': 'XMLHttpRequest'
  3336. },
  3337. data: "token=" + token + "&items=" + links.join(","),
  3338. onload: function(result) {
  3339. var res = JSON.parse(result.responseText)[1];
  3340. var i = res.length, s;
  3341.  
  3342. while (i--) {
  3343. s = res[i].state;
  3344. if (s == 'online') a.push(res[i].id);
  3345. 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);
  3346. else c.push(res[i].id);
  3347. }
  3348.  
  3349. if (a.length > 0) DisplayTheCheckedLinks(a, 'alive_link');
  3350. if (b.length > 0) DisplayTheCheckedLinks(b, 'adead_link');
  3351. if (c.length > 0) DisplayTheCheckedLinks(c, 'unava_link');
  3352. }
  3353. });
  3354. }
  3355. }
  3356. function linksaveBulkCheck()
  3357. {
  3358. var arr = this.links[0].split("\r\n");
  3359. var i = arr.length;
  3360. while(i--)
  3361. {
  3362. postRequest(arr[i]);
  3363. }
  3364. function postRequest(lsLink)
  3365. {
  3366. GM_xmlhttpRequest(
  3367. {
  3368. method: "GET",
  3369. url: lsLink + '-t.jpg',
  3370. headers: {
  3371. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3372. 'Accept': 'text/xml',
  3373. 'Referer': ""
  3374. },
  3375. onload: function (result)
  3376. {
  3377. var imgLen = result.responseHeaders.match(/Content-Length: (\d+)/)[1];
  3378. if (imgLen == 965) //online
  3379. {
  3380. DisplayTheCheckedLinks([lsLink], 'alive_link');
  3381. }
  3382.  
  3383. if (imgLen == 972) //offline
  3384. {
  3385. DisplayTheCheckedLinks([lsLink], 'adead_link');
  3386. }
  3387. if (imgLen == 978) //unava
  3388. {
  3389. DisplayTheCheckedLinks([lsLink], 'unava_link');
  3390. }
  3391. }
  3392. });
  3393. }
  3394.  
  3395. }
  3396. function linkcryptBulkCheck()
  3397. {
  3398. var arr = this.links[0].split("\r\n");
  3399. var i = arr.length;
  3400. while(i--)
  3401. {
  3402. postRequest(arr[i]);
  3403. }
  3404. function postRequest(lcLink)
  3405. {
  3406. GM_xmlhttpRequest(
  3407. {
  3408. method: "GET",
  3409. url: 'http://linkcrypt.ws/api.html?api=status_V1&folderKey=' + lcLink.match(/dir\/(\w+)/)[1],
  3410. headers: {
  3411. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3412. 'Accept': 'text/xml',
  3413. 'Referer': ""
  3414. },
  3415. onload: function (result)
  3416. {
  3417. var res = result.responseText;
  3418. if (res.match(/<errorCode>1101|folderStatus>[23]/)) //Offline status
  3419. {
  3420. DisplayTheCheckedLinks([lcLink], 'adead_link');
  3421. return;
  3422. }
  3423. if (res.match(/folderStatus>1/)) //Online status
  3424. {
  3425. DisplayTheCheckedLinks([lcLink], 'alive_link');
  3426. }
  3427. else
  3428. {
  3429. DisplayTheCheckedLinks([lcLink], 'unava_link');
  3430. }
  3431. }
  3432. });
  3433. }
  3434. }
  3435.  
  3436. function megashareBulkCheck()
  3437. {
  3438. var arr = this.links[0].split("\r\n");
  3439. var i = arr.length;
  3440. while(i--)
  3441. {
  3442. postRequest(arr[i]);
  3443. }
  3444. function postRequest(msLink)
  3445. {
  3446. GM_xmlhttpRequest(
  3447. {
  3448. method: "GET",
  3449. url: msLink,
  3450. headers: {
  3451. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3452. 'Content-Type': 'application/x-www-form-urlencoded',
  3453. 'Referer': ""
  3454. },
  3455. onload: function (result)
  3456. {
  3457. var prZVal = result.responseText.match(/name="(\d+prZVal)" value="(\d+)">/);
  3458. var btn3Name = result.responseText.match(/src="images\/dwn-btn3\.gif" name="(.+?)"/);
  3459. if ((prZVal == null) || (btn3Name == null))
  3460. {
  3461. return;
  3462. }
  3463. GM_xmlhttpRequest(
  3464. {
  3465. method: "POST",
  3466. url: msLink,
  3467. headers: {
  3468. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3469. 'Content-Type': 'application/x-www-form-urlencoded',
  3470. 'Referer': ""
  3471. },
  3472. data: prZVal[1] + "=" + prZVal[2] + '&' + btn3Name[1] + '.x=1&' + btn3Name[1] + '.y=1',
  3473. onload: function (result)
  3474. {
  3475. var res = result.responseText;
  3476. if (res.match(/<div id="err">/))
  3477. {
  3478. DisplayTheCheckedLinks([msLink.match(/\.com(\/\d+)/)[1]], 'adead_link');
  3479. }
  3480. else
  3481. {
  3482. DisplayTheCheckedLinks([msLink.match(/\.com(\/\d+)/)[1]], 'alive_link');
  3483. }
  3484. }
  3485. });
  3486. }
  3487. });
  3488. }
  3489. }
  3490. function ncryptBulkCheck()
  3491. {
  3492. var arr = this.links[0].split("\r\n");
  3493. var i = arr.length;
  3494. while(i--)
  3495. {
  3496. postRequest(arr[i]);
  3497. }
  3498. function postRequest(ncryptLink)
  3499. {
  3500. GM_xmlhttpRequest(
  3501. {
  3502. method: "POST",
  3503. url: 'http://ncrypt.in/api_status.php',
  3504. headers: {
  3505. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3506. 'Content-Type': 'application/x-www-form-urlencoded',
  3507. 'Referer': ""
  3508. },
  3509. data: 'link=' + encodeURI(ncryptLink),
  3510. onload: function (result)
  3511. {
  3512. var foldStatus = result.responseText.match(/(?:offline|online);/);
  3513. switch(foldStatus + ""){
  3514. case "offline;": DisplayTheCheckedLinks([ncryptLink], 'adead_link'); break;
  3515. case "online;": DisplayTheCheckedLinks([ncryptLink], 'alive_link'); break;
  3516. default: DisplayTheCheckedLinks([ncryptLink], 'unava_link');
  3517. }
  3518. }
  3519. });
  3520. }
  3521. }
  3522. function hellshareBulkCheck()
  3523. {
  3524. var links = this.links;
  3525. GM_xmlhttpRequest(
  3526. {
  3527. method: "GET",
  3528. url: 'http://www.hellshare.com',
  3529. headers: {
  3530. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3531. 'Accept': 'text/xml',
  3532. 'Referer': ""
  3533. },
  3534. onload: function (result)
  3535. {
  3536. var domain = result.responseText.match(/param_rau = "www\.hellshare\.(\w+)"/)[1];
  3537.  
  3538. var loc = 'check=Zkontrolovat+dostupnost+soubor%C5%AF&links=';
  3539. if (domain == 'sk')
  3540. loc = 'check=Skontrolova%C5%A5&links=';
  3541. if (domain == 'com')
  3542. loc = 'check=Check+availability&links=';
  3543. if (domain == 'hu')
  3544. loc = 'check=Kontrol%C3%A1lj&links=';
  3545. if (domain == 'pl')
  3546. loc = 'check=Sprawd%C5%BC+dost%C4%99pno%C5%9B%C4%87+plik%C3%B3w&links=';
  3547.  
  3548. genBulkCheck.call({ links: links,
  3549. apiUrl: 'http://www.hellshare.' + domain + '/linkchecker?do=linkChecker-linkcheckerform-submit',
  3550. postData: loc,
  3551. resLinkRegex: /hellshare\.(?:cz|com|sk|hu|pl)\/(?:[\w-\.]+\/|)([\w-\.]+\/\d{5,})/,
  3552. 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,
  3553. resDeadRegex: /<span style="color:gray">.*?<\/span> - <strong>/g,
  3554. resUnavaRegex: null
  3555. });
  3556. }
  3557. });
  3558. }
  3559. /**
  3560. * Displays check result
  3561. * @param {Array} Array of links or link fragments.
  3562. * @param {String} Check result status -> ['alive_link'|'adead_link'|'unava_link']
  3563. */
  3564. function DisplayTheCheckedLinks(links, resultStatus)
  3565. {
  3566. //(a[href*=link_1], a[href*=link_2], ..., a[href*=link_n])
  3567. var $links = $('a[href*="' + links.join('"], a[href*="') + '"]');
  3568. if (Do_not_linkify_DL_links)
  3569. { //TODO into separate jQuery function
  3570. $links.replaceWith(function(){
  3571. return '<span href="' + this.href + '">' + $(this).text() + '</span>';
  3572. });
  3573. $links = $('span[href*="' + links.join('"], span[href*="') + '"]');
  3574. }
  3575. $links.removeClass().addClass(resultStatus);
  3576. $links.each(function() {
  3577. this.href = Ref_anonymize_service + $(this).attr("href");
  3578. });
  3579. switch(resultStatus)
  3580. {
  3581. case "alive_link": cLinksAlive += $links.length;
  3582. if (Display_tooltip_info) $links.mouseover(displayTooltipInfo);
  3583. break;
  3584. case "adead_link": cLinksDead += $links.length;
  3585. if (Display_tooltip_info) $links.mouseover(displayTooltipError);
  3586. break;
  3587. case "unava_link": cLinksUnava += $links.length; break;
  3588. default:
  3589. }
  3590. cLinksProcessed += $links.length;
  3591. }
  3592. }
  3593. // starts bulkchecking
  3594. //
  3595. // params
  3596. // filterId [string] restricts link detection with passed id attribute
  3597. function startBulkCheck(filterId)
  3598. {
  3599. var cHosts = bulkHosts.length;
  3600. if (cHosts == 0) //no filehostings selected
  3601. return;
  3602. // STEP 1 linkify the links
  3603. var linkifyRegex = '';
  3604. var hostIdx = cHosts;
  3605. while(hostIdx--)
  3606. {
  3607. linkifyRegex += bulkHosts[hostIdx].linkRegex + "|";
  3608. }
  3609. linkifyRegex = linkifyRegex.replace(/\|$/, '');
  3610. linkify(linkifyRegex);
  3611. //
  3612. //STEP 2 detect link objects
  3613. var xpathAll = '';
  3614. var hostIdx = cHosts;
  3615. while(hostIdx--)
  3616. {
  3617. xpathAll += bulkHosts[hostIdx].xpath + "|";
  3618. }
  3619. xpathAll = xpathAll.replace(/\]\|\/\/a\[/g, " or ");
  3620. xpathAll = xpathAll.replace(/\]\|/, ')]');
  3621. if (filterId != null) //insert id restriction in the xpath
  3622. {
  3623. xpathAll = xpathAll.replace(/\[/, "[@class='" + filterId + "' and (");
  3624. }
  3625. else
  3626. {
  3627. xpathAll = xpathAll.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  3628. }
  3629. var links = document.evaluate(xpathAll, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  3630. if (filterId == null)
  3631. {
  3632. cLinksTotal += links.snapshotLength;
  3633. }
  3634. //
  3635. //STEP 3 bind links with hostings
  3636. var linkIdx = links.snapshotLength;
  3637. var href = null;
  3638. if (linkIdx == 0) // no links found
  3639. return;
  3640. var name;
  3641. while (linkIdx--)
  3642. {
  3643. href = links.snapshotItem(linkIdx).href;
  3644. try // DO NOT REMOVE, filters crap that went through xpath detection
  3645. {
  3646. name = gimmeHostName(href);
  3647. if (href.match(bulkHostNames[name].linkRegexObject) != null)
  3648. bulkHostNames[name].links.push(href);
  3649. }
  3650. catch(e)
  3651. {
  3652.  
  3653. }
  3654. }
  3655. //
  3656. //STEP 4 process the links for each filehosting
  3657. var hostIdx = cHosts;
  3658. var host;
  3659. var m,n;
  3660. var arr;
  3661. while (hostIdx--)
  3662. {
  3663. host = bulkHosts[hostIdx];
  3664. arr = host.links;
  3665. if (arr.length == 0) //no links for this hosting, skip
  3666. {
  3667. continue;
  3668. }
  3669. //links match corrections
  3670. if (host.corrMatch != null)
  3671. {
  3672. var idx = arr.length;
  3673. while (idx--)
  3674. {
  3675. arr[idx] = arr[idx].match(host.corrMatch)[1];
  3676. }
  3677. }
  3678. //links replace corrections
  3679. if ((host.corrReplWhat != null) && (host.corrReplWith != null))
  3680. {
  3681. var idx = arr.length;
  3682. while (idx--)
  3683. {
  3684. arr[idx] = arr[idx].replace(host.corrReplWhat, host.corrReplWith);
  3685. }
  3686. }
  3687. m = arr.length;
  3688. n = host.blockSize;
  3689. if (m > n)
  3690. {
  3691. //insert block separators (RAND_STRING) into the array
  3692. for(var i = n; i < m; i += n + 1)
  3693. {
  3694. arr.splice(i, 0, RAND_STRING);
  3695. }
  3696. }
  3697.  
  3698. host.func.call({ links: arr.join(host.splitSeparator).split(RAND_STRING),
  3699. apiUrl: host.apiUrl,
  3700. postData: host.postData,
  3701. resLinkRegex: host.resLinkRegex,
  3702. resLiveRegex: host.resLiveRegex,
  3703. resDeadRegex: host.resDeadRegex,
  3704. resUnavaRegex: host.resUnavaRegex
  3705. });
  3706. //clean up
  3707. arr.length = 0;
  3708. }
  3709. //
  3710.  
  3711. function gimmeHostName(link)
  3712. {
  3713. return link.replace(/https?:\/\/.*?http(s)?:\/\//, "http$1://").match(/https?:\/\/(?:www\.|[\w\.])*?([\w-]+)\.(?:co\.uk|co\.nz|\w+)\//)[1];
  3714. }
  3715. }
  3716. function checkLinks(filterId)
  3717. {
  3718. startBulkCheck(filterId);
  3719. start(filterId);
  3720. }
  3721.  
  3722. /**
  3723. * Initialises progress box including event binding and CSS
  3724. */
  3725. function initProgressBox()
  3726. {
  3727. if ($("#warlc-progressbox").length > 0)
  3728. return;
  3729. //progressbox css change size and color of progress box
  3730. GM_addStyle("#warlc-progressbox {position:fixed; background:DimGray;" + Progress_box_background_color +
  3731. "; opacity:" + (Progress_box_opacity / 100) +
  3732. "; bottom:" + Progress_box_pos_bottom +
  3733. "px; right:" + Progress_box_pos_right +
  3734. "px; padding:5px; font-size:20px; font-weight:bold; cursor:default;}\
  3735. \
  3736. .warlc-progressbar {text-align:center; color: DimGray; height:2px; margin-bottom:2px;}\
  3737. \
  3738. .warlc-progressitem {}\
  3739. \
  3740. .alive {color:#00FF7F; " + Live_links_color +
  3741. "; background:transparent url(" + alive_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;} .dead {color:" + Dead_links_color +
  3742. "; background:transparent url(" + adead_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;} .unava {color: " + Temp_unavailable_links_color +
  3743. "; background:transparent url(" + unava_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;} .processing {color:Black; " + Container_links_color +
  3744. "; background:transparent url(" + processing_link_gif + ") no-repeat scroll 100% 50%;padding-right:15px;} .prem {color:" + Premium_links_color +
  3745. "; background:transparent url(" + prem_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;}"
  3746. );
  3747. //
  3748. $('body').append(' <div id="warlc-progressbox">\
  3749. <div class="warlc-progressbar"></div>\
  3750. <span class="warlc-progressitem alive"></span> - \
  3751. <span class="warlc-progressitem dead"></span> - \
  3752. <span class="warlc-progressitem unava"></span> - \
  3753. <span class="warlc-progressitem prem"></span> - \
  3754. <span class="warlc-progressitem processing"></span>\
  3755. </div>');
  3756. $('#warlc-progressbox').hide().click(function(){
  3757. clearInterval(intervalId);
  3758. $(this).hide();
  3759. return false;
  3760. });
  3761. $(".warlc-progressbar").progressbar({complete: function(){
  3762. $(this).fadeOut();
  3763. clearInterval(intervalId); //stop refreshing the stats
  3764. }
  3765. })
  3766. .one('progressbarchange', function(){$('#warlc-progressbox').show();});
  3767. }
  3768. /**
  3769. * Updates progress data in progress box
  3770. */
  3771. function updateProgress()
  3772. {
  3773. $("#warlc-progressbox").attr('aria-valuenow', Math.round(((100 / cLinksTotal) * cLinksProcessed)));
  3774. if (cLinksTotal) // some links were detected on page
  3775. {
  3776. var percProgress = Math.round(((100 / cLinksTotal) * cLinksProcessed));
  3777. var $progressItems = $('#warlc-progressbox > .warlc-progressitem');
  3778. $(".warlc-progressbar").progressbar('option', 'value', percProgress);
  3779. if ((cLinksTotal - cLinksProcessed) == 0)
  3780. {
  3781. $progressItems.first().text(cLinksAlive)
  3782. .next().text(cLinksDead)
  3783. .next().text(cLinksUnava)
  3784. .next().text(cLinksprem)
  3785. .next().remove();
  3786. $('#warlc-progressbox').html($('#warlc-progressbox').html().substr(0,$('#warlc-progressbox').html().lastIndexOf(">")+1));
  3787. $('#warlc-progressbox div:first-child').remove();
  3788. }
  3789. else
  3790. {
  3791. $progressItems.first().text(cLinksAlive)
  3792. .next().text(cLinksDead)
  3793. .next().text(cLinksUnava)
  3794. .next().text(cLinksprem)
  3795. .next().text(cLinksTotal - cLinksProcessed);
  3796. }
  3797. }
  3798. }
  3799.  
  3800. function check_all_links()
  3801. {
  3802. add_WARLC_style();
  3803.  
  3804. if (Show_progress_stats)
  3805. {
  3806. initProgressBox();
  3807. intervalId = setInterval(function(){updateProgress();}, Progress_box_refresh_rate);
  3808. }
  3809.  
  3810. startBulkCheck(null);
  3811. start(null);
  3812.  
  3813. if (!containers_processed)
  3814. {
  3815. processContainers();
  3816. }
  3817. }
  3818.  
  3819. //Copies all found dead links to clipboard - right now for Scriptish only
  3820. function copy_dead_to_clipboard()
  3821. {
  3822. initClipBoardTools();
  3823.  
  3824. var deadlinksxpath = "//.[@class='adead_link']";
  3825.  
  3826. var foundlinks = document.evaluate(deadlinksxpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  3827. var foundlinkstext = '';
  3828.  
  3829. var foundlinkIdx = foundlinks.snapshotLength;
  3830.  
  3831. while(foundlinkIdx--)
  3832. {
  3833. if (foundlinks.snapshotItem(foundlinkIdx).innerHTML != ' x')
  3834. foundlinkstext += foundlinks.snapshotItem(foundlinkIdx).innerHTML.replace(/\[\/hide:\w+\]/,"") + '\n';
  3835. }
  3836.  
  3837. unsafeWindow.copyToClipboard(foundlinkstext);
  3838. }
  3839.  
  3840. function toggle_autocheck()
  3841. {
  3842. var currentState = GM_getValue("Autocheck", false);
  3843. GM_setValue("Autocheck", !currentState);
  3844.  
  3845. if (currentState == true)
  3846. {
  3847. sendMessage('Autocheck disabled', 'red');
  3848. }
  3849. else
  3850. {
  3851. sendMessage('Autocheck enabled', 'SpringGreen');
  3852. }
  3853. }
  3854. function toggle_Enable_Anonymizer()
  3855. {
  3856. var currentState = GM_getValue("Enable_Anonymizer", false);
  3857. GM_setValue("Enable_Anonymizer", !currentState);
  3858.  
  3859. if (currentState == true)
  3860. {
  3861. GM_setValue("Ref_anonymize_service", "");
  3862. sendMessage('Anonymizer Disabled', 'red');
  3863. }
  3864. else
  3865. {
  3866. GM_setValue("Ref_anonymize_service", "http://hiderefer.com/?");
  3867. sendMessage('Anonymizer Enabled', 'SpringGreen');
  3868. }
  3869. }
  3870.  
  3871. function KeyDownHandler(event)
  3872. {
  3873. var kcode = (event.keyCode) ? event.keyCode : event.which;
  3874. if (event.ctrlKey && event.altKey)
  3875. {
  3876. switch(kcode)
  3877. {
  3878. case 65 : check_all_links(); break;
  3879. case 67 : configuration(); break;
  3880. case 68 : copy_dead_to_clipboard(); break;
  3881. case 87 : toggle_autocheck(); break;
  3882. case 90 : toggle_Enable_Anonymizer(); break;
  3883. }
  3884. }
  3885. }
  3886.  
  3887. //
  3888. //
  3889. // SCRIPT EXECUTION START POINT
  3890. //
  3891. //
  3892. // Safari specific GM_getResourceText override
  3893. if (navigator.userAgent.indexOf('Safari') != -1 && navigator.userAgent.indexOf('Chrome') == -1)
  3894. {
  3895. GM_getResourceText = function(res) {
  3896. var $cssText = GM_getValue("jquery_css", "");
  3897. if ($cssText == "")
  3898. {
  3899. GM_xmlhttpRequest(
  3900. {
  3901. method: 'GET',
  3902. url: 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css',
  3903. onload: function (result)
  3904. {
  3905. GM_setValue("jquery_css", result.responseText);
  3906. window.location.reload();
  3907. }
  3908. });
  3909. }
  3910. else
  3911. {
  3912. return $cssText;
  3913. }
  3914. }
  3915. }
  3916. var jQueryUICSS = GM_getResourceText("jQueryUICSS");
  3917. GM_addStyle(jQueryUICSS);
  3918. //init the stuff
  3919. setVariables();
  3920. initBulkCheck();
  3921. //init info boxes
  3922. messageBox.style.position = 'fixed';
  3923. messageBox.style.top = '20px';
  3924. messageBox.style.left = '10px';
  3925. messageBox.style.opacity = '0.85';
  3926. messageBox.style.background = 'DimGray';
  3927. messageBox.style.fontSize = '36px';
  3928. document.body.appendChild(messageBox);
  3929.  
  3930. //register GM menu commands & keyboard shortcut event handler
  3931. if (Keyboard_functions)
  3932. {
  3933. $(document).keydown(KeyDownHandler);
  3934. GM_registerMenuCommand("[W.A.R. Links Checker] Configuration (" + first_key_keycodename + "+" + second_key_keycodename + "+" + String.fromCharCode(CONFIGURATION_KEYCODE) + ")", configuration);
  3935. 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);
  3936. }
  3937. else
  3938. {
  3939. GM_registerMenuCommand("[W.A.R. Links Checker] Configuration", configuration);
  3940. GM_registerMenuCommand("[W.A.R. Links Checker] Check The Links In This Page", check_all_links);
  3941. }
  3942.  
  3943. //start linkchecking
  3944. if (Autocheck)
  3945. {
  3946. $(document).ready(check_all_links);
  3947. }
  3948.  
  3949. //
  3950. //
  3951. // SCRIPT EXECUTION END POINT
  3952. //
  3953. //
  3954.  
  3955. //shows configuration box
  3956. function configuration()
  3957. {
  3958.  
  3959. //prevent multiple creating of config window
  3960. if ($("#hideshow").length)
  3961. {
  3962. $("#hideshow").show();
  3963. return;
  3964. }
  3965.  
  3966. var configcss = '\
  3967. .popup_block .popup fieldset{\
  3968. padding: 1%;\
  3969. border-style: solid;\
  3970. border-width: 1px;\
  3971. border-color: gray;\
  3972. margin-bottom: 1px;\
  3973. }\
  3974. #h3hideshowtitle{\
  3975. font-size: 2em;\
  3976. }\
  3977. #h3hideshow{\
  3978. font-size: 1.5em;\
  3979. }\
  3980. #imghideshow {\
  3981. border: none;\
  3982. }\
  3983. #plusimage{\
  3984. display:inline;\
  3985. }\
  3986. #hideshow {\
  3987. position: fixed;\
  3988. width: 100%;\
  3989. height: 100%;\
  3990. top: 0;\
  3991. left: 0;\
  3992. font-size:12px;\
  3993. z-index:2147483645;\
  3994. text-align:left;\
  3995. }\
  3996. #fade {\
  3997. background: #000;\
  3998. position: fixed;\
  3999. width: 100%;\
  4000. height: 100%;\
  4001. opacity: .80;\
  4002. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";\
  4003. left: 0;\
  4004. z-index: 10;\
  4005. }\
  4006. .popup_block {\
  4007. font-family:verdana;\
  4008. color:black;\
  4009. background: #ddd;\
  4010. padding: 10px 20px;\
  4011. border: 2px solid DarkOrange;\
  4012. float: left;\
  4013. width: 700px;\
  4014. position: absolute;\
  4015. top: 7%;\
  4016. left: 50%;\
  4017. bottom: 7%;\
  4018. margin: 0 0 0 -350px;\
  4019. -moz-border-radius:10px;\
  4020. z-index: 100;\
  4021. \
  4022. }\
  4023. .popup_block .popup {\
  4024. float: left;\
  4025. width: 100%;\
  4026. background: #fff;\
  4027. margin: 10px 0;\
  4028. padding: 0px 0 0px;\
  4029. border-left: 1px solid #bbb;\
  4030. border-top: 1px solid #bbb;\
  4031. border-right: 1px solid #bbb;\
  4032. }\
  4033. #h3hideshow{\
  4034. margin: 1px 0 0px;\
  4035. padding: 1px 10px;\
  4036. border-bottom: 1px solid #bbb;\
  4037. font-size: 1.5em;\
  4038. font-weight: normal;\
  4039. cursor:pointer;\
  4040. background:#DDDDDD none repeat scroll 0 0;\
  4041. }\
  4042. #h3hideshow:hover{\
  4043. background:#C0BEBE none repeat scroll 0 0;\
  4044. }\
  4045. #h3hideshowtitle{\
  4046. margin: 2px 0 0px;\
  4047. padding: 7px 10px;\
  4048. border-bottom: 1px solid #bbb;\
  4049. font-size: 1.5em;\
  4050. font-weight: normal;\
  4051. }\
  4052. .popup_block .popup a {\
  4053. color:DarkSkyBlue;\
  4054. text-decoration:none;\
  4055. }\
  4056. .popup p {\
  4057. padding: 1px 10px;\
  4058. margin: 0px 0;\
  4059. -x-system-font:none;\
  4060. font-family:verdana,geneva,lucida,"lucida grande",arial,helvetica,sans-serif;\
  4061. font-size:10pt;\
  4062. font-size-adjust:none;\
  4063. font-stretch:normal;\
  4064. font-style:normal;\
  4065. font-variant:normal;\
  4066. font-weight:normal;\
  4067. line-height:normal;\
  4068. }\
  4069. #sites {\
  4070. padding: 1px 10px;\
  4071. margin: 0px 0;display:inline-block;width:16em;\
  4072. }\
  4073. #dev_ver {\
  4074. color: #00FF00;\
  4075. background: Black;\
  4076. text-align: right;\
  4077. }\
  4078. #sites_suspended {\
  4079. padding: 1px 10px;\
  4080. margin: 0px 0;display:inline-block;width:16em;\
  4081. text-decoration: line-through;\
  4082. }\
  4083. .popup img.cntrl {\
  4084. position: absolute;\
  4085. right: -15px;\
  4086. top: -15px;\
  4087. }\
  4088. #bulk {\
  4089. font-size:8pt;\
  4090. color:orange;\
  4091. padding: 1px 10px;\
  4092. margin: 0px 0;\
  4093. display:inline-block;\
  4094. width:100px;\
  4095. }\
  4096. #note {\
  4097. font-size:7pt;\
  4098. color:gray;\
  4099. padding: 1px 10px;\
  4100. margin: 0px 0;display:inline-block;\
  4101. min-width:100px;\
  4102. }\
  4103. #rednote {\
  4104. font-size:7pt;\
  4105. color:red;\
  4106. padding: 1px 10px;\
  4107. margin: 0px 0;display:inline-block;\
  4108. }\
  4109. #configinfo {\
  4110. font-size:8pt;\
  4111. color:gray;\
  4112. padding: 1px 10px;\
  4113. margin: 0px 0;display:inline-block;width:60em;\
  4114. }\
  4115. #refAnonymizer, #inputColorLive, #inputColorprem, #hostSearchBox2, #hostSearchBox, #inputColorDead, #inputColorTemp, #inputColorCont, #selectAllButton, #selectNoneButton, #invertButton, #selectAllButton2, #selectNoneButton2, #invertButton2 {\
  4116. color:black;\
  4117. border-style: solid;\
  4118. border-width: 1px;\
  4119. border-color: gray;\
  4120. }\
  4121. #h3hideshowcontent {\
  4122. min-height:220px;\
  4123. max-height:220px;\
  4124. overflow:auto;\
  4125. display: none;\
  4126. padding: 10px 10px;\
  4127. }\
  4128. #specinfo{\
  4129. font-size:14px;\
  4130. }\
  4131. .warlc-ui-tab {\
  4132. height:300px;\
  4133. overflow:auto;\
  4134. }\
  4135. #warlcsitelist2, #warlcsitelist1 {\
  4136. height:220px;\
  4137. border-top: 1px solid #ddd;\
  4138. padding-top: 5px;\
  4139. overflow:auto;\
  4140. }\
  4141. input:hover+label {\
  4142. background:#F1F77C;\
  4143. font-size:110%;\
  4144. }\
  4145. ';
  4146.  
  4147. GM_addStyle(configcss);
  4148.  
  4149. var customRulesRefHTML =
  4150. '\
  4151. <br>\
  4152. A custom rule consists of <b>commands</b>. A command must be on its own line and in this form:<br>\
  4153. <b>@keyword</b> <i>parameter</i>\
  4154. <br><br>\
  4155. 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. \
  4156. <br><br>\
  4157. 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.\
  4158. 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.\
  4159. 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.\
  4160. 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,\
  4161. but all commands until the next valid @customrule are ignored.<br><br>\
  4162. Available forms and types:\
  4163. <ul>\
  4164. <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.\
  4165. <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.\
  4166. <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.\
  4167. <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.\
  4168. </ul>\
  4169. Other available commands:<br>\
  4170. (Note: There can be more than 1 (up to 10) of these commands per rule. In that case, any of them will work.)\
  4171. <ul>\
  4172. <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.\
  4173. It can also specify multiple (up to 10) Top Level Domains (.com, .net etc.)<br>\
  4174. <ul>examples:<br>\
  4175. <li>good: <i>filehost.com/download/</i><br>\
  4176. <li>good: <i>download.filehost.net/?d=</i><br>\
  4177. <li>good: <i>filehost. com net co.uk /</i> - multiple TLDs (note the spaces before, between and after TLDs)<br>\
  4178. <li>ok: <i>filehost.com/</i> - works, but will also find links like filehost.com/login etc. Sometimes it\'s unavoidable though.<br>\
  4179. <li>bad: <i>d8523.filehost.com/</i> - d8523 probably is not constant<br>\
  4180. <li>bad: <i>filehost.com/3bfiq5d1</i> - 3bfiq5d1 probably is not constant<br>\
  4181. <li>bad: <i>filehost.com</i> - no slash<br>\
  4182. </ul>\
  4183. \
  4184. <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.\
  4185. 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 \
  4186. &lt;div&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;p&gt; even if there are new lines, tabulators etc.\
  4187. <li><b>@deadmatch</b> <i>pattern</i> - ignored for OBSOLETE, required for others. (For HEADERS some servers return 404 Error \
  4188. 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.)\
  4189. Two spaces again match any whitespace.\
  4190. <li><b>@unavamatch</b> <i>pattern</i> - optional, ignored for OBSOLETE and HEADERS. If found, the link is deemed temporarily unavailable.\
  4191. Two spaces again match any whitespace.\
  4192. <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. \
  4193. <li><b>@deadlink</b> <i>url</i> - optional. Example dead link.\
  4194. </ul>\
  4195. \
  4196. ';
  4197.  
  4198. //close image and css taken from = http://www.sohtanaka.com/web-design/examples/css-popup icon_close.png;
  4199. var configurationinnerHTML =
  4200. '<div id="fade"></div>\
  4201. <div class="popup_block">\
  4202. <div class="popup">\
  4203. <a href="#"><img id="imghideshow" title="Close" class="cntrl" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAfCAYAAAD0ma06AAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAY1SURBVHjapFZbbFRVFN0zd6Yz08dMoUNf9EGxUItJK62I4AOJEYiQoqE+0OgHCiqG+PgQozH6ofyIJiYEMRqNJpggHySlrRM+hCAtajAUaGgEi9BBSilMO0PnfWeOa597bjt9AEVvsubOPWefs/br7H0sQgj6P4/FYrk9+WkSuoAHgCrgLvV9DLgMdID02rQZmfAmaAJaxS2edDr9s67rL7EB/9XCUuALoEl+pZJEvTAo8A9s6iVKxojKYWheAWxuIMr2GGKp1KHh4eF3vF4vW59me6ZD2Ajsle6LXify7SI68iNROIgtIKtpBvQEB5DI7iC6Zw3Rmi1EM0vlBsFg8OX8/PxvWQdFKm5E2KhiQ9R9iOjL17E6QFRUhAGQpFNjklYrhhT6YbndTtT8LtGjG+T0lStXNhcVFTGpnkE8jpAT4hdgNvm+Ivr+AyIHtM+Fu3Ss0RUZO8pqqos/NiDLblgcQO48/CzRpk/l9KlTp56oq6s7gL8JkzST0AespN9/Itq2Hu7xQnsbRFOcWSBKT50FVpMUHrBD/iKsXb+V6KmtFI/H/3Q6nZzdEZPU1PVFSXbtEoltz0Nzm2HRqleIvjsLa/9CoiSnBs99cwaym4lCYSRSHr4/REg64SBHTX9//2fqGNmVevJ5jn/0Xe+Rhd2SBVdGkInr3hizZI8fOibGg8fM5/EthgIJwxPJ7a/Jd05Ozn14uQEHGRGXsVtOIwHS2nbDlTOIYlHoMoUL9w0Q/GSA/0/KeXglFmEWsp/uIjp9FAbnzWttbV3H3ECWFWdnubTuSBulQ9AwDs2jcSPGby6evGn7sIGJzwuzDUViMekdAZ0jrXvlVGVl5RK8ctlKq6ZpHFSKdBzCwSVjQRILAzh3508TPe29dbl6ZibiB/lrQeWBGFmykGe/dcjp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eBTUBZPIY/HAKtRyXDB6++kieVlnZg72iNfA14/qa4HVwasTnmuLzQm3STrtxRUmetW/OXsg3hOh9Z9CTtT+FDsfO7ff2djyVfb5xlrNuxoygQLwbHgUAEjnwIi5dm3J4zsgTYNbqfHAC2H0m7ibf608V7B53urOYngWJ1/YoXS2+bMq9oUuiIbgSYvjQQ6P6b03hsv+trmm3I3GtNZQUUvT1wz6YsnQf0U8CTFHgrFZDw1Hnfl34da2vcFCFTAMqYaBr07nD40/IebZui1t9qqWgE3t6uOfCB3gF8FegrBB6x5qrri9688a+JYN6UK57eijDo2HI2+8/HB/8AVAHlQCfQCvz7chOIBTzS1FocNEx1VSNjHmFWS9jvC6mk11QWAbePhl4K/JWa1fbSypU2uSsI8ZgnEyG2wE9igb/Fa7f9MHGTQuANdbcGLzyFV2smiukr7Siw4WqGvZhlqznxhX7cTzmXayA234c33lqFcjneIqZfxX1TJr+t4dWtcUGXgusNgaPLwvQpgJjHcK8EPOAM6J7+vblEfK0fZ9RoqwAnpTnznsN/2jOkuvOUNvmpXmMTrrQuoJWGj36bAugAMhSo2cnsgUil2fb5LRHi1/jRGlJHc5zenaV7p0PyRB7XkR7vfa4IlZtT69fbVKywyafh8HODHN+WfhH4FnD2alN1B7AdOAcMeT29HfiZJ5oZ3sHrgAeBvcCANzBsHu7Ohe2/AwDnNnxcIIMIUgAAAABJRU5ErkJggg=="></img>&nbsp;W.A.R. Links Checker Customized Premium Link version Configuration</div>\
  4205. <div id="warlc-conf-tabs">\
  4206. <ul>\
  4207. <li><a href="#tabs-1">Filehostings</a></li>\
  4208. <li><a href="#tabs-2">Containers</a></li>\
  4209. <li><a href="#tabs-5">Custom rules</a></li>\
  4210. <li><a href="#tabs-3">Settings</a></li>\
  4211. <li><a href="#tabs-4">About</a></li>\
  4212. </ul>\
  4213. <div id="tabs-1" class="warlc-ui-tab">\
  4214. <div class="warlc-ui-buttonset">\
  4215. <input type="button" class="warlc-ui-select-all" value="Select All">\
  4216. <input type="button" class="warlc-ui-select-none" value="Select None">\
  4217. <input type="button" class="warlc-ui-select-invert" value="Invert">\
  4218. </div><br>\
  4219. <div>Search: <input type="textbox" id="hostSearchBox" value=""></div><br>\
  4220. <div id="warlcsitelist1"><span>Empty</span></div>\
  4221. </div>\
  4222. <div id="tabs-2" class="warlc-ui-tab">\
  4223. <div class="warlc-ui-buttonset">\
  4224. <input type="button" class="warlc-ui-select-all" value="Select All">\
  4225. <input type="button" class="warlc-ui-select-none" value="Select None">\
  4226. <input type="button" class="warlc-ui-select-invert" value="Invert">\
  4227. </div><br>\
  4228. <div>Search: <input type="textbox" id="hostSearchBox2" value=""></div><br>\
  4229. <div id="warlcsitelist2"><span>Empty</span></div>\
  4230. </div>\
  4231. <div id="tabs-5" class="warlc-ui-tab">\
  4232. <div class="warlcsettings">\
  4233. <fieldset><input type="checkbox" id="Custom_rules"> Enable custom rules <div id="bulk">EXPERIMENTAL</div></fieldset>\
  4234. <br>\
  4235. <div>Edit custom rules: \
  4236. <a href="#" id="showCustomRulesReference">(<b>Click here to show/hide the reference</b>)</a>\
  4237. <div id="customRulesReference" style="display:none;">'
  4238. + customRulesRefHTML + '\
  4239. </div>\
  4240. <textarea style="width:100%;height:200px;" id="Custom_rules_text"></textarea>\
  4241. </div>\
  4242. </div>\
  4243. </div>\
  4244. <div id="tabs-3" class="warlc-ui-tab">\
  4245. <div class="warlcsettings">\
  4246. <fieldset>\
  4247. <p><input type="checkbox" id="Keyboard_functions"> Enable keyboard shortcuts</p>\
  4248. <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>\
  4249. </fieldset>\
  4250. <fieldset>\
  4251. <p><input type="checkbox" id="Color_DL_links"> Color DL links</p>\
  4252. <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>\
  4253. <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>\
  4254. <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>\
  4255. <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>\
  4256. <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>\
  4257. <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>\
  4258. <p><input type="checkbox" id="Show_line_through_in_dead_links"> Show line through in dead links</p>\
  4259. <p><input type="checkbox" id="Show_black_background_in_DL_links"> Show black background in DL links</p>\
  4260. <p><input type="checkbox" id="Do_not_linkify_DL_links"> Do NOT linkify DL links</p>\
  4261. <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>\
  4262. <p><input type="checkbox" id="Display_full_links_in_link_containers"> Display full links in link containers</p><br>\
  4263. <fieldset>\
  4264. <p><input type="radio" name="warlciconset" value="0"> No icons</p>\
  4265. <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>\
  4266. <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>\
  4267. <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>\
  4268. </fieldset>\
  4269. </fieldset>\
  4270. <fieldset>\
  4271. <div id="sites"><input type="checkbox" id="Autocheck"> Autocheck</div><br><div id="configinfo">Script starts check automatically.</div><br>\
  4272. </fieldset>\
  4273. <fieldset>\
  4274. <div id="sites"><input type="checkbox" id="Show_progress_stats"> Show progress stats</div><br>\
  4275. </fieldset>\
  4276. <fieldset>\
  4277. <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>\
  4278. </fieldset>\
  4279. <fieldset>\
  4280. <p><input type="checkbox" id="Enable_Anonymizer"> Enable Anonymizer</div><div id="bulk">EXPERIMENTAL Note: Checkbox does not work use CTRL+ALT+Z.</p>\
  4281. <div id="sites"><label for="refAnonymizer">Refererer anonymizing service</label><input type="text" id="refAnonymizer" value="' + Ref_anonymize_service + '"></div>\
  4282. </fieldset>\
  4283. </div>\
  4284. </div>\
  4285. <div id="tabs-4" class="warlc-ui-tab">\
  4286. <p><b>Author:</b> <a href="http://www.warlc.5gbfree.com/viewtopic.php?f=12&t=12">mental</a></p>\
  4287. <br />\
  4288. <p><b>Currently supported:</b><br>\
  4289. Filehostings: ' + allHostNames.length + '<br />\
  4290. Containers: ' + allContainerNames.length + '<br />\
  4291. Obsolete sites: ' + allObsoleteNames.length + '<br /></p>\
  4292. <br />\
  4293. <p><b>Based on:</b><br>\
  4294. <a href="http://userscripts-mirror.org/scripts/show/125631.html">W.A.R. Links Checker - Dev</a></p>\
  4295. <br />\
  4296. <p><b>Uses:</b></p>\
  4297. <p>adam_3\'s <a href="http://userscripts-mirror.org/scripts/show/2254">Linkify ting</a> (modified)</p>\
  4298. <p><a href="http://jquery.com/">jQuery</a> JavaScript Library</p>\
  4299. <br />\
  4300. <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>\
  4301. </div>\
  4302. </div>\
  4303. </div>\
  4304. </div>';
  4305. $('body').append('<div id="hideshow">' + configurationinnerHTML + '</div>');
  4306. $("#warlc-conf-tabs").tabs({ fx: { opacity: 'toggle', duration: 'fast' } });
  4307. $("#imghideshow").click(function(event){$("#hideshow").hide(); event.preventDefault();});
  4308. var elmHostList = document.getElementById("warlcsitelist1");
  4309. var elmContainerList = document.getElementById("warlcsitelist2");
  4310. buildSettings();
  4311. buildSitelist("", allHostNames, elmHostList);
  4312. buildSitelist("", allContainerNames, elmContainerList);
  4313. if (DEBUG_MODE)
  4314. {
  4315. //log all sites availability status
  4316. diagSites();
  4317. }
  4318. //handler for checkbox state change
  4319. function changeConfiguration(e)
  4320. {
  4321. var element = e.target;
  4322.  
  4323. if (element.type == 'checkbox')
  4324. {
  4325. if (element.checked == 1)
  4326. {
  4327. GM_setValue(element.id, true);
  4328. }
  4329. else
  4330. {
  4331. GM_setValue(element.id, false);
  4332. }
  4333.  
  4334. }
  4335. setVariables();
  4336. }
  4337.  
  4338. //Selects all filehosting checkboxes
  4339. function selectAll()
  4340. {
  4341. $(":checkbox:visible:not(:checked)").prop("checked",true)
  4342. .each(function(index, element){GM_setValue(this.id, true)});
  4343. }
  4344.  
  4345. //Deselects all filehosting checkboxes
  4346. function selectNone()
  4347. {
  4348. $(":checkbox:visible:checked").prop("checked",false)
  4349. .each(function(index, element){GM_setValue(this.id, false)});
  4350. }
  4351.  
  4352. //Inverts filehosting checkboxes selection
  4353. function selectInvert()
  4354. {
  4355. var $checked = $(":checkbox:visible:checked");
  4356. var $unchecked = $(":checkbox:visible:not(:checked)");
  4357. $unchecked.prop("checked",true)
  4358. .each(function(index, element){GM_setValue(this.id, true)});
  4359. $checked.prop("checked",false)
  4360. .each(function(index, element){GM_setValue(this.id, false)});
  4361. }
  4362. //toggles anonymizer on off
  4363. function Enable_Anonymizer()
  4364. {
  4365. var $checked = $(":checkbox:visible:checked");
  4366. var $unchecked = $(":checkbox:visible:not(:checked)");
  4367. $unchecked.prop("checked",true)
  4368. .each(function(index, element){GM_setValue(this.id, true)});
  4369. $checked.prop("checked",false)
  4370. .each(function(index, element){GM_setValue(this.id, false)});
  4371. }
  4372.  
  4373. function changeRefAnonymizer(){
  4374. GM_setValue("Ref_anonymize_service", $("#refAnonymizer").attr("value"));
  4375. }
  4376.  
  4377. //Sets live links color
  4378. function changeColorLive()
  4379. {
  4380. var inColorLive = document.getElementById("inputColorLive");
  4381. inColorLive.style.background = inColorLive.value;
  4382. GM_setValue("Live_links_color", inColorLive.value);
  4383. }
  4384.  
  4385. //Sets dead links color
  4386. function changeColorDead()
  4387. {
  4388. var inColorDead = document.getElementById("inputColorDead");
  4389. inColorDead.style.background = inColorDead.value;
  4390. GM_setValue("Dead_links_color", inColorDead.value);
  4391. }
  4392.  
  4393. //Sets temp. unavailable links color
  4394. function changeColorTemp()
  4395. {
  4396. var inColorTemp = document.getElementById("inputColorTemp");
  4397. inColorTemp.style.background = inColorTemp.value;
  4398. GM_setValue("Temp_unavailable_links_color", inColorTemp.value);
  4399. }
  4400.  
  4401. //Sets temp. unavailable links color
  4402. function changeColorCont()
  4403. {
  4404. var inColorCont = document.getElementById("inputColorCont");
  4405. inColorCont.style.background = inColorCont.value;
  4406. GM_setValue("Container_links_color", inColorCont.value);
  4407. }
  4408. //Sets premium. links color
  4409. function changeColorprem()
  4410. {
  4411. var inColorprem = document.getElementById("inputColorprem");
  4412. inColorprem.style.background = inColorprem.value;
  4413. GM_setValue("Premium_links_color", inColorprem.value);
  4414. }
  4415.  
  4416. //Diagnose sites for availability
  4417. function diagSites()
  4418. {
  4419. var boxes = document.getElementById("warlcsitelist1").getElementsByTagName("input");
  4420.  
  4421. for (var i = 0, n = boxes.length - 1; i < n; i++)
  4422. {
  4423. if (boxes[i].type == "checkbox")
  4424. {
  4425. checkAvailability(boxes[i]);
  4426. }
  4427. }
  4428.  
  4429. boxes = document.getElementById("warlcsitelist2").getElementsByTagName("input");
  4430.  
  4431. for (var i = 0, n = boxes.length - 1; i < n; i++)
  4432. {
  4433. if (boxes[i].type == "checkbox")
  4434. {
  4435. checkAvailability(boxes[i]);
  4436. }
  4437. }
  4438.  
  4439. function checkAvailability(cbElm)
  4440. {
  4441. var cb = cbElm;
  4442. GM_xmlhttpRequest(
  4443. {
  4444. method: 'HEAD',
  4445. url: 'http://' + cb.nextSibling.textContent.replace(' ', ''),
  4446. headers: {
  4447. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  4448. 'Accept': 'text/xml',
  4449. 'Referer': ""
  4450. },
  4451. onload: 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. onerror: function (result)
  4459. {
  4460. if (result.status != 200)
  4461. {
  4462. GM_log(cb.nextSibling.textContent + ' --- status: [' + result.status + '] ' + result.statusText + ', final url: ' + result.finalUrl);
  4463. }
  4464. }
  4465. });
  4466. }
  4467. }
  4468. function buildSettings()
  4469. {
  4470. $(".warlcsettings :checkbox").each(function(){
  4471. $(this).prop("checked", GM_getValue($(this).attr("id")))
  4472. .click(function(e){
  4473. GM_setValue($(this).attr("id"), $(this).prop("checked"));
  4474. setVariables();
  4475. });
  4476. })
  4477. }
  4478. //Dynamic build of host list
  4479. //param search [string] searches for hostnames matching search substring
  4480. //param siteNames [array] array of site names
  4481. //param targetNode [DOM Node] where the list should be built
  4482. // first child node is replaced
  4483. function buildSitelist(search, siteNames, targetNode)
  4484. {
  4485. var searchRegex = new RegExp("\\|?([\\w\\.-]*" + search.replace(/\./g,"\\.").replace(/-/g, "\\-") + "[\\w\\.-]*)\\|?", "i");
  4486. var $targetNode = $(targetNode).empty();
  4487. var searchedSite = "";
  4488. $.each(siteNames, function(i, site){
  4489. if (searchedSite = site.match(searchRegex))
  4490. {
  4491. var baseSite = site.replace(/\|.+/, ""); //filehosting main domain
  4492. //ensuring backward compatibility with the rest of code, to be refactored later
  4493. var oldRSLCvalue = "Check_" + baseSite.replace(/\|.+/, "").replace(/\./g,"_dot_").replace(/-/g, "_dash_") + "_links";
  4494. //
  4495. $targetNode.append('<input type="checkbox" id="' + oldRSLCvalue +'" />\
  4496. <label for="' + oldRSLCvalue + '">' + searchedSite[1] + '</label>' +
  4497. ((searchedSite[1] != baseSite) ? ('<div id="note"> ( ~ ' + baseSite + ' )</div>') : (""))
  4498. );
  4499. $("#" + oldRSLCvalue).prop("checked", GM_getValue(oldRSLCvalue, false))
  4500. .change(changeConfiguration);
  4501. $targetNode.append('<br />');
  4502. }
  4503. });
  4504. $targetNode.append("<hr>");
  4505. //obsolete hosts checkbox
  4506. $targetNode.append('<input type="checkbox" id="Obsolete_file_hosts" /><label for="Obsolete_file_hosts">Obsolete file hosts</label>');
  4507. $("#Obsolete_file_hosts").prop("checked", GM_getValue("Obsolete_file_hosts", false))
  4508. .change(changeConfiguration);
  4509. $targetNode.append('<br />');
  4510. var foundName = "";
  4511. $.each(allObsoleteNames, function(i, site){
  4512. if (foundName = allObsoleteNames[i].match(searchRegex))
  4513. {
  4514. $targetNode.append('<div id="note">' + foundName[1] + '</div>');
  4515. }
  4516. })
  4517. }
  4518. var hostSearchBox = document.getElementById("hostSearchBox");
  4519. hostSearchBox.addEventListener('keyup', function(){buildSitelist(hostSearchBox.value, allHostNames, elmHostList);}, false);
  4520. var hostSearchBox2 = document.getElementById("hostSearchBox2");
  4521. hostSearchBox2.addEventListener('keyup', function(){buildSitelist(hostSearchBox2.value, allContainerNames, elmContainerList);}, false);
  4522. $(".warlc-ui-select-all").click(selectAll).button();
  4523. $(".warlc-ui-select-none").click(selectNone).button();
  4524. $(".warlc-ui-select-invert").click(selectInvert).button();
  4525. $(".warlc-ui-buttonset").buttonset();
  4526. var inColorLive = document.getElementById("inputColorLive");
  4527. inColorLive.addEventListener('keyup', changeColorLive, false);
  4528.  
  4529. var inColorDead = document.getElementById("inputColorDead");
  4530. inColorDead.addEventListener('keyup', changeColorDead, false);
  4531.  
  4532. var inColorTemp = document.getElementById("inputColorTemp");
  4533. inColorTemp.addEventListener('keyup', changeColorTemp, false);
  4534.  
  4535. var inColorCont = document.getElementById("inputColorCont");
  4536. inColorCont.addEventListener('keyup', changeColorCont, false);
  4537. var inColorprem = document.getElementById("inputColorprem");
  4538. inColorprem.addEventListener('keyup', changeColorprem, false);
  4539. $("#refAnonymizer").change(changeRefAnonymizer);
  4540. //buttons and edit boxes init end
  4541.  
  4542. //icon sets radio buttons
  4543. var radioButtons = document.getElementsByName("warlciconset");
  4544. radioButtons[Icon_set].checked = "checked";
  4545.  
  4546. radioButtons[0].addEventListener("change", updateIconSet);
  4547. radioButtons[1].addEventListener("change", updateIconSet);
  4548. radioButtons[2].addEventListener("change", updateIconSet);
  4549. radioButtons[3].addEventListener("change", updateIconSet);
  4550. function updateIconSet()
  4551. {
  4552. GM_setValue("Icon_set", this.value * 1);
  4553. }
  4554. //
  4555. $('#showCustomRulesReference').click(function(e){
  4556. e.preventDefault();
  4557. $('#customRulesReference').toggle();
  4558. });
  4559. $('#Custom_rules_text')
  4560. .val(Custom_rules_text)
  4561. .change(saveCustomRules);
  4562. function saveCustomRules(e)
  4563. {
  4564. var cr = parseCustomRules(this.value);
  4565. if (cr.info.length)
  4566. 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, ' '));
  4567. GM_setValue('Custom_rules_text', this.value);
  4568. GM_setValue('last_custom_rules_nag', ''+new Date().getTime()); //reset nag
  4569. }
  4570. }
  4571.  
  4572. //begin standard link checking algorithm
  4573. function start(filterId)
  4574. {
  4575. var doNotLinkify = Do_not_linkify_DL_links;
  4576.  
  4577. // USER SELECTED FILE HOSTS INITIALIZATION START
  4578. var http_file_hosts = new Array(); //standard hostings
  4579. var http_file_hosts_coded = new Array(); //hostings which has to be decoded to obtain real checkable link
  4580. var http_file_hosts_obsolete = new Array(); //dead hostings
  4581. var http_file_hosts_headers_only = new Array(); //hostings with direct download, must be handled via headers only
  4582.  
  4583. initFileHosts();
  4584. initFileHostsHeadersOnly();
  4585. initFileHostsCustom(); //CustomRules
  4586. // USER SELECTED FILE HOSTS INITIALIZATION END
  4587.  
  4588. // LINKIFICATION START
  4589. var totalxpath = '';
  4590. var totalxpathcoded = '';
  4591. var totalxpathobsolete = '';
  4592. var totalxpathheadersonly = '';
  4593. var totalourls = '';
  4594.  
  4595. var filehostLen = http_file_hosts.length;
  4596. var filehostCodedLen = http_file_hosts_coded.length;
  4597. var filehostObsoleteLen = http_file_hosts_obsolete.length;
  4598. var filehostHeadersOnlyLen = http_file_hosts_headers_only.length;
  4599.  
  4600. var filehostIdx = filehostLen;
  4601. var filehostCodedIdx = filehostCodedLen;
  4602. var filehostObsoleteIdx = filehostObsoleteLen;
  4603. var filehostHeadersOnlyIdx = filehostHeadersOnlyLen;
  4604.  
  4605. if ((filehostIdx == 0) && (filehostCodedIdx == 0) && (filehostHeadersOnlyIdx == 0) && (filehostObsoleteIdx == 0))
  4606. return;
  4607.  
  4608. while (filehostIdx--)
  4609. {
  4610. totalourls += http_file_hosts[filehostIdx][0] + '|';
  4611. totalxpath += http_file_hosts[filehostIdx][4] + '|';
  4612. }
  4613.  
  4614. while (filehostCodedIdx--)
  4615. {
  4616. totalourls += http_file_hosts_coded[filehostCodedIdx][0] + '|';
  4617. totalxpathcoded += http_file_hosts_coded[filehostCodedIdx][3] + '|';
  4618. }
  4619.  
  4620. while (filehostObsoleteIdx--)
  4621. {
  4622. totalourls += http_file_hosts_obsolete[filehostObsoleteIdx][0] + '|';
  4623. totalxpathobsolete += http_file_hosts_obsolete[filehostObsoleteIdx][1] + '|';
  4624. }
  4625.  
  4626. while (filehostHeadersOnlyIdx--)
  4627. {
  4628. totalourls += http_file_hosts_headers_only[filehostHeadersOnlyIdx][0] + '|';
  4629. totalxpathheadersonly += http_file_hosts_headers_only[filehostHeadersOnlyIdx][3] + '|';
  4630. }
  4631.  
  4632. totalourls = totalourls.replace(/\|$/g, "");
  4633. //TODO: further refactoring needed
  4634. totalxpath = totalxpath.replace(/\]\|\/\/a\[/g, " or ");
  4635. totalxpath = totalxpath.replace(/\]\|/, ')]');
  4636. totalxpathcoded = totalxpathcoded.replace(/\]\|\/\/a\[/g, " or ");
  4637. totalxpathcoded = totalxpathcoded.replace(/\]\|/, ')]');
  4638. totalxpathobsolete = totalxpathobsolete.replace(/\]\|\/\/a\[/g, " or ");
  4639. totalxpathobsolete = totalxpathobsolete.replace(/\]\|/, ')]');
  4640. totalxpathheadersonly = totalxpathheadersonly.replace(/\]\|\/\/a\[/g, " or ");
  4641. totalxpathheadersonly = totalxpathheadersonly.replace(/\]\|/, ')]');
  4642. if (filterId != null) //insert id restriction in the xpath
  4643. {
  4644. totalxpath = totalxpath.replace(/\[/g, "[@class='" + filterId + "' and (");
  4645. totalxpathcoded = totalxpathcoded.replace(/\[/g, "[@class='" + filterId + "' and (");
  4646. totalxpathobsolete = totalxpathobsolete.replace(/\[/g, "[@class='" + filterId + "' and (");
  4647. totalxpathheadersonly = totalxpathheadersonly.replace(/\[/g, "[@class='" + filterId + "' and (");
  4648. }
  4649. else
  4650. {
  4651. totalxpath = totalxpath.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4652. totalxpathcoded = totalxpathcoded.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4653. totalxpathobsolete = totalxpathobsolete.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4654. totalxpathheadersonly = totalxpathheadersonly.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4655. }
  4656. linkify(totalourls);
  4657. //LINKIFICATION END
  4658. //ENCRYPTED LINKS PROCESSING START
  4659. if (http_file_hosts_coded.length > 0)
  4660. {
  4661. var linksCoded = document.evaluate(totalxpathcoded, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4662.  
  4663. // decrypt coded links (redirects, link protectors etc.)
  4664. if (linksCoded.snapshotLength > 0)
  4665. {
  4666. var link;
  4667. var reallinkreg;
  4668. var reallinkcorrection;
  4669.  
  4670. if (filterId == null)
  4671. {
  4672. cLinksTotal += linksCoded.snapshotLength;
  4673. }
  4674.  
  4675. var y = linksCoded.snapshotLength - 1;
  4676. do
  4677. {
  4678. // linksCoded.snapshotItem(y).id = 'processing_link';
  4679. link = linksCoded.snapshotItem(y);
  4680. filehostIdx = filehostCodedLen;
  4681. while (filehostIdx--)
  4682. {
  4683. if (link.href.match(http_file_hosts_coded[filehostIdx][0]))
  4684. {
  4685. link.href = link.href.replace(/http:\/\/.*?(?:\?|=)http:\/\//, 'http://');
  4686. reallinkreg = http_file_hosts_coded[filehostIdx][1];
  4687. reallinkcorrection = http_file_hosts_coded[filehostIdx][2];
  4688.  
  4689. decurl(link, reallinkreg, reallinkcorrection);
  4690. break;
  4691. }
  4692. }
  4693. }
  4694. while (y--);
  4695. }
  4696. }
  4697. //ENCRYPTED LINKS PROCESSING END
  4698.  
  4699. //STANDARD LINKCHECKING START
  4700. if (http_file_hosts.length > 0)
  4701. {
  4702. var lianks = document.evaluate(totalxpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4703.  
  4704. if (filterId == null)
  4705. {
  4706. cLinksTotal += lianks.snapshotLength;
  4707. }
  4708.  
  4709. if (lianks.snapshotLength > 0)
  4710. {
  4711. var link;
  4712.  
  4713. var URL = "";
  4714. var name = "";
  4715. var isAliveRegex = "";
  4716. var isDeadRegex = "";
  4717. var isUnavaRegex = "";
  4718. var ispremRegex = "";
  4719. var tryLoop = false;
  4720.  
  4721. var y = lianks.snapshotLength;
  4722.  
  4723. while (y--)
  4724. {
  4725. link = lianks.snapshotItem(y);
  4726.  
  4727. filehostIdx = filehostLen;
  4728. while (filehostIdx--)
  4729. {
  4730. if (link.href.match(http_file_hosts[filehostIdx][0]))
  4731. {
  4732. link.href = link.href.replace(/http:\/\/.*?http:\/\//, 'http://'); //anonymizers
  4733. isAliveRegex = http_file_hosts[filehostIdx][1];
  4734. isDeadRegex = http_file_hosts[filehostIdx][2];
  4735. isUnavaRegex = http_file_hosts[filehostIdx][3];
  4736. ispremRegex = http_file_hosts[filehostIdx][6];
  4737. tryLoop = http_file_hosts[filehostIdx][5];
  4738.  
  4739. geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, tryLoop);
  4740.  
  4741. break;
  4742. }
  4743. }
  4744. }
  4745. }
  4746. }
  4747. //STANDARD LINKCHECKING END
  4748. //OBSOLETE FILE HOSTS PROCESSING START
  4749. if (filehostObsoleteLen > 0)
  4750. {
  4751. var obsoletelinks = document.evaluate(totalxpathobsolete, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4752.  
  4753. var obsoleteLink;
  4754.  
  4755. //check links
  4756. if (obsoletelinks.snapshotLength > 0)
  4757. {
  4758. var y = obsoletelinks.snapshotLength;
  4759.  
  4760. if (filterId == null)
  4761. {
  4762. cLinksTotal += y;
  4763. }
  4764.  
  4765. while (y--)
  4766. {
  4767. obsoleteLink = obsoletelinks.snapshotItem(y);
  4768.  
  4769. if (Display_tooltip_info)
  4770. {
  4771. obsoleteLink.warlc_error = 'Cause of error: <b>Obsolete filehosting.</b>';
  4772. }
  4773. displayTheCheckedLink(obsoleteLink, 'adead_link');
  4774. }
  4775. }
  4776. }
  4777. //OBSOLETE FILE HOSTS PROCESSING END
  4778.  
  4779. //DIRECT LINKCHECKING START
  4780. if (http_file_hosts_headers_only.length > 0)
  4781. {
  4782. var links = document.evaluate(totalxpathheadersonly, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4783.  
  4784. //check links
  4785. if (links.snapshotLength > 0)
  4786. {
  4787. var link;
  4788. var isAliveRegex;
  4789. var isDeadRegex;
  4790. var ispremRegex;
  4791.  
  4792. var y = links.snapshotLength;
  4793.  
  4794.  
  4795. if (filterId == null)
  4796. {
  4797. cLinksTotal += y;
  4798. }
  4799.  
  4800. while (y--)
  4801. {
  4802. // links.snapshotItem(y).id = 'processing_link';
  4803. link = links.snapshotItem(y);
  4804. filehostIdx = filehostHeadersOnlyLen;
  4805. while (filehostIdx--)
  4806. {
  4807. if (link.href.match(http_file_hosts_headers_only[filehostIdx][0]))
  4808. {
  4809. link.href = link.href.replace(/http:\/\/.*?(?:\?|=)http:\/\//, 'http://');
  4810. isAliveRegex = http_file_hosts_headers_only[filehostIdx][1];
  4811. isDeadRegex = http_file_hosts_headers_only[filehostIdx][2];
  4812. ispremRegex = http_file_hosts_headers_only[filehostIdx][3];
  4813.  
  4814. geturlHeader(link, isAliveRegex, isDeadRegex, ispremRegex);
  4815.  
  4816. break;
  4817. }
  4818. }
  4819. }
  4820.  
  4821. }
  4822. }
  4823. //DIRECT LINKCHECKING END
  4824.  
  4825.  
  4826. //finds the real url on the page, replaces link.href with it and calls geturl
  4827. function decurl(link, reallinkreg, reallinkcorrection)
  4828. {
  4829.  
  4830. GM_xmlhttpRequest(
  4831. {
  4832. method: 'GET',
  4833. url: link.href,
  4834. headers: {
  4835. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  4836. 'Accept': 'text/xml',
  4837. 'Referer': ""
  4838. },
  4839. onload: function (result)
  4840. {
  4841. // cLinksProcessed++;
  4842.  
  4843. var reallink = result.responseText.match(reallinkreg)[0];
  4844. reallink = reallink.replace(new RegExp(reallinkcorrection, "g"), "");
  4845.  
  4846. link.href = reallink;
  4847.  
  4848. var i = http_file_hosts.length - 1;
  4849. do
  4850. {
  4851. if ((reallink.match(http_file_hosts[i][0])))
  4852. {
  4853. link.href = link.href.replace(/http:\/\/.*?\?http:\/\//, 'http://');
  4854. var isAliveRegex = http_file_hosts[i][1];
  4855. var isDeadRegex = http_file_hosts[i][2];
  4856. var isUnavaRegex = http_file_hosts[i][3];
  4857. var ispremRegex = http_file_hosts[i][4];
  4858.  
  4859. geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, 50);
  4860.  
  4861. break;
  4862. }
  4863. }
  4864. while (i--);
  4865. }
  4866. });
  4867. }
  4868.  
  4869. function randUA()
  4870. {
  4871. //TODO
  4872. }
  4873. //Processes link
  4874. //
  4875. // [string] link link URL
  4876. // [string] isAliveRegex alive link regex
  4877. // [string] isDeadRegex dead link regex
  4878. // [string] isUnavaRegex unavailable link regex
  4879. // [string] ispremRegex premium link regex
  4880. // [boolean] tryLoop repeats request until succeeded
  4881. function geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, tryLoop)
  4882. {
  4883. GM_xmlhttpRequest(
  4884. {
  4885. method: 'GET',
  4886. url: link.href,
  4887. headers: {
  4888. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  4889. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  4890. 'Referer': ""
  4891. },
  4892. onload: function (result)
  4893. {
  4894. var res = result.responseText;
  4895. if (result.responseHeaders.match(/Content-Disposition: attachment; filename=/))//direct download, simple version
  4896. {
  4897. displayTheCheckedLink(link, 'alive_link');
  4898. return;
  4899. }
  4900.  
  4901. if (res.match(isAliveRegex))
  4902. {
  4903. displayTheCheckedLink(link, 'alive_link');
  4904. return;
  4905. }
  4906.  
  4907. if (res.match(isDeadRegex))
  4908. {
  4909. displayTheCheckedLink(link, 'adead_link');
  4910. return;
  4911. }
  4912.  
  4913. if (isUnavaRegex && res.match(isUnavaRegex))
  4914. {
  4915. displayTheCheckedLink(link, 'unava_link');
  4916. return;
  4917. }
  4918. if (res.match(ispremRegex))
  4919. {
  4920. displayTheCheckedLink(link, 'prem_link');
  4921. return;
  4922. }
  4923.  
  4924. var resStatus = result.status;
  4925.  
  4926. if (resStatus == 404)
  4927. {
  4928. displayTheCheckedLink(link, 'adead_link');
  4929. }
  4930. if (resStatus == 500 || resStatus == 503 || resStatus == 403) //not found/available/temp. unava
  4931. {
  4932. if (tryLoop)
  4933. {
  4934. //wait 1-5 seconds and repeat the request
  4935. setTimeout(function(){geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, tryLoop)}, 1000 + (Math.random() * 4000));
  4936. }
  4937. else
  4938. {
  4939. displayTheCheckedLink(link, 'unava_link');
  4940. }
  4941.  
  4942. return;
  4943. }
  4944. },
  4945. onerror: function ()
  4946. {
  4947. displayTheCheckedLink(link, 'unava_link');
  4948. }
  4949. });
  4950. }
  4951.  
  4952. function geturlHeader(link, isAliveRegex, isDeadRegex, ispremRegex)
  4953. {
  4954. GM_xmlhttpRequest(
  4955. {
  4956. method: 'HEAD',
  4957. url: link.href,
  4958. headers: {
  4959. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  4960. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  4961. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  4962. 'Referer': ""
  4963. },
  4964. onload: function (result)
  4965. {
  4966. var resStatus = result.status;
  4967. var resHeaders = "";
  4968. if (resStatus == 403 || resStatus == 404 || resStatus == 500) //not found/available
  4969. {
  4970. displayTheCheckedLink(link, 'adead_link');
  4971. return;
  4972. }
  4973.  
  4974. resHeaders = result.responseHeaders;
  4975.  
  4976. if (resHeaders.match(isDeadRegex))
  4977. {
  4978. displayTheCheckedLink(link, 'adead_link');
  4979. return;
  4980. }
  4981.  
  4982. if (resHeaders.match(isAliveRegex))
  4983. {
  4984. displayTheCheckedLink(link, 'alive_link');
  4985. return;
  4986. }
  4987. if (resHeaders.match(ispremRegex))
  4988. {
  4989. displayTheCheckedLink(link, 'prem_link');
  4990. return;
  4991. }
  4992. },
  4993. onerror: function ()
  4994. {
  4995. displayTheCheckedLink(link, 'unava_link');
  4996. }
  4997. });
  4998. }
  4999.  
  5000. //Delinkfifies the <a> element object
  5001. function delinkifyLink(link)
  5002. {
  5003. var spanElm = document.createElement("span");
  5004. spanElm.className = link.className;
  5005. spanElm.innerHTML = link.innerHTML;
  5006.  
  5007. if (Display_tooltip_info)
  5008. {
  5009. spanElm.href = link.href;
  5010. spanElm.warlc_error = link.warlc_error;
  5011. switch (link.className){
  5012. case "alive_link": spanElm.addEventListener("mouseover", displayTooltipInfo, false); break
  5013. case "adead_link": spanElm.addEventListener("mouseover", displayTooltipError, false); break;
  5014. case "unava_link": //reserved
  5015. case "prem_link": spanElm.addEventListener("mouseover", displayTooltipError, false); break;
  5016. default:
  5017. }
  5018. }
  5019. link.parentNode.replaceChild(spanElm, link);
  5020. }
  5021.  
  5022. //Assigns result status to the <a> element object and calls delinkifying eventually
  5023. //Possible result states: adead_link, alive_link, unava_link, prem_link
  5024. function displayTheCheckedLink(link, resultStatus)
  5025. {
  5026. link.className = resultStatus;
  5027. link.href = Ref_anonymize_service + link.href;
  5028. if (Display_tooltip_info)
  5029. {
  5030. switch (resultStatus){
  5031. case "alive_link": link.addEventListener("mouseover", displayTooltipInfo, false); break
  5032. case "adead_link": link.addEventListener("mouseover", displayTooltipError, false); break;
  5033. case "unava_link": //reserved
  5034. case "prem_link": link.addEventListener("mouseover", displayTooltipInfo, false); break
  5035. default:
  5036. }
  5037. }
  5038. if (doNotLinkify)
  5039. {
  5040. delinkifyLink(link);
  5041. }
  5042. cLinksProcessed++;
  5043.  
  5044. if (resultStatus == "alive_link")
  5045. {
  5046. cLinksAlive++;
  5047. return;
  5048. }
  5049.  
  5050. if (resultStatus == "adead_link")
  5051. {
  5052. cLinksDead++;
  5053. return;
  5054. }
  5055.  
  5056. if (resultStatus == "unava_link")
  5057. {
  5058. cLinksUnava++;
  5059. }
  5060. if (resultStatus == "prem_link")
  5061. {
  5062. cLinksprem++;
  5063. return;
  5064. }
  5065. }
  5066.  
  5067.  
  5068. function initFileHosts()
  5069. {
  5070.  
  5071. function addObsoleteHost(linkRegex, xpathEx)
  5072. {
  5073. var host = new Array(2);
  5074. host[0] = linkRegex;
  5075. host[1] = xpathEx;
  5076. http_file_hosts_obsolete.push(host);
  5077. }
  5078.  
  5079. //obsolete file hosts init start
  5080. if (Obsolete_file_hosts)
  5081. {
  5082. addObsoleteHost("uloz\.cz\/show\/file","//a[contains(@href,'uloz.cz')]");
  5083. addObsoleteHost("storage\\.to\/get","//a[contains(@href,'storage.to')]");
  5084. addObsoleteHost("iskladka\\.cz\/download","//a[contains(@href,'iskladka.cz')]");
  5085. addObsoleteHost("file-rack\\.com\/files","//a[contains(@href,'file-rack.com')]");
  5086. addObsoleteHost("fast-load\\.net\/(\/)?index","//a[contains(@href,'fast-load.net')]");
  5087. addObsoleteHost("subory\\.sk\/download","//a[contains(@href,'subory.sk')]");
  5088. addObsoleteHost("bigandfree\\.com\/\\d+","//a[contains(@href,'bigandfree.com')]");
  5089. addObsoleteHost("fileop\\.com\/\\w+","//a[contains(@href,'fileop.com')]");
  5090. addObsoleteHost("mujsoubor\\.cz\/file\/","//a[contains(@href,'mujsoubor.cz')]");
  5091. addObsoleteHost("sendfile\\.to\/\\w+","//a[contains(@href,'sendfile.to')]");
  5092. addObsoleteHost("superfastfile\\.com\/\\w+","//a[contains(@href,'superfastfile.com')]");
  5093. addObsoleteHost("quickyshare\\.com\/\\w+","//a[contains(@href,'quickyshare.com/')]");
  5094. addObsoleteHost("duckload\\.com\/(?:d|play)","//a[contains(@href,'duckload.com')]");
  5095. addObsoleteHost("uploadstore\\.net\/\\w+","//a[contains(@href,'uploadstore.net')]");
  5096. addObsoleteHost("meinupload\\.com\/dl\/\\d+","//a[contains(@href,'meinupload.com/dl')]");
  5097. addObsoleteHost("dualshare\\.com\/\\w+","//a[contains(@href,'dualshare.com')]");
  5098. addObsoleteHost("2xupload\\.(?:to|de)\/file\/\\w+","//a[contains(@href,'2xupload.to') or contains(@href,'2xupload.de')]");
  5099. addObsoleteHost("oxedion\\.com\/index\\.php\/download\/\\w+","//a[contains(@href,'oxedion.com/index')]");
  5100. addObsoleteHost("uploadline\\.com\/\\d+","//a[contains(@href,'uploadline.com')]");
  5101. addObsoleteHost("dll\\.bz\/file\/\\d+","//a[contains(@href,'dll.bz/file')]");
  5102. addObsoleteHost("movieshare\\.in\/\\w+","//a[contains(@href,'movieshare.in')]");
  5103. addObsoleteHost("milledrive\\.com\/files\/\\d+","//a[contains(@href,'milledrive.com')]");
  5104. addObsoleteHost("quickupload\\.net\/\\w+","//a[contains(@href,'quickupload.net')]");
  5105. addObsoleteHost("safelink\\.in\/\\w+","//a[contains(@href,'safelink.in')]");
  5106. addObsoleteHost("pyramidfiles\\.com\/\\w+","//a[contains(@href,'pyramidfiles.com/')]");
  5107. addObsoleteHost("(?:cloudnator|shragle)\\.com\/files","//a[contains(@href,'cloudnator.com/files') or contains(@href,'shragle.com/files')]");
  5108. addObsoleteHost("batshare\\.com\/\\w+","//a[contains(@href,'batshare.com/')]");
  5109. addObsoleteHost("bitroad\\.net\/download","//a[contains(@href,'bitroad.net/download')]");
  5110. addObsoleteHost("metadivx\\.com\/\\w+","//a[contains(@href,'metadivx.com')]");
  5111. addObsoleteHost("filegaze\\.com\/\\w+","//a[contains(@href,'filegaze.com/')]");
  5112. addObsoleteHost("bulletupload\\.com\/\\w+","//a[contains(@href,'bulletupload.com/')]");
  5113. addObsoleteHost("sharefilehost\\.com\/\\w+","//a[contains(@href,'sharefilehost.com/')]");
  5114. addObsoleteHost("fireuploads\\.net\/\\w+","//a[contains(@href,'fireuploads.net/')]");
  5115. addObsoleteHost("divxlink\\.com\/\\w+","//a[contains(@href,'divxlink.com/')]");
  5116. addObsoleteHost("bzlink\\.us\/\\w+","//a[contains(@href,'bzlink.us/')]");
  5117. addObsoleteHost("filetechnology\\.com\/\\w+","//a[contains(@href,'filetechnology.com/')]");
  5118. addObsoleteHost("filecosy\\.com\/\\w+","//a[contains(@href,'filecosy.com/')]");
  5119. addObsoleteHost("fileserver\\.cc\/\\w+","//a[contains(@href,'fileserver.cc/')]");
  5120. addObsoleteHost("shafiles\\.me\/\\w+","//a[contains(@href,'shafiles.me/')]");
  5121. addObsoleteHost("xfileshare\\.eu\/\\w+","//a[contains(@href,'xfileshare.eu/')]");
  5122. addObsoleteHost("uploadboost\\.com\/\\w+","//a[contains(@href,'uploadboost.com/')]");
  5123. addObsoleteHost("uploadoz\\.com\/\\w+","//a[contains(@href,'uploadoz.com/')]");
  5124. addObsoleteHost("ihostia\\.com\/\\w+","//a[contains(@href,'ihostia.com/')]");
  5125. addObsoleteHost("shareupload\\.com\/\\w+","//a[contains(@href,'shareupload.com/')]");
  5126. addObsoleteHost("ovfile\\.com\/\\w+","//a[contains(@href,'ovfile.com/')]");
  5127. addObsoleteHost("stahuj\\.to\/\\w+","//a[contains(@href,'stahuj.to/')]");
  5128. addObsoleteHost("gigfiles\\.net\/\\w+","//a[contains(@href,'gigfiles.net/')]");
  5129. addObsoleteHost("vidhog\\.com\/\\w+","//a[contains(@href,'vidhog.com/')]");
  5130. addObsoleteHost("filelaser\\.com\/\\w+","//a[contains(@href,'filelaser.com/')]");
  5131. addObsoleteHost("holderfile\\.com\/\\w+","//a[contains(@href,'holderfile.com/')]");
  5132. addObsoleteHost("fileduct\\.(?:com|net)\/\\w+","//a[contains(@href,'fileduct.com/') or contains(@href,'fileduct.net')]");
  5133. addObsoleteHost("filefat\\.com\/\\w+","//a[contains(@href,'filefat.com/')]");
  5134. addObsoleteHost("restfile\\.com\/\\w+","//a[contains(@href,'restfile.com/')]");
  5135. addObsoleteHost("filemashine\\.com\\/download\/\\w+","//a[contains(@href,'filemashine.com/download')]");
  5136. addObsoleteHost("cloudnxt\\.net\/\\w+","//a[contains(@href,'cloudnxt.net/')]");
  5137. addObsoleteHost("uploadrack\\.com\/\\w+","//a[contains(@href,'uploadrack.com')]");
  5138. addObsoleteHost("teradepot\\.com\/\\w+","//a[contains(@href,'teradepot.com')]");
  5139. addObsoleteHost("dataup\\.to\/\\d+\/","//a[contains(@href,'dataup.to')]");
  5140. addObsoleteHost("upit\\.to\/file:\\d+","//a[contains(@href,'upit.to/file')]");
  5141. addObsoleteHost("badongo\\.(?:com|net)\/(?:\\w\\w\/|)(?:vid|cfile|file|pt)\/\\w+","//a[contains(@href,'badongo.com') or contains(@href,'badongo.net')]");
  5142. addObsoleteHost("driveway\\.com\/\\w+","//a[contains(@href,'driveway.com')]");
  5143. addObsoleteHost("eatlime\\.com\/download","//a[contains(@href,'eatlime.com/download')]");
  5144. addObsoleteHost("a2zuploads\\.com\/id\\w+","//a[contains(@href,'a2zuploads.com/id')]");
  5145. addObsoleteHost("friendlyfiles\\.net\/download\/\\w+\/","//a[contains(@href,'friendlyfiles.net/download')]");
  5146. addObsoleteHost("flyfile\\.us\/\\w+","//a[contains(@href,'flyfile.us')]");
  5147. addObsoleteHost("speedyshare\\.com\/\\w+","//a[contains(@href,'speedyshare.com')]");
  5148. addObsoleteHost("brontofile\\.com\/download","//a[contains(@href,'brontofile.com/download')]");
  5149. addObsoleteHost("uploadspace\\.eu\/\\w+","//a[contains(@href,'uploadspace.eu')]");
  5150. addObsoleteHost("fooget\\.com\/\\w+","//a[contains(@href,'fooget.com/')]");
  5151. addObsoleteHost("file-bit.net\/\\w+","//a[contains(@href,'file-bit.net/')]");
  5152. addObsoleteHost("keepfile\\.com\/\\w+","//a[contains(@href,'http://keepfile.com')]");
  5153. addObsoleteHost("piggyshare\\.com\/file\/\\w+","//a[contains(@href,'piggyshare.com')]");
  5154. addObsoleteHost("filecrown\\.com\/\\w+","//a[contains(@href,'filecrown.com')]");
  5155. addObsoleteHost("6giga\\.com\/\\w+","//a[contains(@href,'6giga.com')]");
  5156. addObsoleteHost("uploadjockey\\.com\/download\/\\w+","//a[contains(@href,'uploadjockey.com/download')]");
  5157. addObsoleteHost("bluehost\\.to\/dl=\\w+","//a[contains(@href,'bluehost.to')]");
  5158. addObsoleteHost("coolshare\\.cz\/stahnout\/\\w+","//a[contains(@href,'coolshare.cz/stahnout')]");
  5159. addObsoleteHost("filegu\\.ru\/f\/\\w+","//a[contains(@href,'filegu.ru/f')]");
  5160. addObsoleteHost("filebase\\.to\/files\/\\d+\/","//a[contains(@href,'filebase.to/files')]");
  5161. addObsoleteHost("kickload\\.com\/(?:file|get)\/","//a[contains(@href,'kickload.com/file') or contains(@href,'kickload.com/get')]");
  5162. addObsoleteHost("up-file\\.com\/files\/download\/\\w+\/","//a[contains(@href,'up-file.com/download')]");
  5163. addObsoleteHost("ezyfile\\.net\/\\w+","//a[contains(@href,'ezyfile.net/')]");
  5164. addObsoleteHost("k2files\\.com\/files","//a[contains(@href,'k2files.com/files')]");
  5165. addObsoleteHost("aiotool\\.net\/\\w+","//a[contains(@href,'aiotool.net/')]");
  5166. addObsoleteHost("xvideos\\.com\/files\/\\d+\/\\w+","//a[contains(@href,'xvideos.com/files')]");
  5167. addObsoleteHost("filebling\\.com\/dl\/\\d+\/\\d+\/\\w+","//a[contains(@href,'filebling.com/dl')]");
  5168. addObsoleteHost("loaded\\.it\/divx\/\\w+","//a[contains(@href,'loaded.it/divx')]");
  5169. addObsoleteHost("uploadcell\\.com\/\\w+\/\\w+","//a[contains(@href,'uploadcell.com')]");
  5170. addObsoleteHost("jakfile\\.com\/\\w+","//a[contains(@href,'jakfile.com/')]");
  5171. addObsoleteHost("uploadshare\\.cz\/download\/\\w+\/\\w+","//a[contains(@href,'uploadshare.cz/download')]");
  5172. addObsoleteHost("mangoshare\\.com\/\\w+","//a[contains(@href,'mangoshare.com')]");
  5173. addObsoleteHost("ugotfile\\.com\/file\/\\d+\/\\w+","//a[contains(@href,'ugotfile.com/file')]");
  5174. addObsoleteHost("filestab\\.com\/\\w+","//a[contains(@href,'filestab.com')]");
  5175. addObsoleteHost("dotavi\\.com\/\\w+\/.","//a[contains(@href,'dotavi.com/')]");
  5176. addObsoleteHost("crazyupload\\.com\/\\w+","//a[contains(@href,'crazyupload.com')]");
  5177. addObsoleteHost("gaiafile\\.com\/\\w+","//a[contains(@href,'gaiafile.com')]");
  5178. addObsoleteHost("sharejunky\\.com\/\\w+","//a[contains(@href,'sharejunky.com')]");
  5179. addObsoleteHost("fileho\\.com\/download\/\\d+","//a[contains(@href,'fileho.com/download')]");
  5180. addObsoleteHost("(?:bigandfree|BigAndFree)\\.com\/\\d+","//a[contains(@href,'bigandfree.com') or contains(@href,'BigAndFree.com')]");
  5181. addObsoleteHost("bigfile\\.in\/\\w+","//a[contains(@href,'bigfile.in')]");
  5182. addObsoleteHost("bigshare\\.eu\/download\\.php\\?id=","//a[contains(@href,'bigshare.eu/download.php')]");
  5183. addObsoleteHost("dahosting\\.org\/dl\/\\w+","//a[contains(@href,'dahosting.org/dl')]");
  5184. addObsoleteHost("digisofts\\.net\/\\w+","//a[contains(@href,'digisofts.net')]");
  5185. addObsoleteHost("file4save\\.com\/\\w+\/\\w+","//a[contains(@href,'file4save.com')]");
  5186. addObsoleteHost("filereactor\\.com\/\\w+","//a[contains(@href,'filereactor.com/')]");
  5187. addObsoleteHost("filechip\\.com\/\\w+","//a[contains(@href,'filechip.com')]");
  5188. addObsoleteHost("filescloud\\.com\/\\w+\/\\w+","//a[contains(@href,'filescloud.com')]");
  5189. addObsoleteHost("saveqube\\.com\/getfile\/\\w+","//a[contains(@href,'saveqube.com/getfile')]");
  5190. addObsoleteHost("www2\\.turboshare\\.de\/v\/\\d+","//a[contains(@href,'turboshare.de/v')]");
  5191. addObsoleteHost("z-upload\\.com\/\\w+","//a[contains(@href,'z-upload.com')]");
  5192. addObsoleteHost("youshare\\.com\/view\\.php","//a[contains(@href,'youshare.com/view')]");
  5193. addObsoleteHost("jiffyupload\\.com\/\\w+","//a[contains(@href,'jiffyupload.com')]");
  5194. addObsoleteHost("gigeshare\\.com\/preview\/\\w+","//a[contains(@href,'gigeshare.com')]");
  5195. addObsoleteHost("datenklo\\.net\/dl","//a[contains(@href,'datenklo.net')]");
  5196. addObsoleteHost("upload\\.dj\/download\\.php\\?id=\\w+","//a[contains(@href,'upload.dj/download.php')]");
  5197. addObsoleteHost("loadfiles\\.in\/\\w+\/","//a[contains(@href,'loadfiles.in')]");
  5198. addObsoleteHost("upit\\.to\/file:\\w+\/","//a[contains(@href,'upit.to/file')]");
  5199. addObsoleteHost("zshare\\.net\/(?:download|video|audio)\/\\w+","//a[contains(@href,'zshare.net/')]");
  5200. addObsoleteHost("refile\\.net\/f\/\\?\\w+","//a[contains(@href,'refile.net/f/')]");
  5201. addObsoleteHost("dsfileshare\\.com\/download","//a[contains(@href,'dsfileshare.com/download')]");
  5202. addObsoleteHost("sharesimple\\.net\/\\w{2}\/download","//a[contains(@href,'sharesimple.net')]");
  5203. addObsoleteHost("(?:s\\d+\\.|)4files\\.net\/\\d+","//a[contains(@href,'4files.net')]");
  5204. addObsoleteHost("odsiebie\\.com\/pokaz\/\\d+","//a[contains(@href,'odsiebie.com/pokaz')]");
  5205. addObsoleteHost("filenavi\\.com\/direct\/\\w+","//a[contains(@href,'filenavi.com/direct')]");
  5206. addObsoleteHost("3oof\\.com\/\\w+","//a[contains(@href,'3oof.com/')]");
  5207. addObsoleteHost("meshwaar\\.com\/\\w+","//a[contains(@href,'meshwaar.com')]");
  5208. addObsoleteHost("maxupload\\.com\/files\/\\w+","//a[contains(@href,'maxupload.com/files')]");
  5209. addObsoleteHost("share\\.cx\/videos\/\\d+","//a[contains(@href,'share.cx/videos')]");
  5210. addObsoleteHost("atserver\\.eu\/(?:\\w{2}\/|)download\/\\d+","//a[contains(@href,'atserver.eu')]");
  5211. addObsoleteHost("file2upload\\.net\/download\/\\d+","//a[contains(@href,'file2upload.net/download')]");
  5212. addObsoleteHost("filebling\\.com\/\\w+","//a[contains(@href,'filebling.com')]");
  5213. addObsoleteHost("turboshare\\.(?:eu|com)\/files","//a[contains(@href,'turboshare.') and contains(@href,'/files')]");
  5214. addObsoleteHost("rarhost\\.com\/download","//a[contains(@href,'rarhost.com/download')]");
  5215. addObsoleteHost("isharehd\\.com\/\\w+","//a[contains(@href,'isharehd.com')]");
  5216. addObsoleteHost("datenklo\\.net\/file\\.php\\?id=\\w+","//a[contains(@href,'datenklo.net/file.php')]");
  5217. addObsoleteHost("file2share\\.biz\/download\\.php\\?id=\\w+","//a[contains(@href,'file2share.biz/download.php')]");
  5218. addObsoleteHost("savefiles\\.net\/d\/\\w+\\.html","//a[contains(@href,'savefiles.net/d')]");
  5219. addObsoleteHost("bestsharing\\.com\/files\/\\w+","//a[contains(@href,'bestsharing.com/files')]");
  5220. addObsoleteHost("filecache\\.de\/\\d+","//a[contains(@href,'filecache.de/')]");
  5221. addObsoleteHost("i741\\.com\/files\/\\w+","//a[contains(@href,'i741.com/files')]");
  5222. addObsoleteHost("dataup\\.de\/\\d+","//a[contains(@href,'dataup.de')]");
  5223. addObsoleteHost("fofly\\.com\/\\w+","//a[contains(@href,'fofly.com')]");
  5224. addObsoleteHost("shareonall\\.com\/\\w+","//a[contains(@href,'shareonall.com')]");
  5225. addObsoleteHost("sexuploader\\.com\/(?:|..\/)\\?[d|v]=\\w{8}","//a[contains(@href,'sexuploader.com')]");
  5226. 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')]");
  5227. addObsoleteHost("uploadhyper\\.com\/file\/","//a[contains(@href,'uploadhyper.com')]");
  5228. addObsoleteHost("filespawn\\.com\/file\/","//a[contains(@href,'filespawn.com')]");
  5229. addObsoleteHost("caizzii\\.com\/(?:download|\\?file=)","//a[contains(@href,'caizzii.com')]");
  5230. addObsoleteHost("volnyweb\\.cz\/files\/get\/[\\w-_]+","//a[contains(@href,'volnyweb.cz/files')]");
  5231. addObsoleteHost("gotupload\\.com\/\\w+","//a[contains(@href,'gotupload.com/')]");
  5232. addObsoleteHost("mooload\\.com\/new\/file\\.php\\?file=files\/\\d+\/\\d+","//a[contains(@href,'mooload.com/new/file')]");
  5233. addObsoleteHost("z\\d+\\.zupload\\.com\/download\\.php\\?file=getfile&filepath=\\d+","//a[contains(@href,'zupload.com/download')]");
  5234. addObsoleteHost("mytempdir\\.com\/\\d+","//a[contains(@href,'mytempdir.com/')]");
  5235. addObsoleteHost("usershare\\.net\/\\w+","//a[contains(@href,'usershare.net/')]");
  5236. addObsoleteHost("qshare\\.com\/get\/\\d+\/.","//a[contains(@href,'qshare.com/get')]");
  5237. addObsoleteHost("filescash\\.net\/file\/\\d+","//a[contains(@href,'filescash.net/file')]");
  5238. addObsoleteHost("metahyper\\.com\/\\w+","//a[contains(@href,'metahyper.com/')]");
  5239. addObsoleteHost("combozip\\.com\/\\w+","//a[contains(@href,'combozip.com/')]");
  5240. addObsoleteHost("anonstream\\.com\/get_\\w+","//a[contains(@href,'anonstream.com/get_')]");
  5241. addObsoleteHost("x7\\.to\/\\w+","//a[contains(@href,'x7.to/')]");
  5242. addObsoleteHost("uploadbox\\.com\/files\/\\w+","//a[contains(@href,'uploadbox.com/files')]");
  5243. addObsoleteHost("(?:flyupload\\.)?(?:enterupload|flyupload)\\.com\/[\\?\\w]+","//a[contains(@href,'enterupload.com/') or contains(@href,'flyupload.com/')]");
  5244. addObsoleteHost("filepoint\\.de\/dl\/\\w+","//a[contains(@href,'filepoint.de/dl')]");
  5245. addObsoleteHost("icushare\\.com\/\\w+","//a[contains(@href,'icushare.com/')]");
  5246. addObsoleteHost("oron\\.com\/\\w+","//a[contains(@href,'oron.com/')]");
  5247. addObsoleteHost("mystream\\.to\/file\\-\\d+","//a[contains(@href,'mystream.to/file')]");
  5248. addObsoleteHost("x-fs\\.com\/download\\.php\\?id=\\w+","//a[contains(@href,'x-fs.com/download')]");
  5249. addObsoleteHost("srapid\\.eu\/\\w+","//a[contains(@href,'srapid.eu/')]");
  5250. addObsoleteHost("shareshared\\.com\/\\w+","//a[contains(@href,'shareshared.com/')]");
  5251. addObsoleteHost("sosame\\.cz\/\\w+","//a[contains(@href,'sosame.cz/')]");
  5252. addObsoleteHost("s\\d+\\.filesdump\\.com\/file\/\\w+","//a[contains(@href,'filesdump.com/file')]");
  5253. addObsoleteHost("2-klicks\\.de\/\\?d=\\w+","//a[contains(@href,'2-klicks.de/?d=')]");
  5254. addObsoleteHost("silofiles\\.com\/file\/\\d+","//a[contains(@href,'silofiles.com/file')]");
  5255. addObsoleteHost("upfile\\.in\/\\w+","//a[contains(@href,'upfile.in/')]");
  5256. addObsoleteHost("filehook\\.com\/\\w+","//a[contains(@href,'filehook.com/')]");
  5257. addObsoleteHost("mojofile\\.com\/\\w+","//a[contains(@href,'mojofile.com/')]");
  5258. addObsoleteHost("cloudcache\\.cc\/\\w+","//a[contains(@href,'cloudcache.cc/')]");
  5259. addObsoleteHost("1hostclick\\.com\/\\w+","//a[contains(@href,'1hostclick.com/')]");
  5260. addObsoleteHost("4bytez\\.com\/\\w+","//a[contains(@href,'4bytez.com/')]");
  5261. addObsoleteHost("uploadking\\.com\/\\w+","//a[contains(@href,'uploadking.com/')]");
  5262. addObsoleteHost("nahraj\\.cz\/(?:content|down)\/\\w+","//a[contains(@href,'nahraj.cz/')]");
  5263. addObsoleteHost("megarapid\\.eu\/files\/\\d+","//a[contains(@href,'megarapid.eu/files')]");
  5264. addObsoleteHost("(?:fileserve|uploadstation)\\.com\/(?:file|list)\/\\w+","//a[contains(@href,'fileserve.com/') or contains(@href,'uploadstation.com/')]");
  5265. addObsoleteHost("uploadhere\\.com\/\\w+","//a[contains(@href,'uploadhere.com/')]");
  5266. addObsoleteHost("dualshare\\.com\/\\w+","//a[contains(@href,'dualshare.com/')]");
  5267. addObsoleteHost("yourfilehost\\.com\/media","//a[contains(@href,'yourfilehost.com/media')]");
  5268. addObsoleteHost("ftp2share\\.com\/file\/\\w+","//a[contains(@href,'ftp2share.com/file')]");
  5269. addObsoleteHost("storeandserve\\.com\/download\/\\d+","//a[contains(@href,'storeandserve.com/download')]");
  5270. addObsoleteHost("mountfile\\.com\/file(?:\/\\w+){2}","//a[contains(@href,'mountfile.com/file')]");
  5271. addObsoleteHost("save\\.am\/files\/\\w+","//a[contains(@href,'save.am/files')]");
  5272. addObsoleteHost("transitfiles\\.com\/dl\/\\w+","//a[contains(@href,'transitfiles.com/dl')]");
  5273. addObsoleteHost("smartuploader\\.com\/file\\.php\\?f=\\d+","//a[contains(@href,'smartuploader.com/file.php?=')]");
  5274. addObsoleteHost("skipfile\\.com\/\\w+","//a[contains(@href,'skipfile.com/')]");
  5275. addObsoleteHost("stahnu\\.to\/[\\w\\?]+","//a[contains(@href,'stahnu.to/')]");
  5276. addObsoleteHost("flyshare\.cz\/(?:stahni\/|)\\d+","//a[contains(@href,'flyshare.cz/')]");
  5277. addObsoleteHost("(?:ddlani\\.me|ddlanime\\.com)\/\\w+","//a[contains(@href,'ddlani.me/') or contains(@href,'ddlanime.com/')]");
  5278. addObsoleteHost("loadly\\.com\/\\w+","//a[contains(@href,'loadly.com/')]");
  5279. addObsoleteHost("groovefile\\.com\/\\w+","//a[contains(@href,'groovefile.com/')]");
  5280. addObsoleteHost("filezlot\\.com\/\\w+","//a[contains(@href,'filezlot.com/')]");
  5281. addObsoleteHost("shareator\\.(?:net|com)\/\\w+","//a[contains(@href,'shareator.')]");
  5282. addObsoleteHost("yabadaba\\.ru\/files\/","//a[contains(@href,'yabadaba.ru/files/')]");
  5283. addObsoleteHost("rapidhide\\.com\/download\\.php\\?file=\\w+","//a[contains(@href,'rapidhide.com/download.php')]");
  5284. addObsoleteHost("filejungle\\.com\/[fl]\/\\w+","//a[contains(@href,'filejungle.com/')]");
  5285. addObsoleteHost("kewlshare\\.com\/dl\/\\d+","//a[contains(@href,'kewlshare.com/dl')]");
  5286. addObsoleteHost("petandrive\\.com\/file\/\\w+","//a[contains(@href,'petandrive.com/file')]");
  5287. addObsoleteHost("onionshare\\.com\/\\w+","//a[contains(@href,'onionshare.com/')]");
  5288. addObsoleteHost("rapidable\\.com\/\\w+\/download\\.php\\?id=","//a[contains(@href,'rapidable.com/')]");
  5289. addObsoleteHost("filesdump\\.com\/file\/\\w+\/\\d+","//a[contains(@href,'filesdump.com/file')]");
  5290. addObsoleteHost("file2box\\.(?:net|com)\/\\w+","//a[contains(@href,'file2box.')]");
  5291. addObsoleteHost("(?:filesonic|sharingmatrix|wupload)(?:\\.\\w+){1,2}\/(?:file|folder)\/\\w+","//a[contains(@href,'filesonic.') or contains(@href,'sharingmatrix.com') or contains(@href,'wupload.')]");
  5292. // addObsoleteHost("wizzupload\\.com\/\\w+","//a[contains(@href,'wizzupload.com/')]");
  5293. addObsoleteHost("bloggerarticles\\.com\/\\w+","//a[contains(@href,'bloggerarticles.com/')]");
  5294. addObsoleteHost("mojedata\\.sk/","//a[contains(@href,'mojedata.sk/')]");
  5295. addObsoleteHost("sharpfile\\.com\/\\w+","//a[contains(@href,'sharpfile.com/')]");
  5296. addObsoleteHost("upgrand\\.com\/\\w+","//a[contains(@href,'upgrand.com/')]");
  5297. addObsoleteHost("nasdilej\\.cz\/\\w+","//a[contains(@href,'nasdilej.cz/')]");
  5298. addObsoleteHost("mediatack\\.cz\/stahuj/\\w+","//a[contains(@href,'mediatack.cz/stahuj/')]");
  5299. addObsoleteHost("share-it\\.to\/file/\\w+","//a[contains(@href,'share-it.to/file/')]");
  5300. addObsoleteHost("primeupload\\.com\/file/\\w+","//a[contains(@href,'primeupload.com/file/')]");
  5301. addObsoleteHost("(?:uploads\\.glumbo|glumbouploads)\\.com\/\\w+","//a[contains(@href,'uploads.glumbo.com') or contains(@href,'glumbouploads.com')]");
  5302. addObsoleteHost("filebeer\\.info\/\\w+","//a[contains(@href,'filebeer.info/')]");
  5303. addObsoleteHost("baberepublic\\.com\/link\/\\w+","//a[contains(@href,'baberepublic.com/link/')]");
  5304. addObsoleteHost("xtu\\.me\/\\w+","//a[contains(@href,'xtu.me/')]");
  5305. addObsoleteHost("sharebase\\.de\/files\/\\w+","//a[contains(@href,'sharebase.de/files/')]");
  5306. addObsoleteHost("filerobo\\.com\/\\w+","//a[contains(@href,'filerobo.com/')]");
  5307. addObsoleteHost("filevelocity\\.com\/\\w+","//a[contains(@href,'filevelocity.com/')]");
  5308. addObsoleteHost("filezpro\\.com\/\\w+","//a[contains(@href,'filezpro.com/')]");
  5309. addObsoleteHost("file4sharing\\.com\/\\w+","//a[contains(@href,'file4sharing.com/')]");
  5310. addObsoleteHost("cing\\.be\/\\w+","//a[contains(@href,'cing.be/')]");
  5311. addObsoleteHost("ufile\\.eu\/\\w+","//a[contains(@href,'ufile.eu/')]");
  5312. addObsoleteHost("pigsonic\\.com\/\\w+","//a[contains(@href,'pigsonic.com/')]");
  5313. addObsoleteHost("fileupped\\.com\/\\w+","//a[contains(@href,'fileupped.com/')]");
  5314. addObsoleteHost("sharerun\\.com\/\\w+","//a[contains(@href,'sharerun.com/')]");
  5315. addObsoleteHost("rapidslnare\\.com\/\\w+","//a[contains(@href,'rapidslnare.com/')]");
  5316. addObsoleteHost("monsteruploads\\.eu\/\\w+","//a[contains(@href,'monsteruploads.eu/')]");
  5317. addObsoleteHost("b9bb\\.com\/\\w+","//a[contains(@href,'b9bb.com/')]");
  5318. addObsoleteHost("jamber\\.info\/\\w+","//a[contains(@href,'jamber.info/')]");
  5319. addObsoleteHost("(?:megaftp|MegaFTP)\\.com\/\\w+","//a[contains(@href,'megaftp.com/') or contains(@href,'MegaFTP.com/')]");
  5320. addObsoleteHost("desiupload\\.net\/\\?d=\\w+","//a[contains(@href,'desiupload.net/')]");
  5321. addObsoleteHost("file27\\.com\/\\w+","//a[contains(@href,'file27.com/')]");
  5322. addObsoleteHost("yastorage\\.com\/\\w+","//a[contains(@href,'yastorage.com/')]");
  5323. addObsoleteHost("filehost\\.ws\/\\w+","//a[contains(@href,'filehost.ws/')]");
  5324. addObsoleteHost("copyload\\.com\/\\w+","//a[contains(@href,'copyload.com/')]");
  5325. addObsoleteHost("venusfile\\.com\/\\w+","//a[contains(@href,'venusfile.com/')]");
  5326. addObsoleteHost("aieshare\\.com\/\\w+","//a[contains(@href,'aieshare.com/')]");
  5327. addObsoleteHost("fileza\\.net\/\\w+","//a[contains(@href,'fileza.net/')]");
  5328. addObsoleteHost("filerose\\.com\/\\w+","//a[contains(@href,'filerose.com/')]");
  5329. addObsoleteHost("squillion\\.com\/\\w+","//a[contains(@href,'squillion.com/')]");
  5330. addObsoleteHost("fileprohost\\.com\/\\w+","//a[contains(@href,'fileprohost.com/')]");
  5331. addObsoleteHost("bitbonus\\.com\/download\/\\w+","//a[contains(@href,'bitbonus.com/')]");
  5332. addObsoleteHost("warserver\\.cz\/\\w+","//a[contains(@href,'warserver.cz/')]");
  5333. addObsoleteHost("uload\\.to\/\\w+","//a[contains(@href,'uload.to/')]");
  5334. addObsoleteHost("sharedbit\\.net\/\\w+","//a[contains(@href,'sharedbit.net/')]");
  5335. addObsoleteHost("megaload\\.it\/\\w+","//a[contains(@href,'megaload.it/')]");
  5336. addObsoleteHost("filewinds\\.com\/\\w+","//a[contains(@href,'filewinds.com/')]");
  5337. addObsoleteHost("uploadcore\\.com\/\\w+","//a[contains(@href,'uploadcore.com/')]");
  5338. addObsoleteHost("syfiles\\.com\/\\w+","//a[contains(@href,'syfiles.com/')]");
  5339. addObsoleteHost("eyesfile\\.com\/\\w+","//a[contains(@href,'eyesfile.com/')]");
  5340. addObsoleteHost("hotfile\\.com\/\\w+","//a[contains(@href,'hotfile.com/')]");
  5341. addObsoleteHost("superupl\\.com\/\\w+","//a[contains(@href,'superupl.com/')]");
  5342. addObsoleteHost("oteupload\\.com\/\\w+","//a[contains(@href,'oteupload.com/')]");
  5343. addObsoleteHost("henchfile\\.com\/\\w+","//a[contains(@href,'henchfile.com/')]");
  5344. addObsoleteHost("HenchFile\\.com\/\\w+","//a[contains(@href,'HenchFile.com/')]");
  5345. addObsoleteHost("filegag\\.com\/\\w+","//a[contains(@href,'filegag.com/')]");
  5346. addObsoleteHost("filedefend\\.com\/\\w+","//a[contains(@href,'filedefend.com/')]");
  5347. addObsoleteHost("hotfiles\\.ws\/\\w+","//a[contains(@href,'hotfiles.ws/')]");
  5348. addObsoleteHost("share-rapid\\.com\/\\w+","//a[contains(@href,'share-rapid.com/')]");
  5349. //addObsoleteHost("sharerapid\\.cz\/\\w+","//a[contains(@href,'sharerapid.cz/')]");
  5350. addObsoleteHost("rapids\\.cz\/\\w+","//a[contains(@href,'rapids.cz/')]");
  5351. addObsoleteHost("share-credit\\.cz\/\\w+","//a[contains(@href,'share-credit.cz/')]");
  5352. addObsoleteHost("share-central\\.cz\/\\w+","//a[contains(@href,'share-central.cz/')]");
  5353. addObsoleteHost("share-ms\\.cz\/\\w+","//a[contains(@href,'share-ms.cz/')]");
  5354. addObsoleteHost("share-net\\.cz\/\\w+","//a[contains(@href,'share-net.cz/')]");
  5355. addObsoleteHost("srapid\\.cz\/\\w+","//a[contains(@href,'srapid.cz/')]");
  5356. addObsoleteHost("share-rapid\\.cz\/\\w+","//a[contains(@href,'share-rapid.cz/')]");
  5357. addObsoleteHost("wooupload\\.com\/\\w+","//a[contains(@href,'wooupload.com/')]");
  5358. addObsoleteHost("megabitshare\\.com\/\\w+","//a[contains(@href,'megabitshare.com/')]");
  5359. addObsoleteHost("uploking\\.com\/\\w+","//a[contains(@href,'uploking.com/')]");
  5360. addObsoleteHost("esnips\\.com\/\\w+","//a[contains(@href,'esnips.com/')]");
  5361. addObsoleteHost("uplly\\.com\/\\w+","//a[contains(@href,'uplly.com/')]");
  5362. addObsoleteHost("ufox\\.com\/\\w+","//a[contains(@href,'ufox.com/')]");
  5363. addObsoleteHost("clz\\.to\/\\w+","//a[contains(@href,'clz.to/')]");
  5364. addObsoleteHost("cloudzer\\.net\/\\w+","//a[contains(@href,'cloudzer.net/')]");
  5365. addObsoleteHost("cloudzer\\.com\/\\w+","//a[contains(@href,'cloudzer.com/')]");
  5366. addObsoleteHost("extabit\\.com\/\\w+","//a[contains(@href,'extabit.com/')]");
  5367. addObsoleteHost("uploadwaste\\.com\/\\w+","//a[contains(@href,'uploadwaste.com/')]");
  5368. addObsoleteHost("247upload\\.com\/\\w+","//a[contains(@href,'uploadwaste.com/')]");
  5369. addObsoleteHost("2download\\.de\/\\w+","//a[contains(@href,'2download.de/')]");
  5370. addObsoleteHost("4fastfile\\.com\/\\w+","//a[contains(@href,'4fastfile.com/')]");
  5371. addObsoleteHost("asixfiles\\.com\/\\w+","//a[contains(@href,'asixfiles.com/')]");
  5372. addObsoleteHost("berofile\\.com\/\\w+","//a[contains(@href,'berofile.com/')]");
  5373. addObsoleteHost("bigupload\\.com\/\\w+","//a[contains(@href,'bigupload.com/')]");
  5374. addObsoleteHost("cepzo\\.com\/\\w+","//a[contains(@href,'cepzo.com/')]");
  5375. addObsoleteHost("czshare\\.com\/\\w+","//a[contains(@href,'czshare.com/')]");
  5376. addObsoleteHost("clouds\\.to\/\\w+","//a[contains(@href,'clouds.to/')]");
  5377. addObsoleteHost("cobrashare\\.sk\/\\w+","//a[contains(@href,'cobrashare.sk/')]");
  5378. addObsoleteHost("coraldrive\\.net\/\\w+","//a[contains(@href,'coraldrive.net/')]");
  5379. addObsoleteHost("cyberlocker\\.ch\/\\w+","//a[contains(@href,'cyberlocker.ch/')]");
  5380. addObsoleteHost("darkport\\.org\/\\w+","//a[contains(@href,'darkport.org/')]");
  5381. addObsoleteHost("dark-uploads\\.com\/\\w+","//a[contains(@href,'dark-uploads.com/')]");
  5382. addObsoleteHost("davvas\\.com\/\\w+","//a[contains(@href,'davvas.com/')]");
  5383. addObsoleteHost("enigmashare\\.com\/\\w+","//a[contains(@href,'enigmashare.com/')]");
  5384. addObsoleteHost("erofly\\.cz\/\\w+","//a[contains(@href,'erofly.cz/')]");
  5385. addObsoleteHost("fastsonic\\.net\/\\w+","//a[contains(@href,'fastsonic.net/')]");
  5386. addObsoleteHost("filebox\\.com\/\\w+","//a[contains(@href,'filebox.com/')]");
  5387. addObsoleteHost("filecity\\.net\/\\w+","//a[contains(@href,'filecity.net/')]");
  5388. addObsoleteHost("filedap\\.com\/\\w+","//a[contains(@href,'filedap.com/')]");
  5389. addObsoleteHost("filedino\\.com\/\\w+","//a[contains(@href,'filedino.com/')]");
  5390. addObsoleteHost("filedownloads\\.org\/\\w+","//a[contains(@href,'filedownloads.org/')]");
  5391. addObsoleteHost("filefolks\\.com\/\\w+","//a[contains(@href,'filefolks.com/')]");
  5392. addObsoleteHost("fileking\\.co\/\\w+","//a[contains(@href,'fileking.co/')]");
  5393. addObsoleteHost("filemates\\.com\/\\w+","//a[contains(@href,'filemates.com/')]");
  5394. addObsoleteHost("files\\.to\/\\w+","//a[contains(@href,'files.to/')]");
  5395. addObsoleteHost("files2k\\.eu\/\\w+","//a[contains(@href,'files2k.eu/')]");
  5396. addObsoleteHost("filesector\\.cc\/\\w+","//a[contains(@href,'filesector.cc/')]");
  5397. addObsoleteHost("filesega\\.com\/\\w+","//a[contains(@href,'filesega.com/')]");
  5398. addObsoleteHost("filesend\\.net\/\\w+","//a[contains(@href,'filesend.net/')]");
  5399. addObsoleteHost("filestay\\.com\/\\w+","//a[contains(@href,'filestay.com/')]");
  5400. addObsoleteHost("filestrum\\.com\/\\w+","//a[contains(@href,'filestrum.com/')]");
  5401. addObsoleteHost("fileuplo\\.de\/\\w+","//a[contains(@href,'fileuplo.de/')]");
  5402. addObsoleteHost("fileupup\\.com\/\\w+","//a[contains(@href,'fileupup.com/')]");
  5403. addObsoleteHost("forunesia\\.com\/\\w+","//a[contains(@href,'forunesia.com/')]");
  5404. addObsoleteHost("freeuploads\\.fr\/\\w+","//a[contains(@href,'freeuploads.fr/')]");
  5405. addObsoleteHost("uploa\\.dk\/\\w+","//a[contains(@href,'uploa.dk/')]");
  5406. addObsoleteHost("getthebit\\.com\/\\w+","//a[contains(@href,'getthebit.com/')]");
  5407. addObsoleteHost("getzilla\\.net\/\\w+","//a[contains(@href,'getzilla.net/')]");
  5408. addObsoleteHost("goldfile\\.eu\/\\w+","//a[contains(@href,'goldfile.eu/')]");
  5409. addObsoleteHost("good\\.com\/\\w+","//a[contains(@href,'good.com/')]");
  5410. addObsoleteHost("grupload\\.com\/\\w+","//a[contains(@href,'grupload.com/')]");
  5411. addObsoleteHost("hellfile\\.com\/\\w+","//a[contains(@href,'hellfile.com/')]");
  5412. addObsoleteHost("hipfile\\.com\/\\w+","//a[contains(@href,'hipfile.com/')]");
  5413. addObsoleteHost("hitfile\\.com\/\\w+","//a[contains(@href,'hitfile.com/')]");
  5414. addObsoleteHost("hulkfile\\.eu\/\\w+","//a[contains(@href,'hulkfile.eu/')]");
  5415. addObsoleteHost("i-filez\\.com\/\\w+","//a[contains(@href,'i-filez.com/')]");
  5416. addObsoleteHost("ifile\\.ws\/\\w+","//a[contains(@href,'ifile.ws/')]");
  5417. addObsoleteHost("kupload\\.org\/\\w+","//a[contains(@href,'kupload.org/')]");
  5418. addObsoleteHost("duckfile\\.net\/\\w+","//a[contains(@href,'duckfile.net/')]");
  5419. addObsoleteHost("packupload\\.com\/\\w+","//a[contains(@href,'packupload.com/')]");
  5420. addObsoleteHost("terafile\\.com\/\\w+","//a[contains(@href,'terafile.com/')]");
  5421. addObsoleteHost("terafile\\.co\/\\w+","//a[contains(@href,'terafile.co/')]");
  5422. addObsoleteHost("fileom\\.com\/\\w+","//a[contains(@href,'fileom.com/')]");
  5423. addObsoleteHost("luckyshare\\.net\/\\w+","//a[contains(@href,'luckyshare.net/')]");
  5424. addObsoleteHost("lemuploads\\.com\/\\w+","//a[contains(@href,'lemuploads.com/')]");
  5425. addObsoleteHost("limelinx\\.com\/\\w+","//a[contains(@href,'limelinx.com/')]");
  5426. addObsoleteHost("maxshare\\.pl\/\\w+","//a[contains(@href,'maxshare.pl/')]");
  5427. addObsoleteHost("megarelease\\.org\/\\w+","//a[contains(@href,'megarelease.org/')]");
  5428. addObsoleteHost("megashare\\.com\/\\w+","//a[contains(@href,'megashare.com/')]");
  5429. addObsoleteHost("minus\\.com\/\\w+","//a[contains(@href,'minus.com/')]");
  5430. addObsoleteHost("mlfat4arab\\.com\/\\w+","//a[contains(@href,'mlfat4arab.com/')]");
  5431. addObsoleteHost("multishare\\.cz\/\\w+","//a[contains(@href,'multishare.cz/')]");
  5432. addObsoleteHost("nirafile\\.com\/\\w+","//a[contains(@href,'nirafile.com/')]");
  5433. addObsoleteHost("ok2upload\\.com\/\\w+","//a[contains(@href,'ok2upload.com/')]");
  5434. addObsoleteHost("peejeshare\\.com\/\\w+","//a[contains(@href,'peejeshare.com/')]");
  5435. addObsoleteHost("premiuns\\.org\/\\w+","//a[contains(@href,'premiuns.org/')]");
  5436. addObsoleteHost("przeklej\\.net\/\\w+","//a[contains(@href,'przeklej.net/')]");
  5437. addObsoleteHost("qkup\\.net\/\\w+","//a[contains(@href,'qkup.net/')]");
  5438. addObsoleteHost("rapidupload\\.sk\/\\w+","//a[contains(@href,'rapidupload.sk/')]");
  5439. addObsoleteHost("rockdizfile\\.com\/\\w+","//a[contains(@href,'rockdizfile.com/')]");
  5440. addObsoleteHost("rocketfile\\.net\/\\w+","//a[contains(@href,'rocketfile.net/')]");
  5441. addObsoleteHost("share-now\\.net\/\\w+","//a[contains(@href,'share-now.net/')]");
  5442. addObsoleteHost("share76\\.com\/\\w+","//a[contains(@href,'share76.com/')]");
  5443. addObsoleteHost("sharebees\\.com\/\\w+","//a[contains(@href,'sharebees.com/')]");
  5444. addObsoleteHost("sharefiles\\.co\/\\w+","//a[contains(@href,'sharefiles.co/')]");
  5445. addObsoleteHost("slingfile\\.com\/\\w+","//a[contains(@href,'slingfile.com/')]");
  5446. addObsoleteHost("sms4file\\.com\/\\w+","//a[contains(@href,'sms4file.com/')]");
  5447. addObsoleteHost("space4file\\.com\/\\w+","//a[contains(@href,'space4file.com/')]");
  5448. addObsoleteHost("tigershare\\.net\/\\w+","//a[contains(@href,'tigershare.net/')]");
  5449. addObsoleteHost("toucansharing\\.com\/\\w+","//a[contains(@href,'toucansharing.com/')]");
  5450. addObsoleteHost("ubuntuone\\.com\/\\w+","//a[contains(@href,'ubuntuone.com/')]");
  5451. addObsoleteHost("unextfiles\\.com\/\\w+","//a[contains(@href,'unextfiles.com/')]");
  5452. addObsoleteHost("upaj\\.pl\/\\w+","//a[contains(@href,'upaj.pl/')]");
  5453. addObsoleteHost("upfile\\.biz\/\\w+","//a[contains(@href,'upfile.biz/')]");
  5454. addObsoleteHost("uploadbin\\.net\/\\w+","//a[contains(@href,'uploadbin.net/')]");
  5455. addObsoleteHost("uploadic\\.com\/\\w+","//a[contains(@href,'uploadic.com/')]");
  5456. addObsoleteHost("uploadinc\\.com\/\\w+","//a[contains(@href,'uploadinc.com/')]");
  5457. addObsoleteHost("uploading4u\\.eu\/\\w+","//a[contains(@href,'uploading4u.eu/')]");
  5458. addObsoleteHost("uploadjet\\.net\/\\w+","//a[contains(@href,'uploadjet.net/')]");
  5459. addObsoleteHost("uploadorb\\.com\/\\w+","//a[contains(@href,'uploadorb.com/')]");
  5460. addObsoleteHost("upthe\\.net\/\\w+","//a[contains(@href,'upthe.net/')]");
  5461. addObsoleteHost("uptorch\\.com\/\\w+","//a[contains(@href,'uptorch.com/')]");
  5462. addObsoleteHost("vidbox\\.yt\/\\w+","//a[contains(@href,'vidbox.yt/')]");
  5463. addObsoleteHost("videozer\\.com\/\\w+","//a[contains(@href,'videozer.com/')]");
  5464. addObsoleteHost("vreer\\.com\/\\w+","//a[contains(@href,'vreer.com/')]");
  5465. addObsoleteHost("wallobit\\.com\/\\w+","//a[contains(@href,'wallobit.com/')]");
  5466. addObsoleteHost("zooupload\\.com\/\\w+","//a[contains(@href,'zooupload.com/')]");
  5467. addObsoleteHost("xerver\\.co\/\\w+","//a[contains(@href,'xerver.co/')]");
  5468. addObsoleteHost("privatefiles\\.com\/\\w+","//a[contains(@href,'privatefiles.com/')]");
  5469. addObsoleteHost("bitshare\\.com\/\\w+","//a[contains(@href,'bitshare.com/')]");
  5470. addObsoleteHost("asfile\\.com\/\\w+","//a[contains(@href,'asfile.com/')]");
  5471. addObsoleteHost("billionuploads\\.com\/\\w+","//a[contains(@href,'billionuploads.com/')]");
  5472. addObsoleteHost("\\*{7,100}\/[\\w\\d]+","//a[contains(@href,'*******/')]");
  5473. addObsoleteHost("filesaur\\.com\/\\w+","//a[contains(@href,'filesaur.com/')]");
  5474. addObsoleteHost("rapidshare\\.com\/\\w+","//a[contains(@href,'rapidshare.com/')]");
  5475. addObsoleteHost("rapidshare\\.ru\/\\w+","//a[contains(@href,'rapidshare.ru/')]");
  5476. addObsoleteHost("filesfrog\\.net\/\\w+","//a[contains(@href,'filesfrog.net/')]");
  5477. addObsoleteHost("4savefile\\.com\/\\w+","//a[contains(@href,'4savefile.com/')]");
  5478. addObsoleteHost("bayfiles\\.com\/\\w+","//a[contains(@href,'bayfiles.com/')]");
  5479. addObsoleteHost("bayfiles\\.net\/\\w+","//a[contains(@href,'bayfiles.net/')]");
  5480. addObsoleteHost("dodane\\.pl\/\\w+","//a[contains(@href,'dodane.pl/')]");
  5481. addObsoleteHost("dotsemper\\.com\/\\w+","//a[contains(@href,'dotsemper.com/')]");
  5482. addObsoleteHost("egofiles\\.com\/\\w+","//a[contains(@href,'egofiles.com/')]");
  5483. addObsoleteHost("epicshare\\.net\/\\w+","//a[contains(@href,'epicshare.net/')]");
  5484. addObsoleteHost("fiberupload\\.net\/\\w+","//a[contains(@href,'fiberupload.net/')]");
  5485. addObsoleteHost("filemonkey\\.in\/\\w+","//a[contains(@href,'filemonkey.in/')]");
  5486. addObsoleteHost("filemonster\\.net\/\\w+","//a[contains(@href,'filemonster.net/')]");
  5487. addObsoleteHost("filepom\\.com\/\\w+","//a[contains(@href,'filepom.com/')]");
  5488. addObsoleteHost("filesbb\\.com\/\\w+","//a[contains(@href,'filesbb.com/')]");
  5489. addObsoleteHost("fileshareup\\.com\/\\w+","//a[contains(@href,'fileshareup.com/')]");
  5490. addObsoleteHost("filevice\\.com\/\\w+","//a[contains(@href,'filevice.com/')]");
  5491. addObsoleteHost("gigaup\\.fr\/\\w+","//a[contains(@href,'gigaup.fr/')]");
  5492. // addObsoleteHost("inafile\\.com\/\\w+","//a[contains(@href,'inafile.com/')]");
  5493. addObsoleteHost("isavelink\\.com\/\\w+","//a[contains(@href,'isavelink.com/')]");
  5494. addObsoleteHost("loombo\\.com\/\\w+","//a[contains(@href,'loombo.com/')]");
  5495. addObsoleteHost("megafiles\\.se\/\\w+","//a[contains(@href,'megafiles.se/')]");
  5496. addObsoleteHost("migupload\\.com\/\\w+","//a[contains(@href,'migupload.com/')]");
  5497. addObsoleteHost("mydisc\\.net\/\\w+","//a[contains(@href,'mydisc.net/')]");
  5498. addObsoleteHost("nitrobits\\.com\/\\w+","//a[contains(@href,'nitrobits.com/')]");
  5499. addObsoleteHost("potload\\.com\/\\w+","//a[contains(@href,'potload.com/')]");
  5500. addObsoleteHost("redload\\.net\/\\w+","//a[contains(@href,'redload.net/')]");
  5501. addObsoleteHost("shareprofi\\.com\/\\w+","//a[contains(@href,'shareprofi.com/')]");
  5502. addObsoleteHost("sharesuper\\.info\/\\w+","//a[contains(@href,'sharesuper.info/')]");
  5503. addObsoleteHost("sinhro\\.net\/\\w+","//a[contains(@href,'sinhro.net/')]");
  5504. addObsoleteHost("speedfile\\.cz\/\\w+","//a[contains(@href,'speedfile.cz/')]");
  5505. addObsoleteHost("speedshare\\.org\/\\w+","//a[contains(@href,'speedshare.org/')]");
  5506. addObsoleteHost("storage.novoro\\.net\/\\w+","//a[contains(@href,'storage.novoro.net/')]");
  5507. addObsoleteHost("swankshare\\.com\/\\w+","//a[contains(@href,'swankshare.com/')]");
  5508. addObsoleteHost("swatupload\\.com\/\\w+","//a[contains(@href,'swatupload.com/')]");
  5509. addObsoleteHost("upafile\\.com\/\\w+","//a[contains(@href,'upafile.com/')]");
  5510. addObsoleteHost("uploadmachine\\.com\/\\w+","//a[contains(@href,'uploadmachine.com/')]");
  5511. addObsoleteHost("uploadsat\\.com\/\\w+","//a[contains(@href,'uploadsat.com/')]");
  5512. addObsoleteHost("upshared\\.com\/\\w+","//a[contains(@href,'upshared.com/')]");
  5513. addObsoleteHost("usefile\\.com\/\\w+","//a[contains(@href,'usefile.com/')]");
  5514. addObsoleteHost("yourfiles\\.to\/\\w+","//a[contains(@href,'yourfiles.to/')]");
  5515. addObsoleteHost("zomgupload\\.com\/\\w+","//a[contains(@href,'zomgupload.com/')]");
  5516. addObsoleteHost("~[\\w\\s~]*","//a[contains(@href,'//~') or contains(@href,'//www.~')]");
  5517. addObsoleteHost("filemup\\.com\/\\w+","//a[contains(@href,'filemup.com/')]");
  5518. addObsoleteHost("tuxfile\\.com\/\\w+","//a[contains(@href,'tuxfile.com/')]");
  5519. addObsoleteHost("ultramegabit\\.com\/\\w+","//a[contains(@href,'ultramegabit.com/')]");
  5520. addObsoleteHost("uploadto\\.us\/\\w+","//a[contains(@href,'uploadto.us/')]");
  5521. addObsoleteHost("filecore\\.co\\.nz\/\\w+","//a[contains(@href,'filecore.co.nz/')]");
  5522. addObsoleteHost("fileshare\\.in\\.ua\/\\w+","//a[contains(@href,'fileshare.in.ua/')]");
  5523. addObsoleteHost("firedrive\\.com\/\\w+","//a[contains(@href,'firedrive.com/')]");
  5524. addObsoleteHost("putlocker\\.com\/\\w+","//a[contains(@href,'putlocker.com/')]");
  5525. addObsoleteHost("lumfile\\.com\/\\w+","//a[contains(@href,'lumfile.com/')]");
  5526. addObsoleteHost("lumfile\\.se\/\\w+","//a[contains(@href,'lumfile.se/')]");
  5527. addObsoleteHost("lumfile\\.eu\/\\w+","//a[contains(@href,'lumfile.eu/')]");
  5528. addObsoleteHost("shared\\.com\/\\w+","//a[contains(@href,'shared.com/')]");
  5529. addObsoleteHost("stahovadlo\\.cz\/\\w+","//a[contains(@href,'stahovadlo.cz/')]");
  5530. addObsoleteHost("dizzcloud\\.com\/\\w+","//a[contains(@href,'dizzcloud.com/')]");
  5531. addObsoleteHost("ddlstorage\\.com\/\\w+","//a[contains(@href,'ddlstorage.com/')]");
  5532. addObsoleteHost("dataport\\.cz\/\\w+","//a[contains(@href,'dataport.cz/')]");
  5533. addObsoleteHost("daj\\.to\/\\w+","//a[contains(@href,'daj.to/')]");
  5534. addObsoleteHost("sockshare\\.com\/\\w+","//a[contains(@href,'sockshare.com/')]");
  5535. addObsoleteHost("2drive\\.net\/\\w+","//a[contains(@href,'2drive.net/')]");
  5536. addObsoleteHost("bl\\.st\/\\w+","//a[contains(@href,'bl.st/')]");
  5537. addObsoleteHost("uncapped-downloads\\.com\/\\w+","//a[contains(@href,'uncapped-downloads.com/')]");
  5538. addObsoleteHost("freakshare\\.net\/\\w+","//a[contains(@href,'freakshare.net/')]");
  5539. addObsoleteHost("freakshare\\.com\/\\w+","//a[contains(@href,'freakshare.com/')]");
  5540. addObsoleteHost("sharebeast\\.com\/\\w+","//a[contains(@href,'sharebeast.com/')]");
  5541. addObsoleteHost("tufiles\\.ru\/\\w+","//a[contains(@href,'tufiles.ru/')]");
  5542. addObsoleteHost("crisshare\\.com\/\\w+","//a[contains(@href,'crisshare.com/')]");
  5543. addObsoleteHost("ryushare\\.com\/\\w+","//a[contains(@href,'ryushare.com/')]");
  5544. addObsoleteHost("kingfiles\\.net\/\\w+","//a[contains(@href,'kingfiles.net/')]");
  5545. // obsolete start
  5546. }
  5547. //obsolete file hosts init end
  5548.  
  5549. function addFileHost(linkRegex, isAliveRegex, isDeadRegex, isUnavaRegex, xpathEx, tryLoop, ispremRegex)
  5550. {
  5551. var host = new Array(7);
  5552. host[0] = linkRegex;
  5553. host[1] = isAliveRegex;
  5554. host[2] = isDeadRegex;
  5555. host[3] = isUnavaRegex;
  5556. host[6] = ispremRegex;
  5557. host[4] = xpathEx;
  5558. tryLoop ? host[5] = true : host[5] = false;
  5559. http_file_hosts.push(host);
  5560. }
  5561. if (GM_getValue("Check_megafileupload_dot_com_links", false))
  5562. {
  5563. addFileHost(
  5564. "megafileupload\.com\/..\/file\/",
  5565. 'downloadbtn',
  5566. 'is not found',
  5567. 'optional--',
  5568. "//a[contains(@href,'megafileupload.com')]");
  5569. }
  5570. if (GM_getValue("Check_demo_dot_ovh_dot_eu_links", false))
  5571. {
  5572. addFileHost(
  5573. "demo\\.ovh\\.eu\/\\w+\/\\w+",
  5574. 'download\\.gif"',
  5575. 'p_point">',
  5576. 'optional--',
  5577. "//a[contains(@href,'demo.ovh.eu')]");
  5578. }
  5579. if (GM_getValue("Check_xkeepfile_dot_com_links", false))
  5580. {
  5581. addFileHost(
  5582. "xkeepfile\.com\/\\w+",
  5583. 'File has been found|Click here to download',
  5584. 'File cannot be found|class="error">',
  5585. 'optional--',
  5586. //'optional--',
  5587. "//a[contains(@href,'xkeepfile.com/') or contains(@href,'Gamesena.com/')]");
  5588. }
  5589. if (GM_getValue("Check_safelinking_dot_net_links", false))
  5590. {
  5591. addFileHost(
  5592. "safelinking\\.net\/p\/\\w+",
  5593. 'color:green;"',
  5594. 'color:(?:red|orange);"',
  5595. 'color:(?:grey|brown);"',
  5596. "//a[contains(@href,'safelinking.net/p/')]",
  5597. true);
  5598. }
  5599. /* if (GM_getValue("Check_ultramegabit_dot_com_links", false))
  5600. {
  5601. addFileHost(
  5602. "ultramegabit\\.com\/file\/details\/[\\w+-]",
  5603. 'name="recaptcha_response',
  5604. '="/folder/add"|>File (?:not found|restricted|has been deleted)|<title>ULTRAMEGABIT</title>',
  5605. 'btn-large btn-danger">|Account limitation notice|502 Bad Gateway',
  5606. "//a[contains(@href,'ultramegabit.com/file')]",
  5607. true);
  5608. } */
  5609. if (GM_getValue("Check_fastshare_dot_cz_links", false))
  5610. {
  5611. addFileHost(
  5612. "fastshare\\.cz\/\\d+\/\\w*",
  5613. 'dwntable">',
  5614. 'nebyla nalezena|nebola nájdená|nie została odnaleziona|color:red;font-weight:bold;border\\-style:dashed|<i class="fa fa-copyright"></i>',
  5615. 'optional--',
  5616. "//a[contains(@href,'fastshare.cz')]");
  5617. }
  5618. if (GM_getValue("Check_fastshare_dot_org_links", false))
  5619. {
  5620. addFileHost(
  5621. "[fF]ast[sS]hare\\.org\/download",
  5622. 'Download ">',
  5623. 'Diese Datei wurde wegen|wurde kein Dateiname',
  5624. 'optional--',
  5625. "//a[contains(@href,'fastshare.org/download') or contains(@href,'FastShare.org/download')]");
  5626. }
  5627. if (GM_getValue("Check_partage_dash_facile_dot_com_links", false))
  5628. {
  5629. addFileHost(
  5630. "partage-facile\.com\/\\w+",
  5631. 'class="title"><strong>|colspan="2"',
  5632. 'Page introuvable|class="alert-message',
  5633. 'optional--',
  5634. "//a[contains(@href,'partage-facile.com')]");
  5635. }
  5636. if (GM_getValue("Check_rapidgator_dot_net_links", false))
  5637. {
  5638. addFileHost(
  5639. "rapidgator\\.net\/file\/\\w+",
  5640. '/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',
  5641. 'Error 404|File not found|Error 500|Файл не найден|ファイルが探せませんでした|Fichier non trouvé|Archivo no encontrado|Select your plan',
  5642. 'optional--',
  5643. "//a[contains(@href,'rapidgator.net/file')]",
  5644. true
  5645. );
  5646. }
  5647. if (GM_getValue("Check_relink_dot_us_links", false))
  5648. {
  5649. addFileHost(
  5650. "relink\\.us\/(?:f\/\\w+|go\\.php\\?id=\\d+|view\\.php\\?id=\\d+)",
  5651. 'online_detail\\.png" alt="Status',
  5652. '(?:offline|partially)_detail\\.png" alt="Status|File deleted',
  5653. 'unknown_detail\\.png" alt="Status',
  5654. "//a[contains(@href,'relink.us/')]"
  5655. );
  5656. }
  5657. if (GM_getValue("Check_uploadstube_dot_de_links", false))
  5658. {
  5659. addFileHost(
  5660. "uploadstube\\.de\/download\\.php\\?file=\\d+",
  5661. 'div id="dl"',
  5662. 'Sie haben den Link falsch',
  5663. 'optional--',
  5664. "//a[contains(@href,'uploadstube.de/download.php?file=')]"
  5665. );
  5666. }
  5667. if (GM_getValue("Check_flyfiles_dot_net_links", false))
  5668. {
  5669. addFileHost(
  5670. "flyfiles\\.net\/\\w+",
  5671. 'download_button"|"Download file"',
  5672. 'File not found!|Файл не найден',
  5673. 'optional--',
  5674. "//a[contains(@href,'flyfiles.net/')]"
  5675. );
  5676. }
  5677. if (GM_getValue("Check_wikiupload_dot_com_links", false))
  5678. {
  5679. addFileHost(
  5680. "wikiupload\\.com\/\\w+",
  5681. 'download-button">',
  5682. 'Sorry, File not found',
  5683. 'optional--',
  5684. "//a[contains(@href,'wikiupload.com/')]"
  5685. );
  5686. }
  5687. if (GM_getValue("Check_hostuje_dot_net_links", false))
  5688. {
  5689. addFileHost(
  5690. "hostuje\\.net\/file\\.php\\?id=\\w+",
  5691. 'file\\.php">|Pobierz Plik',
  5692. 'Podany plik nie zosta',
  5693. 'optional--',
  5694. "//a[contains(@href,'hostuje.net/file')]"
  5695. );
  5696. }
  5697. if (GM_getValue("Check_gettyfile_dot_ru_links", false))
  5698. {
  5699. addFileHost(
  5700. "gettyfile\\.ru\/\\d+",
  5701. 'download\\.gif border',
  5702. '<center><font size="3">',
  5703. 'optional--',
  5704. "//a[contains(@href,'gettyfile.ru/')]"
  5705. );
  5706. }
  5707. if (GM_getValue("Check_turbobit_dot_ru_links", false))
  5708. {
  5709. addFileHost(
  5710. "(?:turbob1t|failoobmenik|filesmail|firebit|dlbit|files\\.china\\-gsm|3aka4aem|file\\.piratski|mnogofiles|links-free|turbo-bit|turbosfiles)\\.\\w+\/\\w+",
  5711. 'download\\-file">',
  5712. 'col-1">\\s*<h1>',
  5713. 'optional--',
  5714. "//a[contains(@href,'turbobit.ru/') or contains(@href,'filesmail.ru/') or contains(@href,'failoobmenik.ru/')"+
  5715. " or contains(@href,'firebit.in/') or contains(@href,'dlbit.net/') or contains(@href,'files.china-gsm.ru/') or contains(@href,'3aka4aem.ru/')"+
  5716. " or contains(@href,'file.piratski.ru/') or contains(@href,'mnogofiles.com/') or contains(@href,'links-free.ru/')"+
  5717. " or contains(@href,'turbo-bit.ru/') or contains(@href,'turbosfiles.ru/')]"
  5718. );
  5719. }
  5720. if (GM_getValue("Check_data_dot_hu_links", false))
  5721. {
  5722. addFileHost(
  5723. "data\\.hu\/get\/\\d+\/",
  5724. 'download_box_button',
  5725. 'missing\\.php',
  5726. 'optional--',
  5727. "//a[contains(@href,'data.hu/get')]",
  5728. true
  5729. );
  5730. }
  5731. if (GM_getValue("Check_filesmelt_dot_com_links", false))
  5732. {
  5733. addFileHost(
  5734. "filesmelt\\.com\/dl\/\\w+",
  5735. '(Your download is ready|Download File)',
  5736. 'Sorry, but your',
  5737. 'optional--',
  5738. "//a[contains(@href,'filesmelt.com/dl')]"
  5739. );
  5740. }
  5741. if (GM_getValue("Check_indowebster_dot_com_links", false))
  5742. {
  5743. addFileHost(
  5744. "(?:files\\.)?indowebster\\.com\/download\/\\w+\/",
  5745. 'premiumBtn"',
  5746. 'errorMessage"',
  5747. 'optional--',
  5748. "//a[contains(@href,'indowebster.com/download')]"
  5749. );
  5750. }
  5751. if (GM_getValue("Check_superload_dot_cz_links", false))
  5752. {
  5753. addFileHost(
  5754. "superload\\.cz\/dl\/\\w+",
  5755. 'icon-download">',
  5756. 'soubor nebyl nalezen',
  5757. 'optional--',
  5758. "//a[contains(@href,'superload.cz/dl')]"
  5759. );
  5760. }
  5761. if (GM_getValue("Check_hulkfile_dot_eu_links", false))
  5762. {
  5763. addFileHost(
  5764. "(?:w\\.hulkfile\\.com|hulkfile\\.eu)\/\\w+",
  5765. 'op" value="download',
  5766. 'class="err">|width:500px;text-align:left;">',
  5767. 'optional--',
  5768. "//a[contains(@href,'hulkfile.')]"
  5769. );
  5770. }
  5771. if (GM_getValue("Check_easybytez_dot_com_links", false))
  5772. {
  5773. addFileHost(
  5774. "easybytez\\.com\/\\w+",
  5775. 'op" value="download',
  5776. 'stop_error\\.gif',
  5777. 'optional--',
  5778. "//a[contains(@href,'easybytez.com/')]"
  5779. );
  5780. }
  5781. if (GM_getValue("Check_filestore_dot_com_dot_ua_links", false))
  5782. {
  5783. addFileHost(
  5784. "filestore\\.com\\.ua\/\\?d=\\w+",
  5785. 'tdrow1>',
  5786. 'class=warn',
  5787. 'optional--',
  5788. "//a[contains(@href,'filestore.com.ua/?d=')]"
  5789. );
  5790. }
  5791. if (GM_getValue("Check_netkups_dot_com_links", false))
  5792. {
  5793. addFileHost(
  5794. "netkups\\.com\/\\?d=\\w+",
  5795. 'submit">Continue',
  5796. 'page">File not found|deleted due to inactivity',
  5797. 'optional--',
  5798. "//a[contains(@href,'netkups.com/?d=')]"
  5799. );
  5800. }
  5801. if (GM_getValue("Check_openfile_dot_ru_links", false))
  5802. {
  5803. addFileHost(
  5804. "openfile\\.ru\/(?:video\/|)\\d+",
  5805. 'videobox_left">',
  5806. 'blog_title">|not found on this server',
  5807. 'optional--',
  5808. "//a[contains(@href,'openfile.ru/')]"
  5809. );
  5810. }
  5811. if (GM_getValue("Check_extmatrix_dot_com_links", false))
  5812. {
  5813. addFileHost(
  5814. "extmatrix\\.com\/files\/\\w+",
  5815. 'div class="success"',
  5816. 'div class="error"',
  5817. 'optional--',
  5818. "//a[contains(@href,'extmatrix.com/files')]"
  5819. );
  5820. }
  5821. if (GM_getValue("Check_sendfiles_dot_nl_links", false))
  5822. {
  5823. addFileHost(
  5824. "sendfiles\\.nl\/download.aspx\\?ID=\\w+",
  5825. 'content_lnkDownload',
  5826. 'error\\.aspx\\?',
  5827. 'optional--',
  5828. "//a[contains(@href,'sendfiles.nl/download.aspx')]"
  5829. );
  5830. }
  5831. /* if (GM_getValue("Check_sockshare_dot_com_links", false))
  5832. {
  5833. addFileHost(
  5834. "sockshare\\.com\/file\/\\w+",
  5835. 'choose_speed">',
  5836. 'message t_0\'>',
  5837. 'optional--',
  5838. "//a[contains(@href,'sockshare.com/file')]"
  5839. );
  5840. } */
  5841. if (GM_getValue("Check_yourfilestore_dot_com_links", false))
  5842. {
  5843. addFileHost(
  5844. "yourfilestore\\.com\/download\/\\d+\/",
  5845. 'download_data">',
  5846. 'may have been deleted|<h1>Sorry!<\/h1>',
  5847. 'optional--',
  5848. "//a[contains(@href,'yourfilestore.com/download')]"
  5849. );
  5850. }
  5851. if (GM_getValue("Check_nekaka_dot_com_links", false))
  5852. {
  5853. addFileHost(
  5854. "nekaka\\.com\/d\/[\\w-]+",
  5855. 'downloadForm">',
  5856. 'invalid file link',
  5857. 'optional--',
  5858. "//a[contains(@href,'nekaka.com/d')]"
  5859. );
  5860. }
  5861. if (GM_getValue("Check_filebig_dot_net_links", false))
  5862. {
  5863. addFileHost(
  5864. "filebig\\.net\/files\/\\w+",
  5865. 'downloadFile">',
  5866. '<p>File not found<\/p>',
  5867. 'optional--',
  5868. "//a[contains(@href,'filebig.net/files')]"
  5869. );
  5870. }
  5871. if (GM_getValue("Check_gamefront_dot_com_links", false))
  5872. {
  5873. addFileHost(
  5874. "files\\.filefront\\.com\/\/;\\d+;;",
  5875. 'downloadLink">',
  5876. 'File not found, you',
  5877. 'optional--',
  5878. "//a[contains(@href,'files.filefront.com')]"
  5879. );
  5880.  
  5881. addFileHost(
  5882. "gamefront\\.com\/files\/\\d+",
  5883. 'downloadLink">',
  5884. 'File not found, you',
  5885. 'optional--',
  5886. "//a[contains(@href,'gamefront.com/files')]"
  5887. );
  5888. }
  5889. if (GM_getValue("Check_hyperfileshare_dot_com_links", false))
  5890. {
  5891. addFileHost(
  5892. "(?:download\\.|)hyperfileshare\\.com\/(?:download\\.php\\?code=|d\/)\\w+",
  5893. 'dnlLnk"',
  5894. 'already been deleted',
  5895. 'optional--',
  5896. "//a[contains(@href,'hyperfileshare.com/download') or contains(@href,'hyperfileshare.com/d')]"
  5897. );
  5898. }
  5899. if (GM_getValue("Check_hellupload_dot_com_links", false))
  5900. {
  5901. addFileHost(
  5902. "hellupload\\.com\/\\w+",
  5903. '<h3>Download File<br',
  5904. 'id="podstrona">|AVOID_IE_BUG',
  5905. 'optional--',
  5906. "//a[contains(@href,'hellupload.com/')]"
  5907. );
  5908. }
  5909. if (GM_getValue("Check_free_dash_uploading_dot_com_links", false))
  5910. {
  5911. addFileHost(
  5912. "free\\-uploading\\.com\/\\w+",
  5913. 'op" value="download',
  5914. 'class="err">|width:500px;text-align:left;">',
  5915. 'optional--',
  5916. "//a[contains(@href,'free-uploading.com/')]"
  5917. );
  5918. }
  5919. if (GM_getValue("Check_fileape_dot_com_links", false))
  5920. {
  5921. addFileHost(
  5922. "fileape\\.com\/download\\-",
  5923. 'button_dl\\.png',
  5924. 'does not exist\\.',
  5925. 'optional--',
  5926. "//a[contains(@href,'fileape.com/')]"
  5927. );
  5928. }
  5929. if (GM_getValue("Check_uppit_dot_com_links", false))
  5930. {
  5931. addFileHost(
  5932. "(?:uppit\\.com|up\\.ht)\/\\w+",
  5933. 'op" value="download',
  5934. 'class="err">|style="width:500px;text-align:left;"|fish-404\\.png"',
  5935. 'optional--',
  5936. "//a[contains(@href,'up.ht/') or contains(@href,'uppit.com/')]",
  5937. true
  5938. );
  5939. }
  5940. if (GM_getValue("Check_nosupload_dot_com_links", false))
  5941. {
  5942. addFileHost(
  5943. "nosupload\\.com\/(?:\\?d=)?\\w+",
  5944. 'op" value="download',
  5945. '>File Not Found<',
  5946. 'optional--',
  5947. "//a[contains(@href,'nosupload.com')]",
  5948. true
  5949. );
  5950. }
  5951. if (GM_getValue("Check_filesin_dot_com_links", false))
  5952. {
  5953. addFileHost(
  5954. "filesin\\.com\/\\w+\/download\\.html",
  5955. 'download_area">',
  5956. 'error_note">',
  5957. 'optional--',
  5958. "//a[contains(@href,'filesin.com/')]",
  5959. true
  5960. );
  5961. }
  5962. if (GM_getValue("Check_nowdownload_dot_ch_links", false))
  5963. {
  5964. addFileHost(
  5965. "nowdownload\\.ch\/dl\/\\w+",
  5966. 'alert-success"',
  5967. 'This file does not exist!',
  5968. 'The file is being transfered',
  5969. "//a[contains(@href,'nowdownload.ch/dl')]"
  5970. );
  5971. }
  5972. if (GM_getValue("Check_axifile_dot_com_links", false))
  5973. {
  5974. addFileHost(
  5975. "axifile\\.com(?:\/\w(2))?\/\\??\\w+",
  5976. 'Dbutton_big"',
  5977. 'download\\-error\\.php',
  5978. 'optional--',
  5979. "//a[contains(@href,'axifile.com/')]"
  5980. );
  5981. }
  5982. if (GM_getValue("Check_hulkshare_dot_com_links", false))
  5983. {
  5984. addFileHost(
  5985. "hulkshare\.com\/\\w+",
  5986. 'download\.sam\.png|This is a private file|id="filename',
  5987. 'File does not exist|fingerprint protected copyright',
  5988. 'optional--',
  5989. "//a[contains(@href,'hulkshare.com')]"
  5990. );
  5991. }
  5992. if (GM_getValue("Check_turbobit_dot_net_links", false)) //folders
  5993. {
  5994. addFileHost(
  5995. "turbobit\\.(?:net|pl)\/download\/folder\/\\d+",
  5996. 'col-1">\\s*<s',
  5997. 'col-1">\\s*<h',
  5998. 'optional--',
  5999. "//a[contains(@href,'turbobit.') and contains(@href,'download/folder')]"
  6000. );
  6001. }
  6002. if (GM_getValue("Check_turbobit_dot_net_links", false)) //folders
  6003. {
  6004. addFileHost(
  6005. "turbobit\\.(?:net|pl)",
  6006. 'id="download-gate-info',
  6007. 'afterWait()',
  6008. 'optional--',
  6009. "//a[contains(@href,'turbobit.net')]"
  6010. );
  6011. }
  6012. if (GM_getValue("Check_hitfile_dot_net_links", false)) //folders
  6013. {
  6014. addFileHost(
  6015. "hitfile\\.net\/download\/folder\/\\d+",
  6016. 'content">\\s*<s',
  6017. 'content">\\s*<h',
  6018. 'optional--',
  6019. "//a[contains(@href,'hitfile.net/download/folder')]"
  6020. );
  6021. }
  6022. if (GM_getValue("Check_netload_dot_in_links", false)) //folders
  6023. {
  6024. addFileHost(
  6025. "netload\\.in\/folder\\.php\\?folder_id=\\w+",
  6026. 'images\/online\\.gif',
  6027. 'InPage_Error"',
  6028. 'optional--',
  6029. "//a[contains(@href,'netload.in/folder.php')]"
  6030. );
  6031. }
  6032. if (GM_getValue("Check_movshare_dot_net_links", false))
  6033. {
  6034. addFileHost(
  6035. "movshare\\.net\\/video\\/\\w+",
  6036. 'optional--"',
  6037. 'no longer exists',
  6038. 'optional--',
  6039. "//a[contains(@href,'movshare.net/video')]"
  6040. );
  6041. }
  6042. if (GM_getValue("Check_plunder_dot_com_links", false))
  6043. {
  6044. addFileHost(
  6045. "plunder\.com\/\\w+",
  6046. 'x\/download\\.gif',
  6047. '404 - File or directory not found.',
  6048. 'optional--',
  6049. "//a[contains(@href,'plunder.com')]"
  6050. );
  6051. }
  6052. if (GM_getValue("Check_mafiastorage_dot_com_links", false))
  6053. {
  6054. addFileHost(
  6055. "mafiastorage\\.com\/\\w+",
  6056. 'op" value="download',
  6057. 'class="err">|style="width:500px;text-align:left;"',
  6058. 'optional--',
  6059. "//a[contains(@href,'mafiastorage.com/')]"
  6060. );
  6061. }
  6062. if (GM_getValue("Check_uploadspace_dot_pl_links", false))
  6063. {
  6064. addFileHost(
  6065. "uploadspace\.pl\/plik\\w+",
  6066. 'Downloading .+? \\|',
  6067. 'Downloading a file',
  6068. 'optional--',
  6069. "//a[contains(@href,'uploadspace.pl/plik')]"
  6070. );
  6071. }
  6072. if (GM_getValue("Check_uploadingit_dot_com_links", false))
  6073. {
  6074. addFileHost(
  6075. "uploadingit\\.com\/file\/\\w+",
  6076. 'downloadTitle">',
  6077. 'deleteContent">',
  6078. 'optional--',
  6079. "//a[contains(@href,'uploadingit.com/file')]"
  6080. );
  6081. }
  6082. if (GM_getValue("Check_rghost_dot_net_links", false))
  6083. {
  6084. addFileHost(
  6085. "rghost\.(?:net|ru)\/(?:|private\/)\\d+",
  6086. 'download_link|btn large download',
  6087. 'file is restricted|File is deleted|503 Service Unavailable',
  6088. 'File was deleted',
  6089. "//a[contains(@href,'rghost.')]"
  6090. );
  6091. }
  6092. if (GM_getValue("Check_xdisk_dot_cz_links", false))
  6093. {
  6094. addFileHost(
  6095. "xdisk\\.cz\/(?:..\/)?download\\.php\\?id=\\w+",
  6096. '">Staženo:\\s*<\/span>',
  6097. 'Soubor, který hledáte nenalezen',
  6098. 'optional--',
  6099. "//a[contains(@href,'xdisk.cz/')]"
  6100. );
  6101. }
  6102. if (GM_getValue("Check_expressleech_dot_com_links", false))
  6103. {
  6104. addFileHost(
  6105. "expressleech\.com\/\\w+",
  6106. 'src="/img/Download.gif"|var _gaq =',
  6107. 'var rr =|403 Forbidden',
  6108. 'optional--',
  6109. "//a[contains(@href,'expressleech.com')]");
  6110. }
  6111. if (GM_getValue("Check_2downloadz_dot_com_links", false))
  6112. {
  6113. addFileHost(
  6114. "2downloadz\.com\/\\w+",
  6115. 'color="#848484|src="images/Download.png"|color:#238DCA',
  6116. 'color="#006DCC|File error',
  6117. 'optional--',
  6118. "//a[contains(@href,'2downloadz.com')]");
  6119. }
  6120. if (GM_getValue("Check_mightyupload_dot_com_links", false))
  6121. {
  6122. addFileHost(
  6123. "mightyupload\.com\/\\w+",
  6124. 'background:#ccc;text-align|CONTENT="Download File"',
  6125. 'style="background:#eee|var rr =|File Not Found',
  6126. 'error-code">1010',
  6127. "//a[contains(@href,'mightyupload.com')]");
  6128. }
  6129. if (GM_getValue("Check_k2s_dot_cc_links", false))
  6130. {
  6131. addFileHost(
  6132. "k2s\.cc\/file\/\\w+",
  6133. 'Click here for slow download with|class="btn" id="yw0"|onclick="download',
  6134. 'Error 404|class="errorSummary">|this file is blocked or deleted|>404 Not Found<|To avoid damaged files|This file is no longer available',
  6135. 'please try later',
  6136. "//a[contains(@href,'k2s.cc')]");
  6137. }
  6138. if (GM_getValue("Check_keep2share_dot_cc_links", false))
  6139. {
  6140. addFileHost(
  6141. "keep2share\.cc\/file\/\\w+",
  6142. 'Click here for slow download with|class="btn" id="yw0"|onclick="download',
  6143. 'Error 404|class="errorSummary">|this file is blocked or deleted|>404 Not Found<|To avoid damaged files|This file is no longer available',
  6144. 'please try later',
  6145. //'premium only',
  6146. "//a[contains(@href,'keep2share.cc')]");
  6147. }
  6148. if (GM_getValue("Check_keep2s_dot_cc_links", false))
  6149. {
  6150. addFileHost(
  6151. "keep2s\.cc\/file\/\\w+",
  6152. 'Click here for slow download with|class="btn" id="yw0"|onclick="download',
  6153. 'Error 404|class="errorSummary">|this file is blocked or deleted|>404 Not Found<|To avoid damaged files|This file is no longer available',
  6154. 'please try later',
  6155. //'optional--',
  6156. "//a[contains(@href,'keep2s.cc')]");
  6157. }
  6158. if (GM_getValue("Check_keep2share_dot_com_links", false))
  6159. {
  6160. addFileHost(
  6161. "keep2share\.com\/file\/\\w+",
  6162. 'Click here for slow download with|class="btn" id="yw0"|onclick="download',
  6163. 'Error 404|class="errorSummary">|this file is blocked or deleted|>404 Not Found<|To avoid damaged files|This file is no longer available',
  6164. 'please try later',
  6165. //'optional--',
  6166. "//a[contains(@href,'keep2share.com')]");
  6167. }
  6168. if (GM_getValue("Check_anysend_dot_com_links", false))
  6169. {
  6170. addFileHost(
  6171. "anysend\.com\/\\w+",
  6172. 'var openCalled=false;|content="noindex"',
  6173. '_trackPageview',
  6174. 'optional--',
  6175. "//a[contains(@href,'anysend.com')]");
  6176. }
  6177. if (GM_getValue("Check_datafile_dot_com_links", false))
  6178. {
  6179. addFileHost(
  6180. "datafile\.com\/\\w+",
  6181. 'var captchaPanel',
  6182. 'ErrorCode|ErrorCode 0: Invalid Link|btn-orange" href="#"', //class="error-msg"
  6183. 'You are downloading another file at this moment|You exceeded your free|Site Maintenance',
  6184. //'optional--',
  6185. "//a[contains(@href,'datafile.com')]",
  6186. true);
  6187. }
  6188. if (GM_getValue("Check_upstore_dot_net_links", false))
  6189. {
  6190. addFileHost(
  6191. "upstore\.net\/\\w+",
  6192. 'style="margin-top: 20px">|style="text-align:center; margin: 20px 0 100px;">',
  6193. 'File not found|onload="redirect|class="error">',
  6194. 'optional--',
  6195. "//a[contains(@href,'upstore.net')]");
  6196. }
  6197. if (GM_getValue("Check_upsto_dot_re_links", false))
  6198. {
  6199. addFileHost(
  6200. "upsto\.re\/\\w+",
  6201. 'style="margin-top: 20px">|style="text-align:center; margin: 20px 0 100px;">',
  6202. 'File not found|onload="redirect|class="error">',
  6203. 'optional--',
  6204. "//a[contains(@href,'upsto.re')]");
  6205. }
  6206. if (GM_getValue("Check_speedy_dot_sh_links", false))
  6207. {
  6208. addFileHost(
  6209. "speedy\.sh\/\\w+",
  6210. 'bgcolor=#eeeeee|class="addthis',
  6211. 'File not found|downloadfilenamenotfound>',
  6212. 'optional--',
  6213. "//a[contains(@href,'speedy.sh')]");
  6214. }
  6215. if (GM_getValue("Check_sanshare_dot_com_links", false))
  6216. {
  6217. addFileHost(
  6218. "sanshare\.com\/\\w+",
  6219. 'SANSHARE_TOPBANNER|offset-1"><h3><b>Download File',
  6220. 'offset-1"><b>File Not Found<|width:500px;text-align',
  6221. 'optional--',
  6222. "//a[contains(@href,'sanshare.com')]");
  6223. }
  6224. /* if (GM_getValue("Check_kingfiles_dot_net_links", false))
  6225. {
  6226. addFileHost(
  6227. "kingfiles\.net\/\\w+",
  6228. 'img/spriteBanner.png|If you are the owner of this file',
  6229. 'var rr =|"description" CONTENT="Download File ">|<div style="width:500px;text-align:left;">|The file was removed by administrator',
  6230. 'optional--',
  6231. "//a[contains(@href,'kingfiles.net')]");
  6232. } */
  6233. if (GM_getValue("Check_uploadhero_dot_co_links", false))
  6234. {
  6235. addFileHost(
  6236. "uploadhero\\.co\/dl\/\\w+",
  6237. 'class="nom_de_fichier"|Unlimited downloads|Estimated download time|Lien de téléchargement"',
  6238. 'not available on our server|pas disponible sur nos serveurs|Le lien du fichier est incorrect',
  6239. 'optional--',
  6240. "//a[contains(@href,'uploadhero.co/dl')]"
  6241. );
  6242. }
  6243. if (GM_getValue("Check_secureupload_dot_eu_links", false))
  6244. {
  6245. addFileHost(
  6246. "secureupload\\.eu\/\\w+",
  6247. 'Downloading',
  6248. 'cannot be found|File Not Found|could not be found',
  6249. 'optional--',
  6250. "//a[contains(@href,'secureupload.eu')]"
  6251. );
  6252. }
  6253. if (GM_getValue("Check_ge_dot_tt_links", false))
  6254. {
  6255. addFileHost(
  6256. "ge\.tt\/\\w+",
  6257. 'downloads pic',
  6258. 'is NOT the same as',
  6259. 'optional--',
  6260. "//a[contains(@href,'ge.tt')]");
  6261. }
  6262. if (GM_getValue("Check_filefactory_dot_com_links", false))
  6263. {
  6264. addFileHost(
  6265. "filefactory\.com\/\\w+",
  6266. 'div id="file_holder"|download.css',
  6267. 'File Removed|Invalid Download Link|File Unavailable|Server Failed|Datei entfernt|This file has been removed|Invalid Download Link|class="alert alert-danger">',
  6268. 'Server Maintenance|temporarily overloaded',
  6269. //'optional--',
  6270. "//a[contains(@href,'filefactory.com')]");
  6271. }
  6272. if (GM_getValue("Check_filesflash_dot_net_links", false))
  6273. {
  6274. addFileHost(
  6275. "filesflash\.net\/\\w+",
  6276. 'align:right">Filename:',
  6277. 'class="msg">',
  6278. 'optional--',
  6279. "//a[contains(@href,'filesflash.net')]");
  6280. }
  6281. if (GM_getValue("Check_rapidgator_dot_net_links", false)) //folders
  6282. {
  6283. addFileHost(
  6284. "rapidgator\\.net\/folder\/\\w+",
  6285. 'href="/folder/',
  6286. 'class="empty|Folder not found|Carpeta no encontrada|Dossier non trouvé|Папка не найдена',
  6287. 'optional--',
  6288. "//a[contains(@href,'rapidgator.net/folder')]",
  6289. true
  6290. );
  6291. }
  6292. if (GM_getValue("Check_salefiles_dot_com_links", false))
  6293. {
  6294. addFileHost(
  6295. "salefiles\.com\/\\w+",
  6296. '<Title>Download|CONTENT="Download',
  6297. 'font:15px Arial|background:#eee;',
  6298. 'optional--',
  6299. "//a[contains(@href,'salefiles.com')]");
  6300. }
  6301. if (GM_getValue("Check_megairon_dot_net_links", false))
  6302. {
  6303. addFileHost(
  6304. "megairon\.net\/\\w+",
  6305. 'border: 5px #ffeb90 solid;',
  6306. 'CONTENT="Download File ">|var rr =',
  6307. 'optional--',
  6308. "//a[contains(@href,'megairon.net')]");
  6309. }
  6310. if (GM_getValue("Check_datoid_dot_cz_links", false))
  6311. {
  6312. addFileHost(
  6313. "datoid\.cz\/\\w+",
  6314. 'btn-download|class="icon-download-large"',
  6315. 'Stránka nenalezena|error-404|Soubor byl zablokován',
  6316. 'optional--',
  6317. "//a[contains(@href,'datoid.cz')]");
  6318. }
  6319. if (GM_getValue("Check_stiahni_dot_si_links", false))
  6320. {
  6321. addFileHost(
  6322. "stiahni\.si\/\\w+",
  6323. 'report_icon.png"|slow-download-button',
  6324. 'none.png|deleted|<h2>Error 500</h2>',
  6325. 'optional--',
  6326. "//a[contains(@href,'stiahni.si')]");
  6327. }
  6328. if (GM_getValue("Check_cloudstor_dot_es_links", false))
  6329. {
  6330. addFileHost(
  6331. "cloudstor\.es\/\\w+",
  6332. '"btn_download"',
  6333. '404: Page Not Found',
  6334. 'optional--',
  6335. "//a[contains(@href,'cloudstor.es')]");
  6336. }
  6337. if (GM_getValue("Check_streamfile_dot_com_links", false))
  6338. {
  6339. addFileHost(
  6340. "streamfile\.com\/\\w+",
  6341. 'class="btn',
  6342. 'class="green-btn',
  6343. 'optional--',
  6344. "//a[contains(@href,'streamfile.com')]");
  6345. }
  6346. if (GM_getValue("Check_eyesfile_dot_ca_links", false))
  6347. {
  6348. addFileHost(
  6349. "eyesfile\.ca\/\\w+",
  6350. 'value="Get Link',
  6351. 'var rr =',
  6352. 'optional--',
  6353. "//a[contains(@href,'eyesfile.ca')]");
  6354. }
  6355. if (GM_getValue("Check_filemoney_dot_com_links", false))
  6356. {
  6357. addFileHost(
  6358. "filemoney\.com\/\\w+",
  6359. 'og:title',
  6360. '404 Not Found|<Title>FileMoney|File Not Found|class="err">DMCA</b>',
  6361. 'error-code">1010',
  6362. "//a[contains(@href,'filemoney.com')]");
  6363. }
  6364. if (GM_getValue("Check_uploadboy_dot_com_links", false))
  6365. {
  6366. addFileHost(
  6367. "uploadboy\.com\/\\w+",
  6368. 'width="740">|method_free',
  6369. 'var rr =|background:#ffffff|not be found|file was removed',
  6370. 'optional--',
  6371. "//a[contains(@href,'uploadboy.com')]");
  6372. }
  6373. if (GM_getValue("Check_speedshare_dot_eu_links", false))
  6374. {
  6375. addFileHost(
  6376. "speedshare\.eu\/\\w+",
  6377. 'favicon.png|color:#3d87c0|cross.png"',
  6378. 'var rr =|File Not Found|style="background:#eee',
  6379. 'optional--',
  6380. "//a[contains(@href,'speedshare.eu')]");
  6381. }
  6382. if (GM_getValue("Check_unlimitzone_dot_com_links", false))
  6383. {
  6384. addFileHost(
  6385. "unlimitzone\.com\/\\w+",
  6386. 'name="method_free',
  6387. 'var rr =|File Not Found|removed by administrator|class="err">|Файл не найден|Datei nicht gefunden|fichier non trouve|Dosya bulunamadД±|Nie znaleziono pliku|ไม่พบไฟล์ที่ต้องการ|Nie znaleziono pliku|Archive no Encontrado|ファイルが見つかりません。|File nem talГЎlhatГі|File tidak ditemukan|Bestand niet gevonden',
  6388. 'optional--',
  6389. "//a[contains(@href,'unlimitzone.com')]");
  6390. }
  6391. if (GM_getValue("Check_rioupload_dot_com_links", false))
  6392. {
  6393. addFileHost(
  6394. "rioupload\.com\/\\w+",
  6395. 'sell.jpg',
  6396. 'var rr =',
  6397. 'optional--',
  6398. "//a[contains(@href,'rioupload.com')]");
  6399. }
  6400. if (GM_getValue("Check_rg_dot_to_links", false))
  6401. {
  6402. addFileHost(
  6403. "rg\.to\/\\w+",
  6404. '/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',
  6405. 'Error 404|File not found|Select your plan',
  6406. 'optional--',
  6407. //'optional--',
  6408. "//a[contains(@href,'rg.to')]");
  6409. }
  6410. if (GM_getValue("Check_jumbofiles_dot_org_links", false))
  6411. {
  6412. addFileHost(
  6413. "jumbofiles\.org\/\\w+",
  6414. 'H71C5.png|class="downloadtitle">',
  6415. 'var swfu|ViewSourceBIN.png',
  6416. 'optional--',
  6417. "//a[contains(@href,'jumbofiles.org')]");
  6418. }
  6419. if (GM_getValue("Check_fshare_dot_vn_links", false))
  6420. {
  6421. addFileHost(
  6422. "fshare\\.vn\/file\/\\w+",
  6423. 'action="#download"|left; width: 330px;">|class="bt_down"',
  6424. 'không tồn tại|class="color_red m_t_50"',
  6425. 'optional--',
  6426. "//a[contains(@href,'fshare.vn/file')]",
  6427. true
  6428. );
  6429. }
  6430. if (GM_getValue("Check_spaceforfiles_dot_com_links", false))
  6431. {
  6432. addFileHost(
  6433. "spaceforfiles\.com\/\\w+",
  6434. 'btn_slowspeed_b.jpg|value="download1|class="btn_blue',
  6435. 'var rr =|AVOID_IE_BUG',
  6436. 'optional--',
  6437. "//a[contains(@href,'spaceforfiles.com')]");
  6438. }
  6439. if (GM_getValue("Check_google_dot_com_links", false))
  6440. {
  6441. addFileHost(
  6442. "google\\.com\/file\/\\w+",
  6443. 'content="!">|color:#2d2d2d',
  6444. '12pt; font-weight:|class="errorMessage"|F0F6FF',
  6445. 'optional--',
  6446. "//a[contains(@href,'google.com/file')]",
  6447. true
  6448. );
  6449. }
  6450. if (GM_getValue("Check_google_dot_com_links", false))
  6451. {
  6452. addFileHost(
  6453. "docs.google.com\/\\w+",
  6454. 'content="!">|color:#2d2d2d',
  6455. '12pt; font-weight:|class="errorMessage"|F0F6FF|Error 404',
  6456. 'optional--',
  6457. "//a[contains(@href,'docs.google.com')]",
  6458. true
  6459. );
  6460. }
  6461. if (GM_getValue("Check_google_dot_com_links", false))
  6462. {
  6463. addFileHost(
  6464. "drive.google.com\/\\w+",
  6465. 'content="!">|color:#2d2d2d|id="uc-download-link',
  6466. '12pt; font-weight:|class="errorMessage"|F0F6FF|Error 404',
  6467. 'optional--',
  6468. "//a[contains(@href,'drive.google.com')]",
  6469. true
  6470. );
  6471. }
  6472. if (GM_getValue("Check_up_dot_media1fire_dot_com_links", false))
  6473. {
  6474. addFileHost(
  6475. "up.media1fire\.com\/\\w+",
  6476. 'class="addthis_|value="download',
  6477. 'var rr =|AVOID_IE_BUG|<div style="width:500px;text-align:left;">',
  6478. 'optional--',
  6479. "//a[contains(@href,'up.media1fire.com')]");
  6480. }
  6481. if (GM_getValue("Check_depfile_dot_com_links", false))
  6482. {
  6483. addFileHost(
  6484. "depfile\.com\/\\w+",
  6485. 'logo_0.png|downloads.gif"|verifycode',
  6486. 'border-color: #5D729B;|bgcolor="#778AAF"|deleted by the owner|Invalid Link',
  6487. 'optional--',
  6488. "//a[contains(@href,'depfile.com')]");
  6489. }
  6490. if (GM_getValue("Check_go4up_dot_com_links", false))
  6491. {
  6492. addFileHost(
  6493. "go4up\.com\/\\w+",
  6494. 'style="width: 100%;">|value="Access|download_line',
  6495. '<title>GO4UP|dmca',
  6496. 'optional--',
  6497. "//a[contains(@href,'go4up.com')]");
  6498. }
  6499. if (GM_getValue("Check_redbunker_dot_net_links", false))
  6500. {
  6501. addFileHost(
  6502. "redbunker\.net\/\\w+",
  6503. 'dload.png|rowspan="3">|yep.gif',
  6504. 'CONTENT="RedBunker|#D3D3D3;|color:#d33|AVOID_IE_BUG',
  6505. 'optional--',
  6506. "//a[contains(@href,'redbunker.net')]");
  6507. }
  6508. if (GM_getValue("Check_divxpress_dot_com_links", false))
  6509. {
  6510. addFileHost(
  6511. "divxpress\.com\/\\w+",
  6512. 'btn_download|logo.png"',
  6513. 'AVOID_IE_BUG|var rr =',
  6514. 'optional--',
  6515. "//a[contains(@href,'divxpress.com')]");
  6516. }
  6517. if (GM_getValue("Check_anafile_dot_com_links", false))
  6518. {
  6519. addFileHost(
  6520. "anafile\.com\/\\w+",
  6521. 'width="881" valign="top|color="#800080"',
  6522. 'style="width:500px;text-align:left;">|file was deleted|AVOID_IE_BUG',
  6523. 'optional--',
  6524. "//a[contains(@href,'anafile.com')]");
  6525. }
  6526. if (GM_getValue("Check_uploadable_dot_ch_links", false))
  6527. {
  6528. addFileHost(
  6529. "uploadable\\.ch\/file\/\\w+",
  6530. 'captcha.js"|payment.js"|class="btn_download"',
  6531. '<div class="icon_err">|<div class="errorBox">|"error_arrow">',
  6532. 'optional--',
  6533. "//a[contains(@href,'uploadable.ch/file')]",
  6534. true
  6535. );
  6536. }
  6537. if (GM_getValue("Check_arabloads_dot_net_links", false))
  6538. {
  6539. addFileHost(
  6540. "arabloads\.net\/\\w+",
  6541. 'name="method_free"|name="method_premium"',
  6542. 'background:#eee;font:15px Arial;">|AVOID_IE_BUG|Verdana;padding:3px;">Error|Not Found',
  6543. 'optional--',
  6544. "//a[contains(@href,'arabloads.net')]");
  6545. }
  6546. if (GM_getValue("Check_sharerepo_dot_com_links", false))
  6547. {
  6548. addFileHost(
  6549. "sharerepo\.com\/\\w+",
  6550. 'name="method_free"',
  6551. 'var public_on=|The file you were looking for could not be found',
  6552. 'optional--',
  6553. "//a[contains(@href,'sharerepo.com')]");
  6554. }
  6555. if (GM_getValue("Check_sfshare_dot_se_links", false))
  6556. {
  6557. addFileHost(
  6558. "sfshare\.se\/\\w+",
  6559. 'id="btn_download"|class="btn btn-primary txt-bold" value="',
  6560. 'AVOID_IE_BUG|var rr =|style="width:500px;text-align:left;">|Reason for deletion|The file was removed',
  6561. 'optional--',
  6562. "//a[contains(@href,'sfshare.se')]");
  6563. }
  6564. if (GM_getValue("Check_files_dot_fm_links", false))
  6565. {
  6566. addFileHost(
  6567. "files\.fm\/\\w+",
  6568. 'dl.png"|background-color: transparent',
  6569. 'margin: 40px 40px|background: none;',
  6570. 'optional--',
  6571. "//a[contains(@href,'files.fm')]");
  6572. }
  6573. if (GM_getValue("Check_koofile_dot_com_links", false))
  6574. {
  6575. addFileHost(
  6576. "koofile\.com\/\\w+",
  6577. 'value="download1">|name="method_free"',
  6578. 'class="overview-content c_text-box ">|style="padding-top:3px;">|class="rt1 c">',
  6579. 'optional--',
  6580. "//a[contains(@href,'koofile.com')]");
  6581. }
  6582. if (GM_getValue("Check_vidxden_dot_com_links", false))
  6583. {
  6584. addFileHost(
  6585. "vidxden\\.com\/\\w+",
  6586. 'Continue to Video"',
  6587. 'No such file',
  6588. 'optional--',
  6589. "//a[contains(@href,'vidxden.com')]"
  6590. );
  6591. }
  6592. if (GM_getValue("Check_muchshare_dot_net_links", false))
  6593. {
  6594. addFileHost(
  6595. "muchshare\\.net\/\\w+",
  6596. 'id="btn_download"',
  6597. 'File Not Found|width: 500px; text-align: left;',
  6598. 'optional--',
  6599. "//a[contains(@href,'muchshare.net')]"
  6600. );
  6601. }
  6602. if (GM_getValue("Check_daten_dash_hoster_dot_de_links", false))
  6603. {
  6604. addFileHost(
  6605. "(?:daten-hoster\\.de\/file\/\\w+|filehosting\\.org\/file\/\\w+|xtraupload\\.de\/\\?d=\\w+)",
  6606. 'Details zur Datei|Details page',
  6607. 'Jetzt hochladen|upload now',
  6608. 'optional--',
  6609. "//a[contains(@href,'daten-hoster.de/file') or contains(@href,'filehosting.org/file') or contains(@href,'xtraupload.de')]"
  6610. );
  6611. }
  6612. if (GM_getValue("Check_upload_dash_il_dot_net_links", false))
  6613. {
  6614. addFileHost(
  6615. "(?:upload-il|przeslij)\.net\/(?:en|he|ar|ru|)\/?\\w+",
  6616. 'downloadbtn"',
  6617. 'DL_FileNotFound',
  6618. 'optional--',
  6619. "//a[contains(@href,'upload-il.net') or contains(@href,'przeslij.net')]"
  6620. );
  6621. }
  6622. if (GM_getValue("Check_fileflyer_dot_com_links", false))
  6623. {
  6624. addFileHost(
  6625. "fileflyer\.com\/view\/\\w+",
  6626. '(?:dwl|locked)btn"',
  6627. 'error.gif"|link">Removed|removedlink">',
  6628. 'optional--',
  6629. "//a[contains(@href,'fileflyer.com')]"
  6630. );
  6631. }
  6632. if (GM_getValue("Check_filestore_dot_to_links", false))
  6633. {
  6634. addFileHost(
  6635. "filestore\.to\/\\?d=\\w+",
  6636. '"downloading"',
  6637. 'Datei wurde nicht gefunden',
  6638. 'optional--',
  6639. "//a[contains(@href,'filestore.to')]"
  6640. );
  6641. }
  6642. if (GM_getValue("Check_easy_dash_share_dot_com_links", false))
  6643. {
  6644. addFileHost(
  6645. "(?:w\\d*\.|)(?:crocko|easy-share)\\.com\/.",
  6646. 'fz24">Download|class="pl15">',
  6647. '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',
  6648. 'optional--',
  6649. "//a[contains(@href,'easy-share.com') or contains(@href,'crocko.com')]"
  6650. );
  6651. }
  6652. if (GM_getValue("Check_burnupload_dot_com_links", false))
  6653. {
  6654. addFileHost(
  6655. "burnupload\\.(?:com\/\\?d=|ihiphop\\.com\/download\\.php\\?id=)\\w+",
  6656. 'File size:',
  6657. 'file is not found',
  6658. 'optional--',
  6659. "//a[contains(@href,'burnupload.com') or contains(@href,'burnupload.ihiphop.com')]"
  6660. );
  6661. }
  6662. if (GM_getValue("Check_datei_dot_to_links", false))
  6663. {
  6664. addFileHost(
  6665. "datei\\.to\/\\??\\w+",
  6666. 'icon_downloaden\\.png|>Download starten<',
  6667. 'Datei wurde nicht gefunden|icon_deleted.png',
  6668. 'optional--',
  6669. "//a[contains(@href,'datei.to')]"
  6670. );
  6671. }
  6672. if (GM_getValue("Check_yunfile_dot_com_links", false))
  6673. {
  6674. addFileHost(
  6675. "(?:yunfile|filemarkets)\\.com\/\\w+",
  6676. '<body class="body" id="body">|value="Slow Download"',
  6677. '<body class="body" >',
  6678. 'optional--',
  6679. "//a[contains(@href,'yunfile.com') or contains(@href,'filemarkets.com')]"
  6680. );
  6681. }
  6682. /* if (GM_getValue("Check_putlocker_dot_com_links", false))
  6683. {
  6684. addFileHost(
  6685. "putlocker\\.com\/file\/\\w{16}",
  6686. 'as Free User|<a class="continue"|Continue to file|#feedback_btn|application file_standalone',
  6687. 'Welcome to PutLocker|<div class="sad_face_image">|404:',
  6688. 'undergoing scheduled maintenance',
  6689. "//a[contains(@href,'putlocker.com/file')]"
  6690. );
  6691. } */
  6692. if (GM_getValue("Check_uploadhero_dot_com_links", false))
  6693. {
  6694. addFileHost(
  6695. "uploadhero\\.com\/dl\/\\w+",
  6696. 'content-dl">',
  6697. 'men_file_lost\\.jpg"',
  6698. 'optional--',
  6699. "//a[contains(@href,'uploadhero.com/dl')]"
  6700. );
  6701. }
  6702. if (GM_getValue("Check_unibytes_dot_com_links", false))
  6703. {
  6704. addFileHost(
  6705. "unibytes\\.com\/[\\w\.]+",
  6706. 'trying to download|пытаетесь загрузить файл|tes entrain de tlcharger',
  6707. 'File not found|Файл не найден|',
  6708. 'optional--',
  6709. "//a[contains(@href,'unibytes.com')]"
  6710. );
  6711. }
  6712. if (GM_getValue("Check_hellshare_dot_com_links", false)) //very old type of links
  6713. {
  6714. addFileHost(
  6715. "www\\.hellshare\\.com\/\\d+",
  6716. 'tab\\-details"',
  6717. 'list-purp-2"|not found on this server',
  6718. 'optional--',
  6719. "//a[contains(@href,'www.hellshare.com')]"
  6720. );
  6721. }
  6722. if (GM_getValue("Check_quickshare_dot_cz_links", false)) //folders
  6723. {
  6724. addFileHost(
  6725. "quickshare\\.cz\/slozka-\\d+",
  6726. 'Počet souborů: <strong>[1-9]',
  6727. 'Počet souborů: <strong>0|Chyba! Taková složka neexistuje',
  6728. 'optional--',
  6729. "//a[contains(@href,'quickshare.cz/slozka')]"
  6730. );
  6731. }
  6732. if (GM_getValue("Check_filefactory_dot_com_links", false)) //folders
  6733. {
  6734. addFileHost(
  6735. "filefactory\\.com\/f\/\\w+",
  6736. 'folderFileList">',
  6737. 'table class="items"|Pointer" class="red">',
  6738. 'optional--',
  6739. "//a[contains(@href,'filefactory.com/f/')]"
  6740. );
  6741. }
  6742. if (GM_getValue("Check_netload_dot_in_links", false)) //folders
  6743. {
  6744. addFileHost(
  6745. "netfolder\\.in\/\\w+",
  6746. 'list" value="http',
  6747. 'InPage_Error">|list" value=""',
  6748. 'optional--',
  6749. "//a[contains(@href,'netfolder.in')]"
  6750. );
  6751. }
  6752. if (GM_getValue("Check_load_dot_to_links", false))
  6753. {
  6754. addFileHost(
  6755. '(?:www\\.|\\/)load\\.to\\/(?:\\w{10}\\/.|\\?d=\\w{10})',
  6756. '"download_table_left">Size',
  6757. 'Can\'t find file',
  6758. 'optional--',
  6759. "//a[contains(@href,'/load.to/') or contains(@href,'www.load.to/')]"
  6760. );
  6761. }
  6762. /* if (GM_getValue("Check_freakshare_dot_net_links", false))
  6763. {
  6764. addFileHost(
  6765. "freakshare\\.(?:net|com)\/files\/",
  6766. 'box_heading',
  6767. '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|الملف المطلوب غير موجود',
  6768. 'Your Traffic is used up for today',
  6769. "//a[(contains(@href,'freakshare.net') or contains(@href,'freakshare.com')) and contains(@href,'files')]",
  6770. true
  6771. );
  6772. //folders
  6773. addFileHost(
  6774. "freakshare\\.(?:net|com)\/folder\/",
  6775. 'Files: [1-9]',
  6776. 'Files: 0',
  6777. 'optional--',
  6778. "//a[(contains(@href,'freakshare.net') or contains(@href,'freakshare.com')) and contains(@href,'folder')]",
  6779. true
  6780. );
  6781. } */
  6782. if (GM_getValue("Check_divshare_dot_com_links", false))
  6783. {
  6784. addFileHost(
  6785. "divshare\\.com\/download\/",
  6786. 'download_new\.png',
  6787. 'have been removed',
  6788. 'optional--',
  6789. "//a[contains(@href,'divshare.com')]"
  6790. );
  6791. }
  6792. if (GM_getValue("Check_euroshare_dot_eu_links", false))
  6793. {
  6794. addFileHost(
  6795. "euroshare\\.(?:eu|pl|sk|cz|hu)\/file\/\\d+",
  6796. 'nazev-souboru">',
  6797. '<div id="obsah">\\s*<h1>',
  6798. 'optional--',
  6799. "//a[contains(@href,'euroshare.eu/file')]"
  6800. );
  6801. }
  6802. if (GM_getValue("Check_files_dot_mail_dot_ru_links", false))
  6803. {
  6804. addFileHost(
  6805. 'files\\.mail\\.ru/(?:\\w*)',
  6806. 'fileList',
  6807. 'errorMessage',
  6808. 'optional--',
  6809. "//a[contains(@href,'files.mail.ru')]"
  6810. );
  6811. }
  6812. if (GM_getValue("Check_megashares_dot_com_links", false))
  6813. {
  6814. addFileHost(
  6815. "(?:d\\d+\.|)megashares\.com\/(?:dl|index\.php\\?d|\\?d\\d+=\\w+)",
  6816. 'Filesize',
  6817. 'Invalid|deleted|Could not download file',
  6818. 'slots|scheduled maintenance',
  6819. "//a[contains(@href,'megashares.com/')]"
  6820. );
  6821. }
  6822. if (GM_getValue("Check_narod_dot_ru_links", false))
  6823. {
  6824. addFileHost(
  6825. 'narod\\.(?:yandex\\.|)ru\/disk\/',
  6826. 'b-submit',
  6827. 'b-download-virus-note|headCode">404<',
  6828. 'Внутренняя ошибка сервиса',
  6829. "//a[contains(@href,'narod.ru') or contains(@href,'narod.yandex.ru')]"
  6830. );
  6831. }
  6832. if (GM_getValue("Check_rayfile_dot_com_links", false))
  6833. {
  6834. addFileHost(
  6835. "rayfile\\.com\/",
  6836. 'FILEtitleTXT',
  6837. 'blueRow',
  6838. 'optional--',
  6839. "//a[contains(@href,'rayfile.com/') and contains(@href,'files')]"
  6840. );
  6841. }
  6842. if (GM_getValue("Check_filesmonster_dot_com_links", false))
  6843. {
  6844. addFileHost(
  6845. "filesmonster\\.com\/download\\.php\\?id=\\w+",
  6846. 'button_green_body"',
  6847. 'error">',
  6848. 'optional--',
  6849. "//a[contains(@href,'filesmonster.com/download')]"
  6850. );
  6851. }
  6852. if (GM_getValue("Check_usaupload_dot_net_links", false))
  6853. {
  6854. addFileHost(
  6855. 'usaupload\\.net\/d\/(?:\w*)',
  6856. '<strong>File size:</strong>',
  6857. 'is not available',
  6858. 'optional--',
  6859. "//a[contains(@href,'usaupload.net/d/')]"
  6860. );
  6861. }
  6862. if (GM_getValue("Check_sendspace_dot_com_links", false))
  6863. {
  6864. addFileHost(
  6865. 'sendspace\\.com\/file\/\\w+',
  6866. 'file_description',
  6867. 'msg error"',
  6868. 'optional--',
  6869. "//a[contains(@href,'sendspace.com/file')]"
  6870. );
  6871. }
  6872. if (GM_getValue("Check_sendspace_dot_pl_links", false))
  6873. {
  6874. addFileHost(
  6875. 'sendspace\\.pl\/file\/\\w+',
  6876. 'download_file"',
  6877. 'Podany plik nie',
  6878. 'optional--',
  6879. "//a[contains(@href,'sendspace.pl/file')]"
  6880. );
  6881. }
  6882. if (GM_getValue("Check_uploading_dot_com_links", false))
  6883. {
  6884. addFileHost(
  6885. 'uploading\\.com\/(?:files\/)?\\w+',
  6886. 'free_method">',
  6887. 'file_error">|error_404">|file not found|OOPS! Looks like file not found',
  6888. 'optional--',
  6889. "//a[contains(@href,'uploading.com')]"
  6890. );
  6891. }
  6892. if (GM_getValue("Check_gigasize_dot_com_links", false))
  6893. {
  6894. addFileHost(
  6895. 'gigasize\\.com\/get\\.php(?:\/\\d+|\\?d=\\w+)',
  6896. 'fileId"',
  6897. 'error">',
  6898. 'optional--',
  6899. "//a[contains(@href,'gigasize.com/get')]"
  6900. );
  6901. }
  6902. if (GM_getValue("Check_good_dot_com_links", false))
  6903. {
  6904. addFileHost(
  6905. 'good\\.net\/(?:_|dl)',
  6906. 'Free Download',
  6907. 'Not Found',
  6908. 'Forbidden',
  6909. "//a[contains(@href,'good.net')]"
  6910. );
  6911. }
  6912. if (GM_getValue("Check_2shared_dot_com_links", false))
  6913. {
  6914. addFileHost(
  6915. '2shared\\.com\/(?:file|video|document|audio)\/\\w*',
  6916. 'File size',
  6917. 'File not found|is not valid|/images/important.gif',
  6918. 'optional--',
  6919. "//a[contains(@href,'2shared.com/file/') or contains (@href,'2shared.com/audio/') or contains (@href,'2shared.com/document/') or contains (@href,'2shared.com/video/')]"
  6920. );
  6921. }
  6922. if (GM_getValue("Check_turboupload_dot_com_links", false))
  6923. {
  6924. addFileHost(
  6925. 'turboupload\\.com\/\\w*',
  6926. 'You have requested',
  6927. 'File Not Found',
  6928. 'optional--',
  6929. "//a[contains(@href,'turboupload.com')]"
  6930. );
  6931. }
  6932. if (GM_getValue("Check_gigapeta_dot_com_links", false))
  6933. {
  6934. addFileHost(
  6935. 'gigapeta\\.com\/dl\/',
  6936. 'Download file|Скачать файл| Herunterzuladen|Scarica il file|Cargar el fichero|Charger le fichier',
  6937. '404|page_error',
  6938. 'optional--',
  6939. "//a[contains(@href,'gigapeta.com/dl')]"
  6940. );
  6941. }
  6942. if (GM_getValue("Check_veehd_dot_com_links", false))
  6943. {
  6944. addFileHost(
  6945. 'veehd\.com\/video\/.*?',
  6946. 'No sound|Download video',
  6947. 'Featured Videos',
  6948. 'optional--',
  6949. "//a[contains(@href,'veehd.com') and contains(@href,'video')]"
  6950. );
  6951. }
  6952. if (GM_getValue("Check_vip_dash_file_dot_com_links", false))
  6953. {
  6954. addFileHost(
  6955. '(?:u\\d+\\.)?vip-file\\.com\/download.*?\/(?:.*?)\/(?:.*?)\\.html',
  6956. 'fast_download_form">|submit_sms_download',
  6957. '<p style="text-align:center">',
  6958. 'optional--',
  6959. "//a[contains(@href,'vip-file.com/download')]"
  6960. );
  6961. }
  6962. if (GM_getValue("Check_letitbit_dot_net_links", false))
  6963. {
  6964. addFileHost(
  6965. '(?:u\\d+\\.)?letitbit\\.net\/download\/\\w+',
  6966. 'download\\-pnl ',
  6967. 'color:#000">|Запрашиваемый файл не найден|страница не существует|File not found|',
  6968. 'optional--',
  6969. "//a[contains(@href,'letitbit.net/download')]"
  6970. );
  6971. }
  6972. if (GM_getValue("Check_ifolder_dot_ru_links", false))
  6973. {
  6974. addFileHost(
  6975. 'ifolder\.ru\/\\d+',
  6976. 'file-info',
  6977. 'ui-state-error',
  6978. 'optional--',
  6979. "//a[contains(@href,'ifolder.ru')]"
  6980. );
  6981. }
  6982. if (GM_getValue("Check_fileswap_dot_com_links", false))
  6983. {
  6984. addFileHost(
  6985. 'fileswap\\.com\/dl\/\\w+',
  6986. 'bttnDownloadLink"',
  6987. 'rounded_block_error"',
  6988. 'is temporary unavailable|disponible en estos momentos|vorläufig unerreichbar|Файл временно недоступен',
  6989. "//a[contains(@href,'fileswap.com/dl')]"
  6990. );
  6991. }
  6992. if (GM_getValue("Check_filecloud_dot_io_links", false))
  6993. {
  6994. addFileHost(
  6995. '(?:s\\d+\\.)?filecloud\\.io\/\\w+',
  6996. 'var __error = 0',
  6997. 'FILES__DOESNT_EXIST|removed or did not exist',
  6998. 'optional--',
  6999. "//a[contains(@href,'filecloud.io/')]"
  7000. );
  7001. addFileHost(
  7002. 'ifile\\.it\/\\w+',
  7003. 'var __error = 0',
  7004. 'FILES__DOESNT_EXIST',
  7005. 'optional--',
  7006. "//a[contains(@href,'ifile.it/')]"
  7007. );
  7008. }
  7009. if (GM_getValue("Check_solidfiles_dot_com_links", false))
  7010. {
  7011. addFileHost(
  7012. 'solidfiles\\.com\/d\/\\w+',
  7013. 'id="download"|content="Download',
  7014. '>Not found<|<h2>404</h2>|Page not found|<h1>404</h1>|File not available|no longer available',
  7015. 'optional--',
  7016. "//a[contains(@href,'solidfiles.com/d')]"
  7017. );
  7018. }
  7019. if (GM_getValue("Check_shareflare_dot_net_links", false))
  7020. {
  7021. addFileHost(
  7022. "(?:.\\.|)shareflare\\.net",
  7023. 'download-pnl|<div class="premium-block">',
  7024. 'File not found|Поиск зеркала на фа|<div id="captcha"',
  7025. 'optional--',
  7026. "//a[contains(@href,'shareflare.net') and contains(@href,'download')]"
  7027. );
  7028. }
  7029. if (GM_getValue("Check_u18116681_dot_shareflare_dot_net_links", false))
  7030. {
  7031. addFileHost(
  7032. "u18116681.shareflare\\.net",
  7033. 'download-pnl|<div class="premium-block">',
  7034. 'File not found|Поиск зеркала на фа|<div id="captcha"',
  7035. 'optional--',
  7036. "//a[contains(@href,'shareflare.net') and contains(@href,'download')]"
  7037. );
  7038. }
  7039. if (GM_getValue("Check_uloz_dot_to_links", false))
  7040. {
  7041. addFileHost(
  7042. "(?:uloz|ulozto|bagruj|zachowajto)\\.(to|cz|sk|net|pl)\/\\w",
  7043. 'fileDownload">|fileSize">',
  7044. 'grayButton deletedFile">|Stránka nenalezena|upload-button"|jako soukromý.',
  7045. 'passwordProtectedFile">|frmaskAgeForm-disagree',
  7046. "//a[contains(@href,'bagruj.cz') or contains(@href,'uloz.to') or contains(@href,'ulozto.') or contains(@href,'zachowajto.pl')]",
  7047. true
  7048. );
  7049. }
  7050. if (GM_getValue("Check_hellspy_dot_com_links", false))
  7051. {
  7052. addFileHost(
  7053. "hellspy\.(?:com|cz|sk|hu|pl)\/\\w+",
  7054. 'file\\-list-orderby|section-filedetail">',
  7055. '<\/span><\/h2>\\s*<p>|list-purp-2">|flash info sticky">',
  7056. 'optional--',
  7057. "//a[contains(@href,'hellspy.')]"
  7058. );
  7059. }
  7060. if (GM_getValue("Check_leteckaposta_dot_cz_links", false))
  7061. {
  7062. addFileHost(
  7063. "(?:leteckaposta\\.cz|sharegadget\\.com)\/\\d+",
  7064. '<body onload="">',
  7065. 'neexistuje|not exist',
  7066. 'optional--',
  7067. "//a[contains(@href,'leteckaposta.cz') or contains(@href,'sharegadget.com')]"
  7068. );
  7069. }
  7070. if (GM_getValue("Check_stahovanizasms_dot_cz_links", false))
  7071. {
  7072. addFileHost(
  7073. "stahovanizasms\\.cz\/\\w+",
  7074. 'download\\.png>|font-size:11px><tr>',
  7075. 'smaz.n u.ivatelem|font-size:11px><\/table>',
  7076. 'optional--',
  7077. "//a[contains(@href,'stahovanizasms.cz')]"
  7078. );
  7079. }
  7080. if (GM_getValue("Check_share_dash_links_dot_biz_links", false))
  7081. {
  7082. addFileHost(
  7083. "share-links\\.biz\/\\w*",
  7084. 'online\\.gif',
  7085. '(?:offline|parts)\\.gif',
  7086. 'optional--',
  7087. "//a[contains(@href,'share-links.biz')]"
  7088. );
  7089. }
  7090. if (GM_getValue("Check_4shared_dot_com_links", false))
  7091. {
  7092. addFileHost(
  7093. "4shared\\.com\/.+\/",
  7094. '<input type="hidden" class="jsSocialTwDefaultText" value=',
  7095. 'class="warn\"|big red"|GetDataBack',
  7096. 'Service Unavailable',
  7097. "//a[contains(@href,'4shared.com')]"
  7098. );
  7099. }
  7100. if (GM_getValue("Check_zippyshare_dot_com_links", false))
  7101. {
  7102. addFileHost(
  7103. "(?:www\\d+\.|)zippyshare\.com\/",
  7104. 'download\.png|Download Now|images/download_small.png|id="dlbutton"',
  7105. 'not exist|Status 404',
  7106. 'optional--',
  7107. "//a[contains(@href,'zippyshare.com') and contains(@href,'file.html')]"
  7108. );
  7109. }
  7110. if (GM_getValue("Check_mediafire_dot_com_links", false))
  7111. {
  7112. addFileHost(
  7113. "mediafire\.com\/",
  7114. 'download_file_title|dlFileName|id="PLAY_downloadButton"',
  7115. 'error\\.php\\?|error_msg_title|<title>Simple File Sharing|No files found',
  7116. 'set to private',
  7117. "//a[contains(@href,'mediafire.com')]"
  7118. );
  7119. }
  7120. if (GM_getValue("Check_uploaded_dot_to_links", false))
  7121. {
  7122. addFileHost(
  7123. '(?:uploaded\\.(?:to|net)\/(?:.id|file|folder|f|410|404))|(?:ul\\.to\/)',
  7124. '<h2>Authentification</h2></li>| MB|1,00 GB',
  7125. 'box_red|Error: 404|Error: 410|fileList"><thead><tr><td colspan="2"><\/td><\/tr><\/thead><tbody>\\s*<tr>|<title>uploaded.net</title>',
  7126. 'optional--',
  7127. "//a[contains(@href,'uploaded.to/') or contains(@href,'uploaded.net/') or contains(@href,'ul.to/')]"
  7128. );
  7129. }
  7130. if (GM_getValue("Check_ulozisko_dot_sk_links", false))
  7131. {
  7132. addFileHost(
  7133. "ulozisko\.sk\/",
  7134. 'Detaily',
  7135. 'neexistuje',
  7136. 'optional--',
  7137. "//a[contains(@href,'ulozisko.sk')]"
  7138. );
  7139. }
  7140. if (GM_getValue("Check_upnito_dot_sk_links", false))
  7141. {
  7142. addFileHost(
  7143. "(?:dl.\\.|)upnito\\.sk\/(download|subor|file)",
  7144. 'download.php',
  7145. 'notfound|upload\\-suborov\\.php"',
  7146. 'optional--',
  7147. "//a[contains(@href,'upnito.sk')]"
  7148. );
  7149. }
  7150. if (GM_getValue("Check_uptobox_dot_com_links", false))
  7151. {
  7152. addFileHost(
  7153. "uptobox\\.com\/\\w+",
  7154. 'Create Download Link">',
  7155. '500px;text-align:left;">|File not found|Fichier introuvable',
  7156. 'Maintenance|not available in your country',
  7157. "//a[contains(@href,'uptobox.com')]"
  7158. );
  7159. }
  7160. if (GM_getValue("Check_sharecash_dot_org_links", false))
  7161. {
  7162. addFileHost(
  7163. "sharecash\\.org\/download\\.php\\?file=\\d+",
  7164. 'FILE DOWNLOAD<',
  7165. 'File Does Not Exist',
  7166. 'optional--',
  7167. "//a[contains(@href,'sharecash.org/download.php')]"
  7168. );
  7169. }
  7170. if (GM_getValue("Check_depositfiles_dot_com_links", false)) //folders
  7171. {
  7172. addFileHost(
  7173. "depositfiles\\.com\/folders\/\\w+",
  7174. '<div class="progressContainer">',
  7175. '<div id="files" class="files">\\s*<\/div>',
  7176. 'optional--',
  7177. "//a[contains(@href,'depositfiles.com/folders')]"
  7178. );
  7179. }
  7180. if (GM_getValue("Check_rapidfileshare_dot_net_links", false))
  7181. {
  7182. addFileHost(
  7183. "rapidfileshare\\.net/\\w+",
  7184. '<div id="upload-header-bg">',
  7185. '<div style="width:500px;text-align:left;">',
  7186. 'optional--',
  7187. "//a[contains(@href,'rapidfileshare.net/')]"
  7188. );
  7189. }
  7190. if (GM_getValue("Check_stiahnito_dot_sk_links", false))
  7191. {
  7192. addFileHost(
  7193. "stiahnito\\.sk/",
  7194. '<span class="filesize right">',
  7195. '<ol class="list-purp-2">',
  7196. 'optional--',
  7197. "//a[contains(@href,'stiahnito.sk/')]"
  7198. );
  7199. }
  7200. if (GM_getValue("Check_rusfolder_dot_com_links", false))
  7201. {
  7202. addFileHost(
  7203. "rusfolder\\.(?:com|net)",
  7204. '"download-step-one-form"|Название: <b>|Файлы|Файлы в папке',
  7205. '"ui-state-error ui-corner-all"|File is removed|File not found|удален',
  7206. 'optional--',
  7207. "//a[contains(@href,'rusfolder')]"
  7208. );
  7209. }
  7210. if (GM_getValue("Check_fileover_dot_net_links", false))
  7211. {
  7212. addFileHost(
  7213. "fileover\\.net/\\d+",
  7214. 'id="filesize"',
  7215. 'Not found or deleted|The following file is unavailable',
  7216. 'optional--',
  7217. "//a[contains(@href,'fileover.net/')]"
  7218. );
  7219. }
  7220. if (GM_getValue("Check_catshare_dot_net_links", false))
  7221. {
  7222. addFileHost(
  7223. "catshare\\.net/\\w+",
  7224. '"icon-share',
  7225. 'alert alert-error',
  7226. 'optional--',
  7227. "//a[contains(@href,'catshare.net/')]"
  7228. );
  7229. }
  7230. if (GM_getValue("Check_anonfiles_dot_com_links", false))
  7231. {
  7232. addFileHost(
  7233. "anonfiles\\.com/\\w+",
  7234. '"download_button"',
  7235. '<legend><b>404</b>',
  7236. 'optional--',
  7237. "//a[contains(@href,'anonfiles.com')]"
  7238. );
  7239. }
  7240. if (GM_getValue("Check_mixturecloud_dot_com_links", false))
  7241. {
  7242. addFileHost(
  7243. "mixturecloud\\.com/media/\\w+",
  7244. '"btn icon i_globe gray share_150',
  7245. '"s_cross_close"></span> 404:',
  7246. 'optional--',
  7247. "//a[contains(@href,'mixturecloud.com/media/')]"
  7248. );
  7249. }
  7250. if (GM_getValue("Check_akafile_dot_com_links", false))
  7251. {
  7252. addFileHost(
  7253. "akafile\\.com\/\\w+",
  7254. 'download1',
  7255. 'File Not Found',
  7256. 'optional--',
  7257. "//a[contains(@href,'akafile.com/')]"
  7258. );
  7259. }
  7260. if (GM_getValue("Check_creafile_dot_net_links", false))
  7261. {
  7262. addFileHost(
  7263. "creafile\\.net\/\\w+",
  7264. 'downloadblock',
  7265. 'errtitle',
  7266. 'optional--',
  7267. "//a[contains(@href,'creafile.net/')]"
  7268. );
  7269. }
  7270. if (GM_getValue("Check_hugefiles_dot_net_links", false))
  7271. {
  7272. addFileHost(
  7273. "hugefiles\\.net\/\\w+",
  7274. 'download1|class="btn-create-download" value="Create Download Link">',
  7275. 'File Not Found|No such file with this filename',
  7276. 'optional--',
  7277. "//a[contains(@href,'hugefiles.net/')]"
  7278. );
  7279. }
  7280. if (GM_getValue("Check_sendmyway_dot_com_links", false))
  7281. {
  7282. addFileHost(
  7283. "sendmyway\\.com\/\\w+",
  7284. 'id="btn_download"',
  7285. '500px;text-align:left;"|<center><h3>',
  7286. 'optional--',
  7287. "//a[contains(@href,'sendmyway.com/')]"
  7288. );
  7289. }
  7290. if (GM_getValue("Check_upload_dot_ee_links", false))
  7291. {
  7292. addFileHost(
  7293. "upload\\.ee\/\\w+",
  7294. 'onmouseout="document.dllink.src',
  7295. 'There is no such file.|File was deleted|Fail kustutati|Файл удалён|Такого файла нет',
  7296. 'optional--',
  7297. "//a[contains(@href,'upload.ee/')]"
  7298. );
  7299. }
  7300. if (GM_getValue("Check_shareplace_dot_org_links", false))
  7301. {
  7302. addFileHost(
  7303. "shareplace\\.org\/\\?\\w+",
  7304. 'Download-Link',
  7305. 'Your requested file is not found|Select file to send',
  7306. 'optional--',
  7307. "//a[contains(@href,'shareplace.org/?')]"
  7308. );
  7309. }
  7310. if (GM_getValue("Check_uploadc_dot_com_links", false))
  7311. {
  7312. addFileHost(
  7313. "uploadc\\.com\/\\w+",
  7314. 'id="prebut"',
  7315. 'File Not Found|This file has been removed due',
  7316. 'optional--',
  7317. "//a[contains(@href,'uploadc.com/')]"
  7318. );
  7319. }
  7320. if (GM_getValue("Check_remixshare_dot_com_links", false))
  7321. {
  7322. addFileHost(
  7323. "remixshare\\.com\/\\w+",
  7324. 'id="dl2"',
  7325. '<table class=\'failed\'><tr><td width=\'90%\'>|Sorry, die Datei konnte nicht gefunden werden',
  7326. 'optional--',
  7327. "//a[contains(@href,'remixshare.com/')]"
  7328. );
  7329. }
  7330. if (GM_getValue("Check_exoshare_dot_com_links", false))
  7331. {
  7332. addFileHost(
  7333. "exoshare\\.com\/download\\.php\\?uid=\\w+",
  7334. 'Last Download :',
  7335. 'img src="\\/404.jpg"',
  7336. 'optional--',
  7337. "//a[contains(@href,'exoshare.com/download.php')]"
  7338. );
  7339. }
  7340. if (GM_getValue("Check_borncash_dot_org_links", false))
  7341. {
  7342. addFileHost(
  7343. "borncash\\.org\/download\/\\?a=\\w+",
  7344. 'class="knop_1"',
  7345. '\/error\/er00',
  7346. 'optional--',
  7347. "//a[contains(@href,'borncash.org/download/')]"
  7348. );
  7349. }
  7350. if (GM_getValue("Check_vidplay_dot_net_links", false))
  7351. {
  7352. addFileHost(
  7353. "vidplay\.net\/\\w+",
  7354. 'solvemedia puzzle widget',
  7355. 'File not found|AVOID_IE_BUG',
  7356. 'optional--',
  7357. "//a[contains(@href,'vidplay.net')]");
  7358. }
  7359. if (GM_getValue("Check_storagon_dot_com_links", false))
  7360. {
  7361. addFileHost(
  7362. "storagon\.com\/\\w+",
  7363. 'class="icon-cloud-download"></i>|content="Download Options',
  7364. 'content="Download Downloads|class="error-container">|class="bigger-300 bolder">404<',
  7365. 'optional--',
  7366. "//a[contains(@href,'storagon.com')]");
  7367. }
  7368. if (GM_getValue("Check_filedais_dot_com_links", false))
  7369. {
  7370. addFileHost(
  7371. "filedais\.com\/\\w+",
  7372. 'class="btn btn-info"|name="method_free"',
  7373. 'style="width:500px;text-align:left;">|File Not Found|AVOID_IE_BUG',
  7374. 'optional--',
  7375. "//a[contains(@href,'filedais.com')]");
  7376. }
  7377. /* if (GM_getValue("Check_ryushare_dot_com_links", false))
  7378. {
  7379. addFileHost(
  7380. "ryushare\.com\/\\w+",
  7381. 'KB|MB',
  7382. '<div style="width:500px;text-align:left;">',
  7383. 'in maintenance mode|Software error:',
  7384. "//a[contains(@href,'ryushare.com')]");
  7385. } */
  7386. if (GM_getValue("Check_up_dot_4share_dot_vn_links", false))
  7387. {
  7388. addFileHost(
  7389. "up.4share\.vn\/\\w+",
  7390. '<font size="2" face="Verdana">',
  7391. 'font: 13px Tahoma; color: Brown',
  7392. 'optional--',
  7393. //'optional--',
  7394. "//a[contains(@href,'up.4share.vn')]");
  7395. }
  7396. if (GM_getValue("Check_share_dot_vnn_dot_vn_links", false))
  7397. {
  7398. addFileHost(
  7399. "share.vnn\.vn\/\\w+",
  7400. '"index,follow"|<div class="main" id="download-box">',
  7401. '<meta name="description" content="" />|<h1>Không tìm thấy file bạn yêu cầu</h1>',
  7402. 'optional--',
  7403. //'optional--',
  7404. "//a[contains(@href,'share.vnn.vn')]");
  7405. }
  7406. if (GM_getValue("Check_upfile_dot_vn_links", false))
  7407. {
  7408. addFileHost(
  7409. "upfile\.vn\/\\w+",
  7410. 'download-timer',
  7411. '<meta name="description" content="Upload files|<meta name="description" content="Error "',
  7412. 'optional--',
  7413. //'optional--',
  7414. "//a[contains(@href,'upfile.vn')]");
  7415. }
  7416. /* if (GM_getValue("Check_firedrive_dot_com_links", false))
  7417. {
  7418. addFileHost(
  7419. "firedrive\\.com\/file\/\\w{16}",
  7420. 'as Free User|<a class="continue"|Continue to file|#feedback_btn|application file_standalone',
  7421. 'Welcome to PutLocker|<div class="sad_face_image">|404:',
  7422. 'undergoing scheduled maintenance',
  7423. "//a[contains(@href,'firedrive.com/file')]"
  7424. );
  7425. } */
  7426. if (GM_getValue("Check_aisfile_dot_com_links", false))
  7427. {
  7428. addFileHost(
  7429. "aisfile\.com\/\\w+",
  7430. '<h3 style="text-align:left;">|align=right><b>Filename:',
  7431. '<div style="width:500px;text-align:left;">|File Not Found',
  7432. 'optional--',
  7433. //'optional--',
  7434. "//a[contains(@href,'aisfile.com')]");
  7435. }
  7436. if (GM_getValue("Check_usersfiles_dot_com_links", false))
  7437. {
  7438. addFileHost(
  7439. "usersfiles\.com\/\\w+",
  7440. 'class="btn btn-success|id="btn_download" class="btn"',
  7441. '<div style="width:500px;text-align:left;">|class="label label-inverse">|class="err">',
  7442. 'optional--',
  7443. //'optional--',
  7444. "//a[contains(@href,'usersfiles.com')]");
  7445. }
  7446. if (GM_getValue("Check_pan_dot_baidu_dot_com_links", false))
  7447. {
  7448. addFileHost(
  7449. "pan.baidu\.com\/\\w+",
  7450. 'target="_blank" title=|share-personal-info',
  7451. 'share_notfound.png|background:#f9f9f9',
  7452. 'optional--',
  7453. //'optional--',
  7454. "//a[contains(@href,'pan.baidu.com')]");
  7455. }
  7456. if (GM_getValue("Check_yunpan_dot_cn_links", false))
  7457. {
  7458. addFileHost(
  7459. "yunpan\.cn\/\\w+",
  7460. 'class="icon icon-download',
  7461. 'content="360|http://p5.qhimg.com/t01d1c98667df9dc6cc.jpg',
  7462. 'optional--',
  7463. //'optional--',
  7464. "//a[contains(@href,'yunpan.cn')]");
  7465. }
  7466. if (GM_getValue("Check_file_dash_upload_dot_net_links", false))
  7467. {
  7468. addFileHost(
  7469. "(?:en\\.|)file\\-upload\\.net\/download\\-\\d+\/\\w+",
  7470. 'getElementById("downbild")|style.display',
  7471. 'hochgeladene Datei nicht gefunden werden|has not been found',
  7472. 'optional--',
  7473. //'optional--',
  7474. "//a[contains(@href,'file-upload.net')]");
  7475. }
  7476. if (GM_getValue("Check_gulfup_dot_com_links", false))
  7477. {
  7478. addFileHost(
  7479. "gulfup\.com\/",
  7480. '<!-- Downlod template -->|download.gif',
  7481. '<!-- Errors template -->|class="error">|<!-- form upload -->|[ رفع الملفات ]',
  7482. 'optional--',
  7483. //'optional--',
  7484. "//a[contains(@href,'gulfup.com')]");
  7485. }
  7486. if (GM_getValue("Check_datafilehost_dot_com_links", false))
  7487. {
  7488. addFileHost(
  7489. "datafilehost\\.com\/(?:download-\\w+\\.html|d\/\\w+)",
  7490. 'dldtable">',
  7491. 'does not exist\\.',
  7492. 'optional--',
  7493. //'optional--',
  7494. "//a[contains(@href,'datafilehost.com')]");
  7495. }
  7496. if (GM_getValue("Check_box_dot_com_links", false))
  7497. {
  7498. addFileHost(
  7499. "box\.com\/\\w+",
  7500. 'download-file-btn|id="download_button',
  7501. 'BIyMin.png| <div class="error_message|link has been removed',
  7502. 'optional--',
  7503. //'optional--',
  7504. "//a[contains(@href,'app.box.com')]");
  7505. }
  7506. if (GM_getValue("Check_dropbox_dot_com_links", false))
  7507. {
  7508. addFileHost(
  7509. "dropbox\.com\/s\/\\w+",
  7510. 'default_content_download_button" class="freshbutton-blue">|content_download_button',
  7511. '>Nothing Here<|>Error (404)<',
  7512. 'title>Dropbox - 509|Error (403)|Error: 429',
  7513. "//a[contains(@href,'dropbox.com')]");
  7514. }
  7515. if (GM_getValue("Check_box_dot_net_links", false))
  7516. {
  7517. addFileHost(
  7518. "box\.net\/\\w+",
  7519. 'download-file-btn|id="download_button',
  7520. 'BIyMin.png| <div class="error_message',
  7521. 'optional--',
  7522. //'optional--',
  7523. "//a[contains(@href,'box.net')]");
  7524. }
  7525. if (GM_getValue("Check_fileband_dot_com_links", false))
  7526. {
  7527. addFileHost(
  7528. "fileband\.com\/\\w+",
  7529. 'value="download1">|name="id" value=',
  7530. '<div style="width:500px;text-align:left;">|not be found',
  7531. 'optional--',
  7532. //'optional--',
  7533. "//a[contains(@href,'fileband.com')]");
  7534. }
  7535. if (GM_getValue("Check_filedropper_dot_com_links", false))
  7536. {
  7537. addFileHost(
  7538. "filedropper\.com\/\\w+",
  7539. 'background:#ddd;|width:985px; ',
  7540. 'background-color:#FFFFFF;|margin-left: -400px;',
  7541. 'optional--',
  7542. //'optional--',
  7543. "//a[contains(@href,'filedropper.com')]");
  7544. }
  7545. if (GM_getValue("Check_tropicshare_dot_com_links", false))
  7546. {
  7547. addFileHost(
  7548. "tropicshare\\.com\/files\/\\d+",
  7549. 'MB</span>|GB</span>|KB</span>',
  7550. '>FNF<|size: </span>',
  7551. 'optional--',
  7552. //'optional--',
  7553. "//a[contains(@href,'tropicshare.com')]");
  7554. }
  7555. if (GM_getValue("Check_goldbytez_dot_com_links", false))
  7556. {
  7557. addFileHost(
  7558. "goldbytez\.com\/\\w+",
  7559. '<h2>Download</h2>|<center><h2>File: <font color="red">',
  7560. '<div style="width:500px;text-align:left;">|<h2>Error</h2>',
  7561. 'optional--',
  7562. //'optional--',
  7563. "//a[contains(@href,'goldbytez.com')]");
  7564. }
  7565. if (GM_getValue("Check_worldbytez_dot_com_links", false))
  7566. {
  7567. addFileHost(
  7568. "worldbytez\.com\/\\w+",
  7569. '<div class="download_type">',
  7570. '<div style="width:500px;text-align:left;">',
  7571. 'optional--',
  7572. //'optional--',
  7573. "//a[contains(@href,'worldbytez.com')]");
  7574. }
  7575. if (GM_getValue("Check_freefilehosting_dot_net_links", false))
  7576. {
  7577. addFileHost(
  7578. "freefilehosting\.net\/\\w+",
  7579. 'Type: cbr|Type: rar|Type: jpg|Type: mkv|Type: avi|Type: mpg|Type: mpeg|Type: zip|Type: wmvType: bmpType: gifType: mp4Type: mp3',
  7580. '175px;" value="http://www.freefilehosting.net/"|Filename: <br>',
  7581. 'optional--',
  7582. //'optional--',
  7583. "//a[contains(@href,'freefilehosting.net')]");
  7584. }
  7585. if (GM_getValue("Check_ziddu_dot_com_links", false))
  7586. {
  7587. addFileHost(
  7588. "ziddu\.com\/\\w+",
  7589. 'downloads.ziddu.com|downloadfilelinkicon',
  7590. 'errortracking.php|images/oops.png|fontfamilyverdana error',
  7591. 'optional--',
  7592. //'optional--',
  7593. "//a[contains(@href,'ziddu.com')]");
  7594. }
  7595. if (GM_getValue("Check_exclusiveloader_dot_com_links", false))
  7596. {
  7597. addFileHost(
  7598. "exclusiveloader\.com\/\\w+",
  7599. 'style="padding-top:55px; padding-bottom:65px;">|<h2>Download</h2>',
  7600. 'File Not Found|width:322px;text-align:left;" class="no_file">',
  7601. 'optional--',
  7602. //'optional--',
  7603. "//a[contains(@href,'exclusiveloader.com')]");
  7604. }
  7605. if (GM_getValue("Check_sharerapid_dot_cz_links", false))
  7606. {
  7607. addFileHost(
  7608. "sharerapid\.cz\/\\w+",
  7609. 'value="Stáhnout"|soubor" style|Stahování je povoleno pouze pro přihlášené uživatele',
  7610. 'error_div">|404 - Not Found',
  7611. 'optional--',
  7612. //'optional--',
  7613. "//a[contains(@href,'sharerapid.cz')]");
  7614. }
  7615. if (GM_getValue("Check_sdilej_dot_cz_links", false))
  7616. {
  7617. addFileHost(
  7618. "sdilej\.cz\/\\w+",
  7619. 'class="page-download"',
  7620. '<h2 class="red">|czshare.com|sponsored listings|This domain is for sale',
  7621. 'optional--',
  7622. //'optional--',
  7623. "//a[contains(@href,'sdilej.cz')]");
  7624. }
  7625. if (GM_getValue("Check_lafiles_dot_com_links", false))
  7626. {
  7627. addFileHost(
  7628. "lafiles\.com\/\\w+",
  7629. '<div id="pay_modes">',
  7630. '<b class="err"></b>',
  7631. 'optional--',
  7632. //'optional--',
  7633. "//a[contains(@href,'lafiles.com')]");
  7634. }
  7635. if (GM_getValue("Check_fboom_dot_me_links", false))
  7636. {
  7637. addFileHost(
  7638. "fboom\.me\/file\/\\w+",
  7639. 'id="download-free" href="#"',
  7640. 'class="error-v1-title">404<|File not found or deleted',
  7641. 'optional--',
  7642. //'optional--',
  7643. "//a[contains(@href,'fboom.me')]");
  7644. }
  7645. if (GM_getValue("Check_fileboom_dot_me_links", false))
  7646. {
  7647. addFileHost(
  7648. "fileboom\.me\/file\/\\w+",
  7649. 'id="download-free" href="#"',
  7650. 'class="error-v1-title">404<|File not found or deleted',
  7651. 'optional--',
  7652. //'optional--',
  7653. "//a[contains(@href,'fileboom.me')]");
  7654. }
  7655. if (GM_getValue("Check_acefile_dot_net_links", false))
  7656. {
  7657. addFileHost(
  7658. "acefile\.net\/\\w+",
  7659. 'align=right nowrap><b>',
  7660. 'File Not Found|<div style="width:322px;text-align:left;" class="no_file">',
  7661. 'optional--',
  7662. //'optional--',
  7663. "//a[contains(@href,'acefile.net')]");
  7664. }
  7665. if (GM_getValue("Check_megarapid_dot_cz_links", false))
  7666. {
  7667. addFileHost(
  7668. "megarapid\.cz\/\\w+",
  7669. 'value="Stáhnout"|soubor" style|Stahování je povoleno pouze pro přihlášené uživatele',
  7670. 'error_div">|404 - Not Found',
  7671. 'optional--',
  7672. //'optional--',
  7673. "//a[contains(@href,'megarapid.cz')]");
  7674. }
  7675. if (GM_getValue("Check_yadi_dot_sk_links", false))
  7676. {
  7677. addFileHost(
  7678. "yadi\.sk\/\\w+",
  7679. 'twitter:site|View and download',
  7680. 'error code|Nothing found',
  7681. 'optional--',
  7682. //'optional--',
  7683. "//a[contains(@href,'yadi.sk')]");
  7684. }
  7685. if (GM_getValue("Check_imdb_dot_com_links", false))
  7686. {
  7687. addFileHost(
  7688. "imdb\.com\/\\w+",
  7689. 'imdb.com',
  7690. '404 Error',
  7691. 'optional--',
  7692. "//a[contains(@href,'imdb.com')]");
  7693. }
  7694. if (GM_getValue("Check_hitfile_dot_net_links", false))
  7695. {
  7696. addFileHost(
  7697. "hitfile\.net\/\\w+",
  7698. 'class="download-file',
  7699. 'style="width:16px;height:16px;border:0;|File not found|Файл не найден. Возможно он был удален',
  7700. 'optional--',
  7701. //'optional--',
  7702. "//a[contains(@href,'hitfile.net')]");
  7703. }
  7704. /* if (GM_getValue("Check_uploadto_dot_us_links", false))
  7705. {
  7706. addFileHost(
  7707. "uploadto\\.us\/file\/details\/[\\w+-]",
  7708. 'name="recaptcha_response',
  7709. '="/folder/add"|>File (?:not found|restricted|has been deleted)|<title>UPLOADTO.US</title>',
  7710. 'btn-large btn-danger">|Account limitation notice|502 Bad Gateway',
  7711. "//a[contains(@href,'uploadto.us/file')]",
  7712. true);
  7713. } */
  7714. if (GM_getValue("Check_nitroflare_dot_com_links", true))
  7715. {
  7716. addFileHost(
  7717. "nitroflare\.com\/\\w+",
  7718. 'MB</span>|left;">1 GB<|KB</span>|left;">1.0',
  7719. 'file has been removed|id="error" style="display|Probably deleted',
  7720. 'optional--',
  7721. "//a[contains(@href,'nitroflare.com')]");
  7722. }
  7723. if (GM_getValue("Check_up_dot_top4top_dot_net_links", false))
  7724. {
  7725. addFileHost(
  7726. "up.top4top\.net\/\\w+",
  7727. 'start Downlod template',
  7728. 'start err template',
  7729. 'optional--',
  7730. "//a[contains(@href,'up.top4top.net')]");
  7731. }
  7732. if (GM_getValue("Check_filejoker_dot_net_links", false))
  7733. {
  7734. addFileHost(
  7735. "filejoker\.net\/\\w+",
  7736. 'button id="regular-download">Slow|method_free" value="1|<div id="download" class="download0">',
  7737. 'File Not Found|class="not_found|<div id="download" class="not_found">|"err">DMCA Complaint<',
  7738. 'optional--',
  7739. "//a[contains(@href,'filejoker.net')]");
  7740. }
  7741. if (GM_getValue("Check_free_dot_fr_links", false))
  7742. {
  7743. addFileHost(
  7744. "(?:dl.\\.|)free\\.fr",
  7745. 'Valider et t&eacute;l&eacute',
  7746. 'Fichier inexistant',
  7747. 'optional--',
  7748. "//a[contains(@href,'free.fr')]");
  7749. }
  7750. if (GM_getValue("Check_gboxes_dot_com_links", false))
  7751. {
  7752. addFileHost(
  7753. "gboxes\.com\/\\w+",
  7754. 'You have requested|color="red">http://www.gboxes.com',
  7755. 'File Not Found|<div style="width:500px;text-align:left;">',
  7756. 'optional--',
  7757. "//a[contains(@href,'gboxes.com')]");
  7758. }
  7759. if (GM_getValue("Check_1fichier_dot_com_links", false))
  7760. {
  7761. addFileHost(
  7762. "(?:\\w{10}\\.(?:1fichier|dl4free)\\.com\/)|(?:(?:1fichier|dl4free)\\.com\/\\?\\w{10})|(?:www\\.)?\\w{6,}\\.1fichier\\.com",
  7763. '<title>Download</title>|<br/>You must wait|submit" value="Download|Download without SSL encryption|submit" value="Télécharger|submit" value="Télécharger',
  7764. '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é',
  7765. 'optional--',
  7766. "//a[contains(@href,'1fichier') or contains(@href,'dl4free.com/')]"
  7767. );
  7768. }
  7769. if (GM_getValue("Check_led_dot_wf_links", false))
  7770. {
  7771. addFileHost(
  7772. "led\.wf\/\\w+",
  7773. 'logo_0.png|downloads.gif"|verifycode',
  7774. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  7775. 'optional--',
  7776. "//a[contains(@href,'led.wf')]");
  7777. }
  7778. if (GM_getValue("Check_lan_dot_wf_links", false))
  7779. {
  7780. addFileHost(
  7781. "lan\.wf\/\\w+",
  7782. 'logo_0.png|downloads.gif"|verifycode',
  7783. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  7784. 'optional--',
  7785. "//a[contains(@href,'lan.wf')]");
  7786. }
  7787. if (GM_getValue("Check_adlink_dot_wf_links", false))
  7788. {
  7789. addFileHost(
  7790. "adlink\.wf\/\\w+",
  7791. 'logo_0.png|downloads.gif"|verifycode',
  7792. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  7793. 'optional--',
  7794. "//a[contains(@href,'adlink.wf')]");
  7795. }
  7796. if (GM_getValue("Check_click_dot_tf_links", false))
  7797. {
  7798. addFileHost(
  7799. "click\.tf\/\\w+",
  7800. 'logo_0.png|downloads.gif"|verifycode',
  7801. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  7802. 'optional--',
  7803. "//a[contains(@href,'click.tf')]");
  7804. }
  7805. if (GM_getValue("Check_ssh_dot_tf_links", false))
  7806. {
  7807. addFileHost(
  7808. "ssh\.tf\/\\w+",
  7809. 'logo_0.png|downloads.gif"|verifycode',
  7810. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  7811. 'optional--',
  7812. "//a[contains(@href,'ssh.tf')]");
  7813. }
  7814. if (GM_getValue("Check_ssh_dot_yt_links", false))
  7815. {
  7816. addFileHost(
  7817. "ssh\.yt\/\\w+",
  7818. 'logo_0.png|downloads.gif"|verifycode',
  7819. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  7820. 'optional--',
  7821. "//a[contains(@href,'ssh.yt')]");
  7822. }
  7823. if (GM_getValue("Check_yep_dot_pm_links", false))
  7824. {
  7825. addFileHost(
  7826. "yep\.pm\/\\w+",
  7827. 'logo_0.png|downloads.gif"|verifycode',
  7828. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  7829. 'optional--',
  7830. "//a[contains(@href,'yep.pm')]");
  7831. }
  7832. if (GM_getValue("Check_kyc_dot_pm_links", false))
  7833. {
  7834. addFileHost(
  7835. "kyc\.pm\/\\w+",
  7836. 'logo_0.png|downloads.gif"|verifycode',
  7837. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  7838. 'optional--',
  7839. "//a[contains(@href,'kyc.pm')]");
  7840. }
  7841. if (GM_getValue("Check_brupload_dot_net_links", false))
  7842. {
  7843. addFileHost(
  7844. "brupload\.net\/\\w+",
  7845. 'Download Gratuito',
  7846. '<div style="width:500px;text-align:left;">',
  7847. 'optional--',
  7848. //'optional--',
  7849. "//a[contains(@href,'brupload.net')]");
  7850. }
  7851. if (GM_getValue("Check_cloudzilla_dot_to_links", false))
  7852. {
  7853. addFileHost(
  7854. "cloudzilla\.to\/\\w+",
  7855. 'btn1" id="free_download|onclick="freeDownload|id="pwd_protected">',
  7856. 'File not found|/imgs/broken.png',
  7857. 'optional--',
  7858. //'optional--',
  7859. "//a[contains(@href,'cloudzilla.to')]");
  7860. }
  7861. if (GM_getValue("Check_fileparadox_dot_in_links", false))
  7862. {
  7863. addFileHost(
  7864. "fileparadox\.in\/\\w+",
  7865. 'CONTENT="Download File|method_free_file',
  7866. '>File Not Found<|id="no_filedownload">|FILE NOT FOUND|The file does not exist',
  7867. 'optional--',
  7868. //'optional--',
  7869. "//a[contains(@href,'fileparadox.in')or contains(@href,'3files.net/')]");
  7870. }
  7871. if (GM_getValue("Check_clicknupload_dot_com_links", false))
  7872. {
  7873. addFileHost(
  7874. "clicknupload\.com\/\\w+",
  7875. 'name="method_free',
  7876. 'File Not Found',
  7877. 'optional--',
  7878. //'optional--',
  7879. "//a[contains(@href,'clicknupload.com')]");
  7880. }
  7881. if (GM_getValue("Check_ex_dash_load_dot_com_links", false))
  7882. {
  7883. addFileHost(
  7884. "ex-load\.com\/\\w+",
  7885. 'name="method_free|<p>Download File:</p>',
  7886. 'Folder Not Found|File Not Found|Error 404',
  7887. 'optional--',
  7888. //'optional--',
  7889. "//a[contains(@href,'ex-load.com')]");
  7890. }
  7891. if (GM_getValue("Check_hexupload_dot_com_links", false))
  7892. {
  7893. addFileHost(
  7894. "hexupload\.com\/\\w+",
  7895. 'button" value="Free|type="submit" value=""',
  7896. 'File Not Found|<div style="width:500px;text-align:left;">',
  7897. 'optional--',
  7898. //'optional--',
  7899. "//a[contains(@href,'hexupload.com')]");
  7900. }
  7901. if (GM_getValue("Check_wizupload_dot_com_links", false))
  7902. {
  7903. addFileHost(
  7904. "wizupload\.com\/\\w+",
  7905. 'btn_download|class="downloadbtn"',
  7906. '>File Not Found<',
  7907. 'optional--',
  7908. //'optional--',
  7909. "//a[contains(@href,'wizupload.com')]");
  7910. }
  7911. if (GM_getValue("Check_filecloud_dot_cc_links", false))
  7912. {
  7913. addFileHost(
  7914. "filecloud\.cc\/\\w+",
  7915. 'align="center"><input type="submit" name=',
  7916. 'File Not Found|<Title>FileCloud - Premium Hosting Service<',
  7917. 'optional--',
  7918. //'optional--',
  7919. "//a[contains(@href,'filecloud.cc')]");
  7920. }
  7921. if (GM_getValue("Check_inclouddrive_dot_com_links", false))
  7922. {
  7923. addFileHost(
  7924. "inclouddrive\.com\/\\w+",
  7925. 'initfreedownload',
  7926. '<title>Content Unavailable|The file you are trying to download is no longer available',
  7927. 'optional--',
  7928. //'optional--',
  7929. "//a[contains(@href,'inclouddrive.com')]");
  7930. }
  7931. if (GM_getValue("Check_radicalshare_dot_com_links", false))
  7932. {
  7933. addFileHost(
  7934. "radicalshare\.com\/\\w+",
  7935. 'value="download1|name="method_free"',
  7936. 'File Not Found<|<div style="width:500px;text-align:left;">',
  7937. 'optional--',
  7938. //'optional--',
  7939. "//a[contains(@href,'radicalshare.com')]");
  7940. }
  7941. if (GM_getValue("Check_sharemods_dot_com_links", false))
  7942. {
  7943. addFileHost(
  7944. "sharemods\.com\/\\w+",
  7945. 'name="method_free"',
  7946. 'File Not Found<',
  7947. 'optional--',
  7948. //'optional--',
  7949. "//a[contains(@href,'sharemods.com')]");
  7950. }
  7951. if (GM_getValue("Check_hostr_dot_co_links", false))
  7952. {
  7953. addFileHost(
  7954. "hostr\.co\/\\w+",
  7955. 'method="get"',
  7956. 'File not found<|error-page',
  7957. 'optional--',
  7958. //'optional--',
  7959. "//a[contains(@href,'hostr.co')]");
  7960. }
  7961. if (GM_getValue("Check_filepi_dot_com_links", false))
  7962. {
  7963. addFileHost(
  7964. "filepi\.com\/\\w+",
  7965. 'id="button_start">',
  7966. 'File not found',
  7967. 'optional--',
  7968. //'optional--',
  7969. "//a[contains(@href,'filepi.com')]");
  7970. }
  7971. if (GM_getValue("Check_tikfile_dot_com_links", false))
  7972. {
  7973. addFileHost(
  7974. "tikfile\.com\/\\w+",
  7975. 'btn_download',
  7976. 'File Not Found|file was removed|Reason for deletion',
  7977. 'optional--',
  7978. //'optional--',
  7979. "//a[contains(@href,'tikfile.com')]");
  7980. }
  7981. if (GM_getValue("Check_cloudsix_dot_me_links", false))
  7982. {
  7983. addFileHost(
  7984. "cloudsix\.me\/\\w+",
  7985. 'name="method_free"',
  7986. 'File Not Found|width:500px;text-align:left;">',
  7987. 'optional--',
  7988. //'optional--',
  7989. "//a[contains(@href,'cloudsix.me')]");
  7990. }
  7991. if (GM_getValue("Check_neodrive_dot_co_links", false))
  7992. {
  7993. addFileHost(
  7994. "neodrive\.co\/\\w+",
  7995. 'btn1" id="free_download|onclick="freeDownload|id="pwd_protected">',
  7996. 'File not found|/imgs/broken.png',
  7997. 'optional--',
  7998. //'optional--',
  7999. "//a[contains(@href,'neodrive.co')]");
  8000. }
  8001. if (GM_getValue("Check_chayfile_dot_com_links", false))
  8002. {
  8003. addFileHost(
  8004. "chayfile\.com\/\\w+",
  8005. 'name="method_free"',
  8006. 'File Not Found|<h3>The file was removed by administrator</h3>',
  8007. 'optional--',
  8008. //'optional--',
  8009. "//a[contains(@href,'chayfile.com')]");
  8010. }
  8011. if (GM_getValue("Check_xfileload_dot_com_links", false))
  8012. {
  8013. addFileHost(
  8014. "xfileload\.com\/\\w+",
  8015. 'Filename:|Имя файла:|Dateiname:|nom de fichier :|اسم الملف:|Dosya AdД±|Nazwa:|Nombre de fichero:|NamaFile:|Bestandsnaam:|שם קובץ:"',
  8016. '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..|הקובץ שחיפשת לא נמצא.',
  8017. 'optional--',
  8018. //'optional--',
  8019. "//a[contains(@href,'xfileload.com')]");
  8020. }
  8021. if (GM_getValue("Check_rockfile_dot_eu_links", false))
  8022. {
  8023. addFileHost(
  8024. "rockfile\.eu\/\\w+",
  8025. 'You have requested:',
  8026. 'The file you were looking for could not be found, sorry for any inconvenience.',
  8027. 'optional--',
  8028. //'optional--',
  8029. "//a[contains(@href,'rockfile.eu')]");
  8030. }
  8031. if (GM_getValue("Check_24uploading_dot_com_links", false))
  8032. {
  8033. addFileHost(
  8034. "24uploading\.com\/\\w+",
  8035. 'File:|Download Speed:',
  8036. '<b>File Not Found</b>|file was removed',
  8037. 'optional--',
  8038. //'optional--',
  8039. "//a[contains(@href,'24uploading.com')]");
  8040. }
  8041. if (GM_getValue("Check_tusfiles_dot_net_links", false))
  8042. {
  8043. addFileHost(
  8044. "tusfiles\.net\/\\w+",
  8045. 'i/icon/dll.png"|>Start download<br',
  8046. 'no longer available<|i/ino.png"',
  8047. 'optional--',
  8048. //'optional--',
  8049. "//a[contains(@href,'tusfiles.net')]");
  8050. }
  8051. if (GM_getValue("Check_jumbofile_dot_net_links", false))
  8052. {
  8053. addFileHost(
  8054. "jumbofile\.net\/\\w+",
  8055. 'button" class="" value="Free',
  8056. 'This File Was Deleted',
  8057. 'optional--',
  8058. //'optional--',
  8059. "//a[contains(@href,'jumbofile.net')]");
  8060. }
  8061. if (GM_getValue("Check_ozofiles_dot_com_links", false))
  8062. {
  8063. addFileHost(
  8064. "ozofiles\.com\/\\w+",
  8065. 'button" value="Free',
  8066. 'File Not Found|width:500px;text-align:left;">|File Deleted',
  8067. 'optional--',
  8068. //'optional--',
  8069. "//a[contains(@href,'ozofiles.com')]");
  8070. }
  8071. if (GM_getValue("Check_loudupload_dot_net_links", false))
  8072. {
  8073. addFileHost(
  8074. "loudupload\.net\/\\w+",
  8075. 'value="Get Links',
  8076. 'File Not Found',
  8077. 'optional--',
  8078. //'optional--',
  8079. "//a[contains(@href,'loudupload.net')]");
  8080. }
  8081. if (GM_getValue("Check_rapidsonic_dot_com_links", false))
  8082. {
  8083. addFileHost(
  8084. "(rapidsonic|fileparadox)\\.com\/\\w+",
  8085. 'method_free" id="submit_btn|<h4><i class="icon_document_alt"></i>Download File</h4>',
  8086. '>File Not Found<|id="no_filedownload">|>FILE NOT FOUND<|file has been deleted|No such file with this filename|style="font-size:24px;color:#E70012">',
  8087. 'optional--',
  8088. //'optional--',
  8089. "//a[contains(@href,'rapidsonic') or contains(@href,'3files.net/') or contains(@href,'fileparadox.com')]");
  8090. }
  8091. if (GM_getValue("Check_krotix_dot_net_links", false))
  8092. {
  8093. addFileHost(
  8094. "krotix\.net\/\\w+",
  8095. 'btn btn-warning|btn-free',
  8096. 'pageErrors|This File has been removed',
  8097. 'content="Scheduled Maintenance',
  8098. //'optional--',
  8099. "//a[contains(@href,'krotix.net')]");
  8100. }
  8101. if (GM_getValue("Check_userscloud_dot_com_links", false))
  8102. {
  8103. addFileHost(
  8104. "userscloud\.com\/\\w+",
  8105. 'btn_download',
  8106. '>Server OFFLINE|background:#D3D3D3;border-bottom:1px solid #BBB;font:bold 13px Verdana;padding:3px;">|-chain-broken',
  8107. 'optional--',
  8108. //'optional--',
  8109. "//a[contains(@href,'userscloud.com')]");
  8110. }
  8111. if (GM_getValue("Check_kumpulbagi_dot_com_links", false))
  8112. {
  8113. addFileHost(
  8114. "kumpulbagi\.com\/\\w+",
  8115. 'class="button download',
  8116. 'internal server error',
  8117. 'optional--',
  8118. //'optional--',
  8119. "//a[contains(@href,'kumpulbagi.com')]");
  8120. }
  8121. if (GM_getValue("Check_faststore_dot_org_links", false))
  8122. {
  8123. addFileHost(
  8124. "faststore\.org\/\\w+",
  8125. 'name="method_free',
  8126. 'File Not Found',
  8127. 'optional--',
  8128. //'optional--',
  8129. "//a[contains(@href,'faststore.org')]");
  8130. }
  8131. if (GM_getValue("Check_prefiles_dot_com_links", false))
  8132. {
  8133. addFileHost(
  8134. "prefiles\.com\/\\w+",
  8135. 'id="method_free',
  8136. 'File not Found',
  8137. 'optional--',
  8138. //'optional--',
  8139. "//a[contains(@href,'prefiles.com')]");
  8140. }
  8141. if (GM_getValue("Check_doraupload_dot_com_links", false))
  8142. {
  8143. addFileHost(
  8144. "doraupload\.com\/\\w+",
  8145. 'btn_download',
  8146. 'class="error-code|Could Not Be Found',
  8147. 'optional--',
  8148. //'optional--',
  8149. "//a[contains(@href,'doraupload.com')]");
  8150. }
  8151. if (GM_getValue("Check_openload_dot_io_links", false))
  8152. {
  8153. addFileHost(
  8154. "openload\.io\/\\w+",
  8155. 'btn btn-primary|class="count">',
  8156. 'class="jumbotron">|We are sorry',
  8157. 'optional--',
  8158. //'optional--',
  8159. "//a[contains(@href,'openload.io')]");
  8160. }
  8161. if (GM_getValue("Check_uploads_dot_xxx_links", false))
  8162. {
  8163. addFileHost(
  8164. "uploads\.xxx\/\\w+",
  8165. 'downoadForFree',
  8166. 'File not found',
  8167. 'optional--',
  8168. //'optional--',
  8169. "//a[contains(@href,'uploads.xxx')]");
  8170. }
  8171. if (GM_getValue("Check_zxcfiles_dot_com_links", false))
  8172. {
  8173. addFileHost(
  8174. "zxcfiles\.com\/\\w+",
  8175. 'class="downloadbtn',
  8176. 'File Not Found',
  8177. 'optional--',
  8178. //'optional--',
  8179. "//a[contains(@href,'zxcfiles.com')]");
  8180. }
  8181. if (GM_getValue("Check_up07_dot_net_links", false))
  8182. {
  8183. addFileHost(
  8184. "up07\.net\/\\w+",
  8185. 'name="method_free',
  8186. 'File Not Found',
  8187. 'optional--',
  8188. //'optional--',
  8189. "//a[contains(@href,'up07.net')]");
  8190. }
  8191. if (GM_getValue("Check_fileupload_dot_pw_links", false))
  8192. {
  8193. addFileHost(
  8194. "fileupload\.pw\/\\w+",
  8195. 'value="Free"',
  8196. 'File Not Found',
  8197. 'optional--',
  8198. //'optional--',
  8199. "//a[contains(@href,'fileupload.pw')]");
  8200. }
  8201. if (GM_getValue("Check_4upld_dot_com_links", false))
  8202. {
  8203. addFileHost(
  8204. "4upld\.com\/\\w+",
  8205. 'alt="Download Now"|content="Download file">|btn-free-element',
  8206. '<title>Error|content="error|File not found',
  8207. 'optional--',
  8208. //'optional--',
  8209. "//a[contains(@href,'4upld.com')]");
  8210. }
  8211. if (GM_getValue("Check_newfileland_dot_com_links", false))
  8212. {
  8213. addFileHost(
  8214. "newfileland\.com\/\\w+",
  8215. 'name="method_free',
  8216. 'File Not Found',
  8217. 'optional--',
  8218. //'optional--',
  8219. "//a[contains(@href,'newfileland.com')]");
  8220. }
  8221. if (GM_getValue("Check_swoopshare_dot_com_links", false))
  8222. {
  8223. addFileHost(
  8224. "(?:.swoopshare)\\.com\/\\w+",
  8225. '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',
  8226. '<input type="file" name="f"',
  8227. 'optional--',
  8228. //'optional--',
  8229. "//a[contains(@href,'swoopshare.com')]"
  8230. );
  8231. }
  8232. if (GM_getValue("Check_cloudshares_dot_net_links", false))
  8233. {
  8234. addFileHost(
  8235. "cloudshares\.net\/\\w+",
  8236. '"method_free|"Low Speed Download|submit" name="go',
  8237. 'Not Found|"width:500px;text-align:left;">|No such file exist',
  8238. 'optional--',
  8239. //'optional--',
  8240. "//a[contains(@href,'cloudshares.net')]"
  8241. );
  8242. }
  8243. if (GM_getValue("Check_allmyvideos_dot_net_links", false))
  8244. {
  8245. addFileHost(
  8246. "allmyvideos\.net\/\\w+",
  8247. 'Continue to Video',
  8248. 'File Not Found|class="err">Removed for',
  8249. 'optional--',
  8250. //'optional--',
  8251. "//a[contains(@href,'allmyvideos.net')]"
  8252. );
  8253. }
  8254. if (GM_getValue("Check_vodlocker_dot_com_links", false))
  8255. {
  8256. addFileHost(
  8257. "vodlocker\.com\/\\w+",
  8258. 'Proceed to video',
  8259. 'Not Found',
  8260. 'optional--',
  8261. //'optional--',
  8262. "//a[contains(@href,'vodlocker.com')]"
  8263. );
  8264. }
  8265. if (GM_getValue("Check_vidbull_dot_com_links", false))
  8266. {
  8267. addFileHost(
  8268. "vidbull\.com\/\\w+",
  8269. 'Verifying Video Request',
  8270. 'File Not Found',
  8271. 'optional--',
  8272. //'optional--',
  8273. "//a[contains(@href,'vidbull.com')]");
  8274. }
  8275. if (GM_getValue("Check_novamov_dot_com_links", false))
  8276. {
  8277. addFileHost(
  8278. "novamov\.com\/\\w+",
  8279. 'For version detection',
  8280. 'file no longer exists',
  8281. 'optional--',
  8282. //'optional--',
  8283. "//a[contains(@href,'novamov.com')]"
  8284. );
  8285. }
  8286. if (GM_getValue("Check_filehoot_dot_com_links", false))
  8287. {
  8288. addFileHost(
  8289. "filehoot\.com\/\\w+",
  8290. 'Continue to watch',
  8291. 'File Not Found',
  8292. 'optional--',
  8293. //'optional--',
  8294. "//a[contains(@href,'filehoot.com')]"
  8295. );
  8296. }
  8297. if (GM_getValue("Check_stagevu_dot_com_links", false))
  8298. {
  8299. addFileHost(
  8300. "stagevu\.com\/\\w+",
  8301. 'Video Info',
  8302. 'No video with the provided',
  8303. 'optional--',
  8304. //'optional--',
  8305. "//a[contains(@href,'stagevu.com')]"
  8306. );
  8307. }
  8308. if (GM_getValue("Check_cloudtime_dot_to_links", false))
  8309. {
  8310. addFileHost(
  8311. "cloudtime\.to\/\\w+",
  8312. 'Download the video',
  8313. 'no longer exists',
  8314. 'optional--',
  8315. //'optional--',
  8316. "//a[contains(@href,'cloudtime.to')]"
  8317. );
  8318. }
  8319. if (GM_getValue("Check_streamin_dot_to_links", false))
  8320. {
  8321. addFileHost(
  8322. "streamin\.to\/\\w+",
  8323. 'id="btn_download',
  8324. 'Not Found|Copyright Infringement|File Deleted',
  8325. 'optional--',
  8326. //'optional--',
  8327. "//a[contains(@href,'streamin.to')]"
  8328. );
  8329. }
  8330. if (GM_getValue("Check_videoweed_dot_es_links", false))
  8331. {
  8332. addFileHost(
  8333. "videoweed\.es\/\\w+",
  8334. 'version detection',
  8335. 'no longer exists',
  8336. 'optional--',
  8337. //'optional--',
  8338. "//a[contains(@href,'videoweed.es')]"
  8339. );
  8340. }
  8341. if (GM_getValue("Check_nowvideo_dot_sx_links", false))
  8342. {
  8343. addFileHost(
  8344. "nowvideo\.sx\/\\w+",
  8345. 'Download this video',
  8346. 'no longer exists',
  8347. 'optional--',
  8348. //'optional--',
  8349. "//a[contains(@href,'nowvideo.sx')]"
  8350. );
  8351. }
  8352. if (GM_getValue("Check_thevideo_dot_me_links", false))
  8353. {
  8354. addFileHost(
  8355. "thevideo\.me\/\\w+",
  8356. 'Upgrade your account|Proceed to video',
  8357. 'File Not Found',
  8358. 'optional--',
  8359. //'optional--',
  8360. "//a[contains(@href,'thevideo.me')]"
  8361. );
  8362. }
  8363. if (GM_getValue("Check_gorillavid_dot_in_links", false))
  8364. {
  8365. addFileHost(
  8366. "gorillavid\.in\/\\w+",
  8367. 'Wait 5 seconds',
  8368. 'File Not Found',
  8369. 'optional--',
  8370. //'optional--',
  8371. "//a[contains(@href,'gorillavid.in')]"
  8372. );
  8373. }
  8374. if (GM_getValue("Check_thefile_dot_me_links", false))
  8375. {
  8376. addFileHost(
  8377. "thefile\.me\/\\w+",
  8378. 'Choose free or',
  8379. '',
  8380. 'optional--',
  8381. //'optional--',
  8382. "//a[contains(@href,'thefile.me')]"
  8383. );
  8384. }
  8385. if (GM_getValue("Check_vidzi_dot_tv_links", false))
  8386. {
  8387. addFileHost(
  8388. "vidzi\.tv\/\\w+",
  8389. 'video-embed-modal row',
  8390. 'File Not Found|file was deleted',
  8391. 'optional--',
  8392. //'optional--',
  8393. "//a[contains(@href,'vidzi.tv')]"
  8394. );
  8395. }
  8396. if (GM_getValue("Check_filenuke_dot_com_links", false))
  8397. {
  8398. addFileHost(
  8399. "filenuke\.com\/\\w+",
  8400. 'Download File',
  8401. 'Earn with us',
  8402. 'optional--',
  8403. //'optional--',
  8404. "//a[contains(@href,'filenuke.com')]"
  8405. );
  8406. }
  8407. if (GM_getValue("Check_vidto_dot_me_links", false))
  8408. {
  8409. addFileHost(
  8410. "vidto\.me\/\\w+",
  8411. 'Proceed to video',
  8412. 'Not Found',
  8413. 'optional--',
  8414. //'optional--',
  8415. "//a[contains(@href,'vidto.me')]"
  8416. );
  8417. }
  8418. if (GM_getValue("Check_vidspot_dot_net_links", false))
  8419. {
  8420. addFileHost(
  8421. "vidspot\.net\/\\w+",
  8422. 'Duration',
  8423. 'Removed for',
  8424. 'optional--',
  8425. //'optional--',
  8426. "//a[contains(@href,'vidspot.net')]"
  8427. );
  8428. }
  8429. if (GM_getValue("Check_sharesix_dot_com_links", false))
  8430. {
  8431. addFileHost(
  8432. "(?:sharesix\\.com|sharesix\\.net)\/\\w+",
  8433. 'Download File',
  8434. 'File Not Found',
  8435. 'optional--',
  8436. //'optional--',
  8437. "//a[contains(@href,'sharesix.com') or contains(@href,'sharesix.net/')]"
  8438. );
  8439. }
  8440. if (GM_getValue("Check_movpod_dot_in_links", false))
  8441. {
  8442. addFileHost(
  8443. "movpod\.in\/\\w+",
  8444. 'Continue',
  8445. 'File Not Found',
  8446. 'optional--',
  8447. //'optional--',
  8448. "//a[contains(@href,'movpod.in')]"
  8449. );
  8450. }
  8451. if (GM_getValue("Check_down4files_dot_com_links", false))
  8452. {
  8453. addFileHost(
  8454. "down4files\.com\/\\w+",
  8455. 'down_table.png',
  8456. 'style="color:#d33|Error</td>|width:500px;text-align:left;">',
  8457. 'optional--',
  8458. //'optional--',
  8459. "//a[contains(@href,'down4files.com')]"
  8460. );
  8461. }
  8462. if (GM_getValue("Check_storefiles_dot_co_links", false))
  8463. {
  8464. addFileHost(
  8465. "storefiles\.co\/\\w+",
  8466. 'btn_download',
  8467. 'No such file|>Error<|mqmaintitle">',
  8468. 'optional--',
  8469. //'optional--',
  8470. "//a[contains(@href,'storefiles.co')]"
  8471. );
  8472. }
  8473. if (GM_getValue("Check_filehost_dot_pw_links", false))
  8474. {
  8475. addFileHost(
  8476. "filehost\.pw\/\\w+",
  8477. 'name="method_free',
  8478. '>Error<|style="color:#d33;">|No such file|FILE NOT FOUND',
  8479. 'optional--',
  8480. //'optional--',
  8481. "//a[contains(@href,'filehost.pw')]"
  8482. );
  8483. }
  8484. if (GM_getValue("Check_inafile_dot_com_links", false))
  8485. {
  8486. addFileHost(
  8487. "inafile\.com\/\\w+",
  8488. 'value="download1">|<h2>File: <font style="color:darkred">',
  8489. '<div style="width:500px;text-align:left;">|File Not Found',
  8490. 'optional--',
  8491. //'optional--',
  8492. "//a[contains(@href,'inafile.com')]"
  8493. );
  8494. }
  8495. if (GM_getValue("Check_uplea_dot_com_links", false))
  8496. {
  8497. addFileHost(
  8498. "uplea\.com\/\\w+",
  8499. 'Download your file:|de votre fichier:|class="download-container',
  8500. 'expired link|ou est invalide',
  8501. 'optional--',
  8502. //'optional--',
  8503. "//a[contains(@href,'uplea.com/dl')]"
  8504. );
  8505. }
  8506. if (GM_getValue("Check_openload_dot_co_links", false))
  8507. {
  8508. addFileHost(
  8509. "openload\.co\/\\w+",
  8510. 'id="downloadTimer">|button dlbutton',
  8511. 'jumbotron{color|got deleted|center !important',
  8512. 'optional--',
  8513. //'optional--',
  8514. "//a[contains(@href,'openload.co')]"
  8515. );
  8516. }
  8517.  
  8518.  
  8519. }
  8520. //start here
  8521.  
  8522. //hosts with direct download, so they must be requested for headers only
  8523. function initFileHostsHeadersOnly()
  8524. {
  8525. function addFileHostHeadersOnly(linkRegex, isAliveRegex, isDeadRegex, xpathEx, ispremRegex)
  8526. {
  8527. var host = new Array(5);
  8528. host[0] = linkRegex;
  8529. host[1] = isAliveRegex;
  8530. host[2] = isDeadRegex;
  8531. host[3] = xpathEx;
  8532. host[4] = ispremRegex;
  8533. http_file_hosts_headers_only.push(host);
  8534. }
  8535. if (GM_getValue("Check_uloziste_dot_com_links", false))
  8536. {
  8537. addFileHostHeadersOnly(
  8538. "(?:|files\\.)uloziste\\.com\/\\w+\/\\w+",
  8539. 'Connection: Keep-Alive',
  8540. 'Content-Length: 3857',
  8541. "//a[contains(@href,'uloziste.com')]"
  8542. )
  8543. }
  8544. if (GM_getValue("Check_adrive_dot_com_links", false))
  8545. {
  8546. addFileHostHeadersOnly(
  8547. "adrive\\.com\/public\/\\w+",
  8548. 'Connection: keep-alive',
  8549. 'orig_ref=deleted',
  8550. "//a[contains(@href,'adrive.com')]"
  8551. )
  8552. }
  8553. if (GM_getValue("Check_myupload_dot_dk_links", false))
  8554. {
  8555. addFileHostHeadersOnly(
  8556. "myupload\\.dk\/showfile\/\\w+",
  8557. 'Expires:',
  8558. 'squeeze1\\s+Vary',
  8559. "//a[contains(@href,'myupload.dk/showfile')]"
  8560. )
  8561. }
  8562. }
  8563. //CustomRules
  8564. //functions add...Host copied here
  8565. function addObsoleteHost(linkRegex, xpathEx)
  8566. {
  8567. var host = new Array(2);
  8568. host[0] = linkRegex;
  8569. host[1] = xpathEx;
  8570. http_file_hosts_obsolete.push(host);
  8571. }
  8572. function addFileHost(linkRegex, isAliveRegex, isDeadRegex, isUnavaRegex, xpathEx, tryLoop, ispremRegex)
  8573. {
  8574. var host = new Array(7);
  8575. host[0] = linkRegex;
  8576. host[1] = isAliveRegex;
  8577. host[2] = isDeadRegex;
  8578. host[3] = isUnavaRegex;
  8579. host[4] = xpathEx;
  8580. tryLoop ? host[5] = true : host[5] = false;
  8581. host[6] = ispremRegex;
  8582. http_file_hosts.push(host);
  8583. }
  8584. function addFileHostHeadersOnly(linkRegex, isAliveRegex, isDeadRegex, xpathEx, ispremRegex)
  8585. {
  8586. var host = new Array(5);
  8587. host[0] = linkRegex;
  8588. host[1] = isAliveRegex;
  8589. host[2] = isDeadRegex;
  8590. host[3] = xpathEx;
  8591. host[4] = ispremRegex;
  8592. http_file_hosts_headers_only.push(host);
  8593. }
  8594. //takes a fully built rules array and adds the rules to WARLC
  8595. function applyCustomRules(customRules)
  8596. {
  8597. if (!customRules) return;
  8598. var rules, r, i;
  8599. rules = customRules.rules;
  8600. for (i = 0 ; i < rules.length ; i++)
  8601. {
  8602. r = rules[i];
  8603. if (r.enabled)
  8604. {
  8605. switch (r.type)
  8606. {
  8607. case 'single':
  8608. addFileHost(r.urlregex, r.aliveregex, r.deadregex, r.unavaregex, r.premregex||'', r.xpath);
  8609. break;
  8610. case 'headers':
  8611. addFileHostHeadersOnly(r.urlregex, r.aliveregex, r.deadregex, r.xpath, r.premregex);
  8612. break;
  8613. case 'obsolete':
  8614. addObsoleteHost(r.urlregex, r.xpath)
  8615. break;
  8616. }
  8617. }
  8618. }
  8619. }
  8620.  
  8621.  
  8622. function initFileHostsCustom()
  8623. {
  8624. if (Custom_rules && Custom_rules_text)
  8625. {
  8626. var msg = '';
  8627. if (newVersion)
  8628. msg = 'New version of W.A.R. Links Checker detected.\n\n';
  8629. else if ((now - last_custom_rules_nag) >= 60*24*60*60*1000)
  8630. msg = '60 or more days have passed since this notification.\n\n';
  8631. if (msg && /^\s*@customrule(?:_obsolete)?\s/mi.test(Custom_rules_text))
  8632. {
  8633. GM_setValue('last_custom_rules_nag', ''+new Date().getTime()); //reset nag
  8634. msg +=
  8635. 'Either new version of W.A.R. Links Checker detected or 60 days passed since this notify.\n'+
  8636. 'Please check that your custom rules haven\'t been built into WARLC.\n'+
  8637. 'If not, please share them with us so they can be included in the next version! Built-in rules are always preferred.\n\n'+
  8638. 'We apologize for this annoying notification, but there is a reason to this.\n'+
  8639. 'Ideally, WARLC would check which of your custom rules have been included and disable them. '+
  8640. 'Unfortunately, there is no easy way to do that, but we don\'t want everybody to just use their custom rules '+
  8641. 'forever without ever checking if the built-in ones have been added/fixed. This is currently the only way '+
  8642. 'to remind you that you should try built-in rules, report missing/non-working ones and share your custom rules.';
  8643. setTimeout(function(){alert(msg)},0);
  8644. }
  8645. var customRules = parseCustomRules(Custom_rules_text);
  8646. if (customRules.warning || customRules.error)
  8647. alert('There were ' + customRules.error + ' errors, ' + customRules.warning + ' warnings, ' +
  8648. customRules.note + ' notes found during Custom Rules processing.\n' + customRules.rules.length + ' valid rules found.\n\n' +
  8649. JSON.stringify(customRules.info, null, ' '));
  8650. applyCustomRules(customRules);
  8651. }
  8652. }
  8653. //end of CustomRules processing
  8654.  
  8655.  
  8656.  
  8657. } //end of function start
  8658.  
  8659.  
  8660.  
  8661. function initClipBoardTools()
  8662. {
  8663. unsafeWindow.copyToClipboard = function(text)
  8664. {
  8665. try
  8666. {
  8667. this.netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
  8668.  
  8669. var str = Components.classes["@mozilla.org/supports-string;1"].
  8670. createInstance(Components.interfaces.nsISupportsString);
  8671. if (!str) return false;
  8672.  
  8673. str.data = text;
  8674.  
  8675. var trans = Components.classes["@mozilla.org/widget/transferable;1"].
  8676. createInstance(Components.interfaces.nsITransferable);
  8677. if (!trans) return false;
  8678.  
  8679. trans.addDataFlavor("text/unicode");
  8680. trans.setTransferData("text/unicode", str, text.length * 2);
  8681.  
  8682. var clipid = Components.interfaces.nsIClipboard;
  8683. var clip = Components.classes["@mozilla.org/widget/clipboard;1"].getService(clipid);
  8684. if (!clip) return false;
  8685.  
  8686. clip.setData(trans, null, clipid.kGlobalClipboard);
  8687. } catch (e) {
  8688. GM_log("Error copyToClipboard : " + e);
  8689. alert(e + "\n\nsigned.applets.codebase_principal_support must be set true in about:config")
  8690. }
  8691. }
  8692. }
  8693.  
  8694.  
  8695.  
  8696. //CustomRules
  8697.  
  8698. function escapeRegex(str)
  8699. {
  8700. return str.replace(/[\-\[\]{}()*+?.,\\\^$|#]/g, "\\$&");
  8701. }
  8702.  
  8703.  
  8704. //called internally from parseCustomRules.
  8705. //expected: rule object with array fields baseurl, alivematch etc, everything must already be checked for input errors
  8706. //returns the rule object with string fields urlregex, xpath, aliveregex etc built from the arrays
  8707. function makeCustomRule(rule)
  8708. {
  8709. function makeMatchRegex(arrmatch)
  8710. {
  8711. return escapeRegex(arrmatch.join('\n'))
  8712. .replace(/ +/g, '\\s+') //two or more spaces to any whitespace
  8713. .replace(/\n/g,'|'); //join together
  8714. }
  8715. if (rule.alivematch) rule.aliveregex = makeMatchRegex(rule.alivematch);
  8716. if (rule.deadmatch) rule.deadregex = makeMatchRegex(rule.deadmatch);
  8717. if (rule.unavamatch) rule.unavaregex = makeMatchRegex(rule.unavamatch);
  8718. if (rule.premmatch) rule.premregex = makeMatchRegex(rule.premmatch);
  8719. if (rule.baseurl)
  8720. {
  8721. var i, m, urlregex = [], xpath = [], len = rule.baseurl.length;
  8722. for (i = 0 ; i < len ; i++)
  8723. {
  8724. m = rule.baseurl[i].match(/^([a-z0-9\.-]+)(?: +([a-z \.]+) +)?(\/.*)$/);
  8725. if (m[2]) //baseurl in the form: example. com co.uk net /xxx
  8726. {
  8727. 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'])
  8728. urlregex.push( (m[1] + '(?:'+ m[2].replace(/\s+/g,'|') + ')').replace(/\./g,'\\.') + escapeRegex(m[3]) + '.'); //urlregex.push('example\\.(?:com|co\\.uk|net)/xxx.')
  8729. }
  8730. else //baseurl in the form: example.com/xxx
  8731. {
  8732. xpath.push(m[0]);
  8733. urlregex.push(escapeRegex(m[0]) + '.');
  8734. }
  8735. }
  8736. rule.xpath = "//a[contains(@href,'" + xpath.join("') or contains(@href,'") + "')]";
  8737. rule.urlregex = '(?:[a-z0-9\\.-]+\\.)?(?:' + urlregex.join('|') + ')';
  8738. }
  8739. return rule;
  8740. } //function makeCustomRule
  8741.  
  8742.  
  8743. /*
  8744. Takes a string containing custom link checking rules.
  8745. Returns an object with fields:
  8746. info - contains notes, warnings and errors found during parsing
  8747. rules - the array of custom rules
  8748. note, warning, error - number of each of them found during parsing
  8749. Format of the input string:
  8750. One command per line. Command format: @keyword parameter
  8751. Keywords:
  8752. @customrule, @customrule_obsolete, @customrule_headers - begin a new custom rule. Parameter: name of the rule
  8753. @#customrule, @#customrule_obsolete, @#customrule_headers - begin and parse this custom rule, but don't use it. Parameter: name of the rule
  8754. These keywords can be multiple (any of them will work):
  8755. @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...)
  8756. @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+
  8757. @alivelink, @deadlink - example links
  8758. @baseurl is always required, @alivematch and @deadmatch are required except for obsolete. @unavamatch is ignored for obsolete. @*link is optional.
  8759. Lines starting with // and empty lines are ignored.
  8760. Invalid parameters generate errors and those lines are skipped.
  8761. Other lines generate warnings, but are otherwise ignored (also those before the first @customrule line or inside a rule with invalid name).
  8762. Example:
  8763. @customrule filehost
  8764. @baseurl filehost.com/download/
  8765. @baseurl filehost2. com net /d?=
  8766. @alivematch id="download">
  8767. @deadmatch File not found
  8768. @deadmatch File deleted
  8769. */
  8770. function parseCustomRules(rulesStr)
  8771. {
  8772. var linenum, customRules = {'info': [], 'rules': [], 'note': 0, 'warning': 0, 'error': 0};
  8773. function addInfo(type, msg, ln){
  8774. customRules.info.push({'linenum':(ln===undefined ? linenum+1 : ln+1), 'type':type, 'msg':msg});
  8775. customRules[type]++;
  8776. }
  8777. var lines = rulesStr.match(/^(.*)$/gm); //split into array of lines
  8778. if (!lines) return null;
  8779. lines.push('@#customrule _'); //to save the last rule
  8780. var m, linecount = lines.length;
  8781. var keyword, param, constr, rule, err;
  8782. var TLD = '[a-z]{2,7}(?:\\.[a-z]{2,7})?';
  8783. var TLDorTLDlist = '(?:'+TLD+'| '+TLD+'(?: '+TLD+'){0,9} )'; //TLD or space-separated list of TLDs
  8784. var baseurlRE = new RegExp('^([a-z0-9-]{1,30}(?:\\.[a-z0-9-]{1,30}){0,2}\\.)'+TLDorTLDlist+'(/[^\'"\s\$]{0,50})$', 'i');
  8785. var constraints = {
  8786. 'baseurl': {
  8787. 'single': {'min': 1, 'max': 10, 'paramRE': baseurlRE},
  8788. 'headers': {'min': 1, 'max': 10, 'paramRE': baseurlRE},
  8789. 'obsolete': {'min': 1, 'max': 10, 'paramRE': baseurlRE}},
  8790. 'alivematch': {
  8791. 'single': {'min': 1, 'max': 10, 'paramRE': null},
  8792. 'headers': {'min': 1, 'max': 10, 'paramRE': null}},
  8793. 'deadmatch': {
  8794. 'single': {'min': 1, 'max': 10, 'paramRE': null},
  8795. 'headers': {'min': 1, 'max': 10, 'paramRE': null}},
  8796. 'unavamatch': {
  8797. 'single': {'min': 0, 'max': 10, 'paramRE': null}},
  8798. 'alivelink': {
  8799. 'single': {'min': 0, 'max': 10, 'paramRE': null},
  8800. 'headers': {'min': 0, 'max': 10, 'paramRE': null}},
  8801. 'deadlink': {
  8802. 'single': {'min': 0, 'max': 10, 'paramRE': null},
  8803. 'headers': {'min': 0, 'max': 10, 'paramRE': null},
  8804. 'obsolete': {'min': 0, 'max': 10, 'paramRE': null}}
  8805. };
  8806. for (linenum = 0 ; linenum < linecount ; linenum++)
  8807. {
  8808. //capturing groups: 1 23 4 5 6
  8809. m = lines[linenum].match(/^\s*(?:(\/\/.*)|@((#?)(customrule)(?:_(headers|obsolete))?|baseurl|alivematch|deadmatch|unavamatch|alivelink|deadlink)\s+(.+))?$/i);
  8810. if (m)
  8811. {
  8812. if (m[1] || !m[2])
  8813. continue; // ignore empty lines and lines starting with //
  8814. keyword = (m[4] || m[2]).toLowerCase();
  8815. param = m[6];
  8816. if (keyword == 'customrule')
  8817. {
  8818. //save the current rule if all required fields are provided
  8819. if (rule)
  8820. {
  8821. err = false;
  8822. $.each(constraints, function(kw, constraint){
  8823. var l, constr = constraint[rule.type];
  8824. if (constr)
  8825. {
  8826. l = rule[kw] ? rule[kw].length : 0;
  8827. if (l < constr.min || l > constr.max)
  8828. {
  8829. 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);
  8830. err = true;
  8831. }
  8832. }
  8833. });
  8834. if (!err)
  8835. customRules.rules.push(makeCustomRule(rule));
  8836. }
  8837. //start a new rule
  8838. if (/^[\w\.-]{1,30}$/.test(param)) //valid name?
  8839. {
  8840. rule = {
  8841. 'enabled': !m[3],
  8842. 'type': m[5] ? m[5].toLowerCase() : 'single',
  8843. 'name': param
  8844. };
  8845. }
  8846. else
  8847. {
  8848. addInfo('error', 'Invalid rule name. Cannot start a new rule definition.');
  8849. rule = null;
  8850. }
  8851. }
  8852. else //good line format, but keyword other than customrule
  8853. {
  8854. if (!rule)
  8855. {
  8856. addInfo('warning', 'Command outside @CUSTOMRULE definiton. Line skipped.');
  8857. continue;
  8858. }
  8859. if (constraints[keyword])
  8860. {
  8861. constr = constraints[keyword][rule.type];
  8862. if (constr)
  8863. {
  8864. if (constr.paramRE && !constr.paramRE.test(param))
  8865. {
  8866. addInfo('warning', 'Invalid @' + keyword.toUpperCase() + ' parameter. Line Skipped.');
  8867. continue;
  8868. }
  8869. }
  8870. else
  8871. {
  8872. addInfo('note', '@' + keyword.toUpperCase() + ' not applicable for type ' + rule.type.toUpperCase() + '. Line skipped.');
  8873. continue;
  8874. }
  8875. }
  8876. //line OK, save
  8877. rule[keyword] ? rule[keyword].push(param) : rule[keyword] = [param];
  8878. }
  8879. } //if (m)
  8880. else
  8881. addInfo('warning', 'Unknown line format. Line skipped.');
  8882. } //for loop
  8883. return customRules;
  8884. } //function parseCustomRules