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

detects live, dead and premium links.

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

  1. // ==UserScript==
  2. // @name W.A.R. Links Checker Customized Premium Link Version
  3. // @description detects live, dead and premium links.
  4. // @details this script automatically checks links from 650+ filehosts. For Firefox, Chrome, Opera, Safari.
  5. // @namespace premium version
  6. // @version 1.1.8.1
  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. "turbobit.ru",
  36. "sharesix.com|sharesix.net",
  37. "movpod.in",
  38. "thefile.me",
  39. "vidzi.tv",
  40. "videoweed.es",
  41. "vodlocker.com",
  42. "nowvideo.sx",
  43. "cloudtime.to",
  44. "thevideo.me",
  45. "vidbull.com",
  46. "allmyvideos.net",
  47. "novamov.com",
  48. "filehoot.com",
  49. "stagevu.com",
  50. "gorillavid.in",
  51. "streamin.to",
  52. "4upld.com",
  53. "cloudshares.net",
  54. "swoopshare.com",
  55. "newfileland.com",
  56. "2shared.com",
  57. "fileupload.pw",
  58. "zxcfiles.com",
  59. "up07.net",
  60. "4shared.com",
  61. "adrive.com",
  62. "aisfile.com",
  63. "hexupload.com",
  64. "bezvadata.cz",
  65. "burnupload.com|burnupload.ihiphop.com",
  66. "xkeepfile.com|Gamesena.com",
  67. // "firedrive.com",
  68. "usersfiles.com",
  69. "pan.baidu.com",
  70. "radicalshare.com",
  71. "cramit.in|cramitin.net",
  72. "datei.to",
  73. "daten-hoster.de|filehosting.org|xtraupload.de",
  74. "demo.ovh.eu",
  75. "depositfiles.com|depositfiles.lt|depositfiles.org|dfiles.ru|dfiles.eu",
  76. "divshare.com",
  77. "easy-share.com|crocko.com",
  78. "easybytez.com",
  79. "edisk.cz",
  80. "euroshare.eu",
  81. "file-upload.net",
  82. "yadi.sk",
  83. "ryushare.com",
  84. "wizupload.com",
  85. "fastshare.cz",
  86. "filefactory.com",
  87. "share.vnn.vn",
  88. "yunpan.cn",
  89. "gulfup.com",
  90. "tropicshare.com",
  91. "cloudzilla.to",
  92. "inclouddrive.com",
  93. "fileflyer.com",
  94. "filerio.com|filekeen.com",
  95. "up.4share.vn",
  96. "upfile.vn",
  97. "datafilehost.com",
  98. "fileband.com",
  99. "worldbytez.com",
  100. "files.mail.ru",
  101. "filepost.com|fp.io",
  102. "filesflash.com",
  103. "box.com",
  104. "box.net",
  105. "goldbytez.com",
  106. "sdilej.cz",
  107. "ex-load.com",
  108. "filesmonster.com",
  109. "filestore.to",
  110. // "freakshare.net",
  111. "hulkload.com",
  112. "filedropper.com",
  113. "free-uploading.com",
  114. "gamefront.com|filefront.com",
  115. "gettyfile.ru",
  116. "gigapeta.com",
  117. "gigasize.com",
  118. "hellshare.com",
  119. "hellspy.com",
  120. "hitfile.net",
  121. "hostuje.net",
  122. "freefilehosting.net",
  123. "free.fr",
  124. "hulkshare.com",
  125. "hyperfileshare.com",
  126. "filecloud.io|ifile.it",
  127. "ifolder.ru",
  128. "jumbofiles.com",
  129. "uploadrocket.net",
  130. "lafiles.com",
  131. "leteckaposta.cz|sharegadget.com",
  132. "letitbit.net",
  133. "load.to",
  134. "mediafire.com",
  135. "megafileupload.com",
  136. "megashares.com",
  137. "movshare.net",
  138. "muchshare.net",
  139. "myupload.dk",
  140. "narod.ru|narod.yandex.ru",
  141. "netload.in",
  142. "fboom.me",
  143. "fileboom.me",
  144. "openfile.ru",
  145. "partage-facile.com",
  146. "plunder.com",
  147. // "putlocker.com",
  148. "sharerapid.cz",
  149. "exclusiveloader.com",
  150. "acefile.net",
  151. "queenshare.com",
  152. "quickshare.cz",
  153. "rapidgator.net",
  154. "keep2share.com",
  155. "oboom.com",
  156. "filepi.com",
  157. "neodrive.co",
  158. "rarefile.net",
  159. "rayfile.com",
  160. "rghost.net",
  161. "sendmyway.com",
  162. "clicknupload.com",
  163. "sharemods.com",
  164. "hostr.co",
  165. "sendspace.com",
  166. "sharecash.org",
  167. "share-links.biz",
  168. "share-online.biz|egoshare.com",
  169. "megarapid.cz",
  170. "shareflare.net",
  171. "solidfiles.com",
  172. "led.wf",
  173. "lan.wf",
  174. "adlink.wf",
  175. "click.tf",
  176. "kyc.pm",
  177. "ssh.tf",
  178. "ssh.yt",
  179. "yep.pm",
  180. "stahovanizasms.cz",
  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. "180upload.com",
  233. "verzend.be",
  234. "movreel.com",
  235. "4up.me",
  236. "extmatrix.com",
  237. "sendfiles.nl",
  238. "yourfilestore.com",
  239. "filebig.net",
  240. "nekaka.com",
  241. "file4safe.com",
  242. "tusfiles.net",
  243. "filemac.com",
  244. "idup.in",
  245. "fileswap.com",
  246. "ozofiles.com",
  247. "loudupload.net",
  248. "nosupload.com",
  249. "gboxes.com",
  250. "myvdrive.com|fileserving.com",
  251. "filesin.com",
  252. "novafile.com",
  253. "longfiles.com",
  254. "uploadhero.com",
  255. "uploadbaz.com",
  256. "bitupload.com",
  257. "indowebster.com",
  258. "superload.cz",
  259. "mafiastorage.com",
  260. "4upfiles.com",
  261. "filesmelt.com",
  262. "hellupload.com",
  263. "uploadingit.com",
  264. "stiahni.si",
  265. "sendspace.pl",
  266. "fastshare.org",
  267. "filejoker.net",
  268. "filestore.com.ua",
  269. "secureupload.eu",
  270. "rapidfileshare.net",
  271. "stiahnito.sk",
  272. "rusfolder.com",
  273. "fileover.net",
  274. "catshare.net",
  275. "anonfiles.com",
  276. "mixturecloud.com",
  277. "fileparadox.in",
  278. "filedais.com",
  279. "imdb.com",
  280. "nitroflare.com",
  281. "akafile.com",
  282. "creafile.net",
  283. "hugefiles.net",
  284. "vidxden.com",
  285. "up.top4top.net",
  286. "upload.ee",
  287. "shareplace.org",
  288. "uploadc.com",
  289. "remixshare.com",
  290. "exoshare.com",
  291. "borncash.org",
  292. "junocloud.me",
  293. "keep2share.cc",
  294. "k2s.cc",
  295. "expressleech.com",
  296. "2downloadz.com",
  297. "mightyupload.com",
  298. "anysend.com",
  299. "datafile.com",
  300. "upstore.net",
  301. "upsto.re",
  302. "speedy.sh",
  303. "sanshare.com",
  304. "kingfiles.net",
  305. "uploadhero.co",
  306. "ge.tt",
  307. "filesflash.net",
  308. "salefiles.com",
  309. "keep2s.cc",
  310. "megairon.net",
  311. "datoid.cz",
  312. "cloudstor.es",
  313. "streamfile.com",
  314. "eyesfile.ca",
  315. "filemoney.com",
  316. "uploadboy.com",
  317. "speedshare.eu",
  318. "google.com",
  319. "unlimitzone.com",
  320. "rioupload.com",
  321. "rg.to",
  322. "jumbofiles.org",
  323. "fshare.vn",
  324. "spaceforfiles.com",
  325. "up.media1fire.com",
  326. "depfile.com",
  327. "go4up.com",
  328. "dropbox.com",
  329. "redbunker.net",
  330. "divxpress.com",
  331. "mega.nz|mega.co.nz",
  332. "anafile.com",
  333. "uploadable.ch",
  334. "arabloads.com",
  335. "sharerepo.com",
  336. "sfshare.se",
  337. "files.fm",
  338. "koofile.com",
  339. "vidplay.net",
  340. "storagon.com",
  341. "doraupload.com",
  342. "openload.io",
  343. "geupload.com|lenfile.com",
  344. "uploads.xxx",
  345. ];
  346.  
  347. try
  348. {
  349. //iframes excluded
  350. if (window.top != window.self)
  351. {
  352. return;
  353. }
  354. //allHostNames sites excluded
  355. if (window.location.href.match("https?:\/\/(www\.)?[\w\.-]*(?:" +
  356. allHostNames.join("|").replace(/\./g, "\\.").replace(/-/g, "\\-") +
  357. ")"))
  358. {
  359. return;
  360. }
  361. }
  362. catch (e)
  363. {
  364. return;
  365. }
  366.  
  367. //separate alternative domains with "|" char (first name is considered being main)
  368. var allContainerNames = [
  369. "adf.ly",
  370. "linkcrypt.ws",
  371. "linksafe.me",
  372. "linksave.in",
  373. "linkto.net",
  374. "madlink.sk",
  375. "multiload.cz",
  376. "mirrorcreator.com",
  377. "ncrypt.in",
  378. "redi.re",
  379. "relink.us",
  380. "safelinking.net",
  381. "theloo.katt.it",
  382. "bit.ly",
  383.  
  384. ];
  385.  
  386. //separate alternative domains with "|" char (first name is considered being main)
  387. var allObsoleteNames = [
  388. "uloz.cz",
  389. "freakshare.com",
  390. "freakshare.net",
  391. "daj.to",
  392. "bl.st",
  393. "2drive.net",
  394. "crisshare.com",
  395. "tufiles.ru",
  396. "uncapped-downloads.com",
  397. "sockshare.com",
  398. "ddlstorage.com",
  399. "dataport.cz",
  400. "dizzcloud.com",
  401. "sharebeast.com",
  402. "stahovadlo.cz",
  403. "shared.com",
  404. "storage.to",
  405. "putlocker.com",
  406. "lumfile.com",
  407. "lumfile.se",
  408. "lumfile.eu",
  409. "firedrive.com",
  410. "fileshare.in.ua",
  411. "filecore.co.nz",
  412. "iskladka.cz",
  413. "file-rack.com",
  414. "fast-load.net",
  415. "subory.sk",
  416. "bigandfree.com",
  417. "fileop.com",
  418. "mujsoubor.cz",
  419. "sendfile.to",
  420. "superfastfile.com",
  421. "quickyshare.com",
  422. "duckload.com",
  423. "uploadstore.net",
  424. "meinupload.com",
  425. "dualshare.com",
  426. "2xupload.to|2xupload.de",
  427. "oxedion.com",
  428. "uploadline.com",
  429. "dll.bz",
  430. "movieshare.in",
  431. "milledrive.com",
  432. "quickupload.net",
  433. "safelink.in",
  434. "metadivx.com",
  435. "divxlink.com",
  436. "uploadrack.com",
  437. "teradepot.com",
  438. "dataup.to",
  439. "upit.to",
  440. "driveway.com",
  441. "eatlime.com",
  442. "a2zuploads.com",
  443. "friendlyfiles.net",
  444. "flyfile.us",
  445. "speedyshare.com",
  446. "uploadspace.eu",
  447. "keepfile.com",
  448. "piggyshare.com",
  449. "uplly.com",
  450. "filecrown.com",
  451. "6giga.com",
  452. "uploadjockey.com",
  453. "bluehost.to",
  454. "filegu.ru",
  455. "filebase.to",
  456. "up-file.com",
  457. "xvideos.com",
  458. "ufox.com",
  459. "filebling.com",
  460. "loaded.it",
  461. "uploadcell.com",
  462. "uploadshare.cz",
  463. "mangoshare.com",
  464. "filestab.com",
  465. "crazyupload.com",
  466. "gaiafile.com",
  467. "sharejunky.com",
  468. "fileho.com",
  469. "bigandfree.com",
  470. "bigfile.in",
  471. "bigshare.eu",
  472. "dahosting.org",
  473. "digisofts.net",
  474. "file4save.com",
  475. "filechip.com",
  476. "filescloud.com",
  477. "saveqube.com",
  478. "turboshare.de",
  479. "z-upload.com",
  480. "youshare.com",
  481. "jiffyupload.com",
  482. "gigeshare.com",
  483. "datenklo.net",
  484. "upload.dj",
  485. "loadfiles.in",
  486. "upit.to",
  487. "dsfileshare.com",
  488. "sharesimple.net",
  489. "4files.net",
  490. "wooupload.com",
  491. "odsiebie.com",
  492. "filenavi.com",
  493. "3oof.com",
  494. "meshwaar.com",
  495. "maxupload.com",
  496. "share.cx",
  497. "atserver.eu",
  498. "hotfiles.ws",
  499. "esnips.com",
  500. "tuxfile.com",
  501. "file2upload.net",
  502. "filebling.com",
  503. "turboshare.com",
  504. "rarhost.com",
  505. "isharehd.com",
  506. "i741.com",
  507. "dataup.de",
  508. "fofly.com",
  509. "shareonall.com",
  510. "sexuploader.com",
  511. "megaupload.com|megavideo.com|megaporn.com|megarotic.com",
  512. "uploadhyper.com",
  513. "filespawn.com",
  514. "caizzii.com",
  515. "volnyweb.cz",
  516. "usershare.net",
  517. "filescash.net",
  518. "metahyper.com",
  519. "combozip.com",
  520. "x7.to",
  521. "uploadbox.com",
  522. "enterupload.com|flyupload.com",
  523. "filepoint.de",
  524. "mystream.to",
  525. "x-fs.com",
  526. "shareator.com",
  527. "srapid.eu",
  528. "sosame.cz",
  529. "filesdump.com",
  530. "2-klicks.de",
  531. "uploking.com",
  532. "silofiles.com",
  533. "upfile.in",
  534. "filehook.com",
  535. "uploadking.com",
  536. "uploadhere.com",
  537. "kewlshare.com",
  538. "rapidable.com",
  539. "uploadwaste.com",
  540. "filemup.com",
  541. "filesonic.com|sharingmatrix.com",
  542. "fileserve.com",
  543. "wupload.com",
  544. "skipfile.com",
  545. "smartuploader.com",
  546. "dualshare.com",
  547. "storeandserve.com",
  548. "mountfile.com",
  549. "transitfiles.com",
  550. "uploadstation.com",
  551. "filejungle.com",
  552. "shareshared.com",
  553. "quickyshare.com",
  554. "save.am",
  555. "petandrive.com",
  556. "file2box.com",
  557. "flyshare.cz",
  558. "yabadaba.ru",
  559. "cloudcache.cc",
  560. "yourfilehost.com",
  561. "jakfile.com",
  562. "kickload.com",
  563. "pyramidfiles.com",
  564. "refile.net",
  565. "zshare.net",
  566. "ddlani.me|ddlanime.com",
  567. "ftp2share.com",
  568. "fooget.com",
  569. "rapidhide.com",
  570. "gotupload.com",
  571. "mooload.com",
  572. "zupload.com",
  573. "mytempdir.com",
  574. "onionshare.com",
  575. "stahnu.to",
  576. "oron.com",
  577. "badongo.com",
  578. "filereactor.com",
  579. "filegaze.com",
  580. "4bytez.com",
  581. "1hostclick.com",
  582. "anonstream.com",
  583. "batshare.com",
  584. "bitroad.net",
  585. "brontofile.com",
  586. "cloudnxt.net",
  587. "cloudnator.com|shragle.com",
  588. "filesfrog.net",
  589. "coolshare.cz",
  590. "dotavi.com",
  591. "ezyfile.net",
  592. "file-bit.net",
  593. "filecosy.com",
  594. "fileduct.com|fileduct.net",
  595. "filefat.com",
  596. "filelaser.com",
  597. "filemashine.com",
  598. "fileserver.cc",
  599. "filetechnology.com",
  600. "fireuploads.net",
  601. "gigfiles.net",
  602. "holderfile.com",
  603. "ihostia.com",
  604. "k2files.com",
  605. "mojofile.com",
  606. "ovfile.com",
  607. "qshare.com",
  608. "shafiles.me",
  609. "sharefilehost.com",
  610. "shareupload.com",
  611. "stahuj.to",
  612. "ugotfile.com",
  613. "uploadboost.com",
  614. "fileom.com",
  615. "vidhog.com",
  616. "xfileshare.eu",
  617. "bzlink.us",
  618. "bulletupload.com",
  619. // "wizzupload.com",
  620. "bloggerarticles.com",
  621. "mojedata.sk",
  622. "sharpfile.com",
  623. "upgrand.com",
  624. "nasdilej.cz",
  625. "mediatack.cz",
  626. "share-it.to",
  627. "primeupload.com",
  628. "filebeer.info",
  629. "baberepublic",
  630. "xtu.me",
  631. "sharebase.de",
  632. "luckyshare.net",
  633. "filerobo.com",
  634. "filevelocity.com",
  635. "filezpro.com",
  636. "file4sharing.com",
  637. "cing.be",
  638. "ufile.eu",
  639. "pigsonic.com",
  640. "fileupped.com",
  641. "sharerun.com",
  642. "filesaur.com",
  643. "rapidslnare.com",
  644. "bestsharing.com",
  645. "savefiles.net",
  646. "file2share.biz",
  647. "filecache.de",
  648. "monsteruploads.eu",
  649. "b9bb.com",
  650. "aiotool.net",
  651. "jamber.info",
  652. "megaftp.com",
  653. "desiupload.net",
  654. "file27.com",
  655. "yastorage.com",
  656. "filehost.ws",
  657. "copyload.com",
  658. "venusfile.com",
  659. "aieshare.com",
  660. "terafile.co",
  661. "terafile.com",
  662. "fileza.net",
  663. "filerose.com",
  664. "squillion.com",
  665. "fileprohost.com",
  666. "bitbonus.com",
  667. "warserver.cz",
  668. "uload.to",
  669. "sharedbit.net",
  670. "megaload.it",
  671. "filewinds.com",
  672. "uploadcore.com",
  673. "syfiles.com",
  674. "eyesfile.com",
  675. "hotfile.com",
  676. "superupl.com",
  677. "oteupload.com",
  678. "henchfile.com",
  679. "filegag.com",
  680. "HenchFile.com",
  681. "filedefend.com",
  682. "share-rapid.com|rapids.cz|share-credit.cz|share-central.cz|share-ms.cz|share-net.cz|srapid.cz|share-rapid.cz",
  683. "megabitshare.com",
  684. "cloudzer.com",
  685. "asfile.com",
  686. "cloudzer.net",
  687. "clz.to",
  688. "extabit.com",
  689. "247upload.com",
  690. "2download.de",
  691. "4fastfile.com",
  692. "asixfiles.com",
  693. "berofile.com",
  694. "bigupload.com",
  695. "cepzo.com",
  696. "clouds.to",
  697. "cobrashare.sk",
  698. "coraldrive.net",
  699. "cyberlocker.ch",
  700. "czshare.com",
  701. "darkport.org",
  702. "dark-uploads.com",
  703. "davvas.com",
  704. "enigmashare.com",
  705. "erofly.cz",
  706. "fastsonic.net",
  707. "filebox.com",
  708. "filecity.net",
  709. "filedap.com",
  710. "filedino.com",
  711. "filedownloads.org",
  712. "filefolks.com",
  713. "fileking.co",
  714. "filemates.com",
  715. "files.to",
  716. "files2k.eu",
  717. "filesector.cc",
  718. "bitshare.com",
  719. "filesega.com",
  720. "filesend.net",
  721. "filestay.com",
  722. "filestrum.com",
  723. "fileuplo.de",
  724. "fileupup.com",
  725. "forunesia.com",
  726. "freeuploads.fr",
  727. "uploa.dk",
  728. "getthebit.com",
  729. "getzilla.net",
  730. "goldfile.eu",
  731. "good.com",
  732. "grupload.com",
  733. "hellfile.com",
  734. "hipfile.com",
  735. "hitfile.com",
  736. "hulkfile.eu|duckfile.net",
  737. "i-filez.com",
  738. "ifile.ws",
  739. "kupload.org",
  740. "packupload.com",
  741. "lemuploads.com",
  742. "limelinx.com",
  743. "maxshare.pl",
  744. "megarelease.org",
  745. "megashare.com",
  746. "minus.com",
  747. "mlfat4arab.com",
  748. "multishare.cz",
  749. "nirafile.com",
  750. "ok2upload.com",
  751. "peejeshare.com",
  752. "premiuns.org",
  753. "przeklej.net",
  754. "qkup.net",
  755. "rapidupload.sk",
  756. "rockdizfile.com",
  757. "rocketfile.net",
  758. "share-now.net",
  759. "share76.com",
  760. "sharebees.com",
  761. "sharefiles.co",
  762. "slingfile.com",
  763. "sms4file.com",
  764. "space4file.com",
  765. "tigershare.net",
  766. "toucansharing.com",
  767. "ubuntuone.com",
  768. "unextfiles.com",
  769. "upaj.pl",
  770. "upfile.biz",
  771. "uploadbin.net",
  772. "uploadic.com",
  773. "uploadinc.com",
  774. "uploading4u.eu",
  775. "uploadjet.net",
  776. "uploadorb.com",
  777. "upthe.net",
  778. "uptorch.com",
  779. "vidbox.yt",
  780. "videozer.com",
  781. "vreer.com",
  782. "wallobit.com",
  783. "zooupload.com",
  784. "privatefiles.com",
  785. "xerver.co",
  786. "BillionUploads.com",
  787. "rapidshare.com",
  788. "rapidshare.ru",
  789. "4savefile.com",
  790. "bayfiles.com",
  791. "bayfiles.net",
  792. "dodane.pl",
  793. "dotsemper.com",
  794. "egofiles.com",
  795. "epicshare.net",
  796. "fiberupload.net",
  797. "filemonkey.in",
  798. "filemonster.net",
  799. "filepom.com",
  800. "filesbb.com",
  801. "fileshareup.com",
  802. "filevice.com",
  803. "gigaup.fr",
  804. "inafile.com",
  805. "isavelink.com",
  806. "loombo.com",
  807. "megafiles.se",
  808. "migupload.com",
  809. "mydisc.net",
  810. "nitrobits.com",
  811. "potload.com",
  812. "redload.net",
  813. "shareprofi.com",
  814. "sharesuper.info",
  815. "sinhro.net",
  816. "speedfile.cz",
  817. "speedshare.org",
  818. "storage.novoro.net",
  819. "swankshare.com",
  820. "swatupload.com",
  821. "upafile.com",
  822. "uploadmachine.com",
  823. "uploadsat.com",
  824. "upshared.com",
  825. "usefile.com",
  826. "yourfiles.to",
  827. "zomgupload.com",
  828. "ultramegabit.com",
  829. "uploadto.us",
  830.  
  831. ];
  832. ///////////////////////////////////////////////////////////////////////////////////////
  833. var firstRun = GM_getValue("First_run", true);
  834.  
  835. var chromeBrowser = /chrom(e|ium)/.test(navigator.userAgent.toLowerCase());
  836. //////////////////////////////////////////////////////////////////////////////////////
  837. try
  838. {
  839. var thisVersion = GM_info.script.version; //not supported in Scriptish and others
  840. var last_known_version = GM_getValue("last_known_version", "");
  841. if (!last_known_version)
  842. {
  843. last_known_version = thisVersion;
  844. GM_setValue("last_known_version", last_known_version);
  845. }
  846. //var newVersion = !(thisVersion == last_known_version);
  847. var newVersion = !(a.replace(/^(\d+\.\d+\.\d+).*/,'$1') == b.replace(/^(\d+\.\d+\.\d+).*/,'$1')); //true only if one of the first three numbers differs
  848. GM_setValue("last_known_version", thisVersion);
  849. }
  850. catch (err)
  851. {
  852. var newVersion = false;
  853. }
  854.  
  855. var now = (new Date()).getTime();
  856. var last_custom_rules_nag = GM_getValue('last_custom_rules_nag', 0);
  857. if (!last_custom_rules_nag)
  858. {
  859. last_custom_rules_nag = now;
  860. GM_setValue('last_custom_rules_nag', ''+now);
  861. }
  862.  
  863.  
  864. allHostNames.sort();
  865. allContainerNames.sort();
  866. allObsoleteNames.sort();
  867.  
  868. var RAND_STRING = "8QyvpOSsRG3QWq";
  869. var DEBUG_MODE = false;
  870.  
  871. var TOOLTIP_MAXWIDTH = 600; //in pixels
  872. var TOOLTIP_THUMBWIDTH = 200;
  873. var containers_processed = false;
  874.  
  875. //settings for keyboard functions start
  876. var CHECK_ALL_LINKS_KEY = "A";
  877. var CONFIGURATION_KEY = "C";
  878. var copy_to_dead_key = "D";
  879. var toggle_autocheck_key = "W";
  880. var toggle_Enable_Anonymizer_key = "Z";
  881. var first_key_keycode = '17'; // 18=ALT 16=Shift 17=Ctrl 32=SPACE_BAR 9=TAB
  882. var first_key_keycodename = 'CTRL';
  883. var second_key_keycode = '18';
  884. var second_key_keycodename = 'ALT';
  885. var CHECK_ALL_LINKS_KEYCODE = CHECK_ALL_LINKS_KEY.charCodeAt(0);
  886. var CONFIGURATION_KEYCODE = CONFIGURATION_KEY.charCodeAt(0);
  887. var copy_to_dead_keycode = copy_to_dead_key.charCodeAt(0);
  888. var toggle_autocheck_keycode = toggle_autocheck_key.charCodeAt(0);
  889. var toggle_Enable_Anonymizer_keycode = toggle_Enable_Anonymizer_key.charCodeAt(0);
  890. //settings for keyboard functions end
  891.  
  892. //global settings start
  893. var Show_black_background_in_DL_links, Show_line_through_in_dead_links, Color_DL_links;
  894. var Live_links_color, Dead_links_color, Temp_unavailable_links_color, Premium_links_color, Ref_anonymize_service;
  895. var Do_not_linkify_DL_links, Keyboard_functions, Autocheck, Enable_Anonymizer;
  896. var Show_progress_stats, Display_tooltip_info, Icon_set;
  897. var Progress_box_pos_bottom, Progress_box_pos_right, Progress_box_opacity, Progress_box_background_color, Progress_box_item_color;
  898. var Progress_box_refresh_rate;
  899. var Obsolete_file_hosts;
  900. var Custom_rules, Custom_rules_text;
  901.  
  902. var messageBox = document.createElement('b'); // top-left message box
  903.  
  904. var cLinksTotal = 0;
  905. var cLinksDead = 0;
  906. var cLinksAlive = 0;
  907. var cLinksUnava = 0;
  908. var cLinksprem = 0;
  909. var cLinksProcessed = 0;
  910.  
  911. var intervalId; //for updateProgress()
  912.  
  913. //icon resources
  914. 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/xgNo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EGqvUZwjZA5EAiShPIetLXxhASSIY3An1Gr4xkabq70iar9OkOeoWCSqVMAM8hzMiObnIUnQ0RFyR0DkgNylzhh7cB+bmsLrdQ7n5gj1OlG5TPxoHro7kUsC4mdQUB5u0NdziW/r5q2M/PkLfG2NsLwMkRHevyVkWQib26t+FJYMIIOUvt5XdmXkunXEke/sQchRCNDdRfAQ8vXND97af1qCxqkRLUj9XKFq/cUUMMmRQHKFZquh7OBhCRr/aATQ/I97foxKZ9z7A9QA5voyr3dtAAAAAElFTkSuQmCC';
  921. 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=';
  922. var RSLC_ICON_PINK = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAANCAYA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i753GDborZ752PO32oPb++6EHTh0kX/i+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=';
  923.  
  924. var NEW_ICON_GREEN = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACGklEQVR42mNkIBcwMWQ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umuazdDOs0HjAETRKNjuFyzTE9PAOO//Xm27lvN4b1c8htkAXC2jrKHN5gVSRcRW0SCIpIj/f2ZAkhTkykiOYu+SLa8e6qkeRNXALh5nEc/phARnaSJSSUnO5G+B8tnIkr6rjMTSqfMZQXZ9vE1xGKJpPe4DDjXAYkEjAwmzwwDLIv0NZlE1MYAjsQoAOL8C5rY2AxPlIjwP/wcACKn3tWfrwJ4AAAAAElFTkSuQmCC';
  927. var NEW_ICON_PINK = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABUklEQVQ4jY3TsUuWURQG8F8WEvFNDREfIg5RURAOIeL0DhJBS0tDY9BQQ0Oj29kiIvoDhBpFQRTUD1GKi0sRtEs0SEQ0RBQIRcVXw3eF6+vrWwcunPvc53nuPffcS0uEmA0x38Y5cohwGjOYxBBe4VGI3j8NQlzHYhaW0cfNEAslWCfBw4yvYhkv8hjCgxD7yMdquw/jbJ4+xq2cz+AKdrJRv9EAv/EDx3Ft75QhtrHdcFpHy0mS/lSqcVzAFM7he6XaTNLXJoOmS+ziOc4XcB893A3xodUgm5zAHdzHSLH0DhdD/GwsoSjlV5Je5nK+YQUTOInXSXq7x6134RQuo4unGf6Me7iKMxgrNfUuXMJazr8U+DA6Of/UZrCF9xjFM3zELpZwOptulIKmLlQGNXdqS7u4EWK9BA9cYpJ2KtWcwaMazcInuB3iTZ3fGv/znf8CBMxX4hrPUbUAAAAASUVORK5CYII=';
  928.  
  929. //global settings end
  930. if (window.opera && !window.console)
  931. {
  932. window.console = {};
  933.  
  934. function fn()
  935. {
  936. opera.postError(arguments);
  937. };
  938. ['log', 'debug', 'info', 'warn', 'error', 'assert', 'dir', 'dirxml', 'group', 'groupEnd', 'time', 'timeEnd', 'count', 'trace', 'profile', 'profileEnd'].forEach(function (name)
  939. {
  940. window.console[name] = fn;
  941. });
  942. }
  943.  
  944. //displays colored text in message box
  945. function sendMessage(text, color)
  946. {
  947. var msgDiv = document.createElement('div');
  948. msgDiv.style.color = color;
  949. msgDiv.innerHTML = text;
  950. messageBox.appendChild(msgDiv);
  951. setTimeout(function(){messageBox.removeChild(msgDiv)}, 3000);
  952. }
  953.  
  954. function linkify(totalourls)
  955. { // code from http://userscripts.org/scripts/review/2254 Linkify ting
  956. var ikkeTilladteTags;
  957. var allLinksRegex = "(?:http:\/\/.+?\\?)?(?:https?:\/\/)?"
  958. + "[0-9A-Za-z]+(?:[\\.-][0-9A-Za-z]+)*\\.[A-Za-z]+/" //instead of totalourls
  959. + "[\\w\\–\\-\\.+$!*\\/()\\[\\]\',~%?:@#&=\\\\\\—;…×Ã\\_\\u0080-\\u03FF’‘" + (Allow_spaces_in_DL_links ? "\\u0020" : "") + "]*";
  960. allLinksRegex = new RegExp(allLinksRegex, "g");
  961. var regexy = "^(?:http:\/\/.+?\\?)?(?:https?:\/\/)?(?:www\\.)?(?:" + totalourls + ")";
  962.  
  963. if (Do_not_linkify_DL_links)
  964. ikkeTilladteTags = ['a', 'head', 'script', 'style', 'title', 'option', 'iframe', 'textarea', 'span']; //tags, hvor det der stAΞ’Β¥r inden i ikke skal vAΞ’Β¦re links
  965. else
  966. ikkeTilladteTags = ['a', 'head', 'script', 'style', 'title', 'option', 'iframe', 'textarea']; //tags, hvor det der stAΞ’Β¥r inden i ikke skal vAΞ’Β¦re links
  967.  
  968. var regex = new RegExp(regexy);
  969. var textNode, muligtLink;
  970.  
  971. var path = "//text()[not(parent::" + ikkeTilladteTags.join(" or parent::") + ") and contains(.,'/')]";
  972. var textNodes = document.evaluate(path, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  973.  
  974. var i = textNodes.snapshotLength;
  975. while (i--)
  976. {
  977. textNode = textNodes.snapshotItem(i);
  978.  
  979. muligtLink = textNode.nodeValue; //all links on page
  980.  
  981. var myArray = null;
  982. var span = null;
  983. var lastLastIndex = 0;
  984. allLinksRegex.lastIndex = 0;
  985. if (/^https?:\/\/~[\w\s\~]*\//.test(muligtLink))
  986. {
  987. if (textNode.parentNode.className == "adead_link") continue;
  988. var censoredLink = muligtLink;
  989. var span = document.createElement('span');
  990. span.className = "adead_link";
  991. $(span).attr('warlc_error', "Cause of error: <b>Censored link.</b>");
  992. $(span).html(censoredLink);
  993. span.addEventListener("mouseover", displayTooltipError, false);
  994. cLinksTotal++; cLinksProcessed++; cLinksDead++;
  995. textNode.parentNode.replaceChild(span, textNode);
  996. continue;
  997. alert(censoredLink);
  998. }
  999. while (myArray = allLinksRegex.exec(muligtLink)) //find all links
  1000. {
  1001. if (!regex.test(myArray[0])) //this link is not recognized
  1002. {
  1003.  
  1004. continue;
  1005. }
  1006. if (!span)
  1007. span = document.createElement('span');
  1008.  
  1009. var link = myArray[0];
  1010. span.appendChild(document.createTextNode(muligtLink.substring(lastLastIndex, myArray.index))); //inds?t det der kommer for dette hit
  1011.  
  1012. var $a = $("<a>" + link + "</a>")
  1013. if (!link.match(/https?:\/\//))
  1014. {
  1015. link = 'http://' + link;
  1016. }
  1017.  
  1018. $a.attr("href", link.replace(/\[\/hide:\w+\]/,""))
  1019. .addClass("processing_link")
  1020. .appendTo(span);
  1021. lastLastIndex = allLinksRegex.lastIndex;
  1022. }
  1023. if (span)
  1024. {
  1025. span.appendChild(document.createTextNode(muligtLink.substring(lastLastIndex))); //ins?t det der kommer efter sidste hit
  1026. textNode.parentNode.replaceChild(span, textNode);
  1027. }
  1028. }
  1029. }
  1030.  
  1031. function add_WARLC_style()
  1032. {
  1033. if (!(document.getElementsByTagName('WARLC')[0]))
  1034. {
  1035. var meta_not_to_add_more_style = document.createElement("WARLC");
  1036. meta_not_to_add_more_style.setAttribute('content', 'war_links_checker');
  1037. meta_not_to_add_more_style.setAttribute('name', 'description');
  1038. document.getElementsByTagName('head')[0].appendChild(meta_not_to_add_more_style);
  1039. alive_link_png = "";
  1040. adead_link_png = "";
  1041. unava_link_png = "";
  1042. prem_link_png = "";
  1043. switch(Icon_set)
  1044. {
  1045. //no icons
  1046. case 0: break;
  1047. // cat paws
  1048. case 1: alive_link_png = PAW_ICON_GREEN;
  1049. adead_link_png = PAW_ICON_RED;
  1050. unava_link_png = PAW_ICON_YELLOW;
  1051. prem_link_png = PAW_ICON_PINK;
  1052. break;
  1053. // classic RSLC look
  1054. case 2: alive_link_png = RSLC_ICON_GREEN;
  1055. adead_link_png = RSLC_ICON_RED;
  1056. unava_link_png = RSLC_ICON_YELLOW;
  1057. prem_link_png = RSLC_ICON_PINK;
  1058. break;
  1059. // New Icons
  1060. case 3: alive_link_png = NEW_ICON_GREEN;
  1061. adead_link_png = NEW_ICON_RED;
  1062. unava_link_png = NEW_ICON_YELLOW;
  1063. prem_link_png = NEW_ICON_PINK;
  1064. break;
  1065. // cat paws
  1066. default:alive_link_png = PAW_ICON_GREEN;
  1067. adead_link_png = PAW_ICON_RED;
  1068. unava_link_png = PAW_ICON_YELLOW;
  1069. prem_link_png = PAW_ICON_PINK;
  1070. break;
  1071. }
  1072. processing_link_gif = 'data:image/gif;base64,' + // or temporary anavailable
  1073. 'R0lGODlhCgAKAJEDAMzMzP9mZv8AAP///yH/C05FVFNDQVBFMi4wAwEAAAAh+QQFAAADACwAAAAACgAKAAACF5wncgaAGgJzJ647cWua4sOBFEd62VEAACH5BAUAAAMALAEAAAAIAAMAAAIKnBM2IoMDAFMQFAAh+QQFAAADACwAAAAABgAGAAACDJwHMBGofKIRItJYAAAh+QQFAAADACwAAAEAAwAIAAACChxgOBPBvpYQYxYAIfkEBQAAAwAsAAAEAAYABgAAAgoEhmPJHOGgEGwWACH5BAUAAAMALAEABwAIAAMAAAIKBIYjYhOhRHqpAAAh+QQFAAADACwEAAQABgAGAAACDJwncqi7EQYAA0p6CgAh+QQJAAADACwHAAEAAwAIAAACCpRmoxoxvQAYchQAOw%3D%3D';
  1074.  
  1075. var dead_color_css, live_color_css, unava_color_css, prem_color_css, black_background_css;
  1076.  
  1077. if (Color_DL_links)
  1078. {
  1079. dead_color_css = 'color:' + Dead_links_color + ' !important;';
  1080. live_color_css = 'color:' + Live_links_color + ' !important;';
  1081. unava_color_css = 'color:' + Temp_unavailable_links_color + ' !important;';
  1082. container_color_css = 'color:' + Container_links_color + ' !important;';
  1083. prem_color_css = 'color:' + Premium_links_color + ' !important;';
  1084. }
  1085. else
  1086. {
  1087. dead_color_css = live_color_css = unava_color_css = container_color_css = prem_color_css = '';
  1088. }
  1089.  
  1090. if (Show_black_background_in_DL_links)
  1091. {
  1092. black_background_css = 'background-color: black !important;';
  1093. }
  1094. else
  1095. {
  1096. black_background_css = '';
  1097. }
  1098.  
  1099. if (Show_line_through_in_dead_links)
  1100. {
  1101. line_through_css = 'text-decoration: line-through !important;';
  1102. }
  1103. else
  1104. {
  1105. line_through_css = '';
  1106. }
  1107.  
  1108. GM_addStyle(".alive_link {background:transparent url(" + alive_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;" + live_color_css + black_background_css + "}");
  1109. 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 + "}");
  1110. GM_addStyle(".unava_link {background:transparent url(" + unava_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;" + unava_color_css + black_background_css + "}");
  1111. GM_addStyle(".processing_link {background:transparent url(" + processing_link_gif + ") no-repeat scroll 100% 50%;padding-right:15px;" + container_color_css + black_background_css + "}");
  1112. GM_addStyle(".container_link {background:transparent url(" + processing_link_gif + ") no-repeat scroll 100% 50%;padding-right:15px;" + container_color_css + black_background_css + "}");
  1113. GM_addStyle(".container_list {font-size:90%; list-style-type:square; padding: 0px 5% 0px; margin: 0px}");
  1114. GM_addStyle(".prem_link {background:transparent url(" + prem_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;" + prem_color_css + black_background_css + "}");
  1115. }
  1116. }
  1117.  
  1118. var warlcTooltip = null;
  1119. var mouseoverLink = null; //link href with mouse cursor over it
  1120.  
  1121. var lastX = 0;
  1122. var lastY = 0;
  1123.  
  1124. $(document).ready(initTooltip);
  1125. //inits tooltip
  1126. function initTooltip()
  1127. { warlcTooltip = document.createElement("div");
  1128. 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;");
  1129. warlcTooltip.style.visibility = "hidden";
  1130. document.body.appendChild(warlcTooltip);
  1131. }
  1132.  
  1133. //"mousemove" event handler for all links
  1134. function moveTooltip(event)
  1135. {
  1136. if ((Math.abs(lastX - event.clientX) + Math.abs(lastY - event.clientY)) < 6)
  1137. { //no need to reflow if the cursor moved just a little
  1138. return;
  1139. }
  1140. else
  1141. {
  1142. lastX = event.clientX;
  1143. lastY = event.clientY;
  1144. }
  1145.  
  1146. posX = event.clientX + window.pageXOffset + 10;
  1147. posY = event.clientY + window.pageYOffset;
  1148. var ttHeight = warlcTooltip.offsetHeight;
  1149. var ttFreeSpace = window.innerHeight - event.clientY;
  1150. if (ttHeight > ttFreeSpace)
  1151. { //prevents tooltip from getting out of the window
  1152. posY -= (ttHeight - (ttFreeSpace)) + 10;
  1153. }
  1154. else
  1155. {
  1156. posY += 7;
  1157. }
  1158. warlcTooltip.style.top = posY + "px";
  1159. warlcTooltip.style.left = posX + "px";
  1160. }
  1161.  
  1162. //"mouseout" event handler for all links
  1163. function hideTooltip(){
  1164. warlcTooltip.style.visibility = "hidden";
  1165. mouseoverLink = null;
  1166. }
  1167.  
  1168.  
  1169. //"mouseover" event handler for dead links
  1170. //displays tooltip error message on dead links
  1171. function displayTooltipError()
  1172. {
  1173. mouseoverLink = this.href;
  1174. this.addEventListener("mouseout", hideTooltip);
  1175. this.addEventListener("mousemove", function(event) { moveTooltip(event); });
  1176. warlcTooltip.innerHTML = '<b>LOADING...</b>';
  1177. warlcTooltip.style.minWidth = 0;
  1178. warlcTooltip.style.visibility = "visible";
  1179. if (this.warlc_error) //an error message is already known and stored in warlc_error attribute
  1180. {
  1181. warlcTooltip.innerHTML = this.warlc_error;
  1182. }
  1183. else
  1184. {
  1185. loadErrorInfo(this);
  1186. }
  1187. function loadErrorInfo(link)
  1188. {
  1189. var href = link.href;
  1190. href = href.replace(/quickshare\.cz\/.+/, "quickshare.cz/chyba");
  1191. GM_xmlhttpRequest({
  1192. method: 'GET',
  1193. url: href.replace(Ref_anonymize_service, ""),
  1194. headers: {
  1195. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1196. 'Accept': 'text/xml',
  1197. 'Referer': ""
  1198. },
  1199. onload: function(result) {
  1200. var res = result.responseText;
  1201. //TODO: errorRegexs -
  1202. var errorRegexs = [ //generic error messages follow
  1203. /(empty directory)/i,
  1204. /(soubor nebyl nalezen)/i,
  1205. /((?:file|page|link|folder)(?:is|not|does|has been|was| ){1,}(?:found|available|blocked|exists?|deleted|removed))/i,
  1206. //server specific error messages follow
  1207. /msg error" style="cursor: default">(.+?)<\/div>/, //sendspace
  1208. /color:red;font\-weight:bold;border\-style:dashed;font-size:12px;border\-width:2px;><tr><td align=center>(.+?)<\/td>/, //fastshare
  1209. /(Takový soubor neexistuje. Je možné, že byl již smazán.)/, //quickshare
  1210. /file_info file_info_deleted">\s*<h1>(.+?)<\/h1>/, //filepost
  1211. /<br \/>\s*<p style="color:#000">(.+?)<\/p>\s*<\/center>/, //letitbit
  1212. /(?:error_div">|<\/h1><p>)<strong>(.+?)<\/strong>/, //share-rapid,quickshare
  1213. /class="red">(.+?)<(?:span|br)>/, //czshare, megashares
  1214. /class="wp640">\s*<h1 class="h1">(.+?)<\/h1>/, //uloz.to
  1215. /not-found">\s*<p>(.+?)<\/p>/, //bayfiles
  1216. /(Your file could not be found. Please check the download link.)/, //stahnu.to
  1217. /error_msg">\s*(<h3>.+?<\/h3><ul>(.+?)<\/ul>)/, //edisk
  1218. /id="obsah">\s*<h2>(.+?)<\/h2>/, //euroshare
  1219. /error">\s*(?:<[bp]>)?\s*(.+?)<\/[bp]>/, //filesmonster, shragle, gigapeta
  1220. ///center aC">\s*<h1>(.+?)<br \/>/, //uploaded.to
  1221. /icon_err">\s*<h1>(.+?)<\/h1>/, //filejungle
  1222. /Code: ER_NFF_\d+<\/h2>\s*(.+?)\s*<\/div>/, //netload
  1223. /(File has been removed due to Copyright Claim)/, //filerio
  1224. ];
  1225. var errorIdx = errorRegexs.length;
  1226. var error = "Cause of error: <b>unknown</b>";
  1227. var errorCandidate = "";
  1228. while(errorIdx--)
  1229. {
  1230. var errorCandidate = res.match(errorRegexs[errorIdx]);
  1231. if (errorCandidate != null)
  1232. {
  1233. error = "Cause of error: <b>" + errorCandidate[1].replace(/&nbsp;/g," ") + "</b>";
  1234. break;
  1235. }
  1236. }
  1237. //link attributes
  1238. link.warlc_error = error;
  1239. if (mouseoverLink == link.href) //mouse cursor is still over the link
  1240. {
  1241. warlcTooltip.innerHTML = error;
  1242. }
  1243. }
  1244. });
  1245. }
  1246. }
  1247.  
  1248. //"mouseover" event handler for alive links
  1249. //displays tooltip info (file size, file name,...) on alive links
  1250. function displayTooltipInfo()
  1251. {
  1252. mouseoverLink = this.href;
  1253. //exclude direct download filehostings
  1254. 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)/))
  1255. {
  1256. return;
  1257. }
  1258. this.addEventListener("mouseout", hideTooltip);
  1259. this.addEventListener("mousemove", function(event) { moveTooltip(event); });
  1260. warlcTooltip.innerHTML = '<b>LOADING...</b>';
  1261. warlcTooltip.style.minWidth = 0;
  1262. warlcTooltip.style.visibility = "visible";
  1263. if (this.warlc_tooltipcache) //file size is already known and stored in warlc_filename and warlc_filesize attributes
  1264. {
  1265. warlcTooltip.innerHTML = this.warlc_tooltipcache;
  1266. }
  1267. else
  1268. {
  1269. loadInfo(this);
  1270. }
  1271. function loadInfo(link)
  1272. {
  1273. var href = link.href;
  1274. GM_xmlhttpRequest({
  1275. method: 'GET',
  1276. url: href.replace(Ref_anonymize_service, ""),
  1277. headers: {
  1278. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1279. 'Accept': 'text/xml',
  1280. 'Referer': ""
  1281. },
  1282. onload: function(result) {
  1283. var res = result.responseText;
  1284. var nameRegexs = [ /Filename: <b class="f_arial f_14px">(.+?)<\/b>/, //oron
  1285. /(?:finfo|file[-_]?name)">\s*(.+?)<\/?(?:h1|a|div|span style|td)/, //hellshare, netload, badongo, 4fastfile
  1286. /fl" title="(.+?)">/, //edisk
  1287. /<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
  1288. /<h3>Stahujete soubor: <\/h3>\s*<div class="textbox">(.+?)<\/div>/, //webshare
  1289. /<h3><b><span style=color:black;>(.+?)<\/b><\/h3><br>/, //fastshare
  1290. /title="download (.+?)">/, //sendspace
  1291. /Stáhnout soubor: (.+?)<\/h1>/, //quickshare
  1292. /fz24">Download:\s*<strong>(.+?)<\/strong>/, //crocko
  1293. // /'file\-icon\d+ \w+'>(?:<\/span><span>)?(.+?)<\/span>/, //hitfile, turbobit
  1294. /d0FileName = "(.+?)";/, //letitbit
  1295. /file(?:_name|-info)" title="">\w+: <span>(.+?)<\/span>/, //vip-file, shareflare
  1296. /recent-comments"><h2>(.+) &nbsp;/, //xdisk
  1297. /fname" value="(.+?)">/, //syfiles, grupload,
  1298. /download\-header">\s*<h2>File:<\/h2>\s*<p title="(.+?)">/, //bayfiles
  1299. /description">\s*<p><b>Soubor: (.+?)<\/b>/, //bezvadata
  1300. /Complete name : (.+?)<br \/>/, //bezvadata
  1301. /itemprop="name">(.+?)<\/span>/, //bezvadata
  1302. ];
  1303. var nameIdx = nameRegexs.length;
  1304. // [sizeRegexs]
  1305. // / \ \?
  1306. // prefix (size) postfix
  1307. // / \
  1308. // val quant
  1309. var quantRegex = '(?:M|G|K)?i?(?:B)(?:[y|i]te?s?)?';
  1310. var valRegex = '\\d+(?:[\\., ]\\d+){0,2}'; // 111([., ]222)?([., ]333)?
  1311. var uniSizeRegex = valRegex + '(?:\\s*|&nbsp;)' + quantRegex;
  1312. var preSizeRegex = '(?::|\\(|>|>, | - )';
  1313. var postSizeRegex = '(?:\\))?';
  1314. var sizeRegexs = [ preSizeRegex + "\\s*(" + uniSizeRegex + ")\\s*" + postSizeRegex,
  1315. 'FileSize_master">(.+?)<\/strong>', //hellshare
  1316. ];
  1317. var sizeIdx = sizeRegexs.length;
  1318. //
  1319. //
  1320. var tooltip = "File Name: <b>";
  1321. var fileName = "unknown";
  1322. var nameCandidate = "";
  1323. while(nameIdx--)
  1324. {
  1325. var nameCandidate = res.match(nameRegexs[nameIdx]);
  1326. if (nameCandidate != null)
  1327. {
  1328. fileName = nameCandidate[1].replace(/&nbsp;/g," ");
  1329. break;
  1330. }
  1331. }
  1332. tooltip += fileName + "</b><br>File Size: <b>";
  1333. var fileSize = "unknown";
  1334. var sizeCandidate = "";
  1335. while(sizeIdx--)
  1336. {
  1337. sizeCandidate = res.match(new RegExp(sizeRegexs[sizeIdx], "i"));
  1338. if (sizeCandidate != null)
  1339. {
  1340. fileSize = sizeCandidate[1].replace(/&nbsp;/g," ");
  1341. if (/^\d+$/.test(fileSize) && fileSize >= 1024) //assume bytes
  1342. {
  1343. if(fileSize > (1<<30)) fileSize = Math.round(10 * fileSize / (1<<30)) / 10 + ' GB';
  1344. else if(fileSize > (1<<20)) fileSize = Math.round(fileSize / (1<<20)) + ' MB';
  1345. else fileSize = Math.round(fileSize / 1024) + ' KB';
  1346. }
  1347. break;
  1348. }
  1349. }
  1350. tooltip += fileSize + "</b>";
  1351. // PROTOTYPE
  1352. // video thumbnails
  1353. if (href.match('hellshare'))
  1354. {
  1355. var thumbs;
  1356. thumbs = res.match(/http:\/\/static\d+\.helldata\.com\/thumbs(?:\/\d+){1,2}\/\d{1,2}"/g);
  1357. if (thumbs)
  1358. {
  1359. tooltip += '<br>';
  1360. var j = Math.min(thumbs.length, 9);
  1361. for (var i = 0; i < j; i++)
  1362. {
  1363. tooltip += '<img src="' + thumbs[i].replace('"',"") + '" width="' + TOOLTIP_THUMBWIDTH + 'px">';
  1364. }
  1365. warlcTooltip.style.minWidth = TOOLTIP_MAXWIDTH;
  1366. }
  1367. }
  1368. if (href.match('czshare'))
  1369. {
  1370. var thumbs;
  1371. thumbs = res.match(/src="http:\/\/www(\d+)\.czshare\.com\/images_velke\/\d+\.(\d+)\.jpeg/);
  1372. if (thumbs)
  1373. {
  1374. var thumbsServer = thumbs[1];
  1375. var thumbsId = thumbs[2];
  1376. tooltip += '<br>';
  1377. for (var i = 1; i < 9; i++)
  1378. {
  1379. tooltip += '<img src="http://www' + thumbsServer + '.czshare.com/images_velke/' + i + '.' + thumbsId + '.jpeg" width="' + TOOLTIP_THUMBWIDTH + 'px">';
  1380. }
  1381. warlcTooltip.style.minWidth = TOOLTIP_MAXWIDTH;
  1382. }
  1383. }
  1384. if (href.match('bezvadata'))
  1385. {
  1386. var thumbs;
  1387. thumbs = res.match(/http:\/\/nahledy\.bezvadata\.cz\/nahledy\/\d+\/\d+\/\d+_\d+_\d+x\d+_\w.jpg/g);
  1388. if (thumbs)
  1389. {
  1390. tooltip += '<br>';
  1391. var j = Math.min(thumbs.length, 9);
  1392. for (var i = 0; i < j; i++)
  1393. {
  1394. tooltip += '<img src="' + thumbs[i] + '" width="' + TOOLTIP_THUMBWIDTH + 'px">';
  1395. }
  1396. warlcTooltip.style.minWidth = TOOLTIP_MAXWIDTH;
  1397. }
  1398. }
  1399. link.warlc_tooltipcache = tooltip;
  1400. if (mouseoverLink == link.href) //mouse cursor is still over the link
  1401. {
  1402. warlcTooltip.innerHTML = tooltip;
  1403. }
  1404. }
  1405. });
  1406. }
  1407. }
  1408.  
  1409. function setVariables()
  1410. {
  1411. if (firstRun)
  1412. {
  1413. GM_log('First run, applying default settings...');
  1414. GM_setValue("Icon_set",1);
  1415. GM_setValue("Display_tooltip_info",true);
  1416. GM_setValue("Show_black_background_in_DL_links",false);
  1417. GM_setValue("Show_line_through_in_dead_links",false);
  1418. GM_setValue("Display_full_links_in_link_containers",false);
  1419. GM_setValue("Allow_spaces_in_DL_links",false);
  1420. GM_setValue("Autocheck",true);
  1421. GM_setValue("Enable_Anonymizer",false);
  1422. GM_setValue("Do_not_linkify_DL_links",false);
  1423. GM_setValue("Show_progress_stats",true);
  1424. GM_setValue("Keyboard_functions",true);
  1425. GM_setValue("Obsolete_file_hosts",false);
  1426. GM_setValue("Color_DL_links",true);
  1427. GM_setValue("Live_links_color","Green");
  1428. GM_setValue("Dead_links_color","#FF3300");
  1429. GM_setValue("Temp_unavailable_links_color","#F7EF09");
  1430. GM_setValue("Container_links_color","DarkKhaki");
  1431. GM_setValue("Premium_links_color","DeepPink");
  1432. GM_setValue("Ref_anonymize_service","http://hiderefer.com/?");
  1433. GM_setValue("Custom_rules",false);
  1434. GM_setValue("Custom_rules_text","");
  1435. GM_setValue("First_run", false);
  1436. }
  1437. //hidden settings
  1438. GM_setValue("Progress_box_pos_bottom", Progress_box_pos_bottom = GM_getValue("Progress_box_pos_bottom", 20));
  1439. GM_setValue("Progress_box_pos_right", Progress_box_pos_right = GM_getValue("Progress_box_pos_right", 10));
  1440. GM_setValue("Progress_box_opacity", Progress_box_opacity = GM_getValue("Progress_box_opacity", 85));
  1441. GM_setValue("Progress_box_background_color", Progress_box_background_color = GM_getValue("Progress_box_background_color", 'DimGray'));
  1442. GM_setValue("Progress_box_item_color", Progress_box_item_color = GM_getValue("Progress_box_item_color", 'DimGray'));
  1443. GM_setValue("Progress_box_refresh_rate", Progress_box_refresh_rate = GM_getValue("Progress_box_refresh_rate", 2000));
  1444. GM_setValue("Debug_mode", DEBUG_MODE = GM_getValue("Debug_mode", false));
  1445. //hidden settings end
  1446.  
  1447. Icon_set = GM_getValue("Icon_set", 1); //0 - no icons, 1 - cat paws, 2 - old RSLC style, 3 - New Icons,
  1448. Display_tooltip_info = GM_getValue("Display_tooltip_info", true);
  1449. Show_black_background_in_DL_links = GM_getValue("Show_black_background_in_DL_links", false);
  1450. Show_line_through_in_dead_links = GM_getValue("Show_line_through_in_dead_links", false);
  1451. Display_full_links_in_link_containers = GM_getValue("Display_full_links_in_link_containers", false);
  1452. Allow_spaces_in_DL_links = GM_getValue("Allow_spaces_in_DL_links", false);
  1453. Autocheck = GM_getValue("Autocheck", true);
  1454. Enable_Anonymizer = GM_getValue("Enable_Anonymizer", false);
  1455. Do_not_linkify_DL_links = GM_getValue("Do_not_linkify_DL_links", false);
  1456. Show_progress_stats = GM_getValue("Show_progress_stats", true);
  1457. Keyboard_functions = GM_getValue("Keyboard_functions", true);
  1458. Obsolete_file_hosts = GM_getValue("Obsolete_file_hosts", false);
  1459. Color_DL_links = GM_getValue("Color_DL_links", true);
  1460. Live_links_color = GM_getValue("Live_links_color", "Green");
  1461. Dead_links_color = GM_getValue("Dead_links_color", "#FF3300");
  1462. Temp_unavailable_links_color = GM_getValue("Temp_unavailable_links_color", "#F7EF09");
  1463. Container_links_color = GM_getValue("Container_links_color", "DarkKhaki");
  1464. Premium_links_color = GM_getValue("Premium_links_color", "DeepPink");
  1465. Ref_anonymize_service = GM_getValue("Ref_anonymize_service", "http://hiderefer.com/?");
  1466. Custom_rules = GM_getValue("Custom_rules", false);
  1467. Custom_rules_text = GM_getValue("Custom_rules_text", false);
  1468. }
  1469.  
  1470.  
  1471. // Delinkifies the links
  1472. // params:
  1473. // links -> list of links or link components (note they should be sufficiently unique to identify the link on page,
  1474. // e.g. 'uloz.to/xs68skxl8')
  1475. function delinkifySnapshot(snapshot)
  1476. {
  1477. var n = snapshot.snapshotLength;
  1478.  
  1479. while (n--)
  1480. {
  1481. thisLink = snapshot.snapshotItem(n);
  1482.  
  1483. var spanElm = document.createElement("span");
  1484. spanElm.className = thisLink.className;
  1485. spanElm.innerHTML = thisLink.innerHTML;
  1486.  
  1487. if (Display_tooltip_info)
  1488. {
  1489. spanElm.href = thisLink.href;
  1490. switch (thisLink.className){
  1491. case "alive_link": spanElm.addEventListener("mouseover", displayTooltipInfo, false); break
  1492. case "adead_link": spanElm.addEventListener("mouseover", displayTooltipError, false); break;
  1493. case "unava_link": //reserved
  1494. default:
  1495. }
  1496. }
  1497. thisLink.parentNode.replaceChild(spanElm, thisLink);
  1498. }
  1499. }
  1500.  
  1501. function processContainers()
  1502. {
  1503. var redirectorTypes = { "HTTP_302": 0,
  1504. "INNER_LINK": 1,
  1505. "THELOO_KATT_IT": 2,
  1506. "CING_BE": 3,
  1507. "ADF_LY": 4};
  1508. var cMultiloadTotal = 0;
  1509. var cMultiloadProcessed = 0;
  1510.  
  1511. var cMirrorcreatorComTotal = 0;
  1512. var cMirrorcreatorComProcessed = 0;
  1513.  
  1514. var hostRestrictionRegex = "";
  1515. var multiloadComRestriction = "";
  1516. var multiloadComRestrictionRegex;
  1517.  
  1518. //
  1519. //HANDLING REDIRECTORS START
  1520. //
  1521.  
  1522. var redirectors = new Array();
  1523. initRedirectors();
  1524.  
  1525. var redirectorsCount = redirectors.length;
  1526.  
  1527. if (redirectorsCount > 0)
  1528. {
  1529. var allRedirectorsRegex = "";
  1530.  
  1531. //linkify redirector links
  1532. for(var redirIdx = 0; redirIdx < redirectorsCount; redirIdx++)
  1533. {
  1534. allRedirectorsRegex += redirectors[redirIdx].linkRegex + "|";
  1535. }
  1536. allRedirectorsRegex = allRedirectorsRegex.replace(/\|$/, "");
  1537. linkify(allRedirectorsRegex);
  1538. //
  1539. //process redirector links
  1540. for(var redirIdx = 0; redirIdx < redirectorsCount; redirIdx++)
  1541. {
  1542. var redirectorsSnapshot = document.evaluate(redirectors[redirIdx].xpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  1543. redirectors[redirIdx].cTotal = redirectorsSnapshot.snapshotLength;
  1544.  
  1545. cLinksTotal += redirectors[redirIdx].cTotal;
  1546. var linkIdx = redirectors[redirIdx].cTotal;
  1547.  
  1548. while(linkIdx--)
  1549. {
  1550. switch(redirectors[redirIdx].type)
  1551. {
  1552. case redirectorTypes.HTTP_302: processRedirectorLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1553. case redirectorTypes.INNER_LINK: processRedirectorLinkEx(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1554. case redirectorTypes.THELOO_KATT_IT: processThelooKattItLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1555. case redirectorTypes.CING_BE: processCingBeLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1556. case redirectorTypes.ADF_LY: processAdfLyLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1557. default:
  1558. }
  1559. }
  1560. }
  1561. //
  1562. }
  1563.  
  1564. //HTTP_302
  1565. function processRedirectorLink(link, redirectorId)
  1566. {
  1567. link.className = 'container_link';
  1568.  
  1569. GM_xmlhttpRequest({
  1570. method: 'HEAD',
  1571. url: link.href,
  1572. headers: {
  1573. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1574. 'Accept': 'text/xml',
  1575. 'Referer': ""
  1576. },
  1577. onload: function(result) {
  1578. if (result.finalUrl.replace("https", "http") == link.href) // service hasn't redirected anywhere
  1579. {
  1580. processRedirectorLink(link, redirectorId);
  1581. }
  1582. else
  1583. {
  1584. redirectors[redirectorId].cProcessed++;
  1585. link.href = result.finalUrl;
  1586. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  1587. checkLinks('container_link');
  1588. }
  1589. },
  1590. onerror: function(result) { //probably caused by unresponsive filehosting
  1591. redirectors[redirectorId].cProcessed++;
  1592. link.className = 'unava_link';
  1593. cLinksProcessed++;
  1594. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  1595. checkLinks('container_link');
  1596. }
  1597. });
  1598. }
  1599. //INNER_LINK
  1600. function processRedirectorLinkEx(link, redirectorId)
  1601. {
  1602. link.className = 'container_link';
  1603. GM_xmlhttpRequest({
  1604. method: 'GET',
  1605. url: link.href,
  1606. headers: {
  1607. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1608. 'Accept': 'text/xml',
  1609. 'Referer': ""
  1610. },
  1611. onload: function(result) {
  1612. link.href = result.responseText.match(redirectors[redirectorId].innerLinkRegex)[1];
  1613. redirectors[redirectorId].cProcessed++;
  1614. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  1615. checkLinks('container_link');
  1616. }
  1617. });
  1618. }
  1619. //theloo.katt.it (wrapped safelinking.net)
  1620. function processThelooKattItLink(link, redirectorId)
  1621. {
  1622. link.className = 'container_link';
  1623. GM_xmlhttpRequest({
  1624. method: 'GET',
  1625. url: link.href,
  1626. headers: {
  1627. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1628. 'Accept': 'text/xml',
  1629. 'Referer': ""
  1630. },
  1631. onload: function(result) {
  1632. link.href = result.responseText.match(redirectors[redirectorId].innerLinkRegex)[1];
  1633. redirectors[redirectorId].cProcessed++;
  1634. //the inner links are safelinking.net links, so lets proceed with it
  1635. if (GM_getValue("Check_safelinking_dot_net_links", false))
  1636. {
  1637. processRedirectorLink(link, 0);
  1638. }
  1639. }
  1640. });
  1641. }
  1642. //adf.ly (adf.ly/go innerLink, locking mechanism)
  1643. function processAdfLyLink(link, redirectorId)
  1644. {
  1645. link.className = 'container_link';
  1646. GM_xmlhttpRequest({
  1647. method: 'GET',
  1648. url: link.href,
  1649. headers: {
  1650. 'User-agent': 'Mozilla/4.0',
  1651. 'Accept': 'text/xml',
  1652. 'Referer': ""
  1653. },
  1654. onload: function(result) {
  1655. if (result.finalUrl.match('/locked/'))
  1656. {
  1657. var delay = result.responseText.match(/countdown">(\d+)</)[1];
  1658. // GM_log(result.finalUrl + 'is locked. Repeating the request in ' + delay + 's.');
  1659. // setTimeout(function(){processAdfLyLink(link, redirectorId);}, delay * 1000);
  1660. }
  1661. else
  1662. {
  1663. // GM_log('Processing... ' + link.href);
  1664. // GM_log('Found...' + result.responseText.match(/\/go\/(\w+\/\w+)/)[1]);
  1665. var directLink = 'http://adf.ly' + result.responseText.match(/(\/go\/\w+\/\w+)/)[1];
  1666. var logToken = result.responseText.match(/flashy_(\w+)/)[1];
  1667. var users = result.responseText.match(/user=\d+&user2=\d+/);
  1668. //confirm advert
  1669. GM_xmlhttpRequest(
  1670. {
  1671. method: 'POST',
  1672. url: 'http://adf.ly/l.php',
  1673. headers: {
  1674. 'User-agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20100101 Firefox/13.0',
  1675. 'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
  1676. 'Referer': link.href
  1677. },
  1678. data: users + '&lt=' + logToken,
  1679. onload: function(result) {
  1680. //retrieve final url from .../go/... link
  1681. GM_xmlhttpRequest({
  1682. method: 'GET',
  1683. url: directLink,
  1684. headers: {
  1685. 'User-agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20100101 Firefox/13.0',
  1686. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  1687. 'Referer': link.href
  1688. },
  1689. onload: function(result) {
  1690. link.href = result.finalUrl;
  1691. redirectors[redirectorId].cProcessed++;
  1692. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  1693. checkLinks('container_link');
  1694. }
  1695. });
  1696. }
  1697. });
  1698. }
  1699. }
  1700. });
  1701. function proceedOK()
  1702. {
  1703. }
  1704. }
  1705. //MULTILOAD.CZ START
  1706. if (GM_getValue("Check_multiload_dot_cz_links", false))
  1707. {
  1708. var mlRegex = 'multiload\\.cz\/stahnout\/\\d+\/';
  1709. var mlXpath = "//a[contains(@href,'http://www.multiload.cz/stahnout')]";
  1710.  
  1711. hostRestrictionRegex = 'Upload se nezdařil|limit exceeded|probíhá reupload|';
  1712.  
  1713. if (GM_getValue("Check_hellshare_dot_com_links", false))
  1714. hostRestrictionRegex += 'hellshare|';
  1715. if (GM_getValue("Check_share_dash_rapid_dot_com_links", false))
  1716. hostRestrictionRegex += 'share-rapid\\.com|';
  1717. if (GM_getValue("Check_quickshare_dot_cz_links", false))
  1718. hostRestrictionRegex += 'quickshare\\.cz|';
  1719. if (GM_getValue("Check_czshare_dot_com_links", false))
  1720. hostRestrictionRegex += 'czshare\\.com|';
  1721. if (GM_getValue("Check_uloz_dot_to_links", false))
  1722. hostRestrictionRegex += 'uloz\\.to|';
  1723. if (GM_getValue("Check_hellspy_dot_com_links", false))
  1724. hostRestrictionRegex += 'hellspy|';
  1725. if (GM_getValue("Check_multishare_dot_cz_links", false))
  1726. hostRestrictionRegex += 'multishare\\.cz|';
  1727.  
  1728. hostRestrictionRegex = hostRestrictionRegex.replace(/\|$/, "");
  1729.  
  1730. linkify(mlRegex);
  1731.  
  1732. var mlSnapshot = document.evaluate(mlXpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  1733. var mlCount = mlSnapshot.snapshotLength;
  1734.  
  1735. if (mlCount > 0)
  1736. {
  1737. cMultiloadTotal += mlCount;
  1738.  
  1739. mlIdx = mlCount - 1;
  1740. do
  1741. {
  1742. processMultiloadLink(mlSnapshot.snapshotItem(mlIdx));
  1743. }
  1744. while(mlIdx--)
  1745. }
  1746. }
  1747. //MULTILOAD.CZ END
  1748.  
  1749.  
  1750.  
  1751. function processMultiloadLink(mlLink)
  1752. {
  1753. GM_xmlhttpRequest({
  1754. method: 'GET',
  1755. url: mlLink.href,
  1756. headers: {
  1757. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1758. 'Accept': 'text/xml',
  1759. 'Referer': ""
  1760. },
  1761. onload: function(result) {
  1762. var res = result.responseText;
  1763.  
  1764. var innerBlockRegex = /<p class="manager-linky">(?:.|\s)+?<\/p>/g;
  1765. 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;
  1766. var innerLinkRegex = /((?:Upload se nezdařil.+|https?:\/\/(?:.|\s)+|Právě probíhá reupload, buďte trpěliví\.\.\.))</;
  1767. var mlRestrictionRegex = new RegExp(hostRestrictionRegex,"g"); //what links should be displayed
  1768.  
  1769. var blocks; // blocks of links
  1770. var blockIdx;
  1771.  
  1772. mlLink.className = '';
  1773.  
  1774. if (result.status == 503) //service temporarily unavailable, repeat request in one second
  1775. {
  1776. setTimeout(function(){ processMultiloadLink(mlLink); }, 1000);
  1777. return;
  1778. }
  1779.  
  1780. blocks = res.match(innerBlockRegex);
  1781.  
  1782. if (blocks == null) //no links found, cancel further processing
  1783. {
  1784. mlLink.parentNode.appendChild(document.createTextNode(' | Požadovaný soubor neexistuje.'));
  1785. cMultiloadProcessed++;
  1786. if (cMultiloadTotal <= cMultiloadProcessed)
  1787. {
  1788. startBulkCheck('container_link');
  1789. start('container_link');
  1790. }
  1791. return;
  1792. }
  1793.  
  1794. blockIdx = blocks.length;
  1795.  
  1796. if (Display_full_links_in_link_containers)
  1797. {
  1798. var ulElm = document.createElement('ul');
  1799. ulElm.className = 'container_list'; //CSS smaller font, padding, margin, square style
  1800.  
  1801. while(blockIdx--)
  1802. {
  1803. if (blocks[blockIdx].match(mlRestrictionRegex) == null)
  1804. {
  1805. continue;
  1806. }
  1807.  
  1808. var innerLinks = blocks[blockIdx].match(innerLinksRegex);
  1809.  
  1810. var linkIdx = innerLinks.length;
  1811. while (linkIdx--)
  1812. {
  1813. var innerLink = innerLinks[linkIdx].match(innerLinkRegex)[1];
  1814.  
  1815. var liElm = document.createElement('li');
  1816.  
  1817. if (innerLink.match(/Upload se nezdařil|limit exceeded|probíhá reupload/))
  1818. {
  1819. liElm.appendChild(document.createTextNode(innerLink));
  1820. }
  1821. else
  1822. {
  1823. var aElm = document.createElement('a');
  1824. aElm.innerHTML = innerLink;
  1825. aElm.href = innerLink;
  1826. aElm.className = 'container_link';
  1827.  
  1828. liElm.appendChild(aElm);
  1829. }
  1830.  
  1831. ulElm.appendChild(liElm);
  1832. cLinksTotal++;
  1833. }
  1834. }
  1835.  
  1836. mlLink.parentNode.appendChild(ulElm);
  1837. }
  1838. else //compact view
  1839. {
  1840. mlLink.parentNode.appendChild(document.createTextNode("|"));
  1841.  
  1842. while(blockIdx--)
  1843. {
  1844. if (blocks[blockIdx].match(mlRestrictionRegex) == null)
  1845. {
  1846. continue;
  1847. }
  1848.  
  1849. var innerLinks = blocks[blockIdx].match(innerLinksRegex);
  1850.  
  1851. var linkIdx = innerLinks.length;
  1852. while (linkIdx--)
  1853. {
  1854. var innerLink = innerLinks[linkIdx].match(innerLinkRegex)[1];
  1855.  
  1856. if (innerLink.match(/Upload se nezdařil|limit exceeded|probíhá reupload/))
  1857. {
  1858. mlLink.parentNode.appendChild(document.createTextNode("----"));
  1859. }
  1860. else
  1861. {
  1862. var aElm = document.createElement('a');
  1863.  
  1864. var hostName = innerLink.match(/quickshare|hellshare|uloz\.to|multishare|hellspy|share\-rapid|czshare/);
  1865.  
  1866. //abbreviate host name
  1867. switch(hostName + ""){
  1868.  
  1869. case 'quickshare': aElm.innerHTML = 'QS'; break;
  1870. case 'hellshare': aElm.innerHTML = 'HS'; break;
  1871. case 'uloz.to': aElm.innerHTML = 'UT'; break;
  1872. case 'multishare': aElm.innerHTML = 'MS'; break;
  1873. case 'hellspy': aElm.innerHTML = 'hs'; break;
  1874. case 'share-rapid': aElm.innerHTML = 'SR'; break;
  1875. case 'czshare': aElm.innerHTML = 'CS'; break;
  1876. default: aElm.innerHTML = 'xx';
  1877.  
  1878. }
  1879.  
  1880. aElm.href = innerLink;
  1881. aElm.className = 'container_link';
  1882.  
  1883. mlLink.parentNode.appendChild(aElm);
  1884. cLinksTotal++;
  1885. }
  1886. }
  1887.  
  1888. mlLink.parentNode.appendChild(document.createTextNode("|")); //blocks delimiter
  1889.  
  1890. }
  1891. }
  1892.  
  1893. cMultiloadProcessed++;
  1894. if (cMultiloadTotal == cMultiloadProcessed) //start check when all ml links have been processed
  1895. {
  1896. if (Do_not_linkify_DL_links)
  1897. {
  1898. delinkifySnapshot(mlSnapshot);
  1899. }
  1900. startBulkCheck('container_link');
  1901. start('container_link');
  1902. }
  1903. }
  1904. });
  1905. }
  1906.  
  1907.  
  1908. if (GM_getValue("Check_mirrorcreator_dot_com_links", false))
  1909. {
  1910. var mcRegex = 'mirrorcreator\\.com/files/(\\w+)';
  1911. var mcXpath = "//a[contains(@href,'mirrorcreator.com/files')]";
  1912. var mcShortHostNames =
  1913. '?? 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';
  1914. // 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
  1915. //?????? depositfiles sendspace load.to ul.to storage.to uploadbox x7.to fileserve ?????? duckload filehook filepost jumbofiles glumbouploads
  1916. // zshare ?????? 2shared uploading ugotfile extabit oron eyvx uploadstation putlocker
  1917. // megaupload badongo megashare gamefront ifile ?????? letitbit ?????? ?????? filejungle megashares
  1918. // easy-share ?????? netload zippyshare ?????? filesonic turbobit enterupload ?????? filekeen wupload crocko fileflyer
  1919.  
  1920. linkify(mcRegex);
  1921.  
  1922. var mcSnapshot = document.evaluate(mcXpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  1923. var mcCount = mcSnapshot.snapshotLength;
  1924.  
  1925. cMirrorcreatorComTotal = mcCount;
  1926.  
  1927. if (mcCount > 0)
  1928. {
  1929. mcShortHostNames = mcShortHostNames.split(' ');
  1930. mcIdx = mcCount;
  1931. while(mcIdx--)
  1932. processMirrorcreatorLink(mcSnapshot.snapshotItem(mcIdx));
  1933. }
  1934.  
  1935. }
  1936. //MIRRORCREATOR.CZ END
  1937.  
  1938.  
  1939. //mirrorcreator.com checking works like this:
  1940. //The base URL is http://www.mirrorcreator.com/files/XXXXXXXX/filename_links
  1941. //the actual list of mirrors is at http://www.mirrorcreator.com/status.php?uid=XXXXXXXX
  1942. //the list contains links in the form of (http://www.mirrorcreator.com)/redirect/XXXXXXXX/1
  1943. //these redirector links are extracted with mcLinkBlockRegex and the pages loaded
  1944. //they contain the actual filehost links, which are extracted with mcHostRegex and displayed in a container list
  1945. function processMirrorcreatorLink(mcLink)
  1946. {
  1947. var mcURL = mcLink.href.match(mcRegex);
  1948. if(!mcURL || !mcURL[1]) return;
  1949. mcURL = 'http://www.mirrorcreator.com/status.php?uid=' + mcURL[1]; //link correction
  1950. GM_xmlhttpRequest({
  1951. method: 'GET',
  1952. url: mcURL,
  1953. headers: {
  1954. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1955. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*'+'/*;q=0.8',
  1956. 'Referer': ""
  1957. },
  1958. onload: function(mcLinkResult) {
  1959. var mcLinkRes = mcLinkResult.responseText;
  1960.  
  1961. var mcLinkBlockRegex = /(\/redirect\/\w+\/(\d+))/gi;
  1962. var mcHostRegex = /<div id="redirectlink">.*?<a href="([^"]+)"/;
  1963.  
  1964. var mcRedirectors;
  1965. var mcHostURLs = [], mcRedirectorIDs = [], mcHostsFound = 0, mcHostsRetrieved = 0, mcHostsToProcess = 0;
  1966. var m = mcLinkRes.match(mcLinkBlockRegex);
  1967. if (m)
  1968. mcHostsFound = m.length;
  1969. else
  1970. { //no files inside container
  1971. processMirrorcreatorFoundHosts(mcLink, []);
  1972. return;
  1973. }
  1974.  
  1975. var mcRedirectorURL, idx, timedOut = false;
  1976.  
  1977. var gmxhrFunc = function(mcRedirectorURL){ //Tampermonkey doesn't know neither this.url or result.finalUrl
  1978. GM_xmlhttpRequest({
  1979. method: 'GET',
  1980. url: mcRedirectorURL,
  1981. headers: {
  1982. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1983. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*'+'/*;q=0.8',
  1984. 'Referer': ""
  1985. },
  1986. onload: function(mcHostResult) {
  1987. if (timedOut) return; //too late, the list is already displayed
  1988. var mcHostRes = mcHostResult.responseText;
  1989. var mcHost = mcHostRes.match(mcHostRegex);
  1990. idx = mcHostURLs.indexOf(mcRedirectorURL);
  1991. if (mcHost && idx!=-1)
  1992. {
  1993. mcHostURLs[idx] = mcHost[1].replace(/^\s+|\s+$/g, '');
  1994. mcHostsRetrieved++;
  1995. mcHostsToProcess++;
  1996. if (mcHostsFound == mcHostsRetrieved) //this is the last one!
  1997. {
  1998. processMirrorcreatorFoundHosts(mcLink, mcHostURLs, mcRedirectorIDs);
  1999. mcHostsToProcess = 0;
  2000. }
  2001. }
  2002. } //end of onload: function
  2003. }); //end of GM_xmlhttpRequest call
  2004. };//end of var gmxhrFunc
  2005.  
  2006. while (mcRedirectors = mcLinkBlockRegex.exec(mcLinkRes))
  2007. { //load individual redirector pages
  2008. mcRedirectorURL = 'http://www.mirrorcreator.com' + mcRedirectors[1];
  2009. mcHostURLs.push(mcRedirectorURL);
  2010. mcRedirectorIDs.push(mcRedirectors[2]);
  2011. gmxhrFunc(mcRedirectorURL);
  2012. } //end of while block
  2013.  
  2014. setTimeout(function(){ //in case the last page fails to load and call the function
  2015. timedOut = true;
  2016. if (mcHostsToProcess)
  2017. processMirrorcreatorFoundHosts(mcLink, mcHostURLs);
  2018. }, 60000);
  2019.  
  2020. } //end of onload function
  2021. }); //end of GM_xmlhttpRequest call
  2022. } //end of function processMirrorcreatorLink
  2023.  
  2024.  
  2025. function processMirrorcreatorFoundHosts(mcLink, mcHostURLs, mcRedirectorIDs)
  2026. {
  2027. var aEl, liEl, docFrag;
  2028. var hostName, mcRedirectorID, trimFilename = false;
  2029. var i = mcHostURLs.length;
  2030. if (i == 0)
  2031. {
  2032. trimFilename = true;
  2033. mcLink.parentNode.insertBefore(document.createTextNode(' | No files inside container'), mcLink.nextSibling);
  2034. }
  2035. else
  2036. {
  2037. if (Display_full_links_in_link_containers)
  2038. { //full view
  2039. var wrapperEl = document.createElement('span');
  2040. wrapperEl.style.display = 'block';
  2041. var ulistEl = document.createElement('ul');
  2042. ulistEl.className = 'container_list';
  2043. while (i--)
  2044. {
  2045. liEl = document.createElement('li');
  2046. aEl = document.createElement('a');
  2047. aEl.appendChild(document.createTextNode(mcHostURLs[i]));
  2048. aEl.href = mcHostURLs[i];
  2049. aEl.className = 'container_link';
  2050. liEl.appendChild(aEl);
  2051. ulistEl.appendChild(liEl);
  2052. }
  2053. wrapperEl.appendChild(ulistEl);
  2054. mcLink.parentNode.replaceChild(wrapperEl, mcLink);
  2055. wrapperEl.insertBefore(mcLink, wrapperEl.firstChild);
  2056. }
  2057. else
  2058. { //compact view
  2059. trimFilename = true;
  2060. docFrag = document.createDocumentFragment();
  2061. docFrag.appendChild(document.createTextNode(' |'));
  2062. while (i--)
  2063. {
  2064. mcRedirectorID = mcRedirectorIDs[i];
  2065. hostName = mcHostURLs[i];
  2066. if (mcRedirectorID > mcShortHostNames.length-1 || mcShortHostNames[mcRedirectorID] == '??')
  2067. hostName = hostName.replace(/https?:\/\/(?:www\.)?([-0-9a-z]+(?:\.[-0-9a-z]+)?)\.[a-z]+\/.*/i, '$1').toUpperCase();
  2068. else
  2069. hostName = mcShortHostNames[mcRedirectorID];
  2070. aEl = document.createElement('a');
  2071. aEl.href = mcHostURLs[i];
  2072. aEl.className = 'container_link';
  2073. aEl.appendChild(document.createTextNode(hostName));
  2074. docFrag.appendChild(aEl);
  2075. docFrag.appendChild(document.createTextNode('|'));
  2076. }
  2077. mcLink.parentNode.insertBefore(docFrag, mcLink.nextSibling);
  2078. } //end of else block
  2079. } //end of else block
  2080. mcLink.className = '';
  2081. if (trimFilename)
  2082. mcLink.firstChild.nodeValue = mcLink.firstChild.nodeValue.replace(/(https?:\/\/[^\/]+\/files\/\w+\/).+/, '$1...');
  2083. cMirrorcreatorComProcessed++;
  2084. if (cMirrorcreatorComProcessed == cMirrorcreatorComTotal) //start check when all mc links have been processed
  2085. {
  2086. if (Do_not_linkify_DL_links)
  2087. delinkifySnapshot(mcSnapshot);
  2088. startBulkCheck('container_link');
  2089. start('container_link');
  2090. }
  2091. } //end of function processMirrorcreatorFoundHosts
  2092.  
  2093. containers_processed = true;
  2094.  
  2095.  
  2096. function initRedirectors()
  2097. {
  2098. function addRedirector(linkRegex, xpathEx, redirType, innerLinkRegex)
  2099. {
  2100. var redirector = new Object();
  2101. redirector.linkRegex = linkRegex;
  2102. redirector.xpath = xpathEx; //xpath expression
  2103. redirector.cProcessed = 0; //processed links count
  2104. redirector.cTotal = 0; //total links count
  2105. redirector.type = redirType; //redirectorTypes enum
  2106. redirector.innerLinkRegex = innerLinkRegex; //innerLink, null if unused
  2107. redirectors.push(redirector);
  2108. }
  2109. if (GM_getValue("Check_safelinking_dot_net_links", false))
  2110. {
  2111. addRedirector(
  2112. 'safelinking\\.net\/d\/\\w+',
  2113. "//a[contains(@href,'safelinking.net/d/')]",
  2114. redirectorTypes.HTTP_302,
  2115. null);
  2116. }
  2117. if (GM_getValue("Check_linksafe_dot_me_links", false))
  2118. {
  2119. addRedirector(
  2120. 'linksafe\\.me\/d\/\\w+',
  2121. "//a[contains(@href,'linksafe.me/d/')]",
  2122. redirectorTypes.HTTP_302,
  2123. null);
  2124. }
  2125. if (GM_getValue("Check_linkto_dot_net_links", false))
  2126. {
  2127. addRedirector(
  2128. 'linkto\\.net\/\\?\\w+\\.\\d+',
  2129. "//a[contains(@href,'linkto.net/?')]",
  2130. redirectorTypes.INNER_LINK,
  2131. /<iframe id="iframe" name="iframe" src="(.+?)\s*" frameborder="0"/);
  2132. }
  2133. if (GM_getValue("Check_theloo_dot_katt_dot_it_links", false))
  2134. {
  2135. addRedirector(
  2136. '(?:the)?loo\\.katt\\.it\/\\w+',
  2137. "//a[contains(@href,'loo.katt.it/')]",
  2138. redirectorTypes.THELOO_KATT_IT,
  2139. /Proceed to URL - <a href="(.+?)">/);
  2140. }
  2141. if (GM_getValue("Check_madlink_dot_sk_links", false))
  2142. {
  2143. addRedirector(
  2144. 'madlink\\.sk\/\\w+',
  2145. "//a[contains(@href,'madlink.sk/')]",
  2146. redirectorTypes.INNER_LINK,
  2147. /name="url" value="(.+?)\s*"\/>/);
  2148. }
  2149. if (GM_getValue("Check_adf_dot_ly_links", false))
  2150. {
  2151. addRedirector(
  2152. '(?:adf\\.ly|[u9]\\.bb|[qj]\\.gs)\/\\w+',
  2153. "//a[contains(@href,'adf.ly/') (@href,'u.bb/') or contains(@href,'9.bb/') or contains(@href,'q.gs/') or contains(@href,'j.gs/')]",
  2154. redirectorTypes.ADF_LY,
  2155. null);
  2156. }
  2157. if (GM_getValue("Check_redi_dot_re_links", false))
  2158. {
  2159. addRedirector(
  2160. 'redi\\.re\/\\w+',
  2161. "//a[contains(@href,'redi.re/')]",
  2162. redirectorTypes.HTTP_302,
  2163. null);
  2164. }
  2165. if (GM_getValue("Check_bit_dot_ly_links", false))
  2166. {
  2167. addRedirector(
  2168. 'bit\\.ly\/\\w+',
  2169. "//a[contains(@href,'bit.ly/')]",
  2170. redirectorTypes.HTTP_302,
  2171. null);
  2172. }
  2173. }
  2174.  
  2175. }
  2176.  
  2177. var bulkHosts = new Array();
  2178. var bulkHostNames = new Array();
  2179. function initBulkCheck()
  2180. {
  2181. /////////////////////////////
  2182. // Inits filehost object
  2183. /////////////////////////////
  2184. // params :
  2185. // hostName -- [string] host name (multiple domains separated with coma)
  2186. // linkRegex -- [string] link regex
  2187. // xpath -- [string] xpath expression to detect the link objects with evaluate
  2188. // blockSize -- [integer] max. number of links sent in one request, 50 if null
  2189. // corrMatch -- [regex] link correction regex (match), applied prior to corrRepl
  2190. // corrReplWhat -- [regex] link correction regex (replace)
  2191. // corrReplWith -- [string]
  2192. // splitSeparator -- [string] POSTDATA links separator, "\r\n" if null
  2193. //
  2194. // apiUrl -- [string] web linkchecker or API URL
  2195. // postData -- [string] POSTDATA of xmlhttprequest
  2196. // resLinkRegex -- [regex]
  2197. // resLiveRegex -- [regex] matches substrings containing live links in the request response
  2198. // resDeadRegex -- [regex] matches substrings containing dead links in the request response
  2199. // resUnavaRegex -- [regex] matches substrings containing unava links in the request response
  2200. // func -- [function] bulkcheck handler, genBulkCheck if null
  2201. //
  2202. //////////////////////////////
  2203. function addHost(hostName, linkRegex, xpath, blockSize, corrMatch, corrReplWhat, corrReplWith, splitSeparator,
  2204. apiUrl, postData, resLinkRegex, resLiveRegex, resDeadRegex, resUnavaRegex, func)
  2205. {
  2206. var fileHost = new Object();
  2207.  
  2208. fileHost.linkRegex = linkRegex;
  2209. fileHost.linkRegexObject = new RegExp(linkRegex, "");
  2210. fileHost.xpath = xpath;
  2211. fileHost.cFound = 0; //found links counter
  2212. fileHost.links = new Array(); //found links
  2213. if (blockSize == null)
  2214. {
  2215. fileHost.blockSize = 50;
  2216. }
  2217. else
  2218. {
  2219. fileHost.blockSize = blockSize;
  2220. }
  2221. fileHost.corrMatch = corrMatch;
  2222. fileHost.corrReplWhat = corrReplWhat;
  2223. fileHost.corrReplWith = corrReplWith;
  2224. if (splitSeparator == null)
  2225. {
  2226. fileHost.splitSeparator = "\r\n";
  2227. }
  2228. else
  2229. {
  2230. fileHost.splitSeparator = splitSeparator;
  2231. }
  2232. fileHost.apiUrl = apiUrl;
  2233. fileHost.postData = postData;
  2234. fileHost.resLinkRegex = resLinkRegex;
  2235. fileHost.resLiveRegex = resLiveRegex;
  2236. fileHost.resDeadRegex = resDeadRegex;
  2237. fileHost.resUnavaRegex = resUnavaRegex;
  2238. if (func == null)
  2239. {
  2240. fileHost.func = genBulkCheck;
  2241. }
  2242. else
  2243. {
  2244. fileHost.func = func;
  2245. }
  2246. bulkHosts.push(fileHost);
  2247. var names = hostName.split(',');
  2248. var i = names.length;
  2249. while(i--)
  2250. {
  2251. bulkHostNames[names[i]] = fileHost;
  2252. }
  2253. }
  2254. var genType1 = [
  2255. "migahost.com", "rodfile.com", "downloadani.me",
  2256. "rarefile.net",
  2257. "filesabc.com",
  2258. "180upload.com", "verzend.be",
  2259. "movreel.com",
  2260. "4up.me",
  2261. "file4safe.com", "filemac.com", "4upfiles.com",
  2262. "idup.in", "novafile.com", "longfiles.com",
  2263. "bitupload.com",
  2264. "uploadbaz.com"
  2265. ];
  2266. var genType2 = [ "queenshare.com",
  2267. "hulkload.com",
  2268. "amonshare.com", "edoc.com",
  2269. ];
  2270. //xfilesharing 1.0
  2271. function addGenericType1()
  2272. {
  2273. var i = genType1.length;
  2274. while(i--)
  2275. {
  2276. if (GM_getValue("Check_" + genType1[i].replace(/\./g, "_dot_").replace(/-/g, "_dash_") + "_links", false))
  2277. {
  2278. var regexSafe = genType1[i].replace(/\./g, "\\.").replace(/-/g, "\\-");
  2279. addHost(
  2280. genType1[i].match(/[\w-]+/)[0], //hostname
  2281. regexSafe + "\/\\w+", //linkregex
  2282. "//a[contains(@href,'" + genType1[i] + "/')]", //xpath
  2283. null, //blocksize
  2284. new RegExp("(http:\/\/(?:|www\\.)" + regexSafe + "\/\\w+)",""),//, //corrmatch
  2285. null, //corrreplwhat
  2286. null, //corrreplwith
  2287. null, //separator
  2288. "http://" + genType1[i] + "/checkfiles.html", //api url
  2289. "op=checkfiles&process=Check+URLs&list=", //postdata
  2290. new RegExp("(" + regexSafe + "\/\\w+)",""), //linkregex
  2291. new RegExp("green'>http:\/\/(?:|www\.)" + regexSafe + "\/\\w+","g"), //liveregex
  2292. new RegExp("red'>http:\/\/(?:|www\.)" + regexSafe + "\/\\w+","g"), //deadregex
  2293. new RegExp("orange'>http:\/\/(?:|www\.)" + regexSafe + "\/\\w+","g"), //unavaregex
  2294. null //function delegate
  2295. )
  2296. }
  2297. }
  2298. }
  2299. //xfilesharing 2.0
  2300. function addGenericType2()
  2301. {
  2302. var i = genType2.length;
  2303. while(i--)
  2304. {
  2305. if (GM_getValue("Check_" + genType2[i].replace(/\./g, "_dot_").replace(/-/g, "_dash_") + "_links", false))
  2306. {
  2307. var regexSafe = genType2[i].replace(/\./g, "\\.").replace(/-/g, "\\-");
  2308. addHost(
  2309. genType2[i].match(/[\w-]+/)[0], //hostname
  2310. regexSafe + "\/\\w+", //linkregex
  2311. "//a[contains(@href,'" + genType2[i] + "/')]", //xpath
  2312. null, //blocksize
  2313. new RegExp("(http:\/\/(?:|www\\.)" + regexSafe + "\/\\w+)",""),//, //corrmatch
  2314. null, //corrreplwhat
  2315. null, //corrreplwith
  2316. null, //separator
  2317. "http://www." + genType2[i] + "/?op=checkfiles", //api url
  2318. "op=checkfiles&process=Check+URLs&list=", //postdata
  2319. new RegExp("(" + regexSafe + "\/\\w+)",""), //linkregex
  2320. new RegExp(regexSafe + "\/\\w+.*?<\/td>\\s*<td style=\"color:green;\">","g"), //liveregex
  2321. new RegExp(regexSafe + "\/\\w+.*?<\/td>\\s*<td style=\"color:red;\">","g"), //deadregex
  2322. new RegExp(regexSafe + "\/\\w+.*?<\/td>\\s*<td style=\"color:orange;\">","g"), //unavaregex
  2323. null //function delegate
  2324. )
  2325. }
  2326. }
  2327. }
  2328. // TEMPLATE
  2329. // if (GM_getValue("Check__dot_com_links", false))
  2330. // {
  2331. // addHost(
  2332. // "", //hostname
  2333. // "", //linkregex
  2334. // "//a[contains(@href,'.com/')]", //xpath
  2335. // null, //blocksize
  2336. // null, //corrmatch
  2337. // null, //corrreplwhat
  2338. // null, //corrreplwith
  2339. // null, //separator
  2340. // "", //api url
  2341. // "", //postdata
  2342. // /()/, //linkregex
  2343. // //liveregex
  2344. // //deadregex
  2345. // //unavaregex
  2346. // null //function delegate
  2347. // )
  2348. // }
  2349. addGenericType1();
  2350. addGenericType2();
  2351.  
  2352. if (GM_getValue("Check_myvdrive_dot_com_links", false))
  2353. {
  2354. addHost(
  2355. "myvdrive,fileserving", //hostname
  2356. "(?:fileserving|myvdrive)\\.com\/files\/[\\w-]+", //linkregex
  2357. "//a[contains(@href,'fileserving.com/files') or contains(@href,'myvdrive.com/files')]", //xpath
  2358. null, //blocksize
  2359. null, //corrmatch
  2360. null, //corrreplwhat
  2361. null, //corrreplwith
  2362. null, //separator
  2363. "http://www.myvdrive.com/Public/linkchecker#", //api url
  2364. "links=", //postdata
  2365. /(?:fileserving|myvdrive)\.com\/(files\/\w+)/, //linkregex
  2366. /icon_file_check_valid"><\/span>\s*http:\/\/www\.(?:fileserving|myvdrive)\.com\/files\/[\w-]+/g, //liveregex
  2367. /icon_file_check_(?:removed|notvalid)"><\/span>\s*http:\/\/www\.(?:fileserving|myvdrive)\.com\/files\/[\w-]+/g, //deadregex
  2368. null, //unavaregex
  2369. null //function delegate
  2370. )
  2371. }
  2372. if (GM_getValue("Check_hackerbox_dot_org_links", false))
  2373. {
  2374. addHost(
  2375. "hackerbox", //hostname
  2376. "host\\.hackerbox\\.org\/\\w+", //linkregex
  2377. "//a[contains(@href,'host.hackerbox.org/')]", //xpath
  2378. null, //blocksize
  2379. /(http:\/\/host\.hackerbox\.org\/\w+)/, //corrmatch
  2380. null, //corrreplwhat
  2381. null, //corrreplwith
  2382. null, //separator
  2383. "http://host.hackerbox.org/checkfiles.html", //api url
  2384. "op=checkfiles&process=Check+URLs&list=", //postdata
  2385. /(host\.hackerbox\.org\/\w+)/, //linkregex
  2386. /green'>http:\/\/host\.hackerbox\.org\/\w+/g, //liveregex
  2387. /red'>http:\/\/host\.hackerbox\.org\/\w+/g, //deadregex
  2388. /orange'>http:\/\/host\.hackerbox\.org\/\w+/g, //unavaregex
  2389. null //function delegate
  2390. )
  2391. }
  2392. if (GM_getValue("Check_hellshare_dot_com_links", false))
  2393. {
  2394. addHost(
  2395. "hellshare", //hostname
  2396. "(?:|download\\.(?:cz\\.|en\\.|sk\\.|)|www\\.)hellshare\\.(?:com|sk|cz|pl|hu|COM|SK|CZ|PL|HU)\/[\\w-\\.]+\/(?:[\\w-\\.]+\/|)\\d{5,}", //linkregex
  2397. "//a[contains(@href,'hellshare.')]", //xpath
  2398. 48, //blocksize
  2399. null, //corrmatch
  2400. null, //corrreplwhat
  2401. null, //corrreplwith
  2402. null, //separator
  2403. null, //api url
  2404. null, //postdata
  2405. null, //linkregex
  2406. null, //liveregex
  2407. null, //deadregex
  2408. null, //unavaregex
  2409. hellshareBulkCheck //function delegate
  2410. )
  2411. }
  2412. if (GM_getValue("Check_ncrypt_dot_in_links", false))
  2413. {
  2414. addHost(
  2415. "ncrypt", //hostname
  2416. "ncrypt\\.in\/folder\\-\\w+", //linkregex
  2417. "//a[contains(@href,'ncrypt.in/folder')]", //xpath
  2418. 100000, //blocksize
  2419. null, //corrmatch
  2420. null, //corrreplwhat
  2421. null, //corrreplwith
  2422. null, //separator
  2423. null,
  2424. null,
  2425. null,
  2426. null,
  2427. null,
  2428. null,
  2429. ncryptBulkCheck //function delegate
  2430. )
  2431. }
  2432. if (GM_getValue("Check_geupload_dot_com_links", false))
  2433. {
  2434. addHost(
  2435. "geupload,lenfile", //hostname
  2436. "(?:geupload\\.com|lenfile\\.com)\/\\w+", //linkregex
  2437. "//a[contains(@href,'geupload.com/') or contains(@href,'lenfile.com/')]", //xpath
  2438. null, //blocksize
  2439. null, //corrmatch
  2440. null, //corrreplwhat
  2441. null, //corrreplwith
  2442. "\n", //separator
  2443. 'http://geupload.com/?op=checkfiles',
  2444. 'op=checkfiles&process=Check+URLs&list=',
  2445. />http:\/\/(?:geupload|lenfile)\.com\/(\w+)/,
  2446. />http:\/\/(?:geupload|lenfile)\.com\/\w+(?:[^>]+>)<td style=\"color\:green/g,
  2447. />http:\/\/(?:geupload|lenfile)\.com\/\w+(?:[^>]+>)<td style=\"color\:red/g,
  2448. null,
  2449. null
  2450. )
  2451. }
  2452. if (GM_getValue("Check_uploadrocket_dot_net_links", false))
  2453. {
  2454. addHost(
  2455. "uploadrocket", //hostname
  2456. "(?:uploadrocket\\.net)\/\\w+", //linkregex
  2457. "//a[contains(@href,'uploadrocket.net/')]", //xpath
  2458. null, //blocksize
  2459. null, //corrmatch
  2460. null, //corrreplwhat
  2461. null, //corrreplwith
  2462. "\n", //separator
  2463. 'http://uploadrocket.net/?op=checkfiles',
  2464. 'op=checkfiles&process=Check+URLs&list=',
  2465. /uploadrocket.net\/(\w+)/,
  2466. />http:\/\/uploadrocket.net\/\w+(?:[^>]+>)<td style="color:green/g,
  2467. />http:\/\/uploadrocket.net\/\w+(?:[^>]+>)<td style="color:red/g,
  2468. null,
  2469. null //function delegate
  2470. )
  2471. }
  2472. if (GM_getValue("Check_depositfiles_dot_com_links", false))
  2473. {
  2474. addHost(
  2475. "depositfiles,dfiles",
  2476. "(?:(?:depositfiles\\.(?:com|org|lt))|(?:dfiles\\.(?:ru|eu)))\/files\/|en/files\/\\w+",
  2477. "//a[contains(@href,'depositfiles.lt/files/') or contains(@href,'depositfiles.com/files/') or contains(@href,'depositfiles.com/en/files/') or contains(@href,'depositfiles.org/files/') or contains(@href,'dfiles.ru/files/') or contains(@href,'dfiles.eu/files/')]",
  2478. 100000, //blocksize
  2479. null, //corrmatch
  2480. null, //corrreplwhat
  2481. null, //corrreplwith
  2482. null, //separator
  2483. null,
  2484. null,
  2485. null,
  2486. null,
  2487. null,
  2488. null,
  2489. depositfilesBulkCheck //function delegate
  2490. )
  2491. }
  2492. if (GM_getValue("Check_filepost_dot_com_links", false))
  2493. {
  2494. addHost(
  2495. "filepost,fp", //hostname
  2496. "(?:filepost\\.com\/files|fp\\.io)\/\\w+", //linkregex
  2497. "//a[contains(@href,'filepost.com/files/') or contains(@href,'fp.io/')]", //xpath
  2498. null, //blocksize
  2499. null, //corrmatch
  2500. null, //corrreplwhat
  2501. null, //corrreplwith
  2502. "\n", //separator
  2503. 'http://filepost.com/files/checker/?JsHttpRequest=0-xml',
  2504. 'urls=',
  2505. /\\\/files\\\/(\w+)/,
  2506. />http:\\\/\\\/filepost\.com\\\/files\\\/\w+(?:[^>]+>){5}(?:\\n|\\t)+<span class=\\"v\\"/g,
  2507. />http:\\\/\\\/filepost\.com\\\/files\\\/\w+(?:[^>]+>){5}(?:\\n|\\t)+<span class=\\"x\\"/g,
  2508. null,
  2509. null //function delegate
  2510. )
  2511. }
  2512. if (GM_getValue("Check_filesflash_dot_com_links", false))
  2513. {
  2514. addHost(
  2515. "filesflash", //hostname
  2516. "filesflash\\.com\/\\w+", //linkregex
  2517. "//a[contains(@href,'filesflash.com')]", //xpath
  2518. null, //blocksize
  2519. null, //corrmatch
  2520. /http:\/\//, //corrreplwhat
  2521. '', //corrreplwith
  2522. null, //separator
  2523. 'http://filesflash.com/checklinks.php',
  2524. 'submit=Go&links=',
  2525. /filesflash\.com\/(\w+)/,
  2526. /<td>filesflash\.com\/\w+<\/td>\s*<td>Available/g,
  2527. /<td>filesflash\.com\/\w+<\/td>\s*<td>(?:Invalid|Deleted|Expired|Banned)?<\/td>/g,
  2528. null,
  2529. null //function delegate
  2530. )
  2531. }
  2532. if (GM_getValue("Check_jumbofiles_dot_com_links", false))
  2533. {
  2534. addHost(
  2535. "jumbofiles", //hostname
  2536. "jumbofiles\\.com\/\\w+", //linkregex
  2537. "//a[contains(@href,'jumbofiles.com/')]", //xpath
  2538. null, //blocksize
  2539. /(http:\/\/(?:|www\.)jumbofiles\.com\/\w+)/, //corrmatch
  2540. null, //corrreplwhat
  2541. null, //corrreplwith
  2542. null, //separator
  2543. "http://jumbofiles.com/checkfiles.html", //api url
  2544. "op=checkfiles&process=Check+URLs&list=", //postdata
  2545. /(jumbofiles\.com\/\w+)/, //linkregex
  2546. /blue'>http:\/\/(?:|www\.)jumbofiles\.com\/\w+/g, //liveregex
  2547. /red'>http:\/\/(?:|www\.)jumbofiles\.com\/\w+/g, //deadregex
  2548. /orange'>http:\/\/(?:|www\.)jumbofiles\.com\/\w+/g, //unavaregex
  2549. null //function delegate
  2550. )
  2551. }
  2552. if (GM_getValue("Check_edisk_dot_cz_links", false))
  2553. {
  2554. addHost(
  2555. "edisk", //hostname
  2556. "(?:(?:muj|data)\\d*\\.|)edisk\\.(?:cz|sk|eu)\/(?:|(?:cz|sk|en|pl)\/)", //linkregex
  2557. "//a[contains(@href,'edisk.')]", //xpath
  2558. null, //blocksize
  2559. null, //corrmatch
  2560. /edisk\.\w{2}\/(?:|\w{2}\/)stahni/, //corrreplwhat
  2561. 'edisk.cz/stahni', //corrreplwith
  2562. null, //separator
  2563. 'http://www.edisk.cz/zkontrolovat-odkazy',
  2564. 'submitBtn=Zkontrolovat&checkFiles=',
  2565. /((?:download|stahn(?:i|out-soubor))\/\d+)/,
  2566. /"ano"\/>\s*<\/td>\s*<td>\s*http:\/\/.+/g,
  2567. /"ne"\/>\s*<\/td>\s*<td>\s*http:\/\/.+/g,
  2568. null,
  2569. null //function delegate
  2570. )
  2571. }
  2572. if (GM_getValue("Check_bezvadata_dot_cz_links", false))
  2573. {
  2574. GM_xmlhttpRequest( //age check skip
  2575. {
  2576. method: 'POST',
  2577. url: 'http://bezvadata.cz/vyhledavani/souhlas-zavadny-obsah',
  2578. headers: {
  2579. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  2580. 'Content-type': 'application/x-www-form-urlencoded',
  2581. 'Referer': ""
  2582. }
  2583. });
  2584. addHost(
  2585. "bezvadata", //hostname
  2586. "(?:beta\\.|)bezvadata\.cz\/stahnout\/\\d+\\w+", //linkregex
  2587. "//a[contains(@href,'bezvadata.cz')]", //xpath
  2588. null, //blocksize
  2589. null, //corrmatch
  2590. null, //corrreplwhat
  2591. null, //corrreplwith
  2592. null, //separator
  2593. 'http://bezvadata.cz/nastroje/kontrola-odkazu?do=kontrolaOdkazuForm-submit',
  2594. 'zkontrolovat=Zkontrolovat&odkazy=',
  2595. /(bezvadata\.cz\/stahnout\/\d+)/,
  2596. /bezvadata\.cz\/stahnout\/.+?<\/td>\s*<td style="background-color: #d9ffb2/g,
  2597. /bezvadata\.cz\/stahnout\/.+?<\/td>\s*<td style="background-color: #ffb2b2/g,
  2598. null,
  2599. null //function delegate
  2600. )
  2601. }
  2602. if (GM_getValue("Check_linkcrypt_dot_ws_links", false))
  2603. {
  2604. addHost(
  2605. "linkcrypt", //hostname
  2606. "linkcrypt\\.ws\/dir\/\\w+", //linkregex
  2607. "//a[contains(@href,'linkcrypt.ws/dir')]", //xpath
  2608. 100000, //blocksize
  2609. null, //corrmatch
  2610. null, //corrreplwhat
  2611. null, //corrreplwith
  2612. null, //separator
  2613. null,
  2614. null,
  2615. null,
  2616. null,
  2617. null,
  2618. null,
  2619. linkcryptBulkCheck //function delegate
  2620. )
  2621. }
  2622. if (GM_getValue("Check_linksave_dot_in_links", false))
  2623. {
  2624. addHost(
  2625. "linksave", //hostname
  2626. "linksave\\.in\/\\w+", //linkregex
  2627. "//a[contains(@href,'linksave.in')]", //xpath
  2628. 100000, //blocksize
  2629. null, //corrmatch
  2630. null, //corrreplwhat
  2631. null, //corrreplwith
  2632. null, //separator
  2633. null,
  2634. null,
  2635. null,
  2636. null,
  2637. null,
  2638. null,
  2639. linksaveBulkCheck //function delegate
  2640. )
  2641. }
  2642. if (GM_getValue("Check_videobb_dot_com_links", false))
  2643. {
  2644. addHost(
  2645. "videobb", //hostname
  2646. "videobb\\.com\/(?:video\/|watch_video\\.php\\?v=)\\w+", //linkregex
  2647. "//a[contains(@href,'videobb.com')]", //xpath
  2648. null, //blocksize
  2649. null, //corrmatch
  2650. /watch_video\.php\?v=/, //corrreplwhat
  2651. 'video/', //corrreplwith
  2652. null, //separator
  2653. 'http://www.videobb.com/link_checker.php',
  2654. 'links=',
  2655. /videobb\.com\/video\/(\w+)/,
  2656. /<td>http:\/\/(?:www\.|)videobb.com\/video\/\w+<\/td>\s+<td>.+?<\/td>\s+<td>\d+:\d+<\/td>\s+<td>Available/g,
  2657. /<td>http:\/\/(?:www\.|)videobb.com\/video\/\w+<\/td>\s+<td><\/td>\s+<td>N\/A<\/td>\s+<td>Not Available/g,
  2658. null,
  2659. null //function delegate
  2660. )
  2661. }
  2662. if (GM_getValue("Check_cramit_dot_in_links", false))
  2663. {
  2664. addHost(
  2665. "cramit,cramitin", //hostname
  2666. "cramit(?:\\.in|in\\.net)\/", //linkregex
  2667. "//a[contains(@href,'cramitin.net') or contains(@href,'cramit.in')]", //xpath
  2668. null, //blocksize
  2669. null, //corrmatch
  2670. null, //corrreplwhat
  2671. null, //corrreplwith
  2672. null, //separator
  2673. 'http://cramit.in/checkfiles.html',
  2674. 'op=checkfiles&process=CHECK+URL%27S&list=',
  2675. /(cramit(?:\.in|in\.net)\/\w+)/,
  2676. /green>http:\/\/(?:www\.|)cramit(?:\.in|in\.net)\/\w+/g,
  2677. /red'>http:\/\/(?:www\.|)cramit(?:\.in|in\.net)\/\w+/g,
  2678. /orange'>http:\/\/(?:www\.|)cramit(?:\.in|in\.net)\/\w+/g,
  2679. null //function delegate
  2680. )
  2681. }
  2682. /* if (GM_getValue("Check_turbobit_dot_net_links", false))
  2683. {
  2684. addHost(
  2685. "turbobit", //hostname
  2686. "turbobit\\.(?:net|pl)\/(?:\\w+\/|).+?\\.html", //linkregex
  2687. "//a[contains(@href,'turbobit.')]", //xpath
  2688. null, //blocksize
  2689. /(turbobit\.(?:net|pl)\/(?:\w+\/|).+?\.html)/, //corrmatch
  2690. null, //corrreplwhat
  2691. null, //corrreplwith
  2692. "\n", //separator
  2693. 'http://turbobit.net/linkchecker/csv',
  2694. 'links_to_check=',
  2695. /(turbobit\.(?:net|pl)\/\w+)/,
  2696. /turbobit\.(?:net|pl)\/.*?, 1/g,
  2697. /turbobit\.(?:net|pl)\/.*?, 0/g,
  2698. null,
  2699. null //function delegate
  2700. )
  2701. } */
  2702. if (GM_getValue("Check_filerio_dot_com_links", false))
  2703. {
  2704. addHost(
  2705. "filekeen,filerio", //hostname
  2706. //"file(?:keen|rio)\\.(?:com|in)\/\\w+\/.", //linkregex
  2707. "file(?:keen|rio)\\.(?:com|in)\/\\w+", //linkregex
  2708. "//a[contains(@href,'filekeen.com') or contains(@href,'filerio.')]", //xpath
  2709. null, //blocksize
  2710. null, //corrmatch
  2711. null, //corrreplwhat
  2712. null, //corrreplwith
  2713. null, //separator
  2714. 'http://filerio.in/checkfiles.html',
  2715. 'op=checkfiles&process=Check+URLs&list=',
  2716. /(file(?:keen|rio)\.(?:com|in)\/\w+)/,
  2717. /green'>http:\/\/(?:www\.|)file(?:keen|rio)\.(?:com|in)\/\w+/g,
  2718. /red'>http:\/\/(?:www\.|)file(?:keen|rio)\.(?:com|in)\/\w+/g,
  2719. /orange'>http:\/\/(?:www\.|)file(?:keen|rio)\.(?:com|in)\/\w+/g,
  2720. null //function delegate
  2721. )
  2722. }
  2723. if (GM_getValue("Check_share_dash_online_dot_biz_links", false))
  2724. {
  2725. addHost(
  2726. "share-online,egoshare", //hostname
  2727. "(?:share-online\\.biz|egoshare\\.com)\/(?:dl\/|download\\.php\\?id=)", //linkregex
  2728. "//a[contains(@href,'share-online.biz') or contains(@href,'egoshare.com')]", //xpath
  2729. null, //blocksize
  2730. /http:\/\/(?:www\.)?(?:share-online\.biz|egoshare\.com)\/d(?:l\/|ownload\.php\?id=)(\w+)/, //corrmatch
  2731. null, //corrreplwhat
  2732. null, //corrreplwith
  2733. "\n", //separator
  2734. 'http://api.share-online.biz/linkcheck.php',
  2735. 'links=',
  2736. /(\w+);(?:OK|NOTFOUND|DELETED)/,
  2737. /\w+;OK/g,
  2738. /\w+;(?:NOTFOUND|DELETED)/g,
  2739. null,
  2740. null //function delegate
  2741. )
  2742. }
  2743. if (GM_getValue("Check_quickshare_dot_cz_links", false))
  2744. {
  2745. addHost(
  2746. "quickshare", //hostname
  2747. "quickshare\\.cz\/stahnout-soubor\/\\d+", //linkregex
  2748. "//a[contains(@href,'quickshare.cz')]", //xpath
  2749. null, //blocksize
  2750. null, //corrmatch
  2751. null, //corrreplwhat
  2752. null, //corrreplwith
  2753. null, //separator
  2754. 'http://www.quickshare.cz/nastroje/link-checker',
  2755. 'linky=',
  2756. /quickshare\.cz\/stahnout-soubor\/(\d+(?::\w+)?)/,
  2757. /quickshare\.cz\/stahnout-soubor\/\d+(?::[\w\-.+$!*\/()\[\]\',~%?:@#&=\\]+)?\s*<\/a><\/td><td><img src="\/img\/ok\.gif/g,
  2758. /quickshare\.cz\/stahnout-soubor\/\d+(?::[\w\-.+$!*\/()\[\]\',~%?:@#&=\\]+)?\s*<\/td><td><img src="\/img\/nenalezeno\.gif/g,
  2759. null,
  2760. null //function delegate
  2761. )
  2762. }
  2763. if (GM_getValue("Check_netload_dot_in_links", false))
  2764. {
  2765. addHost(
  2766. "netload", //hostname
  2767. "netload\\.in\/datei\\w{10}", //linkregex
  2768. "//a[contains(@href,'netload.in')]", //xpath
  2769. null, //blocksize
  2770. null, //corrmatch
  2771. null, //corrreplwhat
  2772. null, //corrreplwith
  2773. "\n", //separator
  2774. "http://api.netload.in/index.php?id=2", //api url
  2775. "send=Absenden&links=", //postdata
  2776. /(\w+);/, //linkregex
  2777. /\w{10,};.+?;.+?;online/g, //liveregex
  2778. /\w{10,};.+?;.+?;offline/g, //deadregex
  2779. null, //unavaregex
  2780. //netloadBulkCheck //function delegate //disabled on probation since 1.2.4.5
  2781. null //function delegate
  2782. )
  2783. }
  2784. if (GM_getValue("Check_oboom_dot_com_links", false))
  2785. {
  2786. addHost(
  2787. "oboom", //hostname
  2788. "oboom\\.com\/#?\\w{8}", //linkregex
  2789. "//a[contains(@href,'oboom.com/')]", //xpath
  2790. null, //blocksize
  2791. /oboom\.com\/#?(\w{8})/, //corrmatch
  2792. null, //corrreplwhat
  2793. null, //corrreplwith
  2794. null, //separator
  2795. null,
  2796. null,
  2797. null,
  2798. null, //liveregex
  2799. null, //deadregex
  2800. null,
  2801. oboomBulk //function delegate
  2802. )
  2803. }
  2804. if (GM_getValue("Check_mega_dot_nz_links", false))
  2805. {
  2806. addHost(
  2807. "mega",
  2808. "mega(?:\\.co)?\\.nz\/#!\\w+",
  2809. "//a[contains(@href,'mega.co.nz/') or contains(@href,'mega.nz/')]",
  2810. 100000, //blocksize
  2811. null, //corrmatch
  2812. null, //corrreplwhat
  2813. null, //corrreplwith
  2814. null, //separator
  2815. null,
  2816. null,
  2817. null,
  2818. null,
  2819. null,
  2820. null,
  2821. megaBulkCheck //function delegate
  2822. )
  2823. }
  2824.  
  2825. //the same as GenType2, except api url is 'https://' instead of 'http://www.' and corrmatch is not??? needed
  2826.  
  2827. if (GM_getValue("Check_extabit_dot_com_links", false))
  2828. {
  2829. addHost(
  2830. "extabit", //hostname
  2831. "extabit\\.com\/file\/\\w+", //linkregex
  2832. "//a[contains(@href,'extabit.com')]", //xpath
  2833. null, //blocksize
  2834. null, //corrmatch
  2835. null, //corrreplwhat
  2836. null, //corrreplwith
  2837. "\n", //separator
  2838. "http://extabit.com/linkchecker.jsp", //api url
  2839. "url=", //postdata
  2840. /extabit\.com\/(file\/\w+)/, //linkregex
  2841. /extabit\.com\/file\/\w+\/[^<]+<\/a><\/td>\s*<td class="status"><span class="status_green">/g, //liveregex
  2842. /extabit\.com\/file\/\w+\/[^<]+<\/a><\/td>\s*<td class="status"><span class="status_red">/g, //deadregex
  2843. /extabit\.com\/file\/\w+\/[^<]+<\/a><\/td>\s*<td class="status"><span class="status_yellow">/g, //unavaregex
  2844. extabitBulkCheck //function delegate
  2845. )
  2846. }
  2847. if (GM_getValue("Check_junocloud_dot_me_links", false))
  2848. {
  2849. addHost(
  2850. "junocloud", //hostname
  2851. "junocloud\\.me\/\\w+", //linkregex
  2852. "//a[contains(@href,'junocloud.me')]", //xpath
  2853. null, //blocksize
  2854. null, //corrmatch
  2855. null, //corrreplwhat
  2856. null, //corrreplwith
  2857. "\n", //separator
  2858. "http://junocloud.me/checkfiles.html", //api url
  2859. "op=checkfiles&process=Check+URLs&list=", //postdata
  2860. /(junocloud\.me\/\w+)/, //linkregex
  2861. /<a href="http:\/\/junocloud\.me\/\w+[^<]+<\/a>\s*<span style="color: green/g, //liveregex
  2862. /<a href="http:\/\/junocloud\.me\/\w+[^<]+<\/a>\s*<span style="color: red/g, //deadregex
  2863. null, //unavaregex
  2864. null //function delegate
  2865. )
  2866. }
  2867. if (GM_getValue("Check_webshare_dot_cz_links", false))
  2868. {
  2869. addHost(
  2870. "webshare", //hostname
  2871. "webshare\.cz\/(?:(?:#/)?file/\\w+|\\w+-.*)", //linkregex
  2872. "//a[contains(@href,'webshare.cz')]", //xpath
  2873. 100000, //blocksize
  2874. null, //corrmatch
  2875. null, //corrreplwhat
  2876. null, //corrreplwith
  2877. null, //separator
  2878. null, //api url
  2879. null, //postdata
  2880. null, //linkregex
  2881. null, //liveregex
  2882. null, //deadregex
  2883. null, //unavaregex
  2884. webshareBulkCheck //function delegate
  2885. )
  2886. }
  2887. /////////////////////////////
  2888. // Common function delegate to send links to get checked by host linkchecker
  2889. /////////////////////////////
  2890. // If you define a new delegate, you may use following properties
  2891. // this.links [array] array of strings (link blocks). The links in each block separated with host.splitSeparator.
  2892. // this.apiUrl [string] API or web linkchecker URL
  2893. // this.postData [string] POSTDATA for POST request
  2894. // this.resLiveRegex [regex] matches live substrings in the request response
  2895. // this.resDeadRegex [regex] matches dead substrings in the request response
  2896. // this.resUnavaRegex [regex] matches unava substrings in the request response (the regex is often null!)
  2897. //
  2898. // this.resLinkRegex [regex] matches links further passed to DisplayTheCheckedLinks
  2899. //
  2900. // See the code below for standard bulkcheck handling reference.
  2901. //////////////////////////////
  2902. function genBulkCheck()
  2903. {
  2904. var blockIdx = this.links.length;
  2905. while (blockIdx--)
  2906. {
  2907. postRequest(this.apiUrl, this.postData, this.links[blockIdx],
  2908. this.resLinkRegex, this.resLiveRegex, this.resDeadRegex, this.resUnavaRegex);
  2909. }
  2910. function postRequest(api, postData, links, linkRegex, liveRegex, deadRegex, unavaRegex)
  2911. {
  2912. GM_xmlhttpRequest(
  2913. {
  2914. method: 'POST',
  2915. url: api,
  2916. headers: {
  2917. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  2918. 'Content-type': 'application/x-www-form-urlencoded',
  2919. 'Referer': api,
  2920. 'X-Requested-With': 'XMLHttpRequest'
  2921. },
  2922. data: postData + encodeURIComponent(links),
  2923. onload: function (result)
  2924. {
  2925. var res = result.responseText;
  2926. // GM_log(res);
  2927. var i;
  2928.  
  2929. var livelinks = res.match(liveRegex);
  2930. var deadlinks = res.match(deadRegex);
  2931. // GM_log(livelinks);
  2932. // GM_log(deadlinks);
  2933. if (livelinks != null)
  2934. {
  2935. i = livelinks.length - 1;
  2936. do
  2937. {
  2938. livelinks[i] = livelinks[i].match(linkRegex)[1];
  2939. }
  2940. while (i--);
  2941. DisplayTheCheckedLinks(livelinks, 'alive_link');
  2942. }
  2943.  
  2944. if (deadlinks != null)
  2945. {
  2946. i = deadlinks.length - 1;
  2947. do
  2948. {
  2949. deadlinks[i] = deadlinks[i].match(linkRegex)[1];
  2950. }
  2951. while (i--);
  2952. DisplayTheCheckedLinks(deadlinks, 'adead_link');
  2953. }
  2954.  
  2955. if (unavaRegex != null)
  2956. {
  2957. var unavalinks = res.match(unavaRegex);
  2958. if (unavalinks)
  2959. {
  2960. i = unavalinks.length - 1;
  2961. do
  2962. {
  2963. unavalinks[i] = unavalinks[i].match(linkRegex)[1];
  2964. }
  2965. while (i--);
  2966. DisplayTheCheckedLinks(unavalinks, 'unava_link');
  2967. }
  2968. }
  2969. }
  2970. });
  2971. }
  2972. }
  2973. //specialized bulkchecking handlers follow
  2974. function webshareBulkCheck()
  2975. {
  2976. var arr = this.links[0].split("\r\n");
  2977. var i = arr.length;
  2978. while(i--)
  2979. {
  2980. postRequest(arr[i]);
  2981. }
  2982. //function postRequest(api, postData, links, linkRegex, liveRegex, deadRegex, unavaRegex)
  2983. function postRequest(wsLink)
  2984. {
  2985. var id = wsLink.match(/webshare\.cz\/(?:(?:#\/)?file\/)?(\w+)/)[1];
  2986. GM_xmlhttpRequest(
  2987. {
  2988. method: 'POST',
  2989. url: "http://webshare.cz/api/file_info/",
  2990. headers: {
  2991. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  2992. 'Content-type': 'application/x-www-form-urlencoded',
  2993. 'Referer': "",
  2994. },
  2995. data: "wst=&ident=" + id,
  2996. onload: function (result)
  2997. {
  2998. var res = result.responseText;
  2999. if (res.match(/<name>.+?<\/name>/))
  3000. {
  3001. DisplayTheCheckedLinks([id], 'alive_link');
  3002. }
  3003. else
  3004. {
  3005. DisplayTheCheckedLinks([id], 'adead_link');
  3006. }
  3007. }
  3008. });
  3009. }
  3010. }
  3011. //like genBulkCheck, but extabit linkchecker only works when logged in. If not logged in, non-bulk checking has to be used.
  3012. //extabit also doesn't like requests in fast succession, so some delays are added.
  3013. function extabitBulkCheck()
  3014. {
  3015. var timeoutDelay = 0;
  3016. var blockIdx = this.links.length;
  3017. while (blockIdx--)
  3018. {
  3019. postRequest(this.apiUrl, this.postData, this.links[blockIdx],
  3020. this.resLinkRegex, this.resLiveRegex, this.resDeadRegex, this.resUnavaRegex);
  3021. }
  3022. function postRequest(api, postData, links, linkRegex, liveRegex, deadRegex, unavaRegex)
  3023. {
  3024. GM_xmlhttpRequest(
  3025. {
  3026. method: 'POST',
  3027. url: api,
  3028. headers: {
  3029. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  3030. 'Content-type': 'application/x-www-form-urlencoded',
  3031. 'Referer': api,
  3032. 'X-Requested-With': 'XMLHttpRequest'
  3033. },
  3034. data: postData + encodeURIComponent(links),
  3035. onload: function (result)
  3036. {
  3037. var res = result.responseText;
  3038. if (/id="registration_header"/.test(res)) //not logged in, have to use non-bulk
  3039. {
  3040. function geturlfunc(link, tryID) //basically the geturl function with some changes (compacted, displaythecheckedlinkS, multiple tries)
  3041. {
  3042. //GM_log(tryID + ': ' + link);
  3043. GM_xmlhttpRequest(
  3044. {
  3045. method: 'GET',
  3046. url: link,
  3047. 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': ""},
  3048. onload: function(result2)
  3049. {
  3050. var res2 = result2.responseText;
  3051. var res2Status = result.status;
  3052. if (/download-file-btn/.test(res2)) {DisplayTheCheckedLinks([link], 'alive_link'); return;}
  3053. if (/Search mirrors|id="mirrb"/.test(res2) || res2Status==404) {DisplayTheCheckedLinks([link], 'adead_link'); return;}
  3054. if (/currently unavailable|temporarily unavailable|disponible en estos momentos|vorläufig unerreichbar|Файл временно недоступен/.test(res2) || res2Status == 500 || res2Status == 503)
  3055. {
  3056. if (tryID < 7)
  3057. setTimeout(function(){geturlfunc(link,tryID+1)}, tryID * 1000 + (Math.random() * tryID * 2000));
  3058. else
  3059. {DisplayTheCheckedLinks([link], 'unava_link'); return;}
  3060. }
  3061. }
  3062. });
  3063. }
  3064. //split the hrefs and check them one by one
  3065. GM_log('Using slow extabit.com link checking. Log in to extabit to use fast bulk checking.');
  3066. links = links.split('\n');
  3067. var i = links.length;
  3068. while (i--)
  3069. {
  3070. if (links[i])
  3071. {
  3072. (function(i){setTimeout(function(){geturlfunc(links[i],1)}, timeoutDelay);})(i);
  3073. timeoutDelay += 500;
  3074. }
  3075. }
  3076. return;
  3077. }
  3078. var i;
  3079.  
  3080. var livelinks = res.match(liveRegex);
  3081. var deadlinks = res.match(deadRegex);
  3082. if (livelinks != null)
  3083. {
  3084. i = livelinks.length - 1;
  3085. do
  3086. {
  3087. livelinks[i] = livelinks[i].match(linkRegex)[1];
  3088. }
  3089. while (i--);
  3090. DisplayTheCheckedLinks(livelinks, 'alive_link');
  3091. }
  3092.  
  3093. if (deadlinks != null)
  3094. {
  3095. i = deadlinks.length - 1;
  3096. do
  3097. {
  3098. deadlinks[i] = deadlinks[i].match(linkRegex)[1];
  3099. }
  3100. while (i--);
  3101. DisplayTheCheckedLinks(deadlinks, 'adead_link');
  3102. }
  3103.  
  3104. if (unavaRegex != null)
  3105. {
  3106. var unavalinks = res.match(unavaRegex);
  3107. if (unavalinks)
  3108. {
  3109. i = unavalinks.length - 1;
  3110. do
  3111. {
  3112. unavalinks[i] = unavalinks[i].match(linkRegex)[1];
  3113. }
  3114. while (i--);
  3115. DisplayTheCheckedLinks(unavalinks, 'unava_link');
  3116. }
  3117. }
  3118. }
  3119. });
  3120. }
  3121. }
  3122. function netloadBulkCheck()
  3123. {
  3124. var blockIdx = this.links.length;
  3125.  
  3126. while (blockIdx--)
  3127. {
  3128. postRequest(this.apiUrl, this.postData, this.links[blockIdx],
  3129. this.resLinkRegex, this.resLiveRegex, this.resDeadRegex, this.unavaRegex);
  3130. }
  3131. function postRequest(api, postData, links, linkRegex, liveRegex, deadRegex, unavaRegex)
  3132. {
  3133. GM_xmlhttpRequest(
  3134. {
  3135. method: 'POST',
  3136. url: api,
  3137. headers: {
  3138. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  3139. 'Content-type': 'application/x-www-form-urlencoded',
  3140. 'Referer': ""
  3141. },
  3142. data: postData + encodeURIComponent(links),
  3143. onload: function (result)
  3144. {
  3145. var res = result.responseText;
  3146. var i;
  3147.  
  3148. var livelinks = res.match(liveRegex);
  3149. var deadlinks = res.match(deadRegex);
  3150. if (livelinks != null)
  3151. {
  3152. i = livelinks.length - 1;
  3153. do
  3154. {
  3155. recheckLink(livelinks[i].match(linkRegex)[1]);
  3156. }
  3157. while(i--);
  3158. }
  3159.  
  3160. if (deadlinks != null)
  3161. {
  3162. i = deadlinks.length - 1;
  3163. do
  3164. {
  3165. deadlinks[i] = deadlinks[i].match(linkRegex)[1];
  3166. }
  3167. while (i--);
  3168. DisplayTheCheckedLinks(deadlinks, 'adead_link');
  3169. }
  3170. }
  3171. });
  3172. }
  3173. function recheckLink(link)
  3174. {
  3175. var link = link;
  3176. GM_xmlhttpRequest(
  3177. {
  3178. method: 'GET',
  3179. url: 'http://netload.in/datei' + link + '.htm',
  3180. headers: {
  3181. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3182. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  3183. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  3184. 'Referer': ""
  3185. },
  3186. onload: function (result)
  3187. {
  3188. var res = result.responseText;
  3189.  
  3190. if (res.match(/dl_first_file_download">|download_limit\.gif/))
  3191. {
  3192. DisplayTheCheckedLinks([link], 'alive_link');
  3193. return;
  3194. }
  3195.  
  3196. if (res.match(/achtung\.jpg"/))
  3197. {
  3198. DisplayTheCheckedLinks([link], 'adead_link');
  3199. }
  3200. },
  3201. onerror: function ()
  3202. {
  3203. displayTheCheckedLink(link, 'unava_link');
  3204. }
  3205. });
  3206. }
  3207. }
  3208.  
  3209. function depositfilesBulkCheck()
  3210. {
  3211. var arr = this.links[0].split("\r\n");
  3212. var i = arr.length;
  3213. var seqno = Math.floor(Math.random()*1000000000);
  3214. while(i--)
  3215. {
  3216. DFpostRequest(arr[i]);
  3217. }
  3218. }
  3219. function DFpostRequest(DFLink)
  3220. {
  3221. DFLink=DFLink.replace('depositfiles.lt/','depositfiles.com/');
  3222. DFLink=DFLink.replace('depositfiles.org/','depositfiles.com/');
  3223. DFLink=DFLink.replace('dfiles.ru/','depositfiles.com/');
  3224. DFLink=DFLink.replace('dfiles.eu/','depositfiles.com/');
  3225. DFLink=DFLink.replace('depositfiles.com/en/','depositfiles.com/');
  3226. var id = DFLink.match(/depositfiles\.com\/files\/(\w+)/)[1];
  3227. GM_xmlhttpRequest(
  3228. {
  3229. method: "GET",
  3230. url: "http://depositfiles.com/api/get_download_info.php?id=" + id + "&format=json",
  3231. headers: {
  3232. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3233. 'Content-Type': 'application/x-www-form-urlencoded',
  3234. 'Referer': ""
  3235. },
  3236. onload: function (result)
  3237. {
  3238. var res = result.responseText;
  3239. if (res.match('(?:no_file|file_ban)'))
  3240. {
  3241. DisplayTheCheckedLinks([id], 'adead_link');
  3242. return;
  3243. }
  3244. if (res.match('"download_li(?:nk|mit)|password_check|file_storage"'))
  3245. {
  3246. DisplayTheCheckedLinks([id], 'alive_link');
  3247. return;
  3248. }
  3249. DisplayTheCheckedLinks([id], 'unava_link');
  3250. }
  3251. });
  3252. }
  3253.  
  3254. function megaBulkCheck()
  3255. {
  3256. var arr = this.links[0].split("\r\n");
  3257. var i = arr.length;
  3258. var seqno = Math.floor(Math.random()*1000000000);
  3259. while(i--)
  3260. {
  3261. postRequest(arr[i]);
  3262. }
  3263. function postRequest(megaLink)
  3264. {
  3265. megaLink=megaLink.replace('mega.nz/','mega.co.nz/');
  3266. var id = megaLink.match(/mega\.co\.nz\/#!(\w+)(?:!\w+)?/)[1];
  3267. GM_xmlhttpRequest(
  3268. {
  3269. method: "POST",
  3270. url: 'https://g.api.mega.co.nz/cs?id=' + seqno++,
  3271. data: '[{"a":"g","p":"' + id + '","ssl": "1"}]',
  3272. headers: {
  3273. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3274. 'Content-Type': 'application/xml',
  3275. 'Referer': "https://mega.co.nz/"
  3276. },
  3277. onload: function (result)
  3278. {
  3279. var res = $.parseJSON(result.responseText.match(/\[(.+?)\]/)[1]);
  3280. if ((typeof res == "number" && (res == -9 || res == -16 || res == -6)) || res.d)
  3281. {
  3282.  
  3283. DisplayTheCheckedLinks([id], 'adead_link');
  3284. }
  3285. if (res.at)
  3286. {
  3287. DisplayTheCheckedLinks([id], 'alive_link');
  3288. }
  3289. if (res.e == "ETEMPUNAVAIL")
  3290. {
  3291. DisplayTheCheckedLinks([id], 'unava_link');
  3292. }
  3293. }
  3294. });
  3295. }
  3296.  
  3297. }
  3298.  
  3299. function oboomBulk() {
  3300. var a = [], b = [], c = [];
  3301. var array = this.links;
  3302.  
  3303. GM_xmlhttpRequest({
  3304. method: 'GET',
  3305. url: 'https://www.oboom.com/1/guestsession',
  3306. headers: {
  3307. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  3308. 'Content-type': 'application/x-www-form-urlencoded',
  3309. 'Referer': 'https://www.oboom.com',
  3310. 'X-Requested-With': 'XMLHttpRequest'
  3311. },
  3312. onload: function(result) {
  3313. var blockIdx = array.length;
  3314. var token = JSON.parse(result.responseText)[1];
  3315. while (blockIdx--) {
  3316. startCheck(array[blockIdx].split('\r\n'), token);
  3317. }
  3318. }
  3319. });
  3320.  
  3321. function startCheck(links, token) {
  3322. GM_xmlhttpRequest({
  3323. method: 'POST',
  3324. url: "https://api.oboom.com/1/info",
  3325. headers: {
  3326. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  3327. 'Content-type': 'application/x-www-form-urlencoded',
  3328. 'Referer': 'https://www.oboom.com/',
  3329. 'X-Requested-With': 'XMLHttpRequest'
  3330. },
  3331. data: "token=" + token + "&items=" + links.join(","),
  3332. onload: function(result) {
  3333. var res = JSON.parse(result.responseText)[1];
  3334. var i = res.length, s;
  3335.  
  3336. while (i--) {
  3337. s = res[i].state;
  3338. if (s == 'online') a.push(res[i].id);
  3339. 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);
  3340. else c.push(res[i].id);
  3341. }
  3342.  
  3343. if (a.length > 0) DisplayTheCheckedLinks(a, 'alive_link');
  3344. if (b.length > 0) DisplayTheCheckedLinks(b, 'adead_link');
  3345. if (c.length > 0) DisplayTheCheckedLinks(c, 'unava_link');
  3346. }
  3347. });
  3348. }
  3349. }
  3350. function linksaveBulkCheck()
  3351. {
  3352. var arr = this.links[0].split("\r\n");
  3353. var i = arr.length;
  3354. while(i--)
  3355. {
  3356. postRequest(arr[i]);
  3357. }
  3358. function postRequest(lsLink)
  3359. {
  3360. GM_xmlhttpRequest(
  3361. {
  3362. method: "GET",
  3363. url: lsLink + '-t.jpg',
  3364. headers: {
  3365. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3366. 'Accept': 'text/xml',
  3367. 'Referer': ""
  3368. },
  3369. onload: function (result)
  3370. {
  3371. var imgLen = result.responseHeaders.match(/Content-Length: (\d+)/)[1];
  3372. if (imgLen == 965) //online
  3373. {
  3374. DisplayTheCheckedLinks([lsLink], 'alive_link');
  3375. }
  3376.  
  3377. if (imgLen == 972) //offline
  3378. {
  3379. DisplayTheCheckedLinks([lsLink], 'adead_link');
  3380. }
  3381. if (imgLen == 978) //unava
  3382. {
  3383. DisplayTheCheckedLinks([lsLink], 'unava_link');
  3384. }
  3385. }
  3386. });
  3387. }
  3388.  
  3389. }
  3390. function linkcryptBulkCheck()
  3391. {
  3392. var arr = this.links[0].split("\r\n");
  3393. var i = arr.length;
  3394. while(i--)
  3395. {
  3396. postRequest(arr[i]);
  3397. }
  3398. function postRequest(lcLink)
  3399. {
  3400. GM_xmlhttpRequest(
  3401. {
  3402. method: "GET",
  3403. url: 'http://linkcrypt.ws/api.html?api=status_V1&folderKey=' + lcLink.match(/dir\/(\w+)/)[1],
  3404. headers: {
  3405. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3406. 'Accept': 'text/xml',
  3407. 'Referer': ""
  3408. },
  3409. onload: function (result)
  3410. {
  3411. var res = result.responseText;
  3412. if (res.match(/<errorCode>1101|folderStatus>[23]/)) //Offline status
  3413. {
  3414. DisplayTheCheckedLinks([lcLink], 'adead_link');
  3415. return;
  3416. }
  3417. if (res.match(/folderStatus>1/)) //Online status
  3418. {
  3419. DisplayTheCheckedLinks([lcLink], 'alive_link');
  3420. }
  3421. else
  3422. {
  3423. DisplayTheCheckedLinks([lcLink], 'unava_link');
  3424. }
  3425. }
  3426. });
  3427. }
  3428. }
  3429.  
  3430. function megashareBulkCheck()
  3431. {
  3432. var arr = this.links[0].split("\r\n");
  3433. var i = arr.length;
  3434. while(i--)
  3435. {
  3436. postRequest(arr[i]);
  3437. }
  3438. function postRequest(msLink)
  3439. {
  3440. GM_xmlhttpRequest(
  3441. {
  3442. method: "GET",
  3443. url: msLink,
  3444. headers: {
  3445. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3446. 'Content-Type': 'application/x-www-form-urlencoded',
  3447. 'Referer': ""
  3448. },
  3449. onload: function (result)
  3450. {
  3451. var prZVal = result.responseText.match(/name="(\d+prZVal)" value="(\d+)">/);
  3452. var btn3Name = result.responseText.match(/src="images\/dwn-btn3\.gif" name="(.+?)"/);
  3453. if ((prZVal == null) || (btn3Name == null))
  3454. {
  3455. return;
  3456. }
  3457. GM_xmlhttpRequest(
  3458. {
  3459. method: "POST",
  3460. url: msLink,
  3461. headers: {
  3462. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3463. 'Content-Type': 'application/x-www-form-urlencoded',
  3464. 'Referer': ""
  3465. },
  3466. data: prZVal[1] + "=" + prZVal[2] + '&' + btn3Name[1] + '.x=1&' + btn3Name[1] + '.y=1',
  3467. onload: function (result)
  3468. {
  3469. var res = result.responseText;
  3470. if (res.match(/<div id="err">/))
  3471. {
  3472. DisplayTheCheckedLinks([msLink.match(/\.com(\/\d+)/)[1]], 'adead_link');
  3473. }
  3474. else
  3475. {
  3476. DisplayTheCheckedLinks([msLink.match(/\.com(\/\d+)/)[1]], 'alive_link');
  3477. }
  3478. }
  3479. });
  3480. }
  3481. });
  3482. }
  3483. }
  3484. function ncryptBulkCheck()
  3485. {
  3486. var arr = this.links[0].split("\r\n");
  3487. var i = arr.length;
  3488. while(i--)
  3489. {
  3490. postRequest(arr[i]);
  3491. }
  3492. function postRequest(ncryptLink)
  3493. {
  3494. GM_xmlhttpRequest(
  3495. {
  3496. method: "POST",
  3497. url: 'http://ncrypt.in/api_status.php',
  3498. headers: {
  3499. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3500. 'Content-Type': 'application/x-www-form-urlencoded',
  3501. 'Referer': ""
  3502. },
  3503. data: 'link=' + encodeURI(ncryptLink),
  3504. onload: function (result)
  3505. {
  3506. var foldStatus = result.responseText.match(/(?:offline|online);/);
  3507. switch(foldStatus + ""){
  3508. case "offline;": DisplayTheCheckedLinks([ncryptLink], 'adead_link'); break;
  3509. case "online;": DisplayTheCheckedLinks([ncryptLink], 'alive_link'); break;
  3510. default: DisplayTheCheckedLinks([ncryptLink], 'unava_link');
  3511. }
  3512. }
  3513. });
  3514. }
  3515. }
  3516. function hellshareBulkCheck()
  3517. {
  3518. var links = this.links;
  3519. GM_xmlhttpRequest(
  3520. {
  3521. method: "GET",
  3522. url: 'http://www.hellshare.com',
  3523. headers: {
  3524. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3525. 'Accept': 'text/xml',
  3526. 'Referer': ""
  3527. },
  3528. onload: function (result)
  3529. {
  3530. var domain = result.responseText.match(/param_rau = "www\.hellshare\.(\w+)"/)[1];
  3531.  
  3532. var loc = 'check=Zkontrolovat+dostupnost+soubor%C5%AF&links=';
  3533. if (domain == 'sk')
  3534. loc = 'check=Skontrolova%C5%A5&links=';
  3535. if (domain == 'com')
  3536. loc = 'check=Check+availability&links=';
  3537. if (domain == 'hu')
  3538. loc = 'check=Kontrol%C3%A1lj&links=';
  3539. if (domain == 'pl')
  3540. loc = 'check=Sprawd%C5%BC+dost%C4%99pno%C5%9B%C4%87+plik%C3%B3w&links=';
  3541.  
  3542. genBulkCheck.call({ links: links,
  3543. apiUrl: 'http://www.hellshare.' + domain + '/linkchecker?do=linkChecker-linkcheckerform-submit',
  3544. postData: loc,
  3545. resLinkRegex: /hellshare\.(?:cz|com|sk|hu|pl)\/(?:[\w-\.]+\/|)([\w-\.]+\/\d{5,})/,
  3546. 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,
  3547. resDeadRegex: /<span style="color:gray">.*?<\/span> - <strong>/g,
  3548. resUnavaRegex: null
  3549. });
  3550. }
  3551. });
  3552. }
  3553. /**
  3554. * Displays check result
  3555. * @param {Array} Array of links or link fragments.
  3556. * @param {String} Check result status -> ['alive_link'|'adead_link'|'unava_link']
  3557. */
  3558. function DisplayTheCheckedLinks(links, resultStatus)
  3559. {
  3560. //(a[href*=link_1], a[href*=link_2], ..., a[href*=link_n])
  3561. var $links = $('a[href*="' + links.join('"], a[href*="') + '"]');
  3562. if (Do_not_linkify_DL_links)
  3563. { //TODO into separate jQuery function
  3564. $links.replaceWith(function(){
  3565. return '<span href="' + this.href + '">' + $(this).text() + '</span>';
  3566. });
  3567. $links = $('span[href*="' + links.join('"], span[href*="') + '"]');
  3568. }
  3569. $links.removeClass().addClass(resultStatus);
  3570. $links.each(function() {
  3571. this.href = Ref_anonymize_service + $(this).attr("href");
  3572. });
  3573. switch(resultStatus)
  3574. {
  3575. case "alive_link": cLinksAlive += $links.length;
  3576. if (Display_tooltip_info) $links.mouseover(displayTooltipInfo);
  3577. break;
  3578. case "adead_link": cLinksDead += $links.length;
  3579. if (Display_tooltip_info) $links.mouseover(displayTooltipError);
  3580. break;
  3581. case "unava_link": cLinksUnava += $links.length; break;
  3582. default:
  3583. }
  3584. cLinksProcessed += $links.length;
  3585. }
  3586. }
  3587. // starts bulkchecking
  3588. //
  3589. // params
  3590. // filterId [string] restricts link detection with passed id attribute
  3591. function startBulkCheck(filterId)
  3592. {
  3593. var cHosts = bulkHosts.length;
  3594. if (cHosts == 0) //no filehostings selected
  3595. return;
  3596. // STEP 1 linkify the links
  3597. var linkifyRegex = '';
  3598. var hostIdx = cHosts;
  3599. while(hostIdx--)
  3600. {
  3601. linkifyRegex += bulkHosts[hostIdx].linkRegex + "|";
  3602. }
  3603. linkifyRegex = linkifyRegex.replace(/\|$/, '');
  3604. linkify(linkifyRegex);
  3605. //
  3606. //STEP 2 detect link objects
  3607. var xpathAll = '';
  3608. var hostIdx = cHosts;
  3609. while(hostIdx--)
  3610. {
  3611. xpathAll += bulkHosts[hostIdx].xpath + "|";
  3612. }
  3613. xpathAll = xpathAll.replace(/\]\|\/\/a\[/g, " or ");
  3614. xpathAll = xpathAll.replace(/\]\|/, ')]');
  3615. if (filterId != null) //insert id restriction in the xpath
  3616. {
  3617. xpathAll = xpathAll.replace(/\[/, "[@class='" + filterId + "' and (");
  3618. }
  3619. else
  3620. {
  3621. xpathAll = xpathAll.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  3622. }
  3623. var links = document.evaluate(xpathAll, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  3624. if (filterId == null)
  3625. {
  3626. cLinksTotal += links.snapshotLength;
  3627. }
  3628. //
  3629. //STEP 3 bind links with hostings
  3630. var linkIdx = links.snapshotLength;
  3631. var href = null;
  3632. if (linkIdx == 0) // no links found
  3633. return;
  3634. var name;
  3635. while (linkIdx--)
  3636. {
  3637. href = links.snapshotItem(linkIdx).href;
  3638. try // DO NOT REMOVE, filters crap that went through xpath detection
  3639. {
  3640. name = gimmeHostName(href);
  3641. if (href.match(bulkHostNames[name].linkRegexObject) != null)
  3642. bulkHostNames[name].links.push(href);
  3643. }
  3644. catch(e)
  3645. {
  3646.  
  3647. }
  3648. }
  3649. //
  3650. //STEP 4 process the links for each filehosting
  3651. var hostIdx = cHosts;
  3652. var host;
  3653. var m,n;
  3654. var arr;
  3655. while (hostIdx--)
  3656. {
  3657. host = bulkHosts[hostIdx];
  3658. arr = host.links;
  3659. if (arr.length == 0) //no links for this hosting, skip
  3660. {
  3661. continue;
  3662. }
  3663. //links match corrections
  3664. if (host.corrMatch != null)
  3665. {
  3666. var idx = arr.length;
  3667. while (idx--)
  3668. {
  3669. arr[idx] = arr[idx].match(host.corrMatch)[1];
  3670. }
  3671. }
  3672. //links replace corrections
  3673. if ((host.corrReplWhat != null) && (host.corrReplWith != null))
  3674. {
  3675. var idx = arr.length;
  3676. while (idx--)
  3677. {
  3678. arr[idx] = arr[idx].replace(host.corrReplWhat, host.corrReplWith);
  3679. }
  3680. }
  3681. m = arr.length;
  3682. n = host.blockSize;
  3683. if (m > n)
  3684. {
  3685. //insert block separators (RAND_STRING) into the array
  3686. for(var i = n; i < m; i += n + 1)
  3687. {
  3688. arr.splice(i, 0, RAND_STRING);
  3689. }
  3690. }
  3691.  
  3692. host.func.call({ links: arr.join(host.splitSeparator).split(RAND_STRING),
  3693. apiUrl: host.apiUrl,
  3694. postData: host.postData,
  3695. resLinkRegex: host.resLinkRegex,
  3696. resLiveRegex: host.resLiveRegex,
  3697. resDeadRegex: host.resDeadRegex,
  3698. resUnavaRegex: host.resUnavaRegex
  3699. });
  3700. //clean up
  3701. arr.length = 0;
  3702. }
  3703. //
  3704.  
  3705. function gimmeHostName(link)
  3706. {
  3707. return link.replace(/https?:\/\/.*?http(s)?:\/\//, "http$1://").match(/https?:\/\/(?:www\.|[\w\.])*?([\w-]+)\.(?:co\.uk|co\.nz|\w+)\//)[1];
  3708. }
  3709. }
  3710. function checkLinks(filterId)
  3711. {
  3712. startBulkCheck(filterId);
  3713. start(filterId);
  3714. }
  3715.  
  3716. /**
  3717. * Initialises progress box including event binding and CSS
  3718. */
  3719. function initProgressBox()
  3720. {
  3721. if ($("#warlc-progressbox").length > 0)
  3722. return;
  3723. //progressbox css change size and color of progress box
  3724. GM_addStyle("#warlc-progressbox {position:fixed; background:DimGray;" + Progress_box_background_color +
  3725. "; opacity:" + (Progress_box_opacity / 100) +
  3726. "; bottom:" + Progress_box_pos_bottom +
  3727. "px; right:" + Progress_box_pos_right +
  3728. "px; padding:5px; font-size:20px; font-weight:bold; cursor:default;}\
  3729. \
  3730. .warlc-progressbar {text-align:center; color: DimGray; height:2px; margin-bottom:2px;}\
  3731. \
  3732. .warlc-progressitem {}\
  3733. \
  3734. .alive {color:#00FF7F; " + Live_links_color +
  3735. "; background:transparent url(" + alive_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;} .dead {color:" + Dead_links_color +
  3736. "; background:transparent url(" + adead_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;} .unava {color: " + Temp_unavailable_links_color +
  3737. "; background:transparent url(" + unava_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;} .processing {color:Black; " + Container_links_color +
  3738. "; background:transparent url(" + processing_link_gif + ") no-repeat scroll 100% 50%;padding-right:15px;} .prem {color:" + Premium_links_color +
  3739. "; background:transparent url(" + prem_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;}"
  3740. );
  3741. //
  3742. $('body').append(' <div id="warlc-progressbox">\
  3743. <div class="warlc-progressbar"></div>\
  3744. <span class="warlc-progressitem alive"></span> - \
  3745. <span class="warlc-progressitem dead"></span> - \
  3746. <span class="warlc-progressitem unava"></span> - \
  3747. <span class="warlc-progressitem prem"></span> - \
  3748. <span class="warlc-progressitem processing"></span>\
  3749. </div>');
  3750. $('#warlc-progressbox').hide().click(function(){
  3751. clearInterval(intervalId);
  3752. $(this).hide();
  3753. return false;
  3754. });
  3755. $(".warlc-progressbar").progressbar({complete: function(){
  3756. $(this).fadeOut();
  3757. clearInterval(intervalId); //stop refreshing the stats
  3758. }
  3759. })
  3760. .one('progressbarchange', function(){$('#warlc-progressbox').show();});
  3761. }
  3762. /**
  3763. * Updates progress data in progress box
  3764. */
  3765. function updateProgress()
  3766. {
  3767. $("#warlc-progressbox").attr('aria-valuenow', Math.round(((100 / cLinksTotal) * cLinksProcessed)));
  3768. if (cLinksTotal) // some links were detected on page
  3769. {
  3770. var percProgress = Math.round(((100 / cLinksTotal) * cLinksProcessed));
  3771. var $progressItems = $('#warlc-progressbox > .warlc-progressitem');
  3772. $(".warlc-progressbar").progressbar('option', 'value', percProgress);
  3773. if ((cLinksTotal - cLinksProcessed) == 0)
  3774. {
  3775. $progressItems.first().text(cLinksAlive)
  3776. .next().text(cLinksDead)
  3777. .next().text(cLinksUnava)
  3778. .next().text(cLinksprem)
  3779. .next().remove();
  3780. $('#warlc-progressbox').html($('#warlc-progressbox').html().substr(0,$('#warlc-progressbox').html().lastIndexOf(">")+1));
  3781. $('#warlc-progressbox div:first-child').remove();
  3782. }
  3783. else
  3784. {
  3785. $progressItems.first().text(cLinksAlive)
  3786. .next().text(cLinksDead)
  3787. .next().text(cLinksUnava)
  3788. .next().text(cLinksprem)
  3789. .next().text(cLinksTotal - cLinksProcessed);
  3790. }
  3791. }
  3792. }
  3793.  
  3794. function check_all_links()
  3795. {
  3796. add_WARLC_style();
  3797.  
  3798. if (Show_progress_stats)
  3799. {
  3800. initProgressBox();
  3801. intervalId = setInterval(function(){updateProgress();}, Progress_box_refresh_rate);
  3802. }
  3803.  
  3804. startBulkCheck(null);
  3805. start(null);
  3806.  
  3807. if (!containers_processed)
  3808. {
  3809. processContainers();
  3810. }
  3811. }
  3812.  
  3813. //Copies all found dead links to clipboard - right now for Scriptish only
  3814. function copy_dead_to_clipboard()
  3815. {
  3816. initClipBoardTools();
  3817.  
  3818. var deadlinksxpath = "//.[@class='adead_link']";
  3819.  
  3820. var foundlinks = document.evaluate(deadlinksxpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  3821. var foundlinkstext = '';
  3822.  
  3823. var foundlinkIdx = foundlinks.snapshotLength;
  3824.  
  3825. while(foundlinkIdx--)
  3826. {
  3827. if (foundlinks.snapshotItem(foundlinkIdx).innerHTML != ' x')
  3828. foundlinkstext += foundlinks.snapshotItem(foundlinkIdx).innerHTML.replace(/\[\/hide:\w+\]/,"") + '\n';
  3829. }
  3830.  
  3831. unsafeWindow.copyToClipboard(foundlinkstext);
  3832. }
  3833.  
  3834. function toggle_autocheck()
  3835. {
  3836. var currentState = GM_getValue("Autocheck", false);
  3837. GM_setValue("Autocheck", !currentState);
  3838.  
  3839. if (currentState == true)
  3840. {
  3841. sendMessage('Autocheck disabled', 'red');
  3842. }
  3843. else
  3844. {
  3845. sendMessage('Autocheck enabled', 'SpringGreen');
  3846. }
  3847. }
  3848. function toggle_Enable_Anonymizer()
  3849. {
  3850. var currentState = GM_getValue("Enable_Anonymizer", false);
  3851. GM_setValue("Enable_Anonymizer", !currentState);
  3852.  
  3853. if (currentState == true)
  3854. {
  3855. GM_setValue("Ref_anonymize_service", "");
  3856. sendMessage('Anonymizer Disabled', 'red');
  3857. }
  3858. else
  3859. {
  3860. GM_setValue("Ref_anonymize_service", "http://hiderefer.com/?");
  3861. sendMessage('Anonymizer Enabled', 'SpringGreen');
  3862. }
  3863. }
  3864.  
  3865. function KeyDownHandler(event)
  3866. {
  3867. var kcode = (event.keyCode) ? event.keyCode : event.which;
  3868. if (event.ctrlKey && event.altKey)
  3869. {
  3870. switch(kcode)
  3871. {
  3872. case 65 : check_all_links(); break;
  3873. case 67 : configuration(); break;
  3874. case 68 : copy_dead_to_clipboard(); break;
  3875. case 87 : toggle_autocheck(); break;
  3876. case 90 : toggle_Enable_Anonymizer(); break;
  3877. }
  3878. }
  3879. }
  3880.  
  3881. //
  3882. //
  3883. // SCRIPT EXECUTION START POINT
  3884. //
  3885. //
  3886. // Safari specific GM_getResourceText override
  3887. if (navigator.userAgent.indexOf('Safari') != -1 && navigator.userAgent.indexOf('Chrome') == -1)
  3888. {
  3889. GM_getResourceText = function(res) {
  3890. var $cssText = GM_getValue("jquery_css", "");
  3891. if ($cssText == "")
  3892. {
  3893. GM_xmlhttpRequest(
  3894. {
  3895. method: 'GET',
  3896. url: 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css',
  3897. onload: function (result)
  3898. {
  3899. GM_setValue("jquery_css", result.responseText);
  3900. window.location.reload();
  3901. }
  3902. });
  3903. }
  3904. else
  3905. {
  3906. return $cssText;
  3907. }
  3908. }
  3909. }
  3910. var jQueryUICSS = GM_getResourceText("jQueryUICSS");
  3911. GM_addStyle(jQueryUICSS);
  3912. //init the stuff
  3913. setVariables();
  3914. initBulkCheck();
  3915. //init info boxes
  3916. messageBox.style.position = 'fixed';
  3917. messageBox.style.top = '20px';
  3918. messageBox.style.left = '10px';
  3919. messageBox.style.opacity = '0.85';
  3920. messageBox.style.background = 'DimGray';
  3921. messageBox.style.fontSize = '36px';
  3922. document.body.appendChild(messageBox);
  3923.  
  3924. //register GM menu commands & keyboard shortcut event handler
  3925. if (Keyboard_functions)
  3926. {
  3927. $(document).keydown(KeyDownHandler);
  3928. GM_registerMenuCommand("[W.A.R. Links Checker] Configuration (" + first_key_keycodename + "+" + second_key_keycodename + "+" + String.fromCharCode(CONFIGURATION_KEYCODE) + ")", configuration);
  3929. 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);
  3930. }
  3931. else
  3932. {
  3933. GM_registerMenuCommand("[W.A.R. Links Checker] Configuration", configuration);
  3934. GM_registerMenuCommand("[W.A.R. Links Checker] Check The Links In This Page", check_all_links);
  3935. }
  3936.  
  3937. //start linkchecking
  3938. if (Autocheck)
  3939. {
  3940. $(document).ready(check_all_links);
  3941. }
  3942.  
  3943. //
  3944. //
  3945. // SCRIPT EXECUTION END POINT
  3946. //
  3947. //
  3948.  
  3949. //shows configuration box
  3950. function configuration()
  3951. {
  3952.  
  3953. //prevent multiple creating of config window
  3954. if ($("#hideshow").length)
  3955. {
  3956. $("#hideshow").show();
  3957. return;
  3958. }
  3959.  
  3960. var configcss = '\
  3961. .popup_block .popup fieldset{\
  3962. padding: 1%;\
  3963. border-style: solid;\
  3964. border-width: 1px;\
  3965. border-color: gray;\
  3966. margin-bottom: 1px;\
  3967. }\
  3968. #h3hideshowtitle{\
  3969. font-size: 2em;\
  3970. }\
  3971. #h3hideshow{\
  3972. font-size: 1.5em;\
  3973. }\
  3974. #imghideshow {\
  3975. border: none;\
  3976. }\
  3977. #plusimage{\
  3978. display:inline;\
  3979. }\
  3980. #hideshow {\
  3981. position: fixed;\
  3982. width: 100%;\
  3983. height: 100%;\
  3984. top: 0;\
  3985. left: 0;\
  3986. font-size:12px;\
  3987. z-index:2147483645;\
  3988. text-align:left;\
  3989. }\
  3990. #fade {\
  3991. background: #000;\
  3992. position: fixed;\
  3993. width: 100%;\
  3994. height: 100%;\
  3995. opacity: .80;\
  3996. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";\
  3997. left: 0;\
  3998. z-index: 10;\
  3999. }\
  4000. .popup_block {\
  4001. font-family:verdana;\
  4002. color:black;\
  4003. background: #ddd;\
  4004. padding: 10px 20px;\
  4005. border: 2px solid DarkOrange;\
  4006. float: left;\
  4007. width: 700px;\
  4008. position: absolute;\
  4009. top: 7%;\
  4010. left: 50%;\
  4011. bottom: 7%;\
  4012. margin: 0 0 0 -350px;\
  4013. -moz-border-radius:10px;\
  4014. z-index: 100;\
  4015. \
  4016. }\
  4017. .popup_block .popup {\
  4018. float: left;\
  4019. width: 100%;\
  4020. background: #fff;\
  4021. margin: 10px 0;\
  4022. padding: 0px 0 0px;\
  4023. border-left: 1px solid #bbb;\
  4024. border-top: 1px solid #bbb;\
  4025. border-right: 1px solid #bbb;\
  4026. }\
  4027. #h3hideshow{\
  4028. margin: 1px 0 0px;\
  4029. padding: 1px 10px;\
  4030. border-bottom: 1px solid #bbb;\
  4031. font-size: 1.5em;\
  4032. font-weight: normal;\
  4033. cursor:pointer;\
  4034. background:#DDDDDD none repeat scroll 0 0;\
  4035. }\
  4036. #h3hideshow:hover{\
  4037. background:#C0BEBE none repeat scroll 0 0;\
  4038. }\
  4039. #h3hideshowtitle{\
  4040. margin: 2px 0 0px;\
  4041. padding: 7px 10px;\
  4042. border-bottom: 1px solid #bbb;\
  4043. font-size: 1.5em;\
  4044. font-weight: normal;\
  4045. }\
  4046. .popup_block .popup a {\
  4047. color:DarkSkyBlue;\
  4048. text-decoration:none;\
  4049. }\
  4050. .popup p {\
  4051. padding: 1px 10px;\
  4052. margin: 0px 0;\
  4053. -x-system-font:none;\
  4054. font-family:verdana,geneva,lucida,"lucida grande",arial,helvetica,sans-serif;\
  4055. font-size:10pt;\
  4056. font-size-adjust:none;\
  4057. font-stretch:normal;\
  4058. font-style:normal;\
  4059. font-variant:normal;\
  4060. font-weight:normal;\
  4061. line-height:normal;\
  4062. }\
  4063. #sites {\
  4064. padding: 1px 10px;\
  4065. margin: 0px 0;display:inline-block;width:16em;\
  4066. }\
  4067. #dev_ver {\
  4068. color: #00FF00;\
  4069. background: Black;\
  4070. text-align: right;\
  4071. }\
  4072. #sites_suspended {\
  4073. padding: 1px 10px;\
  4074. margin: 0px 0;display:inline-block;width:16em;\
  4075. text-decoration: line-through;\
  4076. }\
  4077. .popup img.cntrl {\
  4078. position: absolute;\
  4079. right: -15px;\
  4080. top: -15px;\
  4081. }\
  4082. #bulk {\
  4083. font-size:8pt;\
  4084. color:orange;\
  4085. padding: 1px 10px;\
  4086. margin: 0px 0;\
  4087. display:inline-block;\
  4088. width:100px;\
  4089. }\
  4090. #note {\
  4091. font-size:7pt;\
  4092. color:gray;\
  4093. padding: 1px 10px;\
  4094. margin: 0px 0;display:inline-block;\
  4095. min-width:100px;\
  4096. }\
  4097. #rednote {\
  4098. font-size:7pt;\
  4099. color:red;\
  4100. padding: 1px 10px;\
  4101. margin: 0px 0;display:inline-block;\
  4102. }\
  4103. #configinfo {\
  4104. font-size:8pt;\
  4105. color:gray;\
  4106. padding: 1px 10px;\
  4107. margin: 0px 0;display:inline-block;width:60em;\
  4108. }\
  4109. #refAnonymizer, #inputColorLive, #inputColorprem, #hostSearchBox2, #hostSearchBox, #inputColorDead, #inputColorTemp, #inputColorCont, #selectAllButton, #selectNoneButton, #invertButton, #selectAllButton2, #selectNoneButton2, #invertButton2 {\
  4110. color:black;\
  4111. border-style: solid;\
  4112. border-width: 1px;\
  4113. border-color: gray;\
  4114. }\
  4115. #h3hideshowcontent {\
  4116. min-height:220px;\
  4117. max-height:220px;\
  4118. overflow:auto;\
  4119. display: none;\
  4120. padding: 10px 10px;\
  4121. }\
  4122. #specinfo{\
  4123. font-size:14px;\
  4124. }\
  4125. .warlc-ui-tab {\
  4126. height:300px;\
  4127. overflow:auto;\
  4128. }\
  4129. #warlcsitelist2, #warlcsitelist1 {\
  4130. height:220px;\
  4131. border-top: 1px solid #ddd;\
  4132. padding-top: 5px;\
  4133. overflow:auto;\
  4134. }\
  4135. input:hover+label {\
  4136. background:#F1F77C;\
  4137. font-size:110%;\
  4138. }\
  4139. ';
  4140.  
  4141. GM_addStyle(configcss);
  4142.  
  4143. var customRulesRefHTML =
  4144. '\
  4145. <br>\
  4146. A custom rule consists of <b>commands</b>. A command must be on its own line and in this form:<br>\
  4147. <b>@keyword</b> <i>parameter</i>\
  4148. <br><br>\
  4149. 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. \
  4150. <br><br>\
  4151. 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.\
  4152. 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.\
  4153. 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.\
  4154. 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,\
  4155. but all commands until the next valid @customrule are ignored.<br><br>\
  4156. Available forms and types:\
  4157. <ul>\
  4158. <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.\
  4159. <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.\
  4160. <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.\
  4161. <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.\
  4162. </ul>\
  4163. Other available commands:<br>\
  4164. (Note: There can be more than 1 (up to 10) of these commands per rule. In that case, any of them will work.)\
  4165. <ul>\
  4166. <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.\
  4167. It can also specify multiple (up to 10) Top Level Domains (.com, .net etc.)<br>\
  4168. <ul>examples:<br>\
  4169. <li>good: <i>filehost.com/download/</i><br>\
  4170. <li>good: <i>download.filehost.net/?d=</i><br>\
  4171. <li>good: <i>filehost. com net co.uk /</i> - multiple TLDs (note the spaces before, between and after TLDs)<br>\
  4172. <li>ok: <i>filehost.com/</i> - works, but will also find links like filehost.com/login etc. Sometimes it\'s unavoidable though.<br>\
  4173. <li>bad: <i>d8523.filehost.com/</i> - d8523 probably is not constant<br>\
  4174. <li>bad: <i>filehost.com/3bfiq5d1</i> - 3bfiq5d1 probably is not constant<br>\
  4175. <li>bad: <i>filehost.com</i> - no slash<br>\
  4176. </ul>\
  4177. \
  4178. <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.\
  4179. 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 \
  4180. &lt;div&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;p&gt; even if there are new lines, tabulators etc.\
  4181. <li><b>@deadmatch</b> <i>pattern</i> - ignored for OBSOLETE, required for others. (For HEADERS some servers return 404 Error \
  4182. 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.)\
  4183. Two spaces again match any whitespace.\
  4184. <li><b>@unavamatch</b> <i>pattern</i> - optional, ignored for OBSOLETE and HEADERS. If found, the link is deemed temporarily unavailable.\
  4185. Two spaces again match any whitespace.\
  4186. <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. \
  4187. <li><b>@deadlink</b> <i>url</i> - optional. Example dead link.\
  4188. </ul>\
  4189. \
  4190. ';
  4191.  
  4192. //close image and css taken from = http://www.sohtanaka.com/web-design/examples/css-popup icon_close.png;
  4193. var configurationinnerHTML =
  4194. '<div id="fade"></div>\
  4195. <div class="popup_block">\
  4196. <div class="popup">\
  4197. <a href="#"><img id="imghideshow" title="Close" class="cntrl" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAfCAYAA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tT+FDsfO7ff2djyVfb5xlrNuxoygQLwbHgUAEjnwIi5dm3J4zsgTYNbqfHAC2H0m7ibf608V7B53urOYngWJ1/YoXS2+bMq9oUuiIbgSYvjQQ6P6b03hsv+trmm3I3GtNZQUUvT1wz6YsnQf0U8CTFHgrFZDw1Hnfl34da2vcFCFTAMqYaBr07nD40/IebZui1t9qqWgE3t6uOfCB3gF8FegrBB6x5qrri9688a+JYN6UK57eijDo2HI2+8/HB/8AVAHlQCfQCvz7chOIBTzS1FocNEx1VSNjHmFWS9jvC6mk11QWAbePhl4K/JWa1fbSypU2uSsI8ZgnEyG2wE9igb/Fa7f9MHGTQuANdbcGLzyFV2smiukr7Siw4WqGvZhlqznxhX7cTzmXayA234c33lqFcjneIqZfxX1TJr+t4dWtcUGXgusNgaPLwvQpgJjHcK8EPOAM6J7+vblEfK0fZ9RoqwAnpTnznsN/2jOkuvOUNvmpXmMTrrQuoJWGj36bAugAMhSo2cnsgUil2fb5LRHi1/jRGlJHc5zenaV7p0PyRB7XkR7vfa4IlZtT69fbVKywyafh8HODHN+WfhH4FnD2alN1B7AdOAcMeT29HfiZJ5oZ3sHrgAeBvcCANzBsHu7Ohe2/AwDnNnxcIIMIUgAAAABJRU5ErkJggg=="></img>&nbsp;W.A.R. Links Checker Customized Premium Link version Configuration</div>\
  4199. <div id="warlc-conf-tabs">\
  4200. <ul>\
  4201. <li><a href="#tabs-1">Filehostings</a></li>\
  4202. <li><a href="#tabs-2">Containers</a></li>\
  4203. <li><a href="#tabs-5">Custom rules</a></li>\
  4204. <li><a href="#tabs-3">Settings</a></li>\
  4205. <li><a href="#tabs-4">About</a></li>\
  4206. </ul>\
  4207. <div id="tabs-1" class="warlc-ui-tab">\
  4208. <div class="warlc-ui-buttonset">\
  4209. <input type="button" class="warlc-ui-select-all" value="Select All">\
  4210. <input type="button" class="warlc-ui-select-none" value="Select None">\
  4211. <input type="button" class="warlc-ui-select-invert" value="Invert">\
  4212. </div><br>\
  4213. <div>Search: <input type="textbox" id="hostSearchBox" value=""></div><br>\
  4214. <div id="warlcsitelist1"><span>Empty</span></div>\
  4215. </div>\
  4216. <div id="tabs-2" class="warlc-ui-tab">\
  4217. <div class="warlc-ui-buttonset">\
  4218. <input type="button" class="warlc-ui-select-all" value="Select All">\
  4219. <input type="button" class="warlc-ui-select-none" value="Select None">\
  4220. <input type="button" class="warlc-ui-select-invert" value="Invert">\
  4221. </div><br>\
  4222. <div>Search: <input type="textbox" id="hostSearchBox2" value=""></div><br>\
  4223. <div id="warlcsitelist2"><span>Empty</span></div>\
  4224. </div>\
  4225. <div id="tabs-5" class="warlc-ui-tab">\
  4226. <div class="warlcsettings">\
  4227. <fieldset><input type="checkbox" id="Custom_rules"> Enable custom rules <div id="bulk">EXPERIMENTAL</div></fieldset>\
  4228. <br>\
  4229. <div>Edit custom rules: \
  4230. <a href="#" id="showCustomRulesReference">(<b>Click here to show/hide the reference</b>)</a>\
  4231. <div id="customRulesReference" style="display:none;">'
  4232. + customRulesRefHTML + '\
  4233. </div>\
  4234. <textarea style="width:100%;height:200px;" id="Custom_rules_text"></textarea>\
  4235. </div>\
  4236. </div>\
  4237. </div>\
  4238. <div id="tabs-3" class="warlc-ui-tab">\
  4239. <div class="warlcsettings">\
  4240. <fieldset>\
  4241. <p><input type="checkbox" id="Keyboard_functions"> Enable keyboard shortcuts</p>\
  4242. <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>\
  4243. </fieldset>\
  4244. <fieldset>\
  4245. <p><input type="checkbox" id="Color_DL_links"> Color DL links</p>\
  4246. <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>\
  4247. <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>\
  4248. <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>\
  4249. <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>\
  4250. <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>\
  4251. <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>\
  4252. <p><input type="checkbox" id="Show_line_through_in_dead_links"> Show line through in dead links</p>\
  4253. <p><input type="checkbox" id="Show_black_background_in_DL_links"> Show black background in DL links</p>\
  4254. <p><input type="checkbox" id="Do_not_linkify_DL_links"> Do NOT linkify DL links</p>\
  4255. <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>\
  4256. <p><input type="checkbox" id="Display_full_links_in_link_containers"> Display full links in link containers</p><br>\
  4257. <fieldset>\
  4258. <p><input type="radio" name="warlciconset" value="0"> No icons</p>\
  4259. <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>\
  4260. <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>\
  4261. <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>\
  4262. </fieldset>\
  4263. </fieldset>\
  4264. <fieldset>\
  4265. <div id="sites"><input type="checkbox" id="Autocheck"> Autocheck</div><br><div id="configinfo">Script starts check automatically.</div><br>\
  4266. </fieldset>\
  4267. <fieldset>\
  4268. <div id="sites"><input type="checkbox" id="Show_progress_stats"> Show progress stats</div><br>\
  4269. </fieldset>\
  4270. <fieldset>\
  4271. <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>\
  4272. </fieldset>\
  4273. <fieldset>\
  4274. <p><input type="checkbox" id="Enable_Anonymizer"> Enable Anonymizer</div><div id="bulk">EXPERIMENTAL Note: Checkbox does not work use CTRL+ALT+Z.</p>\
  4275. <div id="sites"><label for="refAnonymizer">Refererer anonymizing service</label><input type="text" id="refAnonymizer" value="' + Ref_anonymize_service + '"></div>\
  4276. </fieldset>\
  4277. </div>\
  4278. </div>\
  4279. <div id="tabs-4" class="warlc-ui-tab">\
  4280. <p><b>Author:</b> <a href="http://www.warlc.5gbfree.com/viewtopic.php?f=12&t=12">mental</a></p>\
  4281. <br />\
  4282. <p><b>Currently supported:</b><br>\
  4283. Filehostings: ' + allHostNames.length + '<br />\
  4284. Containers: ' + allContainerNames.length + '<br />\
  4285. Obsolete sites: ' + allObsoleteNames.length + '<br /></p>\
  4286. <br />\
  4287. <p><b>Based on:</b><br>\
  4288. <a href="http://userscripts-mirror.org/scripts/show/125631.html">W.A.R. Links Checker - Dev</a></p>\
  4289. <br />\
  4290. <p><b>Uses:</b></p>\
  4291. <p>adam_3\'s <a href="http://userscripts-mirror.org/scripts/show/2254">Linkify ting</a> (modified)</p>\
  4292. <p><a href="http://jquery.com/">jQuery</a> JavaScript Library</p>\
  4293. <br />\
  4294. <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>\
  4295. </div>\
  4296. </div>\
  4297. </div>\
  4298. </div>';
  4299. $('body').append('<div id="hideshow">' + configurationinnerHTML + '</div>');
  4300. $("#warlc-conf-tabs").tabs({ fx: { opacity: 'toggle', duration: 'fast' } });
  4301. $("#imghideshow").click(function(event){$("#hideshow").hide(); event.preventDefault();});
  4302. var elmHostList = document.getElementById("warlcsitelist1");
  4303. var elmContainerList = document.getElementById("warlcsitelist2");
  4304. buildSettings();
  4305. buildSitelist("", allHostNames, elmHostList);
  4306. buildSitelist("", allContainerNames, elmContainerList);
  4307. if (DEBUG_MODE)
  4308. {
  4309. //log all sites availability status
  4310. diagSites();
  4311. }
  4312. //handler for checkbox state change
  4313. function changeConfiguration(e)
  4314. {
  4315. var element = e.target;
  4316.  
  4317. if (element.type == 'checkbox')
  4318. {
  4319. if (element.checked == 1)
  4320. {
  4321. GM_setValue(element.id, true);
  4322. }
  4323. else
  4324. {
  4325. GM_setValue(element.id, false);
  4326. }
  4327.  
  4328. }
  4329. setVariables();
  4330. }
  4331.  
  4332. //Selects all filehosting checkboxes
  4333. function selectAll()
  4334. {
  4335. $(":checkbox:visible:not(:checked)").prop("checked",true)
  4336. .each(function(index, element){GM_setValue(this.id, true)});
  4337. }
  4338.  
  4339. //Deselects all filehosting checkboxes
  4340. function selectNone()
  4341. {
  4342. $(":checkbox:visible:checked").prop("checked",false)
  4343. .each(function(index, element){GM_setValue(this.id, false)});
  4344. }
  4345.  
  4346. //Inverts filehosting checkboxes selection
  4347. function selectInvert()
  4348. {
  4349. var $checked = $(":checkbox:visible:checked");
  4350. var $unchecked = $(":checkbox:visible:not(:checked)");
  4351. $unchecked.prop("checked",true)
  4352. .each(function(index, element){GM_setValue(this.id, true)});
  4353. $checked.prop("checked",false)
  4354. .each(function(index, element){GM_setValue(this.id, false)});
  4355. }
  4356. //toggles anonymizer on off
  4357. function Enable_Anonymizer()
  4358. {
  4359. var $checked = $(":checkbox:visible:checked");
  4360. var $unchecked = $(":checkbox:visible:not(:checked)");
  4361. $unchecked.prop("checked",true)
  4362. .each(function(index, element){GM_setValue(this.id, true)});
  4363. $checked.prop("checked",false)
  4364. .each(function(index, element){GM_setValue(this.id, false)});
  4365. }
  4366.  
  4367. function changeRefAnonymizer(){
  4368. GM_setValue("Ref_anonymize_service", $("#refAnonymizer").attr("value"));
  4369. }
  4370.  
  4371. //Sets live links color
  4372. function changeColorLive()
  4373. {
  4374. var inColorLive = document.getElementById("inputColorLive");
  4375. inColorLive.style.background = inColorLive.value;
  4376. GM_setValue("Live_links_color", inColorLive.value);
  4377. }
  4378.  
  4379. //Sets dead links color
  4380. function changeColorDead()
  4381. {
  4382. var inColorDead = document.getElementById("inputColorDead");
  4383. inColorDead.style.background = inColorDead.value;
  4384. GM_setValue("Dead_links_color", inColorDead.value);
  4385. }
  4386.  
  4387. //Sets temp. unavailable links color
  4388. function changeColorTemp()
  4389. {
  4390. var inColorTemp = document.getElementById("inputColorTemp");
  4391. inColorTemp.style.background = inColorTemp.value;
  4392. GM_setValue("Temp_unavailable_links_color", inColorTemp.value);
  4393. }
  4394.  
  4395. //Sets temp. unavailable links color
  4396. function changeColorCont()
  4397. {
  4398. var inColorCont = document.getElementById("inputColorCont");
  4399. inColorCont.style.background = inColorCont.value;
  4400. GM_setValue("Container_links_color", inColorCont.value);
  4401. }
  4402. //Sets premium. links color
  4403. function changeColorprem()
  4404. {
  4405. var inColorprem = document.getElementById("inputColorprem");
  4406. inColorprem.style.background = inColorprem.value;
  4407. GM_setValue("Premium_links_color", inColorprem.value);
  4408. }
  4409.  
  4410. //Diagnose sites for availability
  4411. function diagSites()
  4412. {
  4413. var boxes = document.getElementById("warlcsitelist1").getElementsByTagName("input");
  4414.  
  4415. for (var i = 0, n = boxes.length - 1; i < n; i++)
  4416. {
  4417. if (boxes[i].type == "checkbox")
  4418. {
  4419. checkAvailability(boxes[i]);
  4420. }
  4421. }
  4422.  
  4423. boxes = document.getElementById("warlcsitelist2").getElementsByTagName("input");
  4424.  
  4425. for (var i = 0, n = boxes.length - 1; i < n; i++)
  4426. {
  4427. if (boxes[i].type == "checkbox")
  4428. {
  4429. checkAvailability(boxes[i]);
  4430. }
  4431. }
  4432.  
  4433. function checkAvailability(cbElm)
  4434. {
  4435. var cb = cbElm;
  4436. GM_xmlhttpRequest(
  4437. {
  4438. method: 'HEAD',
  4439. url: 'http://' + cb.nextSibling.textContent.replace(' ', ''),
  4440. headers: {
  4441. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  4442. 'Accept': 'text/xml',
  4443. 'Referer': ""
  4444. },
  4445. onload: function (result)
  4446. {
  4447. if (result.status != 200)
  4448. {
  4449. GM_log(cb.nextSibling.textContent + ' --- status: [' + result.status + '] ' + result.statusText + ', final url: ' + result.finalUrl);
  4450. }
  4451. },
  4452. onerror: function (result)
  4453. {
  4454. if (result.status != 200)
  4455. {
  4456. GM_log(cb.nextSibling.textContent + ' --- status: [' + result.status + '] ' + result.statusText + ', final url: ' + result.finalUrl);
  4457. }
  4458. }
  4459. });
  4460. }
  4461. }
  4462. function buildSettings()
  4463. {
  4464. $(".warlcsettings :checkbox").each(function(){
  4465. $(this).prop("checked", GM_getValue($(this).attr("id")))
  4466. .click(function(e){
  4467. GM_setValue($(this).attr("id"), $(this).prop("checked"));
  4468. setVariables();
  4469. });
  4470. })
  4471. }
  4472. //Dynamic build of host list
  4473. //param search [string] searches for hostnames matching search substring
  4474. //param siteNames [array] array of site names
  4475. //param targetNode [DOM Node] where the list should be built
  4476. // first child node is replaced
  4477. function buildSitelist(search, siteNames, targetNode)
  4478. {
  4479. var searchRegex = new RegExp("\\|?([\\w\\.-]*" + search.replace(/\./g,"\\.").replace(/-/g, "\\-") + "[\\w\\.-]*)\\|?", "i");
  4480. var $targetNode = $(targetNode).empty();
  4481. var searchedSite = "";
  4482. $.each(siteNames, function(i, site){
  4483. if (searchedSite = site.match(searchRegex))
  4484. {
  4485. var baseSite = site.replace(/\|.+/, ""); //filehosting main domain
  4486. //ensuring backward compatibility with the rest of code, to be refactored later
  4487. var oldRSLCvalue = "Check_" + baseSite.replace(/\|.+/, "").replace(/\./g,"_dot_").replace(/-/g, "_dash_") + "_links";
  4488. //
  4489. $targetNode.append('<input type="checkbox" id="' + oldRSLCvalue +'" />\
  4490. <label for="' + oldRSLCvalue + '">' + searchedSite[1] + '</label>' +
  4491. ((searchedSite[1] != baseSite) ? ('<div id="note"> ( ~ ' + baseSite + ' )</div>') : (""))
  4492. );
  4493. $("#" + oldRSLCvalue).prop("checked", GM_getValue(oldRSLCvalue, false))
  4494. .change(changeConfiguration);
  4495. $targetNode.append('<br />');
  4496. }
  4497. });
  4498. $targetNode.append("<hr>");
  4499. //obsolete hosts checkbox
  4500. $targetNode.append('<input type="checkbox" id="Obsolete_file_hosts" /><label for="Obsolete_file_hosts">Obsolete file hosts</label>');
  4501. $("#Obsolete_file_hosts").prop("checked", GM_getValue("Obsolete_file_hosts", false))
  4502. .change(changeConfiguration);
  4503. $targetNode.append('<br />');
  4504. var foundName = "";
  4505. $.each(allObsoleteNames, function(i, site){
  4506. if (foundName = allObsoleteNames[i].match(searchRegex))
  4507. {
  4508. $targetNode.append('<div id="note">' + foundName[1] + '</div>');
  4509. }
  4510. })
  4511. }
  4512. var hostSearchBox = document.getElementById("hostSearchBox");
  4513. hostSearchBox.addEventListener('keyup', function(){buildSitelist(hostSearchBox.value, allHostNames, elmHostList);}, false);
  4514. var hostSearchBox2 = document.getElementById("hostSearchBox2");
  4515. hostSearchBox2.addEventListener('keyup', function(){buildSitelist(hostSearchBox2.value, allContainerNames, elmContainerList);}, false);
  4516. $(".warlc-ui-select-all").click(selectAll).button();
  4517. $(".warlc-ui-select-none").click(selectNone).button();
  4518. $(".warlc-ui-select-invert").click(selectInvert).button();
  4519. $(".warlc-ui-buttonset").buttonset();
  4520. var inColorLive = document.getElementById("inputColorLive");
  4521. inColorLive.addEventListener('keyup', changeColorLive, false);
  4522.  
  4523. var inColorDead = document.getElementById("inputColorDead");
  4524. inColorDead.addEventListener('keyup', changeColorDead, false);
  4525.  
  4526. var inColorTemp = document.getElementById("inputColorTemp");
  4527. inColorTemp.addEventListener('keyup', changeColorTemp, false);
  4528.  
  4529. var inColorCont = document.getElementById("inputColorCont");
  4530. inColorCont.addEventListener('keyup', changeColorCont, false);
  4531. var inColorprem = document.getElementById("inputColorprem");
  4532. inColorprem.addEventListener('keyup', changeColorprem, false);
  4533. $("#refAnonymizer").change(changeRefAnonymizer);
  4534. //buttons and edit boxes init end
  4535.  
  4536. //icon sets radio buttons
  4537. var radioButtons = document.getElementsByName("warlciconset");
  4538. radioButtons[Icon_set].checked = "checked";
  4539.  
  4540. radioButtons[0].addEventListener("change", updateIconSet);
  4541. radioButtons[1].addEventListener("change", updateIconSet);
  4542. radioButtons[2].addEventListener("change", updateIconSet);
  4543. radioButtons[3].addEventListener("change", updateIconSet);
  4544. function updateIconSet()
  4545. {
  4546. GM_setValue("Icon_set", this.value * 1);
  4547. }
  4548. //
  4549. $('#showCustomRulesReference').click(function(e){
  4550. e.preventDefault();
  4551. $('#customRulesReference').toggle();
  4552. });
  4553. $('#Custom_rules_text')
  4554. .val(Custom_rules_text)
  4555. .change(saveCustomRules);
  4556. function saveCustomRules(e)
  4557. {
  4558. var cr = parseCustomRules(this.value);
  4559. if (cr.info.length)
  4560. 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, ' '));
  4561. GM_setValue('Custom_rules_text', this.value);
  4562. GM_setValue('last_custom_rules_nag', ''+new Date().getTime()); //reset nag
  4563. }
  4564. }
  4565.  
  4566. //begin standard link checking algorithm
  4567. function start(filterId)
  4568. {
  4569. var doNotLinkify = Do_not_linkify_DL_links;
  4570.  
  4571. // USER SELECTED FILE HOSTS INITIALIZATION START
  4572. var http_file_hosts = new Array(); //standard hostings
  4573. var http_file_hosts_coded = new Array(); //hostings which has to be decoded to obtain real checkable link
  4574. var http_file_hosts_obsolete = new Array(); //dead hostings
  4575. var http_file_hosts_headers_only = new Array(); //hostings with direct download, must be handled via headers only
  4576.  
  4577. initFileHosts();
  4578. initFileHostsHeadersOnly();
  4579. initFileHostsCustom(); //CustomRules
  4580. // USER SELECTED FILE HOSTS INITIALIZATION END
  4581.  
  4582. // LINKIFICATION START
  4583. var totalxpath = '';
  4584. var totalxpathcoded = '';
  4585. var totalxpathobsolete = '';
  4586. var totalxpathheadersonly = '';
  4587. var totalourls = '';
  4588.  
  4589. var filehostLen = http_file_hosts.length;
  4590. var filehostCodedLen = http_file_hosts_coded.length;
  4591. var filehostObsoleteLen = http_file_hosts_obsolete.length;
  4592. var filehostHeadersOnlyLen = http_file_hosts_headers_only.length;
  4593.  
  4594. var filehostIdx = filehostLen;
  4595. var filehostCodedIdx = filehostCodedLen;
  4596. var filehostObsoleteIdx = filehostObsoleteLen;
  4597. var filehostHeadersOnlyIdx = filehostHeadersOnlyLen;
  4598.  
  4599. if ((filehostIdx == 0) && (filehostCodedIdx == 0) && (filehostHeadersOnlyIdx == 0) && (filehostObsoleteIdx == 0))
  4600. return;
  4601.  
  4602. while (filehostIdx--)
  4603. {
  4604. totalourls += http_file_hosts[filehostIdx][0] + '|';
  4605. totalxpath += http_file_hosts[filehostIdx][4] + '|';
  4606. }
  4607.  
  4608. while (filehostCodedIdx--)
  4609. {
  4610. totalourls += http_file_hosts_coded[filehostCodedIdx][0] + '|';
  4611. totalxpathcoded += http_file_hosts_coded[filehostCodedIdx][3] + '|';
  4612. }
  4613.  
  4614. while (filehostObsoleteIdx--)
  4615. {
  4616. totalourls += http_file_hosts_obsolete[filehostObsoleteIdx][0] + '|';
  4617. totalxpathobsolete += http_file_hosts_obsolete[filehostObsoleteIdx][1] + '|';
  4618. }
  4619.  
  4620. while (filehostHeadersOnlyIdx--)
  4621. {
  4622. totalourls += http_file_hosts_headers_only[filehostHeadersOnlyIdx][0] + '|';
  4623. totalxpathheadersonly += http_file_hosts_headers_only[filehostHeadersOnlyIdx][3] + '|';
  4624. }
  4625.  
  4626. totalourls = totalourls.replace(/\|$/g, "");
  4627. //TODO: further refactoring needed
  4628. totalxpath = totalxpath.replace(/\]\|\/\/a\[/g, " or ");
  4629. totalxpath = totalxpath.replace(/\]\|/, ')]');
  4630. totalxpathcoded = totalxpathcoded.replace(/\]\|\/\/a\[/g, " or ");
  4631. totalxpathcoded = totalxpathcoded.replace(/\]\|/, ')]');
  4632. totalxpathobsolete = totalxpathobsolete.replace(/\]\|\/\/a\[/g, " or ");
  4633. totalxpathobsolete = totalxpathobsolete.replace(/\]\|/, ')]');
  4634. totalxpathheadersonly = totalxpathheadersonly.replace(/\]\|\/\/a\[/g, " or ");
  4635. totalxpathheadersonly = totalxpathheadersonly.replace(/\]\|/, ')]');
  4636. if (filterId != null) //insert id restriction in the xpath
  4637. {
  4638. totalxpath = totalxpath.replace(/\[/g, "[@class='" + filterId + "' and (");
  4639. totalxpathcoded = totalxpathcoded.replace(/\[/g, "[@class='" + filterId + "' and (");
  4640. totalxpathobsolete = totalxpathobsolete.replace(/\[/g, "[@class='" + filterId + "' and (");
  4641. totalxpathheadersonly = totalxpathheadersonly.replace(/\[/g, "[@class='" + filterId + "' and (");
  4642. }
  4643. else
  4644. {
  4645. totalxpath = totalxpath.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4646. totalxpathcoded = totalxpathcoded.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4647. totalxpathobsolete = totalxpathobsolete.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4648. totalxpathheadersonly = totalxpathheadersonly.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4649. }
  4650. linkify(totalourls);
  4651. //LINKIFICATION END
  4652. //ENCRYPTED LINKS PROCESSING START
  4653. if (http_file_hosts_coded.length > 0)
  4654. {
  4655. var linksCoded = document.evaluate(totalxpathcoded, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4656.  
  4657. // decrypt coded links (redirects, link protectors etc.)
  4658. if (linksCoded.snapshotLength > 0)
  4659. {
  4660. var link;
  4661. var reallinkreg;
  4662. var reallinkcorrection;
  4663.  
  4664. if (filterId == null)
  4665. {
  4666. cLinksTotal += linksCoded.snapshotLength;
  4667. }
  4668.  
  4669. var y = linksCoded.snapshotLength - 1;
  4670. do
  4671. {
  4672. // linksCoded.snapshotItem(y).id = 'processing_link';
  4673. link = linksCoded.snapshotItem(y);
  4674. filehostIdx = filehostCodedLen;
  4675. while (filehostIdx--)
  4676. {
  4677. if (link.href.match(http_file_hosts_coded[filehostIdx][0]))
  4678. {
  4679. link.href = link.href.replace(/http:\/\/.*?(?:\?|=)http:\/\//, 'http://');
  4680. reallinkreg = http_file_hosts_coded[filehostIdx][1];
  4681. reallinkcorrection = http_file_hosts_coded[filehostIdx][2];
  4682.  
  4683. decurl(link, reallinkreg, reallinkcorrection);
  4684. break;
  4685. }
  4686. }
  4687. }
  4688. while (y--);
  4689. }
  4690. }
  4691. //ENCRYPTED LINKS PROCESSING END
  4692.  
  4693. //STANDARD LINKCHECKING START
  4694. if (http_file_hosts.length > 0)
  4695. {
  4696. var lianks = document.evaluate(totalxpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4697.  
  4698. if (filterId == null)
  4699. {
  4700. cLinksTotal += lianks.snapshotLength;
  4701. }
  4702.  
  4703. if (lianks.snapshotLength > 0)
  4704. {
  4705. var link;
  4706.  
  4707. var URL = "";
  4708. var name = "";
  4709. var isAliveRegex = "";
  4710. var isDeadRegex = "";
  4711. var isUnavaRegex = "";
  4712. var ispremRegex = "";
  4713. var tryLoop = false;
  4714.  
  4715. var y = lianks.snapshotLength;
  4716.  
  4717. while (y--)
  4718. {
  4719. link = lianks.snapshotItem(y);
  4720.  
  4721. filehostIdx = filehostLen;
  4722. while (filehostIdx--)
  4723. {
  4724. if (link.href.match(http_file_hosts[filehostIdx][0]))
  4725. {
  4726. link.href = link.href.replace(/http:\/\/.*?http:\/\//, 'http://'); //anonymizers
  4727. isAliveRegex = http_file_hosts[filehostIdx][1];
  4728. isDeadRegex = http_file_hosts[filehostIdx][2];
  4729. isUnavaRegex = http_file_hosts[filehostIdx][3];
  4730. ispremRegex = http_file_hosts[filehostIdx][6];
  4731. tryLoop = http_file_hosts[filehostIdx][5];
  4732.  
  4733. geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, tryLoop);
  4734.  
  4735. break;
  4736. }
  4737. }
  4738. }
  4739. }
  4740. }
  4741. //STANDARD LINKCHECKING END
  4742. //OBSOLETE FILE HOSTS PROCESSING START
  4743. if (filehostObsoleteLen > 0)
  4744. {
  4745. var obsoletelinks = document.evaluate(totalxpathobsolete, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4746.  
  4747. var obsoleteLink;
  4748.  
  4749. //check links
  4750. if (obsoletelinks.snapshotLength > 0)
  4751. {
  4752. var y = obsoletelinks.snapshotLength;
  4753.  
  4754. if (filterId == null)
  4755. {
  4756. cLinksTotal += y;
  4757. }
  4758.  
  4759. while (y--)
  4760. {
  4761. obsoleteLink = obsoletelinks.snapshotItem(y);
  4762.  
  4763. if (Display_tooltip_info)
  4764. {
  4765. obsoleteLink.warlc_error = 'Cause of error: <b>Obsolete filehosting.</b>';
  4766. }
  4767. displayTheCheckedLink(obsoleteLink, 'adead_link');
  4768. }
  4769. }
  4770. }
  4771. //OBSOLETE FILE HOSTS PROCESSING END
  4772.  
  4773. //DIRECT LINKCHECKING START
  4774. if (http_file_hosts_headers_only.length > 0)
  4775. {
  4776. var links = document.evaluate(totalxpathheadersonly, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4777.  
  4778. //check links
  4779. if (links.snapshotLength > 0)
  4780. {
  4781. var link;
  4782. var isAliveRegex;
  4783. var isDeadRegex;
  4784. var ispremRegex;
  4785.  
  4786. var y = links.snapshotLength;
  4787.  
  4788.  
  4789. if (filterId == null)
  4790. {
  4791. cLinksTotal += y;
  4792. }
  4793.  
  4794. while (y--)
  4795. {
  4796. // links.snapshotItem(y).id = 'processing_link';
  4797. link = links.snapshotItem(y);
  4798. filehostIdx = filehostHeadersOnlyLen;
  4799. while (filehostIdx--)
  4800. {
  4801. if (link.href.match(http_file_hosts_headers_only[filehostIdx][0]))
  4802. {
  4803. link.href = link.href.replace(/http:\/\/.*?(?:\?|=)http:\/\//, 'http://');
  4804. isAliveRegex = http_file_hosts_headers_only[filehostIdx][1];
  4805. isDeadRegex = http_file_hosts_headers_only[filehostIdx][2];
  4806. ispremRegex = http_file_hosts_headers_only[filehostIdx][3];
  4807.  
  4808. geturlHeader(link, isAliveRegex, isDeadRegex, ispremRegex);
  4809.  
  4810. break;
  4811. }
  4812. }
  4813. }
  4814.  
  4815. }
  4816. }
  4817. //DIRECT LINKCHECKING END
  4818.  
  4819.  
  4820. //finds the real url on the page, replaces link.href with it and calls geturl
  4821. function decurl(link, reallinkreg, reallinkcorrection)
  4822. {
  4823.  
  4824. GM_xmlhttpRequest(
  4825. {
  4826. method: 'GET',
  4827. url: link.href,
  4828. headers: {
  4829. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  4830. 'Accept': 'text/xml',
  4831. 'Referer': ""
  4832. },
  4833. onload: function (result)
  4834. {
  4835. // cLinksProcessed++;
  4836.  
  4837. var reallink = result.responseText.match(reallinkreg)[0];
  4838. reallink = reallink.replace(new RegExp(reallinkcorrection, "g"), "");
  4839.  
  4840. link.href = reallink;
  4841.  
  4842. var i = http_file_hosts.length - 1;
  4843. do
  4844. {
  4845. if ((reallink.match(http_file_hosts[i][0])))
  4846. {
  4847. link.href = link.href.replace(/http:\/\/.*?\?http:\/\//, 'http://');
  4848. var isAliveRegex = http_file_hosts[i][1];
  4849. var isDeadRegex = http_file_hosts[i][2];
  4850. var isUnavaRegex = http_file_hosts[i][3];
  4851. var ispremRegex = http_file_hosts[i][4];
  4852.  
  4853. geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, 50);
  4854.  
  4855. break;
  4856. }
  4857. }
  4858. while (i--);
  4859. }
  4860. });
  4861. }
  4862.  
  4863. function randUA()
  4864. {
  4865. //TODO
  4866. }
  4867. //Processes link
  4868. //
  4869. // [string] link link URL
  4870. // [string] isAliveRegex alive link regex
  4871. // [string] isDeadRegex dead link regex
  4872. // [string] isUnavaRegex unavailable link regex
  4873. // [string] ispremRegex premium link regex
  4874. // [boolean] tryLoop repeats request until succeeded
  4875. function geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, tryLoop)
  4876. {
  4877. GM_xmlhttpRequest(
  4878. {
  4879. method: 'GET',
  4880. url: link.href,
  4881. headers: {
  4882. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  4883. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  4884. 'Referer': ""
  4885. },
  4886. onload: function (result)
  4887. {
  4888. var res = result.responseText;
  4889. if (result.responseHeaders.match(/Content-Disposition: attachment; filename=/))//direct download, simple version
  4890. {
  4891. displayTheCheckedLink(link, 'alive_link');
  4892. return;
  4893. }
  4894.  
  4895. if (res.match(isAliveRegex))
  4896. {
  4897. displayTheCheckedLink(link, 'alive_link');
  4898. return;
  4899. }
  4900.  
  4901. if (res.match(isDeadRegex))
  4902. {
  4903. displayTheCheckedLink(link, 'adead_link');
  4904. return;
  4905. }
  4906.  
  4907. if (isUnavaRegex && res.match(isUnavaRegex))
  4908. {
  4909. displayTheCheckedLink(link, 'unava_link');
  4910. return;
  4911. }
  4912. if (res.match(ispremRegex))
  4913. {
  4914. displayTheCheckedLink(link, 'prem_link');
  4915. return;
  4916. }
  4917.  
  4918. var resStatus = result.status;
  4919.  
  4920. if (resStatus == 404)
  4921. {
  4922. displayTheCheckedLink(link, 'adead_link');
  4923. }
  4924. if (resStatus == 500 || resStatus == 503 || resStatus == 403) //not found/available/temp. unava
  4925. {
  4926. if (tryLoop)
  4927. {
  4928. //wait 1-5 seconds and repeat the request
  4929. setTimeout(function(){geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, tryLoop)}, 1000 + (Math.random() * 4000));
  4930. }
  4931. else
  4932. {
  4933. displayTheCheckedLink(link, 'unava_link');
  4934. }
  4935.  
  4936. return;
  4937. }
  4938. },
  4939. onerror: function ()
  4940. {
  4941. displayTheCheckedLink(link, 'unava_link');
  4942. }
  4943. });
  4944. }
  4945.  
  4946. function geturlHeader(link, isAliveRegex, isDeadRegex, ispremRegex)
  4947. {
  4948. GM_xmlhttpRequest(
  4949. {
  4950. method: 'HEAD',
  4951. url: link.href,
  4952. headers: {
  4953. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  4954. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  4955. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  4956. 'Referer': ""
  4957. },
  4958. onload: function (result)
  4959. {
  4960. var resStatus = result.status;
  4961. var resHeaders = "";
  4962. if (resStatus == 403 || resStatus == 404 || resStatus == 500) //not found/available
  4963. {
  4964. displayTheCheckedLink(link, 'adead_link');
  4965. return;
  4966. }
  4967.  
  4968. resHeaders = result.responseHeaders;
  4969.  
  4970. if (resHeaders.match(isDeadRegex))
  4971. {
  4972. displayTheCheckedLink(link, 'adead_link');
  4973. return;
  4974. }
  4975.  
  4976. if (resHeaders.match(isAliveRegex))
  4977. {
  4978. displayTheCheckedLink(link, 'alive_link');
  4979. return;
  4980. }
  4981. if (resHeaders.match(ispremRegex))
  4982. {
  4983. displayTheCheckedLink(link, 'prem_link');
  4984. return;
  4985. }
  4986. },
  4987. onerror: function ()
  4988. {
  4989. displayTheCheckedLink(link, 'unava_link');
  4990. }
  4991. });
  4992. }
  4993.  
  4994. //Delinkfifies the <a> element object
  4995. function delinkifyLink(link)
  4996. {
  4997. var spanElm = document.createElement("span");
  4998. spanElm.className = link.className;
  4999. spanElm.innerHTML = link.innerHTML;
  5000.  
  5001. if (Display_tooltip_info)
  5002. {
  5003. spanElm.href = link.href;
  5004. spanElm.warlc_error = link.warlc_error;
  5005. switch (link.className){
  5006. case "alive_link": spanElm.addEventListener("mouseover", displayTooltipInfo, false); break
  5007. case "adead_link": spanElm.addEventListener("mouseover", displayTooltipError, false); break;
  5008. case "unava_link": //reserved
  5009. case "prem_link": spanElm.addEventListener("mouseover", displayTooltipError, false); break;
  5010. default:
  5011. }
  5012. }
  5013. link.parentNode.replaceChild(spanElm, link);
  5014. }
  5015.  
  5016. //Assigns result status to the <a> element object and calls delinkifying eventually
  5017. //Possible result states: adead_link, alive_link, unava_link, prem_link
  5018. function displayTheCheckedLink(link, resultStatus)
  5019. {
  5020. link.className = resultStatus;
  5021. link.href = Ref_anonymize_service + link.href;
  5022. if (Display_tooltip_info)
  5023. {
  5024. switch (resultStatus){
  5025. case "alive_link": link.addEventListener("mouseover", displayTooltipInfo, false); break
  5026. case "adead_link": link.addEventListener("mouseover", displayTooltipError, false); break;
  5027. case "unava_link": //reserved
  5028. case "prem_link": link.addEventListener("mouseover", displayTooltipInfo, false); break
  5029. default:
  5030. }
  5031. }
  5032. if (doNotLinkify)
  5033. {
  5034. delinkifyLink(link);
  5035. }
  5036. cLinksProcessed++;
  5037.  
  5038. if (resultStatus == "alive_link")
  5039. {
  5040. cLinksAlive++;
  5041. return;
  5042. }
  5043.  
  5044. if (resultStatus == "adead_link")
  5045. {
  5046. cLinksDead++;
  5047. return;
  5048. }
  5049.  
  5050. if (resultStatus == "unava_link")
  5051. {
  5052. cLinksUnava++;
  5053. }
  5054. if (resultStatus == "prem_link")
  5055. {
  5056. cLinksprem++;
  5057. return;
  5058. }
  5059. }
  5060.  
  5061.  
  5062. function initFileHosts()
  5063. {
  5064.  
  5065. function addObsoleteHost(linkRegex, xpathEx)
  5066. {
  5067. var host = new Array(2);
  5068. host[0] = linkRegex;
  5069. host[1] = xpathEx;
  5070. http_file_hosts_obsolete.push(host);
  5071. }
  5072.  
  5073. //obsolete file hosts init start
  5074. if (Obsolete_file_hosts)
  5075. {
  5076. addObsoleteHost("uloz\.cz\/show\/file","//a[contains(@href,'uloz.cz')]");
  5077. addObsoleteHost("storage\\.to\/get","//a[contains(@href,'storage.to')]");
  5078. addObsoleteHost("iskladka\\.cz\/download","//a[contains(@href,'iskladka.cz')]");
  5079. addObsoleteHost("file-rack\\.com\/files","//a[contains(@href,'file-rack.com')]");
  5080. addObsoleteHost("fast-load\\.net\/(\/)?index","//a[contains(@href,'fast-load.net')]");
  5081. addObsoleteHost("subory\\.sk\/download","//a[contains(@href,'subory.sk')]");
  5082. addObsoleteHost("bigandfree\\.com\/\\d+","//a[contains(@href,'bigandfree.com')]");
  5083. addObsoleteHost("fileop\\.com\/\\w+","//a[contains(@href,'fileop.com')]");
  5084. addObsoleteHost("mujsoubor\\.cz\/file\/","//a[contains(@href,'mujsoubor.cz')]");
  5085. addObsoleteHost("sendfile\\.to\/\\w+","//a[contains(@href,'sendfile.to')]");
  5086. addObsoleteHost("superfastfile\\.com\/\\w+","//a[contains(@href,'superfastfile.com')]");
  5087. addObsoleteHost("quickyshare\\.com\/\\w+","//a[contains(@href,'quickyshare.com/')]");
  5088. addObsoleteHost("duckload\\.com\/(?:d|play)","//a[contains(@href,'duckload.com')]");
  5089. addObsoleteHost("uploadstore\\.net\/\\w+","//a[contains(@href,'uploadstore.net')]");
  5090. addObsoleteHost("meinupload\\.com\/dl\/\\d+","//a[contains(@href,'meinupload.com/dl')]");
  5091. addObsoleteHost("dualshare\\.com\/\\w+","//a[contains(@href,'dualshare.com')]");
  5092. addObsoleteHost("2xupload\\.(?:to|de)\/file\/\\w+","//a[contains(@href,'2xupload.to') or contains(@href,'2xupload.de')]");
  5093. addObsoleteHost("oxedion\\.com\/index\\.php\/download\/\\w+","//a[contains(@href,'oxedion.com/index')]");
  5094. addObsoleteHost("uploadline\\.com\/\\d+","//a[contains(@href,'uploadline.com')]");
  5095. addObsoleteHost("dll\\.bz\/file\/\\d+","//a[contains(@href,'dll.bz/file')]");
  5096. addObsoleteHost("movieshare\\.in\/\\w+","//a[contains(@href,'movieshare.in')]");
  5097. addObsoleteHost("milledrive\\.com\/files\/\\d+","//a[contains(@href,'milledrive.com')]");
  5098. addObsoleteHost("quickupload\\.net\/\\w+","//a[contains(@href,'quickupload.net')]");
  5099. addObsoleteHost("safelink\\.in\/\\w+","//a[contains(@href,'safelink.in')]");
  5100. addObsoleteHost("pyramidfiles\\.com\/\\w+","//a[contains(@href,'pyramidfiles.com/')]");
  5101. addObsoleteHost("(?:cloudnator|shragle)\\.com\/files","//a[contains(@href,'cloudnator.com/files') or contains(@href,'shragle.com/files')]");
  5102. addObsoleteHost("batshare\\.com\/\\w+","//a[contains(@href,'batshare.com/')]");
  5103. addObsoleteHost("bitroad\\.net\/download","//a[contains(@href,'bitroad.net/download')]");
  5104. addObsoleteHost("metadivx\\.com\/\\w+","//a[contains(@href,'metadivx.com')]");
  5105. addObsoleteHost("filegaze\\.com\/\\w+","//a[contains(@href,'filegaze.com/')]");
  5106. addObsoleteHost("bulletupload\\.com\/\\w+","//a[contains(@href,'bulletupload.com/')]");
  5107. addObsoleteHost("sharefilehost\\.com\/\\w+","//a[contains(@href,'sharefilehost.com/')]");
  5108. addObsoleteHost("fireuploads\\.net\/\\w+","//a[contains(@href,'fireuploads.net/')]");
  5109. addObsoleteHost("divxlink\\.com\/\\w+","//a[contains(@href,'divxlink.com/')]");
  5110. addObsoleteHost("bzlink\\.us\/\\w+","//a[contains(@href,'bzlink.us/')]");
  5111. addObsoleteHost("filetechnology\\.com\/\\w+","//a[contains(@href,'filetechnology.com/')]");
  5112. addObsoleteHost("filecosy\\.com\/\\w+","//a[contains(@href,'filecosy.com/')]");
  5113. addObsoleteHost("fileserver\\.cc\/\\w+","//a[contains(@href,'fileserver.cc/')]");
  5114. addObsoleteHost("shafiles\\.me\/\\w+","//a[contains(@href,'shafiles.me/')]");
  5115. addObsoleteHost("xfileshare\\.eu\/\\w+","//a[contains(@href,'xfileshare.eu/')]");
  5116. addObsoleteHost("uploadboost\\.com\/\\w+","//a[contains(@href,'uploadboost.com/')]");
  5117. addObsoleteHost("uploadoz\\.com\/\\w+","//a[contains(@href,'uploadoz.com/')]");
  5118. addObsoleteHost("ihostia\\.com\/\\w+","//a[contains(@href,'ihostia.com/')]");
  5119. addObsoleteHost("shareupload\\.com\/\\w+","//a[contains(@href,'shareupload.com/')]");
  5120. addObsoleteHost("ovfile\\.com\/\\w+","//a[contains(@href,'ovfile.com/')]");
  5121. addObsoleteHost("stahuj\\.to\/\\w+","//a[contains(@href,'stahuj.to/')]");
  5122. addObsoleteHost("gigfiles\\.net\/\\w+","//a[contains(@href,'gigfiles.net/')]");
  5123. addObsoleteHost("vidhog\\.com\/\\w+","//a[contains(@href,'vidhog.com/')]");
  5124. addObsoleteHost("filelaser\\.com\/\\w+","//a[contains(@href,'filelaser.com/')]");
  5125. addObsoleteHost("holderfile\\.com\/\\w+","//a[contains(@href,'holderfile.com/')]");
  5126. addObsoleteHost("fileduct\\.(?:com|net)\/\\w+","//a[contains(@href,'fileduct.com/') or contains(@href,'fileduct.net')]");
  5127. addObsoleteHost("filefat\\.com\/\\w+","//a[contains(@href,'filefat.com/')]");
  5128. addObsoleteHost("restfile\\.com\/\\w+","//a[contains(@href,'restfile.com/')]");
  5129. addObsoleteHost("filemashine\\.com\\/download\/\\w+","//a[contains(@href,'filemashine.com/download')]");
  5130. addObsoleteHost("cloudnxt\\.net\/\\w+","//a[contains(@href,'cloudnxt.net/')]");
  5131. addObsoleteHost("uploadrack\\.com\/\\w+","//a[contains(@href,'uploadrack.com')]");
  5132. addObsoleteHost("teradepot\\.com\/\\w+","//a[contains(@href,'teradepot.com')]");
  5133. addObsoleteHost("dataup\\.to\/\\d+\/","//a[contains(@href,'dataup.to')]");
  5134. addObsoleteHost("upit\\.to\/file:\\d+","//a[contains(@href,'upit.to/file')]");
  5135. addObsoleteHost("badongo\\.(?:com|net)\/(?:\\w\\w\/|)(?:vid|cfile|file|pt)\/\\w+","//a[contains(@href,'badongo.com') or contains(@href,'badongo.net')]");
  5136. addObsoleteHost("driveway\\.com\/\\w+","//a[contains(@href,'driveway.com')]");
  5137. addObsoleteHost("eatlime\\.com\/download","//a[contains(@href,'eatlime.com/download')]");
  5138. addObsoleteHost("a2zuploads\\.com\/id\\w+","//a[contains(@href,'a2zuploads.com/id')]");
  5139. addObsoleteHost("friendlyfiles\\.net\/download\/\\w+\/","//a[contains(@href,'friendlyfiles.net/download')]");
  5140. addObsoleteHost("flyfile\\.us\/\\w+","//a[contains(@href,'flyfile.us')]");
  5141. addObsoleteHost("speedyshare\\.com\/\\w+","//a[contains(@href,'speedyshare.com')]");
  5142. addObsoleteHost("brontofile\\.com\/download","//a[contains(@href,'brontofile.com/download')]");
  5143. addObsoleteHost("uploadspace\\.eu\/\\w+","//a[contains(@href,'uploadspace.eu')]");
  5144. addObsoleteHost("fooget\\.com\/\\w+","//a[contains(@href,'fooget.com/')]");
  5145. addObsoleteHost("file-bit.net\/\\w+","//a[contains(@href,'file-bit.net/')]");
  5146. addObsoleteHost("keepfile\\.com\/\\w+","//a[contains(@href,'http://keepfile.com')]");
  5147. addObsoleteHost("piggyshare\\.com\/file\/\\w+","//a[contains(@href,'piggyshare.com')]");
  5148. addObsoleteHost("filecrown\\.com\/\\w+","//a[contains(@href,'filecrown.com')]");
  5149. addObsoleteHost("6giga\\.com\/\\w+","//a[contains(@href,'6giga.com')]");
  5150. addObsoleteHost("uploadjockey\\.com\/download\/\\w+","//a[contains(@href,'uploadjockey.com/download')]");
  5151. addObsoleteHost("bluehost\\.to\/dl=\\w+","//a[contains(@href,'bluehost.to')]");
  5152. addObsoleteHost("coolshare\\.cz\/stahnout\/\\w+","//a[contains(@href,'coolshare.cz/stahnout')]");
  5153. addObsoleteHost("filegu\\.ru\/f\/\\w+","//a[contains(@href,'filegu.ru/f')]");
  5154. addObsoleteHost("filebase\\.to\/files\/\\d+\/","//a[contains(@href,'filebase.to/files')]");
  5155. addObsoleteHost("kickload\\.com\/(?:file|get)\/","//a[contains(@href,'kickload.com/file') or contains(@href,'kickload.com/get')]");
  5156. addObsoleteHost("up-file\\.com\/files\/download\/\\w+\/","//a[contains(@href,'up-file.com/download')]");
  5157. addObsoleteHost("ezyfile\\.net\/\\w+","//a[contains(@href,'ezyfile.net/')]");
  5158. addObsoleteHost("k2files\\.com\/files","//a[contains(@href,'k2files.com/files')]");
  5159. addObsoleteHost("aiotool\\.net\/\\w+","//a[contains(@href,'aiotool.net/')]");
  5160. addObsoleteHost("xvideos\\.com\/files\/\\d+\/\\w+","//a[contains(@href,'xvideos.com/files')]");
  5161. addObsoleteHost("filebling\\.com\/dl\/\\d+\/\\d+\/\\w+","//a[contains(@href,'filebling.com/dl')]");
  5162. addObsoleteHost("loaded\\.it\/divx\/\\w+","//a[contains(@href,'loaded.it/divx')]");
  5163. addObsoleteHost("uploadcell\\.com\/\\w+\/\\w+","//a[contains(@href,'uploadcell.com')]");
  5164. addObsoleteHost("jakfile\\.com\/\\w+","//a[contains(@href,'jakfile.com/')]");
  5165. addObsoleteHost("uploadshare\\.cz\/download\/\\w+\/\\w+","//a[contains(@href,'uploadshare.cz/download')]");
  5166. addObsoleteHost("mangoshare\\.com\/\\w+","//a[contains(@href,'mangoshare.com')]");
  5167. addObsoleteHost("ugotfile\\.com\/file\/\\d+\/\\w+","//a[contains(@href,'ugotfile.com/file')]");
  5168. addObsoleteHost("filestab\\.com\/\\w+","//a[contains(@href,'filestab.com')]");
  5169. addObsoleteHost("dotavi\\.com\/\\w+\/.","//a[contains(@href,'dotavi.com/')]");
  5170. addObsoleteHost("crazyupload\\.com\/\\w+","//a[contains(@href,'crazyupload.com')]");
  5171. addObsoleteHost("gaiafile\\.com\/\\w+","//a[contains(@href,'gaiafile.com')]");
  5172. addObsoleteHost("sharejunky\\.com\/\\w+","//a[contains(@href,'sharejunky.com')]");
  5173. addObsoleteHost("fileho\\.com\/download\/\\d+","//a[contains(@href,'fileho.com/download')]");
  5174. addObsoleteHost("(?:bigandfree|BigAndFree)\\.com\/\\d+","//a[contains(@href,'bigandfree.com') or contains(@href,'BigAndFree.com')]");
  5175. addObsoleteHost("bigfile\\.in\/\\w+","//a[contains(@href,'bigfile.in')]");
  5176. addObsoleteHost("bigshare\\.eu\/download\\.php\\?id=","//a[contains(@href,'bigshare.eu/download.php')]");
  5177. addObsoleteHost("dahosting\\.org\/dl\/\\w+","//a[contains(@href,'dahosting.org/dl')]");
  5178. addObsoleteHost("digisofts\\.net\/\\w+","//a[contains(@href,'digisofts.net')]");
  5179. addObsoleteHost("file4save\\.com\/\\w+\/\\w+","//a[contains(@href,'file4save.com')]");
  5180. addObsoleteHost("filereactor\\.com\/\\w+","//a[contains(@href,'filereactor.com/')]");
  5181. addObsoleteHost("filechip\\.com\/\\w+","//a[contains(@href,'filechip.com')]");
  5182. addObsoleteHost("filescloud\\.com\/\\w+\/\\w+","//a[contains(@href,'filescloud.com')]");
  5183. addObsoleteHost("saveqube\\.com\/getfile\/\\w+","//a[contains(@href,'saveqube.com/getfile')]");
  5184. addObsoleteHost("www2\\.turboshare\\.de\/v\/\\d+","//a[contains(@href,'turboshare.de/v')]");
  5185. addObsoleteHost("z-upload\\.com\/\\w+","//a[contains(@href,'z-upload.com')]");
  5186. addObsoleteHost("youshare\\.com\/view\\.php","//a[contains(@href,'youshare.com/view')]");
  5187. addObsoleteHost("jiffyupload\\.com\/\\w+","//a[contains(@href,'jiffyupload.com')]");
  5188. addObsoleteHost("gigeshare\\.com\/preview\/\\w+","//a[contains(@href,'gigeshare.com')]");
  5189. addObsoleteHost("datenklo\\.net\/dl","//a[contains(@href,'datenklo.net')]");
  5190. addObsoleteHost("upload\\.dj\/download\\.php\\?id=\\w+","//a[contains(@href,'upload.dj/download.php')]");
  5191. addObsoleteHost("loadfiles\\.in\/\\w+\/","//a[contains(@href,'loadfiles.in')]");
  5192. addObsoleteHost("upit\\.to\/file:\\w+\/","//a[contains(@href,'upit.to/file')]");
  5193. addObsoleteHost("zshare\\.net\/(?:download|video|audio)\/\\w+","//a[contains(@href,'zshare.net/')]");
  5194. addObsoleteHost("refile\\.net\/f\/\\?\\w+","//a[contains(@href,'refile.net/f/')]");
  5195. addObsoleteHost("dsfileshare\\.com\/download","//a[contains(@href,'dsfileshare.com/download')]");
  5196. addObsoleteHost("sharesimple\\.net\/\\w{2}\/download","//a[contains(@href,'sharesimple.net')]");
  5197. addObsoleteHost("(?:s\\d+\\.|)4files\\.net\/\\d+","//a[contains(@href,'4files.net')]");
  5198. addObsoleteHost("odsiebie\\.com\/pokaz\/\\d+","//a[contains(@href,'odsiebie.com/pokaz')]");
  5199. addObsoleteHost("filenavi\\.com\/direct\/\\w+","//a[contains(@href,'filenavi.com/direct')]");
  5200. addObsoleteHost("3oof\\.com\/\\w+","//a[contains(@href,'3oof.com/')]");
  5201. addObsoleteHost("meshwaar\\.com\/\\w+","//a[contains(@href,'meshwaar.com')]");
  5202. addObsoleteHost("maxupload\\.com\/files\/\\w+","//a[contains(@href,'maxupload.com/files')]");
  5203. addObsoleteHost("share\\.cx\/videos\/\\d+","//a[contains(@href,'share.cx/videos')]");
  5204. addObsoleteHost("atserver\\.eu\/(?:\\w{2}\/|)download\/\\d+","//a[contains(@href,'atserver.eu')]");
  5205. addObsoleteHost("file2upload\\.net\/download\/\\d+","//a[contains(@href,'file2upload.net/download')]");
  5206. addObsoleteHost("filebling\\.com\/\\w+","//a[contains(@href,'filebling.com')]");
  5207. addObsoleteHost("turboshare\\.(?:eu|com)\/files","//a[contains(@href,'turboshare.') and contains(@href,'/files')]");
  5208. addObsoleteHost("rarhost\\.com\/download","//a[contains(@href,'rarhost.com/download')]");
  5209. addObsoleteHost("isharehd\\.com\/\\w+","//a[contains(@href,'isharehd.com')]");
  5210. addObsoleteHost("datenklo\\.net\/file\\.php\\?id=\\w+","//a[contains(@href,'datenklo.net/file.php')]");
  5211. addObsoleteHost("file2share\\.biz\/download\\.php\\?id=\\w+","//a[contains(@href,'file2share.biz/download.php')]");
  5212. addObsoleteHost("savefiles\\.net\/d\/\\w+\\.html","//a[contains(@href,'savefiles.net/d')]");
  5213. addObsoleteHost("bestsharing\\.com\/files\/\\w+","//a[contains(@href,'bestsharing.com/files')]");
  5214. addObsoleteHost("filecache\\.de\/\\d+","//a[contains(@href,'filecache.de/')]");
  5215. addObsoleteHost("i741\\.com\/files\/\\w+","//a[contains(@href,'i741.com/files')]");
  5216. addObsoleteHost("dataup\\.de\/\\d+","//a[contains(@href,'dataup.de')]");
  5217. addObsoleteHost("fofly\\.com\/\\w+","//a[contains(@href,'fofly.com')]");
  5218. addObsoleteHost("shareonall\\.com\/\\w+","//a[contains(@href,'shareonall.com')]");
  5219. addObsoleteHost("sexuploader\\.com\/(?:|..\/)\\?[d|v]=\\w{8}","//a[contains(@href,'sexuploader.com')]");
  5220. 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')]");
  5221. addObsoleteHost("uploadhyper\\.com\/file\/","//a[contains(@href,'uploadhyper.com')]");
  5222. addObsoleteHost("filespawn\\.com\/file\/","//a[contains(@href,'filespawn.com')]");
  5223. addObsoleteHost("caizzii\\.com\/(?:download|\\?file=)","//a[contains(@href,'caizzii.com')]");
  5224. addObsoleteHost("volnyweb\\.cz\/files\/get\/[\\w-_]+","//a[contains(@href,'volnyweb.cz/files')]");
  5225. addObsoleteHost("gotupload\\.com\/\\w+","//a[contains(@href,'gotupload.com/')]");
  5226. addObsoleteHost("mooload\\.com\/new\/file\\.php\\?file=files\/\\d+\/\\d+","//a[contains(@href,'mooload.com/new/file')]");
  5227. addObsoleteHost("z\\d+\\.zupload\\.com\/download\\.php\\?file=getfile&filepath=\\d+","//a[contains(@href,'zupload.com/download')]");
  5228. addObsoleteHost("mytempdir\\.com\/\\d+","//a[contains(@href,'mytempdir.com/')]");
  5229. addObsoleteHost("usershare\\.net\/\\w+","//a[contains(@href,'usershare.net/')]");
  5230. addObsoleteHost("qshare\\.com\/get\/\\d+\/.","//a[contains(@href,'qshare.com/get')]");
  5231. addObsoleteHost("filescash\\.net\/file\/\\d+","//a[contains(@href,'filescash.net/file')]");
  5232. addObsoleteHost("metahyper\\.com\/\\w+","//a[contains(@href,'metahyper.com/')]");
  5233. addObsoleteHost("combozip\\.com\/\\w+","//a[contains(@href,'combozip.com/')]");
  5234. addObsoleteHost("anonstream\\.com\/get_\\w+","//a[contains(@href,'anonstream.com/get_')]");
  5235. addObsoleteHost("x7\\.to\/\\w+","//a[contains(@href,'x7.to/')]");
  5236. addObsoleteHost("uploadbox\\.com\/files\/\\w+","//a[contains(@href,'uploadbox.com/files')]");
  5237. addObsoleteHost("(?:flyupload\\.)?(?:enterupload|flyupload)\\.com\/[\\?\\w]+","//a[contains(@href,'enterupload.com/') or contains(@href,'flyupload.com/')]");
  5238. addObsoleteHost("filepoint\\.de\/dl\/\\w+","//a[contains(@href,'filepoint.de/dl')]");
  5239. addObsoleteHost("icushare\\.com\/\\w+","//a[contains(@href,'icushare.com/')]");
  5240. addObsoleteHost("oron\\.com\/\\w+","//a[contains(@href,'oron.com/')]");
  5241. addObsoleteHost("mystream\\.to\/file\\-\\d+","//a[contains(@href,'mystream.to/file')]");
  5242. addObsoleteHost("x-fs\\.com\/download\\.php\\?id=\\w+","//a[contains(@href,'x-fs.com/download')]");
  5243. addObsoleteHost("srapid\\.eu\/\\w+","//a[contains(@href,'srapid.eu/')]");
  5244. addObsoleteHost("shareshared\\.com\/\\w+","//a[contains(@href,'shareshared.com/')]");
  5245. addObsoleteHost("sosame\\.cz\/\\w+","//a[contains(@href,'sosame.cz/')]");
  5246. addObsoleteHost("s\\d+\\.filesdump\\.com\/file\/\\w+","//a[contains(@href,'filesdump.com/file')]");
  5247. addObsoleteHost("2-klicks\\.de\/\\?d=\\w+","//a[contains(@href,'2-klicks.de/?d=')]");
  5248. addObsoleteHost("silofiles\\.com\/file\/\\d+","//a[contains(@href,'silofiles.com/file')]");
  5249. addObsoleteHost("upfile\\.in\/\\w+","//a[contains(@href,'upfile.in/')]");
  5250. addObsoleteHost("filehook\\.com\/\\w+","//a[contains(@href,'filehook.com/')]");
  5251. addObsoleteHost("mojofile\\.com\/\\w+","//a[contains(@href,'mojofile.com/')]");
  5252. addObsoleteHost("cloudcache\\.cc\/\\w+","//a[contains(@href,'cloudcache.cc/')]");
  5253. addObsoleteHost("1hostclick\\.com\/\\w+","//a[contains(@href,'1hostclick.com/')]");
  5254. addObsoleteHost("4bytez\\.com\/\\w+","//a[contains(@href,'4bytez.com/')]");
  5255. addObsoleteHost("uploadking\\.com\/\\w+","//a[contains(@href,'uploadking.com/')]");
  5256. addObsoleteHost("nahraj\\.cz\/(?:content|down)\/\\w+","//a[contains(@href,'nahraj.cz/')]");
  5257. addObsoleteHost("megarapid\\.eu\/files\/\\d+","//a[contains(@href,'megarapid.eu/files')]");
  5258. addObsoleteHost("(?:fileserve|uploadstation)\\.com\/(?:file|list)\/\\w+","//a[contains(@href,'fileserve.com/') or contains(@href,'uploadstation.com/')]");
  5259. addObsoleteHost("uploadhere\\.com\/\\w+","//a[contains(@href,'uploadhere.com/')]");
  5260. addObsoleteHost("dualshare\\.com\/\\w+","//a[contains(@href,'dualshare.com/')]");
  5261. addObsoleteHost("yourfilehost\\.com\/media","//a[contains(@href,'yourfilehost.com/media')]");
  5262. addObsoleteHost("ftp2share\\.com\/file\/\\w+","//a[contains(@href,'ftp2share.com/file')]");
  5263. addObsoleteHost("storeandserve\\.com\/download\/\\d+","//a[contains(@href,'storeandserve.com/download')]");
  5264. addObsoleteHost("mountfile\\.com\/file(?:\/\\w+){2}","//a[contains(@href,'mountfile.com/file')]");
  5265. addObsoleteHost("save\\.am\/files\/\\w+","//a[contains(@href,'save.am/files')]");
  5266. addObsoleteHost("transitfiles\\.com\/dl\/\\w+","//a[contains(@href,'transitfiles.com/dl')]");
  5267. addObsoleteHost("smartuploader\\.com\/file\\.php\\?f=\\d+","//a[contains(@href,'smartuploader.com/file.php?=')]");
  5268. addObsoleteHost("skipfile\\.com\/\\w+","//a[contains(@href,'skipfile.com/')]");
  5269. addObsoleteHost("stahnu\\.to\/[\\w\\?]+","//a[contains(@href,'stahnu.to/')]");
  5270. addObsoleteHost("flyshare\.cz\/(?:stahni\/|)\\d+","//a[contains(@href,'flyshare.cz/')]");
  5271. addObsoleteHost("(?:ddlani\\.me|ddlanime\\.com)\/\\w+","//a[contains(@href,'ddlani.me/') or contains(@href,'ddlanime.com/')]");
  5272. addObsoleteHost("loadly\\.com\/\\w+","//a[contains(@href,'loadly.com/')]");
  5273. addObsoleteHost("groovefile\\.com\/\\w+","//a[contains(@href,'groovefile.com/')]");
  5274. addObsoleteHost("filezlot\\.com\/\\w+","//a[contains(@href,'filezlot.com/')]");
  5275. addObsoleteHost("shareator\\.(?:net|com)\/\\w+","//a[contains(@href,'shareator.')]");
  5276. addObsoleteHost("yabadaba\\.ru\/files\/","//a[contains(@href,'yabadaba.ru/files/')]");
  5277. addObsoleteHost("rapidhide\\.com\/download\\.php\\?file=\\w+","//a[contains(@href,'rapidhide.com/download.php')]");
  5278. addObsoleteHost("filejungle\\.com\/[fl]\/\\w+","//a[contains(@href,'filejungle.com/')]");
  5279. addObsoleteHost("kewlshare\\.com\/dl\/\\d+","//a[contains(@href,'kewlshare.com/dl')]");
  5280. addObsoleteHost("petandrive\\.com\/file\/\\w+","//a[contains(@href,'petandrive.com/file')]");
  5281. addObsoleteHost("onionshare\\.com\/\\w+","//a[contains(@href,'onionshare.com/')]");
  5282. addObsoleteHost("rapidable\\.com\/\\w+\/download\\.php\\?id=","//a[contains(@href,'rapidable.com/')]");
  5283. addObsoleteHost("filesdump\\.com\/file\/\\w+\/\\d+","//a[contains(@href,'filesdump.com/file')]");
  5284. addObsoleteHost("file2box\\.(?:net|com)\/\\w+","//a[contains(@href,'file2box.')]");
  5285. addObsoleteHost("(?:filesonic|sharingmatrix|wupload)(?:\\.\\w+){1,2}\/(?:file|folder)\/\\w+","//a[contains(@href,'filesonic.') or contains(@href,'sharingmatrix.com') or contains(@href,'wupload.')]");
  5286. // addObsoleteHost("wizzupload\\.com\/\\w+","//a[contains(@href,'wizzupload.com/')]");
  5287. addObsoleteHost("bloggerarticles\\.com\/\\w+","//a[contains(@href,'bloggerarticles.com/')]");
  5288. addObsoleteHost("mojedata\\.sk/","//a[contains(@href,'mojedata.sk/')]");
  5289. addObsoleteHost("sharpfile\\.com\/\\w+","//a[contains(@href,'sharpfile.com/')]");
  5290. addObsoleteHost("upgrand\\.com\/\\w+","//a[contains(@href,'upgrand.com/')]");
  5291. addObsoleteHost("nasdilej\\.cz\/\\w+","//a[contains(@href,'nasdilej.cz/')]");
  5292. addObsoleteHost("mediatack\\.cz\/stahuj/\\w+","//a[contains(@href,'mediatack.cz/stahuj/')]");
  5293. addObsoleteHost("share-it\\.to\/file/\\w+","//a[contains(@href,'share-it.to/file/')]");
  5294. addObsoleteHost("primeupload\\.com\/file/\\w+","//a[contains(@href,'primeupload.com/file/')]");
  5295. addObsoleteHost("(?:uploads\\.glumbo|glumbouploads)\\.com\/\\w+","//a[contains(@href,'uploads.glumbo.com') or contains(@href,'glumbouploads.com')]");
  5296. addObsoleteHost("filebeer\\.info\/\\w+","//a[contains(@href,'filebeer.info/')]");
  5297. addObsoleteHost("baberepublic\\.com\/link\/\\w+","//a[contains(@href,'baberepublic.com/link/')]");
  5298. addObsoleteHost("xtu\\.me\/\\w+","//a[contains(@href,'xtu.me/')]");
  5299. addObsoleteHost("sharebase\\.de\/files\/\\w+","//a[contains(@href,'sharebase.de/files/')]");
  5300. addObsoleteHost("filerobo\\.com\/\\w+","//a[contains(@href,'filerobo.com/')]");
  5301. addObsoleteHost("filevelocity\\.com\/\\w+","//a[contains(@href,'filevelocity.com/')]");
  5302. addObsoleteHost("filezpro\\.com\/\\w+","//a[contains(@href,'filezpro.com/')]");
  5303. addObsoleteHost("file4sharing\\.com\/\\w+","//a[contains(@href,'file4sharing.com/')]");
  5304. addObsoleteHost("cing\\.be\/\\w+","//a[contains(@href,'cing.be/')]");
  5305. addObsoleteHost("ufile\\.eu\/\\w+","//a[contains(@href,'ufile.eu/')]");
  5306. addObsoleteHost("pigsonic\\.com\/\\w+","//a[contains(@href,'pigsonic.com/')]");
  5307. addObsoleteHost("fileupped\\.com\/\\w+","//a[contains(@href,'fileupped.com/')]");
  5308. addObsoleteHost("sharerun\\.com\/\\w+","//a[contains(@href,'sharerun.com/')]");
  5309. addObsoleteHost("rapidslnare\\.com\/\\w+","//a[contains(@href,'rapidslnare.com/')]");
  5310. addObsoleteHost("monsteruploads\\.eu\/\\w+","//a[contains(@href,'monsteruploads.eu/')]");
  5311. addObsoleteHost("b9bb\\.com\/\\w+","//a[contains(@href,'b9bb.com/')]");
  5312. addObsoleteHost("jamber\\.info\/\\w+","//a[contains(@href,'jamber.info/')]");
  5313. addObsoleteHost("(?:megaftp|MegaFTP)\\.com\/\\w+","//a[contains(@href,'megaftp.com/') or contains(@href,'MegaFTP.com/')]");
  5314. addObsoleteHost("desiupload\\.net\/\\?d=\\w+","//a[contains(@href,'desiupload.net/')]");
  5315. addObsoleteHost("file27\\.com\/\\w+","//a[contains(@href,'file27.com/')]");
  5316. addObsoleteHost("yastorage\\.com\/\\w+","//a[contains(@href,'yastorage.com/')]");
  5317. addObsoleteHost("filehost\\.ws\/\\w+","//a[contains(@href,'filehost.ws/')]");
  5318. addObsoleteHost("copyload\\.com\/\\w+","//a[contains(@href,'copyload.com/')]");
  5319. addObsoleteHost("venusfile\\.com\/\\w+","//a[contains(@href,'venusfile.com/')]");
  5320. addObsoleteHost("aieshare\\.com\/\\w+","//a[contains(@href,'aieshare.com/')]");
  5321. addObsoleteHost("fileza\\.net\/\\w+","//a[contains(@href,'fileza.net/')]");
  5322. addObsoleteHost("filerose\\.com\/\\w+","//a[contains(@href,'filerose.com/')]");
  5323. addObsoleteHost("squillion\\.com\/\\w+","//a[contains(@href,'squillion.com/')]");
  5324. addObsoleteHost("fileprohost\\.com\/\\w+","//a[contains(@href,'fileprohost.com/')]");
  5325. addObsoleteHost("bitbonus\\.com\/download\/\\w+","//a[contains(@href,'bitbonus.com/')]");
  5326. addObsoleteHost("warserver\\.cz\/\\w+","//a[contains(@href,'warserver.cz/')]");
  5327. addObsoleteHost("uload\\.to\/\\w+","//a[contains(@href,'uload.to/')]");
  5328. addObsoleteHost("sharedbit\\.net\/\\w+","//a[contains(@href,'sharedbit.net/')]");
  5329. addObsoleteHost("megaload\\.it\/\\w+","//a[contains(@href,'megaload.it/')]");
  5330. addObsoleteHost("filewinds\\.com\/\\w+","//a[contains(@href,'filewinds.com/')]");
  5331. addObsoleteHost("uploadcore\\.com\/\\w+","//a[contains(@href,'uploadcore.com/')]");
  5332. addObsoleteHost("syfiles\\.com\/\\w+","//a[contains(@href,'syfiles.com/')]");
  5333. addObsoleteHost("eyesfile\\.com\/\\w+","//a[contains(@href,'eyesfile.com/')]");
  5334. addObsoleteHost("hotfile\\.com\/\\w+","//a[contains(@href,'hotfile.com/')]");
  5335. addObsoleteHost("superupl\\.com\/\\w+","//a[contains(@href,'superupl.com/')]");
  5336. addObsoleteHost("oteupload\\.com\/\\w+","//a[contains(@href,'oteupload.com/')]");
  5337. addObsoleteHost("henchfile\\.com\/\\w+","//a[contains(@href,'henchfile.com/')]");
  5338. addObsoleteHost("HenchFile\\.com\/\\w+","//a[contains(@href,'HenchFile.com/')]");
  5339. addObsoleteHost("filegag\\.com\/\\w+","//a[contains(@href,'filegag.com/')]");
  5340. addObsoleteHost("filedefend\\.com\/\\w+","//a[contains(@href,'filedefend.com/')]");
  5341. addObsoleteHost("hotfiles\\.ws\/\\w+","//a[contains(@href,'hotfiles.ws/')]");
  5342. addObsoleteHost("share-rapid\\.com\/\\w+","//a[contains(@href,'share-rapid.com/')]");
  5343. //addObsoleteHost("sharerapid\\.cz\/\\w+","//a[contains(@href,'sharerapid.cz/')]");
  5344. addObsoleteHost("rapids\\.cz\/\\w+","//a[contains(@href,'rapids.cz/')]");
  5345. addObsoleteHost("share-credit\\.cz\/\\w+","//a[contains(@href,'share-credit.cz/')]");
  5346. addObsoleteHost("share-central\\.cz\/\\w+","//a[contains(@href,'share-central.cz/')]");
  5347. addObsoleteHost("share-ms\\.cz\/\\w+","//a[contains(@href,'share-ms.cz/')]");
  5348. addObsoleteHost("share-net\\.cz\/\\w+","//a[contains(@href,'share-net.cz/')]");
  5349. addObsoleteHost("srapid\\.cz\/\\w+","//a[contains(@href,'srapid.cz/')]");
  5350. addObsoleteHost("share-rapid\\.cz\/\\w+","//a[contains(@href,'share-rapid.cz/')]");
  5351. addObsoleteHost("wooupload\\.com\/\\w+","//a[contains(@href,'wooupload.com/')]");
  5352. addObsoleteHost("megabitshare\\.com\/\\w+","//a[contains(@href,'megabitshare.com/')]");
  5353. addObsoleteHost("uploking\\.com\/\\w+","//a[contains(@href,'uploking.com/')]");
  5354. addObsoleteHost("esnips\\.com\/\\w+","//a[contains(@href,'esnips.com/')]");
  5355. addObsoleteHost("uplly\\.com\/\\w+","//a[contains(@href,'uplly.com/')]");
  5356. addObsoleteHost("ufox\\.com\/\\w+","//a[contains(@href,'ufox.com/')]");
  5357. addObsoleteHost("clz\\.to\/\\w+","//a[contains(@href,'clz.to/')]");
  5358. addObsoleteHost("cloudzer\\.net\/\\w+","//a[contains(@href,'cloudzer.net/')]");
  5359. addObsoleteHost("cloudzer\\.com\/\\w+","//a[contains(@href,'cloudzer.com/')]");
  5360. addObsoleteHost("extabit\\.com\/\\w+","//a[contains(@href,'extabit.com/')]");
  5361. addObsoleteHost("uploadwaste\\.com\/\\w+","//a[contains(@href,'uploadwaste.com/')]");
  5362. addObsoleteHost("247upload\\.com\/\\w+","//a[contains(@href,'uploadwaste.com/')]");
  5363. addObsoleteHost("2download\\.de\/\\w+","//a[contains(@href,'2download.de/')]");
  5364. addObsoleteHost("4fastfile\\.com\/\\w+","//a[contains(@href,'4fastfile.com/')]");
  5365. addObsoleteHost("asixfiles\\.com\/\\w+","//a[contains(@href,'asixfiles.com/')]");
  5366. addObsoleteHost("berofile\\.com\/\\w+","//a[contains(@href,'berofile.com/')]");
  5367. addObsoleteHost("bigupload\\.com\/\\w+","//a[contains(@href,'bigupload.com/')]");
  5368. addObsoleteHost("cepzo\\.com\/\\w+","//a[contains(@href,'cepzo.com/')]");
  5369. addObsoleteHost("czshare\\.com\/\\w+","//a[contains(@href,'czshare.com/')]");
  5370. addObsoleteHost("clouds\\.to\/\\w+","//a[contains(@href,'clouds.to/')]");
  5371. addObsoleteHost("cobrashare\\.sk\/\\w+","//a[contains(@href,'cobrashare.sk/')]");
  5372. addObsoleteHost("coraldrive\\.net\/\\w+","//a[contains(@href,'coraldrive.net/')]");
  5373. addObsoleteHost("cyberlocker\\.ch\/\\w+","//a[contains(@href,'cyberlocker.ch/')]");
  5374. addObsoleteHost("darkport\\.org\/\\w+","//a[contains(@href,'darkport.org/')]");
  5375. addObsoleteHost("dark-uploads\\.com\/\\w+","//a[contains(@href,'dark-uploads.com/')]");
  5376. addObsoleteHost("davvas\\.com\/\\w+","//a[contains(@href,'davvas.com/')]");
  5377. addObsoleteHost("enigmashare\\.com\/\\w+","//a[contains(@href,'enigmashare.com/')]");
  5378. addObsoleteHost("erofly\\.cz\/\\w+","//a[contains(@href,'erofly.cz/')]");
  5379. addObsoleteHost("fastsonic\\.net\/\\w+","//a[contains(@href,'fastsonic.net/')]");
  5380. addObsoleteHost("filebox\\.com\/\\w+","//a[contains(@href,'filebox.com/')]");
  5381. addObsoleteHost("filecity\\.net\/\\w+","//a[contains(@href,'filecity.net/')]");
  5382. addObsoleteHost("filedap\\.com\/\\w+","//a[contains(@href,'filedap.com/')]");
  5383. addObsoleteHost("filedino\\.com\/\\w+","//a[contains(@href,'filedino.com/')]");
  5384. addObsoleteHost("filedownloads\\.org\/\\w+","//a[contains(@href,'filedownloads.org/')]");
  5385. addObsoleteHost("filefolks\\.com\/\\w+","//a[contains(@href,'filefolks.com/')]");
  5386. addObsoleteHost("fileking\\.co\/\\w+","//a[contains(@href,'fileking.co/')]");
  5387. addObsoleteHost("filemates\\.com\/\\w+","//a[contains(@href,'filemates.com/')]");
  5388. addObsoleteHost("files\\.to\/\\w+","//a[contains(@href,'files.to/')]");
  5389. addObsoleteHost("files2k\\.eu\/\\w+","//a[contains(@href,'files2k.eu/')]");
  5390. addObsoleteHost("filesector\\.cc\/\\w+","//a[contains(@href,'filesector.cc/')]");
  5391. addObsoleteHost("filesega\\.com\/\\w+","//a[contains(@href,'filesega.com/')]");
  5392. addObsoleteHost("filesend\\.net\/\\w+","//a[contains(@href,'filesend.net/')]");
  5393. addObsoleteHost("filestay\\.com\/\\w+","//a[contains(@href,'filestay.com/')]");
  5394. addObsoleteHost("filestrum\\.com\/\\w+","//a[contains(@href,'filestrum.com/')]");
  5395. addObsoleteHost("fileuplo\\.de\/\\w+","//a[contains(@href,'fileuplo.de/')]");
  5396. addObsoleteHost("fileupup\\.com\/\\w+","//a[contains(@href,'fileupup.com/')]");
  5397. addObsoleteHost("forunesia\\.com\/\\w+","//a[contains(@href,'forunesia.com/')]");
  5398. addObsoleteHost("freeuploads\\.fr\/\\w+","//a[contains(@href,'freeuploads.fr/')]");
  5399. addObsoleteHost("uploa\\.dk\/\\w+","//a[contains(@href,'uploa.dk/')]");
  5400. addObsoleteHost("getthebit\\.com\/\\w+","//a[contains(@href,'getthebit.com/')]");
  5401. addObsoleteHost("getzilla\\.net\/\\w+","//a[contains(@href,'getzilla.net/')]");
  5402. addObsoleteHost("goldfile\\.eu\/\\w+","//a[contains(@href,'goldfile.eu/')]");
  5403. addObsoleteHost("good\\.com\/\\w+","//a[contains(@href,'good.com/')]");
  5404. addObsoleteHost("grupload\\.com\/\\w+","//a[contains(@href,'grupload.com/')]");
  5405. addObsoleteHost("hellfile\\.com\/\\w+","//a[contains(@href,'hellfile.com/')]");
  5406. addObsoleteHost("hipfile\\.com\/\\w+","//a[contains(@href,'hipfile.com/')]");
  5407. addObsoleteHost("hitfile\\.com\/\\w+","//a[contains(@href,'hitfile.com/')]");
  5408. addObsoleteHost("hulkfile\\.eu\/\\w+","//a[contains(@href,'hulkfile.eu/')]");
  5409. addObsoleteHost("i-filez\\.com\/\\w+","//a[contains(@href,'i-filez.com/')]");
  5410. addObsoleteHost("ifile\\.ws\/\\w+","//a[contains(@href,'ifile.ws/')]");
  5411. addObsoleteHost("kupload\\.org\/\\w+","//a[contains(@href,'kupload.org/')]");
  5412. addObsoleteHost("duckfile\\.net\/\\w+","//a[contains(@href,'duckfile.net/')]");
  5413. addObsoleteHost("packupload\\.com\/\\w+","//a[contains(@href,'packupload.com/')]");
  5414. addObsoleteHost("terafile\\.com\/\\w+","//a[contains(@href,'terafile.com/')]");
  5415. addObsoleteHost("terafile\\.co\/\\w+","//a[contains(@href,'terafile.co/')]");
  5416. addObsoleteHost("fileom\\.com\/\\w+","//a[contains(@href,'fileom.com/')]");
  5417. addObsoleteHost("luckyshare\\.net\/\\w+","//a[contains(@href,'luckyshare.net/')]");
  5418. addObsoleteHost("lemuploads\\.com\/\\w+","//a[contains(@href,'lemuploads.com/')]");
  5419. addObsoleteHost("limelinx\\.com\/\\w+","//a[contains(@href,'limelinx.com/')]");
  5420. addObsoleteHost("maxshare\\.pl\/\\w+","//a[contains(@href,'maxshare.pl/')]");
  5421. addObsoleteHost("megarelease\\.org\/\\w+","//a[contains(@href,'megarelease.org/')]");
  5422. addObsoleteHost("megashare\\.com\/\\w+","//a[contains(@href,'megashare.com/')]");
  5423. addObsoleteHost("minus\\.com\/\\w+","//a[contains(@href,'minus.com/')]");
  5424. addObsoleteHost("mlfat4arab\\.com\/\\w+","//a[contains(@href,'mlfat4arab.com/')]");
  5425. addObsoleteHost("multishare\\.cz\/\\w+","//a[contains(@href,'multishare.cz/')]");
  5426. addObsoleteHost("nirafile\\.com\/\\w+","//a[contains(@href,'nirafile.com/')]");
  5427. addObsoleteHost("ok2upload\\.com\/\\w+","//a[contains(@href,'ok2upload.com/')]");
  5428. addObsoleteHost("peejeshare\\.com\/\\w+","//a[contains(@href,'peejeshare.com/')]");
  5429. addObsoleteHost("premiuns\\.org\/\\w+","//a[contains(@href,'premiuns.org/')]");
  5430. addObsoleteHost("przeklej\\.net\/\\w+","//a[contains(@href,'przeklej.net/')]");
  5431. addObsoleteHost("qkup\\.net\/\\w+","//a[contains(@href,'qkup.net/')]");
  5432. addObsoleteHost("rapidupload\\.sk\/\\w+","//a[contains(@href,'rapidupload.sk/')]");
  5433. addObsoleteHost("rockdizfile\\.com\/\\w+","//a[contains(@href,'rockdizfile.com/')]");
  5434. addObsoleteHost("rocketfile\\.net\/\\w+","//a[contains(@href,'rocketfile.net/')]");
  5435. addObsoleteHost("share-now\\.net\/\\w+","//a[contains(@href,'share-now.net/')]");
  5436. addObsoleteHost("share76\\.com\/\\w+","//a[contains(@href,'share76.com/')]");
  5437. addObsoleteHost("sharebees\\.com\/\\w+","//a[contains(@href,'sharebees.com/')]");
  5438. addObsoleteHost("sharefiles\\.co\/\\w+","//a[contains(@href,'sharefiles.co/')]");
  5439. addObsoleteHost("slingfile\\.com\/\\w+","//a[contains(@href,'slingfile.com/')]");
  5440. addObsoleteHost("sms4file\\.com\/\\w+","//a[contains(@href,'sms4file.com/')]");
  5441. addObsoleteHost("space4file\\.com\/\\w+","//a[contains(@href,'space4file.com/')]");
  5442. addObsoleteHost("tigershare\\.net\/\\w+","//a[contains(@href,'tigershare.net/')]");
  5443. addObsoleteHost("toucansharing\\.com\/\\w+","//a[contains(@href,'toucansharing.com/')]");
  5444. addObsoleteHost("ubuntuone\\.com\/\\w+","//a[contains(@href,'ubuntuone.com/')]");
  5445. addObsoleteHost("unextfiles\\.com\/\\w+","//a[contains(@href,'unextfiles.com/')]");
  5446. addObsoleteHost("upaj\\.pl\/\\w+","//a[contains(@href,'upaj.pl/')]");
  5447. addObsoleteHost("upfile\\.biz\/\\w+","//a[contains(@href,'upfile.biz/')]");
  5448. addObsoleteHost("uploadbin\\.net\/\\w+","//a[contains(@href,'uploadbin.net/')]");
  5449. addObsoleteHost("uploadic\\.com\/\\w+","//a[contains(@href,'uploadic.com/')]");
  5450. addObsoleteHost("uploadinc\\.com\/\\w+","//a[contains(@href,'uploadinc.com/')]");
  5451. addObsoleteHost("uploading4u\\.eu\/\\w+","//a[contains(@href,'uploading4u.eu/')]");
  5452. addObsoleteHost("uploadjet\\.net\/\\w+","//a[contains(@href,'uploadjet.net/')]");
  5453. addObsoleteHost("uploadorb\\.com\/\\w+","//a[contains(@href,'uploadorb.com/')]");
  5454. addObsoleteHost("upthe\\.net\/\\w+","//a[contains(@href,'upthe.net/')]");
  5455. addObsoleteHost("uptorch\\.com\/\\w+","//a[contains(@href,'uptorch.com/')]");
  5456. addObsoleteHost("vidbox\\.yt\/\\w+","//a[contains(@href,'vidbox.yt/')]");
  5457. addObsoleteHost("videozer\\.com\/\\w+","//a[contains(@href,'videozer.com/')]");
  5458. addObsoleteHost("vreer\\.com\/\\w+","//a[contains(@href,'vreer.com/')]");
  5459. addObsoleteHost("wallobit\\.com\/\\w+","//a[contains(@href,'wallobit.com/')]");
  5460. addObsoleteHost("zooupload\\.com\/\\w+","//a[contains(@href,'zooupload.com/')]");
  5461. addObsoleteHost("xerver\\.co\/\\w+","//a[contains(@href,'xerver.co/')]");
  5462. addObsoleteHost("privatefiles\\.com\/\\w+","//a[contains(@href,'privatefiles.com/')]");
  5463. addObsoleteHost("bitshare\\.com\/\\w+","//a[contains(@href,'bitshare.com/')]");
  5464. addObsoleteHost("asfile\\.com\/\\w+","//a[contains(@href,'asfile.com/')]");
  5465. addObsoleteHost("billionuploads\\.com\/\\w+","//a[contains(@href,'billionuploads.com/')]");
  5466. addObsoleteHost("\\*{7,100}\/[\\w\\d]+","//a[contains(@href,'*******/')]");
  5467. addObsoleteHost("filesaur\\.com\/\\w+","//a[contains(@href,'filesaur.com/')]");
  5468. addObsoleteHost("rapidshare\\.com\/\\w+","//a[contains(@href,'rapidshare.com/')]");
  5469. addObsoleteHost("rapidshare\\.ru\/\\w+","//a[contains(@href,'rapidshare.ru/')]");
  5470. addObsoleteHost("filesfrog\\.net\/\\w+","//a[contains(@href,'filesfrog.net/')]");
  5471. addObsoleteHost("4savefile\\.com\/\\w+","//a[contains(@href,'4savefile.com/')]");
  5472. addObsoleteHost("bayfiles\\.com\/\\w+","//a[contains(@href,'bayfiles.com/')]");
  5473. addObsoleteHost("bayfiles\\.net\/\\w+","//a[contains(@href,'bayfiles.net/')]");
  5474. addObsoleteHost("dodane\\.pl\/\\w+","//a[contains(@href,'dodane.pl/')]");
  5475. addObsoleteHost("dotsemper\\.com\/\\w+","//a[contains(@href,'dotsemper.com/')]");
  5476. addObsoleteHost("egofiles\\.com\/\\w+","//a[contains(@href,'egofiles.com/')]");
  5477. addObsoleteHost("epicshare\\.net\/\\w+","//a[contains(@href,'epicshare.net/')]");
  5478. addObsoleteHost("fiberupload\\.net\/\\w+","//a[contains(@href,'fiberupload.net/')]");
  5479. addObsoleteHost("filemonkey\\.in\/\\w+","//a[contains(@href,'filemonkey.in/')]");
  5480. addObsoleteHost("filemonster\\.net\/\\w+","//a[contains(@href,'filemonster.net/')]");
  5481. addObsoleteHost("filepom\\.com\/\\w+","//a[contains(@href,'filepom.com/')]");
  5482. addObsoleteHost("filesbb\\.com\/\\w+","//a[contains(@href,'filesbb.com/')]");
  5483. addObsoleteHost("fileshareup\\.com\/\\w+","//a[contains(@href,'fileshareup.com/')]");
  5484. addObsoleteHost("filevice\\.com\/\\w+","//a[contains(@href,'filevice.com/')]");
  5485. addObsoleteHost("gigaup\\.fr\/\\w+","//a[contains(@href,'gigaup.fr/')]");
  5486. addObsoleteHost("inafile\\.com\/\\w+","//a[contains(@href,'inafile.com/')]");
  5487. addObsoleteHost("isavelink\\.com\/\\w+","//a[contains(@href,'isavelink.com/')]");
  5488. addObsoleteHost("loombo\\.com\/\\w+","//a[contains(@href,'loombo.com/')]");
  5489. addObsoleteHost("megafiles\\.se\/\\w+","//a[contains(@href,'megafiles.se/')]");
  5490. addObsoleteHost("migupload\\.com\/\\w+","//a[contains(@href,'migupload.com/')]");
  5491. addObsoleteHost("mydisc\\.net\/\\w+","//a[contains(@href,'mydisc.net/')]");
  5492. addObsoleteHost("nitrobits\\.com\/\\w+","//a[contains(@href,'nitrobits.com/')]");
  5493. addObsoleteHost("potload\\.com\/\\w+","//a[contains(@href,'potload.com/')]");
  5494. addObsoleteHost("redload\\.net\/\\w+","//a[contains(@href,'redload.net/')]");
  5495. addObsoleteHost("shareprofi\\.com\/\\w+","//a[contains(@href,'shareprofi.com/')]");
  5496. addObsoleteHost("sharesuper\\.info\/\\w+","//a[contains(@href,'sharesuper.info/')]");
  5497. addObsoleteHost("sinhro\\.net\/\\w+","//a[contains(@href,'sinhro.net/')]");
  5498. addObsoleteHost("speedfile\\.cz\/\\w+","//a[contains(@href,'speedfile.cz/')]");
  5499. addObsoleteHost("speedshare\\.org\/\\w+","//a[contains(@href,'speedshare.org/')]");
  5500. addObsoleteHost("storage.novoro\\.net\/\\w+","//a[contains(@href,'storage.novoro.net/')]");
  5501. addObsoleteHost("swankshare\\.com\/\\w+","//a[contains(@href,'swankshare.com/')]");
  5502. addObsoleteHost("swatupload\\.com\/\\w+","//a[contains(@href,'swatupload.com/')]");
  5503. addObsoleteHost("upafile\\.com\/\\w+","//a[contains(@href,'upafile.com/')]");
  5504. addObsoleteHost("uploadmachine\\.com\/\\w+","//a[contains(@href,'uploadmachine.com/')]");
  5505. addObsoleteHost("uploadsat\\.com\/\\w+","//a[contains(@href,'uploadsat.com/')]");
  5506. addObsoleteHost("upshared\\.com\/\\w+","//a[contains(@href,'upshared.com/')]");
  5507. addObsoleteHost("usefile\\.com\/\\w+","//a[contains(@href,'usefile.com/')]");
  5508. addObsoleteHost("yourfiles\\.to\/\\w+","//a[contains(@href,'yourfiles.to/')]");
  5509. addObsoleteHost("zomgupload\\.com\/\\w+","//a[contains(@href,'zomgupload.com/')]");
  5510. addObsoleteHost("~[\\w\\s~]*","//a[contains(@href,'//~') or contains(@href,'//www.~')]");
  5511. addObsoleteHost("filemup\\.com\/\\w+","//a[contains(@href,'filemup.com/')]");
  5512. addObsoleteHost("tuxfile\\.com\/\\w+","//a[contains(@href,'tuxfile.com/')]");
  5513. addObsoleteHost("ultramegabit\\.com\/\\w+","//a[contains(@href,'ultramegabit.com/')]");
  5514. addObsoleteHost("uploadto\\.us\/\\w+","//a[contains(@href,'uploadto.us/')]");
  5515. addObsoleteHost("filecore\\.co\\.nz\/\\w+","//a[contains(@href,'filecore.co.nz/')]");
  5516. addObsoleteHost("fileshare\\.in\\.ua\/\\w+","//a[contains(@href,'fileshare.in.ua/')]");
  5517. addObsoleteHost("firedrive\\.com\/\\w+","//a[contains(@href,'firedrive.com/')]");
  5518. addObsoleteHost("putlocker\\.com\/\\w+","//a[contains(@href,'putlocker.com/')]");
  5519. addObsoleteHost("lumfile\\.com\/\\w+","//a[contains(@href,'lumfile.com/')]");
  5520. addObsoleteHost("lumfile\\.se\/\\w+","//a[contains(@href,'lumfile.se/')]");
  5521. addObsoleteHost("lumfile\\.eu\/\\w+","//a[contains(@href,'lumfile.eu/')]");
  5522. addObsoleteHost("shared\\.com\/\\w+","//a[contains(@href,'shared.com/')]");
  5523. addObsoleteHost("stahovadlo\\.cz\/\\w+","//a[contains(@href,'stahovadlo.cz/')]");
  5524. addObsoleteHost("dizzcloud\\.com\/\\w+","//a[contains(@href,'dizzcloud.com/')]");
  5525. addObsoleteHost("ddlstorage\\.com\/\\w+","//a[contains(@href,'ddlstorage.com/')]");
  5526. addObsoleteHost("dataport\\.cz\/\\w+","//a[contains(@href,'dataport.cz/')]");
  5527. addObsoleteHost("daj\\.to\/\\w+","//a[contains(@href,'daj.to/')]");
  5528. addObsoleteHost("sockshare\\.com\/\\w+","//a[contains(@href,'sockshare.com/')]");
  5529. addObsoleteHost("2drive\\.net\/\\w+","//a[contains(@href,'2drive.net/')]");
  5530. addObsoleteHost("bl\\.st\/\\w+","//a[contains(@href,'bl.st/')]");
  5531. addObsoleteHost("uncapped-downloads\\.com\/\\w+","//a[contains(@href,'uncapped-downloads.com/')]");
  5532. addObsoleteHost("freakshare\\.net\/\\w+","//a[contains(@href,'freakshare.net/')]");
  5533. addObsoleteHost("freakshare\\.com\/\\w+","//a[contains(@href,'freakshare.com/')]");
  5534. addObsoleteHost("sharebeast\\.com\/\\w+","//a[contains(@href,'sharebeast.com/')]");
  5535. addObsoleteHost("tufiles\\.ru\/\\w+","//a[contains(@href,'tufiles.ru/')]");
  5536. addObsoleteHost("crisshare\\.com\/\\w+","//a[contains(@href,'crisshare.com/')]");
  5537. // obsolete start
  5538. }
  5539. //obsolete file hosts init end
  5540.  
  5541. function addFileHost(linkRegex, isAliveRegex, isDeadRegex, isUnavaRegex, xpathEx, tryLoop, ispremRegex)
  5542. {
  5543. var host = new Array(7);
  5544. host[0] = linkRegex;
  5545. host[1] = isAliveRegex;
  5546. host[2] = isDeadRegex;
  5547. host[3] = isUnavaRegex;
  5548. host[6] = ispremRegex;
  5549. host[4] = xpathEx;
  5550. tryLoop ? host[5] = true : host[5] = false;
  5551. http_file_hosts.push(host);
  5552. }
  5553. if (GM_getValue("Check_megafileupload_dot_com_links", false))
  5554. {
  5555. addFileHost(
  5556. "megafileupload\.com\/..\/file\/",
  5557. 'downloadbtn',
  5558. 'is not found',
  5559. 'optional--',
  5560. "//a[contains(@href,'megafileupload.com')]");
  5561. }
  5562. if (GM_getValue("Check_demo_dot_ovh_dot_eu_links", false))
  5563. {
  5564. addFileHost(
  5565. "demo\\.ovh\\.eu\/\\w+\/\\w+",
  5566. 'download\\.gif"',
  5567. 'p_point">',
  5568. 'optional--',
  5569. "//a[contains(@href,'demo.ovh.eu')]");
  5570. }
  5571. if (GM_getValue("Check_xkeepfile_dot_com_links", false))
  5572. {
  5573. addFileHost(
  5574. "xkeepfile\.com\/\\w+",
  5575. 'File has been found|Click here to download',
  5576. 'File cannot be found|class="error">',
  5577. 'optional--',
  5578. //'optional--',
  5579. "//a[contains(@href,'xkeepfile.com/') or contains(@href,'Gamesena.com/')]");
  5580. }
  5581. if (GM_getValue("Check_safelinking_dot_net_links", false))
  5582. {
  5583. addFileHost(
  5584. "safelinking\\.net\/p\/\\w+",
  5585. 'color:green;"',
  5586. 'color:(?:red|orange);"',
  5587. 'color:(?:grey|brown);"',
  5588. "//a[contains(@href,'safelinking.net/p/')]",
  5589. true);
  5590. }
  5591. /* if (GM_getValue("Check_ultramegabit_dot_com_links", false))
  5592. {
  5593. addFileHost(
  5594. "ultramegabit\\.com\/file\/details\/[\\w+-]",
  5595. 'name="recaptcha_response',
  5596. '="/folder/add"|>File (?:not found|restricted|has been deleted)|<title>ULTRAMEGABIT</title>',
  5597. 'btn-large btn-danger">|Account limitation notice|502 Bad Gateway',
  5598. "//a[contains(@href,'ultramegabit.com/file')]",
  5599. true);
  5600. } */
  5601. if (GM_getValue("Check_fastshare_dot_cz_links", false))
  5602. {
  5603. addFileHost(
  5604. "fastshare\\.cz\/\\d+\/\\w*",
  5605. 'dwntable">',
  5606. 'nebyla nalezena|nebola nájdená|nie została odnaleziona|color:red;font-weight:bold;border\\-style:dashed|<i class="fa fa-copyright"></i>',
  5607. 'optional--',
  5608. "//a[contains(@href,'fastshare.cz')]");
  5609. }
  5610. if (GM_getValue("Check_fastshare_dot_org_links", false))
  5611. {
  5612. addFileHost(
  5613. "[fF]ast[sS]hare\\.org\/download",
  5614. 'Download ">',
  5615. 'Diese Datei wurde wegen|wurde kein Dateiname',
  5616. 'optional--',
  5617. "//a[contains(@href,'fastshare.org/download') or contains(@href,'FastShare.org/download')]");
  5618. }
  5619. if (GM_getValue("Check_partage_dash_facile_dot_com_links", false))
  5620. {
  5621. addFileHost(
  5622. "partage-facile\.com\/\\w+",
  5623. 'class="title"><strong>|colspan="2"',
  5624. 'Page introuvable|class="alert-message',
  5625. 'optional--',
  5626. "//a[contains(@href,'partage-facile.com')]");
  5627. }
  5628. if (GM_getValue("Check_rapidgator_dot_net_links", false))
  5629. {
  5630. addFileHost(
  5631. "rapidgator\\.net\/file\/\\w+",
  5632. '/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',
  5633. 'Error 404|File not found|Error 500|Файл не найден|ファイルが探せませんでした|Fichier non trouvé|Archivo no encontrado|Select your plan',
  5634. 'optional--',
  5635. "//a[contains(@href,'rapidgator.net/file')]",
  5636. true
  5637. );
  5638. }
  5639. if (GM_getValue("Check_relink_dot_us_links", false))
  5640. {
  5641. addFileHost(
  5642. "relink\\.us\/(?:f\/\\w+|go\\.php\\?id=\\d+|view\\.php\\?id=\\d+)",
  5643. 'online_detail\\.png" alt="Status',
  5644. '(?:offline|partially)_detail\\.png" alt="Status|File deleted',
  5645. 'unknown_detail\\.png" alt="Status',
  5646. "//a[contains(@href,'relink.us/')]"
  5647. );
  5648. }
  5649. if (GM_getValue("Check_uploadstube_dot_de_links", false))
  5650. {
  5651. addFileHost(
  5652. "uploadstube\\.de\/download\\.php\\?file=\\d+",
  5653. 'div id="dl"',
  5654. 'Sie haben den Link falsch',
  5655. 'optional--',
  5656. "//a[contains(@href,'uploadstube.de/download.php?file=')]"
  5657. );
  5658. }
  5659. if (GM_getValue("Check_flyfiles_dot_net_links", false))
  5660. {
  5661. addFileHost(
  5662. "flyfiles\\.net\/\\w+",
  5663. 'download_button"|"Download file"',
  5664. 'File not found!|Файл не найден',
  5665. 'optional--',
  5666. "//a[contains(@href,'flyfiles.net/')]"
  5667. );
  5668. }
  5669. if (GM_getValue("Check_wikiupload_dot_com_links", false))
  5670. {
  5671. addFileHost(
  5672. "wikiupload\\.com\/\\w+",
  5673. 'download-button">',
  5674. 'Sorry, File not found',
  5675. 'optional--',
  5676. "//a[contains(@href,'wikiupload.com/')]"
  5677. );
  5678. }
  5679. if (GM_getValue("Check_hostuje_dot_net_links", false))
  5680. {
  5681. addFileHost(
  5682. "hostuje\\.net\/file\\.php\\?id=\\w+",
  5683. 'file\\.php">|Pobierz Plik',
  5684. 'Podany plik nie zosta',
  5685. 'optional--',
  5686. "//a[contains(@href,'hostuje.net/file')]"
  5687. );
  5688. }
  5689. if (GM_getValue("Check_gettyfile_dot_ru_links", false))
  5690. {
  5691. addFileHost(
  5692. "gettyfile\\.ru\/\\d+",
  5693. 'download\\.gif border',
  5694. '<center><font size="3">',
  5695. 'optional--',
  5696. "//a[contains(@href,'gettyfile.ru/')]"
  5697. );
  5698. }
  5699. if (GM_getValue("Check_turbobit_dot_ru_links", false))
  5700. {
  5701. addFileHost(
  5702. "(?:turbob1t|failoobmenik|filesmail|firebit|dlbit|files\\.china\\-gsm|3aka4aem|file\\.piratski|mnogofiles|links-free|turbo-bit|turbosfiles)\\.\\w+\/\\w+",
  5703. 'download\\-file">',
  5704. 'col-1">\\s*<h1>',
  5705. 'optional--',
  5706. "//a[contains(@href,'turbobit.ru/') or contains(@href,'filesmail.ru/') or contains(@href,'failoobmenik.ru/')"+
  5707. " or contains(@href,'firebit.in/') or contains(@href,'dlbit.net/') or contains(@href,'files.china-gsm.ru/') or contains(@href,'3aka4aem.ru/')"+
  5708. " or contains(@href,'file.piratski.ru/') or contains(@href,'mnogofiles.com/') or contains(@href,'links-free.ru/')"+
  5709. " or contains(@href,'turbo-bit.ru/') or contains(@href,'turbosfiles.ru/')]"
  5710. );
  5711. }
  5712. if (GM_getValue("Check_data_dot_hu_links", false))
  5713. {
  5714. addFileHost(
  5715. "data\\.hu\/get\/\\d+\/",
  5716. 'download_box_button',
  5717. 'missing\\.php',
  5718. 'optional--',
  5719. "//a[contains(@href,'data.hu/get')]",
  5720. true
  5721. );
  5722. }
  5723. if (GM_getValue("Check_filesmelt_dot_com_links", false))
  5724. {
  5725. addFileHost(
  5726. "filesmelt\\.com\/dl\/\\w+",
  5727. '(Your download is ready|Download File)',
  5728. 'Sorry, but your',
  5729. 'optional--',
  5730. "//a[contains(@href,'filesmelt.com/dl')]"
  5731. );
  5732. }
  5733. if (GM_getValue("Check_indowebster_dot_com_links", false))
  5734. {
  5735. addFileHost(
  5736. "(?:files\\.)?indowebster\\.com\/download\/\\w+\/",
  5737. 'premiumBtn"',
  5738. 'errorMessage"',
  5739. 'optional--',
  5740. "//a[contains(@href,'indowebster.com/download')]"
  5741. );
  5742. }
  5743. if (GM_getValue("Check_superload_dot_cz_links", false))
  5744. {
  5745. addFileHost(
  5746. "superload\\.cz\/dl\/\\w+",
  5747. 'icon-download">',
  5748. 'soubor nebyl nalezen',
  5749. 'optional--',
  5750. "//a[contains(@href,'superload.cz/dl')]"
  5751. );
  5752. }
  5753. if (GM_getValue("Check_hulkfile_dot_eu_links", false))
  5754. {
  5755. addFileHost(
  5756. "(?:w\\.hulkfile\\.com|hulkfile\\.eu)\/\\w+",
  5757. 'op" value="download',
  5758. 'class="err">|width:500px;text-align:left;">',
  5759. 'optional--',
  5760. "//a[contains(@href,'hulkfile.')]"
  5761. );
  5762. }
  5763. if (GM_getValue("Check_easybytez_dot_com_links", false))
  5764. {
  5765. addFileHost(
  5766. "easybytez\\.com\/\\w+",
  5767. 'op" value="download',
  5768. 'stop_error\\.gif',
  5769. 'optional--',
  5770. "//a[contains(@href,'easybytez.com/')]"
  5771. );
  5772. }
  5773. if (GM_getValue("Check_filestore_dot_com_dot_ua_links", false))
  5774. {
  5775. addFileHost(
  5776. "filestore\\.com\\.ua\/\\?d=\\w+",
  5777. 'tdrow1>',
  5778. 'class=warn',
  5779. 'optional--',
  5780. "//a[contains(@href,'filestore.com.ua/?d=')]"
  5781. );
  5782. }
  5783. if (GM_getValue("Check_netkups_dot_com_links", false))
  5784. {
  5785. addFileHost(
  5786. "netkups\\.com\/\\?d=\\w+",
  5787. 'submit">Continue',
  5788. 'page">File not found|deleted due to inactivity',
  5789. 'optional--',
  5790. "//a[contains(@href,'netkups.com/?d=')]"
  5791. );
  5792. }
  5793. if (GM_getValue("Check_openfile_dot_ru_links", false))
  5794. {
  5795. addFileHost(
  5796. "openfile\\.ru\/(?:video\/|)\\d+",
  5797. 'videobox_left">',
  5798. 'blog_title">|not found on this server',
  5799. 'optional--',
  5800. "//a[contains(@href,'openfile.ru/')]"
  5801. );
  5802. }
  5803. if (GM_getValue("Check_extmatrix_dot_com_links", false))
  5804. {
  5805. addFileHost(
  5806. "extmatrix\\.com\/files\/\\w+",
  5807. 'div class="success"',
  5808. 'div class="error"',
  5809. 'optional--',
  5810. "//a[contains(@href,'extmatrix.com/files')]"
  5811. );
  5812. }
  5813. if (GM_getValue("Check_sendfiles_dot_nl_links", false))
  5814. {
  5815. addFileHost(
  5816. "sendfiles\\.nl\/download.aspx\\?ID=\\w+",
  5817. 'content_lnkDownload',
  5818. 'error\\.aspx\\?',
  5819. 'optional--',
  5820. "//a[contains(@href,'sendfiles.nl/download.aspx')]"
  5821. );
  5822. }
  5823. /* if (GM_getValue("Check_sockshare_dot_com_links", false))
  5824. {
  5825. addFileHost(
  5826. "sockshare\\.com\/file\/\\w+",
  5827. 'choose_speed">',
  5828. 'message t_0\'>',
  5829. 'optional--',
  5830. "//a[contains(@href,'sockshare.com/file')]"
  5831. );
  5832. } */
  5833. if (GM_getValue("Check_yourfilestore_dot_com_links", false))
  5834. {
  5835. addFileHost(
  5836. "yourfilestore\\.com\/download\/\\d+\/",
  5837. 'download_data">',
  5838. 'may have been deleted|<h1>Sorry!<\/h1>',
  5839. 'optional--',
  5840. "//a[contains(@href,'yourfilestore.com/download')]"
  5841. );
  5842. }
  5843. if (GM_getValue("Check_nekaka_dot_com_links", false))
  5844. {
  5845. addFileHost(
  5846. "nekaka\\.com\/d\/[\\w-]+",
  5847. 'downloadForm">',
  5848. 'invalid file link',
  5849. 'optional--',
  5850. "//a[contains(@href,'nekaka.com/d')]"
  5851. );
  5852. }
  5853. if (GM_getValue("Check_filebig_dot_net_links", false))
  5854. {
  5855. addFileHost(
  5856. "filebig\\.net\/files\/\\w+",
  5857. 'downloadFile">',
  5858. '<p>File not found<\/p>',
  5859. 'optional--',
  5860. "//a[contains(@href,'filebig.net/files')]"
  5861. );
  5862. }
  5863. if (GM_getValue("Check_gamefront_dot_com_links", false))
  5864. {
  5865. addFileHost(
  5866. "files\\.filefront\\.com\/\/;\\d+;;",
  5867. 'downloadLink">',
  5868. 'File not found, you',
  5869. 'optional--',
  5870. "//a[contains(@href,'files.filefront.com')]"
  5871. );
  5872.  
  5873. addFileHost(
  5874. "gamefront\\.com\/files\/\\d+",
  5875. 'downloadLink">',
  5876. 'File not found, you',
  5877. 'optional--',
  5878. "//a[contains(@href,'gamefront.com/files')]"
  5879. );
  5880. }
  5881. if (GM_getValue("Check_hyperfileshare_dot_com_links", false))
  5882. {
  5883. addFileHost(
  5884. "(?:download\\.|)hyperfileshare\\.com\/(?:download\\.php\\?code=|d\/)\\w+",
  5885. 'dnlLnk"',
  5886. 'already been deleted',
  5887. 'optional--',
  5888. "//a[contains(@href,'hyperfileshare.com/download') or contains(@href,'hyperfileshare.com/d')]"
  5889. );
  5890. }
  5891. if (GM_getValue("Check_hellupload_dot_com_links", false))
  5892. {
  5893. addFileHost(
  5894. "hellupload\\.com\/\\w+",
  5895. '<h3>Download File<br',
  5896. 'id="podstrona">|AVOID_IE_BUG',
  5897. 'optional--',
  5898. "//a[contains(@href,'hellupload.com/')]"
  5899. );
  5900. }
  5901. if (GM_getValue("Check_free_dash_uploading_dot_com_links", false))
  5902. {
  5903. addFileHost(
  5904. "free\\-uploading\\.com\/\\w+",
  5905. 'op" value="download',
  5906. 'class="err">|width:500px;text-align:left;">',
  5907. 'optional--',
  5908. "//a[contains(@href,'free-uploading.com/')]"
  5909. );
  5910. }
  5911. if (GM_getValue("Check_fileape_dot_com_links", false))
  5912. {
  5913. addFileHost(
  5914. "fileape\\.com\/download\\-",
  5915. 'button_dl\\.png',
  5916. 'does not exist\\.',
  5917. 'optional--',
  5918. "//a[contains(@href,'fileape.com/')]"
  5919. );
  5920. }
  5921. if (GM_getValue("Check_uppit_dot_com_links", false))
  5922. {
  5923. addFileHost(
  5924. "(?:uppit\\.com|up\\.ht)\/\\w+",
  5925. 'op" value="download',
  5926. 'class="err">|style="width:500px;text-align:left;"|fish-404\\.png"',
  5927. 'optional--',
  5928. "//a[contains(@href,'up.ht/') or contains(@href,'uppit.com/')]",
  5929. true
  5930. );
  5931. }
  5932. if (GM_getValue("Check_nosupload_dot_com_links", false))
  5933. {
  5934. addFileHost(
  5935. "nosupload\\.com\/(?:\\?d=)?\\w+",
  5936. 'op" value="download',
  5937. '>File Not Found<',
  5938. 'optional--',
  5939. "//a[contains(@href,'nosupload.com')]",
  5940. true
  5941. );
  5942. }
  5943. if (GM_getValue("Check_filesin_dot_com_links", false))
  5944. {
  5945. addFileHost(
  5946. "filesin\\.com\/\\w+\/download\\.html",
  5947. 'download_area">',
  5948. 'error_note">',
  5949. 'optional--',
  5950. "//a[contains(@href,'filesin.com/')]",
  5951. true
  5952. );
  5953. }
  5954. if (GM_getValue("Check_nowdownload_dot_eu_links", false))
  5955. {
  5956. addFileHost(
  5957. "nowdownload\\.eu\/dl\/\\w+",
  5958. 'alert-success"',
  5959. 'This file does not exist!',
  5960. 'The file is being transfered',
  5961. "//a[contains(@href,'nowdownload.eu/dl')]"
  5962. );
  5963. }
  5964. if (GM_getValue("Check_axifile_dot_com_links", false))
  5965. {
  5966. addFileHost(
  5967. "axifile\\.com(?:\/\w(2))?\/\\??\\w+",
  5968. 'Dbutton_big"',
  5969. 'download\\-error\\.php',
  5970. 'optional--',
  5971. "//a[contains(@href,'axifile.com/')]"
  5972. );
  5973. }
  5974. if (GM_getValue("Check_hulkshare_dot_com_links", false))
  5975. {
  5976. addFileHost(
  5977. "hulkshare\.com\/\\w+",
  5978. 'download\.sam\.png|This is a private file|id="filename',
  5979. 'File does not exist|fingerprint protected copyright',
  5980. 'optional--',
  5981. "//a[contains(@href,'hulkshare.com')]"
  5982. );
  5983. }
  5984. if (GM_getValue("Check_turbobit_dot_net_links", false)) //folders
  5985. {
  5986. addFileHost(
  5987. "turbobit\\.(?:net|pl)\/download\/folder\/\\d+",
  5988. 'col-1">\\s*<s',
  5989. 'col-1">\\s*<h',
  5990. 'optional--',
  5991. "//a[contains(@href,'turbobit.') and contains(@href,'download/folder')]"
  5992. );
  5993. }
  5994. if (GM_getValue("Check_turbobit_dot_net_links", false)) //folders
  5995. {
  5996. addFileHost(
  5997. "turbobit\\.(?:net|pl)",
  5998. 'id="download-gate-info',
  5999. 'afterWait()',
  6000. 'optional--',
  6001. "//a[contains(@href,'turbobit.net')]"
  6002. );
  6003. }
  6004. if (GM_getValue("Check_hitfile_dot_net_links", false)) //folders
  6005. {
  6006. addFileHost(
  6007. "hitfile\\.net\/download\/folder\/\\d+",
  6008. 'content">\\s*<s',
  6009. 'content">\\s*<h',
  6010. 'optional--',
  6011. "//a[contains(@href,'hitfile.net/download/folder')]"
  6012. );
  6013. }
  6014. if (GM_getValue("Check_netload_dot_in_links", false)) //folders
  6015. {
  6016. addFileHost(
  6017. "netload\\.in\/folder\\.php\\?folder_id=\\w+",
  6018. 'images\/online\\.gif',
  6019. 'InPage_Error"',
  6020. 'optional--',
  6021. "//a[contains(@href,'netload.in/folder.php')]"
  6022. );
  6023. }
  6024. if (GM_getValue("Check_movshare_dot_net_links", false))
  6025. {
  6026. addFileHost(
  6027. "movshare\\.net\\/video\\/\\w+",
  6028. 'optional--"',
  6029. 'no longer exists',
  6030. 'optional--',
  6031. "//a[contains(@href,'movshare.net/video')]"
  6032. );
  6033. }
  6034. if (GM_getValue("Check_plunder_dot_com_links", false))
  6035. {
  6036. addFileHost(
  6037. "plunder\.com\/\\w+",
  6038. 'x\/download\\.gif',
  6039. '404 - File or directory not found.',
  6040. 'optional--',
  6041. "//a[contains(@href,'plunder.com')]"
  6042. );
  6043. }
  6044. if (GM_getValue("Check_mafiastorage_dot_com_links", false))
  6045. {
  6046. addFileHost(
  6047. "mafiastorage\\.com\/\\w+",
  6048. 'op" value="download',
  6049. 'class="err">|style="width:500px;text-align:left;"',
  6050. 'optional--',
  6051. "//a[contains(@href,'mafiastorage.com/')]"
  6052. );
  6053. }
  6054. if (GM_getValue("Check_uploadspace_dot_pl_links", false))
  6055. {
  6056. addFileHost(
  6057. "uploadspace\.pl\/plik\\w+",
  6058. 'Downloading .+? \\|',
  6059. 'Downloading a file',
  6060. 'optional--',
  6061. "//a[contains(@href,'uploadspace.pl/plik')]"
  6062. );
  6063. }
  6064. if (GM_getValue("Check_uploadingit_dot_com_links", false))
  6065. {
  6066. addFileHost(
  6067. "uploadingit\\.com\/file\/\\w+",
  6068. 'downloadTitle">',
  6069. 'deleteContent">',
  6070. 'optional--',
  6071. "//a[contains(@href,'uploadingit.com/file')]"
  6072. );
  6073. }
  6074. if (GM_getValue("Check_rghost_dot_net_links", false))
  6075. {
  6076. addFileHost(
  6077. "rghost\.(?:net|ru)\/(?:|private\/)\\d+",
  6078. 'download_link|btn large download',
  6079. 'file is restricted|File is deleted|503 Service Unavailable',
  6080. 'File was deleted',
  6081. "//a[contains(@href,'rghost.')]"
  6082. );
  6083. }
  6084. if (GM_getValue("Check_xdisk_dot_cz_links", false))
  6085. {
  6086. addFileHost(
  6087. "xdisk\\.cz\/(?:..\/)?download\\.php\\?id=\\w+",
  6088. '">Staženo:\\s*<\/span>',
  6089. 'Soubor, který hledáte nenalezen',
  6090. 'optional--',
  6091. "//a[contains(@href,'xdisk.cz/')]"
  6092. );
  6093. }
  6094. if (GM_getValue("Check_expressleech_dot_com_links", false))
  6095. {
  6096. addFileHost(
  6097. "expressleech\.com\/\\w+",
  6098. 'src="/img/Download.gif"|var _gaq =',
  6099. 'var rr =|403 Forbidden',
  6100. 'optional--',
  6101. "//a[contains(@href,'expressleech.com')]");
  6102. }
  6103. if (GM_getValue("Check_2downloadz_dot_com_links", false))
  6104. {
  6105. addFileHost(
  6106. "2downloadz\.com\/\\w+",
  6107. 'color="#848484|src="images/Download.png"|color:#238DCA',
  6108. 'color="#006DCC|File error',
  6109. 'optional--',
  6110. "//a[contains(@href,'2downloadz.com')]");
  6111. }
  6112. if (GM_getValue("Check_mightyupload_dot_com_links", false))
  6113. {
  6114. addFileHost(
  6115. "mightyupload\.com\/\\w+",
  6116. 'background:#ccc;text-align|CONTENT="Download File"',
  6117. 'style="background:#eee|var rr =|File Not Found',
  6118. 'error-code">1010',
  6119. "//a[contains(@href,'mightyupload.com')]");
  6120. }
  6121. if (GM_getValue("Check_k2s_dot_cc_links", false))
  6122. {
  6123. addFileHost(
  6124. "k2s\.cc\/file\/\\w+",
  6125. 'Click here for slow download with|class="btn" id="yw0"|onclick="download',
  6126. 'Error 404|class="errorSummary">|this file is blocked or deleted|>404 Not Found<|To avoid damaged files|This file is no longer available',
  6127. 'please try later',
  6128. //'optional--',
  6129. "//a[contains(@href,'k2s.cc')]");
  6130. }
  6131. if (GM_getValue("Check_keep2share_dot_cc_links", false))
  6132. {
  6133. addFileHost(
  6134. "keep2share\.cc\/file\/\\w+",
  6135. 'Click here for slow download with|class="btn" id="yw0"|onclick="download',
  6136. 'Error 404|class="errorSummary">|this file is blocked or deleted|>404 Not Found<|To avoid damaged files|This file is no longer available',
  6137. 'please try later',
  6138. //'premium only',
  6139. "//a[contains(@href,'keep2share.cc')]");
  6140. }
  6141. if (GM_getValue("Check_keep2s_dot_cc_links", false))
  6142. {
  6143. addFileHost(
  6144. "keep2s\.cc\/file\/\\w+",
  6145. 'Click here for slow download with|class="btn" id="yw0"|onclick="download',
  6146. 'Error 404|class="errorSummary">|this file is blocked or deleted|>404 Not Found<|To avoid damaged files|This file is no longer available',
  6147. 'please try later',
  6148. //'optional--',
  6149. "//a[contains(@href,'keep2s.cc')]");
  6150. }
  6151. if (GM_getValue("Check_keep2share_dot_com_links", false))
  6152. {
  6153. addFileHost(
  6154. "keep2share\.com\/file\/\\w+",
  6155. 'Click here for slow download with|class="btn" id="yw0"|onclick="download',
  6156. 'Error 404|class="errorSummary">|this file is blocked or deleted|>404 Not Found<|To avoid damaged files|This file is no longer available',
  6157. 'please try later',
  6158. //'optional--',
  6159. "//a[contains(@href,'keep2share.com')]");
  6160. }
  6161. if (GM_getValue("Check_anysend_dot_com_links", false))
  6162. {
  6163. addFileHost(
  6164. "anysend\.com\/\\w+",
  6165. 'var openCalled=false;|content="noindex"',
  6166. '_trackPageview',
  6167. 'optional--',
  6168. "//a[contains(@href,'anysend.com')]");
  6169. }
  6170. if (GM_getValue("Check_datafile_dot_com_links", false))
  6171. {
  6172. addFileHost(
  6173. "datafile\.com\/\\w+",
  6174. 'var captchaPanel',
  6175. 'ErrorCode|ErrorCode 0: Invalid Link|btn-orange" href="#"', //class="error-msg"
  6176. 'You are downloading another file at this moment|You exceeded your free|Site Maintenance',
  6177. //'optional--',
  6178. "//a[contains(@href,'datafile.com')]",
  6179. true);
  6180. }
  6181. if (GM_getValue("Check_upstore_dot_net_links", false))
  6182. {
  6183. addFileHost(
  6184. "upstore\.net\/\\w+",
  6185. 'style="margin-top: 20px">|style="text-align:center; margin: 20px 0 100px;">',
  6186. 'File not found|onload="redirect|class="error">',
  6187. 'optional--',
  6188. "//a[contains(@href,'upstore.net')]");
  6189. }
  6190. if (GM_getValue("Check_upsto_dot_re_links", false))
  6191. {
  6192. addFileHost(
  6193. "upsto\.re\/\\w+",
  6194. 'style="margin-top: 20px">|style="text-align:center; margin: 20px 0 100px;">',
  6195. 'File not found|onload="redirect|class="error">',
  6196. 'optional--',
  6197. "//a[contains(@href,'upsto.re')]");
  6198. }
  6199. if (GM_getValue("Check_speedy_dot_sh_links", false))
  6200. {
  6201. addFileHost(
  6202. "speedy\.sh\/\\w+",
  6203. 'bgcolor=#eeeeee|class="addthis',
  6204. 'File not found|downloadfilenamenotfound>',
  6205. 'optional--',
  6206. "//a[contains(@href,'speedy.sh')]");
  6207. }
  6208. if (GM_getValue("Check_sanshare_dot_com_links", false))
  6209. {
  6210. addFileHost(
  6211. "sanshare\.com\/\\w+",
  6212. 'SANSHARE_TOPBANNER|offset-1"><h3><b>Download File',
  6213. 'offset-1"><b>File Not Found<|width:500px;text-align',
  6214. 'optional--',
  6215. "//a[contains(@href,'sanshare.com')]");
  6216. }
  6217. if (GM_getValue("Check_kingfiles_dot_net_links", false))
  6218. {
  6219. addFileHost(
  6220. "kingfiles\.net\/\\w+",
  6221. 'img/spriteBanner.png|If you are the owner of this file',
  6222. 'var rr =|"description" CONTENT="Download File ">|<div style="width:500px;text-align:left;">|The file was removed by administrator',
  6223. 'optional--',
  6224. "//a[contains(@href,'kingfiles.net')]");
  6225. }
  6226. if (GM_getValue("Check_uploadhero_dot_co_links", false))
  6227. {
  6228. addFileHost(
  6229. "uploadhero\\.co\/dl\/\\w+",
  6230. 'class="nom_de_fichier"|Unlimited downloads|Estimated download time|Lien de téléchargement"',
  6231. 'not available on our server|pas disponible sur nos serveurs|Le lien du fichier est incorrect',
  6232. 'optional--',
  6233. "//a[contains(@href,'uploadhero.co/dl')]"
  6234. );
  6235. }
  6236. if (GM_getValue("Check_secureupload_dot_eu_links", false))
  6237. {
  6238. addFileHost(
  6239. "secureupload\\.eu\/\\w+",
  6240. 'Downloading',
  6241. 'cannot be found|File Not Found|could not be found',
  6242. 'optional--',
  6243. "//a[contains(@href,'secureupload.eu')]"
  6244. );
  6245. }
  6246. if (GM_getValue("Check_ge_dot_tt_links", false))
  6247. {
  6248. addFileHost(
  6249. "ge\.tt\/\\w+",
  6250. 'downloads pic',
  6251. 'is NOT the same as',
  6252. 'optional--',
  6253. "//a[contains(@href,'ge.tt')]");
  6254. }
  6255. if (GM_getValue("Check_filefactory_dot_com_links", false))
  6256. {
  6257. addFileHost(
  6258. "filefactory\.com\/\\w+",
  6259. 'div id="file_holder"|download.css',
  6260. 'File Removed|Invalid Download Link|File Unavailable|Server Failed|Datei entfernt|This file has been removed|Invalid Download Link|class="alert alert-danger">',
  6261. 'Server Maintenance|temporarily overloaded',
  6262. //'optional--',
  6263. "//a[contains(@href,'filefactory.com')]");
  6264. }
  6265. if (GM_getValue("Check_filesflash_dot_net_links", false))
  6266. {
  6267. addFileHost(
  6268. "filesflash\.net\/\\w+",
  6269. 'align:right">Filename:',
  6270. 'class="msg">',
  6271. 'optional--',
  6272. "//a[contains(@href,'filesflash.net')]");
  6273. }
  6274. if (GM_getValue("Check_rapidgator_dot_net_links", false)) //folders
  6275. {
  6276. addFileHost(
  6277. "rapidgator\\.net\/folder\/\\w+",
  6278. 'href="/folder/',
  6279. 'class="empty|Folder not found|Carpeta no encontrada|Dossier non trouvé|Папка не найдена',
  6280. 'optional--',
  6281. "//a[contains(@href,'rapidgator.net/folder')]",
  6282. true
  6283. );
  6284. }
  6285. if (GM_getValue("Check_salefiles_dot_com_links", false))
  6286. {
  6287. addFileHost(
  6288. "salefiles\.com\/\\w+",
  6289. '<Title>Download|CONTENT="Download',
  6290. 'font:15px Arial|background:#eee;',
  6291. 'optional--',
  6292. "//a[contains(@href,'salefiles.com')]");
  6293. }
  6294. if (GM_getValue("Check_megairon_dot_net_links", false))
  6295. {
  6296. addFileHost(
  6297. "megairon\.net\/\\w+",
  6298. 'border: 5px #ffeb90 solid;',
  6299. 'CONTENT="Download File ">|var rr =',
  6300. 'optional--',
  6301. "//a[contains(@href,'megairon.net')]");
  6302. }
  6303. if (GM_getValue("Check_datoid_dot_cz_links", false))
  6304. {
  6305. addFileHost(
  6306. "datoid\.cz\/\\w+",
  6307. 'btn-download|class="icon-download-large"',
  6308. 'Stránka nenalezena|error-404|Soubor byl zablokován',
  6309. 'optional--',
  6310. "//a[contains(@href,'datoid.cz')]");
  6311. }
  6312. if (GM_getValue("Check_stiahni_dot_si_links", false))
  6313. {
  6314. addFileHost(
  6315. "stiahni\.si\/\\w+",
  6316. 'report_icon.png"|slow-download-button',
  6317. 'none.png|deleted|<h2>Error 500</h2>',
  6318. 'optional--',
  6319. "//a[contains(@href,'stiahni.si')]");
  6320. }
  6321. if (GM_getValue("Check_cloudstor_dot_es_links", false))
  6322. {
  6323. addFileHost(
  6324. "cloudstor\.es\/\\w+",
  6325. '"btn_download"',
  6326. '404: Page Not Found',
  6327. 'optional--',
  6328. "//a[contains(@href,'cloudstor.es')]");
  6329. }
  6330. if (GM_getValue("Check_streamfile_dot_com_links", false))
  6331. {
  6332. addFileHost(
  6333. "streamfile\.com\/\\w+",
  6334. 'class="btn',
  6335. 'class="green-btn',
  6336. 'optional--',
  6337. "//a[contains(@href,'streamfile.com')]");
  6338. }
  6339. if (GM_getValue("Check_eyesfile_dot_ca_links", false))
  6340. {
  6341. addFileHost(
  6342. "eyesfile\.ca\/\\w+",
  6343. 'value="Get Link',
  6344. 'var rr =',
  6345. 'optional--',
  6346. "//a[contains(@href,'eyesfile.ca')]");
  6347. }
  6348. if (GM_getValue("Check_filemoney_dot_com_links", false))
  6349. {
  6350. addFileHost(
  6351. "filemoney\.com\/\\w+",
  6352. 'og:title',
  6353. '404 Not Found|<Title>FileMoney|File Not Found|class="err">DMCA</b>',
  6354. 'error-code">1010',
  6355. "//a[contains(@href,'filemoney.com')]");
  6356. }
  6357. if (GM_getValue("Check_uploadboy_dot_com_links", false))
  6358. {
  6359. addFileHost(
  6360. "uploadboy\.com\/\\w+",
  6361. 'width="740">|method_free',
  6362. 'var rr =|background:#ffffff|not be found|file was removed',
  6363. 'optional--',
  6364. "//a[contains(@href,'uploadboy.com')]");
  6365. }
  6366. if (GM_getValue("Check_speedshare_dot_eu_links", false))
  6367. {
  6368. addFileHost(
  6369. "speedshare\.eu\/\\w+",
  6370. 'favicon.png|color:#3d87c0|cross.png"',
  6371. 'var rr =|File Not Found|style="background:#eee',
  6372. 'optional--',
  6373. "//a[contains(@href,'speedshare.eu')]");
  6374. }
  6375. if (GM_getValue("Check_unlimitzone_dot_com_links", false))
  6376. {
  6377. addFileHost(
  6378. "unlimitzone\.com\/\\w+",
  6379. 'name="method_free',
  6380. 'var rr =|File Not Found|removed by administrator|class="err">|Файл не найден|Datei nicht gefunden|fichier non trouve|Dosya bulunamadД±|Nie znaleziono pliku|ไม่พบไฟล์ที่ต้องการ|Nie znaleziono pliku|Archive no Encontrado|ファイルが見つかりません。|File nem talГЎlhatГі|File tidak ditemukan|Bestand niet gevonden',
  6381. 'optional--',
  6382. "//a[contains(@href,'unlimitzone.com')]");
  6383. }
  6384. if (GM_getValue("Check_rioupload_dot_com_links", false))
  6385. {
  6386. addFileHost(
  6387. "rioupload\.com\/\\w+",
  6388. 'sell.jpg',
  6389. 'var rr =',
  6390. 'optional--',
  6391. "//a[contains(@href,'rioupload.com')]");
  6392. }
  6393. if (GM_getValue("Check_rg_dot_to_links", false))
  6394. {
  6395. addFileHost(
  6396. "rg\.to\/\\w+",
  6397. '/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',
  6398. 'Error 404|File not found|Select your plan',
  6399. 'optional--',
  6400. //'optional--',
  6401. "//a[contains(@href,'rg.to')]");
  6402. }
  6403. if (GM_getValue("Check_jumbofiles_dot_org_links", false))
  6404. {
  6405. addFileHost(
  6406. "jumbofiles\.org\/\\w+",
  6407. 'H71C5.png|class="downloadtitle">',
  6408. 'var swfu|ViewSourceBIN.png',
  6409. 'optional--',
  6410. "//a[contains(@href,'jumbofiles.org')]");
  6411. }
  6412. if (GM_getValue("Check_fshare_dot_vn_links", false))
  6413. {
  6414. addFileHost(
  6415. "fshare\\.vn\/file\/\\w+",
  6416. 'action="#download"|left; width: 330px;">|class="bt_down"',
  6417. 'không tồn tại|class="color_red m_t_50"',
  6418. 'optional--',
  6419. "//a[contains(@href,'fshare.vn/file')]",
  6420. true
  6421. );
  6422. }
  6423. if (GM_getValue("Check_spaceforfiles_dot_com_links", false))
  6424. {
  6425. addFileHost(
  6426. "spaceforfiles\.com\/\\w+",
  6427. 'btn_slowspeed_b.jpg|value="download1|class="btn_blue',
  6428. 'var rr =|AVOID_IE_BUG',
  6429. 'optional--',
  6430. "//a[contains(@href,'spaceforfiles.com')]");
  6431. }
  6432. if (GM_getValue("Check_google_dot_com_links", false))
  6433. {
  6434. addFileHost(
  6435. "google\\.com\/file\/\\w+",
  6436. 'content="!">|color:#2d2d2d',
  6437. '12pt; font-weight:|class="errorMessage"|F0F6FF',
  6438. 'optional--',
  6439. "//a[contains(@href,'google.com/file')]",
  6440. true
  6441. );
  6442. }
  6443. if (GM_getValue("Check_google_dot_com_links", false))
  6444. {
  6445. addFileHost(
  6446. "docs.google.com\/\\w+",
  6447. 'content="!">|color:#2d2d2d',
  6448. '12pt; font-weight:|class="errorMessage"|F0F6FF|Error 404',
  6449. 'optional--',
  6450. "//a[contains(@href,'docs.google.com')]",
  6451. true
  6452. );
  6453. }
  6454. if (GM_getValue("Check_google_dot_com_links", false))
  6455. {
  6456. addFileHost(
  6457. "drive.google.com\/\\w+",
  6458. 'content="!">|color:#2d2d2d|id="uc-download-link',
  6459. '12pt; font-weight:|class="errorMessage"|F0F6FF|Error 404',
  6460. 'optional--',
  6461. "//a[contains(@href,'drive.google.com')]",
  6462. true
  6463. );
  6464. }
  6465. if (GM_getValue("Check_up_dot_media1fire_dot_com_links", false))
  6466. {
  6467. addFileHost(
  6468. "up.media1fire\.com\/\\w+",
  6469. 'class="addthis_|value="download',
  6470. 'var rr =|AVOID_IE_BUG|<div style="width:500px;text-align:left;">',
  6471. 'optional--',
  6472. "//a[contains(@href,'up.media1fire.com')]");
  6473. }
  6474. if (GM_getValue("Check_depfile_dot_com_links", false))
  6475. {
  6476. addFileHost(
  6477. "depfile\.com\/\\w+",
  6478. 'logo_0.png|downloads.gif"|verifycode',
  6479. 'border-color: #5D729B;|bgcolor="#778AAF"|deleted by the owner|Invalid Link',
  6480. 'optional--',
  6481. "//a[contains(@href,'depfile.com')]");
  6482. }
  6483. if (GM_getValue("Check_go4up_dot_com_links", false))
  6484. {
  6485. addFileHost(
  6486. "go4up\.com\/\\w+",
  6487. 'style="width: 100%;">|value="Access|download_line',
  6488. '<title>GO4UP|dmca',
  6489. 'optional--',
  6490. "//a[contains(@href,'go4up.com')]");
  6491. }
  6492. if (GM_getValue("Check_redbunker_dot_net_links", false))
  6493. {
  6494. addFileHost(
  6495. "redbunker\.net\/\\w+",
  6496. 'dload.png|rowspan="3">|yep.gif',
  6497. 'CONTENT="RedBunker|#D3D3D3;|color:#d33|AVOID_IE_BUG',
  6498. 'optional--',
  6499. "//a[contains(@href,'redbunker.net')]");
  6500. }
  6501. if (GM_getValue("Check_divxpress_dot_com_links", false))
  6502. {
  6503. addFileHost(
  6504. "divxpress\.com\/\\w+",
  6505. 'btn_download|logo.png"',
  6506. 'AVOID_IE_BUG|var rr =',
  6507. 'optional--',
  6508. "//a[contains(@href,'divxpress.com')]");
  6509. }
  6510. if (GM_getValue("Check_anafile_dot_com_links", false))
  6511. {
  6512. addFileHost(
  6513. "anafile\.com\/\\w+",
  6514. 'width="881" valign="top|color="#800080"',
  6515. 'style="width:500px;text-align:left;">|file was deleted|AVOID_IE_BUG',
  6516. 'optional--',
  6517. "//a[contains(@href,'anafile.com')]");
  6518. }
  6519. if (GM_getValue("Check_uploadable_dot_ch_links", false))
  6520. {
  6521. addFileHost(
  6522. "uploadable\\.ch\/file\/\\w+",
  6523. 'captcha.js"|payment.js"|class="btn_download"',
  6524. '<div class="icon_err">|<div class="errorBox">|"error_arrow">',
  6525. 'optional--',
  6526. "//a[contains(@href,'uploadable.ch/file')]",
  6527. true
  6528. );
  6529. }
  6530. if (GM_getValue("Check_arabloads_dot_com_links", false))
  6531. {
  6532. addFileHost(
  6533. "arabloads\.com\/\\w+",
  6534. 'name="method_free"|name="method_premium"',
  6535. 'background:#eee;font:15px Arial;">|AVOID_IE_BUG|Verdana;padding:3px;">Error',
  6536. 'optional--',
  6537. "//a[contains(@href,'arabloads.com')]");
  6538. }
  6539. if (GM_getValue("Check_sharerepo_dot_com_links", false))
  6540. {
  6541. addFileHost(
  6542. "sharerepo\.com\/\\w+",
  6543. 'name="method_free"',
  6544. 'var public_on=|The file you were looking for could not be found',
  6545. 'optional--',
  6546. "//a[contains(@href,'sharerepo.com')]");
  6547. }
  6548. if (GM_getValue("Check_sfshare_dot_se_links", false))
  6549. {
  6550. addFileHost(
  6551. "sfshare\.se\/\\w+",
  6552. 'id="btn_download"|class="btn btn-primary txt-bold" value="',
  6553. 'AVOID_IE_BUG|var rr =|style="width:500px;text-align:left;">|Reason for deletion|The file was removed',
  6554. 'optional--',
  6555. "//a[contains(@href,'sfshare.se')]");
  6556. }
  6557. if (GM_getValue("Check_files_dot_fm_links", false))
  6558. {
  6559. addFileHost(
  6560. "files\.fm\/\\w+",
  6561. 'dl.png"|background-color: transparent',
  6562. 'margin: 40px 40px|background: none;',
  6563. 'optional--',
  6564. "//a[contains(@href,'files.fm')]");
  6565. }
  6566. if (GM_getValue("Check_koofile_dot_com_links", false))
  6567. {
  6568. addFileHost(
  6569. "koofile\.com\/\\w+",
  6570. 'value="download1">|name="method_free"',
  6571. 'class="overview-content c_text-box ">|style="padding-top:3px;">|class="rt1 c">',
  6572. 'optional--',
  6573. "//a[contains(@href,'koofile.com')]");
  6574. }
  6575. if (GM_getValue("Check_vidxden_dot_com_links", false))
  6576. {
  6577. addFileHost(
  6578. "vidxden\\.com\/\\w+",
  6579. 'Continue to Video"',
  6580. 'No such file',
  6581. 'optional--',
  6582. "//a[contains(@href,'vidxden.com')]"
  6583. );
  6584. }
  6585. if (GM_getValue("Check_muchshare_dot_net_links", false))
  6586. {
  6587. addFileHost(
  6588. "muchshare\\.net\/\\w+",
  6589. 'id="btn_download"',
  6590. 'File Not Found|width: 500px; text-align: left;',
  6591. 'optional--',
  6592. "//a[contains(@href,'muchshare.net')]"
  6593. );
  6594. }
  6595. if (GM_getValue("Check_daten_dash_hoster_dot_de_links", false))
  6596. {
  6597. addFileHost(
  6598. "(?:daten-hoster\\.de\/file\/\\w+|filehosting\\.org\/file\/\\w+|xtraupload\\.de\/\\?d=\\w+)",
  6599. 'Details zur Datei|Details page',
  6600. 'Jetzt hochladen|upload now',
  6601. 'optional--',
  6602. "//a[contains(@href,'daten-hoster.de/file') or contains(@href,'filehosting.org/file') or contains(@href,'xtraupload.de')]"
  6603. );
  6604. }
  6605. if (GM_getValue("Check_upload_dash_il_dot_net_links", false))
  6606. {
  6607. addFileHost(
  6608. "(?:upload-il|przeslij)\.net\/(?:en|he|ar|ru|)\/?\\w+",
  6609. 'downloadbtn"',
  6610. 'DL_FileNotFound',
  6611. 'optional--',
  6612. "//a[contains(@href,'upload-il.net') or contains(@href,'przeslij.net')]"
  6613. );
  6614. }
  6615. if (GM_getValue("Check_fileflyer_dot_com_links", false))
  6616. {
  6617. addFileHost(
  6618. "fileflyer\.com\/view\/\\w+",
  6619. '(?:dwl|locked)btn"',
  6620. 'error.gif"|link">Removed|removedlink">',
  6621. 'optional--',
  6622. "//a[contains(@href,'fileflyer.com')]"
  6623. );
  6624. }
  6625. if (GM_getValue("Check_filestore_dot_to_links", false))
  6626. {
  6627. addFileHost(
  6628. "filestore\.to\/\\?d=\\w+",
  6629. '"downloading"',
  6630. 'Datei wurde nicht gefunden',
  6631. 'optional--',
  6632. "//a[contains(@href,'filestore.to')]"
  6633. );
  6634. }
  6635. if (GM_getValue("Check_easy_dash_share_dot_com_links", false))
  6636. {
  6637. addFileHost(
  6638. "(?:w\\d*\.|)(?:crocko|easy-share)\\.com\/.",
  6639. 'fz24">Download|class="pl15">',
  6640. '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',
  6641. 'optional--',
  6642. "//a[contains(@href,'easy-share.com') or contains(@href,'crocko.com')]"
  6643. );
  6644. }
  6645. if (GM_getValue("Check_burnupload_dot_com_links", false))
  6646. {
  6647. addFileHost(
  6648. "burnupload\\.(?:com\/\\?d=|ihiphop\\.com\/download\\.php\\?id=)\\w+",
  6649. 'File size:',
  6650. 'file is not found',
  6651. 'optional--',
  6652. "//a[contains(@href,'burnupload.com') or contains(@href,'burnupload.ihiphop.com')]"
  6653. );
  6654. }
  6655. if (GM_getValue("Check_datei_dot_to_links", false))
  6656. {
  6657. addFileHost(
  6658. "datei\\.to\/\\??\\w+",
  6659. 'icon_downloaden\\.png|>Download starten<',
  6660. 'Datei wurde nicht gefunden|icon_deleted.png',
  6661. 'optional--',
  6662. "//a[contains(@href,'datei.to')]"
  6663. );
  6664. }
  6665. if (GM_getValue("Check_yunfile_dot_com_links", false))
  6666. {
  6667. addFileHost(
  6668. "(?:yunfile|filemarkets)\\.com\/\\w+",
  6669. '<body class="body" id="body">|value="Slow Download"',
  6670. '<body class="body" >',
  6671. 'optional--',
  6672. "//a[contains(@href,'yunfile.com') or contains(@href,'filemarkets.com')]"
  6673. );
  6674. }
  6675. /* if (GM_getValue("Check_putlocker_dot_com_links", false))
  6676. {
  6677. addFileHost(
  6678. "putlocker\\.com\/file\/\\w{16}",
  6679. 'as Free User|<a class="continue"|Continue to file|#feedback_btn|application file_standalone',
  6680. 'Welcome to PutLocker|<div class="sad_face_image">|404:',
  6681. 'undergoing scheduled maintenance',
  6682. "//a[contains(@href,'putlocker.com/file')]"
  6683. );
  6684. } */
  6685. if (GM_getValue("Check_uploadhero_dot_com_links", false))
  6686. {
  6687. addFileHost(
  6688. "uploadhero\\.com\/dl\/\\w+",
  6689. 'content-dl">',
  6690. 'men_file_lost\\.jpg"',
  6691. 'optional--',
  6692. "//a[contains(@href,'uploadhero.com/dl')]"
  6693. );
  6694. }
  6695. if (GM_getValue("Check_unibytes_dot_com_links", false))
  6696. {
  6697. addFileHost(
  6698. "unibytes\\.com\/[\\w\.]+",
  6699. 'trying to download|пытаетесь загрузить файл|tes entrain de tlcharger',
  6700. 'File not found|Файл не найден|',
  6701. 'optional--',
  6702. "//a[contains(@href,'unibytes.com')]"
  6703. );
  6704. }
  6705. if (GM_getValue("Check_hellshare_dot_com_links", false)) //very old type of links
  6706. {
  6707. addFileHost(
  6708. "www\\.hellshare\\.com\/\\d+",
  6709. 'tab\\-details"',
  6710. 'list-purp-2"|not found on this server',
  6711. 'optional--',
  6712. "//a[contains(@href,'www.hellshare.com')]"
  6713. );
  6714. }
  6715. if (GM_getValue("Check_quickshare_dot_cz_links", false)) //folders
  6716. {
  6717. addFileHost(
  6718. "quickshare\\.cz\/slozka-\\d+",
  6719. 'Počet souborů: <strong>[1-9]',
  6720. 'Počet souborů: <strong>0|Chyba! Taková složka neexistuje',
  6721. 'optional--',
  6722. "//a[contains(@href,'quickshare.cz/slozka')]"
  6723. );
  6724. }
  6725. if (GM_getValue("Check_filefactory_dot_com_links", false)) //folders
  6726. {
  6727. addFileHost(
  6728. "filefactory\\.com\/f\/\\w+",
  6729. 'folderFileList">',
  6730. 'table class="items"|Pointer" class="red">',
  6731. 'optional--',
  6732. "//a[contains(@href,'filefactory.com/f/')]"
  6733. );
  6734. }
  6735. if (GM_getValue("Check_netload_dot_in_links", false)) //folders
  6736. {
  6737. addFileHost(
  6738. "netfolder\\.in\/\\w+",
  6739. 'list" value="http',
  6740. 'InPage_Error">|list" value=""',
  6741. 'optional--',
  6742. "//a[contains(@href,'netfolder.in')]"
  6743. );
  6744. }
  6745. if (GM_getValue("Check_load_dot_to_links", false))
  6746. {
  6747. addFileHost(
  6748. '(?:www\\.|\\/)load\\.to\\/(?:\\w{10}\\/.|\\?d=\\w{10})',
  6749. '"download_table_left">Size',
  6750. 'Can\'t find file',
  6751. 'optional--',
  6752. "//a[contains(@href,'/load.to/') or contains(@href,'www.load.to/')]"
  6753. );
  6754. }
  6755. /* if (GM_getValue("Check_freakshare_dot_net_links", false))
  6756. {
  6757. addFileHost(
  6758. "freakshare\\.(?:net|com)\/files\/",
  6759. 'box_heading',
  6760. '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|الملف المطلوب غير موجود',
  6761. 'Your Traffic is used up for today',
  6762. "//a[(contains(@href,'freakshare.net') or contains(@href,'freakshare.com')) and contains(@href,'files')]",
  6763. true
  6764. );
  6765. //folders
  6766. addFileHost(
  6767. "freakshare\\.(?:net|com)\/folder\/",
  6768. 'Files: [1-9]',
  6769. 'Files: 0',
  6770. 'optional--',
  6771. "//a[(contains(@href,'freakshare.net') or contains(@href,'freakshare.com')) and contains(@href,'folder')]",
  6772. true
  6773. );
  6774. } */
  6775. if (GM_getValue("Check_divshare_dot_com_links", false))
  6776. {
  6777. addFileHost(
  6778. "divshare\\.com\/download\/",
  6779. 'download_new\.png',
  6780. 'have been removed',
  6781. 'optional--',
  6782. "//a[contains(@href,'divshare.com')]"
  6783. );
  6784. }
  6785. if (GM_getValue("Check_euroshare_dot_eu_links", false))
  6786. {
  6787. addFileHost(
  6788. "euroshare\\.(?:eu|pl|sk|cz|hu)\/file\/\\d+",
  6789. 'nazev-souboru">',
  6790. '<div id="obsah">\\s*<h1>',
  6791. 'optional--',
  6792. "//a[contains(@href,'euroshare.eu/file')]"
  6793. );
  6794. }
  6795. if (GM_getValue("Check_files_dot_mail_dot_ru_links", false))
  6796. {
  6797. addFileHost(
  6798. 'files\\.mail\\.ru/(?:\\w*)',
  6799. 'fileList',
  6800. 'errorMessage',
  6801. 'optional--',
  6802. "//a[contains(@href,'files.mail.ru')]"
  6803. );
  6804. }
  6805. if (GM_getValue("Check_megashares_dot_com_links", false))
  6806. {
  6807. addFileHost(
  6808. "(?:d\\d+\.|)megashares\.com\/(?:dl|index\.php\\?d|\\?d\\d+=\\w+)",
  6809. 'Filesize',
  6810. 'Invalid|deleted|Could not download file',
  6811. 'slots|scheduled maintenance',
  6812. "//a[contains(@href,'megashares.com/')]"
  6813. );
  6814. }
  6815. if (GM_getValue("Check_narod_dot_ru_links", false))
  6816. {
  6817. addFileHost(
  6818. 'narod\\.(?:yandex\\.|)ru\/disk\/',
  6819. 'b-submit',
  6820. 'b-download-virus-note|headCode">404<',
  6821. 'Внутренняя ошибка сервиса',
  6822. "//a[contains(@href,'narod.ru') or contains(@href,'narod.yandex.ru')]"
  6823. );
  6824. }
  6825. if (GM_getValue("Check_rayfile_dot_com_links", false))
  6826. {
  6827. addFileHost(
  6828. "rayfile\\.com\/",
  6829. 'FILEtitleTXT',
  6830. 'blueRow',
  6831. 'optional--',
  6832. "//a[contains(@href,'rayfile.com/') and contains(@href,'files')]"
  6833. );
  6834. }
  6835. if (GM_getValue("Check_filesmonster_dot_com_links", false))
  6836. {
  6837. addFileHost(
  6838. "filesmonster\\.com\/download\\.php\\?id=\\w+",
  6839. 'button_green_body"',
  6840. 'error">',
  6841. 'optional--',
  6842. "//a[contains(@href,'filesmonster.com/download')]"
  6843. );
  6844. }
  6845. if (GM_getValue("Check_usaupload_dot_net_links", false))
  6846. {
  6847. addFileHost(
  6848. 'usaupload\\.net\/d\/(?:\w*)',
  6849. '<strong>File size:</strong>',
  6850. 'is not available',
  6851. 'optional--',
  6852. "//a[contains(@href,'usaupload.net/d/')]"
  6853. );
  6854. }
  6855. if (GM_getValue("Check_sendspace_dot_com_links", false))
  6856. {
  6857. addFileHost(
  6858. 'sendspace\\.com\/file\/\\w+',
  6859. 'file_description',
  6860. 'msg error"',
  6861. 'optional--',
  6862. "//a[contains(@href,'sendspace.com/file')]"
  6863. );
  6864. }
  6865. if (GM_getValue("Check_sendspace_dot_pl_links", false))
  6866. {
  6867. addFileHost(
  6868. 'sendspace\\.pl\/file\/\\w+',
  6869. 'download_file"',
  6870. 'Podany plik nie',
  6871. 'optional--',
  6872. "//a[contains(@href,'sendspace.pl/file')]"
  6873. );
  6874. }
  6875. if (GM_getValue("Check_uploading_dot_com_links", false))
  6876. {
  6877. addFileHost(
  6878. 'uploading\\.com\/(?:files\/)?\\w+',
  6879. 'free_method">',
  6880. 'file_error">|error_404">|file not found|OOPS! Looks like file not found',
  6881. 'optional--',
  6882. "//a[contains(@href,'uploading.com')]"
  6883. );
  6884. }
  6885. if (GM_getValue("Check_gigasize_dot_com_links", false))
  6886. {
  6887. addFileHost(
  6888. 'gigasize\\.com\/get\\.php(?:\/\\d+|\\?d=\\w+)',
  6889. 'fileId"',
  6890. 'error">',
  6891. 'optional--',
  6892. "//a[contains(@href,'gigasize.com/get')]"
  6893. );
  6894. }
  6895. if (GM_getValue("Check_good_dot_com_links", false))
  6896. {
  6897. addFileHost(
  6898. 'good\\.net\/(?:_|dl)',
  6899. 'Free Download',
  6900. 'Not Found',
  6901. 'Forbidden',
  6902. "//a[contains(@href,'good.net')]"
  6903. );
  6904. }
  6905. if (GM_getValue("Check_2shared_dot_com_links", false))
  6906. {
  6907. addFileHost(
  6908. '2shared\\.com\/(?:file|video|document|audio)\/\\w*',
  6909. 'File size',
  6910. 'File not found|is not valid|/images/important.gif',
  6911. 'optional--',
  6912. "//a[contains(@href,'2shared.com/file/') or contains (@href,'2shared.com/audio/') or contains (@href,'2shared.com/document/') or contains (@href,'2shared.com/video/')]"
  6913. );
  6914. }
  6915. if (GM_getValue("Check_turboupload_dot_com_links", false))
  6916. {
  6917. addFileHost(
  6918. 'turboupload\\.com\/\\w*',
  6919. 'You have requested',
  6920. 'File Not Found',
  6921. 'optional--',
  6922. "//a[contains(@href,'turboupload.com')]"
  6923. );
  6924. }
  6925. if (GM_getValue("Check_gigapeta_dot_com_links", false))
  6926. {
  6927. addFileHost(
  6928. 'gigapeta\\.com\/dl\/',
  6929. 'Download file|Скачать файл| Herunterzuladen|Scarica il file|Cargar el fichero|Charger le fichier',
  6930. '404|page_error',
  6931. 'optional--',
  6932. "//a[contains(@href,'gigapeta.com/dl')]"
  6933. );
  6934. }
  6935. if (GM_getValue("Check_veehd_dot_com_links", false))
  6936. {
  6937. addFileHost(
  6938. 'veehd\.com\/video\/.*?',
  6939. 'No sound|Download video',
  6940. 'Featured Videos',
  6941. 'optional--',
  6942. "//a[contains(@href,'veehd.com') and contains(@href,'video')]"
  6943. );
  6944. }
  6945. if (GM_getValue("Check_vip_dash_file_dot_com_links", false))
  6946. {
  6947. addFileHost(
  6948. '(?:u\\d+\\.)?vip-file\\.com\/download.*?\/(?:.*?)\/(?:.*?)\\.html',
  6949. 'fast_download_form">|submit_sms_download',
  6950. '<p style="text-align:center">',
  6951. 'optional--',
  6952. "//a[contains(@href,'vip-file.com/download')]"
  6953. );
  6954. }
  6955. if (GM_getValue("Check_letitbit_dot_net_links", false))
  6956. {
  6957. addFileHost(
  6958. '(?:u\\d+\\.)?letitbit\\.net\/download\/\\w+',
  6959. 'download\\-pnl ',
  6960. 'color:#000">|Запрашиваемый файл не найден|страница не существует|File not found|',
  6961. 'optional--',
  6962. "//a[contains(@href,'letitbit.net/download')]"
  6963. );
  6964. }
  6965. if (GM_getValue("Check_ifolder_dot_ru_links", false))
  6966. {
  6967. addFileHost(
  6968. 'ifolder\.ru\/\\d+',
  6969. 'file-info',
  6970. 'ui-state-error',
  6971. 'optional--',
  6972. "//a[contains(@href,'ifolder.ru')]"
  6973. );
  6974. }
  6975. if (GM_getValue("Check_fileswap_dot_com_links", false))
  6976. {
  6977. addFileHost(
  6978. 'fileswap\\.com\/dl\/\\w+',
  6979. 'bttnDownloadLink"',
  6980. 'rounded_block_error"',
  6981. 'is temporary unavailable|disponible en estos momentos|vorläufig unerreichbar|Файл временно недоступен',
  6982. "//a[contains(@href,'fileswap.com/dl')]"
  6983. );
  6984. }
  6985. if (GM_getValue("Check_filecloud_dot_io_links", false))
  6986. {
  6987. addFileHost(
  6988. '(?:s\\d+\\.)?filecloud\\.io\/\\w+',
  6989. 'var __error = 0',
  6990. 'FILES__DOESNT_EXIST|removed or did not exist',
  6991. 'optional--',
  6992. "//a[contains(@href,'filecloud.io/')]"
  6993. );
  6994. addFileHost(
  6995. 'ifile\\.it\/\\w+',
  6996. 'var __error = 0',
  6997. 'FILES__DOESNT_EXIST',
  6998. 'optional--',
  6999. "//a[contains(@href,'ifile.it/')]"
  7000. );
  7001. }
  7002. if (GM_getValue("Check_solidfiles_dot_com_links", false))
  7003. {
  7004. addFileHost(
  7005. 'solidfiles\\.com\/d\/\\w+',
  7006. 'id="download"|content="Download',
  7007. '>Not found<|<h2>404</h2>|Page not found|<h1>404</h1>|File not available|no longer available',
  7008. 'optional--',
  7009. "//a[contains(@href,'solidfiles.com/d')]"
  7010. );
  7011. }
  7012. if (GM_getValue("Check_shareflare_dot_net_links", false))
  7013. {
  7014. addFileHost(
  7015. "(?:.\\.|)shareflare\\.net",
  7016. 'download-pnl|<div class="premium-block">',
  7017. 'File not found|Поиск зеркала на фа|<div id="captcha"',
  7018. 'optional--',
  7019. "//a[contains(@href,'shareflare.net') and contains(@href,'download')]"
  7020. );
  7021. }
  7022. if (GM_getValue("Check_u18116681_dot_shareflare_dot_net_links", false))
  7023. {
  7024. addFileHost(
  7025. "u18116681.shareflare\\.net",
  7026. 'download-pnl|<div class="premium-block">',
  7027. 'File not found|Поиск зеркала на фа|<div id="captcha"',
  7028. 'optional--',
  7029. "//a[contains(@href,'shareflare.net') and contains(@href,'download')]"
  7030. );
  7031. }
  7032. if (GM_getValue("Check_uloz_dot_to_links", false))
  7033. {
  7034. addFileHost(
  7035. "(?:uloz|ulozto|bagruj|zachowajto)\\.(to|cz|sk|net|pl)\/\\w",
  7036. 'fileDownload">|fileSize">',
  7037. 'grayButton deletedFile">|Stránka nenalezena|upload-button"|jako soukromý.',
  7038. 'passwordProtectedFile">|frmaskAgeForm-disagree',
  7039. "//a[contains(@href,'bagruj.cz') or contains(@href,'uloz.to') or contains(@href,'ulozto.') or contains(@href,'zachowajto.pl')]",
  7040. true
  7041. );
  7042. }
  7043. if (GM_getValue("Check_hellspy_dot_com_links", false))
  7044. {
  7045. addFileHost(
  7046. "hellspy\.(?:com|cz|sk|hu|pl)\/\\w+",
  7047. 'file\\-list-orderby|section-filedetail">',
  7048. '<\/span><\/h2>\\s*<p>|list-purp-2">|flash info sticky">',
  7049. 'optional--',
  7050. "//a[contains(@href,'hellspy.')]"
  7051. );
  7052. }
  7053. if (GM_getValue("Check_leteckaposta_dot_cz_links", false))
  7054. {
  7055. addFileHost(
  7056. "(?:leteckaposta\\.cz|sharegadget\\.com)\/\\d+",
  7057. '<body onload="">',
  7058. 'neexistuje|not exist',
  7059. 'optional--',
  7060. "//a[contains(@href,'leteckaposta.cz') or contains(@href,'sharegadget.com')]"
  7061. );
  7062. }
  7063. if (GM_getValue("Check_stahovanizasms_dot_cz_links", false))
  7064. {
  7065. addFileHost(
  7066. "stahovanizasms\\.cz\/\\w+",
  7067. 'download\\.png>|font-size:11px><tr>',
  7068. 'smaz.n u.ivatelem|font-size:11px><\/table>',
  7069. 'optional--',
  7070. "//a[contains(@href,'stahovanizasms.cz')]"
  7071. );
  7072. }
  7073. if (GM_getValue("Check_share_dash_links_dot_biz_links", false))
  7074. {
  7075. addFileHost(
  7076. "share-links\\.biz\/\\w*",
  7077. 'online\\.gif',
  7078. '(?:offline|parts)\\.gif',
  7079. 'optional--',
  7080. "//a[contains(@href,'share-links.biz')]"
  7081. );
  7082. }
  7083. if (GM_getValue("Check_4shared_dot_com_links", false))
  7084. {
  7085. addFileHost(
  7086. "4shared\\.com\/.+\/",
  7087. '<input type="hidden" class="jsSocialTwDefaultText" value=',
  7088. 'class="warn\"|big red"|GetDataBack',
  7089. 'Service Unavailable',
  7090. "//a[contains(@href,'4shared.com')]"
  7091. );
  7092. }
  7093. if (GM_getValue("Check_zippyshare_dot_com_links", false))
  7094. {
  7095. addFileHost(
  7096. "(?:www\\d+\.|)zippyshare\.com\/",
  7097. 'download\.png|Download Now|images/download_small.png|id="dlbutton"',
  7098. 'not exist|Status 404',
  7099. 'optional--',
  7100. "//a[contains(@href,'zippyshare.com') and contains(@href,'file.html')]"
  7101. );
  7102. }
  7103. if (GM_getValue("Check_mediafire_dot_com_links", false))
  7104. {
  7105. addFileHost(
  7106. "mediafire\.com\/",
  7107. 'download_file_title|dlFileName|id="PLAY_downloadButton"',
  7108. 'error\\.php\\?|error_msg_title|<title>Simple File Sharing|No files found',
  7109. 'set to private',
  7110. "//a[contains(@href,'mediafire.com')]"
  7111. );
  7112. }
  7113. if (GM_getValue("Check_uploaded_dot_to_links", false))
  7114. {
  7115. addFileHost(
  7116. '(?:uploaded\\.(?:to|net)\/(?:.id|file|folder|f|410|404))|(?:ul\\.to\/)',
  7117. '<h2>Authentification</h2></li>| MB|1,00 GB',
  7118. 'box_red|Error: 404|Error: 410|fileList"><thead><tr><td colspan="2"><\/td><\/tr><\/thead><tbody>\\s*<tr>|<title>uploaded.net</title>',
  7119. 'optional--',
  7120. "//a[contains(@href,'uploaded.to/') or contains(@href,'uploaded.net/') or contains(@href,'ul.to/')]"
  7121. );
  7122. }
  7123. if (GM_getValue("Check_ulozisko_dot_sk_links", false))
  7124. {
  7125. addFileHost(
  7126. "ulozisko\.sk\/",
  7127. 'Detaily',
  7128. 'neexistuje',
  7129. 'optional--',
  7130. "//a[contains(@href,'ulozisko.sk')]"
  7131. );
  7132. }
  7133. if (GM_getValue("Check_upnito_dot_sk_links", false))
  7134. {
  7135. addFileHost(
  7136. "(?:dl.\\.|)upnito\\.sk\/(download|subor|file)",
  7137. 'download.php',
  7138. 'notfound|upload\\-suborov\\.php"',
  7139. 'optional--',
  7140. "//a[contains(@href,'upnito.sk')]"
  7141. );
  7142. }
  7143. if (GM_getValue("Check_uptobox_dot_com_links", false))
  7144. {
  7145. addFileHost(
  7146. "uptobox\\.com\/\\w+",
  7147. 'Create Download Link">',
  7148. '500px;text-align:left;">|File not found|Fichier introuvable',
  7149. 'Maintenance|not available in your country',
  7150. "//a[contains(@href,'uptobox.com')]"
  7151. );
  7152. }
  7153. if (GM_getValue("Check_sharecash_dot_org_links", false))
  7154. {
  7155. addFileHost(
  7156. "sharecash\\.org\/download\\.php\\?file=\\d+",
  7157. 'FILE DOWNLOAD<',
  7158. 'File Does Not Exist',
  7159. 'optional--',
  7160. "//a[contains(@href,'sharecash.org/download.php')]"
  7161. );
  7162. }
  7163. if (GM_getValue("Check_depositfiles_dot_com_links", false)) //folders
  7164. {
  7165. addFileHost(
  7166. "depositfiles\\.com\/folders\/\\w+",
  7167. '<div class="progressContainer">',
  7168. '<div id="files" class="files">\\s*<\/div>',
  7169. 'optional--',
  7170. "//a[contains(@href,'depositfiles.com/folders')]"
  7171. );
  7172. }
  7173. if (GM_getValue("Check_rapidfileshare_dot_net_links", false))
  7174. {
  7175. addFileHost(
  7176. "rapidfileshare\\.net/\\w+",
  7177. '<div id="upload-header-bg">',
  7178. '<div style="width:500px;text-align:left;">',
  7179. 'optional--',
  7180. "//a[contains(@href,'rapidfileshare.net/')]"
  7181. );
  7182. }
  7183. if (GM_getValue("Check_stiahnito_dot_sk_links", false))
  7184. {
  7185. addFileHost(
  7186. "stiahnito\\.sk/",
  7187. '<span class="filesize right">',
  7188. '<ol class="list-purp-2">',
  7189. 'optional--',
  7190. "//a[contains(@href,'stiahnito.sk/')]"
  7191. );
  7192. }
  7193. if (GM_getValue("Check_rusfolder_dot_com_links", false))
  7194. {
  7195. addFileHost(
  7196. "rusfolder\\.(?:com|net)",
  7197. '"download-step-one-form"|Название: <b>|Файлы|Файлы в папке',
  7198. '"ui-state-error ui-corner-all"|File is removed|File not found|удален',
  7199. 'optional--',
  7200. "//a[contains(@href,'rusfolder')]"
  7201. );
  7202. }
  7203. if (GM_getValue("Check_fileover_dot_net_links", false))
  7204. {
  7205. addFileHost(
  7206. "fileover\\.net/\\d+",
  7207. 'id="filesize"',
  7208. 'Not found or deleted|The following file is unavailable',
  7209. 'optional--',
  7210. "//a[contains(@href,'fileover.net/')]"
  7211. );
  7212. }
  7213. if (GM_getValue("Check_catshare_dot_net_links", false))
  7214. {
  7215. addFileHost(
  7216. "catshare\\.net/\\w+",
  7217. '"icon-share',
  7218. 'alert alert-error',
  7219. 'optional--',
  7220. "//a[contains(@href,'catshare.net/')]"
  7221. );
  7222. }
  7223. if (GM_getValue("Check_anonfiles_dot_com_links", false))
  7224. {
  7225. addFileHost(
  7226. "anonfiles\\.com/\\w+",
  7227. '"download_button"',
  7228. '<legend><b>404</b>',
  7229. 'optional--',
  7230. "//a[contains(@href,'anonfiles.com')]"
  7231. );
  7232. }
  7233. if (GM_getValue("Check_mixturecloud_dot_com_links", false))
  7234. {
  7235. addFileHost(
  7236. "mixturecloud\\.com/media/\\w+",
  7237. '"btn icon i_globe gray share_150',
  7238. '"s_cross_close"></span> 404:',
  7239. 'optional--',
  7240. "//a[contains(@href,'mixturecloud.com/media/')]"
  7241. );
  7242. }
  7243. if (GM_getValue("Check_akafile_dot_com_links", false))
  7244. {
  7245. addFileHost(
  7246. "akafile\\.com\/\\w+",
  7247. 'download1',
  7248. 'File Not Found',
  7249. 'optional--',
  7250. "//a[contains(@href,'akafile.com/')]"
  7251. );
  7252. }
  7253. if (GM_getValue("Check_creafile_dot_net_links", false))
  7254. {
  7255. addFileHost(
  7256. "creafile\\.net\/\\w+",
  7257. 'downloadblock',
  7258. 'errtitle',
  7259. 'optional--',
  7260. "//a[contains(@href,'creafile.net/')]"
  7261. );
  7262. }
  7263. if (GM_getValue("Check_hugefiles_dot_net_links", false))
  7264. {
  7265. addFileHost(
  7266. "hugefiles\\.net\/\\w+",
  7267. 'download1|class="btn-create-download" value="Create Download Link">',
  7268. 'File Not Found|No such file with this filename',
  7269. 'optional--',
  7270. "//a[contains(@href,'hugefiles.net/')]"
  7271. );
  7272. }
  7273. if (GM_getValue("Check_sendmyway_dot_com_links", false))
  7274. {
  7275. addFileHost(
  7276. "sendmyway\\.com\/\\w+",
  7277. 'id="btn_download"',
  7278. '500px;text-align:left;"|<center><h3>',
  7279. 'optional--',
  7280. "//a[contains(@href,'sendmyway.com/')]"
  7281. );
  7282. }
  7283. if (GM_getValue("Check_upload_dot_ee_links", false))
  7284. {
  7285. addFileHost(
  7286. "upload\\.ee\/\\w+",
  7287. 'onmouseout="document.dllink.src',
  7288. 'There is no such file.|File was deleted|Fail kustutati|Файл удалён|Такого файла нет',
  7289. 'optional--',
  7290. "//a[contains(@href,'upload.ee/')]"
  7291. );
  7292. }
  7293. if (GM_getValue("Check_shareplace_dot_org_links", false))
  7294. {
  7295. addFileHost(
  7296. "shareplace\\.org\/\\?\\w+",
  7297. 'Download-Link',
  7298. 'Your requested file is not found|Select file to send',
  7299. 'optional--',
  7300. "//a[contains(@href,'shareplace.org/?')]"
  7301. );
  7302. }
  7303. if (GM_getValue("Check_uploadc_dot_com_links", false))
  7304. {
  7305. addFileHost(
  7306. "uploadc\\.com\/\\w+",
  7307. 'id="prebut"',
  7308. 'File Not Found|This file has been removed due',
  7309. 'optional--',
  7310. "//a[contains(@href,'uploadc.com/')]"
  7311. );
  7312. }
  7313. if (GM_getValue("Check_remixshare_dot_com_links", false))
  7314. {
  7315. addFileHost(
  7316. "remixshare\\.com\/\\w+",
  7317. 'id="dl2"',
  7318. '<table class=\'failed\'><tr><td width=\'90%\'>|Sorry, die Datei konnte nicht gefunden werden',
  7319. 'optional--',
  7320. "//a[contains(@href,'remixshare.com/')]"
  7321. );
  7322. }
  7323. if (GM_getValue("Check_exoshare_dot_com_links", false))
  7324. {
  7325. addFileHost(
  7326. "exoshare\\.com\/download\\.php\\?uid=\\w+",
  7327. 'Last Download :',
  7328. 'img src="\\/404.jpg"',
  7329. 'optional--',
  7330. "//a[contains(@href,'exoshare.com/download.php')]"
  7331. );
  7332. }
  7333. if (GM_getValue("Check_borncash_dot_org_links", false))
  7334. {
  7335. addFileHost(
  7336. "borncash\\.org\/download\/\\?a=\\w+",
  7337. 'class="knop_1"',
  7338. '\/error\/er00',
  7339. 'optional--',
  7340. "//a[contains(@href,'borncash.org/download/')]"
  7341. );
  7342. }
  7343. if (GM_getValue("Check_vidplay_dot_net_links", false))
  7344. {
  7345. addFileHost(
  7346. "vidplay\.net\/\\w+",
  7347. 'solvemedia puzzle widget',
  7348. 'File not found|AVOID_IE_BUG',
  7349. 'optional--',
  7350. "//a[contains(@href,'vidplay.net')]");
  7351. }
  7352. if (GM_getValue("Check_storagon_dot_com_links", false))
  7353. {
  7354. addFileHost(
  7355. "storagon\.com\/\\w+",
  7356. 'class="icon-cloud-download"></i>|content="Download Options',
  7357. 'content="Download Downloads|class="error-container">|class="bigger-300 bolder">404<',
  7358. 'optional--',
  7359. "//a[contains(@href,'storagon.com')]");
  7360. }
  7361. if (GM_getValue("Check_filedais_dot_com_links", false))
  7362. {
  7363. addFileHost(
  7364. "filedais\.com\/\\w+",
  7365. 'class="btn btn-info"|name="method_free"',
  7366. 'style="width:500px;text-align:left;">|File Not Found|AVOID_IE_BUG',
  7367. 'optional--',
  7368. "//a[contains(@href,'filedais.com')]");
  7369. }
  7370. if (GM_getValue("Check_ryushare_dot_com_links", false))
  7371. {
  7372. addFileHost(
  7373. "ryushare\.com\/\\w+",
  7374. 'KB|MB',
  7375. '<div style="width:500px;text-align:left;">',
  7376. 'in maintenance mode|Software error:',
  7377. "//a[contains(@href,'ryushare.com')]");
  7378. }
  7379. if (GM_getValue("Check_up_dot_4share_dot_vn_links", false))
  7380. {
  7381. addFileHost(
  7382. "up.4share\.vn\/\\w+",
  7383. '<font size="2" face="Verdana">',
  7384. 'font: 13px Tahoma; color: Brown',
  7385. 'optional--',
  7386. //'optional--',
  7387. "//a[contains(@href,'up.4share.vn')]");
  7388. }
  7389. if (GM_getValue("Check_share_dot_vnn_dot_vn_links", false))
  7390. {
  7391. addFileHost(
  7392. "share.vnn\.vn\/\\w+",
  7393. '"index,follow"|<div class="main" id="download-box">',
  7394. '<meta name="description" content="" />|<h1>Không tìm thấy file bạn yêu cầu</h1>',
  7395. 'optional--',
  7396. //'optional--',
  7397. "//a[contains(@href,'share.vnn.vn')]");
  7398. }
  7399. if (GM_getValue("Check_upfile_dot_vn_links", false))
  7400. {
  7401. addFileHost(
  7402. "upfile\.vn\/\\w+",
  7403. 'download-timer',
  7404. '<meta name="description" content="Upload files|<meta name="description" content="Error "',
  7405. 'optional--',
  7406. //'optional--',
  7407. "//a[contains(@href,'upfile.vn')]");
  7408. }
  7409. /* if (GM_getValue("Check_firedrive_dot_com_links", false))
  7410. {
  7411. addFileHost(
  7412. "firedrive\\.com\/file\/\\w{16}",
  7413. 'as Free User|<a class="continue"|Continue to file|#feedback_btn|application file_standalone',
  7414. 'Welcome to PutLocker|<div class="sad_face_image">|404:',
  7415. 'undergoing scheduled maintenance',
  7416. "//a[contains(@href,'firedrive.com/file')]"
  7417. );
  7418. } */
  7419. if (GM_getValue("Check_aisfile_dot_com_links", false))
  7420. {
  7421. addFileHost(
  7422. "aisfile\.com\/\\w+",
  7423. '<h3 style="text-align:left;">|align=right><b>Filename:',
  7424. '<div style="width:500px;text-align:left;">|File Not Found',
  7425. 'optional--',
  7426. //'optional--',
  7427. "//a[contains(@href,'aisfile.com')]");
  7428. }
  7429. if (GM_getValue("Check_usersfiles_dot_com_links", false))
  7430. {
  7431. addFileHost(
  7432. "usersfiles\.com\/\\w+",
  7433. 'class="btn btn-success|id="btn_download" class="btn"',
  7434. '<div style="width:500px;text-align:left;">',
  7435. 'optional--',
  7436. //'optional--',
  7437. "//a[contains(@href,'usersfiles.com')]");
  7438. }
  7439. if (GM_getValue("Check_pan_dot_baidu_dot_com_links", false))
  7440. {
  7441. addFileHost(
  7442. "pan.baidu\.com\/\\w+",
  7443. 'target="_blank" title=|share-personal-info',
  7444. 'share_notfound.png|background:#f9f9f9',
  7445. 'optional--',
  7446. //'optional--',
  7447. "//a[contains(@href,'pan.baidu.com')]");
  7448. }
  7449. if (GM_getValue("Check_yunpan_dot_cn_links", false))
  7450. {
  7451. addFileHost(
  7452. "yunpan\.cn\/\\w+",
  7453. 'class="icon icon-download',
  7454. 'content="360|http://p5.qhimg.com/t01d1c98667df9dc6cc.jpg',
  7455. 'optional--',
  7456. //'optional--',
  7457. "//a[contains(@href,'yunpan.cn')]");
  7458. }
  7459. if (GM_getValue("Check_file_dash_upload_dot_net_links", false))
  7460. {
  7461. addFileHost(
  7462. "(?:en\\.|)file\\-upload\\.net\/download\\-\\d+\/\\w+",
  7463. 'getElementById("downbild")|style.display',
  7464. 'hochgeladene Datei nicht gefunden werden|has not been found',
  7465. 'optional--',
  7466. //'optional--',
  7467. "//a[contains(@href,'file-upload.net')]");
  7468. }
  7469. if (GM_getValue("Check_gulfup_dot_com_links", false))
  7470. {
  7471. addFileHost(
  7472. "gulfup\.com\/",
  7473. '<!-- Downlod template -->|download.gif',
  7474. '<!-- Errors template -->|class="error">|<!-- form upload -->|[ رفع الملفات ]',
  7475. 'optional--',
  7476. //'optional--',
  7477. "//a[contains(@href,'gulfup.com')]");
  7478. }
  7479. if (GM_getValue("Check_datafilehost_dot_com_links", false))
  7480. {
  7481. addFileHost(
  7482. "datafilehost\\.com\/(?:download-\\w+\\.html|d\/\\w+)",
  7483. 'dldtable">',
  7484. 'does not exist\\.',
  7485. 'optional--',
  7486. //'optional--',
  7487. "//a[contains(@href,'datafilehost.com')]");
  7488. }
  7489. if (GM_getValue("Check_box_dot_com_links", false))
  7490. {
  7491. addFileHost(
  7492. "box\.com\/\\w+",
  7493. 'download-file-btn|id="download_button',
  7494. 'BIyMin.png| <div class="error_message|link has been removed',
  7495. 'optional--',
  7496. //'optional--',
  7497. "//a[contains(@href,'app.box.com')]");
  7498. }
  7499. if (GM_getValue("Check_dropbox_dot_com_links", false))
  7500. {
  7501. addFileHost(
  7502. "dropbox\.com\/s\/\\w+",
  7503. 'default_content_download_button" class="freshbutton-blue">|content_download_button',
  7504. '>Nothing Here<|>Error (404)<',
  7505. 'title>Dropbox - 509|Error (403)|Error: 429',
  7506. "//a[contains(@href,'dropbox.com')]");
  7507. }
  7508. if (GM_getValue("Check_box_dot_net_links", false))
  7509. {
  7510. addFileHost(
  7511. "box\.net\/\\w+",
  7512. 'download-file-btn|id="download_button',
  7513. 'BIyMin.png| <div class="error_message',
  7514. 'optional--',
  7515. //'optional--',
  7516. "//a[contains(@href,'box.net')]");
  7517. }
  7518. if (GM_getValue("Check_fileband_dot_com_links", false))
  7519. {
  7520. addFileHost(
  7521. "fileband\.com\/\\w+",
  7522. 'value="download1">|name="id" value=',
  7523. '<div style="width:500px;text-align:left;">|not be found',
  7524. 'optional--',
  7525. //'optional--',
  7526. "//a[contains(@href,'fileband.com')]");
  7527. }
  7528. if (GM_getValue("Check_filedropper_dot_com_links", false))
  7529. {
  7530. addFileHost(
  7531. "filedropper\.com\/\\w+",
  7532. 'background:#ddd;|width:985px; ',
  7533. 'background-color:#FFFFFF;|margin-left: -400px;',
  7534. 'optional--',
  7535. //'optional--',
  7536. "//a[contains(@href,'filedropper.com')]");
  7537. }
  7538. if (GM_getValue("Check_tropicshare_dot_com_links", false))
  7539. {
  7540. addFileHost(
  7541. "tropicshare\\.com\/files\/\\d+",
  7542. 'MB</span>|GB</span>|KB</span>',
  7543. '>FNF<|size: </span>',
  7544. 'optional--',
  7545. //'optional--',
  7546. "//a[contains(@href,'tropicshare.com')]");
  7547. }
  7548. if (GM_getValue("Check_goldbytez_dot_com_links", false))
  7549. {
  7550. addFileHost(
  7551. "goldbytez\.com\/\\w+",
  7552. '<h2>Download</h2>|<center><h2>File: <font color="red">',
  7553. '<div style="width:500px;text-align:left;">|<h2>Error</h2>',
  7554. 'optional--',
  7555. //'optional--',
  7556. "//a[contains(@href,'goldbytez.com')]");
  7557. }
  7558. if (GM_getValue("Check_worldbytez_dot_com_links", false))
  7559. {
  7560. addFileHost(
  7561. "worldbytez\.com\/\\w+",
  7562. '<div class="download_type">',
  7563. '<div style="width:500px;text-align:left;">',
  7564. 'optional--',
  7565. //'optional--',
  7566. "//a[contains(@href,'worldbytez.com')]");
  7567. }
  7568. if (GM_getValue("Check_freefilehosting_dot_net_links", false))
  7569. {
  7570. addFileHost(
  7571. "freefilehosting\.net\/\\w+",
  7572. 'Type: cbr|Type: rar|Type: jpg|Type: mkv|Type: avi|Type: mpg|Type: mpeg|Type: zip|Type: wmvType: bmpType: gifType: mp4Type: mp3',
  7573. '175px;" value="http://www.freefilehosting.net/"|Filename: <br>',
  7574. 'optional--',
  7575. //'optional--',
  7576. "//a[contains(@href,'freefilehosting.net')]");
  7577. }
  7578. if (GM_getValue("Check_ziddu_dot_com_links", false))
  7579. {
  7580. addFileHost(
  7581. "ziddu\.com\/\\w+",
  7582. 'downloads.ziddu.com|downloadfilelinkicon',
  7583. 'errortracking.php|images/oops.png|fontfamilyverdana error',
  7584. 'optional--',
  7585. //'optional--',
  7586. "//a[contains(@href,'ziddu.com')]");
  7587. }
  7588. if (GM_getValue("Check_exclusiveloader_dot_com_links", false))
  7589. {
  7590. addFileHost(
  7591. "exclusiveloader\.com\/\\w+",
  7592. 'style="padding-top:55px; padding-bottom:65px;">|<h2>Download</h2>',
  7593. 'File Not Found|width:322px;text-align:left;" class="no_file">',
  7594. 'optional--',
  7595. //'optional--',
  7596. "//a[contains(@href,'exclusiveloader.com')]");
  7597. }
  7598. if (GM_getValue("Check_sharerapid_dot_cz_links", false))
  7599. {
  7600. addFileHost(
  7601. "sharerapid\.cz\/\\w+",
  7602. 'value="Stáhnout"|soubor" style|Stahování je povoleno pouze pro přihlášené uživatele',
  7603. 'error_div">|404 - Not Found',
  7604. 'optional--',
  7605. //'optional--',
  7606. "//a[contains(@href,'sharerapid.cz')]");
  7607. }
  7608. if (GM_getValue("Check_sdilej_dot_cz_links", false))
  7609. {
  7610. addFileHost(
  7611. "sdilej\.cz\/\\w+",
  7612. 'class="page-download"',
  7613. '<h2 class="red">|czshare.com|sponsored listings|This domain is for sale',
  7614. 'optional--',
  7615. //'optional--',
  7616. "//a[contains(@href,'sdilej.cz')]");
  7617. }
  7618. if (GM_getValue("Check_lafiles_dot_com_links", false))
  7619. {
  7620. addFileHost(
  7621. "lafiles\.com\/\\w+",
  7622. '<div id="pay_modes">',
  7623. '<b class="err"></b>',
  7624. 'optional--',
  7625. //'optional--',
  7626. "//a[contains(@href,'lafiles.com')]");
  7627. }
  7628. if (GM_getValue("Check_fboom_dot_me_links", false))
  7629. {
  7630. addFileHost(
  7631. "fboom\.me\/file\/\\w+",
  7632. 'id="download-free" href="#"',
  7633. 'class="error-v1-title">404<|File not found or deleted',
  7634. 'optional--',
  7635. //'optional--',
  7636. "//a[contains(@href,'fboom.me')]");
  7637. }
  7638. if (GM_getValue("Check_fileboom_dot_me_links", false))
  7639. {
  7640. addFileHost(
  7641. "fileboom\.me\/file\/\\w+",
  7642. 'id="download-free" href="#"',
  7643. 'class="error-v1-title">404<|File not found or deleted',
  7644. 'optional--',
  7645. //'optional--',
  7646. "//a[contains(@href,'fileboom.me')]");
  7647. }
  7648. if (GM_getValue("Check_acefile_dot_net_links", false))
  7649. {
  7650. addFileHost(
  7651. "acefile\.net\/\\w+",
  7652. 'align=right nowrap><b>',
  7653. 'File Not Found|<div style="width:322px;text-align:left;" class="no_file">',
  7654. 'optional--',
  7655. //'optional--',
  7656. "//a[contains(@href,'acefile.net')]");
  7657. }
  7658. if (GM_getValue("Check_megarapid_dot_cz_links", false))
  7659. {
  7660. addFileHost(
  7661. "megarapid\.cz\/\\w+",
  7662. 'value="Stáhnout"|soubor" style|Stahování je povoleno pouze pro přihlášené uživatele',
  7663. 'error_div">|404 - Not Found',
  7664. 'optional--',
  7665. //'optional--',
  7666. "//a[contains(@href,'megarapid.cz')]");
  7667. }
  7668. if (GM_getValue("Check_yadi_dot_sk_links", false))
  7669. {
  7670. addFileHost(
  7671. "yadi\.sk\/\\w+",
  7672. 'twitter:site|View and download',
  7673. 'error code|Nothing found',
  7674. 'optional--',
  7675. //'optional--',
  7676. "//a[contains(@href,'yadi.sk')]");
  7677. }
  7678. if (GM_getValue("Check_imdb_dot_com_links", false))
  7679. {
  7680. addFileHost(
  7681. "imdb\.com\/\\w+",
  7682. 'imdb.com',
  7683. '404 Error',
  7684. 'optional--',
  7685. "//a[contains(@href,'imdb.com')]");
  7686. }
  7687. if (GM_getValue("Check_hitfile_dot_net_links", false))
  7688. {
  7689. addFileHost(
  7690. "hitfile\.net\/\\w+",
  7691. 'class="download-file',
  7692. 'style="width:16px;height:16px;border:0;|File not found|Файл не найден. Возможно он был удален',
  7693. 'optional--',
  7694. //'optional--',
  7695. "//a[contains(@href,'hitfile.net')]");
  7696. }
  7697. /* if (GM_getValue("Check_uploadto_dot_us_links", false))
  7698. {
  7699. addFileHost(
  7700. "uploadto\\.us\/file\/details\/[\\w+-]",
  7701. 'name="recaptcha_response',
  7702. '="/folder/add"|>File (?:not found|restricted|has been deleted)|<title>UPLOADTO.US</title>',
  7703. 'btn-large btn-danger">|Account limitation notice|502 Bad Gateway',
  7704. "//a[contains(@href,'uploadto.us/file')]",
  7705. true);
  7706. } */
  7707. if (GM_getValue("Check_nitroflare_dot_com_links", true))
  7708. {
  7709. addFileHost(
  7710. "nitroflare\.com\/\\w+",
  7711. 'alert.png|LowSpeedMeter.png',
  7712. 'file has been removed|id="error" style="display|Probably deleted',
  7713. 'optional--',
  7714. "//a[contains(@href,'nitroflare.com')]");
  7715. }
  7716. if (GM_getValue("Check_up_dot_top4top_dot_net_links", false))
  7717. {
  7718. addFileHost(
  7719. "up.top4top\.net\/\\w+",
  7720. 'start Downlod template',
  7721. 'start err template',
  7722. 'optional--',
  7723. "//a[contains(@href,'up.top4top.net')]");
  7724. }
  7725. if (GM_getValue("Check_filejoker_dot_net_links", false))
  7726. {
  7727. addFileHost(
  7728. "filejoker\.net\/\\w+",
  7729. 'button id="regular-download">Slow|method_free" value="1|<div id="download" class="download0">',
  7730. 'File Not Found|class="not_found|<div id="download" class="not_found">|"err">DMCA Complaint<',
  7731. 'optional--',
  7732. "//a[contains(@href,'filejoker.net')]");
  7733. }
  7734. if (GM_getValue("Check_free_dot_fr_links", false))
  7735. {
  7736. addFileHost(
  7737. "(?:dl.\\.|)free\\.fr",
  7738. 'Valider et t&eacute;l&eacute',
  7739. 'Fichier inexistant',
  7740. 'optional--',
  7741. "//a[contains(@href,'free.fr')]");
  7742. }
  7743. if (GM_getValue("Check_gboxes_dot_com_links", false))
  7744. {
  7745. addFileHost(
  7746. "gboxes\.com\/\\w+",
  7747. 'You have requested|color="red">http://www.gboxes.com',
  7748. 'File Not Found|<div style="width:500px;text-align:left;">',
  7749. 'optional--',
  7750. "//a[contains(@href,'gboxes.com')]");
  7751. }
  7752. if (GM_getValue("Check_1fichier_dot_com_links", false))
  7753. {
  7754. addFileHost(
  7755. "(?:\\w{10}\\.(?:1fichier|dl4free)\\.com\/)|(?:(?:1fichier|dl4free)\\.com\/\\?\\w{10})|(?:www\\.)?\\w{6,}\\.1fichier\\.com",
  7756. '<title>Download</title>|<br/>You must wait|submit" value="Download|Download without SSL encryption|submit" value="Télécharger|submit" value="Télécharger',
  7757. '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é',
  7758. 'optional--',
  7759. "//a[contains(@href,'1fichier') or contains(@href,'dl4free.com/')]"
  7760. );
  7761. }
  7762. if (GM_getValue("Check_led_dot_wf_links", false))
  7763. {
  7764. addFileHost(
  7765. "led\.wf\/\\w+",
  7766. 'logo_0.png|downloads.gif"|verifycode',
  7767. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  7768. 'optional--',
  7769. "//a[contains(@href,'led.wf')]");
  7770. }
  7771. if (GM_getValue("Check_lan_dot_wf_links", false))
  7772. {
  7773. addFileHost(
  7774. "lan\.wf\/\\w+",
  7775. 'logo_0.png|downloads.gif"|verifycode',
  7776. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  7777. 'optional--',
  7778. "//a[contains(@href,'lan.wf')]");
  7779. }
  7780. if (GM_getValue("Check_adlink_dot_wf_links", false))
  7781. {
  7782. addFileHost(
  7783. "adlink\.wf\/\\w+",
  7784. 'logo_0.png|downloads.gif"|verifycode',
  7785. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  7786. 'optional--',
  7787. "//a[contains(@href,'adlink.wf')]");
  7788. }
  7789. if (GM_getValue("Check_click_dot_tf_links", false))
  7790. {
  7791. addFileHost(
  7792. "click\.tf\/\\w+",
  7793. 'logo_0.png|downloads.gif"|verifycode',
  7794. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  7795. 'optional--',
  7796. "//a[contains(@href,'click.tf')]");
  7797. }
  7798. if (GM_getValue("Check_ssh_dot_tf_links", false))
  7799. {
  7800. addFileHost(
  7801. "ssh\.tf\/\\w+",
  7802. 'logo_0.png|downloads.gif"|verifycode',
  7803. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  7804. 'optional--',
  7805. "//a[contains(@href,'ssh.tf')]");
  7806. }
  7807. if (GM_getValue("Check_ssh_dot_yt_links", false))
  7808. {
  7809. addFileHost(
  7810. "ssh\.yt\/\\w+",
  7811. 'logo_0.png|downloads.gif"|verifycode',
  7812. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  7813. 'optional--',
  7814. "//a[contains(@href,'ssh.yt')]");
  7815. }
  7816. if (GM_getValue("Check_yep_dot_pm_links", false))
  7817. {
  7818. addFileHost(
  7819. "yep\.pm\/\\w+",
  7820. 'logo_0.png|downloads.gif"|verifycode',
  7821. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  7822. 'optional--',
  7823. "//a[contains(@href,'yep.pm')]");
  7824. }
  7825. if (GM_getValue("Check_kyc_dot_pm_links", false))
  7826. {
  7827. addFileHost(
  7828. "kyc\.pm\/\\w+",
  7829. 'logo_0.png|downloads.gif"|verifycode',
  7830. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  7831. 'optional--',
  7832. "//a[contains(@href,'kyc.pm')]");
  7833. }
  7834. if (GM_getValue("Check_brupload_dot_net_links", false))
  7835. {
  7836. addFileHost(
  7837. "brupload\.net\/\\w+",
  7838. 'Download Gratuito',
  7839. '<div style="width:500px;text-align:left;">',
  7840. 'optional--',
  7841. //'optional--',
  7842. "//a[contains(@href,'brupload.net')]");
  7843. }
  7844. if (GM_getValue("Check_cloudzilla_dot_to_links", false))
  7845. {
  7846. addFileHost(
  7847. "cloudzilla\.to\/\\w+",
  7848. 'btn1" id="free_download|onclick="freeDownload|id="pwd_protected">',
  7849. 'File not found|/imgs/broken.png',
  7850. 'optional--',
  7851. //'optional--',
  7852. "//a[contains(@href,'cloudzilla.to')]");
  7853. }
  7854. if (GM_getValue("Check_fileparadox_dot_in_links", false))
  7855. {
  7856. addFileHost(
  7857. "fileparadox\.in\/\\w+",
  7858. 'CONTENT="Download File|method_free_file',
  7859. '>File Not Found<|id="no_filedownload">|FILE NOT FOUND',
  7860. 'optional--',
  7861. //'optional--',
  7862. "//a[contains(@href,'fileparadox.in')]");
  7863. }
  7864. if (GM_getValue("Check_clicknupload_dot_com_links", false))
  7865. {
  7866. addFileHost(
  7867. "clicknupload\.com\/\\w+",
  7868. 'name="method_free',
  7869. 'File Not Found',
  7870. 'optional--',
  7871. //'optional--',
  7872. "//a[contains(@href,'clicknupload.com')]");
  7873. }
  7874. if (GM_getValue("Check_ex_dash_load_dot_com_links", false))
  7875. {
  7876. addFileHost(
  7877. "ex-load\.com\/\\w+",
  7878. 'name="method_free|<p>Download File:</p>',
  7879. 'Folder Not Found|File Not Found|Error 404',
  7880. 'optional--',
  7881. //'optional--',
  7882. "//a[contains(@href,'ex-load.com')]");
  7883. }
  7884. if (GM_getValue("Check_hexupload_dot_com_links", false))
  7885. {
  7886. addFileHost(
  7887. "hexupload\.com\/\\w+",
  7888. 'button" value="Free|type="submit" value=""',
  7889. 'File Not Found|<div style="width:500px;text-align:left;">',
  7890. 'optional--',
  7891. //'optional--',
  7892. "//a[contains(@href,'hexupload.com')]");
  7893. }
  7894. if (GM_getValue("Check_wizupload_dot_com_links", false))
  7895. {
  7896. addFileHost(
  7897. "wizupload\.com\/\\w+",
  7898. 'btn_download|class="downloadbtn"',
  7899. '>File Not Found<',
  7900. 'optional--',
  7901. //'optional--',
  7902. "//a[contains(@href,'wizupload.com')]");
  7903. }
  7904. if (GM_getValue("Check_filecloud_dot_cc_links", false))
  7905. {
  7906. addFileHost(
  7907. "filecloud\.cc\/\\w+",
  7908. 'align="center"><input type="submit" name=',
  7909. 'File Not Found|<Title>FileCloud - Premium Hosting Service<',
  7910. 'optional--',
  7911. //'optional--',
  7912. "//a[contains(@href,'filecloud.cc')]");
  7913. }
  7914. if (GM_getValue("Check_inclouddrive_dot_com_links", false))
  7915. {
  7916. addFileHost(
  7917. "inclouddrive\.com\/\\w+",
  7918. 'initfreedownload',
  7919. '<title>Content Unavailable|The file you are trying to download is no longer available',
  7920. 'optional--',
  7921. //'optional--',
  7922. "//a[contains(@href,'inclouddrive.com')]");
  7923. }
  7924. if (GM_getValue("Check_radicalshare_dot_com_links", false))
  7925. {
  7926. addFileHost(
  7927. "radicalshare\.com\/\\w+",
  7928. 'value="download1|name="method_free"',
  7929. 'File Not Found<|<div style="width:500px;text-align:left;">',
  7930. 'optional--',
  7931. //'optional--',
  7932. "//a[contains(@href,'radicalshare.com')]");
  7933. }
  7934. if (GM_getValue("Check_sharemods_dot_com_links", false))
  7935. {
  7936. addFileHost(
  7937. "sharemods\.com\/\\w+",
  7938. 'name="method_free"',
  7939. 'File Not Found<',
  7940. 'optional--',
  7941. //'optional--',
  7942. "//a[contains(@href,'sharemods.com')]");
  7943. }
  7944. if (GM_getValue("Check_hostr_dot_co_links", false))
  7945. {
  7946. addFileHost(
  7947. "hostr\.co\/\\w+",
  7948. 'method="get"',
  7949. 'File not found<|error-page',
  7950. 'optional--',
  7951. //'optional--',
  7952. "//a[contains(@href,'hostr.co')]");
  7953. }
  7954. if (GM_getValue("Check_filepi_dot_com_links", false))
  7955. {
  7956. addFileHost(
  7957. "filepi\.com\/\\w+",
  7958. 'id="button_start">',
  7959. 'File not found',
  7960. 'optional--',
  7961. //'optional--',
  7962. "//a[contains(@href,'filepi.com')]");
  7963. }
  7964. if (GM_getValue("Check_tikfile_dot_com_links", false))
  7965. {
  7966. addFileHost(
  7967. "tikfile\.com\/\\w+",
  7968. 'btn_download',
  7969. 'File Not Found|file was removed|Reason for deletion',
  7970. 'optional--',
  7971. //'optional--',
  7972. "//a[contains(@href,'tikfile.com')]");
  7973. }
  7974. if (GM_getValue("Check_cloudsix_dot_me_links", false))
  7975. {
  7976. addFileHost(
  7977. "cloudsix\.me\/\\w+",
  7978. 'name="method_free"',
  7979. 'File Not Found|width:500px;text-align:left;">',
  7980. 'optional--',
  7981. //'optional--',
  7982. "//a[contains(@href,'cloudsix.me')]");
  7983. }
  7984. if (GM_getValue("Check_neodrive_dot_co_links", false))
  7985. {
  7986. addFileHost(
  7987. "neodrive\.co\/\\w+",
  7988. 'btn1" id="free_download|onclick="freeDownload|id="pwd_protected">',
  7989. 'File not found|/imgs/broken.png',
  7990. 'optional--',
  7991. //'optional--',
  7992. "//a[contains(@href,'neodrive.co')]");
  7993. }
  7994. if (GM_getValue("Check_chayfile_dot_com_links", false))
  7995. {
  7996. addFileHost(
  7997. "chayfile\.com\/\\w+",
  7998. 'name="method_free"',
  7999. 'File Not Found|<h3>The file was removed by administrator</h3>',
  8000. 'optional--',
  8001. //'optional--',
  8002. "//a[contains(@href,'chayfile.com')]");
  8003. }
  8004. if (GM_getValue("Check_xfileload_dot_com_links", false))
  8005. {
  8006. addFileHost(
  8007. "xfileload\.com\/\\w+",
  8008. 'Filename:|Имя файла:|Dateiname:|nom de fichier :|اسم الملف:|Dosya AdД±|Nazwa:|Nombre de fichero:|NamaFile:|Bestandsnaam:|שם קובץ:"',
  8009. '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..|הקובץ שחיפשת לא נמצא.',
  8010. 'optional--',
  8011. //'optional--',
  8012. "//a[contains(@href,'xfileload.com')]");
  8013. }
  8014. if (GM_getValue("Check_rockfile_dot_eu_links", false))
  8015. {
  8016. addFileHost(
  8017. "rockfile\.eu\/\\w+",
  8018. 'You have requested:',
  8019. 'The file you were looking for could not be found, sorry for any inconvenience.',
  8020. 'optional--',
  8021. //'optional--',
  8022. "//a[contains(@href,'rockfile.eu')]");
  8023. }
  8024. if (GM_getValue("Check_24uploading_dot_com_links", false))
  8025. {
  8026. addFileHost(
  8027. "24uploading\.com\/\\w+",
  8028. 'File:|Download Speed:',
  8029. '<b>File Not Found</b>|file was removed',
  8030. 'optional--',
  8031. //'optional--',
  8032. "//a[contains(@href,'24uploading.com')]");
  8033. }
  8034. if (GM_getValue("Check_tusfiles_dot_net_links", false))
  8035. {
  8036. addFileHost(
  8037. "tusfiles\.net\/\\w+",
  8038. 'i/icon/dll.png"|>Start download<br',
  8039. 'no longer available<|i/ino.png"',
  8040. 'optional--',
  8041. //'optional--',
  8042. "//a[contains(@href,'tusfiles.net')]");
  8043. }
  8044. if (GM_getValue("Check_jumbofile_dot_net_links", false))
  8045. {
  8046. addFileHost(
  8047. "jumbofile\.net\/\\w+",
  8048. 'button" class="" value="Free',
  8049. 'This File Was Deleted',
  8050. 'optional--',
  8051. //'optional--',
  8052. "//a[contains(@href,'jumbofile.net')]");
  8053. }
  8054. if (GM_getValue("Check_ozofiles_dot_com_links", false))
  8055. {
  8056. addFileHost(
  8057. "ozofiles\.com\/\\w+",
  8058. 'button" value="Free',
  8059. 'File Not Found|width:500px;text-align:left;">|File Deleted',
  8060. 'optional--',
  8061. //'optional--',
  8062. "//a[contains(@href,'ozofiles.com')]");
  8063. }
  8064. if (GM_getValue("Check_loudupload_dot_net_links", false))
  8065. {
  8066. addFileHost(
  8067. "loudupload\.net\/\\w+",
  8068. 'value="Get Links',
  8069. 'File Not Found',
  8070. 'optional--',
  8071. //'optional--',
  8072. "//a[contains(@href,'loudupload.net')]");
  8073. }
  8074. if (GM_getValue("Check_rapidsonic_dot_com_links", false))
  8075. {
  8076. addFileHost(
  8077. "(rapidsonic|fileparadox)\\.com\/\\w+",
  8078. 'method_free" id="submit_btn|<h4><i class="icon_document_alt"></i>Download File</h4>',
  8079. '>File Not Found<|id="no_filedownload">|>FILE NOT FOUND<|file has been deleted|No such file with this filename|style="font-size:24px;color:#E70012">',
  8080. 'optional--',
  8081. //'optional--',
  8082. "//a[contains(@href,'rapidsonic') or contains(@href,'3files.net/') or contains(@href,'fileparadox.com')]");
  8083. }
  8084. if (GM_getValue("Check_krotix_dot_net_links", false))
  8085. {
  8086. addFileHost(
  8087. "krotix\.net\/\\w+",
  8088. 'btn btn-warning|btn-free',
  8089. 'pageErrors|This File has been removed',
  8090. 'content="Scheduled Maintenance',
  8091. //'optional--',
  8092. "//a[contains(@href,'krotix.net')]");
  8093. }
  8094. if (GM_getValue("Check_userscloud_dot_com_links", false))
  8095. {
  8096. addFileHost(
  8097. "userscloud\.com\/\\w+",
  8098. 'btn_download',
  8099. '>Server OFFLINE|background:#D3D3D3;border-bottom:1px solid #BBB;font:bold 13px Verdana;padding:3px;">',
  8100. 'optional--',
  8101. //'optional--',
  8102. "//a[contains(@href,'userscloud.com')]");
  8103. }
  8104. if (GM_getValue("Check_kumpulbagi_dot_com_links", false))
  8105. {
  8106. addFileHost(
  8107. "kumpulbagi\.com\/\\w+",
  8108. 'class="button download',
  8109. 'internal server error',
  8110. 'optional--',
  8111. //'optional--',
  8112. "//a[contains(@href,'kumpulbagi.com')]");
  8113. }
  8114. if (GM_getValue("Check_faststore_dot_org_links", false))
  8115. {
  8116. addFileHost(
  8117. "faststore\.org\/\\w+",
  8118. 'name="method_free',
  8119. 'File Not Found',
  8120. 'optional--',
  8121. //'optional--',
  8122. "//a[contains(@href,'faststore.org')]");
  8123. }
  8124. if (GM_getValue("Check_prefiles_dot_com_links", false))
  8125. {
  8126. addFileHost(
  8127. "prefiles\.com\/\\w+",
  8128. 'id="method_free',
  8129. 'File not Found',
  8130. 'optional--',
  8131. //'optional--',
  8132. "//a[contains(@href,'prefiles.com')]");
  8133. }
  8134. if (GM_getValue("Check_doraupload_dot_com_links", false))
  8135. {
  8136. addFileHost(
  8137. "doraupload\.com\/\\w+",
  8138. 'btn_download',
  8139. 'class="error-code|Could Not Be Found',
  8140. 'optional--',
  8141. //'optional--',
  8142. "//a[contains(@href,'doraupload.com')]");
  8143. }
  8144. if (GM_getValue("Check_openload_dot_io_links", false))
  8145. {
  8146. addFileHost(
  8147. "openload\.io\/\\w+",
  8148. 'btn btn-primary|class="count">',
  8149. 'class="jumbotron">|We are sorry',
  8150. 'optional--',
  8151. //'optional--',
  8152. "//a[contains(@href,'openload.io')]");
  8153. }
  8154. if (GM_getValue("Check_uploads_dot_xxx_links", false))
  8155. {
  8156. addFileHost(
  8157. "uploads\.xxx\/\\w+",
  8158. 'downoadForFree',
  8159. 'File not found',
  8160. 'optional--',
  8161. //'optional--',
  8162. "//a[contains(@href,'uploads.xxx')]");
  8163. }
  8164. if (GM_getValue("Check_zxcfiles_dot_com_links", false))
  8165. {
  8166. addFileHost(
  8167. "zxcfiles\.com\/\\w+",
  8168. 'class="downloadbtn',
  8169. 'File Not Found',
  8170. 'optional--',
  8171. //'optional--',
  8172. "//a[contains(@href,'zxcfiles.com')]");
  8173. }
  8174. if (GM_getValue("Check_up07_dot_net_links", false))
  8175. {
  8176. addFileHost(
  8177. "up07\.net\/\\w+",
  8178. 'name="method_free',
  8179. 'File Not Found',
  8180. 'optional--',
  8181. //'optional--',
  8182. "//a[contains(@href,'up07.net')]");
  8183. }
  8184. if (GM_getValue("Check_fileupload_dot_pw_links", false))
  8185. {
  8186. addFileHost(
  8187. "fileupload\.pw\/\\w+",
  8188. 'value="Free"',
  8189. 'File Not Found',
  8190. 'optional--',
  8191. //'optional--',
  8192. "//a[contains(@href,'fileupload.pw')]");
  8193. }
  8194. if (GM_getValue("Check_4upld_dot_com_links", false))
  8195. {
  8196. addFileHost(
  8197. "4upld\.com\/\\w+",
  8198. 'alt="Download Now"|content="Download file">|btn-free-element',
  8199. '<title>Error|content="error|File not found',
  8200. 'optional--',
  8201. //'optional--',
  8202. "//a[contains(@href,'4upld.com')]");
  8203. }
  8204. if (GM_getValue("Check_newfileland_dot_com_links", false))
  8205. {
  8206. addFileHost(
  8207. "newfileland\.com\/\\w+",
  8208. 'name="method_free',
  8209. 'File Not Found',
  8210. 'optional--',
  8211. //'optional--',
  8212. "//a[contains(@href,'newfileland.com')]");
  8213. }
  8214. if (GM_getValue("Check_swoopshare_dot_com_links", false))
  8215. {
  8216. addFileHost(
  8217. "(?:.swoopshare)\\.com\/\\w+",
  8218. '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',
  8219. '<input type="file" name="f"',
  8220. 'optional--',
  8221. //'optional--',
  8222. "//a[contains(@href,'swoopshare.com')]"
  8223. );
  8224. }
  8225. if (GM_getValue("Check_cloudshares_dot_net_links", false))
  8226. {
  8227. addFileHost(
  8228. "cloudshares\.net\/\\w+",
  8229. '"method_free|"Low Speed Download|submit" name="go',
  8230. 'Not Found|"width:500px;text-align:left;">|No such file exist',
  8231. 'optional--',
  8232. //'optional--',
  8233. "//a[contains(@href,'cloudshares.net')]"
  8234. );
  8235. }
  8236. if (GM_getValue("Check_allmyvideos_dot_net_links", false))
  8237. {
  8238. addFileHost(
  8239. "allmyvideos\.net\/\\w+",
  8240. 'Continue to Video',
  8241. 'File Not Found|class="err">Removed for',
  8242. 'optional--',
  8243. //'optional--',
  8244. "//a[contains(@href,'allmyvideos.net')]"
  8245. );
  8246. }
  8247. if (GM_getValue("Check_vodlocker_dot_com_links", false))
  8248. {
  8249. addFileHost(
  8250. "vodlocker\.com\/\\w+",
  8251. 'Proceed to video',
  8252. 'Not Found',
  8253. 'optional--',
  8254. //'optional--',
  8255. "//a[contains(@href,'vodlocker.com')]"
  8256. );
  8257. }
  8258. if (GM_getValue("Check_vidbull_dot_com_links", false))
  8259. {
  8260. addFileHost(
  8261. "vidbull\.com\/\\w+",
  8262. 'Verifying Video Request',
  8263. 'File Not Found',
  8264. 'optional--',
  8265. //'optional--',
  8266. "//a[contains(@href,'vidbull.com')]");
  8267. }
  8268. if (GM_getValue("Check_novamov_dot_com_links", false))
  8269. {
  8270. addFileHost(
  8271. "novamov\.com\/\\w+",
  8272. 'For version detection',
  8273. 'file no longer exists',
  8274. 'optional--',
  8275. //'optional--',
  8276. "//a[contains(@href,'novamov.com')]"
  8277. );
  8278. }
  8279. if (GM_getValue("Check_filehoot_dot_com_links", false))
  8280. {
  8281. addFileHost(
  8282. "filehoot\.com\/\\w+",
  8283. 'Continue to watch',
  8284. 'File Not Found',
  8285. 'optional--',
  8286. //'optional--',
  8287. "//a[contains(@href,'filehoot.com')]"
  8288. );
  8289. }
  8290. if (GM_getValue("Check_stagevu_dot_com_links", false))
  8291. {
  8292. addFileHost(
  8293. "stagevu\.com\/\\w+",
  8294. 'Video Info',
  8295. 'No video with the provided',
  8296. 'optional--',
  8297. //'optional--',
  8298. "//a[contains(@href,'stagevu.com')]"
  8299. );
  8300. }
  8301. if (GM_getValue("Check_cloudtime_dot_to_links", false))
  8302. {
  8303. addFileHost(
  8304. "cloudtime\.to\/\\w+",
  8305. 'Download the video',
  8306. 'no longer exists',
  8307. 'optional--',
  8308. //'optional--',
  8309. "//a[contains(@href,'cloudtime.to')]"
  8310. );
  8311. }
  8312. if (GM_getValue("Check_streamin_dot_to_links", false))
  8313. {
  8314. addFileHost(
  8315. "streamin\.to\/\\w+",
  8316. 'id="btn_download',
  8317. 'Not Found|Copyright Infringement|File Deleted',
  8318. 'optional--',
  8319. //'optional--',
  8320. "//a[contains(@href,'streamin.to')]"
  8321. );
  8322. }
  8323. if (GM_getValue("Check_videoweed_dot_es_links", false))
  8324. {
  8325. addFileHost(
  8326. "videoweed\.es\/\\w+",
  8327. 'version detection',
  8328. 'no longer exists',
  8329. 'optional--',
  8330. //'optional--',
  8331. "//a[contains(@href,'videoweed.es')]"
  8332. );
  8333. }
  8334. if (GM_getValue("Check_nowvideo_dot_sx_links", false))
  8335. {
  8336. addFileHost(
  8337. "nowvideo\.sx\/\\w+",
  8338. 'Download this video',
  8339. 'no longer exists',
  8340. 'optional--',
  8341. //'optional--',
  8342. "//a[contains(@href,'nowvideo.sx')]"
  8343. );
  8344. }
  8345. if (GM_getValue("Check_thevideo_dot_me_links", false))
  8346. {
  8347. addFileHost(
  8348. "thevideo\.me\/\\w+",
  8349. 'Upgrade your account|Proceed to video',
  8350. 'File Not Found',
  8351. 'optional--',
  8352. //'optional--',
  8353. "//a[contains(@href,'thevideo.me')]"
  8354. );
  8355. }
  8356. if (GM_getValue("Check_gorillavid_dot_in_links", false))
  8357. {
  8358. addFileHost(
  8359. "gorillavid\.in\/\\w+",
  8360. 'Wait 5 seconds',
  8361. 'File Not Found',
  8362. 'optional--',
  8363. //'optional--',
  8364. "//a[contains(@href,'gorillavid.in')]"
  8365. );
  8366. }
  8367. if (GM_getValue("Check_thefile_dot_me_links", false))
  8368. {
  8369. addFileHost(
  8370. "thefile\.me\/\\w+",
  8371. 'Choose free or',
  8372. '',
  8373. 'optional--',
  8374. //'optional--',
  8375. "//a[contains(@href,'thefile.me')]"
  8376. );
  8377. }
  8378. if (GM_getValue("Check_vidzi_dot_tv_links", false))
  8379. {
  8380. addFileHost(
  8381. "vidzi\.tv\/\\w+",
  8382. 'video-embed-modal row',
  8383. 'File Not Found|file was deleted',
  8384. 'optional--',
  8385. //'optional--',
  8386. "//a[contains(@href,'vidzi.tv')]"
  8387. );
  8388. }
  8389. if (GM_getValue("Check_filenuke_dot_com_links", false))
  8390. {
  8391. addFileHost(
  8392. "filenuke\.com\/\\w+",
  8393. 'Download File',
  8394. 'Earn with us',
  8395. 'optional--',
  8396. //'optional--',
  8397. "//a[contains(@href,'filenuke.com')]"
  8398. );
  8399. }
  8400. if (GM_getValue("Check_vidto_dot_me_links", false))
  8401. {
  8402. addFileHost(
  8403. "vidto\.me\/\\w+",
  8404. 'Proceed to video',
  8405. 'Not Found',
  8406. 'optional--',
  8407. //'optional--',
  8408. "//a[contains(@href,'vidto.me')]"
  8409. );
  8410. }
  8411. if (GM_getValue("Check_vidspot_dot_net_links", false))
  8412. {
  8413. addFileHost(
  8414. "vidspot\.net\/\\w+",
  8415. 'Duration',
  8416. 'Removed for',
  8417. 'optional--',
  8418. //'optional--',
  8419. "//a[contains(@href,'vidspot.net')]"
  8420. );
  8421. }
  8422. if (GM_getValue("Check_sharesix_dot_com_links", false))
  8423. {
  8424. addFileHost(
  8425. "(?:sharesix\\.com|sharesix\\.net)\/\\w+",
  8426. 'Download File',
  8427. 'File Not Found',
  8428. 'optional--',
  8429. //'optional--',
  8430. "//a[contains(@href,'sharesix.com') or contains(@href,'sharesix.net/')]"
  8431. );
  8432. }
  8433. if (GM_getValue("Check_movpod_dot_in_links", false))
  8434. {
  8435. addFileHost(
  8436. "movpod\.in\/\\w+",
  8437. 'Continue',
  8438. 'File Not Found',
  8439. 'optional--',
  8440. //'optional--',
  8441. "//a[contains(@href,'movpod.in')]"
  8442. );
  8443. }
  8444.  
  8445. }
  8446. //start here
  8447.  
  8448. //hosts with direct download, so they must be requested for headers only
  8449. function initFileHostsHeadersOnly()
  8450. {
  8451. function addFileHostHeadersOnly(linkRegex, isAliveRegex, isDeadRegex, xpathEx, ispremRegex)
  8452. {
  8453. var host = new Array(5);
  8454. host[0] = linkRegex;
  8455. host[1] = isAliveRegex;
  8456. host[2] = isDeadRegex;
  8457. host[3] = xpathEx;
  8458. host[4] = ispremRegex;
  8459. http_file_hosts_headers_only.push(host);
  8460. }
  8461. if (GM_getValue("Check_uloziste_dot_com_links", false))
  8462. {
  8463. addFileHostHeadersOnly(
  8464. "(?:|files\\.)uloziste\\.com\/\\w+\/\\w+",
  8465. 'Connection: Keep-Alive',
  8466. 'Content-Length: 3857',
  8467. "//a[contains(@href,'uloziste.com')]"
  8468. )
  8469. }
  8470. if (GM_getValue("Check_adrive_dot_com_links", false))
  8471. {
  8472. addFileHostHeadersOnly(
  8473. "adrive\\.com\/public\/\\w+",
  8474. 'Connection: keep-alive',
  8475. 'orig_ref=deleted',
  8476. "//a[contains(@href,'adrive.com')]"
  8477. )
  8478. }
  8479. if (GM_getValue("Check_myupload_dot_dk_links", false))
  8480. {
  8481. addFileHostHeadersOnly(
  8482. "myupload\\.dk\/showfile\/\\w+",
  8483. 'Expires:',
  8484. 'squeeze1\\s+Vary',
  8485. "//a[contains(@href,'myupload.dk/showfile')]"
  8486. )
  8487. }
  8488. }
  8489. //CustomRules
  8490. //functions add...Host copied here
  8491. function addObsoleteHost(linkRegex, xpathEx)
  8492. {
  8493. var host = new Array(2);
  8494. host[0] = linkRegex;
  8495. host[1] = xpathEx;
  8496. http_file_hosts_obsolete.push(host);
  8497. }
  8498. function addFileHost(linkRegex, isAliveRegex, isDeadRegex, isUnavaRegex, xpathEx, tryLoop, ispremRegex)
  8499. {
  8500. var host = new Array(7);
  8501. host[0] = linkRegex;
  8502. host[1] = isAliveRegex;
  8503. host[2] = isDeadRegex;
  8504. host[3] = isUnavaRegex;
  8505. host[4] = xpathEx;
  8506. tryLoop ? host[5] = true : host[5] = false;
  8507. host[6] = ispremRegex;
  8508. http_file_hosts.push(host);
  8509. }
  8510. function addFileHostHeadersOnly(linkRegex, isAliveRegex, isDeadRegex, xpathEx, ispremRegex)
  8511. {
  8512. var host = new Array(5);
  8513. host[0] = linkRegex;
  8514. host[1] = isAliveRegex;
  8515. host[2] = isDeadRegex;
  8516. host[3] = xpathEx;
  8517. host[4] = ispremRegex;
  8518. http_file_hosts_headers_only.push(host);
  8519. }
  8520. //takes a fully built rules array and adds the rules to WARLC
  8521. function applyCustomRules(customRules)
  8522. {
  8523. if (!customRules) return;
  8524. var rules, r, i;
  8525. rules = customRules.rules;
  8526. for (i = 0 ; i < rules.length ; i++)
  8527. {
  8528. r = rules[i];
  8529. if (r.enabled)
  8530. {
  8531. switch (r.type)
  8532. {
  8533. case 'single':
  8534. addFileHost(r.urlregex, r.aliveregex, r.deadregex, r.unavaregex, r.premregex||'', r.xpath);
  8535. break;
  8536. case 'headers':
  8537. addFileHostHeadersOnly(r.urlregex, r.aliveregex, r.deadregex, r.xpath, r.premregex);
  8538. break;
  8539. case 'obsolete':
  8540. addObsoleteHost(r.urlregex, r.xpath)
  8541. break;
  8542. }
  8543. }
  8544. }
  8545. }
  8546.  
  8547.  
  8548. function initFileHostsCustom()
  8549. {
  8550. if (Custom_rules && Custom_rules_text)
  8551. {
  8552. var msg = '';
  8553. if (newVersion)
  8554. msg = 'New version of W.A.R. Links Checker detected.\n\n';
  8555. else if ((now - last_custom_rules_nag) >= 60*24*60*60*1000)
  8556. msg = '60 or more days have passed since this notification.\n\n';
  8557. if (msg && /^\s*@customrule(?:_obsolete)?\s/mi.test(Custom_rules_text))
  8558. {
  8559. GM_setValue('last_custom_rules_nag', ''+new Date().getTime()); //reset nag
  8560. msg +=
  8561. 'Either new version of W.A.R. Links Checker detected or 60 days passed since this notify.\n'+
  8562. 'Please check that your custom rules haven\'t been built into WARLC.\n'+
  8563. 'If not, please share them with us so they can be included in the next version! Built-in rules are always preferred.\n\n'+
  8564. 'We apologize for this annoying notification, but there is a reason to this.\n'+
  8565. 'Ideally, WARLC would check which of your custom rules have been included and disable them. '+
  8566. 'Unfortunately, there is no easy way to do that, but we don\'t want everybody to just use their custom rules '+
  8567. 'forever without ever checking if the built-in ones have been added/fixed. This is currently the only way '+
  8568. 'to remind you that you should try built-in rules, report missing/non-working ones and share your custom rules.';
  8569. setTimeout(function(){alert(msg)},0);
  8570. }
  8571. var customRules = parseCustomRules(Custom_rules_text);
  8572. if (customRules.warning || customRules.error)
  8573. alert('There were ' + customRules.error + ' errors, ' + customRules.warning + ' warnings, ' +
  8574. customRules.note + ' notes found during Custom Rules processing.\n' + customRules.rules.length + ' valid rules found.\n\n' +
  8575. JSON.stringify(customRules.info, null, ' '));
  8576. applyCustomRules(customRules);
  8577. }
  8578. }
  8579. //end of CustomRules processing
  8580.  
  8581.  
  8582.  
  8583. } //end of function start
  8584.  
  8585.  
  8586.  
  8587. function initClipBoardTools()
  8588. {
  8589. unsafeWindow.copyToClipboard = function(text)
  8590. {
  8591. try
  8592. {
  8593. this.netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
  8594.  
  8595. var str = Components.classes["@mozilla.org/supports-string;1"].
  8596. createInstance(Components.interfaces.nsISupportsString);
  8597. if (!str) return false;
  8598.  
  8599. str.data = text;
  8600.  
  8601. var trans = Components.classes["@mozilla.org/widget/transferable;1"].
  8602. createInstance(Components.interfaces.nsITransferable);
  8603. if (!trans) return false;
  8604.  
  8605. trans.addDataFlavor("text/unicode");
  8606. trans.setTransferData("text/unicode", str, text.length * 2);
  8607.  
  8608. var clipid = Components.interfaces.nsIClipboard;
  8609. var clip = Components.classes["@mozilla.org/widget/clipboard;1"].getService(clipid);
  8610. if (!clip) return false;
  8611.  
  8612. clip.setData(trans, null, clipid.kGlobalClipboard);
  8613. } catch (e) {
  8614. GM_log("Error copyToClipboard : " + e);
  8615. alert(e + "\n\nsigned.applets.codebase_principal_support must be set true in about:config")
  8616. }
  8617. }
  8618. }
  8619.  
  8620.  
  8621.  
  8622. //CustomRules
  8623.  
  8624. function escapeRegex(str)
  8625. {
  8626. return str.replace(/[\-\[\]{}()*+?.,\\\^$|#]/g, "\\$&");
  8627. }
  8628.  
  8629.  
  8630. //called internally from parseCustomRules.
  8631. //expected: rule object with array fields baseurl, alivematch etc, everything must already be checked for input errors
  8632. //returns the rule object with string fields urlregex, xpath, aliveregex etc built from the arrays
  8633. function makeCustomRule(rule)
  8634. {
  8635. function makeMatchRegex(arrmatch)
  8636. {
  8637. return escapeRegex(arrmatch.join('\n'))
  8638. .replace(/ +/g, '\\s+') //two or more spaces to any whitespace
  8639. .replace(/\n/g,'|'); //join together
  8640. }
  8641. if (rule.alivematch) rule.aliveregex = makeMatchRegex(rule.alivematch);
  8642. if (rule.deadmatch) rule.deadregex = makeMatchRegex(rule.deadmatch);
  8643. if (rule.unavamatch) rule.unavaregex = makeMatchRegex(rule.unavamatch);
  8644. if (rule.premmatch) rule.premregex = makeMatchRegex(rule.premmatch);
  8645. if (rule.baseurl)
  8646. {
  8647. var i, m, urlregex = [], xpath = [], len = rule.baseurl.length;
  8648. for (i = 0 ; i < len ; i++)
  8649. {
  8650. m = rule.baseurl[i].match(/^([a-z0-9\.-]+)(?: +([a-z \.]+) +)?(\/.*)$/);
  8651. if (m[2]) //baseurl in the form: example. com co.uk net /xxx
  8652. {
  8653. 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'])
  8654. urlregex.push( (m[1] + '(?:'+ m[2].replace(/\s+/g,'|') + ')').replace(/\./g,'\\.') + escapeRegex(m[3]) + '.'); //urlregex.push('example\\.(?:com|co\\.uk|net)/xxx.')
  8655. }
  8656. else //baseurl in the form: example.com/xxx
  8657. {
  8658. xpath.push(m[0]);
  8659. urlregex.push(escapeRegex(m[0]) + '.');
  8660. }
  8661. }
  8662. rule.xpath = "//a[contains(@href,'" + xpath.join("') or contains(@href,'") + "')]";
  8663. rule.urlregex = '(?:[a-z0-9\\.-]+\\.)?(?:' + urlregex.join('|') + ')';
  8664. }
  8665. return rule;
  8666. } //function makeCustomRule
  8667.  
  8668.  
  8669. /*
  8670. Takes a string containing custom link checking rules.
  8671. Returns an object with fields:
  8672. info - contains notes, warnings and errors found during parsing
  8673. rules - the array of custom rules
  8674. note, warning, error - number of each of them found during parsing
  8675. Format of the input string:
  8676. One command per line. Command format: @keyword parameter
  8677. Keywords:
  8678. @customrule, @customrule_obsolete, @customrule_headers - begin a new custom rule. Parameter: name of the rule
  8679. @#customrule, @#customrule_obsolete, @#customrule_headers - begin and parse this custom rule, but don't use it. Parameter: name of the rule
  8680. These keywords can be multiple (any of them will work):
  8681. @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...)
  8682. @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+
  8683. @alivelink, @deadlink - example links
  8684. @baseurl is always required, @alivematch and @deadmatch are required except for obsolete. @unavamatch is ignored for obsolete. @*link is optional.
  8685. Lines starting with // and empty lines are ignored.
  8686. Invalid parameters generate errors and those lines are skipped.
  8687. Other lines generate warnings, but are otherwise ignored (also those before the first @customrule line or inside a rule with invalid name).
  8688. Example:
  8689. @customrule filehost
  8690. @baseurl filehost.com/download/
  8691. @baseurl filehost2. com net /d?=
  8692. @alivematch id="download">
  8693. @deadmatch File not found
  8694. @deadmatch File deleted
  8695. */
  8696. function parseCustomRules(rulesStr)
  8697. {
  8698. var linenum, customRules = {'info': [], 'rules': [], 'note': 0, 'warning': 0, 'error': 0};
  8699. function addInfo(type, msg, ln){
  8700. customRules.info.push({'linenum':(ln===undefined ? linenum+1 : ln+1), 'type':type, 'msg':msg});
  8701. customRules[type]++;
  8702. }
  8703. var lines = rulesStr.match(/^(.*)$/gm); //split into array of lines
  8704. if (!lines) return null;
  8705. lines.push('@#customrule _'); //to save the last rule
  8706. var m, linecount = lines.length;
  8707. var keyword, param, constr, rule, err;
  8708. var TLD = '[a-z]{2,7}(?:\\.[a-z]{2,7})?';
  8709. var TLDorTLDlist = '(?:'+TLD+'| '+TLD+'(?: '+TLD+'){0,9} )'; //TLD or space-separated list of TLDs
  8710. var baseurlRE = new RegExp('^([a-z0-9-]{1,30}(?:\\.[a-z0-9-]{1,30}){0,2}\\.)'+TLDorTLDlist+'(/[^\'"\s\$]{0,50})$', 'i');
  8711. var constraints = {
  8712. 'baseurl': {
  8713. 'single': {'min': 1, 'max': 10, 'paramRE': baseurlRE},
  8714. 'headers': {'min': 1, 'max': 10, 'paramRE': baseurlRE},
  8715. 'obsolete': {'min': 1, 'max': 10, 'paramRE': baseurlRE}},
  8716. 'alivematch': {
  8717. 'single': {'min': 1, 'max': 10, 'paramRE': null},
  8718. 'headers': {'min': 1, 'max': 10, 'paramRE': null}},
  8719. 'deadmatch': {
  8720. 'single': {'min': 1, 'max': 10, 'paramRE': null},
  8721. 'headers': {'min': 1, 'max': 10, 'paramRE': null}},
  8722. 'unavamatch': {
  8723. 'single': {'min': 0, 'max': 10, 'paramRE': null}},
  8724. 'alivelink': {
  8725. 'single': {'min': 0, 'max': 10, 'paramRE': null},
  8726. 'headers': {'min': 0, 'max': 10, 'paramRE': null}},
  8727. 'deadlink': {
  8728. 'single': {'min': 0, 'max': 10, 'paramRE': null},
  8729. 'headers': {'min': 0, 'max': 10, 'paramRE': null},
  8730. 'obsolete': {'min': 0, 'max': 10, 'paramRE': null}}
  8731. };
  8732. for (linenum = 0 ; linenum < linecount ; linenum++)
  8733. {
  8734. //capturing groups: 1 23 4 5 6
  8735. m = lines[linenum].match(/^\s*(?:(\/\/.*)|@((#?)(customrule)(?:_(headers|obsolete))?|baseurl|alivematch|deadmatch|unavamatch|alivelink|deadlink)\s+(.+))?$/i);
  8736. if (m)
  8737. {
  8738. if (m[1] || !m[2])
  8739. continue; // ignore empty lines and lines starting with //
  8740. keyword = (m[4] || m[2]).toLowerCase();
  8741. param = m[6];
  8742. if (keyword == 'customrule')
  8743. {
  8744. //save the current rule if all required fields are provided
  8745. if (rule)
  8746. {
  8747. err = false;
  8748. $.each(constraints, function(kw, constraint){
  8749. var l, constr = constraint[rule.type];
  8750. if (constr)
  8751. {
  8752. l = rule[kw] ? rule[kw].length : 0;
  8753. if (l < constr.min || l > constr.max)
  8754. {
  8755. 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);
  8756. err = true;
  8757. }
  8758. }
  8759. });
  8760. if (!err)
  8761. customRules.rules.push(makeCustomRule(rule));
  8762. }
  8763. //start a new rule
  8764. if (/^[\w\.-]{1,30}$/.test(param)) //valid name?
  8765. {
  8766. rule = {
  8767. 'enabled': !m[3],
  8768. 'type': m[5] ? m[5].toLowerCase() : 'single',
  8769. 'name': param
  8770. };
  8771. }
  8772. else
  8773. {
  8774. addInfo('error', 'Invalid rule name. Cannot start a new rule definition.');
  8775. rule = null;
  8776. }
  8777. }
  8778. else //good line format, but keyword other than customrule
  8779. {
  8780. if (!rule)
  8781. {
  8782. addInfo('warning', 'Command outside @CUSTOMRULE definiton. Line skipped.');
  8783. continue;
  8784. }
  8785. if (constraints[keyword])
  8786. {
  8787. constr = constraints[keyword][rule.type];
  8788. if (constr)
  8789. {
  8790. if (constr.paramRE && !constr.paramRE.test(param))
  8791. {
  8792. addInfo('warning', 'Invalid @' + keyword.toUpperCase() + ' parameter. Line Skipped.');
  8793. continue;
  8794. }
  8795. }
  8796. else
  8797. {
  8798. addInfo('note', '@' + keyword.toUpperCase() + ' not applicable for type ' + rule.type.toUpperCase() + '. Line skipped.');
  8799. continue;
  8800. }
  8801. }
  8802. //line OK, save
  8803. rule[keyword] ? rule[keyword].push(param) : rule[keyword] = [param];
  8804. }
  8805. } //if (m)
  8806. else
  8807. addInfo('warning', 'Unknown line format. Line skipped.');
  8808. } //for loop
  8809. return customRules;
  8810. } //function parseCustomRules