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

detects live, dead and premium links.

当前为 2015-08-07 提交的版本,查看 最新版本

  1. //added cloudshares.net
  2. // ==UserScript==
  3. // @name W.A.R. Links Checker Customized Premium Link Version
  4. // @description detects live, dead and premium links.
  5. // @details this script automatically checks links from 650+ filehosts. For Firefox, Chrome, Opera, Safari.
  6. // @namespace premium version
  7. // @version 1.1.6.9
  8. // @icon http://sharenxs.com/photos/2014/02/14/52fd759db90ac/cooltext1428903746.png
  9. // @license GPL version 3 or any later version (http://www.gnu.org/copyleft/gpl.html)
  10. // @author <a href="http://www.mentalps.5gbfree.com/viewtopic.php?f=2&t=6>mental</a>
  11. // @include http://*
  12. // @include https://*
  13. // @include file:///*
  14. // @grant GM_setValue
  15. // @grant GM_getValue
  16. // @grant GM_xmlhttpRequest
  17. // @grant GM_log
  18. // @grant GM_addStyle
  19. // @grant GM_registerMenuCommand
  20. // @grant GM_getResourceText
  21. // @grant GM_info
  22. // @require https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js
  23. // @require https://ajax.googleapis.com/ajax/libs/jqueryui/1.9.1/jquery-ui.min.js
  24. // @resource jQueryUICSS https://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/smoothness/jquery-ui.css
  25. // @homepage http://www.mentalps.5gbfree.com
  26. // @namespace http://www.mentalps.5gbfree.com
  27. // @noframes
  28. // ==/UserScript==
  29.  
  30. //separate alternative domains with "|" char (first name is considered being main)
  31. var allHostNames = [
  32. "1fichier.com|dl4free.com",
  33. "thefile.me",
  34. "vidzi.tv",
  35. "videoweed.es",
  36. "vodlocker.com",
  37. "nowvideo.sx",
  38. "cloudtime.to",
  39. "thevideo.me",
  40. "vidbull.com",
  41. "allmyvideos.net",
  42. "novamov.com",
  43. "filehoot.com",
  44. "stagevu.com",
  45. "gorillavid.in",
  46. "streamin.to",
  47. "4upld.com",
  48. "cloudshares.net",
  49. "swoopshare.com",
  50. "newfileland.com",
  51. "2shared.com",
  52. "fileupload.pw",
  53. "zxcfiles.com",
  54. "up07.net",
  55. "4shared.com",
  56. "adrive.com",
  57. "aisfile.com",
  58. "hexupload.com",
  59. "bezvadata.cz",
  60. "burnupload.com|burnupload.ihiphop.com",
  61. "xkeepfile.com|Gamesena.com",
  62. // "firedrive.com",
  63. "usersfiles.com",
  64. "pan.baidu.com",
  65. "radicalshare.com",
  66. "cramit.in|cramitin.net",
  67. "datei.to",
  68. "daten-hoster.de|filehosting.org|xtraupload.de",
  69. "demo.ovh.eu",
  70. "depositfiles.com",
  71. "divshare.com",
  72. "easy-share.com|crocko.com",
  73. "easybytez.com",
  74. "edisk.cz",
  75. "euroshare.eu",
  76. "file-upload.net",
  77. "yadi.sk",
  78. "ryushare.com",
  79. "wizupload.com",
  80. "fastshare.cz",
  81. "filefactory.com",
  82. "share.vnn.vn",
  83. "yunpan.cn",
  84. "gulfup.com",
  85. "tropicshare.com",
  86. "cloudzilla.to",
  87. "inclouddrive.com",
  88. "fileflyer.com",
  89. "filerio.com|filekeen.com",
  90. "up.4share.vn",
  91. "upfile.vn",
  92. "datafilehost.com",
  93. "fileband.com",
  94. "worldbytez.com",
  95. "files.mail.ru",
  96. "filepost.com|fp.io",
  97. "filesflash.com",
  98. "box.com",
  99. "box.net",
  100. "goldbytez.com",
  101. "sdilej.cz",
  102. "ex-load.com",
  103. "filesmonster.com",
  104. "filestore.to",
  105. "freakshare.net",
  106. "hulkload.com",
  107. "filedropper.com",
  108. "free-uploading.com",
  109. "gamefront.com|filefront.com",
  110. "gettyfile.ru",
  111. "gigapeta.com",
  112. "gigasize.com",
  113. "hellshare.com",
  114. "hellspy.com",
  115. "hitfile.net",
  116. "hostuje.net",
  117. "freefilehosting.net",
  118. "free.fr",
  119. "hulkshare.com",
  120. "hyperfileshare.com",
  121. "filecloud.io|ifile.it",
  122. "ifolder.ru",
  123. "jumbofiles.com",
  124. "uploadrocket.net",
  125. "lafiles.com",
  126. "leteckaposta.cz|sharegadget.com",
  127. "letitbit.net",
  128. "load.to",
  129. "mediafire.com",
  130. "megafileupload.com",
  131. "megashares.com",
  132. "movshare.net",
  133. "muchshare.net",
  134. "myupload.dk",
  135. "narod.ru|narod.yandex.ru",
  136. "netload.in",
  137. "fboom.me",
  138. "fileboom.me",
  139. "openfile.ru",
  140. "partage-facile.com",
  141. "plunder.com",
  142. // "putlocker.com",
  143. "sharerapid.cz",
  144. "exclusiveloader.com",
  145. "acefile.net",
  146. "queenshare.com",
  147. "quickshare.cz",
  148. "rapidgator.net",
  149. "keep2share.com",
  150. "oboom.com",
  151. "filepi.com",
  152. "neodrive.co",
  153. "rarefile.net",
  154. "rayfile.com",
  155. "rghost.net",
  156. "sendmyway.com",
  157. "clicknupload.com",
  158. "sharemods.com",
  159. "hostr.co",
  160. "sendspace.com",
  161. "sharecash.org",
  162. "share-links.biz",
  163. "share-online.biz|egoshare.com",
  164. "megarapid.cz",
  165. "shareflare.net",
  166. "solidfiles.com",
  167. "led.wf",
  168. "lan.wf",
  169. "adlink.wf",
  170. "click.tf",
  171. "kyc.pm",
  172. "ssh.tf",
  173. "ssh.yt",
  174. "yep.pm",
  175. "stahovanizasms.cz",
  176. "tufiles.ru",
  177. "turbobit.net",
  178. "filecloud.cc",
  179. "tikfile.com",
  180. "cloudsix.me",
  181. "turboupload.com",
  182. "uloz.to|ulozto.cz|bagruj.cz|zachowajto.pl",
  183. "ulozisko.sk",
  184. "uloziste.com",
  185. "unibytes.com",
  186. "upload-il.net|przeslij.net",
  187. "uploaded.to|ul.to",
  188. "uploading.com",
  189. "chayfile.com",
  190. "rockfile.eu",
  191. "24uploading.com",
  192. "uploadspace.pl",
  193. "upnito.sk",
  194. "uptobox.com",
  195. "usaupload.net",
  196. "veehd.com",
  197. "videobb.com",
  198. "vip-file.com",
  199. "webshare.cz",
  200. "xdisk.cz",
  201. "yunfile.com|filemarkets.com",
  202. "ziddu.com",
  203. "krotix.net",
  204. "zippyshare.com",
  205. "rodfile.com",
  206. "migahost.com",
  207. "wikiupload.com",
  208. "uploadstube.de",
  209. "faststore.org",
  210. "flyfiles.net",
  211. "nowdownload.eu",
  212. "prefiles.com",
  213. "axifile.com",
  214. "rapidsonic.com|fileparadox.com",
  215. "hackerbox.org",
  216. "amonshare.com",
  217. "data.hu",
  218. "brupload.net",
  219. "userscloud.com",
  220. "netkups.com",
  221. "edoc.com",
  222. "xfileload.com",
  223. "jumbofile.net",
  224. "kumpulbagi.com",
  225. "uppit.com|up.ht",
  226. "downloadani.me",
  227. "filesabc.com",
  228. "sharebeast.com",
  229. "180upload.com",
  230. "verzend.be",
  231. "movreel.com",
  232. "4up.me",
  233. "extmatrix.com",
  234. "sendfiles.nl",
  235. "yourfilestore.com",
  236. "filebig.net",
  237. "nekaka.com",
  238. "file4safe.com",
  239. "tusfiles.net",
  240. "filemac.com",
  241. "idup.in",
  242. "fileswap.com",
  243. "ozofiles.com",
  244. "loudupload.net",
  245. "nosupload.com",
  246. "gboxes.com",
  247. "myvdrive.com|fileserving.com",
  248. "filesin.com",
  249. "novafile.com",
  250. "longfiles.com",
  251. "uploadhero.com",
  252. "uploadbaz.com",
  253. "bitupload.com",
  254. "indowebster.com",
  255. "superload.cz",
  256. "mafiastorage.com",
  257. "4upfiles.com",
  258. "filesmelt.com",
  259. "hellupload.com",
  260. "uploadingit.com",
  261. "stiahni.si",
  262. "sendspace.pl",
  263. "fastshare.org",
  264. "filejoker.net",
  265. "filestore.com.ua",
  266. "secureupload.eu",
  267. "rapidfileshare.net",
  268. "stiahnito.sk",
  269. "rusfolder.com",
  270. "fileover.net",
  271. "catshare.net",
  272. "anonfiles.com",
  273. "mixturecloud.com",
  274. "fileparadox.in",
  275. "filedais.com",
  276. "imdb.com",
  277. "nitroflare.com",
  278. "akafile.com",
  279. "creafile.net",
  280. "hugefiles.net",
  281. "vidxden.com",
  282. "up.top4top.net",
  283. "upload.ee",
  284. "shareplace.org",
  285. "uploadc.com",
  286. "remixshare.com",
  287. "exoshare.com",
  288. "borncash.org",
  289. "junocloud.me",
  290. "keep2share.cc",
  291. "k2s.cc",
  292. "expressleech.com",
  293. "2downloadz.com",
  294. "mightyupload.com",
  295. "anysend.com",
  296. "datafile.com",
  297. "upstore.net",
  298. "upsto.re",
  299. "speedy.sh",
  300. "sanshare.com",
  301. "kingfiles.net",
  302. "uploadhero.co",
  303. "ge.tt",
  304. "filesflash.net",
  305. "salefiles.com",
  306. "keep2s.cc",
  307. "megairon.net",
  308. "datoid.cz",
  309. "cloudstor.es",
  310. "streamfile.com",
  311. "eyesfile.ca",
  312. "filemoney.com",
  313. "uploadboy.com",
  314. "speedshare.eu",
  315. "google.com",
  316. "unlimitzone.com",
  317. "rioupload.com",
  318. "rg.to",
  319. "jumbofiles.org",
  320. "fshare.vn",
  321. "spaceforfiles.com",
  322. "up.media1fire.com",
  323. "depfile.com",
  324. "go4up.com",
  325. "dropbox.com",
  326. "redbunker.net",
  327. "divxpress.com",
  328. "mega.nz|mega.co.nz",
  329. "anafile.com",
  330. "uploadable.ch",
  331. "arabloads.com",
  332. "sharerepo.com",
  333. "sfshare.se",
  334. "files.fm",
  335. "koofile.com",
  336. "vidplay.net",
  337. "storagon.com",
  338. "doraupload.com",
  339. "openload.io",
  340. "geupload.com|lenfile.com",
  341. "uploads.xxx",
  342. ];
  343.  
  344. try
  345. {
  346. //iframes excluded
  347. if (window.top != window.self)
  348. {
  349. return;
  350. }
  351. //allHostNames sites excluded
  352. if (window.location.href.match("https?:\/\/(www\.)?[\w\.-]*(?:" +
  353. allHostNames.join("|").replace(/\./g, "\\.").replace(/-/g, "\\-") +
  354. ")"))
  355. {
  356. return;
  357. }
  358. }
  359. catch (e)
  360. {
  361. return;
  362. }
  363.  
  364. //separate alternative domains with "|" char (first name is considered being main)
  365. var allContainerNames = [
  366. "adf.ly",
  367. "linkcrypt.ws",
  368. "linksafe.me",
  369. "linksave.in",
  370. "linkto.net",
  371. "madlink.sk",
  372. "multiload.cz",
  373. "mirrorcreator.com",
  374. "ncrypt.in",
  375. "redi.re",
  376. "relink.us",
  377. "safelinking.net",
  378. "theloo.katt.it",
  379. "bit.ly",
  380.  
  381. ];
  382.  
  383. //separate alternative domains with "|" char (first name is considered being main)
  384. var allObsoleteNames = [
  385. "uloz.cz",
  386. "daj.to",
  387. "bl.st",
  388. "2drive.net",
  389. "uncapped-downloads.com",
  390. "sockshare.com",
  391. "ddlstorage.com",
  392. "dataport.cz",
  393. "dizzcloud.com",
  394. "stahovadlo.cz",
  395. "shared.com",
  396. "storage.to",
  397. "putlocker.com",
  398. "lumfile.com",
  399. "lumfile.se",
  400. "lumfile.eu",
  401. "firedrive.com",
  402. "fileshare.in.ua",
  403. "filecore.co.nz",
  404. "iskladka.cz",
  405. "file-rack.com",
  406. "fast-load.net",
  407. "subory.sk",
  408. "bigandfree.com",
  409. "fileop.com",
  410. "mujsoubor.cz",
  411. "sendfile.to",
  412. "superfastfile.com",
  413. "quickyshare.com",
  414. "duckload.com",
  415. "uploadstore.net",
  416. "meinupload.com",
  417. "dualshare.com",
  418. "2xupload.to|2xupload.de",
  419. "oxedion.com",
  420. "uploadline.com",
  421. "dll.bz",
  422. "movieshare.in",
  423. "milledrive.com",
  424. "quickupload.net",
  425. "safelink.in",
  426. "metadivx.com",
  427. "divxlink.com",
  428. "uploadrack.com",
  429. "teradepot.com",
  430. "dataup.to",
  431. "upit.to",
  432. "driveway.com",
  433. "eatlime.com",
  434. "a2zuploads.com",
  435. "friendlyfiles.net",
  436. "flyfile.us",
  437. "speedyshare.com",
  438. "uploadspace.eu",
  439. "keepfile.com",
  440. "piggyshare.com",
  441. "uplly.com",
  442. "filecrown.com",
  443. "6giga.com",
  444. "uploadjockey.com",
  445. "bluehost.to",
  446. "filegu.ru",
  447. "filebase.to",
  448. "up-file.com",
  449. "xvideos.com",
  450. "ufox.com",
  451. "filebling.com",
  452. "loaded.it",
  453. "uploadcell.com",
  454. "uploadshare.cz",
  455. "mangoshare.com",
  456. "filestab.com",
  457. "crazyupload.com",
  458. "gaiafile.com",
  459. "sharejunky.com",
  460. "fileho.com",
  461. "bigandfree.com",
  462. "bigfile.in",
  463. "bigshare.eu",
  464. "dahosting.org",
  465. "digisofts.net",
  466. "file4save.com",
  467. "filechip.com",
  468. "filescloud.com",
  469. "saveqube.com",
  470. "turboshare.de",
  471. "z-upload.com",
  472. "youshare.com",
  473. "jiffyupload.com",
  474. "gigeshare.com",
  475. "datenklo.net",
  476. "upload.dj",
  477. "loadfiles.in",
  478. "upit.to",
  479. "dsfileshare.com",
  480. "sharesimple.net",
  481. "4files.net",
  482. "wooupload.com",
  483. "odsiebie.com",
  484. "filenavi.com",
  485. "3oof.com",
  486. "meshwaar.com",
  487. "maxupload.com",
  488. "share.cx",
  489. "atserver.eu",
  490. "hotfiles.ws",
  491. "esnips.com",
  492. "tuxfile.com",
  493. "file2upload.net",
  494. "filebling.com",
  495. "turboshare.com",
  496. "rarhost.com",
  497. "isharehd.com",
  498. "i741.com",
  499. "dataup.de",
  500. "fofly.com",
  501. "shareonall.com",
  502. "sexuploader.com",
  503. "megaupload.com|megavideo.com|megaporn.com|megarotic.com",
  504. "uploadhyper.com",
  505. "filespawn.com",
  506. "caizzii.com",
  507. "volnyweb.cz",
  508. "usershare.net",
  509. "filescash.net",
  510. "metahyper.com",
  511. "combozip.com",
  512. "x7.to",
  513. "uploadbox.com",
  514. "enterupload.com|flyupload.com",
  515. "filepoint.de",
  516. "mystream.to",
  517. "x-fs.com",
  518. "shareator.com",
  519. "srapid.eu",
  520. "sosame.cz",
  521. "filesdump.com",
  522. "2-klicks.de",
  523. "uploking.com",
  524. "silofiles.com",
  525. "upfile.in",
  526. "filehook.com",
  527. "uploadking.com",
  528. "uploadhere.com",
  529. "kewlshare.com",
  530. "rapidable.com",
  531. "uploadwaste.com",
  532. "filemup.com",
  533. "filesonic.com|sharingmatrix.com",
  534. "fileserve.com",
  535. "wupload.com",
  536. "skipfile.com",
  537. "smartuploader.com",
  538. "dualshare.com",
  539. "storeandserve.com",
  540. "mountfile.com",
  541. "transitfiles.com",
  542. "uploadstation.com",
  543. "filejungle.com",
  544. "shareshared.com",
  545. "quickyshare.com",
  546. "save.am",
  547. "petandrive.com",
  548. "file2box.com",
  549. "flyshare.cz",
  550. "yabadaba.ru",
  551. "cloudcache.cc",
  552. "yourfilehost.com",
  553. "jakfile.com",
  554. "kickload.com",
  555. "pyramidfiles.com",
  556. "refile.net",
  557. "zshare.net",
  558. "ddlani.me|ddlanime.com",
  559. "ftp2share.com",
  560. "fooget.com",
  561. "rapidhide.com",
  562. "gotupload.com",
  563. "mooload.com",
  564. "zupload.com",
  565. "mytempdir.com",
  566. "onionshare.com",
  567. "stahnu.to",
  568. "oron.com",
  569. "badongo.com",
  570. "filereactor.com",
  571. "filegaze.com",
  572. "4bytez.com",
  573. "1hostclick.com",
  574. "anonstream.com",
  575. "batshare.com",
  576. "bitroad.net",
  577. "brontofile.com",
  578. "cloudnxt.net",
  579. "cloudnator.com|shragle.com",
  580. "filesfrog.net",
  581. "coolshare.cz",
  582. "dotavi.com",
  583. "ezyfile.net",
  584. "file-bit.net",
  585. "filecosy.com",
  586. "fileduct.com|fileduct.net",
  587. "filefat.com",
  588. "filelaser.com",
  589. "filemashine.com",
  590. "fileserver.cc",
  591. "filetechnology.com",
  592. "fireuploads.net",
  593. "gigfiles.net",
  594. "holderfile.com",
  595. "ihostia.com",
  596. "k2files.com",
  597. "mojofile.com",
  598. "ovfile.com",
  599. "qshare.com",
  600. "shafiles.me",
  601. "sharefilehost.com",
  602. "shareupload.com",
  603. "stahuj.to",
  604. "ugotfile.com",
  605. "uploadboost.com",
  606. "fileom.com",
  607. "vidhog.com",
  608. "xfileshare.eu",
  609. "bzlink.us",
  610. "bulletupload.com",
  611. // "wizzupload.com",
  612. "bloggerarticles.com",
  613. "mojedata.sk",
  614. "sharpfile.com",
  615. "upgrand.com",
  616. "nasdilej.cz",
  617. "mediatack.cz",
  618. "share-it.to",
  619. "primeupload.com",
  620. "filebeer.info",
  621. "baberepublic",
  622. "xtu.me",
  623. "sharebase.de",
  624. "luckyshare.net",
  625. "filerobo.com",
  626. "filevelocity.com",
  627. "filezpro.com",
  628. "file4sharing.com",
  629. "cing.be",
  630. "ufile.eu",
  631. "pigsonic.com",
  632. "fileupped.com",
  633. "sharerun.com",
  634. "filesaur.com",
  635. "rapidslnare.com",
  636. "bestsharing.com",
  637. "savefiles.net",
  638. "file2share.biz",
  639. "filecache.de",
  640. "monsteruploads.eu",
  641. "b9bb.com",
  642. "aiotool.net",
  643. "jamber.info",
  644. "megaftp.com",
  645. "desiupload.net",
  646. "file27.com",
  647. "yastorage.com",
  648. "filehost.ws",
  649. "copyload.com",
  650. "venusfile.com",
  651. "aieshare.com",
  652. "terafile.co",
  653. "terafile.com",
  654. "fileza.net",
  655. "filerose.com",
  656. "squillion.com",
  657. "fileprohost.com",
  658. "bitbonus.com",
  659. "warserver.cz",
  660. "uload.to",
  661. "sharedbit.net",
  662. "megaload.it",
  663. "filewinds.com",
  664. "uploadcore.com",
  665. "syfiles.com",
  666. "eyesfile.com",
  667. "hotfile.com",
  668. "superupl.com",
  669. "oteupload.com",
  670. "henchfile.com",
  671. "filegag.com",
  672. "HenchFile.com",
  673. "filedefend.com",
  674. "share-rapid.com|rapids.cz|share-credit.cz|share-central.cz|share-ms.cz|share-net.cz|srapid.cz|share-rapid.cz",
  675. "megabitshare.com",
  676. "cloudzer.com",
  677. "asfile.com",
  678. "cloudzer.net",
  679. "clz.to",
  680. "extabit.com",
  681. "247upload.com",
  682. "2download.de",
  683. "4fastfile.com",
  684. "asixfiles.com",
  685. "berofile.com",
  686. "bigupload.com",
  687. "cepzo.com",
  688. "clouds.to",
  689. "cobrashare.sk",
  690. "coraldrive.net",
  691. "cyberlocker.ch",
  692. "czshare.com",
  693. "darkport.org",
  694. "dark-uploads.com",
  695. "davvas.com",
  696. "enigmashare.com",
  697. "erofly.cz",
  698. "fastsonic.net",
  699. "filebox.com",
  700. "filecity.net",
  701. "filedap.com",
  702. "filedino.com",
  703. "filedownloads.org",
  704. "filefolks.com",
  705. "fileking.co",
  706. "filemates.com",
  707. "files.to",
  708. "files2k.eu",
  709. "filesector.cc",
  710. "bitshare.com",
  711. "filesega.com",
  712. "filesend.net",
  713. "filestay.com",
  714. "filestrum.com",
  715. "fileuplo.de",
  716. "fileupup.com",
  717. "forunesia.com",
  718. "freeuploads.fr",
  719. "uploa.dk",
  720. "getthebit.com",
  721. "getzilla.net",
  722. "goldfile.eu",
  723. "good.com",
  724. "grupload.com",
  725. "hellfile.com",
  726. "hipfile.com",
  727. "hitfile.com",
  728. "hulkfile.eu|duckfile.net",
  729. "i-filez.com",
  730. "ifile.ws",
  731. "kupload.org",
  732. "packupload.com",
  733. "lemuploads.com",
  734. "limelinx.com",
  735. "maxshare.pl",
  736. "megarelease.org",
  737. "megashare.com",
  738. "minus.com",
  739. "mlfat4arab.com",
  740. "multishare.cz",
  741. "nirafile.com",
  742. "ok2upload.com",
  743. "peejeshare.com",
  744. "premiuns.org",
  745. "przeklej.net",
  746. "qkup.net",
  747. "rapidupload.sk",
  748. "rockdizfile.com",
  749. "rocketfile.net",
  750. "share-now.net",
  751. "share76.com",
  752. "sharebees.com",
  753. "sharefiles.co",
  754. "slingfile.com",
  755. "sms4file.com",
  756. "space4file.com",
  757. "tigershare.net",
  758. "toucansharing.com",
  759. "ubuntuone.com",
  760. "unextfiles.com",
  761. "upaj.pl",
  762. "upfile.biz",
  763. "uploadbin.net",
  764. "uploadic.com",
  765. "uploadinc.com",
  766. "uploading4u.eu",
  767. "uploadjet.net",
  768. "uploadorb.com",
  769. "upthe.net",
  770. "uptorch.com",
  771. "vidbox.yt",
  772. "videozer.com",
  773. "vreer.com",
  774. "wallobit.com",
  775. "zooupload.com",
  776. "privatefiles.com",
  777. "xerver.co",
  778. "BillionUploads.com",
  779. "rapidshare.com",
  780. "rapidshare.ru",
  781. "4savefile.com",
  782. "bayfiles.com",
  783. "bayfiles.net",
  784. "dodane.pl",
  785. "dotsemper.com",
  786. "egofiles.com",
  787. "epicshare.net",
  788. "fiberupload.net",
  789. "filemonkey.in",
  790. "filemonster.net",
  791. "filepom.com",
  792. "filesbb.com",
  793. "fileshareup.com",
  794. "filevice.com",
  795. "gigaup.fr",
  796. "inafile.com",
  797. "isavelink.com",
  798. "loombo.com",
  799. "megafiles.se",
  800. "migupload.com",
  801. "mydisc.net",
  802. "nitrobits.com",
  803. "potload.com",
  804. "redload.net",
  805. "shareprofi.com",
  806. "sharesuper.info",
  807. "sinhro.net",
  808. "speedfile.cz",
  809. "speedshare.org",
  810. "storage.novoro.net",
  811. "swankshare.com",
  812. "swatupload.com",
  813. "upafile.com",
  814. "uploadmachine.com",
  815. "uploadsat.com",
  816. "upshared.com",
  817. "usefile.com",
  818. "yourfiles.to",
  819. "zomgupload.com",
  820. "ultramegabit.com",
  821. "uploadto.us",
  822.  
  823. ];
  824. ///////////////////////////////////////////////////////////////////////////////////////
  825. var firstRun = GM_getValue("First_run", true);
  826.  
  827. var chromeBrowser = /chrom(e|ium)/.test(navigator.userAgent.toLowerCase());
  828. //////////////////////////////////////////////////////////////////////////////////////
  829. try
  830. {
  831. var thisVersion = GM_info.script.version; //not supported in Scriptish and others
  832. var last_known_version = GM_getValue("last_known_version", "");
  833. if (!last_known_version)
  834. {
  835. last_known_version = thisVersion;
  836. GM_setValue("last_known_version", last_known_version);
  837. }
  838. //var newVersion = !(thisVersion == last_known_version);
  839. var newVersion = !(a.replace(/^(\d+\.\d+\.\d+).*/,'$1') == b.replace(/^(\d+\.\d+\.\d+).*/,'$1')); //true only if one of the first three numbers differs
  840. GM_setValue("last_known_version", thisVersion);
  841. }
  842. catch (err)
  843. {
  844. var newVersion = false;
  845. }
  846.  
  847. var now = (new Date()).getTime();
  848. var last_custom_rules_nag = GM_getValue('last_custom_rules_nag', 0);
  849. if (!last_custom_rules_nag)
  850. {
  851. last_custom_rules_nag = now;
  852. GM_setValue('last_custom_rules_nag', ''+now);
  853. }
  854.  
  855.  
  856. allHostNames.sort();
  857. allContainerNames.sort();
  858. allObsoleteNames.sort();
  859.  
  860. var RAND_STRING = "8QyvpOSsRG3QWq";
  861. var DEBUG_MODE = false;
  862.  
  863. var TOOLTIP_MAXWIDTH = 600; //in pixels
  864. var TOOLTIP_THUMBWIDTH = 200;
  865. var containers_processed = false;
  866.  
  867. //settings for keyboard functions start
  868. var CHECK_ALL_LINKS_KEY = "A";
  869. var CONFIGURATION_KEY = "C";
  870. var copy_to_dead_key = "D";
  871. var toggle_autocheck_key = "W";
  872. var toggle_Enable_Anonymizer_key = "Z";
  873. var first_key_keycode = '17'; // 18=ALT 16=Shift 17=Ctrl 32=SPACE_BAR 9=TAB
  874. var first_key_keycodename = 'CTRL';
  875. var second_key_keycode = '18';
  876. var second_key_keycodename = 'ALT';
  877. var CHECK_ALL_LINKS_KEYCODE = CHECK_ALL_LINKS_KEY.charCodeAt(0);
  878. var CONFIGURATION_KEYCODE = CONFIGURATION_KEY.charCodeAt(0);
  879. var copy_to_dead_keycode = copy_to_dead_key.charCodeAt(0);
  880. var toggle_autocheck_keycode = toggle_autocheck_key.charCodeAt(0);
  881. var toggle_Enable_Anonymizer_keycode = toggle_Enable_Anonymizer_key.charCodeAt(0);
  882. //settings for keyboard functions end
  883.  
  884. //global settings start
  885. var Show_black_background_in_DL_links, Show_line_through_in_dead_links, Color_DL_links;
  886. var Live_links_color, Dead_links_color, Temp_unavailable_links_color, Premium_links_color, Ref_anonymize_service;
  887. var Do_not_linkify_DL_links, Keyboard_functions, Autocheck, Enable_Anonymizer;
  888. var Show_progress_stats, Display_tooltip_info, Icon_set;
  889. var Progress_box_pos_bottom, Progress_box_pos_right, Progress_box_opacity, Progress_box_background_color, Progress_box_item_color;
  890. var Progress_box_refresh_rate;
  891. var Obsolete_file_hosts;
  892. var Custom_rules, Custom_rules_text;
  893.  
  894. var messageBox = document.createElement('b'); // top-left message box
  895.  
  896. var cLinksTotal = 0;
  897. var cLinksDead = 0;
  898. var cLinksAlive = 0;
  899. var cLinksUnava = 0;
  900. var cLinksprem = 0;
  901. var cLinksProcessed = 0;
  902.  
  903. var intervalId; //for updateProgress()
  904.  
  905. //icon resources
  906. var PAW_ICON_GREEN = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAANCAYAAABy6+R8AAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYwP2SycQWHTA4vcAAPK7b8HUKAgDgGiD4c93/+8//UegJQCAZkmScQAAXkQkLlTKsz/HCAAARKCBKrBBG/TBGCzABhzBBdzBC/xgNoRCJMTCQhBCCmSAHHJgKayCQiiGzbAdKmAv1EAdNMBRaIaTcA4uwlW4Dj1wD/phCJ7BKLyBCQRByAgTYSHaiAFiilgjjggXmY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n5gj1OlG5TPxoHro7kUsC4mdQUB5u0NdziW/r5q2M/PkLfG2NsLwMkRHevyVkWQib26t+FJYMIIOUvt5XdmXkunXEke/sQchRCNDdRfAQ8vXND97af1qCxqkRLUj9XKFq/cUUMMmRQHKFZquh7OBhCRr/aATQ/I97foxKZ9z7A9QA5voyr3dtAAAAAElFTkSuQmCC';
  913. var RSLC_ICON_YELLOW = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAANCAYAAABy6+R8AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH2AQJDBgxYO68rwAAAZNJREFUeNptkr9LW1EcxT/3GhOTKIG8QTpm8B8IIoJTFkFwsXVyUaxFJHYoFzJYUVFHn4sKtoidCoKtIigWOtQOhRKowaFzJwcF0VeJ+fFe7nUwP57R7/S9nO+595z7PQJfGUgAsWqPaUBOC/yrHQI+QjKTXc7GQq4EhP+uKzdUcbtnelvhDzXQQHL2bCkbxhOA5GmZ24LUC73zPWE4lQYSmexynaCmjh5Nq9FdANER1uL9j7nfeUhIIFaVJNXEPrguKvPzgfD2G0iBGt8DkPG4CGiIyapZAWBvDUEoBOfnqPQxaANxC3v7Ze1hoQFpmsTbGwMQicLNNeTz2HaKYuO/4DnTauwLeC6i8wW4ZdSbA9rw/GtB6kaPmjyESATKZVZWUxAMQqnI9MTXOqdGcvRFoSw8o+0Pg1DxsD+PcFcJYH8aphSNsr71CkAH/17danAEQAGSa98zv7x4W9AIpGkRzap18cKU3vUv9lmQq6N5SH7cSZ8Uuqx205SI1rPL/6/HN1MW5GiKC84z2at6dixf9u4B/PqUtJuX27QAAAAASUVORK5CYII=';
  914. var RSLC_ICON_PINK = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAANCAYAAABy6+R8AAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4i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Mmz06pKQ//BVnWJl89daL0z8MgeLfiDHAN6SAaZlhjjzP+x8SDAcX3P1zuueVDVD8JEiSkVOcZbWAJKPi8wu/q4H8nSgBzcyQl9jN1ifvp8z8+acQw50brxk2Rd1u+fvzfy1MDaN7DOO7ohnSgqe2Pf0/rYJh1/N7/0uB4tdYuRknJMzgzZYyV2L89pub4c3Xbwwb4q+de3/9pwVQ/jfcAGYWhrJ5x207ZdSFGB59Ockwb+L3vydX/7oRPYFPW05DnuHbb1aGD79+MRyZev/H9TlvTIB6riK7EhQGbNr2rJe714eq/fjLwPD8x22GO5/eM/CzijN8BdoD0nz3/FuG/an3Sv7/ZehFDyBYIHplzFHcYullyPjp13eGj79/MHwEagRpfvPpB8OuuJsHvz785QRU9w+XAQwCMkyby3aZ+/xj5YBr/vDzD8OpngefHq55rw9U8gBbFCFHo4pljvAV60x19o+/fgMN+cNw79h7hjNFD5IZ/jPMwxXHKOmAmYOxPWCNWgWzKBfDm7c/GY4m3Nr089Uff3yJBD0h8Ug68tzQbVCUvtD66PWrXR91gWIvSTEABOw5pNlKfjz91QNkHySUTAGg7t0uvj1ytQAAAABJRU5ErkJggg==';
  917. var NEW_ICON_RED = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAA6klEQVQ4jbWTwWrCQBRFz6Rxnay6iuAXlJIg+BHZZR/d6++4t/5MpRQRf8CCrurGrDP6uumESTol04J3dbmPd7hvYBTAG5QBzIFH/PQpsBzDWm2gDGEFKM9lIxGYBSEsustRnpPWNZkImQip1sRF0QUoBQv1DgdgZE9SrdmGIX0Z8NFKni8XHqIIgEzkR+dMhGtVsYvjJgt6L+1Rq4FN/hcA2md01a0PjhPM8n44bDLjXeBf36A+nZzeG+Cr+wEGSeL0LsDZDq5VBcDT8dhkxpuZpbN6hXIAL76Vbd1gqgC+IX/6zhqWE1h/AYSwSjYrmXJlAAAAAElFTkSuQmCC';
  918. var NEW_ICON_YELLOW = 'data:image/png;base64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XALh5nEc/phARnaSJSSUnO5G+B8tnIkr6rjMTSqfMZQXZ9vE1xGKJpPe4DDjXAYkEjAwmzwwDLIv0NZlE1MYAjsQoAOL8C5rY2AxPlIjwP/wcACKn3tWfrwJ4AAAAAElFTkSuQmCC';
  919. var NEW_ICON_PINK = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABUklEQVQ4jY3TsUuWURQG8F8WEvFNDREfIg5RURAOIeL0DhJBS0tDY9BQQ0Oj29kiIvoDhBpFQRTUD1GKi0sRtEs0SEQ0RBQIRcVXw3eF6+vrWwcunPvc53nuPffcS0uEmA0x38Y5cohwGjOYxBBe4VGI3j8NQlzHYhaW0cfNEAslWCfBw4yvYhkv8hjCgxD7yMdquw/jbJ4+xq2cz+AKdrJRv9EAv/EDx3Ft75QhtrHdcFpHy0mS/lSqcVzAFM7he6XaTNLXJoOmS+ziOc4XcB893A3xodUgm5zAHdzHSLH0DhdD/GwsoSjlV5Je5nK+YQUTOInXSXq7x6134RQuo4unGf6Me7iKMxgrNfUuXMJazr8U+DA6Of/UZrCF9xjFM3zELpZwOptulIKmLlQGNXdqS7u4EWK9BA9cYpJ2KtWcwaMazcInuB3iTZ3fGv/znf8CBMxX4hrPUbUAAAAASUVORK5CYII=';
  920.  
  921. //global settings end
  922. if (window.opera && !window.console)
  923. {
  924. window.console = {};
  925.  
  926. function fn()
  927. {
  928. opera.postError(arguments);
  929. };
  930. ['log', 'debug', 'info', 'warn', 'error', 'assert', 'dir', 'dirxml', 'group', 'groupEnd', 'time', 'timeEnd', 'count', 'trace', 'profile', 'profileEnd'].forEach(function (name)
  931. {
  932. window.console[name] = fn;
  933. });
  934. }
  935.  
  936. //displays colored text in message box
  937. function sendMessage(text, color)
  938. {
  939. var msgDiv = document.createElement('div');
  940. msgDiv.style.color = color;
  941. msgDiv.innerHTML = text;
  942. messageBox.appendChild(msgDiv);
  943. setTimeout(function(){messageBox.removeChild(msgDiv)}, 3000);
  944. }
  945.  
  946. function linkify(totalourls)
  947. { // code from http://userscripts.org/scripts/review/2254 Linkify ting
  948. var ikkeTilladteTags;
  949. var allLinksRegex = "(?:http:\/\/.+?\\?)?(?:https?:\/\/)?"
  950. + "[0-9A-Za-z]+(?:[\\.-][0-9A-Za-z]+)*\\.[A-Za-z]+/" //instead of totalourls
  951. + "[\\w\\–\\-\\.+$!*\\/()\\[\\]\',~%?:@#&=\\\\\\—;…×Ã\\_\\u0080-\\u03FF’‘" + (Allow_spaces_in_DL_links ? "\\u0020" : "") + "]*";
  952. allLinksRegex = new RegExp(allLinksRegex, "g");
  953. var regexy = "^(?:http:\/\/.+?\\?)?(?:https?:\/\/)?(?:www\\.)?(?:" + totalourls + ")";
  954.  
  955. if (Do_not_linkify_DL_links)
  956. ikkeTilladteTags = ['a', 'head', 'script', 'style', 'title', 'option', 'iframe', 'textarea', 'span']; //tags, hvor det der stAΞ’Β¥r inden i ikke skal vAΞ’Β¦re links
  957. else
  958. ikkeTilladteTags = ['a', 'head', 'script', 'style', 'title', 'option', 'iframe', 'textarea']; //tags, hvor det der stAΞ’Β¥r inden i ikke skal vAΞ’Β¦re links
  959.  
  960. var regex = new RegExp(regexy);
  961. var textNode, muligtLink;
  962.  
  963. var path = "//text()[not(parent::" + ikkeTilladteTags.join(" or parent::") + ") and contains(.,'/')]";
  964. var textNodes = document.evaluate(path, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  965.  
  966. var i = textNodes.snapshotLength;
  967. while (i--)
  968. {
  969. textNode = textNodes.snapshotItem(i);
  970.  
  971. muligtLink = textNode.nodeValue; //all links on page
  972.  
  973. var myArray = null;
  974. var span = null;
  975. var lastLastIndex = 0;
  976. allLinksRegex.lastIndex = 0;
  977. if (/^https?:\/\/~[\w\s\~]*\//.test(muligtLink))
  978. {
  979. if (textNode.parentNode.className == "adead_link") continue;
  980. var censoredLink = muligtLink;
  981. var span = document.createElement('span');
  982. span.className = "adead_link";
  983. $(span).attr('warlc_error', "Cause of error: <b>Censored link.</b>");
  984. $(span).html(censoredLink);
  985. span.addEventListener("mouseover", displayTooltipError, false);
  986. cLinksTotal++; cLinksProcessed++; cLinksDead++;
  987. textNode.parentNode.replaceChild(span, textNode);
  988. continue;
  989. alert(censoredLink);
  990. }
  991. while (myArray = allLinksRegex.exec(muligtLink)) //find all links
  992. {
  993. if (!regex.test(myArray[0])) //this link is not recognized
  994. {
  995.  
  996. continue;
  997. }
  998. if (!span)
  999. span = document.createElement('span');
  1000.  
  1001. var link = myArray[0];
  1002. span.appendChild(document.createTextNode(muligtLink.substring(lastLastIndex, myArray.index))); //inds?t det der kommer for dette hit
  1003.  
  1004. var $a = $("<a>" + link + "</a>")
  1005. if (!link.match(/https?:\/\//))
  1006. {
  1007. link = 'http://' + link;
  1008. }
  1009.  
  1010. $a.attr("href", link.replace(/\[\/hide:\w+\]/,""))
  1011. .addClass("processing_link")
  1012. .appendTo(span);
  1013. lastLastIndex = allLinksRegex.lastIndex;
  1014. }
  1015. if (span)
  1016. {
  1017. span.appendChild(document.createTextNode(muligtLink.substring(lastLastIndex))); //ins?t det der kommer efter sidste hit
  1018. textNode.parentNode.replaceChild(span, textNode);
  1019. }
  1020. }
  1021. }
  1022.  
  1023. function add_WARLC_style()
  1024. {
  1025. if (!(document.getElementsByTagName('WARLC')[0]))
  1026. {
  1027. var meta_not_to_add_more_style = document.createElement("WARLC");
  1028. meta_not_to_add_more_style.setAttribute('content', 'war_links_checker');
  1029. meta_not_to_add_more_style.setAttribute('name', 'description');
  1030. document.getElementsByTagName('head')[0].appendChild(meta_not_to_add_more_style);
  1031. alive_link_png = "";
  1032. adead_link_png = "";
  1033. unava_link_png = "";
  1034. prem_link_png = "";
  1035. switch(Icon_set)
  1036. {
  1037. //no icons
  1038. case 0: break;
  1039. // cat paws
  1040. case 1: alive_link_png = PAW_ICON_GREEN;
  1041. adead_link_png = PAW_ICON_RED;
  1042. unava_link_png = PAW_ICON_YELLOW;
  1043. prem_link_png = PAW_ICON_PINK;
  1044. break;
  1045. // classic RSLC look
  1046. case 2: alive_link_png = RSLC_ICON_GREEN;
  1047. adead_link_png = RSLC_ICON_RED;
  1048. unava_link_png = RSLC_ICON_YELLOW;
  1049. prem_link_png = RSLC_ICON_PINK;
  1050. break;
  1051. // New Icons
  1052. case 3: alive_link_png = NEW_ICON_GREEN;
  1053. adead_link_png = NEW_ICON_RED;
  1054. unava_link_png = NEW_ICON_YELLOW;
  1055. prem_link_png = NEW_ICON_PINK;
  1056. break;
  1057. // cat paws
  1058. default:alive_link_png = PAW_ICON_GREEN;
  1059. adead_link_png = PAW_ICON_RED;
  1060. unava_link_png = PAW_ICON_YELLOW;
  1061. prem_link_png = PAW_ICON_PINK;
  1062. break;
  1063. }
  1064. processing_link_gif = 'data:image/gif;base64,' + // or temporary anavailable
  1065. 'R0lGODlhCgAKAJEDAMzMzP9mZv8AAP///yH/C05FVFNDQVBFMi4wAwEAAAAh+QQFAAADACwAAAAACgAKAAACF5wncgaAGgJzJ647cWua4sOBFEd62VEAACH5BAUAAAMALAEAAAAIAAMAAAIKnBM2IoMDAFMQFAAh+QQFAAADACwAAAAABgAGAAACDJwHMBGofKIRItJYAAAh+QQFAAADACwAAAEAAwAIAAACChxgOBPBvpYQYxYAIfkEBQAAAwAsAAAEAAYABgAAAgoEhmPJHOGgEGwWACH5BAUAAAMALAEABwAIAAMAAAIKBIYjYhOhRHqpAAAh+QQFAAADACwEAAQABgAGAAACDJwncqi7EQYAA0p6CgAh+QQJAAADACwHAAEAAwAIAAACCpRmoxoxvQAYchQAOw%3D%3D';
  1066.  
  1067. var dead_color_css, live_color_css, unava_color_css, prem_color_css, black_background_css;
  1068.  
  1069. if (Color_DL_links)
  1070. {
  1071. dead_color_css = 'color:' + Dead_links_color + ' !important;';
  1072. live_color_css = 'color:' + Live_links_color + ' !important;';
  1073. unava_color_css = 'color:' + Temp_unavailable_links_color + ' !important;';
  1074. container_color_css = 'color:' + Container_links_color + ' !important;';
  1075. prem_color_css = 'color:' + Premium_links_color + ' !important;';
  1076. }
  1077. else
  1078. {
  1079. dead_color_css = live_color_css = unava_color_css = container_color_css = prem_color_css = '';
  1080. }
  1081.  
  1082. if (Show_black_background_in_DL_links)
  1083. {
  1084. black_background_css = 'background-color: black !important;';
  1085. }
  1086. else
  1087. {
  1088. black_background_css = '';
  1089. }
  1090.  
  1091. if (Show_line_through_in_dead_links)
  1092. {
  1093. line_through_css = 'text-decoration: line-through !important;';
  1094. }
  1095. else
  1096. {
  1097. line_through_css = '';
  1098. }
  1099.  
  1100. GM_addStyle(".alive_link {background:transparent url(" + alive_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;" + live_color_css + black_background_css + "}");
  1101. 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 + "}");
  1102. GM_addStyle(".unava_link {background:transparent url(" + unava_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;" + unava_color_css + black_background_css + "}");
  1103. GM_addStyle(".processing_link {background:transparent url(" + processing_link_gif + ") no-repeat scroll 100% 50%;padding-right:15px;" + container_color_css + black_background_css + "}");
  1104. GM_addStyle(".container_link {background:transparent url(" + processing_link_gif + ") no-repeat scroll 100% 50%;padding-right:15px;" + container_color_css + black_background_css + "}");
  1105. GM_addStyle(".container_list {font-size:90%; list-style-type:square; padding: 0px 5% 0px; margin: 0px}");
  1106. GM_addStyle(".prem_link {background:transparent url(" + prem_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;" + prem_color_css + black_background_css + "}");
  1107. }
  1108. }
  1109.  
  1110. var warlcTooltip = null;
  1111. var mouseoverLink = null; //link href with mouse cursor over it
  1112.  
  1113. var lastX = 0;
  1114. var lastY = 0;
  1115.  
  1116. $(document).ready(initTooltip);
  1117. //inits tooltip
  1118. function initTooltip()
  1119. { warlcTooltip = document.createElement("div");
  1120. 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;");
  1121. warlcTooltip.style.visibility = "hidden";
  1122. document.body.appendChild(warlcTooltip);
  1123. }
  1124.  
  1125. //"mousemove" event handler for all links
  1126. function moveTooltip(event)
  1127. {
  1128. if ((Math.abs(lastX - event.clientX) + Math.abs(lastY - event.clientY)) < 6)
  1129. { //no need to reflow if the cursor moved just a little
  1130. return;
  1131. }
  1132. else
  1133. {
  1134. lastX = event.clientX;
  1135. lastY = event.clientY;
  1136. }
  1137.  
  1138. posX = event.clientX + window.pageXOffset + 10;
  1139. posY = event.clientY + window.pageYOffset;
  1140. var ttHeight = warlcTooltip.offsetHeight;
  1141. var ttFreeSpace = window.innerHeight - event.clientY;
  1142. if (ttHeight > ttFreeSpace)
  1143. { //prevents tooltip from getting out of the window
  1144. posY -= (ttHeight - (ttFreeSpace)) + 10;
  1145. }
  1146. else
  1147. {
  1148. posY += 7;
  1149. }
  1150. warlcTooltip.style.top = posY + "px";
  1151. warlcTooltip.style.left = posX + "px";
  1152. }
  1153.  
  1154. //"mouseout" event handler for all links
  1155. function hideTooltip(){
  1156. warlcTooltip.style.visibility = "hidden";
  1157. mouseoverLink = null;
  1158. }
  1159.  
  1160.  
  1161. //"mouseover" event handler for dead links
  1162. //displays tooltip error message on dead links
  1163. function displayTooltipError()
  1164. {
  1165. mouseoverLink = this.href;
  1166. this.addEventListener("mouseout", hideTooltip);
  1167. this.addEventListener("mousemove", function(event) { moveTooltip(event); });
  1168. warlcTooltip.innerHTML = '<b>LOADING...</b>';
  1169. warlcTooltip.style.minWidth = 0;
  1170. warlcTooltip.style.visibility = "visible";
  1171. if (this.warlc_error) //an error message is already known and stored in warlc_error attribute
  1172. {
  1173. warlcTooltip.innerHTML = this.warlc_error;
  1174. }
  1175. else
  1176. {
  1177. loadErrorInfo(this);
  1178. }
  1179. function loadErrorInfo(link)
  1180. {
  1181. var href = link.href;
  1182. href = href.replace(/quickshare\.cz\/.+/, "quickshare.cz/chyba");
  1183. GM_xmlhttpRequest({
  1184. method: 'GET',
  1185. url: href.replace(Ref_anonymize_service, ""),
  1186. headers: {
  1187. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1188. 'Accept': 'text/xml',
  1189. 'Referer': ""
  1190. },
  1191. onload: function(result) {
  1192. var res = result.responseText;
  1193. //TODO: errorRegexs -
  1194. var errorRegexs = [ //generic error messages follow
  1195. /(empty directory)/i,
  1196. /(soubor nebyl nalezen)/i,
  1197. /((?:file|page|link|folder)(?:is|not|does|has been|was| ){1,}(?:found|available|blocked|exists?|deleted|removed))/i,
  1198. //server specific error messages follow
  1199. /msg error" style="cursor: default">(.+?)<\/div>/, //sendspace
  1200. /color:red;font\-weight:bold;border\-style:dashed;font-size:12px;border\-width:2px;><tr><td align=center>(.+?)<\/td>/, //fastshare
  1201. /(Takový soubor neexistuje. Je možné, že byl již smazán.)/, //quickshare
  1202. /file_info file_info_deleted">\s*<h1>(.+?)<\/h1>/, //filepost
  1203. /<br \/>\s*<p style="color:#000">(.+?)<\/p>\s*<\/center>/, //letitbit
  1204. /(?:error_div">|<\/h1><p>)<strong>(.+?)<\/strong>/, //share-rapid,quickshare
  1205. /class="red">(.+?)<(?:span|br)>/, //czshare, megashares
  1206. /class="wp640">\s*<h1 class="h1">(.+?)<\/h1>/, //uloz.to
  1207. /not-found">\s*<p>(.+?)<\/p>/, //bayfiles
  1208. /(Your file could not be found. Please check the download link.)/, //stahnu.to
  1209. /error_msg">\s*(<h3>.+?<\/h3><ul>(.+?)<\/ul>)/, //edisk
  1210. /id="obsah">\s*<h2>(.+?)<\/h2>/, //euroshare
  1211. /error">\s*(?:<[bp]>)?\s*(.+?)<\/[bp]>/, //filesmonster, shragle, gigapeta
  1212. ///center aC">\s*<h1>(.+?)<br \/>/, //uploaded.to
  1213. /icon_err">\s*<h1>(.+?)<\/h1>/, //filejungle
  1214. /Code: ER_NFF_\d+<\/h2>\s*(.+?)\s*<\/div>/, //netload
  1215. /(File has been removed due to Copyright Claim)/, //filerio
  1216. ];
  1217. var errorIdx = errorRegexs.length;
  1218. var error = "Cause of error: <b>unknown</b>";
  1219. var errorCandidate = "";
  1220. while(errorIdx--)
  1221. {
  1222. var errorCandidate = res.match(errorRegexs[errorIdx]);
  1223. if (errorCandidate != null)
  1224. {
  1225. error = "Cause of error: <b>" + errorCandidate[1].replace(/&nbsp;/g," ") + "</b>";
  1226. break;
  1227. }
  1228. }
  1229. //link attributes
  1230. link.warlc_error = error;
  1231. if (mouseoverLink == link.href) //mouse cursor is still over the link
  1232. {
  1233. warlcTooltip.innerHTML = error;
  1234. }
  1235. }
  1236. });
  1237. }
  1238. }
  1239.  
  1240. //"mouseover" event handler for alive links
  1241. //displays tooltip info (file size, file name,...) on alive links
  1242. function displayTooltipInfo()
  1243. {
  1244. mouseoverLink = this.href;
  1245. //exclude direct download filehostings
  1246. 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)/))
  1247. {
  1248. return;
  1249. }
  1250. this.addEventListener("mouseout", hideTooltip);
  1251. this.addEventListener("mousemove", function(event) { moveTooltip(event); });
  1252. warlcTooltip.innerHTML = '<b>LOADING...</b>';
  1253. warlcTooltip.style.minWidth = 0;
  1254. warlcTooltip.style.visibility = "visible";
  1255. if (this.warlc_tooltipcache) //file size is already known and stored in warlc_filename and warlc_filesize attributes
  1256. {
  1257. warlcTooltip.innerHTML = this.warlc_tooltipcache;
  1258. }
  1259. else
  1260. {
  1261. loadInfo(this);
  1262. }
  1263. function loadInfo(link)
  1264. {
  1265. var href = link.href;
  1266. GM_xmlhttpRequest({
  1267. method: 'GET',
  1268. url: href.replace(Ref_anonymize_service, ""),
  1269. headers: {
  1270. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1271. 'Accept': 'text/xml',
  1272. 'Referer': ""
  1273. },
  1274. onload: function(result) {
  1275. var res = result.responseText;
  1276. var nameRegexs = [ /Filename: <b class="f_arial f_14px">(.+?)<\/b>/, //oron
  1277. /(?:finfo|file[-_]?name)">\s*(.+?)<\/?(?:h1|a|div|span style|td)/, //hellshare, netload, badongo, 4fastfile
  1278. /fl" title="(.+?)">/, //edisk
  1279. /<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
  1280. /<h3>Stahujete soubor: <\/h3>\s*<div class="textbox">(.+?)<\/div>/, //webshare
  1281. /<h3><b><span style=color:black;>(.+?)<\/b><\/h3><br>/, //fastshare
  1282. /title="download (.+?)">/, //sendspace
  1283. /Stáhnout soubor: (.+?)<\/h1>/, //quickshare
  1284. /fz24">Download:\s*<strong>(.+?)<\/strong>/, //crocko
  1285. /'file\-icon\d+ \w+'>(?:<\/span><span>)?(.+?)<\/span>/, //hitfile, turbobit
  1286. /d0FileName = "(.+?)";/, //letitbit
  1287. /file(?:_name|-info)" title="">\w+: <span>(.+?)<\/span>/, //vip-file, shareflare
  1288. /recent-comments"><h2>(.+) &nbsp;/, //xdisk
  1289. /fname" value="(.+?)">/, //syfiles, grupload,
  1290. /download\-header">\s*<h2>File:<\/h2>\s*<p title="(.+?)">/, //bayfiles
  1291. /description">\s*<p><b>Soubor: (.+?)<\/b>/, //bezvadata
  1292. /Complete name : (.+?)<br \/>/, //bezvadata
  1293. /itemprop="name">(.+?)<\/span>/, //bezvadata
  1294. ];
  1295. var nameIdx = nameRegexs.length;
  1296. // [sizeRegexs]
  1297. // / \ \?
  1298. // prefix (size) postfix
  1299. // / \
  1300. // val quant
  1301. var quantRegex = '(?:M|G|K)?i?(?:B)(?:[y|i]te?s?)?';
  1302. var valRegex = '\\d+(?:[\\., ]\\d+){0,2}'; // 111([., ]222)?([., ]333)?
  1303. var uniSizeRegex = valRegex + '(?:\\s*|&nbsp;)' + quantRegex;
  1304. var preSizeRegex = '(?::|\\(|>|>, | - )';
  1305. var postSizeRegex = '(?:\\))?';
  1306. var sizeRegexs = [ preSizeRegex + "\\s*(" + uniSizeRegex + ")\\s*" + postSizeRegex,
  1307. 'FileSize_master">(.+?)<\/strong>', //hellshare
  1308. ];
  1309. var sizeIdx = sizeRegexs.length;
  1310. //
  1311. //
  1312. var tooltip = "File Name: <b>";
  1313. var fileName = "unknown";
  1314. var nameCandidate = "";
  1315. while(nameIdx--)
  1316. {
  1317. var nameCandidate = res.match(nameRegexs[nameIdx]);
  1318. if (nameCandidate != null)
  1319. {
  1320. fileName = nameCandidate[1].replace(/&nbsp;/g," ");
  1321. break;
  1322. }
  1323. }
  1324. tooltip += fileName + "</b><br>File Size: <b>";
  1325. var fileSize = "unknown";
  1326. var sizeCandidate = "";
  1327. while(sizeIdx--)
  1328. {
  1329. sizeCandidate = res.match(new RegExp(sizeRegexs[sizeIdx], "i"));
  1330. if (sizeCandidate != null)
  1331. {
  1332. fileSize = sizeCandidate[1].replace(/&nbsp;/g," ");
  1333. if (/^\d+$/.test(fileSize) && fileSize >= 1024) //assume bytes
  1334. {
  1335. if(fileSize > (1<<30)) fileSize = Math.round(10 * fileSize / (1<<30)) / 10 + ' GB';
  1336. else if(fileSize > (1<<20)) fileSize = Math.round(fileSize / (1<<20)) + ' MB';
  1337. else fileSize = Math.round(fileSize / 1024) + ' KB';
  1338. }
  1339. break;
  1340. }
  1341. }
  1342. tooltip += fileSize + "</b>";
  1343. // PROTOTYPE
  1344. // video thumbnails
  1345. if (href.match('hellshare'))
  1346. {
  1347. var thumbs;
  1348. thumbs = res.match(/http:\/\/static\d+\.helldata\.com\/thumbs(?:\/\d+){1,2}\/\d{1,2}"/g);
  1349. if (thumbs)
  1350. {
  1351. tooltip += '<br>';
  1352. var j = Math.min(thumbs.length, 9);
  1353. for (var i = 0; i < j; i++)
  1354. {
  1355. tooltip += '<img src="' + thumbs[i].replace('"',"") + '" width="' + TOOLTIP_THUMBWIDTH + 'px">';
  1356. }
  1357. warlcTooltip.style.minWidth = TOOLTIP_MAXWIDTH;
  1358. }
  1359. }
  1360. if (href.match('czshare'))
  1361. {
  1362. var thumbs;
  1363. thumbs = res.match(/src="http:\/\/www(\d+)\.czshare\.com\/images_velke\/\d+\.(\d+)\.jpeg/);
  1364. if (thumbs)
  1365. {
  1366. var thumbsServer = thumbs[1];
  1367. var thumbsId = thumbs[2];
  1368. tooltip += '<br>';
  1369. for (var i = 1; i < 9; i++)
  1370. {
  1371. tooltip += '<img src="http://www' + thumbsServer + '.czshare.com/images_velke/' + i + '.' + thumbsId + '.jpeg" width="' + TOOLTIP_THUMBWIDTH + 'px">';
  1372. }
  1373. warlcTooltip.style.minWidth = TOOLTIP_MAXWIDTH;
  1374. }
  1375. }
  1376. if (href.match('bezvadata'))
  1377. {
  1378. var thumbs;
  1379. thumbs = res.match(/http:\/\/nahledy\.bezvadata\.cz\/nahledy\/\d+\/\d+\/\d+_\d+_\d+x\d+_\w.jpg/g);
  1380. if (thumbs)
  1381. {
  1382. tooltip += '<br>';
  1383. var j = Math.min(thumbs.length, 9);
  1384. for (var i = 0; i < j; i++)
  1385. {
  1386. tooltip += '<img src="' + thumbs[i] + '" width="' + TOOLTIP_THUMBWIDTH + 'px">';
  1387. }
  1388. warlcTooltip.style.minWidth = TOOLTIP_MAXWIDTH;
  1389. }
  1390. }
  1391. link.warlc_tooltipcache = tooltip;
  1392. if (mouseoverLink == link.href) //mouse cursor is still over the link
  1393. {
  1394. warlcTooltip.innerHTML = tooltip;
  1395. }
  1396. }
  1397. });
  1398. }
  1399. }
  1400.  
  1401. function setVariables()
  1402. {
  1403. if (firstRun)
  1404. {
  1405. GM_log('First run, applying default settings...');
  1406. GM_setValue("Icon_set",1);
  1407. GM_setValue("Display_tooltip_info",true);
  1408. GM_setValue("Show_black_background_in_DL_links",false);
  1409. GM_setValue("Show_line_through_in_dead_links",false);
  1410. GM_setValue("Display_full_links_in_link_containers",false);
  1411. GM_setValue("Allow_spaces_in_DL_links",false);
  1412. GM_setValue("Autocheck",true);
  1413. GM_setValue("Enable_Anonymizer",false);
  1414. GM_setValue("Do_not_linkify_DL_links",false);
  1415. GM_setValue("Show_progress_stats",true);
  1416. GM_setValue("Keyboard_functions",true);
  1417. GM_setValue("Obsolete_file_hosts",false);
  1418. GM_setValue("Color_DL_links",true);
  1419. GM_setValue("Live_links_color","Green");
  1420. GM_setValue("Dead_links_color","#FF3300");
  1421. GM_setValue("Temp_unavailable_links_color","#F7EF09");
  1422. GM_setValue("Container_links_color","DarkKhaki");
  1423. GM_setValue("Premium_links_color","DeepPink");
  1424. GM_setValue("Ref_anonymize_service","http://hiderefer.com/?");
  1425. GM_setValue("Custom_rules",false);
  1426. GM_setValue("Custom_rules_text","");
  1427. GM_setValue("First_run", false);
  1428. }
  1429. //hidden settings
  1430. GM_setValue("Progress_box_pos_bottom", Progress_box_pos_bottom = GM_getValue("Progress_box_pos_bottom", 20));
  1431. GM_setValue("Progress_box_pos_right", Progress_box_pos_right = GM_getValue("Progress_box_pos_right", 10));
  1432. GM_setValue("Progress_box_opacity", Progress_box_opacity = GM_getValue("Progress_box_opacity", 85));
  1433. GM_setValue("Progress_box_background_color", Progress_box_background_color = GM_getValue("Progress_box_background_color", 'DimGray'));
  1434. GM_setValue("Progress_box_item_color", Progress_box_item_color = GM_getValue("Progress_box_item_color", 'DimGray'));
  1435. GM_setValue("Progress_box_refresh_rate", Progress_box_refresh_rate = GM_getValue("Progress_box_refresh_rate", 2000));
  1436. GM_setValue("Debug_mode", DEBUG_MODE = GM_getValue("Debug_mode", false));
  1437. //hidden settings end
  1438.  
  1439. Icon_set = GM_getValue("Icon_set", 1); //0 - no icons, 1 - cat paws, 2 - old RSLC style, 3 - New Icons,
  1440. Display_tooltip_info = GM_getValue("Display_tooltip_info", true);
  1441. Show_black_background_in_DL_links = GM_getValue("Show_black_background_in_DL_links", false);
  1442. Show_line_through_in_dead_links = GM_getValue("Show_line_through_in_dead_links", false);
  1443. Display_full_links_in_link_containers = GM_getValue("Display_full_links_in_link_containers", false);
  1444. Allow_spaces_in_DL_links = GM_getValue("Allow_spaces_in_DL_links", false);
  1445. Autocheck = GM_getValue("Autocheck", true);
  1446. Enable_Anonymizer = GM_getValue("Enable_Anonymizer", false);
  1447. Do_not_linkify_DL_links = GM_getValue("Do_not_linkify_DL_links", false);
  1448. Show_progress_stats = GM_getValue("Show_progress_stats", true);
  1449. Keyboard_functions = GM_getValue("Keyboard_functions", true);
  1450. Obsolete_file_hosts = GM_getValue("Obsolete_file_hosts", false);
  1451. Color_DL_links = GM_getValue("Color_DL_links", true);
  1452. Live_links_color = GM_getValue("Live_links_color", "Green");
  1453. Dead_links_color = GM_getValue("Dead_links_color", "#FF3300");
  1454. Temp_unavailable_links_color = GM_getValue("Temp_unavailable_links_color", "#F7EF09");
  1455. Container_links_color = GM_getValue("Container_links_color", "DarkKhaki");
  1456. Premium_links_color = GM_getValue("Premium_links_color", "DeepPink");
  1457. Ref_anonymize_service = GM_getValue("Ref_anonymize_service", "http://hiderefer.com/?");
  1458. Custom_rules = GM_getValue("Custom_rules", false);
  1459. Custom_rules_text = GM_getValue("Custom_rules_text", false);
  1460. }
  1461.  
  1462.  
  1463. // Delinkifies the links
  1464. // params:
  1465. // links -> list of links or link components (note they should be sufficiently unique to identify the link on page,
  1466. // e.g. 'uloz.to/xs68skxl8')
  1467. function delinkifySnapshot(snapshot)
  1468. {
  1469. var n = snapshot.snapshotLength;
  1470.  
  1471. while (n--)
  1472. {
  1473. thisLink = snapshot.snapshotItem(n);
  1474.  
  1475. var spanElm = document.createElement("span");
  1476. spanElm.className = thisLink.className;
  1477. spanElm.innerHTML = thisLink.innerHTML;
  1478.  
  1479. if (Display_tooltip_info)
  1480. {
  1481. spanElm.href = thisLink.href;
  1482. switch (thisLink.className){
  1483. case "alive_link": spanElm.addEventListener("mouseover", displayTooltipInfo, false); break
  1484. case "adead_link": spanElm.addEventListener("mouseover", displayTooltipError, false); break;
  1485. case "unava_link": //reserved
  1486. default:
  1487. }
  1488. }
  1489. thisLink.parentNode.replaceChild(spanElm, thisLink);
  1490. }
  1491. }
  1492.  
  1493. function processContainers()
  1494. {
  1495. var redirectorTypes = { "HTTP_302": 0,
  1496. "INNER_LINK": 1,
  1497. "THELOO_KATT_IT": 2,
  1498. "CING_BE": 3,
  1499. "ADF_LY": 4};
  1500. var cMultiloadTotal = 0;
  1501. var cMultiloadProcessed = 0;
  1502.  
  1503. var cMirrorcreatorComTotal = 0;
  1504. var cMirrorcreatorComProcessed = 0;
  1505.  
  1506. var hostRestrictionRegex = "";
  1507. var multiloadComRestriction = "";
  1508. var multiloadComRestrictionRegex;
  1509.  
  1510. //
  1511. //HANDLING REDIRECTORS START
  1512. //
  1513.  
  1514. var redirectors = new Array();
  1515. initRedirectors();
  1516.  
  1517. var redirectorsCount = redirectors.length;
  1518.  
  1519. if (redirectorsCount > 0)
  1520. {
  1521. var allRedirectorsRegex = "";
  1522.  
  1523. //linkify redirector links
  1524. for(var redirIdx = 0; redirIdx < redirectorsCount; redirIdx++)
  1525. {
  1526. allRedirectorsRegex += redirectors[redirIdx].linkRegex + "|";
  1527. }
  1528. allRedirectorsRegex = allRedirectorsRegex.replace(/\|$/, "");
  1529. linkify(allRedirectorsRegex);
  1530. //
  1531. //process redirector links
  1532. for(var redirIdx = 0; redirIdx < redirectorsCount; redirIdx++)
  1533. {
  1534. var redirectorsSnapshot = document.evaluate(redirectors[redirIdx].xpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  1535. redirectors[redirIdx].cTotal = redirectorsSnapshot.snapshotLength;
  1536.  
  1537. cLinksTotal += redirectors[redirIdx].cTotal;
  1538. var linkIdx = redirectors[redirIdx].cTotal;
  1539.  
  1540. while(linkIdx--)
  1541. {
  1542. switch(redirectors[redirIdx].type)
  1543. {
  1544. case redirectorTypes.HTTP_302: processRedirectorLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1545. case redirectorTypes.INNER_LINK: processRedirectorLinkEx(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1546. case redirectorTypes.THELOO_KATT_IT: processThelooKattItLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1547. case redirectorTypes.CING_BE: processCingBeLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1548. case redirectorTypes.ADF_LY: processAdfLyLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1549. default:
  1550. }
  1551. }
  1552. }
  1553. //
  1554. }
  1555.  
  1556. //HTTP_302
  1557. function processRedirectorLink(link, redirectorId)
  1558. {
  1559. link.className = 'container_link';
  1560.  
  1561. GM_xmlhttpRequest({
  1562. method: 'HEAD',
  1563. url: link.href,
  1564. headers: {
  1565. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1566. 'Accept': 'text/xml',
  1567. 'Referer': ""
  1568. },
  1569. onload: function(result) {
  1570. if (result.finalUrl.replace("https", "http") == link.href) // service hasn't redirected anywhere
  1571. {
  1572. processRedirectorLink(link, redirectorId);
  1573. }
  1574. else
  1575. {
  1576. redirectors[redirectorId].cProcessed++;
  1577. link.href = result.finalUrl;
  1578. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  1579. checkLinks('container_link');
  1580. }
  1581. },
  1582. onerror: function(result) { //probably caused by unresponsive filehosting
  1583. redirectors[redirectorId].cProcessed++;
  1584. link.className = 'unava_link';
  1585. cLinksProcessed++;
  1586. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  1587. checkLinks('container_link');
  1588. }
  1589. });
  1590. }
  1591. //INNER_LINK
  1592. function processRedirectorLinkEx(link, redirectorId)
  1593. {
  1594. link.className = 'container_link';
  1595. GM_xmlhttpRequest({
  1596. method: 'GET',
  1597. url: link.href,
  1598. headers: {
  1599. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1600. 'Accept': 'text/xml',
  1601. 'Referer': ""
  1602. },
  1603. onload: function(result) {
  1604. link.href = result.responseText.match(redirectors[redirectorId].innerLinkRegex)[1];
  1605. redirectors[redirectorId].cProcessed++;
  1606. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  1607. checkLinks('container_link');
  1608. }
  1609. });
  1610. }
  1611. //theloo.katt.it (wrapped safelinking.net)
  1612. function processThelooKattItLink(link, redirectorId)
  1613. {
  1614. link.className = 'container_link';
  1615. GM_xmlhttpRequest({
  1616. method: 'GET',
  1617. url: link.href,
  1618. headers: {
  1619. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1620. 'Accept': 'text/xml',
  1621. 'Referer': ""
  1622. },
  1623. onload: function(result) {
  1624. link.href = result.responseText.match(redirectors[redirectorId].innerLinkRegex)[1];
  1625. redirectors[redirectorId].cProcessed++;
  1626. //the inner links are safelinking.net links, so lets proceed with it
  1627. if (GM_getValue("Check_safelinking_dot_net_links", false))
  1628. {
  1629. processRedirectorLink(link, 0);
  1630. }
  1631. }
  1632. });
  1633. }
  1634. //adf.ly (adf.ly/go innerLink, locking mechanism)
  1635. function processAdfLyLink(link, redirectorId)
  1636. {
  1637. link.className = 'container_link';
  1638. GM_xmlhttpRequest({
  1639. method: 'GET',
  1640. url: link.href,
  1641. headers: {
  1642. 'User-agent': 'Mozilla/4.0',
  1643. 'Accept': 'text/xml',
  1644. 'Referer': ""
  1645. },
  1646. onload: function(result) {
  1647. if (result.finalUrl.match('/locked/'))
  1648. {
  1649. var delay = result.responseText.match(/countdown">(\d+)</)[1];
  1650. // GM_log(result.finalUrl + 'is locked. Repeating the request in ' + delay + 's.');
  1651. // setTimeout(function(){processAdfLyLink(link, redirectorId);}, delay * 1000);
  1652. }
  1653. else
  1654. {
  1655. // GM_log('Processing... ' + link.href);
  1656. // GM_log('Found...' + result.responseText.match(/\/go\/(\w+\/\w+)/)[1]);
  1657. var directLink = 'http://adf.ly' + result.responseText.match(/(\/go\/\w+\/\w+)/)[1];
  1658. var logToken = result.responseText.match(/flashy_(\w+)/)[1];
  1659. var users = result.responseText.match(/user=\d+&user2=\d+/);
  1660. //confirm advert
  1661. GM_xmlhttpRequest(
  1662. {
  1663. method: 'POST',
  1664. url: 'http://adf.ly/l.php',
  1665. headers: {
  1666. 'User-agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20100101 Firefox/13.0',
  1667. 'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
  1668. 'Referer': link.href
  1669. },
  1670. data: users + '&lt=' + logToken,
  1671. onload: function(result) {
  1672. //retrieve final url from .../go/... link
  1673. GM_xmlhttpRequest({
  1674. method: 'GET',
  1675. url: directLink,
  1676. headers: {
  1677. 'User-agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20100101 Firefox/13.0',
  1678. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  1679. 'Referer': link.href
  1680. },
  1681. onload: function(result) {
  1682. link.href = result.finalUrl;
  1683. redirectors[redirectorId].cProcessed++;
  1684. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  1685. checkLinks('container_link');
  1686. }
  1687. });
  1688. }
  1689. });
  1690. }
  1691. }
  1692. });
  1693. function proceedOK()
  1694. {
  1695. }
  1696. }
  1697. //MULTILOAD.CZ START
  1698. if (GM_getValue("Check_multiload_dot_cz_links", false))
  1699. {
  1700. var mlRegex = 'multiload\\.cz\/stahnout\/\\d+\/';
  1701. var mlXpath = "//a[contains(@href,'http://www.multiload.cz/stahnout')]";
  1702.  
  1703. hostRestrictionRegex = 'Upload se nezdařil|limit exceeded|probíhá reupload|';
  1704.  
  1705. if (GM_getValue("Check_hellshare_dot_com_links", false))
  1706. hostRestrictionRegex += 'hellshare|';
  1707. if (GM_getValue("Check_share_dash_rapid_dot_com_links", false))
  1708. hostRestrictionRegex += 'share-rapid\\.com|';
  1709. if (GM_getValue("Check_quickshare_dot_cz_links", false))
  1710. hostRestrictionRegex += 'quickshare\\.cz|';
  1711. if (GM_getValue("Check_czshare_dot_com_links", false))
  1712. hostRestrictionRegex += 'czshare\\.com|';
  1713. if (GM_getValue("Check_uloz_dot_to_links", false))
  1714. hostRestrictionRegex += 'uloz\\.to|';
  1715. if (GM_getValue("Check_hellspy_dot_com_links", false))
  1716. hostRestrictionRegex += 'hellspy|';
  1717. if (GM_getValue("Check_multishare_dot_cz_links", false))
  1718. hostRestrictionRegex += 'multishare\\.cz|';
  1719.  
  1720. hostRestrictionRegex = hostRestrictionRegex.replace(/\|$/, "");
  1721.  
  1722. linkify(mlRegex);
  1723.  
  1724. var mlSnapshot = document.evaluate(mlXpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  1725. var mlCount = mlSnapshot.snapshotLength;
  1726.  
  1727. if (mlCount > 0)
  1728. {
  1729. cMultiloadTotal += mlCount;
  1730.  
  1731. mlIdx = mlCount - 1;
  1732. do
  1733. {
  1734. processMultiloadLink(mlSnapshot.snapshotItem(mlIdx));
  1735. }
  1736. while(mlIdx--)
  1737. }
  1738. }
  1739. //MULTILOAD.CZ END
  1740.  
  1741.  
  1742.  
  1743. function processMultiloadLink(mlLink)
  1744. {
  1745. GM_xmlhttpRequest({
  1746. method: 'GET',
  1747. url: mlLink.href,
  1748. headers: {
  1749. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1750. 'Accept': 'text/xml',
  1751. 'Referer': ""
  1752. },
  1753. onload: function(result) {
  1754. var res = result.responseText;
  1755.  
  1756. var innerBlockRegex = /<p class="manager-linky">(?:.|\s)+?<\/p>/g;
  1757. 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;
  1758. var innerLinkRegex = /((?:Upload se nezdařil.+|https?:\/\/(?:.|\s)+|Právě probíhá reupload, buďte trpěliví\.\.\.))</;
  1759. var mlRestrictionRegex = new RegExp(hostRestrictionRegex,"g"); //what links should be displayed
  1760.  
  1761. var blocks; // blocks of links
  1762. var blockIdx;
  1763.  
  1764. mlLink.className = '';
  1765.  
  1766. if (result.status == 503) //service temporarily unavailable, repeat request in one second
  1767. {
  1768. setTimeout(function(){ processMultiloadLink(mlLink); }, 1000);
  1769. return;
  1770. }
  1771.  
  1772. blocks = res.match(innerBlockRegex);
  1773.  
  1774. if (blocks == null) //no links found, cancel further processing
  1775. {
  1776. mlLink.parentNode.appendChild(document.createTextNode(' | Požadovaný soubor neexistuje.'));
  1777. cMultiloadProcessed++;
  1778. if (cMultiloadTotal <= cMultiloadProcessed)
  1779. {
  1780. startBulkCheck('container_link');
  1781. start('container_link');
  1782. }
  1783. return;
  1784. }
  1785.  
  1786. blockIdx = blocks.length;
  1787.  
  1788. if (Display_full_links_in_link_containers)
  1789. {
  1790. var ulElm = document.createElement('ul');
  1791. ulElm.className = 'container_list'; //CSS smaller font, padding, margin, square style
  1792.  
  1793. while(blockIdx--)
  1794. {
  1795. if (blocks[blockIdx].match(mlRestrictionRegex) == null)
  1796. {
  1797. continue;
  1798. }
  1799.  
  1800. var innerLinks = blocks[blockIdx].match(innerLinksRegex);
  1801.  
  1802. var linkIdx = innerLinks.length;
  1803. while (linkIdx--)
  1804. {
  1805. var innerLink = innerLinks[linkIdx].match(innerLinkRegex)[1];
  1806.  
  1807. var liElm = document.createElement('li');
  1808.  
  1809. if (innerLink.match(/Upload se nezdařil|limit exceeded|probíhá reupload/))
  1810. {
  1811. liElm.appendChild(document.createTextNode(innerLink));
  1812. }
  1813. else
  1814. {
  1815. var aElm = document.createElement('a');
  1816. aElm.innerHTML = innerLink;
  1817. aElm.href = innerLink;
  1818. aElm.className = 'container_link';
  1819.  
  1820. liElm.appendChild(aElm);
  1821. }
  1822.  
  1823. ulElm.appendChild(liElm);
  1824. cLinksTotal++;
  1825. }
  1826. }
  1827.  
  1828. mlLink.parentNode.appendChild(ulElm);
  1829. }
  1830. else //compact view
  1831. {
  1832. mlLink.parentNode.appendChild(document.createTextNode("|"));
  1833.  
  1834. while(blockIdx--)
  1835. {
  1836. if (blocks[blockIdx].match(mlRestrictionRegex) == null)
  1837. {
  1838. continue;
  1839. }
  1840.  
  1841. var innerLinks = blocks[blockIdx].match(innerLinksRegex);
  1842.  
  1843. var linkIdx = innerLinks.length;
  1844. while (linkIdx--)
  1845. {
  1846. var innerLink = innerLinks[linkIdx].match(innerLinkRegex)[1];
  1847.  
  1848. if (innerLink.match(/Upload se nezdařil|limit exceeded|probíhá reupload/))
  1849. {
  1850. mlLink.parentNode.appendChild(document.createTextNode("----"));
  1851. }
  1852. else
  1853. {
  1854. var aElm = document.createElement('a');
  1855.  
  1856. var hostName = innerLink.match(/quickshare|hellshare|uloz\.to|multishare|hellspy|share\-rapid|czshare/);
  1857.  
  1858. //abbreviate host name
  1859. switch(hostName + ""){
  1860.  
  1861. case 'quickshare': aElm.innerHTML = 'QS'; break;
  1862. case 'hellshare': aElm.innerHTML = 'HS'; break;
  1863. case 'uloz.to': aElm.innerHTML = 'UT'; break;
  1864. case 'multishare': aElm.innerHTML = 'MS'; break;
  1865. case 'hellspy': aElm.innerHTML = 'hs'; break;
  1866. case 'share-rapid': aElm.innerHTML = 'SR'; break;
  1867. case 'czshare': aElm.innerHTML = 'CS'; break;
  1868. default: aElm.innerHTML = 'xx';
  1869.  
  1870. }
  1871.  
  1872. aElm.href = innerLink;
  1873. aElm.className = 'container_link';
  1874.  
  1875. mlLink.parentNode.appendChild(aElm);
  1876. cLinksTotal++;
  1877. }
  1878. }
  1879.  
  1880. mlLink.parentNode.appendChild(document.createTextNode("|")); //blocks delimiter
  1881.  
  1882. }
  1883. }
  1884.  
  1885. cMultiloadProcessed++;
  1886. if (cMultiloadTotal == cMultiloadProcessed) //start check when all ml links have been processed
  1887. {
  1888. if (Do_not_linkify_DL_links)
  1889. {
  1890. delinkifySnapshot(mlSnapshot);
  1891. }
  1892. startBulkCheck('container_link');
  1893. start('container_link');
  1894. }
  1895. }
  1896. });
  1897. }
  1898.  
  1899.  
  1900. if (GM_getValue("Check_mirrorcreator_dot_com_links", false))
  1901. {
  1902. var mcRegex = 'mirrorcreator\\.com/files/(\\w+)';
  1903. var mcXpath = "//a[contains(@href,'mirrorcreator.com/files')]";
  1904. var mcShortHostNames =
  1905. '?? 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';
  1906. // 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
  1907. //?????? depositfiles sendspace load.to ul.to storage.to uploadbox x7.to fileserve ?????? duckload filehook filepost jumbofiles glumbouploads
  1908. // zshare ?????? 2shared uploading ugotfile extabit oron eyvx uploadstation putlocker
  1909. // megaupload badongo megashare gamefront ifile ?????? letitbit ?????? ?????? filejungle megashares
  1910. // easy-share ?????? netload zippyshare ?????? filesonic turbobit enterupload ?????? filekeen wupload crocko fileflyer
  1911.  
  1912. linkify(mcRegex);
  1913.  
  1914. var mcSnapshot = document.evaluate(mcXpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  1915. var mcCount = mcSnapshot.snapshotLength;
  1916.  
  1917. cMirrorcreatorComTotal = mcCount;
  1918.  
  1919. if (mcCount > 0)
  1920. {
  1921. mcShortHostNames = mcShortHostNames.split(' ');
  1922. mcIdx = mcCount;
  1923. while(mcIdx--)
  1924. processMirrorcreatorLink(mcSnapshot.snapshotItem(mcIdx));
  1925. }
  1926.  
  1927. }
  1928. //MIRRORCREATOR.CZ END
  1929.  
  1930.  
  1931. //mirrorcreator.com checking works like this:
  1932. //The base URL is http://www.mirrorcreator.com/files/XXXXXXXX/filename_links
  1933. //the actual list of mirrors is at http://www.mirrorcreator.com/status.php?uid=XXXXXXXX
  1934. //the list contains links in the form of (http://www.mirrorcreator.com)/redirect/XXXXXXXX/1
  1935. //these redirector links are extracted with mcLinkBlockRegex and the pages loaded
  1936. //they contain the actual filehost links, which are extracted with mcHostRegex and displayed in a container list
  1937. function processMirrorcreatorLink(mcLink)
  1938. {
  1939. var mcURL = mcLink.href.match(mcRegex);
  1940. if(!mcURL || !mcURL[1]) return;
  1941. mcURL = 'http://www.mirrorcreator.com/status.php?uid=' + mcURL[1]; //link correction
  1942. GM_xmlhttpRequest({
  1943. method: 'GET',
  1944. url: mcURL,
  1945. headers: {
  1946. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1947. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*'+'/*;q=0.8',
  1948. 'Referer': ""
  1949. },
  1950. onload: function(mcLinkResult) {
  1951. var mcLinkRes = mcLinkResult.responseText;
  1952.  
  1953. var mcLinkBlockRegex = /(\/redirect\/\w+\/(\d+))/gi;
  1954. var mcHostRegex = /<div id="redirectlink">.*?<a href="([^"]+)"/;
  1955.  
  1956. var mcRedirectors;
  1957. var mcHostURLs = [], mcRedirectorIDs = [], mcHostsFound = 0, mcHostsRetrieved = 0, mcHostsToProcess = 0;
  1958. var m = mcLinkRes.match(mcLinkBlockRegex);
  1959. if (m)
  1960. mcHostsFound = m.length;
  1961. else
  1962. { //no files inside container
  1963. processMirrorcreatorFoundHosts(mcLink, []);
  1964. return;
  1965. }
  1966.  
  1967. var mcRedirectorURL, idx, timedOut = false;
  1968.  
  1969. var gmxhrFunc = function(mcRedirectorURL){ //Tampermonkey doesn't know neither this.url or result.finalUrl
  1970. GM_xmlhttpRequest({
  1971. method: 'GET',
  1972. url: mcRedirectorURL,
  1973. headers: {
  1974. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1975. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*'+'/*;q=0.8',
  1976. 'Referer': ""
  1977. },
  1978. onload: function(mcHostResult) {
  1979. if (timedOut) return; //too late, the list is already displayed
  1980. var mcHostRes = mcHostResult.responseText;
  1981. var mcHost = mcHostRes.match(mcHostRegex);
  1982. idx = mcHostURLs.indexOf(mcRedirectorURL);
  1983. if (mcHost && idx!=-1)
  1984. {
  1985. mcHostURLs[idx] = mcHost[1].replace(/^\s+|\s+$/g, '');
  1986. mcHostsRetrieved++;
  1987. mcHostsToProcess++;
  1988. if (mcHostsFound == mcHostsRetrieved) //this is the last one!
  1989. {
  1990. processMirrorcreatorFoundHosts(mcLink, mcHostURLs, mcRedirectorIDs);
  1991. mcHostsToProcess = 0;
  1992. }
  1993. }
  1994. } //end of onload: function
  1995. }); //end of GM_xmlhttpRequest call
  1996. };//end of var gmxhrFunc
  1997.  
  1998. while (mcRedirectors = mcLinkBlockRegex.exec(mcLinkRes))
  1999. { //load individual redirector pages
  2000. mcRedirectorURL = 'http://www.mirrorcreator.com' + mcRedirectors[1];
  2001. mcHostURLs.push(mcRedirectorURL);
  2002. mcRedirectorIDs.push(mcRedirectors[2]);
  2003. gmxhrFunc(mcRedirectorURL);
  2004. } //end of while block
  2005.  
  2006. setTimeout(function(){ //in case the last page fails to load and call the function
  2007. timedOut = true;
  2008. if (mcHostsToProcess)
  2009. processMirrorcreatorFoundHosts(mcLink, mcHostURLs);
  2010. }, 60000);
  2011.  
  2012. } //end of onload function
  2013. }); //end of GM_xmlhttpRequest call
  2014. } //end of function processMirrorcreatorLink
  2015.  
  2016.  
  2017. function processMirrorcreatorFoundHosts(mcLink, mcHostURLs, mcRedirectorIDs)
  2018. {
  2019. var aEl, liEl, docFrag;
  2020. var hostName, mcRedirectorID, trimFilename = false;
  2021. var i = mcHostURLs.length;
  2022. if (i == 0)
  2023. {
  2024. trimFilename = true;
  2025. mcLink.parentNode.insertBefore(document.createTextNode(' | No files inside container'), mcLink.nextSibling);
  2026. }
  2027. else
  2028. {
  2029. if (Display_full_links_in_link_containers)
  2030. { //full view
  2031. var wrapperEl = document.createElement('span');
  2032. wrapperEl.style.display = 'block';
  2033. var ulistEl = document.createElement('ul');
  2034. ulistEl.className = 'container_list';
  2035. while (i--)
  2036. {
  2037. liEl = document.createElement('li');
  2038. aEl = document.createElement('a');
  2039. aEl.appendChild(document.createTextNode(mcHostURLs[i]));
  2040. aEl.href = mcHostURLs[i];
  2041. aEl.className = 'container_link';
  2042. liEl.appendChild(aEl);
  2043. ulistEl.appendChild(liEl);
  2044. }
  2045. wrapperEl.appendChild(ulistEl);
  2046. mcLink.parentNode.replaceChild(wrapperEl, mcLink);
  2047. wrapperEl.insertBefore(mcLink, wrapperEl.firstChild);
  2048. }
  2049. else
  2050. { //compact view
  2051. trimFilename = true;
  2052. docFrag = document.createDocumentFragment();
  2053. docFrag.appendChild(document.createTextNode(' |'));
  2054. while (i--)
  2055. {
  2056. mcRedirectorID = mcRedirectorIDs[i];
  2057. hostName = mcHostURLs[i];
  2058. if (mcRedirectorID > mcShortHostNames.length-1 || mcShortHostNames[mcRedirectorID] == '??')
  2059. hostName = hostName.replace(/https?:\/\/(?:www\.)?([-0-9a-z]+(?:\.[-0-9a-z]+)?)\.[a-z]+\/.*/i, '$1').toUpperCase();
  2060. else
  2061. hostName = mcShortHostNames[mcRedirectorID];
  2062. aEl = document.createElement('a');
  2063. aEl.href = mcHostURLs[i];
  2064. aEl.className = 'container_link';
  2065. aEl.appendChild(document.createTextNode(hostName));
  2066. docFrag.appendChild(aEl);
  2067. docFrag.appendChild(document.createTextNode('|'));
  2068. }
  2069. mcLink.parentNode.insertBefore(docFrag, mcLink.nextSibling);
  2070. } //end of else block
  2071. } //end of else block
  2072. mcLink.className = '';
  2073. if (trimFilename)
  2074. mcLink.firstChild.nodeValue = mcLink.firstChild.nodeValue.replace(/(https?:\/\/[^\/]+\/files\/\w+\/).+/, '$1...');
  2075. cMirrorcreatorComProcessed++;
  2076. if (cMirrorcreatorComProcessed == cMirrorcreatorComTotal) //start check when all mc links have been processed
  2077. {
  2078. if (Do_not_linkify_DL_links)
  2079. delinkifySnapshot(mcSnapshot);
  2080. startBulkCheck('container_link');
  2081. start('container_link');
  2082. }
  2083. } //end of function processMirrorcreatorFoundHosts
  2084.  
  2085. containers_processed = true;
  2086.  
  2087.  
  2088. function initRedirectors()
  2089. {
  2090. function addRedirector(linkRegex, xpathEx, redirType, innerLinkRegex)
  2091. {
  2092. var redirector = new Object();
  2093. redirector.linkRegex = linkRegex;
  2094. redirector.xpath = xpathEx; //xpath expression
  2095. redirector.cProcessed = 0; //processed links count
  2096. redirector.cTotal = 0; //total links count
  2097. redirector.type = redirType; //redirectorTypes enum
  2098. redirector.innerLinkRegex = innerLinkRegex; //innerLink, null if unused
  2099. redirectors.push(redirector);
  2100. }
  2101. if (GM_getValue("Check_safelinking_dot_net_links", false))
  2102. {
  2103. addRedirector(
  2104. 'safelinking\\.net\/d\/\\w+',
  2105. "//a[contains(@href,'safelinking.net/d/')]",
  2106. redirectorTypes.HTTP_302,
  2107. null);
  2108. }
  2109. if (GM_getValue("Check_linksafe_dot_me_links", false))
  2110. {
  2111. addRedirector(
  2112. 'linksafe\\.me\/d\/\\w+',
  2113. "//a[contains(@href,'linksafe.me/d/')]",
  2114. redirectorTypes.HTTP_302,
  2115. null);
  2116. }
  2117. if (GM_getValue("Check_linkto_dot_net_links", false))
  2118. {
  2119. addRedirector(
  2120. 'linkto\\.net\/\\?\\w+\\.\\d+',
  2121. "//a[contains(@href,'linkto.net/?')]",
  2122. redirectorTypes.INNER_LINK,
  2123. /<iframe id="iframe" name="iframe" src="(.+?)\s*" frameborder="0"/);
  2124. }
  2125. if (GM_getValue("Check_theloo_dot_katt_dot_it_links", false))
  2126. {
  2127. addRedirector(
  2128. '(?:the)?loo\\.katt\\.it\/\\w+',
  2129. "//a[contains(@href,'loo.katt.it/')]",
  2130. redirectorTypes.THELOO_KATT_IT,
  2131. /Proceed to URL - <a href="(.+?)">/);
  2132. }
  2133. if (GM_getValue("Check_madlink_dot_sk_links", false))
  2134. {
  2135. addRedirector(
  2136. 'madlink\\.sk\/\\w+',
  2137. "//a[contains(@href,'madlink.sk/')]",
  2138. redirectorTypes.INNER_LINK,
  2139. /name="url" value="(.+?)\s*"\/>/);
  2140. }
  2141. if (GM_getValue("Check_adf_dot_ly_links", false))
  2142. {
  2143. addRedirector(
  2144. '(?:adf\\.ly|[u9]\\.bb|[qj]\\.gs)\/\\w+',
  2145. "//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/')]",
  2146. redirectorTypes.ADF_LY,
  2147. null);
  2148. }
  2149. if (GM_getValue("Check_redi_dot_re_links", false))
  2150. {
  2151. addRedirector(
  2152. 'redi\\.re\/\\w+',
  2153. "//a[contains(@href,'redi.re/')]",
  2154. redirectorTypes.HTTP_302,
  2155. null);
  2156. }
  2157. if (GM_getValue("Check_bit_dot_ly_links", false))
  2158. {
  2159. addRedirector(
  2160. 'bit\\.ly\/\\w+',
  2161. "//a[contains(@href,'bit.ly/')]",
  2162. redirectorTypes.HTTP_302,
  2163. null);
  2164. }
  2165. }
  2166.  
  2167. }
  2168.  
  2169. var bulkHosts = new Array();
  2170. var bulkHostNames = new Array();
  2171. function initBulkCheck()
  2172. {
  2173. /////////////////////////////
  2174. // Inits filehost object
  2175. /////////////////////////////
  2176. // params :
  2177. // hostName -- [string] host name (multiple domains separated with coma)
  2178. // linkRegex -- [string] link regex
  2179. // xpath -- [string] xpath expression to detect the link objects with evaluate
  2180. // blockSize -- [integer] max. number of links sent in one request, 50 if null
  2181. // corrMatch -- [regex] link correction regex (match), applied prior to corrRepl
  2182. // corrReplWhat -- [regex] link correction regex (replace)
  2183. // corrReplWith -- [string]
  2184. // splitSeparator -- [string] POSTDATA links separator, "\r\n" if null
  2185. //
  2186. // apiUrl -- [string] web linkchecker or API URL
  2187. // postData -- [string] POSTDATA of xmlhttprequest
  2188. // resLinkRegex -- [regex]
  2189. // resLiveRegex -- [regex] matches substrings containing live links in the request response
  2190. // resDeadRegex -- [regex] matches substrings containing dead links in the request response
  2191. // resUnavaRegex -- [regex] matches substrings containing unava links in the request response
  2192. // func -- [function] bulkcheck handler, genBulkCheck if null
  2193. //
  2194. //////////////////////////////
  2195. function addHost(hostName, linkRegex, xpath, blockSize, corrMatch, corrReplWhat, corrReplWith, splitSeparator,
  2196. apiUrl, postData, resLinkRegex, resLiveRegex, resDeadRegex, resUnavaRegex, func)
  2197. {
  2198. var fileHost = new Object();
  2199.  
  2200. fileHost.linkRegex = linkRegex;
  2201. fileHost.linkRegexObject = new RegExp(linkRegex, "");
  2202. fileHost.xpath = xpath;
  2203. fileHost.cFound = 0; //found links counter
  2204. fileHost.links = new Array(); //found links
  2205. if (blockSize == null)
  2206. {
  2207. fileHost.blockSize = 50;
  2208. }
  2209. else
  2210. {
  2211. fileHost.blockSize = blockSize;
  2212. }
  2213. fileHost.corrMatch = corrMatch;
  2214. fileHost.corrReplWhat = corrReplWhat;
  2215. fileHost.corrReplWith = corrReplWith;
  2216. if (splitSeparator == null)
  2217. {
  2218. fileHost.splitSeparator = "\r\n";
  2219. }
  2220. else
  2221. {
  2222. fileHost.splitSeparator = splitSeparator;
  2223. }
  2224. fileHost.apiUrl = apiUrl;
  2225. fileHost.postData = postData;
  2226. fileHost.resLinkRegex = resLinkRegex;
  2227. fileHost.resLiveRegex = resLiveRegex;
  2228. fileHost.resDeadRegex = resDeadRegex;
  2229. fileHost.resUnavaRegex = resUnavaRegex;
  2230. if (func == null)
  2231. {
  2232. fileHost.func = genBulkCheck;
  2233. }
  2234. else
  2235. {
  2236. fileHost.func = func;
  2237. }
  2238. bulkHosts.push(fileHost);
  2239. var names = hostName.split(',');
  2240. var i = names.length;
  2241. while(i--)
  2242. {
  2243. bulkHostNames[names[i]] = fileHost;
  2244. }
  2245. }
  2246. var genType1 = [
  2247. "migahost.com", "rodfile.com", "downloadani.me",
  2248. "rarefile.net",
  2249. "filesabc.com", "sharebeast.com",
  2250. "180upload.com", "verzend.be",
  2251. "movreel.com",
  2252. "4up.me",
  2253. "file4safe.com", "filemac.com", "4upfiles.com",
  2254. "idup.in", "novafile.com", "longfiles.com",
  2255. "bitupload.com",
  2256. "uploadbaz.com"
  2257. ];
  2258. var genType2 = [ "queenshare.com",
  2259. "hulkload.com",
  2260. "amonshare.com", "edoc.com",
  2261. ];
  2262. //xfilesharing 1.0
  2263. function addGenericType1()
  2264. {
  2265. var i = genType1.length;
  2266. while(i--)
  2267. {
  2268. if (GM_getValue("Check_" + genType1[i].replace(/\./g, "_dot_").replace(/-/g, "_dash_") + "_links", false))
  2269. {
  2270. var regexSafe = genType1[i].replace(/\./g, "\\.").replace(/-/g, "\\-");
  2271. addHost(
  2272. genType1[i].match(/[\w-]+/)[0], //hostname
  2273. regexSafe + "\/\\w+", //linkregex
  2274. "//a[contains(@href,'" + genType1[i] + "/')]", //xpath
  2275. null, //blocksize
  2276. new RegExp("(http:\/\/(?:|www\\.)" + regexSafe + "\/\\w+)",""),//, //corrmatch
  2277. null, //corrreplwhat
  2278. null, //corrreplwith
  2279. null, //separator
  2280. "http://" + genType1[i] + "/checkfiles.html", //api url
  2281. "op=checkfiles&process=Check+URLs&list=", //postdata
  2282. new RegExp("(" + regexSafe + "\/\\w+)",""), //linkregex
  2283. new RegExp("green'>http:\/\/(?:|www\.)" + regexSafe + "\/\\w+","g"), //liveregex
  2284. new RegExp("red'>http:\/\/(?:|www\.)" + regexSafe + "\/\\w+","g"), //deadregex
  2285. new RegExp("orange'>http:\/\/(?:|www\.)" + regexSafe + "\/\\w+","g"), //unavaregex
  2286. null //function delegate
  2287. )
  2288. }
  2289. }
  2290. }
  2291. //xfilesharing 2.0
  2292. function addGenericType2()
  2293. {
  2294. var i = genType2.length;
  2295. while(i--)
  2296. {
  2297. if (GM_getValue("Check_" + genType2[i].replace(/\./g, "_dot_").replace(/-/g, "_dash_") + "_links", false))
  2298. {
  2299. var regexSafe = genType2[i].replace(/\./g, "\\.").replace(/-/g, "\\-");
  2300. addHost(
  2301. genType2[i].match(/[\w-]+/)[0], //hostname
  2302. regexSafe + "\/\\w+", //linkregex
  2303. "//a[contains(@href,'" + genType2[i] + "/')]", //xpath
  2304. null, //blocksize
  2305. new RegExp("(http:\/\/(?:|www\\.)" + regexSafe + "\/\\w+)",""),//, //corrmatch
  2306. null, //corrreplwhat
  2307. null, //corrreplwith
  2308. null, //separator
  2309. "http://www." + genType2[i] + "/?op=checkfiles", //api url
  2310. "op=checkfiles&process=Check+URLs&list=", //postdata
  2311. new RegExp("(" + regexSafe + "\/\\w+)",""), //linkregex
  2312. new RegExp(regexSafe + "\/\\w+.*?<\/td>\\s*<td style=\"color:green;\">","g"), //liveregex
  2313. new RegExp(regexSafe + "\/\\w+.*?<\/td>\\s*<td style=\"color:red;\">","g"), //deadregex
  2314. new RegExp(regexSafe + "\/\\w+.*?<\/td>\\s*<td style=\"color:orange;\">","g"), //unavaregex
  2315. null //function delegate
  2316. )
  2317. }
  2318. }
  2319. }
  2320. // TEMPLATE
  2321. // if (GM_getValue("Check__dot_com_links", false))
  2322. // {
  2323. // addHost(
  2324. // "", //hostname
  2325. // "", //linkregex
  2326. // "//a[contains(@href,'.com/')]", //xpath
  2327. // null, //blocksize
  2328. // null, //corrmatch
  2329. // null, //corrreplwhat
  2330. // null, //corrreplwith
  2331. // null, //separator
  2332. // "", //api url
  2333. // "", //postdata
  2334. // /()/, //linkregex
  2335. // //liveregex
  2336. // //deadregex
  2337. // //unavaregex
  2338. // null //function delegate
  2339. // )
  2340. // }
  2341. addGenericType1();
  2342. addGenericType2();
  2343.  
  2344. if (GM_getValue("Check_myvdrive_dot_com_links", false))
  2345. {
  2346. addHost(
  2347. "myvdrive,fileserving", //hostname
  2348. "(?:fileserving|myvdrive)\\.com\/files\/[\\w-]+", //linkregex
  2349. "//a[contains(@href,'fileserving.com/files') or contains(@href,'myvdrive.com/files')]", //xpath
  2350. null, //blocksize
  2351. null, //corrmatch
  2352. null, //corrreplwhat
  2353. null, //corrreplwith
  2354. null, //separator
  2355. "http://www.myvdrive.com/Public/linkchecker#", //api url
  2356. "links=", //postdata
  2357. /(?:fileserving|myvdrive)\.com\/(files\/\w+)/, //linkregex
  2358. /icon_file_check_valid"><\/span>\s*http:\/\/www\.(?:fileserving|myvdrive)\.com\/files\/[\w-]+/g, //liveregex
  2359. /icon_file_check_(?:removed|notvalid)"><\/span>\s*http:\/\/www\.(?:fileserving|myvdrive)\.com\/files\/[\w-]+/g, //deadregex
  2360. null, //unavaregex
  2361. null //function delegate
  2362. )
  2363. }
  2364. if (GM_getValue("Check_hackerbox_dot_org_links", false))
  2365. {
  2366. addHost(
  2367. "hackerbox", //hostname
  2368. "host\\.hackerbox\\.org\/\\w+", //linkregex
  2369. "//a[contains(@href,'host.hackerbox.org/')]", //xpath
  2370. null, //blocksize
  2371. /(http:\/\/host\.hackerbox\.org\/\w+)/, //corrmatch
  2372. null, //corrreplwhat
  2373. null, //corrreplwith
  2374. null, //separator
  2375. "http://host.hackerbox.org/checkfiles.html", //api url
  2376. "op=checkfiles&process=Check+URLs&list=", //postdata
  2377. /(host\.hackerbox\.org\/\w+)/, //linkregex
  2378. /green'>http:\/\/host\.hackerbox\.org\/\w+/g, //liveregex
  2379. /red'>http:\/\/host\.hackerbox\.org\/\w+/g, //deadregex
  2380. /orange'>http:\/\/host\.hackerbox\.org\/\w+/g, //unavaregex
  2381. null //function delegate
  2382. )
  2383. }
  2384. if (GM_getValue("Check_hellshare_dot_com_links", false))
  2385. {
  2386. addHost(
  2387. "hellshare", //hostname
  2388. "(?:|download\\.(?:cz\\.|en\\.|sk\\.|)|www\\.)hellshare\\.(?:com|sk|cz|pl|hu|COM|SK|CZ|PL|HU)\/[\\w-\\.]+\/(?:[\\w-\\.]+\/|)\\d{5,}", //linkregex
  2389. "//a[contains(@href,'hellshare.')]", //xpath
  2390. 48, //blocksize
  2391. null, //corrmatch
  2392. null, //corrreplwhat
  2393. null, //corrreplwith
  2394. null, //separator
  2395. null, //api url
  2396. null, //postdata
  2397. null, //linkregex
  2398. null, //liveregex
  2399. null, //deadregex
  2400. null, //unavaregex
  2401. hellshareBulkCheck //function delegate
  2402. )
  2403. }
  2404. if (GM_getValue("Check_ncrypt_dot_in_links", false))
  2405. {
  2406. addHost(
  2407. "ncrypt", //hostname
  2408. "ncrypt\\.in\/folder\\-\\w+", //linkregex
  2409. "//a[contains(@href,'ncrypt.in/folder')]", //xpath
  2410. 100000, //blocksize
  2411. null, //corrmatch
  2412. null, //corrreplwhat
  2413. null, //corrreplwith
  2414. null, //separator
  2415. null,
  2416. null,
  2417. null,
  2418. null,
  2419. null,
  2420. null,
  2421. ncryptBulkCheck //function delegate
  2422. )
  2423. }
  2424. if (GM_getValue("Check_geupload_dot_com_links", false))
  2425. {
  2426. addHost(
  2427. "geupload,lenfile", //hostname
  2428. "(?:geupload\\.com|lenfile\\.com)\/\\w+", //linkregex
  2429. "//a[contains(@href,'geupload.com/') or contains(@href,'lenfile.com/')]", //xpath
  2430. null, //blocksize
  2431. null, //corrmatch
  2432. null, //corrreplwhat
  2433. null, //corrreplwith
  2434. "\n", //separator
  2435. 'http://geupload.com/?op=checkfiles',
  2436. 'op=checkfiles&process=Check+URLs&list=',
  2437. />http:\/\/(?:geupload|lenfile)\.com\/(\w+)/,
  2438. />http:\/\/(?:geupload|lenfile)\.com\/\w+(?:[^>]+>)<td style=\"color\:green/g,
  2439. />http:\/\/(?:geupload|lenfile)\.com\/\w+(?:[^>]+>)<td style=\"color\:red/g,
  2440. null,
  2441. null
  2442. )
  2443. }
  2444. if (GM_getValue("Check_filepost_dot_com_links", false))
  2445. {
  2446. addHost(
  2447. "filepost,fp", //hostname
  2448. "(?:filepost\\.com\/files|fp\\.io)\/\\w+", //linkregex
  2449. "//a[contains(@href,'filepost.com/files/') or contains(@href,'fp.io/')]", //xpath
  2450. null, //blocksize
  2451. null, //corrmatch
  2452. null, //corrreplwhat
  2453. null, //corrreplwith
  2454. "\n", //separator
  2455. 'http://filepost.com/files/checker/?JsHttpRequest=0-xml',
  2456. 'urls=',
  2457. /\\\/files\\\/(\w+)/,
  2458. />http:\\\/\\\/filepost\.com\\\/files\\\/\w+(?:[^>]+>){5}(?:\\n|\\t)+<span class=\\"v\\"/g,
  2459. />http:\\\/\\\/filepost\.com\\\/files\\\/\w+(?:[^>]+>){5}(?:\\n|\\t)+<span class=\\"x\\"/g,
  2460. null,
  2461. null //function delegate
  2462. )
  2463. }
  2464. if (GM_getValue("Check_filesflash_dot_com_links", false))
  2465. {
  2466. addHost(
  2467. "filesflash", //hostname
  2468. "filesflash\\.com\/\\w+", //linkregex
  2469. "//a[contains(@href,'filesflash.com')]", //xpath
  2470. null, //blocksize
  2471. null, //corrmatch
  2472. /http:\/\//, //corrreplwhat
  2473. '', //corrreplwith
  2474. null, //separator
  2475. 'http://filesflash.com/checklinks.php',
  2476. 'submit=Go&links=',
  2477. /filesflash\.com\/(\w+)/,
  2478. /<td>filesflash\.com\/\w+<\/td>\s*<td>Available/g,
  2479. /<td>filesflash\.com\/\w+<\/td>\s*<td>(?:Invalid|Deleted|Expired|Banned)?<\/td>/g,
  2480. null,
  2481. null //function delegate
  2482. )
  2483. }
  2484. if (GM_getValue("Check_jumbofiles_dot_com_links", false))
  2485. {
  2486. addHost(
  2487. "jumbofiles", //hostname
  2488. "jumbofiles\\.com\/\\w+", //linkregex
  2489. "//a[contains(@href,'jumbofiles.com/')]", //xpath
  2490. null, //blocksize
  2491. /(http:\/\/(?:|www\.)jumbofiles\.com\/\w+)/, //corrmatch
  2492. null, //corrreplwhat
  2493. null, //corrreplwith
  2494. null, //separator
  2495. "http://jumbofiles.com/checkfiles.html", //api url
  2496. "op=checkfiles&process=Check+URLs&list=", //postdata
  2497. /(jumbofiles\.com\/\w+)/, //linkregex
  2498. /blue'>http:\/\/(?:|www\.)jumbofiles\.com\/\w+/g, //liveregex
  2499. /red'>http:\/\/(?:|www\.)jumbofiles\.com\/\w+/g, //deadregex
  2500. /orange'>http:\/\/(?:|www\.)jumbofiles\.com\/\w+/g, //unavaregex
  2501. null //function delegate
  2502. )
  2503. }
  2504. if (GM_getValue("Check_edisk_dot_cz_links", false))
  2505. {
  2506. addHost(
  2507. "edisk", //hostname
  2508. "(?:(?:muj|data)\\d*\\.|)edisk\\.(?:cz|sk|eu)\/(?:|(?:cz|sk|en|pl)\/)", //linkregex
  2509. "//a[contains(@href,'edisk.')]", //xpath
  2510. null, //blocksize
  2511. null, //corrmatch
  2512. /edisk\.\w{2}\/(?:|\w{2}\/)stahni/, //corrreplwhat
  2513. 'edisk.cz/stahni', //corrreplwith
  2514. null, //separator
  2515. 'http://www.edisk.cz/zkontrolovat-odkazy',
  2516. 'submitBtn=Zkontrolovat&checkFiles=',
  2517. /((?:download|stahn(?:i|out-soubor))\/\d+)/,
  2518. /"ano"\/>\s*<\/td>\s*<td>\s*http:\/\/.+/g,
  2519. /"ne"\/>\s*<\/td>\s*<td>\s*http:\/\/.+/g,
  2520. null,
  2521. null //function delegate
  2522. )
  2523. }
  2524. if (GM_getValue("Check_bezvadata_dot_cz_links", false))
  2525. {
  2526. GM_xmlhttpRequest( //age check skip
  2527. {
  2528. method: 'POST',
  2529. url: 'http://bezvadata.cz/vyhledavani/souhlas-zavadny-obsah',
  2530. headers: {
  2531. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  2532. 'Content-type': 'application/x-www-form-urlencoded',
  2533. 'Referer': ""
  2534. }
  2535. });
  2536. addHost(
  2537. "bezvadata", //hostname
  2538. "(?:beta\\.|)bezvadata\.cz\/stahnout\/\\d+\\w+", //linkregex
  2539. "//a[contains(@href,'bezvadata.cz')]", //xpath
  2540. null, //blocksize
  2541. null, //corrmatch
  2542. null, //corrreplwhat
  2543. null, //corrreplwith
  2544. null, //separator
  2545. 'http://bezvadata.cz/nastroje/kontrola-odkazu?do=kontrolaOdkazuForm-submit',
  2546. 'zkontrolovat=Zkontrolovat&odkazy=',
  2547. /(bezvadata\.cz\/stahnout\/\d+)/,
  2548. /bezvadata\.cz\/stahnout\/.+?<\/td>\s*<td style="background-color: #d9ffb2/g,
  2549. /bezvadata\.cz\/stahnout\/.+?<\/td>\s*<td style="background-color: #ffb2b2/g,
  2550. null,
  2551. null //function delegate
  2552. )
  2553. }
  2554. if (GM_getValue("Check_linkcrypt_dot_ws_links", false))
  2555. {
  2556. addHost(
  2557. "linkcrypt", //hostname
  2558. "linkcrypt\\.ws\/dir\/\\w+", //linkregex
  2559. "//a[contains(@href,'linkcrypt.ws/dir')]", //xpath
  2560. 100000, //blocksize
  2561. null, //corrmatch
  2562. null, //corrreplwhat
  2563. null, //corrreplwith
  2564. null, //separator
  2565. null,
  2566. null,
  2567. null,
  2568. null,
  2569. null,
  2570. null,
  2571. linkcryptBulkCheck //function delegate
  2572. )
  2573. }
  2574. if (GM_getValue("Check_linksave_dot_in_links", false))
  2575. {
  2576. addHost(
  2577. "linksave", //hostname
  2578. "linksave\\.in\/\\w+", //linkregex
  2579. "//a[contains(@href,'linksave.in')]", //xpath
  2580. 100000, //blocksize
  2581. null, //corrmatch
  2582. null, //corrreplwhat
  2583. null, //corrreplwith
  2584. null, //separator
  2585. null,
  2586. null,
  2587. null,
  2588. null,
  2589. null,
  2590. null,
  2591. linksaveBulkCheck //function delegate
  2592. )
  2593. }
  2594. if (GM_getValue("Check_videobb_dot_com_links", false))
  2595. {
  2596. addHost(
  2597. "videobb", //hostname
  2598. "videobb\\.com\/(?:video\/|watch_video\\.php\\?v=)\\w+", //linkregex
  2599. "//a[contains(@href,'videobb.com')]", //xpath
  2600. null, //blocksize
  2601. null, //corrmatch
  2602. /watch_video\.php\?v=/, //corrreplwhat
  2603. 'video/', //corrreplwith
  2604. null, //separator
  2605. 'http://www.videobb.com/link_checker.php',
  2606. 'links=',
  2607. /videobb\.com\/video\/(\w+)/,
  2608. /<td>http:\/\/(?:www\.|)videobb.com\/video\/\w+<\/td>\s+<td>.+?<\/td>\s+<td>\d+:\d+<\/td>\s+<td>Available/g,
  2609. /<td>http:\/\/(?:www\.|)videobb.com\/video\/\w+<\/td>\s+<td><\/td>\s+<td>N\/A<\/td>\s+<td>Not Available/g,
  2610. null,
  2611. null //function delegate
  2612. )
  2613. }
  2614. if (GM_getValue("Check_cramit_dot_in_links", false))
  2615. {
  2616. addHost(
  2617. "cramit,cramitin", //hostname
  2618. "cramit(?:\\.in|in\\.net)\/", //linkregex
  2619. "//a[contains(@href,'cramitin.net') or contains(@href,'cramit.in')]", //xpath
  2620. null, //blocksize
  2621. null, //corrmatch
  2622. null, //corrreplwhat
  2623. null, //corrreplwith
  2624. null, //separator
  2625. 'http://cramit.in/checkfiles.html',
  2626. 'op=checkfiles&process=CHECK+URL%27S&list=',
  2627. /(cramit(?:\.in|in\.net)\/\w+)/,
  2628. /green>http:\/\/(?:www\.|)cramit(?:\.in|in\.net)\/\w+/g,
  2629. /red'>http:\/\/(?:www\.|)cramit(?:\.in|in\.net)\/\w+/g,
  2630. /orange'>http:\/\/(?:www\.|)cramit(?:\.in|in\.net)\/\w+/g,
  2631. null //function delegate
  2632. )
  2633. }
  2634. if (GM_getValue("Check_turbobit_dot_net_links", false))
  2635. {
  2636. addHost(
  2637. "turbobit", //hostname
  2638. "turbobit\\.(?:net|pl)\/(?:\\w+\/|).+?\\.html", //linkregex
  2639. "//a[contains(@href,'turbobit.')]", //xpath
  2640. null, //blocksize
  2641. /(turbobit\.(?:net|pl)\/(?:\w+\/|).+?\.html)/, //corrmatch
  2642. null, //corrreplwhat
  2643. null, //corrreplwith
  2644. "\n", //separator
  2645. 'http://turbobit.net/linkchecker/csv',
  2646. 'links_to_check=',
  2647. /(turbobit\.(?:net|pl)\/\w+)/,
  2648. /turbobit\.(?:net|pl)\/.*?, 1/g,
  2649. /turbobit\.(?:net|pl)\/.*?, 0/g,
  2650. null,
  2651. null //function delegate
  2652. )
  2653. }
  2654. if (GM_getValue("Check_filerio_dot_com_links", false))
  2655. {
  2656. addHost(
  2657. "filekeen,filerio", //hostname
  2658. //"file(?:keen|rio)\\.(?:com|in)\/\\w+\/.", //linkregex
  2659. "file(?:keen|rio)\\.(?:com|in)\/\\w+", //linkregex
  2660. "//a[contains(@href,'filekeen.com') or contains(@href,'filerio.')]", //xpath
  2661. null, //blocksize
  2662. null, //corrmatch
  2663. null, //corrreplwhat
  2664. null, //corrreplwith
  2665. null, //separator
  2666. 'http://filerio.in/checkfiles.html',
  2667. 'op=checkfiles&process=Check+URLs&list=',
  2668. /(file(?:keen|rio)\.(?:com|in)\/\w+)/,
  2669. /green'>http:\/\/(?:www\.|)file(?:keen|rio)\.(?:com|in)\/\w+/g,
  2670. /red'>http:\/\/(?:www\.|)file(?:keen|rio)\.(?:com|in)\/\w+/g,
  2671. /orange'>http:\/\/(?:www\.|)file(?:keen|rio)\.(?:com|in)\/\w+/g,
  2672. null //function delegate
  2673. )
  2674. }
  2675. if (GM_getValue("Check_share_dash_online_dot_biz_links", false))
  2676. {
  2677. addHost(
  2678. "share-online,egoshare", //hostname
  2679. "(?:share-online\\.biz|egoshare\\.com)\/(?:dl\/|download\\.php\\?id=)", //linkregex
  2680. "//a[contains(@href,'share-online.biz') or contains(@href,'egoshare.com')]", //xpath
  2681. null, //blocksize
  2682. /http:\/\/(?:www\.)?(?:share-online\.biz|egoshare\.com)\/d(?:l\/|ownload\.php\?id=)(\w+)/, //corrmatch
  2683. null, //corrreplwhat
  2684. null, //corrreplwith
  2685. "\n", //separator
  2686. 'http://api.share-online.biz/linkcheck.php',
  2687. 'links=',
  2688. /(\w+);(?:OK|NOTFOUND|DELETED)/,
  2689. /\w+;OK/g,
  2690. /\w+;(?:NOTFOUND|DELETED)/g,
  2691. null,
  2692. null //function delegate
  2693. )
  2694. }
  2695. if (GM_getValue("Check_quickshare_dot_cz_links", false))
  2696. {
  2697. addHost(
  2698. "quickshare", //hostname
  2699. "quickshare\\.cz\/stahnout-soubor\/\\d+", //linkregex
  2700. "//a[contains(@href,'quickshare.cz')]", //xpath
  2701. null, //blocksize
  2702. null, //corrmatch
  2703. null, //corrreplwhat
  2704. null, //corrreplwith
  2705. null, //separator
  2706. 'http://www.quickshare.cz/nastroje/link-checker',
  2707. 'linky=',
  2708. /quickshare\.cz\/stahnout-soubor\/(\d+(?::\w+)?)/,
  2709. /quickshare\.cz\/stahnout-soubor\/\d+(?::[\w\-.+$!*\/()\[\]\',~%?:@#&=\\]+)?\s*<\/a><\/td><td><img src="\/img\/ok\.gif/g,
  2710. /quickshare\.cz\/stahnout-soubor\/\d+(?::[\w\-.+$!*\/()\[\]\',~%?:@#&=\\]+)?\s*<\/td><td><img src="\/img\/nenalezeno\.gif/g,
  2711. null,
  2712. null //function delegate
  2713. )
  2714. }
  2715. if (GM_getValue("Check_netload_dot_in_links", false))
  2716. {
  2717. addHost(
  2718. "netload", //hostname
  2719. "netload\\.in\/datei\\w{10}", //linkregex
  2720. "//a[contains(@href,'netload.in')]", //xpath
  2721. null, //blocksize
  2722. null, //corrmatch
  2723. null, //corrreplwhat
  2724. null, //corrreplwith
  2725. "\n", //separator
  2726. "http://api.netload.in/index.php?id=2", //api url
  2727. "send=Absenden&links=", //postdata
  2728. /(\w+);/, //linkregex
  2729. /\w{10,};.+?;.+?;online/g, //liveregex
  2730. /\w{10,};.+?;.+?;offline/g, //deadregex
  2731. null, //unavaregex
  2732. //netloadBulkCheck //function delegate //disabled on probation since 1.2.4.5
  2733. null //function delegate
  2734. )
  2735. }
  2736. if (GM_getValue("Check_oboom_dot_com_links", false))
  2737. {
  2738. addHost(
  2739. "oboom", //hostname
  2740. "oboom\\.com\/#?\\w{8}", //linkregex
  2741. "//a[contains(@href,'oboom.com/')]", //xpath
  2742. null, //blocksize
  2743. /oboom\.com\/#?(\w{8})/, //corrmatch
  2744. null, //corrreplwhat
  2745. null, //corrreplwith
  2746. null, //separator
  2747. null,
  2748. null,
  2749. null,
  2750. null, //liveregex
  2751. null, //deadregex
  2752. null,
  2753. oboomBulk //function delegate
  2754. )
  2755. }
  2756. if (GM_getValue("Check_mega_dot_co_dot_nz_links", false))
  2757. {
  2758. addHost(
  2759. "mega",
  2760. "mega(?:\\.co)?\\.nz\/#!\\w+",
  2761. "//a[contains(@href,'mega.co.nz/') or contains(@href,'mega.nz/')]",
  2762. 100000, //blocksize
  2763. null, //corrmatch
  2764. null, //corrreplwhat
  2765. null, //corrreplwith
  2766. null, //separator
  2767. null,
  2768. null,
  2769. null,
  2770. null,
  2771. null,
  2772. null,
  2773. megaBulkCheck //function delegate
  2774. )
  2775. }
  2776.  
  2777. //the same as GenType2, except api url is 'https://' instead of 'http://www.' and corrmatch is not??? needed
  2778.  
  2779. if (GM_getValue("Check_extabit_dot_com_links", false))
  2780. {
  2781. addHost(
  2782. "extabit", //hostname
  2783. "extabit\\.com\/file\/\\w+", //linkregex
  2784. "//a[contains(@href,'extabit.com')]", //xpath
  2785. null, //blocksize
  2786. null, //corrmatch
  2787. null, //corrreplwhat
  2788. null, //corrreplwith
  2789. "\n", //separator
  2790. "http://extabit.com/linkchecker.jsp", //api url
  2791. "url=", //postdata
  2792. /extabit\.com\/(file\/\w+)/, //linkregex
  2793. /extabit\.com\/file\/\w+\/[^<]+<\/a><\/td>\s*<td class="status"><span class="status_green">/g, //liveregex
  2794. /extabit\.com\/file\/\w+\/[^<]+<\/a><\/td>\s*<td class="status"><span class="status_red">/g, //deadregex
  2795. /extabit\.com\/file\/\w+\/[^<]+<\/a><\/td>\s*<td class="status"><span class="status_yellow">/g, //unavaregex
  2796. extabitBulkCheck //function delegate
  2797. )
  2798. }
  2799. if (GM_getValue("Check_junocloud_dot_me_links", false))
  2800. {
  2801. addHost(
  2802. "junocloud", //hostname
  2803. "junocloud\\.me\/\\w+", //linkregex
  2804. "//a[contains(@href,'junocloud.me')]", //xpath
  2805. null, //blocksize
  2806. null, //corrmatch
  2807. null, //corrreplwhat
  2808. null, //corrreplwith
  2809. "\n", //separator
  2810. "http://junocloud.me/checkfiles.html", //api url
  2811. "op=checkfiles&process=Check+URLs&list=", //postdata
  2812. /(junocloud\.me\/\w+)/, //linkregex
  2813. /<a href="http:\/\/junocloud\.me\/\w+[^<]+<\/a>\s*<span style="color: green/g, //liveregex
  2814. /<a href="http:\/\/junocloud\.me\/\w+[^<]+<\/a>\s*<span style="color: red/g, //deadregex
  2815. null, //unavaregex
  2816. null //function delegate
  2817. )
  2818. }
  2819. if (GM_getValue("Check_webshare_dot_cz_links", false))
  2820. {
  2821. addHost(
  2822. "webshare", //hostname
  2823. "webshare\.cz\/(?:(?:#/)?file/\\w+|\\w+-.*)", //linkregex
  2824. "//a[contains(@href,'webshare.cz')]", //xpath
  2825. 100000, //blocksize
  2826. null, //corrmatch
  2827. null, //corrreplwhat
  2828. null, //corrreplwith
  2829. null, //separator
  2830. null, //api url
  2831. null, //postdata
  2832. null, //linkregex
  2833. null, //liveregex
  2834. null, //deadregex
  2835. null, //unavaregex
  2836. webshareBulkCheck //function delegate
  2837. )
  2838. }
  2839. /////////////////////////////
  2840. // Common function delegate to send links to get checked by host linkchecker
  2841. /////////////////////////////
  2842. // If you define a new delegate, you may use following properties
  2843. // this.links [array] array of strings (link blocks). The links in each block separated with host.splitSeparator.
  2844. // this.apiUrl [string] API or web linkchecker URL
  2845. // this.postData [string] POSTDATA for POST request
  2846. // this.resLiveRegex [regex] matches live substrings in the request response
  2847. // this.resDeadRegex [regex] matches dead substrings in the request response
  2848. // this.resUnavaRegex [regex] matches unava substrings in the request response (the regex is often null!)
  2849. //
  2850. // this.resLinkRegex [regex] matches links further passed to DisplayTheCheckedLinks
  2851. //
  2852. // See the code below for standard bulkcheck handling reference.
  2853. //////////////////////////////
  2854. function genBulkCheck()
  2855. {
  2856. var blockIdx = this.links.length;
  2857. while (blockIdx--)
  2858. {
  2859. postRequest(this.apiUrl, this.postData, this.links[blockIdx],
  2860. this.resLinkRegex, this.resLiveRegex, this.resDeadRegex, this.resUnavaRegex);
  2861. }
  2862. function postRequest(api, postData, links, linkRegex, liveRegex, deadRegex, unavaRegex)
  2863. {
  2864. GM_xmlhttpRequest(
  2865. {
  2866. method: 'POST',
  2867. url: api,
  2868. headers: {
  2869. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  2870. 'Content-type': 'application/x-www-form-urlencoded',
  2871. 'Referer': api,
  2872. 'X-Requested-With': 'XMLHttpRequest'
  2873. },
  2874. data: postData + encodeURIComponent(links),
  2875. onload: function (result)
  2876. {
  2877. var res = result.responseText;
  2878. // GM_log(res);
  2879. var i;
  2880.  
  2881. var livelinks = res.match(liveRegex);
  2882. var deadlinks = res.match(deadRegex);
  2883. // GM_log(livelinks);
  2884. // GM_log(deadlinks);
  2885. if (livelinks != null)
  2886. {
  2887. i = livelinks.length - 1;
  2888. do
  2889. {
  2890. livelinks[i] = livelinks[i].match(linkRegex)[1];
  2891. }
  2892. while (i--);
  2893. DisplayTheCheckedLinks(livelinks, 'alive_link');
  2894. }
  2895.  
  2896. if (deadlinks != null)
  2897. {
  2898. i = deadlinks.length - 1;
  2899. do
  2900. {
  2901. deadlinks[i] = deadlinks[i].match(linkRegex)[1];
  2902. }
  2903. while (i--);
  2904. DisplayTheCheckedLinks(deadlinks, 'adead_link');
  2905. }
  2906.  
  2907. if (unavaRegex != null)
  2908. {
  2909. var unavalinks = res.match(unavaRegex);
  2910. if (unavalinks)
  2911. {
  2912. i = unavalinks.length - 1;
  2913. do
  2914. {
  2915. unavalinks[i] = unavalinks[i].match(linkRegex)[1];
  2916. }
  2917. while (i--);
  2918. DisplayTheCheckedLinks(unavalinks, 'unava_link');
  2919. }
  2920. }
  2921. }
  2922. });
  2923. }
  2924. }
  2925. //specialized bulkchecking handlers follow
  2926. function webshareBulkCheck()
  2927. {
  2928. var arr = this.links[0].split("\r\n");
  2929. var i = arr.length;
  2930. while(i--)
  2931. {
  2932. postRequest(arr[i]);
  2933. }
  2934. //function postRequest(api, postData, links, linkRegex, liveRegex, deadRegex, unavaRegex)
  2935. function postRequest(wsLink)
  2936. {
  2937. var id = wsLink.match(/webshare\.cz\/(?:(?:#\/)?file\/)?(\w+)/)[1];
  2938. GM_xmlhttpRequest(
  2939. {
  2940. method: 'POST',
  2941. url: "http://webshare.cz/api/file_info/",
  2942. headers: {
  2943. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  2944. 'Content-type': 'application/x-www-form-urlencoded',
  2945. 'Referer': "",
  2946. },
  2947. data: "wst=&ident=" + id,
  2948. onload: function (result)
  2949. {
  2950. var res = result.responseText;
  2951. if (res.match(/<name>.+?<\/name>/))
  2952. {
  2953. DisplayTheCheckedLinks([id], 'alive_link');
  2954. }
  2955. else
  2956. {
  2957. DisplayTheCheckedLinks([id], 'adead_link');
  2958. }
  2959. }
  2960. });
  2961. }
  2962. }
  2963. //like genBulkCheck, but extabit linkchecker only works when logged in. If not logged in, non-bulk checking has to be used.
  2964. //extabit also doesn't like requests in fast succession, so some delays are added.
  2965. function extabitBulkCheck()
  2966. {
  2967. var timeoutDelay = 0;
  2968. var blockIdx = this.links.length;
  2969. while (blockIdx--)
  2970. {
  2971. postRequest(this.apiUrl, this.postData, this.links[blockIdx],
  2972. this.resLinkRegex, this.resLiveRegex, this.resDeadRegex, this.resUnavaRegex);
  2973. }
  2974. function postRequest(api, postData, links, linkRegex, liveRegex, deadRegex, unavaRegex)
  2975. {
  2976. GM_xmlhttpRequest(
  2977. {
  2978. method: 'POST',
  2979. url: api,
  2980. headers: {
  2981. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  2982. 'Content-type': 'application/x-www-form-urlencoded',
  2983. 'Referer': api,
  2984. 'X-Requested-With': 'XMLHttpRequest'
  2985. },
  2986. data: postData + encodeURIComponent(links),
  2987. onload: function (result)
  2988. {
  2989. var res = result.responseText;
  2990. if (/id="registration_header"/.test(res)) //not logged in, have to use non-bulk
  2991. {
  2992. function geturlfunc(link, tryID) //basically the geturl function with some changes (compacted, displaythecheckedlinkS, multiple tries)
  2993. {
  2994. //GM_log(tryID + ': ' + link);
  2995. GM_xmlhttpRequest(
  2996. {
  2997. method: 'GET',
  2998. url: link,
  2999. 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': ""},
  3000. onload: function(result2)
  3001. {
  3002. var res2 = result2.responseText;
  3003. var res2Status = result.status;
  3004. if (/download-file-btn/.test(res2)) {DisplayTheCheckedLinks([link], 'alive_link'); return;}
  3005. if (/Search mirrors|id="mirrb"/.test(res2) || res2Status==404) {DisplayTheCheckedLinks([link], 'adead_link'); return;}
  3006. if (/currently unavailable|temporarily unavailable|disponible en estos momentos|vorläufig unerreichbar|Файл временно недоступен/.test(res2) || res2Status == 500 || res2Status == 503)
  3007. {
  3008. if (tryID < 7)
  3009. setTimeout(function(){geturlfunc(link,tryID+1)}, tryID * 1000 + (Math.random() * tryID * 2000));
  3010. else
  3011. {DisplayTheCheckedLinks([link], 'unava_link'); return;}
  3012. }
  3013. }
  3014. });
  3015. }
  3016. //split the hrefs and check them one by one
  3017. GM_log('Using slow extabit.com link checking. Log in to extabit to use fast bulk checking.');
  3018. links = links.split('\n');
  3019. var i = links.length;
  3020. while (i--)
  3021. {
  3022. if (links[i])
  3023. {
  3024. (function(i){setTimeout(function(){geturlfunc(links[i],1)}, timeoutDelay);})(i);
  3025. timeoutDelay += 500;
  3026. }
  3027. }
  3028. return;
  3029. }
  3030. var i;
  3031.  
  3032. var livelinks = res.match(liveRegex);
  3033. var deadlinks = res.match(deadRegex);
  3034. if (livelinks != null)
  3035. {
  3036. i = livelinks.length - 1;
  3037. do
  3038. {
  3039. livelinks[i] = livelinks[i].match(linkRegex)[1];
  3040. }
  3041. while (i--);
  3042. DisplayTheCheckedLinks(livelinks, 'alive_link');
  3043. }
  3044.  
  3045. if (deadlinks != null)
  3046. {
  3047. i = deadlinks.length - 1;
  3048. do
  3049. {
  3050. deadlinks[i] = deadlinks[i].match(linkRegex)[1];
  3051. }
  3052. while (i--);
  3053. DisplayTheCheckedLinks(deadlinks, 'adead_link');
  3054. }
  3055.  
  3056. if (unavaRegex != null)
  3057. {
  3058. var unavalinks = res.match(unavaRegex);
  3059. if (unavalinks)
  3060. {
  3061. i = unavalinks.length - 1;
  3062. do
  3063. {
  3064. unavalinks[i] = unavalinks[i].match(linkRegex)[1];
  3065. }
  3066. while (i--);
  3067. DisplayTheCheckedLinks(unavalinks, 'unava_link');
  3068. }
  3069. }
  3070. }
  3071. });
  3072. }
  3073. }
  3074. function netloadBulkCheck()
  3075. {
  3076. var blockIdx = this.links.length;
  3077.  
  3078. while (blockIdx--)
  3079. {
  3080. postRequest(this.apiUrl, this.postData, this.links[blockIdx],
  3081. this.resLinkRegex, this.resLiveRegex, this.resDeadRegex, this.unavaRegex);
  3082. }
  3083. function postRequest(api, postData, links, linkRegex, liveRegex, deadRegex, unavaRegex)
  3084. {
  3085. GM_xmlhttpRequest(
  3086. {
  3087. method: 'POST',
  3088. url: api,
  3089. headers: {
  3090. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  3091. 'Content-type': 'application/x-www-form-urlencoded',
  3092. 'Referer': ""
  3093. },
  3094. data: postData + encodeURIComponent(links),
  3095. onload: function (result)
  3096. {
  3097. var res = result.responseText;
  3098. var i;
  3099.  
  3100. var livelinks = res.match(liveRegex);
  3101. var deadlinks = res.match(deadRegex);
  3102. if (livelinks != null)
  3103. {
  3104. i = livelinks.length - 1;
  3105. do
  3106. {
  3107. recheckLink(livelinks[i].match(linkRegex)[1]);
  3108. }
  3109. while(i--);
  3110. }
  3111.  
  3112. if (deadlinks != null)
  3113. {
  3114. i = deadlinks.length - 1;
  3115. do
  3116. {
  3117. deadlinks[i] = deadlinks[i].match(linkRegex)[1];
  3118. }
  3119. while (i--);
  3120. DisplayTheCheckedLinks(deadlinks, 'adead_link');
  3121. }
  3122. }
  3123. });
  3124. }
  3125. function recheckLink(link)
  3126. {
  3127. var link = link;
  3128. GM_xmlhttpRequest(
  3129. {
  3130. method: 'GET',
  3131. url: 'http://netload.in/datei' + link + '.htm',
  3132. headers: {
  3133. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3134. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  3135. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  3136. 'Referer': ""
  3137. },
  3138. onload: function (result)
  3139. {
  3140. var res = result.responseText;
  3141.  
  3142. if (res.match(/dl_first_file_download">|download_limit\.gif/))
  3143. {
  3144. DisplayTheCheckedLinks([link], 'alive_link');
  3145. return;
  3146. }
  3147.  
  3148. if (res.match(/achtung\.jpg"/))
  3149. {
  3150. DisplayTheCheckedLinks([link], 'adead_link');
  3151. }
  3152. },
  3153. onerror: function ()
  3154. {
  3155. displayTheCheckedLink(link, 'unava_link');
  3156. }
  3157. });
  3158. }
  3159. }
  3160.  
  3161. function megaBulkCheck()
  3162. {
  3163. var arr = this.links[0].split("\r\n");
  3164. var i = arr.length;
  3165. var seqno = Math.floor(Math.random()*1000000000);
  3166. while(i--)
  3167. {
  3168. postRequest(arr[i]);
  3169. }
  3170. function postRequest(megaLink)
  3171. {
  3172. megaLink=megaLink.replace('mega.nz/','mega.co.nz/');
  3173. var id = megaLink.match(/mega\.co\.nz\/#!(\w+)(?:!\w+)?/)[1];
  3174. GM_xmlhttpRequest(
  3175. {
  3176. method: "POST",
  3177. url: 'https://g.api.mega.co.nz/cs?id=' + seqno++,
  3178. data: '[{"a":"g","p":"' + id + '","ssl": "1"}]',
  3179. headers: {
  3180. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3181. 'Content-Type': 'application/xml',
  3182. 'Referer': "https://mega.co.nz/"
  3183. },
  3184. onload: function (result)
  3185. {
  3186. var res = $.parseJSON(result.responseText.match(/\[(.+?)\]/)[1]);
  3187. if ((typeof res == "number" && (res == -9 || res == -16 || res == -6)) || res.d)
  3188. {
  3189.  
  3190. DisplayTheCheckedLinks([id], 'adead_link');
  3191. }
  3192. if (res.at)
  3193. {
  3194. DisplayTheCheckedLinks([id], 'alive_link');
  3195. }
  3196. if (res.e == "ETEMPUNAVAIL")
  3197. {
  3198. DisplayTheCheckedLinks([id], 'unava_link');
  3199. }
  3200. }
  3201. });
  3202. }
  3203.  
  3204. }
  3205.  
  3206. function oboomBulk() {
  3207. var a = [], b = [], c = [];
  3208. var array = this.links;
  3209.  
  3210. GM_xmlhttpRequest({
  3211. method: 'GET',
  3212. url: 'https://www.oboom.com/1/guestsession',
  3213. headers: {
  3214. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  3215. 'Content-type': 'application/x-www-form-urlencoded',
  3216. 'Referer': 'https://www.oboom.com',
  3217. 'X-Requested-With': 'XMLHttpRequest'
  3218. },
  3219. onload: function(result) {
  3220. var blockIdx = array.length;
  3221. var token = JSON.parse(result.responseText)[1];
  3222. while (blockIdx--) {
  3223. startCheck(array[blockIdx].split('\r\n'), token);
  3224. }
  3225. }
  3226. });
  3227.  
  3228. function startCheck(links, token) {
  3229. GM_xmlhttpRequest({
  3230. method: 'POST',
  3231. url: "https://api.oboom.com/1/info",
  3232. headers: {
  3233. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  3234. 'Content-type': 'application/x-www-form-urlencoded',
  3235. 'Referer': 'https://www.oboom.com/',
  3236. 'X-Requested-With': 'XMLHttpRequest'
  3237. },
  3238. data: "token=" + token + "&items=" + links.join(","),
  3239. onload: function(result) {
  3240. var res = JSON.parse(result.responseText)[1];
  3241. var i = res.length, s;
  3242.  
  3243. while (i--) {
  3244. s = res[i].state;
  3245. if (s == 'online') a.push(res[i].id);
  3246. else if (s == 'blocked' || s == 'abused' || s == 'lost' || s == 'not_found' || s == 'not_available'|| s == 'download_error' || s == 'offline' || s == 'expired' ) b.push(res[i].id);
  3247. else c.push(res[i].id);
  3248. }
  3249.  
  3250. if (a.length > 0) DisplayTheCheckedLinks(a, 'alive_link');
  3251. if (b.length > 0) DisplayTheCheckedLinks(b, 'adead_link');
  3252. if (c.length > 0) DisplayTheCheckedLinks(c, 'unava_link');
  3253. }
  3254. });
  3255. }
  3256. }
  3257. function linksaveBulkCheck()
  3258. {
  3259. var arr = this.links[0].split("\r\n");
  3260. var i = arr.length;
  3261. while(i--)
  3262. {
  3263. postRequest(arr[i]);
  3264. }
  3265. function postRequest(lsLink)
  3266. {
  3267. GM_xmlhttpRequest(
  3268. {
  3269. method: "GET",
  3270. url: lsLink + '-t.jpg',
  3271. headers: {
  3272. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3273. 'Accept': 'text/xml',
  3274. 'Referer': ""
  3275. },
  3276. onload: function (result)
  3277. {
  3278. var imgLen = result.responseHeaders.match(/Content-Length: (\d+)/)[1];
  3279. if (imgLen == 965) //online
  3280. {
  3281. DisplayTheCheckedLinks([lsLink], 'alive_link');
  3282. }
  3283.  
  3284. if (imgLen == 972) //offline
  3285. {
  3286. DisplayTheCheckedLinks([lsLink], 'adead_link');
  3287. }
  3288. if (imgLen == 978) //unava
  3289. {
  3290. DisplayTheCheckedLinks([lsLink], 'unava_link');
  3291. }
  3292. }
  3293. });
  3294. }
  3295.  
  3296. }
  3297. function linkcryptBulkCheck()
  3298. {
  3299. var arr = this.links[0].split("\r\n");
  3300. var i = arr.length;
  3301. while(i--)
  3302. {
  3303. postRequest(arr[i]);
  3304. }
  3305. function postRequest(lcLink)
  3306. {
  3307. GM_xmlhttpRequest(
  3308. {
  3309. method: "GET",
  3310. url: 'http://linkcrypt.ws/api.html?api=status_V1&folderKey=' + lcLink.match(/dir\/(\w+)/)[1],
  3311. headers: {
  3312. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3313. 'Accept': 'text/xml',
  3314. 'Referer': ""
  3315. },
  3316. onload: function (result)
  3317. {
  3318. var res = result.responseText;
  3319. if (res.match(/<errorCode>1101|folderStatus>[23]/)) //Offline status
  3320. {
  3321. DisplayTheCheckedLinks([lcLink], 'adead_link');
  3322. return;
  3323. }
  3324. if (res.match(/folderStatus>1/)) //Online status
  3325. {
  3326. DisplayTheCheckedLinks([lcLink], 'alive_link');
  3327. }
  3328. else
  3329. {
  3330. DisplayTheCheckedLinks([lcLink], 'unava_link');
  3331. }
  3332. }
  3333. });
  3334. }
  3335. }
  3336.  
  3337. function megashareBulkCheck()
  3338. {
  3339. var arr = this.links[0].split("\r\n");
  3340. var i = arr.length;
  3341. while(i--)
  3342. {
  3343. postRequest(arr[i]);
  3344. }
  3345. function postRequest(msLink)
  3346. {
  3347. GM_xmlhttpRequest(
  3348. {
  3349. method: "GET",
  3350. url: msLink,
  3351. headers: {
  3352. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3353. 'Content-Type': 'application/x-www-form-urlencoded',
  3354. 'Referer': ""
  3355. },
  3356. onload: function (result)
  3357. {
  3358. var prZVal = result.responseText.match(/name="(\d+prZVal)" value="(\d+)">/);
  3359. var btn3Name = result.responseText.match(/src="images\/dwn-btn3\.gif" name="(.+?)"/);
  3360. if ((prZVal == null) || (btn3Name == null))
  3361. {
  3362. return;
  3363. }
  3364. GM_xmlhttpRequest(
  3365. {
  3366. method: "POST",
  3367. url: msLink,
  3368. headers: {
  3369. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3370. 'Content-Type': 'application/x-www-form-urlencoded',
  3371. 'Referer': ""
  3372. },
  3373. data: prZVal[1] + "=" + prZVal[2] + '&' + btn3Name[1] + '.x=1&' + btn3Name[1] + '.y=1',
  3374. onload: function (result)
  3375. {
  3376. var res = result.responseText;
  3377. if (res.match(/<div id="err">/))
  3378. {
  3379. DisplayTheCheckedLinks([msLink.match(/\.com(\/\d+)/)[1]], 'adead_link');
  3380. }
  3381. else
  3382. {
  3383. DisplayTheCheckedLinks([msLink.match(/\.com(\/\d+)/)[1]], 'alive_link');
  3384. }
  3385. }
  3386. });
  3387. }
  3388. });
  3389. }
  3390. }
  3391. function ncryptBulkCheck()
  3392. {
  3393. var arr = this.links[0].split("\r\n");
  3394. var i = arr.length;
  3395. while(i--)
  3396. {
  3397. postRequest(arr[i]);
  3398. }
  3399. function postRequest(ncryptLink)
  3400. {
  3401. GM_xmlhttpRequest(
  3402. {
  3403. method: "POST",
  3404. url: 'http://ncrypt.in/api_status.php',
  3405. headers: {
  3406. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3407. 'Content-Type': 'application/x-www-form-urlencoded',
  3408. 'Referer': ""
  3409. },
  3410. data: 'link=' + encodeURI(ncryptLink),
  3411. onload: function (result)
  3412. {
  3413. var foldStatus = result.responseText.match(/(?:offline|online);/);
  3414. switch(foldStatus + ""){
  3415. case "offline;": DisplayTheCheckedLinks([ncryptLink], 'adead_link'); break;
  3416. case "online;": DisplayTheCheckedLinks([ncryptLink], 'alive_link'); break;
  3417. default: DisplayTheCheckedLinks([ncryptLink], 'unava_link');
  3418. }
  3419. }
  3420. });
  3421. }
  3422. }
  3423. function hellshareBulkCheck()
  3424. {
  3425. var links = this.links;
  3426. GM_xmlhttpRequest(
  3427. {
  3428. method: "GET",
  3429. url: 'http://www.hellshare.com',
  3430. headers: {
  3431. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3432. 'Accept': 'text/xml',
  3433. 'Referer': ""
  3434. },
  3435. onload: function (result)
  3436. {
  3437. var domain = result.responseText.match(/param_rau = "www\.hellshare\.(\w+)"/)[1];
  3438.  
  3439. var loc = 'check=Zkontrolovat+dostupnost+soubor%C5%AF&links=';
  3440. if (domain == 'sk')
  3441. loc = 'check=Skontrolova%C5%A5&links=';
  3442. if (domain == 'com')
  3443. loc = 'check=Check+availability&links=';
  3444. if (domain == 'hu')
  3445. loc = 'check=Kontrol%C3%A1lj&links=';
  3446. if (domain == 'pl')
  3447. loc = 'check=Sprawd%C5%BC+dost%C4%99pno%C5%9B%C4%87+plik%C3%B3w&links=';
  3448.  
  3449. genBulkCheck.call({ links: links,
  3450. apiUrl: 'http://www.hellshare.' + domain + '/linkchecker?do=linkChecker-linkcheckerform-submit',
  3451. postData: loc,
  3452. resLinkRegex: /hellshare\.(?:cz|com|sk|hu|pl)\/(?:[\w-\.]+\/|)([\w-\.]+\/\d{5,})/,
  3453. 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,
  3454. resDeadRegex: /<span style="color:gray">.*?<\/span> - <strong>/g,
  3455. resUnavaRegex: null
  3456. });
  3457. }
  3458. });
  3459. }
  3460. /**
  3461. * Displays check result
  3462. * @param {Array} Array of links or link fragments.
  3463. * @param {String} Check result status -> ['alive_link'|'adead_link'|'unava_link']
  3464. */
  3465. function DisplayTheCheckedLinks(links, resultStatus)
  3466. {
  3467. //(a[href*=link_1], a[href*=link_2], ..., a[href*=link_n])
  3468. var $links = $('a[href*="' + links.join('"], a[href*="') + '"]');
  3469. if (Do_not_linkify_DL_links)
  3470. { //TODO into separate jQuery function
  3471. $links.replaceWith(function(){
  3472. return '<span href="' + this.href + '">' + $(this).text() + '</span>';
  3473. });
  3474. $links = $('span[href*="' + links.join('"], span[href*="') + '"]');
  3475. }
  3476. $links.removeClass().addClass(resultStatus);
  3477. $links.each(function() {
  3478. this.href = Ref_anonymize_service + $(this).attr("href");
  3479. });
  3480. switch(resultStatus)
  3481. {
  3482. case "alive_link": cLinksAlive += $links.length;
  3483. if (Display_tooltip_info) $links.mouseover(displayTooltipInfo);
  3484. break;
  3485. case "adead_link": cLinksDead += $links.length;
  3486. if (Display_tooltip_info) $links.mouseover(displayTooltipError);
  3487. break;
  3488. case "unava_link": cLinksUnava += $links.length; break;
  3489. default:
  3490. }
  3491. cLinksProcessed += $links.length;
  3492. }
  3493. }
  3494. // starts bulkchecking
  3495. //
  3496. // params
  3497. // filterId [string] restricts link detection with passed id attribute
  3498. function startBulkCheck(filterId)
  3499. {
  3500. var cHosts = bulkHosts.length;
  3501. if (cHosts == 0) //no filehostings selected
  3502. return;
  3503. // STEP 1 linkify the links
  3504. var linkifyRegex = '';
  3505. var hostIdx = cHosts;
  3506. while(hostIdx--)
  3507. {
  3508. linkifyRegex += bulkHosts[hostIdx].linkRegex + "|";
  3509. }
  3510. linkifyRegex = linkifyRegex.replace(/\|$/, '');
  3511. linkify(linkifyRegex);
  3512. //
  3513. //STEP 2 detect link objects
  3514. var xpathAll = '';
  3515. var hostIdx = cHosts;
  3516. while(hostIdx--)
  3517. {
  3518. xpathAll += bulkHosts[hostIdx].xpath + "|";
  3519. }
  3520. xpathAll = xpathAll.replace(/\]\|\/\/a\[/g, " or ");
  3521. xpathAll = xpathAll.replace(/\]\|/, ')]');
  3522. if (filterId != null) //insert id restriction in the xpath
  3523. {
  3524. xpathAll = xpathAll.replace(/\[/, "[@class='" + filterId + "' and (");
  3525. }
  3526. else
  3527. {
  3528. xpathAll = xpathAll.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  3529. }
  3530. var links = document.evaluate(xpathAll, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  3531. if (filterId == null)
  3532. {
  3533. cLinksTotal += links.snapshotLength;
  3534. }
  3535. //
  3536. //STEP 3 bind links with hostings
  3537. var linkIdx = links.snapshotLength;
  3538. var href = null;
  3539. if (linkIdx == 0) // no links found
  3540. return;
  3541. var name;
  3542. while (linkIdx--)
  3543. {
  3544. href = links.snapshotItem(linkIdx).href;
  3545. try // DO NOT REMOVE, filters crap that went through xpath detection
  3546. {
  3547. name = gimmeHostName(href);
  3548. if (href.match(bulkHostNames[name].linkRegexObject) != null)
  3549. bulkHostNames[name].links.push(href);
  3550. }
  3551. catch(e)
  3552. {
  3553.  
  3554. }
  3555. }
  3556. //
  3557. //STEP 4 process the links for each filehosting
  3558. var hostIdx = cHosts;
  3559. var host;
  3560. var m,n;
  3561. var arr;
  3562. while (hostIdx--)
  3563. {
  3564. host = bulkHosts[hostIdx];
  3565. arr = host.links;
  3566. if (arr.length == 0) //no links for this hosting, skip
  3567. {
  3568. continue;
  3569. }
  3570. //links match corrections
  3571. if (host.corrMatch != null)
  3572. {
  3573. var idx = arr.length;
  3574. while (idx--)
  3575. {
  3576. arr[idx] = arr[idx].match(host.corrMatch)[1];
  3577. }
  3578. }
  3579. //links replace corrections
  3580. if ((host.corrReplWhat != null) && (host.corrReplWith != null))
  3581. {
  3582. var idx = arr.length;
  3583. while (idx--)
  3584. {
  3585. arr[idx] = arr[idx].replace(host.corrReplWhat, host.corrReplWith);
  3586. }
  3587. }
  3588. m = arr.length;
  3589. n = host.blockSize;
  3590. if (m > n)
  3591. {
  3592. //insert block separators (RAND_STRING) into the array
  3593. for(var i = n; i < m; i += n + 1)
  3594. {
  3595. arr.splice(i, 0, RAND_STRING);
  3596. }
  3597. }
  3598.  
  3599. host.func.call({ links: arr.join(host.splitSeparator).split(RAND_STRING),
  3600. apiUrl: host.apiUrl,
  3601. postData: host.postData,
  3602. resLinkRegex: host.resLinkRegex,
  3603. resLiveRegex: host.resLiveRegex,
  3604. resDeadRegex: host.resDeadRegex,
  3605. resUnavaRegex: host.resUnavaRegex
  3606. });
  3607. //clean up
  3608. arr.length = 0;
  3609. }
  3610. //
  3611.  
  3612. function gimmeHostName(link)
  3613. {
  3614. return link.replace(/https?:\/\/.*?http(s)?:\/\//, "http$1://").match(/https?:\/\/(?:www\.|[\w\.])*?([\w-]+)\.(?:co\.uk|co\.nz|\w+)\//)[1];
  3615. }
  3616. }
  3617. function checkLinks(filterId)
  3618. {
  3619. startBulkCheck(filterId);
  3620. start(filterId);
  3621. }
  3622.  
  3623. /**
  3624. * Initialises progress box including event binding and CSS
  3625. */
  3626. function initProgressBox()
  3627. {
  3628. if ($("#warlc-progressbox").length > 0)
  3629. return;
  3630. //progressbox css change size and color of progress box
  3631. GM_addStyle("#warlc-progressbox {position:fixed; background:DimGray;" + Progress_box_background_color +
  3632. "; opacity:" + (Progress_box_opacity / 100) +
  3633. "; bottom:" + Progress_box_pos_bottom +
  3634. "px; right:" + Progress_box_pos_right +
  3635. "px; padding:5px; font-size:20px; font-weight:bold; cursor:default;}\
  3636. \
  3637. .warlc-progressbar {text-align:center; color: DimGray; height:2px; margin-bottom:2px;}\
  3638. \
  3639. .warlc-progressitem {}\
  3640. \
  3641. .alive {color:#00FF7F; " + Live_links_color +
  3642. "; background:transparent url(" + alive_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;} .dead {color:" + Dead_links_color +
  3643. "; background:transparent url(" + adead_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;} .unava {color: " + Temp_unavailable_links_color +
  3644. "; background:transparent url(" + unava_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;} .processing {color:Black; " + Container_links_color +
  3645. "; background:transparent url(" + processing_link_gif + ") no-repeat scroll 100% 50%;padding-right:15px;} .prem {color:" + Premium_links_color +
  3646. "; background:transparent url(" + prem_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;}"
  3647. );
  3648. //
  3649. $('body').append(' <div id="warlc-progressbox">\
  3650. <div class="warlc-progressbar"></div>\
  3651. <span class="warlc-progressitem alive"></span> - \
  3652. <span class="warlc-progressitem dead"></span> - \
  3653. <span class="warlc-progressitem unava"></span> - \
  3654. <span class="warlc-progressitem prem"></span> - \
  3655. <span class="warlc-progressitem processing"></span>\
  3656. </div>');
  3657. $('#warlc-progressbox').hide().click(function(){
  3658. clearInterval(intervalId);
  3659. $(this).hide();
  3660. return false;
  3661. });
  3662. $(".warlc-progressbar").progressbar({complete: function(){
  3663. $(this).fadeOut();
  3664. clearInterval(intervalId); //stop refreshing the stats
  3665. }
  3666. })
  3667. .one('progressbarchange', function(){$('#warlc-progressbox').show();});
  3668. }
  3669. /**
  3670. * Updates progress data in progress box
  3671. */
  3672. function updateProgress()
  3673. {
  3674. $("#warlc-progressbox").attr('aria-valuenow', Math.round(((100 / cLinksTotal) * cLinksProcessed)));
  3675. if (cLinksTotal) // some links were detected on page
  3676. {
  3677. var percProgress = Math.round(((100 / cLinksTotal) * cLinksProcessed));
  3678. var $progressItems = $('#warlc-progressbox > .warlc-progressitem');
  3679. $(".warlc-progressbar").progressbar('option', 'value', percProgress);
  3680. if ((cLinksTotal - cLinksProcessed) == 0)
  3681. {
  3682. $progressItems.first().text(cLinksAlive)
  3683. .next().text(cLinksDead)
  3684. .next().text(cLinksUnava)
  3685. .next().text(cLinksprem)
  3686. .next().remove();
  3687. $('#warlc-progressbox').html($('#warlc-progressbox').html().substr(0,$('#warlc-progressbox').html().lastIndexOf(">")+1));
  3688. $('#warlc-progressbox div:first-child').remove();
  3689. }
  3690. else
  3691. {
  3692. $progressItems.first().text(cLinksAlive)
  3693. .next().text(cLinksDead)
  3694. .next().text(cLinksUnava)
  3695. .next().text(cLinksprem)
  3696. .next().text(cLinksTotal - cLinksProcessed);
  3697. }
  3698. }
  3699. }
  3700.  
  3701. function check_all_links()
  3702. {
  3703. add_WARLC_style();
  3704.  
  3705. if (Show_progress_stats)
  3706. {
  3707. initProgressBox();
  3708. intervalId = setInterval(function(){updateProgress();}, Progress_box_refresh_rate);
  3709. }
  3710.  
  3711. startBulkCheck(null);
  3712. start(null);
  3713.  
  3714. if (!containers_processed)
  3715. {
  3716. processContainers();
  3717. }
  3718. }
  3719.  
  3720. //Copies all found dead links to clipboard - right now for Scriptish only
  3721. function copy_dead_to_clipboard()
  3722. {
  3723. initClipBoardTools();
  3724.  
  3725. var deadlinksxpath = "//.[@class='adead_link']";
  3726.  
  3727. var foundlinks = document.evaluate(deadlinksxpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  3728. var foundlinkstext = '';
  3729.  
  3730. var foundlinkIdx = foundlinks.snapshotLength;
  3731.  
  3732. while(foundlinkIdx--)
  3733. {
  3734. if (foundlinks.snapshotItem(foundlinkIdx).innerHTML != ' x')
  3735. foundlinkstext += foundlinks.snapshotItem(foundlinkIdx).innerHTML.replace(/\[\/hide:\w+\]/,"") + '\n';
  3736. }
  3737.  
  3738. unsafeWindow.copyToClipboard(foundlinkstext);
  3739. }
  3740.  
  3741. function toggle_autocheck()
  3742. {
  3743. var currentState = GM_getValue("Autocheck", false);
  3744. GM_setValue("Autocheck", !currentState);
  3745.  
  3746. if (currentState == true)
  3747. {
  3748. sendMessage('Autocheck disabled', 'red');
  3749. }
  3750. else
  3751. {
  3752. sendMessage('Autocheck enabled', 'SpringGreen');
  3753. }
  3754. }
  3755. function toggle_Enable_Anonymizer()
  3756. {
  3757. var currentState = GM_getValue("Enable_Anonymizer", false);
  3758. GM_setValue("Enable_Anonymizer", !currentState);
  3759.  
  3760. if (currentState == true)
  3761. {
  3762. GM_setValue("Ref_anonymize_service", "");
  3763. sendMessage('Anonymizer Disabled', 'red');
  3764. }
  3765. else
  3766. {
  3767. GM_setValue("Ref_anonymize_service", "http://hiderefer.com/?");
  3768. sendMessage('Anonymizer Enabled', 'SpringGreen');
  3769. }
  3770. }
  3771.  
  3772. function KeyDownHandler(event)
  3773. {
  3774. var kcode = (event.keyCode) ? event.keyCode : event.which;
  3775. if (event.ctrlKey && event.altKey)
  3776. {
  3777. switch(kcode)
  3778. {
  3779. case 65 : check_all_links(); break;
  3780. case 67 : configuration(); break;
  3781. case 68 : copy_dead_to_clipboard(); break;
  3782. case 87 : toggle_autocheck(); break;
  3783. case 90 : toggle_Enable_Anonymizer(); break;
  3784. }
  3785. }
  3786. }
  3787.  
  3788. //
  3789. //
  3790. // SCRIPT EXECUTION START POINT
  3791. //
  3792. //
  3793. // Safari specific GM_getResourceText override
  3794. if (navigator.userAgent.indexOf('Safari') != -1 && navigator.userAgent.indexOf('Chrome') == -1)
  3795. {
  3796. GM_getResourceText = function(res) {
  3797. var $cssText = GM_getValue("jquery_css", "");
  3798. if ($cssText == "")
  3799. {
  3800. GM_xmlhttpRequest(
  3801. {
  3802. method: 'GET',
  3803. url: 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css',
  3804. onload: function (result)
  3805. {
  3806. GM_setValue("jquery_css", result.responseText);
  3807. window.location.reload();
  3808. }
  3809. });
  3810. }
  3811. else
  3812. {
  3813. return $cssText;
  3814. }
  3815. }
  3816. }
  3817. var jQueryUICSS = GM_getResourceText("jQueryUICSS");
  3818. GM_addStyle(jQueryUICSS);
  3819. //init the stuff
  3820. setVariables();
  3821. initBulkCheck();
  3822. //init info boxes
  3823. messageBox.style.position = 'fixed';
  3824. messageBox.style.top = '20px';
  3825. messageBox.style.left = '10px';
  3826. messageBox.style.opacity = '0.85';
  3827. messageBox.style.background = 'DimGray';
  3828. messageBox.style.fontSize = '36px';
  3829. document.body.appendChild(messageBox);
  3830.  
  3831. //register GM menu commands & keyboard shortcut event handler
  3832. if (Keyboard_functions)
  3833. {
  3834. $(document).keydown(KeyDownHandler);
  3835. GM_registerMenuCommand("[W.A.R. Links Checker] Configuration (" + first_key_keycodename + "+" + second_key_keycodename + "+" + String.fromCharCode(CONFIGURATION_KEYCODE) + ")", configuration);
  3836. 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);
  3837. }
  3838. else
  3839. {
  3840. GM_registerMenuCommand("[W.A.R. Links Checker] Configuration", configuration);
  3841. GM_registerMenuCommand("[W.A.R. Links Checker] Check The Links In This Page", check_all_links);
  3842. }
  3843.  
  3844. //start linkchecking
  3845. if (Autocheck)
  3846. {
  3847. $(document).ready(check_all_links);
  3848. }
  3849.  
  3850. //
  3851. //
  3852. // SCRIPT EXECUTION END POINT
  3853. //
  3854. //
  3855.  
  3856. //shows configuration box
  3857. function configuration()
  3858. {
  3859.  
  3860. //prevent multiple creating of config window
  3861. if ($("#hideshow").length)
  3862. {
  3863. $("#hideshow").show();
  3864. return;
  3865. }
  3866.  
  3867. var configcss = '\
  3868. .popup_block .popup fieldset{\
  3869. padding: 1%;\
  3870. border-style: solid;\
  3871. border-width: 1px;\
  3872. border-color: gray;\
  3873. margin-bottom: 1px;\
  3874. }\
  3875. #h3hideshowtitle{\
  3876. font-size: 2em;\
  3877. }\
  3878. #h3hideshow{\
  3879. font-size: 1.5em;\
  3880. }\
  3881. #imghideshow {\
  3882. border: none;\
  3883. }\
  3884. #plusimage{\
  3885. display:inline;\
  3886. }\
  3887. #hideshow {\
  3888. position: fixed;\
  3889. width: 100%;\
  3890. height: 100%;\
  3891. top: 0;\
  3892. left: 0;\
  3893. font-size:12px;\
  3894. z-index:2147483645;\
  3895. text-align:left;\
  3896. }\
  3897. #fade {\
  3898. background: #000;\
  3899. position: fixed;\
  3900. width: 100%;\
  3901. height: 100%;\
  3902. opacity: .80;\
  3903. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";\
  3904. left: 0;\
  3905. z-index: 10;\
  3906. }\
  3907. .popup_block {\
  3908. font-family:verdana;\
  3909. color:black;\
  3910. background: #ddd;\
  3911. padding: 10px 20px;\
  3912. border: 2px solid DarkOrange;\
  3913. float: left;\
  3914. width: 700px;\
  3915. position: absolute;\
  3916. top: 7%;\
  3917. left: 50%;\
  3918. bottom: 7%;\
  3919. margin: 0 0 0 -350px;\
  3920. -moz-border-radius:10px;\
  3921. z-index: 100;\
  3922. \
  3923. }\
  3924. .popup_block .popup {\
  3925. float: left;\
  3926. width: 100%;\
  3927. background: #fff;\
  3928. margin: 10px 0;\
  3929. padding: 0px 0 0px;\
  3930. border-left: 1px solid #bbb;\
  3931. border-top: 1px solid #bbb;\
  3932. border-right: 1px solid #bbb;\
  3933. }\
  3934. #h3hideshow{\
  3935. margin: 1px 0 0px;\
  3936. padding: 1px 10px;\
  3937. border-bottom: 1px solid #bbb;\
  3938. font-size: 1.5em;\
  3939. font-weight: normal;\
  3940. cursor:pointer;\
  3941. background:#DDDDDD none repeat scroll 0 0;\
  3942. }\
  3943. #h3hideshow:hover{\
  3944. background:#C0BEBE none repeat scroll 0 0;\
  3945. }\
  3946. #h3hideshowtitle{\
  3947. margin: 2px 0 0px;\
  3948. padding: 7px 10px;\
  3949. border-bottom: 1px solid #bbb;\
  3950. font-size: 1.5em;\
  3951. font-weight: normal;\
  3952. }\
  3953. .popup_block .popup a {\
  3954. color:DarkSkyBlue;\
  3955. text-decoration:none;\
  3956. }\
  3957. .popup p {\
  3958. padding: 1px 10px;\
  3959. margin: 0px 0;\
  3960. -x-system-font:none;\
  3961. font-family:verdana,geneva,lucida,"lucida grande",arial,helvetica,sans-serif;\
  3962. font-size:10pt;\
  3963. font-size-adjust:none;\
  3964. font-stretch:normal;\
  3965. font-style:normal;\
  3966. font-variant:normal;\
  3967. font-weight:normal;\
  3968. line-height:normal;\
  3969. }\
  3970. #sites {\
  3971. padding: 1px 10px;\
  3972. margin: 0px 0;display:inline-block;width:16em;\
  3973. }\
  3974. #dev_ver {\
  3975. color: #00FF00;\
  3976. background: Black;\
  3977. text-align: right;\
  3978. }\
  3979. #sites_suspended {\
  3980. padding: 1px 10px;\
  3981. margin: 0px 0;display:inline-block;width:16em;\
  3982. text-decoration: line-through;\
  3983. }\
  3984. .popup img.cntrl {\
  3985. position: absolute;\
  3986. right: -15px;\
  3987. top: -15px;\
  3988. }\
  3989. #bulk {\
  3990. font-size:8pt;\
  3991. color:orange;\
  3992. padding: 1px 10px;\
  3993. margin: 0px 0;\
  3994. display:inline-block;\
  3995. width:100px;\
  3996. }\
  3997. #note {\
  3998. font-size:7pt;\
  3999. color:gray;\
  4000. padding: 1px 10px;\
  4001. margin: 0px 0;display:inline-block;\
  4002. min-width:100px;\
  4003. }\
  4004. #rednote {\
  4005. font-size:7pt;\
  4006. color:red;\
  4007. padding: 1px 10px;\
  4008. margin: 0px 0;display:inline-block;\
  4009. }\
  4010. #configinfo {\
  4011. font-size:8pt;\
  4012. color:gray;\
  4013. padding: 1px 10px;\
  4014. margin: 0px 0;display:inline-block;width:60em;\
  4015. }\
  4016. #refAnonymizer, #inputColorLive, #inputColorprem, #hostSearchBox2, #hostSearchBox, #inputColorDead, #inputColorTemp, #inputColorCont, #selectAllButton, #selectNoneButton, #invertButton, #selectAllButton2, #selectNoneButton2, #invertButton2 {\
  4017. color:black;\
  4018. border-style: solid;\
  4019. border-width: 1px;\
  4020. border-color: gray;\
  4021. }\
  4022. #h3hideshowcontent {\
  4023. min-height:220px;\
  4024. max-height:220px;\
  4025. overflow:auto;\
  4026. display: none;\
  4027. padding: 10px 10px;\
  4028. }\
  4029. #specinfo{\
  4030. font-size:14px;\
  4031. }\
  4032. .warlc-ui-tab {\
  4033. height:300px;\
  4034. overflow:auto;\
  4035. }\
  4036. #warlcsitelist2, #warlcsitelist1 {\
  4037. height:220px;\
  4038. border-top: 1px solid #ddd;\
  4039. padding-top: 5px;\
  4040. overflow:auto;\
  4041. }\
  4042. input:hover+label {\
  4043. background:#F1F77C;\
  4044. font-size:110%;\
  4045. }\
  4046. ';
  4047.  
  4048. GM_addStyle(configcss);
  4049.  
  4050. var customRulesRefHTML =
  4051. '\
  4052. <br>\
  4053. A custom rule consists of <b>commands</b>. A command must be on its own line and in this form:<br>\
  4054. <b>@keyword</b> <i>parameter</i>\
  4055. <br><br>\
  4056. 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. \
  4057. <br><br>\
  4058. 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.\
  4059. 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.\
  4060. 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.\
  4061. 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,\
  4062. but all commands until the next valid @customrule are ignored.<br><br>\
  4063. Available forms and types:\
  4064. <ul>\
  4065. <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.\
  4066. <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.\
  4067. <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.\
  4068. <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.\
  4069. </ul>\
  4070. Other available commands:<br>\
  4071. (Note: There can be more than 1 (up to 10) of these commands per rule. In that case, any of them will work.)\
  4072. <ul>\
  4073. <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.\
  4074. It can also specify multiple (up to 10) Top Level Domains (.com, .net etc.)<br>\
  4075. <ul>examples:<br>\
  4076. <li>good: <i>filehost.com/download/</i><br>\
  4077. <li>good: <i>download.filehost.net/?d=</i><br>\
  4078. <li>good: <i>filehost. com net co.uk /</i> - multiple TLDs (note the spaces before, between and after TLDs)<br>\
  4079. <li>ok: <i>filehost.com/</i> - works, but will also find links like filehost.com/login etc. Sometimes it\'s unavoidable though.<br>\
  4080. <li>bad: <i>d8523.filehost.com/</i> - d8523 probably is not constant<br>\
  4081. <li>bad: <i>filehost.com/3bfiq5d1</i> - 3bfiq5d1 probably is not constant<br>\
  4082. <li>bad: <i>filehost.com</i> - no slash<br>\
  4083. </ul>\
  4084. \
  4085. <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.\
  4086. 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 \
  4087. &lt;div&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;p&gt; even if there are new lines, tabulators etc.\
  4088. <li><b>@deadmatch</b> <i>pattern</i> - ignored for OBSOLETE, required for others. (For HEADERS some servers return 404 Error \
  4089. 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.)\
  4090. Two spaces again match any whitespace.\
  4091. <li><b>@unavamatch</b> <i>pattern</i> - optional, ignored for OBSOLETE and HEADERS. If found, the link is deemed temporarily unavailable.\
  4092. Two spaces again match any whitespace.\
  4093. <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. \
  4094. <li><b>@deadlink</b> <i>url</i> - optional. Example dead link.\
  4095. </ul>\
  4096. \
  4097. ';
  4098.  
  4099. //close image and css taken from = http://www.sohtanaka.com/web-design/examples/css-popup icon_close.png;
  4100. var configurationinnerHTML =
  4101. '<div id="fade"></div>\
  4102. <div class="popup_block">\
  4103. <div class="popup">\
  4104. <a href="#"><img id="imghideshow" title="Close" class="cntrl" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAfCAYAAAD0ma06AAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAY1SURBVHjapFZbbFRVFN0zd6Yz08dMoUNf9EGxUItJK62I4AOJEYiQoqE+0OgHCiqG+PgQozH6ofyIJiYEMRqNJpggHySlrRM+hCAtajAUaGgEi9BBSilMO0PnfWeOa597bjt9AEVvsubOPWefs/br7H0sQgj6P4/FYrk9+WkSuoAHgCrgLvV9DLgMdID02rQZmfAmaAJaxS2edDr9s67rL7EB/9XCUuALoEl+pZJEvTAo8A9s6iVKxojKYWheAWxuIMr2GGKp1KHh4eF3vF4vW59me6ZD2Ajsle6LXify7SI68iNROIgtIKtpBvQEB5DI7iC6Zw3Rmi1EM0vlBsFg8OX8/PxvWQdFKm5E2KhiQ9R9iOjL17E6QFRUhAGQpFNjklYrhhT6YbndTtT8LtGjG+T0lStXNhcVFTGpnkE8jpAT4hdgNvm+Ivr+AyIHtM+Fu3Ss0RUZO8pqqos/NiDLblgcQO48/CzRpk/l9KlTp56oq6s7gL8JkzST0AespN9/Itq2Hu7xQnsbRFOcWSBKT50FVpMUHrBD/iKsXb+V6KmtFI/H/3Q6nZzdEZPU1PVFSXbtEoltz0Nzm2HRqle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I89K+dxcXFzbiJUR/K3cmTJ2nWwYNUcfQoeS+cJcdwQGZeIjuHAmV30KWGBjq/YgUtWLiQqquryWazUXt7u3/16tX7IIYbF50D+vjWwUXGJLQYlxZZDdx+v//zsrKyZtnX0ONwcAnWUygUQhtMSELeGK2HCgoKqKSkhNDZ5fj+/fvPNTU1teDvBQW/IuMWEx29g6rkYSv5zlfu8Xgae3p6fGKaD1z4N0i/xtqPALR/WgssAuawK1XNto7eaZSVVhVPl6ruM9Baiuvr6+fBzRUul2sWxPKQWA5Yqg0NDekIwfXe3t4h3EfZ10PAVWXRIMBj16VlRvFLj7smTiB1qArPxPnKcrdqpE5VG0lVEC6EYdUIgsp9ITXGc0mzaU26CGeQampTp7I4W8GlXK/R2MUxoTaOZMAk0jNv4VNe9RXpRGK7IrIrD2QS6mrzpCKfSDRK8q8AAwCF/L1ktjcKFAAAAABJRU5ErkJggg%3D%3D"/></a>\
  4105. <div id="h3hideshowtitle"><img style="height:1.2em;" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ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bsp;W.A.R. Links Checker Customized Premium Link version Configuration</div>\
  4106. <div id="warlc-conf-tabs">\
  4107. <ul>\
  4108. <li><a href="#tabs-1">Filehostings</a></li>\
  4109. <li><a href="#tabs-2">Containers</a></li>\
  4110. <li><a href="#tabs-5">Custom rules</a></li>\
  4111. <li><a href="#tabs-3">Settings</a></li>\
  4112. <li><a href="#tabs-4">About</a></li>\
  4113. </ul>\
  4114. <div id="tabs-1" class="warlc-ui-tab">\
  4115. <div class="warlc-ui-buttonset">\
  4116. <input type="button" class="warlc-ui-select-all" value="Select All">\
  4117. <input type="button" class="warlc-ui-select-none" value="Select None">\
  4118. <input type="button" class="warlc-ui-select-invert" value="Invert">\
  4119. </div><br>\
  4120. <div>Search: <input type="textbox" id="hostSearchBox" value=""></div><br>\
  4121. <div id="warlcsitelist1"><span>Empty</span></div>\
  4122. </div>\
  4123. <div id="tabs-2" class="warlc-ui-tab">\
  4124. <div class="warlc-ui-buttonset">\
  4125. <input type="button" class="warlc-ui-select-all" value="Select All">\
  4126. <input type="button" class="warlc-ui-select-none" value="Select None">\
  4127. <input type="button" class="warlc-ui-select-invert" value="Invert">\
  4128. </div><br>\
  4129. <div>Search: <input type="textbox" id="hostSearchBox2" value=""></div><br>\
  4130. <div id="warlcsitelist2"><span>Empty</span></div>\
  4131. </div>\
  4132. <div id="tabs-5" class="warlc-ui-tab">\
  4133. <div class="warlcsettings">\
  4134. <fieldset><input type="checkbox" id="Custom_rules"> Enable custom rules <div id="bulk">EXPERIMENTAL</div></fieldset>\
  4135. <br>\
  4136. <div>Edit custom rules: \
  4137. <a href="#" id="showCustomRulesReference">(<b>Click here to show/hide the reference</b>)</a>\
  4138. <div id="customRulesReference" style="display:none;">'
  4139. + customRulesRefHTML + '\
  4140. </div>\
  4141. <textarea style="width:100%;height:200px;" id="Custom_rules_text"></textarea>\
  4142. </div>\
  4143. </div>\
  4144. </div>\
  4145. <div id="tabs-3" class="warlc-ui-tab">\
  4146. <div class="warlcsettings">\
  4147. <fieldset>\
  4148. <p><input type="checkbox" id="Keyboard_functions"> Enable keyboard shortcuts</p>\
  4149. <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>\
  4150. </fieldset>\
  4151. <fieldset>\
  4152. <p><input type="checkbox" id="Color_DL_links"> Color DL links</p>\
  4153. <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>\
  4154. <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>\
  4155. <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>\
  4156. <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>\
  4157. <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>\
  4158. <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>\
  4159. <p><input type="checkbox" id="Show_line_through_in_dead_links"> Show line through in dead links</p>\
  4160. <p><input type="checkbox" id="Show_black_background_in_DL_links"> Show black background in DL links</p>\
  4161. <p><input type="checkbox" id="Do_not_linkify_DL_links"> Do NOT linkify DL links</p>\
  4162. <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>\
  4163. <p><input type="checkbox" id="Display_full_links_in_link_containers"> Display full links in link containers</p><br>\
  4164. <fieldset>\
  4165. <p><input type="radio" name="warlciconset" value="0"> No icons</p>\
  4166. <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>\
  4167. <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>\
  4168. <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>\
  4169. </fieldset>\
  4170. </fieldset>\
  4171. <fieldset>\
  4172. <div id="sites"><input type="checkbox" id="Autocheck"> Autocheck</div><br><div id="configinfo">Script starts check automatically.</div><br>\
  4173. </fieldset>\
  4174. <fieldset>\
  4175. <div id="sites"><input type="checkbox" id="Show_progress_stats"> Show progress stats</div><br>\
  4176. </fieldset>\
  4177. <fieldset>\
  4178. <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>\
  4179. </fieldset>\
  4180. <fieldset>\
  4181. <p><input type="checkbox" id="Enable_Anonymizer"> Enable Anonymizer</div><div id="bulk">EXPERIMENTAL Note: Checkbox does not work use CTRL+ALT+Z.</p>\
  4182. <div id="sites"><label for="refAnonymizer">Refererer anonymizing service</label><input type="text" id="refAnonymizer" value="' + Ref_anonymize_service + '"></div>\
  4183. </fieldset>\
  4184. </div>\
  4185. </div>\
  4186. <div id="tabs-4" class="warlc-ui-tab">\
  4187. <p><b>Author:</b> <a href="http://www.mentalps.5gbfree.com/viewtopic.php?f=2&t=6">mentalps</a></p>\
  4188. <br />\
  4189. <p><b>Currently supported:</b><br>\
  4190. Filehostings: ' + allHostNames.length + '<br />\
  4191. Containers: ' + allContainerNames.length + '<br />\
  4192. Obsolete sites: ' + allObsoleteNames.length + '<br /></p>\
  4193. <br />\
  4194. <p><b>Based on:</b><br>\
  4195. <a href="http://userscripts-mirror.org/scripts/show/125631.html">W.A.R. Links Checker - Dev</a></p>\
  4196. <br />\
  4197. <p><b>Uses:</b></p>\
  4198. <p>adam_3\'s <a href="http://userscripts-mirror.org/scripts/show/2254">Linkify ting</a> (modified)</p>\
  4199. <p><a href="http://jquery.com/">jQuery</a> JavaScript Library</p>\
  4200. <br />\
  4201. <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>\
  4202. </div>\
  4203. </div>\
  4204. </div>\
  4205. </div>';
  4206. $('body').append('<div id="hideshow">' + configurationinnerHTML + '</div>');
  4207. $("#warlc-conf-tabs").tabs({ fx: { opacity: 'toggle', duration: 'fast' } });
  4208. $("#imghideshow").click(function(event){$("#hideshow").hide(); event.preventDefault();});
  4209. var elmHostList = document.getElementById("warlcsitelist1");
  4210. var elmContainerList = document.getElementById("warlcsitelist2");
  4211. buildSettings();
  4212. buildSitelist("", allHostNames, elmHostList);
  4213. buildSitelist("", allContainerNames, elmContainerList);
  4214. if (DEBUG_MODE)
  4215. {
  4216. //log all sites availability status
  4217. diagSites();
  4218. }
  4219. //handler for checkbox state change
  4220. function changeConfiguration(e)
  4221. {
  4222. var element = e.target;
  4223.  
  4224. if (element.type == 'checkbox')
  4225. {
  4226. if (element.checked == 1)
  4227. {
  4228. GM_setValue(element.id, true);
  4229. }
  4230. else
  4231. {
  4232. GM_setValue(element.id, false);
  4233. }
  4234.  
  4235. }
  4236. setVariables();
  4237. }
  4238.  
  4239. //Selects all filehosting checkboxes
  4240. function selectAll()
  4241. {
  4242. $(":checkbox:visible:not(:checked)").prop("checked",true)
  4243. .each(function(index, element){GM_setValue(this.id, true)});
  4244. }
  4245.  
  4246. //Deselects all filehosting checkboxes
  4247. function selectNone()
  4248. {
  4249. $(":checkbox:visible:checked").prop("checked",false)
  4250. .each(function(index, element){GM_setValue(this.id, false)});
  4251. }
  4252.  
  4253. //Inverts filehosting checkboxes selection
  4254. function selectInvert()
  4255. {
  4256. var $checked = $(":checkbox:visible:checked");
  4257. var $unchecked = $(":checkbox:visible:not(:checked)");
  4258. $unchecked.prop("checked",true)
  4259. .each(function(index, element){GM_setValue(this.id, true)});
  4260. $checked.prop("checked",false)
  4261. .each(function(index, element){GM_setValue(this.id, false)});
  4262. }
  4263. //toggles anonymizer on off
  4264. function Enable_Anonymizer()
  4265. {
  4266. var $checked = $(":checkbox:visible:checked");
  4267. var $unchecked = $(":checkbox:visible:not(:checked)");
  4268. $unchecked.prop("checked",true)
  4269. .each(function(index, element){GM_setValue(this.id, true)});
  4270. $checked.prop("checked",false)
  4271. .each(function(index, element){GM_setValue(this.id, false)});
  4272. }
  4273.  
  4274. function changeRefAnonymizer(){
  4275. GM_setValue("Ref_anonymize_service", $("#refAnonymizer").attr("value"));
  4276. }
  4277.  
  4278. //Sets live links color
  4279. function changeColorLive()
  4280. {
  4281. var inColorLive = document.getElementById("inputColorLive");
  4282. inColorLive.style.background = inColorLive.value;
  4283. GM_setValue("Live_links_color", inColorLive.value);
  4284. }
  4285.  
  4286. //Sets dead links color
  4287. function changeColorDead()
  4288. {
  4289. var inColorDead = document.getElementById("inputColorDead");
  4290. inColorDead.style.background = inColorDead.value;
  4291. GM_setValue("Dead_links_color", inColorDead.value);
  4292. }
  4293.  
  4294. //Sets temp. unavailable links color
  4295. function changeColorTemp()
  4296. {
  4297. var inColorTemp = document.getElementById("inputColorTemp");
  4298. inColorTemp.style.background = inColorTemp.value;
  4299. GM_setValue("Temp_unavailable_links_color", inColorTemp.value);
  4300. }
  4301.  
  4302. //Sets temp. unavailable links color
  4303. function changeColorCont()
  4304. {
  4305. var inColorCont = document.getElementById("inputColorCont");
  4306. inColorCont.style.background = inColorCont.value;
  4307. GM_setValue("Container_links_color", inColorCont.value);
  4308. }
  4309. //Sets premium. links color
  4310. function changeColorprem()
  4311. {
  4312. var inColorprem = document.getElementById("inputColorprem");
  4313. inColorprem.style.background = inColorprem.value;
  4314. GM_setValue("Premium_links_color", inColorprem.value);
  4315. }
  4316.  
  4317. //Diagnose sites for availability
  4318. function diagSites()
  4319. {
  4320. var boxes = document.getElementById("warlcsitelist1").getElementsByTagName("input");
  4321.  
  4322. for (var i = 0, n = boxes.length - 1; i < n; i++)
  4323. {
  4324. if (boxes[i].type == "checkbox")
  4325. {
  4326. checkAvailability(boxes[i]);
  4327. }
  4328. }
  4329.  
  4330. boxes = document.getElementById("warlcsitelist2").getElementsByTagName("input");
  4331.  
  4332. for (var i = 0, n = boxes.length - 1; i < n; i++)
  4333. {
  4334. if (boxes[i].type == "checkbox")
  4335. {
  4336. checkAvailability(boxes[i]);
  4337. }
  4338. }
  4339.  
  4340. function checkAvailability(cbElm)
  4341. {
  4342. var cb = cbElm;
  4343. GM_xmlhttpRequest(
  4344. {
  4345. method: 'HEAD',
  4346. url: 'http://' + cb.nextSibling.textContent.replace(' ', ''),
  4347. headers: {
  4348. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  4349. 'Accept': 'text/xml',
  4350. 'Referer': ""
  4351. },
  4352. onload: function (result)
  4353. {
  4354. if (result.status != 200)
  4355. {
  4356. GM_log(cb.nextSibling.textContent + ' --- status: [' + result.status + '] ' + result.statusText + ', final url: ' + result.finalUrl);
  4357. }
  4358. },
  4359. onerror: function (result)
  4360. {
  4361. if (result.status != 200)
  4362. {
  4363. GM_log(cb.nextSibling.textContent + ' --- status: [' + result.status + '] ' + result.statusText + ', final url: ' + result.finalUrl);
  4364. }
  4365. }
  4366. });
  4367. }
  4368. }
  4369. function buildSettings()
  4370. {
  4371. $(".warlcsettings :checkbox").each(function(){
  4372. $(this).prop("checked", GM_getValue($(this).attr("id")))
  4373. .click(function(e){
  4374. GM_setValue($(this).attr("id"), $(this).prop("checked"));
  4375. setVariables();
  4376. });
  4377. })
  4378. }
  4379. //Dynamic build of host list
  4380. //param search [string] searches for hostnames matching search substring
  4381. //param siteNames [array] array of site names
  4382. //param targetNode [DOM Node] where the list should be built
  4383. // first child node is replaced
  4384. function buildSitelist(search, siteNames, targetNode)
  4385. {
  4386. var searchRegex = new RegExp("\\|?([\\w\\.-]*" + search.replace(/\./g,"\\.").replace(/-/g, "\\-") + "[\\w\\.-]*)\\|?", "i");
  4387. var $targetNode = $(targetNode).empty();
  4388. var searchedSite = "";
  4389. $.each(siteNames, function(i, site){
  4390. if (searchedSite = site.match(searchRegex))
  4391. {
  4392. var baseSite = site.replace(/\|.+/, ""); //filehosting main domain
  4393. //ensuring backward compatibility with the rest of code, to be refactored later
  4394. var oldRSLCvalue = "Check_" + baseSite.replace(/\|.+/, "").replace(/\./g,"_dot_").replace(/-/g, "_dash_") + "_links";
  4395. //
  4396. $targetNode.append('<input type="checkbox" id="' + oldRSLCvalue +'" />\
  4397. <label for="' + oldRSLCvalue + '">' + searchedSite[1] + '</label>' +
  4398. ((searchedSite[1] != baseSite) ? ('<div id="note"> ( ~ ' + baseSite + ' )</div>') : (""))
  4399. );
  4400. $("#" + oldRSLCvalue).prop("checked", GM_getValue(oldRSLCvalue, false))
  4401. .change(changeConfiguration);
  4402. $targetNode.append('<br />');
  4403. }
  4404. });
  4405. $targetNode.append("<hr>");
  4406. //obsolete hosts checkbox
  4407. $targetNode.append('<input type="checkbox" id="Obsolete_file_hosts" /><label for="Obsolete_file_hosts">Obsolete file hosts</label>');
  4408. $("#Obsolete_file_hosts").prop("checked", GM_getValue("Obsolete_file_hosts", false))
  4409. .change(changeConfiguration);
  4410. $targetNode.append('<br />');
  4411. var foundName = "";
  4412. $.each(allObsoleteNames, function(i, site){
  4413. if (foundName = allObsoleteNames[i].match(searchRegex))
  4414. {
  4415. $targetNode.append('<div id="note">' + foundName[1] + '</div>');
  4416. }
  4417. })
  4418. }
  4419. var hostSearchBox = document.getElementById("hostSearchBox");
  4420. hostSearchBox.addEventListener('keyup', function(){buildSitelist(hostSearchBox.value, allHostNames, elmHostList);}, false);
  4421. var hostSearchBox2 = document.getElementById("hostSearchBox2");
  4422. hostSearchBox2.addEventListener('keyup', function(){buildSitelist(hostSearchBox2.value, allContainerNames, elmContainerList);}, false);
  4423. $(".warlc-ui-select-all").click(selectAll).button();
  4424. $(".warlc-ui-select-none").click(selectNone).button();
  4425. $(".warlc-ui-select-invert").click(selectInvert).button();
  4426. $(".warlc-ui-buttonset").buttonset();
  4427. var inColorLive = document.getElementById("inputColorLive");
  4428. inColorLive.addEventListener('keyup', changeColorLive, false);
  4429.  
  4430. var inColorDead = document.getElementById("inputColorDead");
  4431. inColorDead.addEventListener('keyup', changeColorDead, false);
  4432.  
  4433. var inColorTemp = document.getElementById("inputColorTemp");
  4434. inColorTemp.addEventListener('keyup', changeColorTemp, false);
  4435.  
  4436. var inColorCont = document.getElementById("inputColorCont");
  4437. inColorCont.addEventListener('keyup', changeColorCont, false);
  4438. var inColorprem = document.getElementById("inputColorprem");
  4439. inColorprem.addEventListener('keyup', changeColorprem, false);
  4440. $("#refAnonymizer").change(changeRefAnonymizer);
  4441. //buttons and edit boxes init end
  4442.  
  4443. //icon sets radio buttons
  4444. var radioButtons = document.getElementsByName("warlciconset");
  4445. radioButtons[Icon_set].checked = "checked";
  4446.  
  4447. radioButtons[0].addEventListener("change", updateIconSet);
  4448. radioButtons[1].addEventListener("change", updateIconSet);
  4449. radioButtons[2].addEventListener("change", updateIconSet);
  4450. radioButtons[3].addEventListener("change", updateIconSet);
  4451. function updateIconSet()
  4452. {
  4453. GM_setValue("Icon_set", this.value * 1);
  4454. }
  4455. //
  4456. $('#showCustomRulesReference').click(function(e){
  4457. e.preventDefault();
  4458. $('#customRulesReference').toggle();
  4459. });
  4460. $('#Custom_rules_text')
  4461. .val(Custom_rules_text)
  4462. .change(saveCustomRules);
  4463. function saveCustomRules(e)
  4464. {
  4465. var cr = parseCustomRules(this.value);
  4466. if (cr.info.length)
  4467. 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, ' '));
  4468. GM_setValue('Custom_rules_text', this.value);
  4469. GM_setValue('last_custom_rules_nag', ''+new Date().getTime()); //reset nag
  4470. }
  4471. }
  4472.  
  4473. //begin standard link checking algorithm
  4474. function start(filterId)
  4475. {
  4476. var doNotLinkify = Do_not_linkify_DL_links;
  4477.  
  4478. // USER SELECTED FILE HOSTS INITIALIZATION START
  4479. var http_file_hosts = new Array(); //standard hostings
  4480. var http_file_hosts_coded = new Array(); //hostings which has to be decoded to obtain real checkable link
  4481. var http_file_hosts_obsolete = new Array(); //dead hostings
  4482. var http_file_hosts_headers_only = new Array(); //hostings with direct download, must be handled via headers only
  4483.  
  4484. initFileHosts();
  4485. initFileHostsHeadersOnly();
  4486. initFileHostsCustom(); //CustomRules
  4487. // USER SELECTED FILE HOSTS INITIALIZATION END
  4488.  
  4489. // LINKIFICATION START
  4490. var totalxpath = '';
  4491. var totalxpathcoded = '';
  4492. var totalxpathobsolete = '';
  4493. var totalxpathheadersonly = '';
  4494. var totalourls = '';
  4495.  
  4496. var filehostLen = http_file_hosts.length;
  4497. var filehostCodedLen = http_file_hosts_coded.length;
  4498. var filehostObsoleteLen = http_file_hosts_obsolete.length;
  4499. var filehostHeadersOnlyLen = http_file_hosts_headers_only.length;
  4500.  
  4501. var filehostIdx = filehostLen;
  4502. var filehostCodedIdx = filehostCodedLen;
  4503. var filehostObsoleteIdx = filehostObsoleteLen;
  4504. var filehostHeadersOnlyIdx = filehostHeadersOnlyLen;
  4505.  
  4506. if ((filehostIdx == 0) && (filehostCodedIdx == 0) && (filehostHeadersOnlyIdx == 0) && (filehostObsoleteIdx == 0))
  4507. return;
  4508.  
  4509. while (filehostIdx--)
  4510. {
  4511. totalourls += http_file_hosts[filehostIdx][0] + '|';
  4512. totalxpath += http_file_hosts[filehostIdx][4] + '|';
  4513. }
  4514.  
  4515. while (filehostCodedIdx--)
  4516. {
  4517. totalourls += http_file_hosts_coded[filehostCodedIdx][0] + '|';
  4518. totalxpathcoded += http_file_hosts_coded[filehostCodedIdx][3] + '|';
  4519. }
  4520.  
  4521. while (filehostObsoleteIdx--)
  4522. {
  4523. totalourls += http_file_hosts_obsolete[filehostObsoleteIdx][0] + '|';
  4524. totalxpathobsolete += http_file_hosts_obsolete[filehostObsoleteIdx][1] + '|';
  4525. }
  4526.  
  4527. while (filehostHeadersOnlyIdx--)
  4528. {
  4529. totalourls += http_file_hosts_headers_only[filehostHeadersOnlyIdx][0] + '|';
  4530. totalxpathheadersonly += http_file_hosts_headers_only[filehostHeadersOnlyIdx][3] + '|';
  4531. }
  4532.  
  4533. totalourls = totalourls.replace(/\|$/g, "");
  4534. //TODO: further refactoring needed
  4535. totalxpath = totalxpath.replace(/\]\|\/\/a\[/g, " or ");
  4536. totalxpath = totalxpath.replace(/\]\|/, ')]');
  4537. totalxpathcoded = totalxpathcoded.replace(/\]\|\/\/a\[/g, " or ");
  4538. totalxpathcoded = totalxpathcoded.replace(/\]\|/, ')]');
  4539. totalxpathobsolete = totalxpathobsolete.replace(/\]\|\/\/a\[/g, " or ");
  4540. totalxpathobsolete = totalxpathobsolete.replace(/\]\|/, ')]');
  4541. totalxpathheadersonly = totalxpathheadersonly.replace(/\]\|\/\/a\[/g, " or ");
  4542. totalxpathheadersonly = totalxpathheadersonly.replace(/\]\|/, ')]');
  4543. if (filterId != null) //insert id restriction in the xpath
  4544. {
  4545. totalxpath = totalxpath.replace(/\[/g, "[@class='" + filterId + "' and (");
  4546. totalxpathcoded = totalxpathcoded.replace(/\[/g, "[@class='" + filterId + "' and (");
  4547. totalxpathobsolete = totalxpathobsolete.replace(/\[/g, "[@class='" + filterId + "' and (");
  4548. totalxpathheadersonly = totalxpathheadersonly.replace(/\[/g, "[@class='" + filterId + "' and (");
  4549. }
  4550. else
  4551. {
  4552. totalxpath = totalxpath.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4553. totalxpathcoded = totalxpathcoded.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4554. totalxpathobsolete = totalxpathobsolete.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4555. totalxpathheadersonly = totalxpathheadersonly.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4556. }
  4557. linkify(totalourls);
  4558. //LINKIFICATION END
  4559. //ENCRYPTED LINKS PROCESSING START
  4560. if (http_file_hosts_coded.length > 0)
  4561. {
  4562. var linksCoded = document.evaluate(totalxpathcoded, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4563.  
  4564. // decrypt coded links (redirects, link protectors etc.)
  4565. if (linksCoded.snapshotLength > 0)
  4566. {
  4567. var link;
  4568. var reallinkreg;
  4569. var reallinkcorrection;
  4570.  
  4571. if (filterId == null)
  4572. {
  4573. cLinksTotal += linksCoded.snapshotLength;
  4574. }
  4575.  
  4576. var y = linksCoded.snapshotLength - 1;
  4577. do
  4578. {
  4579. // linksCoded.snapshotItem(y).id = 'processing_link';
  4580. link = linksCoded.snapshotItem(y);
  4581. filehostIdx = filehostCodedLen;
  4582. while (filehostIdx--)
  4583. {
  4584. if (link.href.match(http_file_hosts_coded[filehostIdx][0]))
  4585. {
  4586. link.href = link.href.replace(/http:\/\/.*?(?:\?|=)http:\/\//, 'http://');
  4587. reallinkreg = http_file_hosts_coded[filehostIdx][1];
  4588. reallinkcorrection = http_file_hosts_coded[filehostIdx][2];
  4589.  
  4590. decurl(link, reallinkreg, reallinkcorrection);
  4591. break;
  4592. }
  4593. }
  4594. }
  4595. while (y--);
  4596. }
  4597. }
  4598. //ENCRYPTED LINKS PROCESSING END
  4599.  
  4600. //STANDARD LINKCHECKING START
  4601. if (http_file_hosts.length > 0)
  4602. {
  4603. var lianks = document.evaluate(totalxpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4604.  
  4605. if (filterId == null)
  4606. {
  4607. cLinksTotal += lianks.snapshotLength;
  4608. }
  4609.  
  4610. if (lianks.snapshotLength > 0)
  4611. {
  4612. var link;
  4613.  
  4614. var URL = "";
  4615. var name = "";
  4616. var isAliveRegex = "";
  4617. var isDeadRegex = "";
  4618. var isUnavaRegex = "";
  4619. var ispremRegex = "";
  4620. var tryLoop = false;
  4621.  
  4622. var y = lianks.snapshotLength;
  4623.  
  4624. while (y--)
  4625. {
  4626. link = lianks.snapshotItem(y);
  4627.  
  4628. filehostIdx = filehostLen;
  4629. while (filehostIdx--)
  4630. {
  4631. if (link.href.match(http_file_hosts[filehostIdx][0]))
  4632. {
  4633. link.href = link.href.replace(/http:\/\/.*?http:\/\//, 'http://'); //anonymizers
  4634. isAliveRegex = http_file_hosts[filehostIdx][1];
  4635. isDeadRegex = http_file_hosts[filehostIdx][2];
  4636. isUnavaRegex = http_file_hosts[filehostIdx][3];
  4637. ispremRegex = http_file_hosts[filehostIdx][6];
  4638. tryLoop = http_file_hosts[filehostIdx][5];
  4639.  
  4640. geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, tryLoop);
  4641.  
  4642. break;
  4643. }
  4644. }
  4645. }
  4646. }
  4647. }
  4648. //STANDARD LINKCHECKING END
  4649. //OBSOLETE FILE HOSTS PROCESSING START
  4650. if (filehostObsoleteLen > 0)
  4651. {
  4652. var obsoletelinks = document.evaluate(totalxpathobsolete, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4653.  
  4654. var obsoleteLink;
  4655.  
  4656. //check links
  4657. if (obsoletelinks.snapshotLength > 0)
  4658. {
  4659. var y = obsoletelinks.snapshotLength;
  4660.  
  4661. if (filterId == null)
  4662. {
  4663. cLinksTotal += y;
  4664. }
  4665.  
  4666. while (y--)
  4667. {
  4668. obsoleteLink = obsoletelinks.snapshotItem(y);
  4669.  
  4670. if (Display_tooltip_info)
  4671. {
  4672. obsoleteLink.warlc_error = 'Cause of error: <b>Obsolete filehosting.</b>';
  4673. }
  4674. displayTheCheckedLink(obsoleteLink, 'adead_link');
  4675. }
  4676. }
  4677. }
  4678. //OBSOLETE FILE HOSTS PROCESSING END
  4679.  
  4680. //DIRECT LINKCHECKING START
  4681. if (http_file_hosts_headers_only.length > 0)
  4682. {
  4683. var links = document.evaluate(totalxpathheadersonly, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4684.  
  4685. //check links
  4686. if (links.snapshotLength > 0)
  4687. {
  4688. var link;
  4689. var isAliveRegex;
  4690. var isDeadRegex;
  4691. var ispremRegex;
  4692.  
  4693. var y = links.snapshotLength;
  4694.  
  4695.  
  4696. if (filterId == null)
  4697. {
  4698. cLinksTotal += y;
  4699. }
  4700.  
  4701. while (y--)
  4702. {
  4703. // links.snapshotItem(y).id = 'processing_link';
  4704. link = links.snapshotItem(y);
  4705. filehostIdx = filehostHeadersOnlyLen;
  4706. while (filehostIdx--)
  4707. {
  4708. if (link.href.match(http_file_hosts_headers_only[filehostIdx][0]))
  4709. {
  4710. link.href = link.href.replace(/http:\/\/.*?(?:\?|=)http:\/\//, 'http://');
  4711. isAliveRegex = http_file_hosts_headers_only[filehostIdx][1];
  4712. isDeadRegex = http_file_hosts_headers_only[filehostIdx][2];
  4713. ispremRegex = http_file_hosts_headers_only[filehostIdx][3];
  4714.  
  4715. geturlHeader(link, isAliveRegex, isDeadRegex, ispremRegex);
  4716.  
  4717. break;
  4718. }
  4719. }
  4720. }
  4721.  
  4722. }
  4723. }
  4724. //DIRECT LINKCHECKING END
  4725.  
  4726.  
  4727. //finds the real url on the page, replaces link.href with it and calls geturl
  4728. function decurl(link, reallinkreg, reallinkcorrection)
  4729. {
  4730.  
  4731. GM_xmlhttpRequest(
  4732. {
  4733. method: 'GET',
  4734. url: link.href,
  4735. headers: {
  4736. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  4737. 'Accept': 'text/xml',
  4738. 'Referer': ""
  4739. },
  4740. onload: function (result)
  4741. {
  4742. // cLinksProcessed++;
  4743.  
  4744. var reallink = result.responseText.match(reallinkreg)[0];
  4745. reallink = reallink.replace(new RegExp(reallinkcorrection, "g"), "");
  4746.  
  4747. link.href = reallink;
  4748.  
  4749. var i = http_file_hosts.length - 1;
  4750. do
  4751. {
  4752. if ((reallink.match(http_file_hosts[i][0])))
  4753. {
  4754. link.href = link.href.replace(/http:\/\/.*?\?http:\/\//, 'http://');
  4755. var isAliveRegex = http_file_hosts[i][1];
  4756. var isDeadRegex = http_file_hosts[i][2];
  4757. var isUnavaRegex = http_file_hosts[i][3];
  4758. var ispremRegex = http_file_hosts[i][4];
  4759.  
  4760. geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, 50);
  4761.  
  4762. break;
  4763. }
  4764. }
  4765. while (i--);
  4766. }
  4767. });
  4768. }
  4769.  
  4770. function randUA()
  4771. {
  4772. //TODO
  4773. }
  4774. //Processes link
  4775. //
  4776. // [string] link link URL
  4777. // [string] isAliveRegex alive link regex
  4778. // [string] isDeadRegex dead link regex
  4779. // [string] isUnavaRegex unavailable link regex
  4780. // [string] ispremRegex premium link regex
  4781. // [boolean] tryLoop repeats request until succeeded
  4782. function geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, tryLoop)
  4783. {
  4784. GM_xmlhttpRequest(
  4785. {
  4786. method: 'GET',
  4787. url: link.href,
  4788. headers: {
  4789. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  4790. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  4791. 'Referer': ""
  4792. },
  4793. onload: function (result)
  4794. {
  4795. var res = result.responseText;
  4796. if (result.responseHeaders.match(/Content-Disposition: attachment; filename=/))//direct download, simple version
  4797. {
  4798. displayTheCheckedLink(link, 'alive_link');
  4799. return;
  4800. }
  4801.  
  4802. if (res.match(isAliveRegex))
  4803. {
  4804. displayTheCheckedLink(link, 'alive_link');
  4805. return;
  4806. }
  4807.  
  4808. if (res.match(isDeadRegex))
  4809. {
  4810. displayTheCheckedLink(link, 'adead_link');
  4811. return;
  4812. }
  4813.  
  4814. if (isUnavaRegex && res.match(isUnavaRegex))
  4815. {
  4816. displayTheCheckedLink(link, 'unava_link');
  4817. return;
  4818. }
  4819. if (res.match(ispremRegex))
  4820. {
  4821. displayTheCheckedLink(link, 'prem_link');
  4822. return;
  4823. }
  4824.  
  4825. var resStatus = result.status;
  4826.  
  4827. if (resStatus == 404)
  4828. {
  4829. displayTheCheckedLink(link, 'adead_link');
  4830. }
  4831. if (resStatus == 500 || resStatus == 503 || resStatus == 403) //not found/available/temp. unava
  4832. {
  4833. if (tryLoop)
  4834. {
  4835. //wait 1-5 seconds and repeat the request
  4836. setTimeout(function(){geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, tryLoop)}, 1000 + (Math.random() * 4000));
  4837. }
  4838. else
  4839. {
  4840. displayTheCheckedLink(link, 'unava_link');
  4841. }
  4842.  
  4843. return;
  4844. }
  4845. },
  4846. onerror: function ()
  4847. {
  4848. displayTheCheckedLink(link, 'unava_link');
  4849. }
  4850. });
  4851. }
  4852.  
  4853. function geturlHeader(link, isAliveRegex, isDeadRegex, ispremRegex)
  4854. {
  4855. GM_xmlhttpRequest(
  4856. {
  4857. method: 'HEAD',
  4858. url: link.href,
  4859. headers: {
  4860. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  4861. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  4862. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  4863. 'Referer': ""
  4864. },
  4865. onload: function (result)
  4866. {
  4867. var resStatus = result.status;
  4868. var resHeaders = "";
  4869. if (resStatus == 403 || resStatus == 404 || resStatus == 500) //not found/available
  4870. {
  4871. displayTheCheckedLink(link, 'adead_link');
  4872. return;
  4873. }
  4874.  
  4875. resHeaders = result.responseHeaders;
  4876.  
  4877. if (resHeaders.match(isDeadRegex))
  4878. {
  4879. displayTheCheckedLink(link, 'adead_link');
  4880. return;
  4881. }
  4882.  
  4883. if (resHeaders.match(isAliveRegex))
  4884. {
  4885. displayTheCheckedLink(link, 'alive_link');
  4886. return;
  4887. }
  4888. if (resHeaders.match(ispremRegex))
  4889. {
  4890. displayTheCheckedLink(link, 'prem_link');
  4891. return;
  4892. }
  4893. },
  4894. onerror: function ()
  4895. {
  4896. displayTheCheckedLink(link, 'unava_link');
  4897. }
  4898. });
  4899. }
  4900.  
  4901. //Delinkfifies the <a> element object
  4902. function delinkifyLink(link)
  4903. {
  4904. var spanElm = document.createElement("span");
  4905. spanElm.className = link.className;
  4906. spanElm.innerHTML = link.innerHTML;
  4907.  
  4908. if (Display_tooltip_info)
  4909. {
  4910. spanElm.href = link.href;
  4911. spanElm.warlc_error = link.warlc_error;
  4912. switch (link.className){
  4913. case "alive_link": spanElm.addEventListener("mouseover", displayTooltipInfo, false); break
  4914. case "adead_link": spanElm.addEventListener("mouseover", displayTooltipError, false); break;
  4915. case "unava_link": //reserved
  4916. case "prem_link": spanElm.addEventListener("mouseover", displayTooltipError, false); break;
  4917. default:
  4918. }
  4919. }
  4920. link.parentNode.replaceChild(spanElm, link);
  4921. }
  4922.  
  4923. //Assigns result status to the <a> element object and calls delinkifying eventually
  4924. //Possible result states: adead_link, alive_link, unava_link, prem_link
  4925. function displayTheCheckedLink(link, resultStatus)
  4926. {
  4927. link.className = resultStatus;
  4928. link.href = Ref_anonymize_service + link.href;
  4929. if (Display_tooltip_info)
  4930. {
  4931. switch (resultStatus){
  4932. case "alive_link": link.addEventListener("mouseover", displayTooltipInfo, false); break
  4933. case "adead_link": link.addEventListener("mouseover", displayTooltipError, false); break;
  4934. case "unava_link": //reserved
  4935. case "prem_link": link.addEventListener("mouseover", displayTooltipInfo, false); break
  4936. default:
  4937. }
  4938. }
  4939. if (doNotLinkify)
  4940. {
  4941. delinkifyLink(link);
  4942. }
  4943. cLinksProcessed++;
  4944.  
  4945. if (resultStatus == "alive_link")
  4946. {
  4947. cLinksAlive++;
  4948. return;
  4949. }
  4950.  
  4951. if (resultStatus == "adead_link")
  4952. {
  4953. cLinksDead++;
  4954. return;
  4955. }
  4956.  
  4957. if (resultStatus == "unava_link")
  4958. {
  4959. cLinksUnava++;
  4960. }
  4961. if (resultStatus == "prem_link")
  4962. {
  4963. cLinksprem++;
  4964. return;
  4965. }
  4966. }
  4967.  
  4968.  
  4969. function initFileHosts()
  4970. {
  4971.  
  4972. function addObsoleteHost(linkRegex, xpathEx)
  4973. {
  4974. var host = new Array(2);
  4975. host[0] = linkRegex;
  4976. host[1] = xpathEx;
  4977. http_file_hosts_obsolete.push(host);
  4978. }
  4979.  
  4980. //obsolete file hosts init start
  4981. if (Obsolete_file_hosts)
  4982. {
  4983. addObsoleteHost("uloz\.cz\/show\/file","//a[contains(@href,'uloz.cz')]");
  4984. addObsoleteHost("storage\\.to\/get","//a[contains(@href,'storage.to')]");
  4985. addObsoleteHost("iskladka\\.cz\/download","//a[contains(@href,'iskladka.cz')]");
  4986. addObsoleteHost("file-rack\\.com\/files","//a[contains(@href,'file-rack.com')]");
  4987. addObsoleteHost("fast-load\\.net\/(\/)?index","//a[contains(@href,'fast-load.net')]");
  4988. addObsoleteHost("subory\\.sk\/download","//a[contains(@href,'subory.sk')]");
  4989. addObsoleteHost("bigandfree\\.com\/\\d+","//a[contains(@href,'bigandfree.com')]");
  4990. addObsoleteHost("fileop\\.com\/\\w+","//a[contains(@href,'fileop.com')]");
  4991. addObsoleteHost("mujsoubor\\.cz\/file\/","//a[contains(@href,'mujsoubor.cz')]");
  4992. addObsoleteHost("sendfile\\.to\/\\w+","//a[contains(@href,'sendfile.to')]");
  4993. addObsoleteHost("superfastfile\\.com\/\\w+","//a[contains(@href,'superfastfile.com')]");
  4994. addObsoleteHost("quickyshare\\.com\/\\w+","//a[contains(@href,'quickyshare.com/')]");
  4995. addObsoleteHost("duckload\\.com\/(?:d|play)","//a[contains(@href,'duckload.com')]");
  4996. addObsoleteHost("uploadstore\\.net\/\\w+","//a[contains(@href,'uploadstore.net')]");
  4997. addObsoleteHost("meinupload\\.com\/dl\/\\d+","//a[contains(@href,'meinupload.com/dl')]");
  4998. addObsoleteHost("dualshare\\.com\/\\w+","//a[contains(@href,'dualshare.com')]");
  4999. addObsoleteHost("2xupload\\.(?:to|de)\/file\/\\w+","//a[contains(@href,'2xupload.to') or contains(@href,'2xupload.de')]");
  5000. addObsoleteHost("oxedion\\.com\/index\\.php\/download\/\\w+","//a[contains(@href,'oxedion.com/index')]");
  5001. addObsoleteHost("uploadline\\.com\/\\d+","//a[contains(@href,'uploadline.com')]");
  5002. addObsoleteHost("dll\\.bz\/file\/\\d+","//a[contains(@href,'dll.bz/file')]");
  5003. addObsoleteHost("movieshare\\.in\/\\w+","//a[contains(@href,'movieshare.in')]");
  5004. addObsoleteHost("milledrive\\.com\/files\/\\d+","//a[contains(@href,'milledrive.com')]");
  5005. addObsoleteHost("quickupload\\.net\/\\w+","//a[contains(@href,'quickupload.net')]");
  5006. addObsoleteHost("safelink\\.in\/\\w+","//a[contains(@href,'safelink.in')]");
  5007. addObsoleteHost("pyramidfiles\\.com\/\\w+","//a[contains(@href,'pyramidfiles.com/')]");
  5008. addObsoleteHost("(?:cloudnator|shragle)\\.com\/files","//a[contains(@href,'cloudnator.com/files') or contains(@href,'shragle.com/files')]");
  5009. addObsoleteHost("batshare\\.com\/\\w+","//a[contains(@href,'batshare.com/')]");
  5010. addObsoleteHost("bitroad\\.net\/download","//a[contains(@href,'bitroad.net/download')]");
  5011. addObsoleteHost("metadivx\\.com\/\\w+","//a[contains(@href,'metadivx.com')]");
  5012. addObsoleteHost("filegaze\\.com\/\\w+","//a[contains(@href,'filegaze.com/')]");
  5013. addObsoleteHost("bulletupload\\.com\/\\w+","//a[contains(@href,'bulletupload.com/')]");
  5014. addObsoleteHost("sharefilehost\\.com\/\\w+","//a[contains(@href,'sharefilehost.com/')]");
  5015. addObsoleteHost("fireuploads\\.net\/\\w+","//a[contains(@href,'fireuploads.net/')]");
  5016. addObsoleteHost("divxlink\\.com\/\\w+","//a[contains(@href,'divxlink.com/')]");
  5017. addObsoleteHost("bzlink\\.us\/\\w+","//a[contains(@href,'bzlink.us/')]");
  5018. addObsoleteHost("filetechnology\\.com\/\\w+","//a[contains(@href,'filetechnology.com/')]");
  5019. addObsoleteHost("filecosy\\.com\/\\w+","//a[contains(@href,'filecosy.com/')]");
  5020. addObsoleteHost("fileserver\\.cc\/\\w+","//a[contains(@href,'fileserver.cc/')]");
  5021. addObsoleteHost("shafiles\\.me\/\\w+","//a[contains(@href,'shafiles.me/')]");
  5022. addObsoleteHost("xfileshare\\.eu\/\\w+","//a[contains(@href,'xfileshare.eu/')]");
  5023. addObsoleteHost("uploadboost\\.com\/\\w+","//a[contains(@href,'uploadboost.com/')]");
  5024. addObsoleteHost("uploadoz\\.com\/\\w+","//a[contains(@href,'uploadoz.com/')]");
  5025. addObsoleteHost("ihostia\\.com\/\\w+","//a[contains(@href,'ihostia.com/')]");
  5026. addObsoleteHost("shareupload\\.com\/\\w+","//a[contains(@href,'shareupload.com/')]");
  5027. addObsoleteHost("ovfile\\.com\/\\w+","//a[contains(@href,'ovfile.com/')]");
  5028. addObsoleteHost("stahuj\\.to\/\\w+","//a[contains(@href,'stahuj.to/')]");
  5029. addObsoleteHost("gigfiles\\.net\/\\w+","//a[contains(@href,'gigfiles.net/')]");
  5030. addObsoleteHost("vidhog\\.com\/\\w+","//a[contains(@href,'vidhog.com/')]");
  5031. addObsoleteHost("filelaser\\.com\/\\w+","//a[contains(@href,'filelaser.com/')]");
  5032. addObsoleteHost("holderfile\\.com\/\\w+","//a[contains(@href,'holderfile.com/')]");
  5033. addObsoleteHost("fileduct\\.(?:com|net)\/\\w+","//a[contains(@href,'fileduct.com/') or contains(@href,'fileduct.net')]");
  5034. addObsoleteHost("filefat\\.com\/\\w+","//a[contains(@href,'filefat.com/')]");
  5035. addObsoleteHost("restfile\\.com\/\\w+","//a[contains(@href,'restfile.com/')]");
  5036. addObsoleteHost("filemashine\\.com\\/download\/\\w+","//a[contains(@href,'filemashine.com/download')]");
  5037. addObsoleteHost("cloudnxt\\.net\/\\w+","//a[contains(@href,'cloudnxt.net/')]");
  5038. addObsoleteHost("uploadrack\\.com\/\\w+","//a[contains(@href,'uploadrack.com')]");
  5039. addObsoleteHost("teradepot\\.com\/\\w+","//a[contains(@href,'teradepot.com')]");
  5040. addObsoleteHost("dataup\\.to\/\\d+\/","//a[contains(@href,'dataup.to')]");
  5041. addObsoleteHost("upit\\.to\/file:\\d+","//a[contains(@href,'upit.to/file')]");
  5042. addObsoleteHost("badongo\\.(?:com|net)\/(?:\\w\\w\/|)(?:vid|cfile|file|pt)\/\\w+","//a[contains(@href,'badongo.com') or contains(@href,'badongo.net')]");
  5043. addObsoleteHost("driveway\\.com\/\\w+","//a[contains(@href,'driveway.com')]");
  5044. addObsoleteHost("eatlime\\.com\/download","//a[contains(@href,'eatlime.com/download')]");
  5045. addObsoleteHost("a2zuploads\\.com\/id\\w+","//a[contains(@href,'a2zuploads.com/id')]");
  5046. addObsoleteHost("friendlyfiles\\.net\/download\/\\w+\/","//a[contains(@href,'friendlyfiles.net/download')]");
  5047. addObsoleteHost("flyfile\\.us\/\\w+","//a[contains(@href,'flyfile.us')]");
  5048. addObsoleteHost("speedyshare\\.com\/\\w+","//a[contains(@href,'speedyshare.com')]");
  5049. addObsoleteHost("brontofile\\.com\/download","//a[contains(@href,'brontofile.com/download')]");
  5050. addObsoleteHost("uploadspace\\.eu\/\\w+","//a[contains(@href,'uploadspace.eu')]");
  5051. addObsoleteHost("fooget\\.com\/\\w+","//a[contains(@href,'fooget.com/')]");
  5052. addObsoleteHost("file-bit.net\/\\w+","//a[contains(@href,'file-bit.net/')]");
  5053. addObsoleteHost("keepfile\\.com\/\\w+","//a[contains(@href,'http://keepfile.com')]");
  5054. addObsoleteHost("piggyshare\\.com\/file\/\\w+","//a[contains(@href,'piggyshare.com')]");
  5055. addObsoleteHost("filecrown\\.com\/\\w+","//a[contains(@href,'filecrown.com')]");
  5056. addObsoleteHost("6giga\\.com\/\\w+","//a[contains(@href,'6giga.com')]");
  5057. addObsoleteHost("uploadjockey\\.com\/download\/\\w+","//a[contains(@href,'uploadjockey.com/download')]");
  5058. addObsoleteHost("bluehost\\.to\/dl=\\w+","//a[contains(@href,'bluehost.to')]");
  5059. addObsoleteHost("coolshare\\.cz\/stahnout\/\\w+","//a[contains(@href,'coolshare.cz/stahnout')]");
  5060. addObsoleteHost("filegu\\.ru\/f\/\\w+","//a[contains(@href,'filegu.ru/f')]");
  5061. addObsoleteHost("filebase\\.to\/files\/\\d+\/","//a[contains(@href,'filebase.to/files')]");
  5062. addObsoleteHost("kickload\\.com\/(?:file|get)\/","//a[contains(@href,'kickload.com/file') or contains(@href,'kickload.com/get')]");
  5063. addObsoleteHost("up-file\\.com\/files\/download\/\\w+\/","//a[contains(@href,'up-file.com/download')]");
  5064. addObsoleteHost("ezyfile\\.net\/\\w+","//a[contains(@href,'ezyfile.net/')]");
  5065. addObsoleteHost("k2files\\.com\/files","//a[contains(@href,'k2files.com/files')]");
  5066. addObsoleteHost("aiotool\\.net\/\\w+","//a[contains(@href,'aiotool.net/')]");
  5067. addObsoleteHost("xvideos\\.com\/files\/\\d+\/\\w+","//a[contains(@href,'xvideos.com/files')]");
  5068. addObsoleteHost("filebling\\.com\/dl\/\\d+\/\\d+\/\\w+","//a[contains(@href,'filebling.com/dl')]");
  5069. addObsoleteHost("loaded\\.it\/divx\/\\w+","//a[contains(@href,'loaded.it/divx')]");
  5070. addObsoleteHost("uploadcell\\.com\/\\w+\/\\w+","//a[contains(@href,'uploadcell.com')]");
  5071. addObsoleteHost("jakfile\\.com\/\\w+","//a[contains(@href,'jakfile.com/')]");
  5072. addObsoleteHost("uploadshare\\.cz\/download\/\\w+\/\\w+","//a[contains(@href,'uploadshare.cz/download')]");
  5073. addObsoleteHost("mangoshare\\.com\/\\w+","//a[contains(@href,'mangoshare.com')]");
  5074. addObsoleteHost("ugotfile\\.com\/file\/\\d+\/\\w+","//a[contains(@href,'ugotfile.com/file')]");
  5075. addObsoleteHost("filestab\\.com\/\\w+","//a[contains(@href,'filestab.com')]");
  5076. addObsoleteHost("dotavi\\.com\/\\w+\/.","//a[contains(@href,'dotavi.com/')]");
  5077. addObsoleteHost("crazyupload\\.com\/\\w+","//a[contains(@href,'crazyupload.com')]");
  5078. addObsoleteHost("gaiafile\\.com\/\\w+","//a[contains(@href,'gaiafile.com')]");
  5079. addObsoleteHost("sharejunky\\.com\/\\w+","//a[contains(@href,'sharejunky.com')]");
  5080. addObsoleteHost("fileho\\.com\/download\/\\d+","//a[contains(@href,'fileho.com/download')]");
  5081. addObsoleteHost("(?:bigandfree|BigAndFree)\\.com\/\\d+","//a[contains(@href,'bigandfree.com') or contains(@href,'BigAndFree.com')]");
  5082. addObsoleteHost("bigfile\\.in\/\\w+","//a[contains(@href,'bigfile.in')]");
  5083. addObsoleteHost("bigshare\\.eu\/download\\.php\\?id=","//a[contains(@href,'bigshare.eu/download.php')]");
  5084. addObsoleteHost("dahosting\\.org\/dl\/\\w+","//a[contains(@href,'dahosting.org/dl')]");
  5085. addObsoleteHost("digisofts\\.net\/\\w+","//a[contains(@href,'digisofts.net')]");
  5086. addObsoleteHost("file4save\\.com\/\\w+\/\\w+","//a[contains(@href,'file4save.com')]");
  5087. addObsoleteHost("filereactor\\.com\/\\w+","//a[contains(@href,'filereactor.com/')]");
  5088. addObsoleteHost("filechip\\.com\/\\w+","//a[contains(@href,'filechip.com')]");
  5089. addObsoleteHost("filescloud\\.com\/\\w+\/\\w+","//a[contains(@href,'filescloud.com')]");
  5090. addObsoleteHost("saveqube\\.com\/getfile\/\\w+","//a[contains(@href,'saveqube.com/getfile')]");
  5091. addObsoleteHost("www2\\.turboshare\\.de\/v\/\\d+","//a[contains(@href,'turboshare.de/v')]");
  5092. addObsoleteHost("z-upload\\.com\/\\w+","//a[contains(@href,'z-upload.com')]");
  5093. addObsoleteHost("youshare\\.com\/view\\.php","//a[contains(@href,'youshare.com/view')]");
  5094. addObsoleteHost("jiffyupload\\.com\/\\w+","//a[contains(@href,'jiffyupload.com')]");
  5095. addObsoleteHost("gigeshare\\.com\/preview\/\\w+","//a[contains(@href,'gigeshare.com')]");
  5096. addObsoleteHost("datenklo\\.net\/dl","//a[contains(@href,'datenklo.net')]");
  5097. addObsoleteHost("upload\\.dj\/download\\.php\\?id=\\w+","//a[contains(@href,'upload.dj/download.php')]");
  5098. addObsoleteHost("loadfiles\\.in\/\\w+\/","//a[contains(@href,'loadfiles.in')]");
  5099. addObsoleteHost("upit\\.to\/file:\\w+\/","//a[contains(@href,'upit.to/file')]");
  5100. addObsoleteHost("zshare\\.net\/(?:download|video|audio)\/\\w+","//a[contains(@href,'zshare.net/')]");
  5101. addObsoleteHost("refile\\.net\/f\/\\?\\w+","//a[contains(@href,'refile.net/f/')]");
  5102. addObsoleteHost("dsfileshare\\.com\/download","//a[contains(@href,'dsfileshare.com/download')]");
  5103. addObsoleteHost("sharesimple\\.net\/\\w{2}\/download","//a[contains(@href,'sharesimple.net')]");
  5104. addObsoleteHost("(?:s\\d+\\.|)4files\\.net\/\\d+","//a[contains(@href,'4files.net')]");
  5105. addObsoleteHost("odsiebie\\.com\/pokaz\/\\d+","//a[contains(@href,'odsiebie.com/pokaz')]");
  5106. addObsoleteHost("filenavi\\.com\/direct\/\\w+","//a[contains(@href,'filenavi.com/direct')]");
  5107. addObsoleteHost("3oof\\.com\/\\w+","//a[contains(@href,'3oof.com/')]");
  5108. addObsoleteHost("meshwaar\\.com\/\\w+","//a[contains(@href,'meshwaar.com')]");
  5109. addObsoleteHost("maxupload\\.com\/files\/\\w+","//a[contains(@href,'maxupload.com/files')]");
  5110. addObsoleteHost("share\\.cx\/videos\/\\d+","//a[contains(@href,'share.cx/videos')]");
  5111. addObsoleteHost("atserver\\.eu\/(?:\\w{2}\/|)download\/\\d+","//a[contains(@href,'atserver.eu')]");
  5112. addObsoleteHost("file2upload\\.net\/download\/\\d+","//a[contains(@href,'file2upload.net/download')]");
  5113. addObsoleteHost("filebling\\.com\/\\w+","//a[contains(@href,'filebling.com')]");
  5114. addObsoleteHost("turboshare\\.(?:eu|com)\/files","//a[contains(@href,'turboshare.') and contains(@href,'/files')]");
  5115. addObsoleteHost("rarhost\\.com\/download","//a[contains(@href,'rarhost.com/download')]");
  5116. addObsoleteHost("isharehd\\.com\/\\w+","//a[contains(@href,'isharehd.com')]");
  5117. addObsoleteHost("datenklo\\.net\/file\\.php\\?id=\\w+","//a[contains(@href,'datenklo.net/file.php')]");
  5118. addObsoleteHost("file2share\\.biz\/download\\.php\\?id=\\w+","//a[contains(@href,'file2share.biz/download.php')]");
  5119. addObsoleteHost("savefiles\\.net\/d\/\\w+\\.html","//a[contains(@href,'savefiles.net/d')]");
  5120. addObsoleteHost("bestsharing\\.com\/files\/\\w+","//a[contains(@href,'bestsharing.com/files')]");
  5121. addObsoleteHost("filecache\\.de\/\\d+","//a[contains(@href,'filecache.de/')]");
  5122. addObsoleteHost("i741\\.com\/files\/\\w+","//a[contains(@href,'i741.com/files')]");
  5123. addObsoleteHost("dataup\\.de\/\\d+","//a[contains(@href,'dataup.de')]");
  5124. addObsoleteHost("fofly\\.com\/\\w+","//a[contains(@href,'fofly.com')]");
  5125. addObsoleteHost("shareonall\\.com\/\\w+","//a[contains(@href,'shareonall.com')]");
  5126. addObsoleteHost("sexuploader\\.com\/(?:|..\/)\\?[d|v]=\\w{8}","//a[contains(@href,'sexuploader.com')]");
  5127. 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')]");
  5128. addObsoleteHost("uploadhyper\\.com\/file\/","//a[contains(@href,'uploadhyper.com')]");
  5129. addObsoleteHost("filespawn\\.com\/file\/","//a[contains(@href,'filespawn.com')]");
  5130. addObsoleteHost("caizzii\\.com\/(?:download|\\?file=)","//a[contains(@href,'caizzii.com')]");
  5131. addObsoleteHost("volnyweb\\.cz\/files\/get\/[\\w-_]+","//a[contains(@href,'volnyweb.cz/files')]");
  5132. addObsoleteHost("gotupload\\.com\/\\w+","//a[contains(@href,'gotupload.com/')]");
  5133. addObsoleteHost("mooload\\.com\/new\/file\\.php\\?file=files\/\\d+\/\\d+","//a[contains(@href,'mooload.com/new/file')]");
  5134. addObsoleteHost("z\\d+\\.zupload\\.com\/download\\.php\\?file=getfile&filepath=\\d+","//a[contains(@href,'zupload.com/download')]");
  5135. addObsoleteHost("mytempdir\\.com\/\\d+","//a[contains(@href,'mytempdir.com/')]");
  5136. addObsoleteHost("usershare\\.net\/\\w+","//a[contains(@href,'usershare.net/')]");
  5137. addObsoleteHost("qshare\\.com\/get\/\\d+\/.","//a[contains(@href,'qshare.com/get')]");
  5138. addObsoleteHost("filescash\\.net\/file\/\\d+","//a[contains(@href,'filescash.net/file')]");
  5139. addObsoleteHost("metahyper\\.com\/\\w+","//a[contains(@href,'metahyper.com/')]");
  5140. addObsoleteHost("combozip\\.com\/\\w+","//a[contains(@href,'combozip.com/')]");
  5141. addObsoleteHost("anonstream\\.com\/get_\\w+","//a[contains(@href,'anonstream.com/get_')]");
  5142. addObsoleteHost("x7\\.to\/\\w+","//a[contains(@href,'x7.to/')]");
  5143. addObsoleteHost("uploadbox\\.com\/files\/\\w+","//a[contains(@href,'uploadbox.com/files')]");
  5144. addObsoleteHost("(?:flyupload\\.)?(?:enterupload|flyupload)\\.com\/[\\?\\w]+","//a[contains(@href,'enterupload.com/') or contains(@href,'flyupload.com/')]");
  5145. addObsoleteHost("filepoint\\.de\/dl\/\\w+","//a[contains(@href,'filepoint.de/dl')]");
  5146. addObsoleteHost("icushare\\.com\/\\w+","//a[contains(@href,'icushare.com/')]");
  5147. addObsoleteHost("oron\\.com\/\\w+","//a[contains(@href,'oron.com/')]");
  5148. addObsoleteHost("mystream\\.to\/file\\-\\d+","//a[contains(@href,'mystream.to/file')]");
  5149. addObsoleteHost("x-fs\\.com\/download\\.php\\?id=\\w+","//a[contains(@href,'x-fs.com/download')]");
  5150. addObsoleteHost("srapid\\.eu\/\\w+","//a[contains(@href,'srapid.eu/')]");
  5151. addObsoleteHost("shareshared\\.com\/\\w+","//a[contains(@href,'shareshared.com/')]");
  5152. addObsoleteHost("sosame\\.cz\/\\w+","//a[contains(@href,'sosame.cz/')]");
  5153. addObsoleteHost("s\\d+\\.filesdump\\.com\/file\/\\w+","//a[contains(@href,'filesdump.com/file')]");
  5154. addObsoleteHost("2-klicks\\.de\/\\?d=\\w+","//a[contains(@href,'2-klicks.de/?d=')]");
  5155. addObsoleteHost("silofiles\\.com\/file\/\\d+","//a[contains(@href,'silofiles.com/file')]");
  5156. addObsoleteHost("upfile\\.in\/\\w+","//a[contains(@href,'upfile.in/')]");
  5157. addObsoleteHost("filehook\\.com\/\\w+","//a[contains(@href,'filehook.com/')]");
  5158. addObsoleteHost("mojofile\\.com\/\\w+","//a[contains(@href,'mojofile.com/')]");
  5159. addObsoleteHost("cloudcache\\.cc\/\\w+","//a[contains(@href,'cloudcache.cc/')]");
  5160. addObsoleteHost("1hostclick\\.com\/\\w+","//a[contains(@href,'1hostclick.com/')]");
  5161. addObsoleteHost("4bytez\\.com\/\\w+","//a[contains(@href,'4bytez.com/')]");
  5162. addObsoleteHost("uploadking\\.com\/\\w+","//a[contains(@href,'uploadking.com/')]");
  5163. addObsoleteHost("nahraj\\.cz\/(?:content|down)\/\\w+","//a[contains(@href,'nahraj.cz/')]");
  5164. addObsoleteHost("megarapid\\.eu\/files\/\\d+","//a[contains(@href,'megarapid.eu/files')]");
  5165. addObsoleteHost("(?:fileserve|uploadstation)\\.com\/(?:file|list)\/\\w+","//a[contains(@href,'fileserve.com/') or contains(@href,'uploadstation.com/')]");
  5166. addObsoleteHost("uploadhere\\.com\/\\w+","//a[contains(@href,'uploadhere.com/')]");
  5167. addObsoleteHost("dualshare\\.com\/\\w+","//a[contains(@href,'dualshare.com/')]");
  5168. addObsoleteHost("yourfilehost\\.com\/media","//a[contains(@href,'yourfilehost.com/media')]");
  5169. addObsoleteHost("ftp2share\\.com\/file\/\\w+","//a[contains(@href,'ftp2share.com/file')]");
  5170. addObsoleteHost("storeandserve\\.com\/download\/\\d+","//a[contains(@href,'storeandserve.com/download')]");
  5171. addObsoleteHost("mountfile\\.com\/file(?:\/\\w+){2}","//a[contains(@href,'mountfile.com/file')]");
  5172. addObsoleteHost("save\\.am\/files\/\\w+","//a[contains(@href,'save.am/files')]");
  5173. addObsoleteHost("transitfiles\\.com\/dl\/\\w+","//a[contains(@href,'transitfiles.com/dl')]");
  5174. addObsoleteHost("smartuploader\\.com\/file\\.php\\?f=\\d+","//a[contains(@href,'smartuploader.com/file.php?=')]");
  5175. addObsoleteHost("skipfile\\.com\/\\w+","//a[contains(@href,'skipfile.com/')]");
  5176. addObsoleteHost("stahnu\\.to\/[\\w\\?]+","//a[contains(@href,'stahnu.to/')]");
  5177. addObsoleteHost("flyshare\.cz\/(?:stahni\/|)\\d+","//a[contains(@href,'flyshare.cz/')]");
  5178. addObsoleteHost("(?:ddlani\\.me|ddlanime\\.com)\/\\w+","//a[contains(@href,'ddlani.me/') or contains(@href,'ddlanime.com/')]");
  5179. addObsoleteHost("loadly\\.com\/\\w+","//a[contains(@href,'loadly.com/')]");
  5180. addObsoleteHost("groovefile\\.com\/\\w+","//a[contains(@href,'groovefile.com/')]");
  5181. addObsoleteHost("filezlot\\.com\/\\w+","//a[contains(@href,'filezlot.com/')]");
  5182. addObsoleteHost("shareator\\.(?:net|com)\/\\w+","//a[contains(@href,'shareator.')]");
  5183. addObsoleteHost("yabadaba\\.ru\/files\/","//a[contains(@href,'yabadaba.ru/files/')]");
  5184. addObsoleteHost("rapidhide\\.com\/download\\.php\\?file=\\w+","//a[contains(@href,'rapidhide.com/download.php')]");
  5185. addObsoleteHost("filejungle\\.com\/[fl]\/\\w+","//a[contains(@href,'filejungle.com/')]");
  5186. addObsoleteHost("kewlshare\\.com\/dl\/\\d+","//a[contains(@href,'kewlshare.com/dl')]");
  5187. addObsoleteHost("petandrive\\.com\/file\/\\w+","//a[contains(@href,'petandrive.com/file')]");
  5188. addObsoleteHost("onionshare\\.com\/\\w+","//a[contains(@href,'onionshare.com/')]");
  5189. addObsoleteHost("rapidable\\.com\/\\w+\/download\\.php\\?id=","//a[contains(@href,'rapidable.com/')]");
  5190. addObsoleteHost("filesdump\\.com\/file\/\\w+\/\\d+","//a[contains(@href,'filesdump.com/file')]");
  5191. addObsoleteHost("file2box\\.(?:net|com)\/\\w+","//a[contains(@href,'file2box.')]");
  5192. addObsoleteHost("(?:filesonic|sharingmatrix|wupload)(?:\\.\\w+){1,2}\/(?:file|folder)\/\\w+","//a[contains(@href,'filesonic.') or contains(@href,'sharingmatrix.com') or contains(@href,'wupload.')]");
  5193. // addObsoleteHost("wizzupload\\.com\/\\w+","//a[contains(@href,'wizzupload.com/')]");
  5194. addObsoleteHost("bloggerarticles\\.com\/\\w+","//a[contains(@href,'bloggerarticles.com/')]");
  5195. addObsoleteHost("mojedata\\.sk/","//a[contains(@href,'mojedata.sk/')]");
  5196. addObsoleteHost("sharpfile\\.com\/\\w+","//a[contains(@href,'sharpfile.com/')]");
  5197. addObsoleteHost("upgrand\\.com\/\\w+","//a[contains(@href,'upgrand.com/')]");
  5198. addObsoleteHost("nasdilej\\.cz\/\\w+","//a[contains(@href,'nasdilej.cz/')]");
  5199. addObsoleteHost("mediatack\\.cz\/stahuj/\\w+","//a[contains(@href,'mediatack.cz/stahuj/')]");
  5200. addObsoleteHost("share-it\\.to\/file/\\w+","//a[contains(@href,'share-it.to/file/')]");
  5201. addObsoleteHost("primeupload\\.com\/file/\\w+","//a[contains(@href,'primeupload.com/file/')]");
  5202. addObsoleteHost("(?:uploads\\.glumbo|glumbouploads)\\.com\/\\w+","//a[contains(@href,'uploads.glumbo.com') or contains(@href,'glumbouploads.com')]");
  5203. addObsoleteHost("filebeer\\.info\/\\w+","//a[contains(@href,'filebeer.info/')]");
  5204. addObsoleteHost("baberepublic\\.com\/link\/\\w+","//a[contains(@href,'baberepublic.com/link/')]");
  5205. addObsoleteHost("xtu\\.me\/\\w+","//a[contains(@href,'xtu.me/')]");
  5206. addObsoleteHost("sharebase\\.de\/files\/\\w+","//a[contains(@href,'sharebase.de/files/')]");
  5207. addObsoleteHost("filerobo\\.com\/\\w+","//a[contains(@href,'filerobo.com/')]");
  5208. addObsoleteHost("filevelocity\\.com\/\\w+","//a[contains(@href,'filevelocity.com/')]");
  5209. addObsoleteHost("filezpro\\.com\/\\w+","//a[contains(@href,'filezpro.com/')]");
  5210. addObsoleteHost("file4sharing\\.com\/\\w+","//a[contains(@href,'file4sharing.com/')]");
  5211. addObsoleteHost("cing\\.be\/\\w+","//a[contains(@href,'cing.be/')]");
  5212. addObsoleteHost("ufile\\.eu\/\\w+","//a[contains(@href,'ufile.eu/')]");
  5213. addObsoleteHost("pigsonic\\.com\/\\w+","//a[contains(@href,'pigsonic.com/')]");
  5214. addObsoleteHost("fileupped\\.com\/\\w+","//a[contains(@href,'fileupped.com/')]");
  5215. addObsoleteHost("sharerun\\.com\/\\w+","//a[contains(@href,'sharerun.com/')]");
  5216. addObsoleteHost("rapidslnare\\.com\/\\w+","//a[contains(@href,'rapidslnare.com/')]");
  5217. addObsoleteHost("monsteruploads\\.eu\/\\w+","//a[contains(@href,'monsteruploads.eu/')]");
  5218. addObsoleteHost("b9bb\\.com\/\\w+","//a[contains(@href,'b9bb.com/')]");
  5219. addObsoleteHost("jamber\\.info\/\\w+","//a[contains(@href,'jamber.info/')]");
  5220. addObsoleteHost("(?:megaftp|MegaFTP)\\.com\/\\w+","//a[contains(@href,'megaftp.com/') or contains(@href,'MegaFTP.com/')]");
  5221. addObsoleteHost("desiupload\\.net\/\\?d=\\w+","//a[contains(@href,'desiupload.net/')]");
  5222. addObsoleteHost("file27\\.com\/\\w+","//a[contains(@href,'file27.com/')]");
  5223. addObsoleteHost("yastorage\\.com\/\\w+","//a[contains(@href,'yastorage.com/')]");
  5224. addObsoleteHost("filehost\\.ws\/\\w+","//a[contains(@href,'filehost.ws/')]");
  5225. addObsoleteHost("copyload\\.com\/\\w+","//a[contains(@href,'copyload.com/')]");
  5226. addObsoleteHost("venusfile\\.com\/\\w+","//a[contains(@href,'venusfile.com/')]");
  5227. addObsoleteHost("aieshare\\.com\/\\w+","//a[contains(@href,'aieshare.com/')]");
  5228. addObsoleteHost("fileza\\.net\/\\w+","//a[contains(@href,'fileza.net/')]");
  5229. addObsoleteHost("filerose\\.com\/\\w+","//a[contains(@href,'filerose.com/')]");
  5230. addObsoleteHost("squillion\\.com\/\\w+","//a[contains(@href,'squillion.com/')]");
  5231. addObsoleteHost("fileprohost\\.com\/\\w+","//a[contains(@href,'fileprohost.com/')]");
  5232. addObsoleteHost("bitbonus\\.com\/download\/\\w+","//a[contains(@href,'bitbonus.com/')]");
  5233. addObsoleteHost("warserver\\.cz\/\\w+","//a[contains(@href,'warserver.cz/')]");
  5234. addObsoleteHost("uload\\.to\/\\w+","//a[contains(@href,'uload.to/')]");
  5235. addObsoleteHost("sharedbit\\.net\/\\w+","//a[contains(@href,'sharedbit.net/')]");
  5236. addObsoleteHost("megaload\\.it\/\\w+","//a[contains(@href,'megaload.it/')]");
  5237. addObsoleteHost("filewinds\\.com\/\\w+","//a[contains(@href,'filewinds.com/')]");
  5238. addObsoleteHost("uploadcore\\.com\/\\w+","//a[contains(@href,'uploadcore.com/')]");
  5239. addObsoleteHost("syfiles\\.com\/\\w+","//a[contains(@href,'syfiles.com/')]");
  5240. addObsoleteHost("eyesfile\\.com\/\\w+","//a[contains(@href,'eyesfile.com/')]");
  5241. addObsoleteHost("hotfile\\.com\/\\w+","//a[contains(@href,'hotfile.com/')]");
  5242. addObsoleteHost("superupl\\.com\/\\w+","//a[contains(@href,'superupl.com/')]");
  5243. addObsoleteHost("oteupload\\.com\/\\w+","//a[contains(@href,'oteupload.com/')]");
  5244. addObsoleteHost("henchfile\\.com\/\\w+","//a[contains(@href,'henchfile.com/')]");
  5245. addObsoleteHost("HenchFile\\.com\/\\w+","//a[contains(@href,'HenchFile.com/')]");
  5246. addObsoleteHost("filegag\\.com\/\\w+","//a[contains(@href,'filegag.com/')]");
  5247. addObsoleteHost("filedefend\\.com\/\\w+","//a[contains(@href,'filedefend.com/')]");
  5248. addObsoleteHost("hotfiles\\.ws\/\\w+","//a[contains(@href,'hotfiles.ws/')]");
  5249. addObsoleteHost("share-rapid\\.com\/\\w+","//a[contains(@href,'share-rapid.com/')]");
  5250. //addObsoleteHost("sharerapid\\.cz\/\\w+","//a[contains(@href,'sharerapid.cz/')]");
  5251. addObsoleteHost("rapids\\.cz\/\\w+","//a[contains(@href,'rapids.cz/')]");
  5252. addObsoleteHost("share-credit\\.cz\/\\w+","//a[contains(@href,'share-credit.cz/')]");
  5253. addObsoleteHost("share-central\\.cz\/\\w+","//a[contains(@href,'share-central.cz/')]");
  5254. addObsoleteHost("share-ms\\.cz\/\\w+","//a[contains(@href,'share-ms.cz/')]");
  5255. addObsoleteHost("share-net\\.cz\/\\w+","//a[contains(@href,'share-net.cz/')]");
  5256. addObsoleteHost("srapid\\.cz\/\\w+","//a[contains(@href,'srapid.cz/')]");
  5257. addObsoleteHost("share-rapid\\.cz\/\\w+","//a[contains(@href,'share-rapid.cz/')]");
  5258. addObsoleteHost("wooupload\\.com\/\\w+","//a[contains(@href,'wooupload.com/')]");
  5259. addObsoleteHost("megabitshare\\.com\/\\w+","//a[contains(@href,'megabitshare.com/')]");
  5260. addObsoleteHost("uploking\\.com\/\\w+","//a[contains(@href,'uploking.com/')]");
  5261. addObsoleteHost("esnips\\.com\/\\w+","//a[contains(@href,'esnips.com/')]");
  5262. addObsoleteHost("uplly\\.com\/\\w+","//a[contains(@href,'uplly.com/')]");
  5263. addObsoleteHost("ufox\\.com\/\\w+","//a[contains(@href,'ufox.com/')]");
  5264. addObsoleteHost("clz\\.to\/\\w+","//a[contains(@href,'clz.to/')]");
  5265. addObsoleteHost("cloudzer\\.net\/\\w+","//a[contains(@href,'cloudzer.net/')]");
  5266. addObsoleteHost("cloudzer\\.com\/\\w+","//a[contains(@href,'cloudzer.com/')]");
  5267. addObsoleteHost("extabit\\.com\/\\w+","//a[contains(@href,'extabit.com/')]");
  5268. addObsoleteHost("uploadwaste\\.com\/\\w+","//a[contains(@href,'uploadwaste.com/')]");
  5269. addObsoleteHost("247upload\\.com\/\\w+","//a[contains(@href,'uploadwaste.com/')]");
  5270. addObsoleteHost("2download\\.de\/\\w+","//a[contains(@href,'2download.de/')]");
  5271. addObsoleteHost("4fastfile\\.com\/\\w+","//a[contains(@href,'4fastfile.com/')]");
  5272. addObsoleteHost("asixfiles\\.com\/\\w+","//a[contains(@href,'asixfiles.com/')]");
  5273. addObsoleteHost("berofile\\.com\/\\w+","//a[contains(@href,'berofile.com/')]");
  5274. addObsoleteHost("bigupload\\.com\/\\w+","//a[contains(@href,'bigupload.com/')]");
  5275. addObsoleteHost("cepzo\\.com\/\\w+","//a[contains(@href,'cepzo.com/')]");
  5276. addObsoleteHost("czshare\\.com\/\\w+","//a[contains(@href,'czshare.com/')]");
  5277. addObsoleteHost("clouds\\.to\/\\w+","//a[contains(@href,'clouds.to/')]");
  5278. addObsoleteHost("cobrashare\\.sk\/\\w+","//a[contains(@href,'cobrashare.sk/')]");
  5279. addObsoleteHost("coraldrive\\.net\/\\w+","//a[contains(@href,'coraldrive.net/')]");
  5280. addObsoleteHost("cyberlocker\\.ch\/\\w+","//a[contains(@href,'cyberlocker.ch/')]");
  5281. addObsoleteHost("darkport\\.org\/\\w+","//a[contains(@href,'darkport.org/')]");
  5282. addObsoleteHost("dark-uploads\\.com\/\\w+","//a[contains(@href,'dark-uploads.com/')]");
  5283. addObsoleteHost("davvas\\.com\/\\w+","//a[contains(@href,'davvas.com/')]");
  5284. addObsoleteHost("enigmashare\\.com\/\\w+","//a[contains(@href,'enigmashare.com/')]");
  5285. addObsoleteHost("erofly\\.cz\/\\w+","//a[contains(@href,'erofly.cz/')]");
  5286. addObsoleteHost("fastsonic\\.net\/\\w+","//a[contains(@href,'fastsonic.net/')]");
  5287. addObsoleteHost("filebox\\.com\/\\w+","//a[contains(@href,'filebox.com/')]");
  5288. addObsoleteHost("filecity\\.net\/\\w+","//a[contains(@href,'filecity.net/')]");
  5289. addObsoleteHost("filedap\\.com\/\\w+","//a[contains(@href,'filedap.com/')]");
  5290. addObsoleteHost("filedino\\.com\/\\w+","//a[contains(@href,'filedino.com/')]");
  5291. addObsoleteHost("filedownloads\\.org\/\\w+","//a[contains(@href,'filedownloads.org/')]");
  5292. addObsoleteHost("filefolks\\.com\/\\w+","//a[contains(@href,'filefolks.com/')]");
  5293. addObsoleteHost("fileking\\.co\/\\w+","//a[contains(@href,'fileking.co/')]");
  5294. addObsoleteHost("filemates\\.com\/\\w+","//a[contains(@href,'filemates.com/')]");
  5295. addObsoleteHost("files\\.to\/\\w+","//a[contains(@href,'files.to/')]");
  5296. addObsoleteHost("files2k\\.eu\/\\w+","//a[contains(@href,'files2k.eu/')]");
  5297. addObsoleteHost("filesector\\.cc\/\\w+","//a[contains(@href,'filesector.cc/')]");
  5298. addObsoleteHost("filesega\\.com\/\\w+","//a[contains(@href,'filesega.com/')]");
  5299. addObsoleteHost("filesend\\.net\/\\w+","//a[contains(@href,'filesend.net/')]");
  5300. addObsoleteHost("filestay\\.com\/\\w+","//a[contains(@href,'filestay.com/')]");
  5301. addObsoleteHost("filestrum\\.com\/\\w+","//a[contains(@href,'filestrum.com/')]");
  5302. addObsoleteHost("fileuplo\\.de\/\\w+","//a[contains(@href,'fileuplo.de/')]");
  5303. addObsoleteHost("fileupup\\.com\/\\w+","//a[contains(@href,'fileupup.com/')]");
  5304. addObsoleteHost("forunesia\\.com\/\\w+","//a[contains(@href,'forunesia.com/')]");
  5305. addObsoleteHost("freeuploads\\.fr\/\\w+","//a[contains(@href,'freeuploads.fr/')]");
  5306. addObsoleteHost("uploa\\.dk\/\\w+","//a[contains(@href,'uploa.dk/')]");
  5307. addObsoleteHost("getthebit\\.com\/\\w+","//a[contains(@href,'getthebit.com/')]");
  5308. addObsoleteHost("getzilla\\.net\/\\w+","//a[contains(@href,'getzilla.net/')]");
  5309. addObsoleteHost("goldfile\\.eu\/\\w+","//a[contains(@href,'goldfile.eu/')]");
  5310. addObsoleteHost("good\\.com\/\\w+","//a[contains(@href,'good.com/')]");
  5311. addObsoleteHost("grupload\\.com\/\\w+","//a[contains(@href,'grupload.com/')]");
  5312. addObsoleteHost("hellfile\\.com\/\\w+","//a[contains(@href,'hellfile.com/')]");
  5313. addObsoleteHost("hipfile\\.com\/\\w+","//a[contains(@href,'hipfile.com/')]");
  5314. addObsoleteHost("hitfile\\.com\/\\w+","//a[contains(@href,'hitfile.com/')]");
  5315. addObsoleteHost("hulkfile\\.eu\/\\w+","//a[contains(@href,'hulkfile.eu/')]");
  5316. addObsoleteHost("i-filez\\.com\/\\w+","//a[contains(@href,'i-filez.com/')]");
  5317. addObsoleteHost("ifile\\.ws\/\\w+","//a[contains(@href,'ifile.ws/')]");
  5318. addObsoleteHost("kupload\\.org\/\\w+","//a[contains(@href,'kupload.org/')]");
  5319. addObsoleteHost("duckfile\\.net\/\\w+","//a[contains(@href,'duckfile.net/')]");
  5320. addObsoleteHost("packupload\\.com\/\\w+","//a[contains(@href,'packupload.com/')]");
  5321. addObsoleteHost("terafile\\.com\/\\w+","//a[contains(@href,'terafile.com/')]");
  5322. addObsoleteHost("terafile\\.co\/\\w+","//a[contains(@href,'terafile.co/')]");
  5323. addObsoleteHost("fileom\\.com\/\\w+","//a[contains(@href,'fileom.com/')]");
  5324. addObsoleteHost("luckyshare\\.net\/\\w+","//a[contains(@href,'luckyshare.net/')]");
  5325. addObsoleteHost("lemuploads\\.com\/\\w+","//a[contains(@href,'lemuploads.com/')]");
  5326. addObsoleteHost("limelinx\\.com\/\\w+","//a[contains(@href,'limelinx.com/')]");
  5327. addObsoleteHost("maxshare\\.pl\/\\w+","//a[contains(@href,'maxshare.pl/')]");
  5328. addObsoleteHost("megarelease\\.org\/\\w+","//a[contains(@href,'megarelease.org/')]");
  5329. addObsoleteHost("megashare\\.com\/\\w+","//a[contains(@href,'megashare.com/')]");
  5330. addObsoleteHost("minus\\.com\/\\w+","//a[contains(@href,'minus.com/')]");
  5331. addObsoleteHost("mlfat4arab\\.com\/\\w+","//a[contains(@href,'mlfat4arab.com/')]");
  5332. addObsoleteHost("multishare\\.cz\/\\w+","//a[contains(@href,'multishare.cz/')]");
  5333. addObsoleteHost("nirafile\\.com\/\\w+","//a[contains(@href,'nirafile.com/')]");
  5334. addObsoleteHost("ok2upload\\.com\/\\w+","//a[contains(@href,'ok2upload.com/')]");
  5335. addObsoleteHost("peejeshare\\.com\/\\w+","//a[contains(@href,'peejeshare.com/')]");
  5336. addObsoleteHost("premiuns\\.org\/\\w+","//a[contains(@href,'premiuns.org/')]");
  5337. addObsoleteHost("przeklej\\.net\/\\w+","//a[contains(@href,'przeklej.net/')]");
  5338. addObsoleteHost("qkup\\.net\/\\w+","//a[contains(@href,'qkup.net/')]");
  5339. addObsoleteHost("rapidupload\\.sk\/\\w+","//a[contains(@href,'rapidupload.sk/')]");
  5340. addObsoleteHost("rockdizfile\\.com\/\\w+","//a[contains(@href,'rockdizfile.com/')]");
  5341. addObsoleteHost("rocketfile\\.net\/\\w+","//a[contains(@href,'rocketfile.net/')]");
  5342. addObsoleteHost("share-now\\.net\/\\w+","//a[contains(@href,'share-now.net/')]");
  5343. addObsoleteHost("share76\\.com\/\\w+","//a[contains(@href,'share76.com/')]");
  5344. addObsoleteHost("sharebees\\.com\/\\w+","//a[contains(@href,'sharebees.com/')]");
  5345. addObsoleteHost("sharefiles\\.co\/\\w+","//a[contains(@href,'sharefiles.co/')]");
  5346. addObsoleteHost("slingfile\\.com\/\\w+","//a[contains(@href,'slingfile.com/')]");
  5347. addObsoleteHost("sms4file\\.com\/\\w+","//a[contains(@href,'sms4file.com/')]");
  5348. addObsoleteHost("space4file\\.com\/\\w+","//a[contains(@href,'space4file.com/')]");
  5349. addObsoleteHost("tigershare\\.net\/\\w+","//a[contains(@href,'tigershare.net/')]");
  5350. addObsoleteHost("toucansharing\\.com\/\\w+","//a[contains(@href,'toucansharing.com/')]");
  5351. addObsoleteHost("ubuntuone\\.com\/\\w+","//a[contains(@href,'ubuntuone.com/')]");
  5352. addObsoleteHost("unextfiles\\.com\/\\w+","//a[contains(@href,'unextfiles.com/')]");
  5353. addObsoleteHost("upaj\\.pl\/\\w+","//a[contains(@href,'upaj.pl/')]");
  5354. addObsoleteHost("upfile\\.biz\/\\w+","//a[contains(@href,'upfile.biz/')]");
  5355. addObsoleteHost("uploadbin\\.net\/\\w+","//a[contains(@href,'uploadbin.net/')]");
  5356. addObsoleteHost("uploadic\\.com\/\\w+","//a[contains(@href,'uploadic.com/')]");
  5357. addObsoleteHost("uploadinc\\.com\/\\w+","//a[contains(@href,'uploadinc.com/')]");
  5358. addObsoleteHost("uploading4u\\.eu\/\\w+","//a[contains(@href,'uploading4u.eu/')]");
  5359. addObsoleteHost("uploadjet\\.net\/\\w+","//a[contains(@href,'uploadjet.net/')]");
  5360. addObsoleteHost("uploadorb\\.com\/\\w+","//a[contains(@href,'uploadorb.com/')]");
  5361. addObsoleteHost("upthe\\.net\/\\w+","//a[contains(@href,'upthe.net/')]");
  5362. addObsoleteHost("uptorch\\.com\/\\w+","//a[contains(@href,'uptorch.com/')]");
  5363. addObsoleteHost("vidbox\\.yt\/\\w+","//a[contains(@href,'vidbox.yt/')]");
  5364. addObsoleteHost("videozer\\.com\/\\w+","//a[contains(@href,'videozer.com/')]");
  5365. addObsoleteHost("vreer\\.com\/\\w+","//a[contains(@href,'vreer.com/')]");
  5366. addObsoleteHost("wallobit\\.com\/\\w+","//a[contains(@href,'wallobit.com/')]");
  5367. addObsoleteHost("zooupload\\.com\/\\w+","//a[contains(@href,'zooupload.com/')]");
  5368. addObsoleteHost("xerver\\.co\/\\w+","//a[contains(@href,'xerver.co/')]");
  5369. addObsoleteHost("privatefiles\\.com\/\\w+","//a[contains(@href,'privatefiles.com/')]");
  5370. addObsoleteHost("bitshare\\.com\/\\w+","//a[contains(@href,'bitshare.com/')]");
  5371. addObsoleteHost("asfile\\.com\/\\w+","//a[contains(@href,'asfile.com/')]");
  5372. addObsoleteHost("billionuploads\\.com\/\\w+","//a[contains(@href,'billionuploads.com/')]");
  5373. addObsoleteHost("\\*{7,100}\/[\\w\\d]+","//a[contains(@href,'*******/')]");
  5374. addObsoleteHost("filesaur\\.com\/\\w+","//a[contains(@href,'filesaur.com/')]");
  5375. addObsoleteHost("rapidshare\\.com\/\\w+","//a[contains(@href,'rapidshare.com/')]");
  5376. addObsoleteHost("rapidshare\\.ru\/\\w+","//a[contains(@href,'rapidshare.ru/')]");
  5377. addObsoleteHost("filesfrog\\.net\/\\w+","//a[contains(@href,'filesfrog.net/')]");
  5378. addObsoleteHost("4savefile\\.com\/\\w+","//a[contains(@href,'4savefile.com/')]");
  5379. addObsoleteHost("bayfiles\\.com\/\\w+","//a[contains(@href,'bayfiles.com/')]");
  5380. addObsoleteHost("bayfiles\\.net\/\\w+","//a[contains(@href,'bayfiles.net/')]");
  5381. addObsoleteHost("dodane\\.pl\/\\w+","//a[contains(@href,'dodane.pl/')]");
  5382. addObsoleteHost("dotsemper\\.com\/\\w+","//a[contains(@href,'dotsemper.com/')]");
  5383. addObsoleteHost("egofiles\\.com\/\\w+","//a[contains(@href,'egofiles.com/')]");
  5384. addObsoleteHost("epicshare\\.net\/\\w+","//a[contains(@href,'epicshare.net/')]");
  5385. addObsoleteHost("fiberupload\\.net\/\\w+","//a[contains(@href,'fiberupload.net/')]");
  5386. addObsoleteHost("filemonkey\\.in\/\\w+","//a[contains(@href,'filemonkey.in/')]");
  5387. addObsoleteHost("filemonster\\.net\/\\w+","//a[contains(@href,'filemonster.net/')]");
  5388. addObsoleteHost("filepom\\.com\/\\w+","//a[contains(@href,'filepom.com/')]");
  5389. addObsoleteHost("filesbb\\.com\/\\w+","//a[contains(@href,'filesbb.com/')]");
  5390. addObsoleteHost("fileshareup\\.com\/\\w+","//a[contains(@href,'fileshareup.com/')]");
  5391. addObsoleteHost("filevice\\.com\/\\w+","//a[contains(@href,'filevice.com/')]");
  5392. addObsoleteHost("gigaup\\.fr\/\\w+","//a[contains(@href,'gigaup.fr/')]");
  5393. addObsoleteHost("inafile\\.com\/\\w+","//a[contains(@href,'inafile.com/')]");
  5394. addObsoleteHost("isavelink\\.com\/\\w+","//a[contains(@href,'isavelink.com/')]");
  5395. addObsoleteHost("loombo\\.com\/\\w+","//a[contains(@href,'loombo.com/')]");
  5396. addObsoleteHost("megafiles\\.se\/\\w+","//a[contains(@href,'megafiles.se/')]");
  5397. addObsoleteHost("migupload\\.com\/\\w+","//a[contains(@href,'migupload.com/')]");
  5398. addObsoleteHost("mydisc\\.net\/\\w+","//a[contains(@href,'mydisc.net/')]");
  5399. addObsoleteHost("nitrobits\\.com\/\\w+","//a[contains(@href,'nitrobits.com/')]");
  5400. addObsoleteHost("potload\\.com\/\\w+","//a[contains(@href,'potload.com/')]");
  5401. addObsoleteHost("redload\\.net\/\\w+","//a[contains(@href,'redload.net/')]");
  5402. addObsoleteHost("shareprofi\\.com\/\\w+","//a[contains(@href,'shareprofi.com/')]");
  5403. addObsoleteHost("sharesuper\\.info\/\\w+","//a[contains(@href,'sharesuper.info/')]");
  5404. addObsoleteHost("sinhro\\.net\/\\w+","//a[contains(@href,'sinhro.net/')]");
  5405. addObsoleteHost("speedfile\\.cz\/\\w+","//a[contains(@href,'speedfile.cz/')]");
  5406. addObsoleteHost("speedshare\\.org\/\\w+","//a[contains(@href,'speedshare.org/')]");
  5407. addObsoleteHost("storage.novoro\\.net\/\\w+","//a[contains(@href,'storage.novoro.net/')]");
  5408. addObsoleteHost("swankshare\\.com\/\\w+","//a[contains(@href,'swankshare.com/')]");
  5409. addObsoleteHost("swatupload\\.com\/\\w+","//a[contains(@href,'swatupload.com/')]");
  5410. addObsoleteHost("upafile\\.com\/\\w+","//a[contains(@href,'upafile.com/')]");
  5411. addObsoleteHost("uploadmachine\\.com\/\\w+","//a[contains(@href,'uploadmachine.com/')]");
  5412. addObsoleteHost("uploadsat\\.com\/\\w+","//a[contains(@href,'uploadsat.com/')]");
  5413. addObsoleteHost("upshared\\.com\/\\w+","//a[contains(@href,'upshared.com/')]");
  5414. addObsoleteHost("usefile\\.com\/\\w+","//a[contains(@href,'usefile.com/')]");
  5415. addObsoleteHost("yourfiles\\.to\/\\w+","//a[contains(@href,'yourfiles.to/')]");
  5416. addObsoleteHost("zomgupload\\.com\/\\w+","//a[contains(@href,'zomgupload.com/')]");
  5417. addObsoleteHost("~[\\w\\s~]*","//a[contains(@href,'//~') or contains(@href,'//www.~')]");
  5418. addObsoleteHost("filemup\\.com\/\\w+","//a[contains(@href,'filemup.com/')]");
  5419. addObsoleteHost("tuxfile\\.com\/\\w+","//a[contains(@href,'tuxfile.com/')]");
  5420. addObsoleteHost("ultramegabit\\.com\/\\w+","//a[contains(@href,'ultramegabit.com/')]");
  5421. addObsoleteHost("uploadto\\.us\/\\w+","//a[contains(@href,'uploadto.us/')]");
  5422. addObsoleteHost("filecore\\.co\\.nz\/\\w+","//a[contains(@href,'filecore.co.nz/')]");
  5423. addObsoleteHost("fileshare\\.in\\.ua\/\\w+","//a[contains(@href,'fileshare.in.ua/')]");
  5424. addObsoleteHost("firedrive\\.com\/\\w+","//a[contains(@href,'firedrive.com/')]");
  5425. addObsoleteHost("putlocker\\.com\/\\w+","//a[contains(@href,'putlocker.com/')]");
  5426. addObsoleteHost("lumfile\\.com\/\\w+","//a[contains(@href,'lumfile.com/')]");
  5427. addObsoleteHost("lumfile\\.se\/\\w+","//a[contains(@href,'lumfile.se/')]");
  5428. addObsoleteHost("lumfile\\.eu\/\\w+","//a[contains(@href,'lumfile.eu/')]");
  5429. addObsoleteHost("shared\\.com\/\\w+","//a[contains(@href,'shared.com/')]");
  5430. addObsoleteHost("stahovadlo\\.cz\/\\w+","//a[contains(@href,'stahovadlo.cz/')]");
  5431. addObsoleteHost("dizzcloud\\.com\/\\w+","//a[contains(@href,'dizzcloud.com/')]");
  5432. addObsoleteHost("ddlstorage\\.com\/\\w+","//a[contains(@href,'ddlstorage.com/')]");
  5433. addObsoleteHost("dataport\\.cz\/\\w+","//a[contains(@href,'dataport.cz/')]");
  5434. addObsoleteHost("daj\\.to\/\\w+","//a[contains(@href,'daj.to/')]");
  5435. addObsoleteHost("sockshare\\.com\/\\w+","//a[contains(@href,'sockshare.com/')]");
  5436. addObsoleteHost("2drive\\.net\/\\w+","//a[contains(@href,'2drive.net/')]");
  5437. addObsoleteHost("bl\\.st\/\\w+","//a[contains(@href,'bl.st/')]");
  5438. addObsoleteHost("uncapped-downloads\\.com\/\\w+","//a[contains(@href,'uncapped-downloads.com/')]");
  5439. // obsolete start
  5440. }
  5441. //obsolete file hosts init end
  5442.  
  5443. function addFileHost(linkRegex, isAliveRegex, isDeadRegex, isUnavaRegex, xpathEx, tryLoop, ispremRegex)
  5444. {
  5445. var host = new Array(7);
  5446. host[0] = linkRegex;
  5447. host[1] = isAliveRegex;
  5448. host[2] = isDeadRegex;
  5449. host[3] = isUnavaRegex;
  5450. host[6] = ispremRegex;
  5451. host[4] = xpathEx;
  5452. tryLoop ? host[5] = true : host[5] = false;
  5453. http_file_hosts.push(host);
  5454. }
  5455. if (GM_getValue("Check_megafileupload_dot_com_links", false))
  5456. {
  5457. addFileHost(
  5458. "megafileupload\.com\/..\/file\/",
  5459. 'downloadbtn',
  5460. 'is not found',
  5461. 'optional--',
  5462. "//a[contains(@href,'megafileupload.com')]");
  5463. }
  5464. if (GM_getValue("Check_demo_dot_ovh_dot_eu_links", false))
  5465. {
  5466. addFileHost(
  5467. "demo\\.ovh\\.eu\/\\w+\/\\w+",
  5468. 'download\\.gif"',
  5469. 'p_point">',
  5470. 'optional--',
  5471. "//a[contains(@href,'demo.ovh.eu')]");
  5472. }
  5473. if (GM_getValue("Check_xkeepfile_dot_com_links", false))
  5474. {
  5475. addFileHost(
  5476. "xkeepfile\.com\/\\w+",
  5477. 'File has been found|Click here to download',
  5478. 'File cannot be found|class="error">',
  5479. 'optional--',
  5480. //'optional--',
  5481. "//a[contains(@href,'xkeepfile.com/') or contains(@href,'Gamesena.com/')]");
  5482. }
  5483. if (GM_getValue("Check_safelinking_dot_net_links", false))
  5484. {
  5485. addFileHost(
  5486. "safelinking\\.net\/p\/\\w+",
  5487. 'color:green;"',
  5488. 'color:(?:red|orange);"',
  5489. 'color:(?:grey|brown);"',
  5490. "//a[contains(@href,'safelinking.net/p/')]",
  5491. true);
  5492. }
  5493. /* if (GM_getValue("Check_ultramegabit_dot_com_links", false))
  5494. {
  5495. addFileHost(
  5496. "ultramegabit\\.com\/file\/details\/[\\w+-]",
  5497. 'name="recaptcha_response',
  5498. '="/folder/add"|>File (?:not found|restricted|has been deleted)|<title>ULTRAMEGABIT</title>',
  5499. 'btn-large btn-danger">|Account limitation notice|502 Bad Gateway',
  5500. "//a[contains(@href,'ultramegabit.com/file')]",
  5501. true);
  5502. } */
  5503. if (GM_getValue("Check_fastshare_dot_cz_links", false))
  5504. {
  5505. addFileHost(
  5506. "fastshare\\.cz\/\\d+\/\\w*",
  5507. 'dwntable">',
  5508. 'nebyla nalezena|nebola nájdená|nie została odnaleziona|color:red;font-weight:bold;border\\-style:dashed|<i class="fa fa-copyright"></i>',
  5509. 'optional--',
  5510. "//a[contains(@href,'fastshare.cz')]");
  5511. }
  5512. if (GM_getValue("Check_fastshare_dot_org_links", false))
  5513. {
  5514. addFileHost(
  5515. "[fF]ast[sS]hare\\.org\/download",
  5516. 'Download ">',
  5517. 'Diese Datei wurde wegen|wurde kein Dateiname',
  5518. 'optional--',
  5519. "//a[contains(@href,'fastshare.org/download') or contains(@href,'FastShare.org/download')]");
  5520. }
  5521. if (GM_getValue("Check_partage_dash_facile_dot_com_links", false))
  5522. {
  5523. addFileHost(
  5524. "partage-facile\.com\/\\w+",
  5525. 'class="title"><strong>|colspan="2"',
  5526. 'Page introuvable|class="alert-message',
  5527. 'optional--',
  5528. "//a[contains(@href,'partage-facile.com')]");
  5529. }
  5530. if (GM_getValue("Check_rapidgator_dot_net_links", false))
  5531. {
  5532. addFileHost(
  5533. "rapidgator\\.net\/file\/\\w+",
  5534. '/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',
  5535. 'Error 404|File not found|Error 500|Файл не найден|File not found|Select your plan',
  5536. 'optional--',
  5537. "//a[contains(@href,'rapidgator.net/file')]",
  5538. true
  5539. );
  5540. }
  5541. if (GM_getValue("Check_relink_dot_us_links", false))
  5542. {
  5543. addFileHost(
  5544. "relink\\.us\/(?:f\/\\w+|go\\.php\\?id=\\d+|view\\.php\\?id=\\d+)",
  5545. 'online_detail\\.png" alt="Status',
  5546. '(?:offline|partially)_detail\\.png" alt="Status|File deleted',
  5547. 'unknown_detail\\.png" alt="Status',
  5548. "//a[contains(@href,'relink.us/')]"
  5549. );
  5550. }
  5551. if (GM_getValue("Check_uploadstube_dot_de_links", false))
  5552. {
  5553. addFileHost(
  5554. "uploadstube\\.de\/download\\.php\\?file=\\d+",
  5555. 'div id="dl"',
  5556. 'Sie haben den Link falsch',
  5557. 'optional--',
  5558. "//a[contains(@href,'uploadstube.de/download.php?file=')]"
  5559. );
  5560. }
  5561. if (GM_getValue("Check_flyfiles_dot_net_links", false))
  5562. {
  5563. addFileHost(
  5564. "flyfiles\\.net\/\\w+",
  5565. 'download_button"|"Download file"',
  5566. 'File not found!|Файл не найден',
  5567. 'optional--',
  5568. "//a[contains(@href,'flyfiles.net/')]"
  5569. );
  5570. }
  5571. if (GM_getValue("Check_wikiupload_dot_com_links", false))
  5572. {
  5573. addFileHost(
  5574. "wikiupload\\.com\/\\w+",
  5575. 'download-button">',
  5576. 'Sorry, File not found',
  5577. 'optional--',
  5578. "//a[contains(@href,'wikiupload.com/')]"
  5579. );
  5580. }
  5581. if (GM_getValue("Check_hostuje_dot_net_links", false))
  5582. {
  5583. addFileHost(
  5584. "hostuje\\.net\/file\\.php\\?id=\\w+",
  5585. 'file\\.php">|Pobierz Plik',
  5586. 'Podany plik nie zosta',
  5587. 'optional--',
  5588. "//a[contains(@href,'hostuje.net/file')]"
  5589. );
  5590. }
  5591. if (GM_getValue("Check_gettyfile_dot_ru_links", false))
  5592. {
  5593. addFileHost(
  5594. "gettyfile\\.ru\/\\d+",
  5595. 'download\\.gif border',
  5596. '<center><font size="3">',
  5597. 'optional--',
  5598. "//a[contains(@href,'gettyfile.ru/')]"
  5599. );
  5600. }
  5601. if (GM_getValue("Check_tufiles_dot_ru_links", false))
  5602. {
  5603. addFileHost(
  5604. "(?:tufiles|turbob1t|failoobmenik|filesmail|firebit|dlbit|files\\.china\\-gsm|3aka4aem|file\\.piratski|mnogofiles|links-free|turbo-bit|turbosfiles)\\.\\w+\/\\w+",
  5605. 'download\\-file">',
  5606. 'col-1">\\s*<h1>',
  5607. 'optional--',
  5608. "//a[contains(@href,'tufiles.ru/') or contains(@href,'turbob1t.ru/') or contains(@href,'filesmail.ru/') or contains(@href,'failoobmenik.ru/')"+
  5609. " or contains(@href,'firebit.in/') or contains(@href,'dlbit.net/') or contains(@href,'files.china-gsm.ru/') or contains(@href,'3aka4aem.ru/')"+
  5610. " or contains(@href,'file.piratski.ru/') or contains(@href,'mnogofiles.com/') or contains(@href,'links-free.ru/')"+
  5611. " or contains(@href,'turbo-bit.ru/') or contains(@href,'turbosfiles.ru/')]"
  5612. );
  5613. }
  5614. if (GM_getValue("Check_data_dot_hu_links", false))
  5615. {
  5616. addFileHost(
  5617. "data\\.hu\/get\/\\d+\/",
  5618. 'download_box_button',
  5619. 'missing\\.php',
  5620. 'optional--',
  5621. "//a[contains(@href,'data.hu/get')]",
  5622. true
  5623. );
  5624. }
  5625. if (GM_getValue("Check_filesmelt_dot_com_links", false))
  5626. {
  5627. addFileHost(
  5628. "filesmelt\\.com\/dl\/\\w+",
  5629. '(Your download is ready|Download File)',
  5630. 'Sorry, but your',
  5631. 'optional--',
  5632. "//a[contains(@href,'filesmelt.com/dl')]"
  5633. );
  5634. }
  5635. if (GM_getValue("Check_indowebster_dot_com_links", false))
  5636. {
  5637. addFileHost(
  5638. "(?:files\\.)?indowebster\\.com\/download\/\\w+\/",
  5639. 'premiumBtn"',
  5640. 'errorMessage"',
  5641. 'optional--',
  5642. "//a[contains(@href,'indowebster.com/download')]"
  5643. );
  5644. }
  5645. if (GM_getValue("Check_superload_dot_cz_links", false))
  5646. {
  5647. addFileHost(
  5648. "superload\\.cz\/dl\/\\w+",
  5649. 'icon-download">',
  5650. 'soubor nebyl nalezen',
  5651. 'optional--',
  5652. "//a[contains(@href,'superload.cz/dl')]"
  5653. );
  5654. }
  5655. if (GM_getValue("Check_hulkfile_dot_eu_links", false))
  5656. {
  5657. addFileHost(
  5658. "(?:w\\.hulkfile\\.com|hulkfile\\.eu)\/\\w+",
  5659. 'op" value="download',
  5660. 'class="err">|width:500px;text-align:left;">',
  5661. 'optional--',
  5662. "//a[contains(@href,'hulkfile.')]"
  5663. );
  5664. }
  5665. if (GM_getValue("Check_easybytez_dot_com_links", false))
  5666. {
  5667. addFileHost(
  5668. "easybytez\\.com\/\\w+",
  5669. 'op" value="download',
  5670. 'stop_error\\.gif',
  5671. 'optional--',
  5672. "//a[contains(@href,'easybytez.com/')]"
  5673. );
  5674. }
  5675. if (GM_getValue("Check_filestore_dot_com_dot_ua_links", false))
  5676. {
  5677. addFileHost(
  5678. "filestore\\.com\\.ua\/\\?d=\\w+",
  5679. 'tdrow1>',
  5680. 'class=warn',
  5681. 'optional--',
  5682. "//a[contains(@href,'filestore.com.ua/?d=')]"
  5683. );
  5684. }
  5685. if (GM_getValue("Check_netkups_dot_com_links", false))
  5686. {
  5687. addFileHost(
  5688. "netkups\\.com\/\\?d=\\w+",
  5689. 'submit">Continue',
  5690. 'page">File not found|deleted due to inactivity',
  5691. 'optional--',
  5692. "//a[contains(@href,'netkups.com/?d=')]"
  5693. );
  5694. }
  5695. if (GM_getValue("Check_openfile_dot_ru_links", false))
  5696. {
  5697. addFileHost(
  5698. "openfile\\.ru\/(?:video\/|)\\d+",
  5699. 'videobox_left">',
  5700. 'blog_title">|not found on this server',
  5701. 'optional--',
  5702. "//a[contains(@href,'openfile.ru/')]"
  5703. );
  5704. }
  5705. if (GM_getValue("Check_extmatrix_dot_com_links", false))
  5706. {
  5707. addFileHost(
  5708. "extmatrix\\.com\/files\/\\w+",
  5709. 'div class="success"',
  5710. 'div class="error"',
  5711. 'optional--',
  5712. "//a[contains(@href,'extmatrix.com/files')]"
  5713. );
  5714. }
  5715. if (GM_getValue("Check_sendfiles_dot_nl_links", false))
  5716. {
  5717. addFileHost(
  5718. "sendfiles\\.nl\/download.aspx\\?ID=\\w+",
  5719. 'content_lnkDownload',
  5720. 'error\\.aspx\\?',
  5721. 'optional--',
  5722. "//a[contains(@href,'sendfiles.nl/download.aspx')]"
  5723. );
  5724. }
  5725. /* if (GM_getValue("Check_sockshare_dot_com_links", false))
  5726. {
  5727. addFileHost(
  5728. "sockshare\\.com\/file\/\\w+",
  5729. 'choose_speed">',
  5730. 'message t_0\'>',
  5731. 'optional--',
  5732. "//a[contains(@href,'sockshare.com/file')]"
  5733. );
  5734. } */
  5735. if (GM_getValue("Check_yourfilestore_dot_com_links", false))
  5736. {
  5737. addFileHost(
  5738. "yourfilestore\\.com\/download\/\\d+\/",
  5739. 'download_data">',
  5740. 'may have been deleted|<h1>Sorry!<\/h1>',
  5741. 'optional--',
  5742. "//a[contains(@href,'yourfilestore.com/download')]"
  5743. );
  5744. }
  5745. if (GM_getValue("Check_nekaka_dot_com_links", false))
  5746. {
  5747. addFileHost(
  5748. "nekaka\\.com\/d\/[\\w-]+",
  5749. 'downloadForm">',
  5750. 'invalid file link',
  5751. 'optional--',
  5752. "//a[contains(@href,'nekaka.com/d')]"
  5753. );
  5754. }
  5755. if (GM_getValue("Check_filebig_dot_net_links", false))
  5756. {
  5757. addFileHost(
  5758. "filebig\\.net\/files\/\\w+",
  5759. 'downloadFile">',
  5760. '<p>File not found<\/p>',
  5761. 'optional--',
  5762. "//a[contains(@href,'filebig.net/files')]"
  5763. );
  5764. }
  5765. if (GM_getValue("Check_gamefront_dot_com_links", false))
  5766. {
  5767. addFileHost(
  5768. "files\\.filefront\\.com\/\/;\\d+;;",
  5769. 'downloadLink">',
  5770. 'File not found, you',
  5771. 'optional--',
  5772. "//a[contains(@href,'files.filefront.com')]"
  5773. );
  5774.  
  5775. addFileHost(
  5776. "gamefront\\.com\/files\/\\d+",
  5777. 'downloadLink">',
  5778. 'File not found, you',
  5779. 'optional--',
  5780. "//a[contains(@href,'gamefront.com/files')]"
  5781. );
  5782. }
  5783. if (GM_getValue("Check_hyperfileshare_dot_com_links", false))
  5784. {
  5785. addFileHost(
  5786. "(?:download\\.|)hyperfileshare\\.com\/(?:download\\.php\\?code=|d\/)\\w+",
  5787. 'dnlLnk"',
  5788. 'already been deleted',
  5789. 'optional--',
  5790. "//a[contains(@href,'hyperfileshare.com/download') or contains(@href,'hyperfileshare.com/d')]"
  5791. );
  5792. }
  5793. if (GM_getValue("Check_hellupload_dot_com_links", false))
  5794. {
  5795. addFileHost(
  5796. "hellupload\\.com\/\\w+",
  5797. '<h3>Download File<br',
  5798. 'id="podstrona">|AVOID_IE_BUG',
  5799. 'optional--',
  5800. "//a[contains(@href,'hellupload.com/')]"
  5801. );
  5802. }
  5803. if (GM_getValue("Check_free_dash_uploading_dot_com_links", false))
  5804. {
  5805. addFileHost(
  5806. "free\\-uploading\\.com\/\\w+",
  5807. 'op" value="download',
  5808. 'class="err">|width:500px;text-align:left;">',
  5809. 'optional--',
  5810. "//a[contains(@href,'free-uploading.com/')]"
  5811. );
  5812. }
  5813. if (GM_getValue("Check_fileape_dot_com_links", false))
  5814. {
  5815. addFileHost(
  5816. "fileape\\.com\/download\\-",
  5817. 'button_dl\\.png',
  5818. 'does not exist\\.',
  5819. 'optional--',
  5820. "//a[contains(@href,'fileape.com/')]"
  5821. );
  5822. }
  5823. if (GM_getValue("Check_uppit_dot_com_links", false))
  5824. {
  5825. addFileHost(
  5826. "(?:uppit\\.com|up\\.ht)\/\\w+",
  5827. 'op" value="download',
  5828. 'class="err">|style="width:500px;text-align:left;"|fish-404\\.png"',
  5829. 'optional--',
  5830. "//a[contains(@href,'up.ht/') or contains(@href,'uppit.com/')]",
  5831. true
  5832. );
  5833. }
  5834. if (GM_getValue("Check_nosupload_dot_com_links", false))
  5835. {
  5836. addFileHost(
  5837. "nosupload\\.com\/(?:\\?d=)?\\w+",
  5838. 'op" value="download',
  5839. '>File Not Found<',
  5840. 'optional--',
  5841. "//a[contains(@href,'nosupload.com')]",
  5842. true
  5843. );
  5844. }
  5845. if (GM_getValue("Check_filesin_dot_com_links", false))
  5846. {
  5847. addFileHost(
  5848. "filesin\\.com\/\\w+\/download\\.html",
  5849. 'download_area">',
  5850. 'error_note">',
  5851. 'optional--',
  5852. "//a[contains(@href,'filesin.com/')]",
  5853. true
  5854. );
  5855. }
  5856. if (GM_getValue("Check_nowdownload_dot_eu_links", false))
  5857. {
  5858. addFileHost(
  5859. "nowdownload\\.eu\/dl\/\\w+",
  5860. 'alert-success"',
  5861. 'This file does not exist!',
  5862. 'The file is being transfered',
  5863. "//a[contains(@href,'nowdownload.eu/dl')]"
  5864. );
  5865. }
  5866. if (GM_getValue("Check_axifile_dot_com_links", false))
  5867. {
  5868. addFileHost(
  5869. "axifile\\.com(?:\/\w(2))?\/\\??\\w+",
  5870. 'Dbutton_big"',
  5871. 'download\\-error\\.php',
  5872. 'optional--',
  5873. "//a[contains(@href,'axifile.com/')]"
  5874. );
  5875. }
  5876. if (GM_getValue("Check_hulkshare_dot_com_links", false))
  5877. {
  5878. addFileHost(
  5879. "hulkshare\.com\/\\w+",
  5880. 'download\.sam\.png|This is a private file|id="filename',
  5881. 'File does not exist|fingerprint protected copyright',
  5882. 'optional--',
  5883. "//a[contains(@href,'hulkshare.com')]"
  5884. );
  5885. }
  5886. if (GM_getValue("Check_turbobit_dot_net_links", false)) //folders
  5887. {
  5888. addFileHost(
  5889. "turbobit\\.(?:net|pl)\/download\/folder\/\\d+",
  5890. 'col-1">\\s*<s',
  5891. 'col-1">\\s*<h',
  5892. 'optional--',
  5893. "//a[contains(@href,'turbobit.') and contains(@href,'download/folder')]"
  5894. );
  5895. }
  5896. if (GM_getValue("Check_hitfile_dot_net_links", false)) //folders
  5897. {
  5898. addFileHost(
  5899. "hitfile\\.net\/download\/folder\/\\d+",
  5900. 'content">\\s*<s',
  5901. 'content">\\s*<h',
  5902. 'optional--',
  5903. "//a[contains(@href,'hitfile.net/download/folder')]"
  5904. );
  5905. }
  5906. if (GM_getValue("Check_netload_dot_in_links", false)) //folders
  5907. {
  5908. addFileHost(
  5909. "netload\\.in\/folder\\.php\\?folder_id=\\w+",
  5910. 'images\/online\\.gif',
  5911. 'InPage_Error"',
  5912. 'optional--',
  5913. "//a[contains(@href,'netload.in/folder.php')]"
  5914. );
  5915. }
  5916. if (GM_getValue("Check_movshare_dot_net_links", false))
  5917. {
  5918. addFileHost(
  5919. "movshare\\.net\\/video\\/\\w+",
  5920. 'optional--"',
  5921. 'no longer exists',
  5922. 'optional--',
  5923. "//a[contains(@href,'movshare.net/video')]"
  5924. );
  5925. }
  5926. if (GM_getValue("Check_plunder_dot_com_links", false))
  5927. {
  5928. addFileHost(
  5929. "plunder\.com\/\\w+",
  5930. 'x\/download\\.gif',
  5931. '404 - File or directory not found.',
  5932. 'optional--',
  5933. "//a[contains(@href,'plunder.com')]"
  5934. );
  5935. }
  5936. if (GM_getValue("Check_mafiastorage_dot_com_links", false))
  5937. {
  5938. addFileHost(
  5939. "mafiastorage\\.com\/\\w+",
  5940. 'op" value="download',
  5941. 'class="err">|style="width:500px;text-align:left;"',
  5942. 'optional--',
  5943. "//a[contains(@href,'mafiastorage.com/')]"
  5944. );
  5945. }
  5946. if (GM_getValue("Check_uploadspace_dot_pl_links", false))
  5947. {
  5948. addFileHost(
  5949. "uploadspace\.pl\/plik\\w+",
  5950. 'Downloading .+? \\|',
  5951. 'Downloading a file',
  5952. 'optional--',
  5953. "//a[contains(@href,'uploadspace.pl/plik')]"
  5954. );
  5955. }
  5956. if (GM_getValue("Check_uploadingit_dot_com_links", false))
  5957. {
  5958. addFileHost(
  5959. "uploadingit\\.com\/file\/\\w+",
  5960. 'downloadTitle">',
  5961. 'deleteContent">',
  5962. 'optional--',
  5963. "//a[contains(@href,'uploadingit.com/file')]"
  5964. );
  5965. }
  5966. if (GM_getValue("Check_rghost_dot_net_links", false))
  5967. {
  5968. addFileHost(
  5969. "rghost\.(?:net|ru)\/(?:|private\/)\\d+",
  5970. 'download_link|btn large download"',
  5971. 'file is restricted|File is deleted|503 Service Unavailable',
  5972. 'File was deleted',
  5973. "//a[contains(@href,'rghost.')]"
  5974. );
  5975. }
  5976. if (GM_getValue("Check_xdisk_dot_cz_links", false))
  5977. {
  5978. addFileHost(
  5979. "xdisk\\.cz\/(?:..\/)?download\\.php\\?id=\\w+",
  5980. '">Staženo:\\s*<\/span>',
  5981. 'Soubor, který hledáte nenalezen',
  5982. 'optional--',
  5983. "//a[contains(@href,'xdisk.cz/')]"
  5984. );
  5985. }
  5986. if (GM_getValue("Check_expressleech_dot_com_links", false))
  5987. {
  5988. addFileHost(
  5989. "expressleech\.com\/\\w+",
  5990. 'src="/img/Download.gif"|var _gaq =',
  5991. 'var rr =|403 Forbidden',
  5992. 'optional--',
  5993. "//a[contains(@href,'expressleech.com')]");
  5994. }
  5995. if (GM_getValue("Check_2downloadz_dot_com_links", false))
  5996. {
  5997. addFileHost(
  5998. "2downloadz\.com\/\\w+",
  5999. 'color="#848484|src="images/Download.png"|color:#238DCA',
  6000. 'color="#006DCC|File error',
  6001. 'optional--',
  6002. "//a[contains(@href,'2downloadz.com')]");
  6003. }
  6004. if (GM_getValue("Check_mightyupload_dot_com_links", false))
  6005. {
  6006. addFileHost(
  6007. "mightyupload\.com\/\\w+",
  6008. 'background:#ccc;text-align|CONTENT="Download File"',
  6009. 'style="background:#eee|var rr =|File Not Found',
  6010. 'error-code">1010',
  6011. "//a[contains(@href,'mightyupload.com')]");
  6012. }
  6013. if (GM_getValue("Check_k2s_dot_cc_links", false))
  6014. {
  6015. addFileHost(
  6016. "k2s\.cc\/file\/\\w+",
  6017. 'Click here for slow download with|class="btn" id="yw0"|onclick="download',
  6018. 'Error 404|class="errorSummary">|this file is blocked or deleted|>404 Not Found<|To avoid damaged files|This file is no longer available',
  6019. 'please try later',
  6020. //'optional--',
  6021. "//a[contains(@href,'k2s.cc')]");
  6022. }
  6023. if (GM_getValue("Check_keep2share_dot_cc_links", false))
  6024. {
  6025. addFileHost(
  6026. "keep2share\.cc\/file\/\\w+",
  6027. 'Click here for slow download with|class="btn" id="yw0"|onclick="download',
  6028. 'Error 404|class="errorSummary">|this file is blocked or deleted|>404 Not Found<|To avoid damaged files|This file is no longer available',
  6029. 'please try later',
  6030. //'premium only',
  6031. "//a[contains(@href,'keep2share.cc')]");
  6032. }
  6033. if (GM_getValue("Check_keep2s_dot_cc_links", false))
  6034. {
  6035. addFileHost(
  6036. "keep2s\.cc\/file\/\\w+",
  6037. 'Click here for slow download with|class="btn" id="yw0"|onclick="download',
  6038. 'Error 404|class="errorSummary">|this file is blocked or deleted|>404 Not Found<|To avoid damaged files|This file is no longer available',
  6039. 'please try later',
  6040. //'optional--',
  6041. "//a[contains(@href,'keep2s.cc')]");
  6042. }
  6043. if (GM_getValue("Check_keep2share_dot_com_links", false))
  6044. {
  6045. addFileHost(
  6046. "keep2share\.com\/file\/\\w+",
  6047. 'Click here for slow download with|class="btn" id="yw0"|onclick="download',
  6048. 'Error 404|class="errorSummary">|this file is blocked or deleted|>404 Not Found<|To avoid damaged files|This file is no longer available',
  6049. 'please try later',
  6050. //'optional--',
  6051. "//a[contains(@href,'keep2share.com')]");
  6052. }
  6053. if (GM_getValue("Check_anysend_dot_com_links", false))
  6054. {
  6055. addFileHost(
  6056. "anysend\.com\/\\w+",
  6057. 'var openCalled=false;|content="noindex"',
  6058. '_trackPageview',
  6059. 'optional--',
  6060. "//a[contains(@href,'anysend.com')]");
  6061. }
  6062. if (GM_getValue("Check_datafile_dot_com_links", false))
  6063. {
  6064. addFileHost(
  6065. "datafile\.com\/\\w+",
  6066. 'var captchaPanel',
  6067. 'ErrorCode|ErrorCode 0: Invalid Link|btn-orange" href="#"', //class="error-msg"
  6068. 'You are downloading another file at this moment|You exceeded your free|Site Maintenance',
  6069. //'optional--',
  6070. "//a[contains(@href,'datafile.com')]",
  6071. true);
  6072. }
  6073. if (GM_getValue("Check_upstore_dot_net_links", false))
  6074. {
  6075. addFileHost(
  6076. "upstore\.net\/\\w+",
  6077. 'style="margin-top: 20px">|style="text-align:center; margin: 20px 0 100px;">',
  6078. 'File not found|onload="redirect|class="error">',
  6079. 'optional--',
  6080. "//a[contains(@href,'upstore.net')]");
  6081. }
  6082. if (GM_getValue("Check_upsto_dot_re_links", false))
  6083. {
  6084. addFileHost(
  6085. "upsto\.re\/\\w+",
  6086. 'style="margin-top: 20px">|style="text-align:center; margin: 20px 0 100px;">',
  6087. 'File not found|onload="redirect|class="error">',
  6088. 'optional--',
  6089. "//a[contains(@href,'upsto.re')]");
  6090. }
  6091. if (GM_getValue("Check_speedy_dot_sh_links", false))
  6092. {
  6093. addFileHost(
  6094. "speedy\.sh\/\\w+",
  6095. 'bgcolor=#eeeeee|class="addthis',
  6096. 'File not found|downloadfilenamenotfound>',
  6097. 'optional--',
  6098. "//a[contains(@href,'speedy.sh')]");
  6099. }
  6100. if (GM_getValue("Check_sanshare_dot_com_links", false))
  6101. {
  6102. addFileHost(
  6103. "sanshare\.com\/\\w+",
  6104. 'SANSHARE_TOPBANNER|offset-1"><h3><b>Download File',
  6105. 'offset-1"><b>File Not Found<|width:500px;text-align',
  6106. 'optional--',
  6107. "//a[contains(@href,'sanshare.com')]");
  6108. }
  6109. if (GM_getValue("Check_kingfiles_dot_net_links", false))
  6110. {
  6111. addFileHost(
  6112. "kingfiles\.net\/\\w+",
  6113. 'img/spriteBanner.png|If you are the owner of this file',
  6114. 'var rr =|"description" CONTENT="Download File ">|<div style="width:500px;text-align:left;">|The file was removed by administrator',
  6115. 'optional--',
  6116. "//a[contains(@href,'kingfiles.net')]");
  6117. }
  6118. if (GM_getValue("Check_uploadhero_dot_co_links", false))
  6119. {
  6120. addFileHost(
  6121. "uploadhero\\.co\/dl\/\\w+",
  6122. 'class="nom_de_fichier"|Unlimited downloads|Estimated download time|Lien de téléchargement"',
  6123. 'not available on our server|pas disponible sur nos serveurs|Le lien du fichier est incorrect',
  6124. 'optional--',
  6125. "//a[contains(@href,'uploadhero.co/dl')]"
  6126. );
  6127. }
  6128. if (GM_getValue("Check_secureupload_dot_eu_links", false))
  6129. {
  6130. addFileHost(
  6131. "secureupload\\.eu\/\\w+",
  6132. 'Downloading',
  6133. 'cannot be found|File Not Found|could not be found',
  6134. 'optional--',
  6135. "//a[contains(@href,'secureupload.eu')]"
  6136. );
  6137. }
  6138. if (GM_getValue("Check_ge_dot_tt_links", false))
  6139. {
  6140. addFileHost(
  6141. "ge\.tt\/\\w+",
  6142. 'downloads pic',
  6143. 'is NOT the same as',
  6144. 'optional--',
  6145. "//a[contains(@href,'ge.tt')]");
  6146. }
  6147. if (GM_getValue("Check_filefactory_dot_com_links", false))
  6148. {
  6149. addFileHost(
  6150. "filefactory\.com\/\\w+",
  6151. 'div id="file_holder"|download.css',
  6152. 'File Removed|Invalid Download Link|File Unavailable|Server Failed|Datei entfernt|This file has been removed|Invalid Download Link',
  6153. 'Server Maintenance|temporarily overloaded',
  6154. //'optional--',
  6155. "//a[contains(@href,'filefactory.com')]");
  6156. }
  6157. if (GM_getValue("Check_filesflash_dot_net_links", false))
  6158. {
  6159. addFileHost(
  6160. "filesflash\.net\/\\w+",
  6161. 'align:right">Filename:',
  6162. 'class="msg">',
  6163. 'optional--',
  6164. "//a[contains(@href,'filesflash.net')]");
  6165. }
  6166. if (GM_getValue("Check_rapidgator_dot_net_links", false)) //folders
  6167. {
  6168. addFileHost(
  6169. "rapidgator\\.net\/folder\/\\w+",
  6170. 'href="/folder/',
  6171. 'class="empty|Folder not found|Carpeta no encontrada|Dossier non trouvé|Папка не найдена',
  6172. 'optional--',
  6173. "//a[contains(@href,'rapidgator.net/folder')]",
  6174. true
  6175. );
  6176. }
  6177. if (GM_getValue("Check_salefiles_dot_com_links", false))
  6178. {
  6179. addFileHost(
  6180. "salefiles\.com\/\\w+",
  6181. '<Title>Download|CONTENT="Download',
  6182. 'font:15px Arial|background:#eee;',
  6183. 'optional--',
  6184. "//a[contains(@href,'salefiles.com')]");
  6185. }
  6186. if (GM_getValue("Check_megairon_dot_net_links", false))
  6187. {
  6188. addFileHost(
  6189. "megairon\.net\/\\w+",
  6190. 'border: 5px #ffeb90 solid;',
  6191. 'CONTENT="Download File ">|var rr =',
  6192. 'optional--',
  6193. "//a[contains(@href,'megairon.net')]");
  6194. }
  6195. if (GM_getValue("Check_datoid_dot_cz_links", false))
  6196. {
  6197. addFileHost(
  6198. "datoid\.cz\/\\w+",
  6199. 'btn-download|class="icon-download-large"',
  6200. 'Stránka nenalezena|error-404|Soubor byl zablokován',
  6201. 'optional--',
  6202. "//a[contains(@href,'datoid.cz')]");
  6203. }
  6204. if (GM_getValue("Check_stiahni_dot_si_links", false))
  6205. {
  6206. addFileHost(
  6207. "stiahni\.si\/\\w+",
  6208. 'report_icon.png"|slow-download-button',
  6209. 'none.png|deleted|<h2>Error 500</h2>',
  6210. 'optional--',
  6211. "//a[contains(@href,'stiahni.si')]");
  6212. }
  6213. if (GM_getValue("Check_cloudstor_dot_es_links", false))
  6214. {
  6215. addFileHost(
  6216. "cloudstor\.es\/\\w+",
  6217. '"btn_download"',
  6218. '404: Page Not Found',
  6219. 'optional--',
  6220. "//a[contains(@href,'cloudstor.es')]");
  6221. }
  6222. if (GM_getValue("Check_streamfile_dot_com_links", false))
  6223. {
  6224. addFileHost(
  6225. "streamfile\.com\/\\w+",
  6226. 'class="btn',
  6227. 'class="green-btn',
  6228. 'optional--',
  6229. "//a[contains(@href,'streamfile.com')]");
  6230. }
  6231. if (GM_getValue("Check_eyesfile_dot_ca_links", false))
  6232. {
  6233. addFileHost(
  6234. "eyesfile\.ca\/\\w+",
  6235. 'value="Get Link',
  6236. 'var rr =',
  6237. 'optional--',
  6238. "//a[contains(@href,'eyesfile.ca')]");
  6239. }
  6240. if (GM_getValue("Check_filemoney_dot_com_links", false))
  6241. {
  6242. addFileHost(
  6243. "filemoney\.com\/\\w+",
  6244. 'og:title',
  6245. '404 Not Found|<Title>FileMoney|File Not Found',
  6246. 'error-code">1010',
  6247. "//a[contains(@href,'filemoney.com')]");
  6248. }
  6249. if (GM_getValue("Check_uploadboy_dot_com_links", false))
  6250. {
  6251. addFileHost(
  6252. "uploadboy\.com\/\\w+",
  6253. 'width="740">|method_free',
  6254. 'var rr =|background:#ffffff|not be found|file was removed',
  6255. 'optional--',
  6256. "//a[contains(@href,'uploadboy.com')]");
  6257. }
  6258. if (GM_getValue("Check_speedshare_dot_eu_links", false))
  6259. {
  6260. addFileHost(
  6261. "speedshare\.eu\/\\w+",
  6262. 'favicon.png|color:#3d87c0|cross.png"',
  6263. 'var rr =|File Not Found|style="background:#eee',
  6264. 'optional--',
  6265. "//a[contains(@href,'speedshare.eu')]");
  6266. }
  6267. if (GM_getValue("Check_unlimitzone_dot_com_links", false))
  6268. {
  6269. addFileHost(
  6270. "unlimitzone\.com\/\\w+",
  6271. 'content="1" name="',
  6272. 'var rr =|File Not Found',
  6273. 'optional--',
  6274. "//a[contains(@href,'unlimitzone.com')]");
  6275. }
  6276. if (GM_getValue("Check_rioupload_dot_com_links", false))
  6277. {
  6278. addFileHost(
  6279. "rioupload\.com\/\\w+",
  6280. 'sell.jpg',
  6281. 'var rr =',
  6282. 'optional--',
  6283. "//a[contains(@href,'rioupload.com')]");
  6284. }
  6285. if (GM_getValue("Check_rg_dot_to_links", false))
  6286. {
  6287. addFileHost(
  6288. "rg\.to\/\\w+",
  6289. '/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',
  6290. 'Error 404|File not found|Select your plan',
  6291. 'optional--',
  6292. //'optional--',
  6293. "//a[contains(@href,'rg.to')]");
  6294. }
  6295. if (GM_getValue("Check_jumbofiles_dot_org_links", false))
  6296. {
  6297. addFileHost(
  6298. "jumbofiles\.org\/\\w+",
  6299. 'H71C5.png|class="downloadtitle">',
  6300. 'var swfu|ViewSourceBIN.png',
  6301. 'optional--',
  6302. "//a[contains(@href,'jumbofiles.org')]");
  6303. }
  6304. if (GM_getValue("Check_fshare_dot_vn_links", false))
  6305. {
  6306. addFileHost(
  6307. "fshare\\.vn\/file\/\\w+",
  6308. 'action="#download"|left; width: 330px;">|class="bt_down"',
  6309. 'không tồn tại|class="color_red m_t_50"',
  6310. 'optional--',
  6311. "//a[contains(@href,'fshare.vn/file')]",
  6312. true
  6313. );
  6314. }
  6315. if (GM_getValue("Check_spaceforfiles_dot_com_links", false))
  6316. {
  6317. addFileHost(
  6318. "spaceforfiles\.com\/\\w+",
  6319. 'btn_slowspeed_b.jpg|value="download1|class="btn_blue',
  6320. 'var rr =|AVOID_IE_BUG',
  6321. 'optional--',
  6322. "//a[contains(@href,'spaceforfiles.com')]");
  6323. }
  6324. if (GM_getValue("Check_google_dot_com_links", false))
  6325. {
  6326. addFileHost(
  6327. "google\\.com\/file\/\\w+",
  6328. 'content="!">|color:#2d2d2d',
  6329. '12pt; font-weight:|class="errorMessage"|F0F6FF',
  6330. 'optional--',
  6331. "//a[contains(@href,'google.com/file')]",
  6332. true
  6333. );
  6334. }
  6335. if (GM_getValue("Check_google_dot_com_links", false))
  6336. {
  6337. addFileHost(
  6338. "docs.google.com\/\\w+",
  6339. 'content="!">|color:#2d2d2d',
  6340. '12pt; font-weight:|class="errorMessage"|F0F6FF|Error 404',
  6341. 'optional--',
  6342. "//a[contains(@href,'docs.google.com')]",
  6343. true
  6344. );
  6345. }
  6346. if (GM_getValue("Check_google_dot_com_links", false))
  6347. {
  6348. addFileHost(
  6349. "drive.google.com\/\\w+",
  6350. 'content="!">|color:#2d2d2d|id="uc-download-link',
  6351. '12pt; font-weight:|class="errorMessage"|F0F6FF|Error 404',
  6352. 'optional--',
  6353. "//a[contains(@href,'drive.google.com')]",
  6354. true
  6355. );
  6356. }
  6357. if (GM_getValue("Check_up_dot_media1fire_dot_com_links", false))
  6358. {
  6359. addFileHost(
  6360. "up.media1fire\.com\/\\w+",
  6361. 'class="addthis_|value="download',
  6362. 'var rr =|AVOID_IE_BUG|<div style="width:500px;text-align:left;">',
  6363. 'optional--',
  6364. "//a[contains(@href,'up.media1fire.com')]");
  6365. }
  6366. if (GM_getValue("Check_depfile_dot_com_links", false))
  6367. {
  6368. addFileHost(
  6369. "depfile\.com\/\\w+",
  6370. 'logo_0.png|downloads.gif"|verifycode',
  6371. 'border-color: #5D729B;|bgcolor="#778AAF"',
  6372. 'optional--',
  6373. "//a[contains(@href,'depfile.com')]");
  6374. }
  6375. if (GM_getValue("Check_go4up_dot_com_links", false))
  6376. {
  6377. addFileHost(
  6378. "go4up\.com\/\\w+",
  6379. 'style="width: 100%;">|value="Access|download_line',
  6380. '<title>GO4UP|dmca',
  6381. 'optional--',
  6382. "//a[contains(@href,'go4up.com')]");
  6383. }
  6384. if (GM_getValue("Check_redbunker_dot_net_links", false))
  6385. {
  6386. addFileHost(
  6387. "redbunker\.net\/\\w+",
  6388. 'dload.png|rowspan="3">|yep.gif',
  6389. 'CONTENT="RedBunker|#D3D3D3;|color:#d33|AVOID_IE_BUG',
  6390. 'optional--',
  6391. "//a[contains(@href,'redbunker.net')]");
  6392. }
  6393. if (GM_getValue("Check_divxpress_dot_com_links", false))
  6394. {
  6395. addFileHost(
  6396. "divxpress\.com\/\\w+",
  6397. 'btn_download|logo.png"',
  6398. 'AVOID_IE_BUG|var rr =',
  6399. 'optional--',
  6400. "//a[contains(@href,'divxpress.com')]");
  6401. }
  6402. if (GM_getValue("Check_anafile_dot_com_links", false))
  6403. {
  6404. addFileHost(
  6405. "anafile\.com\/\\w+",
  6406. 'width="881" valign="top|color="#800080"',
  6407. 'style="width:500px;text-align:left;">|file was deleted|AVOID_IE_BUG',
  6408. 'optional--',
  6409. "//a[contains(@href,'anafile.com')]");
  6410. }
  6411. if (GM_getValue("Check_uploadable_dot_ch_links", false))
  6412. {
  6413. addFileHost(
  6414. "uploadable\\.ch\/file\/\\w+",
  6415. 'captcha.js"|payment.js"|class="btn_download"',
  6416. '<div class="icon_err">|<div class="errorBox">|"error_arrow">',
  6417. 'optional--',
  6418. "//a[contains(@href,'uploadable.ch/file')]",
  6419. true
  6420. );
  6421. }
  6422. if (GM_getValue("Check_arabloads_dot_com_links", false))
  6423. {
  6424. addFileHost(
  6425. "arabloads\.com\/\\w+",
  6426. 'name="method_free"|name="method_premium"',
  6427. 'background:#eee;font:15px Arial;">|AVOID_IE_BUG|Verdana;padding:3px;">Error',
  6428. 'optional--',
  6429. "//a[contains(@href,'arabloads.com')]");
  6430. }
  6431. if (GM_getValue("Check_sharerepo_dot_com_links", false))
  6432. {
  6433. addFileHost(
  6434. "sharerepo\.com\/\\w+",
  6435. 'name="method_free"',
  6436. 'var public_on=|The file you were looking for could not be found',
  6437. 'optional--',
  6438. "//a[contains(@href,'sharerepo.com')]");
  6439. }
  6440. if (GM_getValue("Check_sfshare_dot_se_links", false))
  6441. {
  6442. addFileHost(
  6443. "sfshare\.se\/\\w+",
  6444. 'id="btn_download"|class="btn btn-primary txt-bold" value="',
  6445. 'AVOID_IE_BUG|var rr =|style="width:500px;text-align:left;">|Reason for deletion|The file was removed',
  6446. 'optional--',
  6447. "//a[contains(@href,'sfshare.se')]");
  6448. }
  6449. if (GM_getValue("Check_files_dot_fm_links", false))
  6450. {
  6451. addFileHost(
  6452. "files\.fm\/\\w+",
  6453. 'dl.png"|background-color: transparent',
  6454. 'margin: 40px 40px|background: none;',
  6455. 'optional--',
  6456. "//a[contains(@href,'files.fm')]");
  6457. }
  6458. if (GM_getValue("Check_koofile_dot_com_links", false))
  6459. {
  6460. addFileHost(
  6461. "koofile\.com\/\\w+",
  6462. 'value="download1">|name="method_free"',
  6463. 'class="overview-content c_text-box ">|style="padding-top:3px;">|class="rt1 c">',
  6464. 'optional--',
  6465. "//a[contains(@href,'koofile.com')]");
  6466. }
  6467. if (GM_getValue("Check_vidxden_dot_com_links", false))
  6468. {
  6469. addFileHost(
  6470. "vidxden\\.com\/\\w+",
  6471. 'Continue to Video"',
  6472. 'No such file',
  6473. 'optional--',
  6474. "//a[contains(@href,'vidxden.com')]"
  6475. );
  6476. }
  6477. if (GM_getValue("Check_muchshare_dot_net_links", false))
  6478. {
  6479. addFileHost(
  6480. "muchshare\\.net\/\\w+",
  6481. 'id="btn_download"',
  6482. 'File Not Found|width: 500px; text-align: left;',
  6483. 'optional--',
  6484. "//a[contains(@href,'muchshare.net')]"
  6485. );
  6486. }
  6487. if (GM_getValue("Check_daten_dash_hoster_dot_de_links", false))
  6488. {
  6489. addFileHost(
  6490. "(?:daten-hoster\\.de\/file\/\\w+|filehosting\\.org\/file\/\\w+|xtraupload\\.de\/\\?d=\\w+)",
  6491. 'Details zur Datei|Details page',
  6492. 'Jetzt hochladen|upload now',
  6493. 'optional--',
  6494. "//a[contains(@href,'daten-hoster.de/file') or contains(@href,'filehosting.org/file') or contains(@href,'xtraupload.de')]"
  6495. );
  6496. }
  6497. if (GM_getValue("Check_upload_dash_il_dot_net_links", false))
  6498. {
  6499. addFileHost(
  6500. "(?:upload-il|przeslij)\.net\/(?:en|he|ar|ru|)\/?\\w+",
  6501. 'downloadbtn"',
  6502. 'DL_FileNotFound',
  6503. 'optional--',
  6504. "//a[contains(@href,'upload-il.net') or contains(@href,'przeslij.net')]"
  6505. );
  6506. }
  6507. if (GM_getValue("Check_fileflyer_dot_com_links", false))
  6508. {
  6509. addFileHost(
  6510. "fileflyer\.com\/view\/\\w+",
  6511. '(?:dwl|locked)btn"',
  6512. 'error.gif"|link">Removed|removedlink">',
  6513. 'optional--',
  6514. "//a[contains(@href,'fileflyer.com')]"
  6515. );
  6516. }
  6517. if (GM_getValue("Check_filestore_dot_to_links", false))
  6518. {
  6519. addFileHost(
  6520. "filestore\.to\/\\?d=\\w+",
  6521. '"downloading"',
  6522. 'Datei wurde nicht gefunden',
  6523. 'optional--',
  6524. "//a[contains(@href,'filestore.to')]"
  6525. );
  6526. }
  6527. if (GM_getValue("Check_easy_dash_share_dot_com_links", false))
  6528. {
  6529. addFileHost(
  6530. "(?:w\\d*\.|)(?:crocko|easy-share)\\.com\/.",
  6531. 'fz24">Download|class="pl15">',
  6532. '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',
  6533. 'optional--',
  6534. "//a[contains(@href,'easy-share.com') or contains(@href,'crocko.com')]"
  6535. );
  6536. }
  6537. if (GM_getValue("Check_burnupload_dot_com_links", false))
  6538. {
  6539. addFileHost(
  6540. "burnupload\\.(?:com\/\\?d=|ihiphop\\.com\/download\\.php\\?id=)\\w+",
  6541. 'File size:',
  6542. 'file is not found',
  6543. 'optional--',
  6544. "//a[contains(@href,'burnupload.com') or contains(@href,'burnupload.ihiphop.com')]"
  6545. );
  6546. }
  6547. if (GM_getValue("Check_datei_dot_to_links", false))
  6548. {
  6549. addFileHost(
  6550. "datei\\.to\/\\??\\w+",
  6551. 'icon_downloaden\\.png|>Download starten<',
  6552. 'Datei wurde nicht gefunden|icon_deleted.png',
  6553. 'optional--',
  6554. "//a[contains(@href,'datei.to')]"
  6555. );
  6556. }
  6557. if (GM_getValue("Check_yunfile_dot_com_links", false))
  6558. {
  6559. addFileHost(
  6560. "(?:yunfile|filemarkets)\\.com\/\\w+",
  6561. '<body class="body" id="body">|value="Slow Download"',
  6562. '<body class="body" >',
  6563. 'optional--',
  6564. "//a[contains(@href,'yunfile.com') or contains(@href,'filemarkets.com')]"
  6565. );
  6566. }
  6567. /* if (GM_getValue("Check_putlocker_dot_com_links", false))
  6568. {
  6569. addFileHost(
  6570. "putlocker\\.com\/file\/\\w{16}",
  6571. 'as Free User|<a class="continue"|Continue to file|#feedback_btn|application file_standalone',
  6572. 'Welcome to PutLocker|<div class="sad_face_image">|404:',
  6573. 'undergoing scheduled maintenance',
  6574. "//a[contains(@href,'putlocker.com/file')]"
  6575. );
  6576. } */
  6577. if (GM_getValue("Check_uploadhero_dot_com_links", false))
  6578. {
  6579. addFileHost(
  6580. "uploadhero\\.com\/dl\/\\w+",
  6581. 'content-dl">',
  6582. 'men_file_lost\\.jpg"',
  6583. 'optional--',
  6584. "//a[contains(@href,'uploadhero.com/dl')]"
  6585. );
  6586. }
  6587. if (GM_getValue("Check_unibytes_dot_com_links", false))
  6588. {
  6589. addFileHost(
  6590. "unibytes\\.com\/[\\w\.]+",
  6591. 'trying to download|пытаетесь загрузить файл|tes entrain de tlcharger',
  6592. 'File not found|Файл не найден|',
  6593. 'optional--',
  6594. "//a[contains(@href,'unibytes.com')]"
  6595. );
  6596. }
  6597. if (GM_getValue("Check_hellshare_dot_com_links", false)) //very old type of links
  6598. {
  6599. addFileHost(
  6600. "www\\.hellshare\\.com\/\\d+",
  6601. 'tab\\-details"',
  6602. 'list-purp-2"|not found on this server',
  6603. 'optional--',
  6604. "//a[contains(@href,'www.hellshare.com')]"
  6605. );
  6606. }
  6607. if (GM_getValue("Check_quickshare_dot_cz_links", false)) //folders
  6608. {
  6609. addFileHost(
  6610. "quickshare\\.cz\/slozka-\\d+",
  6611. 'Počet souborů: <strong>[1-9]',
  6612. 'Počet souborů: <strong>0|Chyba! Taková složka neexistuje',
  6613. 'optional--',
  6614. "//a[contains(@href,'quickshare.cz/slozka')]"
  6615. );
  6616. }
  6617. if (GM_getValue("Check_filefactory_dot_com_links", false)) //folders
  6618. {
  6619. addFileHost(
  6620. "filefactory\\.com\/f\/\\w+",
  6621. 'folderFileList">',
  6622. 'table class="items"|Pointer" class="red">',
  6623. 'optional--',
  6624. "//a[contains(@href,'filefactory.com/f/')]"
  6625. );
  6626. }
  6627. if (GM_getValue("Check_netload_dot_in_links", false)) //folders
  6628. {
  6629. addFileHost(
  6630. "netfolder\\.in\/\\w+",
  6631. 'list" value="http',
  6632. 'InPage_Error">|list" value=""',
  6633. 'optional--',
  6634. "//a[contains(@href,'netfolder.in')]"
  6635. );
  6636. }
  6637. if (GM_getValue("Check_load_dot_to_links", false))
  6638. {
  6639. addFileHost(
  6640. '(?:www\\.|\\/)load\\.to\\/(?:\\w{10}\\/.|\\?d=\\w{10})',
  6641. '"download_table_left">Size',
  6642. 'Can\'t find file',
  6643. 'optional--',
  6644. "//a[contains(@href,'/load.to/') or contains(@href,'www.load.to/')]"
  6645. );
  6646. }
  6647. if (GM_getValue("Check_freakshare_dot_net_links", false))
  6648. {
  6649. addFileHost(
  6650. "freakshare\\.(?:net|com)\/files\/",
  6651. 'box_heading',
  6652. '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|الملف المطلوب غير موجود',
  6653. 'Your Traffic is used up for today',
  6654. "//a[(contains(@href,'freakshare.net') or contains(@href,'freakshare.com')) and contains(@href,'files')]",
  6655. true
  6656. );
  6657. //folders
  6658. addFileHost(
  6659. "freakshare\\.(?:net|com)\/folder\/",
  6660. 'Files: [1-9]',
  6661. 'Files: 0',
  6662. 'optional--',
  6663. "//a[(contains(@href,'freakshare.net') or contains(@href,'freakshare.com')) and contains(@href,'folder')]",
  6664. true
  6665. );
  6666. }
  6667. if (GM_getValue("Check_divshare_dot_com_links", false))
  6668. {
  6669. addFileHost(
  6670. "divshare\\.com\/download\/",
  6671. 'download_new\.png',
  6672. 'have been removed',
  6673. 'optional--',
  6674. "//a[contains(@href,'divshare.com')]"
  6675. );
  6676. }
  6677. if (GM_getValue("Check_euroshare_dot_eu_links", false))
  6678. {
  6679. addFileHost(
  6680. "euroshare\\.(?:eu|pl|sk|cz|hu)\/file\/\\d+",
  6681. 'nazev-souboru">',
  6682. '<div id="obsah">\\s*<h1>',
  6683. 'optional--',
  6684. "//a[contains(@href,'euroshare.eu/file')]"
  6685. );
  6686. }
  6687. if (GM_getValue("Check_files_dot_mail_dot_ru_links", false))
  6688. {
  6689. addFileHost(
  6690. 'files\\.mail\\.ru/(?:\\w*)',
  6691. 'fileList',
  6692. 'errorMessage',
  6693. 'optional--',
  6694. "//a[contains(@href,'files.mail.ru')]"
  6695. );
  6696. }
  6697. if (GM_getValue("Check_megashares_dot_com_links", false))
  6698. {
  6699. addFileHost(
  6700. "(?:d\\d+\.|)megashares\.com\/(?:dl|index\.php\\?d|\\?d\\d+=\\w+)",
  6701. 'Filesize',
  6702. 'Invalid|deleted|Could not download file',
  6703. 'slots|scheduled maintenance',
  6704. "//a[contains(@href,'megashares.com/')]"
  6705. );
  6706. }
  6707. if (GM_getValue("Check_narod_dot_ru_links", false))
  6708. {
  6709. addFileHost(
  6710. 'narod\\.(?:yandex\\.|)ru\/disk\/',
  6711. 'b-submit',
  6712. 'b-download-virus-note|headCode">404<',
  6713. 'Внутренняя ошибка сервиса',
  6714. "//a[contains(@href,'narod.ru') or contains(@href,'narod.yandex.ru')]"
  6715. );
  6716. }
  6717. if (GM_getValue("Check_rayfile_dot_com_links", false))
  6718. {
  6719. addFileHost(
  6720. "rayfile\\.com\/",
  6721. 'FILEtitleTXT',
  6722. 'blueRow',
  6723. 'optional--',
  6724. "//a[contains(@href,'rayfile.com/') and contains(@href,'files')]"
  6725. );
  6726. }
  6727. if (GM_getValue("Check_filesmonster_dot_com_links", false))
  6728. {
  6729. addFileHost(
  6730. "filesmonster\\.com\/download\\.php\\?id=\\w+",
  6731. 'button_green_body"',
  6732. 'error">',
  6733. 'optional--',
  6734. "//a[contains(@href,'filesmonster.com/download')]"
  6735. );
  6736. }
  6737. if (GM_getValue("Check_usaupload_dot_net_links", false))
  6738. {
  6739. addFileHost(
  6740. 'usaupload\\.net\/d\/(?:\w*)',
  6741. '<strong>File size:</strong>',
  6742. 'is not available',
  6743. 'optional--',
  6744. "//a[contains(@href,'usaupload.net/d/')]"
  6745. );
  6746. }
  6747. if (GM_getValue("Check_sendspace_dot_com_links", false))
  6748. {
  6749. addFileHost(
  6750. 'sendspace\\.com\/file\/\\w+',
  6751. 'file_description',
  6752. 'msg error"',
  6753. 'optional--',
  6754. "//a[contains(@href,'sendspace.com/file')]"
  6755. );
  6756. }
  6757. if (GM_getValue("Check_sendspace_dot_pl_links", false))
  6758. {
  6759. addFileHost(
  6760. 'sendspace\\.pl\/file\/\\w+',
  6761. 'download_file"',
  6762. 'Podany plik nie',
  6763. 'optional--',
  6764. "//a[contains(@href,'sendspace.pl/file')]"
  6765. );
  6766. }
  6767. if (GM_getValue("Check_uploading_dot_com_links", false))
  6768. {
  6769. addFileHost(
  6770. 'uploading\\.com\/(?:files\/)?\\w+',
  6771. 'free_method">',
  6772. 'file_error">|error_404">|file not found|OOPS! Looks like file not found',
  6773. 'optional--',
  6774. "//a[contains(@href,'uploading.com')]"
  6775. );
  6776. }
  6777. if (GM_getValue("Check_gigasize_dot_com_links", false))
  6778. {
  6779. addFileHost(
  6780. 'gigasize\\.com\/get\\.php(?:\/\\d+|\\?d=\\w+)',
  6781. 'fileId"',
  6782. 'error">',
  6783. 'optional--',
  6784. "//a[contains(@href,'gigasize.com/get')]"
  6785. );
  6786. }
  6787. if (GM_getValue("Check_good_dot_com_links", false))
  6788. {
  6789. addFileHost(
  6790. 'good\\.net\/(?:_|dl)',
  6791. 'Free Download',
  6792. 'Not Found',
  6793. 'Forbidden',
  6794. "//a[contains(@href,'good.net')]"
  6795. );
  6796. }
  6797. if (GM_getValue("Check_2shared_dot_com_links", false))
  6798. {
  6799. addFileHost(
  6800. '2shared\\.com\/(?:file|video|document|audio)\/\\w*',
  6801. 'File size',
  6802. 'File not found|is not valid|/images/important.gif',
  6803. 'optional--',
  6804. "//a[contains(@href,'2shared.com/file/') or contains (@href,'2shared.com/audio/') or contains (@href,'2shared.com/document/') or contains (@href,'2shared.com/video/')]"
  6805. );
  6806. }
  6807. if (GM_getValue("Check_turboupload_dot_com_links", false))
  6808. {
  6809. addFileHost(
  6810. 'turboupload\\.com\/\\w*',
  6811. 'You have requested',
  6812. 'File Not Found',
  6813. 'optional--',
  6814. "//a[contains(@href,'turboupload.com')]"
  6815. );
  6816. }
  6817. if (GM_getValue("Check_gigapeta_dot_com_links", false))
  6818. {
  6819. addFileHost(
  6820. 'gigapeta\\.com\/dl\/',
  6821. 'Download file|Скачать файл| Herunterzuladen|Scarica il file|Cargar el fichero|Charger le fichier',
  6822. '404|page_error',
  6823. 'optional--',
  6824. "//a[contains(@href,'gigapeta.com/dl')]"
  6825. );
  6826. }
  6827. if (GM_getValue("Check_veehd_dot_com_links", false))
  6828. {
  6829. addFileHost(
  6830. 'veehd\.com\/video\/.*?',
  6831. 'No sound|Download video',
  6832. 'Featured Videos',
  6833. 'optional--',
  6834. "//a[contains(@href,'veehd.com') and contains(@href,'video')]"
  6835. );
  6836. }
  6837. if (GM_getValue("Check_vip_dash_file_dot_com_links", false))
  6838. {
  6839. addFileHost(
  6840. '(?:u\\d+\\.)?vip-file\\.com\/download.*?\/(?:.*?)\/(?:.*?)\\.html',
  6841. 'fast_download_form">|submit_sms_download',
  6842. '<p style="text-align:center">',
  6843. 'optional--',
  6844. "//a[contains(@href,'vip-file.com/download')]"
  6845. );
  6846. }
  6847. if (GM_getValue("Check_letitbit_dot_net_links", false))
  6848. {
  6849. addFileHost(
  6850. '(?:u\\d+\\.)?letitbit\\.net\/download\/\\w+',
  6851. 'download\\-pnl ',
  6852. 'color:#000">|Запрашиваемый файл не найден|страница не существует|File not found|',
  6853. 'optional--',
  6854. "//a[contains(@href,'letitbit.net/download')]"
  6855. );
  6856. }
  6857. if (GM_getValue("Check_ifolder_dot_ru_links", false))
  6858. {
  6859. addFileHost(
  6860. 'ifolder\.ru\/\\d+',
  6861. 'file-info',
  6862. 'ui-state-error',
  6863. 'optional--',
  6864. "//a[contains(@href,'ifolder.ru')]"
  6865. );
  6866. }
  6867. if (GM_getValue("Check_fileswap_dot_com_links", false))
  6868. {
  6869. addFileHost(
  6870. 'fileswap\\.com\/dl\/\\w+',
  6871. 'bttnDownloadLink"',
  6872. 'rounded_block_error"',
  6873. 'is temporary unavailable|disponible en estos momentos|vorläufig unerreichbar|Файл временно недоступен',
  6874. "//a[contains(@href,'fileswap.com/dl')]"
  6875. );
  6876. }
  6877. if (GM_getValue("Check_filecloud_dot_io_links", false))
  6878. {
  6879. addFileHost(
  6880. '(?:s\\d+\\.)?filecloud\\.io\/\\w+',
  6881. 'var __error = 0',
  6882. 'FILES__DOESNT_EXIST|removed or did not exist',
  6883. 'optional--',
  6884. "//a[contains(@href,'filecloud.io/')]"
  6885. );
  6886. addFileHost(
  6887. 'ifile\\.it\/\\w+',
  6888. 'var __error = 0',
  6889. 'FILES__DOESNT_EXIST',
  6890. 'optional--',
  6891. "//a[contains(@href,'ifile.it/')]"
  6892. );
  6893. }
  6894. if (GM_getValue("Check_solidfiles_dot_com_links", false))
  6895. {
  6896. addFileHost(
  6897. 'solidfiles\\.com\/d\/\\w+',
  6898. 'id="download"|content="Download',
  6899. '>Not found<|<h2>404</h2>|Page not found|<h1>404</h1>|File not available|no longer available',
  6900. 'optional--',
  6901. "//a[contains(@href,'solidfiles.com/d')]"
  6902. );
  6903. }
  6904. if (GM_getValue("Check_shareflare_dot_net_links", false))
  6905. {
  6906. addFileHost(
  6907. "(?:.\\.|)shareflare\\.net",
  6908. 'download-pnl|<div class="premium-block">',
  6909. 'File not found|Поиск зеркала на фа|<div id="captcha"',
  6910. 'optional--',
  6911. "//a[contains(@href,'shareflare.net') and contains(@href,'download')]"
  6912. );
  6913. }
  6914. if (GM_getValue("Check_u18116681_dot_shareflare_dot_net_links", false))
  6915. {
  6916. addFileHost(
  6917. "u18116681.shareflare\\.net",
  6918. 'download-pnl|<div class="premium-block">',
  6919. 'File not found|Поиск зеркала на фа|<div id="captcha"',
  6920. 'optional--',
  6921. "//a[contains(@href,'shareflare.net') and contains(@href,'download')]"
  6922. );
  6923. }
  6924. if (GM_getValue("Check_uloz_dot_to_links", false))
  6925. {
  6926. addFileHost(
  6927. "(?:uloz|ulozto|bagruj|zachowajto)\\.(to|cz|sk|net|pl)\/\\w",
  6928. 'fileDownload">|fileSize">',
  6929. 'grayButton deletedFile">|Stránka nenalezena|upload-button"|jako soukromý.',
  6930. 'passwordProtectedFile">|frmaskAgeForm-disagree',
  6931. "//a[contains(@href,'bagruj.cz') or contains(@href,'uloz.to') or contains(@href,'ulozto.') or contains(@href,'zachowajto.pl')]",
  6932. true
  6933. );
  6934. }
  6935. if (GM_getValue("Check_hellspy_dot_com_links", false))
  6936. {
  6937. addFileHost(
  6938. "hellspy\.(?:com|cz|sk|hu|pl)\/\\w+",
  6939. 'file\\-list-orderby|section-filedetail">',
  6940. '<\/span><\/h2>\\s*<p>|list-purp-2">|flash info sticky">',
  6941. 'optional--',
  6942. "//a[contains(@href,'hellspy.')]"
  6943. );
  6944. }
  6945. if (GM_getValue("Check_leteckaposta_dot_cz_links", false))
  6946. {
  6947. addFileHost(
  6948. "(?:leteckaposta\\.cz|sharegadget\\.com)\/\\d+",
  6949. '<body onload="">',
  6950. 'neexistuje|not exist',
  6951. 'optional--',
  6952. "//a[contains(@href,'leteckaposta.cz') or contains(@href,'sharegadget.com')]"
  6953. );
  6954. }
  6955. if (GM_getValue("Check_stahovanizasms_dot_cz_links", false))
  6956. {
  6957. addFileHost(
  6958. "stahovanizasms\\.cz\/\\w+",
  6959. 'download\\.png>|font-size:11px><tr>',
  6960. 'smaz.n u.ivatelem|font-size:11px><\/table>',
  6961. 'optional--',
  6962. "//a[contains(@href,'stahovanizasms.cz')]"
  6963. );
  6964. }
  6965. if (GM_getValue("Check_share_dash_links_dot_biz_links", false))
  6966. {
  6967. addFileHost(
  6968. "share-links\\.biz\/\\w*",
  6969. 'online\\.gif',
  6970. '(?:offline|parts)\\.gif',
  6971. 'optional--',
  6972. "//a[contains(@href,'share-links.biz')]"
  6973. );
  6974. }
  6975. if (GM_getValue("Check_4shared_dot_com_links", false))
  6976. {
  6977. addFileHost(
  6978. "4shared\\.com\/.+\/",
  6979. '<input type="hidden" class="jsSocialTwDefaultText" value=',
  6980. 'class="warn\"|big red"|GetDataBack',
  6981. 'Service Unavailable',
  6982. "//a[contains(@href,'4shared.com')]"
  6983. );
  6984. }
  6985. if (GM_getValue("Check_zippyshare_dot_com_links", false))
  6986. {
  6987. addFileHost(
  6988. "(?:www\\d+\.|)zippyshare\.com\/",
  6989. 'download\.png|Download Now|images/download_small.png|id="dlbutton"',
  6990. 'not exist|Status 404',
  6991. 'optional--',
  6992. "//a[contains(@href,'zippyshare.com') and contains(@href,'file.html')]"
  6993. );
  6994. }
  6995. if (GM_getValue("Check_mediafire_dot_com_links", false))
  6996. {
  6997. addFileHost(
  6998. "mediafire\.com\/",
  6999. 'download_file_title|dlFileName|id="PLAY_downloadButton"',
  7000. 'error\\.php\\?|error_msg_title|<title>Simple File Sharing|No files found',
  7001. 'set to private',
  7002. "//a[contains(@href,'mediafire.com')]"
  7003. );
  7004. }
  7005. if (GM_getValue("Check_uploaded_dot_to_links", false))
  7006. {
  7007. addFileHost(
  7008. '(?:uploaded\\.(?:to|net)\/(?:.id|file|folder|f|410|404))|(?:ul\\.to\/)',
  7009. '<h2>Authentification</h2></li>| MB|1,00 GB',
  7010. 'box_red|Error: 404|Error: 410|fileList"><thead><tr><td colspan="2"><\/td><\/tr><\/thead><tbody>\\s*<tr>|<title>uploaded.net</title>',
  7011. 'optional--',
  7012. "//a[contains(@href,'uploaded.to/') or contains(@href,'uploaded.net/') or contains(@href,'ul.to/')]"
  7013. );
  7014. }
  7015. if (GM_getValue("Check_ulozisko_dot_sk_links", false))
  7016. {
  7017. addFileHost(
  7018. "ulozisko\.sk\/",
  7019. 'Detaily',
  7020. 'neexistuje',
  7021. 'optional--',
  7022. "//a[contains(@href,'ulozisko.sk')]"
  7023. );
  7024. }
  7025. if (GM_getValue("Check_upnito_dot_sk_links", false))
  7026. {
  7027. addFileHost(
  7028. "(?:dl.\\.|)upnito\\.sk\/(download|subor|file)",
  7029. 'download.php',
  7030. 'notfound|upload\\-suborov\\.php"',
  7031. 'optional--',
  7032. "//a[contains(@href,'upnito.sk')]"
  7033. );
  7034. }
  7035. if (GM_getValue("Check_uptobox_dot_com_links", false))
  7036. {
  7037. addFileHost(
  7038. "uptobox\\.com\/\\w+",
  7039. 'Create Download Link">',
  7040. '500px;text-align:left;">|File not found|Fichier introuvable',
  7041. 'Maintenance|not available in your country',
  7042. "//a[contains(@href,'uptobox.com')]"
  7043. );
  7044. }
  7045. if (GM_getValue("Check_sharecash_dot_org_links", false))
  7046. {
  7047. addFileHost(
  7048. "sharecash\\.org\/download\\.php\\?file=\\d+",
  7049. 'FILE DOWNLOAD<',
  7050. 'File Does Not Exist',
  7051. 'optional--',
  7052. "//a[contains(@href,'sharecash.org/download.php')]"
  7053. );
  7054. }
  7055. if (GM_getValue("Check_depositfiles_dot_com_links", false)) //folders
  7056. {
  7057. addFileHost(
  7058. "depositfiles\\.com\/folders\/\\w+",
  7059. '<div class="progressContainer">',
  7060. '<div id="files" class="files">\\s*<\/div>',
  7061. 'optional--',
  7062. "//a[contains(@href,'depositfiles.com/folders')]"
  7063. );
  7064. }
  7065. if (GM_getValue("Check_depositfiles_dot_com_links", false))
  7066. {
  7067. addFileHost(
  7068. "depositfiles\\.com\/|depositfiles.org|dfiles\.eu|dfiles.ru",
  7069. '<b>File Download</b>|File name|Nom du fichier|Nome do arquivo|speed_small\.gif',
  7070. 'Such file does not exist|<div class="no_download_msg"|This file does not exist',
  7071. 'optional--',
  7072. "//a[contains(@href,'depositfiles') or contains(@href,'dfiles')]"
  7073. );
  7074. }
  7075. if (GM_getValue("Check_rapidfileshare_dot_net_links", false))
  7076. {
  7077. addFileHost(
  7078. "rapidfileshare\\.net/\\w+",
  7079. '<div id="upload-header-bg">',
  7080. '<div style="width:500px;text-align:left;">',
  7081. 'optional--',
  7082. "//a[contains(@href,'rapidfileshare.net/')]"
  7083. );
  7084. }
  7085. if (GM_getValue("Check_stiahnito_dot_sk_links", false))
  7086. {
  7087. addFileHost(
  7088. "stiahnito\\.sk/",
  7089. '<span class="filesize right">',
  7090. '<ol class="list-purp-2">',
  7091. 'optional--',
  7092. "//a[contains(@href,'stiahnito.sk/')]"
  7093. );
  7094. }
  7095. if (GM_getValue("Check_rusfolder_dot_com_links", false))
  7096. {
  7097. addFileHost(
  7098. "rusfolder\\.(?:com|net)",
  7099. '"download-step-one-form"|Название: <b>|Файлы|Файлы в папке',
  7100. '"ui-state-error ui-corner-all"|File is removed|File not found|удален',
  7101. 'optional--',
  7102. "//a[contains(@href,'rusfolder')]"
  7103. );
  7104. }
  7105. if (GM_getValue("Check_fileover_dot_net_links", false))
  7106. {
  7107. addFileHost(
  7108. "fileover\\.net/\\d+",
  7109. 'id="filesize"',
  7110. 'Not found or deleted|The following file is unavailable',
  7111. 'optional--',
  7112. "//a[contains(@href,'fileover.net/')]"
  7113. );
  7114. }
  7115. if (GM_getValue("Check_catshare_dot_net_links", false))
  7116. {
  7117. addFileHost(
  7118. "catshare\\.net/\\w+",
  7119. '"icon-share',
  7120. 'alert alert-error',
  7121. 'optional--',
  7122. "//a[contains(@href,'catshare.net/')]"
  7123. );
  7124. }
  7125. if (GM_getValue("Check_anonfiles_dot_com_links", false))
  7126. {
  7127. addFileHost(
  7128. "anonfiles\\.com/\\w+",
  7129. '"download_button"',
  7130. '<legend><b>404</b>',
  7131. 'optional--',
  7132. "//a[contains(@href,'anonfiles.com')]"
  7133. );
  7134. }
  7135. if (GM_getValue("Check_mixturecloud_dot_com_links", false))
  7136. {
  7137. addFileHost(
  7138. "mixturecloud\\.com/media/\\w+",
  7139. '"btn icon i_globe gray share_150',
  7140. '"s_cross_close"></span> 404:',
  7141. 'optional--',
  7142. "//a[contains(@href,'mixturecloud.com/media/')]"
  7143. );
  7144. }
  7145. if (GM_getValue("Check_akafile_dot_com_links", false))
  7146. {
  7147. addFileHost(
  7148. "akafile\\.com\/\\w+",
  7149. 'download1',
  7150. 'File Not Found',
  7151. 'optional--',
  7152. "//a[contains(@href,'akafile.com/')]"
  7153. );
  7154. }
  7155. if (GM_getValue("Check_creafile_dot_net_links", false))
  7156. {
  7157. addFileHost(
  7158. "creafile\\.net\/\\w+",
  7159. 'downloadblock',
  7160. 'errtitle',
  7161. 'optional--',
  7162. "//a[contains(@href,'creafile.net/')]"
  7163. );
  7164. }
  7165. if (GM_getValue("Check_hugefiles_dot_net_links", false))
  7166. {
  7167. addFileHost(
  7168. "hugefiles\\.net\/\\w+",
  7169. 'download1|class="btn-create-download" value="Create Download Link">',
  7170. 'File Not Found|No such file with this filename',
  7171. 'optional--',
  7172. "//a[contains(@href,'hugefiles.net/')]"
  7173. );
  7174. }
  7175. if (GM_getValue("Check_sendmyway_dot_com_links", false))
  7176. {
  7177. addFileHost(
  7178. "sendmyway\\.com\/\\w+",
  7179. 'id="btn_download"',
  7180. '500px;text-align:left;"|<center><h3>',
  7181. 'optional--',
  7182. "//a[contains(@href,'sendmyway.com/')]"
  7183. );
  7184. }
  7185. if (GM_getValue("Check_upload_dot_ee_links", false))
  7186. {
  7187. addFileHost(
  7188. "upload\\.ee\/\\w+",
  7189. 'onmouseout="document.dllink.src',
  7190. 'There is no such file.|File was deleted|Fail kustutati|Файл удалён|Такого файла нет',
  7191. 'optional--',
  7192. "//a[contains(@href,'upload.ee/')]"
  7193. );
  7194. }
  7195. if (GM_getValue("Check_shareplace_dot_org_links", false))
  7196. {
  7197. addFileHost(
  7198. "shareplace\\.org\/\\?\\w+",
  7199. 'Download-Link',
  7200. 'Your requested file is not found|Select file to send',
  7201. 'optional--',
  7202. "//a[contains(@href,'shareplace.org/?')]"
  7203. );
  7204. }
  7205. if (GM_getValue("Check_uploadc_dot_com_links", false))
  7206. {
  7207. addFileHost(
  7208. "uploadc\\.com\/\\w+",
  7209. 'id="prebut"',
  7210. 'File Not Found|This file has been removed due',
  7211. 'optional--',
  7212. "//a[contains(@href,'uploadc.com/')]"
  7213. );
  7214. }
  7215. if (GM_getValue("Check_remixshare_dot_com_links", false))
  7216. {
  7217. addFileHost(
  7218. "remixshare\\.com\/\\w+",
  7219. 'id="dl2"',
  7220. '<table class=\'failed\'><tr><td width=\'90%\'>|Sorry, die Datei konnte nicht gefunden werden',
  7221. 'optional--',
  7222. "//a[contains(@href,'remixshare.com/')]"
  7223. );
  7224. }
  7225. if (GM_getValue("Check_exoshare_dot_com_links", false))
  7226. {
  7227. addFileHost(
  7228. "exoshare\\.com\/download\\.php\\?uid=\\w+",
  7229. 'Last Download :',
  7230. 'img src="\\/404.jpg"',
  7231. 'optional--',
  7232. "//a[contains(@href,'exoshare.com/download.php')]"
  7233. );
  7234. }
  7235. if (GM_getValue("Check_borncash_dot_org_links", false))
  7236. {
  7237. addFileHost(
  7238. "borncash\\.org\/download\/\\?a=\\w+",
  7239. 'class="knop_1"',
  7240. '\/error\/er00',
  7241. 'optional--',
  7242. "//a[contains(@href,'borncash.org/download/')]"
  7243. );
  7244. }
  7245. if (GM_getValue("Check_vidplay_dot_net_links", false))
  7246. {
  7247. addFileHost(
  7248. "vidplay\.net\/\\w+",
  7249. 'solvemedia puzzle widget',
  7250. 'File not found|AVOID_IE_BUG',
  7251. 'optional--',
  7252. "//a[contains(@href,'vidplay.net')]");
  7253. }
  7254. if (GM_getValue("Check_storagon_dot_com_links", false))
  7255. {
  7256. addFileHost(
  7257. "storagon\.com\/\\w+",
  7258. 'class="icon-cloud-download"></i>|content="Download Options',
  7259. 'content="Download Downloads|class="error-container">|class="bigger-300 bolder">404<',
  7260. 'optional--',
  7261. "//a[contains(@href,'storagon.com')]");
  7262. }
  7263. if (GM_getValue("Check_filedais_dot_com_links", false))
  7264. {
  7265. addFileHost(
  7266. "filedais\.com\/\\w+",
  7267. 'class="btn btn-info"|name="method_free"',
  7268. 'style="width:500px;text-align:left;">|File Not Found|AVOID_IE_BUG',
  7269. 'optional--',
  7270. "//a[contains(@href,'filedais.com')]");
  7271. }
  7272. if (GM_getValue("Check_ryushare_dot_com_links", false))
  7273. {
  7274. addFileHost(
  7275. "ryushare\.com\/\\w+",
  7276. 'KB|MB',
  7277. '<div style="width:500px;text-align:left;">',
  7278. 'in maintenance mode|Software error:',
  7279. "//a[contains(@href,'ryushare.com')]");
  7280. }
  7281. if (GM_getValue("Check_up_dot_4share_dot_vn_links", false))
  7282. {
  7283. addFileHost(
  7284. "up.4share\.vn\/\\w+",
  7285. '<font size="2" face="Verdana">',
  7286. 'font: 13px Tahoma; color: Brown',
  7287. 'optional--',
  7288. //'optional--',
  7289. "//a[contains(@href,'up.4share.vn')]");
  7290. }
  7291. if (GM_getValue("Check_share_dot_vnn_dot_vn_links", false))
  7292. {
  7293. addFileHost(
  7294. "share.vnn\.vn\/\\w+",
  7295. '"index,follow"|<div class="main" id="download-box">',
  7296. '<meta name="description" content="" />|<h1>Không tìm thấy file bạn yêu cầu</h1>',
  7297. 'optional--',
  7298. //'optional--',
  7299. "//a[contains(@href,'share.vnn.vn')]");
  7300. }
  7301. if (GM_getValue("Check_upfile_dot_vn_links", false))
  7302. {
  7303. addFileHost(
  7304. "upfile\.vn\/\\w+",
  7305. 'download-timer',
  7306. '<meta name="description" content="Upload files|<meta name="description" content="Error "',
  7307. 'optional--',
  7308. //'optional--',
  7309. "//a[contains(@href,'upfile.vn')]");
  7310. }
  7311. /* if (GM_getValue("Check_firedrive_dot_com_links", false))
  7312. {
  7313. addFileHost(
  7314. "firedrive\\.com\/file\/\\w{16}",
  7315. 'as Free User|<a class="continue"|Continue to file|#feedback_btn|application file_standalone',
  7316. 'Welcome to PutLocker|<div class="sad_face_image">|404:',
  7317. 'undergoing scheduled maintenance',
  7318. "//a[contains(@href,'firedrive.com/file')]"
  7319. );
  7320. } */
  7321. if (GM_getValue("Check_aisfile_dot_com_links", false))
  7322. {
  7323. addFileHost(
  7324. "aisfile\.com\/\\w+",
  7325. '<h3 style="text-align:left;">|align=right><b>Filename:',
  7326. '<div style="width:500px;text-align:left;">|File Not Found',
  7327. 'optional--',
  7328. //'optional--',
  7329. "//a[contains(@href,'aisfile.com')]");
  7330. }
  7331. if (GM_getValue("Check_usersfiles_dot_com_links", false))
  7332. {
  7333. addFileHost(
  7334. "usersfiles\.com\/\\w+",
  7335. 'class="btn btn-success|id="btn_download" class="btn"',
  7336. '<div style="width:500px;text-align:left;">',
  7337. 'optional--',
  7338. //'optional--',
  7339. "//a[contains(@href,'usersfiles.com')]");
  7340. }
  7341. if (GM_getValue("Check_pan_dot_baidu_dot_com_links", false))
  7342. {
  7343. addFileHost(
  7344. "pan.baidu\.com\/\\w+",
  7345. 'target="_blank" title=|share-personal-info',
  7346. 'share_notfound.png|background:#f9f9f9',
  7347. 'optional--',
  7348. //'optional--',
  7349. "//a[contains(@href,'pan.baidu.com')]");
  7350. }
  7351. if (GM_getValue("Check_yunpan_dot_cn_links", false))
  7352. {
  7353. addFileHost(
  7354. "yunpan\.cn\/\\w+",
  7355. 'class="icon icon-download',
  7356. 'content="360|http://p5.qhimg.com/t01d1c98667df9dc6cc.jpg',
  7357. 'optional--',
  7358. //'optional--',
  7359. "//a[contains(@href,'yunpan.cn')]");
  7360. }
  7361. if (GM_getValue("Check_file_dash_upload_dot_net_links", false))
  7362. {
  7363. addFileHost(
  7364. "(?:en\\.|)file\\-upload\\.net\/download\\-\\d+\/\\w+",
  7365. 'getElementById("downbild")|style.display',
  7366. 'hochgeladene Datei nicht gefunden werden|has not been found',
  7367. 'optional--',
  7368. //'optional--',
  7369. "//a[contains(@href,'file-upload.net')]");
  7370. }
  7371. if (GM_getValue("Check_gulfup_dot_com_links", false))
  7372. {
  7373. addFileHost(
  7374. "gulfup\.com\/",
  7375. '<!-- Downlod template -->|download.gif',
  7376. '<!-- Errors template -->|class="error">|<!-- form upload -->|[ رفع الملفات ]',
  7377. 'optional--',
  7378. //'optional--',
  7379. "//a[contains(@href,'gulfup.com')]");
  7380. }
  7381. if (GM_getValue("Check_datafilehost_dot_com_links", false))
  7382. {
  7383. addFileHost(
  7384. "datafilehost\\.com\/(?:download-\\w+\\.html|d\/\\w+)",
  7385. 'dldtable">',
  7386. 'does not exist\\.',
  7387. 'optional--',
  7388. //'optional--',
  7389. "//a[contains(@href,'datafilehost.com')]");
  7390. }
  7391. if (GM_getValue("Check_box_dot_com_links", false))
  7392. {
  7393. addFileHost(
  7394. "box\.com\/\\w+",
  7395. 'download-file-btn|id="download_button',
  7396. 'BIyMin.png| <div class="error_message|link has been removed',
  7397. 'optional--',
  7398. //'optional--',
  7399. "//a[contains(@href,'app.box.com')]");
  7400. }
  7401. if (GM_getValue("Check_dropbox_dot_com_links", false))
  7402. {
  7403. addFileHost(
  7404. "dropbox\.com\/s\/\\w+",
  7405. 'default_content_download_button" class="freshbutton-blue">|content_download_button',
  7406. '>Nothing Here<|>Error (404)<',
  7407. 'title>Dropbox - 509|Error (403)|Error: 429',
  7408. "//a[contains(@href,'dropbox.com')]");
  7409. }
  7410. if (GM_getValue("Check_box_dot_net_links", false))
  7411. {
  7412. addFileHost(
  7413. "box\.net\/\\w+",
  7414. 'download-file-btn|id="download_button',
  7415. 'BIyMin.png| <div class="error_message',
  7416. 'optional--',
  7417. //'optional--',
  7418. "//a[contains(@href,'box.net')]");
  7419. }
  7420. if (GM_getValue("Check_fileband_dot_com_links", false))
  7421. {
  7422. addFileHost(
  7423. "fileband\.com\/\\w+",
  7424. 'value="download1">|name="id" value=',
  7425. '<div style="width:500px;text-align:left;">|not be found',
  7426. 'optional--',
  7427. //'optional--',
  7428. "//a[contains(@href,'fileband.com')]");
  7429. }
  7430. if (GM_getValue("Check_uploadrocket_dot_net_links", false))
  7431. {
  7432. addFileHost(
  7433. "uploadrocket\.net\/\\w+",
  7434. '<font style="font-size:12px;">|<h2>Download File|method_isfree',
  7435. 'font style="color:#d33;|File Not Found',
  7436. 'optional--',
  7437. //'optional--',
  7438. "//a[contains(@href,'uploadrocket.net')]");
  7439. }
  7440. if (GM_getValue("Check_filedropper_dot_com_links", false))
  7441. {
  7442. addFileHost(
  7443. "filedropper\.com\/\\w+",
  7444. 'background:#ddd;|width:985px; ',
  7445. 'background-color:#FFFFFF;|margin-left: -400px;',
  7446. 'optional--',
  7447. //'optional--',
  7448. "//a[contains(@href,'filedropper.com')]");
  7449. }
  7450. if (GM_getValue("Check_tropicshare_dot_com_links", false))
  7451. {
  7452. addFileHost(
  7453. "tropicshare\\.com\/files\/\\d+",
  7454. 'MB</span>|GB</span>|KB</span>',
  7455. '>FNF<|size: </span>',
  7456. 'optional--',
  7457. //'optional--',
  7458. "//a[contains(@href,'tropicshare.com')]");
  7459. }
  7460. if (GM_getValue("Check_goldbytez_dot_com_links", false))
  7461. {
  7462. addFileHost(
  7463. "goldbytez\.com\/\\w+",
  7464. '<h2>Download</h2>|<center><h2>File: <font color="red">',
  7465. '<div style="width:500px;text-align:left;">|<h2>Error</h2>',
  7466. 'optional--',
  7467. //'optional--',
  7468. "//a[contains(@href,'goldbytez.com')]");
  7469. }
  7470. if (GM_getValue("Check_worldbytez_dot_com_links", false))
  7471. {
  7472. addFileHost(
  7473. "worldbytez\.com\/\\w+",
  7474. '<div class="download_type">',
  7475. '<div style="width:500px;text-align:left;">',
  7476. 'optional--',
  7477. //'optional--',
  7478. "//a[contains(@href,'worldbytez.com')]");
  7479. }
  7480. if (GM_getValue("Check_freefilehosting_dot_net_links", false))
  7481. {
  7482. addFileHost(
  7483. "freefilehosting\.net\/\\w+",
  7484. 'Type: cbr|Type: rar|Type: jpg|Type: mkv|Type: avi|Type: mpg|Type: mpeg|Type: zip|Type: wmvType: bmpType: gifType: mp4Type: mp3',
  7485. '175px;" value="http://www.freefilehosting.net/"|Filename: <br>',
  7486. 'optional--',
  7487. //'optional--',
  7488. "//a[contains(@href,'freefilehosting.net')]");
  7489. }
  7490. if (GM_getValue("Check_ziddu_dot_com_links", false))
  7491. {
  7492. addFileHost(
  7493. "ziddu\.com\/\\w+",
  7494. 'downloads.ziddu.com|downloadfilelinkicon',
  7495. 'errortracking.php|images/oops.png|fontfamilyverdana error',
  7496. 'optional--',
  7497. //'optional--',
  7498. "//a[contains(@href,'ziddu.com')]");
  7499. }
  7500. if (GM_getValue("Check_exclusiveloader_dot_com_links", false))
  7501. {
  7502. addFileHost(
  7503. "exclusiveloader\.com\/\\w+",
  7504. 'style="padding-top:55px; padding-bottom:65px;">|<h2>Download</h2>',
  7505. 'File Not Found|width:322px;text-align:left;" class="no_file">',
  7506. 'optional--',
  7507. //'optional--',
  7508. "//a[contains(@href,'exclusiveloader.com')]");
  7509. }
  7510. if (GM_getValue("Check_sharerapid_dot_cz_links", false))
  7511. {
  7512. addFileHost(
  7513. "sharerapid\.cz\/\\w+",
  7514. 'value="Stáhnout"|soubor" style|Stahování je povoleno pouze pro přihlášené uživatele',
  7515. 'error_div">|404 - Not Found',
  7516. 'optional--',
  7517. //'optional--',
  7518. "//a[contains(@href,'sharerapid.cz')]");
  7519. }
  7520. if (GM_getValue("Check_sdilej_dot_cz_links", false))
  7521. {
  7522. addFileHost(
  7523. "sdilej\.cz\/\\w+",
  7524. 'class="page-download"',
  7525. '<h2 class="red">|czshare.com|sponsored listings|This domain is for sale',
  7526. 'optional--',
  7527. //'optional--',
  7528. "//a[contains(@href,'sdilej.cz')]");
  7529. }
  7530. if (GM_getValue("Check_lafiles_dot_com_links", false))
  7531. {
  7532. addFileHost(
  7533. "lafiles\.com\/\\w+",
  7534. '<div id="pay_modes">',
  7535. '<b class="err"></b>',
  7536. 'optional--',
  7537. //'optional--',
  7538. "//a[contains(@href,'lafiles.com')]");
  7539. }
  7540. if (GM_getValue("Check_fboom_dot_me_links", false))
  7541. {
  7542. addFileHost(
  7543. "fboom\.me\/file\/\\w+",
  7544. 'id="download-free" href="#"',
  7545. 'class="error-v1-title">404<|File not found or deleted',
  7546. 'optional--',
  7547. //'optional--',
  7548. "//a[contains(@href,'fboom.me')]");
  7549. }
  7550. if (GM_getValue("Check_fileboom_dot_me_links", false))
  7551. {
  7552. addFileHost(
  7553. "fileboom\.me\/file\/\\w+",
  7554. 'id="download-free" href="#"',
  7555. 'class="error-v1-title">404<|File not found or deleted',
  7556. 'optional--',
  7557. //'optional--',
  7558. "//a[contains(@href,'fileboom.me')]");
  7559. }
  7560. if (GM_getValue("Check_acefile_dot_net_links", false))
  7561. {
  7562. addFileHost(
  7563. "acefile\.net\/\\w+",
  7564. 'align=right nowrap><b>',
  7565. 'File Not Found|<div style="width:322px;text-align:left;" class="no_file">',
  7566. 'optional--',
  7567. //'optional--',
  7568. "//a[contains(@href,'acefile.net')]");
  7569. }
  7570. if (GM_getValue("Check_megarapid_dot_cz_links", false))
  7571. {
  7572. addFileHost(
  7573. "megarapid\.cz\/\\w+",
  7574. 'value="Stáhnout"|soubor" style|Stahování je povoleno pouze pro přihlášené uživatele',
  7575. 'error_div">|404 - Not Found',
  7576. 'optional--',
  7577. //'optional--',
  7578. "//a[contains(@href,'megarapid.cz')]");
  7579. }
  7580. if (GM_getValue("Check_yadi_dot_sk_links", false))
  7581. {
  7582. addFileHost(
  7583. "yadi\.sk\/\\w+",
  7584. 'twitter:site|View and download',
  7585. 'error code|Nothing found',
  7586. 'optional--',
  7587. //'optional--',
  7588. "//a[contains(@href,'yadi.sk')]");
  7589. }
  7590. if (GM_getValue("Check_imdb_dot_com_links", false))
  7591. {
  7592. addFileHost(
  7593. "imdb\.com\/\\w+",
  7594. 'imdb.com',
  7595. '404 Error',
  7596. 'optional--',
  7597. "//a[contains(@href,'imdb.com')]");
  7598. }
  7599. if (GM_getValue("Check_hitfile_dot_net_links", false))
  7600. {
  7601. addFileHost(
  7602. "hitfile\.net\/\\w+",
  7603. 'class="download-file',
  7604. 'style="width:16px;height:16px;border:0;|File not found|Файл не найден. Возможно он был удален',
  7605. 'optional--',
  7606. //'optional--',
  7607. "//a[contains(@href,'hitfile.net')]");
  7608. }
  7609. /* if (GM_getValue("Check_uploadto_dot_us_links", false))
  7610. {
  7611. addFileHost(
  7612. "uploadto\\.us\/file\/details\/[\\w+-]",
  7613. 'name="recaptcha_response',
  7614. '="/folder/add"|>File (?:not found|restricted|has been deleted)|<title>UPLOADTO.US</title>',
  7615. 'btn-large btn-danger">|Account limitation notice|502 Bad Gateway',
  7616. "//a[contains(@href,'uploadto.us/file')]",
  7617. true);
  7618. } */
  7619. if (GM_getValue("Check_nitroflare_dot_com_links", true))
  7620. {
  7621. addFileHost(
  7622. "nitroflare\.com\/\\w+",
  7623. 'alert.png|LowSpeedMeter.png',
  7624. 'file has been removed|id="error" style="display|Probably deleted',
  7625. 'optional--',
  7626. "//a[contains(@href,'nitroflare.com')]");
  7627. }
  7628. if (GM_getValue("Check_up_dot_top4top_dot_net_links", false))
  7629. {
  7630. addFileHost(
  7631. "up.top4top\.net\/\\w+",
  7632. 'start Downlod template',
  7633. 'start err template',
  7634. 'optional--',
  7635. "//a[contains(@href,'up.top4top.net')]");
  7636. }
  7637. if (GM_getValue("Check_filejoker_dot_net_links", false))
  7638. {
  7639. addFileHost(
  7640. "filejoker\.net\/\\w+",
  7641. 'button id="regular-download">Slow|method_free" value="1|<div id="download" class="download0">',
  7642. 'File Not Found|class="not_found|<div id="download" class="not_found">|"err">DMCA Complaint<',
  7643. 'optional--',
  7644. "//a[contains(@href,'filejoker.net')]");
  7645. }
  7646. if (GM_getValue("Check_free_dot_fr_links", false))
  7647. {
  7648. addFileHost(
  7649. "(?:dl.\\.|)free\\.fr",
  7650. 'Valider et t&eacute;l&eacute',
  7651. 'Fichier inexistant',
  7652. 'optional--',
  7653. "//a[contains(@href,'free.fr')]");
  7654. }
  7655. if (GM_getValue("Check_gboxes_dot_com_links", false))
  7656. {
  7657. addFileHost(
  7658. "gboxes\.com\/\\w+",
  7659. 'You have requested|color="red">http://www.gboxes.com',
  7660. 'File Not Found|<div style="width:500px;text-align:left;">',
  7661. 'optional--',
  7662. "//a[contains(@href,'gboxes.com')]");
  7663. }
  7664. if (GM_getValue("Check_1fichier_dot_com_links", false))
  7665. {
  7666. addFileHost(
  7667. "(?:\\w{10}\\.(?:1fichier|dl4free)\\.com\/)|(?:(?:1fichier|dl4free)\\.com\/\\?\\w{10})|(?:www\\.)?\\w{6,}\\.1fichier\\.com",
  7668. '<title>Download</title>|<br/>You must wait|submit" value="Download',
  7669. 'File not found|file could not be found|Select files to send',
  7670. 'optional--',
  7671. "//a[contains(@href,'1fichier') or contains(@href,'dl4free.com/')]"
  7672. );
  7673. }
  7674. if (GM_getValue("Check_led_dot_wf_links", false))
  7675. {
  7676. addFileHost(
  7677. "led\.wf\/\\w+",
  7678. 'logo_0.png|downloads.gif"|verifycode',
  7679. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link',
  7680. 'optional--',
  7681. "//a[contains(@href,'led.wf')]");
  7682. }
  7683. if (GM_getValue("Check_lan_dot_wf_links", false))
  7684. {
  7685. addFileHost(
  7686. "lan\.wf\/\\w+",
  7687. 'logo_0.png|downloads.gif"|verifycode',
  7688. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link',
  7689. 'optional--',
  7690. "//a[contains(@href,'lan.wf')]");
  7691. }
  7692. if (GM_getValue("Check_adlink_dot_wf_links", false))
  7693. {
  7694. addFileHost(
  7695. "adlink\.wf\/\\w+",
  7696. 'logo_0.png|downloads.gif"|verifycode',
  7697. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link',
  7698. 'optional--',
  7699. "//a[contains(@href,'adlink.wf')]");
  7700. }
  7701. if (GM_getValue("Check_click_dot_tf_links", false))
  7702. {
  7703. addFileHost(
  7704. "click\.tf\/\\w+",
  7705. 'logo_0.png|downloads.gif"|verifycode',
  7706. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link',
  7707. 'optional--',
  7708. "//a[contains(@href,'click.tf')]");
  7709. }
  7710. if (GM_getValue("Check_ssh_dot_tf_links", false))
  7711. {
  7712. addFileHost(
  7713. "ssh\.tf\/\\w+",
  7714. 'logo_0.png|downloads.gif"|verifycode',
  7715. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link',
  7716. 'optional--',
  7717. "//a[contains(@href,'ssh.tf')]");
  7718. }
  7719. if (GM_getValue("Check_ssh_dot_yt_links", false))
  7720. {
  7721. addFileHost(
  7722. "ssh\.yt\/\\w+",
  7723. 'logo_0.png|downloads.gif"|verifycode',
  7724. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link',
  7725. 'optional--',
  7726. "//a[contains(@href,'ssh.yt')]");
  7727. }
  7728. if (GM_getValue("Check_yep_dot_pm_links", false))
  7729. {
  7730. addFileHost(
  7731. "yep\.pm\/\\w+",
  7732. 'logo_0.png|downloads.gif"|verifycode',
  7733. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link',
  7734. 'optional--',
  7735. "//a[contains(@href,'yep.pm')]");
  7736. }
  7737. if (GM_getValue("Check_kyc_dot_pm_links", false))
  7738. {
  7739. addFileHost(
  7740. "kyc\.pm\/\\w+",
  7741. 'logo_0.png|downloads.gif"|verifycode',
  7742. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link',
  7743. 'optional--',
  7744. "//a[contains(@href,'kyc.pm')]");
  7745. }
  7746. if (GM_getValue("Check_brupload_dot_net_links", false))
  7747. {
  7748. addFileHost(
  7749. "brupload\.net\/\\w+",
  7750. 'Download Gratuito',
  7751. '<div style="width:500px;text-align:left;">',
  7752. 'optional--',
  7753. //'optional--',
  7754. "//a[contains(@href,'brupload.net')]");
  7755. }
  7756. if (GM_getValue("Check_cloudzilla_dot_to_links", false))
  7757. {
  7758. addFileHost(
  7759. "cloudzilla\.to\/\\w+",
  7760. 'btn1" id="free_download|onclick="freeDownload|id="pwd_protected">',
  7761. 'File not found|/imgs/broken.png',
  7762. 'optional--',
  7763. //'optional--',
  7764. "//a[contains(@href,'cloudzilla.to')]");
  7765. }
  7766. if (GM_getValue("Check_fileparadox_dot_in_links", false))
  7767. {
  7768. addFileHost(
  7769. "fileparadox\.in\/\\w+",
  7770. 'CONTENT="Download File|method_free_file',
  7771. '>File Not Found<|id="no_filedownload">|FILE NOT FOUND',
  7772. 'optional--',
  7773. //'optional--',
  7774. "//a[contains(@href,'fileparadox.in')]");
  7775. }
  7776. if (GM_getValue("Check_clicknupload_dot_com_links", false))
  7777. {
  7778. addFileHost(
  7779. "clicknupload\.com\/\\w+",
  7780. 'name="method_free',
  7781. 'File Not Found',
  7782. 'optional--',
  7783. //'optional--',
  7784. "//a[contains(@href,'clicknupload.com')]");
  7785. }
  7786. if (GM_getValue("Check_ex_dash_load_dot_com_links", false))
  7787. {
  7788. addFileHost(
  7789. "ex-load\.com\/\\w+",
  7790. 'name="method_free|<p>Download File:</p>',
  7791. 'Folder Not Found|File Not Found|Error 404',
  7792. 'optional--',
  7793. //'optional--',
  7794. "//a[contains(@href,'ex-load.com')]");
  7795. }
  7796. if (GM_getValue("Check_hexupload_dot_com_links", false))
  7797. {
  7798. addFileHost(
  7799. "hexupload\.com\/\\w+",
  7800. 'button" value="Free|type="submit" value=""',
  7801. 'File Not Found|<div style="width:500px;text-align:left;">',
  7802. 'optional--',
  7803. //'optional--',
  7804. "//a[contains(@href,'hexupload.com')]");
  7805. }
  7806. if (GM_getValue("Check_wizupload_dot_com_links", false))
  7807. {
  7808. addFileHost(
  7809. "wizupload\.com\/\\w+",
  7810. 'btn_download|class="downloadbtn"',
  7811. '>File Not Found<',
  7812. 'optional--',
  7813. //'optional--',
  7814. "//a[contains(@href,'wizupload.com')]");
  7815. }
  7816. if (GM_getValue("Check_filecloud_dot_cc_links", false))
  7817. {
  7818. addFileHost(
  7819. "filecloud\.cc\/\\w+",
  7820. 'align="center"><input type="submit" name=',
  7821. 'File Not Found|<Title>FileCloud - Premium Hosting Service<',
  7822. 'optional--',
  7823. //'optional--',
  7824. "//a[contains(@href,'filecloud.cc')]");
  7825. }
  7826. if (GM_getValue("Check_inclouddrive_dot_com_links", false))
  7827. {
  7828. addFileHost(
  7829. "inclouddrive\.com\/\\w+",
  7830. 'initfreedownload',
  7831. '<title>Content Unavailable|The file you are trying to download is no longer available',
  7832. 'optional--',
  7833. //'optional--',
  7834. "//a[contains(@href,'inclouddrive.com')]");
  7835. }
  7836. if (GM_getValue("Check_radicalshare_dot_com_links", false))
  7837. {
  7838. addFileHost(
  7839. "radicalshare\.com\/\\w+",
  7840. 'value="download1|name="method_free"',
  7841. 'File Not Found<|<div style="width:500px;text-align:left;">',
  7842. 'optional--',
  7843. //'optional--',
  7844. "//a[contains(@href,'radicalshare.com')]");
  7845. }
  7846. if (GM_getValue("Check_sharemods_dot_com_links", false))
  7847. {
  7848. addFileHost(
  7849. "sharemods\.com\/\\w+",
  7850. 'name="method_free"',
  7851. 'File Not Found<',
  7852. 'optional--',
  7853. //'optional--',
  7854. "//a[contains(@href,'sharemods.com')]");
  7855. }
  7856. if (GM_getValue("Check_hostr_dot_co_links", false))
  7857. {
  7858. addFileHost(
  7859. "hostr\.co\/\\w+",
  7860. 'method="get"',
  7861. 'File not found<|error-page',
  7862. 'optional--',
  7863. //'optional--',
  7864. "//a[contains(@href,'hostr.co')]");
  7865. }
  7866. if (GM_getValue("Check_filepi_dot_com_links", false))
  7867. {
  7868. addFileHost(
  7869. "filepi\.com\/\\w+",
  7870. 'id="button_start">',
  7871. 'File not found',
  7872. 'optional--',
  7873. //'optional--',
  7874. "//a[contains(@href,'filepi.com')]");
  7875. }
  7876. if (GM_getValue("Check_tikfile_dot_com_links", false))
  7877. {
  7878. addFileHost(
  7879. "tikfile\.com\/\\w+",
  7880. 'btn_download',
  7881. 'File Not Found|file was removed|Reason for deletion',
  7882. 'optional--',
  7883. //'optional--',
  7884. "//a[contains(@href,'tikfile.com')]");
  7885. }
  7886. if (GM_getValue("Check_cloudsix_dot_me_links", false))
  7887. {
  7888. addFileHost(
  7889. "cloudsix\.me\/\\w+",
  7890. 'name="method_free"',
  7891. 'File Not Found|width:500px;text-align:left;">',
  7892. 'optional--',
  7893. //'optional--',
  7894. "//a[contains(@href,'cloudsix.me')]");
  7895. }
  7896. if (GM_getValue("Check_neodrive_dot_co_links", false))
  7897. {
  7898. addFileHost(
  7899. "neodrive\.co\/\\w+",
  7900. 'btn1" id="free_download|onclick="freeDownload|id="pwd_protected">',
  7901. 'File not found|/imgs/broken.png',
  7902. 'optional--',
  7903. //'optional--',
  7904. "//a[contains(@href,'neodrive.co')]");
  7905. }
  7906. if (GM_getValue("Check_chayfile_dot_com_links", false))
  7907. {
  7908. addFileHost(
  7909. "chayfile\.com\/\\w+",
  7910. 'name="method_free"',
  7911. 'File Not Found|<h3>The file was removed by administrator</h3>',
  7912. 'optional--',
  7913. //'optional--',
  7914. "//a[contains(@href,'chayfile.com')]");
  7915. }
  7916. if (GM_getValue("Check_xfileload_dot_com_links", false))
  7917. {
  7918. addFileHost(
  7919. "xfileload\.com\/\\w+",
  7920. 'Filename:|Имя файла:|Dateiname:|nom de fichier :|اسم الملف:|Dosya AdД±|Nazwa:|Nombre de fichero:|NamaFile:|Bestandsnaam:|שם קובץ:"',
  7921. '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..|הקובץ שחיפשת לא נמצא.',
  7922. 'optional--',
  7923. //'optional--',
  7924. "//a[contains(@href,'xfileload.com')]");
  7925. }
  7926. if (GM_getValue("Check_rockfile_dot_eu_links", false))
  7927. {
  7928. addFileHost(
  7929. "rockfile\.eu\/\\w+",
  7930. 'You have requested:',
  7931. 'The file you were looking for could not be found, sorry for any inconvenience.',
  7932. 'optional--',
  7933. //'optional--',
  7934. "//a[contains(@href,'rockfile.eu')]");
  7935. }
  7936. if (GM_getValue("Check_24uploading_dot_com_links", false))
  7937. {
  7938. addFileHost(
  7939. "24uploading\.com\/\\w+",
  7940. 'File:|Download Speed:',
  7941. '<b>File Not Found</b>|file was removed',
  7942. 'optional--',
  7943. //'optional--',
  7944. "//a[contains(@href,'24uploading.com')]");
  7945. }
  7946. if (GM_getValue("Check_tusfiles_dot_net_links", false))
  7947. {
  7948. addFileHost(
  7949. "tusfiles\.net\/\\w+",
  7950. 'i/icon/dll.png"|>Start download<br',
  7951. 'no longer available<|i/ino.png"',
  7952. 'optional--',
  7953. //'optional--',
  7954. "//a[contains(@href,'tusfiles.net')]");
  7955. }
  7956. if (GM_getValue("Check_jumbofile_dot_net_links", false))
  7957. {
  7958. addFileHost(
  7959. "jumbofile\.net\/\\w+",
  7960. 'button" class="" value="Free',
  7961. 'This File Was Deleted',
  7962. 'optional--',
  7963. //'optional--',
  7964. "//a[contains(@href,'jumbofile.net')]");
  7965. }
  7966. if (GM_getValue("Check_ozofiles_dot_com_links", false))
  7967. {
  7968. addFileHost(
  7969. "ozofiles\.com\/\\w+",
  7970. 'button" value="Free',
  7971. 'File Not Found|width:500px;text-align:left;">|File Deleted',
  7972. 'optional--',
  7973. //'optional--',
  7974. "//a[contains(@href,'ozofiles.com')]");
  7975. }
  7976. if (GM_getValue("Check_loudupload_dot_net_links", false))
  7977. {
  7978. addFileHost(
  7979. "loudupload\.net\/\\w+",
  7980. 'value="Get Links',
  7981. 'File Not Found',
  7982. 'optional--',
  7983. //'optional--',
  7984. "//a[contains(@href,'loudupload.net')]");
  7985. }
  7986. if (GM_getValue("Check_rapidsonic_dot_com_links", false))
  7987. {
  7988. addFileHost(
  7989. "(rapidsonic|fileparadox)\\.com\/\\w+",
  7990. 'method_free" id="submit_btn|<h4><i class="icon_document_alt"></i>Download File</h4>',
  7991. '>File Not Found<|id="no_filedownload">|>FILE NOT FOUND<|file has been deleted|No such file with this filename',
  7992. 'optional--',
  7993. //'optional--',
  7994. "//a[contains(@href,'rapidsonic') or contains(@href,'fileparadox.com')]");
  7995. }
  7996. if (GM_getValue("Check_krotix_dot_net_links", false))
  7997. {
  7998. addFileHost(
  7999. "krotix\.net\/\\w+",
  8000. 'btn btn-warning|btn-free',
  8001. 'pageErrors|This File has been removed',
  8002. 'content="Scheduled Maintenance',
  8003. //'optional--',
  8004. "//a[contains(@href,'krotix.net')]");
  8005. }
  8006. if (GM_getValue("Check_userscloud_dot_com_links", false))
  8007. {
  8008. addFileHost(
  8009. "userscloud\.com\/\\w+",
  8010. 'btn_download',
  8011. '>Server OFFLINE|background:#D3D3D3;border-bottom:1px solid #BBB;font:bold 13px Verdana;padding:3px;">',
  8012. 'optional--',
  8013. //'optional--',
  8014. "//a[contains(@href,'userscloud.com')]");
  8015. }
  8016. if (GM_getValue("Check_kumpulbagi_dot_com_links", false))
  8017. {
  8018. addFileHost(
  8019. "kumpulbagi\.com\/\\w+",
  8020. 'class="button download',
  8021. 'internal server error',
  8022. 'optional--',
  8023. //'optional--',
  8024. "//a[contains(@href,'kumpulbagi.com')]");
  8025. }
  8026. if (GM_getValue("Check_faststore_dot_org_links", false))
  8027. {
  8028. addFileHost(
  8029. "faststore\.org\/\\w+",
  8030. 'name="method_free',
  8031. 'File Not Found',
  8032. 'optional--',
  8033. //'optional--',
  8034. "//a[contains(@href,'faststore.org')]");
  8035. }
  8036. if (GM_getValue("Check_prefiles_dot_com_links", false))
  8037. {
  8038. addFileHost(
  8039. "prefiles\.com\/\\w+",
  8040. 'id="method_free',
  8041. 'File not Found',
  8042. 'optional--',
  8043. //'optional--',
  8044. "//a[contains(@href,'prefiles.com')]");
  8045. }
  8046. if (GM_getValue("Check_doraupload_dot_com_links", false))
  8047. {
  8048. addFileHost(
  8049. "doraupload\.com\/\\w+",
  8050. 'btn_download',
  8051. 'class="error-code|Could Not Be Found',
  8052. 'optional--',
  8053. //'optional--',
  8054. "//a[contains(@href,'doraupload.com')]");
  8055. }
  8056. if (GM_getValue("Check_openload_dot_io_links", false))
  8057. {
  8058. addFileHost(
  8059. "openload\.io\/\\w+",
  8060. 'btn btn-primary|class="count">',
  8061. 'class="jumbotron">|We are sorry',
  8062. 'optional--',
  8063. //'optional--',
  8064. "//a[contains(@href,'openload.io')]");
  8065. }
  8066. if (GM_getValue("Check_uploads_dot_xxx_links", false))
  8067. {
  8068. addFileHost(
  8069. "uploads\.xxx\/\\w+",
  8070. 'downoadForFree',
  8071. 'File not found',
  8072. 'optional--',
  8073. //'optional--',
  8074. "//a[contains(@href,'uploads.xxx')]");
  8075. }
  8076. if (GM_getValue("Check_zxcfiles_dot_com_links", false))
  8077. {
  8078. addFileHost(
  8079. "zxcfiles\.com\/\\w+",
  8080. 'class="downloadbtn',
  8081. 'File Not Found',
  8082. 'optional--',
  8083. //'optional--',
  8084. "//a[contains(@href,'zxcfiles.com')]");
  8085. }
  8086. if (GM_getValue("Check_up07_dot_net_links", false))
  8087. {
  8088. addFileHost(
  8089. "up07\.net\/\\w+",
  8090. 'name="method_free',
  8091. 'File Not Found',
  8092. 'optional--',
  8093. //'optional--',
  8094. "//a[contains(@href,'up07.net')]");
  8095. }
  8096. if (GM_getValue("Check_fileupload_dot_pw_links", false))
  8097. {
  8098. addFileHost(
  8099. "fileupload\.pw\/\\w+",
  8100. 'value="Free"',
  8101. 'File Not Found',
  8102. 'optional--',
  8103. //'optional--',
  8104. "//a[contains(@href,'fileupload.pw')]");
  8105. }
  8106. if (GM_getValue("Check_4upld_dot_com_links", false))
  8107. {
  8108. addFileHost(
  8109. "4upld\.com\/\\w+",
  8110. 'alt="Download Now"|content="Download file">|btn-free-element',
  8111. '<title>Error|content="error|File not found',
  8112. 'optional--',
  8113. //'optional--',
  8114. "//a[contains(@href,'4upld.com')]");
  8115. }
  8116. if (GM_getValue("Check_newfileland_dot_com_links", false))
  8117. {
  8118. addFileHost(
  8119. "newfileland\.com\/\\w+",
  8120. 'name="method_free',
  8121. 'File Not Found',
  8122. 'optional--',
  8123. //'optional--',
  8124. "//a[contains(@href,'newfileland.com')]");
  8125. }
  8126. if (GM_getValue("Check_swoopshare_dot_com_links", false))
  8127. {
  8128. addFileHost(
  8129. "(?:.swoopshare)\\.com\/\\w+",
  8130. 'Click below to start|Klicken Sie nachfolgend|Cliquez ci-après pour|Cliccate qui per iniziare|Klik hierna om het bestand|Haga ahora clic para iniciar la',
  8131. '<input type="file" name="f"',
  8132. 'optional--',
  8133. //'optional--',
  8134. "//a[contains(@href,'swoopshare.com')]"
  8135. );
  8136. }
  8137. if (GM_getValue("Check_cloudshares_dot_net_links", false))
  8138. {
  8139. addFileHost(
  8140. "cloudshares\.net\/\\w+",
  8141. '"method_free|"Low Speed Download|submit" name="go',
  8142. 'Not Found|"width:500px;text-align:left;">|No such file exist',
  8143. 'optional--',
  8144. //'optional--',
  8145. "//a[contains(@href,'cloudshares.net')]"
  8146. );
  8147. }
  8148. if (GM_getValue("Check_allmyvideos_dot_net_links", false))
  8149. {
  8150. addFileHost(
  8151. "allmyvideos\.net\/\\w+",
  8152. 'Continue to Video',
  8153. 'File Not Found|class="err">Removed for',
  8154. 'optional--',
  8155. //'optional--',
  8156. "//a[contains(@href,'allmyvideos.net')]"
  8157. );
  8158. }
  8159. if (GM_getValue("Check_vodlocker_dot_com_links", false))
  8160. {
  8161. addFileHost(
  8162. "vodlocker\.com\/\\w+",
  8163. 'Proceed to video',
  8164. 'Not Found',
  8165. 'optional--',
  8166. //'optional--',
  8167. "//a[contains(@href,'vodlocker.com')]"
  8168. );
  8169. }
  8170. if (GM_getValue("Check_vidbull_dot_com_links", false))
  8171. {
  8172. addFileHost(
  8173. "vidbull\.com\/\\w+",
  8174. 'Verifying Video Request',
  8175. 'File Not Found',
  8176. 'optional--',
  8177. //'optional--',
  8178. "//a[contains(@href,'vidbull.com')]");
  8179. }
  8180. if (GM_getValue("Check_novamov_dot_com_links", false))
  8181. {
  8182. addFileHost(
  8183. "novamov\.com\/\\w+",
  8184. 'For version detection',
  8185. 'file no longer exists',
  8186. 'optional--',
  8187. //'optional--',
  8188. "//a[contains(@href,'novamov.com')]"
  8189. );
  8190. }
  8191. if (GM_getValue("Check_filehoot_dot_com_links", false))
  8192. {
  8193. addFileHost(
  8194. "filehoot\.com\/\\w+",
  8195. 'Continue to watch',
  8196. 'File Not Found',
  8197. 'optional--',
  8198. //'optional--',
  8199. "//a[contains(@href,'filehoot.com')]"
  8200. );
  8201. }
  8202. if (GM_getValue("Check_stagevu_dot_com_links", false))
  8203. {
  8204. addFileHost(
  8205. "stagevu\.com\/\\w+",
  8206. 'Video Info',
  8207. 'No video with the provided',
  8208. 'optional--',
  8209. //'optional--',
  8210. "//a[contains(@href,'stagevu.com')]"
  8211. );
  8212. }
  8213. if (GM_getValue("Check_cloudtime_dot_to_links", false))
  8214. {
  8215. addFileHost(
  8216. "cloudtime\.to\/\\w+",
  8217. 'Download the video',
  8218. 'no longer exists',
  8219. 'optional--',
  8220. //'optional--',
  8221. "//a[contains(@href,'cloudtime.to')]"
  8222. );
  8223. }
  8224. if (GM_getValue("Check_streamin_dot_to_links", false))
  8225. {
  8226. addFileHost(
  8227. "streamin\.to\/\\w+",
  8228. 'Watch',
  8229. 'Not Found',
  8230. 'optional--',
  8231. //'optional--',
  8232. "//a[contains(@href,'streamin.to')]"
  8233. );
  8234. }
  8235. if (GM_getValue("Check_videoweed_dot_es_links", false))
  8236. {
  8237. addFileHost(
  8238. "videoweed\.es\/\\w+",
  8239. 'version detection',
  8240. 'no longer exists',
  8241. 'optional--',
  8242. //'optional--',
  8243. "//a[contains(@href,'videoweed.es')]"
  8244. );
  8245. }
  8246. if (GM_getValue("Check_nowvideo_dot_sx_links", false))
  8247. {
  8248. addFileHost(
  8249. "nowvideo\.sx\/\\w+",
  8250. 'Download this video',
  8251. 'no longer exists',
  8252. 'optional--',
  8253. //'optional--',
  8254. "//a[contains(@href,'nowvideo.sx')]"
  8255. );
  8256. }
  8257. if (GM_getValue("Check_thevideo_dot_me_links", false))
  8258. {
  8259. addFileHost(
  8260. "thevideo\.me\/\\w+",
  8261. 'Upgrade your account|Proceed to video',
  8262. 'File Not Found',
  8263. 'optional--',
  8264. //'optional--',
  8265. "//a[contains(@href,'thevideo.me')]"
  8266. );
  8267. }
  8268. if (GM_getValue("Check_gorillavid_dot_in_links", false))
  8269. {
  8270. addFileHost(
  8271. "gorillavid\.in\/\\w+",
  8272. 'Wait 5 seconds',
  8273. 'File Not Found',
  8274. 'optional--',
  8275. //'optional--',
  8276. "//a[contains(@href,'gorillavid.in')]"
  8277. );
  8278. }
  8279. if (GM_getValue("Check_thefile_dot_me_links", false))
  8280. {
  8281. addFileHost(
  8282. "thefile\.me\/\\w+",
  8283. 'Choose free or',
  8284. 'File Not Found|error-code">502',
  8285. 'optional--',
  8286. //'optional--',
  8287. "//a[contains(@href,'thefile.me')]"
  8288. );
  8289. }
  8290. if (GM_getValue("Check_vidzi_dot_tv_links", false))
  8291. {
  8292. addFileHost(
  8293. "vidzi\.tv\/\\w+",
  8294. 'video-embed-modal row',
  8295. 'File Not Found',
  8296. 'optional--',
  8297. //'optional--',
  8298. "//a[contains(@href,'vidzi.tv')]"
  8299. );
  8300. }
  8301.  
  8302. }
  8303. //start here
  8304.  
  8305. //hosts with direct download, so they must be requested for headers only
  8306. function initFileHostsHeadersOnly()
  8307. {
  8308. function addFileHostHeadersOnly(linkRegex, isAliveRegex, isDeadRegex, xpathEx, ispremRegex)
  8309. {
  8310. var host = new Array(5);
  8311. host[0] = linkRegex;
  8312. host[1] = isAliveRegex;
  8313. host[2] = isDeadRegex;
  8314. host[3] = xpathEx;
  8315. host[4] = ispremRegex;
  8316. http_file_hosts_headers_only.push(host);
  8317. }
  8318. if (GM_getValue("Check_uloziste_dot_com_links", false))
  8319. {
  8320. addFileHostHeadersOnly(
  8321. "(?:|files\\.)uloziste\\.com\/\\w+\/\\w+",
  8322. 'Connection: Keep-Alive',
  8323. 'Content-Length: 3857',
  8324. "//a[contains(@href,'uloziste.com')]"
  8325. )
  8326. }
  8327. if (GM_getValue("Check_adrive_dot_com_links", false))
  8328. {
  8329. addFileHostHeadersOnly(
  8330. "adrive\\.com\/public\/\\w+",
  8331. 'Connection: keep-alive',
  8332. 'orig_ref=deleted',
  8333. "//a[contains(@href,'adrive.com')]"
  8334. )
  8335. }
  8336. if (GM_getValue("Check_myupload_dot_dk_links", false))
  8337. {
  8338. addFileHostHeadersOnly(
  8339. "myupload\\.dk\/showfile\/\\w+",
  8340. 'Expires:',
  8341. 'squeeze1\\s+Vary',
  8342. "//a[contains(@href,'myupload.dk/showfile')]"
  8343. )
  8344. }
  8345. }
  8346. //CustomRules
  8347. //functions add...Host copied here
  8348. function addObsoleteHost(linkRegex, xpathEx)
  8349. {
  8350. var host = new Array(2);
  8351. host[0] = linkRegex;
  8352. host[1] = xpathEx;
  8353. http_file_hosts_obsolete.push(host);
  8354. }
  8355. function addFileHost(linkRegex, isAliveRegex, isDeadRegex, isUnavaRegex, xpathEx, tryLoop, ispremRegex)
  8356. {
  8357. var host = new Array(7);
  8358. host[0] = linkRegex;
  8359. host[1] = isAliveRegex;
  8360. host[2] = isDeadRegex;
  8361. host[3] = isUnavaRegex;
  8362. host[4] = xpathEx;
  8363. tryLoop ? host[5] = true : host[5] = false;
  8364. host[6] = ispremRegex;
  8365. http_file_hosts.push(host);
  8366. }
  8367. function addFileHostHeadersOnly(linkRegex, isAliveRegex, isDeadRegex, xpathEx, ispremRegex)
  8368. {
  8369. var host = new Array(5);
  8370. host[0] = linkRegex;
  8371. host[1] = isAliveRegex;
  8372. host[2] = isDeadRegex;
  8373. host[3] = xpathEx;
  8374. host[4] = ispremRegex;
  8375. http_file_hosts_headers_only.push(host);
  8376. }
  8377. //takes a fully built rules array and adds the rules to WARLC
  8378. function applyCustomRules(customRules)
  8379. {
  8380. if (!customRules) return;
  8381. var rules, r, i;
  8382. rules = customRules.rules;
  8383. for (i = 0 ; i < rules.length ; i++)
  8384. {
  8385. r = rules[i];
  8386. if (r.enabled)
  8387. {
  8388. switch (r.type)
  8389. {
  8390. case 'single':
  8391. addFileHost(r.urlregex, r.aliveregex, r.deadregex, r.unavaregex, r.premregex||'', r.xpath);
  8392. break;
  8393. case 'headers':
  8394. addFileHostHeadersOnly(r.urlregex, r.aliveregex, r.deadregex, r.xpath, r.premregex);
  8395. break;
  8396. case 'obsolete':
  8397. addObsoleteHost(r.urlregex, r.xpath)
  8398. break;
  8399. }
  8400. }
  8401. }
  8402. }
  8403.  
  8404.  
  8405. function initFileHostsCustom()
  8406. {
  8407. if (Custom_rules && Custom_rules_text)
  8408. {
  8409. var msg = '';
  8410. if (newVersion)
  8411. msg = 'New version of W.A.R. Links Checker detected.\n\n';
  8412. else if ((now - last_custom_rules_nag) >= 60*24*60*60*1000)
  8413. msg = '60 or more days have passed since this notification.\n\n';
  8414. if (msg && /^\s*@customrule(?:_obsolete)?\s/mi.test(Custom_rules_text))
  8415. {
  8416. GM_setValue('last_custom_rules_nag', ''+new Date().getTime()); //reset nag
  8417. msg +=
  8418. 'Either new version of W.A.R. Links Checker detected or 60 days passed since this notify.\n'+
  8419. 'Please check that your custom rules haven\'t been built into WARLC.\n'+
  8420. 'If not, please share them with us so they can be included in the next version! Built-in rules are always preferred.\n\n'+
  8421. 'We apologize for this annoying notification, but there is a reason to this.\n'+
  8422. 'Ideally, WARLC would check which of your custom rules have been included and disable them. '+
  8423. 'Unfortunately, there is no easy way to do that, but we don\'t want everybody to just use their custom rules '+
  8424. 'forever without ever checking if the built-in ones have been added/fixed. This is currently the only way '+
  8425. 'to remind you that you should try built-in rules, report missing/non-working ones and share your custom rules.';
  8426. setTimeout(function(){alert(msg)},0);
  8427. }
  8428. var customRules = parseCustomRules(Custom_rules_text);
  8429. if (customRules.warning || customRules.error)
  8430. alert('There were ' + customRules.error + ' errors, ' + customRules.warning + ' warnings, ' +
  8431. customRules.note + ' notes found during Custom Rules processing.\n' + customRules.rules.length + ' valid rules found.\n\n' +
  8432. JSON.stringify(customRules.info, null, ' '));
  8433. applyCustomRules(customRules);
  8434. }
  8435. }
  8436. //end of CustomRules processing
  8437.  
  8438.  
  8439.  
  8440. } //end of function start
  8441.  
  8442.  
  8443.  
  8444. function initClipBoardTools()
  8445. {
  8446. unsafeWindow.copyToClipboard = function(text)
  8447. {
  8448. try
  8449. {
  8450. this.netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
  8451.  
  8452. var str = Components.classes["@mozilla.org/supports-string;1"].
  8453. createInstance(Components.interfaces.nsISupportsString);
  8454. if (!str) return false;
  8455.  
  8456. str.data = text;
  8457.  
  8458. var trans = Components.classes["@mozilla.org/widget/transferable;1"].
  8459. createInstance(Components.interfaces.nsITransferable);
  8460. if (!trans) return false;
  8461.  
  8462. trans.addDataFlavor("text/unicode");
  8463. trans.setTransferData("text/unicode", str, text.length * 2);
  8464.  
  8465. var clipid = Components.interfaces.nsIClipboard;
  8466. var clip = Components.classes["@mozilla.org/widget/clipboard;1"].getService(clipid);
  8467. if (!clip) return false;
  8468.  
  8469. clip.setData(trans, null, clipid.kGlobalClipboard);
  8470. } catch (e) {
  8471. GM_log("Error copyToClipboard : " + e);
  8472. alert(e + "\n\nsigned.applets.codebase_principal_support must be set true in about:config")
  8473. }
  8474. }
  8475. }
  8476.  
  8477.  
  8478.  
  8479. //CustomRules
  8480.  
  8481. function escapeRegex(str)
  8482. {
  8483. return str.replace(/[\-\[\]{}()*+?.,\\\^$|#]/g, "\\$&");
  8484. }
  8485.  
  8486.  
  8487. //called internally from parseCustomRules.
  8488. //expected: rule object with array fields baseurl, alivematch etc, everything must already be checked for input errors
  8489. //returns the rule object with string fields urlregex, xpath, aliveregex etc built from the arrays
  8490. function makeCustomRule(rule)
  8491. {
  8492. function makeMatchRegex(arrmatch)
  8493. {
  8494. return escapeRegex(arrmatch.join('\n'))
  8495. .replace(/ +/g, '\\s+') //two or more spaces to any whitespace
  8496. .replace(/\n/g,'|'); //join together
  8497. }
  8498. if (rule.alivematch) rule.aliveregex = makeMatchRegex(rule.alivematch);
  8499. if (rule.deadmatch) rule.deadregex = makeMatchRegex(rule.deadmatch);
  8500. if (rule.unavamatch) rule.unavaregex = makeMatchRegex(rule.unavamatch);
  8501. if (rule.premmatch) rule.premregex = makeMatchRegex(rule.premmatch);
  8502. if (rule.baseurl)
  8503. {
  8504. var i, m, urlregex = [], xpath = [], len = rule.baseurl.length;
  8505. for (i = 0 ; i < len ; i++)
  8506. {
  8507. m = rule.baseurl[i].match(/^([a-z0-9\.-]+)(?: +([a-z \.]+) +)?(\/.*)$/);
  8508. if (m[2]) //baseurl in the form: example. com co.uk net /xxx
  8509. {
  8510. 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'])
  8511. urlregex.push( (m[1] + '(?:'+ m[2].replace(/\s+/g,'|') + ')').replace(/\./g,'\\.') + escapeRegex(m[3]) + '.'); //urlregex.push('example\\.(?:com|co\\.uk|net)/xxx.')
  8512. }
  8513. else //baseurl in the form: example.com/xxx
  8514. {
  8515. xpath.push(m[0]);
  8516. urlregex.push(escapeRegex(m[0]) + '.');
  8517. }
  8518. }
  8519. rule.xpath = "//a[contains(@href,'" + xpath.join("') or contains(@href,'") + "')]";
  8520. rule.urlregex = '(?:[a-z0-9\\.-]+\\.)?(?:' + urlregex.join('|') + ')';
  8521. }
  8522. return rule;
  8523. } //function makeCustomRule
  8524.  
  8525.  
  8526. /*
  8527. Takes a string containing custom link checking rules.
  8528. Returns an object with fields:
  8529. info - contains notes, warnings and errors found during parsing
  8530. rules - the array of custom rules
  8531. note, warning, error - number of each of them found during parsing
  8532. Format of the input string:
  8533. One command per line. Command format: @keyword parameter
  8534. Keywords:
  8535. @customrule, @customrule_obsolete, @customrule_headers - begin a new custom rule. Parameter: name of the rule
  8536. @#customrule, @#customrule_obsolete, @#customrule_headers - begin and parse this custom rule, but don't use it. Parameter: name of the rule
  8537. These keywords can be multiple (any of them will work):
  8538. @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...)
  8539. @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+
  8540. @alivelink, @deadlink - example links
  8541. @baseurl is always required, @alivematch and @deadmatch are required except for obsolete. @unavamatch is ignored for obsolete. @*link is optional.
  8542. Lines starting with // and empty lines are ignored.
  8543. Invalid parameters generate errors and those lines are skipped.
  8544. Other lines generate warnings, but are otherwise ignored (also those before the first @customrule line or inside a rule with invalid name).
  8545. Example:
  8546. @customrule filehost
  8547. @baseurl filehost.com/download/
  8548. @baseurl filehost2. com net /d?=
  8549. @alivematch id="download">
  8550. @deadmatch File not found
  8551. @deadmatch File deleted
  8552. */
  8553. function parseCustomRules(rulesStr)
  8554. {
  8555. var linenum, customRules = {'info': [], 'rules': [], 'note': 0, 'warning': 0, 'error': 0};
  8556. function addInfo(type, msg, ln){
  8557. customRules.info.push({'linenum':(ln===undefined ? linenum+1 : ln+1), 'type':type, 'msg':msg});
  8558. customRules[type]++;
  8559. }
  8560. var lines = rulesStr.match(/^(.*)$/gm); //split into array of lines
  8561. if (!lines) return null;
  8562. lines.push('@#customrule _'); //to save the last rule
  8563. var m, linecount = lines.length;
  8564. var keyword, param, constr, rule, err;
  8565. var TLD = '[a-z]{2,7}(?:\\.[a-z]{2,7})?';
  8566. var TLDorTLDlist = '(?:'+TLD+'| '+TLD+'(?: '+TLD+'){0,9} )'; //TLD or space-separated list of TLDs
  8567. var baseurlRE = new RegExp('^([a-z0-9-]{1,30}(?:\\.[a-z0-9-]{1,30}){0,2}\\.)'+TLDorTLDlist+'(/[^\'"\s\$]{0,50})$', 'i');
  8568. var constraints = {
  8569. 'baseurl': {
  8570. 'single': {'min': 1, 'max': 10, 'paramRE': baseurlRE},
  8571. 'headers': {'min': 1, 'max': 10, 'paramRE': baseurlRE},
  8572. 'obsolete': {'min': 1, 'max': 10, 'paramRE': baseurlRE}},
  8573. 'alivematch': {
  8574. 'single': {'min': 1, 'max': 10, 'paramRE': null},
  8575. 'headers': {'min': 1, 'max': 10, 'paramRE': null}},
  8576. 'deadmatch': {
  8577. 'single': {'min': 1, 'max': 10, 'paramRE': null},
  8578. 'headers': {'min': 1, 'max': 10, 'paramRE': null}},
  8579. 'unavamatch': {
  8580. 'single': {'min': 0, 'max': 10, 'paramRE': null}},
  8581. 'alivelink': {
  8582. 'single': {'min': 0, 'max': 10, 'paramRE': null},
  8583. 'headers': {'min': 0, 'max': 10, 'paramRE': null}},
  8584. 'deadlink': {
  8585. 'single': {'min': 0, 'max': 10, 'paramRE': null},
  8586. 'headers': {'min': 0, 'max': 10, 'paramRE': null},
  8587. 'obsolete': {'min': 0, 'max': 10, 'paramRE': null}}
  8588. };
  8589. for (linenum = 0 ; linenum < linecount ; linenum++)
  8590. {
  8591. //capturing groups: 1 23 4 5 6
  8592. m = lines[linenum].match(/^\s*(?:(\/\/.*)|@((#?)(customrule)(?:_(headers|obsolete))?|baseurl|alivematch|deadmatch|unavamatch|alivelink|deadlink)\s+(.+))?$/i);
  8593. if (m)
  8594. {
  8595. if (m[1] || !m[2])
  8596. continue; // ignore empty lines and lines starting with //
  8597. keyword = (m[4] || m[2]).toLowerCase();
  8598. param = m[6];
  8599. if (keyword == 'customrule')
  8600. {
  8601. //save the current rule if all required fields are provided
  8602. if (rule)
  8603. {
  8604. err = false;
  8605. $.each(constraints, function(kw, constraint){
  8606. var l, constr = constraint[rule.type];
  8607. if (constr)
  8608. {
  8609. l = rule[kw] ? rule[kw].length : 0;
  8610. if (l < constr.min || l > constr.max)
  8611. {
  8612. 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);
  8613. err = true;
  8614. }
  8615. }
  8616. });
  8617. if (!err)
  8618. customRules.rules.push(makeCustomRule(rule));
  8619. }
  8620. //start a new rule
  8621. if (/^[\w\.-]{1,30}$/.test(param)) //valid name?
  8622. {
  8623. rule = {
  8624. 'enabled': !m[3],
  8625. 'type': m[5] ? m[5].toLowerCase() : 'single',
  8626. 'name': param
  8627. };
  8628. }
  8629. else
  8630. {
  8631. addInfo('error', 'Invalid rule name. Cannot start a new rule definition.');
  8632. rule = null;
  8633. }
  8634. }
  8635. else //good line format, but keyword other than customrule
  8636. {
  8637. if (!rule)
  8638. {
  8639. addInfo('warning', 'Command outside @CUSTOMRULE definiton. Line skipped.');
  8640. continue;
  8641. }
  8642. if (constraints[keyword])
  8643. {
  8644. constr = constraints[keyword][rule.type];
  8645. if (constr)
  8646. {
  8647. if (constr.paramRE && !constr.paramRE.test(param))
  8648. {
  8649. addInfo('warning', 'Invalid @' + keyword.toUpperCase() + ' parameter. Line Skipped.');
  8650. continue;
  8651. }
  8652. }
  8653. else
  8654. {
  8655. addInfo('note', '@' + keyword.toUpperCase() + ' not applicable for type ' + rule.type.toUpperCase() + '. Line skipped.');
  8656. continue;
  8657. }
  8658. }
  8659. //line OK, save
  8660. rule[keyword] ? rule[keyword].push(param) : rule[keyword] = [param];
  8661. }
  8662. } //if (m)
  8663. else
  8664. addInfo('warning', 'Unknown line format. Line skipped.');
  8665. } //for loop
  8666. return customRules;
  8667. } //function parseCustomRules