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

detects live, dead and premium links.

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

  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.2
  7. // @icon http://sharenxs.com/photos/2014/02/14/52fd759db90ac/cooltext1428903746.png
  8. // @license GPL version 3 or any later version (http://www.gnu.org/copyleft/gpl.html)
  9. // @author <a href="http://www.mentalps.5gbfree.com/viewtopic.php?f=2&t=6>mental</a>
  10. // @include http://*
  11. // @include https://*
  12. // @include file:///*
  13. // @grant GM_setValue
  14. // @grant GM_getValue
  15. // @grant GM_xmlhttpRequest
  16. // @grant GM_log
  17. // @grant GM_addStyle
  18. // @grant GM_registerMenuCommand
  19. // @grant GM_getResourceText
  20. // @grant GM_info
  21. // @require https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js
  22. // @require https://ajax.googleapis.com/ajax/libs/jqueryui/1.9.1/jquery-ui.min.js
  23. // @resource jQueryUICSS https://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/smoothness/jquery-ui.css
  24. // @homepage http://www.mentalps.5gbfree.com
  25. // @namespace http://www.mentalps.5gbfree.com
  26. // @noframes
  27. // ==/UserScript==
  28.  
  29. //separate alternative domains with "|" char (first name is considered being main)
  30. var allHostNames = [
  31. "1fichier.com|dl4free.com",
  32. "2shared.com",
  33. "4shared.com",
  34. "adrive.com",
  35. "aisfile.com",
  36. "hexupload.com",
  37. "bezvadata.cz",
  38. "burnupload.com|burnupload.ihiphop.com",
  39. // "firedrive.com",
  40. "usersfiles.com",
  41. "pan.baidu.com",
  42. "radicalshare.com",
  43. "cramit.in|cramitin.net",
  44. "dataport.cz",
  45. "datei.to",
  46. "daten-hoster.de|filehosting.org|xtraupload.de",
  47. "demo.ovh.eu",
  48. "depositfiles.com",
  49. "divshare.com",
  50. "easy-share.com|crocko.com",
  51. "easybytez.com",
  52. "edisk.cz",
  53. "euroshare.eu",
  54. "file-upload.net",
  55. "yadi.sk",
  56. "ryushare.com",
  57. "wizupload.com",
  58. "fastshare.cz",
  59. "filefactory.com",
  60. "share.vnn.vn",
  61. "yunpan.cn",
  62. "gulfup.com",
  63. "tropicshare.com",
  64. "cloudzilla.to",
  65. "inclouddrive.com",
  66. "fileflyer.com",
  67. "filerio.com|filekeen.com",
  68. "up.4share.vn",
  69. "upfile.vn",
  70. "datafilehost.com",
  71. "fileband.com",
  72. "worldbytez.com",
  73. "files.mail.ru",
  74. "filepost.com|fp.io",
  75. "filesflash.com",
  76. "box.com",
  77. "box.net",
  78. "goldbytez.com",
  79. "sdilej.cz",
  80. "ex-load.com",
  81. "2drive.net",
  82. "filesmonster.com",
  83. "filestore.to",
  84. "freakshare.net",
  85. "hulkload.com",
  86. "lumfile.com",
  87. "lumfile.se",
  88. "lumfile.eu",
  89. "filedropper.com",
  90. "free-uploading.com",
  91. "gamefront.com|filefront.com",
  92. "gettyfile.ru",
  93. "gigapeta.com",
  94. "gigasize.com",
  95. "hellshare.com",
  96. "hellspy.com",
  97. "hitfile.net",
  98. "hostuje.net",
  99. "freefilehosting.net",
  100. "free.fr",
  101. "hulkshare.com",
  102. "hyperfileshare.com",
  103. "filecloud.io|ifile.it",
  104. "ifolder.ru",
  105. "jumbofiles.com",
  106. "uploadrocket.net",
  107. "lafiles.com",
  108. "leteckaposta.cz|sharegadget.com",
  109. "letitbit.net",
  110. "load.to",
  111. "mediafire.com",
  112. "megafileupload.com",
  113. "megashares.com",
  114. "movshare.net",
  115. "muchshare.net",
  116. "myupload.dk",
  117. "narod.ru|narod.yandex.ru",
  118. "netload.in",
  119. "fboom.me",
  120. "fileboom.me",
  121. "openfile.ru",
  122. "partage-facile.com",
  123. "plunder.com",
  124. // "putlocker.com",
  125. "sharerapid.cz",
  126. "exclusiveloader.com",
  127. "acefile.net",
  128. "queenshare.com",
  129. "quickshare.cz",
  130. "rapidgator.net",
  131. "daj.to",
  132. "keep2share.com",
  133. "oboom.com",
  134. "filepi.com",
  135. "neodrive.co",
  136. "rarefile.net",
  137. "rayfile.com",
  138. "rghost.net",
  139. "sendmyway.com",
  140. "clicknupload.com",
  141. "sharemods.com",
  142. "hostr.co",
  143. "sendspace.com",
  144. "sharecash.org",
  145. "share-links.biz",
  146. "share-online.biz|egoshare.com",
  147. "megarapid.cz",
  148. "shareflare.net",
  149. "solidfiles.com",
  150. "led.wf",
  151. "lan.wf",
  152. "adlink.wf",
  153. "click.tf",
  154. "kyc.pm",
  155. "ssh.tf",
  156. "ssh.yt",
  157. "yep.pm",
  158. "stahovanizasms.cz",
  159. "tufiles.ru",
  160. "turbobit.net",
  161. "filecloud.cc",
  162. "tikfile.com",
  163. "cloudsix.me",
  164. "turboupload.com",
  165. "uloz.to|ulozto.cz|bagruj.cz|zachowajto.pl",
  166. "ulozisko.sk",
  167. "uloziste.com",
  168. "unibytes.com",
  169. "upload-il.net|przeslij.net",
  170. "uploaded.to|ul.to",
  171. "uploading.com",
  172. "chayfile.com",
  173. "rockfile.eu",
  174. "24uploading.com",
  175. "uploadspace.pl",
  176. "upnito.sk",
  177. "uptobox.com",
  178. "usaupload.net",
  179. "veehd.com",
  180. "videobb.com",
  181. "vip-file.com",
  182. "webshare.cz",
  183. "xdisk.cz",
  184. "yunfile.com|filemarkets.com",
  185. "ziddu.com",
  186. "krotix.net",
  187. "zippyshare.com",
  188. "rodfile.com",
  189. "migahost.com",
  190. "wikiupload.com",
  191. "uploadstube.de",
  192. "faststore.org",
  193. "flyfiles.net",
  194. "nowdownload.eu",
  195. "prefiles.com",
  196. "axifile.com",
  197. "rapidsonic.com|fileparadox.com",
  198. "hackerbox.org",
  199. "amonshare.com",
  200. "data.hu",
  201. "brupload.net",
  202. "userscloud.com",
  203. "netkups.com",
  204. "edoc.com",
  205. "xfileload.com",
  206. "jumbofile.net",
  207. "kumpulbagi.com",
  208. "uppit.com|up.ht",
  209. "ddlstorage.com",
  210. "downloadani.me",
  211. "filesabc.com",
  212. "sharebeast.com",
  213. "180upload.com",
  214. "verzend.be",
  215. "movreel.com",
  216. "4up.me",
  217. "extmatrix.com",
  218. "sendfiles.nl",
  219. "yourfilestore.com",
  220. "filebig.net",
  221. "sockshare.com",
  222. "nekaka.com",
  223. "file4safe.com",
  224. "tusfiles.net",
  225. "filemac.com",
  226. "idup.in",
  227. "fileswap.com",
  228. "ozofiles.com",
  229. "loudupload.net",
  230. "nosupload.com",
  231. "gboxes.com",
  232. "myvdrive.com|fileserving.com",
  233. "filesin.com",
  234. "novafile.com",
  235. "longfiles.com",
  236. "uploadhero.com",
  237. "uploadbaz.com",
  238. "stahovadlo.cz",
  239. "bitupload.com",
  240. "indowebster.com",
  241. "superload.cz",
  242. "mafiastorage.com",
  243. "4upfiles.com",
  244. "filesmelt.com",
  245. "hellupload.com",
  246. "uploadingit.com",
  247. "stiahni.si",
  248. "sendspace.pl",
  249. "fastshare.org",
  250. "filejoker.net",
  251. "filestore.com.ua",
  252. "secureupload.eu",
  253. "rapidfileshare.net",
  254. "stiahnito.sk",
  255. "rusfolder.com",
  256. "fileover.net",
  257. "catshare.net",
  258. "anonfiles.com",
  259. "mixturecloud.com",
  260. "fileparadox.in",
  261. "filedais.com",
  262. "imdb.com",
  263. "nitroflare.com",
  264. "akafile.com",
  265. "creafile.net",
  266. "hugefiles.net",
  267. "vidxden.com",
  268. "up.top4top.net",
  269. "upload.ee",
  270. "shareplace.org",
  271. "uploadc.com",
  272. "remixshare.com",
  273. "exoshare.com",
  274. "borncash.org",
  275. "junocloud.me",
  276. "keep2share.cc",
  277. "k2s.cc",
  278. "expressleech.com",
  279. "2downloadz.com",
  280. "mightyupload.com",
  281. "uncapped-downloads.com",
  282. "anysend.com",
  283. "datafile.com",
  284. "upstore.net",
  285. "upsto.re",
  286. "speedy.sh",
  287. "sanshare.com",
  288. "dizzcloud.com",
  289. "kingfiles.net",
  290. "uploadhero.co",
  291. "ge.tt",
  292. "filesflash.net",
  293. "salefiles.com",
  294. "keep2s.cc",
  295. "megairon.net",
  296. "datoid.cz",
  297. "cloudstor.es",
  298. "streamfile.com",
  299. "eyesfile.ca",
  300. "filemoney.com",
  301. "uploadboy.com",
  302. "speedshare.eu",
  303. "google.com",
  304. "unlimitzone.com",
  305. "rioupload.com",
  306. "rg.to",
  307. "jumbofiles.org",
  308. "fshare.vn",
  309. "spaceforfiles.com",
  310. "up.media1fire.com",
  311. "depfile.com",
  312. "go4up.com",
  313. "dropbox.com",
  314. "redbunker.net",
  315. "divxpress.com",
  316. "mega.co.nz",
  317. "anafile.com",
  318. "uploadable.ch",
  319. "arabloads.com",
  320. "sharerepo.com",
  321. "sfshare.se",
  322. "files.fm",
  323. "koofile.com",
  324. "shared.com",
  325. "vidplay.net",
  326. "storagon.com",
  327. "doraupload.com",
  328. "openload.io",
  329. "geupload.com|lenfile.com",
  330. "uploads.xxx",
  331. ];
  332.  
  333. try
  334. {
  335. //iframes excluded
  336. if (window.top != window.self)
  337. {
  338. return;
  339. }
  340. //allHostNames sites excluded
  341. if (window.location.href.match("https?:\/\/(www\.)?[\w\.-]*(?:" +
  342. allHostNames.join("|").replace(/\./g, "\\.").replace(/-/g, "\\-") +
  343. ")"))
  344. {
  345. return;
  346. }
  347. }
  348. catch (e)
  349. {
  350. return;
  351. }
  352.  
  353. //separate alternative domains with "|" char (first name is considered being main)
  354. var allContainerNames = [
  355. "adf.ly",
  356. "linkcrypt.ws",
  357. "linksafe.me",
  358. "linksave.in",
  359. "linkto.net",
  360. "madlink.sk",
  361. "multiload.cz",
  362. "mirrorcreator.com",
  363. "ncrypt.in",
  364. "redi.re",
  365. "relink.us",
  366. "safelinking.net",
  367. "theloo.katt.it",
  368. "bit.ly",
  369.  
  370. ];
  371.  
  372. //separate alternative domains with "|" char (first name is considered being main)
  373. var allObsoleteNames = [
  374. "uloz.cz",
  375. "storage.to",
  376. "putlocker.com",
  377. "firedrive.com",
  378. "fileshare.in.ua",
  379. "filecore.co.nz",
  380. "iskladka.cz",
  381. "file-rack.com",
  382. "fast-load.net",
  383. "subory.sk",
  384. "bigandfree.com",
  385. "fileop.com",
  386. "mujsoubor.cz",
  387. "sendfile.to",
  388. "superfastfile.com",
  389. "quickyshare.com",
  390. "duckload.com",
  391. "uploadstore.net",
  392. "meinupload.com",
  393. "dualshare.com",
  394. "2xupload.to|2xupload.de",
  395. "oxedion.com",
  396. "uploadline.com",
  397. "dll.bz",
  398. "movieshare.in",
  399. "milledrive.com",
  400. "quickupload.net",
  401. "safelink.in",
  402. "metadivx.com",
  403. "divxlink.com",
  404. "uploadrack.com",
  405. "teradepot.com",
  406. "dataup.to",
  407. "upit.to",
  408. "driveway.com",
  409. "eatlime.com",
  410. "a2zuploads.com",
  411. "friendlyfiles.net",
  412. "flyfile.us",
  413. "speedyshare.com",
  414. "uploadspace.eu",
  415. "keepfile.com",
  416. "piggyshare.com",
  417. "uplly.com",
  418. "filecrown.com",
  419. "6giga.com",
  420. "uploadjockey.com",
  421. "bluehost.to",
  422. "filegu.ru",
  423. "filebase.to",
  424. "up-file.com",
  425. "xvideos.com",
  426. "ufox.com",
  427. "filebling.com",
  428. "loaded.it",
  429. "uploadcell.com",
  430. "uploadshare.cz",
  431. "mangoshare.com",
  432. "filestab.com",
  433. "crazyupload.com",
  434. "gaiafile.com",
  435. "sharejunky.com",
  436. "fileho.com",
  437. "bigandfree.com",
  438. "bigfile.in",
  439. "bigshare.eu",
  440. "dahosting.org",
  441. "digisofts.net",
  442. "file4save.com",
  443. "filechip.com",
  444. "filescloud.com",
  445. "saveqube.com",
  446. "turboshare.de",
  447. "z-upload.com",
  448. "youshare.com",
  449. "jiffyupload.com",
  450. "gigeshare.com",
  451. "datenklo.net",
  452. "upload.dj",
  453. "loadfiles.in",
  454. "upit.to",
  455. "dsfileshare.com",
  456. "sharesimple.net",
  457. "4files.net",
  458. "wooupload.com",
  459. "odsiebie.com",
  460. "filenavi.com",
  461. "3oof.com",
  462. "meshwaar.com",
  463. "maxupload.com",
  464. "share.cx",
  465. "atserver.eu",
  466. "hotfiles.ws",
  467. "esnips.com",
  468. "tuxfile.com",
  469. "file2upload.net",
  470. "filebling.com",
  471. "turboshare.com",
  472. "rarhost.com",
  473. "isharehd.com",
  474. "i741.com",
  475. "dataup.de",
  476. "fofly.com",
  477. "shareonall.com",
  478. "sexuploader.com",
  479. "megaupload.com|megavideo.com|megaporn.com|megarotic.com",
  480. "uploadhyper.com",
  481. "filespawn.com",
  482. "caizzii.com",
  483. "volnyweb.cz",
  484. "usershare.net",
  485. "filescash.net",
  486. "metahyper.com",
  487. "combozip.com",
  488. "x7.to",
  489. "uploadbox.com",
  490. "enterupload.com|flyupload.com",
  491. "filepoint.de",
  492. "mystream.to",
  493. "x-fs.com",
  494. "shareator.com",
  495. "srapid.eu",
  496. "sosame.cz",
  497. "filesdump.com",
  498. "2-klicks.de",
  499. "uploking.com",
  500. "silofiles.com",
  501. "upfile.in",
  502. "filehook.com",
  503. "uploadking.com",
  504. "uploadhere.com",
  505. "kewlshare.com",
  506. "rapidable.com",
  507. "uploadwaste.com",
  508. "filemup.com",
  509. "filesonic.com|sharingmatrix.com",
  510. "fileserve.com",
  511. "wupload.com",
  512. "skipfile.com",
  513. "smartuploader.com",
  514. "dualshare.com",
  515. "storeandserve.com",
  516. "mountfile.com",
  517. "transitfiles.com",
  518. "uploadstation.com",
  519. "filejungle.com",
  520. "shareshared.com",
  521. "quickyshare.com",
  522. "save.am",
  523. "petandrive.com",
  524. "file2box.com",
  525. "flyshare.cz",
  526. "yabadaba.ru",
  527. "cloudcache.cc",
  528. "yourfilehost.com",
  529. "jakfile.com",
  530. "kickload.com",
  531. "pyramidfiles.com",
  532. "refile.net",
  533. "zshare.net",
  534. "ddlani.me|ddlanime.com",
  535. "ftp2share.com",
  536. "fooget.com",
  537. "rapidhide.com",
  538. "gotupload.com",
  539. "mooload.com",
  540. "zupload.com",
  541. "mytempdir.com",
  542. "onionshare.com",
  543. "stahnu.to",
  544. "oron.com",
  545. "badongo.com",
  546. "filereactor.com",
  547. "filegaze.com",
  548. "4bytez.com",
  549. "1hostclick.com",
  550. "anonstream.com",
  551. "batshare.com",
  552. "bitroad.net",
  553. "brontofile.com",
  554. "cloudnxt.net",
  555. "cloudnator.com|shragle.com",
  556. "filesfrog.net",
  557. "coolshare.cz",
  558. "dotavi.com",
  559. "ezyfile.net",
  560. "file-bit.net",
  561. "filecosy.com",
  562. "fileduct.com|fileduct.net",
  563. "filefat.com",
  564. "filelaser.com",
  565. "filemashine.com",
  566. "fileserver.cc",
  567. "filetechnology.com",
  568. "fireuploads.net",
  569. "gigfiles.net",
  570. "holderfile.com",
  571. "ihostia.com",
  572. "k2files.com",
  573. "mojofile.com",
  574. "ovfile.com",
  575. "qshare.com",
  576. "shafiles.me",
  577. "sharefilehost.com",
  578. "shareupload.com",
  579. "stahuj.to",
  580. "ugotfile.com",
  581. "uploadboost.com",
  582. "fileom.com",
  583. "vidhog.com",
  584. "xfileshare.eu",
  585. "bzlink.us",
  586. "bulletupload.com",
  587. "wizzupload.com",
  588. "bloggerarticles.com",
  589. "mojedata.sk",
  590. "sharpfile.com",
  591. "upgrand.com",
  592. "nasdilej.cz",
  593. "mediatack.cz",
  594. "share-it.to",
  595. "primeupload.com",
  596. "filebeer.info",
  597. "baberepublic",
  598. "xtu.me",
  599. "sharebase.de",
  600. "luckyshare.net",
  601. "filerobo.com",
  602. "filevelocity.com",
  603. "filezpro.com",
  604. "file4sharing.com",
  605. "cing.be",
  606. "ufile.eu",
  607. "pigsonic.com",
  608. "fileupped.com",
  609. "sharerun.com",
  610. "filesaur.com",
  611. "rapidslnare.com",
  612. "bestsharing.com",
  613. "savefiles.net",
  614. "file2share.biz",
  615. "filecache.de",
  616. "monsteruploads.eu",
  617. "b9bb.com",
  618. "aiotool.net",
  619. "jamber.info",
  620. "megaftp.com",
  621. "desiupload.net",
  622. "file27.com",
  623. "yastorage.com",
  624. "filehost.ws",
  625. "copyload.com",
  626. "venusfile.com",
  627. "aieshare.com",
  628. "terafile.co",
  629. "terafile.com",
  630. "fileza.net",
  631. "filerose.com",
  632. "squillion.com",
  633. "fileprohost.com",
  634. "bitbonus.com",
  635. "warserver.cz",
  636. "uload.to",
  637. "sharedbit.net",
  638. "megaload.it",
  639. "filewinds.com",
  640. "uploadcore.com",
  641. "syfiles.com",
  642. "eyesfile.com",
  643. "hotfile.com",
  644. "superupl.com",
  645. "oteupload.com",
  646. "henchfile.com",
  647. "filegag.com",
  648. "HenchFile.com",
  649. "filedefend.com",
  650. "share-rapid.com|rapids.cz|share-credit.cz|share-central.cz|share-ms.cz|share-net.cz|srapid.cz|share-rapid.cz",
  651. "megabitshare.com",
  652. "cloudzer.com",
  653. "asfile.com",
  654. "cloudzer.net",
  655. "clz.to",
  656. "extabit.com",
  657. "247upload.com",
  658. "2download.de",
  659. "4fastfile.com",
  660. "asixfiles.com",
  661. "berofile.com",
  662. "bigupload.com",
  663. "cepzo.com",
  664. "clouds.to",
  665. "cobrashare.sk",
  666. "coraldrive.net",
  667. "cyberlocker.ch",
  668. "czshare.com",
  669. "darkport.org",
  670. "dark-uploads.com",
  671. "davvas.com",
  672. "enigmashare.com",
  673. "erofly.cz",
  674. "fastsonic.net",
  675. "filebox.com",
  676. "filecity.net",
  677. "filedap.com",
  678. "filedino.com",
  679. "filedownloads.org",
  680. "filefolks.com",
  681. "fileking.co",
  682. "filemates.com",
  683. "files.to",
  684. "files2k.eu",
  685. "filesector.cc",
  686. "bitshare.com",
  687. "filesega.com",
  688. "filesend.net",
  689. "filestay.com",
  690. "filestrum.com",
  691. "fileuplo.de",
  692. "fileupup.com",
  693. "forunesia.com",
  694. "freeuploads.fr",
  695. "uploa.dk",
  696. "getthebit.com",
  697. "getzilla.net",
  698. "goldfile.eu",
  699. "good.com",
  700. "grupload.com",
  701. "hellfile.com",
  702. "hipfile.com",
  703. "hitfile.com",
  704. "hulkfile.eu|duckfile.net",
  705. "i-filez.com",
  706. "ifile.ws",
  707. "kupload.org",
  708. "packupload.com",
  709. "lemuploads.com",
  710. "limelinx.com",
  711. "maxshare.pl",
  712. "megarelease.org",
  713. "megashare.com",
  714. "minus.com",
  715. "mlfat4arab.com",
  716. "multishare.cz",
  717. "nirafile.com",
  718. "ok2upload.com",
  719. "peejeshare.com",
  720. "premiuns.org",
  721. "przeklej.net",
  722. "qkup.net",
  723. "rapidupload.sk",
  724. "rockdizfile.com",
  725. "rocketfile.net",
  726. "share-now.net",
  727. "share76.com",
  728. "sharebees.com",
  729. "sharefiles.co",
  730. "slingfile.com",
  731. "sms4file.com",
  732. "space4file.com",
  733. "tigershare.net",
  734. "toucansharing.com",
  735. "ubuntuone.com",
  736. "unextfiles.com",
  737. "upaj.pl",
  738. "upfile.biz",
  739. "uploadbin.net",
  740. "uploadic.com",
  741. "uploadinc.com",
  742. "uploading4u.eu",
  743. "uploadjet.net",
  744. "uploadorb.com",
  745. "upthe.net",
  746. "uptorch.com",
  747. "vidbox.yt",
  748. "videozer.com",
  749. "vreer.com",
  750. "wallobit.com",
  751. "zooupload.com",
  752. "privatefiles.com",
  753. "xerver.co",
  754. "BillionUploads.com",
  755. "rapidshare.com",
  756. "rapidshare.ru",
  757. "4savefile.com",
  758. "bayfiles.com",
  759. "bayfiles.net",
  760. "dodane.pl",
  761. "dotsemper.com",
  762. "egofiles.com",
  763. "epicshare.net",
  764. "fiberupload.net",
  765. "filemonkey.in",
  766. "filemonster.net",
  767. "filepom.com",
  768. "filesbb.com",
  769. "fileshareup.com",
  770. "filevice.com",
  771. "gigaup.fr",
  772. "inafile.com",
  773. "isavelink.com",
  774. "loombo.com",
  775. "megafiles.se",
  776. "migupload.com",
  777. "mydisc.net",
  778. "nitrobits.com",
  779. "potload.com",
  780. "redload.net",
  781. "shareprofi.com",
  782. "sharesuper.info",
  783. "sinhro.net",
  784. "speedfile.cz",
  785. "speedshare.org",
  786. "storage.novoro.net",
  787. "swankshare.com",
  788. "swatupload.com",
  789. "upafile.com",
  790. "uploadmachine.com",
  791. "uploadsat.com",
  792. "upshared.com",
  793. "usefile.com",
  794. "yourfiles.to",
  795. "zomgupload.com",
  796. "ultramegabit.com",
  797. "uploadto.us",
  798.  
  799. ];
  800. ///////////////////////////////////////////////////////////////////////////////////////
  801. var firstRun = GM_getValue("First_run", true);
  802.  
  803. var chromeBrowser = /chrom(e|ium)/.test(navigator.userAgent.toLowerCase());
  804. //////////////////////////////////////////////////////////////////////////////////////
  805. try
  806. {
  807. var thisVersion = GM_info.script.version; //not supported in Scriptish and others
  808. var last_known_version = GM_getValue("last_known_version", "");
  809. if (!last_known_version)
  810. {
  811. last_known_version = thisVersion;
  812. GM_setValue("last_known_version", last_known_version);
  813. }
  814. //var newVersion = !(thisVersion == last_known_version);
  815. var newVersion = !(a.replace(/^(\d+\.\d+\.\d+).*/,'$1') == b.replace(/^(\d+\.\d+\.\d+).*/,'$1')); //true only if one of the first three numbers differs
  816. GM_setValue("last_known_version", thisVersion);
  817. }
  818. catch (err)
  819. {
  820. var newVersion = false;
  821. }
  822.  
  823. var now = (new Date()).getTime();
  824. var last_custom_rules_nag = GM_getValue('last_custom_rules_nag', 0);
  825. if (!last_custom_rules_nag)
  826. {
  827. last_custom_rules_nag = now;
  828. GM_setValue('last_custom_rules_nag', ''+now);
  829. }
  830.  
  831.  
  832. allHostNames.sort();
  833. allContainerNames.sort();
  834. allObsoleteNames.sort();
  835.  
  836. var RAND_STRING = "8QyvpOSsRG3QWq";
  837. var DEBUG_MODE = false;
  838.  
  839. var TOOLTIP_MAXWIDTH = 600; //in pixels
  840. var TOOLTIP_THUMBWIDTH = 200;
  841. var containers_processed = false;
  842.  
  843. //settings for keyboard functions start
  844. var CHECK_ALL_LINKS_KEY = "A";
  845. var CONFIGURATION_KEY = "C";
  846. var copy_to_dead_key = "D";
  847. var toggle_autocheck_key = "W";
  848. var toggle_Enable_Anonymizer_key = "Z";
  849. var first_key_keycode = '17'; // 18=ALT 16=Shift 17=Ctrl 32=SPACE_BAR 9=TAB
  850. var first_key_keycodename = 'CTRL';
  851. var second_key_keycode = '18';
  852. var second_key_keycodename = 'ALT';
  853. var CHECK_ALL_LINKS_KEYCODE = CHECK_ALL_LINKS_KEY.charCodeAt(0);
  854. var CONFIGURATION_KEYCODE = CONFIGURATION_KEY.charCodeAt(0);
  855. var copy_to_dead_keycode = copy_to_dead_key.charCodeAt(0);
  856. var toggle_autocheck_keycode = toggle_autocheck_key.charCodeAt(0);
  857. var toggle_Enable_Anonymizer_keycode = toggle_Enable_Anonymizer_key.charCodeAt(0);
  858. //settings for keyboard functions end
  859.  
  860. //global settings start
  861. var Show_black_background_in_DL_links, Show_line_through_in_dead_links, Color_DL_links;
  862. var Live_links_color, Dead_links_color, Temp_unavailable_links_color, Premium_links_color, Ref_anonymize_service;
  863. var Do_not_linkify_DL_links, Keyboard_functions, Autocheck, Enable_Anonymizer;
  864. var Show_progress_stats, Display_tooltip_info, Icon_set;
  865. var Progress_box_pos_bottom, Progress_box_pos_right, Progress_box_opacity, Progress_box_background_color, Progress_box_item_color;
  866. var Progress_box_refresh_rate;
  867. var Obsolete_file_hosts;
  868. var Custom_rules, Custom_rules_text;
  869.  
  870. var messageBox = document.createElement('b'); // top-left message box
  871.  
  872. var cLinksTotal = 0;
  873. var cLinksDead = 0;
  874. var cLinksAlive = 0;
  875. var cLinksUnava = 0;
  876. var cLinksprem = 0;
  877. var cLinksProcessed = 0;
  878.  
  879. var intervalId; //for updateProgress()
  880.  
  881. //icon resources
  882. var PAW_ICON_GREEN = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAANCAYAAABy6+R8AAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAA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N8BdoD0nz3/FuG/an3Sv7/ZehFDyBYIHplzFHcYullyPjp13eGj79/MHwEagRpfvPpB8OuuJsHvz785QRU9w+XAQwCMkyby3aZ+/xj5YBr/vDzD8OpngefHq55rw9U8gBbFCFHo4pljvAV60x19o+/fgMN+cNw79h7hjNFD5IZ/jPMwxXHKOmAmYOxPWCNWgWzKBfDm7c/GY4m3Nr089Uff3yJBD0h8Ug68tzQbVCUvtD66PWrXR91gWIvSTEABOw5pNlKfjz91QNkHySUTAGg7t0uvj1ytQAAAABJRU5ErkJggg==';
  893. var NEW_ICON_RED = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAA6klEQVQ4jbWTwWrCQBRFz6Rxnay6iuAXlJIg+BHZZR/d6++4t/5MpRQRf8CCrurGrDP6uumESTol04J3dbmPd7hvYBTAG5QBzIFH/PQpsBzDWm2gDGEFKM9lIxGYBSEsustRnpPWNZkImQip1sRF0QUoBQv1DgdgZE9SrdmGIX0Z8NFKni8XHqIIgEzkR+dMhGtVsYvjJgt6L+1Rq4FN/hcA2md01a0PjhPM8n44bDLjXeBf36A+nZzeG+Cr+wEGSeL0LsDZDq5VBcDT8dhkxpuZpbN6hXIAL76Vbd1gqgC+IX/6zhqWE1h/AYSwSjYrmXJlAAAAAElFTkSuQmCC';
  894. var NEW_ICON_YELLOW = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0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+vrWwcunPvc53nuPffcS0uEmA0x38Y5cohwGjOYxBBe4VGI3j8NQlzHYhaW0cfNEAslWCfBw4yvYhkv8hjCgxD7yMdquw/jbJ4+xq2cz+AKdrJRv9EAv/EDx3Ft75QhtrHdcFpHy0mS/lSqcVzAFM7he6XaTNLXJoOmS+ziOc4XcB893A3xodUgm5zAHdzHSLH0DhdD/GwsoSjlV5Je5nK+YQUTOInXSXq7x6134RQuo4unGf6Me7iKMxgrNfUuXMJazr8U+DA6Of/UZrCF9xjFM3zELpZwOptulIKmLlQGNXdqS7u4EWK9BA9cYpJ2KtWcwaMazcInuB3iTZ3fGv/znf8CBMxX4hrPUbUAAAAASUVORK5CYII=';
  896.  
  897. //global settings end
  898. if (window.opera && !window.console)
  899. {
  900. window.console = {};
  901.  
  902. function fn()
  903. {
  904. opera.postError(arguments);
  905. };
  906. ['log', 'debug', 'info', 'warn', 'error', 'assert', 'dir', 'dirxml', 'group', 'groupEnd', 'time', 'timeEnd', 'count', 'trace', 'profile', 'profileEnd'].forEach(function (name)
  907. {
  908. window.console[name] = fn;
  909. });
  910. }
  911.  
  912. //displays colored text in message box
  913. function sendMessage(text, color)
  914. {
  915. var msgDiv = document.createElement('div');
  916. msgDiv.style.color = color;
  917. msgDiv.innerHTML = text;
  918. messageBox.appendChild(msgDiv);
  919. setTimeout(function(){messageBox.removeChild(msgDiv)}, 3000);
  920. }
  921.  
  922. function linkify(totalourls)
  923. { // code from http://userscripts.org/scripts/review/2254 Linkify ting
  924. var ikkeTilladteTags;
  925. var allLinksRegex = "(?:http:\/\/.+?\\?)?(?:https?:\/\/)?"
  926. + "[0-9A-Za-z]+(?:[\\.-][0-9A-Za-z]+)*\\.[A-Za-z]+/" //instead of totalourls
  927. + "[\\w\\–\\-\\.+$!*\\/()\\[\\]\',~%?:@#&=\\\\\\—;…×Ã\\_\\u0080-\\u03FF’‘" + (Allow_spaces_in_DL_links ? "\\u0020" : "") + "]*";
  928. allLinksRegex = new RegExp(allLinksRegex, "g");
  929. var regexy = "^(?:http:\/\/.+?\\?)?(?:https?:\/\/)?(?:www\\.)?(?:" + totalourls + ")";
  930.  
  931. if (Do_not_linkify_DL_links)
  932. ikkeTilladteTags = ['a', 'head', 'script', 'style', 'title', 'option', 'iframe', 'textarea', 'span']; //tags, hvor det der stAΞ’Β¥r inden i ikke skal vAΞ’Β¦re links
  933. else
  934. ikkeTilladteTags = ['a', 'head', 'script', 'style', 'title', 'option', 'iframe', 'textarea']; //tags, hvor det der stAΞ’Β¥r inden i ikke skal vAΞ’Β¦re links
  935.  
  936. var regex = new RegExp(regexy);
  937. var textNode, muligtLink;
  938.  
  939. var path = "//text()[not(parent::" + ikkeTilladteTags.join(" or parent::") + ") and contains(.,'/')]";
  940. var textNodes = document.evaluate(path, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  941.  
  942. var i = textNodes.snapshotLength;
  943. while (i--)
  944. {
  945. textNode = textNodes.snapshotItem(i);
  946.  
  947. muligtLink = textNode.nodeValue; //all links on page
  948.  
  949. var myArray = null;
  950. var span = null;
  951. var lastLastIndex = 0;
  952. allLinksRegex.lastIndex = 0;
  953. if (/^https?:\/\/~[\w\s\~]*\//.test(muligtLink))
  954. {
  955. if (textNode.parentNode.className == "adead_link") continue;
  956. var censoredLink = muligtLink;
  957. var span = document.createElement('span');
  958. span.className = "adead_link";
  959. $(span).attr('warlc_error', "Cause of error: <b>Censored link.</b>");
  960. $(span).html(censoredLink);
  961. span.addEventListener("mouseover", displayTooltipError, false);
  962. cLinksTotal++; cLinksProcessed++; cLinksDead++;
  963. textNode.parentNode.replaceChild(span, textNode);
  964. continue;
  965. alert(censoredLink);
  966. }
  967. while (myArray = allLinksRegex.exec(muligtLink)) //find all links
  968. {
  969. if (!regex.test(myArray[0])) //this link is not recognized
  970. {
  971.  
  972. continue;
  973. }
  974. if (!span)
  975. span = document.createElement('span');
  976.  
  977. var link = myArray[0];
  978. span.appendChild(document.createTextNode(muligtLink.substring(lastLastIndex, myArray.index))); //inds?t det der kommer for dette hit
  979.  
  980. var $a = $("<a>" + link + "</a>")
  981. if (!link.match(/https?:\/\//))
  982. {
  983. link = 'http://' + link;
  984. }
  985.  
  986. $a.attr("href", link.replace(/\[\/hide:\w+\]/,""))
  987. .addClass("processing_link")
  988. .appendTo(span);
  989. lastLastIndex = allLinksRegex.lastIndex;
  990. }
  991. if (span)
  992. {
  993. span.appendChild(document.createTextNode(muligtLink.substring(lastLastIndex))); //ins?t det der kommer efter sidste hit
  994. textNode.parentNode.replaceChild(span, textNode);
  995. }
  996. }
  997. }
  998.  
  999. function add_WARLC_style()
  1000. {
  1001. if (!(document.getElementsByTagName('WARLC')[0]))
  1002. {
  1003. var meta_not_to_add_more_style = document.createElement("WARLC");
  1004. meta_not_to_add_more_style.setAttribute('content', 'war_links_checker');
  1005. meta_not_to_add_more_style.setAttribute('name', 'description');
  1006. document.getElementsByTagName('head')[0].appendChild(meta_not_to_add_more_style);
  1007. alive_link_png = "";
  1008. adead_link_png = "";
  1009. unava_link_png = "";
  1010. prem_link_png = "";
  1011. switch(Icon_set)
  1012. {
  1013. //no icons
  1014. case 0: break;
  1015. // cat paws
  1016. case 1: alive_link_png = PAW_ICON_GREEN;
  1017. adead_link_png = PAW_ICON_RED;
  1018. unava_link_png = PAW_ICON_YELLOW;
  1019. prem_link_png = PAW_ICON_PINK;
  1020. break;
  1021. // classic RSLC look
  1022. case 2: alive_link_png = RSLC_ICON_GREEN;
  1023. adead_link_png = RSLC_ICON_RED;
  1024. unava_link_png = RSLC_ICON_YELLOW;
  1025. prem_link_png = RSLC_ICON_PINK;
  1026. break;
  1027. // New Icons
  1028. case 3: alive_link_png = NEW_ICON_GREEN;
  1029. adead_link_png = NEW_ICON_RED;
  1030. unava_link_png = NEW_ICON_YELLOW;
  1031. prem_link_png = NEW_ICON_PINK;
  1032. break;
  1033. // cat paws
  1034. default:alive_link_png = PAW_ICON_GREEN;
  1035. adead_link_png = PAW_ICON_RED;
  1036. unava_link_png = PAW_ICON_YELLOW;
  1037. prem_link_png = PAW_ICON_PINK;
  1038. break;
  1039. }
  1040. processing_link_gif = 'data:image/gif;base64,' + // or temporary anavailable
  1041. 'R0lGODlhCgAKAJEDAMzMzP9mZv8AAP///yH/C05FVFNDQVBFMi4wAwEAAAAh+QQFAAADACwAAAAACgAKAAACF5wncgaAGgJzJ647cWua4sOBFEd62VEAACH5BAUAAAMALAEAAAAIAAMAAAIKnBM2IoMDAFMQFAAh+QQFAAADACwAAAAABgAGAAACDJwHMBGofKIRItJYAAAh+QQFAAADACwAAAEAAwAIAAACChxgOBPBvpYQYxYAIfkEBQAAAwAsAAAEAAYABgAAAgoEhmPJHOGgEGwWACH5BAUAAAMALAEABwAIAAMAAAIKBIYjYhOhRHqpAAAh+QQFAAADACwEAAQABgAGAAACDJwncqi7EQYAA0p6CgAh+QQJAAADACwHAAEAAwAIAAACCpRmoxoxvQAYchQAOw%3D%3D';
  1042.  
  1043. var dead_color_css, live_color_css, unava_color_css, prem_color_css, black_background_css;
  1044.  
  1045. if (Color_DL_links)
  1046. {
  1047. dead_color_css = 'color:' + Dead_links_color + ' !important;';
  1048. live_color_css = 'color:' + Live_links_color + ' !important;';
  1049. unava_color_css = 'color:' + Temp_unavailable_links_color + ' !important;';
  1050. container_color_css = 'color:' + Container_links_color + ' !important;';
  1051. prem_color_css = 'color:' + Premium_links_color + ' !important;';
  1052. }
  1053. else
  1054. {
  1055. dead_color_css = live_color_css = unava_color_css = container_color_css = prem_color_css = '';
  1056. }
  1057.  
  1058. if (Show_black_background_in_DL_links)
  1059. {
  1060. black_background_css = 'background-color: black !important;';
  1061. }
  1062. else
  1063. {
  1064. black_background_css = '';
  1065. }
  1066.  
  1067. if (Show_line_through_in_dead_links)
  1068. {
  1069. line_through_css = 'text-decoration: line-through !important;';
  1070. }
  1071. else
  1072. {
  1073. line_through_css = '';
  1074. }
  1075.  
  1076. GM_addStyle(".alive_link {background:transparent url(" + alive_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;" + live_color_css + black_background_css + "}");
  1077. 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 + "}");
  1078. GM_addStyle(".unava_link {background:transparent url(" + unava_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;" + unava_color_css + black_background_css + "}");
  1079. GM_addStyle(".processing_link {background:transparent url(" + processing_link_gif + ") no-repeat scroll 100% 50%;padding-right:15px;" + container_color_css + black_background_css + "}");
  1080. GM_addStyle(".container_link {background:transparent url(" + processing_link_gif + ") no-repeat scroll 100% 50%;padding-right:15px;" + container_color_css + black_background_css + "}");
  1081. GM_addStyle(".container_list {font-size:90%; list-style-type:square; padding: 0px 5% 0px; margin: 0px}");
  1082. GM_addStyle(".prem_link {background:transparent url(" + prem_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;" + prem_color_css + black_background_css + "}");
  1083. }
  1084. }
  1085.  
  1086. var warlcTooltip = null;
  1087. var mouseoverLink = null; //link href with mouse cursor over it
  1088.  
  1089. var lastX = 0;
  1090. var lastY = 0;
  1091.  
  1092. $(document).ready(initTooltip);
  1093. //inits tooltip
  1094. function initTooltip()
  1095. { warlcTooltip = document.createElement("div");
  1096. 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;");
  1097. warlcTooltip.style.visibility = "hidden";
  1098. document.body.appendChild(warlcTooltip);
  1099. }
  1100.  
  1101. //"mousemove" event handler for all links
  1102. function moveTooltip(event)
  1103. {
  1104. if ((Math.abs(lastX - event.clientX) + Math.abs(lastY - event.clientY)) < 6)
  1105. { //no need to reflow if the cursor moved just a little
  1106. return;
  1107. }
  1108. else
  1109. {
  1110. lastX = event.clientX;
  1111. lastY = event.clientY;
  1112. }
  1113.  
  1114. posX = event.clientX + window.pageXOffset + 10;
  1115. posY = event.clientY + window.pageYOffset;
  1116. var ttHeight = warlcTooltip.offsetHeight;
  1117. var ttFreeSpace = window.innerHeight - event.clientY;
  1118. if (ttHeight > ttFreeSpace)
  1119. { //prevents tooltip from getting out of the window
  1120. posY -= (ttHeight - (ttFreeSpace)) + 10;
  1121. }
  1122. else
  1123. {
  1124. posY += 7;
  1125. }
  1126. warlcTooltip.style.top = posY + "px";
  1127. warlcTooltip.style.left = posX + "px";
  1128. }
  1129.  
  1130. //"mouseout" event handler for all links
  1131. function hideTooltip(){
  1132. warlcTooltip.style.visibility = "hidden";
  1133. mouseoverLink = null;
  1134. }
  1135.  
  1136.  
  1137. //"mouseover" event handler for dead links
  1138. //displays tooltip error message on dead links
  1139. function displayTooltipError()
  1140. {
  1141. mouseoverLink = this.href;
  1142. this.addEventListener("mouseout", hideTooltip);
  1143. this.addEventListener("mousemove", function(event) { moveTooltip(event); });
  1144. warlcTooltip.innerHTML = '<b>LOADING...</b>';
  1145. warlcTooltip.style.minWidth = 0;
  1146. warlcTooltip.style.visibility = "visible";
  1147. if (this.warlc_error) //an error message is already known and stored in warlc_error attribute
  1148. {
  1149. warlcTooltip.innerHTML = this.warlc_error;
  1150. }
  1151. else
  1152. {
  1153. loadErrorInfo(this);
  1154. }
  1155. function loadErrorInfo(link)
  1156. {
  1157. var href = link.href;
  1158. href = href.replace(/quickshare\.cz\/.+/, "quickshare.cz/chyba");
  1159. GM_xmlhttpRequest({
  1160. method: 'GET',
  1161. url: href.replace(Ref_anonymize_service, ""),
  1162. headers: {
  1163. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1164. 'Accept': 'text/xml',
  1165. 'Referer': ""
  1166. },
  1167. onload: function(result) {
  1168. var res = result.responseText;
  1169. //TODO: errorRegexs -
  1170. var errorRegexs = [ //generic error messages follow
  1171. /(empty directory)/i,
  1172. /(soubor nebyl nalezen)/i,
  1173. /((?:file|page|link|folder)(?:is|not|does|has been|was| ){1,}(?:found|available|blocked|exists?|deleted|removed))/i,
  1174. //server specific error messages follow
  1175. /msg error" style="cursor: default">(.+?)<\/div>/, //sendspace
  1176. /color:red;font\-weight:bold;border\-style:dashed;font-size:12px;border\-width:2px;><tr><td align=center>(.+?)<\/td>/, //fastshare
  1177. /(Takový soubor neexistuje. Je možné, že byl již smazán.)/, //quickshare
  1178. /file_info file_info_deleted">\s*<h1>(.+?)<\/h1>/, //filepost
  1179. /<br \/>\s*<p style="color:#000">(.+?)<\/p>\s*<\/center>/, //letitbit
  1180. /(?:error_div">|<\/h1><p>)<strong>(.+?)<\/strong>/, //share-rapid,quickshare
  1181. /class="red">(.+?)<(?:span|br)>/, //czshare, megashares
  1182. /class="wp640">\s*<h1 class="h1">(.+?)<\/h1>/, //uloz.to
  1183. /not-found">\s*<p>(.+?)<\/p>/, //bayfiles
  1184. /(Your file could not be found. Please check the download link.)/, //stahnu.to
  1185. /error_msg">\s*(<h3>.+?<\/h3><ul>(.+?)<\/ul>)/, //edisk
  1186. /id="obsah">\s*<h2>(.+?)<\/h2>/, //euroshare
  1187. /error">\s*(?:<[bp]>)?\s*(.+?)<\/[bp]>/, //filesmonster, shragle, gigapeta
  1188. ///center aC">\s*<h1>(.+?)<br \/>/, //uploaded.to
  1189. /icon_err">\s*<h1>(.+?)<\/h1>/, //filejungle
  1190. /Code: ER_NFF_\d+<\/h2>\s*(.+?)\s*<\/div>/, //netload
  1191. /(File has been removed due to Copyright Claim)/, //filerio
  1192. ];
  1193. var errorIdx = errorRegexs.length;
  1194. var error = "Cause of error: <b>unknown</b>";
  1195. var errorCandidate = "";
  1196. while(errorIdx--)
  1197. {
  1198. var errorCandidate = res.match(errorRegexs[errorIdx]);
  1199. if (errorCandidate != null)
  1200. {
  1201. error = "Cause of error: <b>" + errorCandidate[1].replace(/&nbsp;/g," ") + "</b>";
  1202. break;
  1203. }
  1204. }
  1205. //link attributes
  1206. link.warlc_error = error;
  1207. if (mouseoverLink == link.href) //mouse cursor is still over the link
  1208. {
  1209. warlcTooltip.innerHTML = error;
  1210. }
  1211. }
  1212. });
  1213. }
  1214. }
  1215.  
  1216. //"mouseover" event handler for alive links
  1217. //displays tooltip info (file size, file name,...) on alive links
  1218. function displayTooltipInfo()
  1219. {
  1220. mouseoverLink = this.href;
  1221. //exclude direct download filehostings
  1222. 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)/))
  1223. {
  1224. return;
  1225. }
  1226. this.addEventListener("mouseout", hideTooltip);
  1227. this.addEventListener("mousemove", function(event) { moveTooltip(event); });
  1228. warlcTooltip.innerHTML = '<b>LOADING...</b>';
  1229. warlcTooltip.style.minWidth = 0;
  1230. warlcTooltip.style.visibility = "visible";
  1231. if (this.warlc_tooltipcache) //file size is already known and stored in warlc_filename and warlc_filesize attributes
  1232. {
  1233. warlcTooltip.innerHTML = this.warlc_tooltipcache;
  1234. }
  1235. else
  1236. {
  1237. loadInfo(this);
  1238. }
  1239. function loadInfo(link)
  1240. {
  1241. var href = link.href;
  1242. GM_xmlhttpRequest({
  1243. method: 'GET',
  1244. url: href.replace(Ref_anonymize_service, ""),
  1245. headers: {
  1246. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1247. 'Accept': 'text/xml',
  1248. 'Referer': ""
  1249. },
  1250. onload: function(result) {
  1251. var res = result.responseText;
  1252. var nameRegexs = [ /Filename: <b class="f_arial f_14px">(.+?)<\/b>/, //oron
  1253. /(?:finfo|file[-_]?name)">\s*(.+?)<\/?(?:h1|a|div|span style|td)/, //hellshare, netload, badongo, 4fastfile
  1254. /fl" title="(.+?)">/, //edisk
  1255. /<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
  1256. /<h3>Stahujete soubor: <\/h3>\s*<div class="textbox">(.+?)<\/div>/, //webshare
  1257. /<h3><b><span style=color:black;>(.+?)<\/b><\/h3><br>/, //fastshare
  1258. /title="download (.+?)">/, //sendspace
  1259. /Stáhnout soubor: (.+?)<\/h1>/, //quickshare
  1260. /fz24">Download:\s*<strong>(.+?)<\/strong>/, //crocko
  1261. /'file\-icon\d+ \w+'>(?:<\/span><span>)?(.+?)<\/span>/, //hitfile, turbobit
  1262. /d0FileName = "(.+?)";/, //letitbit
  1263. /file(?:_name|-info)" title="">\w+: <span>(.+?)<\/span>/, //vip-file, shareflare
  1264. /recent-comments"><h2>(.+) &nbsp;/, //xdisk
  1265. /fname" value="(.+?)">/, //syfiles, grupload,
  1266. /download\-header">\s*<h2>File:<\/h2>\s*<p title="(.+?)">/, //bayfiles
  1267. /description">\s*<p><b>Soubor: (.+?)<\/b>/, //bezvadata
  1268. /Complete name : (.+?)<br \/>/, //bezvadata
  1269. /itemprop="name">(.+?)<\/span>/, //bezvadata
  1270. ];
  1271. var nameIdx = nameRegexs.length;
  1272. // [sizeRegexs]
  1273. // / \ \?
  1274. // prefix (size) postfix
  1275. // / \
  1276. // val quant
  1277. var quantRegex = '(?:M|G|K)?i?(?:B)(?:[y|i]te?s?)?';
  1278. var valRegex = '\\d+(?:[\\., ]\\d+){0,2}'; // 111([., ]222)?([., ]333)?
  1279. var uniSizeRegex = valRegex + '(?:\\s*|&nbsp;)' + quantRegex;
  1280. var preSizeRegex = '(?::|\\(|>|>, | - )';
  1281. var postSizeRegex = '(?:\\))?';
  1282. var sizeRegexs = [ preSizeRegex + "\\s*(" + uniSizeRegex + ")\\s*" + postSizeRegex,
  1283. 'FileSize_master">(.+?)<\/strong>', //hellshare
  1284. ];
  1285. var sizeIdx = sizeRegexs.length;
  1286. //
  1287. //
  1288. var tooltip = "File Name: <b>";
  1289. var fileName = "unknown";
  1290. var nameCandidate = "";
  1291. while(nameIdx--)
  1292. {
  1293. var nameCandidate = res.match(nameRegexs[nameIdx]);
  1294. if (nameCandidate != null)
  1295. {
  1296. fileName = nameCandidate[1].replace(/&nbsp;/g," ");
  1297. break;
  1298. }
  1299. }
  1300. tooltip += fileName + "</b><br>File Size: <b>";
  1301. var fileSize = "unknown";
  1302. var sizeCandidate = "";
  1303. while(sizeIdx--)
  1304. {
  1305. sizeCandidate = res.match(new RegExp(sizeRegexs[sizeIdx], "i"));
  1306. if (sizeCandidate != null)
  1307. {
  1308. fileSize = sizeCandidate[1].replace(/&nbsp;/g," ");
  1309. if (/^\d+$/.test(fileSize) && fileSize >= 1024) //assume bytes
  1310. {
  1311. if(fileSize > (1<<30)) fileSize = Math.round(10 * fileSize / (1<<30)) / 10 + ' GB';
  1312. else if(fileSize > (1<<20)) fileSize = Math.round(fileSize / (1<<20)) + ' MB';
  1313. else fileSize = Math.round(fileSize / 1024) + ' KB';
  1314. }
  1315. break;
  1316. }
  1317. }
  1318. tooltip += fileSize + "</b>";
  1319. // PROTOTYPE
  1320. // video thumbnails
  1321. if (href.match('hellshare'))
  1322. {
  1323. var thumbs;
  1324. thumbs = res.match(/http:\/\/static\d+\.helldata\.com\/thumbs(?:\/\d+){1,2}\/\d{1,2}"/g);
  1325. if (thumbs)
  1326. {
  1327. tooltip += '<br>';
  1328. var j = Math.min(thumbs.length, 9);
  1329. for (var i = 0; i < j; i++)
  1330. {
  1331. tooltip += '<img src="' + thumbs[i].replace('"',"") + '" width="' + TOOLTIP_THUMBWIDTH + 'px">';
  1332. }
  1333. warlcTooltip.style.minWidth = TOOLTIP_MAXWIDTH;
  1334. }
  1335. }
  1336. if (href.match('czshare'))
  1337. {
  1338. var thumbs;
  1339. thumbs = res.match(/src="http:\/\/www(\d+)\.czshare\.com\/images_velke\/\d+\.(\d+)\.jpeg/);
  1340. if (thumbs)
  1341. {
  1342. var thumbsServer = thumbs[1];
  1343. var thumbsId = thumbs[2];
  1344. tooltip += '<br>';
  1345. for (var i = 1; i < 9; i++)
  1346. {
  1347. tooltip += '<img src="http://www' + thumbsServer + '.czshare.com/images_velke/' + i + '.' + thumbsId + '.jpeg" width="' + TOOLTIP_THUMBWIDTH + 'px">';
  1348. }
  1349. warlcTooltip.style.minWidth = TOOLTIP_MAXWIDTH;
  1350. }
  1351. }
  1352. if (href.match('bezvadata'))
  1353. {
  1354. var thumbs;
  1355. thumbs = res.match(/http:\/\/nahledy\.bezvadata\.cz\/nahledy\/\d+\/\d+\/\d+_\d+_\d+x\d+_\w.jpg/g);
  1356. if (thumbs)
  1357. {
  1358. tooltip += '<br>';
  1359. var j = Math.min(thumbs.length, 9);
  1360. for (var i = 0; i < j; i++)
  1361. {
  1362. tooltip += '<img src="' + thumbs[i] + '" width="' + TOOLTIP_THUMBWIDTH + 'px">';
  1363. }
  1364. warlcTooltip.style.minWidth = TOOLTIP_MAXWIDTH;
  1365. }
  1366. }
  1367. link.warlc_tooltipcache = tooltip;
  1368. if (mouseoverLink == link.href) //mouse cursor is still over the link
  1369. {
  1370. warlcTooltip.innerHTML = tooltip;
  1371. }
  1372. }
  1373. });
  1374. }
  1375. }
  1376.  
  1377. function setVariables()
  1378. {
  1379. if (firstRun)
  1380. {
  1381. GM_log('First run, applying default settings...');
  1382. GM_setValue("Icon_set",1);
  1383. GM_setValue("Display_tooltip_info",true);
  1384. GM_setValue("Show_black_background_in_DL_links",false);
  1385. GM_setValue("Show_line_through_in_dead_links",false);
  1386. GM_setValue("Display_full_links_in_link_containers",false);
  1387. GM_setValue("Allow_spaces_in_DL_links",false);
  1388. GM_setValue("Autocheck",true);
  1389. GM_setValue("Enable_Anonymizer",false);
  1390. GM_setValue("Do_not_linkify_DL_links",false);
  1391. GM_setValue("Show_progress_stats",true);
  1392. GM_setValue("Keyboard_functions",true);
  1393. GM_setValue("Obsolete_file_hosts",false);
  1394. GM_setValue("Color_DL_links",true);
  1395. GM_setValue("Live_links_color","Green");
  1396. GM_setValue("Dead_links_color","#FF3300");
  1397. GM_setValue("Temp_unavailable_links_color","#F7EF09");
  1398. GM_setValue("Container_links_color","DarkKhaki");
  1399. GM_setValue("Premium_links_color","DeepPink");
  1400. GM_setValue("Ref_anonymize_service","http://hiderefer.com/?");
  1401. GM_setValue("Custom_rules",false);
  1402. GM_setValue("Custom_rules_text","");
  1403. GM_setValue("First_run", false);
  1404. }
  1405. //hidden settings
  1406. GM_setValue("Progress_box_pos_bottom", Progress_box_pos_bottom = GM_getValue("Progress_box_pos_bottom", 20));
  1407. GM_setValue("Progress_box_pos_right", Progress_box_pos_right = GM_getValue("Progress_box_pos_right", 10));
  1408. GM_setValue("Progress_box_opacity", Progress_box_opacity = GM_getValue("Progress_box_opacity", 85));
  1409. GM_setValue("Progress_box_background_color", Progress_box_background_color = GM_getValue("Progress_box_background_color", 'DimGray'));
  1410. GM_setValue("Progress_box_item_color", Progress_box_item_color = GM_getValue("Progress_box_item_color", 'DimGray'));
  1411. GM_setValue("Progress_box_refresh_rate", Progress_box_refresh_rate = GM_getValue("Progress_box_refresh_rate", 2000));
  1412. GM_setValue("Debug_mode", DEBUG_MODE = GM_getValue("Debug_mode", false));
  1413. //hidden settings end
  1414.  
  1415. Icon_set = GM_getValue("Icon_set", 1); //0 - no icons, 1 - cat paws, 2 - old RSLC style, 3 - New Icons,
  1416. Display_tooltip_info = GM_getValue("Display_tooltip_info", true);
  1417. Show_black_background_in_DL_links = GM_getValue("Show_black_background_in_DL_links", false);
  1418. Show_line_through_in_dead_links = GM_getValue("Show_line_through_in_dead_links", false);
  1419. Display_full_links_in_link_containers = GM_getValue("Display_full_links_in_link_containers", false);
  1420. Allow_spaces_in_DL_links = GM_getValue("Allow_spaces_in_DL_links", false);
  1421. Autocheck = GM_getValue("Autocheck", true);
  1422. Enable_Anonymizer = GM_getValue("Enable_Anonymizer", false);
  1423. Do_not_linkify_DL_links = GM_getValue("Do_not_linkify_DL_links", false);
  1424. Show_progress_stats = GM_getValue("Show_progress_stats", true);
  1425. Keyboard_functions = GM_getValue("Keyboard_functions", true);
  1426. Obsolete_file_hosts = GM_getValue("Obsolete_file_hosts", false);
  1427. Color_DL_links = GM_getValue("Color_DL_links", true);
  1428. Live_links_color = GM_getValue("Live_links_color", "Green");
  1429. Dead_links_color = GM_getValue("Dead_links_color", "#FF3300");
  1430. Temp_unavailable_links_color = GM_getValue("Temp_unavailable_links_color", "#F7EF09");
  1431. Container_links_color = GM_getValue("Container_links_color", "DarkKhaki");
  1432. Premium_links_color = GM_getValue("Premium_links_color", "DeepPink");
  1433. Ref_anonymize_service = GM_getValue("Ref_anonymize_service", "http://hiderefer.com/?");
  1434. Custom_rules = GM_getValue("Custom_rules", false);
  1435. Custom_rules_text = GM_getValue("Custom_rules_text", false);
  1436. }
  1437.  
  1438.  
  1439. // Delinkifies the links
  1440. // params:
  1441. // links -> list of links or link components (note they should be sufficiently unique to identify the link on page,
  1442. // e.g. 'uloz.to/xs68skxl8')
  1443. function delinkifySnapshot(snapshot)
  1444. {
  1445. var n = snapshot.snapshotLength;
  1446.  
  1447. while (n--)
  1448. {
  1449. thisLink = snapshot.snapshotItem(n);
  1450.  
  1451. var spanElm = document.createElement("span");
  1452. spanElm.className = thisLink.className;
  1453. spanElm.innerHTML = thisLink.innerHTML;
  1454.  
  1455. if (Display_tooltip_info)
  1456. {
  1457. spanElm.href = thisLink.href;
  1458. switch (thisLink.className){
  1459. case "alive_link": spanElm.addEventListener("mouseover", displayTooltipInfo, false); break
  1460. case "adead_link": spanElm.addEventListener("mouseover", displayTooltipError, false); break;
  1461. case "unava_link": //reserved
  1462. default:
  1463. }
  1464. }
  1465. thisLink.parentNode.replaceChild(spanElm, thisLink);
  1466. }
  1467. }
  1468.  
  1469. function processContainers()
  1470. {
  1471. var redirectorTypes = { "HTTP_302": 0,
  1472. "INNER_LINK": 1,
  1473. "THELOO_KATT_IT": 2,
  1474. "CING_BE": 3,
  1475. "ADF_LY": 4};
  1476. var cMultiloadTotal = 0;
  1477. var cMultiloadProcessed = 0;
  1478.  
  1479. var cMirrorcreatorComTotal = 0;
  1480. var cMirrorcreatorComProcessed = 0;
  1481.  
  1482. var hostRestrictionRegex = "";
  1483. var multiloadComRestriction = "";
  1484. var multiloadComRestrictionRegex;
  1485.  
  1486. //
  1487. //HANDLING REDIRECTORS START
  1488. //
  1489.  
  1490. var redirectors = new Array();
  1491. initRedirectors();
  1492.  
  1493. var redirectorsCount = redirectors.length;
  1494.  
  1495. if (redirectorsCount > 0)
  1496. {
  1497. var allRedirectorsRegex = "";
  1498.  
  1499. //linkify redirector links
  1500. for(var redirIdx = 0; redirIdx < redirectorsCount; redirIdx++)
  1501. {
  1502. allRedirectorsRegex += redirectors[redirIdx].linkRegex + "|";
  1503. }
  1504. allRedirectorsRegex = allRedirectorsRegex.replace(/\|$/, "");
  1505. linkify(allRedirectorsRegex);
  1506. //
  1507. //process redirector links
  1508. for(var redirIdx = 0; redirIdx < redirectorsCount; redirIdx++)
  1509. {
  1510. var redirectorsSnapshot = document.evaluate(redirectors[redirIdx].xpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  1511. redirectors[redirIdx].cTotal = redirectorsSnapshot.snapshotLength;
  1512.  
  1513. cLinksTotal += redirectors[redirIdx].cTotal;
  1514. var linkIdx = redirectors[redirIdx].cTotal;
  1515.  
  1516. while(linkIdx--)
  1517. {
  1518. switch(redirectors[redirIdx].type)
  1519. {
  1520. case redirectorTypes.HTTP_302: processRedirectorLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1521. case redirectorTypes.INNER_LINK: processRedirectorLinkEx(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1522. case redirectorTypes.THELOO_KATT_IT: processThelooKattItLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1523. case redirectorTypes.CING_BE: processCingBeLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1524. case redirectorTypes.ADF_LY: processAdfLyLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1525. default:
  1526. }
  1527. }
  1528. }
  1529. //
  1530. }
  1531.  
  1532. //HTTP_302
  1533. function processRedirectorLink(link, redirectorId)
  1534. {
  1535. link.className = 'container_link';
  1536.  
  1537. GM_xmlhttpRequest({
  1538. method: 'HEAD',
  1539. url: link.href,
  1540. headers: {
  1541. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1542. 'Accept': 'text/xml',
  1543. 'Referer': ""
  1544. },
  1545. onload: function(result) {
  1546. if (result.finalUrl.replace("https", "http") == link.href) // service hasn't redirected anywhere
  1547. {
  1548. processRedirectorLink(link, redirectorId);
  1549. }
  1550. else
  1551. {
  1552. redirectors[redirectorId].cProcessed++;
  1553. link.href = result.finalUrl;
  1554. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  1555. checkLinks('container_link');
  1556. }
  1557. },
  1558. onerror: function(result) { //probably caused by unresponsive filehosting
  1559. redirectors[redirectorId].cProcessed++;
  1560. link.className = 'unava_link';
  1561. cLinksProcessed++;
  1562. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  1563. checkLinks('container_link');
  1564. }
  1565. });
  1566. }
  1567. //INNER_LINK
  1568. function processRedirectorLinkEx(link, redirectorId)
  1569. {
  1570. link.className = 'container_link';
  1571. GM_xmlhttpRequest({
  1572. method: 'GET',
  1573. url: link.href,
  1574. headers: {
  1575. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1576. 'Accept': 'text/xml',
  1577. 'Referer': ""
  1578. },
  1579. onload: function(result) {
  1580. link.href = result.responseText.match(redirectors[redirectorId].innerLinkRegex)[1];
  1581. redirectors[redirectorId].cProcessed++;
  1582. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  1583. checkLinks('container_link');
  1584. }
  1585. });
  1586. }
  1587. //theloo.katt.it (wrapped safelinking.net)
  1588. function processThelooKattItLink(link, redirectorId)
  1589. {
  1590. link.className = 'container_link';
  1591. GM_xmlhttpRequest({
  1592. method: 'GET',
  1593. url: link.href,
  1594. headers: {
  1595. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1596. 'Accept': 'text/xml',
  1597. 'Referer': ""
  1598. },
  1599. onload: function(result) {
  1600. link.href = result.responseText.match(redirectors[redirectorId].innerLinkRegex)[1];
  1601. redirectors[redirectorId].cProcessed++;
  1602. //the inner links are safelinking.net links, so lets proceed with it
  1603. if (GM_getValue("Check_safelinking_dot_net_links", false))
  1604. {
  1605. processRedirectorLink(link, 0);
  1606. }
  1607. }
  1608. });
  1609. }
  1610. //adf.ly (adf.ly/go innerLink, locking mechanism)
  1611. function processAdfLyLink(link, redirectorId)
  1612. {
  1613. link.className = 'container_link';
  1614. GM_xmlhttpRequest({
  1615. method: 'GET',
  1616. url: link.href,
  1617. headers: {
  1618. 'User-agent': 'Mozilla/4.0',
  1619. 'Accept': 'text/xml',
  1620. 'Referer': ""
  1621. },
  1622. onload: function(result) {
  1623. if (result.finalUrl.match('/locked/'))
  1624. {
  1625. var delay = result.responseText.match(/countdown">(\d+)</)[1];
  1626. // GM_log(result.finalUrl + 'is locked. Repeating the request in ' + delay + 's.');
  1627. // setTimeout(function(){processAdfLyLink(link, redirectorId);}, delay * 1000);
  1628. }
  1629. else
  1630. {
  1631. // GM_log('Processing... ' + link.href);
  1632. // GM_log('Found...' + result.responseText.match(/\/go\/(\w+\/\w+)/)[1]);
  1633. var directLink = 'http://adf.ly' + result.responseText.match(/(\/go\/\w+\/\w+)/)[1];
  1634. var logToken = result.responseText.match(/flashy_(\w+)/)[1];
  1635. var users = result.responseText.match(/user=\d+&user2=\d+/);
  1636. //confirm advert
  1637. GM_xmlhttpRequest(
  1638. {
  1639. method: 'POST',
  1640. url: 'http://adf.ly/l.php',
  1641. headers: {
  1642. 'User-agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20100101 Firefox/13.0',
  1643. 'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
  1644. 'Referer': link.href
  1645. },
  1646. data: users + '&lt=' + logToken,
  1647. onload: function(result) {
  1648. //retrieve final url from .../go/... link
  1649. GM_xmlhttpRequest({
  1650. method: 'GET',
  1651. url: directLink,
  1652. headers: {
  1653. 'User-agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20100101 Firefox/13.0',
  1654. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  1655. 'Referer': link.href
  1656. },
  1657. onload: function(result) {
  1658. link.href = result.finalUrl;
  1659. redirectors[redirectorId].cProcessed++;
  1660. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  1661. checkLinks('container_link');
  1662. }
  1663. });
  1664. }
  1665. });
  1666. }
  1667. }
  1668. });
  1669. function proceedOK()
  1670. {
  1671. }
  1672. }
  1673. //MULTILOAD.CZ START
  1674. if (GM_getValue("Check_multiload_dot_cz_links", false))
  1675. {
  1676. var mlRegex = 'multiload\\.cz\/stahnout\/\\d+\/';
  1677. var mlXpath = "//a[contains(@href,'http://www.multiload.cz/stahnout')]";
  1678.  
  1679. hostRestrictionRegex = 'Upload se nezdařil|limit exceeded|probíhá reupload|';
  1680.  
  1681. if (GM_getValue("Check_hellshare_dot_com_links", false))
  1682. hostRestrictionRegex += 'hellshare|';
  1683. if (GM_getValue("Check_share_dash_rapid_dot_com_links", false))
  1684. hostRestrictionRegex += 'share-rapid\\.com|';
  1685. if (GM_getValue("Check_quickshare_dot_cz_links", false))
  1686. hostRestrictionRegex += 'quickshare\\.cz|';
  1687. if (GM_getValue("Check_czshare_dot_com_links", false))
  1688. hostRestrictionRegex += 'czshare\\.com|';
  1689. if (GM_getValue("Check_uloz_dot_to_links", false))
  1690. hostRestrictionRegex += 'uloz\\.to|';
  1691. if (GM_getValue("Check_hellspy_dot_com_links", false))
  1692. hostRestrictionRegex += 'hellspy|';
  1693. if (GM_getValue("Check_multishare_dot_cz_links", false))
  1694. hostRestrictionRegex += 'multishare\\.cz|';
  1695.  
  1696. hostRestrictionRegex = hostRestrictionRegex.replace(/\|$/, "");
  1697.  
  1698. linkify(mlRegex);
  1699.  
  1700. var mlSnapshot = document.evaluate(mlXpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  1701. var mlCount = mlSnapshot.snapshotLength;
  1702.  
  1703. if (mlCount > 0)
  1704. {
  1705. cMultiloadTotal += mlCount;
  1706.  
  1707. mlIdx = mlCount - 1;
  1708. do
  1709. {
  1710. processMultiloadLink(mlSnapshot.snapshotItem(mlIdx));
  1711. }
  1712. while(mlIdx--)
  1713. }
  1714. }
  1715. //MULTILOAD.CZ END
  1716.  
  1717.  
  1718.  
  1719. function processMultiloadLink(mlLink)
  1720. {
  1721. GM_xmlhttpRequest({
  1722. method: 'GET',
  1723. url: mlLink.href,
  1724. headers: {
  1725. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1726. 'Accept': 'text/xml',
  1727. 'Referer': ""
  1728. },
  1729. onload: function(result) {
  1730. var res = result.responseText;
  1731.  
  1732. var innerBlockRegex = /<p class="manager-linky">(?:.|\s)+?<\/p>/g;
  1733. 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;
  1734. var innerLinkRegex = /((?:Upload se nezdařil.+|https?:\/\/(?:.|\s)+|Právě probíhá reupload, buďte trpěliví\.\.\.))</;
  1735. var mlRestrictionRegex = new RegExp(hostRestrictionRegex,"g"); //what links should be displayed
  1736.  
  1737. var blocks; // blocks of links
  1738. var blockIdx;
  1739.  
  1740. mlLink.className = '';
  1741.  
  1742. if (result.status == 503) //service temporarily unavailable, repeat request in one second
  1743. {
  1744. setTimeout(function(){ processMultiloadLink(mlLink); }, 1000);
  1745. return;
  1746. }
  1747.  
  1748. blocks = res.match(innerBlockRegex);
  1749.  
  1750. if (blocks == null) //no links found, cancel further processing
  1751. {
  1752. mlLink.parentNode.appendChild(document.createTextNode(' | Požadovaný soubor neexistuje.'));
  1753. cMultiloadProcessed++;
  1754. if (cMultiloadTotal <= cMultiloadProcessed)
  1755. {
  1756. startBulkCheck('container_link');
  1757. start('container_link');
  1758. }
  1759. return;
  1760. }
  1761.  
  1762. blockIdx = blocks.length;
  1763.  
  1764. if (Display_full_links_in_link_containers)
  1765. {
  1766. var ulElm = document.createElement('ul');
  1767. ulElm.className = 'container_list'; //CSS smaller font, padding, margin, square style
  1768.  
  1769. while(blockIdx--)
  1770. {
  1771. if (blocks[blockIdx].match(mlRestrictionRegex) == null)
  1772. {
  1773. continue;
  1774. }
  1775.  
  1776. var innerLinks = blocks[blockIdx].match(innerLinksRegex);
  1777.  
  1778. var linkIdx = innerLinks.length;
  1779. while (linkIdx--)
  1780. {
  1781. var innerLink = innerLinks[linkIdx].match(innerLinkRegex)[1];
  1782.  
  1783. var liElm = document.createElement('li');
  1784.  
  1785. if (innerLink.match(/Upload se nezdařil|limit exceeded|probíhá reupload/))
  1786. {
  1787. liElm.appendChild(document.createTextNode(innerLink));
  1788. }
  1789. else
  1790. {
  1791. var aElm = document.createElement('a');
  1792. aElm.innerHTML = innerLink;
  1793. aElm.href = innerLink;
  1794. aElm.className = 'container_link';
  1795.  
  1796. liElm.appendChild(aElm);
  1797. }
  1798.  
  1799. ulElm.appendChild(liElm);
  1800. cLinksTotal++;
  1801. }
  1802. }
  1803.  
  1804. mlLink.parentNode.appendChild(ulElm);
  1805. }
  1806. else //compact view
  1807. {
  1808. mlLink.parentNode.appendChild(document.createTextNode("|"));
  1809.  
  1810. while(blockIdx--)
  1811. {
  1812. if (blocks[blockIdx].match(mlRestrictionRegex) == null)
  1813. {
  1814. continue;
  1815. }
  1816.  
  1817. var innerLinks = blocks[blockIdx].match(innerLinksRegex);
  1818.  
  1819. var linkIdx = innerLinks.length;
  1820. while (linkIdx--)
  1821. {
  1822. var innerLink = innerLinks[linkIdx].match(innerLinkRegex)[1];
  1823.  
  1824. if (innerLink.match(/Upload se nezdařil|limit exceeded|probíhá reupload/))
  1825. {
  1826. mlLink.parentNode.appendChild(document.createTextNode("----"));
  1827. }
  1828. else
  1829. {
  1830. var aElm = document.createElement('a');
  1831.  
  1832. var hostName = innerLink.match(/quickshare|hellshare|uloz\.to|multishare|hellspy|share\-rapid|czshare/);
  1833.  
  1834. //abbreviate host name
  1835. switch(hostName + ""){
  1836.  
  1837. case 'quickshare': aElm.innerHTML = 'QS'; break;
  1838. case 'hellshare': aElm.innerHTML = 'HS'; break;
  1839. case 'uloz.to': aElm.innerHTML = 'UT'; break;
  1840. case 'multishare': aElm.innerHTML = 'MS'; break;
  1841. case 'hellspy': aElm.innerHTML = 'hs'; break;
  1842. case 'share-rapid': aElm.innerHTML = 'SR'; break;
  1843. case 'czshare': aElm.innerHTML = 'CS'; break;
  1844. default: aElm.innerHTML = 'xx';
  1845.  
  1846. }
  1847.  
  1848. aElm.href = innerLink;
  1849. aElm.className = 'container_link';
  1850.  
  1851. mlLink.parentNode.appendChild(aElm);
  1852. cLinksTotal++;
  1853. }
  1854. }
  1855.  
  1856. mlLink.parentNode.appendChild(document.createTextNode("|")); //blocks delimiter
  1857.  
  1858. }
  1859. }
  1860.  
  1861. cMultiloadProcessed++;
  1862. if (cMultiloadTotal == cMultiloadProcessed) //start check when all ml links have been processed
  1863. {
  1864. if (Do_not_linkify_DL_links)
  1865. {
  1866. delinkifySnapshot(mlSnapshot);
  1867. }
  1868. startBulkCheck('container_link');
  1869. start('container_link');
  1870. }
  1871. }
  1872. });
  1873. }
  1874.  
  1875.  
  1876. if (GM_getValue("Check_mirrorcreator_dot_com_links", false))
  1877. {
  1878. var mcRegex = 'mirrorcreator\\.com/files/(\\w+)';
  1879. var mcXpath = "//a[contains(@href,'mirrorcreator.com/files')]";
  1880. var mcShortHostNames =
  1881. '?? 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';
  1882. // 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
  1883. //?????? depositfiles sendspace load.to ul.to storage.to uploadbox x7.to fileserve ?????? duckload filehook filepost jumbofiles glumbouploads
  1884. // zshare ?????? 2shared uploading ugotfile extabit oron eyvx uploadstation putlocker
  1885. // megaupload badongo megashare gamefront ifile ?????? letitbit ?????? ?????? filejungle megashares
  1886. // easy-share ?????? netload zippyshare ?????? filesonic turbobit enterupload ?????? filekeen wupload crocko fileflyer
  1887.  
  1888. linkify(mcRegex);
  1889.  
  1890. var mcSnapshot = document.evaluate(mcXpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  1891. var mcCount = mcSnapshot.snapshotLength;
  1892.  
  1893. cMirrorcreatorComTotal = mcCount;
  1894.  
  1895. if (mcCount > 0)
  1896. {
  1897. mcShortHostNames = mcShortHostNames.split(' ');
  1898. mcIdx = mcCount;
  1899. while(mcIdx--)
  1900. processMirrorcreatorLink(mcSnapshot.snapshotItem(mcIdx));
  1901. }
  1902.  
  1903. }
  1904. //MIRRORCREATOR.CZ END
  1905.  
  1906.  
  1907. //mirrorcreator.com checking works like this:
  1908. //The base URL is http://www.mirrorcreator.com/files/XXXXXXXX/filename_links
  1909. //the actual list of mirrors is at http://www.mirrorcreator.com/status.php?uid=XXXXXXXX
  1910. //the list contains links in the form of (http://www.mirrorcreator.com)/redirect/XXXXXXXX/1
  1911. //these redirector links are extracted with mcLinkBlockRegex and the pages loaded
  1912. //they contain the actual filehost links, which are extracted with mcHostRegex and displayed in a container list
  1913. function processMirrorcreatorLink(mcLink)
  1914. {
  1915. var mcURL = mcLink.href.match(mcRegex);
  1916. if(!mcURL || !mcURL[1]) return;
  1917. mcURL = 'http://www.mirrorcreator.com/status.php?uid=' + mcURL[1]; //link correction
  1918. GM_xmlhttpRequest({
  1919. method: 'GET',
  1920. url: mcURL,
  1921. headers: {
  1922. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1923. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*'+'/*;q=0.8',
  1924. 'Referer': ""
  1925. },
  1926. onload: function(mcLinkResult) {
  1927. var mcLinkRes = mcLinkResult.responseText;
  1928.  
  1929. var mcLinkBlockRegex = /(\/redirect\/\w+\/(\d+))/gi;
  1930. var mcHostRegex = /<div id="redirectlink">.*?<a href="([^"]+)"/;
  1931.  
  1932. var mcRedirectors;
  1933. var mcHostURLs = [], mcRedirectorIDs = [], mcHostsFound = 0, mcHostsRetrieved = 0, mcHostsToProcess = 0;
  1934. var m = mcLinkRes.match(mcLinkBlockRegex);
  1935. if (m)
  1936. mcHostsFound = m.length;
  1937. else
  1938. { //no files inside container
  1939. processMirrorcreatorFoundHosts(mcLink, []);
  1940. return;
  1941. }
  1942.  
  1943. var mcRedirectorURL, idx, timedOut = false;
  1944.  
  1945. var gmxhrFunc = function(mcRedirectorURL){ //Tampermonkey doesn't know neither this.url or result.finalUrl
  1946. GM_xmlhttpRequest({
  1947. method: 'GET',
  1948. url: mcRedirectorURL,
  1949. headers: {
  1950. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1951. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*'+'/*;q=0.8',
  1952. 'Referer': ""
  1953. },
  1954. onload: function(mcHostResult) {
  1955. if (timedOut) return; //too late, the list is already displayed
  1956. var mcHostRes = mcHostResult.responseText;
  1957. var mcHost = mcHostRes.match(mcHostRegex);
  1958. idx = mcHostURLs.indexOf(mcRedirectorURL);
  1959. if (mcHost && idx!=-1)
  1960. {
  1961. mcHostURLs[idx] = mcHost[1].replace(/^\s+|\s+$/g, '');
  1962. mcHostsRetrieved++;
  1963. mcHostsToProcess++;
  1964. if (mcHostsFound == mcHostsRetrieved) //this is the last one!
  1965. {
  1966. processMirrorcreatorFoundHosts(mcLink, mcHostURLs, mcRedirectorIDs);
  1967. mcHostsToProcess = 0;
  1968. }
  1969. }
  1970. } //end of onload: function
  1971. }); //end of GM_xmlhttpRequest call
  1972. };//end of var gmxhrFunc
  1973.  
  1974. while (mcRedirectors = mcLinkBlockRegex.exec(mcLinkRes))
  1975. { //load individual redirector pages
  1976. mcRedirectorURL = 'http://www.mirrorcreator.com' + mcRedirectors[1];
  1977. mcHostURLs.push(mcRedirectorURL);
  1978. mcRedirectorIDs.push(mcRedirectors[2]);
  1979. gmxhrFunc(mcRedirectorURL);
  1980. } //end of while block
  1981.  
  1982. setTimeout(function(){ //in case the last page fails to load and call the function
  1983. timedOut = true;
  1984. if (mcHostsToProcess)
  1985. processMirrorcreatorFoundHosts(mcLink, mcHostURLs);
  1986. }, 60000);
  1987.  
  1988. } //end of onload function
  1989. }); //end of GM_xmlhttpRequest call
  1990. } //end of function processMirrorcreatorLink
  1991.  
  1992.  
  1993. function processMirrorcreatorFoundHosts(mcLink, mcHostURLs, mcRedirectorIDs)
  1994. {
  1995. var aEl, liEl, docFrag;
  1996. var hostName, mcRedirectorID, trimFilename = false;
  1997. var i = mcHostURLs.length;
  1998. if (i == 0)
  1999. {
  2000. trimFilename = true;
  2001. mcLink.parentNode.insertBefore(document.createTextNode(' | No files inside container'), mcLink.nextSibling);
  2002. }
  2003. else
  2004. {
  2005. if (Display_full_links_in_link_containers)
  2006. { //full view
  2007. var wrapperEl = document.createElement('span');
  2008. wrapperEl.style.display = 'block';
  2009. var ulistEl = document.createElement('ul');
  2010. ulistEl.className = 'container_list';
  2011. while (i--)
  2012. {
  2013. liEl = document.createElement('li');
  2014. aEl = document.createElement('a');
  2015. aEl.appendChild(document.createTextNode(mcHostURLs[i]));
  2016. aEl.href = mcHostURLs[i];
  2017. aEl.className = 'container_link';
  2018. liEl.appendChild(aEl);
  2019. ulistEl.appendChild(liEl);
  2020. }
  2021. wrapperEl.appendChild(ulistEl);
  2022. mcLink.parentNode.replaceChild(wrapperEl, mcLink);
  2023. wrapperEl.insertBefore(mcLink, wrapperEl.firstChild);
  2024. }
  2025. else
  2026. { //compact view
  2027. trimFilename = true;
  2028. docFrag = document.createDocumentFragment();
  2029. docFrag.appendChild(document.createTextNode(' |'));
  2030. while (i--)
  2031. {
  2032. mcRedirectorID = mcRedirectorIDs[i];
  2033. hostName = mcHostURLs[i];
  2034. if (mcRedirectorID > mcShortHostNames.length-1 || mcShortHostNames[mcRedirectorID] == '??')
  2035. hostName = hostName.replace(/https?:\/\/(?:www\.)?([-0-9a-z]+(?:\.[-0-9a-z]+)?)\.[a-z]+\/.*/i, '$1').toUpperCase();
  2036. else
  2037. hostName = mcShortHostNames[mcRedirectorID];
  2038. aEl = document.createElement('a');
  2039. aEl.href = mcHostURLs[i];
  2040. aEl.className = 'container_link';
  2041. aEl.appendChild(document.createTextNode(hostName));
  2042. docFrag.appendChild(aEl);
  2043. docFrag.appendChild(document.createTextNode('|'));
  2044. }
  2045. mcLink.parentNode.insertBefore(docFrag, mcLink.nextSibling);
  2046. } //end of else block
  2047. } //end of else block
  2048. mcLink.className = '';
  2049. if (trimFilename)
  2050. mcLink.firstChild.nodeValue = mcLink.firstChild.nodeValue.replace(/(https?:\/\/[^\/]+\/files\/\w+\/).+/, '$1...');
  2051. cMirrorcreatorComProcessed++;
  2052. if (cMirrorcreatorComProcessed == cMirrorcreatorComTotal) //start check when all mc links have been processed
  2053. {
  2054. if (Do_not_linkify_DL_links)
  2055. delinkifySnapshot(mcSnapshot);
  2056. startBulkCheck('container_link');
  2057. start('container_link');
  2058. }
  2059. } //end of function processMirrorcreatorFoundHosts
  2060.  
  2061. containers_processed = true;
  2062.  
  2063.  
  2064. function initRedirectors()
  2065. {
  2066. function addRedirector(linkRegex, xpathEx, redirType, innerLinkRegex)
  2067. {
  2068. var redirector = new Object();
  2069. redirector.linkRegex = linkRegex;
  2070. redirector.xpath = xpathEx; //xpath expression
  2071. redirector.cProcessed = 0; //processed links count
  2072. redirector.cTotal = 0; //total links count
  2073. redirector.type = redirType; //redirectorTypes enum
  2074. redirector.innerLinkRegex = innerLinkRegex; //innerLink, null if unused
  2075. redirectors.push(redirector);
  2076. }
  2077. if (GM_getValue("Check_safelinking_dot_net_links", false))
  2078. {
  2079. addRedirector(
  2080. 'safelinking\\.net\/d\/\\w+',
  2081. "//a[contains(@href,'safelinking.net/d/')]",
  2082. redirectorTypes.HTTP_302,
  2083. null);
  2084. }
  2085. if (GM_getValue("Check_linksafe_dot_me_links", false))
  2086. {
  2087. addRedirector(
  2088. 'linksafe\\.me\/d\/\\w+',
  2089. "//a[contains(@href,'linksafe.me/d/')]",
  2090. redirectorTypes.HTTP_302,
  2091. null);
  2092. }
  2093. if (GM_getValue("Check_linkto_dot_net_links", false))
  2094. {
  2095. addRedirector(
  2096. 'linkto\\.net\/\\?\\w+\\.\\d+',
  2097. "//a[contains(@href,'linkto.net/?')]",
  2098. redirectorTypes.INNER_LINK,
  2099. /<iframe id="iframe" name="iframe" src="(.+?)\s*" frameborder="0"/);
  2100. }
  2101. if (GM_getValue("Check_theloo_dot_katt_dot_it_links", false))
  2102. {
  2103. addRedirector(
  2104. '(?:the)?loo\\.katt\\.it\/\\w+',
  2105. "//a[contains(@href,'loo.katt.it/')]",
  2106. redirectorTypes.THELOO_KATT_IT,
  2107. /Proceed to URL - <a href="(.+?)">/);
  2108. }
  2109. if (GM_getValue("Check_madlink_dot_sk_links", false))
  2110. {
  2111. addRedirector(
  2112. 'madlink\\.sk\/\\w+',
  2113. "//a[contains(@href,'madlink.sk/')]",
  2114. redirectorTypes.INNER_LINK,
  2115. /name="url" value="(.+?)\s*"\/>/);
  2116. }
  2117. if (GM_getValue("Check_adf_dot_ly_links", false))
  2118. {
  2119. addRedirector(
  2120. '(?:adf\\.ly|[u9]\\.bb|[qj]\\.gs)\/\\w+',
  2121. "//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/')]",
  2122. redirectorTypes.ADF_LY,
  2123. null);
  2124. }
  2125. if (GM_getValue("Check_redi_dot_re_links", false))
  2126. {
  2127. addRedirector(
  2128. 'redi\\.re\/\\w+',
  2129. "//a[contains(@href,'redi.re/')]",
  2130. redirectorTypes.HTTP_302,
  2131. null);
  2132. }
  2133. if (GM_getValue("Check_bit_dot_ly_links", false))
  2134. {
  2135. addRedirector(
  2136. 'bit\\.ly\/\\w+',
  2137. "//a[contains(@href,'bit.ly/')]",
  2138. redirectorTypes.HTTP_302,
  2139. null);
  2140. }
  2141. }
  2142.  
  2143. }
  2144.  
  2145. var bulkHosts = new Array();
  2146. var bulkHostNames = new Array();
  2147. function initBulkCheck()
  2148. {
  2149. /////////////////////////////
  2150. // Inits filehost object
  2151. /////////////////////////////
  2152. // params :
  2153. // hostName -- [string] host name (multiple domains separated with coma)
  2154. // linkRegex -- [string] link regex
  2155. // xpath -- [string] xpath expression to detect the link objects with evaluate
  2156. // blockSize -- [integer] max. number of links sent in one request, 50 if null
  2157. // corrMatch -- [regex] link correction regex (match), applied prior to corrRepl
  2158. // corrReplWhat -- [regex] link correction regex (replace)
  2159. // corrReplWith -- [string]
  2160. // splitSeparator -- [string] POSTDATA links separator, "\r\n" if null
  2161. //
  2162. // apiUrl -- [string] web linkchecker or API URL
  2163. // postData -- [string] POSTDATA of xmlhttprequest
  2164. // resLinkRegex -- [regex]
  2165. // resLiveRegex -- [regex] matches substrings containing live links in the request response
  2166. // resDeadRegex -- [regex] matches substrings containing dead links in the request response
  2167. // resUnavaRegex -- [regex] matches substrings containing unava links in the request response
  2168. // func -- [function] bulkcheck handler, genBulkCheck if null
  2169. //
  2170. //////////////////////////////
  2171. function addHost(hostName, linkRegex, xpath, blockSize, corrMatch, corrReplWhat, corrReplWith, splitSeparator,
  2172. apiUrl, postData, resLinkRegex, resLiveRegex, resDeadRegex, resUnavaRegex, func)
  2173. {
  2174. var fileHost = new Object();
  2175.  
  2176. fileHost.linkRegex = linkRegex;
  2177. fileHost.linkRegexObject = new RegExp(linkRegex, "");
  2178. fileHost.xpath = xpath;
  2179. fileHost.cFound = 0; //found links counter
  2180. fileHost.links = new Array(); //found links
  2181. if (blockSize == null)
  2182. {
  2183. fileHost.blockSize = 50;
  2184. }
  2185. else
  2186. {
  2187. fileHost.blockSize = blockSize;
  2188. }
  2189. fileHost.corrMatch = corrMatch;
  2190. fileHost.corrReplWhat = corrReplWhat;
  2191. fileHost.corrReplWith = corrReplWith;
  2192. if (splitSeparator == null)
  2193. {
  2194. fileHost.splitSeparator = "\r\n";
  2195. }
  2196. else
  2197. {
  2198. fileHost.splitSeparator = splitSeparator;
  2199. }
  2200. fileHost.apiUrl = apiUrl;
  2201. fileHost.postData = postData;
  2202. fileHost.resLinkRegex = resLinkRegex;
  2203. fileHost.resLiveRegex = resLiveRegex;
  2204. fileHost.resDeadRegex = resDeadRegex;
  2205. fileHost.resUnavaRegex = resUnavaRegex;
  2206. if (func == null)
  2207. {
  2208. fileHost.func = genBulkCheck;
  2209. }
  2210. else
  2211. {
  2212. fileHost.func = func;
  2213. }
  2214. bulkHosts.push(fileHost);
  2215. var names = hostName.split(',');
  2216. var i = names.length;
  2217. while(i--)
  2218. {
  2219. bulkHostNames[names[i]] = fileHost;
  2220. }
  2221. }
  2222. var genType1 = [
  2223. "migahost.com", "rodfile.com", "downloadani.me",
  2224. "rarefile.net",
  2225. "ddlstorage.com", "filesabc.com", "sharebeast.com",
  2226. "180upload.com", "verzend.be",
  2227. "movreel.com",
  2228. "4up.me",
  2229. "file4safe.com", "filemac.com", "4upfiles.com",
  2230. "idup.in", "novafile.com", "longfiles.com",
  2231. "bitupload.com",
  2232. "uploadbaz.com"
  2233. ];
  2234. var genType2 = [ "queenshare.com",
  2235. "hulkload.com",
  2236. "daj.to",
  2237. "amonshare.com", "edoc.com",
  2238. ];
  2239. //xfilesharing 1.0
  2240. function addGenericType1()
  2241. {
  2242. var i = genType1.length;
  2243. while(i--)
  2244. {
  2245. if (GM_getValue("Check_" + genType1[i].replace(/\./g, "_dot_").replace(/-/g, "_dash_") + "_links", false))
  2246. {
  2247. var regexSafe = genType1[i].replace(/\./g, "\\.").replace(/-/g, "\\-");
  2248. addHost(
  2249. genType1[i].match(/[\w-]+/)[0], //hostname
  2250. regexSafe + "\/\\w+", //linkregex
  2251. "//a[contains(@href,'" + genType1[i] + "/')]", //xpath
  2252. null, //blocksize
  2253. new RegExp("(http:\/\/(?:|www\\.)" + regexSafe + "\/\\w+)",""),//, //corrmatch
  2254. null, //corrreplwhat
  2255. null, //corrreplwith
  2256. null, //separator
  2257. "http://" + genType1[i] + "/checkfiles.html", //api url
  2258. "op=checkfiles&process=Check+URLs&list=", //postdata
  2259. new RegExp("(" + regexSafe + "\/\\w+)",""), //linkregex
  2260. new RegExp("green'>http:\/\/(?:|www\.)" + regexSafe + "\/\\w+","g"), //liveregex
  2261. new RegExp("red'>http:\/\/(?:|www\.)" + regexSafe + "\/\\w+","g"), //deadregex
  2262. new RegExp("orange'>http:\/\/(?:|www\.)" + regexSafe + "\/\\w+","g"), //unavaregex
  2263. null //function delegate
  2264. )
  2265. }
  2266. }
  2267. }
  2268. //xfilesharing 2.0
  2269. function addGenericType2()
  2270. {
  2271. var i = genType2.length;
  2272. while(i--)
  2273. {
  2274. if (GM_getValue("Check_" + genType2[i].replace(/\./g, "_dot_").replace(/-/g, "_dash_") + "_links", false))
  2275. {
  2276. var regexSafe = genType2[i].replace(/\./g, "\\.").replace(/-/g, "\\-");
  2277. addHost(
  2278. genType2[i].match(/[\w-]+/)[0], //hostname
  2279. regexSafe + "\/\\w+", //linkregex
  2280. "//a[contains(@href,'" + genType2[i] + "/')]", //xpath
  2281. null, //blocksize
  2282. new RegExp("(http:\/\/(?:|www\\.)" + regexSafe + "\/\\w+)",""),//, //corrmatch
  2283. null, //corrreplwhat
  2284. null, //corrreplwith
  2285. null, //separator
  2286. "http://www." + genType2[i] + "/?op=checkfiles", //api url
  2287. "op=checkfiles&process=Check+URLs&list=", //postdata
  2288. new RegExp("(" + regexSafe + "\/\\w+)",""), //linkregex
  2289. new RegExp(regexSafe + "\/\\w+.*?<\/td>\\s*<td style=\"color:green;\">","g"), //liveregex
  2290. new RegExp(regexSafe + "\/\\w+.*?<\/td>\\s*<td style=\"color:red;\">","g"), //deadregex
  2291. new RegExp(regexSafe + "\/\\w+.*?<\/td>\\s*<td style=\"color:orange;\">","g"), //unavaregex
  2292. null //function delegate
  2293. )
  2294. }
  2295. }
  2296. }
  2297. // TEMPLATE
  2298. // if (GM_getValue("Check__dot_com_links", false))
  2299. // {
  2300. // addHost(
  2301. // "", //hostname
  2302. // "", //linkregex
  2303. // "//a[contains(@href,'.com/')]", //xpath
  2304. // null, //blocksize
  2305. // null, //corrmatch
  2306. // null, //corrreplwhat
  2307. // null, //corrreplwith
  2308. // null, //separator
  2309. // "", //api url
  2310. // "", //postdata
  2311. // /()/, //linkregex
  2312. // //liveregex
  2313. // //deadregex
  2314. // //unavaregex
  2315. // null //function delegate
  2316. // )
  2317. // }
  2318. addGenericType1();
  2319. addGenericType2();
  2320.  
  2321. if (GM_getValue("Check_myvdrive_dot_com_links", false))
  2322. {
  2323. addHost(
  2324. "myvdrive,fileserving", //hostname
  2325. "(?:fileserving|myvdrive)\\.com\/files\/[\\w-]+", //linkregex
  2326. "//a[contains(@href,'fileserving.com/files') or contains(@href,'myvdrive.com/files')]", //xpath
  2327. null, //blocksize
  2328. null, //corrmatch
  2329. null, //corrreplwhat
  2330. null, //corrreplwith
  2331. null, //separator
  2332. "http://www.myvdrive.com/Public/linkchecker#", //api url
  2333. "links=", //postdata
  2334. /(?:fileserving|myvdrive)\.com\/(files\/\w+)/, //linkregex
  2335. /icon_file_check_valid"><\/span>\s*http:\/\/www\.(?:fileserving|myvdrive)\.com\/files\/[\w-]+/g, //liveregex
  2336. /icon_file_check_(?:removed|notvalid)"><\/span>\s*http:\/\/www\.(?:fileserving|myvdrive)\.com\/files\/[\w-]+/g, //deadregex
  2337. null, //unavaregex
  2338. null //function delegate
  2339. )
  2340. }
  2341. if (GM_getValue("Check_hackerbox_dot_org_links", false))
  2342. {
  2343. addHost(
  2344. "hackerbox", //hostname
  2345. "host\\.hackerbox\\.org\/\\w+", //linkregex
  2346. "//a[contains(@href,'host.hackerbox.org/')]", //xpath
  2347. null, //blocksize
  2348. /(http:\/\/host\.hackerbox\.org\/\w+)/, //corrmatch
  2349. null, //corrreplwhat
  2350. null, //corrreplwith
  2351. null, //separator
  2352. "http://host.hackerbox.org/checkfiles.html", //api url
  2353. "op=checkfiles&process=Check+URLs&list=", //postdata
  2354. /(host\.hackerbox\.org\/\w+)/, //linkregex
  2355. /green'>http:\/\/host\.hackerbox\.org\/\w+/g, //liveregex
  2356. /red'>http:\/\/host\.hackerbox\.org\/\w+/g, //deadregex
  2357. /orange'>http:\/\/host\.hackerbox\.org\/\w+/g, //unavaregex
  2358. null //function delegate
  2359. )
  2360. }
  2361. if (GM_getValue("Check_hellshare_dot_com_links", false))
  2362. {
  2363. addHost(
  2364. "hellshare", //hostname
  2365. "(?:|download\\.(?:cz\\.|en\\.|sk\\.|)|www\\.)hellshare\\.(?:com|sk|cz|pl|hu|COM|SK|CZ|PL|HU)\/[\\w-\\.]+\/(?:[\\w-\\.]+\/|)\\d{5,}", //linkregex
  2366. "//a[contains(@href,'hellshare.')]", //xpath
  2367. 48, //blocksize
  2368. null, //corrmatch
  2369. null, //corrreplwhat
  2370. null, //corrreplwith
  2371. null, //separator
  2372. null, //api url
  2373. null, //postdata
  2374. null, //linkregex
  2375. null, //liveregex
  2376. null, //deadregex
  2377. null, //unavaregex
  2378. hellshareBulkCheck //function delegate
  2379. )
  2380. }
  2381. if (GM_getValue("Check_ncrypt_dot_in_links", false))
  2382. {
  2383. addHost(
  2384. "ncrypt", //hostname
  2385. "ncrypt\\.in\/folder\\-\\w+", //linkregex
  2386. "//a[contains(@href,'ncrypt.in/folder')]", //xpath
  2387. 100000, //blocksize
  2388. null, //corrmatch
  2389. null, //corrreplwhat
  2390. null, //corrreplwith
  2391. null, //separator
  2392. null,
  2393. null,
  2394. null,
  2395. null,
  2396. null,
  2397. null,
  2398. ncryptBulkCheck //function delegate
  2399. )
  2400. }
  2401. if (GM_getValue("Check_geupload_dot_com_links", false))
  2402. {
  2403. addHost(
  2404. "geupload,lenfile", //hostname
  2405. "(?:geupload\\.com|lenfile\\.com)\/\\w+", //linkregex
  2406. "//a[contains(@href,'geupload.com/') or contains(@href,'lenfile.com/')]", //xpath
  2407. null, //blocksize
  2408. null, //corrmatch
  2409. null, //corrreplwhat
  2410. null, //corrreplwith
  2411. "\n", //separator
  2412. 'http://geupload.com/?op=checkfiles',
  2413. 'op=checkfiles&process=Check+URLs&list=',
  2414. />http:\/\/(?:geupload|lenfile)\.com\/(\w+)/,
  2415. />http:\/\/(?:geupload|lenfile)\.com\/\w+(?:[^>]+>)<td style=\"color\:green/g,
  2416. />http:\/\/(?:geupload|lenfile)\.com\/\w+(?:[^>]+>)<td style=\"color\:red/g,
  2417. null,
  2418. null
  2419. )
  2420. }
  2421. if (GM_getValue("Check_filepost_dot_com_links", false))
  2422. {
  2423. addHost(
  2424. "filepost,fp", //hostname
  2425. "(?:filepost\\.com\/files|fp\\.io)\/\\w+", //linkregex
  2426. "//a[contains(@href,'filepost.com/files/') or contains(@href,'fp.io/')]", //xpath
  2427. null, //blocksize
  2428. null, //corrmatch
  2429. null, //corrreplwhat
  2430. null, //corrreplwith
  2431. "\n", //separator
  2432. 'http://filepost.com/files/checker/?JsHttpRequest=0-xml',
  2433. 'urls=',
  2434. /\\\/files\\\/(\w+)/,
  2435. />http:\\\/\\\/filepost\.com\\\/files\\\/\w+(?:[^>]+>){5}(?:\\n|\\t)+<span class=\\"v\\"/g,
  2436. />http:\\\/\\\/filepost\.com\\\/files\\\/\w+(?:[^>]+>){5}(?:\\n|\\t)+<span class=\\"x\\"/g,
  2437. null,
  2438. null //function delegate
  2439. )
  2440. }
  2441. if (GM_getValue("Check_filesflash_dot_com_links", false))
  2442. {
  2443. addHost(
  2444. "filesflash", //hostname
  2445. "filesflash\\.com\/\\w+", //linkregex
  2446. "//a[contains(@href,'filesflash.com')]", //xpath
  2447. null, //blocksize
  2448. null, //corrmatch
  2449. /http:\/\//, //corrreplwhat
  2450. '', //corrreplwith
  2451. null, //separator
  2452. 'http://filesflash.com/checklinks.php',
  2453. 'submit=Go&links=',
  2454. /filesflash\.com\/(\w+)/,
  2455. /<td>filesflash\.com\/\w+<\/td>\s*<td>Available/g,
  2456. /<td>filesflash\.com\/\w+<\/td>\s*<td>(?:Invalid|Deleted|Expired|Banned)?<\/td>/g,
  2457. null,
  2458. null //function delegate
  2459. )
  2460. }
  2461. if (GM_getValue("Check_jumbofiles_dot_com_links", false))
  2462. {
  2463. addHost(
  2464. "jumbofiles", //hostname
  2465. "jumbofiles\\.com\/\\w+", //linkregex
  2466. "//a[contains(@href,'jumbofiles.com/')]", //xpath
  2467. null, //blocksize
  2468. /(http:\/\/(?:|www\.)jumbofiles\.com\/\w+)/, //corrmatch
  2469. null, //corrreplwhat
  2470. null, //corrreplwith
  2471. null, //separator
  2472. "http://jumbofiles.com/checkfiles.html", //api url
  2473. "op=checkfiles&process=Check+URLs&list=", //postdata
  2474. /(jumbofiles\.com\/\w+)/, //linkregex
  2475. /blue'>http:\/\/(?:|www\.)jumbofiles\.com\/\w+/g, //liveregex
  2476. /red'>http:\/\/(?:|www\.)jumbofiles\.com\/\w+/g, //deadregex
  2477. /orange'>http:\/\/(?:|www\.)jumbofiles\.com\/\w+/g, //unavaregex
  2478. null //function delegate
  2479. )
  2480. }
  2481. if (GM_getValue("Check_edisk_dot_cz_links", false))
  2482. {
  2483. addHost(
  2484. "edisk", //hostname
  2485. "(?:(?:muj|data)\\d*\\.|)edisk\\.(?:cz|sk|eu)\/(?:|(?:cz|sk|en|pl)\/)", //linkregex
  2486. "//a[contains(@href,'edisk.')]", //xpath
  2487. null, //blocksize
  2488. null, //corrmatch
  2489. /edisk\.\w{2}\/(?:|\w{2}\/)stahni/, //corrreplwhat
  2490. 'edisk.cz/stahni', //corrreplwith
  2491. null, //separator
  2492. 'http://www.edisk.cz/zkontrolovat-odkazy',
  2493. 'submitBtn=Zkontrolovat&checkFiles=',
  2494. /((?:download|stahn(?:i|out-soubor))\/\d+)/,
  2495. /"ano"\/>\s*<\/td>\s*<td>\s*http:\/\/.+/g,
  2496. /"ne"\/>\s*<\/td>\s*<td>\s*http:\/\/.+/g,
  2497. null,
  2498. null //function delegate
  2499. )
  2500. }
  2501. if (GM_getValue("Check_bezvadata_dot_cz_links", false))
  2502. {
  2503. GM_xmlhttpRequest( //age check skip
  2504. {
  2505. method: 'POST',
  2506. url: 'http://bezvadata.cz/vyhledavani/souhlas-zavadny-obsah',
  2507. headers: {
  2508. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  2509. 'Content-type': 'application/x-www-form-urlencoded',
  2510. 'Referer': ""
  2511. }
  2512. });
  2513. addHost(
  2514. "bezvadata", //hostname
  2515. "(?:beta\\.|)bezvadata\.cz\/stahnout\/\\d+\\w+", //linkregex
  2516. "//a[contains(@href,'bezvadata.cz')]", //xpath
  2517. null, //blocksize
  2518. null, //corrmatch
  2519. null, //corrreplwhat
  2520. null, //corrreplwith
  2521. null, //separator
  2522. 'http://bezvadata.cz/nastroje/kontrola-odkazu?do=kontrolaOdkazuForm-submit',
  2523. 'zkontrolovat=Zkontrolovat&odkazy=',
  2524. /(bezvadata\.cz\/stahnout\/\d+)/,
  2525. /bezvadata\.cz\/stahnout\/.+?<\/td>\s*<td style="background-color: #d9ffb2/g,
  2526. /bezvadata\.cz\/stahnout\/.+?<\/td>\s*<td style="background-color: #ffb2b2/g,
  2527. null,
  2528. null //function delegate
  2529. )
  2530. }
  2531. if (GM_getValue("Check_linkcrypt_dot_ws_links", false))
  2532. {
  2533. addHost(
  2534. "linkcrypt", //hostname
  2535. "linkcrypt\\.ws\/dir\/\\w+", //linkregex
  2536. "//a[contains(@href,'linkcrypt.ws/dir')]", //xpath
  2537. 100000, //blocksize
  2538. null, //corrmatch
  2539. null, //corrreplwhat
  2540. null, //corrreplwith
  2541. null, //separator
  2542. null,
  2543. null,
  2544. null,
  2545. null,
  2546. null,
  2547. null,
  2548. linkcryptBulkCheck //function delegate
  2549. )
  2550. }
  2551. if (GM_getValue("Check_linksave_dot_in_links", false))
  2552. {
  2553. addHost(
  2554. "linksave", //hostname
  2555. "linksave\\.in\/\\w+", //linkregex
  2556. "//a[contains(@href,'linksave.in')]", //xpath
  2557. 100000, //blocksize
  2558. null, //corrmatch
  2559. null, //corrreplwhat
  2560. null, //corrreplwith
  2561. null, //separator
  2562. null,
  2563. null,
  2564. null,
  2565. null,
  2566. null,
  2567. null,
  2568. linksaveBulkCheck //function delegate
  2569. )
  2570. }
  2571. if (GM_getValue("Check_videobb_dot_com_links", false))
  2572. {
  2573. addHost(
  2574. "videobb", //hostname
  2575. "videobb\\.com\/(?:video\/|watch_video\\.php\\?v=)\\w+", //linkregex
  2576. "//a[contains(@href,'videobb.com')]", //xpath
  2577. null, //blocksize
  2578. null, //corrmatch
  2579. /watch_video\.php\?v=/, //corrreplwhat
  2580. 'video/', //corrreplwith
  2581. null, //separator
  2582. 'http://www.videobb.com/link_checker.php',
  2583. 'links=',
  2584. /videobb\.com\/video\/(\w+)/,
  2585. /<td>http:\/\/(?:www\.|)videobb.com\/video\/\w+<\/td>\s+<td>.+?<\/td>\s+<td>\d+:\d+<\/td>\s+<td>Available/g,
  2586. /<td>http:\/\/(?:www\.|)videobb.com\/video\/\w+<\/td>\s+<td><\/td>\s+<td>N\/A<\/td>\s+<td>Not Available/g,
  2587. null,
  2588. null //function delegate
  2589. )
  2590. }
  2591. if (GM_getValue("Check_cramit_dot_in_links", false))
  2592. {
  2593. addHost(
  2594. "cramit,cramitin", //hostname
  2595. "cramit(?:\\.in|in\\.net)\/", //linkregex
  2596. "//a[contains(@href,'cramitin.net') or contains(@href,'cramit.in')]", //xpath
  2597. null, //blocksize
  2598. null, //corrmatch
  2599. null, //corrreplwhat
  2600. null, //corrreplwith
  2601. null, //separator
  2602. 'http://cramit.in/checkfiles.html',
  2603. 'op=checkfiles&process=CHECK+URL%27S&list=',
  2604. /(cramit(?:\.in|in\.net)\/\w+)/,
  2605. /green>http:\/\/(?:www\.|)cramit(?:\.in|in\.net)\/\w+/g,
  2606. /red'>http:\/\/(?:www\.|)cramit(?:\.in|in\.net)\/\w+/g,
  2607. /orange'>http:\/\/(?:www\.|)cramit(?:\.in|in\.net)\/\w+/g,
  2608. null //function delegate
  2609. )
  2610. }
  2611. if (GM_getValue("Check_turbobit_dot_net_links", false))
  2612. {
  2613. addHost(
  2614. "turbobit", //hostname
  2615. "turbobit\\.(?:net|pl)\/(?:\\w+\/|).+?\\.html", //linkregex
  2616. "//a[contains(@href,'turbobit.')]", //xpath
  2617. null, //blocksize
  2618. /(turbobit\.(?:net|pl)\/(?:\w+\/|).+?\.html)/, //corrmatch
  2619. null, //corrreplwhat
  2620. null, //corrreplwith
  2621. "\n", //separator
  2622. 'http://turbobit.net/linkchecker/csv',
  2623. 'links_to_check=',
  2624. /(turbobit\.(?:net|pl)\/\w+)/,
  2625. /turbobit\.(?:net|pl)\/.*?, 1/g,
  2626. /turbobit\.(?:net|pl)\/.*?, 0/g,
  2627. null,
  2628. null //function delegate
  2629. )
  2630. }
  2631. if (GM_getValue("Check_filerio_dot_com_links", false))
  2632. {
  2633. addHost(
  2634. "filekeen,filerio", //hostname
  2635. //"file(?:keen|rio)\\.(?:com|in)\/\\w+\/.", //linkregex
  2636. "file(?:keen|rio)\\.(?:com|in)\/\\w+", //linkregex
  2637. "//a[contains(@href,'filekeen.com') or contains(@href,'filerio.')]", //xpath
  2638. null, //blocksize
  2639. null, //corrmatch
  2640. null, //corrreplwhat
  2641. null, //corrreplwith
  2642. null, //separator
  2643. 'http://filerio.in/checkfiles.html',
  2644. 'op=checkfiles&process=Check+URLs&list=',
  2645. /(file(?:keen|rio)\.(?:com|in)\/\w+)/,
  2646. /green'>http:\/\/(?:www\.|)file(?:keen|rio)\.(?:com|in)\/\w+/g,
  2647. /red'>http:\/\/(?:www\.|)file(?:keen|rio)\.(?:com|in)\/\w+/g,
  2648. /orange'>http:\/\/(?:www\.|)file(?:keen|rio)\.(?:com|in)\/\w+/g,
  2649. null //function delegate
  2650. )
  2651. }
  2652. if (GM_getValue("Check_share_dash_online_dot_biz_links", false))
  2653. {
  2654. addHost(
  2655. "share-online,egoshare", //hostname
  2656. "(?:share-online\\.biz|egoshare\\.com)\/(?:dl\/|download\\.php\\?id=)", //linkregex
  2657. "//a[contains(@href,'share-online.biz') or contains(@href,'egoshare.com')]", //xpath
  2658. null, //blocksize
  2659. /http:\/\/(?:www\.)?(?:share-online\.biz|egoshare\.com)\/d(?:l\/|ownload\.php\?id=)(\w+)/, //corrmatch
  2660. null, //corrreplwhat
  2661. null, //corrreplwith
  2662. "\n", //separator
  2663. 'http://api.share-online.biz/linkcheck.php',
  2664. 'links=',
  2665. /(\w+);(?:OK|NOTFOUND|DELETED)/,
  2666. /\w+;OK/g,
  2667. /\w+;(?:NOTFOUND|DELETED)/g,
  2668. null,
  2669. null //function delegate
  2670. )
  2671. }
  2672. if (GM_getValue("Check_quickshare_dot_cz_links", false))
  2673. {
  2674. addHost(
  2675. "quickshare", //hostname
  2676. "quickshare\\.cz\/stahnout-soubor\/\\d+", //linkregex
  2677. "//a[contains(@href,'quickshare.cz')]", //xpath
  2678. null, //blocksize
  2679. null, //corrmatch
  2680. null, //corrreplwhat
  2681. null, //corrreplwith
  2682. null, //separator
  2683. 'http://www.quickshare.cz/nastroje/link-checker',
  2684. 'linky=',
  2685. /quickshare\.cz\/stahnout-soubor\/(\d+(?::\w+)?)/,
  2686. /quickshare\.cz\/stahnout-soubor\/\d+(?::[\w\-.+$!*\/()\[\]\',~%?:@#&=\\]+)?\s*<\/a><\/td><td><img src="\/img\/ok\.gif/g,
  2687. /quickshare\.cz\/stahnout-soubor\/\d+(?::[\w\-.+$!*\/()\[\]\',~%?:@#&=\\]+)?\s*<\/td><td><img src="\/img\/nenalezeno\.gif/g,
  2688. null,
  2689. null //function delegate
  2690. )
  2691. }
  2692. if (GM_getValue("Check_netload_dot_in_links", false))
  2693. {
  2694. addHost(
  2695. "netload", //hostname
  2696. "netload\\.in\/datei\\w{10}", //linkregex
  2697. "//a[contains(@href,'netload.in')]", //xpath
  2698. null, //blocksize
  2699. null, //corrmatch
  2700. null, //corrreplwhat
  2701. null, //corrreplwith
  2702. "\n", //separator
  2703. "http://api.netload.in/index.php?id=2", //api url
  2704. "send=Absenden&links=", //postdata
  2705. /(\w+);/, //linkregex
  2706. /\w{10,};.+?;.+?;online/g, //liveregex
  2707. /\w{10,};.+?;.+?;offline/g, //deadregex
  2708. null, //unavaregex
  2709. //netloadBulkCheck //function delegate //disabled on probation since 1.2.4.5
  2710. null //function delegate
  2711. )
  2712. }
  2713. if (GM_getValue("Check_oboom_dot_com_links", false))
  2714. {
  2715. addHost(
  2716. "oboom", //hostname
  2717. "oboom\\.com\/#?\\w{8}", //linkregex
  2718. "//a[contains(@href,'oboom.com/')]", //xpath
  2719. null, //blocksize
  2720. /oboom\.com\/#?(\w{8})/, //corrmatch
  2721. null, //corrreplwhat
  2722. null, //corrreplwith
  2723. null, //separator
  2724. null,
  2725. null,
  2726. null,
  2727. null, //liveregex
  2728. null, //deadregex
  2729. null,
  2730. oboomBulk //function delegate
  2731. )
  2732. }
  2733. if (GM_getValue("Check_mega_dot_co_dot_nz_links", false))
  2734. {
  2735. addHost(
  2736. "mega",
  2737. "mega\\.co\\.nz\/#!\\w+",
  2738. "//a[contains(@href,'mega.co.nz/')]",
  2739. 100000, //blocksize
  2740. null, //corrmatch
  2741. null, //corrreplwhat
  2742. null, //corrreplwith
  2743. null, //separator
  2744. null,
  2745. null,
  2746. null,
  2747. null,
  2748. null,
  2749. null,
  2750. megaBulkCheck //function delegate
  2751. )
  2752. }
  2753. //the same as GenType2, except api url is 'https://' instead of 'http://www.' and corrmatch is not??? needed
  2754.  
  2755. if (GM_getValue("Check_extabit_dot_com_links", false))
  2756. {
  2757. addHost(
  2758. "extabit", //hostname
  2759. "extabit\\.com\/file\/\\w+", //linkregex
  2760. "//a[contains(@href,'extabit.com')]", //xpath
  2761. null, //blocksize
  2762. null, //corrmatch
  2763. null, //corrreplwhat
  2764. null, //corrreplwith
  2765. "\n", //separator
  2766. "http://extabit.com/linkchecker.jsp", //api url
  2767. "url=", //postdata
  2768. /extabit\.com\/(file\/\w+)/, //linkregex
  2769. /extabit\.com\/file\/\w+\/[^<]+<\/a><\/td>\s*<td class="status"><span class="status_green">/g, //liveregex
  2770. /extabit\.com\/file\/\w+\/[^<]+<\/a><\/td>\s*<td class="status"><span class="status_red">/g, //deadregex
  2771. /extabit\.com\/file\/\w+\/[^<]+<\/a><\/td>\s*<td class="status"><span class="status_yellow">/g, //unavaregex
  2772. extabitBulkCheck //function delegate
  2773. )
  2774. }
  2775. if (GM_getValue("Check_junocloud_dot_me_links", false))
  2776. {
  2777. addHost(
  2778. "junocloud", //hostname
  2779. "junocloud\\.me\/\\w+", //linkregex
  2780. "//a[contains(@href,'junocloud.me')]", //xpath
  2781. null, //blocksize
  2782. null, //corrmatch
  2783. null, //corrreplwhat
  2784. null, //corrreplwith
  2785. "\n", //separator
  2786. "http://junocloud.me/checkfiles.html", //api url
  2787. "op=checkfiles&process=Check+URLs&list=", //postdata
  2788. /(junocloud\.me\/\w+)/, //linkregex
  2789. /<a href="http:\/\/junocloud\.me\/\w+[^<]+<\/a>\s*<span style="color: green/g, //liveregex
  2790. /<a href="http:\/\/junocloud\.me\/\w+[^<]+<\/a>\s*<span style="color: red/g, //deadregex
  2791. null, //unavaregex
  2792. null //function delegate
  2793. )
  2794. }
  2795. if (GM_getValue("Check_webshare_dot_cz_links", false))
  2796. {
  2797. addHost(
  2798. "webshare", //hostname
  2799. "webshare\.cz\/(?:(?:#/)?file/\\w+|\\w+-.*)", //linkregex
  2800. "//a[contains(@href,'webshare.cz')]", //xpath
  2801. 100000, //blocksize
  2802. null, //corrmatch
  2803. null, //corrreplwhat
  2804. null, //corrreplwith
  2805. null, //separator
  2806. null, //api url
  2807. null, //postdata
  2808. null, //linkregex
  2809. null, //liveregex
  2810. null, //deadregex
  2811. null, //unavaregex
  2812. webshareBulkCheck //function delegate
  2813. )
  2814. }
  2815. /////////////////////////////
  2816. // Common function delegate to send links to get checked by host linkchecker
  2817. /////////////////////////////
  2818. // If you define a new delegate, you may use following properties
  2819. // this.links [array] array of strings (link blocks). The links in each block separated with host.splitSeparator.
  2820. // this.apiUrl [string] API or web linkchecker URL
  2821. // this.postData [string] POSTDATA for POST request
  2822. // this.resLiveRegex [regex] matches live substrings in the request response
  2823. // this.resDeadRegex [regex] matches dead substrings in the request response
  2824. // this.resUnavaRegex [regex] matches unava substrings in the request response (the regex is often null!)
  2825. //
  2826. // this.resLinkRegex [regex] matches links further passed to DisplayTheCheckedLinks
  2827. //
  2828. // See the code below for standard bulkcheck handling reference.
  2829. //////////////////////////////
  2830. function genBulkCheck()
  2831. {
  2832. var blockIdx = this.links.length;
  2833. while (blockIdx--)
  2834. {
  2835. postRequest(this.apiUrl, this.postData, this.links[blockIdx],
  2836. this.resLinkRegex, this.resLiveRegex, this.resDeadRegex, this.resUnavaRegex);
  2837. }
  2838. function postRequest(api, postData, links, linkRegex, liveRegex, deadRegex, unavaRegex)
  2839. {
  2840. GM_xmlhttpRequest(
  2841. {
  2842. method: 'POST',
  2843. url: api,
  2844. headers: {
  2845. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  2846. 'Content-type': 'application/x-www-form-urlencoded',
  2847. 'Referer': api,
  2848. 'X-Requested-With': 'XMLHttpRequest'
  2849. },
  2850. data: postData + encodeURIComponent(links),
  2851. onload: function (result)
  2852. {
  2853. var res = result.responseText;
  2854. // GM_log(res);
  2855. var i;
  2856.  
  2857. var livelinks = res.match(liveRegex);
  2858. var deadlinks = res.match(deadRegex);
  2859. // GM_log(livelinks);
  2860. // GM_log(deadlinks);
  2861. if (livelinks != null)
  2862. {
  2863. i = livelinks.length - 1;
  2864. do
  2865. {
  2866. livelinks[i] = livelinks[i].match(linkRegex)[1];
  2867. }
  2868. while (i--);
  2869. DisplayTheCheckedLinks(livelinks, 'alive_link');
  2870. }
  2871.  
  2872. if (deadlinks != null)
  2873. {
  2874. i = deadlinks.length - 1;
  2875. do
  2876. {
  2877. deadlinks[i] = deadlinks[i].match(linkRegex)[1];
  2878. }
  2879. while (i--);
  2880. DisplayTheCheckedLinks(deadlinks, 'adead_link');
  2881. }
  2882.  
  2883. if (unavaRegex != null)
  2884. {
  2885. var unavalinks = res.match(unavaRegex);
  2886. if (unavalinks)
  2887. {
  2888. i = unavalinks.length - 1;
  2889. do
  2890. {
  2891. unavalinks[i] = unavalinks[i].match(linkRegex)[1];
  2892. }
  2893. while (i--);
  2894. DisplayTheCheckedLinks(unavalinks, 'unava_link');
  2895. }
  2896. }
  2897. }
  2898. });
  2899. }
  2900. }
  2901. //specialized bulkchecking handlers follow
  2902. function webshareBulkCheck()
  2903. {
  2904. var arr = this.links[0].split("\r\n");
  2905. var i = arr.length;
  2906. while(i--)
  2907. {
  2908. postRequest(arr[i]);
  2909. }
  2910. //function postRequest(api, postData, links, linkRegex, liveRegex, deadRegex, unavaRegex)
  2911. function postRequest(wsLink)
  2912. {
  2913. var id = wsLink.match(/webshare\.cz\/(?:(?:#\/)?file\/)?(\w+)/)[1];
  2914. GM_xmlhttpRequest(
  2915. {
  2916. method: 'POST',
  2917. url: "http://webshare.cz/api/file_info/",
  2918. headers: {
  2919. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  2920. 'Content-type': 'application/x-www-form-urlencoded',
  2921. 'Referer': "",
  2922. },
  2923. data: "wst=&ident=" + id,
  2924. onload: function (result)
  2925. {
  2926. var res = result.responseText;
  2927. if (res.match(/<name>.+?<\/name>/))
  2928. {
  2929. DisplayTheCheckedLinks([id], 'alive_link');
  2930. }
  2931. else
  2932. {
  2933. DisplayTheCheckedLinks([id], 'adead_link');
  2934. }
  2935. }
  2936. });
  2937. }
  2938. }
  2939. //like genBulkCheck, but extabit linkchecker only works when logged in. If not logged in, non-bulk checking has to be used.
  2940. //extabit also doesn't like requests in fast succession, so some delays are added.
  2941. function extabitBulkCheck()
  2942. {
  2943. var timeoutDelay = 0;
  2944. var blockIdx = this.links.length;
  2945. while (blockIdx--)
  2946. {
  2947. postRequest(this.apiUrl, this.postData, this.links[blockIdx],
  2948. this.resLinkRegex, this.resLiveRegex, this.resDeadRegex, this.resUnavaRegex);
  2949. }
  2950. function postRequest(api, postData, links, linkRegex, liveRegex, deadRegex, unavaRegex)
  2951. {
  2952. GM_xmlhttpRequest(
  2953. {
  2954. method: 'POST',
  2955. url: api,
  2956. headers: {
  2957. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  2958. 'Content-type': 'application/x-www-form-urlencoded',
  2959. 'Referer': api,
  2960. 'X-Requested-With': 'XMLHttpRequest'
  2961. },
  2962. data: postData + encodeURIComponent(links),
  2963. onload: function (result)
  2964. {
  2965. var res = result.responseText;
  2966. if (/id="registration_header"/.test(res)) //not logged in, have to use non-bulk
  2967. {
  2968. function geturlfunc(link, tryID) //basically the geturl function with some changes (compacted, displaythecheckedlinkS, multiple tries)
  2969. {
  2970. //GM_log(tryID + ': ' + link);
  2971. GM_xmlhttpRequest(
  2972. {
  2973. method: 'GET',
  2974. url: link,
  2975. 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': ""},
  2976. onload: function(result2)
  2977. {
  2978. var res2 = result2.responseText;
  2979. var res2Status = result.status;
  2980. if (/download-file-btn/.test(res2)) {DisplayTheCheckedLinks([link], 'alive_link'); return;}
  2981. if (/Search mirrors|id="mirrb"/.test(res2) || res2Status==404) {DisplayTheCheckedLinks([link], 'adead_link'); return;}
  2982. if (/currently unavailable|temporarily unavailable|disponible en estos momentos|vorläufig unerreichbar|Файл временно недоступен/.test(res2) || res2Status == 500 || res2Status == 503)
  2983. {
  2984. if (tryID < 7)
  2985. setTimeout(function(){geturlfunc(link,tryID+1)}, tryID * 1000 + (Math.random() * tryID * 2000));
  2986. else
  2987. {DisplayTheCheckedLinks([link], 'unava_link'); return;}
  2988. }
  2989. }
  2990. });
  2991. }
  2992. //split the hrefs and check them one by one
  2993. GM_log('Using slow extabit.com link checking. Log in to extabit to use fast bulk checking.');
  2994. links = links.split('\n');
  2995. var i = links.length;
  2996. while (i--)
  2997. {
  2998. if (links[i])
  2999. {
  3000. (function(i){setTimeout(function(){geturlfunc(links[i],1)}, timeoutDelay);})(i);
  3001. timeoutDelay += 500;
  3002. }
  3003. }
  3004. return;
  3005. }
  3006. var i;
  3007.  
  3008. var livelinks = res.match(liveRegex);
  3009. var deadlinks = res.match(deadRegex);
  3010. if (livelinks != null)
  3011. {
  3012. i = livelinks.length - 1;
  3013. do
  3014. {
  3015. livelinks[i] = livelinks[i].match(linkRegex)[1];
  3016. }
  3017. while (i--);
  3018. DisplayTheCheckedLinks(livelinks, 'alive_link');
  3019. }
  3020.  
  3021. if (deadlinks != null)
  3022. {
  3023. i = deadlinks.length - 1;
  3024. do
  3025. {
  3026. deadlinks[i] = deadlinks[i].match(linkRegex)[1];
  3027. }
  3028. while (i--);
  3029. DisplayTheCheckedLinks(deadlinks, 'adead_link');
  3030. }
  3031.  
  3032. if (unavaRegex != null)
  3033. {
  3034. var unavalinks = res.match(unavaRegex);
  3035. if (unavalinks)
  3036. {
  3037. i = unavalinks.length - 1;
  3038. do
  3039. {
  3040. unavalinks[i] = unavalinks[i].match(linkRegex)[1];
  3041. }
  3042. while (i--);
  3043. DisplayTheCheckedLinks(unavalinks, 'unava_link');
  3044. }
  3045. }
  3046. }
  3047. });
  3048. }
  3049. }
  3050. function netloadBulkCheck()
  3051. {
  3052. var blockIdx = this.links.length;
  3053.  
  3054. while (blockIdx--)
  3055. {
  3056. postRequest(this.apiUrl, this.postData, this.links[blockIdx],
  3057. this.resLinkRegex, this.resLiveRegex, this.resDeadRegex, this.unavaRegex);
  3058. }
  3059. function postRequest(api, postData, links, linkRegex, liveRegex, deadRegex, unavaRegex)
  3060. {
  3061. GM_xmlhttpRequest(
  3062. {
  3063. method: 'POST',
  3064. url: api,
  3065. headers: {
  3066. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  3067. 'Content-type': 'application/x-www-form-urlencoded',
  3068. 'Referer': ""
  3069. },
  3070. data: postData + encodeURIComponent(links),
  3071. onload: function (result)
  3072. {
  3073. var res = result.responseText;
  3074. var i;
  3075.  
  3076. var livelinks = res.match(liveRegex);
  3077. var deadlinks = res.match(deadRegex);
  3078. if (livelinks != null)
  3079. {
  3080. i = livelinks.length - 1;
  3081. do
  3082. {
  3083. recheckLink(livelinks[i].match(linkRegex)[1]);
  3084. }
  3085. while(i--);
  3086. }
  3087.  
  3088. if (deadlinks != null)
  3089. {
  3090. i = deadlinks.length - 1;
  3091. do
  3092. {
  3093. deadlinks[i] = deadlinks[i].match(linkRegex)[1];
  3094. }
  3095. while (i--);
  3096. DisplayTheCheckedLinks(deadlinks, 'adead_link');
  3097. }
  3098. }
  3099. });
  3100. }
  3101. function recheckLink(link)
  3102. {
  3103. var link = link;
  3104. GM_xmlhttpRequest(
  3105. {
  3106. method: 'GET',
  3107. url: 'http://netload.in/datei' + link + '.htm',
  3108. headers: {
  3109. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3110. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  3111. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  3112. 'Referer': ""
  3113. },
  3114. onload: function (result)
  3115. {
  3116. var res = result.responseText;
  3117.  
  3118. if (res.match(/dl_first_file_download">|download_limit\.gif/))
  3119. {
  3120. DisplayTheCheckedLinks([link], 'alive_link');
  3121. return;
  3122. }
  3123.  
  3124. if (res.match(/achtung\.jpg"/))
  3125. {
  3126. DisplayTheCheckedLinks([link], 'adead_link');
  3127. }
  3128. },
  3129. onerror: function ()
  3130. {
  3131. displayTheCheckedLink(link, 'unava_link');
  3132. }
  3133. });
  3134. }
  3135. }
  3136.  
  3137. function megaBulkCheck()
  3138. {
  3139. var arr = this.links[0].split("\r\n");
  3140. var i = arr.length;
  3141. var seqno = Math.floor(Math.random()*1000000000);
  3142. while(i--)
  3143. {
  3144. postRequest(arr[i]);
  3145. }
  3146. function postRequest(megaLink)
  3147. {
  3148. var id = megaLink.match(/mega\.co\.nz\/#!(\w+)(?:!\w+)?/)[1];
  3149. GM_xmlhttpRequest(
  3150. {
  3151. method: "POST",
  3152. url: 'https://g.api.mega.co.nz/cs?id=' + seqno++,
  3153. data: '[{"a":"g","p":"' + id + '","ssl": "1"}]',
  3154. headers: {
  3155. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3156. 'Content-Type': 'application/xml',
  3157. 'Referer': "https://mega.co.nz/"
  3158. },
  3159. onload: function (result)
  3160. {
  3161. var res = $.parseJSON(result.responseText.match(/\[(.+?)\]/)[1]);
  3162. if ((typeof res == "number" && (res == -9 || res == -16 || res == -6)) || res.d)
  3163. {
  3164.  
  3165. DisplayTheCheckedLinks([id], 'adead_link');
  3166. }
  3167. if (res.at)
  3168. {
  3169. DisplayTheCheckedLinks([id], 'alive_link');
  3170. }
  3171. if (res.e == "ETEMPUNAVAIL")
  3172. {
  3173. DisplayTheCheckedLinks([id], 'unava_link');
  3174. }
  3175. }
  3176. });
  3177. }
  3178.  
  3179. }
  3180. function oboomBulk() {
  3181. var a = [], b = [], c = [];
  3182. var array = this.links;
  3183.  
  3184. GM_xmlhttpRequest({
  3185. method: 'GET',
  3186. url: 'https://www.oboom.com/1/guestsession',
  3187. headers: {
  3188. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  3189. 'Content-type': 'application/x-www-form-urlencoded',
  3190. 'Referer': 'https://www.oboom.com',
  3191. 'X-Requested-With': 'XMLHttpRequest'
  3192. },
  3193. onload: function(result) {
  3194. var blockIdx = array.length;
  3195. var token = JSON.parse(result.responseText)[1];
  3196. while (blockIdx--) {
  3197. startCheck(array[blockIdx].split('\r\n'), token);
  3198. }
  3199. }
  3200. });
  3201.  
  3202. function startCheck(links, token) {
  3203. GM_xmlhttpRequest({
  3204. method: 'POST',
  3205. url: "https://api.oboom.com/1/info",
  3206. headers: {
  3207. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  3208. 'Content-type': 'application/x-www-form-urlencoded',
  3209. 'Referer': 'https://www.oboom.com/',
  3210. 'X-Requested-With': 'XMLHttpRequest'
  3211. },
  3212. data: "token=" + token + "&items=" + links.join(","),
  3213. onload: function(result) {
  3214. var res = JSON.parse(result.responseText)[1];
  3215. var i = res.length, s;
  3216.  
  3217. while (i--) {
  3218. s = res[i].state;
  3219. if (s == 'online') a.push(res[i].id);
  3220. else if (s == 'blocked' || s == 'abused' || s == 'lost' || s == 'not_found' || s == 'not_available'|| s == 'download_error' || s == 'offline' ) b.push(res[i].id);
  3221. else c.push(res[i].id);
  3222. }
  3223.  
  3224. if (a.length > 0) DisplayTheCheckedLinks(a, 'alive_link');
  3225. if (b.length > 0) DisplayTheCheckedLinks(b, 'adead_link');
  3226. if (c.length > 0) DisplayTheCheckedLinks(c, 'unava_link');
  3227. }
  3228. });
  3229. }
  3230. }
  3231. function linksaveBulkCheck()
  3232. {
  3233. var arr = this.links[0].split("\r\n");
  3234. var i = arr.length;
  3235. while(i--)
  3236. {
  3237. postRequest(arr[i]);
  3238. }
  3239. function postRequest(lsLink)
  3240. {
  3241. GM_xmlhttpRequest(
  3242. {
  3243. method: "GET",
  3244. url: lsLink + '-t.jpg',
  3245. headers: {
  3246. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3247. 'Accept': 'text/xml',
  3248. 'Referer': ""
  3249. },
  3250. onload: function (result)
  3251. {
  3252. var imgLen = result.responseHeaders.match(/Content-Length: (\d+)/)[1];
  3253. if (imgLen == 965) //online
  3254. {
  3255. DisplayTheCheckedLinks([lsLink], 'alive_link');
  3256. }
  3257.  
  3258. if (imgLen == 972) //offline
  3259. {
  3260. DisplayTheCheckedLinks([lsLink], 'adead_link');
  3261. }
  3262. if (imgLen == 978) //unava
  3263. {
  3264. DisplayTheCheckedLinks([lsLink], 'unava_link');
  3265. }
  3266. }
  3267. });
  3268. }
  3269.  
  3270. }
  3271. function linkcryptBulkCheck()
  3272. {
  3273. var arr = this.links[0].split("\r\n");
  3274. var i = arr.length;
  3275. while(i--)
  3276. {
  3277. postRequest(arr[i]);
  3278. }
  3279. function postRequest(lcLink)
  3280. {
  3281. GM_xmlhttpRequest(
  3282. {
  3283. method: "GET",
  3284. url: 'http://linkcrypt.ws/api.html?api=status_V1&folderKey=' + lcLink.match(/dir\/(\w+)/)[1],
  3285. headers: {
  3286. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3287. 'Accept': 'text/xml',
  3288. 'Referer': ""
  3289. },
  3290. onload: function (result)
  3291. {
  3292. var res = result.responseText;
  3293. if (res.match(/<errorCode>1101|folderStatus>[23]/)) //Offline status
  3294. {
  3295. DisplayTheCheckedLinks([lcLink], 'adead_link');
  3296. return;
  3297. }
  3298. if (res.match(/folderStatus>1/)) //Online status
  3299. {
  3300. DisplayTheCheckedLinks([lcLink], 'alive_link');
  3301. }
  3302. else
  3303. {
  3304. DisplayTheCheckedLinks([lcLink], 'unava_link');
  3305. }
  3306. }
  3307. });
  3308. }
  3309. }
  3310.  
  3311. function megashareBulkCheck()
  3312. {
  3313. var arr = this.links[0].split("\r\n");
  3314. var i = arr.length;
  3315. while(i--)
  3316. {
  3317. postRequest(arr[i]);
  3318. }
  3319. function postRequest(msLink)
  3320. {
  3321. GM_xmlhttpRequest(
  3322. {
  3323. method: "GET",
  3324. url: msLink,
  3325. headers: {
  3326. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3327. 'Content-Type': 'application/x-www-form-urlencoded',
  3328. 'Referer': ""
  3329. },
  3330. onload: function (result)
  3331. {
  3332. var prZVal = result.responseText.match(/name="(\d+prZVal)" value="(\d+)">/);
  3333. var btn3Name = result.responseText.match(/src="images\/dwn-btn3\.gif" name="(.+?)"/);
  3334. if ((prZVal == null) || (btn3Name == null))
  3335. {
  3336. return;
  3337. }
  3338. GM_xmlhttpRequest(
  3339. {
  3340. method: "POST",
  3341. url: msLink,
  3342. headers: {
  3343. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3344. 'Content-Type': 'application/x-www-form-urlencoded',
  3345. 'Referer': ""
  3346. },
  3347. data: prZVal[1] + "=" + prZVal[2] + '&' + btn3Name[1] + '.x=1&' + btn3Name[1] + '.y=1',
  3348. onload: function (result)
  3349. {
  3350. var res = result.responseText;
  3351. if (res.match(/<div id="err">/))
  3352. {
  3353. DisplayTheCheckedLinks([msLink.match(/\.com(\/\d+)/)[1]], 'adead_link');
  3354. }
  3355. else
  3356. {
  3357. DisplayTheCheckedLinks([msLink.match(/\.com(\/\d+)/)[1]], 'alive_link');
  3358. }
  3359. }
  3360. });
  3361. }
  3362. });
  3363. }
  3364. }
  3365. function ncryptBulkCheck()
  3366. {
  3367. var arr = this.links[0].split("\r\n");
  3368. var i = arr.length;
  3369. while(i--)
  3370. {
  3371. postRequest(arr[i]);
  3372. }
  3373. function postRequest(ncryptLink)
  3374. {
  3375. GM_xmlhttpRequest(
  3376. {
  3377. method: "POST",
  3378. url: 'http://ncrypt.in/api_status.php',
  3379. headers: {
  3380. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3381. 'Content-Type': 'application/x-www-form-urlencoded',
  3382. 'Referer': ""
  3383. },
  3384. data: 'link=' + encodeURI(ncryptLink),
  3385. onload: function (result)
  3386. {
  3387. var foldStatus = result.responseText.match(/(?:offline|online);/);
  3388. switch(foldStatus + ""){
  3389. case "offline;": DisplayTheCheckedLinks([ncryptLink], 'adead_link'); break;
  3390. case "online;": DisplayTheCheckedLinks([ncryptLink], 'alive_link'); break;
  3391. default: DisplayTheCheckedLinks([ncryptLink], 'unava_link');
  3392. }
  3393. }
  3394. });
  3395. }
  3396. }
  3397. function hellshareBulkCheck()
  3398. {
  3399. var links = this.links;
  3400. GM_xmlhttpRequest(
  3401. {
  3402. method: "GET",
  3403. url: 'http://www.hellshare.com',
  3404. headers: {
  3405. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3406. 'Accept': 'text/xml',
  3407. 'Referer': ""
  3408. },
  3409. onload: function (result)
  3410. {
  3411. var domain = result.responseText.match(/param_rau = "www\.hellshare\.(\w+)"/)[1];
  3412.  
  3413. var loc = 'check=Zkontrolovat+dostupnost+soubor%C5%AF&links=';
  3414. if (domain == 'sk')
  3415. loc = 'check=Skontrolova%C5%A5&links=';
  3416. if (domain == 'com')
  3417. loc = 'check=Check+availability&links=';
  3418. if (domain == 'hu')
  3419. loc = 'check=Kontrol%C3%A1lj&links=';
  3420. if (domain == 'pl')
  3421. loc = 'check=Sprawd%C5%BC+dost%C4%99pno%C5%9B%C4%87+plik%C3%B3w&links=';
  3422.  
  3423. genBulkCheck.call({ links: links,
  3424. apiUrl: 'http://www.hellshare.' + domain + '/linkchecker?do=linkChecker-linkcheckerform-submit',
  3425. postData: loc,
  3426. resLinkRegex: /hellshare\.(?:cz|com|sk|hu|pl)\/(?:[\w-\.]+\/|)([\w-\.]+\/\d{5,})/,
  3427. 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,
  3428. resDeadRegex: /<span style="color:gray">.*?<\/span> - <strong>/g,
  3429. resUnavaRegex: null
  3430. });
  3431. }
  3432. });
  3433. }
  3434. /**
  3435. * Displays check result
  3436. * @param {Array} Array of links or link fragments.
  3437. * @param {String} Check result status -> ['alive_link'|'adead_link'|'unava_link']
  3438. */
  3439. function DisplayTheCheckedLinks(links, resultStatus)
  3440. {
  3441. //(a[href*=link_1], a[href*=link_2], ..., a[href*=link_n])
  3442. var $links = $('a[href*="' + links.join('"], a[href*="') + '"]');
  3443. if (Do_not_linkify_DL_links)
  3444. { //TODO into separate jQuery function
  3445. $links.replaceWith(function(){
  3446. return '<span href="' + this.href + '">' + $(this).text() + '</span>';
  3447. });
  3448. $links = $('span[href*="' + links.join('"], span[href*="') + '"]');
  3449. }
  3450. $links.removeClass().addClass(resultStatus);
  3451. $links.each(function() {
  3452. this.href = Ref_anonymize_service + $(this).attr("href");
  3453. });
  3454. switch(resultStatus)
  3455. {
  3456. case "alive_link": cLinksAlive += $links.length;
  3457. if (Display_tooltip_info) $links.mouseover(displayTooltipInfo);
  3458. break;
  3459. case "adead_link": cLinksDead += $links.length;
  3460. if (Display_tooltip_info) $links.mouseover(displayTooltipError);
  3461. break;
  3462. case "unava_link": cLinksUnava += $links.length; break;
  3463. default:
  3464. }
  3465. cLinksProcessed += $links.length;
  3466. }
  3467. }
  3468. // starts bulkchecking
  3469. //
  3470. // params
  3471. // filterId [string] restricts link detection with passed id attribute
  3472. function startBulkCheck(filterId)
  3473. {
  3474. var cHosts = bulkHosts.length;
  3475. if (cHosts == 0) //no filehostings selected
  3476. return;
  3477. // STEP 1 linkify the links
  3478. var linkifyRegex = '';
  3479. var hostIdx = cHosts;
  3480. while(hostIdx--)
  3481. {
  3482. linkifyRegex += bulkHosts[hostIdx].linkRegex + "|";
  3483. }
  3484. linkifyRegex = linkifyRegex.replace(/\|$/, '');
  3485. linkify(linkifyRegex);
  3486. //
  3487. //STEP 2 detect link objects
  3488. var xpathAll = '';
  3489. var hostIdx = cHosts;
  3490. while(hostIdx--)
  3491. {
  3492. xpathAll += bulkHosts[hostIdx].xpath + "|";
  3493. }
  3494. xpathAll = xpathAll.replace(/\]\|\/\/a\[/g, " or ");
  3495. xpathAll = xpathAll.replace(/\]\|/, ')]');
  3496. if (filterId != null) //insert id restriction in the xpath
  3497. {
  3498. xpathAll = xpathAll.replace(/\[/, "[@class='" + filterId + "' and (");
  3499. }
  3500. else
  3501. {
  3502. xpathAll = xpathAll.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  3503. }
  3504. var links = document.evaluate(xpathAll, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  3505. if (filterId == null)
  3506. {
  3507. cLinksTotal += links.snapshotLength;
  3508. }
  3509. //
  3510. //STEP 3 bind links with hostings
  3511. var linkIdx = links.snapshotLength;
  3512. var href = null;
  3513. if (linkIdx == 0) // no links found
  3514. return;
  3515. var name;
  3516. while (linkIdx--)
  3517. {
  3518. href = links.snapshotItem(linkIdx).href;
  3519. try // DO NOT REMOVE, filters crap that went through xpath detection
  3520. {
  3521. name = gimmeHostName(href);
  3522. if (href.match(bulkHostNames[name].linkRegexObject) != null)
  3523. bulkHostNames[name].links.push(href);
  3524. }
  3525. catch(e)
  3526. {
  3527.  
  3528. }
  3529. }
  3530. //
  3531. //STEP 4 process the links for each filehosting
  3532. var hostIdx = cHosts;
  3533. var host;
  3534. var m,n;
  3535. var arr;
  3536. while (hostIdx--)
  3537. {
  3538. host = bulkHosts[hostIdx];
  3539. arr = host.links;
  3540. if (arr.length == 0) //no links for this hosting, skip
  3541. {
  3542. continue;
  3543. }
  3544. //links match corrections
  3545. if (host.corrMatch != null)
  3546. {
  3547. var idx = arr.length;
  3548. while (idx--)
  3549. {
  3550. arr[idx] = arr[idx].match(host.corrMatch)[1];
  3551. }
  3552. }
  3553. //links replace corrections
  3554. if ((host.corrReplWhat != null) && (host.corrReplWith != null))
  3555. {
  3556. var idx = arr.length;
  3557. while (idx--)
  3558. {
  3559. arr[idx] = arr[idx].replace(host.corrReplWhat, host.corrReplWith);
  3560. }
  3561. }
  3562. m = arr.length;
  3563. n = host.blockSize;
  3564. if (m > n)
  3565. {
  3566. //insert block separators (RAND_STRING) into the array
  3567. for(var i = n; i < m; i += n + 1)
  3568. {
  3569. arr.splice(i, 0, RAND_STRING);
  3570. }
  3571. }
  3572.  
  3573. host.func.call({ links: arr.join(host.splitSeparator).split(RAND_STRING),
  3574. apiUrl: host.apiUrl,
  3575. postData: host.postData,
  3576. resLinkRegex: host.resLinkRegex,
  3577. resLiveRegex: host.resLiveRegex,
  3578. resDeadRegex: host.resDeadRegex,
  3579. resUnavaRegex: host.resUnavaRegex
  3580. });
  3581. //clean up
  3582. arr.length = 0;
  3583. }
  3584. //
  3585.  
  3586. function gimmeHostName(link)
  3587. {
  3588. return link.replace(/https?:\/\/.*?http(s)?:\/\//, "http$1://").match(/https?:\/\/(?:www\.|[\w\.])*?([\w-]+)\.(?:co\.uk|co\.nz|\w+)\//)[1];
  3589. }
  3590. }
  3591. function checkLinks(filterId)
  3592. {
  3593. startBulkCheck(filterId);
  3594. start(filterId);
  3595. }
  3596.  
  3597. /**
  3598. * Initialises progress box including event binding and CSS
  3599. */
  3600. function initProgressBox()
  3601. {
  3602. if ($("#warlc-progressbox").length > 0)
  3603. return;
  3604. //progressbox css change size and color of progress box
  3605. GM_addStyle("#warlc-progressbox {position:fixed; background:DimGray;" + Progress_box_background_color +
  3606. "; opacity:" + (Progress_box_opacity / 100) +
  3607. "; bottom:" + Progress_box_pos_bottom +
  3608. "px; right:" + Progress_box_pos_right +
  3609. "px; padding:5px; font-size:20px; font-weight:bold; cursor:default;}\
  3610. \
  3611. .warlc-progressbar {text-align:center; color: DimGray; height:2px; margin-bottom:2px;}\
  3612. \
  3613. .warlc-progressitem {}\
  3614. \
  3615. .alive {color:#00FF7F; " + Live_links_color +
  3616. "; background:transparent url(" + alive_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;} .dead {color:" + Dead_links_color +
  3617. "; background:transparent url(" + adead_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;} .unava {color: " + Temp_unavailable_links_color +
  3618. "; background:transparent url(" + unava_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;} .processing {color:Black; " + Container_links_color +
  3619. "; background:transparent url(" + processing_link_gif + ") no-repeat scroll 100% 50%;padding-right:15px;} .prem {color:" + Premium_links_color +
  3620. "; background:transparent url(" + prem_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;}"
  3621. );
  3622. //
  3623. $('body').append(' <div id="warlc-progressbox">\
  3624. <div class="warlc-progressbar"></div>\
  3625. <span class="warlc-progressitem alive"></span> - \
  3626. <span class="warlc-progressitem dead"></span> - \
  3627. <span class="warlc-progressitem unava"></span> - \
  3628. <span class="warlc-progressitem prem"></span> - \
  3629. <span class="warlc-progressitem processing"></span>\
  3630. </div>');
  3631. $('#warlc-progressbox').hide().click(function(){
  3632. clearInterval(intervalId);
  3633. $(this).hide();
  3634. return false;
  3635. });
  3636. $(".warlc-progressbar").progressbar({complete: function(){
  3637. $(this).fadeOut();
  3638. clearInterval(intervalId); //stop refreshing the stats
  3639. }
  3640. })
  3641. .one('progressbarchange', function(){$('#warlc-progressbox').show();});
  3642. }
  3643. /**
  3644. * Updates progress data in progress box
  3645. */
  3646. function updateProgress()
  3647. {
  3648. if (cLinksTotal) // some links were detected on page
  3649. {
  3650. var percProgress = Math.round(((100 / cLinksTotal) * cLinksProcessed));
  3651. var $progressItems = $('#warlc-progressbox > .warlc-progressitem');
  3652. $(".warlc-progressbar").progressbar('option', 'value', percProgress);
  3653. if ((cLinksTotal - cLinksProcessed) == 0)
  3654. {
  3655. $progressItems.first().text(cLinksAlive)
  3656. .next().text(cLinksDead)
  3657. .next().text(cLinksUnava)
  3658. .next().text(cLinksprem)
  3659. .next().remove();
  3660. $('#warlc-progressbox').html($('#warlc-progressbox').html().substr(0,$('#warlc-progressbox').html().lastIndexOf(">")+1));
  3661. $('#warlc-progressbox div:first-child').remove();
  3662. }
  3663. else
  3664. {
  3665. $progressItems.first().text(cLinksAlive)
  3666. .next().text(cLinksDead)
  3667. .next().text(cLinksUnava)
  3668. .next().text(cLinksprem)
  3669. .next().text(cLinksTotal - cLinksProcessed);
  3670. }
  3671. }
  3672. }
  3673.  
  3674. function check_all_links()
  3675. {
  3676. add_WARLC_style();
  3677.  
  3678. if (Show_progress_stats)
  3679. {
  3680. initProgressBox();
  3681. intervalId = setInterval(function(){updateProgress();}, Progress_box_refresh_rate);
  3682. }
  3683.  
  3684. startBulkCheck(null);
  3685. start(null);
  3686.  
  3687. if (!containers_processed)
  3688. {
  3689. processContainers();
  3690. }
  3691. }
  3692.  
  3693. //Copies all found dead links to clipboard - right now for Scriptish only
  3694. function copy_dead_to_clipboard()
  3695. {
  3696. initClipBoardTools();
  3697.  
  3698. var deadlinksxpath = "//.[@class='adead_link']";
  3699.  
  3700. var foundlinks = document.evaluate(deadlinksxpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  3701. var foundlinkstext = '';
  3702.  
  3703. var foundlinkIdx = foundlinks.snapshotLength;
  3704.  
  3705. while(foundlinkIdx--)
  3706. {
  3707. if (foundlinks.snapshotItem(foundlinkIdx).innerHTML != ' x')
  3708. foundlinkstext += foundlinks.snapshotItem(foundlinkIdx).innerHTML.replace(/\[\/hide:\w+\]/,"") + '\n';
  3709. }
  3710.  
  3711. unsafeWindow.copyToClipboard(foundlinkstext);
  3712. }
  3713.  
  3714. function toggle_autocheck()
  3715. {
  3716. var currentState = GM_getValue("Autocheck", false);
  3717. GM_setValue("Autocheck", !currentState);
  3718.  
  3719. if (currentState == true)
  3720. {
  3721. sendMessage('Autocheck disabled', 'red');
  3722. }
  3723. else
  3724. {
  3725. sendMessage('Autocheck enabled', 'SpringGreen');
  3726. }
  3727. }
  3728. function toggle_Enable_Anonymizer()
  3729. {
  3730. var currentState = GM_getValue("Enable_Anonymizer", false);
  3731. GM_setValue("Enable_Anonymizer", !currentState);
  3732.  
  3733. if (currentState == true)
  3734. {
  3735. GM_setValue("Ref_anonymize_service", "");
  3736. sendMessage('Anonymizer Disabled', 'red');
  3737. }
  3738. else
  3739. {
  3740. GM_setValue("Ref_anonymize_service", "http://hiderefer.com/?");
  3741. sendMessage('Anonymizer Enabled', 'SpringGreen');
  3742. }
  3743. }
  3744.  
  3745. function KeyDownHandler(event)
  3746. {
  3747. var kcode = (event.keyCode) ? event.keyCode : event.which;
  3748. if (event.ctrlKey && event.altKey)
  3749. {
  3750. switch(kcode)
  3751. {
  3752. case 65 : check_all_links(); break;
  3753. case 67 : configuration(); break;
  3754. case 68 : copy_dead_to_clipboard(); break;
  3755. case 87 : toggle_autocheck(); break;
  3756. case 90 : toggle_Enable_Anonymizer(); break;
  3757. }
  3758. }
  3759. }
  3760.  
  3761. //
  3762. //
  3763. // SCRIPT EXECUTION START POINT
  3764. //
  3765. //
  3766. // Safari specific GM_getResourceText override
  3767. if (navigator.userAgent.indexOf('Safari') != -1 && navigator.userAgent.indexOf('Chrome') == -1)
  3768. {
  3769. GM_getResourceText = function(res) {
  3770. var $cssText = GM_getValue("jquery_css", "");
  3771. if ($cssText == "")
  3772. {
  3773. GM_xmlhttpRequest(
  3774. {
  3775. method: 'GET',
  3776. url: 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css',
  3777. onload: function (result)
  3778. {
  3779. GM_setValue("jquery_css", result.responseText);
  3780. window.location.reload();
  3781. }
  3782. });
  3783. }
  3784. else
  3785. {
  3786. return $cssText;
  3787. }
  3788. }
  3789. }
  3790. var jQueryUICSS = GM_getResourceText("jQueryUICSS");
  3791. GM_addStyle(jQueryUICSS);
  3792. //init the stuff
  3793. setVariables();
  3794. initBulkCheck();
  3795. //init info boxes
  3796. messageBox.style.position = 'fixed';
  3797. messageBox.style.top = '20px';
  3798. messageBox.style.left = '10px';
  3799. messageBox.style.opacity = '0.85';
  3800. messageBox.style.background = 'DimGray';
  3801. messageBox.style.fontSize = '36px';
  3802. document.body.appendChild(messageBox);
  3803.  
  3804. //register GM menu commands & keyboard shortcut event handler
  3805. if (Keyboard_functions)
  3806. {
  3807. $(document).keydown(KeyDownHandler);
  3808. GM_registerMenuCommand("[W.A.R. Links Checker] Configuration (" + first_key_keycodename + "+" + second_key_keycodename + "+" + String.fromCharCode(CONFIGURATION_KEYCODE) + ")", configuration);
  3809. 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);
  3810. }
  3811. else
  3812. {
  3813. GM_registerMenuCommand("[W.A.R. Links Checker] Configuration", configuration);
  3814. GM_registerMenuCommand("[W.A.R. Links Checker] Check The Links In This Page", check_all_links);
  3815. }
  3816.  
  3817. //start linkchecking
  3818. if (Autocheck)
  3819. {
  3820. $(document).ready(check_all_links);
  3821. }
  3822.  
  3823. //
  3824. //
  3825. // SCRIPT EXECUTION END POINT
  3826. //
  3827. //
  3828.  
  3829. //shows configuration box
  3830. function configuration()
  3831. {
  3832.  
  3833. //prevent multiple creating of config window
  3834. if ($("#hideshow").length)
  3835. {
  3836. $("#hideshow").show();
  3837. return;
  3838. }
  3839.  
  3840. var configcss = '\
  3841. .popup_block .popup fieldset{\
  3842. padding: 1%;\
  3843. border-style: solid;\
  3844. border-width: 1px;\
  3845. border-color: gray;\
  3846. margin-bottom: 1px;\
  3847. }\
  3848. #h3hideshowtitle{\
  3849. font-size: 2em;\
  3850. }\
  3851. #h3hideshow{\
  3852. font-size: 1.5em;\
  3853. }\
  3854. #imghideshow {\
  3855. border: none;\
  3856. }\
  3857. #plusimage{\
  3858. display:inline;\
  3859. }\
  3860. #hideshow {\
  3861. position: fixed;\
  3862. width: 100%;\
  3863. height: 100%;\
  3864. top: 0;\
  3865. left: 0;\
  3866. font-size:12px;\
  3867. z-index:2147483645;\
  3868. text-align:left;\
  3869. }\
  3870. #fade {\
  3871. background: #000;\
  3872. position: fixed;\
  3873. width: 100%;\
  3874. height: 100%;\
  3875. opacity: .80;\
  3876. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";\
  3877. left: 0;\
  3878. z-index: 10;\
  3879. }\
  3880. .popup_block {\
  3881. font-family:verdana;\
  3882. color:black;\
  3883. background: #ddd;\
  3884. padding: 10px 20px;\
  3885. border: 2px solid DarkOrange;\
  3886. float: left;\
  3887. width: 700px;\
  3888. position: absolute;\
  3889. top: 7%;\
  3890. left: 50%;\
  3891. bottom: 7%;\
  3892. margin: 0 0 0 -350px;\
  3893. -moz-border-radius:10px;\
  3894. z-index: 100;\
  3895. \
  3896. }\
  3897. .popup_block .popup {\
  3898. float: left;\
  3899. width: 100%;\
  3900. background: #fff;\
  3901. margin: 10px 0;\
  3902. padding: 0px 0 0px;\
  3903. border-left: 1px solid #bbb;\
  3904. border-top: 1px solid #bbb;\
  3905. border-right: 1px solid #bbb;\
  3906. }\
  3907. #h3hideshow{\
  3908. margin: 1px 0 0px;\
  3909. padding: 1px 10px;\
  3910. border-bottom: 1px solid #bbb;\
  3911. font-size: 1.5em;\
  3912. font-weight: normal;\
  3913. cursor:pointer;\
  3914. background:#DDDDDD none repeat scroll 0 0;\
  3915. }\
  3916. #h3hideshow:hover{\
  3917. background:#C0BEBE none repeat scroll 0 0;\
  3918. }\
  3919. #h3hideshowtitle{\
  3920. margin: 2px 0 0px;\
  3921. padding: 7px 10px;\
  3922. border-bottom: 1px solid #bbb;\
  3923. font-size: 1.5em;\
  3924. font-weight: normal;\
  3925. }\
  3926. .popup_block .popup a {\
  3927. color:DarkSkyBlue;\
  3928. text-decoration:none;\
  3929. }\
  3930. .popup p {\
  3931. padding: 1px 10px;\
  3932. margin: 0px 0;\
  3933. -x-system-font:none;\
  3934. font-family:verdana,geneva,lucida,"lucida grande",arial,helvetica,sans-serif;\
  3935. font-size:10pt;\
  3936. font-size-adjust:none;\
  3937. font-stretch:normal;\
  3938. font-style:normal;\
  3939. font-variant:normal;\
  3940. font-weight:normal;\
  3941. line-height:normal;\
  3942. }\
  3943. #sites {\
  3944. padding: 1px 10px;\
  3945. margin: 0px 0;display:inline-block;width:16em;\
  3946. }\
  3947. #dev_ver {\
  3948. color: #00FF00;\
  3949. background: Black;\
  3950. text-align: right;\
  3951. }\
  3952. #sites_suspended {\
  3953. padding: 1px 10px;\
  3954. margin: 0px 0;display:inline-block;width:16em;\
  3955. text-decoration: line-through;\
  3956. }\
  3957. .popup img.cntrl {\
  3958. position: absolute;\
  3959. right: -15px;\
  3960. top: -15px;\
  3961. }\
  3962. #bulk {\
  3963. font-size:8pt;\
  3964. color:orange;\
  3965. padding: 1px 10px;\
  3966. margin: 0px 0;\
  3967. display:inline-block;\
  3968. width:100px;\
  3969. }\
  3970. #note {\
  3971. font-size:7pt;\
  3972. color:gray;\
  3973. padding: 1px 10px;\
  3974. margin: 0px 0;display:inline-block;\
  3975. min-width:100px;\
  3976. }\
  3977. #rednote {\
  3978. font-size:7pt;\
  3979. color:red;\
  3980. padding: 1px 10px;\
  3981. margin: 0px 0;display:inline-block;\
  3982. }\
  3983. #configinfo {\
  3984. font-size:8pt;\
  3985. color:gray;\
  3986. padding: 1px 10px;\
  3987. margin: 0px 0;display:inline-block;width:60em;\
  3988. }\
  3989. #refAnonymizer, #inputColorLive, #inputColorprem, #hostSearchBox2, #hostSearchBox, #inputColorDead, #inputColorTemp, #inputColorCont, #selectAllButton, #selectNoneButton, #invertButton, #selectAllButton2, #selectNoneButton2, #invertButton2 {\
  3990. color:black;\
  3991. border-style: solid;\
  3992. border-width: 1px;\
  3993. border-color: gray;\
  3994. }\
  3995. #h3hideshowcontent {\
  3996. min-height:220px;\
  3997. max-height:220px;\
  3998. overflow:auto;\
  3999. display: none;\
  4000. padding: 10px 10px;\
  4001. }\
  4002. #specinfo{\
  4003. font-size:14px;\
  4004. }\
  4005. .warlc-ui-tab {\
  4006. height:300px;\
  4007. overflow:auto;\
  4008. }\
  4009. #warlcsitelist2, #warlcsitelist1 {\
  4010. height:220px;\
  4011. border-top: 1px solid #ddd;\
  4012. padding-top: 5px;\
  4013. overflow:auto;\
  4014. }\
  4015. input:hover+label {\
  4016. background:#F1F77C;\
  4017. font-size:110%;\
  4018. }\
  4019. ';
  4020.  
  4021. GM_addStyle(configcss);
  4022.  
  4023. var customRulesRefHTML =
  4024. '\
  4025. <br>\
  4026. A custom rule consists of <b>commands</b>. A command must be on its own line and in this form:<br>\
  4027. <b>@keyword</b> <i>parameter</i>\
  4028. <br><br>\
  4029. 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. \
  4030. <br><br>\
  4031. 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.\
  4032. 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.\
  4033. 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.\
  4034. 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,\
  4035. but all commands until the next valid @customrule are ignored.<br><br>\
  4036. Available forms and types:\
  4037. <ul>\
  4038. <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.\
  4039. <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.\
  4040. <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.\
  4041. <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.\
  4042. </ul>\
  4043. Other available commands:<br>\
  4044. (Note: There can be more than 1 (up to 10) of these commands per rule. In that case, any of them will work.)\
  4045. <ul>\
  4046. <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.\
  4047. It can also specify multiple (up to 10) Top Level Domains (.com, .net etc.)<br>\
  4048. <ul>examples:<br>\
  4049. <li>good: <i>filehost.com/download/</i><br>\
  4050. <li>good: <i>download.filehost.net/?d=</i><br>\
  4051. <li>good: <i>filehost. com net co.uk /</i> - multiple TLDs (note the spaces before, between and after TLDs)<br>\
  4052. <li>ok: <i>filehost.com/</i> - works, but will also find links like filehost.com/login etc. Sometimes it\'s unavoidable though.<br>\
  4053. <li>bad: <i>d8523.filehost.com/</i> - d8523 probably is not constant<br>\
  4054. <li>bad: <i>filehost.com/3bfiq5d1</i> - 3bfiq5d1 probably is not constant<br>\
  4055. <li>bad: <i>filehost.com</i> - no slash<br>\
  4056. </ul>\
  4057. \
  4058. <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.\
  4059. 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 \
  4060. &lt;div&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;p&gt; even if there are new lines, tabulators etc.\
  4061. <li><b>@deadmatch</b> <i>pattern</i> - ignored for OBSOLETE, required for others. (For HEADERS some servers return 404 Error \
  4062. 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.)\
  4063. Two spaces again match any whitespace.\
  4064. <li><b>@unavamatch</b> <i>pattern</i> - optional, ignored for OBSOLETE and HEADERS. If found, the link is deemed temporarily unavailable.\
  4065. Two spaces again match any whitespace.\
  4066. <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. \
  4067. <li><b>@deadlink</b> <i>url</i> - optional. Example dead link.\
  4068. </ul>\
  4069. \
  4070. ';
  4071.  
  4072. //close image and css taken from = http://www.sohtanaka.com/web-design/examples/css-popup icon_close.png;
  4073. var configurationinnerHTML =
  4074. '<div id="fade"></div>\
  4075. <div class="popup_block">\
  4076. <div class="popup">\
  4077. <a href="#"><img id="imghideshow" title="Close" class="cntrl" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAfCAYAAAD0ma06AAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VS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ibf608V7B53urOYngWJ1/YoXS2+bMq9oUuiIbgSYvjQQ6P6b03hsv+trmm3I3GtNZQUUvT1wz6YsnQf0U8CTFHgrFZDw1Hnfl34da2vcFCFTAMqYaBr07nD40/IebZui1t9qqWgE3t6uOfCB3gF8FegrBB6x5qrri9688a+JYN6UK57eijDo2HI2+8/HB/8AVAHlQCfQCvz7chOIBTzS1FocNEx1VSNjHmFWS9jvC6mk11QWAbePhl4K/JWa1fbSypU2uSsI8ZgnEyG2wE9igb/Fa7f9MHGTQuANdbcGLzyFV2smiukr7Siw4WqGvZhlqznxhX7cTzmXayA234c33lqFcjneIqZfxX1TJr+t4dWtcUGXgusNgaPLwvQpgJjHcK8EPOAM6J7+vblEfK0fZ9RoqwAnpTnznsN/2jOkuvOUNvmpXmMTrrQuoJWGj36bAugAMhSo2cnsgUil2fb5LRHi1/jRGlJHc5zenaV7p0PyRB7XkR7vfa4IlZtT69fbVKywyafh8HODHN+WfhH4FnD2alN1B7AdOAcMeT29HfiZJ5oZ3sHrgAeBvcCANzBsHu7Ohe2/AwDnNnxcIIMIUgAAAABJRU5ErkJggg=="></img>&nbsp;W.A.R. Links Checker Customized Premium Link version Configuration</div>\
  4079. <div id="warlc-conf-tabs">\
  4080. <ul>\
  4081. <li><a href="#tabs-1">Filehostings</a></li>\
  4082. <li><a href="#tabs-2">Containers</a></li>\
  4083. <li><a href="#tabs-5">Custom rules</a></li>\
  4084. <li><a href="#tabs-3">Settings</a></li>\
  4085. <li><a href="#tabs-4">About</a></li>\
  4086. </ul>\
  4087. <div id="tabs-1" class="warlc-ui-tab">\
  4088. <div class="warlc-ui-buttonset">\
  4089. <input type="button" class="warlc-ui-select-all" value="Select All">\
  4090. <input type="button" class="warlc-ui-select-none" value="Select None">\
  4091. <input type="button" class="warlc-ui-select-invert" value="Invert">\
  4092. </div><br>\
  4093. <div>Search: <input type="textbox" id="hostSearchBox" value=""></div><br>\
  4094. <div id="warlcsitelist1"><span>Empty</span></div>\
  4095. </div>\
  4096. <div id="tabs-2" class="warlc-ui-tab">\
  4097. <div class="warlc-ui-buttonset">\
  4098. <input type="button" class="warlc-ui-select-all" value="Select All">\
  4099. <input type="button" class="warlc-ui-select-none" value="Select None">\
  4100. <input type="button" class="warlc-ui-select-invert" value="Invert">\
  4101. </div><br>\
  4102. <div>Search: <input type="textbox" id="hostSearchBox2" value=""></div><br>\
  4103. <div id="warlcsitelist2"><span>Empty</span></div>\
  4104. </div>\
  4105. <div id="tabs-5" class="warlc-ui-tab">\
  4106. <div class="warlcsettings">\
  4107. <fieldset><input type="checkbox" id="Custom_rules"> Enable custom rules <div id="bulk">EXPERIMENTAL</div></fieldset>\
  4108. <br>\
  4109. <div>Edit custom rules: \
  4110. <a href="#" id="showCustomRulesReference">(<b>Click here to show/hide the reference</b>)</a>\
  4111. <div id="customRulesReference" style="display:none;">'
  4112. + customRulesRefHTML + '\
  4113. </div>\
  4114. <textarea style="width:100%;height:200px;" id="Custom_rules_text"></textarea>\
  4115. </div>\
  4116. </div>\
  4117. </div>\
  4118. <div id="tabs-3" class="warlc-ui-tab">\
  4119. <div class="warlcsettings">\
  4120. <fieldset>\
  4121. <p><input type="checkbox" id="Keyboard_functions"> Enable keyboard shortcuts</p>\
  4122. <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>\
  4123. </fieldset>\
  4124. <fieldset>\
  4125. <p><input type="checkbox" id="Color_DL_links"> Color DL links</p>\
  4126. <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>\
  4127. <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>\
  4128. <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>\
  4129. <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>\
  4130. <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>\
  4131. <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>\
  4132. <p><input type="checkbox" id="Show_line_through_in_dead_links"> Show line through in dead links</p>\
  4133. <p><input type="checkbox" id="Show_black_background_in_DL_links"> Show black background in DL links</p>\
  4134. <p><input type="checkbox" id="Do_not_linkify_DL_links"> Do NOT linkify DL links</p>\
  4135. <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>\
  4136. <p><input type="checkbox" id="Display_full_links_in_link_containers"> Display full links in link containers</p><br>\
  4137. <fieldset>\
  4138. <p><input type="radio" name="warlciconset" value="0"> No icons</p>\
  4139. <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>\
  4140. <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>\
  4141. <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>\
  4142. </fieldset>\
  4143. </fieldset>\
  4144. <fieldset>\
  4145. <div id="sites"><input type="checkbox" id="Autocheck"> Autocheck</div><br><div id="configinfo">Script starts check automatically.</div><br>\
  4146. </fieldset>\
  4147. <fieldset>\
  4148. <div id="sites"><input type="checkbox" id="Show_progress_stats"> Show progress stats</div><br>\
  4149. </fieldset>\
  4150. <fieldset>\
  4151. <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>\
  4152. </fieldset>\
  4153. <fieldset>\
  4154. <p><input type="checkbox" id="Enable_Anonymizer"> Enable Anonymizer</div><div id="bulk">EXPERIMENTAL Note: Checkbox does not work use CTRL+ALT+Z.</p>\
  4155. <div id="sites"><label for="refAnonymizer">Refererer anonymizing service</label><input type="text" id="refAnonymizer" value="' + Ref_anonymize_service + '"></div>\
  4156. </fieldset>\
  4157. </div>\
  4158. </div>\
  4159. <div id="tabs-4" class="warlc-ui-tab">\
  4160. <p><b>Author:</b> <a href="http://www.mentalps.5gbfree.com/viewtopic.php?f=2&t=6">mentalps</a></p>\
  4161. <br />\
  4162. <p><b>Currently supported:</b><br>\
  4163. Filehostings: ' + allHostNames.length + '<br />\
  4164. Containers: ' + allContainerNames.length + '<br />\
  4165. Obsolete sites: ' + allObsoleteNames.length + '<br /></p>\
  4166. <br />\
  4167. <p><b>Based on:</b><br>\
  4168. <a href="http://userscripts-mirror.org/scripts/show/125631.html">W.A.R. Links Checker - Dev</a></p>\
  4169. <br />\
  4170. <p><b>Uses:</b></p>\
  4171. <p>adam_3\'s <a href="http://userscripts-mirror.org/scripts/show/2254">Linkify ting</a> (modified)</p>\
  4172. <p><a href="http://jquery.com/">jQuery</a> JavaScript Library</p>\
  4173. <br />\
  4174. <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>\
  4175. </div>\
  4176. </div>\
  4177. </div>\
  4178. </div>';
  4179. $('body').append('<div id="hideshow">' + configurationinnerHTML + '</div>');
  4180. $("#warlc-conf-tabs").tabs({ fx: { opacity: 'toggle', duration: 'fast' } });
  4181. $("#imghideshow").click(function(event){$("#hideshow").hide(); event.preventDefault();});
  4182. var elmHostList = document.getElementById("warlcsitelist1");
  4183. var elmContainerList = document.getElementById("warlcsitelist2");
  4184. buildSettings();
  4185. buildSitelist("", allHostNames, elmHostList);
  4186. buildSitelist("", allContainerNames, elmContainerList);
  4187. if (DEBUG_MODE)
  4188. {
  4189. //log all sites availability status
  4190. diagSites();
  4191. }
  4192. //handler for checkbox state change
  4193. function changeConfiguration(e)
  4194. {
  4195. var element = e.target;
  4196.  
  4197. if (element.type == 'checkbox')
  4198. {
  4199. if (element.checked == 1)
  4200. {
  4201. GM_setValue(element.id, true);
  4202. }
  4203. else
  4204. {
  4205. GM_setValue(element.id, false);
  4206. }
  4207.  
  4208. }
  4209. setVariables();
  4210. }
  4211.  
  4212. //Selects all filehosting checkboxes
  4213. function selectAll()
  4214. {
  4215. $(":checkbox:visible:not(:checked)").prop("checked",true)
  4216. .each(function(index, element){GM_setValue(this.id, true)});
  4217. }
  4218.  
  4219. //Deselects all filehosting checkboxes
  4220. function selectNone()
  4221. {
  4222. $(":checkbox:visible:checked").prop("checked",false)
  4223. .each(function(index, element){GM_setValue(this.id, false)});
  4224. }
  4225.  
  4226. //Inverts filehosting checkboxes selection
  4227. function selectInvert()
  4228. {
  4229. var $checked = $(":checkbox:visible:checked");
  4230. var $unchecked = $(":checkbox:visible:not(:checked)");
  4231. $unchecked.prop("checked",true)
  4232. .each(function(index, element){GM_setValue(this.id, true)});
  4233. $checked.prop("checked",false)
  4234. .each(function(index, element){GM_setValue(this.id, false)});
  4235. }
  4236. //toggles anonymizer on off
  4237. function Enable_Anonymizer()
  4238. {
  4239. var $checked = $(":checkbox:visible:checked");
  4240. var $unchecked = $(":checkbox:visible:not(:checked)");
  4241. $unchecked.prop("checked",true)
  4242. .each(function(index, element){GM_setValue(this.id, true)});
  4243. $checked.prop("checked",false)
  4244. .each(function(index, element){GM_setValue(this.id, false)});
  4245. }
  4246.  
  4247. function changeRefAnonymizer(){
  4248. GM_setValue("Ref_anonymize_service", $("#refAnonymizer").attr("value"));
  4249. }
  4250.  
  4251. //Sets live links color
  4252. function changeColorLive()
  4253. {
  4254. var inColorLive = document.getElementById("inputColorLive");
  4255. inColorLive.style.background = inColorLive.value;
  4256. GM_setValue("Live_links_color", inColorLive.value);
  4257. }
  4258.  
  4259. //Sets dead links color
  4260. function changeColorDead()
  4261. {
  4262. var inColorDead = document.getElementById("inputColorDead");
  4263. inColorDead.style.background = inColorDead.value;
  4264. GM_setValue("Dead_links_color", inColorDead.value);
  4265. }
  4266.  
  4267. //Sets temp. unavailable links color
  4268. function changeColorTemp()
  4269. {
  4270. var inColorTemp = document.getElementById("inputColorTemp");
  4271. inColorTemp.style.background = inColorTemp.value;
  4272. GM_setValue("Temp_unavailable_links_color", inColorTemp.value);
  4273. }
  4274.  
  4275. //Sets temp. unavailable links color
  4276. function changeColorCont()
  4277. {
  4278. var inColorCont = document.getElementById("inputColorCont");
  4279. inColorCont.style.background = inColorCont.value;
  4280. GM_setValue("Container_links_color", inColorCont.value);
  4281. }
  4282. //Sets premium. links color
  4283. function changeColorprem()
  4284. {
  4285. var inColorprem = document.getElementById("inputColorprem");
  4286. inColorprem.style.background = inColorprem.value;
  4287. GM_setValue("Premium_links_color", inColorprem.value);
  4288. }
  4289.  
  4290. //Diagnose sites for availability
  4291. function diagSites()
  4292. {
  4293. var boxes = document.getElementById("warlcsitelist1").getElementsByTagName("input");
  4294.  
  4295. for (var i = 0, n = boxes.length - 1; i < n; i++)
  4296. {
  4297. if (boxes[i].type == "checkbox")
  4298. {
  4299. checkAvailability(boxes[i]);
  4300. }
  4301. }
  4302.  
  4303. boxes = document.getElementById("warlcsitelist2").getElementsByTagName("input");
  4304.  
  4305. for (var i = 0, n = boxes.length - 1; i < n; i++)
  4306. {
  4307. if (boxes[i].type == "checkbox")
  4308. {
  4309. checkAvailability(boxes[i]);
  4310. }
  4311. }
  4312.  
  4313. function checkAvailability(cbElm)
  4314. {
  4315. var cb = cbElm;
  4316. GM_xmlhttpRequest(
  4317. {
  4318. method: 'HEAD',
  4319. url: 'http://' + cb.nextSibling.textContent.replace(' ', ''),
  4320. headers: {
  4321. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  4322. 'Accept': 'text/xml',
  4323. 'Referer': ""
  4324. },
  4325. onload: function (result)
  4326. {
  4327. if (result.status != 200)
  4328. {
  4329. GM_log(cb.nextSibling.textContent + ' --- status: [' + result.status + '] ' + result.statusText + ', final url: ' + result.finalUrl);
  4330. }
  4331. },
  4332. onerror: function (result)
  4333. {
  4334. if (result.status != 200)
  4335. {
  4336. GM_log(cb.nextSibling.textContent + ' --- status: [' + result.status + '] ' + result.statusText + ', final url: ' + result.finalUrl);
  4337. }
  4338. }
  4339. });
  4340. }
  4341. }
  4342. function buildSettings()
  4343. {
  4344. $(".warlcsettings :checkbox").each(function(){
  4345. $(this).prop("checked", GM_getValue($(this).attr("id")))
  4346. .click(function(e){
  4347. GM_setValue($(this).attr("id"), $(this).prop("checked"));
  4348. setVariables();
  4349. });
  4350. })
  4351. }
  4352. //Dynamic build of host list
  4353. //param search [string] searches for hostnames matching search substring
  4354. //param siteNames [array] array of site names
  4355. //param targetNode [DOM Node] where the list should be built
  4356. // first child node is replaced
  4357. function buildSitelist(search, siteNames, targetNode)
  4358. {
  4359. var searchRegex = new RegExp("\\|?([\\w\\.-]*" + search.replace(/\./g,"\\.").replace(/-/g, "\\-") + "[\\w\\.-]*)\\|?", "i");
  4360. var $targetNode = $(targetNode).empty();
  4361. var searchedSite = "";
  4362. $.each(siteNames, function(i, site){
  4363. if (searchedSite = site.match(searchRegex))
  4364. {
  4365. var baseSite = site.replace(/\|.+/, ""); //filehosting main domain
  4366. //ensuring backward compatibility with the rest of code, to be refactored later
  4367. var oldRSLCvalue = "Check_" + baseSite.replace(/\|.+/, "").replace(/\./g,"_dot_").replace(/-/g, "_dash_") + "_links";
  4368. //
  4369. $targetNode.append('<input type="checkbox" id="' + oldRSLCvalue +'" />\
  4370. <label for="' + oldRSLCvalue + '">' + searchedSite[1] + '</label>' +
  4371. ((searchedSite[1] != baseSite) ? ('<div id="note"> ( ~ ' + baseSite + ' )</div>') : (""))
  4372. );
  4373. $("#" + oldRSLCvalue).prop("checked", GM_getValue(oldRSLCvalue, false))
  4374. .change(changeConfiguration);
  4375. $targetNode.append('<br />');
  4376. }
  4377. });
  4378. $targetNode.append("<hr>");
  4379. //obsolete hosts checkbox
  4380. $targetNode.append('<input type="checkbox" id="Obsolete_file_hosts" /><label for="Obsolete_file_hosts">Obsolete file hosts</label>');
  4381. $("#Obsolete_file_hosts").prop("checked", GM_getValue("Obsolete_file_hosts", false))
  4382. .change(changeConfiguration);
  4383. $targetNode.append('<br />');
  4384. var foundName = "";
  4385. $.each(allObsoleteNames, function(i, site){
  4386. if (foundName = allObsoleteNames[i].match(searchRegex))
  4387. {
  4388. $targetNode.append('<div id="note">' + foundName[1] + '</div>');
  4389. }
  4390. })
  4391. }
  4392. var hostSearchBox = document.getElementById("hostSearchBox");
  4393. hostSearchBox.addEventListener('keyup', function(){buildSitelist(hostSearchBox.value, allHostNames, elmHostList);}, false);
  4394. var hostSearchBox2 = document.getElementById("hostSearchBox2");
  4395. hostSearchBox2.addEventListener('keyup', function(){buildSitelist(hostSearchBox2.value, allContainerNames, elmContainerList);}, false);
  4396. $(".warlc-ui-select-all").click(selectAll).button();
  4397. $(".warlc-ui-select-none").click(selectNone).button();
  4398. $(".warlc-ui-select-invert").click(selectInvert).button();
  4399. $(".warlc-ui-buttonset").buttonset();
  4400. var inColorLive = document.getElementById("inputColorLive");
  4401. inColorLive.addEventListener('keyup', changeColorLive, false);
  4402.  
  4403. var inColorDead = document.getElementById("inputColorDead");
  4404. inColorDead.addEventListener('keyup', changeColorDead, false);
  4405.  
  4406. var inColorTemp = document.getElementById("inputColorTemp");
  4407. inColorTemp.addEventListener('keyup', changeColorTemp, false);
  4408.  
  4409. var inColorCont = document.getElementById("inputColorCont");
  4410. inColorCont.addEventListener('keyup', changeColorCont, false);
  4411. var inColorprem = document.getElementById("inputColorprem");
  4412. inColorprem.addEventListener('keyup', changeColorprem, false);
  4413. $("#refAnonymizer").change(changeRefAnonymizer);
  4414. //buttons and edit boxes init end
  4415.  
  4416. //icon sets radio buttons
  4417. var radioButtons = document.getElementsByName("warlciconset");
  4418. radioButtons[Icon_set].checked = "checked";
  4419.  
  4420. radioButtons[0].addEventListener("change", updateIconSet);
  4421. radioButtons[1].addEventListener("change", updateIconSet);
  4422. radioButtons[2].addEventListener("change", updateIconSet);
  4423. radioButtons[3].addEventListener("change", updateIconSet);
  4424. function updateIconSet()
  4425. {
  4426. GM_setValue("Icon_set", this.value * 1);
  4427. }
  4428. //
  4429. $('#showCustomRulesReference').click(function(e){
  4430. e.preventDefault();
  4431. $('#customRulesReference').toggle();
  4432. });
  4433. $('#Custom_rules_text')
  4434. .val(Custom_rules_text)
  4435. .change(saveCustomRules);
  4436. function saveCustomRules(e)
  4437. {
  4438. var cr = parseCustomRules(this.value);
  4439. if (cr.info.length)
  4440. 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, ' '));
  4441. GM_setValue('Custom_rules_text', this.value);
  4442. GM_setValue('last_custom_rules_nag', ''+new Date().getTime()); //reset nag
  4443. }
  4444. }
  4445.  
  4446. //begin standard link checking algorithm
  4447. function start(filterId)
  4448. {
  4449. var doNotLinkify = Do_not_linkify_DL_links;
  4450.  
  4451. // USER SELECTED FILE HOSTS INITIALIZATION START
  4452. var http_file_hosts = new Array(); //standard hostings
  4453. var http_file_hosts_coded = new Array(); //hostings which has to be decoded to obtain real checkable link
  4454. var http_file_hosts_obsolete = new Array(); //dead hostings
  4455. var http_file_hosts_headers_only = new Array(); //hostings with direct download, must be handled via headers only
  4456.  
  4457. initFileHosts();
  4458. initFileHostsHeadersOnly();
  4459. initFileHostsCustom(); //CustomRules
  4460. // USER SELECTED FILE HOSTS INITIALIZATION END
  4461.  
  4462. // LINKIFICATION START
  4463. var totalxpath = '';
  4464. var totalxpathcoded = '';
  4465. var totalxpathobsolete = '';
  4466. var totalxpathheadersonly = '';
  4467. var totalourls = '';
  4468.  
  4469. var filehostLen = http_file_hosts.length;
  4470. var filehostCodedLen = http_file_hosts_coded.length;
  4471. var filehostObsoleteLen = http_file_hosts_obsolete.length;
  4472. var filehostHeadersOnlyLen = http_file_hosts_headers_only.length;
  4473.  
  4474. var filehostIdx = filehostLen;
  4475. var filehostCodedIdx = filehostCodedLen;
  4476. var filehostObsoleteIdx = filehostObsoleteLen;
  4477. var filehostHeadersOnlyIdx = filehostHeadersOnlyLen;
  4478.  
  4479. if ((filehostIdx == 0) && (filehostCodedIdx == 0) && (filehostHeadersOnlyIdx == 0) && (filehostObsoleteIdx == 0))
  4480. return;
  4481.  
  4482. while (filehostIdx--)
  4483. {
  4484. totalourls += http_file_hosts[filehostIdx][0] + '|';
  4485. totalxpath += http_file_hosts[filehostIdx][4] + '|';
  4486. }
  4487.  
  4488. while (filehostCodedIdx--)
  4489. {
  4490. totalourls += http_file_hosts_coded[filehostCodedIdx][0] + '|';
  4491. totalxpathcoded += http_file_hosts_coded[filehostCodedIdx][3] + '|';
  4492. }
  4493.  
  4494. while (filehostObsoleteIdx--)
  4495. {
  4496. totalourls += http_file_hosts_obsolete[filehostObsoleteIdx][0] + '|';
  4497. totalxpathobsolete += http_file_hosts_obsolete[filehostObsoleteIdx][1] + '|';
  4498. }
  4499.  
  4500. while (filehostHeadersOnlyIdx--)
  4501. {
  4502. totalourls += http_file_hosts_headers_only[filehostHeadersOnlyIdx][0] + '|';
  4503. totalxpathheadersonly += http_file_hosts_headers_only[filehostHeadersOnlyIdx][3] + '|';
  4504. }
  4505.  
  4506. totalourls = totalourls.replace(/\|$/g, "");
  4507. //TODO: further refactoring needed
  4508. totalxpath = totalxpath.replace(/\]\|\/\/a\[/g, " or ");
  4509. totalxpath = totalxpath.replace(/\]\|/, ')]');
  4510. totalxpathcoded = totalxpathcoded.replace(/\]\|\/\/a\[/g, " or ");
  4511. totalxpathcoded = totalxpathcoded.replace(/\]\|/, ')]');
  4512. totalxpathobsolete = totalxpathobsolete.replace(/\]\|\/\/a\[/g, " or ");
  4513. totalxpathobsolete = totalxpathobsolete.replace(/\]\|/, ')]');
  4514. totalxpathheadersonly = totalxpathheadersonly.replace(/\]\|\/\/a\[/g, " or ");
  4515. totalxpathheadersonly = totalxpathheadersonly.replace(/\]\|/, ')]');
  4516. if (filterId != null) //insert id restriction in the xpath
  4517. {
  4518. totalxpath = totalxpath.replace(/\[/g, "[@class='" + filterId + "' and (");
  4519. totalxpathcoded = totalxpathcoded.replace(/\[/g, "[@class='" + filterId + "' and (");
  4520. totalxpathobsolete = totalxpathobsolete.replace(/\[/g, "[@class='" + filterId + "' and (");
  4521. totalxpathheadersonly = totalxpathheadersonly.replace(/\[/g, "[@class='" + filterId + "' and (");
  4522. }
  4523. else
  4524. {
  4525. totalxpath = totalxpath.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4526. totalxpathcoded = totalxpathcoded.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4527. totalxpathobsolete = totalxpathobsolete.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4528. totalxpathheadersonly = totalxpathheadersonly.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4529. }
  4530. linkify(totalourls);
  4531. //LINKIFICATION END
  4532. //ENCRYPTED LINKS PROCESSING START
  4533. if (http_file_hosts_coded.length > 0)
  4534. {
  4535. var linksCoded = document.evaluate(totalxpathcoded, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4536.  
  4537. // decrypt coded links (redirects, link protectors etc.)
  4538. if (linksCoded.snapshotLength > 0)
  4539. {
  4540. var link;
  4541. var reallinkreg;
  4542. var reallinkcorrection;
  4543.  
  4544. if (filterId == null)
  4545. {
  4546. cLinksTotal += linksCoded.snapshotLength;
  4547. }
  4548.  
  4549. var y = linksCoded.snapshotLength - 1;
  4550. do
  4551. {
  4552. // linksCoded.snapshotItem(y).id = 'processing_link';
  4553. link = linksCoded.snapshotItem(y);
  4554. filehostIdx = filehostCodedLen;
  4555. while (filehostIdx--)
  4556. {
  4557. if (link.href.match(http_file_hosts_coded[filehostIdx][0]))
  4558. {
  4559. link.href = link.href.replace(/http:\/\/.*?(?:\?|=)http:\/\//, 'http://');
  4560. reallinkreg = http_file_hosts_coded[filehostIdx][1];
  4561. reallinkcorrection = http_file_hosts_coded[filehostIdx][2];
  4562.  
  4563. decurl(link, reallinkreg, reallinkcorrection);
  4564. break;
  4565. }
  4566. }
  4567. }
  4568. while (y--);
  4569. }
  4570. }
  4571. //ENCRYPTED LINKS PROCESSING END
  4572.  
  4573. //STANDARD LINKCHECKING START
  4574. if (http_file_hosts.length > 0)
  4575. {
  4576. var lianks = document.evaluate(totalxpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4577.  
  4578. if (filterId == null)
  4579. {
  4580. cLinksTotal += lianks.snapshotLength;
  4581. }
  4582.  
  4583. if (lianks.snapshotLength > 0)
  4584. {
  4585. var link;
  4586.  
  4587. var URL = "";
  4588. var name = "";
  4589. var isAliveRegex = "";
  4590. var isDeadRegex = "";
  4591. var isUnavaRegex = "";
  4592. var ispremRegex = "";
  4593. var tryLoop = false;
  4594.  
  4595. var y = lianks.snapshotLength;
  4596.  
  4597. while (y--)
  4598. {
  4599. link = lianks.snapshotItem(y);
  4600.  
  4601. filehostIdx = filehostLen;
  4602. while (filehostIdx--)
  4603. {
  4604. if (link.href.match(http_file_hosts[filehostIdx][0]))
  4605. {
  4606. link.href = link.href.replace(/http:\/\/.*?http:\/\//, 'http://'); //anonymizers
  4607. isAliveRegex = http_file_hosts[filehostIdx][1];
  4608. isDeadRegex = http_file_hosts[filehostIdx][2];
  4609. isUnavaRegex = http_file_hosts[filehostIdx][3];
  4610. ispremRegex = http_file_hosts[filehostIdx][6];
  4611. tryLoop = http_file_hosts[filehostIdx][5];
  4612.  
  4613. geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, tryLoop);
  4614.  
  4615. break;
  4616. }
  4617. }
  4618. }
  4619. }
  4620. }
  4621. //STANDARD LINKCHECKING END
  4622. //OBSOLETE FILE HOSTS PROCESSING START
  4623. if (filehostObsoleteLen > 0)
  4624. {
  4625. var obsoletelinks = document.evaluate(totalxpathobsolete, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4626.  
  4627. var obsoleteLink;
  4628.  
  4629. //check links
  4630. if (obsoletelinks.snapshotLength > 0)
  4631. {
  4632. var y = obsoletelinks.snapshotLength;
  4633.  
  4634. if (filterId == null)
  4635. {
  4636. cLinksTotal += y;
  4637. }
  4638.  
  4639. while (y--)
  4640. {
  4641. obsoleteLink = obsoletelinks.snapshotItem(y);
  4642.  
  4643. if (Display_tooltip_info)
  4644. {
  4645. obsoleteLink.warlc_error = 'Cause of error: <b>Obsolete filehosting.</b>';
  4646. }
  4647. displayTheCheckedLink(obsoleteLink, 'adead_link');
  4648. }
  4649. }
  4650. }
  4651. //OBSOLETE FILE HOSTS PROCESSING END
  4652.  
  4653. //DIRECT LINKCHECKING START
  4654. if (http_file_hosts_headers_only.length > 0)
  4655. {
  4656. var links = document.evaluate(totalxpathheadersonly, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4657.  
  4658. //check links
  4659. if (links.snapshotLength > 0)
  4660. {
  4661. var link;
  4662. var isAliveRegex;
  4663. var isDeadRegex;
  4664. var ispremRegex;
  4665.  
  4666. var y = links.snapshotLength;
  4667.  
  4668.  
  4669. if (filterId == null)
  4670. {
  4671. cLinksTotal += y;
  4672. }
  4673.  
  4674. while (y--)
  4675. {
  4676. // links.snapshotItem(y).id = 'processing_link';
  4677. link = links.snapshotItem(y);
  4678. filehostIdx = filehostHeadersOnlyLen;
  4679. while (filehostIdx--)
  4680. {
  4681. if (link.href.match(http_file_hosts_headers_only[filehostIdx][0]))
  4682. {
  4683. link.href = link.href.replace(/http:\/\/.*?(?:\?|=)http:\/\//, 'http://');
  4684. isAliveRegex = http_file_hosts_headers_only[filehostIdx][1];
  4685. isDeadRegex = http_file_hosts_headers_only[filehostIdx][2];
  4686. ispremRegex = http_file_hosts_headers_only[filehostIdx][3];
  4687.  
  4688. geturlHeader(link, isAliveRegex, isDeadRegex, ispremRegex);
  4689.  
  4690. break;
  4691. }
  4692. }
  4693. }
  4694.  
  4695. }
  4696. }
  4697. //DIRECT LINKCHECKING END
  4698.  
  4699.  
  4700. //finds the real url on the page, replaces link.href with it and calls geturl
  4701. function decurl(link, reallinkreg, reallinkcorrection)
  4702. {
  4703.  
  4704. GM_xmlhttpRequest(
  4705. {
  4706. method: 'GET',
  4707. url: link.href,
  4708. headers: {
  4709. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  4710. 'Accept': 'text/xml',
  4711. 'Referer': ""
  4712. },
  4713. onload: function (result)
  4714. {
  4715. // cLinksProcessed++;
  4716.  
  4717. var reallink = result.responseText.match(reallinkreg)[0];
  4718. reallink = reallink.replace(new RegExp(reallinkcorrection, "g"), "");
  4719.  
  4720. link.href = reallink;
  4721.  
  4722. var i = http_file_hosts.length - 1;
  4723. do
  4724. {
  4725. if ((reallink.match(http_file_hosts[i][0])))
  4726. {
  4727. link.href = link.href.replace(/http:\/\/.*?\?http:\/\//, 'http://');
  4728. var isAliveRegex = http_file_hosts[i][1];
  4729. var isDeadRegex = http_file_hosts[i][2];
  4730. var isUnavaRegex = http_file_hosts[i][3];
  4731. var ispremRegex = http_file_hosts[i][4];
  4732.  
  4733. geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, 50);
  4734.  
  4735. break;
  4736. }
  4737. }
  4738. while (i--);
  4739. }
  4740. });
  4741. }
  4742.  
  4743. function randUA()
  4744. {
  4745. //TODO
  4746. }
  4747. //Processes link
  4748. //
  4749. // [string] link link URL
  4750. // [string] isAliveRegex alive link regex
  4751. // [string] isDeadRegex dead link regex
  4752. // [string] isUnavaRegex unavailable link regex
  4753. // [string] ispremRegex premium link regex
  4754. // [boolean] tryLoop repeats request until succeeded
  4755. function geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, tryLoop)
  4756. {
  4757. GM_xmlhttpRequest(
  4758. {
  4759. method: 'GET',
  4760. url: link.href,
  4761. headers: {
  4762. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  4763. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  4764. 'Referer': ""
  4765. },
  4766. onload: function (result)
  4767. {
  4768. var res = result.responseText;
  4769. if (result.responseHeaders.match(/Content-Disposition: attachment; filename=/))//direct download, simple version
  4770. {
  4771. displayTheCheckedLink(link, 'alive_link');
  4772. return;
  4773. }
  4774.  
  4775. if (res.match(isAliveRegex))
  4776. {
  4777. displayTheCheckedLink(link, 'alive_link');
  4778. return;
  4779. }
  4780.  
  4781. if (res.match(isDeadRegex))
  4782. {
  4783. displayTheCheckedLink(link, 'adead_link');
  4784. return;
  4785. }
  4786.  
  4787. if (isUnavaRegex && res.match(isUnavaRegex))
  4788. {
  4789. displayTheCheckedLink(link, 'unava_link');
  4790. return;
  4791. }
  4792. if (res.match(ispremRegex))
  4793. {
  4794. displayTheCheckedLink(link, 'prem_link');
  4795. return;
  4796. }
  4797.  
  4798. var resStatus = result.status;
  4799.  
  4800. if (resStatus == 404)
  4801. {
  4802. displayTheCheckedLink(link, 'adead_link');
  4803. }
  4804. if (resStatus == 500 || resStatus == 503 || resStatus == 403) //not found/available/temp. unava
  4805. {
  4806. if (tryLoop)
  4807. {
  4808. //wait 1-5 seconds and repeat the request
  4809. setTimeout(function(){geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, tryLoop)}, 1000 + (Math.random() * 4000));
  4810. }
  4811. else
  4812. {
  4813. displayTheCheckedLink(link, 'unava_link');
  4814. }
  4815.  
  4816. return;
  4817. }
  4818. },
  4819. onerror: function ()
  4820. {
  4821. displayTheCheckedLink(link, 'unava_link');
  4822. }
  4823. });
  4824. }
  4825.  
  4826. function geturlHeader(link, isAliveRegex, isDeadRegex, ispremRegex)
  4827. {
  4828. GM_xmlhttpRequest(
  4829. {
  4830. method: 'HEAD',
  4831. url: link.href,
  4832. headers: {
  4833. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  4834. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  4835. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  4836. 'Referer': ""
  4837. },
  4838. onload: function (result)
  4839. {
  4840. var resStatus = result.status;
  4841. var resHeaders = "";
  4842. if (resStatus == 403 || resStatus == 404 || resStatus == 500) //not found/available
  4843. {
  4844. displayTheCheckedLink(link, 'adead_link');
  4845. return;
  4846. }
  4847.  
  4848. resHeaders = result.responseHeaders;
  4849.  
  4850. if (resHeaders.match(isDeadRegex))
  4851. {
  4852. displayTheCheckedLink(link, 'adead_link');
  4853. return;
  4854. }
  4855.  
  4856. if (resHeaders.match(isAliveRegex))
  4857. {
  4858. displayTheCheckedLink(link, 'alive_link');
  4859. return;
  4860. }
  4861. if (resHeaders.match(ispremRegex))
  4862. {
  4863. displayTheCheckedLink(link, 'prem_link');
  4864. return;
  4865. }
  4866. },
  4867. onerror: function ()
  4868. {
  4869. displayTheCheckedLink(link, 'unava_link');
  4870. }
  4871. });
  4872. }
  4873.  
  4874. //Delinkfifies the <a> element object
  4875. function delinkifyLink(link)
  4876. {
  4877. var spanElm = document.createElement("span");
  4878. spanElm.className = link.className;
  4879. spanElm.innerHTML = link.innerHTML;
  4880.  
  4881. if (Display_tooltip_info)
  4882. {
  4883. spanElm.href = link.href;
  4884. spanElm.warlc_error = link.warlc_error;
  4885. switch (link.className){
  4886. case "alive_link": spanElm.addEventListener("mouseover", displayTooltipInfo, false); break
  4887. case "adead_link": spanElm.addEventListener("mouseover", displayTooltipError, false); break;
  4888. case "unava_link": //reserved
  4889. case "prem_link": spanElm.addEventListener("mouseover", displayTooltipError, false); break;
  4890. default:
  4891. }
  4892. }
  4893. link.parentNode.replaceChild(spanElm, link);
  4894. }
  4895.  
  4896. //Assigns result status to the <a> element object and calls delinkifying eventually
  4897. //Possible result states: adead_link, alive_link, unava_link, prem_link
  4898. function displayTheCheckedLink(link, resultStatus)
  4899. {
  4900. link.className = resultStatus;
  4901. link.href = Ref_anonymize_service + link.href;
  4902. if (Display_tooltip_info)
  4903. {
  4904. switch (resultStatus){
  4905. case "alive_link": link.addEventListener("mouseover", displayTooltipInfo, false); break
  4906. case "adead_link": link.addEventListener("mouseover", displayTooltipError, false); break;
  4907. case "unava_link": //reserved
  4908. case "prem_link": link.addEventListener("mouseover", displayTooltipInfo, false); break
  4909. default:
  4910. }
  4911. }
  4912. if (doNotLinkify)
  4913. {
  4914. delinkifyLink(link);
  4915. }
  4916. cLinksProcessed++;
  4917.  
  4918. if (resultStatus == "alive_link")
  4919. {
  4920. cLinksAlive++;
  4921. return;
  4922. }
  4923.  
  4924. if (resultStatus == "adead_link")
  4925. {
  4926. cLinksDead++;
  4927. return;
  4928. }
  4929.  
  4930. if (resultStatus == "unava_link")
  4931. {
  4932. cLinksUnava++;
  4933. }
  4934. if (resultStatus == "prem_link")
  4935. {
  4936. cLinksprem++;
  4937. return;
  4938. }
  4939. }
  4940.  
  4941.  
  4942. function initFileHosts()
  4943. {
  4944.  
  4945. function addObsoleteHost(linkRegex, xpathEx)
  4946. {
  4947. var host = new Array(2);
  4948. host[0] = linkRegex;
  4949. host[1] = xpathEx;
  4950. http_file_hosts_obsolete.push(host);
  4951. }
  4952.  
  4953. //obsolete file hosts init start
  4954. if (Obsolete_file_hosts)
  4955. {
  4956. addObsoleteHost("uloz\.cz\/show\/file","//a[contains(@href,'uloz.cz')]");
  4957. addObsoleteHost("storage\\.to\/get","//a[contains(@href,'storage.to')]");
  4958. addObsoleteHost("iskladka\\.cz\/download","//a[contains(@href,'iskladka.cz')]");
  4959. addObsoleteHost("file-rack\\.com\/files","//a[contains(@href,'file-rack.com')]");
  4960. addObsoleteHost("fast-load\\.net\/(\/)?index","//a[contains(@href,'fast-load.net')]");
  4961. addObsoleteHost("subory\\.sk\/download","//a[contains(@href,'subory.sk')]");
  4962. addObsoleteHost("bigandfree\\.com\/\\d+","//a[contains(@href,'bigandfree.com')]");
  4963. addObsoleteHost("fileop\\.com\/\\w+","//a[contains(@href,'fileop.com')]");
  4964. addObsoleteHost("mujsoubor\\.cz\/file\/","//a[contains(@href,'mujsoubor.cz')]");
  4965. addObsoleteHost("sendfile\\.to\/\\w+","//a[contains(@href,'sendfile.to')]");
  4966. addObsoleteHost("superfastfile\\.com\/\\w+","//a[contains(@href,'superfastfile.com')]");
  4967. addObsoleteHost("quickyshare\\.com\/\\w+","//a[contains(@href,'quickyshare.com/')]");
  4968. addObsoleteHost("duckload\\.com\/(?:d|play)","//a[contains(@href,'duckload.com')]");
  4969. addObsoleteHost("uploadstore\\.net\/\\w+","//a[contains(@href,'uploadstore.net')]");
  4970. addObsoleteHost("meinupload\\.com\/dl\/\\d+","//a[contains(@href,'meinupload.com/dl')]");
  4971. addObsoleteHost("dualshare\\.com\/\\w+","//a[contains(@href,'dualshare.com')]");
  4972. addObsoleteHost("2xupload\\.(?:to|de)\/file\/\\w+","//a[contains(@href,'2xupload.to') or contains(@href,'2xupload.de')]");
  4973. addObsoleteHost("oxedion\\.com\/index\\.php\/download\/\\w+","//a[contains(@href,'oxedion.com/index')]");
  4974. addObsoleteHost("uploadline\\.com\/\\d+","//a[contains(@href,'uploadline.com')]");
  4975. addObsoleteHost("dll\\.bz\/file\/\\d+","//a[contains(@href,'dll.bz/file')]");
  4976. addObsoleteHost("movieshare\\.in\/\\w+","//a[contains(@href,'movieshare.in')]");
  4977. addObsoleteHost("milledrive\\.com\/files\/\\d+","//a[contains(@href,'milledrive.com')]");
  4978. addObsoleteHost("quickupload\\.net\/\\w+","//a[contains(@href,'quickupload.net')]");
  4979. addObsoleteHost("safelink\\.in\/\\w+","//a[contains(@href,'safelink.in')]");
  4980. addObsoleteHost("pyramidfiles\\.com\/\\w+","//a[contains(@href,'pyramidfiles.com/')]");
  4981. addObsoleteHost("(?:cloudnator|shragle)\\.com\/files","//a[contains(@href,'cloudnator.com/files') or contains(@href,'shragle.com/files')]");
  4982. addObsoleteHost("batshare\\.com\/\\w+","//a[contains(@href,'batshare.com/')]");
  4983. addObsoleteHost("bitroad\\.net\/download","//a[contains(@href,'bitroad.net/download')]");
  4984. addObsoleteHost("metadivx\\.com\/\\w+","//a[contains(@href,'metadivx.com')]");
  4985. addObsoleteHost("filegaze\\.com\/\\w+","//a[contains(@href,'filegaze.com/')]");
  4986. addObsoleteHost("bulletupload\\.com\/\\w+","//a[contains(@href,'bulletupload.com/')]");
  4987. addObsoleteHost("sharefilehost\\.com\/\\w+","//a[contains(@href,'sharefilehost.com/')]");
  4988. addObsoleteHost("fireuploads\\.net\/\\w+","//a[contains(@href,'fireuploads.net/')]");
  4989. addObsoleteHost("divxlink\\.com\/\\w+","//a[contains(@href,'divxlink.com/')]");
  4990. addObsoleteHost("bzlink\\.us\/\\w+","//a[contains(@href,'bzlink.us/')]");
  4991. addObsoleteHost("filetechnology\\.com\/\\w+","//a[contains(@href,'filetechnology.com/')]");
  4992. addObsoleteHost("filecosy\\.com\/\\w+","//a[contains(@href,'filecosy.com/')]");
  4993. addObsoleteHost("fileserver\\.cc\/\\w+","//a[contains(@href,'fileserver.cc/')]");
  4994. addObsoleteHost("shafiles\\.me\/\\w+","//a[contains(@href,'shafiles.me/')]");
  4995. addObsoleteHost("xfileshare\\.eu\/\\w+","//a[contains(@href,'xfileshare.eu/')]");
  4996. addObsoleteHost("uploadboost\\.com\/\\w+","//a[contains(@href,'uploadboost.com/')]");
  4997. addObsoleteHost("uploadoz\\.com\/\\w+","//a[contains(@href,'uploadoz.com/')]");
  4998. addObsoleteHost("ihostia\\.com\/\\w+","//a[contains(@href,'ihostia.com/')]");
  4999. addObsoleteHost("shareupload\\.com\/\\w+","//a[contains(@href,'shareupload.com/')]");
  5000. addObsoleteHost("ovfile\\.com\/\\w+","//a[contains(@href,'ovfile.com/')]");
  5001. addObsoleteHost("stahuj\\.to\/\\w+","//a[contains(@href,'stahuj.to/')]");
  5002. addObsoleteHost("gigfiles\\.net\/\\w+","//a[contains(@href,'gigfiles.net/')]");
  5003. addObsoleteHost("vidhog\\.com\/\\w+","//a[contains(@href,'vidhog.com/')]");
  5004. addObsoleteHost("filelaser\\.com\/\\w+","//a[contains(@href,'filelaser.com/')]");
  5005. addObsoleteHost("holderfile\\.com\/\\w+","//a[contains(@href,'holderfile.com/')]");
  5006. addObsoleteHost("fileduct\\.(?:com|net)\/\\w+","//a[contains(@href,'fileduct.com/') or contains(@href,'fileduct.net')]");
  5007. addObsoleteHost("filefat\\.com\/\\w+","//a[contains(@href,'filefat.com/')]");
  5008. addObsoleteHost("restfile\\.com\/\\w+","//a[contains(@href,'restfile.com/')]");
  5009. addObsoleteHost("filemashine\\.com\\/download\/\\w+","//a[contains(@href,'filemashine.com/download')]");
  5010. addObsoleteHost("cloudnxt\\.net\/\\w+","//a[contains(@href,'cloudnxt.net/')]");
  5011. addObsoleteHost("uploadrack\\.com\/\\w+","//a[contains(@href,'uploadrack.com')]");
  5012. addObsoleteHost("teradepot\\.com\/\\w+","//a[contains(@href,'teradepot.com')]");
  5013. addObsoleteHost("dataup\\.to\/\\d+\/","//a[contains(@href,'dataup.to')]");
  5014. addObsoleteHost("upit\\.to\/file:\\d+","//a[contains(@href,'upit.to/file')]");
  5015. addObsoleteHost("badongo\\.(?:com|net)\/(?:\\w\\w\/|)(?:vid|cfile|file|pt)\/\\w+","//a[contains(@href,'badongo.com') or contains(@href,'badongo.net')]");
  5016. addObsoleteHost("driveway\\.com\/\\w+","//a[contains(@href,'driveway.com')]");
  5017. addObsoleteHost("eatlime\\.com\/download","//a[contains(@href,'eatlime.com/download')]");
  5018. addObsoleteHost("a2zuploads\\.com\/id\\w+","//a[contains(@href,'a2zuploads.com/id')]");
  5019. addObsoleteHost("friendlyfiles\\.net\/download\/\\w+\/","//a[contains(@href,'friendlyfiles.net/download')]");
  5020. addObsoleteHost("flyfile\\.us\/\\w+","//a[contains(@href,'flyfile.us')]");
  5021. addObsoleteHost("speedyshare\\.com\/\\w+","//a[contains(@href,'speedyshare.com')]");
  5022. addObsoleteHost("brontofile\\.com\/download","//a[contains(@href,'brontofile.com/download')]");
  5023. addObsoleteHost("uploadspace\\.eu\/\\w+","//a[contains(@href,'uploadspace.eu')]");
  5024. addObsoleteHost("fooget\\.com\/\\w+","//a[contains(@href,'fooget.com/')]");
  5025. addObsoleteHost("file-bit.net\/\\w+","//a[contains(@href,'file-bit.net/')]");
  5026. addObsoleteHost("keepfile\\.com\/\\w+","//a[contains(@href,'keepfile.com')]");
  5027. addObsoleteHost("piggyshare\\.com\/file\/\\w+","//a[contains(@href,'piggyshare.com')]");
  5028. addObsoleteHost("filecrown\\.com\/\\w+","//a[contains(@href,'filecrown.com')]");
  5029. addObsoleteHost("6giga\\.com\/\\w+","//a[contains(@href,'6giga.com')]");
  5030. addObsoleteHost("uploadjockey\\.com\/download\/\\w+","//a[contains(@href,'uploadjockey.com/download')]");
  5031. addObsoleteHost("bluehost\\.to\/dl=\\w+","//a[contains(@href,'bluehost.to')]");
  5032. addObsoleteHost("coolshare\\.cz\/stahnout\/\\w+","//a[contains(@href,'coolshare.cz/stahnout')]");
  5033. addObsoleteHost("filegu\\.ru\/f\/\\w+","//a[contains(@href,'filegu.ru/f')]");
  5034. addObsoleteHost("filebase\\.to\/files\/\\d+\/","//a[contains(@href,'filebase.to/files')]");
  5035. addObsoleteHost("kickload\\.com\/(?:file|get)\/","//a[contains(@href,'kickload.com/file') or contains(@href,'kickload.com/get')]");
  5036. addObsoleteHost("up-file\\.com\/files\/download\/\\w+\/","//a[contains(@href,'up-file.com/download')]");
  5037. addObsoleteHost("ezyfile\\.net\/\\w+","//a[contains(@href,'ezyfile.net/')]");
  5038. addObsoleteHost("k2files\\.com\/files","//a[contains(@href,'k2files.com/files')]");
  5039. addObsoleteHost("aiotool\\.net\/\\w+","//a[contains(@href,'aiotool.net/')]");
  5040. addObsoleteHost("xvideos\\.com\/files\/\\d+\/\\w+","//a[contains(@href,'xvideos.com/files')]");
  5041. addObsoleteHost("filebling\\.com\/dl\/\\d+\/\\d+\/\\w+","//a[contains(@href,'filebling.com/dl')]");
  5042. addObsoleteHost("loaded\\.it\/divx\/\\w+","//a[contains(@href,'loaded.it/divx')]");
  5043. addObsoleteHost("uploadcell\\.com\/\\w+\/\\w+","//a[contains(@href,'uploadcell.com')]");
  5044. addObsoleteHost("jakfile\\.com\/\\w+","//a[contains(@href,'jakfile.com/')]");
  5045. addObsoleteHost("uploadshare\\.cz\/download\/\\w+\/\\w+","//a[contains(@href,'uploadshare.cz/download')]");
  5046. addObsoleteHost("mangoshare\\.com\/\\w+","//a[contains(@href,'mangoshare.com')]");
  5047. addObsoleteHost("ugotfile\\.com\/file\/\\d+\/\\w+","//a[contains(@href,'ugotfile.com/file')]");
  5048. addObsoleteHost("filestab\\.com\/\\w+","//a[contains(@href,'filestab.com')]");
  5049. addObsoleteHost("dotavi\\.com\/\\w+\/.","//a[contains(@href,'dotavi.com/')]");
  5050. addObsoleteHost("crazyupload\\.com\/\\w+","//a[contains(@href,'crazyupload.com')]");
  5051. addObsoleteHost("gaiafile\\.com\/\\w+","//a[contains(@href,'gaiafile.com')]");
  5052. addObsoleteHost("sharejunky\\.com\/\\w+","//a[contains(@href,'sharejunky.com')]");
  5053. addObsoleteHost("fileho\\.com\/download\/\\d+","//a[contains(@href,'fileho.com/download')]");
  5054. addObsoleteHost("(?:bigandfree|BigAndFree)\\.com\/\\d+","//a[contains(@href,'bigandfree.com') or contains(@href,'BigAndFree.com')]");
  5055. addObsoleteHost("bigfile\\.in\/\\w+","//a[contains(@href,'bigfile.in')]");
  5056. addObsoleteHost("bigshare\\.eu\/download\\.php\\?id=","//a[contains(@href,'bigshare.eu/download.php')]");
  5057. addObsoleteHost("dahosting\\.org\/dl\/\\w+","//a[contains(@href,'dahosting.org/dl')]");
  5058. addObsoleteHost("digisofts\\.net\/\\w+","//a[contains(@href,'digisofts.net')]");
  5059. addObsoleteHost("file4save\\.com\/\\w+\/\\w+","//a[contains(@href,'file4save.com')]");
  5060. addObsoleteHost("filereactor\\.com\/\\w+","//a[contains(@href,'filereactor.com/')]");
  5061. addObsoleteHost("filechip\\.com\/\\w+","//a[contains(@href,'filechip.com')]");
  5062. addObsoleteHost("filescloud\\.com\/\\w+\/\\w+","//a[contains(@href,'filescloud.com')]");
  5063. addObsoleteHost("saveqube\\.com\/getfile\/\\w+","//a[contains(@href,'saveqube.com/getfile')]");
  5064. addObsoleteHost("www2\\.turboshare\\.de\/v\/\\d+","//a[contains(@href,'turboshare.de/v')]");
  5065. addObsoleteHost("z-upload\\.com\/\\w+","//a[contains(@href,'z-upload.com')]");
  5066. addObsoleteHost("youshare\\.com\/view\\.php","//a[contains(@href,'youshare.com/view')]");
  5067. addObsoleteHost("jiffyupload\\.com\/\\w+","//a[contains(@href,'jiffyupload.com')]");
  5068. addObsoleteHost("gigeshare\\.com\/preview\/\\w+","//a[contains(@href,'gigeshare.com')]");
  5069. addObsoleteHost("datenklo\\.net\/dl","//a[contains(@href,'datenklo.net')]");
  5070. addObsoleteHost("upload\\.dj\/download\\.php\\?id=\\w+","//a[contains(@href,'upload.dj/download.php')]");
  5071. addObsoleteHost("loadfiles\\.in\/\\w+\/","//a[contains(@href,'loadfiles.in')]");
  5072. addObsoleteHost("upit\\.to\/file:\\w+\/","//a[contains(@href,'upit.to/file')]");
  5073. addObsoleteHost("zshare\\.net\/(?:download|video|audio)\/\\w+","//a[contains(@href,'zshare.net/')]");
  5074. addObsoleteHost("refile\\.net\/f\/\\?\\w+","//a[contains(@href,'refile.net/f/')]");
  5075. addObsoleteHost("dsfileshare\\.com\/download","//a[contains(@href,'dsfileshare.com/download')]");
  5076. addObsoleteHost("sharesimple\\.net\/\\w{2}\/download","//a[contains(@href,'sharesimple.net')]");
  5077. addObsoleteHost("(?:s\\d+\\.|)4files\\.net\/\\d+","//a[contains(@href,'4files.net')]");
  5078. addObsoleteHost("odsiebie\\.com\/pokaz\/\\d+","//a[contains(@href,'odsiebie.com/pokaz')]");
  5079. addObsoleteHost("filenavi\\.com\/direct\/\\w+","//a[contains(@href,'filenavi.com/direct')]");
  5080. addObsoleteHost("3oof\\.com\/\\w+","//a[contains(@href,'3oof.com/')]");
  5081. addObsoleteHost("meshwaar\\.com\/\\w+","//a[contains(@href,'meshwaar.com')]");
  5082. addObsoleteHost("maxupload\\.com\/files\/\\w+","//a[contains(@href,'maxupload.com/files')]");
  5083. addObsoleteHost("share\\.cx\/videos\/\\d+","//a[contains(@href,'share.cx/videos')]");
  5084. addObsoleteHost("atserver\\.eu\/(?:\\w{2}\/|)download\/\\d+","//a[contains(@href,'atserver.eu')]");
  5085. addObsoleteHost("file2upload\\.net\/download\/\\d+","//a[contains(@href,'file2upload.net/download')]");
  5086. addObsoleteHost("filebling\\.com\/\\w+","//a[contains(@href,'filebling.com')]");
  5087. addObsoleteHost("turboshare\\.(?:eu|com)\/files","//a[contains(@href,'turboshare.') and contains(@href,'/files')]");
  5088. addObsoleteHost("rarhost\\.com\/download","//a[contains(@href,'rarhost.com/download')]");
  5089. addObsoleteHost("isharehd\\.com\/\\w+","//a[contains(@href,'isharehd.com')]");
  5090. addObsoleteHost("datenklo\\.net\/file\\.php\\?id=\\w+","//a[contains(@href,'datenklo.net/file.php')]");
  5091. addObsoleteHost("file2share\\.biz\/download\\.php\\?id=\\w+","//a[contains(@href,'file2share.biz/download.php')]");
  5092. addObsoleteHost("savefiles\\.net\/d\/\\w+\\.html","//a[contains(@href,'savefiles.net/d')]");
  5093. addObsoleteHost("bestsharing\\.com\/files\/\\w+","//a[contains(@href,'bestsharing.com/files')]");
  5094. addObsoleteHost("filecache\\.de\/\\d+","//a[contains(@href,'filecache.de/')]");
  5095. addObsoleteHost("i741\\.com\/files\/\\w+","//a[contains(@href,'i741.com/files')]");
  5096. addObsoleteHost("dataup\\.de\/\\d+","//a[contains(@href,'dataup.de')]");
  5097. addObsoleteHost("fofly\\.com\/\\w+","//a[contains(@href,'fofly.com')]");
  5098. addObsoleteHost("shareonall\\.com\/\\w+","//a[contains(@href,'shareonall.com')]");
  5099. addObsoleteHost("sexuploader\\.com\/(?:|..\/)\\?[d|v]=\\w{8}","//a[contains(@href,'sexuploader.com')]");
  5100. 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')]");
  5101. addObsoleteHost("uploadhyper\\.com\/file\/","//a[contains(@href,'uploadhyper.com')]");
  5102. addObsoleteHost("filespawn\\.com\/file\/","//a[contains(@href,'filespawn.com')]");
  5103. addObsoleteHost("caizzii\\.com\/(?:download|\\?file=)","//a[contains(@href,'caizzii.com')]");
  5104. addObsoleteHost("volnyweb\\.cz\/files\/get\/[\\w-_]+","//a[contains(@href,'volnyweb.cz/files')]");
  5105. addObsoleteHost("gotupload\\.com\/\\w+","//a[contains(@href,'gotupload.com/')]");
  5106. addObsoleteHost("mooload\\.com\/new\/file\\.php\\?file=files\/\\d+\/\\d+","//a[contains(@href,'mooload.com/new/file')]");
  5107. addObsoleteHost("z\\d+\\.zupload\\.com\/download\\.php\\?file=getfile&filepath=\\d+","//a[contains(@href,'zupload.com/download')]");
  5108. addObsoleteHost("mytempdir\\.com\/\\d+","//a[contains(@href,'mytempdir.com/')]");
  5109. addObsoleteHost("usershare\\.net\/\\w+","//a[contains(@href,'usershare.net/')]");
  5110. addObsoleteHost("qshare\\.com\/get\/\\d+\/.","//a[contains(@href,'qshare.com/get')]");
  5111. addObsoleteHost("filescash\\.net\/file\/\\d+","//a[contains(@href,'filescash.net/file')]");
  5112. addObsoleteHost("metahyper\\.com\/\\w+","//a[contains(@href,'metahyper.com/')]");
  5113. addObsoleteHost("combozip\\.com\/\\w+","//a[contains(@href,'combozip.com/')]");
  5114. addObsoleteHost("anonstream\\.com\/get_\\w+","//a[contains(@href,'anonstream.com/get_')]");
  5115. addObsoleteHost("x7\\.to\/\\w+","//a[contains(@href,'x7.to/')]");
  5116. addObsoleteHost("uploadbox\\.com\/files\/\\w+","//a[contains(@href,'uploadbox.com/files')]");
  5117. addObsoleteHost("(?:flyupload\\.)?(?:enterupload|flyupload)\\.com\/[\\?\\w]+","//a[contains(@href,'enterupload.com/') or contains(@href,'flyupload.com/')]");
  5118. addObsoleteHost("filepoint\\.de\/dl\/\\w+","//a[contains(@href,'filepoint.de/dl')]");
  5119. addObsoleteHost("icushare\\.com\/\\w+","//a[contains(@href,'icushare.com/')]");
  5120. addObsoleteHost("oron\\.com\/\\w+","//a[contains(@href,'oron.com/')]");
  5121. addObsoleteHost("mystream\\.to\/file\\-\\d+","//a[contains(@href,'mystream.to/file')]");
  5122. addObsoleteHost("x-fs\\.com\/download\\.php\\?id=\\w+","//a[contains(@href,'x-fs.com/download')]");
  5123. addObsoleteHost("srapid\\.eu\/\\w+","//a[contains(@href,'srapid.eu/')]");
  5124. addObsoleteHost("shareshared\\.com\/\\w+","//a[contains(@href,'shareshared.com/')]");
  5125. addObsoleteHost("sosame\\.cz\/\\w+","//a[contains(@href,'sosame.cz/')]");
  5126. addObsoleteHost("s\\d+\\.filesdump\\.com\/file\/\\w+","//a[contains(@href,'filesdump.com/file')]");
  5127. addObsoleteHost("2-klicks\\.de\/\\?d=\\w+","//a[contains(@href,'2-klicks.de/?d=')]");
  5128. addObsoleteHost("silofiles\\.com\/file\/\\d+","//a[contains(@href,'silofiles.com/file')]");
  5129. addObsoleteHost("upfile\\.in\/\\w+","//a[contains(@href,'upfile.in/')]");
  5130. addObsoleteHost("filehook\\.com\/\\w+","//a[contains(@href,'filehook.com/')]");
  5131. addObsoleteHost("mojofile\\.com\/\\w+","//a[contains(@href,'mojofile.com/')]");
  5132. addObsoleteHost("cloudcache\\.cc\/\\w+","//a[contains(@href,'cloudcache.cc/')]");
  5133. addObsoleteHost("1hostclick\\.com\/\\w+","//a[contains(@href,'1hostclick.com/')]");
  5134. addObsoleteHost("4bytez\\.com\/\\w+","//a[contains(@href,'4bytez.com/')]");
  5135. addObsoleteHost("uploadking\\.com\/\\w+","//a[contains(@href,'uploadking.com/')]");
  5136. addObsoleteHost("nahraj\\.cz\/(?:content|down)\/\\w+","//a[contains(@href,'nahraj.cz/')]");
  5137. addObsoleteHost("megarapid\\.eu\/files\/\\d+","//a[contains(@href,'megarapid.eu/files')]");
  5138. addObsoleteHost("(?:fileserve|uploadstation)\\.com\/(?:file|list)\/\\w+","//a[contains(@href,'fileserve.com/') or contains(@href,'uploadstation.com/')]");
  5139. addObsoleteHost("uploadhere\\.com\/\\w+","//a[contains(@href,'uploadhere.com/')]");
  5140. addObsoleteHost("dualshare\\.com\/\\w+","//a[contains(@href,'dualshare.com/')]");
  5141. addObsoleteHost("yourfilehost\\.com\/media","//a[contains(@href,'yourfilehost.com/media')]");
  5142. addObsoleteHost("ftp2share\\.com\/file\/\\w+","//a[contains(@href,'ftp2share.com/file')]");
  5143. addObsoleteHost("storeandserve\\.com\/download\/\\d+","//a[contains(@href,'storeandserve.com/download')]");
  5144. addObsoleteHost("mountfile\\.com\/file(?:\/\\w+){2}","//a[contains(@href,'mountfile.com/file')]");
  5145. addObsoleteHost("save\\.am\/files\/\\w+","//a[contains(@href,'save.am/files')]");
  5146. addObsoleteHost("transitfiles\\.com\/dl\/\\w+","//a[contains(@href,'transitfiles.com/dl')]");
  5147. addObsoleteHost("smartuploader\\.com\/file\\.php\\?f=\\d+","//a[contains(@href,'smartuploader.com/file.php?=')]");
  5148. addObsoleteHost("skipfile\\.com\/\\w+","//a[contains(@href,'skipfile.com/')]");
  5149. addObsoleteHost("stahnu\\.to\/[\\w\\?]+","//a[contains(@href,'stahnu.to/')]");
  5150. addObsoleteHost("flyshare\.cz\/(?:stahni\/|)\\d+","//a[contains(@href,'flyshare.cz/')]");
  5151. addObsoleteHost("(?:ddlani\\.me|ddlanime\\.com)\/\\w+","//a[contains(@href,'ddlani.me/') or contains(@href,'ddlanime.com/')]");
  5152. addObsoleteHost("loadly\\.com\/\\w+","//a[contains(@href,'loadly.com/')]");
  5153. addObsoleteHost("groovefile\\.com\/\\w+","//a[contains(@href,'groovefile.com/')]");
  5154. addObsoleteHost("filezlot\\.com\/\\w+","//a[contains(@href,'filezlot.com/')]");
  5155. addObsoleteHost("shareator\\.(?:net|com)\/\\w+","//a[contains(@href,'shareator.')]");
  5156. addObsoleteHost("yabadaba\\.ru\/files\/","//a[contains(@href,'yabadaba.ru/files/')]");
  5157. addObsoleteHost("rapidhide\\.com\/download\\.php\\?file=\\w+","//a[contains(@href,'rapidhide.com/download.php')]");
  5158. addObsoleteHost("filejungle\\.com\/[fl]\/\\w+","//a[contains(@href,'filejungle.com/')]");
  5159. addObsoleteHost("kewlshare\\.com\/dl\/\\d+","//a[contains(@href,'kewlshare.com/dl')]");
  5160. addObsoleteHost("petandrive\\.com\/file\/\\w+","//a[contains(@href,'petandrive.com/file')]");
  5161. addObsoleteHost("onionshare\\.com\/\\w+","//a[contains(@href,'onionshare.com/')]");
  5162. addObsoleteHost("rapidable\\.com\/\\w+\/download\\.php\\?id=","//a[contains(@href,'rapidable.com/')]");
  5163. addObsoleteHost("filesdump\\.com\/file\/\\w+\/\\d+","//a[contains(@href,'filesdump.com/file')]");
  5164. addObsoleteHost("file2box\\.(?:net|com)\/\\w+","//a[contains(@href,'file2box.')]");
  5165. addObsoleteHost("(?:filesonic|sharingmatrix|wupload)(?:\\.\\w+){1,2}\/(?:file|folder)\/\\w+","//a[contains(@href,'filesonic.') or contains(@href,'sharingmatrix.com') or contains(@href,'wupload.')]");
  5166. addObsoleteHost("wizzupload\\.com\/\\w+","//a[contains(@href,'wizzupload.com/')]");
  5167. addObsoleteHost("bloggerarticles\\.com\/\\w+","//a[contains(@href,'bloggerarticles.com/')]");
  5168. addObsoleteHost("mojedata\\.sk/","//a[contains(@href,'mojedata.sk/')]");
  5169. addObsoleteHost("sharpfile\\.com\/\\w+","//a[contains(@href,'sharpfile.com/')]");
  5170. addObsoleteHost("upgrand\\.com\/\\w+","//a[contains(@href,'upgrand.com/')]");
  5171. addObsoleteHost("nasdilej\\.cz\/\\w+","//a[contains(@href,'nasdilej.cz/')]");
  5172. addObsoleteHost("mediatack\\.cz\/stahuj/\\w+","//a[contains(@href,'mediatack.cz/stahuj/')]");
  5173. addObsoleteHost("share-it\\.to\/file/\\w+","//a[contains(@href,'share-it.to/file/')]");
  5174. addObsoleteHost("primeupload\\.com\/file/\\w+","//a[contains(@href,'primeupload.com/file/')]");
  5175. addObsoleteHost("(?:uploads\\.glumbo|glumbouploads)\\.com\/\\w+","//a[contains(@href,'uploads.glumbo.com') or contains(@href,'glumbouploads.com')]");
  5176. addObsoleteHost("filebeer\\.info\/\\w+","//a[contains(@href,'filebeer.info/')]");
  5177. addObsoleteHost("baberepublic\\.com\/link\/\\w+","//a[contains(@href,'baberepublic.com/link/')]");
  5178. addObsoleteHost("xtu\\.me\/\\w+","//a[contains(@href,'xtu.me/')]");
  5179. addObsoleteHost("sharebase\\.de\/files\/\\w+","//a[contains(@href,'sharebase.de/files/')]");
  5180. addObsoleteHost("filerobo\\.com\/\\w+","//a[contains(@href,'filerobo.com/')]");
  5181. addObsoleteHost("filevelocity\\.com\/\\w+","//a[contains(@href,'filevelocity.com/')]");
  5182. addObsoleteHost("filezpro\\.com\/\\w+","//a[contains(@href,'filezpro.com/')]");
  5183. addObsoleteHost("file4sharing\\.com\/\\w+","//a[contains(@href,'file4sharing.com/')]");
  5184. addObsoleteHost("cing\\.be\/\\w+","//a[contains(@href,'cing.be/')]");
  5185. addObsoleteHost("ufile\\.eu\/\\w+","//a[contains(@href,'ufile.eu/')]");
  5186. addObsoleteHost("pigsonic\\.com\/\\w+","//a[contains(@href,'pigsonic.com/')]");
  5187. addObsoleteHost("fileupped\\.com\/\\w+","//a[contains(@href,'fileupped.com/')]");
  5188. addObsoleteHost("sharerun\\.com\/\\w+","//a[contains(@href,'sharerun.com/')]");
  5189. addObsoleteHost("rapidslnare\\.com\/\\w+","//a[contains(@href,'rapidslnare.com/')]");
  5190. addObsoleteHost("monsteruploads\\.eu\/\\w+","//a[contains(@href,'monsteruploads.eu/')]");
  5191. addObsoleteHost("b9bb\\.com\/\\w+","//a[contains(@href,'b9bb.com/')]");
  5192. addObsoleteHost("jamber\\.info\/\\w+","//a[contains(@href,'jamber.info/')]");
  5193. addObsoleteHost("(?:megaftp|MegaFTP)\\.com\/\\w+","//a[contains(@href,'megaftp.com/') or contains(@href,'MegaFTP.com/')]");
  5194. addObsoleteHost("desiupload\\.net\/\\?d=\\w+","//a[contains(@href,'desiupload.net/')]");
  5195. addObsoleteHost("file27\\.com\/\\w+","//a[contains(@href,'file27.com/')]");
  5196. addObsoleteHost("yastorage\\.com\/\\w+","//a[contains(@href,'yastorage.com/')]");
  5197. addObsoleteHost("filehost\\.ws\/\\w+","//a[contains(@href,'filehost.ws/')]");
  5198. addObsoleteHost("copyload\\.com\/\\w+","//a[contains(@href,'copyload.com/')]");
  5199. addObsoleteHost("venusfile\\.com\/\\w+","//a[contains(@href,'venusfile.com/')]");
  5200. addObsoleteHost("aieshare\\.com\/\\w+","//a[contains(@href,'aieshare.com/')]");
  5201. addObsoleteHost("fileza\\.net\/\\w+","//a[contains(@href,'fileza.net/')]");
  5202. addObsoleteHost("filerose\\.com\/\\w+","//a[contains(@href,'filerose.com/')]");
  5203. addObsoleteHost("squillion\\.com\/\\w+","//a[contains(@href,'squillion.com/')]");
  5204. addObsoleteHost("fileprohost\\.com\/\\w+","//a[contains(@href,'fileprohost.com/')]");
  5205. addObsoleteHost("bitbonus\\.com\/download\/\\w+","//a[contains(@href,'bitbonus.com/')]");
  5206. addObsoleteHost("warserver\\.cz\/\\w+","//a[contains(@href,'warserver.cz/')]");
  5207. addObsoleteHost("uload\\.to\/\\w+","//a[contains(@href,'uload.to/')]");
  5208. addObsoleteHost("sharedbit\\.net\/\\w+","//a[contains(@href,'sharedbit.net/')]");
  5209. addObsoleteHost("megaload\\.it\/\\w+","//a[contains(@href,'megaload.it/')]");
  5210. addObsoleteHost("filewinds\\.com\/\\w+","//a[contains(@href,'filewinds.com/')]");
  5211. addObsoleteHost("uploadcore\\.com\/\\w+","//a[contains(@href,'uploadcore.com/')]");
  5212. addObsoleteHost("syfiles\\.com\/\\w+","//a[contains(@href,'syfiles.com/')]");
  5213. addObsoleteHost("eyesfile\\.com\/\\w+","//a[contains(@href,'eyesfile.com/')]");
  5214. addObsoleteHost("hotfile\\.com\/\\w+","//a[contains(@href,'hotfile.com/')]");
  5215. addObsoleteHost("superupl\\.com\/\\w+","//a[contains(@href,'superupl.com/')]");
  5216. addObsoleteHost("oteupload\\.com\/\\w+","//a[contains(@href,'oteupload.com/')]");
  5217. addObsoleteHost("henchfile\\.com\/\\w+","//a[contains(@href,'henchfile.com/')]");
  5218. addObsoleteHost("HenchFile\\.com\/\\w+","//a[contains(@href,'HenchFile.com/')]");
  5219. addObsoleteHost("filegag\\.com\/\\w+","//a[contains(@href,'filegag.com/')]");
  5220. addObsoleteHost("filedefend\\.com\/\\w+","//a[contains(@href,'filedefend.com/')]");
  5221. addObsoleteHost("hotfiles\\.ws\/\\w+","//a[contains(@href,'hotfiles.ws/')]");
  5222. addObsoleteHost("share-rapid\\.com\/\\w+","//a[contains(@href,'share-rapid.com/')]");
  5223. //addObsoleteHost("sharerapid\\.cz\/\\w+","//a[contains(@href,'sharerapid.cz/')]");
  5224. addObsoleteHost("rapids\\.cz\/\\w+","//a[contains(@href,'rapids.cz/')]");
  5225. addObsoleteHost("share-credit\\.cz\/\\w+","//a[contains(@href,'share-credit.cz/')]");
  5226. addObsoleteHost("share-central\\.cz\/\\w+","//a[contains(@href,'share-central.cz/')]");
  5227. addObsoleteHost("share-ms\\.cz\/\\w+","//a[contains(@href,'share-ms.cz/')]");
  5228. addObsoleteHost("share-net\\.cz\/\\w+","//a[contains(@href,'share-net.cz/')]");
  5229. addObsoleteHost("srapid\\.cz\/\\w+","//a[contains(@href,'srapid.cz/')]");
  5230. addObsoleteHost("share-rapid\\.cz\/\\w+","//a[contains(@href,'share-rapid.cz/')]");
  5231. addObsoleteHost("wooupload\\.com\/\\w+","//a[contains(@href,'wooupload.com/')]");
  5232. addObsoleteHost("megabitshare\\.com\/\\w+","//a[contains(@href,'megabitshare.com/')]");
  5233. addObsoleteHost("uploking\\.com\/\\w+","//a[contains(@href,'uploking.com/')]");
  5234. addObsoleteHost("esnips\\.com\/\\w+","//a[contains(@href,'esnips.com/')]");
  5235. addObsoleteHost("uplly\\.com\/\\w+","//a[contains(@href,'uplly.com/')]");
  5236. addObsoleteHost("ufox\\.com\/\\w+","//a[contains(@href,'ufox.com/')]");
  5237. addObsoleteHost("clz\\.to\/\\w+","//a[contains(@href,'clz.to/')]");
  5238. addObsoleteHost("cloudzer\\.net\/\\w+","//a[contains(@href,'cloudzer.net/')]");
  5239. addObsoleteHost("cloudzer\\.com\/\\w+","//a[contains(@href,'cloudzer.com/')]");
  5240. addObsoleteHost("extabit\\.com\/\\w+","//a[contains(@href,'extabit.com/')]");
  5241. addObsoleteHost("uploadwaste\\.com\/\\w+","//a[contains(@href,'uploadwaste.com/')]");
  5242. addObsoleteHost("247upload\\.com\/\\w+","//a[contains(@href,'uploadwaste.com/')]");
  5243. addObsoleteHost("2download\\.de\/\\w+","//a[contains(@href,'2download.de/')]");
  5244. addObsoleteHost("4fastfile\\.com\/\\w+","//a[contains(@href,'4fastfile.com/')]");
  5245. addObsoleteHost("asixfiles\\.com\/\\w+","//a[contains(@href,'asixfiles.com/')]");
  5246. addObsoleteHost("berofile\\.com\/\\w+","//a[contains(@href,'berofile.com/')]");
  5247. addObsoleteHost("bigupload\\.com\/\\w+","//a[contains(@href,'bigupload.com/')]");
  5248. addObsoleteHost("cepzo\\.com\/\\w+","//a[contains(@href,'cepzo.com/')]");
  5249. addObsoleteHost("czshare\\.com\/\\w+","//a[contains(@href,'czshare.com/')]");
  5250. addObsoleteHost("clouds\\.to\/\\w+","//a[contains(@href,'clouds.to/')]");
  5251. addObsoleteHost("cobrashare\\.sk\/\\w+","//a[contains(@href,'cobrashare.sk/')]");
  5252. addObsoleteHost("coraldrive\\.net\/\\w+","//a[contains(@href,'coraldrive.net/')]");
  5253. addObsoleteHost("cyberlocker\\.ch\/\\w+","//a[contains(@href,'cyberlocker.ch/')]");
  5254. addObsoleteHost("darkport\\.org\/\\w+","//a[contains(@href,'darkport.org/')]");
  5255. addObsoleteHost("dark-uploads\\.com\/\\w+","//a[contains(@href,'dark-uploads.com/')]");
  5256. addObsoleteHost("davvas\\.com\/\\w+","//a[contains(@href,'davvas.com/')]");
  5257. addObsoleteHost("enigmashare\\.com\/\\w+","//a[contains(@href,'enigmashare.com/')]");
  5258. addObsoleteHost("erofly\\.cz\/\\w+","//a[contains(@href,'erofly.cz/')]");
  5259. addObsoleteHost("fastsonic\\.net\/\\w+","//a[contains(@href,'fastsonic.net/')]");
  5260. addObsoleteHost("filebox\\.com\/\\w+","//a[contains(@href,'filebox.com/')]");
  5261. addObsoleteHost("filecity\\.net\/\\w+","//a[contains(@href,'filecity.net/')]");
  5262. addObsoleteHost("filedap\\.com\/\\w+","//a[contains(@href,'filedap.com/')]");
  5263. addObsoleteHost("filedino\\.com\/\\w+","//a[contains(@href,'filedino.com/')]");
  5264. addObsoleteHost("filedownloads\\.org\/\\w+","//a[contains(@href,'filedownloads.org/')]");
  5265. addObsoleteHost("filefolks\\.com\/\\w+","//a[contains(@href,'filefolks.com/')]");
  5266. addObsoleteHost("fileking\\.co\/\\w+","//a[contains(@href,'fileking.co/')]");
  5267. addObsoleteHost("filemates\\.com\/\\w+","//a[contains(@href,'filemates.com/')]");
  5268. addObsoleteHost("files\\.to\/\\w+","//a[contains(@href,'files.to/')]");
  5269. addObsoleteHost("files2k\\.eu\/\\w+","//a[contains(@href,'files2k.eu/')]");
  5270. addObsoleteHost("filesector\\.cc\/\\w+","//a[contains(@href,'filesector.cc/')]");
  5271. addObsoleteHost("filesega\\.com\/\\w+","//a[contains(@href,'filesega.com/')]");
  5272. addObsoleteHost("filesend\\.net\/\\w+","//a[contains(@href,'filesend.net/')]");
  5273. addObsoleteHost("filestay\\.com\/\\w+","//a[contains(@href,'filestay.com/')]");
  5274. addObsoleteHost("filestrum\\.com\/\\w+","//a[contains(@href,'filestrum.com/')]");
  5275. addObsoleteHost("fileuplo\\.de\/\\w+","//a[contains(@href,'fileuplo.de/')]");
  5276. addObsoleteHost("fileupup\\.com\/\\w+","//a[contains(@href,'fileupup.com/')]");
  5277. addObsoleteHost("forunesia\\.com\/\\w+","//a[contains(@href,'forunesia.com/')]");
  5278. addObsoleteHost("freeuploads\\.fr\/\\w+","//a[contains(@href,'freeuploads.fr/')]");
  5279. addObsoleteHost("uploa\\.dk\/\\w+","//a[contains(@href,'uploa.dk/')]");
  5280. addObsoleteHost("getthebit\\.com\/\\w+","//a[contains(@href,'getthebit.com/')]");
  5281. addObsoleteHost("getzilla\\.net\/\\w+","//a[contains(@href,'getzilla.net/')]");
  5282. addObsoleteHost("goldfile\\.eu\/\\w+","//a[contains(@href,'goldfile.eu/')]");
  5283. addObsoleteHost("good\\.com\/\\w+","//a[contains(@href,'good.com/')]");
  5284. addObsoleteHost("grupload\\.com\/\\w+","//a[contains(@href,'grupload.com/')]");
  5285. addObsoleteHost("hellfile\\.com\/\\w+","//a[contains(@href,'hellfile.com/')]");
  5286. addObsoleteHost("hipfile\\.com\/\\w+","//a[contains(@href,'hipfile.com/')]");
  5287. addObsoleteHost("hitfile\\.com\/\\w+","//a[contains(@href,'hitfile.com/')]");
  5288. addObsoleteHost("hulkfile\\.eu\/\\w+","//a[contains(@href,'hulkfile.eu/')]");
  5289. addObsoleteHost("i-filez\\.com\/\\w+","//a[contains(@href,'i-filez.com/')]");
  5290. addObsoleteHost("ifile\\.ws\/\\w+","//a[contains(@href,'ifile.ws/')]");
  5291. addObsoleteHost("kupload\\.org\/\\w+","//a[contains(@href,'kupload.org/')]");
  5292. addObsoleteHost("duckfile\\.net\/\\w+","//a[contains(@href,'duckfile.net/')]");
  5293. addObsoleteHost("packupload\\.com\/\\w+","//a[contains(@href,'packupload.com/')]");
  5294. addObsoleteHost("terafile\\.com\/\\w+","//a[contains(@href,'terafile.com/')]");
  5295. addObsoleteHost("terafile\\.co\/\\w+","//a[contains(@href,'terafile.co/')]");
  5296. addObsoleteHost("fileom\\.com\/\\w+","//a[contains(@href,'fileom.com/')]");
  5297. addObsoleteHost("luckyshare\\.net\/\\w+","//a[contains(@href,'luckyshare.net/')]");
  5298. addObsoleteHost("lemuploads\\.com\/\\w+","//a[contains(@href,'lemuploads.com/')]");
  5299. addObsoleteHost("limelinx\\.com\/\\w+","//a[contains(@href,'limelinx.com/')]");
  5300. addObsoleteHost("maxshare\\.pl\/\\w+","//a[contains(@href,'maxshare.pl/')]");
  5301. addObsoleteHost("megarelease\\.org\/\\w+","//a[contains(@href,'megarelease.org/')]");
  5302. addObsoleteHost("megashare\\.com\/\\w+","//a[contains(@href,'megashare.com/')]");
  5303. addObsoleteHost("minus\\.com\/\\w+","//a[contains(@href,'minus.com/')]");
  5304. addObsoleteHost("mlfat4arab\\.com\/\\w+","//a[contains(@href,'mlfat4arab.com/')]");
  5305. addObsoleteHost("multishare\\.cz\/\\w+","//a[contains(@href,'multishare.cz/')]");
  5306. addObsoleteHost("nirafile\\.com\/\\w+","//a[contains(@href,'nirafile.com/')]");
  5307. addObsoleteHost("ok2upload\\.com\/\\w+","//a[contains(@href,'ok2upload.com/')]");
  5308. addObsoleteHost("peejeshare\\.com\/\\w+","//a[contains(@href,'peejeshare.com/')]");
  5309. addObsoleteHost("premiuns\\.org\/\\w+","//a[contains(@href,'premiuns.org/')]");
  5310. addObsoleteHost("przeklej\\.net\/\\w+","//a[contains(@href,'przeklej.net/')]");
  5311. addObsoleteHost("qkup\\.net\/\\w+","//a[contains(@href,'qkup.net/')]");
  5312. addObsoleteHost("rapidupload\\.sk\/\\w+","//a[contains(@href,'rapidupload.sk/')]");
  5313. addObsoleteHost("rockdizfile\\.com\/\\w+","//a[contains(@href,'rockdizfile.com/')]");
  5314. addObsoleteHost("rocketfile\\.net\/\\w+","//a[contains(@href,'rocketfile.net/')]");
  5315. addObsoleteHost("share-now\\.net\/\\w+","//a[contains(@href,'share-now.net/')]");
  5316. addObsoleteHost("share76\\.com\/\\w+","//a[contains(@href,'share76.com/')]");
  5317. addObsoleteHost("sharebees\\.com\/\\w+","//a[contains(@href,'sharebees.com/')]");
  5318. addObsoleteHost("sharefiles\\.co\/\\w+","//a[contains(@href,'sharefiles.co/')]");
  5319. addObsoleteHost("slingfile\\.com\/\\w+","//a[contains(@href,'slingfile.com/')]");
  5320. addObsoleteHost("sms4file\\.com\/\\w+","//a[contains(@href,'sms4file.com/')]");
  5321. addObsoleteHost("space4file\\.com\/\\w+","//a[contains(@href,'space4file.com/')]");
  5322. addObsoleteHost("tigershare\\.net\/\\w+","//a[contains(@href,'tigershare.net/')]");
  5323. addObsoleteHost("toucansharing\\.com\/\\w+","//a[contains(@href,'toucansharing.com/')]");
  5324. addObsoleteHost("ubuntuone\\.com\/\\w+","//a[contains(@href,'ubuntuone.com/')]");
  5325. addObsoleteHost("unextfiles\\.com\/\\w+","//a[contains(@href,'unextfiles.com/')]");
  5326. addObsoleteHost("upaj\\.pl\/\\w+","//a[contains(@href,'upaj.pl/')]");
  5327. addObsoleteHost("upfile\\.biz\/\\w+","//a[contains(@href,'upfile.biz/')]");
  5328. addObsoleteHost("uploadbin\\.net\/\\w+","//a[contains(@href,'uploadbin.net/')]");
  5329. addObsoleteHost("uploadic\\.com\/\\w+","//a[contains(@href,'uploadic.com/')]");
  5330. addObsoleteHost("uploadinc\\.com\/\\w+","//a[contains(@href,'uploadinc.com/')]");
  5331. addObsoleteHost("uploading4u\\.eu\/\\w+","//a[contains(@href,'uploading4u.eu/')]");
  5332. addObsoleteHost("uploadjet\\.net\/\\w+","//a[contains(@href,'uploadjet.net/')]");
  5333. addObsoleteHost("uploadorb\\.com\/\\w+","//a[contains(@href,'uploadorb.com/')]");
  5334. addObsoleteHost("upthe\\.net\/\\w+","//a[contains(@href,'upthe.net/')]");
  5335. addObsoleteHost("uptorch\\.com\/\\w+","//a[contains(@href,'uptorch.com/')]");
  5336. addObsoleteHost("vidbox\\.yt\/\\w+","//a[contains(@href,'vidbox.yt/')]");
  5337. addObsoleteHost("videozer\\.com\/\\w+","//a[contains(@href,'videozer.com/')]");
  5338. addObsoleteHost("vreer\\.com\/\\w+","//a[contains(@href,'vreer.com/')]");
  5339. addObsoleteHost("wallobit\\.com\/\\w+","//a[contains(@href,'wallobit.com/')]");
  5340. addObsoleteHost("zooupload\\.com\/\\w+","//a[contains(@href,'zooupload.com/')]");
  5341. addObsoleteHost("xerver\\.co\/\\w+","//a[contains(@href,'xerver.co/')]");
  5342. addObsoleteHost("privatefiles\\.com\/\\w+","//a[contains(@href,'privatefiles.com/')]");
  5343. addObsoleteHost("bitshare\\.com\/\\w+","//a[contains(@href,'bitshare.com/')]");
  5344. addObsoleteHost("asfile\\.com\/\\w+","//a[contains(@href,'asfile.com/')]");
  5345. addObsoleteHost("billionuploads\\.com\/\\w+","//a[contains(@href,'billionuploads.com/')]");
  5346. addObsoleteHost("\\*{7,100}\/[\\w\\d]+","//a[contains(@href,'*******/')]");
  5347. addObsoleteHost("filesaur\\.com\/\\w+","//a[contains(@href,'filesaur.com/')]");
  5348. addObsoleteHost("rapidshare\\.com\/\\w+","//a[contains(@href,'rapidshare.com/')]");
  5349. addObsoleteHost("rapidshare\\.ru\/\\w+","//a[contains(@href,'rapidshare.ru/')]");
  5350. addObsoleteHost("filesfrog\\.net\/\\w+","//a[contains(@href,'filesfrog.net/')]");
  5351. addObsoleteHost("4savefile\\.com\/\\w+","//a[contains(@href,'4savefile.com/')]");
  5352. addObsoleteHost("bayfiles\\.com\/\\w+","//a[contains(@href,'bayfiles.com/')]");
  5353. addObsoleteHost("bayfiles\\.net\/\\w+","//a[contains(@href,'bayfiles.net/')]");
  5354. addObsoleteHost("dodane\\.pl\/\\w+","//a[contains(@href,'dodane.pl/')]");
  5355. addObsoleteHost("dotsemper\\.com\/\\w+","//a[contains(@href,'dotsemper.com/')]");
  5356. addObsoleteHost("egofiles\\.com\/\\w+","//a[contains(@href,'egofiles.com/')]");
  5357. addObsoleteHost("epicshare\\.net\/\\w+","//a[contains(@href,'epicshare.net/')]");
  5358. addObsoleteHost("fiberupload\\.net\/\\w+","//a[contains(@href,'fiberupload.net/')]");
  5359. addObsoleteHost("filemonkey\\.in\/\\w+","//a[contains(@href,'filemonkey.in/')]");
  5360. addObsoleteHost("filemonster\\.net\/\\w+","//a[contains(@href,'filemonster.net/')]");
  5361. addObsoleteHost("filepom\\.com\/\\w+","//a[contains(@href,'filepom.com/')]");
  5362. addObsoleteHost("filesbb\\.com\/\\w+","//a[contains(@href,'filesbb.com/')]");
  5363. addObsoleteHost("fileshareup\\.com\/\\w+","//a[contains(@href,'fileshareup.com/')]");
  5364. addObsoleteHost("filevice\\.com\/\\w+","//a[contains(@href,'filevice.com/')]");
  5365. addObsoleteHost("gigaup\\.fr\/\\w+","//a[contains(@href,'gigaup.fr/')]");
  5366. addObsoleteHost("inafile\\.com\/\\w+","//a[contains(@href,'inafile.com/')]");
  5367. addObsoleteHost("isavelink\\.com\/\\w+","//a[contains(@href,'isavelink.com/')]");
  5368. addObsoleteHost("loombo\\.com\/\\w+","//a[contains(@href,'loombo.com/')]");
  5369. addObsoleteHost("megafiles\\.se\/\\w+","//a[contains(@href,'megafiles.se/')]");
  5370. addObsoleteHost("migupload\\.com\/\\w+","//a[contains(@href,'migupload.com/')]");
  5371. addObsoleteHost("mydisc\\.net\/\\w+","//a[contains(@href,'mydisc.net/')]");
  5372. addObsoleteHost("nitrobits\\.com\/\\w+","//a[contains(@href,'nitrobits.com/')]");
  5373. addObsoleteHost("potload\\.com\/\\w+","//a[contains(@href,'potload.com/')]");
  5374. addObsoleteHost("redload\\.net\/\\w+","//a[contains(@href,'redload.net/')]");
  5375. addObsoleteHost("shareprofi\\.com\/\\w+","//a[contains(@href,'shareprofi.com/')]");
  5376. addObsoleteHost("sharesuper\\.info\/\\w+","//a[contains(@href,'sharesuper.info/')]");
  5377. addObsoleteHost("sinhro\\.net\/\\w+","//a[contains(@href,'sinhro.net/')]");
  5378. addObsoleteHost("speedfile\\.cz\/\\w+","//a[contains(@href,'speedfile.cz/')]");
  5379. addObsoleteHost("speedshare\\.org\/\\w+","//a[contains(@href,'speedshare.org/')]");
  5380. addObsoleteHost("storage.novoro\\.net\/\\w+","//a[contains(@href,'storage.novoro.net/')]");
  5381. addObsoleteHost("swankshare\\.com\/\\w+","//a[contains(@href,'swankshare.com/')]");
  5382. addObsoleteHost("swatupload\\.com\/\\w+","//a[contains(@href,'swatupload.com/')]");
  5383. addObsoleteHost("upafile\\.com\/\\w+","//a[contains(@href,'upafile.com/')]");
  5384. addObsoleteHost("uploadmachine\\.com\/\\w+","//a[contains(@href,'uploadmachine.com/')]");
  5385. addObsoleteHost("uploadsat\\.com\/\\w+","//a[contains(@href,'uploadsat.com/')]");
  5386. addObsoleteHost("upshared\\.com\/\\w+","//a[contains(@href,'upshared.com/')]");
  5387. addObsoleteHost("usefile\\.com\/\\w+","//a[contains(@href,'usefile.com/')]");
  5388. addObsoleteHost("yourfiles\\.to\/\\w+","//a[contains(@href,'yourfiles.to/')]");
  5389. addObsoleteHost("zomgupload\\.com\/\\w+","//a[contains(@href,'zomgupload.com/')]");
  5390. addObsoleteHost("~[\\w\\s~]*","//a[contains(@href,'//~') or contains(@href,'//www.~')]");
  5391. addObsoleteHost("filemup\\.com\/\\w+","//a[contains(@href,'filemup.com/')]");
  5392. addObsoleteHost("tuxfile\\.com\/\\w+","//a[contains(@href,'tuxfile.com/')]");
  5393. addObsoleteHost("ultramegabit\\.com\/\\w+","//a[contains(@href,'ultramegabit.com/')]");
  5394. addObsoleteHost("uploadto\\.us\/\\w+","//a[contains(@href,'uploadto.us/')]");
  5395. addObsoleteHost("filecore\\.co\\.nz\/\\w+","//a[contains(@href,'filecore.co.nz/')]");
  5396. addObsoleteHost("fileshare\\.in\\.ua\/\\w+","//a[contains(@href,'fileshare.in.ua/')]");
  5397. addObsoleteHost("firedrive\\.com\/\\w+","//a[contains(@href,'firedrive.com/')]");
  5398. addObsoleteHost("putlocker\\.com\/\\w+","//a[contains(@href,'putlocker.com/')]");
  5399. // obsolete start
  5400. }
  5401. //obsolete file hosts init end
  5402.  
  5403. function addFileHost(linkRegex, isAliveRegex, isDeadRegex, isUnavaRegex, xpathEx, tryLoop, ispremRegex)
  5404. {
  5405. var host = new Array(7);
  5406. host[0] = linkRegex;
  5407. host[1] = isAliveRegex;
  5408. host[2] = isDeadRegex;
  5409. host[3] = isUnavaRegex;
  5410. host[6] = ispremRegex;
  5411. host[4] = xpathEx;
  5412. tryLoop ? host[5] = true : host[5] = false;
  5413. http_file_hosts.push(host);
  5414. }
  5415. if (GM_getValue("Check_megafileupload_dot_com_links", false))
  5416. {
  5417. addFileHost(
  5418. "megafileupload\.com\/..\/file\/",
  5419. 'downloadbtn',
  5420. 'is not found',
  5421. 'optional--',
  5422. "//a[contains(@href,'megafileupload.com')]");
  5423. }
  5424. if (GM_getValue("Check_demo_dot_ovh_dot_eu_links", false))
  5425. {
  5426. addFileHost(
  5427. "demo\\.ovh\\.eu\/\\w+\/\\w+",
  5428. 'download\\.gif"',
  5429. 'p_point">',
  5430. 'optional--',
  5431. "//a[contains(@href,'demo.ovh.eu')]");
  5432. }
  5433. if (GM_getValue("Check_safelinking_dot_net_links", false))
  5434. {
  5435. addFileHost(
  5436. "safelinking\\.net\/p\/\\w+",
  5437. 'color:green;"',
  5438. 'color:(?:red|orange);"',
  5439. 'color:(?:grey|brown);"',
  5440. "//a[contains(@href,'safelinking.net/p/')]",
  5441. true);
  5442. }
  5443. /* if (GM_getValue("Check_ultramegabit_dot_com_links", false))
  5444. {
  5445. addFileHost(
  5446. "ultramegabit\\.com\/file\/details\/[\\w+-]",
  5447. 'name="recaptcha_response',
  5448. '="/folder/add"|>File (?:not found|restricted|has been deleted)|<title>ULTRAMEGABIT</title>',
  5449. 'btn-large btn-danger">|Account limitation notice|502 Bad Gateway',
  5450. "//a[contains(@href,'ultramegabit.com/file')]",
  5451. true);
  5452. } */
  5453. if (GM_getValue("Check_fastshare_dot_cz_links", false))
  5454. {
  5455. addFileHost(
  5456. "fastshare\\.cz\/\\d+\/\\w*",
  5457. 'dwntable">',
  5458. 'nebyla nalezena|nebola nájdená|nie została odnaleziona|color:red;font-weight:bold;border\\-style:dashed|<i class="fa fa-copyright"></i>',
  5459. 'optional--',
  5460. "//a[contains(@href,'fastshare.cz')]");
  5461. }
  5462. if (GM_getValue("Check_fastshare_dot_org_links", false))
  5463. {
  5464. addFileHost(
  5465. "[fF]ast[sS]hare\\.org\/download",
  5466. 'Download ">',
  5467. 'Diese Datei wurde wegen|wurde kein Dateiname',
  5468. 'optional--',
  5469. "//a[contains(@href,'fastshare.org/download') or contains(@href,'FastShare.org/download')]");
  5470. }
  5471. if (GM_getValue("Check_partage_dash_facile_dot_com_links", false))
  5472. {
  5473. addFileHost(
  5474. "partage-facile\.com\/\\w+",
  5475. 'class="title"><strong>|colspan="2"',
  5476. 'Page introuvable|class="alert-message',
  5477. 'optional--',
  5478. "//a[contains(@href,'partage-facile.com')]");
  5479. }
  5480. if (GM_getValue("Check_rapidgator_dot_net_links", false))
  5481. {
  5482. addFileHost(
  5483. "rapidgator\\.net\/file\/\\w+",
  5484. '/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',
  5485. 'Error 404|File not found|Error 500|Файл не найден|File not found|Select your plan',
  5486. 'optional--',
  5487. "//a[contains(@href,'rapidgator.net/file')]",
  5488. true
  5489. );
  5490. }
  5491. if (GM_getValue("Check_relink_dot_us_links", false))
  5492. {
  5493. addFileHost(
  5494. "relink\\.us\/(?:f\/\\w+|go\\.php\\?id=\\d+|view\\.php\\?id=\\d+)",
  5495. 'online_detail\\.png" alt="Status',
  5496. '(?:offline|partially)_detail\\.png" alt="Status|File deleted',
  5497. 'unknown_detail\\.png" alt="Status',
  5498. "//a[contains(@href,'relink.us/')]"
  5499. );
  5500. }
  5501. if (GM_getValue("Check_uploadstube_dot_de_links", false))
  5502. {
  5503. addFileHost(
  5504. "uploadstube\\.de\/download\\.php\\?file=\\d+",
  5505. 'div id="dl"',
  5506. 'Sie haben den Link falsch',
  5507. 'optional--',
  5508. "//a[contains(@href,'uploadstube.de/download.php?file=')]"
  5509. );
  5510. }
  5511. if (GM_getValue("Check_flyfiles_dot_net_links", false))
  5512. {
  5513. addFileHost(
  5514. "flyfiles\\.net\/\\w+",
  5515. 'download_button"|"Download file"',
  5516. 'File not found!|Файл не найден',
  5517. 'optional--',
  5518. "//a[contains(@href,'flyfiles.net/')]"
  5519. );
  5520. }
  5521. if (GM_getValue("Check_wikiupload_dot_com_links", false))
  5522. {
  5523. addFileHost(
  5524. "wikiupload\\.com\/\\w+",
  5525. 'download-button">',
  5526. 'Sorry, File not found',
  5527. 'optional--',
  5528. "//a[contains(@href,'wikiupload.com/')]"
  5529. );
  5530. }
  5531. if (GM_getValue("Check_hostuje_dot_net_links", false))
  5532. {
  5533. addFileHost(
  5534. "hostuje\\.net\/file\\.php\\?id=\\w+",
  5535. 'file\\.php">|Pobierz Plik',
  5536. 'Podany plik nie zosta',
  5537. 'optional--',
  5538. "//a[contains(@href,'hostuje.net/file')]"
  5539. );
  5540. }
  5541. if (GM_getValue("Check_gettyfile_dot_ru_links", false))
  5542. {
  5543. addFileHost(
  5544. "gettyfile\\.ru\/\\d+",
  5545. 'download\\.gif border',
  5546. '<center><font size="3">',
  5547. 'optional--',
  5548. "//a[contains(@href,'gettyfile.ru/')]"
  5549. );
  5550. }
  5551. if (GM_getValue("Check_tufiles_dot_ru_links", false))
  5552. {
  5553. addFileHost(
  5554. "(?:tufiles|turbob1t|failoobmenik|filesmail|firebit|dlbit|files\\.china\\-gsm|3aka4aem|file\\.piratski|mnogofiles|links-free|turbo-bit|turbosfiles)\\.\\w+\/\\w+",
  5555. 'download\\-file">',
  5556. 'col-1">\\s*<h1>',
  5557. 'optional--',
  5558. "//a[contains(@href,'tufiles.ru/') or contains(@href,'turbob1t.ru/') or contains(@href,'filesmail.ru/') or contains(@href,'failoobmenik.ru/')"+
  5559. " or contains(@href,'firebit.in/') or contains(@href,'dlbit.net/') or contains(@href,'files.china-gsm.ru/') or contains(@href,'3aka4aem.ru/')"+
  5560. " or contains(@href,'file.piratski.ru/') or contains(@href,'mnogofiles.com/') or contains(@href,'links-free.ru/')"+
  5561. " or contains(@href,'turbo-bit.ru/') or contains(@href,'turbosfiles.ru/')]"
  5562. );
  5563. }
  5564. if (GM_getValue("Check_data_dot_hu_links", false))
  5565. {
  5566. addFileHost(
  5567. "data\\.hu\/get\/\\d+\/",
  5568. 'download_box_button',
  5569. 'missing\\.php',
  5570. 'optional--',
  5571. "//a[contains(@href,'data.hu/get')]",
  5572. true
  5573. );
  5574. }
  5575. if (GM_getValue("Check_filesmelt_dot_com_links", false))
  5576. {
  5577. addFileHost(
  5578. "filesmelt\\.com\/dl\/\\w+",
  5579. '(Your download is ready|Download File)',
  5580. 'Sorry, but your',
  5581. 'optional--',
  5582. "//a[contains(@href,'filesmelt.com/dl')]"
  5583. );
  5584. }
  5585. if (GM_getValue("Check_indowebster_dot_com_links", false))
  5586. {
  5587. addFileHost(
  5588. "(?:files\\.)?indowebster\\.com\/download\/\\w+\/",
  5589. 'premiumBtn"',
  5590. 'errorMessage"',
  5591. 'optional--',
  5592. "//a[contains(@href,'indowebster.com/download')]"
  5593. );
  5594. }
  5595. if (GM_getValue("Check_superload_dot_cz_links", false))
  5596. {
  5597. addFileHost(
  5598. "superload\\.cz\/dl\/\\w+",
  5599. 'icon-download">',
  5600. 'soubor nebyl nalezen',
  5601. 'optional--',
  5602. "//a[contains(@href,'superload.cz/dl')]"
  5603. );
  5604. }
  5605. if (GM_getValue("Check_hulkfile_dot_eu_links", false))
  5606. {
  5607. addFileHost(
  5608. "(?:w\\.hulkfile\\.com|hulkfile\\.eu)\/\\w+",
  5609. 'op" value="download',
  5610. 'class="err">|width:500px;text-align:left;">',
  5611. 'optional--',
  5612. "//a[contains(@href,'hulkfile.')]"
  5613. );
  5614. }
  5615. if (GM_getValue("Check_easybytez_dot_com_links", false))
  5616. {
  5617. addFileHost(
  5618. "easybytez\\.com\/\\w+",
  5619. 'op" value="download',
  5620. 'stop_error\\.gif',
  5621. 'optional--',
  5622. "//a[contains(@href,'easybytez.com/')]"
  5623. );
  5624. }
  5625. if (GM_getValue("Check_filestore_dot_com_dot_ua_links", false))
  5626. {
  5627. addFileHost(
  5628. "filestore\\.com\\.ua\/\\?d=\\w+",
  5629. 'tdrow1>',
  5630. 'class=warn',
  5631. 'optional--',
  5632. "//a[contains(@href,'filestore.com.ua/?d=')]"
  5633. );
  5634. }
  5635. if (GM_getValue("Check_netkups_dot_com_links", false))
  5636. {
  5637. addFileHost(
  5638. "netkups\\.com\/\\?d=\\w+",
  5639. 'submit">Continue',
  5640. 'page">File not found|deleted due to inactivity',
  5641. 'optional--',
  5642. "//a[contains(@href,'netkups.com/?d=')]"
  5643. );
  5644. }
  5645. if (GM_getValue("Check_openfile_dot_ru_links", false))
  5646. {
  5647. addFileHost(
  5648. "openfile\\.ru\/(?:video\/|)\\d+",
  5649. 'videobox_left">',
  5650. 'blog_title">|not found on this server',
  5651. 'optional--',
  5652. "//a[contains(@href,'openfile.ru/')]"
  5653. );
  5654. }
  5655. if (GM_getValue("Check_extmatrix_dot_com_links", false))
  5656. {
  5657. addFileHost(
  5658. "extmatrix\\.com\/files\/\\w+",
  5659. 'div class="success"',
  5660. 'div class="error"',
  5661. 'optional--',
  5662. "//a[contains(@href,'extmatrix.com/files')]"
  5663. );
  5664. }
  5665. if (GM_getValue("Check_sendfiles_dot_nl_links", false))
  5666. {
  5667. addFileHost(
  5668. "sendfiles\\.nl\/download.aspx\\?ID=\\w+",
  5669. 'content_lnkDownload',
  5670. 'error\\.aspx\\?',
  5671. 'optional--',
  5672. "//a[contains(@href,'sendfiles.nl/download.aspx')]"
  5673. );
  5674. }
  5675. if (GM_getValue("Check_sockshare_dot_com_links", false))
  5676. {
  5677. addFileHost(
  5678. "sockshare\\.com\/file\/\\w+",
  5679. 'choose_speed">',
  5680. 'message t_0\'>',
  5681. 'optional--',
  5682. "//a[contains(@href,'sockshare.com/file')]"
  5683. );
  5684. }
  5685. if (GM_getValue("Check_yourfilestore_dot_com_links", false))
  5686. {
  5687. addFileHost(
  5688. "yourfilestore\\.com\/download\/\\d+\/",
  5689. 'download_data">',
  5690. 'may have been deleted|<h1>Sorry!<\/h1>',
  5691. 'optional--',
  5692. "//a[contains(@href,'yourfilestore.com/download')]"
  5693. );
  5694. }
  5695. if (GM_getValue("Check_nekaka_dot_com_links", false))
  5696. {
  5697. addFileHost(
  5698. "nekaka\\.com\/d\/[\\w-]+",
  5699. 'downloadForm">',
  5700. 'invalid file link',
  5701. 'optional--',
  5702. "//a[contains(@href,'nekaka.com/d')]"
  5703. );
  5704. }
  5705. if (GM_getValue("Check_filebig_dot_net_links", false))
  5706. {
  5707. addFileHost(
  5708. "filebig\\.net\/files\/\\w+",
  5709. 'downloadFile">',
  5710. '<p>File not found<\/p>',
  5711. 'optional--',
  5712. "//a[contains(@href,'filebig.net/files')]"
  5713. );
  5714. }
  5715. if (GM_getValue("Check_gamefront_dot_com_links", false))
  5716. {
  5717. addFileHost(
  5718. "files\\.filefront\\.com\/\/;\\d+;;",
  5719. 'downloadLink">',
  5720. 'File not found, you',
  5721. 'optional--',
  5722. "//a[contains(@href,'files.filefront.com')]"
  5723. );
  5724.  
  5725. addFileHost(
  5726. "gamefront\\.com\/files\/\\d+",
  5727. 'downloadLink">',
  5728. 'File not found, you',
  5729. 'optional--',
  5730. "//a[contains(@href,'gamefront.com/files')]"
  5731. );
  5732. }
  5733. if (GM_getValue("Check_hyperfileshare_dot_com_links", false))
  5734. {
  5735. addFileHost(
  5736. "(?:download\\.|)hyperfileshare\\.com\/(?:download\\.php\\?code=|d\/)\\w+",
  5737. 'dnlLnk"',
  5738. 'already been deleted',
  5739. 'optional--',
  5740. "//a[contains(@href,'hyperfileshare.com/download') or contains(@href,'hyperfileshare.com/d')]"
  5741. );
  5742. }
  5743. if (GM_getValue("Check_hellupload_dot_com_links", false))
  5744. {
  5745. addFileHost(
  5746. "hellupload\\.com\/\\w+",
  5747. '<h3>Download File<br',
  5748. 'id="podstrona">|AVOID_IE_BUG',
  5749. 'optional--',
  5750. "//a[contains(@href,'hellupload.com/')]"
  5751. );
  5752. }
  5753. if (GM_getValue("Check_free_dash_uploading_dot_com_links", false))
  5754. {
  5755. addFileHost(
  5756. "free\\-uploading\\.com\/\\w+",
  5757. 'op" value="download',
  5758. 'class="err">|width:500px;text-align:left;">',
  5759. 'optional--',
  5760. "//a[contains(@href,'free-uploading.com/')]"
  5761. );
  5762. }
  5763. if (GM_getValue("Check_fileape_dot_com_links", false))
  5764. {
  5765. addFileHost(
  5766. "fileape\\.com\/download\\-",
  5767. 'button_dl\\.png',
  5768. 'does not exist\\.',
  5769. 'optional--',
  5770. "//a[contains(@href,'fileape.com/')]"
  5771. );
  5772. }
  5773. if (GM_getValue("Check_uppit_dot_com_links", false))
  5774. {
  5775. addFileHost(
  5776. "(?:uppit\\.com|up\\.ht)\/\\w+",
  5777. 'op" value="download',
  5778. 'class="err">|style="width:500px;text-align:left;"|fish-404\\.png"',
  5779. 'optional--',
  5780. "//a[contains(@href,'up.ht/') or contains(@href,'uppit.com/')]",
  5781. true
  5782. );
  5783. }
  5784. if (GM_getValue("Check_nosupload_dot_com_links", false))
  5785. {
  5786. addFileHost(
  5787. "nosupload\\.com\/(?:\\?d=)?\\w+",
  5788. 'op" value="download',
  5789. '>File Not Found<',
  5790. 'optional--',
  5791. "//a[contains(@href,'nosupload.com')]",
  5792. true
  5793. );
  5794. }
  5795. if (GM_getValue("Check_filesin_dot_com_links", false))
  5796. {
  5797. addFileHost(
  5798. "filesin\\.com\/\\w+\/download\\.html",
  5799. 'download_area">',
  5800. 'error_note">',
  5801. 'optional--',
  5802. "//a[contains(@href,'filesin.com/')]",
  5803. true
  5804. );
  5805. }
  5806. if (GM_getValue("Check_nowdownload_dot_eu_links", false))
  5807. {
  5808. addFileHost(
  5809. "nowdownload\\.eu\/dl\/\\w+",
  5810. 'alert-success"',
  5811. 'This file does not exist!',
  5812. 'The file is being transfered',
  5813. "//a[contains(@href,'nowdownload.eu/dl')]"
  5814. );
  5815. }
  5816. if (GM_getValue("Check_axifile_dot_com_links", false))
  5817. {
  5818. addFileHost(
  5819. "axifile\\.com(?:\/\w(2))?\/\\??\\w+",
  5820. 'Dbutton_big"',
  5821. 'download\\-error\\.php',
  5822. 'optional--',
  5823. "//a[contains(@href,'axifile.com/')]"
  5824. );
  5825. }
  5826. if (GM_getValue("Check_hulkshare_dot_com_links", false))
  5827. {
  5828. addFileHost(
  5829. "hulkshare\.com\/\\w+",
  5830. 'download\.sam\.png|This is a private file|id="filename',
  5831. 'File does not exist|fingerprint protected copyright',
  5832. 'optional--',
  5833. "//a[contains(@href,'hulkshare.com')]"
  5834. );
  5835. }
  5836. if (GM_getValue("Check_turbobit_dot_net_links", false)) //folders
  5837. {
  5838. addFileHost(
  5839. "turbobit\\.(?:net|pl)\/download\/folder\/\\d+",
  5840. 'col-1">\\s*<s',
  5841. 'col-1">\\s*<h',
  5842. 'optional--',
  5843. "//a[contains(@href,'turbobit.') and contains(@href,'download/folder')]"
  5844. );
  5845. }
  5846. if (GM_getValue("Check_hitfile_dot_net_links", false)) //folders
  5847. {
  5848. addFileHost(
  5849. "hitfile\\.net\/download\/folder\/\\d+",
  5850. 'content">\\s*<s',
  5851. 'content">\\s*<h',
  5852. 'optional--',
  5853. "//a[contains(@href,'hitfile.net/download/folder')]"
  5854. );
  5855. }
  5856. if (GM_getValue("Check_netload_dot_in_links", false)) //folders
  5857. {
  5858. addFileHost(
  5859. "netload\\.in\/folder\\.php\\?folder_id=\\w+",
  5860. 'images\/online\\.gif',
  5861. 'InPage_Error"',
  5862. 'optional--',
  5863. "//a[contains(@href,'netload.in/folder.php')]"
  5864. );
  5865. }
  5866. if (GM_getValue("Check_movshare_dot_net_links", false))
  5867. {
  5868. addFileHost(
  5869. "movshare\\.net\\/video\\/\\w+",
  5870. 'optional--"',
  5871. 'no longer exists',
  5872. 'optional--',
  5873. "//a[contains(@href,'movshare.net/video')]"
  5874. );
  5875. }
  5876. if (GM_getValue("Check_plunder_dot_com_links", false))
  5877. {
  5878. addFileHost(
  5879. "plunder\.com\/\\w+",
  5880. 'x\/download\\.gif',
  5881. '404 - File or directory not found.',
  5882. 'optional--',
  5883. "//a[contains(@href,'plunder.com')]"
  5884. );
  5885. }
  5886. if (GM_getValue("Check_mafiastorage_dot_com_links", false))
  5887. {
  5888. addFileHost(
  5889. "mafiastorage\\.com\/\\w+",
  5890. 'op" value="download',
  5891. 'class="err">|style="width:500px;text-align:left;"',
  5892. 'optional--',
  5893. "//a[contains(@href,'mafiastorage.com/')]"
  5894. );
  5895. }
  5896. if (GM_getValue("Check_uploadspace_dot_pl_links", false))
  5897. {
  5898. addFileHost(
  5899. "uploadspace\.pl\/plik\\w+",
  5900. 'Downloading .+? \\|',
  5901. 'Downloading a file',
  5902. 'optional--',
  5903. "//a[contains(@href,'uploadspace.pl/plik')]"
  5904. );
  5905. }
  5906. if (GM_getValue("Check_uploadingit_dot_com_links", false))
  5907. {
  5908. addFileHost(
  5909. "uploadingit\\.com\/file\/\\w+",
  5910. 'downloadTitle">',
  5911. 'deleteContent">',
  5912. 'optional--',
  5913. "//a[contains(@href,'uploadingit.com/file')]"
  5914. );
  5915. }
  5916. if (GM_getValue("Check_rghost_dot_net_links", false))
  5917. {
  5918. addFileHost(
  5919. "rghost\.(?:net|ru)\/(?:|private\/)\\d+",
  5920. 'download_link|btn large download"',
  5921. 'file is restricted|File is deleted|503 Service Unavailable',
  5922. 'File was deleted',
  5923. "//a[contains(@href,'rghost.')]"
  5924. );
  5925. }
  5926. if (GM_getValue("Check_xdisk_dot_cz_links", false))
  5927. {
  5928. addFileHost(
  5929. "xdisk\\.cz\/(?:..\/)?download\\.php\\?id=\\w+",
  5930. '">Staženo:\\s*<\/span>',
  5931. 'Soubor, který hledáte nenalezen',
  5932. 'optional--',
  5933. "//a[contains(@href,'xdisk.cz/')]"
  5934. );
  5935. }
  5936. if (GM_getValue("Check_expressleech_dot_com_links", false))
  5937. {
  5938. addFileHost(
  5939. "expressleech\.com\/\\w+",
  5940. 'src="/img/Download.gif"|var _gaq =',
  5941. 'var rr =|403 Forbidden',
  5942. 'optional--',
  5943. "//a[contains(@href,'expressleech.com')]");
  5944. }
  5945. if (GM_getValue("Check_2downloadz_dot_com_links", false))
  5946. {
  5947. addFileHost(
  5948. "2downloadz\.com\/\\w+",
  5949. 'color="#848484|src="images/Download.png"|color:#238DCA',
  5950. 'color="#006DCC|File error',
  5951. 'optional--',
  5952. "//a[contains(@href,'2downloadz.com')]");
  5953. }
  5954. if (GM_getValue("Check_mightyupload_dot_com_links", false))
  5955. {
  5956. addFileHost(
  5957. "mightyupload\.com\/\\w+",
  5958. 'background:#ccc;text-align|CONTENT="Download File"',
  5959. 'style="background:#eee|var rr =|File Not Found',
  5960. 'optional--',
  5961. "//a[contains(@href,'mightyupload.com')]");
  5962. }
  5963. if (GM_getValue("Check_uncapped_dash_downloads_dot_com_links", false))
  5964. {
  5965. addFileHost(
  5966. "uncapped-downloads\.com\/\\w+",
  5967. 'btn_download',
  5968. 'File Not Found',
  5969. 'optional--',
  5970. "//a[contains(@href,'uncapped-downloads.com')]");
  5971. }
  5972. if (GM_getValue("Check_k2s_dot_cc_links", false))
  5973. {
  5974. addFileHost(
  5975. "k2s\.cc\/file\/\\w+",
  5976. 'Click here for slow download with|class="btn" id="yw0"|onclick="download',
  5977. 'Error 404|class="errorSummary">|this file is blocked or deleted|>404 Not Found<|To avoid damaged files|This file is no longer available',
  5978. 'please try later',
  5979. //'optional--',
  5980. "//a[contains(@href,'k2s.cc')]");
  5981. }
  5982. if (GM_getValue("Check_keep2share_dot_cc_links", false))
  5983. {
  5984. addFileHost(
  5985. "keep2share\.cc\/file\/\\w+",
  5986. 'Click here for slow download with|class="btn" id="yw0"|onclick="download',
  5987. 'Error 404|class="errorSummary">|this file is blocked or deleted|>404 Not Found<|To avoid damaged files|This file is no longer available',
  5988. 'please try later',
  5989. //'optional--',
  5990. "//a[contains(@href,'keep2share.cc')]");
  5991. }
  5992. if (GM_getValue("Check_keep2s_dot_cc_links", false))
  5993. {
  5994. addFileHost(
  5995. "keep2s\.cc\/file\/\\w+",
  5996. 'Click here for slow download with|class="btn" id="yw0"|onclick="download',
  5997. 'Error 404|class="errorSummary">|this file is blocked or deleted|>404 Not Found<|To avoid damaged files|This file is no longer available',
  5998. 'please try later',
  5999. //'optional--',
  6000. "//a[contains(@href,'keep2s.cc')]");
  6001. }
  6002. if (GM_getValue("Check_keep2share_dot_com_links", false))
  6003. {
  6004. addFileHost(
  6005. "keep2share\.com\/file\/\\w+",
  6006. 'Click here for slow download with|class="btn" id="yw0"|onclick="download',
  6007. 'Error 404|class="errorSummary">|this file is blocked or deleted|>404 Not Found<|To avoid damaged files|This file is no longer available',
  6008. 'please try later',
  6009. //'optional--',
  6010. "//a[contains(@href,'keep2share.com')]");
  6011. }
  6012. if (GM_getValue("Check_anysend_dot_com_links", false))
  6013. {
  6014. addFileHost(
  6015. "anysend\.com\/\\w+",
  6016. 'var openCalled=false;|content="noindex"',
  6017. '_trackPageview',
  6018. 'optional--',
  6019. "//a[contains(@href,'anysend.com')]");
  6020. }
  6021. if (GM_getValue("Check_datafile_dot_com_links", false))
  6022. {
  6023. addFileHost(
  6024. "datafile\.com\/\\w+",
  6025. 'src="/js/files_download.js"|get-premium-button',
  6026. 'ErrorCode|class="error-msg"|ErrorCode 0: Invalid Link',
  6027. 'You are downloading another file at this moment|You exceeded your free',
  6028. //'optional--',
  6029. "//a[contains(@href,'datafile.com')]");
  6030. }
  6031. if (GM_getValue("Check_upstore_dot_net_links", false))
  6032. {
  6033. addFileHost(
  6034. "upstore\.net\/\\w+",
  6035. 'style="margin-top: 20px">|style="text-align:center; margin: 20px 0 100px;">',
  6036. 'File not found|onload="redirect|class="error">',
  6037. 'optional--',
  6038. "//a[contains(@href,'upstore.net')]");
  6039. }
  6040. if (GM_getValue("Check_upsto_dot_re_links", false))
  6041. {
  6042. addFileHost(
  6043. "upsto\.re\/\\w+",
  6044. 'style="margin-top: 20px">|style="text-align:center; margin: 20px 0 100px;">',
  6045. 'File not found|onload="redirect|class="error">',
  6046. 'optional--',
  6047. "//a[contains(@href,'upsto.re')]");
  6048. }
  6049. if (GM_getValue("Check_speedy_dot_sh_links", false))
  6050. {
  6051. addFileHost(
  6052. "speedy\.sh\/\\w+",
  6053. 'bgcolor=#eeeeee|class="addthis',
  6054. 'File not found|downloadfilenamenotfound>',
  6055. 'optional--',
  6056. "//a[contains(@href,'speedy.sh')]");
  6057. }
  6058. if (GM_getValue("Check_sanshare_dot_com_links", false))
  6059. {
  6060. addFileHost(
  6061. "sanshare\.com\/\\w+",
  6062. 'SANSHARE_TOPBANNER|offset-1"><h3><b>Download File',
  6063. 'offset-1"><b>File Not Found<|width:500px;text-align',
  6064. 'optional--',
  6065. "//a[contains(@href,'sanshare.com')]");
  6066. }
  6067. if (GM_getValue("Check_dizzcloud_dot_com_links", false))
  6068. {
  6069. addFileHost(
  6070. "dizzcloud\.com\/\\w+",
  6071. '2299210355.png"|class="name"',
  6072. 'span>404|class="cyan upgrade"',
  6073. 'optional--',
  6074. "//a[contains(@href,'dizzcloud.com')]");
  6075. }
  6076. if (GM_getValue("Check_kingfiles_dot_net_links", false))
  6077. {
  6078. addFileHost(
  6079. "kingfiles\.net\/\\w+",
  6080. 'img/spriteBanner.png|If you are the owner of this file',
  6081. 'var rr =|"description" CONTENT="Download File ">|<div style="width:500px;text-align:left;">|The file was removed by administrator',
  6082. 'optional--',
  6083. "//a[contains(@href,'kingfiles.net')]");
  6084. }
  6085. if (GM_getValue("Check_uploadhero_dot_co_links", false))
  6086. {
  6087. addFileHost(
  6088. "uploadhero\\.co\/dl\/\\w+",
  6089. 'class="nom_de_fichier"|Unlimited downloads|Estimated download time|Lien de téléchargement"',
  6090. 'not available on our server|pas disponible sur nos serveurs|Le lien du fichier est incorrect',
  6091. 'optional--',
  6092. "//a[contains(@href,'uploadhero.co/dl')]"
  6093. );
  6094. }
  6095. if (GM_getValue("Check_secureupload_dot_eu_links", false))
  6096. {
  6097. addFileHost(
  6098. "secureupload\\.eu\/\\w+",
  6099. 'Downloading',
  6100. 'cannot be found|File Not Found|could not be found',
  6101. 'optional--',
  6102. "//a[contains(@href,'secureupload.eu')]"
  6103. );
  6104. }
  6105. if (GM_getValue("Check_ge_dot_tt_links", false))
  6106. {
  6107. addFileHost(
  6108. "ge\.tt\/\\w+",
  6109. 'downloads pic',
  6110. 'is NOT the same as',
  6111. 'optional--',
  6112. "//a[contains(@href,'ge.tt')]");
  6113. }
  6114. if (GM_getValue("Check_filefactory_dot_com_links", false))
  6115. {
  6116. addFileHost(
  6117. "filefactory\.com\/\\w+",
  6118. 'div id="file_holder"|download.css',
  6119. 'File Removed|Invalid Download Link|File Unavailable|Server Failed|Datei entfernt|This file has been removed',
  6120. 'Server Maintenance|temporarily overloaded',
  6121. //'optional--',
  6122. "//a[contains(@href,'filefactory.com')]");
  6123. }
  6124. if (GM_getValue("Check_filesflash_dot_net_links", false))
  6125. {
  6126. addFileHost(
  6127. "filesflash\.net\/\\w+",
  6128. 'align:right">Filename:',
  6129. 'class="msg">',
  6130. 'optional--',
  6131. "//a[contains(@href,'filesflash.net')]");
  6132. }
  6133. if (GM_getValue("Check_rapidgator_dot_net_links", false)) //folders
  6134. {
  6135. addFileHost(
  6136. "rapidgator\\.net\/folder\/\\w+",
  6137. 'href="/folder/',
  6138. 'class="empty|Folder not found|Carpeta no encontrada|Dossier non trouvé|Папка не найдена',
  6139. 'optional--',
  6140. "//a[contains(@href,'rapidgator.net/folder')]",
  6141. true
  6142. );
  6143. }
  6144. if (GM_getValue("Check_salefiles_dot_com_links", false))
  6145. {
  6146. addFileHost(
  6147. "salefiles\.com\/\\w+",
  6148. '<Title>Download|CONTENT="Download',
  6149. 'font:15px Arial|background:#eee;',
  6150. 'optional--',
  6151. "//a[contains(@href,'salefiles.com')]");
  6152. }
  6153. if (GM_getValue("Check_megairon_dot_net_links", false))
  6154. {
  6155. addFileHost(
  6156. "megairon\.net\/\\w+",
  6157. 'border: 5px #ffeb90 solid;',
  6158. 'CONTENT="Download File ">|var rr =',
  6159. 'optional--',
  6160. "//a[contains(@href,'megairon.net')]");
  6161. }
  6162. if (GM_getValue("Check_datoid_dot_cz_links", false))
  6163. {
  6164. addFileHost(
  6165. "datoid\.cz\/\\w+",
  6166. 'btn-download|class="icon-download-large"',
  6167. 'Stránka nenalezena|error-404|Soubor byl zablokován',
  6168. 'optional--',
  6169. "//a[contains(@href,'datoid.cz')]");
  6170. }
  6171. if (GM_getValue("Check_stiahni_dot_si_links", false))
  6172. {
  6173. addFileHost(
  6174. "stiahni\.si\/\\w+",
  6175. 'report_icon.png"|slow-download-button',
  6176. 'none.png|deleted|<h2>Error 500</h2>',
  6177. 'optional--',
  6178. "//a[contains(@href,'stiahni.si')]");
  6179. }
  6180. if (GM_getValue("Check_cloudstor_dot_es_links", false))
  6181. {
  6182. addFileHost(
  6183. "cloudstor\.es\/\\w+",
  6184. '"btn_download"',
  6185. '404: Page Not Found',
  6186. 'optional--',
  6187. "//a[contains(@href,'cloudstor.es')]");
  6188. }
  6189. if (GM_getValue("Check_streamfile_dot_com_links", false))
  6190. {
  6191. addFileHost(
  6192. "streamfile\.com\/\\w+",
  6193. 'class="btn',
  6194. 'class="green-btn',
  6195. 'optional--',
  6196. "//a[contains(@href,'streamfile.com')]");
  6197. }
  6198. if (GM_getValue("Check_eyesfile_dot_ca_links", false))
  6199. {
  6200. addFileHost(
  6201. "eyesfile\.ca\/\\w+",
  6202. 'value="Get Link',
  6203. 'var rr =',
  6204. 'optional--',
  6205. "//a[contains(@href,'eyesfile.ca')]");
  6206. }
  6207. if (GM_getValue("Check_filemoney_dot_com_links", false))
  6208. {
  6209. addFileHost(
  6210. "filemoney\.com\/\\w+",
  6211. 'og:title',
  6212. '404 Not Found|<Title>FileMoney',
  6213. 'optional--',
  6214. "//a[contains(@href,'filemoney.com')]");
  6215. }
  6216. if (GM_getValue("Check_uploadboy_dot_com_links", false))
  6217. {
  6218. addFileHost(
  6219. "uploadboy\.com\/\\w+",
  6220. 'width="740">',
  6221. 'var rr =|background:#ffffff|not be found',
  6222. 'optional--',
  6223. "//a[contains(@href,'uploadboy.com')]");
  6224. }
  6225. if (GM_getValue("Check_speedshare_dot_eu_links", false))
  6226. {
  6227. addFileHost(
  6228. "speedshare\.eu\/\\w+",
  6229. 'favicon.png|color:#3d87c0|cross.png"',
  6230. 'var rr =|File Not Found|style="background:#eee',
  6231. 'optional--',
  6232. "//a[contains(@href,'speedshare.eu')]");
  6233. }
  6234. if (GM_getValue("Check_unlimitzone_dot_com_links", false))
  6235. {
  6236. addFileHost(
  6237. "unlimitzone\.com\/\\w+",
  6238. 'content="1" name="',
  6239. 'var rr =|File Not Found',
  6240. 'optional--',
  6241. "//a[contains(@href,'unlimitzone.com')]");
  6242. }
  6243. if (GM_getValue("Check_rioupload_dot_com_links", false))
  6244. {
  6245. addFileHost(
  6246. "rioupload\.com\/\\w+",
  6247. 'sell.jpg',
  6248. 'var rr =',
  6249. 'optional--',
  6250. "//a[contains(@href,'rioupload.com')]");
  6251. }
  6252. if (GM_getValue("Check_rg_dot_to_links", false))
  6253. {
  6254. addFileHost(
  6255. "rg\.to\/\\w+",
  6256. '/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',
  6257. 'Error 404|File not found|Select your plan',
  6258. 'optional--',
  6259. //'optional--',
  6260. "//a[contains(@href,'rg.to')]");
  6261. }
  6262. if (GM_getValue("Check_jumbofiles_dot_org_links", false))
  6263. {
  6264. addFileHost(
  6265. "jumbofiles\.org\/\\w+",
  6266. 'H71C5.png|class="downloadtitle">',
  6267. 'var swfu|ViewSourceBIN.png',
  6268. 'optional--',
  6269. "//a[contains(@href,'jumbofiles.org')]");
  6270. }
  6271. if (GM_getValue("Check_fshare_dot_vn_links", false))
  6272. {
  6273. addFileHost(
  6274. "fshare\\.vn\/file\/\\w+",
  6275. 'action="#download"|left; width: 330px;">|class="bt_down"',
  6276. 'không tồn tại|class="color_red m_t_50"',
  6277. 'optional--',
  6278. "//a[contains(@href,'fshare.vn/file')]",
  6279. true
  6280. );
  6281. }
  6282. if (GM_getValue("Check_spaceforfiles_dot_com_links", false))
  6283. {
  6284. addFileHost(
  6285. "spaceforfiles\.com\/\\w+",
  6286. 'btn_slowspeed_b.jpg|value="download1|class="btn_blue',
  6287. 'var rr =|AVOID_IE_BUG',
  6288. 'optional--',
  6289. "//a[contains(@href,'spaceforfiles.com')]");
  6290. }
  6291. if (GM_getValue("Check_google_dot_com_links", false))
  6292. {
  6293. addFileHost(
  6294. "google\\.com\/file\/\\w+",
  6295. 'content="!">|color:#2d2d2d',
  6296. '12pt; font-weight:|class="errorMessage"|F0F6FF',
  6297. 'optional--',
  6298. "//a[contains(@href,'google.com/file')]",
  6299. true
  6300. );
  6301. }
  6302. if (GM_getValue("Check_google_dot_com_links", false))
  6303. {
  6304. addFileHost(
  6305. "docs.google.com\/\\w+",
  6306. 'content="!">|color:#2d2d2d',
  6307. '12pt; font-weight:|class="errorMessage"|F0F6FF|Error 404',
  6308. 'optional--',
  6309. "//a[contains(@href,'docs.google.com')]",
  6310. true
  6311. );
  6312. }
  6313. if (GM_getValue("Check_google_dot_com_links", false))
  6314. {
  6315. addFileHost(
  6316. "drive.google.com\/\\w+",
  6317. 'content="!">|color:#2d2d2d|id="uc-download-link',
  6318. '12pt; font-weight:|class="errorMessage"|F0F6FF|Error 404',
  6319. 'optional--',
  6320. "//a[contains(@href,'drive.google.com')]",
  6321. true
  6322. );
  6323. }
  6324. if (GM_getValue("Check_up_dot_media1fire_dot_com_links", false))
  6325. {
  6326. addFileHost(
  6327. "up.media1fire\.com\/\\w+",
  6328. 'class="addthis_|value="download',
  6329. 'var rr =|AVOID_IE_BUG|<div style="width:500px;text-align:left;">',
  6330. 'optional--',
  6331. "//a[contains(@href,'up.media1fire.com')]");
  6332. }
  6333. if (GM_getValue("Check_depfile_dot_com_links", false))
  6334. {
  6335. addFileHost(
  6336. "depfile\.com\/\\w+",
  6337. 'logo_0.png|downloads.gif"',
  6338. 'border-color: #5D729B;|bgcolor="#778AAF"',
  6339. 'optional--',
  6340. "//a[contains(@href,'depfile.com')]");
  6341. }
  6342. if (GM_getValue("Check_go4up_dot_com_links", false))
  6343. {
  6344. addFileHost(
  6345. "go4up\.com\/\\w+",
  6346. 'style="width: 100%;">|value="Access|download_line',
  6347. '<title>GO4UP|dmca',
  6348. 'optional--',
  6349. "//a[contains(@href,'go4up.com')]");
  6350. }
  6351. if (GM_getValue("Check_redbunker_dot_net_links", false))
  6352. {
  6353. addFileHost(
  6354. "redbunker\.net\/\\w+",
  6355. 'dload.png|rowspan="3">|yep.gif',
  6356. 'CONTENT="RedBunker|#D3D3D3;|color:#d33|AVOID_IE_BUG',
  6357. 'optional--',
  6358. "//a[contains(@href,'redbunker.net')]");
  6359. }
  6360. if (GM_getValue("Check_divxpress_dot_com_links", false))
  6361. {
  6362. addFileHost(
  6363. "divxpress\.com\/\\w+",
  6364. 'btn_download|logo.png"',
  6365. 'AVOID_IE_BUG|var rr =',
  6366. 'optional--',
  6367. "//a[contains(@href,'divxpress.com')]");
  6368. }
  6369. if (GM_getValue("Check_anafile_dot_com_links", false))
  6370. {
  6371. addFileHost(
  6372. "anafile\.com\/\\w+",
  6373. 'width="881" valign="top|color="#800080"',
  6374. 'style="width:500px;text-align:left;">|file was deleted|AVOID_IE_BUG',
  6375. 'optional--',
  6376. "//a[contains(@href,'anafile.com')]");
  6377. }
  6378. if (GM_getValue("Check_uploadable_dot_ch_links", false))
  6379. {
  6380. addFileHost(
  6381. "uploadable\\.ch\/file\/\\w+",
  6382. 'captcha.js"|payment.js"|class="btn_download"',
  6383. '<div class="icon_err">|<div class="errorBox">|"error_arrow">',
  6384. 'optional--',
  6385. "//a[contains(@href,'uploadable.ch/file')]",
  6386. true
  6387. );
  6388. }
  6389. if (GM_getValue("Check_arabloads_dot_com_links", false))
  6390. {
  6391. addFileHost(
  6392. "arabloads\.com\/\\w+",
  6393. 'name="method_free"|name="method_premium"',
  6394. 'background:#eee;font:15px Arial;">|AVOID_IE_BUG|Verdana;padding:3px;">Error',
  6395. 'optional--',
  6396. "//a[contains(@href,'arabloads.com')]");
  6397. }
  6398. if (GM_getValue("Check_sharerepo_dot_com_links", false))
  6399. {
  6400. addFileHost(
  6401. "sharerepo\.com\/\\w+",
  6402. 'name="method_free"',
  6403. 'var public_on=|The file you were looking for could not be found',
  6404. 'optional--',
  6405. "//a[contains(@href,'sharerepo.com')]");
  6406. }
  6407. if (GM_getValue("Check_sfshare_dot_se_links", false))
  6408. {
  6409. addFileHost(
  6410. "sfshare\.se\/\\w+",
  6411. 'id="btn_download"|class="btn btn-primary txt-bold" value="',
  6412. 'AVOID_IE_BUG|var rr =|style="width:500px;text-align:left;">|Reason for deletion|The file was removed',
  6413. 'optional--',
  6414. "//a[contains(@href,'sfshare.se')]");
  6415. }
  6416. if (GM_getValue("Check_files_dot_fm_links", false))
  6417. {
  6418. addFileHost(
  6419. "files\.fm\/\\w+",
  6420. 'dl.png"|background-color: transparent',
  6421. 'margin: 40px 40px|background: none;',
  6422. 'optional--',
  6423. "//a[contains(@href,'files.fm')]");
  6424. }
  6425. if (GM_getValue("Check_koofile_dot_com_links", false))
  6426. {
  6427. addFileHost(
  6428. "koofile\.com\/\\w+",
  6429. 'value="download1">|name="method_free"',
  6430. 'class="overview-content c_text-box ">|style="padding-top:3px;">|class="rt1 c">',
  6431. 'optional--',
  6432. "//a[contains(@href,'koofile.com')]");
  6433. }
  6434. if (GM_getValue("Check_shared_dot_com_links", false))
  6435. {
  6436. addFileHost(
  6437. "shared\.com\/\\w+",
  6438. 'class="icon-download|class="attachment-size">',
  6439. 'img/404.png"|error-img -->',
  6440. 'optional--',
  6441. "//a[contains(@href,'shared.com')]");
  6442. }
  6443. if (GM_getValue("Check_vidxden_dot_com_links", false))
  6444. {
  6445. addFileHost(
  6446. "vidxden\\.com\/\\w+",
  6447. 'Continue to Video"',
  6448. 'No such file',
  6449. 'optional--',
  6450. "//a[contains(@href,'vidxden.com')]"
  6451. );
  6452. }
  6453. if (GM_getValue("Check_muchshare_dot_net_links", false))
  6454. {
  6455. addFileHost(
  6456. "muchshare\\.net\/\\w+",
  6457. 'id="btn_download"',
  6458. 'File Not Found|width: 500px; text-align: left;',
  6459. 'optional--',
  6460. "//a[contains(@href,'muchshare.net')]"
  6461. );
  6462. }
  6463. if (GM_getValue("Check_daten_dash_hoster_dot_de_links", false))
  6464. {
  6465. addFileHost(
  6466. "(?:daten-hoster\\.de\/file\/\\w+|filehosting\\.org\/file\/\\w+|xtraupload\\.de\/\\?d=\\w+)",
  6467. 'Details zur Datei|Details page',
  6468. 'Jetzt hochladen|upload now',
  6469. 'optional--',
  6470. "//a[contains(@href,'daten-hoster.de/file') or contains(@href,'filehosting.org/file') or contains(@href,'xtraupload.de')]"
  6471. );
  6472. }
  6473. if (GM_getValue("Check_upload_dash_il_dot_net_links", false))
  6474. {
  6475. addFileHost(
  6476. "(?:upload-il|przeslij)\.net\/(?:en|he|ar|ru|)\/?\\w+",
  6477. 'downloadbtn"',
  6478. 'DL_FileNotFound',
  6479. 'optional--',
  6480. "//a[contains(@href,'upload-il.net') or contains(@href,'przeslij.net')]"
  6481. );
  6482. }
  6483. if (GM_getValue("Check_fileflyer_dot_com_links", false))
  6484. {
  6485. addFileHost(
  6486. "fileflyer\.com\/view\/\\w+",
  6487. '(?:dwl|locked)btn"',
  6488. 'error.gif"|link">Removed|removedlink">',
  6489. 'optional--',
  6490. "//a[contains(@href,'fileflyer.com')]"
  6491. );
  6492. }
  6493. if (GM_getValue("Check_filestore_dot_to_links", false))
  6494. {
  6495. addFileHost(
  6496. "filestore\.to\/\\?d=\\w+",
  6497. '"downloading"',
  6498. 'Datei wurde nicht gefunden',
  6499. 'optional--',
  6500. "//a[contains(@href,'filestore.to')]"
  6501. );
  6502. }
  6503. if (GM_getValue("Check_easy_dash_share_dot_com_links", false))
  6504. {
  6505. addFileHost(
  6506. "(?:w\\d*\.|)(?:crocko|easy-share)\\.com\/.",
  6507. 'fz24">Download|class="pl15">',
  6508. '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',
  6509. 'optional--',
  6510. "//a[contains(@href,'easy-share.com') or contains(@href,'crocko.com')]"
  6511. );
  6512. }
  6513. if (GM_getValue("Check_burnupload_dot_com_links", false))
  6514. {
  6515. addFileHost(
  6516. "burnupload\\.(?:com\/\\?d=|ihiphop\\.com\/download\\.php\\?id=)\\w+",
  6517. 'File size:',
  6518. 'file is not found',
  6519. 'optional--',
  6520. "//a[contains(@href,'burnupload.com') or contains(@href,'burnupload.ihiphop.com')]"
  6521. );
  6522. }
  6523. if (GM_getValue("Check_datei_dot_to_links", false))
  6524. {
  6525. addFileHost(
  6526. "datei\\.to\/\\??\\w+",
  6527. 'icon_downloaden\\.png|>Download starten<',
  6528. 'Datei wurde nicht gefunden|icon_deleted.png',
  6529. 'optional--',
  6530. "//a[contains(@href,'datei.to')]"
  6531. );
  6532. }
  6533. if (GM_getValue("Check_yunfile_dot_com_links", false))
  6534. {
  6535. addFileHost(
  6536. "(?:yunfile|filemarkets)\\.com\/\\w+",
  6537. '<body class="body" id="body">|value="Slow Download"',
  6538. '<body class="body" >',
  6539. 'optional--',
  6540. "//a[contains(@href,'yunfile.com') or contains(@href,'filemarkets.com')]"
  6541. );
  6542. }
  6543. /* if (GM_getValue("Check_putlocker_dot_com_links", false))
  6544. {
  6545. addFileHost(
  6546. "putlocker\\.com\/file\/\\w{16}",
  6547. 'as Free User|<a class="continue"|Continue to file|#feedback_btn|application file_standalone',
  6548. 'Welcome to PutLocker|<div class="sad_face_image">|404:',
  6549. 'undergoing scheduled maintenance',
  6550. "//a[contains(@href,'putlocker.com/file')]"
  6551. );
  6552. } */
  6553. if (GM_getValue("Check_uploadhero_dot_com_links", false))
  6554. {
  6555. addFileHost(
  6556. "uploadhero\\.com\/dl\/\\w+",
  6557. 'content-dl">',
  6558. 'men_file_lost\\.jpg"',
  6559. 'optional--',
  6560. "//a[contains(@href,'uploadhero.com/dl')]"
  6561. );
  6562. }
  6563. if (GM_getValue("Check_unibytes_dot_com_links", false))
  6564. {
  6565. addFileHost(
  6566. "unibytes\\.com\/[\\w\.]+",
  6567. 'trying to download|пытаетесь загрузить файл|tes entrain de tlcharger',
  6568. 'File not found|Файл не найден|',
  6569. 'optional--',
  6570. "//a[contains(@href,'unibytes.com')]"
  6571. );
  6572. }
  6573. if (GM_getValue("Check_hellshare_dot_com_links", false)) //very old type of links
  6574. {
  6575. addFileHost(
  6576. "www\\.hellshare\\.com\/\\d+",
  6577. 'tab\\-details"',
  6578. 'list-purp-2"|not found on this server',
  6579. 'optional--',
  6580. "//a[contains(@href,'www.hellshare.com')]"
  6581. );
  6582. }
  6583. if (GM_getValue("Check_quickshare_dot_cz_links", false)) //folders
  6584. {
  6585. addFileHost(
  6586. "quickshare\\.cz\/slozka-\\d+",
  6587. 'Počet souborů: <strong>[1-9]',
  6588. 'Počet souborů: <strong>0|Chyba! Taková složka neexistuje',
  6589. 'optional--',
  6590. "//a[contains(@href,'quickshare.cz/slozka')]"
  6591. );
  6592. }
  6593. if (GM_getValue("Check_filefactory_dot_com_links", false)) //folders
  6594. {
  6595. addFileHost(
  6596. "filefactory\\.com\/f\/\\w+",
  6597. 'folderFileList">',
  6598. 'table class="items"|Pointer" class="red">',
  6599. 'optional--',
  6600. "//a[contains(@href,'filefactory.com/f/')]"
  6601. );
  6602. }
  6603. if (GM_getValue("Check_netload_dot_in_links", false)) //folders
  6604. {
  6605. addFileHost(
  6606. "netfolder\\.in\/\\w+",
  6607. 'list" value="http',
  6608. 'InPage_Error">|list" value=""',
  6609. 'optional--',
  6610. "//a[contains(@href,'netfolder.in')]"
  6611. );
  6612. }
  6613. if (GM_getValue("Check_load_dot_to_links", false))
  6614. {
  6615. addFileHost(
  6616. '(?:www\\.|\\/)load\\.to\\/(?:\\w{10}\\/.|\\?d=\\w{10})',
  6617. '"download_table_left">Size',
  6618. 'Can\'t find file',
  6619. 'optional--',
  6620. "//a[contains(@href,'/load.to/') or contains(@href,'www.load.to/')]"
  6621. );
  6622. }
  6623. if (GM_getValue("Check_freakshare_dot_net_links", false))
  6624. {
  6625. addFileHost(
  6626. "freakshare\\.(?:net|com)\/files\/",
  6627. 'box_heading',
  6628. '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|الملف المطلوب غير موجود',
  6629. 'Your Traffic is used up for today',
  6630. "//a[(contains(@href,'freakshare.net') or contains(@href,'freakshare.com')) and contains(@href,'files')]",
  6631. true
  6632. );
  6633. //folders
  6634. addFileHost(
  6635. "freakshare\\.(?:net|com)\/folder\/",
  6636. 'Files: [1-9]',
  6637. 'Files: 0',
  6638. 'optional--',
  6639. "//a[(contains(@href,'freakshare.net') or contains(@href,'freakshare.com')) and contains(@href,'folder')]",
  6640. true
  6641. );
  6642. }
  6643. if (GM_getValue("Check_divshare_dot_com_links", false))
  6644. {
  6645. addFileHost(
  6646. "divshare\\.com\/download\/",
  6647. 'download_new\.png',
  6648. 'have been removed',
  6649. 'optional--',
  6650. "//a[contains(@href,'divshare.com')]"
  6651. );
  6652. }
  6653. if (GM_getValue("Check_stahovadlo_dot_cz_links", false))
  6654. {
  6655. addFileHost(
  6656. "stahovadlo\\.cz\/soubor\/\\d+\/[\\.\\w]+",
  6657. 'download" type="submit',
  6658. 'Neplatný nebo neúplný odkaz|Soubor již není dostupný',
  6659. 'optional--',
  6660. "//a[contains(@href,'stahovadlo.cz/soubor')]",
  6661. true
  6662. );
  6663. }
  6664. if (GM_getValue("Check_euroshare_dot_eu_links", false))
  6665. {
  6666. addFileHost(
  6667. "euroshare\\.(?:eu|pl|sk|cz|hu)\/file\/\\d+",
  6668. 'nazev-souboru">',
  6669. '<div id="obsah">\\s*<h1>',
  6670. 'optional--',
  6671. "//a[contains(@href,'euroshare.eu/file')]"
  6672. );
  6673. }
  6674. if (GM_getValue("Check_files_dot_mail_dot_ru_links", false))
  6675. {
  6676. addFileHost(
  6677. 'files\\.mail\\.ru/(?:\\w*)',
  6678. 'fileList',
  6679. 'errorMessage',
  6680. 'optional--',
  6681. "//a[contains(@href,'files.mail.ru')]"
  6682. );
  6683. }
  6684. if (GM_getValue("Check_megashares_dot_com_links", false))
  6685. {
  6686. addFileHost(
  6687. "(?:d\\d+\.|)megashares\.com\/(?:dl|index\.php\\?d|\\?d\\d+=\\w+)",
  6688. 'Filesize',
  6689. 'Invalid|deleted|Could not download file',
  6690. 'slots|scheduled maintenance',
  6691. "//a[contains(@href,'megashares.com/')]"
  6692. );
  6693. }
  6694. if (GM_getValue("Check_narod_dot_ru_links", false))
  6695. {
  6696. addFileHost(
  6697. 'narod\\.(?:yandex\\.|)ru\/disk\/',
  6698. 'b-submit',
  6699. 'b-download-virus-note|headCode">404<',
  6700. 'Внутренняя ошибка сервиса',
  6701. "//a[contains(@href,'narod.ru') or contains(@href,'narod.yandex.ru')]"
  6702. );
  6703. }
  6704. if (GM_getValue("Check_rayfile_dot_com_links", false))
  6705. {
  6706. addFileHost(
  6707. "rayfile\\.com\/",
  6708. 'FILEtitleTXT',
  6709. 'blueRow',
  6710. 'optional--',
  6711. "//a[contains(@href,'rayfile.com/') and contains(@href,'files')]"
  6712. );
  6713. }
  6714. if (GM_getValue("Check_filesmonster_dot_com_links", false))
  6715. {
  6716. addFileHost(
  6717. "filesmonster\\.com\/download\\.php\\?id=\\w+",
  6718. 'button_green_body"',
  6719. 'error">',
  6720. 'optional--',
  6721. "//a[contains(@href,'filesmonster.com/download')]"
  6722. );
  6723. }
  6724. if (GM_getValue("Check_usaupload_dot_net_links", false))
  6725. {
  6726. addFileHost(
  6727. 'usaupload\\.net\/d\/(?:\w*)',
  6728. '<strong>File size:</strong>',
  6729. 'is not available',
  6730. 'optional--',
  6731. "//a[contains(@href,'usaupload.net/d/')]"
  6732. );
  6733. }
  6734. if (GM_getValue("Check_sendspace_dot_com_links", false))
  6735. {
  6736. addFileHost(
  6737. 'sendspace\\.com\/file\/\\w+',
  6738. 'file_description',
  6739. 'msg error"',
  6740. 'optional--',
  6741. "//a[contains(@href,'sendspace.com/file')]"
  6742. );
  6743. }
  6744. if (GM_getValue("Check_sendspace_dot_pl_links", false))
  6745. {
  6746. addFileHost(
  6747. 'sendspace\\.pl\/file\/\\w+',
  6748. 'download_file"',
  6749. 'Podany plik nie',
  6750. 'optional--',
  6751. "//a[contains(@href,'sendspace.pl/file')]"
  6752. );
  6753. }
  6754. if (GM_getValue("Check_uploading_dot_com_links", false))
  6755. {
  6756. addFileHost(
  6757. 'uploading\\.com\/(?:files\/)?\\w+',
  6758. 'free_method">',
  6759. 'file_error">|error_404">|file not found|OOPS! Looks like file not found',
  6760. 'optional--',
  6761. "//a[contains(@href,'uploading.com')]"
  6762. );
  6763. }
  6764. if (GM_getValue("Check_gigasize_dot_com_links", false))
  6765. {
  6766. addFileHost(
  6767. 'gigasize\\.com\/get\\.php(?:\/\\d+|\\?d=\\w+)',
  6768. 'fileId"',
  6769. 'error">',
  6770. 'optional--',
  6771. "//a[contains(@href,'gigasize.com/get')]"
  6772. );
  6773. }
  6774. if (GM_getValue("Check_good_dot_com_links", false))
  6775. {
  6776. addFileHost(
  6777. 'good\\.net\/(?:_|dl)',
  6778. 'Free Download',
  6779. 'Not Found',
  6780. 'Forbidden',
  6781. "//a[contains(@href,'good.net')]"
  6782. );
  6783. }
  6784. if (GM_getValue("Check_2shared_dot_com_links", false))
  6785. {
  6786. addFileHost(
  6787. '2shared\\.com\/(?:file|video|document|audio)\/\\w*',
  6788. 'File size',
  6789. 'File not found|is not valid|/images/important.gif',
  6790. 'optional--',
  6791. "//a[contains(@href,'2shared.com/file/') or contains (@href,'2shared.com/audio/') or contains (@href,'2shared.com/document/') or contains (@href,'2shared.com/video/')]"
  6792. );
  6793. }
  6794. if (GM_getValue("Check_turboupload_dot_com_links", false))
  6795. {
  6796. addFileHost(
  6797. 'turboupload\\.com\/\\w*',
  6798. 'You have requested',
  6799. 'File Not Found',
  6800. 'optional--',
  6801. "//a[contains(@href,'turboupload.com')]"
  6802. );
  6803. }
  6804. if (GM_getValue("Check_gigapeta_dot_com_links", false))
  6805. {
  6806. addFileHost(
  6807. 'gigapeta\\.com\/dl\/',
  6808. 'Download file|Скачать файл| Herunterzuladen|Scarica il file|Cargar el fichero|Charger le fichier',
  6809. '404|page_error',
  6810. 'optional--',
  6811. "//a[contains(@href,'gigapeta.com/dl')]"
  6812. );
  6813. }
  6814. if (GM_getValue("Check_veehd_dot_com_links", false))
  6815. {
  6816. addFileHost(
  6817. 'veehd\.com\/video\/.*?',
  6818. 'No sound|Download video',
  6819. 'Featured Videos',
  6820. 'optional--',
  6821. "//a[contains(@href,'veehd.com') and contains(@href,'video')]"
  6822. );
  6823. }
  6824. if (GM_getValue("Check_vip_dash_file_dot_com_links", false))
  6825. {
  6826. addFileHost(
  6827. '(?:u\\d+\\.)?vip-file\\.com\/download.*?\/(?:.*?)\/(?:.*?)\\.html',
  6828. 'fast_download_form">|submit_sms_download',
  6829. '<p style="text-align:center">',
  6830. 'optional--',
  6831. "//a[contains(@href,'vip-file.com/download')]"
  6832. );
  6833. }
  6834. if (GM_getValue("Check_letitbit_dot_net_links", false))
  6835. {
  6836. addFileHost(
  6837. '(?:u\\d+\\.)?letitbit\\.net\/download\/\\w+',
  6838. 'download\\-pnl ',
  6839. 'color:#000">|Запрашиваемый файл не найден|страница не существует|File not found|',
  6840. 'optional--',
  6841. "//a[contains(@href,'letitbit.net/download')]"
  6842. );
  6843. }
  6844. if (GM_getValue("Check_ifolder_dot_ru_links", false))
  6845. {
  6846. addFileHost(
  6847. 'ifolder\.ru\/\\d+',
  6848. 'file-info',
  6849. 'ui-state-error',
  6850. 'optional--',
  6851. "//a[contains(@href,'ifolder.ru')]"
  6852. );
  6853. }
  6854. if (GM_getValue("Check_fileswap_dot_com_links", false))
  6855. {
  6856. addFileHost(
  6857. 'fileswap\\.com\/dl\/\\w+',
  6858. 'bttnDownloadLink"',
  6859. 'rounded_block_error"',
  6860. 'is temporary unavailable|disponible en estos momentos|vorläufig unerreichbar|Файл временно недоступен',
  6861. "//a[contains(@href,'fileswap.com/dl')]"
  6862. );
  6863. }
  6864. if (GM_getValue("Check_filecloud_dot_io_links", false))
  6865. {
  6866. addFileHost(
  6867. '(?:s\\d+\\.)?filecloud\\.io\/\\w+',
  6868. 'var __error = 0',
  6869. 'FILES__DOESNT_EXIST|removed or did not exist',
  6870. 'optional--',
  6871. "//a[contains(@href,'filecloud.io/')]"
  6872. );
  6873. addFileHost(
  6874. 'ifile\\.it\/\\w+',
  6875. 'var __error = 0',
  6876. 'FILES__DOESNT_EXIST',
  6877. 'optional--',
  6878. "//a[contains(@href,'ifile.it/')]"
  6879. );
  6880. }
  6881. if (GM_getValue("Check_solidfiles_dot_com_links", false))
  6882. {
  6883. addFileHost(
  6884. 'solidfiles\\.com\/d\/\\w+',
  6885. 'id="download"|content="Download',
  6886. '>Not found<|<h2>404</h2>|Page not found|<h1>404</h1>|File not available|no longer available',
  6887. 'optional--',
  6888. "//a[contains(@href,'solidfiles.com/d')]"
  6889. );
  6890. }
  6891. if (GM_getValue("Check_shareflare_dot_net_links", false))
  6892. {
  6893. addFileHost(
  6894. "(?:.\\.|)shareflare\\.net",
  6895. 'download-pnl|<div class="premium-block">',
  6896. 'File not found|Поиск зеркала на фа|<div id="captcha"',
  6897. 'optional--',
  6898. "//a[contains(@href,'shareflare.net') and contains(@href,'download')]"
  6899. );
  6900. }
  6901. if (GM_getValue("Check_u18116681_dot_shareflare_dot_net_links", false))
  6902. {
  6903. addFileHost(
  6904. "u18116681.shareflare\\.net",
  6905. 'download-pnl|<div class="premium-block">',
  6906. 'File not found|Поиск зеркала на фа|<div id="captcha"',
  6907. 'optional--',
  6908. "//a[contains(@href,'shareflare.net') and contains(@href,'download')]"
  6909. );
  6910. }
  6911. if (GM_getValue("Check_uloz_dot_to_links", false))
  6912. {
  6913. addFileHost(
  6914. "(?:uloz|ulozto|bagruj|zachowajto)\\.(to|cz|sk|net|pl)\/\\w",
  6915. 'fileDownload">|fileSize">',
  6916. 'grayButton deletedFile">|Stránka nenalezena|upload-button"|jako soukromý.',
  6917. 'passwordProtectedFile">|frmaskAgeForm-disagree',
  6918. "//a[contains(@href,'bagruj.cz') or contains(@href,'uloz.to') or contains(@href,'ulozto.') or contains(@href,'zachowajto.pl')]",
  6919. true
  6920. );
  6921. }
  6922. if (GM_getValue("Check_hellspy_dot_com_links", false))
  6923. {
  6924. addFileHost(
  6925. "hellspy\.(?:com|cz|sk|hu|pl)\/\\w+",
  6926. 'file\\-list-orderby|section-filedetail">',
  6927. '<\/span><\/h2>\\s*<p>|list-purp-2">|flash info sticky">',
  6928. 'optional--',
  6929. "//a[contains(@href,'hellspy.')]"
  6930. );
  6931. }
  6932. if (GM_getValue("Check_leteckaposta_dot_cz_links", false))
  6933. {
  6934. addFileHost(
  6935. "(?:leteckaposta\\.cz|sharegadget\\.com)\/\\d+",
  6936. '<body onload="">',
  6937. 'neexistuje|not exist',
  6938. 'optional--',
  6939. "//a[contains(@href,'leteckaposta.cz') or contains(@href,'sharegadget.com')]"
  6940. );
  6941. }
  6942. if (GM_getValue("Check_stahovanizasms_dot_cz_links", false))
  6943. {
  6944. addFileHost(
  6945. "stahovanizasms\\.cz\/\\w+",
  6946. 'download\\.png>|font-size:11px><tr>',
  6947. 'smaz.n u.ivatelem|font-size:11px><\/table>',
  6948. 'optional--',
  6949. "//a[contains(@href,'stahovanizasms.cz')]"
  6950. );
  6951. }
  6952. if (GM_getValue("Check_share_dash_links_dot_biz_links", false))
  6953. {
  6954. addFileHost(
  6955. "share-links\\.biz\/\\w*",
  6956. 'online\\.gif',
  6957. '(?:offline|parts)\\.gif',
  6958. 'optional--',
  6959. "//a[contains(@href,'share-links.biz')]"
  6960. );
  6961. }
  6962. if (GM_getValue("Check_4shared_dot_com_links", false))
  6963. {
  6964. addFileHost(
  6965. "4shared\\.com\/.+\/",
  6966. '<input type="hidden" class="jsSocialTwDefaultText" value=',
  6967. 'class="warn\"|big red"|GetDataBack',
  6968. 'Service Unavailable',
  6969. "//a[contains(@href,'4shared.com')]"
  6970. );
  6971. }
  6972. if (GM_getValue("Check_zippyshare_dot_com_links", false))
  6973. {
  6974. addFileHost(
  6975. "(?:www\\d+\.|)zippyshare\.com\/",
  6976. 'download\.png|Download Now|images/download_small.png|id="dlbutton"',
  6977. 'not exist|Status 404',
  6978. 'optional--',
  6979. "//a[contains(@href,'zippyshare.com') and contains(@href,'file.html')]"
  6980. );
  6981. }
  6982. if (GM_getValue("Check_mediafire_dot_com_links", false))
  6983. {
  6984. addFileHost(
  6985. "mediafire\.com\/",
  6986. 'download_file_title|dlFileName|id="PLAY_downloadButton"',
  6987. 'error\\.php\\?|error_msg_title|<title>Simple File Sharing|No files found',
  6988. 'set to private',
  6989. "//a[contains(@href,'mediafire.com')]"
  6990. );
  6991. }
  6992. if (GM_getValue("Check_uploaded_dot_to_links", false))
  6993. {
  6994. addFileHost(
  6995. '(?:uploaded\\.(?:to|net)\/(?:.id|file|folder|f|410|404))|(?:ul\\.to\/)',
  6996. '<h2>Authentification</h2></li>| MB|0 seconds',
  6997. 'box_red|Error: 404|Error: 410|fileList"><thead><tr><td colspan="2"><\/td><\/tr><\/thead><tbody>\\s*<tr>|<title>uploaded.net</title>',
  6998. 'optional--',
  6999. "//a[contains(@href,'uploaded.to/') or contains(@href,'uploaded.net/') or contains(@href,'ul.to/')]"
  7000. );
  7001. }
  7002. if (GM_getValue("Check_ulozisko_dot_sk_links", false))
  7003. {
  7004. addFileHost(
  7005. "ulozisko\.sk\/",
  7006. 'Detaily',
  7007. 'neexistuje',
  7008. 'optional--',
  7009. "//a[contains(@href,'ulozisko.sk')]"
  7010. );
  7011. }
  7012. if (GM_getValue("Check_upnito_dot_sk_links", false))
  7013. {
  7014. addFileHost(
  7015. "(?:dl.\\.|)upnito\\.sk\/(download|subor|file)",
  7016. 'download.php',
  7017. 'notfound|upload\\-suborov\\.php"',
  7018. 'optional--',
  7019. "//a[contains(@href,'upnito.sk')]"
  7020. );
  7021. }
  7022. if (GM_getValue("Check_dataport_dot_cz_links", false))
  7023. {
  7024. addFileHost(
  7025. "dataport\.cz\/file\/",
  7026. 'premium_download">',
  7027. '="error">',
  7028. 'optional--',
  7029. "//a[contains(@href,'dataport.cz/file')]",
  7030. true
  7031. );
  7032. }
  7033. if (GM_getValue("Check_uptobox_dot_com_links", false))
  7034. {
  7035. addFileHost(
  7036. "uptobox\\.com\/\\w+",
  7037. 'Create Download Link">',
  7038. '500px;text-align:left;">|File not found|Fichier introuvable',
  7039. 'Maintenance|not available in your country',
  7040. "//a[contains(@href,'uptobox.com')]"
  7041. );
  7042. }
  7043. if (GM_getValue("Check_sharecash_dot_org_links", false))
  7044. {
  7045. addFileHost(
  7046. "sharecash\\.org\/download\\.php\\?file=\\d+",
  7047. 'FILE DOWNLOAD<',
  7048. 'File Does Not Exist',
  7049. 'optional--',
  7050. "//a[contains(@href,'sharecash.org/download.php')]"
  7051. );
  7052. }
  7053. if (GM_getValue("Check_depositfiles_dot_com_links", false)) //folders
  7054. {
  7055. addFileHost(
  7056. "depositfiles\\.com\/folders\/\\w+",
  7057. '<div class="progressContainer">',
  7058. '<div id="files" class="files">\\s*<\/div>',
  7059. 'optional--',
  7060. "//a[contains(@href,'depositfiles.com/folders')]"
  7061. );
  7062. }
  7063. if (GM_getValue("Check_depositfiles_dot_com_links", false))
  7064. {
  7065. addFileHost(
  7066. "depositfiles\\.com\/|depositfiles.org|dfiles\.eu|dfiles.ru",
  7067. '<b>File Download</b>|File name|Nom du fichier|Nome do arquivo|speed_small\.gif',
  7068. 'Such file does not exist|<div class="no_download_msg"|This file does not exist',
  7069. 'optional--',
  7070. "//a[contains(@href,'depositfiles') or contains(@href,'dfiles')]"
  7071. );
  7072. }
  7073. if (GM_getValue("Check_rapidfileshare_dot_net_links", false))
  7074. {
  7075. addFileHost(
  7076. "rapidfileshare\\.net/\\w+",
  7077. '<div id="upload-header-bg">',
  7078. '<div style="width:500px;text-align:left;">',
  7079. 'optional--',
  7080. "//a[contains(@href,'rapidfileshare.net/')]"
  7081. );
  7082. }
  7083. if (GM_getValue("Check_stiahnito_dot_sk_links", false))
  7084. {
  7085. addFileHost(
  7086. "stiahnito\\.sk/",
  7087. '<span class="filesize right">',
  7088. '<ol class="list-purp-2">',
  7089. 'optional--',
  7090. "//a[contains(@href,'stiahnito.sk/')]"
  7091. );
  7092. }
  7093. if (GM_getValue("Check_rusfolder_dot_com_links", false))
  7094. {
  7095. addFileHost(
  7096. "rusfolder\\.(?:com|net)",
  7097. '"download-step-one-form"|Название: <b>|Файлы|Файлы в папке',
  7098. '"ui-state-error ui-corner-all"|File is removed|File not found|удален',
  7099. 'optional--',
  7100. "//a[contains(@href,'rusfolder')]"
  7101. );
  7102. }
  7103. if (GM_getValue("Check_fileover_dot_net_links", false))
  7104. {
  7105. addFileHost(
  7106. "fileover\\.net/\\d+",
  7107. 'id="filesize"',
  7108. 'Not found or deleted|The following file is unavailable',
  7109. 'optional--',
  7110. "//a[contains(@href,'fileover.net/')]"
  7111. );
  7112. }
  7113. if (GM_getValue("Check_catshare_dot_net_links", false))
  7114. {
  7115. addFileHost(
  7116. "catshare\\.net/\\w+",
  7117. '"icon-share',
  7118. 'alert alert-error',
  7119. 'optional--',
  7120. "//a[contains(@href,'catshare.net/')]"
  7121. );
  7122. }
  7123. if (GM_getValue("Check_anonfiles_dot_com_links", false))
  7124. {
  7125. addFileHost(
  7126. "anonfiles\\.com/\\w+",
  7127. '"download_button"',
  7128. '<legend><b>404</b>',
  7129. 'optional--',
  7130. "//a[contains(@href,'anonfiles.com')]"
  7131. );
  7132. }
  7133. if (GM_getValue("Check_mixturecloud_dot_com_links", false))
  7134. {
  7135. addFileHost(
  7136. "mixturecloud\\.com/media/\\w+",
  7137. '"btn icon i_globe gray share_150',
  7138. '"s_cross_close"></span> 404:',
  7139. 'optional--',
  7140. "//a[contains(@href,'mixturecloud.com/media/')]"
  7141. );
  7142. }
  7143. if (GM_getValue("Check_akafile_dot_com_links", false))
  7144. {
  7145. addFileHost(
  7146. "akafile\\.com\/\\w+",
  7147. 'download1',
  7148. 'File Not Found',
  7149. 'optional--',
  7150. "//a[contains(@href,'akafile.com/')]"
  7151. );
  7152. }
  7153. if (GM_getValue("Check_creafile_dot_net_links", false))
  7154. {
  7155. addFileHost(
  7156. "creafile\\.net\/\\w+",
  7157. 'downloadblock',
  7158. 'errtitle',
  7159. 'optional--',
  7160. "//a[contains(@href,'creafile.net/')]"
  7161. );
  7162. }
  7163. if (GM_getValue("Check_hugefiles_dot_net_links", false))
  7164. {
  7165. addFileHost(
  7166. "hugefiles\\.net\/\\w+",
  7167. 'download1|class="btn-create-download" value="Create Download Link">',
  7168. 'File Not Found|No such file with this filename',
  7169. 'optional--',
  7170. "//a[contains(@href,'hugefiles.net/')]"
  7171. );
  7172. }
  7173. if (GM_getValue("Check_sendmyway_dot_com_links", false))
  7174. {
  7175. addFileHost(
  7176. "sendmyway\\.com\/\\w+",
  7177. 'id="btn_download"',
  7178. '500px;text-align:left;"|<center><h3>',
  7179. 'optional--',
  7180. "//a[contains(@href,'sendmyway.com/')]"
  7181. );
  7182. }
  7183. if (GM_getValue("Check_upload_dot_ee_links", false))
  7184. {
  7185. addFileHost(
  7186. "upload\\.ee\/\\w+",
  7187. 'onmouseout="document.dllink.src',
  7188. 'There is no such file.|File was deleted|Fail kustutati|Файл удалён|Такого файла нет',
  7189. 'optional--',
  7190. "//a[contains(@href,'upload.ee/')]"
  7191. );
  7192. }
  7193. if (GM_getValue("Check_shareplace_dot_org_links", false))
  7194. {
  7195. addFileHost(
  7196. "shareplace\\.org\/\\?\\w+",
  7197. 'Download-Link',
  7198. 'Your requested file is not found|Select file to send',
  7199. 'optional--',
  7200. "//a[contains(@href,'shareplace.org/?')]"
  7201. );
  7202. }
  7203. if (GM_getValue("Check_uploadc_dot_com_links", false))
  7204. {
  7205. addFileHost(
  7206. "uploadc\\.com\/\\w+",
  7207. 'id="prebut"',
  7208. 'File Not Found|This file has been removed due',
  7209. 'optional--',
  7210. "//a[contains(@href,'uploadc.com/')]"
  7211. );
  7212. }
  7213. if (GM_getValue("Check_remixshare_dot_com_links", false))
  7214. {
  7215. addFileHost(
  7216. "remixshare\\.com\/\\w+",
  7217. 'id="dl2"',
  7218. '<table class=\'failed\'><tr><td width=\'90%\'>|Sorry, die Datei konnte nicht gefunden werden',
  7219. 'optional--',
  7220. "//a[contains(@href,'remixshare.com/')]"
  7221. );
  7222. }
  7223. if (GM_getValue("Check_exoshare_dot_com_links", false))
  7224. {
  7225. addFileHost(
  7226. "exoshare\\.com\/download\\.php\\?uid=\\w+",
  7227. 'Last Download :',
  7228. 'img src="\\/404.jpg"',
  7229. 'optional--',
  7230. "//a[contains(@href,'exoshare.com/download.php')]"
  7231. );
  7232. }
  7233. if (GM_getValue("Check_borncash_dot_org_links", false))
  7234. {
  7235. addFileHost(
  7236. "borncash\\.org\/download\/\\?a=\\w+",
  7237. 'class="knop_1"',
  7238. '\/error\/er00',
  7239. 'optional--',
  7240. "//a[contains(@href,'borncash.org/download/')]"
  7241. );
  7242. }
  7243. if (GM_getValue("Check_vidplay_dot_net_links", false))
  7244. {
  7245. addFileHost(
  7246. "vidplay\.net\/\\w+",
  7247. 'solvemedia puzzle widget',
  7248. 'File not found|AVOID_IE_BUG',
  7249. 'optional--',
  7250. "//a[contains(@href,'vidplay.net')]");
  7251. }
  7252. if (GM_getValue("Check_storagon_dot_com_links", false))
  7253. {
  7254. addFileHost(
  7255. "storagon\.com\/\\w+",
  7256. 'class="icon-cloud-download"></i>|content="Download Options',
  7257. 'content="Download Downloads|class="error-container">|class="bigger-300 bolder">404<',
  7258. 'optional--',
  7259. "//a[contains(@href,'storagon.com')]");
  7260. }
  7261. if (GM_getValue("Check_filedais_dot_com_links", false))
  7262. {
  7263. addFileHost(
  7264. "filedais\.com\/\\w+",
  7265. 'class="btn btn-info"|name="method_free"',
  7266. 'style="width:500px;text-align:left;">|File Not Found|AVOID_IE_BUG',
  7267. 'optional--',
  7268. "//a[contains(@href,'filedais.com')]");
  7269. }
  7270. if (GM_getValue("Check_ryushare_dot_com_links", false))
  7271. {
  7272. addFileHost(
  7273. "ryushare\.com\/\\w+",
  7274. 'KB|MB',
  7275. '<div style="width:500px;text-align:left;">',
  7276. 'in maintenance mode|Software error:',
  7277. "//a[contains(@href,'ryushare.com')]");
  7278. }
  7279. if (GM_getValue("Check_up_dot_4share_dot_vn_links", false))
  7280. {
  7281. addFileHost(
  7282. "up.4share\.vn\/\\w+",
  7283. '<font size="2" face="Verdana">',
  7284. 'font: 13px Tahoma; color: Brown',
  7285. 'optional--',
  7286. //'optional--',
  7287. "//a[contains(@href,'up.4share.vn')]");
  7288. }
  7289. if (GM_getValue("Check_share_dot_vnn_dot_vn_links", false))
  7290. {
  7291. addFileHost(
  7292. "share.vnn\.vn\/\\w+",
  7293. '"index,follow"|<div class="main" id="download-box">',
  7294. '<meta name="description" content="" />|<h1>Không tìm thấy file bạn yêu cầu</h1>',
  7295. 'optional--',
  7296. //'optional--',
  7297. "//a[contains(@href,'share.vnn.vn')]");
  7298. }
  7299. if (GM_getValue("Check_upfile_dot_vn_links", false))
  7300. {
  7301. addFileHost(
  7302. "upfile\.vn\/\\w+",
  7303. 'download-timer',
  7304. '<meta name="description" content="Upload files|<meta name="description" content="Error "',
  7305. 'optional--',
  7306. //'optional--',
  7307. "//a[contains(@href,'upfile.vn')]");
  7308. }
  7309. /* if (GM_getValue("Check_firedrive_dot_com_links", false))
  7310. {
  7311. addFileHost(
  7312. "firedrive\\.com\/file\/\\w{16}",
  7313. 'as Free User|<a class="continue"|Continue to file|#feedback_btn|application file_standalone',
  7314. 'Welcome to PutLocker|<div class="sad_face_image">|404:',
  7315. 'undergoing scheduled maintenance',
  7316. "//a[contains(@href,'firedrive.com/file')]"
  7317. );
  7318. } */
  7319. if (GM_getValue("Check_aisfile_dot_com_links", false))
  7320. {
  7321. addFileHost(
  7322. "aisfile\.com\/\\w+",
  7323. '<h3 style="text-align:left;">|align=right><b>Filename:',
  7324. '<div style="width:500px;text-align:left;">|File Not Found',
  7325. 'optional--',
  7326. //'optional--',
  7327. "//a[contains(@href,'aisfile.com')]");
  7328. }
  7329. if (GM_getValue("Check_usersfiles_dot_com_links", false))
  7330. {
  7331. addFileHost(
  7332. "usersfiles\.com\/\\w+",
  7333. 'class="btn btn-success|id="btn_download" class="btn"',
  7334. '<div style="width:500px;text-align:left;">',
  7335. 'optional--',
  7336. //'optional--',
  7337. "//a[contains(@href,'usersfiles.com')]");
  7338. }
  7339. if (GM_getValue("Check_pan_dot_baidu_dot_com_links", false))
  7340. {
  7341. addFileHost(
  7342. "pan.baidu\.com\/\\w+",
  7343. 'target="_blank" title=|share-personal-info',
  7344. 'share_notfound.png|background:#f9f9f9',
  7345. 'optional--',
  7346. //'optional--',
  7347. "//a[contains(@href,'pan.baidu.com')]");
  7348. }
  7349. if (GM_getValue("Check_yunpan_dot_cn_links", false))
  7350. {
  7351. addFileHost(
  7352. "yunpan\.cn\/\\w+",
  7353. 'class="icon icon-download',
  7354. 'content="360|http://p5.qhimg.com/t01d1c98667df9dc6cc.jpg',
  7355. 'optional--',
  7356. //'optional--',
  7357. "//a[contains(@href,'yunpan.cn')]");
  7358. }
  7359. if (GM_getValue("Check_file_dash_upload_dot_net_links", false))
  7360. {
  7361. addFileHost(
  7362. "(?:en\\.|)file\\-upload\\.net\/download\\-\\d+\/\\w+",
  7363. 'getElementById("downbild")|style.display',
  7364. 'hochgeladene Datei nicht gefunden werden|has not been found',
  7365. 'optional--',
  7366. //'optional--',
  7367. "//a[contains(@href,'file-upload.net')]");
  7368. }
  7369. if (GM_getValue("Check_gulfup_dot_com_links", false))
  7370. {
  7371. addFileHost(
  7372. "gulfup\.com\/",
  7373. '<!-- Downlod template -->|download.gif',
  7374. '<!-- Errors template -->|class="error">|<!-- form upload -->|[ رفع الملفات ]',
  7375. 'optional--',
  7376. //'optional--',
  7377. "//a[contains(@href,'gulfup.com')]");
  7378. }
  7379. if (GM_getValue("Check_datafilehost_dot_com_links", false))
  7380. {
  7381. addFileHost(
  7382. "datafilehost\\.com\/(?:download-\\w+\\.html|d\/\\w+)",
  7383. 'dldtable">',
  7384. 'does not exist\\.',
  7385. 'optional--',
  7386. //'optional--',
  7387. "//a[contains(@href,'datafilehost.com')]");
  7388. }
  7389. if (GM_getValue("Check_box_dot_com_links", false))
  7390. {
  7391. addFileHost(
  7392. "box\.com\/\\w+",
  7393. 'download-file-btn|id="download_button',
  7394. 'BIyMin.png| <div class="error_message|link has been removed',
  7395. 'optional--',
  7396. //'optional--',
  7397. "//a[contains(@href,'app.box.com')]");
  7398. }
  7399. if (GM_getValue("Check_dropbox_dot_com_links", false))
  7400. {
  7401. addFileHost(
  7402. "dropbox\.com\/s\/\\w+",
  7403. 'default_content_download_button" class="freshbutton-blue">|content_download_button',
  7404. '>Nothing Here<|>Error (404)<',
  7405. 'title>Dropbox - 509|Error (403)|Error: 429',
  7406. "//a[contains(@href,'dropbox.com')]");
  7407. }
  7408. if (GM_getValue("Check_box_dot_net_links", false))
  7409. {
  7410. addFileHost(
  7411. "box\.net\/\\w+",
  7412. 'download-file-btn|id="download_button',
  7413. 'BIyMin.png| <div class="error_message',
  7414. 'optional--',
  7415. //'optional--',
  7416. "//a[contains(@href,'box.net')]");
  7417. }
  7418. if (GM_getValue("Check_fileband_dot_com_links", false))
  7419. {
  7420. addFileHost(
  7421. "fileband\.com\/\\w+",
  7422. 'value="download1">|name="id" value=',
  7423. '<div style="width:500px;text-align:left;">|not be found',
  7424. 'optional--',
  7425. //'optional--',
  7426. "//a[contains(@href,'fileband.com')]");
  7427. }
  7428. if (GM_getValue("Check_lumfile_dot_com_links", false))
  7429. {
  7430. addFileHost(
  7431. "lumfile\.com\/\\w+",
  7432. '<div style="width:900px;">',
  7433. 'background:#eee;font:15px|var rr =|The link was deleted by administration|File Not Found|>404 Not Found<|<div style="width:500px;text-align:left;">',
  7434. 'optional--',
  7435. "//a[contains(@href,'lumfile.com')]");
  7436. }
  7437. if (GM_getValue("Check_lumfile_dot_se_links", false))
  7438. {
  7439. addFileHost(
  7440. "lumfile\.se\/\\w+",
  7441. '<div style="width:900px;">',
  7442. 'background:#eee;font:15px|var rr =|The link was deleted by administration|File Not Found|>404 Not Found<|<div style="width:500px;text-align:left;">',
  7443. 'optional--',
  7444. "//a[contains(@href,'lumfile.se')]");
  7445. }
  7446. if (GM_getValue("Check_lumfile_dot_eu_links", false))
  7447. {
  7448. addFileHost(
  7449. "lumfile\.eu\/\\w+",
  7450. '<div style="width:900px;">',
  7451. 'background:#eee;font:15px|var rr =|The link was deleted by administration|File Not Found|>404 Not Found<|<div style="width:500px;text-align:left;">',
  7452. 'optional--',
  7453. "//a[contains(@href,'lumfile.eu')]");
  7454. }
  7455. if (GM_getValue("Check_uploadrocket_dot_net_links", false))
  7456. {
  7457. addFileHost(
  7458. "uploadrocket\.net\/\\w+",
  7459. '<font style="font-size:12px;">|<h2>Download File|method_isfree',
  7460. 'font style="color:#d33;|File Not Found',
  7461. 'optional--',
  7462. //'optional--',
  7463. "//a[contains(@href,'uploadrocket.net')]");
  7464. }
  7465. if (GM_getValue("Check_filedropper_dot_com_links", false))
  7466. {
  7467. addFileHost(
  7468. "filedropper\.com\/\\w+",
  7469. 'background:#ddd;|width:985px; ',
  7470. 'background-color:#FFFFFF;|margin-left: -400px;',
  7471. 'optional--',
  7472. //'optional--',
  7473. "//a[contains(@href,'filedropper.com')]");
  7474. }
  7475. if (GM_getValue("Check_tropicshare_dot_com_links", false))
  7476. {
  7477. addFileHost(
  7478. "tropicshare\\.com\/files\/\\d+",
  7479. 'MB</span>|GB</span>|KB</span>',
  7480. '>FNF<|size: </span>',
  7481. 'optional--',
  7482. //'optional--',
  7483. "//a[contains(@href,'tropicshare.com')]");
  7484. }
  7485. if (GM_getValue("Check_goldbytez_dot_com_links", false))
  7486. {
  7487. addFileHost(
  7488. "goldbytez\.com\/\\w+",
  7489. '<h2>Download</h2>|<center><h2>File: <font color="red">',
  7490. '<div style="width:500px;text-align:left;">|<h2>Error</h2>',
  7491. 'optional--',
  7492. //'optional--',
  7493. "//a[contains(@href,'goldbytez.com')]");
  7494. }
  7495. if (GM_getValue("Check_worldbytez_dot_com_links", false))
  7496. {
  7497. addFileHost(
  7498. "worldbytez\.com\/\\w+",
  7499. '<div class="download_type">',
  7500. '<div style="width:500px;text-align:left;">',
  7501. 'optional--',
  7502. //'optional--',
  7503. "//a[contains(@href,'worldbytez.com')]");
  7504. }
  7505. if (GM_getValue("Check_freefilehosting_dot_net_links", false))
  7506. {
  7507. addFileHost(
  7508. "freefilehosting\.net\/\\w+",
  7509. 'Type: cbr|Type: rar|Type: jpg|Type: mkv|Type: avi|Type: mpg|Type: mpeg|Type: zip|Type: wmvType: bmpType: gifType: mp4Type: mp3',
  7510. '175px;" value="http://www.freefilehosting.net/"|Filename: <br>',
  7511. 'optional--',
  7512. //'optional--',
  7513. "//a[contains(@href,'freefilehosting.net')]");
  7514. }
  7515. if (GM_getValue("Check_ziddu_dot_com_links", false))
  7516. {
  7517. addFileHost(
  7518. "ziddu\.com\/\\w+",
  7519. 'downloads.ziddu.com|downloadfilelinkicon',
  7520. 'errortracking.php|images/oops.png|fontfamilyverdana error',
  7521. 'optional--',
  7522. //'optional--',
  7523. "//a[contains(@href,'ziddu.com')]");
  7524. }
  7525. if (GM_getValue("Check_exclusiveloader_dot_com_links", false))
  7526. {
  7527. addFileHost(
  7528. "exclusiveloader\.com\/\\w+",
  7529. 'style="padding-top:55px; padding-bottom:65px;">|<h2>Download</h2>',
  7530. 'File Not Found|width:322px;text-align:left;" class="no_file">',
  7531. 'optional--',
  7532. //'optional--',
  7533. "//a[contains(@href,'exclusiveloader.com')]");
  7534. }
  7535. if (GM_getValue("Check_sharerapid_dot_cz_links", false))
  7536. {
  7537. addFileHost(
  7538. "sharerapid\.cz\/\\w+",
  7539. 'value="Stáhnout"|soubor" style|Stahování je povoleno pouze pro přihlášené uživatele',
  7540. 'error_div">|404 - Not Found',
  7541. 'optional--',
  7542. //'optional--',
  7543. "//a[contains(@href,'sharerapid.cz')]");
  7544. }
  7545. if (GM_getValue("Check_sdilej_dot_cz_links", false))
  7546. {
  7547. addFileHost(
  7548. "sdilej\.cz\/\\w+",
  7549. 'class="page-download"',
  7550. '<h2 class="red">|czshare.com|sponsored listings|This domain is for sale',
  7551. 'optional--',
  7552. //'optional--',
  7553. "//a[contains(@href,'sdilej.cz')]");
  7554. }
  7555. if (GM_getValue("Check_lafiles_dot_com_links", false))
  7556. {
  7557. addFileHost(
  7558. "lafiles\.com\/\\w+",
  7559. '<div id="pay_modes">',
  7560. '<b class="err"></b>',
  7561. 'optional--',
  7562. //'optional--',
  7563. "//a[contains(@href,'lafiles.com')]");
  7564. }
  7565. if (GM_getValue("Check_fboom_dot_me_links", false))
  7566. {
  7567. addFileHost(
  7568. "fboom\.me\/file\/\\w+",
  7569. 'id="download-free" href="#"',
  7570. 'class="error-v1-title">404<|File not found or deleted',
  7571. 'optional--',
  7572. //'optional--',
  7573. "//a[contains(@href,'fboom.me')]");
  7574. }
  7575. if (GM_getValue("Check_fileboom_dot_me_links", false))
  7576. {
  7577. addFileHost(
  7578. "fileboom\.me\/file\/\\w+",
  7579. 'id="download-free" href="#"',
  7580. 'class="error-v1-title">404<|File not found or deleted',
  7581. 'optional--',
  7582. //'optional--',
  7583. "//a[contains(@href,'fileboom.me')]");
  7584. }
  7585. if (GM_getValue("Check_acefile_dot_net_links", false))
  7586. {
  7587. addFileHost(
  7588. "acefile\.net\/\\w+",
  7589. 'align=right nowrap><b>',
  7590. 'File Not Found|<div style="width:322px;text-align:left;" class="no_file">',
  7591. 'optional--',
  7592. //'optional--',
  7593. "//a[contains(@href,'acefile.net')]");
  7594. }
  7595. if (GM_getValue("Check_megarapid_dot_cz_links", false))
  7596. {
  7597. addFileHost(
  7598. "megarapid\.cz\/\\w+",
  7599. 'value="Stáhnout"|soubor" style|Stahování je povoleno pouze pro přihlášené uživatele',
  7600. 'error_div">|404 - Not Found',
  7601. 'optional--',
  7602. //'optional--',
  7603. "//a[contains(@href,'megarapid.cz')]");
  7604. }
  7605. if (GM_getValue("Check_yadi_dot_sk_links", false))
  7606. {
  7607. addFileHost(
  7608. "yadi\.sk\/\\w+",
  7609. 'twitter:site|View and download',
  7610. 'error code|Nothing found',
  7611. 'optional--',
  7612. //'optional--',
  7613. "//a[contains(@href,'yadi.sk')]");
  7614. }
  7615. if (GM_getValue("Check_imdb_dot_com_links", false))
  7616. {
  7617. addFileHost(
  7618. "imdb\.com\/\\w+",
  7619. 'imdb.com',
  7620. '404 Error',
  7621. 'optional--',
  7622. "//a[contains(@href,'imdb.com')]");
  7623. }
  7624. if (GM_getValue("Check_hitfile_dot_net_links", false))
  7625. {
  7626. addFileHost(
  7627. "hitfile\.net\/\\w+",
  7628. 'class="download-file',
  7629. 'style="width:16px;height:16px;border:0;|File not found|Файл не найден. Возможно он был удален',
  7630. 'optional--',
  7631. //'optional--',
  7632. "//a[contains(@href,'hitfile.net')]");
  7633. }
  7634. /* if (GM_getValue("Check_uploadto_dot_us_links", false))
  7635. {
  7636. addFileHost(
  7637. "uploadto\\.us\/file\/details\/[\\w+-]",
  7638. 'name="recaptcha_response',
  7639. '="/folder/add"|>File (?:not found|restricted|has been deleted)|<title>UPLOADTO.US</title>',
  7640. 'btn-large btn-danger">|Account limitation notice|502 Bad Gateway',
  7641. "//a[contains(@href,'uploadto.us/file')]",
  7642. true);
  7643. } */
  7644. if (GM_getValue("Check_nitroflare_dot_com_links", false))
  7645. {
  7646. addFileHost(
  7647. "nitroflare\.com\/\\w+",
  7648. 'alert.png|LowSpeedMeter.png',
  7649. 'file has been removed|id="error" style="display',
  7650. 'optional--',
  7651. "//a[contains(@href,'nitroflare.com')]");
  7652. }
  7653. if (GM_getValue("Check_up_dot_top4top_dot_net_links", false))
  7654. {
  7655. addFileHost(
  7656. "up.top4top\.net\/\\w+",
  7657. 'start Downlod template',
  7658. 'start err template',
  7659. 'optional--',
  7660. "//a[contains(@href,'up.top4top.net')]");
  7661. }
  7662. if (GM_getValue("Check_filejoker_dot_net_links", false))
  7663. {
  7664. addFileHost(
  7665. "filejoker\.net\/\\w+",
  7666. 'button id="regular-download">Slow|method_free" value="1|<div id="download" class="download0">',
  7667. 'File Not Found|class="not_found|<div id="download" class="not_found">|"err">DMCA Complaint<',
  7668. 'optional--',
  7669. "//a[contains(@href,'filejoker.net')]");
  7670. }
  7671. if (GM_getValue("Check_free_dot_fr_links", false))
  7672. {
  7673. addFileHost(
  7674. "(?:dl.\\.|)free\\.fr",
  7675. 'Valider et t&eacute;l&eacute',
  7676. 'Fichier inexistant',
  7677. 'optional--',
  7678. "//a[contains(@href,'free.fr')]");
  7679. }
  7680. if (GM_getValue("Check_gboxes_dot_com_links", false))
  7681. {
  7682. addFileHost(
  7683. "gboxes\.com\/\\w+",
  7684. 'You have requested|color="red">http://www.gboxes.com',
  7685. 'File Not Found|<div style="width:500px;text-align:left;">',
  7686. 'optional--',
  7687. "//a[contains(@href,'gboxes.com')]");
  7688. }
  7689. if (GM_getValue("Check_1fichier_dot_com_links", false))
  7690. {
  7691. addFileHost(
  7692. "(?:\\w{10}\\.(?:1fichier|dl4free)\\.com\/)|(?:(?:1fichier|dl4free)\\.com\/\\?\\w{10})|(?:www\\.)?\\w{6,}\\.1fichier\\.com",
  7693. '<title>Download</title>|<br/>You must wait|submit" value="Download',
  7694. 'File not found|file could not be found|Select files to send',
  7695. 'optional--',
  7696. "//a[contains(@href,'1fichier') or contains(@href,'dl4free.com/')]"
  7697. );
  7698. }
  7699. if (GM_getValue("Check_led_dot_wf_links", false))
  7700. {
  7701. addFileHost(
  7702. "led\.wf\/\\w+",
  7703. 'logo_0.png|downloads.gif"',
  7704. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link',
  7705. 'optional--',
  7706. "//a[contains(@href,'led.wf')]");
  7707. }
  7708. if (GM_getValue("Check_lan_dot_wf_links", false))
  7709. {
  7710. addFileHost(
  7711. "lan\.wf\/\\w+",
  7712. 'logo_0.png|downloads.gif"',
  7713. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link',
  7714. 'optional--',
  7715. "//a[contains(@href,'lan.wf')]");
  7716. }
  7717. if (GM_getValue("Check_adlink_dot_wf_links", false))
  7718. {
  7719. addFileHost(
  7720. "adlink\.wf\/\\w+",
  7721. 'logo_0.png|downloads.gif"',
  7722. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link',
  7723. 'optional--',
  7724. "//a[contains(@href,'adlink.wf')]");
  7725. }
  7726. if (GM_getValue("Check_click_dot_tf_links", false))
  7727. {
  7728. addFileHost(
  7729. "click\.tf\/\\w+",
  7730. 'logo_0.png|downloads.gif"',
  7731. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link',
  7732. 'optional--',
  7733. "//a[contains(@href,'click.tf')]");
  7734. }
  7735. if (GM_getValue("Check_ssh_dot_tf_links", false))
  7736. {
  7737. addFileHost(
  7738. "ssh\.tf\/\\w+",
  7739. 'logo_0.png|downloads.gif"',
  7740. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link',
  7741. 'optional--',
  7742. "//a[contains(@href,'ssh.tf')]");
  7743. }
  7744. if (GM_getValue("Check_ssh_dot_yt_links", false))
  7745. {
  7746. addFileHost(
  7747. "ssh\.yt\/\\w+",
  7748. 'logo_0.png|downloads.gif"',
  7749. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link',
  7750. 'optional--',
  7751. "//a[contains(@href,'ssh.yt')]");
  7752. }
  7753. if (GM_getValue("Check_yep_dot_pm_links", false))
  7754. {
  7755. addFileHost(
  7756. "yep\.pm\/\\w+",
  7757. 'logo_0.png|downloads.gif"',
  7758. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link',
  7759. 'optional--',
  7760. "//a[contains(@href,'yep.pm')]");
  7761. }
  7762. if (GM_getValue("Check_kyc_dot_pm_links", false))
  7763. {
  7764. addFileHost(
  7765. "kyc\.pm\/\\w+",
  7766. 'logo_0.png|downloads.gif"',
  7767. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link',
  7768. 'optional--',
  7769. "//a[contains(@href,'kyc.pm')]");
  7770. }
  7771. if (GM_getValue("Check_brupload_dot_net_links", false))
  7772. {
  7773. addFileHost(
  7774. "brupload\.net\/\\w+",
  7775. 'Download Gratuito',
  7776. '<div style="width:500px;text-align:left;">',
  7777. 'optional--',
  7778. //'optional--',
  7779. "//a[contains(@href,'brupload.net')]");
  7780. }
  7781. if (GM_getValue("Check_cloudzilla_dot_to_links", false))
  7782. {
  7783. addFileHost(
  7784. "cloudzilla\.to\/\\w+",
  7785. 'btn1" id="free_download|onclick="freeDownload|id="pwd_protected">',
  7786. 'File not found|/imgs/broken.png',
  7787. 'optional--',
  7788. //'optional--',
  7789. "//a[contains(@href,'cloudzilla.to')]");
  7790. }
  7791. if (GM_getValue("Check_fileparadox_dot_in_links", false))
  7792. {
  7793. addFileHost(
  7794. "fileparadox\.in\/\\w+",
  7795. 'CONTENT="Download File|method_free_file',
  7796. '>File Not Found<|id="no_filedownload">|FILE NOT FOUND',
  7797. 'optional--',
  7798. //'optional--',
  7799. "//a[contains(@href,'fileparadox.in')]");
  7800. }
  7801. if (GM_getValue("Check_clicknupload_dot_com_links", false))
  7802. {
  7803. addFileHost(
  7804. "clicknupload\.com\/\\w+",
  7805. 'name="method_free',
  7806. 'File Not Found',
  7807. 'optional--',
  7808. //'optional--',
  7809. "//a[contains(@href,'clicknupload.com')]");
  7810. }
  7811. if (GM_getValue("Check_ex_dash_load_dot_com_links", false))
  7812. {
  7813. addFileHost(
  7814. "ex-load\.com\/\\w+",
  7815. 'name="method_free|<p>Download File:</p>',
  7816. 'Folder Not Found|File Not Found|Error 404',
  7817. 'optional--',
  7818. //'optional--',
  7819. "//a[contains(@href,'ex-load.com')]");
  7820. }
  7821. if (GM_getValue("Check_hexupload_dot_com_links", false))
  7822. {
  7823. addFileHost(
  7824. "hexupload\.com\/\\w+",
  7825. 'button" value="Free|type="submit" value=""',
  7826. 'File Not Found|<div style="width:500px;text-align:left;">',
  7827. 'optional--',
  7828. //'optional--',
  7829. "//a[contains(@href,'hexupload.com')]");
  7830. }
  7831. if (GM_getValue("Check_wizupload_dot_com_links", false))
  7832. {
  7833. addFileHost(
  7834. "wizupload\.com\/\\w+",
  7835. 'btn_download',
  7836. '>File Not Found<',
  7837. 'optional--',
  7838. //'optional--',
  7839. "//a[contains(@href,'wizupload.com')]");
  7840. }
  7841. if (GM_getValue("Check_filecloud_dot_cc_links", false))
  7842. {
  7843. addFileHost(
  7844. "filecloud\.cc\/\\w+",
  7845. 'align="center"><input type="submit" name=',
  7846. 'File Not Found|<Title>FileCloud - Premium Hosting Service<',
  7847. 'optional--',
  7848. //'optional--',
  7849. "//a[contains(@href,'filecloud.cc')]");
  7850. }
  7851. if (GM_getValue("Check_inclouddrive_dot_com_links", false))
  7852. {
  7853. addFileHost(
  7854. "inclouddrive\.com\/\\w+",
  7855. 'initfreedownload',
  7856. '<title>Content Unavailable|The file you are trying to download is no longer available',
  7857. 'optional--',
  7858. //'optional--',
  7859. "//a[contains(@href,'inclouddrive.com')]");
  7860. }
  7861. if (GM_getValue("Check_radicalshare_dot_com_links", false))
  7862. {
  7863. addFileHost(
  7864. "radicalshare\.com\/\\w+",
  7865. 'value="download1|name="method_free"',
  7866. 'File Not Found<|<div style="width:500px;text-align:left;">',
  7867. 'optional--',
  7868. //'optional--',
  7869. "//a[contains(@href,'radicalshare.com')]");
  7870. }
  7871. if (GM_getValue("Check_sharemods_dot_com_links", false))
  7872. {
  7873. addFileHost(
  7874. "sharemods\.com\/\\w+",
  7875. 'name="method_free"',
  7876. 'File Not Found<',
  7877. 'optional--',
  7878. //'optional--',
  7879. "//a[contains(@href,'sharemods.com')]");
  7880. }
  7881. if (GM_getValue("Check_hostr_dot_co_links", false))
  7882. {
  7883. addFileHost(
  7884. "hostr\.co\/\\w+",
  7885. 'method="get"',
  7886. 'File not found<|error-page',
  7887. 'optional--',
  7888. //'optional--',
  7889. "//a[contains(@href,'hostr.co')]");
  7890. }
  7891. if (GM_getValue("Check_filepi_dot_com_links", false))
  7892. {
  7893. addFileHost(
  7894. "filepi\.com\/\\w+",
  7895. 'id="button_start">',
  7896. 'File not found',
  7897. 'optional--',
  7898. //'optional--',
  7899. "//a[contains(@href,'filepi.com')]");
  7900. }
  7901. if (GM_getValue("Check_tikfile_dot_com_links", false))
  7902. {
  7903. addFileHost(
  7904. "tikfile\.com\/\\w+",
  7905. 'btn_download',
  7906. 'File Not Found|file was removed|Reason for deletion',
  7907. 'optional--',
  7908. //'optional--',
  7909. "//a[contains(@href,'tikfile.com')]");
  7910. }
  7911. if (GM_getValue("Check_cloudsix_dot_me_links", false))
  7912. {
  7913. addFileHost(
  7914. "cloudsix\.me\/\\w+",
  7915. 'name="method_free"',
  7916. 'File Not Found|width:500px;text-align:left;">',
  7917. 'optional--',
  7918. //'optional--',
  7919. "//a[contains(@href,'cloudsix.me')]");
  7920. }
  7921. if (GM_getValue("Check_neodrive_dot_co_links", false))
  7922. {
  7923. addFileHost(
  7924. "neodrive\.co\/\\w+",
  7925. 'btn1" id="free_download|onclick="freeDownload|id="pwd_protected">',
  7926. 'File not found|/imgs/broken.png',
  7927. 'optional--',
  7928. //'optional--',
  7929. "//a[contains(@href,'neodrive.co')]");
  7930. }
  7931. if (GM_getValue("Check_chayfile_dot_com_links", false))
  7932. {
  7933. addFileHost(
  7934. "chayfile\.com\/\\w+",
  7935. 'name="method_free"',
  7936. 'File Not Found|<h3>The file was removed by administrator</h3>',
  7937. 'optional--',
  7938. //'optional--',
  7939. "//a[contains(@href,'chayfile.com')]");
  7940. }
  7941. if (GM_getValue("Check_xfileload_dot_com_links", false))
  7942. {
  7943. addFileHost(
  7944. "xfileload\.com\/\\w+",
  7945. 'Filename:|Имя файла:|Dateiname:|nom de fichier :|اسم الملف:|Dosya AdД±|Nazwa:|Nombre de fichero:|NamaFile:|Bestandsnaam:|שם קובץ:"',
  7946. '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..|הקובץ שחיפשת לא נמצא.',
  7947. 'optional--',
  7948. //'optional--',
  7949. "//a[contains(@href,'xfileload.com')]");
  7950. }
  7951. if (GM_getValue("Check_rockfile_dot_eu_links", false))
  7952. {
  7953. addFileHost(
  7954. "rockfile\.eu\/\\w+",
  7955. 'You have requested:',
  7956. 'The file you were looking for could not be found, sorry for any inconvenience.',
  7957. 'optional--',
  7958. //'optional--',
  7959. "//a[contains(@href,'rockfile.eu')]");
  7960. }
  7961. if (GM_getValue("Check_24uploading_dot_com_links", false))
  7962. {
  7963. addFileHost(
  7964. "24uploading\.com\/\\w+",
  7965. 'File:|Download Speed:',
  7966. '<b>File Not Found</b>',
  7967. 'optional--',
  7968. //'optional--',
  7969. "//a[contains(@href,'24uploading.com')]");
  7970. }
  7971. if (GM_getValue("Check_tusfiles_dot_net_links", false))
  7972. {
  7973. addFileHost(
  7974. "tusfiles\.net\/\\w+",
  7975. 'i/icon/dll.png"|>Start download<br',
  7976. 'no longer available<|i/ino.png"',
  7977. 'optional--',
  7978. //'optional--',
  7979. "//a[contains(@href,'tusfiles.net')]");
  7980. }
  7981. if (GM_getValue("Check_2drive_dot_net_links", false))
  7982. {
  7983. addFileHost(
  7984. "2drive\.net\/\\w+",
  7985. 'value="Free Download"',
  7986. 'File Not Found',
  7987. 'optional--',
  7988. //'optional--',
  7989. "//a[contains(@href,'2drive.net')]");
  7990. }
  7991. if (GM_getValue("Check_jumbofile_dot_net_links", false))
  7992. {
  7993. addFileHost(
  7994. "jumbofile\.net\/\\w+",
  7995. 'button" class="" value="Free',
  7996. 'This File Was Deleted',
  7997. 'optional--',
  7998. //'optional--',
  7999. "//a[contains(@href,'jumbofile.net')]");
  8000. }
  8001. if (GM_getValue("Check_ozofiles_dot_com_links", false))
  8002. {
  8003. addFileHost(
  8004. "ozofiles\.com\/\\w+",
  8005. 'button" value="Free',
  8006. 'File Not Found|width:500px;text-align:left;">',
  8007. 'optional--',
  8008. //'optional--',
  8009. "//a[contains(@href,'ozofiles.com')]");
  8010. }
  8011. if (GM_getValue("Check_loudupload_dot_net_links", false))
  8012. {
  8013. addFileHost(
  8014. "loudupload\.net\/\\w+",
  8015. 'value="Get Links',
  8016. 'File Not Found',
  8017. 'optional--',
  8018. //'optional--',
  8019. "//a[contains(@href,'loudupload.net')]");
  8020. }
  8021. if (GM_getValue("Check_rapidsonic_dot_com_links", false))
  8022. {
  8023. addFileHost(
  8024. "(rapidsonic|fileparadox)\\.com\/\\w+",
  8025. 'method_free" id="submit_btn|<h4><i class="icon_document_alt"></i>Download File</h4>',
  8026. '>File Not Found<|id="no_filedownload">|>FILE NOT FOUND<|file has been deleted|No such file with this filename',
  8027. 'optional--',
  8028. //'optional--',
  8029. "//a[contains(@href,'rapidsonic') or contains(@href,'fileparadox.com')]");
  8030. }
  8031. if (GM_getValue("Check_krotix_dot_net_links", false))
  8032. {
  8033. addFileHost(
  8034. "krotix\.net\/\\w+",
  8035. 'btn btn-warning|btn-free',
  8036. 'pageErrors|This File has been removed',
  8037. 'content="Scheduled Maintenance',
  8038. //'optional--',
  8039. "//a[contains(@href,'krotix.net')]");
  8040. }
  8041. if (GM_getValue("Check_userscloud_dot_com_links", false))
  8042. {
  8043. addFileHost(
  8044. "userscloud\.com\/\\w+",
  8045. 'btn_download',
  8046. '>Server OFFLINE|background:#D3D3D3;border-bottom:1px solid #BBB;font:bold 13px Verdana;padding:3px;">',
  8047. 'optional--',
  8048. //'optional--',
  8049. "//a[contains(@href,'userscloud.com')]");
  8050. }
  8051. if (GM_getValue("Check_kumpulbagi_dot_com_links", false))
  8052. {
  8053. addFileHost(
  8054. "kumpulbagi\.com\/\\w+",
  8055. 'class="button download',
  8056. 'internal server error',
  8057. 'optional--',
  8058. //'optional--',
  8059. "//a[contains(@href,'kumpulbagi.com')]");
  8060. }
  8061. if (GM_getValue("Check_faststore_dot_org_links", false))
  8062. {
  8063. addFileHost(
  8064. "faststore\.org\/\\w+",
  8065. 'name="method_free',
  8066. 'File Not Found',
  8067. 'optional--',
  8068. //'optional--',
  8069. "//a[contains(@href,'faststore.org')]");
  8070. }
  8071. if (GM_getValue("Check_prefiles_dot_com_links", false))
  8072. {
  8073. addFileHost(
  8074. "prefiles\.com\/\\w+",
  8075. 'id="method_free',
  8076. 'File not Found',
  8077. 'optional--',
  8078. //'optional--',
  8079. "//a[contains(@href,'prefiles.com')]");
  8080. }
  8081. if (GM_getValue("Check_doraupload_dot_com_links", false))
  8082. {
  8083. addFileHost(
  8084. "doraupload\.com\/\\w+",
  8085. 'btn_download',
  8086. 'class="error-code|Could Not Be Found',
  8087. 'optional--',
  8088. //'optional--',
  8089. "//a[contains(@href,'doraupload.com')]");
  8090. }
  8091. if (GM_getValue("Check_openload_dot_io_links", false))
  8092. {
  8093. addFileHost(
  8094. "openload\.io\/\\w+",
  8095. 'btn btn-primary|class="count">',
  8096. 'class="jumbotron">|We are sorry',
  8097. 'optional--',
  8098. //'optional--',
  8099. "//a[contains(@href,'openload.io')]");
  8100. }
  8101. if (GM_getValue("Check_uploads_dot_xxx_links", false))
  8102. {
  8103. addFileHost(
  8104. "uploads\.xxx\/\\w+",
  8105. 'downoadForFree',
  8106. 'File not found',
  8107. 'optional--',
  8108. //'optional--',
  8109. "//a[contains(@href,'uploads.xxx')]");
  8110. }
  8111. }
  8112. //start here
  8113.  
  8114. //hosts with direct download, so they must be requested for headers only
  8115. function initFileHostsHeadersOnly()
  8116. {
  8117. function addFileHostHeadersOnly(linkRegex, isAliveRegex, isDeadRegex, xpathEx, ispremRegex)
  8118. {
  8119. var host = new Array(5);
  8120. host[0] = linkRegex;
  8121. host[1] = isAliveRegex;
  8122. host[2] = isDeadRegex;
  8123. host[3] = xpathEx;
  8124. host[4] = ispremRegex;
  8125. http_file_hosts_headers_only.push(host);
  8126. }
  8127. if (GM_getValue("Check_uloziste_dot_com_links", false))
  8128. {
  8129. addFileHostHeadersOnly(
  8130. "(?:|files\\.)uloziste\\.com\/\\w+\/\\w+",
  8131. 'Connection: Keep-Alive',
  8132. 'Content-Length: 3857',
  8133. "//a[contains(@href,'uloziste.com')]"
  8134. )
  8135. }
  8136. if (GM_getValue("Check_adrive_dot_com_links", false))
  8137. {
  8138. addFileHostHeadersOnly(
  8139. "adrive\\.com\/public\/\\w+",
  8140. 'Connection: keep-alive',
  8141. 'orig_ref=deleted',
  8142. "//a[contains(@href,'adrive.com')]"
  8143. )
  8144. }
  8145. if (GM_getValue("Check_myupload_dot_dk_links", false))
  8146. {
  8147. addFileHostHeadersOnly(
  8148. "myupload\\.dk\/showfile\/\\w+",
  8149. 'Expires:',
  8150. 'squeeze1\\s+Vary',
  8151. "//a[contains(@href,'myupload.dk/showfile')]"
  8152. )
  8153. }
  8154. }
  8155. //CustomRules
  8156. //functions add...Host copied here
  8157. function addObsoleteHost(linkRegex, xpathEx)
  8158. {
  8159. var host = new Array(2);
  8160. host[0] = linkRegex;
  8161. host[1] = xpathEx;
  8162. http_file_hosts_obsolete.push(host);
  8163. }
  8164. function addFileHost(linkRegex, isAliveRegex, isDeadRegex, isUnavaRegex, xpathEx, tryLoop, ispremRegex)
  8165. {
  8166. var host = new Array(7);
  8167. host[0] = linkRegex;
  8168. host[1] = isAliveRegex;
  8169. host[2] = isDeadRegex;
  8170. host[3] = isUnavaRegex;
  8171. host[4] = xpathEx;
  8172. tryLoop ? host[5] = true : host[5] = false;
  8173. host[6] = ispremRegex;
  8174. http_file_hosts.push(host);
  8175. }
  8176. function addFileHostHeadersOnly(linkRegex, isAliveRegex, isDeadRegex, xpathEx, ispremRegex)
  8177. {
  8178. var host = new Array(5);
  8179. host[0] = linkRegex;
  8180. host[1] = isAliveRegex;
  8181. host[2] = isDeadRegex;
  8182. host[3] = xpathEx;
  8183. host[4] = ispremRegex;
  8184. http_file_hosts_headers_only.push(host);
  8185. }
  8186. //takes a fully built rules array and adds the rules to WARLC
  8187. function applyCustomRules(customRules)
  8188. {
  8189. if (!customRules) return;
  8190. var rules, r, i;
  8191. rules = customRules.rules;
  8192. for (i = 0 ; i < rules.length ; i++)
  8193. {
  8194. r = rules[i];
  8195. if (r.enabled)
  8196. {
  8197. switch (r.type)
  8198. {
  8199. case 'single':
  8200. addFileHost(r.urlregex, r.aliveregex, r.deadregex, r.unavaregex, r.premregex||'', r.xpath);
  8201. break;
  8202. case 'headers':
  8203. addFileHostHeadersOnly(r.urlregex, r.aliveregex, r.deadregex, r.xpath, r.premregex);
  8204. break;
  8205. case 'obsolete':
  8206. addObsoleteHost(r.urlregex, r.xpath)
  8207. break;
  8208. }
  8209. }
  8210. }
  8211. }
  8212.  
  8213.  
  8214. function initFileHostsCustom()
  8215. {
  8216. if (Custom_rules && Custom_rules_text)
  8217. {
  8218. var msg = '';
  8219. if (newVersion)
  8220. msg = 'New version of W.A.R. Links Checker detected.\n\n';
  8221. else if ((now - last_custom_rules_nag) >= 60*24*60*60*1000)
  8222. msg = '60 or more days have passed since this notification.\n\n';
  8223. if (msg && /^\s*@customrule(?:_obsolete)?\s/mi.test(Custom_rules_text))
  8224. {
  8225. GM_setValue('last_custom_rules_nag', ''+new Date().getTime()); //reset nag
  8226. msg +=
  8227. 'Either new version of W.A.R. Links Checker detected or 60 days passed since this notify.\n'+
  8228. 'Please check that your custom rules haven\'t been built into WARLC.\n'+
  8229. 'If not, please share them with us so they can be included in the next version! Built-in rules are always preferred.\n\n'+
  8230. 'We apologize for this annoying notification, but there is a reason to this.\n'+
  8231. 'Ideally, WARLC would check which of your custom rules have been included and disable them. '+
  8232. 'Unfortunately, there is no easy way to do that, but we don\'t want everybody to just use their custom rules '+
  8233. 'forever without ever checking if the built-in ones have been added/fixed. This is currently the only way '+
  8234. 'to remind you that you should try built-in rules, report missing/non-working ones and share your custom rules.';
  8235. setTimeout(function(){alert(msg)},0);
  8236. }
  8237. var customRules = parseCustomRules(Custom_rules_text);
  8238. if (customRules.warning || customRules.error)
  8239. alert('There were ' + customRules.error + ' errors, ' + customRules.warning + ' warnings, ' +
  8240. customRules.note + ' notes found during Custom Rules processing.\n' + customRules.rules.length + ' valid rules found.\n\n' +
  8241. JSON.stringify(customRules.info, null, ' '));
  8242. applyCustomRules(customRules);
  8243. }
  8244. }
  8245. //end of CustomRules processing
  8246.  
  8247.  
  8248.  
  8249. } //end of function start
  8250.  
  8251.  
  8252.  
  8253. function initClipBoardTools()
  8254. {
  8255. unsafeWindow.copyToClipboard = function(text)
  8256. {
  8257. try
  8258. {
  8259. this.netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
  8260.  
  8261. var str = Components.classes["@mozilla.org/supports-string;1"].
  8262. createInstance(Components.interfaces.nsISupportsString);
  8263. if (!str) return false;
  8264.  
  8265. str.data = text;
  8266.  
  8267. var trans = Components.classes["@mozilla.org/widget/transferable;1"].
  8268. createInstance(Components.interfaces.nsITransferable);
  8269. if (!trans) return false;
  8270.  
  8271. trans.addDataFlavor("text/unicode");
  8272. trans.setTransferData("text/unicode", str, text.length * 2);
  8273.  
  8274. var clipid = Components.interfaces.nsIClipboard;
  8275. var clip = Components.classes["@mozilla.org/widget/clipboard;1"].getService(clipid);
  8276. if (!clip) return false;
  8277.  
  8278. clip.setData(trans, null, clipid.kGlobalClipboard);
  8279. } catch (e) {
  8280. GM_log("Error copyToClipboard : " + e);
  8281. alert(e + "\n\nsigned.applets.codebase_principal_support must be set true in about:config")
  8282. }
  8283. }
  8284. }
  8285.  
  8286.  
  8287.  
  8288. //CustomRules
  8289.  
  8290. function escapeRegex(str)
  8291. {
  8292. return str.replace(/[\-\[\]{}()*+?.,\\\^$|#]/g, "\\$&");
  8293. }
  8294.  
  8295.  
  8296. //called internally from parseCustomRules.
  8297. //expected: rule object with array fields baseurl, alivematch etc, everything must already be checked for input errors
  8298. //returns the rule object with string fields urlregex, xpath, aliveregex etc built from the arrays
  8299. function makeCustomRule(rule)
  8300. {
  8301. function makeMatchRegex(arrmatch)
  8302. {
  8303. return escapeRegex(arrmatch.join('\n'))
  8304. .replace(/ +/g, '\\s+') //two or more spaces to any whitespace
  8305. .replace(/\n/g,'|'); //join together
  8306. }
  8307. if (rule.alivematch) rule.aliveregex = makeMatchRegex(rule.alivematch);
  8308. if (rule.deadmatch) rule.deadregex = makeMatchRegex(rule.deadmatch);
  8309. if (rule.unavamatch) rule.unavaregex = makeMatchRegex(rule.unavamatch);
  8310. if (rule.premmatch) rule.premregex = makeMatchRegex(rule.premmatch);
  8311. if (rule.baseurl)
  8312. {
  8313. var i, m, urlregex = [], xpath = [], len = rule.baseurl.length;
  8314. for (i = 0 ; i < len ; i++)
  8315. {
  8316. m = rule.baseurl[i].match(/^([a-z0-9\.-]+)(?: +([a-z \.]+) +)?(\/.*)$/);
  8317. if (m[2]) //baseurl in the form: example. com co.uk net /xxx
  8318. {
  8319. 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'])
  8320. urlregex.push( (m[1] + '(?:'+ m[2].replace(/\s+/g,'|') + ')').replace(/\./g,'\\.') + escapeRegex(m[3]) + '.'); //urlregex.push('example\\.(?:com|co\\.uk|net)/xxx.')
  8321. }
  8322. else //baseurl in the form: example.com/xxx
  8323. {
  8324. xpath.push(m[0]);
  8325. urlregex.push(escapeRegex(m[0]) + '.');
  8326. }
  8327. }
  8328. rule.xpath = "//a[contains(@href,'" + xpath.join("') or contains(@href,'") + "')]";
  8329. rule.urlregex = '(?:[a-z0-9\\.-]+\\.)?(?:' + urlregex.join('|') + ')';
  8330. }
  8331. return rule;
  8332. } //function makeCustomRule
  8333.  
  8334.  
  8335. /*
  8336. Takes a string containing custom link checking rules.
  8337. Returns an object with fields:
  8338. info - contains notes, warnings and errors found during parsing
  8339. rules - the array of custom rules
  8340. note, warning, error - number of each of them found during parsing
  8341. Format of the input string:
  8342. One command per line. Command format: @keyword parameter
  8343. Keywords:
  8344. @customrule, @customrule_obsolete, @customrule_headers - begin a new custom rule. Parameter: name of the rule
  8345. @#customrule, @#customrule_obsolete, @#customrule_headers - begin and parse this custom rule, but don't use it. Parameter: name of the rule
  8346. These keywords can be multiple (any of them will work):
  8347. @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...)
  8348. @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+
  8349. @alivelink, @deadlink - example links
  8350. @baseurl is always required, @alivematch and @deadmatch are required except for obsolete. @unavamatch is ignored for obsolete. @*link is optional.
  8351. Lines starting with // and empty lines are ignored.
  8352. Invalid parameters generate errors and those lines are skipped.
  8353. Other lines generate warnings, but are otherwise ignored (also those before the first @customrule line or inside a rule with invalid name).
  8354. Example:
  8355. @customrule filehost
  8356. @baseurl filehost.com/download/
  8357. @baseurl filehost2. com net /d?=
  8358. @alivematch id="download">
  8359. @deadmatch File not found
  8360. @deadmatch File deleted
  8361. */
  8362. function parseCustomRules(rulesStr)
  8363. {
  8364. var linenum, customRules = {'info': [], 'rules': [], 'note': 0, 'warning': 0, 'error': 0};
  8365. function addInfo(type, msg, ln){
  8366. customRules.info.push({'linenum':(ln===undefined ? linenum+1 : ln+1), 'type':type, 'msg':msg});
  8367. customRules[type]++;
  8368. }
  8369. var lines = rulesStr.match(/^(.*)$/gm); //split into array of lines
  8370. if (!lines) return null;
  8371. lines.push('@#customrule _'); //to save the last rule
  8372. var m, linecount = lines.length;
  8373. var keyword, param, constr, rule, err;
  8374. var TLD = '[a-z]{2,7}(?:\\.[a-z]{2,7})?';
  8375. var TLDorTLDlist = '(?:'+TLD+'| '+TLD+'(?: '+TLD+'){0,9} )'; //TLD or space-separated list of TLDs
  8376. var baseurlRE = new RegExp('^([a-z0-9-]{1,30}(?:\\.[a-z0-9-]{1,30}){0,2}\\.)'+TLDorTLDlist+'(/[^\'"\s\$]{0,50})$', 'i');
  8377. var constraints = {
  8378. 'baseurl': {
  8379. 'single': {'min': 1, 'max': 10, 'paramRE': baseurlRE},
  8380. 'headers': {'min': 1, 'max': 10, 'paramRE': baseurlRE},
  8381. 'obsolete': {'min': 1, 'max': 10, 'paramRE': baseurlRE}},
  8382. 'alivematch': {
  8383. 'single': {'min': 1, 'max': 10, 'paramRE': null},
  8384. 'headers': {'min': 1, 'max': 10, 'paramRE': null}},
  8385. 'deadmatch': {
  8386. 'single': {'min': 1, 'max': 10, 'paramRE': null},
  8387. 'headers': {'min': 1, 'max': 10, 'paramRE': null}},
  8388. 'unavamatch': {
  8389. 'single': {'min': 0, 'max': 10, 'paramRE': null}},
  8390. 'alivelink': {
  8391. 'single': {'min': 0, 'max': 10, 'paramRE': null},
  8392. 'headers': {'min': 0, 'max': 10, 'paramRE': null}},
  8393. 'deadlink': {
  8394. 'single': {'min': 0, 'max': 10, 'paramRE': null},
  8395. 'headers': {'min': 0, 'max': 10, 'paramRE': null},
  8396. 'obsolete': {'min': 0, 'max': 10, 'paramRE': null}}
  8397. };
  8398. for (linenum = 0 ; linenum < linecount ; linenum++)
  8399. {
  8400. //capturing groups: 1 23 4 5 6
  8401. m = lines[linenum].match(/^\s*(?:(\/\/.*)|@((#?)(customrule)(?:_(headers|obsolete))?|baseurl|alivematch|deadmatch|unavamatch|alivelink|deadlink)\s+(.+))?$/i);
  8402. if (m)
  8403. {
  8404. if (m[1] || !m[2])
  8405. continue; // ignore empty lines and lines starting with //
  8406. keyword = (m[4] || m[2]).toLowerCase();
  8407. param = m[6];
  8408. if (keyword == 'customrule')
  8409. {
  8410. //save the current rule if all required fields are provided
  8411. if (rule)
  8412. {
  8413. err = false;
  8414. $.each(constraints, function(kw, constraint){
  8415. var l, constr = constraint[rule.type];
  8416. if (constr)
  8417. {
  8418. l = rule[kw] ? rule[kw].length : 0;
  8419. if (l < constr.min || l > constr.max)
  8420. {
  8421. 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);
  8422. err = true;
  8423. }
  8424. }
  8425. });
  8426. if (!err)
  8427. customRules.rules.push(makeCustomRule(rule));
  8428. }
  8429. //start a new rule
  8430. if (/^[\w\.-]{1,30}$/.test(param)) //valid name?
  8431. {
  8432. rule = {
  8433. 'enabled': !m[3],
  8434. 'type': m[5] ? m[5].toLowerCase() : 'single',
  8435. 'name': param
  8436. };
  8437. }
  8438. else
  8439. {
  8440. addInfo('error', 'Invalid rule name. Cannot start a new rule definition.');
  8441. rule = null;
  8442. }
  8443. }
  8444. else //good line format, but keyword other than customrule
  8445. {
  8446. if (!rule)
  8447. {
  8448. addInfo('warning', 'Command outside @CUSTOMRULE definiton. Line skipped.');
  8449. continue;
  8450. }
  8451. if (constraints[keyword])
  8452. {
  8453. constr = constraints[keyword][rule.type];
  8454. if (constr)
  8455. {
  8456. if (constr.paramRE && !constr.paramRE.test(param))
  8457. {
  8458. addInfo('warning', 'Invalid @' + keyword.toUpperCase() + ' parameter. Line Skipped.');
  8459. continue;
  8460. }
  8461. }
  8462. else
  8463. {
  8464. addInfo('note', '@' + keyword.toUpperCase() + ' not applicable for type ' + rule.type.toUpperCase() + '. Line skipped.');
  8465. continue;
  8466. }
  8467. }
  8468. //line OK, save
  8469. rule[keyword] ? rule[keyword].push(param) : rule[keyword] = [param];
  8470. }
  8471. } //if (m)
  8472. else
  8473. addInfo('warning', 'Unknown line format. Line skipped.');
  8474. } //for loop
  8475. return customRules;
  8476. } //function parseCustomRules