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

detects live, dead and premium links.

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

  1. // ==UserScript==
  2. // @name W.A.R. Links Checker Customized Premium Link Version
  3. // @description detects live, dead and premium links.
  4. // @details this script automatically checks links from 650+ filehosts. For Firefox, Chrome, Opera, Safari.
  5. // @namespace premium version
  6. // @version 1.1.4.4
  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. ];
  332.  
  333. try
  334. {
  335. //iframes excluded
  336. if (window.top != window.self)
  337. {
  338. return;
  339. }
  340. //allHostNames sites excluded
  341. if (window.location.href.match("https?:\/\/(www\.)?[\w\.-]*(?:" +
  342. allHostNames.join("|").replace(/\./g, "\\.").replace(/-/g, "\\-") +
  343. ")"))
  344. {
  345. return;
  346. }
  347. }
  348. catch (e)
  349. {
  350. return;
  351. }
  352.  
  353. //separate alternative domains with "|" char (first name is considered being main)
  354. var allContainerNames = [
  355. "adf.ly",
  356. "linkcrypt.ws",
  357. "linksafe.me",
  358. "linksave.in",
  359. "linkto.net",
  360. "madlink.sk",
  361. "multiload.cz",
  362. "mirrorcreator.com",
  363. "ncrypt.in",
  364. "redi.re",
  365. "relink.us",
  366. "safelinking.net",
  367. "theloo.katt.it",
  368. "bit.ly",
  369.  
  370. ];
  371.  
  372. //separate alternative domains with "|" char (first name is considered being main)
  373. var allObsoleteNames = [
  374. "uloz.cz",
  375. "storage.to",
  376. "iskladka.cz",
  377. "file-rack.com",
  378. "fast-load.net",
  379. "subory.sk",
  380. "bigandfree.com",
  381. "fileop.com",
  382. "mujsoubor.cz",
  383. "sendfile.to",
  384. "superfastfile.com",
  385. "quickyshare.com",
  386. "duckload.com",
  387. "uploadstore.net",
  388. "meinupload.com",
  389. "dualshare.com",
  390. "2xupload.to|2xupload.de",
  391. "oxedion.com",
  392. "uploadline.com",
  393. "dll.bz",
  394. "movieshare.in",
  395. "milledrive.com",
  396. "quickupload.net",
  397. "safelink.in",
  398. "metadivx.com",
  399. "divxlink.com",
  400. "uploadrack.com",
  401. "teradepot.com",
  402. "dataup.to",
  403. "upit.to",
  404. "driveway.com",
  405. "eatlime.com",
  406. "a2zuploads.com",
  407. "friendlyfiles.net",
  408. "flyfile.us",
  409. "speedyshare.com",
  410. "uploadspace.eu",
  411. "keepfile.com",
  412. "piggyshare.com",
  413. "uplly.com",
  414. "filecrown.com",
  415. "6giga.com",
  416. "uploadjockey.com",
  417. "bluehost.to",
  418. "filegu.ru",
  419. "filebase.to",
  420. "up-file.com",
  421. "xvideos.com",
  422. "ufox.com",
  423. "filebling.com",
  424. "loaded.it",
  425. "uploadcell.com",
  426. "uploadshare.cz",
  427. "mangoshare.com",
  428. "filestab.com",
  429. "crazyupload.com",
  430. "gaiafile.com",
  431. "sharejunky.com",
  432. "fileho.com",
  433. "bigandfree.com",
  434. "bigfile.in",
  435. "bigshare.eu",
  436. "dahosting.org",
  437. "digisofts.net",
  438. "file4save.com",
  439. "filechip.com",
  440. "filescloud.com",
  441. "saveqube.com",
  442. "turboshare.de",
  443. "z-upload.com",
  444. "youshare.com",
  445. "jiffyupload.com",
  446. "gigeshare.com",
  447. "datenklo.net",
  448. "upload.dj",
  449. "loadfiles.in",
  450. "upit.to",
  451. "dsfileshare.com",
  452. "sharesimple.net",
  453. "4files.net",
  454. "wooupload.com",
  455. "odsiebie.com",
  456. "filenavi.com",
  457. "3oof.com",
  458. "meshwaar.com",
  459. "maxupload.com",
  460. "share.cx",
  461. "atserver.eu",
  462. "hotfiles.ws",
  463. "esnips.com",
  464. "tuxfile.com",
  465. "file2upload.net",
  466. "filebling.com",
  467. "turboshare.com",
  468. "rarhost.com",
  469. "isharehd.com",
  470. "i741.com",
  471. "dataup.de",
  472. "fofly.com",
  473. "shareonall.com",
  474. "sexuploader.com",
  475. "megaupload.com|megavideo.com|megaporn.com|megarotic.com",
  476. "uploadhyper.com",
  477. "filespawn.com",
  478. "caizzii.com",
  479. "volnyweb.cz",
  480. "usershare.net",
  481. "filescash.net",
  482. "metahyper.com",
  483. "combozip.com",
  484. "x7.to",
  485. "uploadbox.com",
  486. "enterupload.com|flyupload.com",
  487. "filepoint.de",
  488. "mystream.to",
  489. "x-fs.com",
  490. "shareator.com",
  491. "srapid.eu",
  492. "sosame.cz",
  493. "filesdump.com",
  494. "2-klicks.de",
  495. "uploking.com",
  496. "silofiles.com",
  497. "upfile.in",
  498. "filehook.com",
  499. "uploadking.com",
  500. "uploadhere.com",
  501. "kewlshare.com",
  502. "rapidable.com",
  503. "uploadwaste.com",
  504. "filemup.com",
  505. "filesonic.com|sharingmatrix.com",
  506. "fileserve.com",
  507. "wupload.com",
  508. "skipfile.com",
  509. "smartuploader.com",
  510. "dualshare.com",
  511. "storeandserve.com",
  512. "mountfile.com",
  513. "transitfiles.com",
  514. "uploadstation.com",
  515. "filejungle.com",
  516. "shareshared.com",
  517. "quickyshare.com",
  518. "save.am",
  519. "petandrive.com",
  520. "file2box.com",
  521. "flyshare.cz",
  522. "yabadaba.ru",
  523. "cloudcache.cc",
  524. "yourfilehost.com",
  525. "jakfile.com",
  526. "kickload.com",
  527. "pyramidfiles.com",
  528. "refile.net",
  529. "zshare.net",
  530. "ddlani.me|ddlanime.com",
  531. "ftp2share.com",
  532. "fooget.com",
  533. "rapidhide.com",
  534. "gotupload.com",
  535. "mooload.com",
  536. "zupload.com",
  537. "mytempdir.com",
  538. "onionshare.com",
  539. "stahnu.to",
  540. "oron.com",
  541. "badongo.com",
  542. "filereactor.com",
  543. "filegaze.com",
  544. "4bytez.com",
  545. "1hostclick.com",
  546. "anonstream.com",
  547. "batshare.com",
  548. "bitroad.net",
  549. "brontofile.com",
  550. "cloudnxt.net",
  551. "cloudnator.com|shragle.com",
  552. "filesfrog.net",
  553. "coolshare.cz",
  554. "dotavi.com",
  555. "ezyfile.net",
  556. "file-bit.net",
  557. "filecosy.com",
  558. "fileduct.com|fileduct.net",
  559. "filefat.com",
  560. "filelaser.com",
  561. "filemashine.com",
  562. "fileserver.cc",
  563. "filetechnology.com",
  564. "fireuploads.net",
  565. "gigfiles.net",
  566. "holderfile.com",
  567. "ihostia.com",
  568. "k2files.com",
  569. "mojofile.com",
  570. "ovfile.com",
  571. "qshare.com",
  572. "shafiles.me",
  573. "sharefilehost.com",
  574. "shareupload.com",
  575. "stahuj.to",
  576. "ugotfile.com",
  577. "uploadboost.com",
  578. "fileom.com",
  579. "vidhog.com",
  580. "xfileshare.eu",
  581. "bzlink.us",
  582. "bulletupload.com",
  583. "wizzupload.com",
  584. "bloggerarticles.com",
  585. "mojedata.sk",
  586. "sharpfile.com",
  587. "upgrand.com",
  588. "nasdilej.cz",
  589. "mediatack.cz",
  590. "share-it.to",
  591. "primeupload.com",
  592. "filebeer.info",
  593. "baberepublic",
  594. "xtu.me",
  595. "sharebase.de",
  596. "luckyshare.net",
  597. "filerobo.com",
  598. "filevelocity.com",
  599. "filezpro.com",
  600. "file4sharing.com",
  601. "cing.be",
  602. "ufile.eu",
  603. "pigsonic.com",
  604. "fileupped.com",
  605. "sharerun.com",
  606. "filesaur.com",
  607. "rapidslnare.com",
  608. "bestsharing.com",
  609. "savefiles.net",
  610. "file2share.biz",
  611. "filecache.de",
  612. "monsteruploads.eu",
  613. "b9bb.com",
  614. "aiotool.net",
  615. "jamber.info",
  616. "megaftp.com",
  617. "desiupload.net",
  618. "file27.com",
  619. "yastorage.com",
  620. "filehost.ws",
  621. "copyload.com",
  622. "venusfile.com",
  623. "aieshare.com",
  624. "terafile.co",
  625. "terafile.com",
  626. "fileza.net",
  627. "filerose.com",
  628. "squillion.com",
  629. "fileprohost.com",
  630. "bitbonus.com",
  631. "warserver.cz",
  632. "uload.to",
  633. "sharedbit.net",
  634. "megaload.it",
  635. "filewinds.com",
  636. "uploadcore.com",
  637. "syfiles.com",
  638. "eyesfile.com",
  639. "hotfile.com",
  640. "superupl.com",
  641. "oteupload.com",
  642. "henchfile.com",
  643. "filegag.com",
  644. "HenchFile.com",
  645. "filedefend.com",
  646. "share-rapid.com|rapids.cz|share-credit.cz|share-central.cz|share-ms.cz|share-net.cz|srapid.cz|share-rapid.cz",
  647. "megabitshare.com",
  648. "cloudzer.com",
  649. "asfile.com",
  650. "cloudzer.net",
  651. "clz.to",
  652. "extabit.com",
  653. "247upload.com",
  654. "2download.de",
  655. "4fastfile.com",
  656. "asixfiles.com",
  657. "berofile.com",
  658. "bigupload.com",
  659. "cepzo.com",
  660. "clouds.to",
  661. "cobrashare.sk",
  662. "coraldrive.net",
  663. "cyberlocker.ch",
  664. "czshare.com",
  665. "darkport.org",
  666. "dark-uploads.com",
  667. "davvas.com",
  668. "enigmashare.com",
  669. "erofly.cz",
  670. "fastsonic.net",
  671. "filebox.com",
  672. "filecity.net",
  673. "filedap.com",
  674. "filedino.com",
  675. "filedownloads.org",
  676. "filefolks.com",
  677. "fileking.co",
  678. "filemates.com",
  679. "files.to",
  680. "files2k.eu",
  681. "filesector.cc",
  682. "bitshare.com",
  683. "filesega.com",
  684. "filesend.net",
  685. "filestay.com",
  686. "filestrum.com",
  687. "fileuplo.de",
  688. "fileupup.com",
  689. "forunesia.com",
  690. "freeuploads.fr",
  691. "uploa.dk",
  692. "getthebit.com",
  693. "getzilla.net",
  694. "goldfile.eu",
  695. "good.com",
  696. "grupload.com",
  697. "hellfile.com",
  698. "hipfile.com",
  699. "hitfile.com",
  700. "hulkfile.eu|duckfile.net",
  701. "i-filez.com",
  702. "ifile.ws",
  703. "kupload.org",
  704. "packupload.com",
  705. "lemuploads.com",
  706. "limelinx.com",
  707. "maxshare.pl",
  708. "megarelease.org",
  709. "megashare.com",
  710. "minus.com",
  711. "mlfat4arab.com",
  712. "multishare.cz",
  713. "nirafile.com",
  714. "ok2upload.com",
  715. "peejeshare.com",
  716. "premiuns.org",
  717. "przeklej.net",
  718. "qkup.net",
  719. "rapidupload.sk",
  720. "rockdizfile.com",
  721. "rocketfile.net",
  722. "share-now.net",
  723. "share76.com",
  724. "sharebees.com",
  725. "sharefiles.co",
  726. "slingfile.com",
  727. "sms4file.com",
  728. "space4file.com",
  729. "tigershare.net",
  730. "toucansharing.com",
  731. "ubuntuone.com",
  732. "unextfiles.com",
  733. "upaj.pl",
  734. "upfile.biz",
  735. "uploadbin.net",
  736. "uploadic.com",
  737. "uploadinc.com",
  738. "uploading4u.eu",
  739. "uploadjet.net",
  740. "uploadorb.com",
  741. "upthe.net",
  742. "uptorch.com",
  743. "vidbox.yt",
  744. "videozer.com",
  745. "vreer.com",
  746. "wallobit.com",
  747. "zooupload.com",
  748. "privatefiles.com",
  749. "xerver.co",
  750. "BillionUploads.com",
  751. "rapidshare.com",
  752. "rapidshare.ru",
  753. "4savefile.com",
  754. "bayfiles.com",
  755. "bayfiles.net",
  756. "dodane.pl",
  757. "dotsemper.com",
  758. "egofiles.com",
  759. "epicshare.net",
  760. "fiberupload.net",
  761. "filemonkey.in",
  762. "filemonster.net",
  763. "filepom.com",
  764. "filesbb.com",
  765. "fileshareup.com",
  766. "filevice.com",
  767. "gigaup.fr",
  768. "inafile.com",
  769. "isavelink.com",
  770. "loombo.com",
  771. "megafiles.se",
  772. "migupload.com",
  773. "mydisc.net",
  774. "nitrobits.com",
  775. "potload.com",
  776. "redload.net",
  777. "shareprofi.com",
  778. "sharesuper.info",
  779. "sinhro.net",
  780. "speedfile.cz",
  781. "speedshare.org",
  782. "storage.novoro.net",
  783. "swankshare.com",
  784. "swatupload.com",
  785. "upafile.com",
  786. "uploadmachine.com",
  787. "uploadsat.com",
  788. "upshared.com",
  789. "usefile.com",
  790. "yourfiles.to",
  791. "zomgupload.com",
  792.  
  793. ];
  794. ///////////////////////////////////////////////////////////////////////////////////////
  795. var firstRun = GM_getValue("First_run", true);
  796.  
  797. var chromeBrowser = /chrom(e|ium)/.test(navigator.userAgent.toLowerCase());
  798. //////////////////////////////////////////////////////////////////////////////////////
  799. try
  800. {
  801. var thisVersion = GM_info.script.version; //not supported in Scriptish and others
  802. var last_known_version = GM_getValue("last_known_version", "");
  803. if (!last_known_version)
  804. {
  805. last_known_version = thisVersion;
  806. GM_setValue("last_known_version", last_known_version);
  807. }
  808. //var newVersion = !(thisVersion == last_known_version);
  809. var newVersion = !(a.replace(/^(\d+\.\d+\.\d+).*/,'$1') == b.replace(/^(\d+\.\d+\.\d+).*/,'$1')); //true only if one of the first three numbers differs
  810. GM_setValue("last_known_version", thisVersion);
  811. }
  812. catch (err)
  813. {
  814. var newVersion = false;
  815. }
  816.  
  817. var now = (new Date()).getTime();
  818. var last_custom_rules_nag = GM_getValue('last_custom_rules_nag', 0);
  819. if (!last_custom_rules_nag)
  820. {
  821. last_custom_rules_nag = now;
  822. GM_setValue('last_custom_rules_nag', ''+now);
  823. }
  824.  
  825.  
  826. allHostNames.sort();
  827. allContainerNames.sort();
  828. allObsoleteNames.sort();
  829.  
  830. var RAND_STRING = "8QyvpOSsRG3QWq";
  831. var DEBUG_MODE = false;
  832.  
  833. var TOOLTIP_MAXWIDTH = 600; //in pixels
  834. var TOOLTIP_THUMBWIDTH = 200;
  835. var containers_processed = false;
  836.  
  837. //settings for keyboard functions start
  838. var CHECK_ALL_LINKS_KEY = "A";
  839. var CONFIGURATION_KEY = "C";
  840. var copy_to_dead_key = "D";
  841. var toggle_autocheck_key = "W";
  842. var toggle_Enable_Anonymizer_key = "Z";
  843. var first_key_keycode = '17'; // 18=ALT 16=Shift 17=Ctrl 32=SPACE_BAR 9=TAB
  844. var first_key_keycodename = 'CTRL';
  845. var second_key_keycode = '18';
  846. var second_key_keycodename = 'ALT';
  847. var CHECK_ALL_LINKS_KEYCODE = CHECK_ALL_LINKS_KEY.charCodeAt(0);
  848. var CONFIGURATION_KEYCODE = CONFIGURATION_KEY.charCodeAt(0);
  849. var copy_to_dead_keycode = copy_to_dead_key.charCodeAt(0);
  850. var toggle_autocheck_keycode = toggle_autocheck_key.charCodeAt(0);
  851. var toggle_Enable_Anonymizer_keycode = toggle_Enable_Anonymizer_key.charCodeAt(0);
  852. //settings for keyboard functions end
  853.  
  854. //global settings start
  855. var Show_black_background_in_DL_links, Show_line_through_in_dead_links, Color_DL_links;
  856. var Live_links_color, Dead_links_color, Temp_unavailable_links_color, Premium_links_color, Ref_anonymize_service;
  857. var Do_not_linkify_DL_links, Keyboard_functions, Autocheck, Enable_Anonymizer;
  858. var Show_progress_stats, Display_tooltip_info, Icon_set;
  859. var Progress_box_pos_bottom, Progress_box_pos_right, Progress_box_opacity, Progress_box_background_color, Progress_box_item_color;
  860. var Progress_box_refresh_rate;
  861. var Obsolete_file_hosts;
  862. var Custom_rules, Custom_rules_text;
  863.  
  864. var messageBox = document.createElement('b'); // top-left message box
  865.  
  866. var cLinksTotal = 0;
  867. var cLinksDead = 0;
  868. var cLinksAlive = 0;
  869. var cLinksUnava = 0;
  870. var cLinksprem = 0;
  871. var cLinksProcessed = 0;
  872.  
  873. var intervalId; //for updateProgress()
  874.  
  875. //icon resources
  876. var PAW_ICON_GREEN = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAANCAYAAABy6+R8AAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmC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23S5B4XsZOpPXAW957zXM773iNkQquUgAKAAlpISx3vDXunB8kA5Zbb3hr6l032HtDc7/rQzlWWJt6yk0Japfxr4udWN3dRAMP5UI5bzi5cu5F/ya7RKqWW204BG66c6bart0ePX1iQRjP6krygZIDCv5FMce0+cELx9WMAimuPUCPY8B6AmfYXcy5PwWhGW/vpR2AKdB8bPkScIswRBxupB84Dk3EIgDh4j+CjHIImxLV18sM/Z3rOibard1A5wcg8Kn1s+IAjb2bsiAPjlNNvwYbLINOgfQ5q6yCTqBzjv7qbMgoYl6PTTerSY+Di4ANqBrSDz0z1D2nXPtHr+STPNgFcN6mLm6EjAEfPKTea0Y74V5yHmEm8/6d23aRu7M1KOf4afTMAjWa0e6lUua7JDzNEtceATGoWWHx3a7wu359EzF+tjHfPjYS6kQed2UD3AESEvwMAaQGsQMrwcN0AAAAASUVORK5CYII=';
  885.  
  886. var NEW_ICON_GREEN = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACGklEQVR42mNkIBcwMWQwsDMrMZKhlZmRi2mCWYtE9st1bx+SagAPlwTLCt+pot6vrv/8t7/mnQcpBsjI6jNvDp4uZvDuMw/D8uA7U39/+Z9DrAGG5r5Mmz06pKQ//BVnWJl89daL0z8MgeLfiDHAN6SAaZlhjjzP+x8SDAcX3P1zuueVDVD8JEiSkVOcZbWAJKPi8wu/q4H8nSgBzcyQl9jN1ifvp8z8+acQw50brxk2Rd1u+fvzfy1MDaN7DOO7ohnSgqe2Pf0/rYJh1/N7/0uB4tdYuRknJMzgzZYyV2L89pub4c3Xbwwb4q+de3/9pwVQ/jfcAGYWhrJ5x207ZdSFGB59Ockwb+L3vydX/7oRPYFPW05DnuHbb1aGD79+MRyZev/H9TlvTIB6riK7EhQGbNr2rJe714eq/fjLwPD8x22GO5/eM/CzijN8BdoD0nz3/FuG/an3Sv7/ZehFDyBYIHplzFHcYullyPjp13eGj79/MHwEagRpfvPpB8OuuJsHvz785QRU9w+XAQwCMkyby3aZ+/xj5YBr/vDzD8OpngefHq55rw9U8gBbFCFHo4pljvAV60x19o+/fgMN+cNw79h7hjNFD5IZ/jPMwxXHKOmAmYOxPWCNWgWzKBfDm7c/GY4m3Nr089Uff3yJBD0h8Ug68tzQbVCUvtD66PWrXR91gWIvSTEABOw5pNlKfjz91QNkHySUTAGg7t0uvj1ytQAAAABJRU5ErkJggg==';
  887. var NEW_ICON_RED = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAA6klEQVQ4jbWTwWrCQBRFz6Rxnay6iuAXlJIg+BHZZR/d6++4t/5MpRQRf8CCrurGrDP6uumESTol04J3dbmPd7hvYBTAG5QBzIFH/PQpsBzDWm2gDGEFKM9lIxGYBSEsustRnpPWNZkImQip1sRF0QUoBQv1DgdgZE9SrdmGIX0Z8NFKni8XHqIIgEzkR+dMhGtVsYvjJgt6L+1Rq4FN/hcA2md01a0PjhPM8n44bDLjXeBf36A+nZzeG+Cr+wEGSeL0LsDZDq5VBcDT8dhkxpuZpbN6hXIAL76Vbd1gqgC+IX/6zhqWE1h/AYSwSjYrmXJlAAAAAElFTkSuQmCC';
  888. var NEW_ICON_YELLOW = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg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xD7yMdquw/jbJ4+xq2cz+AKdrJRv9EAv/EDx3Ft75QhtrHdcFpHy0mS/lSqcVzAFM7he6XaTNLXJoOmS+ziOc4XcB893A3xodUgm5zAHdzHSLH0DhdD/GwsoSjlV5Je5nK+YQUTOInXSXq7x6134RQuo4unGf6Me7iKMxgrNfUuXMJazr8U+DA6Of/UZrCF9xjFM3zELpZwOptulIKmLlQGNXdqS7u4EWK9BA9cYpJ2KtWcwaMazcInuB3iTZ3fGv/znf8CBMxX4hrPUbUAAAAASUVORK5CYII=';
  890.  
  891. //global settings end
  892. if (window.opera && !window.console)
  893. {
  894. window.console = {};
  895.  
  896. function fn()
  897. {
  898. opera.postError(arguments);
  899. };
  900. ['log', 'debug', 'info', 'warn', 'error', 'assert', 'dir', 'dirxml', 'group', 'groupEnd', 'time', 'timeEnd', 'count', 'trace', 'profile', 'profileEnd'].forEach(function (name)
  901. {
  902. window.console[name] = fn;
  903. });
  904. }
  905.  
  906. //displays colored text in message box
  907. function sendMessage(text, color)
  908. {
  909. var msgDiv = document.createElement('div');
  910. msgDiv.style.color = color;
  911. msgDiv.innerHTML = text;
  912. messageBox.appendChild(msgDiv);
  913. setTimeout(function(){messageBox.removeChild(msgDiv)}, 3000);
  914. }
  915.  
  916. function linkify(totalourls)
  917. { // code from http://userscripts.org/scripts/review/2254 Linkify ting
  918. var ikkeTilladteTags;
  919. var allLinksRegex = "(?:http:\/\/.+?\\?)?(?:https?:\/\/)?"
  920. + "[0-9A-Za-z]+(?:[\\.-][0-9A-Za-z]+)*\\.[A-Za-z]+/" //instead of totalourls
  921. + "[\\w\\–\\-\\.+$!*\\/()\\[\\]\',~%?:@#&=\\\\\\—;…×Ã\\_\\u0080-\\u03FF’‘" + (Allow_spaces_in_DL_links ? "\\u0020" : "") + "]*";
  922. allLinksRegex = new RegExp(allLinksRegex, "g");
  923. var regexy = "^(?:http:\/\/.+?\\?)?(?:https?:\/\/)?(?:www\\.)?(?:" + totalourls + ")";
  924.  
  925. if (Do_not_linkify_DL_links)
  926. ikkeTilladteTags = ['a', 'head', 'script', 'style', 'title', 'option', 'iframe', 'textarea', 'span']; //tags, hvor det der stAΞ’Β¥r inden i ikke skal vAΞ’Β¦re links
  927. else
  928. ikkeTilladteTags = ['a', 'head', 'script', 'style', 'title', 'option', 'iframe', 'textarea']; //tags, hvor det der stAΞ’Β¥r inden i ikke skal vAΞ’Β¦re links
  929.  
  930. var regex = new RegExp(regexy);
  931. var textNode, muligtLink;
  932.  
  933. var path = "//text()[not(parent::" + ikkeTilladteTags.join(" or parent::") + ") and contains(.,'/')]";
  934. var textNodes = document.evaluate(path, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  935.  
  936. var i = textNodes.snapshotLength;
  937. while (i--)
  938. {
  939. textNode = textNodes.snapshotItem(i);
  940.  
  941. muligtLink = textNode.nodeValue; //all links on page
  942.  
  943. var myArray = null;
  944. var span = null;
  945. var lastLastIndex = 0;
  946. allLinksRegex.lastIndex = 0;
  947. if (/^https?:\/\/~[\w\s\~]*\//.test(muligtLink))
  948. {
  949. if (textNode.parentNode.className == "adead_link") continue;
  950. var censoredLink = muligtLink;
  951. var span = document.createElement('span');
  952. span.className = "adead_link";
  953. $(span).attr('warlc_error', "Cause of error: <b>Censored link.</b>");
  954. $(span).html(censoredLink);
  955. span.addEventListener("mouseover", displayTooltipError, false);
  956. cLinksTotal++; cLinksProcessed++; cLinksDead++;
  957. textNode.parentNode.replaceChild(span, textNode);
  958. continue;
  959. alert(censoredLink);
  960. }
  961. while (myArray = allLinksRegex.exec(muligtLink)) //find all links
  962. {
  963. if (!regex.test(myArray[0])) //this link is not recognized
  964. {
  965.  
  966. continue;
  967. }
  968. if (!span)
  969. span = document.createElement('span');
  970.  
  971. var link = myArray[0];
  972. span.appendChild(document.createTextNode(muligtLink.substring(lastLastIndex, myArray.index))); //inds?t det der kommer for dette hit
  973.  
  974. var $a = $("<a>" + link + "</a>")
  975. if (!link.match(/https?:\/\//))
  976. {
  977. link = 'http://' + link;
  978. }
  979.  
  980. $a.attr("href", link.replace(/\[\/hide:\w+\]/,""))
  981. .addClass("processing_link")
  982. .appendTo(span);
  983. lastLastIndex = allLinksRegex.lastIndex;
  984. }
  985. if (span)
  986. {
  987. span.appendChild(document.createTextNode(muligtLink.substring(lastLastIndex))); //ins?t det der kommer efter sidste hit
  988. textNode.parentNode.replaceChild(span, textNode);
  989. }
  990. }
  991. }
  992.  
  993. function add_WARLC_style()
  994. {
  995. if (!(document.getElementsByTagName('WARLC')[0]))
  996. {
  997. var meta_not_to_add_more_style = document.createElement("WARLC");
  998. meta_not_to_add_more_style.setAttribute('content', 'war_links_checker');
  999. meta_not_to_add_more_style.setAttribute('name', 'description');
  1000. document.getElementsByTagName('head')[0].appendChild(meta_not_to_add_more_style);
  1001. alive_link_png = "";
  1002. adead_link_png = "";
  1003. unava_link_png = "";
  1004. prem_link_png = "";
  1005. switch(Icon_set)
  1006. {
  1007. //no icons
  1008. case 0: break;
  1009. // cat paws
  1010. case 1: alive_link_png = PAW_ICON_GREEN;
  1011. adead_link_png = PAW_ICON_RED;
  1012. unava_link_png = PAW_ICON_YELLOW;
  1013. prem_link_png = PAW_ICON_PINK;
  1014. break;
  1015. // classic RSLC look
  1016. case 2: alive_link_png = RSLC_ICON_GREEN;
  1017. adead_link_png = RSLC_ICON_RED;
  1018. unava_link_png = RSLC_ICON_YELLOW;
  1019. prem_link_png = RSLC_ICON_PINK;
  1020. break;
  1021. // New Icons
  1022. case 3: alive_link_png = NEW_ICON_GREEN;
  1023. adead_link_png = NEW_ICON_RED;
  1024. unava_link_png = NEW_ICON_YELLOW;
  1025. prem_link_png = NEW_ICON_PINK;
  1026. break;
  1027. // cat paws
  1028. default:alive_link_png = PAW_ICON_GREEN;
  1029. adead_link_png = PAW_ICON_RED;
  1030. unava_link_png = PAW_ICON_YELLOW;
  1031. prem_link_png = PAW_ICON_PINK;
  1032. break;
  1033. }
  1034. processing_link_gif = 'data:image/gif;base64,' + // or temporary anavailable
  1035. 'R0lGODlhCgAKAJEDAMzMzP9mZv8AAP///yH/C05FVFNDQVBFMi4wAwEAAAAh+QQFAAADACwAAAAACgAKAAACF5wncgaAGgJzJ647cWua4sOBFEd62VEAACH5BAUAAAMALAEAAAAIAAMAAAIKnBM2IoMDAFMQFAAh+QQFAAADACwAAAAABgAGAAACDJwHMBGofKIRItJYAAAh+QQFAAADACwAAAEAAwAIAAACChxgOBPBvpYQYxYAIfkEBQAAAwAsAAAEAAYABgAAAgoEhmPJHOGgEGwWACH5BAUAAAMALAEABwAIAAMAAAIKBIYjYhOhRHqpAAAh+QQFAAADACwEAAQABgAGAAACDJwncqi7EQYAA0p6CgAh+QQJAAADACwHAAEAAwAIAAACCpRmoxoxvQAYchQAOw%3D%3D';
  1036.  
  1037. var dead_color_css, live_color_css, unava_color_css, prem_color_css, black_background_css;
  1038.  
  1039. if (Color_DL_links)
  1040. {
  1041. dead_color_css = 'color:' + Dead_links_color + ' !important;';
  1042. live_color_css = 'color:' + Live_links_color + ' !important;';
  1043. unava_color_css = 'color:' + Temp_unavailable_links_color + ' !important;';
  1044. container_color_css = 'color:' + Container_links_color + ' !important;';
  1045. prem_color_css = 'color:' + Premium_links_color + ' !important;';
  1046. }
  1047. else
  1048. {
  1049. dead_color_css = live_color_css = unava_color_css = container_color_css = prem_color_css = '';
  1050. }
  1051.  
  1052. if (Show_black_background_in_DL_links)
  1053. {
  1054. black_background_css = 'background-color: black !important;';
  1055. }
  1056. else
  1057. {
  1058. black_background_css = '';
  1059. }
  1060.  
  1061. if (Show_line_through_in_dead_links)
  1062. {
  1063. line_through_css = 'text-decoration: line-through !important;';
  1064. }
  1065. else
  1066. {
  1067. line_through_css = '';
  1068. }
  1069.  
  1070. GM_addStyle(".alive_link {background:transparent url(" + alive_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;" + live_color_css + black_background_css + "}");
  1071. 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 + "}");
  1072. GM_addStyle(".unava_link {background:transparent url(" + unava_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;" + unava_color_css + black_background_css + "}");
  1073. GM_addStyle(".processing_link {background:transparent url(" + processing_link_gif + ") no-repeat scroll 100% 50%;padding-right:15px;" + container_color_css + black_background_css + "}");
  1074. GM_addStyle(".container_link {background:transparent url(" + processing_link_gif + ") no-repeat scroll 100% 50%;padding-right:15px;" + container_color_css + black_background_css + "}");
  1075. GM_addStyle(".container_list {font-size:90%; list-style-type:square; padding: 0px 5% 0px; margin: 0px}");
  1076. GM_addStyle(".prem_link {background:transparent url(" + prem_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;" + prem_color_css + black_background_css + "}");
  1077. }
  1078. }
  1079.  
  1080. var warlcTooltip = null;
  1081. var mouseoverLink = null; //link href with mouse cursor over it
  1082.  
  1083. var lastX = 0;
  1084. var lastY = 0;
  1085.  
  1086. $(document).ready(initTooltip);
  1087. //inits tooltip
  1088. function initTooltip()
  1089. { warlcTooltip = document.createElement("div");
  1090. 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;");
  1091. warlcTooltip.style.visibility = "hidden";
  1092. document.body.appendChild(warlcTooltip);
  1093. }
  1094.  
  1095. //"mousemove" event handler for all links
  1096. function moveTooltip(event)
  1097. {
  1098. if ((Math.abs(lastX - event.clientX) + Math.abs(lastY - event.clientY)) < 6)
  1099. { //no need to reflow if the cursor moved just a little
  1100. return;
  1101. }
  1102. else
  1103. {
  1104. lastX = event.clientX;
  1105. lastY = event.clientY;
  1106. }
  1107.  
  1108. posX = event.clientX + window.pageXOffset + 10;
  1109. posY = event.clientY + window.pageYOffset;
  1110. var ttHeight = warlcTooltip.offsetHeight;
  1111. var ttFreeSpace = window.innerHeight - event.clientY;
  1112. if (ttHeight > ttFreeSpace)
  1113. { //prevents tooltip from getting out of the window
  1114. posY -= (ttHeight - (ttFreeSpace)) + 10;
  1115. }
  1116. else
  1117. {
  1118. posY += 7;
  1119. }
  1120. warlcTooltip.style.top = posY + "px";
  1121. warlcTooltip.style.left = posX + "px";
  1122. }
  1123.  
  1124. //"mouseout" event handler for all links
  1125. function hideTooltip(){
  1126. warlcTooltip.style.visibility = "hidden";
  1127. mouseoverLink = null;
  1128. }
  1129.  
  1130.  
  1131. //"mouseover" event handler for dead links
  1132. //displays tooltip error message on dead links
  1133. function displayTooltipError()
  1134. {
  1135. mouseoverLink = this.href;
  1136. this.addEventListener("mouseout", hideTooltip);
  1137. this.addEventListener("mousemove", function(event) { moveTooltip(event); });
  1138. warlcTooltip.innerHTML = '<b>LOADING...</b>';
  1139. warlcTooltip.style.minWidth = 0;
  1140. warlcTooltip.style.visibility = "visible";
  1141. if (this.warlc_error) //an error message is already known and stored in warlc_error attribute
  1142. {
  1143. warlcTooltip.innerHTML = this.warlc_error;
  1144. }
  1145. else
  1146. {
  1147. loadErrorInfo(this);
  1148. }
  1149. function loadErrorInfo(link)
  1150. {
  1151. var href = link.href;
  1152. href = href.replace(/quickshare\.cz\/.+/, "quickshare.cz/chyba");
  1153. GM_xmlhttpRequest({
  1154. method: 'GET',
  1155. url: href.replace(Ref_anonymize_service, ""),
  1156. headers: {
  1157. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1158. 'Accept': 'text/xml',
  1159. 'Referer': ""
  1160. },
  1161. onload: function(result) {
  1162. var res = result.responseText;
  1163. //TODO: errorRegexs -
  1164. var errorRegexs = [ //generic error messages follow
  1165. /(empty directory)/i,
  1166. /(soubor nebyl nalezen)/i,
  1167. /((?:file|page|link|folder)(?:is|not|does|has been|was| ){1,}(?:found|available|blocked|exists?|deleted|removed))/i,
  1168. //server specific error messages follow
  1169. /msg error" style="cursor: default">(.+?)<\/div>/, //sendspace
  1170. /color:red;font\-weight:bold;border\-style:dashed;font-size:12px;border\-width:2px;><tr><td align=center>(.+?)<\/td>/, //fastshare
  1171. /(Takový soubor neexistuje. Je možné, že byl již smazán.)/, //quickshare
  1172. /file_info file_info_deleted">\s*<h1>(.+?)<\/h1>/, //filepost
  1173. /<br \/>\s*<p style="color:#000">(.+?)<\/p>\s*<\/center>/, //letitbit
  1174. /(?:error_div">|<\/h1><p>)<strong>(.+?)<\/strong>/, //share-rapid,quickshare
  1175. /class="red">(.+?)<(?:span|br)>/, //czshare, megashares
  1176. /class="wp640">\s*<h1 class="h1">(.+?)<\/h1>/, //uloz.to
  1177. /not-found">\s*<p>(.+?)<\/p>/, //bayfiles
  1178. /(Your file could not be found. Please check the download link.)/, //stahnu.to
  1179. /error_msg">\s*(<h3>.+?<\/h3><ul>(.+?)<\/ul>)/, //edisk
  1180. /id="obsah">\s*<h2>(.+?)<\/h2>/, //euroshare
  1181. /error">\s*(?:<[bp]>)?\s*(.+?)<\/[bp]>/, //filesmonster, shragle, gigapeta
  1182. ///center aC">\s*<h1>(.+?)<br \/>/, //uploaded.to
  1183. /icon_err">\s*<h1>(.+?)<\/h1>/, //filejungle
  1184. /Code: ER_NFF_\d+<\/h2>\s*(.+?)\s*<\/div>/, //netload
  1185. /(File has been removed due to Copyright Claim)/, //filerio
  1186. ];
  1187. var errorIdx = errorRegexs.length;
  1188. var error = "Cause of error: <b>unknown</b>";
  1189. var errorCandidate = "";
  1190. while(errorIdx--)
  1191. {
  1192. var errorCandidate = res.match(errorRegexs[errorIdx]);
  1193. if (errorCandidate != null)
  1194. {
  1195. error = "Cause of error: <b>" + errorCandidate[1].replace(/&nbsp;/g," ") + "</b>";
  1196. break;
  1197. }
  1198. }
  1199. //link attributes
  1200. link.warlc_error = error;
  1201. if (mouseoverLink == link.href) //mouse cursor is still over the link
  1202. {
  1203. warlcTooltip.innerHTML = error;
  1204. }
  1205. }
  1206. });
  1207. }
  1208. }
  1209.  
  1210. //"mouseover" event handler for alive links
  1211. //displays tooltip info (file size, file name,...) on alive links
  1212. function displayTooltipInfo()
  1213. {
  1214. mouseoverLink = this.href;
  1215. //exclude direct download filehostings
  1216. 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)/))
  1217. {
  1218. return;
  1219. }
  1220. this.addEventListener("mouseout", hideTooltip);
  1221. this.addEventListener("mousemove", function(event) { moveTooltip(event); });
  1222. warlcTooltip.innerHTML = '<b>LOADING...</b>';
  1223. warlcTooltip.style.minWidth = 0;
  1224. warlcTooltip.style.visibility = "visible";
  1225. if (this.warlc_tooltipcache) //file size is already known and stored in warlc_filename and warlc_filesize attributes
  1226. {
  1227. warlcTooltip.innerHTML = this.warlc_tooltipcache;
  1228. }
  1229. else
  1230. {
  1231. loadInfo(this);
  1232. }
  1233. function loadInfo(link)
  1234. {
  1235. var href = link.href;
  1236. GM_xmlhttpRequest({
  1237. method: 'GET',
  1238. url: href.replace(Ref_anonymize_service, ""),
  1239. headers: {
  1240. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1241. 'Accept': 'text/xml',
  1242. 'Referer': ""
  1243. },
  1244. onload: function(result) {
  1245. var res = result.responseText;
  1246. var nameRegexs = [ /Filename: <b class="f_arial f_14px">(.+?)<\/b>/, //oron
  1247. /(?:finfo|file[-_]?name)">\s*(.+?)<\/?(?:h1|a|div|span style|td)/, //hellshare, netload, badongo, 4fastfile
  1248. /fl" title="(.+?)">/, //edisk
  1249. /<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
  1250. /<h3>Stahujete soubor: <\/h3>\s*<div class="textbox">(.+?)<\/div>/, //webshare
  1251. /<h3><b><span style=color:black;>(.+?)<\/b><\/h3><br>/, //fastshare
  1252. /title="download (.+?)">/, //sendspace
  1253. /Stáhnout soubor: (.+?)<\/h1>/, //quickshare
  1254. /fz24">Download:\s*<strong>(.+?)<\/strong>/, //crocko
  1255. /'file\-icon\d+ \w+'>(?:<\/span><span>)?(.+?)<\/span>/, //hitfile, turbobit
  1256. /d0FileName = "(.+?)";/, //letitbit
  1257. /file(?:_name|-info)" title="">\w+: <span>(.+?)<\/span>/, //vip-file, shareflare
  1258. /recent-comments"><h2>(.+) &nbsp;/, //xdisk
  1259. /fname" value="(.+?)">/, //syfiles, grupload,
  1260. /download\-header">\s*<h2>File:<\/h2>\s*<p title="(.+?)">/, //bayfiles
  1261. /description">\s*<p><b>Soubor: (.+?)<\/b>/, //bezvadata
  1262. /Complete name : (.+?)<br \/>/, //bezvadata
  1263. /itemprop="name">(.+?)<\/span>/, //bezvadata
  1264. ];
  1265. var nameIdx = nameRegexs.length;
  1266. // [sizeRegexs]
  1267. // / \ \?
  1268. // prefix (size) postfix
  1269. // / \
  1270. // val quant
  1271. var quantRegex = '(?:M|G|K)?i?(?:B)(?:[y|i]te?s?)?';
  1272. var valRegex = '\\d+(?:[\\., ]\\d+){0,2}'; // 111([., ]222)?([., ]333)?
  1273. var uniSizeRegex = valRegex + '(?:\\s*|&nbsp;)' + quantRegex;
  1274. var preSizeRegex = '(?::|\\(|>|>, | - )';
  1275. var postSizeRegex = '(?:\\))?';
  1276. var sizeRegexs = [ preSizeRegex + "\\s*(" + uniSizeRegex + ")\\s*" + postSizeRegex,
  1277. 'FileSize_master">(.+?)<\/strong>', //hellshare
  1278. ];
  1279. var sizeIdx = sizeRegexs.length;
  1280. //
  1281. //
  1282. var tooltip = "File Name: <b>";
  1283. var fileName = "unknown";
  1284. var nameCandidate = "";
  1285. while(nameIdx--)
  1286. {
  1287. var nameCandidate = res.match(nameRegexs[nameIdx]);
  1288. if (nameCandidate != null)
  1289. {
  1290. fileName = nameCandidate[1].replace(/&nbsp;/g," ");
  1291. break;
  1292. }
  1293. }
  1294. tooltip += fileName + "</b><br>File Size: <b>";
  1295. var fileSize = "unknown";
  1296. var sizeCandidate = "";
  1297. while(sizeIdx--)
  1298. {
  1299. sizeCandidate = res.match(new RegExp(sizeRegexs[sizeIdx], "i"));
  1300. if (sizeCandidate != null)
  1301. {
  1302. fileSize = sizeCandidate[1].replace(/&nbsp;/g," ");
  1303. if (/^\d+$/.test(fileSize) && fileSize >= 1024) //assume bytes
  1304. {
  1305. if(fileSize > (1<<30)) fileSize = Math.round(10 * fileSize / (1<<30)) / 10 + ' GB';
  1306. else if(fileSize > (1<<20)) fileSize = Math.round(fileSize / (1<<20)) + ' MB';
  1307. else fileSize = Math.round(fileSize / 1024) + ' KB';
  1308. }
  1309. break;
  1310. }
  1311. }
  1312. tooltip += fileSize + "</b>";
  1313. // PROTOTYPE
  1314. // video thumbnails
  1315. if (href.match('hellshare'))
  1316. {
  1317. var thumbs;
  1318. thumbs = res.match(/http:\/\/static\d+\.helldata\.com\/thumbs(?:\/\d+){1,2}\/\d{1,2}"/g);
  1319. if (thumbs)
  1320. {
  1321. tooltip += '<br>';
  1322. var j = Math.min(thumbs.length, 9);
  1323. for (var i = 0; i < j; i++)
  1324. {
  1325. tooltip += '<img src="' + thumbs[i].replace('"',"") + '" width="' + TOOLTIP_THUMBWIDTH + 'px">';
  1326. }
  1327. warlcTooltip.style.minWidth = TOOLTIP_MAXWIDTH;
  1328. }
  1329. }
  1330. if (href.match('czshare'))
  1331. {
  1332. var thumbs;
  1333. thumbs = res.match(/src="http:\/\/www(\d+)\.czshare\.com\/images_velke\/\d+\.(\d+)\.jpeg/);
  1334. if (thumbs)
  1335. {
  1336. var thumbsServer = thumbs[1];
  1337. var thumbsId = thumbs[2];
  1338. tooltip += '<br>';
  1339. for (var i = 1; i < 9; i++)
  1340. {
  1341. tooltip += '<img src="http://www' + thumbsServer + '.czshare.com/images_velke/' + i + '.' + thumbsId + '.jpeg" width="' + TOOLTIP_THUMBWIDTH + 'px">';
  1342. }
  1343. warlcTooltip.style.minWidth = TOOLTIP_MAXWIDTH;
  1344. }
  1345. }
  1346. if (href.match('bezvadata'))
  1347. {
  1348. var thumbs;
  1349. thumbs = res.match(/http:\/\/nahledy\.bezvadata\.cz\/nahledy\/\d+\/\d+\/\d+_\d+_\d+x\d+_\w.jpg/g);
  1350. if (thumbs)
  1351. {
  1352. tooltip += '<br>';
  1353. var j = Math.min(thumbs.length, 9);
  1354. for (var i = 0; i < j; i++)
  1355. {
  1356. tooltip += '<img src="' + thumbs[i] + '" width="' + TOOLTIP_THUMBWIDTH + 'px">';
  1357. }
  1358. warlcTooltip.style.minWidth = TOOLTIP_MAXWIDTH;
  1359. }
  1360. }
  1361. link.warlc_tooltipcache = tooltip;
  1362. if (mouseoverLink == link.href) //mouse cursor is still over the link
  1363. {
  1364. warlcTooltip.innerHTML = tooltip;
  1365. }
  1366. }
  1367. });
  1368. }
  1369. }
  1370.  
  1371. function setVariables()
  1372. {
  1373. if (firstRun)
  1374. {
  1375. GM_log('First run, applying default settings...');
  1376. GM_setValue("Icon_set",1);
  1377. GM_setValue("Display_tooltip_info",true);
  1378. GM_setValue("Show_black_background_in_DL_links",false);
  1379. GM_setValue("Show_line_through_in_dead_links",false);
  1380. GM_setValue("Display_full_links_in_link_containers",false);
  1381. GM_setValue("Allow_spaces_in_DL_links",false);
  1382. GM_setValue("Autocheck",true);
  1383. GM_setValue("Enable_Anonymizer",false);
  1384. GM_setValue("Do_not_linkify_DL_links",false);
  1385. GM_setValue("Show_progress_stats",true);
  1386. GM_setValue("Keyboard_functions",true);
  1387. GM_setValue("Obsolete_file_hosts",false);
  1388. GM_setValue("Color_DL_links",true);
  1389. GM_setValue("Live_links_color","Green");
  1390. GM_setValue("Dead_links_color","#FF3300");
  1391. GM_setValue("Temp_unavailable_links_color","#F7EF09");
  1392. GM_setValue("Container_links_color","DarkKhaki");
  1393. GM_setValue("Premium_links_color","DeepPink");
  1394. GM_setValue("Ref_anonymize_service","http://hiderefer.com/?");
  1395. GM_setValue("Custom_rules",false);
  1396. GM_setValue("Custom_rules_text","");
  1397. GM_setValue("First_run", false);
  1398. }
  1399. //hidden settings
  1400. GM_setValue("Progress_box_pos_bottom", Progress_box_pos_bottom = GM_getValue("Progress_box_pos_bottom", 20));
  1401. GM_setValue("Progress_box_pos_right", Progress_box_pos_right = GM_getValue("Progress_box_pos_right", 10));
  1402. GM_setValue("Progress_box_opacity", Progress_box_opacity = GM_getValue("Progress_box_opacity", 85));
  1403. GM_setValue("Progress_box_background_color", Progress_box_background_color = GM_getValue("Progress_box_background_color", 'DimGray'));
  1404. GM_setValue("Progress_box_item_color", Progress_box_item_color = GM_getValue("Progress_box_item_color", 'DimGray'));
  1405. GM_setValue("Progress_box_refresh_rate", Progress_box_refresh_rate = GM_getValue("Progress_box_refresh_rate", 2000));
  1406. GM_setValue("Debug_mode", DEBUG_MODE = GM_getValue("Debug_mode", false));
  1407. //hidden settings end
  1408.  
  1409. Icon_set = GM_getValue("Icon_set", 1); //0 - no icons, 1 - cat paws, 2 - old RSLC style, 3 - New Icons,
  1410. Display_tooltip_info = GM_getValue("Display_tooltip_info", true);
  1411. Show_black_background_in_DL_links = GM_getValue("Show_black_background_in_DL_links", false);
  1412. Show_line_through_in_dead_links = GM_getValue("Show_line_through_in_dead_links", false);
  1413. Display_full_links_in_link_containers = GM_getValue("Display_full_links_in_link_containers", false);
  1414. Allow_spaces_in_DL_links = GM_getValue("Allow_spaces_in_DL_links", false);
  1415. Autocheck = GM_getValue("Autocheck", true);
  1416. Enable_Anonymizer = GM_getValue("Enable_Anonymizer", false);
  1417. Do_not_linkify_DL_links = GM_getValue("Do_not_linkify_DL_links", false);
  1418. Show_progress_stats = GM_getValue("Show_progress_stats", true);
  1419. Keyboard_functions = GM_getValue("Keyboard_functions", true);
  1420. Obsolete_file_hosts = GM_getValue("Obsolete_file_hosts", false);
  1421. Color_DL_links = GM_getValue("Color_DL_links", true);
  1422. Live_links_color = GM_getValue("Live_links_color", "Green");
  1423. Dead_links_color = GM_getValue("Dead_links_color", "#FF3300");
  1424. Temp_unavailable_links_color = GM_getValue("Temp_unavailable_links_color", "#F7EF09");
  1425. Container_links_color = GM_getValue("Container_links_color", "DarkKhaki");
  1426. Premium_links_color = GM_getValue("Premium_links_color", "DeepPink");
  1427. Ref_anonymize_service = GM_getValue("Ref_anonymize_service", "http://hiderefer.com/?");
  1428. Custom_rules = GM_getValue("Custom_rules", false);
  1429. Custom_rules_text = GM_getValue("Custom_rules_text", false);
  1430. }
  1431.  
  1432.  
  1433. // Delinkifies the links
  1434. // params:
  1435. // links -> list of links or link components (note they should be sufficiently unique to identify the link on page,
  1436. // e.g. 'uloz.to/xs68skxl8')
  1437. function delinkifySnapshot(snapshot)
  1438. {
  1439. var n = snapshot.snapshotLength;
  1440.  
  1441. while (n--)
  1442. {
  1443. thisLink = snapshot.snapshotItem(n);
  1444.  
  1445. var spanElm = document.createElement("span");
  1446. spanElm.className = thisLink.className;
  1447. spanElm.innerHTML = thisLink.innerHTML;
  1448.  
  1449. if (Display_tooltip_info)
  1450. {
  1451. spanElm.href = thisLink.href;
  1452. switch (thisLink.className){
  1453. case "alive_link": spanElm.addEventListener("mouseover", displayTooltipInfo, false); break
  1454. case "adead_link": spanElm.addEventListener("mouseover", displayTooltipError, false); break;
  1455. case "unava_link": //reserved
  1456. default:
  1457. }
  1458. }
  1459. thisLink.parentNode.replaceChild(spanElm, thisLink);
  1460. }
  1461. }
  1462.  
  1463. function processContainers()
  1464. {
  1465. var redirectorTypes = { "HTTP_302": 0,
  1466. "INNER_LINK": 1,
  1467. "THELOO_KATT_IT": 2,
  1468. "CING_BE": 3,
  1469. "ADF_LY": 4};
  1470. var cMultiloadTotal = 0;
  1471. var cMultiloadProcessed = 0;
  1472.  
  1473. var cMirrorcreatorComTotal = 0;
  1474. var cMirrorcreatorComProcessed = 0;
  1475.  
  1476. var hostRestrictionRegex = "";
  1477. var multiloadComRestriction = "";
  1478. var multiloadComRestrictionRegex;
  1479.  
  1480. //
  1481. //HANDLING REDIRECTORS START
  1482. //
  1483.  
  1484. var redirectors = new Array();
  1485. initRedirectors();
  1486.  
  1487. var redirectorsCount = redirectors.length;
  1488.  
  1489. if (redirectorsCount > 0)
  1490. {
  1491. var allRedirectorsRegex = "";
  1492.  
  1493. //linkify redirector links
  1494. for(var redirIdx = 0; redirIdx < redirectorsCount; redirIdx++)
  1495. {
  1496. allRedirectorsRegex += redirectors[redirIdx].linkRegex + "|";
  1497. }
  1498. allRedirectorsRegex = allRedirectorsRegex.replace(/\|$/, "");
  1499. linkify(allRedirectorsRegex);
  1500. //
  1501. //process redirector links
  1502. for(var redirIdx = 0; redirIdx < redirectorsCount; redirIdx++)
  1503. {
  1504. var redirectorsSnapshot = document.evaluate(redirectors[redirIdx].xpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  1505. redirectors[redirIdx].cTotal = redirectorsSnapshot.snapshotLength;
  1506.  
  1507. cLinksTotal += redirectors[redirIdx].cTotal;
  1508. var linkIdx = redirectors[redirIdx].cTotal;
  1509.  
  1510. while(linkIdx--)
  1511. {
  1512. switch(redirectors[redirIdx].type)
  1513. {
  1514. case redirectorTypes.HTTP_302: processRedirectorLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1515. case redirectorTypes.INNER_LINK: processRedirectorLinkEx(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1516. case redirectorTypes.THELOO_KATT_IT: processThelooKattItLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1517. case redirectorTypes.CING_BE: processCingBeLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1518. case redirectorTypes.ADF_LY: processAdfLyLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1519. default:
  1520. }
  1521. }
  1522. }
  1523. //
  1524. }
  1525.  
  1526. //HTTP_302
  1527. function processRedirectorLink(link, redirectorId)
  1528. {
  1529. link.className = 'container_link';
  1530.  
  1531. GM_xmlhttpRequest({
  1532. method: 'HEAD',
  1533. url: link.href,
  1534. headers: {
  1535. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1536. 'Accept': 'text/xml',
  1537. 'Referer': ""
  1538. },
  1539. onload: function(result) {
  1540. if (result.finalUrl.replace("https", "http") == link.href) // service hasn't redirected anywhere
  1541. {
  1542. processRedirectorLink(link, redirectorId);
  1543. }
  1544. else
  1545. {
  1546. redirectors[redirectorId].cProcessed++;
  1547. link.href = result.finalUrl;
  1548. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  1549. checkLinks('container_link');
  1550. }
  1551. },
  1552. onerror: function(result) { //probably caused by unresponsive filehosting
  1553. redirectors[redirectorId].cProcessed++;
  1554. link.className = 'unava_link';
  1555. cLinksProcessed++;
  1556. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  1557. checkLinks('container_link');
  1558. }
  1559. });
  1560. }
  1561. //INNER_LINK
  1562. function processRedirectorLinkEx(link, redirectorId)
  1563. {
  1564. link.className = 'container_link';
  1565. GM_xmlhttpRequest({
  1566. method: 'GET',
  1567. url: link.href,
  1568. headers: {
  1569. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1570. 'Accept': 'text/xml',
  1571. 'Referer': ""
  1572. },
  1573. onload: function(result) {
  1574. link.href = result.responseText.match(redirectors[redirectorId].innerLinkRegex)[1];
  1575. redirectors[redirectorId].cProcessed++;
  1576. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  1577. checkLinks('container_link');
  1578. }
  1579. });
  1580. }
  1581. //theloo.katt.it (wrapped safelinking.net)
  1582. function processThelooKattItLink(link, redirectorId)
  1583. {
  1584. link.className = 'container_link';
  1585. GM_xmlhttpRequest({
  1586. method: 'GET',
  1587. url: link.href,
  1588. headers: {
  1589. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1590. 'Accept': 'text/xml',
  1591. 'Referer': ""
  1592. },
  1593. onload: function(result) {
  1594. link.href = result.responseText.match(redirectors[redirectorId].innerLinkRegex)[1];
  1595. redirectors[redirectorId].cProcessed++;
  1596. //the inner links are safelinking.net links, so lets proceed with it
  1597. if (GM_getValue("Check_safelinking_dot_net_links", false))
  1598. {
  1599. processRedirectorLink(link, 0);
  1600. }
  1601. }
  1602. });
  1603. }
  1604. //adf.ly (adf.ly/go innerLink, locking mechanism)
  1605. function processAdfLyLink(link, redirectorId)
  1606. {
  1607. link.className = 'container_link';
  1608. GM_xmlhttpRequest({
  1609. method: 'GET',
  1610. url: link.href,
  1611. headers: {
  1612. 'User-agent': 'Mozilla/4.0',
  1613. 'Accept': 'text/xml',
  1614. 'Referer': ""
  1615. },
  1616. onload: function(result) {
  1617. if (result.finalUrl.match('/locked/'))
  1618. {
  1619. var delay = result.responseText.match(/countdown">(\d+)</)[1];
  1620. // GM_log(result.finalUrl + 'is locked. Repeating the request in ' + delay + 's.');
  1621. // setTimeout(function(){processAdfLyLink(link, redirectorId);}, delay * 1000);
  1622. }
  1623. else
  1624. {
  1625. // GM_log('Processing... ' + link.href);
  1626. // GM_log('Found...' + result.responseText.match(/\/go\/(\w+\/\w+)/)[1]);
  1627. var directLink = 'http://adf.ly' + result.responseText.match(/(\/go\/\w+\/\w+)/)[1];
  1628. var logToken = result.responseText.match(/flashy_(\w+)/)[1];
  1629. var users = result.responseText.match(/user=\d+&user2=\d+/);
  1630. //confirm advert
  1631. GM_xmlhttpRequest(
  1632. {
  1633. method: 'POST',
  1634. url: 'http://adf.ly/l.php',
  1635. headers: {
  1636. 'User-agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20100101 Firefox/13.0',
  1637. 'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
  1638. 'Referer': link.href
  1639. },
  1640. data: users + '&lt=' + logToken,
  1641. onload: function(result) {
  1642. //retrieve final url from .../go/... link
  1643. GM_xmlhttpRequest({
  1644. method: 'GET',
  1645. url: directLink,
  1646. headers: {
  1647. 'User-agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20100101 Firefox/13.0',
  1648. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  1649. 'Referer': link.href
  1650. },
  1651. onload: function(result) {
  1652. link.href = result.finalUrl;
  1653. redirectors[redirectorId].cProcessed++;
  1654. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  1655. checkLinks('container_link');
  1656. }
  1657. });
  1658. }
  1659. });
  1660. }
  1661. }
  1662. });
  1663. function proceedOK()
  1664. {
  1665. }
  1666. }
  1667. //MULTILOAD.CZ START
  1668. if (GM_getValue("Check_multiload_dot_cz_links", false))
  1669. {
  1670. var mlRegex = 'multiload\\.cz\/stahnout\/\\d+\/';
  1671. var mlXpath = "//a[contains(@href,'http://www.multiload.cz/stahnout')]";
  1672.  
  1673. hostRestrictionRegex = 'Upload se nezdařil|limit exceeded|probíhá reupload|';
  1674.  
  1675. if (GM_getValue("Check_hellshare_dot_com_links", false))
  1676. hostRestrictionRegex += 'hellshare|';
  1677. if (GM_getValue("Check_share_dash_rapid_dot_com_links", false))
  1678. hostRestrictionRegex += 'share-rapid\\.com|';
  1679. if (GM_getValue("Check_quickshare_dot_cz_links", false))
  1680. hostRestrictionRegex += 'quickshare\\.cz|';
  1681. if (GM_getValue("Check_czshare_dot_com_links", false))
  1682. hostRestrictionRegex += 'czshare\\.com|';
  1683. if (GM_getValue("Check_uloz_dot_to_links", false))
  1684. hostRestrictionRegex += 'uloz\\.to|';
  1685. if (GM_getValue("Check_hellspy_dot_com_links", false))
  1686. hostRestrictionRegex += 'hellspy|';
  1687. if (GM_getValue("Check_multishare_dot_cz_links", false))
  1688. hostRestrictionRegex += 'multishare\\.cz|';
  1689.  
  1690. hostRestrictionRegex = hostRestrictionRegex.replace(/\|$/, "");
  1691.  
  1692. linkify(mlRegex);
  1693.  
  1694. var mlSnapshot = document.evaluate(mlXpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  1695. var mlCount = mlSnapshot.snapshotLength;
  1696.  
  1697. if (mlCount > 0)
  1698. {
  1699. cMultiloadTotal += mlCount;
  1700.  
  1701. mlIdx = mlCount - 1;
  1702. do
  1703. {
  1704. processMultiloadLink(mlSnapshot.snapshotItem(mlIdx));
  1705. }
  1706. while(mlIdx--)
  1707. }
  1708. }
  1709. //MULTILOAD.CZ END
  1710.  
  1711.  
  1712.  
  1713. function processMultiloadLink(mlLink)
  1714. {
  1715. GM_xmlhttpRequest({
  1716. method: 'GET',
  1717. url: mlLink.href,
  1718. headers: {
  1719. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1720. 'Accept': 'text/xml',
  1721. 'Referer': ""
  1722. },
  1723. onload: function(result) {
  1724. var res = result.responseText;
  1725.  
  1726. var innerBlockRegex = /<p class="manager-linky">(?:.|\s)+?<\/p>/g;
  1727. 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;
  1728. var innerLinkRegex = /((?:Upload se nezdařil.+|https?:\/\/(?:.|\s)+|Právě probíhá reupload, buďte trpěliví\.\.\.))</;
  1729. var mlRestrictionRegex = new RegExp(hostRestrictionRegex,"g"); //what links should be displayed
  1730.  
  1731. var blocks; // blocks of links
  1732. var blockIdx;
  1733.  
  1734. mlLink.className = '';
  1735.  
  1736. if (result.status == 503) //service temporarily unavailable, repeat request in one second
  1737. {
  1738. setTimeout(function(){ processMultiloadLink(mlLink); }, 1000);
  1739. return;
  1740. }
  1741.  
  1742. blocks = res.match(innerBlockRegex);
  1743.  
  1744. if (blocks == null) //no links found, cancel further processing
  1745. {
  1746. mlLink.parentNode.appendChild(document.createTextNode(' | Požadovaný soubor neexistuje.'));
  1747. cMultiloadProcessed++;
  1748. if (cMultiloadTotal <= cMultiloadProcessed)
  1749. {
  1750. startBulkCheck('container_link');
  1751. start('container_link');
  1752. }
  1753. return;
  1754. }
  1755.  
  1756. blockIdx = blocks.length;
  1757.  
  1758. if (Display_full_links_in_link_containers)
  1759. {
  1760. var ulElm = document.createElement('ul');
  1761. ulElm.className = 'container_list'; //CSS smaller font, padding, margin, square style
  1762.  
  1763. while(blockIdx--)
  1764. {
  1765. if (blocks[blockIdx].match(mlRestrictionRegex) == null)
  1766. {
  1767. continue;
  1768. }
  1769.  
  1770. var innerLinks = blocks[blockIdx].match(innerLinksRegex);
  1771.  
  1772. var linkIdx = innerLinks.length;
  1773. while (linkIdx--)
  1774. {
  1775. var innerLink = innerLinks[linkIdx].match(innerLinkRegex)[1];
  1776.  
  1777. var liElm = document.createElement('li');
  1778.  
  1779. if (innerLink.match(/Upload se nezdařil|limit exceeded|probíhá reupload/))
  1780. {
  1781. liElm.appendChild(document.createTextNode(innerLink));
  1782. }
  1783. else
  1784. {
  1785. var aElm = document.createElement('a');
  1786. aElm.innerHTML = innerLink;
  1787. aElm.href = innerLink;
  1788. aElm.className = 'container_link';
  1789.  
  1790. liElm.appendChild(aElm);
  1791. }
  1792.  
  1793. ulElm.appendChild(liElm);
  1794. cLinksTotal++;
  1795. }
  1796. }
  1797.  
  1798. mlLink.parentNode.appendChild(ulElm);
  1799. }
  1800. else //compact view
  1801. {
  1802. mlLink.parentNode.appendChild(document.createTextNode("|"));
  1803.  
  1804. while(blockIdx--)
  1805. {
  1806. if (blocks[blockIdx].match(mlRestrictionRegex) == null)
  1807. {
  1808. continue;
  1809. }
  1810.  
  1811. var innerLinks = blocks[blockIdx].match(innerLinksRegex);
  1812.  
  1813. var linkIdx = innerLinks.length;
  1814. while (linkIdx--)
  1815. {
  1816. var innerLink = innerLinks[linkIdx].match(innerLinkRegex)[1];
  1817.  
  1818. if (innerLink.match(/Upload se nezdařil|limit exceeded|probíhá reupload/))
  1819. {
  1820. mlLink.parentNode.appendChild(document.createTextNode("----"));
  1821. }
  1822. else
  1823. {
  1824. var aElm = document.createElement('a');
  1825.  
  1826. var hostName = innerLink.match(/quickshare|hellshare|uloz\.to|multishare|hellspy|share\-rapid|czshare/);
  1827.  
  1828. //abbreviate host name
  1829. switch(hostName + ""){
  1830.  
  1831. case 'quickshare': aElm.innerHTML = 'QS'; break;
  1832. case 'hellshare': aElm.innerHTML = 'HS'; break;
  1833. case 'uloz.to': aElm.innerHTML = 'UT'; break;
  1834. case 'multishare': aElm.innerHTML = 'MS'; break;
  1835. case 'hellspy': aElm.innerHTML = 'hs'; break;
  1836. case 'share-rapid': aElm.innerHTML = 'SR'; break;
  1837. case 'czshare': aElm.innerHTML = 'CS'; break;
  1838. default: aElm.innerHTML = 'xx';
  1839.  
  1840. }
  1841.  
  1842. aElm.href = innerLink;
  1843. aElm.className = 'container_link';
  1844.  
  1845. mlLink.parentNode.appendChild(aElm);
  1846. cLinksTotal++;
  1847. }
  1848. }
  1849.  
  1850. mlLink.parentNode.appendChild(document.createTextNode("|")); //blocks delimiter
  1851.  
  1852. }
  1853. }
  1854.  
  1855. cMultiloadProcessed++;
  1856. if (cMultiloadTotal == cMultiloadProcessed) //start check when all ml links have been processed
  1857. {
  1858. if (Do_not_linkify_DL_links)
  1859. {
  1860. delinkifySnapshot(mlSnapshot);
  1861. }
  1862. startBulkCheck('container_link');
  1863. start('container_link');
  1864. }
  1865. }
  1866. });
  1867. }
  1868.  
  1869.  
  1870. if (GM_getValue("Check_mirrorcreator_dot_com_links", false))
  1871. {
  1872. var mcRegex = 'mirrorcreator\\.com/files/(\\w+)';
  1873. var mcXpath = "//a[contains(@href,'mirrorcreator.com/files')]";
  1874. var mcShortHostNames =
  1875. '?? 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';
  1876. // 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
  1877. //?????? depositfiles sendspace load.to ul.to storage.to uploadbox x7.to fileserve ?????? duckload filehook filepost jumbofiles glumbouploads
  1878. // zshare ?????? 2shared uploading ugotfile extabit oron eyvx uploadstation putlocker
  1879. // megaupload badongo megashare gamefront ifile ?????? letitbit ?????? ?????? filejungle megashares
  1880. // easy-share ?????? netload zippyshare ?????? filesonic turbobit enterupload ?????? filekeen wupload crocko fileflyer
  1881.  
  1882. linkify(mcRegex);
  1883.  
  1884. var mcSnapshot = document.evaluate(mcXpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  1885. var mcCount = mcSnapshot.snapshotLength;
  1886.  
  1887. cMirrorcreatorComTotal = mcCount;
  1888.  
  1889. if (mcCount > 0)
  1890. {
  1891. mcShortHostNames = mcShortHostNames.split(' ');
  1892. mcIdx = mcCount;
  1893. while(mcIdx--)
  1894. processMirrorcreatorLink(mcSnapshot.snapshotItem(mcIdx));
  1895. }
  1896.  
  1897. }
  1898. //MIRRORCREATOR.CZ END
  1899.  
  1900.  
  1901. //mirrorcreator.com checking works like this:
  1902. //The base URL is http://www.mirrorcreator.com/files/XXXXXXXX/filename_links
  1903. //the actual list of mirrors is at http://www.mirrorcreator.com/status.php?uid=XXXXXXXX
  1904. //the list contains links in the form of (http://www.mirrorcreator.com)/redirect/XXXXXXXX/1
  1905. //these redirector links are extracted with mcLinkBlockRegex and the pages loaded
  1906. //they contain the actual filehost links, which are extracted with mcHostRegex and displayed in a container list
  1907. function processMirrorcreatorLink(mcLink)
  1908. {
  1909. var mcURL = mcLink.href.match(mcRegex);
  1910. if(!mcURL || !mcURL[1]) return;
  1911. mcURL = 'http://www.mirrorcreator.com/status.php?uid=' + mcURL[1]; //link correction
  1912. GM_xmlhttpRequest({
  1913. method: 'GET',
  1914. url: mcURL,
  1915. headers: {
  1916. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1917. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*'+'/*;q=0.8',
  1918. 'Referer': ""
  1919. },
  1920. onload: function(mcLinkResult) {
  1921. var mcLinkRes = mcLinkResult.responseText;
  1922.  
  1923. var mcLinkBlockRegex = /(\/redirect\/\w+\/(\d+))/gi;
  1924. var mcHostRegex = /<div id="redirectlink">.*?<a href="([^"]+)"/;
  1925.  
  1926. var mcRedirectors;
  1927. var mcHostURLs = [], mcRedirectorIDs = [], mcHostsFound = 0, mcHostsRetrieved = 0, mcHostsToProcess = 0;
  1928. var m = mcLinkRes.match(mcLinkBlockRegex);
  1929. if (m)
  1930. mcHostsFound = m.length;
  1931. else
  1932. { //no files inside container
  1933. processMirrorcreatorFoundHosts(mcLink, []);
  1934. return;
  1935. }
  1936.  
  1937. var mcRedirectorURL, idx, timedOut = false;
  1938.  
  1939. var gmxhrFunc = function(mcRedirectorURL){ //Tampermonkey doesn't know neither this.url or result.finalUrl
  1940. GM_xmlhttpRequest({
  1941. method: 'GET',
  1942. url: mcRedirectorURL,
  1943. headers: {
  1944. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1945. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*'+'/*;q=0.8',
  1946. 'Referer': ""
  1947. },
  1948. onload: function(mcHostResult) {
  1949. if (timedOut) return; //too late, the list is already displayed
  1950. var mcHostRes = mcHostResult.responseText;
  1951. var mcHost = mcHostRes.match(mcHostRegex);
  1952. idx = mcHostURLs.indexOf(mcRedirectorURL);
  1953. if (mcHost && idx!=-1)
  1954. {
  1955. mcHostURLs[idx] = mcHost[1].replace(/^\s+|\s+$/g, '');
  1956. mcHostsRetrieved++;
  1957. mcHostsToProcess++;
  1958. if (mcHostsFound == mcHostsRetrieved) //this is the last one!
  1959. {
  1960. processMirrorcreatorFoundHosts(mcLink, mcHostURLs, mcRedirectorIDs);
  1961. mcHostsToProcess = 0;
  1962. }
  1963. }
  1964. } //end of onload: function
  1965. }); //end of GM_xmlhttpRequest call
  1966. };//end of var gmxhrFunc
  1967.  
  1968. while (mcRedirectors = mcLinkBlockRegex.exec(mcLinkRes))
  1969. { //load individual redirector pages
  1970. mcRedirectorURL = 'http://www.mirrorcreator.com' + mcRedirectors[1];
  1971. mcHostURLs.push(mcRedirectorURL);
  1972. mcRedirectorIDs.push(mcRedirectors[2]);
  1973. gmxhrFunc(mcRedirectorURL);
  1974. } //end of while block
  1975.  
  1976. setTimeout(function(){ //in case the last page fails to load and call the function
  1977. timedOut = true;
  1978. if (mcHostsToProcess)
  1979. processMirrorcreatorFoundHosts(mcLink, mcHostURLs);
  1980. }, 60000);
  1981.  
  1982. } //end of onload function
  1983. }); //end of GM_xmlhttpRequest call
  1984. } //end of function processMirrorcreatorLink
  1985.  
  1986.  
  1987. function processMirrorcreatorFoundHosts(mcLink, mcHostURLs, mcRedirectorIDs)
  1988. {
  1989. var aEl, liEl, docFrag;
  1990. var hostName, mcRedirectorID, trimFilename = false;
  1991. var i = mcHostURLs.length;
  1992. if (i == 0)
  1993. {
  1994. trimFilename = true;
  1995. mcLink.parentNode.insertBefore(document.createTextNode(' | No files inside container'), mcLink.nextSibling);
  1996. }
  1997. else
  1998. {
  1999. if (Display_full_links_in_link_containers)
  2000. { //full view
  2001. var wrapperEl = document.createElement('span');
  2002. wrapperEl.style.display = 'block';
  2003. var ulistEl = document.createElement('ul');
  2004. ulistEl.className = 'container_list';
  2005. while (i--)
  2006. {
  2007. liEl = document.createElement('li');
  2008. aEl = document.createElement('a');
  2009. aEl.appendChild(document.createTextNode(mcHostURLs[i]));
  2010. aEl.href = mcHostURLs[i];
  2011. aEl.className = 'container_link';
  2012. liEl.appendChild(aEl);
  2013. ulistEl.appendChild(liEl);
  2014. }
  2015. wrapperEl.appendChild(ulistEl);
  2016. mcLink.parentNode.replaceChild(wrapperEl, mcLink);
  2017. wrapperEl.insertBefore(mcLink, wrapperEl.firstChild);
  2018. }
  2019. else
  2020. { //compact view
  2021. trimFilename = true;
  2022. docFrag = document.createDocumentFragment();
  2023. docFrag.appendChild(document.createTextNode(' |'));
  2024. while (i--)
  2025. {
  2026. mcRedirectorID = mcRedirectorIDs[i];
  2027. hostName = mcHostURLs[i];
  2028. if (mcRedirectorID > mcShortHostNames.length-1 || mcShortHostNames[mcRedirectorID] == '??')
  2029. hostName = hostName.replace(/https?:\/\/(?:www\.)?([-0-9a-z]+(?:\.[-0-9a-z]+)?)\.[a-z]+\/.*/i, '$1').toUpperCase();
  2030. else
  2031. hostName = mcShortHostNames[mcRedirectorID];
  2032. aEl = document.createElement('a');
  2033. aEl.href = mcHostURLs[i];
  2034. aEl.className = 'container_link';
  2035. aEl.appendChild(document.createTextNode(hostName));
  2036. docFrag.appendChild(aEl);
  2037. docFrag.appendChild(document.createTextNode('|'));
  2038. }
  2039. mcLink.parentNode.insertBefore(docFrag, mcLink.nextSibling);
  2040. } //end of else block
  2041. } //end of else block
  2042. mcLink.className = '';
  2043. if (trimFilename)
  2044. mcLink.firstChild.nodeValue = mcLink.firstChild.nodeValue.replace(/(https?:\/\/[^\/]+\/files\/\w+\/).+/, '$1...');
  2045. cMirrorcreatorComProcessed++;
  2046. if (cMirrorcreatorComProcessed == cMirrorcreatorComTotal) //start check when all mc links have been processed
  2047. {
  2048. if (Do_not_linkify_DL_links)
  2049. delinkifySnapshot(mcSnapshot);
  2050. startBulkCheck('container_link');
  2051. start('container_link');
  2052. }
  2053. } //end of function processMirrorcreatorFoundHosts
  2054.  
  2055. containers_processed = true;
  2056.  
  2057.  
  2058. function initRedirectors()
  2059. {
  2060. function addRedirector(linkRegex, xpathEx, redirType, innerLinkRegex)
  2061. {
  2062. var redirector = new Object();
  2063. redirector.linkRegex = linkRegex;
  2064. redirector.xpath = xpathEx; //xpath expression
  2065. redirector.cProcessed = 0; //processed links count
  2066. redirector.cTotal = 0; //total links count
  2067. redirector.type = redirType; //redirectorTypes enum
  2068. redirector.innerLinkRegex = innerLinkRegex; //innerLink, null if unused
  2069. redirectors.push(redirector);
  2070. }
  2071. if (GM_getValue("Check_safelinking_dot_net_links", false))
  2072. {
  2073. addRedirector(
  2074. 'safelinking\\.net\/d\/\\w+',
  2075. "//a[contains(@href,'safelinking.net/d/')]",
  2076. redirectorTypes.HTTP_302,
  2077. null);
  2078. }
  2079. if (GM_getValue("Check_linksafe_dot_me_links", false))
  2080. {
  2081. addRedirector(
  2082. 'linksafe\\.me\/d\/\\w+',
  2083. "//a[contains(@href,'linksafe.me/d/')]",
  2084. redirectorTypes.HTTP_302,
  2085. null);
  2086. }
  2087. if (GM_getValue("Check_linkto_dot_net_links", false))
  2088. {
  2089. addRedirector(
  2090. 'linkto\\.net\/\\?\\w+\\.\\d+',
  2091. "//a[contains(@href,'linkto.net/?')]",
  2092. redirectorTypes.INNER_LINK,
  2093. /<iframe id="iframe" name="iframe" src="(.+?)\s*" frameborder="0"/);
  2094. }
  2095. if (GM_getValue("Check_theloo_dot_katt_dot_it_links", false))
  2096. {
  2097. addRedirector(
  2098. '(?:the)?loo\\.katt\\.it\/\\w+',
  2099. "//a[contains(@href,'loo.katt.it/')]",
  2100. redirectorTypes.THELOO_KATT_IT,
  2101. /Proceed to URL - <a href="(.+?)">/);
  2102. }
  2103. if (GM_getValue("Check_madlink_dot_sk_links", false))
  2104. {
  2105. addRedirector(
  2106. 'madlink\\.sk\/\\w+',
  2107. "//a[contains(@href,'madlink.sk/')]",
  2108. redirectorTypes.INNER_LINK,
  2109. /name="url" value="(.+?)\s*"\/>/);
  2110. }
  2111. if (GM_getValue("Check_adf_dot_ly_links", false))
  2112. {
  2113. addRedirector(
  2114. '(?:adf\\.ly|[u9]\\.bb|[qj]\\.gs)\/\\w+',
  2115. "//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/')]",
  2116. redirectorTypes.ADF_LY,
  2117. null);
  2118. }
  2119. if (GM_getValue("Check_redi_dot_re_links", false))
  2120. {
  2121. addRedirector(
  2122. 'redi\\.re\/\\w+',
  2123. "//a[contains(@href,'redi.re/')]",
  2124. redirectorTypes.HTTP_302,
  2125. null);
  2126. }
  2127. if (GM_getValue("Check_bit_dot_ly_links", false))
  2128. {
  2129. addRedirector(
  2130. 'bit\\.ly\/\\w+',
  2131. "//a[contains(@href,'bit.ly/')]",
  2132. redirectorTypes.HTTP_302,
  2133. null);
  2134. }
  2135. }
  2136.  
  2137. }
  2138.  
  2139. var bulkHosts = new Array();
  2140. var bulkHostNames = new Array();
  2141. function initBulkCheck()
  2142. {
  2143. /////////////////////////////
  2144. // Inits filehost object
  2145. /////////////////////////////
  2146. // params :
  2147. // hostName -- [string] host name (multiple domains separated with coma)
  2148. // linkRegex -- [string] link regex
  2149. // xpath -- [string] xpath expression to detect the link objects with evaluate
  2150. // blockSize -- [integer] max. number of links sent in one request, 50 if null
  2151. // corrMatch -- [regex] link correction regex (match), applied prior to corrRepl
  2152. // corrReplWhat -- [regex] link correction regex (replace)
  2153. // corrReplWith -- [string]
  2154. // splitSeparator -- [string] POSTDATA links separator, "\r\n" if null
  2155. //
  2156. // apiUrl -- [string] web linkchecker or API URL
  2157. // postData -- [string] POSTDATA of xmlhttprequest
  2158. // resLinkRegex -- [regex]
  2159. // resLiveRegex -- [regex] matches substrings containing live links in the request response
  2160. // resDeadRegex -- [regex] matches substrings containing dead links in the request response
  2161. // resUnavaRegex -- [regex] matches substrings containing unava links in the request response
  2162. // func -- [function] bulkcheck handler, genBulkCheck if null
  2163. //
  2164. //////////////////////////////
  2165. function addHost(hostName, linkRegex, xpath, blockSize, corrMatch, corrReplWhat, corrReplWith, splitSeparator,
  2166. apiUrl, postData, resLinkRegex, resLiveRegex, resDeadRegex, resUnavaRegex, func)
  2167. {
  2168. var fileHost = new Object();
  2169.  
  2170. fileHost.linkRegex = linkRegex;
  2171. fileHost.linkRegexObject = new RegExp(linkRegex, "");
  2172. fileHost.xpath = xpath;
  2173. fileHost.cFound = 0; //found links counter
  2174. fileHost.links = new Array(); //found links
  2175. if (blockSize == null)
  2176. {
  2177. fileHost.blockSize = 50;
  2178. }
  2179. else
  2180. {
  2181. fileHost.blockSize = blockSize;
  2182. }
  2183. fileHost.corrMatch = corrMatch;
  2184. fileHost.corrReplWhat = corrReplWhat;
  2185. fileHost.corrReplWith = corrReplWith;
  2186. if (splitSeparator == null)
  2187. {
  2188. fileHost.splitSeparator = "\r\n";
  2189. }
  2190. else
  2191. {
  2192. fileHost.splitSeparator = splitSeparator;
  2193. }
  2194. fileHost.apiUrl = apiUrl;
  2195. fileHost.postData = postData;
  2196. fileHost.resLinkRegex = resLinkRegex;
  2197. fileHost.resLiveRegex = resLiveRegex;
  2198. fileHost.resDeadRegex = resDeadRegex;
  2199. fileHost.resUnavaRegex = resUnavaRegex;
  2200. if (func == null)
  2201. {
  2202. fileHost.func = genBulkCheck;
  2203. }
  2204. else
  2205. {
  2206. fileHost.func = func;
  2207. }
  2208. bulkHosts.push(fileHost);
  2209. var names = hostName.split(',');
  2210. var i = names.length;
  2211. while(i--)
  2212. {
  2213. bulkHostNames[names[i]] = fileHost;
  2214. }
  2215. }
  2216. var genType1 = [
  2217. "migahost.com", "rodfile.com", "downloadani.me",
  2218. "rarefile.net",
  2219. "ddlstorage.com", "filesabc.com", "sharebeast.com",
  2220. "180upload.com", "verzend.be",
  2221. "movreel.com",
  2222. "4up.me",
  2223. "file4safe.com", "filemac.com", "4upfiles.com",
  2224. "idup.in", "novafile.com", "longfiles.com",
  2225. "bitupload.com",
  2226. "uploadbaz.com"
  2227. ];
  2228. var genType2 = [ "prefiles.com", "queenshare.com",
  2229. "hulkload.com",
  2230. "daj.to",
  2231. "amonshare.com", "edoc.com",
  2232. ];
  2233. //xfilesharing 1.0
  2234. function addGenericType1()
  2235. {
  2236. var i = genType1.length;
  2237. while(i--)
  2238. {
  2239. if (GM_getValue("Check_" + genType1[i].replace(/\./g, "_dot_").replace(/-/g, "_dash_") + "_links", false))
  2240. {
  2241. var regexSafe = genType1[i].replace(/\./g, "\\.").replace(/-/g, "\\-");
  2242. addHost(
  2243. genType1[i].match(/[\w-]+/)[0], //hostname
  2244. regexSafe + "\/\\w+", //linkregex
  2245. "//a[contains(@href,'" + genType1[i] + "/')]", //xpath
  2246. null, //blocksize
  2247. new RegExp("(http:\/\/(?:|www\\.)" + regexSafe + "\/\\w+)",""),//, //corrmatch
  2248. null, //corrreplwhat
  2249. null, //corrreplwith
  2250. null, //separator
  2251. "http://" + genType1[i] + "/checkfiles.html", //api url
  2252. "op=checkfiles&process=Check+URLs&list=", //postdata
  2253. new RegExp("(" + regexSafe + "\/\\w+)",""), //linkregex
  2254. new RegExp("green'>http:\/\/(?:|www\.)" + regexSafe + "\/\\w+","g"), //liveregex
  2255. new RegExp("red'>http:\/\/(?:|www\.)" + regexSafe + "\/\\w+","g"), //deadregex
  2256. new RegExp("orange'>http:\/\/(?:|www\.)" + regexSafe + "\/\\w+","g"), //unavaregex
  2257. null //function delegate
  2258. )
  2259. }
  2260. }
  2261. }
  2262. //xfilesharing 2.0
  2263. function addGenericType2()
  2264. {
  2265. var i = genType2.length;
  2266. while(i--)
  2267. {
  2268. if (GM_getValue("Check_" + genType2[i].replace(/\./g, "_dot_").replace(/-/g, "_dash_") + "_links", false))
  2269. {
  2270. var regexSafe = genType2[i].replace(/\./g, "\\.").replace(/-/g, "\\-");
  2271. addHost(
  2272. genType2[i].match(/[\w-]+/)[0], //hostname
  2273. regexSafe + "\/\\w+", //linkregex
  2274. "//a[contains(@href,'" + genType2[i] + "/')]", //xpath
  2275. null, //blocksize
  2276. new RegExp("(http:\/\/(?:|www\\.)" + regexSafe + "\/\\w+)",""),//, //corrmatch
  2277. null, //corrreplwhat
  2278. null, //corrreplwith
  2279. null, //separator
  2280. "http://www." + genType2[i] + "/?op=checkfiles", //api url
  2281. "op=checkfiles&process=Check+URLs&list=", //postdata
  2282. new RegExp("(" + regexSafe + "\/\\w+)",""), //linkregex
  2283. new RegExp(regexSafe + "\/\\w+.*?<\/td>\\s*<td style=\"color:green;\">","g"), //liveregex
  2284. new RegExp(regexSafe + "\/\\w+.*?<\/td>\\s*<td style=\"color:red;\">","g"), //deadregex
  2285. new RegExp(regexSafe + "\/\\w+.*?<\/td>\\s*<td style=\"color:orange;\">","g"), //unavaregex
  2286. null //function delegate
  2287. )
  2288. }
  2289. }
  2290. }
  2291. // TEMPLATE
  2292. // if (GM_getValue("Check__dot_com_links", false))
  2293. // {
  2294. // addHost(
  2295. // "", //hostname
  2296. // "", //linkregex
  2297. // "//a[contains(@href,'.com/')]", //xpath
  2298. // null, //blocksize
  2299. // null, //corrmatch
  2300. // null, //corrreplwhat
  2301. // null, //corrreplwith
  2302. // null, //separator
  2303. // "", //api url
  2304. // "", //postdata
  2305. // /()/, //linkregex
  2306. // //liveregex
  2307. // //deadregex
  2308. // //unavaregex
  2309. // null //function delegate
  2310. // )
  2311. // }
  2312. addGenericType1();
  2313. addGenericType2();
  2314.  
  2315. if (GM_getValue("Check_myvdrive_dot_com_links", false))
  2316. {
  2317. addHost(
  2318. "myvdrive,fileserving", //hostname
  2319. "(?:fileserving|myvdrive)\\.com\/files\/[\\w-]+", //linkregex
  2320. "//a[contains(@href,'fileserving.com/files') or contains(@href,'myvdrive.com/files')]", //xpath
  2321. null, //blocksize
  2322. null, //corrmatch
  2323. null, //corrreplwhat
  2324. null, //corrreplwith
  2325. null, //separator
  2326. "http://www.myvdrive.com/Public/linkchecker#", //api url
  2327. "links=", //postdata
  2328. /(?:fileserving|myvdrive)\.com\/(files\/\w+)/, //linkregex
  2329. /icon_file_check_valid"><\/span>\s*http:\/\/www\.(?:fileserving|myvdrive)\.com\/files\/[\w-]+/g, //liveregex
  2330. /icon_file_check_(?:removed|notvalid)"><\/span>\s*http:\/\/www\.(?:fileserving|myvdrive)\.com\/files\/[\w-]+/g, //deadregex
  2331. null, //unavaregex
  2332. null //function delegate
  2333. )
  2334. }
  2335. if (GM_getValue("Check_hackerbox_dot_org_links", false))
  2336. {
  2337. addHost(
  2338. "hackerbox", //hostname
  2339. "host\\.hackerbox\\.org\/\\w+", //linkregex
  2340. "//a[contains(@href,'host.hackerbox.org/')]", //xpath
  2341. null, //blocksize
  2342. /(http:\/\/host\.hackerbox\.org\/\w+)/, //corrmatch
  2343. null, //corrreplwhat
  2344. null, //corrreplwith
  2345. null, //separator
  2346. "http://host.hackerbox.org/checkfiles.html", //api url
  2347. "op=checkfiles&process=Check+URLs&list=", //postdata
  2348. /(host\.hackerbox\.org\/\w+)/, //linkregex
  2349. /green'>http:\/\/host\.hackerbox\.org\/\w+/g, //liveregex
  2350. /red'>http:\/\/host\.hackerbox\.org\/\w+/g, //deadregex
  2351. /orange'>http:\/\/host\.hackerbox\.org\/\w+/g, //unavaregex
  2352. null //function delegate
  2353. )
  2354. }
  2355. if (GM_getValue("Check_hellshare_dot_com_links", false))
  2356. {
  2357. addHost(
  2358. "hellshare", //hostname
  2359. "(?:|download\\.(?:cz\\.|en\\.|sk\\.|)|www\\.)hellshare\\.(?:com|sk|cz|pl|hu|COM|SK|CZ|PL|HU)\/[\\w-\\.]+\/(?:[\\w-\\.]+\/|)\\d{5,}", //linkregex
  2360. "//a[contains(@href,'hellshare.')]", //xpath
  2361. 48, //blocksize
  2362. null, //corrmatch
  2363. null, //corrreplwhat
  2364. null, //corrreplwith
  2365. null, //separator
  2366. null, //api url
  2367. null, //postdata
  2368. null, //linkregex
  2369. null, //liveregex
  2370. null, //deadregex
  2371. null, //unavaregex
  2372. hellshareBulkCheck //function delegate
  2373. )
  2374. }
  2375. if (GM_getValue("Check_ncrypt_dot_in_links", false))
  2376. {
  2377. addHost(
  2378. "ncrypt", //hostname
  2379. "ncrypt\\.in\/folder\\-\\w+", //linkregex
  2380. "//a[contains(@href,'ncrypt.in/folder')]", //xpath
  2381. 100000, //blocksize
  2382. null, //corrmatch
  2383. null, //corrreplwhat
  2384. null, //corrreplwith
  2385. null, //separator
  2386. null,
  2387. null,
  2388. null,
  2389. null,
  2390. null,
  2391. null,
  2392. ncryptBulkCheck //function delegate
  2393. )
  2394. }
  2395. if (GM_getValue("Check_filepost_dot_com_links", false))
  2396. {
  2397. addHost(
  2398. "filepost,fp", //hostname
  2399. "(?:filepost\\.com\/files|fp\\.io)\/\\w+", //linkregex
  2400. "//a[contains(@href,'filepost.com/files/') or contains(@href,'fp.io/')]", //xpath
  2401. null, //blocksize
  2402. null, //corrmatch
  2403. null, //corrreplwhat
  2404. null, //corrreplwith
  2405. "\n", //separator
  2406. 'http://filepost.com/files/checker/?JsHttpRequest=0-xml',
  2407. 'urls=',
  2408. /\\\/files\\\/(\w+)/,
  2409. />http:\\\/\\\/filepost\.com\\\/files\\\/\w+(?:[^>]+>){5}(?:\\n|\\t)+<span class=\\"v\\"/g,
  2410. />http:\\\/\\\/filepost\.com\\\/files\\\/\w+(?:[^>]+>){5}(?:\\n|\\t)+<span class=\\"x\\"/g,
  2411. null,
  2412. null //function delegate
  2413. )
  2414. }
  2415. if (GM_getValue("Check_filesflash_dot_com_links", false))
  2416. {
  2417. addHost(
  2418. "filesflash", //hostname
  2419. "filesflash\\.com\/\\w+", //linkregex
  2420. "//a[contains(@href,'filesflash.com')]", //xpath
  2421. null, //blocksize
  2422. null, //corrmatch
  2423. /http:\/\//, //corrreplwhat
  2424. '', //corrreplwith
  2425. null, //separator
  2426. 'http://filesflash.com/checklinks.php',
  2427. 'submit=Go&links=',
  2428. /filesflash\.com\/(\w+)/,
  2429. /<td>filesflash\.com\/\w+<\/td>\s*<td>Available/g,
  2430. /<td>filesflash\.com\/\w+<\/td>\s*<td>(?:Invalid|Deleted|Expired|Banned)?<\/td>/g,
  2431. null,
  2432. null //function delegate
  2433. )
  2434. }
  2435. if (GM_getValue("Check_jumbofiles_dot_com_links", false))
  2436. {
  2437. addHost(
  2438. "jumbofiles", //hostname
  2439. "jumbofiles\\.com\/\\w+", //linkregex
  2440. "//a[contains(@href,'jumbofiles.com/')]", //xpath
  2441. null, //blocksize
  2442. /(http:\/\/(?:|www\.)jumbofiles\.com\/\w+)/, //corrmatch
  2443. null, //corrreplwhat
  2444. null, //corrreplwith
  2445. null, //separator
  2446. "http://jumbofiles.com/checkfiles.html", //api url
  2447. "op=checkfiles&process=Check+URLs&list=", //postdata
  2448. /(jumbofiles\.com\/\w+)/, //linkregex
  2449. /blue'>http:\/\/(?:|www\.)jumbofiles\.com\/\w+/g, //liveregex
  2450. /red'>http:\/\/(?:|www\.)jumbofiles\.com\/\w+/g, //deadregex
  2451. /orange'>http:\/\/(?:|www\.)jumbofiles\.com\/\w+/g, //unavaregex
  2452. null //function delegate
  2453. )
  2454. }
  2455. if (GM_getValue("Check_edisk_dot_cz_links", false))
  2456. {
  2457. addHost(
  2458. "edisk", //hostname
  2459. "(?:(?:muj|data)\\d*\\.|)edisk\\.(?:cz|sk|eu)\/(?:|(?:cz|sk|en|pl)\/)", //linkregex
  2460. "//a[contains(@href,'edisk.')]", //xpath
  2461. null, //blocksize
  2462. null, //corrmatch
  2463. /edisk\.\w{2}\/(?:|\w{2}\/)stahni/, //corrreplwhat
  2464. 'edisk.cz/stahni', //corrreplwith
  2465. null, //separator
  2466. 'http://www.edisk.cz/zkontrolovat-odkazy',
  2467. 'submitBtn=Zkontrolovat&checkFiles=',
  2468. /((?:download|stahn(?:i|out-soubor))\/\d+)/,
  2469. /"ano"\/>\s*<\/td>\s*<td>\s*http:\/\/.+/g,
  2470. /"ne"\/>\s*<\/td>\s*<td>\s*http:\/\/.+/g,
  2471. null,
  2472. null //function delegate
  2473. )
  2474. }
  2475. if (GM_getValue("Check_bezvadata_dot_cz_links", false))
  2476. {
  2477. GM_xmlhttpRequest( //age check skip
  2478. {
  2479. method: 'POST',
  2480. url: 'http://bezvadata.cz/vyhledavani/souhlas-zavadny-obsah',
  2481. headers: {
  2482. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  2483. 'Content-type': 'application/x-www-form-urlencoded',
  2484. 'Referer': ""
  2485. }
  2486. });
  2487. addHost(
  2488. "bezvadata", //hostname
  2489. "(?:beta\\.|)bezvadata\.cz\/stahnout\/\\d+\\w+", //linkregex
  2490. "//a[contains(@href,'bezvadata.cz')]", //xpath
  2491. null, //blocksize
  2492. null, //corrmatch
  2493. null, //corrreplwhat
  2494. null, //corrreplwith
  2495. null, //separator
  2496. 'http://bezvadata.cz/nastroje/kontrola-odkazu?do=kontrolaOdkazuForm-submit',
  2497. 'zkontrolovat=Zkontrolovat&odkazy=',
  2498. /(bezvadata\.cz\/stahnout\/\d+)/,
  2499. /bezvadata\.cz\/stahnout\/.+?<\/td>\s*<td style="background-color: #d9ffb2/g,
  2500. /bezvadata\.cz\/stahnout\/.+?<\/td>\s*<td style="background-color: #ffb2b2/g,
  2501. null,
  2502. null //function delegate
  2503. )
  2504. }
  2505. if (GM_getValue("Check_linkcrypt_dot_ws_links", false))
  2506. {
  2507. addHost(
  2508. "linkcrypt", //hostname
  2509. "linkcrypt\\.ws\/dir\/\\w+", //linkregex
  2510. "//a[contains(@href,'linkcrypt.ws/dir')]", //xpath
  2511. 100000, //blocksize
  2512. null, //corrmatch
  2513. null, //corrreplwhat
  2514. null, //corrreplwith
  2515. null, //separator
  2516. null,
  2517. null,
  2518. null,
  2519. null,
  2520. null,
  2521. null,
  2522. linkcryptBulkCheck //function delegate
  2523. )
  2524. }
  2525. if (GM_getValue("Check_linksave_dot_in_links", false))
  2526. {
  2527. addHost(
  2528. "linksave", //hostname
  2529. "linksave\\.in\/\\w+", //linkregex
  2530. "//a[contains(@href,'linksave.in')]", //xpath
  2531. 100000, //blocksize
  2532. null, //corrmatch
  2533. null, //corrreplwhat
  2534. null, //corrreplwith
  2535. null, //separator
  2536. null,
  2537. null,
  2538. null,
  2539. null,
  2540. null,
  2541. null,
  2542. linksaveBulkCheck //function delegate
  2543. )
  2544. }
  2545. if (GM_getValue("Check_videobb_dot_com_links", false))
  2546. {
  2547. addHost(
  2548. "videobb", //hostname
  2549. "videobb\\.com\/(?:video\/|watch_video\\.php\\?v=)\\w+", //linkregex
  2550. "//a[contains(@href,'videobb.com')]", //xpath
  2551. null, //blocksize
  2552. null, //corrmatch
  2553. /watch_video\.php\?v=/, //corrreplwhat
  2554. 'video/', //corrreplwith
  2555. null, //separator
  2556. 'http://www.videobb.com/link_checker.php',
  2557. 'links=',
  2558. /videobb\.com\/video\/(\w+)/,
  2559. /<td>http:\/\/(?:www\.|)videobb.com\/video\/\w+<\/td>\s+<td>.+?<\/td>\s+<td>\d+:\d+<\/td>\s+<td>Available/g,
  2560. /<td>http:\/\/(?:www\.|)videobb.com\/video\/\w+<\/td>\s+<td><\/td>\s+<td>N\/A<\/td>\s+<td>Not Available/g,
  2561. null,
  2562. null //function delegate
  2563. )
  2564. }
  2565. if (GM_getValue("Check_cramit_dot_in_links", false))
  2566. {
  2567. addHost(
  2568. "cramit,cramitin", //hostname
  2569. "cramit(?:\\.in|in\\.net)\/", //linkregex
  2570. "//a[contains(@href,'cramitin.net') or contains(@href,'cramit.in')]", //xpath
  2571. null, //blocksize
  2572. null, //corrmatch
  2573. null, //corrreplwhat
  2574. null, //corrreplwith
  2575. null, //separator
  2576. 'http://cramit.in/checkfiles.html',
  2577. 'op=checkfiles&process=CHECK+URL%27S&list=',
  2578. /(cramit(?:\.in|in\.net)\/\w+)/,
  2579. /green>http:\/\/(?:www\.|)cramit(?:\.in|in\.net)\/\w+/g,
  2580. /red'>http:\/\/(?:www\.|)cramit(?:\.in|in\.net)\/\w+/g,
  2581. /orange'>http:\/\/(?:www\.|)cramit(?:\.in|in\.net)\/\w+/g,
  2582. null //function delegate
  2583. )
  2584. }
  2585. if (GM_getValue("Check_turbobit_dot_net_links", false))
  2586. {
  2587. addHost(
  2588. "turbobit", //hostname
  2589. "turbobit\\.(?:net|pl)\/(?:\\w+\/|).+?\\.html", //linkregex
  2590. "//a[contains(@href,'turbobit.')]", //xpath
  2591. null, //blocksize
  2592. /(turbobit\.(?:net|pl)\/(?:\w+\/|).+?\.html)/, //corrmatch
  2593. null, //corrreplwhat
  2594. null, //corrreplwith
  2595. "\n", //separator
  2596. 'http://turbobit.net/linkchecker/csv',
  2597. 'links_to_check=',
  2598. /(turbobit\.(?:net|pl)\/\w+)/,
  2599. /turbobit\.(?:net|pl)\/.*?, 1/g,
  2600. /turbobit\.(?:net|pl)\/.*?, 0/g,
  2601. null,
  2602. null //function delegate
  2603. )
  2604. }
  2605. if (GM_getValue("Check_filerio_dot_com_links", false))
  2606. {
  2607. addHost(
  2608. "filekeen,filerio", //hostname
  2609. //"file(?:keen|rio)\\.(?:com|in)\/\\w+\/.", //linkregex
  2610. "file(?:keen|rio)\\.(?:com|in)\/\\w+", //linkregex
  2611. "//a[contains(@href,'filekeen.com') or contains(@href,'filerio.')]", //xpath
  2612. null, //blocksize
  2613. null, //corrmatch
  2614. null, //corrreplwhat
  2615. null, //corrreplwith
  2616. null, //separator
  2617. 'http://filerio.in/checkfiles.html',
  2618. 'op=checkfiles&process=Check+URLs&list=',
  2619. /(file(?:keen|rio)\.(?:com|in)\/\w+)/,
  2620. /green'>http:\/\/(?:www\.|)file(?:keen|rio)\.(?:com|in)\/\w+/g,
  2621. /red'>http:\/\/(?:www\.|)file(?:keen|rio)\.(?:com|in)\/\w+/g,
  2622. /orange'>http:\/\/(?:www\.|)file(?:keen|rio)\.(?:com|in)\/\w+/g,
  2623. null //function delegate
  2624. )
  2625. }
  2626. if (GM_getValue("Check_share_dash_online_dot_biz_links", false))
  2627. {
  2628. addHost(
  2629. "share-online,egoshare", //hostname
  2630. "(?:share-online\\.biz|egoshare\\.com)\/(?:dl\/|download\\.php\\?id=)", //linkregex
  2631. "//a[contains(@href,'share-online.biz') or contains(@href,'egoshare.com')]", //xpath
  2632. null, //blocksize
  2633. /http:\/\/(?:www\.)?(?:share-online\.biz|egoshare\.com)\/d(?:l\/|ownload\.php\?id=)(\w+)/, //corrmatch
  2634. null, //corrreplwhat
  2635. null, //corrreplwith
  2636. "\n", //separator
  2637. 'http://api.share-online.biz/linkcheck.php',
  2638. 'links=',
  2639. /(\w+);(?:OK|NOTFOUND|DELETED)/,
  2640. /\w+;OK/g,
  2641. /\w+;(?:NOTFOUND|DELETED)/g,
  2642. null,
  2643. null //function delegate
  2644. )
  2645. }
  2646. if (GM_getValue("Check_quickshare_dot_cz_links", false))
  2647. {
  2648. addHost(
  2649. "quickshare", //hostname
  2650. "quickshare\\.cz\/stahnout-soubor\/\\d+", //linkregex
  2651. "//a[contains(@href,'quickshare.cz')]", //xpath
  2652. null, //blocksize
  2653. null, //corrmatch
  2654. null, //corrreplwhat
  2655. null, //corrreplwith
  2656. null, //separator
  2657. 'http://www.quickshare.cz/nastroje/link-checker',
  2658. 'linky=',
  2659. /quickshare\.cz\/stahnout-soubor\/(\d+(?::\w+)?)/,
  2660. /quickshare\.cz\/stahnout-soubor\/\d+(?::[\w\-.+$!*\/()\[\]\',~%?:@#&=\\]+)?\s*<\/a><\/td><td><img src="\/img\/ok\.gif/g,
  2661. /quickshare\.cz\/stahnout-soubor\/\d+(?::[\w\-.+$!*\/()\[\]\',~%?:@#&=\\]+)?\s*<\/td><td><img src="\/img\/nenalezeno\.gif/g,
  2662. null,
  2663. null //function delegate
  2664. )
  2665. }
  2666. if (GM_getValue("Check_netload_dot_in_links", false))
  2667. {
  2668. addHost(
  2669. "netload", //hostname
  2670. "netload\\.in\/datei\\w{10}", //linkregex
  2671. "//a[contains(@href,'netload.in')]", //xpath
  2672. null, //blocksize
  2673. null, //corrmatch
  2674. null, //corrreplwhat
  2675. null, //corrreplwith
  2676. "\n", //separator
  2677. "http://api.netload.in/index.php?id=2", //api url
  2678. "send=Absenden&links=", //postdata
  2679. /(\w+);/, //linkregex
  2680. /\w{10,};.+?;.+?;online/g, //liveregex
  2681. /\w{10,};.+?;.+?;offline/g, //deadregex
  2682. null, //unavaregex
  2683. //netloadBulkCheck //function delegate //disabled on probation since 1.2.4.5
  2684. null //function delegate
  2685. )
  2686. }
  2687. if (GM_getValue("Check_oboom_dot_com_links", false))
  2688. {
  2689. addHost(
  2690. "oboom", //hostname
  2691. "oboom\\.com\/#?\\w{8}", //linkregex
  2692. "//a[contains(@href,'oboom.com/')]", //xpath
  2693. null, //blocksize
  2694. /oboom\.com\/#?(\w{8})/, //corrmatch
  2695. null, //corrreplwhat
  2696. null, //corrreplwith
  2697. null, //separator
  2698. null,
  2699. null,
  2700. null,
  2701. null, //liveregex
  2702. null, //deadregex
  2703. null,
  2704. oboomBulk //function delegate
  2705. )
  2706. }
  2707. if (GM_getValue("Check_mega_dot_co_dot_nz_links", false))
  2708. {
  2709. addHost(
  2710. "mega",
  2711. "mega\\.co\\.nz\/#!\\w+",
  2712. "//a[contains(@href,'mega.co.nz/')]",
  2713. 100000, //blocksize
  2714. null, //corrmatch
  2715. null, //corrreplwhat
  2716. null, //corrreplwith
  2717. null, //separator
  2718. null,
  2719. null,
  2720. null,
  2721. null,
  2722. null,
  2723. null,
  2724. megaBulkCheck //function delegate
  2725. )
  2726. }
  2727. //the same as GenType2, except api url is 'https://' instead of 'http://www.' and corrmatch is not??? needed
  2728.  
  2729. if (GM_getValue("Check_extabit_dot_com_links", false))
  2730. {
  2731. addHost(
  2732. "extabit", //hostname
  2733. "extabit\\.com\/file\/\\w+", //linkregex
  2734. "//a[contains(@href,'extabit.com')]", //xpath
  2735. null, //blocksize
  2736. null, //corrmatch
  2737. null, //corrreplwhat
  2738. null, //corrreplwith
  2739. "\n", //separator
  2740. "http://extabit.com/linkchecker.jsp", //api url
  2741. "url=", //postdata
  2742. /extabit\.com\/(file\/\w+)/, //linkregex
  2743. /extabit\.com\/file\/\w+\/[^<]+<\/a><\/td>\s*<td class="status"><span class="status_green">/g, //liveregex
  2744. /extabit\.com\/file\/\w+\/[^<]+<\/a><\/td>\s*<td class="status"><span class="status_red">/g, //deadregex
  2745. /extabit\.com\/file\/\w+\/[^<]+<\/a><\/td>\s*<td class="status"><span class="status_yellow">/g, //unavaregex
  2746. extabitBulkCheck //function delegate
  2747. )
  2748. }
  2749. if (GM_getValue("Check_junocloud_dot_me_links", false))
  2750. {
  2751. addHost(
  2752. "junocloud", //hostname
  2753. "junocloud\\.me\/\\w+", //linkregex
  2754. "//a[contains(@href,'junocloud.me')]", //xpath
  2755. null, //blocksize
  2756. null, //corrmatch
  2757. null, //corrreplwhat
  2758. null, //corrreplwith
  2759. "\n", //separator
  2760. "http://junocloud.me/checkfiles.html", //api url
  2761. "op=checkfiles&process=Check+URLs&list=", //postdata
  2762. /(junocloud\.me\/\w+)/, //linkregex
  2763. /<a href="http:\/\/junocloud\.me\/\w+[^<]+<\/a>\s*<span style="color: green/g, //liveregex
  2764. /<a href="http:\/\/junocloud\.me\/\w+[^<]+<\/a>\s*<span style="color: red/g, //deadregex
  2765. null, //unavaregex
  2766. null //function delegate
  2767. )
  2768. }
  2769. if (GM_getValue("Check_webshare_dot_cz_links", false))
  2770. {
  2771. addHost(
  2772. "webshare", //hostname
  2773. "webshare\.cz\/(?:(?:#/)?file/\\w+|\\w+-.*)", //linkregex
  2774. "//a[contains(@href,'webshare.cz')]", //xpath
  2775. 100000, //blocksize
  2776. null, //corrmatch
  2777. null, //corrreplwhat
  2778. null, //corrreplwith
  2779. null, //separator
  2780. null, //api url
  2781. null, //postdata
  2782. null, //linkregex
  2783. null, //liveregex
  2784. null, //deadregex
  2785. null, //unavaregex
  2786. webshareBulkCheck //function delegate
  2787. )
  2788. }
  2789. /////////////////////////////
  2790. // Common function delegate to send links to get checked by host linkchecker
  2791. /////////////////////////////
  2792. // If you define a new delegate, you may use following properties
  2793. // this.links [array] array of strings (link blocks). The links in each block separated with host.splitSeparator.
  2794. // this.apiUrl [string] API or web linkchecker URL
  2795. // this.postData [string] POSTDATA for POST request
  2796. // this.resLiveRegex [regex] matches live substrings in the request response
  2797. // this.resDeadRegex [regex] matches dead substrings in the request response
  2798. // this.resUnavaRegex [regex] matches unava substrings in the request response (the regex is often null!)
  2799. //
  2800. // this.resLinkRegex [regex] matches links further passed to DisplayTheCheckedLinks
  2801. //
  2802. // See the code below for standard bulkcheck handling reference.
  2803. //////////////////////////////
  2804. function genBulkCheck()
  2805. {
  2806. var blockIdx = this.links.length;
  2807. while (blockIdx--)
  2808. {
  2809. postRequest(this.apiUrl, this.postData, this.links[blockIdx],
  2810. this.resLinkRegex, this.resLiveRegex, this.resDeadRegex, this.resUnavaRegex);
  2811. }
  2812. function postRequest(api, postData, links, linkRegex, liveRegex, deadRegex, unavaRegex)
  2813. {
  2814. GM_xmlhttpRequest(
  2815. {
  2816. method: 'POST',
  2817. url: api,
  2818. headers: {
  2819. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  2820. 'Content-type': 'application/x-www-form-urlencoded',
  2821. 'Referer': api,
  2822. 'X-Requested-With': 'XMLHttpRequest'
  2823. },
  2824. data: postData + encodeURIComponent(links),
  2825. onload: function (result)
  2826. {
  2827. var res = result.responseText;
  2828. // GM_log(res);
  2829. var i;
  2830.  
  2831. var livelinks = res.match(liveRegex);
  2832. var deadlinks = res.match(deadRegex);
  2833. // GM_log(livelinks);
  2834. // GM_log(deadlinks);
  2835. if (livelinks != null)
  2836. {
  2837. i = livelinks.length - 1;
  2838. do
  2839. {
  2840. livelinks[i] = livelinks[i].match(linkRegex)[1];
  2841. }
  2842. while (i--);
  2843. DisplayTheCheckedLinks(livelinks, 'alive_link');
  2844. }
  2845.  
  2846. if (deadlinks != null)
  2847. {
  2848. i = deadlinks.length - 1;
  2849. do
  2850. {
  2851. deadlinks[i] = deadlinks[i].match(linkRegex)[1];
  2852. }
  2853. while (i--);
  2854. DisplayTheCheckedLinks(deadlinks, 'adead_link');
  2855. }
  2856.  
  2857. if (unavaRegex != null)
  2858. {
  2859. var unavalinks = res.match(unavaRegex);
  2860. if (unavalinks)
  2861. {
  2862. i = unavalinks.length - 1;
  2863. do
  2864. {
  2865. unavalinks[i] = unavalinks[i].match(linkRegex)[1];
  2866. }
  2867. while (i--);
  2868. DisplayTheCheckedLinks(unavalinks, 'unava_link');
  2869. }
  2870. }
  2871. }
  2872. });
  2873. }
  2874. }
  2875. //specialized bulkchecking handlers follow
  2876. function webshareBulkCheck()
  2877. {
  2878. var arr = this.links[0].split("\r\n");
  2879. var i = arr.length;
  2880. while(i--)
  2881. {
  2882. postRequest(arr[i]);
  2883. }
  2884. //function postRequest(api, postData, links, linkRegex, liveRegex, deadRegex, unavaRegex)
  2885. function postRequest(wsLink)
  2886. {
  2887. var id = wsLink.match(/webshare\.cz\/(?:(?:#\/)?file\/)?(\w+)/)[1];
  2888. GM_xmlhttpRequest(
  2889. {
  2890. method: 'POST',
  2891. url: "http://webshare.cz/api/file_info/",
  2892. headers: {
  2893. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  2894. 'Content-type': 'application/x-www-form-urlencoded',
  2895. 'Referer': "",
  2896. },
  2897. data: "wst=&ident=" + id,
  2898. onload: function (result)
  2899. {
  2900. var res = result.responseText;
  2901. if (res.match(/<name>.+?<\/name>/))
  2902. {
  2903. DisplayTheCheckedLinks([id], 'alive_link');
  2904. }
  2905. else
  2906. {
  2907. DisplayTheCheckedLinks([id], 'adead_link');
  2908. }
  2909. }
  2910. });
  2911. }
  2912. }
  2913. //like genBulkCheck, but extabit linkchecker only works when logged in. If not logged in, non-bulk checking has to be used.
  2914. //extabit also doesn't like requests in fast succession, so some delays are added.
  2915. function extabitBulkCheck()
  2916. {
  2917. var timeoutDelay = 0;
  2918. var blockIdx = this.links.length;
  2919. while (blockIdx--)
  2920. {
  2921. postRequest(this.apiUrl, this.postData, this.links[blockIdx],
  2922. this.resLinkRegex, this.resLiveRegex, this.resDeadRegex, this.resUnavaRegex);
  2923. }
  2924. function postRequest(api, postData, links, linkRegex, liveRegex, deadRegex, unavaRegex)
  2925. {
  2926. GM_xmlhttpRequest(
  2927. {
  2928. method: 'POST',
  2929. url: api,
  2930. headers: {
  2931. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  2932. 'Content-type': 'application/x-www-form-urlencoded',
  2933. 'Referer': api,
  2934. 'X-Requested-With': 'XMLHttpRequest'
  2935. },
  2936. data: postData + encodeURIComponent(links),
  2937. onload: function (result)
  2938. {
  2939. var res = result.responseText;
  2940. if (/id="registration_header"/.test(res)) //not logged in, have to use non-bulk
  2941. {
  2942. function geturlfunc(link, tryID) //basically the geturl function with some changes (compacted, displaythecheckedlinkS, multiple tries)
  2943. {
  2944. //GM_log(tryID + ': ' + link);
  2945. GM_xmlhttpRequest(
  2946. {
  2947. method: 'GET',
  2948. url: link,
  2949. 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': ""},
  2950. onload: function(result2)
  2951. {
  2952. var res2 = result2.responseText;
  2953. var res2Status = result.status;
  2954. if (/download-file-btn/.test(res2)) {DisplayTheCheckedLinks([link], 'alive_link'); return;}
  2955. if (/Search mirrors|id="mirrb"/.test(res2) || res2Status==404) {DisplayTheCheckedLinks([link], 'adead_link'); return;}
  2956. if (/currently unavailable|temporarily unavailable|disponible en estos momentos|vorläufig unerreichbar|Файл временно недоступен/.test(res2) || res2Status == 500 || res2Status == 503)
  2957. {
  2958. if (tryID < 7)
  2959. setTimeout(function(){geturlfunc(link,tryID+1)}, tryID * 1000 + (Math.random() * tryID * 2000));
  2960. else
  2961. {DisplayTheCheckedLinks([link], 'unava_link'); return;}
  2962. }
  2963. }
  2964. });
  2965. }
  2966. //split the hrefs and check them one by one
  2967. GM_log('Using slow extabit.com link checking. Log in to extabit to use fast bulk checking.');
  2968. links = links.split('\n');
  2969. var i = links.length;
  2970. while (i--)
  2971. {
  2972. if (links[i])
  2973. {
  2974. (function(i){setTimeout(function(){geturlfunc(links[i],1)}, timeoutDelay);})(i);
  2975. timeoutDelay += 500;
  2976. }
  2977. }
  2978. return;
  2979. }
  2980. var i;
  2981.  
  2982. var livelinks = res.match(liveRegex);
  2983. var deadlinks = res.match(deadRegex);
  2984. if (livelinks != null)
  2985. {
  2986. i = livelinks.length - 1;
  2987. do
  2988. {
  2989. livelinks[i] = livelinks[i].match(linkRegex)[1];
  2990. }
  2991. while (i--);
  2992. DisplayTheCheckedLinks(livelinks, 'alive_link');
  2993. }
  2994.  
  2995. if (deadlinks != null)
  2996. {
  2997. i = deadlinks.length - 1;
  2998. do
  2999. {
  3000. deadlinks[i] = deadlinks[i].match(linkRegex)[1];
  3001. }
  3002. while (i--);
  3003. DisplayTheCheckedLinks(deadlinks, 'adead_link');
  3004. }
  3005.  
  3006. if (unavaRegex != null)
  3007. {
  3008. var unavalinks = res.match(unavaRegex);
  3009. if (unavalinks)
  3010. {
  3011. i = unavalinks.length - 1;
  3012. do
  3013. {
  3014. unavalinks[i] = unavalinks[i].match(linkRegex)[1];
  3015. }
  3016. while (i--);
  3017. DisplayTheCheckedLinks(unavalinks, 'unava_link');
  3018. }
  3019. }
  3020. }
  3021. });
  3022. }
  3023. }
  3024. function netloadBulkCheck()
  3025. {
  3026. var blockIdx = this.links.length;
  3027.  
  3028. while (blockIdx--)
  3029. {
  3030. postRequest(this.apiUrl, this.postData, this.links[blockIdx],
  3031. this.resLinkRegex, this.resLiveRegex, this.resDeadRegex, this.unavaRegex);
  3032. }
  3033. function postRequest(api, postData, links, linkRegex, liveRegex, deadRegex, unavaRegex)
  3034. {
  3035. GM_xmlhttpRequest(
  3036. {
  3037. method: 'POST',
  3038. url: api,
  3039. headers: {
  3040. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  3041. 'Content-type': 'application/x-www-form-urlencoded',
  3042. 'Referer': ""
  3043. },
  3044. data: postData + encodeURIComponent(links),
  3045. onload: function (result)
  3046. {
  3047. var res = result.responseText;
  3048. var i;
  3049.  
  3050. var livelinks = res.match(liveRegex);
  3051. var deadlinks = res.match(deadRegex);
  3052. if (livelinks != null)
  3053. {
  3054. i = livelinks.length - 1;
  3055. do
  3056. {
  3057. recheckLink(livelinks[i].match(linkRegex)[1]);
  3058. }
  3059. while(i--);
  3060. }
  3061.  
  3062. if (deadlinks != null)
  3063. {
  3064. i = deadlinks.length - 1;
  3065. do
  3066. {
  3067. deadlinks[i] = deadlinks[i].match(linkRegex)[1];
  3068. }
  3069. while (i--);
  3070. DisplayTheCheckedLinks(deadlinks, 'adead_link');
  3071. }
  3072. }
  3073. });
  3074. }
  3075. function recheckLink(link)
  3076. {
  3077. var link = link;
  3078. GM_xmlhttpRequest(
  3079. {
  3080. method: 'GET',
  3081. url: 'http://netload.in/datei' + link + '.htm',
  3082. headers: {
  3083. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3084. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  3085. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  3086. 'Referer': ""
  3087. },
  3088. onload: function (result)
  3089. {
  3090. var res = result.responseText;
  3091.  
  3092. if (res.match(/dl_first_file_download">|download_limit\.gif/))
  3093. {
  3094. DisplayTheCheckedLinks([link], 'alive_link');
  3095. return;
  3096. }
  3097.  
  3098. if (res.match(/achtung\.jpg"/))
  3099. {
  3100. DisplayTheCheckedLinks([link], 'adead_link');
  3101. }
  3102. },
  3103. onerror: function ()
  3104. {
  3105. displayTheCheckedLink(link, 'unava_link');
  3106. }
  3107. });
  3108. }
  3109. }
  3110.  
  3111. function megaBulkCheck()
  3112. {
  3113. var arr = this.links[0].split("\r\n");
  3114. var i = arr.length;
  3115. var seqno = Math.floor(Math.random()*1000000000);
  3116. while(i--)
  3117. {
  3118. postRequest(arr[i]);
  3119. }
  3120. function postRequest(megaLink)
  3121. {
  3122. var id = megaLink.match(/mega\.co\.nz\/#!(\w+)(?:!\w+)?/)[1];
  3123. GM_xmlhttpRequest(
  3124. {
  3125. method: "POST",
  3126. url: 'https://g.api.mega.co.nz/cs?id=' + seqno++,
  3127. data: '[{"a":"g","p":"' + id + '","ssl": "1"}]',
  3128. headers: {
  3129. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3130. 'Content-Type': 'application/xml',
  3131. 'Referer': "https://mega.co.nz/"
  3132. },
  3133. onload: function (result)
  3134. {
  3135. var res = $.parseJSON(result.responseText.match(/\[(.+?)\]/)[1]);
  3136. if ((typeof res == "number" && (res == -9 || res == -16 || res == -6)) || res.d)
  3137. {
  3138.  
  3139. DisplayTheCheckedLinks([id], 'adead_link');
  3140. }
  3141. if (res.at)
  3142. {
  3143. DisplayTheCheckedLinks([id], 'alive_link');
  3144. }
  3145. if (res.e == "ETEMPUNAVAIL")
  3146. {
  3147. DisplayTheCheckedLinks([id], 'unava_link');
  3148. }
  3149. }
  3150. });
  3151. }
  3152.  
  3153. }
  3154. function oboomBulk() {
  3155. var a = [], b = [], c = [];
  3156. var array = this.links;
  3157.  
  3158. GM_xmlhttpRequest({
  3159. method: 'GET',
  3160. url: 'https://www.oboom.com/1/guestsession',
  3161. headers: {
  3162. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  3163. 'Content-type': 'application/x-www-form-urlencoded',
  3164. 'Referer': 'https://www.oboom.com',
  3165. 'X-Requested-With': 'XMLHttpRequest'
  3166. },
  3167. onload: function(result) {
  3168. var blockIdx = array.length;
  3169. var token = JSON.parse(result.responseText)[1];
  3170. while (blockIdx--) {
  3171. startCheck(array[blockIdx].split('\r\n'), token);
  3172. }
  3173. }
  3174. });
  3175.  
  3176. function startCheck(links, token) {
  3177. GM_xmlhttpRequest({
  3178. method: 'POST',
  3179. url: "https://api.oboom.com/1/info",
  3180. headers: {
  3181. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  3182. 'Content-type': 'application/x-www-form-urlencoded',
  3183. 'Referer': 'https://www.oboom.com/',
  3184. 'X-Requested-With': 'XMLHttpRequest'
  3185. },
  3186. data: "token=" + token + "&items=" + links.join(","),
  3187. onload: function(result) {
  3188. var res = JSON.parse(result.responseText)[1];
  3189. var i = res.length, s;
  3190.  
  3191. while (i--) {
  3192. s = res[i].state;
  3193. if (s == 'online') a.push(res[i].id);
  3194. else if (s == 'blocked' || s == 'abused' || s == 'lost' || s == 'not_found' || s == 'not_available'|| s == 'download_error' || s == 'offline' ) b.push(res[i].id);
  3195. else c.push(res[i].id);
  3196. }
  3197.  
  3198. if (a.length > 0) DisplayTheCheckedLinks(a, 'alive_link');
  3199. if (b.length > 0) DisplayTheCheckedLinks(b, 'adead_link');
  3200. if (c.length > 0) DisplayTheCheckedLinks(c, 'unava_link');
  3201. }
  3202. });
  3203. }
  3204. }
  3205. function linksaveBulkCheck()
  3206. {
  3207. var arr = this.links[0].split("\r\n");
  3208. var i = arr.length;
  3209. while(i--)
  3210. {
  3211. postRequest(arr[i]);
  3212. }
  3213. function postRequest(lsLink)
  3214. {
  3215. GM_xmlhttpRequest(
  3216. {
  3217. method: "GET",
  3218. url: lsLink + '-t.jpg',
  3219. headers: {
  3220. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3221. 'Accept': 'text/xml',
  3222. 'Referer': ""
  3223. },
  3224. onload: function (result)
  3225. {
  3226. var imgLen = result.responseHeaders.match(/Content-Length: (\d+)/)[1];
  3227. if (imgLen == 965) //online
  3228. {
  3229. DisplayTheCheckedLinks([lsLink], 'alive_link');
  3230. }
  3231.  
  3232. if (imgLen == 972) //offline
  3233. {
  3234. DisplayTheCheckedLinks([lsLink], 'adead_link');
  3235. }
  3236. if (imgLen == 978) //unava
  3237. {
  3238. DisplayTheCheckedLinks([lsLink], 'unava_link');
  3239. }
  3240. }
  3241. });
  3242. }
  3243.  
  3244. }
  3245. function linkcryptBulkCheck()
  3246. {
  3247. var arr = this.links[0].split("\r\n");
  3248. var i = arr.length;
  3249. while(i--)
  3250. {
  3251. postRequest(arr[i]);
  3252. }
  3253. function postRequest(lcLink)
  3254. {
  3255. GM_xmlhttpRequest(
  3256. {
  3257. method: "GET",
  3258. url: 'http://linkcrypt.ws/api.html?api=status_V1&folderKey=' + lcLink.match(/dir\/(\w+)/)[1],
  3259. headers: {
  3260. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3261. 'Accept': 'text/xml',
  3262. 'Referer': ""
  3263. },
  3264. onload: function (result)
  3265. {
  3266. var res = result.responseText;
  3267. if (res.match(/<errorCode>1101|folderStatus>[23]/)) //Offline status
  3268. {
  3269. DisplayTheCheckedLinks([lcLink], 'adead_link');
  3270. return;
  3271. }
  3272. if (res.match(/folderStatus>1/)) //Online status
  3273. {
  3274. DisplayTheCheckedLinks([lcLink], 'alive_link');
  3275. }
  3276. else
  3277. {
  3278. DisplayTheCheckedLinks([lcLink], 'unava_link');
  3279. }
  3280. }
  3281. });
  3282. }
  3283. }
  3284.  
  3285. function megashareBulkCheck()
  3286. {
  3287. var arr = this.links[0].split("\r\n");
  3288. var i = arr.length;
  3289. while(i--)
  3290. {
  3291. postRequest(arr[i]);
  3292. }
  3293. function postRequest(msLink)
  3294. {
  3295. GM_xmlhttpRequest(
  3296. {
  3297. method: "GET",
  3298. url: msLink,
  3299. headers: {
  3300. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3301. 'Content-Type': 'application/x-www-form-urlencoded',
  3302. 'Referer': ""
  3303. },
  3304. onload: function (result)
  3305. {
  3306. var prZVal = result.responseText.match(/name="(\d+prZVal)" value="(\d+)">/);
  3307. var btn3Name = result.responseText.match(/src="images\/dwn-btn3\.gif" name="(.+?)"/);
  3308. if ((prZVal == null) || (btn3Name == null))
  3309. {
  3310. return;
  3311. }
  3312. GM_xmlhttpRequest(
  3313. {
  3314. method: "POST",
  3315. url: msLink,
  3316. headers: {
  3317. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3318. 'Content-Type': 'application/x-www-form-urlencoded',
  3319. 'Referer': ""
  3320. },
  3321. data: prZVal[1] + "=" + prZVal[2] + '&' + btn3Name[1] + '.x=1&' + btn3Name[1] + '.y=1',
  3322. onload: function (result)
  3323. {
  3324. var res = result.responseText;
  3325. if (res.match(/<div id="err">/))
  3326. {
  3327. DisplayTheCheckedLinks([msLink.match(/\.com(\/\d+)/)[1]], 'adead_link');
  3328. }
  3329. else
  3330. {
  3331. DisplayTheCheckedLinks([msLink.match(/\.com(\/\d+)/)[1]], 'alive_link');
  3332. }
  3333. }
  3334. });
  3335. }
  3336. });
  3337. }
  3338. }
  3339. function ncryptBulkCheck()
  3340. {
  3341. var arr = this.links[0].split("\r\n");
  3342. var i = arr.length;
  3343. while(i--)
  3344. {
  3345. postRequest(arr[i]);
  3346. }
  3347. function postRequest(ncryptLink)
  3348. {
  3349. GM_xmlhttpRequest(
  3350. {
  3351. method: "POST",
  3352. url: 'http://ncrypt.in/api_status.php',
  3353. headers: {
  3354. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3355. 'Content-Type': 'application/x-www-form-urlencoded',
  3356. 'Referer': ""
  3357. },
  3358. data: 'link=' + encodeURI(ncryptLink),
  3359. onload: function (result)
  3360. {
  3361. var foldStatus = result.responseText.match(/(?:offline|online);/);
  3362. switch(foldStatus + ""){
  3363. case "offline;": DisplayTheCheckedLinks([ncryptLink], 'adead_link'); break;
  3364. case "online;": DisplayTheCheckedLinks([ncryptLink], 'alive_link'); break;
  3365. default: DisplayTheCheckedLinks([ncryptLink], 'unava_link');
  3366. }
  3367. }
  3368. });
  3369. }
  3370. }
  3371. function hellshareBulkCheck()
  3372. {
  3373. var links = this.links;
  3374. GM_xmlhttpRequest(
  3375. {
  3376. method: "GET",
  3377. url: 'http://www.hellshare.com',
  3378. headers: {
  3379. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3380. 'Accept': 'text/xml',
  3381. 'Referer': ""
  3382. },
  3383. onload: function (result)
  3384. {
  3385. var domain = result.responseText.match(/param_rau = "www\.hellshare\.(\w+)"/)[1];
  3386.  
  3387. var loc = 'check=Zkontrolovat+dostupnost+soubor%C5%AF&links=';
  3388. if (domain == 'sk')
  3389. loc = 'check=Skontrolova%C5%A5&links=';
  3390. if (domain == 'com')
  3391. loc = 'check=Check+availability&links=';
  3392. if (domain == 'hu')
  3393. loc = 'check=Kontrol%C3%A1lj&links=';
  3394. if (domain == 'pl')
  3395. loc = 'check=Sprawd%C5%BC+dost%C4%99pno%C5%9B%C4%87+plik%C3%B3w&links=';
  3396.  
  3397. genBulkCheck.call({ links: links,
  3398. apiUrl: 'http://www.hellshare.' + domain + '/linkchecker?do=linkChecker-linkcheckerform-submit',
  3399. postData: loc,
  3400. resLinkRegex: /hellshare\.(?:cz|com|sk|hu|pl)\/(?:[\w-\.]+\/|)([\w-\.]+\/\d{5,})/,
  3401. 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,
  3402. resDeadRegex: /<span style="color:gray">.*?<\/span> - <strong>/g,
  3403. resUnavaRegex: null
  3404. });
  3405. }
  3406. });
  3407. }
  3408. /**
  3409. * Displays check result
  3410. * @param {Array} Array of links or link fragments.
  3411. * @param {String} Check result status -> ['alive_link'|'adead_link'|'unava_link']
  3412. */
  3413. function DisplayTheCheckedLinks(links, resultStatus)
  3414. {
  3415. //(a[href*=link_1], a[href*=link_2], ..., a[href*=link_n])
  3416. var $links = $('a[href*="' + links.join('"], a[href*="') + '"]');
  3417. if (Do_not_linkify_DL_links)
  3418. { //TODO into separate jQuery function
  3419. $links.replaceWith(function(){
  3420. return '<span href="' + this.href + '">' + $(this).text() + '</span>';
  3421. });
  3422. $links = $('span[href*="' + links.join('"], span[href*="') + '"]');
  3423. }
  3424. $links.removeClass().addClass(resultStatus);
  3425. $links.each(function() {
  3426. this.href = Ref_anonymize_service + $(this).attr("href");
  3427. });
  3428. switch(resultStatus)
  3429. {
  3430. case "alive_link": cLinksAlive += $links.length;
  3431. if (Display_tooltip_info) $links.mouseover(displayTooltipInfo);
  3432. break;
  3433. case "adead_link": cLinksDead += $links.length;
  3434. if (Display_tooltip_info) $links.mouseover(displayTooltipError);
  3435. break;
  3436. case "unava_link": cLinksUnava += $links.length; break;
  3437. default:
  3438. }
  3439. cLinksProcessed += $links.length;
  3440. }
  3441. }
  3442. // starts bulkchecking
  3443. //
  3444. // params
  3445. // filterId [string] restricts link detection with passed id attribute
  3446. function startBulkCheck(filterId)
  3447. {
  3448. var cHosts = bulkHosts.length;
  3449. if (cHosts == 0) //no filehostings selected
  3450. return;
  3451. // STEP 1 linkify the links
  3452. var linkifyRegex = '';
  3453. var hostIdx = cHosts;
  3454. while(hostIdx--)
  3455. {
  3456. linkifyRegex += bulkHosts[hostIdx].linkRegex + "|";
  3457. }
  3458. linkifyRegex = linkifyRegex.replace(/\|$/, '');
  3459. linkify(linkifyRegex);
  3460. //
  3461. //STEP 2 detect link objects
  3462. var xpathAll = '';
  3463. var hostIdx = cHosts;
  3464. while(hostIdx--)
  3465. {
  3466. xpathAll += bulkHosts[hostIdx].xpath + "|";
  3467. }
  3468. xpathAll = xpathAll.replace(/\]\|\/\/a\[/g, " or ");
  3469. xpathAll = xpathAll.replace(/\]\|/, ')]');
  3470. if (filterId != null) //insert id restriction in the xpath
  3471. {
  3472. xpathAll = xpathAll.replace(/\[/, "[@class='" + filterId + "' and (");
  3473. }
  3474. else
  3475. {
  3476. xpathAll = xpathAll.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  3477. }
  3478. var links = document.evaluate(xpathAll, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  3479. if (filterId == null)
  3480. {
  3481. cLinksTotal += links.snapshotLength;
  3482. }
  3483. //
  3484. //STEP 3 bind links with hostings
  3485. var linkIdx = links.snapshotLength;
  3486. var href = null;
  3487. if (linkIdx == 0) // no links found
  3488. return;
  3489. var name;
  3490. while (linkIdx--)
  3491. {
  3492. href = links.snapshotItem(linkIdx).href;
  3493. try // DO NOT REMOVE, filters crap that went through xpath detection
  3494. {
  3495. name = gimmeHostName(href);
  3496. if (href.match(bulkHostNames[name].linkRegexObject) != null)
  3497. bulkHostNames[name].links.push(href);
  3498. }
  3499. catch(e)
  3500. {
  3501.  
  3502. }
  3503. }
  3504. //
  3505. //STEP 4 process the links for each filehosting
  3506. var hostIdx = cHosts;
  3507. var host;
  3508. var m,n;
  3509. var arr;
  3510. while (hostIdx--)
  3511. {
  3512. host = bulkHosts[hostIdx];
  3513. arr = host.links;
  3514. if (arr.length == 0) //no links for this hosting, skip
  3515. {
  3516. continue;
  3517. }
  3518. //links match corrections
  3519. if (host.corrMatch != null)
  3520. {
  3521. var idx = arr.length;
  3522. while (idx--)
  3523. {
  3524. arr[idx] = arr[idx].match(host.corrMatch)[1];
  3525. }
  3526. }
  3527. //links replace corrections
  3528. if ((host.corrReplWhat != null) && (host.corrReplWith != null))
  3529. {
  3530. var idx = arr.length;
  3531. while (idx--)
  3532. {
  3533. arr[idx] = arr[idx].replace(host.corrReplWhat, host.corrReplWith);
  3534. }
  3535. }
  3536. m = arr.length;
  3537. n = host.blockSize;
  3538. if (m > n)
  3539. {
  3540. //insert block separators (RAND_STRING) into the array
  3541. for(var i = n; i < m; i += n + 1)
  3542. {
  3543. arr.splice(i, 0, RAND_STRING);
  3544. }
  3545. }
  3546.  
  3547. host.func.call({ links: arr.join(host.splitSeparator).split(RAND_STRING),
  3548. apiUrl: host.apiUrl,
  3549. postData: host.postData,
  3550. resLinkRegex: host.resLinkRegex,
  3551. resLiveRegex: host.resLiveRegex,
  3552. resDeadRegex: host.resDeadRegex,
  3553. resUnavaRegex: host.resUnavaRegex
  3554. });
  3555. //clean up
  3556. arr.length = 0;
  3557. }
  3558. //
  3559.  
  3560. function gimmeHostName(link)
  3561. {
  3562. return link.replace(/https?:\/\/.*?http(s)?:\/\//, "http$1://").match(/https?:\/\/(?:www\.|[\w\.])*?([\w-]+)\.(?:co\.uk|co\.nz|\w+)\//)[1];
  3563. }
  3564. }
  3565. function checkLinks(filterId)
  3566. {
  3567. startBulkCheck(filterId);
  3568. start(filterId);
  3569. }
  3570.  
  3571. /**
  3572. * Initialises progress box including event binding and CSS
  3573. */
  3574. function initProgressBox()
  3575. {
  3576. if ($("#warlc-progressbox").length > 0)
  3577. return;
  3578. //progressbox css change size and color of progress box
  3579. GM_addStyle("#warlc-progressbox {position:fixed; background:DimGray;" + Progress_box_background_color +
  3580. "; opacity:" + (Progress_box_opacity / 100) +
  3581. "; bottom:" + Progress_box_pos_bottom +
  3582. "px; right:" + Progress_box_pos_right +
  3583. "px; padding:5px; font-size:20px; font-weight:bold; cursor:default;}\
  3584. \
  3585. .warlc-progressbar {text-align:center; color: DimGray; height:2px; margin-bottom:2px;}\
  3586. \
  3587. .warlc-progressitem {}\
  3588. \
  3589. .alive {color:#00FF7F; " + Live_links_color +
  3590. "; background:transparent url(" + alive_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;} .dead {color:" + Dead_links_color +
  3591. "; background:transparent url(" + adead_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;} .unava {color: " + Temp_unavailable_links_color +
  3592. "; background:transparent url(" + unava_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;} .processing {color:Black; " + Container_links_color +
  3593. "; background:transparent url(" + processing_link_gif + ") no-repeat scroll 100% 50%;padding-right:15px;} .prem {color:" + Premium_links_color +
  3594. "; background:transparent url(" + prem_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;}"
  3595. );
  3596. //
  3597. $('body').append(' <div id="warlc-progressbox">\
  3598. <div class="warlc-progressbar"></div>\
  3599. <span class="warlc-progressitem alive"></span> - \
  3600. <span class="warlc-progressitem dead"></span> - \
  3601. <span class="warlc-progressitem unava"></span> - \
  3602. <span class="warlc-progressitem prem"></span> - \
  3603. <span class="warlc-progressitem processing"></span>\
  3604. </div>');
  3605. $('#warlc-progressbox').hide().click(function(){
  3606. clearInterval(intervalId);
  3607. $(this).hide();
  3608. return false;
  3609. });
  3610. $(".warlc-progressbar").progressbar({complete: function(){
  3611. $(this).fadeOut();
  3612. clearInterval(intervalId); //stop refreshing the stats
  3613. }
  3614. })
  3615. .one('progressbarchange', function(){$('#warlc-progressbox').show();});
  3616. }
  3617. /**
  3618. * Updates progress data in progress box
  3619. */
  3620. function updateProgress()
  3621. {
  3622. if (cLinksTotal) // some links were detected on page
  3623. {
  3624. var percProgress = Math.round(((100 / cLinksTotal) * cLinksProcessed));
  3625. var $progressItems = $('#warlc-progressbox > .warlc-progressitem');
  3626. $(".warlc-progressbar").progressbar('option', 'value', percProgress);
  3627. if ((cLinksTotal - cLinksProcessed) == 0)
  3628. {
  3629. $progressItems.first().text(cLinksAlive)
  3630. .next().text(cLinksDead)
  3631. .next().text(cLinksUnava)
  3632. .next().text(cLinksprem)
  3633. .next().remove();
  3634. $('#warlc-progressbox').html($('#warlc-progressbox').html().substr(0,$('#warlc-progressbox').html().lastIndexOf(">")+1));
  3635. $('#warlc-progressbox div:first-child').remove();
  3636. }
  3637. else
  3638. {
  3639. $progressItems.first().text(cLinksAlive)
  3640. .next().text(cLinksDead)
  3641. .next().text(cLinksUnava)
  3642. .next().text(cLinksprem)
  3643. .next().text(cLinksTotal - cLinksProcessed);
  3644. }
  3645. }
  3646. }
  3647.  
  3648. function check_all_links()
  3649. {
  3650. add_WARLC_style();
  3651.  
  3652. if (Show_progress_stats)
  3653. {
  3654. initProgressBox();
  3655. intervalId = setInterval(function(){updateProgress();}, Progress_box_refresh_rate);
  3656. }
  3657.  
  3658. startBulkCheck(null);
  3659. start(null);
  3660.  
  3661. if (!containers_processed)
  3662. {
  3663. processContainers();
  3664. }
  3665. }
  3666.  
  3667. //Copies all found dead links to clipboard - right now for Scriptish only
  3668. function copy_dead_to_clipboard()
  3669. {
  3670. initClipBoardTools();
  3671.  
  3672. var deadlinksxpath = "//.[@class='adead_link']";
  3673.  
  3674. var foundlinks = document.evaluate(deadlinksxpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  3675. var foundlinkstext = '';
  3676.  
  3677. var foundlinkIdx = foundlinks.snapshotLength;
  3678.  
  3679. while(foundlinkIdx--)
  3680. {
  3681. if (foundlinks.snapshotItem(foundlinkIdx).innerHTML != ' x')
  3682. foundlinkstext += foundlinks.snapshotItem(foundlinkIdx).innerHTML.replace(/\[\/hide:\w+\]/,"") + '\n';
  3683. }
  3684.  
  3685. unsafeWindow.copyToClipboard(foundlinkstext);
  3686. }
  3687.  
  3688. function toggle_autocheck()
  3689. {
  3690. var currentState = GM_getValue("Autocheck", false);
  3691. GM_setValue("Autocheck", !currentState);
  3692.  
  3693. if (currentState == true)
  3694. {
  3695. sendMessage('Autocheck disabled', 'red');
  3696. }
  3697. else
  3698. {
  3699. sendMessage('Autocheck enabled', 'SpringGreen');
  3700. }
  3701. }
  3702. function toggle_Enable_Anonymizer()
  3703. {
  3704. var currentState = GM_getValue("Enable_Anonymizer", false);
  3705. GM_setValue("Enable_Anonymizer", !currentState);
  3706.  
  3707. if (currentState == true)
  3708. {
  3709. GM_setValue("Ref_anonymize_service", "");
  3710. sendMessage('Anonymizer Disabled', 'red');
  3711. }
  3712. else
  3713. {
  3714. GM_setValue("Ref_anonymize_service", "http://hiderefer.com/?");
  3715. sendMessage('Anonymizer Enabled', 'SpringGreen');
  3716. }
  3717. }
  3718.  
  3719. function KeyDownHandler(event)
  3720. {
  3721. var kcode = (event.keyCode) ? event.keyCode : event.which;
  3722. if (event.ctrlKey && event.altKey)
  3723. {
  3724. switch(kcode)
  3725. {
  3726. case 65 : check_all_links(); break;
  3727. case 67 : configuration(); break;
  3728. case 68 : copy_dead_to_clipboard(); break;
  3729. case 87 : toggle_autocheck(); break;
  3730. case 90 : toggle_Enable_Anonymizer(); break;
  3731. }
  3732. }
  3733. }
  3734.  
  3735. //
  3736. //
  3737. // SCRIPT EXECUTION START POINT
  3738. //
  3739. //
  3740. // Safari specific GM_getResourceText override
  3741. if (navigator.userAgent.indexOf('Safari') != -1 && navigator.userAgent.indexOf('Chrome') == -1)
  3742. {
  3743. GM_getResourceText = function(res) {
  3744. var $cssText = GM_getValue("jquery_css", "");
  3745. if ($cssText == "")
  3746. {
  3747. GM_xmlhttpRequest(
  3748. {
  3749. method: 'GET',
  3750. url: 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css',
  3751. onload: function (result)
  3752. {
  3753. GM_setValue("jquery_css", result.responseText);
  3754. window.location.reload();
  3755. }
  3756. });
  3757. }
  3758. else
  3759. {
  3760. return $cssText;
  3761. }
  3762. }
  3763. }
  3764. var jQueryUICSS = GM_getResourceText("jQueryUICSS");
  3765. GM_addStyle(jQueryUICSS);
  3766. //init the stuff
  3767. setVariables();
  3768. initBulkCheck();
  3769. //init info boxes
  3770. messageBox.style.position = 'fixed';
  3771. messageBox.style.top = '20px';
  3772. messageBox.style.left = '10px';
  3773. messageBox.style.opacity = '0.85';
  3774. messageBox.style.background = 'DimGray';
  3775. messageBox.style.fontSize = '36px';
  3776. document.body.appendChild(messageBox);
  3777.  
  3778. //register GM menu commands & keyboard shortcut event handler
  3779. if (Keyboard_functions)
  3780. {
  3781. $(document).keydown(KeyDownHandler);
  3782. GM_registerMenuCommand("[W.A.R. Links Checker] Configuration (" + first_key_keycodename + "+" + second_key_keycodename + "+" + String.fromCharCode(CONFIGURATION_KEYCODE) + ")", configuration);
  3783. 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);
  3784. }
  3785. else
  3786. {
  3787. GM_registerMenuCommand("[W.A.R. Links Checker] Configuration", configuration);
  3788. GM_registerMenuCommand("[W.A.R. Links Checker] Check The Links In This Page", check_all_links);
  3789. }
  3790.  
  3791. //start linkchecking
  3792. if (Autocheck)
  3793. {
  3794. $(document).ready(check_all_links);
  3795. }
  3796.  
  3797. //
  3798. //
  3799. // SCRIPT EXECUTION END POINT
  3800. //
  3801. //
  3802.  
  3803. //shows configuration box
  3804. function configuration()
  3805. {
  3806.  
  3807. //prevent multiple creating of config window
  3808. if ($("#hideshow").length)
  3809. {
  3810. $("#hideshow").show();
  3811. return;
  3812. }
  3813.  
  3814. var configcss = '\
  3815. .popup_block .popup fieldset{\
  3816. padding: 1%;\
  3817. border-style: solid;\
  3818. border-width: 1px;\
  3819. border-color: gray;\
  3820. margin-bottom: 1px;\
  3821. }\
  3822. #h3hideshowtitle{\
  3823. font-size: 2em;\
  3824. }\
  3825. #h3hideshow{\
  3826. font-size: 1.5em;\
  3827. }\
  3828. #imghideshow {\
  3829. border: none;\
  3830. }\
  3831. #plusimage{\
  3832. display:inline;\
  3833. }\
  3834. #hideshow {\
  3835. position: fixed;\
  3836. width: 100%;\
  3837. height: 100%;\
  3838. top: 0;\
  3839. left: 0;\
  3840. font-size:12px;\
  3841. z-index:2147483645;\
  3842. text-align:left;\
  3843. }\
  3844. #fade {\
  3845. background: #000;\
  3846. position: fixed;\
  3847. width: 100%;\
  3848. height: 100%;\
  3849. opacity: .80;\
  3850. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";\
  3851. left: 0;\
  3852. z-index: 10;\
  3853. }\
  3854. .popup_block {\
  3855. font-family:verdana;\
  3856. color:black;\
  3857. background: #ddd;\
  3858. padding: 10px 20px;\
  3859. border: 2px solid DarkOrange;\
  3860. float: left;\
  3861. width: 700px;\
  3862. position: absolute;\
  3863. top: 7%;\
  3864. left: 50%;\
  3865. bottom: 7%;\
  3866. margin: 0 0 0 -350px;\
  3867. -moz-border-radius:10px;\
  3868. z-index: 100;\
  3869. \
  3870. }\
  3871. .popup_block .popup {\
  3872. float: left;\
  3873. width: 100%;\
  3874. background: #fff;\
  3875. margin: 10px 0;\
  3876. padding: 0px 0 0px;\
  3877. border-left: 1px solid #bbb;\
  3878. border-top: 1px solid #bbb;\
  3879. border-right: 1px solid #bbb;\
  3880. }\
  3881. #h3hideshow{\
  3882. margin: 1px 0 0px;\
  3883. padding: 1px 10px;\
  3884. border-bottom: 1px solid #bbb;\
  3885. font-size: 1.5em;\
  3886. font-weight: normal;\
  3887. cursor:pointer;\
  3888. background:#DDDDDD none repeat scroll 0 0;\
  3889. }\
  3890. #h3hideshow:hover{\
  3891. background:#C0BEBE none repeat scroll 0 0;\
  3892. }\
  3893. #h3hideshowtitle{\
  3894. margin: 2px 0 0px;\
  3895. padding: 7px 10px;\
  3896. border-bottom: 1px solid #bbb;\
  3897. font-size: 1.5em;\
  3898. font-weight: normal;\
  3899. }\
  3900. .popup_block .popup a {\
  3901. color:DarkSkyBlue;\
  3902. text-decoration:none;\
  3903. }\
  3904. .popup p {\
  3905. padding: 1px 10px;\
  3906. margin: 0px 0;\
  3907. -x-system-font:none;\
  3908. font-family:verdana,geneva,lucida,"lucida grande",arial,helvetica,sans-serif;\
  3909. font-size:10pt;\
  3910. font-size-adjust:none;\
  3911. font-stretch:normal;\
  3912. font-style:normal;\
  3913. font-variant:normal;\
  3914. font-weight:normal;\
  3915. line-height:normal;\
  3916. }\
  3917. #sites {\
  3918. padding: 1px 10px;\
  3919. margin: 0px 0;display:inline-block;width:16em;\
  3920. }\
  3921. #dev_ver {\
  3922. color: #00FF00;\
  3923. background: Black;\
  3924. text-align: right;\
  3925. }\
  3926. #sites_suspended {\
  3927. padding: 1px 10px;\
  3928. margin: 0px 0;display:inline-block;width:16em;\
  3929. text-decoration: line-through;\
  3930. }\
  3931. .popup img.cntrl {\
  3932. position: absolute;\
  3933. right: -15px;\
  3934. top: -15px;\
  3935. }\
  3936. #bulk {\
  3937. font-size:8pt;\
  3938. color:orange;\
  3939. padding: 1px 10px;\
  3940. margin: 0px 0;\
  3941. display:inline-block;\
  3942. width:100px;\
  3943. }\
  3944. #note {\
  3945. font-size:7pt;\
  3946. color:gray;\
  3947. padding: 1px 10px;\
  3948. margin: 0px 0;display:inline-block;\
  3949. min-width:100px;\
  3950. }\
  3951. #rednote {\
  3952. font-size:7pt;\
  3953. color:red;\
  3954. padding: 1px 10px;\
  3955. margin: 0px 0;display:inline-block;\
  3956. }\
  3957. #configinfo {\
  3958. font-size:8pt;\
  3959. color:gray;\
  3960. padding: 1px 10px;\
  3961. margin: 0px 0;display:inline-block;width:60em;\
  3962. }\
  3963. #refAnonymizer, #inputColorLive, #inputColorprem, #hostSearchBox2, #hostSearchBox, #inputColorDead, #inputColorTemp, #inputColorCont, #selectAllButton, #selectNoneButton, #invertButton, #selectAllButton2, #selectNoneButton2, #invertButton2 {\
  3964. color:black;\
  3965. border-style: solid;\
  3966. border-width: 1px;\
  3967. border-color: gray;\
  3968. }\
  3969. #h3hideshowcontent {\
  3970. min-height:220px;\
  3971. max-height:220px;\
  3972. overflow:auto;\
  3973. display: none;\
  3974. padding: 10px 10px;\
  3975. }\
  3976. #specinfo{\
  3977. font-size:14px;\
  3978. }\
  3979. .warlc-ui-tab {\
  3980. height:300px;\
  3981. overflow:auto;\
  3982. }\
  3983. #warlcsitelist2, #warlcsitelist1 {\
  3984. height:220px;\
  3985. border-top: 1px solid #ddd;\
  3986. padding-top: 5px;\
  3987. overflow:auto;\
  3988. }\
  3989. input:hover+label {\
  3990. background:#F1F77C;\
  3991. font-size:110%;\
  3992. }\
  3993. ';
  3994.  
  3995. GM_addStyle(configcss);
  3996.  
  3997. var customRulesRefHTML =
  3998. '\
  3999. <br>\
  4000. A custom rule consists of <b>commands</b>. A command must be on its own line and in this form:<br>\
  4001. <b>@keyword</b> <i>parameter</i>\
  4002. <br><br>\
  4003. 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. \
  4004. <br><br>\
  4005. 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.\
  4006. 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.\
  4007. 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.\
  4008. 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,\
  4009. but all commands until the next valid @customrule are ignored.<br><br>\
  4010. Available forms and types:\
  4011. <ul>\
  4012. <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.\
  4013. <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.\
  4014. <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.\
  4015. <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.\
  4016. </ul>\
  4017. Other available commands:<br>\
  4018. (Note: There can be more than 1 (up to 10) of these commands per rule. In that case, any of them will work.)\
  4019. <ul>\
  4020. <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.\
  4021. It can also specify multiple (up to 10) Top Level Domains (.com, .net etc.)<br>\
  4022. <ul>examples:<br>\
  4023. <li>good: <i>filehost.com/download/</i><br>\
  4024. <li>good: <i>download.filehost.net/?d=</i><br>\
  4025. <li>good: <i>filehost. com net co.uk /</i> - multiple TLDs (note the spaces before, between and after TLDs)<br>\
  4026. <li>ok: <i>filehost.com/</i> - works, but will also find links like filehost.com/login etc. Sometimes it\'s unavoidable though.<br>\
  4027. <li>bad: <i>d8523.filehost.com/</i> - d8523 probably is not constant<br>\
  4028. <li>bad: <i>filehost.com/3bfiq5d1</i> - 3bfiq5d1 probably is not constant<br>\
  4029. <li>bad: <i>filehost.com</i> - no slash<br>\
  4030. </ul>\
  4031. \
  4032. <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.\
  4033. 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 \
  4034. &lt;div&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;p&gt; even if there are new lines, tabulators etc.\
  4035. <li><b>@deadmatch</b> <i>pattern</i> - ignored for OBSOLETE, required for others. (For HEADERS some servers return 404 Error \
  4036. 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.)\
  4037. Two spaces again match any whitespace.\
  4038. <li><b>@unavamatch</b> <i>pattern</i> - optional, ignored for OBSOLETE and HEADERS. If found, the link is deemed temporarily unavailable.\
  4039. Two spaces again match any whitespace.\
  4040. <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. \
  4041. <li><b>@deadlink</b> <i>url</i> - optional. Example dead link.\
  4042. </ul>\
  4043. \
  4044. ';
  4045.  
  4046. //close image and css taken from = http://www.sohtanaka.com/web-design/examples/css-popup icon_close.png;
  4047. var configurationinnerHTML =
  4048. '<div id="fade"></div>\
  4049. <div class="popup_block">\
  4050. <div class="popup">\
  4051. <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/Itq2Hu7xQnsbRF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8WxjRtFvDDH2JhJG4ClCo1AtUGq59tEz9q1UlGTrK2t7QL2/ATYKJsDUTUwQzZgVAKrSrI89K+dxcXFzbiJUR/K3cmTJ2nWwYNUcfQoeS+cJcdwQGZeIjuHAmV30KWGBjq/YgUtWLiQqquryWazUXt7u3/16tX7IIYbF50D+vjWwUXGJLQYlxZZDdx+v//zsrKyZtnX0ONwcAnWUygUQhtMSELeGK2HCgoKqKSkhNDZ5fj+/fvPNTU1teDvBQW/IuMWEx29g6rkYSv5zlfu8Xgae3p6fGKaD1z4N0i/xtqPALR/WgssAuawK1XNto7eaZSVVhVPl6ruM9Baiuvr6+fBzRUul2sWxPKQWA5Yqg0NDekIwfXe3t4h3EfZ10PAVWXRIMBj16VlRvFLj7smTiB1qArPxPnKcrdqpE5VG0lVEC6EYdUIgsp9ITXGc0mzaU26CGeQampTp7I4W8GlXK/R2MUxoTaOZMAk0jNv4VNe9RXpRGK7IrIrD2QS6mrzpCKfSDRK8q8AAwCF/L1ktjcKFAAAAABJRU5ErkJggg%3D%3D"/></a>\
  4052. <div id="h3hideshowtitle"><img style="height:1.2em;" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRi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fiZJ5oZ3sHrgAeBvcCANzBsHu7Ohe2/AwDnNnxcIIMIUgAAAABJRU5ErkJggg=="></img>&nbsp;W.A.R. Links Checker Customized Premium Link version Configuration</div>\
  4053. <div id="warlc-conf-tabs">\
  4054. <ul>\
  4055. <li><a href="#tabs-1">Filehostings</a></li>\
  4056. <li><a href="#tabs-2">Containers</a></li>\
  4057. <li><a href="#tabs-5">Custom rules</a></li>\
  4058. <li><a href="#tabs-3">Settings</a></li>\
  4059. <li><a href="#tabs-4">About</a></li>\
  4060. </ul>\
  4061. <div id="tabs-1" class="warlc-ui-tab">\
  4062. <div class="warlc-ui-buttonset">\
  4063. <input type="button" class="warlc-ui-select-all" value="Select All">\
  4064. <input type="button" class="warlc-ui-select-none" value="Select None">\
  4065. <input type="button" class="warlc-ui-select-invert" value="Invert">\
  4066. </div><br>\
  4067. <div>Search: <input type="textbox" id="hostSearchBox" value=""></div><br>\
  4068. <div id="warlcsitelist1"><span>Empty</span></div>\
  4069. </div>\
  4070. <div id="tabs-2" class="warlc-ui-tab">\
  4071. <div class="warlc-ui-buttonset">\
  4072. <input type="button" class="warlc-ui-select-all" value="Select All">\
  4073. <input type="button" class="warlc-ui-select-none" value="Select None">\
  4074. <input type="button" class="warlc-ui-select-invert" value="Invert">\
  4075. </div><br>\
  4076. <div>Search: <input type="textbox" id="hostSearchBox2" value=""></div><br>\
  4077. <div id="warlcsitelist2"><span>Empty</span></div>\
  4078. </div>\
  4079. <div id="tabs-5" class="warlc-ui-tab">\
  4080. <div class="warlcsettings">\
  4081. <fieldset><input type="checkbox" id="Custom_rules"> Enable custom rules <div id="bulk">EXPERIMENTAL</div></fieldset>\
  4082. <br>\
  4083. <div>Edit custom rules: \
  4084. <a href="#" id="showCustomRulesReference">(<b>Click here to show/hide the reference</b>)</a>\
  4085. <div id="customRulesReference" style="display:none;">'
  4086. + customRulesRefHTML + '\
  4087. </div>\
  4088. <textarea style="width:100%;height:200px;" id="Custom_rules_text"></textarea>\
  4089. </div>\
  4090. </div>\
  4091. </div>\
  4092. <div id="tabs-3" class="warlc-ui-tab">\
  4093. <div class="warlcsettings">\
  4094. <fieldset>\
  4095. <p><input type="checkbox" id="Keyboard_functions"> Enable keyboard shortcuts</p>\
  4096. <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>\
  4097. </fieldset>\
  4098. <fieldset>\
  4099. <p><input type="checkbox" id="Color_DL_links"> Color DL links</p>\
  4100. <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>\
  4101. <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>\
  4102. <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>\
  4103. <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>\
  4104. <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>\
  4105. <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>\
  4106. <p><input type="checkbox" id="Show_line_through_in_dead_links"> Show line through in dead links</p>\
  4107. <p><input type="checkbox" id="Show_black_background_in_DL_links"> Show black background in DL links</p>\
  4108. <p><input type="checkbox" id="Do_not_linkify_DL_links"> Do NOT linkify DL links</p>\
  4109. <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>\
  4110. <p><input type="checkbox" id="Display_full_links_in_link_containers"> Display full links in link containers</p><br>\
  4111. <fieldset>\
  4112. <p><input type="radio" name="warlciconset" value="0"> No icons</p>\
  4113. <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>\
  4114. <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>\
  4115. <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>\
  4116. </fieldset>\
  4117. </fieldset>\
  4118. <fieldset>\
  4119. <div id="sites"><input type="checkbox" id="Autocheck"> Autocheck</div><br><div id="configinfo">Script starts check automatically.</div><br>\
  4120. </fieldset>\
  4121. <fieldset>\
  4122. <div id="sites"><input type="checkbox" id="Show_progress_stats"> Show progress stats</div><br>\
  4123. </fieldset>\
  4124. <fieldset>\
  4125. <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>\
  4126. </fieldset>\
  4127. <fieldset>\
  4128. <p><input type="checkbox" id="Enable_Anonymizer"> Enable Anonymizer</div><div id="bulk">EXPERIMENTAL Note: Checkbox does not work use CTRL+ALT+Z.</p>\
  4129. <div id="sites"><label for="refAnonymizer">Refererer anonymizing service</label><input type="text" id="refAnonymizer" value="' + Ref_anonymize_service + '"></div>\
  4130. </fieldset>\
  4131. </div>\
  4132. </div>\
  4133. <div id="tabs-4" class="warlc-ui-tab">\
  4134. <p><b>Author:</b> <a href="http://www.mentalps.5gbfree.com/viewtopic.php?f=2&t=6">mentalps</a></p>\
  4135. <br />\
  4136. <p><b>Currently supported:</b><br>\
  4137. Filehostings: ' + allHostNames.length + '<br />\
  4138. Containers: ' + allContainerNames.length + '<br />\
  4139. Obsolete sites: ' + allObsoleteNames.length + '<br /></p>\
  4140. <br />\
  4141. <p><b>Based on:</b><br>\
  4142. <a href="http://userscripts-mirror.org/scripts/show/125631.html">W.A.R. Links Checker - Dev</a></p>\
  4143. <br />\
  4144. <p><b>Uses:</b></p>\
  4145. <p>adam_3\'s <a href="http://userscripts-mirror.org/scripts/show/2254">Linkify ting</a> (modified)</p>\
  4146. <p><a href="http://jquery.com/">jQuery</a> JavaScript Library</p>\
  4147. <br />\
  4148. <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>\
  4149. </div>\
  4150. </div>\
  4151. </div>\
  4152. </div>';
  4153. $('body').append('<div id="hideshow">' + configurationinnerHTML + '</div>');
  4154. $("#warlc-conf-tabs").tabs({ fx: { opacity: 'toggle', duration: 'fast' } });
  4155. $("#imghideshow").click(function(event){$("#hideshow").hide(); event.preventDefault();});
  4156. var elmHostList = document.getElementById("warlcsitelist1");
  4157. var elmContainerList = document.getElementById("warlcsitelist2");
  4158. buildSettings();
  4159. buildSitelist("", allHostNames, elmHostList);
  4160. buildSitelist("", allContainerNames, elmContainerList);
  4161. if (DEBUG_MODE)
  4162. {
  4163. //log all sites availability status
  4164. diagSites();
  4165. }
  4166. //handler for checkbox state change
  4167. function changeConfiguration(e)
  4168. {
  4169. var element = e.target;
  4170.  
  4171. if (element.type == 'checkbox')
  4172. {
  4173. if (element.checked == 1)
  4174. {
  4175. GM_setValue(element.id, true);
  4176. }
  4177. else
  4178. {
  4179. GM_setValue(element.id, false);
  4180. }
  4181.  
  4182. }
  4183. setVariables();
  4184. }
  4185.  
  4186. //Selects all filehosting checkboxes
  4187. function selectAll()
  4188. {
  4189. $(":checkbox:visible:not(:checked)").prop("checked",true)
  4190. .each(function(index, element){GM_setValue(this.id, true)});
  4191. }
  4192.  
  4193. //Deselects all filehosting checkboxes
  4194. function selectNone()
  4195. {
  4196. $(":checkbox:visible:checked").prop("checked",false)
  4197. .each(function(index, element){GM_setValue(this.id, false)});
  4198. }
  4199.  
  4200. //Inverts filehosting checkboxes selection
  4201. function selectInvert()
  4202. {
  4203. var $checked = $(":checkbox:visible:checked");
  4204. var $unchecked = $(":checkbox:visible:not(:checked)");
  4205. $unchecked.prop("checked",true)
  4206. .each(function(index, element){GM_setValue(this.id, true)});
  4207. $checked.prop("checked",false)
  4208. .each(function(index, element){GM_setValue(this.id, false)});
  4209. }
  4210. //toggles anonymizer on off
  4211. function Enable_Anonymizer()
  4212. {
  4213. var $checked = $(":checkbox:visible:checked");
  4214. var $unchecked = $(":checkbox:visible:not(:checked)");
  4215. $unchecked.prop("checked",true)
  4216. .each(function(index, element){GM_setValue(this.id, true)});
  4217. $checked.prop("checked",false)
  4218. .each(function(index, element){GM_setValue(this.id, false)});
  4219. }
  4220.  
  4221. function changeRefAnonymizer(){
  4222. GM_setValue("Ref_anonymize_service", $("#refAnonymizer").attr("value"));
  4223. }
  4224.  
  4225. //Sets live links color
  4226. function changeColorLive()
  4227. {
  4228. var inColorLive = document.getElementById("inputColorLive");
  4229. inColorLive.style.background = inColorLive.value;
  4230. GM_setValue("Live_links_color", inColorLive.value);
  4231. }
  4232.  
  4233. //Sets dead links color
  4234. function changeColorDead()
  4235. {
  4236. var inColorDead = document.getElementById("inputColorDead");
  4237. inColorDead.style.background = inColorDead.value;
  4238. GM_setValue("Dead_links_color", inColorDead.value);
  4239. }
  4240.  
  4241. //Sets temp. unavailable links color
  4242. function changeColorTemp()
  4243. {
  4244. var inColorTemp = document.getElementById("inputColorTemp");
  4245. inColorTemp.style.background = inColorTemp.value;
  4246. GM_setValue("Temp_unavailable_links_color", inColorTemp.value);
  4247. }
  4248.  
  4249. //Sets temp. unavailable links color
  4250. function changeColorCont()
  4251. {
  4252. var inColorCont = document.getElementById("inputColorCont");
  4253. inColorCont.style.background = inColorCont.value;
  4254. GM_setValue("Container_links_color", inColorCont.value);
  4255. }
  4256. //Sets premium. links color
  4257. function changeColorprem()
  4258. {
  4259. var inColorprem = document.getElementById("inputColorprem");
  4260. inColorprem.style.background = inColorprem.value;
  4261. GM_setValue("Premium_links_color", inColorprem.value);
  4262. }
  4263.  
  4264. //Diagnose sites for availability
  4265. function diagSites()
  4266. {
  4267. var boxes = document.getElementById("warlcsitelist1").getElementsByTagName("input");
  4268.  
  4269. for (var i = 0, n = boxes.length - 1; i < n; i++)
  4270. {
  4271. if (boxes[i].type == "checkbox")
  4272. {
  4273. checkAvailability(boxes[i]);
  4274. }
  4275. }
  4276.  
  4277. boxes = document.getElementById("warlcsitelist2").getElementsByTagName("input");
  4278.  
  4279. for (var i = 0, n = boxes.length - 1; i < n; i++)
  4280. {
  4281. if (boxes[i].type == "checkbox")
  4282. {
  4283. checkAvailability(boxes[i]);
  4284. }
  4285. }
  4286.  
  4287. function checkAvailability(cbElm)
  4288. {
  4289. var cb = cbElm;
  4290. GM_xmlhttpRequest(
  4291. {
  4292. method: 'HEAD',
  4293. url: 'http://' + cb.nextSibling.textContent.replace(' ', ''),
  4294. headers: {
  4295. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  4296. 'Accept': 'text/xml',
  4297. 'Referer': ""
  4298. },
  4299. onload: function (result)
  4300. {
  4301. if (result.status != 200)
  4302. {
  4303. GM_log(cb.nextSibling.textContent + ' --- status: [' + result.status + '] ' + result.statusText + ', final url: ' + result.finalUrl);
  4304. }
  4305. },
  4306. onerror: function (result)
  4307. {
  4308. if (result.status != 200)
  4309. {
  4310. GM_log(cb.nextSibling.textContent + ' --- status: [' + result.status + '] ' + result.statusText + ', final url: ' + result.finalUrl);
  4311. }
  4312. }
  4313. });
  4314. }
  4315. }
  4316. function buildSettings()
  4317. {
  4318. $(".warlcsettings :checkbox").each(function(){
  4319. $(this).prop("checked", GM_getValue($(this).attr("id")))
  4320. .click(function(e){
  4321. GM_setValue($(this).attr("id"), $(this).prop("checked"));
  4322. setVariables();
  4323. });
  4324. })
  4325. }
  4326. //Dynamic build of host list
  4327. //param search [string] searches for hostnames matching search substring
  4328. //param siteNames [array] array of site names
  4329. //param targetNode [DOM Node] where the list should be built
  4330. // first child node is replaced
  4331. function buildSitelist(search, siteNames, targetNode)
  4332. {
  4333. var searchRegex = new RegExp("\\|?([\\w\\.-]*" + search.replace(/\./g,"\\.").replace(/-/g, "\\-") + "[\\w\\.-]*)\\|?", "i");
  4334. var $targetNode = $(targetNode).empty();
  4335. var searchedSite = "";
  4336. $.each(siteNames, function(i, site){
  4337. if (searchedSite = site.match(searchRegex))
  4338. {
  4339. var baseSite = site.replace(/\|.+/, ""); //filehosting main domain
  4340. //ensuring backward compatibility with the rest of code, to be refactored later
  4341. var oldRSLCvalue = "Check_" + baseSite.replace(/\|.+/, "").replace(/\./g,"_dot_").replace(/-/g, "_dash_") + "_links";
  4342. //
  4343. $targetNode.append('<input type="checkbox" id="' + oldRSLCvalue +'" />\
  4344. <label for="' + oldRSLCvalue + '">' + searchedSite[1] + '</label>' +
  4345. ((searchedSite[1] != baseSite) ? ('<div id="note"> ( ~ ' + baseSite + ' )</div>') : (""))
  4346. );
  4347. $("#" + oldRSLCvalue).prop("checked", GM_getValue(oldRSLCvalue, false))
  4348. .change(changeConfiguration);
  4349. $targetNode.append('<br />');
  4350. }
  4351. });
  4352. $targetNode.append("<hr>");
  4353. //obsolete hosts checkbox
  4354. $targetNode.append('<input type="checkbox" id="Obsolete_file_hosts" /><label for="Obsolete_file_hosts">Obsolete file hosts</label>');
  4355. $("#Obsolete_file_hosts").prop("checked", GM_getValue("Obsolete_file_hosts", false))
  4356. .change(changeConfiguration);
  4357. $targetNode.append('<br />');
  4358. var foundName = "";
  4359. $.each(allObsoleteNames, function(i, site){
  4360. if (foundName = allObsoleteNames[i].match(searchRegex))
  4361. {
  4362. $targetNode.append('<div id="note">' + foundName[1] + '</div>');
  4363. }
  4364. })
  4365. }
  4366. var hostSearchBox = document.getElementById("hostSearchBox");
  4367. hostSearchBox.addEventListener('keyup', function(){buildSitelist(hostSearchBox.value, allHostNames, elmHostList);}, false);
  4368. var hostSearchBox2 = document.getElementById("hostSearchBox2");
  4369. hostSearchBox2.addEventListener('keyup', function(){buildSitelist(hostSearchBox2.value, allContainerNames, elmContainerList);}, false);
  4370. $(".warlc-ui-select-all").click(selectAll).button();
  4371. $(".warlc-ui-select-none").click(selectNone).button();
  4372. $(".warlc-ui-select-invert").click(selectInvert).button();
  4373. $(".warlc-ui-buttonset").buttonset();
  4374. var inColorLive = document.getElementById("inputColorLive");
  4375. inColorLive.addEventListener('keyup', changeColorLive, false);
  4376.  
  4377. var inColorDead = document.getElementById("inputColorDead");
  4378. inColorDead.addEventListener('keyup', changeColorDead, false);
  4379.  
  4380. var inColorTemp = document.getElementById("inputColorTemp");
  4381. inColorTemp.addEventListener('keyup', changeColorTemp, false);
  4382.  
  4383. var inColorCont = document.getElementById("inputColorCont");
  4384. inColorCont.addEventListener('keyup', changeColorCont, false);
  4385. var inColorprem = document.getElementById("inputColorprem");
  4386. inColorprem.addEventListener('keyup', changeColorprem, false);
  4387. $("#refAnonymizer").change(changeRefAnonymizer);
  4388. //buttons and edit boxes init end
  4389.  
  4390. //icon sets radio buttons
  4391. var radioButtons = document.getElementsByName("warlciconset");
  4392. radioButtons[Icon_set].checked = "checked";
  4393.  
  4394. radioButtons[0].addEventListener("change", updateIconSet);
  4395. radioButtons[1].addEventListener("change", updateIconSet);
  4396. radioButtons[2].addEventListener("change", updateIconSet);
  4397. radioButtons[3].addEventListener("change", updateIconSet);
  4398. function updateIconSet()
  4399. {
  4400. GM_setValue("Icon_set", this.value * 1);
  4401. }
  4402. //
  4403. $('#showCustomRulesReference').click(function(e){
  4404. e.preventDefault();
  4405. $('#customRulesReference').toggle();
  4406. });
  4407. $('#Custom_rules_text')
  4408. .val(Custom_rules_text)
  4409. .change(saveCustomRules);
  4410. function saveCustomRules(e)
  4411. {
  4412. var cr = parseCustomRules(this.value);
  4413. if (cr.info.length)
  4414. 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, ' '));
  4415. GM_setValue('Custom_rules_text', this.value);
  4416. GM_setValue('last_custom_rules_nag', ''+new Date().getTime()); //reset nag
  4417. }
  4418. }
  4419.  
  4420. //begin standard link checking algorithm
  4421. function start(filterId)
  4422. {
  4423. var doNotLinkify = Do_not_linkify_DL_links;
  4424.  
  4425. // USER SELECTED FILE HOSTS INITIALIZATION START
  4426. var http_file_hosts = new Array(); //standard hostings
  4427. var http_file_hosts_coded = new Array(); //hostings which has to be decoded to obtain real checkable link
  4428. var http_file_hosts_obsolete = new Array(); //dead hostings
  4429. var http_file_hosts_headers_only = new Array(); //hostings with direct download, must be handled via headers only
  4430.  
  4431. initFileHosts();
  4432. initFileHostsHeadersOnly();
  4433. initFileHostsCustom(); //CustomRules
  4434. // USER SELECTED FILE HOSTS INITIALIZATION END
  4435.  
  4436. // LINKIFICATION START
  4437. var totalxpath = '';
  4438. var totalxpathcoded = '';
  4439. var totalxpathobsolete = '';
  4440. var totalxpathheadersonly = '';
  4441. var totalourls = '';
  4442.  
  4443. var filehostLen = http_file_hosts.length;
  4444. var filehostCodedLen = http_file_hosts_coded.length;
  4445. var filehostObsoleteLen = http_file_hosts_obsolete.length;
  4446. var filehostHeadersOnlyLen = http_file_hosts_headers_only.length;
  4447.  
  4448. var filehostIdx = filehostLen;
  4449. var filehostCodedIdx = filehostCodedLen;
  4450. var filehostObsoleteIdx = filehostObsoleteLen;
  4451. var filehostHeadersOnlyIdx = filehostHeadersOnlyLen;
  4452.  
  4453. if ((filehostIdx == 0) && (filehostCodedIdx == 0) && (filehostHeadersOnlyIdx == 0) && (filehostObsoleteIdx == 0))
  4454. return;
  4455.  
  4456. while (filehostIdx--)
  4457. {
  4458. totalourls += http_file_hosts[filehostIdx][0] + '|';
  4459. totalxpath += http_file_hosts[filehostIdx][4] + '|';
  4460. }
  4461.  
  4462. while (filehostCodedIdx--)
  4463. {
  4464. totalourls += http_file_hosts_coded[filehostCodedIdx][0] + '|';
  4465. totalxpathcoded += http_file_hosts_coded[filehostCodedIdx][3] + '|';
  4466. }
  4467.  
  4468. while (filehostObsoleteIdx--)
  4469. {
  4470. totalourls += http_file_hosts_obsolete[filehostObsoleteIdx][0] + '|';
  4471. totalxpathobsolete += http_file_hosts_obsolete[filehostObsoleteIdx][1] + '|';
  4472. }
  4473.  
  4474. while (filehostHeadersOnlyIdx--)
  4475. {
  4476. totalourls += http_file_hosts_headers_only[filehostHeadersOnlyIdx][0] + '|';
  4477. totalxpathheadersonly += http_file_hosts_headers_only[filehostHeadersOnlyIdx][3] + '|';
  4478. }
  4479.  
  4480. totalourls = totalourls.replace(/\|$/g, "");
  4481. //TODO: further refactoring needed
  4482. totalxpath = totalxpath.replace(/\]\|\/\/a\[/g, " or ");
  4483. totalxpath = totalxpath.replace(/\]\|/, ')]');
  4484. totalxpathcoded = totalxpathcoded.replace(/\]\|\/\/a\[/g, " or ");
  4485. totalxpathcoded = totalxpathcoded.replace(/\]\|/, ')]');
  4486. totalxpathobsolete = totalxpathobsolete.replace(/\]\|\/\/a\[/g, " or ");
  4487. totalxpathobsolete = totalxpathobsolete.replace(/\]\|/, ')]');
  4488. totalxpathheadersonly = totalxpathheadersonly.replace(/\]\|\/\/a\[/g, " or ");
  4489. totalxpathheadersonly = totalxpathheadersonly.replace(/\]\|/, ')]');
  4490. if (filterId != null) //insert id restriction in the xpath
  4491. {
  4492. totalxpath = totalxpath.replace(/\[/g, "[@class='" + filterId + "' and (");
  4493. totalxpathcoded = totalxpathcoded.replace(/\[/g, "[@class='" + filterId + "' and (");
  4494. totalxpathobsolete = totalxpathobsolete.replace(/\[/g, "[@class='" + filterId + "' and (");
  4495. totalxpathheadersonly = totalxpathheadersonly.replace(/\[/g, "[@class='" + filterId + "' and (");
  4496. }
  4497. else
  4498. {
  4499. totalxpath = totalxpath.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4500. totalxpathcoded = totalxpathcoded.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4501. totalxpathobsolete = totalxpathobsolete.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4502. totalxpathheadersonly = totalxpathheadersonly.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4503. }
  4504. linkify(totalourls);
  4505. //LINKIFICATION END
  4506. //ENCRYPTED LINKS PROCESSING START
  4507. if (http_file_hosts_coded.length > 0)
  4508. {
  4509. var linksCoded = document.evaluate(totalxpathcoded, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4510.  
  4511. // decrypt coded links (redirects, link protectors etc.)
  4512. if (linksCoded.snapshotLength > 0)
  4513. {
  4514. var link;
  4515. var reallinkreg;
  4516. var reallinkcorrection;
  4517.  
  4518. if (filterId == null)
  4519. {
  4520. cLinksTotal += linksCoded.snapshotLength;
  4521. }
  4522.  
  4523. var y = linksCoded.snapshotLength - 1;
  4524. do
  4525. {
  4526. // linksCoded.snapshotItem(y).id = 'processing_link';
  4527. link = linksCoded.snapshotItem(y);
  4528. filehostIdx = filehostCodedLen;
  4529. while (filehostIdx--)
  4530. {
  4531. if (link.href.match(http_file_hosts_coded[filehostIdx][0]))
  4532. {
  4533. link.href = link.href.replace(/http:\/\/.*?(?:\?|=)http:\/\//, 'http://');
  4534. reallinkreg = http_file_hosts_coded[filehostIdx][1];
  4535. reallinkcorrection = http_file_hosts_coded[filehostIdx][2];
  4536.  
  4537. decurl(link, reallinkreg, reallinkcorrection);
  4538. break;
  4539. }
  4540. }
  4541. }
  4542. while (y--);
  4543. }
  4544. }
  4545. //ENCRYPTED LINKS PROCESSING END
  4546.  
  4547. //STANDARD LINKCHECKING START
  4548. if (http_file_hosts.length > 0)
  4549. {
  4550. var lianks = document.evaluate(totalxpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4551.  
  4552. if (filterId == null)
  4553. {
  4554. cLinksTotal += lianks.snapshotLength;
  4555. }
  4556.  
  4557. if (lianks.snapshotLength > 0)
  4558. {
  4559. var link;
  4560.  
  4561. var URL = "";
  4562. var name = "";
  4563. var isAliveRegex = "";
  4564. var isDeadRegex = "";
  4565. var isUnavaRegex = "";
  4566. var ispremRegex = "";
  4567. var tryLoop = false;
  4568.  
  4569. var y = lianks.snapshotLength;
  4570.  
  4571. while (y--)
  4572. {
  4573. link = lianks.snapshotItem(y);
  4574.  
  4575. filehostIdx = filehostLen;
  4576. while (filehostIdx--)
  4577. {
  4578. if (link.href.match(http_file_hosts[filehostIdx][0]))
  4579. {
  4580. link.href = link.href.replace(/http:\/\/.*?http:\/\//, 'http://'); //anonymizers
  4581. isAliveRegex = http_file_hosts[filehostIdx][1];
  4582. isDeadRegex = http_file_hosts[filehostIdx][2];
  4583. isUnavaRegex = http_file_hosts[filehostIdx][3];
  4584. ispremRegex = http_file_hosts[filehostIdx][6];
  4585. tryLoop = http_file_hosts[filehostIdx][5];
  4586.  
  4587. geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, tryLoop);
  4588.  
  4589. break;
  4590. }
  4591. }
  4592. }
  4593. }
  4594. }
  4595. //STANDARD LINKCHECKING END
  4596. //OBSOLETE FILE HOSTS PROCESSING START
  4597. if (filehostObsoleteLen > 0)
  4598. {
  4599. var obsoletelinks = document.evaluate(totalxpathobsolete, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4600.  
  4601. var obsoleteLink;
  4602.  
  4603. //check links
  4604. if (obsoletelinks.snapshotLength > 0)
  4605. {
  4606. var y = obsoletelinks.snapshotLength;
  4607.  
  4608. if (filterId == null)
  4609. {
  4610. cLinksTotal += y;
  4611. }
  4612.  
  4613. while (y--)
  4614. {
  4615. obsoleteLink = obsoletelinks.snapshotItem(y);
  4616.  
  4617. if (Display_tooltip_info)
  4618. {
  4619. obsoleteLink.warlc_error = 'Cause of error: <b>Obsolete filehosting.</b>';
  4620. }
  4621. displayTheCheckedLink(obsoleteLink, 'adead_link');
  4622. }
  4623. }
  4624. }
  4625. //OBSOLETE FILE HOSTS PROCESSING END
  4626.  
  4627. //DIRECT LINKCHECKING START
  4628. if (http_file_hosts_headers_only.length > 0)
  4629. {
  4630. var links = document.evaluate(totalxpathheadersonly, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4631.  
  4632. //check links
  4633. if (links.snapshotLength > 0)
  4634. {
  4635. var link;
  4636. var isAliveRegex;
  4637. var isDeadRegex;
  4638. var ispremRegex;
  4639.  
  4640. var y = links.snapshotLength;
  4641.  
  4642.  
  4643. if (filterId == null)
  4644. {
  4645. cLinksTotal += y;
  4646. }
  4647.  
  4648. while (y--)
  4649. {
  4650. // links.snapshotItem(y).id = 'processing_link';
  4651. link = links.snapshotItem(y);
  4652. filehostIdx = filehostHeadersOnlyLen;
  4653. while (filehostIdx--)
  4654. {
  4655. if (link.href.match(http_file_hosts_headers_only[filehostIdx][0]))
  4656. {
  4657. link.href = link.href.replace(/http:\/\/.*?(?:\?|=)http:\/\//, 'http://');
  4658. isAliveRegex = http_file_hosts_headers_only[filehostIdx][1];
  4659. isDeadRegex = http_file_hosts_headers_only[filehostIdx][2];
  4660. ispremRegex = http_file_hosts_headers_only[filehostIdx][3];
  4661.  
  4662. geturlHeader(link, isAliveRegex, isDeadRegex, ispremRegex);
  4663.  
  4664. break;
  4665. }
  4666. }
  4667. }
  4668.  
  4669. }
  4670. }
  4671. //DIRECT LINKCHECKING END
  4672.  
  4673.  
  4674. //finds the real url on the page, replaces link.href with it and calls geturl
  4675. function decurl(link, reallinkreg, reallinkcorrection)
  4676. {
  4677.  
  4678. GM_xmlhttpRequest(
  4679. {
  4680. method: 'GET',
  4681. url: link.href,
  4682. headers: {
  4683. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  4684. 'Accept': 'text/xml',
  4685. 'Referer': ""
  4686. },
  4687. onload: function (result)
  4688. {
  4689. // cLinksProcessed++;
  4690.  
  4691. var reallink = result.responseText.match(reallinkreg)[0];
  4692. reallink = reallink.replace(new RegExp(reallinkcorrection, "g"), "");
  4693.  
  4694. link.href = reallink;
  4695.  
  4696. var i = http_file_hosts.length - 1;
  4697. do
  4698. {
  4699. if ((reallink.match(http_file_hosts[i][0])))
  4700. {
  4701. link.href = link.href.replace(/http:\/\/.*?\?http:\/\//, 'http://');
  4702. var isAliveRegex = http_file_hosts[i][1];
  4703. var isDeadRegex = http_file_hosts[i][2];
  4704. var isUnavaRegex = http_file_hosts[i][3];
  4705. var ispremRegex = http_file_hosts[i][4];
  4706.  
  4707. geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, 50);
  4708.  
  4709. break;
  4710. }
  4711. }
  4712. while (i--);
  4713. }
  4714. });
  4715. }
  4716.  
  4717. function randUA()
  4718. {
  4719. //TODO
  4720. }
  4721. //Processes link
  4722. //
  4723. // [string] link link URL
  4724. // [string] isAliveRegex alive link regex
  4725. // [string] isDeadRegex dead link regex
  4726. // [string] isUnavaRegex unavailable link regex
  4727. // [string] ispremRegex premium link regex
  4728. // [boolean] tryLoop repeats request until succeeded
  4729. function geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, tryLoop)
  4730. {
  4731. GM_xmlhttpRequest(
  4732. {
  4733. method: 'GET',
  4734. url: link.href,
  4735. headers: {
  4736. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  4737. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  4738. 'Referer': ""
  4739. },
  4740. onload: function (result)
  4741. {
  4742. var res = result.responseText;
  4743. if (result.responseHeaders.match(/Content-Disposition: attachment; filename=/))//direct download, simple version
  4744. {
  4745. displayTheCheckedLink(link, 'alive_link');
  4746. return;
  4747. }
  4748.  
  4749. if (res.match(isAliveRegex))
  4750. {
  4751. displayTheCheckedLink(link, 'alive_link');
  4752. return;
  4753. }
  4754.  
  4755. if (res.match(isDeadRegex))
  4756. {
  4757. displayTheCheckedLink(link, 'adead_link');
  4758. return;
  4759. }
  4760.  
  4761. if (isUnavaRegex && res.match(isUnavaRegex))
  4762. {
  4763. displayTheCheckedLink(link, 'unava_link');
  4764. return;
  4765. }
  4766. if (res.match(ispremRegex))
  4767. {
  4768. displayTheCheckedLink(link, 'prem_link');
  4769. return;
  4770. }
  4771.  
  4772. var resStatus = result.status;
  4773.  
  4774. if (resStatus == 404)
  4775. {
  4776. displayTheCheckedLink(link, 'adead_link');
  4777. }
  4778. if (resStatus == 500 || resStatus == 503 || resStatus == 403) //not found/available/temp. unava
  4779. {
  4780. if (tryLoop)
  4781. {
  4782. //wait 1-5 seconds and repeat the request
  4783. setTimeout(function(){geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, tryLoop)}, 1000 + (Math.random() * 4000));
  4784. }
  4785. else
  4786. {
  4787. displayTheCheckedLink(link, 'unava_link');
  4788. }
  4789.  
  4790. return;
  4791. }
  4792. },
  4793. onerror: function ()
  4794. {
  4795. displayTheCheckedLink(link, 'unava_link');
  4796. }
  4797. });
  4798. }
  4799.  
  4800. function geturlHeader(link, isAliveRegex, isDeadRegex, ispremRegex)
  4801. {
  4802. GM_xmlhttpRequest(
  4803. {
  4804. method: 'HEAD',
  4805. url: link.href,
  4806. headers: {
  4807. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  4808. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  4809. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  4810. 'Referer': ""
  4811. },
  4812. onload: function (result)
  4813. {
  4814. var resStatus = result.status;
  4815. var resHeaders = "";
  4816. if (resStatus == 403 || resStatus == 404 || resStatus == 500) //not found/available
  4817. {
  4818. displayTheCheckedLink(link, 'adead_link');
  4819. return;
  4820. }
  4821.  
  4822. resHeaders = result.responseHeaders;
  4823.  
  4824. if (resHeaders.match(isDeadRegex))
  4825. {
  4826. displayTheCheckedLink(link, 'adead_link');
  4827. return;
  4828. }
  4829.  
  4830. if (resHeaders.match(isAliveRegex))
  4831. {
  4832. displayTheCheckedLink(link, 'alive_link');
  4833. return;
  4834. }
  4835. if (resHeaders.match(ispremRegex))
  4836. {
  4837. displayTheCheckedLink(link, 'prem_link');
  4838. return;
  4839. }
  4840. },
  4841. onerror: function ()
  4842. {
  4843. displayTheCheckedLink(link, 'unava_link');
  4844. }
  4845. });
  4846. }
  4847.  
  4848. //Delinkfifies the <a> element object
  4849. function delinkifyLink(link)
  4850. {
  4851. var spanElm = document.createElement("span");
  4852. spanElm.className = link.className;
  4853. spanElm.innerHTML = link.innerHTML;
  4854.  
  4855. if (Display_tooltip_info)
  4856. {
  4857. spanElm.href = link.href;
  4858. spanElm.warlc_error = link.warlc_error;
  4859. switch (link.className){
  4860. case "alive_link": spanElm.addEventListener("mouseover", displayTooltipInfo, false); break
  4861. case "adead_link": spanElm.addEventListener("mouseover", displayTooltipError, false); break;
  4862. case "unava_link": //reserved
  4863. case "prem_link": spanElm.addEventListener("mouseover", displayTooltipError, false); break;
  4864. default:
  4865. }
  4866. }
  4867. link.parentNode.replaceChild(spanElm, link);
  4868. }
  4869.  
  4870. //Assigns result status to the <a> element object and calls delinkifying eventually
  4871. //Possible result states: adead_link, alive_link, unava_link, prem_link
  4872. function displayTheCheckedLink(link, resultStatus)
  4873. {
  4874. link.className = resultStatus;
  4875. link.href = Ref_anonymize_service + link.href;
  4876. if (Display_tooltip_info)
  4877. {
  4878. switch (resultStatus){
  4879. case "alive_link": link.addEventListener("mouseover", displayTooltipInfo, false); break
  4880. case "adead_link": link.addEventListener("mouseover", displayTooltipError, false); break;
  4881. case "unava_link": //reserved
  4882. case "prem_link": link.addEventListener("mouseover", displayTooltipInfo, false); break
  4883. default:
  4884. }
  4885. }
  4886. if (doNotLinkify)
  4887. {
  4888. delinkifyLink(link);
  4889. }
  4890. cLinksProcessed++;
  4891.  
  4892. if (resultStatus == "alive_link")
  4893. {
  4894. cLinksAlive++;
  4895. return;
  4896. }
  4897.  
  4898. if (resultStatus == "adead_link")
  4899. {
  4900. cLinksDead++;
  4901. return;
  4902. }
  4903.  
  4904. if (resultStatus == "unava_link")
  4905. {
  4906. cLinksUnava++;
  4907. }
  4908. if (resultStatus == "prem_link")
  4909. {
  4910. cLinksprem++;
  4911. return;
  4912. }
  4913. }
  4914.  
  4915.  
  4916. function initFileHosts()
  4917. {
  4918.  
  4919. function addObsoleteHost(linkRegex, xpathEx)
  4920. {
  4921. var host = new Array(2);
  4922. host[0] = linkRegex;
  4923. host[1] = xpathEx;
  4924. http_file_hosts_obsolete.push(host);
  4925. }
  4926.  
  4927. //obsolete file hosts init start
  4928. if (Obsolete_file_hosts)
  4929. {
  4930. addObsoleteHost("uloz\.cz\/show\/file","//a[contains(@href,'uloz.cz')]");
  4931. addObsoleteHost("storage\\.to\/get","//a[contains(@href,'storage.to')]");
  4932. addObsoleteHost("iskladka\\.cz\/download","//a[contains(@href,'iskladka.cz')]");
  4933. addObsoleteHost("file-rack\\.com\/files","//a[contains(@href,'file-rack.com')]");
  4934. addObsoleteHost("fast-load\\.net\/(\/)?index","//a[contains(@href,'fast-load.net')]");
  4935. addObsoleteHost("subory\\.sk\/download","//a[contains(@href,'subory.sk')]");
  4936. addObsoleteHost("bigandfree\\.com\/\\d+","//a[contains(@href,'bigandfree.com')]");
  4937. addObsoleteHost("fileop\\.com\/\\w+","//a[contains(@href,'fileop.com')]");
  4938. addObsoleteHost("mujsoubor\\.cz\/file\/","//a[contains(@href,'mujsoubor.cz')]");
  4939. addObsoleteHost("sendfile\\.to\/\\w+","//a[contains(@href,'sendfile.to')]");
  4940. addObsoleteHost("superfastfile\\.com\/\\w+","//a[contains(@href,'superfastfile.com')]");
  4941. addObsoleteHost("quickyshare\\.com\/\\w+","//a[contains(@href,'quickyshare.com/')]");
  4942. addObsoleteHost("duckload\\.com\/(?:d|play)","//a[contains(@href,'duckload.com')]");
  4943. addObsoleteHost("uploadstore\\.net\/\\w+","//a[contains(@href,'uploadstore.net')]");
  4944. addObsoleteHost("meinupload\\.com\/dl\/\\d+","//a[contains(@href,'meinupload.com/dl')]");
  4945. addObsoleteHost("dualshare\\.com\/\\w+","//a[contains(@href,'dualshare.com')]");
  4946. addObsoleteHost("2xupload\\.(?:to|de)\/file\/\\w+","//a[contains(@href,'2xupload.to') or contains(@href,'2xupload.de')]");
  4947. addObsoleteHost("oxedion\\.com\/index\\.php\/download\/\\w+","//a[contains(@href,'oxedion.com/index')]");
  4948. addObsoleteHost("uploadline\\.com\/\\d+","//a[contains(@href,'uploadline.com')]");
  4949. addObsoleteHost("dll\\.bz\/file\/\\d+","//a[contains(@href,'dll.bz/file')]");
  4950. addObsoleteHost("movieshare\\.in\/\\w+","//a[contains(@href,'movieshare.in')]");
  4951. addObsoleteHost("milledrive\\.com\/files\/\\d+","//a[contains(@href,'milledrive.com')]");
  4952. addObsoleteHost("quickupload\\.net\/\\w+","//a[contains(@href,'quickupload.net')]");
  4953. addObsoleteHost("safelink\\.in\/\\w+","//a[contains(@href,'safelink.in')]");
  4954. addObsoleteHost("pyramidfiles\\.com\/\\w+","//a[contains(@href,'pyramidfiles.com/')]");
  4955. addObsoleteHost("(?:cloudnator|shragle)\\.com\/files","//a[contains(@href,'cloudnator.com/files') or contains(@href,'shragle.com/files')]");
  4956. addObsoleteHost("batshare\\.com\/\\w+","//a[contains(@href,'batshare.com/')]");
  4957. addObsoleteHost("bitroad\\.net\/download","//a[contains(@href,'bitroad.net/download')]");
  4958. addObsoleteHost("metadivx\\.com\/\\w+","//a[contains(@href,'metadivx.com')]");
  4959. addObsoleteHost("filegaze\\.com\/\\w+","//a[contains(@href,'filegaze.com/')]");
  4960. addObsoleteHost("bulletupload\\.com\/\\w+","//a[contains(@href,'bulletupload.com/')]");
  4961. addObsoleteHost("sharefilehost\\.com\/\\w+","//a[contains(@href,'sharefilehost.com/')]");
  4962. addObsoleteHost("fireuploads\\.net\/\\w+","//a[contains(@href,'fireuploads.net/')]");
  4963. addObsoleteHost("divxlink\\.com\/\\w+","//a[contains(@href,'divxlink.com/')]");
  4964. addObsoleteHost("bzlink\\.us\/\\w+","//a[contains(@href,'bzlink.us/')]");
  4965. addObsoleteHost("filetechnology\\.com\/\\w+","//a[contains(@href,'filetechnology.com/')]");
  4966. addObsoleteHost("filecosy\\.com\/\\w+","//a[contains(@href,'filecosy.com/')]");
  4967. addObsoleteHost("fileserver\\.cc\/\\w+","//a[contains(@href,'fileserver.cc/')]");
  4968. addObsoleteHost("shafiles\\.me\/\\w+","//a[contains(@href,'shafiles.me/')]");
  4969. addObsoleteHost("xfileshare\\.eu\/\\w+","//a[contains(@href,'xfileshare.eu/')]");
  4970. addObsoleteHost("uploadboost\\.com\/\\w+","//a[contains(@href,'uploadboost.com/')]");
  4971. addObsoleteHost("uploadoz\\.com\/\\w+","//a[contains(@href,'uploadoz.com/')]");
  4972. addObsoleteHost("ihostia\\.com\/\\w+","//a[contains(@href,'ihostia.com/')]");
  4973. addObsoleteHost("shareupload\\.com\/\\w+","//a[contains(@href,'shareupload.com/')]");
  4974. addObsoleteHost("ovfile\\.com\/\\w+","//a[contains(@href,'ovfile.com/')]");
  4975. addObsoleteHost("stahuj\\.to\/\\w+","//a[contains(@href,'stahuj.to/')]");
  4976. addObsoleteHost("gigfiles\\.net\/\\w+","//a[contains(@href,'gigfiles.net/')]");
  4977. addObsoleteHost("vidhog\\.com\/\\w+","//a[contains(@href,'vidhog.com/')]");
  4978. addObsoleteHost("filelaser\\.com\/\\w+","//a[contains(@href,'filelaser.com/')]");
  4979. addObsoleteHost("holderfile\\.com\/\\w+","//a[contains(@href,'holderfile.com/')]");
  4980. addObsoleteHost("fileduct\\.(?:com|net)\/\\w+","//a[contains(@href,'fileduct.com/') or contains(@href,'fileduct.net')]");
  4981. addObsoleteHost("filefat\\.com\/\\w+","//a[contains(@href,'filefat.com/')]");
  4982. addObsoleteHost("restfile\\.com\/\\w+","//a[contains(@href,'restfile.com/')]");
  4983. addObsoleteHost("filemashine\\.com\\/download\/\\w+","//a[contains(@href,'filemashine.com/download')]");
  4984. addObsoleteHost("cloudnxt\\.net\/\\w+","//a[contains(@href,'cloudnxt.net/')]");
  4985. addObsoleteHost("uploadrack\\.com\/\\w+","//a[contains(@href,'uploadrack.com')]");
  4986. addObsoleteHost("teradepot\\.com\/\\w+","//a[contains(@href,'teradepot.com')]");
  4987. addObsoleteHost("dataup\\.to\/\\d+\/","//a[contains(@href,'dataup.to')]");
  4988. addObsoleteHost("upit\\.to\/file:\\d+","//a[contains(@href,'upit.to/file')]");
  4989. addObsoleteHost("badongo\\.(?:com|net)\/(?:\\w\\w\/|)(?:vid|cfile|file|pt)\/\\w+","//a[contains(@href,'badongo.com') or contains(@href,'badongo.net')]");
  4990. addObsoleteHost("driveway\\.com\/\\w+","//a[contains(@href,'driveway.com')]");
  4991. addObsoleteHost("eatlime\\.com\/download","//a[contains(@href,'eatlime.com/download')]");
  4992. addObsoleteHost("a2zuploads\\.com\/id\\w+","//a[contains(@href,'a2zuploads.com/id')]");
  4993. addObsoleteHost("friendlyfiles\\.net\/download\/\\w+\/","//a[contains(@href,'friendlyfiles.net/download')]");
  4994. addObsoleteHost("flyfile\\.us\/\\w+","//a[contains(@href,'flyfile.us')]");
  4995. addObsoleteHost("speedyshare\\.com\/\\w+","//a[contains(@href,'speedyshare.com')]");
  4996. addObsoleteHost("brontofile\\.com\/download","//a[contains(@href,'brontofile.com/download')]");
  4997. addObsoleteHost("uploadspace\\.eu\/\\w+","//a[contains(@href,'uploadspace.eu')]");
  4998. addObsoleteHost("fooget\\.com\/\\w+","//a[contains(@href,'fooget.com/')]");
  4999. addObsoleteHost("file-bit.net\/\\w+","//a[contains(@href,'file-bit.net/')]");
  5000. addObsoleteHost("keepfile\\.com\/\\w+","//a[contains(@href,'keepfile.com')]");
  5001. addObsoleteHost("piggyshare\\.com\/file\/\\w+","//a[contains(@href,'piggyshare.com')]");
  5002. addObsoleteHost("filecrown\\.com\/\\w+","//a[contains(@href,'filecrown.com')]");
  5003. addObsoleteHost("6giga\\.com\/\\w+","//a[contains(@href,'6giga.com')]");
  5004. addObsoleteHost("uploadjockey\\.com\/download\/\\w+","//a[contains(@href,'uploadjockey.com/download')]");
  5005. addObsoleteHost("bluehost\\.to\/dl=\\w+","//a[contains(@href,'bluehost.to')]");
  5006. addObsoleteHost("coolshare\\.cz\/stahnout\/\\w+","//a[contains(@href,'coolshare.cz/stahnout')]");
  5007. addObsoleteHost("filegu\\.ru\/f\/\\w+","//a[contains(@href,'filegu.ru/f')]");
  5008. addObsoleteHost("filebase\\.to\/files\/\\d+\/","//a[contains(@href,'filebase.to/files')]");
  5009. addObsoleteHost("kickload\\.com\/(?:file|get)\/","//a[contains(@href,'kickload.com/file') or contains(@href,'kickload.com/get')]");
  5010. addObsoleteHost("up-file\\.com\/files\/download\/\\w+\/","//a[contains(@href,'up-file.com/download')]");
  5011. addObsoleteHost("ezyfile\\.net\/\\w+","//a[contains(@href,'ezyfile.net/')]");
  5012. addObsoleteHost("k2files\\.com\/files","//a[contains(@href,'k2files.com/files')]");
  5013. addObsoleteHost("aiotool\\.net\/\\w+","//a[contains(@href,'aiotool.net/')]");
  5014. addObsoleteHost("xvideos\\.com\/files\/\\d+\/\\w+","//a[contains(@href,'xvideos.com/files')]");
  5015. addObsoleteHost("filebling\\.com\/dl\/\\d+\/\\d+\/\\w+","//a[contains(@href,'filebling.com/dl')]");
  5016. addObsoleteHost("loaded\\.it\/divx\/\\w+","//a[contains(@href,'loaded.it/divx')]");
  5017. addObsoleteHost("uploadcell\\.com\/\\w+\/\\w+","//a[contains(@href,'uploadcell.com')]");
  5018. addObsoleteHost("jakfile\\.com\/\\w+","//a[contains(@href,'jakfile.com/')]");
  5019. addObsoleteHost("uploadshare\\.cz\/download\/\\w+\/\\w+","//a[contains(@href,'uploadshare.cz/download')]");
  5020. addObsoleteHost("mangoshare\\.com\/\\w+","//a[contains(@href,'mangoshare.com')]");
  5021. addObsoleteHost("ugotfile\\.com\/file\/\\d+\/\\w+","//a[contains(@href,'ugotfile.com/file')]");
  5022. addObsoleteHost("filestab\\.com\/\\w+","//a[contains(@href,'filestab.com')]");
  5023. addObsoleteHost("dotavi\\.com\/\\w+\/.","//a[contains(@href,'dotavi.com/')]");
  5024. addObsoleteHost("crazyupload\\.com\/\\w+","//a[contains(@href,'crazyupload.com')]");
  5025. addObsoleteHost("gaiafile\\.com\/\\w+","//a[contains(@href,'gaiafile.com')]");
  5026. addObsoleteHost("sharejunky\\.com\/\\w+","//a[contains(@href,'sharejunky.com')]");
  5027. addObsoleteHost("fileho\\.com\/download\/\\d+","//a[contains(@href,'fileho.com/download')]");
  5028. addObsoleteHost("(?:bigandfree|BigAndFree)\\.com\/\\d+","//a[contains(@href,'bigandfree.com') or contains(@href,'BigAndFree.com')]");
  5029. addObsoleteHost("bigfile\\.in\/\\w+","//a[contains(@href,'bigfile.in')]");
  5030. addObsoleteHost("bigshare\\.eu\/download\\.php\\?id=","//a[contains(@href,'bigshare.eu/download.php')]");
  5031. addObsoleteHost("dahosting\\.org\/dl\/\\w+","//a[contains(@href,'dahosting.org/dl')]");
  5032. addObsoleteHost("digisofts\\.net\/\\w+","//a[contains(@href,'digisofts.net')]");
  5033. addObsoleteHost("file4save\\.com\/\\w+\/\\w+","//a[contains(@href,'file4save.com')]");
  5034. addObsoleteHost("filereactor\\.com\/\\w+","//a[contains(@href,'filereactor.com/')]");
  5035. addObsoleteHost("filechip\\.com\/\\w+","//a[contains(@href,'filechip.com')]");
  5036. addObsoleteHost("filescloud\\.com\/\\w+\/\\w+","//a[contains(@href,'filescloud.com')]");
  5037. addObsoleteHost("saveqube\\.com\/getfile\/\\w+","//a[contains(@href,'saveqube.com/getfile')]");
  5038. addObsoleteHost("www2\\.turboshare\\.de\/v\/\\d+","//a[contains(@href,'turboshare.de/v')]");
  5039. addObsoleteHost("z-upload\\.com\/\\w+","//a[contains(@href,'z-upload.com')]");
  5040. addObsoleteHost("youshare\\.com\/view\\.php","//a[contains(@href,'youshare.com/view')]");
  5041. addObsoleteHost("jiffyupload\\.com\/\\w+","//a[contains(@href,'jiffyupload.com')]");
  5042. addObsoleteHost("gigeshare\\.com\/preview\/\\w+","//a[contains(@href,'gigeshare.com')]");
  5043. addObsoleteHost("datenklo\\.net\/dl","//a[contains(@href,'datenklo.net')]");
  5044. addObsoleteHost("upload\\.dj\/download\\.php\\?id=\\w+","//a[contains(@href,'upload.dj/download.php')]");
  5045. addObsoleteHost("loadfiles\\.in\/\\w+\/","//a[contains(@href,'loadfiles.in')]");
  5046. addObsoleteHost("upit\\.to\/file:\\w+\/","//a[contains(@href,'upit.to/file')]");
  5047. addObsoleteHost("zshare\\.net\/(?:download|video|audio)\/\\w+","//a[contains(@href,'zshare.net/')]");
  5048. addObsoleteHost("refile\\.net\/f\/\\?\\w+","//a[contains(@href,'refile.net/f/')]");
  5049. addObsoleteHost("dsfileshare\\.com\/download","//a[contains(@href,'dsfileshare.com/download')]");
  5050. addObsoleteHost("sharesimple\\.net\/\\w{2}\/download","//a[contains(@href,'sharesimple.net')]");
  5051. addObsoleteHost("(?:s\\d+\\.|)4files\\.net\/\\d+","//a[contains(@href,'4files.net')]");
  5052. addObsoleteHost("odsiebie\\.com\/pokaz\/\\d+","//a[contains(@href,'odsiebie.com/pokaz')]");
  5053. addObsoleteHost("filenavi\\.com\/direct\/\\w+","//a[contains(@href,'filenavi.com/direct')]");
  5054. addObsoleteHost("3oof\\.com\/\\w+","//a[contains(@href,'3oof.com/')]");
  5055. addObsoleteHost("meshwaar\\.com\/\\w+","//a[contains(@href,'meshwaar.com')]");
  5056. addObsoleteHost("maxupload\\.com\/files\/\\w+","//a[contains(@href,'maxupload.com/files')]");
  5057. addObsoleteHost("share\\.cx\/videos\/\\d+","//a[contains(@href,'share.cx/videos')]");
  5058. addObsoleteHost("atserver\\.eu\/(?:\\w{2}\/|)download\/\\d+","//a[contains(@href,'atserver.eu')]");
  5059. addObsoleteHost("file2upload\\.net\/download\/\\d+","//a[contains(@href,'file2upload.net/download')]");
  5060. addObsoleteHost("filebling\\.com\/\\w+","//a[contains(@href,'filebling.com')]");
  5061. addObsoleteHost("turboshare\\.(?:eu|com)\/files","//a[contains(@href,'turboshare.') and contains(@href,'/files')]");
  5062. addObsoleteHost("rarhost\\.com\/download","//a[contains(@href,'rarhost.com/download')]");
  5063. addObsoleteHost("isharehd\\.com\/\\w+","//a[contains(@href,'isharehd.com')]");
  5064. addObsoleteHost("datenklo\\.net\/file\\.php\\?id=\\w+","//a[contains(@href,'datenklo.net/file.php')]");
  5065. addObsoleteHost("file2share\\.biz\/download\\.php\\?id=\\w+","//a[contains(@href,'file2share.biz/download.php')]");
  5066. addObsoleteHost("savefiles\\.net\/d\/\\w+\\.html","//a[contains(@href,'savefiles.net/d')]");
  5067. addObsoleteHost("bestsharing\\.com\/files\/\\w+","//a[contains(@href,'bestsharing.com/files')]");
  5068. addObsoleteHost("filecache\\.de\/\\d+","//a[contains(@href,'filecache.de/')]");
  5069. addObsoleteHost("i741\\.com\/files\/\\w+","//a[contains(@href,'i741.com/files')]");
  5070. addObsoleteHost("dataup\\.de\/\\d+","//a[contains(@href,'dataup.de')]");
  5071. addObsoleteHost("fofly\\.com\/\\w+","//a[contains(@href,'fofly.com')]");
  5072. addObsoleteHost("shareonall\\.com\/\\w+","//a[contains(@href,'shareonall.com')]");
  5073. addObsoleteHost("sexuploader\\.com\/(?:|..\/)\\?[d|v]=\\w{8}","//a[contains(@href,'sexuploader.com')]");
  5074. 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')]");
  5075. addObsoleteHost("uploadhyper\\.com\/file\/","//a[contains(@href,'uploadhyper.com')]");
  5076. addObsoleteHost("filespawn\\.com\/file\/","//a[contains(@href,'filespawn.com')]");
  5077. addObsoleteHost("caizzii\\.com\/(?:download|\\?file=)","//a[contains(@href,'caizzii.com')]");
  5078. addObsoleteHost("volnyweb\\.cz\/files\/get\/[\\w-_]+","//a[contains(@href,'volnyweb.cz/files')]");
  5079. addObsoleteHost("gotupload\\.com\/\\w+","//a[contains(@href,'gotupload.com/')]");
  5080. addObsoleteHost("mooload\\.com\/new\/file\\.php\\?file=files\/\\d+\/\\d+","//a[contains(@href,'mooload.com/new/file')]");
  5081. addObsoleteHost("z\\d+\\.zupload\\.com\/download\\.php\\?file=getfile&filepath=\\d+","//a[contains(@href,'zupload.com/download')]");
  5082. addObsoleteHost("mytempdir\\.com\/\\d+","//a[contains(@href,'mytempdir.com/')]");
  5083. addObsoleteHost("usershare\\.net\/\\w+","//a[contains(@href,'usershare.net/')]");
  5084. addObsoleteHost("qshare\\.com\/get\/\\d+\/.","//a[contains(@href,'qshare.com/get')]");
  5085. addObsoleteHost("filescash\\.net\/file\/\\d+","//a[contains(@href,'filescash.net/file')]");
  5086. addObsoleteHost("metahyper\\.com\/\\w+","//a[contains(@href,'metahyper.com/')]");
  5087. addObsoleteHost("combozip\\.com\/\\w+","//a[contains(@href,'combozip.com/')]");
  5088. addObsoleteHost("anonstream\\.com\/get_\\w+","//a[contains(@href,'anonstream.com/get_')]");
  5089. addObsoleteHost("x7\\.to\/\\w+","//a[contains(@href,'x7.to/')]");
  5090. addObsoleteHost("uploadbox\\.com\/files\/\\w+","//a[contains(@href,'uploadbox.com/files')]");
  5091. addObsoleteHost("(?:flyupload\\.)?(?:enterupload|flyupload)\\.com\/[\\?\\w]+","//a[contains(@href,'enterupload.com/') or contains(@href,'flyupload.com/')]");
  5092. addObsoleteHost("filepoint\\.de\/dl\/\\w+","//a[contains(@href,'filepoint.de/dl')]");
  5093. addObsoleteHost("icushare\\.com\/\\w+","//a[contains(@href,'icushare.com/')]");
  5094. addObsoleteHost("oron\\.com\/\\w+","//a[contains(@href,'oron.com/')]");
  5095. addObsoleteHost("mystream\\.to\/file\\-\\d+","//a[contains(@href,'mystream.to/file')]");
  5096. addObsoleteHost("x-fs\\.com\/download\\.php\\?id=\\w+","//a[contains(@href,'x-fs.com/download')]");
  5097. addObsoleteHost("srapid\\.eu\/\\w+","//a[contains(@href,'srapid.eu/')]");
  5098. addObsoleteHost("shareshared\\.com\/\\w+","//a[contains(@href,'shareshared.com/')]");
  5099. addObsoleteHost("sosame\\.cz\/\\w+","//a[contains(@href,'sosame.cz/')]");
  5100. addObsoleteHost("s\\d+\\.filesdump\\.com\/file\/\\w+","//a[contains(@href,'filesdump.com/file')]");
  5101. addObsoleteHost("2-klicks\\.de\/\\?d=\\w+","//a[contains(@href,'2-klicks.de/?d=')]");
  5102. addObsoleteHost("silofiles\\.com\/file\/\\d+","//a[contains(@href,'silofiles.com/file')]");
  5103. addObsoleteHost("upfile\\.in\/\\w+","//a[contains(@href,'upfile.in/')]");
  5104. addObsoleteHost("filehook\\.com\/\\w+","//a[contains(@href,'filehook.com/')]");
  5105. addObsoleteHost("mojofile\\.com\/\\w+","//a[contains(@href,'mojofile.com/')]");
  5106. addObsoleteHost("cloudcache\\.cc\/\\w+","//a[contains(@href,'cloudcache.cc/')]");
  5107. addObsoleteHost("1hostclick\\.com\/\\w+","//a[contains(@href,'1hostclick.com/')]");
  5108. addObsoleteHost("4bytez\\.com\/\\w+","//a[contains(@href,'4bytez.com/')]");
  5109. addObsoleteHost("uploadking\\.com\/\\w+","//a[contains(@href,'uploadking.com/')]");
  5110. addObsoleteHost("nahraj\\.cz\/(?:content|down)\/\\w+","//a[contains(@href,'nahraj.cz/')]");
  5111. addObsoleteHost("megarapid\\.eu\/files\/\\d+","//a[contains(@href,'megarapid.eu/files')]");
  5112. addObsoleteHost("(?:fileserve|uploadstation)\\.com\/(?:file|list)\/\\w+","//a[contains(@href,'fileserve.com/') or contains(@href,'uploadstation.com/')]");
  5113. addObsoleteHost("uploadhere\\.com\/\\w+","//a[contains(@href,'uploadhere.com/')]");
  5114. addObsoleteHost("dualshare\\.com\/\\w+","//a[contains(@href,'dualshare.com/')]");
  5115. addObsoleteHost("yourfilehost\\.com\/media","//a[contains(@href,'yourfilehost.com/media')]");
  5116. addObsoleteHost("ftp2share\\.com\/file\/\\w+","//a[contains(@href,'ftp2share.com/file')]");
  5117. addObsoleteHost("storeandserve\\.com\/download\/\\d+","//a[contains(@href,'storeandserve.com/download')]");
  5118. addObsoleteHost("mountfile\\.com\/file(?:\/\\w+){2}","//a[contains(@href,'mountfile.com/file')]");
  5119. addObsoleteHost("save\\.am\/files\/\\w+","//a[contains(@href,'save.am/files')]");
  5120. addObsoleteHost("transitfiles\\.com\/dl\/\\w+","//a[contains(@href,'transitfiles.com/dl')]");
  5121. addObsoleteHost("smartuploader\\.com\/file\\.php\\?f=\\d+","//a[contains(@href,'smartuploader.com/file.php?=')]");
  5122. addObsoleteHost("skipfile\\.com\/\\w+","//a[contains(@href,'skipfile.com/')]");
  5123. addObsoleteHost("stahnu\\.to\/[\\w\\?]+","//a[contains(@href,'stahnu.to/')]");
  5124. addObsoleteHost("flyshare\.cz\/(?:stahni\/|)\\d+","//a[contains(@href,'flyshare.cz/')]");
  5125. addObsoleteHost("(?:ddlani\\.me|ddlanime\\.com)\/\\w+","//a[contains(@href,'ddlani.me/') or contains(@href,'ddlanime.com/')]");
  5126. addObsoleteHost("loadly\\.com\/\\w+","//a[contains(@href,'loadly.com/')]");
  5127. addObsoleteHost("groovefile\\.com\/\\w+","//a[contains(@href,'groovefile.com/')]");
  5128. addObsoleteHost("filezlot\\.com\/\\w+","//a[contains(@href,'filezlot.com/')]");
  5129. addObsoleteHost("shareator\\.(?:net|com)\/\\w+","//a[contains(@href,'shareator.')]");
  5130. addObsoleteHost("yabadaba\\.ru\/files\/","//a[contains(@href,'yabadaba.ru/files/')]");
  5131. addObsoleteHost("rapidhide\\.com\/download\\.php\\?file=\\w+","//a[contains(@href,'rapidhide.com/download.php')]");
  5132. addObsoleteHost("filejungle\\.com\/[fl]\/\\w+","//a[contains(@href,'filejungle.com/')]");
  5133. addObsoleteHost("kewlshare\\.com\/dl\/\\d+","//a[contains(@href,'kewlshare.com/dl')]");
  5134. addObsoleteHost("petandrive\\.com\/file\/\\w+","//a[contains(@href,'petandrive.com/file')]");
  5135. addObsoleteHost("onionshare\\.com\/\\w+","//a[contains(@href,'onionshare.com/')]");
  5136. addObsoleteHost("rapidable\\.com\/\\w+\/download\\.php\\?id=","//a[contains(@href,'rapidable.com/')]");
  5137. addObsoleteHost("filesdump\\.com\/file\/\\w+\/\\d+","//a[contains(@href,'filesdump.com/file')]");
  5138. addObsoleteHost("file2box\\.(?:net|com)\/\\w+","//a[contains(@href,'file2box.')]");
  5139. addObsoleteHost("(?:filesonic|sharingmatrix|wupload)(?:\\.\\w+){1,2}\/(?:file|folder)\/\\w+","//a[contains(@href,'filesonic.') or contains(@href,'sharingmatrix.com') or contains(@href,'wupload.')]");
  5140. addObsoleteHost("wizzupload\\.com\/\\w+","//a[contains(@href,'wizzupload.com/')]");
  5141. addObsoleteHost("bloggerarticles\\.com\/\\w+","//a[contains(@href,'bloggerarticles.com/')]");
  5142. addObsoleteHost("mojedata\\.sk/","//a[contains(@href,'mojedata.sk/')]");
  5143. addObsoleteHost("sharpfile\\.com\/\\w+","//a[contains(@href,'sharpfile.com/')]");
  5144. addObsoleteHost("upgrand\\.com\/\\w+","//a[contains(@href,'upgrand.com/')]");
  5145. addObsoleteHost("nasdilej\\.cz\/\\w+","//a[contains(@href,'nasdilej.cz/')]");
  5146. addObsoleteHost("mediatack\\.cz\/stahuj/\\w+","//a[contains(@href,'mediatack.cz/stahuj/')]");
  5147. addObsoleteHost("share-it\\.to\/file/\\w+","//a[contains(@href,'share-it.to/file/')]");
  5148. addObsoleteHost("primeupload\\.com\/file/\\w+","//a[contains(@href,'primeupload.com/file/')]");
  5149. addObsoleteHost("(?:uploads\\.glumbo|glumbouploads)\\.com\/\\w+","//a[contains(@href,'uploads.glumbo.com') or contains(@href,'glumbouploads.com')]");
  5150. addObsoleteHost("filebeer\\.info\/\\w+","//a[contains(@href,'filebeer.info/')]");
  5151. addObsoleteHost("baberepublic\\.com\/link\/\\w+","//a[contains(@href,'baberepublic.com/link/')]");
  5152. addObsoleteHost("xtu\\.me\/\\w+","//a[contains(@href,'xtu.me/')]");
  5153. addObsoleteHost("sharebase\\.de\/files\/\\w+","//a[contains(@href,'sharebase.de/files/')]");
  5154. addObsoleteHost("filerobo\\.com\/\\w+","//a[contains(@href,'filerobo.com/')]");
  5155. addObsoleteHost("filevelocity\\.com\/\\w+","//a[contains(@href,'filevelocity.com/')]");
  5156. addObsoleteHost("filezpro\\.com\/\\w+","//a[contains(@href,'filezpro.com/')]");
  5157. addObsoleteHost("file4sharing\\.com\/\\w+","//a[contains(@href,'file4sharing.com/')]");
  5158. addObsoleteHost("cing\\.be\/\\w+","//a[contains(@href,'cing.be/')]");
  5159. addObsoleteHost("ufile\\.eu\/\\w+","//a[contains(@href,'ufile.eu/')]");
  5160. addObsoleteHost("pigsonic\\.com\/\\w+","//a[contains(@href,'pigsonic.com/')]");
  5161. addObsoleteHost("fileupped\\.com\/\\w+","//a[contains(@href,'fileupped.com/')]");
  5162. addObsoleteHost("sharerun\\.com\/\\w+","//a[contains(@href,'sharerun.com/')]");
  5163. addObsoleteHost("rapidslnare\\.com\/\\w+","//a[contains(@href,'rapidslnare.com/')]");
  5164. addObsoleteHost("monsteruploads\\.eu\/\\w+","//a[contains(@href,'monsteruploads.eu/')]");
  5165. addObsoleteHost("b9bb\\.com\/\\w+","//a[contains(@href,'b9bb.com/')]");
  5166. addObsoleteHost("jamber\\.info\/\\w+","//a[contains(@href,'jamber.info/')]");
  5167. addObsoleteHost("(?:megaftp|MegaFTP)\\.com\/\\w+","//a[contains(@href,'megaftp.com/') or contains(@href,'MegaFTP.com/')]");
  5168. addObsoleteHost("desiupload\\.net\/\\?d=\\w+","//a[contains(@href,'desiupload.net/')]");
  5169. addObsoleteHost("file27\\.com\/\\w+","//a[contains(@href,'file27.com/')]");
  5170. addObsoleteHost("yastorage\\.com\/\\w+","//a[contains(@href,'yastorage.com/')]");
  5171. addObsoleteHost("filehost\\.ws\/\\w+","//a[contains(@href,'filehost.ws/')]");
  5172. addObsoleteHost("copyload\\.com\/\\w+","//a[contains(@href,'copyload.com/')]");
  5173. addObsoleteHost("venusfile\\.com\/\\w+","//a[contains(@href,'venusfile.com/')]");
  5174. addObsoleteHost("aieshare\\.com\/\\w+","//a[contains(@href,'aieshare.com/')]");
  5175. addObsoleteHost("fileza\\.net\/\\w+","//a[contains(@href,'fileza.net/')]");
  5176. addObsoleteHost("filerose\\.com\/\\w+","//a[contains(@href,'filerose.com/')]");
  5177. addObsoleteHost("squillion\\.com\/\\w+","//a[contains(@href,'squillion.com/')]");
  5178. addObsoleteHost("fileprohost\\.com\/\\w+","//a[contains(@href,'fileprohost.com/')]");
  5179. addObsoleteHost("bitbonus\\.com\/download\/\\w+","//a[contains(@href,'bitbonus.com/')]");
  5180. addObsoleteHost("warserver\\.cz\/\\w+","//a[contains(@href,'warserver.cz/')]");
  5181. addObsoleteHost("uload\\.to\/\\w+","//a[contains(@href,'uload.to/')]");
  5182. addObsoleteHost("sharedbit\\.net\/\\w+","//a[contains(@href,'sharedbit.net/')]");
  5183. addObsoleteHost("megaload\\.it\/\\w+","//a[contains(@href,'megaload.it/')]");
  5184. addObsoleteHost("filewinds\\.com\/\\w+","//a[contains(@href,'filewinds.com/')]");
  5185. addObsoleteHost("uploadcore\\.com\/\\w+","//a[contains(@href,'uploadcore.com/')]");
  5186. addObsoleteHost("syfiles\\.com\/\\w+","//a[contains(@href,'syfiles.com/')]");
  5187. addObsoleteHost("eyesfile\\.com\/\\w+","//a[contains(@href,'eyesfile.com/')]");
  5188. addObsoleteHost("hotfile\\.com\/\\w+","//a[contains(@href,'hotfile.com/')]");
  5189. addObsoleteHost("superupl\\.com\/\\w+","//a[contains(@href,'superupl.com/')]");
  5190. addObsoleteHost("oteupload\\.com\/\\w+","//a[contains(@href,'oteupload.com/')]");
  5191. addObsoleteHost("henchfile\\.com\/\\w+","//a[contains(@href,'henchfile.com/')]");
  5192. addObsoleteHost("HenchFile\\.com\/\\w+","//a[contains(@href,'HenchFile.com/')]");
  5193. addObsoleteHost("filegag\\.com\/\\w+","//a[contains(@href,'filegag.com/')]");
  5194. addObsoleteHost("filedefend\\.com\/\\w+","//a[contains(@href,'filedefend.com/')]");
  5195. addObsoleteHost("hotfiles\\.ws\/\\w+","//a[contains(@href,'hotfiles.ws/')]");
  5196. addObsoleteHost("share-rapid\\.com\/\\w+","//a[contains(@href,'share-rapid.com/')]");
  5197. //addObsoleteHost("sharerapid\\.cz\/\\w+","//a[contains(@href,'sharerapid.cz/')]");
  5198. addObsoleteHost("rapids\\.cz\/\\w+","//a[contains(@href,'rapids.cz/')]");
  5199. addObsoleteHost("share-credit\\.cz\/\\w+","//a[contains(@href,'share-credit.cz/')]");
  5200. addObsoleteHost("share-central\\.cz\/\\w+","//a[contains(@href,'share-central.cz/')]");
  5201. addObsoleteHost("share-ms\\.cz\/\\w+","//a[contains(@href,'share-ms.cz/')]");
  5202. addObsoleteHost("share-net\\.cz\/\\w+","//a[contains(@href,'share-net.cz/')]");
  5203. addObsoleteHost("srapid\\.cz\/\\w+","//a[contains(@href,'srapid.cz/')]");
  5204. addObsoleteHost("share-rapid\\.cz\/\\w+","//a[contains(@href,'share-rapid.cz/')]");
  5205. addObsoleteHost("wooupload\\.com\/\\w+","//a[contains(@href,'wooupload.com/')]");
  5206. addObsoleteHost("megabitshare\\.com\/\\w+","//a[contains(@href,'megabitshare.com/')]");
  5207. addObsoleteHost("uploking\\.com\/\\w+","//a[contains(@href,'uploking.com/')]");
  5208. addObsoleteHost("esnips\\.com\/\\w+","//a[contains(@href,'esnips.com/')]");
  5209. addObsoleteHost("uplly\\.com\/\\w+","//a[contains(@href,'uplly.com/')]");
  5210. addObsoleteHost("ufox\\.com\/\\w+","//a[contains(@href,'ufox.com/')]");
  5211. addObsoleteHost("clz\\.to\/\\w+","//a[contains(@href,'clz.to/')]");
  5212. addObsoleteHost("cloudzer\\.net\/\\w+","//a[contains(@href,'cloudzer.net/')]");
  5213. addObsoleteHost("cloudzer\\.com\/\\w+","//a[contains(@href,'cloudzer.com/')]");
  5214. addObsoleteHost("extabit\\.com\/\\w+","//a[contains(@href,'extabit.com/')]");
  5215. addObsoleteHost("uploadwaste\\.com\/\\w+","//a[contains(@href,'uploadwaste.com/')]");
  5216. addObsoleteHost("247upload\\.com\/\\w+","//a[contains(@href,'uploadwaste.com/')]");
  5217. addObsoleteHost("2download\\.de\/\\w+","//a[contains(@href,'2download.de/')]");
  5218. addObsoleteHost("4fastfile\\.com\/\\w+","//a[contains(@href,'4fastfile.com/')]");
  5219. addObsoleteHost("asixfiles\\.com\/\\w+","//a[contains(@href,'asixfiles.com/')]");
  5220. addObsoleteHost("berofile\\.com\/\\w+","//a[contains(@href,'berofile.com/')]");
  5221. addObsoleteHost("bigupload\\.com\/\\w+","//a[contains(@href,'bigupload.com/')]");
  5222. addObsoleteHost("cepzo\\.com\/\\w+","//a[contains(@href,'cepzo.com/')]");
  5223. addObsoleteHost("czshare\\.com\/\\w+","//a[contains(@href,'czshare.com/')]");
  5224. addObsoleteHost("clouds\\.to\/\\w+","//a[contains(@href,'clouds.to/')]");
  5225. addObsoleteHost("cobrashare\\.sk\/\\w+","//a[contains(@href,'cobrashare.sk/')]");
  5226. addObsoleteHost("coraldrive\\.net\/\\w+","//a[contains(@href,'coraldrive.net/')]");
  5227. addObsoleteHost("cyberlocker\\.ch\/\\w+","//a[contains(@href,'cyberlocker.ch/')]");
  5228. addObsoleteHost("darkport\\.org\/\\w+","//a[contains(@href,'darkport.org/')]");
  5229. addObsoleteHost("dark-uploads\\.com\/\\w+","//a[contains(@href,'dark-uploads.com/')]");
  5230. addObsoleteHost("davvas\\.com\/\\w+","//a[contains(@href,'davvas.com/')]");
  5231. addObsoleteHost("enigmashare\\.com\/\\w+","//a[contains(@href,'enigmashare.com/')]");
  5232. addObsoleteHost("erofly\\.cz\/\\w+","//a[contains(@href,'erofly.cz/')]");
  5233. addObsoleteHost("fastsonic\\.net\/\\w+","//a[contains(@href,'fastsonic.net/')]");
  5234. addObsoleteHost("filebox\\.com\/\\w+","//a[contains(@href,'filebox.com/')]");
  5235. addObsoleteHost("filecity\\.net\/\\w+","//a[contains(@href,'filecity.net/')]");
  5236. addObsoleteHost("filedap\\.com\/\\w+","//a[contains(@href,'filedap.com/')]");
  5237. addObsoleteHost("filedino\\.com\/\\w+","//a[contains(@href,'filedino.com/')]");
  5238. addObsoleteHost("filedownloads\\.org\/\\w+","//a[contains(@href,'filedownloads.org/')]");
  5239. addObsoleteHost("filefolks\\.com\/\\w+","//a[contains(@href,'filefolks.com/')]");
  5240. addObsoleteHost("fileking\\.co\/\\w+","//a[contains(@href,'fileking.co/')]");
  5241. addObsoleteHost("filemates\\.com\/\\w+","//a[contains(@href,'filemates.com/')]");
  5242. addObsoleteHost("files\\.to\/\\w+","//a[contains(@href,'files.to/')]");
  5243. addObsoleteHost("files2k\\.eu\/\\w+","//a[contains(@href,'files2k.eu/')]");
  5244. addObsoleteHost("filesector\\.cc\/\\w+","//a[contains(@href,'filesector.cc/')]");
  5245. addObsoleteHost("filesega\\.com\/\\w+","//a[contains(@href,'filesega.com/')]");
  5246. addObsoleteHost("filesend\\.net\/\\w+","//a[contains(@href,'filesend.net/')]");
  5247. addObsoleteHost("filestay\\.com\/\\w+","//a[contains(@href,'filestay.com/')]");
  5248. addObsoleteHost("filestrum\\.com\/\\w+","//a[contains(@href,'filestrum.com/')]");
  5249. addObsoleteHost("fileuplo\\.de\/\\w+","//a[contains(@href,'fileuplo.de/')]");
  5250. addObsoleteHost("fileupup\\.com\/\\w+","//a[contains(@href,'fileupup.com/')]");
  5251. addObsoleteHost("forunesia\\.com\/\\w+","//a[contains(@href,'forunesia.com/')]");
  5252. addObsoleteHost("freeuploads\\.fr\/\\w+","//a[contains(@href,'freeuploads.fr/')]");
  5253. addObsoleteHost("uploa\\.dk\/\\w+","//a[contains(@href,'uploa.dk/')]");
  5254. addObsoleteHost("getthebit\\.com\/\\w+","//a[contains(@href,'getthebit.com/')]");
  5255. addObsoleteHost("getzilla\\.net\/\\w+","//a[contains(@href,'getzilla.net/')]");
  5256. addObsoleteHost("goldfile\\.eu\/\\w+","//a[contains(@href,'goldfile.eu/')]");
  5257. addObsoleteHost("good\\.com\/\\w+","//a[contains(@href,'good.com/')]");
  5258. addObsoleteHost("grupload\\.com\/\\w+","//a[contains(@href,'grupload.com/')]");
  5259. addObsoleteHost("hellfile\\.com\/\\w+","//a[contains(@href,'hellfile.com/')]");
  5260. addObsoleteHost("hipfile\\.com\/\\w+","//a[contains(@href,'hipfile.com/')]");
  5261. addObsoleteHost("hitfile\\.com\/\\w+","//a[contains(@href,'hitfile.com/')]");
  5262. addObsoleteHost("hulkfile\\.eu\/\\w+","//a[contains(@href,'hulkfile.eu/')]");
  5263. addObsoleteHost("i-filez\\.com\/\\w+","//a[contains(@href,'i-filez.com/')]");
  5264. addObsoleteHost("ifile\\.ws\/\\w+","//a[contains(@href,'ifile.ws/')]");
  5265. addObsoleteHost("kupload\\.org\/\\w+","//a[contains(@href,'kupload.org/')]");
  5266. addObsoleteHost("duckfile\\.net\/\\w+","//a[contains(@href,'duckfile.net/')]");
  5267. addObsoleteHost("packupload\\.com\/\\w+","//a[contains(@href,'packupload.com/')]");
  5268. addObsoleteHost("terafile\\.com\/\\w+","//a[contains(@href,'terafile.com/')]");
  5269. addObsoleteHost("terafile\\.co\/\\w+","//a[contains(@href,'terafile.co/')]");
  5270. addObsoleteHost("fileom\\.com\/\\w+","//a[contains(@href,'fileom.com/')]");
  5271. addObsoleteHost("luckyshare\\.net\/\\w+","//a[contains(@href,'luckyshare.net/')]");
  5272. addObsoleteHost("lemuploads\\.com\/\\w+","//a[contains(@href,'lemuploads.com/')]");
  5273. addObsoleteHost("limelinx\\.com\/\\w+","//a[contains(@href,'limelinx.com/')]");
  5274. addObsoleteHost("maxshare\\.pl\/\\w+","//a[contains(@href,'maxshare.pl/')]");
  5275. addObsoleteHost("megarelease\\.org\/\\w+","//a[contains(@href,'megarelease.org/')]");
  5276. addObsoleteHost("megashare\\.com\/\\w+","//a[contains(@href,'megashare.com/')]");
  5277. addObsoleteHost("minus\\.com\/\\w+","//a[contains(@href,'minus.com/')]");
  5278. addObsoleteHost("mlfat4arab\\.com\/\\w+","//a[contains(@href,'mlfat4arab.com/')]");
  5279. addObsoleteHost("multishare\\.cz\/\\w+","//a[contains(@href,'multishare.cz/')]");
  5280. addObsoleteHost("nirafile\\.com\/\\w+","//a[contains(@href,'nirafile.com/')]");
  5281. addObsoleteHost("ok2upload\\.com\/\\w+","//a[contains(@href,'ok2upload.com/')]");
  5282. addObsoleteHost("peejeshare\\.com\/\\w+","//a[contains(@href,'peejeshare.com/')]");
  5283. addObsoleteHost("premiuns\\.org\/\\w+","//a[contains(@href,'premiuns.org/')]");
  5284. addObsoleteHost("przeklej\\.net\/\\w+","//a[contains(@href,'przeklej.net/')]");
  5285. addObsoleteHost("qkup\\.net\/\\w+","//a[contains(@href,'qkup.net/')]");
  5286. addObsoleteHost("rapidupload\\.sk\/\\w+","//a[contains(@href,'rapidupload.sk/')]");
  5287. addObsoleteHost("rockdizfile\\.com\/\\w+","//a[contains(@href,'rockdizfile.com/')]");
  5288. addObsoleteHost("rocketfile\\.net\/\\w+","//a[contains(@href,'rocketfile.net/')]");
  5289. addObsoleteHost("share-now\\.net\/\\w+","//a[contains(@href,'share-now.net/')]");
  5290. addObsoleteHost("share76\\.com\/\\w+","//a[contains(@href,'share76.com/')]");
  5291. addObsoleteHost("sharebees\\.com\/\\w+","//a[contains(@href,'sharebees.com/')]");
  5292. addObsoleteHost("sharefiles\\.co\/\\w+","//a[contains(@href,'sharefiles.co/')]");
  5293. addObsoleteHost("slingfile\\.com\/\\w+","//a[contains(@href,'slingfile.com/')]");
  5294. addObsoleteHost("sms4file\\.com\/\\w+","//a[contains(@href,'sms4file.com/')]");
  5295. addObsoleteHost("space4file\\.com\/\\w+","//a[contains(@href,'space4file.com/')]");
  5296. addObsoleteHost("tigershare\\.net\/\\w+","//a[contains(@href,'tigershare.net/')]");
  5297. addObsoleteHost("toucansharing\\.com\/\\w+","//a[contains(@href,'toucansharing.com/')]");
  5298. addObsoleteHost("ubuntuone\\.com\/\\w+","//a[contains(@href,'ubuntuone.com/')]");
  5299. addObsoleteHost("unextfiles\\.com\/\\w+","//a[contains(@href,'unextfiles.com/')]");
  5300. addObsoleteHost("upaj\\.pl\/\\w+","//a[contains(@href,'upaj.pl/')]");
  5301. addObsoleteHost("upfile\\.biz\/\\w+","//a[contains(@href,'upfile.biz/')]");
  5302. addObsoleteHost("uploadbin\\.net\/\\w+","//a[contains(@href,'uploadbin.net/')]");
  5303. addObsoleteHost("uploadic\\.com\/\\w+","//a[contains(@href,'uploadic.com/')]");
  5304. addObsoleteHost("uploadinc\\.com\/\\w+","//a[contains(@href,'uploadinc.com/')]");
  5305. addObsoleteHost("uploading4u\\.eu\/\\w+","//a[contains(@href,'uploading4u.eu/')]");
  5306. addObsoleteHost("uploadjet\\.net\/\\w+","//a[contains(@href,'uploadjet.net/')]");
  5307. addObsoleteHost("uploadorb\\.com\/\\w+","//a[contains(@href,'uploadorb.com/')]");
  5308. addObsoleteHost("upthe\\.net\/\\w+","//a[contains(@href,'upthe.net/')]");
  5309. addObsoleteHost("uptorch\\.com\/\\w+","//a[contains(@href,'uptorch.com/')]");
  5310. addObsoleteHost("vidbox\\.yt\/\\w+","//a[contains(@href,'vidbox.yt/')]");
  5311. addObsoleteHost("videozer\\.com\/\\w+","//a[contains(@href,'videozer.com/')]");
  5312. addObsoleteHost("vreer\\.com\/\\w+","//a[contains(@href,'vreer.com/')]");
  5313. addObsoleteHost("wallobit\\.com\/\\w+","//a[contains(@href,'wallobit.com/')]");
  5314. addObsoleteHost("zooupload\\.com\/\\w+","//a[contains(@href,'zooupload.com/')]");
  5315. addObsoleteHost("xerver\\.co\/\\w+","//a[contains(@href,'xerver.co/')]");
  5316. addObsoleteHost("privatefiles\\.com\/\\w+","//a[contains(@href,'privatefiles.com/')]");
  5317. addObsoleteHost("bitshare\\.com\/\\w+","//a[contains(@href,'bitshare.com/')]");
  5318. addObsoleteHost("asfile\\.com\/\\w+","//a[contains(@href,'asfile.com/')]");
  5319. addObsoleteHost("billionuploads\\.com\/\\w+","//a[contains(@href,'billionuploads.com/')]");
  5320. addObsoleteHost("\\*{7,100}\/[\\w\\d]+","//a[contains(@href,'*******/')]");
  5321. addObsoleteHost("filesaur\\.com\/\\w+","//a[contains(@href,'filesaur.com/')]");
  5322. addObsoleteHost("rapidshare\\.com\/\\w+","//a[contains(@href,'rapidshare.com/')]");
  5323. addObsoleteHost("rapidshare\\.ru\/\\w+","//a[contains(@href,'rapidshare.ru/')]");
  5324. addObsoleteHost("filesfrog\\.net\/\\w+","//a[contains(@href,'filesfrog.net/')]");
  5325. addObsoleteHost("4savefile\\.com\/\\w+","//a[contains(@href,'4savefile.com/')]");
  5326. addObsoleteHost("bayfiles\\.com\/\\w+","//a[contains(@href,'bayfiles.com/')]");
  5327. addObsoleteHost("bayfiles\\.net\/\\w+","//a[contains(@href,'bayfiles.net/')]");
  5328. addObsoleteHost("dodane\\.pl\/\\w+","//a[contains(@href,'dodane.pl/')]");
  5329. addObsoleteHost("dotsemper\\.com\/\\w+","//a[contains(@href,'dotsemper.com/')]");
  5330. addObsoleteHost("egofiles\\.com\/\\w+","//a[contains(@href,'egofiles.com/')]");
  5331. addObsoleteHost("epicshare\\.net\/\\w+","//a[contains(@href,'epicshare.net/')]");
  5332. addObsoleteHost("fiberupload\\.net\/\\w+","//a[contains(@href,'fiberupload.net/')]");
  5333. addObsoleteHost("filemonkey\\.in\/\\w+","//a[contains(@href,'filemonkey.in/')]");
  5334. addObsoleteHost("filemonster\\.net\/\\w+","//a[contains(@href,'filemonster.net/')]");
  5335. addObsoleteHost("filepom\\.com\/\\w+","//a[contains(@href,'filepom.com/')]");
  5336. addObsoleteHost("filesbb\\.com\/\\w+","//a[contains(@href,'filesbb.com/')]");
  5337. addObsoleteHost("fileshareup\\.com\/\\w+","//a[contains(@href,'fileshareup.com/')]");
  5338. addObsoleteHost("filevice\\.com\/\\w+","//a[contains(@href,'filevice.com/')]");
  5339. addObsoleteHost("gigaup\\.fr\/\\w+","//a[contains(@href,'gigaup.fr/')]");
  5340. addObsoleteHost("inafile\\.com\/\\w+","//a[contains(@href,'inafile.com/')]");
  5341. addObsoleteHost("isavelink\\.com\/\\w+","//a[contains(@href,'isavelink.com/')]");
  5342. addObsoleteHost("loombo\\.com\/\\w+","//a[contains(@href,'loombo.com/')]");
  5343. addObsoleteHost("megafiles\\.se\/\\w+","//a[contains(@href,'megafiles.se/')]");
  5344. addObsoleteHost("migupload\\.com\/\\w+","//a[contains(@href,'migupload.com/')]");
  5345. addObsoleteHost("mydisc\\.net\/\\w+","//a[contains(@href,'mydisc.net/')]");
  5346. addObsoleteHost("nitrobits\\.com\/\\w+","//a[contains(@href,'nitrobits.com/')]");
  5347. addObsoleteHost("potload\\.com\/\\w+","//a[contains(@href,'potload.com/')]");
  5348. addObsoleteHost("redload\\.net\/\\w+","//a[contains(@href,'redload.net/')]");
  5349. addObsoleteHost("shareprofi\\.com\/\\w+","//a[contains(@href,'shareprofi.com/')]");
  5350. addObsoleteHost("sharesuper\\.info\/\\w+","//a[contains(@href,'sharesuper.info/')]");
  5351. addObsoleteHost("sinhro\\.net\/\\w+","//a[contains(@href,'sinhro.net/')]");
  5352. addObsoleteHost("speedfile\\.cz\/\\w+","//a[contains(@href,'speedfile.cz/')]");
  5353. addObsoleteHost("speedshare\\.org\/\\w+","//a[contains(@href,'speedshare.org/')]");
  5354. addObsoleteHost("storage.novoro\\.net\/\\w+","//a[contains(@href,'storage.novoro.net/')]");
  5355. addObsoleteHost("swankshare\\.com\/\\w+","//a[contains(@href,'swankshare.com/')]");
  5356. addObsoleteHost("swatupload\\.com\/\\w+","//a[contains(@href,'swatupload.com/')]");
  5357. addObsoleteHost("upafile\\.com\/\\w+","//a[contains(@href,'upafile.com/')]");
  5358. addObsoleteHost("uploadmachine\\.com\/\\w+","//a[contains(@href,'uploadmachine.com/')]");
  5359. addObsoleteHost("uploadsat\\.com\/\\w+","//a[contains(@href,'uploadsat.com/')]");
  5360. addObsoleteHost("upshared\\.com\/\\w+","//a[contains(@href,'upshared.com/')]");
  5361. addObsoleteHost("usefile\\.com\/\\w+","//a[contains(@href,'usefile.com/')]");
  5362. addObsoleteHost("yourfiles\\.to\/\\w+","//a[contains(@href,'yourfiles.to/')]");
  5363. addObsoleteHost("zomgupload\\.com\/\\w+","//a[contains(@href,'zomgupload.com/')]");
  5364. addObsoleteHost("~[\\w\\s~]*","//a[contains(@href,'//~') or contains(@href,'//www.~')]");
  5365. addObsoleteHost("filemup\\.com\/\\w+","//a[contains(@href,'filemup.com/')]");
  5366. addObsoleteHost("tuxfile\\.com\/\\w+","//a[contains(@href,'tuxfile.com/')]");
  5367. // obsolete start
  5368. }
  5369. //obsolete file hosts init end
  5370.  
  5371. function addFileHost(linkRegex, isAliveRegex, isDeadRegex, isUnavaRegex, xpathEx, tryLoop, ispremRegex)
  5372. {
  5373. var host = new Array(7);
  5374. host[0] = linkRegex;
  5375. host[1] = isAliveRegex;
  5376. host[2] = isDeadRegex;
  5377. host[3] = isUnavaRegex;
  5378. host[6] = ispremRegex;
  5379. host[4] = xpathEx;
  5380. tryLoop ? host[5] = true : host[5] = false;
  5381. http_file_hosts.push(host);
  5382. }
  5383. if (GM_getValue("Check_megafileupload_dot_com_links", false))
  5384. {
  5385. addFileHost(
  5386. "megafileupload\.com\/..\/file\/",
  5387. 'downloadbtn',
  5388. 'is not found',
  5389. 'optional--',
  5390. "//a[contains(@href,'megafileupload.com')]");
  5391. }
  5392. if (GM_getValue("Check_demo_dot_ovh_dot_eu_links", false))
  5393. {
  5394. addFileHost(
  5395. "demo\\.ovh\\.eu\/\\w+\/\\w+",
  5396. 'download\\.gif"',
  5397. 'p_point">',
  5398. 'optional--',
  5399. "//a[contains(@href,'demo.ovh.eu')]");
  5400. }
  5401. if (GM_getValue("Check_safelinking_dot_net_links", false))
  5402. {
  5403. addFileHost(
  5404. "safelinking\\.net\/p\/\\w+",
  5405. 'color:green;"',
  5406. 'color:(?:red|orange);"',
  5407. 'color:(?:grey|brown);"',
  5408. "//a[contains(@href,'safelinking.net/p/')]",
  5409. true);
  5410. }
  5411. if (GM_getValue("Check_ultramegabit_dot_com_links", false))
  5412. {
  5413. addFileHost(
  5414. "ultramegabit\\.com\/file\/details\/[\\w+-]",
  5415. 'name="recaptcha_response',
  5416. '="/folder/add"|>File (?:not found|restricted|has been deleted)|<title>ULTRAMEGABIT</title>',
  5417. 'btn-large btn-danger">|Account limitation notice|502 Bad Gateway',
  5418. "//a[contains(@href,'ultramegabit.com/file')]",
  5419. true);
  5420. }
  5421. if (GM_getValue("Check_fastshare_dot_cz_links", false))
  5422. {
  5423. addFileHost(
  5424. "fastshare\\.cz\/\\d+\/\\w*",
  5425. 'dwntable">',
  5426. 'nebyla nalezena|nebola nájdená|nie została odnaleziona|color:red;font-weight:bold;border\\-style:dashed|<i class="fa fa-copyright"></i>',
  5427. 'optional--',
  5428. "//a[contains(@href,'fastshare.cz')]");
  5429. }
  5430. if (GM_getValue("Check_fastshare_dot_org_links", false))
  5431. {
  5432. addFileHost(
  5433. "[fF]ast[sS]hare\\.org\/download",
  5434. 'Download ">',
  5435. 'Diese Datei wurde wegen|wurde kein Dateiname',
  5436. 'optional--',
  5437. "//a[contains(@href,'fastshare.org/download') or contains(@href,'FastShare.org/download')]");
  5438. }
  5439. if (GM_getValue("Check_partage_dash_facile_dot_com_links", false))
  5440. {
  5441. addFileHost(
  5442. "partage-facile\.com\/\\w+",
  5443. 'class="title"><strong>|colspan="2"',
  5444. 'Page introuvable|class="alert-message',
  5445. 'optional--',
  5446. "//a[contains(@href,'partage-facile.com')]");
  5447. }
  5448. if (GM_getValue("Check_rapidgator_dot_net_links", false))
  5449. {
  5450. addFileHost(
  5451. "rapidgator\\.net\/file\/\\w+",
  5452. '/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',
  5453. 'Error 404|File not found|Error 500|Файл не найден|File not found|Select your plan',
  5454. 'optional--',
  5455. "//a[contains(@href,'rapidgator.net/file')]",
  5456. true
  5457. );
  5458. }
  5459. if (GM_getValue("Check_relink_dot_us_links", false))
  5460. {
  5461. addFileHost(
  5462. "relink\\.us\/(?:f\/\\w+|go\\.php\\?id=\\d+|view\\.php\\?id=\\d+)",
  5463. 'online_detail\\.png" alt="Status',
  5464. '(?:offline|partially)_detail\\.png" alt="Status|File deleted',
  5465. 'unknown_detail\\.png" alt="Status',
  5466. "//a[contains(@href,'relink.us/')]"
  5467. );
  5468. }
  5469. if (GM_getValue("Check_uploadstube_dot_de_links", false))
  5470. {
  5471. addFileHost(
  5472. "uploadstube\\.de\/download\\.php\\?file=\\d+",
  5473. 'div id="dl"',
  5474. 'Sie haben den Link falsch',
  5475. 'optional--',
  5476. "//a[contains(@href,'uploadstube.de/download.php?file=')]"
  5477. );
  5478. }
  5479. if (GM_getValue("Check_flyfiles_dot_net_links", false))
  5480. {
  5481. addFileHost(
  5482. "flyfiles\\.net\/\\w+",
  5483. 'download_button"|"Download file"',
  5484. 'File not found!|Файл не найден',
  5485. 'optional--',
  5486. "//a[contains(@href,'flyfiles.net/')]"
  5487. );
  5488. }
  5489. if (GM_getValue("Check_wikiupload_dot_com_links", false))
  5490. {
  5491. addFileHost(
  5492. "wikiupload\\.com\/\\w+",
  5493. 'download-button">',
  5494. 'Sorry, File not found',
  5495. 'optional--',
  5496. "//a[contains(@href,'wikiupload.com/')]"
  5497. );
  5498. }
  5499. if (GM_getValue("Check_hostuje_dot_net_links", false))
  5500. {
  5501. addFileHost(
  5502. "hostuje\\.net\/file\\.php\\?id=\\w+",
  5503. 'file\\.php">|Pobierz Plik',
  5504. 'Podany plik nie zosta',
  5505. 'optional--',
  5506. "//a[contains(@href,'hostuje.net/file')]"
  5507. );
  5508. }
  5509. if (GM_getValue("Check_gettyfile_dot_ru_links", false))
  5510. {
  5511. addFileHost(
  5512. "gettyfile\\.ru\/\\d+",
  5513. 'download\\.gif border',
  5514. '<center><font size="3">',
  5515. 'optional--',
  5516. "//a[contains(@href,'gettyfile.ru/')]"
  5517. );
  5518. }
  5519. if (GM_getValue("Check_tufiles_dot_ru_links", false))
  5520. {
  5521. addFileHost(
  5522. "(?:tufiles|turbob1t|failoobmenik|filesmail|firebit|dlbit|files\\.china\\-gsm|3aka4aem|file\\.piratski|mnogofiles|links-free|turbo-bit|turbosfiles)\\.\\w+\/\\w+",
  5523. 'download\\-file">',
  5524. 'col-1">\\s*<h1>',
  5525. 'optional--',
  5526. "//a[contains(@href,'tufiles.ru/') or contains(@href,'turbob1t.ru/') or contains(@href,'filesmail.ru/') or contains(@href,'failoobmenik.ru/')"+
  5527. " or contains(@href,'firebit.in/') or contains(@href,'dlbit.net/') or contains(@href,'files.china-gsm.ru/') or contains(@href,'3aka4aem.ru/')"+
  5528. " or contains(@href,'file.piratski.ru/') or contains(@href,'mnogofiles.com/') or contains(@href,'links-free.ru/')"+
  5529. " or contains(@href,'turbo-bit.ru/') or contains(@href,'turbosfiles.ru/')]"
  5530. );
  5531. }
  5532. if (GM_getValue("Check_fileshare_dot_in_dot_ua_links", false))
  5533. {
  5534. addFileHost(
  5535. "fileshare\\.in\\.ua\/\\w+",
  5536. '"file_name ',
  5537. 'df_content">',
  5538. 'optional--',
  5539. "//a[contains(@href,'fileshare.in.ua')]"
  5540. );
  5541. }
  5542. if (GM_getValue("Check_data_dot_hu_links", false))
  5543. {
  5544. addFileHost(
  5545. "data\\.hu\/get\/\\d+\/",
  5546. 'download_box_button',
  5547. 'missing\\.php',
  5548. 'optional--',
  5549. "//a[contains(@href,'data.hu/get')]",
  5550. true
  5551. );
  5552. }
  5553. if (GM_getValue("Check_filesmelt_dot_com_links", false))
  5554. {
  5555. addFileHost(
  5556. "filesmelt\\.com\/dl\/\\w+",
  5557. '(Your download is ready|Download File)',
  5558. 'Sorry, but your',
  5559. 'optional--',
  5560. "//a[contains(@href,'filesmelt.com/dl')]"
  5561. );
  5562. }
  5563. if (GM_getValue("Check_indowebster_dot_com_links", false))
  5564. {
  5565. addFileHost(
  5566. "(?:files\\.)?indowebster\\.com\/download\/\\w+\/",
  5567. 'premiumBtn"',
  5568. 'errorMessage"',
  5569. 'optional--',
  5570. "//a[contains(@href,'indowebster.com/download')]"
  5571. );
  5572. }
  5573. if (GM_getValue("Check_superload_dot_cz_links", false))
  5574. {
  5575. addFileHost(
  5576. "superload\\.cz\/dl\/\\w+",
  5577. 'icon-download">',
  5578. 'soubor nebyl nalezen',
  5579. 'optional--',
  5580. "//a[contains(@href,'superload.cz/dl')]"
  5581. );
  5582. }
  5583. if (GM_getValue("Check_hulkfile_dot_eu_links", false))
  5584. {
  5585. addFileHost(
  5586. "(?:w\\.hulkfile\\.com|hulkfile\\.eu)\/\\w+",
  5587. 'op" value="download',
  5588. 'class="err">|width:500px;text-align:left;">',
  5589. 'optional--',
  5590. "//a[contains(@href,'hulkfile.')]"
  5591. );
  5592. }
  5593. if (GM_getValue("Check_easybytez_dot_com_links", false))
  5594. {
  5595. addFileHost(
  5596. "easybytez\\.com\/\\w+",
  5597. 'op" value="download',
  5598. 'stop_error\\.gif',
  5599. 'optional--',
  5600. "//a[contains(@href,'easybytez.com/')]"
  5601. );
  5602. }
  5603. if (GM_getValue("Check_filestore_dot_com_dot_ua_links", false))
  5604. {
  5605. addFileHost(
  5606. "filestore\\.com\\.ua\/\\?d=\\w+",
  5607. 'tdrow1>',
  5608. 'class=warn',
  5609. 'optional--',
  5610. "//a[contains(@href,'filestore.com.ua/?d=')]"
  5611. );
  5612. }
  5613. if (GM_getValue("Check_netkups_dot_com_links", false))
  5614. {
  5615. addFileHost(
  5616. "netkups\\.com\/\\?d=\\w+",
  5617. 'submit">Continue',
  5618. 'page">File not found|deleted due to inactivity',
  5619. 'optional--',
  5620. "//a[contains(@href,'netkups.com/?d=')]"
  5621. );
  5622. }
  5623. if (GM_getValue("Check_openfile_dot_ru_links", false))
  5624. {
  5625. addFileHost(
  5626. "openfile\\.ru\/(?:video\/|)\\d+",
  5627. 'videobox_left">',
  5628. 'blog_title">|not found on this server',
  5629. 'optional--',
  5630. "//a[contains(@href,'openfile.ru/')]"
  5631. );
  5632. }
  5633. if (GM_getValue("Check_extmatrix_dot_com_links", false))
  5634. {
  5635. addFileHost(
  5636. "extmatrix\\.com\/files\/\\w+",
  5637. 'div class="success"',
  5638. 'div class="error"',
  5639. 'optional--',
  5640. "//a[contains(@href,'extmatrix.com/files')]"
  5641. );
  5642. }
  5643. if (GM_getValue("Check_sendfiles_dot_nl_links", false))
  5644. {
  5645. addFileHost(
  5646. "sendfiles\\.nl\/download.aspx\\?ID=\\w+",
  5647. 'content_lnkDownload',
  5648. 'error\\.aspx\\?',
  5649. 'optional--',
  5650. "//a[contains(@href,'sendfiles.nl/download.aspx')]"
  5651. );
  5652. }
  5653. if (GM_getValue("Check_sockshare_dot_com_links", false))
  5654. {
  5655. addFileHost(
  5656. "sockshare\\.com\/file\/\\w+",
  5657. 'choose_speed">',
  5658. 'message t_0\'>',
  5659. 'optional--',
  5660. "//a[contains(@href,'sockshare.com/file')]"
  5661. );
  5662. }
  5663. if (GM_getValue("Check_yourfilestore_dot_com_links", false))
  5664. {
  5665. addFileHost(
  5666. "yourfilestore\\.com\/download\/\\d+\/",
  5667. 'download_data">',
  5668. 'may have been deleted|<h1>Sorry!<\/h1>',
  5669. 'optional--',
  5670. "//a[contains(@href,'yourfilestore.com/download')]"
  5671. );
  5672. }
  5673. if (GM_getValue("Check_nekaka_dot_com_links", false))
  5674. {
  5675. addFileHost(
  5676. "nekaka\\.com\/d\/[\\w-]+",
  5677. 'downloadForm">',
  5678. 'invalid file link',
  5679. 'optional--',
  5680. "//a[contains(@href,'nekaka.com/d')]"
  5681. );
  5682. }
  5683. if (GM_getValue("Check_filebig_dot_net_links", false))
  5684. {
  5685. addFileHost(
  5686. "filebig\\.net\/files\/\\w+",
  5687. 'downloadFile">',
  5688. '<p>File not found<\/p>',
  5689. 'optional--',
  5690. "//a[contains(@href,'filebig.net/files')]"
  5691. );
  5692. }
  5693. if (GM_getValue("Check_gamefront_dot_com_links", false))
  5694. {
  5695. addFileHost(
  5696. "files\\.filefront\\.com\/\/;\\d+;;",
  5697. 'downloadLink">',
  5698. 'File not found, you',
  5699. 'optional--',
  5700. "//a[contains(@href,'files.filefront.com')]"
  5701. );
  5702.  
  5703. addFileHost(
  5704. "gamefront\\.com\/files\/\\d+",
  5705. 'downloadLink">',
  5706. 'File not found, you',
  5707. 'optional--',
  5708. "//a[contains(@href,'gamefront.com/files')]"
  5709. );
  5710. }
  5711. if (GM_getValue("Check_hyperfileshare_dot_com_links", false))
  5712. {
  5713. addFileHost(
  5714. "(?:download\\.|)hyperfileshare\\.com\/(?:download\\.php\\?code=|d\/)\\w+",
  5715. 'dnlLnk"',
  5716. 'already been deleted',
  5717. 'optional--',
  5718. "//a[contains(@href,'hyperfileshare.com/download') or contains(@href,'hyperfileshare.com/d')]"
  5719. );
  5720. }
  5721. if (GM_getValue("Check_hellupload_dot_com_links", false))
  5722. {
  5723. addFileHost(
  5724. "hellupload\\.com\/\\w+",
  5725. '<h3>Download File<br',
  5726. 'id="podstrona">|AVOID_IE_BUG',
  5727. 'optional--',
  5728. "//a[contains(@href,'hellupload.com/')]"
  5729. );
  5730. }
  5731. if (GM_getValue("Check_free_dash_uploading_dot_com_links", false))
  5732. {
  5733. addFileHost(
  5734. "free\\-uploading\\.com\/\\w+",
  5735. 'op" value="download',
  5736. 'class="err">|width:500px;text-align:left;">',
  5737. 'optional--',
  5738. "//a[contains(@href,'free-uploading.com/')]"
  5739. );
  5740. }
  5741. if (GM_getValue("Check_fileape_dot_com_links", false))
  5742. {
  5743. addFileHost(
  5744. "fileape\\.com\/download\\-",
  5745. 'button_dl\\.png',
  5746. 'does not exist\\.',
  5747. 'optional--',
  5748. "//a[contains(@href,'fileape.com/')]"
  5749. );
  5750. }
  5751. if (GM_getValue("Check_uppit_dot_com_links", false))
  5752. {
  5753. addFileHost(
  5754. "(?:uppit\\.com|up\\.ht)\/\\w+",
  5755. 'op" value="download',
  5756. 'class="err">|style="width:500px;text-align:left;"|fish-404\\.png"',
  5757. 'optional--',
  5758. "//a[contains(@href,'up.ht/') or contains(@href,'uppit.com/')]",
  5759. true
  5760. );
  5761. }
  5762. if (GM_getValue("Check_nosupload_dot_com_links", false))
  5763. {
  5764. addFileHost(
  5765. "nosupload\\.com\/(?:\\?d=)?\\w+",
  5766. 'op" value="download',
  5767. '>File Not Found<',
  5768. 'optional--',
  5769. "//a[contains(@href,'nosupload.com')]",
  5770. true
  5771. );
  5772. }
  5773. if (GM_getValue("Check_filesin_dot_com_links", false))
  5774. {
  5775. addFileHost(
  5776. "filesin\\.com\/\\w+\/download\\.html",
  5777. 'download_area">',
  5778. 'error_note">',
  5779. 'optional--',
  5780. "//a[contains(@href,'filesin.com/')]",
  5781. true
  5782. );
  5783. }
  5784. if (GM_getValue("Check_nowdownload_dot_eu_links", false))
  5785. {
  5786. addFileHost(
  5787. "nowdownload\\.eu\/dl\/\\w+",
  5788. 'alert-success"',
  5789. 'This file does not exist!',
  5790. 'The file is being transfered',
  5791. "//a[contains(@href,'nowdownload.eu/dl')]"
  5792. );
  5793. }
  5794. if (GM_getValue("Check_axifile_dot_com_links", false))
  5795. {
  5796. addFileHost(
  5797. "axifile\\.com(?:\/\w(2))?\/\\??\\w+",
  5798. 'Dbutton_big"',
  5799. 'download\\-error\\.php',
  5800. 'optional--',
  5801. "//a[contains(@href,'axifile.com/')]"
  5802. );
  5803. }
  5804. if (GM_getValue("Check_hulkshare_dot_com_links", false))
  5805. {
  5806. addFileHost(
  5807. "hulkshare\.com\/\\w+",
  5808. 'download\.sam\.png|This is a private file|id="filename',
  5809. 'File does not exist|fingerprint protected copyright',
  5810. 'optional--',
  5811. "//a[contains(@href,'hulkshare.com')]"
  5812. );
  5813. }
  5814. if (GM_getValue("Check_turbobit_dot_net_links", false)) //folders
  5815. {
  5816. addFileHost(
  5817. "turbobit\\.(?:net|pl)\/download\/folder\/\\d+",
  5818. 'col-1">\\s*<s',
  5819. 'col-1">\\s*<h',
  5820. 'optional--',
  5821. "//a[contains(@href,'turbobit.') and contains(@href,'download/folder')]"
  5822. );
  5823. }
  5824. if (GM_getValue("Check_hitfile_dot_net_links", false)) //folders
  5825. {
  5826. addFileHost(
  5827. "hitfile\\.net\/download\/folder\/\\d+",
  5828. 'content">\\s*<s',
  5829. 'content">\\s*<h',
  5830. 'optional--',
  5831. "//a[contains(@href,'hitfile.net/download/folder')]"
  5832. );
  5833. }
  5834. if (GM_getValue("Check_netload_dot_in_links", false)) //folders
  5835. {
  5836. addFileHost(
  5837. "netload\\.in\/folder\\.php\\?folder_id=\\w+",
  5838. 'images\/online\\.gif',
  5839. 'InPage_Error"',
  5840. 'optional--',
  5841. "//a[contains(@href,'netload.in/folder.php')]"
  5842. );
  5843. }
  5844. if (GM_getValue("Check_movshare_dot_net_links", false))
  5845. {
  5846. addFileHost(
  5847. "movshare\\.net\\/video\\/\\w+",
  5848. 'optional--"',
  5849. 'no longer exists',
  5850. 'optional--',
  5851. "//a[contains(@href,'movshare.net/video')]"
  5852. );
  5853. }
  5854. if (GM_getValue("Check_plunder_dot_com_links", false))
  5855. {
  5856. addFileHost(
  5857. "plunder\.com\/\\w+",
  5858. 'x\/download\\.gif',
  5859. '404 - File or directory not found.',
  5860. 'optional--',
  5861. "//a[contains(@href,'plunder.com')]"
  5862. );
  5863. }
  5864. if (GM_getValue("Check_mafiastorage_dot_com_links", false))
  5865. {
  5866. addFileHost(
  5867. "mafiastorage\\.com\/\\w+",
  5868. 'op" value="download',
  5869. 'class="err">|style="width:500px;text-align:left;"',
  5870. 'optional--',
  5871. "//a[contains(@href,'mafiastorage.com/')]"
  5872. );
  5873. }
  5874. if (GM_getValue("Check_uploadspace_dot_pl_links", false))
  5875. {
  5876. addFileHost(
  5877. "uploadspace\.pl\/plik\\w+",
  5878. 'Downloading .+? \\|',
  5879. 'Downloading a file',
  5880. 'optional--',
  5881. "//a[contains(@href,'uploadspace.pl/plik')]"
  5882. );
  5883. }
  5884. if (GM_getValue("Check_uploadingit_dot_com_links", false))
  5885. {
  5886. addFileHost(
  5887. "uploadingit\\.com\/file\/\\w+",
  5888. 'downloadTitle">',
  5889. 'deleteContent">',
  5890. 'optional--',
  5891. "//a[contains(@href,'uploadingit.com/file')]"
  5892. );
  5893. }
  5894. if (GM_getValue("Check_rghost_dot_net_links", false))
  5895. {
  5896. addFileHost(
  5897. "rghost\.(?:net|ru)\/(?:|private\/)\\d+",
  5898. 'download_link|btn large download"',
  5899. 'file is restricted|File is deleted|503 Service Unavailable',
  5900. 'File was deleted',
  5901. "//a[contains(@href,'rghost.')]"
  5902. );
  5903. }
  5904. if (GM_getValue("Check_xdisk_dot_cz_links", false))
  5905. {
  5906. addFileHost(
  5907. "xdisk\\.cz\/(?:..\/)?download\\.php\\?id=\\w+",
  5908. '">Staženo:\\s*<\/span>',
  5909. 'Soubor, který hledáte nenalezen',
  5910. 'optional--',
  5911. "//a[contains(@href,'xdisk.cz/')]"
  5912. );
  5913. }
  5914. if (GM_getValue("Check_expressleech_dot_com_links", false))
  5915. {
  5916. addFileHost(
  5917. "expressleech\.com\/\\w+",
  5918. 'src="/img/Download.gif"|var _gaq =',
  5919. 'var rr =|403 Forbidden',
  5920. 'optional--',
  5921. "//a[contains(@href,'expressleech.com')]");
  5922. }
  5923. if (GM_getValue("Check_2downloadz_dot_com_links", false))
  5924. {
  5925. addFileHost(
  5926. "2downloadz\.com\/\\w+",
  5927. 'color="#848484|src="images/Download.png"|color:#238DCA',
  5928. 'color="#006DCC|File error',
  5929. 'optional--',
  5930. "//a[contains(@href,'2downloadz.com')]");
  5931. }
  5932. if (GM_getValue("Check_mightyupload_dot_com_links", false))
  5933. {
  5934. addFileHost(
  5935. "mightyupload\.com\/\\w+",
  5936. 'background:#ccc;text-align|CONTENT="Download File"',
  5937. 'style="background:#eee|var rr =|File Not Found',
  5938. 'optional--',
  5939. "//a[contains(@href,'mightyupload.com')]");
  5940. }
  5941. if (GM_getValue("Check_uncapped_dash_downloads_dot_com_links", false))
  5942. {
  5943. addFileHost(
  5944. "uncapped-downloads\.com\/\\w+",
  5945. 'btn_download',
  5946. 'File Not Found',
  5947. 'optional--',
  5948. "//a[contains(@href,'uncapped-downloads.com')]");
  5949. }
  5950. if (GM_getValue("Check_k2s_dot_cc_links", false))
  5951. {
  5952. addFileHost(
  5953. "k2s\.cc\/\\w+",
  5954. 'Click here for slow download with|class="btn" id="yw0"',
  5955. 'Error 404|class="errorSummary">|this file is blocked or deleted|>404 Not Found<|To avoid damaged files|This file is no longer available',
  5956. 'please try later',
  5957. //'optional--',
  5958. "//a[contains(@href,'k2s.cc')]");
  5959. }
  5960. if (GM_getValue("Check_keep2share_dot_cc_links", false))
  5961. {
  5962. addFileHost(
  5963. "keep2share\.cc\/\\w+",
  5964. 'Click here for slow download with|class="btn" id="yw0"',
  5965. 'Error 404|class="errorSummary">|this file is blocked or deleted|>404 Not Found<|To avoid damaged files|This file is no longer available',
  5966. 'please try later',
  5967. //'optional--',
  5968. "//a[contains(@href,'keep2share.cc')]");
  5969. }
  5970. if (GM_getValue("Check_keep2s_dot_cc_links", false))
  5971. {
  5972. addFileHost(
  5973. "keep2s\.cc\/\\w+",
  5974. 'Click here for slow download with|class="btn" id="yw0"',
  5975. 'Error 404|class="errorSummary">|this file is blocked or deleted|>404 Not Found<|To avoid damaged files|This file is no longer available',
  5976. 'please try later',
  5977. //'optional--',
  5978. "//a[contains(@href,'keep2s.cc')]");
  5979. }
  5980. if (GM_getValue("Check_keep2share_dot_com_links", false))
  5981. {
  5982. addFileHost(
  5983. "keep2share\.com\/\\w+",
  5984. 'Click here for slow download with|class="btn" id="yw0"',
  5985. 'Error 404|class="errorSummary">|this file is blocked or deleted|>404 Not Found<|To avoid damaged files|This file is no longer available',
  5986. 'please try later',
  5987. //'optional--',
  5988. "//a[contains(@href,'keep2share.com')]");
  5989. }
  5990. if (GM_getValue("Check_anysend_dot_com_links", false))
  5991. {
  5992. addFileHost(
  5993. "anysend\.com\/\\w+",
  5994. 'var openCalled=false;|content="noindex"',
  5995. '_trackPageview',
  5996. 'optional--',
  5997. "//a[contains(@href,'anysend.com')]");
  5998. }
  5999. if (GM_getValue("Check_datafile_dot_com_links", false))
  6000. {
  6001. addFileHost(
  6002. "datafile\.com\/\\w+",
  6003. 'src="/js/files_download.js"|get-premium-button',
  6004. 'ErrorCode|class="error-msg"|ErrorCode 0: Invalid Link',
  6005. 'You are downloading another file at this moment|You exceeded your free',
  6006. //'optional--',
  6007. "//a[contains(@href,'datafile.com')]");
  6008. }
  6009. if (GM_getValue("Check_upstore_dot_net_links", false))
  6010. {
  6011. addFileHost(
  6012. "upstore\.net\/\\w+",
  6013. 'style="margin-top: 20px">|style="text-align:center; margin: 20px 0 100px;">',
  6014. 'File not found|onload="redirect|class="error">',
  6015. 'optional--',
  6016. "//a[contains(@href,'upstore.net')]");
  6017. }
  6018. if (GM_getValue("Check_upsto_dot_re_links", false))
  6019. {
  6020. addFileHost(
  6021. "upsto\.re\/\\w+",
  6022. 'style="margin-top: 20px">|style="text-align:center; margin: 20px 0 100px;">',
  6023. 'File not found|onload="redirect|class="error">',
  6024. 'optional--',
  6025. "//a[contains(@href,'upsto.re')]");
  6026. }
  6027. if (GM_getValue("Check_speedy_dot_sh_links", false))
  6028. {
  6029. addFileHost(
  6030. "speedy\.sh\/\\w+",
  6031. 'bgcolor=#eeeeee|class="addthis',
  6032. 'File not found|downloadfilenamenotfound>',
  6033. 'optional--',
  6034. "//a[contains(@href,'speedy.sh')]");
  6035. }
  6036. if (GM_getValue("Check_sanshare_dot_com_links", false))
  6037. {
  6038. addFileHost(
  6039. "sanshare\.com\/\\w+",
  6040. 'SANSHARE_TOPBANNER|offset-1"><h3><b>Download File',
  6041. 'offset-1"><b>File Not Found<|width:500px;text-align',
  6042. 'optional--',
  6043. "//a[contains(@href,'sanshare.com')]");
  6044. }
  6045. if (GM_getValue("Check_dizzcloud_dot_com_links", false))
  6046. {
  6047. addFileHost(
  6048. "dizzcloud\.com\/\\w+",
  6049. '2299210355.png"|class="name"',
  6050. 'span>404|class="cyan upgrade"',
  6051. 'optional--',
  6052. "//a[contains(@href,'dizzcloud.com')]");
  6053. }
  6054. if (GM_getValue("Check_kingfiles_dot_net_links", false))
  6055. {
  6056. addFileHost(
  6057. "kingfiles\.net\/\\w+",
  6058. 'img/spriteBanner.png|If you are the owner of this file',
  6059. 'var rr =|"description" CONTENT="Download File ">|<div style="width:500px;text-align:left;">|The file was removed by administrator',
  6060. 'optional--',
  6061. "//a[contains(@href,'kingfiles.net')]");
  6062. }
  6063. if (GM_getValue("Check_uploadhero_dot_co_links", false))
  6064. {
  6065. addFileHost(
  6066. "uploadhero\\.co\/dl\/\\w+",
  6067. 'class="nom_de_fichier"|Unlimited downloads|Estimated download time|Lien de téléchargement"',
  6068. 'not available on our server|pas disponible sur nos serveurs|Le lien du fichier est incorrect',
  6069. 'optional--',
  6070. "//a[contains(@href,'uploadhero.co/dl')]"
  6071. );
  6072. }
  6073. if (GM_getValue("Check_secureupload_dot_eu_links", false))
  6074. {
  6075. addFileHost(
  6076. "secureupload\\.eu\/\\w+",
  6077. 'Downloading',
  6078. 'cannot be found|File Not Found|could not be found',
  6079. 'optional--',
  6080. "//a[contains(@href,'secureupload.eu')]"
  6081. );
  6082. }
  6083. if (GM_getValue("Check_ge_dot_tt_links", false))
  6084. {
  6085. addFileHost(
  6086. "ge\.tt\/\\w+",
  6087. 'downloads pic',
  6088. 'is NOT the same as',
  6089. 'optional--',
  6090. "//a[contains(@href,'ge.tt')]");
  6091. }
  6092. if (GM_getValue("Check_filefactory_dot_com_links", false))
  6093. {
  6094. addFileHost(
  6095. "filefactory\.com\/\\w+",
  6096. 'div id="file_holder"|download.css',
  6097. 'File Removed|Invalid Download Link|File Unavailable|Server Failed|Datei entfernt|This file has been removed',
  6098. 'Server Maintenance|temporarily overloaded',
  6099. //'optional--',
  6100. "//a[contains(@href,'filefactory.com')]");
  6101. }
  6102. if (GM_getValue("Check_filesflash_dot_net_links", false))
  6103. {
  6104. addFileHost(
  6105. "filesflash\.net\/\\w+",
  6106. 'align:right">Filename:',
  6107. 'class="msg">',
  6108. 'optional--',
  6109. "//a[contains(@href,'filesflash.net')]");
  6110. }
  6111. if (GM_getValue("Check_rapidgator_dot_net_links", false)) //folders
  6112. {
  6113. addFileHost(
  6114. "rapidgator\\.net\/folder\/\\w+",
  6115. 'href="/folder/',
  6116. 'class="empty|Folder not found|Carpeta no encontrada|Dossier non trouvé|Папка не найдена',
  6117. 'optional--',
  6118. "//a[contains(@href,'rapidgator.net/folder')]",
  6119. true
  6120. );
  6121. }
  6122. if (GM_getValue("Check_salefiles_dot_com_links", false))
  6123. {
  6124. addFileHost(
  6125. "salefiles\.com\/\\w+",
  6126. '<Title>Download|CONTENT="Download',
  6127. 'font:15px Arial|background:#eee;',
  6128. 'optional--',
  6129. "//a[contains(@href,'salefiles.com')]");
  6130. }
  6131. if (GM_getValue("Check_megairon_dot_net_links", false))
  6132. {
  6133. addFileHost(
  6134. "megairon\.net\/\\w+",
  6135. 'border: 5px #ffeb90 solid;',
  6136. 'CONTENT="Download File ">|var rr =',
  6137. 'optional--',
  6138. "//a[contains(@href,'megairon.net')]");
  6139. }
  6140. if (GM_getValue("Check_datoid_dot_cz_links", false))
  6141. {
  6142. addFileHost(
  6143. "datoid\.cz\/\\w+",
  6144. 'btn-download|class="icon-download-large"',
  6145. 'Stránka nenalezena|error-404|Soubor byl zablokován',
  6146. 'optional--',
  6147. "//a[contains(@href,'datoid.cz')]");
  6148. }
  6149. if (GM_getValue("Check_stiahni_dot_si_links", false))
  6150. {
  6151. addFileHost(
  6152. "stiahni\.si\/\\w+",
  6153. 'report_icon.png"|slow-download-button',
  6154. 'none.png|deleted|<h2>Error 500</h2>',
  6155. 'optional--',
  6156. "//a[contains(@href,'stiahni.si')]");
  6157. }
  6158. if (GM_getValue("Check_cloudstor_dot_es_links", false))
  6159. {
  6160. addFileHost(
  6161. "cloudstor\.es\/\\w+",
  6162. '"btn_download"',
  6163. '404: Page Not Found',
  6164. 'optional--',
  6165. "//a[contains(@href,'cloudstor.es')]");
  6166. }
  6167. if (GM_getValue("Check_streamfile_dot_com_links", false))
  6168. {
  6169. addFileHost(
  6170. "streamfile\.com\/\\w+",
  6171. 'class="btn',
  6172. 'class="green-btn',
  6173. 'optional--',
  6174. "//a[contains(@href,'streamfile.com')]");
  6175. }
  6176. if (GM_getValue("Check_eyesfile_dot_ca_links", false))
  6177. {
  6178. addFileHost(
  6179. "eyesfile\.ca\/\\w+",
  6180. 'value="Get Link',
  6181. 'var rr =',
  6182. 'optional--',
  6183. "//a[contains(@href,'eyesfile.ca')]");
  6184. }
  6185. if (GM_getValue("Check_filemoney_dot_com_links", false))
  6186. {
  6187. addFileHost(
  6188. "filemoney\.com\/\\w+",
  6189. 'og:title',
  6190. '404 Not Found|<Title>FileMoney',
  6191. 'optional--',
  6192. "//a[contains(@href,'filemoney.com')]");
  6193. }
  6194. if (GM_getValue("Check_uploadboy_dot_com_links", false))
  6195. {
  6196. addFileHost(
  6197. "uploadboy\.com\/\\w+",
  6198. 'width="740">',
  6199. 'var rr =|background:#ffffff|not be found',
  6200. 'optional--',
  6201. "//a[contains(@href,'uploadboy.com')]");
  6202. }
  6203. if (GM_getValue("Check_speedshare_dot_eu_links", false))
  6204. {
  6205. addFileHost(
  6206. "speedshare\.eu\/\\w+",
  6207. 'favicon.png|color:#3d87c0|cross.png"',
  6208. 'var rr =|File Not Found|style="background:#eee',
  6209. 'optional--',
  6210. "//a[contains(@href,'speedshare.eu')]");
  6211. }
  6212. if (GM_getValue("Check_unlimitzone_dot_com_links", false))
  6213. {
  6214. addFileHost(
  6215. "unlimitzone\.com\/\\w+",
  6216. 'content="1" name="',
  6217. 'var rr =|File Not Found',
  6218. 'optional--',
  6219. "//a[contains(@href,'unlimitzone.com')]");
  6220. }
  6221. if (GM_getValue("Check_rioupload_dot_com_links", false))
  6222. {
  6223. addFileHost(
  6224. "rioupload\.com\/\\w+",
  6225. 'sell.jpg',
  6226. 'var rr =',
  6227. 'optional--',
  6228. "//a[contains(@href,'rioupload.com')]");
  6229. }
  6230. if (GM_getValue("Check_rg_dot_to_links", false))
  6231. {
  6232. addFileHost(
  6233. "rg\.to\/\\w+",
  6234. '/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',
  6235. 'Error 404|File not found|Select your plan',
  6236. 'optional--',
  6237. //'optional--',
  6238. "//a[contains(@href,'rg.to')]");
  6239. }
  6240. if (GM_getValue("Check_jumbofiles_dot_org_links", false))
  6241. {
  6242. addFileHost(
  6243. "jumbofiles\.org\/\\w+",
  6244. 'H71C5.png|class="downloadtitle">',
  6245. 'var swfu|ViewSourceBIN.png',
  6246. 'optional--',
  6247. "//a[contains(@href,'jumbofiles.org')]");
  6248. }
  6249. if (GM_getValue("Check_fshare_dot_vn_links", false))
  6250. {
  6251. addFileHost(
  6252. "fshare\\.vn\/file\/\\w+",
  6253. 'action="#download"|left; width: 330px;">|class="bt_down"',
  6254. 'không tồn tại|class="color_red m_t_50"',
  6255. 'optional--',
  6256. "//a[contains(@href,'fshare.vn/file')]",
  6257. true
  6258. );
  6259. }
  6260. if (GM_getValue("Check_spaceforfiles_dot_com_links", false))
  6261. {
  6262. addFileHost(
  6263. "spaceforfiles\.com\/\\w+",
  6264. 'btn_slowspeed_b.jpg|value="download1|class="btn_blue',
  6265. 'var rr =|AVOID_IE_BUG',
  6266. 'optional--',
  6267. "//a[contains(@href,'spaceforfiles.com')]");
  6268. }
  6269. if (GM_getValue("Check_google_dot_com_links", false))
  6270. {
  6271. addFileHost(
  6272. "google\\.com\/file\/\\w+",
  6273. 'content="!">|color:#2d2d2d',
  6274. '12pt; font-weight:|class="errorMessage"|F0F6FF',
  6275. 'optional--',
  6276. "//a[contains(@href,'google.com/file')]",
  6277. true
  6278. );
  6279. }
  6280. if (GM_getValue("Check_google_dot_com_links", false))
  6281. {
  6282. addFileHost(
  6283. "docs.google.com\/\\w+",
  6284. 'content="!">|color:#2d2d2d',
  6285. '12pt; font-weight:|class="errorMessage"|F0F6FF|Error 404',
  6286. 'optional--',
  6287. "//a[contains(@href,'docs.google.com')]",
  6288. true
  6289. );
  6290. }
  6291. if (GM_getValue("Check_google_dot_com_links", false))
  6292. {
  6293. addFileHost(
  6294. "drive.google.com\/\\w+",
  6295. 'content="!">|color:#2d2d2d|id="uc-download-link',
  6296. '12pt; font-weight:|class="errorMessage"|F0F6FF|Error 404',
  6297. 'optional--',
  6298. "//a[contains(@href,'drive.google.com')]",
  6299. true
  6300. );
  6301. }
  6302. if (GM_getValue("Check_up_dot_media1fire_dot_com_links", false))
  6303. {
  6304. addFileHost(
  6305. "up.media1fire\.com\/\\w+",
  6306. 'class="addthis_|value="download',
  6307. 'var rr =|AVOID_IE_BUG|<div style="width:500px;text-align:left;">',
  6308. 'optional--',
  6309. "//a[contains(@href,'up.media1fire.com')]");
  6310. }
  6311. if (GM_getValue("Check_depfile_dot_com_links", false))
  6312. {
  6313. addFileHost(
  6314. "depfile\.com\/\\w+",
  6315. 'logo_0.png|downloads.gif"',
  6316. 'border-color: #5D729B;|bgcolor="#778AAF"',
  6317. 'optional--',
  6318. "//a[contains(@href,'depfile.com')]");
  6319. }
  6320. if (GM_getValue("Check_go4up_dot_com_links", false))
  6321. {
  6322. addFileHost(
  6323. "go4up\.com\/\\w+",
  6324. 'style="width: 100%;">|value="Access',
  6325. '<title>GO4UP|dmca',
  6326. 'optional--',
  6327. "//a[contains(@href,'go4up.com')]");
  6328. }
  6329. if (GM_getValue("Check_redbunker_dot_net_links", false))
  6330. {
  6331. addFileHost(
  6332. "redbunker\.net\/\\w+",
  6333. 'dload.png|rowspan="3">|yep.gif',
  6334. 'CONTENT="RedBunker|#D3D3D3;|color:#d33|AVOID_IE_BUG',
  6335. 'optional--',
  6336. "//a[contains(@href,'redbunker.net')]");
  6337. }
  6338. if (GM_getValue("Check_divxpress_dot_com_links", false))
  6339. {
  6340. addFileHost(
  6341. "divxpress\.com\/\\w+",
  6342. 'btn_download|logo.png"',
  6343. 'AVOID_IE_BUG|var rr =',
  6344. 'optional--',
  6345. "//a[contains(@href,'divxpress.com')]");
  6346. }
  6347. if (GM_getValue("Check_anafile_dot_com_links", false))
  6348. {
  6349. addFileHost(
  6350. "anafile\.com\/\\w+",
  6351. 'width="881" valign="top|color="#800080"',
  6352. 'style="width:500px;text-align:left;">|file was deleted|AVOID_IE_BUG',
  6353. 'optional--',
  6354. "//a[contains(@href,'anafile.com')]");
  6355. }
  6356. if (GM_getValue("Check_uploadable_dot_ch_links", false))
  6357. {
  6358. addFileHost(
  6359. "uploadable\\.ch\/file\/\\w+",
  6360. 'captcha.js"|payment.js"|class="btn_download"',
  6361. '<div class="icon_err">|<div class="errorBox">|"error_arrow">',
  6362. 'optional--',
  6363. "//a[contains(@href,'uploadable.ch/file')]",
  6364. true
  6365. );
  6366. }
  6367. if (GM_getValue("Check_arabloads_dot_com_links", false))
  6368. {
  6369. addFileHost(
  6370. "arabloads\.com\/\\w+",
  6371. 'name="method_free"|name="method_premium"',
  6372. 'background:#eee;font:15px Arial;">|AVOID_IE_BUG|Verdana;padding:3px;">Error',
  6373. 'optional--',
  6374. "//a[contains(@href,'arabloads.com')]");
  6375. }
  6376. if (GM_getValue("Check_sharerepo_dot_com_links", false))
  6377. {
  6378. addFileHost(
  6379. "sharerepo\.com\/\\w+",
  6380. 'name="method_free"',
  6381. 'var public_on=|The file you were looking for could not be found',
  6382. 'optional--',
  6383. "//a[contains(@href,'sharerepo.com')]");
  6384. }
  6385. if (GM_getValue("Check_sfshare_dot_se_links", false))
  6386. {
  6387. addFileHost(
  6388. "sfshare\.se\/\\w+",
  6389. 'id="btn_download"|class="btn btn-primary txt-bold" value="',
  6390. 'AVOID_IE_BUG|var rr =|style="width:500px;text-align:left;">|Reason for deletion|The file was removed',
  6391. 'optional--',
  6392. "//a[contains(@href,'sfshare.se')]");
  6393. }
  6394. if (GM_getValue("Check_files_dot_fm_links", false))
  6395. {
  6396. addFileHost(
  6397. "files\.fm\/\\w+",
  6398. 'dl.png"|background-color: transparent',
  6399. 'margin: 40px 40px|background: none;',
  6400. 'optional--',
  6401. "//a[contains(@href,'files.fm')]");
  6402. }
  6403. if (GM_getValue("Check_koofile_dot_com_links", false))
  6404. {
  6405. addFileHost(
  6406. "koofile\.com\/\\w+",
  6407. 'value="download1">|name="method_free"',
  6408. 'class="overview-content c_text-box ">|style="padding-top:3px;">|class="rt1 c">',
  6409. 'optional--',
  6410. "//a[contains(@href,'koofile.com')]");
  6411. }
  6412. if (GM_getValue("Check_shared_dot_com_links", false))
  6413. {
  6414. addFileHost(
  6415. "shared\.com\/\\w+",
  6416. 'class="icon-download|class="attachment-size">',
  6417. 'img/404.png"|error-img -->',
  6418. 'optional--',
  6419. "//a[contains(@href,'shared.com')]");
  6420. }
  6421. if (GM_getValue("Check_vidxden_dot_com_links", false))
  6422. {
  6423. addFileHost(
  6424. "vidxden\\.com\/\\w+",
  6425. 'Continue to Video"',
  6426. 'No such file',
  6427. 'optional--',
  6428. "//a[contains(@href,'vidxden.com')]"
  6429. );
  6430. }
  6431. if (GM_getValue("Check_muchshare_dot_net_links", false))
  6432. {
  6433. addFileHost(
  6434. "muchshare\\.net\/\\w+",
  6435. 'id="btn_download"',
  6436. 'File Not Found|width: 500px; text-align: left;',
  6437. 'optional--',
  6438. "//a[contains(@href,'muchshare.net')]"
  6439. );
  6440. }
  6441. if (GM_getValue("Check_daten_dash_hoster_dot_de_links", false))
  6442. {
  6443. addFileHost(
  6444. "(?:daten-hoster\\.de\/file\/\\w+|filehosting\\.org\/file\/\\w+|xtraupload\\.de\/\\?d=\\w+)",
  6445. 'Details zur Datei|Details page',
  6446. 'Jetzt hochladen|upload now',
  6447. 'optional--',
  6448. "//a[contains(@href,'daten-hoster.de/file') or contains(@href,'filehosting.org/file') or contains(@href,'xtraupload.de')]"
  6449. );
  6450. }
  6451. if (GM_getValue("Check_upload_dash_il_dot_net_links", false))
  6452. {
  6453. addFileHost(
  6454. "(?:upload-il|przeslij)\.net\/(?:en|he|ar|ru|)\/?\\w+",
  6455. 'downloadbtn"',
  6456. 'DL_FileNotFound',
  6457. 'optional--',
  6458. "//a[contains(@href,'upload-il.net') or contains(@href,'przeslij.net')]"
  6459. );
  6460. }
  6461. if (GM_getValue("Check_fileflyer_dot_com_links", false))
  6462. {
  6463. addFileHost(
  6464. "fileflyer\.com\/view\/\\w+",
  6465. '(?:dwl|locked)btn"',
  6466. 'error.gif"|link">Removed|removedlink">',
  6467. 'optional--',
  6468. "//a[contains(@href,'fileflyer.com')]"
  6469. );
  6470. }
  6471. if (GM_getValue("Check_filestore_dot_to_links", false))
  6472. {
  6473. addFileHost(
  6474. "filestore\.to\/\\?d=\\w+",
  6475. '"downloading"',
  6476. 'Datei wurde nicht gefunden',
  6477. 'optional--',
  6478. "//a[contains(@href,'filestore.to')]"
  6479. );
  6480. }
  6481. if (GM_getValue("Check_easy_dash_share_dot_com_links", false))
  6482. {
  6483. addFileHost(
  6484. "(?:w\\d*\.|)(?:crocko|easy-share)\\.com\/.",
  6485. 'fz24">Download|class="pl15">',
  6486. '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',
  6487. 'optional--',
  6488. "//a[contains(@href,'easy-share.com') or contains(@href,'crocko.com')]"
  6489. );
  6490. }
  6491. if (GM_getValue("Check_burnupload_dot_com_links", false))
  6492. {
  6493. addFileHost(
  6494. "burnupload\\.(?:com\/\\?d=|ihiphop\\.com\/download\\.php\\?id=)\\w+",
  6495. 'File size:',
  6496. 'file is not found',
  6497. 'optional--',
  6498. "//a[contains(@href,'burnupload.com') or contains(@href,'burnupload.ihiphop.com')]"
  6499. );
  6500. }
  6501. if (GM_getValue("Check_datei_dot_to_links", false))
  6502. {
  6503. addFileHost(
  6504. "datei\\.to\/\\??\\w+",
  6505. 'icon_downloaden\\.png|>Download starten<',
  6506. 'Datei wurde nicht gefunden|icon_deleted.png',
  6507. 'optional--',
  6508. "//a[contains(@href,'datei.to')]"
  6509. );
  6510. }
  6511. if (GM_getValue("Check_yunfile_dot_com_links", false))
  6512. {
  6513. addFileHost(
  6514. "(?:yunfile|filemarkets)\\.com\/\\w+",
  6515. '<body class="body" id="body">|value="Slow Download"',
  6516. '<body class="body" >',
  6517. 'optional--',
  6518. "//a[contains(@href,'yunfile.com') or contains(@href,'filemarkets.com')]"
  6519. );
  6520. }
  6521. if (GM_getValue("Check_putlocker_dot_com_links", false))
  6522. {
  6523. addFileHost(
  6524. "putlocker\\.com\/file\/\\w{16}",
  6525. 'as Free User|<a class="continue"|Continue to file|#feedback_btn|application file_standalone',
  6526. 'Welcome to PutLocker|<div class="sad_face_image">|404:',
  6527. 'undergoing scheduled maintenance',
  6528. "//a[contains(@href,'putlocker.com/file')]"
  6529. );
  6530. }
  6531. if (GM_getValue("Check_uploadhero_dot_com_links", false))
  6532. {
  6533. addFileHost(
  6534. "uploadhero\\.com\/dl\/\\w+",
  6535. 'content-dl">',
  6536. 'men_file_lost\\.jpg"',
  6537. 'optional--',
  6538. "//a[contains(@href,'uploadhero.com/dl')]"
  6539. );
  6540. }
  6541. if (GM_getValue("Check_unibytes_dot_com_links", false))
  6542. {
  6543. addFileHost(
  6544. "unibytes\\.com\/[\\w\.]+",
  6545. 'trying to download|пытаетесь загрузить файл|tes entrain de tlcharger',
  6546. 'File not found|Файл не найден|',
  6547. 'optional--',
  6548. "//a[contains(@href,'unibytes.com')]"
  6549. );
  6550. }
  6551. if (GM_getValue("Check_hellshare_dot_com_links", false)) //very old type of links
  6552. {
  6553. addFileHost(
  6554. "www\\.hellshare\\.com\/\\d+",
  6555. 'tab\\-details"',
  6556. 'list-purp-2"|not found on this server',
  6557. 'optional--',
  6558. "//a[contains(@href,'www.hellshare.com')]"
  6559. );
  6560. }
  6561. if (GM_getValue("Check_quickshare_dot_cz_links", false)) //folders
  6562. {
  6563. addFileHost(
  6564. "quickshare\\.cz\/slozka-\\d+",
  6565. 'Počet souborů: <strong>[1-9]',
  6566. 'Počet souborů: <strong>0|Chyba! Taková složka neexistuje',
  6567. 'optional--',
  6568. "//a[contains(@href,'quickshare.cz/slozka')]"
  6569. );
  6570. }
  6571. if (GM_getValue("Check_filefactory_dot_com_links", false)) //folders
  6572. {
  6573. addFileHost(
  6574. "filefactory\\.com\/f\/\\w+",
  6575. 'folderFileList">',
  6576. 'table class="items"|Pointer" class="red">',
  6577. 'optional--',
  6578. "//a[contains(@href,'filefactory.com/f/')]"
  6579. );
  6580. }
  6581. if (GM_getValue("Check_netload_dot_in_links", false)) //folders
  6582. {
  6583. addFileHost(
  6584. "netfolder\\.in\/\\w+",
  6585. 'list" value="http',
  6586. 'InPage_Error">|list" value=""',
  6587. 'optional--',
  6588. "//a[contains(@href,'netfolder.in')]"
  6589. );
  6590. }
  6591. if (GM_getValue("Check_load_dot_to_links", false))
  6592. {
  6593. addFileHost(
  6594. '(?:www\\.|\\/)load\\.to\\/(?:\\w{10}\\/.|\\?d=\\w{10})',
  6595. '"download_table_left">Size',
  6596. 'Can\'t find file',
  6597. 'optional--',
  6598. "//a[contains(@href,'/load.to/') or contains(@href,'www.load.to/')]"
  6599. );
  6600. }
  6601. if (GM_getValue("Check_freakshare_dot_net_links", false))
  6602. {
  6603. addFileHost(
  6604. "freakshare\\.(?:net|com)\/files\/",
  6605. 'box_heading',
  6606. '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|الملف المطلوب غير موجود',
  6607. 'Your Traffic is used up for today',
  6608. "//a[(contains(@href,'freakshare.net') or contains(@href,'freakshare.com')) and contains(@href,'files')]",
  6609. true
  6610. );
  6611. //folders
  6612. addFileHost(
  6613. "freakshare\\.(?:net|com)\/folder\/",
  6614. 'Files: [1-9]',
  6615. 'Files: 0',
  6616. 'optional--',
  6617. "//a[(contains(@href,'freakshare.net') or contains(@href,'freakshare.com')) and contains(@href,'folder')]",
  6618. true
  6619. );
  6620. }
  6621. if (GM_getValue("Check_divshare_dot_com_links", false))
  6622. {
  6623. addFileHost(
  6624. "divshare\\.com\/download\/",
  6625. 'download_new\.png',
  6626. 'have been removed',
  6627. 'optional--',
  6628. "//a[contains(@href,'divshare.com')]"
  6629. );
  6630. }
  6631. if (GM_getValue("Check_stahovadlo_dot_cz_links", false))
  6632. {
  6633. addFileHost(
  6634. "stahovadlo\\.cz\/soubor\/\\d+\/[\\.\\w]+",
  6635. 'download" type="submit',
  6636. 'Neplatný nebo neúplný odkaz|Soubor již není dostupný',
  6637. 'optional--',
  6638. "//a[contains(@href,'stahovadlo.cz/soubor')]",
  6639. true
  6640. );
  6641. }
  6642. if (GM_getValue("Check_euroshare_dot_eu_links", false))
  6643. {
  6644. addFileHost(
  6645. "euroshare\\.(?:eu|pl|sk|cz|hu)\/file\/\\d+",
  6646. 'nazev-souboru">',
  6647. '<div id="obsah">\\s*<h1>',
  6648. 'optional--',
  6649. "//a[contains(@href,'euroshare.eu/file')]"
  6650. );
  6651. }
  6652. if (GM_getValue("Check_files_dot_mail_dot_ru_links", false))
  6653. {
  6654. addFileHost(
  6655. 'files\\.mail\\.ru/(?:\\w*)',
  6656. 'fileList',
  6657. 'errorMessage',
  6658. 'optional--',
  6659. "//a[contains(@href,'files.mail.ru')]"
  6660. );
  6661. }
  6662. if (GM_getValue("Check_megashares_dot_com_links", false))
  6663. {
  6664. addFileHost(
  6665. "(?:d\\d+\.|)megashares\.com\/(?:dl|index\.php\\?d|\\?d\\d+=\\w+)",
  6666. 'Filesize',
  6667. 'Invalid|deleted|Could not download file',
  6668. 'slots|scheduled maintenance',
  6669. "//a[contains(@href,'megashares.com/')]"
  6670. );
  6671. }
  6672. if (GM_getValue("Check_narod_dot_ru_links", false))
  6673. {
  6674. addFileHost(
  6675. 'narod\\.(?:yandex\\.|)ru\/disk\/',
  6676. 'b-submit',
  6677. 'b-download-virus-note|headCode">404<',
  6678. 'Внутренняя ошибка сервиса',
  6679. "//a[contains(@href,'narod.ru') or contains(@href,'narod.yandex.ru')]"
  6680. );
  6681. }
  6682. if (GM_getValue("Check_rayfile_dot_com_links", false))
  6683. {
  6684. addFileHost(
  6685. "rayfile\\.com\/",
  6686. 'FILEtitleTXT',
  6687. 'blueRow',
  6688. 'optional--',
  6689. "//a[contains(@href,'rayfile.com/') and contains(@href,'files')]"
  6690. );
  6691. }
  6692. if (GM_getValue("Check_filesmonster_dot_com_links", false))
  6693. {
  6694. addFileHost(
  6695. "filesmonster\\.com\/download\\.php\\?id=\\w+",
  6696. 'button_green_body"',
  6697. 'error">',
  6698. 'optional--',
  6699. "//a[contains(@href,'filesmonster.com/download')]"
  6700. );
  6701. }
  6702. if (GM_getValue("Check_usaupload_dot_net_links", false))
  6703. {
  6704. addFileHost(
  6705. 'usaupload\\.net\/d\/(?:\w*)',
  6706. '<strong>File size:</strong>',
  6707. 'is not available',
  6708. 'optional--',
  6709. "//a[contains(@href,'usaupload.net/d/')]"
  6710. );
  6711. }
  6712. if (GM_getValue("Check_sendspace_dot_com_links", false))
  6713. {
  6714. addFileHost(
  6715. 'sendspace\\.com\/file\/\\w+',
  6716. 'file_description',
  6717. 'msg error"',
  6718. 'optional--',
  6719. "//a[contains(@href,'sendspace.com/file')]"
  6720. );
  6721. }
  6722. if (GM_getValue("Check_sendspace_dot_pl_links", false))
  6723. {
  6724. addFileHost(
  6725. 'sendspace\\.pl\/file\/\\w+',
  6726. 'download_file"',
  6727. 'Podany plik nie',
  6728. 'optional--',
  6729. "//a[contains(@href,'sendspace.pl/file')]"
  6730. );
  6731. }
  6732. if (GM_getValue("Check_uploading_dot_com_links", false))
  6733. {
  6734. addFileHost(
  6735. 'uploading\\.com\/(?:files\/)?\\w+',
  6736. 'free_method">',
  6737. 'file_error">|error_404">|file not found|OOPS! Looks like file not found',
  6738. 'optional--',
  6739. "//a[contains(@href,'uploading.com')]"
  6740. );
  6741. }
  6742. if (GM_getValue("Check_gigasize_dot_com_links", false))
  6743. {
  6744. addFileHost(
  6745. 'gigasize\\.com\/get\\.php(?:\/\\d+|\\?d=\\w+)',
  6746. 'fileId"',
  6747. 'error">',
  6748. 'optional--',
  6749. "//a[contains(@href,'gigasize.com/get')]"
  6750. );
  6751. }
  6752. if (GM_getValue("Check_good_dot_com_links", false))
  6753. {
  6754. addFileHost(
  6755. 'good\\.net\/(?:_|dl)',
  6756. 'Free Download',
  6757. 'Not Found',
  6758. 'Forbidden',
  6759. "//a[contains(@href,'good.net')]"
  6760. );
  6761. }
  6762. if (GM_getValue("Check_2shared_dot_com_links", false))
  6763. {
  6764. addFileHost(
  6765. '2shared\\.com\/(?:file|video|document|audio)\/\\w*',
  6766. 'File size',
  6767. 'File not found|is not valid|/images/important.gif',
  6768. 'optional--',
  6769. "//a[contains(@href,'2shared.com/file/') or contains (@href,'2shared.com/audio/') or contains (@href,'2shared.com/document/') or contains (@href,'2shared.com/video/')]"
  6770. );
  6771. }
  6772. if (GM_getValue("Check_turboupload_dot_com_links", false))
  6773. {
  6774. addFileHost(
  6775. 'turboupload\\.com\/\\w*',
  6776. 'You have requested',
  6777. 'File Not Found',
  6778. 'optional--',
  6779. "//a[contains(@href,'turboupload.com')]"
  6780. );
  6781. }
  6782. if (GM_getValue("Check_gigapeta_dot_com_links", false))
  6783. {
  6784. addFileHost(
  6785. 'gigapeta\\.com\/dl\/',
  6786. 'Download file|Скачать файл| Herunterzuladen|Scarica il file|Cargar el fichero|Charger le fichier',
  6787. '404|page_error',
  6788. 'optional--',
  6789. "//a[contains(@href,'gigapeta.com/dl')]"
  6790. );
  6791. }
  6792. if (GM_getValue("Check_veehd_dot_com_links", false))
  6793. {
  6794. addFileHost(
  6795. 'veehd\.com\/video\/.*?',
  6796. 'No sound|Download video',
  6797. 'Featured Videos',
  6798. 'optional--',
  6799. "//a[contains(@href,'veehd.com') and contains(@href,'video')]"
  6800. );
  6801. }
  6802. if (GM_getValue("Check_vip_dash_file_dot_com_links", false))
  6803. {
  6804. addFileHost(
  6805. '(?:u\\d+\\.)?vip-file\\.com\/download.*?\/(?:.*?)\/(?:.*?)\\.html',
  6806. 'fast_download_form">|submit_sms_download',
  6807. '<p style="text-align:center">',
  6808. 'optional--',
  6809. "//a[contains(@href,'vip-file.com/download')]"
  6810. );
  6811. }
  6812. if (GM_getValue("Check_letitbit_dot_net_links", false))
  6813. {
  6814. addFileHost(
  6815. '(?:u\\d+\\.)?letitbit\\.net\/download\/\\w+',
  6816. 'download\\-pnl ',
  6817. 'color:#000">|Запрашиваемый файл не найден|страница не существует|File not found|',
  6818. 'optional--',
  6819. "//a[contains(@href,'letitbit.net/download')]"
  6820. );
  6821. }
  6822. if (GM_getValue("Check_ifolder_dot_ru_links", false))
  6823. {
  6824. addFileHost(
  6825. 'ifolder\.ru\/\\d+',
  6826. 'file-info',
  6827. 'ui-state-error',
  6828. 'optional--',
  6829. "//a[contains(@href,'ifolder.ru')]"
  6830. );
  6831. }
  6832. if (GM_getValue("Check_fileswap_dot_com_links", false))
  6833. {
  6834. addFileHost(
  6835. 'fileswap\\.com\/dl\/\\w+',
  6836. 'bttnDownloadLink"',
  6837. 'rounded_block_error"',
  6838. 'is temporary unavailable|disponible en estos momentos|vorläufig unerreichbar|Файл временно недоступен',
  6839. "//a[contains(@href,'fileswap.com/dl')]"
  6840. );
  6841. }
  6842. if (GM_getValue("Check_filecloud_dot_io_links", false))
  6843. {
  6844. addFileHost(
  6845. '(?:s\\d+\\.)?filecloud\\.io\/\\w+',
  6846. 'var __error = 0',
  6847. 'FILES__DOESNT_EXIST',
  6848. 'optional--',
  6849. "//a[contains(@href,'filecloud.io/')]"
  6850. );
  6851. addFileHost(
  6852. 'ifile\\.it\/\\w+',
  6853. 'var __error = 0',
  6854. 'FILES__DOESNT_EXIST',
  6855. 'optional--',
  6856. "//a[contains(@href,'ifile.it/')]"
  6857. );
  6858. }
  6859. if (GM_getValue("Check_solidfiles_dot_com_links", false))
  6860. {
  6861. addFileHost(
  6862. 'solidfiles\\.com\/d\/\\w+',
  6863. 'id="download"|content="Download',
  6864. '>Not found<|<h2>404</h2>|Page not found|<h1>404</h1>',
  6865. 'optional--',
  6866. "//a[contains(@href,'solidfiles.com/d')]"
  6867. );
  6868. }
  6869. if (GM_getValue("Check_shareflare_dot_net_links", false))
  6870. {
  6871. addFileHost(
  6872. "(?:.\\.|)shareflare\\.net",
  6873. 'download-pnl|<div class="premium-block">',
  6874. 'File not found|Поиск зеркала на фа|<div id="captcha"',
  6875. 'optional--',
  6876. "//a[contains(@href,'shareflare.net') and contains(@href,'download')]"
  6877. );
  6878. }
  6879. if (GM_getValue("Check_u18116681_dot_shareflare_dot_net_links", false))
  6880. {
  6881. addFileHost(
  6882. "u18116681.shareflare\\.net",
  6883. 'download-pnl|<div class="premium-block">',
  6884. 'File not found|Поиск зеркала на фа|<div id="captcha"',
  6885. 'optional--',
  6886. "//a[contains(@href,'shareflare.net') and contains(@href,'download')]"
  6887. );
  6888. }
  6889. if (GM_getValue("Check_uloz_dot_to_links", false))
  6890. {
  6891. addFileHost(
  6892. "(?:uloz|ulozto|bagruj|zachowajto)\\.(to|cz|sk|net|pl)\/\\w",
  6893. 'fileDownload">|fileSize">',
  6894. 'grayButton deletedFile">|Stránka nenalezena|upload-button"|jako soukromý.',
  6895. 'passwordProtectedFile">|frmaskAgeForm-disagree',
  6896. "//a[contains(@href,'bagruj.cz') or contains(@href,'uloz.to') or contains(@href,'ulozto.') or contains(@href,'zachowajto.pl')]",
  6897. true
  6898. );
  6899. }
  6900. if (GM_getValue("Check_hellspy_dot_com_links", false))
  6901. {
  6902. addFileHost(
  6903. "hellspy\.(?:com|cz|sk|hu|pl)\/\\w+",
  6904. 'file\\-list-orderby|section-filedetail">',
  6905. '<\/span><\/h2>\\s*<p>|list-purp-2">|flash info sticky">',
  6906. 'optional--',
  6907. "//a[contains(@href,'hellspy.')]"
  6908. );
  6909. }
  6910. if (GM_getValue("Check_leteckaposta_dot_cz_links", false))
  6911. {
  6912. addFileHost(
  6913. "(?:leteckaposta\\.cz|sharegadget\\.com)\/\\d+",
  6914. '<body onload="">',
  6915. 'neexistuje|not exist',
  6916. 'optional--',
  6917. "//a[contains(@href,'leteckaposta.cz') or contains(@href,'sharegadget.com')]"
  6918. );
  6919. }
  6920. if (GM_getValue("Check_stahovanizasms_dot_cz_links", false))
  6921. {
  6922. addFileHost(
  6923. "stahovanizasms\\.cz\/\\w+",
  6924. 'download\\.png>|font-size:11px><tr>',
  6925. 'smaz.n u.ivatelem|font-size:11px><\/table>',
  6926. 'optional--',
  6927. "//a[contains(@href,'stahovanizasms.cz')]"
  6928. );
  6929. }
  6930. if (GM_getValue("Check_share_dash_links_dot_biz_links", false))
  6931. {
  6932. addFileHost(
  6933. "share-links\\.biz\/\\w*",
  6934. 'online\\.gif',
  6935. '(?:offline|parts)\\.gif',
  6936. 'optional--',
  6937. "//a[contains(@href,'share-links.biz')]"
  6938. );
  6939. }
  6940. if (GM_getValue("Check_4shared_dot_com_links", false))
  6941. {
  6942. addFileHost(
  6943. "4shared\\.com\/.+\/",
  6944. '<input type="hidden" class="jsSocialTwDefaultText" value=',
  6945. 'class="warn\"|big red"|GetDataBack',
  6946. 'Service Unavailable',
  6947. "//a[contains(@href,'4shared.com')]"
  6948. );
  6949. }
  6950. if (GM_getValue("Check_zippyshare_dot_com_links", false))
  6951. {
  6952. addFileHost(
  6953. "(?:www\\d+\.|)zippyshare\.com\/",
  6954. 'download\.png|Download Now|images/download_small.png|id="dlbutton"',
  6955. 'not exist|Status 404',
  6956. 'optional--',
  6957. "//a[contains(@href,'zippyshare.com') and contains(@href,'file.html')]"
  6958. );
  6959. }
  6960. if (GM_getValue("Check_mediafire_dot_com_links", false))
  6961. {
  6962. addFileHost(
  6963. "mediafire\.com\/",
  6964. 'download_file_title|dlFileName|id="PLAY_downloadButton"',
  6965. 'error\\.php\\?|error_msg_title|<title>Simple File Sharing|No files found',
  6966. 'set to private',
  6967. "//a[contains(@href,'mediafire.com')]"
  6968. );
  6969. }
  6970. if (GM_getValue("Check_uploaded_dot_to_links", false))
  6971. {
  6972. addFileHost(
  6973. '(?:uploaded\\.(?:to|net)\/(?:.id|file|folder|f|410|404))|(?:ul\\.to\/)',
  6974. '<h2>Authentification</h2></li>| MB',
  6975. 'box_red|Error: 404|Error: 410|fileList"><thead><tr><td colspan="2"><\/td><\/tr><\/thead><tbody>\\s*<tr>|<title>uploaded.net</title>',
  6976. 'optional--',
  6977. "//a[contains(@href,'uploaded.to/') or contains(@href,'uploaded.net/') or contains(@href,'ul.to/')]"
  6978. );
  6979. }
  6980. if (GM_getValue("Check_ulozisko_dot_sk_links", false))
  6981. {
  6982. addFileHost(
  6983. "ulozisko\.sk\/",
  6984. 'Detaily',
  6985. 'neexistuje',
  6986. 'optional--',
  6987. "//a[contains(@href,'ulozisko.sk')]"
  6988. );
  6989. }
  6990. if (GM_getValue("Check_upnito_dot_sk_links", false))
  6991. {
  6992. addFileHost(
  6993. "(?:dl.\\.|)upnito\\.sk\/(download|subor|file)",
  6994. 'download.php',
  6995. 'notfound|upload\\-suborov\\.php"',
  6996. 'optional--',
  6997. "//a[contains(@href,'upnito.sk')]"
  6998. );
  6999. }
  7000. if (GM_getValue("Check_dataport_dot_cz_links", false))
  7001. {
  7002. addFileHost(
  7003. "dataport\.cz\/file\/",
  7004. 'premium_download">',
  7005. '="error">',
  7006. 'optional--',
  7007. "//a[contains(@href,'dataport.cz/file')]",
  7008. true
  7009. );
  7010. }
  7011. if (GM_getValue("Check_uptobox_dot_com_links", false))
  7012. {
  7013. addFileHost(
  7014. "uptobox\\.com\/\\w+",
  7015. 'Create Download Link">',
  7016. '500px;text-align:left;">|File not found|Fichier introuvable',
  7017. 'Maintenance|not available in your country',
  7018. "//a[contains(@href,'uptobox.com')]"
  7019. );
  7020. }
  7021. if (GM_getValue("Check_sharecash_dot_org_links", false))
  7022. {
  7023. addFileHost(
  7024. "sharecash\\.org\/download\\.php\\?file=\\d+",
  7025. 'FILE DOWNLOAD<',
  7026. 'File Does Not Exist',
  7027. 'optional--',
  7028. "//a[contains(@href,'sharecash.org/download.php')]"
  7029. );
  7030. }
  7031. if (GM_getValue("Check_depositfiles_dot_com_links", false)) //folders
  7032. {
  7033. addFileHost(
  7034. "depositfiles\\.com\/folders\/\\w+",
  7035. '<div class="progressContainer">',
  7036. '<div id="files" class="files">\\s*<\/div>',
  7037. 'optional--',
  7038. "//a[contains(@href,'depositfiles.com/folders')]"
  7039. );
  7040. }
  7041. if (GM_getValue("Check_depositfiles_dot_com_links", false))
  7042. {
  7043. addFileHost(
  7044. "depositfiles\\.com\/|depositfiles.org|dfiles\.eu|dfiles.ru",
  7045. '<b>File Download</b>|File name|Nom du fichier|Nome do arquivo|speed_small\.gif',
  7046. 'Such file does not exist|<div class="no_download_msg"|This file does not exist',
  7047. 'optional--',
  7048. "//a[contains(@href,'depositfiles') or contains(@href,'dfiles')]"
  7049. );
  7050. }
  7051. if (GM_getValue("Check_rapidfileshare_dot_net_links", false))
  7052. {
  7053. addFileHost(
  7054. "rapidfileshare\\.net/\\w+",
  7055. '<div id="upload-header-bg">',
  7056. '<div style="width:500px;text-align:left;">',
  7057. 'optional--',
  7058. "//a[contains(@href,'rapidfileshare.net/')]"
  7059. );
  7060. }
  7061. if (GM_getValue("Check_stiahnito_dot_sk_links", false))
  7062. {
  7063. addFileHost(
  7064. "stiahnito\\.sk/",
  7065. '<span class="filesize right">',
  7066. '<ol class="list-purp-2">',
  7067. 'optional--',
  7068. "//a[contains(@href,'stiahnito.sk/')]"
  7069. );
  7070. }
  7071. if (GM_getValue("Check_rusfolder_dot_com_links", false))
  7072. {
  7073. addFileHost(
  7074. "rusfolder\\.(?:com|net)",
  7075. '"download-step-one-form"|Название: <b>|Файлы|Файлы в папке',
  7076. '"ui-state-error ui-corner-all"|File is removed|File not found|удален',
  7077. 'optional--',
  7078. "//a[contains(@href,'rusfolder')]"
  7079. );
  7080. }
  7081. if (GM_getValue("Check_fileover_dot_net_links", false))
  7082. {
  7083. addFileHost(
  7084. "fileover\\.net/\\d+",
  7085. 'id="filesize"',
  7086. 'Not found or deleted|The following file is unavailable',
  7087. 'optional--',
  7088. "//a[contains(@href,'fileover.net/')]"
  7089. );
  7090. }
  7091. if (GM_getValue("Check_catshare_dot_net_links", false))
  7092. {
  7093. addFileHost(
  7094. "catshare\\.net/\\w+",
  7095. '"icon-share',
  7096. 'alert alert-error',
  7097. 'optional--',
  7098. "//a[contains(@href,'catshare.net/')]"
  7099. );
  7100. }
  7101. if (GM_getValue("Check_anonfiles_dot_com_links", false))
  7102. {
  7103. addFileHost(
  7104. "anonfiles\\.com/\\w+",
  7105. '"download_button"',
  7106. '<legend><b>404</b>',
  7107. 'optional--',
  7108. "//a[contains(@href,'anonfiles.com')]"
  7109. );
  7110. }
  7111. if (GM_getValue("Check_mixturecloud_dot_com_links", false))
  7112. {
  7113. addFileHost(
  7114. "mixturecloud\\.com/media/\\w+",
  7115. '"btn icon i_globe gray share_150',
  7116. '"s_cross_close"></span> 404:',
  7117. 'optional--',
  7118. "//a[contains(@href,'mixturecloud.com/media/')]"
  7119. );
  7120. }
  7121. if (GM_getValue("Check_akafile_dot_com_links", false))
  7122. {
  7123. addFileHost(
  7124. "akafile\\.com\/\\w+",
  7125. 'download1',
  7126. 'File Not Found',
  7127. 'optional--',
  7128. "//a[contains(@href,'akafile.com/')]"
  7129. );
  7130. }
  7131. if (GM_getValue("Check_creafile_dot_net_links", false))
  7132. {
  7133. addFileHost(
  7134. "creafile\\.net\/\\w+",
  7135. 'downloadblock',
  7136. 'errtitle',
  7137. 'optional--',
  7138. "//a[contains(@href,'creafile.net/')]"
  7139. );
  7140. }
  7141. if (GM_getValue("Check_hugefiles_dot_net_links", false))
  7142. {
  7143. addFileHost(
  7144. "hugefiles\\.net\/\\w+",
  7145. 'download1|class="btn-create-download" value="Create Download Link">',
  7146. 'File Not Found|No such file with this filename',
  7147. 'optional--',
  7148. "//a[contains(@href,'hugefiles.net/')]"
  7149. );
  7150. }
  7151. if (GM_getValue("Check_sendmyway_dot_com_links", false))
  7152. {
  7153. addFileHost(
  7154. "sendmyway\\.com\/\\w+",
  7155. 'id="btn_download"',
  7156. '500px;text-align:left;"|<center><h3>',
  7157. 'optional--',
  7158. "//a[contains(@href,'sendmyway.com/')]"
  7159. );
  7160. }
  7161. if (GM_getValue("Check_upload_dot_ee_links", false))
  7162. {
  7163. addFileHost(
  7164. "upload\\.ee\/\\w+",
  7165. 'onmouseout="document.dllink.src',
  7166. 'There is no such file.|File was deleted|Fail kustutati|Файл удалён|Такого файла нет',
  7167. 'optional--',
  7168. "//a[contains(@href,'upload.ee/')]"
  7169. );
  7170. }
  7171. if (GM_getValue("Check_shareplace_dot_org_links", false))
  7172. {
  7173. addFileHost(
  7174. "shareplace\\.org\/\\?\\w+",
  7175. 'Download-Link',
  7176. 'Your requested file is not found|Select file to send',
  7177. 'optional--',
  7178. "//a[contains(@href,'shareplace.org/?')]"
  7179. );
  7180. }
  7181. if (GM_getValue("Check_uploadc_dot_com_links", false))
  7182. {
  7183. addFileHost(
  7184. "uploadc\\.com\/\\w+",
  7185. 'id="prebut"',
  7186. 'File Not Found|This file has been removed due',
  7187. 'optional--',
  7188. "//a[contains(@href,'uploadc.com/')]"
  7189. );
  7190. }
  7191. if (GM_getValue("Check_remixshare_dot_com_links", false))
  7192. {
  7193. addFileHost(
  7194. "remixshare\\.com\/\\w+",
  7195. 'id="dl2"',
  7196. '<table class=\'failed\'><tr><td width=\'90%\'>|Sorry, die Datei konnte nicht gefunden werden',
  7197. 'optional--',
  7198. "//a[contains(@href,'remixshare.com/')]"
  7199. );
  7200. }
  7201. if (GM_getValue("Check_exoshare_dot_com_links", false))
  7202. {
  7203. addFileHost(
  7204. "exoshare\\.com\/download\\.php\\?uid=\\w+",
  7205. 'Last Download :',
  7206. 'img src="\\/404.jpg"',
  7207. 'optional--',
  7208. "//a[contains(@href,'exoshare.com/download.php')]"
  7209. );
  7210. }
  7211. if (GM_getValue("Check_borncash_dot_org_links", false))
  7212. {
  7213. addFileHost(
  7214. "borncash\\.org\/download\/\\?a=\\w+",
  7215. 'class="knop_1"',
  7216. '\/error\/er00',
  7217. 'optional--',
  7218. "//a[contains(@href,'borncash.org/download/')]"
  7219. );
  7220. }
  7221. if (GM_getValue("Check_vidplay_dot_net_links", false))
  7222. {
  7223. addFileHost(
  7224. "vidplay\.net\/\\w+",
  7225. 'solvemedia puzzle widget',
  7226. 'File not found|AVOID_IE_BUG',
  7227. 'optional--',
  7228. "//a[contains(@href,'vidplay.net')]");
  7229. }
  7230. if (GM_getValue("Check_storagon_dot_com_links", false))
  7231. {
  7232. addFileHost(
  7233. "storagon\.com\/\\w+",
  7234. 'class="icon-cloud-download"></i>|content="Download Options',
  7235. 'content="Download Downloads|class="error-container">|class="bigger-300 bolder">404<',
  7236. 'optional--',
  7237. "//a[contains(@href,'storagon.com')]");
  7238. }
  7239. if (GM_getValue("Check_filedais_dot_com_links", false))
  7240. {
  7241. addFileHost(
  7242. "filedais\.com\/\\w+",
  7243. 'class="btn btn-info"|name="method_free"',
  7244. 'style="width:500px;text-align:left;">|File Not Found|AVOID_IE_BUG',
  7245. 'optional--',
  7246. "//a[contains(@href,'filedais.com')]");
  7247. }
  7248. if (GM_getValue("Check_ryushare_dot_com_links", false))
  7249. {
  7250. addFileHost(
  7251. "ryushare\.com\/\\w+",
  7252. 'KB|MB',
  7253. '<div style="width:500px;text-align:left;">',
  7254. 'in maintenance mode|Software error:',
  7255. "//a[contains(@href,'ryushare.com')]");
  7256. }
  7257. if (GM_getValue("Check_up_dot_4share_dot_vn_links", false))
  7258. {
  7259. addFileHost(
  7260. "up.4share\.vn\/\\w+",
  7261. '<font size="2" face="Verdana">',
  7262. 'font: 13px Tahoma; color: Brown',
  7263. 'optional--',
  7264. //'optional--',
  7265. "//a[contains(@href,'up.4share.vn')]");
  7266. }
  7267. if (GM_getValue("Check_share_dot_vnn_dot_vn_links", false))
  7268. {
  7269. addFileHost(
  7270. "share.vnn\.vn\/\\w+",
  7271. '"index,follow"|<div class="main" id="download-box">',
  7272. '<meta name="description" content="" />|<h1>Không tìm thấy file bạn yêu cầu</h1>',
  7273. 'optional--',
  7274. //'optional--',
  7275. "//a[contains(@href,'share.vnn.vn')]");
  7276. }
  7277. if (GM_getValue("Check_upfile_dot_vn_links", false))
  7278. {
  7279. addFileHost(
  7280. "upfile\.vn\/\\w+",
  7281. 'download-timer',
  7282. '<meta name="description" content="Upload files|<meta name="description" content="Error "',
  7283. 'optional--',
  7284. //'optional--',
  7285. "//a[contains(@href,'upfile.vn')]");
  7286. }
  7287. if (GM_getValue("Check_firedrive_dot_com_links", false))
  7288. {
  7289. addFileHost(
  7290. "firedrive\\.com\/file\/\\w{16}",
  7291. 'as Free User|<a class="continue"|Continue to file|#feedback_btn|application file_standalone',
  7292. 'Welcome to PutLocker|<div class="sad_face_image">|404:',
  7293. 'undergoing scheduled maintenance',
  7294. "//a[contains(@href,'firedrive.com/file')]"
  7295. );
  7296. }
  7297. if (GM_getValue("Check_aisfile_dot_com_links", false))
  7298. {
  7299. addFileHost(
  7300. "aisfile\.com\/\\w+",
  7301. '<h3 style="text-align:left;">|align=right><b>Filename:',
  7302. '<div style="width:500px;text-align:left;">|File Not Found',
  7303. 'optional--',
  7304. //'optional--',
  7305. "//a[contains(@href,'aisfile.com')]");
  7306. }
  7307. if (GM_getValue("Check_usersfiles_dot_com_links", false))
  7308. {
  7309. addFileHost(
  7310. "usersfiles\.com\/\\w+",
  7311. 'class="btn btn-success|id="btn_download" class="btn"',
  7312. '<div style="width:500px;text-align:left;">',
  7313. 'optional--',
  7314. //'optional--',
  7315. "//a[contains(@href,'usersfiles.com')]");
  7316. }
  7317. if (GM_getValue("Check_pan_dot_baidu_dot_com_links", false))
  7318. {
  7319. addFileHost(
  7320. "pan.baidu\.com\/\\w+",
  7321. 'target="_blank" title=|share-personal-info',
  7322. 'share_notfound.png|background:#f9f9f9',
  7323. 'optional--',
  7324. //'optional--',
  7325. "//a[contains(@href,'pan.baidu.com')]");
  7326. }
  7327. if (GM_getValue("Check_yunpan_dot_cn_links", false))
  7328. {
  7329. addFileHost(
  7330. "yunpan\.cn\/\\w+",
  7331. 'class="icon icon-download',
  7332. 'content="360|http://p5.qhimg.com/t01d1c98667df9dc6cc.jpg',
  7333. 'optional--',
  7334. //'optional--',
  7335. "//a[contains(@href,'yunpan.cn')]");
  7336. }
  7337. if (GM_getValue("Check_file_dash_upload_dot_net_links", false))
  7338. {
  7339. addFileHost(
  7340. "(?:en\\.|)file\\-upload\\.net\/download\\-\\d+\/\\w+",
  7341. 'getElementById("downbild")|style.display',
  7342. 'hochgeladene Datei nicht gefunden werden|has not been found',
  7343. 'optional--',
  7344. //'optional--',
  7345. "//a[contains(@href,'file-upload.net')]");
  7346. }
  7347. if (GM_getValue("Check_gulfup_dot_com_links", false))
  7348. {
  7349. addFileHost(
  7350. "gulfup\.com\/",
  7351. '<!-- Downlod template -->|download.gif',
  7352. '<!-- Errors template -->|class="error">|<!-- form upload -->|[ رفع الملفات ]',
  7353. 'optional--',
  7354. //'optional--',
  7355. "//a[contains(@href,'gulfup.com')]");
  7356. }
  7357. if (GM_getValue("Check_datafilehost_dot_com_links", false))
  7358. {
  7359. addFileHost(
  7360. "datafilehost\\.com\/(?:download-\\w+\\.html|d\/\\w+)",
  7361. 'dldtable">',
  7362. 'does not exist\\.',
  7363. 'optional--',
  7364. //'optional--',
  7365. "//a[contains(@href,'datafilehost.com')]");
  7366. }
  7367. if (GM_getValue("Check_box_dot_com_links", false))
  7368. {
  7369. addFileHost(
  7370. "box\.com\/\\w+",
  7371. 'download-file-btn|id="download_button',
  7372. 'BIyMin.png| <div class="error_message|link has been removed',
  7373. 'optional--',
  7374. //'optional--',
  7375. "//a[contains(@href,'app.box.com')]");
  7376. }
  7377. if (GM_getValue("Check_dropbox_dot_com_links", false))
  7378. {
  7379. addFileHost(
  7380. "dropbox\.com\/s\/\\w+",
  7381. 'default_content_download_button" class="freshbutton-blue">|content_download_button',
  7382. '>Nothing Here<|>Error (404)<',
  7383. 'title>Dropbox - 509|Error (403)|Error: 429',
  7384. "//a[contains(@href,'dropbox.com')]");
  7385. }
  7386. if (GM_getValue("Check_box_dot_net_links", false))
  7387. {
  7388. addFileHost(
  7389. "box\.net\/\\w+",
  7390. 'download-file-btn|id="download_button',
  7391. 'BIyMin.png| <div class="error_message',
  7392. 'optional--',
  7393. //'optional--',
  7394. "//a[contains(@href,'box.net')]");
  7395. }
  7396. if (GM_getValue("Check_fileband_dot_com_links", false))
  7397. {
  7398. addFileHost(
  7399. "fileband\.com\/\\w+",
  7400. 'value="download1">|name="id" value=',
  7401. '<div style="width:500px;text-align:left;">|not be found',
  7402. 'optional--',
  7403. //'optional--',
  7404. "//a[contains(@href,'fileband.com')]");
  7405. }
  7406. if (GM_getValue("Check_lumfile_dot_com_links", false))
  7407. {
  7408. addFileHost(
  7409. "lumfile\.com\/\\w+",
  7410. '<div style="width:900px;">',
  7411. '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;">',
  7412. 'optional--',
  7413. "//a[contains(@href,'lumfile.com')]");
  7414. }
  7415. if (GM_getValue("Check_lumfile_dot_se_links", false))
  7416. {
  7417. addFileHost(
  7418. "lumfile\.se\/\\w+",
  7419. '<div style="width:900px;">',
  7420. '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;">',
  7421. 'optional--',
  7422. "//a[contains(@href,'lumfile.se')]");
  7423. }
  7424. if (GM_getValue("Check_lumfile_dot_eu_links", false))
  7425. {
  7426. addFileHost(
  7427. "lumfile\.eu\/\\w+",
  7428. '<div style="width:900px;">',
  7429. '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;">',
  7430. 'optional--',
  7431. "//a[contains(@href,'lumfile.eu')]");
  7432. }
  7433. if (GM_getValue("Check_uploadrocket_dot_net_links", false))
  7434. {
  7435. addFileHost(
  7436. "uploadrocket\.net\/\\w+",
  7437. '<font style="font-size:12px;">|<h2>Download File|method_isfree',
  7438. 'font style="color:#d33;|File Not Found',
  7439. 'optional--',
  7440. //'optional--',
  7441. "//a[contains(@href,'uploadrocket.net')]");
  7442. }
  7443. if (GM_getValue("Check_filedropper_dot_com_links", false))
  7444. {
  7445. addFileHost(
  7446. "filedropper\.com\/\\w+",
  7447. 'background:#ddd;|width:985px; ',
  7448. 'background-color:#FFFFFF;|margin-left: -400px;',
  7449. 'optional--',
  7450. //'optional--',
  7451. "//a[contains(@href,'filedropper.com')]");
  7452. }
  7453. if (GM_getValue("Check_tropicshare_dot_com_links", false))
  7454. {
  7455. addFileHost(
  7456. "tropicshare\\.com\/files\/\\d+",
  7457. 'MB</span>|GB</span>|KB</span>',
  7458. '>FNF<|size: </span>',
  7459. 'optional--',
  7460. //'optional--',
  7461. "//a[contains(@href,'tropicshare.com')]");
  7462. }
  7463. if (GM_getValue("Check_goldbytez_dot_com_links", false))
  7464. {
  7465. addFileHost(
  7466. "goldbytez\.com\/\\w+",
  7467. '<h2>Download</h2>|<center><h2>File: <font color="red">',
  7468. '<div style="width:500px;text-align:left;">|<h2>Error</h2>',
  7469. 'optional--',
  7470. //'optional--',
  7471. "//a[contains(@href,'goldbytez.com')]");
  7472. }
  7473. if (GM_getValue("Check_worldbytez_dot_com_links", false))
  7474. {
  7475. addFileHost(
  7476. "worldbytez\.com\/\\w+",
  7477. '<div class="download_type">',
  7478. '<div style="width:500px;text-align:left;">',
  7479. 'optional--',
  7480. //'optional--',
  7481. "//a[contains(@href,'worldbytez.com')]");
  7482. }
  7483. if (GM_getValue("Check_freefilehosting_dot_net_links", false))
  7484. {
  7485. addFileHost(
  7486. "freefilehosting\.net\/\\w+",
  7487. 'Type: cbr|Type: rar|Type: jpg|Type: mkv|Type: avi|Type: mpg|Type: mpeg|Type: zip|Type: wmvType: bmpType: gifType: mp4Type: mp3',
  7488. '175px;" value="http://www.freefilehosting.net/"|Filename: <br>',
  7489. 'optional--',
  7490. //'optional--',
  7491. "//a[contains(@href,'freefilehosting.net')]");
  7492. }
  7493. if (GM_getValue("Check_ziddu_dot_com_links", false))
  7494. {
  7495. addFileHost(
  7496. "ziddu\.com\/\\w+",
  7497. 'downloads.ziddu.com|downloadfilelinkicon',
  7498. 'errortracking.php|images/oops.png|fontfamilyverdana error',
  7499. 'optional--',
  7500. //'optional--',
  7501. "//a[contains(@href,'ziddu.com')]");
  7502. }
  7503. if (GM_getValue("Check_exclusiveloader_dot_com_links", false))
  7504. {
  7505. addFileHost(
  7506. "exclusiveloader\.com\/\\w+",
  7507. 'style="padding-top:55px; padding-bottom:65px;">|<h2>Download</h2>',
  7508. 'File Not Found|width:322px;text-align:left;" class="no_file">',
  7509. 'optional--',
  7510. //'optional--',
  7511. "//a[contains(@href,'exclusiveloader.com')]");
  7512. }
  7513. if (GM_getValue("Check_sharerapid_dot_cz_links", false))
  7514. {
  7515. addFileHost(
  7516. "sharerapid\.cz\/\\w+",
  7517. 'value="Stáhnout"|soubor" style|Stahování je povoleno pouze pro přihlášené uživatele',
  7518. 'error_div">|404 - Not Found',
  7519. 'optional--',
  7520. //'optional--',
  7521. "//a[contains(@href,'sharerapid.cz')]");
  7522. }
  7523. if (GM_getValue("Check_sdilej_dot_cz_links", false))
  7524. {
  7525. addFileHost(
  7526. "sdilej\.cz\/\\w+",
  7527. 'class="page-download"',
  7528. '<h2 class="red">|czshare.com|sponsored listings|This domain is for sale',
  7529. 'optional--',
  7530. //'optional--',
  7531. "//a[contains(@href,'sdilej.cz')]");
  7532. }
  7533. if (GM_getValue("Check_lafiles_dot_com_links", false))
  7534. {
  7535. addFileHost(
  7536. "lafiles\.com\/\\w+",
  7537. '<div id="pay_modes">',
  7538. '<b class="err"></b>',
  7539. 'optional--',
  7540. //'optional--',
  7541. "//a[contains(@href,'lafiles.com')]");
  7542. }
  7543. if (GM_getValue("Check_fboom_dot_me_links", false))
  7544. {
  7545. addFileHost(
  7546. "fboom\.me\/\\w+",
  7547. 'id="download-free" href="#"',
  7548. 'class="error-v1-title">404<|File not found or deleted',
  7549. 'optional--',
  7550. //'optional--',
  7551. "//a[contains(@href,'fboom.me')]");
  7552. }
  7553. if (GM_getValue("Check_fileboom_dot_me_links", false))
  7554. {
  7555. addFileHost(
  7556. "fileboom\.me\/\\w+",
  7557. 'id="download-free" href="#"',
  7558. 'class="error-v1-title">404<|File not found or deleted',
  7559. 'optional--',
  7560. //'optional--',
  7561. "//a[contains(@href,'fileboom.me')]");
  7562. }
  7563. if (GM_getValue("Check_filecore_dot_co_dot_nz_links", false))
  7564. {
  7565. addFileHost(
  7566. "filecore\.co.nz\/\\w+",
  7567. 'btn_download',
  7568. '<div style="width:500px;text-align:left;">',
  7569. 'optional--',
  7570. //'optional--',
  7571. "//a[contains(@href,'filecore.co.nz')]");
  7572. }
  7573. if (GM_getValue("Check_acefile_dot_net_links", false))
  7574. {
  7575. addFileHost(
  7576. "acefile\.net\/\\w+",
  7577. 'align=right nowrap><b>',
  7578. 'File Not Found|<div style="width:322px;text-align:left;" class="no_file">',
  7579. 'optional--',
  7580. //'optional--',
  7581. "//a[contains(@href,'acefile.net')]");
  7582. }
  7583. if (GM_getValue("Check_megarapid_dot_cz_links", false))
  7584. {
  7585. addFileHost(
  7586. "megarapid\.cz\/\\w+",
  7587. 'value="Stáhnout"|soubor" style|Stahování je povoleno pouze pro přihlášené uživatele',
  7588. 'error_div">|404 - Not Found',
  7589. 'optional--',
  7590. //'optional--',
  7591. "//a[contains(@href,'megarapid.cz')]");
  7592. }
  7593. if (GM_getValue("Check_yadi_dot_sk_links", false))
  7594. {
  7595. addFileHost(
  7596. "yadi\.sk\/\\w+",
  7597. 'twitter:site|View and download',
  7598. 'error code|Nothing found',
  7599. 'optional--',
  7600. //'optional--',
  7601. "//a[contains(@href,'yadi.sk')]");
  7602. }
  7603. if (GM_getValue("Check_imdb_dot_com_links", false))
  7604. {
  7605. addFileHost(
  7606. "imdb\.com\/\\w+",
  7607. 'imdb.com',
  7608. '404 Error',
  7609. 'optional--',
  7610. "//a[contains(@href,'imdb.com')]");
  7611. }
  7612. if (GM_getValue("Check_hitfile_dot_net_links", false))
  7613. {
  7614. addFileHost(
  7615. "hitfile\.net\/\\w+",
  7616. 'class="download-file',
  7617. 'style="width:16px;height:16px;border:0;|File not found|Файл не найден. Возможно он был удален',
  7618. 'optional--',
  7619. //'optional--',
  7620. "//a[contains(@href,'hitfile.net')]");
  7621. }
  7622. if (GM_getValue("Check_uploadto_dot_us_links", false))
  7623. {
  7624. addFileHost(
  7625. "uploadto\\.us\/file\/details\/[\\w+-]",
  7626. 'name="recaptcha_response',
  7627. '="/folder/add"|>File (?:not found|restricted|has been deleted)|<title>UPLOADTO.US</title>',
  7628. 'btn-large btn-danger">|Account limitation notice|502 Bad Gateway',
  7629. "//a[contains(@href,'uploadto.us/file')]",
  7630. true);
  7631. }
  7632. if (GM_getValue("Check_nitroflare_dot_com_links", false))
  7633. {
  7634. addFileHost(
  7635. "nitroflare\.com\/\\w+",
  7636. 'alert.png|LowSpeedMeter.png',
  7637. 'file has been removed|id="error" style="display',
  7638. 'optional--',
  7639. "//a[contains(@href,'nitroflare.com')]");
  7640. }
  7641. if (GM_getValue("Check_up_dot_top4top_dot_net_links", false))
  7642. {
  7643. addFileHost(
  7644. "up.top4top\.net\/\\w+",
  7645. 'start Downlod template',
  7646. 'start err template',
  7647. 'optional--',
  7648. "//a[contains(@href,'up.top4top.net')]");
  7649. }
  7650. if (GM_getValue("Check_filejoker_dot_net_links", false))
  7651. {
  7652. addFileHost(
  7653. "filejoker\.net\/\\w+",
  7654. 'button id="regular-download">Slow|method_free" value="1|<div id="download" class="download0">',
  7655. 'File Not Found|class="not_found|<div id="download" class="not_found">',
  7656. 'optional--',
  7657. "//a[contains(@href,'filejoker.net')]");
  7658. }
  7659. if (GM_getValue("Check_free_dot_fr_links", false))
  7660. {
  7661. addFileHost(
  7662. "(?:dl.\\.|)free\\.fr",
  7663. 'Valider et t&eacute;l&eacute',
  7664. 'Fichier inexistant',
  7665. 'optional--',
  7666. "//a[contains(@href,'free.fr')]");
  7667. }
  7668. if (GM_getValue("Check_gboxes_dot_com_links", false))
  7669. {
  7670. addFileHost(
  7671. "gboxes\.com\/\\w+",
  7672. 'You have requested|color="red">http://www.gboxes.com',
  7673. 'File Not Found|<div style="width:500px;text-align:left;">',
  7674. 'optional--',
  7675. "//a[contains(@href,'gboxes.com')]");
  7676. }
  7677. if (GM_getValue("Check_1fichier_dot_com_links", false))
  7678. {
  7679. addFileHost(
  7680. "(?:\\w{10}\\.(?:1fichier|dl4free)\\.com\/)|(?:(?:1fichier|dl4free)\\.com\/\\?\\w{10})",
  7681. '<title>Download</title>|<br/>You must wait|<input type="submit" value="Download" ',
  7682. 'File not found|file could not be found|Select files to send',
  7683. 'optional--',
  7684. "//a[contains(@href,'1fichier.com/') or contains(@href,'dl4free.com/')]"
  7685. );
  7686. }
  7687. if (GM_getValue("Check_led_dot_wf_links", false))
  7688. {
  7689. addFileHost(
  7690. "led\.wf\/\\w+",
  7691. 'logo_0.png|downloads.gif"',
  7692. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link',
  7693. 'optional--',
  7694. "//a[contains(@href,'led.wf')]");
  7695. }
  7696. if (GM_getValue("Check_lan_dot_wf_links", false))
  7697. {
  7698. addFileHost(
  7699. "lan\.wf\/\\w+",
  7700. 'logo_0.png|downloads.gif"',
  7701. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link',
  7702. 'optional--',
  7703. "//a[contains(@href,'lan.wf')]");
  7704. }
  7705. if (GM_getValue("Check_adlink_dot_wf_links", false))
  7706. {
  7707. addFileHost(
  7708. "adlink\.wf\/\\w+",
  7709. 'logo_0.png|downloads.gif"',
  7710. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link',
  7711. 'optional--',
  7712. "//a[contains(@href,'adlink.wf')]");
  7713. }
  7714. if (GM_getValue("Check_click_dot_tf_links", false))
  7715. {
  7716. addFileHost(
  7717. "click\.tf\/\\w+",
  7718. 'logo_0.png|downloads.gif"',
  7719. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link',
  7720. 'optional--',
  7721. "//a[contains(@href,'click.tf')]");
  7722. }
  7723. if (GM_getValue("Check_ssh_dot_tf_links", false))
  7724. {
  7725. addFileHost(
  7726. "ssh\.tf\/\\w+",
  7727. 'logo_0.png|downloads.gif"',
  7728. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link',
  7729. 'optional--',
  7730. "//a[contains(@href,'ssh.tf')]");
  7731. }
  7732. if (GM_getValue("Check_ssh_dot_yt_links", false))
  7733. {
  7734. addFileHost(
  7735. "ssh\.yt\/\\w+",
  7736. 'logo_0.png|downloads.gif"',
  7737. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link',
  7738. 'optional--',
  7739. "//a[contains(@href,'ssh.yt')]");
  7740. }
  7741. if (GM_getValue("Check_yep_dot_pm_links", false))
  7742. {
  7743. addFileHost(
  7744. "yep\.pm\/\\w+",
  7745. 'logo_0.png|downloads.gif"',
  7746. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link',
  7747. 'optional--',
  7748. "//a[contains(@href,'yep.pm')]");
  7749. }
  7750. if (GM_getValue("Check_kyc_dot_pm_links", false))
  7751. {
  7752. addFileHost(
  7753. "kyc\.pm\/\\w+",
  7754. 'logo_0.png|downloads.gif"',
  7755. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link',
  7756. 'optional--',
  7757. "//a[contains(@href,'kyc.pm')]");
  7758. }
  7759. if (GM_getValue("Check_brupload_dot_net_links", false))
  7760. {
  7761. addFileHost(
  7762. "brupload\.net\/\\w+",
  7763. 'Download Gratuito',
  7764. '<div style="width:500px;text-align:left;">',
  7765. 'optional--',
  7766. //'optional--',
  7767. "//a[contains(@href,'brupload.net')]");
  7768. }
  7769. if (GM_getValue("Check_cloudzilla_dot_to_links", false))
  7770. {
  7771. addFileHost(
  7772. "cloudzilla\.to\/\\w+",
  7773. 'btn1" id="free_download|onclick="freeDownload|id="pwd_protected">',
  7774. 'File not found|/imgs/broken.png',
  7775. 'optional--',
  7776. //'optional--',
  7777. "//a[contains(@href,'cloudzilla.to')]");
  7778. }
  7779. if (GM_getValue("Check_fileparadox_dot_in_links", false))
  7780. {
  7781. addFileHost(
  7782. "fileparadox\.in\/\\w+",
  7783. 'CONTENT="Download File|method_free_file',
  7784. '>File Not Found<|id="no_filedownload">|FILE NOT FOUND',
  7785. 'optional--',
  7786. //'optional--',
  7787. "//a[contains(@href,'fileparadox.in')]");
  7788. }
  7789. if (GM_getValue("Check_clicknupload_dot_com_links", false))
  7790. {
  7791. addFileHost(
  7792. "clicknupload\.com\/\\w+",
  7793. 'name="method_free',
  7794. 'File Not Found',
  7795. 'optional--',
  7796. //'optional--',
  7797. "//a[contains(@href,'clicknupload.com')]");
  7798. }
  7799. if (GM_getValue("Check_ex_dash_load_dot_com_links", false))
  7800. {
  7801. addFileHost(
  7802. "ex-load\.com\/\\w+",
  7803. 'name="method_free|<p>Download File:</p>',
  7804. 'Folder Not Found|File Not Found|Error 404',
  7805. 'optional--',
  7806. //'optional--',
  7807. "//a[contains(@href,'ex-load.com')]");
  7808. }
  7809. if (GM_getValue("Check_hexupload_dot_com_links", false))
  7810. {
  7811. addFileHost(
  7812. "hexupload\.com\/\\w+",
  7813. 'button" value="Free|type="submit" value=""',
  7814. 'File Not Found|<div style="width:500px;text-align:left;">',
  7815. 'optional--',
  7816. //'optional--',
  7817. "//a[contains(@href,'hexupload.com')]");
  7818. }
  7819. if (GM_getValue("Check_wizupload_dot_com_links", false))
  7820. {
  7821. addFileHost(
  7822. "wizupload\.com\/\\w+",
  7823. 'btn_download',
  7824. '>File Not Found<',
  7825. 'optional--',
  7826. //'optional--',
  7827. "//a[contains(@href,'wizupload.com')]");
  7828. }
  7829. if (GM_getValue("Check_filecloud_dot_cc_links", false))
  7830. {
  7831. addFileHost(
  7832. "filecloud\.cc\/\\w+",
  7833. 'align="center"><input type="submit" name=',
  7834. 'File Not Found|<Title>FileCloud - Premium Hosting Service<',
  7835. 'optional--',
  7836. //'optional--',
  7837. "//a[contains(@href,'filecloud.cc')]");
  7838. }
  7839. if (GM_getValue("Check_inclouddrive_dot_com_links", false))
  7840. {
  7841. addFileHost(
  7842. "inclouddrive\.com\/\\w+",
  7843. 'initfreedownload',
  7844. '<title>Content Unavailable|The file you are trying to download is no longer available',
  7845. 'optional--',
  7846. //'optional--',
  7847. "//a[contains(@href,'inclouddrive.com')]");
  7848. }
  7849. if (GM_getValue("Check_radicalshare_dot_com_links", false))
  7850. {
  7851. addFileHost(
  7852. "radicalshare\.com\/\\w+",
  7853. 'value="download1|name="method_free"',
  7854. 'File Not Found<|<div style="width:500px;text-align:left;">',
  7855. 'optional--',
  7856. //'optional--',
  7857. "//a[contains(@href,'radicalshare.com')]");
  7858. }
  7859. if (GM_getValue("Check_sharemods_dot_com_links", false))
  7860. {
  7861. addFileHost(
  7862. "sharemods\.com\/\\w+",
  7863. 'name="method_free"',
  7864. 'File Not Found<',
  7865. 'optional--',
  7866. //'optional--',
  7867. "//a[contains(@href,'sharemods.com')]");
  7868. }
  7869. if (GM_getValue("Check_hostr_dot_co_links", false))
  7870. {
  7871. addFileHost(
  7872. "hostr\.co\/\\w+",
  7873. 'method="get"',
  7874. 'File not found<|error-page',
  7875. 'optional--',
  7876. //'optional--',
  7877. "//a[contains(@href,'hostr.co')]");
  7878. }
  7879. if (GM_getValue("Check_filepi_dot_com_links", false))
  7880. {
  7881. addFileHost(
  7882. "filepi\.com\/\\w+",
  7883. 'id="button_start">',
  7884. 'File not found',
  7885. 'optional--',
  7886. //'optional--',
  7887. "//a[contains(@href,'filepi.com')]");
  7888. }
  7889. if (GM_getValue("Check_tikfile_dot_com_links", false))
  7890. {
  7891. addFileHost(
  7892. "tikfile\.com\/\\w+",
  7893. 'btn_download',
  7894. 'File Not Found',
  7895. 'optional--',
  7896. //'optional--',
  7897. "//a[contains(@href,'tikfile.com')]");
  7898. }
  7899. if (GM_getValue("Check_cloudsix_dot_me_links", false))
  7900. {
  7901. addFileHost(
  7902. "cloudsix\.me\/\\w+",
  7903. 'name="method_free"',
  7904. 'File Not Found|width:500px;text-align:left;">',
  7905. 'optional--',
  7906. //'optional--',
  7907. "//a[contains(@href,'cloudsix.me')]");
  7908. }
  7909. if (GM_getValue("Check_neodrive_dot_co_links", false))
  7910. {
  7911. addFileHost(
  7912. "neodrive\.co\/\\w+",
  7913. 'btn1" id="free_download|onclick="freeDownload|id="pwd_protected">',
  7914. 'File not found|/imgs/broken.png',
  7915. 'optional--',
  7916. //'optional--',
  7917. "//a[contains(@href,'neodrive.co')]");
  7918. }
  7919. if (GM_getValue("Check_chayfile_dot_com_links", false))
  7920. {
  7921. addFileHost(
  7922. "chayfile\.com\/\\w+",
  7923. 'name="method_free"',
  7924. 'File Not Found|<h3>The file was removed by administrator</h3>',
  7925. 'optional--',
  7926. //'optional--',
  7927. "//a[contains(@href,'chayfile.com')]");
  7928. }
  7929. if (GM_getValue("Check_xfileload_dot_com_links", false))
  7930. {
  7931. addFileHost(
  7932. "xfileload\.com\/\\w+",
  7933. 'Filename:|Имя файла:|Dateiname:|nom de fichier :|اسم الملف:|Dosya AdД±|Nazwa:|Nombre de fichero:|NamaFile:|Bestandsnaam:|שם קובץ:"',
  7934. '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..|הקובץ שחיפשת לא נמצא.',
  7935. 'optional--',
  7936. //'optional--',
  7937. "//a[contains(@href,'xfileload.com')]");
  7938. }
  7939. if (GM_getValue("Check_rockfile_dot_eu_links", false))
  7940. {
  7941. addFileHost(
  7942. "rockfile\.eu\/\\w+",
  7943. 'You have requested:',
  7944. 'The file you were looking for could not be found, sorry for any inconvenience.',
  7945. 'optional--',
  7946. //'optional--',
  7947. "//a[contains(@href,'rockfile.eu')]");
  7948. }
  7949. if (GM_getValue("Check_24uploading_dot_com_links", false))
  7950. {
  7951. addFileHost(
  7952. "24uploading\.com\/\\w+",
  7953. 'File:|Download Speed:',
  7954. '<b>File Not Found</b>',
  7955. 'optional--',
  7956. //'optional--',
  7957. "//a[contains(@href,'24uploading.com')]");
  7958. }
  7959. if (GM_getValue("Check_tusfiles_dot_net_links", false))
  7960. {
  7961. addFileHost(
  7962. "tusfiles\.net\/\\w+",
  7963. 'i/icon/dll.png"|>Start download<br',
  7964. 'no longer available<|i/ino.png"',
  7965. 'optional--',
  7966. //'optional--',
  7967. "//a[contains(@href,'tusfiles.net')]");
  7968. }
  7969. if (GM_getValue("Check_2drive_dot_net_links", false))
  7970. {
  7971. addFileHost(
  7972. "2drive\.net\/\\w+",
  7973. 'value="Free Download"',
  7974. 'File Not Found',
  7975. 'optional--',
  7976. //'optional--',
  7977. "//a[contains(@href,'2drive.net')]");
  7978. }
  7979. if (GM_getValue("Check_jumbofile_dot_net_links", false))
  7980. {
  7981. addFileHost(
  7982. "jumbofile\.net\/\\w+",
  7983. 'button" class="" value="Free',
  7984. 'This File Was Deleted',
  7985. 'optional--',
  7986. //'optional--',
  7987. "//a[contains(@href,'jumbofile.net')]");
  7988. }
  7989. if (GM_getValue("Check_ozofiles_dot_com_links", false))
  7990. {
  7991. addFileHost(
  7992. "ozofiles\.com\/\\w+",
  7993. 'button" value="Free',
  7994. 'File Not Found|width:500px;text-align:left;">',
  7995. 'optional--',
  7996. //'optional--',
  7997. "//a[contains(@href,'ozofiles.com')]");
  7998. }
  7999. if (GM_getValue("Check_loudupload_dot_net_links", false))
  8000. {
  8001. addFileHost(
  8002. "loudupload\.net\/\\w+",
  8003. 'value="Get Links',
  8004. 'File Not Found',
  8005. 'optional--',
  8006. //'optional--',
  8007. "//a[contains(@href,'loudupload.net')]");
  8008. }
  8009. if (GM_getValue("Check_rapidsonic_dot_com_links", false))
  8010. {
  8011. addFileHost(
  8012. "(rapidsonic|fileparadox)\\.com\/\\w+",
  8013. 'method_free" id="submit_btn|<h4><i class="icon_document_alt"></i>Download File</h4>',
  8014. '>File Not Found<|id="no_filedownload">|>FILE NOT FOUND<|file has been deleted|No such file with this filename',
  8015. 'optional--',
  8016. //'optional--',
  8017. "//a[contains(@href,'rapidsonic') or contains(@href,'fileparadox.com')]");
  8018. }
  8019. if (GM_getValue("Check_krotix_dot_net_links", false))
  8020. {
  8021. addFileHost(
  8022. "krotix\.net\/\\w+",
  8023. 'btn btn-warning|btn-free',
  8024. 'pageErrors|This File has been removed',
  8025. 'optional--',
  8026. //'optional--',
  8027. "//a[contains(@href,'krotix.net')]");
  8028. }
  8029. if (GM_getValue("Check_userscloud_dot_com_links", false))
  8030. {
  8031. addFileHost(
  8032. "userscloud\.com\/\\w+",
  8033. 'btn_download',
  8034. '>Server OFFLINE|background:#D3D3D3;border-bottom:1px solid #BBB;font:bold 13px Verdana;padding:3px;">',
  8035. 'optional--',
  8036. //'optional--',
  8037. "//a[contains(@href,'userscloud.com')]");
  8038. }
  8039. if (GM_getValue("Check_kumpulbagi_dot_com_links", false))
  8040. {
  8041. addFileHost(
  8042. "kumpulbagi\.com\/\\w+",
  8043. 'class="button download',
  8044. 'internal server error',
  8045. 'optional--',
  8046. //'optional--',
  8047. "//a[contains(@href,'kumpulbagi.com')]");
  8048. }
  8049. if (GM_getValue("Check_faststore_dot_org_links", false))
  8050. {
  8051. addFileHost(
  8052. "faststore\.org\/\\w+",
  8053. 'name="method_free',
  8054. 'File Not Found',
  8055. 'optional--',
  8056. //'optional--',
  8057. "//a[contains(@href,'faststore.org')]");
  8058. }
  8059.  
  8060. }
  8061. //start here
  8062.  
  8063. //hosts with direct download, so they must be requested for headers only
  8064. function initFileHostsHeadersOnly()
  8065. {
  8066. function addFileHostHeadersOnly(linkRegex, isAliveRegex, isDeadRegex, xpathEx, ispremRegex)
  8067. {
  8068. var host = new Array(5);
  8069. host[0] = linkRegex;
  8070. host[1] = isAliveRegex;
  8071. host[2] = isDeadRegex;
  8072. host[3] = xpathEx;
  8073. host[4] = ispremRegex;
  8074. http_file_hosts_headers_only.push(host);
  8075. }
  8076. if (GM_getValue("Check_uloziste_dot_com_links", false))
  8077. {
  8078. addFileHostHeadersOnly(
  8079. "(?:|files\\.)uloziste\\.com\/\\w+\/\\w+",
  8080. 'Connection: Keep-Alive',
  8081. 'Content-Length: 3857',
  8082. "//a[contains(@href,'uloziste.com')]"
  8083. )
  8084. }
  8085. if (GM_getValue("Check_adrive_dot_com_links", false))
  8086. {
  8087. addFileHostHeadersOnly(
  8088. "adrive\\.com\/public\/\\w+",
  8089. 'Connection: keep-alive',
  8090. 'orig_ref=deleted',
  8091. "//a[contains(@href,'adrive.com')]"
  8092. )
  8093. }
  8094. if (GM_getValue("Check_myupload_dot_dk_links", false))
  8095. {
  8096. addFileHostHeadersOnly(
  8097. "myupload\\.dk\/showfile\/\\w+",
  8098. 'Expires:',
  8099. 'squeeze1\\s+Vary',
  8100. "//a[contains(@href,'myupload.dk/showfile')]"
  8101. )
  8102. }
  8103. }
  8104. //CustomRules
  8105. //functions add...Host copied here
  8106. function addObsoleteHost(linkRegex, xpathEx)
  8107. {
  8108. var host = new Array(2);
  8109. host[0] = linkRegex;
  8110. host[1] = xpathEx;
  8111. http_file_hosts_obsolete.push(host);
  8112. }
  8113. function addFileHost(linkRegex, isAliveRegex, isDeadRegex, isUnavaRegex, xpathEx, tryLoop, ispremRegex)
  8114. {
  8115. var host = new Array(7);
  8116. host[0] = linkRegex;
  8117. host[1] = isAliveRegex;
  8118. host[2] = isDeadRegex;
  8119. host[3] = isUnavaRegex;
  8120. host[4] = xpathEx;
  8121. tryLoop ? host[5] = true : host[5] = false;
  8122. host[6] = ispremRegex;
  8123. http_file_hosts.push(host);
  8124. }
  8125. function addFileHostHeadersOnly(linkRegex, isAliveRegex, isDeadRegex, xpathEx, ispremRegex)
  8126. {
  8127. var host = new Array(5);
  8128. host[0] = linkRegex;
  8129. host[1] = isAliveRegex;
  8130. host[2] = isDeadRegex;
  8131. host[3] = xpathEx;
  8132. host[4] = ispremRegex;
  8133. http_file_hosts_headers_only.push(host);
  8134. }
  8135. //takes a fully built rules array and adds the rules to WARLC
  8136. function applyCustomRules(customRules)
  8137. {
  8138. if (!customRules) return;
  8139. var rules, r, i;
  8140. rules = customRules.rules;
  8141. for (i = 0 ; i < rules.length ; i++)
  8142. {
  8143. r = rules[i];
  8144. if (r.enabled)
  8145. {
  8146. switch (r.type)
  8147. {
  8148. case 'single':
  8149. addFileHost(r.urlregex, r.aliveregex, r.deadregex, r.unavaregex, r.premregex||'', r.xpath);
  8150. break;
  8151. case 'headers':
  8152. addFileHostHeadersOnly(r.urlregex, r.aliveregex, r.deadregex, r.xpath, r.premregex);
  8153. break;
  8154. case 'obsolete':
  8155. addObsoleteHost(r.urlregex, r.xpath)
  8156. break;
  8157. }
  8158. }
  8159. }
  8160. }
  8161.  
  8162.  
  8163. function initFileHostsCustom()
  8164. {
  8165. if (Custom_rules && Custom_rules_text)
  8166. {
  8167. var msg = '';
  8168. if (newVersion)
  8169. msg = 'New version of W.A.R. Links Checker detected.\n\n';
  8170. else if ((now - last_custom_rules_nag) >= 60*24*60*60*1000)
  8171. msg = '60 or more days have passed since this notification.\n\n';
  8172. if (msg && /^\s*@customrule(?:_obsolete)?\s/mi.test(Custom_rules_text))
  8173. {
  8174. GM_setValue('last_custom_rules_nag', ''+new Date().getTime()); //reset nag
  8175. msg +=
  8176. 'Either new version of W.A.R. Links Checker detected or 60 days passed since this notify.\n'+
  8177. 'Please check that your custom rules haven\'t been built into WARLC.\n'+
  8178. 'If not, please share them with us so they can be included in the next version! Built-in rules are always preferred.\n\n'+
  8179. 'We apologize for this annoying notification, but there is a reason to this.\n'+
  8180. 'Ideally, WARLC would check which of your custom rules have been included and disable them. '+
  8181. 'Unfortunately, there is no easy way to do that, but we don\'t want everybody to just use their custom rules '+
  8182. 'forever without ever checking if the built-in ones have been added/fixed. This is currently the only way '+
  8183. 'to remind you that you should try built-in rules, report missing/non-working ones and share your custom rules.';
  8184. setTimeout(function(){alert(msg)},0);
  8185. }
  8186. var customRules = parseCustomRules(Custom_rules_text);
  8187. if (customRules.warning || customRules.error)
  8188. alert('There were ' + customRules.error + ' errors, ' + customRules.warning + ' warnings, ' +
  8189. customRules.note + ' notes found during Custom Rules processing.\n' + customRules.rules.length + ' valid rules found.\n\n' +
  8190. JSON.stringify(customRules.info, null, ' '));
  8191. applyCustomRules(customRules);
  8192. }
  8193. }
  8194. //end of CustomRules processing
  8195.  
  8196.  
  8197.  
  8198. } //end of function start
  8199.  
  8200.  
  8201.  
  8202. function initClipBoardTools()
  8203. {
  8204. unsafeWindow.copyToClipboard = function(text)
  8205. {
  8206. try
  8207. {
  8208. this.netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
  8209.  
  8210. var str = Components.classes["@mozilla.org/supports-string;1"].
  8211. createInstance(Components.interfaces.nsISupportsString);
  8212. if (!str) return false;
  8213.  
  8214. str.data = text;
  8215.  
  8216. var trans = Components.classes["@mozilla.org/widget/transferable;1"].
  8217. createInstance(Components.interfaces.nsITransferable);
  8218. if (!trans) return false;
  8219.  
  8220. trans.addDataFlavor("text/unicode");
  8221. trans.setTransferData("text/unicode", str, text.length * 2);
  8222.  
  8223. var clipid = Components.interfaces.nsIClipboard;
  8224. var clip = Components.classes["@mozilla.org/widget/clipboard;1"].getService(clipid);
  8225. if (!clip) return false;
  8226.  
  8227. clip.setData(trans, null, clipid.kGlobalClipboard);
  8228. } catch (e) {
  8229. GM_log("Error copyToClipboard : " + e);
  8230. alert(e + "\n\nsigned.applets.codebase_principal_support must be set true in about:config")
  8231. }
  8232. }
  8233. }
  8234.  
  8235.  
  8236.  
  8237. //CustomRules
  8238.  
  8239. function escapeRegex(str)
  8240. {
  8241. return str.replace(/[\-\[\]{}()*+?.,\\\^$|#]/g, "\\$&");
  8242. }
  8243.  
  8244.  
  8245. //called internally from parseCustomRules.
  8246. //expected: rule object with array fields baseurl, alivematch etc, everything must already be checked for input errors
  8247. //returns the rule object with string fields urlregex, xpath, aliveregex etc built from the arrays
  8248. function makeCustomRule(rule)
  8249. {
  8250. function makeMatchRegex(arrmatch)
  8251. {
  8252. return escapeRegex(arrmatch.join('\n'))
  8253. .replace(/ +/g, '\\s+') //two or more spaces to any whitespace
  8254. .replace(/\n/g,'|'); //join together
  8255. }
  8256. if (rule.alivematch) rule.aliveregex = makeMatchRegex(rule.alivematch);
  8257. if (rule.deadmatch) rule.deadregex = makeMatchRegex(rule.deadmatch);
  8258. if (rule.unavamatch) rule.unavaregex = makeMatchRegex(rule.unavamatch);
  8259. if (rule.premmatch) rule.premregex = makeMatchRegex(rule.premmatch);
  8260. if (rule.baseurl)
  8261. {
  8262. var i, m, urlregex = [], xpath = [], len = rule.baseurl.length;
  8263. for (i = 0 ; i < len ; i++)
  8264. {
  8265. m = rule.baseurl[i].match(/^([a-z0-9\.-]+)(?: +([a-z \.]+) +)?(\/.*)$/);
  8266. if (m[2]) //baseurl in the form: example. com co.uk net /xxx
  8267. {
  8268. 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'])
  8269. urlregex.push( (m[1] + '(?:'+ m[2].replace(/\s+/g,'|') + ')').replace(/\./g,'\\.') + escapeRegex(m[3]) + '.'); //urlregex.push('example\\.(?:com|co\\.uk|net)/xxx.')
  8270. }
  8271. else //baseurl in the form: example.com/xxx
  8272. {
  8273. xpath.push(m[0]);
  8274. urlregex.push(escapeRegex(m[0]) + '.');
  8275. }
  8276. }
  8277. rule.xpath = "//a[contains(@href,'" + xpath.join("') or contains(@href,'") + "')]";
  8278. rule.urlregex = '(?:[a-z0-9\\.-]+\\.)?(?:' + urlregex.join('|') + ')';
  8279. }
  8280. return rule;
  8281. } //function makeCustomRule
  8282.  
  8283.  
  8284. /*
  8285. Takes a string containing custom link checking rules.
  8286. Returns an object with fields:
  8287. info - contains notes, warnings and errors found during parsing
  8288. rules - the array of custom rules
  8289. note, warning, error - number of each of them found during parsing
  8290. Format of the input string:
  8291. One command per line. Command format: @keyword parameter
  8292. Keywords:
  8293. @customrule, @customrule_obsolete, @customrule_headers - begin a new custom rule. Parameter: name of the rule
  8294. @#customrule, @#customrule_obsolete, @#customrule_headers - begin and parse this custom rule, but don't use it. Parameter: name of the rule
  8295. These keywords can be multiple (any of them will work):
  8296. @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...)
  8297. @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+
  8298. @alivelink, @deadlink - example links
  8299. @baseurl is always required, @alivematch and @deadmatch are required except for obsolete. @unavamatch is ignored for obsolete. @*link is optional.
  8300. Lines starting with // and empty lines are ignored.
  8301. Invalid parameters generate errors and those lines are skipped.
  8302. Other lines generate warnings, but are otherwise ignored (also those before the first @customrule line or inside a rule with invalid name).
  8303. Example:
  8304. @customrule filehost
  8305. @baseurl filehost.com/download/
  8306. @baseurl filehost2. com net /d?=
  8307. @alivematch id="download">
  8308. @deadmatch File not found
  8309. @deadmatch File deleted
  8310. */
  8311. function parseCustomRules(rulesStr)
  8312. {
  8313. var linenum, customRules = {'info': [], 'rules': [], 'note': 0, 'warning': 0, 'error': 0};
  8314. function addInfo(type, msg, ln){
  8315. customRules.info.push({'linenum':(ln===undefined ? linenum+1 : ln+1), 'type':type, 'msg':msg});
  8316. customRules[type]++;
  8317. }
  8318. var lines = rulesStr.match(/^(.*)$/gm); //split into array of lines
  8319. if (!lines) return null;
  8320. lines.push('@#customrule _'); //to save the last rule
  8321. var m, linecount = lines.length;
  8322. var keyword, param, constr, rule, err;
  8323. var TLD = '[a-z]{2,7}(?:\\.[a-z]{2,7})?';
  8324. var TLDorTLDlist = '(?:'+TLD+'| '+TLD+'(?: '+TLD+'){0,9} )'; //TLD or space-separated list of TLDs
  8325. var baseurlRE = new RegExp('^([a-z0-9-]{1,30}(?:\\.[a-z0-9-]{1,30}){0,2}\\.)'+TLDorTLDlist+'(/[^\'"\s\$]{0,50})$', 'i');
  8326. var constraints = {
  8327. 'baseurl': {
  8328. 'single': {'min': 1, 'max': 10, 'paramRE': baseurlRE},
  8329. 'headers': {'min': 1, 'max': 10, 'paramRE': baseurlRE},
  8330. 'obsolete': {'min': 1, 'max': 10, 'paramRE': baseurlRE}},
  8331. 'alivematch': {
  8332. 'single': {'min': 1, 'max': 10, 'paramRE': null},
  8333. 'headers': {'min': 1, 'max': 10, 'paramRE': null}},
  8334. 'deadmatch': {
  8335. 'single': {'min': 1, 'max': 10, 'paramRE': null},
  8336. 'headers': {'min': 1, 'max': 10, 'paramRE': null}},
  8337. 'unavamatch': {
  8338. 'single': {'min': 0, 'max': 10, 'paramRE': null}},
  8339. 'alivelink': {
  8340. 'single': {'min': 0, 'max': 10, 'paramRE': null},
  8341. 'headers': {'min': 0, 'max': 10, 'paramRE': null}},
  8342. 'deadlink': {
  8343. 'single': {'min': 0, 'max': 10, 'paramRE': null},
  8344. 'headers': {'min': 0, 'max': 10, 'paramRE': null},
  8345. 'obsolete': {'min': 0, 'max': 10, 'paramRE': null}}
  8346. };
  8347. for (linenum = 0 ; linenum < linecount ; linenum++)
  8348. {
  8349. //capturing groups: 1 23 4 5 6
  8350. m = lines[linenum].match(/^\s*(?:(\/\/.*)|@((#?)(customrule)(?:_(headers|obsolete))?|baseurl|alivematch|deadmatch|unavamatch|alivelink|deadlink)\s+(.+))?$/i);
  8351. if (m)
  8352. {
  8353. if (m[1] || !m[2])
  8354. continue; // ignore empty lines and lines starting with //
  8355. keyword = (m[4] || m[2]).toLowerCase();
  8356. param = m[6];
  8357. if (keyword == 'customrule')
  8358. {
  8359. //save the current rule if all required fields are provided
  8360. if (rule)
  8361. {
  8362. err = false;
  8363. $.each(constraints, function(kw, constraint){
  8364. var l, constr = constraint[rule.type];
  8365. if (constr)
  8366. {
  8367. l = rule[kw] ? rule[kw].length : 0;
  8368. if (l < constr.min || l > constr.max)
  8369. {
  8370. 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);
  8371. err = true;
  8372. }
  8373. }
  8374. });
  8375. if (!err)
  8376. customRules.rules.push(makeCustomRule(rule));
  8377. }
  8378. //start a new rule
  8379. if (/^[\w\.-]{1,30}$/.test(param)) //valid name?
  8380. {
  8381. rule = {
  8382. 'enabled': !m[3],
  8383. 'type': m[5] ? m[5].toLowerCase() : 'single',
  8384. 'name': param
  8385. };
  8386. }
  8387. else
  8388. {
  8389. addInfo('error', 'Invalid rule name. Cannot start a new rule definition.');
  8390. rule = null;
  8391. }
  8392. }
  8393. else //good line format, but keyword other than customrule
  8394. {
  8395. if (!rule)
  8396. {
  8397. addInfo('warning', 'Command outside @CUSTOMRULE definiton. Line skipped.');
  8398. continue;
  8399. }
  8400. if (constraints[keyword])
  8401. {
  8402. constr = constraints[keyword][rule.type];
  8403. if (constr)
  8404. {
  8405. if (constr.paramRE && !constr.paramRE.test(param))
  8406. {
  8407. addInfo('warning', 'Invalid @' + keyword.toUpperCase() + ' parameter. Line Skipped.');
  8408. continue;
  8409. }
  8410. }
  8411. else
  8412. {
  8413. addInfo('note', '@' + keyword.toUpperCase() + ' not applicable for type ' + rule.type.toUpperCase() + '. Line skipped.');
  8414. continue;
  8415. }
  8416. }
  8417. //line OK, save
  8418. rule[keyword] ? rule[keyword].push(param) : rule[keyword] = [param];
  8419. }
  8420. } //if (m)
  8421. else
  8422. addInfo('warning', 'Unknown line format. Line skipped.');
  8423. } //for loop
  8424. return customRules;
  8425. } //function parseCustomRules