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

detects live, dead and premium links.

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

  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.5.3
  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. "xkeepfile.com|Gamesena.com",
  40. // "firedrive.com",
  41. "usersfiles.com",
  42. "pan.baidu.com",
  43. "radicalshare.com",
  44. "cramit.in|cramitin.net",
  45. "dataport.cz",
  46. "datei.to",
  47. "daten-hoster.de|filehosting.org|xtraupload.de",
  48. "demo.ovh.eu",
  49. "depositfiles.com",
  50. "divshare.com",
  51. "easy-share.com|crocko.com",
  52. "easybytez.com",
  53. "edisk.cz",
  54. "euroshare.eu",
  55. "file-upload.net",
  56. "yadi.sk",
  57. "ryushare.com",
  58. "wizupload.com",
  59. "fastshare.cz",
  60. "filefactory.com",
  61. "share.vnn.vn",
  62. "yunpan.cn",
  63. "gulfup.com",
  64. "tropicshare.com",
  65. "cloudzilla.to",
  66. "inclouddrive.com",
  67. "fileflyer.com",
  68. "filerio.com|filekeen.com",
  69. "up.4share.vn",
  70. "upfile.vn",
  71. "datafilehost.com",
  72. "fileband.com",
  73. "worldbytez.com",
  74. "files.mail.ru",
  75. "filepost.com|fp.io",
  76. "filesflash.com",
  77. "box.com",
  78. "box.net",
  79. "goldbytez.com",
  80. "sdilej.cz",
  81. "ex-load.com",
  82. "2drive.net",
  83. "filesmonster.com",
  84. "filestore.to",
  85. "freakshare.net",
  86. "hulkload.com",
  87. "filedropper.com",
  88. "free-uploading.com",
  89. "gamefront.com|filefront.com",
  90. "gettyfile.ru",
  91. "gigapeta.com",
  92. "gigasize.com",
  93. "hellshare.com",
  94. "hellspy.com",
  95. "hitfile.net",
  96. "hostuje.net",
  97. "freefilehosting.net",
  98. "free.fr",
  99. "hulkshare.com",
  100. "hyperfileshare.com",
  101. "filecloud.io|ifile.it",
  102. "ifolder.ru",
  103. "jumbofiles.com",
  104. "uploadrocket.net",
  105. "lafiles.com",
  106. "leteckaposta.cz|sharegadget.com",
  107. "letitbit.net",
  108. "load.to",
  109. "mediafire.com",
  110. "megafileupload.com",
  111. "megashares.com",
  112. "movshare.net",
  113. "muchshare.net",
  114. "myupload.dk",
  115. "narod.ru|narod.yandex.ru",
  116. "netload.in",
  117. "fboom.me",
  118. "fileboom.me",
  119. "openfile.ru",
  120. "partage-facile.com",
  121. "plunder.com",
  122. // "putlocker.com",
  123. "sharerapid.cz",
  124. "exclusiveloader.com",
  125. "acefile.net",
  126. "queenshare.com",
  127. "quickshare.cz",
  128. "rapidgator.net",
  129. "daj.to",
  130. "keep2share.com",
  131. "oboom.com",
  132. "filepi.com",
  133. "neodrive.co",
  134. "rarefile.net",
  135. "rayfile.com",
  136. "rghost.net",
  137. "sendmyway.com",
  138. "clicknupload.com",
  139. "sharemods.com",
  140. "hostr.co",
  141. "sendspace.com",
  142. "sharecash.org",
  143. "share-links.biz",
  144. "share-online.biz|egoshare.com",
  145. "megarapid.cz",
  146. "shareflare.net",
  147. "solidfiles.com",
  148. "led.wf",
  149. "lan.wf",
  150. "adlink.wf",
  151. "click.tf",
  152. "kyc.pm",
  153. "ssh.tf",
  154. "ssh.yt",
  155. "yep.pm",
  156. "stahovanizasms.cz",
  157. "tufiles.ru",
  158. "turbobit.net",
  159. "filecloud.cc",
  160. "tikfile.com",
  161. "cloudsix.me",
  162. "turboupload.com",
  163. "uloz.to|ulozto.cz|bagruj.cz|zachowajto.pl",
  164. "ulozisko.sk",
  165. "uloziste.com",
  166. "unibytes.com",
  167. "upload-il.net|przeslij.net",
  168. "uploaded.to|ul.to",
  169. "uploading.com",
  170. "chayfile.com",
  171. "rockfile.eu",
  172. "24uploading.com",
  173. "uploadspace.pl",
  174. "upnito.sk",
  175. "uptobox.com",
  176. "usaupload.net",
  177. "veehd.com",
  178. "videobb.com",
  179. "vip-file.com",
  180. "webshare.cz",
  181. "xdisk.cz",
  182. "yunfile.com|filemarkets.com",
  183. "ziddu.com",
  184. "krotix.net",
  185. "zippyshare.com",
  186. "rodfile.com",
  187. "migahost.com",
  188. "wikiupload.com",
  189. "uploadstube.de",
  190. "faststore.org",
  191. "flyfiles.net",
  192. "nowdownload.eu",
  193. "prefiles.com",
  194. "axifile.com",
  195. "rapidsonic.com|fileparadox.com",
  196. "hackerbox.org",
  197. "amonshare.com",
  198. "data.hu",
  199. "brupload.net",
  200. "userscloud.com",
  201. "netkups.com",
  202. "edoc.com",
  203. "xfileload.com",
  204. "jumbofile.net",
  205. "kumpulbagi.com",
  206. "uppit.com|up.ht",
  207. "ddlstorage.com",
  208. "downloadani.me",
  209. "filesabc.com",
  210. "sharebeast.com",
  211. "180upload.com",
  212. "verzend.be",
  213. "movreel.com",
  214. "4up.me",
  215. "extmatrix.com",
  216. "sendfiles.nl",
  217. "yourfilestore.com",
  218. "filebig.net",
  219. "sockshare.com",
  220. "nekaka.com",
  221. "file4safe.com",
  222. "tusfiles.net",
  223. "filemac.com",
  224. "idup.in",
  225. "fileswap.com",
  226. "ozofiles.com",
  227. "loudupload.net",
  228. "nosupload.com",
  229. "gboxes.com",
  230. "myvdrive.com|fileserving.com",
  231. "filesin.com",
  232. "novafile.com",
  233. "longfiles.com",
  234. "uploadhero.com",
  235. "uploadbaz.com",
  236. "stahovadlo.cz",
  237. "bitupload.com",
  238. "indowebster.com",
  239. "superload.cz",
  240. "mafiastorage.com",
  241. "4upfiles.com",
  242. "filesmelt.com",
  243. "hellupload.com",
  244. "uploadingit.com",
  245. "stiahni.si",
  246. "sendspace.pl",
  247. "fastshare.org",
  248. "filejoker.net",
  249. "filestore.com.ua",
  250. "secureupload.eu",
  251. "rapidfileshare.net",
  252. "stiahnito.sk",
  253. "rusfolder.com",
  254. "fileover.net",
  255. "catshare.net",
  256. "anonfiles.com",
  257. "mixturecloud.com",
  258. "fileparadox.in",
  259. "filedais.com",
  260. "imdb.com",
  261. "nitroflare.com",
  262. "akafile.com",
  263. "creafile.net",
  264. "hugefiles.net",
  265. "vidxden.com",
  266. "up.top4top.net",
  267. "upload.ee",
  268. "shareplace.org",
  269. "uploadc.com",
  270. "remixshare.com",
  271. "exoshare.com",
  272. "borncash.org",
  273. "junocloud.me",
  274. "keep2share.cc",
  275. "k2s.cc",
  276. "expressleech.com",
  277. "2downloadz.com",
  278. "mightyupload.com",
  279. "uncapped-downloads.com",
  280. "anysend.com",
  281. "datafile.com",
  282. "upstore.net",
  283. "upsto.re",
  284. "speedy.sh",
  285. "sanshare.com",
  286. "dizzcloud.com",
  287. "kingfiles.net",
  288. "uploadhero.co",
  289. "ge.tt",
  290. "filesflash.net",
  291. "salefiles.com",
  292. "keep2s.cc",
  293. "megairon.net",
  294. "datoid.cz",
  295. "cloudstor.es",
  296. "streamfile.com",
  297. "eyesfile.ca",
  298. "filemoney.com",
  299. "uploadboy.com",
  300. "speedshare.eu",
  301. "google.com",
  302. "unlimitzone.com",
  303. "rioupload.com",
  304. "rg.to",
  305. "jumbofiles.org",
  306. "fshare.vn",
  307. "spaceforfiles.com",
  308. "up.media1fire.com",
  309. "depfile.com",
  310. "go4up.com",
  311. "dropbox.com",
  312. "redbunker.net",
  313. "divxpress.com",
  314. "mega.co.nz",
  315. "mega.nz",
  316. "anafile.com",
  317. "uploadable.ch",
  318. "arabloads.com",
  319. "sharerepo.com",
  320. "sfshare.se",
  321. "files.fm",
  322. "koofile.com",
  323. "shared.com",
  324. "vidplay.net",
  325. "storagon.com",
  326. "doraupload.com",
  327. "openload.io",
  328. "geupload.com|lenfile.com",
  329. "uploads.xxx",
  330. ];
  331.  
  332. try
  333. {
  334. //iframes excluded
  335. if (window.top != window.self)
  336. {
  337. return;
  338. }
  339. //allHostNames sites excluded
  340. if (window.location.href.match("https?:\/\/(www\.)?[\w\.-]*(?:" +
  341. allHostNames.join("|").replace(/\./g, "\\.").replace(/-/g, "\\-") +
  342. ")"))
  343. {
  344. return;
  345. }
  346. }
  347. catch (e)
  348. {
  349. return;
  350. }
  351.  
  352. //separate alternative domains with "|" char (first name is considered being main)
  353. var allContainerNames = [
  354. "adf.ly",
  355. "linkcrypt.ws",
  356. "linksafe.me",
  357. "linksave.in",
  358. "linkto.net",
  359. "madlink.sk",
  360. "multiload.cz",
  361. "mirrorcreator.com",
  362. "ncrypt.in",
  363. "redi.re",
  364. "relink.us",
  365. "safelinking.net",
  366. "theloo.katt.it",
  367. "bit.ly",
  368.  
  369. ];
  370.  
  371. //separate alternative domains with "|" char (first name is considered being main)
  372. var allObsoleteNames = [
  373. "uloz.cz",
  374. "storage.to",
  375. "putlocker.com",
  376. "lumfile.com",
  377. "lumfile.se",
  378. "lumfile.eu",
  379. "firedrive.com",
  380. "fileshare.in.ua",
  381. "filecore.co.nz",
  382. "iskladka.cz",
  383. "file-rack.com",
  384. "fast-load.net",
  385. "subory.sk",
  386. "bigandfree.com",
  387. "fileop.com",
  388. "mujsoubor.cz",
  389. "sendfile.to",
  390. "superfastfile.com",
  391. "quickyshare.com",
  392. "duckload.com",
  393. "uploadstore.net",
  394. "meinupload.com",
  395. "dualshare.com",
  396. "2xupload.to|2xupload.de",
  397. "oxedion.com",
  398. "uploadline.com",
  399. "dll.bz",
  400. "movieshare.in",
  401. "milledrive.com",
  402. "quickupload.net",
  403. "safelink.in",
  404. "metadivx.com",
  405. "divxlink.com",
  406. "uploadrack.com",
  407. "teradepot.com",
  408. "dataup.to",
  409. "upit.to",
  410. "driveway.com",
  411. "eatlime.com",
  412. "a2zuploads.com",
  413. "friendlyfiles.net",
  414. "flyfile.us",
  415. "speedyshare.com",
  416. "uploadspace.eu",
  417. "keepfile.com",
  418. "piggyshare.com",
  419. "uplly.com",
  420. "filecrown.com",
  421. "6giga.com",
  422. "uploadjockey.com",
  423. "bluehost.to",
  424. "filegu.ru",
  425. "filebase.to",
  426. "up-file.com",
  427. "xvideos.com",
  428. "ufox.com",
  429. "filebling.com",
  430. "loaded.it",
  431. "uploadcell.com",
  432. "uploadshare.cz",
  433. "mangoshare.com",
  434. "filestab.com",
  435. "crazyupload.com",
  436. "gaiafile.com",
  437. "sharejunky.com",
  438. "fileho.com",
  439. "bigandfree.com",
  440. "bigfile.in",
  441. "bigshare.eu",
  442. "dahosting.org",
  443. "digisofts.net",
  444. "file4save.com",
  445. "filechip.com",
  446. "filescloud.com",
  447. "saveqube.com",
  448. "turboshare.de",
  449. "z-upload.com",
  450. "youshare.com",
  451. "jiffyupload.com",
  452. "gigeshare.com",
  453. "datenklo.net",
  454. "upload.dj",
  455. "loadfiles.in",
  456. "upit.to",
  457. "dsfileshare.com",
  458. "sharesimple.net",
  459. "4files.net",
  460. "wooupload.com",
  461. "odsiebie.com",
  462. "filenavi.com",
  463. "3oof.com",
  464. "meshwaar.com",
  465. "maxupload.com",
  466. "share.cx",
  467. "atserver.eu",
  468. "hotfiles.ws",
  469. "esnips.com",
  470. "tuxfile.com",
  471. "file2upload.net",
  472. "filebling.com",
  473. "turboshare.com",
  474. "rarhost.com",
  475. "isharehd.com",
  476. "i741.com",
  477. "dataup.de",
  478. "fofly.com",
  479. "shareonall.com",
  480. "sexuploader.com",
  481. "megaupload.com|megavideo.com|megaporn.com|megarotic.com",
  482. "uploadhyper.com",
  483. "filespawn.com",
  484. "caizzii.com",
  485. "volnyweb.cz",
  486. "usershare.net",
  487. "filescash.net",
  488. "metahyper.com",
  489. "combozip.com",
  490. "x7.to",
  491. "uploadbox.com",
  492. "enterupload.com|flyupload.com",
  493. "filepoint.de",
  494. "mystream.to",
  495. "x-fs.com",
  496. "shareator.com",
  497. "srapid.eu",
  498. "sosame.cz",
  499. "filesdump.com",
  500. "2-klicks.de",
  501. "uploking.com",
  502. "silofiles.com",
  503. "upfile.in",
  504. "filehook.com",
  505. "uploadking.com",
  506. "uploadhere.com",
  507. "kewlshare.com",
  508. "rapidable.com",
  509. "uploadwaste.com",
  510. "filemup.com",
  511. "filesonic.com|sharingmatrix.com",
  512. "fileserve.com",
  513. "wupload.com",
  514. "skipfile.com",
  515. "smartuploader.com",
  516. "dualshare.com",
  517. "storeandserve.com",
  518. "mountfile.com",
  519. "transitfiles.com",
  520. "uploadstation.com",
  521. "filejungle.com",
  522. "shareshared.com",
  523. "quickyshare.com",
  524. "save.am",
  525. "petandrive.com",
  526. "file2box.com",
  527. "flyshare.cz",
  528. "yabadaba.ru",
  529. "cloudcache.cc",
  530. "yourfilehost.com",
  531. "jakfile.com",
  532. "kickload.com",
  533. "pyramidfiles.com",
  534. "refile.net",
  535. "zshare.net",
  536. "ddlani.me|ddlanime.com",
  537. "ftp2share.com",
  538. "fooget.com",
  539. "rapidhide.com",
  540. "gotupload.com",
  541. "mooload.com",
  542. "zupload.com",
  543. "mytempdir.com",
  544. "onionshare.com",
  545. "stahnu.to",
  546. "oron.com",
  547. "badongo.com",
  548. "filereactor.com",
  549. "filegaze.com",
  550. "4bytez.com",
  551. "1hostclick.com",
  552. "anonstream.com",
  553. "batshare.com",
  554. "bitroad.net",
  555. "brontofile.com",
  556. "cloudnxt.net",
  557. "cloudnator.com|shragle.com",
  558. "filesfrog.net",
  559. "coolshare.cz",
  560. "dotavi.com",
  561. "ezyfile.net",
  562. "file-bit.net",
  563. "filecosy.com",
  564. "fileduct.com|fileduct.net",
  565. "filefat.com",
  566. "filelaser.com",
  567. "filemashine.com",
  568. "fileserver.cc",
  569. "filetechnology.com",
  570. "fireuploads.net",
  571. "gigfiles.net",
  572. "holderfile.com",
  573. "ihostia.com",
  574. "k2files.com",
  575. "mojofile.com",
  576. "ovfile.com",
  577. "qshare.com",
  578. "shafiles.me",
  579. "sharefilehost.com",
  580. "shareupload.com",
  581. "stahuj.to",
  582. "ugotfile.com",
  583. "uploadboost.com",
  584. "fileom.com",
  585. "vidhog.com",
  586. "xfileshare.eu",
  587. "bzlink.us",
  588. "bulletupload.com",
  589. "wizzupload.com",
  590. "bloggerarticles.com",
  591. "mojedata.sk",
  592. "sharpfile.com",
  593. "upgrand.com",
  594. "nasdilej.cz",
  595. "mediatack.cz",
  596. "share-it.to",
  597. "primeupload.com",
  598. "filebeer.info",
  599. "baberepublic",
  600. "xtu.me",
  601. "sharebase.de",
  602. "luckyshare.net",
  603. "filerobo.com",
  604. "filevelocity.com",
  605. "filezpro.com",
  606. "file4sharing.com",
  607. "cing.be",
  608. "ufile.eu",
  609. "pigsonic.com",
  610. "fileupped.com",
  611. "sharerun.com",
  612. "filesaur.com",
  613. "rapidslnare.com",
  614. "bestsharing.com",
  615. "savefiles.net",
  616. "file2share.biz",
  617. "filecache.de",
  618. "monsteruploads.eu",
  619. "b9bb.com",
  620. "aiotool.net",
  621. "jamber.info",
  622. "megaftp.com",
  623. "desiupload.net",
  624. "file27.com",
  625. "yastorage.com",
  626. "filehost.ws",
  627. "copyload.com",
  628. "venusfile.com",
  629. "aieshare.com",
  630. "terafile.co",
  631. "terafile.com",
  632. "fileza.net",
  633. "filerose.com",
  634. "squillion.com",
  635. "fileprohost.com",
  636. "bitbonus.com",
  637. "warserver.cz",
  638. "uload.to",
  639. "sharedbit.net",
  640. "megaload.it",
  641. "filewinds.com",
  642. "uploadcore.com",
  643. "syfiles.com",
  644. "eyesfile.com",
  645. "hotfile.com",
  646. "superupl.com",
  647. "oteupload.com",
  648. "henchfile.com",
  649. "filegag.com",
  650. "HenchFile.com",
  651. "filedefend.com",
  652. "share-rapid.com|rapids.cz|share-credit.cz|share-central.cz|share-ms.cz|share-net.cz|srapid.cz|share-rapid.cz",
  653. "megabitshare.com",
  654. "cloudzer.com",
  655. "asfile.com",
  656. "cloudzer.net",
  657. "clz.to",
  658. "extabit.com",
  659. "247upload.com",
  660. "2download.de",
  661. "4fastfile.com",
  662. "asixfiles.com",
  663. "berofile.com",
  664. "bigupload.com",
  665. "cepzo.com",
  666. "clouds.to",
  667. "cobrashare.sk",
  668. "coraldrive.net",
  669. "cyberlocker.ch",
  670. "czshare.com",
  671. "darkport.org",
  672. "dark-uploads.com",
  673. "davvas.com",
  674. "enigmashare.com",
  675. "erofly.cz",
  676. "fastsonic.net",
  677. "filebox.com",
  678. "filecity.net",
  679. "filedap.com",
  680. "filedino.com",
  681. "filedownloads.org",
  682. "filefolks.com",
  683. "fileking.co",
  684. "filemates.com",
  685. "files.to",
  686. "files2k.eu",
  687. "filesector.cc",
  688. "bitshare.com",
  689. "filesega.com",
  690. "filesend.net",
  691. "filestay.com",
  692. "filestrum.com",
  693. "fileuplo.de",
  694. "fileupup.com",
  695. "forunesia.com",
  696. "freeuploads.fr",
  697. "uploa.dk",
  698. "getthebit.com",
  699. "getzilla.net",
  700. "goldfile.eu",
  701. "good.com",
  702. "grupload.com",
  703. "hellfile.com",
  704. "hipfile.com",
  705. "hitfile.com",
  706. "hulkfile.eu|duckfile.net",
  707. "i-filez.com",
  708. "ifile.ws",
  709. "kupload.org",
  710. "packupload.com",
  711. "lemuploads.com",
  712. "limelinx.com",
  713. "maxshare.pl",
  714. "megarelease.org",
  715. "megashare.com",
  716. "minus.com",
  717. "mlfat4arab.com",
  718. "multishare.cz",
  719. "nirafile.com",
  720. "ok2upload.com",
  721. "peejeshare.com",
  722. "premiuns.org",
  723. "przeklej.net",
  724. "qkup.net",
  725. "rapidupload.sk",
  726. "rockdizfile.com",
  727. "rocketfile.net",
  728. "share-now.net",
  729. "share76.com",
  730. "sharebees.com",
  731. "sharefiles.co",
  732. "slingfile.com",
  733. "sms4file.com",
  734. "space4file.com",
  735. "tigershare.net",
  736. "toucansharing.com",
  737. "ubuntuone.com",
  738. "unextfiles.com",
  739. "upaj.pl",
  740. "upfile.biz",
  741. "uploadbin.net",
  742. "uploadic.com",
  743. "uploadinc.com",
  744. "uploading4u.eu",
  745. "uploadjet.net",
  746. "uploadorb.com",
  747. "upthe.net",
  748. "uptorch.com",
  749. "vidbox.yt",
  750. "videozer.com",
  751. "vreer.com",
  752. "wallobit.com",
  753. "zooupload.com",
  754. "privatefiles.com",
  755. "xerver.co",
  756. "BillionUploads.com",
  757. "rapidshare.com",
  758. "rapidshare.ru",
  759. "4savefile.com",
  760. "bayfiles.com",
  761. "bayfiles.net",
  762. "dodane.pl",
  763. "dotsemper.com",
  764. "egofiles.com",
  765. "epicshare.net",
  766. "fiberupload.net",
  767. "filemonkey.in",
  768. "filemonster.net",
  769. "filepom.com",
  770. "filesbb.com",
  771. "fileshareup.com",
  772. "filevice.com",
  773. "gigaup.fr",
  774. "inafile.com",
  775. "isavelink.com",
  776. "loombo.com",
  777. "megafiles.se",
  778. "migupload.com",
  779. "mydisc.net",
  780. "nitrobits.com",
  781. "potload.com",
  782. "redload.net",
  783. "shareprofi.com",
  784. "sharesuper.info",
  785. "sinhro.net",
  786. "speedfile.cz",
  787. "speedshare.org",
  788. "storage.novoro.net",
  789. "swankshare.com",
  790. "swatupload.com",
  791. "upafile.com",
  792. "uploadmachine.com",
  793. "uploadsat.com",
  794. "upshared.com",
  795. "usefile.com",
  796. "yourfiles.to",
  797. "zomgupload.com",
  798. "ultramegabit.com",
  799. "uploadto.us",
  800.  
  801. ];
  802. ///////////////////////////////////////////////////////////////////////////////////////
  803. var firstRun = GM_getValue("First_run", true);
  804.  
  805. var chromeBrowser = /chrom(e|ium)/.test(navigator.userAgent.toLowerCase());
  806. //////////////////////////////////////////////////////////////////////////////////////
  807. try
  808. {
  809. var thisVersion = GM_info.script.version; //not supported in Scriptish and others
  810. var last_known_version = GM_getValue("last_known_version", "");
  811. if (!last_known_version)
  812. {
  813. last_known_version = thisVersion;
  814. GM_setValue("last_known_version", last_known_version);
  815. }
  816. //var newVersion = !(thisVersion == last_known_version);
  817. var newVersion = !(a.replace(/^(\d+\.\d+\.\d+).*/,'$1') == b.replace(/^(\d+\.\d+\.\d+).*/,'$1')); //true only if one of the first three numbers differs
  818. GM_setValue("last_known_version", thisVersion);
  819. }
  820. catch (err)
  821. {
  822. var newVersion = false;
  823. }
  824.  
  825. var now = (new Date()).getTime();
  826. var last_custom_rules_nag = GM_getValue('last_custom_rules_nag', 0);
  827. if (!last_custom_rules_nag)
  828. {
  829. last_custom_rules_nag = now;
  830. GM_setValue('last_custom_rules_nag', ''+now);
  831. }
  832.  
  833.  
  834. allHostNames.sort();
  835. allContainerNames.sort();
  836. allObsoleteNames.sort();
  837.  
  838. var RAND_STRING = "8QyvpOSsRG3QWq";
  839. var DEBUG_MODE = false;
  840.  
  841. var TOOLTIP_MAXWIDTH = 600; //in pixels
  842. var TOOLTIP_THUMBWIDTH = 200;
  843. var containers_processed = false;
  844.  
  845. //settings for keyboard functions start
  846. var CHECK_ALL_LINKS_KEY = "A";
  847. var CONFIGURATION_KEY = "C";
  848. var copy_to_dead_key = "D";
  849. var toggle_autocheck_key = "W";
  850. var toggle_Enable_Anonymizer_key = "Z";
  851. var first_key_keycode = '17'; // 18=ALT 16=Shift 17=Ctrl 32=SPACE_BAR 9=TAB
  852. var first_key_keycodename = 'CTRL';
  853. var second_key_keycode = '18';
  854. var second_key_keycodename = 'ALT';
  855. var CHECK_ALL_LINKS_KEYCODE = CHECK_ALL_LINKS_KEY.charCodeAt(0);
  856. var CONFIGURATION_KEYCODE = CONFIGURATION_KEY.charCodeAt(0);
  857. var copy_to_dead_keycode = copy_to_dead_key.charCodeAt(0);
  858. var toggle_autocheck_keycode = toggle_autocheck_key.charCodeAt(0);
  859. var toggle_Enable_Anonymizer_keycode = toggle_Enable_Anonymizer_key.charCodeAt(0);
  860. //settings for keyboard functions end
  861.  
  862. //global settings start
  863. var Show_black_background_in_DL_links, Show_line_through_in_dead_links, Color_DL_links;
  864. var Live_links_color, Dead_links_color, Temp_unavailable_links_color, Premium_links_color, Ref_anonymize_service;
  865. var Do_not_linkify_DL_links, Keyboard_functions, Autocheck, Enable_Anonymizer;
  866. var Show_progress_stats, Display_tooltip_info, Icon_set;
  867. var Progress_box_pos_bottom, Progress_box_pos_right, Progress_box_opacity, Progress_box_background_color, Progress_box_item_color;
  868. var Progress_box_refresh_rate;
  869. var Obsolete_file_hosts;
  870. var Custom_rules, Custom_rules_text;
  871.  
  872. var messageBox = document.createElement('b'); // top-left message box
  873.  
  874. var cLinksTotal = 0;
  875. var cLinksDead = 0;
  876. var cLinksAlive = 0;
  877. var cLinksUnava = 0;
  878. var cLinksprem = 0;
  879. var cLinksProcessed = 0;
  880.  
  881. var intervalId; //for updateProgress()
  882.  
  883. //icon resources
  884. var PAW_ICON_GREEN = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAANCAYAAABy6+R8AAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAy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hQGbNr2rJe714eq/fjLwPD8x22GO5/eM/CzijN8BdoD0nz3/FuG/an3Sv7/ZehFDyBYIHplzFHcYullyPjp13eGj79/MHwEagRpfvPpB8OuuJsHvz785QRU9w+XAQwCMkyby3aZ+/xj5YBr/vDzD8OpngefHq55rw9U8gBbFCFHo4pljvAV60x19o+/fgMN+cNw79h7hjNFD5IZ/jPMwxXHKOmAmYOxPWCNWgWzKBfDm7c/GY4m3Nr089Uff3yJBD0h8Ug68tzQbVCUvtD66PWrXR91gWIvSTEABOw5pNlKfjz91QNkHySUTAGg7t0uvj1ytQAAAABJRU5ErkJggg==';
  895. var NEW_ICON_RED = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAA6klEQVQ4jbWTwWrCQBRFz6Rxnay6iuAXlJIg+BHZZR/d6++4t/5MpRQRf8CCrurGrDP6uumESTol04J3dbmPd7hvYBTAG5QBzIFH/PQpsBzDWm2gDGEFKM9lIxGYBSEsustRnpPWNZkImQip1sRF0QUoBQv1DgdgZE9SrdmGIX0Z8NFKni8XHqIIgEzkR+dMhGtVsYvjJgt6L+1Rq4FN/hcA2md01a0PjhPM8n44bDLjXeBf36A+nZzeG+Cr+wEGSeL0LsDZDq5VBcDT8dhkxpuZpbN6hXIAL76Vbd1gqgC+IX/6zhqWE1h/AYSwSjYrmXJlAAAAAElFTkSuQmCC';
  896. var NEW_ICON_YELLOW = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIs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RTUD1GKi0sRtEs0SEQ0RBQIRcVXw3eF6+vrWwcunPvc53nuPffcS0uEmA0x38Y5cohwGjOYxBBe4VGI3j8NQlzHYhaW0cfNEAslWCfBw4yvYhkv8hjCgxD7yMdquw/jbJ4+xq2cz+AKdrJRv9EAv/EDx3Ft75QhtrHdcFpHy0mS/lSqcVzAFM7he6XaTNLXJoOmS+ziOc4XcB893A3xodUgm5zAHdzHSLH0DhdD/GwsoSjlV5Je5nK+YQUTOInXSXq7x6134RQuo4unGf6Me7iKMxgrNfUuXMJazr8U+DA6Of/UZrCF9xjFM3zELpZwOptulIKmLlQGNXdqS7u4EWK9BA9cYpJ2KtWcwaMazcInuB3iTZ3fGv/znf8CBMxX4hrPUbUAAAAASUVORK5CYII=';
  898.  
  899. //global settings end
  900. if (window.opera && !window.console)
  901. {
  902. window.console = {};
  903.  
  904. function fn()
  905. {
  906. opera.postError(arguments);
  907. };
  908. ['log', 'debug', 'info', 'warn', 'error', 'assert', 'dir', 'dirxml', 'group', 'groupEnd', 'time', 'timeEnd', 'count', 'trace', 'profile', 'profileEnd'].forEach(function (name)
  909. {
  910. window.console[name] = fn;
  911. });
  912. }
  913.  
  914. //displays colored text in message box
  915. function sendMessage(text, color)
  916. {
  917. var msgDiv = document.createElement('div');
  918. msgDiv.style.color = color;
  919. msgDiv.innerHTML = text;
  920. messageBox.appendChild(msgDiv);
  921. setTimeout(function(){messageBox.removeChild(msgDiv)}, 3000);
  922. }
  923.  
  924. function linkify(totalourls)
  925. { // code from http://userscripts.org/scripts/review/2254 Linkify ting
  926. var ikkeTilladteTags;
  927. var allLinksRegex = "(?:http:\/\/.+?\\?)?(?:https?:\/\/)?"
  928. + "[0-9A-Za-z]+(?:[\\.-][0-9A-Za-z]+)*\\.[A-Za-z]+/" //instead of totalourls
  929. + "[\\w\\–\\-\\.+$!*\\/()\\[\\]\',~%?:@#&=\\\\\\—;…×Ã\\_\\u0080-\\u03FF’‘" + (Allow_spaces_in_DL_links ? "\\u0020" : "") + "]*";
  930. allLinksRegex = new RegExp(allLinksRegex, "g");
  931. var regexy = "^(?:http:\/\/.+?\\?)?(?:https?:\/\/)?(?:www\\.)?(?:" + totalourls + ")";
  932.  
  933. if (Do_not_linkify_DL_links)
  934. ikkeTilladteTags = ['a', 'head', 'script', 'style', 'title', 'option', 'iframe', 'textarea', 'span']; //tags, hvor det der stAΞ’Β¥r inden i ikke skal vAΞ’Β¦re links
  935. else
  936. ikkeTilladteTags = ['a', 'head', 'script', 'style', 'title', 'option', 'iframe', 'textarea']; //tags, hvor det der stAΞ’Β¥r inden i ikke skal vAΞ’Β¦re links
  937.  
  938. var regex = new RegExp(regexy);
  939. var textNode, muligtLink;
  940.  
  941. var path = "//text()[not(parent::" + ikkeTilladteTags.join(" or parent::") + ") and contains(.,'/')]";
  942. var textNodes = document.evaluate(path, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  943.  
  944. var i = textNodes.snapshotLength;
  945. while (i--)
  946. {
  947. textNode = textNodes.snapshotItem(i);
  948.  
  949. muligtLink = textNode.nodeValue; //all links on page
  950.  
  951. var myArray = null;
  952. var span = null;
  953. var lastLastIndex = 0;
  954. allLinksRegex.lastIndex = 0;
  955. if (/^https?:\/\/~[\w\s\~]*\//.test(muligtLink))
  956. {
  957. if (textNode.parentNode.className == "adead_link") continue;
  958. var censoredLink = muligtLink;
  959. var span = document.createElement('span');
  960. span.className = "adead_link";
  961. $(span).attr('warlc_error', "Cause of error: <b>Censored link.</b>");
  962. $(span).html(censoredLink);
  963. span.addEventListener("mouseover", displayTooltipError, false);
  964. cLinksTotal++; cLinksProcessed++; cLinksDead++;
  965. textNode.parentNode.replaceChild(span, textNode);
  966. continue;
  967. alert(censoredLink);
  968. }
  969. while (myArray = allLinksRegex.exec(muligtLink)) //find all links
  970. {
  971. if (!regex.test(myArray[0])) //this link is not recognized
  972. {
  973.  
  974. continue;
  975. }
  976. if (!span)
  977. span = document.createElement('span');
  978.  
  979. var link = myArray[0];
  980. span.appendChild(document.createTextNode(muligtLink.substring(lastLastIndex, myArray.index))); //inds?t det der kommer for dette hit
  981.  
  982. var $a = $("<a>" + link + "</a>")
  983. if (!link.match(/https?:\/\//))
  984. {
  985. link = 'http://' + link;
  986. }
  987.  
  988. $a.attr("href", link.replace(/\[\/hide:\w+\]/,""))
  989. .addClass("processing_link")
  990. .appendTo(span);
  991. lastLastIndex = allLinksRegex.lastIndex;
  992. }
  993. if (span)
  994. {
  995. span.appendChild(document.createTextNode(muligtLink.substring(lastLastIndex))); //ins?t det der kommer efter sidste hit
  996. textNode.parentNode.replaceChild(span, textNode);
  997. }
  998. }
  999. }
  1000.  
  1001. function add_WARLC_style()
  1002. {
  1003. if (!(document.getElementsByTagName('WARLC')[0]))
  1004. {
  1005. var meta_not_to_add_more_style = document.createElement("WARLC");
  1006. meta_not_to_add_more_style.setAttribute('content', 'war_links_checker');
  1007. meta_not_to_add_more_style.setAttribute('name', 'description');
  1008. document.getElementsByTagName('head')[0].appendChild(meta_not_to_add_more_style);
  1009. alive_link_png = "";
  1010. adead_link_png = "";
  1011. unava_link_png = "";
  1012. prem_link_png = "";
  1013. switch(Icon_set)
  1014. {
  1015. //no icons
  1016. case 0: break;
  1017. // cat paws
  1018. case 1: alive_link_png = PAW_ICON_GREEN;
  1019. adead_link_png = PAW_ICON_RED;
  1020. unava_link_png = PAW_ICON_YELLOW;
  1021. prem_link_png = PAW_ICON_PINK;
  1022. break;
  1023. // classic RSLC look
  1024. case 2: alive_link_png = RSLC_ICON_GREEN;
  1025. adead_link_png = RSLC_ICON_RED;
  1026. unava_link_png = RSLC_ICON_YELLOW;
  1027. prem_link_png = RSLC_ICON_PINK;
  1028. break;
  1029. // New Icons
  1030. case 3: alive_link_png = NEW_ICON_GREEN;
  1031. adead_link_png = NEW_ICON_RED;
  1032. unava_link_png = NEW_ICON_YELLOW;
  1033. prem_link_png = NEW_ICON_PINK;
  1034. break;
  1035. // cat paws
  1036. default:alive_link_png = PAW_ICON_GREEN;
  1037. adead_link_png = PAW_ICON_RED;
  1038. unava_link_png = PAW_ICON_YELLOW;
  1039. prem_link_png = PAW_ICON_PINK;
  1040. break;
  1041. }
  1042. processing_link_gif = 'data:image/gif;base64,' + // or temporary anavailable
  1043. 'R0lGODlhCgAKAJEDAMzMzP9mZv8AAP///yH/C05FVFNDQVBFMi4wAwEAAAAh+QQFAAADACwAAAAACgAKAAACF5wncgaAGgJzJ647cWua4sOBFEd62VEAACH5BAUAAAMALAEAAAAIAAMAAAIKnBM2IoMDAFMQFAAh+QQFAAADACwAAAAABgAGAAACDJwHMBGofKIRItJYAAAh+QQFAAADACwAAAEAAwAIAAACChxgOBPBvpYQYxYAIfkEBQAAAwAsAAAEAAYABgAAAgoEhmPJHOGgEGwWACH5BAUAAAMALAEABwAIAAMAAAIKBIYjYhOhRHqpAAAh+QQFAAADACwEAAQABgAGAAACDJwncqi7EQYAA0p6CgAh+QQJAAADACwHAAEAAwAIAAACCpRmoxoxvQAYchQAOw%3D%3D';
  1044.  
  1045. var dead_color_css, live_color_css, unava_color_css, prem_color_css, black_background_css;
  1046.  
  1047. if (Color_DL_links)
  1048. {
  1049. dead_color_css = 'color:' + Dead_links_color + ' !important;';
  1050. live_color_css = 'color:' + Live_links_color + ' !important;';
  1051. unava_color_css = 'color:' + Temp_unavailable_links_color + ' !important;';
  1052. container_color_css = 'color:' + Container_links_color + ' !important;';
  1053. prem_color_css = 'color:' + Premium_links_color + ' !important;';
  1054. }
  1055. else
  1056. {
  1057. dead_color_css = live_color_css = unava_color_css = container_color_css = prem_color_css = '';
  1058. }
  1059.  
  1060. if (Show_black_background_in_DL_links)
  1061. {
  1062. black_background_css = 'background-color: black !important;';
  1063. }
  1064. else
  1065. {
  1066. black_background_css = '';
  1067. }
  1068.  
  1069. if (Show_line_through_in_dead_links)
  1070. {
  1071. line_through_css = 'text-decoration: line-through !important;';
  1072. }
  1073. else
  1074. {
  1075. line_through_css = '';
  1076. }
  1077.  
  1078. GM_addStyle(".alive_link {background:transparent url(" + alive_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;" + live_color_css + black_background_css + "}");
  1079. 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 + "}");
  1080. GM_addStyle(".unava_link {background:transparent url(" + unava_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;" + unava_color_css + black_background_css + "}");
  1081. GM_addStyle(".processing_link {background:transparent url(" + processing_link_gif + ") no-repeat scroll 100% 50%;padding-right:15px;" + container_color_css + black_background_css + "}");
  1082. GM_addStyle(".container_link {background:transparent url(" + processing_link_gif + ") no-repeat scroll 100% 50%;padding-right:15px;" + container_color_css + black_background_css + "}");
  1083. GM_addStyle(".container_list {font-size:90%; list-style-type:square; padding: 0px 5% 0px; margin: 0px}");
  1084. GM_addStyle(".prem_link {background:transparent url(" + prem_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;" + prem_color_css + black_background_css + "}");
  1085. }
  1086. }
  1087.  
  1088. var warlcTooltip = null;
  1089. var mouseoverLink = null; //link href with mouse cursor over it
  1090.  
  1091. var lastX = 0;
  1092. var lastY = 0;
  1093.  
  1094. $(document).ready(initTooltip);
  1095. //inits tooltip
  1096. function initTooltip()
  1097. { warlcTooltip = document.createElement("div");
  1098. 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;");
  1099. warlcTooltip.style.visibility = "hidden";
  1100. document.body.appendChild(warlcTooltip);
  1101. }
  1102.  
  1103. //"mousemove" event handler for all links
  1104. function moveTooltip(event)
  1105. {
  1106. if ((Math.abs(lastX - event.clientX) + Math.abs(lastY - event.clientY)) < 6)
  1107. { //no need to reflow if the cursor moved just a little
  1108. return;
  1109. }
  1110. else
  1111. {
  1112. lastX = event.clientX;
  1113. lastY = event.clientY;
  1114. }
  1115.  
  1116. posX = event.clientX + window.pageXOffset + 10;
  1117. posY = event.clientY + window.pageYOffset;
  1118. var ttHeight = warlcTooltip.offsetHeight;
  1119. var ttFreeSpace = window.innerHeight - event.clientY;
  1120. if (ttHeight > ttFreeSpace)
  1121. { //prevents tooltip from getting out of the window
  1122. posY -= (ttHeight - (ttFreeSpace)) + 10;
  1123. }
  1124. else
  1125. {
  1126. posY += 7;
  1127. }
  1128. warlcTooltip.style.top = posY + "px";
  1129. warlcTooltip.style.left = posX + "px";
  1130. }
  1131.  
  1132. //"mouseout" event handler for all links
  1133. function hideTooltip(){
  1134. warlcTooltip.style.visibility = "hidden";
  1135. mouseoverLink = null;
  1136. }
  1137.  
  1138.  
  1139. //"mouseover" event handler for dead links
  1140. //displays tooltip error message on dead links
  1141. function displayTooltipError()
  1142. {
  1143. mouseoverLink = this.href;
  1144. this.addEventListener("mouseout", hideTooltip);
  1145. this.addEventListener("mousemove", function(event) { moveTooltip(event); });
  1146. warlcTooltip.innerHTML = '<b>LOADING...</b>';
  1147. warlcTooltip.style.minWidth = 0;
  1148. warlcTooltip.style.visibility = "visible";
  1149. if (this.warlc_error) //an error message is already known and stored in warlc_error attribute
  1150. {
  1151. warlcTooltip.innerHTML = this.warlc_error;
  1152. }
  1153. else
  1154. {
  1155. loadErrorInfo(this);
  1156. }
  1157. function loadErrorInfo(link)
  1158. {
  1159. var href = link.href;
  1160. href = href.replace(/quickshare\.cz\/.+/, "quickshare.cz/chyba");
  1161. GM_xmlhttpRequest({
  1162. method: 'GET',
  1163. url: href.replace(Ref_anonymize_service, ""),
  1164. headers: {
  1165. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1166. 'Accept': 'text/xml',
  1167. 'Referer': ""
  1168. },
  1169. onload: function(result) {
  1170. var res = result.responseText;
  1171. //TODO: errorRegexs -
  1172. var errorRegexs = [ //generic error messages follow
  1173. /(empty directory)/i,
  1174. /(soubor nebyl nalezen)/i,
  1175. /((?:file|page|link|folder)(?:is|not|does|has been|was| ){1,}(?:found|available|blocked|exists?|deleted|removed))/i,
  1176. //server specific error messages follow
  1177. /msg error" style="cursor: default">(.+?)<\/div>/, //sendspace
  1178. /color:red;font\-weight:bold;border\-style:dashed;font-size:12px;border\-width:2px;><tr><td align=center>(.+?)<\/td>/, //fastshare
  1179. /(Takový soubor neexistuje. Je možné, že byl již smazán.)/, //quickshare
  1180. /file_info file_info_deleted">\s*<h1>(.+?)<\/h1>/, //filepost
  1181. /<br \/>\s*<p style="color:#000">(.+?)<\/p>\s*<\/center>/, //letitbit
  1182. /(?:error_div">|<\/h1><p>)<strong>(.+?)<\/strong>/, //share-rapid,quickshare
  1183. /class="red">(.+?)<(?:span|br)>/, //czshare, megashares
  1184. /class="wp640">\s*<h1 class="h1">(.+?)<\/h1>/, //uloz.to
  1185. /not-found">\s*<p>(.+?)<\/p>/, //bayfiles
  1186. /(Your file could not be found. Please check the download link.)/, //stahnu.to
  1187. /error_msg">\s*(<h3>.+?<\/h3><ul>(.+?)<\/ul>)/, //edisk
  1188. /id="obsah">\s*<h2>(.+?)<\/h2>/, //euroshare
  1189. /error">\s*(?:<[bp]>)?\s*(.+?)<\/[bp]>/, //filesmonster, shragle, gigapeta
  1190. ///center aC">\s*<h1>(.+?)<br \/>/, //uploaded.to
  1191. /icon_err">\s*<h1>(.+?)<\/h1>/, //filejungle
  1192. /Code: ER_NFF_\d+<\/h2>\s*(.+?)\s*<\/div>/, //netload
  1193. /(File has been removed due to Copyright Claim)/, //filerio
  1194. ];
  1195. var errorIdx = errorRegexs.length;
  1196. var error = "Cause of error: <b>unknown</b>";
  1197. var errorCandidate = "";
  1198. while(errorIdx--)
  1199. {
  1200. var errorCandidate = res.match(errorRegexs[errorIdx]);
  1201. if (errorCandidate != null)
  1202. {
  1203. error = "Cause of error: <b>" + errorCandidate[1].replace(/&nbsp;/g," ") + "</b>";
  1204. break;
  1205. }
  1206. }
  1207. //link attributes
  1208. link.warlc_error = error;
  1209. if (mouseoverLink == link.href) //mouse cursor is still over the link
  1210. {
  1211. warlcTooltip.innerHTML = error;
  1212. }
  1213. }
  1214. });
  1215. }
  1216. }
  1217.  
  1218. //"mouseover" event handler for alive links
  1219. //displays tooltip info (file size, file name,...) on alive links
  1220. function displayTooltipInfo()
  1221. {
  1222. mouseoverLink = this.href;
  1223. //exclude direct download filehostings
  1224. 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)/))
  1225. {
  1226. return;
  1227. }
  1228. this.addEventListener("mouseout", hideTooltip);
  1229. this.addEventListener("mousemove", function(event) { moveTooltip(event); });
  1230. warlcTooltip.innerHTML = '<b>LOADING...</b>';
  1231. warlcTooltip.style.minWidth = 0;
  1232. warlcTooltip.style.visibility = "visible";
  1233. if (this.warlc_tooltipcache) //file size is already known and stored in warlc_filename and warlc_filesize attributes
  1234. {
  1235. warlcTooltip.innerHTML = this.warlc_tooltipcache;
  1236. }
  1237. else
  1238. {
  1239. loadInfo(this);
  1240. }
  1241. function loadInfo(link)
  1242. {
  1243. var href = link.href;
  1244. GM_xmlhttpRequest({
  1245. method: 'GET',
  1246. url: href.replace(Ref_anonymize_service, ""),
  1247. headers: {
  1248. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1249. 'Accept': 'text/xml',
  1250. 'Referer': ""
  1251. },
  1252. onload: function(result) {
  1253. var res = result.responseText;
  1254. var nameRegexs = [ /Filename: <b class="f_arial f_14px">(.+?)<\/b>/, //oron
  1255. /(?:finfo|file[-_]?name)">\s*(.+?)<\/?(?:h1|a|div|span style|td)/, //hellshare, netload, badongo, 4fastfile
  1256. /fl" title="(.+?)">/, //edisk
  1257. /<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
  1258. /<h3>Stahujete soubor: <\/h3>\s*<div class="textbox">(.+?)<\/div>/, //webshare
  1259. /<h3><b><span style=color:black;>(.+?)<\/b><\/h3><br>/, //fastshare
  1260. /title="download (.+?)">/, //sendspace
  1261. /Stáhnout soubor: (.+?)<\/h1>/, //quickshare
  1262. /fz24">Download:\s*<strong>(.+?)<\/strong>/, //crocko
  1263. /'file\-icon\d+ \w+'>(?:<\/span><span>)?(.+?)<\/span>/, //hitfile, turbobit
  1264. /d0FileName = "(.+?)";/, //letitbit
  1265. /file(?:_name|-info)" title="">\w+: <span>(.+?)<\/span>/, //vip-file, shareflare
  1266. /recent-comments"><h2>(.+) &nbsp;/, //xdisk
  1267. /fname" value="(.+?)">/, //syfiles, grupload,
  1268. /download\-header">\s*<h2>File:<\/h2>\s*<p title="(.+?)">/, //bayfiles
  1269. /description">\s*<p><b>Soubor: (.+?)<\/b>/, //bezvadata
  1270. /Complete name : (.+?)<br \/>/, //bezvadata
  1271. /itemprop="name">(.+?)<\/span>/, //bezvadata
  1272. ];
  1273. var nameIdx = nameRegexs.length;
  1274. // [sizeRegexs]
  1275. // / \ \?
  1276. // prefix (size) postfix
  1277. // / \
  1278. // val quant
  1279. var quantRegex = '(?:M|G|K)?i?(?:B)(?:[y|i]te?s?)?';
  1280. var valRegex = '\\d+(?:[\\., ]\\d+){0,2}'; // 111([., ]222)?([., ]333)?
  1281. var uniSizeRegex = valRegex + '(?:\\s*|&nbsp;)' + quantRegex;
  1282. var preSizeRegex = '(?::|\\(|>|>, | - )';
  1283. var postSizeRegex = '(?:\\))?';
  1284. var sizeRegexs = [ preSizeRegex + "\\s*(" + uniSizeRegex + ")\\s*" + postSizeRegex,
  1285. 'FileSize_master">(.+?)<\/strong>', //hellshare
  1286. ];
  1287. var sizeIdx = sizeRegexs.length;
  1288. //
  1289. //
  1290. var tooltip = "File Name: <b>";
  1291. var fileName = "unknown";
  1292. var nameCandidate = "";
  1293. while(nameIdx--)
  1294. {
  1295. var nameCandidate = res.match(nameRegexs[nameIdx]);
  1296. if (nameCandidate != null)
  1297. {
  1298. fileName = nameCandidate[1].replace(/&nbsp;/g," ");
  1299. break;
  1300. }
  1301. }
  1302. tooltip += fileName + "</b><br>File Size: <b>";
  1303. var fileSize = "unknown";
  1304. var sizeCandidate = "";
  1305. while(sizeIdx--)
  1306. {
  1307. sizeCandidate = res.match(new RegExp(sizeRegexs[sizeIdx], "i"));
  1308. if (sizeCandidate != null)
  1309. {
  1310. fileSize = sizeCandidate[1].replace(/&nbsp;/g," ");
  1311. if (/^\d+$/.test(fileSize) && fileSize >= 1024) //assume bytes
  1312. {
  1313. if(fileSize > (1<<30)) fileSize = Math.round(10 * fileSize / (1<<30)) / 10 + ' GB';
  1314. else if(fileSize > (1<<20)) fileSize = Math.round(fileSize / (1<<20)) + ' MB';
  1315. else fileSize = Math.round(fileSize / 1024) + ' KB';
  1316. }
  1317. break;
  1318. }
  1319. }
  1320. tooltip += fileSize + "</b>";
  1321. // PROTOTYPE
  1322. // video thumbnails
  1323. if (href.match('hellshare'))
  1324. {
  1325. var thumbs;
  1326. thumbs = res.match(/http:\/\/static\d+\.helldata\.com\/thumbs(?:\/\d+){1,2}\/\d{1,2}"/g);
  1327. if (thumbs)
  1328. {
  1329. tooltip += '<br>';
  1330. var j = Math.min(thumbs.length, 9);
  1331. for (var i = 0; i < j; i++)
  1332. {
  1333. tooltip += '<img src="' + thumbs[i].replace('"',"") + '" width="' + TOOLTIP_THUMBWIDTH + 'px">';
  1334. }
  1335. warlcTooltip.style.minWidth = TOOLTIP_MAXWIDTH;
  1336. }
  1337. }
  1338. if (href.match('czshare'))
  1339. {
  1340. var thumbs;
  1341. thumbs = res.match(/src="http:\/\/www(\d+)\.czshare\.com\/images_velke\/\d+\.(\d+)\.jpeg/);
  1342. if (thumbs)
  1343. {
  1344. var thumbsServer = thumbs[1];
  1345. var thumbsId = thumbs[2];
  1346. tooltip += '<br>';
  1347. for (var i = 1; i < 9; i++)
  1348. {
  1349. tooltip += '<img src="http://www' + thumbsServer + '.czshare.com/images_velke/' + i + '.' + thumbsId + '.jpeg" width="' + TOOLTIP_THUMBWIDTH + 'px">';
  1350. }
  1351. warlcTooltip.style.minWidth = TOOLTIP_MAXWIDTH;
  1352. }
  1353. }
  1354. if (href.match('bezvadata'))
  1355. {
  1356. var thumbs;
  1357. thumbs = res.match(/http:\/\/nahledy\.bezvadata\.cz\/nahledy\/\d+\/\d+\/\d+_\d+_\d+x\d+_\w.jpg/g);
  1358. if (thumbs)
  1359. {
  1360. tooltip += '<br>';
  1361. var j = Math.min(thumbs.length, 9);
  1362. for (var i = 0; i < j; i++)
  1363. {
  1364. tooltip += '<img src="' + thumbs[i] + '" width="' + TOOLTIP_THUMBWIDTH + 'px">';
  1365. }
  1366. warlcTooltip.style.minWidth = TOOLTIP_MAXWIDTH;
  1367. }
  1368. }
  1369. link.warlc_tooltipcache = tooltip;
  1370. if (mouseoverLink == link.href) //mouse cursor is still over the link
  1371. {
  1372. warlcTooltip.innerHTML = tooltip;
  1373. }
  1374. }
  1375. });
  1376. }
  1377. }
  1378.  
  1379. function setVariables()
  1380. {
  1381. if (firstRun)
  1382. {
  1383. GM_log('First run, applying default settings...');
  1384. GM_setValue("Icon_set",1);
  1385. GM_setValue("Display_tooltip_info",true);
  1386. GM_setValue("Show_black_background_in_DL_links",false);
  1387. GM_setValue("Show_line_through_in_dead_links",false);
  1388. GM_setValue("Display_full_links_in_link_containers",false);
  1389. GM_setValue("Allow_spaces_in_DL_links",false);
  1390. GM_setValue("Autocheck",true);
  1391. GM_setValue("Enable_Anonymizer",false);
  1392. GM_setValue("Do_not_linkify_DL_links",false);
  1393. GM_setValue("Show_progress_stats",true);
  1394. GM_setValue("Keyboard_functions",true);
  1395. GM_setValue("Obsolete_file_hosts",false);
  1396. GM_setValue("Color_DL_links",true);
  1397. GM_setValue("Live_links_color","Green");
  1398. GM_setValue("Dead_links_color","#FF3300");
  1399. GM_setValue("Temp_unavailable_links_color","#F7EF09");
  1400. GM_setValue("Container_links_color","DarkKhaki");
  1401. GM_setValue("Premium_links_color","DeepPink");
  1402. GM_setValue("Ref_anonymize_service","http://hiderefer.com/?");
  1403. GM_setValue("Custom_rules",false);
  1404. GM_setValue("Custom_rules_text","");
  1405. GM_setValue("First_run", false);
  1406. }
  1407. //hidden settings
  1408. GM_setValue("Progress_box_pos_bottom", Progress_box_pos_bottom = GM_getValue("Progress_box_pos_bottom", 20));
  1409. GM_setValue("Progress_box_pos_right", Progress_box_pos_right = GM_getValue("Progress_box_pos_right", 10));
  1410. GM_setValue("Progress_box_opacity", Progress_box_opacity = GM_getValue("Progress_box_opacity", 85));
  1411. GM_setValue("Progress_box_background_color", Progress_box_background_color = GM_getValue("Progress_box_background_color", 'DimGray'));
  1412. GM_setValue("Progress_box_item_color", Progress_box_item_color = GM_getValue("Progress_box_item_color", 'DimGray'));
  1413. GM_setValue("Progress_box_refresh_rate", Progress_box_refresh_rate = GM_getValue("Progress_box_refresh_rate", 2000));
  1414. GM_setValue("Debug_mode", DEBUG_MODE = GM_getValue("Debug_mode", false));
  1415. //hidden settings end
  1416.  
  1417. Icon_set = GM_getValue("Icon_set", 1); //0 - no icons, 1 - cat paws, 2 - old RSLC style, 3 - New Icons,
  1418. Display_tooltip_info = GM_getValue("Display_tooltip_info", true);
  1419. Show_black_background_in_DL_links = GM_getValue("Show_black_background_in_DL_links", false);
  1420. Show_line_through_in_dead_links = GM_getValue("Show_line_through_in_dead_links", false);
  1421. Display_full_links_in_link_containers = GM_getValue("Display_full_links_in_link_containers", false);
  1422. Allow_spaces_in_DL_links = GM_getValue("Allow_spaces_in_DL_links", false);
  1423. Autocheck = GM_getValue("Autocheck", true);
  1424. Enable_Anonymizer = GM_getValue("Enable_Anonymizer", false);
  1425. Do_not_linkify_DL_links = GM_getValue("Do_not_linkify_DL_links", false);
  1426. Show_progress_stats = GM_getValue("Show_progress_stats", true);
  1427. Keyboard_functions = GM_getValue("Keyboard_functions", true);
  1428. Obsolete_file_hosts = GM_getValue("Obsolete_file_hosts", false);
  1429. Color_DL_links = GM_getValue("Color_DL_links", true);
  1430. Live_links_color = GM_getValue("Live_links_color", "Green");
  1431. Dead_links_color = GM_getValue("Dead_links_color", "#FF3300");
  1432. Temp_unavailable_links_color = GM_getValue("Temp_unavailable_links_color", "#F7EF09");
  1433. Container_links_color = GM_getValue("Container_links_color", "DarkKhaki");
  1434. Premium_links_color = GM_getValue("Premium_links_color", "DeepPink");
  1435. Ref_anonymize_service = GM_getValue("Ref_anonymize_service", "http://hiderefer.com/?");
  1436. Custom_rules = GM_getValue("Custom_rules", false);
  1437. Custom_rules_text = GM_getValue("Custom_rules_text", false);
  1438. }
  1439.  
  1440.  
  1441. // Delinkifies the links
  1442. // params:
  1443. // links -> list of links or link components (note they should be sufficiently unique to identify the link on page,
  1444. // e.g. 'uloz.to/xs68skxl8')
  1445. function delinkifySnapshot(snapshot)
  1446. {
  1447. var n = snapshot.snapshotLength;
  1448.  
  1449. while (n--)
  1450. {
  1451. thisLink = snapshot.snapshotItem(n);
  1452.  
  1453. var spanElm = document.createElement("span");
  1454. spanElm.className = thisLink.className;
  1455. spanElm.innerHTML = thisLink.innerHTML;
  1456.  
  1457. if (Display_tooltip_info)
  1458. {
  1459. spanElm.href = thisLink.href;
  1460. switch (thisLink.className){
  1461. case "alive_link": spanElm.addEventListener("mouseover", displayTooltipInfo, false); break
  1462. case "adead_link": spanElm.addEventListener("mouseover", displayTooltipError, false); break;
  1463. case "unava_link": //reserved
  1464. default:
  1465. }
  1466. }
  1467. thisLink.parentNode.replaceChild(spanElm, thisLink);
  1468. }
  1469. }
  1470.  
  1471. function processContainers()
  1472. {
  1473. var redirectorTypes = { "HTTP_302": 0,
  1474. "INNER_LINK": 1,
  1475. "THELOO_KATT_IT": 2,
  1476. "CING_BE": 3,
  1477. "ADF_LY": 4};
  1478. var cMultiloadTotal = 0;
  1479. var cMultiloadProcessed = 0;
  1480.  
  1481. var cMirrorcreatorComTotal = 0;
  1482. var cMirrorcreatorComProcessed = 0;
  1483.  
  1484. var hostRestrictionRegex = "";
  1485. var multiloadComRestriction = "";
  1486. var multiloadComRestrictionRegex;
  1487.  
  1488. //
  1489. //HANDLING REDIRECTORS START
  1490. //
  1491.  
  1492. var redirectors = new Array();
  1493. initRedirectors();
  1494.  
  1495. var redirectorsCount = redirectors.length;
  1496.  
  1497. if (redirectorsCount > 0)
  1498. {
  1499. var allRedirectorsRegex = "";
  1500.  
  1501. //linkify redirector links
  1502. for(var redirIdx = 0; redirIdx < redirectorsCount; redirIdx++)
  1503. {
  1504. allRedirectorsRegex += redirectors[redirIdx].linkRegex + "|";
  1505. }
  1506. allRedirectorsRegex = allRedirectorsRegex.replace(/\|$/, "");
  1507. linkify(allRedirectorsRegex);
  1508. //
  1509. //process redirector links
  1510. for(var redirIdx = 0; redirIdx < redirectorsCount; redirIdx++)
  1511. {
  1512. var redirectorsSnapshot = document.evaluate(redirectors[redirIdx].xpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  1513. redirectors[redirIdx].cTotal = redirectorsSnapshot.snapshotLength;
  1514.  
  1515. cLinksTotal += redirectors[redirIdx].cTotal;
  1516. var linkIdx = redirectors[redirIdx].cTotal;
  1517.  
  1518. while(linkIdx--)
  1519. {
  1520. switch(redirectors[redirIdx].type)
  1521. {
  1522. case redirectorTypes.HTTP_302: processRedirectorLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1523. case redirectorTypes.INNER_LINK: processRedirectorLinkEx(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1524. case redirectorTypes.THELOO_KATT_IT: processThelooKattItLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1525. case redirectorTypes.CING_BE: processCingBeLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1526. case redirectorTypes.ADF_LY: processAdfLyLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1527. default:
  1528. }
  1529. }
  1530. }
  1531. //
  1532. }
  1533.  
  1534. //HTTP_302
  1535. function processRedirectorLink(link, redirectorId)
  1536. {
  1537. link.className = 'container_link';
  1538.  
  1539. GM_xmlhttpRequest({
  1540. method: 'HEAD',
  1541. url: link.href,
  1542. headers: {
  1543. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1544. 'Accept': 'text/xml',
  1545. 'Referer': ""
  1546. },
  1547. onload: function(result) {
  1548. if (result.finalUrl.replace("https", "http") == link.href) // service hasn't redirected anywhere
  1549. {
  1550. processRedirectorLink(link, redirectorId);
  1551. }
  1552. else
  1553. {
  1554. redirectors[redirectorId].cProcessed++;
  1555. link.href = result.finalUrl;
  1556. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  1557. checkLinks('container_link');
  1558. }
  1559. },
  1560. onerror: function(result) { //probably caused by unresponsive filehosting
  1561. redirectors[redirectorId].cProcessed++;
  1562. link.className = 'unava_link';
  1563. cLinksProcessed++;
  1564. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  1565. checkLinks('container_link');
  1566. }
  1567. });
  1568. }
  1569. //INNER_LINK
  1570. function processRedirectorLinkEx(link, redirectorId)
  1571. {
  1572. link.className = 'container_link';
  1573. GM_xmlhttpRequest({
  1574. method: 'GET',
  1575. url: link.href,
  1576. headers: {
  1577. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1578. 'Accept': 'text/xml',
  1579. 'Referer': ""
  1580. },
  1581. onload: function(result) {
  1582. link.href = result.responseText.match(redirectors[redirectorId].innerLinkRegex)[1];
  1583. redirectors[redirectorId].cProcessed++;
  1584. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  1585. checkLinks('container_link');
  1586. }
  1587. });
  1588. }
  1589. //theloo.katt.it (wrapped safelinking.net)
  1590. function processThelooKattItLink(link, redirectorId)
  1591. {
  1592. link.className = 'container_link';
  1593. GM_xmlhttpRequest({
  1594. method: 'GET',
  1595. url: link.href,
  1596. headers: {
  1597. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1598. 'Accept': 'text/xml',
  1599. 'Referer': ""
  1600. },
  1601. onload: function(result) {
  1602. link.href = result.responseText.match(redirectors[redirectorId].innerLinkRegex)[1];
  1603. redirectors[redirectorId].cProcessed++;
  1604. //the inner links are safelinking.net links, so lets proceed with it
  1605. if (GM_getValue("Check_safelinking_dot_net_links", false))
  1606. {
  1607. processRedirectorLink(link, 0);
  1608. }
  1609. }
  1610. });
  1611. }
  1612. //adf.ly (adf.ly/go innerLink, locking mechanism)
  1613. function processAdfLyLink(link, redirectorId)
  1614. {
  1615. link.className = 'container_link';
  1616. GM_xmlhttpRequest({
  1617. method: 'GET',
  1618. url: link.href,
  1619. headers: {
  1620. 'User-agent': 'Mozilla/4.0',
  1621. 'Accept': 'text/xml',
  1622. 'Referer': ""
  1623. },
  1624. onload: function(result) {
  1625. if (result.finalUrl.match('/locked/'))
  1626. {
  1627. var delay = result.responseText.match(/countdown">(\d+)</)[1];
  1628. // GM_log(result.finalUrl + 'is locked. Repeating the request in ' + delay + 's.');
  1629. // setTimeout(function(){processAdfLyLink(link, redirectorId);}, delay * 1000);
  1630. }
  1631. else
  1632. {
  1633. // GM_log('Processing... ' + link.href);
  1634. // GM_log('Found...' + result.responseText.match(/\/go\/(\w+\/\w+)/)[1]);
  1635. var directLink = 'http://adf.ly' + result.responseText.match(/(\/go\/\w+\/\w+)/)[1];
  1636. var logToken = result.responseText.match(/flashy_(\w+)/)[1];
  1637. var users = result.responseText.match(/user=\d+&user2=\d+/);
  1638. //confirm advert
  1639. GM_xmlhttpRequest(
  1640. {
  1641. method: 'POST',
  1642. url: 'http://adf.ly/l.php',
  1643. headers: {
  1644. 'User-agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20100101 Firefox/13.0',
  1645. 'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
  1646. 'Referer': link.href
  1647. },
  1648. data: users + '&lt=' + logToken,
  1649. onload: function(result) {
  1650. //retrieve final url from .../go/... link
  1651. GM_xmlhttpRequest({
  1652. method: 'GET',
  1653. url: directLink,
  1654. headers: {
  1655. 'User-agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20100101 Firefox/13.0',
  1656. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  1657. 'Referer': link.href
  1658. },
  1659. onload: function(result) {
  1660. link.href = result.finalUrl;
  1661. redirectors[redirectorId].cProcessed++;
  1662. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  1663. checkLinks('container_link');
  1664. }
  1665. });
  1666. }
  1667. });
  1668. }
  1669. }
  1670. });
  1671. function proceedOK()
  1672. {
  1673. }
  1674. }
  1675. //MULTILOAD.CZ START
  1676. if (GM_getValue("Check_multiload_dot_cz_links", false))
  1677. {
  1678. var mlRegex = 'multiload\\.cz\/stahnout\/\\d+\/';
  1679. var mlXpath = "//a[contains(@href,'http://www.multiload.cz/stahnout')]";
  1680.  
  1681. hostRestrictionRegex = 'Upload se nezdařil|limit exceeded|probíhá reupload|';
  1682.  
  1683. if (GM_getValue("Check_hellshare_dot_com_links", false))
  1684. hostRestrictionRegex += 'hellshare|';
  1685. if (GM_getValue("Check_share_dash_rapid_dot_com_links", false))
  1686. hostRestrictionRegex += 'share-rapid\\.com|';
  1687. if (GM_getValue("Check_quickshare_dot_cz_links", false))
  1688. hostRestrictionRegex += 'quickshare\\.cz|';
  1689. if (GM_getValue("Check_czshare_dot_com_links", false))
  1690. hostRestrictionRegex += 'czshare\\.com|';
  1691. if (GM_getValue("Check_uloz_dot_to_links", false))
  1692. hostRestrictionRegex += 'uloz\\.to|';
  1693. if (GM_getValue("Check_hellspy_dot_com_links", false))
  1694. hostRestrictionRegex += 'hellspy|';
  1695. if (GM_getValue("Check_multishare_dot_cz_links", false))
  1696. hostRestrictionRegex += 'multishare\\.cz|';
  1697.  
  1698. hostRestrictionRegex = hostRestrictionRegex.replace(/\|$/, "");
  1699.  
  1700. linkify(mlRegex);
  1701.  
  1702. var mlSnapshot = document.evaluate(mlXpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  1703. var mlCount = mlSnapshot.snapshotLength;
  1704.  
  1705. if (mlCount > 0)
  1706. {
  1707. cMultiloadTotal += mlCount;
  1708.  
  1709. mlIdx = mlCount - 1;
  1710. do
  1711. {
  1712. processMultiloadLink(mlSnapshot.snapshotItem(mlIdx));
  1713. }
  1714. while(mlIdx--)
  1715. }
  1716. }
  1717. //MULTILOAD.CZ END
  1718.  
  1719.  
  1720.  
  1721. function processMultiloadLink(mlLink)
  1722. {
  1723. GM_xmlhttpRequest({
  1724. method: 'GET',
  1725. url: mlLink.href,
  1726. headers: {
  1727. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1728. 'Accept': 'text/xml',
  1729. 'Referer': ""
  1730. },
  1731. onload: function(result) {
  1732. var res = result.responseText;
  1733.  
  1734. var innerBlockRegex = /<p class="manager-linky">(?:.|\s)+?<\/p>/g;
  1735. 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;
  1736. var innerLinkRegex = /((?:Upload se nezdařil.+|https?:\/\/(?:.|\s)+|Právě probíhá reupload, buďte trpěliví\.\.\.))</;
  1737. var mlRestrictionRegex = new RegExp(hostRestrictionRegex,"g"); //what links should be displayed
  1738.  
  1739. var blocks; // blocks of links
  1740. var blockIdx;
  1741.  
  1742. mlLink.className = '';
  1743.  
  1744. if (result.status == 503) //service temporarily unavailable, repeat request in one second
  1745. {
  1746. setTimeout(function(){ processMultiloadLink(mlLink); }, 1000);
  1747. return;
  1748. }
  1749.  
  1750. blocks = res.match(innerBlockRegex);
  1751.  
  1752. if (blocks == null) //no links found, cancel further processing
  1753. {
  1754. mlLink.parentNode.appendChild(document.createTextNode(' | Požadovaný soubor neexistuje.'));
  1755. cMultiloadProcessed++;
  1756. if (cMultiloadTotal <= cMultiloadProcessed)
  1757. {
  1758. startBulkCheck('container_link');
  1759. start('container_link');
  1760. }
  1761. return;
  1762. }
  1763.  
  1764. blockIdx = blocks.length;
  1765.  
  1766. if (Display_full_links_in_link_containers)
  1767. {
  1768. var ulElm = document.createElement('ul');
  1769. ulElm.className = 'container_list'; //CSS smaller font, padding, margin, square style
  1770.  
  1771. while(blockIdx--)
  1772. {
  1773. if (blocks[blockIdx].match(mlRestrictionRegex) == null)
  1774. {
  1775. continue;
  1776. }
  1777.  
  1778. var innerLinks = blocks[blockIdx].match(innerLinksRegex);
  1779.  
  1780. var linkIdx = innerLinks.length;
  1781. while (linkIdx--)
  1782. {
  1783. var innerLink = innerLinks[linkIdx].match(innerLinkRegex)[1];
  1784.  
  1785. var liElm = document.createElement('li');
  1786.  
  1787. if (innerLink.match(/Upload se nezdařil|limit exceeded|probíhá reupload/))
  1788. {
  1789. liElm.appendChild(document.createTextNode(innerLink));
  1790. }
  1791. else
  1792. {
  1793. var aElm = document.createElement('a');
  1794. aElm.innerHTML = innerLink;
  1795. aElm.href = innerLink;
  1796. aElm.className = 'container_link';
  1797.  
  1798. liElm.appendChild(aElm);
  1799. }
  1800.  
  1801. ulElm.appendChild(liElm);
  1802. cLinksTotal++;
  1803. }
  1804. }
  1805.  
  1806. mlLink.parentNode.appendChild(ulElm);
  1807. }
  1808. else //compact view
  1809. {
  1810. mlLink.parentNode.appendChild(document.createTextNode("|"));
  1811.  
  1812. while(blockIdx--)
  1813. {
  1814. if (blocks[blockIdx].match(mlRestrictionRegex) == null)
  1815. {
  1816. continue;
  1817. }
  1818.  
  1819. var innerLinks = blocks[blockIdx].match(innerLinksRegex);
  1820.  
  1821. var linkIdx = innerLinks.length;
  1822. while (linkIdx--)
  1823. {
  1824. var innerLink = innerLinks[linkIdx].match(innerLinkRegex)[1];
  1825.  
  1826. if (innerLink.match(/Upload se nezdařil|limit exceeded|probíhá reupload/))
  1827. {
  1828. mlLink.parentNode.appendChild(document.createTextNode("----"));
  1829. }
  1830. else
  1831. {
  1832. var aElm = document.createElement('a');
  1833.  
  1834. var hostName = innerLink.match(/quickshare|hellshare|uloz\.to|multishare|hellspy|share\-rapid|czshare/);
  1835.  
  1836. //abbreviate host name
  1837. switch(hostName + ""){
  1838.  
  1839. case 'quickshare': aElm.innerHTML = 'QS'; break;
  1840. case 'hellshare': aElm.innerHTML = 'HS'; break;
  1841. case 'uloz.to': aElm.innerHTML = 'UT'; break;
  1842. case 'multishare': aElm.innerHTML = 'MS'; break;
  1843. case 'hellspy': aElm.innerHTML = 'hs'; break;
  1844. case 'share-rapid': aElm.innerHTML = 'SR'; break;
  1845. case 'czshare': aElm.innerHTML = 'CS'; break;
  1846. default: aElm.innerHTML = 'xx';
  1847.  
  1848. }
  1849.  
  1850. aElm.href = innerLink;
  1851. aElm.className = 'container_link';
  1852.  
  1853. mlLink.parentNode.appendChild(aElm);
  1854. cLinksTotal++;
  1855. }
  1856. }
  1857.  
  1858. mlLink.parentNode.appendChild(document.createTextNode("|")); //blocks delimiter
  1859.  
  1860. }
  1861. }
  1862.  
  1863. cMultiloadProcessed++;
  1864. if (cMultiloadTotal == cMultiloadProcessed) //start check when all ml links have been processed
  1865. {
  1866. if (Do_not_linkify_DL_links)
  1867. {
  1868. delinkifySnapshot(mlSnapshot);
  1869. }
  1870. startBulkCheck('container_link');
  1871. start('container_link');
  1872. }
  1873. }
  1874. });
  1875. }
  1876.  
  1877.  
  1878. if (GM_getValue("Check_mirrorcreator_dot_com_links", false))
  1879. {
  1880. var mcRegex = 'mirrorcreator\\.com/files/(\\w+)';
  1881. var mcXpath = "//a[contains(@href,'mirrorcreator.com/files')]";
  1882. var mcShortHostNames =
  1883. '?? 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';
  1884. // 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
  1885. //?????? depositfiles sendspace load.to ul.to storage.to uploadbox x7.to fileserve ?????? duckload filehook filepost jumbofiles glumbouploads
  1886. // zshare ?????? 2shared uploading ugotfile extabit oron eyvx uploadstation putlocker
  1887. // megaupload badongo megashare gamefront ifile ?????? letitbit ?????? ?????? filejungle megashares
  1888. // easy-share ?????? netload zippyshare ?????? filesonic turbobit enterupload ?????? filekeen wupload crocko fileflyer
  1889.  
  1890. linkify(mcRegex);
  1891.  
  1892. var mcSnapshot = document.evaluate(mcXpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  1893. var mcCount = mcSnapshot.snapshotLength;
  1894.  
  1895. cMirrorcreatorComTotal = mcCount;
  1896.  
  1897. if (mcCount > 0)
  1898. {
  1899. mcShortHostNames = mcShortHostNames.split(' ');
  1900. mcIdx = mcCount;
  1901. while(mcIdx--)
  1902. processMirrorcreatorLink(mcSnapshot.snapshotItem(mcIdx));
  1903. }
  1904.  
  1905. }
  1906. //MIRRORCREATOR.CZ END
  1907.  
  1908.  
  1909. //mirrorcreator.com checking works like this:
  1910. //The base URL is http://www.mirrorcreator.com/files/XXXXXXXX/filename_links
  1911. //the actual list of mirrors is at http://www.mirrorcreator.com/status.php?uid=XXXXXXXX
  1912. //the list contains links in the form of (http://www.mirrorcreator.com)/redirect/XXXXXXXX/1
  1913. //these redirector links are extracted with mcLinkBlockRegex and the pages loaded
  1914. //they contain the actual filehost links, which are extracted with mcHostRegex and displayed in a container list
  1915. function processMirrorcreatorLink(mcLink)
  1916. {
  1917. var mcURL = mcLink.href.match(mcRegex);
  1918. if(!mcURL || !mcURL[1]) return;
  1919. mcURL = 'http://www.mirrorcreator.com/status.php?uid=' + mcURL[1]; //link correction
  1920. GM_xmlhttpRequest({
  1921. method: 'GET',
  1922. url: mcURL,
  1923. headers: {
  1924. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1925. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*'+'/*;q=0.8',
  1926. 'Referer': ""
  1927. },
  1928. onload: function(mcLinkResult) {
  1929. var mcLinkRes = mcLinkResult.responseText;
  1930.  
  1931. var mcLinkBlockRegex = /(\/redirect\/\w+\/(\d+))/gi;
  1932. var mcHostRegex = /<div id="redirectlink">.*?<a href="([^"]+)"/;
  1933.  
  1934. var mcRedirectors;
  1935. var mcHostURLs = [], mcRedirectorIDs = [], mcHostsFound = 0, mcHostsRetrieved = 0, mcHostsToProcess = 0;
  1936. var m = mcLinkRes.match(mcLinkBlockRegex);
  1937. if (m)
  1938. mcHostsFound = m.length;
  1939. else
  1940. { //no files inside container
  1941. processMirrorcreatorFoundHosts(mcLink, []);
  1942. return;
  1943. }
  1944.  
  1945. var mcRedirectorURL, idx, timedOut = false;
  1946.  
  1947. var gmxhrFunc = function(mcRedirectorURL){ //Tampermonkey doesn't know neither this.url or result.finalUrl
  1948. GM_xmlhttpRequest({
  1949. method: 'GET',
  1950. url: mcRedirectorURL,
  1951. headers: {
  1952. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1953. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*'+'/*;q=0.8',
  1954. 'Referer': ""
  1955. },
  1956. onload: function(mcHostResult) {
  1957. if (timedOut) return; //too late, the list is already displayed
  1958. var mcHostRes = mcHostResult.responseText;
  1959. var mcHost = mcHostRes.match(mcHostRegex);
  1960. idx = mcHostURLs.indexOf(mcRedirectorURL);
  1961. if (mcHost && idx!=-1)
  1962. {
  1963. mcHostURLs[idx] = mcHost[1].replace(/^\s+|\s+$/g, '');
  1964. mcHostsRetrieved++;
  1965. mcHostsToProcess++;
  1966. if (mcHostsFound == mcHostsRetrieved) //this is the last one!
  1967. {
  1968. processMirrorcreatorFoundHosts(mcLink, mcHostURLs, mcRedirectorIDs);
  1969. mcHostsToProcess = 0;
  1970. }
  1971. }
  1972. } //end of onload: function
  1973. }); //end of GM_xmlhttpRequest call
  1974. };//end of var gmxhrFunc
  1975.  
  1976. while (mcRedirectors = mcLinkBlockRegex.exec(mcLinkRes))
  1977. { //load individual redirector pages
  1978. mcRedirectorURL = 'http://www.mirrorcreator.com' + mcRedirectors[1];
  1979. mcHostURLs.push(mcRedirectorURL);
  1980. mcRedirectorIDs.push(mcRedirectors[2]);
  1981. gmxhrFunc(mcRedirectorURL);
  1982. } //end of while block
  1983.  
  1984. setTimeout(function(){ //in case the last page fails to load and call the function
  1985. timedOut = true;
  1986. if (mcHostsToProcess)
  1987. processMirrorcreatorFoundHosts(mcLink, mcHostURLs);
  1988. }, 60000);
  1989.  
  1990. } //end of onload function
  1991. }); //end of GM_xmlhttpRequest call
  1992. } //end of function processMirrorcreatorLink
  1993.  
  1994.  
  1995. function processMirrorcreatorFoundHosts(mcLink, mcHostURLs, mcRedirectorIDs)
  1996. {
  1997. var aEl, liEl, docFrag;
  1998. var hostName, mcRedirectorID, trimFilename = false;
  1999. var i = mcHostURLs.length;
  2000. if (i == 0)
  2001. {
  2002. trimFilename = true;
  2003. mcLink.parentNode.insertBefore(document.createTextNode(' | No files inside container'), mcLink.nextSibling);
  2004. }
  2005. else
  2006. {
  2007. if (Display_full_links_in_link_containers)
  2008. { //full view
  2009. var wrapperEl = document.createElement('span');
  2010. wrapperEl.style.display = 'block';
  2011. var ulistEl = document.createElement('ul');
  2012. ulistEl.className = 'container_list';
  2013. while (i--)
  2014. {
  2015. liEl = document.createElement('li');
  2016. aEl = document.createElement('a');
  2017. aEl.appendChild(document.createTextNode(mcHostURLs[i]));
  2018. aEl.href = mcHostURLs[i];
  2019. aEl.className = 'container_link';
  2020. liEl.appendChild(aEl);
  2021. ulistEl.appendChild(liEl);
  2022. }
  2023. wrapperEl.appendChild(ulistEl);
  2024. mcLink.parentNode.replaceChild(wrapperEl, mcLink);
  2025. wrapperEl.insertBefore(mcLink, wrapperEl.firstChild);
  2026. }
  2027. else
  2028. { //compact view
  2029. trimFilename = true;
  2030. docFrag = document.createDocumentFragment();
  2031. docFrag.appendChild(document.createTextNode(' |'));
  2032. while (i--)
  2033. {
  2034. mcRedirectorID = mcRedirectorIDs[i];
  2035. hostName = mcHostURLs[i];
  2036. if (mcRedirectorID > mcShortHostNames.length-1 || mcShortHostNames[mcRedirectorID] == '??')
  2037. hostName = hostName.replace(/https?:\/\/(?:www\.)?([-0-9a-z]+(?:\.[-0-9a-z]+)?)\.[a-z]+\/.*/i, '$1').toUpperCase();
  2038. else
  2039. hostName = mcShortHostNames[mcRedirectorID];
  2040. aEl = document.createElement('a');
  2041. aEl.href = mcHostURLs[i];
  2042. aEl.className = 'container_link';
  2043. aEl.appendChild(document.createTextNode(hostName));
  2044. docFrag.appendChild(aEl);
  2045. docFrag.appendChild(document.createTextNode('|'));
  2046. }
  2047. mcLink.parentNode.insertBefore(docFrag, mcLink.nextSibling);
  2048. } //end of else block
  2049. } //end of else block
  2050. mcLink.className = '';
  2051. if (trimFilename)
  2052. mcLink.firstChild.nodeValue = mcLink.firstChild.nodeValue.replace(/(https?:\/\/[^\/]+\/files\/\w+\/).+/, '$1...');
  2053. cMirrorcreatorComProcessed++;
  2054. if (cMirrorcreatorComProcessed == cMirrorcreatorComTotal) //start check when all mc links have been processed
  2055. {
  2056. if (Do_not_linkify_DL_links)
  2057. delinkifySnapshot(mcSnapshot);
  2058. startBulkCheck('container_link');
  2059. start('container_link');
  2060. }
  2061. } //end of function processMirrorcreatorFoundHosts
  2062.  
  2063. containers_processed = true;
  2064.  
  2065.  
  2066. function initRedirectors()
  2067. {
  2068. function addRedirector(linkRegex, xpathEx, redirType, innerLinkRegex)
  2069. {
  2070. var redirector = new Object();
  2071. redirector.linkRegex = linkRegex;
  2072. redirector.xpath = xpathEx; //xpath expression
  2073. redirector.cProcessed = 0; //processed links count
  2074. redirector.cTotal = 0; //total links count
  2075. redirector.type = redirType; //redirectorTypes enum
  2076. redirector.innerLinkRegex = innerLinkRegex; //innerLink, null if unused
  2077. redirectors.push(redirector);
  2078. }
  2079. if (GM_getValue("Check_safelinking_dot_net_links", false))
  2080. {
  2081. addRedirector(
  2082. 'safelinking\\.net\/d\/\\w+',
  2083. "//a[contains(@href,'safelinking.net/d/')]",
  2084. redirectorTypes.HTTP_302,
  2085. null);
  2086. }
  2087. if (GM_getValue("Check_linksafe_dot_me_links", false))
  2088. {
  2089. addRedirector(
  2090. 'linksafe\\.me\/d\/\\w+',
  2091. "//a[contains(@href,'linksafe.me/d/')]",
  2092. redirectorTypes.HTTP_302,
  2093. null);
  2094. }
  2095. if (GM_getValue("Check_linkto_dot_net_links", false))
  2096. {
  2097. addRedirector(
  2098. 'linkto\\.net\/\\?\\w+\\.\\d+',
  2099. "//a[contains(@href,'linkto.net/?')]",
  2100. redirectorTypes.INNER_LINK,
  2101. /<iframe id="iframe" name="iframe" src="(.+?)\s*" frameborder="0"/);
  2102. }
  2103. if (GM_getValue("Check_theloo_dot_katt_dot_it_links", false))
  2104. {
  2105. addRedirector(
  2106. '(?:the)?loo\\.katt\\.it\/\\w+',
  2107. "//a[contains(@href,'loo.katt.it/')]",
  2108. redirectorTypes.THELOO_KATT_IT,
  2109. /Proceed to URL - <a href="(.+?)">/);
  2110. }
  2111. if (GM_getValue("Check_madlink_dot_sk_links", false))
  2112. {
  2113. addRedirector(
  2114. 'madlink\\.sk\/\\w+',
  2115. "//a[contains(@href,'madlink.sk/')]",
  2116. redirectorTypes.INNER_LINK,
  2117. /name="url" value="(.+?)\s*"\/>/);
  2118. }
  2119. if (GM_getValue("Check_adf_dot_ly_links", false))
  2120. {
  2121. addRedirector(
  2122. '(?:adf\\.ly|[u9]\\.bb|[qj]\\.gs)\/\\w+',
  2123. "//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/')]",
  2124. redirectorTypes.ADF_LY,
  2125. null);
  2126. }
  2127. if (GM_getValue("Check_redi_dot_re_links", false))
  2128. {
  2129. addRedirector(
  2130. 'redi\\.re\/\\w+',
  2131. "//a[contains(@href,'redi.re/')]",
  2132. redirectorTypes.HTTP_302,
  2133. null);
  2134. }
  2135. if (GM_getValue("Check_bit_dot_ly_links", false))
  2136. {
  2137. addRedirector(
  2138. 'bit\\.ly\/\\w+',
  2139. "//a[contains(@href,'bit.ly/')]",
  2140. redirectorTypes.HTTP_302,
  2141. null);
  2142. }
  2143. }
  2144.  
  2145. }
  2146.  
  2147. var bulkHosts = new Array();
  2148. var bulkHostNames = new Array();
  2149. function initBulkCheck()
  2150. {
  2151. /////////////////////////////
  2152. // Inits filehost object
  2153. /////////////////////////////
  2154. // params :
  2155. // hostName -- [string] host name (multiple domains separated with coma)
  2156. // linkRegex -- [string] link regex
  2157. // xpath -- [string] xpath expression to detect the link objects with evaluate
  2158. // blockSize -- [integer] max. number of links sent in one request, 50 if null
  2159. // corrMatch -- [regex] link correction regex (match), applied prior to corrRepl
  2160. // corrReplWhat -- [regex] link correction regex (replace)
  2161. // corrReplWith -- [string]
  2162. // splitSeparator -- [string] POSTDATA links separator, "\r\n" if null
  2163. //
  2164. // apiUrl -- [string] web linkchecker or API URL
  2165. // postData -- [string] POSTDATA of xmlhttprequest
  2166. // resLinkRegex -- [regex]
  2167. // resLiveRegex -- [regex] matches substrings containing live links in the request response
  2168. // resDeadRegex -- [regex] matches substrings containing dead links in the request response
  2169. // resUnavaRegex -- [regex] matches substrings containing unava links in the request response
  2170. // func -- [function] bulkcheck handler, genBulkCheck if null
  2171. //
  2172. //////////////////////////////
  2173. function addHost(hostName, linkRegex, xpath, blockSize, corrMatch, corrReplWhat, corrReplWith, splitSeparator,
  2174. apiUrl, postData, resLinkRegex, resLiveRegex, resDeadRegex, resUnavaRegex, func)
  2175. {
  2176. var fileHost = new Object();
  2177.  
  2178. fileHost.linkRegex = linkRegex;
  2179. fileHost.linkRegexObject = new RegExp(linkRegex, "");
  2180. fileHost.xpath = xpath;
  2181. fileHost.cFound = 0; //found links counter
  2182. fileHost.links = new Array(); //found links
  2183. if (blockSize == null)
  2184. {
  2185. fileHost.blockSize = 50;
  2186. }
  2187. else
  2188. {
  2189. fileHost.blockSize = blockSize;
  2190. }
  2191. fileHost.corrMatch = corrMatch;
  2192. fileHost.corrReplWhat = corrReplWhat;
  2193. fileHost.corrReplWith = corrReplWith;
  2194. if (splitSeparator == null)
  2195. {
  2196. fileHost.splitSeparator = "\r\n";
  2197. }
  2198. else
  2199. {
  2200. fileHost.splitSeparator = splitSeparator;
  2201. }
  2202. fileHost.apiUrl = apiUrl;
  2203. fileHost.postData = postData;
  2204. fileHost.resLinkRegex = resLinkRegex;
  2205. fileHost.resLiveRegex = resLiveRegex;
  2206. fileHost.resDeadRegex = resDeadRegex;
  2207. fileHost.resUnavaRegex = resUnavaRegex;
  2208. if (func == null)
  2209. {
  2210. fileHost.func = genBulkCheck;
  2211. }
  2212. else
  2213. {
  2214. fileHost.func = func;
  2215. }
  2216. bulkHosts.push(fileHost);
  2217. var names = hostName.split(',');
  2218. var i = names.length;
  2219. while(i--)
  2220. {
  2221. bulkHostNames[names[i]] = fileHost;
  2222. }
  2223. }
  2224. var genType1 = [
  2225. "migahost.com", "rodfile.com", "downloadani.me",
  2226. "rarefile.net",
  2227. "ddlstorage.com", "filesabc.com", "sharebeast.com",
  2228. "180upload.com", "verzend.be",
  2229. "movreel.com",
  2230. "4up.me",
  2231. "file4safe.com", "filemac.com", "4upfiles.com",
  2232. "idup.in", "novafile.com", "longfiles.com",
  2233. "bitupload.com",
  2234. "uploadbaz.com"
  2235. ];
  2236. var genType2 = [ "queenshare.com",
  2237. "hulkload.com",
  2238. "daj.to",
  2239. "amonshare.com", "edoc.com",
  2240. ];
  2241. //xfilesharing 1.0
  2242. function addGenericType1()
  2243. {
  2244. var i = genType1.length;
  2245. while(i--)
  2246. {
  2247. if (GM_getValue("Check_" + genType1[i].replace(/\./g, "_dot_").replace(/-/g, "_dash_") + "_links", false))
  2248. {
  2249. var regexSafe = genType1[i].replace(/\./g, "\\.").replace(/-/g, "\\-");
  2250. addHost(
  2251. genType1[i].match(/[\w-]+/)[0], //hostname
  2252. regexSafe + "\/\\w+", //linkregex
  2253. "//a[contains(@href,'" + genType1[i] + "/')]", //xpath
  2254. null, //blocksize
  2255. new RegExp("(http:\/\/(?:|www\\.)" + regexSafe + "\/\\w+)",""),//, //corrmatch
  2256. null, //corrreplwhat
  2257. null, //corrreplwith
  2258. null, //separator
  2259. "http://" + genType1[i] + "/checkfiles.html", //api url
  2260. "op=checkfiles&process=Check+URLs&list=", //postdata
  2261. new RegExp("(" + regexSafe + "\/\\w+)",""), //linkregex
  2262. new RegExp("green'>http:\/\/(?:|www\.)" + regexSafe + "\/\\w+","g"), //liveregex
  2263. new RegExp("red'>http:\/\/(?:|www\.)" + regexSafe + "\/\\w+","g"), //deadregex
  2264. new RegExp("orange'>http:\/\/(?:|www\.)" + regexSafe + "\/\\w+","g"), //unavaregex
  2265. null //function delegate
  2266. )
  2267. }
  2268. }
  2269. }
  2270. //xfilesharing 2.0
  2271. function addGenericType2()
  2272. {
  2273. var i = genType2.length;
  2274. while(i--)
  2275. {
  2276. if (GM_getValue("Check_" + genType2[i].replace(/\./g, "_dot_").replace(/-/g, "_dash_") + "_links", false))
  2277. {
  2278. var regexSafe = genType2[i].replace(/\./g, "\\.").replace(/-/g, "\\-");
  2279. addHost(
  2280. genType2[i].match(/[\w-]+/)[0], //hostname
  2281. regexSafe + "\/\\w+", //linkregex
  2282. "//a[contains(@href,'" + genType2[i] + "/')]", //xpath
  2283. null, //blocksize
  2284. new RegExp("(http:\/\/(?:|www\\.)" + regexSafe + "\/\\w+)",""),//, //corrmatch
  2285. null, //corrreplwhat
  2286. null, //corrreplwith
  2287. null, //separator
  2288. "http://www." + genType2[i] + "/?op=checkfiles", //api url
  2289. "op=checkfiles&process=Check+URLs&list=", //postdata
  2290. new RegExp("(" + regexSafe + "\/\\w+)",""), //linkregex
  2291. new RegExp(regexSafe + "\/\\w+.*?<\/td>\\s*<td style=\"color:green;\">","g"), //liveregex
  2292. new RegExp(regexSafe + "\/\\w+.*?<\/td>\\s*<td style=\"color:red;\">","g"), //deadregex
  2293. new RegExp(regexSafe + "\/\\w+.*?<\/td>\\s*<td style=\"color:orange;\">","g"), //unavaregex
  2294. null //function delegate
  2295. )
  2296. }
  2297. }
  2298. }
  2299. // TEMPLATE
  2300. // if (GM_getValue("Check__dot_com_links", false))
  2301. // {
  2302. // addHost(
  2303. // "", //hostname
  2304. // "", //linkregex
  2305. // "//a[contains(@href,'.com/')]", //xpath
  2306. // null, //blocksize
  2307. // null, //corrmatch
  2308. // null, //corrreplwhat
  2309. // null, //corrreplwith
  2310. // null, //separator
  2311. // "", //api url
  2312. // "", //postdata
  2313. // /()/, //linkregex
  2314. // //liveregex
  2315. // //deadregex
  2316. // //unavaregex
  2317. // null //function delegate
  2318. // )
  2319. // }
  2320. addGenericType1();
  2321. addGenericType2();
  2322.  
  2323. if (GM_getValue("Check_myvdrive_dot_com_links", false))
  2324. {
  2325. addHost(
  2326. "myvdrive,fileserving", //hostname
  2327. "(?:fileserving|myvdrive)\\.com\/files\/[\\w-]+", //linkregex
  2328. "//a[contains(@href,'fileserving.com/files') or contains(@href,'myvdrive.com/files')]", //xpath
  2329. null, //blocksize
  2330. null, //corrmatch
  2331. null, //corrreplwhat
  2332. null, //corrreplwith
  2333. null, //separator
  2334. "http://www.myvdrive.com/Public/linkchecker#", //api url
  2335. "links=", //postdata
  2336. /(?:fileserving|myvdrive)\.com\/(files\/\w+)/, //linkregex
  2337. /icon_file_check_valid"><\/span>\s*http:\/\/www\.(?:fileserving|myvdrive)\.com\/files\/[\w-]+/g, //liveregex
  2338. /icon_file_check_(?:removed|notvalid)"><\/span>\s*http:\/\/www\.(?:fileserving|myvdrive)\.com\/files\/[\w-]+/g, //deadregex
  2339. null, //unavaregex
  2340. null //function delegate
  2341. )
  2342. }
  2343. if (GM_getValue("Check_hackerbox_dot_org_links", false))
  2344. {
  2345. addHost(
  2346. "hackerbox", //hostname
  2347. "host\\.hackerbox\\.org\/\\w+", //linkregex
  2348. "//a[contains(@href,'host.hackerbox.org/')]", //xpath
  2349. null, //blocksize
  2350. /(http:\/\/host\.hackerbox\.org\/\w+)/, //corrmatch
  2351. null, //corrreplwhat
  2352. null, //corrreplwith
  2353. null, //separator
  2354. "http://host.hackerbox.org/checkfiles.html", //api url
  2355. "op=checkfiles&process=Check+URLs&list=", //postdata
  2356. /(host\.hackerbox\.org\/\w+)/, //linkregex
  2357. /green'>http:\/\/host\.hackerbox\.org\/\w+/g, //liveregex
  2358. /red'>http:\/\/host\.hackerbox\.org\/\w+/g, //deadregex
  2359. /orange'>http:\/\/host\.hackerbox\.org\/\w+/g, //unavaregex
  2360. null //function delegate
  2361. )
  2362. }
  2363. if (GM_getValue("Check_hellshare_dot_com_links", false))
  2364. {
  2365. addHost(
  2366. "hellshare", //hostname
  2367. "(?:|download\\.(?:cz\\.|en\\.|sk\\.|)|www\\.)hellshare\\.(?:com|sk|cz|pl|hu|COM|SK|CZ|PL|HU)\/[\\w-\\.]+\/(?:[\\w-\\.]+\/|)\\d{5,}", //linkregex
  2368. "//a[contains(@href,'hellshare.')]", //xpath
  2369. 48, //blocksize
  2370. null, //corrmatch
  2371. null, //corrreplwhat
  2372. null, //corrreplwith
  2373. null, //separator
  2374. null, //api url
  2375. null, //postdata
  2376. null, //linkregex
  2377. null, //liveregex
  2378. null, //deadregex
  2379. null, //unavaregex
  2380. hellshareBulkCheck //function delegate
  2381. )
  2382. }
  2383. if (GM_getValue("Check_ncrypt_dot_in_links", false))
  2384. {
  2385. addHost(
  2386. "ncrypt", //hostname
  2387. "ncrypt\\.in\/folder\\-\\w+", //linkregex
  2388. "//a[contains(@href,'ncrypt.in/folder')]", //xpath
  2389. 100000, //blocksize
  2390. null, //corrmatch
  2391. null, //corrreplwhat
  2392. null, //corrreplwith
  2393. null, //separator
  2394. null,
  2395. null,
  2396. null,
  2397. null,
  2398. null,
  2399. null,
  2400. ncryptBulkCheck //function delegate
  2401. )
  2402. }
  2403. if (GM_getValue("Check_geupload_dot_com_links", false))
  2404. {
  2405. addHost(
  2406. "geupload,lenfile", //hostname
  2407. "(?:geupload\\.com|lenfile\\.com)\/\\w+", //linkregex
  2408. "//a[contains(@href,'geupload.com/') or contains(@href,'lenfile.com/')]", //xpath
  2409. null, //blocksize
  2410. null, //corrmatch
  2411. null, //corrreplwhat
  2412. null, //corrreplwith
  2413. "\n", //separator
  2414. 'http://geupload.com/?op=checkfiles',
  2415. 'op=checkfiles&process=Check+URLs&list=',
  2416. />http:\/\/(?:geupload|lenfile)\.com\/(\w+)/,
  2417. />http:\/\/(?:geupload|lenfile)\.com\/\w+(?:[^>]+>)<td style=\"color\:green/g,
  2418. />http:\/\/(?:geupload|lenfile)\.com\/\w+(?:[^>]+>)<td style=\"color\:red/g,
  2419. null,
  2420. null
  2421. )
  2422. }
  2423. if (GM_getValue("Check_filepost_dot_com_links", false))
  2424. {
  2425. addHost(
  2426. "filepost,fp", //hostname
  2427. "(?:filepost\\.com\/files|fp\\.io)\/\\w+", //linkregex
  2428. "//a[contains(@href,'filepost.com/files/') or contains(@href,'fp.io/')]", //xpath
  2429. null, //blocksize
  2430. null, //corrmatch
  2431. null, //corrreplwhat
  2432. null, //corrreplwith
  2433. "\n", //separator
  2434. 'http://filepost.com/files/checker/?JsHttpRequest=0-xml',
  2435. 'urls=',
  2436. /\\\/files\\\/(\w+)/,
  2437. />http:\\\/\\\/filepost\.com\\\/files\\\/\w+(?:[^>]+>){5}(?:\\n|\\t)+<span class=\\"v\\"/g,
  2438. />http:\\\/\\\/filepost\.com\\\/files\\\/\w+(?:[^>]+>){5}(?:\\n|\\t)+<span class=\\"x\\"/g,
  2439. null,
  2440. null //function delegate
  2441. )
  2442. }
  2443. if (GM_getValue("Check_filesflash_dot_com_links", false))
  2444. {
  2445. addHost(
  2446. "filesflash", //hostname
  2447. "filesflash\\.com\/\\w+", //linkregex
  2448. "//a[contains(@href,'filesflash.com')]", //xpath
  2449. null, //blocksize
  2450. null, //corrmatch
  2451. /http:\/\//, //corrreplwhat
  2452. '', //corrreplwith
  2453. null, //separator
  2454. 'http://filesflash.com/checklinks.php',
  2455. 'submit=Go&links=',
  2456. /filesflash\.com\/(\w+)/,
  2457. /<td>filesflash\.com\/\w+<\/td>\s*<td>Available/g,
  2458. /<td>filesflash\.com\/\w+<\/td>\s*<td>(?:Invalid|Deleted|Expired|Banned)?<\/td>/g,
  2459. null,
  2460. null //function delegate
  2461. )
  2462. }
  2463. if (GM_getValue("Check_jumbofiles_dot_com_links", false))
  2464. {
  2465. addHost(
  2466. "jumbofiles", //hostname
  2467. "jumbofiles\\.com\/\\w+", //linkregex
  2468. "//a[contains(@href,'jumbofiles.com/')]", //xpath
  2469. null, //blocksize
  2470. /(http:\/\/(?:|www\.)jumbofiles\.com\/\w+)/, //corrmatch
  2471. null, //corrreplwhat
  2472. null, //corrreplwith
  2473. null, //separator
  2474. "http://jumbofiles.com/checkfiles.html", //api url
  2475. "op=checkfiles&process=Check+URLs&list=", //postdata
  2476. /(jumbofiles\.com\/\w+)/, //linkregex
  2477. /blue'>http:\/\/(?:|www\.)jumbofiles\.com\/\w+/g, //liveregex
  2478. /red'>http:\/\/(?:|www\.)jumbofiles\.com\/\w+/g, //deadregex
  2479. /orange'>http:\/\/(?:|www\.)jumbofiles\.com\/\w+/g, //unavaregex
  2480. null //function delegate
  2481. )
  2482. }
  2483. if (GM_getValue("Check_edisk_dot_cz_links", false))
  2484. {
  2485. addHost(
  2486. "edisk", //hostname
  2487. "(?:(?:muj|data)\\d*\\.|)edisk\\.(?:cz|sk|eu)\/(?:|(?:cz|sk|en|pl)\/)", //linkregex
  2488. "//a[contains(@href,'edisk.')]", //xpath
  2489. null, //blocksize
  2490. null, //corrmatch
  2491. /edisk\.\w{2}\/(?:|\w{2}\/)stahni/, //corrreplwhat
  2492. 'edisk.cz/stahni', //corrreplwith
  2493. null, //separator
  2494. 'http://www.edisk.cz/zkontrolovat-odkazy',
  2495. 'submitBtn=Zkontrolovat&checkFiles=',
  2496. /((?:download|stahn(?:i|out-soubor))\/\d+)/,
  2497. /"ano"\/>\s*<\/td>\s*<td>\s*http:\/\/.+/g,
  2498. /"ne"\/>\s*<\/td>\s*<td>\s*http:\/\/.+/g,
  2499. null,
  2500. null //function delegate
  2501. )
  2502. }
  2503. if (GM_getValue("Check_bezvadata_dot_cz_links", false))
  2504. {
  2505. GM_xmlhttpRequest( //age check skip
  2506. {
  2507. method: 'POST',
  2508. url: 'http://bezvadata.cz/vyhledavani/souhlas-zavadny-obsah',
  2509. headers: {
  2510. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  2511. 'Content-type': 'application/x-www-form-urlencoded',
  2512. 'Referer': ""
  2513. }
  2514. });
  2515. addHost(
  2516. "bezvadata", //hostname
  2517. "(?:beta\\.|)bezvadata\.cz\/stahnout\/\\d+\\w+", //linkregex
  2518. "//a[contains(@href,'bezvadata.cz')]", //xpath
  2519. null, //blocksize
  2520. null, //corrmatch
  2521. null, //corrreplwhat
  2522. null, //corrreplwith
  2523. null, //separator
  2524. 'http://bezvadata.cz/nastroje/kontrola-odkazu?do=kontrolaOdkazuForm-submit',
  2525. 'zkontrolovat=Zkontrolovat&odkazy=',
  2526. /(bezvadata\.cz\/stahnout\/\d+)/,
  2527. /bezvadata\.cz\/stahnout\/.+?<\/td>\s*<td style="background-color: #d9ffb2/g,
  2528. /bezvadata\.cz\/stahnout\/.+?<\/td>\s*<td style="background-color: #ffb2b2/g,
  2529. null,
  2530. null //function delegate
  2531. )
  2532. }
  2533. if (GM_getValue("Check_linkcrypt_dot_ws_links", false))
  2534. {
  2535. addHost(
  2536. "linkcrypt", //hostname
  2537. "linkcrypt\\.ws\/dir\/\\w+", //linkregex
  2538. "//a[contains(@href,'linkcrypt.ws/dir')]", //xpath
  2539. 100000, //blocksize
  2540. null, //corrmatch
  2541. null, //corrreplwhat
  2542. null, //corrreplwith
  2543. null, //separator
  2544. null,
  2545. null,
  2546. null,
  2547. null,
  2548. null,
  2549. null,
  2550. linkcryptBulkCheck //function delegate
  2551. )
  2552. }
  2553. if (GM_getValue("Check_linksave_dot_in_links", false))
  2554. {
  2555. addHost(
  2556. "linksave", //hostname
  2557. "linksave\\.in\/\\w+", //linkregex
  2558. "//a[contains(@href,'linksave.in')]", //xpath
  2559. 100000, //blocksize
  2560. null, //corrmatch
  2561. null, //corrreplwhat
  2562. null, //corrreplwith
  2563. null, //separator
  2564. null,
  2565. null,
  2566. null,
  2567. null,
  2568. null,
  2569. null,
  2570. linksaveBulkCheck //function delegate
  2571. )
  2572. }
  2573. if (GM_getValue("Check_videobb_dot_com_links", false))
  2574. {
  2575. addHost(
  2576. "videobb", //hostname
  2577. "videobb\\.com\/(?:video\/|watch_video\\.php\\?v=)\\w+", //linkregex
  2578. "//a[contains(@href,'videobb.com')]", //xpath
  2579. null, //blocksize
  2580. null, //corrmatch
  2581. /watch_video\.php\?v=/, //corrreplwhat
  2582. 'video/', //corrreplwith
  2583. null, //separator
  2584. 'http://www.videobb.com/link_checker.php',
  2585. 'links=',
  2586. /videobb\.com\/video\/(\w+)/,
  2587. /<td>http:\/\/(?:www\.|)videobb.com\/video\/\w+<\/td>\s+<td>.+?<\/td>\s+<td>\d+:\d+<\/td>\s+<td>Available/g,
  2588. /<td>http:\/\/(?:www\.|)videobb.com\/video\/\w+<\/td>\s+<td><\/td>\s+<td>N\/A<\/td>\s+<td>Not Available/g,
  2589. null,
  2590. null //function delegate
  2591. )
  2592. }
  2593. if (GM_getValue("Check_cramit_dot_in_links", false))
  2594. {
  2595. addHost(
  2596. "cramit,cramitin", //hostname
  2597. "cramit(?:\\.in|in\\.net)\/", //linkregex
  2598. "//a[contains(@href,'cramitin.net') or contains(@href,'cramit.in')]", //xpath
  2599. null, //blocksize
  2600. null, //corrmatch
  2601. null, //corrreplwhat
  2602. null, //corrreplwith
  2603. null, //separator
  2604. 'http://cramit.in/checkfiles.html',
  2605. 'op=checkfiles&process=CHECK+URL%27S&list=',
  2606. /(cramit(?:\.in|in\.net)\/\w+)/,
  2607. /green>http:\/\/(?:www\.|)cramit(?:\.in|in\.net)\/\w+/g,
  2608. /red'>http:\/\/(?:www\.|)cramit(?:\.in|in\.net)\/\w+/g,
  2609. /orange'>http:\/\/(?:www\.|)cramit(?:\.in|in\.net)\/\w+/g,
  2610. null //function delegate
  2611. )
  2612. }
  2613. if (GM_getValue("Check_turbobit_dot_net_links", false))
  2614. {
  2615. addHost(
  2616. "turbobit", //hostname
  2617. "turbobit\\.(?:net|pl)\/(?:\\w+\/|).+?\\.html", //linkregex
  2618. "//a[contains(@href,'turbobit.')]", //xpath
  2619. null, //blocksize
  2620. /(turbobit\.(?:net|pl)\/(?:\w+\/|).+?\.html)/, //corrmatch
  2621. null, //corrreplwhat
  2622. null, //corrreplwith
  2623. "\n", //separator
  2624. 'http://turbobit.net/linkchecker/csv',
  2625. 'links_to_check=',
  2626. /(turbobit\.(?:net|pl)\/\w+)/,
  2627. /turbobit\.(?:net|pl)\/.*?, 1/g,
  2628. /turbobit\.(?:net|pl)\/.*?, 0/g,
  2629. null,
  2630. null //function delegate
  2631. )
  2632. }
  2633. if (GM_getValue("Check_filerio_dot_com_links", false))
  2634. {
  2635. addHost(
  2636. "filekeen,filerio", //hostname
  2637. //"file(?:keen|rio)\\.(?:com|in)\/\\w+\/.", //linkregex
  2638. "file(?:keen|rio)\\.(?:com|in)\/\\w+", //linkregex
  2639. "//a[contains(@href,'filekeen.com') or contains(@href,'filerio.')]", //xpath
  2640. null, //blocksize
  2641. null, //corrmatch
  2642. null, //corrreplwhat
  2643. null, //corrreplwith
  2644. null, //separator
  2645. 'http://filerio.in/checkfiles.html',
  2646. 'op=checkfiles&process=Check+URLs&list=',
  2647. /(file(?:keen|rio)\.(?:com|in)\/\w+)/,
  2648. /green'>http:\/\/(?:www\.|)file(?:keen|rio)\.(?:com|in)\/\w+/g,
  2649. /red'>http:\/\/(?:www\.|)file(?:keen|rio)\.(?:com|in)\/\w+/g,
  2650. /orange'>http:\/\/(?:www\.|)file(?:keen|rio)\.(?:com|in)\/\w+/g,
  2651. null //function delegate
  2652. )
  2653. }
  2654. if (GM_getValue("Check_share_dash_online_dot_biz_links", false))
  2655. {
  2656. addHost(
  2657. "share-online,egoshare", //hostname
  2658. "(?:share-online\\.biz|egoshare\\.com)\/(?:dl\/|download\\.php\\?id=)", //linkregex
  2659. "//a[contains(@href,'share-online.biz') or contains(@href,'egoshare.com')]", //xpath
  2660. null, //blocksize
  2661. /http:\/\/(?:www\.)?(?:share-online\.biz|egoshare\.com)\/d(?:l\/|ownload\.php\?id=)(\w+)/, //corrmatch
  2662. null, //corrreplwhat
  2663. null, //corrreplwith
  2664. "\n", //separator
  2665. 'http://api.share-online.biz/linkcheck.php',
  2666. 'links=',
  2667. /(\w+);(?:OK|NOTFOUND|DELETED)/,
  2668. /\w+;OK/g,
  2669. /\w+;(?:NOTFOUND|DELETED)/g,
  2670. null,
  2671. null //function delegate
  2672. )
  2673. }
  2674. if (GM_getValue("Check_quickshare_dot_cz_links", false))
  2675. {
  2676. addHost(
  2677. "quickshare", //hostname
  2678. "quickshare\\.cz\/stahnout-soubor\/\\d+", //linkregex
  2679. "//a[contains(@href,'quickshare.cz')]", //xpath
  2680. null, //blocksize
  2681. null, //corrmatch
  2682. null, //corrreplwhat
  2683. null, //corrreplwith
  2684. null, //separator
  2685. 'http://www.quickshare.cz/nastroje/link-checker',
  2686. 'linky=',
  2687. /quickshare\.cz\/stahnout-soubor\/(\d+(?::\w+)?)/,
  2688. /quickshare\.cz\/stahnout-soubor\/\d+(?::[\w\-.+$!*\/()\[\]\',~%?:@#&=\\]+)?\s*<\/a><\/td><td><img src="\/img\/ok\.gif/g,
  2689. /quickshare\.cz\/stahnout-soubor\/\d+(?::[\w\-.+$!*\/()\[\]\',~%?:@#&=\\]+)?\s*<\/td><td><img src="\/img\/nenalezeno\.gif/g,
  2690. null,
  2691. null //function delegate
  2692. )
  2693. }
  2694. if (GM_getValue("Check_netload_dot_in_links", false))
  2695. {
  2696. addHost(
  2697. "netload", //hostname
  2698. "netload\\.in\/datei\\w{10}", //linkregex
  2699. "//a[contains(@href,'netload.in')]", //xpath
  2700. null, //blocksize
  2701. null, //corrmatch
  2702. null, //corrreplwhat
  2703. null, //corrreplwith
  2704. "\n", //separator
  2705. "http://api.netload.in/index.php?id=2", //api url
  2706. "send=Absenden&links=", //postdata
  2707. /(\w+);/, //linkregex
  2708. /\w{10,};.+?;.+?;online/g, //liveregex
  2709. /\w{10,};.+?;.+?;offline/g, //deadregex
  2710. null, //unavaregex
  2711. //netloadBulkCheck //function delegate //disabled on probation since 1.2.4.5
  2712. null //function delegate
  2713. )
  2714. }
  2715. if (GM_getValue("Check_oboom_dot_com_links", false))
  2716. {
  2717. addHost(
  2718. "oboom", //hostname
  2719. "oboom\\.com\/#?\\w{8}", //linkregex
  2720. "//a[contains(@href,'oboom.com/')]", //xpath
  2721. null, //blocksize
  2722. /oboom\.com\/#?(\w{8})/, //corrmatch
  2723. null, //corrreplwhat
  2724. null, //corrreplwith
  2725. null, //separator
  2726. null,
  2727. null,
  2728. null,
  2729. null, //liveregex
  2730. null, //deadregex
  2731. null,
  2732. oboomBulk //function delegate
  2733. )
  2734. }
  2735. if (GM_getValue("Check_mega_dot_co_dot_nz_links", false))
  2736. {
  2737. addHost(
  2738. "mega",
  2739. "mega\\.co\\.nz\/#!\\w+",
  2740. "//a[contains(@href,'mega.co.nz/')]",
  2741. 100000, //blocksize
  2742. null, //corrmatch
  2743. null, //corrreplwhat
  2744. null, //corrreplwith
  2745. null, //separator
  2746. null,
  2747. null,
  2748. null,
  2749. null,
  2750. null,
  2751. null,
  2752. megaBulkCheck //function delegate
  2753. )
  2754. }
  2755.  
  2756. if (GM_getValue("Check_mega_dot_nz_links", false))
  2757. {
  2758. addHost(
  2759. "meganz",
  2760. "mega\\.nz\/#!\\w+",
  2761. "//a[contains(@href,'mega.nz/')]",
  2762. 100000, //blocksize
  2763. null, //corrmatch
  2764. null, //corrreplwhat
  2765. null, //corrreplwith
  2766. null, //separator
  2767. null,
  2768. null,
  2769. null,
  2770. null,
  2771. null,
  2772. null,
  2773. meganzBulkCheck //function delegate
  2774. )
  2775. }
  2776. //the same as GenType2, except api url is 'https://' instead of 'http://www.' and corrmatch is not??? needed
  2777.  
  2778. if (GM_getValue("Check_extabit_dot_com_links", false))
  2779. {
  2780. addHost(
  2781. "extabit", //hostname
  2782. "extabit\\.com\/file\/\\w+", //linkregex
  2783. "//a[contains(@href,'extabit.com')]", //xpath
  2784. null, //blocksize
  2785. null, //corrmatch
  2786. null, //corrreplwhat
  2787. null, //corrreplwith
  2788. "\n", //separator
  2789. "http://extabit.com/linkchecker.jsp", //api url
  2790. "url=", //postdata
  2791. /extabit\.com\/(file\/\w+)/, //linkregex
  2792. /extabit\.com\/file\/\w+\/[^<]+<\/a><\/td>\s*<td class="status"><span class="status_green">/g, //liveregex
  2793. /extabit\.com\/file\/\w+\/[^<]+<\/a><\/td>\s*<td class="status"><span class="status_red">/g, //deadregex
  2794. /extabit\.com\/file\/\w+\/[^<]+<\/a><\/td>\s*<td class="status"><span class="status_yellow">/g, //unavaregex
  2795. extabitBulkCheck //function delegate
  2796. )
  2797. }
  2798. if (GM_getValue("Check_junocloud_dot_me_links", false))
  2799. {
  2800. addHost(
  2801. "junocloud", //hostname
  2802. "junocloud\\.me\/\\w+", //linkregex
  2803. "//a[contains(@href,'junocloud.me')]", //xpath
  2804. null, //blocksize
  2805. null, //corrmatch
  2806. null, //corrreplwhat
  2807. null, //corrreplwith
  2808. "\n", //separator
  2809. "http://junocloud.me/checkfiles.html", //api url
  2810. "op=checkfiles&process=Check+URLs&list=", //postdata
  2811. /(junocloud\.me\/\w+)/, //linkregex
  2812. /<a href="http:\/\/junocloud\.me\/\w+[^<]+<\/a>\s*<span style="color: green/g, //liveregex
  2813. /<a href="http:\/\/junocloud\.me\/\w+[^<]+<\/a>\s*<span style="color: red/g, //deadregex
  2814. null, //unavaregex
  2815. null //function delegate
  2816. )
  2817. }
  2818. if (GM_getValue("Check_webshare_dot_cz_links", false))
  2819. {
  2820. addHost(
  2821. "webshare", //hostname
  2822. "webshare\.cz\/(?:(?:#/)?file/\\w+|\\w+-.*)", //linkregex
  2823. "//a[contains(@href,'webshare.cz')]", //xpath
  2824. 100000, //blocksize
  2825. null, //corrmatch
  2826. null, //corrreplwhat
  2827. null, //corrreplwith
  2828. null, //separator
  2829. null, //api url
  2830. null, //postdata
  2831. null, //linkregex
  2832. null, //liveregex
  2833. null, //deadregex
  2834. null, //unavaregex
  2835. webshareBulkCheck //function delegate
  2836. )
  2837. }
  2838. /////////////////////////////
  2839. // Common function delegate to send links to get checked by host linkchecker
  2840. /////////////////////////////
  2841. // If you define a new delegate, you may use following properties
  2842. // this.links [array] array of strings (link blocks). The links in each block separated with host.splitSeparator.
  2843. // this.apiUrl [string] API or web linkchecker URL
  2844. // this.postData [string] POSTDATA for POST request
  2845. // this.resLiveRegex [regex] matches live substrings in the request response
  2846. // this.resDeadRegex [regex] matches dead substrings in the request response
  2847. // this.resUnavaRegex [regex] matches unava substrings in the request response (the regex is often null!)
  2848. //
  2849. // this.resLinkRegex [regex] matches links further passed to DisplayTheCheckedLinks
  2850. //
  2851. // See the code below for standard bulkcheck handling reference.
  2852. //////////////////////////////
  2853. function genBulkCheck()
  2854. {
  2855. var blockIdx = this.links.length;
  2856. while (blockIdx--)
  2857. {
  2858. postRequest(this.apiUrl, this.postData, this.links[blockIdx],
  2859. this.resLinkRegex, this.resLiveRegex, this.resDeadRegex, this.resUnavaRegex);
  2860. }
  2861. function postRequest(api, postData, links, linkRegex, liveRegex, deadRegex, unavaRegex)
  2862. {
  2863. GM_xmlhttpRequest(
  2864. {
  2865. method: 'POST',
  2866. url: api,
  2867. headers: {
  2868. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  2869. 'Content-type': 'application/x-www-form-urlencoded',
  2870. 'Referer': api,
  2871. 'X-Requested-With': 'XMLHttpRequest'
  2872. },
  2873. data: postData + encodeURIComponent(links),
  2874. onload: function (result)
  2875. {
  2876. var res = result.responseText;
  2877. // GM_log(res);
  2878. var i;
  2879.  
  2880. var livelinks = res.match(liveRegex);
  2881. var deadlinks = res.match(deadRegex);
  2882. // GM_log(livelinks);
  2883. // GM_log(deadlinks);
  2884. if (livelinks != null)
  2885. {
  2886. i = livelinks.length - 1;
  2887. do
  2888. {
  2889. livelinks[i] = livelinks[i].match(linkRegex)[1];
  2890. }
  2891. while (i--);
  2892. DisplayTheCheckedLinks(livelinks, 'alive_link');
  2893. }
  2894.  
  2895. if (deadlinks != null)
  2896. {
  2897. i = deadlinks.length - 1;
  2898. do
  2899. {
  2900. deadlinks[i] = deadlinks[i].match(linkRegex)[1];
  2901. }
  2902. while (i--);
  2903. DisplayTheCheckedLinks(deadlinks, 'adead_link');
  2904. }
  2905.  
  2906. if (unavaRegex != null)
  2907. {
  2908. var unavalinks = res.match(unavaRegex);
  2909. if (unavalinks)
  2910. {
  2911. i = unavalinks.length - 1;
  2912. do
  2913. {
  2914. unavalinks[i] = unavalinks[i].match(linkRegex)[1];
  2915. }
  2916. while (i--);
  2917. DisplayTheCheckedLinks(unavalinks, 'unava_link');
  2918. }
  2919. }
  2920. }
  2921. });
  2922. }
  2923. }
  2924. //specialized bulkchecking handlers follow
  2925. function webshareBulkCheck()
  2926. {
  2927. var arr = this.links[0].split("\r\n");
  2928. var i = arr.length;
  2929. while(i--)
  2930. {
  2931. postRequest(arr[i]);
  2932. }
  2933. //function postRequest(api, postData, links, linkRegex, liveRegex, deadRegex, unavaRegex)
  2934. function postRequest(wsLink)
  2935. {
  2936. var id = wsLink.match(/webshare\.cz\/(?:(?:#\/)?file\/)?(\w+)/)[1];
  2937. GM_xmlhttpRequest(
  2938. {
  2939. method: 'POST',
  2940. url: "http://webshare.cz/api/file_info/",
  2941. headers: {
  2942. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  2943. 'Content-type': 'application/x-www-form-urlencoded',
  2944. 'Referer': "",
  2945. },
  2946. data: "wst=&ident=" + id,
  2947. onload: function (result)
  2948. {
  2949. var res = result.responseText;
  2950. if (res.match(/<name>.+?<\/name>/))
  2951. {
  2952. DisplayTheCheckedLinks([id], 'alive_link');
  2953. }
  2954. else
  2955. {
  2956. DisplayTheCheckedLinks([id], 'adead_link');
  2957. }
  2958. }
  2959. });
  2960. }
  2961. }
  2962. //like genBulkCheck, but extabit linkchecker only works when logged in. If not logged in, non-bulk checking has to be used.
  2963. //extabit also doesn't like requests in fast succession, so some delays are added.
  2964. function extabitBulkCheck()
  2965. {
  2966. var timeoutDelay = 0;
  2967. var blockIdx = this.links.length;
  2968. while (blockIdx--)
  2969. {
  2970. postRequest(this.apiUrl, this.postData, this.links[blockIdx],
  2971. this.resLinkRegex, this.resLiveRegex, this.resDeadRegex, this.resUnavaRegex);
  2972. }
  2973. function postRequest(api, postData, links, linkRegex, liveRegex, deadRegex, unavaRegex)
  2974. {
  2975. GM_xmlhttpRequest(
  2976. {
  2977. method: 'POST',
  2978. url: api,
  2979. headers: {
  2980. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  2981. 'Content-type': 'application/x-www-form-urlencoded',
  2982. 'Referer': api,
  2983. 'X-Requested-With': 'XMLHttpRequest'
  2984. },
  2985. data: postData + encodeURIComponent(links),
  2986. onload: function (result)
  2987. {
  2988. var res = result.responseText;
  2989. if (/id="registration_header"/.test(res)) //not logged in, have to use non-bulk
  2990. {
  2991. function geturlfunc(link, tryID) //basically the geturl function with some changes (compacted, displaythecheckedlinkS, multiple tries)
  2992. {
  2993. //GM_log(tryID + ': ' + link);
  2994. GM_xmlhttpRequest(
  2995. {
  2996. method: 'GET',
  2997. url: link,
  2998. 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': ""},
  2999. onload: function(result2)
  3000. {
  3001. var res2 = result2.responseText;
  3002. var res2Status = result.status;
  3003. if (/download-file-btn/.test(res2)) {DisplayTheCheckedLinks([link], 'alive_link'); return;}
  3004. if (/Search mirrors|id="mirrb"/.test(res2) || res2Status==404) {DisplayTheCheckedLinks([link], 'adead_link'); return;}
  3005. if (/currently unavailable|temporarily unavailable|disponible en estos momentos|vorläufig unerreichbar|Файл временно недоступен/.test(res2) || res2Status == 500 || res2Status == 503)
  3006. {
  3007. if (tryID < 7)
  3008. setTimeout(function(){geturlfunc(link,tryID+1)}, tryID * 1000 + (Math.random() * tryID * 2000));
  3009. else
  3010. {DisplayTheCheckedLinks([link], 'unava_link'); return;}
  3011. }
  3012. }
  3013. });
  3014. }
  3015. //split the hrefs and check them one by one
  3016. GM_log('Using slow extabit.com link checking. Log in to extabit to use fast bulk checking.');
  3017. links = links.split('\n');
  3018. var i = links.length;
  3019. while (i--)
  3020. {
  3021. if (links[i])
  3022. {
  3023. (function(i){setTimeout(function(){geturlfunc(links[i],1)}, timeoutDelay);})(i);
  3024. timeoutDelay += 500;
  3025. }
  3026. }
  3027. return;
  3028. }
  3029. var i;
  3030.  
  3031. var livelinks = res.match(liveRegex);
  3032. var deadlinks = res.match(deadRegex);
  3033. if (livelinks != null)
  3034. {
  3035. i = livelinks.length - 1;
  3036. do
  3037. {
  3038. livelinks[i] = livelinks[i].match(linkRegex)[1];
  3039. }
  3040. while (i--);
  3041. DisplayTheCheckedLinks(livelinks, 'alive_link');
  3042. }
  3043.  
  3044. if (deadlinks != null)
  3045. {
  3046. i = deadlinks.length - 1;
  3047. do
  3048. {
  3049. deadlinks[i] = deadlinks[i].match(linkRegex)[1];
  3050. }
  3051. while (i--);
  3052. DisplayTheCheckedLinks(deadlinks, 'adead_link');
  3053. }
  3054.  
  3055. if (unavaRegex != null)
  3056. {
  3057. var unavalinks = res.match(unavaRegex);
  3058. if (unavalinks)
  3059. {
  3060. i = unavalinks.length - 1;
  3061. do
  3062. {
  3063. unavalinks[i] = unavalinks[i].match(linkRegex)[1];
  3064. }
  3065. while (i--);
  3066. DisplayTheCheckedLinks(unavalinks, 'unava_link');
  3067. }
  3068. }
  3069. }
  3070. });
  3071. }
  3072. }
  3073. function netloadBulkCheck()
  3074. {
  3075. var blockIdx = this.links.length;
  3076.  
  3077. while (blockIdx--)
  3078. {
  3079. postRequest(this.apiUrl, this.postData, this.links[blockIdx],
  3080. this.resLinkRegex, this.resLiveRegex, this.resDeadRegex, this.unavaRegex);
  3081. }
  3082. function postRequest(api, postData, links, linkRegex, liveRegex, deadRegex, unavaRegex)
  3083. {
  3084. GM_xmlhttpRequest(
  3085. {
  3086. method: 'POST',
  3087. url: api,
  3088. headers: {
  3089. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  3090. 'Content-type': 'application/x-www-form-urlencoded',
  3091. 'Referer': ""
  3092. },
  3093. data: postData + encodeURIComponent(links),
  3094. onload: function (result)
  3095. {
  3096. var res = result.responseText;
  3097. var i;
  3098.  
  3099. var livelinks = res.match(liveRegex);
  3100. var deadlinks = res.match(deadRegex);
  3101. if (livelinks != null)
  3102. {
  3103. i = livelinks.length - 1;
  3104. do
  3105. {
  3106. recheckLink(livelinks[i].match(linkRegex)[1]);
  3107. }
  3108. while(i--);
  3109. }
  3110.  
  3111. if (deadlinks != null)
  3112. {
  3113. i = deadlinks.length - 1;
  3114. do
  3115. {
  3116. deadlinks[i] = deadlinks[i].match(linkRegex)[1];
  3117. }
  3118. while (i--);
  3119. DisplayTheCheckedLinks(deadlinks, 'adead_link');
  3120. }
  3121. }
  3122. });
  3123. }
  3124. function recheckLink(link)
  3125. {
  3126. var link = link;
  3127. GM_xmlhttpRequest(
  3128. {
  3129. method: 'GET',
  3130. url: 'http://netload.in/datei' + link + '.htm',
  3131. headers: {
  3132. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3133. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  3134. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  3135. 'Referer': ""
  3136. },
  3137. onload: function (result)
  3138. {
  3139. var res = result.responseText;
  3140.  
  3141. if (res.match(/dl_first_file_download">|download_limit\.gif/))
  3142. {
  3143. DisplayTheCheckedLinks([link], 'alive_link');
  3144. return;
  3145. }
  3146.  
  3147. if (res.match(/achtung\.jpg"/))
  3148. {
  3149. DisplayTheCheckedLinks([link], 'adead_link');
  3150. }
  3151. },
  3152. onerror: function ()
  3153. {
  3154. displayTheCheckedLink(link, 'unava_link');
  3155. }
  3156. });
  3157. }
  3158. }
  3159.  
  3160. function megaBulkCheck()
  3161. {
  3162. var arr = this.links[0].split("\r\n");
  3163. var i = arr.length;
  3164. var seqno = Math.floor(Math.random()*1000000000);
  3165. while(i--)
  3166. {
  3167. postRequest(arr[i]);
  3168. }
  3169. function postRequest(megaLink)
  3170. {
  3171. var id = megaLink.match(/mega\.co\.nz\/#!(\w+)(?:!\w+)?/)[1];
  3172. GM_xmlhttpRequest(
  3173. {
  3174. method: "POST",
  3175. url: 'https://g.api.mega.co.nz/cs?id=' + seqno++,
  3176. data: '[{"a":"g","p":"' + id + '","ssl": "1"}]',
  3177. headers: {
  3178. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3179. 'Content-Type': 'application/xml',
  3180. 'Referer': "https://mega.co.nz/"
  3181. },
  3182. onload: function (result)
  3183. {
  3184. var res = $.parseJSON(result.responseText.match(/\[(.+?)\]/)[1]);
  3185. if ((typeof res == "number" && (res == -9 || res == -16 || res == -6)) || res.d)
  3186. {
  3187.  
  3188. DisplayTheCheckedLinks([id], 'adead_link');
  3189. }
  3190. if (res.at)
  3191. {
  3192. DisplayTheCheckedLinks([id], 'alive_link');
  3193. }
  3194. if (res.e == "ETEMPUNAVAIL")
  3195. {
  3196. DisplayTheCheckedLinks([id], 'unava_link');
  3197. }
  3198. }
  3199. });
  3200. }
  3201.  
  3202. }
  3203. function meganzBulkCheck()
  3204. {
  3205. var arr = this.links[0].split("\r\n");
  3206. var i = arr.length;
  3207. var seqno = Math.floor(Math.random()*1000000000);
  3208. while(i--)
  3209. {
  3210. postRequest(arr[i]);
  3211. }
  3212. function postRequest(meganzLink)
  3213. {
  3214. var id = meganzLink.match(/mega\.nz\/#!(\w+)(?:!\w+)?/)[1];
  3215. GM_xmlhttpRequest(
  3216. {
  3217. method: "POST",
  3218. url: 'https://g.api.mega.nz/cs?id=' + seqno++,
  3219. data: '[{"a":"g","p":"' + id + '","ssl": "1"}]',
  3220. headers: {
  3221. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3222. 'Content-Type': 'application/xml',
  3223. 'Referer': "https://mega.nz/"
  3224. },
  3225. onload: function (result)
  3226. {
  3227. var res = $.parseJSON(result.responseText.match(/\[(.+?)\]/)[1]);
  3228. if ((typeof res == "number" && (res == -9 || res == -16 || res == -6)) || res.d)
  3229. {
  3230.  
  3231. DisplayTheCheckedLinks([id], 'adead_link');
  3232. }
  3233. if (res.at)
  3234. {
  3235. DisplayTheCheckedLinks([id], 'alive_link');
  3236. }
  3237. if (res.e == "ETEMPUNAVAIL")
  3238. {
  3239. DisplayTheCheckedLinks([id], 'unava_link');
  3240. }
  3241. }
  3242. });
  3243. }
  3244.  
  3245. }
  3246. function oboomBulk() {
  3247. var a = [], b = [], c = [];
  3248. var array = this.links;
  3249.  
  3250. GM_xmlhttpRequest({
  3251. method: 'GET',
  3252. url: 'https://www.oboom.com/1/guestsession',
  3253. headers: {
  3254. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  3255. 'Content-type': 'application/x-www-form-urlencoded',
  3256. 'Referer': 'https://www.oboom.com',
  3257. 'X-Requested-With': 'XMLHttpRequest'
  3258. },
  3259. onload: function(result) {
  3260. var blockIdx = array.length;
  3261. var token = JSON.parse(result.responseText)[1];
  3262. while (blockIdx--) {
  3263. startCheck(array[blockIdx].split('\r\n'), token);
  3264. }
  3265. }
  3266. });
  3267.  
  3268. function startCheck(links, token) {
  3269. GM_xmlhttpRequest({
  3270. method: 'POST',
  3271. url: "https://api.oboom.com/1/info",
  3272. headers: {
  3273. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  3274. 'Content-type': 'application/x-www-form-urlencoded',
  3275. 'Referer': 'https://www.oboom.com/',
  3276. 'X-Requested-With': 'XMLHttpRequest'
  3277. },
  3278. data: "token=" + token + "&items=" + links.join(","),
  3279. onload: function(result) {
  3280. var res = JSON.parse(result.responseText)[1];
  3281. var i = res.length, s;
  3282.  
  3283. while (i--) {
  3284. s = res[i].state;
  3285. if (s == 'online') a.push(res[i].id);
  3286. else if (s == 'blocked' || s == 'abused' || s == 'lost' || s == 'not_found' || s == 'not_available'|| s == 'download_error' || s == 'offline' ) b.push(res[i].id);
  3287. else c.push(res[i].id);
  3288. }
  3289.  
  3290. if (a.length > 0) DisplayTheCheckedLinks(a, 'alive_link');
  3291. if (b.length > 0) DisplayTheCheckedLinks(b, 'adead_link');
  3292. if (c.length > 0) DisplayTheCheckedLinks(c, 'unava_link');
  3293. }
  3294. });
  3295. }
  3296. }
  3297. function linksaveBulkCheck()
  3298. {
  3299. var arr = this.links[0].split("\r\n");
  3300. var i = arr.length;
  3301. while(i--)
  3302. {
  3303. postRequest(arr[i]);
  3304. }
  3305. function postRequest(lsLink)
  3306. {
  3307. GM_xmlhttpRequest(
  3308. {
  3309. method: "GET",
  3310. url: lsLink + '-t.jpg',
  3311. headers: {
  3312. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3313. 'Accept': 'text/xml',
  3314. 'Referer': ""
  3315. },
  3316. onload: function (result)
  3317. {
  3318. var imgLen = result.responseHeaders.match(/Content-Length: (\d+)/)[1];
  3319. if (imgLen == 965) //online
  3320. {
  3321. DisplayTheCheckedLinks([lsLink], 'alive_link');
  3322. }
  3323.  
  3324. if (imgLen == 972) //offline
  3325. {
  3326. DisplayTheCheckedLinks([lsLink], 'adead_link');
  3327. }
  3328. if (imgLen == 978) //unava
  3329. {
  3330. DisplayTheCheckedLinks([lsLink], 'unava_link');
  3331. }
  3332. }
  3333. });
  3334. }
  3335.  
  3336. }
  3337. function linkcryptBulkCheck()
  3338. {
  3339. var arr = this.links[0].split("\r\n");
  3340. var i = arr.length;
  3341. while(i--)
  3342. {
  3343. postRequest(arr[i]);
  3344. }
  3345. function postRequest(lcLink)
  3346. {
  3347. GM_xmlhttpRequest(
  3348. {
  3349. method: "GET",
  3350. url: 'http://linkcrypt.ws/api.html?api=status_V1&folderKey=' + lcLink.match(/dir\/(\w+)/)[1],
  3351. headers: {
  3352. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3353. 'Accept': 'text/xml',
  3354. 'Referer': ""
  3355. },
  3356. onload: function (result)
  3357. {
  3358. var res = result.responseText;
  3359. if (res.match(/<errorCode>1101|folderStatus>[23]/)) //Offline status
  3360. {
  3361. DisplayTheCheckedLinks([lcLink], 'adead_link');
  3362. return;
  3363. }
  3364. if (res.match(/folderStatus>1/)) //Online status
  3365. {
  3366. DisplayTheCheckedLinks([lcLink], 'alive_link');
  3367. }
  3368. else
  3369. {
  3370. DisplayTheCheckedLinks([lcLink], 'unava_link');
  3371. }
  3372. }
  3373. });
  3374. }
  3375. }
  3376.  
  3377. function megashareBulkCheck()
  3378. {
  3379. var arr = this.links[0].split("\r\n");
  3380. var i = arr.length;
  3381. while(i--)
  3382. {
  3383. postRequest(arr[i]);
  3384. }
  3385. function postRequest(msLink)
  3386. {
  3387. GM_xmlhttpRequest(
  3388. {
  3389. method: "GET",
  3390. url: msLink,
  3391. headers: {
  3392. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3393. 'Content-Type': 'application/x-www-form-urlencoded',
  3394. 'Referer': ""
  3395. },
  3396. onload: function (result)
  3397. {
  3398. var prZVal = result.responseText.match(/name="(\d+prZVal)" value="(\d+)">/);
  3399. var btn3Name = result.responseText.match(/src="images\/dwn-btn3\.gif" name="(.+?)"/);
  3400. if ((prZVal == null) || (btn3Name == null))
  3401. {
  3402. return;
  3403. }
  3404. GM_xmlhttpRequest(
  3405. {
  3406. method: "POST",
  3407. url: msLink,
  3408. headers: {
  3409. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3410. 'Content-Type': 'application/x-www-form-urlencoded',
  3411. 'Referer': ""
  3412. },
  3413. data: prZVal[1] + "=" + prZVal[2] + '&' + btn3Name[1] + '.x=1&' + btn3Name[1] + '.y=1',
  3414. onload: function (result)
  3415. {
  3416. var res = result.responseText;
  3417. if (res.match(/<div id="err">/))
  3418. {
  3419. DisplayTheCheckedLinks([msLink.match(/\.com(\/\d+)/)[1]], 'adead_link');
  3420. }
  3421. else
  3422. {
  3423. DisplayTheCheckedLinks([msLink.match(/\.com(\/\d+)/)[1]], 'alive_link');
  3424. }
  3425. }
  3426. });
  3427. }
  3428. });
  3429. }
  3430. }
  3431. function ncryptBulkCheck()
  3432. {
  3433. var arr = this.links[0].split("\r\n");
  3434. var i = arr.length;
  3435. while(i--)
  3436. {
  3437. postRequest(arr[i]);
  3438. }
  3439. function postRequest(ncryptLink)
  3440. {
  3441. GM_xmlhttpRequest(
  3442. {
  3443. method: "POST",
  3444. url: 'http://ncrypt.in/api_status.php',
  3445. headers: {
  3446. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3447. 'Content-Type': 'application/x-www-form-urlencoded',
  3448. 'Referer': ""
  3449. },
  3450. data: 'link=' + encodeURI(ncryptLink),
  3451. onload: function (result)
  3452. {
  3453. var foldStatus = result.responseText.match(/(?:offline|online);/);
  3454. switch(foldStatus + ""){
  3455. case "offline;": DisplayTheCheckedLinks([ncryptLink], 'adead_link'); break;
  3456. case "online;": DisplayTheCheckedLinks([ncryptLink], 'alive_link'); break;
  3457. default: DisplayTheCheckedLinks([ncryptLink], 'unava_link');
  3458. }
  3459. }
  3460. });
  3461. }
  3462. }
  3463. function hellshareBulkCheck()
  3464. {
  3465. var links = this.links;
  3466. GM_xmlhttpRequest(
  3467. {
  3468. method: "GET",
  3469. url: 'http://www.hellshare.com',
  3470. headers: {
  3471. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3472. 'Accept': 'text/xml',
  3473. 'Referer': ""
  3474. },
  3475. onload: function (result)
  3476. {
  3477. var domain = result.responseText.match(/param_rau = "www\.hellshare\.(\w+)"/)[1];
  3478.  
  3479. var loc = 'check=Zkontrolovat+dostupnost+soubor%C5%AF&links=';
  3480. if (domain == 'sk')
  3481. loc = 'check=Skontrolova%C5%A5&links=';
  3482. if (domain == 'com')
  3483. loc = 'check=Check+availability&links=';
  3484. if (domain == 'hu')
  3485. loc = 'check=Kontrol%C3%A1lj&links=';
  3486. if (domain == 'pl')
  3487. loc = 'check=Sprawd%C5%BC+dost%C4%99pno%C5%9B%C4%87+plik%C3%B3w&links=';
  3488.  
  3489. genBulkCheck.call({ links: links,
  3490. apiUrl: 'http://www.hellshare.' + domain + '/linkchecker?do=linkChecker-linkcheckerform-submit',
  3491. postData: loc,
  3492. resLinkRegex: /hellshare\.(?:cz|com|sk|hu|pl)\/(?:[\w-\.]+\/|)([\w-\.]+\/\d{5,})/,
  3493. 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,
  3494. resDeadRegex: /<span style="color:gray">.*?<\/span> - <strong>/g,
  3495. resUnavaRegex: null
  3496. });
  3497. }
  3498. });
  3499. }
  3500. /**
  3501. * Displays check result
  3502. * @param {Array} Array of links or link fragments.
  3503. * @param {String} Check result status -> ['alive_link'|'adead_link'|'unava_link']
  3504. */
  3505. function DisplayTheCheckedLinks(links, resultStatus)
  3506. {
  3507. //(a[href*=link_1], a[href*=link_2], ..., a[href*=link_n])
  3508. var $links = $('a[href*="' + links.join('"], a[href*="') + '"]');
  3509. if (Do_not_linkify_DL_links)
  3510. { //TODO into separate jQuery function
  3511. $links.replaceWith(function(){
  3512. return '<span href="' + this.href + '">' + $(this).text() + '</span>';
  3513. });
  3514. $links = $('span[href*="' + links.join('"], span[href*="') + '"]');
  3515. }
  3516. $links.removeClass().addClass(resultStatus);
  3517. $links.each(function() {
  3518. this.href = Ref_anonymize_service + $(this).attr("href");
  3519. });
  3520. switch(resultStatus)
  3521. {
  3522. case "alive_link": cLinksAlive += $links.length;
  3523. if (Display_tooltip_info) $links.mouseover(displayTooltipInfo);
  3524. break;
  3525. case "adead_link": cLinksDead += $links.length;
  3526. if (Display_tooltip_info) $links.mouseover(displayTooltipError);
  3527. break;
  3528. case "unava_link": cLinksUnava += $links.length; break;
  3529. default:
  3530. }
  3531. cLinksProcessed += $links.length;
  3532. }
  3533. }
  3534. // starts bulkchecking
  3535. //
  3536. // params
  3537. // filterId [string] restricts link detection with passed id attribute
  3538. function startBulkCheck(filterId)
  3539. {
  3540. var cHosts = bulkHosts.length;
  3541. if (cHosts == 0) //no filehostings selected
  3542. return;
  3543. // STEP 1 linkify the links
  3544. var linkifyRegex = '';
  3545. var hostIdx = cHosts;
  3546. while(hostIdx--)
  3547. {
  3548. linkifyRegex += bulkHosts[hostIdx].linkRegex + "|";
  3549. }
  3550. linkifyRegex = linkifyRegex.replace(/\|$/, '');
  3551. linkify(linkifyRegex);
  3552. //
  3553. //STEP 2 detect link objects
  3554. var xpathAll = '';
  3555. var hostIdx = cHosts;
  3556. while(hostIdx--)
  3557. {
  3558. xpathAll += bulkHosts[hostIdx].xpath + "|";
  3559. }
  3560. xpathAll = xpathAll.replace(/\]\|\/\/a\[/g, " or ");
  3561. xpathAll = xpathAll.replace(/\]\|/, ')]');
  3562. if (filterId != null) //insert id restriction in the xpath
  3563. {
  3564. xpathAll = xpathAll.replace(/\[/, "[@class='" + filterId + "' and (");
  3565. }
  3566. else
  3567. {
  3568. xpathAll = xpathAll.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  3569. }
  3570. var links = document.evaluate(xpathAll, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  3571. if (filterId == null)
  3572. {
  3573. cLinksTotal += links.snapshotLength;
  3574. }
  3575. //
  3576. //STEP 3 bind links with hostings
  3577. var linkIdx = links.snapshotLength;
  3578. var href = null;
  3579. if (linkIdx == 0) // no links found
  3580. return;
  3581. var name;
  3582. while (linkIdx--)
  3583. {
  3584. href = links.snapshotItem(linkIdx).href;
  3585. try // DO NOT REMOVE, filters crap that went through xpath detection
  3586. {
  3587. name = gimmeHostName(href);
  3588. if (href.match(bulkHostNames[name].linkRegexObject) != null)
  3589. bulkHostNames[name].links.push(href);
  3590. }
  3591. catch(e)
  3592. {
  3593.  
  3594. }
  3595. }
  3596. //
  3597. //STEP 4 process the links for each filehosting
  3598. var hostIdx = cHosts;
  3599. var host;
  3600. var m,n;
  3601. var arr;
  3602. while (hostIdx--)
  3603. {
  3604. host = bulkHosts[hostIdx];
  3605. arr = host.links;
  3606. if (arr.length == 0) //no links for this hosting, skip
  3607. {
  3608. continue;
  3609. }
  3610. //links match corrections
  3611. if (host.corrMatch != null)
  3612. {
  3613. var idx = arr.length;
  3614. while (idx--)
  3615. {
  3616. arr[idx] = arr[idx].match(host.corrMatch)[1];
  3617. }
  3618. }
  3619. //links replace corrections
  3620. if ((host.corrReplWhat != null) && (host.corrReplWith != null))
  3621. {
  3622. var idx = arr.length;
  3623. while (idx--)
  3624. {
  3625. arr[idx] = arr[idx].replace(host.corrReplWhat, host.corrReplWith);
  3626. }
  3627. }
  3628. m = arr.length;
  3629. n = host.blockSize;
  3630. if (m > n)
  3631. {
  3632. //insert block separators (RAND_STRING) into the array
  3633. for(var i = n; i < m; i += n + 1)
  3634. {
  3635. arr.splice(i, 0, RAND_STRING);
  3636. }
  3637. }
  3638.  
  3639. host.func.call({ links: arr.join(host.splitSeparator).split(RAND_STRING),
  3640. apiUrl: host.apiUrl,
  3641. postData: host.postData,
  3642. resLinkRegex: host.resLinkRegex,
  3643. resLiveRegex: host.resLiveRegex,
  3644. resDeadRegex: host.resDeadRegex,
  3645. resUnavaRegex: host.resUnavaRegex
  3646. });
  3647. //clean up
  3648. arr.length = 0;
  3649. }
  3650. //
  3651.  
  3652. function gimmeHostName(link)
  3653. {
  3654. return link.replace(/https?:\/\/.*?http(s)?:\/\//, "http$1://").match(/https?:\/\/(?:www\.|[\w\.])*?([\w-]+)\.(?:co\.uk|co\.nz|\w+)\//)[1];
  3655. }
  3656. }
  3657. function checkLinks(filterId)
  3658. {
  3659. startBulkCheck(filterId);
  3660. start(filterId);
  3661. }
  3662.  
  3663. /**
  3664. * Initialises progress box including event binding and CSS
  3665. */
  3666. function initProgressBox()
  3667. {
  3668. if ($("#warlc-progressbox").length > 0)
  3669. return;
  3670. //progressbox css change size and color of progress box
  3671. GM_addStyle("#warlc-progressbox {position:fixed; background:DimGray;" + Progress_box_background_color +
  3672. "; opacity:" + (Progress_box_opacity / 100) +
  3673. "; bottom:" + Progress_box_pos_bottom +
  3674. "px; right:" + Progress_box_pos_right +
  3675. "px; padding:5px; font-size:20px; font-weight:bold; cursor:default;}\
  3676. \
  3677. .warlc-progressbar {text-align:center; color: DimGray; height:2px; margin-bottom:2px;}\
  3678. \
  3679. .warlc-progressitem {}\
  3680. \
  3681. .alive {color:#00FF7F; " + Live_links_color +
  3682. "; background:transparent url(" + alive_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;} .dead {color:" + Dead_links_color +
  3683. "; background:transparent url(" + adead_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;} .unava {color: " + Temp_unavailable_links_color +
  3684. "; background:transparent url(" + unava_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;} .processing {color:Black; " + Container_links_color +
  3685. "; background:transparent url(" + processing_link_gif + ") no-repeat scroll 100% 50%;padding-right:15px;} .prem {color:" + Premium_links_color +
  3686. "; background:transparent url(" + prem_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;}"
  3687. );
  3688. //
  3689. $('body').append(' <div id="warlc-progressbox">\
  3690. <div class="warlc-progressbar"></div>\
  3691. <span class="warlc-progressitem alive"></span> - \
  3692. <span class="warlc-progressitem dead"></span> - \
  3693. <span class="warlc-progressitem unava"></span> - \
  3694. <span class="warlc-progressitem prem"></span> - \
  3695. <span class="warlc-progressitem processing"></span>\
  3696. </div>');
  3697. $('#warlc-progressbox').hide().click(function(){
  3698. clearInterval(intervalId);
  3699. $(this).hide();
  3700. return false;
  3701. });
  3702. $(".warlc-progressbar").progressbar({complete: function(){
  3703. $(this).fadeOut();
  3704. clearInterval(intervalId); //stop refreshing the stats
  3705. }
  3706. })
  3707. .one('progressbarchange', function(){$('#warlc-progressbox').show();});
  3708. }
  3709. /**
  3710. * Updates progress data in progress box
  3711. */
  3712. function updateProgress()
  3713. {
  3714. if (cLinksTotal) // some links were detected on page
  3715. {
  3716. var percProgress = Math.round(((100 / cLinksTotal) * cLinksProcessed));
  3717. var $progressItems = $('#warlc-progressbox > .warlc-progressitem');
  3718. $(".warlc-progressbar").progressbar('option', 'value', percProgress);
  3719. if ((cLinksTotal - cLinksProcessed) == 0)
  3720. {
  3721. $progressItems.first().text(cLinksAlive)
  3722. .next().text(cLinksDead)
  3723. .next().text(cLinksUnava)
  3724. .next().text(cLinksprem)
  3725. .next().remove();
  3726. $('#warlc-progressbox').html($('#warlc-progressbox').html().substr(0,$('#warlc-progressbox').html().lastIndexOf(">")+1));
  3727. $('#warlc-progressbox div:first-child').remove();
  3728. }
  3729. else
  3730. {
  3731. $progressItems.first().text(cLinksAlive)
  3732. .next().text(cLinksDead)
  3733. .next().text(cLinksUnava)
  3734. .next().text(cLinksprem)
  3735. .next().text(cLinksTotal - cLinksProcessed);
  3736. }
  3737. }
  3738. }
  3739.  
  3740. function check_all_links()
  3741. {
  3742. add_WARLC_style();
  3743.  
  3744. if (Show_progress_stats)
  3745. {
  3746. initProgressBox();
  3747. intervalId = setInterval(function(){updateProgress();}, Progress_box_refresh_rate);
  3748. }
  3749.  
  3750. startBulkCheck(null);
  3751. start(null);
  3752.  
  3753. if (!containers_processed)
  3754. {
  3755. processContainers();
  3756. }
  3757. }
  3758.  
  3759. //Copies all found dead links to clipboard - right now for Scriptish only
  3760. function copy_dead_to_clipboard()
  3761. {
  3762. initClipBoardTools();
  3763.  
  3764. var deadlinksxpath = "//.[@class='adead_link']";
  3765.  
  3766. var foundlinks = document.evaluate(deadlinksxpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  3767. var foundlinkstext = '';
  3768.  
  3769. var foundlinkIdx = foundlinks.snapshotLength;
  3770.  
  3771. while(foundlinkIdx--)
  3772. {
  3773. if (foundlinks.snapshotItem(foundlinkIdx).innerHTML != ' x')
  3774. foundlinkstext += foundlinks.snapshotItem(foundlinkIdx).innerHTML.replace(/\[\/hide:\w+\]/,"") + '\n';
  3775. }
  3776.  
  3777. unsafeWindow.copyToClipboard(foundlinkstext);
  3778. }
  3779.  
  3780. function toggle_autocheck()
  3781. {
  3782. var currentState = GM_getValue("Autocheck", false);
  3783. GM_setValue("Autocheck", !currentState);
  3784.  
  3785. if (currentState == true)
  3786. {
  3787. sendMessage('Autocheck disabled', 'red');
  3788. }
  3789. else
  3790. {
  3791. sendMessage('Autocheck enabled', 'SpringGreen');
  3792. }
  3793. }
  3794. function toggle_Enable_Anonymizer()
  3795. {
  3796. var currentState = GM_getValue("Enable_Anonymizer", false);
  3797. GM_setValue("Enable_Anonymizer", !currentState);
  3798.  
  3799. if (currentState == true)
  3800. {
  3801. GM_setValue("Ref_anonymize_service", "");
  3802. sendMessage('Anonymizer Disabled', 'red');
  3803. }
  3804. else
  3805. {
  3806. GM_setValue("Ref_anonymize_service", "http://hiderefer.com/?");
  3807. sendMessage('Anonymizer Enabled', 'SpringGreen');
  3808. }
  3809. }
  3810.  
  3811. function KeyDownHandler(event)
  3812. {
  3813. var kcode = (event.keyCode) ? event.keyCode : event.which;
  3814. if (event.ctrlKey && event.altKey)
  3815. {
  3816. switch(kcode)
  3817. {
  3818. case 65 : check_all_links(); break;
  3819. case 67 : configuration(); break;
  3820. case 68 : copy_dead_to_clipboard(); break;
  3821. case 87 : toggle_autocheck(); break;
  3822. case 90 : toggle_Enable_Anonymizer(); break;
  3823. }
  3824. }
  3825. }
  3826.  
  3827. //
  3828. //
  3829. // SCRIPT EXECUTION START POINT
  3830. //
  3831. //
  3832. // Safari specific GM_getResourceText override
  3833. if (navigator.userAgent.indexOf('Safari') != -1 && navigator.userAgent.indexOf('Chrome') == -1)
  3834. {
  3835. GM_getResourceText = function(res) {
  3836. var $cssText = GM_getValue("jquery_css", "");
  3837. if ($cssText == "")
  3838. {
  3839. GM_xmlhttpRequest(
  3840. {
  3841. method: 'GET',
  3842. url: 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css',
  3843. onload: function (result)
  3844. {
  3845. GM_setValue("jquery_css", result.responseText);
  3846. window.location.reload();
  3847. }
  3848. });
  3849. }
  3850. else
  3851. {
  3852. return $cssText;
  3853. }
  3854. }
  3855. }
  3856. var jQueryUICSS = GM_getResourceText("jQueryUICSS");
  3857. GM_addStyle(jQueryUICSS);
  3858. //init the stuff
  3859. setVariables();
  3860. initBulkCheck();
  3861. //init info boxes
  3862. messageBox.style.position = 'fixed';
  3863. messageBox.style.top = '20px';
  3864. messageBox.style.left = '10px';
  3865. messageBox.style.opacity = '0.85';
  3866. messageBox.style.background = 'DimGray';
  3867. messageBox.style.fontSize = '36px';
  3868. document.body.appendChild(messageBox);
  3869.  
  3870. //register GM menu commands & keyboard shortcut event handler
  3871. if (Keyboard_functions)
  3872. {
  3873. $(document).keydown(KeyDownHandler);
  3874. GM_registerMenuCommand("[W.A.R. Links Checker] Configuration (" + first_key_keycodename + "+" + second_key_keycodename + "+" + String.fromCharCode(CONFIGURATION_KEYCODE) + ")", configuration);
  3875. 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);
  3876. }
  3877. else
  3878. {
  3879. GM_registerMenuCommand("[W.A.R. Links Checker] Configuration", configuration);
  3880. GM_registerMenuCommand("[W.A.R. Links Checker] Check The Links In This Page", check_all_links);
  3881. }
  3882.  
  3883. //start linkchecking
  3884. if (Autocheck)
  3885. {
  3886. $(document).ready(check_all_links);
  3887. }
  3888.  
  3889. //
  3890. //
  3891. // SCRIPT EXECUTION END POINT
  3892. //
  3893. //
  3894.  
  3895. //shows configuration box
  3896. function configuration()
  3897. {
  3898.  
  3899. //prevent multiple creating of config window
  3900. if ($("#hideshow").length)
  3901. {
  3902. $("#hideshow").show();
  3903. return;
  3904. }
  3905.  
  3906. var configcss = '\
  3907. .popup_block .popup fieldset{\
  3908. padding: 1%;\
  3909. border-style: solid;\
  3910. border-width: 1px;\
  3911. border-color: gray;\
  3912. margin-bottom: 1px;\
  3913. }\
  3914. #h3hideshowtitle{\
  3915. font-size: 2em;\
  3916. }\
  3917. #h3hideshow{\
  3918. font-size: 1.5em;\
  3919. }\
  3920. #imghideshow {\
  3921. border: none;\
  3922. }\
  3923. #plusimage{\
  3924. display:inline;\
  3925. }\
  3926. #hideshow {\
  3927. position: fixed;\
  3928. width: 100%;\
  3929. height: 100%;\
  3930. top: 0;\
  3931. left: 0;\
  3932. font-size:12px;\
  3933. z-index:2147483645;\
  3934. text-align:left;\
  3935. }\
  3936. #fade {\
  3937. background: #000;\
  3938. position: fixed;\
  3939. width: 100%;\
  3940. height: 100%;\
  3941. opacity: .80;\
  3942. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";\
  3943. left: 0;\
  3944. z-index: 10;\
  3945. }\
  3946. .popup_block {\
  3947. font-family:verdana;\
  3948. color:black;\
  3949. background: #ddd;\
  3950. padding: 10px 20px;\
  3951. border: 2px solid DarkOrange;\
  3952. float: left;\
  3953. width: 700px;\
  3954. position: absolute;\
  3955. top: 7%;\
  3956. left: 50%;\
  3957. bottom: 7%;\
  3958. margin: 0 0 0 -350px;\
  3959. -moz-border-radius:10px;\
  3960. z-index: 100;\
  3961. \
  3962. }\
  3963. .popup_block .popup {\
  3964. float: left;\
  3965. width: 100%;\
  3966. background: #fff;\
  3967. margin: 10px 0;\
  3968. padding: 0px 0 0px;\
  3969. border-left: 1px solid #bbb;\
  3970. border-top: 1px solid #bbb;\
  3971. border-right: 1px solid #bbb;\
  3972. }\
  3973. #h3hideshow{\
  3974. margin: 1px 0 0px;\
  3975. padding: 1px 10px;\
  3976. border-bottom: 1px solid #bbb;\
  3977. font-size: 1.5em;\
  3978. font-weight: normal;\
  3979. cursor:pointer;\
  3980. background:#DDDDDD none repeat scroll 0 0;\
  3981. }\
  3982. #h3hideshow:hover{\
  3983. background:#C0BEBE none repeat scroll 0 0;\
  3984. }\
  3985. #h3hideshowtitle{\
  3986. margin: 2px 0 0px;\
  3987. padding: 7px 10px;\
  3988. border-bottom: 1px solid #bbb;\
  3989. font-size: 1.5em;\
  3990. font-weight: normal;\
  3991. }\
  3992. .popup_block .popup a {\
  3993. color:DarkSkyBlue;\
  3994. text-decoration:none;\
  3995. }\
  3996. .popup p {\
  3997. padding: 1px 10px;\
  3998. margin: 0px 0;\
  3999. -x-system-font:none;\
  4000. font-family:verdana,geneva,lucida,"lucida grande",arial,helvetica,sans-serif;\
  4001. font-size:10pt;\
  4002. font-size-adjust:none;\
  4003. font-stretch:normal;\
  4004. font-style:normal;\
  4005. font-variant:normal;\
  4006. font-weight:normal;\
  4007. line-height:normal;\
  4008. }\
  4009. #sites {\
  4010. padding: 1px 10px;\
  4011. margin: 0px 0;display:inline-block;width:16em;\
  4012. }\
  4013. #dev_ver {\
  4014. color: #00FF00;\
  4015. background: Black;\
  4016. text-align: right;\
  4017. }\
  4018. #sites_suspended {\
  4019. padding: 1px 10px;\
  4020. margin: 0px 0;display:inline-block;width:16em;\
  4021. text-decoration: line-through;\
  4022. }\
  4023. .popup img.cntrl {\
  4024. position: absolute;\
  4025. right: -15px;\
  4026. top: -15px;\
  4027. }\
  4028. #bulk {\
  4029. font-size:8pt;\
  4030. color:orange;\
  4031. padding: 1px 10px;\
  4032. margin: 0px 0;\
  4033. display:inline-block;\
  4034. width:100px;\
  4035. }\
  4036. #note {\
  4037. font-size:7pt;\
  4038. color:gray;\
  4039. padding: 1px 10px;\
  4040. margin: 0px 0;display:inline-block;\
  4041. min-width:100px;\
  4042. }\
  4043. #rednote {\
  4044. font-size:7pt;\
  4045. color:red;\
  4046. padding: 1px 10px;\
  4047. margin: 0px 0;display:inline-block;\
  4048. }\
  4049. #configinfo {\
  4050. font-size:8pt;\
  4051. color:gray;\
  4052. padding: 1px 10px;\
  4053. margin: 0px 0;display:inline-block;width:60em;\
  4054. }\
  4055. #refAnonymizer, #inputColorLive, #inputColorprem, #hostSearchBox2, #hostSearchBox, #inputColorDead, #inputColorTemp, #inputColorCont, #selectAllButton, #selectNoneButton, #invertButton, #selectAllButton2, #selectNoneButton2, #invertButton2 {\
  4056. color:black;\
  4057. border-style: solid;\
  4058. border-width: 1px;\
  4059. border-color: gray;\
  4060. }\
  4061. #h3hideshowcontent {\
  4062. min-height:220px;\
  4063. max-height:220px;\
  4064. overflow:auto;\
  4065. display: none;\
  4066. padding: 10px 10px;\
  4067. }\
  4068. #specinfo{\
  4069. font-size:14px;\
  4070. }\
  4071. .warlc-ui-tab {\
  4072. height:300px;\
  4073. overflow:auto;\
  4074. }\
  4075. #warlcsitelist2, #warlcsitelist1 {\
  4076. height:220px;\
  4077. border-top: 1px solid #ddd;\
  4078. padding-top: 5px;\
  4079. overflow:auto;\
  4080. }\
  4081. input:hover+label {\
  4082. background:#F1F77C;\
  4083. font-size:110%;\
  4084. }\
  4085. ';
  4086.  
  4087. GM_addStyle(configcss);
  4088.  
  4089. var customRulesRefHTML =
  4090. '\
  4091. <br>\
  4092. A custom rule consists of <b>commands</b>. A command must be on its own line and in this form:<br>\
  4093. <b>@keyword</b> <i>parameter</i>\
  4094. <br><br>\
  4095. 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. \
  4096. <br><br>\
  4097. 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.\
  4098. 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.\
  4099. 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.\
  4100. 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,\
  4101. but all commands until the next valid @customrule are ignored.<br><br>\
  4102. Available forms and types:\
  4103. <ul>\
  4104. <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.\
  4105. <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.\
  4106. <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.\
  4107. <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.\
  4108. </ul>\
  4109. Other available commands:<br>\
  4110. (Note: There can be more than 1 (up to 10) of these commands per rule. In that case, any of them will work.)\
  4111. <ul>\
  4112. <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.\
  4113. It can also specify multiple (up to 10) Top Level Domains (.com, .net etc.)<br>\
  4114. <ul>examples:<br>\
  4115. <li>good: <i>filehost.com/download/</i><br>\
  4116. <li>good: <i>download.filehost.net/?d=</i><br>\
  4117. <li>good: <i>filehost. com net co.uk /</i> - multiple TLDs (note the spaces before, between and after TLDs)<br>\
  4118. <li>ok: <i>filehost.com/</i> - works, but will also find links like filehost.com/login etc. Sometimes it\'s unavoidable though.<br>\
  4119. <li>bad: <i>d8523.filehost.com/</i> - d8523 probably is not constant<br>\
  4120. <li>bad: <i>filehost.com/3bfiq5d1</i> - 3bfiq5d1 probably is not constant<br>\
  4121. <li>bad: <i>filehost.com</i> - no slash<br>\
  4122. </ul>\
  4123. \
  4124. <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.\
  4125. 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 \
  4126. &lt;div&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;p&gt; even if there are new lines, tabulators etc.\
  4127. <li><b>@deadmatch</b> <i>pattern</i> - ignored for OBSOLETE, required for others. (For HEADERS some servers return 404 Error \
  4128. 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.)\
  4129. Two spaces again match any whitespace.\
  4130. <li><b>@unavamatch</b> <i>pattern</i> - optional, ignored for OBSOLETE and HEADERS. If found, the link is deemed temporarily unavailable.\
  4131. Two spaces again match any whitespace.\
  4132. <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. \
  4133. <li><b>@deadlink</b> <i>url</i> - optional. Example dead link.\
  4134. </ul>\
  4135. \
  4136. ';
  4137.  
  4138. //close image and css taken from = http://www.sohtanaka.com/web-design/examples/css-popup icon_close.png;
  4139. var configurationinnerHTML =
  4140. '<div id="fade"></div>\
  4141. <div class="popup_block">\
  4142. <div class="popup">\
  4143. <a href="#"><img id="imghideshow" title="Close" class="cntrl" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAfCAYAAAD0ma06AAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAY1SURBVHjapFZbbFRVFN0zd6Yz08dMoUNf9EGxUItJK62I4AOJEYiQ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T1wz6YsnQf0U8CTFHgrFZDw1Hnfl34da2vcFCFTAMqYaBr07nD40/IebZui1t9qqWgE3t6uOfCB3gF8FegrBB6x5qrri9688a+JYN6UK57eijDo2HI2+8/HB/8AVAHlQCfQCvz7chOIBTzS1FocNEx1VSNjHmFWS9jvC6mk11QWAbePhl4K/JWa1fbSypU2uSsI8ZgnEyG2wE9igb/Fa7f9MHGTQuANdbcGLzyFV2smiukr7Siw4WqGvZhlqznxhX7cTzmXayA234c33lqFcjneIqZfxX1TJr+t4dWtcUGXgusNgaPLwvQpgJjHcK8EPOAM6J7+vblEfK0fZ9RoqwAnpTnznsN/2jOkuvOUNvmpXmMTrrQuoJWGj36bAugAMhSo2cnsgUil2fb5LRHi1/jRGlJHc5zenaV7p0PyRB7XkR7vfa4IlZtT69fbVKywyafh8HODHN+WfhH4FnD2alN1B7AdOAcMeT29HfiZJ5oZ3sHrgAeBvcCANzBsHu7Ohe2/AwDnNnxcIIMIUgAAAABJRU5ErkJggg=="></img>&nbsp;W.A.R. Links Checker Customized Premium Link version Configuration</div>\
  4145. <div id="warlc-conf-tabs">\
  4146. <ul>\
  4147. <li><a href="#tabs-1">Filehostings</a></li>\
  4148. <li><a href="#tabs-2">Containers</a></li>\
  4149. <li><a href="#tabs-5">Custom rules</a></li>\
  4150. <li><a href="#tabs-3">Settings</a></li>\
  4151. <li><a href="#tabs-4">About</a></li>\
  4152. </ul>\
  4153. <div id="tabs-1" class="warlc-ui-tab">\
  4154. <div class="warlc-ui-buttonset">\
  4155. <input type="button" class="warlc-ui-select-all" value="Select All">\
  4156. <input type="button" class="warlc-ui-select-none" value="Select None">\
  4157. <input type="button" class="warlc-ui-select-invert" value="Invert">\
  4158. </div><br>\
  4159. <div>Search: <input type="textbox" id="hostSearchBox" value=""></div><br>\
  4160. <div id="warlcsitelist1"><span>Empty</span></div>\
  4161. </div>\
  4162. <div id="tabs-2" class="warlc-ui-tab">\
  4163. <div class="warlc-ui-buttonset">\
  4164. <input type="button" class="warlc-ui-select-all" value="Select All">\
  4165. <input type="button" class="warlc-ui-select-none" value="Select None">\
  4166. <input type="button" class="warlc-ui-select-invert" value="Invert">\
  4167. </div><br>\
  4168. <div>Search: <input type="textbox" id="hostSearchBox2" value=""></div><br>\
  4169. <div id="warlcsitelist2"><span>Empty</span></div>\
  4170. </div>\
  4171. <div id="tabs-5" class="warlc-ui-tab">\
  4172. <div class="warlcsettings">\
  4173. <fieldset><input type="checkbox" id="Custom_rules"> Enable custom rules <div id="bulk">EXPERIMENTAL</div></fieldset>\
  4174. <br>\
  4175. <div>Edit custom rules: \
  4176. <a href="#" id="showCustomRulesReference">(<b>Click here to show/hide the reference</b>)</a>\
  4177. <div id="customRulesReference" style="display:none;">'
  4178. + customRulesRefHTML + '\
  4179. </div>\
  4180. <textarea style="width:100%;height:200px;" id="Custom_rules_text"></textarea>\
  4181. </div>\
  4182. </div>\
  4183. </div>\
  4184. <div id="tabs-3" class="warlc-ui-tab">\
  4185. <div class="warlcsettings">\
  4186. <fieldset>\
  4187. <p><input type="checkbox" id="Keyboard_functions"> Enable keyboard shortcuts</p>\
  4188. <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>\
  4189. </fieldset>\
  4190. <fieldset>\
  4191. <p><input type="checkbox" id="Color_DL_links"> Color DL links</p>\
  4192. <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>\
  4193. <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>\
  4194. <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>\
  4195. <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>\
  4196. <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>\
  4197. <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>\
  4198. <p><input type="checkbox" id="Show_line_through_in_dead_links"> Show line through in dead links</p>\
  4199. <p><input type="checkbox" id="Show_black_background_in_DL_links"> Show black background in DL links</p>\
  4200. <p><input type="checkbox" id="Do_not_linkify_DL_links"> Do NOT linkify DL links</p>\
  4201. <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>\
  4202. <p><input type="checkbox" id="Display_full_links_in_link_containers"> Display full links in link containers</p><br>\
  4203. <fieldset>\
  4204. <p><input type="radio" name="warlciconset" value="0"> No icons</p>\
  4205. <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>\
  4206. <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>\
  4207. <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>\
  4208. </fieldset>\
  4209. </fieldset>\
  4210. <fieldset>\
  4211. <div id="sites"><input type="checkbox" id="Autocheck"> Autocheck</div><br><div id="configinfo">Script starts check automatically.</div><br>\
  4212. </fieldset>\
  4213. <fieldset>\
  4214. <div id="sites"><input type="checkbox" id="Show_progress_stats"> Show progress stats</div><br>\
  4215. </fieldset>\
  4216. <fieldset>\
  4217. <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>\
  4218. </fieldset>\
  4219. <fieldset>\
  4220. <p><input type="checkbox" id="Enable_Anonymizer"> Enable Anonymizer</div><div id="bulk">EXPERIMENTAL Note: Checkbox does not work use CTRL+ALT+Z.</p>\
  4221. <div id="sites"><label for="refAnonymizer">Refererer anonymizing service</label><input type="text" id="refAnonymizer" value="' + Ref_anonymize_service + '"></div>\
  4222. </fieldset>\
  4223. </div>\
  4224. </div>\
  4225. <div id="tabs-4" class="warlc-ui-tab">\
  4226. <p><b>Author:</b> <a href="http://www.mentalps.5gbfree.com/viewtopic.php?f=2&t=6">mentalps</a></p>\
  4227. <br />\
  4228. <p><b>Currently supported:</b><br>\
  4229. Filehostings: ' + allHostNames.length + '<br />\
  4230. Containers: ' + allContainerNames.length + '<br />\
  4231. Obsolete sites: ' + allObsoleteNames.length + '<br /></p>\
  4232. <br />\
  4233. <p><b>Based on:</b><br>\
  4234. <a href="http://userscripts-mirror.org/scripts/show/125631.html">W.A.R. Links Checker - Dev</a></p>\
  4235. <br />\
  4236. <p><b>Uses:</b></p>\
  4237. <p>adam_3\'s <a href="http://userscripts-mirror.org/scripts/show/2254">Linkify ting</a> (modified)</p>\
  4238. <p><a href="http://jquery.com/">jQuery</a> JavaScript Library</p>\
  4239. <br />\
  4240. <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>\
  4241. </div>\
  4242. </div>\
  4243. </div>\
  4244. </div>';
  4245. $('body').append('<div id="hideshow">' + configurationinnerHTML + '</div>');
  4246. $("#warlc-conf-tabs").tabs({ fx: { opacity: 'toggle', duration: 'fast' } });
  4247. $("#imghideshow").click(function(event){$("#hideshow").hide(); event.preventDefault();});
  4248. var elmHostList = document.getElementById("warlcsitelist1");
  4249. var elmContainerList = document.getElementById("warlcsitelist2");
  4250. buildSettings();
  4251. buildSitelist("", allHostNames, elmHostList);
  4252. buildSitelist("", allContainerNames, elmContainerList);
  4253. if (DEBUG_MODE)
  4254. {
  4255. //log all sites availability status
  4256. diagSites();
  4257. }
  4258. //handler for checkbox state change
  4259. function changeConfiguration(e)
  4260. {
  4261. var element = e.target;
  4262.  
  4263. if (element.type == 'checkbox')
  4264. {
  4265. if (element.checked == 1)
  4266. {
  4267. GM_setValue(element.id, true);
  4268. }
  4269. else
  4270. {
  4271. GM_setValue(element.id, false);
  4272. }
  4273.  
  4274. }
  4275. setVariables();
  4276. }
  4277.  
  4278. //Selects all filehosting checkboxes
  4279. function selectAll()
  4280. {
  4281. $(":checkbox:visible:not(:checked)").prop("checked",true)
  4282. .each(function(index, element){GM_setValue(this.id, true)});
  4283. }
  4284.  
  4285. //Deselects all filehosting checkboxes
  4286. function selectNone()
  4287. {
  4288. $(":checkbox:visible:checked").prop("checked",false)
  4289. .each(function(index, element){GM_setValue(this.id, false)});
  4290. }
  4291.  
  4292. //Inverts filehosting checkboxes selection
  4293. function selectInvert()
  4294. {
  4295. var $checked = $(":checkbox:visible:checked");
  4296. var $unchecked = $(":checkbox:visible:not(:checked)");
  4297. $unchecked.prop("checked",true)
  4298. .each(function(index, element){GM_setValue(this.id, true)});
  4299. $checked.prop("checked",false)
  4300. .each(function(index, element){GM_setValue(this.id, false)});
  4301. }
  4302. //toggles anonymizer on off
  4303. function Enable_Anonymizer()
  4304. {
  4305. var $checked = $(":checkbox:visible:checked");
  4306. var $unchecked = $(":checkbox:visible:not(:checked)");
  4307. $unchecked.prop("checked",true)
  4308. .each(function(index, element){GM_setValue(this.id, true)});
  4309. $checked.prop("checked",false)
  4310. .each(function(index, element){GM_setValue(this.id, false)});
  4311. }
  4312.  
  4313. function changeRefAnonymizer(){
  4314. GM_setValue("Ref_anonymize_service", $("#refAnonymizer").attr("value"));
  4315. }
  4316.  
  4317. //Sets live links color
  4318. function changeColorLive()
  4319. {
  4320. var inColorLive = document.getElementById("inputColorLive");
  4321. inColorLive.style.background = inColorLive.value;
  4322. GM_setValue("Live_links_color", inColorLive.value);
  4323. }
  4324.  
  4325. //Sets dead links color
  4326. function changeColorDead()
  4327. {
  4328. var inColorDead = document.getElementById("inputColorDead");
  4329. inColorDead.style.background = inColorDead.value;
  4330. GM_setValue("Dead_links_color", inColorDead.value);
  4331. }
  4332.  
  4333. //Sets temp. unavailable links color
  4334. function changeColorTemp()
  4335. {
  4336. var inColorTemp = document.getElementById("inputColorTemp");
  4337. inColorTemp.style.background = inColorTemp.value;
  4338. GM_setValue("Temp_unavailable_links_color", inColorTemp.value);
  4339. }
  4340.  
  4341. //Sets temp. unavailable links color
  4342. function changeColorCont()
  4343. {
  4344. var inColorCont = document.getElementById("inputColorCont");
  4345. inColorCont.style.background = inColorCont.value;
  4346. GM_setValue("Container_links_color", inColorCont.value);
  4347. }
  4348. //Sets premium. links color
  4349. function changeColorprem()
  4350. {
  4351. var inColorprem = document.getElementById("inputColorprem");
  4352. inColorprem.style.background = inColorprem.value;
  4353. GM_setValue("Premium_links_color", inColorprem.value);
  4354. }
  4355.  
  4356. //Diagnose sites for availability
  4357. function diagSites()
  4358. {
  4359. var boxes = document.getElementById("warlcsitelist1").getElementsByTagName("input");
  4360.  
  4361. for (var i = 0, n = boxes.length - 1; i < n; i++)
  4362. {
  4363. if (boxes[i].type == "checkbox")
  4364. {
  4365. checkAvailability(boxes[i]);
  4366. }
  4367. }
  4368.  
  4369. boxes = document.getElementById("warlcsitelist2").getElementsByTagName("input");
  4370.  
  4371. for (var i = 0, n = boxes.length - 1; i < n; i++)
  4372. {
  4373. if (boxes[i].type == "checkbox")
  4374. {
  4375. checkAvailability(boxes[i]);
  4376. }
  4377. }
  4378.  
  4379. function checkAvailability(cbElm)
  4380. {
  4381. var cb = cbElm;
  4382. GM_xmlhttpRequest(
  4383. {
  4384. method: 'HEAD',
  4385. url: 'http://' + cb.nextSibling.textContent.replace(' ', ''),
  4386. headers: {
  4387. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  4388. 'Accept': 'text/xml',
  4389. 'Referer': ""
  4390. },
  4391. onload: function (result)
  4392. {
  4393. if (result.status != 200)
  4394. {
  4395. GM_log(cb.nextSibling.textContent + ' --- status: [' + result.status + '] ' + result.statusText + ', final url: ' + result.finalUrl);
  4396. }
  4397. },
  4398. onerror: function (result)
  4399. {
  4400. if (result.status != 200)
  4401. {
  4402. GM_log(cb.nextSibling.textContent + ' --- status: [' + result.status + '] ' + result.statusText + ', final url: ' + result.finalUrl);
  4403. }
  4404. }
  4405. });
  4406. }
  4407. }
  4408. function buildSettings()
  4409. {
  4410. $(".warlcsettings :checkbox").each(function(){
  4411. $(this).prop("checked", GM_getValue($(this).attr("id")))
  4412. .click(function(e){
  4413. GM_setValue($(this).attr("id"), $(this).prop("checked"));
  4414. setVariables();
  4415. });
  4416. })
  4417. }
  4418. //Dynamic build of host list
  4419. //param search [string] searches for hostnames matching search substring
  4420. //param siteNames [array] array of site names
  4421. //param targetNode [DOM Node] where the list should be built
  4422. // first child node is replaced
  4423. function buildSitelist(search, siteNames, targetNode)
  4424. {
  4425. var searchRegex = new RegExp("\\|?([\\w\\.-]*" + search.replace(/\./g,"\\.").replace(/-/g, "\\-") + "[\\w\\.-]*)\\|?", "i");
  4426. var $targetNode = $(targetNode).empty();
  4427. var searchedSite = "";
  4428. $.each(siteNames, function(i, site){
  4429. if (searchedSite = site.match(searchRegex))
  4430. {
  4431. var baseSite = site.replace(/\|.+/, ""); //filehosting main domain
  4432. //ensuring backward compatibility with the rest of code, to be refactored later
  4433. var oldRSLCvalue = "Check_" + baseSite.replace(/\|.+/, "").replace(/\./g,"_dot_").replace(/-/g, "_dash_") + "_links";
  4434. //
  4435. $targetNode.append('<input type="checkbox" id="' + oldRSLCvalue +'" />\
  4436. <label for="' + oldRSLCvalue + '">' + searchedSite[1] + '</label>' +
  4437. ((searchedSite[1] != baseSite) ? ('<div id="note"> ( ~ ' + baseSite + ' )</div>') : (""))
  4438. );
  4439. $("#" + oldRSLCvalue).prop("checked", GM_getValue(oldRSLCvalue, false))
  4440. .change(changeConfiguration);
  4441. $targetNode.append('<br />');
  4442. }
  4443. });
  4444. $targetNode.append("<hr>");
  4445. //obsolete hosts checkbox
  4446. $targetNode.append('<input type="checkbox" id="Obsolete_file_hosts" /><label for="Obsolete_file_hosts">Obsolete file hosts</label>');
  4447. $("#Obsolete_file_hosts").prop("checked", GM_getValue("Obsolete_file_hosts", false))
  4448. .change(changeConfiguration);
  4449. $targetNode.append('<br />');
  4450. var foundName = "";
  4451. $.each(allObsoleteNames, function(i, site){
  4452. if (foundName = allObsoleteNames[i].match(searchRegex))
  4453. {
  4454. $targetNode.append('<div id="note">' + foundName[1] + '</div>');
  4455. }
  4456. })
  4457. }
  4458. var hostSearchBox = document.getElementById("hostSearchBox");
  4459. hostSearchBox.addEventListener('keyup', function(){buildSitelist(hostSearchBox.value, allHostNames, elmHostList);}, false);
  4460. var hostSearchBox2 = document.getElementById("hostSearchBox2");
  4461. hostSearchBox2.addEventListener('keyup', function(){buildSitelist(hostSearchBox2.value, allContainerNames, elmContainerList);}, false);
  4462. $(".warlc-ui-select-all").click(selectAll).button();
  4463. $(".warlc-ui-select-none").click(selectNone).button();
  4464. $(".warlc-ui-select-invert").click(selectInvert).button();
  4465. $(".warlc-ui-buttonset").buttonset();
  4466. var inColorLive = document.getElementById("inputColorLive");
  4467. inColorLive.addEventListener('keyup', changeColorLive, false);
  4468.  
  4469. var inColorDead = document.getElementById("inputColorDead");
  4470. inColorDead.addEventListener('keyup', changeColorDead, false);
  4471.  
  4472. var inColorTemp = document.getElementById("inputColorTemp");
  4473. inColorTemp.addEventListener('keyup', changeColorTemp, false);
  4474.  
  4475. var inColorCont = document.getElementById("inputColorCont");
  4476. inColorCont.addEventListener('keyup', changeColorCont, false);
  4477. var inColorprem = document.getElementById("inputColorprem");
  4478. inColorprem.addEventListener('keyup', changeColorprem, false);
  4479. $("#refAnonymizer").change(changeRefAnonymizer);
  4480. //buttons and edit boxes init end
  4481.  
  4482. //icon sets radio buttons
  4483. var radioButtons = document.getElementsByName("warlciconset");
  4484. radioButtons[Icon_set].checked = "checked";
  4485.  
  4486. radioButtons[0].addEventListener("change", updateIconSet);
  4487. radioButtons[1].addEventListener("change", updateIconSet);
  4488. radioButtons[2].addEventListener("change", updateIconSet);
  4489. radioButtons[3].addEventListener("change", updateIconSet);
  4490. function updateIconSet()
  4491. {
  4492. GM_setValue("Icon_set", this.value * 1);
  4493. }
  4494. //
  4495. $('#showCustomRulesReference').click(function(e){
  4496. e.preventDefault();
  4497. $('#customRulesReference').toggle();
  4498. });
  4499. $('#Custom_rules_text')
  4500. .val(Custom_rules_text)
  4501. .change(saveCustomRules);
  4502. function saveCustomRules(e)
  4503. {
  4504. var cr = parseCustomRules(this.value);
  4505. if (cr.info.length)
  4506. 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, ' '));
  4507. GM_setValue('Custom_rules_text', this.value);
  4508. GM_setValue('last_custom_rules_nag', ''+new Date().getTime()); //reset nag
  4509. }
  4510. }
  4511.  
  4512. //begin standard link checking algorithm
  4513. function start(filterId)
  4514. {
  4515. var doNotLinkify = Do_not_linkify_DL_links;
  4516.  
  4517. // USER SELECTED FILE HOSTS INITIALIZATION START
  4518. var http_file_hosts = new Array(); //standard hostings
  4519. var http_file_hosts_coded = new Array(); //hostings which has to be decoded to obtain real checkable link
  4520. var http_file_hosts_obsolete = new Array(); //dead hostings
  4521. var http_file_hosts_headers_only = new Array(); //hostings with direct download, must be handled via headers only
  4522.  
  4523. initFileHosts();
  4524. initFileHostsHeadersOnly();
  4525. initFileHostsCustom(); //CustomRules
  4526. // USER SELECTED FILE HOSTS INITIALIZATION END
  4527.  
  4528. // LINKIFICATION START
  4529. var totalxpath = '';
  4530. var totalxpathcoded = '';
  4531. var totalxpathobsolete = '';
  4532. var totalxpathheadersonly = '';
  4533. var totalourls = '';
  4534.  
  4535. var filehostLen = http_file_hosts.length;
  4536. var filehostCodedLen = http_file_hosts_coded.length;
  4537. var filehostObsoleteLen = http_file_hosts_obsolete.length;
  4538. var filehostHeadersOnlyLen = http_file_hosts_headers_only.length;
  4539.  
  4540. var filehostIdx = filehostLen;
  4541. var filehostCodedIdx = filehostCodedLen;
  4542. var filehostObsoleteIdx = filehostObsoleteLen;
  4543. var filehostHeadersOnlyIdx = filehostHeadersOnlyLen;
  4544.  
  4545. if ((filehostIdx == 0) && (filehostCodedIdx == 0) && (filehostHeadersOnlyIdx == 0) && (filehostObsoleteIdx == 0))
  4546. return;
  4547.  
  4548. while (filehostIdx--)
  4549. {
  4550. totalourls += http_file_hosts[filehostIdx][0] + '|';
  4551. totalxpath += http_file_hosts[filehostIdx][4] + '|';
  4552. }
  4553.  
  4554. while (filehostCodedIdx--)
  4555. {
  4556. totalourls += http_file_hosts_coded[filehostCodedIdx][0] + '|';
  4557. totalxpathcoded += http_file_hosts_coded[filehostCodedIdx][3] + '|';
  4558. }
  4559.  
  4560. while (filehostObsoleteIdx--)
  4561. {
  4562. totalourls += http_file_hosts_obsolete[filehostObsoleteIdx][0] + '|';
  4563. totalxpathobsolete += http_file_hosts_obsolete[filehostObsoleteIdx][1] + '|';
  4564. }
  4565.  
  4566. while (filehostHeadersOnlyIdx--)
  4567. {
  4568. totalourls += http_file_hosts_headers_only[filehostHeadersOnlyIdx][0] + '|';
  4569. totalxpathheadersonly += http_file_hosts_headers_only[filehostHeadersOnlyIdx][3] + '|';
  4570. }
  4571.  
  4572. totalourls = totalourls.replace(/\|$/g, "");
  4573. //TODO: further refactoring needed
  4574. totalxpath = totalxpath.replace(/\]\|\/\/a\[/g, " or ");
  4575. totalxpath = totalxpath.replace(/\]\|/, ')]');
  4576. totalxpathcoded = totalxpathcoded.replace(/\]\|\/\/a\[/g, " or ");
  4577. totalxpathcoded = totalxpathcoded.replace(/\]\|/, ')]');
  4578. totalxpathobsolete = totalxpathobsolete.replace(/\]\|\/\/a\[/g, " or ");
  4579. totalxpathobsolete = totalxpathobsolete.replace(/\]\|/, ')]');
  4580. totalxpathheadersonly = totalxpathheadersonly.replace(/\]\|\/\/a\[/g, " or ");
  4581. totalxpathheadersonly = totalxpathheadersonly.replace(/\]\|/, ')]');
  4582. if (filterId != null) //insert id restriction in the xpath
  4583. {
  4584. totalxpath = totalxpath.replace(/\[/g, "[@class='" + filterId + "' and (");
  4585. totalxpathcoded = totalxpathcoded.replace(/\[/g, "[@class='" + filterId + "' and (");
  4586. totalxpathobsolete = totalxpathobsolete.replace(/\[/g, "[@class='" + filterId + "' and (");
  4587. totalxpathheadersonly = totalxpathheadersonly.replace(/\[/g, "[@class='" + filterId + "' and (");
  4588. }
  4589. else
  4590. {
  4591. totalxpath = totalxpath.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4592. totalxpathcoded = totalxpathcoded.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4593. totalxpathobsolete = totalxpathobsolete.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4594. totalxpathheadersonly = totalxpathheadersonly.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4595. }
  4596. linkify(totalourls);
  4597. //LINKIFICATION END
  4598. //ENCRYPTED LINKS PROCESSING START
  4599. if (http_file_hosts_coded.length > 0)
  4600. {
  4601. var linksCoded = document.evaluate(totalxpathcoded, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4602.  
  4603. // decrypt coded links (redirects, link protectors etc.)
  4604. if (linksCoded.snapshotLength > 0)
  4605. {
  4606. var link;
  4607. var reallinkreg;
  4608. var reallinkcorrection;
  4609.  
  4610. if (filterId == null)
  4611. {
  4612. cLinksTotal += linksCoded.snapshotLength;
  4613. }
  4614.  
  4615. var y = linksCoded.snapshotLength - 1;
  4616. do
  4617. {
  4618. // linksCoded.snapshotItem(y).id = 'processing_link';
  4619. link = linksCoded.snapshotItem(y);
  4620. filehostIdx = filehostCodedLen;
  4621. while (filehostIdx--)
  4622. {
  4623. if (link.href.match(http_file_hosts_coded[filehostIdx][0]))
  4624. {
  4625. link.href = link.href.replace(/http:\/\/.*?(?:\?|=)http:\/\//, 'http://');
  4626. reallinkreg = http_file_hosts_coded[filehostIdx][1];
  4627. reallinkcorrection = http_file_hosts_coded[filehostIdx][2];
  4628.  
  4629. decurl(link, reallinkreg, reallinkcorrection);
  4630. break;
  4631. }
  4632. }
  4633. }
  4634. while (y--);
  4635. }
  4636. }
  4637. //ENCRYPTED LINKS PROCESSING END
  4638.  
  4639. //STANDARD LINKCHECKING START
  4640. if (http_file_hosts.length > 0)
  4641. {
  4642. var lianks = document.evaluate(totalxpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4643.  
  4644. if (filterId == null)
  4645. {
  4646. cLinksTotal += lianks.snapshotLength;
  4647. }
  4648.  
  4649. if (lianks.snapshotLength > 0)
  4650. {
  4651. var link;
  4652.  
  4653. var URL = "";
  4654. var name = "";
  4655. var isAliveRegex = "";
  4656. var isDeadRegex = "";
  4657. var isUnavaRegex = "";
  4658. var ispremRegex = "";
  4659. var tryLoop = false;
  4660.  
  4661. var y = lianks.snapshotLength;
  4662.  
  4663. while (y--)
  4664. {
  4665. link = lianks.snapshotItem(y);
  4666.  
  4667. filehostIdx = filehostLen;
  4668. while (filehostIdx--)
  4669. {
  4670. if (link.href.match(http_file_hosts[filehostIdx][0]))
  4671. {
  4672. link.href = link.href.replace(/http:\/\/.*?http:\/\//, 'http://'); //anonymizers
  4673. isAliveRegex = http_file_hosts[filehostIdx][1];
  4674. isDeadRegex = http_file_hosts[filehostIdx][2];
  4675. isUnavaRegex = http_file_hosts[filehostIdx][3];
  4676. ispremRegex = http_file_hosts[filehostIdx][6];
  4677. tryLoop = http_file_hosts[filehostIdx][5];
  4678.  
  4679. geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, tryLoop);
  4680.  
  4681. break;
  4682. }
  4683. }
  4684. }
  4685. }
  4686. }
  4687. //STANDARD LINKCHECKING END
  4688. //OBSOLETE FILE HOSTS PROCESSING START
  4689. if (filehostObsoleteLen > 0)
  4690. {
  4691. var obsoletelinks = document.evaluate(totalxpathobsolete, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4692.  
  4693. var obsoleteLink;
  4694.  
  4695. //check links
  4696. if (obsoletelinks.snapshotLength > 0)
  4697. {
  4698. var y = obsoletelinks.snapshotLength;
  4699.  
  4700. if (filterId == null)
  4701. {
  4702. cLinksTotal += y;
  4703. }
  4704.  
  4705. while (y--)
  4706. {
  4707. obsoleteLink = obsoletelinks.snapshotItem(y);
  4708.  
  4709. if (Display_tooltip_info)
  4710. {
  4711. obsoleteLink.warlc_error = 'Cause of error: <b>Obsolete filehosting.</b>';
  4712. }
  4713. displayTheCheckedLink(obsoleteLink, 'adead_link');
  4714. }
  4715. }
  4716. }
  4717. //OBSOLETE FILE HOSTS PROCESSING END
  4718.  
  4719. //DIRECT LINKCHECKING START
  4720. if (http_file_hosts_headers_only.length > 0)
  4721. {
  4722. var links = document.evaluate(totalxpathheadersonly, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4723.  
  4724. //check links
  4725. if (links.snapshotLength > 0)
  4726. {
  4727. var link;
  4728. var isAliveRegex;
  4729. var isDeadRegex;
  4730. var ispremRegex;
  4731.  
  4732. var y = links.snapshotLength;
  4733.  
  4734.  
  4735. if (filterId == null)
  4736. {
  4737. cLinksTotal += y;
  4738. }
  4739.  
  4740. while (y--)
  4741. {
  4742. // links.snapshotItem(y).id = 'processing_link';
  4743. link = links.snapshotItem(y);
  4744. filehostIdx = filehostHeadersOnlyLen;
  4745. while (filehostIdx--)
  4746. {
  4747. if (link.href.match(http_file_hosts_headers_only[filehostIdx][0]))
  4748. {
  4749. link.href = link.href.replace(/http:\/\/.*?(?:\?|=)http:\/\//, 'http://');
  4750. isAliveRegex = http_file_hosts_headers_only[filehostIdx][1];
  4751. isDeadRegex = http_file_hosts_headers_only[filehostIdx][2];
  4752. ispremRegex = http_file_hosts_headers_only[filehostIdx][3];
  4753.  
  4754. geturlHeader(link, isAliveRegex, isDeadRegex, ispremRegex);
  4755.  
  4756. break;
  4757. }
  4758. }
  4759. }
  4760.  
  4761. }
  4762. }
  4763. //DIRECT LINKCHECKING END
  4764.  
  4765.  
  4766. //finds the real url on the page, replaces link.href with it and calls geturl
  4767. function decurl(link, reallinkreg, reallinkcorrection)
  4768. {
  4769.  
  4770. GM_xmlhttpRequest(
  4771. {
  4772. method: 'GET',
  4773. url: link.href,
  4774. headers: {
  4775. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  4776. 'Accept': 'text/xml',
  4777. 'Referer': ""
  4778. },
  4779. onload: function (result)
  4780. {
  4781. // cLinksProcessed++;
  4782.  
  4783. var reallink = result.responseText.match(reallinkreg)[0];
  4784. reallink = reallink.replace(new RegExp(reallinkcorrection, "g"), "");
  4785.  
  4786. link.href = reallink;
  4787.  
  4788. var i = http_file_hosts.length - 1;
  4789. do
  4790. {
  4791. if ((reallink.match(http_file_hosts[i][0])))
  4792. {
  4793. link.href = link.href.replace(/http:\/\/.*?\?http:\/\//, 'http://');
  4794. var isAliveRegex = http_file_hosts[i][1];
  4795. var isDeadRegex = http_file_hosts[i][2];
  4796. var isUnavaRegex = http_file_hosts[i][3];
  4797. var ispremRegex = http_file_hosts[i][4];
  4798.  
  4799. geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, 50);
  4800.  
  4801. break;
  4802. }
  4803. }
  4804. while (i--);
  4805. }
  4806. });
  4807. }
  4808.  
  4809. function randUA()
  4810. {
  4811. //TODO
  4812. }
  4813. //Processes link
  4814. //
  4815. // [string] link link URL
  4816. // [string] isAliveRegex alive link regex
  4817. // [string] isDeadRegex dead link regex
  4818. // [string] isUnavaRegex unavailable link regex
  4819. // [string] ispremRegex premium link regex
  4820. // [boolean] tryLoop repeats request until succeeded
  4821. function geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, tryLoop)
  4822. {
  4823. GM_xmlhttpRequest(
  4824. {
  4825. method: 'GET',
  4826. url: link.href,
  4827. headers: {
  4828. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  4829. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  4830. 'Referer': ""
  4831. },
  4832. onload: function (result)
  4833. {
  4834. var res = result.responseText;
  4835. if (result.responseHeaders.match(/Content-Disposition: attachment; filename=/))//direct download, simple version
  4836. {
  4837. displayTheCheckedLink(link, 'alive_link');
  4838. return;
  4839. }
  4840.  
  4841. if (res.match(isAliveRegex))
  4842. {
  4843. displayTheCheckedLink(link, 'alive_link');
  4844. return;
  4845. }
  4846.  
  4847. if (res.match(isDeadRegex))
  4848. {
  4849. displayTheCheckedLink(link, 'adead_link');
  4850. return;
  4851. }
  4852.  
  4853. if (isUnavaRegex && res.match(isUnavaRegex))
  4854. {
  4855. displayTheCheckedLink(link, 'unava_link');
  4856. return;
  4857. }
  4858. if (res.match(ispremRegex))
  4859. {
  4860. displayTheCheckedLink(link, 'prem_link');
  4861. return;
  4862. }
  4863.  
  4864. var resStatus = result.status;
  4865.  
  4866. if (resStatus == 404)
  4867. {
  4868. displayTheCheckedLink(link, 'adead_link');
  4869. }
  4870. if (resStatus == 500 || resStatus == 503 || resStatus == 403) //not found/available/temp. unava
  4871. {
  4872. if (tryLoop)
  4873. {
  4874. //wait 1-5 seconds and repeat the request
  4875. setTimeout(function(){geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, tryLoop)}, 1000 + (Math.random() * 4000));
  4876. }
  4877. else
  4878. {
  4879. displayTheCheckedLink(link, 'unava_link');
  4880. }
  4881.  
  4882. return;
  4883. }
  4884. },
  4885. onerror: function ()
  4886. {
  4887. displayTheCheckedLink(link, 'unava_link');
  4888. }
  4889. });
  4890. }
  4891.  
  4892. function geturlHeader(link, isAliveRegex, isDeadRegex, ispremRegex)
  4893. {
  4894. GM_xmlhttpRequest(
  4895. {
  4896. method: 'HEAD',
  4897. url: link.href,
  4898. headers: {
  4899. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  4900. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  4901. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  4902. 'Referer': ""
  4903. },
  4904. onload: function (result)
  4905. {
  4906. var resStatus = result.status;
  4907. var resHeaders = "";
  4908. if (resStatus == 403 || resStatus == 404 || resStatus == 500) //not found/available
  4909. {
  4910. displayTheCheckedLink(link, 'adead_link');
  4911. return;
  4912. }
  4913.  
  4914. resHeaders = result.responseHeaders;
  4915.  
  4916. if (resHeaders.match(isDeadRegex))
  4917. {
  4918. displayTheCheckedLink(link, 'adead_link');
  4919. return;
  4920. }
  4921.  
  4922. if (resHeaders.match(isAliveRegex))
  4923. {
  4924. displayTheCheckedLink(link, 'alive_link');
  4925. return;
  4926. }
  4927. if (resHeaders.match(ispremRegex))
  4928. {
  4929. displayTheCheckedLink(link, 'prem_link');
  4930. return;
  4931. }
  4932. },
  4933. onerror: function ()
  4934. {
  4935. displayTheCheckedLink(link, 'unava_link');
  4936. }
  4937. });
  4938. }
  4939.  
  4940. //Delinkfifies the <a> element object
  4941. function delinkifyLink(link)
  4942. {
  4943. var spanElm = document.createElement("span");
  4944. spanElm.className = link.className;
  4945. spanElm.innerHTML = link.innerHTML;
  4946.  
  4947. if (Display_tooltip_info)
  4948. {
  4949. spanElm.href = link.href;
  4950. spanElm.warlc_error = link.warlc_error;
  4951. switch (link.className){
  4952. case "alive_link": spanElm.addEventListener("mouseover", displayTooltipInfo, false); break
  4953. case "adead_link": spanElm.addEventListener("mouseover", displayTooltipError, false); break;
  4954. case "unava_link": //reserved
  4955. case "prem_link": spanElm.addEventListener("mouseover", displayTooltipError, false); break;
  4956. default:
  4957. }
  4958. }
  4959. link.parentNode.replaceChild(spanElm, link);
  4960. }
  4961.  
  4962. //Assigns result status to the <a> element object and calls delinkifying eventually
  4963. //Possible result states: adead_link, alive_link, unava_link, prem_link
  4964. function displayTheCheckedLink(link, resultStatus)
  4965. {
  4966. link.className = resultStatus;
  4967. link.href = Ref_anonymize_service + link.href;
  4968. if (Display_tooltip_info)
  4969. {
  4970. switch (resultStatus){
  4971. case "alive_link": link.addEventListener("mouseover", displayTooltipInfo, false); break
  4972. case "adead_link": link.addEventListener("mouseover", displayTooltipError, false); break;
  4973. case "unava_link": //reserved
  4974. case "prem_link": link.addEventListener("mouseover", displayTooltipInfo, false); break
  4975. default:
  4976. }
  4977. }
  4978. if (doNotLinkify)
  4979. {
  4980. delinkifyLink(link);
  4981. }
  4982. cLinksProcessed++;
  4983.  
  4984. if (resultStatus == "alive_link")
  4985. {
  4986. cLinksAlive++;
  4987. return;
  4988. }
  4989.  
  4990. if (resultStatus == "adead_link")
  4991. {
  4992. cLinksDead++;
  4993. return;
  4994. }
  4995.  
  4996. if (resultStatus == "unava_link")
  4997. {
  4998. cLinksUnava++;
  4999. }
  5000. if (resultStatus == "prem_link")
  5001. {
  5002. cLinksprem++;
  5003. return;
  5004. }
  5005. }
  5006.  
  5007.  
  5008. function initFileHosts()
  5009. {
  5010.  
  5011. function addObsoleteHost(linkRegex, xpathEx)
  5012. {
  5013. var host = new Array(2);
  5014. host[0] = linkRegex;
  5015. host[1] = xpathEx;
  5016. http_file_hosts_obsolete.push(host);
  5017. }
  5018.  
  5019. //obsolete file hosts init start
  5020. if (Obsolete_file_hosts)
  5021. {
  5022. addObsoleteHost("uloz\.cz\/show\/file","//a[contains(@href,'uloz.cz')]");
  5023. addObsoleteHost("storage\\.to\/get","//a[contains(@href,'storage.to')]");
  5024. addObsoleteHost("iskladka\\.cz\/download","//a[contains(@href,'iskladka.cz')]");
  5025. addObsoleteHost("file-rack\\.com\/files","//a[contains(@href,'file-rack.com')]");
  5026. addObsoleteHost("fast-load\\.net\/(\/)?index","//a[contains(@href,'fast-load.net')]");
  5027. addObsoleteHost("subory\\.sk\/download","//a[contains(@href,'subory.sk')]");
  5028. addObsoleteHost("bigandfree\\.com\/\\d+","//a[contains(@href,'bigandfree.com')]");
  5029. addObsoleteHost("fileop\\.com\/\\w+","//a[contains(@href,'fileop.com')]");
  5030. addObsoleteHost("mujsoubor\\.cz\/file\/","//a[contains(@href,'mujsoubor.cz')]");
  5031. addObsoleteHost("sendfile\\.to\/\\w+","//a[contains(@href,'sendfile.to')]");
  5032. addObsoleteHost("superfastfile\\.com\/\\w+","//a[contains(@href,'superfastfile.com')]");
  5033. addObsoleteHost("quickyshare\\.com\/\\w+","//a[contains(@href,'quickyshare.com/')]");
  5034. addObsoleteHost("duckload\\.com\/(?:d|play)","//a[contains(@href,'duckload.com')]");
  5035. addObsoleteHost("uploadstore\\.net\/\\w+","//a[contains(@href,'uploadstore.net')]");
  5036. addObsoleteHost("meinupload\\.com\/dl\/\\d+","//a[contains(@href,'meinupload.com/dl')]");
  5037. addObsoleteHost("dualshare\\.com\/\\w+","//a[contains(@href,'dualshare.com')]");
  5038. addObsoleteHost("2xupload\\.(?:to|de)\/file\/\\w+","//a[contains(@href,'2xupload.to') or contains(@href,'2xupload.de')]");
  5039. addObsoleteHost("oxedion\\.com\/index\\.php\/download\/\\w+","//a[contains(@href,'oxedion.com/index')]");
  5040. addObsoleteHost("uploadline\\.com\/\\d+","//a[contains(@href,'uploadline.com')]");
  5041. addObsoleteHost("dll\\.bz\/file\/\\d+","//a[contains(@href,'dll.bz/file')]");
  5042. addObsoleteHost("movieshare\\.in\/\\w+","//a[contains(@href,'movieshare.in')]");
  5043. addObsoleteHost("milledrive\\.com\/files\/\\d+","//a[contains(@href,'milledrive.com')]");
  5044. addObsoleteHost("quickupload\\.net\/\\w+","//a[contains(@href,'quickupload.net')]");
  5045. addObsoleteHost("safelink\\.in\/\\w+","//a[contains(@href,'safelink.in')]");
  5046. addObsoleteHost("pyramidfiles\\.com\/\\w+","//a[contains(@href,'pyramidfiles.com/')]");
  5047. addObsoleteHost("(?:cloudnator|shragle)\\.com\/files","//a[contains(@href,'cloudnator.com/files') or contains(@href,'shragle.com/files')]");
  5048. addObsoleteHost("batshare\\.com\/\\w+","//a[contains(@href,'batshare.com/')]");
  5049. addObsoleteHost("bitroad\\.net\/download","//a[contains(@href,'bitroad.net/download')]");
  5050. addObsoleteHost("metadivx\\.com\/\\w+","//a[contains(@href,'metadivx.com')]");
  5051. addObsoleteHost("filegaze\\.com\/\\w+","//a[contains(@href,'filegaze.com/')]");
  5052. addObsoleteHost("bulletupload\\.com\/\\w+","//a[contains(@href,'bulletupload.com/')]");
  5053. addObsoleteHost("sharefilehost\\.com\/\\w+","//a[contains(@href,'sharefilehost.com/')]");
  5054. addObsoleteHost("fireuploads\\.net\/\\w+","//a[contains(@href,'fireuploads.net/')]");
  5055. addObsoleteHost("divxlink\\.com\/\\w+","//a[contains(@href,'divxlink.com/')]");
  5056. addObsoleteHost("bzlink\\.us\/\\w+","//a[contains(@href,'bzlink.us/')]");
  5057. addObsoleteHost("filetechnology\\.com\/\\w+","//a[contains(@href,'filetechnology.com/')]");
  5058. addObsoleteHost("filecosy\\.com\/\\w+","//a[contains(@href,'filecosy.com/')]");
  5059. addObsoleteHost("fileserver\\.cc\/\\w+","//a[contains(@href,'fileserver.cc/')]");
  5060. addObsoleteHost("shafiles\\.me\/\\w+","//a[contains(@href,'shafiles.me/')]");
  5061. addObsoleteHost("xfileshare\\.eu\/\\w+","//a[contains(@href,'xfileshare.eu/')]");
  5062. addObsoleteHost("uploadboost\\.com\/\\w+","//a[contains(@href,'uploadboost.com/')]");
  5063. addObsoleteHost("uploadoz\\.com\/\\w+","//a[contains(@href,'uploadoz.com/')]");
  5064. addObsoleteHost("ihostia\\.com\/\\w+","//a[contains(@href,'ihostia.com/')]");
  5065. addObsoleteHost("shareupload\\.com\/\\w+","//a[contains(@href,'shareupload.com/')]");
  5066. addObsoleteHost("ovfile\\.com\/\\w+","//a[contains(@href,'ovfile.com/')]");
  5067. addObsoleteHost("stahuj\\.to\/\\w+","//a[contains(@href,'stahuj.to/')]");
  5068. addObsoleteHost("gigfiles\\.net\/\\w+","//a[contains(@href,'gigfiles.net/')]");
  5069. addObsoleteHost("vidhog\\.com\/\\w+","//a[contains(@href,'vidhog.com/')]");
  5070. addObsoleteHost("filelaser\\.com\/\\w+","//a[contains(@href,'filelaser.com/')]");
  5071. addObsoleteHost("holderfile\\.com\/\\w+","//a[contains(@href,'holderfile.com/')]");
  5072. addObsoleteHost("fileduct\\.(?:com|net)\/\\w+","//a[contains(@href,'fileduct.com/') or contains(@href,'fileduct.net')]");
  5073. addObsoleteHost("filefat\\.com\/\\w+","//a[contains(@href,'filefat.com/')]");
  5074. addObsoleteHost("restfile\\.com\/\\w+","//a[contains(@href,'restfile.com/')]");
  5075. addObsoleteHost("filemashine\\.com\\/download\/\\w+","//a[contains(@href,'filemashine.com/download')]");
  5076. addObsoleteHost("cloudnxt\\.net\/\\w+","//a[contains(@href,'cloudnxt.net/')]");
  5077. addObsoleteHost("uploadrack\\.com\/\\w+","//a[contains(@href,'uploadrack.com')]");
  5078. addObsoleteHost("teradepot\\.com\/\\w+","//a[contains(@href,'teradepot.com')]");
  5079. addObsoleteHost("dataup\\.to\/\\d+\/","//a[contains(@href,'dataup.to')]");
  5080. addObsoleteHost("upit\\.to\/file:\\d+","//a[contains(@href,'upit.to/file')]");
  5081. addObsoleteHost("badongo\\.(?:com|net)\/(?:\\w\\w\/|)(?:vid|cfile|file|pt)\/\\w+","//a[contains(@href,'badongo.com') or contains(@href,'badongo.net')]");
  5082. addObsoleteHost("driveway\\.com\/\\w+","//a[contains(@href,'driveway.com')]");
  5083. addObsoleteHost("eatlime\\.com\/download","//a[contains(@href,'eatlime.com/download')]");
  5084. addObsoleteHost("a2zuploads\\.com\/id\\w+","//a[contains(@href,'a2zuploads.com/id')]");
  5085. addObsoleteHost("friendlyfiles\\.net\/download\/\\w+\/","//a[contains(@href,'friendlyfiles.net/download')]");
  5086. addObsoleteHost("flyfile\\.us\/\\w+","//a[contains(@href,'flyfile.us')]");
  5087. addObsoleteHost("speedyshare\\.com\/\\w+","//a[contains(@href,'speedyshare.com')]");
  5088. addObsoleteHost("brontofile\\.com\/download","//a[contains(@href,'brontofile.com/download')]");
  5089. addObsoleteHost("uploadspace\\.eu\/\\w+","//a[contains(@href,'uploadspace.eu')]");
  5090. addObsoleteHost("fooget\\.com\/\\w+","//a[contains(@href,'fooget.com/')]");
  5091. addObsoleteHost("file-bit.net\/\\w+","//a[contains(@href,'file-bit.net/')]");
  5092. addObsoleteHost("keepfile\\.com\/\\w+","//a[contains(@href,'http://keepfile.com')]");
  5093. addObsoleteHost("piggyshare\\.com\/file\/\\w+","//a[contains(@href,'piggyshare.com')]");
  5094. addObsoleteHost("filecrown\\.com\/\\w+","//a[contains(@href,'filecrown.com')]");
  5095. addObsoleteHost("6giga\\.com\/\\w+","//a[contains(@href,'6giga.com')]");
  5096. addObsoleteHost("uploadjockey\\.com\/download\/\\w+","//a[contains(@href,'uploadjockey.com/download')]");
  5097. addObsoleteHost("bluehost\\.to\/dl=\\w+","//a[contains(@href,'bluehost.to')]");
  5098. addObsoleteHost("coolshare\\.cz\/stahnout\/\\w+","//a[contains(@href,'coolshare.cz/stahnout')]");
  5099. addObsoleteHost("filegu\\.ru\/f\/\\w+","//a[contains(@href,'filegu.ru/f')]");
  5100. addObsoleteHost("filebase\\.to\/files\/\\d+\/","//a[contains(@href,'filebase.to/files')]");
  5101. addObsoleteHost("kickload\\.com\/(?:file|get)\/","//a[contains(@href,'kickload.com/file') or contains(@href,'kickload.com/get')]");
  5102. addObsoleteHost("up-file\\.com\/files\/download\/\\w+\/","//a[contains(@href,'up-file.com/download')]");
  5103. addObsoleteHost("ezyfile\\.net\/\\w+","//a[contains(@href,'ezyfile.net/')]");
  5104. addObsoleteHost("k2files\\.com\/files","//a[contains(@href,'k2files.com/files')]");
  5105. addObsoleteHost("aiotool\\.net\/\\w+","//a[contains(@href,'aiotool.net/')]");
  5106. addObsoleteHost("xvideos\\.com\/files\/\\d+\/\\w+","//a[contains(@href,'xvideos.com/files')]");
  5107. addObsoleteHost("filebling\\.com\/dl\/\\d+\/\\d+\/\\w+","//a[contains(@href,'filebling.com/dl')]");
  5108. addObsoleteHost("loaded\\.it\/divx\/\\w+","//a[contains(@href,'loaded.it/divx')]");
  5109. addObsoleteHost("uploadcell\\.com\/\\w+\/\\w+","//a[contains(@href,'uploadcell.com')]");
  5110. addObsoleteHost("jakfile\\.com\/\\w+","//a[contains(@href,'jakfile.com/')]");
  5111. addObsoleteHost("uploadshare\\.cz\/download\/\\w+\/\\w+","//a[contains(@href,'uploadshare.cz/download')]");
  5112. addObsoleteHost("mangoshare\\.com\/\\w+","//a[contains(@href,'mangoshare.com')]");
  5113. addObsoleteHost("ugotfile\\.com\/file\/\\d+\/\\w+","//a[contains(@href,'ugotfile.com/file')]");
  5114. addObsoleteHost("filestab\\.com\/\\w+","//a[contains(@href,'filestab.com')]");
  5115. addObsoleteHost("dotavi\\.com\/\\w+\/.","//a[contains(@href,'dotavi.com/')]");
  5116. addObsoleteHost("crazyupload\\.com\/\\w+","//a[contains(@href,'crazyupload.com')]");
  5117. addObsoleteHost("gaiafile\\.com\/\\w+","//a[contains(@href,'gaiafile.com')]");
  5118. addObsoleteHost("sharejunky\\.com\/\\w+","//a[contains(@href,'sharejunky.com')]");
  5119. addObsoleteHost("fileho\\.com\/download\/\\d+","//a[contains(@href,'fileho.com/download')]");
  5120. addObsoleteHost("(?:bigandfree|BigAndFree)\\.com\/\\d+","//a[contains(@href,'bigandfree.com') or contains(@href,'BigAndFree.com')]");
  5121. addObsoleteHost("bigfile\\.in\/\\w+","//a[contains(@href,'bigfile.in')]");
  5122. addObsoleteHost("bigshare\\.eu\/download\\.php\\?id=","//a[contains(@href,'bigshare.eu/download.php')]");
  5123. addObsoleteHost("dahosting\\.org\/dl\/\\w+","//a[contains(@href,'dahosting.org/dl')]");
  5124. addObsoleteHost("digisofts\\.net\/\\w+","//a[contains(@href,'digisofts.net')]");
  5125. addObsoleteHost("file4save\\.com\/\\w+\/\\w+","//a[contains(@href,'file4save.com')]");
  5126. addObsoleteHost("filereactor\\.com\/\\w+","//a[contains(@href,'filereactor.com/')]");
  5127. addObsoleteHost("filechip\\.com\/\\w+","//a[contains(@href,'filechip.com')]");
  5128. addObsoleteHost("filescloud\\.com\/\\w+\/\\w+","//a[contains(@href,'filescloud.com')]");
  5129. addObsoleteHost("saveqube\\.com\/getfile\/\\w+","//a[contains(@href,'saveqube.com/getfile')]");
  5130. addObsoleteHost("www2\\.turboshare\\.de\/v\/\\d+","//a[contains(@href,'turboshare.de/v')]");
  5131. addObsoleteHost("z-upload\\.com\/\\w+","//a[contains(@href,'z-upload.com')]");
  5132. addObsoleteHost("youshare\\.com\/view\\.php","//a[contains(@href,'youshare.com/view')]");
  5133. addObsoleteHost("jiffyupload\\.com\/\\w+","//a[contains(@href,'jiffyupload.com')]");
  5134. addObsoleteHost("gigeshare\\.com\/preview\/\\w+","//a[contains(@href,'gigeshare.com')]");
  5135. addObsoleteHost("datenklo\\.net\/dl","//a[contains(@href,'datenklo.net')]");
  5136. addObsoleteHost("upload\\.dj\/download\\.php\\?id=\\w+","//a[contains(@href,'upload.dj/download.php')]");
  5137. addObsoleteHost("loadfiles\\.in\/\\w+\/","//a[contains(@href,'loadfiles.in')]");
  5138. addObsoleteHost("upit\\.to\/file:\\w+\/","//a[contains(@href,'upit.to/file')]");
  5139. addObsoleteHost("zshare\\.net\/(?:download|video|audio)\/\\w+","//a[contains(@href,'zshare.net/')]");
  5140. addObsoleteHost("refile\\.net\/f\/\\?\\w+","//a[contains(@href,'refile.net/f/')]");
  5141. addObsoleteHost("dsfileshare\\.com\/download","//a[contains(@href,'dsfileshare.com/download')]");
  5142. addObsoleteHost("sharesimple\\.net\/\\w{2}\/download","//a[contains(@href,'sharesimple.net')]");
  5143. addObsoleteHost("(?:s\\d+\\.|)4files\\.net\/\\d+","//a[contains(@href,'4files.net')]");
  5144. addObsoleteHost("odsiebie\\.com\/pokaz\/\\d+","//a[contains(@href,'odsiebie.com/pokaz')]");
  5145. addObsoleteHost("filenavi\\.com\/direct\/\\w+","//a[contains(@href,'filenavi.com/direct')]");
  5146. addObsoleteHost("3oof\\.com\/\\w+","//a[contains(@href,'3oof.com/')]");
  5147. addObsoleteHost("meshwaar\\.com\/\\w+","//a[contains(@href,'meshwaar.com')]");
  5148. addObsoleteHost("maxupload\\.com\/files\/\\w+","//a[contains(@href,'maxupload.com/files')]");
  5149. addObsoleteHost("share\\.cx\/videos\/\\d+","//a[contains(@href,'share.cx/videos')]");
  5150. addObsoleteHost("atserver\\.eu\/(?:\\w{2}\/|)download\/\\d+","//a[contains(@href,'atserver.eu')]");
  5151. addObsoleteHost("file2upload\\.net\/download\/\\d+","//a[contains(@href,'file2upload.net/download')]");
  5152. addObsoleteHost("filebling\\.com\/\\w+","//a[contains(@href,'filebling.com')]");
  5153. addObsoleteHost("turboshare\\.(?:eu|com)\/files","//a[contains(@href,'turboshare.') and contains(@href,'/files')]");
  5154. addObsoleteHost("rarhost\\.com\/download","//a[contains(@href,'rarhost.com/download')]");
  5155. addObsoleteHost("isharehd\\.com\/\\w+","//a[contains(@href,'isharehd.com')]");
  5156. addObsoleteHost("datenklo\\.net\/file\\.php\\?id=\\w+","//a[contains(@href,'datenklo.net/file.php')]");
  5157. addObsoleteHost("file2share\\.biz\/download\\.php\\?id=\\w+","//a[contains(@href,'file2share.biz/download.php')]");
  5158. addObsoleteHost("savefiles\\.net\/d\/\\w+\\.html","//a[contains(@href,'savefiles.net/d')]");
  5159. addObsoleteHost("bestsharing\\.com\/files\/\\w+","//a[contains(@href,'bestsharing.com/files')]");
  5160. addObsoleteHost("filecache\\.de\/\\d+","//a[contains(@href,'filecache.de/')]");
  5161. addObsoleteHost("i741\\.com\/files\/\\w+","//a[contains(@href,'i741.com/files')]");
  5162. addObsoleteHost("dataup\\.de\/\\d+","//a[contains(@href,'dataup.de')]");
  5163. addObsoleteHost("fofly\\.com\/\\w+","//a[contains(@href,'fofly.com')]");
  5164. addObsoleteHost("shareonall\\.com\/\\w+","//a[contains(@href,'shareonall.com')]");
  5165. addObsoleteHost("sexuploader\\.com\/(?:|..\/)\\?[d|v]=\\w{8}","//a[contains(@href,'sexuploader.com')]");
  5166. 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')]");
  5167. addObsoleteHost("uploadhyper\\.com\/file\/","//a[contains(@href,'uploadhyper.com')]");
  5168. addObsoleteHost("filespawn\\.com\/file\/","//a[contains(@href,'filespawn.com')]");
  5169. addObsoleteHost("caizzii\\.com\/(?:download|\\?file=)","//a[contains(@href,'caizzii.com')]");
  5170. addObsoleteHost("volnyweb\\.cz\/files\/get\/[\\w-_]+","//a[contains(@href,'volnyweb.cz/files')]");
  5171. addObsoleteHost("gotupload\\.com\/\\w+","//a[contains(@href,'gotupload.com/')]");
  5172. addObsoleteHost("mooload\\.com\/new\/file\\.php\\?file=files\/\\d+\/\\d+","//a[contains(@href,'mooload.com/new/file')]");
  5173. addObsoleteHost("z\\d+\\.zupload\\.com\/download\\.php\\?file=getfile&filepath=\\d+","//a[contains(@href,'zupload.com/download')]");
  5174. addObsoleteHost("mytempdir\\.com\/\\d+","//a[contains(@href,'mytempdir.com/')]");
  5175. addObsoleteHost("usershare\\.net\/\\w+","//a[contains(@href,'usershare.net/')]");
  5176. addObsoleteHost("qshare\\.com\/get\/\\d+\/.","//a[contains(@href,'qshare.com/get')]");
  5177. addObsoleteHost("filescash\\.net\/file\/\\d+","//a[contains(@href,'filescash.net/file')]");
  5178. addObsoleteHost("metahyper\\.com\/\\w+","//a[contains(@href,'metahyper.com/')]");
  5179. addObsoleteHost("combozip\\.com\/\\w+","//a[contains(@href,'combozip.com/')]");
  5180. addObsoleteHost("anonstream\\.com\/get_\\w+","//a[contains(@href,'anonstream.com/get_')]");
  5181. addObsoleteHost("x7\\.to\/\\w+","//a[contains(@href,'x7.to/')]");
  5182. addObsoleteHost("uploadbox\\.com\/files\/\\w+","//a[contains(@href,'uploadbox.com/files')]");
  5183. addObsoleteHost("(?:flyupload\\.)?(?:enterupload|flyupload)\\.com\/[\\?\\w]+","//a[contains(@href,'enterupload.com/') or contains(@href,'flyupload.com/')]");
  5184. addObsoleteHost("filepoint\\.de\/dl\/\\w+","//a[contains(@href,'filepoint.de/dl')]");
  5185. addObsoleteHost("icushare\\.com\/\\w+","//a[contains(@href,'icushare.com/')]");
  5186. addObsoleteHost("oron\\.com\/\\w+","//a[contains(@href,'oron.com/')]");
  5187. addObsoleteHost("mystream\\.to\/file\\-\\d+","//a[contains(@href,'mystream.to/file')]");
  5188. addObsoleteHost("x-fs\\.com\/download\\.php\\?id=\\w+","//a[contains(@href,'x-fs.com/download')]");
  5189. addObsoleteHost("srapid\\.eu\/\\w+","//a[contains(@href,'srapid.eu/')]");
  5190. addObsoleteHost("shareshared\\.com\/\\w+","//a[contains(@href,'shareshared.com/')]");
  5191. addObsoleteHost("sosame\\.cz\/\\w+","//a[contains(@href,'sosame.cz/')]");
  5192. addObsoleteHost("s\\d+\\.filesdump\\.com\/file\/\\w+","//a[contains(@href,'filesdump.com/file')]");
  5193. addObsoleteHost("2-klicks\\.de\/\\?d=\\w+","//a[contains(@href,'2-klicks.de/?d=')]");
  5194. addObsoleteHost("silofiles\\.com\/file\/\\d+","//a[contains(@href,'silofiles.com/file')]");
  5195. addObsoleteHost("upfile\\.in\/\\w+","//a[contains(@href,'upfile.in/')]");
  5196. addObsoleteHost("filehook\\.com\/\\w+","//a[contains(@href,'filehook.com/')]");
  5197. addObsoleteHost("mojofile\\.com\/\\w+","//a[contains(@href,'mojofile.com/')]");
  5198. addObsoleteHost("cloudcache\\.cc\/\\w+","//a[contains(@href,'cloudcache.cc/')]");
  5199. addObsoleteHost("1hostclick\\.com\/\\w+","//a[contains(@href,'1hostclick.com/')]");
  5200. addObsoleteHost("4bytez\\.com\/\\w+","//a[contains(@href,'4bytez.com/')]");
  5201. addObsoleteHost("uploadking\\.com\/\\w+","//a[contains(@href,'uploadking.com/')]");
  5202. addObsoleteHost("nahraj\\.cz\/(?:content|down)\/\\w+","//a[contains(@href,'nahraj.cz/')]");
  5203. addObsoleteHost("megarapid\\.eu\/files\/\\d+","//a[contains(@href,'megarapid.eu/files')]");
  5204. addObsoleteHost("(?:fileserve|uploadstation)\\.com\/(?:file|list)\/\\w+","//a[contains(@href,'fileserve.com/') or contains(@href,'uploadstation.com/')]");
  5205. addObsoleteHost("uploadhere\\.com\/\\w+","//a[contains(@href,'uploadhere.com/')]");
  5206. addObsoleteHost("dualshare\\.com\/\\w+","//a[contains(@href,'dualshare.com/')]");
  5207. addObsoleteHost("yourfilehost\\.com\/media","//a[contains(@href,'yourfilehost.com/media')]");
  5208. addObsoleteHost("ftp2share\\.com\/file\/\\w+","//a[contains(@href,'ftp2share.com/file')]");
  5209. addObsoleteHost("storeandserve\\.com\/download\/\\d+","//a[contains(@href,'storeandserve.com/download')]");
  5210. addObsoleteHost("mountfile\\.com\/file(?:\/\\w+){2}","//a[contains(@href,'mountfile.com/file')]");
  5211. addObsoleteHost("save\\.am\/files\/\\w+","//a[contains(@href,'save.am/files')]");
  5212. addObsoleteHost("transitfiles\\.com\/dl\/\\w+","//a[contains(@href,'transitfiles.com/dl')]");
  5213. addObsoleteHost("smartuploader\\.com\/file\\.php\\?f=\\d+","//a[contains(@href,'smartuploader.com/file.php?=')]");
  5214. addObsoleteHost("skipfile\\.com\/\\w+","//a[contains(@href,'skipfile.com/')]");
  5215. addObsoleteHost("stahnu\\.to\/[\\w\\?]+","//a[contains(@href,'stahnu.to/')]");
  5216. addObsoleteHost("flyshare\.cz\/(?:stahni\/|)\\d+","//a[contains(@href,'flyshare.cz/')]");
  5217. addObsoleteHost("(?:ddlani\\.me|ddlanime\\.com)\/\\w+","//a[contains(@href,'ddlani.me/') or contains(@href,'ddlanime.com/')]");
  5218. addObsoleteHost("loadly\\.com\/\\w+","//a[contains(@href,'loadly.com/')]");
  5219. addObsoleteHost("groovefile\\.com\/\\w+","//a[contains(@href,'groovefile.com/')]");
  5220. addObsoleteHost("filezlot\\.com\/\\w+","//a[contains(@href,'filezlot.com/')]");
  5221. addObsoleteHost("shareator\\.(?:net|com)\/\\w+","//a[contains(@href,'shareator.')]");
  5222. addObsoleteHost("yabadaba\\.ru\/files\/","//a[contains(@href,'yabadaba.ru/files/')]");
  5223. addObsoleteHost("rapidhide\\.com\/download\\.php\\?file=\\w+","//a[contains(@href,'rapidhide.com/download.php')]");
  5224. addObsoleteHost("filejungle\\.com\/[fl]\/\\w+","//a[contains(@href,'filejungle.com/')]");
  5225. addObsoleteHost("kewlshare\\.com\/dl\/\\d+","//a[contains(@href,'kewlshare.com/dl')]");
  5226. addObsoleteHost("petandrive\\.com\/file\/\\w+","//a[contains(@href,'petandrive.com/file')]");
  5227. addObsoleteHost("onionshare\\.com\/\\w+","//a[contains(@href,'onionshare.com/')]");
  5228. addObsoleteHost("rapidable\\.com\/\\w+\/download\\.php\\?id=","//a[contains(@href,'rapidable.com/')]");
  5229. addObsoleteHost("filesdump\\.com\/file\/\\w+\/\\d+","//a[contains(@href,'filesdump.com/file')]");
  5230. addObsoleteHost("file2box\\.(?:net|com)\/\\w+","//a[contains(@href,'file2box.')]");
  5231. addObsoleteHost("(?:filesonic|sharingmatrix|wupload)(?:\\.\\w+){1,2}\/(?:file|folder)\/\\w+","//a[contains(@href,'filesonic.') or contains(@href,'sharingmatrix.com') or contains(@href,'wupload.')]");
  5232. addObsoleteHost("wizzupload\\.com\/\\w+","//a[contains(@href,'wizzupload.com/')]");
  5233. addObsoleteHost("bloggerarticles\\.com\/\\w+","//a[contains(@href,'bloggerarticles.com/')]");
  5234. addObsoleteHost("mojedata\\.sk/","//a[contains(@href,'mojedata.sk/')]");
  5235. addObsoleteHost("sharpfile\\.com\/\\w+","//a[contains(@href,'sharpfile.com/')]");
  5236. addObsoleteHost("upgrand\\.com\/\\w+","//a[contains(@href,'upgrand.com/')]");
  5237. addObsoleteHost("nasdilej\\.cz\/\\w+","//a[contains(@href,'nasdilej.cz/')]");
  5238. addObsoleteHost("mediatack\\.cz\/stahuj/\\w+","//a[contains(@href,'mediatack.cz/stahuj/')]");
  5239. addObsoleteHost("share-it\\.to\/file/\\w+","//a[contains(@href,'share-it.to/file/')]");
  5240. addObsoleteHost("primeupload\\.com\/file/\\w+","//a[contains(@href,'primeupload.com/file/')]");
  5241. addObsoleteHost("(?:uploads\\.glumbo|glumbouploads)\\.com\/\\w+","//a[contains(@href,'uploads.glumbo.com') or contains(@href,'glumbouploads.com')]");
  5242. addObsoleteHost("filebeer\\.info\/\\w+","//a[contains(@href,'filebeer.info/')]");
  5243. addObsoleteHost("baberepublic\\.com\/link\/\\w+","//a[contains(@href,'baberepublic.com/link/')]");
  5244. addObsoleteHost("xtu\\.me\/\\w+","//a[contains(@href,'xtu.me/')]");
  5245. addObsoleteHost("sharebase\\.de\/files\/\\w+","//a[contains(@href,'sharebase.de/files/')]");
  5246. addObsoleteHost("filerobo\\.com\/\\w+","//a[contains(@href,'filerobo.com/')]");
  5247. addObsoleteHost("filevelocity\\.com\/\\w+","//a[contains(@href,'filevelocity.com/')]");
  5248. addObsoleteHost("filezpro\\.com\/\\w+","//a[contains(@href,'filezpro.com/')]");
  5249. addObsoleteHost("file4sharing\\.com\/\\w+","//a[contains(@href,'file4sharing.com/')]");
  5250. addObsoleteHost("cing\\.be\/\\w+","//a[contains(@href,'cing.be/')]");
  5251. addObsoleteHost("ufile\\.eu\/\\w+","//a[contains(@href,'ufile.eu/')]");
  5252. addObsoleteHost("pigsonic\\.com\/\\w+","//a[contains(@href,'pigsonic.com/')]");
  5253. addObsoleteHost("fileupped\\.com\/\\w+","//a[contains(@href,'fileupped.com/')]");
  5254. addObsoleteHost("sharerun\\.com\/\\w+","//a[contains(@href,'sharerun.com/')]");
  5255. addObsoleteHost("rapidslnare\\.com\/\\w+","//a[contains(@href,'rapidslnare.com/')]");
  5256. addObsoleteHost("monsteruploads\\.eu\/\\w+","//a[contains(@href,'monsteruploads.eu/')]");
  5257. addObsoleteHost("b9bb\\.com\/\\w+","//a[contains(@href,'b9bb.com/')]");
  5258. addObsoleteHost("jamber\\.info\/\\w+","//a[contains(@href,'jamber.info/')]");
  5259. addObsoleteHost("(?:megaftp|MegaFTP)\\.com\/\\w+","//a[contains(@href,'megaftp.com/') or contains(@href,'MegaFTP.com/')]");
  5260. addObsoleteHost("desiupload\\.net\/\\?d=\\w+","//a[contains(@href,'desiupload.net/')]");
  5261. addObsoleteHost("file27\\.com\/\\w+","//a[contains(@href,'file27.com/')]");
  5262. addObsoleteHost("yastorage\\.com\/\\w+","//a[contains(@href,'yastorage.com/')]");
  5263. addObsoleteHost("filehost\\.ws\/\\w+","//a[contains(@href,'filehost.ws/')]");
  5264. addObsoleteHost("copyload\\.com\/\\w+","//a[contains(@href,'copyload.com/')]");
  5265. addObsoleteHost("venusfile\\.com\/\\w+","//a[contains(@href,'venusfile.com/')]");
  5266. addObsoleteHost("aieshare\\.com\/\\w+","//a[contains(@href,'aieshare.com/')]");
  5267. addObsoleteHost("fileza\\.net\/\\w+","//a[contains(@href,'fileza.net/')]");
  5268. addObsoleteHost("filerose\\.com\/\\w+","//a[contains(@href,'filerose.com/')]");
  5269. addObsoleteHost("squillion\\.com\/\\w+","//a[contains(@href,'squillion.com/')]");
  5270. addObsoleteHost("fileprohost\\.com\/\\w+","//a[contains(@href,'fileprohost.com/')]");
  5271. addObsoleteHost("bitbonus\\.com\/download\/\\w+","//a[contains(@href,'bitbonus.com/')]");
  5272. addObsoleteHost("warserver\\.cz\/\\w+","//a[contains(@href,'warserver.cz/')]");
  5273. addObsoleteHost("uload\\.to\/\\w+","//a[contains(@href,'uload.to/')]");
  5274. addObsoleteHost("sharedbit\\.net\/\\w+","//a[contains(@href,'sharedbit.net/')]");
  5275. addObsoleteHost("megaload\\.it\/\\w+","//a[contains(@href,'megaload.it/')]");
  5276. addObsoleteHost("filewinds\\.com\/\\w+","//a[contains(@href,'filewinds.com/')]");
  5277. addObsoleteHost("uploadcore\\.com\/\\w+","//a[contains(@href,'uploadcore.com/')]");
  5278. addObsoleteHost("syfiles\\.com\/\\w+","//a[contains(@href,'syfiles.com/')]");
  5279. addObsoleteHost("eyesfile\\.com\/\\w+","//a[contains(@href,'eyesfile.com/')]");
  5280. addObsoleteHost("hotfile\\.com\/\\w+","//a[contains(@href,'hotfile.com/')]");
  5281. addObsoleteHost("superupl\\.com\/\\w+","//a[contains(@href,'superupl.com/')]");
  5282. addObsoleteHost("oteupload\\.com\/\\w+","//a[contains(@href,'oteupload.com/')]");
  5283. addObsoleteHost("henchfile\\.com\/\\w+","//a[contains(@href,'henchfile.com/')]");
  5284. addObsoleteHost("HenchFile\\.com\/\\w+","//a[contains(@href,'HenchFile.com/')]");
  5285. addObsoleteHost("filegag\\.com\/\\w+","//a[contains(@href,'filegag.com/')]");
  5286. addObsoleteHost("filedefend\\.com\/\\w+","//a[contains(@href,'filedefend.com/')]");
  5287. addObsoleteHost("hotfiles\\.ws\/\\w+","//a[contains(@href,'hotfiles.ws/')]");
  5288. addObsoleteHost("share-rapid\\.com\/\\w+","//a[contains(@href,'share-rapid.com/')]");
  5289. //addObsoleteHost("sharerapid\\.cz\/\\w+","//a[contains(@href,'sharerapid.cz/')]");
  5290. addObsoleteHost("rapids\\.cz\/\\w+","//a[contains(@href,'rapids.cz/')]");
  5291. addObsoleteHost("share-credit\\.cz\/\\w+","//a[contains(@href,'share-credit.cz/')]");
  5292. addObsoleteHost("share-central\\.cz\/\\w+","//a[contains(@href,'share-central.cz/')]");
  5293. addObsoleteHost("share-ms\\.cz\/\\w+","//a[contains(@href,'share-ms.cz/')]");
  5294. addObsoleteHost("share-net\\.cz\/\\w+","//a[contains(@href,'share-net.cz/')]");
  5295. addObsoleteHost("srapid\\.cz\/\\w+","//a[contains(@href,'srapid.cz/')]");
  5296. addObsoleteHost("share-rapid\\.cz\/\\w+","//a[contains(@href,'share-rapid.cz/')]");
  5297. addObsoleteHost("wooupload\\.com\/\\w+","//a[contains(@href,'wooupload.com/')]");
  5298. addObsoleteHost("megabitshare\\.com\/\\w+","//a[contains(@href,'megabitshare.com/')]");
  5299. addObsoleteHost("uploking\\.com\/\\w+","//a[contains(@href,'uploking.com/')]");
  5300. addObsoleteHost("esnips\\.com\/\\w+","//a[contains(@href,'esnips.com/')]");
  5301. addObsoleteHost("uplly\\.com\/\\w+","//a[contains(@href,'uplly.com/')]");
  5302. addObsoleteHost("ufox\\.com\/\\w+","//a[contains(@href,'ufox.com/')]");
  5303. addObsoleteHost("clz\\.to\/\\w+","//a[contains(@href,'clz.to/')]");
  5304. addObsoleteHost("cloudzer\\.net\/\\w+","//a[contains(@href,'cloudzer.net/')]");
  5305. addObsoleteHost("cloudzer\\.com\/\\w+","//a[contains(@href,'cloudzer.com/')]");
  5306. addObsoleteHost("extabit\\.com\/\\w+","//a[contains(@href,'extabit.com/')]");
  5307. addObsoleteHost("uploadwaste\\.com\/\\w+","//a[contains(@href,'uploadwaste.com/')]");
  5308. addObsoleteHost("247upload\\.com\/\\w+","//a[contains(@href,'uploadwaste.com/')]");
  5309. addObsoleteHost("2download\\.de\/\\w+","//a[contains(@href,'2download.de/')]");
  5310. addObsoleteHost("4fastfile\\.com\/\\w+","//a[contains(@href,'4fastfile.com/')]");
  5311. addObsoleteHost("asixfiles\\.com\/\\w+","//a[contains(@href,'asixfiles.com/')]");
  5312. addObsoleteHost("berofile\\.com\/\\w+","//a[contains(@href,'berofile.com/')]");
  5313. addObsoleteHost("bigupload\\.com\/\\w+","//a[contains(@href,'bigupload.com/')]");
  5314. addObsoleteHost("cepzo\\.com\/\\w+","//a[contains(@href,'cepzo.com/')]");
  5315. addObsoleteHost("czshare\\.com\/\\w+","//a[contains(@href,'czshare.com/')]");
  5316. addObsoleteHost("clouds\\.to\/\\w+","//a[contains(@href,'clouds.to/')]");
  5317. addObsoleteHost("cobrashare\\.sk\/\\w+","//a[contains(@href,'cobrashare.sk/')]");
  5318. addObsoleteHost("coraldrive\\.net\/\\w+","//a[contains(@href,'coraldrive.net/')]");
  5319. addObsoleteHost("cyberlocker\\.ch\/\\w+","//a[contains(@href,'cyberlocker.ch/')]");
  5320. addObsoleteHost("darkport\\.org\/\\w+","//a[contains(@href,'darkport.org/')]");
  5321. addObsoleteHost("dark-uploads\\.com\/\\w+","//a[contains(@href,'dark-uploads.com/')]");
  5322. addObsoleteHost("davvas\\.com\/\\w+","//a[contains(@href,'davvas.com/')]");
  5323. addObsoleteHost("enigmashare\\.com\/\\w+","//a[contains(@href,'enigmashare.com/')]");
  5324. addObsoleteHost("erofly\\.cz\/\\w+","//a[contains(@href,'erofly.cz/')]");
  5325. addObsoleteHost("fastsonic\\.net\/\\w+","//a[contains(@href,'fastsonic.net/')]");
  5326. addObsoleteHost("filebox\\.com\/\\w+","//a[contains(@href,'filebox.com/')]");
  5327. addObsoleteHost("filecity\\.net\/\\w+","//a[contains(@href,'filecity.net/')]");
  5328. addObsoleteHost("filedap\\.com\/\\w+","//a[contains(@href,'filedap.com/')]");
  5329. addObsoleteHost("filedino\\.com\/\\w+","//a[contains(@href,'filedino.com/')]");
  5330. addObsoleteHost("filedownloads\\.org\/\\w+","//a[contains(@href,'filedownloads.org/')]");
  5331. addObsoleteHost("filefolks\\.com\/\\w+","//a[contains(@href,'filefolks.com/')]");
  5332. addObsoleteHost("fileking\\.co\/\\w+","//a[contains(@href,'fileking.co/')]");
  5333. addObsoleteHost("filemates\\.com\/\\w+","//a[contains(@href,'filemates.com/')]");
  5334. addObsoleteHost("files\\.to\/\\w+","//a[contains(@href,'files.to/')]");
  5335. addObsoleteHost("files2k\\.eu\/\\w+","//a[contains(@href,'files2k.eu/')]");
  5336. addObsoleteHost("filesector\\.cc\/\\w+","//a[contains(@href,'filesector.cc/')]");
  5337. addObsoleteHost("filesega\\.com\/\\w+","//a[contains(@href,'filesega.com/')]");
  5338. addObsoleteHost("filesend\\.net\/\\w+","//a[contains(@href,'filesend.net/')]");
  5339. addObsoleteHost("filestay\\.com\/\\w+","//a[contains(@href,'filestay.com/')]");
  5340. addObsoleteHost("filestrum\\.com\/\\w+","//a[contains(@href,'filestrum.com/')]");
  5341. addObsoleteHost("fileuplo\\.de\/\\w+","//a[contains(@href,'fileuplo.de/')]");
  5342. addObsoleteHost("fileupup\\.com\/\\w+","//a[contains(@href,'fileupup.com/')]");
  5343. addObsoleteHost("forunesia\\.com\/\\w+","//a[contains(@href,'forunesia.com/')]");
  5344. addObsoleteHost("freeuploads\\.fr\/\\w+","//a[contains(@href,'freeuploads.fr/')]");
  5345. addObsoleteHost("uploa\\.dk\/\\w+","//a[contains(@href,'uploa.dk/')]");
  5346. addObsoleteHost("getthebit\\.com\/\\w+","//a[contains(@href,'getthebit.com/')]");
  5347. addObsoleteHost("getzilla\\.net\/\\w+","//a[contains(@href,'getzilla.net/')]");
  5348. addObsoleteHost("goldfile\\.eu\/\\w+","//a[contains(@href,'goldfile.eu/')]");
  5349. addObsoleteHost("good\\.com\/\\w+","//a[contains(@href,'good.com/')]");
  5350. addObsoleteHost("grupload\\.com\/\\w+","//a[contains(@href,'grupload.com/')]");
  5351. addObsoleteHost("hellfile\\.com\/\\w+","//a[contains(@href,'hellfile.com/')]");
  5352. addObsoleteHost("hipfile\\.com\/\\w+","//a[contains(@href,'hipfile.com/')]");
  5353. addObsoleteHost("hitfile\\.com\/\\w+","//a[contains(@href,'hitfile.com/')]");
  5354. addObsoleteHost("hulkfile\\.eu\/\\w+","//a[contains(@href,'hulkfile.eu/')]");
  5355. addObsoleteHost("i-filez\\.com\/\\w+","//a[contains(@href,'i-filez.com/')]");
  5356. addObsoleteHost("ifile\\.ws\/\\w+","//a[contains(@href,'ifile.ws/')]");
  5357. addObsoleteHost("kupload\\.org\/\\w+","//a[contains(@href,'kupload.org/')]");
  5358. addObsoleteHost("duckfile\\.net\/\\w+","//a[contains(@href,'duckfile.net/')]");
  5359. addObsoleteHost("packupload\\.com\/\\w+","//a[contains(@href,'packupload.com/')]");
  5360. addObsoleteHost("terafile\\.com\/\\w+","//a[contains(@href,'terafile.com/')]");
  5361. addObsoleteHost("terafile\\.co\/\\w+","//a[contains(@href,'terafile.co/')]");
  5362. addObsoleteHost("fileom\\.com\/\\w+","//a[contains(@href,'fileom.com/')]");
  5363. addObsoleteHost("luckyshare\\.net\/\\w+","//a[contains(@href,'luckyshare.net/')]");
  5364. addObsoleteHost("lemuploads\\.com\/\\w+","//a[contains(@href,'lemuploads.com/')]");
  5365. addObsoleteHost("limelinx\\.com\/\\w+","//a[contains(@href,'limelinx.com/')]");
  5366. addObsoleteHost("maxshare\\.pl\/\\w+","//a[contains(@href,'maxshare.pl/')]");
  5367. addObsoleteHost("megarelease\\.org\/\\w+","//a[contains(@href,'megarelease.org/')]");
  5368. addObsoleteHost("megashare\\.com\/\\w+","//a[contains(@href,'megashare.com/')]");
  5369. addObsoleteHost("minus\\.com\/\\w+","//a[contains(@href,'minus.com/')]");
  5370. addObsoleteHost("mlfat4arab\\.com\/\\w+","//a[contains(@href,'mlfat4arab.com/')]");
  5371. addObsoleteHost("multishare\\.cz\/\\w+","//a[contains(@href,'multishare.cz/')]");
  5372. addObsoleteHost("nirafile\\.com\/\\w+","//a[contains(@href,'nirafile.com/')]");
  5373. addObsoleteHost("ok2upload\\.com\/\\w+","//a[contains(@href,'ok2upload.com/')]");
  5374. addObsoleteHost("peejeshare\\.com\/\\w+","//a[contains(@href,'peejeshare.com/')]");
  5375. addObsoleteHost("premiuns\\.org\/\\w+","//a[contains(@href,'premiuns.org/')]");
  5376. addObsoleteHost("przeklej\\.net\/\\w+","//a[contains(@href,'przeklej.net/')]");
  5377. addObsoleteHost("qkup\\.net\/\\w+","//a[contains(@href,'qkup.net/')]");
  5378. addObsoleteHost("rapidupload\\.sk\/\\w+","//a[contains(@href,'rapidupload.sk/')]");
  5379. addObsoleteHost("rockdizfile\\.com\/\\w+","//a[contains(@href,'rockdizfile.com/')]");
  5380. addObsoleteHost("rocketfile\\.net\/\\w+","//a[contains(@href,'rocketfile.net/')]");
  5381. addObsoleteHost("share-now\\.net\/\\w+","//a[contains(@href,'share-now.net/')]");
  5382. addObsoleteHost("share76\\.com\/\\w+","//a[contains(@href,'share76.com/')]");
  5383. addObsoleteHost("sharebees\\.com\/\\w+","//a[contains(@href,'sharebees.com/')]");
  5384. addObsoleteHost("sharefiles\\.co\/\\w+","//a[contains(@href,'sharefiles.co/')]");
  5385. addObsoleteHost("slingfile\\.com\/\\w+","//a[contains(@href,'slingfile.com/')]");
  5386. addObsoleteHost("sms4file\\.com\/\\w+","//a[contains(@href,'sms4file.com/')]");
  5387. addObsoleteHost("space4file\\.com\/\\w+","//a[contains(@href,'space4file.com/')]");
  5388. addObsoleteHost("tigershare\\.net\/\\w+","//a[contains(@href,'tigershare.net/')]");
  5389. addObsoleteHost("toucansharing\\.com\/\\w+","//a[contains(@href,'toucansharing.com/')]");
  5390. addObsoleteHost("ubuntuone\\.com\/\\w+","//a[contains(@href,'ubuntuone.com/')]");
  5391. addObsoleteHost("unextfiles\\.com\/\\w+","//a[contains(@href,'unextfiles.com/')]");
  5392. addObsoleteHost("upaj\\.pl\/\\w+","//a[contains(@href,'upaj.pl/')]");
  5393. addObsoleteHost("upfile\\.biz\/\\w+","//a[contains(@href,'upfile.biz/')]");
  5394. addObsoleteHost("uploadbin\\.net\/\\w+","//a[contains(@href,'uploadbin.net/')]");
  5395. addObsoleteHost("uploadic\\.com\/\\w+","//a[contains(@href,'uploadic.com/')]");
  5396. addObsoleteHost("uploadinc\\.com\/\\w+","//a[contains(@href,'uploadinc.com/')]");
  5397. addObsoleteHost("uploading4u\\.eu\/\\w+","//a[contains(@href,'uploading4u.eu/')]");
  5398. addObsoleteHost("uploadjet\\.net\/\\w+","//a[contains(@href,'uploadjet.net/')]");
  5399. addObsoleteHost("uploadorb\\.com\/\\w+","//a[contains(@href,'uploadorb.com/')]");
  5400. addObsoleteHost("upthe\\.net\/\\w+","//a[contains(@href,'upthe.net/')]");
  5401. addObsoleteHost("uptorch\\.com\/\\w+","//a[contains(@href,'uptorch.com/')]");
  5402. addObsoleteHost("vidbox\\.yt\/\\w+","//a[contains(@href,'vidbox.yt/')]");
  5403. addObsoleteHost("videozer\\.com\/\\w+","//a[contains(@href,'videozer.com/')]");
  5404. addObsoleteHost("vreer\\.com\/\\w+","//a[contains(@href,'vreer.com/')]");
  5405. addObsoleteHost("wallobit\\.com\/\\w+","//a[contains(@href,'wallobit.com/')]");
  5406. addObsoleteHost("zooupload\\.com\/\\w+","//a[contains(@href,'zooupload.com/')]");
  5407. addObsoleteHost("xerver\\.co\/\\w+","//a[contains(@href,'xerver.co/')]");
  5408. addObsoleteHost("privatefiles\\.com\/\\w+","//a[contains(@href,'privatefiles.com/')]");
  5409. addObsoleteHost("bitshare\\.com\/\\w+","//a[contains(@href,'bitshare.com/')]");
  5410. addObsoleteHost("asfile\\.com\/\\w+","//a[contains(@href,'asfile.com/')]");
  5411. addObsoleteHost("billionuploads\\.com\/\\w+","//a[contains(@href,'billionuploads.com/')]");
  5412. addObsoleteHost("\\*{7,100}\/[\\w\\d]+","//a[contains(@href,'*******/')]");
  5413. addObsoleteHost("filesaur\\.com\/\\w+","//a[contains(@href,'filesaur.com/')]");
  5414. addObsoleteHost("rapidshare\\.com\/\\w+","//a[contains(@href,'rapidshare.com/')]");
  5415. addObsoleteHost("rapidshare\\.ru\/\\w+","//a[contains(@href,'rapidshare.ru/')]");
  5416. addObsoleteHost("filesfrog\\.net\/\\w+","//a[contains(@href,'filesfrog.net/')]");
  5417. addObsoleteHost("4savefile\\.com\/\\w+","//a[contains(@href,'4savefile.com/')]");
  5418. addObsoleteHost("bayfiles\\.com\/\\w+","//a[contains(@href,'bayfiles.com/')]");
  5419. addObsoleteHost("bayfiles\\.net\/\\w+","//a[contains(@href,'bayfiles.net/')]");
  5420. addObsoleteHost("dodane\\.pl\/\\w+","//a[contains(@href,'dodane.pl/')]");
  5421. addObsoleteHost("dotsemper\\.com\/\\w+","//a[contains(@href,'dotsemper.com/')]");
  5422. addObsoleteHost("egofiles\\.com\/\\w+","//a[contains(@href,'egofiles.com/')]");
  5423. addObsoleteHost("epicshare\\.net\/\\w+","//a[contains(@href,'epicshare.net/')]");
  5424. addObsoleteHost("fiberupload\\.net\/\\w+","//a[contains(@href,'fiberupload.net/')]");
  5425. addObsoleteHost("filemonkey\\.in\/\\w+","//a[contains(@href,'filemonkey.in/')]");
  5426. addObsoleteHost("filemonster\\.net\/\\w+","//a[contains(@href,'filemonster.net/')]");
  5427. addObsoleteHost("filepom\\.com\/\\w+","//a[contains(@href,'filepom.com/')]");
  5428. addObsoleteHost("filesbb\\.com\/\\w+","//a[contains(@href,'filesbb.com/')]");
  5429. addObsoleteHost("fileshareup\\.com\/\\w+","//a[contains(@href,'fileshareup.com/')]");
  5430. addObsoleteHost("filevice\\.com\/\\w+","//a[contains(@href,'filevice.com/')]");
  5431. addObsoleteHost("gigaup\\.fr\/\\w+","//a[contains(@href,'gigaup.fr/')]");
  5432. addObsoleteHost("inafile\\.com\/\\w+","//a[contains(@href,'inafile.com/')]");
  5433. addObsoleteHost("isavelink\\.com\/\\w+","//a[contains(@href,'isavelink.com/')]");
  5434. addObsoleteHost("loombo\\.com\/\\w+","//a[contains(@href,'loombo.com/')]");
  5435. addObsoleteHost("megafiles\\.se\/\\w+","//a[contains(@href,'megafiles.se/')]");
  5436. addObsoleteHost("migupload\\.com\/\\w+","//a[contains(@href,'migupload.com/')]");
  5437. addObsoleteHost("mydisc\\.net\/\\w+","//a[contains(@href,'mydisc.net/')]");
  5438. addObsoleteHost("nitrobits\\.com\/\\w+","//a[contains(@href,'nitrobits.com/')]");
  5439. addObsoleteHost("potload\\.com\/\\w+","//a[contains(@href,'potload.com/')]");
  5440. addObsoleteHost("redload\\.net\/\\w+","//a[contains(@href,'redload.net/')]");
  5441. addObsoleteHost("shareprofi\\.com\/\\w+","//a[contains(@href,'shareprofi.com/')]");
  5442. addObsoleteHost("sharesuper\\.info\/\\w+","//a[contains(@href,'sharesuper.info/')]");
  5443. addObsoleteHost("sinhro\\.net\/\\w+","//a[contains(@href,'sinhro.net/')]");
  5444. addObsoleteHost("speedfile\\.cz\/\\w+","//a[contains(@href,'speedfile.cz/')]");
  5445. addObsoleteHost("speedshare\\.org\/\\w+","//a[contains(@href,'speedshare.org/')]");
  5446. addObsoleteHost("storage.novoro\\.net\/\\w+","//a[contains(@href,'storage.novoro.net/')]");
  5447. addObsoleteHost("swankshare\\.com\/\\w+","//a[contains(@href,'swankshare.com/')]");
  5448. addObsoleteHost("swatupload\\.com\/\\w+","//a[contains(@href,'swatupload.com/')]");
  5449. addObsoleteHost("upafile\\.com\/\\w+","//a[contains(@href,'upafile.com/')]");
  5450. addObsoleteHost("uploadmachine\\.com\/\\w+","//a[contains(@href,'uploadmachine.com/')]");
  5451. addObsoleteHost("uploadsat\\.com\/\\w+","//a[contains(@href,'uploadsat.com/')]");
  5452. addObsoleteHost("upshared\\.com\/\\w+","//a[contains(@href,'upshared.com/')]");
  5453. addObsoleteHost("usefile\\.com\/\\w+","//a[contains(@href,'usefile.com/')]");
  5454. addObsoleteHost("yourfiles\\.to\/\\w+","//a[contains(@href,'yourfiles.to/')]");
  5455. addObsoleteHost("zomgupload\\.com\/\\w+","//a[contains(@href,'zomgupload.com/')]");
  5456. addObsoleteHost("~[\\w\\s~]*","//a[contains(@href,'//~') or contains(@href,'//www.~')]");
  5457. addObsoleteHost("filemup\\.com\/\\w+","//a[contains(@href,'filemup.com/')]");
  5458. addObsoleteHost("tuxfile\\.com\/\\w+","//a[contains(@href,'tuxfile.com/')]");
  5459. addObsoleteHost("ultramegabit\\.com\/\\w+","//a[contains(@href,'ultramegabit.com/')]");
  5460. addObsoleteHost("uploadto\\.us\/\\w+","//a[contains(@href,'uploadto.us/')]");
  5461. addObsoleteHost("filecore\\.co\\.nz\/\\w+","//a[contains(@href,'filecore.co.nz/')]");
  5462. addObsoleteHost("fileshare\\.in\\.ua\/\\w+","//a[contains(@href,'fileshare.in.ua/')]");
  5463. addObsoleteHost("firedrive\\.com\/\\w+","//a[contains(@href,'firedrive.com/')]");
  5464. addObsoleteHost("putlocker\\.com\/\\w+","//a[contains(@href,'putlocker.com/')]");
  5465. addObsoleteHost("lumfile\\.com\/\\w+","//a[contains(@href,'lumfile.com/')]");
  5466. addObsoleteHost("lumfile\\.se\/\\w+","//a[contains(@href,'lumfile.se/')]");
  5467. addObsoleteHost("lumfile\\.eu\/\\w+","//a[contains(@href,'lumfile.eu/')]");
  5468. // obsolete start
  5469. }
  5470. //obsolete file hosts init end
  5471.  
  5472. function addFileHost(linkRegex, isAliveRegex, isDeadRegex, isUnavaRegex, xpathEx, tryLoop, ispremRegex)
  5473. {
  5474. var host = new Array(7);
  5475. host[0] = linkRegex;
  5476. host[1] = isAliveRegex;
  5477. host[2] = isDeadRegex;
  5478. host[3] = isUnavaRegex;
  5479. host[6] = ispremRegex;
  5480. host[4] = xpathEx;
  5481. tryLoop ? host[5] = true : host[5] = false;
  5482. http_file_hosts.push(host);
  5483. }
  5484. if (GM_getValue("Check_megafileupload_dot_com_links", false))
  5485. {
  5486. addFileHost(
  5487. "megafileupload\.com\/..\/file\/",
  5488. 'downloadbtn',
  5489. 'is not found',
  5490. 'optional--',
  5491. "//a[contains(@href,'megafileupload.com')]");
  5492. }
  5493. if (GM_getValue("Check_demo_dot_ovh_dot_eu_links", false))
  5494. {
  5495. addFileHost(
  5496. "demo\\.ovh\\.eu\/\\w+\/\\w+",
  5497. 'download\\.gif"',
  5498. 'p_point">',
  5499. 'optional--',
  5500. "//a[contains(@href,'demo.ovh.eu')]");
  5501. }
  5502. if (GM_getValue("Check_xkeepfile_dot_com_links", false))
  5503. {
  5504. addFileHost(
  5505. "xkeepfile\.com\/\\w+",
  5506. 'File has been found|Click here to download',
  5507. 'File cannot be found|class="error">',
  5508. 'optional--',
  5509. //'optional--',
  5510. "//a[contains(@href,'xkeepfile.com/') or contains(@href,'Gamesena.com/')]");
  5511. }
  5512. if (GM_getValue("Check_safelinking_dot_net_links", false))
  5513. {
  5514. addFileHost(
  5515. "safelinking\\.net\/p\/\\w+",
  5516. 'color:green;"',
  5517. 'color:(?:red|orange);"',
  5518. 'color:(?:grey|brown);"',
  5519. "//a[contains(@href,'safelinking.net/p/')]",
  5520. true);
  5521. }
  5522. /* if (GM_getValue("Check_ultramegabit_dot_com_links", false))
  5523. {
  5524. addFileHost(
  5525. "ultramegabit\\.com\/file\/details\/[\\w+-]",
  5526. 'name="recaptcha_response',
  5527. '="/folder/add"|>File (?:not found|restricted|has been deleted)|<title>ULTRAMEGABIT</title>',
  5528. 'btn-large btn-danger">|Account limitation notice|502 Bad Gateway',
  5529. "//a[contains(@href,'ultramegabit.com/file')]",
  5530. true);
  5531. } */
  5532. if (GM_getValue("Check_fastshare_dot_cz_links", false))
  5533. {
  5534. addFileHost(
  5535. "fastshare\\.cz\/\\d+\/\\w*",
  5536. 'dwntable">',
  5537. 'nebyla nalezena|nebola nájdená|nie została odnaleziona|color:red;font-weight:bold;border\\-style:dashed|<i class="fa fa-copyright"></i>',
  5538. 'optional--',
  5539. "//a[contains(@href,'fastshare.cz')]");
  5540. }
  5541. if (GM_getValue("Check_fastshare_dot_org_links", false))
  5542. {
  5543. addFileHost(
  5544. "[fF]ast[sS]hare\\.org\/download",
  5545. 'Download ">',
  5546. 'Diese Datei wurde wegen|wurde kein Dateiname',
  5547. 'optional--',
  5548. "//a[contains(@href,'fastshare.org/download') or contains(@href,'FastShare.org/download')]");
  5549. }
  5550. if (GM_getValue("Check_partage_dash_facile_dot_com_links", false))
  5551. {
  5552. addFileHost(
  5553. "partage-facile\.com\/\\w+",
  5554. 'class="title"><strong>|colspan="2"',
  5555. 'Page introuvable|class="alert-message',
  5556. 'optional--',
  5557. "//a[contains(@href,'partage-facile.com')]");
  5558. }
  5559. if (GM_getValue("Check_rapidgator_dot_net_links", false))
  5560. {
  5561. addFileHost(
  5562. "rapidgator\\.net\/file\/\\w+",
  5563. '/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',
  5564. 'Error 404|File not found|Error 500|Файл не найден|File not found|Select your plan',
  5565. 'optional--',
  5566. "//a[contains(@href,'rapidgator.net/file')]",
  5567. true
  5568. );
  5569. }
  5570. if (GM_getValue("Check_relink_dot_us_links", false))
  5571. {
  5572. addFileHost(
  5573. "relink\\.us\/(?:f\/\\w+|go\\.php\\?id=\\d+|view\\.php\\?id=\\d+)",
  5574. 'online_detail\\.png" alt="Status',
  5575. '(?:offline|partially)_detail\\.png" alt="Status|File deleted',
  5576. 'unknown_detail\\.png" alt="Status',
  5577. "//a[contains(@href,'relink.us/')]"
  5578. );
  5579. }
  5580. if (GM_getValue("Check_uploadstube_dot_de_links", false))
  5581. {
  5582. addFileHost(
  5583. "uploadstube\\.de\/download\\.php\\?file=\\d+",
  5584. 'div id="dl"',
  5585. 'Sie haben den Link falsch',
  5586. 'optional--',
  5587. "//a[contains(@href,'uploadstube.de/download.php?file=')]"
  5588. );
  5589. }
  5590. if (GM_getValue("Check_flyfiles_dot_net_links", false))
  5591. {
  5592. addFileHost(
  5593. "flyfiles\\.net\/\\w+",
  5594. 'download_button"|"Download file"',
  5595. 'File not found!|Файл не найден',
  5596. 'optional--',
  5597. "//a[contains(@href,'flyfiles.net/')]"
  5598. );
  5599. }
  5600. if (GM_getValue("Check_wikiupload_dot_com_links", false))
  5601. {
  5602. addFileHost(
  5603. "wikiupload\\.com\/\\w+",
  5604. 'download-button">',
  5605. 'Sorry, File not found',
  5606. 'optional--',
  5607. "//a[contains(@href,'wikiupload.com/')]"
  5608. );
  5609. }
  5610. if (GM_getValue("Check_hostuje_dot_net_links", false))
  5611. {
  5612. addFileHost(
  5613. "hostuje\\.net\/file\\.php\\?id=\\w+",
  5614. 'file\\.php">|Pobierz Plik',
  5615. 'Podany plik nie zosta',
  5616. 'optional--',
  5617. "//a[contains(@href,'hostuje.net/file')]"
  5618. );
  5619. }
  5620. if (GM_getValue("Check_gettyfile_dot_ru_links", false))
  5621. {
  5622. addFileHost(
  5623. "gettyfile\\.ru\/\\d+",
  5624. 'download\\.gif border',
  5625. '<center><font size="3">',
  5626. 'optional--',
  5627. "//a[contains(@href,'gettyfile.ru/')]"
  5628. );
  5629. }
  5630. if (GM_getValue("Check_tufiles_dot_ru_links", false))
  5631. {
  5632. addFileHost(
  5633. "(?:tufiles|turbob1t|failoobmenik|filesmail|firebit|dlbit|files\\.china\\-gsm|3aka4aem|file\\.piratski|mnogofiles|links-free|turbo-bit|turbosfiles)\\.\\w+\/\\w+",
  5634. 'download\\-file">',
  5635. 'col-1">\\s*<h1>',
  5636. 'optional--',
  5637. "//a[contains(@href,'tufiles.ru/') or contains(@href,'turbob1t.ru/') or contains(@href,'filesmail.ru/') or contains(@href,'failoobmenik.ru/')"+
  5638. " or contains(@href,'firebit.in/') or contains(@href,'dlbit.net/') or contains(@href,'files.china-gsm.ru/') or contains(@href,'3aka4aem.ru/')"+
  5639. " or contains(@href,'file.piratski.ru/') or contains(@href,'mnogofiles.com/') or contains(@href,'links-free.ru/')"+
  5640. " or contains(@href,'turbo-bit.ru/') or contains(@href,'turbosfiles.ru/')]"
  5641. );
  5642. }
  5643. if (GM_getValue("Check_data_dot_hu_links", false))
  5644. {
  5645. addFileHost(
  5646. "data\\.hu\/get\/\\d+\/",
  5647. 'download_box_button',
  5648. 'missing\\.php',
  5649. 'optional--',
  5650. "//a[contains(@href,'data.hu/get')]",
  5651. true
  5652. );
  5653. }
  5654. if (GM_getValue("Check_filesmelt_dot_com_links", false))
  5655. {
  5656. addFileHost(
  5657. "filesmelt\\.com\/dl\/\\w+",
  5658. '(Your download is ready|Download File)',
  5659. 'Sorry, but your',
  5660. 'optional--',
  5661. "//a[contains(@href,'filesmelt.com/dl')]"
  5662. );
  5663. }
  5664. if (GM_getValue("Check_indowebster_dot_com_links", false))
  5665. {
  5666. addFileHost(
  5667. "(?:files\\.)?indowebster\\.com\/download\/\\w+\/",
  5668. 'premiumBtn"',
  5669. 'errorMessage"',
  5670. 'optional--',
  5671. "//a[contains(@href,'indowebster.com/download')]"
  5672. );
  5673. }
  5674. if (GM_getValue("Check_superload_dot_cz_links", false))
  5675. {
  5676. addFileHost(
  5677. "superload\\.cz\/dl\/\\w+",
  5678. 'icon-download">',
  5679. 'soubor nebyl nalezen',
  5680. 'optional--',
  5681. "//a[contains(@href,'superload.cz/dl')]"
  5682. );
  5683. }
  5684. if (GM_getValue("Check_hulkfile_dot_eu_links", false))
  5685. {
  5686. addFileHost(
  5687. "(?:w\\.hulkfile\\.com|hulkfile\\.eu)\/\\w+",
  5688. 'op" value="download',
  5689. 'class="err">|width:500px;text-align:left;">',
  5690. 'optional--',
  5691. "//a[contains(@href,'hulkfile.')]"
  5692. );
  5693. }
  5694. if (GM_getValue("Check_easybytez_dot_com_links", false))
  5695. {
  5696. addFileHost(
  5697. "easybytez\\.com\/\\w+",
  5698. 'op" value="download',
  5699. 'stop_error\\.gif',
  5700. 'optional--',
  5701. "//a[contains(@href,'easybytez.com/')]"
  5702. );
  5703. }
  5704. if (GM_getValue("Check_filestore_dot_com_dot_ua_links", false))
  5705. {
  5706. addFileHost(
  5707. "filestore\\.com\\.ua\/\\?d=\\w+",
  5708. 'tdrow1>',
  5709. 'class=warn',
  5710. 'optional--',
  5711. "//a[contains(@href,'filestore.com.ua/?d=')]"
  5712. );
  5713. }
  5714. if (GM_getValue("Check_netkups_dot_com_links", false))
  5715. {
  5716. addFileHost(
  5717. "netkups\\.com\/\\?d=\\w+",
  5718. 'submit">Continue',
  5719. 'page">File not found|deleted due to inactivity',
  5720. 'optional--',
  5721. "//a[contains(@href,'netkups.com/?d=')]"
  5722. );
  5723. }
  5724. if (GM_getValue("Check_openfile_dot_ru_links", false))
  5725. {
  5726. addFileHost(
  5727. "openfile\\.ru\/(?:video\/|)\\d+",
  5728. 'videobox_left">',
  5729. 'blog_title">|not found on this server',
  5730. 'optional--',
  5731. "//a[contains(@href,'openfile.ru/')]"
  5732. );
  5733. }
  5734. if (GM_getValue("Check_extmatrix_dot_com_links", false))
  5735. {
  5736. addFileHost(
  5737. "extmatrix\\.com\/files\/\\w+",
  5738. 'div class="success"',
  5739. 'div class="error"',
  5740. 'optional--',
  5741. "//a[contains(@href,'extmatrix.com/files')]"
  5742. );
  5743. }
  5744. if (GM_getValue("Check_sendfiles_dot_nl_links", false))
  5745. {
  5746. addFileHost(
  5747. "sendfiles\\.nl\/download.aspx\\?ID=\\w+",
  5748. 'content_lnkDownload',
  5749. 'error\\.aspx\\?',
  5750. 'optional--',
  5751. "//a[contains(@href,'sendfiles.nl/download.aspx')]"
  5752. );
  5753. }
  5754. if (GM_getValue("Check_sockshare_dot_com_links", false))
  5755. {
  5756. addFileHost(
  5757. "sockshare\\.com\/file\/\\w+",
  5758. 'choose_speed">',
  5759. 'message t_0\'>',
  5760. 'optional--',
  5761. "//a[contains(@href,'sockshare.com/file')]"
  5762. );
  5763. }
  5764. if (GM_getValue("Check_yourfilestore_dot_com_links", false))
  5765. {
  5766. addFileHost(
  5767. "yourfilestore\\.com\/download\/\\d+\/",
  5768. 'download_data">',
  5769. 'may have been deleted|<h1>Sorry!<\/h1>',
  5770. 'optional--',
  5771. "//a[contains(@href,'yourfilestore.com/download')]"
  5772. );
  5773. }
  5774. if (GM_getValue("Check_nekaka_dot_com_links", false))
  5775. {
  5776. addFileHost(
  5777. "nekaka\\.com\/d\/[\\w-]+",
  5778. 'downloadForm">',
  5779. 'invalid file link',
  5780. 'optional--',
  5781. "//a[contains(@href,'nekaka.com/d')]"
  5782. );
  5783. }
  5784. if (GM_getValue("Check_filebig_dot_net_links", false))
  5785. {
  5786. addFileHost(
  5787. "filebig\\.net\/files\/\\w+",
  5788. 'downloadFile">',
  5789. '<p>File not found<\/p>',
  5790. 'optional--',
  5791. "//a[contains(@href,'filebig.net/files')]"
  5792. );
  5793. }
  5794. if (GM_getValue("Check_gamefront_dot_com_links", false))
  5795. {
  5796. addFileHost(
  5797. "files\\.filefront\\.com\/\/;\\d+;;",
  5798. 'downloadLink">',
  5799. 'File not found, you',
  5800. 'optional--',
  5801. "//a[contains(@href,'files.filefront.com')]"
  5802. );
  5803.  
  5804. addFileHost(
  5805. "gamefront\\.com\/files\/\\d+",
  5806. 'downloadLink">',
  5807. 'File not found, you',
  5808. 'optional--',
  5809. "//a[contains(@href,'gamefront.com/files')]"
  5810. );
  5811. }
  5812. if (GM_getValue("Check_hyperfileshare_dot_com_links", false))
  5813. {
  5814. addFileHost(
  5815. "(?:download\\.|)hyperfileshare\\.com\/(?:download\\.php\\?code=|d\/)\\w+",
  5816. 'dnlLnk"',
  5817. 'already been deleted',
  5818. 'optional--',
  5819. "//a[contains(@href,'hyperfileshare.com/download') or contains(@href,'hyperfileshare.com/d')]"
  5820. );
  5821. }
  5822. if (GM_getValue("Check_hellupload_dot_com_links", false))
  5823. {
  5824. addFileHost(
  5825. "hellupload\\.com\/\\w+",
  5826. '<h3>Download File<br',
  5827. 'id="podstrona">|AVOID_IE_BUG',
  5828. 'optional--',
  5829. "//a[contains(@href,'hellupload.com/')]"
  5830. );
  5831. }
  5832. if (GM_getValue("Check_free_dash_uploading_dot_com_links", false))
  5833. {
  5834. addFileHost(
  5835. "free\\-uploading\\.com\/\\w+",
  5836. 'op" value="download',
  5837. 'class="err">|width:500px;text-align:left;">',
  5838. 'optional--',
  5839. "//a[contains(@href,'free-uploading.com/')]"
  5840. );
  5841. }
  5842. if (GM_getValue("Check_fileape_dot_com_links", false))
  5843. {
  5844. addFileHost(
  5845. "fileape\\.com\/download\\-",
  5846. 'button_dl\\.png',
  5847. 'does not exist\\.',
  5848. 'optional--',
  5849. "//a[contains(@href,'fileape.com/')]"
  5850. );
  5851. }
  5852. if (GM_getValue("Check_uppit_dot_com_links", false))
  5853. {
  5854. addFileHost(
  5855. "(?:uppit\\.com|up\\.ht)\/\\w+",
  5856. 'op" value="download',
  5857. 'class="err">|style="width:500px;text-align:left;"|fish-404\\.png"',
  5858. 'optional--',
  5859. "//a[contains(@href,'up.ht/') or contains(@href,'uppit.com/')]",
  5860. true
  5861. );
  5862. }
  5863. if (GM_getValue("Check_nosupload_dot_com_links", false))
  5864. {
  5865. addFileHost(
  5866. "nosupload\\.com\/(?:\\?d=)?\\w+",
  5867. 'op" value="download',
  5868. '>File Not Found<',
  5869. 'optional--',
  5870. "//a[contains(@href,'nosupload.com')]",
  5871. true
  5872. );
  5873. }
  5874. if (GM_getValue("Check_filesin_dot_com_links", false))
  5875. {
  5876. addFileHost(
  5877. "filesin\\.com\/\\w+\/download\\.html",
  5878. 'download_area">',
  5879. 'error_note">',
  5880. 'optional--',
  5881. "//a[contains(@href,'filesin.com/')]",
  5882. true
  5883. );
  5884. }
  5885. if (GM_getValue("Check_nowdownload_dot_eu_links", false))
  5886. {
  5887. addFileHost(
  5888. "nowdownload\\.eu\/dl\/\\w+",
  5889. 'alert-success"',
  5890. 'This file does not exist!',
  5891. 'The file is being transfered',
  5892. "//a[contains(@href,'nowdownload.eu/dl')]"
  5893. );
  5894. }
  5895. if (GM_getValue("Check_axifile_dot_com_links", false))
  5896. {
  5897. addFileHost(
  5898. "axifile\\.com(?:\/\w(2))?\/\\??\\w+",
  5899. 'Dbutton_big"',
  5900. 'download\\-error\\.php',
  5901. 'optional--',
  5902. "//a[contains(@href,'axifile.com/')]"
  5903. );
  5904. }
  5905. if (GM_getValue("Check_hulkshare_dot_com_links", false))
  5906. {
  5907. addFileHost(
  5908. "hulkshare\.com\/\\w+",
  5909. 'download\.sam\.png|This is a private file|id="filename',
  5910. 'File does not exist|fingerprint protected copyright',
  5911. 'optional--',
  5912. "//a[contains(@href,'hulkshare.com')]"
  5913. );
  5914. }
  5915. if (GM_getValue("Check_turbobit_dot_net_links", false)) //folders
  5916. {
  5917. addFileHost(
  5918. "turbobit\\.(?:net|pl)\/download\/folder\/\\d+",
  5919. 'col-1">\\s*<s',
  5920. 'col-1">\\s*<h',
  5921. 'optional--',
  5922. "//a[contains(@href,'turbobit.') and contains(@href,'download/folder')]"
  5923. );
  5924. }
  5925. if (GM_getValue("Check_hitfile_dot_net_links", false)) //folders
  5926. {
  5927. addFileHost(
  5928. "hitfile\\.net\/download\/folder\/\\d+",
  5929. 'content">\\s*<s',
  5930. 'content">\\s*<h',
  5931. 'optional--',
  5932. "//a[contains(@href,'hitfile.net/download/folder')]"
  5933. );
  5934. }
  5935. if (GM_getValue("Check_netload_dot_in_links", false)) //folders
  5936. {
  5937. addFileHost(
  5938. "netload\\.in\/folder\\.php\\?folder_id=\\w+",
  5939. 'images\/online\\.gif',
  5940. 'InPage_Error"',
  5941. 'optional--',
  5942. "//a[contains(@href,'netload.in/folder.php')]"
  5943. );
  5944. }
  5945. if (GM_getValue("Check_movshare_dot_net_links", false))
  5946. {
  5947. addFileHost(
  5948. "movshare\\.net\\/video\\/\\w+",
  5949. 'optional--"',
  5950. 'no longer exists',
  5951. 'optional--',
  5952. "//a[contains(@href,'movshare.net/video')]"
  5953. );
  5954. }
  5955. if (GM_getValue("Check_plunder_dot_com_links", false))
  5956. {
  5957. addFileHost(
  5958. "plunder\.com\/\\w+",
  5959. 'x\/download\\.gif',
  5960. '404 - File or directory not found.',
  5961. 'optional--',
  5962. "//a[contains(@href,'plunder.com')]"
  5963. );
  5964. }
  5965. if (GM_getValue("Check_mafiastorage_dot_com_links", false))
  5966. {
  5967. addFileHost(
  5968. "mafiastorage\\.com\/\\w+",
  5969. 'op" value="download',
  5970. 'class="err">|style="width:500px;text-align:left;"',
  5971. 'optional--',
  5972. "//a[contains(@href,'mafiastorage.com/')]"
  5973. );
  5974. }
  5975. if (GM_getValue("Check_uploadspace_dot_pl_links", false))
  5976. {
  5977. addFileHost(
  5978. "uploadspace\.pl\/plik\\w+",
  5979. 'Downloading .+? \\|',
  5980. 'Downloading a file',
  5981. 'optional--',
  5982. "//a[contains(@href,'uploadspace.pl/plik')]"
  5983. );
  5984. }
  5985. if (GM_getValue("Check_uploadingit_dot_com_links", false))
  5986. {
  5987. addFileHost(
  5988. "uploadingit\\.com\/file\/\\w+",
  5989. 'downloadTitle">',
  5990. 'deleteContent">',
  5991. 'optional--',
  5992. "//a[contains(@href,'uploadingit.com/file')]"
  5993. );
  5994. }
  5995. if (GM_getValue("Check_rghost_dot_net_links", false))
  5996. {
  5997. addFileHost(
  5998. "rghost\.(?:net|ru)\/(?:|private\/)\\d+",
  5999. 'download_link|btn large download"',
  6000. 'file is restricted|File is deleted|503 Service Unavailable',
  6001. 'File was deleted',
  6002. "//a[contains(@href,'rghost.')]"
  6003. );
  6004. }
  6005. if (GM_getValue("Check_xdisk_dot_cz_links", false))
  6006. {
  6007. addFileHost(
  6008. "xdisk\\.cz\/(?:..\/)?download\\.php\\?id=\\w+",
  6009. '">Staženo:\\s*<\/span>',
  6010. 'Soubor, který hledáte nenalezen',
  6011. 'optional--',
  6012. "//a[contains(@href,'xdisk.cz/')]"
  6013. );
  6014. }
  6015. if (GM_getValue("Check_expressleech_dot_com_links", false))
  6016. {
  6017. addFileHost(
  6018. "expressleech\.com\/\\w+",
  6019. 'src="/img/Download.gif"|var _gaq =',
  6020. 'var rr =|403 Forbidden',
  6021. 'optional--',
  6022. "//a[contains(@href,'expressleech.com')]");
  6023. }
  6024. if (GM_getValue("Check_2downloadz_dot_com_links", false))
  6025. {
  6026. addFileHost(
  6027. "2downloadz\.com\/\\w+",
  6028. 'color="#848484|src="images/Download.png"|color:#238DCA',
  6029. 'color="#006DCC|File error',
  6030. 'optional--',
  6031. "//a[contains(@href,'2downloadz.com')]");
  6032. }
  6033. if (GM_getValue("Check_mightyupload_dot_com_links", false))
  6034. {
  6035. addFileHost(
  6036. "mightyupload\.com\/\\w+",
  6037. 'background:#ccc;text-align|CONTENT="Download File"',
  6038. 'style="background:#eee|var rr =|File Not Found',
  6039. 'optional--',
  6040. "//a[contains(@href,'mightyupload.com')]");
  6041. }
  6042. if (GM_getValue("Check_uncapped_dash_downloads_dot_com_links", false))
  6043. {
  6044. addFileHost(
  6045. "uncapped-downloads\.com\/\\w+",
  6046. 'btn_download',
  6047. 'File Not Found',
  6048. 'optional--',
  6049. "//a[contains(@href,'uncapped-downloads.com')]");
  6050. }
  6051. if (GM_getValue("Check_k2s_dot_cc_links", false))
  6052. {
  6053. addFileHost(
  6054. "k2s\.cc\/file\/\\w+",
  6055. 'Click here for slow download with|class="btn" id="yw0"|onclick="download',
  6056. 'Error 404|class="errorSummary">|this file is blocked or deleted|>404 Not Found<|To avoid damaged files|This file is no longer available',
  6057. 'please try later',
  6058. //'optional--',
  6059. "//a[contains(@href,'k2s.cc')]");
  6060. }
  6061. if (GM_getValue("Check_keep2share_dot_cc_links", false))
  6062. {
  6063. addFileHost(
  6064. "keep2share\.cc\/file\/\\w+",
  6065. 'Click here for slow download with|class="btn" id="yw0"|onclick="download',
  6066. 'Error 404|class="errorSummary">|this file is blocked or deleted|>404 Not Found<|To avoid damaged files|This file is no longer available',
  6067. 'please try later',
  6068. //'optional--',
  6069. "//a[contains(@href,'keep2share.cc')]");
  6070. }
  6071. if (GM_getValue("Check_keep2s_dot_cc_links", false))
  6072. {
  6073. addFileHost(
  6074. "keep2s\.cc\/file\/\\w+",
  6075. 'Click here for slow download with|class="btn" id="yw0"|onclick="download',
  6076. 'Error 404|class="errorSummary">|this file is blocked or deleted|>404 Not Found<|To avoid damaged files|This file is no longer available',
  6077. 'please try later',
  6078. //'optional--',
  6079. "//a[contains(@href,'keep2s.cc')]");
  6080. }
  6081. if (GM_getValue("Check_keep2share_dot_com_links", false))
  6082. {
  6083. addFileHost(
  6084. "keep2share\.com\/file\/\\w+",
  6085. 'Click here for slow download with|class="btn" id="yw0"|onclick="download',
  6086. 'Error 404|class="errorSummary">|this file is blocked or deleted|>404 Not Found<|To avoid damaged files|This file is no longer available',
  6087. 'please try later',
  6088. //'optional--',
  6089. "//a[contains(@href,'keep2share.com')]");
  6090. }
  6091. if (GM_getValue("Check_anysend_dot_com_links", false))
  6092. {
  6093. addFileHost(
  6094. "anysend\.com\/\\w+",
  6095. 'var openCalled=false;|content="noindex"',
  6096. '_trackPageview',
  6097. 'optional--',
  6098. "//a[contains(@href,'anysend.com')]");
  6099. }
  6100. if (GM_getValue("Check_datafile_dot_com_links", false))
  6101. {
  6102. addFileHost(
  6103. "datafile\.com\/\\w+",
  6104. 'src="/js/files_download.js"|get-premium-button',
  6105. 'ErrorCode|class="error-msg"|ErrorCode 0: Invalid Link',
  6106. 'You are downloading another file at this moment|You exceeded your free',
  6107. //'optional--',
  6108. "//a[contains(@href,'datafile.com')]");
  6109. }
  6110. if (GM_getValue("Check_upstore_dot_net_links", false))
  6111. {
  6112. addFileHost(
  6113. "upstore\.net\/\\w+",
  6114. 'style="margin-top: 20px">|style="text-align:center; margin: 20px 0 100px;">',
  6115. 'File not found|onload="redirect|class="error">',
  6116. 'optional--',
  6117. "//a[contains(@href,'upstore.net')]");
  6118. }
  6119. if (GM_getValue("Check_upsto_dot_re_links", false))
  6120. {
  6121. addFileHost(
  6122. "upsto\.re\/\\w+",
  6123. 'style="margin-top: 20px">|style="text-align:center; margin: 20px 0 100px;">',
  6124. 'File not found|onload="redirect|class="error">',
  6125. 'optional--',
  6126. "//a[contains(@href,'upsto.re')]");
  6127. }
  6128. if (GM_getValue("Check_speedy_dot_sh_links", false))
  6129. {
  6130. addFileHost(
  6131. "speedy\.sh\/\\w+",
  6132. 'bgcolor=#eeeeee|class="addthis',
  6133. 'File not found|downloadfilenamenotfound>',
  6134. 'optional--',
  6135. "//a[contains(@href,'speedy.sh')]");
  6136. }
  6137. if (GM_getValue("Check_sanshare_dot_com_links", false))
  6138. {
  6139. addFileHost(
  6140. "sanshare\.com\/\\w+",
  6141. 'SANSHARE_TOPBANNER|offset-1"><h3><b>Download File',
  6142. 'offset-1"><b>File Not Found<|width:500px;text-align',
  6143. 'optional--',
  6144. "//a[contains(@href,'sanshare.com')]");
  6145. }
  6146. if (GM_getValue("Check_dizzcloud_dot_com_links", false))
  6147. {
  6148. addFileHost(
  6149. "dizzcloud\.com\/\\w+",
  6150. '2299210355.png"|class="name"',
  6151. 'span>404|class="cyan upgrade"',
  6152. 'optional--',
  6153. "//a[contains(@href,'dizzcloud.com')]");
  6154. }
  6155. if (GM_getValue("Check_kingfiles_dot_net_links", false))
  6156. {
  6157. addFileHost(
  6158. "kingfiles\.net\/\\w+",
  6159. 'img/spriteBanner.png|If you are the owner of this file',
  6160. 'var rr =|"description" CONTENT="Download File ">|<div style="width:500px;text-align:left;">|The file was removed by administrator',
  6161. 'optional--',
  6162. "//a[contains(@href,'kingfiles.net')]");
  6163. }
  6164. if (GM_getValue("Check_uploadhero_dot_co_links", false))
  6165. {
  6166. addFileHost(
  6167. "uploadhero\\.co\/dl\/\\w+",
  6168. 'class="nom_de_fichier"|Unlimited downloads|Estimated download time|Lien de téléchargement"',
  6169. 'not available on our server|pas disponible sur nos serveurs|Le lien du fichier est incorrect',
  6170. 'optional--',
  6171. "//a[contains(@href,'uploadhero.co/dl')]"
  6172. );
  6173. }
  6174. if (GM_getValue("Check_secureupload_dot_eu_links", false))
  6175. {
  6176. addFileHost(
  6177. "secureupload\\.eu\/\\w+",
  6178. 'Downloading',
  6179. 'cannot be found|File Not Found|could not be found',
  6180. 'optional--',
  6181. "//a[contains(@href,'secureupload.eu')]"
  6182. );
  6183. }
  6184. if (GM_getValue("Check_ge_dot_tt_links", false))
  6185. {
  6186. addFileHost(
  6187. "ge\.tt\/\\w+",
  6188. 'downloads pic',
  6189. 'is NOT the same as',
  6190. 'optional--',
  6191. "//a[contains(@href,'ge.tt')]");
  6192. }
  6193. if (GM_getValue("Check_filefactory_dot_com_links", false))
  6194. {
  6195. addFileHost(
  6196. "filefactory\.com\/\\w+",
  6197. 'div id="file_holder"|download.css',
  6198. 'File Removed|Invalid Download Link|File Unavailable|Server Failed|Datei entfernt|This file has been removed',
  6199. 'Server Maintenance|temporarily overloaded',
  6200. //'optional--',
  6201. "//a[contains(@href,'filefactory.com')]");
  6202. }
  6203. if (GM_getValue("Check_filesflash_dot_net_links", false))
  6204. {
  6205. addFileHost(
  6206. "filesflash\.net\/\\w+",
  6207. 'align:right">Filename:',
  6208. 'class="msg">',
  6209. 'optional--',
  6210. "//a[contains(@href,'filesflash.net')]");
  6211. }
  6212. if (GM_getValue("Check_rapidgator_dot_net_links", false)) //folders
  6213. {
  6214. addFileHost(
  6215. "rapidgator\\.net\/folder\/\\w+",
  6216. 'href="/folder/',
  6217. 'class="empty|Folder not found|Carpeta no encontrada|Dossier non trouvé|Папка не найдена',
  6218. 'optional--',
  6219. "//a[contains(@href,'rapidgator.net/folder')]",
  6220. true
  6221. );
  6222. }
  6223. if (GM_getValue("Check_salefiles_dot_com_links", false))
  6224. {
  6225. addFileHost(
  6226. "salefiles\.com\/\\w+",
  6227. '<Title>Download|CONTENT="Download',
  6228. 'font:15px Arial|background:#eee;',
  6229. 'optional--',
  6230. "//a[contains(@href,'salefiles.com')]");
  6231. }
  6232. if (GM_getValue("Check_megairon_dot_net_links", false))
  6233. {
  6234. addFileHost(
  6235. "megairon\.net\/\\w+",
  6236. 'border: 5px #ffeb90 solid;',
  6237. 'CONTENT="Download File ">|var rr =',
  6238. 'optional--',
  6239. "//a[contains(@href,'megairon.net')]");
  6240. }
  6241. if (GM_getValue("Check_datoid_dot_cz_links", false))
  6242. {
  6243. addFileHost(
  6244. "datoid\.cz\/\\w+",
  6245. 'btn-download|class="icon-download-large"',
  6246. 'Stránka nenalezena|error-404|Soubor byl zablokován',
  6247. 'optional--',
  6248. "//a[contains(@href,'datoid.cz')]");
  6249. }
  6250. if (GM_getValue("Check_stiahni_dot_si_links", false))
  6251. {
  6252. addFileHost(
  6253. "stiahni\.si\/\\w+",
  6254. 'report_icon.png"|slow-download-button',
  6255. 'none.png|deleted|<h2>Error 500</h2>',
  6256. 'optional--',
  6257. "//a[contains(@href,'stiahni.si')]");
  6258. }
  6259. if (GM_getValue("Check_cloudstor_dot_es_links", false))
  6260. {
  6261. addFileHost(
  6262. "cloudstor\.es\/\\w+",
  6263. '"btn_download"',
  6264. '404: Page Not Found',
  6265. 'optional--',
  6266. "//a[contains(@href,'cloudstor.es')]");
  6267. }
  6268. if (GM_getValue("Check_streamfile_dot_com_links", false))
  6269. {
  6270. addFileHost(
  6271. "streamfile\.com\/\\w+",
  6272. 'class="btn',
  6273. 'class="green-btn',
  6274. 'optional--',
  6275. "//a[contains(@href,'streamfile.com')]");
  6276. }
  6277. if (GM_getValue("Check_eyesfile_dot_ca_links", false))
  6278. {
  6279. addFileHost(
  6280. "eyesfile\.ca\/\\w+",
  6281. 'value="Get Link',
  6282. 'var rr =',
  6283. 'optional--',
  6284. "//a[contains(@href,'eyesfile.ca')]");
  6285. }
  6286. if (GM_getValue("Check_filemoney_dot_com_links", false))
  6287. {
  6288. addFileHost(
  6289. "filemoney\.com\/\\w+",
  6290. 'og:title',
  6291. '404 Not Found|<Title>FileMoney',
  6292. 'optional--',
  6293. "//a[contains(@href,'filemoney.com')]");
  6294. }
  6295. if (GM_getValue("Check_uploadboy_dot_com_links", false))
  6296. {
  6297. addFileHost(
  6298. "uploadboy\.com\/\\w+",
  6299. 'width="740">',
  6300. 'var rr =|background:#ffffff|not be found',
  6301. 'optional--',
  6302. "//a[contains(@href,'uploadboy.com')]");
  6303. }
  6304. if (GM_getValue("Check_speedshare_dot_eu_links", false))
  6305. {
  6306. addFileHost(
  6307. "speedshare\.eu\/\\w+",
  6308. 'favicon.png|color:#3d87c0|cross.png"',
  6309. 'var rr =|File Not Found|style="background:#eee',
  6310. 'optional--',
  6311. "//a[contains(@href,'speedshare.eu')]");
  6312. }
  6313. if (GM_getValue("Check_unlimitzone_dot_com_links", false))
  6314. {
  6315. addFileHost(
  6316. "unlimitzone\.com\/\\w+",
  6317. 'content="1" name="',
  6318. 'var rr =|File Not Found',
  6319. 'optional--',
  6320. "//a[contains(@href,'unlimitzone.com')]");
  6321. }
  6322. if (GM_getValue("Check_rioupload_dot_com_links", false))
  6323. {
  6324. addFileHost(
  6325. "rioupload\.com\/\\w+",
  6326. 'sell.jpg',
  6327. 'var rr =',
  6328. 'optional--',
  6329. "//a[contains(@href,'rioupload.com')]");
  6330. }
  6331. if (GM_getValue("Check_rg_dot_to_links", false))
  6332. {
  6333. addFileHost(
  6334. "rg\.to\/\\w+",
  6335. '/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',
  6336. 'Error 404|File not found|Select your plan',
  6337. 'optional--',
  6338. //'optional--',
  6339. "//a[contains(@href,'rg.to')]");
  6340. }
  6341. if (GM_getValue("Check_jumbofiles_dot_org_links", false))
  6342. {
  6343. addFileHost(
  6344. "jumbofiles\.org\/\\w+",
  6345. 'H71C5.png|class="downloadtitle">',
  6346. 'var swfu|ViewSourceBIN.png',
  6347. 'optional--',
  6348. "//a[contains(@href,'jumbofiles.org')]");
  6349. }
  6350. if (GM_getValue("Check_fshare_dot_vn_links", false))
  6351. {
  6352. addFileHost(
  6353. "fshare\\.vn\/file\/\\w+",
  6354. 'action="#download"|left; width: 330px;">|class="bt_down"',
  6355. 'không tồn tại|class="color_red m_t_50"',
  6356. 'optional--',
  6357. "//a[contains(@href,'fshare.vn/file')]",
  6358. true
  6359. );
  6360. }
  6361. if (GM_getValue("Check_spaceforfiles_dot_com_links", false))
  6362. {
  6363. addFileHost(
  6364. "spaceforfiles\.com\/\\w+",
  6365. 'btn_slowspeed_b.jpg|value="download1|class="btn_blue',
  6366. 'var rr =|AVOID_IE_BUG',
  6367. 'optional--',
  6368. "//a[contains(@href,'spaceforfiles.com')]");
  6369. }
  6370. if (GM_getValue("Check_google_dot_com_links", false))
  6371. {
  6372. addFileHost(
  6373. "google\\.com\/file\/\\w+",
  6374. 'content="!">|color:#2d2d2d',
  6375. '12pt; font-weight:|class="errorMessage"|F0F6FF',
  6376. 'optional--',
  6377. "//a[contains(@href,'google.com/file')]",
  6378. true
  6379. );
  6380. }
  6381. if (GM_getValue("Check_google_dot_com_links", false))
  6382. {
  6383. addFileHost(
  6384. "docs.google.com\/\\w+",
  6385. 'content="!">|color:#2d2d2d',
  6386. '12pt; font-weight:|class="errorMessage"|F0F6FF|Error 404',
  6387. 'optional--',
  6388. "//a[contains(@href,'docs.google.com')]",
  6389. true
  6390. );
  6391. }
  6392. if (GM_getValue("Check_google_dot_com_links", false))
  6393. {
  6394. addFileHost(
  6395. "drive.google.com\/\\w+",
  6396. 'content="!">|color:#2d2d2d|id="uc-download-link',
  6397. '12pt; font-weight:|class="errorMessage"|F0F6FF|Error 404',
  6398. 'optional--',
  6399. "//a[contains(@href,'drive.google.com')]",
  6400. true
  6401. );
  6402. }
  6403. if (GM_getValue("Check_up_dot_media1fire_dot_com_links", false))
  6404. {
  6405. addFileHost(
  6406. "up.media1fire\.com\/\\w+",
  6407. 'class="addthis_|value="download',
  6408. 'var rr =|AVOID_IE_BUG|<div style="width:500px;text-align:left;">',
  6409. 'optional--',
  6410. "//a[contains(@href,'up.media1fire.com')]");
  6411. }
  6412. if (GM_getValue("Check_depfile_dot_com_links", false))
  6413. {
  6414. addFileHost(
  6415. "depfile\.com\/\\w+",
  6416. 'logo_0.png|downloads.gif"',
  6417. 'border-color: #5D729B;|bgcolor="#778AAF"',
  6418. 'optional--',
  6419. "//a[contains(@href,'depfile.com')]");
  6420. }
  6421. if (GM_getValue("Check_go4up_dot_com_links", false))
  6422. {
  6423. addFileHost(
  6424. "go4up\.com\/\\w+",
  6425. 'style="width: 100%;">|value="Access|download_line',
  6426. '<title>GO4UP|dmca',
  6427. 'optional--',
  6428. "//a[contains(@href,'go4up.com')]");
  6429. }
  6430. if (GM_getValue("Check_redbunker_dot_net_links", false))
  6431. {
  6432. addFileHost(
  6433. "redbunker\.net\/\\w+",
  6434. 'dload.png|rowspan="3">|yep.gif',
  6435. 'CONTENT="RedBunker|#D3D3D3;|color:#d33|AVOID_IE_BUG',
  6436. 'optional--',
  6437. "//a[contains(@href,'redbunker.net')]");
  6438. }
  6439. if (GM_getValue("Check_divxpress_dot_com_links", false))
  6440. {
  6441. addFileHost(
  6442. "divxpress\.com\/\\w+",
  6443. 'btn_download|logo.png"',
  6444. 'AVOID_IE_BUG|var rr =',
  6445. 'optional--',
  6446. "//a[contains(@href,'divxpress.com')]");
  6447. }
  6448. if (GM_getValue("Check_anafile_dot_com_links", false))
  6449. {
  6450. addFileHost(
  6451. "anafile\.com\/\\w+",
  6452. 'width="881" valign="top|color="#800080"',
  6453. 'style="width:500px;text-align:left;">|file was deleted|AVOID_IE_BUG',
  6454. 'optional--',
  6455. "//a[contains(@href,'anafile.com')]");
  6456. }
  6457. if (GM_getValue("Check_uploadable_dot_ch_links", false))
  6458. {
  6459. addFileHost(
  6460. "uploadable\\.ch\/file\/\\w+",
  6461. 'captcha.js"|payment.js"|class="btn_download"',
  6462. '<div class="icon_err">|<div class="errorBox">|"error_arrow">',
  6463. 'optional--',
  6464. "//a[contains(@href,'uploadable.ch/file')]",
  6465. true
  6466. );
  6467. }
  6468. if (GM_getValue("Check_arabloads_dot_com_links", false))
  6469. {
  6470. addFileHost(
  6471. "arabloads\.com\/\\w+",
  6472. 'name="method_free"|name="method_premium"',
  6473. 'background:#eee;font:15px Arial;">|AVOID_IE_BUG|Verdana;padding:3px;">Error',
  6474. 'optional--',
  6475. "//a[contains(@href,'arabloads.com')]");
  6476. }
  6477. if (GM_getValue("Check_sharerepo_dot_com_links", false))
  6478. {
  6479. addFileHost(
  6480. "sharerepo\.com\/\\w+",
  6481. 'name="method_free"',
  6482. 'var public_on=|The file you were looking for could not be found',
  6483. 'optional--',
  6484. "//a[contains(@href,'sharerepo.com')]");
  6485. }
  6486. if (GM_getValue("Check_sfshare_dot_se_links", false))
  6487. {
  6488. addFileHost(
  6489. "sfshare\.se\/\\w+",
  6490. 'id="btn_download"|class="btn btn-primary txt-bold" value="',
  6491. 'AVOID_IE_BUG|var rr =|style="width:500px;text-align:left;">|Reason for deletion|The file was removed',
  6492. 'optional--',
  6493. "//a[contains(@href,'sfshare.se')]");
  6494. }
  6495. if (GM_getValue("Check_files_dot_fm_links", false))
  6496. {
  6497. addFileHost(
  6498. "files\.fm\/\\w+",
  6499. 'dl.png"|background-color: transparent',
  6500. 'margin: 40px 40px|background: none;',
  6501. 'optional--',
  6502. "//a[contains(@href,'files.fm')]");
  6503. }
  6504. if (GM_getValue("Check_koofile_dot_com_links", false))
  6505. {
  6506. addFileHost(
  6507. "koofile\.com\/\\w+",
  6508. 'value="download1">|name="method_free"',
  6509. 'class="overview-content c_text-box ">|style="padding-top:3px;">|class="rt1 c">',
  6510. 'optional--',
  6511. "//a[contains(@href,'koofile.com')]");
  6512. }
  6513. if (GM_getValue("Check_shared_dot_com_links", false))
  6514. {
  6515. addFileHost(
  6516. "shared\.com\/\\w+",
  6517. 'class="icon-download|class="attachment-size">',
  6518. 'img/404.png"|error-img -->',
  6519. 'optional--',
  6520. "//a[contains(@href,'shared.com')]");
  6521. }
  6522. if (GM_getValue("Check_vidxden_dot_com_links", false))
  6523. {
  6524. addFileHost(
  6525. "vidxden\\.com\/\\w+",
  6526. 'Continue to Video"',
  6527. 'No such file',
  6528. 'optional--',
  6529. "//a[contains(@href,'vidxden.com')]"
  6530. );
  6531. }
  6532. if (GM_getValue("Check_muchshare_dot_net_links", false))
  6533. {
  6534. addFileHost(
  6535. "muchshare\\.net\/\\w+",
  6536. 'id="btn_download"',
  6537. 'File Not Found|width: 500px; text-align: left;',
  6538. 'optional--',
  6539. "//a[contains(@href,'muchshare.net')]"
  6540. );
  6541. }
  6542. if (GM_getValue("Check_daten_dash_hoster_dot_de_links", false))
  6543. {
  6544. addFileHost(
  6545. "(?:daten-hoster\\.de\/file\/\\w+|filehosting\\.org\/file\/\\w+|xtraupload\\.de\/\\?d=\\w+)",
  6546. 'Details zur Datei|Details page',
  6547. 'Jetzt hochladen|upload now',
  6548. 'optional--',
  6549. "//a[contains(@href,'daten-hoster.de/file') or contains(@href,'filehosting.org/file') or contains(@href,'xtraupload.de')]"
  6550. );
  6551. }
  6552. if (GM_getValue("Check_upload_dash_il_dot_net_links", false))
  6553. {
  6554. addFileHost(
  6555. "(?:upload-il|przeslij)\.net\/(?:en|he|ar|ru|)\/?\\w+",
  6556. 'downloadbtn"',
  6557. 'DL_FileNotFound',
  6558. 'optional--',
  6559. "//a[contains(@href,'upload-il.net') or contains(@href,'przeslij.net')]"
  6560. );
  6561. }
  6562. if (GM_getValue("Check_fileflyer_dot_com_links", false))
  6563. {
  6564. addFileHost(
  6565. "fileflyer\.com\/view\/\\w+",
  6566. '(?:dwl|locked)btn"',
  6567. 'error.gif"|link">Removed|removedlink">',
  6568. 'optional--',
  6569. "//a[contains(@href,'fileflyer.com')]"
  6570. );
  6571. }
  6572. if (GM_getValue("Check_filestore_dot_to_links", false))
  6573. {
  6574. addFileHost(
  6575. "filestore\.to\/\\?d=\\w+",
  6576. '"downloading"',
  6577. 'Datei wurde nicht gefunden',
  6578. 'optional--',
  6579. "//a[contains(@href,'filestore.to')]"
  6580. );
  6581. }
  6582. if (GM_getValue("Check_easy_dash_share_dot_com_links", false))
  6583. {
  6584. addFileHost(
  6585. "(?:w\\d*\.|)(?:crocko|easy-share)\\.com\/.",
  6586. 'fz24">Download|class="pl15">',
  6587. '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',
  6588. 'optional--',
  6589. "//a[contains(@href,'easy-share.com') or contains(@href,'crocko.com')]"
  6590. );
  6591. }
  6592. if (GM_getValue("Check_burnupload_dot_com_links", false))
  6593. {
  6594. addFileHost(
  6595. "burnupload\\.(?:com\/\\?d=|ihiphop\\.com\/download\\.php\\?id=)\\w+",
  6596. 'File size:',
  6597. 'file is not found',
  6598. 'optional--',
  6599. "//a[contains(@href,'burnupload.com') or contains(@href,'burnupload.ihiphop.com')]"
  6600. );
  6601. }
  6602. if (GM_getValue("Check_datei_dot_to_links", false))
  6603. {
  6604. addFileHost(
  6605. "datei\\.to\/\\??\\w+",
  6606. 'icon_downloaden\\.png|>Download starten<',
  6607. 'Datei wurde nicht gefunden|icon_deleted.png',
  6608. 'optional--',
  6609. "//a[contains(@href,'datei.to')]"
  6610. );
  6611. }
  6612. if (GM_getValue("Check_yunfile_dot_com_links", false))
  6613. {
  6614. addFileHost(
  6615. "(?:yunfile|filemarkets)\\.com\/\\w+",
  6616. '<body class="body" id="body">|value="Slow Download"',
  6617. '<body class="body" >',
  6618. 'optional--',
  6619. "//a[contains(@href,'yunfile.com') or contains(@href,'filemarkets.com')]"
  6620. );
  6621. }
  6622. /* if (GM_getValue("Check_putlocker_dot_com_links", false))
  6623. {
  6624. addFileHost(
  6625. "putlocker\\.com\/file\/\\w{16}",
  6626. 'as Free User|<a class="continue"|Continue to file|#feedback_btn|application file_standalone',
  6627. 'Welcome to PutLocker|<div class="sad_face_image">|404:',
  6628. 'undergoing scheduled maintenance',
  6629. "//a[contains(@href,'putlocker.com/file')]"
  6630. );
  6631. } */
  6632. if (GM_getValue("Check_uploadhero_dot_com_links", false))
  6633. {
  6634. addFileHost(
  6635. "uploadhero\\.com\/dl\/\\w+",
  6636. 'content-dl">',
  6637. 'men_file_lost\\.jpg"',
  6638. 'optional--',
  6639. "//a[contains(@href,'uploadhero.com/dl')]"
  6640. );
  6641. }
  6642. if (GM_getValue("Check_unibytes_dot_com_links", false))
  6643. {
  6644. addFileHost(
  6645. "unibytes\\.com\/[\\w\.]+",
  6646. 'trying to download|пытаетесь загрузить файл|tes entrain de tlcharger',
  6647. 'File not found|Файл не найден|',
  6648. 'optional--',
  6649. "//a[contains(@href,'unibytes.com')]"
  6650. );
  6651. }
  6652. if (GM_getValue("Check_hellshare_dot_com_links", false)) //very old type of links
  6653. {
  6654. addFileHost(
  6655. "www\\.hellshare\\.com\/\\d+",
  6656. 'tab\\-details"',
  6657. 'list-purp-2"|not found on this server',
  6658. 'optional--',
  6659. "//a[contains(@href,'www.hellshare.com')]"
  6660. );
  6661. }
  6662. if (GM_getValue("Check_quickshare_dot_cz_links", false)) //folders
  6663. {
  6664. addFileHost(
  6665. "quickshare\\.cz\/slozka-\\d+",
  6666. 'Počet souborů: <strong>[1-9]',
  6667. 'Počet souborů: <strong>0|Chyba! Taková složka neexistuje',
  6668. 'optional--',
  6669. "//a[contains(@href,'quickshare.cz/slozka')]"
  6670. );
  6671. }
  6672. if (GM_getValue("Check_filefactory_dot_com_links", false)) //folders
  6673. {
  6674. addFileHost(
  6675. "filefactory\\.com\/f\/\\w+",
  6676. 'folderFileList">',
  6677. 'table class="items"|Pointer" class="red">',
  6678. 'optional--',
  6679. "//a[contains(@href,'filefactory.com/f/')]"
  6680. );
  6681. }
  6682. if (GM_getValue("Check_netload_dot_in_links", false)) //folders
  6683. {
  6684. addFileHost(
  6685. "netfolder\\.in\/\\w+",
  6686. 'list" value="http',
  6687. 'InPage_Error">|list" value=""',
  6688. 'optional--',
  6689. "//a[contains(@href,'netfolder.in')]"
  6690. );
  6691. }
  6692. if (GM_getValue("Check_load_dot_to_links", false))
  6693. {
  6694. addFileHost(
  6695. '(?:www\\.|\\/)load\\.to\\/(?:\\w{10}\\/.|\\?d=\\w{10})',
  6696. '"download_table_left">Size',
  6697. 'Can\'t find file',
  6698. 'optional--',
  6699. "//a[contains(@href,'/load.to/') or contains(@href,'www.load.to/')]"
  6700. );
  6701. }
  6702. if (GM_getValue("Check_freakshare_dot_net_links", false))
  6703. {
  6704. addFileHost(
  6705. "freakshare\\.(?:net|com)\/files\/",
  6706. 'box_heading',
  6707. '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|الملف المطلوب غير موجود',
  6708. 'Your Traffic is used up for today',
  6709. "//a[(contains(@href,'freakshare.net') or contains(@href,'freakshare.com')) and contains(@href,'files')]",
  6710. true
  6711. );
  6712. //folders
  6713. addFileHost(
  6714. "freakshare\\.(?:net|com)\/folder\/",
  6715. 'Files: [1-9]',
  6716. 'Files: 0',
  6717. 'optional--',
  6718. "//a[(contains(@href,'freakshare.net') or contains(@href,'freakshare.com')) and contains(@href,'folder')]",
  6719. true
  6720. );
  6721. }
  6722. if (GM_getValue("Check_divshare_dot_com_links", false))
  6723. {
  6724. addFileHost(
  6725. "divshare\\.com\/download\/",
  6726. 'download_new\.png',
  6727. 'have been removed',
  6728. 'optional--',
  6729. "//a[contains(@href,'divshare.com')]"
  6730. );
  6731. }
  6732. if (GM_getValue("Check_stahovadlo_dot_cz_links", false))
  6733. {
  6734. addFileHost(
  6735. "stahovadlo\\.cz\/soubor\/\\d+\/[\\.\\w]+",
  6736. 'download" type="submit',
  6737. 'Neplatný nebo neúplný odkaz|Soubor již není dostupný',
  6738. 'optional--',
  6739. "//a[contains(@href,'stahovadlo.cz/soubor')]",
  6740. true
  6741. );
  6742. }
  6743. if (GM_getValue("Check_euroshare_dot_eu_links", false))
  6744. {
  6745. addFileHost(
  6746. "euroshare\\.(?:eu|pl|sk|cz|hu)\/file\/\\d+",
  6747. 'nazev-souboru">',
  6748. '<div id="obsah">\\s*<h1>',
  6749. 'optional--',
  6750. "//a[contains(@href,'euroshare.eu/file')]"
  6751. );
  6752. }
  6753. if (GM_getValue("Check_files_dot_mail_dot_ru_links", false))
  6754. {
  6755. addFileHost(
  6756. 'files\\.mail\\.ru/(?:\\w*)',
  6757. 'fileList',
  6758. 'errorMessage',
  6759. 'optional--',
  6760. "//a[contains(@href,'files.mail.ru')]"
  6761. );
  6762. }
  6763. if (GM_getValue("Check_megashares_dot_com_links", false))
  6764. {
  6765. addFileHost(
  6766. "(?:d\\d+\.|)megashares\.com\/(?:dl|index\.php\\?d|\\?d\\d+=\\w+)",
  6767. 'Filesize',
  6768. 'Invalid|deleted|Could not download file',
  6769. 'slots|scheduled maintenance',
  6770. "//a[contains(@href,'megashares.com/')]"
  6771. );
  6772. }
  6773. if (GM_getValue("Check_narod_dot_ru_links", false))
  6774. {
  6775. addFileHost(
  6776. 'narod\\.(?:yandex\\.|)ru\/disk\/',
  6777. 'b-submit',
  6778. 'b-download-virus-note|headCode">404<',
  6779. 'Внутренняя ошибка сервиса',
  6780. "//a[contains(@href,'narod.ru') or contains(@href,'narod.yandex.ru')]"
  6781. );
  6782. }
  6783. if (GM_getValue("Check_rayfile_dot_com_links", false))
  6784. {
  6785. addFileHost(
  6786. "rayfile\\.com\/",
  6787. 'FILEtitleTXT',
  6788. 'blueRow',
  6789. 'optional--',
  6790. "//a[contains(@href,'rayfile.com/') and contains(@href,'files')]"
  6791. );
  6792. }
  6793. if (GM_getValue("Check_filesmonster_dot_com_links", false))
  6794. {
  6795. addFileHost(
  6796. "filesmonster\\.com\/download\\.php\\?id=\\w+",
  6797. 'button_green_body"',
  6798. 'error">',
  6799. 'optional--',
  6800. "//a[contains(@href,'filesmonster.com/download')]"
  6801. );
  6802. }
  6803. if (GM_getValue("Check_usaupload_dot_net_links", false))
  6804. {
  6805. addFileHost(
  6806. 'usaupload\\.net\/d\/(?:\w*)',
  6807. '<strong>File size:</strong>',
  6808. 'is not available',
  6809. 'optional--',
  6810. "//a[contains(@href,'usaupload.net/d/')]"
  6811. );
  6812. }
  6813. if (GM_getValue("Check_sendspace_dot_com_links", false))
  6814. {
  6815. addFileHost(
  6816. 'sendspace\\.com\/file\/\\w+',
  6817. 'file_description',
  6818. 'msg error"',
  6819. 'optional--',
  6820. "//a[contains(@href,'sendspace.com/file')]"
  6821. );
  6822. }
  6823. if (GM_getValue("Check_sendspace_dot_pl_links", false))
  6824. {
  6825. addFileHost(
  6826. 'sendspace\\.pl\/file\/\\w+',
  6827. 'download_file"',
  6828. 'Podany plik nie',
  6829. 'optional--',
  6830. "//a[contains(@href,'sendspace.pl/file')]"
  6831. );
  6832. }
  6833. if (GM_getValue("Check_uploading_dot_com_links", false))
  6834. {
  6835. addFileHost(
  6836. 'uploading\\.com\/(?:files\/)?\\w+',
  6837. 'free_method">',
  6838. 'file_error">|error_404">|file not found|OOPS! Looks like file not found',
  6839. 'optional--',
  6840. "//a[contains(@href,'uploading.com')]"
  6841. );
  6842. }
  6843. if (GM_getValue("Check_gigasize_dot_com_links", false))
  6844. {
  6845. addFileHost(
  6846. 'gigasize\\.com\/get\\.php(?:\/\\d+|\\?d=\\w+)',
  6847. 'fileId"',
  6848. 'error">',
  6849. 'optional--',
  6850. "//a[contains(@href,'gigasize.com/get')]"
  6851. );
  6852. }
  6853. if (GM_getValue("Check_good_dot_com_links", false))
  6854. {
  6855. addFileHost(
  6856. 'good\\.net\/(?:_|dl)',
  6857. 'Free Download',
  6858. 'Not Found',
  6859. 'Forbidden',
  6860. "//a[contains(@href,'good.net')]"
  6861. );
  6862. }
  6863. if (GM_getValue("Check_2shared_dot_com_links", false))
  6864. {
  6865. addFileHost(
  6866. '2shared\\.com\/(?:file|video|document|audio)\/\\w*',
  6867. 'File size',
  6868. 'File not found|is not valid|/images/important.gif',
  6869. 'optional--',
  6870. "//a[contains(@href,'2shared.com/file/') or contains (@href,'2shared.com/audio/') or contains (@href,'2shared.com/document/') or contains (@href,'2shared.com/video/')]"
  6871. );
  6872. }
  6873. if (GM_getValue("Check_turboupload_dot_com_links", false))
  6874. {
  6875. addFileHost(
  6876. 'turboupload\\.com\/\\w*',
  6877. 'You have requested',
  6878. 'File Not Found',
  6879. 'optional--',
  6880. "//a[contains(@href,'turboupload.com')]"
  6881. );
  6882. }
  6883. if (GM_getValue("Check_gigapeta_dot_com_links", false))
  6884. {
  6885. addFileHost(
  6886. 'gigapeta\\.com\/dl\/',
  6887. 'Download file|Скачать файл| Herunterzuladen|Scarica il file|Cargar el fichero|Charger le fichier',
  6888. '404|page_error',
  6889. 'optional--',
  6890. "//a[contains(@href,'gigapeta.com/dl')]"
  6891. );
  6892. }
  6893. if (GM_getValue("Check_veehd_dot_com_links", false))
  6894. {
  6895. addFileHost(
  6896. 'veehd\.com\/video\/.*?',
  6897. 'No sound|Download video',
  6898. 'Featured Videos',
  6899. 'optional--',
  6900. "//a[contains(@href,'veehd.com') and contains(@href,'video')]"
  6901. );
  6902. }
  6903. if (GM_getValue("Check_vip_dash_file_dot_com_links", false))
  6904. {
  6905. addFileHost(
  6906. '(?:u\\d+\\.)?vip-file\\.com\/download.*?\/(?:.*?)\/(?:.*?)\\.html',
  6907. 'fast_download_form">|submit_sms_download',
  6908. '<p style="text-align:center">',
  6909. 'optional--',
  6910. "//a[contains(@href,'vip-file.com/download')]"
  6911. );
  6912. }
  6913. if (GM_getValue("Check_letitbit_dot_net_links", false))
  6914. {
  6915. addFileHost(
  6916. '(?:u\\d+\\.)?letitbit\\.net\/download\/\\w+',
  6917. 'download\\-pnl ',
  6918. 'color:#000">|Запрашиваемый файл не найден|страница не существует|File not found|',
  6919. 'optional--',
  6920. "//a[contains(@href,'letitbit.net/download')]"
  6921. );
  6922. }
  6923. if (GM_getValue("Check_ifolder_dot_ru_links", false))
  6924. {
  6925. addFileHost(
  6926. 'ifolder\.ru\/\\d+',
  6927. 'file-info',
  6928. 'ui-state-error',
  6929. 'optional--',
  6930. "//a[contains(@href,'ifolder.ru')]"
  6931. );
  6932. }
  6933. if (GM_getValue("Check_fileswap_dot_com_links", false))
  6934. {
  6935. addFileHost(
  6936. 'fileswap\\.com\/dl\/\\w+',
  6937. 'bttnDownloadLink"',
  6938. 'rounded_block_error"',
  6939. 'is temporary unavailable|disponible en estos momentos|vorläufig unerreichbar|Файл временно недоступен',
  6940. "//a[contains(@href,'fileswap.com/dl')]"
  6941. );
  6942. }
  6943. if (GM_getValue("Check_filecloud_dot_io_links", false))
  6944. {
  6945. addFileHost(
  6946. '(?:s\\d+\\.)?filecloud\\.io\/\\w+',
  6947. 'var __error = 0',
  6948. 'FILES__DOESNT_EXIST|removed or did not exist',
  6949. 'optional--',
  6950. "//a[contains(@href,'filecloud.io/')]"
  6951. );
  6952. addFileHost(
  6953. 'ifile\\.it\/\\w+',
  6954. 'var __error = 0',
  6955. 'FILES__DOESNT_EXIST',
  6956. 'optional--',
  6957. "//a[contains(@href,'ifile.it/')]"
  6958. );
  6959. }
  6960. if (GM_getValue("Check_solidfiles_dot_com_links", false))
  6961. {
  6962. addFileHost(
  6963. 'solidfiles\\.com\/d\/\\w+',
  6964. 'id="download"|content="Download',
  6965. '>Not found<|<h2>404</h2>|Page not found|<h1>404</h1>|File not available|no longer available',
  6966. 'optional--',
  6967. "//a[contains(@href,'solidfiles.com/d')]"
  6968. );
  6969. }
  6970. if (GM_getValue("Check_shareflare_dot_net_links", false))
  6971. {
  6972. addFileHost(
  6973. "(?:.\\.|)shareflare\\.net",
  6974. 'download-pnl|<div class="premium-block">',
  6975. 'File not found|Поиск зеркала на фа|<div id="captcha"',
  6976. 'optional--',
  6977. "//a[contains(@href,'shareflare.net') and contains(@href,'download')]"
  6978. );
  6979. }
  6980. if (GM_getValue("Check_u18116681_dot_shareflare_dot_net_links", false))
  6981. {
  6982. addFileHost(
  6983. "u18116681.shareflare\\.net",
  6984. 'download-pnl|<div class="premium-block">',
  6985. 'File not found|Поиск зеркала на фа|<div id="captcha"',
  6986. 'optional--',
  6987. "//a[contains(@href,'shareflare.net') and contains(@href,'download')]"
  6988. );
  6989. }
  6990. if (GM_getValue("Check_uloz_dot_to_links", false))
  6991. {
  6992. addFileHost(
  6993. "(?:uloz|ulozto|bagruj|zachowajto)\\.(to|cz|sk|net|pl)\/\\w",
  6994. 'fileDownload">|fileSize">',
  6995. 'grayButton deletedFile">|Stránka nenalezena|upload-button"|jako soukromý.',
  6996. 'passwordProtectedFile">|frmaskAgeForm-disagree',
  6997. "//a[contains(@href,'bagruj.cz') or contains(@href,'uloz.to') or contains(@href,'ulozto.') or contains(@href,'zachowajto.pl')]",
  6998. true
  6999. );
  7000. }
  7001. if (GM_getValue("Check_hellspy_dot_com_links", false))
  7002. {
  7003. addFileHost(
  7004. "hellspy\.(?:com|cz|sk|hu|pl)\/\\w+",
  7005. 'file\\-list-orderby|section-filedetail">',
  7006. '<\/span><\/h2>\\s*<p>|list-purp-2">|flash info sticky">',
  7007. 'optional--',
  7008. "//a[contains(@href,'hellspy.')]"
  7009. );
  7010. }
  7011. if (GM_getValue("Check_leteckaposta_dot_cz_links", false))
  7012. {
  7013. addFileHost(
  7014. "(?:leteckaposta\\.cz|sharegadget\\.com)\/\\d+",
  7015. '<body onload="">',
  7016. 'neexistuje|not exist',
  7017. 'optional--',
  7018. "//a[contains(@href,'leteckaposta.cz') or contains(@href,'sharegadget.com')]"
  7019. );
  7020. }
  7021. if (GM_getValue("Check_stahovanizasms_dot_cz_links", false))
  7022. {
  7023. addFileHost(
  7024. "stahovanizasms\\.cz\/\\w+",
  7025. 'download\\.png>|font-size:11px><tr>',
  7026. 'smaz.n u.ivatelem|font-size:11px><\/table>',
  7027. 'optional--',
  7028. "//a[contains(@href,'stahovanizasms.cz')]"
  7029. );
  7030. }
  7031. if (GM_getValue("Check_share_dash_links_dot_biz_links", false))
  7032. {
  7033. addFileHost(
  7034. "share-links\\.biz\/\\w*",
  7035. 'online\\.gif',
  7036. '(?:offline|parts)\\.gif',
  7037. 'optional--',
  7038. "//a[contains(@href,'share-links.biz')]"
  7039. );
  7040. }
  7041. if (GM_getValue("Check_4shared_dot_com_links", false))
  7042. {
  7043. addFileHost(
  7044. "4shared\\.com\/.+\/",
  7045. '<input type="hidden" class="jsSocialTwDefaultText" value=',
  7046. 'class="warn\"|big red"|GetDataBack',
  7047. 'Service Unavailable',
  7048. "//a[contains(@href,'4shared.com')]"
  7049. );
  7050. }
  7051. if (GM_getValue("Check_zippyshare_dot_com_links", false))
  7052. {
  7053. addFileHost(
  7054. "(?:www\\d+\.|)zippyshare\.com\/",
  7055. 'download\.png|Download Now|images/download_small.png|id="dlbutton"',
  7056. 'not exist|Status 404',
  7057. 'optional--',
  7058. "//a[contains(@href,'zippyshare.com') and contains(@href,'file.html')]"
  7059. );
  7060. }
  7061. if (GM_getValue("Check_mediafire_dot_com_links", false))
  7062. {
  7063. addFileHost(
  7064. "mediafire\.com\/",
  7065. 'download_file_title|dlFileName|id="PLAY_downloadButton"',
  7066. 'error\\.php\\?|error_msg_title|<title>Simple File Sharing|No files found',
  7067. 'set to private',
  7068. "//a[contains(@href,'mediafire.com')]"
  7069. );
  7070. }
  7071. if (GM_getValue("Check_uploaded_dot_to_links", false))
  7072. {
  7073. addFileHost(
  7074. '(?:uploaded\\.(?:to|net)\/(?:.id|file|folder|f|410|404))|(?:ul\\.to\/)',
  7075. '<h2>Authentification</h2></li>| MB|0 seconds',
  7076. 'box_red|Error: 404|Error: 410|fileList"><thead><tr><td colspan="2"><\/td><\/tr><\/thead><tbody>\\s*<tr>|<title>uploaded.net</title>',
  7077. 'optional--',
  7078. "//a[contains(@href,'uploaded.to/') or contains(@href,'uploaded.net/') or contains(@href,'ul.to/')]"
  7079. );
  7080. }
  7081. if (GM_getValue("Check_ulozisko_dot_sk_links", false))
  7082. {
  7083. addFileHost(
  7084. "ulozisko\.sk\/",
  7085. 'Detaily',
  7086. 'neexistuje',
  7087. 'optional--',
  7088. "//a[contains(@href,'ulozisko.sk')]"
  7089. );
  7090. }
  7091. if (GM_getValue("Check_upnito_dot_sk_links", false))
  7092. {
  7093. addFileHost(
  7094. "(?:dl.\\.|)upnito\\.sk\/(download|subor|file)",
  7095. 'download.php',
  7096. 'notfound|upload\\-suborov\\.php"',
  7097. 'optional--',
  7098. "//a[contains(@href,'upnito.sk')]"
  7099. );
  7100. }
  7101. if (GM_getValue("Check_dataport_dot_cz_links", false))
  7102. {
  7103. addFileHost(
  7104. "dataport\.cz\/file\/",
  7105. 'premium_download">',
  7106. '="error">',
  7107. 'optional--',
  7108. "//a[contains(@href,'dataport.cz/file')]",
  7109. true
  7110. );
  7111. }
  7112. if (GM_getValue("Check_uptobox_dot_com_links", false))
  7113. {
  7114. addFileHost(
  7115. "uptobox\\.com\/\\w+",
  7116. 'Create Download Link">',
  7117. '500px;text-align:left;">|File not found|Fichier introuvable',
  7118. 'Maintenance|not available in your country',
  7119. "//a[contains(@href,'uptobox.com')]"
  7120. );
  7121. }
  7122. if (GM_getValue("Check_sharecash_dot_org_links", false))
  7123. {
  7124. addFileHost(
  7125. "sharecash\\.org\/download\\.php\\?file=\\d+",
  7126. 'FILE DOWNLOAD<',
  7127. 'File Does Not Exist',
  7128. 'optional--',
  7129. "//a[contains(@href,'sharecash.org/download.php')]"
  7130. );
  7131. }
  7132. if (GM_getValue("Check_depositfiles_dot_com_links", false)) //folders
  7133. {
  7134. addFileHost(
  7135. "depositfiles\\.com\/folders\/\\w+",
  7136. '<div class="progressContainer">',
  7137. '<div id="files" class="files">\\s*<\/div>',
  7138. 'optional--',
  7139. "//a[contains(@href,'depositfiles.com/folders')]"
  7140. );
  7141. }
  7142. if (GM_getValue("Check_depositfiles_dot_com_links", false))
  7143. {
  7144. addFileHost(
  7145. "depositfiles\\.com\/|depositfiles.org|dfiles\.eu|dfiles.ru",
  7146. '<b>File Download</b>|File name|Nom du fichier|Nome do arquivo|speed_small\.gif',
  7147. 'Such file does not exist|<div class="no_download_msg"|This file does not exist',
  7148. 'optional--',
  7149. "//a[contains(@href,'depositfiles') or contains(@href,'dfiles')]"
  7150. );
  7151. }
  7152. if (GM_getValue("Check_rapidfileshare_dot_net_links", false))
  7153. {
  7154. addFileHost(
  7155. "rapidfileshare\\.net/\\w+",
  7156. '<div id="upload-header-bg">',
  7157. '<div style="width:500px;text-align:left;">',
  7158. 'optional--',
  7159. "//a[contains(@href,'rapidfileshare.net/')]"
  7160. );
  7161. }
  7162. if (GM_getValue("Check_stiahnito_dot_sk_links", false))
  7163. {
  7164. addFileHost(
  7165. "stiahnito\\.sk/",
  7166. '<span class="filesize right">',
  7167. '<ol class="list-purp-2">',
  7168. 'optional--',
  7169. "//a[contains(@href,'stiahnito.sk/')]"
  7170. );
  7171. }
  7172. if (GM_getValue("Check_rusfolder_dot_com_links", false))
  7173. {
  7174. addFileHost(
  7175. "rusfolder\\.(?:com|net)",
  7176. '"download-step-one-form"|Название: <b>|Файлы|Файлы в папке',
  7177. '"ui-state-error ui-corner-all"|File is removed|File not found|удален',
  7178. 'optional--',
  7179. "//a[contains(@href,'rusfolder')]"
  7180. );
  7181. }
  7182. if (GM_getValue("Check_fileover_dot_net_links", false))
  7183. {
  7184. addFileHost(
  7185. "fileover\\.net/\\d+",
  7186. 'id="filesize"',
  7187. 'Not found or deleted|The following file is unavailable',
  7188. 'optional--',
  7189. "//a[contains(@href,'fileover.net/')]"
  7190. );
  7191. }
  7192. if (GM_getValue("Check_catshare_dot_net_links", false))
  7193. {
  7194. addFileHost(
  7195. "catshare\\.net/\\w+",
  7196. '"icon-share',
  7197. 'alert alert-error',
  7198. 'optional--',
  7199. "//a[contains(@href,'catshare.net/')]"
  7200. );
  7201. }
  7202. if (GM_getValue("Check_anonfiles_dot_com_links", false))
  7203. {
  7204. addFileHost(
  7205. "anonfiles\\.com/\\w+",
  7206. '"download_button"',
  7207. '<legend><b>404</b>',
  7208. 'optional--',
  7209. "//a[contains(@href,'anonfiles.com')]"
  7210. );
  7211. }
  7212. if (GM_getValue("Check_mixturecloud_dot_com_links", false))
  7213. {
  7214. addFileHost(
  7215. "mixturecloud\\.com/media/\\w+",
  7216. '"btn icon i_globe gray share_150',
  7217. '"s_cross_close"></span> 404:',
  7218. 'optional--',
  7219. "//a[contains(@href,'mixturecloud.com/media/')]"
  7220. );
  7221. }
  7222. if (GM_getValue("Check_akafile_dot_com_links", false))
  7223. {
  7224. addFileHost(
  7225. "akafile\\.com\/\\w+",
  7226. 'download1',
  7227. 'File Not Found',
  7228. 'optional--',
  7229. "//a[contains(@href,'akafile.com/')]"
  7230. );
  7231. }
  7232. if (GM_getValue("Check_creafile_dot_net_links", false))
  7233. {
  7234. addFileHost(
  7235. "creafile\\.net\/\\w+",
  7236. 'downloadblock',
  7237. 'errtitle',
  7238. 'optional--',
  7239. "//a[contains(@href,'creafile.net/')]"
  7240. );
  7241. }
  7242. if (GM_getValue("Check_hugefiles_dot_net_links", false))
  7243. {
  7244. addFileHost(
  7245. "hugefiles\\.net\/\\w+",
  7246. 'download1|class="btn-create-download" value="Create Download Link">',
  7247. 'File Not Found|No such file with this filename',
  7248. 'optional--',
  7249. "//a[contains(@href,'hugefiles.net/')]"
  7250. );
  7251. }
  7252. if (GM_getValue("Check_sendmyway_dot_com_links", false))
  7253. {
  7254. addFileHost(
  7255. "sendmyway\\.com\/\\w+",
  7256. 'id="btn_download"',
  7257. '500px;text-align:left;"|<center><h3>',
  7258. 'optional--',
  7259. "//a[contains(@href,'sendmyway.com/')]"
  7260. );
  7261. }
  7262. if (GM_getValue("Check_upload_dot_ee_links", false))
  7263. {
  7264. addFileHost(
  7265. "upload\\.ee\/\\w+",
  7266. 'onmouseout="document.dllink.src',
  7267. 'There is no such file.|File was deleted|Fail kustutati|Файл удалён|Такого файла нет',
  7268. 'optional--',
  7269. "//a[contains(@href,'upload.ee/')]"
  7270. );
  7271. }
  7272. if (GM_getValue("Check_shareplace_dot_org_links", false))
  7273. {
  7274. addFileHost(
  7275. "shareplace\\.org\/\\?\\w+",
  7276. 'Download-Link',
  7277. 'Your requested file is not found|Select file to send',
  7278. 'optional--',
  7279. "//a[contains(@href,'shareplace.org/?')]"
  7280. );
  7281. }
  7282. if (GM_getValue("Check_uploadc_dot_com_links", false))
  7283. {
  7284. addFileHost(
  7285. "uploadc\\.com\/\\w+",
  7286. 'id="prebut"',
  7287. 'File Not Found|This file has been removed due',
  7288. 'optional--',
  7289. "//a[contains(@href,'uploadc.com/')]"
  7290. );
  7291. }
  7292. if (GM_getValue("Check_remixshare_dot_com_links", false))
  7293. {
  7294. addFileHost(
  7295. "remixshare\\.com\/\\w+",
  7296. 'id="dl2"',
  7297. '<table class=\'failed\'><tr><td width=\'90%\'>|Sorry, die Datei konnte nicht gefunden werden',
  7298. 'optional--',
  7299. "//a[contains(@href,'remixshare.com/')]"
  7300. );
  7301. }
  7302. if (GM_getValue("Check_exoshare_dot_com_links", false))
  7303. {
  7304. addFileHost(
  7305. "exoshare\\.com\/download\\.php\\?uid=\\w+",
  7306. 'Last Download :',
  7307. 'img src="\\/404.jpg"',
  7308. 'optional--',
  7309. "//a[contains(@href,'exoshare.com/download.php')]"
  7310. );
  7311. }
  7312. if (GM_getValue("Check_borncash_dot_org_links", false))
  7313. {
  7314. addFileHost(
  7315. "borncash\\.org\/download\/\\?a=\\w+",
  7316. 'class="knop_1"',
  7317. '\/error\/er00',
  7318. 'optional--',
  7319. "//a[contains(@href,'borncash.org/download/')]"
  7320. );
  7321. }
  7322. if (GM_getValue("Check_vidplay_dot_net_links", false))
  7323. {
  7324. addFileHost(
  7325. "vidplay\.net\/\\w+",
  7326. 'solvemedia puzzle widget',
  7327. 'File not found|AVOID_IE_BUG',
  7328. 'optional--',
  7329. "//a[contains(@href,'vidplay.net')]");
  7330. }
  7331. if (GM_getValue("Check_storagon_dot_com_links", false))
  7332. {
  7333. addFileHost(
  7334. "storagon\.com\/\\w+",
  7335. 'class="icon-cloud-download"></i>|content="Download Options',
  7336. 'content="Download Downloads|class="error-container">|class="bigger-300 bolder">404<',
  7337. 'optional--',
  7338. "//a[contains(@href,'storagon.com')]");
  7339. }
  7340. if (GM_getValue("Check_filedais_dot_com_links", false))
  7341. {
  7342. addFileHost(
  7343. "filedais\.com\/\\w+",
  7344. 'class="btn btn-info"|name="method_free"',
  7345. 'style="width:500px;text-align:left;">|File Not Found|AVOID_IE_BUG',
  7346. 'optional--',
  7347. "//a[contains(@href,'filedais.com')]");
  7348. }
  7349. if (GM_getValue("Check_ryushare_dot_com_links", false))
  7350. {
  7351. addFileHost(
  7352. "ryushare\.com\/\\w+",
  7353. 'KB|MB',
  7354. '<div style="width:500px;text-align:left;">',
  7355. 'in maintenance mode|Software error:',
  7356. "//a[contains(@href,'ryushare.com')]");
  7357. }
  7358. if (GM_getValue("Check_up_dot_4share_dot_vn_links", false))
  7359. {
  7360. addFileHost(
  7361. "up.4share\.vn\/\\w+",
  7362. '<font size="2" face="Verdana">',
  7363. 'font: 13px Tahoma; color: Brown',
  7364. 'optional--',
  7365. //'optional--',
  7366. "//a[contains(@href,'up.4share.vn')]");
  7367. }
  7368. if (GM_getValue("Check_share_dot_vnn_dot_vn_links", false))
  7369. {
  7370. addFileHost(
  7371. "share.vnn\.vn\/\\w+",
  7372. '"index,follow"|<div class="main" id="download-box">',
  7373. '<meta name="description" content="" />|<h1>Không tìm thấy file bạn yêu cầu</h1>',
  7374. 'optional--',
  7375. //'optional--',
  7376. "//a[contains(@href,'share.vnn.vn')]");
  7377. }
  7378. if (GM_getValue("Check_upfile_dot_vn_links", false))
  7379. {
  7380. addFileHost(
  7381. "upfile\.vn\/\\w+",
  7382. 'download-timer',
  7383. '<meta name="description" content="Upload files|<meta name="description" content="Error "',
  7384. 'optional--',
  7385. //'optional--',
  7386. "//a[contains(@href,'upfile.vn')]");
  7387. }
  7388. /* if (GM_getValue("Check_firedrive_dot_com_links", false))
  7389. {
  7390. addFileHost(
  7391. "firedrive\\.com\/file\/\\w{16}",
  7392. 'as Free User|<a class="continue"|Continue to file|#feedback_btn|application file_standalone',
  7393. 'Welcome to PutLocker|<div class="sad_face_image">|404:',
  7394. 'undergoing scheduled maintenance',
  7395. "//a[contains(@href,'firedrive.com/file')]"
  7396. );
  7397. } */
  7398. if (GM_getValue("Check_aisfile_dot_com_links", false))
  7399. {
  7400. addFileHost(
  7401. "aisfile\.com\/\\w+",
  7402. '<h3 style="text-align:left;">|align=right><b>Filename:',
  7403. '<div style="width:500px;text-align:left;">|File Not Found',
  7404. 'optional--',
  7405. //'optional--',
  7406. "//a[contains(@href,'aisfile.com')]");
  7407. }
  7408. if (GM_getValue("Check_usersfiles_dot_com_links", false))
  7409. {
  7410. addFileHost(
  7411. "usersfiles\.com\/\\w+",
  7412. 'class="btn btn-success|id="btn_download" class="btn"',
  7413. '<div style="width:500px;text-align:left;">',
  7414. 'optional--',
  7415. //'optional--',
  7416. "//a[contains(@href,'usersfiles.com')]");
  7417. }
  7418. if (GM_getValue("Check_pan_dot_baidu_dot_com_links", false))
  7419. {
  7420. addFileHost(
  7421. "pan.baidu\.com\/\\w+",
  7422. 'target="_blank" title=|share-personal-info',
  7423. 'share_notfound.png|background:#f9f9f9',
  7424. 'optional--',
  7425. //'optional--',
  7426. "//a[contains(@href,'pan.baidu.com')]");
  7427. }
  7428. if (GM_getValue("Check_yunpan_dot_cn_links", false))
  7429. {
  7430. addFileHost(
  7431. "yunpan\.cn\/\\w+",
  7432. 'class="icon icon-download',
  7433. 'content="360|http://p5.qhimg.com/t01d1c98667df9dc6cc.jpg',
  7434. 'optional--',
  7435. //'optional--',
  7436. "//a[contains(@href,'yunpan.cn')]");
  7437. }
  7438. if (GM_getValue("Check_file_dash_upload_dot_net_links", false))
  7439. {
  7440. addFileHost(
  7441. "(?:en\\.|)file\\-upload\\.net\/download\\-\\d+\/\\w+",
  7442. 'getElementById("downbild")|style.display',
  7443. 'hochgeladene Datei nicht gefunden werden|has not been found',
  7444. 'optional--',
  7445. //'optional--',
  7446. "//a[contains(@href,'file-upload.net')]");
  7447. }
  7448. if (GM_getValue("Check_gulfup_dot_com_links", false))
  7449. {
  7450. addFileHost(
  7451. "gulfup\.com\/",
  7452. '<!-- Downlod template -->|download.gif',
  7453. '<!-- Errors template -->|class="error">|<!-- form upload -->|[ رفع الملفات ]',
  7454. 'optional--',
  7455. //'optional--',
  7456. "//a[contains(@href,'gulfup.com')]");
  7457. }
  7458. if (GM_getValue("Check_datafilehost_dot_com_links", false))
  7459. {
  7460. addFileHost(
  7461. "datafilehost\\.com\/(?:download-\\w+\\.html|d\/\\w+)",
  7462. 'dldtable">',
  7463. 'does not exist\\.',
  7464. 'optional--',
  7465. //'optional--',
  7466. "//a[contains(@href,'datafilehost.com')]");
  7467. }
  7468. if (GM_getValue("Check_box_dot_com_links", false))
  7469. {
  7470. addFileHost(
  7471. "box\.com\/\\w+",
  7472. 'download-file-btn|id="download_button',
  7473. 'BIyMin.png| <div class="error_message|link has been removed',
  7474. 'optional--',
  7475. //'optional--',
  7476. "//a[contains(@href,'app.box.com')]");
  7477. }
  7478. if (GM_getValue("Check_dropbox_dot_com_links", false))
  7479. {
  7480. addFileHost(
  7481. "dropbox\.com\/s\/\\w+",
  7482. 'default_content_download_button" class="freshbutton-blue">|content_download_button',
  7483. '>Nothing Here<|>Error (404)<',
  7484. 'title>Dropbox - 509|Error (403)|Error: 429',
  7485. "//a[contains(@href,'dropbox.com')]");
  7486. }
  7487. if (GM_getValue("Check_box_dot_net_links", false))
  7488. {
  7489. addFileHost(
  7490. "box\.net\/\\w+",
  7491. 'download-file-btn|id="download_button',
  7492. 'BIyMin.png| <div class="error_message',
  7493. 'optional--',
  7494. //'optional--',
  7495. "//a[contains(@href,'box.net')]");
  7496. }
  7497. if (GM_getValue("Check_fileband_dot_com_links", false))
  7498. {
  7499. addFileHost(
  7500. "fileband\.com\/\\w+",
  7501. 'value="download1">|name="id" value=',
  7502. '<div style="width:500px;text-align:left;">|not be found',
  7503. 'optional--',
  7504. //'optional--',
  7505. "//a[contains(@href,'fileband.com')]");
  7506. }
  7507. if (GM_getValue("Check_uploadrocket_dot_net_links", false))
  7508. {
  7509. addFileHost(
  7510. "uploadrocket\.net\/\\w+",
  7511. '<font style="font-size:12px;">|<h2>Download File|method_isfree',
  7512. 'font style="color:#d33;|File Not Found',
  7513. 'optional--',
  7514. //'optional--',
  7515. "//a[contains(@href,'uploadrocket.net')]");
  7516. }
  7517. if (GM_getValue("Check_filedropper_dot_com_links", false))
  7518. {
  7519. addFileHost(
  7520. "filedropper\.com\/\\w+",
  7521. 'background:#ddd;|width:985px; ',
  7522. 'background-color:#FFFFFF;|margin-left: -400px;',
  7523. 'optional--',
  7524. //'optional--',
  7525. "//a[contains(@href,'filedropper.com')]");
  7526. }
  7527. if (GM_getValue("Check_tropicshare_dot_com_links", false))
  7528. {
  7529. addFileHost(
  7530. "tropicshare\\.com\/files\/\\d+",
  7531. 'MB</span>|GB</span>|KB</span>',
  7532. '>FNF<|size: </span>',
  7533. 'optional--',
  7534. //'optional--',
  7535. "//a[contains(@href,'tropicshare.com')]");
  7536. }
  7537. if (GM_getValue("Check_goldbytez_dot_com_links", false))
  7538. {
  7539. addFileHost(
  7540. "goldbytez\.com\/\\w+",
  7541. '<h2>Download</h2>|<center><h2>File: <font color="red">',
  7542. '<div style="width:500px;text-align:left;">|<h2>Error</h2>',
  7543. 'optional--',
  7544. //'optional--',
  7545. "//a[contains(@href,'goldbytez.com')]");
  7546. }
  7547. if (GM_getValue("Check_worldbytez_dot_com_links", false))
  7548. {
  7549. addFileHost(
  7550. "worldbytez\.com\/\\w+",
  7551. '<div class="download_type">',
  7552. '<div style="width:500px;text-align:left;">',
  7553. 'optional--',
  7554. //'optional--',
  7555. "//a[contains(@href,'worldbytez.com')]");
  7556. }
  7557. if (GM_getValue("Check_freefilehosting_dot_net_links", false))
  7558. {
  7559. addFileHost(
  7560. "freefilehosting\.net\/\\w+",
  7561. 'Type: cbr|Type: rar|Type: jpg|Type: mkv|Type: avi|Type: mpg|Type: mpeg|Type: zip|Type: wmvType: bmpType: gifType: mp4Type: mp3',
  7562. '175px;" value="http://www.freefilehosting.net/"|Filename: <br>',
  7563. 'optional--',
  7564. //'optional--',
  7565. "//a[contains(@href,'freefilehosting.net')]");
  7566. }
  7567. if (GM_getValue("Check_ziddu_dot_com_links", false))
  7568. {
  7569. addFileHost(
  7570. "ziddu\.com\/\\w+",
  7571. 'downloads.ziddu.com|downloadfilelinkicon',
  7572. 'errortracking.php|images/oops.png|fontfamilyverdana error',
  7573. 'optional--',
  7574. //'optional--',
  7575. "//a[contains(@href,'ziddu.com')]");
  7576. }
  7577. if (GM_getValue("Check_exclusiveloader_dot_com_links", false))
  7578. {
  7579. addFileHost(
  7580. "exclusiveloader\.com\/\\w+",
  7581. 'style="padding-top:55px; padding-bottom:65px;">|<h2>Download</h2>',
  7582. 'File Not Found|width:322px;text-align:left;" class="no_file">',
  7583. 'optional--',
  7584. //'optional--',
  7585. "//a[contains(@href,'exclusiveloader.com')]");
  7586. }
  7587. if (GM_getValue("Check_sharerapid_dot_cz_links", false))
  7588. {
  7589. addFileHost(
  7590. "sharerapid\.cz\/\\w+",
  7591. 'value="Stáhnout"|soubor" style|Stahování je povoleno pouze pro přihlášené uživatele',
  7592. 'error_div">|404 - Not Found',
  7593. 'optional--',
  7594. //'optional--',
  7595. "//a[contains(@href,'sharerapid.cz')]");
  7596. }
  7597. if (GM_getValue("Check_sdilej_dot_cz_links", false))
  7598. {
  7599. addFileHost(
  7600. "sdilej\.cz\/\\w+",
  7601. 'class="page-download"',
  7602. '<h2 class="red">|czshare.com|sponsored listings|This domain is for sale',
  7603. 'optional--',
  7604. //'optional--',
  7605. "//a[contains(@href,'sdilej.cz')]");
  7606. }
  7607. if (GM_getValue("Check_lafiles_dot_com_links", false))
  7608. {
  7609. addFileHost(
  7610. "lafiles\.com\/\\w+",
  7611. '<div id="pay_modes">',
  7612. '<b class="err"></b>',
  7613. 'optional--',
  7614. //'optional--',
  7615. "//a[contains(@href,'lafiles.com')]");
  7616. }
  7617. if (GM_getValue("Check_fboom_dot_me_links", false))
  7618. {
  7619. addFileHost(
  7620. "fboom\.me\/file\/\\w+",
  7621. 'id="download-free" href="#"',
  7622. 'class="error-v1-title">404<|File not found or deleted',
  7623. 'optional--',
  7624. //'optional--',
  7625. "//a[contains(@href,'fboom.me')]");
  7626. }
  7627. if (GM_getValue("Check_fileboom_dot_me_links", false))
  7628. {
  7629. addFileHost(
  7630. "fileboom\.me\/file\/\\w+",
  7631. 'id="download-free" href="#"',
  7632. 'class="error-v1-title">404<|File not found or deleted',
  7633. 'optional--',
  7634. //'optional--',
  7635. "//a[contains(@href,'fileboom.me')]");
  7636. }
  7637. if (GM_getValue("Check_acefile_dot_net_links", false))
  7638. {
  7639. addFileHost(
  7640. "acefile\.net\/\\w+",
  7641. 'align=right nowrap><b>',
  7642. 'File Not Found|<div style="width:322px;text-align:left;" class="no_file">',
  7643. 'optional--',
  7644. //'optional--',
  7645. "//a[contains(@href,'acefile.net')]");
  7646. }
  7647. if (GM_getValue("Check_megarapid_dot_cz_links", false))
  7648. {
  7649. addFileHost(
  7650. "megarapid\.cz\/\\w+",
  7651. 'value="Stáhnout"|soubor" style|Stahování je povoleno pouze pro přihlášené uživatele',
  7652. 'error_div">|404 - Not Found',
  7653. 'optional--',
  7654. //'optional--',
  7655. "//a[contains(@href,'megarapid.cz')]");
  7656. }
  7657. if (GM_getValue("Check_yadi_dot_sk_links", false))
  7658. {
  7659. addFileHost(
  7660. "yadi\.sk\/\\w+",
  7661. 'twitter:site|View and download',
  7662. 'error code|Nothing found',
  7663. 'optional--',
  7664. //'optional--',
  7665. "//a[contains(@href,'yadi.sk')]");
  7666. }
  7667. if (GM_getValue("Check_imdb_dot_com_links", false))
  7668. {
  7669. addFileHost(
  7670. "imdb\.com\/\\w+",
  7671. 'imdb.com',
  7672. '404 Error',
  7673. 'optional--',
  7674. "//a[contains(@href,'imdb.com')]");
  7675. }
  7676. if (GM_getValue("Check_hitfile_dot_net_links", false))
  7677. {
  7678. addFileHost(
  7679. "hitfile\.net\/\\w+",
  7680. 'class="download-file',
  7681. 'style="width:16px;height:16px;border:0;|File not found|Файл не найден. Возможно он был удален',
  7682. 'optional--',
  7683. //'optional--',
  7684. "//a[contains(@href,'hitfile.net')]");
  7685. }
  7686. /* if (GM_getValue("Check_uploadto_dot_us_links", false))
  7687. {
  7688. addFileHost(
  7689. "uploadto\\.us\/file\/details\/[\\w+-]",
  7690. 'name="recaptcha_response',
  7691. '="/folder/add"|>File (?:not found|restricted|has been deleted)|<title>UPLOADTO.US</title>',
  7692. 'btn-large btn-danger">|Account limitation notice|502 Bad Gateway',
  7693. "//a[contains(@href,'uploadto.us/file')]",
  7694. true);
  7695. } */
  7696. if (GM_getValue("Check_nitroflare_dot_com_links", false))
  7697. {
  7698. addFileHost(
  7699. "nitroflare\.com\/\\w+",
  7700. 'alert.png|LowSpeedMeter.png',
  7701. 'file has been removed|id="error" style="display',
  7702. 'optional--',
  7703. "//a[contains(@href,'nitroflare.com')]");
  7704. }
  7705. if (GM_getValue("Check_up_dot_top4top_dot_net_links", false))
  7706. {
  7707. addFileHost(
  7708. "up.top4top\.net\/\\w+",
  7709. 'start Downlod template',
  7710. 'start err template',
  7711. 'optional--',
  7712. "//a[contains(@href,'up.top4top.net')]");
  7713. }
  7714. if (GM_getValue("Check_filejoker_dot_net_links", false))
  7715. {
  7716. addFileHost(
  7717. "filejoker\.net\/\\w+",
  7718. 'button id="regular-download">Slow|method_free" value="1|<div id="download" class="download0">',
  7719. 'File Not Found|class="not_found|<div id="download" class="not_found">|"err">DMCA Complaint<',
  7720. 'optional--',
  7721. "//a[contains(@href,'filejoker.net')]");
  7722. }
  7723. if (GM_getValue("Check_free_dot_fr_links", false))
  7724. {
  7725. addFileHost(
  7726. "(?:dl.\\.|)free\\.fr",
  7727. 'Valider et t&eacute;l&eacute',
  7728. 'Fichier inexistant',
  7729. 'optional--',
  7730. "//a[contains(@href,'free.fr')]");
  7731. }
  7732. if (GM_getValue("Check_gboxes_dot_com_links", false))
  7733. {
  7734. addFileHost(
  7735. "gboxes\.com\/\\w+",
  7736. 'You have requested|color="red">http://www.gboxes.com',
  7737. 'File Not Found|<div style="width:500px;text-align:left;">',
  7738. 'optional--',
  7739. "//a[contains(@href,'gboxes.com')]");
  7740. }
  7741. if (GM_getValue("Check_1fichier_dot_com_links", false))
  7742. {
  7743. addFileHost(
  7744. "(?:\\w{10}\\.(?:1fichier|dl4free)\\.com\/)|(?:(?:1fichier|dl4free)\\.com\/\\?\\w{10})|(?:www\\.)?\\w{6,}\\.1fichier\\.com",
  7745. '<title>Download</title>|<br/>You must wait|submit" value="Download',
  7746. 'File not found|file could not be found|Select files to send',
  7747. 'optional--',
  7748. "//a[contains(@href,'1fichier') or contains(@href,'dl4free.com/')]"
  7749. );
  7750. }
  7751. if (GM_getValue("Check_led_dot_wf_links", false))
  7752. {
  7753. addFileHost(
  7754. "led\.wf\/\\w+",
  7755. 'logo_0.png|downloads.gif"',
  7756. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link',
  7757. 'optional--',
  7758. "//a[contains(@href,'led.wf')]");
  7759. }
  7760. if (GM_getValue("Check_lan_dot_wf_links", false))
  7761. {
  7762. addFileHost(
  7763. "lan\.wf\/\\w+",
  7764. 'logo_0.png|downloads.gif"',
  7765. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link',
  7766. 'optional--',
  7767. "//a[contains(@href,'lan.wf')]");
  7768. }
  7769. if (GM_getValue("Check_adlink_dot_wf_links", false))
  7770. {
  7771. addFileHost(
  7772. "adlink\.wf\/\\w+",
  7773. 'logo_0.png|downloads.gif"',
  7774. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link',
  7775. 'optional--',
  7776. "//a[contains(@href,'adlink.wf')]");
  7777. }
  7778. if (GM_getValue("Check_click_dot_tf_links", false))
  7779. {
  7780. addFileHost(
  7781. "click\.tf\/\\w+",
  7782. 'logo_0.png|downloads.gif"',
  7783. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link',
  7784. 'optional--',
  7785. "//a[contains(@href,'click.tf')]");
  7786. }
  7787. if (GM_getValue("Check_ssh_dot_tf_links", false))
  7788. {
  7789. addFileHost(
  7790. "ssh\.tf\/\\w+",
  7791. 'logo_0.png|downloads.gif"',
  7792. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link',
  7793. 'optional--',
  7794. "//a[contains(@href,'ssh.tf')]");
  7795. }
  7796. if (GM_getValue("Check_ssh_dot_yt_links", false))
  7797. {
  7798. addFileHost(
  7799. "ssh\.yt\/\\w+",
  7800. 'logo_0.png|downloads.gif"',
  7801. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link',
  7802. 'optional--',
  7803. "//a[contains(@href,'ssh.yt')]");
  7804. }
  7805. if (GM_getValue("Check_yep_dot_pm_links", false))
  7806. {
  7807. addFileHost(
  7808. "yep\.pm\/\\w+",
  7809. 'logo_0.png|downloads.gif"',
  7810. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link',
  7811. 'optional--',
  7812. "//a[contains(@href,'yep.pm')]");
  7813. }
  7814. if (GM_getValue("Check_kyc_dot_pm_links", false))
  7815. {
  7816. addFileHost(
  7817. "kyc\.pm\/\\w+",
  7818. 'logo_0.png|downloads.gif"',
  7819. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link',
  7820. 'optional--',
  7821. "//a[contains(@href,'kyc.pm')]");
  7822. }
  7823. if (GM_getValue("Check_brupload_dot_net_links", false))
  7824. {
  7825. addFileHost(
  7826. "brupload\.net\/\\w+",
  7827. 'Download Gratuito',
  7828. '<div style="width:500px;text-align:left;">',
  7829. 'optional--',
  7830. //'optional--',
  7831. "//a[contains(@href,'brupload.net')]");
  7832. }
  7833. if (GM_getValue("Check_cloudzilla_dot_to_links", false))
  7834. {
  7835. addFileHost(
  7836. "cloudzilla\.to\/\\w+",
  7837. 'btn1" id="free_download|onclick="freeDownload|id="pwd_protected">',
  7838. 'File not found|/imgs/broken.png',
  7839. 'optional--',
  7840. //'optional--',
  7841. "//a[contains(@href,'cloudzilla.to')]");
  7842. }
  7843. if (GM_getValue("Check_fileparadox_dot_in_links", false))
  7844. {
  7845. addFileHost(
  7846. "fileparadox\.in\/\\w+",
  7847. 'CONTENT="Download File|method_free_file',
  7848. '>File Not Found<|id="no_filedownload">|FILE NOT FOUND',
  7849. 'optional--',
  7850. //'optional--',
  7851. "//a[contains(@href,'fileparadox.in')]");
  7852. }
  7853. if (GM_getValue("Check_clicknupload_dot_com_links", false))
  7854. {
  7855. addFileHost(
  7856. "clicknupload\.com\/\\w+",
  7857. 'name="method_free',
  7858. 'File Not Found',
  7859. 'optional--',
  7860. //'optional--',
  7861. "//a[contains(@href,'clicknupload.com')]");
  7862. }
  7863. if (GM_getValue("Check_ex_dash_load_dot_com_links", false))
  7864. {
  7865. addFileHost(
  7866. "ex-load\.com\/\\w+",
  7867. 'name="method_free|<p>Download File:</p>',
  7868. 'Folder Not Found|File Not Found|Error 404',
  7869. 'optional--',
  7870. //'optional--',
  7871. "//a[contains(@href,'ex-load.com')]");
  7872. }
  7873. if (GM_getValue("Check_hexupload_dot_com_links", false))
  7874. {
  7875. addFileHost(
  7876. "hexupload\.com\/\\w+",
  7877. 'button" value="Free|type="submit" value=""',
  7878. 'File Not Found|<div style="width:500px;text-align:left;">',
  7879. 'optional--',
  7880. //'optional--',
  7881. "//a[contains(@href,'hexupload.com')]");
  7882. }
  7883. if (GM_getValue("Check_wizupload_dot_com_links", false))
  7884. {
  7885. addFileHost(
  7886. "wizupload\.com\/\\w+",
  7887. 'btn_download',
  7888. '>File Not Found<',
  7889. 'optional--',
  7890. //'optional--',
  7891. "//a[contains(@href,'wizupload.com')]");
  7892. }
  7893. if (GM_getValue("Check_filecloud_dot_cc_links", false))
  7894. {
  7895. addFileHost(
  7896. "filecloud\.cc\/\\w+",
  7897. 'align="center"><input type="submit" name=',
  7898. 'File Not Found|<Title>FileCloud - Premium Hosting Service<',
  7899. 'optional--',
  7900. //'optional--',
  7901. "//a[contains(@href,'filecloud.cc')]");
  7902. }
  7903. if (GM_getValue("Check_inclouddrive_dot_com_links", false))
  7904. {
  7905. addFileHost(
  7906. "inclouddrive\.com\/\\w+",
  7907. 'initfreedownload',
  7908. '<title>Content Unavailable|The file you are trying to download is no longer available',
  7909. 'optional--',
  7910. //'optional--',
  7911. "//a[contains(@href,'inclouddrive.com')]");
  7912. }
  7913. if (GM_getValue("Check_radicalshare_dot_com_links", false))
  7914. {
  7915. addFileHost(
  7916. "radicalshare\.com\/\\w+",
  7917. 'value="download1|name="method_free"',
  7918. 'File Not Found<|<div style="width:500px;text-align:left;">',
  7919. 'optional--',
  7920. //'optional--',
  7921. "//a[contains(@href,'radicalshare.com')]");
  7922. }
  7923. if (GM_getValue("Check_sharemods_dot_com_links", false))
  7924. {
  7925. addFileHost(
  7926. "sharemods\.com\/\\w+",
  7927. 'name="method_free"',
  7928. 'File Not Found<',
  7929. 'optional--',
  7930. //'optional--',
  7931. "//a[contains(@href,'sharemods.com')]");
  7932. }
  7933. if (GM_getValue("Check_hostr_dot_co_links", false))
  7934. {
  7935. addFileHost(
  7936. "hostr\.co\/\\w+",
  7937. 'method="get"',
  7938. 'File not found<|error-page',
  7939. 'optional--',
  7940. //'optional--',
  7941. "//a[contains(@href,'hostr.co')]");
  7942. }
  7943. if (GM_getValue("Check_filepi_dot_com_links", false))
  7944. {
  7945. addFileHost(
  7946. "filepi\.com\/\\w+",
  7947. 'id="button_start">',
  7948. 'File not found',
  7949. 'optional--',
  7950. //'optional--',
  7951. "//a[contains(@href,'filepi.com')]");
  7952. }
  7953. if (GM_getValue("Check_tikfile_dot_com_links", false))
  7954. {
  7955. addFileHost(
  7956. "tikfile\.com\/\\w+",
  7957. 'btn_download',
  7958. 'File Not Found|file was removed|Reason for deletion',
  7959. 'optional--',
  7960. //'optional--',
  7961. "//a[contains(@href,'tikfile.com')]");
  7962. }
  7963. if (GM_getValue("Check_cloudsix_dot_me_links", false))
  7964. {
  7965. addFileHost(
  7966. "cloudsix\.me\/\\w+",
  7967. 'name="method_free"',
  7968. 'File Not Found|width:500px;text-align:left;">',
  7969. 'optional--',
  7970. //'optional--',
  7971. "//a[contains(@href,'cloudsix.me')]");
  7972. }
  7973. if (GM_getValue("Check_neodrive_dot_co_links", false))
  7974. {
  7975. addFileHost(
  7976. "neodrive\.co\/\\w+",
  7977. 'btn1" id="free_download|onclick="freeDownload|id="pwd_protected">',
  7978. 'File not found|/imgs/broken.png',
  7979. 'optional--',
  7980. //'optional--',
  7981. "//a[contains(@href,'neodrive.co')]");
  7982. }
  7983. if (GM_getValue("Check_chayfile_dot_com_links", false))
  7984. {
  7985. addFileHost(
  7986. "chayfile\.com\/\\w+",
  7987. 'name="method_free"',
  7988. 'File Not Found|<h3>The file was removed by administrator</h3>',
  7989. 'optional--',
  7990. //'optional--',
  7991. "//a[contains(@href,'chayfile.com')]");
  7992. }
  7993. if (GM_getValue("Check_xfileload_dot_com_links", false))
  7994. {
  7995. addFileHost(
  7996. "xfileload\.com\/\\w+",
  7997. 'Filename:|Имя файла:|Dateiname:|nom de fichier :|اسم الملف:|Dosya AdД±|Nazwa:|Nombre de fichero:|NamaFile:|Bestandsnaam:|שם קובץ:"',
  7998. '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..|הקובץ שחיפשת לא נמצא.',
  7999. 'optional--',
  8000. //'optional--',
  8001. "//a[contains(@href,'xfileload.com')]");
  8002. }
  8003. if (GM_getValue("Check_rockfile_dot_eu_links", false))
  8004. {
  8005. addFileHost(
  8006. "rockfile\.eu\/\\w+",
  8007. 'You have requested:',
  8008. 'The file you were looking for could not be found, sorry for any inconvenience.',
  8009. 'optional--',
  8010. //'optional--',
  8011. "//a[contains(@href,'rockfile.eu')]");
  8012. }
  8013. if (GM_getValue("Check_24uploading_dot_com_links", false))
  8014. {
  8015. addFileHost(
  8016. "24uploading\.com\/\\w+",
  8017. 'File:|Download Speed:',
  8018. '<b>File Not Found</b>',
  8019. 'optional--',
  8020. //'optional--',
  8021. "//a[contains(@href,'24uploading.com')]");
  8022. }
  8023. if (GM_getValue("Check_tusfiles_dot_net_links", false))
  8024. {
  8025. addFileHost(
  8026. "tusfiles\.net\/\\w+",
  8027. 'i/icon/dll.png"|>Start download<br',
  8028. 'no longer available<|i/ino.png"',
  8029. 'optional--',
  8030. //'optional--',
  8031. "//a[contains(@href,'tusfiles.net')]");
  8032. }
  8033. if (GM_getValue("Check_2drive_dot_net_links", false))
  8034. {
  8035. addFileHost(
  8036. "2drive\.net\/\\w+",
  8037. 'value="Free Download"',
  8038. 'File Not Found',
  8039. 'optional--',
  8040. //'optional--',
  8041. "//a[contains(@href,'2drive.net')]");
  8042. }
  8043. if (GM_getValue("Check_jumbofile_dot_net_links", false))
  8044. {
  8045. addFileHost(
  8046. "jumbofile\.net\/\\w+",
  8047. 'button" class="" value="Free',
  8048. 'This File Was Deleted',
  8049. 'optional--',
  8050. //'optional--',
  8051. "//a[contains(@href,'jumbofile.net')]");
  8052. }
  8053. if (GM_getValue("Check_ozofiles_dot_com_links", false))
  8054. {
  8055. addFileHost(
  8056. "ozofiles\.com\/\\w+",
  8057. 'button" value="Free',
  8058. 'File Not Found|width:500px;text-align:left;">',
  8059. 'optional--',
  8060. //'optional--',
  8061. "//a[contains(@href,'ozofiles.com')]");
  8062. }
  8063. if (GM_getValue("Check_loudupload_dot_net_links", false))
  8064. {
  8065. addFileHost(
  8066. "loudupload\.net\/\\w+",
  8067. 'value="Get Links',
  8068. 'File Not Found',
  8069. 'optional--',
  8070. //'optional--',
  8071. "//a[contains(@href,'loudupload.net')]");
  8072. }
  8073. if (GM_getValue("Check_rapidsonic_dot_com_links", false))
  8074. {
  8075. addFileHost(
  8076. "(rapidsonic|fileparadox)\\.com\/\\w+",
  8077. 'method_free" id="submit_btn|<h4><i class="icon_document_alt"></i>Download File</h4>',
  8078. '>File Not Found<|id="no_filedownload">|>FILE NOT FOUND<|file has been deleted|No such file with this filename',
  8079. 'optional--',
  8080. //'optional--',
  8081. "//a[contains(@href,'rapidsonic') or contains(@href,'fileparadox.com')]");
  8082. }
  8083. if (GM_getValue("Check_krotix_dot_net_links", false))
  8084. {
  8085. addFileHost(
  8086. "krotix\.net\/\\w+",
  8087. 'btn btn-warning|btn-free',
  8088. 'pageErrors|This File has been removed',
  8089. 'content="Scheduled Maintenance',
  8090. //'optional--',
  8091. "//a[contains(@href,'krotix.net')]");
  8092. }
  8093. if (GM_getValue("Check_userscloud_dot_com_links", false))
  8094. {
  8095. addFileHost(
  8096. "userscloud\.com\/\\w+",
  8097. 'btn_download',
  8098. '>Server OFFLINE|background:#D3D3D3;border-bottom:1px solid #BBB;font:bold 13px Verdana;padding:3px;">',
  8099. 'optional--',
  8100. //'optional--',
  8101. "//a[contains(@href,'userscloud.com')]");
  8102. }
  8103. if (GM_getValue("Check_kumpulbagi_dot_com_links", false))
  8104. {
  8105. addFileHost(
  8106. "kumpulbagi\.com\/\\w+",
  8107. 'class="button download',
  8108. 'internal server error',
  8109. 'optional--',
  8110. //'optional--',
  8111. "//a[contains(@href,'kumpulbagi.com')]");
  8112. }
  8113. if (GM_getValue("Check_faststore_dot_org_links", false))
  8114. {
  8115. addFileHost(
  8116. "faststore\.org\/\\w+",
  8117. 'name="method_free',
  8118. 'File Not Found',
  8119. 'optional--',
  8120. //'optional--',
  8121. "//a[contains(@href,'faststore.org')]");
  8122. }
  8123. if (GM_getValue("Check_prefiles_dot_com_links", false))
  8124. {
  8125. addFileHost(
  8126. "prefiles\.com\/\\w+",
  8127. 'id="method_free',
  8128. 'File not Found',
  8129. 'optional--',
  8130. //'optional--',
  8131. "//a[contains(@href,'prefiles.com')]");
  8132. }
  8133. if (GM_getValue("Check_doraupload_dot_com_links", false))
  8134. {
  8135. addFileHost(
  8136. "doraupload\.com\/\\w+",
  8137. 'btn_download',
  8138. 'class="error-code|Could Not Be Found',
  8139. 'optional--',
  8140. //'optional--',
  8141. "//a[contains(@href,'doraupload.com')]");
  8142. }
  8143. if (GM_getValue("Check_openload_dot_io_links", false))
  8144. {
  8145. addFileHost(
  8146. "openload\.io\/\\w+",
  8147. 'btn btn-primary|class="count">',
  8148. 'class="jumbotron">|We are sorry',
  8149. 'optional--',
  8150. //'optional--',
  8151. "//a[contains(@href,'openload.io')]");
  8152. }
  8153. if (GM_getValue("Check_uploads_dot_xxx_links", false))
  8154. {
  8155. addFileHost(
  8156. "uploads\.xxx\/\\w+",
  8157. 'downoadForFree',
  8158. 'File not found',
  8159. 'optional--',
  8160. //'optional--',
  8161. "//a[contains(@href,'uploads.xxx')]");
  8162. }
  8163.  
  8164. }
  8165. //start here
  8166.  
  8167. //hosts with direct download, so they must be requested for headers only
  8168. function initFileHostsHeadersOnly()
  8169. {
  8170. function addFileHostHeadersOnly(linkRegex, isAliveRegex, isDeadRegex, xpathEx, ispremRegex)
  8171. {
  8172. var host = new Array(5);
  8173. host[0] = linkRegex;
  8174. host[1] = isAliveRegex;
  8175. host[2] = isDeadRegex;
  8176. host[3] = xpathEx;
  8177. host[4] = ispremRegex;
  8178. http_file_hosts_headers_only.push(host);
  8179. }
  8180. if (GM_getValue("Check_uloziste_dot_com_links", false))
  8181. {
  8182. addFileHostHeadersOnly(
  8183. "(?:|files\\.)uloziste\\.com\/\\w+\/\\w+",
  8184. 'Connection: Keep-Alive',
  8185. 'Content-Length: 3857',
  8186. "//a[contains(@href,'uloziste.com')]"
  8187. )
  8188. }
  8189. if (GM_getValue("Check_adrive_dot_com_links", false))
  8190. {
  8191. addFileHostHeadersOnly(
  8192. "adrive\\.com\/public\/\\w+",
  8193. 'Connection: keep-alive',
  8194. 'orig_ref=deleted',
  8195. "//a[contains(@href,'adrive.com')]"
  8196. )
  8197. }
  8198. if (GM_getValue("Check_myupload_dot_dk_links", false))
  8199. {
  8200. addFileHostHeadersOnly(
  8201. "myupload\\.dk\/showfile\/\\w+",
  8202. 'Expires:',
  8203. 'squeeze1\\s+Vary',
  8204. "//a[contains(@href,'myupload.dk/showfile')]"
  8205. )
  8206. }
  8207. }
  8208. //CustomRules
  8209. //functions add...Host copied here
  8210. function addObsoleteHost(linkRegex, xpathEx)
  8211. {
  8212. var host = new Array(2);
  8213. host[0] = linkRegex;
  8214. host[1] = xpathEx;
  8215. http_file_hosts_obsolete.push(host);
  8216. }
  8217. function addFileHost(linkRegex, isAliveRegex, isDeadRegex, isUnavaRegex, xpathEx, tryLoop, ispremRegex)
  8218. {
  8219. var host = new Array(7);
  8220. host[0] = linkRegex;
  8221. host[1] = isAliveRegex;
  8222. host[2] = isDeadRegex;
  8223. host[3] = isUnavaRegex;
  8224. host[4] = xpathEx;
  8225. tryLoop ? host[5] = true : host[5] = false;
  8226. host[6] = ispremRegex;
  8227. http_file_hosts.push(host);
  8228. }
  8229. function addFileHostHeadersOnly(linkRegex, isAliveRegex, isDeadRegex, xpathEx, ispremRegex)
  8230. {
  8231. var host = new Array(5);
  8232. host[0] = linkRegex;
  8233. host[1] = isAliveRegex;
  8234. host[2] = isDeadRegex;
  8235. host[3] = xpathEx;
  8236. host[4] = ispremRegex;
  8237. http_file_hosts_headers_only.push(host);
  8238. }
  8239. //takes a fully built rules array and adds the rules to WARLC
  8240. function applyCustomRules(customRules)
  8241. {
  8242. if (!customRules) return;
  8243. var rules, r, i;
  8244. rules = customRules.rules;
  8245. for (i = 0 ; i < rules.length ; i++)
  8246. {
  8247. r = rules[i];
  8248. if (r.enabled)
  8249. {
  8250. switch (r.type)
  8251. {
  8252. case 'single':
  8253. addFileHost(r.urlregex, r.aliveregex, r.deadregex, r.unavaregex, r.premregex||'', r.xpath);
  8254. break;
  8255. case 'headers':
  8256. addFileHostHeadersOnly(r.urlregex, r.aliveregex, r.deadregex, r.xpath, r.premregex);
  8257. break;
  8258. case 'obsolete':
  8259. addObsoleteHost(r.urlregex, r.xpath)
  8260. break;
  8261. }
  8262. }
  8263. }
  8264. }
  8265.  
  8266.  
  8267. function initFileHostsCustom()
  8268. {
  8269. if (Custom_rules && Custom_rules_text)
  8270. {
  8271. var msg = '';
  8272. if (newVersion)
  8273. msg = 'New version of W.A.R. Links Checker detected.\n\n';
  8274. else if ((now - last_custom_rules_nag) >= 60*24*60*60*1000)
  8275. msg = '60 or more days have passed since this notification.\n\n';
  8276. if (msg && /^\s*@customrule(?:_obsolete)?\s/mi.test(Custom_rules_text))
  8277. {
  8278. GM_setValue('last_custom_rules_nag', ''+new Date().getTime()); //reset nag
  8279. msg +=
  8280. 'Either new version of W.A.R. Links Checker detected or 60 days passed since this notify.\n'+
  8281. 'Please check that your custom rules haven\'t been built into WARLC.\n'+
  8282. 'If not, please share them with us so they can be included in the next version! Built-in rules are always preferred.\n\n'+
  8283. 'We apologize for this annoying notification, but there is a reason to this.\n'+
  8284. 'Ideally, WARLC would check which of your custom rules have been included and disable them. '+
  8285. 'Unfortunately, there is no easy way to do that, but we don\'t want everybody to just use their custom rules '+
  8286. 'forever without ever checking if the built-in ones have been added/fixed. This is currently the only way '+
  8287. 'to remind you that you should try built-in rules, report missing/non-working ones and share your custom rules.';
  8288. setTimeout(function(){alert(msg)},0);
  8289. }
  8290. var customRules = parseCustomRules(Custom_rules_text);
  8291. if (customRules.warning || customRules.error)
  8292. alert('There were ' + customRules.error + ' errors, ' + customRules.warning + ' warnings, ' +
  8293. customRules.note + ' notes found during Custom Rules processing.\n' + customRules.rules.length + ' valid rules found.\n\n' +
  8294. JSON.stringify(customRules.info, null, ' '));
  8295. applyCustomRules(customRules);
  8296. }
  8297. }
  8298. //end of CustomRules processing
  8299.  
  8300.  
  8301.  
  8302. } //end of function start
  8303.  
  8304.  
  8305.  
  8306. function initClipBoardTools()
  8307. {
  8308. unsafeWindow.copyToClipboard = function(text)
  8309. {
  8310. try
  8311. {
  8312. this.netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
  8313.  
  8314. var str = Components.classes["@mozilla.org/supports-string;1"].
  8315. createInstance(Components.interfaces.nsISupportsString);
  8316. if (!str) return false;
  8317.  
  8318. str.data = text;
  8319.  
  8320. var trans = Components.classes["@mozilla.org/widget/transferable;1"].
  8321. createInstance(Components.interfaces.nsITransferable);
  8322. if (!trans) return false;
  8323.  
  8324. trans.addDataFlavor("text/unicode");
  8325. trans.setTransferData("text/unicode", str, text.length * 2);
  8326.  
  8327. var clipid = Components.interfaces.nsIClipboard;
  8328. var clip = Components.classes["@mozilla.org/widget/clipboard;1"].getService(clipid);
  8329. if (!clip) return false;
  8330.  
  8331. clip.setData(trans, null, clipid.kGlobalClipboard);
  8332. } catch (e) {
  8333. GM_log("Error copyToClipboard : " + e);
  8334. alert(e + "\n\nsigned.applets.codebase_principal_support must be set true in about:config")
  8335. }
  8336. }
  8337. }
  8338.  
  8339.  
  8340.  
  8341. //CustomRules
  8342.  
  8343. function escapeRegex(str)
  8344. {
  8345. return str.replace(/[\-\[\]{}()*+?.,\\\^$|#]/g, "\\$&");
  8346. }
  8347.  
  8348.  
  8349. //called internally from parseCustomRules.
  8350. //expected: rule object with array fields baseurl, alivematch etc, everything must already be checked for input errors
  8351. //returns the rule object with string fields urlregex, xpath, aliveregex etc built from the arrays
  8352. function makeCustomRule(rule)
  8353. {
  8354. function makeMatchRegex(arrmatch)
  8355. {
  8356. return escapeRegex(arrmatch.join('\n'))
  8357. .replace(/ +/g, '\\s+') //two or more spaces to any whitespace
  8358. .replace(/\n/g,'|'); //join together
  8359. }
  8360. if (rule.alivematch) rule.aliveregex = makeMatchRegex(rule.alivematch);
  8361. if (rule.deadmatch) rule.deadregex = makeMatchRegex(rule.deadmatch);
  8362. if (rule.unavamatch) rule.unavaregex = makeMatchRegex(rule.unavamatch);
  8363. if (rule.premmatch) rule.premregex = makeMatchRegex(rule.premmatch);
  8364. if (rule.baseurl)
  8365. {
  8366. var i, m, urlregex = [], xpath = [], len = rule.baseurl.length;
  8367. for (i = 0 ; i < len ; i++)
  8368. {
  8369. m = rule.baseurl[i].match(/^([a-z0-9\.-]+)(?: +([a-z \.]+) +)?(\/.*)$/);
  8370. if (m[2]) //baseurl in the form: example. com co.uk net /xxx
  8371. {
  8372. 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'])
  8373. urlregex.push( (m[1] + '(?:'+ m[2].replace(/\s+/g,'|') + ')').replace(/\./g,'\\.') + escapeRegex(m[3]) + '.'); //urlregex.push('example\\.(?:com|co\\.uk|net)/xxx.')
  8374. }
  8375. else //baseurl in the form: example.com/xxx
  8376. {
  8377. xpath.push(m[0]);
  8378. urlregex.push(escapeRegex(m[0]) + '.');
  8379. }
  8380. }
  8381. rule.xpath = "//a[contains(@href,'" + xpath.join("') or contains(@href,'") + "')]";
  8382. rule.urlregex = '(?:[a-z0-9\\.-]+\\.)?(?:' + urlregex.join('|') + ')';
  8383. }
  8384. return rule;
  8385. } //function makeCustomRule
  8386.  
  8387.  
  8388. /*
  8389. Takes a string containing custom link checking rules.
  8390. Returns an object with fields:
  8391. info - contains notes, warnings and errors found during parsing
  8392. rules - the array of custom rules
  8393. note, warning, error - number of each of them found during parsing
  8394. Format of the input string:
  8395. One command per line. Command format: @keyword parameter
  8396. Keywords:
  8397. @customrule, @customrule_obsolete, @customrule_headers - begin a new custom rule. Parameter: name of the rule
  8398. @#customrule, @#customrule_obsolete, @#customrule_headers - begin and parse this custom rule, but don't use it. Parameter: name of the rule
  8399. These keywords can be multiple (any of them will work):
  8400. @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...)
  8401. @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+
  8402. @alivelink, @deadlink - example links
  8403. @baseurl is always required, @alivematch and @deadmatch are required except for obsolete. @unavamatch is ignored for obsolete. @*link is optional.
  8404. Lines starting with // and empty lines are ignored.
  8405. Invalid parameters generate errors and those lines are skipped.
  8406. Other lines generate warnings, but are otherwise ignored (also those before the first @customrule line or inside a rule with invalid name).
  8407. Example:
  8408. @customrule filehost
  8409. @baseurl filehost.com/download/
  8410. @baseurl filehost2. com net /d?=
  8411. @alivematch id="download">
  8412. @deadmatch File not found
  8413. @deadmatch File deleted
  8414. */
  8415. function parseCustomRules(rulesStr)
  8416. {
  8417. var linenum, customRules = {'info': [], 'rules': [], 'note': 0, 'warning': 0, 'error': 0};
  8418. function addInfo(type, msg, ln){
  8419. customRules.info.push({'linenum':(ln===undefined ? linenum+1 : ln+1), 'type':type, 'msg':msg});
  8420. customRules[type]++;
  8421. }
  8422. var lines = rulesStr.match(/^(.*)$/gm); //split into array of lines
  8423. if (!lines) return null;
  8424. lines.push('@#customrule _'); //to save the last rule
  8425. var m, linecount = lines.length;
  8426. var keyword, param, constr, rule, err;
  8427. var TLD = '[a-z]{2,7}(?:\\.[a-z]{2,7})?';
  8428. var TLDorTLDlist = '(?:'+TLD+'| '+TLD+'(?: '+TLD+'){0,9} )'; //TLD or space-separated list of TLDs
  8429. var baseurlRE = new RegExp('^([a-z0-9-]{1,30}(?:\\.[a-z0-9-]{1,30}){0,2}\\.)'+TLDorTLDlist+'(/[^\'"\s\$]{0,50})$', 'i');
  8430. var constraints = {
  8431. 'baseurl': {
  8432. 'single': {'min': 1, 'max': 10, 'paramRE': baseurlRE},
  8433. 'headers': {'min': 1, 'max': 10, 'paramRE': baseurlRE},
  8434. 'obsolete': {'min': 1, 'max': 10, 'paramRE': baseurlRE}},
  8435. 'alivematch': {
  8436. 'single': {'min': 1, 'max': 10, 'paramRE': null},
  8437. 'headers': {'min': 1, 'max': 10, 'paramRE': null}},
  8438. 'deadmatch': {
  8439. 'single': {'min': 1, 'max': 10, 'paramRE': null},
  8440. 'headers': {'min': 1, 'max': 10, 'paramRE': null}},
  8441. 'unavamatch': {
  8442. 'single': {'min': 0, 'max': 10, 'paramRE': null}},
  8443. 'alivelink': {
  8444. 'single': {'min': 0, 'max': 10, 'paramRE': null},
  8445. 'headers': {'min': 0, 'max': 10, 'paramRE': null}},
  8446. 'deadlink': {
  8447. 'single': {'min': 0, 'max': 10, 'paramRE': null},
  8448. 'headers': {'min': 0, 'max': 10, 'paramRE': null},
  8449. 'obsolete': {'min': 0, 'max': 10, 'paramRE': null}}
  8450. };
  8451. for (linenum = 0 ; linenum < linecount ; linenum++)
  8452. {
  8453. //capturing groups: 1 23 4 5 6
  8454. m = lines[linenum].match(/^\s*(?:(\/\/.*)|@((#?)(customrule)(?:_(headers|obsolete))?|baseurl|alivematch|deadmatch|unavamatch|alivelink|deadlink)\s+(.+))?$/i);
  8455. if (m)
  8456. {
  8457. if (m[1] || !m[2])
  8458. continue; // ignore empty lines and lines starting with //
  8459. keyword = (m[4] || m[2]).toLowerCase();
  8460. param = m[6];
  8461. if (keyword == 'customrule')
  8462. {
  8463. //save the current rule if all required fields are provided
  8464. if (rule)
  8465. {
  8466. err = false;
  8467. $.each(constraints, function(kw, constraint){
  8468. var l, constr = constraint[rule.type];
  8469. if (constr)
  8470. {
  8471. l = rule[kw] ? rule[kw].length : 0;
  8472. if (l < constr.min || l > constr.max)
  8473. {
  8474. 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);
  8475. err = true;
  8476. }
  8477. }
  8478. });
  8479. if (!err)
  8480. customRules.rules.push(makeCustomRule(rule));
  8481. }
  8482. //start a new rule
  8483. if (/^[\w\.-]{1,30}$/.test(param)) //valid name?
  8484. {
  8485. rule = {
  8486. 'enabled': !m[3],
  8487. 'type': m[5] ? m[5].toLowerCase() : 'single',
  8488. 'name': param
  8489. };
  8490. }
  8491. else
  8492. {
  8493. addInfo('error', 'Invalid rule name. Cannot start a new rule definition.');
  8494. rule = null;
  8495. }
  8496. }
  8497. else //good line format, but keyword other than customrule
  8498. {
  8499. if (!rule)
  8500. {
  8501. addInfo('warning', 'Command outside @CUSTOMRULE definiton. Line skipped.');
  8502. continue;
  8503. }
  8504. if (constraints[keyword])
  8505. {
  8506. constr = constraints[keyword][rule.type];
  8507. if (constr)
  8508. {
  8509. if (constr.paramRE && !constr.paramRE.test(param))
  8510. {
  8511. addInfo('warning', 'Invalid @' + keyword.toUpperCase() + ' parameter. Line Skipped.');
  8512. continue;
  8513. }
  8514. }
  8515. else
  8516. {
  8517. addInfo('note', '@' + keyword.toUpperCase() + ' not applicable for type ' + rule.type.toUpperCase() + '. Line skipped.');
  8518. continue;
  8519. }
  8520. }
  8521. //line OK, save
  8522. rule[keyword] ? rule[keyword].push(param) : rule[keyword] = [param];
  8523. }
  8524. } //if (m)
  8525. else
  8526. addInfo('warning', 'Unknown line format. Line skipped.');
  8527. } //for loop
  8528. return customRules;
  8529. } //function parseCustomRules