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

detects live, dead and premium links.

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

  1. // ==UserScript==
  2. // @name W.A.R. Links Checker Customized Premium Link Version
  3. // @description detects live, dead and premium links.
  4. // @details this script automatically checks links from 650+ filehosts. For Firefox, Chrome, Opera, Safari.
  5. // @namespace premium version
  6. // @version 1.1.7.6
  7. // @icon http://sharenxs.com/photos/2014/02/14/52fd759db90ac/cooltext1428903746.png
  8. // @license GPL version 3 or any later version (http://www.gnu.org/copyleft/gpl.html)
  9. // @author mental
  10. // @include http://*
  11. // @include https://*
  12. // @include file:///*
  13. // @grant GM_setValue
  14. // @grant GM_getValue
  15. // @grant GM_xmlhttpRequest
  16. // @grant GM_log
  17. // @grant GM_addStyle
  18. // @grant GM_registerMenuCommand
  19. // @grant GM_getResourceText
  20. // @grant GM_info
  21. // @require https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js
  22. // @require https://ajax.googleapis.com/ajax/libs/jqueryui/1.9.1/jquery-ui.min.js
  23. // @resource jQueryUICSS https://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/smoothness/jquery-ui.css
  24. // @homepage http://www.warlc.5gbfree.com
  25. // @namespace http://www.warlc.5gbfree.com
  26. // @noframes
  27. // ==/UserScript==
  28.  
  29. //separate alternative domains with "|" char (first name is considered being main)
  30. var allHostNames = [
  31. "1fichier.com|dl4free.com",
  32. "filenuke.com",
  33. "vidto.me",
  34. "vidspot.net",
  35. "sharesix.com|sharesix.net",
  36. "movpod.in",
  37. "thefile.me",
  38. "vidzi.tv",
  39. "videoweed.es",
  40. "vodlocker.com",
  41. "nowvideo.sx",
  42. "cloudtime.to",
  43. "thevideo.me",
  44. "vidbull.com",
  45. "allmyvideos.net",
  46. "novamov.com",
  47. "filehoot.com",
  48. "stagevu.com",
  49. "gorillavid.in",
  50. "streamin.to",
  51. "4upld.com",
  52. "cloudshares.net",
  53. "swoopshare.com",
  54. "newfileland.com",
  55. "2shared.com",
  56. "fileupload.pw",
  57. "zxcfiles.com",
  58. "up07.net",
  59. "4shared.com",
  60. "adrive.com",
  61. "aisfile.com",
  62. "hexupload.com",
  63. "bezvadata.cz",
  64. "burnupload.com|burnupload.ihiphop.com",
  65. "xkeepfile.com|Gamesena.com",
  66. // "firedrive.com",
  67. "usersfiles.com",
  68. "pan.baidu.com",
  69. "radicalshare.com",
  70. "cramit.in|cramitin.net",
  71. "datei.to",
  72. "daten-hoster.de|filehosting.org|xtraupload.de",
  73. "demo.ovh.eu",
  74. "depositfiles.com|depositfiles.lt|depositfiles.org|dfiles.ru|dfiles.eu",
  75. "divshare.com",
  76. "easy-share.com|crocko.com",
  77. "easybytez.com",
  78. "edisk.cz",
  79. "euroshare.eu",
  80. "file-upload.net",
  81. "yadi.sk",
  82. "ryushare.com",
  83. "wizupload.com",
  84. "fastshare.cz",
  85. "filefactory.com",
  86. "share.vnn.vn",
  87. "yunpan.cn",
  88. "gulfup.com",
  89. "tropicshare.com",
  90. "cloudzilla.to",
  91. "inclouddrive.com",
  92. "fileflyer.com",
  93. "filerio.com|filekeen.com",
  94. "up.4share.vn",
  95. "upfile.vn",
  96. "datafilehost.com",
  97. "fileband.com",
  98. "worldbytez.com",
  99. "files.mail.ru",
  100. "filepost.com|fp.io",
  101. "filesflash.com",
  102. "box.com",
  103. "box.net",
  104. "goldbytez.com",
  105. "sdilej.cz",
  106. "ex-load.com",
  107. "filesmonster.com",
  108. "filestore.to",
  109. // "freakshare.net",
  110. "hulkload.com",
  111. "filedropper.com",
  112. "free-uploading.com",
  113. "gamefront.com|filefront.com",
  114. "gettyfile.ru",
  115. "gigapeta.com",
  116. "gigasize.com",
  117. "hellshare.com",
  118. "hellspy.com",
  119. "hitfile.net",
  120. "hostuje.net",
  121. "freefilehosting.net",
  122. "free.fr",
  123. "hulkshare.com",
  124. "hyperfileshare.com",
  125. "filecloud.io|ifile.it",
  126. "ifolder.ru",
  127. "jumbofiles.com",
  128. "uploadrocket.net",
  129. "lafiles.com",
  130. "leteckaposta.cz|sharegadget.com",
  131. "letitbit.net",
  132. "load.to",
  133. "mediafire.com",
  134. "megafileupload.com",
  135. "megashares.com",
  136. "movshare.net",
  137. "muchshare.net",
  138. "myupload.dk",
  139. "narod.ru|narod.yandex.ru",
  140. "netload.in",
  141. "fboom.me",
  142. "fileboom.me",
  143. "openfile.ru",
  144. "partage-facile.com",
  145. "plunder.com",
  146. // "putlocker.com",
  147. "sharerapid.cz",
  148. "exclusiveloader.com",
  149. "acefile.net",
  150. "queenshare.com",
  151. "quickshare.cz",
  152. "rapidgator.net",
  153. "keep2share.com",
  154. "oboom.com",
  155. "filepi.com",
  156. "neodrive.co",
  157. "rarefile.net",
  158. "rayfile.com",
  159. "rghost.net",
  160. "sendmyway.com",
  161. "clicknupload.com",
  162. "sharemods.com",
  163. "hostr.co",
  164. "sendspace.com",
  165. "sharecash.org",
  166. "share-links.biz",
  167. "share-online.biz|egoshare.com",
  168. "megarapid.cz",
  169. "shareflare.net",
  170. "solidfiles.com",
  171. "led.wf",
  172. "lan.wf",
  173. "adlink.wf",
  174. "click.tf",
  175. "kyc.pm",
  176. "ssh.tf",
  177. "ssh.yt",
  178. "yep.pm",
  179. "stahovanizasms.cz",
  180. "tufiles.ru",
  181. "turbobit.net",
  182. "filecloud.cc",
  183. "tikfile.com",
  184. "cloudsix.me",
  185. "turboupload.com",
  186. "uloz.to|ulozto.cz|bagruj.cz|zachowajto.pl",
  187. "ulozisko.sk",
  188. "uloziste.com",
  189. "unibytes.com",
  190. "upload-il.net|przeslij.net",
  191. "uploaded.to|ul.to",
  192. "uploading.com",
  193. "chayfile.com",
  194. "rockfile.eu",
  195. "24uploading.com",
  196. "uploadspace.pl",
  197. "upnito.sk",
  198. "uptobox.com",
  199. "usaupload.net",
  200. "veehd.com",
  201. "videobb.com",
  202. "vip-file.com",
  203. "webshare.cz",
  204. "xdisk.cz",
  205. "yunfile.com|filemarkets.com",
  206. "ziddu.com",
  207. "krotix.net",
  208. "zippyshare.com",
  209. "rodfile.com",
  210. "migahost.com",
  211. "wikiupload.com",
  212. "uploadstube.de",
  213. "faststore.org",
  214. "flyfiles.net",
  215. "nowdownload.eu",
  216. "prefiles.com",
  217. "axifile.com",
  218. "rapidsonic.com|fileparadox.com",
  219. "hackerbox.org",
  220. "amonshare.com",
  221. "data.hu",
  222. "brupload.net",
  223. "userscloud.com",
  224. "netkups.com",
  225. "edoc.com",
  226. "xfileload.com",
  227. "jumbofile.net",
  228. "kumpulbagi.com",
  229. "uppit.com|up.ht",
  230. "downloadani.me",
  231. "filesabc.com",
  232. "sharebeast.com",
  233. "180upload.com",
  234. "verzend.be",
  235. "movreel.com",
  236. "4up.me",
  237. "extmatrix.com",
  238. "sendfiles.nl",
  239. "yourfilestore.com",
  240. "filebig.net",
  241. "nekaka.com",
  242. "file4safe.com",
  243. "tusfiles.net",
  244. "filemac.com",
  245. "idup.in",
  246. "fileswap.com",
  247. "ozofiles.com",
  248. "loudupload.net",
  249. "nosupload.com",
  250. "gboxes.com",
  251. "myvdrive.com|fileserving.com",
  252. "filesin.com",
  253. "novafile.com",
  254. "longfiles.com",
  255. "uploadhero.com",
  256. "uploadbaz.com",
  257. "bitupload.com",
  258. "indowebster.com",
  259. "superload.cz",
  260. "mafiastorage.com",
  261. "4upfiles.com",
  262. "filesmelt.com",
  263. "hellupload.com",
  264. "uploadingit.com",
  265. "stiahni.si",
  266. "sendspace.pl",
  267. "fastshare.org",
  268. "filejoker.net",
  269. "filestore.com.ua",
  270. "secureupload.eu",
  271. "rapidfileshare.net",
  272. "stiahnito.sk",
  273. "rusfolder.com",
  274. "fileover.net",
  275. "catshare.net",
  276. "anonfiles.com",
  277. "mixturecloud.com",
  278. "fileparadox.in",
  279. "filedais.com",
  280. "imdb.com",
  281. "nitroflare.com",
  282. "akafile.com",
  283. "creafile.net",
  284. "hugefiles.net",
  285. "vidxden.com",
  286. "up.top4top.net",
  287. "upload.ee",
  288. "shareplace.org",
  289. "uploadc.com",
  290. "remixshare.com",
  291. "exoshare.com",
  292. "borncash.org",
  293. "junocloud.me",
  294. "keep2share.cc",
  295. "k2s.cc",
  296. "expressleech.com",
  297. "2downloadz.com",
  298. "mightyupload.com",
  299. "anysend.com",
  300. "datafile.com",
  301. "upstore.net",
  302. "upsto.re",
  303. "speedy.sh",
  304. "sanshare.com",
  305. "kingfiles.net",
  306. "uploadhero.co",
  307. "ge.tt",
  308. "filesflash.net",
  309. "salefiles.com",
  310. "keep2s.cc",
  311. "megairon.net",
  312. "datoid.cz",
  313. "cloudstor.es",
  314. "streamfile.com",
  315. "eyesfile.ca",
  316. "filemoney.com",
  317. "uploadboy.com",
  318. "speedshare.eu",
  319. "google.com",
  320. "unlimitzone.com",
  321. "rioupload.com",
  322. "rg.to",
  323. "jumbofiles.org",
  324. "fshare.vn",
  325. "spaceforfiles.com",
  326. "up.media1fire.com",
  327. "depfile.com",
  328. "go4up.com",
  329. "dropbox.com",
  330. "redbunker.net",
  331. "divxpress.com",
  332. "mega.nz|mega.co.nz",
  333. "anafile.com",
  334. "uploadable.ch",
  335. "arabloads.com",
  336. "sharerepo.com",
  337. "sfshare.se",
  338. "files.fm",
  339. "koofile.com",
  340. "vidplay.net",
  341. "storagon.com",
  342. "doraupload.com",
  343. "openload.io",
  344. "geupload.com|lenfile.com",
  345. "uploads.xxx",
  346. ];
  347.  
  348. try
  349. {
  350. //iframes excluded
  351. if (window.top != window.self)
  352. {
  353. return;
  354. }
  355. //allHostNames sites excluded
  356. if (window.location.href.match("https?:\/\/(www\.)?[\w\.-]*(?:" +
  357. allHostNames.join("|").replace(/\./g, "\\.").replace(/-/g, "\\-") +
  358. ")"))
  359. {
  360. return;
  361. }
  362. }
  363. catch (e)
  364. {
  365. return;
  366. }
  367.  
  368. //separate alternative domains with "|" char (first name is considered being main)
  369. var allContainerNames = [
  370. "adf.ly",
  371. "linkcrypt.ws",
  372. "linksafe.me",
  373. "linksave.in",
  374. "linkto.net",
  375. "madlink.sk",
  376. "multiload.cz",
  377. "mirrorcreator.com",
  378. "ncrypt.in",
  379. "redi.re",
  380. "relink.us",
  381. "safelinking.net",
  382. "theloo.katt.it",
  383. "bit.ly",
  384.  
  385. ];
  386.  
  387. //separate alternative domains with "|" char (first name is considered being main)
  388. var allObsoleteNames = [
  389. "uloz.cz",
  390. "freakshare.com",
  391. "freakshare.net",
  392. "daj.to",
  393. "bl.st",
  394. "2drive.net",
  395. "uncapped-downloads.com",
  396. "sockshare.com",
  397. "ddlstorage.com",
  398. "dataport.cz",
  399. "dizzcloud.com",
  400. "stahovadlo.cz",
  401. "shared.com",
  402. "storage.to",
  403. "putlocker.com",
  404. "lumfile.com",
  405. "lumfile.se",
  406. "lumfile.eu",
  407. "firedrive.com",
  408. "fileshare.in.ua",
  409. "filecore.co.nz",
  410. "iskladka.cz",
  411. "file-rack.com",
  412. "fast-load.net",
  413. "subory.sk",
  414. "bigandfree.com",
  415. "fileop.com",
  416. "mujsoubor.cz",
  417. "sendfile.to",
  418. "superfastfile.com",
  419. "quickyshare.com",
  420. "duckload.com",
  421. "uploadstore.net",
  422. "meinupload.com",
  423. "dualshare.com",
  424. "2xupload.to|2xupload.de",
  425. "oxedion.com",
  426. "uploadline.com",
  427. "dll.bz",
  428. "movieshare.in",
  429. "milledrive.com",
  430. "quickupload.net",
  431. "safelink.in",
  432. "metadivx.com",
  433. "divxlink.com",
  434. "uploadrack.com",
  435. "teradepot.com",
  436. "dataup.to",
  437. "upit.to",
  438. "driveway.com",
  439. "eatlime.com",
  440. "a2zuploads.com",
  441. "friendlyfiles.net",
  442. "flyfile.us",
  443. "speedyshare.com",
  444. "uploadspace.eu",
  445. "keepfile.com",
  446. "piggyshare.com",
  447. "uplly.com",
  448. "filecrown.com",
  449. "6giga.com",
  450. "uploadjockey.com",
  451. "bluehost.to",
  452. "filegu.ru",
  453. "filebase.to",
  454. "up-file.com",
  455. "xvideos.com",
  456. "ufox.com",
  457. "filebling.com",
  458. "loaded.it",
  459. "uploadcell.com",
  460. "uploadshare.cz",
  461. "mangoshare.com",
  462. "filestab.com",
  463. "crazyupload.com",
  464. "gaiafile.com",
  465. "sharejunky.com",
  466. "fileho.com",
  467. "bigandfree.com",
  468. "bigfile.in",
  469. "bigshare.eu",
  470. "dahosting.org",
  471. "digisofts.net",
  472. "file4save.com",
  473. "filechip.com",
  474. "filescloud.com",
  475. "saveqube.com",
  476. "turboshare.de",
  477. "z-upload.com",
  478. "youshare.com",
  479. "jiffyupload.com",
  480. "gigeshare.com",
  481. "datenklo.net",
  482. "upload.dj",
  483. "loadfiles.in",
  484. "upit.to",
  485. "dsfileshare.com",
  486. "sharesimple.net",
  487. "4files.net",
  488. "wooupload.com",
  489. "odsiebie.com",
  490. "filenavi.com",
  491. "3oof.com",
  492. "meshwaar.com",
  493. "maxupload.com",
  494. "share.cx",
  495. "atserver.eu",
  496. "hotfiles.ws",
  497. "esnips.com",
  498. "tuxfile.com",
  499. "file2upload.net",
  500. "filebling.com",
  501. "turboshare.com",
  502. "rarhost.com",
  503. "isharehd.com",
  504. "i741.com",
  505. "dataup.de",
  506. "fofly.com",
  507. "shareonall.com",
  508. "sexuploader.com",
  509. "megaupload.com|megavideo.com|megaporn.com|megarotic.com",
  510. "uploadhyper.com",
  511. "filespawn.com",
  512. "caizzii.com",
  513. "volnyweb.cz",
  514. "usershare.net",
  515. "filescash.net",
  516. "metahyper.com",
  517. "combozip.com",
  518. "x7.to",
  519. "uploadbox.com",
  520. "enterupload.com|flyupload.com",
  521. "filepoint.de",
  522. "mystream.to",
  523. "x-fs.com",
  524. "shareator.com",
  525. "srapid.eu",
  526. "sosame.cz",
  527. "filesdump.com",
  528. "2-klicks.de",
  529. "uploking.com",
  530. "silofiles.com",
  531. "upfile.in",
  532. "filehook.com",
  533. "uploadking.com",
  534. "uploadhere.com",
  535. "kewlshare.com",
  536. "rapidable.com",
  537. "uploadwaste.com",
  538. "filemup.com",
  539. "filesonic.com|sharingmatrix.com",
  540. "fileserve.com",
  541. "wupload.com",
  542. "skipfile.com",
  543. "smartuploader.com",
  544. "dualshare.com",
  545. "storeandserve.com",
  546. "mountfile.com",
  547. "transitfiles.com",
  548. "uploadstation.com",
  549. "filejungle.com",
  550. "shareshared.com",
  551. "quickyshare.com",
  552. "save.am",
  553. "petandrive.com",
  554. "file2box.com",
  555. "flyshare.cz",
  556. "yabadaba.ru",
  557. "cloudcache.cc",
  558. "yourfilehost.com",
  559. "jakfile.com",
  560. "kickload.com",
  561. "pyramidfiles.com",
  562. "refile.net",
  563. "zshare.net",
  564. "ddlani.me|ddlanime.com",
  565. "ftp2share.com",
  566. "fooget.com",
  567. "rapidhide.com",
  568. "gotupload.com",
  569. "mooload.com",
  570. "zupload.com",
  571. "mytempdir.com",
  572. "onionshare.com",
  573. "stahnu.to",
  574. "oron.com",
  575. "badongo.com",
  576. "filereactor.com",
  577. "filegaze.com",
  578. "4bytez.com",
  579. "1hostclick.com",
  580. "anonstream.com",
  581. "batshare.com",
  582. "bitroad.net",
  583. "brontofile.com",
  584. "cloudnxt.net",
  585. "cloudnator.com|shragle.com",
  586. "filesfrog.net",
  587. "coolshare.cz",
  588. "dotavi.com",
  589. "ezyfile.net",
  590. "file-bit.net",
  591. "filecosy.com",
  592. "fileduct.com|fileduct.net",
  593. "filefat.com",
  594. "filelaser.com",
  595. "filemashine.com",
  596. "fileserver.cc",
  597. "filetechnology.com",
  598. "fireuploads.net",
  599. "gigfiles.net",
  600. "holderfile.com",
  601. "ihostia.com",
  602. "k2files.com",
  603. "mojofile.com",
  604. "ovfile.com",
  605. "qshare.com",
  606. "shafiles.me",
  607. "sharefilehost.com",
  608. "shareupload.com",
  609. "stahuj.to",
  610. "ugotfile.com",
  611. "uploadboost.com",
  612. "fileom.com",
  613. "vidhog.com",
  614. "xfileshare.eu",
  615. "bzlink.us",
  616. "bulletupload.com",
  617. // "wizzupload.com",
  618. "bloggerarticles.com",
  619. "mojedata.sk",
  620. "sharpfile.com",
  621. "upgrand.com",
  622. "nasdilej.cz",
  623. "mediatack.cz",
  624. "share-it.to",
  625. "primeupload.com",
  626. "filebeer.info",
  627. "baberepublic",
  628. "xtu.me",
  629. "sharebase.de",
  630. "luckyshare.net",
  631. "filerobo.com",
  632. "filevelocity.com",
  633. "filezpro.com",
  634. "file4sharing.com",
  635. "cing.be",
  636. "ufile.eu",
  637. "pigsonic.com",
  638. "fileupped.com",
  639. "sharerun.com",
  640. "filesaur.com",
  641. "rapidslnare.com",
  642. "bestsharing.com",
  643. "savefiles.net",
  644. "file2share.biz",
  645. "filecache.de",
  646. "monsteruploads.eu",
  647. "b9bb.com",
  648. "aiotool.net",
  649. "jamber.info",
  650. "megaftp.com",
  651. "desiupload.net",
  652. "file27.com",
  653. "yastorage.com",
  654. "filehost.ws",
  655. "copyload.com",
  656. "venusfile.com",
  657. "aieshare.com",
  658. "terafile.co",
  659. "terafile.com",
  660. "fileza.net",
  661. "filerose.com",
  662. "squillion.com",
  663. "fileprohost.com",
  664. "bitbonus.com",
  665. "warserver.cz",
  666. "uload.to",
  667. "sharedbit.net",
  668. "megaload.it",
  669. "filewinds.com",
  670. "uploadcore.com",
  671. "syfiles.com",
  672. "eyesfile.com",
  673. "hotfile.com",
  674. "superupl.com",
  675. "oteupload.com",
  676. "henchfile.com",
  677. "filegag.com",
  678. "HenchFile.com",
  679. "filedefend.com",
  680. "share-rapid.com|rapids.cz|share-credit.cz|share-central.cz|share-ms.cz|share-net.cz|srapid.cz|share-rapid.cz",
  681. "megabitshare.com",
  682. "cloudzer.com",
  683. "asfile.com",
  684. "cloudzer.net",
  685. "clz.to",
  686. "extabit.com",
  687. "247upload.com",
  688. "2download.de",
  689. "4fastfile.com",
  690. "asixfiles.com",
  691. "berofile.com",
  692. "bigupload.com",
  693. "cepzo.com",
  694. "clouds.to",
  695. "cobrashare.sk",
  696. "coraldrive.net",
  697. "cyberlocker.ch",
  698. "czshare.com",
  699. "darkport.org",
  700. "dark-uploads.com",
  701. "davvas.com",
  702. "enigmashare.com",
  703. "erofly.cz",
  704. "fastsonic.net",
  705. "filebox.com",
  706. "filecity.net",
  707. "filedap.com",
  708. "filedino.com",
  709. "filedownloads.org",
  710. "filefolks.com",
  711. "fileking.co",
  712. "filemates.com",
  713. "files.to",
  714. "files2k.eu",
  715. "filesector.cc",
  716. "bitshare.com",
  717. "filesega.com",
  718. "filesend.net",
  719. "filestay.com",
  720. "filestrum.com",
  721. "fileuplo.de",
  722. "fileupup.com",
  723. "forunesia.com",
  724. "freeuploads.fr",
  725. "uploa.dk",
  726. "getthebit.com",
  727. "getzilla.net",
  728. "goldfile.eu",
  729. "good.com",
  730. "grupload.com",
  731. "hellfile.com",
  732. "hipfile.com",
  733. "hitfile.com",
  734. "hulkfile.eu|duckfile.net",
  735. "i-filez.com",
  736. "ifile.ws",
  737. "kupload.org",
  738. "packupload.com",
  739. "lemuploads.com",
  740. "limelinx.com",
  741. "maxshare.pl",
  742. "megarelease.org",
  743. "megashare.com",
  744. "minus.com",
  745. "mlfat4arab.com",
  746. "multishare.cz",
  747. "nirafile.com",
  748. "ok2upload.com",
  749. "peejeshare.com",
  750. "premiuns.org",
  751. "przeklej.net",
  752. "qkup.net",
  753. "rapidupload.sk",
  754. "rockdizfile.com",
  755. "rocketfile.net",
  756. "share-now.net",
  757. "share76.com",
  758. "sharebees.com",
  759. "sharefiles.co",
  760. "slingfile.com",
  761. "sms4file.com",
  762. "space4file.com",
  763. "tigershare.net",
  764. "toucansharing.com",
  765. "ubuntuone.com",
  766. "unextfiles.com",
  767. "upaj.pl",
  768. "upfile.biz",
  769. "uploadbin.net",
  770. "uploadic.com",
  771. "uploadinc.com",
  772. "uploading4u.eu",
  773. "uploadjet.net",
  774. "uploadorb.com",
  775. "upthe.net",
  776. "uptorch.com",
  777. "vidbox.yt",
  778. "videozer.com",
  779. "vreer.com",
  780. "wallobit.com",
  781. "zooupload.com",
  782. "privatefiles.com",
  783. "xerver.co",
  784. "BillionUploads.com",
  785. "rapidshare.com",
  786. "rapidshare.ru",
  787. "4savefile.com",
  788. "bayfiles.com",
  789. "bayfiles.net",
  790. "dodane.pl",
  791. "dotsemper.com",
  792. "egofiles.com",
  793. "epicshare.net",
  794. "fiberupload.net",
  795. "filemonkey.in",
  796. "filemonster.net",
  797. "filepom.com",
  798. "filesbb.com",
  799. "fileshareup.com",
  800. "filevice.com",
  801. "gigaup.fr",
  802. "inafile.com",
  803. "isavelink.com",
  804. "loombo.com",
  805. "megafiles.se",
  806. "migupload.com",
  807. "mydisc.net",
  808. "nitrobits.com",
  809. "potload.com",
  810. "redload.net",
  811. "shareprofi.com",
  812. "sharesuper.info",
  813. "sinhro.net",
  814. "speedfile.cz",
  815. "speedshare.org",
  816. "storage.novoro.net",
  817. "swankshare.com",
  818. "swatupload.com",
  819. "upafile.com",
  820. "uploadmachine.com",
  821. "uploadsat.com",
  822. "upshared.com",
  823. "usefile.com",
  824. "yourfiles.to",
  825. "zomgupload.com",
  826. "ultramegabit.com",
  827. "uploadto.us",
  828.  
  829. ];
  830. ///////////////////////////////////////////////////////////////////////////////////////
  831. var firstRun = GM_getValue("First_run", true);
  832.  
  833. var chromeBrowser = /chrom(e|ium)/.test(navigator.userAgent.toLowerCase());
  834. //////////////////////////////////////////////////////////////////////////////////////
  835. try
  836. {
  837. var thisVersion = GM_info.script.version; //not supported in Scriptish and others
  838. var last_known_version = GM_getValue("last_known_version", "");
  839. if (!last_known_version)
  840. {
  841. last_known_version = thisVersion;
  842. GM_setValue("last_known_version", last_known_version);
  843. }
  844. //var newVersion = !(thisVersion == last_known_version);
  845. var newVersion = !(a.replace(/^(\d+\.\d+\.\d+).*/,'$1') == b.replace(/^(\d+\.\d+\.\d+).*/,'$1')); //true only if one of the first three numbers differs
  846. GM_setValue("last_known_version", thisVersion);
  847. }
  848. catch (err)
  849. {
  850. var newVersion = false;
  851. }
  852.  
  853. var now = (new Date()).getTime();
  854. var last_custom_rules_nag = GM_getValue('last_custom_rules_nag', 0);
  855. if (!last_custom_rules_nag)
  856. {
  857. last_custom_rules_nag = now;
  858. GM_setValue('last_custom_rules_nag', ''+now);
  859. }
  860.  
  861.  
  862. allHostNames.sort();
  863. allContainerNames.sort();
  864. allObsoleteNames.sort();
  865.  
  866. var RAND_STRING = "8QyvpOSsRG3QWq";
  867. var DEBUG_MODE = false;
  868.  
  869. var TOOLTIP_MAXWIDTH = 600; //in pixels
  870. var TOOLTIP_THUMBWIDTH = 200;
  871. var containers_processed = false;
  872.  
  873. //settings for keyboard functions start
  874. var CHECK_ALL_LINKS_KEY = "A";
  875. var CONFIGURATION_KEY = "C";
  876. var copy_to_dead_key = "D";
  877. var toggle_autocheck_key = "W";
  878. var toggle_Enable_Anonymizer_key = "Z";
  879. var first_key_keycode = '17'; // 18=ALT 16=Shift 17=Ctrl 32=SPACE_BAR 9=TAB
  880. var first_key_keycodename = 'CTRL';
  881. var second_key_keycode = '18';
  882. var second_key_keycodename = 'ALT';
  883. var CHECK_ALL_LINKS_KEYCODE = CHECK_ALL_LINKS_KEY.charCodeAt(0);
  884. var CONFIGURATION_KEYCODE = CONFIGURATION_KEY.charCodeAt(0);
  885. var copy_to_dead_keycode = copy_to_dead_key.charCodeAt(0);
  886. var toggle_autocheck_keycode = toggle_autocheck_key.charCodeAt(0);
  887. var toggle_Enable_Anonymizer_keycode = toggle_Enable_Anonymizer_key.charCodeAt(0);
  888. //settings for keyboard functions end
  889.  
  890. //global settings start
  891. var Show_black_background_in_DL_links, Show_line_through_in_dead_links, Color_DL_links;
  892. var Live_links_color, Dead_links_color, Temp_unavailable_links_color, Premium_links_color, Ref_anonymize_service;
  893. var Do_not_linkify_DL_links, Keyboard_functions, Autocheck, Enable_Anonymizer;
  894. var Show_progress_stats, Display_tooltip_info, Icon_set;
  895. var Progress_box_pos_bottom, Progress_box_pos_right, Progress_box_opacity, Progress_box_background_color, Progress_box_item_color;
  896. var Progress_box_refresh_rate;
  897. var Obsolete_file_hosts;
  898. var Custom_rules, Custom_rules_text;
  899.  
  900. var messageBox = document.createElement('b'); // top-left message box
  901.  
  902. var cLinksTotal = 0;
  903. var cLinksDead = 0;
  904. var cLinksAlive = 0;
  905. var cLinksUnava = 0;
  906. var cLinksprem = 0;
  907. var cLinksProcessed = 0;
  908.  
  909. var intervalId; //for updateProgress()
  910.  
  911. //icon resources
  912. 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/xgNoRCJMTCQhBCCmSAHHJgKayCQiiG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Y3An1Gr4xkabq70iar9OkOeoWCSqVMAM8hzMiObnIUnQ0RFyR0DkgNylzhh7cB+bmsLrdQ7n5gj1OlG5TPxoHro7kUsC4mdQUB5u0NdziW/r5q2M/PkLfG2NsLwMkRHevyVkWQib26t+FJYMIIOUvt5XdmXkunXEke/sQchRCNDdRfAQ8vXND97af1qCxqkRLUj9XKFq/cUUMMmRQHKFZquh7OBhCRr/aATQ/I97foxKZ9z7A9QA5voyr3dtAAAAAElFTkSuQmCC';
  919. 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=';
  920. var RSLC_ICON_PINK = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAANCAYAAABy6+R8AAAACXBIWXMAAAsTAAAL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+c7vDvOXPK4dPKy2+UTV7hXmq86X23qdOo8/pPTT8e7nLuarrlca7nuer21e2b36RueN87d9L158Rb/1tWeOT3dvfN6b/fF9/XfFt1+cif9zsu72Xcn7q28T7xf9EDtQdlD3YfVP1v+3Njv3H9qwHeg89HcR/cGhYPP/pH1jw9DBY+Zj8uGDYbrnjg+OTniP3L96fynQ89kzyaeF/6i/suuFxYvfvjV69fO0ZjRoZfyl5O/bXyl/erA6xmv28bCxh6+yXgzMV70VvvtwXfcdx3vo98PT+R8IH8o/2j5sfVT0Kf7kxmTk/8EA5jz/GMzLdsAAAAgY0hSTQAAeiUAAICDAAD5/wAAgOkAAHUwAADqYAAAOpgAABdvkl/FRgAAAaJJREFUeNpkkk1rE1EUhp9zJ21NpxJocxctiAQXXYkQQQsG/EJo0a0LyW8ws9KFP0E3HQv6D9x1KbixdTGIlrZuzUJLCM2iEykRJ23S5B4XsZOpPXAW957zXM773iNkQquUgAKAAlpISx3vDXunB8kA5Zbb3hr6l032HtDc7/rQzlWWJt6yk0Japfxr4udWN3dRAMP5UI5bzi5cu5F/ya7RKqWW204BG66c6bart0ePX1iQRjP6krygZIDCv5FMce0+cELx9WMAimuPUCPY8B6AmfYXcy5PwWhGW/vpR2AKdB8bPkScIswRBxupB84Dk3EIgDh4j+CjHIImxLV18sM/Z3rOibard1A5wcg8Kn1s+IAjb2bsiAPjlNNvwYbLINOgfQ5q6yCTqBzjv7qbMgoYl6PTTerSY+Di4ANqBrSDz0z1D2nXPtHr+STPNgFcN6mLm6EjAEfPKTea0Y74V5yHmEm8/6d23aRu7M1KOf4afTMAjWa0e6lUua7JDzNEtceATGoWWHx3a7wu359EzF+tjHfPjYS6kQed2UD3AESEvwMAaQGsQMrwcN0AAAAASUVORK5CYII=';
  921.  
  922. var NEW_ICON_GREEN = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACGklEQVR42mNkIBcwMWQwsDMrMZKhlZmRi2mCWYtE9st1b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OO//Xm27lvN4b1c8htkAXC2jrKHN5gVSRcRW0SCIpIj/f2ZAkhTkykiOYu+SLa8e6qkeRNXALh5nEc/phARnaSJSSUnO5G+B8tnIkr6rjMTSqfMZQXZ9vE1xGKJpPe4DDjXAYkEjAwmzwwDLIv0NZlE1MYAjsQoAOL8C5rY2AxPlIjwP/wcACKn3tWfrwJ4AAAAAElFTkSuQmCC';
  925. var NEW_ICON_PINK = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABUklEQVQ4jY3TsUuWURQG8F8WEvFNDREfIg5RURAOIeL0DhJBS0tDY9BQQ0Oj29kiIvoDhBpFQRTUD1GKi0sRtEs0SEQ0RBQIRcVXw3eF6+vrWwcunPvc53nuPffcS0uEmA0x38Y5cohwGjOYxBBe4VGI3j8NQlzHYhaW0cfNEAslWCfBw4yvYhkv8hjCgxD7yMdquw/jbJ4+xq2cz+AKdrJRv9EAv/EDx3Ft75QhtrHdcFpHy0mS/lSqcVzAFM7he6XaTNLXJoOmS+ziOc4XcB893A3xodUgm5zAHdzHSLH0DhdD/GwsoSjlV5Je5nK+YQUTOInXSXq7x6134RQuo4unGf6Me7iKMxgrNfUuXMJazr8U+DA6Of/UZrCF9xjFM3zELpZwOptulIKmLlQGNXdqS7u4EWK9BA9cYpJ2KtWcwaMazcInuB3iTZ3fGv/znf8CBMxX4hrPUbUAAAAASUVORK5CYII=';
  926.  
  927. //global settings end
  928. if (window.opera && !window.console)
  929. {
  930. window.console = {};
  931.  
  932. function fn()
  933. {
  934. opera.postError(arguments);
  935. };
  936. ['log', 'debug', 'info', 'warn', 'error', 'assert', 'dir', 'dirxml', 'group', 'groupEnd', 'time', 'timeEnd', 'count', 'trace', 'profile', 'profileEnd'].forEach(function (name)
  937. {
  938. window.console[name] = fn;
  939. });
  940. }
  941.  
  942. //displays colored text in message box
  943. function sendMessage(text, color)
  944. {
  945. var msgDiv = document.createElement('div');
  946. msgDiv.style.color = color;
  947. msgDiv.innerHTML = text;
  948. messageBox.appendChild(msgDiv);
  949. setTimeout(function(){messageBox.removeChild(msgDiv)}, 3000);
  950. }
  951.  
  952. function linkify(totalourls)
  953. { // code from http://userscripts.org/scripts/review/2254 Linkify ting
  954. var ikkeTilladteTags;
  955. var allLinksRegex = "(?:http:\/\/.+?\\?)?(?:https?:\/\/)?"
  956. + "[0-9A-Za-z]+(?:[\\.-][0-9A-Za-z]+)*\\.[A-Za-z]+/" //instead of totalourls
  957. + "[\\w\\–\\-\\.+$!*\\/()\\[\\]\',~%?:@#&=\\\\\\—;…×Ã\\_\\u0080-\\u03FF’‘" + (Allow_spaces_in_DL_links ? "\\u0020" : "") + "]*";
  958. allLinksRegex = new RegExp(allLinksRegex, "g");
  959. var regexy = "^(?:http:\/\/.+?\\?)?(?:https?:\/\/)?(?:www\\.)?(?:" + totalourls + ")";
  960.  
  961. if (Do_not_linkify_DL_links)
  962. ikkeTilladteTags = ['a', 'head', 'script', 'style', 'title', 'option', 'iframe', 'textarea', 'span']; //tags, hvor det der stAΞ’Β¥r inden i ikke skal vAΞ’Β¦re links
  963. else
  964. ikkeTilladteTags = ['a', 'head', 'script', 'style', 'title', 'option', 'iframe', 'textarea']; //tags, hvor det der stAΞ’Β¥r inden i ikke skal vAΞ’Β¦re links
  965.  
  966. var regex = new RegExp(regexy);
  967. var textNode, muligtLink;
  968.  
  969. var path = "//text()[not(parent::" + ikkeTilladteTags.join(" or parent::") + ") and contains(.,'/')]";
  970. var textNodes = document.evaluate(path, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  971.  
  972. var i = textNodes.snapshotLength;
  973. while (i--)
  974. {
  975. textNode = textNodes.snapshotItem(i);
  976.  
  977. muligtLink = textNode.nodeValue; //all links on page
  978.  
  979. var myArray = null;
  980. var span = null;
  981. var lastLastIndex = 0;
  982. allLinksRegex.lastIndex = 0;
  983. if (/^https?:\/\/~[\w\s\~]*\//.test(muligtLink))
  984. {
  985. if (textNode.parentNode.className == "adead_link") continue;
  986. var censoredLink = muligtLink;
  987. var span = document.createElement('span');
  988. span.className = "adead_link";
  989. $(span).attr('warlc_error', "Cause of error: <b>Censored link.</b>");
  990. $(span).html(censoredLink);
  991. span.addEventListener("mouseover", displayTooltipError, false);
  992. cLinksTotal++; cLinksProcessed++; cLinksDead++;
  993. textNode.parentNode.replaceChild(span, textNode);
  994. continue;
  995. alert(censoredLink);
  996. }
  997. while (myArray = allLinksRegex.exec(muligtLink)) //find all links
  998. {
  999. if (!regex.test(myArray[0])) //this link is not recognized
  1000. {
  1001.  
  1002. continue;
  1003. }
  1004. if (!span)
  1005. span = document.createElement('span');
  1006.  
  1007. var link = myArray[0];
  1008. span.appendChild(document.createTextNode(muligtLink.substring(lastLastIndex, myArray.index))); //inds?t det der kommer for dette hit
  1009.  
  1010. var $a = $("<a>" + link + "</a>")
  1011. if (!link.match(/https?:\/\//))
  1012. {
  1013. link = 'http://' + link;
  1014. }
  1015.  
  1016. $a.attr("href", link.replace(/\[\/hide:\w+\]/,""))
  1017. .addClass("processing_link")
  1018. .appendTo(span);
  1019. lastLastIndex = allLinksRegex.lastIndex;
  1020. }
  1021. if (span)
  1022. {
  1023. span.appendChild(document.createTextNode(muligtLink.substring(lastLastIndex))); //ins?t det der kommer efter sidste hit
  1024. textNode.parentNode.replaceChild(span, textNode);
  1025. }
  1026. }
  1027. }
  1028.  
  1029. function add_WARLC_style()
  1030. {
  1031. if (!(document.getElementsByTagName('WARLC')[0]))
  1032. {
  1033. var meta_not_to_add_more_style = document.createElement("WARLC");
  1034. meta_not_to_add_more_style.setAttribute('content', 'war_links_checker');
  1035. meta_not_to_add_more_style.setAttribute('name', 'description');
  1036. document.getElementsByTagName('head')[0].appendChild(meta_not_to_add_more_style);
  1037. alive_link_png = "";
  1038. adead_link_png = "";
  1039. unava_link_png = "";
  1040. prem_link_png = "";
  1041. switch(Icon_set)
  1042. {
  1043. //no icons
  1044. case 0: break;
  1045. // cat paws
  1046. case 1: alive_link_png = PAW_ICON_GREEN;
  1047. adead_link_png = PAW_ICON_RED;
  1048. unava_link_png = PAW_ICON_YELLOW;
  1049. prem_link_png = PAW_ICON_PINK;
  1050. break;
  1051. // classic RSLC look
  1052. case 2: alive_link_png = RSLC_ICON_GREEN;
  1053. adead_link_png = RSLC_ICON_RED;
  1054. unava_link_png = RSLC_ICON_YELLOW;
  1055. prem_link_png = RSLC_ICON_PINK;
  1056. break;
  1057. // New Icons
  1058. case 3: alive_link_png = NEW_ICON_GREEN;
  1059. adead_link_png = NEW_ICON_RED;
  1060. unava_link_png = NEW_ICON_YELLOW;
  1061. prem_link_png = NEW_ICON_PINK;
  1062. break;
  1063. // cat paws
  1064. default:alive_link_png = PAW_ICON_GREEN;
  1065. adead_link_png = PAW_ICON_RED;
  1066. unava_link_png = PAW_ICON_YELLOW;
  1067. prem_link_png = PAW_ICON_PINK;
  1068. break;
  1069. }
  1070. processing_link_gif = 'data:image/gif;base64,' + // or temporary anavailable
  1071. 'R0lGODlhCgAKAJEDAMzMzP9mZv8AAP///yH/C05FVFNDQVBFMi4wAwEAAAAh+QQFAAADACwAAAAACgAKAAACF5wncgaAGgJzJ647cWua4sOBFEd62VEAACH5BAUAAAMALAEAAAAIAAMAAAIKnBM2IoMDAFMQFAAh+QQFAAADACwAAAAABgAGAAACDJwHMBGofKIRItJYAAAh+QQFAAADACwAAAEAAwAIAAACChxgOBPBvpYQYxYAIfkEBQAAAwAsAAAEAAYABgAAAgoEhmPJHOGgEGwWACH5BAUAAAMALAEABwAIAAMAAAIKBIYjYhOhRHqpAAAh+QQFAAADACwEAAQABgAGAAACDJwncqi7EQYAA0p6CgAh+QQJAAADACwHAAEAAwAIAAACCpRmoxoxvQAYchQAOw%3D%3D';
  1072.  
  1073. var dead_color_css, live_color_css, unava_color_css, prem_color_css, black_background_css;
  1074.  
  1075. if (Color_DL_links)
  1076. {
  1077. dead_color_css = 'color:' + Dead_links_color + ' !important;';
  1078. live_color_css = 'color:' + Live_links_color + ' !important;';
  1079. unava_color_css = 'color:' + Temp_unavailable_links_color + ' !important;';
  1080. container_color_css = 'color:' + Container_links_color + ' !important;';
  1081. prem_color_css = 'color:' + Premium_links_color + ' !important;';
  1082. }
  1083. else
  1084. {
  1085. dead_color_css = live_color_css = unava_color_css = container_color_css = prem_color_css = '';
  1086. }
  1087.  
  1088. if (Show_black_background_in_DL_links)
  1089. {
  1090. black_background_css = 'background-color: black !important;';
  1091. }
  1092. else
  1093. {
  1094. black_background_css = '';
  1095. }
  1096.  
  1097. if (Show_line_through_in_dead_links)
  1098. {
  1099. line_through_css = 'text-decoration: line-through !important;';
  1100. }
  1101. else
  1102. {
  1103. line_through_css = '';
  1104. }
  1105.  
  1106. GM_addStyle(".alive_link {background:transparent url(" + alive_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;" + live_color_css + black_background_css + "}");
  1107. 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 + "}");
  1108. GM_addStyle(".unava_link {background:transparent url(" + unava_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;" + unava_color_css + black_background_css + "}");
  1109. GM_addStyle(".processing_link {background:transparent url(" + processing_link_gif + ") no-repeat scroll 100% 50%;padding-right:15px;" + container_color_css + black_background_css + "}");
  1110. GM_addStyle(".container_link {background:transparent url(" + processing_link_gif + ") no-repeat scroll 100% 50%;padding-right:15px;" + container_color_css + black_background_css + "}");
  1111. GM_addStyle(".container_list {font-size:90%; list-style-type:square; padding: 0px 5% 0px; margin: 0px}");
  1112. GM_addStyle(".prem_link {background:transparent url(" + prem_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;" + prem_color_css + black_background_css + "}");
  1113. }
  1114. }
  1115.  
  1116. var warlcTooltip = null;
  1117. var mouseoverLink = null; //link href with mouse cursor over it
  1118.  
  1119. var lastX = 0;
  1120. var lastY = 0;
  1121.  
  1122. $(document).ready(initTooltip);
  1123. //inits tooltip
  1124. function initTooltip()
  1125. { warlcTooltip = document.createElement("div");
  1126. 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;");
  1127. warlcTooltip.style.visibility = "hidden";
  1128. document.body.appendChild(warlcTooltip);
  1129. }
  1130.  
  1131. //"mousemove" event handler for all links
  1132. function moveTooltip(event)
  1133. {
  1134. if ((Math.abs(lastX - event.clientX) + Math.abs(lastY - event.clientY)) < 6)
  1135. { //no need to reflow if the cursor moved just a little
  1136. return;
  1137. }
  1138. else
  1139. {
  1140. lastX = event.clientX;
  1141. lastY = event.clientY;
  1142. }
  1143.  
  1144. posX = event.clientX + window.pageXOffset + 10;
  1145. posY = event.clientY + window.pageYOffset;
  1146. var ttHeight = warlcTooltip.offsetHeight;
  1147. var ttFreeSpace = window.innerHeight - event.clientY;
  1148. if (ttHeight > ttFreeSpace)
  1149. { //prevents tooltip from getting out of the window
  1150. posY -= (ttHeight - (ttFreeSpace)) + 10;
  1151. }
  1152. else
  1153. {
  1154. posY += 7;
  1155. }
  1156. warlcTooltip.style.top = posY + "px";
  1157. warlcTooltip.style.left = posX + "px";
  1158. }
  1159.  
  1160. //"mouseout" event handler for all links
  1161. function hideTooltip(){
  1162. warlcTooltip.style.visibility = "hidden";
  1163. mouseoverLink = null;
  1164. }
  1165.  
  1166.  
  1167. //"mouseover" event handler for dead links
  1168. //displays tooltip error message on dead links
  1169. function displayTooltipError()
  1170. {
  1171. mouseoverLink = this.href;
  1172. this.addEventListener("mouseout", hideTooltip);
  1173. this.addEventListener("mousemove", function(event) { moveTooltip(event); });
  1174. warlcTooltip.innerHTML = '<b>LOADING...</b>';
  1175. warlcTooltip.style.minWidth = 0;
  1176. warlcTooltip.style.visibility = "visible";
  1177. if (this.warlc_error) //an error message is already known and stored in warlc_error attribute
  1178. {
  1179. warlcTooltip.innerHTML = this.warlc_error;
  1180. }
  1181. else
  1182. {
  1183. loadErrorInfo(this);
  1184. }
  1185. function loadErrorInfo(link)
  1186. {
  1187. var href = link.href;
  1188. href = href.replace(/quickshare\.cz\/.+/, "quickshare.cz/chyba");
  1189. GM_xmlhttpRequest({
  1190. method: 'GET',
  1191. url: href.replace(Ref_anonymize_service, ""),
  1192. headers: {
  1193. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1194. 'Accept': 'text/xml',
  1195. 'Referer': ""
  1196. },
  1197. onload: function(result) {
  1198. var res = result.responseText;
  1199. //TODO: errorRegexs -
  1200. var errorRegexs = [ //generic error messages follow
  1201. /(empty directory)/i,
  1202. /(soubor nebyl nalezen)/i,
  1203. /((?:file|page|link|folder)(?:is|not|does|has been|was| ){1,}(?:found|available|blocked|exists?|deleted|removed))/i,
  1204. //server specific error messages follow
  1205. /msg error" style="cursor: default">(.+?)<\/div>/, //sendspace
  1206. /color:red;font\-weight:bold;border\-style:dashed;font-size:12px;border\-width:2px;><tr><td align=center>(.+?)<\/td>/, //fastshare
  1207. /(Takový soubor neexistuje. Je možné, že byl již smazán.)/, //quickshare
  1208. /file_info file_info_deleted">\s*<h1>(.+?)<\/h1>/, //filepost
  1209. /<br \/>\s*<p style="color:#000">(.+?)<\/p>\s*<\/center>/, //letitbit
  1210. /(?:error_div">|<\/h1><p>)<strong>(.+?)<\/strong>/, //share-rapid,quickshare
  1211. /class="red">(.+?)<(?:span|br)>/, //czshare, megashares
  1212. /class="wp640">\s*<h1 class="h1">(.+?)<\/h1>/, //uloz.to
  1213. /not-found">\s*<p>(.+?)<\/p>/, //bayfiles
  1214. /(Your file could not be found. Please check the download link.)/, //stahnu.to
  1215. /error_msg">\s*(<h3>.+?<\/h3><ul>(.+?)<\/ul>)/, //edisk
  1216. /id="obsah">\s*<h2>(.+?)<\/h2>/, //euroshare
  1217. /error">\s*(?:<[bp]>)?\s*(.+?)<\/[bp]>/, //filesmonster, shragle, gigapeta
  1218. ///center aC">\s*<h1>(.+?)<br \/>/, //uploaded.to
  1219. /icon_err">\s*<h1>(.+?)<\/h1>/, //filejungle
  1220. /Code: ER_NFF_\d+<\/h2>\s*(.+?)\s*<\/div>/, //netload
  1221. /(File has been removed due to Copyright Claim)/, //filerio
  1222. ];
  1223. var errorIdx = errorRegexs.length;
  1224. var error = "Cause of error: <b>unknown</b>";
  1225. var errorCandidate = "";
  1226. while(errorIdx--)
  1227. {
  1228. var errorCandidate = res.match(errorRegexs[errorIdx]);
  1229. if (errorCandidate != null)
  1230. {
  1231. error = "Cause of error: <b>" + errorCandidate[1].replace(/&nbsp;/g," ") + "</b>";
  1232. break;
  1233. }
  1234. }
  1235. //link attributes
  1236. link.warlc_error = error;
  1237. if (mouseoverLink == link.href) //mouse cursor is still over the link
  1238. {
  1239. warlcTooltip.innerHTML = error;
  1240. }
  1241. }
  1242. });
  1243. }
  1244. }
  1245.  
  1246. //"mouseover" event handler for alive links
  1247. //displays tooltip info (file size, file name,...) on alive links
  1248. function displayTooltipInfo()
  1249. {
  1250. mouseoverLink = this.href;
  1251. //exclude direct download filehostings
  1252. 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)/))
  1253. {
  1254. return;
  1255. }
  1256. this.addEventListener("mouseout", hideTooltip);
  1257. this.addEventListener("mousemove", function(event) { moveTooltip(event); });
  1258. warlcTooltip.innerHTML = '<b>LOADING...</b>';
  1259. warlcTooltip.style.minWidth = 0;
  1260. warlcTooltip.style.visibility = "visible";
  1261. if (this.warlc_tooltipcache) //file size is already known and stored in warlc_filename and warlc_filesize attributes
  1262. {
  1263. warlcTooltip.innerHTML = this.warlc_tooltipcache;
  1264. }
  1265. else
  1266. {
  1267. loadInfo(this);
  1268. }
  1269. function loadInfo(link)
  1270. {
  1271. var href = link.href;
  1272. GM_xmlhttpRequest({
  1273. method: 'GET',
  1274. url: href.replace(Ref_anonymize_service, ""),
  1275. headers: {
  1276. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1277. 'Accept': 'text/xml',
  1278. 'Referer': ""
  1279. },
  1280. onload: function(result) {
  1281. var res = result.responseText;
  1282. var nameRegexs = [ /Filename: <b class="f_arial f_14px">(.+?)<\/b>/, //oron
  1283. /(?:finfo|file[-_]?name)">\s*(.+?)<\/?(?:h1|a|div|span style|td)/, //hellshare, netload, badongo, 4fastfile
  1284. /fl" title="(.+?)">/, //edisk
  1285. /<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
  1286. /<h3>Stahujete soubor: <\/h3>\s*<div class="textbox">(.+?)<\/div>/, //webshare
  1287. /<h3><b><span style=color:black;>(.+?)<\/b><\/h3><br>/, //fastshare
  1288. /title="download (.+?)">/, //sendspace
  1289. /Stáhnout soubor: (.+?)<\/h1>/, //quickshare
  1290. /fz24">Download:\s*<strong>(.+?)<\/strong>/, //crocko
  1291. /'file\-icon\d+ \w+'>(?:<\/span><span>)?(.+?)<\/span>/, //hitfile, turbobit
  1292. /d0FileName = "(.+?)";/, //letitbit
  1293. /file(?:_name|-info)" title="">\w+: <span>(.+?)<\/span>/, //vip-file, shareflare
  1294. /recent-comments"><h2>(.+) &nbsp;/, //xdisk
  1295. /fname" value="(.+?)">/, //syfiles, grupload,
  1296. /download\-header">\s*<h2>File:<\/h2>\s*<p title="(.+?)">/, //bayfiles
  1297. /description">\s*<p><b>Soubor: (.+?)<\/b>/, //bezvadata
  1298. /Complete name : (.+?)<br \/>/, //bezvadata
  1299. /itemprop="name">(.+?)<\/span>/, //bezvadata
  1300. ];
  1301. var nameIdx = nameRegexs.length;
  1302. // [sizeRegexs]
  1303. // / \ \?
  1304. // prefix (size) postfix
  1305. // / \
  1306. // val quant
  1307. var quantRegex = '(?:M|G|K)?i?(?:B)(?:[y|i]te?s?)?';
  1308. var valRegex = '\\d+(?:[\\., ]\\d+){0,2}'; // 111([., ]222)?([., ]333)?
  1309. var uniSizeRegex = valRegex + '(?:\\s*|&nbsp;)' + quantRegex;
  1310. var preSizeRegex = '(?::|\\(|>|>, | - )';
  1311. var postSizeRegex = '(?:\\))?';
  1312. var sizeRegexs = [ preSizeRegex + "\\s*(" + uniSizeRegex + ")\\s*" + postSizeRegex,
  1313. 'FileSize_master">(.+?)<\/strong>', //hellshare
  1314. ];
  1315. var sizeIdx = sizeRegexs.length;
  1316. //
  1317. //
  1318. var tooltip = "File Name: <b>";
  1319. var fileName = "unknown";
  1320. var nameCandidate = "";
  1321. while(nameIdx--)
  1322. {
  1323. var nameCandidate = res.match(nameRegexs[nameIdx]);
  1324. if (nameCandidate != null)
  1325. {
  1326. fileName = nameCandidate[1].replace(/&nbsp;/g," ");
  1327. break;
  1328. }
  1329. }
  1330. tooltip += fileName + "</b><br>File Size: <b>";
  1331. var fileSize = "unknown";
  1332. var sizeCandidate = "";
  1333. while(sizeIdx--)
  1334. {
  1335. sizeCandidate = res.match(new RegExp(sizeRegexs[sizeIdx], "i"));
  1336. if (sizeCandidate != null)
  1337. {
  1338. fileSize = sizeCandidate[1].replace(/&nbsp;/g," ");
  1339. if (/^\d+$/.test(fileSize) && fileSize >= 1024) //assume bytes
  1340. {
  1341. if(fileSize > (1<<30)) fileSize = Math.round(10 * fileSize / (1<<30)) / 10 + ' GB';
  1342. else if(fileSize > (1<<20)) fileSize = Math.round(fileSize / (1<<20)) + ' MB';
  1343. else fileSize = Math.round(fileSize / 1024) + ' KB';
  1344. }
  1345. break;
  1346. }
  1347. }
  1348. tooltip += fileSize + "</b>";
  1349. // PROTOTYPE
  1350. // video thumbnails
  1351. if (href.match('hellshare'))
  1352. {
  1353. var thumbs;
  1354. thumbs = res.match(/http:\/\/static\d+\.helldata\.com\/thumbs(?:\/\d+){1,2}\/\d{1,2}"/g);
  1355. if (thumbs)
  1356. {
  1357. tooltip += '<br>';
  1358. var j = Math.min(thumbs.length, 9);
  1359. for (var i = 0; i < j; i++)
  1360. {
  1361. tooltip += '<img src="' + thumbs[i].replace('"',"") + '" width="' + TOOLTIP_THUMBWIDTH + 'px">';
  1362. }
  1363. warlcTooltip.style.minWidth = TOOLTIP_MAXWIDTH;
  1364. }
  1365. }
  1366. if (href.match('czshare'))
  1367. {
  1368. var thumbs;
  1369. thumbs = res.match(/src="http:\/\/www(\d+)\.czshare\.com\/images_velke\/\d+\.(\d+)\.jpeg/);
  1370. if (thumbs)
  1371. {
  1372. var thumbsServer = thumbs[1];
  1373. var thumbsId = thumbs[2];
  1374. tooltip += '<br>';
  1375. for (var i = 1; i < 9; i++)
  1376. {
  1377. tooltip += '<img src="http://www' + thumbsServer + '.czshare.com/images_velke/' + i + '.' + thumbsId + '.jpeg" width="' + TOOLTIP_THUMBWIDTH + 'px">';
  1378. }
  1379. warlcTooltip.style.minWidth = TOOLTIP_MAXWIDTH;
  1380. }
  1381. }
  1382. if (href.match('bezvadata'))
  1383. {
  1384. var thumbs;
  1385. thumbs = res.match(/http:\/\/nahledy\.bezvadata\.cz\/nahledy\/\d+\/\d+\/\d+_\d+_\d+x\d+_\w.jpg/g);
  1386. if (thumbs)
  1387. {
  1388. tooltip += '<br>';
  1389. var j = Math.min(thumbs.length, 9);
  1390. for (var i = 0; i < j; i++)
  1391. {
  1392. tooltip += '<img src="' + thumbs[i] + '" width="' + TOOLTIP_THUMBWIDTH + 'px">';
  1393. }
  1394. warlcTooltip.style.minWidth = TOOLTIP_MAXWIDTH;
  1395. }
  1396. }
  1397. link.warlc_tooltipcache = tooltip;
  1398. if (mouseoverLink == link.href) //mouse cursor is still over the link
  1399. {
  1400. warlcTooltip.innerHTML = tooltip;
  1401. }
  1402. }
  1403. });
  1404. }
  1405. }
  1406.  
  1407. function setVariables()
  1408. {
  1409. if (firstRun)
  1410. {
  1411. GM_log('First run, applying default settings...');
  1412. GM_setValue("Icon_set",1);
  1413. GM_setValue("Display_tooltip_info",true);
  1414. GM_setValue("Show_black_background_in_DL_links",false);
  1415. GM_setValue("Show_line_through_in_dead_links",false);
  1416. GM_setValue("Display_full_links_in_link_containers",false);
  1417. GM_setValue("Allow_spaces_in_DL_links",false);
  1418. GM_setValue("Autocheck",true);
  1419. GM_setValue("Enable_Anonymizer",false);
  1420. GM_setValue("Do_not_linkify_DL_links",false);
  1421. GM_setValue("Show_progress_stats",true);
  1422. GM_setValue("Keyboard_functions",true);
  1423. GM_setValue("Obsolete_file_hosts",false);
  1424. GM_setValue("Color_DL_links",true);
  1425. GM_setValue("Live_links_color","Green");
  1426. GM_setValue("Dead_links_color","#FF3300");
  1427. GM_setValue("Temp_unavailable_links_color","#F7EF09");
  1428. GM_setValue("Container_links_color","DarkKhaki");
  1429. GM_setValue("Premium_links_color","DeepPink");
  1430. GM_setValue("Ref_anonymize_service","http://hiderefer.com/?");
  1431. GM_setValue("Custom_rules",false);
  1432. GM_setValue("Custom_rules_text","");
  1433. GM_setValue("First_run", false);
  1434. }
  1435. //hidden settings
  1436. GM_setValue("Progress_box_pos_bottom", Progress_box_pos_bottom = GM_getValue("Progress_box_pos_bottom", 20));
  1437. GM_setValue("Progress_box_pos_right", Progress_box_pos_right = GM_getValue("Progress_box_pos_right", 10));
  1438. GM_setValue("Progress_box_opacity", Progress_box_opacity = GM_getValue("Progress_box_opacity", 85));
  1439. GM_setValue("Progress_box_background_color", Progress_box_background_color = GM_getValue("Progress_box_background_color", 'DimGray'));
  1440. GM_setValue("Progress_box_item_color", Progress_box_item_color = GM_getValue("Progress_box_item_color", 'DimGray'));
  1441. GM_setValue("Progress_box_refresh_rate", Progress_box_refresh_rate = GM_getValue("Progress_box_refresh_rate", 2000));
  1442. GM_setValue("Debug_mode", DEBUG_MODE = GM_getValue("Debug_mode", false));
  1443. //hidden settings end
  1444.  
  1445. Icon_set = GM_getValue("Icon_set", 1); //0 - no icons, 1 - cat paws, 2 - old RSLC style, 3 - New Icons,
  1446. Display_tooltip_info = GM_getValue("Display_tooltip_info", true);
  1447. Show_black_background_in_DL_links = GM_getValue("Show_black_background_in_DL_links", false);
  1448. Show_line_through_in_dead_links = GM_getValue("Show_line_through_in_dead_links", false);
  1449. Display_full_links_in_link_containers = GM_getValue("Display_full_links_in_link_containers", false);
  1450. Allow_spaces_in_DL_links = GM_getValue("Allow_spaces_in_DL_links", false);
  1451. Autocheck = GM_getValue("Autocheck", true);
  1452. Enable_Anonymizer = GM_getValue("Enable_Anonymizer", false);
  1453. Do_not_linkify_DL_links = GM_getValue("Do_not_linkify_DL_links", false);
  1454. Show_progress_stats = GM_getValue("Show_progress_stats", true);
  1455. Keyboard_functions = GM_getValue("Keyboard_functions", true);
  1456. Obsolete_file_hosts = GM_getValue("Obsolete_file_hosts", false);
  1457. Color_DL_links = GM_getValue("Color_DL_links", true);
  1458. Live_links_color = GM_getValue("Live_links_color", "Green");
  1459. Dead_links_color = GM_getValue("Dead_links_color", "#FF3300");
  1460. Temp_unavailable_links_color = GM_getValue("Temp_unavailable_links_color", "#F7EF09");
  1461. Container_links_color = GM_getValue("Container_links_color", "DarkKhaki");
  1462. Premium_links_color = GM_getValue("Premium_links_color", "DeepPink");
  1463. Ref_anonymize_service = GM_getValue("Ref_anonymize_service", "http://hiderefer.com/?");
  1464. Custom_rules = GM_getValue("Custom_rules", false);
  1465. Custom_rules_text = GM_getValue("Custom_rules_text", false);
  1466. }
  1467.  
  1468.  
  1469. // Delinkifies the links
  1470. // params:
  1471. // links -> list of links or link components (note they should be sufficiently unique to identify the link on page,
  1472. // e.g. 'uloz.to/xs68skxl8')
  1473. function delinkifySnapshot(snapshot)
  1474. {
  1475. var n = snapshot.snapshotLength;
  1476.  
  1477. while (n--)
  1478. {
  1479. thisLink = snapshot.snapshotItem(n);
  1480.  
  1481. var spanElm = document.createElement("span");
  1482. spanElm.className = thisLink.className;
  1483. spanElm.innerHTML = thisLink.innerHTML;
  1484.  
  1485. if (Display_tooltip_info)
  1486. {
  1487. spanElm.href = thisLink.href;
  1488. switch (thisLink.className){
  1489. case "alive_link": spanElm.addEventListener("mouseover", displayTooltipInfo, false); break
  1490. case "adead_link": spanElm.addEventListener("mouseover", displayTooltipError, false); break;
  1491. case "unava_link": //reserved
  1492. default:
  1493. }
  1494. }
  1495. thisLink.parentNode.replaceChild(spanElm, thisLink);
  1496. }
  1497. }
  1498.  
  1499. function processContainers()
  1500. {
  1501. var redirectorTypes = { "HTTP_302": 0,
  1502. "INNER_LINK": 1,
  1503. "THELOO_KATT_IT": 2,
  1504. "CING_BE": 3,
  1505. "ADF_LY": 4};
  1506. var cMultiloadTotal = 0;
  1507. var cMultiloadProcessed = 0;
  1508.  
  1509. var cMirrorcreatorComTotal = 0;
  1510. var cMirrorcreatorComProcessed = 0;
  1511.  
  1512. var hostRestrictionRegex = "";
  1513. var multiloadComRestriction = "";
  1514. var multiloadComRestrictionRegex;
  1515.  
  1516. //
  1517. //HANDLING REDIRECTORS START
  1518. //
  1519.  
  1520. var redirectors = new Array();
  1521. initRedirectors();
  1522.  
  1523. var redirectorsCount = redirectors.length;
  1524.  
  1525. if (redirectorsCount > 0)
  1526. {
  1527. var allRedirectorsRegex = "";
  1528.  
  1529. //linkify redirector links
  1530. for(var redirIdx = 0; redirIdx < redirectorsCount; redirIdx++)
  1531. {
  1532. allRedirectorsRegex += redirectors[redirIdx].linkRegex + "|";
  1533. }
  1534. allRedirectorsRegex = allRedirectorsRegex.replace(/\|$/, "");
  1535. linkify(allRedirectorsRegex);
  1536. //
  1537. //process redirector links
  1538. for(var redirIdx = 0; redirIdx < redirectorsCount; redirIdx++)
  1539. {
  1540. var redirectorsSnapshot = document.evaluate(redirectors[redirIdx].xpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  1541. redirectors[redirIdx].cTotal = redirectorsSnapshot.snapshotLength;
  1542.  
  1543. cLinksTotal += redirectors[redirIdx].cTotal;
  1544. var linkIdx = redirectors[redirIdx].cTotal;
  1545.  
  1546. while(linkIdx--)
  1547. {
  1548. switch(redirectors[redirIdx].type)
  1549. {
  1550. case redirectorTypes.HTTP_302: processRedirectorLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1551. case redirectorTypes.INNER_LINK: processRedirectorLinkEx(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1552. case redirectorTypes.THELOO_KATT_IT: processThelooKattItLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1553. case redirectorTypes.CING_BE: processCingBeLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1554. case redirectorTypes.ADF_LY: processAdfLyLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1555. default:
  1556. }
  1557. }
  1558. }
  1559. //
  1560. }
  1561.  
  1562. //HTTP_302
  1563. function processRedirectorLink(link, redirectorId)
  1564. {
  1565. link.className = 'container_link';
  1566.  
  1567. GM_xmlhttpRequest({
  1568. method: 'HEAD',
  1569. url: link.href,
  1570. headers: {
  1571. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1572. 'Accept': 'text/xml',
  1573. 'Referer': ""
  1574. },
  1575. onload: function(result) {
  1576. if (result.finalUrl.replace("https", "http") == link.href) // service hasn't redirected anywhere
  1577. {
  1578. processRedirectorLink(link, redirectorId);
  1579. }
  1580. else
  1581. {
  1582. redirectors[redirectorId].cProcessed++;
  1583. link.href = result.finalUrl;
  1584. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  1585. checkLinks('container_link');
  1586. }
  1587. },
  1588. onerror: function(result) { //probably caused by unresponsive filehosting
  1589. redirectors[redirectorId].cProcessed++;
  1590. link.className = 'unava_link';
  1591. cLinksProcessed++;
  1592. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  1593. checkLinks('container_link');
  1594. }
  1595. });
  1596. }
  1597. //INNER_LINK
  1598. function processRedirectorLinkEx(link, redirectorId)
  1599. {
  1600. link.className = 'container_link';
  1601. GM_xmlhttpRequest({
  1602. method: 'GET',
  1603. url: link.href,
  1604. headers: {
  1605. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1606. 'Accept': 'text/xml',
  1607. 'Referer': ""
  1608. },
  1609. onload: function(result) {
  1610. link.href = result.responseText.match(redirectors[redirectorId].innerLinkRegex)[1];
  1611. redirectors[redirectorId].cProcessed++;
  1612. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  1613. checkLinks('container_link');
  1614. }
  1615. });
  1616. }
  1617. //theloo.katt.it (wrapped safelinking.net)
  1618. function processThelooKattItLink(link, redirectorId)
  1619. {
  1620. link.className = 'container_link';
  1621. GM_xmlhttpRequest({
  1622. method: 'GET',
  1623. url: link.href,
  1624. headers: {
  1625. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1626. 'Accept': 'text/xml',
  1627. 'Referer': ""
  1628. },
  1629. onload: function(result) {
  1630. link.href = result.responseText.match(redirectors[redirectorId].innerLinkRegex)[1];
  1631. redirectors[redirectorId].cProcessed++;
  1632. //the inner links are safelinking.net links, so lets proceed with it
  1633. if (GM_getValue("Check_safelinking_dot_net_links", false))
  1634. {
  1635. processRedirectorLink(link, 0);
  1636. }
  1637. }
  1638. });
  1639. }
  1640. //adf.ly (adf.ly/go innerLink, locking mechanism)
  1641. function processAdfLyLink(link, redirectorId)
  1642. {
  1643. link.className = 'container_link';
  1644. GM_xmlhttpRequest({
  1645. method: 'GET',
  1646. url: link.href,
  1647. headers: {
  1648. 'User-agent': 'Mozilla/4.0',
  1649. 'Accept': 'text/xml',
  1650. 'Referer': ""
  1651. },
  1652. onload: function(result) {
  1653. if (result.finalUrl.match('/locked/'))
  1654. {
  1655. var delay = result.responseText.match(/countdown">(\d+)</)[1];
  1656. // GM_log(result.finalUrl + 'is locked. Repeating the request in ' + delay + 's.');
  1657. // setTimeout(function(){processAdfLyLink(link, redirectorId);}, delay * 1000);
  1658. }
  1659. else
  1660. {
  1661. // GM_log('Processing... ' + link.href);
  1662. // GM_log('Found...' + result.responseText.match(/\/go\/(\w+\/\w+)/)[1]);
  1663. var directLink = 'http://adf.ly' + result.responseText.match(/(\/go\/\w+\/\w+)/)[1];
  1664. var logToken = result.responseText.match(/flashy_(\w+)/)[1];
  1665. var users = result.responseText.match(/user=\d+&user2=\d+/);
  1666. //confirm advert
  1667. GM_xmlhttpRequest(
  1668. {
  1669. method: 'POST',
  1670. url: 'http://adf.ly/l.php',
  1671. headers: {
  1672. 'User-agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20100101 Firefox/13.0',
  1673. 'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
  1674. 'Referer': link.href
  1675. },
  1676. data: users + '&lt=' + logToken,
  1677. onload: function(result) {
  1678. //retrieve final url from .../go/... link
  1679. GM_xmlhttpRequest({
  1680. method: 'GET',
  1681. url: directLink,
  1682. headers: {
  1683. 'User-agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20100101 Firefox/13.0',
  1684. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  1685. 'Referer': link.href
  1686. },
  1687. onload: function(result) {
  1688. link.href = result.finalUrl;
  1689. redirectors[redirectorId].cProcessed++;
  1690. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  1691. checkLinks('container_link');
  1692. }
  1693. });
  1694. }
  1695. });
  1696. }
  1697. }
  1698. });
  1699. function proceedOK()
  1700. {
  1701. }
  1702. }
  1703. //MULTILOAD.CZ START
  1704. if (GM_getValue("Check_multiload_dot_cz_links", false))
  1705. {
  1706. var mlRegex = 'multiload\\.cz\/stahnout\/\\d+\/';
  1707. var mlXpath = "//a[contains(@href,'http://www.multiload.cz/stahnout')]";
  1708.  
  1709. hostRestrictionRegex = 'Upload se nezdařil|limit exceeded|probíhá reupload|';
  1710.  
  1711. if (GM_getValue("Check_hellshare_dot_com_links", false))
  1712. hostRestrictionRegex += 'hellshare|';
  1713. if (GM_getValue("Check_share_dash_rapid_dot_com_links", false))
  1714. hostRestrictionRegex += 'share-rapid\\.com|';
  1715. if (GM_getValue("Check_quickshare_dot_cz_links", false))
  1716. hostRestrictionRegex += 'quickshare\\.cz|';
  1717. if (GM_getValue("Check_czshare_dot_com_links", false))
  1718. hostRestrictionRegex += 'czshare\\.com|';
  1719. if (GM_getValue("Check_uloz_dot_to_links", false))
  1720. hostRestrictionRegex += 'uloz\\.to|';
  1721. if (GM_getValue("Check_hellspy_dot_com_links", false))
  1722. hostRestrictionRegex += 'hellspy|';
  1723. if (GM_getValue("Check_multishare_dot_cz_links", false))
  1724. hostRestrictionRegex += 'multishare\\.cz|';
  1725.  
  1726. hostRestrictionRegex = hostRestrictionRegex.replace(/\|$/, "");
  1727.  
  1728. linkify(mlRegex);
  1729.  
  1730. var mlSnapshot = document.evaluate(mlXpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  1731. var mlCount = mlSnapshot.snapshotLength;
  1732.  
  1733. if (mlCount > 0)
  1734. {
  1735. cMultiloadTotal += mlCount;
  1736.  
  1737. mlIdx = mlCount - 1;
  1738. do
  1739. {
  1740. processMultiloadLink(mlSnapshot.snapshotItem(mlIdx));
  1741. }
  1742. while(mlIdx--)
  1743. }
  1744. }
  1745. //MULTILOAD.CZ END
  1746.  
  1747.  
  1748.  
  1749. function processMultiloadLink(mlLink)
  1750. {
  1751. GM_xmlhttpRequest({
  1752. method: 'GET',
  1753. url: mlLink.href,
  1754. headers: {
  1755. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1756. 'Accept': 'text/xml',
  1757. 'Referer': ""
  1758. },
  1759. onload: function(result) {
  1760. var res = result.responseText;
  1761.  
  1762. var innerBlockRegex = /<p class="manager-linky">(?:.|\s)+?<\/p>/g;
  1763. 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;
  1764. var innerLinkRegex = /((?:Upload se nezdařil.+|https?:\/\/(?:.|\s)+|Právě probíhá reupload, buďte trpěliví\.\.\.))</;
  1765. var mlRestrictionRegex = new RegExp(hostRestrictionRegex,"g"); //what links should be displayed
  1766.  
  1767. var blocks; // blocks of links
  1768. var blockIdx;
  1769.  
  1770. mlLink.className = '';
  1771.  
  1772. if (result.status == 503) //service temporarily unavailable, repeat request in one second
  1773. {
  1774. setTimeout(function(){ processMultiloadLink(mlLink); }, 1000);
  1775. return;
  1776. }
  1777.  
  1778. blocks = res.match(innerBlockRegex);
  1779.  
  1780. if (blocks == null) //no links found, cancel further processing
  1781. {
  1782. mlLink.parentNode.appendChild(document.createTextNode(' | Požadovaný soubor neexistuje.'));
  1783. cMultiloadProcessed++;
  1784. if (cMultiloadTotal <= cMultiloadProcessed)
  1785. {
  1786. startBulkCheck('container_link');
  1787. start('container_link');
  1788. }
  1789. return;
  1790. }
  1791.  
  1792. blockIdx = blocks.length;
  1793.  
  1794. if (Display_full_links_in_link_containers)
  1795. {
  1796. var ulElm = document.createElement('ul');
  1797. ulElm.className = 'container_list'; //CSS smaller font, padding, margin, square style
  1798.  
  1799. while(blockIdx--)
  1800. {
  1801. if (blocks[blockIdx].match(mlRestrictionRegex) == null)
  1802. {
  1803. continue;
  1804. }
  1805.  
  1806. var innerLinks = blocks[blockIdx].match(innerLinksRegex);
  1807.  
  1808. var linkIdx = innerLinks.length;
  1809. while (linkIdx--)
  1810. {
  1811. var innerLink = innerLinks[linkIdx].match(innerLinkRegex)[1];
  1812.  
  1813. var liElm = document.createElement('li');
  1814.  
  1815. if (innerLink.match(/Upload se nezdařil|limit exceeded|probíhá reupload/))
  1816. {
  1817. liElm.appendChild(document.createTextNode(innerLink));
  1818. }
  1819. else
  1820. {
  1821. var aElm = document.createElement('a');
  1822. aElm.innerHTML = innerLink;
  1823. aElm.href = innerLink;
  1824. aElm.className = 'container_link';
  1825.  
  1826. liElm.appendChild(aElm);
  1827. }
  1828.  
  1829. ulElm.appendChild(liElm);
  1830. cLinksTotal++;
  1831. }
  1832. }
  1833.  
  1834. mlLink.parentNode.appendChild(ulElm);
  1835. }
  1836. else //compact view
  1837. {
  1838. mlLink.parentNode.appendChild(document.createTextNode("|"));
  1839.  
  1840. while(blockIdx--)
  1841. {
  1842. if (blocks[blockIdx].match(mlRestrictionRegex) == null)
  1843. {
  1844. continue;
  1845. }
  1846.  
  1847. var innerLinks = blocks[blockIdx].match(innerLinksRegex);
  1848.  
  1849. var linkIdx = innerLinks.length;
  1850. while (linkIdx--)
  1851. {
  1852. var innerLink = innerLinks[linkIdx].match(innerLinkRegex)[1];
  1853.  
  1854. if (innerLink.match(/Upload se nezdařil|limit exceeded|probíhá reupload/))
  1855. {
  1856. mlLink.parentNode.appendChild(document.createTextNode("----"));
  1857. }
  1858. else
  1859. {
  1860. var aElm = document.createElement('a');
  1861.  
  1862. var hostName = innerLink.match(/quickshare|hellshare|uloz\.to|multishare|hellspy|share\-rapid|czshare/);
  1863.  
  1864. //abbreviate host name
  1865. switch(hostName + ""){
  1866.  
  1867. case 'quickshare': aElm.innerHTML = 'QS'; break;
  1868. case 'hellshare': aElm.innerHTML = 'HS'; break;
  1869. case 'uloz.to': aElm.innerHTML = 'UT'; break;
  1870. case 'multishare': aElm.innerHTML = 'MS'; break;
  1871. case 'hellspy': aElm.innerHTML = 'hs'; break;
  1872. case 'share-rapid': aElm.innerHTML = 'SR'; break;
  1873. case 'czshare': aElm.innerHTML = 'CS'; break;
  1874. default: aElm.innerHTML = 'xx';
  1875.  
  1876. }
  1877.  
  1878. aElm.href = innerLink;
  1879. aElm.className = 'container_link';
  1880.  
  1881. mlLink.parentNode.appendChild(aElm);
  1882. cLinksTotal++;
  1883. }
  1884. }
  1885.  
  1886. mlLink.parentNode.appendChild(document.createTextNode("|")); //blocks delimiter
  1887.  
  1888. }
  1889. }
  1890.  
  1891. cMultiloadProcessed++;
  1892. if (cMultiloadTotal == cMultiloadProcessed) //start check when all ml links have been processed
  1893. {
  1894. if (Do_not_linkify_DL_links)
  1895. {
  1896. delinkifySnapshot(mlSnapshot);
  1897. }
  1898. startBulkCheck('container_link');
  1899. start('container_link');
  1900. }
  1901. }
  1902. });
  1903. }
  1904.  
  1905.  
  1906. if (GM_getValue("Check_mirrorcreator_dot_com_links", false))
  1907. {
  1908. var mcRegex = 'mirrorcreator\\.com/files/(\\w+)';
  1909. var mcXpath = "//a[contains(@href,'mirrorcreator.com/files')]";
  1910. var mcShortHostNames =
  1911. '?? 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';
  1912. // 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
  1913. //?????? depositfiles sendspace load.to ul.to storage.to uploadbox x7.to fileserve ?????? duckload filehook filepost jumbofiles glumbouploads
  1914. // zshare ?????? 2shared uploading ugotfile extabit oron eyvx uploadstation putlocker
  1915. // megaupload badongo megashare gamefront ifile ?????? letitbit ?????? ?????? filejungle megashares
  1916. // easy-share ?????? netload zippyshare ?????? filesonic turbobit enterupload ?????? filekeen wupload crocko fileflyer
  1917.  
  1918. linkify(mcRegex);
  1919.  
  1920. var mcSnapshot = document.evaluate(mcXpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  1921. var mcCount = mcSnapshot.snapshotLength;
  1922.  
  1923. cMirrorcreatorComTotal = mcCount;
  1924.  
  1925. if (mcCount > 0)
  1926. {
  1927. mcShortHostNames = mcShortHostNames.split(' ');
  1928. mcIdx = mcCount;
  1929. while(mcIdx--)
  1930. processMirrorcreatorLink(mcSnapshot.snapshotItem(mcIdx));
  1931. }
  1932.  
  1933. }
  1934. //MIRRORCREATOR.CZ END
  1935.  
  1936.  
  1937. //mirrorcreator.com checking works like this:
  1938. //The base URL is http://www.mirrorcreator.com/files/XXXXXXXX/filename_links
  1939. //the actual list of mirrors is at http://www.mirrorcreator.com/status.php?uid=XXXXXXXX
  1940. //the list contains links in the form of (http://www.mirrorcreator.com)/redirect/XXXXXXXX/1
  1941. //these redirector links are extracted with mcLinkBlockRegex and the pages loaded
  1942. //they contain the actual filehost links, which are extracted with mcHostRegex and displayed in a container list
  1943. function processMirrorcreatorLink(mcLink)
  1944. {
  1945. var mcURL = mcLink.href.match(mcRegex);
  1946. if(!mcURL || !mcURL[1]) return;
  1947. mcURL = 'http://www.mirrorcreator.com/status.php?uid=' + mcURL[1]; //link correction
  1948. GM_xmlhttpRequest({
  1949. method: 'GET',
  1950. url: mcURL,
  1951. headers: {
  1952. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1953. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*'+'/*;q=0.8',
  1954. 'Referer': ""
  1955. },
  1956. onload: function(mcLinkResult) {
  1957. var mcLinkRes = mcLinkResult.responseText;
  1958.  
  1959. var mcLinkBlockRegex = /(\/redirect\/\w+\/(\d+))/gi;
  1960. var mcHostRegex = /<div id="redirectlink">.*?<a href="([^"]+)"/;
  1961.  
  1962. var mcRedirectors;
  1963. var mcHostURLs = [], mcRedirectorIDs = [], mcHostsFound = 0, mcHostsRetrieved = 0, mcHostsToProcess = 0;
  1964. var m = mcLinkRes.match(mcLinkBlockRegex);
  1965. if (m)
  1966. mcHostsFound = m.length;
  1967. else
  1968. { //no files inside container
  1969. processMirrorcreatorFoundHosts(mcLink, []);
  1970. return;
  1971. }
  1972.  
  1973. var mcRedirectorURL, idx, timedOut = false;
  1974.  
  1975. var gmxhrFunc = function(mcRedirectorURL){ //Tampermonkey doesn't know neither this.url or result.finalUrl
  1976. GM_xmlhttpRequest({
  1977. method: 'GET',
  1978. url: mcRedirectorURL,
  1979. headers: {
  1980. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1981. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*'+'/*;q=0.8',
  1982. 'Referer': ""
  1983. },
  1984. onload: function(mcHostResult) {
  1985. if (timedOut) return; //too late, the list is already displayed
  1986. var mcHostRes = mcHostResult.responseText;
  1987. var mcHost = mcHostRes.match(mcHostRegex);
  1988. idx = mcHostURLs.indexOf(mcRedirectorURL);
  1989. if (mcHost && idx!=-1)
  1990. {
  1991. mcHostURLs[idx] = mcHost[1].replace(/^\s+|\s+$/g, '');
  1992. mcHostsRetrieved++;
  1993. mcHostsToProcess++;
  1994. if (mcHostsFound == mcHostsRetrieved) //this is the last one!
  1995. {
  1996. processMirrorcreatorFoundHosts(mcLink, mcHostURLs, mcRedirectorIDs);
  1997. mcHostsToProcess = 0;
  1998. }
  1999. }
  2000. } //end of onload: function
  2001. }); //end of GM_xmlhttpRequest call
  2002. };//end of var gmxhrFunc
  2003.  
  2004. while (mcRedirectors = mcLinkBlockRegex.exec(mcLinkRes))
  2005. { //load individual redirector pages
  2006. mcRedirectorURL = 'http://www.mirrorcreator.com' + mcRedirectors[1];
  2007. mcHostURLs.push(mcRedirectorURL);
  2008. mcRedirectorIDs.push(mcRedirectors[2]);
  2009. gmxhrFunc(mcRedirectorURL);
  2010. } //end of while block
  2011.  
  2012. setTimeout(function(){ //in case the last page fails to load and call the function
  2013. timedOut = true;
  2014. if (mcHostsToProcess)
  2015. processMirrorcreatorFoundHosts(mcLink, mcHostURLs);
  2016. }, 60000);
  2017.  
  2018. } //end of onload function
  2019. }); //end of GM_xmlhttpRequest call
  2020. } //end of function processMirrorcreatorLink
  2021.  
  2022.  
  2023. function processMirrorcreatorFoundHosts(mcLink, mcHostURLs, mcRedirectorIDs)
  2024. {
  2025. var aEl, liEl, docFrag;
  2026. var hostName, mcRedirectorID, trimFilename = false;
  2027. var i = mcHostURLs.length;
  2028. if (i == 0)
  2029. {
  2030. trimFilename = true;
  2031. mcLink.parentNode.insertBefore(document.createTextNode(' | No files inside container'), mcLink.nextSibling);
  2032. }
  2033. else
  2034. {
  2035. if (Display_full_links_in_link_containers)
  2036. { //full view
  2037. var wrapperEl = document.createElement('span');
  2038. wrapperEl.style.display = 'block';
  2039. var ulistEl = document.createElement('ul');
  2040. ulistEl.className = 'container_list';
  2041. while (i--)
  2042. {
  2043. liEl = document.createElement('li');
  2044. aEl = document.createElement('a');
  2045. aEl.appendChild(document.createTextNode(mcHostURLs[i]));
  2046. aEl.href = mcHostURLs[i];
  2047. aEl.className = 'container_link';
  2048. liEl.appendChild(aEl);
  2049. ulistEl.appendChild(liEl);
  2050. }
  2051. wrapperEl.appendChild(ulistEl);
  2052. mcLink.parentNode.replaceChild(wrapperEl, mcLink);
  2053. wrapperEl.insertBefore(mcLink, wrapperEl.firstChild);
  2054. }
  2055. else
  2056. { //compact view
  2057. trimFilename = true;
  2058. docFrag = document.createDocumentFragment();
  2059. docFrag.appendChild(document.createTextNode(' |'));
  2060. while (i--)
  2061. {
  2062. mcRedirectorID = mcRedirectorIDs[i];
  2063. hostName = mcHostURLs[i];
  2064. if (mcRedirectorID > mcShortHostNames.length-1 || mcShortHostNames[mcRedirectorID] == '??')
  2065. hostName = hostName.replace(/https?:\/\/(?:www\.)?([-0-9a-z]+(?:\.[-0-9a-z]+)?)\.[a-z]+\/.*/i, '$1').toUpperCase();
  2066. else
  2067. hostName = mcShortHostNames[mcRedirectorID];
  2068. aEl = document.createElement('a');
  2069. aEl.href = mcHostURLs[i];
  2070. aEl.className = 'container_link';
  2071. aEl.appendChild(document.createTextNode(hostName));
  2072. docFrag.appendChild(aEl);
  2073. docFrag.appendChild(document.createTextNode('|'));
  2074. }
  2075. mcLink.parentNode.insertBefore(docFrag, mcLink.nextSibling);
  2076. } //end of else block
  2077. } //end of else block
  2078. mcLink.className = '';
  2079. if (trimFilename)
  2080. mcLink.firstChild.nodeValue = mcLink.firstChild.nodeValue.replace(/(https?:\/\/[^\/]+\/files\/\w+\/).+/, '$1...');
  2081. cMirrorcreatorComProcessed++;
  2082. if (cMirrorcreatorComProcessed == cMirrorcreatorComTotal) //start check when all mc links have been processed
  2083. {
  2084. if (Do_not_linkify_DL_links)
  2085. delinkifySnapshot(mcSnapshot);
  2086. startBulkCheck('container_link');
  2087. start('container_link');
  2088. }
  2089. } //end of function processMirrorcreatorFoundHosts
  2090.  
  2091. containers_processed = true;
  2092.  
  2093.  
  2094. function initRedirectors()
  2095. {
  2096. function addRedirector(linkRegex, xpathEx, redirType, innerLinkRegex)
  2097. {
  2098. var redirector = new Object();
  2099. redirector.linkRegex = linkRegex;
  2100. redirector.xpath = xpathEx; //xpath expression
  2101. redirector.cProcessed = 0; //processed links count
  2102. redirector.cTotal = 0; //total links count
  2103. redirector.type = redirType; //redirectorTypes enum
  2104. redirector.innerLinkRegex = innerLinkRegex; //innerLink, null if unused
  2105. redirectors.push(redirector);
  2106. }
  2107. if (GM_getValue("Check_safelinking_dot_net_links", false))
  2108. {
  2109. addRedirector(
  2110. 'safelinking\\.net\/d\/\\w+',
  2111. "//a[contains(@href,'safelinking.net/d/')]",
  2112. redirectorTypes.HTTP_302,
  2113. null);
  2114. }
  2115. if (GM_getValue("Check_linksafe_dot_me_links", false))
  2116. {
  2117. addRedirector(
  2118. 'linksafe\\.me\/d\/\\w+',
  2119. "//a[contains(@href,'linksafe.me/d/')]",
  2120. redirectorTypes.HTTP_302,
  2121. null);
  2122. }
  2123. if (GM_getValue("Check_linkto_dot_net_links", false))
  2124. {
  2125. addRedirector(
  2126. 'linkto\\.net\/\\?\\w+\\.\\d+',
  2127. "//a[contains(@href,'linkto.net/?')]",
  2128. redirectorTypes.INNER_LINK,
  2129. /<iframe id="iframe" name="iframe" src="(.+?)\s*" frameborder="0"/);
  2130. }
  2131. if (GM_getValue("Check_theloo_dot_katt_dot_it_links", false))
  2132. {
  2133. addRedirector(
  2134. '(?:the)?loo\\.katt\\.it\/\\w+',
  2135. "//a[contains(@href,'loo.katt.it/')]",
  2136. redirectorTypes.THELOO_KATT_IT,
  2137. /Proceed to URL - <a href="(.+?)">/);
  2138. }
  2139. if (GM_getValue("Check_madlink_dot_sk_links", false))
  2140. {
  2141. addRedirector(
  2142. 'madlink\\.sk\/\\w+',
  2143. "//a[contains(@href,'madlink.sk/')]",
  2144. redirectorTypes.INNER_LINK,
  2145. /name="url" value="(.+?)\s*"\/>/);
  2146. }
  2147. if (GM_getValue("Check_adf_dot_ly_links", false))
  2148. {
  2149. addRedirector(
  2150. '(?:adf\\.ly|[u9]\\.bb|[qj]\\.gs)\/\\w+',
  2151. "//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/')]",
  2152. redirectorTypes.ADF_LY,
  2153. null);
  2154. }
  2155. if (GM_getValue("Check_redi_dot_re_links", false))
  2156. {
  2157. addRedirector(
  2158. 'redi\\.re\/\\w+',
  2159. "//a[contains(@href,'redi.re/')]",
  2160. redirectorTypes.HTTP_302,
  2161. null);
  2162. }
  2163. if (GM_getValue("Check_bit_dot_ly_links", false))
  2164. {
  2165. addRedirector(
  2166. 'bit\\.ly\/\\w+',
  2167. "//a[contains(@href,'bit.ly/')]",
  2168. redirectorTypes.HTTP_302,
  2169. null);
  2170. }
  2171. }
  2172.  
  2173. }
  2174.  
  2175. var bulkHosts = new Array();
  2176. var bulkHostNames = new Array();
  2177. function initBulkCheck()
  2178. {
  2179. /////////////////////////////
  2180. // Inits filehost object
  2181. /////////////////////////////
  2182. // params :
  2183. // hostName -- [string] host name (multiple domains separated with coma)
  2184. // linkRegex -- [string] link regex
  2185. // xpath -- [string] xpath expression to detect the link objects with evaluate
  2186. // blockSize -- [integer] max. number of links sent in one request, 50 if null
  2187. // corrMatch -- [regex] link correction regex (match), applied prior to corrRepl
  2188. // corrReplWhat -- [regex] link correction regex (replace)
  2189. // corrReplWith -- [string]
  2190. // splitSeparator -- [string] POSTDATA links separator, "\r\n" if null
  2191. //
  2192. // apiUrl -- [string] web linkchecker or API URL
  2193. // postData -- [string] POSTDATA of xmlhttprequest
  2194. // resLinkRegex -- [regex]
  2195. // resLiveRegex -- [regex] matches substrings containing live links in the request response
  2196. // resDeadRegex -- [regex] matches substrings containing dead links in the request response
  2197. // resUnavaRegex -- [regex] matches substrings containing unava links in the request response
  2198. // func -- [function] bulkcheck handler, genBulkCheck if null
  2199. //
  2200. //////////////////////////////
  2201. function addHost(hostName, linkRegex, xpath, blockSize, corrMatch, corrReplWhat, corrReplWith, splitSeparator,
  2202. apiUrl, postData, resLinkRegex, resLiveRegex, resDeadRegex, resUnavaRegex, func)
  2203. {
  2204. var fileHost = new Object();
  2205.  
  2206. fileHost.linkRegex = linkRegex;
  2207. fileHost.linkRegexObject = new RegExp(linkRegex, "");
  2208. fileHost.xpath = xpath;
  2209. fileHost.cFound = 0; //found links counter
  2210. fileHost.links = new Array(); //found links
  2211. if (blockSize == null)
  2212. {
  2213. fileHost.blockSize = 50;
  2214. }
  2215. else
  2216. {
  2217. fileHost.blockSize = blockSize;
  2218. }
  2219. fileHost.corrMatch = corrMatch;
  2220. fileHost.corrReplWhat = corrReplWhat;
  2221. fileHost.corrReplWith = corrReplWith;
  2222. if (splitSeparator == null)
  2223. {
  2224. fileHost.splitSeparator = "\r\n";
  2225. }
  2226. else
  2227. {
  2228. fileHost.splitSeparator = splitSeparator;
  2229. }
  2230. fileHost.apiUrl = apiUrl;
  2231. fileHost.postData = postData;
  2232. fileHost.resLinkRegex = resLinkRegex;
  2233. fileHost.resLiveRegex = resLiveRegex;
  2234. fileHost.resDeadRegex = resDeadRegex;
  2235. fileHost.resUnavaRegex = resUnavaRegex;
  2236. if (func == null)
  2237. {
  2238. fileHost.func = genBulkCheck;
  2239. }
  2240. else
  2241. {
  2242. fileHost.func = func;
  2243. }
  2244. bulkHosts.push(fileHost);
  2245. var names = hostName.split(',');
  2246. var i = names.length;
  2247. while(i--)
  2248. {
  2249. bulkHostNames[names[i]] = fileHost;
  2250. }
  2251. }
  2252. var genType1 = [
  2253. "migahost.com", "rodfile.com", "downloadani.me",
  2254. "rarefile.net",
  2255. "filesabc.com", "sharebeast.com",
  2256. "180upload.com", "verzend.be",
  2257. "movreel.com",
  2258. "4up.me",
  2259. "file4safe.com", "filemac.com", "4upfiles.com",
  2260. "idup.in", "novafile.com", "longfiles.com",
  2261. "bitupload.com",
  2262. "uploadbaz.com"
  2263. ];
  2264. var genType2 = [ "queenshare.com",
  2265. "hulkload.com",
  2266. "amonshare.com", "edoc.com",
  2267. ];
  2268. //xfilesharing 1.0
  2269. function addGenericType1()
  2270. {
  2271. var i = genType1.length;
  2272. while(i--)
  2273. {
  2274. if (GM_getValue("Check_" + genType1[i].replace(/\./g, "_dot_").replace(/-/g, "_dash_") + "_links", false))
  2275. {
  2276. var regexSafe = genType1[i].replace(/\./g, "\\.").replace(/-/g, "\\-");
  2277. addHost(
  2278. genType1[i].match(/[\w-]+/)[0], //hostname
  2279. regexSafe + "\/\\w+", //linkregex
  2280. "//a[contains(@href,'" + genType1[i] + "/')]", //xpath
  2281. null, //blocksize
  2282. new RegExp("(http:\/\/(?:|www\\.)" + regexSafe + "\/\\w+)",""),//, //corrmatch
  2283. null, //corrreplwhat
  2284. null, //corrreplwith
  2285. null, //separator
  2286. "http://" + genType1[i] + "/checkfiles.html", //api url
  2287. "op=checkfiles&process=Check+URLs&list=", //postdata
  2288. new RegExp("(" + regexSafe + "\/\\w+)",""), //linkregex
  2289. new RegExp("green'>http:\/\/(?:|www\.)" + regexSafe + "\/\\w+","g"), //liveregex
  2290. new RegExp("red'>http:\/\/(?:|www\.)" + regexSafe + "\/\\w+","g"), //deadregex
  2291. new RegExp("orange'>http:\/\/(?:|www\.)" + regexSafe + "\/\\w+","g"), //unavaregex
  2292. null //function delegate
  2293. )
  2294. }
  2295. }
  2296. }
  2297. //xfilesharing 2.0
  2298. function addGenericType2()
  2299. {
  2300. var i = genType2.length;
  2301. while(i--)
  2302. {
  2303. if (GM_getValue("Check_" + genType2[i].replace(/\./g, "_dot_").replace(/-/g, "_dash_") + "_links", false))
  2304. {
  2305. var regexSafe = genType2[i].replace(/\./g, "\\.").replace(/-/g, "\\-");
  2306. addHost(
  2307. genType2[i].match(/[\w-]+/)[0], //hostname
  2308. regexSafe + "\/\\w+", //linkregex
  2309. "//a[contains(@href,'" + genType2[i] + "/')]", //xpath
  2310. null, //blocksize
  2311. new RegExp("(http:\/\/(?:|www\\.)" + regexSafe + "\/\\w+)",""),//, //corrmatch
  2312. null, //corrreplwhat
  2313. null, //corrreplwith
  2314. null, //separator
  2315. "http://www." + genType2[i] + "/?op=checkfiles", //api url
  2316. "op=checkfiles&process=Check+URLs&list=", //postdata
  2317. new RegExp("(" + regexSafe + "\/\\w+)",""), //linkregex
  2318. new RegExp(regexSafe + "\/\\w+.*?<\/td>\\s*<td style=\"color:green;\">","g"), //liveregex
  2319. new RegExp(regexSafe + "\/\\w+.*?<\/td>\\s*<td style=\"color:red;\">","g"), //deadregex
  2320. new RegExp(regexSafe + "\/\\w+.*?<\/td>\\s*<td style=\"color:orange;\">","g"), //unavaregex
  2321. null //function delegate
  2322. )
  2323. }
  2324. }
  2325. }
  2326. // TEMPLATE
  2327. // if (GM_getValue("Check__dot_com_links", false))
  2328. // {
  2329. // addHost(
  2330. // "", //hostname
  2331. // "", //linkregex
  2332. // "//a[contains(@href,'.com/')]", //xpath
  2333. // null, //blocksize
  2334. // null, //corrmatch
  2335. // null, //corrreplwhat
  2336. // null, //corrreplwith
  2337. // null, //separator
  2338. // "", //api url
  2339. // "", //postdata
  2340. // /()/, //linkregex
  2341. // //liveregex
  2342. // //deadregex
  2343. // //unavaregex
  2344. // null //function delegate
  2345. // )
  2346. // }
  2347. addGenericType1();
  2348. addGenericType2();
  2349.  
  2350. if (GM_getValue("Check_myvdrive_dot_com_links", false))
  2351. {
  2352. addHost(
  2353. "myvdrive,fileserving", //hostname
  2354. "(?:fileserving|myvdrive)\\.com\/files\/[\\w-]+", //linkregex
  2355. "//a[contains(@href,'fileserving.com/files') or contains(@href,'myvdrive.com/files')]", //xpath
  2356. null, //blocksize
  2357. null, //corrmatch
  2358. null, //corrreplwhat
  2359. null, //corrreplwith
  2360. null, //separator
  2361. "http://www.myvdrive.com/Public/linkchecker#", //api url
  2362. "links=", //postdata
  2363. /(?:fileserving|myvdrive)\.com\/(files\/\w+)/, //linkregex
  2364. /icon_file_check_valid"><\/span>\s*http:\/\/www\.(?:fileserving|myvdrive)\.com\/files\/[\w-]+/g, //liveregex
  2365. /icon_file_check_(?:removed|notvalid)"><\/span>\s*http:\/\/www\.(?:fileserving|myvdrive)\.com\/files\/[\w-]+/g, //deadregex
  2366. null, //unavaregex
  2367. null //function delegate
  2368. )
  2369. }
  2370. if (GM_getValue("Check_hackerbox_dot_org_links", false))
  2371. {
  2372. addHost(
  2373. "hackerbox", //hostname
  2374. "host\\.hackerbox\\.org\/\\w+", //linkregex
  2375. "//a[contains(@href,'host.hackerbox.org/')]", //xpath
  2376. null, //blocksize
  2377. /(http:\/\/host\.hackerbox\.org\/\w+)/, //corrmatch
  2378. null, //corrreplwhat
  2379. null, //corrreplwith
  2380. null, //separator
  2381. "http://host.hackerbox.org/checkfiles.html", //api url
  2382. "op=checkfiles&process=Check+URLs&list=", //postdata
  2383. /(host\.hackerbox\.org\/\w+)/, //linkregex
  2384. /green'>http:\/\/host\.hackerbox\.org\/\w+/g, //liveregex
  2385. /red'>http:\/\/host\.hackerbox\.org\/\w+/g, //deadregex
  2386. /orange'>http:\/\/host\.hackerbox\.org\/\w+/g, //unavaregex
  2387. null //function delegate
  2388. )
  2389. }
  2390. if (GM_getValue("Check_hellshare_dot_com_links", false))
  2391. {
  2392. addHost(
  2393. "hellshare", //hostname
  2394. "(?:|download\\.(?:cz\\.|en\\.|sk\\.|)|www\\.)hellshare\\.(?:com|sk|cz|pl|hu|COM|SK|CZ|PL|HU)\/[\\w-\\.]+\/(?:[\\w-\\.]+\/|)\\d{5,}", //linkregex
  2395. "//a[contains(@href,'hellshare.')]", //xpath
  2396. 48, //blocksize
  2397. null, //corrmatch
  2398. null, //corrreplwhat
  2399. null, //corrreplwith
  2400. null, //separator
  2401. null, //api url
  2402. null, //postdata
  2403. null, //linkregex
  2404. null, //liveregex
  2405. null, //deadregex
  2406. null, //unavaregex
  2407. hellshareBulkCheck //function delegate
  2408. )
  2409. }
  2410. if (GM_getValue("Check_ncrypt_dot_in_links", false))
  2411. {
  2412. addHost(
  2413. "ncrypt", //hostname
  2414. "ncrypt\\.in\/folder\\-\\w+", //linkregex
  2415. "//a[contains(@href,'ncrypt.in/folder')]", //xpath
  2416. 100000, //blocksize
  2417. null, //corrmatch
  2418. null, //corrreplwhat
  2419. null, //corrreplwith
  2420. null, //separator
  2421. null,
  2422. null,
  2423. null,
  2424. null,
  2425. null,
  2426. null,
  2427. ncryptBulkCheck //function delegate
  2428. )
  2429. }
  2430. if (GM_getValue("Check_geupload_dot_com_links", false))
  2431. {
  2432. addHost(
  2433. "geupload,lenfile", //hostname
  2434. "(?:geupload\\.com|lenfile\\.com)\/\\w+", //linkregex
  2435. "//a[contains(@href,'geupload.com/') or contains(@href,'lenfile.com/')]", //xpath
  2436. null, //blocksize
  2437. null, //corrmatch
  2438. null, //corrreplwhat
  2439. null, //corrreplwith
  2440. "\n", //separator
  2441. 'http://geupload.com/?op=checkfiles',
  2442. 'op=checkfiles&process=Check+URLs&list=',
  2443. />http:\/\/(?:geupload|lenfile)\.com\/(\w+)/,
  2444. />http:\/\/(?:geupload|lenfile)\.com\/\w+(?:[^>]+>)<td style=\"color\:green/g,
  2445. />http:\/\/(?:geupload|lenfile)\.com\/\w+(?:[^>]+>)<td style=\"color\:red/g,
  2446. null,
  2447. null
  2448. )
  2449. }
  2450. if (GM_getValue("Check_uploadrocket_dot_net_links", false))
  2451. {
  2452. addHost(
  2453. "uploadrocket", //hostname
  2454. "(?:uploadrocket\\.net)\/\\w+", //linkregex
  2455. "//a[contains(@href,'uploadrocket.net/')]", //xpath
  2456. null, //blocksize
  2457. null, //corrmatch
  2458. null, //corrreplwhat
  2459. null, //corrreplwith
  2460. "\n", //separator
  2461. 'http://uploadrocket.net/?op=checkfiles',
  2462. 'op=checkfiles&process=Check+URLs&list=',
  2463. /uploadrocket.net\/(\w+)/,
  2464. />http:\/\/uploadrocket.net\/\w+(?:[^>]+>)<td style="color:green/g,
  2465. />http:\/\/uploadrocket.net\/\w+(?:[^>]+>)<td style="color:red/g,
  2466. null,
  2467. null //function delegate
  2468. )
  2469. }
  2470. if (GM_getValue("Check_depositfiles_dot_com_links", false))
  2471. {
  2472. addHost(
  2473. "depositfiles,dfiles",
  2474. "(?:(?:depositfiles\\.(?:com|org|lt))|(?:dfiles\\.(?:ru|eu)))\/files\/\\w+",
  2475. "//a[contains(@href,'depositfiles.lt/files/') or contains(@href,'depositfiles.com/files/') or contains(@href,'depositfiles.org/files/') or contains(@href,'dfiles.ru/files/') or contains(@href,'dfiles.eu/files/')]",
  2476. 100000, //blocksize
  2477. null, //corrmatch
  2478. null, //corrreplwhat
  2479. null, //corrreplwith
  2480. null, //separator
  2481. null,
  2482. null,
  2483. null,
  2484. null,
  2485. null,
  2486. null,
  2487. depositfilesBulkCheck //function delegate
  2488. )
  2489. }
  2490. if (GM_getValue("Check_filepost_dot_com_links", false))
  2491. {
  2492. addHost(
  2493. "filepost,fp", //hostname
  2494. "(?:filepost\\.com\/files|fp\\.io)\/\\w+", //linkregex
  2495. "//a[contains(@href,'filepost.com/files/') or contains(@href,'fp.io/')]", //xpath
  2496. null, //blocksize
  2497. null, //corrmatch
  2498. null, //corrreplwhat
  2499. null, //corrreplwith
  2500. "\n", //separator
  2501. 'http://filepost.com/files/checker/?JsHttpRequest=0-xml',
  2502. 'urls=',
  2503. /\\\/files\\\/(\w+)/,
  2504. />http:\\\/\\\/filepost\.com\\\/files\\\/\w+(?:[^>]+>){5}(?:\\n|\\t)+<span class=\\"v\\"/g,
  2505. />http:\\\/\\\/filepost\.com\\\/files\\\/\w+(?:[^>]+>){5}(?:\\n|\\t)+<span class=\\"x\\"/g,
  2506. null,
  2507. null //function delegate
  2508. )
  2509. }
  2510. if (GM_getValue("Check_filesflash_dot_com_links", false))
  2511. {
  2512. addHost(
  2513. "filesflash", //hostname
  2514. "filesflash\\.com\/\\w+", //linkregex
  2515. "//a[contains(@href,'filesflash.com')]", //xpath
  2516. null, //blocksize
  2517. null, //corrmatch
  2518. /http:\/\//, //corrreplwhat
  2519. '', //corrreplwith
  2520. null, //separator
  2521. 'http://filesflash.com/checklinks.php',
  2522. 'submit=Go&links=',
  2523. /filesflash\.com\/(\w+)/,
  2524. /<td>filesflash\.com\/\w+<\/td>\s*<td>Available/g,
  2525. /<td>filesflash\.com\/\w+<\/td>\s*<td>(?:Invalid|Deleted|Expired|Banned)?<\/td>/g,
  2526. null,
  2527. null //function delegate
  2528. )
  2529. }
  2530. if (GM_getValue("Check_jumbofiles_dot_com_links", false))
  2531. {
  2532. addHost(
  2533. "jumbofiles", //hostname
  2534. "jumbofiles\\.com\/\\w+", //linkregex
  2535. "//a[contains(@href,'jumbofiles.com/')]", //xpath
  2536. null, //blocksize
  2537. /(http:\/\/(?:|www\.)jumbofiles\.com\/\w+)/, //corrmatch
  2538. null, //corrreplwhat
  2539. null, //corrreplwith
  2540. null, //separator
  2541. "http://jumbofiles.com/checkfiles.html", //api url
  2542. "op=checkfiles&process=Check+URLs&list=", //postdata
  2543. /(jumbofiles\.com\/\w+)/, //linkregex
  2544. /blue'>http:\/\/(?:|www\.)jumbofiles\.com\/\w+/g, //liveregex
  2545. /red'>http:\/\/(?:|www\.)jumbofiles\.com\/\w+/g, //deadregex
  2546. /orange'>http:\/\/(?:|www\.)jumbofiles\.com\/\w+/g, //unavaregex
  2547. null //function delegate
  2548. )
  2549. }
  2550. if (GM_getValue("Check_edisk_dot_cz_links", false))
  2551. {
  2552. addHost(
  2553. "edisk", //hostname
  2554. "(?:(?:muj|data)\\d*\\.|)edisk\\.(?:cz|sk|eu)\/(?:|(?:cz|sk|en|pl)\/)", //linkregex
  2555. "//a[contains(@href,'edisk.')]", //xpath
  2556. null, //blocksize
  2557. null, //corrmatch
  2558. /edisk\.\w{2}\/(?:|\w{2}\/)stahni/, //corrreplwhat
  2559. 'edisk.cz/stahni', //corrreplwith
  2560. null, //separator
  2561. 'http://www.edisk.cz/zkontrolovat-odkazy',
  2562. 'submitBtn=Zkontrolovat&checkFiles=',
  2563. /((?:download|stahn(?:i|out-soubor))\/\d+)/,
  2564. /"ano"\/>\s*<\/td>\s*<td>\s*http:\/\/.+/g,
  2565. /"ne"\/>\s*<\/td>\s*<td>\s*http:\/\/.+/g,
  2566. null,
  2567. null //function delegate
  2568. )
  2569. }
  2570. if (GM_getValue("Check_bezvadata_dot_cz_links", false))
  2571. {
  2572. GM_xmlhttpRequest( //age check skip
  2573. {
  2574. method: 'POST',
  2575. url: 'http://bezvadata.cz/vyhledavani/souhlas-zavadny-obsah',
  2576. headers: {
  2577. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  2578. 'Content-type': 'application/x-www-form-urlencoded',
  2579. 'Referer': ""
  2580. }
  2581. });
  2582. addHost(
  2583. "bezvadata", //hostname
  2584. "(?:beta\\.|)bezvadata\.cz\/stahnout\/\\d+\\w+", //linkregex
  2585. "//a[contains(@href,'bezvadata.cz')]", //xpath
  2586. null, //blocksize
  2587. null, //corrmatch
  2588. null, //corrreplwhat
  2589. null, //corrreplwith
  2590. null, //separator
  2591. 'http://bezvadata.cz/nastroje/kontrola-odkazu?do=kontrolaOdkazuForm-submit',
  2592. 'zkontrolovat=Zkontrolovat&odkazy=',
  2593. /(bezvadata\.cz\/stahnout\/\d+)/,
  2594. /bezvadata\.cz\/stahnout\/.+?<\/td>\s*<td style="background-color: #d9ffb2/g,
  2595. /bezvadata\.cz\/stahnout\/.+?<\/td>\s*<td style="background-color: #ffb2b2/g,
  2596. null,
  2597. null //function delegate
  2598. )
  2599. }
  2600. if (GM_getValue("Check_linkcrypt_dot_ws_links", false))
  2601. {
  2602. addHost(
  2603. "linkcrypt", //hostname
  2604. "linkcrypt\\.ws\/dir\/\\w+", //linkregex
  2605. "//a[contains(@href,'linkcrypt.ws/dir')]", //xpath
  2606. 100000, //blocksize
  2607. null, //corrmatch
  2608. null, //corrreplwhat
  2609. null, //corrreplwith
  2610. null, //separator
  2611. null,
  2612. null,
  2613. null,
  2614. null,
  2615. null,
  2616. null,
  2617. linkcryptBulkCheck //function delegate
  2618. )
  2619. }
  2620. if (GM_getValue("Check_linksave_dot_in_links", false))
  2621. {
  2622. addHost(
  2623. "linksave", //hostname
  2624. "linksave\\.in\/\\w+", //linkregex
  2625. "//a[contains(@href,'linksave.in')]", //xpath
  2626. 100000, //blocksize
  2627. null, //corrmatch
  2628. null, //corrreplwhat
  2629. null, //corrreplwith
  2630. null, //separator
  2631. null,
  2632. null,
  2633. null,
  2634. null,
  2635. null,
  2636. null,
  2637. linksaveBulkCheck //function delegate
  2638. )
  2639. }
  2640. if (GM_getValue("Check_videobb_dot_com_links", false))
  2641. {
  2642. addHost(
  2643. "videobb", //hostname
  2644. "videobb\\.com\/(?:video\/|watch_video\\.php\\?v=)\\w+", //linkregex
  2645. "//a[contains(@href,'videobb.com')]", //xpath
  2646. null, //blocksize
  2647. null, //corrmatch
  2648. /watch_video\.php\?v=/, //corrreplwhat
  2649. 'video/', //corrreplwith
  2650. null, //separator
  2651. 'http://www.videobb.com/link_checker.php',
  2652. 'links=',
  2653. /videobb\.com\/video\/(\w+)/,
  2654. /<td>http:\/\/(?:www\.|)videobb.com\/video\/\w+<\/td>\s+<td>.+?<\/td>\s+<td>\d+:\d+<\/td>\s+<td>Available/g,
  2655. /<td>http:\/\/(?:www\.|)videobb.com\/video\/\w+<\/td>\s+<td><\/td>\s+<td>N\/A<\/td>\s+<td>Not Available/g,
  2656. null,
  2657. null //function delegate
  2658. )
  2659. }
  2660. if (GM_getValue("Check_cramit_dot_in_links", false))
  2661. {
  2662. addHost(
  2663. "cramit,cramitin", //hostname
  2664. "cramit(?:\\.in|in\\.net)\/", //linkregex
  2665. "//a[contains(@href,'cramitin.net') or contains(@href,'cramit.in')]", //xpath
  2666. null, //blocksize
  2667. null, //corrmatch
  2668. null, //corrreplwhat
  2669. null, //corrreplwith
  2670. null, //separator
  2671. 'http://cramit.in/checkfiles.html',
  2672. 'op=checkfiles&process=CHECK+URL%27S&list=',
  2673. /(cramit(?:\.in|in\.net)\/\w+)/,
  2674. /green>http:\/\/(?:www\.|)cramit(?:\.in|in\.net)\/\w+/g,
  2675. /red'>http:\/\/(?:www\.|)cramit(?:\.in|in\.net)\/\w+/g,
  2676. /orange'>http:\/\/(?:www\.|)cramit(?:\.in|in\.net)\/\w+/g,
  2677. null //function delegate
  2678. )
  2679. }
  2680. if (GM_getValue("Check_turbobit_dot_net_links", false))
  2681. {
  2682. addHost(
  2683. "turbobit", //hostname
  2684. "turbobit\\.(?:net|pl)\/(?:\\w+\/|).+?\\.html", //linkregex
  2685. "//a[contains(@href,'turbobit.')]", //xpath
  2686. null, //blocksize
  2687. /(turbobit\.(?:net|pl)\/(?:\w+\/|).+?\.html)/, //corrmatch
  2688. null, //corrreplwhat
  2689. null, //corrreplwith
  2690. "\n", //separator
  2691. 'http://turbobit.net/linkchecker/csv',
  2692. 'links_to_check=',
  2693. /(turbobit\.(?:net|pl)\/\w+)/,
  2694. /turbobit\.(?:net|pl)\/.*?, 1/g,
  2695. /turbobit\.(?:net|pl)\/.*?, 0/g,
  2696. null,
  2697. null //function delegate
  2698. )
  2699. }
  2700. if (GM_getValue("Check_filerio_dot_com_links", false))
  2701. {
  2702. addHost(
  2703. "filekeen,filerio", //hostname
  2704. //"file(?:keen|rio)\\.(?:com|in)\/\\w+\/.", //linkregex
  2705. "file(?:keen|rio)\\.(?:com|in)\/\\w+", //linkregex
  2706. "//a[contains(@href,'filekeen.com') or contains(@href,'filerio.')]", //xpath
  2707. null, //blocksize
  2708. null, //corrmatch
  2709. null, //corrreplwhat
  2710. null, //corrreplwith
  2711. null, //separator
  2712. 'http://filerio.in/checkfiles.html',
  2713. 'op=checkfiles&process=Check+URLs&list=',
  2714. /(file(?:keen|rio)\.(?:com|in)\/\w+)/,
  2715. /green'>http:\/\/(?:www\.|)file(?:keen|rio)\.(?:com|in)\/\w+/g,
  2716. /red'>http:\/\/(?:www\.|)file(?:keen|rio)\.(?:com|in)\/\w+/g,
  2717. /orange'>http:\/\/(?:www\.|)file(?:keen|rio)\.(?:com|in)\/\w+/g,
  2718. null //function delegate
  2719. )
  2720. }
  2721. if (GM_getValue("Check_share_dash_online_dot_biz_links", false))
  2722. {
  2723. addHost(
  2724. "share-online,egoshare", //hostname
  2725. "(?:share-online\\.biz|egoshare\\.com)\/(?:dl\/|download\\.php\\?id=)", //linkregex
  2726. "//a[contains(@href,'share-online.biz') or contains(@href,'egoshare.com')]", //xpath
  2727. null, //blocksize
  2728. /http:\/\/(?:www\.)?(?:share-online\.biz|egoshare\.com)\/d(?:l\/|ownload\.php\?id=)(\w+)/, //corrmatch
  2729. null, //corrreplwhat
  2730. null, //corrreplwith
  2731. "\n", //separator
  2732. 'http://api.share-online.biz/linkcheck.php',
  2733. 'links=',
  2734. /(\w+);(?:OK|NOTFOUND|DELETED)/,
  2735. /\w+;OK/g,
  2736. /\w+;(?:NOTFOUND|DELETED)/g,
  2737. null,
  2738. null //function delegate
  2739. )
  2740. }
  2741. if (GM_getValue("Check_quickshare_dot_cz_links", false))
  2742. {
  2743. addHost(
  2744. "quickshare", //hostname
  2745. "quickshare\\.cz\/stahnout-soubor\/\\d+", //linkregex
  2746. "//a[contains(@href,'quickshare.cz')]", //xpath
  2747. null, //blocksize
  2748. null, //corrmatch
  2749. null, //corrreplwhat
  2750. null, //corrreplwith
  2751. null, //separator
  2752. 'http://www.quickshare.cz/nastroje/link-checker',
  2753. 'linky=',
  2754. /quickshare\.cz\/stahnout-soubor\/(\d+(?::\w+)?)/,
  2755. /quickshare\.cz\/stahnout-soubor\/\d+(?::[\w\-.+$!*\/()\[\]\',~%?:@#&=\\]+)?\s*<\/a><\/td><td><img src="\/img\/ok\.gif/g,
  2756. /quickshare\.cz\/stahnout-soubor\/\d+(?::[\w\-.+$!*\/()\[\]\',~%?:@#&=\\]+)?\s*<\/td><td><img src="\/img\/nenalezeno\.gif/g,
  2757. null,
  2758. null //function delegate
  2759. )
  2760. }
  2761. if (GM_getValue("Check_netload_dot_in_links", false))
  2762. {
  2763. addHost(
  2764. "netload", //hostname
  2765. "netload\\.in\/datei\\w{10}", //linkregex
  2766. "//a[contains(@href,'netload.in')]", //xpath
  2767. null, //blocksize
  2768. null, //corrmatch
  2769. null, //corrreplwhat
  2770. null, //corrreplwith
  2771. "\n", //separator
  2772. "http://api.netload.in/index.php?id=2", //api url
  2773. "send=Absenden&links=", //postdata
  2774. /(\w+);/, //linkregex
  2775. /\w{10,};.+?;.+?;online/g, //liveregex
  2776. /\w{10,};.+?;.+?;offline/g, //deadregex
  2777. null, //unavaregex
  2778. //netloadBulkCheck //function delegate //disabled on probation since 1.2.4.5
  2779. null //function delegate
  2780. )
  2781. }
  2782. if (GM_getValue("Check_oboom_dot_com_links", false))
  2783. {
  2784. addHost(
  2785. "oboom", //hostname
  2786. "oboom\\.com\/#?\\w{8}", //linkregex
  2787. "//a[contains(@href,'oboom.com/')]", //xpath
  2788. null, //blocksize
  2789. /oboom\.com\/#?(\w{8})/, //corrmatch
  2790. null, //corrreplwhat
  2791. null, //corrreplwith
  2792. null, //separator
  2793. null,
  2794. null,
  2795. null,
  2796. null, //liveregex
  2797. null, //deadregex
  2798. null,
  2799. oboomBulk //function delegate
  2800. )
  2801. }
  2802. if (GM_getValue("Check_mega_dot_nz_links", false))
  2803. {
  2804. addHost(
  2805. "mega",
  2806. "mega(?:\\.co)?\\.nz\/#!\\w+",
  2807. "//a[contains(@href,'mega.co.nz/') or contains(@href,'mega.nz/')]",
  2808. 100000, //blocksize
  2809. null, //corrmatch
  2810. null, //corrreplwhat
  2811. null, //corrreplwith
  2812. null, //separator
  2813. null,
  2814. null,
  2815. null,
  2816. null,
  2817. null,
  2818. null,
  2819. megaBulkCheck //function delegate
  2820. )
  2821. }
  2822.  
  2823. //the same as GenType2, except api url is 'https://' instead of 'http://www.' and corrmatch is not??? needed
  2824.  
  2825. if (GM_getValue("Check_extabit_dot_com_links", false))
  2826. {
  2827. addHost(
  2828. "extabit", //hostname
  2829. "extabit\\.com\/file\/\\w+", //linkregex
  2830. "//a[contains(@href,'extabit.com')]", //xpath
  2831. null, //blocksize
  2832. null, //corrmatch
  2833. null, //corrreplwhat
  2834. null, //corrreplwith
  2835. "\n", //separator
  2836. "http://extabit.com/linkchecker.jsp", //api url
  2837. "url=", //postdata
  2838. /extabit\.com\/(file\/\w+)/, //linkregex
  2839. /extabit\.com\/file\/\w+\/[^<]+<\/a><\/td>\s*<td class="status"><span class="status_green">/g, //liveregex
  2840. /extabit\.com\/file\/\w+\/[^<]+<\/a><\/td>\s*<td class="status"><span class="status_red">/g, //deadregex
  2841. /extabit\.com\/file\/\w+\/[^<]+<\/a><\/td>\s*<td class="status"><span class="status_yellow">/g, //unavaregex
  2842. extabitBulkCheck //function delegate
  2843. )
  2844. }
  2845. if (GM_getValue("Check_junocloud_dot_me_links", false))
  2846. {
  2847. addHost(
  2848. "junocloud", //hostname
  2849. "junocloud\\.me\/\\w+", //linkregex
  2850. "//a[contains(@href,'junocloud.me')]", //xpath
  2851. null, //blocksize
  2852. null, //corrmatch
  2853. null, //corrreplwhat
  2854. null, //corrreplwith
  2855. "\n", //separator
  2856. "http://junocloud.me/checkfiles.html", //api url
  2857. "op=checkfiles&process=Check+URLs&list=", //postdata
  2858. /(junocloud\.me\/\w+)/, //linkregex
  2859. /<a href="http:\/\/junocloud\.me\/\w+[^<]+<\/a>\s*<span style="color: green/g, //liveregex
  2860. /<a href="http:\/\/junocloud\.me\/\w+[^<]+<\/a>\s*<span style="color: red/g, //deadregex
  2861. null, //unavaregex
  2862. null //function delegate
  2863. )
  2864. }
  2865. if (GM_getValue("Check_webshare_dot_cz_links", false))
  2866. {
  2867. addHost(
  2868. "webshare", //hostname
  2869. "webshare\.cz\/(?:(?:#/)?file/\\w+|\\w+-.*)", //linkregex
  2870. "//a[contains(@href,'webshare.cz')]", //xpath
  2871. 100000, //blocksize
  2872. null, //corrmatch
  2873. null, //corrreplwhat
  2874. null, //corrreplwith
  2875. null, //separator
  2876. null, //api url
  2877. null, //postdata
  2878. null, //linkregex
  2879. null, //liveregex
  2880. null, //deadregex
  2881. null, //unavaregex
  2882. webshareBulkCheck //function delegate
  2883. )
  2884. }
  2885. /////////////////////////////
  2886. // Common function delegate to send links to get checked by host linkchecker
  2887. /////////////////////////////
  2888. // If you define a new delegate, you may use following properties
  2889. // this.links [array] array of strings (link blocks). The links in each block separated with host.splitSeparator.
  2890. // this.apiUrl [string] API or web linkchecker URL
  2891. // this.postData [string] POSTDATA for POST request
  2892. // this.resLiveRegex [regex] matches live substrings in the request response
  2893. // this.resDeadRegex [regex] matches dead substrings in the request response
  2894. // this.resUnavaRegex [regex] matches unava substrings in the request response (the regex is often null!)
  2895. //
  2896. // this.resLinkRegex [regex] matches links further passed to DisplayTheCheckedLinks
  2897. //
  2898. // See the code below for standard bulkcheck handling reference.
  2899. //////////////////////////////
  2900. function genBulkCheck()
  2901. {
  2902. var blockIdx = this.links.length;
  2903. while (blockIdx--)
  2904. {
  2905. postRequest(this.apiUrl, this.postData, this.links[blockIdx],
  2906. this.resLinkRegex, this.resLiveRegex, this.resDeadRegex, this.resUnavaRegex);
  2907. }
  2908. function postRequest(api, postData, links, linkRegex, liveRegex, deadRegex, unavaRegex)
  2909. {
  2910. GM_xmlhttpRequest(
  2911. {
  2912. method: 'POST',
  2913. url: api,
  2914. headers: {
  2915. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  2916. 'Content-type': 'application/x-www-form-urlencoded',
  2917. 'Referer': api,
  2918. 'X-Requested-With': 'XMLHttpRequest'
  2919. },
  2920. data: postData + encodeURIComponent(links),
  2921. onload: function (result)
  2922. {
  2923. var res = result.responseText;
  2924. // GM_log(res);
  2925. var i;
  2926.  
  2927. var livelinks = res.match(liveRegex);
  2928. var deadlinks = res.match(deadRegex);
  2929. // GM_log(livelinks);
  2930. // GM_log(deadlinks);
  2931. if (livelinks != null)
  2932. {
  2933. i = livelinks.length - 1;
  2934. do
  2935. {
  2936. livelinks[i] = livelinks[i].match(linkRegex)[1];
  2937. }
  2938. while (i--);
  2939. DisplayTheCheckedLinks(livelinks, 'alive_link');
  2940. }
  2941.  
  2942. if (deadlinks != null)
  2943. {
  2944. i = deadlinks.length - 1;
  2945. do
  2946. {
  2947. deadlinks[i] = deadlinks[i].match(linkRegex)[1];
  2948. }
  2949. while (i--);
  2950. DisplayTheCheckedLinks(deadlinks, 'adead_link');
  2951. }
  2952.  
  2953. if (unavaRegex != null)
  2954. {
  2955. var unavalinks = res.match(unavaRegex);
  2956. if (unavalinks)
  2957. {
  2958. i = unavalinks.length - 1;
  2959. do
  2960. {
  2961. unavalinks[i] = unavalinks[i].match(linkRegex)[1];
  2962. }
  2963. while (i--);
  2964. DisplayTheCheckedLinks(unavalinks, 'unava_link');
  2965. }
  2966. }
  2967. }
  2968. });
  2969. }
  2970. }
  2971. //specialized bulkchecking handlers follow
  2972. function webshareBulkCheck()
  2973. {
  2974. var arr = this.links[0].split("\r\n");
  2975. var i = arr.length;
  2976. while(i--)
  2977. {
  2978. postRequest(arr[i]);
  2979. }
  2980. //function postRequest(api, postData, links, linkRegex, liveRegex, deadRegex, unavaRegex)
  2981. function postRequest(wsLink)
  2982. {
  2983. var id = wsLink.match(/webshare\.cz\/(?:(?:#\/)?file\/)?(\w+)/)[1];
  2984. GM_xmlhttpRequest(
  2985. {
  2986. method: 'POST',
  2987. url: "http://webshare.cz/api/file_info/",
  2988. headers: {
  2989. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  2990. 'Content-type': 'application/x-www-form-urlencoded',
  2991. 'Referer': "",
  2992. },
  2993. data: "wst=&ident=" + id,
  2994. onload: function (result)
  2995. {
  2996. var res = result.responseText;
  2997. if (res.match(/<name>.+?<\/name>/))
  2998. {
  2999. DisplayTheCheckedLinks([id], 'alive_link');
  3000. }
  3001. else
  3002. {
  3003. DisplayTheCheckedLinks([id], 'adead_link');
  3004. }
  3005. }
  3006. });
  3007. }
  3008. }
  3009. //like genBulkCheck, but extabit linkchecker only works when logged in. If not logged in, non-bulk checking has to be used.
  3010. //extabit also doesn't like requests in fast succession, so some delays are added.
  3011. function extabitBulkCheck()
  3012. {
  3013. var timeoutDelay = 0;
  3014. var blockIdx = this.links.length;
  3015. while (blockIdx--)
  3016. {
  3017. postRequest(this.apiUrl, this.postData, this.links[blockIdx],
  3018. this.resLinkRegex, this.resLiveRegex, this.resDeadRegex, this.resUnavaRegex);
  3019. }
  3020. function postRequest(api, postData, links, linkRegex, liveRegex, deadRegex, unavaRegex)
  3021. {
  3022. GM_xmlhttpRequest(
  3023. {
  3024. method: 'POST',
  3025. url: api,
  3026. headers: {
  3027. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  3028. 'Content-type': 'application/x-www-form-urlencoded',
  3029. 'Referer': api,
  3030. 'X-Requested-With': 'XMLHttpRequest'
  3031. },
  3032. data: postData + encodeURIComponent(links),
  3033. onload: function (result)
  3034. {
  3035. var res = result.responseText;
  3036. if (/id="registration_header"/.test(res)) //not logged in, have to use non-bulk
  3037. {
  3038. function geturlfunc(link, tryID) //basically the geturl function with some changes (compacted, displaythecheckedlinkS, multiple tries)
  3039. {
  3040. //GM_log(tryID + ': ' + link);
  3041. GM_xmlhttpRequest(
  3042. {
  3043. method: 'GET',
  3044. url: link,
  3045. 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': ""},
  3046. onload: function(result2)
  3047. {
  3048. var res2 = result2.responseText;
  3049. var res2Status = result.status;
  3050. if (/download-file-btn/.test(res2)) {DisplayTheCheckedLinks([link], 'alive_link'); return;}
  3051. if (/Search mirrors|id="mirrb"/.test(res2) || res2Status==404) {DisplayTheCheckedLinks([link], 'adead_link'); return;}
  3052. if (/currently unavailable|temporarily unavailable|disponible en estos momentos|vorläufig unerreichbar|Файл временно недоступен/.test(res2) || res2Status == 500 || res2Status == 503)
  3053. {
  3054. if (tryID < 7)
  3055. setTimeout(function(){geturlfunc(link,tryID+1)}, tryID * 1000 + (Math.random() * tryID * 2000));
  3056. else
  3057. {DisplayTheCheckedLinks([link], 'unava_link'); return;}
  3058. }
  3059. }
  3060. });
  3061. }
  3062. //split the hrefs and check them one by one
  3063. GM_log('Using slow extabit.com link checking. Log in to extabit to use fast bulk checking.');
  3064. links = links.split('\n');
  3065. var i = links.length;
  3066. while (i--)
  3067. {
  3068. if (links[i])
  3069. {
  3070. (function(i){setTimeout(function(){geturlfunc(links[i],1)}, timeoutDelay);})(i);
  3071. timeoutDelay += 500;
  3072. }
  3073. }
  3074. return;
  3075. }
  3076. var i;
  3077.  
  3078. var livelinks = res.match(liveRegex);
  3079. var deadlinks = res.match(deadRegex);
  3080. if (livelinks != null)
  3081. {
  3082. i = livelinks.length - 1;
  3083. do
  3084. {
  3085. livelinks[i] = livelinks[i].match(linkRegex)[1];
  3086. }
  3087. while (i--);
  3088. DisplayTheCheckedLinks(livelinks, 'alive_link');
  3089. }
  3090.  
  3091. if (deadlinks != null)
  3092. {
  3093. i = deadlinks.length - 1;
  3094. do
  3095. {
  3096. deadlinks[i] = deadlinks[i].match(linkRegex)[1];
  3097. }
  3098. while (i--);
  3099. DisplayTheCheckedLinks(deadlinks, 'adead_link');
  3100. }
  3101.  
  3102. if (unavaRegex != null)
  3103. {
  3104. var unavalinks = res.match(unavaRegex);
  3105. if (unavalinks)
  3106. {
  3107. i = unavalinks.length - 1;
  3108. do
  3109. {
  3110. unavalinks[i] = unavalinks[i].match(linkRegex)[1];
  3111. }
  3112. while (i--);
  3113. DisplayTheCheckedLinks(unavalinks, 'unava_link');
  3114. }
  3115. }
  3116. }
  3117. });
  3118. }
  3119. }
  3120. function netloadBulkCheck()
  3121. {
  3122. var blockIdx = this.links.length;
  3123.  
  3124. while (blockIdx--)
  3125. {
  3126. postRequest(this.apiUrl, this.postData, this.links[blockIdx],
  3127. this.resLinkRegex, this.resLiveRegex, this.resDeadRegex, this.unavaRegex);
  3128. }
  3129. function postRequest(api, postData, links, linkRegex, liveRegex, deadRegex, unavaRegex)
  3130. {
  3131. GM_xmlhttpRequest(
  3132. {
  3133. method: 'POST',
  3134. url: api,
  3135. headers: {
  3136. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  3137. 'Content-type': 'application/x-www-form-urlencoded',
  3138. 'Referer': ""
  3139. },
  3140. data: postData + encodeURIComponent(links),
  3141. onload: function (result)
  3142. {
  3143. var res = result.responseText;
  3144. var i;
  3145.  
  3146. var livelinks = res.match(liveRegex);
  3147. var deadlinks = res.match(deadRegex);
  3148. if (livelinks != null)
  3149. {
  3150. i = livelinks.length - 1;
  3151. do
  3152. {
  3153. recheckLink(livelinks[i].match(linkRegex)[1]);
  3154. }
  3155. while(i--);
  3156. }
  3157.  
  3158. if (deadlinks != null)
  3159. {
  3160. i = deadlinks.length - 1;
  3161. do
  3162. {
  3163. deadlinks[i] = deadlinks[i].match(linkRegex)[1];
  3164. }
  3165. while (i--);
  3166. DisplayTheCheckedLinks(deadlinks, 'adead_link');
  3167. }
  3168. }
  3169. });
  3170. }
  3171. function recheckLink(link)
  3172. {
  3173. var link = link;
  3174. GM_xmlhttpRequest(
  3175. {
  3176. method: 'GET',
  3177. url: 'http://netload.in/datei' + link + '.htm',
  3178. headers: {
  3179. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3180. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  3181. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  3182. 'Referer': ""
  3183. },
  3184. onload: function (result)
  3185. {
  3186. var res = result.responseText;
  3187.  
  3188. if (res.match(/dl_first_file_download">|download_limit\.gif/))
  3189. {
  3190. DisplayTheCheckedLinks([link], 'alive_link');
  3191. return;
  3192. }
  3193.  
  3194. if (res.match(/achtung\.jpg"/))
  3195. {
  3196. DisplayTheCheckedLinks([link], 'adead_link');
  3197. }
  3198. },
  3199. onerror: function ()
  3200. {
  3201. displayTheCheckedLink(link, 'unava_link');
  3202. }
  3203. });
  3204. }
  3205. }
  3206.  
  3207. function depositfilesBulkCheck()
  3208. {
  3209. var arr = this.links[0].split("\r\n");
  3210. var i = arr.length;
  3211. var seqno = Math.floor(Math.random()*1000000000);
  3212. while(i--)
  3213. {
  3214. DFpostRequest(arr[i]);
  3215. }
  3216. }
  3217. function DFpostRequest(DFLink)
  3218. {
  3219. DFLink=DFLink.replace('depositfiles.lt/','depositfiles.com/');
  3220. DFLink=DFLink.replace('depositfiles.org/','depositfiles.com/');
  3221. DFLink=DFLink.replace('dfiles.ru/','depositfiles.com/');
  3222. DFLink=DFLink.replace('dfiles.eu/','depositfiles.com/');
  3223. var id = DFLink.match(/depositfiles\.com\/files\/(\w+)/)[1];
  3224. GM_xmlhttpRequest(
  3225. {
  3226. method: "GET",
  3227. url: "http://depositfiles.com/api/get_download_info.php?id=" + id + "&format=json",
  3228. headers: {
  3229. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3230. 'Content-Type': 'application/x-www-form-urlencoded',
  3231. 'Referer': ""
  3232. },
  3233. onload: function (result)
  3234. {
  3235. var res = result.responseText;
  3236. if (res.match('(?:no_file|file_ban)'))
  3237. {
  3238. DisplayTheCheckedLinks([id], 'adead_link');
  3239. return;
  3240. }
  3241. if (res.match('"download_li(?:nk|mit)|password_check|file_storage"'))
  3242. {
  3243. DisplayTheCheckedLinks([id], 'alive_link');
  3244. return;
  3245. }
  3246. DisplayTheCheckedLinks([id], 'unava_link');
  3247. }
  3248. });
  3249. }
  3250.  
  3251. function megaBulkCheck()
  3252. {
  3253. var arr = this.links[0].split("\r\n");
  3254. var i = arr.length;
  3255. var seqno = Math.floor(Math.random()*1000000000);
  3256. while(i--)
  3257. {
  3258. postRequest(arr[i]);
  3259. }
  3260. function postRequest(megaLink)
  3261. {
  3262. megaLink=megaLink.replace('mega.nz/','mega.co.nz/');
  3263. var id = megaLink.match(/mega\.co\.nz\/#!(\w+)(?:!\w+)?/)[1];
  3264. GM_xmlhttpRequest(
  3265. {
  3266. method: "POST",
  3267. url: 'https://g.api.mega.co.nz/cs?id=' + seqno++,
  3268. data: '[{"a":"g","p":"' + id + '","ssl": "1"}]',
  3269. headers: {
  3270. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3271. 'Content-Type': 'application/xml',
  3272. 'Referer': "https://mega.co.nz/"
  3273. },
  3274. onload: function (result)
  3275. {
  3276. var res = $.parseJSON(result.responseText.match(/\[(.+?)\]/)[1]);
  3277. if ((typeof res == "number" && (res == -9 || res == -16 || res == -6)) || res.d)
  3278. {
  3279.  
  3280. DisplayTheCheckedLinks([id], 'adead_link');
  3281. }
  3282. if (res.at)
  3283. {
  3284. DisplayTheCheckedLinks([id], 'alive_link');
  3285. }
  3286. if (res.e == "ETEMPUNAVAIL")
  3287. {
  3288. DisplayTheCheckedLinks([id], 'unava_link');
  3289. }
  3290. }
  3291. });
  3292. }
  3293.  
  3294. }
  3295.  
  3296. function oboomBulk() {
  3297. var a = [], b = [], c = [];
  3298. var array = this.links;
  3299.  
  3300. GM_xmlhttpRequest({
  3301. method: 'GET',
  3302. url: 'https://www.oboom.com/1/guestsession',
  3303. headers: {
  3304. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  3305. 'Content-type': 'application/x-www-form-urlencoded',
  3306. 'Referer': 'https://www.oboom.com',
  3307. 'X-Requested-With': 'XMLHttpRequest'
  3308. },
  3309. onload: function(result) {
  3310. var blockIdx = array.length;
  3311. var token = JSON.parse(result.responseText)[1];
  3312. while (blockIdx--) {
  3313. startCheck(array[blockIdx].split('\r\n'), token);
  3314. }
  3315. }
  3316. });
  3317.  
  3318. function startCheck(links, token) {
  3319. GM_xmlhttpRequest({
  3320. method: 'POST',
  3321. url: "https://api.oboom.com/1/info",
  3322. headers: {
  3323. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  3324. 'Content-type': 'application/x-www-form-urlencoded',
  3325. 'Referer': 'https://www.oboom.com/',
  3326. 'X-Requested-With': 'XMLHttpRequest'
  3327. },
  3328. data: "token=" + token + "&items=" + links.join(","),
  3329. onload: function(result) {
  3330. var res = JSON.parse(result.responseText)[1];
  3331. var i = res.length, s;
  3332.  
  3333. while (i--) {
  3334. s = res[i].state;
  3335. if (s == 'online') a.push(res[i].id);
  3336. 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);
  3337. else c.push(res[i].id);
  3338. }
  3339.  
  3340. if (a.length > 0) DisplayTheCheckedLinks(a, 'alive_link');
  3341. if (b.length > 0) DisplayTheCheckedLinks(b, 'adead_link');
  3342. if (c.length > 0) DisplayTheCheckedLinks(c, 'unava_link');
  3343. }
  3344. });
  3345. }
  3346. }
  3347. function linksaveBulkCheck()
  3348. {
  3349. var arr = this.links[0].split("\r\n");
  3350. var i = arr.length;
  3351. while(i--)
  3352. {
  3353. postRequest(arr[i]);
  3354. }
  3355. function postRequest(lsLink)
  3356. {
  3357. GM_xmlhttpRequest(
  3358. {
  3359. method: "GET",
  3360. url: lsLink + '-t.jpg',
  3361. headers: {
  3362. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3363. 'Accept': 'text/xml',
  3364. 'Referer': ""
  3365. },
  3366. onload: function (result)
  3367. {
  3368. var imgLen = result.responseHeaders.match(/Content-Length: (\d+)/)[1];
  3369. if (imgLen == 965) //online
  3370. {
  3371. DisplayTheCheckedLinks([lsLink], 'alive_link');
  3372. }
  3373.  
  3374. if (imgLen == 972) //offline
  3375. {
  3376. DisplayTheCheckedLinks([lsLink], 'adead_link');
  3377. }
  3378. if (imgLen == 978) //unava
  3379. {
  3380. DisplayTheCheckedLinks([lsLink], 'unava_link');
  3381. }
  3382. }
  3383. });
  3384. }
  3385.  
  3386. }
  3387. function linkcryptBulkCheck()
  3388. {
  3389. var arr = this.links[0].split("\r\n");
  3390. var i = arr.length;
  3391. while(i--)
  3392. {
  3393. postRequest(arr[i]);
  3394. }
  3395. function postRequest(lcLink)
  3396. {
  3397. GM_xmlhttpRequest(
  3398. {
  3399. method: "GET",
  3400. url: 'http://linkcrypt.ws/api.html?api=status_V1&folderKey=' + lcLink.match(/dir\/(\w+)/)[1],
  3401. headers: {
  3402. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3403. 'Accept': 'text/xml',
  3404. 'Referer': ""
  3405. },
  3406. onload: function (result)
  3407. {
  3408. var res = result.responseText;
  3409. if (res.match(/<errorCode>1101|folderStatus>[23]/)) //Offline status
  3410. {
  3411. DisplayTheCheckedLinks([lcLink], 'adead_link');
  3412. return;
  3413. }
  3414. if (res.match(/folderStatus>1/)) //Online status
  3415. {
  3416. DisplayTheCheckedLinks([lcLink], 'alive_link');
  3417. }
  3418. else
  3419. {
  3420. DisplayTheCheckedLinks([lcLink], 'unava_link');
  3421. }
  3422. }
  3423. });
  3424. }
  3425. }
  3426.  
  3427. function megashareBulkCheck()
  3428. {
  3429. var arr = this.links[0].split("\r\n");
  3430. var i = arr.length;
  3431. while(i--)
  3432. {
  3433. postRequest(arr[i]);
  3434. }
  3435. function postRequest(msLink)
  3436. {
  3437. GM_xmlhttpRequest(
  3438. {
  3439. method: "GET",
  3440. url: msLink,
  3441. headers: {
  3442. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3443. 'Content-Type': 'application/x-www-form-urlencoded',
  3444. 'Referer': ""
  3445. },
  3446. onload: function (result)
  3447. {
  3448. var prZVal = result.responseText.match(/name="(\d+prZVal)" value="(\d+)">/);
  3449. var btn3Name = result.responseText.match(/src="images\/dwn-btn3\.gif" name="(.+?)"/);
  3450. if ((prZVal == null) || (btn3Name == null))
  3451. {
  3452. return;
  3453. }
  3454. GM_xmlhttpRequest(
  3455. {
  3456. method: "POST",
  3457. url: msLink,
  3458. headers: {
  3459. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3460. 'Content-Type': 'application/x-www-form-urlencoded',
  3461. 'Referer': ""
  3462. },
  3463. data: prZVal[1] + "=" + prZVal[2] + '&' + btn3Name[1] + '.x=1&' + btn3Name[1] + '.y=1',
  3464. onload: function (result)
  3465. {
  3466. var res = result.responseText;
  3467. if (res.match(/<div id="err">/))
  3468. {
  3469. DisplayTheCheckedLinks([msLink.match(/\.com(\/\d+)/)[1]], 'adead_link');
  3470. }
  3471. else
  3472. {
  3473. DisplayTheCheckedLinks([msLink.match(/\.com(\/\d+)/)[1]], 'alive_link');
  3474. }
  3475. }
  3476. });
  3477. }
  3478. });
  3479. }
  3480. }
  3481. function ncryptBulkCheck()
  3482. {
  3483. var arr = this.links[0].split("\r\n");
  3484. var i = arr.length;
  3485. while(i--)
  3486. {
  3487. postRequest(arr[i]);
  3488. }
  3489. function postRequest(ncryptLink)
  3490. {
  3491. GM_xmlhttpRequest(
  3492. {
  3493. method: "POST",
  3494. url: 'http://ncrypt.in/api_status.php',
  3495. headers: {
  3496. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3497. 'Content-Type': 'application/x-www-form-urlencoded',
  3498. 'Referer': ""
  3499. },
  3500. data: 'link=' + encodeURI(ncryptLink),
  3501. onload: function (result)
  3502. {
  3503. var foldStatus = result.responseText.match(/(?:offline|online);/);
  3504. switch(foldStatus + ""){
  3505. case "offline;": DisplayTheCheckedLinks([ncryptLink], 'adead_link'); break;
  3506. case "online;": DisplayTheCheckedLinks([ncryptLink], 'alive_link'); break;
  3507. default: DisplayTheCheckedLinks([ncryptLink], 'unava_link');
  3508. }
  3509. }
  3510. });
  3511. }
  3512. }
  3513. function hellshareBulkCheck()
  3514. {
  3515. var links = this.links;
  3516. GM_xmlhttpRequest(
  3517. {
  3518. method: "GET",
  3519. url: 'http://www.hellshare.com',
  3520. headers: {
  3521. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3522. 'Accept': 'text/xml',
  3523. 'Referer': ""
  3524. },
  3525. onload: function (result)
  3526. {
  3527. var domain = result.responseText.match(/param_rau = "www\.hellshare\.(\w+)"/)[1];
  3528.  
  3529. var loc = 'check=Zkontrolovat+dostupnost+soubor%C5%AF&links=';
  3530. if (domain == 'sk')
  3531. loc = 'check=Skontrolova%C5%A5&links=';
  3532. if (domain == 'com')
  3533. loc = 'check=Check+availability&links=';
  3534. if (domain == 'hu')
  3535. loc = 'check=Kontrol%C3%A1lj&links=';
  3536. if (domain == 'pl')
  3537. loc = 'check=Sprawd%C5%BC+dost%C4%99pno%C5%9B%C4%87+plik%C3%B3w&links=';
  3538.  
  3539. genBulkCheck.call({ links: links,
  3540. apiUrl: 'http://www.hellshare.' + domain + '/linkchecker?do=linkChecker-linkcheckerform-submit',
  3541. postData: loc,
  3542. resLinkRegex: /hellshare\.(?:cz|com|sk|hu|pl)\/(?:[\w-\.]+\/|)([\w-\.]+\/\d{5,})/,
  3543. 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,
  3544. resDeadRegex: /<span style="color:gray">.*?<\/span> - <strong>/g,
  3545. resUnavaRegex: null
  3546. });
  3547. }
  3548. });
  3549. }
  3550. /**
  3551. * Displays check result
  3552. * @param {Array} Array of links or link fragments.
  3553. * @param {String} Check result status -> ['alive_link'|'adead_link'|'unava_link']
  3554. */
  3555. function DisplayTheCheckedLinks(links, resultStatus)
  3556. {
  3557. //(a[href*=link_1], a[href*=link_2], ..., a[href*=link_n])
  3558. var $links = $('a[href*="' + links.join('"], a[href*="') + '"]');
  3559. if (Do_not_linkify_DL_links)
  3560. { //TODO into separate jQuery function
  3561. $links.replaceWith(function(){
  3562. return '<span href="' + this.href + '">' + $(this).text() + '</span>';
  3563. });
  3564. $links = $('span[href*="' + links.join('"], span[href*="') + '"]');
  3565. }
  3566. $links.removeClass().addClass(resultStatus);
  3567. $links.each(function() {
  3568. this.href = Ref_anonymize_service + $(this).attr("href");
  3569. });
  3570. switch(resultStatus)
  3571. {
  3572. case "alive_link": cLinksAlive += $links.length;
  3573. if (Display_tooltip_info) $links.mouseover(displayTooltipInfo);
  3574. break;
  3575. case "adead_link": cLinksDead += $links.length;
  3576. if (Display_tooltip_info) $links.mouseover(displayTooltipError);
  3577. break;
  3578. case "unava_link": cLinksUnava += $links.length; break;
  3579. default:
  3580. }
  3581. cLinksProcessed += $links.length;
  3582. }
  3583. }
  3584. // starts bulkchecking
  3585. //
  3586. // params
  3587. // filterId [string] restricts link detection with passed id attribute
  3588. function startBulkCheck(filterId)
  3589. {
  3590. var cHosts = bulkHosts.length;
  3591. if (cHosts == 0) //no filehostings selected
  3592. return;
  3593. // STEP 1 linkify the links
  3594. var linkifyRegex = '';
  3595. var hostIdx = cHosts;
  3596. while(hostIdx--)
  3597. {
  3598. linkifyRegex += bulkHosts[hostIdx].linkRegex + "|";
  3599. }
  3600. linkifyRegex = linkifyRegex.replace(/\|$/, '');
  3601. linkify(linkifyRegex);
  3602. //
  3603. //STEP 2 detect link objects
  3604. var xpathAll = '';
  3605. var hostIdx = cHosts;
  3606. while(hostIdx--)
  3607. {
  3608. xpathAll += bulkHosts[hostIdx].xpath + "|";
  3609. }
  3610. xpathAll = xpathAll.replace(/\]\|\/\/a\[/g, " or ");
  3611. xpathAll = xpathAll.replace(/\]\|/, ')]');
  3612. if (filterId != null) //insert id restriction in the xpath
  3613. {
  3614. xpathAll = xpathAll.replace(/\[/, "[@class='" + filterId + "' and (");
  3615. }
  3616. else
  3617. {
  3618. xpathAll = xpathAll.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  3619. }
  3620. var links = document.evaluate(xpathAll, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  3621. if (filterId == null)
  3622. {
  3623. cLinksTotal += links.snapshotLength;
  3624. }
  3625. //
  3626. //STEP 3 bind links with hostings
  3627. var linkIdx = links.snapshotLength;
  3628. var href = null;
  3629. if (linkIdx == 0) // no links found
  3630. return;
  3631. var name;
  3632. while (linkIdx--)
  3633. {
  3634. href = links.snapshotItem(linkIdx).href;
  3635. try // DO NOT REMOVE, filters crap that went through xpath detection
  3636. {
  3637. name = gimmeHostName(href);
  3638. if (href.match(bulkHostNames[name].linkRegexObject) != null)
  3639. bulkHostNames[name].links.push(href);
  3640. }
  3641. catch(e)
  3642. {
  3643.  
  3644. }
  3645. }
  3646. //
  3647. //STEP 4 process the links for each filehosting
  3648. var hostIdx = cHosts;
  3649. var host;
  3650. var m,n;
  3651. var arr;
  3652. while (hostIdx--)
  3653. {
  3654. host = bulkHosts[hostIdx];
  3655. arr = host.links;
  3656. if (arr.length == 0) //no links for this hosting, skip
  3657. {
  3658. continue;
  3659. }
  3660. //links match corrections
  3661. if (host.corrMatch != null)
  3662. {
  3663. var idx = arr.length;
  3664. while (idx--)
  3665. {
  3666. arr[idx] = arr[idx].match(host.corrMatch)[1];
  3667. }
  3668. }
  3669. //links replace corrections
  3670. if ((host.corrReplWhat != null) && (host.corrReplWith != null))
  3671. {
  3672. var idx = arr.length;
  3673. while (idx--)
  3674. {
  3675. arr[idx] = arr[idx].replace(host.corrReplWhat, host.corrReplWith);
  3676. }
  3677. }
  3678. m = arr.length;
  3679. n = host.blockSize;
  3680. if (m > n)
  3681. {
  3682. //insert block separators (RAND_STRING) into the array
  3683. for(var i = n; i < m; i += n + 1)
  3684. {
  3685. arr.splice(i, 0, RAND_STRING);
  3686. }
  3687. }
  3688.  
  3689. host.func.call({ links: arr.join(host.splitSeparator).split(RAND_STRING),
  3690. apiUrl: host.apiUrl,
  3691. postData: host.postData,
  3692. resLinkRegex: host.resLinkRegex,
  3693. resLiveRegex: host.resLiveRegex,
  3694. resDeadRegex: host.resDeadRegex,
  3695. resUnavaRegex: host.resUnavaRegex
  3696. });
  3697. //clean up
  3698. arr.length = 0;
  3699. }
  3700. //
  3701.  
  3702. function gimmeHostName(link)
  3703. {
  3704. return link.replace(/https?:\/\/.*?http(s)?:\/\//, "http$1://").match(/https?:\/\/(?:www\.|[\w\.])*?([\w-]+)\.(?:co\.uk|co\.nz|\w+)\//)[1];
  3705. }
  3706. }
  3707. function checkLinks(filterId)
  3708. {
  3709. startBulkCheck(filterId);
  3710. start(filterId);
  3711. }
  3712.  
  3713. /**
  3714. * Initialises progress box including event binding and CSS
  3715. */
  3716. function initProgressBox()
  3717. {
  3718. if ($("#warlc-progressbox").length > 0)
  3719. return;
  3720. //progressbox css change size and color of progress box
  3721. GM_addStyle("#warlc-progressbox {position:fixed; background:DimGray;" + Progress_box_background_color +
  3722. "; opacity:" + (Progress_box_opacity / 100) +
  3723. "; bottom:" + Progress_box_pos_bottom +
  3724. "px; right:" + Progress_box_pos_right +
  3725. "px; padding:5px; font-size:20px; font-weight:bold; cursor:default;}\
  3726. \
  3727. .warlc-progressbar {text-align:center; color: DimGray; height:2px; margin-bottom:2px;}\
  3728. \
  3729. .warlc-progressitem {}\
  3730. \
  3731. .alive {color:#00FF7F; " + Live_links_color +
  3732. "; background:transparent url(" + alive_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;} .dead {color:" + Dead_links_color +
  3733. "; background:transparent url(" + adead_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;} .unava {color: " + Temp_unavailable_links_color +
  3734. "; background:transparent url(" + unava_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;} .processing {color:Black; " + Container_links_color +
  3735. "; background:transparent url(" + processing_link_gif + ") no-repeat scroll 100% 50%;padding-right:15px;} .prem {color:" + Premium_links_color +
  3736. "; background:transparent url(" + prem_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;}"
  3737. );
  3738. //
  3739. $('body').append(' <div id="warlc-progressbox">\
  3740. <div class="warlc-progressbar"></div>\
  3741. <span class="warlc-progressitem alive"></span> - \
  3742. <span class="warlc-progressitem dead"></span> - \
  3743. <span class="warlc-progressitem unava"></span> - \
  3744. <span class="warlc-progressitem prem"></span> - \
  3745. <span class="warlc-progressitem processing"></span>\
  3746. </div>');
  3747. $('#warlc-progressbox').hide().click(function(){
  3748. clearInterval(intervalId);
  3749. $(this).hide();
  3750. return false;
  3751. });
  3752. $(".warlc-progressbar").progressbar({complete: function(){
  3753. $(this).fadeOut();
  3754. clearInterval(intervalId); //stop refreshing the stats
  3755. }
  3756. })
  3757. .one('progressbarchange', function(){$('#warlc-progressbox').show();});
  3758. }
  3759. /**
  3760. * Updates progress data in progress box
  3761. */
  3762. function updateProgress()
  3763. {
  3764. $("#warlc-progressbox").attr('aria-valuenow', Math.round(((100 / cLinksTotal) * cLinksProcessed)));
  3765. if (cLinksTotal) // some links were detected on page
  3766. {
  3767. var percProgress = Math.round(((100 / cLinksTotal) * cLinksProcessed));
  3768. var $progressItems = $('#warlc-progressbox > .warlc-progressitem');
  3769. $(".warlc-progressbar").progressbar('option', 'value', percProgress);
  3770. if ((cLinksTotal - cLinksProcessed) == 0)
  3771. {
  3772. $progressItems.first().text(cLinksAlive)
  3773. .next().text(cLinksDead)
  3774. .next().text(cLinksUnava)
  3775. .next().text(cLinksprem)
  3776. .next().remove();
  3777. $('#warlc-progressbox').html($('#warlc-progressbox').html().substr(0,$('#warlc-progressbox').html().lastIndexOf(">")+1));
  3778. $('#warlc-progressbox div:first-child').remove();
  3779. }
  3780. else
  3781. {
  3782. $progressItems.first().text(cLinksAlive)
  3783. .next().text(cLinksDead)
  3784. .next().text(cLinksUnava)
  3785. .next().text(cLinksprem)
  3786. .next().text(cLinksTotal - cLinksProcessed);
  3787. }
  3788. }
  3789. }
  3790.  
  3791. function check_all_links()
  3792. {
  3793. add_WARLC_style();
  3794.  
  3795. if (Show_progress_stats)
  3796. {
  3797. initProgressBox();
  3798. intervalId = setInterval(function(){updateProgress();}, Progress_box_refresh_rate);
  3799. }
  3800.  
  3801. startBulkCheck(null);
  3802. start(null);
  3803.  
  3804. if (!containers_processed)
  3805. {
  3806. processContainers();
  3807. }
  3808. }
  3809.  
  3810. //Copies all found dead links to clipboard - right now for Scriptish only
  3811. function copy_dead_to_clipboard()
  3812. {
  3813. initClipBoardTools();
  3814.  
  3815. var deadlinksxpath = "//.[@class='adead_link']";
  3816.  
  3817. var foundlinks = document.evaluate(deadlinksxpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  3818. var foundlinkstext = '';
  3819.  
  3820. var foundlinkIdx = foundlinks.snapshotLength;
  3821.  
  3822. while(foundlinkIdx--)
  3823. {
  3824. if (foundlinks.snapshotItem(foundlinkIdx).innerHTML != ' x')
  3825. foundlinkstext += foundlinks.snapshotItem(foundlinkIdx).innerHTML.replace(/\[\/hide:\w+\]/,"") + '\n';
  3826. }
  3827.  
  3828. unsafeWindow.copyToClipboard(foundlinkstext);
  3829. }
  3830.  
  3831. function toggle_autocheck()
  3832. {
  3833. var currentState = GM_getValue("Autocheck", false);
  3834. GM_setValue("Autocheck", !currentState);
  3835.  
  3836. if (currentState == true)
  3837. {
  3838. sendMessage('Autocheck disabled', 'red');
  3839. }
  3840. else
  3841. {
  3842. sendMessage('Autocheck enabled', 'SpringGreen');
  3843. }
  3844. }
  3845. function toggle_Enable_Anonymizer()
  3846. {
  3847. var currentState = GM_getValue("Enable_Anonymizer", false);
  3848. GM_setValue("Enable_Anonymizer", !currentState);
  3849.  
  3850. if (currentState == true)
  3851. {
  3852. GM_setValue("Ref_anonymize_service", "");
  3853. sendMessage('Anonymizer Disabled', 'red');
  3854. }
  3855. else
  3856. {
  3857. GM_setValue("Ref_anonymize_service", "http://hiderefer.com/?");
  3858. sendMessage('Anonymizer Enabled', 'SpringGreen');
  3859. }
  3860. }
  3861.  
  3862. function KeyDownHandler(event)
  3863. {
  3864. var kcode = (event.keyCode) ? event.keyCode : event.which;
  3865. if (event.ctrlKey && event.altKey)
  3866. {
  3867. switch(kcode)
  3868. {
  3869. case 65 : check_all_links(); break;
  3870. case 67 : configuration(); break;
  3871. case 68 : copy_dead_to_clipboard(); break;
  3872. case 87 : toggle_autocheck(); break;
  3873. case 90 : toggle_Enable_Anonymizer(); break;
  3874. }
  3875. }
  3876. }
  3877.  
  3878. //
  3879. //
  3880. // SCRIPT EXECUTION START POINT
  3881. //
  3882. //
  3883. // Safari specific GM_getResourceText override
  3884. if (navigator.userAgent.indexOf('Safari') != -1 && navigator.userAgent.indexOf('Chrome') == -1)
  3885. {
  3886. GM_getResourceText = function(res) {
  3887. var $cssText = GM_getValue("jquery_css", "");
  3888. if ($cssText == "")
  3889. {
  3890. GM_xmlhttpRequest(
  3891. {
  3892. method: 'GET',
  3893. url: 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css',
  3894. onload: function (result)
  3895. {
  3896. GM_setValue("jquery_css", result.responseText);
  3897. window.location.reload();
  3898. }
  3899. });
  3900. }
  3901. else
  3902. {
  3903. return $cssText;
  3904. }
  3905. }
  3906. }
  3907. var jQueryUICSS = GM_getResourceText("jQueryUICSS");
  3908. GM_addStyle(jQueryUICSS);
  3909. //init the stuff
  3910. setVariables();
  3911. initBulkCheck();
  3912. //init info boxes
  3913. messageBox.style.position = 'fixed';
  3914. messageBox.style.top = '20px';
  3915. messageBox.style.left = '10px';
  3916. messageBox.style.opacity = '0.85';
  3917. messageBox.style.background = 'DimGray';
  3918. messageBox.style.fontSize = '36px';
  3919. document.body.appendChild(messageBox);
  3920.  
  3921. //register GM menu commands & keyboard shortcut event handler
  3922. if (Keyboard_functions)
  3923. {
  3924. $(document).keydown(KeyDownHandler);
  3925. GM_registerMenuCommand("[W.A.R. Links Checker] Configuration (" + first_key_keycodename + "+" + second_key_keycodename + "+" + String.fromCharCode(CONFIGURATION_KEYCODE) + ")", configuration);
  3926. 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);
  3927. }
  3928. else
  3929. {
  3930. GM_registerMenuCommand("[W.A.R. Links Checker] Configuration", configuration);
  3931. GM_registerMenuCommand("[W.A.R. Links Checker] Check The Links In This Page", check_all_links);
  3932. }
  3933.  
  3934. //start linkchecking
  3935. if (Autocheck)
  3936. {
  3937. $(document).ready(check_all_links);
  3938. }
  3939.  
  3940. //
  3941. //
  3942. // SCRIPT EXECUTION END POINT
  3943. //
  3944. //
  3945.  
  3946. //shows configuration box
  3947. function configuration()
  3948. {
  3949.  
  3950. //prevent multiple creating of config window
  3951. if ($("#hideshow").length)
  3952. {
  3953. $("#hideshow").show();
  3954. return;
  3955. }
  3956.  
  3957. var configcss = '\
  3958. .popup_block .popup fieldset{\
  3959. padding: 1%;\
  3960. border-style: solid;\
  3961. border-width: 1px;\
  3962. border-color: gray;\
  3963. margin-bottom: 1px;\
  3964. }\
  3965. #h3hideshowtitle{\
  3966. font-size: 2em;\
  3967. }\
  3968. #h3hideshow{\
  3969. font-size: 1.5em;\
  3970. }\
  3971. #imghideshow {\
  3972. border: none;\
  3973. }\
  3974. #plusimage{\
  3975. display:inline;\
  3976. }\
  3977. #hideshow {\
  3978. position: fixed;\
  3979. width: 100%;\
  3980. height: 100%;\
  3981. top: 0;\
  3982. left: 0;\
  3983. font-size:12px;\
  3984. z-index:2147483645;\
  3985. text-align:left;\
  3986. }\
  3987. #fade {\
  3988. background: #000;\
  3989. position: fixed;\
  3990. width: 100%;\
  3991. height: 100%;\
  3992. opacity: .80;\
  3993. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";\
  3994. left: 0;\
  3995. z-index: 10;\
  3996. }\
  3997. .popup_block {\
  3998. font-family:verdana;\
  3999. color:black;\
  4000. background: #ddd;\
  4001. padding: 10px 20px;\
  4002. border: 2px solid DarkOrange;\
  4003. float: left;\
  4004. width: 700px;\
  4005. position: absolute;\
  4006. top: 7%;\
  4007. left: 50%;\
  4008. bottom: 7%;\
  4009. margin: 0 0 0 -350px;\
  4010. -moz-border-radius:10px;\
  4011. z-index: 100;\
  4012. \
  4013. }\
  4014. .popup_block .popup {\
  4015. float: left;\
  4016. width: 100%;\
  4017. background: #fff;\
  4018. margin: 10px 0;\
  4019. padding: 0px 0 0px;\
  4020. border-left: 1px solid #bbb;\
  4021. border-top: 1px solid #bbb;\
  4022. border-right: 1px solid #bbb;\
  4023. }\
  4024. #h3hideshow{\
  4025. margin: 1px 0 0px;\
  4026. padding: 1px 10px;\
  4027. border-bottom: 1px solid #bbb;\
  4028. font-size: 1.5em;\
  4029. font-weight: normal;\
  4030. cursor:pointer;\
  4031. background:#DDDDDD none repeat scroll 0 0;\
  4032. }\
  4033. #h3hideshow:hover{\
  4034. background:#C0BEBE none repeat scroll 0 0;\
  4035. }\
  4036. #h3hideshowtitle{\
  4037. margin: 2px 0 0px;\
  4038. padding: 7px 10px;\
  4039. border-bottom: 1px solid #bbb;\
  4040. font-size: 1.5em;\
  4041. font-weight: normal;\
  4042. }\
  4043. .popup_block .popup a {\
  4044. color:DarkSkyBlue;\
  4045. text-decoration:none;\
  4046. }\
  4047. .popup p {\
  4048. padding: 1px 10px;\
  4049. margin: 0px 0;\
  4050. -x-system-font:none;\
  4051. font-family:verdana,geneva,lucida,"lucida grande",arial,helvetica,sans-serif;\
  4052. font-size:10pt;\
  4053. font-size-adjust:none;\
  4054. font-stretch:normal;\
  4055. font-style:normal;\
  4056. font-variant:normal;\
  4057. font-weight:normal;\
  4058. line-height:normal;\
  4059. }\
  4060. #sites {\
  4061. padding: 1px 10px;\
  4062. margin: 0px 0;display:inline-block;width:16em;\
  4063. }\
  4064. #dev_ver {\
  4065. color: #00FF00;\
  4066. background: Black;\
  4067. text-align: right;\
  4068. }\
  4069. #sites_suspended {\
  4070. padding: 1px 10px;\
  4071. margin: 0px 0;display:inline-block;width:16em;\
  4072. text-decoration: line-through;\
  4073. }\
  4074. .popup img.cntrl {\
  4075. position: absolute;\
  4076. right: -15px;\
  4077. top: -15px;\
  4078. }\
  4079. #bulk {\
  4080. font-size:8pt;\
  4081. color:orange;\
  4082. padding: 1px 10px;\
  4083. margin: 0px 0;\
  4084. display:inline-block;\
  4085. width:100px;\
  4086. }\
  4087. #note {\
  4088. font-size:7pt;\
  4089. color:gray;\
  4090. padding: 1px 10px;\
  4091. margin: 0px 0;display:inline-block;\
  4092. min-width:100px;\
  4093. }\
  4094. #rednote {\
  4095. font-size:7pt;\
  4096. color:red;\
  4097. padding: 1px 10px;\
  4098. margin: 0px 0;display:inline-block;\
  4099. }\
  4100. #configinfo {\
  4101. font-size:8pt;\
  4102. color:gray;\
  4103. padding: 1px 10px;\
  4104. margin: 0px 0;display:inline-block;width:60em;\
  4105. }\
  4106. #refAnonymizer, #inputColorLive, #inputColorprem, #hostSearchBox2, #hostSearchBox, #inputColorDead, #inputColorTemp, #inputColorCont, #selectAllButton, #selectNoneButton, #invertButton, #selectAllButton2, #selectNoneButton2, #invertButton2 {\
  4107. color:black;\
  4108. border-style: solid;\
  4109. border-width: 1px;\
  4110. border-color: gray;\
  4111. }\
  4112. #h3hideshowcontent {\
  4113. min-height:220px;\
  4114. max-height:220px;\
  4115. overflow:auto;\
  4116. display: none;\
  4117. padding: 10px 10px;\
  4118. }\
  4119. #specinfo{\
  4120. font-size:14px;\
  4121. }\
  4122. .warlc-ui-tab {\
  4123. height:300px;\
  4124. overflow:auto;\
  4125. }\
  4126. #warlcsitelist2, #warlcsitelist1 {\
  4127. height:220px;\
  4128. border-top: 1px solid #ddd;\
  4129. padding-top: 5px;\
  4130. overflow:auto;\
  4131. }\
  4132. input:hover+label {\
  4133. background:#F1F77C;\
  4134. font-size:110%;\
  4135. }\
  4136. ';
  4137.  
  4138. GM_addStyle(configcss);
  4139.  
  4140. var customRulesRefHTML =
  4141. '\
  4142. <br>\
  4143. A custom rule consists of <b>commands</b>. A command must be on its own line and in this form:<br>\
  4144. <b>@keyword</b> <i>parameter</i>\
  4145. <br><br>\
  4146. 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. \
  4147. <br><br>\
  4148. 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.\
  4149. 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.\
  4150. 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.\
  4151. 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,\
  4152. but all commands until the next valid @customrule are ignored.<br><br>\
  4153. Available forms and types:\
  4154. <ul>\
  4155. <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.\
  4156. <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.\
  4157. <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.\
  4158. <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.\
  4159. </ul>\
  4160. Other available commands:<br>\
  4161. (Note: There can be more than 1 (up to 10) of these commands per rule. In that case, any of them will work.)\
  4162. <ul>\
  4163. <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.\
  4164. It can also specify multiple (up to 10) Top Level Domains (.com, .net etc.)<br>\
  4165. <ul>examples:<br>\
  4166. <li>good: <i>filehost.com/download/</i><br>\
  4167. <li>good: <i>download.filehost.net/?d=</i><br>\
  4168. <li>good: <i>filehost. com net co.uk /</i> - multiple TLDs (note the spaces before, between and after TLDs)<br>\
  4169. <li>ok: <i>filehost.com/</i> - works, but will also find links like filehost.com/login etc. Sometimes it\'s unavoidable though.<br>\
  4170. <li>bad: <i>d8523.filehost.com/</i> - d8523 probably is not constant<br>\
  4171. <li>bad: <i>filehost.com/3bfiq5d1</i> - 3bfiq5d1 probably is not constant<br>\
  4172. <li>bad: <i>filehost.com</i> - no slash<br>\
  4173. </ul>\
  4174. \
  4175. <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.\
  4176. 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 \
  4177. &lt;div&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;p&gt; even if there are new lines, tabulators etc.\
  4178. <li><b>@deadmatch</b> <i>pattern</i> - ignored for OBSOLETE, required for others. (For HEADERS some servers return 404 Error \
  4179. 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.)\
  4180. Two spaces again match any whitespace.\
  4181. <li><b>@unavamatch</b> <i>pattern</i> - optional, ignored for OBSOLETE and HEADERS. If found, the link is deemed temporarily unavailable.\
  4182. Two spaces again match any whitespace.\
  4183. <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. \
  4184. <li><b>@deadlink</b> <i>url</i> - optional. Example dead link.\
  4185. </ul>\
  4186. \
  4187. ';
  4188.  
  4189. //close image and css taken from = http://www.sohtanaka.com/web-design/examples/css-popup icon_close.png;
  4190. var configurationinnerHTML =
  4191. '<div id="fade"></div>\
  4192. <div class="popup_block">\
  4193. <div class="popup">\
  4194. <a href="#"><img id="imghideshow" title="Close" class="cntrl" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAfCAYAAAD0ma06AAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAY1SURBVH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2+bMq9oUuiIbgSYvjQQ6P6b03hsv+trmm3I3GtNZQUUvT1wz6YsnQf0U8CTFHgrFZDw1Hnfl34da2vcFCFTAMqYaBr07nD40/IebZui1t9qqWgE3t6uOfCB3gF8FegrBB6x5qrri9688a+JYN6UK57eijDo2HI2+8/HB/8AVAHlQCfQCvz7chOIBTzS1FocNEx1VSNjHmFWS9jvC6mk11QWAbePhl4K/JWa1fbSypU2uSsI8ZgnEyG2wE9igb/Fa7f9MHGTQuANdbcGLzyFV2smiukr7Siw4WqGvZhlqznxhX7cTzmXayA234c33lqFcjneIqZfxX1TJr+t4dWtcUGXgusNgaPLwvQpgJjHcK8EPOAM6J7+vblEfK0fZ9RoqwAnpTnznsN/2jOkuvOUNvmpXmMTrrQuoJWGj36bAugAMhSo2cnsgUil2fb5LRHi1/jRGlJHc5zenaV7p0PyRB7XkR7vfa4IlZtT69fbVKywyafh8HODHN+WfhH4FnD2alN1B7AdOAcMeT29HfiZJ5oZ3sHrgAeBvcCANzBsHu7Ohe2/AwDnNnxcIIMIUgAAAABJRU5ErkJggg=="></img>&nbsp;W.A.R. Links Checker Customized Premium Link version Configuration</div>\
  4196. <div id="warlc-conf-tabs">\
  4197. <ul>\
  4198. <li><a href="#tabs-1">Filehostings</a></li>\
  4199. <li><a href="#tabs-2">Containers</a></li>\
  4200. <li><a href="#tabs-5">Custom rules</a></li>\
  4201. <li><a href="#tabs-3">Settings</a></li>\
  4202. <li><a href="#tabs-4">About</a></li>\
  4203. </ul>\
  4204. <div id="tabs-1" class="warlc-ui-tab">\
  4205. <div class="warlc-ui-buttonset">\
  4206. <input type="button" class="warlc-ui-select-all" value="Select All">\
  4207. <input type="button" class="warlc-ui-select-none" value="Select None">\
  4208. <input type="button" class="warlc-ui-select-invert" value="Invert">\
  4209. </div><br>\
  4210. <div>Search: <input type="textbox" id="hostSearchBox" value=""></div><br>\
  4211. <div id="warlcsitelist1"><span>Empty</span></div>\
  4212. </div>\
  4213. <div id="tabs-2" class="warlc-ui-tab">\
  4214. <div class="warlc-ui-buttonset">\
  4215. <input type="button" class="warlc-ui-select-all" value="Select All">\
  4216. <input type="button" class="warlc-ui-select-none" value="Select None">\
  4217. <input type="button" class="warlc-ui-select-invert" value="Invert">\
  4218. </div><br>\
  4219. <div>Search: <input type="textbox" id="hostSearchBox2" value=""></div><br>\
  4220. <div id="warlcsitelist2"><span>Empty</span></div>\
  4221. </div>\
  4222. <div id="tabs-5" class="warlc-ui-tab">\
  4223. <div class="warlcsettings">\
  4224. <fieldset><input type="checkbox" id="Custom_rules"> Enable custom rules <div id="bulk">EXPERIMENTAL</div></fieldset>\
  4225. <br>\
  4226. <div>Edit custom rules: \
  4227. <a href="#" id="showCustomRulesReference">(<b>Click here to show/hide the reference</b>)</a>\
  4228. <div id="customRulesReference" style="display:none;">'
  4229. + customRulesRefHTML + '\
  4230. </div>\
  4231. <textarea style="width:100%;height:200px;" id="Custom_rules_text"></textarea>\
  4232. </div>\
  4233. </div>\
  4234. </div>\
  4235. <div id="tabs-3" class="warlc-ui-tab">\
  4236. <div class="warlcsettings">\
  4237. <fieldset>\
  4238. <p><input type="checkbox" id="Keyboard_functions"> Enable keyboard shortcuts</p>\
  4239. <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>\
  4240. </fieldset>\
  4241. <fieldset>\
  4242. <p><input type="checkbox" id="Color_DL_links"> Color DL links</p>\
  4243. <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>\
  4244. <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>\
  4245. <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>\
  4246. <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>\
  4247. <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>\
  4248. <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>\
  4249. <p><input type="checkbox" id="Show_line_through_in_dead_links"> Show line through in dead links</p>\
  4250. <p><input type="checkbox" id="Show_black_background_in_DL_links"> Show black background in DL links</p>\
  4251. <p><input type="checkbox" id="Do_not_linkify_DL_links"> Do NOT linkify DL links</p>\
  4252. <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>\
  4253. <p><input type="checkbox" id="Display_full_links_in_link_containers"> Display full links in link containers</p><br>\
  4254. <fieldset>\
  4255. <p><input type="radio" name="warlciconset" value="0"> No icons</p>\
  4256. <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>\
  4257. <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>\
  4258. <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>\
  4259. </fieldset>\
  4260. </fieldset>\
  4261. <fieldset>\
  4262. <div id="sites"><input type="checkbox" id="Autocheck"> Autocheck</div><br><div id="configinfo">Script starts check automatically.</div><br>\
  4263. </fieldset>\
  4264. <fieldset>\
  4265. <div id="sites"><input type="checkbox" id="Show_progress_stats"> Show progress stats</div><br>\
  4266. </fieldset>\
  4267. <fieldset>\
  4268. <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>\
  4269. </fieldset>\
  4270. <fieldset>\
  4271. <p><input type="checkbox" id="Enable_Anonymizer"> Enable Anonymizer</div><div id="bulk">EXPERIMENTAL Note: Checkbox does not work use CTRL+ALT+Z.</p>\
  4272. <div id="sites"><label for="refAnonymizer">Refererer anonymizing service</label><input type="text" id="refAnonymizer" value="' + Ref_anonymize_service + '"></div>\
  4273. </fieldset>\
  4274. </div>\
  4275. </div>\
  4276. <div id="tabs-4" class="warlc-ui-tab">\
  4277. <p><b>Author:</b> <a href="http://www.mentalps.5gbfree.com/viewtopic.php?f=2&t=6">mentalps</a></p>\
  4278. <br />\
  4279. <p><b>Currently supported:</b><br>\
  4280. Filehostings: ' + allHostNames.length + '<br />\
  4281. Containers: ' + allContainerNames.length + '<br />\
  4282. Obsolete sites: ' + allObsoleteNames.length + '<br /></p>\
  4283. <br />\
  4284. <p><b>Based on:</b><br>\
  4285. <a href="http://userscripts-mirror.org/scripts/show/125631.html">W.A.R. Links Checker - Dev</a></p>\
  4286. <br />\
  4287. <p><b>Uses:</b></p>\
  4288. <p>adam_3\'s <a href="http://userscripts-mirror.org/scripts/show/2254">Linkify ting</a> (modified)</p>\
  4289. <p><a href="http://jquery.com/">jQuery</a> JavaScript Library</p>\
  4290. <br />\
  4291. <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>\
  4292. </div>\
  4293. </div>\
  4294. </div>\
  4295. </div>';
  4296. $('body').append('<div id="hideshow">' + configurationinnerHTML + '</div>');
  4297. $("#warlc-conf-tabs").tabs({ fx: { opacity: 'toggle', duration: 'fast' } });
  4298. $("#imghideshow").click(function(event){$("#hideshow").hide(); event.preventDefault();});
  4299. var elmHostList = document.getElementById("warlcsitelist1");
  4300. var elmContainerList = document.getElementById("warlcsitelist2");
  4301. buildSettings();
  4302. buildSitelist("", allHostNames, elmHostList);
  4303. buildSitelist("", allContainerNames, elmContainerList);
  4304. if (DEBUG_MODE)
  4305. {
  4306. //log all sites availability status
  4307. diagSites();
  4308. }
  4309. //handler for checkbox state change
  4310. function changeConfiguration(e)
  4311. {
  4312. var element = e.target;
  4313.  
  4314. if (element.type == 'checkbox')
  4315. {
  4316. if (element.checked == 1)
  4317. {
  4318. GM_setValue(element.id, true);
  4319. }
  4320. else
  4321. {
  4322. GM_setValue(element.id, false);
  4323. }
  4324.  
  4325. }
  4326. setVariables();
  4327. }
  4328.  
  4329. //Selects all filehosting checkboxes
  4330. function selectAll()
  4331. {
  4332. $(":checkbox:visible:not(:checked)").prop("checked",true)
  4333. .each(function(index, element){GM_setValue(this.id, true)});
  4334. }
  4335.  
  4336. //Deselects all filehosting checkboxes
  4337. function selectNone()
  4338. {
  4339. $(":checkbox:visible:checked").prop("checked",false)
  4340. .each(function(index, element){GM_setValue(this.id, false)});
  4341. }
  4342.  
  4343. //Inverts filehosting checkboxes selection
  4344. function selectInvert()
  4345. {
  4346. var $checked = $(":checkbox:visible:checked");
  4347. var $unchecked = $(":checkbox:visible:not(:checked)");
  4348. $unchecked.prop("checked",true)
  4349. .each(function(index, element){GM_setValue(this.id, true)});
  4350. $checked.prop("checked",false)
  4351. .each(function(index, element){GM_setValue(this.id, false)});
  4352. }
  4353. //toggles anonymizer on off
  4354. function Enable_Anonymizer()
  4355. {
  4356. var $checked = $(":checkbox:visible:checked");
  4357. var $unchecked = $(":checkbox:visible:not(:checked)");
  4358. $unchecked.prop("checked",true)
  4359. .each(function(index, element){GM_setValue(this.id, true)});
  4360. $checked.prop("checked",false)
  4361. .each(function(index, element){GM_setValue(this.id, false)});
  4362. }
  4363.  
  4364. function changeRefAnonymizer(){
  4365. GM_setValue("Ref_anonymize_service", $("#refAnonymizer").attr("value"));
  4366. }
  4367.  
  4368. //Sets live links color
  4369. function changeColorLive()
  4370. {
  4371. var inColorLive = document.getElementById("inputColorLive");
  4372. inColorLive.style.background = inColorLive.value;
  4373. GM_setValue("Live_links_color", inColorLive.value);
  4374. }
  4375.  
  4376. //Sets dead links color
  4377. function changeColorDead()
  4378. {
  4379. var inColorDead = document.getElementById("inputColorDead");
  4380. inColorDead.style.background = inColorDead.value;
  4381. GM_setValue("Dead_links_color", inColorDead.value);
  4382. }
  4383.  
  4384. //Sets temp. unavailable links color
  4385. function changeColorTemp()
  4386. {
  4387. var inColorTemp = document.getElementById("inputColorTemp");
  4388. inColorTemp.style.background = inColorTemp.value;
  4389. GM_setValue("Temp_unavailable_links_color", inColorTemp.value);
  4390. }
  4391.  
  4392. //Sets temp. unavailable links color
  4393. function changeColorCont()
  4394. {
  4395. var inColorCont = document.getElementById("inputColorCont");
  4396. inColorCont.style.background = inColorCont.value;
  4397. GM_setValue("Container_links_color", inColorCont.value);
  4398. }
  4399. //Sets premium. links color
  4400. function changeColorprem()
  4401. {
  4402. var inColorprem = document.getElementById("inputColorprem");
  4403. inColorprem.style.background = inColorprem.value;
  4404. GM_setValue("Premium_links_color", inColorprem.value);
  4405. }
  4406.  
  4407. //Diagnose sites for availability
  4408. function diagSites()
  4409. {
  4410. var boxes = document.getElementById("warlcsitelist1").getElementsByTagName("input");
  4411.  
  4412. for (var i = 0, n = boxes.length - 1; i < n; i++)
  4413. {
  4414. if (boxes[i].type == "checkbox")
  4415. {
  4416. checkAvailability(boxes[i]);
  4417. }
  4418. }
  4419.  
  4420. boxes = document.getElementById("warlcsitelist2").getElementsByTagName("input");
  4421.  
  4422. for (var i = 0, n = boxes.length - 1; i < n; i++)
  4423. {
  4424. if (boxes[i].type == "checkbox")
  4425. {
  4426. checkAvailability(boxes[i]);
  4427. }
  4428. }
  4429.  
  4430. function checkAvailability(cbElm)
  4431. {
  4432. var cb = cbElm;
  4433. GM_xmlhttpRequest(
  4434. {
  4435. method: 'HEAD',
  4436. url: 'http://' + cb.nextSibling.textContent.replace(' ', ''),
  4437. headers: {
  4438. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  4439. 'Accept': 'text/xml',
  4440. 'Referer': ""
  4441. },
  4442. onload: function (result)
  4443. {
  4444. if (result.status != 200)
  4445. {
  4446. GM_log(cb.nextSibling.textContent + ' --- status: [' + result.status + '] ' + result.statusText + ', final url: ' + result.finalUrl);
  4447. }
  4448. },
  4449. onerror: function (result)
  4450. {
  4451. if (result.status != 200)
  4452. {
  4453. GM_log(cb.nextSibling.textContent + ' --- status: [' + result.status + '] ' + result.statusText + ', final url: ' + result.finalUrl);
  4454. }
  4455. }
  4456. });
  4457. }
  4458. }
  4459. function buildSettings()
  4460. {
  4461. $(".warlcsettings :checkbox").each(function(){
  4462. $(this).prop("checked", GM_getValue($(this).attr("id")))
  4463. .click(function(e){
  4464. GM_setValue($(this).attr("id"), $(this).prop("checked"));
  4465. setVariables();
  4466. });
  4467. })
  4468. }
  4469. //Dynamic build of host list
  4470. //param search [string] searches for hostnames matching search substring
  4471. //param siteNames [array] array of site names
  4472. //param targetNode [DOM Node] where the list should be built
  4473. // first child node is replaced
  4474. function buildSitelist(search, siteNames, targetNode)
  4475. {
  4476. var searchRegex = new RegExp("\\|?([\\w\\.-]*" + search.replace(/\./g,"\\.").replace(/-/g, "\\-") + "[\\w\\.-]*)\\|?", "i");
  4477. var $targetNode = $(targetNode).empty();
  4478. var searchedSite = "";
  4479. $.each(siteNames, function(i, site){
  4480. if (searchedSite = site.match(searchRegex))
  4481. {
  4482. var baseSite = site.replace(/\|.+/, ""); //filehosting main domain
  4483. //ensuring backward compatibility with the rest of code, to be refactored later
  4484. var oldRSLCvalue = "Check_" + baseSite.replace(/\|.+/, "").replace(/\./g,"_dot_").replace(/-/g, "_dash_") + "_links";
  4485. //
  4486. $targetNode.append('<input type="checkbox" id="' + oldRSLCvalue +'" />\
  4487. <label for="' + oldRSLCvalue + '">' + searchedSite[1] + '</label>' +
  4488. ((searchedSite[1] != baseSite) ? ('<div id="note"> ( ~ ' + baseSite + ' )</div>') : (""))
  4489. );
  4490. $("#" + oldRSLCvalue).prop("checked", GM_getValue(oldRSLCvalue, false))
  4491. .change(changeConfiguration);
  4492. $targetNode.append('<br />');
  4493. }
  4494. });
  4495. $targetNode.append("<hr>");
  4496. //obsolete hosts checkbox
  4497. $targetNode.append('<input type="checkbox" id="Obsolete_file_hosts" /><label for="Obsolete_file_hosts">Obsolete file hosts</label>');
  4498. $("#Obsolete_file_hosts").prop("checked", GM_getValue("Obsolete_file_hosts", false))
  4499. .change(changeConfiguration);
  4500. $targetNode.append('<br />');
  4501. var foundName = "";
  4502. $.each(allObsoleteNames, function(i, site){
  4503. if (foundName = allObsoleteNames[i].match(searchRegex))
  4504. {
  4505. $targetNode.append('<div id="note">' + foundName[1] + '</div>');
  4506. }
  4507. })
  4508. }
  4509. var hostSearchBox = document.getElementById("hostSearchBox");
  4510. hostSearchBox.addEventListener('keyup', function(){buildSitelist(hostSearchBox.value, allHostNames, elmHostList);}, false);
  4511. var hostSearchBox2 = document.getElementById("hostSearchBox2");
  4512. hostSearchBox2.addEventListener('keyup', function(){buildSitelist(hostSearchBox2.value, allContainerNames, elmContainerList);}, false);
  4513. $(".warlc-ui-select-all").click(selectAll).button();
  4514. $(".warlc-ui-select-none").click(selectNone).button();
  4515. $(".warlc-ui-select-invert").click(selectInvert).button();
  4516. $(".warlc-ui-buttonset").buttonset();
  4517. var inColorLive = document.getElementById("inputColorLive");
  4518. inColorLive.addEventListener('keyup', changeColorLive, false);
  4519.  
  4520. var inColorDead = document.getElementById("inputColorDead");
  4521. inColorDead.addEventListener('keyup', changeColorDead, false);
  4522.  
  4523. var inColorTemp = document.getElementById("inputColorTemp");
  4524. inColorTemp.addEventListener('keyup', changeColorTemp, false);
  4525.  
  4526. var inColorCont = document.getElementById("inputColorCont");
  4527. inColorCont.addEventListener('keyup', changeColorCont, false);
  4528. var inColorprem = document.getElementById("inputColorprem");
  4529. inColorprem.addEventListener('keyup', changeColorprem, false);
  4530. $("#refAnonymizer").change(changeRefAnonymizer);
  4531. //buttons and edit boxes init end
  4532.  
  4533. //icon sets radio buttons
  4534. var radioButtons = document.getElementsByName("warlciconset");
  4535. radioButtons[Icon_set].checked = "checked";
  4536.  
  4537. radioButtons[0].addEventListener("change", updateIconSet);
  4538. radioButtons[1].addEventListener("change", updateIconSet);
  4539. radioButtons[2].addEventListener("change", updateIconSet);
  4540. radioButtons[3].addEventListener("change", updateIconSet);
  4541. function updateIconSet()
  4542. {
  4543. GM_setValue("Icon_set", this.value * 1);
  4544. }
  4545. //
  4546. $('#showCustomRulesReference').click(function(e){
  4547. e.preventDefault();
  4548. $('#customRulesReference').toggle();
  4549. });
  4550. $('#Custom_rules_text')
  4551. .val(Custom_rules_text)
  4552. .change(saveCustomRules);
  4553. function saveCustomRules(e)
  4554. {
  4555. var cr = parseCustomRules(this.value);
  4556. if (cr.info.length)
  4557. 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, ' '));
  4558. GM_setValue('Custom_rules_text', this.value);
  4559. GM_setValue('last_custom_rules_nag', ''+new Date().getTime()); //reset nag
  4560. }
  4561. }
  4562.  
  4563. //begin standard link checking algorithm
  4564. function start(filterId)
  4565. {
  4566. var doNotLinkify = Do_not_linkify_DL_links;
  4567.  
  4568. // USER SELECTED FILE HOSTS INITIALIZATION START
  4569. var http_file_hosts = new Array(); //standard hostings
  4570. var http_file_hosts_coded = new Array(); //hostings which has to be decoded to obtain real checkable link
  4571. var http_file_hosts_obsolete = new Array(); //dead hostings
  4572. var http_file_hosts_headers_only = new Array(); //hostings with direct download, must be handled via headers only
  4573.  
  4574. initFileHosts();
  4575. initFileHostsHeadersOnly();
  4576. initFileHostsCustom(); //CustomRules
  4577. // USER SELECTED FILE HOSTS INITIALIZATION END
  4578.  
  4579. // LINKIFICATION START
  4580. var totalxpath = '';
  4581. var totalxpathcoded = '';
  4582. var totalxpathobsolete = '';
  4583. var totalxpathheadersonly = '';
  4584. var totalourls = '';
  4585.  
  4586. var filehostLen = http_file_hosts.length;
  4587. var filehostCodedLen = http_file_hosts_coded.length;
  4588. var filehostObsoleteLen = http_file_hosts_obsolete.length;
  4589. var filehostHeadersOnlyLen = http_file_hosts_headers_only.length;
  4590.  
  4591. var filehostIdx = filehostLen;
  4592. var filehostCodedIdx = filehostCodedLen;
  4593. var filehostObsoleteIdx = filehostObsoleteLen;
  4594. var filehostHeadersOnlyIdx = filehostHeadersOnlyLen;
  4595.  
  4596. if ((filehostIdx == 0) && (filehostCodedIdx == 0) && (filehostHeadersOnlyIdx == 0) && (filehostObsoleteIdx == 0))
  4597. return;
  4598.  
  4599. while (filehostIdx--)
  4600. {
  4601. totalourls += http_file_hosts[filehostIdx][0] + '|';
  4602. totalxpath += http_file_hosts[filehostIdx][4] + '|';
  4603. }
  4604.  
  4605. while (filehostCodedIdx--)
  4606. {
  4607. totalourls += http_file_hosts_coded[filehostCodedIdx][0] + '|';
  4608. totalxpathcoded += http_file_hosts_coded[filehostCodedIdx][3] + '|';
  4609. }
  4610.  
  4611. while (filehostObsoleteIdx--)
  4612. {
  4613. totalourls += http_file_hosts_obsolete[filehostObsoleteIdx][0] + '|';
  4614. totalxpathobsolete += http_file_hosts_obsolete[filehostObsoleteIdx][1] + '|';
  4615. }
  4616.  
  4617. while (filehostHeadersOnlyIdx--)
  4618. {
  4619. totalourls += http_file_hosts_headers_only[filehostHeadersOnlyIdx][0] + '|';
  4620. totalxpathheadersonly += http_file_hosts_headers_only[filehostHeadersOnlyIdx][3] + '|';
  4621. }
  4622.  
  4623. totalourls = totalourls.replace(/\|$/g, "");
  4624. //TODO: further refactoring needed
  4625. totalxpath = totalxpath.replace(/\]\|\/\/a\[/g, " or ");
  4626. totalxpath = totalxpath.replace(/\]\|/, ')]');
  4627. totalxpathcoded = totalxpathcoded.replace(/\]\|\/\/a\[/g, " or ");
  4628. totalxpathcoded = totalxpathcoded.replace(/\]\|/, ')]');
  4629. totalxpathobsolete = totalxpathobsolete.replace(/\]\|\/\/a\[/g, " or ");
  4630. totalxpathobsolete = totalxpathobsolete.replace(/\]\|/, ')]');
  4631. totalxpathheadersonly = totalxpathheadersonly.replace(/\]\|\/\/a\[/g, " or ");
  4632. totalxpathheadersonly = totalxpathheadersonly.replace(/\]\|/, ')]');
  4633. if (filterId != null) //insert id restriction in the xpath
  4634. {
  4635. totalxpath = totalxpath.replace(/\[/g, "[@class='" + filterId + "' and (");
  4636. totalxpathcoded = totalxpathcoded.replace(/\[/g, "[@class='" + filterId + "' and (");
  4637. totalxpathobsolete = totalxpathobsolete.replace(/\[/g, "[@class='" + filterId + "' and (");
  4638. totalxpathheadersonly = totalxpathheadersonly.replace(/\[/g, "[@class='" + filterId + "' and (");
  4639. }
  4640. else
  4641. {
  4642. totalxpath = totalxpath.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4643. totalxpathcoded = totalxpathcoded.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4644. totalxpathobsolete = totalxpathobsolete.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4645. totalxpathheadersonly = totalxpathheadersonly.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4646. }
  4647. linkify(totalourls);
  4648. //LINKIFICATION END
  4649. //ENCRYPTED LINKS PROCESSING START
  4650. if (http_file_hosts_coded.length > 0)
  4651. {
  4652. var linksCoded = document.evaluate(totalxpathcoded, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4653.  
  4654. // decrypt coded links (redirects, link protectors etc.)
  4655. if (linksCoded.snapshotLength > 0)
  4656. {
  4657. var link;
  4658. var reallinkreg;
  4659. var reallinkcorrection;
  4660.  
  4661. if (filterId == null)
  4662. {
  4663. cLinksTotal += linksCoded.snapshotLength;
  4664. }
  4665.  
  4666. var y = linksCoded.snapshotLength - 1;
  4667. do
  4668. {
  4669. // linksCoded.snapshotItem(y).id = 'processing_link';
  4670. link = linksCoded.snapshotItem(y);
  4671. filehostIdx = filehostCodedLen;
  4672. while (filehostIdx--)
  4673. {
  4674. if (link.href.match(http_file_hosts_coded[filehostIdx][0]))
  4675. {
  4676. link.href = link.href.replace(/http:\/\/.*?(?:\?|=)http:\/\//, 'http://');
  4677. reallinkreg = http_file_hosts_coded[filehostIdx][1];
  4678. reallinkcorrection = http_file_hosts_coded[filehostIdx][2];
  4679.  
  4680. decurl(link, reallinkreg, reallinkcorrection);
  4681. break;
  4682. }
  4683. }
  4684. }
  4685. while (y--);
  4686. }
  4687. }
  4688. //ENCRYPTED LINKS PROCESSING END
  4689.  
  4690. //STANDARD LINKCHECKING START
  4691. if (http_file_hosts.length > 0)
  4692. {
  4693. var lianks = document.evaluate(totalxpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4694.  
  4695. if (filterId == null)
  4696. {
  4697. cLinksTotal += lianks.snapshotLength;
  4698. }
  4699.  
  4700. if (lianks.snapshotLength > 0)
  4701. {
  4702. var link;
  4703.  
  4704. var URL = "";
  4705. var name = "";
  4706. var isAliveRegex = "";
  4707. var isDeadRegex = "";
  4708. var isUnavaRegex = "";
  4709. var ispremRegex = "";
  4710. var tryLoop = false;
  4711.  
  4712. var y = lianks.snapshotLength;
  4713.  
  4714. while (y--)
  4715. {
  4716. link = lianks.snapshotItem(y);
  4717.  
  4718. filehostIdx = filehostLen;
  4719. while (filehostIdx--)
  4720. {
  4721. if (link.href.match(http_file_hosts[filehostIdx][0]))
  4722. {
  4723. link.href = link.href.replace(/http:\/\/.*?http:\/\//, 'http://'); //anonymizers
  4724. isAliveRegex = http_file_hosts[filehostIdx][1];
  4725. isDeadRegex = http_file_hosts[filehostIdx][2];
  4726. isUnavaRegex = http_file_hosts[filehostIdx][3];
  4727. ispremRegex = http_file_hosts[filehostIdx][6];
  4728. tryLoop = http_file_hosts[filehostIdx][5];
  4729.  
  4730. geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, tryLoop);
  4731.  
  4732. break;
  4733. }
  4734. }
  4735. }
  4736. }
  4737. }
  4738. //STANDARD LINKCHECKING END
  4739. //OBSOLETE FILE HOSTS PROCESSING START
  4740. if (filehostObsoleteLen > 0)
  4741. {
  4742. var obsoletelinks = document.evaluate(totalxpathobsolete, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4743.  
  4744. var obsoleteLink;
  4745.  
  4746. //check links
  4747. if (obsoletelinks.snapshotLength > 0)
  4748. {
  4749. var y = obsoletelinks.snapshotLength;
  4750.  
  4751. if (filterId == null)
  4752. {
  4753. cLinksTotal += y;
  4754. }
  4755.  
  4756. while (y--)
  4757. {
  4758. obsoleteLink = obsoletelinks.snapshotItem(y);
  4759.  
  4760. if (Display_tooltip_info)
  4761. {
  4762. obsoleteLink.warlc_error = 'Cause of error: <b>Obsolete filehosting.</b>';
  4763. }
  4764. displayTheCheckedLink(obsoleteLink, 'adead_link');
  4765. }
  4766. }
  4767. }
  4768. //OBSOLETE FILE HOSTS PROCESSING END
  4769.  
  4770. //DIRECT LINKCHECKING START
  4771. if (http_file_hosts_headers_only.length > 0)
  4772. {
  4773. var links = document.evaluate(totalxpathheadersonly, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4774.  
  4775. //check links
  4776. if (links.snapshotLength > 0)
  4777. {
  4778. var link;
  4779. var isAliveRegex;
  4780. var isDeadRegex;
  4781. var ispremRegex;
  4782.  
  4783. var y = links.snapshotLength;
  4784.  
  4785.  
  4786. if (filterId == null)
  4787. {
  4788. cLinksTotal += y;
  4789. }
  4790.  
  4791. while (y--)
  4792. {
  4793. // links.snapshotItem(y).id = 'processing_link';
  4794. link = links.snapshotItem(y);
  4795. filehostIdx = filehostHeadersOnlyLen;
  4796. while (filehostIdx--)
  4797. {
  4798. if (link.href.match(http_file_hosts_headers_only[filehostIdx][0]))
  4799. {
  4800. link.href = link.href.replace(/http:\/\/.*?(?:\?|=)http:\/\//, 'http://');
  4801. isAliveRegex = http_file_hosts_headers_only[filehostIdx][1];
  4802. isDeadRegex = http_file_hosts_headers_only[filehostIdx][2];
  4803. ispremRegex = http_file_hosts_headers_only[filehostIdx][3];
  4804.  
  4805. geturlHeader(link, isAliveRegex, isDeadRegex, ispremRegex);
  4806.  
  4807. break;
  4808. }
  4809. }
  4810. }
  4811.  
  4812. }
  4813. }
  4814. //DIRECT LINKCHECKING END
  4815.  
  4816.  
  4817. //finds the real url on the page, replaces link.href with it and calls geturl
  4818. function decurl(link, reallinkreg, reallinkcorrection)
  4819. {
  4820.  
  4821. GM_xmlhttpRequest(
  4822. {
  4823. method: 'GET',
  4824. url: link.href,
  4825. headers: {
  4826. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  4827. 'Accept': 'text/xml',
  4828. 'Referer': ""
  4829. },
  4830. onload: function (result)
  4831. {
  4832. // cLinksProcessed++;
  4833.  
  4834. var reallink = result.responseText.match(reallinkreg)[0];
  4835. reallink = reallink.replace(new RegExp(reallinkcorrection, "g"), "");
  4836.  
  4837. link.href = reallink;
  4838.  
  4839. var i = http_file_hosts.length - 1;
  4840. do
  4841. {
  4842. if ((reallink.match(http_file_hosts[i][0])))
  4843. {
  4844. link.href = link.href.replace(/http:\/\/.*?\?http:\/\//, 'http://');
  4845. var isAliveRegex = http_file_hosts[i][1];
  4846. var isDeadRegex = http_file_hosts[i][2];
  4847. var isUnavaRegex = http_file_hosts[i][3];
  4848. var ispremRegex = http_file_hosts[i][4];
  4849.  
  4850. geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, 50);
  4851.  
  4852. break;
  4853. }
  4854. }
  4855. while (i--);
  4856. }
  4857. });
  4858. }
  4859.  
  4860. function randUA()
  4861. {
  4862. //TODO
  4863. }
  4864. //Processes link
  4865. //
  4866. // [string] link link URL
  4867. // [string] isAliveRegex alive link regex
  4868. // [string] isDeadRegex dead link regex
  4869. // [string] isUnavaRegex unavailable link regex
  4870. // [string] ispremRegex premium link regex
  4871. // [boolean] tryLoop repeats request until succeeded
  4872. function geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, tryLoop)
  4873. {
  4874. GM_xmlhttpRequest(
  4875. {
  4876. method: 'GET',
  4877. url: link.href,
  4878. headers: {
  4879. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  4880. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  4881. 'Referer': ""
  4882. },
  4883. onload: function (result)
  4884. {
  4885. var res = result.responseText;
  4886. if (result.responseHeaders.match(/Content-Disposition: attachment; filename=/))//direct download, simple version
  4887. {
  4888. displayTheCheckedLink(link, 'alive_link');
  4889. return;
  4890. }
  4891.  
  4892. if (res.match(isAliveRegex))
  4893. {
  4894. displayTheCheckedLink(link, 'alive_link');
  4895. return;
  4896. }
  4897.  
  4898. if (res.match(isDeadRegex))
  4899. {
  4900. displayTheCheckedLink(link, 'adead_link');
  4901. return;
  4902. }
  4903.  
  4904. if (isUnavaRegex && res.match(isUnavaRegex))
  4905. {
  4906. displayTheCheckedLink(link, 'unava_link');
  4907. return;
  4908. }
  4909. if (res.match(ispremRegex))
  4910. {
  4911. displayTheCheckedLink(link, 'prem_link');
  4912. return;
  4913. }
  4914.  
  4915. var resStatus = result.status;
  4916.  
  4917. if (resStatus == 404)
  4918. {
  4919. displayTheCheckedLink(link, 'adead_link');
  4920. }
  4921. if (resStatus == 500 || resStatus == 503 || resStatus == 403) //not found/available/temp. unava
  4922. {
  4923. if (tryLoop)
  4924. {
  4925. //wait 1-5 seconds and repeat the request
  4926. setTimeout(function(){geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, tryLoop)}, 1000 + (Math.random() * 4000));
  4927. }
  4928. else
  4929. {
  4930. displayTheCheckedLink(link, 'unava_link');
  4931. }
  4932.  
  4933. return;
  4934. }
  4935. },
  4936. onerror: function ()
  4937. {
  4938. displayTheCheckedLink(link, 'unava_link');
  4939. }
  4940. });
  4941. }
  4942.  
  4943. function geturlHeader(link, isAliveRegex, isDeadRegex, ispremRegex)
  4944. {
  4945. GM_xmlhttpRequest(
  4946. {
  4947. method: 'HEAD',
  4948. url: link.href,
  4949. headers: {
  4950. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  4951. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  4952. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  4953. 'Referer': ""
  4954. },
  4955. onload: function (result)
  4956. {
  4957. var resStatus = result.status;
  4958. var resHeaders = "";
  4959. if (resStatus == 403 || resStatus == 404 || resStatus == 500) //not found/available
  4960. {
  4961. displayTheCheckedLink(link, 'adead_link');
  4962. return;
  4963. }
  4964.  
  4965. resHeaders = result.responseHeaders;
  4966.  
  4967. if (resHeaders.match(isDeadRegex))
  4968. {
  4969. displayTheCheckedLink(link, 'adead_link');
  4970. return;
  4971. }
  4972.  
  4973. if (resHeaders.match(isAliveRegex))
  4974. {
  4975. displayTheCheckedLink(link, 'alive_link');
  4976. return;
  4977. }
  4978. if (resHeaders.match(ispremRegex))
  4979. {
  4980. displayTheCheckedLink(link, 'prem_link');
  4981. return;
  4982. }
  4983. },
  4984. onerror: function ()
  4985. {
  4986. displayTheCheckedLink(link, 'unava_link');
  4987. }
  4988. });
  4989. }
  4990.  
  4991. //Delinkfifies the <a> element object
  4992. function delinkifyLink(link)
  4993. {
  4994. var spanElm = document.createElement("span");
  4995. spanElm.className = link.className;
  4996. spanElm.innerHTML = link.innerHTML;
  4997.  
  4998. if (Display_tooltip_info)
  4999. {
  5000. spanElm.href = link.href;
  5001. spanElm.warlc_error = link.warlc_error;
  5002. switch (link.className){
  5003. case "alive_link": spanElm.addEventListener("mouseover", displayTooltipInfo, false); break
  5004. case "adead_link": spanElm.addEventListener("mouseover", displayTooltipError, false); break;
  5005. case "unava_link": //reserved
  5006. case "prem_link": spanElm.addEventListener("mouseover", displayTooltipError, false); break;
  5007. default:
  5008. }
  5009. }
  5010. link.parentNode.replaceChild(spanElm, link);
  5011. }
  5012.  
  5013. //Assigns result status to the <a> element object and calls delinkifying eventually
  5014. //Possible result states: adead_link, alive_link, unava_link, prem_link
  5015. function displayTheCheckedLink(link, resultStatus)
  5016. {
  5017. link.className = resultStatus;
  5018. link.href = Ref_anonymize_service + link.href;
  5019. if (Display_tooltip_info)
  5020. {
  5021. switch (resultStatus){
  5022. case "alive_link": link.addEventListener("mouseover", displayTooltipInfo, false); break
  5023. case "adead_link": link.addEventListener("mouseover", displayTooltipError, false); break;
  5024. case "unava_link": //reserved
  5025. case "prem_link": link.addEventListener("mouseover", displayTooltipInfo, false); break
  5026. default:
  5027. }
  5028. }
  5029. if (doNotLinkify)
  5030. {
  5031. delinkifyLink(link);
  5032. }
  5033. cLinksProcessed++;
  5034.  
  5035. if (resultStatus == "alive_link")
  5036. {
  5037. cLinksAlive++;
  5038. return;
  5039. }
  5040.  
  5041. if (resultStatus == "adead_link")
  5042. {
  5043. cLinksDead++;
  5044. return;
  5045. }
  5046.  
  5047. if (resultStatus == "unava_link")
  5048. {
  5049. cLinksUnava++;
  5050. }
  5051. if (resultStatus == "prem_link")
  5052. {
  5053. cLinksprem++;
  5054. return;
  5055. }
  5056. }
  5057.  
  5058.  
  5059. function initFileHosts()
  5060. {
  5061.  
  5062. function addObsoleteHost(linkRegex, xpathEx)
  5063. {
  5064. var host = new Array(2);
  5065. host[0] = linkRegex;
  5066. host[1] = xpathEx;
  5067. http_file_hosts_obsolete.push(host);
  5068. }
  5069.  
  5070. //obsolete file hosts init start
  5071. if (Obsolete_file_hosts)
  5072. {
  5073. addObsoleteHost("uloz\.cz\/show\/file","//a[contains(@href,'uloz.cz')]");
  5074. addObsoleteHost("storage\\.to\/get","//a[contains(@href,'storage.to')]");
  5075. addObsoleteHost("iskladka\\.cz\/download","//a[contains(@href,'iskladka.cz')]");
  5076. addObsoleteHost("file-rack\\.com\/files","//a[contains(@href,'file-rack.com')]");
  5077. addObsoleteHost("fast-load\\.net\/(\/)?index","//a[contains(@href,'fast-load.net')]");
  5078. addObsoleteHost("subory\\.sk\/download","//a[contains(@href,'subory.sk')]");
  5079. addObsoleteHost("bigandfree\\.com\/\\d+","//a[contains(@href,'bigandfree.com')]");
  5080. addObsoleteHost("fileop\\.com\/\\w+","//a[contains(@href,'fileop.com')]");
  5081. addObsoleteHost("mujsoubor\\.cz\/file\/","//a[contains(@href,'mujsoubor.cz')]");
  5082. addObsoleteHost("sendfile\\.to\/\\w+","//a[contains(@href,'sendfile.to')]");
  5083. addObsoleteHost("superfastfile\\.com\/\\w+","//a[contains(@href,'superfastfile.com')]");
  5084. addObsoleteHost("quickyshare\\.com\/\\w+","//a[contains(@href,'quickyshare.com/')]");
  5085. addObsoleteHost("duckload\\.com\/(?:d|play)","//a[contains(@href,'duckload.com')]");
  5086. addObsoleteHost("uploadstore\\.net\/\\w+","//a[contains(@href,'uploadstore.net')]");
  5087. addObsoleteHost("meinupload\\.com\/dl\/\\d+","//a[contains(@href,'meinupload.com/dl')]");
  5088. addObsoleteHost("dualshare\\.com\/\\w+","//a[contains(@href,'dualshare.com')]");
  5089. addObsoleteHost("2xupload\\.(?:to|de)\/file\/\\w+","//a[contains(@href,'2xupload.to') or contains(@href,'2xupload.de')]");
  5090. addObsoleteHost("oxedion\\.com\/index\\.php\/download\/\\w+","//a[contains(@href,'oxedion.com/index')]");
  5091. addObsoleteHost("uploadline\\.com\/\\d+","//a[contains(@href,'uploadline.com')]");
  5092. addObsoleteHost("dll\\.bz\/file\/\\d+","//a[contains(@href,'dll.bz/file')]");
  5093. addObsoleteHost("movieshare\\.in\/\\w+","//a[contains(@href,'movieshare.in')]");
  5094. addObsoleteHost("milledrive\\.com\/files\/\\d+","//a[contains(@href,'milledrive.com')]");
  5095. addObsoleteHost("quickupload\\.net\/\\w+","//a[contains(@href,'quickupload.net')]");
  5096. addObsoleteHost("safelink\\.in\/\\w+","//a[contains(@href,'safelink.in')]");
  5097. addObsoleteHost("pyramidfiles\\.com\/\\w+","//a[contains(@href,'pyramidfiles.com/')]");
  5098. addObsoleteHost("(?:cloudnator|shragle)\\.com\/files","//a[contains(@href,'cloudnator.com/files') or contains(@href,'shragle.com/files')]");
  5099. addObsoleteHost("batshare\\.com\/\\w+","//a[contains(@href,'batshare.com/')]");
  5100. addObsoleteHost("bitroad\\.net\/download","//a[contains(@href,'bitroad.net/download')]");
  5101. addObsoleteHost("metadivx\\.com\/\\w+","//a[contains(@href,'metadivx.com')]");
  5102. addObsoleteHost("filegaze\\.com\/\\w+","//a[contains(@href,'filegaze.com/')]");
  5103. addObsoleteHost("bulletupload\\.com\/\\w+","//a[contains(@href,'bulletupload.com/')]");
  5104. addObsoleteHost("sharefilehost\\.com\/\\w+","//a[contains(@href,'sharefilehost.com/')]");
  5105. addObsoleteHost("fireuploads\\.net\/\\w+","//a[contains(@href,'fireuploads.net/')]");
  5106. addObsoleteHost("divxlink\\.com\/\\w+","//a[contains(@href,'divxlink.com/')]");
  5107. addObsoleteHost("bzlink\\.us\/\\w+","//a[contains(@href,'bzlink.us/')]");
  5108. addObsoleteHost("filetechnology\\.com\/\\w+","//a[contains(@href,'filetechnology.com/')]");
  5109. addObsoleteHost("filecosy\\.com\/\\w+","//a[contains(@href,'filecosy.com/')]");
  5110. addObsoleteHost("fileserver\\.cc\/\\w+","//a[contains(@href,'fileserver.cc/')]");
  5111. addObsoleteHost("shafiles\\.me\/\\w+","//a[contains(@href,'shafiles.me/')]");
  5112. addObsoleteHost("xfileshare\\.eu\/\\w+","//a[contains(@href,'xfileshare.eu/')]");
  5113. addObsoleteHost("uploadboost\\.com\/\\w+","//a[contains(@href,'uploadboost.com/')]");
  5114. addObsoleteHost("uploadoz\\.com\/\\w+","//a[contains(@href,'uploadoz.com/')]");
  5115. addObsoleteHost("ihostia\\.com\/\\w+","//a[contains(@href,'ihostia.com/')]");
  5116. addObsoleteHost("shareupload\\.com\/\\w+","//a[contains(@href,'shareupload.com/')]");
  5117. addObsoleteHost("ovfile\\.com\/\\w+","//a[contains(@href,'ovfile.com/')]");
  5118. addObsoleteHost("stahuj\\.to\/\\w+","//a[contains(@href,'stahuj.to/')]");
  5119. addObsoleteHost("gigfiles\\.net\/\\w+","//a[contains(@href,'gigfiles.net/')]");
  5120. addObsoleteHost("vidhog\\.com\/\\w+","//a[contains(@href,'vidhog.com/')]");
  5121. addObsoleteHost("filelaser\\.com\/\\w+","//a[contains(@href,'filelaser.com/')]");
  5122. addObsoleteHost("holderfile\\.com\/\\w+","//a[contains(@href,'holderfile.com/')]");
  5123. addObsoleteHost("fileduct\\.(?:com|net)\/\\w+","//a[contains(@href,'fileduct.com/') or contains(@href,'fileduct.net')]");
  5124. addObsoleteHost("filefat\\.com\/\\w+","//a[contains(@href,'filefat.com/')]");
  5125. addObsoleteHost("restfile\\.com\/\\w+","//a[contains(@href,'restfile.com/')]");
  5126. addObsoleteHost("filemashine\\.com\\/download\/\\w+","//a[contains(@href,'filemashine.com/download')]");
  5127. addObsoleteHost("cloudnxt\\.net\/\\w+","//a[contains(@href,'cloudnxt.net/')]");
  5128. addObsoleteHost("uploadrack\\.com\/\\w+","//a[contains(@href,'uploadrack.com')]");
  5129. addObsoleteHost("teradepot\\.com\/\\w+","//a[contains(@href,'teradepot.com')]");
  5130. addObsoleteHost("dataup\\.to\/\\d+\/","//a[contains(@href,'dataup.to')]");
  5131. addObsoleteHost("upit\\.to\/file:\\d+","//a[contains(@href,'upit.to/file')]");
  5132. addObsoleteHost("badongo\\.(?:com|net)\/(?:\\w\\w\/|)(?:vid|cfile|file|pt)\/\\w+","//a[contains(@href,'badongo.com') or contains(@href,'badongo.net')]");
  5133. addObsoleteHost("driveway\\.com\/\\w+","//a[contains(@href,'driveway.com')]");
  5134. addObsoleteHost("eatlime\\.com\/download","//a[contains(@href,'eatlime.com/download')]");
  5135. addObsoleteHost("a2zuploads\\.com\/id\\w+","//a[contains(@href,'a2zuploads.com/id')]");
  5136. addObsoleteHost("friendlyfiles\\.net\/download\/\\w+\/","//a[contains(@href,'friendlyfiles.net/download')]");
  5137. addObsoleteHost("flyfile\\.us\/\\w+","//a[contains(@href,'flyfile.us')]");
  5138. addObsoleteHost("speedyshare\\.com\/\\w+","//a[contains(@href,'speedyshare.com')]");
  5139. addObsoleteHost("brontofile\\.com\/download","//a[contains(@href,'brontofile.com/download')]");
  5140. addObsoleteHost("uploadspace\\.eu\/\\w+","//a[contains(@href,'uploadspace.eu')]");
  5141. addObsoleteHost("fooget\\.com\/\\w+","//a[contains(@href,'fooget.com/')]");
  5142. addObsoleteHost("file-bit.net\/\\w+","//a[contains(@href,'file-bit.net/')]");
  5143. addObsoleteHost("keepfile\\.com\/\\w+","//a[contains(@href,'http://keepfile.com')]");
  5144. addObsoleteHost("piggyshare\\.com\/file\/\\w+","//a[contains(@href,'piggyshare.com')]");
  5145. addObsoleteHost("filecrown\\.com\/\\w+","//a[contains(@href,'filecrown.com')]");
  5146. addObsoleteHost("6giga\\.com\/\\w+","//a[contains(@href,'6giga.com')]");
  5147. addObsoleteHost("uploadjockey\\.com\/download\/\\w+","//a[contains(@href,'uploadjockey.com/download')]");
  5148. addObsoleteHost("bluehost\\.to\/dl=\\w+","//a[contains(@href,'bluehost.to')]");
  5149. addObsoleteHost("coolshare\\.cz\/stahnout\/\\w+","//a[contains(@href,'coolshare.cz/stahnout')]");
  5150. addObsoleteHost("filegu\\.ru\/f\/\\w+","//a[contains(@href,'filegu.ru/f')]");
  5151. addObsoleteHost("filebase\\.to\/files\/\\d+\/","//a[contains(@href,'filebase.to/files')]");
  5152. addObsoleteHost("kickload\\.com\/(?:file|get)\/","//a[contains(@href,'kickload.com/file') or contains(@href,'kickload.com/get')]");
  5153. addObsoleteHost("up-file\\.com\/files\/download\/\\w+\/","//a[contains(@href,'up-file.com/download')]");
  5154. addObsoleteHost("ezyfile\\.net\/\\w+","//a[contains(@href,'ezyfile.net/')]");
  5155. addObsoleteHost("k2files\\.com\/files","//a[contains(@href,'k2files.com/files')]");
  5156. addObsoleteHost("aiotool\\.net\/\\w+","//a[contains(@href,'aiotool.net/')]");
  5157. addObsoleteHost("xvideos\\.com\/files\/\\d+\/\\w+","//a[contains(@href,'xvideos.com/files')]");
  5158. addObsoleteHost("filebling\\.com\/dl\/\\d+\/\\d+\/\\w+","//a[contains(@href,'filebling.com/dl')]");
  5159. addObsoleteHost("loaded\\.it\/divx\/\\w+","//a[contains(@href,'loaded.it/divx')]");
  5160. addObsoleteHost("uploadcell\\.com\/\\w+\/\\w+","//a[contains(@href,'uploadcell.com')]");
  5161. addObsoleteHost("jakfile\\.com\/\\w+","//a[contains(@href,'jakfile.com/')]");
  5162. addObsoleteHost("uploadshare\\.cz\/download\/\\w+\/\\w+","//a[contains(@href,'uploadshare.cz/download')]");
  5163. addObsoleteHost("mangoshare\\.com\/\\w+","//a[contains(@href,'mangoshare.com')]");
  5164. addObsoleteHost("ugotfile\\.com\/file\/\\d+\/\\w+","//a[contains(@href,'ugotfile.com/file')]");
  5165. addObsoleteHost("filestab\\.com\/\\w+","//a[contains(@href,'filestab.com')]");
  5166. addObsoleteHost("dotavi\\.com\/\\w+\/.","//a[contains(@href,'dotavi.com/')]");
  5167. addObsoleteHost("crazyupload\\.com\/\\w+","//a[contains(@href,'crazyupload.com')]");
  5168. addObsoleteHost("gaiafile\\.com\/\\w+","//a[contains(@href,'gaiafile.com')]");
  5169. addObsoleteHost("sharejunky\\.com\/\\w+","//a[contains(@href,'sharejunky.com')]");
  5170. addObsoleteHost("fileho\\.com\/download\/\\d+","//a[contains(@href,'fileho.com/download')]");
  5171. addObsoleteHost("(?:bigandfree|BigAndFree)\\.com\/\\d+","//a[contains(@href,'bigandfree.com') or contains(@href,'BigAndFree.com')]");
  5172. addObsoleteHost("bigfile\\.in\/\\w+","//a[contains(@href,'bigfile.in')]");
  5173. addObsoleteHost("bigshare\\.eu\/download\\.php\\?id=","//a[contains(@href,'bigshare.eu/download.php')]");
  5174. addObsoleteHost("dahosting\\.org\/dl\/\\w+","//a[contains(@href,'dahosting.org/dl')]");
  5175. addObsoleteHost("digisofts\\.net\/\\w+","//a[contains(@href,'digisofts.net')]");
  5176. addObsoleteHost("file4save\\.com\/\\w+\/\\w+","//a[contains(@href,'file4save.com')]");
  5177. addObsoleteHost("filereactor\\.com\/\\w+","//a[contains(@href,'filereactor.com/')]");
  5178. addObsoleteHost("filechip\\.com\/\\w+","//a[contains(@href,'filechip.com')]");
  5179. addObsoleteHost("filescloud\\.com\/\\w+\/\\w+","//a[contains(@href,'filescloud.com')]");
  5180. addObsoleteHost("saveqube\\.com\/getfile\/\\w+","//a[contains(@href,'saveqube.com/getfile')]");
  5181. addObsoleteHost("www2\\.turboshare\\.de\/v\/\\d+","//a[contains(@href,'turboshare.de/v')]");
  5182. addObsoleteHost("z-upload\\.com\/\\w+","//a[contains(@href,'z-upload.com')]");
  5183. addObsoleteHost("youshare\\.com\/view\\.php","//a[contains(@href,'youshare.com/view')]");
  5184. addObsoleteHost("jiffyupload\\.com\/\\w+","//a[contains(@href,'jiffyupload.com')]");
  5185. addObsoleteHost("gigeshare\\.com\/preview\/\\w+","//a[contains(@href,'gigeshare.com')]");
  5186. addObsoleteHost("datenklo\\.net\/dl","//a[contains(@href,'datenklo.net')]");
  5187. addObsoleteHost("upload\\.dj\/download\\.php\\?id=\\w+","//a[contains(@href,'upload.dj/download.php')]");
  5188. addObsoleteHost("loadfiles\\.in\/\\w+\/","//a[contains(@href,'loadfiles.in')]");
  5189. addObsoleteHost("upit\\.to\/file:\\w+\/","//a[contains(@href,'upit.to/file')]");
  5190. addObsoleteHost("zshare\\.net\/(?:download|video|audio)\/\\w+","//a[contains(@href,'zshare.net/')]");
  5191. addObsoleteHost("refile\\.net\/f\/\\?\\w+","//a[contains(@href,'refile.net/f/')]");
  5192. addObsoleteHost("dsfileshare\\.com\/download","//a[contains(@href,'dsfileshare.com/download')]");
  5193. addObsoleteHost("sharesimple\\.net\/\\w{2}\/download","//a[contains(@href,'sharesimple.net')]");
  5194. addObsoleteHost("(?:s\\d+\\.|)4files\\.net\/\\d+","//a[contains(@href,'4files.net')]");
  5195. addObsoleteHost("odsiebie\\.com\/pokaz\/\\d+","//a[contains(@href,'odsiebie.com/pokaz')]");
  5196. addObsoleteHost("filenavi\\.com\/direct\/\\w+","//a[contains(@href,'filenavi.com/direct')]");
  5197. addObsoleteHost("3oof\\.com\/\\w+","//a[contains(@href,'3oof.com/')]");
  5198. addObsoleteHost("meshwaar\\.com\/\\w+","//a[contains(@href,'meshwaar.com')]");
  5199. addObsoleteHost("maxupload\\.com\/files\/\\w+","//a[contains(@href,'maxupload.com/files')]");
  5200. addObsoleteHost("share\\.cx\/videos\/\\d+","//a[contains(@href,'share.cx/videos')]");
  5201. addObsoleteHost("atserver\\.eu\/(?:\\w{2}\/|)download\/\\d+","//a[contains(@href,'atserver.eu')]");
  5202. addObsoleteHost("file2upload\\.net\/download\/\\d+","//a[contains(@href,'file2upload.net/download')]");
  5203. addObsoleteHost("filebling\\.com\/\\w+","//a[contains(@href,'filebling.com')]");
  5204. addObsoleteHost("turboshare\\.(?:eu|com)\/files","//a[contains(@href,'turboshare.') and contains(@href,'/files')]");
  5205. addObsoleteHost("rarhost\\.com\/download","//a[contains(@href,'rarhost.com/download')]");
  5206. addObsoleteHost("isharehd\\.com\/\\w+","//a[contains(@href,'isharehd.com')]");
  5207. addObsoleteHost("datenklo\\.net\/file\\.php\\?id=\\w+","//a[contains(@href,'datenklo.net/file.php')]");
  5208. addObsoleteHost("file2share\\.biz\/download\\.php\\?id=\\w+","//a[contains(@href,'file2share.biz/download.php')]");
  5209. addObsoleteHost("savefiles\\.net\/d\/\\w+\\.html","//a[contains(@href,'savefiles.net/d')]");
  5210. addObsoleteHost("bestsharing\\.com\/files\/\\w+","//a[contains(@href,'bestsharing.com/files')]");
  5211. addObsoleteHost("filecache\\.de\/\\d+","//a[contains(@href,'filecache.de/')]");
  5212. addObsoleteHost("i741\\.com\/files\/\\w+","//a[contains(@href,'i741.com/files')]");
  5213. addObsoleteHost("dataup\\.de\/\\d+","//a[contains(@href,'dataup.de')]");
  5214. addObsoleteHost("fofly\\.com\/\\w+","//a[contains(@href,'fofly.com')]");
  5215. addObsoleteHost("shareonall\\.com\/\\w+","//a[contains(@href,'shareonall.com')]");
  5216. addObsoleteHost("sexuploader\\.com\/(?:|..\/)\\?[d|v]=\\w{8}","//a[contains(@href,'sexuploader.com')]");
  5217. 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')]");
  5218. addObsoleteHost("uploadhyper\\.com\/file\/","//a[contains(@href,'uploadhyper.com')]");
  5219. addObsoleteHost("filespawn\\.com\/file\/","//a[contains(@href,'filespawn.com')]");
  5220. addObsoleteHost("caizzii\\.com\/(?:download|\\?file=)","//a[contains(@href,'caizzii.com')]");
  5221. addObsoleteHost("volnyweb\\.cz\/files\/get\/[\\w-_]+","//a[contains(@href,'volnyweb.cz/files')]");
  5222. addObsoleteHost("gotupload\\.com\/\\w+","//a[contains(@href,'gotupload.com/')]");
  5223. addObsoleteHost("mooload\\.com\/new\/file\\.php\\?file=files\/\\d+\/\\d+","//a[contains(@href,'mooload.com/new/file')]");
  5224. addObsoleteHost("z\\d+\\.zupload\\.com\/download\\.php\\?file=getfile&filepath=\\d+","//a[contains(@href,'zupload.com/download')]");
  5225. addObsoleteHost("mytempdir\\.com\/\\d+","//a[contains(@href,'mytempdir.com/')]");
  5226. addObsoleteHost("usershare\\.net\/\\w+","//a[contains(@href,'usershare.net/')]");
  5227. addObsoleteHost("qshare\\.com\/get\/\\d+\/.","//a[contains(@href,'qshare.com/get')]");
  5228. addObsoleteHost("filescash\\.net\/file\/\\d+","//a[contains(@href,'filescash.net/file')]");
  5229. addObsoleteHost("metahyper\\.com\/\\w+","//a[contains(@href,'metahyper.com/')]");
  5230. addObsoleteHost("combozip\\.com\/\\w+","//a[contains(@href,'combozip.com/')]");
  5231. addObsoleteHost("anonstream\\.com\/get_\\w+","//a[contains(@href,'anonstream.com/get_')]");
  5232. addObsoleteHost("x7\\.to\/\\w+","//a[contains(@href,'x7.to/')]");
  5233. addObsoleteHost("uploadbox\\.com\/files\/\\w+","//a[contains(@href,'uploadbox.com/files')]");
  5234. addObsoleteHost("(?:flyupload\\.)?(?:enterupload|flyupload)\\.com\/[\\?\\w]+","//a[contains(@href,'enterupload.com/') or contains(@href,'flyupload.com/')]");
  5235. addObsoleteHost("filepoint\\.de\/dl\/\\w+","//a[contains(@href,'filepoint.de/dl')]");
  5236. addObsoleteHost("icushare\\.com\/\\w+","//a[contains(@href,'icushare.com/')]");
  5237. addObsoleteHost("oron\\.com\/\\w+","//a[contains(@href,'oron.com/')]");
  5238. addObsoleteHost("mystream\\.to\/file\\-\\d+","//a[contains(@href,'mystream.to/file')]");
  5239. addObsoleteHost("x-fs\\.com\/download\\.php\\?id=\\w+","//a[contains(@href,'x-fs.com/download')]");
  5240. addObsoleteHost("srapid\\.eu\/\\w+","//a[contains(@href,'srapid.eu/')]");
  5241. addObsoleteHost("shareshared\\.com\/\\w+","//a[contains(@href,'shareshared.com/')]");
  5242. addObsoleteHost("sosame\\.cz\/\\w+","//a[contains(@href,'sosame.cz/')]");
  5243. addObsoleteHost("s\\d+\\.filesdump\\.com\/file\/\\w+","//a[contains(@href,'filesdump.com/file')]");
  5244. addObsoleteHost("2-klicks\\.de\/\\?d=\\w+","//a[contains(@href,'2-klicks.de/?d=')]");
  5245. addObsoleteHost("silofiles\\.com\/file\/\\d+","//a[contains(@href,'silofiles.com/file')]");
  5246. addObsoleteHost("upfile\\.in\/\\w+","//a[contains(@href,'upfile.in/')]");
  5247. addObsoleteHost("filehook\\.com\/\\w+","//a[contains(@href,'filehook.com/')]");
  5248. addObsoleteHost("mojofile\\.com\/\\w+","//a[contains(@href,'mojofile.com/')]");
  5249. addObsoleteHost("cloudcache\\.cc\/\\w+","//a[contains(@href,'cloudcache.cc/')]");
  5250. addObsoleteHost("1hostclick\\.com\/\\w+","//a[contains(@href,'1hostclick.com/')]");
  5251. addObsoleteHost("4bytez\\.com\/\\w+","//a[contains(@href,'4bytez.com/')]");
  5252. addObsoleteHost("uploadking\\.com\/\\w+","//a[contains(@href,'uploadking.com/')]");
  5253. addObsoleteHost("nahraj\\.cz\/(?:content|down)\/\\w+","//a[contains(@href,'nahraj.cz/')]");
  5254. addObsoleteHost("megarapid\\.eu\/files\/\\d+","//a[contains(@href,'megarapid.eu/files')]");
  5255. addObsoleteHost("(?:fileserve|uploadstation)\\.com\/(?:file|list)\/\\w+","//a[contains(@href,'fileserve.com/') or contains(@href,'uploadstation.com/')]");
  5256. addObsoleteHost("uploadhere\\.com\/\\w+","//a[contains(@href,'uploadhere.com/')]");
  5257. addObsoleteHost("dualshare\\.com\/\\w+","//a[contains(@href,'dualshare.com/')]");
  5258. addObsoleteHost("yourfilehost\\.com\/media","//a[contains(@href,'yourfilehost.com/media')]");
  5259. addObsoleteHost("ftp2share\\.com\/file\/\\w+","//a[contains(@href,'ftp2share.com/file')]");
  5260. addObsoleteHost("storeandserve\\.com\/download\/\\d+","//a[contains(@href,'storeandserve.com/download')]");
  5261. addObsoleteHost("mountfile\\.com\/file(?:\/\\w+){2}","//a[contains(@href,'mountfile.com/file')]");
  5262. addObsoleteHost("save\\.am\/files\/\\w+","//a[contains(@href,'save.am/files')]");
  5263. addObsoleteHost("transitfiles\\.com\/dl\/\\w+","//a[contains(@href,'transitfiles.com/dl')]");
  5264. addObsoleteHost("smartuploader\\.com\/file\\.php\\?f=\\d+","//a[contains(@href,'smartuploader.com/file.php?=')]");
  5265. addObsoleteHost("skipfile\\.com\/\\w+","//a[contains(@href,'skipfile.com/')]");
  5266. addObsoleteHost("stahnu\\.to\/[\\w\\?]+","//a[contains(@href,'stahnu.to/')]");
  5267. addObsoleteHost("flyshare\.cz\/(?:stahni\/|)\\d+","//a[contains(@href,'flyshare.cz/')]");
  5268. addObsoleteHost("(?:ddlani\\.me|ddlanime\\.com)\/\\w+","//a[contains(@href,'ddlani.me/') or contains(@href,'ddlanime.com/')]");
  5269. addObsoleteHost("loadly\\.com\/\\w+","//a[contains(@href,'loadly.com/')]");
  5270. addObsoleteHost("groovefile\\.com\/\\w+","//a[contains(@href,'groovefile.com/')]");
  5271. addObsoleteHost("filezlot\\.com\/\\w+","//a[contains(@href,'filezlot.com/')]");
  5272. addObsoleteHost("shareator\\.(?:net|com)\/\\w+","//a[contains(@href,'shareator.')]");
  5273. addObsoleteHost("yabadaba\\.ru\/files\/","//a[contains(@href,'yabadaba.ru/files/')]");
  5274. addObsoleteHost("rapidhide\\.com\/download\\.php\\?file=\\w+","//a[contains(@href,'rapidhide.com/download.php')]");
  5275. addObsoleteHost("filejungle\\.com\/[fl]\/\\w+","//a[contains(@href,'filejungle.com/')]");
  5276. addObsoleteHost("kewlshare\\.com\/dl\/\\d+","//a[contains(@href,'kewlshare.com/dl')]");
  5277. addObsoleteHost("petandrive\\.com\/file\/\\w+","//a[contains(@href,'petandrive.com/file')]");
  5278. addObsoleteHost("onionshare\\.com\/\\w+","//a[contains(@href,'onionshare.com/')]");
  5279. addObsoleteHost("rapidable\\.com\/\\w+\/download\\.php\\?id=","//a[contains(@href,'rapidable.com/')]");
  5280. addObsoleteHost("filesdump\\.com\/file\/\\w+\/\\d+","//a[contains(@href,'filesdump.com/file')]");
  5281. addObsoleteHost("file2box\\.(?:net|com)\/\\w+","//a[contains(@href,'file2box.')]");
  5282. addObsoleteHost("(?:filesonic|sharingmatrix|wupload)(?:\\.\\w+){1,2}\/(?:file|folder)\/\\w+","//a[contains(@href,'filesonic.') or contains(@href,'sharingmatrix.com') or contains(@href,'wupload.')]");
  5283. // addObsoleteHost("wizzupload\\.com\/\\w+","//a[contains(@href,'wizzupload.com/')]");
  5284. addObsoleteHost("bloggerarticles\\.com\/\\w+","//a[contains(@href,'bloggerarticles.com/')]");
  5285. addObsoleteHost("mojedata\\.sk/","//a[contains(@href,'mojedata.sk/')]");
  5286. addObsoleteHost("sharpfile\\.com\/\\w+","//a[contains(@href,'sharpfile.com/')]");
  5287. addObsoleteHost("upgrand\\.com\/\\w+","//a[contains(@href,'upgrand.com/')]");
  5288. addObsoleteHost("nasdilej\\.cz\/\\w+","//a[contains(@href,'nasdilej.cz/')]");
  5289. addObsoleteHost("mediatack\\.cz\/stahuj/\\w+","//a[contains(@href,'mediatack.cz/stahuj/')]");
  5290. addObsoleteHost("share-it\\.to\/file/\\w+","//a[contains(@href,'share-it.to/file/')]");
  5291. addObsoleteHost("primeupload\\.com\/file/\\w+","//a[contains(@href,'primeupload.com/file/')]");
  5292. addObsoleteHost("(?:uploads\\.glumbo|glumbouploads)\\.com\/\\w+","//a[contains(@href,'uploads.glumbo.com') or contains(@href,'glumbouploads.com')]");
  5293. addObsoleteHost("filebeer\\.info\/\\w+","//a[contains(@href,'filebeer.info/')]");
  5294. addObsoleteHost("baberepublic\\.com\/link\/\\w+","//a[contains(@href,'baberepublic.com/link/')]");
  5295. addObsoleteHost("xtu\\.me\/\\w+","//a[contains(@href,'xtu.me/')]");
  5296. addObsoleteHost("sharebase\\.de\/files\/\\w+","//a[contains(@href,'sharebase.de/files/')]");
  5297. addObsoleteHost("filerobo\\.com\/\\w+","//a[contains(@href,'filerobo.com/')]");
  5298. addObsoleteHost("filevelocity\\.com\/\\w+","//a[contains(@href,'filevelocity.com/')]");
  5299. addObsoleteHost("filezpro\\.com\/\\w+","//a[contains(@href,'filezpro.com/')]");
  5300. addObsoleteHost("file4sharing\\.com\/\\w+","//a[contains(@href,'file4sharing.com/')]");
  5301. addObsoleteHost("cing\\.be\/\\w+","//a[contains(@href,'cing.be/')]");
  5302. addObsoleteHost("ufile\\.eu\/\\w+","//a[contains(@href,'ufile.eu/')]");
  5303. addObsoleteHost("pigsonic\\.com\/\\w+","//a[contains(@href,'pigsonic.com/')]");
  5304. addObsoleteHost("fileupped\\.com\/\\w+","//a[contains(@href,'fileupped.com/')]");
  5305. addObsoleteHost("sharerun\\.com\/\\w+","//a[contains(@href,'sharerun.com/')]");
  5306. addObsoleteHost("rapidslnare\\.com\/\\w+","//a[contains(@href,'rapidslnare.com/')]");
  5307. addObsoleteHost("monsteruploads\\.eu\/\\w+","//a[contains(@href,'monsteruploads.eu/')]");
  5308. addObsoleteHost("b9bb\\.com\/\\w+","//a[contains(@href,'b9bb.com/')]");
  5309. addObsoleteHost("jamber\\.info\/\\w+","//a[contains(@href,'jamber.info/')]");
  5310. addObsoleteHost("(?:megaftp|MegaFTP)\\.com\/\\w+","//a[contains(@href,'megaftp.com/') or contains(@href,'MegaFTP.com/')]");
  5311. addObsoleteHost("desiupload\\.net\/\\?d=\\w+","//a[contains(@href,'desiupload.net/')]");
  5312. addObsoleteHost("file27\\.com\/\\w+","//a[contains(@href,'file27.com/')]");
  5313. addObsoleteHost("yastorage\\.com\/\\w+","//a[contains(@href,'yastorage.com/')]");
  5314. addObsoleteHost("filehost\\.ws\/\\w+","//a[contains(@href,'filehost.ws/')]");
  5315. addObsoleteHost("copyload\\.com\/\\w+","//a[contains(@href,'copyload.com/')]");
  5316. addObsoleteHost("venusfile\\.com\/\\w+","//a[contains(@href,'venusfile.com/')]");
  5317. addObsoleteHost("aieshare\\.com\/\\w+","//a[contains(@href,'aieshare.com/')]");
  5318. addObsoleteHost("fileza\\.net\/\\w+","//a[contains(@href,'fileza.net/')]");
  5319. addObsoleteHost("filerose\\.com\/\\w+","//a[contains(@href,'filerose.com/')]");
  5320. addObsoleteHost("squillion\\.com\/\\w+","//a[contains(@href,'squillion.com/')]");
  5321. addObsoleteHost("fileprohost\\.com\/\\w+","//a[contains(@href,'fileprohost.com/')]");
  5322. addObsoleteHost("bitbonus\\.com\/download\/\\w+","//a[contains(@href,'bitbonus.com/')]");
  5323. addObsoleteHost("warserver\\.cz\/\\w+","//a[contains(@href,'warserver.cz/')]");
  5324. addObsoleteHost("uload\\.to\/\\w+","//a[contains(@href,'uload.to/')]");
  5325. addObsoleteHost("sharedbit\\.net\/\\w+","//a[contains(@href,'sharedbit.net/')]");
  5326. addObsoleteHost("megaload\\.it\/\\w+","//a[contains(@href,'megaload.it/')]");
  5327. addObsoleteHost("filewinds\\.com\/\\w+","//a[contains(@href,'filewinds.com/')]");
  5328. addObsoleteHost("uploadcore\\.com\/\\w+","//a[contains(@href,'uploadcore.com/')]");
  5329. addObsoleteHost("syfiles\\.com\/\\w+","//a[contains(@href,'syfiles.com/')]");
  5330. addObsoleteHost("eyesfile\\.com\/\\w+","//a[contains(@href,'eyesfile.com/')]");
  5331. addObsoleteHost("hotfile\\.com\/\\w+","//a[contains(@href,'hotfile.com/')]");
  5332. addObsoleteHost("superupl\\.com\/\\w+","//a[contains(@href,'superupl.com/')]");
  5333. addObsoleteHost("oteupload\\.com\/\\w+","//a[contains(@href,'oteupload.com/')]");
  5334. addObsoleteHost("henchfile\\.com\/\\w+","//a[contains(@href,'henchfile.com/')]");
  5335. addObsoleteHost("HenchFile\\.com\/\\w+","//a[contains(@href,'HenchFile.com/')]");
  5336. addObsoleteHost("filegag\\.com\/\\w+","//a[contains(@href,'filegag.com/')]");
  5337. addObsoleteHost("filedefend\\.com\/\\w+","//a[contains(@href,'filedefend.com/')]");
  5338. addObsoleteHost("hotfiles\\.ws\/\\w+","//a[contains(@href,'hotfiles.ws/')]");
  5339. addObsoleteHost("share-rapid\\.com\/\\w+","//a[contains(@href,'share-rapid.com/')]");
  5340. //addObsoleteHost("sharerapid\\.cz\/\\w+","//a[contains(@href,'sharerapid.cz/')]");
  5341. addObsoleteHost("rapids\\.cz\/\\w+","//a[contains(@href,'rapids.cz/')]");
  5342. addObsoleteHost("share-credit\\.cz\/\\w+","//a[contains(@href,'share-credit.cz/')]");
  5343. addObsoleteHost("share-central\\.cz\/\\w+","//a[contains(@href,'share-central.cz/')]");
  5344. addObsoleteHost("share-ms\\.cz\/\\w+","//a[contains(@href,'share-ms.cz/')]");
  5345. addObsoleteHost("share-net\\.cz\/\\w+","//a[contains(@href,'share-net.cz/')]");
  5346. addObsoleteHost("srapid\\.cz\/\\w+","//a[contains(@href,'srapid.cz/')]");
  5347. addObsoleteHost("share-rapid\\.cz\/\\w+","//a[contains(@href,'share-rapid.cz/')]");
  5348. addObsoleteHost("wooupload\\.com\/\\w+","//a[contains(@href,'wooupload.com/')]");
  5349. addObsoleteHost("megabitshare\\.com\/\\w+","//a[contains(@href,'megabitshare.com/')]");
  5350. addObsoleteHost("uploking\\.com\/\\w+","//a[contains(@href,'uploking.com/')]");
  5351. addObsoleteHost("esnips\\.com\/\\w+","//a[contains(@href,'esnips.com/')]");
  5352. addObsoleteHost("uplly\\.com\/\\w+","//a[contains(@href,'uplly.com/')]");
  5353. addObsoleteHost("ufox\\.com\/\\w+","//a[contains(@href,'ufox.com/')]");
  5354. addObsoleteHost("clz\\.to\/\\w+","//a[contains(@href,'clz.to/')]");
  5355. addObsoleteHost("cloudzer\\.net\/\\w+","//a[contains(@href,'cloudzer.net/')]");
  5356. addObsoleteHost("cloudzer\\.com\/\\w+","//a[contains(@href,'cloudzer.com/')]");
  5357. addObsoleteHost("extabit\\.com\/\\w+","//a[contains(@href,'extabit.com/')]");
  5358. addObsoleteHost("uploadwaste\\.com\/\\w+","//a[contains(@href,'uploadwaste.com/')]");
  5359. addObsoleteHost("247upload\\.com\/\\w+","//a[contains(@href,'uploadwaste.com/')]");
  5360. addObsoleteHost("2download\\.de\/\\w+","//a[contains(@href,'2download.de/')]");
  5361. addObsoleteHost("4fastfile\\.com\/\\w+","//a[contains(@href,'4fastfile.com/')]");
  5362. addObsoleteHost("asixfiles\\.com\/\\w+","//a[contains(@href,'asixfiles.com/')]");
  5363. addObsoleteHost("berofile\\.com\/\\w+","//a[contains(@href,'berofile.com/')]");
  5364. addObsoleteHost("bigupload\\.com\/\\w+","//a[contains(@href,'bigupload.com/')]");
  5365. addObsoleteHost("cepzo\\.com\/\\w+","//a[contains(@href,'cepzo.com/')]");
  5366. addObsoleteHost("czshare\\.com\/\\w+","//a[contains(@href,'czshare.com/')]");
  5367. addObsoleteHost("clouds\\.to\/\\w+","//a[contains(@href,'clouds.to/')]");
  5368. addObsoleteHost("cobrashare\\.sk\/\\w+","//a[contains(@href,'cobrashare.sk/')]");
  5369. addObsoleteHost("coraldrive\\.net\/\\w+","//a[contains(@href,'coraldrive.net/')]");
  5370. addObsoleteHost("cyberlocker\\.ch\/\\w+","//a[contains(@href,'cyberlocker.ch/')]");
  5371. addObsoleteHost("darkport\\.org\/\\w+","//a[contains(@href,'darkport.org/')]");
  5372. addObsoleteHost("dark-uploads\\.com\/\\w+","//a[contains(@href,'dark-uploads.com/')]");
  5373. addObsoleteHost("davvas\\.com\/\\w+","//a[contains(@href,'davvas.com/')]");
  5374. addObsoleteHost("enigmashare\\.com\/\\w+","//a[contains(@href,'enigmashare.com/')]");
  5375. addObsoleteHost("erofly\\.cz\/\\w+","//a[contains(@href,'erofly.cz/')]");
  5376. addObsoleteHost("fastsonic\\.net\/\\w+","//a[contains(@href,'fastsonic.net/')]");
  5377. addObsoleteHost("filebox\\.com\/\\w+","//a[contains(@href,'filebox.com/')]");
  5378. addObsoleteHost("filecity\\.net\/\\w+","//a[contains(@href,'filecity.net/')]");
  5379. addObsoleteHost("filedap\\.com\/\\w+","//a[contains(@href,'filedap.com/')]");
  5380. addObsoleteHost("filedino\\.com\/\\w+","//a[contains(@href,'filedino.com/')]");
  5381. addObsoleteHost("filedownloads\\.org\/\\w+","//a[contains(@href,'filedownloads.org/')]");
  5382. addObsoleteHost("filefolks\\.com\/\\w+","//a[contains(@href,'filefolks.com/')]");
  5383. addObsoleteHost("fileking\\.co\/\\w+","//a[contains(@href,'fileking.co/')]");
  5384. addObsoleteHost("filemates\\.com\/\\w+","//a[contains(@href,'filemates.com/')]");
  5385. addObsoleteHost("files\\.to\/\\w+","//a[contains(@href,'files.to/')]");
  5386. addObsoleteHost("files2k\\.eu\/\\w+","//a[contains(@href,'files2k.eu/')]");
  5387. addObsoleteHost("filesector\\.cc\/\\w+","//a[contains(@href,'filesector.cc/')]");
  5388. addObsoleteHost("filesega\\.com\/\\w+","//a[contains(@href,'filesega.com/')]");
  5389. addObsoleteHost("filesend\\.net\/\\w+","//a[contains(@href,'filesend.net/')]");
  5390. addObsoleteHost("filestay\\.com\/\\w+","//a[contains(@href,'filestay.com/')]");
  5391. addObsoleteHost("filestrum\\.com\/\\w+","//a[contains(@href,'filestrum.com/')]");
  5392. addObsoleteHost("fileuplo\\.de\/\\w+","//a[contains(@href,'fileuplo.de/')]");
  5393. addObsoleteHost("fileupup\\.com\/\\w+","//a[contains(@href,'fileupup.com/')]");
  5394. addObsoleteHost("forunesia\\.com\/\\w+","//a[contains(@href,'forunesia.com/')]");
  5395. addObsoleteHost("freeuploads\\.fr\/\\w+","//a[contains(@href,'freeuploads.fr/')]");
  5396. addObsoleteHost("uploa\\.dk\/\\w+","//a[contains(@href,'uploa.dk/')]");
  5397. addObsoleteHost("getthebit\\.com\/\\w+","//a[contains(@href,'getthebit.com/')]");
  5398. addObsoleteHost("getzilla\\.net\/\\w+","//a[contains(@href,'getzilla.net/')]");
  5399. addObsoleteHost("goldfile\\.eu\/\\w+","//a[contains(@href,'goldfile.eu/')]");
  5400. addObsoleteHost("good\\.com\/\\w+","//a[contains(@href,'good.com/')]");
  5401. addObsoleteHost("grupload\\.com\/\\w+","//a[contains(@href,'grupload.com/')]");
  5402. addObsoleteHost("hellfile\\.com\/\\w+","//a[contains(@href,'hellfile.com/')]");
  5403. addObsoleteHost("hipfile\\.com\/\\w+","//a[contains(@href,'hipfile.com/')]");
  5404. addObsoleteHost("hitfile\\.com\/\\w+","//a[contains(@href,'hitfile.com/')]");
  5405. addObsoleteHost("hulkfile\\.eu\/\\w+","//a[contains(@href,'hulkfile.eu/')]");
  5406. addObsoleteHost("i-filez\\.com\/\\w+","//a[contains(@href,'i-filez.com/')]");
  5407. addObsoleteHost("ifile\\.ws\/\\w+","//a[contains(@href,'ifile.ws/')]");
  5408. addObsoleteHost("kupload\\.org\/\\w+","//a[contains(@href,'kupload.org/')]");
  5409. addObsoleteHost("duckfile\\.net\/\\w+","//a[contains(@href,'duckfile.net/')]");
  5410. addObsoleteHost("packupload\\.com\/\\w+","//a[contains(@href,'packupload.com/')]");
  5411. addObsoleteHost("terafile\\.com\/\\w+","//a[contains(@href,'terafile.com/')]");
  5412. addObsoleteHost("terafile\\.co\/\\w+","//a[contains(@href,'terafile.co/')]");
  5413. addObsoleteHost("fileom\\.com\/\\w+","//a[contains(@href,'fileom.com/')]");
  5414. addObsoleteHost("luckyshare\\.net\/\\w+","//a[contains(@href,'luckyshare.net/')]");
  5415. addObsoleteHost("lemuploads\\.com\/\\w+","//a[contains(@href,'lemuploads.com/')]");
  5416. addObsoleteHost("limelinx\\.com\/\\w+","//a[contains(@href,'limelinx.com/')]");
  5417. addObsoleteHost("maxshare\\.pl\/\\w+","//a[contains(@href,'maxshare.pl/')]");
  5418. addObsoleteHost("megarelease\\.org\/\\w+","//a[contains(@href,'megarelease.org/')]");
  5419. addObsoleteHost("megashare\\.com\/\\w+","//a[contains(@href,'megashare.com/')]");
  5420. addObsoleteHost("minus\\.com\/\\w+","//a[contains(@href,'minus.com/')]");
  5421. addObsoleteHost("mlfat4arab\\.com\/\\w+","//a[contains(@href,'mlfat4arab.com/')]");
  5422. addObsoleteHost("multishare\\.cz\/\\w+","//a[contains(@href,'multishare.cz/')]");
  5423. addObsoleteHost("nirafile\\.com\/\\w+","//a[contains(@href,'nirafile.com/')]");
  5424. addObsoleteHost("ok2upload\\.com\/\\w+","//a[contains(@href,'ok2upload.com/')]");
  5425. addObsoleteHost("peejeshare\\.com\/\\w+","//a[contains(@href,'peejeshare.com/')]");
  5426. addObsoleteHost("premiuns\\.org\/\\w+","//a[contains(@href,'premiuns.org/')]");
  5427. addObsoleteHost("przeklej\\.net\/\\w+","//a[contains(@href,'przeklej.net/')]");
  5428. addObsoleteHost("qkup\\.net\/\\w+","//a[contains(@href,'qkup.net/')]");
  5429. addObsoleteHost("rapidupload\\.sk\/\\w+","//a[contains(@href,'rapidupload.sk/')]");
  5430. addObsoleteHost("rockdizfile\\.com\/\\w+","//a[contains(@href,'rockdizfile.com/')]");
  5431. addObsoleteHost("rocketfile\\.net\/\\w+","//a[contains(@href,'rocketfile.net/')]");
  5432. addObsoleteHost("share-now\\.net\/\\w+","//a[contains(@href,'share-now.net/')]");
  5433. addObsoleteHost("share76\\.com\/\\w+","//a[contains(@href,'share76.com/')]");
  5434. addObsoleteHost("sharebees\\.com\/\\w+","//a[contains(@href,'sharebees.com/')]");
  5435. addObsoleteHost("sharefiles\\.co\/\\w+","//a[contains(@href,'sharefiles.co/')]");
  5436. addObsoleteHost("slingfile\\.com\/\\w+","//a[contains(@href,'slingfile.com/')]");
  5437. addObsoleteHost("sms4file\\.com\/\\w+","//a[contains(@href,'sms4file.com/')]");
  5438. addObsoleteHost("space4file\\.com\/\\w+","//a[contains(@href,'space4file.com/')]");
  5439. addObsoleteHost("tigershare\\.net\/\\w+","//a[contains(@href,'tigershare.net/')]");
  5440. addObsoleteHost("toucansharing\\.com\/\\w+","//a[contains(@href,'toucansharing.com/')]");
  5441. addObsoleteHost("ubuntuone\\.com\/\\w+","//a[contains(@href,'ubuntuone.com/')]");
  5442. addObsoleteHost("unextfiles\\.com\/\\w+","//a[contains(@href,'unextfiles.com/')]");
  5443. addObsoleteHost("upaj\\.pl\/\\w+","//a[contains(@href,'upaj.pl/')]");
  5444. addObsoleteHost("upfile\\.biz\/\\w+","//a[contains(@href,'upfile.biz/')]");
  5445. addObsoleteHost("uploadbin\\.net\/\\w+","//a[contains(@href,'uploadbin.net/')]");
  5446. addObsoleteHost("uploadic\\.com\/\\w+","//a[contains(@href,'uploadic.com/')]");
  5447. addObsoleteHost("uploadinc\\.com\/\\w+","//a[contains(@href,'uploadinc.com/')]");
  5448. addObsoleteHost("uploading4u\\.eu\/\\w+","//a[contains(@href,'uploading4u.eu/')]");
  5449. addObsoleteHost("uploadjet\\.net\/\\w+","//a[contains(@href,'uploadjet.net/')]");
  5450. addObsoleteHost("uploadorb\\.com\/\\w+","//a[contains(@href,'uploadorb.com/')]");
  5451. addObsoleteHost("upthe\\.net\/\\w+","//a[contains(@href,'upthe.net/')]");
  5452. addObsoleteHost("uptorch\\.com\/\\w+","//a[contains(@href,'uptorch.com/')]");
  5453. addObsoleteHost("vidbox\\.yt\/\\w+","//a[contains(@href,'vidbox.yt/')]");
  5454. addObsoleteHost("videozer\\.com\/\\w+","//a[contains(@href,'videozer.com/')]");
  5455. addObsoleteHost("vreer\\.com\/\\w+","//a[contains(@href,'vreer.com/')]");
  5456. addObsoleteHost("wallobit\\.com\/\\w+","//a[contains(@href,'wallobit.com/')]");
  5457. addObsoleteHost("zooupload\\.com\/\\w+","//a[contains(@href,'zooupload.com/')]");
  5458. addObsoleteHost("xerver\\.co\/\\w+","//a[contains(@href,'xerver.co/')]");
  5459. addObsoleteHost("privatefiles\\.com\/\\w+","//a[contains(@href,'privatefiles.com/')]");
  5460. addObsoleteHost("bitshare\\.com\/\\w+","//a[contains(@href,'bitshare.com/')]");
  5461. addObsoleteHost("asfile\\.com\/\\w+","//a[contains(@href,'asfile.com/')]");
  5462. addObsoleteHost("billionuploads\\.com\/\\w+","//a[contains(@href,'billionuploads.com/')]");
  5463. addObsoleteHost("\\*{7,100}\/[\\w\\d]+","//a[contains(@href,'*******/')]");
  5464. addObsoleteHost("filesaur\\.com\/\\w+","//a[contains(@href,'filesaur.com/')]");
  5465. addObsoleteHost("rapidshare\\.com\/\\w+","//a[contains(@href,'rapidshare.com/')]");
  5466. addObsoleteHost("rapidshare\\.ru\/\\w+","//a[contains(@href,'rapidshare.ru/')]");
  5467. addObsoleteHost("filesfrog\\.net\/\\w+","//a[contains(@href,'filesfrog.net/')]");
  5468. addObsoleteHost("4savefile\\.com\/\\w+","//a[contains(@href,'4savefile.com/')]");
  5469. addObsoleteHost("bayfiles\\.com\/\\w+","//a[contains(@href,'bayfiles.com/')]");
  5470. addObsoleteHost("bayfiles\\.net\/\\w+","//a[contains(@href,'bayfiles.net/')]");
  5471. addObsoleteHost("dodane\\.pl\/\\w+","//a[contains(@href,'dodane.pl/')]");
  5472. addObsoleteHost("dotsemper\\.com\/\\w+","//a[contains(@href,'dotsemper.com/')]");
  5473. addObsoleteHost("egofiles\\.com\/\\w+","//a[contains(@href,'egofiles.com/')]");
  5474. addObsoleteHost("epicshare\\.net\/\\w+","//a[contains(@href,'epicshare.net/')]");
  5475. addObsoleteHost("fiberupload\\.net\/\\w+","//a[contains(@href,'fiberupload.net/')]");
  5476. addObsoleteHost("filemonkey\\.in\/\\w+","//a[contains(@href,'filemonkey.in/')]");
  5477. addObsoleteHost("filemonster\\.net\/\\w+","//a[contains(@href,'filemonster.net/')]");
  5478. addObsoleteHost("filepom\\.com\/\\w+","//a[contains(@href,'filepom.com/')]");
  5479. addObsoleteHost("filesbb\\.com\/\\w+","//a[contains(@href,'filesbb.com/')]");
  5480. addObsoleteHost("fileshareup\\.com\/\\w+","//a[contains(@href,'fileshareup.com/')]");
  5481. addObsoleteHost("filevice\\.com\/\\w+","//a[contains(@href,'filevice.com/')]");
  5482. addObsoleteHost("gigaup\\.fr\/\\w+","//a[contains(@href,'gigaup.fr/')]");
  5483. addObsoleteHost("inafile\\.com\/\\w+","//a[contains(@href,'inafile.com/')]");
  5484. addObsoleteHost("isavelink\\.com\/\\w+","//a[contains(@href,'isavelink.com/')]");
  5485. addObsoleteHost("loombo\\.com\/\\w+","//a[contains(@href,'loombo.com/')]");
  5486. addObsoleteHost("megafiles\\.se\/\\w+","//a[contains(@href,'megafiles.se/')]");
  5487. addObsoleteHost("migupload\\.com\/\\w+","//a[contains(@href,'migupload.com/')]");
  5488. addObsoleteHost("mydisc\\.net\/\\w+","//a[contains(@href,'mydisc.net/')]");
  5489. addObsoleteHost("nitrobits\\.com\/\\w+","//a[contains(@href,'nitrobits.com/')]");
  5490. addObsoleteHost("potload\\.com\/\\w+","//a[contains(@href,'potload.com/')]");
  5491. addObsoleteHost("redload\\.net\/\\w+","//a[contains(@href,'redload.net/')]");
  5492. addObsoleteHost("shareprofi\\.com\/\\w+","//a[contains(@href,'shareprofi.com/')]");
  5493. addObsoleteHost("sharesuper\\.info\/\\w+","//a[contains(@href,'sharesuper.info/')]");
  5494. addObsoleteHost("sinhro\\.net\/\\w+","//a[contains(@href,'sinhro.net/')]");
  5495. addObsoleteHost("speedfile\\.cz\/\\w+","//a[contains(@href,'speedfile.cz/')]");
  5496. addObsoleteHost("speedshare\\.org\/\\w+","//a[contains(@href,'speedshare.org/')]");
  5497. addObsoleteHost("storage.novoro\\.net\/\\w+","//a[contains(@href,'storage.novoro.net/')]");
  5498. addObsoleteHost("swankshare\\.com\/\\w+","//a[contains(@href,'swankshare.com/')]");
  5499. addObsoleteHost("swatupload\\.com\/\\w+","//a[contains(@href,'swatupload.com/')]");
  5500. addObsoleteHost("upafile\\.com\/\\w+","//a[contains(@href,'upafile.com/')]");
  5501. addObsoleteHost("uploadmachine\\.com\/\\w+","//a[contains(@href,'uploadmachine.com/')]");
  5502. addObsoleteHost("uploadsat\\.com\/\\w+","//a[contains(@href,'uploadsat.com/')]");
  5503. addObsoleteHost("upshared\\.com\/\\w+","//a[contains(@href,'upshared.com/')]");
  5504. addObsoleteHost("usefile\\.com\/\\w+","//a[contains(@href,'usefile.com/')]");
  5505. addObsoleteHost("yourfiles\\.to\/\\w+","//a[contains(@href,'yourfiles.to/')]");
  5506. addObsoleteHost("zomgupload\\.com\/\\w+","//a[contains(@href,'zomgupload.com/')]");
  5507. addObsoleteHost("~[\\w\\s~]*","//a[contains(@href,'//~') or contains(@href,'//www.~')]");
  5508. addObsoleteHost("filemup\\.com\/\\w+","//a[contains(@href,'filemup.com/')]");
  5509. addObsoleteHost("tuxfile\\.com\/\\w+","//a[contains(@href,'tuxfile.com/')]");
  5510. addObsoleteHost("ultramegabit\\.com\/\\w+","//a[contains(@href,'ultramegabit.com/')]");
  5511. addObsoleteHost("uploadto\\.us\/\\w+","//a[contains(@href,'uploadto.us/')]");
  5512. addObsoleteHost("filecore\\.co\\.nz\/\\w+","//a[contains(@href,'filecore.co.nz/')]");
  5513. addObsoleteHost("fileshare\\.in\\.ua\/\\w+","//a[contains(@href,'fileshare.in.ua/')]");
  5514. addObsoleteHost("firedrive\\.com\/\\w+","//a[contains(@href,'firedrive.com/')]");
  5515. addObsoleteHost("putlocker\\.com\/\\w+","//a[contains(@href,'putlocker.com/')]");
  5516. addObsoleteHost("lumfile\\.com\/\\w+","//a[contains(@href,'lumfile.com/')]");
  5517. addObsoleteHost("lumfile\\.se\/\\w+","//a[contains(@href,'lumfile.se/')]");
  5518. addObsoleteHost("lumfile\\.eu\/\\w+","//a[contains(@href,'lumfile.eu/')]");
  5519. addObsoleteHost("shared\\.com\/\\w+","//a[contains(@href,'shared.com/')]");
  5520. addObsoleteHost("stahovadlo\\.cz\/\\w+","//a[contains(@href,'stahovadlo.cz/')]");
  5521. addObsoleteHost("dizzcloud\\.com\/\\w+","//a[contains(@href,'dizzcloud.com/')]");
  5522. addObsoleteHost("ddlstorage\\.com\/\\w+","//a[contains(@href,'ddlstorage.com/')]");
  5523. addObsoleteHost("dataport\\.cz\/\\w+","//a[contains(@href,'dataport.cz/')]");
  5524. addObsoleteHost("daj\\.to\/\\w+","//a[contains(@href,'daj.to/')]");
  5525. addObsoleteHost("sockshare\\.com\/\\w+","//a[contains(@href,'sockshare.com/')]");
  5526. addObsoleteHost("2drive\\.net\/\\w+","//a[contains(@href,'2drive.net/')]");
  5527. addObsoleteHost("bl\\.st\/\\w+","//a[contains(@href,'bl.st/')]");
  5528. addObsoleteHost("uncapped-downloads\\.com\/\\w+","//a[contains(@href,'uncapped-downloads.com/')]");
  5529. addObsoleteHost("freakshare\\.net\/\\w+","//a[contains(@href,'freakshare.net/')]");
  5530. addObsoleteHost("freakshare\\.com\/\\w+","//a[contains(@href,'freakshare.com/')]");
  5531. // obsolete start
  5532. }
  5533. //obsolete file hosts init end
  5534.  
  5535. function addFileHost(linkRegex, isAliveRegex, isDeadRegex, isUnavaRegex, xpathEx, tryLoop, ispremRegex)
  5536. {
  5537. var host = new Array(7);
  5538. host[0] = linkRegex;
  5539. host[1] = isAliveRegex;
  5540. host[2] = isDeadRegex;
  5541. host[3] = isUnavaRegex;
  5542. host[6] = ispremRegex;
  5543. host[4] = xpathEx;
  5544. tryLoop ? host[5] = true : host[5] = false;
  5545. http_file_hosts.push(host);
  5546. }
  5547. if (GM_getValue("Check_megafileupload_dot_com_links", false))
  5548. {
  5549. addFileHost(
  5550. "megafileupload\.com\/..\/file\/",
  5551. 'downloadbtn',
  5552. 'is not found',
  5553. 'optional--',
  5554. "//a[contains(@href,'megafileupload.com')]");
  5555. }
  5556. if (GM_getValue("Check_demo_dot_ovh_dot_eu_links", false))
  5557. {
  5558. addFileHost(
  5559. "demo\\.ovh\\.eu\/\\w+\/\\w+",
  5560. 'download\\.gif"',
  5561. 'p_point">',
  5562. 'optional--',
  5563. "//a[contains(@href,'demo.ovh.eu')]");
  5564. }
  5565. if (GM_getValue("Check_xkeepfile_dot_com_links", false))
  5566. {
  5567. addFileHost(
  5568. "xkeepfile\.com\/\\w+",
  5569. 'File has been found|Click here to download',
  5570. 'File cannot be found|class="error">',
  5571. 'optional--',
  5572. //'optional--',
  5573. "//a[contains(@href,'xkeepfile.com/') or contains(@href,'Gamesena.com/')]");
  5574. }
  5575. if (GM_getValue("Check_safelinking_dot_net_links", false))
  5576. {
  5577. addFileHost(
  5578. "safelinking\\.net\/p\/\\w+",
  5579. 'color:green;"',
  5580. 'color:(?:red|orange);"',
  5581. 'color:(?:grey|brown);"',
  5582. "//a[contains(@href,'safelinking.net/p/')]",
  5583. true);
  5584. }
  5585. /* if (GM_getValue("Check_ultramegabit_dot_com_links", false))
  5586. {
  5587. addFileHost(
  5588. "ultramegabit\\.com\/file\/details\/[\\w+-]",
  5589. 'name="recaptcha_response',
  5590. '="/folder/add"|>File (?:not found|restricted|has been deleted)|<title>ULTRAMEGABIT</title>',
  5591. 'btn-large btn-danger">|Account limitation notice|502 Bad Gateway',
  5592. "//a[contains(@href,'ultramegabit.com/file')]",
  5593. true);
  5594. } */
  5595. if (GM_getValue("Check_fastshare_dot_cz_links", false))
  5596. {
  5597. addFileHost(
  5598. "fastshare\\.cz\/\\d+\/\\w*",
  5599. 'dwntable">',
  5600. 'nebyla nalezena|nebola nájdená|nie została odnaleziona|color:red;font-weight:bold;border\\-style:dashed|<i class="fa fa-copyright"></i>',
  5601. 'optional--',
  5602. "//a[contains(@href,'fastshare.cz')]");
  5603. }
  5604. if (GM_getValue("Check_fastshare_dot_org_links", false))
  5605. {
  5606. addFileHost(
  5607. "[fF]ast[sS]hare\\.org\/download",
  5608. 'Download ">',
  5609. 'Diese Datei wurde wegen|wurde kein Dateiname',
  5610. 'optional--',
  5611. "//a[contains(@href,'fastshare.org/download') or contains(@href,'FastShare.org/download')]");
  5612. }
  5613. if (GM_getValue("Check_partage_dash_facile_dot_com_links", false))
  5614. {
  5615. addFileHost(
  5616. "partage-facile\.com\/\\w+",
  5617. 'class="title"><strong>|colspan="2"',
  5618. 'Page introuvable|class="alert-message',
  5619. 'optional--',
  5620. "//a[contains(@href,'partage-facile.com')]");
  5621. }
  5622. if (GM_getValue("Check_rapidgator_dot_net_links", false))
  5623. {
  5624. addFileHost(
  5625. "rapidgator\\.net\/file\/\\w+",
  5626. '/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',
  5627. 'Error 404|File not found|Error 500|Файл не найден|ファイルが探せませんでした|Fichier non trouvé|Archivo no encontrado|Select your plan',
  5628. 'optional--',
  5629. "//a[contains(@href,'rapidgator.net/file')]",
  5630. true
  5631. );
  5632. }
  5633. if (GM_getValue("Check_relink_dot_us_links", false))
  5634. {
  5635. addFileHost(
  5636. "relink\\.us\/(?:f\/\\w+|go\\.php\\?id=\\d+|view\\.php\\?id=\\d+)",
  5637. 'online_detail\\.png" alt="Status',
  5638. '(?:offline|partially)_detail\\.png" alt="Status|File deleted',
  5639. 'unknown_detail\\.png" alt="Status',
  5640. "//a[contains(@href,'relink.us/')]"
  5641. );
  5642. }
  5643. if (GM_getValue("Check_uploadstube_dot_de_links", false))
  5644. {
  5645. addFileHost(
  5646. "uploadstube\\.de\/download\\.php\\?file=\\d+",
  5647. 'div id="dl"',
  5648. 'Sie haben den Link falsch',
  5649. 'optional--',
  5650. "//a[contains(@href,'uploadstube.de/download.php?file=')]"
  5651. );
  5652. }
  5653. if (GM_getValue("Check_flyfiles_dot_net_links", false))
  5654. {
  5655. addFileHost(
  5656. "flyfiles\\.net\/\\w+",
  5657. 'download_button"|"Download file"',
  5658. 'File not found!|Файл не найден',
  5659. 'optional--',
  5660. "//a[contains(@href,'flyfiles.net/')]"
  5661. );
  5662. }
  5663. if (GM_getValue("Check_wikiupload_dot_com_links", false))
  5664. {
  5665. addFileHost(
  5666. "wikiupload\\.com\/\\w+",
  5667. 'download-button">',
  5668. 'Sorry, File not found',
  5669. 'optional--',
  5670. "//a[contains(@href,'wikiupload.com/')]"
  5671. );
  5672. }
  5673. if (GM_getValue("Check_hostuje_dot_net_links", false))
  5674. {
  5675. addFileHost(
  5676. "hostuje\\.net\/file\\.php\\?id=\\w+",
  5677. 'file\\.php">|Pobierz Plik',
  5678. 'Podany plik nie zosta',
  5679. 'optional--',
  5680. "//a[contains(@href,'hostuje.net/file')]"
  5681. );
  5682. }
  5683. if (GM_getValue("Check_gettyfile_dot_ru_links", false))
  5684. {
  5685. addFileHost(
  5686. "gettyfile\\.ru\/\\d+",
  5687. 'download\\.gif border',
  5688. '<center><font size="3">',
  5689. 'optional--',
  5690. "//a[contains(@href,'gettyfile.ru/')]"
  5691. );
  5692. }
  5693. if (GM_getValue("Check_tufiles_dot_ru_links", false))
  5694. {
  5695. addFileHost(
  5696. "(?:tufiles|turbob1t|failoobmenik|filesmail|firebit|dlbit|files\\.china\\-gsm|3aka4aem|file\\.piratski|mnogofiles|links-free|turbo-bit|turbosfiles)\\.\\w+\/\\w+",
  5697. 'download\\-file">',
  5698. 'col-1">\\s*<h1>',
  5699. 'optional--',
  5700. "//a[contains(@href,'tufiles.ru/') or contains(@href,'turbob1t.ru/') or contains(@href,'filesmail.ru/') or contains(@href,'failoobmenik.ru/')"+
  5701. " or contains(@href,'firebit.in/') or contains(@href,'dlbit.net/') or contains(@href,'files.china-gsm.ru/') or contains(@href,'3aka4aem.ru/')"+
  5702. " or contains(@href,'file.piratski.ru/') or contains(@href,'mnogofiles.com/') or contains(@href,'links-free.ru/')"+
  5703. " or contains(@href,'turbo-bit.ru/') or contains(@href,'turbosfiles.ru/')]"
  5704. );
  5705. }
  5706. if (GM_getValue("Check_data_dot_hu_links", false))
  5707. {
  5708. addFileHost(
  5709. "data\\.hu\/get\/\\d+\/",
  5710. 'download_box_button',
  5711. 'missing\\.php',
  5712. 'optional--',
  5713. "//a[contains(@href,'data.hu/get')]",
  5714. true
  5715. );
  5716. }
  5717. if (GM_getValue("Check_filesmelt_dot_com_links", false))
  5718. {
  5719. addFileHost(
  5720. "filesmelt\\.com\/dl\/\\w+",
  5721. '(Your download is ready|Download File)',
  5722. 'Sorry, but your',
  5723. 'optional--',
  5724. "//a[contains(@href,'filesmelt.com/dl')]"
  5725. );
  5726. }
  5727. if (GM_getValue("Check_indowebster_dot_com_links", false))
  5728. {
  5729. addFileHost(
  5730. "(?:files\\.)?indowebster\\.com\/download\/\\w+\/",
  5731. 'premiumBtn"',
  5732. 'errorMessage"',
  5733. 'optional--',
  5734. "//a[contains(@href,'indowebster.com/download')]"
  5735. );
  5736. }
  5737. if (GM_getValue("Check_superload_dot_cz_links", false))
  5738. {
  5739. addFileHost(
  5740. "superload\\.cz\/dl\/\\w+",
  5741. 'icon-download">',
  5742. 'soubor nebyl nalezen',
  5743. 'optional--',
  5744. "//a[contains(@href,'superload.cz/dl')]"
  5745. );
  5746. }
  5747. if (GM_getValue("Check_hulkfile_dot_eu_links", false))
  5748. {
  5749. addFileHost(
  5750. "(?:w\\.hulkfile\\.com|hulkfile\\.eu)\/\\w+",
  5751. 'op" value="download',
  5752. 'class="err">|width:500px;text-align:left;">',
  5753. 'optional--',
  5754. "//a[contains(@href,'hulkfile.')]"
  5755. );
  5756. }
  5757. if (GM_getValue("Check_easybytez_dot_com_links", false))
  5758. {
  5759. addFileHost(
  5760. "easybytez\\.com\/\\w+",
  5761. 'op" value="download',
  5762. 'stop_error\\.gif',
  5763. 'optional--',
  5764. "//a[contains(@href,'easybytez.com/')]"
  5765. );
  5766. }
  5767. if (GM_getValue("Check_filestore_dot_com_dot_ua_links", false))
  5768. {
  5769. addFileHost(
  5770. "filestore\\.com\\.ua\/\\?d=\\w+",
  5771. 'tdrow1>',
  5772. 'class=warn',
  5773. 'optional--',
  5774. "//a[contains(@href,'filestore.com.ua/?d=')]"
  5775. );
  5776. }
  5777. if (GM_getValue("Check_netkups_dot_com_links", false))
  5778. {
  5779. addFileHost(
  5780. "netkups\\.com\/\\?d=\\w+",
  5781. 'submit">Continue',
  5782. 'page">File not found|deleted due to inactivity',
  5783. 'optional--',
  5784. "//a[contains(@href,'netkups.com/?d=')]"
  5785. );
  5786. }
  5787. if (GM_getValue("Check_openfile_dot_ru_links", false))
  5788. {
  5789. addFileHost(
  5790. "openfile\\.ru\/(?:video\/|)\\d+",
  5791. 'videobox_left">',
  5792. 'blog_title">|not found on this server',
  5793. 'optional--',
  5794. "//a[contains(@href,'openfile.ru/')]"
  5795. );
  5796. }
  5797. if (GM_getValue("Check_extmatrix_dot_com_links", false))
  5798. {
  5799. addFileHost(
  5800. "extmatrix\\.com\/files\/\\w+",
  5801. 'div class="success"',
  5802. 'div class="error"',
  5803. 'optional--',
  5804. "//a[contains(@href,'extmatrix.com/files')]"
  5805. );
  5806. }
  5807. if (GM_getValue("Check_sendfiles_dot_nl_links", false))
  5808. {
  5809. addFileHost(
  5810. "sendfiles\\.nl\/download.aspx\\?ID=\\w+",
  5811. 'content_lnkDownload',
  5812. 'error\\.aspx\\?',
  5813. 'optional--',
  5814. "//a[contains(@href,'sendfiles.nl/download.aspx')]"
  5815. );
  5816. }
  5817. /* if (GM_getValue("Check_sockshare_dot_com_links", false))
  5818. {
  5819. addFileHost(
  5820. "sockshare\\.com\/file\/\\w+",
  5821. 'choose_speed">',
  5822. 'message t_0\'>',
  5823. 'optional--',
  5824. "//a[contains(@href,'sockshare.com/file')]"
  5825. );
  5826. } */
  5827. if (GM_getValue("Check_yourfilestore_dot_com_links", false))
  5828. {
  5829. addFileHost(
  5830. "yourfilestore\\.com\/download\/\\d+\/",
  5831. 'download_data">',
  5832. 'may have been deleted|<h1>Sorry!<\/h1>',
  5833. 'optional--',
  5834. "//a[contains(@href,'yourfilestore.com/download')]"
  5835. );
  5836. }
  5837. if (GM_getValue("Check_nekaka_dot_com_links", false))
  5838. {
  5839. addFileHost(
  5840. "nekaka\\.com\/d\/[\\w-]+",
  5841. 'downloadForm">',
  5842. 'invalid file link',
  5843. 'optional--',
  5844. "//a[contains(@href,'nekaka.com/d')]"
  5845. );
  5846. }
  5847. if (GM_getValue("Check_filebig_dot_net_links", false))
  5848. {
  5849. addFileHost(
  5850. "filebig\\.net\/files\/\\w+",
  5851. 'downloadFile">',
  5852. '<p>File not found<\/p>',
  5853. 'optional--',
  5854. "//a[contains(@href,'filebig.net/files')]"
  5855. );
  5856. }
  5857. if (GM_getValue("Check_gamefront_dot_com_links", false))
  5858. {
  5859. addFileHost(
  5860. "files\\.filefront\\.com\/\/;\\d+;;",
  5861. 'downloadLink">',
  5862. 'File not found, you',
  5863. 'optional--',
  5864. "//a[contains(@href,'files.filefront.com')]"
  5865. );
  5866.  
  5867. addFileHost(
  5868. "gamefront\\.com\/files\/\\d+",
  5869. 'downloadLink">',
  5870. 'File not found, you',
  5871. 'optional--',
  5872. "//a[contains(@href,'gamefront.com/files')]"
  5873. );
  5874. }
  5875. if (GM_getValue("Check_hyperfileshare_dot_com_links", false))
  5876. {
  5877. addFileHost(
  5878. "(?:download\\.|)hyperfileshare\\.com\/(?:download\\.php\\?code=|d\/)\\w+",
  5879. 'dnlLnk"',
  5880. 'already been deleted',
  5881. 'optional--',
  5882. "//a[contains(@href,'hyperfileshare.com/download') or contains(@href,'hyperfileshare.com/d')]"
  5883. );
  5884. }
  5885. if (GM_getValue("Check_hellupload_dot_com_links", false))
  5886. {
  5887. addFileHost(
  5888. "hellupload\\.com\/\\w+",
  5889. '<h3>Download File<br',
  5890. 'id="podstrona">|AVOID_IE_BUG',
  5891. 'optional--',
  5892. "//a[contains(@href,'hellupload.com/')]"
  5893. );
  5894. }
  5895. if (GM_getValue("Check_free_dash_uploading_dot_com_links", false))
  5896. {
  5897. addFileHost(
  5898. "free\\-uploading\\.com\/\\w+",
  5899. 'op" value="download',
  5900. 'class="err">|width:500px;text-align:left;">',
  5901. 'optional--',
  5902. "//a[contains(@href,'free-uploading.com/')]"
  5903. );
  5904. }
  5905. if (GM_getValue("Check_fileape_dot_com_links", false))
  5906. {
  5907. addFileHost(
  5908. "fileape\\.com\/download\\-",
  5909. 'button_dl\\.png',
  5910. 'does not exist\\.',
  5911. 'optional--',
  5912. "//a[contains(@href,'fileape.com/')]"
  5913. );
  5914. }
  5915. if (GM_getValue("Check_uppit_dot_com_links", false))
  5916. {
  5917. addFileHost(
  5918. "(?:uppit\\.com|up\\.ht)\/\\w+",
  5919. 'op" value="download',
  5920. 'class="err">|style="width:500px;text-align:left;"|fish-404\\.png"',
  5921. 'optional--',
  5922. "//a[contains(@href,'up.ht/') or contains(@href,'uppit.com/')]",
  5923. true
  5924. );
  5925. }
  5926. if (GM_getValue("Check_nosupload_dot_com_links", false))
  5927. {
  5928. addFileHost(
  5929. "nosupload\\.com\/(?:\\?d=)?\\w+",
  5930. 'op" value="download',
  5931. '>File Not Found<',
  5932. 'optional--',
  5933. "//a[contains(@href,'nosupload.com')]",
  5934. true
  5935. );
  5936. }
  5937. if (GM_getValue("Check_filesin_dot_com_links", false))
  5938. {
  5939. addFileHost(
  5940. "filesin\\.com\/\\w+\/download\\.html",
  5941. 'download_area">',
  5942. 'error_note">',
  5943. 'optional--',
  5944. "//a[contains(@href,'filesin.com/')]",
  5945. true
  5946. );
  5947. }
  5948. if (GM_getValue("Check_nowdownload_dot_eu_links", false))
  5949. {
  5950. addFileHost(
  5951. "nowdownload\\.eu\/dl\/\\w+",
  5952. 'alert-success"',
  5953. 'This file does not exist!',
  5954. 'The file is being transfered',
  5955. "//a[contains(@href,'nowdownload.eu/dl')]"
  5956. );
  5957. }
  5958. if (GM_getValue("Check_axifile_dot_com_links", false))
  5959. {
  5960. addFileHost(
  5961. "axifile\\.com(?:\/\w(2))?\/\\??\\w+",
  5962. 'Dbutton_big"',
  5963. 'download\\-error\\.php',
  5964. 'optional--',
  5965. "//a[contains(@href,'axifile.com/')]"
  5966. );
  5967. }
  5968. if (GM_getValue("Check_hulkshare_dot_com_links", false))
  5969. {
  5970. addFileHost(
  5971. "hulkshare\.com\/\\w+",
  5972. 'download\.sam\.png|This is a private file|id="filename',
  5973. 'File does not exist|fingerprint protected copyright',
  5974. 'optional--',
  5975. "//a[contains(@href,'hulkshare.com')]"
  5976. );
  5977. }
  5978. if (GM_getValue("Check_turbobit_dot_net_links", false)) //folders
  5979. {
  5980. addFileHost(
  5981. "turbobit\\.(?:net|pl)\/download\/folder\/\\d+",
  5982. 'col-1">\\s*<s',
  5983. 'col-1">\\s*<h',
  5984. 'optional--',
  5985. "//a[contains(@href,'turbobit.') and contains(@href,'download/folder')]"
  5986. );
  5987. }
  5988. if (GM_getValue("Check_hitfile_dot_net_links", false)) //folders
  5989. {
  5990. addFileHost(
  5991. "hitfile\\.net\/download\/folder\/\\d+",
  5992. 'content">\\s*<s',
  5993. 'content">\\s*<h',
  5994. 'optional--',
  5995. "//a[contains(@href,'hitfile.net/download/folder')]"
  5996. );
  5997. }
  5998. if (GM_getValue("Check_netload_dot_in_links", false)) //folders
  5999. {
  6000. addFileHost(
  6001. "netload\\.in\/folder\\.php\\?folder_id=\\w+",
  6002. 'images\/online\\.gif',
  6003. 'InPage_Error"',
  6004. 'optional--',
  6005. "//a[contains(@href,'netload.in/folder.php')]"
  6006. );
  6007. }
  6008. if (GM_getValue("Check_movshare_dot_net_links", false))
  6009. {
  6010. addFileHost(
  6011. "movshare\\.net\\/video\\/\\w+",
  6012. 'optional--"',
  6013. 'no longer exists',
  6014. 'optional--',
  6015. "//a[contains(@href,'movshare.net/video')]"
  6016. );
  6017. }
  6018. if (GM_getValue("Check_plunder_dot_com_links", false))
  6019. {
  6020. addFileHost(
  6021. "plunder\.com\/\\w+",
  6022. 'x\/download\\.gif',
  6023. '404 - File or directory not found.',
  6024. 'optional--',
  6025. "//a[contains(@href,'plunder.com')]"
  6026. );
  6027. }
  6028. if (GM_getValue("Check_mafiastorage_dot_com_links", false))
  6029. {
  6030. addFileHost(
  6031. "mafiastorage\\.com\/\\w+",
  6032. 'op" value="download',
  6033. 'class="err">|style="width:500px;text-align:left;"',
  6034. 'optional--',
  6035. "//a[contains(@href,'mafiastorage.com/')]"
  6036. );
  6037. }
  6038. if (GM_getValue("Check_uploadspace_dot_pl_links", false))
  6039. {
  6040. addFileHost(
  6041. "uploadspace\.pl\/plik\\w+",
  6042. 'Downloading .+? \\|',
  6043. 'Downloading a file',
  6044. 'optional--',
  6045. "//a[contains(@href,'uploadspace.pl/plik')]"
  6046. );
  6047. }
  6048. if (GM_getValue("Check_uploadingit_dot_com_links", false))
  6049. {
  6050. addFileHost(
  6051. "uploadingit\\.com\/file\/\\w+",
  6052. 'downloadTitle">',
  6053. 'deleteContent">',
  6054. 'optional--',
  6055. "//a[contains(@href,'uploadingit.com/file')]"
  6056. );
  6057. }
  6058. if (GM_getValue("Check_rghost_dot_net_links", false))
  6059. {
  6060. addFileHost(
  6061. "rghost\.(?:net|ru)\/(?:|private\/)\\d+",
  6062. 'download_link|btn large download"',
  6063. 'file is restricted|File is deleted|503 Service Unavailable',
  6064. 'File was deleted',
  6065. "//a[contains(@href,'rghost.')]"
  6066. );
  6067. }
  6068. if (GM_getValue("Check_xdisk_dot_cz_links", false))
  6069. {
  6070. addFileHost(
  6071. "xdisk\\.cz\/(?:..\/)?download\\.php\\?id=\\w+",
  6072. '">Staženo:\\s*<\/span>',
  6073. 'Soubor, který hledáte nenalezen',
  6074. 'optional--',
  6075. "//a[contains(@href,'xdisk.cz/')]"
  6076. );
  6077. }
  6078. if (GM_getValue("Check_expressleech_dot_com_links", false))
  6079. {
  6080. addFileHost(
  6081. "expressleech\.com\/\\w+",
  6082. 'src="/img/Download.gif"|var _gaq =',
  6083. 'var rr =|403 Forbidden',
  6084. 'optional--',
  6085. "//a[contains(@href,'expressleech.com')]");
  6086. }
  6087. if (GM_getValue("Check_2downloadz_dot_com_links", false))
  6088. {
  6089. addFileHost(
  6090. "2downloadz\.com\/\\w+",
  6091. 'color="#848484|src="images/Download.png"|color:#238DCA',
  6092. 'color="#006DCC|File error',
  6093. 'optional--',
  6094. "//a[contains(@href,'2downloadz.com')]");
  6095. }
  6096. if (GM_getValue("Check_mightyupload_dot_com_links", false))
  6097. {
  6098. addFileHost(
  6099. "mightyupload\.com\/\\w+",
  6100. 'background:#ccc;text-align|CONTENT="Download File"',
  6101. 'style="background:#eee|var rr =|File Not Found',
  6102. 'error-code">1010',
  6103. "//a[contains(@href,'mightyupload.com')]");
  6104. }
  6105. if (GM_getValue("Check_k2s_dot_cc_links", false))
  6106. {
  6107. addFileHost(
  6108. "k2s\.cc\/file\/\\w+",
  6109. 'Click here for slow download with|class="btn" id="yw0"|onclick="download',
  6110. 'Error 404|class="errorSummary">|this file is blocked or deleted|>404 Not Found<|To avoid damaged files|This file is no longer available',
  6111. 'please try later',
  6112. //'optional--',
  6113. "//a[contains(@href,'k2s.cc')]");
  6114. }
  6115. if (GM_getValue("Check_keep2share_dot_cc_links", false))
  6116. {
  6117. addFileHost(
  6118. "keep2share\.cc\/file\/\\w+",
  6119. 'Click here for slow download with|class="btn" id="yw0"|onclick="download',
  6120. 'Error 404|class="errorSummary">|this file is blocked or deleted|>404 Not Found<|To avoid damaged files|This file is no longer available',
  6121. 'please try later',
  6122. //'premium only',
  6123. "//a[contains(@href,'keep2share.cc')]");
  6124. }
  6125. if (GM_getValue("Check_keep2s_dot_cc_links", false))
  6126. {
  6127. addFileHost(
  6128. "keep2s\.cc\/file\/\\w+",
  6129. 'Click here for slow download with|class="btn" id="yw0"|onclick="download',
  6130. 'Error 404|class="errorSummary">|this file is blocked or deleted|>404 Not Found<|To avoid damaged files|This file is no longer available',
  6131. 'please try later',
  6132. //'optional--',
  6133. "//a[contains(@href,'keep2s.cc')]");
  6134. }
  6135. if (GM_getValue("Check_keep2share_dot_com_links", false))
  6136. {
  6137. addFileHost(
  6138. "keep2share\.com\/file\/\\w+",
  6139. 'Click here for slow download with|class="btn" id="yw0"|onclick="download',
  6140. 'Error 404|class="errorSummary">|this file is blocked or deleted|>404 Not Found<|To avoid damaged files|This file is no longer available',
  6141. 'please try later',
  6142. //'optional--',
  6143. "//a[contains(@href,'keep2share.com')]");
  6144. }
  6145. if (GM_getValue("Check_anysend_dot_com_links", false))
  6146. {
  6147. addFileHost(
  6148. "anysend\.com\/\\w+",
  6149. 'var openCalled=false;|content="noindex"',
  6150. '_trackPageview',
  6151. 'optional--',
  6152. "//a[contains(@href,'anysend.com')]");
  6153. }
  6154. if (GM_getValue("Check_datafile_dot_com_links", false))
  6155. {
  6156. addFileHost(
  6157. "datafile\.com\/\\w+",
  6158. 'var captchaPanel',
  6159. 'ErrorCode|ErrorCode 0: Invalid Link|btn-orange" href="#"', //class="error-msg"
  6160. 'You are downloading another file at this moment|You exceeded your free|Site Maintenance',
  6161. //'optional--',
  6162. "//a[contains(@href,'datafile.com')]",
  6163. true);
  6164. }
  6165. if (GM_getValue("Check_upstore_dot_net_links", false))
  6166. {
  6167. addFileHost(
  6168. "upstore\.net\/\\w+",
  6169. 'style="margin-top: 20px">|style="text-align:center; margin: 20px 0 100px;">',
  6170. 'File not found|onload="redirect|class="error">',
  6171. 'optional--',
  6172. "//a[contains(@href,'upstore.net')]");
  6173. }
  6174. if (GM_getValue("Check_upsto_dot_re_links", false))
  6175. {
  6176. addFileHost(
  6177. "upsto\.re\/\\w+",
  6178. 'style="margin-top: 20px">|style="text-align:center; margin: 20px 0 100px;">',
  6179. 'File not found|onload="redirect|class="error">',
  6180. 'optional--',
  6181. "//a[contains(@href,'upsto.re')]");
  6182. }
  6183. if (GM_getValue("Check_speedy_dot_sh_links", false))
  6184. {
  6185. addFileHost(
  6186. "speedy\.sh\/\\w+",
  6187. 'bgcolor=#eeeeee|class="addthis',
  6188. 'File not found|downloadfilenamenotfound>',
  6189. 'optional--',
  6190. "//a[contains(@href,'speedy.sh')]");
  6191. }
  6192. if (GM_getValue("Check_sanshare_dot_com_links", false))
  6193. {
  6194. addFileHost(
  6195. "sanshare\.com\/\\w+",
  6196. 'SANSHARE_TOPBANNER|offset-1"><h3><b>Download File',
  6197. 'offset-1"><b>File Not Found<|width:500px;text-align',
  6198. 'optional--',
  6199. "//a[contains(@href,'sanshare.com')]");
  6200. }
  6201. if (GM_getValue("Check_kingfiles_dot_net_links", false))
  6202. {
  6203. addFileHost(
  6204. "kingfiles\.net\/\\w+",
  6205. 'img/spriteBanner.png|If you are the owner of this file',
  6206. 'var rr =|"description" CONTENT="Download File ">|<div style="width:500px;text-align:left;">|The file was removed by administrator',
  6207. 'optional--',
  6208. "//a[contains(@href,'kingfiles.net')]");
  6209. }
  6210. if (GM_getValue("Check_uploadhero_dot_co_links", false))
  6211. {
  6212. addFileHost(
  6213. "uploadhero\\.co\/dl\/\\w+",
  6214. 'class="nom_de_fichier"|Unlimited downloads|Estimated download time|Lien de téléchargement"',
  6215. 'not available on our server|pas disponible sur nos serveurs|Le lien du fichier est incorrect',
  6216. 'optional--',
  6217. "//a[contains(@href,'uploadhero.co/dl')]"
  6218. );
  6219. }
  6220. if (GM_getValue("Check_secureupload_dot_eu_links", false))
  6221. {
  6222. addFileHost(
  6223. "secureupload\\.eu\/\\w+",
  6224. 'Downloading',
  6225. 'cannot be found|File Not Found|could not be found',
  6226. 'optional--',
  6227. "//a[contains(@href,'secureupload.eu')]"
  6228. );
  6229. }
  6230. if (GM_getValue("Check_ge_dot_tt_links", false))
  6231. {
  6232. addFileHost(
  6233. "ge\.tt\/\\w+",
  6234. 'downloads pic',
  6235. 'is NOT the same as',
  6236. 'optional--',
  6237. "//a[contains(@href,'ge.tt')]");
  6238. }
  6239. if (GM_getValue("Check_filefactory_dot_com_links", false))
  6240. {
  6241. addFileHost(
  6242. "filefactory\.com\/\\w+",
  6243. 'div id="file_holder"|download.css',
  6244. 'File Removed|Invalid Download Link|File Unavailable|Server Failed|Datei entfernt|This file has been removed|Invalid Download Link',
  6245. 'Server Maintenance|temporarily overloaded',
  6246. //'optional--',
  6247. "//a[contains(@href,'filefactory.com')]");
  6248. }
  6249. if (GM_getValue("Check_filesflash_dot_net_links", false))
  6250. {
  6251. addFileHost(
  6252. "filesflash\.net\/\\w+",
  6253. 'align:right">Filename:',
  6254. 'class="msg">',
  6255. 'optional--',
  6256. "//a[contains(@href,'filesflash.net')]");
  6257. }
  6258. if (GM_getValue("Check_rapidgator_dot_net_links", false)) //folders
  6259. {
  6260. addFileHost(
  6261. "rapidgator\\.net\/folder\/\\w+",
  6262. 'href="/folder/',
  6263. 'class="empty|Folder not found|Carpeta no encontrada|Dossier non trouvé|Папка не найдена',
  6264. 'optional--',
  6265. "//a[contains(@href,'rapidgator.net/folder')]",
  6266. true
  6267. );
  6268. }
  6269. if (GM_getValue("Check_salefiles_dot_com_links", false))
  6270. {
  6271. addFileHost(
  6272. "salefiles\.com\/\\w+",
  6273. '<Title>Download|CONTENT="Download',
  6274. 'font:15px Arial|background:#eee;',
  6275. 'optional--',
  6276. "//a[contains(@href,'salefiles.com')]");
  6277. }
  6278. if (GM_getValue("Check_megairon_dot_net_links", false))
  6279. {
  6280. addFileHost(
  6281. "megairon\.net\/\\w+",
  6282. 'border: 5px #ffeb90 solid;',
  6283. 'CONTENT="Download File ">|var rr =',
  6284. 'optional--',
  6285. "//a[contains(@href,'megairon.net')]");
  6286. }
  6287. if (GM_getValue("Check_datoid_dot_cz_links", false))
  6288. {
  6289. addFileHost(
  6290. "datoid\.cz\/\\w+",
  6291. 'btn-download|class="icon-download-large"',
  6292. 'Stránka nenalezena|error-404|Soubor byl zablokován',
  6293. 'optional--',
  6294. "//a[contains(@href,'datoid.cz')]");
  6295. }
  6296. if (GM_getValue("Check_stiahni_dot_si_links", false))
  6297. {
  6298. addFileHost(
  6299. "stiahni\.si\/\\w+",
  6300. 'report_icon.png"|slow-download-button',
  6301. 'none.png|deleted|<h2>Error 500</h2>',
  6302. 'optional--',
  6303. "//a[contains(@href,'stiahni.si')]");
  6304. }
  6305. if (GM_getValue("Check_cloudstor_dot_es_links", false))
  6306. {
  6307. addFileHost(
  6308. "cloudstor\.es\/\\w+",
  6309. '"btn_download"',
  6310. '404: Page Not Found',
  6311. 'optional--',
  6312. "//a[contains(@href,'cloudstor.es')]");
  6313. }
  6314. if (GM_getValue("Check_streamfile_dot_com_links", false))
  6315. {
  6316. addFileHost(
  6317. "streamfile\.com\/\\w+",
  6318. 'class="btn',
  6319. 'class="green-btn',
  6320. 'optional--',
  6321. "//a[contains(@href,'streamfile.com')]");
  6322. }
  6323. if (GM_getValue("Check_eyesfile_dot_ca_links", false))
  6324. {
  6325. addFileHost(
  6326. "eyesfile\.ca\/\\w+",
  6327. 'value="Get Link',
  6328. 'var rr =',
  6329. 'optional--',
  6330. "//a[contains(@href,'eyesfile.ca')]");
  6331. }
  6332. if (GM_getValue("Check_filemoney_dot_com_links", false))
  6333. {
  6334. addFileHost(
  6335. "filemoney\.com\/\\w+",
  6336. 'og:title',
  6337. '404 Not Found|<Title>FileMoney|File Not Found',
  6338. 'error-code">1010',
  6339. "//a[contains(@href,'filemoney.com')]");
  6340. }
  6341. if (GM_getValue("Check_uploadboy_dot_com_links", false))
  6342. {
  6343. addFileHost(
  6344. "uploadboy\.com\/\\w+",
  6345. 'width="740">|method_free',
  6346. 'var rr =|background:#ffffff|not be found|file was removed',
  6347. 'optional--',
  6348. "//a[contains(@href,'uploadboy.com')]");
  6349. }
  6350. if (GM_getValue("Check_speedshare_dot_eu_links", false))
  6351. {
  6352. addFileHost(
  6353. "speedshare\.eu\/\\w+",
  6354. 'favicon.png|color:#3d87c0|cross.png"',
  6355. 'var rr =|File Not Found|style="background:#eee',
  6356. 'optional--',
  6357. "//a[contains(@href,'speedshare.eu')]");
  6358. }
  6359. if (GM_getValue("Check_unlimitzone_dot_com_links", false))
  6360. {
  6361. addFileHost(
  6362. "unlimitzone\.com\/\\w+",
  6363. 'name="method_free',
  6364. 'var rr =|File Not Found|removed by administrator|class="err">',
  6365. 'optional--',
  6366. "//a[contains(@href,'unlimitzone.com')]");
  6367. }
  6368. if (GM_getValue("Check_rioupload_dot_com_links", false))
  6369. {
  6370. addFileHost(
  6371. "rioupload\.com\/\\w+",
  6372. 'sell.jpg',
  6373. 'var rr =',
  6374. 'optional--',
  6375. "//a[contains(@href,'rioupload.com')]");
  6376. }
  6377. if (GM_getValue("Check_rg_dot_to_links", false))
  6378. {
  6379. addFileHost(
  6380. "rg\.to\/\\w+",
  6381. '/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',
  6382. 'Error 404|File not found|Select your plan',
  6383. 'optional--',
  6384. //'optional--',
  6385. "//a[contains(@href,'rg.to')]");
  6386. }
  6387. if (GM_getValue("Check_jumbofiles_dot_org_links", false))
  6388. {
  6389. addFileHost(
  6390. "jumbofiles\.org\/\\w+",
  6391. 'H71C5.png|class="downloadtitle">',
  6392. 'var swfu|ViewSourceBIN.png',
  6393. 'optional--',
  6394. "//a[contains(@href,'jumbofiles.org')]");
  6395. }
  6396. if (GM_getValue("Check_fshare_dot_vn_links", false))
  6397. {
  6398. addFileHost(
  6399. "fshare\\.vn\/file\/\\w+",
  6400. 'action="#download"|left; width: 330px;">|class="bt_down"',
  6401. 'không tồn tại|class="color_red m_t_50"',
  6402. 'optional--',
  6403. "//a[contains(@href,'fshare.vn/file')]",
  6404. true
  6405. );
  6406. }
  6407. if (GM_getValue("Check_spaceforfiles_dot_com_links", false))
  6408. {
  6409. addFileHost(
  6410. "spaceforfiles\.com\/\\w+",
  6411. 'btn_slowspeed_b.jpg|value="download1|class="btn_blue',
  6412. 'var rr =|AVOID_IE_BUG',
  6413. 'optional--',
  6414. "//a[contains(@href,'spaceforfiles.com')]");
  6415. }
  6416. if (GM_getValue("Check_google_dot_com_links", false))
  6417. {
  6418. addFileHost(
  6419. "google\\.com\/file\/\\w+",
  6420. 'content="!">|color:#2d2d2d',
  6421. '12pt; font-weight:|class="errorMessage"|F0F6FF',
  6422. 'optional--',
  6423. "//a[contains(@href,'google.com/file')]",
  6424. true
  6425. );
  6426. }
  6427. if (GM_getValue("Check_google_dot_com_links", false))
  6428. {
  6429. addFileHost(
  6430. "docs.google.com\/\\w+",
  6431. 'content="!">|color:#2d2d2d',
  6432. '12pt; font-weight:|class="errorMessage"|F0F6FF|Error 404',
  6433. 'optional--',
  6434. "//a[contains(@href,'docs.google.com')]",
  6435. true
  6436. );
  6437. }
  6438. if (GM_getValue("Check_google_dot_com_links", false))
  6439. {
  6440. addFileHost(
  6441. "drive.google.com\/\\w+",
  6442. 'content="!">|color:#2d2d2d|id="uc-download-link',
  6443. '12pt; font-weight:|class="errorMessage"|F0F6FF|Error 404',
  6444. 'optional--',
  6445. "//a[contains(@href,'drive.google.com')]",
  6446. true
  6447. );
  6448. }
  6449. if (GM_getValue("Check_up_dot_media1fire_dot_com_links", false))
  6450. {
  6451. addFileHost(
  6452. "up.media1fire\.com\/\\w+",
  6453. 'class="addthis_|value="download',
  6454. 'var rr =|AVOID_IE_BUG|<div style="width:500px;text-align:left;">',
  6455. 'optional--',
  6456. "//a[contains(@href,'up.media1fire.com')]");
  6457. }
  6458. if (GM_getValue("Check_depfile_dot_com_links", false))
  6459. {
  6460. addFileHost(
  6461. "depfile\.com\/\\w+",
  6462. 'logo_0.png|downloads.gif"|verifycode',
  6463. 'border-color: #5D729B;|bgcolor="#778AAF"|deleted by the owner|Invalid Link',
  6464. 'optional--',
  6465. "//a[contains(@href,'depfile.com')]");
  6466. }
  6467. if (GM_getValue("Check_go4up_dot_com_links", false))
  6468. {
  6469. addFileHost(
  6470. "go4up\.com\/\\w+",
  6471. 'style="width: 100%;">|value="Access|download_line',
  6472. '<title>GO4UP|dmca',
  6473. 'optional--',
  6474. "//a[contains(@href,'go4up.com')]");
  6475. }
  6476. if (GM_getValue("Check_redbunker_dot_net_links", false))
  6477. {
  6478. addFileHost(
  6479. "redbunker\.net\/\\w+",
  6480. 'dload.png|rowspan="3">|yep.gif',
  6481. 'CONTENT="RedBunker|#D3D3D3;|color:#d33|AVOID_IE_BUG',
  6482. 'optional--',
  6483. "//a[contains(@href,'redbunker.net')]");
  6484. }
  6485. if (GM_getValue("Check_divxpress_dot_com_links", false))
  6486. {
  6487. addFileHost(
  6488. "divxpress\.com\/\\w+",
  6489. 'btn_download|logo.png"',
  6490. 'AVOID_IE_BUG|var rr =',
  6491. 'optional--',
  6492. "//a[contains(@href,'divxpress.com')]");
  6493. }
  6494. if (GM_getValue("Check_anafile_dot_com_links", false))
  6495. {
  6496. addFileHost(
  6497. "anafile\.com\/\\w+",
  6498. 'width="881" valign="top|color="#800080"',
  6499. 'style="width:500px;text-align:left;">|file was deleted|AVOID_IE_BUG',
  6500. 'optional--',
  6501. "//a[contains(@href,'anafile.com')]");
  6502. }
  6503. if (GM_getValue("Check_uploadable_dot_ch_links", false))
  6504. {
  6505. addFileHost(
  6506. "uploadable\\.ch\/file\/\\w+",
  6507. 'captcha.js"|payment.js"|class="btn_download"',
  6508. '<div class="icon_err">|<div class="errorBox">|"error_arrow">',
  6509. 'optional--',
  6510. "//a[contains(@href,'uploadable.ch/file')]",
  6511. true
  6512. );
  6513. }
  6514. if (GM_getValue("Check_arabloads_dot_com_links", false))
  6515. {
  6516. addFileHost(
  6517. "arabloads\.com\/\\w+",
  6518. 'name="method_free"|name="method_premium"',
  6519. 'background:#eee;font:15px Arial;">|AVOID_IE_BUG|Verdana;padding:3px;">Error',
  6520. 'optional--',
  6521. "//a[contains(@href,'arabloads.com')]");
  6522. }
  6523. if (GM_getValue("Check_sharerepo_dot_com_links", false))
  6524. {
  6525. addFileHost(
  6526. "sharerepo\.com\/\\w+",
  6527. 'name="method_free"',
  6528. 'var public_on=|The file you were looking for could not be found',
  6529. 'optional--',
  6530. "//a[contains(@href,'sharerepo.com')]");
  6531. }
  6532. if (GM_getValue("Check_sfshare_dot_se_links", false))
  6533. {
  6534. addFileHost(
  6535. "sfshare\.se\/\\w+",
  6536. 'id="btn_download"|class="btn btn-primary txt-bold" value="',
  6537. 'AVOID_IE_BUG|var rr =|style="width:500px;text-align:left;">|Reason for deletion|The file was removed',
  6538. 'optional--',
  6539. "//a[contains(@href,'sfshare.se')]");
  6540. }
  6541. if (GM_getValue("Check_files_dot_fm_links", false))
  6542. {
  6543. addFileHost(
  6544. "files\.fm\/\\w+",
  6545. 'dl.png"|background-color: transparent',
  6546. 'margin: 40px 40px|background: none;',
  6547. 'optional--',
  6548. "//a[contains(@href,'files.fm')]");
  6549. }
  6550. if (GM_getValue("Check_koofile_dot_com_links", false))
  6551. {
  6552. addFileHost(
  6553. "koofile\.com\/\\w+",
  6554. 'value="download1">|name="method_free"',
  6555. 'class="overview-content c_text-box ">|style="padding-top:3px;">|class="rt1 c">',
  6556. 'optional--',
  6557. "//a[contains(@href,'koofile.com')]");
  6558. }
  6559. if (GM_getValue("Check_vidxden_dot_com_links", false))
  6560. {
  6561. addFileHost(
  6562. "vidxden\\.com\/\\w+",
  6563. 'Continue to Video"',
  6564. 'No such file',
  6565. 'optional--',
  6566. "//a[contains(@href,'vidxden.com')]"
  6567. );
  6568. }
  6569. if (GM_getValue("Check_muchshare_dot_net_links", false))
  6570. {
  6571. addFileHost(
  6572. "muchshare\\.net\/\\w+",
  6573. 'id="btn_download"',
  6574. 'File Not Found|width: 500px; text-align: left;',
  6575. 'optional--',
  6576. "//a[contains(@href,'muchshare.net')]"
  6577. );
  6578. }
  6579. if (GM_getValue("Check_daten_dash_hoster_dot_de_links", false))
  6580. {
  6581. addFileHost(
  6582. "(?:daten-hoster\\.de\/file\/\\w+|filehosting\\.org\/file\/\\w+|xtraupload\\.de\/\\?d=\\w+)",
  6583. 'Details zur Datei|Details page',
  6584. 'Jetzt hochladen|upload now',
  6585. 'optional--',
  6586. "//a[contains(@href,'daten-hoster.de/file') or contains(@href,'filehosting.org/file') or contains(@href,'xtraupload.de')]"
  6587. );
  6588. }
  6589. if (GM_getValue("Check_upload_dash_il_dot_net_links", false))
  6590. {
  6591. addFileHost(
  6592. "(?:upload-il|przeslij)\.net\/(?:en|he|ar|ru|)\/?\\w+",
  6593. 'downloadbtn"',
  6594. 'DL_FileNotFound',
  6595. 'optional--',
  6596. "//a[contains(@href,'upload-il.net') or contains(@href,'przeslij.net')]"
  6597. );
  6598. }
  6599. if (GM_getValue("Check_fileflyer_dot_com_links", false))
  6600. {
  6601. addFileHost(
  6602. "fileflyer\.com\/view\/\\w+",
  6603. '(?:dwl|locked)btn"',
  6604. 'error.gif"|link">Removed|removedlink">',
  6605. 'optional--',
  6606. "//a[contains(@href,'fileflyer.com')]"
  6607. );
  6608. }
  6609. if (GM_getValue("Check_filestore_dot_to_links", false))
  6610. {
  6611. addFileHost(
  6612. "filestore\.to\/\\?d=\\w+",
  6613. '"downloading"',
  6614. 'Datei wurde nicht gefunden',
  6615. 'optional--',
  6616. "//a[contains(@href,'filestore.to')]"
  6617. );
  6618. }
  6619. if (GM_getValue("Check_easy_dash_share_dot_com_links", false))
  6620. {
  6621. addFileHost(
  6622. "(?:w\\d*\.|)(?:crocko|easy-share)\\.com\/.",
  6623. 'fz24">Download|class="pl15">',
  6624. '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',
  6625. 'optional--',
  6626. "//a[contains(@href,'easy-share.com') or contains(@href,'crocko.com')]"
  6627. );
  6628. }
  6629. if (GM_getValue("Check_burnupload_dot_com_links", false))
  6630. {
  6631. addFileHost(
  6632. "burnupload\\.(?:com\/\\?d=|ihiphop\\.com\/download\\.php\\?id=)\\w+",
  6633. 'File size:',
  6634. 'file is not found',
  6635. 'optional--',
  6636. "//a[contains(@href,'burnupload.com') or contains(@href,'burnupload.ihiphop.com')]"
  6637. );
  6638. }
  6639. if (GM_getValue("Check_datei_dot_to_links", false))
  6640. {
  6641. addFileHost(
  6642. "datei\\.to\/\\??\\w+",
  6643. 'icon_downloaden\\.png|>Download starten<',
  6644. 'Datei wurde nicht gefunden|icon_deleted.png',
  6645. 'optional--',
  6646. "//a[contains(@href,'datei.to')]"
  6647. );
  6648. }
  6649. if (GM_getValue("Check_yunfile_dot_com_links", false))
  6650. {
  6651. addFileHost(
  6652. "(?:yunfile|filemarkets)\\.com\/\\w+",
  6653. '<body class="body" id="body">|value="Slow Download"',
  6654. '<body class="body" >',
  6655. 'optional--',
  6656. "//a[contains(@href,'yunfile.com') or contains(@href,'filemarkets.com')]"
  6657. );
  6658. }
  6659. /* if (GM_getValue("Check_putlocker_dot_com_links", false))
  6660. {
  6661. addFileHost(
  6662. "putlocker\\.com\/file\/\\w{16}",
  6663. 'as Free User|<a class="continue"|Continue to file|#feedback_btn|application file_standalone',
  6664. 'Welcome to PutLocker|<div class="sad_face_image">|404:',
  6665. 'undergoing scheduled maintenance',
  6666. "//a[contains(@href,'putlocker.com/file')]"
  6667. );
  6668. } */
  6669. if (GM_getValue("Check_uploadhero_dot_com_links", false))
  6670. {
  6671. addFileHost(
  6672. "uploadhero\\.com\/dl\/\\w+",
  6673. 'content-dl">',
  6674. 'men_file_lost\\.jpg"',
  6675. 'optional--',
  6676. "//a[contains(@href,'uploadhero.com/dl')]"
  6677. );
  6678. }
  6679. if (GM_getValue("Check_unibytes_dot_com_links", false))
  6680. {
  6681. addFileHost(
  6682. "unibytes\\.com\/[\\w\.]+",
  6683. 'trying to download|пытаетесь загрузить файл|tes entrain de tlcharger',
  6684. 'File not found|Файл не найден|',
  6685. 'optional--',
  6686. "//a[contains(@href,'unibytes.com')]"
  6687. );
  6688. }
  6689. if (GM_getValue("Check_hellshare_dot_com_links", false)) //very old type of links
  6690. {
  6691. addFileHost(
  6692. "www\\.hellshare\\.com\/\\d+",
  6693. 'tab\\-details"',
  6694. 'list-purp-2"|not found on this server',
  6695. 'optional--',
  6696. "//a[contains(@href,'www.hellshare.com')]"
  6697. );
  6698. }
  6699. if (GM_getValue("Check_quickshare_dot_cz_links", false)) //folders
  6700. {
  6701. addFileHost(
  6702. "quickshare\\.cz\/slozka-\\d+",
  6703. 'Počet souborů: <strong>[1-9]',
  6704. 'Počet souborů: <strong>0|Chyba! Taková složka neexistuje',
  6705. 'optional--',
  6706. "//a[contains(@href,'quickshare.cz/slozka')]"
  6707. );
  6708. }
  6709. if (GM_getValue("Check_filefactory_dot_com_links", false)) //folders
  6710. {
  6711. addFileHost(
  6712. "filefactory\\.com\/f\/\\w+",
  6713. 'folderFileList">',
  6714. 'table class="items"|Pointer" class="red">',
  6715. 'optional--',
  6716. "//a[contains(@href,'filefactory.com/f/')]"
  6717. );
  6718. }
  6719. if (GM_getValue("Check_netload_dot_in_links", false)) //folders
  6720. {
  6721. addFileHost(
  6722. "netfolder\\.in\/\\w+",
  6723. 'list" value="http',
  6724. 'InPage_Error">|list" value=""',
  6725. 'optional--',
  6726. "//a[contains(@href,'netfolder.in')]"
  6727. );
  6728. }
  6729. if (GM_getValue("Check_load_dot_to_links", false))
  6730. {
  6731. addFileHost(
  6732. '(?:www\\.|\\/)load\\.to\\/(?:\\w{10}\\/.|\\?d=\\w{10})',
  6733. '"download_table_left">Size',
  6734. 'Can\'t find file',
  6735. 'optional--',
  6736. "//a[contains(@href,'/load.to/') or contains(@href,'www.load.to/')]"
  6737. );
  6738. }
  6739. /* if (GM_getValue("Check_freakshare_dot_net_links", false))
  6740. {
  6741. addFileHost(
  6742. "freakshare\\.(?:net|com)\/files\/",
  6743. 'box_heading',
  6744. '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|الملف المطلوب غير موجود',
  6745. 'Your Traffic is used up for today',
  6746. "//a[(contains(@href,'freakshare.net') or contains(@href,'freakshare.com')) and contains(@href,'files')]",
  6747. true
  6748. );
  6749. //folders
  6750. addFileHost(
  6751. "freakshare\\.(?:net|com)\/folder\/",
  6752. 'Files: [1-9]',
  6753. 'Files: 0',
  6754. 'optional--',
  6755. "//a[(contains(@href,'freakshare.net') or contains(@href,'freakshare.com')) and contains(@href,'folder')]",
  6756. true
  6757. );
  6758. } */
  6759. if (GM_getValue("Check_divshare_dot_com_links", false))
  6760. {
  6761. addFileHost(
  6762. "divshare\\.com\/download\/",
  6763. 'download_new\.png',
  6764. 'have been removed',
  6765. 'optional--',
  6766. "//a[contains(@href,'divshare.com')]"
  6767. );
  6768. }
  6769. if (GM_getValue("Check_euroshare_dot_eu_links", false))
  6770. {
  6771. addFileHost(
  6772. "euroshare\\.(?:eu|pl|sk|cz|hu)\/file\/\\d+",
  6773. 'nazev-souboru">',
  6774. '<div id="obsah">\\s*<h1>',
  6775. 'optional--',
  6776. "//a[contains(@href,'euroshare.eu/file')]"
  6777. );
  6778. }
  6779. if (GM_getValue("Check_files_dot_mail_dot_ru_links", false))
  6780. {
  6781. addFileHost(
  6782. 'files\\.mail\\.ru/(?:\\w*)',
  6783. 'fileList',
  6784. 'errorMessage',
  6785. 'optional--',
  6786. "//a[contains(@href,'files.mail.ru')]"
  6787. );
  6788. }
  6789. if (GM_getValue("Check_megashares_dot_com_links", false))
  6790. {
  6791. addFileHost(
  6792. "(?:d\\d+\.|)megashares\.com\/(?:dl|index\.php\\?d|\\?d\\d+=\\w+)",
  6793. 'Filesize',
  6794. 'Invalid|deleted|Could not download file',
  6795. 'slots|scheduled maintenance',
  6796. "//a[contains(@href,'megashares.com/')]"
  6797. );
  6798. }
  6799. if (GM_getValue("Check_narod_dot_ru_links", false))
  6800. {
  6801. addFileHost(
  6802. 'narod\\.(?:yandex\\.|)ru\/disk\/',
  6803. 'b-submit',
  6804. 'b-download-virus-note|headCode">404<',
  6805. 'Внутренняя ошибка сервиса',
  6806. "//a[contains(@href,'narod.ru') or contains(@href,'narod.yandex.ru')]"
  6807. );
  6808. }
  6809. if (GM_getValue("Check_rayfile_dot_com_links", false))
  6810. {
  6811. addFileHost(
  6812. "rayfile\\.com\/",
  6813. 'FILEtitleTXT',
  6814. 'blueRow',
  6815. 'optional--',
  6816. "//a[contains(@href,'rayfile.com/') and contains(@href,'files')]"
  6817. );
  6818. }
  6819. if (GM_getValue("Check_filesmonster_dot_com_links", false))
  6820. {
  6821. addFileHost(
  6822. "filesmonster\\.com\/download\\.php\\?id=\\w+",
  6823. 'button_green_body"',
  6824. 'error">',
  6825. 'optional--',
  6826. "//a[contains(@href,'filesmonster.com/download')]"
  6827. );
  6828. }
  6829. if (GM_getValue("Check_usaupload_dot_net_links", false))
  6830. {
  6831. addFileHost(
  6832. 'usaupload\\.net\/d\/(?:\w*)',
  6833. '<strong>File size:</strong>',
  6834. 'is not available',
  6835. 'optional--',
  6836. "//a[contains(@href,'usaupload.net/d/')]"
  6837. );
  6838. }
  6839. if (GM_getValue("Check_sendspace_dot_com_links", false))
  6840. {
  6841. addFileHost(
  6842. 'sendspace\\.com\/file\/\\w+',
  6843. 'file_description',
  6844. 'msg error"',
  6845. 'optional--',
  6846. "//a[contains(@href,'sendspace.com/file')]"
  6847. );
  6848. }
  6849. if (GM_getValue("Check_sendspace_dot_pl_links", false))
  6850. {
  6851. addFileHost(
  6852. 'sendspace\\.pl\/file\/\\w+',
  6853. 'download_file"',
  6854. 'Podany plik nie',
  6855. 'optional--',
  6856. "//a[contains(@href,'sendspace.pl/file')]"
  6857. );
  6858. }
  6859. if (GM_getValue("Check_uploading_dot_com_links", false))
  6860. {
  6861. addFileHost(
  6862. 'uploading\\.com\/(?:files\/)?\\w+',
  6863. 'free_method">',
  6864. 'file_error">|error_404">|file not found|OOPS! Looks like file not found',
  6865. 'optional--',
  6866. "//a[contains(@href,'uploading.com')]"
  6867. );
  6868. }
  6869. if (GM_getValue("Check_gigasize_dot_com_links", false))
  6870. {
  6871. addFileHost(
  6872. 'gigasize\\.com\/get\\.php(?:\/\\d+|\\?d=\\w+)',
  6873. 'fileId"',
  6874. 'error">',
  6875. 'optional--',
  6876. "//a[contains(@href,'gigasize.com/get')]"
  6877. );
  6878. }
  6879. if (GM_getValue("Check_good_dot_com_links", false))
  6880. {
  6881. addFileHost(
  6882. 'good\\.net\/(?:_|dl)',
  6883. 'Free Download',
  6884. 'Not Found',
  6885. 'Forbidden',
  6886. "//a[contains(@href,'good.net')]"
  6887. );
  6888. }
  6889. if (GM_getValue("Check_2shared_dot_com_links", false))
  6890. {
  6891. addFileHost(
  6892. '2shared\\.com\/(?:file|video|document|audio)\/\\w*',
  6893. 'File size',
  6894. 'File not found|is not valid|/images/important.gif',
  6895. 'optional--',
  6896. "//a[contains(@href,'2shared.com/file/') or contains (@href,'2shared.com/audio/') or contains (@href,'2shared.com/document/') or contains (@href,'2shared.com/video/')]"
  6897. );
  6898. }
  6899. if (GM_getValue("Check_turboupload_dot_com_links", false))
  6900. {
  6901. addFileHost(
  6902. 'turboupload\\.com\/\\w*',
  6903. 'You have requested',
  6904. 'File Not Found',
  6905. 'optional--',
  6906. "//a[contains(@href,'turboupload.com')]"
  6907. );
  6908. }
  6909. if (GM_getValue("Check_gigapeta_dot_com_links", false))
  6910. {
  6911. addFileHost(
  6912. 'gigapeta\\.com\/dl\/',
  6913. 'Download file|Скачать файл| Herunterzuladen|Scarica il file|Cargar el fichero|Charger le fichier',
  6914. '404|page_error',
  6915. 'optional--',
  6916. "//a[contains(@href,'gigapeta.com/dl')]"
  6917. );
  6918. }
  6919. if (GM_getValue("Check_veehd_dot_com_links", false))
  6920. {
  6921. addFileHost(
  6922. 'veehd\.com\/video\/.*?',
  6923. 'No sound|Download video',
  6924. 'Featured Videos',
  6925. 'optional--',
  6926. "//a[contains(@href,'veehd.com') and contains(@href,'video')]"
  6927. );
  6928. }
  6929. if (GM_getValue("Check_vip_dash_file_dot_com_links", false))
  6930. {
  6931. addFileHost(
  6932. '(?:u\\d+\\.)?vip-file\\.com\/download.*?\/(?:.*?)\/(?:.*?)\\.html',
  6933. 'fast_download_form">|submit_sms_download',
  6934. '<p style="text-align:center">',
  6935. 'optional--',
  6936. "//a[contains(@href,'vip-file.com/download')]"
  6937. );
  6938. }
  6939. if (GM_getValue("Check_letitbit_dot_net_links", false))
  6940. {
  6941. addFileHost(
  6942. '(?:u\\d+\\.)?letitbit\\.net\/download\/\\w+',
  6943. 'download\\-pnl ',
  6944. 'color:#000">|Запрашиваемый файл не найден|страница не существует|File not found|',
  6945. 'optional--',
  6946. "//a[contains(@href,'letitbit.net/download')]"
  6947. );
  6948. }
  6949. if (GM_getValue("Check_ifolder_dot_ru_links", false))
  6950. {
  6951. addFileHost(
  6952. 'ifolder\.ru\/\\d+',
  6953. 'file-info',
  6954. 'ui-state-error',
  6955. 'optional--',
  6956. "//a[contains(@href,'ifolder.ru')]"
  6957. );
  6958. }
  6959. if (GM_getValue("Check_fileswap_dot_com_links", false))
  6960. {
  6961. addFileHost(
  6962. 'fileswap\\.com\/dl\/\\w+',
  6963. 'bttnDownloadLink"',
  6964. 'rounded_block_error"',
  6965. 'is temporary unavailable|disponible en estos momentos|vorläufig unerreichbar|Файл временно недоступен',
  6966. "//a[contains(@href,'fileswap.com/dl')]"
  6967. );
  6968. }
  6969. if (GM_getValue("Check_filecloud_dot_io_links", false))
  6970. {
  6971. addFileHost(
  6972. '(?:s\\d+\\.)?filecloud\\.io\/\\w+',
  6973. 'var __error = 0',
  6974. 'FILES__DOESNT_EXIST|removed or did not exist',
  6975. 'optional--',
  6976. "//a[contains(@href,'filecloud.io/')]"
  6977. );
  6978. addFileHost(
  6979. 'ifile\\.it\/\\w+',
  6980. 'var __error = 0',
  6981. 'FILES__DOESNT_EXIST',
  6982. 'optional--',
  6983. "//a[contains(@href,'ifile.it/')]"
  6984. );
  6985. }
  6986. if (GM_getValue("Check_solidfiles_dot_com_links", false))
  6987. {
  6988. addFileHost(
  6989. 'solidfiles\\.com\/d\/\\w+',
  6990. 'id="download"|content="Download',
  6991. '>Not found<|<h2>404</h2>|Page not found|<h1>404</h1>|File not available|no longer available',
  6992. 'optional--',
  6993. "//a[contains(@href,'solidfiles.com/d')]"
  6994. );
  6995. }
  6996. if (GM_getValue("Check_shareflare_dot_net_links", false))
  6997. {
  6998. addFileHost(
  6999. "(?:.\\.|)shareflare\\.net",
  7000. 'download-pnl|<div class="premium-block">',
  7001. 'File not found|Поиск зеркала на фа|<div id="captcha"',
  7002. 'optional--',
  7003. "//a[contains(@href,'shareflare.net') and contains(@href,'download')]"
  7004. );
  7005. }
  7006. if (GM_getValue("Check_u18116681_dot_shareflare_dot_net_links", false))
  7007. {
  7008. addFileHost(
  7009. "u18116681.shareflare\\.net",
  7010. 'download-pnl|<div class="premium-block">',
  7011. 'File not found|Поиск зеркала на фа|<div id="captcha"',
  7012. 'optional--',
  7013. "//a[contains(@href,'shareflare.net') and contains(@href,'download')]"
  7014. );
  7015. }
  7016. if (GM_getValue("Check_uloz_dot_to_links", false))
  7017. {
  7018. addFileHost(
  7019. "(?:uloz|ulozto|bagruj|zachowajto)\\.(to|cz|sk|net|pl)\/\\w",
  7020. 'fileDownload">|fileSize">',
  7021. 'grayButton deletedFile">|Stránka nenalezena|upload-button"|jako soukromý.',
  7022. 'passwordProtectedFile">|frmaskAgeForm-disagree',
  7023. "//a[contains(@href,'bagruj.cz') or contains(@href,'uloz.to') or contains(@href,'ulozto.') or contains(@href,'zachowajto.pl')]",
  7024. true
  7025. );
  7026. }
  7027. if (GM_getValue("Check_hellspy_dot_com_links", false))
  7028. {
  7029. addFileHost(
  7030. "hellspy\.(?:com|cz|sk|hu|pl)\/\\w+",
  7031. 'file\\-list-orderby|section-filedetail">',
  7032. '<\/span><\/h2>\\s*<p>|list-purp-2">|flash info sticky">',
  7033. 'optional--',
  7034. "//a[contains(@href,'hellspy.')]"
  7035. );
  7036. }
  7037. if (GM_getValue("Check_leteckaposta_dot_cz_links", false))
  7038. {
  7039. addFileHost(
  7040. "(?:leteckaposta\\.cz|sharegadget\\.com)\/\\d+",
  7041. '<body onload="">',
  7042. 'neexistuje|not exist',
  7043. 'optional--',
  7044. "//a[contains(@href,'leteckaposta.cz') or contains(@href,'sharegadget.com')]"
  7045. );
  7046. }
  7047. if (GM_getValue("Check_stahovanizasms_dot_cz_links", false))
  7048. {
  7049. addFileHost(
  7050. "stahovanizasms\\.cz\/\\w+",
  7051. 'download\\.png>|font-size:11px><tr>',
  7052. 'smaz.n u.ivatelem|font-size:11px><\/table>',
  7053. 'optional--',
  7054. "//a[contains(@href,'stahovanizasms.cz')]"
  7055. );
  7056. }
  7057. if (GM_getValue("Check_share_dash_links_dot_biz_links", false))
  7058. {
  7059. addFileHost(
  7060. "share-links\\.biz\/\\w*",
  7061. 'online\\.gif',
  7062. '(?:offline|parts)\\.gif',
  7063. 'optional--',
  7064. "//a[contains(@href,'share-links.biz')]"
  7065. );
  7066. }
  7067. if (GM_getValue("Check_4shared_dot_com_links", false))
  7068. {
  7069. addFileHost(
  7070. "4shared\\.com\/.+\/",
  7071. '<input type="hidden" class="jsSocialTwDefaultText" value=',
  7072. 'class="warn\"|big red"|GetDataBack',
  7073. 'Service Unavailable',
  7074. "//a[contains(@href,'4shared.com')]"
  7075. );
  7076. }
  7077. if (GM_getValue("Check_zippyshare_dot_com_links", false))
  7078. {
  7079. addFileHost(
  7080. "(?:www\\d+\.|)zippyshare\.com\/",
  7081. 'download\.png|Download Now|images/download_small.png|id="dlbutton"',
  7082. 'not exist|Status 404',
  7083. 'optional--',
  7084. "//a[contains(@href,'zippyshare.com') and contains(@href,'file.html')]"
  7085. );
  7086. }
  7087. if (GM_getValue("Check_mediafire_dot_com_links", false))
  7088. {
  7089. addFileHost(
  7090. "mediafire\.com\/",
  7091. 'download_file_title|dlFileName|id="PLAY_downloadButton"',
  7092. 'error\\.php\\?|error_msg_title|<title>Simple File Sharing|No files found',
  7093. 'set to private',
  7094. "//a[contains(@href,'mediafire.com')]"
  7095. );
  7096. }
  7097. if (GM_getValue("Check_uploaded_dot_to_links", false))
  7098. {
  7099. addFileHost(
  7100. '(?:uploaded\\.(?:to|net)\/(?:.id|file|folder|f|410|404))|(?:ul\\.to\/)',
  7101. '<h2>Authentification</h2></li>| MB|1,00 GB',
  7102. 'box_red|Error: 404|Error: 410|fileList"><thead><tr><td colspan="2"><\/td><\/tr><\/thead><tbody>\\s*<tr>|<title>uploaded.net</title>',
  7103. 'optional--',
  7104. "//a[contains(@href,'uploaded.to/') or contains(@href,'uploaded.net/') or contains(@href,'ul.to/')]"
  7105. );
  7106. }
  7107. if (GM_getValue("Check_ulozisko_dot_sk_links", false))
  7108. {
  7109. addFileHost(
  7110. "ulozisko\.sk\/",
  7111. 'Detaily',
  7112. 'neexistuje',
  7113. 'optional--',
  7114. "//a[contains(@href,'ulozisko.sk')]"
  7115. );
  7116. }
  7117. if (GM_getValue("Check_upnito_dot_sk_links", false))
  7118. {
  7119. addFileHost(
  7120. "(?:dl.\\.|)upnito\\.sk\/(download|subor|file)",
  7121. 'download.php',
  7122. 'notfound|upload\\-suborov\\.php"',
  7123. 'optional--',
  7124. "//a[contains(@href,'upnito.sk')]"
  7125. );
  7126. }
  7127. if (GM_getValue("Check_uptobox_dot_com_links", false))
  7128. {
  7129. addFileHost(
  7130. "uptobox\\.com\/\\w+",
  7131. 'Create Download Link">',
  7132. '500px;text-align:left;">|File not found|Fichier introuvable',
  7133. 'Maintenance|not available in your country',
  7134. "//a[contains(@href,'uptobox.com')]"
  7135. );
  7136. }
  7137. if (GM_getValue("Check_sharecash_dot_org_links", false))
  7138. {
  7139. addFileHost(
  7140. "sharecash\\.org\/download\\.php\\?file=\\d+",
  7141. 'FILE DOWNLOAD<',
  7142. 'File Does Not Exist',
  7143. 'optional--',
  7144. "//a[contains(@href,'sharecash.org/download.php')]"
  7145. );
  7146. }
  7147. if (GM_getValue("Check_depositfiles_dot_com_links", false)) //folders
  7148. {
  7149. addFileHost(
  7150. "depositfiles\\.com\/folders\/\\w+",
  7151. '<div class="progressContainer">',
  7152. '<div id="files" class="files">\\s*<\/div>',
  7153. 'optional--',
  7154. "//a[contains(@href,'depositfiles.com/folders')]"
  7155. );
  7156. }
  7157. if (GM_getValue("Check_rapidfileshare_dot_net_links", false))
  7158. {
  7159. addFileHost(
  7160. "rapidfileshare\\.net/\\w+",
  7161. '<div id="upload-header-bg">',
  7162. '<div style="width:500px;text-align:left;">',
  7163. 'optional--',
  7164. "//a[contains(@href,'rapidfileshare.net/')]"
  7165. );
  7166. }
  7167. if (GM_getValue("Check_stiahnito_dot_sk_links", false))
  7168. {
  7169. addFileHost(
  7170. "stiahnito\\.sk/",
  7171. '<span class="filesize right">',
  7172. '<ol class="list-purp-2">',
  7173. 'optional--',
  7174. "//a[contains(@href,'stiahnito.sk/')]"
  7175. );
  7176. }
  7177. if (GM_getValue("Check_rusfolder_dot_com_links", false))
  7178. {
  7179. addFileHost(
  7180. "rusfolder\\.(?:com|net)",
  7181. '"download-step-one-form"|Название: <b>|Файлы|Файлы в папке',
  7182. '"ui-state-error ui-corner-all"|File is removed|File not found|удален',
  7183. 'optional--',
  7184. "//a[contains(@href,'rusfolder')]"
  7185. );
  7186. }
  7187. if (GM_getValue("Check_fileover_dot_net_links", false))
  7188. {
  7189. addFileHost(
  7190. "fileover\\.net/\\d+",
  7191. 'id="filesize"',
  7192. 'Not found or deleted|The following file is unavailable',
  7193. 'optional--',
  7194. "//a[contains(@href,'fileover.net/')]"
  7195. );
  7196. }
  7197. if (GM_getValue("Check_catshare_dot_net_links", false))
  7198. {
  7199. addFileHost(
  7200. "catshare\\.net/\\w+",
  7201. '"icon-share',
  7202. 'alert alert-error',
  7203. 'optional--',
  7204. "//a[contains(@href,'catshare.net/')]"
  7205. );
  7206. }
  7207. if (GM_getValue("Check_anonfiles_dot_com_links", false))
  7208. {
  7209. addFileHost(
  7210. "anonfiles\\.com/\\w+",
  7211. '"download_button"',
  7212. '<legend><b>404</b>',
  7213. 'optional--',
  7214. "//a[contains(@href,'anonfiles.com')]"
  7215. );
  7216. }
  7217. if (GM_getValue("Check_mixturecloud_dot_com_links", false))
  7218. {
  7219. addFileHost(
  7220. "mixturecloud\\.com/media/\\w+",
  7221. '"btn icon i_globe gray share_150',
  7222. '"s_cross_close"></span> 404:',
  7223. 'optional--',
  7224. "//a[contains(@href,'mixturecloud.com/media/')]"
  7225. );
  7226. }
  7227. if (GM_getValue("Check_akafile_dot_com_links", false))
  7228. {
  7229. addFileHost(
  7230. "akafile\\.com\/\\w+",
  7231. 'download1',
  7232. 'File Not Found',
  7233. 'optional--',
  7234. "//a[contains(@href,'akafile.com/')]"
  7235. );
  7236. }
  7237. if (GM_getValue("Check_creafile_dot_net_links", false))
  7238. {
  7239. addFileHost(
  7240. "creafile\\.net\/\\w+",
  7241. 'downloadblock',
  7242. 'errtitle',
  7243. 'optional--',
  7244. "//a[contains(@href,'creafile.net/')]"
  7245. );
  7246. }
  7247. if (GM_getValue("Check_hugefiles_dot_net_links", false))
  7248. {
  7249. addFileHost(
  7250. "hugefiles\\.net\/\\w+",
  7251. 'download1|class="btn-create-download" value="Create Download Link">',
  7252. 'File Not Found|No such file with this filename',
  7253. 'optional--',
  7254. "//a[contains(@href,'hugefiles.net/')]"
  7255. );
  7256. }
  7257. if (GM_getValue("Check_sendmyway_dot_com_links", false))
  7258. {
  7259. addFileHost(
  7260. "sendmyway\\.com\/\\w+",
  7261. 'id="btn_download"',
  7262. '500px;text-align:left;"|<center><h3>',
  7263. 'optional--',
  7264. "//a[contains(@href,'sendmyway.com/')]"
  7265. );
  7266. }
  7267. if (GM_getValue("Check_upload_dot_ee_links", false))
  7268. {
  7269. addFileHost(
  7270. "upload\\.ee\/\\w+",
  7271. 'onmouseout="document.dllink.src',
  7272. 'There is no such file.|File was deleted|Fail kustutati|Файл удалён|Такого файла нет',
  7273. 'optional--',
  7274. "//a[contains(@href,'upload.ee/')]"
  7275. );
  7276. }
  7277. if (GM_getValue("Check_shareplace_dot_org_links", false))
  7278. {
  7279. addFileHost(
  7280. "shareplace\\.org\/\\?\\w+",
  7281. 'Download-Link',
  7282. 'Your requested file is not found|Select file to send',
  7283. 'optional--',
  7284. "//a[contains(@href,'shareplace.org/?')]"
  7285. );
  7286. }
  7287. if (GM_getValue("Check_uploadc_dot_com_links", false))
  7288. {
  7289. addFileHost(
  7290. "uploadc\\.com\/\\w+",
  7291. 'id="prebut"',
  7292. 'File Not Found|This file has been removed due',
  7293. 'optional--',
  7294. "//a[contains(@href,'uploadc.com/')]"
  7295. );
  7296. }
  7297. if (GM_getValue("Check_remixshare_dot_com_links", false))
  7298. {
  7299. addFileHost(
  7300. "remixshare\\.com\/\\w+",
  7301. 'id="dl2"',
  7302. '<table class=\'failed\'><tr><td width=\'90%\'>|Sorry, die Datei konnte nicht gefunden werden',
  7303. 'optional--',
  7304. "//a[contains(@href,'remixshare.com/')]"
  7305. );
  7306. }
  7307. if (GM_getValue("Check_exoshare_dot_com_links", false))
  7308. {
  7309. addFileHost(
  7310. "exoshare\\.com\/download\\.php\\?uid=\\w+",
  7311. 'Last Download :',
  7312. 'img src="\\/404.jpg"',
  7313. 'optional--',
  7314. "//a[contains(@href,'exoshare.com/download.php')]"
  7315. );
  7316. }
  7317. if (GM_getValue("Check_borncash_dot_org_links", false))
  7318. {
  7319. addFileHost(
  7320. "borncash\\.org\/download\/\\?a=\\w+",
  7321. 'class="knop_1"',
  7322. '\/error\/er00',
  7323. 'optional--',
  7324. "//a[contains(@href,'borncash.org/download/')]"
  7325. );
  7326. }
  7327. if (GM_getValue("Check_vidplay_dot_net_links", false))
  7328. {
  7329. addFileHost(
  7330. "vidplay\.net\/\\w+",
  7331. 'solvemedia puzzle widget',
  7332. 'File not found|AVOID_IE_BUG',
  7333. 'optional--',
  7334. "//a[contains(@href,'vidplay.net')]");
  7335. }
  7336. if (GM_getValue("Check_storagon_dot_com_links", false))
  7337. {
  7338. addFileHost(
  7339. "storagon\.com\/\\w+",
  7340. 'class="icon-cloud-download"></i>|content="Download Options',
  7341. 'content="Download Downloads|class="error-container">|class="bigger-300 bolder">404<',
  7342. 'optional--',
  7343. "//a[contains(@href,'storagon.com')]");
  7344. }
  7345. if (GM_getValue("Check_filedais_dot_com_links", false))
  7346. {
  7347. addFileHost(
  7348. "filedais\.com\/\\w+",
  7349. 'class="btn btn-info"|name="method_free"',
  7350. 'style="width:500px;text-align:left;">|File Not Found|AVOID_IE_BUG',
  7351. 'optional--',
  7352. "//a[contains(@href,'filedais.com')]");
  7353. }
  7354. if (GM_getValue("Check_ryushare_dot_com_links", false))
  7355. {
  7356. addFileHost(
  7357. "ryushare\.com\/\\w+",
  7358. 'KB|MB',
  7359. '<div style="width:500px;text-align:left;">',
  7360. 'in maintenance mode|Software error:',
  7361. "//a[contains(@href,'ryushare.com')]");
  7362. }
  7363. if (GM_getValue("Check_up_dot_4share_dot_vn_links", false))
  7364. {
  7365. addFileHost(
  7366. "up.4share\.vn\/\\w+",
  7367. '<font size="2" face="Verdana">',
  7368. 'font: 13px Tahoma; color: Brown',
  7369. 'optional--',
  7370. //'optional--',
  7371. "//a[contains(@href,'up.4share.vn')]");
  7372. }
  7373. if (GM_getValue("Check_share_dot_vnn_dot_vn_links", false))
  7374. {
  7375. addFileHost(
  7376. "share.vnn\.vn\/\\w+",
  7377. '"index,follow"|<div class="main" id="download-box">',
  7378. '<meta name="description" content="" />|<h1>Không tìm thấy file bạn yêu cầu</h1>',
  7379. 'optional--',
  7380. //'optional--',
  7381. "//a[contains(@href,'share.vnn.vn')]");
  7382. }
  7383. if (GM_getValue("Check_upfile_dot_vn_links", false))
  7384. {
  7385. addFileHost(
  7386. "upfile\.vn\/\\w+",
  7387. 'download-timer',
  7388. '<meta name="description" content="Upload files|<meta name="description" content="Error "',
  7389. 'optional--',
  7390. //'optional--',
  7391. "//a[contains(@href,'upfile.vn')]");
  7392. }
  7393. /* if (GM_getValue("Check_firedrive_dot_com_links", false))
  7394. {
  7395. addFileHost(
  7396. "firedrive\\.com\/file\/\\w{16}",
  7397. 'as Free User|<a class="continue"|Continue to file|#feedback_btn|application file_standalone',
  7398. 'Welcome to PutLocker|<div class="sad_face_image">|404:',
  7399. 'undergoing scheduled maintenance',
  7400. "//a[contains(@href,'firedrive.com/file')]"
  7401. );
  7402. } */
  7403. if (GM_getValue("Check_aisfile_dot_com_links", false))
  7404. {
  7405. addFileHost(
  7406. "aisfile\.com\/\\w+",
  7407. '<h3 style="text-align:left;">|align=right><b>Filename:',
  7408. '<div style="width:500px;text-align:left;">|File Not Found',
  7409. 'optional--',
  7410. //'optional--',
  7411. "//a[contains(@href,'aisfile.com')]");
  7412. }
  7413. if (GM_getValue("Check_usersfiles_dot_com_links", false))
  7414. {
  7415. addFileHost(
  7416. "usersfiles\.com\/\\w+",
  7417. 'class="btn btn-success|id="btn_download" class="btn"',
  7418. '<div style="width:500px;text-align:left;">',
  7419. 'optional--',
  7420. //'optional--',
  7421. "//a[contains(@href,'usersfiles.com')]");
  7422. }
  7423. if (GM_getValue("Check_pan_dot_baidu_dot_com_links", false))
  7424. {
  7425. addFileHost(
  7426. "pan.baidu\.com\/\\w+",
  7427. 'target="_blank" title=|share-personal-info',
  7428. 'share_notfound.png|background:#f9f9f9',
  7429. 'optional--',
  7430. //'optional--',
  7431. "//a[contains(@href,'pan.baidu.com')]");
  7432. }
  7433. if (GM_getValue("Check_yunpan_dot_cn_links", false))
  7434. {
  7435. addFileHost(
  7436. "yunpan\.cn\/\\w+",
  7437. 'class="icon icon-download',
  7438. 'content="360|http://p5.qhimg.com/t01d1c98667df9dc6cc.jpg',
  7439. 'optional--',
  7440. //'optional--',
  7441. "//a[contains(@href,'yunpan.cn')]");
  7442. }
  7443. if (GM_getValue("Check_file_dash_upload_dot_net_links", false))
  7444. {
  7445. addFileHost(
  7446. "(?:en\\.|)file\\-upload\\.net\/download\\-\\d+\/\\w+",
  7447. 'getElementById("downbild")|style.display',
  7448. 'hochgeladene Datei nicht gefunden werden|has not been found',
  7449. 'optional--',
  7450. //'optional--',
  7451. "//a[contains(@href,'file-upload.net')]");
  7452. }
  7453. if (GM_getValue("Check_gulfup_dot_com_links", false))
  7454. {
  7455. addFileHost(
  7456. "gulfup\.com\/",
  7457. '<!-- Downlod template -->|download.gif',
  7458. '<!-- Errors template -->|class="error">|<!-- form upload -->|[ رفع الملفات ]',
  7459. 'optional--',
  7460. //'optional--',
  7461. "//a[contains(@href,'gulfup.com')]");
  7462. }
  7463. if (GM_getValue("Check_datafilehost_dot_com_links", false))
  7464. {
  7465. addFileHost(
  7466. "datafilehost\\.com\/(?:download-\\w+\\.html|d\/\\w+)",
  7467. 'dldtable">',
  7468. 'does not exist\\.',
  7469. 'optional--',
  7470. //'optional--',
  7471. "//a[contains(@href,'datafilehost.com')]");
  7472. }
  7473. if (GM_getValue("Check_box_dot_com_links", false))
  7474. {
  7475. addFileHost(
  7476. "box\.com\/\\w+",
  7477. 'download-file-btn|id="download_button',
  7478. 'BIyMin.png| <div class="error_message|link has been removed',
  7479. 'optional--',
  7480. //'optional--',
  7481. "//a[contains(@href,'app.box.com')]");
  7482. }
  7483. if (GM_getValue("Check_dropbox_dot_com_links", false))
  7484. {
  7485. addFileHost(
  7486. "dropbox\.com\/s\/\\w+",
  7487. 'default_content_download_button" class="freshbutton-blue">|content_download_button',
  7488. '>Nothing Here<|>Error (404)<',
  7489. 'title>Dropbox - 509|Error (403)|Error: 429',
  7490. "//a[contains(@href,'dropbox.com')]");
  7491. }
  7492. if (GM_getValue("Check_box_dot_net_links", false))
  7493. {
  7494. addFileHost(
  7495. "box\.net\/\\w+",
  7496. 'download-file-btn|id="download_button',
  7497. 'BIyMin.png| <div class="error_message',
  7498. 'optional--',
  7499. //'optional--',
  7500. "//a[contains(@href,'box.net')]");
  7501. }
  7502. if (GM_getValue("Check_fileband_dot_com_links", false))
  7503. {
  7504. addFileHost(
  7505. "fileband\.com\/\\w+",
  7506. 'value="download1">|name="id" value=',
  7507. '<div style="width:500px;text-align:left;">|not be found',
  7508. 'optional--',
  7509. //'optional--',
  7510. "//a[contains(@href,'fileband.com')]");
  7511. }
  7512. if (GM_getValue("Check_filedropper_dot_com_links", false))
  7513. {
  7514. addFileHost(
  7515. "filedropper\.com\/\\w+",
  7516. 'background:#ddd;|width:985px; ',
  7517. 'background-color:#FFFFFF;|margin-left: -400px;',
  7518. 'optional--',
  7519. //'optional--',
  7520. "//a[contains(@href,'filedropper.com')]");
  7521. }
  7522. if (GM_getValue("Check_tropicshare_dot_com_links", false))
  7523. {
  7524. addFileHost(
  7525. "tropicshare\\.com\/files\/\\d+",
  7526. 'MB</span>|GB</span>|KB</span>',
  7527. '>FNF<|size: </span>',
  7528. 'optional--',
  7529. //'optional--',
  7530. "//a[contains(@href,'tropicshare.com')]");
  7531. }
  7532. if (GM_getValue("Check_goldbytez_dot_com_links", false))
  7533. {
  7534. addFileHost(
  7535. "goldbytez\.com\/\\w+",
  7536. '<h2>Download</h2>|<center><h2>File: <font color="red">',
  7537. '<div style="width:500px;text-align:left;">|<h2>Error</h2>',
  7538. 'optional--',
  7539. //'optional--',
  7540. "//a[contains(@href,'goldbytez.com')]");
  7541. }
  7542. if (GM_getValue("Check_worldbytez_dot_com_links", false))
  7543. {
  7544. addFileHost(
  7545. "worldbytez\.com\/\\w+",
  7546. '<div class="download_type">',
  7547. '<div style="width:500px;text-align:left;">',
  7548. 'optional--',
  7549. //'optional--',
  7550. "//a[contains(@href,'worldbytez.com')]");
  7551. }
  7552. if (GM_getValue("Check_freefilehosting_dot_net_links", false))
  7553. {
  7554. addFileHost(
  7555. "freefilehosting\.net\/\\w+",
  7556. 'Type: cbr|Type: rar|Type: jpg|Type: mkv|Type: avi|Type: mpg|Type: mpeg|Type: zip|Type: wmvType: bmpType: gifType: mp4Type: mp3',
  7557. '175px;" value="http://www.freefilehosting.net/"|Filename: <br>',
  7558. 'optional--',
  7559. //'optional--',
  7560. "//a[contains(@href,'freefilehosting.net')]");
  7561. }
  7562. if (GM_getValue("Check_ziddu_dot_com_links", false))
  7563. {
  7564. addFileHost(
  7565. "ziddu\.com\/\\w+",
  7566. 'downloads.ziddu.com|downloadfilelinkicon',
  7567. 'errortracking.php|images/oops.png|fontfamilyverdana error',
  7568. 'optional--',
  7569. //'optional--',
  7570. "//a[contains(@href,'ziddu.com')]");
  7571. }
  7572. if (GM_getValue("Check_exclusiveloader_dot_com_links", false))
  7573. {
  7574. addFileHost(
  7575. "exclusiveloader\.com\/\\w+",
  7576. 'style="padding-top:55px; padding-bottom:65px;">|<h2>Download</h2>',
  7577. 'File Not Found|width:322px;text-align:left;" class="no_file">',
  7578. 'optional--',
  7579. //'optional--',
  7580. "//a[contains(@href,'exclusiveloader.com')]");
  7581. }
  7582. if (GM_getValue("Check_sharerapid_dot_cz_links", false))
  7583. {
  7584. addFileHost(
  7585. "sharerapid\.cz\/\\w+",
  7586. 'value="Stáhnout"|soubor" style|Stahování je povoleno pouze pro přihlášené uživatele',
  7587. 'error_div">|404 - Not Found',
  7588. 'optional--',
  7589. //'optional--',
  7590. "//a[contains(@href,'sharerapid.cz')]");
  7591. }
  7592. if (GM_getValue("Check_sdilej_dot_cz_links", false))
  7593. {
  7594. addFileHost(
  7595. "sdilej\.cz\/\\w+",
  7596. 'class="page-download"',
  7597. '<h2 class="red">|czshare.com|sponsored listings|This domain is for sale',
  7598. 'optional--',
  7599. //'optional--',
  7600. "//a[contains(@href,'sdilej.cz')]");
  7601. }
  7602. if (GM_getValue("Check_lafiles_dot_com_links", false))
  7603. {
  7604. addFileHost(
  7605. "lafiles\.com\/\\w+",
  7606. '<div id="pay_modes">',
  7607. '<b class="err"></b>',
  7608. 'optional--',
  7609. //'optional--',
  7610. "//a[contains(@href,'lafiles.com')]");
  7611. }
  7612. if (GM_getValue("Check_fboom_dot_me_links", false))
  7613. {
  7614. addFileHost(
  7615. "fboom\.me\/file\/\\w+",
  7616. 'id="download-free" href="#"',
  7617. 'class="error-v1-title">404<|File not found or deleted',
  7618. 'optional--',
  7619. //'optional--',
  7620. "//a[contains(@href,'fboom.me')]");
  7621. }
  7622. if (GM_getValue("Check_fileboom_dot_me_links", false))
  7623. {
  7624. addFileHost(
  7625. "fileboom\.me\/file\/\\w+",
  7626. 'id="download-free" href="#"',
  7627. 'class="error-v1-title">404<|File not found or deleted',
  7628. 'optional--',
  7629. //'optional--',
  7630. "//a[contains(@href,'fileboom.me')]");
  7631. }
  7632. if (GM_getValue("Check_acefile_dot_net_links", false))
  7633. {
  7634. addFileHost(
  7635. "acefile\.net\/\\w+",
  7636. 'align=right nowrap><b>',
  7637. 'File Not Found|<div style="width:322px;text-align:left;" class="no_file">',
  7638. 'optional--',
  7639. //'optional--',
  7640. "//a[contains(@href,'acefile.net')]");
  7641. }
  7642. if (GM_getValue("Check_megarapid_dot_cz_links", false))
  7643. {
  7644. addFileHost(
  7645. "megarapid\.cz\/\\w+",
  7646. 'value="Stáhnout"|soubor" style|Stahování je povoleno pouze pro přihlášené uživatele',
  7647. 'error_div">|404 - Not Found',
  7648. 'optional--',
  7649. //'optional--',
  7650. "//a[contains(@href,'megarapid.cz')]");
  7651. }
  7652. if (GM_getValue("Check_yadi_dot_sk_links", false))
  7653. {
  7654. addFileHost(
  7655. "yadi\.sk\/\\w+",
  7656. 'twitter:site|View and download',
  7657. 'error code|Nothing found',
  7658. 'optional--',
  7659. //'optional--',
  7660. "//a[contains(@href,'yadi.sk')]");
  7661. }
  7662. if (GM_getValue("Check_imdb_dot_com_links", false))
  7663. {
  7664. addFileHost(
  7665. "imdb\.com\/\\w+",
  7666. 'imdb.com',
  7667. '404 Error',
  7668. 'optional--',
  7669. "//a[contains(@href,'imdb.com')]");
  7670. }
  7671. if (GM_getValue("Check_hitfile_dot_net_links", false))
  7672. {
  7673. addFileHost(
  7674. "hitfile\.net\/\\w+",
  7675. 'class="download-file',
  7676. 'style="width:16px;height:16px;border:0;|File not found|Файл не найден. Возможно он был удален',
  7677. 'optional--',
  7678. //'optional--',
  7679. "//a[contains(@href,'hitfile.net')]");
  7680. }
  7681. /* if (GM_getValue("Check_uploadto_dot_us_links", false))
  7682. {
  7683. addFileHost(
  7684. "uploadto\\.us\/file\/details\/[\\w+-]",
  7685. 'name="recaptcha_response',
  7686. '="/folder/add"|>File (?:not found|restricted|has been deleted)|<title>UPLOADTO.US</title>',
  7687. 'btn-large btn-danger">|Account limitation notice|502 Bad Gateway',
  7688. "//a[contains(@href,'uploadto.us/file')]",
  7689. true);
  7690. } */
  7691. if (GM_getValue("Check_nitroflare_dot_com_links", true))
  7692. {
  7693. addFileHost(
  7694. "nitroflare\.com\/\\w+",
  7695. 'alert.png|LowSpeedMeter.png',
  7696. 'file has been removed|id="error" style="display|Probably deleted',
  7697. 'optional--',
  7698. "//a[contains(@href,'nitroflare.com')]");
  7699. }
  7700. if (GM_getValue("Check_up_dot_top4top_dot_net_links", false))
  7701. {
  7702. addFileHost(
  7703. "up.top4top\.net\/\\w+",
  7704. 'start Downlod template',
  7705. 'start err template',
  7706. 'optional--',
  7707. "//a[contains(@href,'up.top4top.net')]");
  7708. }
  7709. if (GM_getValue("Check_filejoker_dot_net_links", false))
  7710. {
  7711. addFileHost(
  7712. "filejoker\.net\/\\w+",
  7713. 'button id="regular-download">Slow|method_free" value="1|<div id="download" class="download0">',
  7714. 'File Not Found|class="not_found|<div id="download" class="not_found">|"err">DMCA Complaint<',
  7715. 'optional--',
  7716. "//a[contains(@href,'filejoker.net')]");
  7717. }
  7718. if (GM_getValue("Check_free_dot_fr_links", false))
  7719. {
  7720. addFileHost(
  7721. "(?:dl.\\.|)free\\.fr",
  7722. 'Valider et t&eacute;l&eacute',
  7723. 'Fichier inexistant',
  7724. 'optional--',
  7725. "//a[contains(@href,'free.fr')]");
  7726. }
  7727. if (GM_getValue("Check_gboxes_dot_com_links", false))
  7728. {
  7729. addFileHost(
  7730. "gboxes\.com\/\\w+",
  7731. 'You have requested|color="red">http://www.gboxes.com',
  7732. 'File Not Found|<div style="width:500px;text-align:left;">',
  7733. 'optional--',
  7734. "//a[contains(@href,'gboxes.com')]");
  7735. }
  7736. if (GM_getValue("Check_1fichier_dot_com_links", false))
  7737. {
  7738. addFileHost(
  7739. "(?:\\w{10}\\.(?:1fichier|dl4free)\\.com\/)|(?:(?:1fichier|dl4free)\\.com\/\\?\\w{10})|(?:www\\.)?\\w{6,}\\.1fichier\\.com",
  7740. '<title>Download</title>|<br/>You must wait|submit" value="Download|Download without SSL encryption|submit" value="Télécharger|submit" value="Télécharger',
  7741. 'File not found|file could not be found|Select files to send|Sélectionnez les fichiers à envoyer|file has been deleted|Le fichier demandé a été supprimé',
  7742. 'optional--',
  7743. "//a[contains(@href,'1fichier') or contains(@href,'dl4free.com/')]"
  7744. );
  7745. }
  7746. if (GM_getValue("Check_led_dot_wf_links", false))
  7747. {
  7748. addFileHost(
  7749. "led\.wf\/\\w+",
  7750. 'logo_0.png|downloads.gif"|verifycode',
  7751. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  7752. 'optional--',
  7753. "//a[contains(@href,'led.wf')]");
  7754. }
  7755. if (GM_getValue("Check_lan_dot_wf_links", false))
  7756. {
  7757. addFileHost(
  7758. "lan\.wf\/\\w+",
  7759. 'logo_0.png|downloads.gif"|verifycode',
  7760. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  7761. 'optional--',
  7762. "//a[contains(@href,'lan.wf')]");
  7763. }
  7764. if (GM_getValue("Check_adlink_dot_wf_links", false))
  7765. {
  7766. addFileHost(
  7767. "adlink\.wf\/\\w+",
  7768. 'logo_0.png|downloads.gif"|verifycode',
  7769. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  7770. 'optional--',
  7771. "//a[contains(@href,'adlink.wf')]");
  7772. }
  7773. if (GM_getValue("Check_click_dot_tf_links", false))
  7774. {
  7775. addFileHost(
  7776. "click\.tf\/\\w+",
  7777. 'logo_0.png|downloads.gif"|verifycode',
  7778. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  7779. 'optional--',
  7780. "//a[contains(@href,'click.tf')]");
  7781. }
  7782. if (GM_getValue("Check_ssh_dot_tf_links", false))
  7783. {
  7784. addFileHost(
  7785. "ssh\.tf\/\\w+",
  7786. 'logo_0.png|downloads.gif"|verifycode',
  7787. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  7788. 'optional--',
  7789. "//a[contains(@href,'ssh.tf')]");
  7790. }
  7791. if (GM_getValue("Check_ssh_dot_yt_links", false))
  7792. {
  7793. addFileHost(
  7794. "ssh\.yt\/\\w+",
  7795. 'logo_0.png|downloads.gif"|verifycode',
  7796. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  7797. 'optional--',
  7798. "//a[contains(@href,'ssh.yt')]");
  7799. }
  7800. if (GM_getValue("Check_yep_dot_pm_links", false))
  7801. {
  7802. addFileHost(
  7803. "yep\.pm\/\\w+",
  7804. 'logo_0.png|downloads.gif"|verifycode',
  7805. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  7806. 'optional--',
  7807. "//a[contains(@href,'yep.pm')]");
  7808. }
  7809. if (GM_getValue("Check_kyc_dot_pm_links", false))
  7810. {
  7811. addFileHost(
  7812. "kyc\.pm\/\\w+",
  7813. 'logo_0.png|downloads.gif"|verifycode',
  7814. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  7815. 'optional--',
  7816. "//a[contains(@href,'kyc.pm')]");
  7817. }
  7818. if (GM_getValue("Check_brupload_dot_net_links", false))
  7819. {
  7820. addFileHost(
  7821. "brupload\.net\/\\w+",
  7822. 'Download Gratuito',
  7823. '<div style="width:500px;text-align:left;">',
  7824. 'optional--',
  7825. //'optional--',
  7826. "//a[contains(@href,'brupload.net')]");
  7827. }
  7828. if (GM_getValue("Check_cloudzilla_dot_to_links", false))
  7829. {
  7830. addFileHost(
  7831. "cloudzilla\.to\/\\w+",
  7832. 'btn1" id="free_download|onclick="freeDownload|id="pwd_protected">',
  7833. 'File not found|/imgs/broken.png',
  7834. 'optional--',
  7835. //'optional--',
  7836. "//a[contains(@href,'cloudzilla.to')]");
  7837. }
  7838. if (GM_getValue("Check_fileparadox_dot_in_links", false))
  7839. {
  7840. addFileHost(
  7841. "fileparadox\.in\/\\w+",
  7842. 'CONTENT="Download File|method_free_file',
  7843. '>File Not Found<|id="no_filedownload">|FILE NOT FOUND',
  7844. 'optional--',
  7845. //'optional--',
  7846. "//a[contains(@href,'fileparadox.in')]");
  7847. }
  7848. if (GM_getValue("Check_clicknupload_dot_com_links", false))
  7849. {
  7850. addFileHost(
  7851. "clicknupload\.com\/\\w+",
  7852. 'name="method_free',
  7853. 'File Not Found',
  7854. 'optional--',
  7855. //'optional--',
  7856. "//a[contains(@href,'clicknupload.com')]");
  7857. }
  7858. if (GM_getValue("Check_ex_dash_load_dot_com_links", false))
  7859. {
  7860. addFileHost(
  7861. "ex-load\.com\/\\w+",
  7862. 'name="method_free|<p>Download File:</p>',
  7863. 'Folder Not Found|File Not Found|Error 404',
  7864. 'optional--',
  7865. //'optional--',
  7866. "//a[contains(@href,'ex-load.com')]");
  7867. }
  7868. if (GM_getValue("Check_hexupload_dot_com_links", false))
  7869. {
  7870. addFileHost(
  7871. "hexupload\.com\/\\w+",
  7872. 'button" value="Free|type="submit" value=""',
  7873. 'File Not Found|<div style="width:500px;text-align:left;">',
  7874. 'optional--',
  7875. //'optional--',
  7876. "//a[contains(@href,'hexupload.com')]");
  7877. }
  7878. if (GM_getValue("Check_wizupload_dot_com_links", false))
  7879. {
  7880. addFileHost(
  7881. "wizupload\.com\/\\w+",
  7882. 'btn_download|class="downloadbtn"',
  7883. '>File Not Found<',
  7884. 'optional--',
  7885. //'optional--',
  7886. "//a[contains(@href,'wizupload.com')]");
  7887. }
  7888. if (GM_getValue("Check_filecloud_dot_cc_links", false))
  7889. {
  7890. addFileHost(
  7891. "filecloud\.cc\/\\w+",
  7892. 'align="center"><input type="submit" name=',
  7893. 'File Not Found|<Title>FileCloud - Premium Hosting Service<',
  7894. 'optional--',
  7895. //'optional--',
  7896. "//a[contains(@href,'filecloud.cc')]");
  7897. }
  7898. if (GM_getValue("Check_inclouddrive_dot_com_links", false))
  7899. {
  7900. addFileHost(
  7901. "inclouddrive\.com\/\\w+",
  7902. 'initfreedownload',
  7903. '<title>Content Unavailable|The file you are trying to download is no longer available',
  7904. 'optional--',
  7905. //'optional--',
  7906. "//a[contains(@href,'inclouddrive.com')]");
  7907. }
  7908. if (GM_getValue("Check_radicalshare_dot_com_links", false))
  7909. {
  7910. addFileHost(
  7911. "radicalshare\.com\/\\w+",
  7912. 'value="download1|name="method_free"',
  7913. 'File Not Found<|<div style="width:500px;text-align:left;">',
  7914. 'optional--',
  7915. //'optional--',
  7916. "//a[contains(@href,'radicalshare.com')]");
  7917. }
  7918. if (GM_getValue("Check_sharemods_dot_com_links", false))
  7919. {
  7920. addFileHost(
  7921. "sharemods\.com\/\\w+",
  7922. 'name="method_free"',
  7923. 'File Not Found<',
  7924. 'optional--',
  7925. //'optional--',
  7926. "//a[contains(@href,'sharemods.com')]");
  7927. }
  7928. if (GM_getValue("Check_hostr_dot_co_links", false))
  7929. {
  7930. addFileHost(
  7931. "hostr\.co\/\\w+",
  7932. 'method="get"',
  7933. 'File not found<|error-page',
  7934. 'optional--',
  7935. //'optional--',
  7936. "//a[contains(@href,'hostr.co')]");
  7937. }
  7938. if (GM_getValue("Check_filepi_dot_com_links", false))
  7939. {
  7940. addFileHost(
  7941. "filepi\.com\/\\w+",
  7942. 'id="button_start">',
  7943. 'File not found',
  7944. 'optional--',
  7945. //'optional--',
  7946. "//a[contains(@href,'filepi.com')]");
  7947. }
  7948. if (GM_getValue("Check_tikfile_dot_com_links", false))
  7949. {
  7950. addFileHost(
  7951. "tikfile\.com\/\\w+",
  7952. 'btn_download',
  7953. 'File Not Found|file was removed|Reason for deletion',
  7954. 'optional--',
  7955. //'optional--',
  7956. "//a[contains(@href,'tikfile.com')]");
  7957. }
  7958. if (GM_getValue("Check_cloudsix_dot_me_links", false))
  7959. {
  7960. addFileHost(
  7961. "cloudsix\.me\/\\w+",
  7962. 'name="method_free"',
  7963. 'File Not Found|width:500px;text-align:left;">',
  7964. 'optional--',
  7965. //'optional--',
  7966. "//a[contains(@href,'cloudsix.me')]");
  7967. }
  7968. if (GM_getValue("Check_neodrive_dot_co_links", false))
  7969. {
  7970. addFileHost(
  7971. "neodrive\.co\/\\w+",
  7972. 'btn1" id="free_download|onclick="freeDownload|id="pwd_protected">',
  7973. 'File not found|/imgs/broken.png',
  7974. 'optional--',
  7975. //'optional--',
  7976. "//a[contains(@href,'neodrive.co')]");
  7977. }
  7978. if (GM_getValue("Check_chayfile_dot_com_links", false))
  7979. {
  7980. addFileHost(
  7981. "chayfile\.com\/\\w+",
  7982. 'name="method_free"',
  7983. 'File Not Found|<h3>The file was removed by administrator</h3>',
  7984. 'optional--',
  7985. //'optional--',
  7986. "//a[contains(@href,'chayfile.com')]");
  7987. }
  7988. if (GM_getValue("Check_xfileload_dot_com_links", false))
  7989. {
  7990. addFileHost(
  7991. "xfileload\.com\/\\w+",
  7992. 'Filename:|Имя файла:|Dateiname:|nom de fichier :|اسم الملف:|Dosya AdД±|Nazwa:|Nombre de fichero:|NamaFile:|Bestandsnaam:|שם קובץ:"',
  7993. '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..|הקובץ שחיפשת לא נמצא.',
  7994. 'optional--',
  7995. //'optional--',
  7996. "//a[contains(@href,'xfileload.com')]");
  7997. }
  7998. if (GM_getValue("Check_rockfile_dot_eu_links", false))
  7999. {
  8000. addFileHost(
  8001. "rockfile\.eu\/\\w+",
  8002. 'You have requested:',
  8003. 'The file you were looking for could not be found, sorry for any inconvenience.',
  8004. 'optional--',
  8005. //'optional--',
  8006. "//a[contains(@href,'rockfile.eu')]");
  8007. }
  8008. if (GM_getValue("Check_24uploading_dot_com_links", false))
  8009. {
  8010. addFileHost(
  8011. "24uploading\.com\/\\w+",
  8012. 'File:|Download Speed:',
  8013. '<b>File Not Found</b>|file was removed',
  8014. 'optional--',
  8015. //'optional--',
  8016. "//a[contains(@href,'24uploading.com')]");
  8017. }
  8018. if (GM_getValue("Check_tusfiles_dot_net_links", false))
  8019. {
  8020. addFileHost(
  8021. "tusfiles\.net\/\\w+",
  8022. 'i/icon/dll.png"|>Start download<br',
  8023. 'no longer available<|i/ino.png"',
  8024. 'optional--',
  8025. //'optional--',
  8026. "//a[contains(@href,'tusfiles.net')]");
  8027. }
  8028. if (GM_getValue("Check_jumbofile_dot_net_links", false))
  8029. {
  8030. addFileHost(
  8031. "jumbofile\.net\/\\w+",
  8032. 'button" class="" value="Free',
  8033. 'This File Was Deleted',
  8034. 'optional--',
  8035. //'optional--',
  8036. "//a[contains(@href,'jumbofile.net')]");
  8037. }
  8038. if (GM_getValue("Check_ozofiles_dot_com_links", false))
  8039. {
  8040. addFileHost(
  8041. "ozofiles\.com\/\\w+",
  8042. 'button" value="Free',
  8043. 'File Not Found|width:500px;text-align:left;">|File Deleted',
  8044. 'optional--',
  8045. //'optional--',
  8046. "//a[contains(@href,'ozofiles.com')]");
  8047. }
  8048. if (GM_getValue("Check_loudupload_dot_net_links", false))
  8049. {
  8050. addFileHost(
  8051. "loudupload\.net\/\\w+",
  8052. 'value="Get Links',
  8053. 'File Not Found',
  8054. 'optional--',
  8055. //'optional--',
  8056. "//a[contains(@href,'loudupload.net')]");
  8057. }
  8058. if (GM_getValue("Check_rapidsonic_dot_com_links", false))
  8059. {
  8060. addFileHost(
  8061. "(rapidsonic|fileparadox)\\.com\/\\w+",
  8062. 'method_free" id="submit_btn|<h4><i class="icon_document_alt"></i>Download File</h4>',
  8063. '>File Not Found<|id="no_filedownload">|>FILE NOT FOUND<|file has been deleted|No such file with this filename',
  8064. 'optional--',
  8065. //'optional--',
  8066. "//a[contains(@href,'rapidsonic') or contains(@href,'fileparadox.com')]");
  8067. }
  8068. if (GM_getValue("Check_krotix_dot_net_links", false))
  8069. {
  8070. addFileHost(
  8071. "krotix\.net\/\\w+",
  8072. 'btn btn-warning|btn-free',
  8073. 'pageErrors|This File has been removed',
  8074. 'content="Scheduled Maintenance',
  8075. //'optional--',
  8076. "//a[contains(@href,'krotix.net')]");
  8077. }
  8078. if (GM_getValue("Check_userscloud_dot_com_links", false))
  8079. {
  8080. addFileHost(
  8081. "userscloud\.com\/\\w+",
  8082. 'btn_download',
  8083. '>Server OFFLINE|background:#D3D3D3;border-bottom:1px solid #BBB;font:bold 13px Verdana;padding:3px;">',
  8084. 'optional--',
  8085. //'optional--',
  8086. "//a[contains(@href,'userscloud.com')]");
  8087. }
  8088. if (GM_getValue("Check_kumpulbagi_dot_com_links", false))
  8089. {
  8090. addFileHost(
  8091. "kumpulbagi\.com\/\\w+",
  8092. 'class="button download',
  8093. 'internal server error',
  8094. 'optional--',
  8095. //'optional--',
  8096. "//a[contains(@href,'kumpulbagi.com')]");
  8097. }
  8098. if (GM_getValue("Check_faststore_dot_org_links", false))
  8099. {
  8100. addFileHost(
  8101. "faststore\.org\/\\w+",
  8102. 'name="method_free',
  8103. 'File Not Found',
  8104. 'optional--',
  8105. //'optional--',
  8106. "//a[contains(@href,'faststore.org')]");
  8107. }
  8108. if (GM_getValue("Check_prefiles_dot_com_links", false))
  8109. {
  8110. addFileHost(
  8111. "prefiles\.com\/\\w+",
  8112. 'id="method_free',
  8113. 'File not Found',
  8114. 'optional--',
  8115. //'optional--',
  8116. "//a[contains(@href,'prefiles.com')]");
  8117. }
  8118. if (GM_getValue("Check_doraupload_dot_com_links", false))
  8119. {
  8120. addFileHost(
  8121. "doraupload\.com\/\\w+",
  8122. 'btn_download',
  8123. 'class="error-code|Could Not Be Found',
  8124. 'optional--',
  8125. //'optional--',
  8126. "//a[contains(@href,'doraupload.com')]");
  8127. }
  8128. if (GM_getValue("Check_openload_dot_io_links", false))
  8129. {
  8130. addFileHost(
  8131. "openload\.io\/\\w+",
  8132. 'btn btn-primary|class="count">',
  8133. 'class="jumbotron">|We are sorry',
  8134. 'optional--',
  8135. //'optional--',
  8136. "//a[contains(@href,'openload.io')]");
  8137. }
  8138. if (GM_getValue("Check_uploads_dot_xxx_links", false))
  8139. {
  8140. addFileHost(
  8141. "uploads\.xxx\/\\w+",
  8142. 'downoadForFree',
  8143. 'File not found',
  8144. 'optional--',
  8145. //'optional--',
  8146. "//a[contains(@href,'uploads.xxx')]");
  8147. }
  8148. if (GM_getValue("Check_zxcfiles_dot_com_links", false))
  8149. {
  8150. addFileHost(
  8151. "zxcfiles\.com\/\\w+",
  8152. 'class="downloadbtn',
  8153. 'File Not Found',
  8154. 'optional--',
  8155. //'optional--',
  8156. "//a[contains(@href,'zxcfiles.com')]");
  8157. }
  8158. if (GM_getValue("Check_up07_dot_net_links", false))
  8159. {
  8160. addFileHost(
  8161. "up07\.net\/\\w+",
  8162. 'name="method_free',
  8163. 'File Not Found',
  8164. 'optional--',
  8165. //'optional--',
  8166. "//a[contains(@href,'up07.net')]");
  8167. }
  8168. if (GM_getValue("Check_fileupload_dot_pw_links", false))
  8169. {
  8170. addFileHost(
  8171. "fileupload\.pw\/\\w+",
  8172. 'value="Free"',
  8173. 'File Not Found',
  8174. 'optional--',
  8175. //'optional--',
  8176. "//a[contains(@href,'fileupload.pw')]");
  8177. }
  8178. if (GM_getValue("Check_4upld_dot_com_links", false))
  8179. {
  8180. addFileHost(
  8181. "4upld\.com\/\\w+",
  8182. 'alt="Download Now"|content="Download file">|btn-free-element',
  8183. '<title>Error|content="error|File not found',
  8184. 'optional--',
  8185. //'optional--',
  8186. "//a[contains(@href,'4upld.com')]");
  8187. }
  8188. if (GM_getValue("Check_newfileland_dot_com_links", false))
  8189. {
  8190. addFileHost(
  8191. "newfileland\.com\/\\w+",
  8192. 'name="method_free',
  8193. 'File Not Found',
  8194. 'optional--',
  8195. //'optional--',
  8196. "//a[contains(@href,'newfileland.com')]");
  8197. }
  8198. if (GM_getValue("Check_swoopshare_dot_com_links", false))
  8199. {
  8200. addFileHost(
  8201. "(?:.swoopshare)\\.com\/\\w+",
  8202. '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',
  8203. '<input type="file" name="f"',
  8204. 'optional--',
  8205. //'optional--',
  8206. "//a[contains(@href,'swoopshare.com')]"
  8207. );
  8208. }
  8209. if (GM_getValue("Check_cloudshares_dot_net_links", false))
  8210. {
  8211. addFileHost(
  8212. "cloudshares\.net\/\\w+",
  8213. '"method_free|"Low Speed Download|submit" name="go',
  8214. 'Not Found|"width:500px;text-align:left;">|No such file exist',
  8215. 'optional--',
  8216. //'optional--',
  8217. "//a[contains(@href,'cloudshares.net')]"
  8218. );
  8219. }
  8220. if (GM_getValue("Check_allmyvideos_dot_net_links", false))
  8221. {
  8222. addFileHost(
  8223. "allmyvideos\.net\/\\w+",
  8224. 'Continue to Video',
  8225. 'File Not Found|class="err">Removed for',
  8226. 'optional--',
  8227. //'optional--',
  8228. "//a[contains(@href,'allmyvideos.net')]"
  8229. );
  8230. }
  8231. if (GM_getValue("Check_vodlocker_dot_com_links", false))
  8232. {
  8233. addFileHost(
  8234. "vodlocker\.com\/\\w+",
  8235. 'Proceed to video',
  8236. 'Not Found',
  8237. 'optional--',
  8238. //'optional--',
  8239. "//a[contains(@href,'vodlocker.com')]"
  8240. );
  8241. }
  8242. if (GM_getValue("Check_vidbull_dot_com_links", false))
  8243. {
  8244. addFileHost(
  8245. "vidbull\.com\/\\w+",
  8246. 'Verifying Video Request',
  8247. 'File Not Found',
  8248. 'optional--',
  8249. //'optional--',
  8250. "//a[contains(@href,'vidbull.com')]");
  8251. }
  8252. if (GM_getValue("Check_novamov_dot_com_links", false))
  8253. {
  8254. addFileHost(
  8255. "novamov\.com\/\\w+",
  8256. 'For version detection',
  8257. 'file no longer exists',
  8258. 'optional--',
  8259. //'optional--',
  8260. "//a[contains(@href,'novamov.com')]"
  8261. );
  8262. }
  8263. if (GM_getValue("Check_filehoot_dot_com_links", false))
  8264. {
  8265. addFileHost(
  8266. "filehoot\.com\/\\w+",
  8267. 'Continue to watch',
  8268. 'File Not Found',
  8269. 'optional--',
  8270. //'optional--',
  8271. "//a[contains(@href,'filehoot.com')]"
  8272. );
  8273. }
  8274. if (GM_getValue("Check_stagevu_dot_com_links", false))
  8275. {
  8276. addFileHost(
  8277. "stagevu\.com\/\\w+",
  8278. 'Video Info',
  8279. 'No video with the provided',
  8280. 'optional--',
  8281. //'optional--',
  8282. "//a[contains(@href,'stagevu.com')]"
  8283. );
  8284. }
  8285. if (GM_getValue("Check_cloudtime_dot_to_links", false))
  8286. {
  8287. addFileHost(
  8288. "cloudtime\.to\/\\w+",
  8289. 'Download the video',
  8290. 'no longer exists',
  8291. 'optional--',
  8292. //'optional--',
  8293. "//a[contains(@href,'cloudtime.to')]"
  8294. );
  8295. }
  8296. if (GM_getValue("Check_streamin_dot_to_links", false))
  8297. {
  8298. addFileHost(
  8299. "streamin\.to\/\\w+",
  8300. 'id="btn_download',
  8301. 'Not Found|Copyright Infringement|File Deleted',
  8302. 'optional--',
  8303. //'optional--',
  8304. "//a[contains(@href,'streamin.to')]"
  8305. );
  8306. }
  8307. if (GM_getValue("Check_videoweed_dot_es_links", false))
  8308. {
  8309. addFileHost(
  8310. "videoweed\.es\/\\w+",
  8311. 'version detection',
  8312. 'no longer exists',
  8313. 'optional--',
  8314. //'optional--',
  8315. "//a[contains(@href,'videoweed.es')]"
  8316. );
  8317. }
  8318. if (GM_getValue("Check_nowvideo_dot_sx_links", false))
  8319. {
  8320. addFileHost(
  8321. "nowvideo\.sx\/\\w+",
  8322. 'Download this video',
  8323. 'no longer exists',
  8324. 'optional--',
  8325. //'optional--',
  8326. "//a[contains(@href,'nowvideo.sx')]"
  8327. );
  8328. }
  8329. if (GM_getValue("Check_thevideo_dot_me_links", false))
  8330. {
  8331. addFileHost(
  8332. "thevideo\.me\/\\w+",
  8333. 'Upgrade your account|Proceed to video',
  8334. 'File Not Found',
  8335. 'optional--',
  8336. //'optional--',
  8337. "//a[contains(@href,'thevideo.me')]"
  8338. );
  8339. }
  8340. if (GM_getValue("Check_gorillavid_dot_in_links", false))
  8341. {
  8342. addFileHost(
  8343. "gorillavid\.in\/\\w+",
  8344. 'Wait 5 seconds',
  8345. 'File Not Found',
  8346. 'optional--',
  8347. //'optional--',
  8348. "//a[contains(@href,'gorillavid.in')]"
  8349. );
  8350. }
  8351. if (GM_getValue("Check_thefile_dot_me_links", false))
  8352. {
  8353. addFileHost(
  8354. "thefile\.me\/\\w+",
  8355. 'Choose free or',
  8356. '',
  8357. 'optional--',
  8358. //'optional--',
  8359. "//a[contains(@href,'thefile.me')]"
  8360. );
  8361. }
  8362. if (GM_getValue("Check_vidzi_dot_tv_links", false))
  8363. {
  8364. addFileHost(
  8365. "vidzi\.tv\/\\w+",
  8366. 'video-embed-modal row',
  8367. 'File Not Found|file was deleted',
  8368. 'optional--',
  8369. //'optional--',
  8370. "//a[contains(@href,'vidzi.tv')]"
  8371. );
  8372. }
  8373. if (GM_getValue("Check_filenuke_dot_com_links", false))
  8374. {
  8375. addFileHost(
  8376. "filenuke\.com\/\\w+",
  8377. 'Download File',
  8378. 'Earn with us',
  8379. 'optional--',
  8380. //'optional--',
  8381. "//a[contains(@href,'filenuke.com')]"
  8382. );
  8383. }
  8384. if (GM_getValue("Check_vidto_dot_me_links", false))
  8385. {
  8386. addFileHost(
  8387. "vidto\.me\/\\w+",
  8388. 'Proceed to video',
  8389. 'Not Found',
  8390. 'optional--',
  8391. //'optional--',
  8392. "//a[contains(@href,'vidto.me')]"
  8393. );
  8394. }
  8395. if (GM_getValue("Check_vidspot_dot_net_links", false))
  8396. {
  8397. addFileHost(
  8398. "vidspot\.net\/\\w+",
  8399. 'Duration',
  8400. 'Removed for',
  8401. 'optional--',
  8402. //'optional--',
  8403. "//a[contains(@href,'vidspot.net')]"
  8404. );
  8405. }
  8406. if (GM_getValue("Check_sharesix_dot_com_links", false))
  8407. {
  8408. addFileHost(
  8409. "(?:sharesix\\.com|sharesix\\.net)\/\\w+",
  8410. 'Download File',
  8411. 'File Not Found',
  8412. 'optional--',
  8413. //'optional--',
  8414. "//a[contains(@href,'sharesix.com') or contains(@href,'sharesix.net/')]"
  8415. );
  8416. }
  8417. if (GM_getValue("Check_movpod_dot_in_links", false))
  8418. {
  8419. addFileHost(
  8420. "movpod\.in\/\\w+",
  8421. 'Continue',
  8422. 'File Not Found',
  8423. 'optional--',
  8424. //'optional--',
  8425. "//a[contains(@href,'movpod.in')]"
  8426. );
  8427. }
  8428.  
  8429. }
  8430. //start here
  8431.  
  8432. //hosts with direct download, so they must be requested for headers only
  8433. function initFileHostsHeadersOnly()
  8434. {
  8435. function addFileHostHeadersOnly(linkRegex, isAliveRegex, isDeadRegex, xpathEx, ispremRegex)
  8436. {
  8437. var host = new Array(5);
  8438. host[0] = linkRegex;
  8439. host[1] = isAliveRegex;
  8440. host[2] = isDeadRegex;
  8441. host[3] = xpathEx;
  8442. host[4] = ispremRegex;
  8443. http_file_hosts_headers_only.push(host);
  8444. }
  8445. if (GM_getValue("Check_uloziste_dot_com_links", false))
  8446. {
  8447. addFileHostHeadersOnly(
  8448. "(?:|files\\.)uloziste\\.com\/\\w+\/\\w+",
  8449. 'Connection: Keep-Alive',
  8450. 'Content-Length: 3857',
  8451. "//a[contains(@href,'uloziste.com')]"
  8452. )
  8453. }
  8454. if (GM_getValue("Check_adrive_dot_com_links", false))
  8455. {
  8456. addFileHostHeadersOnly(
  8457. "adrive\\.com\/public\/\\w+",
  8458. 'Connection: keep-alive',
  8459. 'orig_ref=deleted',
  8460. "//a[contains(@href,'adrive.com')]"
  8461. )
  8462. }
  8463. if (GM_getValue("Check_myupload_dot_dk_links", false))
  8464. {
  8465. addFileHostHeadersOnly(
  8466. "myupload\\.dk\/showfile\/\\w+",
  8467. 'Expires:',
  8468. 'squeeze1\\s+Vary',
  8469. "//a[contains(@href,'myupload.dk/showfile')]"
  8470. )
  8471. }
  8472. }
  8473. //CustomRules
  8474. //functions add...Host copied here
  8475. function addObsoleteHost(linkRegex, xpathEx)
  8476. {
  8477. var host = new Array(2);
  8478. host[0] = linkRegex;
  8479. host[1] = xpathEx;
  8480. http_file_hosts_obsolete.push(host);
  8481. }
  8482. function addFileHost(linkRegex, isAliveRegex, isDeadRegex, isUnavaRegex, xpathEx, tryLoop, ispremRegex)
  8483. {
  8484. var host = new Array(7);
  8485. host[0] = linkRegex;
  8486. host[1] = isAliveRegex;
  8487. host[2] = isDeadRegex;
  8488. host[3] = isUnavaRegex;
  8489. host[4] = xpathEx;
  8490. tryLoop ? host[5] = true : host[5] = false;
  8491. host[6] = ispremRegex;
  8492. http_file_hosts.push(host);
  8493. }
  8494. function addFileHostHeadersOnly(linkRegex, isAliveRegex, isDeadRegex, xpathEx, ispremRegex)
  8495. {
  8496. var host = new Array(5);
  8497. host[0] = linkRegex;
  8498. host[1] = isAliveRegex;
  8499. host[2] = isDeadRegex;
  8500. host[3] = xpathEx;
  8501. host[4] = ispremRegex;
  8502. http_file_hosts_headers_only.push(host);
  8503. }
  8504. //takes a fully built rules array and adds the rules to WARLC
  8505. function applyCustomRules(customRules)
  8506. {
  8507. if (!customRules) return;
  8508. var rules, r, i;
  8509. rules = customRules.rules;
  8510. for (i = 0 ; i < rules.length ; i++)
  8511. {
  8512. r = rules[i];
  8513. if (r.enabled)
  8514. {
  8515. switch (r.type)
  8516. {
  8517. case 'single':
  8518. addFileHost(r.urlregex, r.aliveregex, r.deadregex, r.unavaregex, r.premregex||'', r.xpath);
  8519. break;
  8520. case 'headers':
  8521. addFileHostHeadersOnly(r.urlregex, r.aliveregex, r.deadregex, r.xpath, r.premregex);
  8522. break;
  8523. case 'obsolete':
  8524. addObsoleteHost(r.urlregex, r.xpath)
  8525. break;
  8526. }
  8527. }
  8528. }
  8529. }
  8530.  
  8531.  
  8532. function initFileHostsCustom()
  8533. {
  8534. if (Custom_rules && Custom_rules_text)
  8535. {
  8536. var msg = '';
  8537. if (newVersion)
  8538. msg = 'New version of W.A.R. Links Checker detected.\n\n';
  8539. else if ((now - last_custom_rules_nag) >= 60*24*60*60*1000)
  8540. msg = '60 or more days have passed since this notification.\n\n';
  8541. if (msg && /^\s*@customrule(?:_obsolete)?\s/mi.test(Custom_rules_text))
  8542. {
  8543. GM_setValue('last_custom_rules_nag', ''+new Date().getTime()); //reset nag
  8544. msg +=
  8545. 'Either new version of W.A.R. Links Checker detected or 60 days passed since this notify.\n'+
  8546. 'Please check that your custom rules haven\'t been built into WARLC.\n'+
  8547. 'If not, please share them with us so they can be included in the next version! Built-in rules are always preferred.\n\n'+
  8548. 'We apologize for this annoying notification, but there is a reason to this.\n'+
  8549. 'Ideally, WARLC would check which of your custom rules have been included and disable them. '+
  8550. 'Unfortunately, there is no easy way to do that, but we don\'t want everybody to just use their custom rules '+
  8551. 'forever without ever checking if the built-in ones have been added/fixed. This is currently the only way '+
  8552. 'to remind you that you should try built-in rules, report missing/non-working ones and share your custom rules.';
  8553. setTimeout(function(){alert(msg)},0);
  8554. }
  8555. var customRules = parseCustomRules(Custom_rules_text);
  8556. if (customRules.warning || customRules.error)
  8557. alert('There were ' + customRules.error + ' errors, ' + customRules.warning + ' warnings, ' +
  8558. customRules.note + ' notes found during Custom Rules processing.\n' + customRules.rules.length + ' valid rules found.\n\n' +
  8559. JSON.stringify(customRules.info, null, ' '));
  8560. applyCustomRules(customRules);
  8561. }
  8562. }
  8563. //end of CustomRules processing
  8564.  
  8565.  
  8566.  
  8567. } //end of function start
  8568.  
  8569.  
  8570.  
  8571. function initClipBoardTools()
  8572. {
  8573. unsafeWindow.copyToClipboard = function(text)
  8574. {
  8575. try
  8576. {
  8577. this.netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
  8578.  
  8579. var str = Components.classes["@mozilla.org/supports-string;1"].
  8580. createInstance(Components.interfaces.nsISupportsString);
  8581. if (!str) return false;
  8582.  
  8583. str.data = text;
  8584.  
  8585. var trans = Components.classes["@mozilla.org/widget/transferable;1"].
  8586. createInstance(Components.interfaces.nsITransferable);
  8587. if (!trans) return false;
  8588.  
  8589. trans.addDataFlavor("text/unicode");
  8590. trans.setTransferData("text/unicode", str, text.length * 2);
  8591.  
  8592. var clipid = Components.interfaces.nsIClipboard;
  8593. var clip = Components.classes["@mozilla.org/widget/clipboard;1"].getService(clipid);
  8594. if (!clip) return false;
  8595.  
  8596. clip.setData(trans, null, clipid.kGlobalClipboard);
  8597. } catch (e) {
  8598. GM_log("Error copyToClipboard : " + e);
  8599. alert(e + "\n\nsigned.applets.codebase_principal_support must be set true in about:config")
  8600. }
  8601. }
  8602. }
  8603.  
  8604.  
  8605.  
  8606. //CustomRules
  8607.  
  8608. function escapeRegex(str)
  8609. {
  8610. return str.replace(/[\-\[\]{}()*+?.,\\\^$|#]/g, "\\$&");
  8611. }
  8612.  
  8613.  
  8614. //called internally from parseCustomRules.
  8615. //expected: rule object with array fields baseurl, alivematch etc, everything must already be checked for input errors
  8616. //returns the rule object with string fields urlregex, xpath, aliveregex etc built from the arrays
  8617. function makeCustomRule(rule)
  8618. {
  8619. function makeMatchRegex(arrmatch)
  8620. {
  8621. return escapeRegex(arrmatch.join('\n'))
  8622. .replace(/ +/g, '\\s+') //two or more spaces to any whitespace
  8623. .replace(/\n/g,'|'); //join together
  8624. }
  8625. if (rule.alivematch) rule.aliveregex = makeMatchRegex(rule.alivematch);
  8626. if (rule.deadmatch) rule.deadregex = makeMatchRegex(rule.deadmatch);
  8627. if (rule.unavamatch) rule.unavaregex = makeMatchRegex(rule.unavamatch);
  8628. if (rule.premmatch) rule.premregex = makeMatchRegex(rule.premmatch);
  8629. if (rule.baseurl)
  8630. {
  8631. var i, m, urlregex = [], xpath = [], len = rule.baseurl.length;
  8632. for (i = 0 ; i < len ; i++)
  8633. {
  8634. m = rule.baseurl[i].match(/^([a-z0-9\.-]+)(?: +([a-z \.]+) +)?(\/.*)$/);
  8635. if (m[2]) //baseurl in the form: example. com co.uk net /xxx
  8636. {
  8637. 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'])
  8638. urlregex.push( (m[1] + '(?:'+ m[2].replace(/\s+/g,'|') + ')').replace(/\./g,'\\.') + escapeRegex(m[3]) + '.'); //urlregex.push('example\\.(?:com|co\\.uk|net)/xxx.')
  8639. }
  8640. else //baseurl in the form: example.com/xxx
  8641. {
  8642. xpath.push(m[0]);
  8643. urlregex.push(escapeRegex(m[0]) + '.');
  8644. }
  8645. }
  8646. rule.xpath = "//a[contains(@href,'" + xpath.join("') or contains(@href,'") + "')]";
  8647. rule.urlregex = '(?:[a-z0-9\\.-]+\\.)?(?:' + urlregex.join('|') + ')';
  8648. }
  8649. return rule;
  8650. } //function makeCustomRule
  8651.  
  8652.  
  8653. /*
  8654. Takes a string containing custom link checking rules.
  8655. Returns an object with fields:
  8656. info - contains notes, warnings and errors found during parsing
  8657. rules - the array of custom rules
  8658. note, warning, error - number of each of them found during parsing
  8659. Format of the input string:
  8660. One command per line. Command format: @keyword parameter
  8661. Keywords:
  8662. @customrule, @customrule_obsolete, @customrule_headers - begin a new custom rule. Parameter: name of the rule
  8663. @#customrule, @#customrule_obsolete, @#customrule_headers - begin and parse this custom rule, but don't use it. Parameter: name of the rule
  8664. These keywords can be multiple (any of them will work):
  8665. @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...)
  8666. @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+
  8667. @alivelink, @deadlink - example links
  8668. @baseurl is always required, @alivematch and @deadmatch are required except for obsolete. @unavamatch is ignored for obsolete. @*link is optional.
  8669. Lines starting with // and empty lines are ignored.
  8670. Invalid parameters generate errors and those lines are skipped.
  8671. Other lines generate warnings, but are otherwise ignored (also those before the first @customrule line or inside a rule with invalid name).
  8672. Example:
  8673. @customrule filehost
  8674. @baseurl filehost.com/download/
  8675. @baseurl filehost2. com net /d?=
  8676. @alivematch id="download">
  8677. @deadmatch File not found
  8678. @deadmatch File deleted
  8679. */
  8680. function parseCustomRules(rulesStr)
  8681. {
  8682. var linenum, customRules = {'info': [], 'rules': [], 'note': 0, 'warning': 0, 'error': 0};
  8683. function addInfo(type, msg, ln){
  8684. customRules.info.push({'linenum':(ln===undefined ? linenum+1 : ln+1), 'type':type, 'msg':msg});
  8685. customRules[type]++;
  8686. }
  8687. var lines = rulesStr.match(/^(.*)$/gm); //split into array of lines
  8688. if (!lines) return null;
  8689. lines.push('@#customrule _'); //to save the last rule
  8690. var m, linecount = lines.length;
  8691. var keyword, param, constr, rule, err;
  8692. var TLD = '[a-z]{2,7}(?:\\.[a-z]{2,7})?';
  8693. var TLDorTLDlist = '(?:'+TLD+'| '+TLD+'(?: '+TLD+'){0,9} )'; //TLD or space-separated list of TLDs
  8694. var baseurlRE = new RegExp('^([a-z0-9-]{1,30}(?:\\.[a-z0-9-]{1,30}){0,2}\\.)'+TLDorTLDlist+'(/[^\'"\s\$]{0,50})$', 'i');
  8695. var constraints = {
  8696. 'baseurl': {
  8697. 'single': {'min': 1, 'max': 10, 'paramRE': baseurlRE},
  8698. 'headers': {'min': 1, 'max': 10, 'paramRE': baseurlRE},
  8699. 'obsolete': {'min': 1, 'max': 10, 'paramRE': baseurlRE}},
  8700. 'alivematch': {
  8701. 'single': {'min': 1, 'max': 10, 'paramRE': null},
  8702. 'headers': {'min': 1, 'max': 10, 'paramRE': null}},
  8703. 'deadmatch': {
  8704. 'single': {'min': 1, 'max': 10, 'paramRE': null},
  8705. 'headers': {'min': 1, 'max': 10, 'paramRE': null}},
  8706. 'unavamatch': {
  8707. 'single': {'min': 0, 'max': 10, 'paramRE': null}},
  8708. 'alivelink': {
  8709. 'single': {'min': 0, 'max': 10, 'paramRE': null},
  8710. 'headers': {'min': 0, 'max': 10, 'paramRE': null}},
  8711. 'deadlink': {
  8712. 'single': {'min': 0, 'max': 10, 'paramRE': null},
  8713. 'headers': {'min': 0, 'max': 10, 'paramRE': null},
  8714. 'obsolete': {'min': 0, 'max': 10, 'paramRE': null}}
  8715. };
  8716. for (linenum = 0 ; linenum < linecount ; linenum++)
  8717. {
  8718. //capturing groups: 1 23 4 5 6
  8719. m = lines[linenum].match(/^\s*(?:(\/\/.*)|@((#?)(customrule)(?:_(headers|obsolete))?|baseurl|alivematch|deadmatch|unavamatch|alivelink|deadlink)\s+(.+))?$/i);
  8720. if (m)
  8721. {
  8722. if (m[1] || !m[2])
  8723. continue; // ignore empty lines and lines starting with //
  8724. keyword = (m[4] || m[2]).toLowerCase();
  8725. param = m[6];
  8726. if (keyword == 'customrule')
  8727. {
  8728. //save the current rule if all required fields are provided
  8729. if (rule)
  8730. {
  8731. err = false;
  8732. $.each(constraints, function(kw, constraint){
  8733. var l, constr = constraint[rule.type];
  8734. if (constr)
  8735. {
  8736. l = rule[kw] ? rule[kw].length : 0;
  8737. if (l < constr.min || l > constr.max)
  8738. {
  8739. 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);
  8740. err = true;
  8741. }
  8742. }
  8743. });
  8744. if (!err)
  8745. customRules.rules.push(makeCustomRule(rule));
  8746. }
  8747. //start a new rule
  8748. if (/^[\w\.-]{1,30}$/.test(param)) //valid name?
  8749. {
  8750. rule = {
  8751. 'enabled': !m[3],
  8752. 'type': m[5] ? m[5].toLowerCase() : 'single',
  8753. 'name': param
  8754. };
  8755. }
  8756. else
  8757. {
  8758. addInfo('error', 'Invalid rule name. Cannot start a new rule definition.');
  8759. rule = null;
  8760. }
  8761. }
  8762. else //good line format, but keyword other than customrule
  8763. {
  8764. if (!rule)
  8765. {
  8766. addInfo('warning', 'Command outside @CUSTOMRULE definiton. Line skipped.');
  8767. continue;
  8768. }
  8769. if (constraints[keyword])
  8770. {
  8771. constr = constraints[keyword][rule.type];
  8772. if (constr)
  8773. {
  8774. if (constr.paramRE && !constr.paramRE.test(param))
  8775. {
  8776. addInfo('warning', 'Invalid @' + keyword.toUpperCase() + ' parameter. Line Skipped.');
  8777. continue;
  8778. }
  8779. }
  8780. else
  8781. {
  8782. addInfo('note', '@' + keyword.toUpperCase() + ' not applicable for type ' + rule.type.toUpperCase() + '. Line skipped.');
  8783. continue;
  8784. }
  8785. }
  8786. //line OK, save
  8787. rule[keyword] ? rule[keyword].push(param) : rule[keyword] = [param];
  8788. }
  8789. } //if (m)
  8790. else
  8791. addInfo('warning', 'Unknown line format. Line skipped.');
  8792. } //for loop
  8793. return customRules;
  8794. } //function parseCustomRules