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

detects live, dead and premium links.

当前为 2015-06-03 提交的版本,查看 最新版本

  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 650+ filehosts. For Firefox, Chrome, Opera, Safari.
  5. // @namespace premium version
  6. // @version 1.1.4.7
  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 <a href="http://www.mentalps.5gbfree.com/viewtopic.php?f=2&t=6>mental</a>
  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.mentalps.5gbfree.com
  25. // @namespace http://www.mentalps.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. "2shared.com",
  33. "4shared.com",
  34. "adrive.com",
  35. "aisfile.com",
  36. "hexupload.com",
  37. "bezvadata.cz",
  38. "burnupload.com|burnupload.ihiphop.com",
  39. "firedrive.com",
  40. "usersfiles.com",
  41. "pan.baidu.com",
  42. "radicalshare.com",
  43. "cramit.in|cramitin.net",
  44. "dataport.cz",
  45. "datei.to",
  46. "daten-hoster.de|filehosting.org|xtraupload.de",
  47. "demo.ovh.eu",
  48. "depositfiles.com",
  49. "divshare.com",
  50. "easy-share.com|crocko.com",
  51. "easybytez.com",
  52. "edisk.cz",
  53. "euroshare.eu",
  54. "file-upload.net",
  55. "yadi.sk",
  56. "ryushare.com",
  57. "wizupload.com",
  58. "fastshare.cz",
  59. "filefactory.com",
  60. "share.vnn.vn",
  61. "yunpan.cn",
  62. "gulfup.com",
  63. "tropicshare.com",
  64. "cloudzilla.to",
  65. "inclouddrive.com",
  66. "fileflyer.com",
  67. "filerio.com|filekeen.com",
  68. "up.4share.vn",
  69. "upfile.vn",
  70. "datafilehost.com",
  71. "fileband.com",
  72. "worldbytez.com",
  73. "files.mail.ru",
  74. "filepost.com|fp.io",
  75. "filesflash.com",
  76. "box.com",
  77. "box.net",
  78. "goldbytez.com",
  79. "sdilej.cz",
  80. "ex-load.com",
  81. "2drive.net",
  82. "fileshare.in.ua",
  83. "filesmonster.com",
  84. "filestore.to",
  85. "freakshare.net",
  86. "hulkload.com",
  87. "lumfile.com",
  88. "lumfile.se",
  89. "lumfile.eu",
  90. "filedropper.com",
  91. "free-uploading.com",
  92. "gamefront.com|filefront.com",
  93. "gettyfile.ru",
  94. "gigapeta.com",
  95. "gigasize.com",
  96. "hellshare.com",
  97. "hellspy.com",
  98. "hitfile.net",
  99. "hostuje.net",
  100. "freefilehosting.net",
  101. "filecore.co.nz",
  102. "free.fr",
  103. "hulkshare.com",
  104. "hyperfileshare.com",
  105. "filecloud.io|ifile.it",
  106. "ifolder.ru",
  107. "jumbofiles.com",
  108. "uploadrocket.net",
  109. "lafiles.com",
  110. "leteckaposta.cz|sharegadget.com",
  111. "letitbit.net",
  112. "load.to",
  113. "mediafire.com",
  114. "megafileupload.com",
  115. "megashares.com",
  116. "movshare.net",
  117. "muchshare.net",
  118. "myupload.dk",
  119. "narod.ru|narod.yandex.ru",
  120. "netload.in",
  121. "fboom.me",
  122. "fileboom.me",
  123. "openfile.ru",
  124. "partage-facile.com",
  125. "plunder.com",
  126. "putlocker.com",
  127. "sharerapid.cz",
  128. "exclusiveloader.com",
  129. "acefile.net",
  130. "queenshare.com",
  131. "quickshare.cz",
  132. "rapidgator.net",
  133. "daj.to",
  134. "keep2share.com",
  135. "oboom.com",
  136. "filepi.com",
  137. "neodrive.co",
  138. "rarefile.net",
  139. "rayfile.com",
  140. "rghost.net",
  141. "sendmyway.com",
  142. "clicknupload.com",
  143. "sharemods.com",
  144. "hostr.co",
  145. "sendspace.com",
  146. "sharecash.org",
  147. "share-links.biz",
  148. "share-online.biz|egoshare.com",
  149. "megarapid.cz",
  150. "shareflare.net",
  151. "solidfiles.com",
  152. "led.wf",
  153. "lan.wf",
  154. "adlink.wf",
  155. "click.tf",
  156. "kyc.pm",
  157. "ssh.tf",
  158. "ssh.yt",
  159. "yep.pm",
  160. "stahovanizasms.cz",
  161. "tufiles.ru",
  162. "turbobit.net",
  163. "filecloud.cc",
  164. "tikfile.com",
  165. "cloudsix.me",
  166. "turboupload.com",
  167. "uloz.to|ulozto.cz|bagruj.cz|zachowajto.pl",
  168. "ulozisko.sk",
  169. "uloziste.com",
  170. "unibytes.com",
  171. "upload-il.net|przeslij.net",
  172. "uploaded.to|ul.to",
  173. "uploading.com",
  174. "chayfile.com",
  175. "rockfile.eu",
  176. "24uploading.com",
  177. "uploadspace.pl",
  178. "upnito.sk",
  179. "uptobox.com",
  180. "usaupload.net",
  181. "veehd.com",
  182. "videobb.com",
  183. "vip-file.com",
  184. "webshare.cz",
  185. "xdisk.cz",
  186. "yunfile.com|filemarkets.com",
  187. "ziddu.com",
  188. "krotix.net",
  189. "zippyshare.com",
  190. "rodfile.com",
  191. "migahost.com",
  192. "wikiupload.com",
  193. "uploadstube.de",
  194. "faststore.org",
  195. "flyfiles.net",
  196. "nowdownload.eu",
  197. "prefiles.com",
  198. "axifile.com",
  199. "rapidsonic.com|fileparadox.com",
  200. "hackerbox.org",
  201. "amonshare.com",
  202. "data.hu",
  203. "brupload.net",
  204. "userscloud.com",
  205. "netkups.com",
  206. "edoc.com",
  207. "xfileload.com",
  208. "jumbofile.net",
  209. "kumpulbagi.com",
  210. "uppit.com|up.ht",
  211. "ddlstorage.com",
  212. "downloadani.me",
  213. "filesabc.com",
  214. "sharebeast.com",
  215. "180upload.com",
  216. "verzend.be",
  217. "movreel.com",
  218. "4up.me",
  219. "extmatrix.com",
  220. "sendfiles.nl",
  221. "yourfilestore.com",
  222. "filebig.net",
  223. "sockshare.com",
  224. "nekaka.com",
  225. "file4safe.com",
  226. "tusfiles.net",
  227. "filemac.com",
  228. "idup.in",
  229. "fileswap.com",
  230. "ozofiles.com",
  231. "loudupload.net",
  232. "nosupload.com",
  233. "gboxes.com",
  234. "myvdrive.com|fileserving.com",
  235. "filesin.com",
  236. "novafile.com",
  237. "longfiles.com",
  238. "uploadhero.com",
  239. "uploadbaz.com",
  240. "stahovadlo.cz",
  241. "bitupload.com",
  242. "indowebster.com",
  243. "superload.cz",
  244. "mafiastorage.com",
  245. "4upfiles.com",
  246. "ultramegabit.com",
  247. "filesmelt.com",
  248. "hellupload.com",
  249. "uploadingit.com",
  250. "stiahni.si",
  251. "sendspace.pl",
  252. "fastshare.org",
  253. "uploadto.us",
  254. "filejoker.net",
  255. "filestore.com.ua",
  256. "secureupload.eu",
  257. "rapidfileshare.net",
  258. "stiahnito.sk",
  259. "rusfolder.com",
  260. "fileover.net",
  261. "catshare.net",
  262. "anonfiles.com",
  263. "mixturecloud.com",
  264. "fileparadox.in",
  265. "filedais.com",
  266. "imdb.com",
  267. "nitroflare.com",
  268. "akafile.com",
  269. "creafile.net",
  270. "hugefiles.net",
  271. "vidxden.com",
  272. "up.top4top.net",
  273. "upload.ee",
  274. "shareplace.org",
  275. "uploadc.com",
  276. "remixshare.com",
  277. "exoshare.com",
  278. "borncash.org",
  279. "junocloud.me",
  280. "keep2share.cc",
  281. "k2s.cc",
  282. "expressleech.com",
  283. "2downloadz.com",
  284. "mightyupload.com",
  285. "uncapped-downloads.com",
  286. "anysend.com",
  287. "datafile.com",
  288. "upstore.net",
  289. "upsto.re",
  290. "speedy.sh",
  291. "sanshare.com",
  292. "dizzcloud.com",
  293. "kingfiles.net",
  294. "uploadhero.co",
  295. "ge.tt",
  296. "filesflash.net",
  297. "salefiles.com",
  298. "keep2s.cc",
  299. "megairon.net",
  300. "datoid.cz",
  301. "cloudstor.es",
  302. "streamfile.com",
  303. "eyesfile.ca",
  304. "filemoney.com",
  305. "uploadboy.com",
  306. "speedshare.eu",
  307. "google.com",
  308. "unlimitzone.com",
  309. "rioupload.com",
  310. "rg.to",
  311. "jumbofiles.org",
  312. "fshare.vn",
  313. "spaceforfiles.com",
  314. "up.media1fire.com",
  315. "depfile.com",
  316. "go4up.com",
  317. "dropbox.com",
  318. "redbunker.net",
  319. "divxpress.com",
  320. "mega.co.nz",
  321. "anafile.com",
  322. "uploadable.ch",
  323. "arabloads.com",
  324. "sharerepo.com",
  325. "sfshare.se",
  326. "files.fm",
  327. "koofile.com",
  328. "shared.com",
  329. "vidplay.net",
  330. "storagon.com",
  331. "doraupload.com",
  332. "openload.io",
  333. ];
  334.  
  335. try
  336. {
  337. //iframes excluded
  338. if (window.top != window.self)
  339. {
  340. return;
  341. }
  342. //allHostNames sites excluded
  343. if (window.location.href.match("https?:\/\/(www\.)?[\w\.-]*(?:" +
  344. allHostNames.join("|").replace(/\./g, "\\.").replace(/-/g, "\\-") +
  345. ")"))
  346. {
  347. return;
  348. }
  349. }
  350. catch (e)
  351. {
  352. return;
  353. }
  354.  
  355. //separate alternative domains with "|" char (first name is considered being main)
  356. var allContainerNames = [
  357. "adf.ly",
  358. "linkcrypt.ws",
  359. "linksafe.me",
  360. "linksave.in",
  361. "linkto.net",
  362. "madlink.sk",
  363. "multiload.cz",
  364. "mirrorcreator.com",
  365. "ncrypt.in",
  366. "redi.re",
  367. "relink.us",
  368. "safelinking.net",
  369. "theloo.katt.it",
  370. "bit.ly",
  371.  
  372. ];
  373.  
  374. //separate alternative domains with "|" char (first name is considered being main)
  375. var allObsoleteNames = [
  376. "uloz.cz",
  377. "storage.to",
  378. "iskladka.cz",
  379. "file-rack.com",
  380. "fast-load.net",
  381. "subory.sk",
  382. "bigandfree.com",
  383. "fileop.com",
  384. "mujsoubor.cz",
  385. "sendfile.to",
  386. "superfastfile.com",
  387. "quickyshare.com",
  388. "duckload.com",
  389. "uploadstore.net",
  390. "meinupload.com",
  391. "dualshare.com",
  392. "2xupload.to|2xupload.de",
  393. "oxedion.com",
  394. "uploadline.com",
  395. "dll.bz",
  396. "movieshare.in",
  397. "milledrive.com",
  398. "quickupload.net",
  399. "safelink.in",
  400. "metadivx.com",
  401. "divxlink.com",
  402. "uploadrack.com",
  403. "teradepot.com",
  404. "dataup.to",
  405. "upit.to",
  406. "driveway.com",
  407. "eatlime.com",
  408. "a2zuploads.com",
  409. "friendlyfiles.net",
  410. "flyfile.us",
  411. "speedyshare.com",
  412. "uploadspace.eu",
  413. "keepfile.com",
  414. "piggyshare.com",
  415. "uplly.com",
  416. "filecrown.com",
  417. "6giga.com",
  418. "uploadjockey.com",
  419. "bluehost.to",
  420. "filegu.ru",
  421. "filebase.to",
  422. "up-file.com",
  423. "xvideos.com",
  424. "ufox.com",
  425. "filebling.com",
  426. "loaded.it",
  427. "uploadcell.com",
  428. "uploadshare.cz",
  429. "mangoshare.com",
  430. "filestab.com",
  431. "crazyupload.com",
  432. "gaiafile.com",
  433. "sharejunky.com",
  434. "fileho.com",
  435. "bigandfree.com",
  436. "bigfile.in",
  437. "bigshare.eu",
  438. "dahosting.org",
  439. "digisofts.net",
  440. "file4save.com",
  441. "filechip.com",
  442. "filescloud.com",
  443. "saveqube.com",
  444. "turboshare.de",
  445. "z-upload.com",
  446. "youshare.com",
  447. "jiffyupload.com",
  448. "gigeshare.com",
  449. "datenklo.net",
  450. "upload.dj",
  451. "loadfiles.in",
  452. "upit.to",
  453. "dsfileshare.com",
  454. "sharesimple.net",
  455. "4files.net",
  456. "wooupload.com",
  457. "odsiebie.com",
  458. "filenavi.com",
  459. "3oof.com",
  460. "meshwaar.com",
  461. "maxupload.com",
  462. "share.cx",
  463. "atserver.eu",
  464. "hotfiles.ws",
  465. "esnips.com",
  466. "tuxfile.com",
  467. "file2upload.net",
  468. "filebling.com",
  469. "turboshare.com",
  470. "rarhost.com",
  471. "isharehd.com",
  472. "i741.com",
  473. "dataup.de",
  474. "fofly.com",
  475. "shareonall.com",
  476. "sexuploader.com",
  477. "megaupload.com|megavideo.com|megaporn.com|megarotic.com",
  478. "uploadhyper.com",
  479. "filespawn.com",
  480. "caizzii.com",
  481. "volnyweb.cz",
  482. "usershare.net",
  483. "filescash.net",
  484. "metahyper.com",
  485. "combozip.com",
  486. "x7.to",
  487. "uploadbox.com",
  488. "enterupload.com|flyupload.com",
  489. "filepoint.de",
  490. "mystream.to",
  491. "x-fs.com",
  492. "shareator.com",
  493. "srapid.eu",
  494. "sosame.cz",
  495. "filesdump.com",
  496. "2-klicks.de",
  497. "uploking.com",
  498. "silofiles.com",
  499. "upfile.in",
  500. "filehook.com",
  501. "uploadking.com",
  502. "uploadhere.com",
  503. "kewlshare.com",
  504. "rapidable.com",
  505. "uploadwaste.com",
  506. "filemup.com",
  507. "filesonic.com|sharingmatrix.com",
  508. "fileserve.com",
  509. "wupload.com",
  510. "skipfile.com",
  511. "smartuploader.com",
  512. "dualshare.com",
  513. "storeandserve.com",
  514. "mountfile.com",
  515. "transitfiles.com",
  516. "uploadstation.com",
  517. "filejungle.com",
  518. "shareshared.com",
  519. "quickyshare.com",
  520. "save.am",
  521. "petandrive.com",
  522. "file2box.com",
  523. "flyshare.cz",
  524. "yabadaba.ru",
  525. "cloudcache.cc",
  526. "yourfilehost.com",
  527. "jakfile.com",
  528. "kickload.com",
  529. "pyramidfiles.com",
  530. "refile.net",
  531. "zshare.net",
  532. "ddlani.me|ddlanime.com",
  533. "ftp2share.com",
  534. "fooget.com",
  535. "rapidhide.com",
  536. "gotupload.com",
  537. "mooload.com",
  538. "zupload.com",
  539. "mytempdir.com",
  540. "onionshare.com",
  541. "stahnu.to",
  542. "oron.com",
  543. "badongo.com",
  544. "filereactor.com",
  545. "filegaze.com",
  546. "4bytez.com",
  547. "1hostclick.com",
  548. "anonstream.com",
  549. "batshare.com",
  550. "bitroad.net",
  551. "brontofile.com",
  552. "cloudnxt.net",
  553. "cloudnator.com|shragle.com",
  554. "filesfrog.net",
  555. "coolshare.cz",
  556. "dotavi.com",
  557. "ezyfile.net",
  558. "file-bit.net",
  559. "filecosy.com",
  560. "fileduct.com|fileduct.net",
  561. "filefat.com",
  562. "filelaser.com",
  563. "filemashine.com",
  564. "fileserver.cc",
  565. "filetechnology.com",
  566. "fireuploads.net",
  567. "gigfiles.net",
  568. "holderfile.com",
  569. "ihostia.com",
  570. "k2files.com",
  571. "mojofile.com",
  572. "ovfile.com",
  573. "qshare.com",
  574. "shafiles.me",
  575. "sharefilehost.com",
  576. "shareupload.com",
  577. "stahuj.to",
  578. "ugotfile.com",
  579. "uploadboost.com",
  580. "fileom.com",
  581. "vidhog.com",
  582. "xfileshare.eu",
  583. "bzlink.us",
  584. "bulletupload.com",
  585. "wizzupload.com",
  586. "bloggerarticles.com",
  587. "mojedata.sk",
  588. "sharpfile.com",
  589. "upgrand.com",
  590. "nasdilej.cz",
  591. "mediatack.cz",
  592. "share-it.to",
  593. "primeupload.com",
  594. "filebeer.info",
  595. "baberepublic",
  596. "xtu.me",
  597. "sharebase.de",
  598. "luckyshare.net",
  599. "filerobo.com",
  600. "filevelocity.com",
  601. "filezpro.com",
  602. "file4sharing.com",
  603. "cing.be",
  604. "ufile.eu",
  605. "pigsonic.com",
  606. "fileupped.com",
  607. "sharerun.com",
  608. "filesaur.com",
  609. "rapidslnare.com",
  610. "bestsharing.com",
  611. "savefiles.net",
  612. "file2share.biz",
  613. "filecache.de",
  614. "monsteruploads.eu",
  615. "b9bb.com",
  616. "aiotool.net",
  617. "jamber.info",
  618. "megaftp.com",
  619. "desiupload.net",
  620. "file27.com",
  621. "yastorage.com",
  622. "filehost.ws",
  623. "copyload.com",
  624. "venusfile.com",
  625. "aieshare.com",
  626. "terafile.co",
  627. "terafile.com",
  628. "fileza.net",
  629. "filerose.com",
  630. "squillion.com",
  631. "fileprohost.com",
  632. "bitbonus.com",
  633. "warserver.cz",
  634. "uload.to",
  635. "sharedbit.net",
  636. "megaload.it",
  637. "filewinds.com",
  638. "uploadcore.com",
  639. "syfiles.com",
  640. "eyesfile.com",
  641. "hotfile.com",
  642. "superupl.com",
  643. "oteupload.com",
  644. "henchfile.com",
  645. "filegag.com",
  646. "HenchFile.com",
  647. "filedefend.com",
  648. "share-rapid.com|rapids.cz|share-credit.cz|share-central.cz|share-ms.cz|share-net.cz|srapid.cz|share-rapid.cz",
  649. "megabitshare.com",
  650. "cloudzer.com",
  651. "asfile.com",
  652. "cloudzer.net",
  653. "clz.to",
  654. "extabit.com",
  655. "247upload.com",
  656. "2download.de",
  657. "4fastfile.com",
  658. "asixfiles.com",
  659. "berofile.com",
  660. "bigupload.com",
  661. "cepzo.com",
  662. "clouds.to",
  663. "cobrashare.sk",
  664. "coraldrive.net",
  665. "cyberlocker.ch",
  666. "czshare.com",
  667. "darkport.org",
  668. "dark-uploads.com",
  669. "davvas.com",
  670. "enigmashare.com",
  671. "erofly.cz",
  672. "fastsonic.net",
  673. "filebox.com",
  674. "filecity.net",
  675. "filedap.com",
  676. "filedino.com",
  677. "filedownloads.org",
  678. "filefolks.com",
  679. "fileking.co",
  680. "filemates.com",
  681. "files.to",
  682. "files2k.eu",
  683. "filesector.cc",
  684. "bitshare.com",
  685. "filesega.com",
  686. "filesend.net",
  687. "filestay.com",
  688. "filestrum.com",
  689. "fileuplo.de",
  690. "fileupup.com",
  691. "forunesia.com",
  692. "freeuploads.fr",
  693. "uploa.dk",
  694. "getthebit.com",
  695. "getzilla.net",
  696. "goldfile.eu",
  697. "good.com",
  698. "grupload.com",
  699. "hellfile.com",
  700. "hipfile.com",
  701. "hitfile.com",
  702. "hulkfile.eu|duckfile.net",
  703. "i-filez.com",
  704. "ifile.ws",
  705. "kupload.org",
  706. "packupload.com",
  707. "lemuploads.com",
  708. "limelinx.com",
  709. "maxshare.pl",
  710. "megarelease.org",
  711. "megashare.com",
  712. "minus.com",
  713. "mlfat4arab.com",
  714. "multishare.cz",
  715. "nirafile.com",
  716. "ok2upload.com",
  717. "peejeshare.com",
  718. "premiuns.org",
  719. "przeklej.net",
  720. "qkup.net",
  721. "rapidupload.sk",
  722. "rockdizfile.com",
  723. "rocketfile.net",
  724. "share-now.net",
  725. "share76.com",
  726. "sharebees.com",
  727. "sharefiles.co",
  728. "slingfile.com",
  729. "sms4file.com",
  730. "space4file.com",
  731. "tigershare.net",
  732. "toucansharing.com",
  733. "ubuntuone.com",
  734. "unextfiles.com",
  735. "upaj.pl",
  736. "upfile.biz",
  737. "uploadbin.net",
  738. "uploadic.com",
  739. "uploadinc.com",
  740. "uploading4u.eu",
  741. "uploadjet.net",
  742. "uploadorb.com",
  743. "upthe.net",
  744. "uptorch.com",
  745. "vidbox.yt",
  746. "videozer.com",
  747. "vreer.com",
  748. "wallobit.com",
  749. "zooupload.com",
  750. "privatefiles.com",
  751. "xerver.co",
  752. "BillionUploads.com",
  753. "rapidshare.com",
  754. "rapidshare.ru",
  755. "4savefile.com",
  756. "bayfiles.com",
  757. "bayfiles.net",
  758. "dodane.pl",
  759. "dotsemper.com",
  760. "egofiles.com",
  761. "epicshare.net",
  762. "fiberupload.net",
  763. "filemonkey.in",
  764. "filemonster.net",
  765. "filepom.com",
  766. "filesbb.com",
  767. "fileshareup.com",
  768. "filevice.com",
  769. "gigaup.fr",
  770. "inafile.com",
  771. "isavelink.com",
  772. "loombo.com",
  773. "megafiles.se",
  774. "migupload.com",
  775. "mydisc.net",
  776. "nitrobits.com",
  777. "potload.com",
  778. "redload.net",
  779. "shareprofi.com",
  780. "sharesuper.info",
  781. "sinhro.net",
  782. "speedfile.cz",
  783. "speedshare.org",
  784. "storage.novoro.net",
  785. "swankshare.com",
  786. "swatupload.com",
  787. "upafile.com",
  788. "uploadmachine.com",
  789. "uploadsat.com",
  790. "upshared.com",
  791. "usefile.com",
  792. "yourfiles.to",
  793. "zomgupload.com",
  794.  
  795. ];
  796. ///////////////////////////////////////////////////////////////////////////////////////
  797. var firstRun = GM_getValue("First_run", true);
  798.  
  799. var chromeBrowser = /chrom(e|ium)/.test(navigator.userAgent.toLowerCase());
  800. //////////////////////////////////////////////////////////////////////////////////////
  801. try
  802. {
  803. var thisVersion = GM_info.script.version; //not supported in Scriptish and others
  804. var last_known_version = GM_getValue("last_known_version", "");
  805. if (!last_known_version)
  806. {
  807. last_known_version = thisVersion;
  808. GM_setValue("last_known_version", last_known_version);
  809. }
  810. //var newVersion = !(thisVersion == last_known_version);
  811. var newVersion = !(a.replace(/^(\d+\.\d+\.\d+).*/,'$1') == b.replace(/^(\d+\.\d+\.\d+).*/,'$1')); //true only if one of the first three numbers differs
  812. GM_setValue("last_known_version", thisVersion);
  813. }
  814. catch (err)
  815. {
  816. var newVersion = false;
  817. }
  818.  
  819. var now = (new Date()).getTime();
  820. var last_custom_rules_nag = GM_getValue('last_custom_rules_nag', 0);
  821. if (!last_custom_rules_nag)
  822. {
  823. last_custom_rules_nag = now;
  824. GM_setValue('last_custom_rules_nag', ''+now);
  825. }
  826.  
  827.  
  828. allHostNames.sort();
  829. allContainerNames.sort();
  830. allObsoleteNames.sort();
  831.  
  832. var RAND_STRING = "8QyvpOSsRG3QWq";
  833. var DEBUG_MODE = false;
  834.  
  835. var TOOLTIP_MAXWIDTH = 600; //in pixels
  836. var TOOLTIP_THUMBWIDTH = 200;
  837. var containers_processed = false;
  838.  
  839. //settings for keyboard functions start
  840. var CHECK_ALL_LINKS_KEY = "A";
  841. var CONFIGURATION_KEY = "C";
  842. var copy_to_dead_key = "D";
  843. var toggle_autocheck_key = "W";
  844. var toggle_Enable_Anonymizer_key = "Z";
  845. var first_key_keycode = '17'; // 18=ALT 16=Shift 17=Ctrl 32=SPACE_BAR 9=TAB
  846. var first_key_keycodename = 'CTRL';
  847. var second_key_keycode = '18';
  848. var second_key_keycodename = 'ALT';
  849. var CHECK_ALL_LINKS_KEYCODE = CHECK_ALL_LINKS_KEY.charCodeAt(0);
  850. var CONFIGURATION_KEYCODE = CONFIGURATION_KEY.charCodeAt(0);
  851. var copy_to_dead_keycode = copy_to_dead_key.charCodeAt(0);
  852. var toggle_autocheck_keycode = toggle_autocheck_key.charCodeAt(0);
  853. var toggle_Enable_Anonymizer_keycode = toggle_Enable_Anonymizer_key.charCodeAt(0);
  854. //settings for keyboard functions end
  855.  
  856. //global settings start
  857. var Show_black_background_in_DL_links, Show_line_through_in_dead_links, Color_DL_links;
  858. var Live_links_color, Dead_links_color, Temp_unavailable_links_color, Premium_links_color, Ref_anonymize_service;
  859. var Do_not_linkify_DL_links, Keyboard_functions, Autocheck, Enable_Anonymizer;
  860. var Show_progress_stats, Display_tooltip_info, Icon_set;
  861. var Progress_box_pos_bottom, Progress_box_pos_right, Progress_box_opacity, Progress_box_background_color, Progress_box_item_color;
  862. var Progress_box_refresh_rate;
  863. var Obsolete_file_hosts;
  864. var Custom_rules, Custom_rules_text;
  865.  
  866. var messageBox = document.createElement('b'); // top-left message box
  867.  
  868. var cLinksTotal = 0;
  869. var cLinksDead = 0;
  870. var cLinksAlive = 0;
  871. var cLinksUnava = 0;
  872. var cLinksprem = 0;
  873. var cLinksProcessed = 0;
  874.  
  875. var intervalId; //for updateProgress()
  876.  
  877. //icon resources
  878. var PAW_ICON_GREEN = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAANCAYAAABy6+R8AAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThL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vPpB8OuuJsHvz785QRU9w+XAQwCMkyby3aZ+/xj5YBr/vDzD8OpngefHq55rw9U8gBbFCFHo4pljvAV60x19o+/fgMN+cNw79h7hjNFD5IZ/jPMwxXHKOmAmYOxPWCNWgWzKBfDm7c/GY4m3Nr089Uff3yJBD0h8Ug68tzQbVCUvtD66PWrXR91gWIvSTEABOw5pNlKfjz91QNkHySUTAGg7t0uvj1ytQAAAABJRU5ErkJggg==';
  889. var NEW_ICON_RED = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAA6klEQVQ4jbWTwWrCQBRFz6Rxnay6iuAXlJIg+BHZZR/d6++4t/5MpRQRf8CCrurGrDP6uumESTol04J3dbmPd7hvYBTAG5QBzIFH/PQpsBzDWm2gDGEFKM9lIxGYBSEsustRnpPWNZkImQip1sRF0QUoBQv1DgdgZE9SrdmGIX0Z8NFKni8XHqIIgEzkR+dMhGtVsYvjJgt6L+1Rq4FN/hcA2md01a0PjhPM8n44bDLjXeBf36A+nZzeG+Cr+wEGSeL0LsDZDq5VBcDT8dhkxpuZpbN6hXIAL76Vbd1gqgC+IX/6zhqWE1h/AYSwSjYrmXJlAAAAAElFTkSuQmCC';
  890. var NEW_ICON_YELLOW = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+J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fNEAslWCfBw4yvYhkv8hjCgxD7yMdquw/jbJ4+xq2cz+AKdrJRv9EAv/EDx3Ft75QhtrHdcFpHy0mS/lSqcVzAFM7he6XaTNLXJoOmS+ziOc4XcB893A3xodUgm5zAHdzHSLH0DhdD/GwsoSjlV5Je5nK+YQUTOInXSXq7x6134RQuo4unGf6Me7iKMxgrNfUuXMJazr8U+DA6Of/UZrCF9xjFM3zELpZwOptulIKmLlQGNXdqS7u4EWK9BA9cYpJ2KtWcwaMazcInuB3iTZ3fGv/znf8CBMxX4hrPUbUAAAAASUVORK5CYII=';
  892.  
  893. //global settings end
  894. if (window.opera && !window.console)
  895. {
  896. window.console = {};
  897.  
  898. function fn()
  899. {
  900. opera.postError(arguments);
  901. };
  902. ['log', 'debug', 'info', 'warn', 'error', 'assert', 'dir', 'dirxml', 'group', 'groupEnd', 'time', 'timeEnd', 'count', 'trace', 'profile', 'profileEnd'].forEach(function (name)
  903. {
  904. window.console[name] = fn;
  905. });
  906. }
  907.  
  908. //displays colored text in message box
  909. function sendMessage(text, color)
  910. {
  911. var msgDiv = document.createElement('div');
  912. msgDiv.style.color = color;
  913. msgDiv.innerHTML = text;
  914. messageBox.appendChild(msgDiv);
  915. setTimeout(function(){messageBox.removeChild(msgDiv)}, 3000);
  916. }
  917.  
  918. function linkify(totalourls)
  919. { // code from http://userscripts.org/scripts/review/2254 Linkify ting
  920. var ikkeTilladteTags;
  921. var allLinksRegex = "(?:http:\/\/.+?\\?)?(?:https?:\/\/)?"
  922. + "[0-9A-Za-z]+(?:[\\.-][0-9A-Za-z]+)*\\.[A-Za-z]+/" //instead of totalourls
  923. + "[\\w\\–\\-\\.+$!*\\/()\\[\\]\',~%?:@#&=\\\\\\—;…×Ã\\_\\u0080-\\u03FF’‘" + (Allow_spaces_in_DL_links ? "\\u0020" : "") + "]*";
  924. allLinksRegex = new RegExp(allLinksRegex, "g");
  925. var regexy = "^(?:http:\/\/.+?\\?)?(?:https?:\/\/)?(?:www\\.)?(?:" + totalourls + ")";
  926.  
  927. if (Do_not_linkify_DL_links)
  928. ikkeTilladteTags = ['a', 'head', 'script', 'style', 'title', 'option', 'iframe', 'textarea', 'span']; //tags, hvor det der stAΞ’Β¥r inden i ikke skal vAΞ’Β¦re links
  929. else
  930. ikkeTilladteTags = ['a', 'head', 'script', 'style', 'title', 'option', 'iframe', 'textarea']; //tags, hvor det der stAΞ’Β¥r inden i ikke skal vAΞ’Β¦re links
  931.  
  932. var regex = new RegExp(regexy);
  933. var textNode, muligtLink;
  934.  
  935. var path = "//text()[not(parent::" + ikkeTilladteTags.join(" or parent::") + ") and contains(.,'/')]";
  936. var textNodes = document.evaluate(path, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  937.  
  938. var i = textNodes.snapshotLength;
  939. while (i--)
  940. {
  941. textNode = textNodes.snapshotItem(i);
  942.  
  943. muligtLink = textNode.nodeValue; //all links on page
  944.  
  945. var myArray = null;
  946. var span = null;
  947. var lastLastIndex = 0;
  948. allLinksRegex.lastIndex = 0;
  949. if (/^https?:\/\/~[\w\s\~]*\//.test(muligtLink))
  950. {
  951. if (textNode.parentNode.className == "adead_link") continue;
  952. var censoredLink = muligtLink;
  953. var span = document.createElement('span');
  954. span.className = "adead_link";
  955. $(span).attr('warlc_error', "Cause of error: <b>Censored link.</b>");
  956. $(span).html(censoredLink);
  957. span.addEventListener("mouseover", displayTooltipError, false);
  958. cLinksTotal++; cLinksProcessed++; cLinksDead++;
  959. textNode.parentNode.replaceChild(span, textNode);
  960. continue;
  961. alert(censoredLink);
  962. }
  963. while (myArray = allLinksRegex.exec(muligtLink)) //find all links
  964. {
  965. if (!regex.test(myArray[0])) //this link is not recognized
  966. {
  967.  
  968. continue;
  969. }
  970. if (!span)
  971. span = document.createElement('span');
  972.  
  973. var link = myArray[0];
  974. span.appendChild(document.createTextNode(muligtLink.substring(lastLastIndex, myArray.index))); //inds?t det der kommer for dette hit
  975.  
  976. var $a = $("<a>" + link + "</a>")
  977. if (!link.match(/https?:\/\//))
  978. {
  979. link = 'http://' + link;
  980. }
  981.  
  982. $a.attr("href", link.replace(/\[\/hide:\w+\]/,""))
  983. .addClass("processing_link")
  984. .appendTo(span);
  985. lastLastIndex = allLinksRegex.lastIndex;
  986. }
  987. if (span)
  988. {
  989. span.appendChild(document.createTextNode(muligtLink.substring(lastLastIndex))); //ins?t det der kommer efter sidste hit
  990. textNode.parentNode.replaceChild(span, textNode);
  991. }
  992. }
  993. }
  994.  
  995. function add_WARLC_style()
  996. {
  997. if (!(document.getElementsByTagName('WARLC')[0]))
  998. {
  999. var meta_not_to_add_more_style = document.createElement("WARLC");
  1000. meta_not_to_add_more_style.setAttribute('content', 'war_links_checker');
  1001. meta_not_to_add_more_style.setAttribute('name', 'description');
  1002. document.getElementsByTagName('head')[0].appendChild(meta_not_to_add_more_style);
  1003. alive_link_png = "";
  1004. adead_link_png = "";
  1005. unava_link_png = "";
  1006. prem_link_png = "";
  1007. switch(Icon_set)
  1008. {
  1009. //no icons
  1010. case 0: break;
  1011. // cat paws
  1012. case 1: alive_link_png = PAW_ICON_GREEN;
  1013. adead_link_png = PAW_ICON_RED;
  1014. unava_link_png = PAW_ICON_YELLOW;
  1015. prem_link_png = PAW_ICON_PINK;
  1016. break;
  1017. // classic RSLC look
  1018. case 2: alive_link_png = RSLC_ICON_GREEN;
  1019. adead_link_png = RSLC_ICON_RED;
  1020. unava_link_png = RSLC_ICON_YELLOW;
  1021. prem_link_png = RSLC_ICON_PINK;
  1022. break;
  1023. // New Icons
  1024. case 3: alive_link_png = NEW_ICON_GREEN;
  1025. adead_link_png = NEW_ICON_RED;
  1026. unava_link_png = NEW_ICON_YELLOW;
  1027. prem_link_png = NEW_ICON_PINK;
  1028. break;
  1029. // cat paws
  1030. default:alive_link_png = PAW_ICON_GREEN;
  1031. adead_link_png = PAW_ICON_RED;
  1032. unava_link_png = PAW_ICON_YELLOW;
  1033. prem_link_png = PAW_ICON_PINK;
  1034. break;
  1035. }
  1036. processing_link_gif = 'data:image/gif;base64,' + // or temporary anavailable
  1037. 'R0lGODlhCgAKAJEDAMzMzP9mZv8AAP///yH/C05FVFNDQVBFMi4wAwEAAAAh+QQFAAADACwAAAAACgAKAAACF5wncgaAGgJzJ647cWua4sOBFEd62VEAACH5BAUAAAMALAEAAAAIAAMAAAIKnBM2IoMDAFMQFAAh+QQFAAADACwAAAAABgAGAAACDJwHMBGofKIRItJYAAAh+QQFAAADACwAAAEAAwAIAAACChxgOBPBvpYQYxYAIfkEBQAAAwAsAAAEAAYABgAAAgoEhmPJHOGgEGwWACH5BAUAAAMALAEABwAIAAMAAAIKBIYjYhOhRHqpAAAh+QQFAAADACwEAAQABgAGAAACDJwncqi7EQYAA0p6CgAh+QQJAAADACwHAAEAAwAIAAACCpRmoxoxvQAYchQAOw%3D%3D';
  1038.  
  1039. var dead_color_css, live_color_css, unava_color_css, prem_color_css, black_background_css;
  1040.  
  1041. if (Color_DL_links)
  1042. {
  1043. dead_color_css = 'color:' + Dead_links_color + ' !important;';
  1044. live_color_css = 'color:' + Live_links_color + ' !important;';
  1045. unava_color_css = 'color:' + Temp_unavailable_links_color + ' !important;';
  1046. container_color_css = 'color:' + Container_links_color + ' !important;';
  1047. prem_color_css = 'color:' + Premium_links_color + ' !important;';
  1048. }
  1049. else
  1050. {
  1051. dead_color_css = live_color_css = unava_color_css = container_color_css = prem_color_css = '';
  1052. }
  1053.  
  1054. if (Show_black_background_in_DL_links)
  1055. {
  1056. black_background_css = 'background-color: black !important;';
  1057. }
  1058. else
  1059. {
  1060. black_background_css = '';
  1061. }
  1062.  
  1063. if (Show_line_through_in_dead_links)
  1064. {
  1065. line_through_css = 'text-decoration: line-through !important;';
  1066. }
  1067. else
  1068. {
  1069. line_through_css = '';
  1070. }
  1071.  
  1072. GM_addStyle(".alive_link {background:transparent url(" + alive_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;" + live_color_css + black_background_css + "}");
  1073. 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 + "}");
  1074. GM_addStyle(".unava_link {background:transparent url(" + unava_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;" + unava_color_css + black_background_css + "}");
  1075. GM_addStyle(".processing_link {background:transparent url(" + processing_link_gif + ") no-repeat scroll 100% 50%;padding-right:15px;" + container_color_css + black_background_css + "}");
  1076. GM_addStyle(".container_link {background:transparent url(" + processing_link_gif + ") no-repeat scroll 100% 50%;padding-right:15px;" + container_color_css + black_background_css + "}");
  1077. GM_addStyle(".container_list {font-size:90%; list-style-type:square; padding: 0px 5% 0px; margin: 0px}");
  1078. GM_addStyle(".prem_link {background:transparent url(" + prem_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;" + prem_color_css + black_background_css + "}");
  1079. }
  1080. }
  1081.  
  1082. var warlcTooltip = null;
  1083. var mouseoverLink = null; //link href with mouse cursor over it
  1084.  
  1085. var lastX = 0;
  1086. var lastY = 0;
  1087.  
  1088. $(document).ready(initTooltip);
  1089. //inits tooltip
  1090. function initTooltip()
  1091. { warlcTooltip = document.createElement("div");
  1092. 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;");
  1093. warlcTooltip.style.visibility = "hidden";
  1094. document.body.appendChild(warlcTooltip);
  1095. }
  1096.  
  1097. //"mousemove" event handler for all links
  1098. function moveTooltip(event)
  1099. {
  1100. if ((Math.abs(lastX - event.clientX) + Math.abs(lastY - event.clientY)) < 6)
  1101. { //no need to reflow if the cursor moved just a little
  1102. return;
  1103. }
  1104. else
  1105. {
  1106. lastX = event.clientX;
  1107. lastY = event.clientY;
  1108. }
  1109.  
  1110. posX = event.clientX + window.pageXOffset + 10;
  1111. posY = event.clientY + window.pageYOffset;
  1112. var ttHeight = warlcTooltip.offsetHeight;
  1113. var ttFreeSpace = window.innerHeight - event.clientY;
  1114. if (ttHeight > ttFreeSpace)
  1115. { //prevents tooltip from getting out of the window
  1116. posY -= (ttHeight - (ttFreeSpace)) + 10;
  1117. }
  1118. else
  1119. {
  1120. posY += 7;
  1121. }
  1122. warlcTooltip.style.top = posY + "px";
  1123. warlcTooltip.style.left = posX + "px";
  1124. }
  1125.  
  1126. //"mouseout" event handler for all links
  1127. function hideTooltip(){
  1128. warlcTooltip.style.visibility = "hidden";
  1129. mouseoverLink = null;
  1130. }
  1131.  
  1132.  
  1133. //"mouseover" event handler for dead links
  1134. //displays tooltip error message on dead links
  1135. function displayTooltipError()
  1136. {
  1137. mouseoverLink = this.href;
  1138. this.addEventListener("mouseout", hideTooltip);
  1139. this.addEventListener("mousemove", function(event) { moveTooltip(event); });
  1140. warlcTooltip.innerHTML = '<b>LOADING...</b>';
  1141. warlcTooltip.style.minWidth = 0;
  1142. warlcTooltip.style.visibility = "visible";
  1143. if (this.warlc_error) //an error message is already known and stored in warlc_error attribute
  1144. {
  1145. warlcTooltip.innerHTML = this.warlc_error;
  1146. }
  1147. else
  1148. {
  1149. loadErrorInfo(this);
  1150. }
  1151. function loadErrorInfo(link)
  1152. {
  1153. var href = link.href;
  1154. href = href.replace(/quickshare\.cz\/.+/, "quickshare.cz/chyba");
  1155. GM_xmlhttpRequest({
  1156. method: 'GET',
  1157. url: href.replace(Ref_anonymize_service, ""),
  1158. headers: {
  1159. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1160. 'Accept': 'text/xml',
  1161. 'Referer': ""
  1162. },
  1163. onload: function(result) {
  1164. var res = result.responseText;
  1165. //TODO: errorRegexs -
  1166. var errorRegexs = [ //generic error messages follow
  1167. /(empty directory)/i,
  1168. /(soubor nebyl nalezen)/i,
  1169. /((?:file|page|link|folder)(?:is|not|does|has been|was| ){1,}(?:found|available|blocked|exists?|deleted|removed))/i,
  1170. //server specific error messages follow
  1171. /msg error" style="cursor: default">(.+?)<\/div>/, //sendspace
  1172. /color:red;font\-weight:bold;border\-style:dashed;font-size:12px;border\-width:2px;><tr><td align=center>(.+?)<\/td>/, //fastshare
  1173. /(Takový soubor neexistuje. Je možné, že byl již smazán.)/, //quickshare
  1174. /file_info file_info_deleted">\s*<h1>(.+?)<\/h1>/, //filepost
  1175. /<br \/>\s*<p style="color:#000">(.+?)<\/p>\s*<\/center>/, //letitbit
  1176. /(?:error_div">|<\/h1><p>)<strong>(.+?)<\/strong>/, //share-rapid,quickshare
  1177. /class="red">(.+?)<(?:span|br)>/, //czshare, megashares
  1178. /class="wp640">\s*<h1 class="h1">(.+?)<\/h1>/, //uloz.to
  1179. /not-found">\s*<p>(.+?)<\/p>/, //bayfiles
  1180. /(Your file could not be found. Please check the download link.)/, //stahnu.to
  1181. /error_msg">\s*(<h3>.+?<\/h3><ul>(.+?)<\/ul>)/, //edisk
  1182. /id="obsah">\s*<h2>(.+?)<\/h2>/, //euroshare
  1183. /error">\s*(?:<[bp]>)?\s*(.+?)<\/[bp]>/, //filesmonster, shragle, gigapeta
  1184. ///center aC">\s*<h1>(.+?)<br \/>/, //uploaded.to
  1185. /icon_err">\s*<h1>(.+?)<\/h1>/, //filejungle
  1186. /Code: ER_NFF_\d+<\/h2>\s*(.+?)\s*<\/div>/, //netload
  1187. /(File has been removed due to Copyright Claim)/, //filerio
  1188. ];
  1189. var errorIdx = errorRegexs.length;
  1190. var error = "Cause of error: <b>unknown</b>";
  1191. var errorCandidate = "";
  1192. while(errorIdx--)
  1193. {
  1194. var errorCandidate = res.match(errorRegexs[errorIdx]);
  1195. if (errorCandidate != null)
  1196. {
  1197. error = "Cause of error: <b>" + errorCandidate[1].replace(/&nbsp;/g," ") + "</b>";
  1198. break;
  1199. }
  1200. }
  1201. //link attributes
  1202. link.warlc_error = error;
  1203. if (mouseoverLink == link.href) //mouse cursor is still over the link
  1204. {
  1205. warlcTooltip.innerHTML = error;
  1206. }
  1207. }
  1208. });
  1209. }
  1210. }
  1211.  
  1212. //"mouseover" event handler for alive links
  1213. //displays tooltip info (file size, file name,...) on alive links
  1214. function displayTooltipInfo()
  1215. {
  1216. mouseoverLink = this.href;
  1217. //exclude direct download filehostings
  1218. 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)/))
  1219. {
  1220. return;
  1221. }
  1222. this.addEventListener("mouseout", hideTooltip);
  1223. this.addEventListener("mousemove", function(event) { moveTooltip(event); });
  1224. warlcTooltip.innerHTML = '<b>LOADING...</b>';
  1225. warlcTooltip.style.minWidth = 0;
  1226. warlcTooltip.style.visibility = "visible";
  1227. if (this.warlc_tooltipcache) //file size is already known and stored in warlc_filename and warlc_filesize attributes
  1228. {
  1229. warlcTooltip.innerHTML = this.warlc_tooltipcache;
  1230. }
  1231. else
  1232. {
  1233. loadInfo(this);
  1234. }
  1235. function loadInfo(link)
  1236. {
  1237. var href = link.href;
  1238. GM_xmlhttpRequest({
  1239. method: 'GET',
  1240. url: href.replace(Ref_anonymize_service, ""),
  1241. headers: {
  1242. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1243. 'Accept': 'text/xml',
  1244. 'Referer': ""
  1245. },
  1246. onload: function(result) {
  1247. var res = result.responseText;
  1248. var nameRegexs = [ /Filename: <b class="f_arial f_14px">(.+?)<\/b>/, //oron
  1249. /(?:finfo|file[-_]?name)">\s*(.+?)<\/?(?:h1|a|div|span style|td)/, //hellshare, netload, badongo, 4fastfile
  1250. /fl" title="(.+?)">/, //edisk
  1251. /<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
  1252. /<h3>Stahujete soubor: <\/h3>\s*<div class="textbox">(.+?)<\/div>/, //webshare
  1253. /<h3><b><span style=color:black;>(.+?)<\/b><\/h3><br>/, //fastshare
  1254. /title="download (.+?)">/, //sendspace
  1255. /Stáhnout soubor: (.+?)<\/h1>/, //quickshare
  1256. /fz24">Download:\s*<strong>(.+?)<\/strong>/, //crocko
  1257. /'file\-icon\d+ \w+'>(?:<\/span><span>)?(.+?)<\/span>/, //hitfile, turbobit
  1258. /d0FileName = "(.+?)";/, //letitbit
  1259. /file(?:_name|-info)" title="">\w+: <span>(.+?)<\/span>/, //vip-file, shareflare
  1260. /recent-comments"><h2>(.+) &nbsp;/, //xdisk
  1261. /fname" value="(.+?)">/, //syfiles, grupload,
  1262. /download\-header">\s*<h2>File:<\/h2>\s*<p title="(.+?)">/, //bayfiles
  1263. /description">\s*<p><b>Soubor: (.+?)<\/b>/, //bezvadata
  1264. /Complete name : (.+?)<br \/>/, //bezvadata
  1265. /itemprop="name">(.+?)<\/span>/, //bezvadata
  1266. ];
  1267. var nameIdx = nameRegexs.length;
  1268. // [sizeRegexs]
  1269. // / \ \?
  1270. // prefix (size) postfix
  1271. // / \
  1272. // val quant
  1273. var quantRegex = '(?:M|G|K)?i?(?:B)(?:[y|i]te?s?)?';
  1274. var valRegex = '\\d+(?:[\\., ]\\d+){0,2}'; // 111([., ]222)?([., ]333)?
  1275. var uniSizeRegex = valRegex + '(?:\\s*|&nbsp;)' + quantRegex;
  1276. var preSizeRegex = '(?::|\\(|>|>, | - )';
  1277. var postSizeRegex = '(?:\\))?';
  1278. var sizeRegexs = [ preSizeRegex + "\\s*(" + uniSizeRegex + ")\\s*" + postSizeRegex,
  1279. 'FileSize_master">(.+?)<\/strong>', //hellshare
  1280. ];
  1281. var sizeIdx = sizeRegexs.length;
  1282. //
  1283. //
  1284. var tooltip = "File Name: <b>";
  1285. var fileName = "unknown";
  1286. var nameCandidate = "";
  1287. while(nameIdx--)
  1288. {
  1289. var nameCandidate = res.match(nameRegexs[nameIdx]);
  1290. if (nameCandidate != null)
  1291. {
  1292. fileName = nameCandidate[1].replace(/&nbsp;/g," ");
  1293. break;
  1294. }
  1295. }
  1296. tooltip += fileName + "</b><br>File Size: <b>";
  1297. var fileSize = "unknown";
  1298. var sizeCandidate = "";
  1299. while(sizeIdx--)
  1300. {
  1301. sizeCandidate = res.match(new RegExp(sizeRegexs[sizeIdx], "i"));
  1302. if (sizeCandidate != null)
  1303. {
  1304. fileSize = sizeCandidate[1].replace(/&nbsp;/g," ");
  1305. if (/^\d+$/.test(fileSize) && fileSize >= 1024) //assume bytes
  1306. {
  1307. if(fileSize > (1<<30)) fileSize = Math.round(10 * fileSize / (1<<30)) / 10 + ' GB';
  1308. else if(fileSize > (1<<20)) fileSize = Math.round(fileSize / (1<<20)) + ' MB';
  1309. else fileSize = Math.round(fileSize / 1024) + ' KB';
  1310. }
  1311. break;
  1312. }
  1313. }
  1314. tooltip += fileSize + "</b>";
  1315. // PROTOTYPE
  1316. // video thumbnails
  1317. if (href.match('hellshare'))
  1318. {
  1319. var thumbs;
  1320. thumbs = res.match(/http:\/\/static\d+\.helldata\.com\/thumbs(?:\/\d+){1,2}\/\d{1,2}"/g);
  1321. if (thumbs)
  1322. {
  1323. tooltip += '<br>';
  1324. var j = Math.min(thumbs.length, 9);
  1325. for (var i = 0; i < j; i++)
  1326. {
  1327. tooltip += '<img src="' + thumbs[i].replace('"',"") + '" width="' + TOOLTIP_THUMBWIDTH + 'px">';
  1328. }
  1329. warlcTooltip.style.minWidth = TOOLTIP_MAXWIDTH;
  1330. }
  1331. }
  1332. if (href.match('czshare'))
  1333. {
  1334. var thumbs;
  1335. thumbs = res.match(/src="http:\/\/www(\d+)\.czshare\.com\/images_velke\/\d+\.(\d+)\.jpeg/);
  1336. if (thumbs)
  1337. {
  1338. var thumbsServer = thumbs[1];
  1339. var thumbsId = thumbs[2];
  1340. tooltip += '<br>';
  1341. for (var i = 1; i < 9; i++)
  1342. {
  1343. tooltip += '<img src="http://www' + thumbsServer + '.czshare.com/images_velke/' + i + '.' + thumbsId + '.jpeg" width="' + TOOLTIP_THUMBWIDTH + 'px">';
  1344. }
  1345. warlcTooltip.style.minWidth = TOOLTIP_MAXWIDTH;
  1346. }
  1347. }
  1348. if (href.match('bezvadata'))
  1349. {
  1350. var thumbs;
  1351. thumbs = res.match(/http:\/\/nahledy\.bezvadata\.cz\/nahledy\/\d+\/\d+\/\d+_\d+_\d+x\d+_\w.jpg/g);
  1352. if (thumbs)
  1353. {
  1354. tooltip += '<br>';
  1355. var j = Math.min(thumbs.length, 9);
  1356. for (var i = 0; i < j; i++)
  1357. {
  1358. tooltip += '<img src="' + thumbs[i] + '" width="' + TOOLTIP_THUMBWIDTH + 'px">';
  1359. }
  1360. warlcTooltip.style.minWidth = TOOLTIP_MAXWIDTH;
  1361. }
  1362. }
  1363. link.warlc_tooltipcache = tooltip;
  1364. if (mouseoverLink == link.href) //mouse cursor is still over the link
  1365. {
  1366. warlcTooltip.innerHTML = tooltip;
  1367. }
  1368. }
  1369. });
  1370. }
  1371. }
  1372.  
  1373. function setVariables()
  1374. {
  1375. if (firstRun)
  1376. {
  1377. GM_log('First run, applying default settings...');
  1378. GM_setValue("Icon_set",1);
  1379. GM_setValue("Display_tooltip_info",true);
  1380. GM_setValue("Show_black_background_in_DL_links",false);
  1381. GM_setValue("Show_line_through_in_dead_links",false);
  1382. GM_setValue("Display_full_links_in_link_containers",false);
  1383. GM_setValue("Allow_spaces_in_DL_links",false);
  1384. GM_setValue("Autocheck",true);
  1385. GM_setValue("Enable_Anonymizer",false);
  1386. GM_setValue("Do_not_linkify_DL_links",false);
  1387. GM_setValue("Show_progress_stats",true);
  1388. GM_setValue("Keyboard_functions",true);
  1389. GM_setValue("Obsolete_file_hosts",false);
  1390. GM_setValue("Color_DL_links",true);
  1391. GM_setValue("Live_links_color","Green");
  1392. GM_setValue("Dead_links_color","#FF3300");
  1393. GM_setValue("Temp_unavailable_links_color","#F7EF09");
  1394. GM_setValue("Container_links_color","DarkKhaki");
  1395. GM_setValue("Premium_links_color","DeepPink");
  1396. GM_setValue("Ref_anonymize_service","http://hiderefer.com/?");
  1397. GM_setValue("Custom_rules",false);
  1398. GM_setValue("Custom_rules_text","");
  1399. GM_setValue("First_run", false);
  1400. }
  1401. //hidden settings
  1402. GM_setValue("Progress_box_pos_bottom", Progress_box_pos_bottom = GM_getValue("Progress_box_pos_bottom", 20));
  1403. GM_setValue("Progress_box_pos_right", Progress_box_pos_right = GM_getValue("Progress_box_pos_right", 10));
  1404. GM_setValue("Progress_box_opacity", Progress_box_opacity = GM_getValue("Progress_box_opacity", 85));
  1405. GM_setValue("Progress_box_background_color", Progress_box_background_color = GM_getValue("Progress_box_background_color", 'DimGray'));
  1406. GM_setValue("Progress_box_item_color", Progress_box_item_color = GM_getValue("Progress_box_item_color", 'DimGray'));
  1407. GM_setValue("Progress_box_refresh_rate", Progress_box_refresh_rate = GM_getValue("Progress_box_refresh_rate", 2000));
  1408. GM_setValue("Debug_mode", DEBUG_MODE = GM_getValue("Debug_mode", false));
  1409. //hidden settings end
  1410.  
  1411. Icon_set = GM_getValue("Icon_set", 1); //0 - no icons, 1 - cat paws, 2 - old RSLC style, 3 - New Icons,
  1412. Display_tooltip_info = GM_getValue("Display_tooltip_info", true);
  1413. Show_black_background_in_DL_links = GM_getValue("Show_black_background_in_DL_links", false);
  1414. Show_line_through_in_dead_links = GM_getValue("Show_line_through_in_dead_links", false);
  1415. Display_full_links_in_link_containers = GM_getValue("Display_full_links_in_link_containers", false);
  1416. Allow_spaces_in_DL_links = GM_getValue("Allow_spaces_in_DL_links", false);
  1417. Autocheck = GM_getValue("Autocheck", true);
  1418. Enable_Anonymizer = GM_getValue("Enable_Anonymizer", false);
  1419. Do_not_linkify_DL_links = GM_getValue("Do_not_linkify_DL_links", false);
  1420. Show_progress_stats = GM_getValue("Show_progress_stats", true);
  1421. Keyboard_functions = GM_getValue("Keyboard_functions", true);
  1422. Obsolete_file_hosts = GM_getValue("Obsolete_file_hosts", false);
  1423. Color_DL_links = GM_getValue("Color_DL_links", true);
  1424. Live_links_color = GM_getValue("Live_links_color", "Green");
  1425. Dead_links_color = GM_getValue("Dead_links_color", "#FF3300");
  1426. Temp_unavailable_links_color = GM_getValue("Temp_unavailable_links_color", "#F7EF09");
  1427. Container_links_color = GM_getValue("Container_links_color", "DarkKhaki");
  1428. Premium_links_color = GM_getValue("Premium_links_color", "DeepPink");
  1429. Ref_anonymize_service = GM_getValue("Ref_anonymize_service", "http://hiderefer.com/?");
  1430. Custom_rules = GM_getValue("Custom_rules", false);
  1431. Custom_rules_text = GM_getValue("Custom_rules_text", false);
  1432. }
  1433.  
  1434.  
  1435. // Delinkifies the links
  1436. // params:
  1437. // links -> list of links or link components (note they should be sufficiently unique to identify the link on page,
  1438. // e.g. 'uloz.to/xs68skxl8')
  1439. function delinkifySnapshot(snapshot)
  1440. {
  1441. var n = snapshot.snapshotLength;
  1442.  
  1443. while (n--)
  1444. {
  1445. thisLink = snapshot.snapshotItem(n);
  1446.  
  1447. var spanElm = document.createElement("span");
  1448. spanElm.className = thisLink.className;
  1449. spanElm.innerHTML = thisLink.innerHTML;
  1450.  
  1451. if (Display_tooltip_info)
  1452. {
  1453. spanElm.href = thisLink.href;
  1454. switch (thisLink.className){
  1455. case "alive_link": spanElm.addEventListener("mouseover", displayTooltipInfo, false); break
  1456. case "adead_link": spanElm.addEventListener("mouseover", displayTooltipError, false); break;
  1457. case "unava_link": //reserved
  1458. default:
  1459. }
  1460. }
  1461. thisLink.parentNode.replaceChild(spanElm, thisLink);
  1462. }
  1463. }
  1464.  
  1465. function processContainers()
  1466. {
  1467. var redirectorTypes = { "HTTP_302": 0,
  1468. "INNER_LINK": 1,
  1469. "THELOO_KATT_IT": 2,
  1470. "CING_BE": 3,
  1471. "ADF_LY": 4};
  1472. var cMultiloadTotal = 0;
  1473. var cMultiloadProcessed = 0;
  1474.  
  1475. var cMirrorcreatorComTotal = 0;
  1476. var cMirrorcreatorComProcessed = 0;
  1477.  
  1478. var hostRestrictionRegex = "";
  1479. var multiloadComRestriction = "";
  1480. var multiloadComRestrictionRegex;
  1481.  
  1482. //
  1483. //HANDLING REDIRECTORS START
  1484. //
  1485.  
  1486. var redirectors = new Array();
  1487. initRedirectors();
  1488.  
  1489. var redirectorsCount = redirectors.length;
  1490.  
  1491. if (redirectorsCount > 0)
  1492. {
  1493. var allRedirectorsRegex = "";
  1494.  
  1495. //linkify redirector links
  1496. for(var redirIdx = 0; redirIdx < redirectorsCount; redirIdx++)
  1497. {
  1498. allRedirectorsRegex += redirectors[redirIdx].linkRegex + "|";
  1499. }
  1500. allRedirectorsRegex = allRedirectorsRegex.replace(/\|$/, "");
  1501. linkify(allRedirectorsRegex);
  1502. //
  1503. //process redirector links
  1504. for(var redirIdx = 0; redirIdx < redirectorsCount; redirIdx++)
  1505. {
  1506. var redirectorsSnapshot = document.evaluate(redirectors[redirIdx].xpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  1507. redirectors[redirIdx].cTotal = redirectorsSnapshot.snapshotLength;
  1508.  
  1509. cLinksTotal += redirectors[redirIdx].cTotal;
  1510. var linkIdx = redirectors[redirIdx].cTotal;
  1511.  
  1512. while(linkIdx--)
  1513. {
  1514. switch(redirectors[redirIdx].type)
  1515. {
  1516. case redirectorTypes.HTTP_302: processRedirectorLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1517. case redirectorTypes.INNER_LINK: processRedirectorLinkEx(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1518. case redirectorTypes.THELOO_KATT_IT: processThelooKattItLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1519. case redirectorTypes.CING_BE: processCingBeLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1520. case redirectorTypes.ADF_LY: processAdfLyLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1521. default:
  1522. }
  1523. }
  1524. }
  1525. //
  1526. }
  1527.  
  1528. //HTTP_302
  1529. function processRedirectorLink(link, redirectorId)
  1530. {
  1531. link.className = 'container_link';
  1532.  
  1533. GM_xmlhttpRequest({
  1534. method: 'HEAD',
  1535. url: link.href,
  1536. headers: {
  1537. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1538. 'Accept': 'text/xml',
  1539. 'Referer': ""
  1540. },
  1541. onload: function(result) {
  1542. if (result.finalUrl.replace("https", "http") == link.href) // service hasn't redirected anywhere
  1543. {
  1544. processRedirectorLink(link, redirectorId);
  1545. }
  1546. else
  1547. {
  1548. redirectors[redirectorId].cProcessed++;
  1549. link.href = result.finalUrl;
  1550. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  1551. checkLinks('container_link');
  1552. }
  1553. },
  1554. onerror: function(result) { //probably caused by unresponsive filehosting
  1555. redirectors[redirectorId].cProcessed++;
  1556. link.className = 'unava_link';
  1557. cLinksProcessed++;
  1558. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  1559. checkLinks('container_link');
  1560. }
  1561. });
  1562. }
  1563. //INNER_LINK
  1564. function processRedirectorLinkEx(link, redirectorId)
  1565. {
  1566. link.className = 'container_link';
  1567. GM_xmlhttpRequest({
  1568. method: 'GET',
  1569. url: link.href,
  1570. headers: {
  1571. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1572. 'Accept': 'text/xml',
  1573. 'Referer': ""
  1574. },
  1575. onload: function(result) {
  1576. link.href = result.responseText.match(redirectors[redirectorId].innerLinkRegex)[1];
  1577. redirectors[redirectorId].cProcessed++;
  1578. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  1579. checkLinks('container_link');
  1580. }
  1581. });
  1582. }
  1583. //theloo.katt.it (wrapped safelinking.net)
  1584. function processThelooKattItLink(link, redirectorId)
  1585. {
  1586. link.className = 'container_link';
  1587. GM_xmlhttpRequest({
  1588. method: 'GET',
  1589. url: link.href,
  1590. headers: {
  1591. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1592. 'Accept': 'text/xml',
  1593. 'Referer': ""
  1594. },
  1595. onload: function(result) {
  1596. link.href = result.responseText.match(redirectors[redirectorId].innerLinkRegex)[1];
  1597. redirectors[redirectorId].cProcessed++;
  1598. //the inner links are safelinking.net links, so lets proceed with it
  1599. if (GM_getValue("Check_safelinking_dot_net_links", false))
  1600. {
  1601. processRedirectorLink(link, 0);
  1602. }
  1603. }
  1604. });
  1605. }
  1606. //adf.ly (adf.ly/go innerLink, locking mechanism)
  1607. function processAdfLyLink(link, redirectorId)
  1608. {
  1609. link.className = 'container_link';
  1610. GM_xmlhttpRequest({
  1611. method: 'GET',
  1612. url: link.href,
  1613. headers: {
  1614. 'User-agent': 'Mozilla/4.0',
  1615. 'Accept': 'text/xml',
  1616. 'Referer': ""
  1617. },
  1618. onload: function(result) {
  1619. if (result.finalUrl.match('/locked/'))
  1620. {
  1621. var delay = result.responseText.match(/countdown">(\d+)</)[1];
  1622. // GM_log(result.finalUrl + 'is locked. Repeating the request in ' + delay + 's.');
  1623. // setTimeout(function(){processAdfLyLink(link, redirectorId);}, delay * 1000);
  1624. }
  1625. else
  1626. {
  1627. // GM_log('Processing... ' + link.href);
  1628. // GM_log('Found...' + result.responseText.match(/\/go\/(\w+\/\w+)/)[1]);
  1629. var directLink = 'http://adf.ly' + result.responseText.match(/(\/go\/\w+\/\w+)/)[1];
  1630. var logToken = result.responseText.match(/flashy_(\w+)/)[1];
  1631. var users = result.responseText.match(/user=\d+&user2=\d+/);
  1632. //confirm advert
  1633. GM_xmlhttpRequest(
  1634. {
  1635. method: 'POST',
  1636. url: 'http://adf.ly/l.php',
  1637. headers: {
  1638. 'User-agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20100101 Firefox/13.0',
  1639. 'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
  1640. 'Referer': link.href
  1641. },
  1642. data: users + '&lt=' + logToken,
  1643. onload: function(result) {
  1644. //retrieve final url from .../go/... link
  1645. GM_xmlhttpRequest({
  1646. method: 'GET',
  1647. url: directLink,
  1648. headers: {
  1649. 'User-agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20100101 Firefox/13.0',
  1650. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  1651. 'Referer': link.href
  1652. },
  1653. onload: function(result) {
  1654. link.href = result.finalUrl;
  1655. redirectors[redirectorId].cProcessed++;
  1656. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  1657. checkLinks('container_link');
  1658. }
  1659. });
  1660. }
  1661. });
  1662. }
  1663. }
  1664. });
  1665. function proceedOK()
  1666. {
  1667. }
  1668. }
  1669. //MULTILOAD.CZ START
  1670. if (GM_getValue("Check_multiload_dot_cz_links", false))
  1671. {
  1672. var mlRegex = 'multiload\\.cz\/stahnout\/\\d+\/';
  1673. var mlXpath = "//a[contains(@href,'http://www.multiload.cz/stahnout')]";
  1674.  
  1675. hostRestrictionRegex = 'Upload se nezdařil|limit exceeded|probíhá reupload|';
  1676.  
  1677. if (GM_getValue("Check_hellshare_dot_com_links", false))
  1678. hostRestrictionRegex += 'hellshare|';
  1679. if (GM_getValue("Check_share_dash_rapid_dot_com_links", false))
  1680. hostRestrictionRegex += 'share-rapid\\.com|';
  1681. if (GM_getValue("Check_quickshare_dot_cz_links", false))
  1682. hostRestrictionRegex += 'quickshare\\.cz|';
  1683. if (GM_getValue("Check_czshare_dot_com_links", false))
  1684. hostRestrictionRegex += 'czshare\\.com|';
  1685. if (GM_getValue("Check_uloz_dot_to_links", false))
  1686. hostRestrictionRegex += 'uloz\\.to|';
  1687. if (GM_getValue("Check_hellspy_dot_com_links", false))
  1688. hostRestrictionRegex += 'hellspy|';
  1689. if (GM_getValue("Check_multishare_dot_cz_links", false))
  1690. hostRestrictionRegex += 'multishare\\.cz|';
  1691.  
  1692. hostRestrictionRegex = hostRestrictionRegex.replace(/\|$/, "");
  1693.  
  1694. linkify(mlRegex);
  1695.  
  1696. var mlSnapshot = document.evaluate(mlXpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  1697. var mlCount = mlSnapshot.snapshotLength;
  1698.  
  1699. if (mlCount > 0)
  1700. {
  1701. cMultiloadTotal += mlCount;
  1702.  
  1703. mlIdx = mlCount - 1;
  1704. do
  1705. {
  1706. processMultiloadLink(mlSnapshot.snapshotItem(mlIdx));
  1707. }
  1708. while(mlIdx--)
  1709. }
  1710. }
  1711. //MULTILOAD.CZ END
  1712.  
  1713.  
  1714.  
  1715. function processMultiloadLink(mlLink)
  1716. {
  1717. GM_xmlhttpRequest({
  1718. method: 'GET',
  1719. url: mlLink.href,
  1720. headers: {
  1721. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1722. 'Accept': 'text/xml',
  1723. 'Referer': ""
  1724. },
  1725. onload: function(result) {
  1726. var res = result.responseText;
  1727.  
  1728. var innerBlockRegex = /<p class="manager-linky">(?:.|\s)+?<\/p>/g;
  1729. 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;
  1730. var innerLinkRegex = /((?:Upload se nezdařil.+|https?:\/\/(?:.|\s)+|Právě probíhá reupload, buďte trpěliví\.\.\.))</;
  1731. var mlRestrictionRegex = new RegExp(hostRestrictionRegex,"g"); //what links should be displayed
  1732.  
  1733. var blocks; // blocks of links
  1734. var blockIdx;
  1735.  
  1736. mlLink.className = '';
  1737.  
  1738. if (result.status == 503) //service temporarily unavailable, repeat request in one second
  1739. {
  1740. setTimeout(function(){ processMultiloadLink(mlLink); }, 1000);
  1741. return;
  1742. }
  1743.  
  1744. blocks = res.match(innerBlockRegex);
  1745.  
  1746. if (blocks == null) //no links found, cancel further processing
  1747. {
  1748. mlLink.parentNode.appendChild(document.createTextNode(' | Požadovaný soubor neexistuje.'));
  1749. cMultiloadProcessed++;
  1750. if (cMultiloadTotal <= cMultiloadProcessed)
  1751. {
  1752. startBulkCheck('container_link');
  1753. start('container_link');
  1754. }
  1755. return;
  1756. }
  1757.  
  1758. blockIdx = blocks.length;
  1759.  
  1760. if (Display_full_links_in_link_containers)
  1761. {
  1762. var ulElm = document.createElement('ul');
  1763. ulElm.className = 'container_list'; //CSS smaller font, padding, margin, square style
  1764.  
  1765. while(blockIdx--)
  1766. {
  1767. if (blocks[blockIdx].match(mlRestrictionRegex) == null)
  1768. {
  1769. continue;
  1770. }
  1771.  
  1772. var innerLinks = blocks[blockIdx].match(innerLinksRegex);
  1773.  
  1774. var linkIdx = innerLinks.length;
  1775. while (linkIdx--)
  1776. {
  1777. var innerLink = innerLinks[linkIdx].match(innerLinkRegex)[1];
  1778.  
  1779. var liElm = document.createElement('li');
  1780.  
  1781. if (innerLink.match(/Upload se nezdařil|limit exceeded|probíhá reupload/))
  1782. {
  1783. liElm.appendChild(document.createTextNode(innerLink));
  1784. }
  1785. else
  1786. {
  1787. var aElm = document.createElement('a');
  1788. aElm.innerHTML = innerLink;
  1789. aElm.href = innerLink;
  1790. aElm.className = 'container_link';
  1791.  
  1792. liElm.appendChild(aElm);
  1793. }
  1794.  
  1795. ulElm.appendChild(liElm);
  1796. cLinksTotal++;
  1797. }
  1798. }
  1799.  
  1800. mlLink.parentNode.appendChild(ulElm);
  1801. }
  1802. else //compact view
  1803. {
  1804. mlLink.parentNode.appendChild(document.createTextNode("|"));
  1805.  
  1806. while(blockIdx--)
  1807. {
  1808. if (blocks[blockIdx].match(mlRestrictionRegex) == null)
  1809. {
  1810. continue;
  1811. }
  1812.  
  1813. var innerLinks = blocks[blockIdx].match(innerLinksRegex);
  1814.  
  1815. var linkIdx = innerLinks.length;
  1816. while (linkIdx--)
  1817. {
  1818. var innerLink = innerLinks[linkIdx].match(innerLinkRegex)[1];
  1819.  
  1820. if (innerLink.match(/Upload se nezdařil|limit exceeded|probíhá reupload/))
  1821. {
  1822. mlLink.parentNode.appendChild(document.createTextNode("----"));
  1823. }
  1824. else
  1825. {
  1826. var aElm = document.createElement('a');
  1827.  
  1828. var hostName = innerLink.match(/quickshare|hellshare|uloz\.to|multishare|hellspy|share\-rapid|czshare/);
  1829.  
  1830. //abbreviate host name
  1831. switch(hostName + ""){
  1832.  
  1833. case 'quickshare': aElm.innerHTML = 'QS'; break;
  1834. case 'hellshare': aElm.innerHTML = 'HS'; break;
  1835. case 'uloz.to': aElm.innerHTML = 'UT'; break;
  1836. case 'multishare': aElm.innerHTML = 'MS'; break;
  1837. case 'hellspy': aElm.innerHTML = 'hs'; break;
  1838. case 'share-rapid': aElm.innerHTML = 'SR'; break;
  1839. case 'czshare': aElm.innerHTML = 'CS'; break;
  1840. default: aElm.innerHTML = 'xx';
  1841.  
  1842. }
  1843.  
  1844. aElm.href = innerLink;
  1845. aElm.className = 'container_link';
  1846.  
  1847. mlLink.parentNode.appendChild(aElm);
  1848. cLinksTotal++;
  1849. }
  1850. }
  1851.  
  1852. mlLink.parentNode.appendChild(document.createTextNode("|")); //blocks delimiter
  1853.  
  1854. }
  1855. }
  1856.  
  1857. cMultiloadProcessed++;
  1858. if (cMultiloadTotal == cMultiloadProcessed) //start check when all ml links have been processed
  1859. {
  1860. if (Do_not_linkify_DL_links)
  1861. {
  1862. delinkifySnapshot(mlSnapshot);
  1863. }
  1864. startBulkCheck('container_link');
  1865. start('container_link');
  1866. }
  1867. }
  1868. });
  1869. }
  1870.  
  1871.  
  1872. if (GM_getValue("Check_mirrorcreator_dot_com_links", false))
  1873. {
  1874. var mcRegex = 'mirrorcreator\\.com/files/(\\w+)';
  1875. var mcXpath = "//a[contains(@href,'mirrorcreator.com/files')]";
  1876. var mcShortHostNames =
  1877. '?? 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';
  1878. // 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
  1879. //?????? depositfiles sendspace load.to ul.to storage.to uploadbox x7.to fileserve ?????? duckload filehook filepost jumbofiles glumbouploads
  1880. // zshare ?????? 2shared uploading ugotfile extabit oron eyvx uploadstation putlocker
  1881. // megaupload badongo megashare gamefront ifile ?????? letitbit ?????? ?????? filejungle megashares
  1882. // easy-share ?????? netload zippyshare ?????? filesonic turbobit enterupload ?????? filekeen wupload crocko fileflyer
  1883.  
  1884. linkify(mcRegex);
  1885.  
  1886. var mcSnapshot = document.evaluate(mcXpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  1887. var mcCount = mcSnapshot.snapshotLength;
  1888.  
  1889. cMirrorcreatorComTotal = mcCount;
  1890.  
  1891. if (mcCount > 0)
  1892. {
  1893. mcShortHostNames = mcShortHostNames.split(' ');
  1894. mcIdx = mcCount;
  1895. while(mcIdx--)
  1896. processMirrorcreatorLink(mcSnapshot.snapshotItem(mcIdx));
  1897. }
  1898.  
  1899. }
  1900. //MIRRORCREATOR.CZ END
  1901.  
  1902.  
  1903. //mirrorcreator.com checking works like this:
  1904. //The base URL is http://www.mirrorcreator.com/files/XXXXXXXX/filename_links
  1905. //the actual list of mirrors is at http://www.mirrorcreator.com/status.php?uid=XXXXXXXX
  1906. //the list contains links in the form of (http://www.mirrorcreator.com)/redirect/XXXXXXXX/1
  1907. //these redirector links are extracted with mcLinkBlockRegex and the pages loaded
  1908. //they contain the actual filehost links, which are extracted with mcHostRegex and displayed in a container list
  1909. function processMirrorcreatorLink(mcLink)
  1910. {
  1911. var mcURL = mcLink.href.match(mcRegex);
  1912. if(!mcURL || !mcURL[1]) return;
  1913. mcURL = 'http://www.mirrorcreator.com/status.php?uid=' + mcURL[1]; //link correction
  1914. GM_xmlhttpRequest({
  1915. method: 'GET',
  1916. url: mcURL,
  1917. headers: {
  1918. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1919. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*'+'/*;q=0.8',
  1920. 'Referer': ""
  1921. },
  1922. onload: function(mcLinkResult) {
  1923. var mcLinkRes = mcLinkResult.responseText;
  1924.  
  1925. var mcLinkBlockRegex = /(\/redirect\/\w+\/(\d+))/gi;
  1926. var mcHostRegex = /<div id="redirectlink">.*?<a href="([^"]+)"/;
  1927.  
  1928. var mcRedirectors;
  1929. var mcHostURLs = [], mcRedirectorIDs = [], mcHostsFound = 0, mcHostsRetrieved = 0, mcHostsToProcess = 0;
  1930. var m = mcLinkRes.match(mcLinkBlockRegex);
  1931. if (m)
  1932. mcHostsFound = m.length;
  1933. else
  1934. { //no files inside container
  1935. processMirrorcreatorFoundHosts(mcLink, []);
  1936. return;
  1937. }
  1938.  
  1939. var mcRedirectorURL, idx, timedOut = false;
  1940.  
  1941. var gmxhrFunc = function(mcRedirectorURL){ //Tampermonkey doesn't know neither this.url or result.finalUrl
  1942. GM_xmlhttpRequest({
  1943. method: 'GET',
  1944. url: mcRedirectorURL,
  1945. headers: {
  1946. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1947. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*'+'/*;q=0.8',
  1948. 'Referer': ""
  1949. },
  1950. onload: function(mcHostResult) {
  1951. if (timedOut) return; //too late, the list is already displayed
  1952. var mcHostRes = mcHostResult.responseText;
  1953. var mcHost = mcHostRes.match(mcHostRegex);
  1954. idx = mcHostURLs.indexOf(mcRedirectorURL);
  1955. if (mcHost && idx!=-1)
  1956. {
  1957. mcHostURLs[idx] = mcHost[1].replace(/^\s+|\s+$/g, '');
  1958. mcHostsRetrieved++;
  1959. mcHostsToProcess++;
  1960. if (mcHostsFound == mcHostsRetrieved) //this is the last one!
  1961. {
  1962. processMirrorcreatorFoundHosts(mcLink, mcHostURLs, mcRedirectorIDs);
  1963. mcHostsToProcess = 0;
  1964. }
  1965. }
  1966. } //end of onload: function
  1967. }); //end of GM_xmlhttpRequest call
  1968. };//end of var gmxhrFunc
  1969.  
  1970. while (mcRedirectors = mcLinkBlockRegex.exec(mcLinkRes))
  1971. { //load individual redirector pages
  1972. mcRedirectorURL = 'http://www.mirrorcreator.com' + mcRedirectors[1];
  1973. mcHostURLs.push(mcRedirectorURL);
  1974. mcRedirectorIDs.push(mcRedirectors[2]);
  1975. gmxhrFunc(mcRedirectorURL);
  1976. } //end of while block
  1977.  
  1978. setTimeout(function(){ //in case the last page fails to load and call the function
  1979. timedOut = true;
  1980. if (mcHostsToProcess)
  1981. processMirrorcreatorFoundHosts(mcLink, mcHostURLs);
  1982. }, 60000);
  1983.  
  1984. } //end of onload function
  1985. }); //end of GM_xmlhttpRequest call
  1986. } //end of function processMirrorcreatorLink
  1987.  
  1988.  
  1989. function processMirrorcreatorFoundHosts(mcLink, mcHostURLs, mcRedirectorIDs)
  1990. {
  1991. var aEl, liEl, docFrag;
  1992. var hostName, mcRedirectorID, trimFilename = false;
  1993. var i = mcHostURLs.length;
  1994. if (i == 0)
  1995. {
  1996. trimFilename = true;
  1997. mcLink.parentNode.insertBefore(document.createTextNode(' | No files inside container'), mcLink.nextSibling);
  1998. }
  1999. else
  2000. {
  2001. if (Display_full_links_in_link_containers)
  2002. { //full view
  2003. var wrapperEl = document.createElement('span');
  2004. wrapperEl.style.display = 'block';
  2005. var ulistEl = document.createElement('ul');
  2006. ulistEl.className = 'container_list';
  2007. while (i--)
  2008. {
  2009. liEl = document.createElement('li');
  2010. aEl = document.createElement('a');
  2011. aEl.appendChild(document.createTextNode(mcHostURLs[i]));
  2012. aEl.href = mcHostURLs[i];
  2013. aEl.className = 'container_link';
  2014. liEl.appendChild(aEl);
  2015. ulistEl.appendChild(liEl);
  2016. }
  2017. wrapperEl.appendChild(ulistEl);
  2018. mcLink.parentNode.replaceChild(wrapperEl, mcLink);
  2019. wrapperEl.insertBefore(mcLink, wrapperEl.firstChild);
  2020. }
  2021. else
  2022. { //compact view
  2023. trimFilename = true;
  2024. docFrag = document.createDocumentFragment();
  2025. docFrag.appendChild(document.createTextNode(' |'));
  2026. while (i--)
  2027. {
  2028. mcRedirectorID = mcRedirectorIDs[i];
  2029. hostName = mcHostURLs[i];
  2030. if (mcRedirectorID > mcShortHostNames.length-1 || mcShortHostNames[mcRedirectorID] == '??')
  2031. hostName = hostName.replace(/https?:\/\/(?:www\.)?([-0-9a-z]+(?:\.[-0-9a-z]+)?)\.[a-z]+\/.*/i, '$1').toUpperCase();
  2032. else
  2033. hostName = mcShortHostNames[mcRedirectorID];
  2034. aEl = document.createElement('a');
  2035. aEl.href = mcHostURLs[i];
  2036. aEl.className = 'container_link';
  2037. aEl.appendChild(document.createTextNode(hostName));
  2038. docFrag.appendChild(aEl);
  2039. docFrag.appendChild(document.createTextNode('|'));
  2040. }
  2041. mcLink.parentNode.insertBefore(docFrag, mcLink.nextSibling);
  2042. } //end of else block
  2043. } //end of else block
  2044. mcLink.className = '';
  2045. if (trimFilename)
  2046. mcLink.firstChild.nodeValue = mcLink.firstChild.nodeValue.replace(/(https?:\/\/[^\/]+\/files\/\w+\/).+/, '$1...');
  2047. cMirrorcreatorComProcessed++;
  2048. if (cMirrorcreatorComProcessed == cMirrorcreatorComTotal) //start check when all mc links have been processed
  2049. {
  2050. if (Do_not_linkify_DL_links)
  2051. delinkifySnapshot(mcSnapshot);
  2052. startBulkCheck('container_link');
  2053. start('container_link');
  2054. }
  2055. } //end of function processMirrorcreatorFoundHosts
  2056.  
  2057. containers_processed = true;
  2058.  
  2059.  
  2060. function initRedirectors()
  2061. {
  2062. function addRedirector(linkRegex, xpathEx, redirType, innerLinkRegex)
  2063. {
  2064. var redirector = new Object();
  2065. redirector.linkRegex = linkRegex;
  2066. redirector.xpath = xpathEx; //xpath expression
  2067. redirector.cProcessed = 0; //processed links count
  2068. redirector.cTotal = 0; //total links count
  2069. redirector.type = redirType; //redirectorTypes enum
  2070. redirector.innerLinkRegex = innerLinkRegex; //innerLink, null if unused
  2071. redirectors.push(redirector);
  2072. }
  2073. if (GM_getValue("Check_safelinking_dot_net_links", false))
  2074. {
  2075. addRedirector(
  2076. 'safelinking\\.net\/d\/\\w+',
  2077. "//a[contains(@href,'safelinking.net/d/')]",
  2078. redirectorTypes.HTTP_302,
  2079. null);
  2080. }
  2081. if (GM_getValue("Check_linksafe_dot_me_links", false))
  2082. {
  2083. addRedirector(
  2084. 'linksafe\\.me\/d\/\\w+',
  2085. "//a[contains(@href,'linksafe.me/d/')]",
  2086. redirectorTypes.HTTP_302,
  2087. null);
  2088. }
  2089. if (GM_getValue("Check_linkto_dot_net_links", false))
  2090. {
  2091. addRedirector(
  2092. 'linkto\\.net\/\\?\\w+\\.\\d+',
  2093. "//a[contains(@href,'linkto.net/?')]",
  2094. redirectorTypes.INNER_LINK,
  2095. /<iframe id="iframe" name="iframe" src="(.+?)\s*" frameborder="0"/);
  2096. }
  2097. if (GM_getValue("Check_theloo_dot_katt_dot_it_links", false))
  2098. {
  2099. addRedirector(
  2100. '(?:the)?loo\\.katt\\.it\/\\w+',
  2101. "//a[contains(@href,'loo.katt.it/')]",
  2102. redirectorTypes.THELOO_KATT_IT,
  2103. /Proceed to URL - <a href="(.+?)">/);
  2104. }
  2105. if (GM_getValue("Check_madlink_dot_sk_links", false))
  2106. {
  2107. addRedirector(
  2108. 'madlink\\.sk\/\\w+',
  2109. "//a[contains(@href,'madlink.sk/')]",
  2110. redirectorTypes.INNER_LINK,
  2111. /name="url" value="(.+?)\s*"\/>/);
  2112. }
  2113. if (GM_getValue("Check_adf_dot_ly_links", false))
  2114. {
  2115. addRedirector(
  2116. '(?:adf\\.ly|[u9]\\.bb|[qj]\\.gs)\/\\w+',
  2117. "//a[contains(@href,'adf.ly/') or contains(@href,'u.bb/') or contains(@href,'9.bb/') or contains(@href,'q.gs/') or contains(@href,'j.gs/')]",
  2118. redirectorTypes.ADF_LY,
  2119. null);
  2120. }
  2121. if (GM_getValue("Check_redi_dot_re_links", false))
  2122. {
  2123. addRedirector(
  2124. 'redi\\.re\/\\w+',
  2125. "//a[contains(@href,'redi.re/')]",
  2126. redirectorTypes.HTTP_302,
  2127. null);
  2128. }
  2129. if (GM_getValue("Check_bit_dot_ly_links", false))
  2130. {
  2131. addRedirector(
  2132. 'bit\\.ly\/\\w+',
  2133. "//a[contains(@href,'bit.ly/')]",
  2134. redirectorTypes.HTTP_302,
  2135. null);
  2136. }
  2137. }
  2138.  
  2139. }
  2140.  
  2141. var bulkHosts = new Array();
  2142. var bulkHostNames = new Array();
  2143. function initBulkCheck()
  2144. {
  2145. /////////////////////////////
  2146. // Inits filehost object
  2147. /////////////////////////////
  2148. // params :
  2149. // hostName -- [string] host name (multiple domains separated with coma)
  2150. // linkRegex -- [string] link regex
  2151. // xpath -- [string] xpath expression to detect the link objects with evaluate
  2152. // blockSize -- [integer] max. number of links sent in one request, 50 if null
  2153. // corrMatch -- [regex] link correction regex (match), applied prior to corrRepl
  2154. // corrReplWhat -- [regex] link correction regex (replace)
  2155. // corrReplWith -- [string]
  2156. // splitSeparator -- [string] POSTDATA links separator, "\r\n" if null
  2157. //
  2158. // apiUrl -- [string] web linkchecker or API URL
  2159. // postData -- [string] POSTDATA of xmlhttprequest
  2160. // resLinkRegex -- [regex]
  2161. // resLiveRegex -- [regex] matches substrings containing live links in the request response
  2162. // resDeadRegex -- [regex] matches substrings containing dead links in the request response
  2163. // resUnavaRegex -- [regex] matches substrings containing unava links in the request response
  2164. // func -- [function] bulkcheck handler, genBulkCheck if null
  2165. //
  2166. //////////////////////////////
  2167. function addHost(hostName, linkRegex, xpath, blockSize, corrMatch, corrReplWhat, corrReplWith, splitSeparator,
  2168. apiUrl, postData, resLinkRegex, resLiveRegex, resDeadRegex, resUnavaRegex, func)
  2169. {
  2170. var fileHost = new Object();
  2171.  
  2172. fileHost.linkRegex = linkRegex;
  2173. fileHost.linkRegexObject = new RegExp(linkRegex, "");
  2174. fileHost.xpath = xpath;
  2175. fileHost.cFound = 0; //found links counter
  2176. fileHost.links = new Array(); //found links
  2177. if (blockSize == null)
  2178. {
  2179. fileHost.blockSize = 50;
  2180. }
  2181. else
  2182. {
  2183. fileHost.blockSize = blockSize;
  2184. }
  2185. fileHost.corrMatch = corrMatch;
  2186. fileHost.corrReplWhat = corrReplWhat;
  2187. fileHost.corrReplWith = corrReplWith;
  2188. if (splitSeparator == null)
  2189. {
  2190. fileHost.splitSeparator = "\r\n";
  2191. }
  2192. else
  2193. {
  2194. fileHost.splitSeparator = splitSeparator;
  2195. }
  2196. fileHost.apiUrl = apiUrl;
  2197. fileHost.postData = postData;
  2198. fileHost.resLinkRegex = resLinkRegex;
  2199. fileHost.resLiveRegex = resLiveRegex;
  2200. fileHost.resDeadRegex = resDeadRegex;
  2201. fileHost.resUnavaRegex = resUnavaRegex;
  2202. if (func == null)
  2203. {
  2204. fileHost.func = genBulkCheck;
  2205. }
  2206. else
  2207. {
  2208. fileHost.func = func;
  2209. }
  2210. bulkHosts.push(fileHost);
  2211. var names = hostName.split(',');
  2212. var i = names.length;
  2213. while(i--)
  2214. {
  2215. bulkHostNames[names[i]] = fileHost;
  2216. }
  2217. }
  2218. var genType1 = [
  2219. "migahost.com", "rodfile.com", "downloadani.me",
  2220. "rarefile.net",
  2221. "ddlstorage.com", "filesabc.com", "sharebeast.com",
  2222. "180upload.com", "verzend.be",
  2223. "movreel.com",
  2224. "4up.me",
  2225. "file4safe.com", "filemac.com", "4upfiles.com",
  2226. "idup.in", "novafile.com", "longfiles.com",
  2227. "bitupload.com",
  2228. "uploadbaz.com"
  2229. ];
  2230. var genType2 = [ "queenshare.com",
  2231. "hulkload.com",
  2232. "daj.to",
  2233. "amonshare.com", "edoc.com",
  2234. ];
  2235. //xfilesharing 1.0
  2236. function addGenericType1()
  2237. {
  2238. var i = genType1.length;
  2239. while(i--)
  2240. {
  2241. if (GM_getValue("Check_" + genType1[i].replace(/\./g, "_dot_").replace(/-/g, "_dash_") + "_links", false))
  2242. {
  2243. var regexSafe = genType1[i].replace(/\./g, "\\.").replace(/-/g, "\\-");
  2244. addHost(
  2245. genType1[i].match(/[\w-]+/)[0], //hostname
  2246. regexSafe + "\/\\w+", //linkregex
  2247. "//a[contains(@href,'" + genType1[i] + "/')]", //xpath
  2248. null, //blocksize
  2249. new RegExp("(http:\/\/(?:|www\\.)" + regexSafe + "\/\\w+)",""),//, //corrmatch
  2250. null, //corrreplwhat
  2251. null, //corrreplwith
  2252. null, //separator
  2253. "http://" + genType1[i] + "/checkfiles.html", //api url
  2254. "op=checkfiles&process=Check+URLs&list=", //postdata
  2255. new RegExp("(" + regexSafe + "\/\\w+)",""), //linkregex
  2256. new RegExp("green'>http:\/\/(?:|www\.)" + regexSafe + "\/\\w+","g"), //liveregex
  2257. new RegExp("red'>http:\/\/(?:|www\.)" + regexSafe + "\/\\w+","g"), //deadregex
  2258. new RegExp("orange'>http:\/\/(?:|www\.)" + regexSafe + "\/\\w+","g"), //unavaregex
  2259. null //function delegate
  2260. )
  2261. }
  2262. }
  2263. }
  2264. //xfilesharing 2.0
  2265. function addGenericType2()
  2266. {
  2267. var i = genType2.length;
  2268. while(i--)
  2269. {
  2270. if (GM_getValue("Check_" + genType2[i].replace(/\./g, "_dot_").replace(/-/g, "_dash_") + "_links", false))
  2271. {
  2272. var regexSafe = genType2[i].replace(/\./g, "\\.").replace(/-/g, "\\-");
  2273. addHost(
  2274. genType2[i].match(/[\w-]+/)[0], //hostname
  2275. regexSafe + "\/\\w+", //linkregex
  2276. "//a[contains(@href,'" + genType2[i] + "/')]", //xpath
  2277. null, //blocksize
  2278. new RegExp("(http:\/\/(?:|www\\.)" + regexSafe + "\/\\w+)",""),//, //corrmatch
  2279. null, //corrreplwhat
  2280. null, //corrreplwith
  2281. null, //separator
  2282. "http://www." + genType2[i] + "/?op=checkfiles", //api url
  2283. "op=checkfiles&process=Check+URLs&list=", //postdata
  2284. new RegExp("(" + regexSafe + "\/\\w+)",""), //linkregex
  2285. new RegExp(regexSafe + "\/\\w+.*?<\/td>\\s*<td style=\"color:green;\">","g"), //liveregex
  2286. new RegExp(regexSafe + "\/\\w+.*?<\/td>\\s*<td style=\"color:red;\">","g"), //deadregex
  2287. new RegExp(regexSafe + "\/\\w+.*?<\/td>\\s*<td style=\"color:orange;\">","g"), //unavaregex
  2288. null //function delegate
  2289. )
  2290. }
  2291. }
  2292. }
  2293. // TEMPLATE
  2294. // if (GM_getValue("Check__dot_com_links", false))
  2295. // {
  2296. // addHost(
  2297. // "", //hostname
  2298. // "", //linkregex
  2299. // "//a[contains(@href,'.com/')]", //xpath
  2300. // null, //blocksize
  2301. // null, //corrmatch
  2302. // null, //corrreplwhat
  2303. // null, //corrreplwith
  2304. // null, //separator
  2305. // "", //api url
  2306. // "", //postdata
  2307. // /()/, //linkregex
  2308. // //liveregex
  2309. // //deadregex
  2310. // //unavaregex
  2311. // null //function delegate
  2312. // )
  2313. // }
  2314. addGenericType1();
  2315. addGenericType2();
  2316.  
  2317. if (GM_getValue("Check_myvdrive_dot_com_links", false))
  2318. {
  2319. addHost(
  2320. "myvdrive,fileserving", //hostname
  2321. "(?:fileserving|myvdrive)\\.com\/files\/[\\w-]+", //linkregex
  2322. "//a[contains(@href,'fileserving.com/files') or contains(@href,'myvdrive.com/files')]", //xpath
  2323. null, //blocksize
  2324. null, //corrmatch
  2325. null, //corrreplwhat
  2326. null, //corrreplwith
  2327. null, //separator
  2328. "http://www.myvdrive.com/Public/linkchecker#", //api url
  2329. "links=", //postdata
  2330. /(?:fileserving|myvdrive)\.com\/(files\/\w+)/, //linkregex
  2331. /icon_file_check_valid"><\/span>\s*http:\/\/www\.(?:fileserving|myvdrive)\.com\/files\/[\w-]+/g, //liveregex
  2332. /icon_file_check_(?:removed|notvalid)"><\/span>\s*http:\/\/www\.(?:fileserving|myvdrive)\.com\/files\/[\w-]+/g, //deadregex
  2333. null, //unavaregex
  2334. null //function delegate
  2335. )
  2336. }
  2337. if (GM_getValue("Check_hackerbox_dot_org_links", false))
  2338. {
  2339. addHost(
  2340. "hackerbox", //hostname
  2341. "host\\.hackerbox\\.org\/\\w+", //linkregex
  2342. "//a[contains(@href,'host.hackerbox.org/')]", //xpath
  2343. null, //blocksize
  2344. /(http:\/\/host\.hackerbox\.org\/\w+)/, //corrmatch
  2345. null, //corrreplwhat
  2346. null, //corrreplwith
  2347. null, //separator
  2348. "http://host.hackerbox.org/checkfiles.html", //api url
  2349. "op=checkfiles&process=Check+URLs&list=", //postdata
  2350. /(host\.hackerbox\.org\/\w+)/, //linkregex
  2351. /green'>http:\/\/host\.hackerbox\.org\/\w+/g, //liveregex
  2352. /red'>http:\/\/host\.hackerbox\.org\/\w+/g, //deadregex
  2353. /orange'>http:\/\/host\.hackerbox\.org\/\w+/g, //unavaregex
  2354. null //function delegate
  2355. )
  2356. }
  2357. if (GM_getValue("Check_hellshare_dot_com_links", false))
  2358. {
  2359. addHost(
  2360. "hellshare", //hostname
  2361. "(?:|download\\.(?:cz\\.|en\\.|sk\\.|)|www\\.)hellshare\\.(?:com|sk|cz|pl|hu|COM|SK|CZ|PL|HU)\/[\\w-\\.]+\/(?:[\\w-\\.]+\/|)\\d{5,}", //linkregex
  2362. "//a[contains(@href,'hellshare.')]", //xpath
  2363. 48, //blocksize
  2364. null, //corrmatch
  2365. null, //corrreplwhat
  2366. null, //corrreplwith
  2367. null, //separator
  2368. null, //api url
  2369. null, //postdata
  2370. null, //linkregex
  2371. null, //liveregex
  2372. null, //deadregex
  2373. null, //unavaregex
  2374. hellshareBulkCheck //function delegate
  2375. )
  2376. }
  2377. if (GM_getValue("Check_ncrypt_dot_in_links", false))
  2378. {
  2379. addHost(
  2380. "ncrypt", //hostname
  2381. "ncrypt\\.in\/folder\\-\\w+", //linkregex
  2382. "//a[contains(@href,'ncrypt.in/folder')]", //xpath
  2383. 100000, //blocksize
  2384. null, //corrmatch
  2385. null, //corrreplwhat
  2386. null, //corrreplwith
  2387. null, //separator
  2388. null,
  2389. null,
  2390. null,
  2391. null,
  2392. null,
  2393. null,
  2394. ncryptBulkCheck //function delegate
  2395. )
  2396. }
  2397. if (GM_getValue("Check_filepost_dot_com_links", false))
  2398. {
  2399. addHost(
  2400. "filepost,fp", //hostname
  2401. "(?:filepost\\.com\/files|fp\\.io)\/\\w+", //linkregex
  2402. "//a[contains(@href,'filepost.com/files/') or contains(@href,'fp.io/')]", //xpath
  2403. null, //blocksize
  2404. null, //corrmatch
  2405. null, //corrreplwhat
  2406. null, //corrreplwith
  2407. "\n", //separator
  2408. 'http://filepost.com/files/checker/?JsHttpRequest=0-xml',
  2409. 'urls=',
  2410. /\\\/files\\\/(\w+)/,
  2411. />http:\\\/\\\/filepost\.com\\\/files\\\/\w+(?:[^>]+>){5}(?:\\n|\\t)+<span class=\\"v\\"/g,
  2412. />http:\\\/\\\/filepost\.com\\\/files\\\/\w+(?:[^>]+>){5}(?:\\n|\\t)+<span class=\\"x\\"/g,
  2413. null,
  2414. null //function delegate
  2415. )
  2416. }
  2417. if (GM_getValue("Check_filesflash_dot_com_links", false))
  2418. {
  2419. addHost(
  2420. "filesflash", //hostname
  2421. "filesflash\\.com\/\\w+", //linkregex
  2422. "//a[contains(@href,'filesflash.com')]", //xpath
  2423. null, //blocksize
  2424. null, //corrmatch
  2425. /http:\/\//, //corrreplwhat
  2426. '', //corrreplwith
  2427. null, //separator
  2428. 'http://filesflash.com/checklinks.php',
  2429. 'submit=Go&links=',
  2430. /filesflash\.com\/(\w+)/,
  2431. /<td>filesflash\.com\/\w+<\/td>\s*<td>Available/g,
  2432. /<td>filesflash\.com\/\w+<\/td>\s*<td>(?:Invalid|Deleted|Expired|Banned)?<\/td>/g,
  2433. null,
  2434. null //function delegate
  2435. )
  2436. }
  2437. if (GM_getValue("Check_jumbofiles_dot_com_links", false))
  2438. {
  2439. addHost(
  2440. "jumbofiles", //hostname
  2441. "jumbofiles\\.com\/\\w+", //linkregex
  2442. "//a[contains(@href,'jumbofiles.com/')]", //xpath
  2443. null, //blocksize
  2444. /(http:\/\/(?:|www\.)jumbofiles\.com\/\w+)/, //corrmatch
  2445. null, //corrreplwhat
  2446. null, //corrreplwith
  2447. null, //separator
  2448. "http://jumbofiles.com/checkfiles.html", //api url
  2449. "op=checkfiles&process=Check+URLs&list=", //postdata
  2450. /(jumbofiles\.com\/\w+)/, //linkregex
  2451. /blue'>http:\/\/(?:|www\.)jumbofiles\.com\/\w+/g, //liveregex
  2452. /red'>http:\/\/(?:|www\.)jumbofiles\.com\/\w+/g, //deadregex
  2453. /orange'>http:\/\/(?:|www\.)jumbofiles\.com\/\w+/g, //unavaregex
  2454. null //function delegate
  2455. )
  2456. }
  2457. if (GM_getValue("Check_edisk_dot_cz_links", false))
  2458. {
  2459. addHost(
  2460. "edisk", //hostname
  2461. "(?:(?:muj|data)\\d*\\.|)edisk\\.(?:cz|sk|eu)\/(?:|(?:cz|sk|en|pl)\/)", //linkregex
  2462. "//a[contains(@href,'edisk.')]", //xpath
  2463. null, //blocksize
  2464. null, //corrmatch
  2465. /edisk\.\w{2}\/(?:|\w{2}\/)stahni/, //corrreplwhat
  2466. 'edisk.cz/stahni', //corrreplwith
  2467. null, //separator
  2468. 'http://www.edisk.cz/zkontrolovat-odkazy',
  2469. 'submitBtn=Zkontrolovat&checkFiles=',
  2470. /((?:download|stahn(?:i|out-soubor))\/\d+)/,
  2471. /"ano"\/>\s*<\/td>\s*<td>\s*http:\/\/.+/g,
  2472. /"ne"\/>\s*<\/td>\s*<td>\s*http:\/\/.+/g,
  2473. null,
  2474. null //function delegate
  2475. )
  2476. }
  2477. if (GM_getValue("Check_bezvadata_dot_cz_links", false))
  2478. {
  2479. GM_xmlhttpRequest( //age check skip
  2480. {
  2481. method: 'POST',
  2482. url: 'http://bezvadata.cz/vyhledavani/souhlas-zavadny-obsah',
  2483. headers: {
  2484. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  2485. 'Content-type': 'application/x-www-form-urlencoded',
  2486. 'Referer': ""
  2487. }
  2488. });
  2489. addHost(
  2490. "bezvadata", //hostname
  2491. "(?:beta\\.|)bezvadata\.cz\/stahnout\/\\d+\\w+", //linkregex
  2492. "//a[contains(@href,'bezvadata.cz')]", //xpath
  2493. null, //blocksize
  2494. null, //corrmatch
  2495. null, //corrreplwhat
  2496. null, //corrreplwith
  2497. null, //separator
  2498. 'http://bezvadata.cz/nastroje/kontrola-odkazu?do=kontrolaOdkazuForm-submit',
  2499. 'zkontrolovat=Zkontrolovat&odkazy=',
  2500. /(bezvadata\.cz\/stahnout\/\d+)/,
  2501. /bezvadata\.cz\/stahnout\/.+?<\/td>\s*<td style="background-color: #d9ffb2/g,
  2502. /bezvadata\.cz\/stahnout\/.+?<\/td>\s*<td style="background-color: #ffb2b2/g,
  2503. null,
  2504. null //function delegate
  2505. )
  2506. }
  2507. if (GM_getValue("Check_linkcrypt_dot_ws_links", false))
  2508. {
  2509. addHost(
  2510. "linkcrypt", //hostname
  2511. "linkcrypt\\.ws\/dir\/\\w+", //linkregex
  2512. "//a[contains(@href,'linkcrypt.ws/dir')]", //xpath
  2513. 100000, //blocksize
  2514. null, //corrmatch
  2515. null, //corrreplwhat
  2516. null, //corrreplwith
  2517. null, //separator
  2518. null,
  2519. null,
  2520. null,
  2521. null,
  2522. null,
  2523. null,
  2524. linkcryptBulkCheck //function delegate
  2525. )
  2526. }
  2527. if (GM_getValue("Check_linksave_dot_in_links", false))
  2528. {
  2529. addHost(
  2530. "linksave", //hostname
  2531. "linksave\\.in\/\\w+", //linkregex
  2532. "//a[contains(@href,'linksave.in')]", //xpath
  2533. 100000, //blocksize
  2534. null, //corrmatch
  2535. null, //corrreplwhat
  2536. null, //corrreplwith
  2537. null, //separator
  2538. null,
  2539. null,
  2540. null,
  2541. null,
  2542. null,
  2543. null,
  2544. linksaveBulkCheck //function delegate
  2545. )
  2546. }
  2547. if (GM_getValue("Check_videobb_dot_com_links", false))
  2548. {
  2549. addHost(
  2550. "videobb", //hostname
  2551. "videobb\\.com\/(?:video\/|watch_video\\.php\\?v=)\\w+", //linkregex
  2552. "//a[contains(@href,'videobb.com')]", //xpath
  2553. null, //blocksize
  2554. null, //corrmatch
  2555. /watch_video\.php\?v=/, //corrreplwhat
  2556. 'video/', //corrreplwith
  2557. null, //separator
  2558. 'http://www.videobb.com/link_checker.php',
  2559. 'links=',
  2560. /videobb\.com\/video\/(\w+)/,
  2561. /<td>http:\/\/(?:www\.|)videobb.com\/video\/\w+<\/td>\s+<td>.+?<\/td>\s+<td>\d+:\d+<\/td>\s+<td>Available/g,
  2562. /<td>http:\/\/(?:www\.|)videobb.com\/video\/\w+<\/td>\s+<td><\/td>\s+<td>N\/A<\/td>\s+<td>Not Available/g,
  2563. null,
  2564. null //function delegate
  2565. )
  2566. }
  2567. if (GM_getValue("Check_cramit_dot_in_links", false))
  2568. {
  2569. addHost(
  2570. "cramit,cramitin", //hostname
  2571. "cramit(?:\\.in|in\\.net)\/", //linkregex
  2572. "//a[contains(@href,'cramitin.net') or contains(@href,'cramit.in')]", //xpath
  2573. null, //blocksize
  2574. null, //corrmatch
  2575. null, //corrreplwhat
  2576. null, //corrreplwith
  2577. null, //separator
  2578. 'http://cramit.in/checkfiles.html',
  2579. 'op=checkfiles&process=CHECK+URL%27S&list=',
  2580. /(cramit(?:\.in|in\.net)\/\w+)/,
  2581. /green>http:\/\/(?:www\.|)cramit(?:\.in|in\.net)\/\w+/g,
  2582. /red'>http:\/\/(?:www\.|)cramit(?:\.in|in\.net)\/\w+/g,
  2583. /orange'>http:\/\/(?:www\.|)cramit(?:\.in|in\.net)\/\w+/g,
  2584. null //function delegate
  2585. )
  2586. }
  2587. if (GM_getValue("Check_turbobit_dot_net_links", false))
  2588. {
  2589. addHost(
  2590. "turbobit", //hostname
  2591. "turbobit\\.(?:net|pl)\/(?:\\w+\/|).+?\\.html", //linkregex
  2592. "//a[contains(@href,'turbobit.')]", //xpath
  2593. null, //blocksize
  2594. /(turbobit\.(?:net|pl)\/(?:\w+\/|).+?\.html)/, //corrmatch
  2595. null, //corrreplwhat
  2596. null, //corrreplwith
  2597. "\n", //separator
  2598. 'http://turbobit.net/linkchecker/csv',
  2599. 'links_to_check=',
  2600. /(turbobit\.(?:net|pl)\/\w+)/,
  2601. /turbobit\.(?:net|pl)\/.*?, 1/g,
  2602. /turbobit\.(?:net|pl)\/.*?, 0/g,
  2603. null,
  2604. null //function delegate
  2605. )
  2606. }
  2607. if (GM_getValue("Check_filerio_dot_com_links", false))
  2608. {
  2609. addHost(
  2610. "filekeen,filerio", //hostname
  2611. //"file(?:keen|rio)\\.(?:com|in)\/\\w+\/.", //linkregex
  2612. "file(?:keen|rio)\\.(?:com|in)\/\\w+", //linkregex
  2613. "//a[contains(@href,'filekeen.com') or contains(@href,'filerio.')]", //xpath
  2614. null, //blocksize
  2615. null, //corrmatch
  2616. null, //corrreplwhat
  2617. null, //corrreplwith
  2618. null, //separator
  2619. 'http://filerio.in/checkfiles.html',
  2620. 'op=checkfiles&process=Check+URLs&list=',
  2621. /(file(?:keen|rio)\.(?:com|in)\/\w+)/,
  2622. /green'>http:\/\/(?:www\.|)file(?:keen|rio)\.(?:com|in)\/\w+/g,
  2623. /red'>http:\/\/(?:www\.|)file(?:keen|rio)\.(?:com|in)\/\w+/g,
  2624. /orange'>http:\/\/(?:www\.|)file(?:keen|rio)\.(?:com|in)\/\w+/g,
  2625. null //function delegate
  2626. )
  2627. }
  2628. if (GM_getValue("Check_share_dash_online_dot_biz_links", false))
  2629. {
  2630. addHost(
  2631. "share-online,egoshare", //hostname
  2632. "(?:share-online\\.biz|egoshare\\.com)\/(?:dl\/|download\\.php\\?id=)", //linkregex
  2633. "//a[contains(@href,'share-online.biz') or contains(@href,'egoshare.com')]", //xpath
  2634. null, //blocksize
  2635. /http:\/\/(?:www\.)?(?:share-online\.biz|egoshare\.com)\/d(?:l\/|ownload\.php\?id=)(\w+)/, //corrmatch
  2636. null, //corrreplwhat
  2637. null, //corrreplwith
  2638. "\n", //separator
  2639. 'http://api.share-online.biz/linkcheck.php',
  2640. 'links=',
  2641. /(\w+);(?:OK|NOTFOUND|DELETED)/,
  2642. /\w+;OK/g,
  2643. /\w+;(?:NOTFOUND|DELETED)/g,
  2644. null,
  2645. null //function delegate
  2646. )
  2647. }
  2648. if (GM_getValue("Check_quickshare_dot_cz_links", false))
  2649. {
  2650. addHost(
  2651. "quickshare", //hostname
  2652. "quickshare\\.cz\/stahnout-soubor\/\\d+", //linkregex
  2653. "//a[contains(@href,'quickshare.cz')]", //xpath
  2654. null, //blocksize
  2655. null, //corrmatch
  2656. null, //corrreplwhat
  2657. null, //corrreplwith
  2658. null, //separator
  2659. 'http://www.quickshare.cz/nastroje/link-checker',
  2660. 'linky=',
  2661. /quickshare\.cz\/stahnout-soubor\/(\d+(?::\w+)?)/,
  2662. /quickshare\.cz\/stahnout-soubor\/\d+(?::[\w\-.+$!*\/()\[\]\',~%?:@#&=\\]+)?\s*<\/a><\/td><td><img src="\/img\/ok\.gif/g,
  2663. /quickshare\.cz\/stahnout-soubor\/\d+(?::[\w\-.+$!*\/()\[\]\',~%?:@#&=\\]+)?\s*<\/td><td><img src="\/img\/nenalezeno\.gif/g,
  2664. null,
  2665. null //function delegate
  2666. )
  2667. }
  2668. if (GM_getValue("Check_netload_dot_in_links", false))
  2669. {
  2670. addHost(
  2671. "netload", //hostname
  2672. "netload\\.in\/datei\\w{10}", //linkregex
  2673. "//a[contains(@href,'netload.in')]", //xpath
  2674. null, //blocksize
  2675. null, //corrmatch
  2676. null, //corrreplwhat
  2677. null, //corrreplwith
  2678. "\n", //separator
  2679. "http://api.netload.in/index.php?id=2", //api url
  2680. "send=Absenden&links=", //postdata
  2681. /(\w+);/, //linkregex
  2682. /\w{10,};.+?;.+?;online/g, //liveregex
  2683. /\w{10,};.+?;.+?;offline/g, //deadregex
  2684. null, //unavaregex
  2685. //netloadBulkCheck //function delegate //disabled on probation since 1.2.4.5
  2686. null //function delegate
  2687. )
  2688. }
  2689. if (GM_getValue("Check_oboom_dot_com_links", false))
  2690. {
  2691. addHost(
  2692. "oboom", //hostname
  2693. "oboom\\.com\/#?\\w{8}", //linkregex
  2694. "//a[contains(@href,'oboom.com/')]", //xpath
  2695. null, //blocksize
  2696. /oboom\.com\/#?(\w{8})/, //corrmatch
  2697. null, //corrreplwhat
  2698. null, //corrreplwith
  2699. null, //separator
  2700. null,
  2701. null,
  2702. null,
  2703. null, //liveregex
  2704. null, //deadregex
  2705. null,
  2706. oboomBulk //function delegate
  2707. )
  2708. }
  2709. if (GM_getValue("Check_mega_dot_co_dot_nz_links", false))
  2710. {
  2711. addHost(
  2712. "mega",
  2713. "mega\\.co\\.nz\/#!\\w+",
  2714. "//a[contains(@href,'mega.co.nz/')]",
  2715. 100000, //blocksize
  2716. null, //corrmatch
  2717. null, //corrreplwhat
  2718. null, //corrreplwith
  2719. null, //separator
  2720. null,
  2721. null,
  2722. null,
  2723. null,
  2724. null,
  2725. null,
  2726. megaBulkCheck //function delegate
  2727. )
  2728. }
  2729. //the same as GenType2, except api url is 'https://' instead of 'http://www.' and corrmatch is not??? needed
  2730.  
  2731. if (GM_getValue("Check_extabit_dot_com_links", false))
  2732. {
  2733. addHost(
  2734. "extabit", //hostname
  2735. "extabit\\.com\/file\/\\w+", //linkregex
  2736. "//a[contains(@href,'extabit.com')]", //xpath
  2737. null, //blocksize
  2738. null, //corrmatch
  2739. null, //corrreplwhat
  2740. null, //corrreplwith
  2741. "\n", //separator
  2742. "http://extabit.com/linkchecker.jsp", //api url
  2743. "url=", //postdata
  2744. /extabit\.com\/(file\/\w+)/, //linkregex
  2745. /extabit\.com\/file\/\w+\/[^<]+<\/a><\/td>\s*<td class="status"><span class="status_green">/g, //liveregex
  2746. /extabit\.com\/file\/\w+\/[^<]+<\/a><\/td>\s*<td class="status"><span class="status_red">/g, //deadregex
  2747. /extabit\.com\/file\/\w+\/[^<]+<\/a><\/td>\s*<td class="status"><span class="status_yellow">/g, //unavaregex
  2748. extabitBulkCheck //function delegate
  2749. )
  2750. }
  2751. if (GM_getValue("Check_junocloud_dot_me_links", false))
  2752. {
  2753. addHost(
  2754. "junocloud", //hostname
  2755. "junocloud\\.me\/\\w+", //linkregex
  2756. "//a[contains(@href,'junocloud.me')]", //xpath
  2757. null, //blocksize
  2758. null, //corrmatch
  2759. null, //corrreplwhat
  2760. null, //corrreplwith
  2761. "\n", //separator
  2762. "http://junocloud.me/checkfiles.html", //api url
  2763. "op=checkfiles&process=Check+URLs&list=", //postdata
  2764. /(junocloud\.me\/\w+)/, //linkregex
  2765. /<a href="http:\/\/junocloud\.me\/\w+[^<]+<\/a>\s*<span style="color: green/g, //liveregex
  2766. /<a href="http:\/\/junocloud\.me\/\w+[^<]+<\/a>\s*<span style="color: red/g, //deadregex
  2767. null, //unavaregex
  2768. null //function delegate
  2769. )
  2770. }
  2771. if (GM_getValue("Check_webshare_dot_cz_links", false))
  2772. {
  2773. addHost(
  2774. "webshare", //hostname
  2775. "webshare\.cz\/(?:(?:#/)?file/\\w+|\\w+-.*)", //linkregex
  2776. "//a[contains(@href,'webshare.cz')]", //xpath
  2777. 100000, //blocksize
  2778. null, //corrmatch
  2779. null, //corrreplwhat
  2780. null, //corrreplwith
  2781. null, //separator
  2782. null, //api url
  2783. null, //postdata
  2784. null, //linkregex
  2785. null, //liveregex
  2786. null, //deadregex
  2787. null, //unavaregex
  2788. webshareBulkCheck //function delegate
  2789. )
  2790. }
  2791. /////////////////////////////
  2792. // Common function delegate to send links to get checked by host linkchecker
  2793. /////////////////////////////
  2794. // If you define a new delegate, you may use following properties
  2795. // this.links [array] array of strings (link blocks). The links in each block separated with host.splitSeparator.
  2796. // this.apiUrl [string] API or web linkchecker URL
  2797. // this.postData [string] POSTDATA for POST request
  2798. // this.resLiveRegex [regex] matches live substrings in the request response
  2799. // this.resDeadRegex [regex] matches dead substrings in the request response
  2800. // this.resUnavaRegex [regex] matches unava substrings in the request response (the regex is often null!)
  2801. //
  2802. // this.resLinkRegex [regex] matches links further passed to DisplayTheCheckedLinks
  2803. //
  2804. // See the code below for standard bulkcheck handling reference.
  2805. //////////////////////////////
  2806. function genBulkCheck()
  2807. {
  2808. var blockIdx = this.links.length;
  2809. while (blockIdx--)
  2810. {
  2811. postRequest(this.apiUrl, this.postData, this.links[blockIdx],
  2812. this.resLinkRegex, this.resLiveRegex, this.resDeadRegex, this.resUnavaRegex);
  2813. }
  2814. function postRequest(api, postData, links, linkRegex, liveRegex, deadRegex, unavaRegex)
  2815. {
  2816. GM_xmlhttpRequest(
  2817. {
  2818. method: 'POST',
  2819. url: api,
  2820. headers: {
  2821. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  2822. 'Content-type': 'application/x-www-form-urlencoded',
  2823. 'Referer': api,
  2824. 'X-Requested-With': 'XMLHttpRequest'
  2825. },
  2826. data: postData + encodeURIComponent(links),
  2827. onload: function (result)
  2828. {
  2829. var res = result.responseText;
  2830. // GM_log(res);
  2831. var i;
  2832.  
  2833. var livelinks = res.match(liveRegex);
  2834. var deadlinks = res.match(deadRegex);
  2835. // GM_log(livelinks);
  2836. // GM_log(deadlinks);
  2837. if (livelinks != null)
  2838. {
  2839. i = livelinks.length - 1;
  2840. do
  2841. {
  2842. livelinks[i] = livelinks[i].match(linkRegex)[1];
  2843. }
  2844. while (i--);
  2845. DisplayTheCheckedLinks(livelinks, 'alive_link');
  2846. }
  2847.  
  2848. if (deadlinks != null)
  2849. {
  2850. i = deadlinks.length - 1;
  2851. do
  2852. {
  2853. deadlinks[i] = deadlinks[i].match(linkRegex)[1];
  2854. }
  2855. while (i--);
  2856. DisplayTheCheckedLinks(deadlinks, 'adead_link');
  2857. }
  2858.  
  2859. if (unavaRegex != null)
  2860. {
  2861. var unavalinks = res.match(unavaRegex);
  2862. if (unavalinks)
  2863. {
  2864. i = unavalinks.length - 1;
  2865. do
  2866. {
  2867. unavalinks[i] = unavalinks[i].match(linkRegex)[1];
  2868. }
  2869. while (i--);
  2870. DisplayTheCheckedLinks(unavalinks, 'unava_link');
  2871. }
  2872. }
  2873. }
  2874. });
  2875. }
  2876. }
  2877. //specialized bulkchecking handlers follow
  2878. function webshareBulkCheck()
  2879. {
  2880. var arr = this.links[0].split("\r\n");
  2881. var i = arr.length;
  2882. while(i--)
  2883. {
  2884. postRequest(arr[i]);
  2885. }
  2886. //function postRequest(api, postData, links, linkRegex, liveRegex, deadRegex, unavaRegex)
  2887. function postRequest(wsLink)
  2888. {
  2889. var id = wsLink.match(/webshare\.cz\/(?:(?:#\/)?file\/)?(\w+)/)[1];
  2890. GM_xmlhttpRequest(
  2891. {
  2892. method: 'POST',
  2893. url: "http://webshare.cz/api/file_info/",
  2894. headers: {
  2895. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  2896. 'Content-type': 'application/x-www-form-urlencoded',
  2897. 'Referer': "",
  2898. },
  2899. data: "wst=&ident=" + id,
  2900. onload: function (result)
  2901. {
  2902. var res = result.responseText;
  2903. if (res.match(/<name>.+?<\/name>/))
  2904. {
  2905. DisplayTheCheckedLinks([id], 'alive_link');
  2906. }
  2907. else
  2908. {
  2909. DisplayTheCheckedLinks([id], 'adead_link');
  2910. }
  2911. }
  2912. });
  2913. }
  2914. }
  2915. //like genBulkCheck, but extabit linkchecker only works when logged in. If not logged in, non-bulk checking has to be used.
  2916. //extabit also doesn't like requests in fast succession, so some delays are added.
  2917. function extabitBulkCheck()
  2918. {
  2919. var timeoutDelay = 0;
  2920. var blockIdx = this.links.length;
  2921. while (blockIdx--)
  2922. {
  2923. postRequest(this.apiUrl, this.postData, this.links[blockIdx],
  2924. this.resLinkRegex, this.resLiveRegex, this.resDeadRegex, this.resUnavaRegex);
  2925. }
  2926. function postRequest(api, postData, links, linkRegex, liveRegex, deadRegex, unavaRegex)
  2927. {
  2928. GM_xmlhttpRequest(
  2929. {
  2930. method: 'POST',
  2931. url: api,
  2932. headers: {
  2933. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  2934. 'Content-type': 'application/x-www-form-urlencoded',
  2935. 'Referer': api,
  2936. 'X-Requested-With': 'XMLHttpRequest'
  2937. },
  2938. data: postData + encodeURIComponent(links),
  2939. onload: function (result)
  2940. {
  2941. var res = result.responseText;
  2942. if (/id="registration_header"/.test(res)) //not logged in, have to use non-bulk
  2943. {
  2944. function geturlfunc(link, tryID) //basically the geturl function with some changes (compacted, displaythecheckedlinkS, multiple tries)
  2945. {
  2946. //GM_log(tryID + ': ' + link);
  2947. GM_xmlhttpRequest(
  2948. {
  2949. method: 'GET',
  2950. url: link,
  2951. 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': ""},
  2952. onload: function(result2)
  2953. {
  2954. var res2 = result2.responseText;
  2955. var res2Status = result.status;
  2956. if (/download-file-btn/.test(res2)) {DisplayTheCheckedLinks([link], 'alive_link'); return;}
  2957. if (/Search mirrors|id="mirrb"/.test(res2) || res2Status==404) {DisplayTheCheckedLinks([link], 'adead_link'); return;}
  2958. if (/currently unavailable|temporarily unavailable|disponible en estos momentos|vorläufig unerreichbar|Файл временно недоступен/.test(res2) || res2Status == 500 || res2Status == 503)
  2959. {
  2960. if (tryID < 7)
  2961. setTimeout(function(){geturlfunc(link,tryID+1)}, tryID * 1000 + (Math.random() * tryID * 2000));
  2962. else
  2963. {DisplayTheCheckedLinks([link], 'unava_link'); return;}
  2964. }
  2965. }
  2966. });
  2967. }
  2968. //split the hrefs and check them one by one
  2969. GM_log('Using slow extabit.com link checking. Log in to extabit to use fast bulk checking.');
  2970. links = links.split('\n');
  2971. var i = links.length;
  2972. while (i--)
  2973. {
  2974. if (links[i])
  2975. {
  2976. (function(i){setTimeout(function(){geturlfunc(links[i],1)}, timeoutDelay);})(i);
  2977. timeoutDelay += 500;
  2978. }
  2979. }
  2980. return;
  2981. }
  2982. var i;
  2983.  
  2984. var livelinks = res.match(liveRegex);
  2985. var deadlinks = res.match(deadRegex);
  2986. if (livelinks != null)
  2987. {
  2988. i = livelinks.length - 1;
  2989. do
  2990. {
  2991. livelinks[i] = livelinks[i].match(linkRegex)[1];
  2992. }
  2993. while (i--);
  2994. DisplayTheCheckedLinks(livelinks, 'alive_link');
  2995. }
  2996.  
  2997. if (deadlinks != null)
  2998. {
  2999. i = deadlinks.length - 1;
  3000. do
  3001. {
  3002. deadlinks[i] = deadlinks[i].match(linkRegex)[1];
  3003. }
  3004. while (i--);
  3005. DisplayTheCheckedLinks(deadlinks, 'adead_link');
  3006. }
  3007.  
  3008. if (unavaRegex != null)
  3009. {
  3010. var unavalinks = res.match(unavaRegex);
  3011. if (unavalinks)
  3012. {
  3013. i = unavalinks.length - 1;
  3014. do
  3015. {
  3016. unavalinks[i] = unavalinks[i].match(linkRegex)[1];
  3017. }
  3018. while (i--);
  3019. DisplayTheCheckedLinks(unavalinks, 'unava_link');
  3020. }
  3021. }
  3022. }
  3023. });
  3024. }
  3025. }
  3026. function netloadBulkCheck()
  3027. {
  3028. var blockIdx = this.links.length;
  3029.  
  3030. while (blockIdx--)
  3031. {
  3032. postRequest(this.apiUrl, this.postData, this.links[blockIdx],
  3033. this.resLinkRegex, this.resLiveRegex, this.resDeadRegex, this.unavaRegex);
  3034. }
  3035. function postRequest(api, postData, links, linkRegex, liveRegex, deadRegex, unavaRegex)
  3036. {
  3037. GM_xmlhttpRequest(
  3038. {
  3039. method: 'POST',
  3040. url: api,
  3041. headers: {
  3042. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  3043. 'Content-type': 'application/x-www-form-urlencoded',
  3044. 'Referer': ""
  3045. },
  3046. data: postData + encodeURIComponent(links),
  3047. onload: function (result)
  3048. {
  3049. var res = result.responseText;
  3050. var i;
  3051.  
  3052. var livelinks = res.match(liveRegex);
  3053. var deadlinks = res.match(deadRegex);
  3054. if (livelinks != null)
  3055. {
  3056. i = livelinks.length - 1;
  3057. do
  3058. {
  3059. recheckLink(livelinks[i].match(linkRegex)[1]);
  3060. }
  3061. while(i--);
  3062. }
  3063.  
  3064. if (deadlinks != null)
  3065. {
  3066. i = deadlinks.length - 1;
  3067. do
  3068. {
  3069. deadlinks[i] = deadlinks[i].match(linkRegex)[1];
  3070. }
  3071. while (i--);
  3072. DisplayTheCheckedLinks(deadlinks, 'adead_link');
  3073. }
  3074. }
  3075. });
  3076. }
  3077. function recheckLink(link)
  3078. {
  3079. var link = link;
  3080. GM_xmlhttpRequest(
  3081. {
  3082. method: 'GET',
  3083. url: 'http://netload.in/datei' + link + '.htm',
  3084. headers: {
  3085. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3086. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  3087. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  3088. 'Referer': ""
  3089. },
  3090. onload: function (result)
  3091. {
  3092. var res = result.responseText;
  3093.  
  3094. if (res.match(/dl_first_file_download">|download_limit\.gif/))
  3095. {
  3096. DisplayTheCheckedLinks([link], 'alive_link');
  3097. return;
  3098. }
  3099.  
  3100. if (res.match(/achtung\.jpg"/))
  3101. {
  3102. DisplayTheCheckedLinks([link], 'adead_link');
  3103. }
  3104. },
  3105. onerror: function ()
  3106. {
  3107. displayTheCheckedLink(link, 'unava_link');
  3108. }
  3109. });
  3110. }
  3111. }
  3112.  
  3113. function megaBulkCheck()
  3114. {
  3115. var arr = this.links[0].split("\r\n");
  3116. var i = arr.length;
  3117. var seqno = Math.floor(Math.random()*1000000000);
  3118. while(i--)
  3119. {
  3120. postRequest(arr[i]);
  3121. }
  3122. function postRequest(megaLink)
  3123. {
  3124. var id = megaLink.match(/mega\.co\.nz\/#!(\w+)(?:!\w+)?/)[1];
  3125. GM_xmlhttpRequest(
  3126. {
  3127. method: "POST",
  3128. url: 'https://g.api.mega.co.nz/cs?id=' + seqno++,
  3129. data: '[{"a":"g","p":"' + id + '","ssl": "1"}]',
  3130. headers: {
  3131. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3132. 'Content-Type': 'application/xml',
  3133. 'Referer': "https://mega.co.nz/"
  3134. },
  3135. onload: function (result)
  3136. {
  3137. var res = $.parseJSON(result.responseText.match(/\[(.+?)\]/)[1]);
  3138. if ((typeof res == "number" && (res == -9 || res == -16 || res == -6)) || res.d)
  3139. {
  3140.  
  3141. DisplayTheCheckedLinks([id], 'adead_link');
  3142. }
  3143. if (res.at)
  3144. {
  3145. DisplayTheCheckedLinks([id], 'alive_link');
  3146. }
  3147. if (res.e == "ETEMPUNAVAIL")
  3148. {
  3149. DisplayTheCheckedLinks([id], 'unava_link');
  3150. }
  3151. }
  3152. });
  3153. }
  3154.  
  3155. }
  3156. function oboomBulk() {
  3157. var a = [], b = [], c = [];
  3158. var array = this.links;
  3159.  
  3160. GM_xmlhttpRequest({
  3161. method: 'GET',
  3162. url: 'https://www.oboom.com/1/guestsession',
  3163. headers: {
  3164. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  3165. 'Content-type': 'application/x-www-form-urlencoded',
  3166. 'Referer': 'https://www.oboom.com',
  3167. 'X-Requested-With': 'XMLHttpRequest'
  3168. },
  3169. onload: function(result) {
  3170. var blockIdx = array.length;
  3171. var token = JSON.parse(result.responseText)[1];
  3172. while (blockIdx--) {
  3173. startCheck(array[blockIdx].split('\r\n'), token);
  3174. }
  3175. }
  3176. });
  3177.  
  3178. function startCheck(links, token) {
  3179. GM_xmlhttpRequest({
  3180. method: 'POST',
  3181. url: "https://api.oboom.com/1/info",
  3182. headers: {
  3183. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  3184. 'Content-type': 'application/x-www-form-urlencoded',
  3185. 'Referer': 'https://www.oboom.com/',
  3186. 'X-Requested-With': 'XMLHttpRequest'
  3187. },
  3188. data: "token=" + token + "&items=" + links.join(","),
  3189. onload: function(result) {
  3190. var res = JSON.parse(result.responseText)[1];
  3191. var i = res.length, s;
  3192.  
  3193. while (i--) {
  3194. s = res[i].state;
  3195. if (s == 'online') a.push(res[i].id);
  3196. else if (s == 'blocked' || s == 'abused' || s == 'lost' || s == 'not_found' || s == 'not_available'|| s == 'download_error' || s == 'offline' ) b.push(res[i].id);
  3197. else c.push(res[i].id);
  3198. }
  3199.  
  3200. if (a.length > 0) DisplayTheCheckedLinks(a, 'alive_link');
  3201. if (b.length > 0) DisplayTheCheckedLinks(b, 'adead_link');
  3202. if (c.length > 0) DisplayTheCheckedLinks(c, 'unava_link');
  3203. }
  3204. });
  3205. }
  3206. }
  3207. function linksaveBulkCheck()
  3208. {
  3209. var arr = this.links[0].split("\r\n");
  3210. var i = arr.length;
  3211. while(i--)
  3212. {
  3213. postRequest(arr[i]);
  3214. }
  3215. function postRequest(lsLink)
  3216. {
  3217. GM_xmlhttpRequest(
  3218. {
  3219. method: "GET",
  3220. url: lsLink + '-t.jpg',
  3221. headers: {
  3222. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3223. 'Accept': 'text/xml',
  3224. 'Referer': ""
  3225. },
  3226. onload: function (result)
  3227. {
  3228. var imgLen = result.responseHeaders.match(/Content-Length: (\d+)/)[1];
  3229. if (imgLen == 965) //online
  3230. {
  3231. DisplayTheCheckedLinks([lsLink], 'alive_link');
  3232. }
  3233.  
  3234. if (imgLen == 972) //offline
  3235. {
  3236. DisplayTheCheckedLinks([lsLink], 'adead_link');
  3237. }
  3238. if (imgLen == 978) //unava
  3239. {
  3240. DisplayTheCheckedLinks([lsLink], 'unava_link');
  3241. }
  3242. }
  3243. });
  3244. }
  3245.  
  3246. }
  3247. function linkcryptBulkCheck()
  3248. {
  3249. var arr = this.links[0].split("\r\n");
  3250. var i = arr.length;
  3251. while(i--)
  3252. {
  3253. postRequest(arr[i]);
  3254. }
  3255. function postRequest(lcLink)
  3256. {
  3257. GM_xmlhttpRequest(
  3258. {
  3259. method: "GET",
  3260. url: 'http://linkcrypt.ws/api.html?api=status_V1&folderKey=' + lcLink.match(/dir\/(\w+)/)[1],
  3261. headers: {
  3262. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3263. 'Accept': 'text/xml',
  3264. 'Referer': ""
  3265. },
  3266. onload: function (result)
  3267. {
  3268. var res = result.responseText;
  3269. if (res.match(/<errorCode>1101|folderStatus>[23]/)) //Offline status
  3270. {
  3271. DisplayTheCheckedLinks([lcLink], 'adead_link');
  3272. return;
  3273. }
  3274. if (res.match(/folderStatus>1/)) //Online status
  3275. {
  3276. DisplayTheCheckedLinks([lcLink], 'alive_link');
  3277. }
  3278. else
  3279. {
  3280. DisplayTheCheckedLinks([lcLink], 'unava_link');
  3281. }
  3282. }
  3283. });
  3284. }
  3285. }
  3286.  
  3287. function megashareBulkCheck()
  3288. {
  3289. var arr = this.links[0].split("\r\n");
  3290. var i = arr.length;
  3291. while(i--)
  3292. {
  3293. postRequest(arr[i]);
  3294. }
  3295. function postRequest(msLink)
  3296. {
  3297. GM_xmlhttpRequest(
  3298. {
  3299. method: "GET",
  3300. url: msLink,
  3301. headers: {
  3302. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3303. 'Content-Type': 'application/x-www-form-urlencoded',
  3304. 'Referer': ""
  3305. },
  3306. onload: function (result)
  3307. {
  3308. var prZVal = result.responseText.match(/name="(\d+prZVal)" value="(\d+)">/);
  3309. var btn3Name = result.responseText.match(/src="images\/dwn-btn3\.gif" name="(.+?)"/);
  3310. if ((prZVal == null) || (btn3Name == null))
  3311. {
  3312. return;
  3313. }
  3314. GM_xmlhttpRequest(
  3315. {
  3316. method: "POST",
  3317. url: msLink,
  3318. headers: {
  3319. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3320. 'Content-Type': 'application/x-www-form-urlencoded',
  3321. 'Referer': ""
  3322. },
  3323. data: prZVal[1] + "=" + prZVal[2] + '&' + btn3Name[1] + '.x=1&' + btn3Name[1] + '.y=1',
  3324. onload: function (result)
  3325. {
  3326. var res = result.responseText;
  3327. if (res.match(/<div id="err">/))
  3328. {
  3329. DisplayTheCheckedLinks([msLink.match(/\.com(\/\d+)/)[1]], 'adead_link');
  3330. }
  3331. else
  3332. {
  3333. DisplayTheCheckedLinks([msLink.match(/\.com(\/\d+)/)[1]], 'alive_link');
  3334. }
  3335. }
  3336. });
  3337. }
  3338. });
  3339. }
  3340. }
  3341. function ncryptBulkCheck()
  3342. {
  3343. var arr = this.links[0].split("\r\n");
  3344. var i = arr.length;
  3345. while(i--)
  3346. {
  3347. postRequest(arr[i]);
  3348. }
  3349. function postRequest(ncryptLink)
  3350. {
  3351. GM_xmlhttpRequest(
  3352. {
  3353. method: "POST",
  3354. url: 'http://ncrypt.in/api_status.php',
  3355. headers: {
  3356. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3357. 'Content-Type': 'application/x-www-form-urlencoded',
  3358. 'Referer': ""
  3359. },
  3360. data: 'link=' + encodeURI(ncryptLink),
  3361. onload: function (result)
  3362. {
  3363. var foldStatus = result.responseText.match(/(?:offline|online);/);
  3364. switch(foldStatus + ""){
  3365. case "offline;": DisplayTheCheckedLinks([ncryptLink], 'adead_link'); break;
  3366. case "online;": DisplayTheCheckedLinks([ncryptLink], 'alive_link'); break;
  3367. default: DisplayTheCheckedLinks([ncryptLink], 'unava_link');
  3368. }
  3369. }
  3370. });
  3371. }
  3372. }
  3373. function hellshareBulkCheck()
  3374. {
  3375. var links = this.links;
  3376. GM_xmlhttpRequest(
  3377. {
  3378. method: "GET",
  3379. url: 'http://www.hellshare.com',
  3380. headers: {
  3381. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3382. 'Accept': 'text/xml',
  3383. 'Referer': ""
  3384. },
  3385. onload: function (result)
  3386. {
  3387. var domain = result.responseText.match(/param_rau = "www\.hellshare\.(\w+)"/)[1];
  3388.  
  3389. var loc = 'check=Zkontrolovat+dostupnost+soubor%C5%AF&links=';
  3390. if (domain == 'sk')
  3391. loc = 'check=Skontrolova%C5%A5&links=';
  3392. if (domain == 'com')
  3393. loc = 'check=Check+availability&links=';
  3394. if (domain == 'hu')
  3395. loc = 'check=Kontrol%C3%A1lj&links=';
  3396. if (domain == 'pl')
  3397. loc = 'check=Sprawd%C5%BC+dost%C4%99pno%C5%9B%C4%87+plik%C3%B3w&links=';
  3398.  
  3399. genBulkCheck.call({ links: links,
  3400. apiUrl: 'http://www.hellshare.' + domain + '/linkchecker?do=linkChecker-linkcheckerform-submit',
  3401. postData: loc,
  3402. resLinkRegex: /hellshare\.(?:cz|com|sk|hu|pl)\/(?:[\w-\.]+\/|)([\w-\.]+\/\d{5,})/,
  3403. 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,
  3404. resDeadRegex: /<span style="color:gray">.*?<\/span> - <strong>/g,
  3405. resUnavaRegex: null
  3406. });
  3407. }
  3408. });
  3409. }
  3410. /**
  3411. * Displays check result
  3412. * @param {Array} Array of links or link fragments.
  3413. * @param {String} Check result status -> ['alive_link'|'adead_link'|'unava_link']
  3414. */
  3415. function DisplayTheCheckedLinks(links, resultStatus)
  3416. {
  3417. //(a[href*=link_1], a[href*=link_2], ..., a[href*=link_n])
  3418. var $links = $('a[href*="' + links.join('"], a[href*="') + '"]');
  3419. if (Do_not_linkify_DL_links)
  3420. { //TODO into separate jQuery function
  3421. $links.replaceWith(function(){
  3422. return '<span href="' + this.href + '">' + $(this).text() + '</span>';
  3423. });
  3424. $links = $('span[href*="' + links.join('"], span[href*="') + '"]');
  3425. }
  3426. $links.removeClass().addClass(resultStatus);
  3427. $links.each(function() {
  3428. this.href = Ref_anonymize_service + $(this).attr("href");
  3429. });
  3430. switch(resultStatus)
  3431. {
  3432. case "alive_link": cLinksAlive += $links.length;
  3433. if (Display_tooltip_info) $links.mouseover(displayTooltipInfo);
  3434. break;
  3435. case "adead_link": cLinksDead += $links.length;
  3436. if (Display_tooltip_info) $links.mouseover(displayTooltipError);
  3437. break;
  3438. case "unava_link": cLinksUnava += $links.length; break;
  3439. default:
  3440. }
  3441. cLinksProcessed += $links.length;
  3442. }
  3443. }
  3444. // starts bulkchecking
  3445. //
  3446. // params
  3447. // filterId [string] restricts link detection with passed id attribute
  3448. function startBulkCheck(filterId)
  3449. {
  3450. var cHosts = bulkHosts.length;
  3451. if (cHosts == 0) //no filehostings selected
  3452. return;
  3453. // STEP 1 linkify the links
  3454. var linkifyRegex = '';
  3455. var hostIdx = cHosts;
  3456. while(hostIdx--)
  3457. {
  3458. linkifyRegex += bulkHosts[hostIdx].linkRegex + "|";
  3459. }
  3460. linkifyRegex = linkifyRegex.replace(/\|$/, '');
  3461. linkify(linkifyRegex);
  3462. //
  3463. //STEP 2 detect link objects
  3464. var xpathAll = '';
  3465. var hostIdx = cHosts;
  3466. while(hostIdx--)
  3467. {
  3468. xpathAll += bulkHosts[hostIdx].xpath + "|";
  3469. }
  3470. xpathAll = xpathAll.replace(/\]\|\/\/a\[/g, " or ");
  3471. xpathAll = xpathAll.replace(/\]\|/, ')]');
  3472. if (filterId != null) //insert id restriction in the xpath
  3473. {
  3474. xpathAll = xpathAll.replace(/\[/, "[@class='" + filterId + "' and (");
  3475. }
  3476. else
  3477. {
  3478. xpathAll = xpathAll.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  3479. }
  3480. var links = document.evaluate(xpathAll, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  3481. if (filterId == null)
  3482. {
  3483. cLinksTotal += links.snapshotLength;
  3484. }
  3485. //
  3486. //STEP 3 bind links with hostings
  3487. var linkIdx = links.snapshotLength;
  3488. var href = null;
  3489. if (linkIdx == 0) // no links found
  3490. return;
  3491. var name;
  3492. while (linkIdx--)
  3493. {
  3494. href = links.snapshotItem(linkIdx).href;
  3495. try // DO NOT REMOVE, filters crap that went through xpath detection
  3496. {
  3497. name = gimmeHostName(href);
  3498. if (href.match(bulkHostNames[name].linkRegexObject) != null)
  3499. bulkHostNames[name].links.push(href);
  3500. }
  3501. catch(e)
  3502. {
  3503.  
  3504. }
  3505. }
  3506. //
  3507. //STEP 4 process the links for each filehosting
  3508. var hostIdx = cHosts;
  3509. var host;
  3510. var m,n;
  3511. var arr;
  3512. while (hostIdx--)
  3513. {
  3514. host = bulkHosts[hostIdx];
  3515. arr = host.links;
  3516. if (arr.length == 0) //no links for this hosting, skip
  3517. {
  3518. continue;
  3519. }
  3520. //links match corrections
  3521. if (host.corrMatch != null)
  3522. {
  3523. var idx = arr.length;
  3524. while (idx--)
  3525. {
  3526. arr[idx] = arr[idx].match(host.corrMatch)[1];
  3527. }
  3528. }
  3529. //links replace corrections
  3530. if ((host.corrReplWhat != null) && (host.corrReplWith != null))
  3531. {
  3532. var idx = arr.length;
  3533. while (idx--)
  3534. {
  3535. arr[idx] = arr[idx].replace(host.corrReplWhat, host.corrReplWith);
  3536. }
  3537. }
  3538. m = arr.length;
  3539. n = host.blockSize;
  3540. if (m > n)
  3541. {
  3542. //insert block separators (RAND_STRING) into the array
  3543. for(var i = n; i < m; i += n + 1)
  3544. {
  3545. arr.splice(i, 0, RAND_STRING);
  3546. }
  3547. }
  3548.  
  3549. host.func.call({ links: arr.join(host.splitSeparator).split(RAND_STRING),
  3550. apiUrl: host.apiUrl,
  3551. postData: host.postData,
  3552. resLinkRegex: host.resLinkRegex,
  3553. resLiveRegex: host.resLiveRegex,
  3554. resDeadRegex: host.resDeadRegex,
  3555. resUnavaRegex: host.resUnavaRegex
  3556. });
  3557. //clean up
  3558. arr.length = 0;
  3559. }
  3560. //
  3561.  
  3562. function gimmeHostName(link)
  3563. {
  3564. return link.replace(/https?:\/\/.*?http(s)?:\/\//, "http$1://").match(/https?:\/\/(?:www\.|[\w\.])*?([\w-]+)\.(?:co\.uk|co\.nz|\w+)\//)[1];
  3565. }
  3566. }
  3567. function checkLinks(filterId)
  3568. {
  3569. startBulkCheck(filterId);
  3570. start(filterId);
  3571. }
  3572.  
  3573. /**
  3574. * Initialises progress box including event binding and CSS
  3575. */
  3576. function initProgressBox()
  3577. {
  3578. if ($("#warlc-progressbox").length > 0)
  3579. return;
  3580. //progressbox css change size and color of progress box
  3581. GM_addStyle("#warlc-progressbox {position:fixed; background:DimGray;" + Progress_box_background_color +
  3582. "; opacity:" + (Progress_box_opacity / 100) +
  3583. "; bottom:" + Progress_box_pos_bottom +
  3584. "px; right:" + Progress_box_pos_right +
  3585. "px; padding:5px; font-size:20px; font-weight:bold; cursor:default;}\
  3586. \
  3587. .warlc-progressbar {text-align:center; color: DimGray; height:2px; margin-bottom:2px;}\
  3588. \
  3589. .warlc-progressitem {}\
  3590. \
  3591. .alive {color:#00FF7F; " + Live_links_color +
  3592. "; background:transparent url(" + alive_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;} .dead {color:" + Dead_links_color +
  3593. "; background:transparent url(" + adead_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;} .unava {color: " + Temp_unavailable_links_color +
  3594. "; background:transparent url(" + unava_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;} .processing {color:Black; " + Container_links_color +
  3595. "; background:transparent url(" + processing_link_gif + ") no-repeat scroll 100% 50%;padding-right:15px;} .prem {color:" + Premium_links_color +
  3596. "; background:transparent url(" + prem_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;}"
  3597. );
  3598. //
  3599. $('body').append(' <div id="warlc-progressbox">\
  3600. <div class="warlc-progressbar"></div>\
  3601. <span class="warlc-progressitem alive"></span> - \
  3602. <span class="warlc-progressitem dead"></span> - \
  3603. <span class="warlc-progressitem unava"></span> - \
  3604. <span class="warlc-progressitem prem"></span> - \
  3605. <span class="warlc-progressitem processing"></span>\
  3606. </div>');
  3607. $('#warlc-progressbox').hide().click(function(){
  3608. clearInterval(intervalId);
  3609. $(this).hide();
  3610. return false;
  3611. });
  3612. $(".warlc-progressbar").progressbar({complete: function(){
  3613. $(this).fadeOut();
  3614. clearInterval(intervalId); //stop refreshing the stats
  3615. }
  3616. })
  3617. .one('progressbarchange', function(){$('#warlc-progressbox').show();});
  3618. }
  3619. /**
  3620. * Updates progress data in progress box
  3621. */
  3622. function updateProgress()
  3623. {
  3624. if (cLinksTotal) // some links were detected on page
  3625. {
  3626. var percProgress = Math.round(((100 / cLinksTotal) * cLinksProcessed));
  3627. var $progressItems = $('#warlc-progressbox > .warlc-progressitem');
  3628. $(".warlc-progressbar").progressbar('option', 'value', percProgress);
  3629. if ((cLinksTotal - cLinksProcessed) == 0)
  3630. {
  3631. $progressItems.first().text(cLinksAlive)
  3632. .next().text(cLinksDead)
  3633. .next().text(cLinksUnava)
  3634. .next().text(cLinksprem)
  3635. .next().remove();
  3636. $('#warlc-progressbox').html($('#warlc-progressbox').html().substr(0,$('#warlc-progressbox').html().lastIndexOf(">")+1));
  3637. $('#warlc-progressbox div:first-child').remove();
  3638. }
  3639. else
  3640. {
  3641. $progressItems.first().text(cLinksAlive)
  3642. .next().text(cLinksDead)
  3643. .next().text(cLinksUnava)
  3644. .next().text(cLinksprem)
  3645. .next().text(cLinksTotal - cLinksProcessed);
  3646. }
  3647. }
  3648. }
  3649.  
  3650. function check_all_links()
  3651. {
  3652. add_WARLC_style();
  3653.  
  3654. if (Show_progress_stats)
  3655. {
  3656. initProgressBox();
  3657. intervalId = setInterval(function(){updateProgress();}, Progress_box_refresh_rate);
  3658. }
  3659.  
  3660. startBulkCheck(null);
  3661. start(null);
  3662.  
  3663. if (!containers_processed)
  3664. {
  3665. processContainers();
  3666. }
  3667. }
  3668.  
  3669. //Copies all found dead links to clipboard - right now for Scriptish only
  3670. function copy_dead_to_clipboard()
  3671. {
  3672. initClipBoardTools();
  3673.  
  3674. var deadlinksxpath = "//.[@class='adead_link']";
  3675.  
  3676. var foundlinks = document.evaluate(deadlinksxpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  3677. var foundlinkstext = '';
  3678.  
  3679. var foundlinkIdx = foundlinks.snapshotLength;
  3680.  
  3681. while(foundlinkIdx--)
  3682. {
  3683. if (foundlinks.snapshotItem(foundlinkIdx).innerHTML != ' x')
  3684. foundlinkstext += foundlinks.snapshotItem(foundlinkIdx).innerHTML.replace(/\[\/hide:\w+\]/,"") + '\n';
  3685. }
  3686.  
  3687. unsafeWindow.copyToClipboard(foundlinkstext);
  3688. }
  3689.  
  3690. function toggle_autocheck()
  3691. {
  3692. var currentState = GM_getValue("Autocheck", false);
  3693. GM_setValue("Autocheck", !currentState);
  3694.  
  3695. if (currentState == true)
  3696. {
  3697. sendMessage('Autocheck disabled', 'red');
  3698. }
  3699. else
  3700. {
  3701. sendMessage('Autocheck enabled', 'SpringGreen');
  3702. }
  3703. }
  3704. function toggle_Enable_Anonymizer()
  3705. {
  3706. var currentState = GM_getValue("Enable_Anonymizer", false);
  3707. GM_setValue("Enable_Anonymizer", !currentState);
  3708.  
  3709. if (currentState == true)
  3710. {
  3711. GM_setValue("Ref_anonymize_service", "");
  3712. sendMessage('Anonymizer Disabled', 'red');
  3713. }
  3714. else
  3715. {
  3716. GM_setValue("Ref_anonymize_service", "http://hiderefer.com/?");
  3717. sendMessage('Anonymizer Enabled', 'SpringGreen');
  3718. }
  3719. }
  3720.  
  3721. function KeyDownHandler(event)
  3722. {
  3723. var kcode = (event.keyCode) ? event.keyCode : event.which;
  3724. if (event.ctrlKey && event.altKey)
  3725. {
  3726. switch(kcode)
  3727. {
  3728. case 65 : check_all_links(); break;
  3729. case 67 : configuration(); break;
  3730. case 68 : copy_dead_to_clipboard(); break;
  3731. case 87 : toggle_autocheck(); break;
  3732. case 90 : toggle_Enable_Anonymizer(); break;
  3733. }
  3734. }
  3735. }
  3736.  
  3737. //
  3738. //
  3739. // SCRIPT EXECUTION START POINT
  3740. //
  3741. //
  3742. // Safari specific GM_getResourceText override
  3743. if (navigator.userAgent.indexOf('Safari') != -1 && navigator.userAgent.indexOf('Chrome') == -1)
  3744. {
  3745. GM_getResourceText = function(res) {
  3746. var $cssText = GM_getValue("jquery_css", "");
  3747. if ($cssText == "")
  3748. {
  3749. GM_xmlhttpRequest(
  3750. {
  3751. method: 'GET',
  3752. url: 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css',
  3753. onload: function (result)
  3754. {
  3755. GM_setValue("jquery_css", result.responseText);
  3756. window.location.reload();
  3757. }
  3758. });
  3759. }
  3760. else
  3761. {
  3762. return $cssText;
  3763. }
  3764. }
  3765. }
  3766. var jQueryUICSS = GM_getResourceText("jQueryUICSS");
  3767. GM_addStyle(jQueryUICSS);
  3768. //init the stuff
  3769. setVariables();
  3770. initBulkCheck();
  3771. //init info boxes
  3772. messageBox.style.position = 'fixed';
  3773. messageBox.style.top = '20px';
  3774. messageBox.style.left = '10px';
  3775. messageBox.style.opacity = '0.85';
  3776. messageBox.style.background = 'DimGray';
  3777. messageBox.style.fontSize = '36px';
  3778. document.body.appendChild(messageBox);
  3779.  
  3780. //register GM menu commands & keyboard shortcut event handler
  3781. if (Keyboard_functions)
  3782. {
  3783. $(document).keydown(KeyDownHandler);
  3784. GM_registerMenuCommand("[W.A.R. Links Checker] Configuration (" + first_key_keycodename + "+" + second_key_keycodename + "+" + String.fromCharCode(CONFIGURATION_KEYCODE) + ")", configuration);
  3785. 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);
  3786. }
  3787. else
  3788. {
  3789. GM_registerMenuCommand("[W.A.R. Links Checker] Configuration", configuration);
  3790. GM_registerMenuCommand("[W.A.R. Links Checker] Check The Links In This Page", check_all_links);
  3791. }
  3792.  
  3793. //start linkchecking
  3794. if (Autocheck)
  3795. {
  3796. $(document).ready(check_all_links);
  3797. }
  3798.  
  3799. //
  3800. //
  3801. // SCRIPT EXECUTION END POINT
  3802. //
  3803. //
  3804.  
  3805. //shows configuration box
  3806. function configuration()
  3807. {
  3808.  
  3809. //prevent multiple creating of config window
  3810. if ($("#hideshow").length)
  3811. {
  3812. $("#hideshow").show();
  3813. return;
  3814. }
  3815.  
  3816. var configcss = '\
  3817. .popup_block .popup fieldset{\
  3818. padding: 1%;\
  3819. border-style: solid;\
  3820. border-width: 1px;\
  3821. border-color: gray;\
  3822. margin-bottom: 1px;\
  3823. }\
  3824. #h3hideshowtitle{\
  3825. font-size: 2em;\
  3826. }\
  3827. #h3hideshow{\
  3828. font-size: 1.5em;\
  3829. }\
  3830. #imghideshow {\
  3831. border: none;\
  3832. }\
  3833. #plusimage{\
  3834. display:inline;\
  3835. }\
  3836. #hideshow {\
  3837. position: fixed;\
  3838. width: 100%;\
  3839. height: 100%;\
  3840. top: 0;\
  3841. left: 0;\
  3842. font-size:12px;\
  3843. z-index:2147483645;\
  3844. text-align:left;\
  3845. }\
  3846. #fade {\
  3847. background: #000;\
  3848. position: fixed;\
  3849. width: 100%;\
  3850. height: 100%;\
  3851. opacity: .80;\
  3852. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";\
  3853. left: 0;\
  3854. z-index: 10;\
  3855. }\
  3856. .popup_block {\
  3857. font-family:verdana;\
  3858. color:black;\
  3859. background: #ddd;\
  3860. padding: 10px 20px;\
  3861. border: 2px solid DarkOrange;\
  3862. float: left;\
  3863. width: 700px;\
  3864. position: absolute;\
  3865. top: 7%;\
  3866. left: 50%;\
  3867. bottom: 7%;\
  3868. margin: 0 0 0 -350px;\
  3869. -moz-border-radius:10px;\
  3870. z-index: 100;\
  3871. \
  3872. }\
  3873. .popup_block .popup {\
  3874. float: left;\
  3875. width: 100%;\
  3876. background: #fff;\
  3877. margin: 10px 0;\
  3878. padding: 0px 0 0px;\
  3879. border-left: 1px solid #bbb;\
  3880. border-top: 1px solid #bbb;\
  3881. border-right: 1px solid #bbb;\
  3882. }\
  3883. #h3hideshow{\
  3884. margin: 1px 0 0px;\
  3885. padding: 1px 10px;\
  3886. border-bottom: 1px solid #bbb;\
  3887. font-size: 1.5em;\
  3888. font-weight: normal;\
  3889. cursor:pointer;\
  3890. background:#DDDDDD none repeat scroll 0 0;\
  3891. }\
  3892. #h3hideshow:hover{\
  3893. background:#C0BEBE none repeat scroll 0 0;\
  3894. }\
  3895. #h3hideshowtitle{\
  3896. margin: 2px 0 0px;\
  3897. padding: 7px 10px;\
  3898. border-bottom: 1px solid #bbb;\
  3899. font-size: 1.5em;\
  3900. font-weight: normal;\
  3901. }\
  3902. .popup_block .popup a {\
  3903. color:DarkSkyBlue;\
  3904. text-decoration:none;\
  3905. }\
  3906. .popup p {\
  3907. padding: 1px 10px;\
  3908. margin: 0px 0;\
  3909. -x-system-font:none;\
  3910. font-family:verdana,geneva,lucida,"lucida grande",arial,helvetica,sans-serif;\
  3911. font-size:10pt;\
  3912. font-size-adjust:none;\
  3913. font-stretch:normal;\
  3914. font-style:normal;\
  3915. font-variant:normal;\
  3916. font-weight:normal;\
  3917. line-height:normal;\
  3918. }\
  3919. #sites {\
  3920. padding: 1px 10px;\
  3921. margin: 0px 0;display:inline-block;width:16em;\
  3922. }\
  3923. #dev_ver {\
  3924. color: #00FF00;\
  3925. background: Black;\
  3926. text-align: right;\
  3927. }\
  3928. #sites_suspended {\
  3929. padding: 1px 10px;\
  3930. margin: 0px 0;display:inline-block;width:16em;\
  3931. text-decoration: line-through;\
  3932. }\
  3933. .popup img.cntrl {\
  3934. position: absolute;\
  3935. right: -15px;\
  3936. top: -15px;\
  3937. }\
  3938. #bulk {\
  3939. font-size:8pt;\
  3940. color:orange;\
  3941. padding: 1px 10px;\
  3942. margin: 0px 0;\
  3943. display:inline-block;\
  3944. width:100px;\
  3945. }\
  3946. #note {\
  3947. font-size:7pt;\
  3948. color:gray;\
  3949. padding: 1px 10px;\
  3950. margin: 0px 0;display:inline-block;\
  3951. min-width:100px;\
  3952. }\
  3953. #rednote {\
  3954. font-size:7pt;\
  3955. color:red;\
  3956. padding: 1px 10px;\
  3957. margin: 0px 0;display:inline-block;\
  3958. }\
  3959. #configinfo {\
  3960. font-size:8pt;\
  3961. color:gray;\
  3962. padding: 1px 10px;\
  3963. margin: 0px 0;display:inline-block;width:60em;\
  3964. }\
  3965. #refAnonymizer, #inputColorLive, #inputColorprem, #hostSearchBox2, #hostSearchBox, #inputColorDead, #inputColorTemp, #inputColorCont, #selectAllButton, #selectNoneButton, #invertButton, #selectAllButton2, #selectNoneButton2, #invertButton2 {\
  3966. color:black;\
  3967. border-style: solid;\
  3968. border-width: 1px;\
  3969. border-color: gray;\
  3970. }\
  3971. #h3hideshowcontent {\
  3972. min-height:220px;\
  3973. max-height:220px;\
  3974. overflow:auto;\
  3975. display: none;\
  3976. padding: 10px 10px;\
  3977. }\
  3978. #specinfo{\
  3979. font-size:14px;\
  3980. }\
  3981. .warlc-ui-tab {\
  3982. height:300px;\
  3983. overflow:auto;\
  3984. }\
  3985. #warlcsitelist2, #warlcsitelist1 {\
  3986. height:220px;\
  3987. border-top: 1px solid #ddd;\
  3988. padding-top: 5px;\
  3989. overflow:auto;\
  3990. }\
  3991. input:hover+label {\
  3992. background:#F1F77C;\
  3993. font-size:110%;\
  3994. }\
  3995. ';
  3996.  
  3997. GM_addStyle(configcss);
  3998.  
  3999. var customRulesRefHTML =
  4000. '\
  4001. <br>\
  4002. A custom rule consists of <b>commands</b>. A command must be on its own line and in this form:<br>\
  4003. <b>@keyword</b> <i>parameter</i>\
  4004. <br><br>\
  4005. 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. \
  4006. <br><br>\
  4007. 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.\
  4008. 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.\
  4009. 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.\
  4010. 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,\
  4011. but all commands until the next valid @customrule are ignored.<br><br>\
  4012. Available forms and types:\
  4013. <ul>\
  4014. <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.\
  4015. <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.\
  4016. <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.\
  4017. <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.\
  4018. </ul>\
  4019. Other available commands:<br>\
  4020. (Note: There can be more than 1 (up to 10) of these commands per rule. In that case, any of them will work.)\
  4021. <ul>\
  4022. <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.\
  4023. It can also specify multiple (up to 10) Top Level Domains (.com, .net etc.)<br>\
  4024. <ul>examples:<br>\
  4025. <li>good: <i>filehost.com/download/</i><br>\
  4026. <li>good: <i>download.filehost.net/?d=</i><br>\
  4027. <li>good: <i>filehost. com net co.uk /</i> - multiple TLDs (note the spaces before, between and after TLDs)<br>\
  4028. <li>ok: <i>filehost.com/</i> - works, but will also find links like filehost.com/login etc. Sometimes it\'s unavoidable though.<br>\
  4029. <li>bad: <i>d8523.filehost.com/</i> - d8523 probably is not constant<br>\
  4030. <li>bad: <i>filehost.com/3bfiq5d1</i> - 3bfiq5d1 probably is not constant<br>\
  4031. <li>bad: <i>filehost.com</i> - no slash<br>\
  4032. </ul>\
  4033. \
  4034. <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.\
  4035. 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 \
  4036. &lt;div&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;p&gt; even if there are new lines, tabulators etc.\
  4037. <li><b>@deadmatch</b> <i>pattern</i> - ignored for OBSOLETE, required for others. (For HEADERS some servers return 404 Error \
  4038. 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.)\
  4039. Two spaces again match any whitespace.\
  4040. <li><b>@unavamatch</b> <i>pattern</i> - optional, ignored for OBSOLETE and HEADERS. If found, the link is deemed temporarily unavailable.\
  4041. Two spaces again match any whitespace.\
  4042. <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. \
  4043. <li><b>@deadlink</b> <i>url</i> - optional. Example dead link.\
  4044. </ul>\
  4045. \
  4046. ';
  4047.  
  4048. //close image and css taken from = http://www.sohtanaka.com/web-design/examples/css-popup icon_close.png;
  4049. var configurationinnerHTML =
  4050. '<div id="fade"></div>\
  4051. <div class="popup_block">\
  4052. <div class="popup">\
  4053. <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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RcAN1z6Awuy7zs7O8WxjRtFvDDH2JhJG4ClCo1AtUGq59tEz9q1UlGTrK2t7QL2/ATYKJsDUTUwQzZgVAKrSrI89K+dxcXFzbiJUR/K3cmTJ2nWwYNUcfQoeS+cJcdwQGZeIjuHAmV30KWGBjq/YgUtWLiQqquryWazUXt7u3/16tX7IIYbF50D+vjWwUXGJLQYlxZZDdx+v//zsrKyZtnX0ONwcAnWUygUQhtMSELeGK2HCgoKqKSkhNDZ5fj+/fvPNTU1teDvBQW/IuMWEx29g6rkYSv5zlfu8Xgae3p6fGKaD1z4N0i/xtqPALR/WgssAuawK1XNto7eaZSVVhVPl6ruM9Baiuvr6+fBzRUul2sWxPKQWA5Yqg0NDekIwfXe3t4h3EfZ10PAVWXRIMBj16VlRvFLj7smTiB1qArPxPnKcrdqpE5VG0lVEC6EYdUIgsp9ITXGc0mzaU26CGeQampTp7I4W8GlXK/R2MUxoTaOZMAk0jNv4VNe9RXpRGK7IrIrD2QS6mrzpCKfSDRK8q8AAwCF/L1ktjcKFAAAAABJRU5ErkJggg%3D%3D"/></a>\
  4054. <div id="h3hideshowtitle"><img style="height:1.2em;" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3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2alN1B7AdOAcMeT29HfiZJ5oZ3sHrgAeBvcCANzBsHu7Ohe2/AwDnNnxcIIMIUgAAAABJRU5ErkJggg=="></img>&nbsp;W.A.R. Links Checker Customized Premium Link version Configuration</div>\
  4055. <div id="warlc-conf-tabs">\
  4056. <ul>\
  4057. <li><a href="#tabs-1">Filehostings</a></li>\
  4058. <li><a href="#tabs-2">Containers</a></li>\
  4059. <li><a href="#tabs-5">Custom rules</a></li>\
  4060. <li><a href="#tabs-3">Settings</a></li>\
  4061. <li><a href="#tabs-4">About</a></li>\
  4062. </ul>\
  4063. <div id="tabs-1" class="warlc-ui-tab">\
  4064. <div class="warlc-ui-buttonset">\
  4065. <input type="button" class="warlc-ui-select-all" value="Select All">\
  4066. <input type="button" class="warlc-ui-select-none" value="Select None">\
  4067. <input type="button" class="warlc-ui-select-invert" value="Invert">\
  4068. </div><br>\
  4069. <div>Search: <input type="textbox" id="hostSearchBox" value=""></div><br>\
  4070. <div id="warlcsitelist1"><span>Empty</span></div>\
  4071. </div>\
  4072. <div id="tabs-2" class="warlc-ui-tab">\
  4073. <div class="warlc-ui-buttonset">\
  4074. <input type="button" class="warlc-ui-select-all" value="Select All">\
  4075. <input type="button" class="warlc-ui-select-none" value="Select None">\
  4076. <input type="button" class="warlc-ui-select-invert" value="Invert">\
  4077. </div><br>\
  4078. <div>Search: <input type="textbox" id="hostSearchBox2" value=""></div><br>\
  4079. <div id="warlcsitelist2"><span>Empty</span></div>\
  4080. </div>\
  4081. <div id="tabs-5" class="warlc-ui-tab">\
  4082. <div class="warlcsettings">\
  4083. <fieldset><input type="checkbox" id="Custom_rules"> Enable custom rules <div id="bulk">EXPERIMENTAL</div></fieldset>\
  4084. <br>\
  4085. <div>Edit custom rules: \
  4086. <a href="#" id="showCustomRulesReference">(<b>Click here to show/hide the reference</b>)</a>\
  4087. <div id="customRulesReference" style="display:none;">'
  4088. + customRulesRefHTML + '\
  4089. </div>\
  4090. <textarea style="width:100%;height:200px;" id="Custom_rules_text"></textarea>\
  4091. </div>\
  4092. </div>\
  4093. </div>\
  4094. <div id="tabs-3" class="warlc-ui-tab">\
  4095. <div class="warlcsettings">\
  4096. <fieldset>\
  4097. <p><input type="checkbox" id="Keyboard_functions"> Enable keyboard shortcuts</p>\
  4098. <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>\
  4099. </fieldset>\
  4100. <fieldset>\
  4101. <p><input type="checkbox" id="Color_DL_links"> Color DL links</p>\
  4102. <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>\
  4103. <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>\
  4104. <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>\
  4105. <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>\
  4106. <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>\
  4107. <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>\
  4108. <p><input type="checkbox" id="Show_line_through_in_dead_links"> Show line through in dead links</p>\
  4109. <p><input type="checkbox" id="Show_black_background_in_DL_links"> Show black background in DL links</p>\
  4110. <p><input type="checkbox" id="Do_not_linkify_DL_links"> Do NOT linkify DL links</p>\
  4111. <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>\
  4112. <p><input type="checkbox" id="Display_full_links_in_link_containers"> Display full links in link containers</p><br>\
  4113. <fieldset>\
  4114. <p><input type="radio" name="warlciconset" value="0"> No icons</p>\
  4115. <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>\
  4116. <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>\
  4117. <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>\
  4118. </fieldset>\
  4119. </fieldset>\
  4120. <fieldset>\
  4121. <div id="sites"><input type="checkbox" id="Autocheck"> Autocheck</div><br><div id="configinfo">Script starts check automatically.</div><br>\
  4122. </fieldset>\
  4123. <fieldset>\
  4124. <div id="sites"><input type="checkbox" id="Show_progress_stats"> Show progress stats</div><br>\
  4125. </fieldset>\
  4126. <fieldset>\
  4127. <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>\
  4128. </fieldset>\
  4129. <fieldset>\
  4130. <p><input type="checkbox" id="Enable_Anonymizer"> Enable Anonymizer</div><div id="bulk">EXPERIMENTAL Note: Checkbox does not work use CTRL+ALT+Z.</p>\
  4131. <div id="sites"><label for="refAnonymizer">Refererer anonymizing service</label><input type="text" id="refAnonymizer" value="' + Ref_anonymize_service + '"></div>\
  4132. </fieldset>\
  4133. </div>\
  4134. </div>\
  4135. <div id="tabs-4" class="warlc-ui-tab">\
  4136. <p><b>Author:</b> <a href="http://www.mentalps.5gbfree.com/viewtopic.php?f=2&t=6">mentalps</a></p>\
  4137. <br />\
  4138. <p><b>Currently supported:</b><br>\
  4139. Filehostings: ' + allHostNames.length + '<br />\
  4140. Containers: ' + allContainerNames.length + '<br />\
  4141. Obsolete sites: ' + allObsoleteNames.length + '<br /></p>\
  4142. <br />\
  4143. <p><b>Based on:</b><br>\
  4144. <a href="http://userscripts-mirror.org/scripts/show/125631.html">W.A.R. Links Checker - Dev</a></p>\
  4145. <br />\
  4146. <p><b>Uses:</b></p>\
  4147. <p>adam_3\'s <a href="http://userscripts-mirror.org/scripts/show/2254">Linkify ting</a> (modified)</p>\
  4148. <p><a href="http://jquery.com/">jQuery</a> JavaScript Library</p>\
  4149. <br />\
  4150. <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>\
  4151. </div>\
  4152. </div>\
  4153. </div>\
  4154. </div>';
  4155. $('body').append('<div id="hideshow">' + configurationinnerHTML + '</div>');
  4156. $("#warlc-conf-tabs").tabs({ fx: { opacity: 'toggle', duration: 'fast' } });
  4157. $("#imghideshow").click(function(event){$("#hideshow").hide(); event.preventDefault();});
  4158. var elmHostList = document.getElementById("warlcsitelist1");
  4159. var elmContainerList = document.getElementById("warlcsitelist2");
  4160. buildSettings();
  4161. buildSitelist("", allHostNames, elmHostList);
  4162. buildSitelist("", allContainerNames, elmContainerList);
  4163. if (DEBUG_MODE)
  4164. {
  4165. //log all sites availability status
  4166. diagSites();
  4167. }
  4168. //handler for checkbox state change
  4169. function changeConfiguration(e)
  4170. {
  4171. var element = e.target;
  4172.  
  4173. if (element.type == 'checkbox')
  4174. {
  4175. if (element.checked == 1)
  4176. {
  4177. GM_setValue(element.id, true);
  4178. }
  4179. else
  4180. {
  4181. GM_setValue(element.id, false);
  4182. }
  4183.  
  4184. }
  4185. setVariables();
  4186. }
  4187.  
  4188. //Selects all filehosting checkboxes
  4189. function selectAll()
  4190. {
  4191. $(":checkbox:visible:not(:checked)").prop("checked",true)
  4192. .each(function(index, element){GM_setValue(this.id, true)});
  4193. }
  4194.  
  4195. //Deselects all filehosting checkboxes
  4196. function selectNone()
  4197. {
  4198. $(":checkbox:visible:checked").prop("checked",false)
  4199. .each(function(index, element){GM_setValue(this.id, false)});
  4200. }
  4201.  
  4202. //Inverts filehosting checkboxes selection
  4203. function selectInvert()
  4204. {
  4205. var $checked = $(":checkbox:visible:checked");
  4206. var $unchecked = $(":checkbox:visible:not(:checked)");
  4207. $unchecked.prop("checked",true)
  4208. .each(function(index, element){GM_setValue(this.id, true)});
  4209. $checked.prop("checked",false)
  4210. .each(function(index, element){GM_setValue(this.id, false)});
  4211. }
  4212. //toggles anonymizer on off
  4213. function Enable_Anonymizer()
  4214. {
  4215. var $checked = $(":checkbox:visible:checked");
  4216. var $unchecked = $(":checkbox:visible:not(:checked)");
  4217. $unchecked.prop("checked",true)
  4218. .each(function(index, element){GM_setValue(this.id, true)});
  4219. $checked.prop("checked",false)
  4220. .each(function(index, element){GM_setValue(this.id, false)});
  4221. }
  4222.  
  4223. function changeRefAnonymizer(){
  4224. GM_setValue("Ref_anonymize_service", $("#refAnonymizer").attr("value"));
  4225. }
  4226.  
  4227. //Sets live links color
  4228. function changeColorLive()
  4229. {
  4230. var inColorLive = document.getElementById("inputColorLive");
  4231. inColorLive.style.background = inColorLive.value;
  4232. GM_setValue("Live_links_color", inColorLive.value);
  4233. }
  4234.  
  4235. //Sets dead links color
  4236. function changeColorDead()
  4237. {
  4238. var inColorDead = document.getElementById("inputColorDead");
  4239. inColorDead.style.background = inColorDead.value;
  4240. GM_setValue("Dead_links_color", inColorDead.value);
  4241. }
  4242.  
  4243. //Sets temp. unavailable links color
  4244. function changeColorTemp()
  4245. {
  4246. var inColorTemp = document.getElementById("inputColorTemp");
  4247. inColorTemp.style.background = inColorTemp.value;
  4248. GM_setValue("Temp_unavailable_links_color", inColorTemp.value);
  4249. }
  4250.  
  4251. //Sets temp. unavailable links color
  4252. function changeColorCont()
  4253. {
  4254. var inColorCont = document.getElementById("inputColorCont");
  4255. inColorCont.style.background = inColorCont.value;
  4256. GM_setValue("Container_links_color", inColorCont.value);
  4257. }
  4258. //Sets premium. links color
  4259. function changeColorprem()
  4260. {
  4261. var inColorprem = document.getElementById("inputColorprem");
  4262. inColorprem.style.background = inColorprem.value;
  4263. GM_setValue("Premium_links_color", inColorprem.value);
  4264. }
  4265.  
  4266. //Diagnose sites for availability
  4267. function diagSites()
  4268. {
  4269. var boxes = document.getElementById("warlcsitelist1").getElementsByTagName("input");
  4270.  
  4271. for (var i = 0, n = boxes.length - 1; i < n; i++)
  4272. {
  4273. if (boxes[i].type == "checkbox")
  4274. {
  4275. checkAvailability(boxes[i]);
  4276. }
  4277. }
  4278.  
  4279. boxes = document.getElementById("warlcsitelist2").getElementsByTagName("input");
  4280.  
  4281. for (var i = 0, n = boxes.length - 1; i < n; i++)
  4282. {
  4283. if (boxes[i].type == "checkbox")
  4284. {
  4285. checkAvailability(boxes[i]);
  4286. }
  4287. }
  4288.  
  4289. function checkAvailability(cbElm)
  4290. {
  4291. var cb = cbElm;
  4292. GM_xmlhttpRequest(
  4293. {
  4294. method: 'HEAD',
  4295. url: 'http://' + cb.nextSibling.textContent.replace(' ', ''),
  4296. headers: {
  4297. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  4298. 'Accept': 'text/xml',
  4299. 'Referer': ""
  4300. },
  4301. onload: function (result)
  4302. {
  4303. if (result.status != 200)
  4304. {
  4305. GM_log(cb.nextSibling.textContent + ' --- status: [' + result.status + '] ' + result.statusText + ', final url: ' + result.finalUrl);
  4306. }
  4307. },
  4308. onerror: function (result)
  4309. {
  4310. if (result.status != 200)
  4311. {
  4312. GM_log(cb.nextSibling.textContent + ' --- status: [' + result.status + '] ' + result.statusText + ', final url: ' + result.finalUrl);
  4313. }
  4314. }
  4315. });
  4316. }
  4317. }
  4318. function buildSettings()
  4319. {
  4320. $(".warlcsettings :checkbox").each(function(){
  4321. $(this).prop("checked", GM_getValue($(this).attr("id")))
  4322. .click(function(e){
  4323. GM_setValue($(this).attr("id"), $(this).prop("checked"));
  4324. setVariables();
  4325. });
  4326. })
  4327. }
  4328. //Dynamic build of host list
  4329. //param search [string] searches for hostnames matching search substring
  4330. //param siteNames [array] array of site names
  4331. //param targetNode [DOM Node] where the list should be built
  4332. // first child node is replaced
  4333. function buildSitelist(search, siteNames, targetNode)
  4334. {
  4335. var searchRegex = new RegExp("\\|?([\\w\\.-]*" + search.replace(/\./g,"\\.").replace(/-/g, "\\-") + "[\\w\\.-]*)\\|?", "i");
  4336. var $targetNode = $(targetNode).empty();
  4337. var searchedSite = "";
  4338. $.each(siteNames, function(i, site){
  4339. if (searchedSite = site.match(searchRegex))
  4340. {
  4341. var baseSite = site.replace(/\|.+/, ""); //filehosting main domain
  4342. //ensuring backward compatibility with the rest of code, to be refactored later
  4343. var oldRSLCvalue = "Check_" + baseSite.replace(/\|.+/, "").replace(/\./g,"_dot_").replace(/-/g, "_dash_") + "_links";
  4344. //
  4345. $targetNode.append('<input type="checkbox" id="' + oldRSLCvalue +'" />\
  4346. <label for="' + oldRSLCvalue + '">' + searchedSite[1] + '</label>' +
  4347. ((searchedSite[1] != baseSite) ? ('<div id="note"> ( ~ ' + baseSite + ' )</div>') : (""))
  4348. );
  4349. $("#" + oldRSLCvalue).prop("checked", GM_getValue(oldRSLCvalue, false))
  4350. .change(changeConfiguration);
  4351. $targetNode.append('<br />');
  4352. }
  4353. });
  4354. $targetNode.append("<hr>");
  4355. //obsolete hosts checkbox
  4356. $targetNode.append('<input type="checkbox" id="Obsolete_file_hosts" /><label for="Obsolete_file_hosts">Obsolete file hosts</label>');
  4357. $("#Obsolete_file_hosts").prop("checked", GM_getValue("Obsolete_file_hosts", false))
  4358. .change(changeConfiguration);
  4359. $targetNode.append('<br />');
  4360. var foundName = "";
  4361. $.each(allObsoleteNames, function(i, site){
  4362. if (foundName = allObsoleteNames[i].match(searchRegex))
  4363. {
  4364. $targetNode.append('<div id="note">' + foundName[1] + '</div>');
  4365. }
  4366. })
  4367. }
  4368. var hostSearchBox = document.getElementById("hostSearchBox");
  4369. hostSearchBox.addEventListener('keyup', function(){buildSitelist(hostSearchBox.value, allHostNames, elmHostList);}, false);
  4370. var hostSearchBox2 = document.getElementById("hostSearchBox2");
  4371. hostSearchBox2.addEventListener('keyup', function(){buildSitelist(hostSearchBox2.value, allContainerNames, elmContainerList);}, false);
  4372. $(".warlc-ui-select-all").click(selectAll).button();
  4373. $(".warlc-ui-select-none").click(selectNone).button();
  4374. $(".warlc-ui-select-invert").click(selectInvert).button();
  4375. $(".warlc-ui-buttonset").buttonset();
  4376. var inColorLive = document.getElementById("inputColorLive");
  4377. inColorLive.addEventListener('keyup', changeColorLive, false);
  4378.  
  4379. var inColorDead = document.getElementById("inputColorDead");
  4380. inColorDead.addEventListener('keyup', changeColorDead, false);
  4381.  
  4382. var inColorTemp = document.getElementById("inputColorTemp");
  4383. inColorTemp.addEventListener('keyup', changeColorTemp, false);
  4384.  
  4385. var inColorCont = document.getElementById("inputColorCont");
  4386. inColorCont.addEventListener('keyup', changeColorCont, false);
  4387. var inColorprem = document.getElementById("inputColorprem");
  4388. inColorprem.addEventListener('keyup', changeColorprem, false);
  4389. $("#refAnonymizer").change(changeRefAnonymizer);
  4390. //buttons and edit boxes init end
  4391.  
  4392. //icon sets radio buttons
  4393. var radioButtons = document.getElementsByName("warlciconset");
  4394. radioButtons[Icon_set].checked = "checked";
  4395.  
  4396. radioButtons[0].addEventListener("change", updateIconSet);
  4397. radioButtons[1].addEventListener("change", updateIconSet);
  4398. radioButtons[2].addEventListener("change", updateIconSet);
  4399. radioButtons[3].addEventListener("change", updateIconSet);
  4400. function updateIconSet()
  4401. {
  4402. GM_setValue("Icon_set", this.value * 1);
  4403. }
  4404. //
  4405. $('#showCustomRulesReference').click(function(e){
  4406. e.preventDefault();
  4407. $('#customRulesReference').toggle();
  4408. });
  4409. $('#Custom_rules_text')
  4410. .val(Custom_rules_text)
  4411. .change(saveCustomRules);
  4412. function saveCustomRules(e)
  4413. {
  4414. var cr = parseCustomRules(this.value);
  4415. if (cr.info.length)
  4416. 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, ' '));
  4417. GM_setValue('Custom_rules_text', this.value);
  4418. GM_setValue('last_custom_rules_nag', ''+new Date().getTime()); //reset nag
  4419. }
  4420. }
  4421.  
  4422. //begin standard link checking algorithm
  4423. function start(filterId)
  4424. {
  4425. var doNotLinkify = Do_not_linkify_DL_links;
  4426.  
  4427. // USER SELECTED FILE HOSTS INITIALIZATION START
  4428. var http_file_hosts = new Array(); //standard hostings
  4429. var http_file_hosts_coded = new Array(); //hostings which has to be decoded to obtain real checkable link
  4430. var http_file_hosts_obsolete = new Array(); //dead hostings
  4431. var http_file_hosts_headers_only = new Array(); //hostings with direct download, must be handled via headers only
  4432.  
  4433. initFileHosts();
  4434. initFileHostsHeadersOnly();
  4435. initFileHostsCustom(); //CustomRules
  4436. // USER SELECTED FILE HOSTS INITIALIZATION END
  4437.  
  4438. // LINKIFICATION START
  4439. var totalxpath = '';
  4440. var totalxpathcoded = '';
  4441. var totalxpathobsolete = '';
  4442. var totalxpathheadersonly = '';
  4443. var totalourls = '';
  4444.  
  4445. var filehostLen = http_file_hosts.length;
  4446. var filehostCodedLen = http_file_hosts_coded.length;
  4447. var filehostObsoleteLen = http_file_hosts_obsolete.length;
  4448. var filehostHeadersOnlyLen = http_file_hosts_headers_only.length;
  4449.  
  4450. var filehostIdx = filehostLen;
  4451. var filehostCodedIdx = filehostCodedLen;
  4452. var filehostObsoleteIdx = filehostObsoleteLen;
  4453. var filehostHeadersOnlyIdx = filehostHeadersOnlyLen;
  4454.  
  4455. if ((filehostIdx == 0) && (filehostCodedIdx == 0) && (filehostHeadersOnlyIdx == 0) && (filehostObsoleteIdx == 0))
  4456. return;
  4457.  
  4458. while (filehostIdx--)
  4459. {
  4460. totalourls += http_file_hosts[filehostIdx][0] + '|';
  4461. totalxpath += http_file_hosts[filehostIdx][4] + '|';
  4462. }
  4463.  
  4464. while (filehostCodedIdx--)
  4465. {
  4466. totalourls += http_file_hosts_coded[filehostCodedIdx][0] + '|';
  4467. totalxpathcoded += http_file_hosts_coded[filehostCodedIdx][3] + '|';
  4468. }
  4469.  
  4470. while (filehostObsoleteIdx--)
  4471. {
  4472. totalourls += http_file_hosts_obsolete[filehostObsoleteIdx][0] + '|';
  4473. totalxpathobsolete += http_file_hosts_obsolete[filehostObsoleteIdx][1] + '|';
  4474. }
  4475.  
  4476. while (filehostHeadersOnlyIdx--)
  4477. {
  4478. totalourls += http_file_hosts_headers_only[filehostHeadersOnlyIdx][0] + '|';
  4479. totalxpathheadersonly += http_file_hosts_headers_only[filehostHeadersOnlyIdx][3] + '|';
  4480. }
  4481.  
  4482. totalourls = totalourls.replace(/\|$/g, "");
  4483. //TODO: further refactoring needed
  4484. totalxpath = totalxpath.replace(/\]\|\/\/a\[/g, " or ");
  4485. totalxpath = totalxpath.replace(/\]\|/, ')]');
  4486. totalxpathcoded = totalxpathcoded.replace(/\]\|\/\/a\[/g, " or ");
  4487. totalxpathcoded = totalxpathcoded.replace(/\]\|/, ')]');
  4488. totalxpathobsolete = totalxpathobsolete.replace(/\]\|\/\/a\[/g, " or ");
  4489. totalxpathobsolete = totalxpathobsolete.replace(/\]\|/, ')]');
  4490. totalxpathheadersonly = totalxpathheadersonly.replace(/\]\|\/\/a\[/g, " or ");
  4491. totalxpathheadersonly = totalxpathheadersonly.replace(/\]\|/, ')]');
  4492. if (filterId != null) //insert id restriction in the xpath
  4493. {
  4494. totalxpath = totalxpath.replace(/\[/g, "[@class='" + filterId + "' and (");
  4495. totalxpathcoded = totalxpathcoded.replace(/\[/g, "[@class='" + filterId + "' and (");
  4496. totalxpathobsolete = totalxpathobsolete.replace(/\[/g, "[@class='" + filterId + "' and (");
  4497. totalxpathheadersonly = totalxpathheadersonly.replace(/\[/g, "[@class='" + filterId + "' and (");
  4498. }
  4499. else
  4500. {
  4501. totalxpath = totalxpath.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4502. totalxpathcoded = totalxpathcoded.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4503. totalxpathobsolete = totalxpathobsolete.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4504. totalxpathheadersonly = totalxpathheadersonly.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4505. }
  4506. linkify(totalourls);
  4507. //LINKIFICATION END
  4508. //ENCRYPTED LINKS PROCESSING START
  4509. if (http_file_hosts_coded.length > 0)
  4510. {
  4511. var linksCoded = document.evaluate(totalxpathcoded, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4512.  
  4513. // decrypt coded links (redirects, link protectors etc.)
  4514. if (linksCoded.snapshotLength > 0)
  4515. {
  4516. var link;
  4517. var reallinkreg;
  4518. var reallinkcorrection;
  4519.  
  4520. if (filterId == null)
  4521. {
  4522. cLinksTotal += linksCoded.snapshotLength;
  4523. }
  4524.  
  4525. var y = linksCoded.snapshotLength - 1;
  4526. do
  4527. {
  4528. // linksCoded.snapshotItem(y).id = 'processing_link';
  4529. link = linksCoded.snapshotItem(y);
  4530. filehostIdx = filehostCodedLen;
  4531. while (filehostIdx--)
  4532. {
  4533. if (link.href.match(http_file_hosts_coded[filehostIdx][0]))
  4534. {
  4535. link.href = link.href.replace(/http:\/\/.*?(?:\?|=)http:\/\//, 'http://');
  4536. reallinkreg = http_file_hosts_coded[filehostIdx][1];
  4537. reallinkcorrection = http_file_hosts_coded[filehostIdx][2];
  4538.  
  4539. decurl(link, reallinkreg, reallinkcorrection);
  4540. break;
  4541. }
  4542. }
  4543. }
  4544. while (y--);
  4545. }
  4546. }
  4547. //ENCRYPTED LINKS PROCESSING END
  4548.  
  4549. //STANDARD LINKCHECKING START
  4550. if (http_file_hosts.length > 0)
  4551. {
  4552. var lianks = document.evaluate(totalxpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4553.  
  4554. if (filterId == null)
  4555. {
  4556. cLinksTotal += lianks.snapshotLength;
  4557. }
  4558.  
  4559. if (lianks.snapshotLength > 0)
  4560. {
  4561. var link;
  4562.  
  4563. var URL = "";
  4564. var name = "";
  4565. var isAliveRegex = "";
  4566. var isDeadRegex = "";
  4567. var isUnavaRegex = "";
  4568. var ispremRegex = "";
  4569. var tryLoop = false;
  4570.  
  4571. var y = lianks.snapshotLength;
  4572.  
  4573. while (y--)
  4574. {
  4575. link = lianks.snapshotItem(y);
  4576.  
  4577. filehostIdx = filehostLen;
  4578. while (filehostIdx--)
  4579. {
  4580. if (link.href.match(http_file_hosts[filehostIdx][0]))
  4581. {
  4582. link.href = link.href.replace(/http:\/\/.*?http:\/\//, 'http://'); //anonymizers
  4583. isAliveRegex = http_file_hosts[filehostIdx][1];
  4584. isDeadRegex = http_file_hosts[filehostIdx][2];
  4585. isUnavaRegex = http_file_hosts[filehostIdx][3];
  4586. ispremRegex = http_file_hosts[filehostIdx][6];
  4587. tryLoop = http_file_hosts[filehostIdx][5];
  4588.  
  4589. geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, tryLoop);
  4590.  
  4591. break;
  4592. }
  4593. }
  4594. }
  4595. }
  4596. }
  4597. //STANDARD LINKCHECKING END
  4598. //OBSOLETE FILE HOSTS PROCESSING START
  4599. if (filehostObsoleteLen > 0)
  4600. {
  4601. var obsoletelinks = document.evaluate(totalxpathobsolete, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4602.  
  4603. var obsoleteLink;
  4604.  
  4605. //check links
  4606. if (obsoletelinks.snapshotLength > 0)
  4607. {
  4608. var y = obsoletelinks.snapshotLength;
  4609.  
  4610. if (filterId == null)
  4611. {
  4612. cLinksTotal += y;
  4613. }
  4614.  
  4615. while (y--)
  4616. {
  4617. obsoleteLink = obsoletelinks.snapshotItem(y);
  4618.  
  4619. if (Display_tooltip_info)
  4620. {
  4621. obsoleteLink.warlc_error = 'Cause of error: <b>Obsolete filehosting.</b>';
  4622. }
  4623. displayTheCheckedLink(obsoleteLink, 'adead_link');
  4624. }
  4625. }
  4626. }
  4627. //OBSOLETE FILE HOSTS PROCESSING END
  4628.  
  4629. //DIRECT LINKCHECKING START
  4630. if (http_file_hosts_headers_only.length > 0)
  4631. {
  4632. var links = document.evaluate(totalxpathheadersonly, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4633.  
  4634. //check links
  4635. if (links.snapshotLength > 0)
  4636. {
  4637. var link;
  4638. var isAliveRegex;
  4639. var isDeadRegex;
  4640. var ispremRegex;
  4641.  
  4642. var y = links.snapshotLength;
  4643.  
  4644.  
  4645. if (filterId == null)
  4646. {
  4647. cLinksTotal += y;
  4648. }
  4649.  
  4650. while (y--)
  4651. {
  4652. // links.snapshotItem(y).id = 'processing_link';
  4653. link = links.snapshotItem(y);
  4654. filehostIdx = filehostHeadersOnlyLen;
  4655. while (filehostIdx--)
  4656. {
  4657. if (link.href.match(http_file_hosts_headers_only[filehostIdx][0]))
  4658. {
  4659. link.href = link.href.replace(/http:\/\/.*?(?:\?|=)http:\/\//, 'http://');
  4660. isAliveRegex = http_file_hosts_headers_only[filehostIdx][1];
  4661. isDeadRegex = http_file_hosts_headers_only[filehostIdx][2];
  4662. ispremRegex = http_file_hosts_headers_only[filehostIdx][3];
  4663.  
  4664. geturlHeader(link, isAliveRegex, isDeadRegex, ispremRegex);
  4665.  
  4666. break;
  4667. }
  4668. }
  4669. }
  4670.  
  4671. }
  4672. }
  4673. //DIRECT LINKCHECKING END
  4674.  
  4675.  
  4676. //finds the real url on the page, replaces link.href with it and calls geturl
  4677. function decurl(link, reallinkreg, reallinkcorrection)
  4678. {
  4679.  
  4680. GM_xmlhttpRequest(
  4681. {
  4682. method: 'GET',
  4683. url: link.href,
  4684. headers: {
  4685. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  4686. 'Accept': 'text/xml',
  4687. 'Referer': ""
  4688. },
  4689. onload: function (result)
  4690. {
  4691. // cLinksProcessed++;
  4692.  
  4693. var reallink = result.responseText.match(reallinkreg)[0];
  4694. reallink = reallink.replace(new RegExp(reallinkcorrection, "g"), "");
  4695.  
  4696. link.href = reallink;
  4697.  
  4698. var i = http_file_hosts.length - 1;
  4699. do
  4700. {
  4701. if ((reallink.match(http_file_hosts[i][0])))
  4702. {
  4703. link.href = link.href.replace(/http:\/\/.*?\?http:\/\//, 'http://');
  4704. var isAliveRegex = http_file_hosts[i][1];
  4705. var isDeadRegex = http_file_hosts[i][2];
  4706. var isUnavaRegex = http_file_hosts[i][3];
  4707. var ispremRegex = http_file_hosts[i][4];
  4708.  
  4709. geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, 50);
  4710.  
  4711. break;
  4712. }
  4713. }
  4714. while (i--);
  4715. }
  4716. });
  4717. }
  4718.  
  4719. function randUA()
  4720. {
  4721. //TODO
  4722. }
  4723. //Processes link
  4724. //
  4725. // [string] link link URL
  4726. // [string] isAliveRegex alive link regex
  4727. // [string] isDeadRegex dead link regex
  4728. // [string] isUnavaRegex unavailable link regex
  4729. // [string] ispremRegex premium link regex
  4730. // [boolean] tryLoop repeats request until succeeded
  4731. function geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, tryLoop)
  4732. {
  4733. GM_xmlhttpRequest(
  4734. {
  4735. method: 'GET',
  4736. url: link.href,
  4737. headers: {
  4738. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  4739. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  4740. 'Referer': ""
  4741. },
  4742. onload: function (result)
  4743. {
  4744. var res = result.responseText;
  4745. if (result.responseHeaders.match(/Content-Disposition: attachment; filename=/))//direct download, simple version
  4746. {
  4747. displayTheCheckedLink(link, 'alive_link');
  4748. return;
  4749. }
  4750.  
  4751. if (res.match(isAliveRegex))
  4752. {
  4753. displayTheCheckedLink(link, 'alive_link');
  4754. return;
  4755. }
  4756.  
  4757. if (res.match(isDeadRegex))
  4758. {
  4759. displayTheCheckedLink(link, 'adead_link');
  4760. return;
  4761. }
  4762.  
  4763. if (isUnavaRegex && res.match(isUnavaRegex))
  4764. {
  4765. displayTheCheckedLink(link, 'unava_link');
  4766. return;
  4767. }
  4768. if (res.match(ispremRegex))
  4769. {
  4770. displayTheCheckedLink(link, 'prem_link');
  4771. return;
  4772. }
  4773.  
  4774. var resStatus = result.status;
  4775.  
  4776. if (resStatus == 404)
  4777. {
  4778. displayTheCheckedLink(link, 'adead_link');
  4779. }
  4780. if (resStatus == 500 || resStatus == 503 || resStatus == 403) //not found/available/temp. unava
  4781. {
  4782. if (tryLoop)
  4783. {
  4784. //wait 1-5 seconds and repeat the request
  4785. setTimeout(function(){geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, tryLoop)}, 1000 + (Math.random() * 4000));
  4786. }
  4787. else
  4788. {
  4789. displayTheCheckedLink(link, 'unava_link');
  4790. }
  4791.  
  4792. return;
  4793. }
  4794. },
  4795. onerror: function ()
  4796. {
  4797. displayTheCheckedLink(link, 'unava_link');
  4798. }
  4799. });
  4800. }
  4801.  
  4802. function geturlHeader(link, isAliveRegex, isDeadRegex, ispremRegex)
  4803. {
  4804. GM_xmlhttpRequest(
  4805. {
  4806. method: 'HEAD',
  4807. url: link.href,
  4808. headers: {
  4809. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  4810. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  4811. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  4812. 'Referer': ""
  4813. },
  4814. onload: function (result)
  4815. {
  4816. var resStatus = result.status;
  4817. var resHeaders = "";
  4818. if (resStatus == 403 || resStatus == 404 || resStatus == 500) //not found/available
  4819. {
  4820. displayTheCheckedLink(link, 'adead_link');
  4821. return;
  4822. }
  4823.  
  4824. resHeaders = result.responseHeaders;
  4825.  
  4826. if (resHeaders.match(isDeadRegex))
  4827. {
  4828. displayTheCheckedLink(link, 'adead_link');
  4829. return;
  4830. }
  4831.  
  4832. if (resHeaders.match(isAliveRegex))
  4833. {
  4834. displayTheCheckedLink(link, 'alive_link');
  4835. return;
  4836. }
  4837. if (resHeaders.match(ispremRegex))
  4838. {
  4839. displayTheCheckedLink(link, 'prem_link');
  4840. return;
  4841. }
  4842. },
  4843. onerror: function ()
  4844. {
  4845. displayTheCheckedLink(link, 'unava_link');
  4846. }
  4847. });
  4848. }
  4849.  
  4850. //Delinkfifies the <a> element object
  4851. function delinkifyLink(link)
  4852. {
  4853. var spanElm = document.createElement("span");
  4854. spanElm.className = link.className;
  4855. spanElm.innerHTML = link.innerHTML;
  4856.  
  4857. if (Display_tooltip_info)
  4858. {
  4859. spanElm.href = link.href;
  4860. spanElm.warlc_error = link.warlc_error;
  4861. switch (link.className){
  4862. case "alive_link": spanElm.addEventListener("mouseover", displayTooltipInfo, false); break
  4863. case "adead_link": spanElm.addEventListener("mouseover", displayTooltipError, false); break;
  4864. case "unava_link": //reserved
  4865. case "prem_link": spanElm.addEventListener("mouseover", displayTooltipError, false); break;
  4866. default:
  4867. }
  4868. }
  4869. link.parentNode.replaceChild(spanElm, link);
  4870. }
  4871.  
  4872. //Assigns result status to the <a> element object and calls delinkifying eventually
  4873. //Possible result states: adead_link, alive_link, unava_link, prem_link
  4874. function displayTheCheckedLink(link, resultStatus)
  4875. {
  4876. link.className = resultStatus;
  4877. link.href = Ref_anonymize_service + link.href;
  4878. if (Display_tooltip_info)
  4879. {
  4880. switch (resultStatus){
  4881. case "alive_link": link.addEventListener("mouseover", displayTooltipInfo, false); break
  4882. case "adead_link": link.addEventListener("mouseover", displayTooltipError, false); break;
  4883. case "unava_link": //reserved
  4884. case "prem_link": link.addEventListener("mouseover", displayTooltipInfo, false); break
  4885. default:
  4886. }
  4887. }
  4888. if (doNotLinkify)
  4889. {
  4890. delinkifyLink(link);
  4891. }
  4892. cLinksProcessed++;
  4893.  
  4894. if (resultStatus == "alive_link")
  4895. {
  4896. cLinksAlive++;
  4897. return;
  4898. }
  4899.  
  4900. if (resultStatus == "adead_link")
  4901. {
  4902. cLinksDead++;
  4903. return;
  4904. }
  4905.  
  4906. if (resultStatus == "unava_link")
  4907. {
  4908. cLinksUnava++;
  4909. }
  4910. if (resultStatus == "prem_link")
  4911. {
  4912. cLinksprem++;
  4913. return;
  4914. }
  4915. }
  4916.  
  4917.  
  4918. function initFileHosts()
  4919. {
  4920.  
  4921. function addObsoleteHost(linkRegex, xpathEx)
  4922. {
  4923. var host = new Array(2);
  4924. host[0] = linkRegex;
  4925. host[1] = xpathEx;
  4926. http_file_hosts_obsolete.push(host);
  4927. }
  4928.  
  4929. //obsolete file hosts init start
  4930. if (Obsolete_file_hosts)
  4931. {
  4932. addObsoleteHost("uloz\.cz\/show\/file","//a[contains(@href,'uloz.cz')]");
  4933. addObsoleteHost("storage\\.to\/get","//a[contains(@href,'storage.to')]");
  4934. addObsoleteHost("iskladka\\.cz\/download","//a[contains(@href,'iskladka.cz')]");
  4935. addObsoleteHost("file-rack\\.com\/files","//a[contains(@href,'file-rack.com')]");
  4936. addObsoleteHost("fast-load\\.net\/(\/)?index","//a[contains(@href,'fast-load.net')]");
  4937. addObsoleteHost("subory\\.sk\/download","//a[contains(@href,'subory.sk')]");
  4938. addObsoleteHost("bigandfree\\.com\/\\d+","//a[contains(@href,'bigandfree.com')]");
  4939. addObsoleteHost("fileop\\.com\/\\w+","//a[contains(@href,'fileop.com')]");
  4940. addObsoleteHost("mujsoubor\\.cz\/file\/","//a[contains(@href,'mujsoubor.cz')]");
  4941. addObsoleteHost("sendfile\\.to\/\\w+","//a[contains(@href,'sendfile.to')]");
  4942. addObsoleteHost("superfastfile\\.com\/\\w+","//a[contains(@href,'superfastfile.com')]");
  4943. addObsoleteHost("quickyshare\\.com\/\\w+","//a[contains(@href,'quickyshare.com/')]");
  4944. addObsoleteHost("duckload\\.com\/(?:d|play)","//a[contains(@href,'duckload.com')]");
  4945. addObsoleteHost("uploadstore\\.net\/\\w+","//a[contains(@href,'uploadstore.net')]");
  4946. addObsoleteHost("meinupload\\.com\/dl\/\\d+","//a[contains(@href,'meinupload.com/dl')]");
  4947. addObsoleteHost("dualshare\\.com\/\\w+","//a[contains(@href,'dualshare.com')]");
  4948. addObsoleteHost("2xupload\\.(?:to|de)\/file\/\\w+","//a[contains(@href,'2xupload.to') or contains(@href,'2xupload.de')]");
  4949. addObsoleteHost("oxedion\\.com\/index\\.php\/download\/\\w+","//a[contains(@href,'oxedion.com/index')]");
  4950. addObsoleteHost("uploadline\\.com\/\\d+","//a[contains(@href,'uploadline.com')]");
  4951. addObsoleteHost("dll\\.bz\/file\/\\d+","//a[contains(@href,'dll.bz/file')]");
  4952. addObsoleteHost("movieshare\\.in\/\\w+","//a[contains(@href,'movieshare.in')]");
  4953. addObsoleteHost("milledrive\\.com\/files\/\\d+","//a[contains(@href,'milledrive.com')]");
  4954. addObsoleteHost("quickupload\\.net\/\\w+","//a[contains(@href,'quickupload.net')]");
  4955. addObsoleteHost("safelink\\.in\/\\w+","//a[contains(@href,'safelink.in')]");
  4956. addObsoleteHost("pyramidfiles\\.com\/\\w+","//a[contains(@href,'pyramidfiles.com/')]");
  4957. addObsoleteHost("(?:cloudnator|shragle)\\.com\/files","//a[contains(@href,'cloudnator.com/files') or contains(@href,'shragle.com/files')]");
  4958. addObsoleteHost("batshare\\.com\/\\w+","//a[contains(@href,'batshare.com/')]");
  4959. addObsoleteHost("bitroad\\.net\/download","//a[contains(@href,'bitroad.net/download')]");
  4960. addObsoleteHost("metadivx\\.com\/\\w+","//a[contains(@href,'metadivx.com')]");
  4961. addObsoleteHost("filegaze\\.com\/\\w+","//a[contains(@href,'filegaze.com/')]");
  4962. addObsoleteHost("bulletupload\\.com\/\\w+","//a[contains(@href,'bulletupload.com/')]");
  4963. addObsoleteHost("sharefilehost\\.com\/\\w+","//a[contains(@href,'sharefilehost.com/')]");
  4964. addObsoleteHost("fireuploads\\.net\/\\w+","//a[contains(@href,'fireuploads.net/')]");
  4965. addObsoleteHost("divxlink\\.com\/\\w+","//a[contains(@href,'divxlink.com/')]");
  4966. addObsoleteHost("bzlink\\.us\/\\w+","//a[contains(@href,'bzlink.us/')]");
  4967. addObsoleteHost("filetechnology\\.com\/\\w+","//a[contains(@href,'filetechnology.com/')]");
  4968. addObsoleteHost("filecosy\\.com\/\\w+","//a[contains(@href,'filecosy.com/')]");
  4969. addObsoleteHost("fileserver\\.cc\/\\w+","//a[contains(@href,'fileserver.cc/')]");
  4970. addObsoleteHost("shafiles\\.me\/\\w+","//a[contains(@href,'shafiles.me/')]");
  4971. addObsoleteHost("xfileshare\\.eu\/\\w+","//a[contains(@href,'xfileshare.eu/')]");
  4972. addObsoleteHost("uploadboost\\.com\/\\w+","//a[contains(@href,'uploadboost.com/')]");
  4973. addObsoleteHost("uploadoz\\.com\/\\w+","//a[contains(@href,'uploadoz.com/')]");
  4974. addObsoleteHost("ihostia\\.com\/\\w+","//a[contains(@href,'ihostia.com/')]");
  4975. addObsoleteHost("shareupload\\.com\/\\w+","//a[contains(@href,'shareupload.com/')]");
  4976. addObsoleteHost("ovfile\\.com\/\\w+","//a[contains(@href,'ovfile.com/')]");
  4977. addObsoleteHost("stahuj\\.to\/\\w+","//a[contains(@href,'stahuj.to/')]");
  4978. addObsoleteHost("gigfiles\\.net\/\\w+","//a[contains(@href,'gigfiles.net/')]");
  4979. addObsoleteHost("vidhog\\.com\/\\w+","//a[contains(@href,'vidhog.com/')]");
  4980. addObsoleteHost("filelaser\\.com\/\\w+","//a[contains(@href,'filelaser.com/')]");
  4981. addObsoleteHost("holderfile\\.com\/\\w+","//a[contains(@href,'holderfile.com/')]");
  4982. addObsoleteHost("fileduct\\.(?:com|net)\/\\w+","//a[contains(@href,'fileduct.com/') or contains(@href,'fileduct.net')]");
  4983. addObsoleteHost("filefat\\.com\/\\w+","//a[contains(@href,'filefat.com/')]");
  4984. addObsoleteHost("restfile\\.com\/\\w+","//a[contains(@href,'restfile.com/')]");
  4985. addObsoleteHost("filemashine\\.com\\/download\/\\w+","//a[contains(@href,'filemashine.com/download')]");
  4986. addObsoleteHost("cloudnxt\\.net\/\\w+","//a[contains(@href,'cloudnxt.net/')]");
  4987. addObsoleteHost("uploadrack\\.com\/\\w+","//a[contains(@href,'uploadrack.com')]");
  4988. addObsoleteHost("teradepot\\.com\/\\w+","//a[contains(@href,'teradepot.com')]");
  4989. addObsoleteHost("dataup\\.to\/\\d+\/","//a[contains(@href,'dataup.to')]");
  4990. addObsoleteHost("upit\\.to\/file:\\d+","//a[contains(@href,'upit.to/file')]");
  4991. addObsoleteHost("badongo\\.(?:com|net)\/(?:\\w\\w\/|)(?:vid|cfile|file|pt)\/\\w+","//a[contains(@href,'badongo.com') or contains(@href,'badongo.net')]");
  4992. addObsoleteHost("driveway\\.com\/\\w+","//a[contains(@href,'driveway.com')]");
  4993. addObsoleteHost("eatlime\\.com\/download","//a[contains(@href,'eatlime.com/download')]");
  4994. addObsoleteHost("a2zuploads\\.com\/id\\w+","//a[contains(@href,'a2zuploads.com/id')]");
  4995. addObsoleteHost("friendlyfiles\\.net\/download\/\\w+\/","//a[contains(@href,'friendlyfiles.net/download')]");
  4996. addObsoleteHost("flyfile\\.us\/\\w+","//a[contains(@href,'flyfile.us')]");
  4997. addObsoleteHost("speedyshare\\.com\/\\w+","//a[contains(@href,'speedyshare.com')]");
  4998. addObsoleteHost("brontofile\\.com\/download","//a[contains(@href,'brontofile.com/download')]");
  4999. addObsoleteHost("uploadspace\\.eu\/\\w+","//a[contains(@href,'uploadspace.eu')]");
  5000. addObsoleteHost("fooget\\.com\/\\w+","//a[contains(@href,'fooget.com/')]");
  5001. addObsoleteHost("file-bit.net\/\\w+","//a[contains(@href,'file-bit.net/')]");
  5002. addObsoleteHost("keepfile\\.com\/\\w+","//a[contains(@href,'keepfile.com')]");
  5003. addObsoleteHost("piggyshare\\.com\/file\/\\w+","//a[contains(@href,'piggyshare.com')]");
  5004. addObsoleteHost("filecrown\\.com\/\\w+","//a[contains(@href,'filecrown.com')]");
  5005. addObsoleteHost("6giga\\.com\/\\w+","//a[contains(@href,'6giga.com')]");
  5006. addObsoleteHost("uploadjockey\\.com\/download\/\\w+","//a[contains(@href,'uploadjockey.com/download')]");
  5007. addObsoleteHost("bluehost\\.to\/dl=\\w+","//a[contains(@href,'bluehost.to')]");
  5008. addObsoleteHost("coolshare\\.cz\/stahnout\/\\w+","//a[contains(@href,'coolshare.cz/stahnout')]");
  5009. addObsoleteHost("filegu\\.ru\/f\/\\w+","//a[contains(@href,'filegu.ru/f')]");
  5010. addObsoleteHost("filebase\\.to\/files\/\\d+\/","//a[contains(@href,'filebase.to/files')]");
  5011. addObsoleteHost("kickload\\.com\/(?:file|get)\/","//a[contains(@href,'kickload.com/file') or contains(@href,'kickload.com/get')]");
  5012. addObsoleteHost("up-file\\.com\/files\/download\/\\w+\/","//a[contains(@href,'up-file.com/download')]");
  5013. addObsoleteHost("ezyfile\\.net\/\\w+","//a[contains(@href,'ezyfile.net/')]");
  5014. addObsoleteHost("k2files\\.com\/files","//a[contains(@href,'k2files.com/files')]");
  5015. addObsoleteHost("aiotool\\.net\/\\w+","//a[contains(@href,'aiotool.net/')]");
  5016. addObsoleteHost("xvideos\\.com\/files\/\\d+\/\\w+","//a[contains(@href,'xvideos.com/files')]");
  5017. addObsoleteHost("filebling\\.com\/dl\/\\d+\/\\d+\/\\w+","//a[contains(@href,'filebling.com/dl')]");
  5018. addObsoleteHost("loaded\\.it\/divx\/\\w+","//a[contains(@href,'loaded.it/divx')]");
  5019. addObsoleteHost("uploadcell\\.com\/\\w+\/\\w+","//a[contains(@href,'uploadcell.com')]");
  5020. addObsoleteHost("jakfile\\.com\/\\w+","//a[contains(@href,'jakfile.com/')]");
  5021. addObsoleteHost("uploadshare\\.cz\/download\/\\w+\/\\w+","//a[contains(@href,'uploadshare.cz/download')]");
  5022. addObsoleteHost("mangoshare\\.com\/\\w+","//a[contains(@href,'mangoshare.com')]");
  5023. addObsoleteHost("ugotfile\\.com\/file\/\\d+\/\\w+","//a[contains(@href,'ugotfile.com/file')]");
  5024. addObsoleteHost("filestab\\.com\/\\w+","//a[contains(@href,'filestab.com')]");
  5025. addObsoleteHost("dotavi\\.com\/\\w+\/.","//a[contains(@href,'dotavi.com/')]");
  5026. addObsoleteHost("crazyupload\\.com\/\\w+","//a[contains(@href,'crazyupload.com')]");
  5027. addObsoleteHost("gaiafile\\.com\/\\w+","//a[contains(@href,'gaiafile.com')]");
  5028. addObsoleteHost("sharejunky\\.com\/\\w+","//a[contains(@href,'sharejunky.com')]");
  5029. addObsoleteHost("fileho\\.com\/download\/\\d+","//a[contains(@href,'fileho.com/download')]");
  5030. addObsoleteHost("(?:bigandfree|BigAndFree)\\.com\/\\d+","//a[contains(@href,'bigandfree.com') or contains(@href,'BigAndFree.com')]");
  5031. addObsoleteHost("bigfile\\.in\/\\w+","//a[contains(@href,'bigfile.in')]");
  5032. addObsoleteHost("bigshare\\.eu\/download\\.php\\?id=","//a[contains(@href,'bigshare.eu/download.php')]");
  5033. addObsoleteHost("dahosting\\.org\/dl\/\\w+","//a[contains(@href,'dahosting.org/dl')]");
  5034. addObsoleteHost("digisofts\\.net\/\\w+","//a[contains(@href,'digisofts.net')]");
  5035. addObsoleteHost("file4save\\.com\/\\w+\/\\w+","//a[contains(@href,'file4save.com')]");
  5036. addObsoleteHost("filereactor\\.com\/\\w+","//a[contains(@href,'filereactor.com/')]");
  5037. addObsoleteHost("filechip\\.com\/\\w+","//a[contains(@href,'filechip.com')]");
  5038. addObsoleteHost("filescloud\\.com\/\\w+\/\\w+","//a[contains(@href,'filescloud.com')]");
  5039. addObsoleteHost("saveqube\\.com\/getfile\/\\w+","//a[contains(@href,'saveqube.com/getfile')]");
  5040. addObsoleteHost("www2\\.turboshare\\.de\/v\/\\d+","//a[contains(@href,'turboshare.de/v')]");
  5041. addObsoleteHost("z-upload\\.com\/\\w+","//a[contains(@href,'z-upload.com')]");
  5042. addObsoleteHost("youshare\\.com\/view\\.php","//a[contains(@href,'youshare.com/view')]");
  5043. addObsoleteHost("jiffyupload\\.com\/\\w+","//a[contains(@href,'jiffyupload.com')]");
  5044. addObsoleteHost("gigeshare\\.com\/preview\/\\w+","//a[contains(@href,'gigeshare.com')]");
  5045. addObsoleteHost("datenklo\\.net\/dl","//a[contains(@href,'datenklo.net')]");
  5046. addObsoleteHost("upload\\.dj\/download\\.php\\?id=\\w+","//a[contains(@href,'upload.dj/download.php')]");
  5047. addObsoleteHost("loadfiles\\.in\/\\w+\/","//a[contains(@href,'loadfiles.in')]");
  5048. addObsoleteHost("upit\\.to\/file:\\w+\/","//a[contains(@href,'upit.to/file')]");
  5049. addObsoleteHost("zshare\\.net\/(?:download|video|audio)\/\\w+","//a[contains(@href,'zshare.net/')]");
  5050. addObsoleteHost("refile\\.net\/f\/\\?\\w+","//a[contains(@href,'refile.net/f/')]");
  5051. addObsoleteHost("dsfileshare\\.com\/download","//a[contains(@href,'dsfileshare.com/download')]");
  5052. addObsoleteHost("sharesimple\\.net\/\\w{2}\/download","//a[contains(@href,'sharesimple.net')]");
  5053. addObsoleteHost("(?:s\\d+\\.|)4files\\.net\/\\d+","//a[contains(@href,'4files.net')]");
  5054. addObsoleteHost("odsiebie\\.com\/pokaz\/\\d+","//a[contains(@href,'odsiebie.com/pokaz')]");
  5055. addObsoleteHost("filenavi\\.com\/direct\/\\w+","//a[contains(@href,'filenavi.com/direct')]");
  5056. addObsoleteHost("3oof\\.com\/\\w+","//a[contains(@href,'3oof.com/')]");
  5057. addObsoleteHost("meshwaar\\.com\/\\w+","//a[contains(@href,'meshwaar.com')]");
  5058. addObsoleteHost("maxupload\\.com\/files\/\\w+","//a[contains(@href,'maxupload.com/files')]");
  5059. addObsoleteHost("share\\.cx\/videos\/\\d+","//a[contains(@href,'share.cx/videos')]");
  5060. addObsoleteHost("atserver\\.eu\/(?:\\w{2}\/|)download\/\\d+","//a[contains(@href,'atserver.eu')]");
  5061. addObsoleteHost("file2upload\\.net\/download\/\\d+","//a[contains(@href,'file2upload.net/download')]");
  5062. addObsoleteHost("filebling\\.com\/\\w+","//a[contains(@href,'filebling.com')]");
  5063. addObsoleteHost("turboshare\\.(?:eu|com)\/files","//a[contains(@href,'turboshare.') and contains(@href,'/files')]");
  5064. addObsoleteHost("rarhost\\.com\/download","//a[contains(@href,'rarhost.com/download')]");
  5065. addObsoleteHost("isharehd\\.com\/\\w+","//a[contains(@href,'isharehd.com')]");
  5066. addObsoleteHost("datenklo\\.net\/file\\.php\\?id=\\w+","//a[contains(@href,'datenklo.net/file.php')]");
  5067. addObsoleteHost("file2share\\.biz\/download\\.php\\?id=\\w+","//a[contains(@href,'file2share.biz/download.php')]");
  5068. addObsoleteHost("savefiles\\.net\/d\/\\w+\\.html","//a[contains(@href,'savefiles.net/d')]");
  5069. addObsoleteHost("bestsharing\\.com\/files\/\\w+","//a[contains(@href,'bestsharing.com/files')]");
  5070. addObsoleteHost("filecache\\.de\/\\d+","//a[contains(@href,'filecache.de/')]");
  5071. addObsoleteHost("i741\\.com\/files\/\\w+","//a[contains(@href,'i741.com/files')]");
  5072. addObsoleteHost("dataup\\.de\/\\d+","//a[contains(@href,'dataup.de')]");
  5073. addObsoleteHost("fofly\\.com\/\\w+","//a[contains(@href,'fofly.com')]");
  5074. addObsoleteHost("shareonall\\.com\/\\w+","//a[contains(@href,'shareonall.com')]");
  5075. addObsoleteHost("sexuploader\\.com\/(?:|..\/)\\?[d|v]=\\w{8}","//a[contains(@href,'sexuploader.com')]");
  5076. 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')]");
  5077. addObsoleteHost("uploadhyper\\.com\/file\/","//a[contains(@href,'uploadhyper.com')]");
  5078. addObsoleteHost("filespawn\\.com\/file\/","//a[contains(@href,'filespawn.com')]");
  5079. addObsoleteHost("caizzii\\.com\/(?:download|\\?file=)","//a[contains(@href,'caizzii.com')]");
  5080. addObsoleteHost("volnyweb\\.cz\/files\/get\/[\\w-_]+","//a[contains(@href,'volnyweb.cz/files')]");
  5081. addObsoleteHost("gotupload\\.com\/\\w+","//a[contains(@href,'gotupload.com/')]");
  5082. addObsoleteHost("mooload\\.com\/new\/file\\.php\\?file=files\/\\d+\/\\d+","//a[contains(@href,'mooload.com/new/file')]");
  5083. addObsoleteHost("z\\d+\\.zupload\\.com\/download\\.php\\?file=getfile&filepath=\\d+","//a[contains(@href,'zupload.com/download')]");
  5084. addObsoleteHost("mytempdir\\.com\/\\d+","//a[contains(@href,'mytempdir.com/')]");
  5085. addObsoleteHost("usershare\\.net\/\\w+","//a[contains(@href,'usershare.net/')]");
  5086. addObsoleteHost("qshare\\.com\/get\/\\d+\/.","//a[contains(@href,'qshare.com/get')]");
  5087. addObsoleteHost("filescash\\.net\/file\/\\d+","//a[contains(@href,'filescash.net/file')]");
  5088. addObsoleteHost("metahyper\\.com\/\\w+","//a[contains(@href,'metahyper.com/')]");
  5089. addObsoleteHost("combozip\\.com\/\\w+","//a[contains(@href,'combozip.com/')]");
  5090. addObsoleteHost("anonstream\\.com\/get_\\w+","//a[contains(@href,'anonstream.com/get_')]");
  5091. addObsoleteHost("x7\\.to\/\\w+","//a[contains(@href,'x7.to/')]");
  5092. addObsoleteHost("uploadbox\\.com\/files\/\\w+","//a[contains(@href,'uploadbox.com/files')]");
  5093. addObsoleteHost("(?:flyupload\\.)?(?:enterupload|flyupload)\\.com\/[\\?\\w]+","//a[contains(@href,'enterupload.com/') or contains(@href,'flyupload.com/')]");
  5094. addObsoleteHost("filepoint\\.de\/dl\/\\w+","//a[contains(@href,'filepoint.de/dl')]");
  5095. addObsoleteHost("icushare\\.com\/\\w+","//a[contains(@href,'icushare.com/')]");
  5096. addObsoleteHost("oron\\.com\/\\w+","//a[contains(@href,'oron.com/')]");
  5097. addObsoleteHost("mystream\\.to\/file\\-\\d+","//a[contains(@href,'mystream.to/file')]");
  5098. addObsoleteHost("x-fs\\.com\/download\\.php\\?id=\\w+","//a[contains(@href,'x-fs.com/download')]");
  5099. addObsoleteHost("srapid\\.eu\/\\w+","//a[contains(@href,'srapid.eu/')]");
  5100. addObsoleteHost("shareshared\\.com\/\\w+","//a[contains(@href,'shareshared.com/')]");
  5101. addObsoleteHost("sosame\\.cz\/\\w+","//a[contains(@href,'sosame.cz/')]");
  5102. addObsoleteHost("s\\d+\\.filesdump\\.com\/file\/\\w+","//a[contains(@href,'filesdump.com/file')]");
  5103. addObsoleteHost("2-klicks\\.de\/\\?d=\\w+","//a[contains(@href,'2-klicks.de/?d=')]");
  5104. addObsoleteHost("silofiles\\.com\/file\/\\d+","//a[contains(@href,'silofiles.com/file')]");
  5105. addObsoleteHost("upfile\\.in\/\\w+","//a[contains(@href,'upfile.in/')]");
  5106. addObsoleteHost("filehook\\.com\/\\w+","//a[contains(@href,'filehook.com/')]");
  5107. addObsoleteHost("mojofile\\.com\/\\w+","//a[contains(@href,'mojofile.com/')]");
  5108. addObsoleteHost("cloudcache\\.cc\/\\w+","//a[contains(@href,'cloudcache.cc/')]");
  5109. addObsoleteHost("1hostclick\\.com\/\\w+","//a[contains(@href,'1hostclick.com/')]");
  5110. addObsoleteHost("4bytez\\.com\/\\w+","//a[contains(@href,'4bytez.com/')]");
  5111. addObsoleteHost("uploadking\\.com\/\\w+","//a[contains(@href,'uploadking.com/')]");
  5112. addObsoleteHost("nahraj\\.cz\/(?:content|down)\/\\w+","//a[contains(@href,'nahraj.cz/')]");
  5113. addObsoleteHost("megarapid\\.eu\/files\/\\d+","//a[contains(@href,'megarapid.eu/files')]");
  5114. addObsoleteHost("(?:fileserve|uploadstation)\\.com\/(?:file|list)\/\\w+","//a[contains(@href,'fileserve.com/') or contains(@href,'uploadstation.com/')]");
  5115. addObsoleteHost("uploadhere\\.com\/\\w+","//a[contains(@href,'uploadhere.com/')]");
  5116. addObsoleteHost("dualshare\\.com\/\\w+","//a[contains(@href,'dualshare.com/')]");
  5117. addObsoleteHost("yourfilehost\\.com\/media","//a[contains(@href,'yourfilehost.com/media')]");
  5118. addObsoleteHost("ftp2share\\.com\/file\/\\w+","//a[contains(@href,'ftp2share.com/file')]");
  5119. addObsoleteHost("storeandserve\\.com\/download\/\\d+","//a[contains(@href,'storeandserve.com/download')]");
  5120. addObsoleteHost("mountfile\\.com\/file(?:\/\\w+){2}","//a[contains(@href,'mountfile.com/file')]");
  5121. addObsoleteHost("save\\.am\/files\/\\w+","//a[contains(@href,'save.am/files')]");
  5122. addObsoleteHost("transitfiles\\.com\/dl\/\\w+","//a[contains(@href,'transitfiles.com/dl')]");
  5123. addObsoleteHost("smartuploader\\.com\/file\\.php\\?f=\\d+","//a[contains(@href,'smartuploader.com/file.php?=')]");
  5124. addObsoleteHost("skipfile\\.com\/\\w+","//a[contains(@href,'skipfile.com/')]");
  5125. addObsoleteHost("stahnu\\.to\/[\\w\\?]+","//a[contains(@href,'stahnu.to/')]");
  5126. addObsoleteHost("flyshare\.cz\/(?:stahni\/|)\\d+","//a[contains(@href,'flyshare.cz/')]");
  5127. addObsoleteHost("(?:ddlani\\.me|ddlanime\\.com)\/\\w+","//a[contains(@href,'ddlani.me/') or contains(@href,'ddlanime.com/')]");
  5128. addObsoleteHost("loadly\\.com\/\\w+","//a[contains(@href,'loadly.com/')]");
  5129. addObsoleteHost("groovefile\\.com\/\\w+","//a[contains(@href,'groovefile.com/')]");
  5130. addObsoleteHost("filezlot\\.com\/\\w+","//a[contains(@href,'filezlot.com/')]");
  5131. addObsoleteHost("shareator\\.(?:net|com)\/\\w+","//a[contains(@href,'shareator.')]");
  5132. addObsoleteHost("yabadaba\\.ru\/files\/","//a[contains(@href,'yabadaba.ru/files/')]");
  5133. addObsoleteHost("rapidhide\\.com\/download\\.php\\?file=\\w+","//a[contains(@href,'rapidhide.com/download.php')]");
  5134. addObsoleteHost("filejungle\\.com\/[fl]\/\\w+","//a[contains(@href,'filejungle.com/')]");
  5135. addObsoleteHost("kewlshare\\.com\/dl\/\\d+","//a[contains(@href,'kewlshare.com/dl')]");
  5136. addObsoleteHost("petandrive\\.com\/file\/\\w+","//a[contains(@href,'petandrive.com/file')]");
  5137. addObsoleteHost("onionshare\\.com\/\\w+","//a[contains(@href,'onionshare.com/')]");
  5138. addObsoleteHost("rapidable\\.com\/\\w+\/download\\.php\\?id=","//a[contains(@href,'rapidable.com/')]");
  5139. addObsoleteHost("filesdump\\.com\/file\/\\w+\/\\d+","//a[contains(@href,'filesdump.com/file')]");
  5140. addObsoleteHost("file2box\\.(?:net|com)\/\\w+","//a[contains(@href,'file2box.')]");
  5141. addObsoleteHost("(?:filesonic|sharingmatrix|wupload)(?:\\.\\w+){1,2}\/(?:file|folder)\/\\w+","//a[contains(@href,'filesonic.') or contains(@href,'sharingmatrix.com') or contains(@href,'wupload.')]");
  5142. addObsoleteHost("wizzupload\\.com\/\\w+","//a[contains(@href,'wizzupload.com/')]");
  5143. addObsoleteHost("bloggerarticles\\.com\/\\w+","//a[contains(@href,'bloggerarticles.com/')]");
  5144. addObsoleteHost("mojedata\\.sk/","//a[contains(@href,'mojedata.sk/')]");
  5145. addObsoleteHost("sharpfile\\.com\/\\w+","//a[contains(@href,'sharpfile.com/')]");
  5146. addObsoleteHost("upgrand\\.com\/\\w+","//a[contains(@href,'upgrand.com/')]");
  5147. addObsoleteHost("nasdilej\\.cz\/\\w+","//a[contains(@href,'nasdilej.cz/')]");
  5148. addObsoleteHost("mediatack\\.cz\/stahuj/\\w+","//a[contains(@href,'mediatack.cz/stahuj/')]");
  5149. addObsoleteHost("share-it\\.to\/file/\\w+","//a[contains(@href,'share-it.to/file/')]");
  5150. addObsoleteHost("primeupload\\.com\/file/\\w+","//a[contains(@href,'primeupload.com/file/')]");
  5151. addObsoleteHost("(?:uploads\\.glumbo|glumbouploads)\\.com\/\\w+","//a[contains(@href,'uploads.glumbo.com') or contains(@href,'glumbouploads.com')]");
  5152. addObsoleteHost("filebeer\\.info\/\\w+","//a[contains(@href,'filebeer.info/')]");
  5153. addObsoleteHost("baberepublic\\.com\/link\/\\w+","//a[contains(@href,'baberepublic.com/link/')]");
  5154. addObsoleteHost("xtu\\.me\/\\w+","//a[contains(@href,'xtu.me/')]");
  5155. addObsoleteHost("sharebase\\.de\/files\/\\w+","//a[contains(@href,'sharebase.de/files/')]");
  5156. addObsoleteHost("filerobo\\.com\/\\w+","//a[contains(@href,'filerobo.com/')]");
  5157. addObsoleteHost("filevelocity\\.com\/\\w+","//a[contains(@href,'filevelocity.com/')]");
  5158. addObsoleteHost("filezpro\\.com\/\\w+","//a[contains(@href,'filezpro.com/')]");
  5159. addObsoleteHost("file4sharing\\.com\/\\w+","//a[contains(@href,'file4sharing.com/')]");
  5160. addObsoleteHost("cing\\.be\/\\w+","//a[contains(@href,'cing.be/')]");
  5161. addObsoleteHost("ufile\\.eu\/\\w+","//a[contains(@href,'ufile.eu/')]");
  5162. addObsoleteHost("pigsonic\\.com\/\\w+","//a[contains(@href,'pigsonic.com/')]");
  5163. addObsoleteHost("fileupped\\.com\/\\w+","//a[contains(@href,'fileupped.com/')]");
  5164. addObsoleteHost("sharerun\\.com\/\\w+","//a[contains(@href,'sharerun.com/')]");
  5165. addObsoleteHost("rapidslnare\\.com\/\\w+","//a[contains(@href,'rapidslnare.com/')]");
  5166. addObsoleteHost("monsteruploads\\.eu\/\\w+","//a[contains(@href,'monsteruploads.eu/')]");
  5167. addObsoleteHost("b9bb\\.com\/\\w+","//a[contains(@href,'b9bb.com/')]");
  5168. addObsoleteHost("jamber\\.info\/\\w+","//a[contains(@href,'jamber.info/')]");
  5169. addObsoleteHost("(?:megaftp|MegaFTP)\\.com\/\\w+","//a[contains(@href,'megaftp.com/') or contains(@href,'MegaFTP.com/')]");
  5170. addObsoleteHost("desiupload\\.net\/\\?d=\\w+","//a[contains(@href,'desiupload.net/')]");
  5171. addObsoleteHost("file27\\.com\/\\w+","//a[contains(@href,'file27.com/')]");
  5172. addObsoleteHost("yastorage\\.com\/\\w+","//a[contains(@href,'yastorage.com/')]");
  5173. addObsoleteHost("filehost\\.ws\/\\w+","//a[contains(@href,'filehost.ws/')]");
  5174. addObsoleteHost("copyload\\.com\/\\w+","//a[contains(@href,'copyload.com/')]");
  5175. addObsoleteHost("venusfile\\.com\/\\w+","//a[contains(@href,'venusfile.com/')]");
  5176. addObsoleteHost("aieshare\\.com\/\\w+","//a[contains(@href,'aieshare.com/')]");
  5177. addObsoleteHost("fileza\\.net\/\\w+","//a[contains(@href,'fileza.net/')]");
  5178. addObsoleteHost("filerose\\.com\/\\w+","//a[contains(@href,'filerose.com/')]");
  5179. addObsoleteHost("squillion\\.com\/\\w+","//a[contains(@href,'squillion.com/')]");
  5180. addObsoleteHost("fileprohost\\.com\/\\w+","//a[contains(@href,'fileprohost.com/')]");
  5181. addObsoleteHost("bitbonus\\.com\/download\/\\w+","//a[contains(@href,'bitbonus.com/')]");
  5182. addObsoleteHost("warserver\\.cz\/\\w+","//a[contains(@href,'warserver.cz/')]");
  5183. addObsoleteHost("uload\\.to\/\\w+","//a[contains(@href,'uload.to/')]");
  5184. addObsoleteHost("sharedbit\\.net\/\\w+","//a[contains(@href,'sharedbit.net/')]");
  5185. addObsoleteHost("megaload\\.it\/\\w+","//a[contains(@href,'megaload.it/')]");
  5186. addObsoleteHost("filewinds\\.com\/\\w+","//a[contains(@href,'filewinds.com/')]");
  5187. addObsoleteHost("uploadcore\\.com\/\\w+","//a[contains(@href,'uploadcore.com/')]");
  5188. addObsoleteHost("syfiles\\.com\/\\w+","//a[contains(@href,'syfiles.com/')]");
  5189. addObsoleteHost("eyesfile\\.com\/\\w+","//a[contains(@href,'eyesfile.com/')]");
  5190. addObsoleteHost("hotfile\\.com\/\\w+","//a[contains(@href,'hotfile.com/')]");
  5191. addObsoleteHost("superupl\\.com\/\\w+","//a[contains(@href,'superupl.com/')]");
  5192. addObsoleteHost("oteupload\\.com\/\\w+","//a[contains(@href,'oteupload.com/')]");
  5193. addObsoleteHost("henchfile\\.com\/\\w+","//a[contains(@href,'henchfile.com/')]");
  5194. addObsoleteHost("HenchFile\\.com\/\\w+","//a[contains(@href,'HenchFile.com/')]");
  5195. addObsoleteHost("filegag\\.com\/\\w+","//a[contains(@href,'filegag.com/')]");
  5196. addObsoleteHost("filedefend\\.com\/\\w+","//a[contains(@href,'filedefend.com/')]");
  5197. addObsoleteHost("hotfiles\\.ws\/\\w+","//a[contains(@href,'hotfiles.ws/')]");
  5198. addObsoleteHost("share-rapid\\.com\/\\w+","//a[contains(@href,'share-rapid.com/')]");
  5199. //addObsoleteHost("sharerapid\\.cz\/\\w+","//a[contains(@href,'sharerapid.cz/')]");
  5200. addObsoleteHost("rapids\\.cz\/\\w+","//a[contains(@href,'rapids.cz/')]");
  5201. addObsoleteHost("share-credit\\.cz\/\\w+","//a[contains(@href,'share-credit.cz/')]");
  5202. addObsoleteHost("share-central\\.cz\/\\w+","//a[contains(@href,'share-central.cz/')]");
  5203. addObsoleteHost("share-ms\\.cz\/\\w+","//a[contains(@href,'share-ms.cz/')]");
  5204. addObsoleteHost("share-net\\.cz\/\\w+","//a[contains(@href,'share-net.cz/')]");
  5205. addObsoleteHost("srapid\\.cz\/\\w+","//a[contains(@href,'srapid.cz/')]");
  5206. addObsoleteHost("share-rapid\\.cz\/\\w+","//a[contains(@href,'share-rapid.cz/')]");
  5207. addObsoleteHost("wooupload\\.com\/\\w+","//a[contains(@href,'wooupload.com/')]");
  5208. addObsoleteHost("megabitshare\\.com\/\\w+","//a[contains(@href,'megabitshare.com/')]");
  5209. addObsoleteHost("uploking\\.com\/\\w+","//a[contains(@href,'uploking.com/')]");
  5210. addObsoleteHost("esnips\\.com\/\\w+","//a[contains(@href,'esnips.com/')]");
  5211. addObsoleteHost("uplly\\.com\/\\w+","//a[contains(@href,'uplly.com/')]");
  5212. addObsoleteHost("ufox\\.com\/\\w+","//a[contains(@href,'ufox.com/')]");
  5213. addObsoleteHost("clz\\.to\/\\w+","//a[contains(@href,'clz.to/')]");
  5214. addObsoleteHost("cloudzer\\.net\/\\w+","//a[contains(@href,'cloudzer.net/')]");
  5215. addObsoleteHost("cloudzer\\.com\/\\w+","//a[contains(@href,'cloudzer.com/')]");
  5216. addObsoleteHost("extabit\\.com\/\\w+","//a[contains(@href,'extabit.com/')]");
  5217. addObsoleteHost("uploadwaste\\.com\/\\w+","//a[contains(@href,'uploadwaste.com/')]");
  5218. addObsoleteHost("247upload\\.com\/\\w+","//a[contains(@href,'uploadwaste.com/')]");
  5219. addObsoleteHost("2download\\.de\/\\w+","//a[contains(@href,'2download.de/')]");
  5220. addObsoleteHost("4fastfile\\.com\/\\w+","//a[contains(@href,'4fastfile.com/')]");
  5221. addObsoleteHost("asixfiles\\.com\/\\w+","//a[contains(@href,'asixfiles.com/')]");
  5222. addObsoleteHost("berofile\\.com\/\\w+","//a[contains(@href,'berofile.com/')]");
  5223. addObsoleteHost("bigupload\\.com\/\\w+","//a[contains(@href,'bigupload.com/')]");
  5224. addObsoleteHost("cepzo\\.com\/\\w+","//a[contains(@href,'cepzo.com/')]");
  5225. addObsoleteHost("czshare\\.com\/\\w+","//a[contains(@href,'czshare.com/')]");
  5226. addObsoleteHost("clouds\\.to\/\\w+","//a[contains(@href,'clouds.to/')]");
  5227. addObsoleteHost("cobrashare\\.sk\/\\w+","//a[contains(@href,'cobrashare.sk/')]");
  5228. addObsoleteHost("coraldrive\\.net\/\\w+","//a[contains(@href,'coraldrive.net/')]");
  5229. addObsoleteHost("cyberlocker\\.ch\/\\w+","//a[contains(@href,'cyberlocker.ch/')]");
  5230. addObsoleteHost("darkport\\.org\/\\w+","//a[contains(@href,'darkport.org/')]");
  5231. addObsoleteHost("dark-uploads\\.com\/\\w+","//a[contains(@href,'dark-uploads.com/')]");
  5232. addObsoleteHost("davvas\\.com\/\\w+","//a[contains(@href,'davvas.com/')]");
  5233. addObsoleteHost("enigmashare\\.com\/\\w+","//a[contains(@href,'enigmashare.com/')]");
  5234. addObsoleteHost("erofly\\.cz\/\\w+","//a[contains(@href,'erofly.cz/')]");
  5235. addObsoleteHost("fastsonic\\.net\/\\w+","//a[contains(@href,'fastsonic.net/')]");
  5236. addObsoleteHost("filebox\\.com\/\\w+","//a[contains(@href,'filebox.com/')]");
  5237. addObsoleteHost("filecity\\.net\/\\w+","//a[contains(@href,'filecity.net/')]");
  5238. addObsoleteHost("filedap\\.com\/\\w+","//a[contains(@href,'filedap.com/')]");
  5239. addObsoleteHost("filedino\\.com\/\\w+","//a[contains(@href,'filedino.com/')]");
  5240. addObsoleteHost("filedownloads\\.org\/\\w+","//a[contains(@href,'filedownloads.org/')]");
  5241. addObsoleteHost("filefolks\\.com\/\\w+","//a[contains(@href,'filefolks.com/')]");
  5242. addObsoleteHost("fileking\\.co\/\\w+","//a[contains(@href,'fileking.co/')]");
  5243. addObsoleteHost("filemates\\.com\/\\w+","//a[contains(@href,'filemates.com/')]");
  5244. addObsoleteHost("files\\.to\/\\w+","//a[contains(@href,'files.to/')]");
  5245. addObsoleteHost("files2k\\.eu\/\\w+","//a[contains(@href,'files2k.eu/')]");
  5246. addObsoleteHost("filesector\\.cc\/\\w+","//a[contains(@href,'filesector.cc/')]");
  5247. addObsoleteHost("filesega\\.com\/\\w+","//a[contains(@href,'filesega.com/')]");
  5248. addObsoleteHost("filesend\\.net\/\\w+","//a[contains(@href,'filesend.net/')]");
  5249. addObsoleteHost("filestay\\.com\/\\w+","//a[contains(@href,'filestay.com/')]");
  5250. addObsoleteHost("filestrum\\.com\/\\w+","//a[contains(@href,'filestrum.com/')]");
  5251. addObsoleteHost("fileuplo\\.de\/\\w+","//a[contains(@href,'fileuplo.de/')]");
  5252. addObsoleteHost("fileupup\\.com\/\\w+","//a[contains(@href,'fileupup.com/')]");
  5253. addObsoleteHost("forunesia\\.com\/\\w+","//a[contains(@href,'forunesia.com/')]");
  5254. addObsoleteHost("freeuploads\\.fr\/\\w+","//a[contains(@href,'freeuploads.fr/')]");
  5255. addObsoleteHost("uploa\\.dk\/\\w+","//a[contains(@href,'uploa.dk/')]");
  5256. addObsoleteHost("getthebit\\.com\/\\w+","//a[contains(@href,'getthebit.com/')]");
  5257. addObsoleteHost("getzilla\\.net\/\\w+","//a[contains(@href,'getzilla.net/')]");
  5258. addObsoleteHost("goldfile\\.eu\/\\w+","//a[contains(@href,'goldfile.eu/')]");
  5259. addObsoleteHost("good\\.com\/\\w+","//a[contains(@href,'good.com/')]");
  5260. addObsoleteHost("grupload\\.com\/\\w+","//a[contains(@href,'grupload.com/')]");
  5261. addObsoleteHost("hellfile\\.com\/\\w+","//a[contains(@href,'hellfile.com/')]");
  5262. addObsoleteHost("hipfile\\.com\/\\w+","//a[contains(@href,'hipfile.com/')]");
  5263. addObsoleteHost("hitfile\\.com\/\\w+","//a[contains(@href,'hitfile.com/')]");
  5264. addObsoleteHost("hulkfile\\.eu\/\\w+","//a[contains(@href,'hulkfile.eu/')]");
  5265. addObsoleteHost("i-filez\\.com\/\\w+","//a[contains(@href,'i-filez.com/')]");
  5266. addObsoleteHost("ifile\\.ws\/\\w+","//a[contains(@href,'ifile.ws/')]");
  5267. addObsoleteHost("kupload\\.org\/\\w+","//a[contains(@href,'kupload.org/')]");
  5268. addObsoleteHost("duckfile\\.net\/\\w+","//a[contains(@href,'duckfile.net/')]");
  5269. addObsoleteHost("packupload\\.com\/\\w+","//a[contains(@href,'packupload.com/')]");
  5270. addObsoleteHost("terafile\\.com\/\\w+","//a[contains(@href,'terafile.com/')]");
  5271. addObsoleteHost("terafile\\.co\/\\w+","//a[contains(@href,'terafile.co/')]");
  5272. addObsoleteHost("fileom\\.com\/\\w+","//a[contains(@href,'fileom.com/')]");
  5273. addObsoleteHost("luckyshare\\.net\/\\w+","//a[contains(@href,'luckyshare.net/')]");
  5274. addObsoleteHost("lemuploads\\.com\/\\w+","//a[contains(@href,'lemuploads.com/')]");
  5275. addObsoleteHost("limelinx\\.com\/\\w+","//a[contains(@href,'limelinx.com/')]");
  5276. addObsoleteHost("maxshare\\.pl\/\\w+","//a[contains(@href,'maxshare.pl/')]");
  5277. addObsoleteHost("megarelease\\.org\/\\w+","//a[contains(@href,'megarelease.org/')]");
  5278. addObsoleteHost("megashare\\.com\/\\w+","//a[contains(@href,'megashare.com/')]");
  5279. addObsoleteHost("minus\\.com\/\\w+","//a[contains(@href,'minus.com/')]");
  5280. addObsoleteHost("mlfat4arab\\.com\/\\w+","//a[contains(@href,'mlfat4arab.com/')]");
  5281. addObsoleteHost("multishare\\.cz\/\\w+","//a[contains(@href,'multishare.cz/')]");
  5282. addObsoleteHost("nirafile\\.com\/\\w+","//a[contains(@href,'nirafile.com/')]");
  5283. addObsoleteHost("ok2upload\\.com\/\\w+","//a[contains(@href,'ok2upload.com/')]");
  5284. addObsoleteHost("peejeshare\\.com\/\\w+","//a[contains(@href,'peejeshare.com/')]");
  5285. addObsoleteHost("premiuns\\.org\/\\w+","//a[contains(@href,'premiuns.org/')]");
  5286. addObsoleteHost("przeklej\\.net\/\\w+","//a[contains(@href,'przeklej.net/')]");
  5287. addObsoleteHost("qkup\\.net\/\\w+","//a[contains(@href,'qkup.net/')]");
  5288. addObsoleteHost("rapidupload\\.sk\/\\w+","//a[contains(@href,'rapidupload.sk/')]");
  5289. addObsoleteHost("rockdizfile\\.com\/\\w+","//a[contains(@href,'rockdizfile.com/')]");
  5290. addObsoleteHost("rocketfile\\.net\/\\w+","//a[contains(@href,'rocketfile.net/')]");
  5291. addObsoleteHost("share-now\\.net\/\\w+","//a[contains(@href,'share-now.net/')]");
  5292. addObsoleteHost("share76\\.com\/\\w+","//a[contains(@href,'share76.com/')]");
  5293. addObsoleteHost("sharebees\\.com\/\\w+","//a[contains(@href,'sharebees.com/')]");
  5294. addObsoleteHost("sharefiles\\.co\/\\w+","//a[contains(@href,'sharefiles.co/')]");
  5295. addObsoleteHost("slingfile\\.com\/\\w+","//a[contains(@href,'slingfile.com/')]");
  5296. addObsoleteHost("sms4file\\.com\/\\w+","//a[contains(@href,'sms4file.com/')]");
  5297. addObsoleteHost("space4file\\.com\/\\w+","//a[contains(@href,'space4file.com/')]");
  5298. addObsoleteHost("tigershare\\.net\/\\w+","//a[contains(@href,'tigershare.net/')]");
  5299. addObsoleteHost("toucansharing\\.com\/\\w+","//a[contains(@href,'toucansharing.com/')]");
  5300. addObsoleteHost("ubuntuone\\.com\/\\w+","//a[contains(@href,'ubuntuone.com/')]");
  5301. addObsoleteHost("unextfiles\\.com\/\\w+","//a[contains(@href,'unextfiles.com/')]");
  5302. addObsoleteHost("upaj\\.pl\/\\w+","//a[contains(@href,'upaj.pl/')]");
  5303. addObsoleteHost("upfile\\.biz\/\\w+","//a[contains(@href,'upfile.biz/')]");
  5304. addObsoleteHost("uploadbin\\.net\/\\w+","//a[contains(@href,'uploadbin.net/')]");
  5305. addObsoleteHost("uploadic\\.com\/\\w+","//a[contains(@href,'uploadic.com/')]");
  5306. addObsoleteHost("uploadinc\\.com\/\\w+","//a[contains(@href,'uploadinc.com/')]");
  5307. addObsoleteHost("uploading4u\\.eu\/\\w+","//a[contains(@href,'uploading4u.eu/')]");
  5308. addObsoleteHost("uploadjet\\.net\/\\w+","//a[contains(@href,'uploadjet.net/')]");
  5309. addObsoleteHost("uploadorb\\.com\/\\w+","//a[contains(@href,'uploadorb.com/')]");
  5310. addObsoleteHost("upthe\\.net\/\\w+","//a[contains(@href,'upthe.net/')]");
  5311. addObsoleteHost("uptorch\\.com\/\\w+","//a[contains(@href,'uptorch.com/')]");
  5312. addObsoleteHost("vidbox\\.yt\/\\w+","//a[contains(@href,'vidbox.yt/')]");
  5313. addObsoleteHost("videozer\\.com\/\\w+","//a[contains(@href,'videozer.com/')]");
  5314. addObsoleteHost("vreer\\.com\/\\w+","//a[contains(@href,'vreer.com/')]");
  5315. addObsoleteHost("wallobit\\.com\/\\w+","//a[contains(@href,'wallobit.com/')]");
  5316. addObsoleteHost("zooupload\\.com\/\\w+","//a[contains(@href,'zooupload.com/')]");
  5317. addObsoleteHost("xerver\\.co\/\\w+","//a[contains(@href,'xerver.co/')]");
  5318. addObsoleteHost("privatefiles\\.com\/\\w+","//a[contains(@href,'privatefiles.com/')]");
  5319. addObsoleteHost("bitshare\\.com\/\\w+","//a[contains(@href,'bitshare.com/')]");
  5320. addObsoleteHost("asfile\\.com\/\\w+","//a[contains(@href,'asfile.com/')]");
  5321. addObsoleteHost("billionuploads\\.com\/\\w+","//a[contains(@href,'billionuploads.com/')]");
  5322. addObsoleteHost("\\*{7,100}\/[\\w\\d]+","//a[contains(@href,'*******/')]");
  5323. addObsoleteHost("filesaur\\.com\/\\w+","//a[contains(@href,'filesaur.com/')]");
  5324. addObsoleteHost("rapidshare\\.com\/\\w+","//a[contains(@href,'rapidshare.com/')]");
  5325. addObsoleteHost("rapidshare\\.ru\/\\w+","//a[contains(@href,'rapidshare.ru/')]");
  5326. addObsoleteHost("filesfrog\\.net\/\\w+","//a[contains(@href,'filesfrog.net/')]");
  5327. addObsoleteHost("4savefile\\.com\/\\w+","//a[contains(@href,'4savefile.com/')]");
  5328. addObsoleteHost("bayfiles\\.com\/\\w+","//a[contains(@href,'bayfiles.com/')]");
  5329. addObsoleteHost("bayfiles\\.net\/\\w+","//a[contains(@href,'bayfiles.net/')]");
  5330. addObsoleteHost("dodane\\.pl\/\\w+","//a[contains(@href,'dodane.pl/')]");
  5331. addObsoleteHost("dotsemper\\.com\/\\w+","//a[contains(@href,'dotsemper.com/')]");
  5332. addObsoleteHost("egofiles\\.com\/\\w+","//a[contains(@href,'egofiles.com/')]");
  5333. addObsoleteHost("epicshare\\.net\/\\w+","//a[contains(@href,'epicshare.net/')]");
  5334. addObsoleteHost("fiberupload\\.net\/\\w+","//a[contains(@href,'fiberupload.net/')]");
  5335. addObsoleteHost("filemonkey\\.in\/\\w+","//a[contains(@href,'filemonkey.in/')]");
  5336. addObsoleteHost("filemonster\\.net\/\\w+","//a[contains(@href,'filemonster.net/')]");
  5337. addObsoleteHost("filepom\\.com\/\\w+","//a[contains(@href,'filepom.com/')]");
  5338. addObsoleteHost("filesbb\\.com\/\\w+","//a[contains(@href,'filesbb.com/')]");
  5339. addObsoleteHost("fileshareup\\.com\/\\w+","//a[contains(@href,'fileshareup.com/')]");
  5340. addObsoleteHost("filevice\\.com\/\\w+","//a[contains(@href,'filevice.com/')]");
  5341. addObsoleteHost("gigaup\\.fr\/\\w+","//a[contains(@href,'gigaup.fr/')]");
  5342. addObsoleteHost("inafile\\.com\/\\w+","//a[contains(@href,'inafile.com/')]");
  5343. addObsoleteHost("isavelink\\.com\/\\w+","//a[contains(@href,'isavelink.com/')]");
  5344. addObsoleteHost("loombo\\.com\/\\w+","//a[contains(@href,'loombo.com/')]");
  5345. addObsoleteHost("megafiles\\.se\/\\w+","//a[contains(@href,'megafiles.se/')]");
  5346. addObsoleteHost("migupload\\.com\/\\w+","//a[contains(@href,'migupload.com/')]");
  5347. addObsoleteHost("mydisc\\.net\/\\w+","//a[contains(@href,'mydisc.net/')]");
  5348. addObsoleteHost("nitrobits\\.com\/\\w+","//a[contains(@href,'nitrobits.com/')]");
  5349. addObsoleteHost("potload\\.com\/\\w+","//a[contains(@href,'potload.com/')]");
  5350. addObsoleteHost("redload\\.net\/\\w+","//a[contains(@href,'redload.net/')]");
  5351. addObsoleteHost("shareprofi\\.com\/\\w+","//a[contains(@href,'shareprofi.com/')]");
  5352. addObsoleteHost("sharesuper\\.info\/\\w+","//a[contains(@href,'sharesuper.info/')]");
  5353. addObsoleteHost("sinhro\\.net\/\\w+","//a[contains(@href,'sinhro.net/')]");
  5354. addObsoleteHost("speedfile\\.cz\/\\w+","//a[contains(@href,'speedfile.cz/')]");
  5355. addObsoleteHost("speedshare\\.org\/\\w+","//a[contains(@href,'speedshare.org/')]");
  5356. addObsoleteHost("storage.novoro\\.net\/\\w+","//a[contains(@href,'storage.novoro.net/')]");
  5357. addObsoleteHost("swankshare\\.com\/\\w+","//a[contains(@href,'swankshare.com/')]");
  5358. addObsoleteHost("swatupload\\.com\/\\w+","//a[contains(@href,'swatupload.com/')]");
  5359. addObsoleteHost("upafile\\.com\/\\w+","//a[contains(@href,'upafile.com/')]");
  5360. addObsoleteHost("uploadmachine\\.com\/\\w+","//a[contains(@href,'uploadmachine.com/')]");
  5361. addObsoleteHost("uploadsat\\.com\/\\w+","//a[contains(@href,'uploadsat.com/')]");
  5362. addObsoleteHost("upshared\\.com\/\\w+","//a[contains(@href,'upshared.com/')]");
  5363. addObsoleteHost("usefile\\.com\/\\w+","//a[contains(@href,'usefile.com/')]");
  5364. addObsoleteHost("yourfiles\\.to\/\\w+","//a[contains(@href,'yourfiles.to/')]");
  5365. addObsoleteHost("zomgupload\\.com\/\\w+","//a[contains(@href,'zomgupload.com/')]");
  5366. addObsoleteHost("~[\\w\\s~]*","//a[contains(@href,'//~') or contains(@href,'//www.~')]");
  5367. addObsoleteHost("filemup\\.com\/\\w+","//a[contains(@href,'filemup.com/')]");
  5368. addObsoleteHost("tuxfile\\.com\/\\w+","//a[contains(@href,'tuxfile.com/')]");
  5369. // obsolete start
  5370. }
  5371. //obsolete file hosts init end
  5372.  
  5373. function addFileHost(linkRegex, isAliveRegex, isDeadRegex, isUnavaRegex, xpathEx, tryLoop, ispremRegex)
  5374. {
  5375. var host = new Array(7);
  5376. host[0] = linkRegex;
  5377. host[1] = isAliveRegex;
  5378. host[2] = isDeadRegex;
  5379. host[3] = isUnavaRegex;
  5380. host[6] = ispremRegex;
  5381. host[4] = xpathEx;
  5382. tryLoop ? host[5] = true : host[5] = false;
  5383. http_file_hosts.push(host);
  5384. }
  5385. if (GM_getValue("Check_megafileupload_dot_com_links", false))
  5386. {
  5387. addFileHost(
  5388. "megafileupload\.com\/..\/file\/",
  5389. 'downloadbtn',
  5390. 'is not found',
  5391. 'optional--',
  5392. "//a[contains(@href,'megafileupload.com')]");
  5393. }
  5394. if (GM_getValue("Check_demo_dot_ovh_dot_eu_links", false))
  5395. {
  5396. addFileHost(
  5397. "demo\\.ovh\\.eu\/\\w+\/\\w+",
  5398. 'download\\.gif"',
  5399. 'p_point">',
  5400. 'optional--',
  5401. "//a[contains(@href,'demo.ovh.eu')]");
  5402. }
  5403. if (GM_getValue("Check_safelinking_dot_net_links", false))
  5404. {
  5405. addFileHost(
  5406. "safelinking\\.net\/p\/\\w+",
  5407. 'color:green;"',
  5408. 'color:(?:red|orange);"',
  5409. 'color:(?:grey|brown);"',
  5410. "//a[contains(@href,'safelinking.net/p/')]",
  5411. true);
  5412. }
  5413. if (GM_getValue("Check_ultramegabit_dot_com_links", false))
  5414. {
  5415. addFileHost(
  5416. "ultramegabit\\.com\/file\/details\/[\\w+-]",
  5417. 'name="recaptcha_response',
  5418. '="/folder/add"|>File (?:not found|restricted|has been deleted)|<title>ULTRAMEGABIT</title>',
  5419. 'btn-large btn-danger">|Account limitation notice|502 Bad Gateway',
  5420. "//a[contains(@href,'ultramegabit.com/file')]",
  5421. true);
  5422. }
  5423. if (GM_getValue("Check_fastshare_dot_cz_links", false))
  5424. {
  5425. addFileHost(
  5426. "fastshare\\.cz\/\\d+\/\\w*",
  5427. 'dwntable">',
  5428. 'nebyla nalezena|nebola nájdená|nie została odnaleziona|color:red;font-weight:bold;border\\-style:dashed|<i class="fa fa-copyright"></i>',
  5429. 'optional--',
  5430. "//a[contains(@href,'fastshare.cz')]");
  5431. }
  5432. if (GM_getValue("Check_fastshare_dot_org_links", false))
  5433. {
  5434. addFileHost(
  5435. "[fF]ast[sS]hare\\.org\/download",
  5436. 'Download ">',
  5437. 'Diese Datei wurde wegen|wurde kein Dateiname',
  5438. 'optional--',
  5439. "//a[contains(@href,'fastshare.org/download') or contains(@href,'FastShare.org/download')]");
  5440. }
  5441. if (GM_getValue("Check_partage_dash_facile_dot_com_links", false))
  5442. {
  5443. addFileHost(
  5444. "partage-facile\.com\/\\w+",
  5445. 'class="title"><strong>|colspan="2"',
  5446. 'Page introuvable|class="alert-message',
  5447. 'optional--',
  5448. "//a[contains(@href,'partage-facile.com')]");
  5449. }
  5450. if (GM_getValue("Check_rapidgator_dot_net_links", false))
  5451. {
  5452. addFileHost(
  5453. "rapidgator\\.net\/file\/\\w+",
  5454. '/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',
  5455. 'Error 404|File not found|Error 500|Файл не найден|File not found|Select your plan',
  5456. 'optional--',
  5457. "//a[contains(@href,'rapidgator.net/file')]",
  5458. true
  5459. );
  5460. }
  5461. if (GM_getValue("Check_relink_dot_us_links", false))
  5462. {
  5463. addFileHost(
  5464. "relink\\.us\/(?:f\/\\w+|go\\.php\\?id=\\d+|view\\.php\\?id=\\d+)",
  5465. 'online_detail\\.png" alt="Status',
  5466. '(?:offline|partially)_detail\\.png" alt="Status|File deleted',
  5467. 'unknown_detail\\.png" alt="Status',
  5468. "//a[contains(@href,'relink.us/')]"
  5469. );
  5470. }
  5471. if (GM_getValue("Check_uploadstube_dot_de_links", false))
  5472. {
  5473. addFileHost(
  5474. "uploadstube\\.de\/download\\.php\\?file=\\d+",
  5475. 'div id="dl"',
  5476. 'Sie haben den Link falsch',
  5477. 'optional--',
  5478. "//a[contains(@href,'uploadstube.de/download.php?file=')]"
  5479. );
  5480. }
  5481. if (GM_getValue("Check_flyfiles_dot_net_links", false))
  5482. {
  5483. addFileHost(
  5484. "flyfiles\\.net\/\\w+",
  5485. 'download_button"|"Download file"',
  5486. 'File not found!|Файл не найден',
  5487. 'optional--',
  5488. "//a[contains(@href,'flyfiles.net/')]"
  5489. );
  5490. }
  5491. if (GM_getValue("Check_wikiupload_dot_com_links", false))
  5492. {
  5493. addFileHost(
  5494. "wikiupload\\.com\/\\w+",
  5495. 'download-button">',
  5496. 'Sorry, File not found',
  5497. 'optional--',
  5498. "//a[contains(@href,'wikiupload.com/')]"
  5499. );
  5500. }
  5501. if (GM_getValue("Check_hostuje_dot_net_links", false))
  5502. {
  5503. addFileHost(
  5504. "hostuje\\.net\/file\\.php\\?id=\\w+",
  5505. 'file\\.php">|Pobierz Plik',
  5506. 'Podany plik nie zosta',
  5507. 'optional--',
  5508. "//a[contains(@href,'hostuje.net/file')]"
  5509. );
  5510. }
  5511. if (GM_getValue("Check_gettyfile_dot_ru_links", false))
  5512. {
  5513. addFileHost(
  5514. "gettyfile\\.ru\/\\d+",
  5515. 'download\\.gif border',
  5516. '<center><font size="3">',
  5517. 'optional--',
  5518. "//a[contains(@href,'gettyfile.ru/')]"
  5519. );
  5520. }
  5521. if (GM_getValue("Check_tufiles_dot_ru_links", false))
  5522. {
  5523. addFileHost(
  5524. "(?:tufiles|turbob1t|failoobmenik|filesmail|firebit|dlbit|files\\.china\\-gsm|3aka4aem|file\\.piratski|mnogofiles|links-free|turbo-bit|turbosfiles)\\.\\w+\/\\w+",
  5525. 'download\\-file">',
  5526. 'col-1">\\s*<h1>',
  5527. 'optional--',
  5528. "//a[contains(@href,'tufiles.ru/') or contains(@href,'turbob1t.ru/') or contains(@href,'filesmail.ru/') or contains(@href,'failoobmenik.ru/')"+
  5529. " or contains(@href,'firebit.in/') or contains(@href,'dlbit.net/') or contains(@href,'files.china-gsm.ru/') or contains(@href,'3aka4aem.ru/')"+
  5530. " or contains(@href,'file.piratski.ru/') or contains(@href,'mnogofiles.com/') or contains(@href,'links-free.ru/')"+
  5531. " or contains(@href,'turbo-bit.ru/') or contains(@href,'turbosfiles.ru/')]"
  5532. );
  5533. }
  5534. if (GM_getValue("Check_fileshare_dot_in_dot_ua_links", false))
  5535. {
  5536. addFileHost(
  5537. "fileshare\\.in\\.ua\/\\w+",
  5538. '"file_name ',
  5539. 'df_content">',
  5540. 'optional--',
  5541. "//a[contains(@href,'fileshare.in.ua')]"
  5542. );
  5543. }
  5544. if (GM_getValue("Check_data_dot_hu_links", false))
  5545. {
  5546. addFileHost(
  5547. "data\\.hu\/get\/\\d+\/",
  5548. 'download_box_button',
  5549. 'missing\\.php',
  5550. 'optional--',
  5551. "//a[contains(@href,'data.hu/get')]",
  5552. true
  5553. );
  5554. }
  5555. if (GM_getValue("Check_filesmelt_dot_com_links", false))
  5556. {
  5557. addFileHost(
  5558. "filesmelt\\.com\/dl\/\\w+",
  5559. '(Your download is ready|Download File)',
  5560. 'Sorry, but your',
  5561. 'optional--',
  5562. "//a[contains(@href,'filesmelt.com/dl')]"
  5563. );
  5564. }
  5565. if (GM_getValue("Check_indowebster_dot_com_links", false))
  5566. {
  5567. addFileHost(
  5568. "(?:files\\.)?indowebster\\.com\/download\/\\w+\/",
  5569. 'premiumBtn"',
  5570. 'errorMessage"',
  5571. 'optional--',
  5572. "//a[contains(@href,'indowebster.com/download')]"
  5573. );
  5574. }
  5575. if (GM_getValue("Check_superload_dot_cz_links", false))
  5576. {
  5577. addFileHost(
  5578. "superload\\.cz\/dl\/\\w+",
  5579. 'icon-download">',
  5580. 'soubor nebyl nalezen',
  5581. 'optional--',
  5582. "//a[contains(@href,'superload.cz/dl')]"
  5583. );
  5584. }
  5585. if (GM_getValue("Check_hulkfile_dot_eu_links", false))
  5586. {
  5587. addFileHost(
  5588. "(?:w\\.hulkfile\\.com|hulkfile\\.eu)\/\\w+",
  5589. 'op" value="download',
  5590. 'class="err">|width:500px;text-align:left;">',
  5591. 'optional--',
  5592. "//a[contains(@href,'hulkfile.')]"
  5593. );
  5594. }
  5595. if (GM_getValue("Check_easybytez_dot_com_links", false))
  5596. {
  5597. addFileHost(
  5598. "easybytez\\.com\/\\w+",
  5599. 'op" value="download',
  5600. 'stop_error\\.gif',
  5601. 'optional--',
  5602. "//a[contains(@href,'easybytez.com/')]"
  5603. );
  5604. }
  5605. if (GM_getValue("Check_filestore_dot_com_dot_ua_links", false))
  5606. {
  5607. addFileHost(
  5608. "filestore\\.com\\.ua\/\\?d=\\w+",
  5609. 'tdrow1>',
  5610. 'class=warn',
  5611. 'optional--',
  5612. "//a[contains(@href,'filestore.com.ua/?d=')]"
  5613. );
  5614. }
  5615. if (GM_getValue("Check_netkups_dot_com_links", false))
  5616. {
  5617. addFileHost(
  5618. "netkups\\.com\/\\?d=\\w+",
  5619. 'submit">Continue',
  5620. 'page">File not found|deleted due to inactivity',
  5621. 'optional--',
  5622. "//a[contains(@href,'netkups.com/?d=')]"
  5623. );
  5624. }
  5625. if (GM_getValue("Check_openfile_dot_ru_links", false))
  5626. {
  5627. addFileHost(
  5628. "openfile\\.ru\/(?:video\/|)\\d+",
  5629. 'videobox_left">',
  5630. 'blog_title">|not found on this server',
  5631. 'optional--',
  5632. "//a[contains(@href,'openfile.ru/')]"
  5633. );
  5634. }
  5635. if (GM_getValue("Check_extmatrix_dot_com_links", false))
  5636. {
  5637. addFileHost(
  5638. "extmatrix\\.com\/files\/\\w+",
  5639. 'div class="success"',
  5640. 'div class="error"',
  5641. 'optional--',
  5642. "//a[contains(@href,'extmatrix.com/files')]"
  5643. );
  5644. }
  5645. if (GM_getValue("Check_sendfiles_dot_nl_links", false))
  5646. {
  5647. addFileHost(
  5648. "sendfiles\\.nl\/download.aspx\\?ID=\\w+",
  5649. 'content_lnkDownload',
  5650. 'error\\.aspx\\?',
  5651. 'optional--',
  5652. "//a[contains(@href,'sendfiles.nl/download.aspx')]"
  5653. );
  5654. }
  5655. if (GM_getValue("Check_sockshare_dot_com_links", false))
  5656. {
  5657. addFileHost(
  5658. "sockshare\\.com\/file\/\\w+",
  5659. 'choose_speed">',
  5660. 'message t_0\'>',
  5661. 'optional--',
  5662. "//a[contains(@href,'sockshare.com/file')]"
  5663. );
  5664. }
  5665. if (GM_getValue("Check_yourfilestore_dot_com_links", false))
  5666. {
  5667. addFileHost(
  5668. "yourfilestore\\.com\/download\/\\d+\/",
  5669. 'download_data">',
  5670. 'may have been deleted|<h1>Sorry!<\/h1>',
  5671. 'optional--',
  5672. "//a[contains(@href,'yourfilestore.com/download')]"
  5673. );
  5674. }
  5675. if (GM_getValue("Check_nekaka_dot_com_links", false))
  5676. {
  5677. addFileHost(
  5678. "nekaka\\.com\/d\/[\\w-]+",
  5679. 'downloadForm">',
  5680. 'invalid file link',
  5681. 'optional--',
  5682. "//a[contains(@href,'nekaka.com/d')]"
  5683. );
  5684. }
  5685. if (GM_getValue("Check_filebig_dot_net_links", false))
  5686. {
  5687. addFileHost(
  5688. "filebig\\.net\/files\/\\w+",
  5689. 'downloadFile">',
  5690. '<p>File not found<\/p>',
  5691. 'optional--',
  5692. "//a[contains(@href,'filebig.net/files')]"
  5693. );
  5694. }
  5695. if (GM_getValue("Check_gamefront_dot_com_links", false))
  5696. {
  5697. addFileHost(
  5698. "files\\.filefront\\.com\/\/;\\d+;;",
  5699. 'downloadLink">',
  5700. 'File not found, you',
  5701. 'optional--',
  5702. "//a[contains(@href,'files.filefront.com')]"
  5703. );
  5704.  
  5705. addFileHost(
  5706. "gamefront\\.com\/files\/\\d+",
  5707. 'downloadLink">',
  5708. 'File not found, you',
  5709. 'optional--',
  5710. "//a[contains(@href,'gamefront.com/files')]"
  5711. );
  5712. }
  5713. if (GM_getValue("Check_hyperfileshare_dot_com_links", false))
  5714. {
  5715. addFileHost(
  5716. "(?:download\\.|)hyperfileshare\\.com\/(?:download\\.php\\?code=|d\/)\\w+",
  5717. 'dnlLnk"',
  5718. 'already been deleted',
  5719. 'optional--',
  5720. "//a[contains(@href,'hyperfileshare.com/download') or contains(@href,'hyperfileshare.com/d')]"
  5721. );
  5722. }
  5723. if (GM_getValue("Check_hellupload_dot_com_links", false))
  5724. {
  5725. addFileHost(
  5726. "hellupload\\.com\/\\w+",
  5727. '<h3>Download File<br',
  5728. 'id="podstrona">|AVOID_IE_BUG',
  5729. 'optional--',
  5730. "//a[contains(@href,'hellupload.com/')]"
  5731. );
  5732. }
  5733. if (GM_getValue("Check_free_dash_uploading_dot_com_links", false))
  5734. {
  5735. addFileHost(
  5736. "free\\-uploading\\.com\/\\w+",
  5737. 'op" value="download',
  5738. 'class="err">|width:500px;text-align:left;">',
  5739. 'optional--',
  5740. "//a[contains(@href,'free-uploading.com/')]"
  5741. );
  5742. }
  5743. if (GM_getValue("Check_fileape_dot_com_links", false))
  5744. {
  5745. addFileHost(
  5746. "fileape\\.com\/download\\-",
  5747. 'button_dl\\.png',
  5748. 'does not exist\\.',
  5749. 'optional--',
  5750. "//a[contains(@href,'fileape.com/')]"
  5751. );
  5752. }
  5753. if (GM_getValue("Check_uppit_dot_com_links", false))
  5754. {
  5755. addFileHost(
  5756. "(?:uppit\\.com|up\\.ht)\/\\w+",
  5757. 'op" value="download',
  5758. 'class="err">|style="width:500px;text-align:left;"|fish-404\\.png"',
  5759. 'optional--',
  5760. "//a[contains(@href,'up.ht/') or contains(@href,'uppit.com/')]",
  5761. true
  5762. );
  5763. }
  5764. if (GM_getValue("Check_nosupload_dot_com_links", false))
  5765. {
  5766. addFileHost(
  5767. "nosupload\\.com\/(?:\\?d=)?\\w+",
  5768. 'op" value="download',
  5769. '>File Not Found<',
  5770. 'optional--',
  5771. "//a[contains(@href,'nosupload.com')]",
  5772. true
  5773. );
  5774. }
  5775. if (GM_getValue("Check_filesin_dot_com_links", false))
  5776. {
  5777. addFileHost(
  5778. "filesin\\.com\/\\w+\/download\\.html",
  5779. 'download_area">',
  5780. 'error_note">',
  5781. 'optional--',
  5782. "//a[contains(@href,'filesin.com/')]",
  5783. true
  5784. );
  5785. }
  5786. if (GM_getValue("Check_nowdownload_dot_eu_links", false))
  5787. {
  5788. addFileHost(
  5789. "nowdownload\\.eu\/dl\/\\w+",
  5790. 'alert-success"',
  5791. 'This file does not exist!',
  5792. 'The file is being transfered',
  5793. "//a[contains(@href,'nowdownload.eu/dl')]"
  5794. );
  5795. }
  5796. if (GM_getValue("Check_axifile_dot_com_links", false))
  5797. {
  5798. addFileHost(
  5799. "axifile\\.com(?:\/\w(2))?\/\\??\\w+",
  5800. 'Dbutton_big"',
  5801. 'download\\-error\\.php',
  5802. 'optional--',
  5803. "//a[contains(@href,'axifile.com/')]"
  5804. );
  5805. }
  5806. if (GM_getValue("Check_hulkshare_dot_com_links", false))
  5807. {
  5808. addFileHost(
  5809. "hulkshare\.com\/\\w+",
  5810. 'download\.sam\.png|This is a private file|id="filename',
  5811. 'File does not exist|fingerprint protected copyright',
  5812. 'optional--',
  5813. "//a[contains(@href,'hulkshare.com')]"
  5814. );
  5815. }
  5816. if (GM_getValue("Check_turbobit_dot_net_links", false)) //folders
  5817. {
  5818. addFileHost(
  5819. "turbobit\\.(?:net|pl)\/download\/folder\/\\d+",
  5820. 'col-1">\\s*<s',
  5821. 'col-1">\\s*<h',
  5822. 'optional--',
  5823. "//a[contains(@href,'turbobit.') and contains(@href,'download/folder')]"
  5824. );
  5825. }
  5826. if (GM_getValue("Check_hitfile_dot_net_links", false)) //folders
  5827. {
  5828. addFileHost(
  5829. "hitfile\\.net\/download\/folder\/\\d+",
  5830. 'content">\\s*<s',
  5831. 'content">\\s*<h',
  5832. 'optional--',
  5833. "//a[contains(@href,'hitfile.net/download/folder')]"
  5834. );
  5835. }
  5836. if (GM_getValue("Check_netload_dot_in_links", false)) //folders
  5837. {
  5838. addFileHost(
  5839. "netload\\.in\/folder\\.php\\?folder_id=\\w+",
  5840. 'images\/online\\.gif',
  5841. 'InPage_Error"',
  5842. 'optional--',
  5843. "//a[contains(@href,'netload.in/folder.php')]"
  5844. );
  5845. }
  5846. if (GM_getValue("Check_movshare_dot_net_links", false))
  5847. {
  5848. addFileHost(
  5849. "movshare\\.net\\/video\\/\\w+",
  5850. 'optional--"',
  5851. 'no longer exists',
  5852. 'optional--',
  5853. "//a[contains(@href,'movshare.net/video')]"
  5854. );
  5855. }
  5856. if (GM_getValue("Check_plunder_dot_com_links", false))
  5857. {
  5858. addFileHost(
  5859. "plunder\.com\/\\w+",
  5860. 'x\/download\\.gif',
  5861. '404 - File or directory not found.',
  5862. 'optional--',
  5863. "//a[contains(@href,'plunder.com')]"
  5864. );
  5865. }
  5866. if (GM_getValue("Check_mafiastorage_dot_com_links", false))
  5867. {
  5868. addFileHost(
  5869. "mafiastorage\\.com\/\\w+",
  5870. 'op" value="download',
  5871. 'class="err">|style="width:500px;text-align:left;"',
  5872. 'optional--',
  5873. "//a[contains(@href,'mafiastorage.com/')]"
  5874. );
  5875. }
  5876. if (GM_getValue("Check_uploadspace_dot_pl_links", false))
  5877. {
  5878. addFileHost(
  5879. "uploadspace\.pl\/plik\\w+",
  5880. 'Downloading .+? \\|',
  5881. 'Downloading a file',
  5882. 'optional--',
  5883. "//a[contains(@href,'uploadspace.pl/plik')]"
  5884. );
  5885. }
  5886. if (GM_getValue("Check_uploadingit_dot_com_links", false))
  5887. {
  5888. addFileHost(
  5889. "uploadingit\\.com\/file\/\\w+",
  5890. 'downloadTitle">',
  5891. 'deleteContent">',
  5892. 'optional--',
  5893. "//a[contains(@href,'uploadingit.com/file')]"
  5894. );
  5895. }
  5896. if (GM_getValue("Check_rghost_dot_net_links", false))
  5897. {
  5898. addFileHost(
  5899. "rghost\.(?:net|ru)\/(?:|private\/)\\d+",
  5900. 'download_link|btn large download"',
  5901. 'file is restricted|File is deleted|503 Service Unavailable',
  5902. 'File was deleted',
  5903. "//a[contains(@href,'rghost.')]"
  5904. );
  5905. }
  5906. if (GM_getValue("Check_xdisk_dot_cz_links", false))
  5907. {
  5908. addFileHost(
  5909. "xdisk\\.cz\/(?:..\/)?download\\.php\\?id=\\w+",
  5910. '">Staženo:\\s*<\/span>',
  5911. 'Soubor, který hledáte nenalezen',
  5912. 'optional--',
  5913. "//a[contains(@href,'xdisk.cz/')]"
  5914. );
  5915. }
  5916. if (GM_getValue("Check_expressleech_dot_com_links", false))
  5917. {
  5918. addFileHost(
  5919. "expressleech\.com\/\\w+",
  5920. 'src="/img/Download.gif"|var _gaq =',
  5921. 'var rr =|403 Forbidden',
  5922. 'optional--',
  5923. "//a[contains(@href,'expressleech.com')]");
  5924. }
  5925. if (GM_getValue("Check_2downloadz_dot_com_links", false))
  5926. {
  5927. addFileHost(
  5928. "2downloadz\.com\/\\w+",
  5929. 'color="#848484|src="images/Download.png"|color:#238DCA',
  5930. 'color="#006DCC|File error',
  5931. 'optional--',
  5932. "//a[contains(@href,'2downloadz.com')]");
  5933. }
  5934. if (GM_getValue("Check_mightyupload_dot_com_links", false))
  5935. {
  5936. addFileHost(
  5937. "mightyupload\.com\/\\w+",
  5938. 'background:#ccc;text-align|CONTENT="Download File"',
  5939. 'style="background:#eee|var rr =|File Not Found',
  5940. 'optional--',
  5941. "//a[contains(@href,'mightyupload.com')]");
  5942. }
  5943. if (GM_getValue("Check_uncapped_dash_downloads_dot_com_links", false))
  5944. {
  5945. addFileHost(
  5946. "uncapped-downloads\.com\/\\w+",
  5947. 'btn_download',
  5948. 'File Not Found',
  5949. 'optional--',
  5950. "//a[contains(@href,'uncapped-downloads.com')]");
  5951. }
  5952. if (GM_getValue("Check_k2s_dot_cc_links", false))
  5953. {
  5954. addFileHost(
  5955. "k2s\.cc\/\\w+",
  5956. 'Click here for slow download with|class="btn" id="yw0"|onclick="download',
  5957. 'Error 404|class="errorSummary">|this file is blocked or deleted|>404 Not Found<|To avoid damaged files|This file is no longer available',
  5958. 'please try later',
  5959. //'optional--',
  5960. "//a[contains(@href,'k2s.cc')]");
  5961. }
  5962. if (GM_getValue("Check_keep2share_dot_cc_links", false))
  5963. {
  5964. addFileHost(
  5965. "keep2share\.cc\/\\w+",
  5966. 'Click here for slow download with|class="btn" id="yw0"|onclick="download',
  5967. 'Error 404|class="errorSummary">|this file is blocked or deleted|>404 Not Found<|To avoid damaged files|This file is no longer available',
  5968. 'please try later',
  5969. //'optional--',
  5970. "//a[contains(@href,'keep2share.cc')]");
  5971. }
  5972. if (GM_getValue("Check_keep2s_dot_cc_links", false))
  5973. {
  5974. addFileHost(
  5975. "keep2s\.cc\/\\w+",
  5976. 'Click here for slow download with|class="btn" id="yw0"|onclick="download',
  5977. 'Error 404|class="errorSummary">|this file is blocked or deleted|>404 Not Found<|To avoid damaged files|This file is no longer available',
  5978. 'please try later',
  5979. //'optional--',
  5980. "//a[contains(@href,'keep2s.cc')]");
  5981. }
  5982. if (GM_getValue("Check_keep2share_dot_com_links", false))
  5983. {
  5984. addFileHost(
  5985. "keep2share\.com\/\\w+",
  5986. 'Click here for slow download with|class="btn" id="yw0"|onclick="download',
  5987. 'Error 404|class="errorSummary">|this file is blocked or deleted|>404 Not Found<|To avoid damaged files|This file is no longer available',
  5988. 'please try later',
  5989. //'optional--',
  5990. "//a[contains(@href,'keep2share.com')]");
  5991. }
  5992. if (GM_getValue("Check_anysend_dot_com_links", false))
  5993. {
  5994. addFileHost(
  5995. "anysend\.com\/\\w+",
  5996. 'var openCalled=false;|content="noindex"',
  5997. '_trackPageview',
  5998. 'optional--',
  5999. "//a[contains(@href,'anysend.com')]");
  6000. }
  6001. if (GM_getValue("Check_datafile_dot_com_links", false))
  6002. {
  6003. addFileHost(
  6004. "datafile\.com\/\\w+",
  6005. 'src="/js/files_download.js"|get-premium-button',
  6006. 'ErrorCode|class="error-msg"|ErrorCode 0: Invalid Link',
  6007. 'You are downloading another file at this moment|You exceeded your free',
  6008. //'optional--',
  6009. "//a[contains(@href,'datafile.com')]");
  6010. }
  6011. if (GM_getValue("Check_upstore_dot_net_links", false))
  6012. {
  6013. addFileHost(
  6014. "upstore\.net\/\\w+",
  6015. 'style="margin-top: 20px">|style="text-align:center; margin: 20px 0 100px;">',
  6016. 'File not found|onload="redirect|class="error">',
  6017. 'optional--',
  6018. "//a[contains(@href,'upstore.net')]");
  6019. }
  6020. if (GM_getValue("Check_upsto_dot_re_links", false))
  6021. {
  6022. addFileHost(
  6023. "upsto\.re\/\\w+",
  6024. 'style="margin-top: 20px">|style="text-align:center; margin: 20px 0 100px;">',
  6025. 'File not found|onload="redirect|class="error">',
  6026. 'optional--',
  6027. "//a[contains(@href,'upsto.re')]");
  6028. }
  6029. if (GM_getValue("Check_speedy_dot_sh_links", false))
  6030. {
  6031. addFileHost(
  6032. "speedy\.sh\/\\w+",
  6033. 'bgcolor=#eeeeee|class="addthis',
  6034. 'File not found|downloadfilenamenotfound>',
  6035. 'optional--',
  6036. "//a[contains(@href,'speedy.sh')]");
  6037. }
  6038. if (GM_getValue("Check_sanshare_dot_com_links", false))
  6039. {
  6040. addFileHost(
  6041. "sanshare\.com\/\\w+",
  6042. 'SANSHARE_TOPBANNER|offset-1"><h3><b>Download File',
  6043. 'offset-1"><b>File Not Found<|width:500px;text-align',
  6044. 'optional--',
  6045. "//a[contains(@href,'sanshare.com')]");
  6046. }
  6047. if (GM_getValue("Check_dizzcloud_dot_com_links", false))
  6048. {
  6049. addFileHost(
  6050. "dizzcloud\.com\/\\w+",
  6051. '2299210355.png"|class="name"',
  6052. 'span>404|class="cyan upgrade"',
  6053. 'optional--',
  6054. "//a[contains(@href,'dizzcloud.com')]");
  6055. }
  6056. if (GM_getValue("Check_kingfiles_dot_net_links", false))
  6057. {
  6058. addFileHost(
  6059. "kingfiles\.net\/\\w+",
  6060. 'img/spriteBanner.png|If you are the owner of this file',
  6061. 'var rr =|"description" CONTENT="Download File ">|<div style="width:500px;text-align:left;">|The file was removed by administrator',
  6062. 'optional--',
  6063. "//a[contains(@href,'kingfiles.net')]");
  6064. }
  6065. if (GM_getValue("Check_uploadhero_dot_co_links", false))
  6066. {
  6067. addFileHost(
  6068. "uploadhero\\.co\/dl\/\\w+",
  6069. 'class="nom_de_fichier"|Unlimited downloads|Estimated download time|Lien de téléchargement"',
  6070. 'not available on our server|pas disponible sur nos serveurs|Le lien du fichier est incorrect',
  6071. 'optional--',
  6072. "//a[contains(@href,'uploadhero.co/dl')]"
  6073. );
  6074. }
  6075. if (GM_getValue("Check_secureupload_dot_eu_links", false))
  6076. {
  6077. addFileHost(
  6078. "secureupload\\.eu\/\\w+",
  6079. 'Downloading',
  6080. 'cannot be found|File Not Found|could not be found',
  6081. 'optional--',
  6082. "//a[contains(@href,'secureupload.eu')]"
  6083. );
  6084. }
  6085. if (GM_getValue("Check_ge_dot_tt_links", false))
  6086. {
  6087. addFileHost(
  6088. "ge\.tt\/\\w+",
  6089. 'downloads pic',
  6090. 'is NOT the same as',
  6091. 'optional--',
  6092. "//a[contains(@href,'ge.tt')]");
  6093. }
  6094. if (GM_getValue("Check_filefactory_dot_com_links", false))
  6095. {
  6096. addFileHost(
  6097. "filefactory\.com\/\\w+",
  6098. 'div id="file_holder"|download.css',
  6099. 'File Removed|Invalid Download Link|File Unavailable|Server Failed|Datei entfernt|This file has been removed',
  6100. 'Server Maintenance|temporarily overloaded',
  6101. //'optional--',
  6102. "//a[contains(@href,'filefactory.com')]");
  6103. }
  6104. if (GM_getValue("Check_filesflash_dot_net_links", false))
  6105. {
  6106. addFileHost(
  6107. "filesflash\.net\/\\w+",
  6108. 'align:right">Filename:',
  6109. 'class="msg">',
  6110. 'optional--',
  6111. "//a[contains(@href,'filesflash.net')]");
  6112. }
  6113. if (GM_getValue("Check_rapidgator_dot_net_links", false)) //folders
  6114. {
  6115. addFileHost(
  6116. "rapidgator\\.net\/folder\/\\w+",
  6117. 'href="/folder/',
  6118. 'class="empty|Folder not found|Carpeta no encontrada|Dossier non trouvé|Папка не найдена',
  6119. 'optional--',
  6120. "//a[contains(@href,'rapidgator.net/folder')]",
  6121. true
  6122. );
  6123. }
  6124. if (GM_getValue("Check_salefiles_dot_com_links", false))
  6125. {
  6126. addFileHost(
  6127. "salefiles\.com\/\\w+",
  6128. '<Title>Download|CONTENT="Download',
  6129. 'font:15px Arial|background:#eee;',
  6130. 'optional--',
  6131. "//a[contains(@href,'salefiles.com')]");
  6132. }
  6133. if (GM_getValue("Check_megairon_dot_net_links", false))
  6134. {
  6135. addFileHost(
  6136. "megairon\.net\/\\w+",
  6137. 'border: 5px #ffeb90 solid;',
  6138. 'CONTENT="Download File ">|var rr =',
  6139. 'optional--',
  6140. "//a[contains(@href,'megairon.net')]");
  6141. }
  6142. if (GM_getValue("Check_datoid_dot_cz_links", false))
  6143. {
  6144. addFileHost(
  6145. "datoid\.cz\/\\w+",
  6146. 'btn-download|class="icon-download-large"',
  6147. 'Stránka nenalezena|error-404|Soubor byl zablokován',
  6148. 'optional--',
  6149. "//a[contains(@href,'datoid.cz')]");
  6150. }
  6151. if (GM_getValue("Check_stiahni_dot_si_links", false))
  6152. {
  6153. addFileHost(
  6154. "stiahni\.si\/\\w+",
  6155. 'report_icon.png"|slow-download-button',
  6156. 'none.png|deleted|<h2>Error 500</h2>',
  6157. 'optional--',
  6158. "//a[contains(@href,'stiahni.si')]");
  6159. }
  6160. if (GM_getValue("Check_cloudstor_dot_es_links", false))
  6161. {
  6162. addFileHost(
  6163. "cloudstor\.es\/\\w+",
  6164. '"btn_download"',
  6165. '404: Page Not Found',
  6166. 'optional--',
  6167. "//a[contains(@href,'cloudstor.es')]");
  6168. }
  6169. if (GM_getValue("Check_streamfile_dot_com_links", false))
  6170. {
  6171. addFileHost(
  6172. "streamfile\.com\/\\w+",
  6173. 'class="btn',
  6174. 'class="green-btn',
  6175. 'optional--',
  6176. "//a[contains(@href,'streamfile.com')]");
  6177. }
  6178. if (GM_getValue("Check_eyesfile_dot_ca_links", false))
  6179. {
  6180. addFileHost(
  6181. "eyesfile\.ca\/\\w+",
  6182. 'value="Get Link',
  6183. 'var rr =',
  6184. 'optional--',
  6185. "//a[contains(@href,'eyesfile.ca')]");
  6186. }
  6187. if (GM_getValue("Check_filemoney_dot_com_links", false))
  6188. {
  6189. addFileHost(
  6190. "filemoney\.com\/\\w+",
  6191. 'og:title',
  6192. '404 Not Found|<Title>FileMoney',
  6193. 'optional--',
  6194. "//a[contains(@href,'filemoney.com')]");
  6195. }
  6196. if (GM_getValue("Check_uploadboy_dot_com_links", false))
  6197. {
  6198. addFileHost(
  6199. "uploadboy\.com\/\\w+",
  6200. 'width="740">',
  6201. 'var rr =|background:#ffffff|not be found',
  6202. 'optional--',
  6203. "//a[contains(@href,'uploadboy.com')]");
  6204. }
  6205. if (GM_getValue("Check_speedshare_dot_eu_links", false))
  6206. {
  6207. addFileHost(
  6208. "speedshare\.eu\/\\w+",
  6209. 'favicon.png|color:#3d87c0|cross.png"',
  6210. 'var rr =|File Not Found|style="background:#eee',
  6211. 'optional--',
  6212. "//a[contains(@href,'speedshare.eu')]");
  6213. }
  6214. if (GM_getValue("Check_unlimitzone_dot_com_links", false))
  6215. {
  6216. addFileHost(
  6217. "unlimitzone\.com\/\\w+",
  6218. 'content="1" name="',
  6219. 'var rr =|File Not Found',
  6220. 'optional--',
  6221. "//a[contains(@href,'unlimitzone.com')]");
  6222. }
  6223. if (GM_getValue("Check_rioupload_dot_com_links", false))
  6224. {
  6225. addFileHost(
  6226. "rioupload\.com\/\\w+",
  6227. 'sell.jpg',
  6228. 'var rr =',
  6229. 'optional--',
  6230. "//a[contains(@href,'rioupload.com')]");
  6231. }
  6232. if (GM_getValue("Check_rg_dot_to_links", false))
  6233. {
  6234. addFileHost(
  6235. "rg\.to\/\\w+",
  6236. '/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',
  6237. 'Error 404|File not found|Select your plan',
  6238. 'optional--',
  6239. //'optional--',
  6240. "//a[contains(@href,'rg.to')]");
  6241. }
  6242. if (GM_getValue("Check_jumbofiles_dot_org_links", false))
  6243. {
  6244. addFileHost(
  6245. "jumbofiles\.org\/\\w+",
  6246. 'H71C5.png|class="downloadtitle">',
  6247. 'var swfu|ViewSourceBIN.png',
  6248. 'optional--',
  6249. "//a[contains(@href,'jumbofiles.org')]");
  6250. }
  6251. if (GM_getValue("Check_fshare_dot_vn_links", false))
  6252. {
  6253. addFileHost(
  6254. "fshare\\.vn\/file\/\\w+",
  6255. 'action="#download"|left; width: 330px;">|class="bt_down"',
  6256. 'không tồn tại|class="color_red m_t_50"',
  6257. 'optional--',
  6258. "//a[contains(@href,'fshare.vn/file')]",
  6259. true
  6260. );
  6261. }
  6262. if (GM_getValue("Check_spaceforfiles_dot_com_links", false))
  6263. {
  6264. addFileHost(
  6265. "spaceforfiles\.com\/\\w+",
  6266. 'btn_slowspeed_b.jpg|value="download1|class="btn_blue',
  6267. 'var rr =|AVOID_IE_BUG',
  6268. 'optional--',
  6269. "//a[contains(@href,'spaceforfiles.com')]");
  6270. }
  6271. if (GM_getValue("Check_google_dot_com_links", false))
  6272. {
  6273. addFileHost(
  6274. "google\\.com\/file\/\\w+",
  6275. 'content="!">|color:#2d2d2d',
  6276. '12pt; font-weight:|class="errorMessage"|F0F6FF',
  6277. 'optional--',
  6278. "//a[contains(@href,'google.com/file')]",
  6279. true
  6280. );
  6281. }
  6282. if (GM_getValue("Check_google_dot_com_links", false))
  6283. {
  6284. addFileHost(
  6285. "docs.google.com\/\\w+",
  6286. 'content="!">|color:#2d2d2d',
  6287. '12pt; font-weight:|class="errorMessage"|F0F6FF|Error 404',
  6288. 'optional--',
  6289. "//a[contains(@href,'docs.google.com')]",
  6290. true
  6291. );
  6292. }
  6293. if (GM_getValue("Check_google_dot_com_links", false))
  6294. {
  6295. addFileHost(
  6296. "drive.google.com\/\\w+",
  6297. 'content="!">|color:#2d2d2d|id="uc-download-link',
  6298. '12pt; font-weight:|class="errorMessage"|F0F6FF|Error 404',
  6299. 'optional--',
  6300. "//a[contains(@href,'drive.google.com')]",
  6301. true
  6302. );
  6303. }
  6304. if (GM_getValue("Check_up_dot_media1fire_dot_com_links", false))
  6305. {
  6306. addFileHost(
  6307. "up.media1fire\.com\/\\w+",
  6308. 'class="addthis_|value="download',
  6309. 'var rr =|AVOID_IE_BUG|<div style="width:500px;text-align:left;">',
  6310. 'optional--',
  6311. "//a[contains(@href,'up.media1fire.com')]");
  6312. }
  6313. if (GM_getValue("Check_depfile_dot_com_links", false))
  6314. {
  6315. addFileHost(
  6316. "depfile\.com\/\\w+",
  6317. 'logo_0.png|downloads.gif"',
  6318. 'border-color: #5D729B;|bgcolor="#778AAF"',
  6319. 'optional--',
  6320. "//a[contains(@href,'depfile.com')]");
  6321. }
  6322. if (GM_getValue("Check_go4up_dot_com_links", false))
  6323. {
  6324. addFileHost(
  6325. "go4up\.com\/\\w+",
  6326. 'style="width: 100%;">|value="Access|download_line',
  6327. '<title>GO4UP|dmca',
  6328. 'optional--',
  6329. "//a[contains(@href,'go4up.com')]");
  6330. }
  6331. if (GM_getValue("Check_redbunker_dot_net_links", false))
  6332. {
  6333. addFileHost(
  6334. "redbunker\.net\/\\w+",
  6335. 'dload.png|rowspan="3">|yep.gif',
  6336. 'CONTENT="RedBunker|#D3D3D3;|color:#d33|AVOID_IE_BUG',
  6337. 'optional--',
  6338. "//a[contains(@href,'redbunker.net')]");
  6339. }
  6340. if (GM_getValue("Check_divxpress_dot_com_links", false))
  6341. {
  6342. addFileHost(
  6343. "divxpress\.com\/\\w+",
  6344. 'btn_download|logo.png"',
  6345. 'AVOID_IE_BUG|var rr =',
  6346. 'optional--',
  6347. "//a[contains(@href,'divxpress.com')]");
  6348. }
  6349. if (GM_getValue("Check_anafile_dot_com_links", false))
  6350. {
  6351. addFileHost(
  6352. "anafile\.com\/\\w+",
  6353. 'width="881" valign="top|color="#800080"',
  6354. 'style="width:500px;text-align:left;">|file was deleted|AVOID_IE_BUG',
  6355. 'optional--',
  6356. "//a[contains(@href,'anafile.com')]");
  6357. }
  6358. if (GM_getValue("Check_uploadable_dot_ch_links", false))
  6359. {
  6360. addFileHost(
  6361. "uploadable\\.ch\/file\/\\w+",
  6362. 'captcha.js"|payment.js"|class="btn_download"',
  6363. '<div class="icon_err">|<div class="errorBox">|"error_arrow">',
  6364. 'optional--',
  6365. "//a[contains(@href,'uploadable.ch/file')]",
  6366. true
  6367. );
  6368. }
  6369. if (GM_getValue("Check_arabloads_dot_com_links", false))
  6370. {
  6371. addFileHost(
  6372. "arabloads\.com\/\\w+",
  6373. 'name="method_free"|name="method_premium"',
  6374. 'background:#eee;font:15px Arial;">|AVOID_IE_BUG|Verdana;padding:3px;">Error',
  6375. 'optional--',
  6376. "//a[contains(@href,'arabloads.com')]");
  6377. }
  6378. if (GM_getValue("Check_sharerepo_dot_com_links", false))
  6379. {
  6380. addFileHost(
  6381. "sharerepo\.com\/\\w+",
  6382. 'name="method_free"',
  6383. 'var public_on=|The file you were looking for could not be found',
  6384. 'optional--',
  6385. "//a[contains(@href,'sharerepo.com')]");
  6386. }
  6387. if (GM_getValue("Check_sfshare_dot_se_links", false))
  6388. {
  6389. addFileHost(
  6390. "sfshare\.se\/\\w+",
  6391. 'id="btn_download"|class="btn btn-primary txt-bold" value="',
  6392. 'AVOID_IE_BUG|var rr =|style="width:500px;text-align:left;">|Reason for deletion|The file was removed',
  6393. 'optional--',
  6394. "//a[contains(@href,'sfshare.se')]");
  6395. }
  6396. if (GM_getValue("Check_files_dot_fm_links", false))
  6397. {
  6398. addFileHost(
  6399. "files\.fm\/\\w+",
  6400. 'dl.png"|background-color: transparent',
  6401. 'margin: 40px 40px|background: none;',
  6402. 'optional--',
  6403. "//a[contains(@href,'files.fm')]");
  6404. }
  6405. if (GM_getValue("Check_koofile_dot_com_links", false))
  6406. {
  6407. addFileHost(
  6408. "koofile\.com\/\\w+",
  6409. 'value="download1">|name="method_free"',
  6410. 'class="overview-content c_text-box ">|style="padding-top:3px;">|class="rt1 c">',
  6411. 'optional--',
  6412. "//a[contains(@href,'koofile.com')]");
  6413. }
  6414. if (GM_getValue("Check_shared_dot_com_links", false))
  6415. {
  6416. addFileHost(
  6417. "shared\.com\/\\w+",
  6418. 'class="icon-download|class="attachment-size">',
  6419. 'img/404.png"|error-img -->',
  6420. 'optional--',
  6421. "//a[contains(@href,'shared.com')]");
  6422. }
  6423. if (GM_getValue("Check_vidxden_dot_com_links", false))
  6424. {
  6425. addFileHost(
  6426. "vidxden\\.com\/\\w+",
  6427. 'Continue to Video"',
  6428. 'No such file',
  6429. 'optional--',
  6430. "//a[contains(@href,'vidxden.com')]"
  6431. );
  6432. }
  6433. if (GM_getValue("Check_muchshare_dot_net_links", false))
  6434. {
  6435. addFileHost(
  6436. "muchshare\\.net\/\\w+",
  6437. 'id="btn_download"',
  6438. 'File Not Found|width: 500px; text-align: left;',
  6439. 'optional--',
  6440. "//a[contains(@href,'muchshare.net')]"
  6441. );
  6442. }
  6443. if (GM_getValue("Check_daten_dash_hoster_dot_de_links", false))
  6444. {
  6445. addFileHost(
  6446. "(?:daten-hoster\\.de\/file\/\\w+|filehosting\\.org\/file\/\\w+|xtraupload\\.de\/\\?d=\\w+)",
  6447. 'Details zur Datei|Details page',
  6448. 'Jetzt hochladen|upload now',
  6449. 'optional--',
  6450. "//a[contains(@href,'daten-hoster.de/file') or contains(@href,'filehosting.org/file') or contains(@href,'xtraupload.de')]"
  6451. );
  6452. }
  6453. if (GM_getValue("Check_upload_dash_il_dot_net_links", false))
  6454. {
  6455. addFileHost(
  6456. "(?:upload-il|przeslij)\.net\/(?:en|he|ar|ru|)\/?\\w+",
  6457. 'downloadbtn"',
  6458. 'DL_FileNotFound',
  6459. 'optional--',
  6460. "//a[contains(@href,'upload-il.net') or contains(@href,'przeslij.net')]"
  6461. );
  6462. }
  6463. if (GM_getValue("Check_fileflyer_dot_com_links", false))
  6464. {
  6465. addFileHost(
  6466. "fileflyer\.com\/view\/\\w+",
  6467. '(?:dwl|locked)btn"',
  6468. 'error.gif"|link">Removed|removedlink">',
  6469. 'optional--',
  6470. "//a[contains(@href,'fileflyer.com')]"
  6471. );
  6472. }
  6473. if (GM_getValue("Check_filestore_dot_to_links", false))
  6474. {
  6475. addFileHost(
  6476. "filestore\.to\/\\?d=\\w+",
  6477. '"downloading"',
  6478. 'Datei wurde nicht gefunden',
  6479. 'optional--',
  6480. "//a[contains(@href,'filestore.to')]"
  6481. );
  6482. }
  6483. if (GM_getValue("Check_easy_dash_share_dot_com_links", false))
  6484. {
  6485. addFileHost(
  6486. "(?:w\\d*\.|)(?:crocko|easy-share)\\.com\/.",
  6487. 'fz24">Download|class="pl15">',
  6488. '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',
  6489. 'optional--',
  6490. "//a[contains(@href,'easy-share.com') or contains(@href,'crocko.com')]"
  6491. );
  6492. }
  6493. if (GM_getValue("Check_burnupload_dot_com_links", false))
  6494. {
  6495. addFileHost(
  6496. "burnupload\\.(?:com\/\\?d=|ihiphop\\.com\/download\\.php\\?id=)\\w+",
  6497. 'File size:',
  6498. 'file is not found',
  6499. 'optional--',
  6500. "//a[contains(@href,'burnupload.com') or contains(@href,'burnupload.ihiphop.com')]"
  6501. );
  6502. }
  6503. if (GM_getValue("Check_datei_dot_to_links", false))
  6504. {
  6505. addFileHost(
  6506. "datei\\.to\/\\??\\w+",
  6507. 'icon_downloaden\\.png|>Download starten<',
  6508. 'Datei wurde nicht gefunden|icon_deleted.png',
  6509. 'optional--',
  6510. "//a[contains(@href,'datei.to')]"
  6511. );
  6512. }
  6513. if (GM_getValue("Check_yunfile_dot_com_links", false))
  6514. {
  6515. addFileHost(
  6516. "(?:yunfile|filemarkets)\\.com\/\\w+",
  6517. '<body class="body" id="body">|value="Slow Download"',
  6518. '<body class="body" >',
  6519. 'optional--',
  6520. "//a[contains(@href,'yunfile.com') or contains(@href,'filemarkets.com')]"
  6521. );
  6522. }
  6523. if (GM_getValue("Check_putlocker_dot_com_links", false))
  6524. {
  6525. addFileHost(
  6526. "putlocker\\.com\/file\/\\w{16}",
  6527. 'as Free User|<a class="continue"|Continue to file|#feedback_btn|application file_standalone',
  6528. 'Welcome to PutLocker|<div class="sad_face_image">|404:',
  6529. 'undergoing scheduled maintenance',
  6530. "//a[contains(@href,'putlocker.com/file')]"
  6531. );
  6532. }
  6533. if (GM_getValue("Check_uploadhero_dot_com_links", false))
  6534. {
  6535. addFileHost(
  6536. "uploadhero\\.com\/dl\/\\w+",
  6537. 'content-dl">',
  6538. 'men_file_lost\\.jpg"',
  6539. 'optional--',
  6540. "//a[contains(@href,'uploadhero.com/dl')]"
  6541. );
  6542. }
  6543. if (GM_getValue("Check_unibytes_dot_com_links", false))
  6544. {
  6545. addFileHost(
  6546. "unibytes\\.com\/[\\w\.]+",
  6547. 'trying to download|пытаетесь загрузить файл|tes entrain de tlcharger',
  6548. 'File not found|Файл не найден|',
  6549. 'optional--',
  6550. "//a[contains(@href,'unibytes.com')]"
  6551. );
  6552. }
  6553. if (GM_getValue("Check_hellshare_dot_com_links", false)) //very old type of links
  6554. {
  6555. addFileHost(
  6556. "www\\.hellshare\\.com\/\\d+",
  6557. 'tab\\-details"',
  6558. 'list-purp-2"|not found on this server',
  6559. 'optional--',
  6560. "//a[contains(@href,'www.hellshare.com')]"
  6561. );
  6562. }
  6563. if (GM_getValue("Check_quickshare_dot_cz_links", false)) //folders
  6564. {
  6565. addFileHost(
  6566. "quickshare\\.cz\/slozka-\\d+",
  6567. 'Počet souborů: <strong>[1-9]',
  6568. 'Počet souborů: <strong>0|Chyba! Taková složka neexistuje',
  6569. 'optional--',
  6570. "//a[contains(@href,'quickshare.cz/slozka')]"
  6571. );
  6572. }
  6573. if (GM_getValue("Check_filefactory_dot_com_links", false)) //folders
  6574. {
  6575. addFileHost(
  6576. "filefactory\\.com\/f\/\\w+",
  6577. 'folderFileList">',
  6578. 'table class="items"|Pointer" class="red">',
  6579. 'optional--',
  6580. "//a[contains(@href,'filefactory.com/f/')]"
  6581. );
  6582. }
  6583. if (GM_getValue("Check_netload_dot_in_links", false)) //folders
  6584. {
  6585. addFileHost(
  6586. "netfolder\\.in\/\\w+",
  6587. 'list" value="http',
  6588. 'InPage_Error">|list" value=""',
  6589. 'optional--',
  6590. "//a[contains(@href,'netfolder.in')]"
  6591. );
  6592. }
  6593. if (GM_getValue("Check_load_dot_to_links", false))
  6594. {
  6595. addFileHost(
  6596. '(?:www\\.|\\/)load\\.to\\/(?:\\w{10}\\/.|\\?d=\\w{10})',
  6597. '"download_table_left">Size',
  6598. 'Can\'t find file',
  6599. 'optional--',
  6600. "//a[contains(@href,'/load.to/') or contains(@href,'www.load.to/')]"
  6601. );
  6602. }
  6603. if (GM_getValue("Check_freakshare_dot_net_links", false))
  6604. {
  6605. addFileHost(
  6606. "freakshare\\.(?:net|com)\/files\/",
  6607. 'box_heading',
  6608. '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|الملف المطلوب غير موجود',
  6609. 'Your Traffic is used up for today',
  6610. "//a[(contains(@href,'freakshare.net') or contains(@href,'freakshare.com')) and contains(@href,'files')]",
  6611. true
  6612. );
  6613. //folders
  6614. addFileHost(
  6615. "freakshare\\.(?:net|com)\/folder\/",
  6616. 'Files: [1-9]',
  6617. 'Files: 0',
  6618. 'optional--',
  6619. "//a[(contains(@href,'freakshare.net') or contains(@href,'freakshare.com')) and contains(@href,'folder')]",
  6620. true
  6621. );
  6622. }
  6623. if (GM_getValue("Check_divshare_dot_com_links", false))
  6624. {
  6625. addFileHost(
  6626. "divshare\\.com\/download\/",
  6627. 'download_new\.png',
  6628. 'have been removed',
  6629. 'optional--',
  6630. "//a[contains(@href,'divshare.com')]"
  6631. );
  6632. }
  6633. if (GM_getValue("Check_stahovadlo_dot_cz_links", false))
  6634. {
  6635. addFileHost(
  6636. "stahovadlo\\.cz\/soubor\/\\d+\/[\\.\\w]+",
  6637. 'download" type="submit',
  6638. 'Neplatný nebo neúplný odkaz|Soubor již není dostupný',
  6639. 'optional--',
  6640. "//a[contains(@href,'stahovadlo.cz/soubor')]",
  6641. true
  6642. );
  6643. }
  6644. if (GM_getValue("Check_euroshare_dot_eu_links", false))
  6645. {
  6646. addFileHost(
  6647. "euroshare\\.(?:eu|pl|sk|cz|hu)\/file\/\\d+",
  6648. 'nazev-souboru">',
  6649. '<div id="obsah">\\s*<h1>',
  6650. 'optional--',
  6651. "//a[contains(@href,'euroshare.eu/file')]"
  6652. );
  6653. }
  6654. if (GM_getValue("Check_files_dot_mail_dot_ru_links", false))
  6655. {
  6656. addFileHost(
  6657. 'files\\.mail\\.ru/(?:\\w*)',
  6658. 'fileList',
  6659. 'errorMessage',
  6660. 'optional--',
  6661. "//a[contains(@href,'files.mail.ru')]"
  6662. );
  6663. }
  6664. if (GM_getValue("Check_megashares_dot_com_links", false))
  6665. {
  6666. addFileHost(
  6667. "(?:d\\d+\.|)megashares\.com\/(?:dl|index\.php\\?d|\\?d\\d+=\\w+)",
  6668. 'Filesize',
  6669. 'Invalid|deleted|Could not download file',
  6670. 'slots|scheduled maintenance',
  6671. "//a[contains(@href,'megashares.com/')]"
  6672. );
  6673. }
  6674. if (GM_getValue("Check_narod_dot_ru_links", false))
  6675. {
  6676. addFileHost(
  6677. 'narod\\.(?:yandex\\.|)ru\/disk\/',
  6678. 'b-submit',
  6679. 'b-download-virus-note|headCode">404<',
  6680. 'Внутренняя ошибка сервиса',
  6681. "//a[contains(@href,'narod.ru') or contains(@href,'narod.yandex.ru')]"
  6682. );
  6683. }
  6684. if (GM_getValue("Check_rayfile_dot_com_links", false))
  6685. {
  6686. addFileHost(
  6687. "rayfile\\.com\/",
  6688. 'FILEtitleTXT',
  6689. 'blueRow',
  6690. 'optional--',
  6691. "//a[contains(@href,'rayfile.com/') and contains(@href,'files')]"
  6692. );
  6693. }
  6694. if (GM_getValue("Check_filesmonster_dot_com_links", false))
  6695. {
  6696. addFileHost(
  6697. "filesmonster\\.com\/download\\.php\\?id=\\w+",
  6698. 'button_green_body"',
  6699. 'error">',
  6700. 'optional--',
  6701. "//a[contains(@href,'filesmonster.com/download')]"
  6702. );
  6703. }
  6704. if (GM_getValue("Check_usaupload_dot_net_links", false))
  6705. {
  6706. addFileHost(
  6707. 'usaupload\\.net\/d\/(?:\w*)',
  6708. '<strong>File size:</strong>',
  6709. 'is not available',
  6710. 'optional--',
  6711. "//a[contains(@href,'usaupload.net/d/')]"
  6712. );
  6713. }
  6714. if (GM_getValue("Check_sendspace_dot_com_links", false))
  6715. {
  6716. addFileHost(
  6717. 'sendspace\\.com\/file\/\\w+',
  6718. 'file_description',
  6719. 'msg error"',
  6720. 'optional--',
  6721. "//a[contains(@href,'sendspace.com/file')]"
  6722. );
  6723. }
  6724. if (GM_getValue("Check_sendspace_dot_pl_links", false))
  6725. {
  6726. addFileHost(
  6727. 'sendspace\\.pl\/file\/\\w+',
  6728. 'download_file"',
  6729. 'Podany plik nie',
  6730. 'optional--',
  6731. "//a[contains(@href,'sendspace.pl/file')]"
  6732. );
  6733. }
  6734. if (GM_getValue("Check_uploading_dot_com_links", false))
  6735. {
  6736. addFileHost(
  6737. 'uploading\\.com\/(?:files\/)?\\w+',
  6738. 'free_method">',
  6739. 'file_error">|error_404">|file not found|OOPS! Looks like file not found',
  6740. 'optional--',
  6741. "//a[contains(@href,'uploading.com')]"
  6742. );
  6743. }
  6744. if (GM_getValue("Check_gigasize_dot_com_links", false))
  6745. {
  6746. addFileHost(
  6747. 'gigasize\\.com\/get\\.php(?:\/\\d+|\\?d=\\w+)',
  6748. 'fileId"',
  6749. 'error">',
  6750. 'optional--',
  6751. "//a[contains(@href,'gigasize.com/get')]"
  6752. );
  6753. }
  6754. if (GM_getValue("Check_good_dot_com_links", false))
  6755. {
  6756. addFileHost(
  6757. 'good\\.net\/(?:_|dl)',
  6758. 'Free Download',
  6759. 'Not Found',
  6760. 'Forbidden',
  6761. "//a[contains(@href,'good.net')]"
  6762. );
  6763. }
  6764. if (GM_getValue("Check_2shared_dot_com_links", false))
  6765. {
  6766. addFileHost(
  6767. '2shared\\.com\/(?:file|video|document|audio)\/\\w*',
  6768. 'File size',
  6769. 'File not found|is not valid|/images/important.gif',
  6770. 'optional--',
  6771. "//a[contains(@href,'2shared.com/file/') or contains (@href,'2shared.com/audio/') or contains (@href,'2shared.com/document/') or contains (@href,'2shared.com/video/')]"
  6772. );
  6773. }
  6774. if (GM_getValue("Check_turboupload_dot_com_links", false))
  6775. {
  6776. addFileHost(
  6777. 'turboupload\\.com\/\\w*',
  6778. 'You have requested',
  6779. 'File Not Found',
  6780. 'optional--',
  6781. "//a[contains(@href,'turboupload.com')]"
  6782. );
  6783. }
  6784. if (GM_getValue("Check_gigapeta_dot_com_links", false))
  6785. {
  6786. addFileHost(
  6787. 'gigapeta\\.com\/dl\/',
  6788. 'Download file|Скачать файл| Herunterzuladen|Scarica il file|Cargar el fichero|Charger le fichier',
  6789. '404|page_error',
  6790. 'optional--',
  6791. "//a[contains(@href,'gigapeta.com/dl')]"
  6792. );
  6793. }
  6794. if (GM_getValue("Check_veehd_dot_com_links", false))
  6795. {
  6796. addFileHost(
  6797. 'veehd\.com\/video\/.*?',
  6798. 'No sound|Download video',
  6799. 'Featured Videos',
  6800. 'optional--',
  6801. "//a[contains(@href,'veehd.com') and contains(@href,'video')]"
  6802. );
  6803. }
  6804. if (GM_getValue("Check_vip_dash_file_dot_com_links", false))
  6805. {
  6806. addFileHost(
  6807. '(?:u\\d+\\.)?vip-file\\.com\/download.*?\/(?:.*?)\/(?:.*?)\\.html',
  6808. 'fast_download_form">|submit_sms_download',
  6809. '<p style="text-align:center">',
  6810. 'optional--',
  6811. "//a[contains(@href,'vip-file.com/download')]"
  6812. );
  6813. }
  6814. if (GM_getValue("Check_letitbit_dot_net_links", false))
  6815. {
  6816. addFileHost(
  6817. '(?:u\\d+\\.)?letitbit\\.net\/download\/\\w+',
  6818. 'download\\-pnl ',
  6819. 'color:#000">|Запрашиваемый файл не найден|страница не существует|File not found|',
  6820. 'optional--',
  6821. "//a[contains(@href,'letitbit.net/download')]"
  6822. );
  6823. }
  6824. if (GM_getValue("Check_ifolder_dot_ru_links", false))
  6825. {
  6826. addFileHost(
  6827. 'ifolder\.ru\/\\d+',
  6828. 'file-info',
  6829. 'ui-state-error',
  6830. 'optional--',
  6831. "//a[contains(@href,'ifolder.ru')]"
  6832. );
  6833. }
  6834. if (GM_getValue("Check_fileswap_dot_com_links", false))
  6835. {
  6836. addFileHost(
  6837. 'fileswap\\.com\/dl\/\\w+',
  6838. 'bttnDownloadLink"',
  6839. 'rounded_block_error"',
  6840. 'is temporary unavailable|disponible en estos momentos|vorläufig unerreichbar|Файл временно недоступен',
  6841. "//a[contains(@href,'fileswap.com/dl')]"
  6842. );
  6843. }
  6844. if (GM_getValue("Check_filecloud_dot_io_links", false))
  6845. {
  6846. addFileHost(
  6847. '(?:s\\d+\\.)?filecloud\\.io\/\\w+',
  6848. 'var __error = 0',
  6849. 'FILES__DOESNT_EXIST',
  6850. 'optional--',
  6851. "//a[contains(@href,'filecloud.io/')]"
  6852. );
  6853. addFileHost(
  6854. 'ifile\\.it\/\\w+',
  6855. 'var __error = 0',
  6856. 'FILES__DOESNT_EXIST',
  6857. 'optional--',
  6858. "//a[contains(@href,'ifile.it/')]"
  6859. );
  6860. }
  6861. if (GM_getValue("Check_solidfiles_dot_com_links", false))
  6862. {
  6863. addFileHost(
  6864. 'solidfiles\\.com\/d\/\\w+',
  6865. 'id="download"|content="Download',
  6866. '>Not found<|<h2>404</h2>|Page not found|<h1>404</h1>|File not available',
  6867. 'optional--',
  6868. "//a[contains(@href,'solidfiles.com/d')]"
  6869. );
  6870. }
  6871. if (GM_getValue("Check_shareflare_dot_net_links", false))
  6872. {
  6873. addFileHost(
  6874. "(?:.\\.|)shareflare\\.net",
  6875. 'download-pnl|<div class="premium-block">',
  6876. 'File not found|Поиск зеркала на фа|<div id="captcha"',
  6877. 'optional--',
  6878. "//a[contains(@href,'shareflare.net') and contains(@href,'download')]"
  6879. );
  6880. }
  6881. if (GM_getValue("Check_u18116681_dot_shareflare_dot_net_links", false))
  6882. {
  6883. addFileHost(
  6884. "u18116681.shareflare\\.net",
  6885. 'download-pnl|<div class="premium-block">',
  6886. 'File not found|Поиск зеркала на фа|<div id="captcha"',
  6887. 'optional--',
  6888. "//a[contains(@href,'shareflare.net') and contains(@href,'download')]"
  6889. );
  6890. }
  6891. if (GM_getValue("Check_uloz_dot_to_links", false))
  6892. {
  6893. addFileHost(
  6894. "(?:uloz|ulozto|bagruj|zachowajto)\\.(to|cz|sk|net|pl)\/\\w",
  6895. 'fileDownload">|fileSize">',
  6896. 'grayButton deletedFile">|Stránka nenalezena|upload-button"|jako soukromý.',
  6897. 'passwordProtectedFile">|frmaskAgeForm-disagree',
  6898. "//a[contains(@href,'bagruj.cz') or contains(@href,'uloz.to') or contains(@href,'ulozto.') or contains(@href,'zachowajto.pl')]",
  6899. true
  6900. );
  6901. }
  6902. if (GM_getValue("Check_hellspy_dot_com_links", false))
  6903. {
  6904. addFileHost(
  6905. "hellspy\.(?:com|cz|sk|hu|pl)\/\\w+",
  6906. 'file\\-list-orderby|section-filedetail">',
  6907. '<\/span><\/h2>\\s*<p>|list-purp-2">|flash info sticky">',
  6908. 'optional--',
  6909. "//a[contains(@href,'hellspy.')]"
  6910. );
  6911. }
  6912. if (GM_getValue("Check_leteckaposta_dot_cz_links", false))
  6913. {
  6914. addFileHost(
  6915. "(?:leteckaposta\\.cz|sharegadget\\.com)\/\\d+",
  6916. '<body onload="">',
  6917. 'neexistuje|not exist',
  6918. 'optional--',
  6919. "//a[contains(@href,'leteckaposta.cz') or contains(@href,'sharegadget.com')]"
  6920. );
  6921. }
  6922. if (GM_getValue("Check_stahovanizasms_dot_cz_links", false))
  6923. {
  6924. addFileHost(
  6925. "stahovanizasms\\.cz\/\\w+",
  6926. 'download\\.png>|font-size:11px><tr>',
  6927. 'smaz.n u.ivatelem|font-size:11px><\/table>',
  6928. 'optional--',
  6929. "//a[contains(@href,'stahovanizasms.cz')]"
  6930. );
  6931. }
  6932. if (GM_getValue("Check_share_dash_links_dot_biz_links", false))
  6933. {
  6934. addFileHost(
  6935. "share-links\\.biz\/\\w*",
  6936. 'online\\.gif',
  6937. '(?:offline|parts)\\.gif',
  6938. 'optional--',
  6939. "//a[contains(@href,'share-links.biz')]"
  6940. );
  6941. }
  6942. if (GM_getValue("Check_4shared_dot_com_links", false))
  6943. {
  6944. addFileHost(
  6945. "4shared\\.com\/.+\/",
  6946. '<input type="hidden" class="jsSocialTwDefaultText" value=',
  6947. 'class="warn\"|big red"|GetDataBack',
  6948. 'Service Unavailable',
  6949. "//a[contains(@href,'4shared.com')]"
  6950. );
  6951. }
  6952. if (GM_getValue("Check_zippyshare_dot_com_links", false))
  6953. {
  6954. addFileHost(
  6955. "(?:www\\d+\.|)zippyshare\.com\/",
  6956. 'download\.png|Download Now|images/download_small.png|id="dlbutton"',
  6957. 'not exist|Status 404',
  6958. 'optional--',
  6959. "//a[contains(@href,'zippyshare.com') and contains(@href,'file.html')]"
  6960. );
  6961. }
  6962. if (GM_getValue("Check_mediafire_dot_com_links", false))
  6963. {
  6964. addFileHost(
  6965. "mediafire\.com\/",
  6966. 'download_file_title|dlFileName|id="PLAY_downloadButton"',
  6967. 'error\\.php\\?|error_msg_title|<title>Simple File Sharing|No files found',
  6968. 'set to private',
  6969. "//a[contains(@href,'mediafire.com')]"
  6970. );
  6971. }
  6972. if (GM_getValue("Check_uploaded_dot_to_links", false))
  6973. {
  6974. addFileHost(
  6975. '(?:uploaded\\.(?:to|net)\/(?:.id|file|folder|f|410|404))|(?:ul\\.to\/)',
  6976. '<h2>Authentification</h2></li>| MB| KB',
  6977. 'box_red|Error: 404|Error: 410|fileList"><thead><tr><td colspan="2"><\/td><\/tr><\/thead><tbody>\\s*<tr>|<title>uploaded.net</title>',
  6978. 'optional--',
  6979. "//a[contains(@href,'uploaded.to/') or contains(@href,'uploaded.net/') or contains(@href,'ul.to/')]"
  6980. );
  6981. }
  6982. if (GM_getValue("Check_ulozisko_dot_sk_links", false))
  6983. {
  6984. addFileHost(
  6985. "ulozisko\.sk\/",
  6986. 'Detaily',
  6987. 'neexistuje',
  6988. 'optional--',
  6989. "//a[contains(@href,'ulozisko.sk')]"
  6990. );
  6991. }
  6992. if (GM_getValue("Check_upnito_dot_sk_links", false))
  6993. {
  6994. addFileHost(
  6995. "(?:dl.\\.|)upnito\\.sk\/(download|subor|file)",
  6996. 'download.php',
  6997. 'notfound|upload\\-suborov\\.php"',
  6998. 'optional--',
  6999. "//a[contains(@href,'upnito.sk')]"
  7000. );
  7001. }
  7002. if (GM_getValue("Check_dataport_dot_cz_links", false))
  7003. {
  7004. addFileHost(
  7005. "dataport\.cz\/file\/",
  7006. 'premium_download">',
  7007. '="error">',
  7008. 'optional--',
  7009. "//a[contains(@href,'dataport.cz/file')]",
  7010. true
  7011. );
  7012. }
  7013. if (GM_getValue("Check_uptobox_dot_com_links", false))
  7014. {
  7015. addFileHost(
  7016. "uptobox\\.com\/\\w+",
  7017. 'Create Download Link">',
  7018. '500px;text-align:left;">|File not found|Fichier introuvable',
  7019. 'Maintenance|not available in your country',
  7020. "//a[contains(@href,'uptobox.com')]"
  7021. );
  7022. }
  7023. if (GM_getValue("Check_sharecash_dot_org_links", false))
  7024. {
  7025. addFileHost(
  7026. "sharecash\\.org\/download\\.php\\?file=\\d+",
  7027. 'FILE DOWNLOAD<',
  7028. 'File Does Not Exist',
  7029. 'optional--',
  7030. "//a[contains(@href,'sharecash.org/download.php')]"
  7031. );
  7032. }
  7033. if (GM_getValue("Check_depositfiles_dot_com_links", false)) //folders
  7034. {
  7035. addFileHost(
  7036. "depositfiles\\.com\/folders\/\\w+",
  7037. '<div class="progressContainer">',
  7038. '<div id="files" class="files">\\s*<\/div>',
  7039. 'optional--',
  7040. "//a[contains(@href,'depositfiles.com/folders')]"
  7041. );
  7042. }
  7043. if (GM_getValue("Check_depositfiles_dot_com_links", false))
  7044. {
  7045. addFileHost(
  7046. "depositfiles\\.com\/|depositfiles.org|dfiles\.eu|dfiles.ru",
  7047. '<b>File Download</b>|File name|Nom du fichier|Nome do arquivo|speed_small\.gif',
  7048. 'Such file does not exist|<div class="no_download_msg"|This file does not exist',
  7049. 'optional--',
  7050. "//a[contains(@href,'depositfiles') or contains(@href,'dfiles')]"
  7051. );
  7052. }
  7053. if (GM_getValue("Check_rapidfileshare_dot_net_links", false))
  7054. {
  7055. addFileHost(
  7056. "rapidfileshare\\.net/\\w+",
  7057. '<div id="upload-header-bg">',
  7058. '<div style="width:500px;text-align:left;">',
  7059. 'optional--',
  7060. "//a[contains(@href,'rapidfileshare.net/')]"
  7061. );
  7062. }
  7063. if (GM_getValue("Check_stiahnito_dot_sk_links", false))
  7064. {
  7065. addFileHost(
  7066. "stiahnito\\.sk/",
  7067. '<span class="filesize right">',
  7068. '<ol class="list-purp-2">',
  7069. 'optional--',
  7070. "//a[contains(@href,'stiahnito.sk/')]"
  7071. );
  7072. }
  7073. if (GM_getValue("Check_rusfolder_dot_com_links", false))
  7074. {
  7075. addFileHost(
  7076. "rusfolder\\.(?:com|net)",
  7077. '"download-step-one-form"|Название: <b>|Файлы|Файлы в папке',
  7078. '"ui-state-error ui-corner-all"|File is removed|File not found|удален',
  7079. 'optional--',
  7080. "//a[contains(@href,'rusfolder')]"
  7081. );
  7082. }
  7083. if (GM_getValue("Check_fileover_dot_net_links", false))
  7084. {
  7085. addFileHost(
  7086. "fileover\\.net/\\d+",
  7087. 'id="filesize"',
  7088. 'Not found or deleted|The following file is unavailable',
  7089. 'optional--',
  7090. "//a[contains(@href,'fileover.net/')]"
  7091. );
  7092. }
  7093. if (GM_getValue("Check_catshare_dot_net_links", false))
  7094. {
  7095. addFileHost(
  7096. "catshare\\.net/\\w+",
  7097. '"icon-share',
  7098. 'alert alert-error',
  7099. 'optional--',
  7100. "//a[contains(@href,'catshare.net/')]"
  7101. );
  7102. }
  7103. if (GM_getValue("Check_anonfiles_dot_com_links", false))
  7104. {
  7105. addFileHost(
  7106. "anonfiles\\.com/\\w+",
  7107. '"download_button"',
  7108. '<legend><b>404</b>',
  7109. 'optional--',
  7110. "//a[contains(@href,'anonfiles.com')]"
  7111. );
  7112. }
  7113. if (GM_getValue("Check_mixturecloud_dot_com_links", false))
  7114. {
  7115. addFileHost(
  7116. "mixturecloud\\.com/media/\\w+",
  7117. '"btn icon i_globe gray share_150',
  7118. '"s_cross_close"></span> 404:',
  7119. 'optional--',
  7120. "//a[contains(@href,'mixturecloud.com/media/')]"
  7121. );
  7122. }
  7123. if (GM_getValue("Check_akafile_dot_com_links", false))
  7124. {
  7125. addFileHost(
  7126. "akafile\\.com\/\\w+",
  7127. 'download1',
  7128. 'File Not Found',
  7129. 'optional--',
  7130. "//a[contains(@href,'akafile.com/')]"
  7131. );
  7132. }
  7133. if (GM_getValue("Check_creafile_dot_net_links", false))
  7134. {
  7135. addFileHost(
  7136. "creafile\\.net\/\\w+",
  7137. 'downloadblock',
  7138. 'errtitle',
  7139. 'optional--',
  7140. "//a[contains(@href,'creafile.net/')]"
  7141. );
  7142. }
  7143. if (GM_getValue("Check_hugefiles_dot_net_links", false))
  7144. {
  7145. addFileHost(
  7146. "hugefiles\\.net\/\\w+",
  7147. 'download1|class="btn-create-download" value="Create Download Link">',
  7148. 'File Not Found|No such file with this filename',
  7149. 'optional--',
  7150. "//a[contains(@href,'hugefiles.net/')]"
  7151. );
  7152. }
  7153. if (GM_getValue("Check_sendmyway_dot_com_links", false))
  7154. {
  7155. addFileHost(
  7156. "sendmyway\\.com\/\\w+",
  7157. 'id="btn_download"',
  7158. '500px;text-align:left;"|<center><h3>',
  7159. 'optional--',
  7160. "//a[contains(@href,'sendmyway.com/')]"
  7161. );
  7162. }
  7163. if (GM_getValue("Check_upload_dot_ee_links", false))
  7164. {
  7165. addFileHost(
  7166. "upload\\.ee\/\\w+",
  7167. 'onmouseout="document.dllink.src',
  7168. 'There is no such file.|File was deleted|Fail kustutati|Файл удалён|Такого файла нет',
  7169. 'optional--',
  7170. "//a[contains(@href,'upload.ee/')]"
  7171. );
  7172. }
  7173. if (GM_getValue("Check_shareplace_dot_org_links", false))
  7174. {
  7175. addFileHost(
  7176. "shareplace\\.org\/\\?\\w+",
  7177. 'Download-Link',
  7178. 'Your requested file is not found|Select file to send',
  7179. 'optional--',
  7180. "//a[contains(@href,'shareplace.org/?')]"
  7181. );
  7182. }
  7183. if (GM_getValue("Check_uploadc_dot_com_links", false))
  7184. {
  7185. addFileHost(
  7186. "uploadc\\.com\/\\w+",
  7187. 'id="prebut"',
  7188. 'File Not Found|This file has been removed due',
  7189. 'optional--',
  7190. "//a[contains(@href,'uploadc.com/')]"
  7191. );
  7192. }
  7193. if (GM_getValue("Check_remixshare_dot_com_links", false))
  7194. {
  7195. addFileHost(
  7196. "remixshare\\.com\/\\w+",
  7197. 'id="dl2"',
  7198. '<table class=\'failed\'><tr><td width=\'90%\'>|Sorry, die Datei konnte nicht gefunden werden',
  7199. 'optional--',
  7200. "//a[contains(@href,'remixshare.com/')]"
  7201. );
  7202. }
  7203. if (GM_getValue("Check_exoshare_dot_com_links", false))
  7204. {
  7205. addFileHost(
  7206. "exoshare\\.com\/download\\.php\\?uid=\\w+",
  7207. 'Last Download :',
  7208. 'img src="\\/404.jpg"',
  7209. 'optional--',
  7210. "//a[contains(@href,'exoshare.com/download.php')]"
  7211. );
  7212. }
  7213. if (GM_getValue("Check_borncash_dot_org_links", false))
  7214. {
  7215. addFileHost(
  7216. "borncash\\.org\/download\/\\?a=\\w+",
  7217. 'class="knop_1"',
  7218. '\/error\/er00',
  7219. 'optional--',
  7220. "//a[contains(@href,'borncash.org/download/')]"
  7221. );
  7222. }
  7223. if (GM_getValue("Check_vidplay_dot_net_links", false))
  7224. {
  7225. addFileHost(
  7226. "vidplay\.net\/\\w+",
  7227. 'solvemedia puzzle widget',
  7228. 'File not found|AVOID_IE_BUG',
  7229. 'optional--',
  7230. "//a[contains(@href,'vidplay.net')]");
  7231. }
  7232. if (GM_getValue("Check_storagon_dot_com_links", false))
  7233. {
  7234. addFileHost(
  7235. "storagon\.com\/\\w+",
  7236. 'class="icon-cloud-download"></i>|content="Download Options',
  7237. 'content="Download Downloads|class="error-container">|class="bigger-300 bolder">404<',
  7238. 'optional--',
  7239. "//a[contains(@href,'storagon.com')]");
  7240. }
  7241. if (GM_getValue("Check_filedais_dot_com_links", false))
  7242. {
  7243. addFileHost(
  7244. "filedais\.com\/\\w+",
  7245. 'class="btn btn-info"|name="method_free"',
  7246. 'style="width:500px;text-align:left;">|File Not Found|AVOID_IE_BUG',
  7247. 'optional--',
  7248. "//a[contains(@href,'filedais.com')]");
  7249. }
  7250. if (GM_getValue("Check_ryushare_dot_com_links", false))
  7251. {
  7252. addFileHost(
  7253. "ryushare\.com\/\\w+",
  7254. 'KB|MB',
  7255. '<div style="width:500px;text-align:left;">',
  7256. 'in maintenance mode|Software error:',
  7257. "//a[contains(@href,'ryushare.com')]");
  7258. }
  7259. if (GM_getValue("Check_up_dot_4share_dot_vn_links", false))
  7260. {
  7261. addFileHost(
  7262. "up.4share\.vn\/\\w+",
  7263. '<font size="2" face="Verdana">',
  7264. 'font: 13px Tahoma; color: Brown',
  7265. 'optional--',
  7266. //'optional--',
  7267. "//a[contains(@href,'up.4share.vn')]");
  7268. }
  7269. if (GM_getValue("Check_share_dot_vnn_dot_vn_links", false))
  7270. {
  7271. addFileHost(
  7272. "share.vnn\.vn\/\\w+",
  7273. '"index,follow"|<div class="main" id="download-box">',
  7274. '<meta name="description" content="" />|<h1>Không tìm thấy file bạn yêu cầu</h1>',
  7275. 'optional--',
  7276. //'optional--',
  7277. "//a[contains(@href,'share.vnn.vn')]");
  7278. }
  7279. if (GM_getValue("Check_upfile_dot_vn_links", false))
  7280. {
  7281. addFileHost(
  7282. "upfile\.vn\/\\w+",
  7283. 'download-timer',
  7284. '<meta name="description" content="Upload files|<meta name="description" content="Error "',
  7285. 'optional--',
  7286. //'optional--',
  7287. "//a[contains(@href,'upfile.vn')]");
  7288. }
  7289. if (GM_getValue("Check_firedrive_dot_com_links", false))
  7290. {
  7291. addFileHost(
  7292. "firedrive\\.com\/file\/\\w{16}",
  7293. 'as Free User|<a class="continue"|Continue to file|#feedback_btn|application file_standalone',
  7294. 'Welcome to PutLocker|<div class="sad_face_image">|404:',
  7295. 'undergoing scheduled maintenance',
  7296. "//a[contains(@href,'firedrive.com/file')]"
  7297. );
  7298. }
  7299. if (GM_getValue("Check_aisfile_dot_com_links", false))
  7300. {
  7301. addFileHost(
  7302. "aisfile\.com\/\\w+",
  7303. '<h3 style="text-align:left;">|align=right><b>Filename:',
  7304. '<div style="width:500px;text-align:left;">|File Not Found',
  7305. 'optional--',
  7306. //'optional--',
  7307. "//a[contains(@href,'aisfile.com')]");
  7308. }
  7309. if (GM_getValue("Check_usersfiles_dot_com_links", false))
  7310. {
  7311. addFileHost(
  7312. "usersfiles\.com\/\\w+",
  7313. 'class="btn btn-success|id="btn_download" class="btn"',
  7314. '<div style="width:500px;text-align:left;">',
  7315. 'optional--',
  7316. //'optional--',
  7317. "//a[contains(@href,'usersfiles.com')]");
  7318. }
  7319. if (GM_getValue("Check_pan_dot_baidu_dot_com_links", false))
  7320. {
  7321. addFileHost(
  7322. "pan.baidu\.com\/\\w+",
  7323. 'target="_blank" title=|share-personal-info',
  7324. 'share_notfound.png|background:#f9f9f9',
  7325. 'optional--',
  7326. //'optional--',
  7327. "//a[contains(@href,'pan.baidu.com')]");
  7328. }
  7329. if (GM_getValue("Check_yunpan_dot_cn_links", false))
  7330. {
  7331. addFileHost(
  7332. "yunpan\.cn\/\\w+",
  7333. 'class="icon icon-download',
  7334. 'content="360|http://p5.qhimg.com/t01d1c98667df9dc6cc.jpg',
  7335. 'optional--',
  7336. //'optional--',
  7337. "//a[contains(@href,'yunpan.cn')]");
  7338. }
  7339. if (GM_getValue("Check_file_dash_upload_dot_net_links", false))
  7340. {
  7341. addFileHost(
  7342. "(?:en\\.|)file\\-upload\\.net\/download\\-\\d+\/\\w+",
  7343. 'getElementById("downbild")|style.display',
  7344. 'hochgeladene Datei nicht gefunden werden|has not been found',
  7345. 'optional--',
  7346. //'optional--',
  7347. "//a[contains(@href,'file-upload.net')]");
  7348. }
  7349. if (GM_getValue("Check_gulfup_dot_com_links", false))
  7350. {
  7351. addFileHost(
  7352. "gulfup\.com\/",
  7353. '<!-- Downlod template -->|download.gif',
  7354. '<!-- Errors template -->|class="error">|<!-- form upload -->|[ رفع الملفات ]',
  7355. 'optional--',
  7356. //'optional--',
  7357. "//a[contains(@href,'gulfup.com')]");
  7358. }
  7359. if (GM_getValue("Check_datafilehost_dot_com_links", false))
  7360. {
  7361. addFileHost(
  7362. "datafilehost\\.com\/(?:download-\\w+\\.html|d\/\\w+)",
  7363. 'dldtable">',
  7364. 'does not exist\\.',
  7365. 'optional--',
  7366. //'optional--',
  7367. "//a[contains(@href,'datafilehost.com')]");
  7368. }
  7369. if (GM_getValue("Check_box_dot_com_links", false))
  7370. {
  7371. addFileHost(
  7372. "box\.com\/\\w+",
  7373. 'download-file-btn|id="download_button',
  7374. 'BIyMin.png| <div class="error_message|link has been removed',
  7375. 'optional--',
  7376. //'optional--',
  7377. "//a[contains(@href,'app.box.com')]");
  7378. }
  7379. if (GM_getValue("Check_dropbox_dot_com_links", false))
  7380. {
  7381. addFileHost(
  7382. "dropbox\.com\/s\/\\w+",
  7383. 'default_content_download_button" class="freshbutton-blue">|content_download_button',
  7384. '>Nothing Here<|>Error (404)<',
  7385. 'title>Dropbox - 509|Error (403)|Error: 429',
  7386. "//a[contains(@href,'dropbox.com')]");
  7387. }
  7388. if (GM_getValue("Check_box_dot_net_links", false))
  7389. {
  7390. addFileHost(
  7391. "box\.net\/\\w+",
  7392. 'download-file-btn|id="download_button',
  7393. 'BIyMin.png| <div class="error_message',
  7394. 'optional--',
  7395. //'optional--',
  7396. "//a[contains(@href,'box.net')]");
  7397. }
  7398. if (GM_getValue("Check_fileband_dot_com_links", false))
  7399. {
  7400. addFileHost(
  7401. "fileband\.com\/\\w+",
  7402. 'value="download1">|name="id" value=',
  7403. '<div style="width:500px;text-align:left;">|not be found',
  7404. 'optional--',
  7405. //'optional--',
  7406. "//a[contains(@href,'fileband.com')]");
  7407. }
  7408. if (GM_getValue("Check_lumfile_dot_com_links", false))
  7409. {
  7410. addFileHost(
  7411. "lumfile\.com\/\\w+",
  7412. '<div style="width:900px;">',
  7413. 'background:#eee;font:15px|var rr =|The link was deleted by administration|File Not Found|>404 Not Found<|<div style="width:500px;text-align:left;">',
  7414. 'optional--',
  7415. "//a[contains(@href,'lumfile.com')]");
  7416. }
  7417. if (GM_getValue("Check_lumfile_dot_se_links", false))
  7418. {
  7419. addFileHost(
  7420. "lumfile\.se\/\\w+",
  7421. '<div style="width:900px;">',
  7422. 'background:#eee;font:15px|var rr =|The link was deleted by administration|File Not Found|>404 Not Found<|<div style="width:500px;text-align:left;">',
  7423. 'optional--',
  7424. "//a[contains(@href,'lumfile.se')]");
  7425. }
  7426. if (GM_getValue("Check_lumfile_dot_eu_links", false))
  7427. {
  7428. addFileHost(
  7429. "lumfile\.eu\/\\w+",
  7430. '<div style="width:900px;">',
  7431. 'background:#eee;font:15px|var rr =|The link was deleted by administration|File Not Found|>404 Not Found<|<div style="width:500px;text-align:left;">',
  7432. 'optional--',
  7433. "//a[contains(@href,'lumfile.eu')]");
  7434. }
  7435. if (GM_getValue("Check_uploadrocket_dot_net_links", false))
  7436. {
  7437. addFileHost(
  7438. "uploadrocket\.net\/\\w+",
  7439. '<font style="font-size:12px;">|<h2>Download File|method_isfree',
  7440. 'font style="color:#d33;|File Not Found',
  7441. 'optional--',
  7442. //'optional--',
  7443. "//a[contains(@href,'uploadrocket.net')]");
  7444. }
  7445. if (GM_getValue("Check_filedropper_dot_com_links", false))
  7446. {
  7447. addFileHost(
  7448. "filedropper\.com\/\\w+",
  7449. 'background:#ddd;|width:985px; ',
  7450. 'background-color:#FFFFFF;|margin-left: -400px;',
  7451. 'optional--',
  7452. //'optional--',
  7453. "//a[contains(@href,'filedropper.com')]");
  7454. }
  7455. if (GM_getValue("Check_tropicshare_dot_com_links", false))
  7456. {
  7457. addFileHost(
  7458. "tropicshare\\.com\/files\/\\d+",
  7459. 'MB</span>|GB</span>|KB</span>',
  7460. '>FNF<|size: </span>',
  7461. 'optional--',
  7462. //'optional--',
  7463. "//a[contains(@href,'tropicshare.com')]");
  7464. }
  7465. if (GM_getValue("Check_goldbytez_dot_com_links", false))
  7466. {
  7467. addFileHost(
  7468. "goldbytez\.com\/\\w+",
  7469. '<h2>Download</h2>|<center><h2>File: <font color="red">',
  7470. '<div style="width:500px;text-align:left;">|<h2>Error</h2>',
  7471. 'optional--',
  7472. //'optional--',
  7473. "//a[contains(@href,'goldbytez.com')]");
  7474. }
  7475. if (GM_getValue("Check_worldbytez_dot_com_links", false))
  7476. {
  7477. addFileHost(
  7478. "worldbytez\.com\/\\w+",
  7479. '<div class="download_type">',
  7480. '<div style="width:500px;text-align:left;">',
  7481. 'optional--',
  7482. //'optional--',
  7483. "//a[contains(@href,'worldbytez.com')]");
  7484. }
  7485. if (GM_getValue("Check_freefilehosting_dot_net_links", false))
  7486. {
  7487. addFileHost(
  7488. "freefilehosting\.net\/\\w+",
  7489. 'Type: cbr|Type: rar|Type: jpg|Type: mkv|Type: avi|Type: mpg|Type: mpeg|Type: zip|Type: wmvType: bmpType: gifType: mp4Type: mp3',
  7490. '175px;" value="http://www.freefilehosting.net/"|Filename: <br>',
  7491. 'optional--',
  7492. //'optional--',
  7493. "//a[contains(@href,'freefilehosting.net')]");
  7494. }
  7495. if (GM_getValue("Check_ziddu_dot_com_links", false))
  7496. {
  7497. addFileHost(
  7498. "ziddu\.com\/\\w+",
  7499. 'downloads.ziddu.com|downloadfilelinkicon',
  7500. 'errortracking.php|images/oops.png|fontfamilyverdana error',
  7501. 'optional--',
  7502. //'optional--',
  7503. "//a[contains(@href,'ziddu.com')]");
  7504. }
  7505. if (GM_getValue("Check_exclusiveloader_dot_com_links", false))
  7506. {
  7507. addFileHost(
  7508. "exclusiveloader\.com\/\\w+",
  7509. 'style="padding-top:55px; padding-bottom:65px;">|<h2>Download</h2>',
  7510. 'File Not Found|width:322px;text-align:left;" class="no_file">',
  7511. 'optional--',
  7512. //'optional--',
  7513. "//a[contains(@href,'exclusiveloader.com')]");
  7514. }
  7515. if (GM_getValue("Check_sharerapid_dot_cz_links", false))
  7516. {
  7517. addFileHost(
  7518. "sharerapid\.cz\/\\w+",
  7519. 'value="Stáhnout"|soubor" style|Stahování je povoleno pouze pro přihlášené uživatele',
  7520. 'error_div">|404 - Not Found',
  7521. 'optional--',
  7522. //'optional--',
  7523. "//a[contains(@href,'sharerapid.cz')]");
  7524. }
  7525. if (GM_getValue("Check_sdilej_dot_cz_links", false))
  7526. {
  7527. addFileHost(
  7528. "sdilej\.cz\/\\w+",
  7529. 'class="page-download"',
  7530. '<h2 class="red">|czshare.com|sponsored listings|This domain is for sale',
  7531. 'optional--',
  7532. //'optional--',
  7533. "//a[contains(@href,'sdilej.cz')]");
  7534. }
  7535. if (GM_getValue("Check_lafiles_dot_com_links", false))
  7536. {
  7537. addFileHost(
  7538. "lafiles\.com\/\\w+",
  7539. '<div id="pay_modes">',
  7540. '<b class="err"></b>',
  7541. 'optional--',
  7542. //'optional--',
  7543. "//a[contains(@href,'lafiles.com')]");
  7544. }
  7545. if (GM_getValue("Check_fboom_dot_me_links", false))
  7546. {
  7547. addFileHost(
  7548. "fboom\.me\/\\w+",
  7549. 'id="download-free" href="#"',
  7550. 'class="error-v1-title">404<|File not found or deleted',
  7551. 'optional--',
  7552. //'optional--',
  7553. "//a[contains(@href,'fboom.me')]");
  7554. }
  7555. if (GM_getValue("Check_fileboom_dot_me_links", false))
  7556. {
  7557. addFileHost(
  7558. "fileboom\.me\/\\w+",
  7559. 'id="download-free" href="#"',
  7560. 'class="error-v1-title">404<|File not found or deleted',
  7561. 'optional--',
  7562. //'optional--',
  7563. "//a[contains(@href,'fileboom.me')]");
  7564. }
  7565. if (GM_getValue("Check_filecore_dot_co_dot_nz_links", false))
  7566. {
  7567. addFileHost(
  7568. "filecore\.co.nz\/\\w+",
  7569. 'btn_download',
  7570. '<div style="width:500px;text-align:left;">',
  7571. 'optional--',
  7572. //'optional--',
  7573. "//a[contains(@href,'filecore.co.nz')]");
  7574. }
  7575. if (GM_getValue("Check_acefile_dot_net_links", false))
  7576. {
  7577. addFileHost(
  7578. "acefile\.net\/\\w+",
  7579. 'align=right nowrap><b>',
  7580. 'File Not Found|<div style="width:322px;text-align:left;" class="no_file">',
  7581. 'optional--',
  7582. //'optional--',
  7583. "//a[contains(@href,'acefile.net')]");
  7584. }
  7585. if (GM_getValue("Check_megarapid_dot_cz_links", false))
  7586. {
  7587. addFileHost(
  7588. "megarapid\.cz\/\\w+",
  7589. 'value="Stáhnout"|soubor" style|Stahování je povoleno pouze pro přihlášené uživatele',
  7590. 'error_div">|404 - Not Found',
  7591. 'optional--',
  7592. //'optional--',
  7593. "//a[contains(@href,'megarapid.cz')]");
  7594. }
  7595. if (GM_getValue("Check_yadi_dot_sk_links", false))
  7596. {
  7597. addFileHost(
  7598. "yadi\.sk\/\\w+",
  7599. 'twitter:site|View and download',
  7600. 'error code|Nothing found',
  7601. 'optional--',
  7602. //'optional--',
  7603. "//a[contains(@href,'yadi.sk')]");
  7604. }
  7605. if (GM_getValue("Check_imdb_dot_com_links", false))
  7606. {
  7607. addFileHost(
  7608. "imdb\.com\/\\w+",
  7609. 'imdb.com',
  7610. '404 Error',
  7611. 'optional--',
  7612. "//a[contains(@href,'imdb.com')]");
  7613. }
  7614. if (GM_getValue("Check_hitfile_dot_net_links", false))
  7615. {
  7616. addFileHost(
  7617. "hitfile\.net\/\\w+",
  7618. 'class="download-file',
  7619. 'style="width:16px;height:16px;border:0;|File not found|Файл не найден. Возможно он был удален',
  7620. 'optional--',
  7621. //'optional--',
  7622. "//a[contains(@href,'hitfile.net')]");
  7623. }
  7624. if (GM_getValue("Check_uploadto_dot_us_links", false))
  7625. {
  7626. addFileHost(
  7627. "uploadto\\.us\/file\/details\/[\\w+-]",
  7628. 'name="recaptcha_response',
  7629. '="/folder/add"|>File (?:not found|restricted|has been deleted)|<title>UPLOADTO.US</title>',
  7630. 'btn-large btn-danger">|Account limitation notice|502 Bad Gateway',
  7631. "//a[contains(@href,'uploadto.us/file')]",
  7632. true);
  7633. }
  7634. if (GM_getValue("Check_nitroflare_dot_com_links", false))
  7635. {
  7636. addFileHost(
  7637. "nitroflare\.com\/\\w+",
  7638. 'alert.png|LowSpeedMeter.png',
  7639. 'file has been removed|id="error" style="display',
  7640. 'optional--',
  7641. "//a[contains(@href,'nitroflare.com')]");
  7642. }
  7643. if (GM_getValue("Check_up_dot_top4top_dot_net_links", false))
  7644. {
  7645. addFileHost(
  7646. "up.top4top\.net\/\\w+",
  7647. 'start Downlod template',
  7648. 'start err template',
  7649. 'optional--',
  7650. "//a[contains(@href,'up.top4top.net')]");
  7651. }
  7652. if (GM_getValue("Check_filejoker_dot_net_links", false))
  7653. {
  7654. addFileHost(
  7655. "filejoker\.net\/\\w+",
  7656. 'button id="regular-download">Slow|method_free" value="1|<div id="download" class="download0">',
  7657. 'File Not Found|class="not_found|<div id="download" class="not_found">|"err">DMCA Complaint<',
  7658. 'optional--',
  7659. "//a[contains(@href,'filejoker.net')]");
  7660. }
  7661. if (GM_getValue("Check_free_dot_fr_links", false))
  7662. {
  7663. addFileHost(
  7664. "(?:dl.\\.|)free\\.fr",
  7665. 'Valider et t&eacute;l&eacute',
  7666. 'Fichier inexistant',
  7667. 'optional--',
  7668. "//a[contains(@href,'free.fr')]");
  7669. }
  7670. if (GM_getValue("Check_gboxes_dot_com_links", false))
  7671. {
  7672. addFileHost(
  7673. "gboxes\.com\/\\w+",
  7674. 'You have requested|color="red">http://www.gboxes.com',
  7675. 'File Not Found|<div style="width:500px;text-align:left;">',
  7676. 'optional--',
  7677. "//a[contains(@href,'gboxes.com')]");
  7678. }
  7679. if (GM_getValue("Check_1fichier_dot_com_links", false))
  7680. {
  7681. addFileHost(
  7682. "(?:\\w{10}\\.(?:1fichier|dl4free)\\.com\/)|(?:(?:1fichier|dl4free)\\.com\/\\?\\w{10})",
  7683. '<title>Download</title>|<br/>You must wait|<input type="submit" value="Download" ',
  7684. 'File not found|file could not be found|Select files to send',
  7685. 'optional--',
  7686. "//a[contains(@href,'1fichier.com/') or contains(@href,'dl4free.com/')]"
  7687. );
  7688. }
  7689. if (GM_getValue("Check_led_dot_wf_links", false))
  7690. {
  7691. addFileHost(
  7692. "led\.wf\/\\w+",
  7693. 'logo_0.png|downloads.gif"',
  7694. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link',
  7695. 'optional--',
  7696. "//a[contains(@href,'led.wf')]");
  7697. }
  7698. if (GM_getValue("Check_lan_dot_wf_links", false))
  7699. {
  7700. addFileHost(
  7701. "lan\.wf\/\\w+",
  7702. 'logo_0.png|downloads.gif"',
  7703. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link',
  7704. 'optional--',
  7705. "//a[contains(@href,'lan.wf')]");
  7706. }
  7707. if (GM_getValue("Check_adlink_dot_wf_links", false))
  7708. {
  7709. addFileHost(
  7710. "adlink\.wf\/\\w+",
  7711. 'logo_0.png|downloads.gif"',
  7712. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link',
  7713. 'optional--',
  7714. "//a[contains(@href,'adlink.wf')]");
  7715. }
  7716. if (GM_getValue("Check_click_dot_tf_links", false))
  7717. {
  7718. addFileHost(
  7719. "click\.tf\/\\w+",
  7720. 'logo_0.png|downloads.gif"',
  7721. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link',
  7722. 'optional--',
  7723. "//a[contains(@href,'click.tf')]");
  7724. }
  7725. if (GM_getValue("Check_ssh_dot_tf_links", false))
  7726. {
  7727. addFileHost(
  7728. "ssh\.tf\/\\w+",
  7729. 'logo_0.png|downloads.gif"',
  7730. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link',
  7731. 'optional--',
  7732. "//a[contains(@href,'ssh.tf')]");
  7733. }
  7734. if (GM_getValue("Check_ssh_dot_yt_links", false))
  7735. {
  7736. addFileHost(
  7737. "ssh\.yt\/\\w+",
  7738. 'logo_0.png|downloads.gif"',
  7739. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link',
  7740. 'optional--',
  7741. "//a[contains(@href,'ssh.yt')]");
  7742. }
  7743. if (GM_getValue("Check_yep_dot_pm_links", false))
  7744. {
  7745. addFileHost(
  7746. "yep\.pm\/\\w+",
  7747. 'logo_0.png|downloads.gif"',
  7748. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link',
  7749. 'optional--',
  7750. "//a[contains(@href,'yep.pm')]");
  7751. }
  7752. if (GM_getValue("Check_kyc_dot_pm_links", false))
  7753. {
  7754. addFileHost(
  7755. "kyc\.pm\/\\w+",
  7756. 'logo_0.png|downloads.gif"',
  7757. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link',
  7758. 'optional--',
  7759. "//a[contains(@href,'kyc.pm')]");
  7760. }
  7761. if (GM_getValue("Check_brupload_dot_net_links", false))
  7762. {
  7763. addFileHost(
  7764. "brupload\.net\/\\w+",
  7765. 'Download Gratuito',
  7766. '<div style="width:500px;text-align:left;">',
  7767. 'optional--',
  7768. //'optional--',
  7769. "//a[contains(@href,'brupload.net')]");
  7770. }
  7771. if (GM_getValue("Check_cloudzilla_dot_to_links", false))
  7772. {
  7773. addFileHost(
  7774. "cloudzilla\.to\/\\w+",
  7775. 'btn1" id="free_download|onclick="freeDownload|id="pwd_protected">',
  7776. 'File not found|/imgs/broken.png',
  7777. 'optional--',
  7778. //'optional--',
  7779. "//a[contains(@href,'cloudzilla.to')]");
  7780. }
  7781. if (GM_getValue("Check_fileparadox_dot_in_links", false))
  7782. {
  7783. addFileHost(
  7784. "fileparadox\.in\/\\w+",
  7785. 'CONTENT="Download File|method_free_file',
  7786. '>File Not Found<|id="no_filedownload">|FILE NOT FOUND',
  7787. 'optional--',
  7788. //'optional--',
  7789. "//a[contains(@href,'fileparadox.in')]");
  7790. }
  7791. if (GM_getValue("Check_clicknupload_dot_com_links", false))
  7792. {
  7793. addFileHost(
  7794. "clicknupload\.com\/\\w+",
  7795. 'name="method_free',
  7796. 'File Not Found',
  7797. 'optional--',
  7798. //'optional--',
  7799. "//a[contains(@href,'clicknupload.com')]");
  7800. }
  7801. if (GM_getValue("Check_ex_dash_load_dot_com_links", false))
  7802. {
  7803. addFileHost(
  7804. "ex-load\.com\/\\w+",
  7805. 'name="method_free|<p>Download File:</p>',
  7806. 'Folder Not Found|File Not Found|Error 404',
  7807. 'optional--',
  7808. //'optional--',
  7809. "//a[contains(@href,'ex-load.com')]");
  7810. }
  7811. if (GM_getValue("Check_hexupload_dot_com_links", false))
  7812. {
  7813. addFileHost(
  7814. "hexupload\.com\/\\w+",
  7815. 'button" value="Free|type="submit" value=""',
  7816. 'File Not Found|<div style="width:500px;text-align:left;">',
  7817. 'optional--',
  7818. //'optional--',
  7819. "//a[contains(@href,'hexupload.com')]");
  7820. }
  7821. if (GM_getValue("Check_wizupload_dot_com_links", false))
  7822. {
  7823. addFileHost(
  7824. "wizupload\.com\/\\w+",
  7825. 'btn_download',
  7826. '>File Not Found<',
  7827. 'optional--',
  7828. //'optional--',
  7829. "//a[contains(@href,'wizupload.com')]");
  7830. }
  7831. if (GM_getValue("Check_filecloud_dot_cc_links", false))
  7832. {
  7833. addFileHost(
  7834. "filecloud\.cc\/\\w+",
  7835. 'align="center"><input type="submit" name=',
  7836. 'File Not Found|<Title>FileCloud - Premium Hosting Service<',
  7837. 'optional--',
  7838. //'optional--',
  7839. "//a[contains(@href,'filecloud.cc')]");
  7840. }
  7841. if (GM_getValue("Check_inclouddrive_dot_com_links", false))
  7842. {
  7843. addFileHost(
  7844. "inclouddrive\.com\/\\w+",
  7845. 'initfreedownload',
  7846. '<title>Content Unavailable|The file you are trying to download is no longer available',
  7847. 'optional--',
  7848. //'optional--',
  7849. "//a[contains(@href,'inclouddrive.com')]");
  7850. }
  7851. if (GM_getValue("Check_radicalshare_dot_com_links", false))
  7852. {
  7853. addFileHost(
  7854. "radicalshare\.com\/\\w+",
  7855. 'value="download1|name="method_free"',
  7856. 'File Not Found<|<div style="width:500px;text-align:left;">',
  7857. 'optional--',
  7858. //'optional--',
  7859. "//a[contains(@href,'radicalshare.com')]");
  7860. }
  7861. if (GM_getValue("Check_sharemods_dot_com_links", false))
  7862. {
  7863. addFileHost(
  7864. "sharemods\.com\/\\w+",
  7865. 'name="method_free"',
  7866. 'File Not Found<',
  7867. 'optional--',
  7868. //'optional--',
  7869. "//a[contains(@href,'sharemods.com')]");
  7870. }
  7871. if (GM_getValue("Check_hostr_dot_co_links", false))
  7872. {
  7873. addFileHost(
  7874. "hostr\.co\/\\w+",
  7875. 'method="get"',
  7876. 'File not found<|error-page',
  7877. 'optional--',
  7878. //'optional--',
  7879. "//a[contains(@href,'hostr.co')]");
  7880. }
  7881. if (GM_getValue("Check_filepi_dot_com_links", false))
  7882. {
  7883. addFileHost(
  7884. "filepi\.com\/\\w+",
  7885. 'id="button_start">',
  7886. 'File not found',
  7887. 'optional--',
  7888. //'optional--',
  7889. "//a[contains(@href,'filepi.com')]");
  7890. }
  7891. if (GM_getValue("Check_tikfile_dot_com_links", false))
  7892. {
  7893. addFileHost(
  7894. "tikfile\.com\/\\w+",
  7895. 'btn_download',
  7896. 'File Not Found|file was removed|Reason for deletion',
  7897. 'optional--',
  7898. //'optional--',
  7899. "//a[contains(@href,'tikfile.com')]");
  7900. }
  7901. if (GM_getValue("Check_cloudsix_dot_me_links", false))
  7902. {
  7903. addFileHost(
  7904. "cloudsix\.me\/\\w+",
  7905. 'name="method_free"',
  7906. 'File Not Found|width:500px;text-align:left;">',
  7907. 'optional--',
  7908. //'optional--',
  7909. "//a[contains(@href,'cloudsix.me')]");
  7910. }
  7911. if (GM_getValue("Check_neodrive_dot_co_links", false))
  7912. {
  7913. addFileHost(
  7914. "neodrive\.co\/\\w+",
  7915. 'btn1" id="free_download|onclick="freeDownload|id="pwd_protected">',
  7916. 'File not found|/imgs/broken.png',
  7917. 'optional--',
  7918. //'optional--',
  7919. "//a[contains(@href,'neodrive.co')]");
  7920. }
  7921. if (GM_getValue("Check_chayfile_dot_com_links", false))
  7922. {
  7923. addFileHost(
  7924. "chayfile\.com\/\\w+",
  7925. 'name="method_free"',
  7926. 'File Not Found|<h3>The file was removed by administrator</h3>',
  7927. 'optional--',
  7928. //'optional--',
  7929. "//a[contains(@href,'chayfile.com')]");
  7930. }
  7931. if (GM_getValue("Check_xfileload_dot_com_links", false))
  7932. {
  7933. addFileHost(
  7934. "xfileload\.com\/\\w+",
  7935. 'Filename:|Имя файла:|Dateiname:|nom de fichier :|اسم الملف:|Dosya AdД±|Nazwa:|Nombre de fichero:|NamaFile:|Bestandsnaam:|שם קובץ:"',
  7936. '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..|הקובץ שחיפשת לא נמצא.',
  7937. 'optional--',
  7938. //'optional--',
  7939. "//a[contains(@href,'xfileload.com')]");
  7940. }
  7941. if (GM_getValue("Check_rockfile_dot_eu_links", false))
  7942. {
  7943. addFileHost(
  7944. "rockfile\.eu\/\\w+",
  7945. 'You have requested:',
  7946. 'The file you were looking for could not be found, sorry for any inconvenience.',
  7947. 'optional--',
  7948. //'optional--',
  7949. "//a[contains(@href,'rockfile.eu')]");
  7950. }
  7951. if (GM_getValue("Check_24uploading_dot_com_links", false))
  7952. {
  7953. addFileHost(
  7954. "24uploading\.com\/\\w+",
  7955. 'File:|Download Speed:',
  7956. '<b>File Not Found</b>',
  7957. 'optional--',
  7958. //'optional--',
  7959. "//a[contains(@href,'24uploading.com')]");
  7960. }
  7961. if (GM_getValue("Check_tusfiles_dot_net_links", false))
  7962. {
  7963. addFileHost(
  7964. "tusfiles\.net\/\\w+",
  7965. 'i/icon/dll.png"|>Start download<br',
  7966. 'no longer available<|i/ino.png"',
  7967. 'optional--',
  7968. //'optional--',
  7969. "//a[contains(@href,'tusfiles.net')]");
  7970. }
  7971. if (GM_getValue("Check_2drive_dot_net_links", false))
  7972. {
  7973. addFileHost(
  7974. "2drive\.net\/\\w+",
  7975. 'value="Free Download"',
  7976. 'File Not Found',
  7977. 'optional--',
  7978. //'optional--',
  7979. "//a[contains(@href,'2drive.net')]");
  7980. }
  7981. if (GM_getValue("Check_jumbofile_dot_net_links", false))
  7982. {
  7983. addFileHost(
  7984. "jumbofile\.net\/\\w+",
  7985. 'button" class="" value="Free',
  7986. 'This File Was Deleted',
  7987. 'optional--',
  7988. //'optional--',
  7989. "//a[contains(@href,'jumbofile.net')]");
  7990. }
  7991. if (GM_getValue("Check_ozofiles_dot_com_links", false))
  7992. {
  7993. addFileHost(
  7994. "ozofiles\.com\/\\w+",
  7995. 'button" value="Free',
  7996. 'File Not Found|width:500px;text-align:left;">',
  7997. 'optional--',
  7998. //'optional--',
  7999. "//a[contains(@href,'ozofiles.com')]");
  8000. }
  8001. if (GM_getValue("Check_loudupload_dot_net_links", false))
  8002. {
  8003. addFileHost(
  8004. "loudupload\.net\/\\w+",
  8005. 'value="Get Links',
  8006. 'File Not Found',
  8007. 'optional--',
  8008. //'optional--',
  8009. "//a[contains(@href,'loudupload.net')]");
  8010. }
  8011. if (GM_getValue("Check_rapidsonic_dot_com_links", false))
  8012. {
  8013. addFileHost(
  8014. "(rapidsonic|fileparadox)\\.com\/\\w+",
  8015. 'method_free" id="submit_btn|<h4><i class="icon_document_alt"></i>Download File</h4>',
  8016. '>File Not Found<|id="no_filedownload">|>FILE NOT FOUND<|file has been deleted|No such file with this filename',
  8017. 'optional--',
  8018. //'optional--',
  8019. "//a[contains(@href,'rapidsonic') or contains(@href,'fileparadox.com')]");
  8020. }
  8021. if (GM_getValue("Check_krotix_dot_net_links", false))
  8022. {
  8023. addFileHost(
  8024. "krotix\.net\/\\w+",
  8025. 'btn btn-warning|btn-free',
  8026. 'pageErrors|This File has been removed',
  8027. 'optional--',
  8028. //'optional--',
  8029. "//a[contains(@href,'krotix.net')]");
  8030. }
  8031. if (GM_getValue("Check_userscloud_dot_com_links", false))
  8032. {
  8033. addFileHost(
  8034. "userscloud\.com\/\\w+",
  8035. 'btn_download',
  8036. '>Server OFFLINE|background:#D3D3D3;border-bottom:1px solid #BBB;font:bold 13px Verdana;padding:3px;">',
  8037. 'optional--',
  8038. //'optional--',
  8039. "//a[contains(@href,'userscloud.com')]");
  8040. }
  8041. if (GM_getValue("Check_kumpulbagi_dot_com_links", false))
  8042. {
  8043. addFileHost(
  8044. "kumpulbagi\.com\/\\w+",
  8045. 'class="button download',
  8046. 'internal server error',
  8047. 'optional--',
  8048. //'optional--',
  8049. "//a[contains(@href,'kumpulbagi.com')]");
  8050. }
  8051. if (GM_getValue("Check_faststore_dot_org_links", false))
  8052. {
  8053. addFileHost(
  8054. "faststore\.org\/\\w+",
  8055. 'name="method_free',
  8056. 'File Not Found',
  8057. 'optional--',
  8058. //'optional--',
  8059. "//a[contains(@href,'faststore.org')]");
  8060. }
  8061. if (GM_getValue("Check_prefiles_dot_com_links", false))
  8062. {
  8063. addFileHost(
  8064. "prefiles\.com\/\\w+",
  8065. 'id="method_free',
  8066. 'File not Found',
  8067. 'optional--',
  8068. //'optional--',
  8069. "//a[contains(@href,'prefiles.com')]");
  8070. }
  8071. if (GM_getValue("Check_doraupload_dot_com_links", false))
  8072. {
  8073. addFileHost(
  8074. "doraupload\.com\/\\w+",
  8075. 'btn_download',
  8076. 'class="error-code|Could Not Be Found',
  8077. 'optional--',
  8078. //'optional--',
  8079. "//a[contains(@href,'doraupload.com')]");
  8080. }
  8081. if (GM_getValue("Check_openload_dot_io_links", false))
  8082. {
  8083. addFileHost(
  8084. "openload\.io\/\\w+",
  8085. 'btn btn-primary|class="count">',
  8086. 'class="jumbotron">|We are sorry',
  8087. 'optional--',
  8088. //'optional--',
  8089. "//a[contains(@href,'openload.io')]");
  8090. }
  8091. }
  8092. //start here
  8093.  
  8094. //hosts with direct download, so they must be requested for headers only
  8095. function initFileHostsHeadersOnly()
  8096. {
  8097. function addFileHostHeadersOnly(linkRegex, isAliveRegex, isDeadRegex, xpathEx, ispremRegex)
  8098. {
  8099. var host = new Array(5);
  8100. host[0] = linkRegex;
  8101. host[1] = isAliveRegex;
  8102. host[2] = isDeadRegex;
  8103. host[3] = xpathEx;
  8104. host[4] = ispremRegex;
  8105. http_file_hosts_headers_only.push(host);
  8106. }
  8107. if (GM_getValue("Check_uloziste_dot_com_links", false))
  8108. {
  8109. addFileHostHeadersOnly(
  8110. "(?:|files\\.)uloziste\\.com\/\\w+\/\\w+",
  8111. 'Connection: Keep-Alive',
  8112. 'Content-Length: 3857',
  8113. "//a[contains(@href,'uloziste.com')]"
  8114. )
  8115. }
  8116. if (GM_getValue("Check_adrive_dot_com_links", false))
  8117. {
  8118. addFileHostHeadersOnly(
  8119. "adrive\\.com\/public\/\\w+",
  8120. 'Connection: keep-alive',
  8121. 'orig_ref=deleted',
  8122. "//a[contains(@href,'adrive.com')]"
  8123. )
  8124. }
  8125. if (GM_getValue("Check_myupload_dot_dk_links", false))
  8126. {
  8127. addFileHostHeadersOnly(
  8128. "myupload\\.dk\/showfile\/\\w+",
  8129. 'Expires:',
  8130. 'squeeze1\\s+Vary',
  8131. "//a[contains(@href,'myupload.dk/showfile')]"
  8132. )
  8133. }
  8134. }
  8135. //CustomRules
  8136. //functions add...Host copied here
  8137. function addObsoleteHost(linkRegex, xpathEx)
  8138. {
  8139. var host = new Array(2);
  8140. host[0] = linkRegex;
  8141. host[1] = xpathEx;
  8142. http_file_hosts_obsolete.push(host);
  8143. }
  8144. function addFileHost(linkRegex, isAliveRegex, isDeadRegex, isUnavaRegex, xpathEx, tryLoop, ispremRegex)
  8145. {
  8146. var host = new Array(7);
  8147. host[0] = linkRegex;
  8148. host[1] = isAliveRegex;
  8149. host[2] = isDeadRegex;
  8150. host[3] = isUnavaRegex;
  8151. host[4] = xpathEx;
  8152. tryLoop ? host[5] = true : host[5] = false;
  8153. host[6] = ispremRegex;
  8154. http_file_hosts.push(host);
  8155. }
  8156. function addFileHostHeadersOnly(linkRegex, isAliveRegex, isDeadRegex, xpathEx, ispremRegex)
  8157. {
  8158. var host = new Array(5);
  8159. host[0] = linkRegex;
  8160. host[1] = isAliveRegex;
  8161. host[2] = isDeadRegex;
  8162. host[3] = xpathEx;
  8163. host[4] = ispremRegex;
  8164. http_file_hosts_headers_only.push(host);
  8165. }
  8166. //takes a fully built rules array and adds the rules to WARLC
  8167. function applyCustomRules(customRules)
  8168. {
  8169. if (!customRules) return;
  8170. var rules, r, i;
  8171. rules = customRules.rules;
  8172. for (i = 0 ; i < rules.length ; i++)
  8173. {
  8174. r = rules[i];
  8175. if (r.enabled)
  8176. {
  8177. switch (r.type)
  8178. {
  8179. case 'single':
  8180. addFileHost(r.urlregex, r.aliveregex, r.deadregex, r.unavaregex, r.premregex||'', r.xpath);
  8181. break;
  8182. case 'headers':
  8183. addFileHostHeadersOnly(r.urlregex, r.aliveregex, r.deadregex, r.xpath, r.premregex);
  8184. break;
  8185. case 'obsolete':
  8186. addObsoleteHost(r.urlregex, r.xpath)
  8187. break;
  8188. }
  8189. }
  8190. }
  8191. }
  8192.  
  8193.  
  8194. function initFileHostsCustom()
  8195. {
  8196. if (Custom_rules && Custom_rules_text)
  8197. {
  8198. var msg = '';
  8199. if (newVersion)
  8200. msg = 'New version of W.A.R. Links Checker detected.\n\n';
  8201. else if ((now - last_custom_rules_nag) >= 60*24*60*60*1000)
  8202. msg = '60 or more days have passed since this notification.\n\n';
  8203. if (msg && /^\s*@customrule(?:_obsolete)?\s/mi.test(Custom_rules_text))
  8204. {
  8205. GM_setValue('last_custom_rules_nag', ''+new Date().getTime()); //reset nag
  8206. msg +=
  8207. 'Either new version of W.A.R. Links Checker detected or 60 days passed since this notify.\n'+
  8208. 'Please check that your custom rules haven\'t been built into WARLC.\n'+
  8209. 'If not, please share them with us so they can be included in the next version! Built-in rules are always preferred.\n\n'+
  8210. 'We apologize for this annoying notification, but there is a reason to this.\n'+
  8211. 'Ideally, WARLC would check which of your custom rules have been included and disable them. '+
  8212. 'Unfortunately, there is no easy way to do that, but we don\'t want everybody to just use their custom rules '+
  8213. 'forever without ever checking if the built-in ones have been added/fixed. This is currently the only way '+
  8214. 'to remind you that you should try built-in rules, report missing/non-working ones and share your custom rules.';
  8215. setTimeout(function(){alert(msg)},0);
  8216. }
  8217. var customRules = parseCustomRules(Custom_rules_text);
  8218. if (customRules.warning || customRules.error)
  8219. alert('There were ' + customRules.error + ' errors, ' + customRules.warning + ' warnings, ' +
  8220. customRules.note + ' notes found during Custom Rules processing.\n' + customRules.rules.length + ' valid rules found.\n\n' +
  8221. JSON.stringify(customRules.info, null, ' '));
  8222. applyCustomRules(customRules);
  8223. }
  8224. }
  8225. //end of CustomRules processing
  8226.  
  8227.  
  8228.  
  8229. } //end of function start
  8230.  
  8231.  
  8232.  
  8233. function initClipBoardTools()
  8234. {
  8235. unsafeWindow.copyToClipboard = function(text)
  8236. {
  8237. try
  8238. {
  8239. this.netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
  8240.  
  8241. var str = Components.classes["@mozilla.org/supports-string;1"].
  8242. createInstance(Components.interfaces.nsISupportsString);
  8243. if (!str) return false;
  8244.  
  8245. str.data = text;
  8246.  
  8247. var trans = Components.classes["@mozilla.org/widget/transferable;1"].
  8248. createInstance(Components.interfaces.nsITransferable);
  8249. if (!trans) return false;
  8250.  
  8251. trans.addDataFlavor("text/unicode");
  8252. trans.setTransferData("text/unicode", str, text.length * 2);
  8253.  
  8254. var clipid = Components.interfaces.nsIClipboard;
  8255. var clip = Components.classes["@mozilla.org/widget/clipboard;1"].getService(clipid);
  8256. if (!clip) return false;
  8257.  
  8258. clip.setData(trans, null, clipid.kGlobalClipboard);
  8259. } catch (e) {
  8260. GM_log("Error copyToClipboard : " + e);
  8261. alert(e + "\n\nsigned.applets.codebase_principal_support must be set true in about:config")
  8262. }
  8263. }
  8264. }
  8265.  
  8266.  
  8267.  
  8268. //CustomRules
  8269.  
  8270. function escapeRegex(str)
  8271. {
  8272. return str.replace(/[\-\[\]{}()*+?.,\\\^$|#]/g, "\\$&");
  8273. }
  8274.  
  8275.  
  8276. //called internally from parseCustomRules.
  8277. //expected: rule object with array fields baseurl, alivematch etc, everything must already be checked for input errors
  8278. //returns the rule object with string fields urlregex, xpath, aliveregex etc built from the arrays
  8279. function makeCustomRule(rule)
  8280. {
  8281. function makeMatchRegex(arrmatch)
  8282. {
  8283. return escapeRegex(arrmatch.join('\n'))
  8284. .replace(/ +/g, '\\s+') //two or more spaces to any whitespace
  8285. .replace(/\n/g,'|'); //join together
  8286. }
  8287. if (rule.alivematch) rule.aliveregex = makeMatchRegex(rule.alivematch);
  8288. if (rule.deadmatch) rule.deadregex = makeMatchRegex(rule.deadmatch);
  8289. if (rule.unavamatch) rule.unavaregex = makeMatchRegex(rule.unavamatch);
  8290. if (rule.premmatch) rule.premregex = makeMatchRegex(rule.premmatch);
  8291. if (rule.baseurl)
  8292. {
  8293. var i, m, urlregex = [], xpath = [], len = rule.baseurl.length;
  8294. for (i = 0 ; i < len ; i++)
  8295. {
  8296. m = rule.baseurl[i].match(/^([a-z0-9\.-]+)(?: +([a-z \.]+) +)?(\/.*)$/);
  8297. if (m[2]) //baseurl in the form: example. com co.uk net /xxx
  8298. {
  8299. 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'])
  8300. urlregex.push( (m[1] + '(?:'+ m[2].replace(/\s+/g,'|') + ')').replace(/\./g,'\\.') + escapeRegex(m[3]) + '.'); //urlregex.push('example\\.(?:com|co\\.uk|net)/xxx.')
  8301. }
  8302. else //baseurl in the form: example.com/xxx
  8303. {
  8304. xpath.push(m[0]);
  8305. urlregex.push(escapeRegex(m[0]) + '.');
  8306. }
  8307. }
  8308. rule.xpath = "//a[contains(@href,'" + xpath.join("') or contains(@href,'") + "')]";
  8309. rule.urlregex = '(?:[a-z0-9\\.-]+\\.)?(?:' + urlregex.join('|') + ')';
  8310. }
  8311. return rule;
  8312. } //function makeCustomRule
  8313.  
  8314.  
  8315. /*
  8316. Takes a string containing custom link checking rules.
  8317. Returns an object with fields:
  8318. info - contains notes, warnings and errors found during parsing
  8319. rules - the array of custom rules
  8320. note, warning, error - number of each of them found during parsing
  8321. Format of the input string:
  8322. One command per line. Command format: @keyword parameter
  8323. Keywords:
  8324. @customrule, @customrule_obsolete, @customrule_headers - begin a new custom rule. Parameter: name of the rule
  8325. @#customrule, @#customrule_obsolete, @#customrule_headers - begin and parse this custom rule, but don't use it. Parameter: name of the rule
  8326. These keywords can be multiple (any of them will work):
  8327. @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...)
  8328. @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+
  8329. @alivelink, @deadlink - example links
  8330. @baseurl is always required, @alivematch and @deadmatch are required except for obsolete. @unavamatch is ignored for obsolete. @*link is optional.
  8331. Lines starting with // and empty lines are ignored.
  8332. Invalid parameters generate errors and those lines are skipped.
  8333. Other lines generate warnings, but are otherwise ignored (also those before the first @customrule line or inside a rule with invalid name).
  8334. Example:
  8335. @customrule filehost
  8336. @baseurl filehost.com/download/
  8337. @baseurl filehost2. com net /d?=
  8338. @alivematch id="download">
  8339. @deadmatch File not found
  8340. @deadmatch File deleted
  8341. */
  8342. function parseCustomRules(rulesStr)
  8343. {
  8344. var linenum, customRules = {'info': [], 'rules': [], 'note': 0, 'warning': 0, 'error': 0};
  8345. function addInfo(type, msg, ln){
  8346. customRules.info.push({'linenum':(ln===undefined ? linenum+1 : ln+1), 'type':type, 'msg':msg});
  8347. customRules[type]++;
  8348. }
  8349. var lines = rulesStr.match(/^(.*)$/gm); //split into array of lines
  8350. if (!lines) return null;
  8351. lines.push('@#customrule _'); //to save the last rule
  8352. var m, linecount = lines.length;
  8353. var keyword, param, constr, rule, err;
  8354. var TLD = '[a-z]{2,7}(?:\\.[a-z]{2,7})?';
  8355. var TLDorTLDlist = '(?:'+TLD+'| '+TLD+'(?: '+TLD+'){0,9} )'; //TLD or space-separated list of TLDs
  8356. var baseurlRE = new RegExp('^([a-z0-9-]{1,30}(?:\\.[a-z0-9-]{1,30}){0,2}\\.)'+TLDorTLDlist+'(/[^\'"\s\$]{0,50})$', 'i');
  8357. var constraints = {
  8358. 'baseurl': {
  8359. 'single': {'min': 1, 'max': 10, 'paramRE': baseurlRE},
  8360. 'headers': {'min': 1, 'max': 10, 'paramRE': baseurlRE},
  8361. 'obsolete': {'min': 1, 'max': 10, 'paramRE': baseurlRE}},
  8362. 'alivematch': {
  8363. 'single': {'min': 1, 'max': 10, 'paramRE': null},
  8364. 'headers': {'min': 1, 'max': 10, 'paramRE': null}},
  8365. 'deadmatch': {
  8366. 'single': {'min': 1, 'max': 10, 'paramRE': null},
  8367. 'headers': {'min': 1, 'max': 10, 'paramRE': null}},
  8368. 'unavamatch': {
  8369. 'single': {'min': 0, 'max': 10, 'paramRE': null}},
  8370. 'alivelink': {
  8371. 'single': {'min': 0, 'max': 10, 'paramRE': null},
  8372. 'headers': {'min': 0, 'max': 10, 'paramRE': null}},
  8373. 'deadlink': {
  8374. 'single': {'min': 0, 'max': 10, 'paramRE': null},
  8375. 'headers': {'min': 0, 'max': 10, 'paramRE': null},
  8376. 'obsolete': {'min': 0, 'max': 10, 'paramRE': null}}
  8377. };
  8378. for (linenum = 0 ; linenum < linecount ; linenum++)
  8379. {
  8380. //capturing groups: 1 23 4 5 6
  8381. m = lines[linenum].match(/^\s*(?:(\/\/.*)|@((#?)(customrule)(?:_(headers|obsolete))?|baseurl|alivematch|deadmatch|unavamatch|alivelink|deadlink)\s+(.+))?$/i);
  8382. if (m)
  8383. {
  8384. if (m[1] || !m[2])
  8385. continue; // ignore empty lines and lines starting with //
  8386. keyword = (m[4] || m[2]).toLowerCase();
  8387. param = m[6];
  8388. if (keyword == 'customrule')
  8389. {
  8390. //save the current rule if all required fields are provided
  8391. if (rule)
  8392. {
  8393. err = false;
  8394. $.each(constraints, function(kw, constraint){
  8395. var l, constr = constraint[rule.type];
  8396. if (constr)
  8397. {
  8398. l = rule[kw] ? rule[kw].length : 0;
  8399. if (l < constr.min || l > constr.max)
  8400. {
  8401. 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);
  8402. err = true;
  8403. }
  8404. }
  8405. });
  8406. if (!err)
  8407. customRules.rules.push(makeCustomRule(rule));
  8408. }
  8409. //start a new rule
  8410. if (/^[\w\.-]{1,30}$/.test(param)) //valid name?
  8411. {
  8412. rule = {
  8413. 'enabled': !m[3],
  8414. 'type': m[5] ? m[5].toLowerCase() : 'single',
  8415. 'name': param
  8416. };
  8417. }
  8418. else
  8419. {
  8420. addInfo('error', 'Invalid rule name. Cannot start a new rule definition.');
  8421. rule = null;
  8422. }
  8423. }
  8424. else //good line format, but keyword other than customrule
  8425. {
  8426. if (!rule)
  8427. {
  8428. addInfo('warning', 'Command outside @CUSTOMRULE definiton. Line skipped.');
  8429. continue;
  8430. }
  8431. if (constraints[keyword])
  8432. {
  8433. constr = constraints[keyword][rule.type];
  8434. if (constr)
  8435. {
  8436. if (constr.paramRE && !constr.paramRE.test(param))
  8437. {
  8438. addInfo('warning', 'Invalid @' + keyword.toUpperCase() + ' parameter. Line Skipped.');
  8439. continue;
  8440. }
  8441. }
  8442. else
  8443. {
  8444. addInfo('note', '@' + keyword.toUpperCase() + ' not applicable for type ' + rule.type.toUpperCase() + '. Line skipped.');
  8445. continue;
  8446. }
  8447. }
  8448. //line OK, save
  8449. rule[keyword] ? rule[keyword].push(param) : rule[keyword] = [param];
  8450. }
  8451. } //if (m)
  8452. else
  8453. addInfo('warning', 'Unknown line format. Line skipped.');
  8454. } //for loop
  8455. return customRules;
  8456. } //function parseCustomRules