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

detects live, dead and premium links.

当前为 2015-10-01 提交的版本,查看 最新版本

  1. //fixed free.fr false premium, fixed thevideo.me false premium
  2. // ==UserScript==
  3. // @name W.A.R. Links Checker Customized Premium Link Version
  4. // @description detects live, dead and premium links.
  5. // @details this script automatically checks links from hundreds of filehosts. For Firefox, Chrome, Opera, Safari.
  6. // @namespace premium version
  7. // @version 1.1.8.9
  8. // @icon http://sharenxs.com/photos/2014/02/14/52fd759db90ac/cooltext1428903746.png
  9. // @license GPL version 3 or any later version (http://www.gnu.org/copyleft/gpl.html)
  10. // @author mental
  11. // @include http://*
  12. // @include https://*
  13. // @include file:///*
  14. // @grant GM_setValue
  15. // @grant GM_getValue
  16. // @grant GM_xmlhttpRequest
  17. // @grant GM_log
  18. // @grant GM_addStyle
  19. // @grant GM_registerMenuCommand
  20. // @grant GM_getResourceText
  21. // @grant GM_info
  22. // @require https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js
  23. // @require https://ajax.googleapis.com/ajax/libs/jqueryui/1.9.1/jquery-ui.min.js
  24. // @resource jQueryUICSS https://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/smoothness/jquery-ui.css
  25. // @homepage http://www.warlc.5gbfree.com
  26. // @namespace http://www.warlc.5gbfree.com
  27. // @noframes
  28. // ==/UserScript==
  29.  
  30. //separate alternative domains with "|" char (first name is considered being main)
  31. var allHostNames = [
  32. "1fichier.com|dl4free.com",
  33. "openload.co",
  34. "uplea.com",
  35. "filenuke.com",
  36. "inafile.com",
  37. "vidto.me",
  38. "storefiles.co",
  39. "filehost.pw",
  40. "down4files.com",
  41. "vidspot.net",
  42. "turbobit.ru",
  43. "sharesix.com|sharesix.net",
  44. "movpod.in",
  45. "thefile.me",
  46. "vidzi.tv",
  47. "videoweed.es",
  48. "vodlocker.com",
  49. "nowvideo.sx",
  50. "cloudtime.to",
  51. "thevideo.me",
  52. "vidbull.com",
  53. "allmyvideos.net",
  54. "novamov.com",
  55. "filehoot.com",
  56. "stagevu.com",
  57. "gorillavid.in",
  58. "streamin.to",
  59. "4upld.com",
  60. "cloudshares.net",
  61. "swoopshare.com",
  62. "newfileland.com",
  63. "2shared.com",
  64. "fileupload.pw",
  65. "zxcfiles.com",
  66. "up07.net",
  67. "4shared.com",
  68. "adrive.com",
  69. "aisfile.com",
  70. "hexupload.com",
  71. "bezvadata.cz",
  72. "burnupload.com|burnupload.ihiphop.com",
  73. "xkeepfile.com|Gamesena.com",
  74. // "firedrive.com",
  75. "usersfiles.com",
  76. "pan.baidu.com",
  77. "radicalshare.com",
  78. "cramit.in|cramitin.net",
  79. "datei.to",
  80. "daten-hoster.de|filehosting.org|xtraupload.de",
  81. "demo.ovh.eu",
  82. "depositfiles.com|depositfiles.lt|depositfiles.org|dfiles.ru|dfiles.eu",
  83. "divshare.com",
  84. "easy-share.com|crocko.com",
  85. "easybytez.com",
  86. "edisk.cz",
  87. "euroshare.eu",
  88. "file-upload.net",
  89. "yadi.sk",
  90. "wizupload.com",
  91. "fastshare.cz",
  92. "filefactory.com",
  93. "share.vnn.vn",
  94. "yunpan.cn",
  95. "gulfup.com",
  96. "tropicshare.com",
  97. "cloudzilla.to",
  98. "inclouddrive.com",
  99. "fileflyer.com",
  100. "filerio.com|filekeen.com",
  101. "up.4share.vn",
  102. "upfile.vn",
  103. "datafilehost.com",
  104. "fileband.com",
  105. "worldbytez.com",
  106. "files.mail.ru",
  107. "filepost.com|fp.io",
  108. "filesflash.com",
  109. "box.com",
  110. "box.net",
  111. "goldbytez.com",
  112. "sdilej.cz",
  113. "ex-load.com",
  114. "filesmonster.com",
  115. "filestore.to",
  116. // "freakshare.net",
  117. "hulkload.com",
  118. "filedropper.com",
  119. "free-uploading.com",
  120. "gamefront.com|filefront.com",
  121. "gettyfile.ru",
  122. "gigapeta.com",
  123. "gigasize.com",
  124. "hellshare.com",
  125. "hellspy.com",
  126. "hitfile.net",
  127. "hostuje.net",
  128. "freefilehosting.net",
  129. "free.fr",
  130. "hulkshare.com",
  131. "hyperfileshare.com",
  132. "filecloud.io|ifile.it",
  133. "ifolder.ru",
  134. "jumbofiles.com",
  135. "uploadrocket.net",
  136. "lafiles.com",
  137. "leteckaposta.cz|sharegadget.com",
  138. "letitbit.net",
  139. "load.to",
  140. "mediafire.com",
  141. "megafileupload.com",
  142. "megashares.com",
  143. "movshare.net",
  144. "muchshare.net",
  145. "myupload.dk",
  146. "narod.ru|narod.yandex.ru",
  147. "netload.in",
  148. "fboom.me",
  149. "fileboom.me",
  150. "openfile.ru",
  151. "partage-facile.com",
  152. "plunder.com",
  153. // "putlocker.com",
  154. "sharerapid.cz",
  155. "exclusiveloader.com",
  156. "acefile.net",
  157. "queenshare.com",
  158. "quickshare.cz",
  159. "rapidgator.net",
  160. "keep2share.com",
  161. "oboom.com",
  162. "filepi.com",
  163. "neodrive.co",
  164. "rarefile.net",
  165. "rayfile.com",
  166. "rghost.net",
  167. "sendmyway.com",
  168. "clicknupload.com",
  169. "sharemods.com",
  170. "hostr.co",
  171. "sendspace.com",
  172. "sharecash.org",
  173. "share-links.biz",
  174. "share-online.biz|egoshare.com",
  175. "megarapid.cz",
  176. "shareflare.net",
  177. "solidfiles.com",
  178. "led.wf",
  179. "lan.wf",
  180. "adlink.wf",
  181. "click.tf",
  182. "kyc.pm",
  183. "ssh.tf",
  184. "ssh.yt",
  185. "yep.pm",
  186. "stahovanizasms.cz",
  187. "turbobit.net",
  188. "filecloud.cc",
  189. "tikfile.com",
  190. "cloudsix.me",
  191. "turboupload.com",
  192. "uloz.to|ulozto.cz|bagruj.cz|zachowajto.pl",
  193. "ulozisko.sk",
  194. "uloziste.com",
  195. "unibytes.com",
  196. "upload-il.net|przeslij.net",
  197. "uploaded.to|ul.to",
  198. "uploading.com",
  199. "chayfile.com",
  200. "rockfile.eu",
  201. "24uploading.com",
  202. "uploadspace.pl",
  203. "upnito.sk",
  204. "uptobox.com",
  205. "usaupload.net",
  206. "veehd.com",
  207. "videobb.com",
  208. "vip-file.com",
  209. "webshare.cz",
  210. "xdisk.cz",
  211. "yunfile.com|filemarkets.com",
  212. "ziddu.com",
  213. "krotix.net",
  214. "zippyshare.com",
  215. "rodfile.com",
  216. "migahost.com",
  217. "wikiupload.com",
  218. "uploadstube.de",
  219. "faststore.org",
  220. "flyfiles.net",
  221. "nowdownload.ch",
  222. "prefiles.com",
  223. "axifile.com",
  224. "rapidsonic.com|fileparadox.com",
  225. "hackerbox.org",
  226. "amonshare.com",
  227. "data.hu",
  228. "brupload.net",
  229. "userscloud.com",
  230. "netkups.com",
  231. "edoc.com",
  232. "xfileload.com",
  233. "jumbofile.net",
  234. "kumpulbagi.com",
  235. "uppit.com|up.ht",
  236. "downloadani.me",
  237. "filesabc.com",
  238. "180upload.com",
  239. "verzend.be",
  240. "movreel.com",
  241. "4up.me",
  242. "extmatrix.com",
  243. "sendfiles.nl",
  244. "yourfilestore.com",
  245. "filebig.net",
  246. "nekaka.com",
  247. "file4safe.com",
  248. "tusfiles.net",
  249. "filemac.com",
  250. "idup.in",
  251. "fileswap.com",
  252. "ozofiles.com",
  253. "loudupload.net",
  254. "nosupload.com",
  255. "gboxes.com",
  256. "myvdrive.com|fileserving.com",
  257. "filesin.com",
  258. "novafile.com",
  259. "longfiles.com",
  260. "uploadhero.com",
  261. "uploadbaz.com",
  262. "bitupload.com",
  263. "indowebster.com",
  264. "superload.cz",
  265. "mafiastorage.com",
  266. "4upfiles.com",
  267. "filesmelt.com",
  268. "hellupload.com",
  269. "uploadingit.com",
  270. "stiahni.si",
  271. "sendspace.pl",
  272. "fastshare.org",
  273. "filejoker.net",
  274. "filestore.com.ua",
  275. "secureupload.eu",
  276. "rapidfileshare.net",
  277. "stiahnito.sk",
  278. "rusfolder.com",
  279. "fileover.net",
  280. "catshare.net",
  281. "anonfiles.com",
  282. "mixturecloud.com",
  283. "fileparadox.in",
  284. "filedais.com",
  285. "imdb.com",
  286. "nitroflare.com",
  287. "akafile.com",
  288. "creafile.net",
  289. "hugefiles.net",
  290. "vidxden.com",
  291. "up.top4top.net",
  292. "upload.ee",
  293. "shareplace.org",
  294. "uploadc.com",
  295. "remixshare.com",
  296. "exoshare.com",
  297. "borncash.org",
  298. "junocloud.me",
  299. "keep2share.cc",
  300. "k2s.cc",
  301. "expressleech.com",
  302. "2downloadz.com",
  303. "mightyupload.com",
  304. "anysend.com",
  305. "datafile.com",
  306. "upstore.net",
  307. "upsto.re",
  308. "speedy.sh",
  309. "sanshare.com",
  310. "uploadhero.co",
  311. "ge.tt",
  312. "filesflash.net",
  313. "salefiles.com",
  314. "keep2s.cc",
  315. "megairon.net",
  316. "datoid.cz",
  317. "cloudstor.es",
  318. "streamfile.com",
  319. "eyesfile.ca",
  320. "filemoney.com",
  321. "uploadboy.com",
  322. "speedshare.eu",
  323. "google.com",
  324. "unlimitzone.com",
  325. "rioupload.com",
  326. "rg.to",
  327. "jumbofiles.org",
  328. "fshare.vn",
  329. "spaceforfiles.com",
  330. "up.media1fire.com",
  331. "depfile.com",
  332. "go4up.com",
  333. "dropbox.com",
  334. "redbunker.net",
  335. "divxpress.com",
  336. "mega.nz|mega.co.nz",
  337. "anafile.com",
  338. "uploadable.ch",
  339. "arabloads.net",
  340. "sharerepo.com",
  341. "sfshare.se",
  342. "files.fm",
  343. "koofile.com",
  344. "vidplay.net",
  345. "storagon.com",
  346. "doraupload.com",
  347. "openload.io",
  348. "geupload.com|lenfile.com",
  349. "uploads.xxx",
  350. ];
  351.  
  352. try
  353. {
  354. //iframes excluded
  355. if (window.top != window.self)
  356. {
  357. return;
  358. }
  359. //allHostNames sites excluded
  360. if (window.location.href.match("https?:\/\/(www\.)?[\w\.-]*(?:" +
  361. allHostNames.join("|").replace(/\./g, "\\.").replace(/-/g, "\\-") +
  362. ")"))
  363. {
  364. return;
  365. }
  366. }
  367. catch (e)
  368. {
  369. return;
  370. }
  371.  
  372. //separate alternative domains with "|" char (first name is considered being main)
  373. var allContainerNames = [
  374. "adf.ly",
  375. "linkcrypt.ws",
  376. "linksafe.me",
  377. "linksave.in",
  378. "linkto.net",
  379. "madlink.sk",
  380. "multiload.cz",
  381. "mirrorcreator.com",
  382. "ncrypt.in",
  383. "redi.re",
  384. "relink.us",
  385. "safelinking.net",
  386. "theloo.katt.it",
  387. "bit.ly",
  388.  
  389. ];
  390.  
  391. //separate alternative domains with "|" char (first name is considered being main)
  392. var allObsoleteNames = [
  393. "uloz.cz",
  394. "freakshare.com",
  395. "freakshare.net",
  396. "kingfiles.net",
  397. "daj.to",
  398. "bl.st",
  399. "2drive.net",
  400. "ryushare.com",
  401. "crisshare.com",
  402. "tufiles.ru",
  403. "uncapped-downloads.com",
  404. "sockshare.com",
  405. "ddlstorage.com",
  406. "dataport.cz",
  407. "dizzcloud.com",
  408. "sharebeast.com",
  409. "stahovadlo.cz",
  410. "shared.com",
  411. "storage.to",
  412. "putlocker.com",
  413. "lumfile.com",
  414. "lumfile.se",
  415. "lumfile.eu",
  416. "firedrive.com",
  417. "fileshare.in.ua",
  418. "filecore.co.nz",
  419. "iskladka.cz",
  420. "file-rack.com",
  421. "fast-load.net",
  422. "subory.sk",
  423. "bigandfree.com",
  424. "fileop.com",
  425. "mujsoubor.cz",
  426. "sendfile.to",
  427. "superfastfile.com",
  428. "quickyshare.com",
  429. "duckload.com",
  430. "uploadstore.net",
  431. "meinupload.com",
  432. "dualshare.com",
  433. "2xupload.to|2xupload.de",
  434. "oxedion.com",
  435. "uploadline.com",
  436. "dll.bz",
  437. "movieshare.in",
  438. "milledrive.com",
  439. "quickupload.net",
  440. "safelink.in",
  441. "metadivx.com",
  442. "divxlink.com",
  443. "uploadrack.com",
  444. "teradepot.com",
  445. "dataup.to",
  446. "upit.to",
  447. "driveway.com",
  448. "eatlime.com",
  449. "a2zuploads.com",
  450. "friendlyfiles.net",
  451. "flyfile.us",
  452. "speedyshare.com",
  453. "uploadspace.eu",
  454. "keepfile.com",
  455. "piggyshare.com",
  456. "uplly.com",
  457. "filecrown.com",
  458. "6giga.com",
  459. "uploadjockey.com",
  460. "bluehost.to",
  461. "filegu.ru",
  462. "filebase.to",
  463. "up-file.com",
  464. "xvideos.com",
  465. "ufox.com",
  466. "filebling.com",
  467. "loaded.it",
  468. "uploadcell.com",
  469. "uploadshare.cz",
  470. "mangoshare.com",
  471. "filestab.com",
  472. "crazyupload.com",
  473. "gaiafile.com",
  474. "sharejunky.com",
  475. "fileho.com",
  476. "bigandfree.com",
  477. "bigfile.in",
  478. "bigshare.eu",
  479. "dahosting.org",
  480. "digisofts.net",
  481. "file4save.com",
  482. "filechip.com",
  483. "filescloud.com",
  484. "saveqube.com",
  485. "turboshare.de",
  486. "z-upload.com",
  487. "youshare.com",
  488. "jiffyupload.com",
  489. "gigeshare.com",
  490. "datenklo.net",
  491. "upload.dj",
  492. "loadfiles.in",
  493. "upit.to",
  494. "dsfileshare.com",
  495. "sharesimple.net",
  496. "4files.net",
  497. "wooupload.com",
  498. "odsiebie.com",
  499. "filenavi.com",
  500. "3oof.com",
  501. "meshwaar.com",
  502. "maxupload.com",
  503. "share.cx",
  504. "atserver.eu",
  505. "hotfiles.ws",
  506. "esnips.com",
  507. "tuxfile.com",
  508. "file2upload.net",
  509. "filebling.com",
  510. "turboshare.com",
  511. "rarhost.com",
  512. "isharehd.com",
  513. "i741.com",
  514. "dataup.de",
  515. "fofly.com",
  516. "shareonall.com",
  517. "sexuploader.com",
  518. "megaupload.com|megavideo.com|megaporn.com|megarotic.com",
  519. "uploadhyper.com",
  520. "filespawn.com",
  521. "caizzii.com",
  522. "volnyweb.cz",
  523. "usershare.net",
  524. "filescash.net",
  525. "metahyper.com",
  526. "combozip.com",
  527. "x7.to",
  528. "uploadbox.com",
  529. "enterupload.com|flyupload.com",
  530. "filepoint.de",
  531. "mystream.to",
  532. "x-fs.com",
  533. "shareator.com",
  534. "srapid.eu",
  535. "sosame.cz",
  536. "filesdump.com",
  537. "2-klicks.de",
  538. "uploking.com",
  539. "silofiles.com",
  540. "upfile.in",
  541. "filehook.com",
  542. "uploadking.com",
  543. "uploadhere.com",
  544. "kewlshare.com",
  545. "rapidable.com",
  546. "uploadwaste.com",
  547. "filemup.com",
  548. "filesonic.com|sharingmatrix.com",
  549. "fileserve.com",
  550. "wupload.com",
  551. "skipfile.com",
  552. "smartuploader.com",
  553. "dualshare.com",
  554. "storeandserve.com",
  555. "mountfile.com",
  556. "transitfiles.com",
  557. "uploadstation.com",
  558. "filejungle.com",
  559. "shareshared.com",
  560. "quickyshare.com",
  561. "save.am",
  562. "petandrive.com",
  563. "file2box.com",
  564. "flyshare.cz",
  565. "yabadaba.ru",
  566. "cloudcache.cc",
  567. "yourfilehost.com",
  568. "jakfile.com",
  569. "kickload.com",
  570. "pyramidfiles.com",
  571. "refile.net",
  572. "zshare.net",
  573. "ddlani.me|ddlanime.com",
  574. "ftp2share.com",
  575. "fooget.com",
  576. "rapidhide.com",
  577. "gotupload.com",
  578. "mooload.com",
  579. "zupload.com",
  580. "mytempdir.com",
  581. "onionshare.com",
  582. "stahnu.to",
  583. "oron.com",
  584. "badongo.com",
  585. "filereactor.com",
  586. "filegaze.com",
  587. "4bytez.com",
  588. "1hostclick.com",
  589. "anonstream.com",
  590. "batshare.com",
  591. "bitroad.net",
  592. "brontofile.com",
  593. "cloudnxt.net",
  594. "cloudnator.com|shragle.com",
  595. "filesfrog.net",
  596. "coolshare.cz",
  597. "dotavi.com",
  598. "ezyfile.net",
  599. "file-bit.net",
  600. "filecosy.com",
  601. "fileduct.com|fileduct.net",
  602. "filefat.com",
  603. "filelaser.com",
  604. "filemashine.com",
  605. "fileserver.cc",
  606. "filetechnology.com",
  607. "fireuploads.net",
  608. "gigfiles.net",
  609. "holderfile.com",
  610. "ihostia.com",
  611. "k2files.com",
  612. "mojofile.com",
  613. "ovfile.com",
  614. "qshare.com",
  615. "shafiles.me",
  616. "sharefilehost.com",
  617. "shareupload.com",
  618. "stahuj.to",
  619. "ugotfile.com",
  620. "uploadboost.com",
  621. "fileom.com",
  622. "vidhog.com",
  623. "xfileshare.eu",
  624. "bzlink.us",
  625. "bulletupload.com",
  626. // "wizzupload.com",
  627. "bloggerarticles.com",
  628. "mojedata.sk",
  629. "sharpfile.com",
  630. "upgrand.com",
  631. "nasdilej.cz",
  632. "mediatack.cz",
  633. "share-it.to",
  634. "primeupload.com",
  635. "filebeer.info",
  636. "baberepublic",
  637. "xtu.me",
  638. "sharebase.de",
  639. "luckyshare.net",
  640. "filerobo.com",
  641. "filevelocity.com",
  642. "filezpro.com",
  643. "file4sharing.com",
  644. "cing.be",
  645. "ufile.eu",
  646. "pigsonic.com",
  647. "fileupped.com",
  648. "sharerun.com",
  649. "filesaur.com",
  650. "rapidslnare.com",
  651. "bestsharing.com",
  652. "savefiles.net",
  653. "file2share.biz",
  654. "filecache.de",
  655. "monsteruploads.eu",
  656. "b9bb.com",
  657. "aiotool.net",
  658. "jamber.info",
  659. "megaftp.com",
  660. "desiupload.net",
  661. "file27.com",
  662. "yastorage.com",
  663. "filehost.ws",
  664. "copyload.com",
  665. "venusfile.com",
  666. "aieshare.com",
  667. "terafile.co",
  668. "terafile.com",
  669. "fileza.net",
  670. "filerose.com",
  671. "squillion.com",
  672. "fileprohost.com",
  673. "bitbonus.com",
  674. "warserver.cz",
  675. "uload.to",
  676. "sharedbit.net",
  677. "megaload.it",
  678. "filewinds.com",
  679. "uploadcore.com",
  680. "syfiles.com",
  681. "eyesfile.com",
  682. "hotfile.com",
  683. "superupl.com",
  684. "oteupload.com",
  685. "henchfile.com",
  686. "filegag.com",
  687. "HenchFile.com",
  688. "filedefend.com",
  689. "share-rapid.com|rapids.cz|share-credit.cz|share-central.cz|share-ms.cz|share-net.cz|srapid.cz|share-rapid.cz",
  690. "megabitshare.com",
  691. "cloudzer.com",
  692. "asfile.com",
  693. "cloudzer.net",
  694. "clz.to",
  695. "extabit.com",
  696. "247upload.com",
  697. "2download.de",
  698. "4fastfile.com",
  699. "asixfiles.com",
  700. "berofile.com",
  701. "bigupload.com",
  702. "cepzo.com",
  703. "clouds.to",
  704. "cobrashare.sk",
  705. "coraldrive.net",
  706. "cyberlocker.ch",
  707. "czshare.com",
  708. "darkport.org",
  709. "dark-uploads.com",
  710. "davvas.com",
  711. "enigmashare.com",
  712. "erofly.cz",
  713. "fastsonic.net",
  714. "filebox.com",
  715. "filecity.net",
  716. "filedap.com",
  717. "filedino.com",
  718. "filedownloads.org",
  719. "filefolks.com",
  720. "fileking.co",
  721. "filemates.com",
  722. "files.to",
  723. "files2k.eu",
  724. "filesector.cc",
  725. "bitshare.com",
  726. "filesega.com",
  727. "filesend.net",
  728. "filestay.com",
  729. "filestrum.com",
  730. "fileuplo.de",
  731. "fileupup.com",
  732. "forunesia.com",
  733. "freeuploads.fr",
  734. "uploa.dk",
  735. "getthebit.com",
  736. "getzilla.net",
  737. "goldfile.eu",
  738. "good.com",
  739. "grupload.com",
  740. "hellfile.com",
  741. "hipfile.com",
  742. "hitfile.com",
  743. "hulkfile.eu|duckfile.net",
  744. "i-filez.com",
  745. "ifile.ws",
  746. "kupload.org",
  747. "packupload.com",
  748. "lemuploads.com",
  749. "limelinx.com",
  750. "maxshare.pl",
  751. "megarelease.org",
  752. "megashare.com",
  753. "minus.com",
  754. "mlfat4arab.com",
  755. "multishare.cz",
  756. "nirafile.com",
  757. "ok2upload.com",
  758. "peejeshare.com",
  759. "premiuns.org",
  760. "przeklej.net",
  761. "qkup.net",
  762. "rapidupload.sk",
  763. "rockdizfile.com",
  764. "rocketfile.net",
  765. "share-now.net",
  766. "share76.com",
  767. "sharebees.com",
  768. "sharefiles.co",
  769. "slingfile.com",
  770. "sms4file.com",
  771. "space4file.com",
  772. "tigershare.net",
  773. "toucansharing.com",
  774. "ubuntuone.com",
  775. "unextfiles.com",
  776. "upaj.pl",
  777. "upfile.biz",
  778. "uploadbin.net",
  779. "uploadic.com",
  780. "uploadinc.com",
  781. "uploading4u.eu",
  782. "uploadjet.net",
  783. "uploadorb.com",
  784. "upthe.net",
  785. "uptorch.com",
  786. "vidbox.yt",
  787. "videozer.com",
  788. "vreer.com",
  789. "wallobit.com",
  790. "zooupload.com",
  791. "privatefiles.com",
  792. "xerver.co",
  793. "BillionUploads.com",
  794. "rapidshare.com",
  795. "rapidshare.ru",
  796. "4savefile.com",
  797. "bayfiles.com",
  798. "bayfiles.net",
  799. "dodane.pl",
  800. "dotsemper.com",
  801. "egofiles.com",
  802. "epicshare.net",
  803. "fiberupload.net",
  804. "filemonkey.in",
  805. "filemonster.net",
  806. "filepom.com",
  807. "filesbb.com",
  808. "fileshareup.com",
  809. "filevice.com",
  810. "gigaup.fr",
  811. // "inafile.com",
  812. "isavelink.com",
  813. "loombo.com",
  814. "megafiles.se",
  815. "migupload.com",
  816. "mydisc.net",
  817. "nitrobits.com",
  818. "potload.com",
  819. "redload.net",
  820. "shareprofi.com",
  821. "sharesuper.info",
  822. "sinhro.net",
  823. "speedfile.cz",
  824. "speedshare.org",
  825. "storage.novoro.net",
  826. "swankshare.com",
  827. "swatupload.com",
  828. "upafile.com",
  829. "uploadmachine.com",
  830. "uploadsat.com",
  831. "upshared.com",
  832. "usefile.com",
  833. "yourfiles.to",
  834. "zomgupload.com",
  835. "ultramegabit.com",
  836. "uploadto.us",
  837.  
  838. ];
  839. ///////////////////////////////////////////////////////////////////////////////////////
  840. var firstRun = GM_getValue("First_run", true);
  841.  
  842. var chromeBrowser = /chrom(e|ium)/.test(navigator.userAgent.toLowerCase());
  843. //////////////////////////////////////////////////////////////////////////////////////
  844. try
  845. {
  846. var thisVersion = GM_info.script.version; //not supported in Scriptish and others
  847. var last_known_version = GM_getValue("last_known_version", "");
  848. if (!last_known_version)
  849. {
  850. last_known_version = thisVersion;
  851. GM_setValue("last_known_version", last_known_version);
  852. }
  853. //var newVersion = !(thisVersion == last_known_version);
  854. var newVersion = !(a.replace(/^(\d+\.\d+\.\d+).*/,'$1') == b.replace(/^(\d+\.\d+\.\d+).*/,'$1')); //true only if one of the first three numbers differs
  855. GM_setValue("last_known_version", thisVersion);
  856. }
  857. catch (err)
  858. {
  859. var newVersion = false;
  860. }
  861.  
  862. var now = (new Date()).getTime();
  863. var last_custom_rules_nag = GM_getValue('last_custom_rules_nag', 0);
  864. if (!last_custom_rules_nag)
  865. {
  866. last_custom_rules_nag = now;
  867. GM_setValue('last_custom_rules_nag', ''+now);
  868. }
  869.  
  870.  
  871. allHostNames.sort();
  872. allContainerNames.sort();
  873. allObsoleteNames.sort();
  874.  
  875. var RAND_STRING = "8QyvpOSsRG3QWq";
  876. var DEBUG_MODE = false;
  877.  
  878. var TOOLTIP_MAXWIDTH = 600; //in pixels
  879. var TOOLTIP_THUMBWIDTH = 200;
  880. var containers_processed = false;
  881.  
  882. //settings for keyboard functions start
  883. var CHECK_ALL_LINKS_KEY = "A";
  884. var CONFIGURATION_KEY = "C";
  885. var copy_to_dead_key = "D";
  886. var toggle_autocheck_key = "W";
  887. var toggle_Enable_Anonymizer_key = "Z";
  888. var first_key_keycode = '17'; // 18=ALT 16=Shift 17=Ctrl 32=SPACE_BAR 9=TAB
  889. var first_key_keycodename = 'CTRL';
  890. var second_key_keycode = '18';
  891. var second_key_keycodename = 'ALT';
  892. var CHECK_ALL_LINKS_KEYCODE = CHECK_ALL_LINKS_KEY.charCodeAt(0);
  893. var CONFIGURATION_KEYCODE = CONFIGURATION_KEY.charCodeAt(0);
  894. var copy_to_dead_keycode = copy_to_dead_key.charCodeAt(0);
  895. var toggle_autocheck_keycode = toggle_autocheck_key.charCodeAt(0);
  896. var toggle_Enable_Anonymizer_keycode = toggle_Enable_Anonymizer_key.charCodeAt(0);
  897. //settings for keyboard functions end
  898.  
  899. //global settings start
  900. var Show_black_background_in_DL_links, Show_line_through_in_dead_links, Color_DL_links;
  901. var Live_links_color, Dead_links_color, Temp_unavailable_links_color, Premium_links_color, Ref_anonymize_service;
  902. var Do_not_linkify_DL_links, Keyboard_functions, Autocheck, Enable_Anonymizer;
  903. var Show_progress_stats, Display_tooltip_info, Icon_set;
  904. var Progress_box_pos_bottom, Progress_box_pos_right, Progress_box_opacity, Progress_box_background_color, Progress_box_item_color;
  905. var Progress_box_refresh_rate;
  906. var Obsolete_file_hosts;
  907. var Custom_rules, Custom_rules_text;
  908.  
  909. var messageBox = document.createElement('b'); // top-left message box
  910.  
  911. var cLinksTotal = 0;
  912. var cLinksDead = 0;
  913. var cLinksAlive = 0;
  914. var cLinksUnava = 0;
  915. var cLinksprem = 0;
  916. var cLinksProcessed = 0;
  917.  
  918. var intervalId; //for updateProgress()
  919.  
  920. //icon resources
  921. 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+AXuRL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=';
  930.  
  931. var NEW_ICON_GREEN = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACGklEQVR42mNkIBcwMWQwsDMrMZKhlZmRi2mCWYtE9st1bx+SagAPlwTLCt+pot6vrv/8t7/mnQcpBsjI6jNvDp4uZvDuMw/D8uA7U39/+Z9DrAGG5r5Mmz06pKQ//BVnWJl89daL0z8MgeLfiDHAN6SAaZlhjjzP+x8SDAcX3P1zuueVDVD8JEiSkVOcZbWAJKPi8wu/q4H8nSgBzcyQl9jN1ifvp8z8+acQw50brxk2Rd1u+fvzfy1MDaN7DOO7ohnSgqe2Pf0/rYJh1/N7/0uB4tdYuRknJMzgzZYyV2L89pub4c3Xbwwb4q+de3/9pwVQ/jfcAGYWhrJ5x207ZdSFGB59Ockwb+L3vydX/7oRPYFPW05DnuHbb1aGD79+MRyZev/H9TlvTIB6riK7EhQGbNr2rJe714eq/fjLwPD8x22GO5/eM/CzijN8BdoD0nz3/FuG/an3Sv7/ZehFDyBYIHplzFHcYullyPjp13eGj79/MHwEagRpfvPpB8OuuJsHvz785QRU9w+XAQwCMkyby3aZ+/xj5YBr/vDzD8OpngefHq55rw9U8gBbFCFHo4pljvAV60x19o+/fgMN+cNw79h7hjNFD5IZ/jPMwxXHKOmAmYOxPWCNWgWzKBfDm7c/GY4m3Nr089Uff3yJBD0h8Ug68tzQbVCUvtD66PWrXR91gWIvSTEABOw5pNlKfjz91QNkHySUTAGg7t0uvj1ytQAAAABJRU5ErkJggg==';
  932. var NEW_ICON_RED = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAA6klEQVQ4jbWTwWrCQBRFz6Rxnay6iuAXlJIg+BHZZR/d6++4t/5MpRQRf8CCrurGrDP6uumESTol04J3dbmPd7hvYBTAG5QBzIFH/PQpsBzDWm2gDGEFKM9lIxGYBSEsustRnpPWNZkImQip1sRF0QUoBQv1DgdgZE9SrdmGIX0Z8NFK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0V8YWLgU+Ew3OUllo4jgd4D+4AtYdsc7/DVQOMxSNW5cNClGD+Fu41dOZlKDMLmELrOUIhjeN48HpngTnMbDeWjIeHnsvbz98YXqxguumuazdDOs0HjAETRKNjuFyzTE9PAOO//Xm27lvN4b1c8htkAXC2jrKHN5gVSRcRW0SCIpIj/f2ZAkhTkykiOYu+SLa8e6qkeRNXALh5nEc/phARnaSJSSUnO5G+B8tnIkr6rjMTSqfMZQXZ9vE1xGKJpPe4DDjXAYkEjAwmzwwDLIv0NZlE1MYAjsQoAOL8C5rY2AxPlIjwP/wcACKn3tWfrwJ4AAAAAElFTkSuQmCC';
  934. var NEW_ICON_PINK = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABUklEQVQ4jY3TsUuWURQG8F8WEvFNDREfIg5RURAOIeL0DhJBS0tDY9BQQ0Oj29kiIvoDhBpFQRTUD1GKi0sRtEs0SEQ0RBQIRcVXw3eF6+vrWwcunPvc53nuPffcS0uEmA0x38Y5cohwGjOYxBBe4VGI3j8NQlzHYhaW0cfNEAslWCfBw4yvYhkv8hjCgxD7yMdquw/jbJ4+xq2cz+AKdrJRv9EAv/EDx3Ft75QhtrHdcFpHy0mS/lSqcVzAFM7he6XaTNLXJoOmS+ziOc4XcB893A3xodUgm5zAHdzHSLH0DhdD/GwsoSjlV5Je5nK+YQUTOInXSXq7x6134RQuo4unGf6Me7iKMxgrNfUuXMJazr8U+DA6Of/UZrCF9xjFM3zELpZwOptulIKmLlQGNXdqS7u4EWK9BA9cYpJ2KtWcwaMazcInuB3iTZ3fGv/znf8CBMxX4hrPUbUAAAAASUVORK5CYII=';
  935.  
  936. //global settings end
  937. if (window.opera && !window.console)
  938. {
  939. window.console = {};
  940.  
  941. function fn()
  942. {
  943. opera.postError(arguments);
  944. };
  945. ['log', 'debug', 'info', 'warn', 'error', 'assert', 'dir', 'dirxml', 'group', 'groupEnd', 'time', 'timeEnd', 'count', 'trace', 'profile', 'profileEnd'].forEach(function (name)
  946. {
  947. window.console[name] = fn;
  948. });
  949. }
  950.  
  951. //displays colored text in message box
  952. function sendMessage(text, color)
  953. {
  954. var msgDiv = document.createElement('div');
  955. msgDiv.style.color = color;
  956. msgDiv.innerHTML = text;
  957. messageBox.appendChild(msgDiv);
  958. setTimeout(function(){messageBox.removeChild(msgDiv)}, 3000);
  959. }
  960.  
  961. function linkify(totalourls)
  962. { // code from http://userscripts.org/scripts/review/2254 Linkify ting
  963. var ikkeTilladteTags;
  964. var allLinksRegex = "(?:http:\/\/.+?\\?)?(?:https?:\/\/)?"
  965. + "[0-9A-Za-z]+(?:[\\.-][0-9A-Za-z]+)*\\.[A-Za-z]+/" //instead of totalourls
  966. + "[\\w\\–\\-\\.+$!*\\/()\\[\\]\',~%?:@#&=\\\\\\—;…×Ã\\_\\u0080-\\u03FF’‘" + (Allow_spaces_in_DL_links ? "\\u0020" : "") + "]*";
  967. allLinksRegex = new RegExp(allLinksRegex, "g");
  968. var regexy = "^(?:http:\/\/.+?\\?)?(?:https?:\/\/)?(?:www\\.)?(?:" + totalourls + ")";
  969.  
  970. if (Do_not_linkify_DL_links)
  971. ikkeTilladteTags = ['a', 'head', 'script', 'style', 'title', 'option', 'iframe', 'textarea', 'span']; //tags, hvor det der stAΞ’Β¥r inden i ikke skal vAΞ’Β¦re links
  972. else
  973. ikkeTilladteTags = ['a', 'head', 'script', 'style', 'title', 'option', 'iframe', 'textarea']; //tags, hvor det der stAΞ’Β¥r inden i ikke skal vAΞ’Β¦re links
  974.  
  975. var regex = new RegExp(regexy);
  976. var textNode, muligtLink;
  977.  
  978. var path = "//text()[not(parent::" + ikkeTilladteTags.join(" or parent::") + ") and contains(.,'/')]";
  979. var textNodes = document.evaluate(path, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  980.  
  981. var i = textNodes.snapshotLength;
  982. while (i--)
  983. {
  984. textNode = textNodes.snapshotItem(i);
  985.  
  986. muligtLink = textNode.nodeValue; //all links on page
  987.  
  988. var myArray = null;
  989. var span = null;
  990. var lastLastIndex = 0;
  991. allLinksRegex.lastIndex = 0;
  992. if (/^https?:\/\/~[\w\s\~]*\//.test(muligtLink))
  993. {
  994. if (textNode.parentNode.className == "adead_link") continue;
  995. var censoredLink = muligtLink;
  996. var span = document.createElement('span');
  997. span.className = "adead_link";
  998. $(span).attr('warlc_error', "Cause of error: <b>Censored link.</b>");
  999. $(span).html(censoredLink);
  1000. span.addEventListener("mouseover", displayTooltipError, false);
  1001. cLinksTotal++; cLinksProcessed++; cLinksDead++;
  1002. textNode.parentNode.replaceChild(span, textNode);
  1003. continue;
  1004. alert(censoredLink);
  1005. }
  1006. while (myArray = allLinksRegex.exec(muligtLink)) //find all links
  1007. {
  1008. if (!regex.test(myArray[0])) //this link is not recognized
  1009. {
  1010.  
  1011. continue;
  1012. }
  1013. if (!span)
  1014. span = document.createElement('span');
  1015.  
  1016. var link = myArray[0];
  1017. span.appendChild(document.createTextNode(muligtLink.substring(lastLastIndex, myArray.index))); //inds?t det der kommer for dette hit
  1018.  
  1019. var $a = $("<a>" + link + "</a>")
  1020. if (!link.match(/https?:\/\//))
  1021. {
  1022. link = 'http://' + link;
  1023. }
  1024.  
  1025. $a.attr("href", link.replace(/\[\/hide:\w+\]/,""))
  1026. .addClass("processing_link")
  1027. .appendTo(span);
  1028. lastLastIndex = allLinksRegex.lastIndex;
  1029. }
  1030. if (span)
  1031. {
  1032. span.appendChild(document.createTextNode(muligtLink.substring(lastLastIndex))); //ins?t det der kommer efter sidste hit
  1033. textNode.parentNode.replaceChild(span, textNode);
  1034. }
  1035. }
  1036. }
  1037.  
  1038. function add_WARLC_style()
  1039. {
  1040. if (!(document.getElementsByTagName('WARLC')[0]))
  1041. {
  1042. var meta_not_to_add_more_style = document.createElement("WARLC");
  1043. meta_not_to_add_more_style.setAttribute('content', 'war_links_checker');
  1044. meta_not_to_add_more_style.setAttribute('name', 'description');
  1045. document.getElementsByTagName('head')[0].appendChild(meta_not_to_add_more_style);
  1046. alive_link_png = "";
  1047. adead_link_png = "";
  1048. unava_link_png = "";
  1049. prem_link_png = "";
  1050. switch(Icon_set)
  1051. {
  1052. //no icons
  1053. case 0: break;
  1054. // cat paws
  1055. case 1: alive_link_png = PAW_ICON_GREEN;
  1056. adead_link_png = PAW_ICON_RED;
  1057. unava_link_png = PAW_ICON_YELLOW;
  1058. prem_link_png = PAW_ICON_PINK;
  1059. break;
  1060. // classic RSLC look
  1061. case 2: alive_link_png = RSLC_ICON_GREEN;
  1062. adead_link_png = RSLC_ICON_RED;
  1063. unava_link_png = RSLC_ICON_YELLOW;
  1064. prem_link_png = RSLC_ICON_PINK;
  1065. break;
  1066. // New Icons
  1067. case 3: alive_link_png = NEW_ICON_GREEN;
  1068. adead_link_png = NEW_ICON_RED;
  1069. unava_link_png = NEW_ICON_YELLOW;
  1070. prem_link_png = NEW_ICON_PINK;
  1071. break;
  1072. // cat paws
  1073. default:alive_link_png = PAW_ICON_GREEN;
  1074. adead_link_png = PAW_ICON_RED;
  1075. unava_link_png = PAW_ICON_YELLOW;
  1076. prem_link_png = PAW_ICON_PINK;
  1077. break;
  1078. }
  1079. processing_link_gif = 'data:image/gif;base64,' + // or temporary anavailable
  1080. 'R0lGODlhCgAKAJEDAMzMzP9mZv8AAP///yH/C05FVFNDQVBFMi4wAwEAAAAh+QQFAAADACwAAAAACgAKAAACF5wncgaAGgJzJ647cWua4sOBFEd62VEAACH5BAUAAAMALAEAAAAIAAMAAAIKnBM2IoMDAFMQFAAh+QQFAAADACwAAAAABgAGAAACDJwHMBGofKIRItJYAAAh+QQFAAADACwAAAEAAwAIAAACChxgOBPBvpYQYxYAIfkEBQAAAwAsAAAEAAYABgAAAgoEhmPJHOGgEGwWACH5BAUAAAMALAEABwAIAAMAAAIKBIYjYhOhRHqpAAAh+QQFAAADACwEAAQABgAGAAACDJwncqi7EQYAA0p6CgAh+QQJAAADACwHAAEAAwAIAAACCpRmoxoxvQAYchQAOw%3D%3D';
  1081.  
  1082. var dead_color_css, live_color_css, unava_color_css, prem_color_css, black_background_css;
  1083.  
  1084. if (Color_DL_links)
  1085. {
  1086. dead_color_css = 'color:' + Dead_links_color + ' !important;';
  1087. live_color_css = 'color:' + Live_links_color + ' !important;';
  1088. unava_color_css = 'color:' + Temp_unavailable_links_color + ' !important;';
  1089. container_color_css = 'color:' + Container_links_color + ' !important;';
  1090. prem_color_css = 'color:' + Premium_links_color + ' !important;';
  1091. }
  1092. else
  1093. {
  1094. dead_color_css = live_color_css = unava_color_css = container_color_css = prem_color_css = '';
  1095. }
  1096.  
  1097. if (Show_black_background_in_DL_links)
  1098. {
  1099. black_background_css = 'background-color: black !important;';
  1100. }
  1101. else
  1102. {
  1103. black_background_css = '';
  1104. }
  1105.  
  1106. if (Show_line_through_in_dead_links)
  1107. {
  1108. line_through_css = 'text-decoration: line-through !important;';
  1109. }
  1110. else
  1111. {
  1112. line_through_css = '';
  1113. }
  1114.  
  1115. GM_addStyle(".alive_link {background:transparent url(" + alive_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;" + live_color_css + black_background_css + "}");
  1116. 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 + "}");
  1117. GM_addStyle(".unava_link {background:transparent url(" + unava_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;" + unava_color_css + black_background_css + "}");
  1118. GM_addStyle(".processing_link {background:transparent url(" + processing_link_gif + ") no-repeat scroll 100% 50%;padding-right:15px;" + container_color_css + black_background_css + "}");
  1119. GM_addStyle(".container_link {background:transparent url(" + processing_link_gif + ") no-repeat scroll 100% 50%;padding-right:15px;" + container_color_css + black_background_css + "}");
  1120. GM_addStyle(".container_list {font-size:90%; list-style-type:square; padding: 0px 5% 0px; margin: 0px}");
  1121. GM_addStyle(".prem_link {background:transparent url(" + prem_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;" + prem_color_css + black_background_css + "}");
  1122. }
  1123. }
  1124.  
  1125. var warlcTooltip = null;
  1126. var mouseoverLink = null; //link href with mouse cursor over it
  1127.  
  1128. var lastX = 0;
  1129. var lastY = 0;
  1130.  
  1131. $(document).ready(initTooltip);
  1132. //inits tooltip
  1133. function initTooltip()
  1134. { warlcTooltip = document.createElement("div");
  1135. 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;");
  1136. warlcTooltip.style.visibility = "hidden";
  1137. document.body.appendChild(warlcTooltip);
  1138. }
  1139.  
  1140. //"mousemove" event handler for all links
  1141. function moveTooltip(event)
  1142. {
  1143. if ((Math.abs(lastX - event.clientX) + Math.abs(lastY - event.clientY)) < 6)
  1144. { //no need to reflow if the cursor moved just a little
  1145. return;
  1146. }
  1147. else
  1148. {
  1149. lastX = event.clientX;
  1150. lastY = event.clientY;
  1151. }
  1152.  
  1153. posX = event.clientX + window.pageXOffset + 10;
  1154. posY = event.clientY + window.pageYOffset;
  1155. var ttHeight = warlcTooltip.offsetHeight;
  1156. var ttFreeSpace = window.innerHeight - event.clientY;
  1157. if (ttHeight > ttFreeSpace)
  1158. { //prevents tooltip from getting out of the window
  1159. posY -= (ttHeight - (ttFreeSpace)) + 10;
  1160. }
  1161. else
  1162. {
  1163. posY += 7;
  1164. }
  1165. warlcTooltip.style.top = posY + "px";
  1166. warlcTooltip.style.left = posX + "px";
  1167. }
  1168.  
  1169. //"mouseout" event handler for all links
  1170. function hideTooltip(){
  1171. warlcTooltip.style.visibility = "hidden";
  1172. mouseoverLink = null;
  1173. }
  1174.  
  1175.  
  1176. //"mouseover" event handler for dead links
  1177. //displays tooltip error message on dead links
  1178. function displayTooltipError()
  1179. {
  1180. mouseoverLink = this.href;
  1181. this.addEventListener("mouseout", hideTooltip);
  1182. this.addEventListener("mousemove", function(event) { moveTooltip(event); });
  1183. warlcTooltip.innerHTML = '<b>LOADING...</b>';
  1184. warlcTooltip.style.minWidth = 0;
  1185. warlcTooltip.style.visibility = "visible";
  1186. if (this.warlc_error) //an error message is already known and stored in warlc_error attribute
  1187. {
  1188. warlcTooltip.innerHTML = this.warlc_error;
  1189. }
  1190. else
  1191. {
  1192. loadErrorInfo(this);
  1193. }
  1194. function loadErrorInfo(link)
  1195. {
  1196. var href = link.href;
  1197. href = href.replace(/quickshare\.cz\/.+/, "quickshare.cz/chyba");
  1198. GM_xmlhttpRequest({
  1199. method: 'GET',
  1200. url: href.replace(Ref_anonymize_service, ""),
  1201. headers: {
  1202. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1203. 'Accept': 'text/xml',
  1204. 'Referer': ""
  1205. },
  1206. onload: function(result) {
  1207. var res = result.responseText;
  1208. //TODO: errorRegexs -
  1209. var errorRegexs = [ //generic error messages follow
  1210. /(empty directory)/i,
  1211. /(soubor nebyl nalezen)/i,
  1212. /((?:file|page|link|folder)(?:is|not|does|has been|was| ){1,}(?:found|available|blocked|exists?|deleted|removed))/i,
  1213. //server specific error messages follow
  1214. /msg error" style="cursor: default">(.+?)<\/div>/, //sendspace
  1215. /color:red;font\-weight:bold;border\-style:dashed;font-size:12px;border\-width:2px;><tr><td align=center>(.+?)<\/td>/, //fastshare
  1216. /(Takový soubor neexistuje. Je možné, že byl již smazán.)/, //quickshare
  1217. /file_info file_info_deleted">\s*<h1>(.+?)<\/h1>/, //filepost
  1218. /<br \/>\s*<p style="color:#000">(.+?)<\/p>\s*<\/center>/, //letitbit
  1219. /(?:error_div">|<\/h1><p>)<strong>(.+?)<\/strong>/, //share-rapid,quickshare
  1220. /class="red">(.+?)<(?:span|br)>/, //czshare, megashares
  1221. /class="wp640">\s*<h1 class="h1">(.+?)<\/h1>/, //uloz.to
  1222. /not-found">\s*<p>(.+?)<\/p>/, //bayfiles
  1223. /(Your file could not be found. Please check the download link.)/, //stahnu.to
  1224. /error_msg">\s*(<h3>.+?<\/h3><ul>(.+?)<\/ul>)/, //edisk
  1225. /id="obsah">\s*<h2>(.+?)<\/h2>/, //euroshare
  1226. /error">\s*(?:<[bp]>)?\s*(.+?)<\/[bp]>/, //filesmonster, shragle, gigapeta
  1227. ///center aC">\s*<h1>(.+?)<br \/>/, //uploaded.to
  1228. /icon_err">\s*<h1>(.+?)<\/h1>/, //filejungle
  1229. /Code: ER_NFF_\d+<\/h2>\s*(.+?)\s*<\/div>/, //netload
  1230. /(File has been removed due to Copyright Claim)/, //filerio
  1231. ];
  1232. var errorIdx = errorRegexs.length;
  1233. var error = "Cause of error: <b>unknown</b>";
  1234. var errorCandidate = "";
  1235. while(errorIdx--)
  1236. {
  1237. var errorCandidate = res.match(errorRegexs[errorIdx]);
  1238. if (errorCandidate != null)
  1239. {
  1240. error = "Cause of error: <b>" + errorCandidate[1].replace(/&nbsp;/g," ") + "</b>";
  1241. break;
  1242. }
  1243. }
  1244. //link attributes
  1245. link.warlc_error = error;
  1246. if (mouseoverLink == link.href) //mouse cursor is still over the link
  1247. {
  1248. warlcTooltip.innerHTML = error;
  1249. }
  1250. }
  1251. });
  1252. }
  1253. }
  1254.  
  1255. //"mouseover" event handler for alive links
  1256. //displays tooltip info (file size, file name,...) on alive links
  1257. function displayTooltipInfo()
  1258. {
  1259. mouseoverLink = this.href;
  1260. //exclude direct download filehostings
  1261. 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)/))
  1262. {
  1263. return;
  1264. }
  1265. this.addEventListener("mouseout", hideTooltip);
  1266. this.addEventListener("mousemove", function(event) { moveTooltip(event); });
  1267. warlcTooltip.innerHTML = '<b>LOADING...</b>';
  1268. warlcTooltip.style.minWidth = 0;
  1269. warlcTooltip.style.visibility = "visible";
  1270. if (this.warlc_tooltipcache) //file size is already known and stored in warlc_filename and warlc_filesize attributes
  1271. {
  1272. warlcTooltip.innerHTML = this.warlc_tooltipcache;
  1273. }
  1274. else
  1275. {
  1276. loadInfo(this);
  1277. }
  1278. function loadInfo(link)
  1279. {
  1280. var href = link.href;
  1281. GM_xmlhttpRequest({
  1282. method: 'GET',
  1283. url: href.replace(Ref_anonymize_service, ""),
  1284. headers: {
  1285. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1286. 'Accept': 'text/xml',
  1287. 'Referer': ""
  1288. },
  1289. onload: function(result) {
  1290. var res = result.responseText;
  1291. var nameRegexs = [ /Filename: <b class="f_arial f_14px">(.+?)<\/b>/, //oron
  1292. /(?:finfo|file[-_]?name)">\s*(.+?)<\/?(?:h1|a|div|span style|td)/, //hellshare, netload, badongo, 4fastfile
  1293. /fl" title="(.+?)">/, //edisk
  1294. /<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
  1295. /<h3>Stahujete soubor: <\/h3>\s*<div class="textbox">(.+?)<\/div>/, //webshare
  1296. /<h3><b><span style=color:black;>(.+?)<\/b><\/h3><br>/, //fastshare
  1297. /title="download (.+?)">/, //sendspace
  1298. /Stáhnout soubor: (.+?)<\/h1>/, //quickshare
  1299. /fz24">Download:\s*<strong>(.+?)<\/strong>/, //crocko
  1300. // /'file\-icon\d+ \w+'>(?:<\/span><span>)?(.+?)<\/span>/, //hitfile, turbobit
  1301. /d0FileName = "(.+?)";/, //letitbit
  1302. /file(?:_name|-info)" title="">\w+: <span>(.+?)<\/span>/, //vip-file, shareflare
  1303. /recent-comments"><h2>(.+) &nbsp;/, //xdisk
  1304. /fname" value="(.+?)">/, //syfiles, grupload,
  1305. /download\-header">\s*<h2>File:<\/h2>\s*<p title="(.+?)">/, //bayfiles
  1306. /description">\s*<p><b>Soubor: (.+?)<\/b>/, //bezvadata
  1307. /Complete name : (.+?)<br \/>/, //bezvadata
  1308. /itemprop="name">(.+?)<\/span>/, //bezvadata
  1309. ];
  1310. var nameIdx = nameRegexs.length;
  1311. // [sizeRegexs]
  1312. // / \ \?
  1313. // prefix (size) postfix
  1314. // / \
  1315. // val quant
  1316. var quantRegex = '(?:M|G|K)?i?(?:B)(?:[y|i]te?s?)?';
  1317. var valRegex = '\\d+(?:[\\., ]\\d+){0,2}'; // 111([., ]222)?([., ]333)?
  1318. var uniSizeRegex = valRegex + '(?:\\s*|&nbsp;)' + quantRegex;
  1319. var preSizeRegex = '(?::|\\(|>|>, | - )';
  1320. var postSizeRegex = '(?:\\))?';
  1321. var sizeRegexs = [ preSizeRegex + "\\s*(" + uniSizeRegex + ")\\s*" + postSizeRegex,
  1322. 'FileSize_master">(.+?)<\/strong>', //hellshare
  1323. ];
  1324. var sizeIdx = sizeRegexs.length;
  1325. //
  1326. //
  1327. var tooltip = "File Name: <b>";
  1328. var fileName = "unknown";
  1329. var nameCandidate = "";
  1330. while(nameIdx--)
  1331. {
  1332. var nameCandidate = res.match(nameRegexs[nameIdx]);
  1333. if (nameCandidate != null)
  1334. {
  1335. fileName = nameCandidate[1].replace(/&nbsp;/g," ");
  1336. break;
  1337. }
  1338. }
  1339. tooltip += fileName + "</b><br>File Size: <b>";
  1340. var fileSize = "unknown";
  1341. var sizeCandidate = "";
  1342. while(sizeIdx--)
  1343. {
  1344. sizeCandidate = res.match(new RegExp(sizeRegexs[sizeIdx], "i"));
  1345. if (sizeCandidate != null)
  1346. {
  1347. fileSize = sizeCandidate[1].replace(/&nbsp;/g," ");
  1348. if (/^\d+$/.test(fileSize) && fileSize >= 1024) //assume bytes
  1349. {
  1350. if(fileSize > (1<<30)) fileSize = Math.round(10 * fileSize / (1<<30)) / 10 + ' GB';
  1351. else if(fileSize > (1<<20)) fileSize = Math.round(fileSize / (1<<20)) + ' MB';
  1352. else fileSize = Math.round(fileSize / 1024) + ' KB';
  1353. }
  1354. break;
  1355. }
  1356. }
  1357. tooltip += fileSize + "</b>";
  1358. // PROTOTYPE
  1359. // video thumbnails
  1360. if (href.match('hellshare'))
  1361. {
  1362. var thumbs;
  1363. thumbs = res.match(/http:\/\/static\d+\.helldata\.com\/thumbs(?:\/\d+){1,2}\/\d{1,2}"/g);
  1364. if (thumbs)
  1365. {
  1366. tooltip += '<br>';
  1367. var j = Math.min(thumbs.length, 9);
  1368. for (var i = 0; i < j; i++)
  1369. {
  1370. tooltip += '<img src="' + thumbs[i].replace('"',"") + '" width="' + TOOLTIP_THUMBWIDTH + 'px">';
  1371. }
  1372. warlcTooltip.style.minWidth = TOOLTIP_MAXWIDTH;
  1373. }
  1374. }
  1375. if (href.match('czshare'))
  1376. {
  1377. var thumbs;
  1378. thumbs = res.match(/src="http:\/\/www(\d+)\.czshare\.com\/images_velke\/\d+\.(\d+)\.jpeg/);
  1379. if (thumbs)
  1380. {
  1381. var thumbsServer = thumbs[1];
  1382. var thumbsId = thumbs[2];
  1383. tooltip += '<br>';
  1384. for (var i = 1; i < 9; i++)
  1385. {
  1386. tooltip += '<img src="http://www' + thumbsServer + '.czshare.com/images_velke/' + i + '.' + thumbsId + '.jpeg" width="' + TOOLTIP_THUMBWIDTH + 'px">';
  1387. }
  1388. warlcTooltip.style.minWidth = TOOLTIP_MAXWIDTH;
  1389. }
  1390. }
  1391. if (href.match('bezvadata'))
  1392. {
  1393. var thumbs;
  1394. thumbs = res.match(/http:\/\/nahledy\.bezvadata\.cz\/nahledy\/\d+\/\d+\/\d+_\d+_\d+x\d+_\w.jpg/g);
  1395. if (thumbs)
  1396. {
  1397. tooltip += '<br>';
  1398. var j = Math.min(thumbs.length, 9);
  1399. for (var i = 0; i < j; i++)
  1400. {
  1401. tooltip += '<img src="' + thumbs[i] + '" width="' + TOOLTIP_THUMBWIDTH + 'px">';
  1402. }
  1403. warlcTooltip.style.minWidth = TOOLTIP_MAXWIDTH;
  1404. }
  1405. }
  1406. link.warlc_tooltipcache = tooltip;
  1407. if (mouseoverLink == link.href) //mouse cursor is still over the link
  1408. {
  1409. warlcTooltip.innerHTML = tooltip;
  1410. }
  1411. }
  1412. });
  1413. }
  1414. }
  1415.  
  1416. function setVariables()
  1417. {
  1418. if (firstRun)
  1419. {
  1420. GM_log('First run, applying default settings...');
  1421. GM_setValue("Icon_set",1);
  1422. GM_setValue("Display_tooltip_info",true);
  1423. GM_setValue("Show_black_background_in_DL_links",false);
  1424. GM_setValue("Show_line_through_in_dead_links",false);
  1425. GM_setValue("Display_full_links_in_link_containers",false);
  1426. GM_setValue("Allow_spaces_in_DL_links",false);
  1427. GM_setValue("Autocheck",true);
  1428. GM_setValue("Enable_Anonymizer",false);
  1429. GM_setValue("Do_not_linkify_DL_links",false);
  1430. GM_setValue("Show_progress_stats",true);
  1431. GM_setValue("Keyboard_functions",true);
  1432. GM_setValue("Obsolete_file_hosts",false);
  1433. GM_setValue("Color_DL_links",true);
  1434. GM_setValue("Live_links_color","Green");
  1435. GM_setValue("Dead_links_color","#FF3300");
  1436. GM_setValue("Temp_unavailable_links_color","#F7EF09");
  1437. GM_setValue("Container_links_color","DarkKhaki");
  1438. GM_setValue("Premium_links_color","DeepPink");
  1439. GM_setValue("Ref_anonymize_service","http://hiderefer.com/?");
  1440. GM_setValue("Custom_rules",false);
  1441. GM_setValue("Custom_rules_text","");
  1442. GM_setValue("First_run", false);
  1443. }
  1444. //hidden settings
  1445. GM_setValue("Progress_box_pos_bottom", Progress_box_pos_bottom = GM_getValue("Progress_box_pos_bottom", 20));
  1446. GM_setValue("Progress_box_pos_right", Progress_box_pos_right = GM_getValue("Progress_box_pos_right", 10));
  1447. GM_setValue("Progress_box_opacity", Progress_box_opacity = GM_getValue("Progress_box_opacity", 85));
  1448. GM_setValue("Progress_box_background_color", Progress_box_background_color = GM_getValue("Progress_box_background_color", 'DimGray'));
  1449. GM_setValue("Progress_box_item_color", Progress_box_item_color = GM_getValue("Progress_box_item_color", 'DimGray'));
  1450. GM_setValue("Progress_box_refresh_rate", Progress_box_refresh_rate = GM_getValue("Progress_box_refresh_rate", 2000));
  1451. GM_setValue("Debug_mode", DEBUG_MODE = GM_getValue("Debug_mode", false));
  1452. //hidden settings end
  1453.  
  1454. Icon_set = GM_getValue("Icon_set", 1); //0 - no icons, 1 - cat paws, 2 - old RSLC style, 3 - New Icons,
  1455. Display_tooltip_info = GM_getValue("Display_tooltip_info", true);
  1456. Show_black_background_in_DL_links = GM_getValue("Show_black_background_in_DL_links", false);
  1457. Show_line_through_in_dead_links = GM_getValue("Show_line_through_in_dead_links", false);
  1458. Display_full_links_in_link_containers = GM_getValue("Display_full_links_in_link_containers", false);
  1459. Allow_spaces_in_DL_links = GM_getValue("Allow_spaces_in_DL_links", false);
  1460. Autocheck = GM_getValue("Autocheck", true);
  1461. Enable_Anonymizer = GM_getValue("Enable_Anonymizer", false);
  1462. Do_not_linkify_DL_links = GM_getValue("Do_not_linkify_DL_links", false);
  1463. Show_progress_stats = GM_getValue("Show_progress_stats", true);
  1464. Keyboard_functions = GM_getValue("Keyboard_functions", true);
  1465. Obsolete_file_hosts = GM_getValue("Obsolete_file_hosts", false);
  1466. Color_DL_links = GM_getValue("Color_DL_links", true);
  1467. Live_links_color = GM_getValue("Live_links_color", "Green");
  1468. Dead_links_color = GM_getValue("Dead_links_color", "#FF3300");
  1469. Temp_unavailable_links_color = GM_getValue("Temp_unavailable_links_color", "#F7EF09");
  1470. Container_links_color = GM_getValue("Container_links_color", "DarkKhaki");
  1471. Premium_links_color = GM_getValue("Premium_links_color", "DeepPink");
  1472. Ref_anonymize_service = GM_getValue("Ref_anonymize_service", "http://hiderefer.com/?");
  1473. Custom_rules = GM_getValue("Custom_rules", false);
  1474. Custom_rules_text = GM_getValue("Custom_rules_text", false);
  1475. }
  1476.  
  1477.  
  1478. // Delinkifies the links
  1479. // params:
  1480. // links -> list of links or link components (note they should be sufficiently unique to identify the link on page,
  1481. // e.g. 'uloz.to/xs68skxl8')
  1482. function delinkifySnapshot(snapshot)
  1483. {
  1484. var n = snapshot.snapshotLength;
  1485.  
  1486. while (n--)
  1487. {
  1488. thisLink = snapshot.snapshotItem(n);
  1489.  
  1490. var spanElm = document.createElement("span");
  1491. spanElm.className = thisLink.className;
  1492. spanElm.innerHTML = thisLink.innerHTML;
  1493.  
  1494. if (Display_tooltip_info)
  1495. {
  1496. spanElm.href = thisLink.href;
  1497. switch (thisLink.className){
  1498. case "alive_link": spanElm.addEventListener("mouseover", displayTooltipInfo, false); break
  1499. case "adead_link": spanElm.addEventListener("mouseover", displayTooltipError, false); break;
  1500. case "unava_link": //reserved
  1501. default:
  1502. }
  1503. }
  1504. thisLink.parentNode.replaceChild(spanElm, thisLink);
  1505. }
  1506. }
  1507.  
  1508. function processContainers()
  1509. {
  1510. var redirectorTypes = { "HTTP_302": 0,
  1511. "INNER_LINK": 1,
  1512. "THELOO_KATT_IT": 2,
  1513. "CING_BE": 3,
  1514. "ADF_LY": 4};
  1515. var cMultiloadTotal = 0;
  1516. var cMultiloadProcessed = 0;
  1517.  
  1518. var cMirrorcreatorComTotal = 0;
  1519. var cMirrorcreatorComProcessed = 0;
  1520.  
  1521. var hostRestrictionRegex = "";
  1522. var multiloadComRestriction = "";
  1523. var multiloadComRestrictionRegex;
  1524.  
  1525. //
  1526. //HANDLING REDIRECTORS START
  1527. //
  1528.  
  1529. var redirectors = new Array();
  1530. initRedirectors();
  1531.  
  1532. var redirectorsCount = redirectors.length;
  1533.  
  1534. if (redirectorsCount > 0)
  1535. {
  1536. var allRedirectorsRegex = "";
  1537.  
  1538. //linkify redirector links
  1539. for(var redirIdx = 0; redirIdx < redirectorsCount; redirIdx++)
  1540. {
  1541. allRedirectorsRegex += redirectors[redirIdx].linkRegex + "|";
  1542. }
  1543. allRedirectorsRegex = allRedirectorsRegex.replace(/\|$/, "");
  1544. linkify(allRedirectorsRegex);
  1545. //
  1546. //process redirector links
  1547. for(var redirIdx = 0; redirIdx < redirectorsCount; redirIdx++)
  1548. {
  1549. var redirectorsSnapshot = document.evaluate(redirectors[redirIdx].xpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  1550. redirectors[redirIdx].cTotal = redirectorsSnapshot.snapshotLength;
  1551.  
  1552. cLinksTotal += redirectors[redirIdx].cTotal;
  1553. var linkIdx = redirectors[redirIdx].cTotal;
  1554.  
  1555. while(linkIdx--)
  1556. {
  1557. switch(redirectors[redirIdx].type)
  1558. {
  1559. case redirectorTypes.HTTP_302: processRedirectorLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1560. case redirectorTypes.INNER_LINK: processRedirectorLinkEx(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1561. case redirectorTypes.THELOO_KATT_IT: processThelooKattItLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1562. case redirectorTypes.CING_BE: processCingBeLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1563. case redirectorTypes.ADF_LY: processAdfLyLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1564. default:
  1565. }
  1566. }
  1567. }
  1568. //
  1569. }
  1570.  
  1571. //HTTP_302
  1572. function processRedirectorLink(link, redirectorId)
  1573. {
  1574. link.className = 'container_link';
  1575.  
  1576. GM_xmlhttpRequest({
  1577. method: 'HEAD',
  1578. url: link.href,
  1579. headers: {
  1580. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1581. 'Accept': 'text/xml',
  1582. 'Referer': ""
  1583. },
  1584. onload: function(result) {
  1585. if (result.finalUrl.replace("https", "http") == link.href) // service hasn't redirected anywhere
  1586. {
  1587. processRedirectorLink(link, redirectorId);
  1588. }
  1589. else
  1590. {
  1591. redirectors[redirectorId].cProcessed++;
  1592. link.href = result.finalUrl;
  1593. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  1594. checkLinks('container_link');
  1595. }
  1596. },
  1597. onerror: function(result) { //probably caused by unresponsive filehosting
  1598. redirectors[redirectorId].cProcessed++;
  1599. link.className = 'unava_link';
  1600. cLinksProcessed++;
  1601. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  1602. checkLinks('container_link');
  1603. }
  1604. });
  1605. }
  1606. //INNER_LINK
  1607. function processRedirectorLinkEx(link, redirectorId)
  1608. {
  1609. link.className = 'container_link';
  1610. GM_xmlhttpRequest({
  1611. method: 'GET',
  1612. url: link.href,
  1613. headers: {
  1614. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1615. 'Accept': 'text/xml',
  1616. 'Referer': ""
  1617. },
  1618. onload: function(result) {
  1619. link.href = result.responseText.match(redirectors[redirectorId].innerLinkRegex)[1];
  1620. redirectors[redirectorId].cProcessed++;
  1621. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  1622. checkLinks('container_link');
  1623. }
  1624. });
  1625. }
  1626. //theloo.katt.it (wrapped safelinking.net)
  1627. function processThelooKattItLink(link, redirectorId)
  1628. {
  1629. link.className = 'container_link';
  1630. GM_xmlhttpRequest({
  1631. method: 'GET',
  1632. url: link.href,
  1633. headers: {
  1634. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1635. 'Accept': 'text/xml',
  1636. 'Referer': ""
  1637. },
  1638. onload: function(result) {
  1639. link.href = result.responseText.match(redirectors[redirectorId].innerLinkRegex)[1];
  1640. redirectors[redirectorId].cProcessed++;
  1641. //the inner links are safelinking.net links, so lets proceed with it
  1642. if (GM_getValue("Check_safelinking_dot_net_links", false))
  1643. {
  1644. processRedirectorLink(link, 0);
  1645. }
  1646. }
  1647. });
  1648. }
  1649. //adf.ly (adf.ly/go innerLink, locking mechanism)
  1650. function processAdfLyLink(link, redirectorId)
  1651. {
  1652. link.className = 'container_link';
  1653. GM_xmlhttpRequest({
  1654. method: 'GET',
  1655. url: link.href,
  1656. headers: {
  1657. 'User-agent': 'Mozilla/4.0',
  1658. 'Accept': 'text/xml',
  1659. 'Referer': ""
  1660. },
  1661. onload: function(result) {
  1662. if (result.finalUrl.match('/locked/'))
  1663. {
  1664. var delay = result.responseText.match(/countdown">(\d+)</)[1];
  1665. // GM_log(result.finalUrl + 'is locked. Repeating the request in ' + delay + 's.');
  1666. // setTimeout(function(){processAdfLyLink(link, redirectorId);}, delay * 1000);
  1667. }
  1668. else
  1669. {
  1670. // GM_log('Processing... ' + link.href);
  1671. // GM_log('Found...' + result.responseText.match(/\/go\/(\w+\/\w+)/)[1]);
  1672. var directLink = 'http://adf.ly' + result.responseText.match(/(\/go\/\w+\/\w+)/)[1];
  1673. var logToken = result.responseText.match(/flashy_(\w+)/)[1];
  1674. var users = result.responseText.match(/user=\d+&user2=\d+/);
  1675. //confirm advert
  1676. GM_xmlhttpRequest(
  1677. {
  1678. method: 'POST',
  1679. url: 'http://adf.ly/l.php',
  1680. headers: {
  1681. 'User-agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20100101 Firefox/13.0',
  1682. 'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
  1683. 'Referer': link.href
  1684. },
  1685. data: users + '&lt=' + logToken,
  1686. onload: function(result) {
  1687. //retrieve final url from .../go/... link
  1688. GM_xmlhttpRequest({
  1689. method: 'GET',
  1690. url: directLink,
  1691. headers: {
  1692. 'User-agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20100101 Firefox/13.0',
  1693. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  1694. 'Referer': link.href
  1695. },
  1696. onload: function(result) {
  1697. link.href = result.finalUrl;
  1698. redirectors[redirectorId].cProcessed++;
  1699. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  1700. checkLinks('container_link');
  1701. }
  1702. });
  1703. }
  1704. });
  1705. }
  1706. }
  1707. });
  1708. function proceedOK()
  1709. {
  1710. }
  1711. }
  1712. //MULTILOAD.CZ START
  1713. if (GM_getValue("Check_multiload_dot_cz_links", false))
  1714. {
  1715. var mlRegex = 'multiload\\.cz\/stahnout\/\\d+\/';
  1716. var mlXpath = "//a[contains(@href,'http://www.multiload.cz/stahnout')]";
  1717.  
  1718. hostRestrictionRegex = 'Upload se nezdařil|limit exceeded|probíhá reupload|';
  1719.  
  1720. if (GM_getValue("Check_hellshare_dot_com_links", false))
  1721. hostRestrictionRegex += 'hellshare|';
  1722. if (GM_getValue("Check_share_dash_rapid_dot_com_links", false))
  1723. hostRestrictionRegex += 'share-rapid\\.com|';
  1724. if (GM_getValue("Check_quickshare_dot_cz_links", false))
  1725. hostRestrictionRegex += 'quickshare\\.cz|';
  1726. if (GM_getValue("Check_czshare_dot_com_links", false))
  1727. hostRestrictionRegex += 'czshare\\.com|';
  1728. if (GM_getValue("Check_uloz_dot_to_links", false))
  1729. hostRestrictionRegex += 'uloz\\.to|';
  1730. if (GM_getValue("Check_hellspy_dot_com_links", false))
  1731. hostRestrictionRegex += 'hellspy|';
  1732. if (GM_getValue("Check_multishare_dot_cz_links", false))
  1733. hostRestrictionRegex += 'multishare\\.cz|';
  1734.  
  1735. hostRestrictionRegex = hostRestrictionRegex.replace(/\|$/, "");
  1736.  
  1737. linkify(mlRegex);
  1738.  
  1739. var mlSnapshot = document.evaluate(mlXpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  1740. var mlCount = mlSnapshot.snapshotLength;
  1741.  
  1742. if (mlCount > 0)
  1743. {
  1744. cMultiloadTotal += mlCount;
  1745.  
  1746. mlIdx = mlCount - 1;
  1747. do
  1748. {
  1749. processMultiloadLink(mlSnapshot.snapshotItem(mlIdx));
  1750. }
  1751. while(mlIdx--)
  1752. }
  1753. }
  1754. //MULTILOAD.CZ END
  1755.  
  1756.  
  1757.  
  1758. function processMultiloadLink(mlLink)
  1759. {
  1760. GM_xmlhttpRequest({
  1761. method: 'GET',
  1762. url: mlLink.href,
  1763. headers: {
  1764. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1765. 'Accept': 'text/xml',
  1766. 'Referer': ""
  1767. },
  1768. onload: function(result) {
  1769. var res = result.responseText;
  1770.  
  1771. var innerBlockRegex = /<p class="manager-linky">(?:.|\s)+?<\/p>/g;
  1772. 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;
  1773. var innerLinkRegex = /((?:Upload se nezdařil.+|https?:\/\/(?:.|\s)+|Právě probíhá reupload, buďte trpěliví\.\.\.))</;
  1774. var mlRestrictionRegex = new RegExp(hostRestrictionRegex,"g"); //what links should be displayed
  1775.  
  1776. var blocks; // blocks of links
  1777. var blockIdx;
  1778.  
  1779. mlLink.className = '';
  1780.  
  1781. if (result.status == 503) //service temporarily unavailable, repeat request in one second
  1782. {
  1783. setTimeout(function(){ processMultiloadLink(mlLink); }, 1000);
  1784. return;
  1785. }
  1786.  
  1787. blocks = res.match(innerBlockRegex);
  1788.  
  1789. if (blocks == null) //no links found, cancel further processing
  1790. {
  1791. mlLink.parentNode.appendChild(document.createTextNode(' | Požadovaný soubor neexistuje.'));
  1792. cMultiloadProcessed++;
  1793. if (cMultiloadTotal <= cMultiloadProcessed)
  1794. {
  1795. startBulkCheck('container_link');
  1796. start('container_link');
  1797. }
  1798. return;
  1799. }
  1800.  
  1801. blockIdx = blocks.length;
  1802.  
  1803. if (Display_full_links_in_link_containers)
  1804. {
  1805. var ulElm = document.createElement('ul');
  1806. ulElm.className = 'container_list'; //CSS smaller font, padding, margin, square style
  1807.  
  1808. while(blockIdx--)
  1809. {
  1810. if (blocks[blockIdx].match(mlRestrictionRegex) == null)
  1811. {
  1812. continue;
  1813. }
  1814.  
  1815. var innerLinks = blocks[blockIdx].match(innerLinksRegex);
  1816.  
  1817. var linkIdx = innerLinks.length;
  1818. while (linkIdx--)
  1819. {
  1820. var innerLink = innerLinks[linkIdx].match(innerLinkRegex)[1];
  1821.  
  1822. var liElm = document.createElement('li');
  1823.  
  1824. if (innerLink.match(/Upload se nezdařil|limit exceeded|probíhá reupload/))
  1825. {
  1826. liElm.appendChild(document.createTextNode(innerLink));
  1827. }
  1828. else
  1829. {
  1830. var aElm = document.createElement('a');
  1831. aElm.innerHTML = innerLink;
  1832. aElm.href = innerLink;
  1833. aElm.className = 'container_link';
  1834.  
  1835. liElm.appendChild(aElm);
  1836. }
  1837.  
  1838. ulElm.appendChild(liElm);
  1839. cLinksTotal++;
  1840. }
  1841. }
  1842.  
  1843. mlLink.parentNode.appendChild(ulElm);
  1844. }
  1845. else //compact view
  1846. {
  1847. mlLink.parentNode.appendChild(document.createTextNode("|"));
  1848.  
  1849. while(blockIdx--)
  1850. {
  1851. if (blocks[blockIdx].match(mlRestrictionRegex) == null)
  1852. {
  1853. continue;
  1854. }
  1855.  
  1856. var innerLinks = blocks[blockIdx].match(innerLinksRegex);
  1857.  
  1858. var linkIdx = innerLinks.length;
  1859. while (linkIdx--)
  1860. {
  1861. var innerLink = innerLinks[linkIdx].match(innerLinkRegex)[1];
  1862.  
  1863. if (innerLink.match(/Upload se nezdařil|limit exceeded|probíhá reupload/))
  1864. {
  1865. mlLink.parentNode.appendChild(document.createTextNode("----"));
  1866. }
  1867. else
  1868. {
  1869. var aElm = document.createElement('a');
  1870.  
  1871. var hostName = innerLink.match(/quickshare|hellshare|uloz\.to|multishare|hellspy|share\-rapid|czshare/);
  1872.  
  1873. //abbreviate host name
  1874. switch(hostName + ""){
  1875.  
  1876. case 'quickshare': aElm.innerHTML = 'QS'; break;
  1877. case 'hellshare': aElm.innerHTML = 'HS'; break;
  1878. case 'uloz.to': aElm.innerHTML = 'UT'; break;
  1879. case 'multishare': aElm.innerHTML = 'MS'; break;
  1880. case 'hellspy': aElm.innerHTML = 'hs'; break;
  1881. case 'share-rapid': aElm.innerHTML = 'SR'; break;
  1882. case 'czshare': aElm.innerHTML = 'CS'; break;
  1883. default: aElm.innerHTML = 'xx';
  1884.  
  1885. }
  1886.  
  1887. aElm.href = innerLink;
  1888. aElm.className = 'container_link';
  1889.  
  1890. mlLink.parentNode.appendChild(aElm);
  1891. cLinksTotal++;
  1892. }
  1893. }
  1894.  
  1895. mlLink.parentNode.appendChild(document.createTextNode("|")); //blocks delimiter
  1896.  
  1897. }
  1898. }
  1899.  
  1900. cMultiloadProcessed++;
  1901. if (cMultiloadTotal == cMultiloadProcessed) //start check when all ml links have been processed
  1902. {
  1903. if (Do_not_linkify_DL_links)
  1904. {
  1905. delinkifySnapshot(mlSnapshot);
  1906. }
  1907. startBulkCheck('container_link');
  1908. start('container_link');
  1909. }
  1910. }
  1911. });
  1912. }
  1913.  
  1914.  
  1915. if (GM_getValue("Check_mirrorcreator_dot_com_links", false))
  1916. {
  1917. var mcRegex = 'mirrorcreator\\.com/files/(\\w+)';
  1918. var mcXpath = "//a[contains(@href,'mirrorcreator.com/files')]";
  1919. var mcShortHostNames =
  1920. '?? 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';
  1921. // 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
  1922. //?????? depositfiles sendspace load.to ul.to storage.to uploadbox x7.to fileserve ?????? duckload filehook filepost jumbofiles glumbouploads
  1923. // zshare ?????? 2shared uploading ugotfile extabit oron eyvx uploadstation putlocker
  1924. // megaupload badongo megashare gamefront ifile ?????? letitbit ?????? ?????? filejungle megashares
  1925. // easy-share ?????? netload zippyshare ?????? filesonic turbobit enterupload ?????? filekeen wupload crocko fileflyer
  1926.  
  1927. linkify(mcRegex);
  1928.  
  1929. var mcSnapshot = document.evaluate(mcXpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  1930. var mcCount = mcSnapshot.snapshotLength;
  1931.  
  1932. cMirrorcreatorComTotal = mcCount;
  1933.  
  1934. if (mcCount > 0)
  1935. {
  1936. mcShortHostNames = mcShortHostNames.split(' ');
  1937. mcIdx = mcCount;
  1938. while(mcIdx--)
  1939. processMirrorcreatorLink(mcSnapshot.snapshotItem(mcIdx));
  1940. }
  1941.  
  1942. }
  1943. //MIRRORCREATOR.CZ END
  1944.  
  1945.  
  1946. //mirrorcreator.com checking works like this:
  1947. //The base URL is http://www.mirrorcreator.com/files/XXXXXXXX/filename_links
  1948. //the actual list of mirrors is at http://www.mirrorcreator.com/status.php?uid=XXXXXXXX
  1949. //the list contains links in the form of (http://www.mirrorcreator.com)/redirect/XXXXXXXX/1
  1950. //these redirector links are extracted with mcLinkBlockRegex and the pages loaded
  1951. //they contain the actual filehost links, which are extracted with mcHostRegex and displayed in a container list
  1952. function processMirrorcreatorLink(mcLink)
  1953. {
  1954. var mcURL = mcLink.href.match(mcRegex);
  1955. if(!mcURL || !mcURL[1]) return;
  1956. mcURL = 'http://www.mirrorcreator.com/status.php?uid=' + mcURL[1]; //link correction
  1957. GM_xmlhttpRequest({
  1958. method: 'GET',
  1959. url: mcURL,
  1960. headers: {
  1961. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1962. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*'+'/*;q=0.8',
  1963. 'Referer': ""
  1964. },
  1965. onload: function(mcLinkResult) {
  1966. var mcLinkRes = mcLinkResult.responseText;
  1967.  
  1968. var mcLinkBlockRegex = /(\/redirect\/\w+\/(\d+))/gi;
  1969. var mcHostRegex = /<div id="redirectlink">.*?<a href="([^"]+)"/;
  1970.  
  1971. var mcRedirectors;
  1972. var mcHostURLs = [], mcRedirectorIDs = [], mcHostsFound = 0, mcHostsRetrieved = 0, mcHostsToProcess = 0;
  1973. var m = mcLinkRes.match(mcLinkBlockRegex);
  1974. if (m)
  1975. mcHostsFound = m.length;
  1976. else
  1977. { //no files inside container
  1978. processMirrorcreatorFoundHosts(mcLink, []);
  1979. return;
  1980. }
  1981.  
  1982. var mcRedirectorURL, idx, timedOut = false;
  1983.  
  1984. var gmxhrFunc = function(mcRedirectorURL){ //Tampermonkey doesn't know neither this.url or result.finalUrl
  1985. GM_xmlhttpRequest({
  1986. method: 'GET',
  1987. url: mcRedirectorURL,
  1988. headers: {
  1989. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1990. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*'+'/*;q=0.8',
  1991. 'Referer': ""
  1992. },
  1993. onload: function(mcHostResult) {
  1994. if (timedOut) return; //too late, the list is already displayed
  1995. var mcHostRes = mcHostResult.responseText;
  1996. var mcHost = mcHostRes.match(mcHostRegex);
  1997. idx = mcHostURLs.indexOf(mcRedirectorURL);
  1998. if (mcHost && idx!=-1)
  1999. {
  2000. mcHostURLs[idx] = mcHost[1].replace(/^\s+|\s+$/g, '');
  2001. mcHostsRetrieved++;
  2002. mcHostsToProcess++;
  2003. if (mcHostsFound == mcHostsRetrieved) //this is the last one!
  2004. {
  2005. processMirrorcreatorFoundHosts(mcLink, mcHostURLs, mcRedirectorIDs);
  2006. mcHostsToProcess = 0;
  2007. }
  2008. }
  2009. } //end of onload: function
  2010. }); //end of GM_xmlhttpRequest call
  2011. };//end of var gmxhrFunc
  2012.  
  2013. while (mcRedirectors = mcLinkBlockRegex.exec(mcLinkRes))
  2014. { //load individual redirector pages
  2015. mcRedirectorURL = 'http://www.mirrorcreator.com' + mcRedirectors[1];
  2016. mcHostURLs.push(mcRedirectorURL);
  2017. mcRedirectorIDs.push(mcRedirectors[2]);
  2018. gmxhrFunc(mcRedirectorURL);
  2019. } //end of while block
  2020.  
  2021. setTimeout(function(){ //in case the last page fails to load and call the function
  2022. timedOut = true;
  2023. if (mcHostsToProcess)
  2024. processMirrorcreatorFoundHosts(mcLink, mcHostURLs);
  2025. }, 60000);
  2026.  
  2027. } //end of onload function
  2028. }); //end of GM_xmlhttpRequest call
  2029. } //end of function processMirrorcreatorLink
  2030.  
  2031.  
  2032. function processMirrorcreatorFoundHosts(mcLink, mcHostURLs, mcRedirectorIDs)
  2033. {
  2034. var aEl, liEl, docFrag;
  2035. var hostName, mcRedirectorID, trimFilename = false;
  2036. var i = mcHostURLs.length;
  2037. if (i == 0)
  2038. {
  2039. trimFilename = true;
  2040. mcLink.parentNode.insertBefore(document.createTextNode(' | No files inside container'), mcLink.nextSibling);
  2041. }
  2042. else
  2043. {
  2044. if (Display_full_links_in_link_containers)
  2045. { //full view
  2046. var wrapperEl = document.createElement('span');
  2047. wrapperEl.style.display = 'block';
  2048. var ulistEl = document.createElement('ul');
  2049. ulistEl.className = 'container_list';
  2050. while (i--)
  2051. {
  2052. liEl = document.createElement('li');
  2053. aEl = document.createElement('a');
  2054. aEl.appendChild(document.createTextNode(mcHostURLs[i]));
  2055. aEl.href = mcHostURLs[i];
  2056. aEl.className = 'container_link';
  2057. liEl.appendChild(aEl);
  2058. ulistEl.appendChild(liEl);
  2059. }
  2060. wrapperEl.appendChild(ulistEl);
  2061. mcLink.parentNode.replaceChild(wrapperEl, mcLink);
  2062. wrapperEl.insertBefore(mcLink, wrapperEl.firstChild);
  2063. }
  2064. else
  2065. { //compact view
  2066. trimFilename = true;
  2067. docFrag = document.createDocumentFragment();
  2068. docFrag.appendChild(document.createTextNode(' |'));
  2069. while (i--)
  2070. {
  2071. mcRedirectorID = mcRedirectorIDs[i];
  2072. hostName = mcHostURLs[i];
  2073. if (mcRedirectorID > mcShortHostNames.length-1 || mcShortHostNames[mcRedirectorID] == '??')
  2074. hostName = hostName.replace(/https?:\/\/(?:www\.)?([-0-9a-z]+(?:\.[-0-9a-z]+)?)\.[a-z]+\/.*/i, '$1').toUpperCase();
  2075. else
  2076. hostName = mcShortHostNames[mcRedirectorID];
  2077. aEl = document.createElement('a');
  2078. aEl.href = mcHostURLs[i];
  2079. aEl.className = 'container_link';
  2080. aEl.appendChild(document.createTextNode(hostName));
  2081. docFrag.appendChild(aEl);
  2082. docFrag.appendChild(document.createTextNode('|'));
  2083. }
  2084. mcLink.parentNode.insertBefore(docFrag, mcLink.nextSibling);
  2085. } //end of else block
  2086. } //end of else block
  2087. mcLink.className = '';
  2088. if (trimFilename)
  2089. mcLink.firstChild.nodeValue = mcLink.firstChild.nodeValue.replace(/(https?:\/\/[^\/]+\/files\/\w+\/).+/, '$1...');
  2090. cMirrorcreatorComProcessed++;
  2091. if (cMirrorcreatorComProcessed == cMirrorcreatorComTotal) //start check when all mc links have been processed
  2092. {
  2093. if (Do_not_linkify_DL_links)
  2094. delinkifySnapshot(mcSnapshot);
  2095. startBulkCheck('container_link');
  2096. start('container_link');
  2097. }
  2098. } //end of function processMirrorcreatorFoundHosts
  2099.  
  2100. containers_processed = true;
  2101.  
  2102.  
  2103. function initRedirectors()
  2104. {
  2105. function addRedirector(linkRegex, xpathEx, redirType, innerLinkRegex)
  2106. {
  2107. var redirector = new Object();
  2108. redirector.linkRegex = linkRegex;
  2109. redirector.xpath = xpathEx; //xpath expression
  2110. redirector.cProcessed = 0; //processed links count
  2111. redirector.cTotal = 0; //total links count
  2112. redirector.type = redirType; //redirectorTypes enum
  2113. redirector.innerLinkRegex = innerLinkRegex; //innerLink, null if unused
  2114. redirectors.push(redirector);
  2115. }
  2116. if (GM_getValue("Check_safelinking_dot_net_links", false))
  2117. {
  2118. addRedirector(
  2119. 'safelinking\\.net\/d\/\\w+',
  2120. "//a[contains(@href,'safelinking.net/d/')]",
  2121. redirectorTypes.HTTP_302,
  2122. null);
  2123. }
  2124. if (GM_getValue("Check_linksafe_dot_me_links", false))
  2125. {
  2126. addRedirector(
  2127. 'linksafe\\.me\/d\/\\w+',
  2128. "//a[contains(@href,'linksafe.me/d/')]",
  2129. redirectorTypes.HTTP_302,
  2130. null);
  2131. }
  2132. if (GM_getValue("Check_linkto_dot_net_links", false))
  2133. {
  2134. addRedirector(
  2135. 'linkto\\.net\/\\?\\w+\\.\\d+',
  2136. "//a[contains(@href,'linkto.net/?')]",
  2137. redirectorTypes.INNER_LINK,
  2138. /<iframe id="iframe" name="iframe" src="(.+?)\s*" frameborder="0"/);
  2139. }
  2140. if (GM_getValue("Check_theloo_dot_katt_dot_it_links", false))
  2141. {
  2142. addRedirector(
  2143. '(?:the)?loo\\.katt\\.it\/\\w+',
  2144. "//a[contains(@href,'loo.katt.it/')]",
  2145. redirectorTypes.THELOO_KATT_IT,
  2146. /Proceed to URL - <a href="(.+?)">/);
  2147. }
  2148. if (GM_getValue("Check_madlink_dot_sk_links", false))
  2149. {
  2150. addRedirector(
  2151. 'madlink\\.sk\/\\w+',
  2152. "//a[contains(@href,'madlink.sk/')]",
  2153. redirectorTypes.INNER_LINK,
  2154. /name="url" value="(.+?)\s*"\/>/);
  2155. }
  2156. if (GM_getValue("Check_adf_dot_ly_links", false))
  2157. {
  2158. addRedirector(
  2159. '(?:adf\\.ly|[u9]\\.bb|[qj]\\.gs)\/\\w+',
  2160. "//a[contains(@href,'adf.ly/') (@href,'u.bb/') or contains(@href,'9.bb/') or contains(@href,'q.gs/') or contains(@href,'j.gs/')]",
  2161. redirectorTypes.ADF_LY,
  2162. null);
  2163. }
  2164. if (GM_getValue("Check_redi_dot_re_links", false))
  2165. {
  2166. addRedirector(
  2167. 'redi\\.re\/\\w+',
  2168. "//a[contains(@href,'redi.re/')]",
  2169. redirectorTypes.HTTP_302,
  2170. null);
  2171. }
  2172. if (GM_getValue("Check_bit_dot_ly_links", false))
  2173. {
  2174. addRedirector(
  2175. 'bit\\.ly\/\\w+',
  2176. "//a[contains(@href,'bit.ly/')]",
  2177. redirectorTypes.HTTP_302,
  2178. null);
  2179. }
  2180. }
  2181.  
  2182. }
  2183.  
  2184. var bulkHosts = new Array();
  2185. var bulkHostNames = new Array();
  2186. function initBulkCheck()
  2187. {
  2188. /////////////////////////////
  2189. // Inits filehost object
  2190. /////////////////////////////
  2191. // params :
  2192. // hostName -- [string] host name (multiple domains separated with coma)
  2193. // linkRegex -- [string] link regex
  2194. // xpath -- [string] xpath expression to detect the link objects with evaluate
  2195. // blockSize -- [integer] max. number of links sent in one request, 50 if null
  2196. // corrMatch -- [regex] link correction regex (match), applied prior to corrRepl
  2197. // corrReplWhat -- [regex] link correction regex (replace)
  2198. // corrReplWith -- [string]
  2199. // splitSeparator -- [string] POSTDATA links separator, "\r\n" if null
  2200. //
  2201. // apiUrl -- [string] web linkchecker or API URL
  2202. // postData -- [string] POSTDATA of xmlhttprequest
  2203. // resLinkRegex -- [regex]
  2204. // resLiveRegex -- [regex] matches substrings containing live links in the request response
  2205. // resDeadRegex -- [regex] matches substrings containing dead links in the request response
  2206. // resUnavaRegex -- [regex] matches substrings containing unava links in the request response
  2207. // func -- [function] bulkcheck handler, genBulkCheck if null
  2208. //
  2209. //////////////////////////////
  2210. function addHost(hostName, linkRegex, xpath, blockSize, corrMatch, corrReplWhat, corrReplWith, splitSeparator,
  2211. apiUrl, postData, resLinkRegex, resLiveRegex, resDeadRegex, resUnavaRegex, func)
  2212. {
  2213. var fileHost = new Object();
  2214.  
  2215. fileHost.linkRegex = linkRegex;
  2216. fileHost.linkRegexObject = new RegExp(linkRegex, "");
  2217. fileHost.xpath = xpath;
  2218. fileHost.cFound = 0; //found links counter
  2219. fileHost.links = new Array(); //found links
  2220. if (blockSize == null)
  2221. {
  2222. fileHost.blockSize = 50;
  2223. }
  2224. else
  2225. {
  2226. fileHost.blockSize = blockSize;
  2227. }
  2228. fileHost.corrMatch = corrMatch;
  2229. fileHost.corrReplWhat = corrReplWhat;
  2230. fileHost.corrReplWith = corrReplWith;
  2231. if (splitSeparator == null)
  2232. {
  2233. fileHost.splitSeparator = "\r\n";
  2234. }
  2235. else
  2236. {
  2237. fileHost.splitSeparator = splitSeparator;
  2238. }
  2239. fileHost.apiUrl = apiUrl;
  2240. fileHost.postData = postData;
  2241. fileHost.resLinkRegex = resLinkRegex;
  2242. fileHost.resLiveRegex = resLiveRegex;
  2243. fileHost.resDeadRegex = resDeadRegex;
  2244. fileHost.resUnavaRegex = resUnavaRegex;
  2245. if (func == null)
  2246. {
  2247. fileHost.func = genBulkCheck;
  2248. }
  2249. else
  2250. {
  2251. fileHost.func = func;
  2252. }
  2253. bulkHosts.push(fileHost);
  2254. var names = hostName.split(',');
  2255. var i = names.length;
  2256. while(i--)
  2257. {
  2258. bulkHostNames[names[i]] = fileHost;
  2259. }
  2260. }
  2261. var genType1 = [
  2262. "migahost.com", "rodfile.com", "downloadani.me",
  2263. "rarefile.net",
  2264. "filesabc.com",
  2265. "180upload.com", "verzend.be",
  2266. "movreel.com",
  2267. "4up.me",
  2268. "file4safe.com", "filemac.com", "4upfiles.com",
  2269. "idup.in", "novafile.com", "longfiles.com",
  2270. "bitupload.com",
  2271. "uploadbaz.com"
  2272. ];
  2273. var genType2 = [ "queenshare.com",
  2274. "hulkload.com",
  2275. "amonshare.com", "edoc.com",
  2276. ];
  2277. //xfilesharing 1.0
  2278. function addGenericType1()
  2279. {
  2280. var i = genType1.length;
  2281. while(i--)
  2282. {
  2283. if (GM_getValue("Check_" + genType1[i].replace(/\./g, "_dot_").replace(/-/g, "_dash_") + "_links", false))
  2284. {
  2285. var regexSafe = genType1[i].replace(/\./g, "\\.").replace(/-/g, "\\-");
  2286. addHost(
  2287. genType1[i].match(/[\w-]+/)[0], //hostname
  2288. regexSafe + "\/\\w+", //linkregex
  2289. "//a[contains(@href,'" + genType1[i] + "/')]", //xpath
  2290. null, //blocksize
  2291. new RegExp("(http:\/\/(?:|www\\.)" + regexSafe + "\/\\w+)",""),//, //corrmatch
  2292. null, //corrreplwhat
  2293. null, //corrreplwith
  2294. null, //separator
  2295. "http://" + genType1[i] + "/checkfiles.html", //api url
  2296. "op=checkfiles&process=Check+URLs&list=", //postdata
  2297. new RegExp("(" + regexSafe + "\/\\w+)",""), //linkregex
  2298. new RegExp("green'>http:\/\/(?:|www\.)" + regexSafe + "\/\\w+","g"), //liveregex
  2299. new RegExp("red'>http:\/\/(?:|www\.)" + regexSafe + "\/\\w+","g"), //deadregex
  2300. new RegExp("orange'>http:\/\/(?:|www\.)" + regexSafe + "\/\\w+","g"), //unavaregex
  2301. null //function delegate
  2302. )
  2303. }
  2304. }
  2305. }
  2306. //xfilesharing 2.0
  2307. function addGenericType2()
  2308. {
  2309. var i = genType2.length;
  2310. while(i--)
  2311. {
  2312. if (GM_getValue("Check_" + genType2[i].replace(/\./g, "_dot_").replace(/-/g, "_dash_") + "_links", false))
  2313. {
  2314. var regexSafe = genType2[i].replace(/\./g, "\\.").replace(/-/g, "\\-");
  2315. addHost(
  2316. genType2[i].match(/[\w-]+/)[0], //hostname
  2317. regexSafe + "\/\\w+", //linkregex
  2318. "//a[contains(@href,'" + genType2[i] + "/')]", //xpath
  2319. null, //blocksize
  2320. new RegExp("(http:\/\/(?:|www\\.)" + regexSafe + "\/\\w+)",""),//, //corrmatch
  2321. null, //corrreplwhat
  2322. null, //corrreplwith
  2323. null, //separator
  2324. "http://www." + genType2[i] + "/?op=checkfiles", //api url
  2325. "op=checkfiles&process=Check+URLs&list=", //postdata
  2326. new RegExp("(" + regexSafe + "\/\\w+)",""), //linkregex
  2327. new RegExp(regexSafe + "\/\\w+.*?<\/td>\\s*<td style=\"color:green;\">","g"), //liveregex
  2328. new RegExp(regexSafe + "\/\\w+.*?<\/td>\\s*<td style=\"color:red;\">","g"), //deadregex
  2329. new RegExp(regexSafe + "\/\\w+.*?<\/td>\\s*<td style=\"color:orange;\">","g"), //unavaregex
  2330. null //function delegate
  2331. )
  2332. }
  2333. }
  2334. }
  2335. // TEMPLATE
  2336. // if (GM_getValue("Check__dot_com_links", false))
  2337. // {
  2338. // addHost(
  2339. // "", //hostname
  2340. // "", //linkregex
  2341. // "//a[contains(@href,'.com/')]", //xpath
  2342. // null, //blocksize
  2343. // null, //corrmatch
  2344. // null, //corrreplwhat
  2345. // null, //corrreplwith
  2346. // null, //separator
  2347. // "", //api url
  2348. // "", //postdata
  2349. // /()/, //linkregex
  2350. // //liveregex
  2351. // //deadregex
  2352. // //unavaregex
  2353. // null //function delegate
  2354. // )
  2355. // }
  2356. addGenericType1();
  2357. addGenericType2();
  2358.  
  2359. if (GM_getValue("Check_myvdrive_dot_com_links", false))
  2360. {
  2361. addHost(
  2362. "myvdrive,fileserving", //hostname
  2363. "(?:fileserving|myvdrive)\\.com\/files\/[\\w-]+", //linkregex
  2364. "//a[contains(@href,'fileserving.com/files') or contains(@href,'myvdrive.com/files')]", //xpath
  2365. null, //blocksize
  2366. null, //corrmatch
  2367. null, //corrreplwhat
  2368. null, //corrreplwith
  2369. null, //separator
  2370. "http://www.myvdrive.com/Public/linkchecker#", //api url
  2371. "links=", //postdata
  2372. /(?:fileserving|myvdrive)\.com\/(files\/\w+)/, //linkregex
  2373. /icon_file_check_valid"><\/span>\s*http:\/\/www\.(?:fileserving|myvdrive)\.com\/files\/[\w-]+/g, //liveregex
  2374. /icon_file_check_(?:removed|notvalid)"><\/span>\s*http:\/\/www\.(?:fileserving|myvdrive)\.com\/files\/[\w-]+/g, //deadregex
  2375. null, //unavaregex
  2376. null //function delegate
  2377. )
  2378. }
  2379. if (GM_getValue("Check_hackerbox_dot_org_links", false))
  2380. {
  2381. addHost(
  2382. "hackerbox", //hostname
  2383. "host\\.hackerbox\\.org\/\\w+", //linkregex
  2384. "//a[contains(@href,'host.hackerbox.org/')]", //xpath
  2385. null, //blocksize
  2386. /(http:\/\/host\.hackerbox\.org\/\w+)/, //corrmatch
  2387. null, //corrreplwhat
  2388. null, //corrreplwith
  2389. null, //separator
  2390. "http://host.hackerbox.org/checkfiles.html", //api url
  2391. "op=checkfiles&process=Check+URLs&list=", //postdata
  2392. /(host\.hackerbox\.org\/\w+)/, //linkregex
  2393. /green'>http:\/\/host\.hackerbox\.org\/\w+/g, //liveregex
  2394. /red'>http:\/\/host\.hackerbox\.org\/\w+/g, //deadregex
  2395. /orange'>http:\/\/host\.hackerbox\.org\/\w+/g, //unavaregex
  2396. null //function delegate
  2397. )
  2398. }
  2399. if (GM_getValue("Check_hellshare_dot_com_links", false))
  2400. {
  2401. addHost(
  2402. "hellshare", //hostname
  2403. "(?:|download\\.(?:cz\\.|en\\.|sk\\.|)|www\\.)hellshare\\.(?:com|sk|cz|pl|hu|COM|SK|CZ|PL|HU)\/[\\w-\\.]+\/(?:[\\w-\\.]+\/|)\\d{5,}", //linkregex
  2404. "//a[contains(@href,'hellshare.')]", //xpath
  2405. 48, //blocksize
  2406. null, //corrmatch
  2407. null, //corrreplwhat
  2408. null, //corrreplwith
  2409. null, //separator
  2410. null, //api url
  2411. null, //postdata
  2412. null, //linkregex
  2413. null, //liveregex
  2414. null, //deadregex
  2415. null, //unavaregex
  2416. hellshareBulkCheck //function delegate
  2417. )
  2418. }
  2419. if (GM_getValue("Check_ncrypt_dot_in_links", false))
  2420. {
  2421. addHost(
  2422. "ncrypt", //hostname
  2423. "ncrypt\\.in\/folder\\-\\w+", //linkregex
  2424. "//a[contains(@href,'ncrypt.in/folder')]", //xpath
  2425. 100000, //blocksize
  2426. null, //corrmatch
  2427. null, //corrreplwhat
  2428. null, //corrreplwith
  2429. null, //separator
  2430. null,
  2431. null,
  2432. null,
  2433. null,
  2434. null,
  2435. null,
  2436. ncryptBulkCheck //function delegate
  2437. )
  2438. }
  2439. if (GM_getValue("Check_geupload_dot_com_links", false))
  2440. {
  2441. addHost(
  2442. "geupload,lenfile", //hostname
  2443. "(?:geupload\\.com|lenfile\\.com)\/\\w+", //linkregex
  2444. "//a[contains(@href,'geupload.com/') or contains(@href,'lenfile.com/')]", //xpath
  2445. null, //blocksize
  2446. null, //corrmatch
  2447. null, //corrreplwhat
  2448. null, //corrreplwith
  2449. "\n", //separator
  2450. 'http://geupload.com/?op=checkfiles',
  2451. 'op=checkfiles&process=Check+URLs&list=',
  2452. />http:\/\/(?:geupload|lenfile)\.com\/(\w+)/,
  2453. />http:\/\/(?:geupload|lenfile)\.com\/\w+(?:[^>]+>)<td style=\"color\:green/g,
  2454. />http:\/\/(?:geupload|lenfile)\.com\/\w+(?:[^>]+>)<td style=\"color\:red/g,
  2455. null,
  2456. null
  2457. )
  2458. }
  2459. if (GM_getValue("Check_uploadrocket_dot_net_links", false))
  2460. {
  2461. addHost(
  2462. "uploadrocket", //hostname
  2463. "(?:uploadrocket\\.net)\/\\w+", //linkregex
  2464. "//a[contains(@href,'uploadrocket.net/')]", //xpath
  2465. null, //blocksize
  2466. null, //corrmatch
  2467. null, //corrreplwhat
  2468. null, //corrreplwith
  2469. "\n", //separator
  2470. 'http://uploadrocket.net/?op=checkfiles',
  2471. 'op=checkfiles&process=Check+URLs&list=',
  2472. /uploadrocket.net\/(\w+)/,
  2473. />http:\/\/uploadrocket.net\/\w+(?:[^>]+>)<td style="color:green/g,
  2474. />http:\/\/uploadrocket.net\/\w+(?:[^>]+>)<td style="color:red/g,
  2475. null,
  2476. null //function delegate
  2477. )
  2478. }
  2479. if (GM_getValue("Check_depositfiles_dot_com_links", false))
  2480. {
  2481. addHost(
  2482. "depositfiles,dfiles",
  2483. "(?:(?:depositfiles\\.(?:com|org|lt))|(?:dfiles\\.(?:ru|eu)))\/files\/|en/files\/\\w+",
  2484. "//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/')]",
  2485. 100000, //blocksize
  2486. null, //corrmatch
  2487. null, //corrreplwhat
  2488. null, //corrreplwith
  2489. null, //separator
  2490. null,
  2491. null,
  2492. null,
  2493. null,
  2494. null,
  2495. null,
  2496. depositfilesBulkCheck //function delegate
  2497. )
  2498. }
  2499. if (GM_getValue("Check_filepost_dot_com_links", false))
  2500. {
  2501. addHost(
  2502. "filepost,fp", //hostname
  2503. "(?:filepost\\.com\/files|fp\\.io)\/\\w+", //linkregex
  2504. "//a[contains(@href,'filepost.com/files/') or contains(@href,'fp.io/')]", //xpath
  2505. null, //blocksize
  2506. null, //corrmatch
  2507. null, //corrreplwhat
  2508. null, //corrreplwith
  2509. "\n", //separator
  2510. 'http://filepost.com/files/checker/?JsHttpRequest=0-xml',
  2511. 'urls=',
  2512. /\\\/files\\\/(\w+)/,
  2513. />http:\\\/\\\/filepost\.com\\\/files\\\/\w+(?:[^>]+>){5}(?:\\n|\\t)+<span class=\\"v\\"/g,
  2514. />http:\\\/\\\/filepost\.com\\\/files\\\/\w+(?:[^>]+>){5}(?:\\n|\\t)+<span class=\\"x\\"/g,
  2515. null,
  2516. null //function delegate
  2517. )
  2518. }
  2519. if (GM_getValue("Check_filesflash_dot_com_links", false))
  2520. {
  2521. addHost(
  2522. "filesflash", //hostname
  2523. "filesflash\\.com\/\\w+", //linkregex
  2524. "//a[contains(@href,'filesflash.com')]", //xpath
  2525. null, //blocksize
  2526. null, //corrmatch
  2527. /http:\/\//, //corrreplwhat
  2528. '', //corrreplwith
  2529. null, //separator
  2530. 'http://filesflash.com/checklinks.php',
  2531. 'submit=Go&links=',
  2532. /filesflash\.com\/(\w+)/,
  2533. /<td>filesflash\.com\/\w+<\/td>\s*<td>Available/g,
  2534. /<td>filesflash\.com\/\w+<\/td>\s*<td>(?:Invalid|Deleted|Expired|Banned)?<\/td>/g,
  2535. null,
  2536. null //function delegate
  2537. )
  2538. }
  2539. if (GM_getValue("Check_jumbofiles_dot_com_links", false))
  2540. {
  2541. addHost(
  2542. "jumbofiles", //hostname
  2543. "jumbofiles\\.com\/\\w+", //linkregex
  2544. "//a[contains(@href,'jumbofiles.com/')]", //xpath
  2545. null, //blocksize
  2546. /(http:\/\/(?:|www\.)jumbofiles\.com\/\w+)/, //corrmatch
  2547. null, //corrreplwhat
  2548. null, //corrreplwith
  2549. null, //separator
  2550. "http://jumbofiles.com/checkfiles.html", //api url
  2551. "op=checkfiles&process=Check+URLs&list=", //postdata
  2552. /(jumbofiles\.com\/\w+)/, //linkregex
  2553. /blue'>http:\/\/(?:|www\.)jumbofiles\.com\/\w+/g, //liveregex
  2554. /red'>http:\/\/(?:|www\.)jumbofiles\.com\/\w+/g, //deadregex
  2555. /orange'>http:\/\/(?:|www\.)jumbofiles\.com\/\w+/g, //unavaregex
  2556. null //function delegate
  2557. )
  2558. }
  2559. if (GM_getValue("Check_edisk_dot_cz_links", false))
  2560. {
  2561. addHost(
  2562. "edisk", //hostname
  2563. "(?:(?:muj|data)\\d*\\.|)edisk\\.(?:cz|sk|eu)\/(?:|(?:cz|sk|en|pl)\/)", //linkregex
  2564. "//a[contains(@href,'edisk.')]", //xpath
  2565. null, //blocksize
  2566. null, //corrmatch
  2567. /edisk\.\w{2}\/(?:|\w{2}\/)stahni/, //corrreplwhat
  2568. 'edisk.cz/stahni', //corrreplwith
  2569. null, //separator
  2570. 'http://www.edisk.cz/zkontrolovat-odkazy',
  2571. 'submitBtn=Zkontrolovat&checkFiles=',
  2572. /((?:download|stahn(?:i|out-soubor))\/\d+)/,
  2573. /"ano"\/>\s*<\/td>\s*<td>\s*http:\/\/.+/g,
  2574. /"ne"\/>\s*<\/td>\s*<td>\s*http:\/\/.+/g,
  2575. null,
  2576. null //function delegate
  2577. )
  2578. }
  2579. if (GM_getValue("Check_bezvadata_dot_cz_links", false))
  2580. {
  2581. GM_xmlhttpRequest( //age check skip
  2582. {
  2583. method: 'POST',
  2584. url: 'http://bezvadata.cz/vyhledavani/souhlas-zavadny-obsah',
  2585. headers: {
  2586. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  2587. 'Content-type': 'application/x-www-form-urlencoded',
  2588. 'Referer': ""
  2589. }
  2590. });
  2591. addHost(
  2592. "bezvadata", //hostname
  2593. "(?:beta\\.|)bezvadata\.cz\/stahnout\/\\d+\\w+", //linkregex
  2594. "//a[contains(@href,'bezvadata.cz')]", //xpath
  2595. null, //blocksize
  2596. null, //corrmatch
  2597. null, //corrreplwhat
  2598. null, //corrreplwith
  2599. null, //separator
  2600. 'http://bezvadata.cz/nastroje/kontrola-odkazu?do=kontrolaOdkazuForm-submit',
  2601. 'zkontrolovat=Zkontrolovat&odkazy=',
  2602. /(bezvadata\.cz\/stahnout\/\d+)/,
  2603. /bezvadata\.cz\/stahnout\/.+?<\/td>\s*<td style="background-color: #d9ffb2/g,
  2604. /bezvadata\.cz\/stahnout\/.+?<\/td>\s*<td style="background-color: #ffb2b2/g,
  2605. null,
  2606. null //function delegate
  2607. )
  2608. }
  2609. if (GM_getValue("Check_linkcrypt_dot_ws_links", false))
  2610. {
  2611. addHost(
  2612. "linkcrypt", //hostname
  2613. "linkcrypt\\.ws\/dir\/\\w+", //linkregex
  2614. "//a[contains(@href,'linkcrypt.ws/dir')]", //xpath
  2615. 100000, //blocksize
  2616. null, //corrmatch
  2617. null, //corrreplwhat
  2618. null, //corrreplwith
  2619. null, //separator
  2620. null,
  2621. null,
  2622. null,
  2623. null,
  2624. null,
  2625. null,
  2626. linkcryptBulkCheck //function delegate
  2627. )
  2628. }
  2629. if (GM_getValue("Check_linksave_dot_in_links", false))
  2630. {
  2631. addHost(
  2632. "linksave", //hostname
  2633. "linksave\\.in\/\\w+", //linkregex
  2634. "//a[contains(@href,'linksave.in')]", //xpath
  2635. 100000, //blocksize
  2636. null, //corrmatch
  2637. null, //corrreplwhat
  2638. null, //corrreplwith
  2639. null, //separator
  2640. null,
  2641. null,
  2642. null,
  2643. null,
  2644. null,
  2645. null,
  2646. linksaveBulkCheck //function delegate
  2647. )
  2648. }
  2649. if (GM_getValue("Check_videobb_dot_com_links", false))
  2650. {
  2651. addHost(
  2652. "videobb", //hostname
  2653. "videobb\\.com\/(?:video\/|watch_video\\.php\\?v=)\\w+", //linkregex
  2654. "//a[contains(@href,'videobb.com')]", //xpath
  2655. null, //blocksize
  2656. null, //corrmatch
  2657. /watch_video\.php\?v=/, //corrreplwhat
  2658. 'video/', //corrreplwith
  2659. null, //separator
  2660. 'http://www.videobb.com/link_checker.php',
  2661. 'links=',
  2662. /videobb\.com\/video\/(\w+)/,
  2663. /<td>http:\/\/(?:www\.|)videobb.com\/video\/\w+<\/td>\s+<td>.+?<\/td>\s+<td>\d+:\d+<\/td>\s+<td>Available/g,
  2664. /<td>http:\/\/(?:www\.|)videobb.com\/video\/\w+<\/td>\s+<td><\/td>\s+<td>N\/A<\/td>\s+<td>Not Available/g,
  2665. null,
  2666. null //function delegate
  2667. )
  2668. }
  2669. if (GM_getValue("Check_cramit_dot_in_links", false))
  2670. {
  2671. addHost(
  2672. "cramit,cramitin", //hostname
  2673. "cramit(?:\\.in|in\\.net)\/", //linkregex
  2674. "//a[contains(@href,'cramitin.net') or contains(@href,'cramit.in')]", //xpath
  2675. null, //blocksize
  2676. null, //corrmatch
  2677. null, //corrreplwhat
  2678. null, //corrreplwith
  2679. null, //separator
  2680. 'http://cramit.in/checkfiles.html',
  2681. 'op=checkfiles&process=CHECK+URL%27S&list=',
  2682. /(cramit(?:\.in|in\.net)\/\w+)/,
  2683. /green>http:\/\/(?:www\.|)cramit(?:\.in|in\.net)\/\w+/g,
  2684. /red'>http:\/\/(?:www\.|)cramit(?:\.in|in\.net)\/\w+/g,
  2685. /orange'>http:\/\/(?:www\.|)cramit(?:\.in|in\.net)\/\w+/g,
  2686. null //function delegate
  2687. )
  2688. }
  2689. /* if (GM_getValue("Check_turbobit_dot_net_links", false))
  2690. {
  2691. addHost(
  2692. "turbobit", //hostname
  2693. "turbobit\\.(?:net|pl)\/(?:\\w+\/|).+?\\.html", //linkregex
  2694. "//a[contains(@href,'turbobit.')]", //xpath
  2695. null, //blocksize
  2696. /(turbobit\.(?:net|pl)\/(?:\w+\/|).+?\.html)/, //corrmatch
  2697. null, //corrreplwhat
  2698. null, //corrreplwith
  2699. "\n", //separator
  2700. 'http://turbobit.net/linkchecker/csv',
  2701. 'links_to_check=',
  2702. /(turbobit\.(?:net|pl)\/\w+)/,
  2703. /turbobit\.(?:net|pl)\/.*?, 1/g,
  2704. /turbobit\.(?:net|pl)\/.*?, 0/g,
  2705. null,
  2706. null //function delegate
  2707. )
  2708. } */
  2709. if (GM_getValue("Check_filerio_dot_com_links", false))
  2710. {
  2711. addHost(
  2712. "filekeen,filerio", //hostname
  2713. //"file(?:keen|rio)\\.(?:com|in)\/\\w+\/.", //linkregex
  2714. "file(?:keen|rio)\\.(?:com|in)\/\\w+", //linkregex
  2715. "//a[contains(@href,'filekeen.com') or contains(@href,'filerio.')]", //xpath
  2716. null, //blocksize
  2717. null, //corrmatch
  2718. null, //corrreplwhat
  2719. null, //corrreplwith
  2720. null, //separator
  2721. 'http://filerio.in/checkfiles.html',
  2722. 'op=checkfiles&process=Check+URLs&list=',
  2723. /(file(?:keen|rio)\.(?:com|in)\/\w+)/,
  2724. /green'>http:\/\/(?:www\.|)file(?:keen|rio)\.(?:com|in)\/\w+/g,
  2725. /red'>http:\/\/(?:www\.|)file(?:keen|rio)\.(?:com|in)\/\w+/g,
  2726. /orange'>http:\/\/(?:www\.|)file(?:keen|rio)\.(?:com|in)\/\w+/g,
  2727. null //function delegate
  2728. )
  2729. }
  2730. if (GM_getValue("Check_share_dash_online_dot_biz_links", false))
  2731. {
  2732. addHost(
  2733. "share-online,egoshare", //hostname
  2734. "(?:share-online\\.biz|egoshare\\.com)\/(?:dl\/|download\\.php\\?id=)", //linkregex
  2735. "//a[contains(@href,'share-online.biz') or contains(@href,'egoshare.com')]", //xpath
  2736. null, //blocksize
  2737. /http:\/\/(?:www\.)?(?:share-online\.biz|egoshare\.com)\/d(?:l\/|ownload\.php\?id=)(\w+)/, //corrmatch
  2738. null, //corrreplwhat
  2739. null, //corrreplwith
  2740. "\n", //separator
  2741. 'http://api.share-online.biz/linkcheck.php',
  2742. 'links=',
  2743. /(\w+);(?:OK|NOTFOUND|DELETED)/,
  2744. /\w+;OK/g,
  2745. /\w+;(?:NOTFOUND|DELETED)/g,
  2746. null,
  2747. null //function delegate
  2748. )
  2749. }
  2750. if (GM_getValue("Check_quickshare_dot_cz_links", false))
  2751. {
  2752. addHost(
  2753. "quickshare", //hostname
  2754. "quickshare\\.cz\/stahnout-soubor\/\\d+", //linkregex
  2755. "//a[contains(@href,'quickshare.cz')]", //xpath
  2756. null, //blocksize
  2757. null, //corrmatch
  2758. null, //corrreplwhat
  2759. null, //corrreplwith
  2760. null, //separator
  2761. 'http://www.quickshare.cz/nastroje/link-checker',
  2762. 'linky=',
  2763. /quickshare\.cz\/stahnout-soubor\/(\d+(?::\w+)?)/,
  2764. /quickshare\.cz\/stahnout-soubor\/\d+(?::[\w\-.+$!*\/()\[\]\',~%?:@#&=\\]+)?\s*<\/a><\/td><td><img src="\/img\/ok\.gif/g,
  2765. /quickshare\.cz\/stahnout-soubor\/\d+(?::[\w\-.+$!*\/()\[\]\',~%?:@#&=\\]+)?\s*<\/td><td><img src="\/img\/nenalezeno\.gif/g,
  2766. null,
  2767. null //function delegate
  2768. )
  2769. }
  2770. if (GM_getValue("Check_netload_dot_in_links", false))
  2771. {
  2772. addHost(
  2773. "netload", //hostname
  2774. "netload\\.in\/datei\\w{10}", //linkregex
  2775. "//a[contains(@href,'netload.in')]", //xpath
  2776. null, //blocksize
  2777. null, //corrmatch
  2778. null, //corrreplwhat
  2779. null, //corrreplwith
  2780. "\n", //separator
  2781. "http://api.netload.in/index.php?id=2", //api url
  2782. "send=Absenden&links=", //postdata
  2783. /(\w+);/, //linkregex
  2784. /\w{10,};.+?;.+?;online/g, //liveregex
  2785. /\w{10,};.+?;.+?;offline/g, //deadregex
  2786. null, //unavaregex
  2787. //netloadBulkCheck //function delegate //disabled on probation since 1.2.4.5
  2788. null //function delegate
  2789. )
  2790. }
  2791. if (GM_getValue("Check_oboom_dot_com_links", false))
  2792. {
  2793. addHost(
  2794. "oboom", //hostname
  2795. "oboom\\.com\/#?\\w{8}", //linkregex
  2796. "//a[contains(@href,'oboom.com/')]", //xpath
  2797. null, //blocksize
  2798. /oboom\.com\/#?(\w{8})/, //corrmatch
  2799. null, //corrreplwhat
  2800. null, //corrreplwith
  2801. null, //separator
  2802. null,
  2803. null,
  2804. null,
  2805. null, //liveregex
  2806. null, //deadregex
  2807. null,
  2808. oboomBulk //function delegate
  2809. )
  2810. }
  2811. if (GM_getValue("Check_mega_dot_nz_links", false))
  2812. {
  2813. addHost(
  2814. "mega",
  2815. "mega(?:\\.co)?\\.nz\/#!\\w+",
  2816. "//a[contains(@href,'mega.co.nz/') or contains(@href,'mega.nz/')]",
  2817. 100000, //blocksize
  2818. null, //corrmatch
  2819. null, //corrreplwhat
  2820. null, //corrreplwith
  2821. null, //separator
  2822. null,
  2823. null,
  2824. null,
  2825. null,
  2826. null,
  2827. null,
  2828. megaBulkCheck //function delegate
  2829. )
  2830. }
  2831.  
  2832. //the same as GenType2, except api url is 'https://' instead of 'http://www.' and corrmatch is not??? needed
  2833.  
  2834. if (GM_getValue("Check_extabit_dot_com_links", false))
  2835. {
  2836. addHost(
  2837. "extabit", //hostname
  2838. "extabit\\.com\/file\/\\w+", //linkregex
  2839. "//a[contains(@href,'extabit.com')]", //xpath
  2840. null, //blocksize
  2841. null, //corrmatch
  2842. null, //corrreplwhat
  2843. null, //corrreplwith
  2844. "\n", //separator
  2845. "http://extabit.com/linkchecker.jsp", //api url
  2846. "url=", //postdata
  2847. /extabit\.com\/(file\/\w+)/, //linkregex
  2848. /extabit\.com\/file\/\w+\/[^<]+<\/a><\/td>\s*<td class="status"><span class="status_green">/g, //liveregex
  2849. /extabit\.com\/file\/\w+\/[^<]+<\/a><\/td>\s*<td class="status"><span class="status_red">/g, //deadregex
  2850. /extabit\.com\/file\/\w+\/[^<]+<\/a><\/td>\s*<td class="status"><span class="status_yellow">/g, //unavaregex
  2851. extabitBulkCheck //function delegate
  2852. )
  2853. }
  2854. if (GM_getValue("Check_junocloud_dot_me_links", false))
  2855. {
  2856. addHost(
  2857. "junocloud", //hostname
  2858. "junocloud\\.me\/\\w+", //linkregex
  2859. "//a[contains(@href,'junocloud.me')]", //xpath
  2860. null, //blocksize
  2861. null, //corrmatch
  2862. null, //corrreplwhat
  2863. null, //corrreplwith
  2864. "\n", //separator
  2865. "http://junocloud.me/checkfiles.html", //api url
  2866. "op=checkfiles&process=Check+URLs&list=", //postdata
  2867. /(junocloud\.me\/\w+)/, //linkregex
  2868. /<a href="http:\/\/junocloud\.me\/\w+[^<]+<\/a>\s*<span style="color: green/g, //liveregex
  2869. /<a href="http:\/\/junocloud\.me\/\w+[^<]+<\/a>\s*<span style="color: red/g, //deadregex
  2870. null, //unavaregex
  2871. null //function delegate
  2872. )
  2873. }
  2874. if (GM_getValue("Check_webshare_dot_cz_links", false))
  2875. {
  2876. addHost(
  2877. "webshare", //hostname
  2878. "webshare\.cz\/(?:(?:#/)?file/\\w+|\\w+-.*)", //linkregex
  2879. "//a[contains(@href,'webshare.cz')]", //xpath
  2880. 100000, //blocksize
  2881. null, //corrmatch
  2882. null, //corrreplwhat
  2883. null, //corrreplwith
  2884. null, //separator
  2885. null, //api url
  2886. null, //postdata
  2887. null, //linkregex
  2888. null, //liveregex
  2889. null, //deadregex
  2890. null, //unavaregex
  2891. webshareBulkCheck //function delegate
  2892. )
  2893. }
  2894. /////////////////////////////
  2895. // Common function delegate to send links to get checked by host linkchecker
  2896. /////////////////////////////
  2897. // If you define a new delegate, you may use following properties
  2898. // this.links [array] array of strings (link blocks). The links in each block separated with host.splitSeparator.
  2899. // this.apiUrl [string] API or web linkchecker URL
  2900. // this.postData [string] POSTDATA for POST request
  2901. // this.resLiveRegex [regex] matches live substrings in the request response
  2902. // this.resDeadRegex [regex] matches dead substrings in the request response
  2903. // this.resUnavaRegex [regex] matches unava substrings in the request response (the regex is often null!)
  2904. //
  2905. // this.resLinkRegex [regex] matches links further passed to DisplayTheCheckedLinks
  2906. //
  2907. // See the code below for standard bulkcheck handling reference.
  2908. //////////////////////////////
  2909. function genBulkCheck()
  2910. {
  2911. var blockIdx = this.links.length;
  2912. while (blockIdx--)
  2913. {
  2914. postRequest(this.apiUrl, this.postData, this.links[blockIdx],
  2915. this.resLinkRegex, this.resLiveRegex, this.resDeadRegex, this.resUnavaRegex);
  2916. }
  2917. function postRequest(api, postData, links, linkRegex, liveRegex, deadRegex, unavaRegex)
  2918. {
  2919. GM_xmlhttpRequest(
  2920. {
  2921. method: 'POST',
  2922. url: api,
  2923. headers: {
  2924. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  2925. 'Content-type': 'application/x-www-form-urlencoded',
  2926. 'Referer': api,
  2927. 'X-Requested-With': 'XMLHttpRequest'
  2928. },
  2929. data: postData + encodeURIComponent(links),
  2930. onload: function (result)
  2931. {
  2932. var res = result.responseText;
  2933. // GM_log(res);
  2934. var i;
  2935.  
  2936. var livelinks = res.match(liveRegex);
  2937. var deadlinks = res.match(deadRegex);
  2938. // GM_log(livelinks);
  2939. // GM_log(deadlinks);
  2940. if (livelinks != null)
  2941. {
  2942. i = livelinks.length - 1;
  2943. do
  2944. {
  2945. livelinks[i] = livelinks[i].match(linkRegex)[1];
  2946. }
  2947. while (i--);
  2948. DisplayTheCheckedLinks(livelinks, 'alive_link');
  2949. }
  2950.  
  2951. if (deadlinks != null)
  2952. {
  2953. i = deadlinks.length - 1;
  2954. do
  2955. {
  2956. deadlinks[i] = deadlinks[i].match(linkRegex)[1];
  2957. }
  2958. while (i--);
  2959. DisplayTheCheckedLinks(deadlinks, 'adead_link');
  2960. }
  2961.  
  2962. if (unavaRegex != null)
  2963. {
  2964. var unavalinks = res.match(unavaRegex);
  2965. if (unavalinks)
  2966. {
  2967. i = unavalinks.length - 1;
  2968. do
  2969. {
  2970. unavalinks[i] = unavalinks[i].match(linkRegex)[1];
  2971. }
  2972. while (i--);
  2973. DisplayTheCheckedLinks(unavalinks, 'unava_link');
  2974. }
  2975. }
  2976. }
  2977. });
  2978. }
  2979. }
  2980. //specialized bulkchecking handlers follow
  2981. function webshareBulkCheck()
  2982. {
  2983. var arr = this.links[0].split("\r\n");
  2984. var i = arr.length;
  2985. while(i--)
  2986. {
  2987. postRequest(arr[i]);
  2988. }
  2989. //function postRequest(api, postData, links, linkRegex, liveRegex, deadRegex, unavaRegex)
  2990. function postRequest(wsLink)
  2991. {
  2992. var id = wsLink.match(/webshare\.cz\/(?:(?:#\/)?file\/)?(\w+)/)[1];
  2993. GM_xmlhttpRequest(
  2994. {
  2995. method: 'POST',
  2996. url: "http://webshare.cz/api/file_info/",
  2997. headers: {
  2998. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  2999. 'Content-type': 'application/x-www-form-urlencoded',
  3000. 'Referer': "",
  3001. },
  3002. data: "wst=&ident=" + id,
  3003. onload: function (result)
  3004. {
  3005. var res = result.responseText;
  3006. if (res.match(/<name>.+?<\/name>/))
  3007. {
  3008. DisplayTheCheckedLinks([id], 'alive_link');
  3009. }
  3010. else
  3011. {
  3012. DisplayTheCheckedLinks([id], 'adead_link');
  3013. }
  3014. }
  3015. });
  3016. }
  3017. }
  3018. //like genBulkCheck, but extabit linkchecker only works when logged in. If not logged in, non-bulk checking has to be used.
  3019. //extabit also doesn't like requests in fast succession, so some delays are added.
  3020. function extabitBulkCheck()
  3021. {
  3022. var timeoutDelay = 0;
  3023. var blockIdx = this.links.length;
  3024. while (blockIdx--)
  3025. {
  3026. postRequest(this.apiUrl, this.postData, this.links[blockIdx],
  3027. this.resLinkRegex, this.resLiveRegex, this.resDeadRegex, this.resUnavaRegex);
  3028. }
  3029. function postRequest(api, postData, links, linkRegex, liveRegex, deadRegex, unavaRegex)
  3030. {
  3031. GM_xmlhttpRequest(
  3032. {
  3033. method: 'POST',
  3034. url: api,
  3035. headers: {
  3036. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  3037. 'Content-type': 'application/x-www-form-urlencoded',
  3038. 'Referer': api,
  3039. 'X-Requested-With': 'XMLHttpRequest'
  3040. },
  3041. data: postData + encodeURIComponent(links),
  3042. onload: function (result)
  3043. {
  3044. var res = result.responseText;
  3045. if (/id="registration_header"/.test(res)) //not logged in, have to use non-bulk
  3046. {
  3047. function geturlfunc(link, tryID) //basically the geturl function with some changes (compacted, displaythecheckedlinkS, multiple tries)
  3048. {
  3049. //GM_log(tryID + ': ' + link);
  3050. GM_xmlhttpRequest(
  3051. {
  3052. method: 'GET',
  3053. url: link,
  3054. 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': ""},
  3055. onload: function(result2)
  3056. {
  3057. var res2 = result2.responseText;
  3058. var res2Status = result.status;
  3059. if (/download-file-btn/.test(res2)) {DisplayTheCheckedLinks([link], 'alive_link'); return;}
  3060. if (/Search mirrors|id="mirrb"/.test(res2) || res2Status==404) {DisplayTheCheckedLinks([link], 'adead_link'); return;}
  3061. if (/currently unavailable|temporarily unavailable|disponible en estos momentos|vorläufig unerreichbar|Файл временно недоступен/.test(res2) || res2Status == 500 || res2Status == 503)
  3062. {
  3063. if (tryID < 7)
  3064. setTimeout(function(){geturlfunc(link,tryID+1)}, tryID * 1000 + (Math.random() * tryID * 2000));
  3065. else
  3066. {DisplayTheCheckedLinks([link], 'unava_link'); return;}
  3067. }
  3068. }
  3069. });
  3070. }
  3071. //split the hrefs and check them one by one
  3072. GM_log('Using slow extabit.com link checking. Log in to extabit to use fast bulk checking.');
  3073. links = links.split('\n');
  3074. var i = links.length;
  3075. while (i--)
  3076. {
  3077. if (links[i])
  3078. {
  3079. (function(i){setTimeout(function(){geturlfunc(links[i],1)}, timeoutDelay);})(i);
  3080. timeoutDelay += 500;
  3081. }
  3082. }
  3083. return;
  3084. }
  3085. var i;
  3086.  
  3087. var livelinks = res.match(liveRegex);
  3088. var deadlinks = res.match(deadRegex);
  3089. if (livelinks != null)
  3090. {
  3091. i = livelinks.length - 1;
  3092. do
  3093. {
  3094. livelinks[i] = livelinks[i].match(linkRegex)[1];
  3095. }
  3096. while (i--);
  3097. DisplayTheCheckedLinks(livelinks, 'alive_link');
  3098. }
  3099.  
  3100. if (deadlinks != null)
  3101. {
  3102. i = deadlinks.length - 1;
  3103. do
  3104. {
  3105. deadlinks[i] = deadlinks[i].match(linkRegex)[1];
  3106. }
  3107. while (i--);
  3108. DisplayTheCheckedLinks(deadlinks, 'adead_link');
  3109. }
  3110.  
  3111. if (unavaRegex != null)
  3112. {
  3113. var unavalinks = res.match(unavaRegex);
  3114. if (unavalinks)
  3115. {
  3116. i = unavalinks.length - 1;
  3117. do
  3118. {
  3119. unavalinks[i] = unavalinks[i].match(linkRegex)[1];
  3120. }
  3121. while (i--);
  3122. DisplayTheCheckedLinks(unavalinks, 'unava_link');
  3123. }
  3124. }
  3125. }
  3126. });
  3127. }
  3128. }
  3129. function netloadBulkCheck()
  3130. {
  3131. var blockIdx = this.links.length;
  3132.  
  3133. while (blockIdx--)
  3134. {
  3135. postRequest(this.apiUrl, this.postData, this.links[blockIdx],
  3136. this.resLinkRegex, this.resLiveRegex, this.resDeadRegex, this.unavaRegex);
  3137. }
  3138. function postRequest(api, postData, links, linkRegex, liveRegex, deadRegex, unavaRegex)
  3139. {
  3140. GM_xmlhttpRequest(
  3141. {
  3142. method: 'POST',
  3143. url: api,
  3144. headers: {
  3145. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  3146. 'Content-type': 'application/x-www-form-urlencoded',
  3147. 'Referer': ""
  3148. },
  3149. data: postData + encodeURIComponent(links),
  3150. onload: function (result)
  3151. {
  3152. var res = result.responseText;
  3153. var i;
  3154.  
  3155. var livelinks = res.match(liveRegex);
  3156. var deadlinks = res.match(deadRegex);
  3157. if (livelinks != null)
  3158. {
  3159. i = livelinks.length - 1;
  3160. do
  3161. {
  3162. recheckLink(livelinks[i].match(linkRegex)[1]);
  3163. }
  3164. while(i--);
  3165. }
  3166.  
  3167. if (deadlinks != null)
  3168. {
  3169. i = deadlinks.length - 1;
  3170. do
  3171. {
  3172. deadlinks[i] = deadlinks[i].match(linkRegex)[1];
  3173. }
  3174. while (i--);
  3175. DisplayTheCheckedLinks(deadlinks, 'adead_link');
  3176. }
  3177. }
  3178. });
  3179. }
  3180. function recheckLink(link)
  3181. {
  3182. var link = link;
  3183. GM_xmlhttpRequest(
  3184. {
  3185. method: 'GET',
  3186. url: 'http://netload.in/datei' + link + '.htm',
  3187. headers: {
  3188. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3189. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  3190. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  3191. 'Referer': ""
  3192. },
  3193. onload: function (result)
  3194. {
  3195. var res = result.responseText;
  3196.  
  3197. if (res.match(/dl_first_file_download">|download_limit\.gif/))
  3198. {
  3199. DisplayTheCheckedLinks([link], 'alive_link');
  3200. return;
  3201. }
  3202.  
  3203. if (res.match(/achtung\.jpg"/))
  3204. {
  3205. DisplayTheCheckedLinks([link], 'adead_link');
  3206. }
  3207. },
  3208. onerror: function ()
  3209. {
  3210. displayTheCheckedLink(link, 'unava_link');
  3211. }
  3212. });
  3213. }
  3214. }
  3215.  
  3216. function depositfilesBulkCheck()
  3217. {
  3218. var arr = this.links[0].split("\r\n");
  3219. var i = arr.length;
  3220. var seqno = Math.floor(Math.random()*1000000000);
  3221. while(i--)
  3222. {
  3223. DFpostRequest(arr[i]);
  3224. }
  3225. }
  3226. function DFpostRequest(DFLink)
  3227. {
  3228. DFLink=DFLink.replace('depositfiles.lt/','depositfiles.com/');
  3229. DFLink=DFLink.replace('depositfiles.org/','depositfiles.com/');
  3230. DFLink=DFLink.replace('dfiles.ru/','depositfiles.com/');
  3231. DFLink=DFLink.replace('dfiles.eu/','depositfiles.com/');
  3232. DFLink=DFLink.replace('depositfiles.com/en/','depositfiles.com/');
  3233. var id = DFLink.match(/depositfiles\.com\/files\/(\w+)/)[1];
  3234. GM_xmlhttpRequest(
  3235. {
  3236. method: "GET",
  3237. url: "http://depositfiles.com/api/get_download_info.php?id=" + id + "&format=json",
  3238. headers: {
  3239. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3240. 'Content-Type': 'application/x-www-form-urlencoded',
  3241. 'Referer': ""
  3242. },
  3243. onload: function (result)
  3244. {
  3245. var res = result.responseText;
  3246. if (res.match('(?:no_file|file_ban)'))
  3247. {
  3248. DisplayTheCheckedLinks([id], 'adead_link');
  3249. return;
  3250. }
  3251. if (res.match('"download_li(?:nk|mit)|password_check|file_storage"'))
  3252. {
  3253. DisplayTheCheckedLinks([id], 'alive_link');
  3254. return;
  3255. }
  3256. DisplayTheCheckedLinks([id], 'unava_link');
  3257. }
  3258. });
  3259. }
  3260.  
  3261. function megaBulkCheck()
  3262. {
  3263. var arr = this.links[0].split("\r\n");
  3264. var i = arr.length;
  3265. var seqno = Math.floor(Math.random()*1000000000);
  3266. while(i--)
  3267. {
  3268. postRequest(arr[i]);
  3269. }
  3270. function postRequest(megaLink)
  3271. {
  3272. megaLink=megaLink.replace('mega.nz/','mega.co.nz/');
  3273. var id = megaLink.match(/mega\.co\.nz\/#!(\w+)(?:!\w+)?/)[1];
  3274. GM_xmlhttpRequest(
  3275. {
  3276. method: "POST",
  3277. url: 'https://g.api.mega.co.nz/cs?id=' + seqno++,
  3278. data: '[{"a":"g","p":"' + id + '","ssl": "1"}]',
  3279. headers: {
  3280. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3281. 'Content-Type': 'application/xml',
  3282. 'Referer': "https://mega.co.nz/"
  3283. },
  3284. onload: function (result)
  3285. {
  3286. var res = $.parseJSON(result.responseText.match(/\[(.+?)\]/)[1]);
  3287. if ((typeof res == "number" && (res == -9 || res == -16 || res == -6)) || res.d)
  3288. {
  3289.  
  3290. DisplayTheCheckedLinks([id], 'adead_link');
  3291. }
  3292. if (res.at)
  3293. {
  3294. DisplayTheCheckedLinks([id], 'alive_link');
  3295. }
  3296. if (res.e == "ETEMPUNAVAIL")
  3297. {
  3298. DisplayTheCheckedLinks([id], 'unava_link');
  3299. }
  3300. }
  3301. });
  3302. }
  3303.  
  3304. }
  3305.  
  3306. function oboomBulk() {
  3307. var a = [], b = [], c = [];
  3308. var array = this.links;
  3309.  
  3310. GM_xmlhttpRequest({
  3311. method: 'GET',
  3312. url: 'https://www.oboom.com/1/guestsession',
  3313. headers: {
  3314. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  3315. 'Content-type': 'application/x-www-form-urlencoded',
  3316. 'Referer': 'https://www.oboom.com',
  3317. 'X-Requested-With': 'XMLHttpRequest'
  3318. },
  3319. onload: function(result) {
  3320. var blockIdx = array.length;
  3321. var token = JSON.parse(result.responseText)[1];
  3322. while (blockIdx--) {
  3323. startCheck(array[blockIdx].split('\r\n'), token);
  3324. }
  3325. }
  3326. });
  3327.  
  3328. function startCheck(links, token) {
  3329. GM_xmlhttpRequest({
  3330. method: 'POST',
  3331. url: "https://api.oboom.com/1/info",
  3332. headers: {
  3333. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  3334. 'Content-type': 'application/x-www-form-urlencoded',
  3335. 'Referer': 'https://www.oboom.com/',
  3336. 'X-Requested-With': 'XMLHttpRequest'
  3337. },
  3338. data: "token=" + token + "&items=" + links.join(","),
  3339. onload: function(result) {
  3340. var res = JSON.parse(result.responseText)[1];
  3341. var i = res.length, s;
  3342.  
  3343. while (i--) {
  3344. s = res[i].state;
  3345. if (s == 'online') a.push(res[i].id);
  3346. 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);
  3347. else c.push(res[i].id);
  3348. }
  3349.  
  3350. if (a.length > 0) DisplayTheCheckedLinks(a, 'alive_link');
  3351. if (b.length > 0) DisplayTheCheckedLinks(b, 'adead_link');
  3352. if (c.length > 0) DisplayTheCheckedLinks(c, 'unava_link');
  3353. }
  3354. });
  3355. }
  3356. }
  3357. function linksaveBulkCheck()
  3358. {
  3359. var arr = this.links[0].split("\r\n");
  3360. var i = arr.length;
  3361. while(i--)
  3362. {
  3363. postRequest(arr[i]);
  3364. }
  3365. function postRequest(lsLink)
  3366. {
  3367. GM_xmlhttpRequest(
  3368. {
  3369. method: "GET",
  3370. url: lsLink + '-t.jpg',
  3371. headers: {
  3372. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3373. 'Accept': 'text/xml',
  3374. 'Referer': ""
  3375. },
  3376. onload: function (result)
  3377. {
  3378. var imgLen = result.responseHeaders.match(/Content-Length: (\d+)/)[1];
  3379. if (imgLen == 965) //online
  3380. {
  3381. DisplayTheCheckedLinks([lsLink], 'alive_link');
  3382. }
  3383.  
  3384. if (imgLen == 972) //offline
  3385. {
  3386. DisplayTheCheckedLinks([lsLink], 'adead_link');
  3387. }
  3388. if (imgLen == 978) //unava
  3389. {
  3390. DisplayTheCheckedLinks([lsLink], 'unava_link');
  3391. }
  3392. }
  3393. });
  3394. }
  3395.  
  3396. }
  3397. function linkcryptBulkCheck()
  3398. {
  3399. var arr = this.links[0].split("\r\n");
  3400. var i = arr.length;
  3401. while(i--)
  3402. {
  3403. postRequest(arr[i]);
  3404. }
  3405. function postRequest(lcLink)
  3406. {
  3407. GM_xmlhttpRequest(
  3408. {
  3409. method: "GET",
  3410. url: 'http://linkcrypt.ws/api.html?api=status_V1&folderKey=' + lcLink.match(/dir\/(\w+)/)[1],
  3411. headers: {
  3412. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3413. 'Accept': 'text/xml',
  3414. 'Referer': ""
  3415. },
  3416. onload: function (result)
  3417. {
  3418. var res = result.responseText;
  3419. if (res.match(/<errorCode>1101|folderStatus>[23]/)) //Offline status
  3420. {
  3421. DisplayTheCheckedLinks([lcLink], 'adead_link');
  3422. return;
  3423. }
  3424. if (res.match(/folderStatus>1/)) //Online status
  3425. {
  3426. DisplayTheCheckedLinks([lcLink], 'alive_link');
  3427. }
  3428. else
  3429. {
  3430. DisplayTheCheckedLinks([lcLink], 'unava_link');
  3431. }
  3432. }
  3433. });
  3434. }
  3435. }
  3436.  
  3437. function megashareBulkCheck()
  3438. {
  3439. var arr = this.links[0].split("\r\n");
  3440. var i = arr.length;
  3441. while(i--)
  3442. {
  3443. postRequest(arr[i]);
  3444. }
  3445. function postRequest(msLink)
  3446. {
  3447. GM_xmlhttpRequest(
  3448. {
  3449. method: "GET",
  3450. url: msLink,
  3451. headers: {
  3452. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3453. 'Content-Type': 'application/x-www-form-urlencoded',
  3454. 'Referer': ""
  3455. },
  3456. onload: function (result)
  3457. {
  3458. var prZVal = result.responseText.match(/name="(\d+prZVal)" value="(\d+)">/);
  3459. var btn3Name = result.responseText.match(/src="images\/dwn-btn3\.gif" name="(.+?)"/);
  3460. if ((prZVal == null) || (btn3Name == null))
  3461. {
  3462. return;
  3463. }
  3464. GM_xmlhttpRequest(
  3465. {
  3466. method: "POST",
  3467. url: msLink,
  3468. headers: {
  3469. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3470. 'Content-Type': 'application/x-www-form-urlencoded',
  3471. 'Referer': ""
  3472. },
  3473. data: prZVal[1] + "=" + prZVal[2] + '&' + btn3Name[1] + '.x=1&' + btn3Name[1] + '.y=1',
  3474. onload: function (result)
  3475. {
  3476. var res = result.responseText;
  3477. if (res.match(/<div id="err">/))
  3478. {
  3479. DisplayTheCheckedLinks([msLink.match(/\.com(\/\d+)/)[1]], 'adead_link');
  3480. }
  3481. else
  3482. {
  3483. DisplayTheCheckedLinks([msLink.match(/\.com(\/\d+)/)[1]], 'alive_link');
  3484. }
  3485. }
  3486. });
  3487. }
  3488. });
  3489. }
  3490. }
  3491. function ncryptBulkCheck()
  3492. {
  3493. var arr = this.links[0].split("\r\n");
  3494. var i = arr.length;
  3495. while(i--)
  3496. {
  3497. postRequest(arr[i]);
  3498. }
  3499. function postRequest(ncryptLink)
  3500. {
  3501. GM_xmlhttpRequest(
  3502. {
  3503. method: "POST",
  3504. url: 'http://ncrypt.in/api_status.php',
  3505. headers: {
  3506. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3507. 'Content-Type': 'application/x-www-form-urlencoded',
  3508. 'Referer': ""
  3509. },
  3510. data: 'link=' + encodeURI(ncryptLink),
  3511. onload: function (result)
  3512. {
  3513. var foldStatus = result.responseText.match(/(?:offline|online);/);
  3514. switch(foldStatus + ""){
  3515. case "offline;": DisplayTheCheckedLinks([ncryptLink], 'adead_link'); break;
  3516. case "online;": DisplayTheCheckedLinks([ncryptLink], 'alive_link'); break;
  3517. default: DisplayTheCheckedLinks([ncryptLink], 'unava_link');
  3518. }
  3519. }
  3520. });
  3521. }
  3522. }
  3523. function hellshareBulkCheck()
  3524. {
  3525. var links = this.links;
  3526. GM_xmlhttpRequest(
  3527. {
  3528. method: "GET",
  3529. url: 'http://www.hellshare.com',
  3530. headers: {
  3531. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3532. 'Accept': 'text/xml',
  3533. 'Referer': ""
  3534. },
  3535. onload: function (result)
  3536. {
  3537. var domain = result.responseText.match(/param_rau = "www\.hellshare\.(\w+)"/)[1];
  3538.  
  3539. var loc = 'check=Zkontrolovat+dostupnost+soubor%C5%AF&links=';
  3540. if (domain == 'sk')
  3541. loc = 'check=Skontrolova%C5%A5&links=';
  3542. if (domain == 'com')
  3543. loc = 'check=Check+availability&links=';
  3544. if (domain == 'hu')
  3545. loc = 'check=Kontrol%C3%A1lj&links=';
  3546. if (domain == 'pl')
  3547. loc = 'check=Sprawd%C5%BC+dost%C4%99pno%C5%9B%C4%87+plik%C3%B3w&links=';
  3548.  
  3549. genBulkCheck.call({ links: links,
  3550. apiUrl: 'http://www.hellshare.' + domain + '/linkchecker?do=linkChecker-linkcheckerform-submit',
  3551. postData: loc,
  3552. resLinkRegex: /hellshare\.(?:cz|com|sk|hu|pl)\/(?:[\w-\.]+\/|)([\w-\.]+\/\d{5,})/,
  3553. 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,
  3554. resDeadRegex: /<span style="color:gray">.*?<\/span> - <strong>/g,
  3555. resUnavaRegex: null
  3556. });
  3557. }
  3558. });
  3559. }
  3560. /**
  3561. * Displays check result
  3562. * @param {Array} Array of links or link fragments.
  3563. * @param {String} Check result status -> ['alive_link'|'adead_link'|'unava_link']
  3564. */
  3565. function DisplayTheCheckedLinks(links, resultStatus)
  3566. {
  3567. //(a[href*=link_1], a[href*=link_2], ..., a[href*=link_n])
  3568. var $links = $('a[href*="' + links.join('"], a[href*="') + '"]');
  3569. if (Do_not_linkify_DL_links)
  3570. { //TODO into separate jQuery function
  3571. $links.replaceWith(function(){
  3572. return '<span href="' + this.href + '">' + $(this).text() + '</span>';
  3573. });
  3574. $links = $('span[href*="' + links.join('"], span[href*="') + '"]');
  3575. }
  3576. $links.removeClass().addClass(resultStatus);
  3577. $links.each(function() {
  3578. this.href = Ref_anonymize_service + $(this).attr("href");
  3579. });
  3580. switch(resultStatus)
  3581. {
  3582. case "alive_link": cLinksAlive += $links.length;
  3583. if (Display_tooltip_info) $links.mouseover(displayTooltipInfo);
  3584. break;
  3585. case "adead_link": cLinksDead += $links.length;
  3586. if (Display_tooltip_info) $links.mouseover(displayTooltipError);
  3587. break;
  3588. case "unava_link": cLinksUnava += $links.length; break;
  3589. default:
  3590. }
  3591. cLinksProcessed += $links.length;
  3592. }
  3593. }
  3594. // starts bulkchecking
  3595. //
  3596. // params
  3597. // filterId [string] restricts link detection with passed id attribute
  3598. function startBulkCheck(filterId)
  3599. {
  3600. var cHosts = bulkHosts.length;
  3601. if (cHosts == 0) //no filehostings selected
  3602. return;
  3603. // STEP 1 linkify the links
  3604. var linkifyRegex = '';
  3605. var hostIdx = cHosts;
  3606. while(hostIdx--)
  3607. {
  3608. linkifyRegex += bulkHosts[hostIdx].linkRegex + "|";
  3609. }
  3610. linkifyRegex = linkifyRegex.replace(/\|$/, '');
  3611. linkify(linkifyRegex);
  3612. //
  3613. //STEP 2 detect link objects
  3614. var xpathAll = '';
  3615. var hostIdx = cHosts;
  3616. while(hostIdx--)
  3617. {
  3618. xpathAll += bulkHosts[hostIdx].xpath + "|";
  3619. }
  3620. xpathAll = xpathAll.replace(/\]\|\/\/a\[/g, " or ");
  3621. xpathAll = xpathAll.replace(/\]\|/, ')]');
  3622. if (filterId != null) //insert id restriction in the xpath
  3623. {
  3624. xpathAll = xpathAll.replace(/\[/, "[@class='" + filterId + "' and (");
  3625. }
  3626. else
  3627. {
  3628. xpathAll = xpathAll.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  3629. }
  3630. var links = document.evaluate(xpathAll, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  3631. if (filterId == null)
  3632. {
  3633. cLinksTotal += links.snapshotLength;
  3634. }
  3635. //
  3636. //STEP 3 bind links with hostings
  3637. var linkIdx = links.snapshotLength;
  3638. var href = null;
  3639. if (linkIdx == 0) // no links found
  3640. return;
  3641. var name;
  3642. while (linkIdx--)
  3643. {
  3644. href = links.snapshotItem(linkIdx).href;
  3645. try // DO NOT REMOVE, filters crap that went through xpath detection
  3646. {
  3647. name = gimmeHostName(href);
  3648. if (href.match(bulkHostNames[name].linkRegexObject) != null)
  3649. bulkHostNames[name].links.push(href);
  3650. }
  3651. catch(e)
  3652. {
  3653.  
  3654. }
  3655. }
  3656. //
  3657. //STEP 4 process the links for each filehosting
  3658. var hostIdx = cHosts;
  3659. var host;
  3660. var m,n;
  3661. var arr;
  3662. while (hostIdx--)
  3663. {
  3664. host = bulkHosts[hostIdx];
  3665. arr = host.links;
  3666. if (arr.length == 0) //no links for this hosting, skip
  3667. {
  3668. continue;
  3669. }
  3670. //links match corrections
  3671. if (host.corrMatch != null)
  3672. {
  3673. var idx = arr.length;
  3674. while (idx--)
  3675. {
  3676. arr[idx] = arr[idx].match(host.corrMatch)[1];
  3677. }
  3678. }
  3679. //links replace corrections
  3680. if ((host.corrReplWhat != null) && (host.corrReplWith != null))
  3681. {
  3682. var idx = arr.length;
  3683. while (idx--)
  3684. {
  3685. arr[idx] = arr[idx].replace(host.corrReplWhat, host.corrReplWith);
  3686. }
  3687. }
  3688. m = arr.length;
  3689. n = host.blockSize;
  3690. if (m > n)
  3691. {
  3692. //insert block separators (RAND_STRING) into the array
  3693. for(var i = n; i < m; i += n + 1)
  3694. {
  3695. arr.splice(i, 0, RAND_STRING);
  3696. }
  3697. }
  3698.  
  3699. host.func.call({ links: arr.join(host.splitSeparator).split(RAND_STRING),
  3700. apiUrl: host.apiUrl,
  3701. postData: host.postData,
  3702. resLinkRegex: host.resLinkRegex,
  3703. resLiveRegex: host.resLiveRegex,
  3704. resDeadRegex: host.resDeadRegex,
  3705. resUnavaRegex: host.resUnavaRegex
  3706. });
  3707. //clean up
  3708. arr.length = 0;
  3709. }
  3710. //
  3711.  
  3712. function gimmeHostName(link)
  3713. {
  3714. return link.replace(/https?:\/\/.*?http(s)?:\/\//, "http$1://").match(/https?:\/\/(?:www\.|[\w\.])*?([\w-]+)\.(?:co\.uk|co\.nz|\w+)\//)[1];
  3715. }
  3716. }
  3717. function checkLinks(filterId)
  3718. {
  3719. startBulkCheck(filterId);
  3720. start(filterId);
  3721. }
  3722.  
  3723. /**
  3724. * Initialises progress box including event binding and CSS
  3725. */
  3726. function initProgressBox()
  3727. {
  3728. if ($("#warlc-progressbox").length > 0)
  3729. return;
  3730. //progressbox css change size and color of progress box
  3731. GM_addStyle("#warlc-progressbox {position:fixed; background:DimGray;" + Progress_box_background_color +
  3732. "; opacity:" + (Progress_box_opacity / 100) +
  3733. "; bottom:" + Progress_box_pos_bottom +
  3734. "px; right:" + Progress_box_pos_right +
  3735. "px; padding:5px; font-size:20px; font-weight:bold; cursor:default;}\
  3736. \
  3737. .warlc-progressbar {text-align:center; color: DimGray; height:2px; margin-bottom:2px;}\
  3738. \
  3739. .warlc-progressitem {}\
  3740. \
  3741. .alive {color:#00FF7F; " + Live_links_color +
  3742. "; background:transparent url(" + alive_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;} .dead {color:" + Dead_links_color +
  3743. "; background:transparent url(" + adead_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;} .unava {color: " + Temp_unavailable_links_color +
  3744. "; background:transparent url(" + unava_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;} .processing {color:Black; " + Container_links_color +
  3745. "; background:transparent url(" + processing_link_gif + ") no-repeat scroll 100% 50%;padding-right:15px;} .prem {color:" + Premium_links_color +
  3746. "; background:transparent url(" + prem_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;}"
  3747. );
  3748. //
  3749. $('body').append(' <div id="warlc-progressbox">\
  3750. <div class="warlc-progressbar"></div>\
  3751. <span class="warlc-progressitem alive"></span> - \
  3752. <span class="warlc-progressitem dead"></span> - \
  3753. <span class="warlc-progressitem unava"></span> - \
  3754. <span class="warlc-progressitem prem"></span> - \
  3755. <span class="warlc-progressitem processing"></span>\
  3756. </div>');
  3757. $('#warlc-progressbox').hide().click(function(){
  3758. clearInterval(intervalId);
  3759. $(this).hide();
  3760. return false;
  3761. });
  3762. $(".warlc-progressbar").progressbar({complete: function(){
  3763. $(this).fadeOut();
  3764. clearInterval(intervalId); //stop refreshing the stats
  3765. }
  3766. })
  3767. .one('progressbarchange', function(){$('#warlc-progressbox').show();});
  3768. }
  3769. /**
  3770. * Updates progress data in progress box
  3771. */
  3772. function updateProgress()
  3773. {
  3774. $("#warlc-progressbox").attr('aria-valuenow', Math.round(((100 / cLinksTotal) * cLinksProcessed)));
  3775. if (cLinksTotal) // some links were detected on page
  3776. {
  3777. var percProgress = Math.round(((100 / cLinksTotal) * cLinksProcessed));
  3778. var $progressItems = $('#warlc-progressbox > .warlc-progressitem');
  3779. $(".warlc-progressbar").progressbar('option', 'value', percProgress);
  3780. if ((cLinksTotal - cLinksProcessed) == 0)
  3781. {
  3782. $progressItems.first().text(cLinksAlive)
  3783. .next().text(cLinksDead)
  3784. .next().text(cLinksUnava)
  3785. .next().text(cLinksprem)
  3786. .next().remove();
  3787. $('#warlc-progressbox').html($('#warlc-progressbox').html().substr(0,$('#warlc-progressbox').html().lastIndexOf(">")+1));
  3788. $('#warlc-progressbox div:first-child').remove();
  3789. }
  3790. else
  3791. {
  3792. $progressItems.first().text(cLinksAlive)
  3793. .next().text(cLinksDead)
  3794. .next().text(cLinksUnava)
  3795. .next().text(cLinksprem)
  3796. .next().text(cLinksTotal - cLinksProcessed);
  3797. }
  3798. }
  3799. }
  3800.  
  3801. function check_all_links()
  3802. {
  3803. add_WARLC_style();
  3804.  
  3805. if (Show_progress_stats)
  3806. {
  3807. initProgressBox();
  3808. intervalId = setInterval(function(){updateProgress();}, Progress_box_refresh_rate);
  3809. }
  3810.  
  3811. startBulkCheck(null);
  3812. start(null);
  3813.  
  3814. if (!containers_processed)
  3815. {
  3816. processContainers();
  3817. }
  3818. }
  3819.  
  3820. //Copies all found dead links to clipboard - right now for Scriptish only
  3821. function copy_dead_to_clipboard()
  3822. {
  3823. initClipBoardTools();
  3824.  
  3825. var deadlinksxpath = "//.[@class='adead_link']";
  3826.  
  3827. var foundlinks = document.evaluate(deadlinksxpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  3828. var foundlinkstext = '';
  3829.  
  3830. var foundlinkIdx = foundlinks.snapshotLength;
  3831.  
  3832. while(foundlinkIdx--)
  3833. {
  3834. if (foundlinks.snapshotItem(foundlinkIdx).innerHTML != ' x')
  3835. foundlinkstext += foundlinks.snapshotItem(foundlinkIdx).innerHTML.replace(/\[\/hide:\w+\]/,"") + '\n';
  3836. }
  3837.  
  3838. unsafeWindow.copyToClipboard(foundlinkstext);
  3839. }
  3840.  
  3841. function toggle_autocheck()
  3842. {
  3843. var currentState = GM_getValue("Autocheck", false);
  3844. GM_setValue("Autocheck", !currentState);
  3845.  
  3846. if (currentState == true)
  3847. {
  3848. sendMessage('Autocheck disabled', 'red');
  3849. }
  3850. else
  3851. {
  3852. sendMessage('Autocheck enabled', 'SpringGreen');
  3853. }
  3854. }
  3855. function toggle_Enable_Anonymizer()
  3856. {
  3857. var currentState = GM_getValue("Enable_Anonymizer", false);
  3858. GM_setValue("Enable_Anonymizer", !currentState);
  3859.  
  3860. if (currentState == true)
  3861. {
  3862. GM_setValue("Ref_anonymize_service", "");
  3863. sendMessage('Anonymizer Disabled', 'red');
  3864. }
  3865. else
  3866. {
  3867. GM_setValue("Ref_anonymize_service", "http://hiderefer.com/?");
  3868. sendMessage('Anonymizer Enabled', 'SpringGreen');
  3869. }
  3870. }
  3871.  
  3872. function KeyDownHandler(event)
  3873. {
  3874. var kcode = (event.keyCode) ? event.keyCode : event.which;
  3875. if (event.ctrlKey && event.altKey)
  3876. {
  3877. switch(kcode)
  3878. {
  3879. case 65 : check_all_links(); break;
  3880. case 67 : configuration(); break;
  3881. case 68 : copy_dead_to_clipboard(); break;
  3882. case 87 : toggle_autocheck(); break;
  3883. case 90 : toggle_Enable_Anonymizer(); break;
  3884. }
  3885. }
  3886. }
  3887.  
  3888. //
  3889. //
  3890. // SCRIPT EXECUTION START POINT
  3891. //
  3892. //
  3893. // Safari specific GM_getResourceText override
  3894. if (navigator.userAgent.indexOf('Safari') != -1 && navigator.userAgent.indexOf('Chrome') == -1)
  3895. {
  3896. GM_getResourceText = function(res) {
  3897. var $cssText = GM_getValue("jquery_css", "");
  3898. if ($cssText == "")
  3899. {
  3900. GM_xmlhttpRequest(
  3901. {
  3902. method: 'GET',
  3903. url: 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css',
  3904. onload: function (result)
  3905. {
  3906. GM_setValue("jquery_css", result.responseText);
  3907. window.location.reload();
  3908. }
  3909. });
  3910. }
  3911. else
  3912. {
  3913. return $cssText;
  3914. }
  3915. }
  3916. }
  3917. var jQueryUICSS = GM_getResourceText("jQueryUICSS");
  3918. GM_addStyle(jQueryUICSS);
  3919. //init the stuff
  3920. setVariables();
  3921. initBulkCheck();
  3922. //init info boxes
  3923. messageBox.style.position = 'fixed';
  3924. messageBox.style.top = '20px';
  3925. messageBox.style.left = '10px';
  3926. messageBox.style.opacity = '0.85';
  3927. messageBox.style.background = 'DimGray';
  3928. messageBox.style.fontSize = '36px';
  3929. document.body.appendChild(messageBox);
  3930.  
  3931. //register GM menu commands & keyboard shortcut event handler
  3932. if (Keyboard_functions)
  3933. {
  3934. $(document).keydown(KeyDownHandler);
  3935. GM_registerMenuCommand("[W.A.R. Links Checker] Configuration (" + first_key_keycodename + "+" + second_key_keycodename + "+" + String.fromCharCode(CONFIGURATION_KEYCODE) + ")", configuration);
  3936. 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);
  3937. }
  3938. else
  3939. {
  3940. GM_registerMenuCommand("[W.A.R. Links Checker] Configuration", configuration);
  3941. GM_registerMenuCommand("[W.A.R. Links Checker] Check The Links In This Page", check_all_links);
  3942. }
  3943.  
  3944. //start linkchecking
  3945. if (Autocheck)
  3946. {
  3947. $(document).ready(check_all_links);
  3948. }
  3949.  
  3950. //
  3951. //
  3952. // SCRIPT EXECUTION END POINT
  3953. //
  3954. //
  3955.  
  3956. //shows configuration box
  3957. function configuration()
  3958. {
  3959.  
  3960. //prevent multiple creating of config window
  3961. if ($("#hideshow").length)
  3962. {
  3963. $("#hideshow").show();
  3964. return;
  3965. }
  3966.  
  3967. var configcss = '\
  3968. .popup_block .popup fieldset{\
  3969. padding: 1%;\
  3970. border-style: solid;\
  3971. border-width: 1px;\
  3972. border-color: gray;\
  3973. margin-bottom: 1px;\
  3974. }\
  3975. #h3hideshowtitle{\
  3976. font-size: 2em;\
  3977. }\
  3978. #h3hideshow{\
  3979. font-size: 1.5em;\
  3980. }\
  3981. #imghideshow {\
  3982. border: none;\
  3983. }\
  3984. #plusimage{\
  3985. display:inline;\
  3986. }\
  3987. #hideshow {\
  3988. position: fixed;\
  3989. width: 100%;\
  3990. height: 100%;\
  3991. top: 0;\
  3992. left: 0;\
  3993. font-size:12px;\
  3994. z-index:2147483645;\
  3995. text-align:left;\
  3996. }\
  3997. #fade {\
  3998. background: #000;\
  3999. position: fixed;\
  4000. width: 100%;\
  4001. height: 100%;\
  4002. opacity: .80;\
  4003. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";\
  4004. left: 0;\
  4005. z-index: 10;\
  4006. }\
  4007. .popup_block {\
  4008. font-family:verdana;\
  4009. color:black;\
  4010. background: #ddd;\
  4011. padding: 10px 20px;\
  4012. border: 2px solid DarkOrange;\
  4013. float: left;\
  4014. width: 700px;\
  4015. position: absolute;\
  4016. top: 7%;\
  4017. left: 50%;\
  4018. bottom: 7%;\
  4019. margin: 0 0 0 -350px;\
  4020. -moz-border-radius:10px;\
  4021. z-index: 100;\
  4022. \
  4023. }\
  4024. .popup_block .popup {\
  4025. float: left;\
  4026. width: 100%;\
  4027. background: #fff;\
  4028. margin: 10px 0;\
  4029. padding: 0px 0 0px;\
  4030. border-left: 1px solid #bbb;\
  4031. border-top: 1px solid #bbb;\
  4032. border-right: 1px solid #bbb;\
  4033. }\
  4034. #h3hideshow{\
  4035. margin: 1px 0 0px;\
  4036. padding: 1px 10px;\
  4037. border-bottom: 1px solid #bbb;\
  4038. font-size: 1.5em;\
  4039. font-weight: normal;\
  4040. cursor:pointer;\
  4041. background:#DDDDDD none repeat scroll 0 0;\
  4042. }\
  4043. #h3hideshow:hover{\
  4044. background:#C0BEBE none repeat scroll 0 0;\
  4045. }\
  4046. #h3hideshowtitle{\
  4047. margin: 2px 0 0px;\
  4048. padding: 7px 10px;\
  4049. border-bottom: 1px solid #bbb;\
  4050. font-size: 1.5em;\
  4051. font-weight: normal;\
  4052. }\
  4053. .popup_block .popup a {\
  4054. color:DarkSkyBlue;\
  4055. text-decoration:none;\
  4056. }\
  4057. .popup p {\
  4058. padding: 1px 10px;\
  4059. margin: 0px 0;\
  4060. -x-system-font:none;\
  4061. font-family:verdana,geneva,lucida,"lucida grande",arial,helvetica,sans-serif;\
  4062. font-size:10pt;\
  4063. font-size-adjust:none;\
  4064. font-stretch:normal;\
  4065. font-style:normal;\
  4066. font-variant:normal;\
  4067. font-weight:normal;\
  4068. line-height:normal;\
  4069. }\
  4070. #sites {\
  4071. padding: 1px 10px;\
  4072. margin: 0px 0;display:inline-block;width:16em;\
  4073. }\
  4074. #dev_ver {\
  4075. color: #00FF00;\
  4076. background: Black;\
  4077. text-align: right;\
  4078. }\
  4079. #sites_suspended {\
  4080. padding: 1px 10px;\
  4081. margin: 0px 0;display:inline-block;width:16em;\
  4082. text-decoration: line-through;\
  4083. }\
  4084. .popup img.cntrl {\
  4085. position: absolute;\
  4086. right: -15px;\
  4087. top: -15px;\
  4088. }\
  4089. #bulk {\
  4090. font-size:8pt;\
  4091. color:orange;\
  4092. padding: 1px 10px;\
  4093. margin: 0px 0;\
  4094. display:inline-block;\
  4095. width:100px;\
  4096. }\
  4097. #note {\
  4098. font-size:7pt;\
  4099. color:gray;\
  4100. padding: 1px 10px;\
  4101. margin: 0px 0;display:inline-block;\
  4102. min-width:100px;\
  4103. }\
  4104. #rednote {\
  4105. font-size:7pt;\
  4106. color:red;\
  4107. padding: 1px 10px;\
  4108. margin: 0px 0;display:inline-block;\
  4109. }\
  4110. #configinfo {\
  4111. font-size:8pt;\
  4112. color:gray;\
  4113. padding: 1px 10px;\
  4114. margin: 0px 0;display:inline-block;width:60em;\
  4115. }\
  4116. #refAnonymizer, #inputColorLive, #inputColorprem, #hostSearchBox2, #hostSearchBox, #inputColorDead, #inputColorTemp, #inputColorCont, #selectAllButton, #selectNoneButton, #invertButton, #selectAllButton2, #selectNoneButton2, #invertButton2 {\
  4117. color:black;\
  4118. border-style: solid;\
  4119. border-width: 1px;\
  4120. border-color: gray;\
  4121. }\
  4122. #h3hideshowcontent {\
  4123. min-height:220px;\
  4124. max-height:220px;\
  4125. overflow:auto;\
  4126. display: none;\
  4127. padding: 10px 10px;\
  4128. }\
  4129. #specinfo{\
  4130. font-size:14px;\
  4131. }\
  4132. .warlc-ui-tab {\
  4133. height:300px;\
  4134. overflow:auto;\
  4135. }\
  4136. #warlcsitelist2, #warlcsitelist1 {\
  4137. height:220px;\
  4138. border-top: 1px solid #ddd;\
  4139. padding-top: 5px;\
  4140. overflow:auto;\
  4141. }\
  4142. input:hover+label {\
  4143. background:#F1F77C;\
  4144. font-size:110%;\
  4145. }\
  4146. ';
  4147.  
  4148. GM_addStyle(configcss);
  4149.  
  4150. var customRulesRefHTML =
  4151. '\
  4152. <br>\
  4153. A custom rule consists of <b>commands</b>. A command must be on its own line and in this form:<br>\
  4154. <b>@keyword</b> <i>parameter</i>\
  4155. <br><br>\
  4156. 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. \
  4157. <br><br>\
  4158. 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.\
  4159. 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.\
  4160. 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.\
  4161. 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,\
  4162. but all commands until the next valid @customrule are ignored.<br><br>\
  4163. Available forms and types:\
  4164. <ul>\
  4165. <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.\
  4166. <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.\
  4167. <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.\
  4168. <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.\
  4169. </ul>\
  4170. Other available commands:<br>\
  4171. (Note: There can be more than 1 (up to 10) of these commands per rule. In that case, any of them will work.)\
  4172. <ul>\
  4173. <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.\
  4174. It can also specify multiple (up to 10) Top Level Domains (.com, .net etc.)<br>\
  4175. <ul>examples:<br>\
  4176. <li>good: <i>filehost.com/download/</i><br>\
  4177. <li>good: <i>download.filehost.net/?d=</i><br>\
  4178. <li>good: <i>filehost. com net co.uk /</i> - multiple TLDs (note the spaces before, between and after TLDs)<br>\
  4179. <li>ok: <i>filehost.com/</i> - works, but will also find links like filehost.com/login etc. Sometimes it\'s unavoidable though.<br>\
  4180. <li>bad: <i>d8523.filehost.com/</i> - d8523 probably is not constant<br>\
  4181. <li>bad: <i>filehost.com/3bfiq5d1</i> - 3bfiq5d1 probably is not constant<br>\
  4182. <li>bad: <i>filehost.com</i> - no slash<br>\
  4183. </ul>\
  4184. \
  4185. <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.\
  4186. 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 \
  4187. &lt;div&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;p&gt; even if there are new lines, tabulators etc.\
  4188. <li><b>@deadmatch</b> <i>pattern</i> - ignored for OBSOLETE, required for others. (For HEADERS some servers return 404 Error \
  4189. 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.)\
  4190. Two spaces again match any whitespace.\
  4191. <li><b>@unavamatch</b> <i>pattern</i> - optional, ignored for OBSOLETE and HEADERS. If found, the link is deemed temporarily unavailable.\
  4192. Two spaces again match any whitespace.\
  4193. <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. \
  4194. <li><b>@deadlink</b> <i>url</i> - optional. Example dead link.\
  4195. </ul>\
  4196. \
  4197. ';
  4198.  
  4199. //close image and css taken from = http://www.sohtanaka.com/web-design/examples/css-popup icon_close.png;
  4200. var configurationinnerHTML =
  4201. '<div id="fade"></div>\
  4202. <div class="popup_block">\
  4203. <div class="popup">\
  4204. <a href="#"><img id="imghideshow" title="Close" class="cntrl" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAfCAYAAAD0ma06AAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAY1SURBVHjapFZbbFRVFN0zd6Yz08dMoUNf9EGxUItJK62I4AOJEYiQoqE+0OgHCiqG+PgQozH6ofyIJiYEMRqNJpggHySlrRM+hCAtajAUaGgEi9BBSilMO0PnfWeOa597bjt9AEVvsubOPWefs/br7H0sQgj6P4/FYrk9+WkSuoAHgCrgLvV9DLgMdID02rQZmfAmaAJaxS2edDr9s67rL7EB/9XCUuALoEl+pZJEvTAo8A9s6iVKxojKYWheAWxuIMr2GGKp1KHh4eF3vF4vW59me6ZD2Ajsle6LXify7SI68iNROIgtIKtpBvQEB5DI7iC6Zw3Rmi1EM0vlBsFg8OX8/PxvWQdFKm5E2KhiQ9R9iOjL17E6QFRUhAGQpFNjklYrhhT6YbndTtT8LtGjG+T0lStXNhcVFTGpnkE8jpAT4hdgNvm+Ivr+AyIHtM+Fu3Ss0RUZO8pqqos/NiDLblgcQO48/CzRpk/l9KlTp56oq6s7gL8JkzST0AespN9/Itq2Hu7xQnsbRFOcWSBKT50FVpMUHrBD/iKsXb+V6KmtFI/H/3Q6nZzdEZPU1PVFSXbtEoltz0Nzm2HRqleIvjsLa/9CoiSnBs99cwaym4lCYSRSHr4/REg64SBHTX9//2fqGNmVevJ5jn/0Xe+Rhd2SBVdGkInr3hizZI8fOibGg8fM5/EthgIJwxPJ7a/Jd05Ozn14uQEHGRGXsVtOIwHS2nbDlTOIYlHoMoUL9w0Q/GSA/0/KeXglFmEWsp/uIjp9FAbnzWttbV3H3ECWFWdnubTuSBulQ9AwDs2jcSPGby6evGn7sIGJzwuzDUViMekdAZ0jrXvlVGVl5RK8ctlKq6ZpHFSKdBzCwSVjQRILAzh3508TP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N8oebWqNRu1qixxC3hASiwOser1sdtP9kZeBTUBZPIY/HAKtRyXDB6++kieVlnZg72iNfA14/qa4HVwasTnmuLzQm3STrtxRUmetW/OXsg3hOh9Z9CTtT+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>\
  4206. <div id="warlc-conf-tabs">\
  4207. <ul>\
  4208. <li><a href="#tabs-1">Filehostings</a></li>\
  4209. <li><a href="#tabs-2">Containers</a></li>\
  4210. <li><a href="#tabs-5">Custom rules</a></li>\
  4211. <li><a href="#tabs-3">Settings</a></li>\
  4212. <li><a href="#tabs-4">About</a></li>\
  4213. </ul>\
  4214. <div id="tabs-1" class="warlc-ui-tab">\
  4215. <div class="warlc-ui-buttonset">\
  4216. <input type="button" class="warlc-ui-select-all" value="Select All">\
  4217. <input type="button" class="warlc-ui-select-none" value="Select None">\
  4218. <input type="button" class="warlc-ui-select-invert" value="Invert">\
  4219. </div><br>\
  4220. <div>Search: <input type="textbox" id="hostSearchBox" value=""></div><br>\
  4221. <div id="warlcsitelist1"><span>Empty</span></div>\
  4222. </div>\
  4223. <div id="tabs-2" class="warlc-ui-tab">\
  4224. <div class="warlc-ui-buttonset">\
  4225. <input type="button" class="warlc-ui-select-all" value="Select All">\
  4226. <input type="button" class="warlc-ui-select-none" value="Select None">\
  4227. <input type="button" class="warlc-ui-select-invert" value="Invert">\
  4228. </div><br>\
  4229. <div>Search: <input type="textbox" id="hostSearchBox2" value=""></div><br>\
  4230. <div id="warlcsitelist2"><span>Empty</span></div>\
  4231. </div>\
  4232. <div id="tabs-5" class="warlc-ui-tab">\
  4233. <div class="warlcsettings">\
  4234. <fieldset><input type="checkbox" id="Custom_rules"> Enable custom rules <div id="bulk">EXPERIMENTAL</div></fieldset>\
  4235. <br>\
  4236. <div>Edit custom rules: \
  4237. <a href="#" id="showCustomRulesReference">(<b>Click here to show/hide the reference</b>)</a>\
  4238. <div id="customRulesReference" style="display:none;">'
  4239. + customRulesRefHTML + '\
  4240. </div>\
  4241. <textarea style="width:100%;height:200px;" id="Custom_rules_text"></textarea>\
  4242. </div>\
  4243. </div>\
  4244. </div>\
  4245. <div id="tabs-3" class="warlc-ui-tab">\
  4246. <div class="warlcsettings">\
  4247. <fieldset>\
  4248. <p><input type="checkbox" id="Keyboard_functions"> Enable keyboard shortcuts</p>\
  4249. <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>\
  4250. </fieldset>\
  4251. <fieldset>\
  4252. <p><input type="checkbox" id="Color_DL_links"> Color DL links</p>\
  4253. <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>\
  4254. <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>\
  4255. <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>\
  4256. <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>\
  4257. <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>\
  4258. <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>\
  4259. <p><input type="checkbox" id="Show_line_through_in_dead_links"> Show line through in dead links</p>\
  4260. <p><input type="checkbox" id="Show_black_background_in_DL_links"> Show black background in DL links</p>\
  4261. <p><input type="checkbox" id="Do_not_linkify_DL_links"> Do NOT linkify DL links</p>\
  4262. <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>\
  4263. <p><input type="checkbox" id="Display_full_links_in_link_containers"> Display full links in link containers</p><br>\
  4264. <fieldset>\
  4265. <p><input type="radio" name="warlciconset" value="0"> No icons</p>\
  4266. <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>\
  4267. <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>\
  4268. <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>\
  4269. </fieldset>\
  4270. </fieldset>\
  4271. <fieldset>\
  4272. <div id="sites"><input type="checkbox" id="Autocheck"> Autocheck</div><br><div id="configinfo">Script starts check automatically.</div><br>\
  4273. </fieldset>\
  4274. <fieldset>\
  4275. <div id="sites"><input type="checkbox" id="Show_progress_stats"> Show progress stats</div><br>\
  4276. </fieldset>\
  4277. <fieldset>\
  4278. <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>\
  4279. </fieldset>\
  4280. <fieldset>\
  4281. <p><input type="checkbox" id="Enable_Anonymizer"> Enable Anonymizer</div><div id="bulk">EXPERIMENTAL Note: Checkbox does not work use CTRL+ALT+Z.</p>\
  4282. <div id="sites"><label for="refAnonymizer">Refererer anonymizing service</label><input type="text" id="refAnonymizer" value="' + Ref_anonymize_service + '"></div>\
  4283. </fieldset>\
  4284. </div>\
  4285. </div>\
  4286. <div id="tabs-4" class="warlc-ui-tab">\
  4287. <p><b>Author:</b> <a href="http://www.warlc.5gbfree.com/viewtopic.php?f=12&t=12">mental</a></p>\
  4288. <br />\
  4289. <p><b>Currently supported:</b><br>\
  4290. Filehostings: ' + allHostNames.length + '<br />\
  4291. Containers: ' + allContainerNames.length + '<br />\
  4292. Obsolete sites: ' + allObsoleteNames.length + '<br /></p>\
  4293. <br />\
  4294. <p><b>Based on:</b><br>\
  4295. <a href="http://userscripts-mirror.org/scripts/show/125631.html">W.A.R. Links Checker - Dev</a></p>\
  4296. <br />\
  4297. <p><b>Uses:</b></p>\
  4298. <p>adam_3\'s <a href="http://userscripts-mirror.org/scripts/show/2254">Linkify ting</a> (modified)</p>\
  4299. <p><a href="http://jquery.com/">jQuery</a> JavaScript Library</p>\
  4300. <br />\
  4301. <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>\
  4302. </div>\
  4303. </div>\
  4304. </div>\
  4305. </div>';
  4306. $('body').append('<div id="hideshow">' + configurationinnerHTML + '</div>');
  4307. $("#warlc-conf-tabs").tabs({ fx: { opacity: 'toggle', duration: 'fast' } });
  4308. $("#imghideshow").click(function(event){$("#hideshow").hide(); event.preventDefault();});
  4309. var elmHostList = document.getElementById("warlcsitelist1");
  4310. var elmContainerList = document.getElementById("warlcsitelist2");
  4311. buildSettings();
  4312. buildSitelist("", allHostNames, elmHostList);
  4313. buildSitelist("", allContainerNames, elmContainerList);
  4314. if (DEBUG_MODE)
  4315. {
  4316. //log all sites availability status
  4317. diagSites();
  4318. }
  4319. //handler for checkbox state change
  4320. function changeConfiguration(e)
  4321. {
  4322. var element = e.target;
  4323.  
  4324. if (element.type == 'checkbox')
  4325. {
  4326. if (element.checked == 1)
  4327. {
  4328. GM_setValue(element.id, true);
  4329. }
  4330. else
  4331. {
  4332. GM_setValue(element.id, false);
  4333. }
  4334.  
  4335. }
  4336. setVariables();
  4337. }
  4338.  
  4339. //Selects all filehosting checkboxes
  4340. function selectAll()
  4341. {
  4342. $(":checkbox:visible:not(:checked)").prop("checked",true)
  4343. .each(function(index, element){GM_setValue(this.id, true)});
  4344. }
  4345.  
  4346. //Deselects all filehosting checkboxes
  4347. function selectNone()
  4348. {
  4349. $(":checkbox:visible:checked").prop("checked",false)
  4350. .each(function(index, element){GM_setValue(this.id, false)});
  4351. }
  4352.  
  4353. //Inverts filehosting checkboxes selection
  4354. function selectInvert()
  4355. {
  4356. var $checked = $(":checkbox:visible:checked");
  4357. var $unchecked = $(":checkbox:visible:not(:checked)");
  4358. $unchecked.prop("checked",true)
  4359. .each(function(index, element){GM_setValue(this.id, true)});
  4360. $checked.prop("checked",false)
  4361. .each(function(index, element){GM_setValue(this.id, false)});
  4362. }
  4363. //toggles anonymizer on off
  4364. function Enable_Anonymizer()
  4365. {
  4366. var $checked = $(":checkbox:visible:checked");
  4367. var $unchecked = $(":checkbox:visible:not(:checked)");
  4368. $unchecked.prop("checked",true)
  4369. .each(function(index, element){GM_setValue(this.id, true)});
  4370. $checked.prop("checked",false)
  4371. .each(function(index, element){GM_setValue(this.id, false)});
  4372. }
  4373.  
  4374. function changeRefAnonymizer(){
  4375. GM_setValue("Ref_anonymize_service", $("#refAnonymizer").attr("value"));
  4376. }
  4377.  
  4378. //Sets live links color
  4379. function changeColorLive()
  4380. {
  4381. var inColorLive = document.getElementById("inputColorLive");
  4382. inColorLive.style.background = inColorLive.value;
  4383. GM_setValue("Live_links_color", inColorLive.value);
  4384. }
  4385.  
  4386. //Sets dead links color
  4387. function changeColorDead()
  4388. {
  4389. var inColorDead = document.getElementById("inputColorDead");
  4390. inColorDead.style.background = inColorDead.value;
  4391. GM_setValue("Dead_links_color", inColorDead.value);
  4392. }
  4393.  
  4394. //Sets temp. unavailable links color
  4395. function changeColorTemp()
  4396. {
  4397. var inColorTemp = document.getElementById("inputColorTemp");
  4398. inColorTemp.style.background = inColorTemp.value;
  4399. GM_setValue("Temp_unavailable_links_color", inColorTemp.value);
  4400. }
  4401.  
  4402. //Sets temp. unavailable links color
  4403. function changeColorCont()
  4404. {
  4405. var inColorCont = document.getElementById("inputColorCont");
  4406. inColorCont.style.background = inColorCont.value;
  4407. GM_setValue("Container_links_color", inColorCont.value);
  4408. }
  4409. //Sets premium. links color
  4410. function changeColorprem()
  4411. {
  4412. var inColorprem = document.getElementById("inputColorprem");
  4413. inColorprem.style.background = inColorprem.value;
  4414. GM_setValue("Premium_links_color", inColorprem.value);
  4415. }
  4416.  
  4417. //Diagnose sites for availability
  4418. function diagSites()
  4419. {
  4420. var boxes = document.getElementById("warlcsitelist1").getElementsByTagName("input");
  4421.  
  4422. for (var i = 0, n = boxes.length - 1; i < n; i++)
  4423. {
  4424. if (boxes[i].type == "checkbox")
  4425. {
  4426. checkAvailability(boxes[i]);
  4427. }
  4428. }
  4429.  
  4430. boxes = document.getElementById("warlcsitelist2").getElementsByTagName("input");
  4431.  
  4432. for (var i = 0, n = boxes.length - 1; i < n; i++)
  4433. {
  4434. if (boxes[i].type == "checkbox")
  4435. {
  4436. checkAvailability(boxes[i]);
  4437. }
  4438. }
  4439.  
  4440. function checkAvailability(cbElm)
  4441. {
  4442. var cb = cbElm;
  4443. GM_xmlhttpRequest(
  4444. {
  4445. method: 'HEAD',
  4446. url: 'http://' + cb.nextSibling.textContent.replace(' ', ''),
  4447. headers: {
  4448. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  4449. 'Accept': 'text/xml',
  4450. 'Referer': ""
  4451. },
  4452. onload: 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. onerror: function (result)
  4460. {
  4461. if (result.status != 200)
  4462. {
  4463. GM_log(cb.nextSibling.textContent + ' --- status: [' + result.status + '] ' + result.statusText + ', final url: ' + result.finalUrl);
  4464. }
  4465. }
  4466. });
  4467. }
  4468. }
  4469. function buildSettings()
  4470. {
  4471. $(".warlcsettings :checkbox").each(function(){
  4472. $(this).prop("checked", GM_getValue($(this).attr("id")))
  4473. .click(function(e){
  4474. GM_setValue($(this).attr("id"), $(this).prop("checked"));
  4475. setVariables();
  4476. });
  4477. })
  4478. }
  4479. //Dynamic build of host list
  4480. //param search [string] searches for hostnames matching search substring
  4481. //param siteNames [array] array of site names
  4482. //param targetNode [DOM Node] where the list should be built
  4483. // first child node is replaced
  4484. function buildSitelist(search, siteNames, targetNode)
  4485. {
  4486. var searchRegex = new RegExp("\\|?([\\w\\.-]*" + search.replace(/\./g,"\\.").replace(/-/g, "\\-") + "[\\w\\.-]*)\\|?", "i");
  4487. var $targetNode = $(targetNode).empty();
  4488. var searchedSite = "";
  4489. $.each(siteNames, function(i, site){
  4490. if (searchedSite = site.match(searchRegex))
  4491. {
  4492. var baseSite = site.replace(/\|.+/, ""); //filehosting main domain
  4493. //ensuring backward compatibility with the rest of code, to be refactored later
  4494. var oldRSLCvalue = "Check_" + baseSite.replace(/\|.+/, "").replace(/\./g,"_dot_").replace(/-/g, "_dash_") + "_links";
  4495. //
  4496. $targetNode.append('<input type="checkbox" id="' + oldRSLCvalue +'" />\
  4497. <label for="' + oldRSLCvalue + '">' + searchedSite[1] + '</label>' +
  4498. ((searchedSite[1] != baseSite) ? ('<div id="note"> ( ~ ' + baseSite + ' )</div>') : (""))
  4499. );
  4500. $("#" + oldRSLCvalue).prop("checked", GM_getValue(oldRSLCvalue, false))
  4501. .change(changeConfiguration);
  4502. $targetNode.append('<br />');
  4503. }
  4504. });
  4505. $targetNode.append("<hr>");
  4506. //obsolete hosts checkbox
  4507. $targetNode.append('<input type="checkbox" id="Obsolete_file_hosts" /><label for="Obsolete_file_hosts">Obsolete file hosts</label>');
  4508. $("#Obsolete_file_hosts").prop("checked", GM_getValue("Obsolete_file_hosts", false))
  4509. .change(changeConfiguration);
  4510. $targetNode.append('<br />');
  4511. var foundName = "";
  4512. $.each(allObsoleteNames, function(i, site){
  4513. if (foundName = allObsoleteNames[i].match(searchRegex))
  4514. {
  4515. $targetNode.append('<div id="note">' + foundName[1] + '</div>');
  4516. }
  4517. })
  4518. }
  4519. var hostSearchBox = document.getElementById("hostSearchBox");
  4520. hostSearchBox.addEventListener('keyup', function(){buildSitelist(hostSearchBox.value, allHostNames, elmHostList);}, false);
  4521. var hostSearchBox2 = document.getElementById("hostSearchBox2");
  4522. hostSearchBox2.addEventListener('keyup', function(){buildSitelist(hostSearchBox2.value, allContainerNames, elmContainerList);}, false);
  4523. $(".warlc-ui-select-all").click(selectAll).button();
  4524. $(".warlc-ui-select-none").click(selectNone).button();
  4525. $(".warlc-ui-select-invert").click(selectInvert).button();
  4526. $(".warlc-ui-buttonset").buttonset();
  4527. var inColorLive = document.getElementById("inputColorLive");
  4528. inColorLive.addEventListener('keyup', changeColorLive, false);
  4529.  
  4530. var inColorDead = document.getElementById("inputColorDead");
  4531. inColorDead.addEventListener('keyup', changeColorDead, false);
  4532.  
  4533. var inColorTemp = document.getElementById("inputColorTemp");
  4534. inColorTemp.addEventListener('keyup', changeColorTemp, false);
  4535.  
  4536. var inColorCont = document.getElementById("inputColorCont");
  4537. inColorCont.addEventListener('keyup', changeColorCont, false);
  4538. var inColorprem = document.getElementById("inputColorprem");
  4539. inColorprem.addEventListener('keyup', changeColorprem, false);
  4540. $("#refAnonymizer").change(changeRefAnonymizer);
  4541. //buttons and edit boxes init end
  4542.  
  4543. //icon sets radio buttons
  4544. var radioButtons = document.getElementsByName("warlciconset");
  4545. radioButtons[Icon_set].checked = "checked";
  4546.  
  4547. radioButtons[0].addEventListener("change", updateIconSet);
  4548. radioButtons[1].addEventListener("change", updateIconSet);
  4549. radioButtons[2].addEventListener("change", updateIconSet);
  4550. radioButtons[3].addEventListener("change", updateIconSet);
  4551. function updateIconSet()
  4552. {
  4553. GM_setValue("Icon_set", this.value * 1);
  4554. }
  4555. //
  4556. $('#showCustomRulesReference').click(function(e){
  4557. e.preventDefault();
  4558. $('#customRulesReference').toggle();
  4559. });
  4560. $('#Custom_rules_text')
  4561. .val(Custom_rules_text)
  4562. .change(saveCustomRules);
  4563. function saveCustomRules(e)
  4564. {
  4565. var cr = parseCustomRules(this.value);
  4566. if (cr.info.length)
  4567. 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, ' '));
  4568. GM_setValue('Custom_rules_text', this.value);
  4569. GM_setValue('last_custom_rules_nag', ''+new Date().getTime()); //reset nag
  4570. }
  4571. }
  4572.  
  4573. //begin standard link checking algorithm
  4574. function start(filterId)
  4575. {
  4576. var doNotLinkify = Do_not_linkify_DL_links;
  4577.  
  4578. // USER SELECTED FILE HOSTS INITIALIZATION START
  4579. var http_file_hosts = new Array(); //standard hostings
  4580. var http_file_hosts_coded = new Array(); //hostings which has to be decoded to obtain real checkable link
  4581. var http_file_hosts_obsolete = new Array(); //dead hostings
  4582. var http_file_hosts_headers_only = new Array(); //hostings with direct download, must be handled via headers only
  4583.  
  4584. initFileHosts();
  4585. initFileHostsHeadersOnly();
  4586. initFileHostsCustom(); //CustomRules
  4587. // USER SELECTED FILE HOSTS INITIALIZATION END
  4588.  
  4589. // LINKIFICATION START
  4590. var totalxpath = '';
  4591. var totalxpathcoded = '';
  4592. var totalxpathobsolete = '';
  4593. var totalxpathheadersonly = '';
  4594. var totalourls = '';
  4595.  
  4596. var filehostLen = http_file_hosts.length;
  4597. var filehostCodedLen = http_file_hosts_coded.length;
  4598. var filehostObsoleteLen = http_file_hosts_obsolete.length;
  4599. var filehostHeadersOnlyLen = http_file_hosts_headers_only.length;
  4600.  
  4601. var filehostIdx = filehostLen;
  4602. var filehostCodedIdx = filehostCodedLen;
  4603. var filehostObsoleteIdx = filehostObsoleteLen;
  4604. var filehostHeadersOnlyIdx = filehostHeadersOnlyLen;
  4605.  
  4606. if ((filehostIdx == 0) && (filehostCodedIdx == 0) && (filehostHeadersOnlyIdx == 0) && (filehostObsoleteIdx == 0))
  4607. return;
  4608.  
  4609. while (filehostIdx--)
  4610. {
  4611. totalourls += http_file_hosts[filehostIdx][0] + '|';
  4612. totalxpath += http_file_hosts[filehostIdx][4] + '|';
  4613. }
  4614.  
  4615. while (filehostCodedIdx--)
  4616. {
  4617. totalourls += http_file_hosts_coded[filehostCodedIdx][0] + '|';
  4618. totalxpathcoded += http_file_hosts_coded[filehostCodedIdx][3] + '|';
  4619. }
  4620.  
  4621. while (filehostObsoleteIdx--)
  4622. {
  4623. totalourls += http_file_hosts_obsolete[filehostObsoleteIdx][0] + '|';
  4624. totalxpathobsolete += http_file_hosts_obsolete[filehostObsoleteIdx][1] + '|';
  4625. }
  4626.  
  4627. while (filehostHeadersOnlyIdx--)
  4628. {
  4629. totalourls += http_file_hosts_headers_only[filehostHeadersOnlyIdx][0] + '|';
  4630. totalxpathheadersonly += http_file_hosts_headers_only[filehostHeadersOnlyIdx][3] + '|';
  4631. }
  4632.  
  4633. totalourls = totalourls.replace(/\|$/g, "");
  4634. //TODO: further refactoring needed
  4635. totalxpath = totalxpath.replace(/\]\|\/\/a\[/g, " or ");
  4636. totalxpath = totalxpath.replace(/\]\|/, ')]');
  4637. totalxpathcoded = totalxpathcoded.replace(/\]\|\/\/a\[/g, " or ");
  4638. totalxpathcoded = totalxpathcoded.replace(/\]\|/, ')]');
  4639. totalxpathobsolete = totalxpathobsolete.replace(/\]\|\/\/a\[/g, " or ");
  4640. totalxpathobsolete = totalxpathobsolete.replace(/\]\|/, ')]');
  4641. totalxpathheadersonly = totalxpathheadersonly.replace(/\]\|\/\/a\[/g, " or ");
  4642. totalxpathheadersonly = totalxpathheadersonly.replace(/\]\|/, ')]');
  4643. if (filterId != null) //insert id restriction in the xpath
  4644. {
  4645. totalxpath = totalxpath.replace(/\[/g, "[@class='" + filterId + "' and (");
  4646. totalxpathcoded = totalxpathcoded.replace(/\[/g, "[@class='" + filterId + "' and (");
  4647. totalxpathobsolete = totalxpathobsolete.replace(/\[/g, "[@class='" + filterId + "' and (");
  4648. totalxpathheadersonly = totalxpathheadersonly.replace(/\[/g, "[@class='" + filterId + "' and (");
  4649. }
  4650. else
  4651. {
  4652. totalxpath = totalxpath.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4653. totalxpathcoded = totalxpathcoded.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4654. totalxpathobsolete = totalxpathobsolete.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4655. totalxpathheadersonly = totalxpathheadersonly.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4656. }
  4657. linkify(totalourls);
  4658. //LINKIFICATION END
  4659. //ENCRYPTED LINKS PROCESSING START
  4660. if (http_file_hosts_coded.length > 0)
  4661. {
  4662. var linksCoded = document.evaluate(totalxpathcoded, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4663.  
  4664. // decrypt coded links (redirects, link protectors etc.)
  4665. if (linksCoded.snapshotLength > 0)
  4666. {
  4667. var link;
  4668. var reallinkreg;
  4669. var reallinkcorrection;
  4670.  
  4671. if (filterId == null)
  4672. {
  4673. cLinksTotal += linksCoded.snapshotLength;
  4674. }
  4675.  
  4676. var y = linksCoded.snapshotLength - 1;
  4677. do
  4678. {
  4679. // linksCoded.snapshotItem(y).id = 'processing_link';
  4680. link = linksCoded.snapshotItem(y);
  4681. filehostIdx = filehostCodedLen;
  4682. while (filehostIdx--)
  4683. {
  4684. if (link.href.match(http_file_hosts_coded[filehostIdx][0]))
  4685. {
  4686. link.href = link.href.replace(/http:\/\/.*?(?:\?|=)http:\/\//, 'http://');
  4687. reallinkreg = http_file_hosts_coded[filehostIdx][1];
  4688. reallinkcorrection = http_file_hosts_coded[filehostIdx][2];
  4689.  
  4690. decurl(link, reallinkreg, reallinkcorrection);
  4691. break;
  4692. }
  4693. }
  4694. }
  4695. while (y--);
  4696. }
  4697. }
  4698. //ENCRYPTED LINKS PROCESSING END
  4699.  
  4700. //STANDARD LINKCHECKING START
  4701. if (http_file_hosts.length > 0)
  4702. {
  4703. var lianks = document.evaluate(totalxpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4704.  
  4705. if (filterId == null)
  4706. {
  4707. cLinksTotal += lianks.snapshotLength;
  4708. }
  4709.  
  4710. if (lianks.snapshotLength > 0)
  4711. {
  4712. var link;
  4713.  
  4714. var URL = "";
  4715. var name = "";
  4716. var isAliveRegex = "";
  4717. var isDeadRegex = "";
  4718. var isUnavaRegex = "";
  4719. var ispremRegex = "";
  4720. var tryLoop = false;
  4721.  
  4722. var y = lianks.snapshotLength;
  4723.  
  4724. while (y--)
  4725. {
  4726. link = lianks.snapshotItem(y);
  4727.  
  4728. filehostIdx = filehostLen;
  4729. while (filehostIdx--)
  4730. {
  4731. if (link.href.match(http_file_hosts[filehostIdx][0]))
  4732. {
  4733. link.href = link.href.replace(/http:\/\/.*?http:\/\//, 'http://'); //anonymizers
  4734. isAliveRegex = http_file_hosts[filehostIdx][1];
  4735. isDeadRegex = http_file_hosts[filehostIdx][2];
  4736. isUnavaRegex = http_file_hosts[filehostIdx][3];
  4737. ispremRegex = http_file_hosts[filehostIdx][6];
  4738. tryLoop = http_file_hosts[filehostIdx][5];
  4739.  
  4740. geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, tryLoop);
  4741.  
  4742. break;
  4743. }
  4744. }
  4745. }
  4746. }
  4747. }
  4748. //STANDARD LINKCHECKING END
  4749. //OBSOLETE FILE HOSTS PROCESSING START
  4750. if (filehostObsoleteLen > 0)
  4751. {
  4752. var obsoletelinks = document.evaluate(totalxpathobsolete, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4753.  
  4754. var obsoleteLink;
  4755.  
  4756. //check links
  4757. if (obsoletelinks.snapshotLength > 0)
  4758. {
  4759. var y = obsoletelinks.snapshotLength;
  4760.  
  4761. if (filterId == null)
  4762. {
  4763. cLinksTotal += y;
  4764. }
  4765.  
  4766. while (y--)
  4767. {
  4768. obsoleteLink = obsoletelinks.snapshotItem(y);
  4769.  
  4770. if (Display_tooltip_info)
  4771. {
  4772. obsoleteLink.warlc_error = 'Cause of error: <b>Obsolete filehosting.</b>';
  4773. }
  4774. displayTheCheckedLink(obsoleteLink, 'adead_link');
  4775. }
  4776. }
  4777. }
  4778. //OBSOLETE FILE HOSTS PROCESSING END
  4779.  
  4780. //DIRECT LINKCHECKING START
  4781. if (http_file_hosts_headers_only.length > 0)
  4782. {
  4783. var links = document.evaluate(totalxpathheadersonly, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4784.  
  4785. //check links
  4786. if (links.snapshotLength > 0)
  4787. {
  4788. var link;
  4789. var isAliveRegex;
  4790. var isDeadRegex;
  4791. var ispremRegex;
  4792.  
  4793. var y = links.snapshotLength;
  4794.  
  4795.  
  4796. if (filterId == null)
  4797. {
  4798. cLinksTotal += y;
  4799. }
  4800.  
  4801. while (y--)
  4802. {
  4803. // links.snapshotItem(y).id = 'processing_link';
  4804. link = links.snapshotItem(y);
  4805. filehostIdx = filehostHeadersOnlyLen;
  4806. while (filehostIdx--)
  4807. {
  4808. if (link.href.match(http_file_hosts_headers_only[filehostIdx][0]))
  4809. {
  4810. link.href = link.href.replace(/http:\/\/.*?(?:\?|=)http:\/\//, 'http://');
  4811. isAliveRegex = http_file_hosts_headers_only[filehostIdx][1];
  4812. isDeadRegex = http_file_hosts_headers_only[filehostIdx][2];
  4813. ispremRegex = http_file_hosts_headers_only[filehostIdx][3];
  4814.  
  4815. geturlHeader(link, isAliveRegex, isDeadRegex, ispremRegex);
  4816.  
  4817. break;
  4818. }
  4819. }
  4820. }
  4821.  
  4822. }
  4823. }
  4824. //DIRECT LINKCHECKING END
  4825.  
  4826.  
  4827. //finds the real url on the page, replaces link.href with it and calls geturl
  4828. function decurl(link, reallinkreg, reallinkcorrection)
  4829. {
  4830.  
  4831. GM_xmlhttpRequest(
  4832. {
  4833. method: 'GET',
  4834. url: link.href,
  4835. headers: {
  4836. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  4837. 'Accept': 'text/xml',
  4838. 'Referer': ""
  4839. },
  4840. onload: function (result)
  4841. {
  4842. // cLinksProcessed++;
  4843.  
  4844. var reallink = result.responseText.match(reallinkreg)[0];
  4845. reallink = reallink.replace(new RegExp(reallinkcorrection, "g"), "");
  4846.  
  4847. link.href = reallink;
  4848.  
  4849. var i = http_file_hosts.length - 1;
  4850. do
  4851. {
  4852. if ((reallink.match(http_file_hosts[i][0])))
  4853. {
  4854. link.href = link.href.replace(/http:\/\/.*?\?http:\/\//, 'http://');
  4855. var isAliveRegex = http_file_hosts[i][1];
  4856. var isDeadRegex = http_file_hosts[i][2];
  4857. var isUnavaRegex = http_file_hosts[i][3];
  4858. var ispremRegex = http_file_hosts[i][4];
  4859.  
  4860. geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, 50);
  4861.  
  4862. break;
  4863. }
  4864. }
  4865. while (i--);
  4866. }
  4867. });
  4868. }
  4869.  
  4870. function randUA()
  4871. {
  4872. //TODO
  4873. }
  4874. //Processes link
  4875. //
  4876. // [string] link link URL
  4877. // [string] isAliveRegex alive link regex
  4878. // [string] isDeadRegex dead link regex
  4879. // [string] isUnavaRegex unavailable link regex
  4880. // [string] ispremRegex premium link regex
  4881. // [boolean] tryLoop repeats request until succeeded
  4882. function geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, tryLoop)
  4883. {
  4884. GM_xmlhttpRequest(
  4885. {
  4886. method: 'GET',
  4887. url: link.href,
  4888. headers: {
  4889. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  4890. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  4891. 'Referer': ""
  4892. },
  4893. onload: function (result)
  4894. {
  4895. var res = result.responseText;
  4896. if (result.responseHeaders.match(/Content-Disposition: attachment; filename=/))//direct download, simple version
  4897. {
  4898. displayTheCheckedLink(link, 'alive_link');
  4899. return;
  4900. }
  4901.  
  4902. if (res.match(isAliveRegex))
  4903. {
  4904. displayTheCheckedLink(link, 'alive_link');
  4905. return;
  4906. }
  4907.  
  4908. if (res.match(isDeadRegex))
  4909. {
  4910. displayTheCheckedLink(link, 'adead_link');
  4911. return;
  4912. }
  4913.  
  4914. if (isUnavaRegex && res.match(isUnavaRegex))
  4915. {
  4916. displayTheCheckedLink(link, 'unava_link');
  4917. return;
  4918. }
  4919. if (res.match(ispremRegex))
  4920. {
  4921. displayTheCheckedLink(link, 'prem_link');
  4922. return;
  4923. }
  4924.  
  4925. var resStatus = result.status;
  4926.  
  4927. if (resStatus == 404)
  4928. {
  4929. displayTheCheckedLink(link, 'adead_link');
  4930. }
  4931. if (resStatus == 500 || resStatus == 503 || resStatus == 403) //not found/available/temp. unava
  4932. {
  4933. if (tryLoop)
  4934. {
  4935. //wait 1-5 seconds and repeat the request
  4936. setTimeout(function(){geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, tryLoop)}, 1000 + (Math.random() * 4000));
  4937. }
  4938. else
  4939. {
  4940. displayTheCheckedLink(link, 'unava_link');
  4941. }
  4942.  
  4943. return;
  4944. }
  4945. },
  4946. onerror: function ()
  4947. {
  4948. displayTheCheckedLink(link, 'unava_link');
  4949. }
  4950. });
  4951. }
  4952.  
  4953. function geturlHeader(link, isAliveRegex, isDeadRegex, ispremRegex)
  4954. {
  4955. GM_xmlhttpRequest(
  4956. {
  4957. method: 'HEAD',
  4958. url: link.href,
  4959. headers: {
  4960. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  4961. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  4962. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  4963. 'Referer': ""
  4964. },
  4965. onload: function (result)
  4966. {
  4967. var resStatus = result.status;
  4968. var resHeaders = "";
  4969. if (resStatus == 403 || resStatus == 404 || resStatus == 500) //not found/available
  4970. {
  4971. displayTheCheckedLink(link, 'adead_link');
  4972. return;
  4973. }
  4974.  
  4975. resHeaders = result.responseHeaders;
  4976.  
  4977. if (resHeaders.match(isDeadRegex))
  4978. {
  4979. displayTheCheckedLink(link, 'adead_link');
  4980. return;
  4981. }
  4982.  
  4983. if (resHeaders.match(isAliveRegex))
  4984. {
  4985. displayTheCheckedLink(link, 'alive_link');
  4986. return;
  4987. }
  4988. if (resHeaders.match(ispremRegex))
  4989. {
  4990. displayTheCheckedLink(link, 'prem_link');
  4991. return;
  4992. }
  4993. },
  4994. onerror: function ()
  4995. {
  4996. displayTheCheckedLink(link, 'unava_link');
  4997. }
  4998. });
  4999. }
  5000.  
  5001. //Delinkfifies the <a> element object
  5002. function delinkifyLink(link)
  5003. {
  5004. var spanElm = document.createElement("span");
  5005. spanElm.className = link.className;
  5006. spanElm.innerHTML = link.innerHTML;
  5007.  
  5008. if (Display_tooltip_info)
  5009. {
  5010. spanElm.href = link.href;
  5011. spanElm.warlc_error = link.warlc_error;
  5012. switch (link.className){
  5013. case "alive_link": spanElm.addEventListener("mouseover", displayTooltipInfo, false); break
  5014. case "adead_link": spanElm.addEventListener("mouseover", displayTooltipError, false); break;
  5015. case "unava_link": //reserved
  5016. case "prem_link": spanElm.addEventListener("mouseover", displayTooltipError, false); break;
  5017. default:
  5018. }
  5019. }
  5020. link.parentNode.replaceChild(spanElm, link);
  5021. }
  5022.  
  5023. //Assigns result status to the <a> element object and calls delinkifying eventually
  5024. //Possible result states: adead_link, alive_link, unava_link, prem_link
  5025. function displayTheCheckedLink(link, resultStatus)
  5026. {
  5027. link.className = resultStatus;
  5028. link.href = Ref_anonymize_service + link.href;
  5029. if (Display_tooltip_info)
  5030. {
  5031. switch (resultStatus){
  5032. case "alive_link": link.addEventListener("mouseover", displayTooltipInfo, false); break
  5033. case "adead_link": link.addEventListener("mouseover", displayTooltipError, false); break;
  5034. case "unava_link": //reserved
  5035. case "prem_link": link.addEventListener("mouseover", displayTooltipInfo, false); break
  5036. default:
  5037. }
  5038. }
  5039. if (doNotLinkify)
  5040. {
  5041. delinkifyLink(link);
  5042. }
  5043. cLinksProcessed++;
  5044.  
  5045. if (resultStatus == "alive_link")
  5046. {
  5047. cLinksAlive++;
  5048. return;
  5049. }
  5050.  
  5051. if (resultStatus == "adead_link")
  5052. {
  5053. cLinksDead++;
  5054. return;
  5055. }
  5056.  
  5057. if (resultStatus == "unava_link")
  5058. {
  5059. cLinksUnava++;
  5060. }
  5061. if (resultStatus == "prem_link")
  5062. {
  5063. cLinksprem++;
  5064. return;
  5065. }
  5066. }
  5067.  
  5068.  
  5069. function initFileHosts()
  5070. {
  5071.  
  5072. function addObsoleteHost(linkRegex, xpathEx)
  5073. {
  5074. var host = new Array(2);
  5075. host[0] = linkRegex;
  5076. host[1] = xpathEx;
  5077. http_file_hosts_obsolete.push(host);
  5078. }
  5079.  
  5080. //obsolete file hosts init start
  5081. if (Obsolete_file_hosts)
  5082. {
  5083. addObsoleteHost("uloz\.cz\/show\/file","//a[contains(@href,'uloz.cz')]");
  5084. addObsoleteHost("storage\\.to\/get","//a[contains(@href,'storage.to')]");
  5085. addObsoleteHost("iskladka\\.cz\/download","//a[contains(@href,'iskladka.cz')]");
  5086. addObsoleteHost("file-rack\\.com\/files","//a[contains(@href,'file-rack.com')]");
  5087. addObsoleteHost("fast-load\\.net\/(\/)?index","//a[contains(@href,'fast-load.net')]");
  5088. addObsoleteHost("subory\\.sk\/download","//a[contains(@href,'subory.sk')]");
  5089. addObsoleteHost("bigandfree\\.com\/\\d+","//a[contains(@href,'bigandfree.com')]");
  5090. addObsoleteHost("fileop\\.com\/\\w+","//a[contains(@href,'fileop.com')]");
  5091. addObsoleteHost("mujsoubor\\.cz\/file\/","//a[contains(@href,'mujsoubor.cz')]");
  5092. addObsoleteHost("sendfile\\.to\/\\w+","//a[contains(@href,'sendfile.to')]");
  5093. addObsoleteHost("superfastfile\\.com\/\\w+","//a[contains(@href,'superfastfile.com')]");
  5094. addObsoleteHost("quickyshare\\.com\/\\w+","//a[contains(@href,'quickyshare.com/')]");
  5095. addObsoleteHost("duckload\\.com\/(?:d|play)","//a[contains(@href,'duckload.com')]");
  5096. addObsoleteHost("uploadstore\\.net\/\\w+","//a[contains(@href,'uploadstore.net')]");
  5097. addObsoleteHost("meinupload\\.com\/dl\/\\d+","//a[contains(@href,'meinupload.com/dl')]");
  5098. addObsoleteHost("dualshare\\.com\/\\w+","//a[contains(@href,'dualshare.com')]");
  5099. addObsoleteHost("2xupload\\.(?:to|de)\/file\/\\w+","//a[contains(@href,'2xupload.to') or contains(@href,'2xupload.de')]");
  5100. addObsoleteHost("oxedion\\.com\/index\\.php\/download\/\\w+","//a[contains(@href,'oxedion.com/index')]");
  5101. addObsoleteHost("uploadline\\.com\/\\d+","//a[contains(@href,'uploadline.com')]");
  5102. addObsoleteHost("dll\\.bz\/file\/\\d+","//a[contains(@href,'dll.bz/file')]");
  5103. addObsoleteHost("movieshare\\.in\/\\w+","//a[contains(@href,'movieshare.in')]");
  5104. addObsoleteHost("milledrive\\.com\/files\/\\d+","//a[contains(@href,'milledrive.com')]");
  5105. addObsoleteHost("quickupload\\.net\/\\w+","//a[contains(@href,'quickupload.net')]");
  5106. addObsoleteHost("safelink\\.in\/\\w+","//a[contains(@href,'safelink.in')]");
  5107. addObsoleteHost("pyramidfiles\\.com\/\\w+","//a[contains(@href,'pyramidfiles.com/')]");
  5108. addObsoleteHost("(?:cloudnator|shragle)\\.com\/files","//a[contains(@href,'cloudnator.com/files') or contains(@href,'shragle.com/files')]");
  5109. addObsoleteHost("batshare\\.com\/\\w+","//a[contains(@href,'batshare.com/')]");
  5110. addObsoleteHost("bitroad\\.net\/download","//a[contains(@href,'bitroad.net/download')]");
  5111. addObsoleteHost("metadivx\\.com\/\\w+","//a[contains(@href,'metadivx.com')]");
  5112. addObsoleteHost("filegaze\\.com\/\\w+","//a[contains(@href,'filegaze.com/')]");
  5113. addObsoleteHost("bulletupload\\.com\/\\w+","//a[contains(@href,'bulletupload.com/')]");
  5114. addObsoleteHost("sharefilehost\\.com\/\\w+","//a[contains(@href,'sharefilehost.com/')]");
  5115. addObsoleteHost("fireuploads\\.net\/\\w+","//a[contains(@href,'fireuploads.net/')]");
  5116. addObsoleteHost("divxlink\\.com\/\\w+","//a[contains(@href,'divxlink.com/')]");
  5117. addObsoleteHost("bzlink\\.us\/\\w+","//a[contains(@href,'bzlink.us/')]");
  5118. addObsoleteHost("filetechnology\\.com\/\\w+","//a[contains(@href,'filetechnology.com/')]");
  5119. addObsoleteHost("filecosy\\.com\/\\w+","//a[contains(@href,'filecosy.com/')]");
  5120. addObsoleteHost("fileserver\\.cc\/\\w+","//a[contains(@href,'fileserver.cc/')]");
  5121. addObsoleteHost("shafiles\\.me\/\\w+","//a[contains(@href,'shafiles.me/')]");
  5122. addObsoleteHost("xfileshare\\.eu\/\\w+","//a[contains(@href,'xfileshare.eu/')]");
  5123. addObsoleteHost("uploadboost\\.com\/\\w+","//a[contains(@href,'uploadboost.com/')]");
  5124. addObsoleteHost("uploadoz\\.com\/\\w+","//a[contains(@href,'uploadoz.com/')]");
  5125. addObsoleteHost("ihostia\\.com\/\\w+","//a[contains(@href,'ihostia.com/')]");
  5126. addObsoleteHost("shareupload\\.com\/\\w+","//a[contains(@href,'shareupload.com/')]");
  5127. addObsoleteHost("ovfile\\.com\/\\w+","//a[contains(@href,'ovfile.com/')]");
  5128. addObsoleteHost("stahuj\\.to\/\\w+","//a[contains(@href,'stahuj.to/')]");
  5129. addObsoleteHost("gigfiles\\.net\/\\w+","//a[contains(@href,'gigfiles.net/')]");
  5130. addObsoleteHost("vidhog\\.com\/\\w+","//a[contains(@href,'vidhog.com/')]");
  5131. addObsoleteHost("filelaser\\.com\/\\w+","//a[contains(@href,'filelaser.com/')]");
  5132. addObsoleteHost("holderfile\\.com\/\\w+","//a[contains(@href,'holderfile.com/')]");
  5133. addObsoleteHost("fileduct\\.(?:com|net)\/\\w+","//a[contains(@href,'fileduct.com/') or contains(@href,'fileduct.net')]");
  5134. addObsoleteHost("filefat\\.com\/\\w+","//a[contains(@href,'filefat.com/')]");
  5135. addObsoleteHost("restfile\\.com\/\\w+","//a[contains(@href,'restfile.com/')]");
  5136. addObsoleteHost("filemashine\\.com\\/download\/\\w+","//a[contains(@href,'filemashine.com/download')]");
  5137. addObsoleteHost("cloudnxt\\.net\/\\w+","//a[contains(@href,'cloudnxt.net/')]");
  5138. addObsoleteHost("uploadrack\\.com\/\\w+","//a[contains(@href,'uploadrack.com')]");
  5139. addObsoleteHost("teradepot\\.com\/\\w+","//a[contains(@href,'teradepot.com')]");
  5140. addObsoleteHost("dataup\\.to\/\\d+\/","//a[contains(@href,'dataup.to')]");
  5141. addObsoleteHost("upit\\.to\/file:\\d+","//a[contains(@href,'upit.to/file')]");
  5142. addObsoleteHost("badongo\\.(?:com|net)\/(?:\\w\\w\/|)(?:vid|cfile|file|pt)\/\\w+","//a[contains(@href,'badongo.com') or contains(@href,'badongo.net')]");
  5143. addObsoleteHost("driveway\\.com\/\\w+","//a[contains(@href,'driveway.com')]");
  5144. addObsoleteHost("eatlime\\.com\/download","//a[contains(@href,'eatlime.com/download')]");
  5145. addObsoleteHost("a2zuploads\\.com\/id\\w+","//a[contains(@href,'a2zuploads.com/id')]");
  5146. addObsoleteHost("friendlyfiles\\.net\/download\/\\w+\/","//a[contains(@href,'friendlyfiles.net/download')]");
  5147. addObsoleteHost("flyfile\\.us\/\\w+","//a[contains(@href,'flyfile.us')]");
  5148. addObsoleteHost("speedyshare\\.com\/\\w+","//a[contains(@href,'speedyshare.com')]");
  5149. addObsoleteHost("brontofile\\.com\/download","//a[contains(@href,'brontofile.com/download')]");
  5150. addObsoleteHost("uploadspace\\.eu\/\\w+","//a[contains(@href,'uploadspace.eu')]");
  5151. addObsoleteHost("fooget\\.com\/\\w+","//a[contains(@href,'fooget.com/')]");
  5152. addObsoleteHost("file-bit.net\/\\w+","//a[contains(@href,'file-bit.net/')]");
  5153. addObsoleteHost("keepfile\\.com\/\\w+","//a[contains(@href,'http://keepfile.com')]");
  5154. addObsoleteHost("piggyshare\\.com\/file\/\\w+","//a[contains(@href,'piggyshare.com')]");
  5155. addObsoleteHost("filecrown\\.com\/\\w+","//a[contains(@href,'filecrown.com')]");
  5156. addObsoleteHost("6giga\\.com\/\\w+","//a[contains(@href,'6giga.com')]");
  5157. addObsoleteHost("uploadjockey\\.com\/download\/\\w+","//a[contains(@href,'uploadjockey.com/download')]");
  5158. addObsoleteHost("bluehost\\.to\/dl=\\w+","//a[contains(@href,'bluehost.to')]");
  5159. addObsoleteHost("coolshare\\.cz\/stahnout\/\\w+","//a[contains(@href,'coolshare.cz/stahnout')]");
  5160. addObsoleteHost("filegu\\.ru\/f\/\\w+","//a[contains(@href,'filegu.ru/f')]");
  5161. addObsoleteHost("filebase\\.to\/files\/\\d+\/","//a[contains(@href,'filebase.to/files')]");
  5162. addObsoleteHost("kickload\\.com\/(?:file|get)\/","//a[contains(@href,'kickload.com/file') or contains(@href,'kickload.com/get')]");
  5163. addObsoleteHost("up-file\\.com\/files\/download\/\\w+\/","//a[contains(@href,'up-file.com/download')]");
  5164. addObsoleteHost("ezyfile\\.net\/\\w+","//a[contains(@href,'ezyfile.net/')]");
  5165. addObsoleteHost("k2files\\.com\/files","//a[contains(@href,'k2files.com/files')]");
  5166. addObsoleteHost("aiotool\\.net\/\\w+","//a[contains(@href,'aiotool.net/')]");
  5167. addObsoleteHost("xvideos\\.com\/files\/\\d+\/\\w+","//a[contains(@href,'xvideos.com/files')]");
  5168. addObsoleteHost("filebling\\.com\/dl\/\\d+\/\\d+\/\\w+","//a[contains(@href,'filebling.com/dl')]");
  5169. addObsoleteHost("loaded\\.it\/divx\/\\w+","//a[contains(@href,'loaded.it/divx')]");
  5170. addObsoleteHost("uploadcell\\.com\/\\w+\/\\w+","//a[contains(@href,'uploadcell.com')]");
  5171. addObsoleteHost("jakfile\\.com\/\\w+","//a[contains(@href,'jakfile.com/')]");
  5172. addObsoleteHost("uploadshare\\.cz\/download\/\\w+\/\\w+","//a[contains(@href,'uploadshare.cz/download')]");
  5173. addObsoleteHost("mangoshare\\.com\/\\w+","//a[contains(@href,'mangoshare.com')]");
  5174. addObsoleteHost("ugotfile\\.com\/file\/\\d+\/\\w+","//a[contains(@href,'ugotfile.com/file')]");
  5175. addObsoleteHost("filestab\\.com\/\\w+","//a[contains(@href,'filestab.com')]");
  5176. addObsoleteHost("dotavi\\.com\/\\w+\/.","//a[contains(@href,'dotavi.com/')]");
  5177. addObsoleteHost("crazyupload\\.com\/\\w+","//a[contains(@href,'crazyupload.com')]");
  5178. addObsoleteHost("gaiafile\\.com\/\\w+","//a[contains(@href,'gaiafile.com')]");
  5179. addObsoleteHost("sharejunky\\.com\/\\w+","//a[contains(@href,'sharejunky.com')]");
  5180. addObsoleteHost("fileho\\.com\/download\/\\d+","//a[contains(@href,'fileho.com/download')]");
  5181. addObsoleteHost("(?:bigandfree|BigAndFree)\\.com\/\\d+","//a[contains(@href,'bigandfree.com') or contains(@href,'BigAndFree.com')]");
  5182. addObsoleteHost("bigfile\\.in\/\\w+","//a[contains(@href,'bigfile.in')]");
  5183. addObsoleteHost("bigshare\\.eu\/download\\.php\\?id=","//a[contains(@href,'bigshare.eu/download.php')]");
  5184. addObsoleteHost("dahosting\\.org\/dl\/\\w+","//a[contains(@href,'dahosting.org/dl')]");
  5185. addObsoleteHost("digisofts\\.net\/\\w+","//a[contains(@href,'digisofts.net')]");
  5186. addObsoleteHost("file4save\\.com\/\\w+\/\\w+","//a[contains(@href,'file4save.com')]");
  5187. addObsoleteHost("filereactor\\.com\/\\w+","//a[contains(@href,'filereactor.com/')]");
  5188. addObsoleteHost("filechip\\.com\/\\w+","//a[contains(@href,'filechip.com')]");
  5189. addObsoleteHost("filescloud\\.com\/\\w+\/\\w+","//a[contains(@href,'filescloud.com')]");
  5190. addObsoleteHost("saveqube\\.com\/getfile\/\\w+","//a[contains(@href,'saveqube.com/getfile')]");
  5191. addObsoleteHost("www2\\.turboshare\\.de\/v\/\\d+","//a[contains(@href,'turboshare.de/v')]");
  5192. addObsoleteHost("z-upload\\.com\/\\w+","//a[contains(@href,'z-upload.com')]");
  5193. addObsoleteHost("youshare\\.com\/view\\.php","//a[contains(@href,'youshare.com/view')]");
  5194. addObsoleteHost("jiffyupload\\.com\/\\w+","//a[contains(@href,'jiffyupload.com')]");
  5195. addObsoleteHost("gigeshare\\.com\/preview\/\\w+","//a[contains(@href,'gigeshare.com')]");
  5196. addObsoleteHost("datenklo\\.net\/dl","//a[contains(@href,'datenklo.net')]");
  5197. addObsoleteHost("upload\\.dj\/download\\.php\\?id=\\w+","//a[contains(@href,'upload.dj/download.php')]");
  5198. addObsoleteHost("loadfiles\\.in\/\\w+\/","//a[contains(@href,'loadfiles.in')]");
  5199. addObsoleteHost("upit\\.to\/file:\\w+\/","//a[contains(@href,'upit.to/file')]");
  5200. addObsoleteHost("zshare\\.net\/(?:download|video|audio)\/\\w+","//a[contains(@href,'zshare.net/')]");
  5201. addObsoleteHost("refile\\.net\/f\/\\?\\w+","//a[contains(@href,'refile.net/f/')]");
  5202. addObsoleteHost("dsfileshare\\.com\/download","//a[contains(@href,'dsfileshare.com/download')]");
  5203. addObsoleteHost("sharesimple\\.net\/\\w{2}\/download","//a[contains(@href,'sharesimple.net')]");
  5204. addObsoleteHost("(?:s\\d+\\.|)4files\\.net\/\\d+","//a[contains(@href,'4files.net')]");
  5205. addObsoleteHost("odsiebie\\.com\/pokaz\/\\d+","//a[contains(@href,'odsiebie.com/pokaz')]");
  5206. addObsoleteHost("filenavi\\.com\/direct\/\\w+","//a[contains(@href,'filenavi.com/direct')]");
  5207. addObsoleteHost("3oof\\.com\/\\w+","//a[contains(@href,'3oof.com/')]");
  5208. addObsoleteHost("meshwaar\\.com\/\\w+","//a[contains(@href,'meshwaar.com')]");
  5209. addObsoleteHost("maxupload\\.com\/files\/\\w+","//a[contains(@href,'maxupload.com/files')]");
  5210. addObsoleteHost("share\\.cx\/videos\/\\d+","//a[contains(@href,'share.cx/videos')]");
  5211. addObsoleteHost("atserver\\.eu\/(?:\\w{2}\/|)download\/\\d+","//a[contains(@href,'atserver.eu')]");
  5212. addObsoleteHost("file2upload\\.net\/download\/\\d+","//a[contains(@href,'file2upload.net/download')]");
  5213. addObsoleteHost("filebling\\.com\/\\w+","//a[contains(@href,'filebling.com')]");
  5214. addObsoleteHost("turboshare\\.(?:eu|com)\/files","//a[contains(@href,'turboshare.') and contains(@href,'/files')]");
  5215. addObsoleteHost("rarhost\\.com\/download","//a[contains(@href,'rarhost.com/download')]");
  5216. addObsoleteHost("isharehd\\.com\/\\w+","//a[contains(@href,'isharehd.com')]");
  5217. addObsoleteHost("datenklo\\.net\/file\\.php\\?id=\\w+","//a[contains(@href,'datenklo.net/file.php')]");
  5218. addObsoleteHost("file2share\\.biz\/download\\.php\\?id=\\w+","//a[contains(@href,'file2share.biz/download.php')]");
  5219. addObsoleteHost("savefiles\\.net\/d\/\\w+\\.html","//a[contains(@href,'savefiles.net/d')]");
  5220. addObsoleteHost("bestsharing\\.com\/files\/\\w+","//a[contains(@href,'bestsharing.com/files')]");
  5221. addObsoleteHost("filecache\\.de\/\\d+","//a[contains(@href,'filecache.de/')]");
  5222. addObsoleteHost("i741\\.com\/files\/\\w+","//a[contains(@href,'i741.com/files')]");
  5223. addObsoleteHost("dataup\\.de\/\\d+","//a[contains(@href,'dataup.de')]");
  5224. addObsoleteHost("fofly\\.com\/\\w+","//a[contains(@href,'fofly.com')]");
  5225. addObsoleteHost("shareonall\\.com\/\\w+","//a[contains(@href,'shareonall.com')]");
  5226. addObsoleteHost("sexuploader\\.com\/(?:|..\/)\\?[d|v]=\\w{8}","//a[contains(@href,'sexuploader.com')]");
  5227. 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')]");
  5228. addObsoleteHost("uploadhyper\\.com\/file\/","//a[contains(@href,'uploadhyper.com')]");
  5229. addObsoleteHost("filespawn\\.com\/file\/","//a[contains(@href,'filespawn.com')]");
  5230. addObsoleteHost("caizzii\\.com\/(?:download|\\?file=)","//a[contains(@href,'caizzii.com')]");
  5231. addObsoleteHost("volnyweb\\.cz\/files\/get\/[\\w-_]+","//a[contains(@href,'volnyweb.cz/files')]");
  5232. addObsoleteHost("gotupload\\.com\/\\w+","//a[contains(@href,'gotupload.com/')]");
  5233. addObsoleteHost("mooload\\.com\/new\/file\\.php\\?file=files\/\\d+\/\\d+","//a[contains(@href,'mooload.com/new/file')]");
  5234. addObsoleteHost("z\\d+\\.zupload\\.com\/download\\.php\\?file=getfile&filepath=\\d+","//a[contains(@href,'zupload.com/download')]");
  5235. addObsoleteHost("mytempdir\\.com\/\\d+","//a[contains(@href,'mytempdir.com/')]");
  5236. addObsoleteHost("usershare\\.net\/\\w+","//a[contains(@href,'usershare.net/')]");
  5237. addObsoleteHost("qshare\\.com\/get\/\\d+\/.","//a[contains(@href,'qshare.com/get')]");
  5238. addObsoleteHost("filescash\\.net\/file\/\\d+","//a[contains(@href,'filescash.net/file')]");
  5239. addObsoleteHost("metahyper\\.com\/\\w+","//a[contains(@href,'metahyper.com/')]");
  5240. addObsoleteHost("combozip\\.com\/\\w+","//a[contains(@href,'combozip.com/')]");
  5241. addObsoleteHost("anonstream\\.com\/get_\\w+","//a[contains(@href,'anonstream.com/get_')]");
  5242. addObsoleteHost("x7\\.to\/\\w+","//a[contains(@href,'x7.to/')]");
  5243. addObsoleteHost("uploadbox\\.com\/files\/\\w+","//a[contains(@href,'uploadbox.com/files')]");
  5244. addObsoleteHost("(?:flyupload\\.)?(?:enterupload|flyupload)\\.com\/[\\?\\w]+","//a[contains(@href,'enterupload.com/') or contains(@href,'flyupload.com/')]");
  5245. addObsoleteHost("filepoint\\.de\/dl\/\\w+","//a[contains(@href,'filepoint.de/dl')]");
  5246. addObsoleteHost("icushare\\.com\/\\w+","//a[contains(@href,'icushare.com/')]");
  5247. addObsoleteHost("oron\\.com\/\\w+","//a[contains(@href,'oron.com/')]");
  5248. addObsoleteHost("mystream\\.to\/file\\-\\d+","//a[contains(@href,'mystream.to/file')]");
  5249. addObsoleteHost("x-fs\\.com\/download\\.php\\?id=\\w+","//a[contains(@href,'x-fs.com/download')]");
  5250. addObsoleteHost("srapid\\.eu\/\\w+","//a[contains(@href,'srapid.eu/')]");
  5251. addObsoleteHost("shareshared\\.com\/\\w+","//a[contains(@href,'shareshared.com/')]");
  5252. addObsoleteHost("sosame\\.cz\/\\w+","//a[contains(@href,'sosame.cz/')]");
  5253. addObsoleteHost("s\\d+\\.filesdump\\.com\/file\/\\w+","//a[contains(@href,'filesdump.com/file')]");
  5254. addObsoleteHost("2-klicks\\.de\/\\?d=\\w+","//a[contains(@href,'2-klicks.de/?d=')]");
  5255. addObsoleteHost("silofiles\\.com\/file\/\\d+","//a[contains(@href,'silofiles.com/file')]");
  5256. addObsoleteHost("upfile\\.in\/\\w+","//a[contains(@href,'upfile.in/')]");
  5257. addObsoleteHost("filehook\\.com\/\\w+","//a[contains(@href,'filehook.com/')]");
  5258. addObsoleteHost("mojofile\\.com\/\\w+","//a[contains(@href,'mojofile.com/')]");
  5259. addObsoleteHost("cloudcache\\.cc\/\\w+","//a[contains(@href,'cloudcache.cc/')]");
  5260. addObsoleteHost("1hostclick\\.com\/\\w+","//a[contains(@href,'1hostclick.com/')]");
  5261. addObsoleteHost("4bytez\\.com\/\\w+","//a[contains(@href,'4bytez.com/')]");
  5262. addObsoleteHost("uploadking\\.com\/\\w+","//a[contains(@href,'uploadking.com/')]");
  5263. addObsoleteHost("nahraj\\.cz\/(?:content|down)\/\\w+","//a[contains(@href,'nahraj.cz/')]");
  5264. addObsoleteHost("megarapid\\.eu\/files\/\\d+","//a[contains(@href,'megarapid.eu/files')]");
  5265. addObsoleteHost("(?:fileserve|uploadstation)\\.com\/(?:file|list)\/\\w+","//a[contains(@href,'fileserve.com/') or contains(@href,'uploadstation.com/')]");
  5266. addObsoleteHost("uploadhere\\.com\/\\w+","//a[contains(@href,'uploadhere.com/')]");
  5267. addObsoleteHost("dualshare\\.com\/\\w+","//a[contains(@href,'dualshare.com/')]");
  5268. addObsoleteHost("yourfilehost\\.com\/media","//a[contains(@href,'yourfilehost.com/media')]");
  5269. addObsoleteHost("ftp2share\\.com\/file\/\\w+","//a[contains(@href,'ftp2share.com/file')]");
  5270. addObsoleteHost("storeandserve\\.com\/download\/\\d+","//a[contains(@href,'storeandserve.com/download')]");
  5271. addObsoleteHost("mountfile\\.com\/file(?:\/\\w+){2}","//a[contains(@href,'mountfile.com/file')]");
  5272. addObsoleteHost("save\\.am\/files\/\\w+","//a[contains(@href,'save.am/files')]");
  5273. addObsoleteHost("transitfiles\\.com\/dl\/\\w+","//a[contains(@href,'transitfiles.com/dl')]");
  5274. addObsoleteHost("smartuploader\\.com\/file\\.php\\?f=\\d+","//a[contains(@href,'smartuploader.com/file.php?=')]");
  5275. addObsoleteHost("skipfile\\.com\/\\w+","//a[contains(@href,'skipfile.com/')]");
  5276. addObsoleteHost("stahnu\\.to\/[\\w\\?]+","//a[contains(@href,'stahnu.to/')]");
  5277. addObsoleteHost("flyshare\.cz\/(?:stahni\/|)\\d+","//a[contains(@href,'flyshare.cz/')]");
  5278. addObsoleteHost("(?:ddlani\\.me|ddlanime\\.com)\/\\w+","//a[contains(@href,'ddlani.me/') or contains(@href,'ddlanime.com/')]");
  5279. addObsoleteHost("loadly\\.com\/\\w+","//a[contains(@href,'loadly.com/')]");
  5280. addObsoleteHost("groovefile\\.com\/\\w+","//a[contains(@href,'groovefile.com/')]");
  5281. addObsoleteHost("filezlot\\.com\/\\w+","//a[contains(@href,'filezlot.com/')]");
  5282. addObsoleteHost("shareator\\.(?:net|com)\/\\w+","//a[contains(@href,'shareator.')]");
  5283. addObsoleteHost("yabadaba\\.ru\/files\/","//a[contains(@href,'yabadaba.ru/files/')]");
  5284. addObsoleteHost("rapidhide\\.com\/download\\.php\\?file=\\w+","//a[contains(@href,'rapidhide.com/download.php')]");
  5285. addObsoleteHost("filejungle\\.com\/[fl]\/\\w+","//a[contains(@href,'filejungle.com/')]");
  5286. addObsoleteHost("kewlshare\\.com\/dl\/\\d+","//a[contains(@href,'kewlshare.com/dl')]");
  5287. addObsoleteHost("petandrive\\.com\/file\/\\w+","//a[contains(@href,'petandrive.com/file')]");
  5288. addObsoleteHost("onionshare\\.com\/\\w+","//a[contains(@href,'onionshare.com/')]");
  5289. addObsoleteHost("rapidable\\.com\/\\w+\/download\\.php\\?id=","//a[contains(@href,'rapidable.com/')]");
  5290. addObsoleteHost("filesdump\\.com\/file\/\\w+\/\\d+","//a[contains(@href,'filesdump.com/file')]");
  5291. addObsoleteHost("file2box\\.(?:net|com)\/\\w+","//a[contains(@href,'file2box.')]");
  5292. addObsoleteHost("(?:filesonic|sharingmatrix|wupload)(?:\\.\\w+){1,2}\/(?:file|folder)\/\\w+","//a[contains(@href,'filesonic.') or contains(@href,'sharingmatrix.com') or contains(@href,'wupload.')]");
  5293. // addObsoleteHost("wizzupload\\.com\/\\w+","//a[contains(@href,'wizzupload.com/')]");
  5294. addObsoleteHost("bloggerarticles\\.com\/\\w+","//a[contains(@href,'bloggerarticles.com/')]");
  5295. addObsoleteHost("mojedata\\.sk/","//a[contains(@href,'mojedata.sk/')]");
  5296. addObsoleteHost("sharpfile\\.com\/\\w+","//a[contains(@href,'sharpfile.com/')]");
  5297. addObsoleteHost("upgrand\\.com\/\\w+","//a[contains(@href,'upgrand.com/')]");
  5298. addObsoleteHost("nasdilej\\.cz\/\\w+","//a[contains(@href,'nasdilej.cz/')]");
  5299. addObsoleteHost("mediatack\\.cz\/stahuj/\\w+","//a[contains(@href,'mediatack.cz/stahuj/')]");
  5300. addObsoleteHost("share-it\\.to\/file/\\w+","//a[contains(@href,'share-it.to/file/')]");
  5301. addObsoleteHost("primeupload\\.com\/file/\\w+","//a[contains(@href,'primeupload.com/file/')]");
  5302. addObsoleteHost("(?:uploads\\.glumbo|glumbouploads)\\.com\/\\w+","//a[contains(@href,'uploads.glumbo.com') or contains(@href,'glumbouploads.com')]");
  5303. addObsoleteHost("filebeer\\.info\/\\w+","//a[contains(@href,'filebeer.info/')]");
  5304. addObsoleteHost("baberepublic\\.com\/link\/\\w+","//a[contains(@href,'baberepublic.com/link/')]");
  5305. addObsoleteHost("xtu\\.me\/\\w+","//a[contains(@href,'xtu.me/')]");
  5306. addObsoleteHost("sharebase\\.de\/files\/\\w+","//a[contains(@href,'sharebase.de/files/')]");
  5307. addObsoleteHost("filerobo\\.com\/\\w+","//a[contains(@href,'filerobo.com/')]");
  5308. addObsoleteHost("filevelocity\\.com\/\\w+","//a[contains(@href,'filevelocity.com/')]");
  5309. addObsoleteHost("filezpro\\.com\/\\w+","//a[contains(@href,'filezpro.com/')]");
  5310. addObsoleteHost("file4sharing\\.com\/\\w+","//a[contains(@href,'file4sharing.com/')]");
  5311. addObsoleteHost("cing\\.be\/\\w+","//a[contains(@href,'cing.be/')]");
  5312. addObsoleteHost("ufile\\.eu\/\\w+","//a[contains(@href,'ufile.eu/')]");
  5313. addObsoleteHost("pigsonic\\.com\/\\w+","//a[contains(@href,'pigsonic.com/')]");
  5314. addObsoleteHost("fileupped\\.com\/\\w+","//a[contains(@href,'fileupped.com/')]");
  5315. addObsoleteHost("sharerun\\.com\/\\w+","//a[contains(@href,'sharerun.com/')]");
  5316. addObsoleteHost("rapidslnare\\.com\/\\w+","//a[contains(@href,'rapidslnare.com/')]");
  5317. addObsoleteHost("monsteruploads\\.eu\/\\w+","//a[contains(@href,'monsteruploads.eu/')]");
  5318. addObsoleteHost("b9bb\\.com\/\\w+","//a[contains(@href,'b9bb.com/')]");
  5319. addObsoleteHost("jamber\\.info\/\\w+","//a[contains(@href,'jamber.info/')]");
  5320. addObsoleteHost("(?:megaftp|MegaFTP)\\.com\/\\w+","//a[contains(@href,'megaftp.com/') or contains(@href,'MegaFTP.com/')]");
  5321. addObsoleteHost("desiupload\\.net\/\\?d=\\w+","//a[contains(@href,'desiupload.net/')]");
  5322. addObsoleteHost("file27\\.com\/\\w+","//a[contains(@href,'file27.com/')]");
  5323. addObsoleteHost("yastorage\\.com\/\\w+","//a[contains(@href,'yastorage.com/')]");
  5324. addObsoleteHost("filehost\\.ws\/\\w+","//a[contains(@href,'filehost.ws/')]");
  5325. addObsoleteHost("copyload\\.com\/\\w+","//a[contains(@href,'copyload.com/')]");
  5326. addObsoleteHost("venusfile\\.com\/\\w+","//a[contains(@href,'venusfile.com/')]");
  5327. addObsoleteHost("aieshare\\.com\/\\w+","//a[contains(@href,'aieshare.com/')]");
  5328. addObsoleteHost("fileza\\.net\/\\w+","//a[contains(@href,'fileza.net/')]");
  5329. addObsoleteHost("filerose\\.com\/\\w+","//a[contains(@href,'filerose.com/')]");
  5330. addObsoleteHost("squillion\\.com\/\\w+","//a[contains(@href,'squillion.com/')]");
  5331. addObsoleteHost("fileprohost\\.com\/\\w+","//a[contains(@href,'fileprohost.com/')]");
  5332. addObsoleteHost("bitbonus\\.com\/download\/\\w+","//a[contains(@href,'bitbonus.com/')]");
  5333. addObsoleteHost("warserver\\.cz\/\\w+","//a[contains(@href,'warserver.cz/')]");
  5334. addObsoleteHost("uload\\.to\/\\w+","//a[contains(@href,'uload.to/')]");
  5335. addObsoleteHost("sharedbit\\.net\/\\w+","//a[contains(@href,'sharedbit.net/')]");
  5336. addObsoleteHost("megaload\\.it\/\\w+","//a[contains(@href,'megaload.it/')]");
  5337. addObsoleteHost("filewinds\\.com\/\\w+","//a[contains(@href,'filewinds.com/')]");
  5338. addObsoleteHost("uploadcore\\.com\/\\w+","//a[contains(@href,'uploadcore.com/')]");
  5339. addObsoleteHost("syfiles\\.com\/\\w+","//a[contains(@href,'syfiles.com/')]");
  5340. addObsoleteHost("eyesfile\\.com\/\\w+","//a[contains(@href,'eyesfile.com/')]");
  5341. addObsoleteHost("hotfile\\.com\/\\w+","//a[contains(@href,'hotfile.com/')]");
  5342. addObsoleteHost("superupl\\.com\/\\w+","//a[contains(@href,'superupl.com/')]");
  5343. addObsoleteHost("oteupload\\.com\/\\w+","//a[contains(@href,'oteupload.com/')]");
  5344. addObsoleteHost("henchfile\\.com\/\\w+","//a[contains(@href,'henchfile.com/')]");
  5345. addObsoleteHost("HenchFile\\.com\/\\w+","//a[contains(@href,'HenchFile.com/')]");
  5346. addObsoleteHost("filegag\\.com\/\\w+","//a[contains(@href,'filegag.com/')]");
  5347. addObsoleteHost("filedefend\\.com\/\\w+","//a[contains(@href,'filedefend.com/')]");
  5348. addObsoleteHost("hotfiles\\.ws\/\\w+","//a[contains(@href,'hotfiles.ws/')]");
  5349. addObsoleteHost("share-rapid\\.com\/\\w+","//a[contains(@href,'share-rapid.com/')]");
  5350. //addObsoleteHost("sharerapid\\.cz\/\\w+","//a[contains(@href,'sharerapid.cz/')]");
  5351. addObsoleteHost("rapids\\.cz\/\\w+","//a[contains(@href,'rapids.cz/')]");
  5352. addObsoleteHost("share-credit\\.cz\/\\w+","//a[contains(@href,'share-credit.cz/')]");
  5353. addObsoleteHost("share-central\\.cz\/\\w+","//a[contains(@href,'share-central.cz/')]");
  5354. addObsoleteHost("share-ms\\.cz\/\\w+","//a[contains(@href,'share-ms.cz/')]");
  5355. addObsoleteHost("share-net\\.cz\/\\w+","//a[contains(@href,'share-net.cz/')]");
  5356. addObsoleteHost("srapid\\.cz\/\\w+","//a[contains(@href,'srapid.cz/')]");
  5357. addObsoleteHost("share-rapid\\.cz\/\\w+","//a[contains(@href,'share-rapid.cz/')]");
  5358. addObsoleteHost("wooupload\\.com\/\\w+","//a[contains(@href,'wooupload.com/')]");
  5359. addObsoleteHost("megabitshare\\.com\/\\w+","//a[contains(@href,'megabitshare.com/')]");
  5360. addObsoleteHost("uploking\\.com\/\\w+","//a[contains(@href,'uploking.com/')]");
  5361. addObsoleteHost("esnips\\.com\/\\w+","//a[contains(@href,'esnips.com/')]");
  5362. addObsoleteHost("uplly\\.com\/\\w+","//a[contains(@href,'uplly.com/')]");
  5363. addObsoleteHost("ufox\\.com\/\\w+","//a[contains(@href,'ufox.com/')]");
  5364. addObsoleteHost("clz\\.to\/\\w+","//a[contains(@href,'clz.to/')]");
  5365. addObsoleteHost("cloudzer\\.net\/\\w+","//a[contains(@href,'cloudzer.net/')]");
  5366. addObsoleteHost("cloudzer\\.com\/\\w+","//a[contains(@href,'cloudzer.com/')]");
  5367. addObsoleteHost("extabit\\.com\/\\w+","//a[contains(@href,'extabit.com/')]");
  5368. addObsoleteHost("uploadwaste\\.com\/\\w+","//a[contains(@href,'uploadwaste.com/')]");
  5369. addObsoleteHost("247upload\\.com\/\\w+","//a[contains(@href,'uploadwaste.com/')]");
  5370. addObsoleteHost("2download\\.de\/\\w+","//a[contains(@href,'2download.de/')]");
  5371. addObsoleteHost("4fastfile\\.com\/\\w+","//a[contains(@href,'4fastfile.com/')]");
  5372. addObsoleteHost("asixfiles\\.com\/\\w+","//a[contains(@href,'asixfiles.com/')]");
  5373. addObsoleteHost("berofile\\.com\/\\w+","//a[contains(@href,'berofile.com/')]");
  5374. addObsoleteHost("bigupload\\.com\/\\w+","//a[contains(@href,'bigupload.com/')]");
  5375. addObsoleteHost("cepzo\\.com\/\\w+","//a[contains(@href,'cepzo.com/')]");
  5376. addObsoleteHost("czshare\\.com\/\\w+","//a[contains(@href,'czshare.com/')]");
  5377. addObsoleteHost("clouds\\.to\/\\w+","//a[contains(@href,'clouds.to/')]");
  5378. addObsoleteHost("cobrashare\\.sk\/\\w+","//a[contains(@href,'cobrashare.sk/')]");
  5379. addObsoleteHost("coraldrive\\.net\/\\w+","//a[contains(@href,'coraldrive.net/')]");
  5380. addObsoleteHost("cyberlocker\\.ch\/\\w+","//a[contains(@href,'cyberlocker.ch/')]");
  5381. addObsoleteHost("darkport\\.org\/\\w+","//a[contains(@href,'darkport.org/')]");
  5382. addObsoleteHost("dark-uploads\\.com\/\\w+","//a[contains(@href,'dark-uploads.com/')]");
  5383. addObsoleteHost("davvas\\.com\/\\w+","//a[contains(@href,'davvas.com/')]");
  5384. addObsoleteHost("enigmashare\\.com\/\\w+","//a[contains(@href,'enigmashare.com/')]");
  5385. addObsoleteHost("erofly\\.cz\/\\w+","//a[contains(@href,'erofly.cz/')]");
  5386. addObsoleteHost("fastsonic\\.net\/\\w+","//a[contains(@href,'fastsonic.net/')]");
  5387. addObsoleteHost("filebox\\.com\/\\w+","//a[contains(@href,'filebox.com/')]");
  5388. addObsoleteHost("filecity\\.net\/\\w+","//a[contains(@href,'filecity.net/')]");
  5389. addObsoleteHost("filedap\\.com\/\\w+","//a[contains(@href,'filedap.com/')]");
  5390. addObsoleteHost("filedino\\.com\/\\w+","//a[contains(@href,'filedino.com/')]");
  5391. addObsoleteHost("filedownloads\\.org\/\\w+","//a[contains(@href,'filedownloads.org/')]");
  5392. addObsoleteHost("filefolks\\.com\/\\w+","//a[contains(@href,'filefolks.com/')]");
  5393. addObsoleteHost("fileking\\.co\/\\w+","//a[contains(@href,'fileking.co/')]");
  5394. addObsoleteHost("filemates\\.com\/\\w+","//a[contains(@href,'filemates.com/')]");
  5395. addObsoleteHost("files\\.to\/\\w+","//a[contains(@href,'files.to/')]");
  5396. addObsoleteHost("files2k\\.eu\/\\w+","//a[contains(@href,'files2k.eu/')]");
  5397. addObsoleteHost("filesector\\.cc\/\\w+","//a[contains(@href,'filesector.cc/')]");
  5398. addObsoleteHost("filesega\\.com\/\\w+","//a[contains(@href,'filesega.com/')]");
  5399. addObsoleteHost("filesend\\.net\/\\w+","//a[contains(@href,'filesend.net/')]");
  5400. addObsoleteHost("filestay\\.com\/\\w+","//a[contains(@href,'filestay.com/')]");
  5401. addObsoleteHost("filestrum\\.com\/\\w+","//a[contains(@href,'filestrum.com/')]");
  5402. addObsoleteHost("fileuplo\\.de\/\\w+","//a[contains(@href,'fileuplo.de/')]");
  5403. addObsoleteHost("fileupup\\.com\/\\w+","//a[contains(@href,'fileupup.com/')]");
  5404. addObsoleteHost("forunesia\\.com\/\\w+","//a[contains(@href,'forunesia.com/')]");
  5405. addObsoleteHost("freeuploads\\.fr\/\\w+","//a[contains(@href,'freeuploads.fr/')]");
  5406. addObsoleteHost("uploa\\.dk\/\\w+","//a[contains(@href,'uploa.dk/')]");
  5407. addObsoleteHost("getthebit\\.com\/\\w+","//a[contains(@href,'getthebit.com/')]");
  5408. addObsoleteHost("getzilla\\.net\/\\w+","//a[contains(@href,'getzilla.net/')]");
  5409. addObsoleteHost("goldfile\\.eu\/\\w+","//a[contains(@href,'goldfile.eu/')]");
  5410. addObsoleteHost("good\\.com\/\\w+","//a[contains(@href,'good.com/')]");
  5411. addObsoleteHost("grupload\\.com\/\\w+","//a[contains(@href,'grupload.com/')]");
  5412. addObsoleteHost("hellfile\\.com\/\\w+","//a[contains(@href,'hellfile.com/')]");
  5413. addObsoleteHost("hipfile\\.com\/\\w+","//a[contains(@href,'hipfile.com/')]");
  5414. addObsoleteHost("hitfile\\.com\/\\w+","//a[contains(@href,'hitfile.com/')]");
  5415. addObsoleteHost("hulkfile\\.eu\/\\w+","//a[contains(@href,'hulkfile.eu/')]");
  5416. addObsoleteHost("i-filez\\.com\/\\w+","//a[contains(@href,'i-filez.com/')]");
  5417. addObsoleteHost("ifile\\.ws\/\\w+","//a[contains(@href,'ifile.ws/')]");
  5418. addObsoleteHost("kupload\\.org\/\\w+","//a[contains(@href,'kupload.org/')]");
  5419. addObsoleteHost("duckfile\\.net\/\\w+","//a[contains(@href,'duckfile.net/')]");
  5420. addObsoleteHost("packupload\\.com\/\\w+","//a[contains(@href,'packupload.com/')]");
  5421. addObsoleteHost("terafile\\.com\/\\w+","//a[contains(@href,'terafile.com/')]");
  5422. addObsoleteHost("terafile\\.co\/\\w+","//a[contains(@href,'terafile.co/')]");
  5423. addObsoleteHost("fileom\\.com\/\\w+","//a[contains(@href,'fileom.com/')]");
  5424. addObsoleteHost("luckyshare\\.net\/\\w+","//a[contains(@href,'luckyshare.net/')]");
  5425. addObsoleteHost("lemuploads\\.com\/\\w+","//a[contains(@href,'lemuploads.com/')]");
  5426. addObsoleteHost("limelinx\\.com\/\\w+","//a[contains(@href,'limelinx.com/')]");
  5427. addObsoleteHost("maxshare\\.pl\/\\w+","//a[contains(@href,'maxshare.pl/')]");
  5428. addObsoleteHost("megarelease\\.org\/\\w+","//a[contains(@href,'megarelease.org/')]");
  5429. addObsoleteHost("megashare\\.com\/\\w+","//a[contains(@href,'megashare.com/')]");
  5430. addObsoleteHost("minus\\.com\/\\w+","//a[contains(@href,'minus.com/')]");
  5431. addObsoleteHost("mlfat4arab\\.com\/\\w+","//a[contains(@href,'mlfat4arab.com/')]");
  5432. addObsoleteHost("multishare\\.cz\/\\w+","//a[contains(@href,'multishare.cz/')]");
  5433. addObsoleteHost("nirafile\\.com\/\\w+","//a[contains(@href,'nirafile.com/')]");
  5434. addObsoleteHost("ok2upload\\.com\/\\w+","//a[contains(@href,'ok2upload.com/')]");
  5435. addObsoleteHost("peejeshare\\.com\/\\w+","//a[contains(@href,'peejeshare.com/')]");
  5436. addObsoleteHost("premiuns\\.org\/\\w+","//a[contains(@href,'premiuns.org/')]");
  5437. addObsoleteHost("przeklej\\.net\/\\w+","//a[contains(@href,'przeklej.net/')]");
  5438. addObsoleteHost("qkup\\.net\/\\w+","//a[contains(@href,'qkup.net/')]");
  5439. addObsoleteHost("rapidupload\\.sk\/\\w+","//a[contains(@href,'rapidupload.sk/')]");
  5440. addObsoleteHost("rockdizfile\\.com\/\\w+","//a[contains(@href,'rockdizfile.com/')]");
  5441. addObsoleteHost("rocketfile\\.net\/\\w+","//a[contains(@href,'rocketfile.net/')]");
  5442. addObsoleteHost("share-now\\.net\/\\w+","//a[contains(@href,'share-now.net/')]");
  5443. addObsoleteHost("share76\\.com\/\\w+","//a[contains(@href,'share76.com/')]");
  5444. addObsoleteHost("sharebees\\.com\/\\w+","//a[contains(@href,'sharebees.com/')]");
  5445. addObsoleteHost("sharefiles\\.co\/\\w+","//a[contains(@href,'sharefiles.co/')]");
  5446. addObsoleteHost("slingfile\\.com\/\\w+","//a[contains(@href,'slingfile.com/')]");
  5447. addObsoleteHost("sms4file\\.com\/\\w+","//a[contains(@href,'sms4file.com/')]");
  5448. addObsoleteHost("space4file\\.com\/\\w+","//a[contains(@href,'space4file.com/')]");
  5449. addObsoleteHost("tigershare\\.net\/\\w+","//a[contains(@href,'tigershare.net/')]");
  5450. addObsoleteHost("toucansharing\\.com\/\\w+","//a[contains(@href,'toucansharing.com/')]");
  5451. addObsoleteHost("ubuntuone\\.com\/\\w+","//a[contains(@href,'ubuntuone.com/')]");
  5452. addObsoleteHost("unextfiles\\.com\/\\w+","//a[contains(@href,'unextfiles.com/')]");
  5453. addObsoleteHost("upaj\\.pl\/\\w+","//a[contains(@href,'upaj.pl/')]");
  5454. addObsoleteHost("upfile\\.biz\/\\w+","//a[contains(@href,'upfile.biz/')]");
  5455. addObsoleteHost("uploadbin\\.net\/\\w+","//a[contains(@href,'uploadbin.net/')]");
  5456. addObsoleteHost("uploadic\\.com\/\\w+","//a[contains(@href,'uploadic.com/')]");
  5457. addObsoleteHost("uploadinc\\.com\/\\w+","//a[contains(@href,'uploadinc.com/')]");
  5458. addObsoleteHost("uploading4u\\.eu\/\\w+","//a[contains(@href,'uploading4u.eu/')]");
  5459. addObsoleteHost("uploadjet\\.net\/\\w+","//a[contains(@href,'uploadjet.net/')]");
  5460. addObsoleteHost("uploadorb\\.com\/\\w+","//a[contains(@href,'uploadorb.com/')]");
  5461. addObsoleteHost("upthe\\.net\/\\w+","//a[contains(@href,'upthe.net/')]");
  5462. addObsoleteHost("uptorch\\.com\/\\w+","//a[contains(@href,'uptorch.com/')]");
  5463. addObsoleteHost("vidbox\\.yt\/\\w+","//a[contains(@href,'vidbox.yt/')]");
  5464. addObsoleteHost("videozer\\.com\/\\w+","//a[contains(@href,'videozer.com/')]");
  5465. addObsoleteHost("vreer\\.com\/\\w+","//a[contains(@href,'vreer.com/')]");
  5466. addObsoleteHost("wallobit\\.com\/\\w+","//a[contains(@href,'wallobit.com/')]");
  5467. addObsoleteHost("zooupload\\.com\/\\w+","//a[contains(@href,'zooupload.com/')]");
  5468. addObsoleteHost("xerver\\.co\/\\w+","//a[contains(@href,'xerver.co/')]");
  5469. addObsoleteHost("privatefiles\\.com\/\\w+","//a[contains(@href,'privatefiles.com/')]");
  5470. addObsoleteHost("bitshare\\.com\/\\w+","//a[contains(@href,'bitshare.com/')]");
  5471. addObsoleteHost("asfile\\.com\/\\w+","//a[contains(@href,'asfile.com/')]");
  5472. addObsoleteHost("billionuploads\\.com\/\\w+","//a[contains(@href,'billionuploads.com/')]");
  5473. addObsoleteHost("\\*{7,100}\/[\\w\\d]+","//a[contains(@href,'*******/')]");
  5474. addObsoleteHost("filesaur\\.com\/\\w+","//a[contains(@href,'filesaur.com/')]");
  5475. addObsoleteHost("rapidshare\\.com\/\\w+","//a[contains(@href,'rapidshare.com/')]");
  5476. addObsoleteHost("rapidshare\\.ru\/\\w+","//a[contains(@href,'rapidshare.ru/')]");
  5477. addObsoleteHost("filesfrog\\.net\/\\w+","//a[contains(@href,'filesfrog.net/')]");
  5478. addObsoleteHost("4savefile\\.com\/\\w+","//a[contains(@href,'4savefile.com/')]");
  5479. addObsoleteHost("bayfiles\\.com\/\\w+","//a[contains(@href,'bayfiles.com/')]");
  5480. addObsoleteHost("bayfiles\\.net\/\\w+","//a[contains(@href,'bayfiles.net/')]");
  5481. addObsoleteHost("dodane\\.pl\/\\w+","//a[contains(@href,'dodane.pl/')]");
  5482. addObsoleteHost("dotsemper\\.com\/\\w+","//a[contains(@href,'dotsemper.com/')]");
  5483. addObsoleteHost("egofiles\\.com\/\\w+","//a[contains(@href,'egofiles.com/')]");
  5484. addObsoleteHost("epicshare\\.net\/\\w+","//a[contains(@href,'epicshare.net/')]");
  5485. addObsoleteHost("fiberupload\\.net\/\\w+","//a[contains(@href,'fiberupload.net/')]");
  5486. addObsoleteHost("filemonkey\\.in\/\\w+","//a[contains(@href,'filemonkey.in/')]");
  5487. addObsoleteHost("filemonster\\.net\/\\w+","//a[contains(@href,'filemonster.net/')]");
  5488. addObsoleteHost("filepom\\.com\/\\w+","//a[contains(@href,'filepom.com/')]");
  5489. addObsoleteHost("filesbb\\.com\/\\w+","//a[contains(@href,'filesbb.com/')]");
  5490. addObsoleteHost("fileshareup\\.com\/\\w+","//a[contains(@href,'fileshareup.com/')]");
  5491. addObsoleteHost("filevice\\.com\/\\w+","//a[contains(@href,'filevice.com/')]");
  5492. addObsoleteHost("gigaup\\.fr\/\\w+","//a[contains(@href,'gigaup.fr/')]");
  5493. // addObsoleteHost("inafile\\.com\/\\w+","//a[contains(@href,'inafile.com/')]");
  5494. addObsoleteHost("isavelink\\.com\/\\w+","//a[contains(@href,'isavelink.com/')]");
  5495. addObsoleteHost("loombo\\.com\/\\w+","//a[contains(@href,'loombo.com/')]");
  5496. addObsoleteHost("megafiles\\.se\/\\w+","//a[contains(@href,'megafiles.se/')]");
  5497. addObsoleteHost("migupload\\.com\/\\w+","//a[contains(@href,'migupload.com/')]");
  5498. addObsoleteHost("mydisc\\.net\/\\w+","//a[contains(@href,'mydisc.net/')]");
  5499. addObsoleteHost("nitrobits\\.com\/\\w+","//a[contains(@href,'nitrobits.com/')]");
  5500. addObsoleteHost("potload\\.com\/\\w+","//a[contains(@href,'potload.com/')]");
  5501. addObsoleteHost("redload\\.net\/\\w+","//a[contains(@href,'redload.net/')]");
  5502. addObsoleteHost("shareprofi\\.com\/\\w+","//a[contains(@href,'shareprofi.com/')]");
  5503. addObsoleteHost("sharesuper\\.info\/\\w+","//a[contains(@href,'sharesuper.info/')]");
  5504. addObsoleteHost("sinhro\\.net\/\\w+","//a[contains(@href,'sinhro.net/')]");
  5505. addObsoleteHost("speedfile\\.cz\/\\w+","//a[contains(@href,'speedfile.cz/')]");
  5506. addObsoleteHost("speedshare\\.org\/\\w+","//a[contains(@href,'speedshare.org/')]");
  5507. addObsoleteHost("storage.novoro\\.net\/\\w+","//a[contains(@href,'storage.novoro.net/')]");
  5508. addObsoleteHost("swankshare\\.com\/\\w+","//a[contains(@href,'swankshare.com/')]");
  5509. addObsoleteHost("swatupload\\.com\/\\w+","//a[contains(@href,'swatupload.com/')]");
  5510. addObsoleteHost("upafile\\.com\/\\w+","//a[contains(@href,'upafile.com/')]");
  5511. addObsoleteHost("uploadmachine\\.com\/\\w+","//a[contains(@href,'uploadmachine.com/')]");
  5512. addObsoleteHost("uploadsat\\.com\/\\w+","//a[contains(@href,'uploadsat.com/')]");
  5513. addObsoleteHost("upshared\\.com\/\\w+","//a[contains(@href,'upshared.com/')]");
  5514. addObsoleteHost("usefile\\.com\/\\w+","//a[contains(@href,'usefile.com/')]");
  5515. addObsoleteHost("yourfiles\\.to\/\\w+","//a[contains(@href,'yourfiles.to/')]");
  5516. addObsoleteHost("zomgupload\\.com\/\\w+","//a[contains(@href,'zomgupload.com/')]");
  5517. addObsoleteHost("~[\\w\\s~]*","//a[contains(@href,'//~') or contains(@href,'//www.~')]");
  5518. addObsoleteHost("filemup\\.com\/\\w+","//a[contains(@href,'filemup.com/')]");
  5519. addObsoleteHost("tuxfile\\.com\/\\w+","//a[contains(@href,'tuxfile.com/')]");
  5520. addObsoleteHost("ultramegabit\\.com\/\\w+","//a[contains(@href,'ultramegabit.com/')]");
  5521. addObsoleteHost("uploadto\\.us\/\\w+","//a[contains(@href,'uploadto.us/')]");
  5522. addObsoleteHost("filecore\\.co\\.nz\/\\w+","//a[contains(@href,'filecore.co.nz/')]");
  5523. addObsoleteHost("fileshare\\.in\\.ua\/\\w+","//a[contains(@href,'fileshare.in.ua/')]");
  5524. addObsoleteHost("firedrive\\.com\/\\w+","//a[contains(@href,'firedrive.com/')]");
  5525. addObsoleteHost("putlocker\\.com\/\\w+","//a[contains(@href,'putlocker.com/')]");
  5526. addObsoleteHost("lumfile\\.com\/\\w+","//a[contains(@href,'lumfile.com/')]");
  5527. addObsoleteHost("lumfile\\.se\/\\w+","//a[contains(@href,'lumfile.se/')]");
  5528. addObsoleteHost("lumfile\\.eu\/\\w+","//a[contains(@href,'lumfile.eu/')]");
  5529. addObsoleteHost("shared\\.com\/\\w+","//a[contains(@href,'shared.com/')]");
  5530. addObsoleteHost("stahovadlo\\.cz\/\\w+","//a[contains(@href,'stahovadlo.cz/')]");
  5531. addObsoleteHost("dizzcloud\\.com\/\\w+","//a[contains(@href,'dizzcloud.com/')]");
  5532. addObsoleteHost("ddlstorage\\.com\/\\w+","//a[contains(@href,'ddlstorage.com/')]");
  5533. addObsoleteHost("dataport\\.cz\/\\w+","//a[contains(@href,'dataport.cz/')]");
  5534. addObsoleteHost("daj\\.to\/\\w+","//a[contains(@href,'daj.to/')]");
  5535. addObsoleteHost("sockshare\\.com\/\\w+","//a[contains(@href,'sockshare.com/')]");
  5536. addObsoleteHost("2drive\\.net\/\\w+","//a[contains(@href,'2drive.net/')]");
  5537. addObsoleteHost("bl\\.st\/\\w+","//a[contains(@href,'bl.st/')]");
  5538. addObsoleteHost("uncapped-downloads\\.com\/\\w+","//a[contains(@href,'uncapped-downloads.com/')]");
  5539. addObsoleteHost("freakshare\\.net\/\\w+","//a[contains(@href,'freakshare.net/')]");
  5540. addObsoleteHost("freakshare\\.com\/\\w+","//a[contains(@href,'freakshare.com/')]");
  5541. addObsoleteHost("sharebeast\\.com\/\\w+","//a[contains(@href,'sharebeast.com/')]");
  5542. addObsoleteHost("tufiles\\.ru\/\\w+","//a[contains(@href,'tufiles.ru/')]");
  5543. addObsoleteHost("crisshare\\.com\/\\w+","//a[contains(@href,'crisshare.com/')]");
  5544. addObsoleteHost("ryushare\\.com\/\\w+","//a[contains(@href,'ryushare.com/')]");
  5545. addObsoleteHost("kingfiles\\.net\/\\w+","//a[contains(@href,'kingfiles.net/')]");
  5546. // obsolete start
  5547. }
  5548. //obsolete file hosts init end
  5549.  
  5550. function addFileHost(linkRegex, isAliveRegex, isDeadRegex, isUnavaRegex, xpathEx, tryLoop, ispremRegex)
  5551. {
  5552. var host = new Array(7);
  5553. host[0] = linkRegex;
  5554. host[1] = isAliveRegex;
  5555. host[2] = isDeadRegex;
  5556. host[3] = isUnavaRegex;
  5557. host[6] = ispremRegex;
  5558. host[4] = xpathEx;
  5559. tryLoop ? host[5] = true : host[5] = false;
  5560. http_file_hosts.push(host);
  5561. }
  5562. if (GM_getValue("Check_megafileupload_dot_com_links", false))
  5563. {
  5564. addFileHost(
  5565. "megafileupload\.com\/..\/file\/",
  5566. 'downloadbtn',
  5567. 'is not found',
  5568. 'optional--',
  5569. "//a[contains(@href,'megafileupload.com')]");
  5570. }
  5571. if (GM_getValue("Check_demo_dot_ovh_dot_eu_links", false))
  5572. {
  5573. addFileHost(
  5574. "demo\\.ovh\\.eu\/\\w+\/\\w+",
  5575. 'download\\.gif"',
  5576. 'p_point">',
  5577. 'optional--',
  5578. "//a[contains(@href,'demo.ovh.eu')]");
  5579. }
  5580. if (GM_getValue("Check_xkeepfile_dot_com_links", false))
  5581. {
  5582. addFileHost(
  5583. "xkeepfile\.com\/\\w+",
  5584. 'File has been found|Click here to download',
  5585. 'File cannot be found|class="error">',
  5586. 'optional--',
  5587. //'optional--',
  5588. "//a[contains(@href,'xkeepfile.com/') or contains(@href,'Gamesena.com/')]");
  5589. }
  5590. if (GM_getValue("Check_safelinking_dot_net_links", false))
  5591. {
  5592. addFileHost(
  5593. "safelinking\\.net\/p\/\\w+",
  5594. 'color:green;"',
  5595. 'color:(?:red|orange);"',
  5596. 'color:(?:grey|brown);"',
  5597. "//a[contains(@href,'safelinking.net/p/')]",
  5598. true);
  5599. }
  5600. /* if (GM_getValue("Check_ultramegabit_dot_com_links", false))
  5601. {
  5602. addFileHost(
  5603. "ultramegabit\\.com\/file\/details\/[\\w+-]",
  5604. 'name="recaptcha_response',
  5605. '="/folder/add"|>File (?:not found|restricted|has been deleted)|<title>ULTRAMEGABIT</title>',
  5606. 'btn-large btn-danger">|Account limitation notice|502 Bad Gateway',
  5607. "//a[contains(@href,'ultramegabit.com/file')]",
  5608. true);
  5609. } */
  5610. if (GM_getValue("Check_fastshare_dot_cz_links", false))
  5611. {
  5612. addFileHost(
  5613. "fastshare\\.cz\/\\d+\/\\w*",
  5614. 'dwntable">',
  5615. 'nebyla nalezena|nebola nájdená|nie została odnaleziona|color:red;font-weight:bold;border\\-style:dashed|<i class="fa fa-copyright"></i>',
  5616. 'optional--',
  5617. "//a[contains(@href,'fastshare.cz')]");
  5618. }
  5619. if (GM_getValue("Check_fastshare_dot_org_links", false))
  5620. {
  5621. addFileHost(
  5622. "[fF]ast[sS]hare\\.org\/download",
  5623. 'Download ">',
  5624. 'Diese Datei wurde wegen|wurde kein Dateiname',
  5625. 'optional--',
  5626. "//a[contains(@href,'fastshare.org/download') or contains(@href,'FastShare.org/download')]");
  5627. }
  5628. if (GM_getValue("Check_partage_dash_facile_dot_com_links", false))
  5629. {
  5630. addFileHost(
  5631. "partage-facile\.com\/\\w+",
  5632. 'class="title"><strong>|colspan="2"',
  5633. 'Page introuvable|class="alert-message',
  5634. 'optional--',
  5635. "//a[contains(@href,'partage-facile.com')]");
  5636. }
  5637. if (GM_getValue("Check_rapidgator_dot_net_links", false))
  5638. {
  5639. addFileHost(
  5640. "rapidgator\\.net\/file\/\\w+",
  5641. '/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',
  5642. 'Error 404|File not found|Error 500|Файл не найден|ファイルが探せませんでした|Fichier non trouvé|Archivo no encontrado|Select your plan',
  5643. 'optional--',
  5644. "//a[contains(@href,'rapidgator.net/file')]",
  5645. true
  5646. );
  5647. }
  5648. if (GM_getValue("Check_relink_dot_us_links", false))
  5649. {
  5650. addFileHost(
  5651. "relink\\.us\/(?:f\/\\w+|go\\.php\\?id=\\d+|view\\.php\\?id=\\d+)",
  5652. 'online_detail\\.png" alt="Status',
  5653. '(?:offline|partially)_detail\\.png" alt="Status|File deleted',
  5654. 'unknown_detail\\.png" alt="Status',
  5655. "//a[contains(@href,'relink.us/')]"
  5656. );
  5657. }
  5658. if (GM_getValue("Check_uploadstube_dot_de_links", false))
  5659. {
  5660. addFileHost(
  5661. "uploadstube\\.de\/download\\.php\\?file=\\d+",
  5662. 'div id="dl"',
  5663. 'Sie haben den Link falsch',
  5664. 'optional--',
  5665. "//a[contains(@href,'uploadstube.de/download.php?file=')]"
  5666. );
  5667. }
  5668. if (GM_getValue("Check_flyfiles_dot_net_links", false))
  5669. {
  5670. addFileHost(
  5671. "flyfiles\\.net\/\\w+",
  5672. 'download_button"|"Download file"',
  5673. 'File not found!|Файл не найден',
  5674. 'optional--',
  5675. "//a[contains(@href,'flyfiles.net/')]"
  5676. );
  5677. }
  5678. if (GM_getValue("Check_wikiupload_dot_com_links", false))
  5679. {
  5680. addFileHost(
  5681. "wikiupload\\.com\/\\w+",
  5682. 'download-button">',
  5683. 'Sorry, File not found',
  5684. 'optional--',
  5685. "//a[contains(@href,'wikiupload.com/')]"
  5686. );
  5687. }
  5688. if (GM_getValue("Check_hostuje_dot_net_links", false))
  5689. {
  5690. addFileHost(
  5691. "hostuje\\.net\/file\\.php\\?id=\\w+",
  5692. 'file\\.php">|Pobierz Plik',
  5693. 'Podany plik nie zosta',
  5694. 'optional--',
  5695. "//a[contains(@href,'hostuje.net/file')]"
  5696. );
  5697. }
  5698. if (GM_getValue("Check_gettyfile_dot_ru_links", false))
  5699. {
  5700. addFileHost(
  5701. "gettyfile\\.ru\/\\d+",
  5702. 'download\\.gif border',
  5703. '<center><font size="3">',
  5704. 'optional--',
  5705. "//a[contains(@href,'gettyfile.ru/')]"
  5706. );
  5707. }
  5708. if (GM_getValue("Check_turbobit_dot_ru_links", false))
  5709. {
  5710. addFileHost(
  5711. "(?:turbob1t|failoobmenik|filesmail|firebit|dlbit|files\\.china\\-gsm|3aka4aem|file\\.piratski|mnogofiles|links-free|turbo-bit|turbosfiles)\\.\\w+\/\\w+",
  5712. 'download\\-file">',
  5713. 'col-1">\\s*<h1>',
  5714. 'optional--',
  5715. "//a[contains(@href,'turbobit.ru/') or contains(@href,'filesmail.ru/') or contains(@href,'failoobmenik.ru/')"+
  5716. " or contains(@href,'firebit.in/') or contains(@href,'dlbit.net/') or contains(@href,'files.china-gsm.ru/') or contains(@href,'3aka4aem.ru/')"+
  5717. " or contains(@href,'file.piratski.ru/') or contains(@href,'mnogofiles.com/') or contains(@href,'links-free.ru/')"+
  5718. " or contains(@href,'turbo-bit.ru/') or contains(@href,'turbosfiles.ru/')]"
  5719. );
  5720. }
  5721. if (GM_getValue("Check_data_dot_hu_links", false))
  5722. {
  5723. addFileHost(
  5724. "data\\.hu\/get\/\\d+\/",
  5725. 'download_box_button',
  5726. 'missing\\.php',
  5727. 'optional--',
  5728. "//a[contains(@href,'data.hu/get')]",
  5729. true
  5730. );
  5731. }
  5732. if (GM_getValue("Check_filesmelt_dot_com_links", false))
  5733. {
  5734. addFileHost(
  5735. "filesmelt\\.com\/dl\/\\w+",
  5736. '(Your download is ready|Download File)',
  5737. 'Sorry, but your',
  5738. 'optional--',
  5739. "//a[contains(@href,'filesmelt.com/dl')]"
  5740. );
  5741. }
  5742. if (GM_getValue("Check_indowebster_dot_com_links", false))
  5743. {
  5744. addFileHost(
  5745. "(?:files\\.)?indowebster\\.com\/download\/\\w+\/",
  5746. 'premiumBtn"',
  5747. 'errorMessage"',
  5748. 'optional--',
  5749. "//a[contains(@href,'indowebster.com/download')]"
  5750. );
  5751. }
  5752. if (GM_getValue("Check_superload_dot_cz_links", false))
  5753. {
  5754. addFileHost(
  5755. "superload\\.cz\/dl\/\\w+",
  5756. 'icon-download">',
  5757. 'soubor nebyl nalezen',
  5758. 'optional--',
  5759. "//a[contains(@href,'superload.cz/dl')]"
  5760. );
  5761. }
  5762. if (GM_getValue("Check_hulkfile_dot_eu_links", false))
  5763. {
  5764. addFileHost(
  5765. "(?:w\\.hulkfile\\.com|hulkfile\\.eu)\/\\w+",
  5766. 'op" value="download',
  5767. 'class="err">|width:500px;text-align:left;">',
  5768. 'optional--',
  5769. "//a[contains(@href,'hulkfile.')]"
  5770. );
  5771. }
  5772. if (GM_getValue("Check_easybytez_dot_com_links", false))
  5773. {
  5774. addFileHost(
  5775. "easybytez\\.com\/\\w+",
  5776. 'op" value="download',
  5777. 'stop_error\\.gif',
  5778. 'optional--',
  5779. "//a[contains(@href,'easybytez.com/')]"
  5780. );
  5781. }
  5782. if (GM_getValue("Check_filestore_dot_com_dot_ua_links", false))
  5783. {
  5784. addFileHost(
  5785. "filestore\\.com\\.ua\/\\?d=\\w+",
  5786. 'tdrow1>',
  5787. 'class=warn',
  5788. 'optional--',
  5789. "//a[contains(@href,'filestore.com.ua/?d=')]"
  5790. );
  5791. }
  5792. if (GM_getValue("Check_netkups_dot_com_links", false))
  5793. {
  5794. addFileHost(
  5795. "netkups\\.com\/\\?d=\\w+",
  5796. 'submit">Continue',
  5797. 'page">File not found|deleted due to inactivity',
  5798. 'optional--',
  5799. "//a[contains(@href,'netkups.com/?d=')]"
  5800. );
  5801. }
  5802. if (GM_getValue("Check_openfile_dot_ru_links", false))
  5803. {
  5804. addFileHost(
  5805. "openfile\\.ru\/(?:video\/|)\\d+",
  5806. 'videobox_left">',
  5807. 'blog_title">|not found on this server',
  5808. 'optional--',
  5809. "//a[contains(@href,'openfile.ru/')]"
  5810. );
  5811. }
  5812. if (GM_getValue("Check_extmatrix_dot_com_links", false))
  5813. {
  5814. addFileHost(
  5815. "extmatrix\\.com\/files\/\\w+",
  5816. 'div class="success"',
  5817. 'div class="error"',
  5818. 'optional--',
  5819. "//a[contains(@href,'extmatrix.com/files')]"
  5820. );
  5821. }
  5822. if (GM_getValue("Check_sendfiles_dot_nl_links", false))
  5823. {
  5824. addFileHost(
  5825. "sendfiles\\.nl\/download.aspx\\?ID=\\w+",
  5826. 'content_lnkDownload',
  5827. 'error\\.aspx\\?',
  5828. 'optional--',
  5829. "//a[contains(@href,'sendfiles.nl/download.aspx')]"
  5830. );
  5831. }
  5832. /* if (GM_getValue("Check_sockshare_dot_com_links", false))
  5833. {
  5834. addFileHost(
  5835. "sockshare\\.com\/file\/\\w+",
  5836. 'choose_speed">',
  5837. 'message t_0\'>',
  5838. 'optional--',
  5839. "//a[contains(@href,'sockshare.com/file')]"
  5840. );
  5841. } */
  5842. if (GM_getValue("Check_yourfilestore_dot_com_links", false))
  5843. {
  5844. addFileHost(
  5845. "yourfilestore\\.com\/download\/\\d+\/",
  5846. 'download_data">',
  5847. 'may have been deleted|<h1>Sorry!<\/h1>',
  5848. 'optional--',
  5849. "//a[contains(@href,'yourfilestore.com/download')]"
  5850. );
  5851. }
  5852. if (GM_getValue("Check_nekaka_dot_com_links", false))
  5853. {
  5854. addFileHost(
  5855. "nekaka\\.com\/d\/[\\w-]+",
  5856. 'downloadForm">',
  5857. 'invalid file link',
  5858. 'optional--',
  5859. "//a[contains(@href,'nekaka.com/d')]"
  5860. );
  5861. }
  5862. if (GM_getValue("Check_filebig_dot_net_links", false))
  5863. {
  5864. addFileHost(
  5865. "filebig\\.net\/files\/\\w+",
  5866. 'downloadFile">',
  5867. '<p>File not found<\/p>',
  5868. 'optional--',
  5869. "//a[contains(@href,'filebig.net/files')]"
  5870. );
  5871. }
  5872. if (GM_getValue("Check_gamefront_dot_com_links", false))
  5873. {
  5874. addFileHost(
  5875. "files\\.filefront\\.com\/\/;\\d+;;",
  5876. 'downloadLink">',
  5877. 'File not found, you',
  5878. 'optional--',
  5879. "//a[contains(@href,'files.filefront.com')]"
  5880. );
  5881.  
  5882. addFileHost(
  5883. "gamefront\\.com\/files\/\\d+",
  5884. 'downloadLink">',
  5885. 'File not found, you',
  5886. 'optional--',
  5887. "//a[contains(@href,'gamefront.com/files')]"
  5888. );
  5889. }
  5890. if (GM_getValue("Check_hyperfileshare_dot_com_links", false))
  5891. {
  5892. addFileHost(
  5893. "(?:download\\.|)hyperfileshare\\.com\/(?:download\\.php\\?code=|d\/)\\w+",
  5894. 'dnlLnk"',
  5895. 'already been deleted',
  5896. 'optional--',
  5897. "//a[contains(@href,'hyperfileshare.com/download') or contains(@href,'hyperfileshare.com/d')]"
  5898. );
  5899. }
  5900. if (GM_getValue("Check_hellupload_dot_com_links", false))
  5901. {
  5902. addFileHost(
  5903. "hellupload\\.com\/\\w+",
  5904. '<h3>Download File<br',
  5905. 'id="podstrona">|AVOID_IE_BUG',
  5906. 'optional--',
  5907. "//a[contains(@href,'hellupload.com/')]"
  5908. );
  5909. }
  5910. if (GM_getValue("Check_free_dash_uploading_dot_com_links", false))
  5911. {
  5912. addFileHost(
  5913. "free\\-uploading\\.com\/\\w+",
  5914. 'op" value="download',
  5915. 'class="err">|width:500px;text-align:left;">',
  5916. 'optional--',
  5917. "//a[contains(@href,'free-uploading.com/')]"
  5918. );
  5919. }
  5920. if (GM_getValue("Check_fileape_dot_com_links", false))
  5921. {
  5922. addFileHost(
  5923. "fileape\\.com\/download\\-",
  5924. 'button_dl\\.png',
  5925. 'does not exist\\.',
  5926. 'optional--',
  5927. "//a[contains(@href,'fileape.com/')]"
  5928. );
  5929. }
  5930. if (GM_getValue("Check_uppit_dot_com_links", false))
  5931. {
  5932. addFileHost(
  5933. "(?:uppit\\.com|up\\.ht)\/\\w+",
  5934. 'op" value="download',
  5935. 'class="err">|style="width:500px;text-align:left;"|fish-404\\.png"',
  5936. 'optional--',
  5937. "//a[contains(@href,'up.ht/') or contains(@href,'uppit.com/')]",
  5938. true
  5939. );
  5940. }
  5941. if (GM_getValue("Check_nosupload_dot_com_links", false))
  5942. {
  5943. addFileHost(
  5944. "nosupload\\.com\/(?:\\?d=)?\\w+",
  5945. 'op" value="download',
  5946. '>File Not Found<',
  5947. 'optional--',
  5948. "//a[contains(@href,'nosupload.com')]",
  5949. true
  5950. );
  5951. }
  5952. if (GM_getValue("Check_filesin_dot_com_links", false))
  5953. {
  5954. addFileHost(
  5955. "filesin\\.com\/\\w+\/download\\.html",
  5956. 'download_area">',
  5957. 'error_note">',
  5958. 'optional--',
  5959. "//a[contains(@href,'filesin.com/')]",
  5960. true
  5961. );
  5962. }
  5963. if (GM_getValue("Check_nowdownload_dot_ch_links", false))
  5964. {
  5965. addFileHost(
  5966. "nowdownload\\.ch\/dl\/\\w+",
  5967. 'alert-success"',
  5968. 'This file does not exist!',
  5969. 'The file is being transfered',
  5970. "//a[contains(@href,'nowdownload.ch/dl')]"
  5971. );
  5972. }
  5973. if (GM_getValue("Check_axifile_dot_com_links", false))
  5974. {
  5975. addFileHost(
  5976. "axifile\\.com(?:\/\w(2))?\/\\??\\w+",
  5977. 'Dbutton_big"',
  5978. 'download\\-error\\.php',
  5979. 'optional--',
  5980. "//a[contains(@href,'axifile.com/')]"
  5981. );
  5982. }
  5983. if (GM_getValue("Check_hulkshare_dot_com_links", false))
  5984. {
  5985. addFileHost(
  5986. "hulkshare\.com\/\\w+",
  5987. 'download\.sam\.png|This is a private file|id="filename',
  5988. 'File does not exist|fingerprint protected copyright',
  5989. 'optional--',
  5990. "//a[contains(@href,'hulkshare.com')]"
  5991. );
  5992. }
  5993. if (GM_getValue("Check_turbobit_dot_net_links", false)) //folders
  5994. {
  5995. addFileHost(
  5996. "turbobit\\.(?:net|pl)\/download\/folder\/\\d+",
  5997. 'col-1">\\s*<s',
  5998. 'col-1">\\s*<h',
  5999. 'optional--',
  6000. "//a[contains(@href,'turbobit.') and contains(@href,'download/folder')]"
  6001. );
  6002. }
  6003. if (GM_getValue("Check_turbobit_dot_net_links", false)) //folders
  6004. {
  6005. addFileHost(
  6006. "turbobit\\.(?:net|pl)",
  6007. 'id="download-gate-info',
  6008. 'afterWait()',
  6009. 'optional--',
  6010. "//a[contains(@href,'turbobit.net')]"
  6011. );
  6012. }
  6013. if (GM_getValue("Check_hitfile_dot_net_links", false)) //folders
  6014. {
  6015. addFileHost(
  6016. "hitfile\\.net\/download\/folder\/\\d+",
  6017. 'content">\\s*<s',
  6018. 'content">\\s*<h',
  6019. 'optional--',
  6020. "//a[contains(@href,'hitfile.net/download/folder')]"
  6021. );
  6022. }
  6023. if (GM_getValue("Check_netload_dot_in_links", false)) //folders
  6024. {
  6025. addFileHost(
  6026. "netload\\.in\/folder\\.php\\?folder_id=\\w+",
  6027. 'images\/online\\.gif',
  6028. 'InPage_Error"',
  6029. 'optional--',
  6030. "//a[contains(@href,'netload.in/folder.php')]"
  6031. );
  6032. }
  6033. if (GM_getValue("Check_movshare_dot_net_links", false))
  6034. {
  6035. addFileHost(
  6036. "movshare\\.net\\/video\\/\\w+",
  6037. 'optional--"',
  6038. 'no longer exists',
  6039. 'optional--',
  6040. "//a[contains(@href,'movshare.net/video')]"
  6041. );
  6042. }
  6043. if (GM_getValue("Check_plunder_dot_com_links", false))
  6044. {
  6045. addFileHost(
  6046. "plunder\.com\/\\w+",
  6047. 'x\/download\\.gif',
  6048. '404 - File or directory not found.',
  6049. 'optional--',
  6050. "//a[contains(@href,'plunder.com')]"
  6051. );
  6052. }
  6053. if (GM_getValue("Check_mafiastorage_dot_com_links", false))
  6054. {
  6055. addFileHost(
  6056. "mafiastorage\\.com\/\\w+",
  6057. 'op" value="download',
  6058. 'class="err">|style="width:500px;text-align:left;"',
  6059. 'optional--',
  6060. "//a[contains(@href,'mafiastorage.com/')]"
  6061. );
  6062. }
  6063. if (GM_getValue("Check_uploadspace_dot_pl_links", false))
  6064. {
  6065. addFileHost(
  6066. "uploadspace\.pl\/plik\\w+",
  6067. 'Downloading .+? \\|',
  6068. 'Downloading a file',
  6069. 'optional--',
  6070. "//a[contains(@href,'uploadspace.pl/plik')]"
  6071. );
  6072. }
  6073. if (GM_getValue("Check_uploadingit_dot_com_links", false))
  6074. {
  6075. addFileHost(
  6076. "uploadingit\\.com\/file\/\\w+",
  6077. 'downloadTitle">',
  6078. 'deleteContent">',
  6079. 'optional--',
  6080. "//a[contains(@href,'uploadingit.com/file')]"
  6081. );
  6082. }
  6083. if (GM_getValue("Check_rghost_dot_net_links", false))
  6084. {
  6085. addFileHost(
  6086. "rghost\.(?:net|ru)\/(?:|private\/)\\d+",
  6087. 'download_link|btn large download',
  6088. 'file is restricted|File is deleted|503 Service Unavailable',
  6089. 'File was deleted',
  6090. "//a[contains(@href,'rghost.')]"
  6091. );
  6092. }
  6093. if (GM_getValue("Check_xdisk_dot_cz_links", false))
  6094. {
  6095. addFileHost(
  6096. "xdisk\\.cz\/(?:..\/)?download\\.php\\?id=\\w+",
  6097. '">Staženo:\\s*<\/span>',
  6098. 'Soubor, který hledáte nenalezen',
  6099. 'optional--',
  6100. "//a[contains(@href,'xdisk.cz/')]"
  6101. );
  6102. }
  6103. if (GM_getValue("Check_expressleech_dot_com_links", false))
  6104. {
  6105. addFileHost(
  6106. "expressleech\.com\/\\w+",
  6107. 'src="/img/Download.gif"|var _gaq =',
  6108. 'var rr =|403 Forbidden',
  6109. 'optional--',
  6110. "//a[contains(@href,'expressleech.com')]");
  6111. }
  6112. if (GM_getValue("Check_2downloadz_dot_com_links", false))
  6113. {
  6114. addFileHost(
  6115. "2downloadz\.com\/\\w+",
  6116. 'color="#848484|src="images/Download.png"|color:#238DCA',
  6117. 'color="#006DCC|File error',
  6118. 'optional--',
  6119. "//a[contains(@href,'2downloadz.com')]");
  6120. }
  6121. if (GM_getValue("Check_mightyupload_dot_com_links", false))
  6122. {
  6123. addFileHost(
  6124. "mightyupload\.com\/\\w+",
  6125. 'background:#ccc;text-align|CONTENT="Download File"',
  6126. 'style="background:#eee|var rr =|File Not Found',
  6127. 'error-code">1010',
  6128. "//a[contains(@href,'mightyupload.com')]");
  6129. }
  6130. if (GM_getValue("Check_k2s_dot_cc_links", false))
  6131. {
  6132. addFileHost(
  6133. "k2s\.cc\/file\/\\w+",
  6134. 'Click here for slow download with|class="btn" id="yw0"|onclick="download',
  6135. 'Error 404|class="errorSummary">|this file is blocked or deleted|>404 Not Found<|To avoid damaged files|This file is no longer available',
  6136. 'please try later',
  6137. "//a[contains(@href,'k2s.cc')]");
  6138. }
  6139. if (GM_getValue("Check_keep2share_dot_cc_links", false))
  6140. {
  6141. addFileHost(
  6142. "keep2share\.cc\/file\/\\w+",
  6143. 'Click here for slow download with|class="btn" id="yw0"|onclick="download',
  6144. 'Error 404|class="errorSummary">|this file is blocked or deleted|>404 Not Found<|To avoid damaged files|This file is no longer available',
  6145. 'please try later',
  6146. //'premium only',
  6147. "//a[contains(@href,'keep2share.cc')]");
  6148. }
  6149. if (GM_getValue("Check_keep2s_dot_cc_links", false))
  6150. {
  6151. addFileHost(
  6152. "keep2s\.cc\/file\/\\w+",
  6153. 'Click here for slow download with|class="btn" id="yw0"|onclick="download',
  6154. 'Error 404|class="errorSummary">|this file is blocked or deleted|>404 Not Found<|To avoid damaged files|This file is no longer available',
  6155. 'please try later',
  6156. //'optional--',
  6157. "//a[contains(@href,'keep2s.cc')]");
  6158. }
  6159. if (GM_getValue("Check_keep2share_dot_com_links", false))
  6160. {
  6161. addFileHost(
  6162. "keep2share\.com\/file\/\\w+",
  6163. 'Click here for slow download with|class="btn" id="yw0"|onclick="download',
  6164. 'Error 404|class="errorSummary">|this file is blocked or deleted|>404 Not Found<|To avoid damaged files|This file is no longer available',
  6165. 'please try later',
  6166. //'optional--',
  6167. "//a[contains(@href,'keep2share.com')]");
  6168. }
  6169. if (GM_getValue("Check_anysend_dot_com_links", false))
  6170. {
  6171. addFileHost(
  6172. "anysend\.com\/\\w+",
  6173. 'var openCalled=false;|content="noindex"',
  6174. '_trackPageview',
  6175. 'optional--',
  6176. "//a[contains(@href,'anysend.com')]");
  6177. }
  6178. if (GM_getValue("Check_datafile_dot_com_links", false))
  6179. {
  6180. addFileHost(
  6181. "datafile\.com\/\\w+",
  6182. 'var captchaPanel',
  6183. 'ErrorCode|ErrorCode 0: Invalid Link|btn-orange" href="#"', //class="error-msg"
  6184. 'You are downloading another file at this moment|You exceeded your free|Site Maintenance',
  6185. //'optional--',
  6186. "//a[contains(@href,'datafile.com')]",
  6187. true);
  6188. }
  6189. if (GM_getValue("Check_upstore_dot_net_links", false))
  6190. {
  6191. addFileHost(
  6192. "upstore\.net\/\\w+",
  6193. 'style="margin-top: 20px">|style="text-align:center; margin: 20px 0 100px;">',
  6194. 'File not found|onload="redirect|class="error">',
  6195. 'optional--',
  6196. "//a[contains(@href,'upstore.net')]");
  6197. }
  6198. if (GM_getValue("Check_upsto_dot_re_links", false))
  6199. {
  6200. addFileHost(
  6201. "upsto\.re\/\\w+",
  6202. 'style="margin-top: 20px">|style="text-align:center; margin: 20px 0 100px;">',
  6203. 'File not found|onload="redirect|class="error">',
  6204. 'optional--',
  6205. "//a[contains(@href,'upsto.re')]");
  6206. }
  6207. if (GM_getValue("Check_speedy_dot_sh_links", false))
  6208. {
  6209. addFileHost(
  6210. "speedy\.sh\/\\w+",
  6211. 'bgcolor=#eeeeee|class="addthis',
  6212. 'File not found|downloadfilenamenotfound>',
  6213. 'optional--',
  6214. "//a[contains(@href,'speedy.sh')]");
  6215. }
  6216. if (GM_getValue("Check_sanshare_dot_com_links", false))
  6217. {
  6218. addFileHost(
  6219. "sanshare\.com\/\\w+",
  6220. 'SANSHARE_TOPBANNER|offset-1"><h3><b>Download File',
  6221. 'offset-1"><b>File Not Found<|width:500px;text-align',
  6222. 'optional--',
  6223. "//a[contains(@href,'sanshare.com')]");
  6224. }
  6225. /* if (GM_getValue("Check_kingfiles_dot_net_links", false))
  6226. {
  6227. addFileHost(
  6228. "kingfiles\.net\/\\w+",
  6229. 'img/spriteBanner.png|If you are the owner of this file',
  6230. 'var rr =|"description" CONTENT="Download File ">|<div style="width:500px;text-align:left;">|The file was removed by administrator',
  6231. 'optional--',
  6232. "//a[contains(@href,'kingfiles.net')]");
  6233. } */
  6234. if (GM_getValue("Check_uploadhero_dot_co_links", false))
  6235. {
  6236. addFileHost(
  6237. "uploadhero\\.co\/dl\/\\w+",
  6238. 'class="nom_de_fichier"|Unlimited downloads|Estimated download time|Lien de téléchargement"',
  6239. 'not available on our server|pas disponible sur nos serveurs|Le lien du fichier est incorrect',
  6240. 'optional--',
  6241. "//a[contains(@href,'uploadhero.co/dl')]"
  6242. );
  6243. }
  6244. if (GM_getValue("Check_secureupload_dot_eu_links", false))
  6245. {
  6246. addFileHost(
  6247. "secureupload\\.eu\/\\w+",
  6248. 'Downloading',
  6249. 'cannot be found|File Not Found|could not be found',
  6250. 'optional--',
  6251. "//a[contains(@href,'secureupload.eu')]"
  6252. );
  6253. }
  6254. if (GM_getValue("Check_ge_dot_tt_links", false))
  6255. {
  6256. addFileHost(
  6257. "ge\.tt\/\\w+",
  6258. 'downloads pic',
  6259. 'is NOT the same as',
  6260. 'optional--',
  6261. "//a[contains(@href,'ge.tt')]");
  6262. }
  6263. if (GM_getValue("Check_filefactory_dot_com_links", false))
  6264. {
  6265. addFileHost(
  6266. "filefactory\.com\/\\w+",
  6267. 'div id="file_holder"|download.css',
  6268. 'File Removed|Invalid Download Link|File Unavailable|Server Failed|Datei entfernt|This file has been removed|Invalid Download Link|class="alert alert-danger">',
  6269. 'Server Maintenance|temporarily overloaded',
  6270. //'optional--',
  6271. "//a[contains(@href,'filefactory.com')]");
  6272. }
  6273. if (GM_getValue("Check_filesflash_dot_net_links", false))
  6274. {
  6275. addFileHost(
  6276. "filesflash\.net\/\\w+",
  6277. 'align:right">Filename:',
  6278. 'class="msg">',
  6279. 'optional--',
  6280. "//a[contains(@href,'filesflash.net')]");
  6281. }
  6282. if (GM_getValue("Check_rapidgator_dot_net_links", false)) //folders
  6283. {
  6284. addFileHost(
  6285. "rapidgator\\.net\/folder\/\\w+",
  6286. 'href="/folder/',
  6287. 'class="empty|Folder not found|Carpeta no encontrada|Dossier non trouvé|Папка не найдена',
  6288. 'optional--',
  6289. "//a[contains(@href,'rapidgator.net/folder')]",
  6290. true
  6291. );
  6292. }
  6293. if (GM_getValue("Check_salefiles_dot_com_links", false))
  6294. {
  6295. addFileHost(
  6296. "salefiles\.com\/\\w+",
  6297. '<Title>Download|CONTENT="Download',
  6298. 'font:15px Arial|background:#eee;',
  6299. 'optional--',
  6300. "//a[contains(@href,'salefiles.com')]");
  6301. }
  6302. if (GM_getValue("Check_megairon_dot_net_links", false))
  6303. {
  6304. addFileHost(
  6305. "megairon\.net\/\\w+",
  6306. 'border: 5px #ffeb90 solid;',
  6307. 'CONTENT="Download File ">|var rr =',
  6308. 'optional--',
  6309. "//a[contains(@href,'megairon.net')]");
  6310. }
  6311. if (GM_getValue("Check_datoid_dot_cz_links", false))
  6312. {
  6313. addFileHost(
  6314. "datoid\.cz\/\\w+",
  6315. 'btn-download|class="icon-download-large"',
  6316. 'Stránka nenalezena|error-404|Soubor byl zablokován',
  6317. 'optional--',
  6318. "//a[contains(@href,'datoid.cz')]");
  6319. }
  6320. if (GM_getValue("Check_stiahni_dot_si_links", false))
  6321. {
  6322. addFileHost(
  6323. "stiahni\.si\/\\w+",
  6324. 'report_icon.png"|slow-download-button',
  6325. 'none.png|deleted|<h2>Error 500</h2>',
  6326. 'optional--',
  6327. "//a[contains(@href,'stiahni.si')]");
  6328. }
  6329. if (GM_getValue("Check_cloudstor_dot_es_links", false))
  6330. {
  6331. addFileHost(
  6332. "cloudstor\.es\/\\w+",
  6333. '"btn_download"',
  6334. '404: Page Not Found',
  6335. 'optional--',
  6336. "//a[contains(@href,'cloudstor.es')]");
  6337. }
  6338. if (GM_getValue("Check_streamfile_dot_com_links", false))
  6339. {
  6340. addFileHost(
  6341. "streamfile\.com\/\\w+",
  6342. 'class="btn',
  6343. 'class="green-btn',
  6344. 'optional--',
  6345. "//a[contains(@href,'streamfile.com')]");
  6346. }
  6347. if (GM_getValue("Check_eyesfile_dot_ca_links", false))
  6348. {
  6349. addFileHost(
  6350. "eyesfile\.ca\/\\w+",
  6351. 'value="Get Link',
  6352. 'var rr =',
  6353. 'optional--',
  6354. "//a[contains(@href,'eyesfile.ca')]");
  6355. }
  6356. if (GM_getValue("Check_filemoney_dot_com_links", false))
  6357. {
  6358. addFileHost(
  6359. "filemoney\.com\/\\w+",
  6360. 'og:title',
  6361. '404 Not Found|<Title>FileMoney|File Not Found|class="err">DMCA</b>',
  6362. 'error-code">1010',
  6363. "//a[contains(@href,'filemoney.com')]");
  6364. }
  6365. if (GM_getValue("Check_uploadboy_dot_com_links", false))
  6366. {
  6367. addFileHost(
  6368. "uploadboy\.com\/\\w+",
  6369. 'width="740">|method_free',
  6370. 'var rr =|background:#ffffff|not be found|file was removed',
  6371. 'optional--',
  6372. "//a[contains(@href,'uploadboy.com')]");
  6373. }
  6374. if (GM_getValue("Check_speedshare_dot_eu_links", false))
  6375. {
  6376. addFileHost(
  6377. "speedshare\.eu\/\\w+",
  6378. 'favicon.png|color:#3d87c0|cross.png"',
  6379. 'var rr =|File Not Found|style="background:#eee',
  6380. 'optional--',
  6381. "//a[contains(@href,'speedshare.eu')]");
  6382. }
  6383. if (GM_getValue("Check_unlimitzone_dot_com_links", false))
  6384. {
  6385. addFileHost(
  6386. "unlimitzone\.com\/\\w+",
  6387. 'name="method_free',
  6388. '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',
  6389. 'optional--',
  6390. "//a[contains(@href,'unlimitzone.com')]");
  6391. }
  6392. if (GM_getValue("Check_rioupload_dot_com_links", false))
  6393. {
  6394. addFileHost(
  6395. "rioupload\.com\/\\w+",
  6396. 'sell.jpg',
  6397. 'var rr =',
  6398. 'optional--',
  6399. "//a[contains(@href,'rioupload.com')]");
  6400. }
  6401. if (GM_getValue("Check_rg_dot_to_links", false))
  6402. {
  6403. addFileHost(
  6404. "rg\.to\/\\w+",
  6405. '/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',
  6406. 'Error 404|File not found|Select your plan',
  6407. 'optional--',
  6408. //'optional--',
  6409. "//a[contains(@href,'rg.to')]");
  6410. }
  6411. if (GM_getValue("Check_jumbofiles_dot_org_links", false))
  6412. {
  6413. addFileHost(
  6414. "jumbofiles\.org\/\\w+",
  6415. 'H71C5.png|class="downloadtitle">',
  6416. 'var swfu|ViewSourceBIN.png',
  6417. 'optional--',
  6418. "//a[contains(@href,'jumbofiles.org')]");
  6419. }
  6420. if (GM_getValue("Check_fshare_dot_vn_links", false))
  6421. {
  6422. addFileHost(
  6423. "fshare\\.vn\/file\/\\w+",
  6424. 'action="#download"|left; width: 330px;">|class="bt_down"',
  6425. 'không tồn tại|class="color_red m_t_50"',
  6426. 'optional--',
  6427. "//a[contains(@href,'fshare.vn/file')]",
  6428. true
  6429. );
  6430. }
  6431. if (GM_getValue("Check_spaceforfiles_dot_com_links", false))
  6432. {
  6433. addFileHost(
  6434. "spaceforfiles\.com\/\\w+",
  6435. 'btn_slowspeed_b.jpg|value="download1|class="btn_blue',
  6436. 'var rr =|AVOID_IE_BUG',
  6437. 'optional--',
  6438. "//a[contains(@href,'spaceforfiles.com')]");
  6439. }
  6440. if (GM_getValue("Check_google_dot_com_links", false))
  6441. {
  6442. addFileHost(
  6443. "google\\.com\/file\/\\w+",
  6444. 'content="!">|color:#2d2d2d',
  6445. '12pt; font-weight:|class="errorMessage"|F0F6FF',
  6446. 'optional--',
  6447. "//a[contains(@href,'google.com/file')]",
  6448. true
  6449. );
  6450. }
  6451. if (GM_getValue("Check_google_dot_com_links", false))
  6452. {
  6453. addFileHost(
  6454. "docs.google.com\/\\w+",
  6455. 'content="!">|color:#2d2d2d',
  6456. '12pt; font-weight:|class="errorMessage"|F0F6FF|Error 404',
  6457. 'optional--',
  6458. "//a[contains(@href,'docs.google.com')]",
  6459. true
  6460. );
  6461. }
  6462. if (GM_getValue("Check_google_dot_com_links", false))
  6463. {
  6464. addFileHost(
  6465. "drive.google.com\/\\w+",
  6466. 'content="!">|color:#2d2d2d|id="uc-download-link',
  6467. '12pt; font-weight:|class="errorMessage"|F0F6FF|Error 404',
  6468. 'optional--',
  6469. "//a[contains(@href,'drive.google.com')]",
  6470. true
  6471. );
  6472. }
  6473. if (GM_getValue("Check_up_dot_media1fire_dot_com_links", false))
  6474. {
  6475. addFileHost(
  6476. "up.media1fire\.com\/\\w+",
  6477. 'class="addthis_|value="download',
  6478. 'var rr =|AVOID_IE_BUG|<div style="width:500px;text-align:left;">',
  6479. 'optional--',
  6480. "//a[contains(@href,'up.media1fire.com')]");
  6481. }
  6482. if (GM_getValue("Check_depfile_dot_com_links", false))
  6483. {
  6484. addFileHost(
  6485. "depfile\.com\/\\w+",
  6486. 'logo_0.png|downloads.gif"|verifycode',
  6487. 'border-color: #5D729B;|bgcolor="#778AAF"|deleted by the owner|Invalid Link',
  6488. 'optional--',
  6489. "//a[contains(@href,'depfile.com')]");
  6490. }
  6491. if (GM_getValue("Check_go4up_dot_com_links", false))
  6492. {
  6493. addFileHost(
  6494. "go4up\.com\/\\w+",
  6495. 'style="width: 100%;">|value="Access|download_line',
  6496. '<title>GO4UP|dmca',
  6497. 'optional--',
  6498. "//a[contains(@href,'go4up.com')]");
  6499. }
  6500. if (GM_getValue("Check_redbunker_dot_net_links", false))
  6501. {
  6502. addFileHost(
  6503. "redbunker\.net\/\\w+",
  6504. 'dload.png|rowspan="3">|yep.gif',
  6505. 'CONTENT="RedBunker|#D3D3D3;|color:#d33|AVOID_IE_BUG',
  6506. 'optional--',
  6507. "//a[contains(@href,'redbunker.net')]");
  6508. }
  6509. if (GM_getValue("Check_divxpress_dot_com_links", false))
  6510. {
  6511. addFileHost(
  6512. "divxpress\.com\/\\w+",
  6513. 'btn_download|logo.png"',
  6514. 'AVOID_IE_BUG|var rr =',
  6515. 'optional--',
  6516. "//a[contains(@href,'divxpress.com')]");
  6517. }
  6518. if (GM_getValue("Check_anafile_dot_com_links", false))
  6519. {
  6520. addFileHost(
  6521. "anafile\.com\/\\w+",
  6522. 'width="881" valign="top|color="#800080"',
  6523. 'style="width:500px;text-align:left;">|file was deleted|AVOID_IE_BUG',
  6524. 'optional--',
  6525. "//a[contains(@href,'anafile.com')]");
  6526. }
  6527. if (GM_getValue("Check_uploadable_dot_ch_links", false))
  6528. {
  6529. addFileHost(
  6530. "uploadable\\.ch\/file\/\\w+",
  6531. 'captcha.js"|payment.js"|class="btn_download"',
  6532. '<div class="icon_err">|<div class="errorBox">|"error_arrow">',
  6533. 'optional--',
  6534. "//a[contains(@href,'uploadable.ch/file')]",
  6535. true
  6536. );
  6537. }
  6538. if (GM_getValue("Check_arabloads_dot_net_links", false))
  6539. {
  6540. addFileHost(
  6541. "arabloads\.net\/\\w+",
  6542. 'name="method_free"|name="method_premium"',
  6543. 'background:#eee;font:15px Arial;">|AVOID_IE_BUG|Verdana;padding:3px;">Error|Not Found',
  6544. 'optional--',
  6545. "//a[contains(@href,'arabloads.net')]");
  6546. }
  6547. if (GM_getValue("Check_sharerepo_dot_com_links", false))
  6548. {
  6549. addFileHost(
  6550. "sharerepo\.com\/\\w+",
  6551. 'name="method_free"',
  6552. 'var public_on=|The file you were looking for could not be found',
  6553. 'optional--',
  6554. "//a[contains(@href,'sharerepo.com')]");
  6555. }
  6556. if (GM_getValue("Check_sfshare_dot_se_links", false))
  6557. {
  6558. addFileHost(
  6559. "sfshare\.se\/\\w+",
  6560. 'id="btn_download"|class="btn btn-primary txt-bold" value="',
  6561. 'AVOID_IE_BUG|var rr =|style="width:500px;text-align:left;">|Reason for deletion|The file was removed',
  6562. 'optional--',
  6563. "//a[contains(@href,'sfshare.se')]");
  6564. }
  6565. if (GM_getValue("Check_files_dot_fm_links", false))
  6566. {
  6567. addFileHost(
  6568. "files\.fm\/\\w+",
  6569. 'dl.png"|background-color: transparent',
  6570. 'margin: 40px 40px|background: none;',
  6571. 'optional--',
  6572. "//a[contains(@href,'files.fm')]");
  6573. }
  6574. if (GM_getValue("Check_koofile_dot_com_links", false))
  6575. {
  6576. addFileHost(
  6577. "koofile\.com\/\\w+",
  6578. 'value="download1">|name="method_free"',
  6579. 'class="overview-content c_text-box ">|style="padding-top:3px;">|class="rt1 c">',
  6580. 'optional--',
  6581. "//a[contains(@href,'koofile.com')]");
  6582. }
  6583. if (GM_getValue("Check_vidxden_dot_com_links", false))
  6584. {
  6585. addFileHost(
  6586. "vidxden\\.com\/\\w+",
  6587. 'Continue to Video"',
  6588. 'No such file',
  6589. 'optional--',
  6590. "//a[contains(@href,'vidxden.com')]"
  6591. );
  6592. }
  6593. if (GM_getValue("Check_muchshare_dot_net_links", false))
  6594. {
  6595. addFileHost(
  6596. "muchshare\\.net\/\\w+",
  6597. 'id="btn_download"',
  6598. 'File Not Found|width: 500px; text-align: left;',
  6599. 'optional--',
  6600. "//a[contains(@href,'muchshare.net')]"
  6601. );
  6602. }
  6603. if (GM_getValue("Check_daten_dash_hoster_dot_de_links", false))
  6604. {
  6605. addFileHost(
  6606. "(?:daten-hoster\\.de\/file\/\\w+|filehosting\\.org\/file\/\\w+|xtraupload\\.de\/\\?d=\\w+)",
  6607. 'Details zur Datei|Details page',
  6608. 'Jetzt hochladen|upload now',
  6609. 'optional--',
  6610. "//a[contains(@href,'daten-hoster.de/file') or contains(@href,'filehosting.org/file') or contains(@href,'xtraupload.de')]"
  6611. );
  6612. }
  6613. if (GM_getValue("Check_upload_dash_il_dot_net_links", false))
  6614. {
  6615. addFileHost(
  6616. "(?:upload-il|przeslij)\.net\/(?:en|he|ar|ru|)\/?\\w+",
  6617. 'downloadbtn"',
  6618. 'DL_FileNotFound',
  6619. 'optional--',
  6620. "//a[contains(@href,'upload-il.net') or contains(@href,'przeslij.net')]"
  6621. );
  6622. }
  6623. if (GM_getValue("Check_fileflyer_dot_com_links", false))
  6624. {
  6625. addFileHost(
  6626. "fileflyer\.com\/view\/\\w+",
  6627. '(?:dwl|locked)btn"',
  6628. 'error.gif"|link">Removed|removedlink">',
  6629. 'optional--',
  6630. "//a[contains(@href,'fileflyer.com')]"
  6631. );
  6632. }
  6633. if (GM_getValue("Check_filestore_dot_to_links", false))
  6634. {
  6635. addFileHost(
  6636. "filestore\.to\/\\?d=\\w+",
  6637. '"downloading"',
  6638. 'Datei wurde nicht gefunden',
  6639. 'optional--',
  6640. "//a[contains(@href,'filestore.to')]"
  6641. );
  6642. }
  6643. if (GM_getValue("Check_easy_dash_share_dot_com_links", false))
  6644. {
  6645. addFileHost(
  6646. "(?:w\\d*\.|)(?:crocko|easy-share)\\.com\/.",
  6647. 'fz24">Download|class="pl15">',
  6648. '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',
  6649. 'optional--',
  6650. "//a[contains(@href,'easy-share.com') or contains(@href,'crocko.com')]"
  6651. );
  6652. }
  6653. if (GM_getValue("Check_burnupload_dot_com_links", false))
  6654. {
  6655. addFileHost(
  6656. "burnupload\\.(?:com\/\\?d=|ihiphop\\.com\/download\\.php\\?id=)\\w+",
  6657. 'File size:',
  6658. 'file is not found',
  6659. 'optional--',
  6660. "//a[contains(@href,'burnupload.com') or contains(@href,'burnupload.ihiphop.com')]"
  6661. );
  6662. }
  6663. if (GM_getValue("Check_datei_dot_to_links", false))
  6664. {
  6665. addFileHost(
  6666. "datei\\.to\/\\??\\w+",
  6667. 'icon_downloaden\\.png|>Download starten<',
  6668. 'Datei wurde nicht gefunden|icon_deleted.png',
  6669. 'optional--',
  6670. "//a[contains(@href,'datei.to')]"
  6671. );
  6672. }
  6673. if (GM_getValue("Check_yunfile_dot_com_links", false))
  6674. {
  6675. addFileHost(
  6676. "(?:yunfile|filemarkets)\\.com\/\\w+",
  6677. '<body class="body" id="body">|value="Slow Download"',
  6678. '<body class="body" >',
  6679. 'optional--',
  6680. "//a[contains(@href,'yunfile.com') or contains(@href,'filemarkets.com')]"
  6681. );
  6682. }
  6683. /* if (GM_getValue("Check_putlocker_dot_com_links", false))
  6684. {
  6685. addFileHost(
  6686. "putlocker\\.com\/file\/\\w{16}",
  6687. 'as Free User|<a class="continue"|Continue to file|#feedback_btn|application file_standalone',
  6688. 'Welcome to PutLocker|<div class="sad_face_image">|404:',
  6689. 'undergoing scheduled maintenance',
  6690. "//a[contains(@href,'putlocker.com/file')]"
  6691. );
  6692. } */
  6693. if (GM_getValue("Check_uploadhero_dot_com_links", false))
  6694. {
  6695. addFileHost(
  6696. "uploadhero\\.com\/dl\/\\w+",
  6697. 'content-dl">',
  6698. 'men_file_lost\\.jpg"',
  6699. 'optional--',
  6700. "//a[contains(@href,'uploadhero.com/dl')]"
  6701. );
  6702. }
  6703. if (GM_getValue("Check_unibytes_dot_com_links", false))
  6704. {
  6705. addFileHost(
  6706. "unibytes\\.com\/[\\w\.]+",
  6707. 'trying to download|пытаетесь загрузить файл|tes entrain de tlcharger',
  6708. 'File not found|Файл не найден|',
  6709. 'optional--',
  6710. "//a[contains(@href,'unibytes.com')]"
  6711. );
  6712. }
  6713. if (GM_getValue("Check_hellshare_dot_com_links", false)) //very old type of links
  6714. {
  6715. addFileHost(
  6716. "www\\.hellshare\\.com\/\\d+",
  6717. 'tab\\-details"',
  6718. 'list-purp-2"|not found on this server',
  6719. 'optional--',
  6720. "//a[contains(@href,'www.hellshare.com')]"
  6721. );
  6722. }
  6723. if (GM_getValue("Check_quickshare_dot_cz_links", false)) //folders
  6724. {
  6725. addFileHost(
  6726. "quickshare\\.cz\/slozka-\\d+",
  6727. 'Počet souborů: <strong>[1-9]',
  6728. 'Počet souborů: <strong>0|Chyba! Taková složka neexistuje',
  6729. 'optional--',
  6730. "//a[contains(@href,'quickshare.cz/slozka')]"
  6731. );
  6732. }
  6733. if (GM_getValue("Check_filefactory_dot_com_links", false)) //folders
  6734. {
  6735. addFileHost(
  6736. "filefactory\\.com\/f\/\\w+",
  6737. 'folderFileList">',
  6738. 'table class="items"|Pointer" class="red">',
  6739. 'optional--',
  6740. "//a[contains(@href,'filefactory.com/f/')]"
  6741. );
  6742. }
  6743. if (GM_getValue("Check_netload_dot_in_links", false)) //folders
  6744. {
  6745. addFileHost(
  6746. "netfolder\\.in\/\\w+",
  6747. 'list" value="http',
  6748. 'InPage_Error">|list" value=""',
  6749. 'optional--',
  6750. "//a[contains(@href,'netfolder.in')]"
  6751. );
  6752. }
  6753. if (GM_getValue("Check_load_dot_to_links", false))
  6754. {
  6755. addFileHost(
  6756. '(?:www\\.|\\/)load\\.to\\/(?:\\w{10}\\/.|\\?d=\\w{10})',
  6757. '"download_table_left">Size',
  6758. 'Can\'t find file',
  6759. 'optional--',
  6760. "//a[contains(@href,'/load.to/') or contains(@href,'www.load.to/')]"
  6761. );
  6762. }
  6763. /* if (GM_getValue("Check_freakshare_dot_net_links", false))
  6764. {
  6765. addFileHost(
  6766. "freakshare\\.(?:net|com)\/files\/",
  6767. 'box_heading',
  6768. '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|الملف المطلوب غير موجود',
  6769. 'Your Traffic is used up for today',
  6770. "//a[(contains(@href,'freakshare.net') or contains(@href,'freakshare.com')) and contains(@href,'files')]",
  6771. true
  6772. );
  6773. //folders
  6774. addFileHost(
  6775. "freakshare\\.(?:net|com)\/folder\/",
  6776. 'Files: [1-9]',
  6777. 'Files: 0',
  6778. 'optional--',
  6779. "//a[(contains(@href,'freakshare.net') or contains(@href,'freakshare.com')) and contains(@href,'folder')]",
  6780. true
  6781. );
  6782. } */
  6783. if (GM_getValue("Check_divshare_dot_com_links", false))
  6784. {
  6785. addFileHost(
  6786. "divshare\\.com\/download\/",
  6787. 'download_new\.png',
  6788. 'have been removed',
  6789. 'optional--',
  6790. "//a[contains(@href,'divshare.com')]"
  6791. );
  6792. }
  6793. if (GM_getValue("Check_euroshare_dot_eu_links", false))
  6794. {
  6795. addFileHost(
  6796. "euroshare\\.(?:eu|pl|sk|cz|hu)\/file\/\\d+",
  6797. 'nazev-souboru">',
  6798. '<div id="obsah">\\s*<h1>',
  6799. 'optional--',
  6800. "//a[contains(@href,'euroshare.eu/file')]"
  6801. );
  6802. }
  6803. if (GM_getValue("Check_files_dot_mail_dot_ru_links", false))
  6804. {
  6805. addFileHost(
  6806. 'files\\.mail\\.ru/(?:\\w*)',
  6807. 'fileList',
  6808. 'errorMessage',
  6809. 'optional--',
  6810. "//a[contains(@href,'files.mail.ru')]"
  6811. );
  6812. }
  6813. if (GM_getValue("Check_megashares_dot_com_links", false))
  6814. {
  6815. addFileHost(
  6816. "(?:d\\d+\.|)megashares\.com\/(?:dl|index\.php\\?d|\\?d\\d+=\\w+)",
  6817. 'Filesize',
  6818. 'Invalid|deleted|Could not download file',
  6819. 'slots|scheduled maintenance',
  6820. "//a[contains(@href,'megashares.com/')]"
  6821. );
  6822. }
  6823. if (GM_getValue("Check_narod_dot_ru_links", false))
  6824. {
  6825. addFileHost(
  6826. 'narod\\.(?:yandex\\.|)ru\/disk\/',
  6827. 'b-submit',
  6828. 'b-download-virus-note|headCode">404<',
  6829. 'Внутренняя ошибка сервиса',
  6830. "//a[contains(@href,'narod.ru') or contains(@href,'narod.yandex.ru')]"
  6831. );
  6832. }
  6833. if (GM_getValue("Check_rayfile_dot_com_links", false))
  6834. {
  6835. addFileHost(
  6836. "rayfile\\.com\/",
  6837. 'FILEtitleTXT',
  6838. 'blueRow',
  6839. 'optional--',
  6840. "//a[contains(@href,'rayfile.com/') and contains(@href,'files')]"
  6841. );
  6842. }
  6843. if (GM_getValue("Check_filesmonster_dot_com_links", false))
  6844. {
  6845. addFileHost(
  6846. "filesmonster\\.com\/download\\.php\\?id=\\w+",
  6847. 'button_green_body"',
  6848. 'error">',
  6849. 'optional--',
  6850. "//a[contains(@href,'filesmonster.com/download')]"
  6851. );
  6852. }
  6853. if (GM_getValue("Check_usaupload_dot_net_links", false))
  6854. {
  6855. addFileHost(
  6856. 'usaupload\\.net\/d\/(?:\w*)',
  6857. '<strong>File size:</strong>',
  6858. 'is not available',
  6859. 'optional--',
  6860. "//a[contains(@href,'usaupload.net/d/')]"
  6861. );
  6862. }
  6863. if (GM_getValue("Check_sendspace_dot_com_links", false))
  6864. {
  6865. addFileHost(
  6866. 'sendspace\\.com\/file\/\\w+',
  6867. 'file_description',
  6868. 'msg error"',
  6869. 'optional--',
  6870. "//a[contains(@href,'sendspace.com/file')]"
  6871. );
  6872. }
  6873. if (GM_getValue("Check_sendspace_dot_pl_links", false))
  6874. {
  6875. addFileHost(
  6876. 'sendspace\\.pl\/file\/\\w+',
  6877. 'download_file"',
  6878. 'Podany plik nie',
  6879. 'optional--',
  6880. "//a[contains(@href,'sendspace.pl/file')]"
  6881. );
  6882. }
  6883. if (GM_getValue("Check_uploading_dot_com_links", false))
  6884. {
  6885. addFileHost(
  6886. 'uploading\\.com\/(?:files\/)?\\w+',
  6887. 'free_method">',
  6888. 'file_error">|error_404">|file not found|OOPS! Looks like file not found',
  6889. 'optional--',
  6890. "//a[contains(@href,'uploading.com')]"
  6891. );
  6892. }
  6893. if (GM_getValue("Check_gigasize_dot_com_links", false))
  6894. {
  6895. addFileHost(
  6896. 'gigasize\\.com\/get\\.php(?:\/\\d+|\\?d=\\w+)',
  6897. 'fileId"',
  6898. 'error">',
  6899. 'optional--',
  6900. "//a[contains(@href,'gigasize.com/get')]"
  6901. );
  6902. }
  6903. if (GM_getValue("Check_good_dot_com_links", false))
  6904. {
  6905. addFileHost(
  6906. 'good\\.net\/(?:_|dl)',
  6907. 'Free Download',
  6908. 'Not Found',
  6909. 'Forbidden',
  6910. "//a[contains(@href,'good.net')]"
  6911. );
  6912. }
  6913. if (GM_getValue("Check_2shared_dot_com_links", false))
  6914. {
  6915. addFileHost(
  6916. '2shared\\.com\/(?:file|video|document|audio)\/\\w*',
  6917. 'File size',
  6918. 'File not found|is not valid|/images/important.gif',
  6919. 'optional--',
  6920. "//a[contains(@href,'2shared.com/file/') or contains (@href,'2shared.com/audio/') or contains (@href,'2shared.com/document/') or contains (@href,'2shared.com/video/')]"
  6921. );
  6922. }
  6923. if (GM_getValue("Check_turboupload_dot_com_links", false))
  6924. {
  6925. addFileHost(
  6926. 'turboupload\\.com\/\\w*',
  6927. 'You have requested',
  6928. 'File Not Found',
  6929. 'optional--',
  6930. "//a[contains(@href,'turboupload.com')]"
  6931. );
  6932. }
  6933. if (GM_getValue("Check_gigapeta_dot_com_links", false))
  6934. {
  6935. addFileHost(
  6936. 'gigapeta\\.com\/dl\/',
  6937. 'Download file|Скачать файл| Herunterzuladen|Scarica il file|Cargar el fichero|Charger le fichier',
  6938. '404|page_error',
  6939. 'optional--',
  6940. "//a[contains(@href,'gigapeta.com/dl')]"
  6941. );
  6942. }
  6943. if (GM_getValue("Check_veehd_dot_com_links", false))
  6944. {
  6945. addFileHost(
  6946. 'veehd\.com\/video\/.*?',
  6947. 'No sound|Download video',
  6948. 'Featured Videos',
  6949. 'optional--',
  6950. "//a[contains(@href,'veehd.com') and contains(@href,'video')]"
  6951. );
  6952. }
  6953. if (GM_getValue("Check_vip_dash_file_dot_com_links", false))
  6954. {
  6955. addFileHost(
  6956. '(?:u\\d+\\.)?vip-file\\.com\/download.*?\/(?:.*?)\/(?:.*?)\\.html',
  6957. 'fast_download_form">|submit_sms_download',
  6958. '<p style="text-align:center">',
  6959. 'optional--',
  6960. "//a[contains(@href,'vip-file.com/download')]"
  6961. );
  6962. }
  6963. if (GM_getValue("Check_letitbit_dot_net_links", false))
  6964. {
  6965. addFileHost(
  6966. '(?:u\\d+\\.)?letitbit\\.net\/download\/\\w+',
  6967. 'download\\-pnl ',
  6968. 'color:#000">|Запрашиваемый файл не найден|страница не существует|File not found|',
  6969. 'optional--',
  6970. "//a[contains(@href,'letitbit.net/download')]"
  6971. );
  6972. }
  6973. if (GM_getValue("Check_ifolder_dot_ru_links", false))
  6974. {
  6975. addFileHost(
  6976. 'ifolder\.ru\/\\d+',
  6977. 'file-info',
  6978. 'ui-state-error',
  6979. 'optional--',
  6980. "//a[contains(@href,'ifolder.ru')]"
  6981. );
  6982. }
  6983. if (GM_getValue("Check_fileswap_dot_com_links", false))
  6984. {
  6985. addFileHost(
  6986. 'fileswap\\.com\/dl\/\\w+',
  6987. 'bttnDownloadLink"',
  6988. 'rounded_block_error"',
  6989. 'is temporary unavailable|disponible en estos momentos|vorläufig unerreichbar|Файл временно недоступен',
  6990. "//a[contains(@href,'fileswap.com/dl')]"
  6991. );
  6992. }
  6993. if (GM_getValue("Check_filecloud_dot_io_links", false))
  6994. {
  6995. addFileHost(
  6996. '(?:s\\d+\\.)?filecloud\\.io\/\\w+',
  6997. 'var __error = 0',
  6998. 'FILES__DOESNT_EXIST|removed or did not exist',
  6999. 'optional--',
  7000. "//a[contains(@href,'filecloud.io/')]"
  7001. );
  7002. addFileHost(
  7003. 'ifile\\.it\/\\w+',
  7004. 'var __error = 0',
  7005. 'FILES__DOESNT_EXIST',
  7006. 'optional--',
  7007. "//a[contains(@href,'ifile.it/')]"
  7008. );
  7009. }
  7010. if (GM_getValue("Check_solidfiles_dot_com_links", false))
  7011. {
  7012. addFileHost(
  7013. 'solidfiles\\.com\/d\/\\w+',
  7014. 'id="download"|content="Download',
  7015. '>Not found<|<h2>404</h2>|Page not found|<h1>404</h1>|File not available|no longer available',
  7016. 'optional--',
  7017. "//a[contains(@href,'solidfiles.com/d')]"
  7018. );
  7019. }
  7020. if (GM_getValue("Check_shareflare_dot_net_links", false))
  7021. {
  7022. addFileHost(
  7023. "(?:.\\.|)shareflare\\.net",
  7024. 'download-pnl|<div class="premium-block">',
  7025. 'File not found|Поиск зеркала на фа|<div id="captcha"',
  7026. 'optional--',
  7027. "//a[contains(@href,'shareflare.net') and contains(@href,'download')]"
  7028. );
  7029. }
  7030. if (GM_getValue("Check_u18116681_dot_shareflare_dot_net_links", false))
  7031. {
  7032. addFileHost(
  7033. "u18116681.shareflare\\.net",
  7034. 'download-pnl|<div class="premium-block">',
  7035. 'File not found|Поиск зеркала на фа|<div id="captcha"',
  7036. 'optional--',
  7037. "//a[contains(@href,'shareflare.net') and contains(@href,'download')]"
  7038. );
  7039. }
  7040. if (GM_getValue("Check_uloz_dot_to_links", false))
  7041. {
  7042. addFileHost(
  7043. "(?:uloz|ulozto|bagruj|zachowajto)\\.(to|cz|sk|net|pl)\/\\w",
  7044. 'fileDownload">|fileSize">',
  7045. 'grayButton deletedFile">|Stránka nenalezena|upload-button"|jako soukromý.',
  7046. 'passwordProtectedFile">|frmaskAgeForm-disagree',
  7047. "//a[contains(@href,'bagruj.cz') or contains(@href,'uloz.to') or contains(@href,'ulozto.') or contains(@href,'zachowajto.pl')]",
  7048. true
  7049. );
  7050. }
  7051. if (GM_getValue("Check_hellspy_dot_com_links", false))
  7052. {
  7053. addFileHost(
  7054. "hellspy\.(?:com|cz|sk|hu|pl)\/\\w+",
  7055. 'file\\-list-orderby|section-filedetail">',
  7056. '<\/span><\/h2>\\s*<p>|list-purp-2">|flash info sticky">',
  7057. 'optional--',
  7058. "//a[contains(@href,'hellspy.')]"
  7059. );
  7060. }
  7061. if (GM_getValue("Check_leteckaposta_dot_cz_links", false))
  7062. {
  7063. addFileHost(
  7064. "(?:leteckaposta\\.cz|sharegadget\\.com)\/\\d+",
  7065. '<body onload="">',
  7066. 'neexistuje|not exist',
  7067. 'optional--',
  7068. "//a[contains(@href,'leteckaposta.cz') or contains(@href,'sharegadget.com')]"
  7069. );
  7070. }
  7071. if (GM_getValue("Check_stahovanizasms_dot_cz_links", false))
  7072. {
  7073. addFileHost(
  7074. "stahovanizasms\\.cz\/\\w+",
  7075. 'download\\.png>|font-size:11px><tr>',
  7076. 'smaz.n u.ivatelem|font-size:11px><\/table>',
  7077. 'optional--',
  7078. "//a[contains(@href,'stahovanizasms.cz')]"
  7079. );
  7080. }
  7081. if (GM_getValue("Check_share_dash_links_dot_biz_links", false))
  7082. {
  7083. addFileHost(
  7084. "share-links\\.biz\/\\w*",
  7085. 'online\\.gif',
  7086. '(?:offline|parts)\\.gif',
  7087. 'optional--',
  7088. "//a[contains(@href,'share-links.biz')]"
  7089. );
  7090. }
  7091. if (GM_getValue("Check_4shared_dot_com_links", false))
  7092. {
  7093. addFileHost(
  7094. "4shared\\.com\/.+\/",
  7095. '<input type="hidden" class="jsSocialTwDefaultText" value=',
  7096. 'class="warn\"|big red"|GetDataBack',
  7097. 'Service Unavailable',
  7098. "//a[contains(@href,'4shared.com')]"
  7099. );
  7100. }
  7101. if (GM_getValue("Check_zippyshare_dot_com_links", false))
  7102. {
  7103. addFileHost(
  7104. "(?:www\\d+\.|)zippyshare\.com\/",
  7105. 'download\.png|Download Now|images/download_small.png|id="dlbutton"',
  7106. 'not exist|Status 404',
  7107. 'optional--',
  7108. "//a[contains(@href,'zippyshare.com') and contains(@href,'file.html')]"
  7109. );
  7110. }
  7111. if (GM_getValue("Check_mediafire_dot_com_links", false))
  7112. {
  7113. addFileHost(
  7114. "mediafire\.com\/",
  7115. 'download_file_title|dlFileName|id="PLAY_downloadButton"',
  7116. 'error\\.php\\?|error_msg_title|<title>Simple File Sharing|No files found',
  7117. 'set to private',
  7118. "//a[contains(@href,'mediafire.com')]"
  7119. );
  7120. }
  7121. if (GM_getValue("Check_uploaded_dot_to_links", false))
  7122. {
  7123. addFileHost(
  7124. '(?:uploaded\\.(?:to|net)\/(?:.id|file|folder|f|410|404))|(?:ul\\.to\/)',
  7125. '<h2>Authentification</h2></li>| MB|1,00 GB',
  7126. 'box_red|Error: 404|Error: 410|fileList"><thead><tr><td colspan="2"><\/td><\/tr><\/thead><tbody>\\s*<tr>|<title>uploaded.net</title>',
  7127. 'optional--',
  7128. "//a[contains(@href,'uploaded.to/') or contains(@href,'uploaded.net/') or contains(@href,'ul.to/')]"
  7129. );
  7130. }
  7131. if (GM_getValue("Check_ulozisko_dot_sk_links", false))
  7132. {
  7133. addFileHost(
  7134. "ulozisko\.sk\/",
  7135. 'Detaily',
  7136. 'neexistuje',
  7137. 'optional--',
  7138. "//a[contains(@href,'ulozisko.sk')]"
  7139. );
  7140. }
  7141. if (GM_getValue("Check_upnito_dot_sk_links", false))
  7142. {
  7143. addFileHost(
  7144. "(?:dl.\\.|)upnito\\.sk\/(download|subor|file)",
  7145. 'download.php',
  7146. 'notfound|upload\\-suborov\\.php"',
  7147. 'optional--',
  7148. "//a[contains(@href,'upnito.sk')]"
  7149. );
  7150. }
  7151. if (GM_getValue("Check_uptobox_dot_com_links", false))
  7152. {
  7153. addFileHost(
  7154. "uptobox\\.com\/\\w+",
  7155. 'Create Download Link">',
  7156. '500px;text-align:left;">|File not found|Fichier introuvable',
  7157. 'Maintenance|not available in your country',
  7158. "//a[contains(@href,'uptobox.com')]"
  7159. );
  7160. }
  7161. if (GM_getValue("Check_sharecash_dot_org_links", false))
  7162. {
  7163. addFileHost(
  7164. "sharecash\\.org\/download\\.php\\?file=\\d+",
  7165. 'FILE DOWNLOAD<',
  7166. 'File Does Not Exist',
  7167. 'optional--',
  7168. "//a[contains(@href,'sharecash.org/download.php')]"
  7169. );
  7170. }
  7171. if (GM_getValue("Check_depositfiles_dot_com_links", false)) //folders
  7172. {
  7173. addFileHost(
  7174. "depositfiles\\.com\/folders\/\\w+",
  7175. '<div class="progressContainer">',
  7176. '<div id="files" class="files">\\s*<\/div>',
  7177. 'optional--',
  7178. "//a[contains(@href,'depositfiles.com/folders')]"
  7179. );
  7180. }
  7181. if (GM_getValue("Check_rapidfileshare_dot_net_links", false))
  7182. {
  7183. addFileHost(
  7184. "rapidfileshare\\.net/\\w+",
  7185. '<div id="upload-header-bg">',
  7186. '<div style="width:500px;text-align:left;">',
  7187. 'optional--',
  7188. "//a[contains(@href,'rapidfileshare.net/')]"
  7189. );
  7190. }
  7191. if (GM_getValue("Check_stiahnito_dot_sk_links", false))
  7192. {
  7193. addFileHost(
  7194. "stiahnito\\.sk/",
  7195. '<span class="filesize right">',
  7196. '<ol class="list-purp-2">',
  7197. 'optional--',
  7198. "//a[contains(@href,'stiahnito.sk/')]"
  7199. );
  7200. }
  7201. if (GM_getValue("Check_rusfolder_dot_com_links", false))
  7202. {
  7203. addFileHost(
  7204. "rusfolder\\.(?:com|net)",
  7205. '"download-step-one-form"|Название: <b>|Файлы|Файлы в папке',
  7206. '"ui-state-error ui-corner-all"|File is removed|File not found|удален',
  7207. 'optional--',
  7208. "//a[contains(@href,'rusfolder')]"
  7209. );
  7210. }
  7211. if (GM_getValue("Check_fileover_dot_net_links", false))
  7212. {
  7213. addFileHost(
  7214. "fileover\\.net/\\d+",
  7215. 'id="filesize"',
  7216. 'Not found or deleted|The following file is unavailable',
  7217. 'optional--',
  7218. "//a[contains(@href,'fileover.net/')]"
  7219. );
  7220. }
  7221. if (GM_getValue("Check_catshare_dot_net_links", false))
  7222. {
  7223. addFileHost(
  7224. "catshare\\.net/\\w+",
  7225. '"icon-share',
  7226. 'alert alert-error',
  7227. 'optional--',
  7228. "//a[contains(@href,'catshare.net/')]"
  7229. );
  7230. }
  7231. if (GM_getValue("Check_anonfiles_dot_com_links", false))
  7232. {
  7233. addFileHost(
  7234. "anonfiles\\.com/\\w+",
  7235. '"download_button"',
  7236. '<legend><b>404</b>',
  7237. 'optional--',
  7238. "//a[contains(@href,'anonfiles.com')]"
  7239. );
  7240. }
  7241. if (GM_getValue("Check_mixturecloud_dot_com_links", false))
  7242. {
  7243. addFileHost(
  7244. "mixturecloud\\.com/media/\\w+",
  7245. '"btn icon i_globe gray share_150',
  7246. '"s_cross_close"></span> 404:',
  7247. 'optional--',
  7248. "//a[contains(@href,'mixturecloud.com/media/')]"
  7249. );
  7250. }
  7251. if (GM_getValue("Check_akafile_dot_com_links", false))
  7252. {
  7253. addFileHost(
  7254. "akafile\\.com\/\\w+",
  7255. 'download1',
  7256. 'File Not Found',
  7257. 'optional--',
  7258. "//a[contains(@href,'akafile.com/')]"
  7259. );
  7260. }
  7261. if (GM_getValue("Check_creafile_dot_net_links", false))
  7262. {
  7263. addFileHost(
  7264. "creafile\\.net\/\\w+",
  7265. 'downloadblock',
  7266. 'errtitle',
  7267. 'optional--',
  7268. "//a[contains(@href,'creafile.net/')]"
  7269. );
  7270. }
  7271. if (GM_getValue("Check_hugefiles_dot_net_links", false))
  7272. {
  7273. addFileHost(
  7274. "hugefiles\\.net\/\\w+",
  7275. 'download1|class="btn-create-download" value="Create Download Link">',
  7276. 'File Not Found|No such file with this filename',
  7277. 'optional--',
  7278. "//a[contains(@href,'hugefiles.net/')]"
  7279. );
  7280. }
  7281. if (GM_getValue("Check_sendmyway_dot_com_links", false))
  7282. {
  7283. addFileHost(
  7284. "sendmyway\\.com\/\\w+",
  7285. 'id="btn_download"',
  7286. '500px;text-align:left;"|<center><h3>',
  7287. 'optional--',
  7288. "//a[contains(@href,'sendmyway.com/')]"
  7289. );
  7290. }
  7291. if (GM_getValue("Check_upload_dot_ee_links", false))
  7292. {
  7293. addFileHost(
  7294. "upload\\.ee\/\\w+",
  7295. 'onmouseout="document.dllink.src',
  7296. 'There is no such file.|File was deleted|Fail kustutati|Файл удалён|Такого файла нет',
  7297. 'optional--',
  7298. "//a[contains(@href,'upload.ee/')]"
  7299. );
  7300. }
  7301. if (GM_getValue("Check_shareplace_dot_org_links", false))
  7302. {
  7303. addFileHost(
  7304. "shareplace\\.org\/\\?\\w+",
  7305. 'Download-Link',
  7306. 'Your requested file is not found|Select file to send',
  7307. 'optional--',
  7308. "//a[contains(@href,'shareplace.org/?')]"
  7309. );
  7310. }
  7311. if (GM_getValue("Check_uploadc_dot_com_links", false))
  7312. {
  7313. addFileHost(
  7314. "uploadc\\.com\/\\w+",
  7315. 'id="prebut"',
  7316. 'File Not Found|This file has been removed due',
  7317. 'optional--',
  7318. "//a[contains(@href,'uploadc.com/')]"
  7319. );
  7320. }
  7321. if (GM_getValue("Check_remixshare_dot_com_links", false))
  7322. {
  7323. addFileHost(
  7324. "remixshare\\.com\/\\w+",
  7325. 'id="dl2"',
  7326. '<table class=\'failed\'><tr><td width=\'90%\'>|Sorry, die Datei konnte nicht gefunden werden',
  7327. 'optional--',
  7328. "//a[contains(@href,'remixshare.com/')]"
  7329. );
  7330. }
  7331. if (GM_getValue("Check_exoshare_dot_com_links", false))
  7332. {
  7333. addFileHost(
  7334. "exoshare\\.com\/download\\.php\\?uid=\\w+",
  7335. 'Last Download :',
  7336. 'img src="\\/404.jpg"',
  7337. 'optional--',
  7338. "//a[contains(@href,'exoshare.com/download.php')]"
  7339. );
  7340. }
  7341. if (GM_getValue("Check_borncash_dot_org_links", false))
  7342. {
  7343. addFileHost(
  7344. "borncash\\.org\/download\/\\?a=\\w+",
  7345. 'class="knop_1"',
  7346. '\/error\/er00',
  7347. 'optional--',
  7348. "//a[contains(@href,'borncash.org/download/')]"
  7349. );
  7350. }
  7351. if (GM_getValue("Check_vidplay_dot_net_links", false))
  7352. {
  7353. addFileHost(
  7354. "vidplay\.net\/\\w+",
  7355. 'solvemedia puzzle widget',
  7356. 'File not found|AVOID_IE_BUG',
  7357. 'optional--',
  7358. "//a[contains(@href,'vidplay.net')]");
  7359. }
  7360. if (GM_getValue("Check_storagon_dot_com_links", false))
  7361. {
  7362. addFileHost(
  7363. "storagon\.com\/\\w+",
  7364. 'class="icon-cloud-download"></i>|content="Download Options',
  7365. 'content="Download Downloads|class="error-container">|class="bigger-300 bolder">404<',
  7366. 'optional--',
  7367. "//a[contains(@href,'storagon.com')]");
  7368. }
  7369. if (GM_getValue("Check_filedais_dot_com_links", false))
  7370. {
  7371. addFileHost(
  7372. "filedais\.com\/\\w+",
  7373. 'class="btn btn-info"|name="method_free"',
  7374. 'style="width:500px;text-align:left;">|File Not Found|AVOID_IE_BUG',
  7375. 'optional--',
  7376. "//a[contains(@href,'filedais.com')]");
  7377. }
  7378. /* if (GM_getValue("Check_ryushare_dot_com_links", false))
  7379. {
  7380. addFileHost(
  7381. "ryushare\.com\/\\w+",
  7382. 'KB|MB',
  7383. '<div style="width:500px;text-align:left;">',
  7384. 'in maintenance mode|Software error:',
  7385. "//a[contains(@href,'ryushare.com')]");
  7386. } */
  7387. if (GM_getValue("Check_up_dot_4share_dot_vn_links", false))
  7388. {
  7389. addFileHost(
  7390. "up.4share\.vn\/\\w+",
  7391. '<font size="2" face="Verdana">',
  7392. 'font: 13px Tahoma; color: Brown',
  7393. 'optional--',
  7394. //'optional--',
  7395. "//a[contains(@href,'up.4share.vn')]");
  7396. }
  7397. if (GM_getValue("Check_share_dot_vnn_dot_vn_links", false))
  7398. {
  7399. addFileHost(
  7400. "share.vnn\.vn\/\\w+",
  7401. '"index,follow"|<div class="main" id="download-box">',
  7402. '<meta name="description" content="" />|<h1>Không tìm thấy file bạn yêu cầu</h1>',
  7403. 'optional--',
  7404. //'optional--',
  7405. "//a[contains(@href,'share.vnn.vn')]");
  7406. }
  7407. if (GM_getValue("Check_upfile_dot_vn_links", false))
  7408. {
  7409. addFileHost(
  7410. "upfile\.vn\/\\w+",
  7411. 'download-timer',
  7412. '<meta name="description" content="Upload files|<meta name="description" content="Error "',
  7413. 'optional--',
  7414. //'optional--',
  7415. "//a[contains(@href,'upfile.vn')]");
  7416. }
  7417. /* if (GM_getValue("Check_firedrive_dot_com_links", false))
  7418. {
  7419. addFileHost(
  7420. "firedrive\\.com\/file\/\\w{16}",
  7421. 'as Free User|<a class="continue"|Continue to file|#feedback_btn|application file_standalone',
  7422. 'Welcome to PutLocker|<div class="sad_face_image">|404:',
  7423. 'undergoing scheduled maintenance',
  7424. "//a[contains(@href,'firedrive.com/file')]"
  7425. );
  7426. } */
  7427. if (GM_getValue("Check_aisfile_dot_com_links", false))
  7428. {
  7429. addFileHost(
  7430. "aisfile\.com\/\\w+",
  7431. '<h3 style="text-align:left;">|align=right><b>Filename:',
  7432. '<div style="width:500px;text-align:left;">|File Not Found',
  7433. 'optional--',
  7434. //'optional--',
  7435. "//a[contains(@href,'aisfile.com')]");
  7436. }
  7437. if (GM_getValue("Check_usersfiles_dot_com_links", false))
  7438. {
  7439. addFileHost(
  7440. "usersfiles\.com\/\\w+",
  7441. 'class="btn btn-success|id="btn_download" class="btn"',
  7442. '<div style="width:500px;text-align:left;">|class="label label-inverse">|class="err">',
  7443. 'optional--',
  7444. //'optional--',
  7445. "//a[contains(@href,'usersfiles.com')]");
  7446. }
  7447. if (GM_getValue("Check_pan_dot_baidu_dot_com_links", false))
  7448. {
  7449. addFileHost(
  7450. "pan.baidu\.com\/\\w+",
  7451. 'target="_blank" title=|share-personal-info',
  7452. 'share_notfound.png|background:#f9f9f9',
  7453. 'optional--',
  7454. //'optional--',
  7455. "//a[contains(@href,'pan.baidu.com')]");
  7456. }
  7457. if (GM_getValue("Check_yunpan_dot_cn_links", false))
  7458. {
  7459. addFileHost(
  7460. "yunpan\.cn\/\\w+",
  7461. 'class="icon icon-download',
  7462. 'content="360|http://p5.qhimg.com/t01d1c98667df9dc6cc.jpg',
  7463. 'optional--',
  7464. //'optional--',
  7465. "//a[contains(@href,'yunpan.cn')]");
  7466. }
  7467. if (GM_getValue("Check_file_dash_upload_dot_net_links", false))
  7468. {
  7469. addFileHost(
  7470. "(?:en\\.|)file\\-upload\\.net\/download\\-\\d+\/\\w+",
  7471. 'getElementById("downbild")|style.display',
  7472. 'hochgeladene Datei nicht gefunden werden|has not been found',
  7473. 'optional--',
  7474. //'optional--',
  7475. "//a[contains(@href,'file-upload.net')]");
  7476. }
  7477. if (GM_getValue("Check_gulfup_dot_com_links", false))
  7478. {
  7479. addFileHost(
  7480. "gulfup\.com\/",
  7481. '<!-- Downlod template -->|download.gif',
  7482. '<!-- Errors template -->|class="error">|<!-- form upload -->|[ رفع الملفات ]',
  7483. 'optional--',
  7484. //'optional--',
  7485. "//a[contains(@href,'gulfup.com')]");
  7486. }
  7487. if (GM_getValue("Check_datafilehost_dot_com_links", false))
  7488. {
  7489. addFileHost(
  7490. "datafilehost\\.com\/(?:download-\\w+\\.html|d\/\\w+)",
  7491. 'dldtable">',
  7492. 'does not exist\\.',
  7493. 'optional--',
  7494. //'optional--',
  7495. "//a[contains(@href,'datafilehost.com')]");
  7496. }
  7497. if (GM_getValue("Check_box_dot_com_links", false))
  7498. {
  7499. addFileHost(
  7500. "box\.com\/\\w+",
  7501. 'download-file-btn|id="download_button',
  7502. 'BIyMin.png| <div class="error_message|link has been removed',
  7503. 'optional--',
  7504. //'optional--',
  7505. "//a[contains(@href,'app.box.com')]");
  7506. }
  7507. if (GM_getValue("Check_dropbox_dot_com_links", false))
  7508. {
  7509. addFileHost(
  7510. "dropbox\.com\/s\/\\w+",
  7511. 'default_content_download_button" class="freshbutton-blue">|content_download_button',
  7512. '>Nothing Here<|>Error (404)<',
  7513. 'title>Dropbox - 509|Error (403)|Error: 429',
  7514. "//a[contains(@href,'dropbox.com')]");
  7515. }
  7516. if (GM_getValue("Check_box_dot_net_links", false))
  7517. {
  7518. addFileHost(
  7519. "box\.net\/\\w+",
  7520. 'download-file-btn|id="download_button',
  7521. 'BIyMin.png| <div class="error_message',
  7522. 'optional--',
  7523. //'optional--',
  7524. "//a[contains(@href,'box.net')]");
  7525. }
  7526. if (GM_getValue("Check_fileband_dot_com_links", false))
  7527. {
  7528. addFileHost(
  7529. "fileband\.com\/\\w+",
  7530. 'value="download1">|name="id" value=',
  7531. '<div style="width:500px;text-align:left;">|not be found',
  7532. 'optional--',
  7533. //'optional--',
  7534. "//a[contains(@href,'fileband.com')]");
  7535. }
  7536. if (GM_getValue("Check_filedropper_dot_com_links", false))
  7537. {
  7538. addFileHost(
  7539. "filedropper\.com\/\\w+",
  7540. 'background:#ddd;|width:985px; ',
  7541. 'background-color:#FFFFFF;|margin-left: -400px;',
  7542. 'optional--',
  7543. //'optional--',
  7544. "//a[contains(@href,'filedropper.com')]");
  7545. }
  7546. if (GM_getValue("Check_tropicshare_dot_com_links", false))
  7547. {
  7548. addFileHost(
  7549. "tropicshare\\.com\/files\/\\d+",
  7550. 'MB</span>|GB</span>|KB</span>',
  7551. '>FNF<|size: </span>',
  7552. 'optional--',
  7553. //'optional--',
  7554. "//a[contains(@href,'tropicshare.com')]");
  7555. }
  7556. if (GM_getValue("Check_goldbytez_dot_com_links", false))
  7557. {
  7558. addFileHost(
  7559. "goldbytez\.com\/\\w+",
  7560. '<h2>Download</h2>|<center><h2>File: <font color="red">',
  7561. '<div style="width:500px;text-align:left;">|<h2>Error</h2>',
  7562. 'optional--',
  7563. //'optional--',
  7564. "//a[contains(@href,'goldbytez.com')]");
  7565. }
  7566. if (GM_getValue("Check_worldbytez_dot_com_links", false))
  7567. {
  7568. addFileHost(
  7569. "worldbytez\.com\/\\w+",
  7570. '<div class="download_type">',
  7571. '<div style="width:500px;text-align:left;">',
  7572. 'optional--',
  7573. //'optional--',
  7574. "//a[contains(@href,'worldbytez.com')]");
  7575. }
  7576. if (GM_getValue("Check_freefilehosting_dot_net_links", false))
  7577. {
  7578. addFileHost(
  7579. "freefilehosting\.net\/\\w+",
  7580. 'Type: cbr|Type: rar|Type: jpg|Type: mkv|Type: avi|Type: mpg|Type: mpeg|Type: zip|Type: wmvType: bmpType: gifType: mp4Type: mp3',
  7581. '175px;" value="http://www.freefilehosting.net/"|Filename: <br>',
  7582. 'optional--',
  7583. //'optional--',
  7584. "//a[contains(@href,'freefilehosting.net')]");
  7585. }
  7586. if (GM_getValue("Check_ziddu_dot_com_links", false))
  7587. {
  7588. addFileHost(
  7589. "ziddu\.com\/\\w+",
  7590. 'downloads.ziddu.com|downloadfilelinkicon',
  7591. 'errortracking.php|images/oops.png|fontfamilyverdana error',
  7592. 'optional--',
  7593. //'optional--',
  7594. "//a[contains(@href,'ziddu.com')]");
  7595. }
  7596. if (GM_getValue("Check_exclusiveloader_dot_com_links", false))
  7597. {
  7598. addFileHost(
  7599. "exclusiveloader\.com\/\\w+",
  7600. 'style="padding-top:55px; padding-bottom:65px;">|<h2>Download</h2>',
  7601. 'File Not Found|width:322px;text-align:left;" class="no_file">',
  7602. 'optional--',
  7603. //'optional--',
  7604. "//a[contains(@href,'exclusiveloader.com')]");
  7605. }
  7606. if (GM_getValue("Check_sharerapid_dot_cz_links", false))
  7607. {
  7608. addFileHost(
  7609. "sharerapid\.cz\/\\w+",
  7610. 'value="Stáhnout"|soubor" style|Stahování je povoleno pouze pro přihlášené uživatele',
  7611. 'error_div">|404 - Not Found',
  7612. 'optional--',
  7613. //'optional--',
  7614. "//a[contains(@href,'sharerapid.cz')]");
  7615. }
  7616. if (GM_getValue("Check_sdilej_dot_cz_links", false))
  7617. {
  7618. addFileHost(
  7619. "sdilej\.cz\/\\w+",
  7620. 'class="page-download"',
  7621. '<h2 class="red">|czshare.com|sponsored listings|This domain is for sale',
  7622. 'optional--',
  7623. //'optional--',
  7624. "//a[contains(@href,'sdilej.cz')]");
  7625. }
  7626. if (GM_getValue("Check_lafiles_dot_com_links", false))
  7627. {
  7628. addFileHost(
  7629. "lafiles\.com\/\\w+",
  7630. '<div id="pay_modes">',
  7631. '<b class="err"></b>',
  7632. 'optional--',
  7633. //'optional--',
  7634. "//a[contains(@href,'lafiles.com')]");
  7635. }
  7636. if (GM_getValue("Check_fboom_dot_me_links", false))
  7637. {
  7638. addFileHost(
  7639. "fboom\.me\/file\/\\w+",
  7640. 'id="download-free" href="#"',
  7641. 'class="error-v1-title">404<|File not found or deleted',
  7642. 'optional--',
  7643. //'optional--',
  7644. "//a[contains(@href,'fboom.me')]");
  7645. }
  7646. if (GM_getValue("Check_fileboom_dot_me_links", false))
  7647. {
  7648. addFileHost(
  7649. "fileboom\.me\/file\/\\w+",
  7650. 'id="download-free" href="#"',
  7651. 'class="error-v1-title">404<|File not found or deleted',
  7652. 'optional--',
  7653. //'optional--',
  7654. "//a[contains(@href,'fileboom.me')]");
  7655. }
  7656. if (GM_getValue("Check_acefile_dot_net_links", false))
  7657. {
  7658. addFileHost(
  7659. "acefile\.net\/\\w+",
  7660. 'align=right nowrap><b>',
  7661. 'File Not Found|<div style="width:322px;text-align:left;" class="no_file">',
  7662. 'optional--',
  7663. //'optional--',
  7664. "//a[contains(@href,'acefile.net')]");
  7665. }
  7666. if (GM_getValue("Check_megarapid_dot_cz_links", false))
  7667. {
  7668. addFileHost(
  7669. "megarapid\.cz\/\\w+",
  7670. 'value="Stáhnout"|soubor" style|Stahování je povoleno pouze pro přihlášené uživatele',
  7671. 'error_div">|404 - Not Found',
  7672. 'optional--',
  7673. //'optional--',
  7674. "//a[contains(@href,'megarapid.cz')]");
  7675. }
  7676. if (GM_getValue("Check_yadi_dot_sk_links", false))
  7677. {
  7678. addFileHost(
  7679. "yadi\.sk\/\\w+",
  7680. 'twitter:site|View and download',
  7681. 'error code|Nothing found',
  7682. 'optional--',
  7683. //'optional--',
  7684. "//a[contains(@href,'yadi.sk')]");
  7685. }
  7686. if (GM_getValue("Check_imdb_dot_com_links", false))
  7687. {
  7688. addFileHost(
  7689. "imdb\.com\/\\w+",
  7690. 'imdb.com',
  7691. '404 Error',
  7692. 'optional--',
  7693. "//a[contains(@href,'imdb.com')]");
  7694. }
  7695. if (GM_getValue("Check_hitfile_dot_net_links", false))
  7696. {
  7697. addFileHost(
  7698. "hitfile\.net\/\\w+",
  7699. 'class="download-file',
  7700. 'style="width:16px;height:16px;border:0;|File not found|Файл не найден. Возможно он был удален',
  7701. 'optional--',
  7702. //'optional--',
  7703. "//a[contains(@href,'hitfile.net')]");
  7704. }
  7705. /* if (GM_getValue("Check_uploadto_dot_us_links", false))
  7706. {
  7707. addFileHost(
  7708. "uploadto\\.us\/file\/details\/[\\w+-]",
  7709. 'name="recaptcha_response',
  7710. '="/folder/add"|>File (?:not found|restricted|has been deleted)|<title>UPLOADTO.US</title>',
  7711. 'btn-large btn-danger">|Account limitation notice|502 Bad Gateway',
  7712. "//a[contains(@href,'uploadto.us/file')]",
  7713. true);
  7714. } */
  7715. if (GM_getValue("Check_nitroflare_dot_com_links", true))
  7716. {
  7717. addFileHost(
  7718. "nitroflare\.com\/\\w+",
  7719. 'MB</span>|left;">1 GB<|KB</span>|left;">1.0',
  7720. 'file has been removed|id="error" style="display|Probably deleted',
  7721. 'optional--',
  7722. "//a[contains(@href,'nitroflare.com')]");
  7723. }
  7724. if (GM_getValue("Check_up_dot_top4top_dot_net_links", false))
  7725. {
  7726. addFileHost(
  7727. "up.top4top\.net\/\\w+",
  7728. 'start Downlod template',
  7729. 'start err template',
  7730. 'optional--',
  7731. "//a[contains(@href,'up.top4top.net')]");
  7732. }
  7733. if (GM_getValue("Check_filejoker_dot_net_links", false))
  7734. {
  7735. addFileHost(
  7736. "filejoker\.net\/\\w+",
  7737. 'button id="regular-download">Slow|method_free" value="1|<div id="download" class="download0">',
  7738. 'File Not Found|class="not_found|<div id="download" class="not_found">|"err">DMCA Complaint<',
  7739. 'optional--',
  7740. "//a[contains(@href,'filejoker.net')]");
  7741. }
  7742. if (GM_getValue("Check_free_dot_fr_links", false))
  7743. {
  7744. addFileHost(
  7745. "(?:dl.\\.|)free\\.fr",
  7746. 'Valider et t&eacute;l&eacute',
  7747. 'Fichier inexistant|Fichier supprim&eacute; pour raison de copyright',
  7748. 'optional--',
  7749. "//a[contains(@href,'dl.free.fr')]");
  7750. }
  7751. if (GM_getValue("Check_gboxes_dot_com_links", false))
  7752. {
  7753. addFileHost(
  7754. "gboxes\.com\/\\w+",
  7755. 'You have requested|color="red">http://www.gboxes.com',
  7756. 'File Not Found|<div style="width:500px;text-align:left;">',
  7757. 'optional--',
  7758. "//a[contains(@href,'gboxes.com')]");
  7759. }
  7760. if (GM_getValue("Check_1fichier_dot_com_links", false))
  7761. {
  7762. addFileHost(
  7763. "(?:\\w{10}\\.(?:1fichier|dl4free)\\.com\/)|(?:(?:1fichier|dl4free)\\.com\/\\?\\w{10})|(?:www\\.)?\\w{6,}\\.1fichier\\.com",
  7764. '<title>Download</title>|<br/>You must wait|submit" value="Download|Download without SSL encryption|submit" value="Télécharger|submit" value="Télécharger',
  7765. '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é',
  7766. 'optional--',
  7767. "//a[contains(@href,'1fichier') or contains(@href,'dl4free.com/')]"
  7768. );
  7769. }
  7770. if (GM_getValue("Check_led_dot_wf_links", false))
  7771. {
  7772. addFileHost(
  7773. "led\.wf\/\\w+",
  7774. 'logo_0.png|downloads.gif"|verifycode',
  7775. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  7776. 'optional--',
  7777. "//a[contains(@href,'led.wf')]");
  7778. }
  7779. if (GM_getValue("Check_lan_dot_wf_links", false))
  7780. {
  7781. addFileHost(
  7782. "lan\.wf\/\\w+",
  7783. 'logo_0.png|downloads.gif"|verifycode',
  7784. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  7785. 'optional--',
  7786. "//a[contains(@href,'lan.wf')]");
  7787. }
  7788. if (GM_getValue("Check_adlink_dot_wf_links", false))
  7789. {
  7790. addFileHost(
  7791. "adlink\.wf\/\\w+",
  7792. 'logo_0.png|downloads.gif"|verifycode',
  7793. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  7794. 'optional--',
  7795. "//a[contains(@href,'adlink.wf')]");
  7796. }
  7797. if (GM_getValue("Check_click_dot_tf_links", false))
  7798. {
  7799. addFileHost(
  7800. "click\.tf\/\\w+",
  7801. 'logo_0.png|downloads.gif"|verifycode',
  7802. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  7803. 'optional--',
  7804. "//a[contains(@href,'click.tf')]");
  7805. }
  7806. if (GM_getValue("Check_ssh_dot_tf_links", false))
  7807. {
  7808. addFileHost(
  7809. "ssh\.tf\/\\w+",
  7810. 'logo_0.png|downloads.gif"|verifycode',
  7811. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  7812. 'optional--',
  7813. "//a[contains(@href,'ssh.tf')]");
  7814. }
  7815. if (GM_getValue("Check_ssh_dot_yt_links", false))
  7816. {
  7817. addFileHost(
  7818. "ssh\.yt\/\\w+",
  7819. 'logo_0.png|downloads.gif"|verifycode',
  7820. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  7821. 'optional--',
  7822. "//a[contains(@href,'ssh.yt')]");
  7823. }
  7824. if (GM_getValue("Check_yep_dot_pm_links", false))
  7825. {
  7826. addFileHost(
  7827. "yep\.pm\/\\w+",
  7828. 'logo_0.png|downloads.gif"|verifycode',
  7829. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  7830. 'optional--',
  7831. "//a[contains(@href,'yep.pm')]");
  7832. }
  7833. if (GM_getValue("Check_kyc_dot_pm_links", false))
  7834. {
  7835. addFileHost(
  7836. "kyc\.pm\/\\w+",
  7837. 'logo_0.png|downloads.gif"|verifycode',
  7838. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  7839. 'optional--',
  7840. "//a[contains(@href,'kyc.pm')]");
  7841. }
  7842. if (GM_getValue("Check_brupload_dot_net_links", false))
  7843. {
  7844. addFileHost(
  7845. "brupload\.net\/\\w+",
  7846. 'Download Gratuito',
  7847. '<div style="width:500px;text-align:left;">',
  7848. 'optional--',
  7849. //'optional--',
  7850. "//a[contains(@href,'brupload.net')]");
  7851. }
  7852. if (GM_getValue("Check_cloudzilla_dot_to_links", false))
  7853. {
  7854. addFileHost(
  7855. "cloudzilla\.to\/\\w+",
  7856. 'btn1" id="free_download|onclick="freeDownload|id="pwd_protected">',
  7857. 'File not found|/imgs/broken.png',
  7858. 'optional--',
  7859. //'optional--',
  7860. "//a[contains(@href,'cloudzilla.to')]");
  7861. }
  7862. if (GM_getValue("Check_fileparadox_dot_in_links", false))
  7863. {
  7864. addFileHost(
  7865. "fileparadox\.in\/\\w+",
  7866. 'CONTENT="Download File|method_free_file',
  7867. '>File Not Found<|id="no_filedownload">|FILE NOT FOUND|The file does not exist',
  7868. 'optional--',
  7869. //'optional--',
  7870. "//a[contains(@href,'fileparadox.in')or contains(@href,'3files.net/')]");
  7871. }
  7872. if (GM_getValue("Check_clicknupload_dot_com_links", false))
  7873. {
  7874. addFileHost(
  7875. "clicknupload\.com\/\\w+",
  7876. 'name="method_free',
  7877. 'File Not Found',
  7878. 'optional--',
  7879. //'optional--',
  7880. "//a[contains(@href,'clicknupload.com')]");
  7881. }
  7882. if (GM_getValue("Check_ex_dash_load_dot_com_links", false))
  7883. {
  7884. addFileHost(
  7885. "ex-load\.com\/\\w+",
  7886. 'name="method_free|<p>Download File:</p>',
  7887. 'Folder Not Found|File Not Found|Error 404',
  7888. 'optional--',
  7889. //'optional--',
  7890. "//a[contains(@href,'ex-load.com')]");
  7891. }
  7892. if (GM_getValue("Check_hexupload_dot_com_links", false))
  7893. {
  7894. addFileHost(
  7895. "hexupload\.com\/\\w+",
  7896. 'button" value="Free|type="submit" value=""',
  7897. 'File Not Found|<div style="width:500px;text-align:left;">',
  7898. 'optional--',
  7899. //'optional--',
  7900. "//a[contains(@href,'hexupload.com')]");
  7901. }
  7902. if (GM_getValue("Check_wizupload_dot_com_links", false))
  7903. {
  7904. addFileHost(
  7905. "wizupload\.com\/\\w+",
  7906. 'btn_download|class="downloadbtn"',
  7907. '>File Not Found<',
  7908. 'optional--',
  7909. //'optional--',
  7910. "//a[contains(@href,'wizupload.com')]");
  7911. }
  7912. if (GM_getValue("Check_filecloud_dot_cc_links", false))
  7913. {
  7914. addFileHost(
  7915. "filecloud\.cc\/\\w+",
  7916. 'align="center"><input type="submit" name=',
  7917. 'File Not Found|<Title>FileCloud - Premium Hosting Service<',
  7918. 'optional--',
  7919. //'optional--',
  7920. "//a[contains(@href,'filecloud.cc')]");
  7921. }
  7922. if (GM_getValue("Check_inclouddrive_dot_com_links", false))
  7923. {
  7924. addFileHost(
  7925. "inclouddrive\.com\/\\w+",
  7926. 'initfreedownload',
  7927. '<title>Content Unavailable|The file you are trying to download is no longer available',
  7928. 'optional--',
  7929. //'optional--',
  7930. "//a[contains(@href,'inclouddrive.com')]");
  7931. }
  7932. if (GM_getValue("Check_radicalshare_dot_com_links", false))
  7933. {
  7934. addFileHost(
  7935. "radicalshare\.com\/\\w+",
  7936. 'value="download1|name="method_free"',
  7937. 'File Not Found<|<div style="width:500px;text-align:left;">',
  7938. 'optional--',
  7939. //'optional--',
  7940. "//a[contains(@href,'radicalshare.com')]");
  7941. }
  7942. if (GM_getValue("Check_sharemods_dot_com_links", false))
  7943. {
  7944. addFileHost(
  7945. "sharemods\.com\/\\w+",
  7946. 'name="method_free"',
  7947. 'File Not Found<',
  7948. 'optional--',
  7949. //'optional--',
  7950. "//a[contains(@href,'sharemods.com')]");
  7951. }
  7952. if (GM_getValue("Check_hostr_dot_co_links", false))
  7953. {
  7954. addFileHost(
  7955. "hostr\.co\/\\w+",
  7956. 'method="get"',
  7957. 'File not found<|error-page',
  7958. 'optional--',
  7959. //'optional--',
  7960. "//a[contains(@href,'hostr.co')]");
  7961. }
  7962. if (GM_getValue("Check_filepi_dot_com_links", false))
  7963. {
  7964. addFileHost(
  7965. "filepi\.com\/\\w+",
  7966. 'id="button_start">',
  7967. 'File not found',
  7968. 'optional--',
  7969. //'optional--',
  7970. "//a[contains(@href,'filepi.com')]");
  7971. }
  7972. if (GM_getValue("Check_tikfile_dot_com_links", false))
  7973. {
  7974. addFileHost(
  7975. "tikfile\.com\/\\w+",
  7976. 'btn_download',
  7977. 'File Not Found|file was removed|Reason for deletion',
  7978. 'optional--',
  7979. //'optional--',
  7980. "//a[contains(@href,'tikfile.com')]");
  7981. }
  7982. if (GM_getValue("Check_cloudsix_dot_me_links", false))
  7983. {
  7984. addFileHost(
  7985. "cloudsix\.me\/\\w+",
  7986. 'name="method_free"',
  7987. 'File Not Found|width:500px;text-align:left;">',
  7988. 'optional--',
  7989. //'optional--',
  7990. "//a[contains(@href,'cloudsix.me')]");
  7991. }
  7992. if (GM_getValue("Check_neodrive_dot_co_links", false))
  7993. {
  7994. addFileHost(
  7995. "neodrive\.co\/\\w+",
  7996. 'btn1" id="free_download|onclick="freeDownload|id="pwd_protected">',
  7997. 'File not found|/imgs/broken.png',
  7998. 'optional--',
  7999. //'optional--',
  8000. "//a[contains(@href,'neodrive.co')]");
  8001. }
  8002. if (GM_getValue("Check_chayfile_dot_com_links", false))
  8003. {
  8004. addFileHost(
  8005. "chayfile\.com\/\\w+",
  8006. 'name="method_free"',
  8007. 'File Not Found|<h3>The file was removed by administrator</h3>',
  8008. 'optional--',
  8009. //'optional--',
  8010. "//a[contains(@href,'chayfile.com')]");
  8011. }
  8012. if (GM_getValue("Check_xfileload_dot_com_links", false))
  8013. {
  8014. addFileHost(
  8015. "xfileload\.com\/\\w+",
  8016. 'Filename:|Имя файла:|Dateiname:|nom de fichier :|اسم الملف:|Dosya AdД±|Nazwa:|Nombre de fichero:|NamaFile:|Bestandsnaam:|שם קובץ:"',
  8017. '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..|הקובץ שחיפשת לא נמצא.',
  8018. 'optional--',
  8019. //'optional--',
  8020. "//a[contains(@href,'xfileload.com')]");
  8021. }
  8022. if (GM_getValue("Check_rockfile_dot_eu_links", false))
  8023. {
  8024. addFileHost(
  8025. "rockfile\.eu\/\\w+",
  8026. 'You have requested:',
  8027. 'The file you were looking for could not be found, sorry for any inconvenience.',
  8028. 'optional--',
  8029. //'optional--',
  8030. "//a[contains(@href,'rockfile.eu')]");
  8031. }
  8032. if (GM_getValue("Check_24uploading_dot_com_links", false))
  8033. {
  8034. addFileHost(
  8035. "24uploading\.com\/\\w+",
  8036. 'File:|Download Speed:',
  8037. '<b>File Not Found</b>|file was removed',
  8038. 'optional--',
  8039. //'optional--',
  8040. "//a[contains(@href,'24uploading.com')]");
  8041. }
  8042. if (GM_getValue("Check_tusfiles_dot_net_links", false))
  8043. {
  8044. addFileHost(
  8045. "tusfiles\.net\/\\w+",
  8046. 'i/icon/dll.png"|>Start download<br',
  8047. 'no longer available<|i/ino.png"',
  8048. 'optional--',
  8049. //'optional--',
  8050. "//a[contains(@href,'tusfiles.net')]");
  8051. }
  8052. if (GM_getValue("Check_jumbofile_dot_net_links", false))
  8053. {
  8054. addFileHost(
  8055. "jumbofile\.net\/\\w+",
  8056. 'button" class="" value="Free',
  8057. 'This File Was Deleted',
  8058. 'optional--',
  8059. //'optional--',
  8060. "//a[contains(@href,'jumbofile.net')]");
  8061. }
  8062. if (GM_getValue("Check_ozofiles_dot_com_links", false))
  8063. {
  8064. addFileHost(
  8065. "ozofiles\.com\/\\w+",
  8066. 'button" value="Free',
  8067. 'File Not Found|width:500px;text-align:left;">|File Deleted',
  8068. 'optional--',
  8069. //'optional--',
  8070. "//a[contains(@href,'ozofiles.com')]");
  8071. }
  8072. if (GM_getValue("Check_loudupload_dot_net_links", false))
  8073. {
  8074. addFileHost(
  8075. "loudupload\.net\/\\w+",
  8076. 'value="Get Links',
  8077. 'File Not Found',
  8078. 'optional--',
  8079. //'optional--',
  8080. "//a[contains(@href,'loudupload.net')]");
  8081. }
  8082. if (GM_getValue("Check_rapidsonic_dot_com_links", false))
  8083. {
  8084. addFileHost(
  8085. "(rapidsonic|fileparadox)\\.com\/\\w+",
  8086. 'method_free" id="submit_btn|<h4><i class="icon_document_alt"></i>Download File</h4>',
  8087. '>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">',
  8088. 'optional--',
  8089. //'optional--',
  8090. "//a[contains(@href,'rapidsonic') or contains(@href,'3files.net/') or contains(@href,'fileparadox.com')]");
  8091. }
  8092. if (GM_getValue("Check_krotix_dot_net_links", false))
  8093. {
  8094. addFileHost(
  8095. "krotix\.net\/\\w+",
  8096. 'btn btn-warning|btn-free',
  8097. 'pageErrors|This File has been removed',
  8098. 'content="Scheduled Maintenance',
  8099. //'optional--',
  8100. "//a[contains(@href,'krotix.net')]");
  8101. }
  8102. if (GM_getValue("Check_userscloud_dot_com_links", false))
  8103. {
  8104. addFileHost(
  8105. "userscloud\.com\/\\w+",
  8106. 'btn_download',
  8107. '>Server OFFLINE|background:#D3D3D3;border-bottom:1px solid #BBB;font:bold 13px Verdana;padding:3px;">|-chain-broken',
  8108. 'optional--',
  8109. //'optional--',
  8110. "//a[contains(@href,'userscloud.com')]");
  8111. }
  8112. if (GM_getValue("Check_kumpulbagi_dot_com_links", false))
  8113. {
  8114. addFileHost(
  8115. "kumpulbagi\.com\/\\w+",
  8116. 'class="button download',
  8117. 'internal server error',
  8118. 'optional--',
  8119. //'optional--',
  8120. "//a[contains(@href,'kumpulbagi.com')]");
  8121. }
  8122. if (GM_getValue("Check_faststore_dot_org_links", false))
  8123. {
  8124. addFileHost(
  8125. "faststore\.org\/\\w+",
  8126. 'name="method_free',
  8127. 'File Not Found',
  8128. 'optional--',
  8129. //'optional--',
  8130. "//a[contains(@href,'faststore.org')]");
  8131. }
  8132. if (GM_getValue("Check_prefiles_dot_com_links", false))
  8133. {
  8134. addFileHost(
  8135. "prefiles\.com\/\\w+",
  8136. 'id="method_free',
  8137. 'File not Found',
  8138. 'optional--',
  8139. //'optional--',
  8140. "//a[contains(@href,'prefiles.com')]");
  8141. }
  8142. if (GM_getValue("Check_doraupload_dot_com_links", false))
  8143. {
  8144. addFileHost(
  8145. "doraupload\.com\/\\w+",
  8146. 'btn_download',
  8147. 'class="error-code|Could Not Be Found',
  8148. 'optional--',
  8149. //'optional--',
  8150. "//a[contains(@href,'doraupload.com')]");
  8151. }
  8152. if (GM_getValue("Check_openload_dot_io_links", false))
  8153. {
  8154. addFileHost(
  8155. "openload\.io\/\\w+",
  8156. 'btn btn-primary|class="count">',
  8157. 'class="jumbotron">|We are sorry',
  8158. 'optional--',
  8159. //'optional--',
  8160. "//a[contains(@href,'openload.io')]");
  8161. }
  8162. if (GM_getValue("Check_uploads_dot_xxx_links", false))
  8163. {
  8164. addFileHost(
  8165. "uploads\.xxx\/\\w+",
  8166. 'downoadForFree',
  8167. 'File not found',
  8168. 'optional--',
  8169. //'optional--',
  8170. "//a[contains(@href,'uploads.xxx')]");
  8171. }
  8172. if (GM_getValue("Check_zxcfiles_dot_com_links", false))
  8173. {
  8174. addFileHost(
  8175. "zxcfiles\.com\/\\w+",
  8176. 'class="downloadbtn',
  8177. 'File Not Found',
  8178. 'optional--',
  8179. //'optional--',
  8180. "//a[contains(@href,'zxcfiles.com')]");
  8181. }
  8182. if (GM_getValue("Check_up07_dot_net_links", false))
  8183. {
  8184. addFileHost(
  8185. "up07\.net\/\\w+",
  8186. 'name="method_free',
  8187. 'File Not Found',
  8188. 'optional--',
  8189. //'optional--',
  8190. "//a[contains(@href,'up07.net')]");
  8191. }
  8192. if (GM_getValue("Check_fileupload_dot_pw_links", false))
  8193. {
  8194. addFileHost(
  8195. "fileupload\.pw\/\\w+",
  8196. 'value="Free"',
  8197. 'File Not Found',
  8198. 'optional--',
  8199. //'optional--',
  8200. "//a[contains(@href,'fileupload.pw')]");
  8201. }
  8202. if (GM_getValue("Check_4upld_dot_com_links", false))
  8203. {
  8204. addFileHost(
  8205. "4upld\.com\/\\w+",
  8206. 'alt="Download Now"|content="Download file">|btn-free-element',
  8207. '<title>Error|content="error|File not found',
  8208. 'optional--',
  8209. //'optional--',
  8210. "//a[contains(@href,'4upld.com')]");
  8211. }
  8212. if (GM_getValue("Check_newfileland_dot_com_links", false))
  8213. {
  8214. addFileHost(
  8215. "newfileland\.com\/\\w+",
  8216. 'name="method_free',
  8217. 'File Not Found',
  8218. 'optional--',
  8219. //'optional--',
  8220. "//a[contains(@href,'newfileland.com')]");
  8221. }
  8222. if (GM_getValue("Check_swoopshare_dot_com_links", false))
  8223. {
  8224. addFileHost(
  8225. "(?:.swoopshare)\\.com\/\\w+",
  8226. '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',
  8227. '<input type="file" name="f"',
  8228. 'optional--',
  8229. //'optional--',
  8230. "//a[contains(@href,'swoopshare.com')]"
  8231. );
  8232. }
  8233. if (GM_getValue("Check_cloudshares_dot_net_links", false))
  8234. {
  8235. addFileHost(
  8236. "cloudshares\.net\/\\w+",
  8237. '"method_free|"Low Speed Download|submit" name="go',
  8238. 'Not Found|"width:500px;text-align:left;">|No such file exist',
  8239. 'optional--',
  8240. //'optional--',
  8241. "//a[contains(@href,'cloudshares.net')]"
  8242. );
  8243. }
  8244. if (GM_getValue("Check_allmyvideos_dot_net_links", false))
  8245. {
  8246. addFileHost(
  8247. "allmyvideos\.net\/\\w+",
  8248. 'Continue to Video',
  8249. 'File Not Found|class="err">Removed for',
  8250. 'optional--',
  8251. //'optional--',
  8252. "//a[contains(@href,'allmyvideos.net')]"
  8253. );
  8254. }
  8255. if (GM_getValue("Check_vodlocker_dot_com_links", false))
  8256. {
  8257. addFileHost(
  8258. "vodlocker\.com\/\\w+",
  8259. 'Proceed to video',
  8260. 'Not Found',
  8261. 'optional--',
  8262. //'optional--',
  8263. "//a[contains(@href,'vodlocker.com')]"
  8264. );
  8265. }
  8266. if (GM_getValue("Check_vidbull_dot_com_links", false))
  8267. {
  8268. addFileHost(
  8269. "vidbull\.com\/\\w+",
  8270. 'Verifying Video Request',
  8271. 'File Not Found',
  8272. 'optional--',
  8273. //'optional--',
  8274. "//a[contains(@href,'vidbull.com')]");
  8275. }
  8276. if (GM_getValue("Check_novamov_dot_com_links", false))
  8277. {
  8278. addFileHost(
  8279. "novamov\.com\/\\w+",
  8280. 'For version detection',
  8281. 'file no longer exists',
  8282. 'optional--',
  8283. //'optional--',
  8284. "//a[contains(@href,'novamov.com')]"
  8285. );
  8286. }
  8287. if (GM_getValue("Check_filehoot_dot_com_links", false))
  8288. {
  8289. addFileHost(
  8290. "filehoot\.com\/\\w+",
  8291. 'Continue to watch',
  8292. 'File Not Found',
  8293. 'optional--',
  8294. //'optional--',
  8295. "//a[contains(@href,'filehoot.com')]"
  8296. );
  8297. }
  8298. if (GM_getValue("Check_stagevu_dot_com_links", false))
  8299. {
  8300. addFileHost(
  8301. "stagevu\.com\/\\w+",
  8302. 'Video Info',
  8303. 'No video with the provided',
  8304. 'optional--',
  8305. //'optional--',
  8306. "//a[contains(@href,'stagevu.com')]"
  8307. );
  8308. }
  8309. if (GM_getValue("Check_cloudtime_dot_to_links", false))
  8310. {
  8311. addFileHost(
  8312. "cloudtime\.to\/\\w+",
  8313. 'Download the video',
  8314. 'no longer exists',
  8315. 'optional--',
  8316. //'optional--',
  8317. "//a[contains(@href,'cloudtime.to')]"
  8318. );
  8319. }
  8320. if (GM_getValue("Check_streamin_dot_to_links", false))
  8321. {
  8322. addFileHost(
  8323. "streamin\.to\/\\w+",
  8324. 'id="btn_download',
  8325. 'Not Found|Copyright Infringement|File Deleted',
  8326. 'optional--',
  8327. //'optional--',
  8328. "//a[contains(@href,'streamin.to')]"
  8329. );
  8330. }
  8331. if (GM_getValue("Check_videoweed_dot_es_links", false))
  8332. {
  8333. addFileHost(
  8334. "videoweed\.es\/\\w+",
  8335. 'version detection',
  8336. 'no longer exists',
  8337. 'optional--',
  8338. //'optional--',
  8339. "//a[contains(@href,'videoweed.es')]"
  8340. );
  8341. }
  8342. if (GM_getValue("Check_nowvideo_dot_sx_links", false))
  8343. {
  8344. addFileHost(
  8345. "nowvideo\.sx\/\\w+",
  8346. 'Download this video',
  8347. 'no longer exists',
  8348. 'optional--',
  8349. //'optional--',
  8350. "//a[contains(@href,'nowvideo.sx')]"
  8351. );
  8352. }
  8353. if (GM_getValue("Check_thevideo_dot_me_links", false))
  8354. {
  8355. addFileHost(
  8356. "thevideo\.me\/\\w+",
  8357. 'Upgrade your account|Proceed to video|class="btn btn-lg btn-dark">',
  8358. 'File Not Found',
  8359. 'optional--',
  8360. //'optional--',
  8361. "//a[contains(@href,'thevideo.me')]"
  8362. );
  8363. }
  8364. if (GM_getValue("Check_gorillavid_dot_in_links", false))
  8365. {
  8366. addFileHost(
  8367. "gorillavid\.in\/\\w+",
  8368. 'Wait 5 seconds',
  8369. 'File Not Found',
  8370. 'optional--',
  8371. //'optional--',
  8372. "//a[contains(@href,'gorillavid.in')]"
  8373. );
  8374. }
  8375. if (GM_getValue("Check_thefile_dot_me_links", false))
  8376. {
  8377. addFileHost(
  8378. "thefile\.me\/\\w+",
  8379. 'Choose free or',
  8380. '',
  8381. 'optional--',
  8382. //'optional--',
  8383. "//a[contains(@href,'thefile.me')]"
  8384. );
  8385. }
  8386. if (GM_getValue("Check_vidzi_dot_tv_links", false))
  8387. {
  8388. addFileHost(
  8389. "vidzi\.tv\/\\w+",
  8390. 'video-embed-modal row',
  8391. 'File Not Found|file was deleted',
  8392. 'optional--',
  8393. //'optional--',
  8394. "//a[contains(@href,'vidzi.tv')]"
  8395. );
  8396. }
  8397. if (GM_getValue("Check_filenuke_dot_com_links", false))
  8398. {
  8399. addFileHost(
  8400. "filenuke\.com\/\\w+",
  8401. 'Download File',
  8402. 'Earn with us',
  8403. 'optional--',
  8404. //'optional--',
  8405. "//a[contains(@href,'filenuke.com')]"
  8406. );
  8407. }
  8408. if (GM_getValue("Check_vidto_dot_me_links", false))
  8409. {
  8410. addFileHost(
  8411. "vidto\.me\/\\w+",
  8412. 'Proceed to video',
  8413. 'Not Found',
  8414. 'optional--',
  8415. //'optional--',
  8416. "//a[contains(@href,'vidto.me')]"
  8417. );
  8418. }
  8419. if (GM_getValue("Check_vidspot_dot_net_links", false))
  8420. {
  8421. addFileHost(
  8422. "vidspot\.net\/\\w+",
  8423. 'Duration',
  8424. 'Removed for',
  8425. 'optional--',
  8426. //'optional--',
  8427. "//a[contains(@href,'vidspot.net')]"
  8428. );
  8429. }
  8430. if (GM_getValue("Check_sharesix_dot_com_links", false))
  8431. {
  8432. addFileHost(
  8433. "(?:sharesix\\.com|sharesix\\.net)\/\\w+",
  8434. 'Download File',
  8435. 'File Not Found',
  8436. 'optional--',
  8437. //'optional--',
  8438. "//a[contains(@href,'sharesix.com') or contains(@href,'sharesix.net/')]"
  8439. );
  8440. }
  8441. if (GM_getValue("Check_movpod_dot_in_links", false))
  8442. {
  8443. addFileHost(
  8444. "movpod\.in\/\\w+",
  8445. 'Continue',
  8446. 'File Not Found',
  8447. 'optional--',
  8448. //'optional--',
  8449. "//a[contains(@href,'movpod.in')]"
  8450. );
  8451. }
  8452. if (GM_getValue("Check_down4files_dot_com_links", false))
  8453. {
  8454. addFileHost(
  8455. "down4files\.com\/\\w+",
  8456. 'down_table.png',
  8457. 'style="color:#d33|Error</td>|width:500px;text-align:left;">',
  8458. 'optional--',
  8459. //'optional--',
  8460. "//a[contains(@href,'down4files.com')]"
  8461. );
  8462. }
  8463. if (GM_getValue("Check_storefiles_dot_co_links", false))
  8464. {
  8465. addFileHost(
  8466. "storefiles\.co\/\\w+",
  8467. 'btn_download',
  8468. 'No such file|>Error<|mqmaintitle">',
  8469. 'optional--',
  8470. //'optional--',
  8471. "//a[contains(@href,'storefiles.co')]"
  8472. );
  8473. }
  8474. if (GM_getValue("Check_filehost_dot_pw_links", false))
  8475. {
  8476. addFileHost(
  8477. "filehost\.pw\/\\w+",
  8478. 'name="method_free',
  8479. '>Error<|style="color:#d33;">|No such file|FILE NOT FOUND',
  8480. 'optional--',
  8481. //'optional--',
  8482. "//a[contains(@href,'filehost.pw')]"
  8483. );
  8484. }
  8485. if (GM_getValue("Check_inafile_dot_com_links", false))
  8486. {
  8487. addFileHost(
  8488. "inafile\.com\/\\w+",
  8489. 'value="download1">|<h2>File: <font style="color:darkred">',
  8490. '<div style="width:500px;text-align:left;">|File Not Found',
  8491. 'optional--',
  8492. //'optional--',
  8493. "//a[contains(@href,'inafile.com')]"
  8494. );
  8495. }
  8496. if (GM_getValue("Check_uplea_dot_com_links", false))
  8497. {
  8498. addFileHost(
  8499. "uplea\.com\/\\w+",
  8500. 'Download your file:|de votre fichier:|class="download-container',
  8501. 'expired link|ou est invalide',
  8502. 'optional--',
  8503. //'optional--',
  8504. "//a[contains(@href,'uplea.com/dl')]"
  8505. );
  8506. }
  8507. if (GM_getValue("Check_openload_dot_co_links", false))
  8508. {
  8509. addFileHost(
  8510. "openload\.co\/\\w+",
  8511. 'id="downloadTimer">|button dlbutton',
  8512. 'jumbotron{color|got deleted|center !important',
  8513. 'optional--',
  8514. //'optional--',
  8515. "//a[contains(@href,'openload.co')]"
  8516. );
  8517. }
  8518.  
  8519.  
  8520. }
  8521. //start here
  8522.  
  8523. //hosts with direct download, so they must be requested for headers only
  8524. function initFileHostsHeadersOnly()
  8525. {
  8526. function addFileHostHeadersOnly(linkRegex, isAliveRegex, isDeadRegex, xpathEx, ispremRegex)
  8527. {
  8528. var host = new Array(5);
  8529. host[0] = linkRegex;
  8530. host[1] = isAliveRegex;
  8531. host[2] = isDeadRegex;
  8532. host[3] = xpathEx;
  8533. host[4] = ispremRegex;
  8534. http_file_hosts_headers_only.push(host);
  8535. }
  8536. if (GM_getValue("Check_uloziste_dot_com_links", false))
  8537. {
  8538. addFileHostHeadersOnly(
  8539. "(?:|files\\.)uloziste\\.com\/\\w+\/\\w+",
  8540. 'Connection: Keep-Alive',
  8541. 'Content-Length: 3857',
  8542. "//a[contains(@href,'uloziste.com')]"
  8543. )
  8544. }
  8545. if (GM_getValue("Check_adrive_dot_com_links", false))
  8546. {
  8547. addFileHostHeadersOnly(
  8548. "adrive\\.com\/public\/\\w+",
  8549. 'Connection: keep-alive',
  8550. 'orig_ref=deleted',
  8551. "//a[contains(@href,'adrive.com')]"
  8552. )
  8553. }
  8554. if (GM_getValue("Check_myupload_dot_dk_links", false))
  8555. {
  8556. addFileHostHeadersOnly(
  8557. "myupload\\.dk\/showfile\/\\w+",
  8558. 'Expires:',
  8559. 'squeeze1\\s+Vary',
  8560. "//a[contains(@href,'myupload.dk/showfile')]"
  8561. )
  8562. }
  8563. }
  8564. //CustomRules
  8565. //functions add...Host copied here
  8566. function addObsoleteHost(linkRegex, xpathEx)
  8567. {
  8568. var host = new Array(2);
  8569. host[0] = linkRegex;
  8570. host[1] = xpathEx;
  8571. http_file_hosts_obsolete.push(host);
  8572. }
  8573. function addFileHost(linkRegex, isAliveRegex, isDeadRegex, isUnavaRegex, xpathEx, tryLoop, ispremRegex)
  8574. {
  8575. var host = new Array(7);
  8576. host[0] = linkRegex;
  8577. host[1] = isAliveRegex;
  8578. host[2] = isDeadRegex;
  8579. host[3] = isUnavaRegex;
  8580. host[4] = xpathEx;
  8581. tryLoop ? host[5] = true : host[5] = false;
  8582. host[6] = ispremRegex;
  8583. http_file_hosts.push(host);
  8584. }
  8585. function addFileHostHeadersOnly(linkRegex, isAliveRegex, isDeadRegex, xpathEx, ispremRegex)
  8586. {
  8587. var host = new Array(5);
  8588. host[0] = linkRegex;
  8589. host[1] = isAliveRegex;
  8590. host[2] = isDeadRegex;
  8591. host[3] = xpathEx;
  8592. host[4] = ispremRegex;
  8593. http_file_hosts_headers_only.push(host);
  8594. }
  8595. //takes a fully built rules array and adds the rules to WARLC
  8596. function applyCustomRules(customRules)
  8597. {
  8598. if (!customRules) return;
  8599. var rules, r, i;
  8600. rules = customRules.rules;
  8601. for (i = 0 ; i < rules.length ; i++)
  8602. {
  8603. r = rules[i];
  8604. if (r.enabled)
  8605. {
  8606. switch (r.type)
  8607. {
  8608. case 'single':
  8609. addFileHost(r.urlregex, r.aliveregex, r.deadregex, r.unavaregex, r.premregex||'', r.xpath);
  8610. break;
  8611. case 'headers':
  8612. addFileHostHeadersOnly(r.urlregex, r.aliveregex, r.deadregex, r.xpath, r.premregex);
  8613. break;
  8614. case 'obsolete':
  8615. addObsoleteHost(r.urlregex, r.xpath)
  8616. break;
  8617. }
  8618. }
  8619. }
  8620. }
  8621.  
  8622.  
  8623. function initFileHostsCustom()
  8624. {
  8625. if (Custom_rules && Custom_rules_text)
  8626. {
  8627. var msg = '';
  8628. if (newVersion)
  8629. msg = 'New version of W.A.R. Links Checker detected.\n\n';
  8630. else if ((now - last_custom_rules_nag) >= 60*24*60*60*1000)
  8631. msg = '60 or more days have passed since this notification.\n\n';
  8632. if (msg && /^\s*@customrule(?:_obsolete)?\s/mi.test(Custom_rules_text))
  8633. {
  8634. GM_setValue('last_custom_rules_nag', ''+new Date().getTime()); //reset nag
  8635. msg +=
  8636. 'Either new version of W.A.R. Links Checker detected or 60 days passed since this notify.\n'+
  8637. 'Please check that your custom rules haven\'t been built into WARLC.\n'+
  8638. 'If not, please share them with us so they can be included in the next version! Built-in rules are always preferred.\n\n'+
  8639. 'We apologize for this annoying notification, but there is a reason to this.\n'+
  8640. 'Ideally, WARLC would check which of your custom rules have been included and disable them. '+
  8641. 'Unfortunately, there is no easy way to do that, but we don\'t want everybody to just use their custom rules '+
  8642. 'forever without ever checking if the built-in ones have been added/fixed. This is currently the only way '+
  8643. 'to remind you that you should try built-in rules, report missing/non-working ones and share your custom rules.';
  8644. setTimeout(function(){alert(msg)},0);
  8645. }
  8646. var customRules = parseCustomRules(Custom_rules_text);
  8647. if (customRules.warning || customRules.error)
  8648. alert('There were ' + customRules.error + ' errors, ' + customRules.warning + ' warnings, ' +
  8649. customRules.note + ' notes found during Custom Rules processing.\n' + customRules.rules.length + ' valid rules found.\n\n' +
  8650. JSON.stringify(customRules.info, null, ' '));
  8651. applyCustomRules(customRules);
  8652. }
  8653. }
  8654. //end of CustomRules processing
  8655.  
  8656.  
  8657.  
  8658. } //end of function start
  8659.  
  8660.  
  8661.  
  8662. function initClipBoardTools()
  8663. {
  8664. unsafeWindow.copyToClipboard = function(text)
  8665. {
  8666. try
  8667. {
  8668. this.netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
  8669.  
  8670. var str = Components.classes["@mozilla.org/supports-string;1"].
  8671. createInstance(Components.interfaces.nsISupportsString);
  8672. if (!str) return false;
  8673.  
  8674. str.data = text;
  8675.  
  8676. var trans = Components.classes["@mozilla.org/widget/transferable;1"].
  8677. createInstance(Components.interfaces.nsITransferable);
  8678. if (!trans) return false;
  8679.  
  8680. trans.addDataFlavor("text/unicode");
  8681. trans.setTransferData("text/unicode", str, text.length * 2);
  8682.  
  8683. var clipid = Components.interfaces.nsIClipboard;
  8684. var clip = Components.classes["@mozilla.org/widget/clipboard;1"].getService(clipid);
  8685. if (!clip) return false;
  8686.  
  8687. clip.setData(trans, null, clipid.kGlobalClipboard);
  8688. } catch (e) {
  8689. GM_log("Error copyToClipboard : " + e);
  8690. alert(e + "\n\nsigned.applets.codebase_principal_support must be set true in about:config")
  8691. }
  8692. }
  8693. }
  8694.  
  8695.  
  8696.  
  8697. //CustomRules
  8698.  
  8699. function escapeRegex(str)
  8700. {
  8701. return str.replace(/[\-\[\]{}()*+?.,\\\^$|#]/g, "\\$&");
  8702. }
  8703.  
  8704.  
  8705. //called internally from parseCustomRules.
  8706. //expected: rule object with array fields baseurl, alivematch etc, everything must already be checked for input errors
  8707. //returns the rule object with string fields urlregex, xpath, aliveregex etc built from the arrays
  8708. function makeCustomRule(rule)
  8709. {
  8710. function makeMatchRegex(arrmatch)
  8711. {
  8712. return escapeRegex(arrmatch.join('\n'))
  8713. .replace(/ +/g, '\\s+') //two or more spaces to any whitespace
  8714. .replace(/\n/g,'|'); //join together
  8715. }
  8716. if (rule.alivematch) rule.aliveregex = makeMatchRegex(rule.alivematch);
  8717. if (rule.deadmatch) rule.deadregex = makeMatchRegex(rule.deadmatch);
  8718. if (rule.unavamatch) rule.unavaregex = makeMatchRegex(rule.unavamatch);
  8719. if (rule.premmatch) rule.premregex = makeMatchRegex(rule.premmatch);
  8720. if (rule.baseurl)
  8721. {
  8722. var i, m, urlregex = [], xpath = [], len = rule.baseurl.length;
  8723. for (i = 0 ; i < len ; i++)
  8724. {
  8725. m = rule.baseurl[i].match(/^([a-z0-9\.-]+)(?: +([a-z \.]+) +)?(\/.*)$/);
  8726. if (m[2]) //baseurl in the form: example. com co.uk net /xxx
  8727. {
  8728. 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'])
  8729. urlregex.push( (m[1] + '(?:'+ m[2].replace(/\s+/g,'|') + ')').replace(/\./g,'\\.') + escapeRegex(m[3]) + '.'); //urlregex.push('example\\.(?:com|co\\.uk|net)/xxx.')
  8730. }
  8731. else //baseurl in the form: example.com/xxx
  8732. {
  8733. xpath.push(m[0]);
  8734. urlregex.push(escapeRegex(m[0]) + '.');
  8735. }
  8736. }
  8737. rule.xpath = "//a[contains(@href,'" + xpath.join("') or contains(@href,'") + "')]";
  8738. rule.urlregex = '(?:[a-z0-9\\.-]+\\.)?(?:' + urlregex.join('|') + ')';
  8739. }
  8740. return rule;
  8741. } //function makeCustomRule
  8742.  
  8743.  
  8744. /*
  8745. Takes a string containing custom link checking rules.
  8746. Returns an object with fields:
  8747. info - contains notes, warnings and errors found during parsing
  8748. rules - the array of custom rules
  8749. note, warning, error - number of each of them found during parsing
  8750. Format of the input string:
  8751. One command per line. Command format: @keyword parameter
  8752. Keywords:
  8753. @customrule, @customrule_obsolete, @customrule_headers - begin a new custom rule. Parameter: name of the rule
  8754. @#customrule, @#customrule_obsolete, @#customrule_headers - begin and parse this custom rule, but don't use it. Parameter: name of the rule
  8755. These keywords can be multiple (any of them will work):
  8756. @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...)
  8757. @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+
  8758. @alivelink, @deadlink - example links
  8759. @baseurl is always required, @alivematch and @deadmatch are required except for obsolete. @unavamatch is ignored for obsolete. @*link is optional.
  8760. Lines starting with // and empty lines are ignored.
  8761. Invalid parameters generate errors and those lines are skipped.
  8762. Other lines generate warnings, but are otherwise ignored (also those before the first @customrule line or inside a rule with invalid name).
  8763. Example:
  8764. @customrule filehost
  8765. @baseurl filehost.com/download/
  8766. @baseurl filehost2. com net /d?=
  8767. @alivematch id="download">
  8768. @deadmatch File not found
  8769. @deadmatch File deleted
  8770. */
  8771. function parseCustomRules(rulesStr)
  8772. {
  8773. var linenum, customRules = {'info': [], 'rules': [], 'note': 0, 'warning': 0, 'error': 0};
  8774. function addInfo(type, msg, ln){
  8775. customRules.info.push({'linenum':(ln===undefined ? linenum+1 : ln+1), 'type':type, 'msg':msg});
  8776. customRules[type]++;
  8777. }
  8778. var lines = rulesStr.match(/^(.*)$/gm); //split into array of lines
  8779. if (!lines) return null;
  8780. lines.push('@#customrule _'); //to save the last rule
  8781. var m, linecount = lines.length;
  8782. var keyword, param, constr, rule, err;
  8783. var TLD = '[a-z]{2,7}(?:\\.[a-z]{2,7})?';
  8784. var TLDorTLDlist = '(?:'+TLD+'| '+TLD+'(?: '+TLD+'){0,9} )'; //TLD or space-separated list of TLDs
  8785. var baseurlRE = new RegExp('^([a-z0-9-]{1,30}(?:\\.[a-z0-9-]{1,30}){0,2}\\.)'+TLDorTLDlist+'(/[^\'"\s\$]{0,50})$', 'i');
  8786. var constraints = {
  8787. 'baseurl': {
  8788. 'single': {'min': 1, 'max': 10, 'paramRE': baseurlRE},
  8789. 'headers': {'min': 1, 'max': 10, 'paramRE': baseurlRE},
  8790. 'obsolete': {'min': 1, 'max': 10, 'paramRE': baseurlRE}},
  8791. 'alivematch': {
  8792. 'single': {'min': 1, 'max': 10, 'paramRE': null},
  8793. 'headers': {'min': 1, 'max': 10, 'paramRE': null}},
  8794. 'deadmatch': {
  8795. 'single': {'min': 1, 'max': 10, 'paramRE': null},
  8796. 'headers': {'min': 1, 'max': 10, 'paramRE': null}},
  8797. 'unavamatch': {
  8798. 'single': {'min': 0, 'max': 10, 'paramRE': null}},
  8799. 'alivelink': {
  8800. 'single': {'min': 0, 'max': 10, 'paramRE': null},
  8801. 'headers': {'min': 0, 'max': 10, 'paramRE': null}},
  8802. 'deadlink': {
  8803. 'single': {'min': 0, 'max': 10, 'paramRE': null},
  8804. 'headers': {'min': 0, 'max': 10, 'paramRE': null},
  8805. 'obsolete': {'min': 0, 'max': 10, 'paramRE': null}}
  8806. };
  8807. for (linenum = 0 ; linenum < linecount ; linenum++)
  8808. {
  8809. //capturing groups: 1 23 4 5 6
  8810. m = lines[linenum].match(/^\s*(?:(\/\/.*)|@((#?)(customrule)(?:_(headers|obsolete))?|baseurl|alivematch|deadmatch|unavamatch|alivelink|deadlink)\s+(.+))?$/i);
  8811. if (m)
  8812. {
  8813. if (m[1] || !m[2])
  8814. continue; // ignore empty lines and lines starting with //
  8815. keyword = (m[4] || m[2]).toLowerCase();
  8816. param = m[6];
  8817. if (keyword == 'customrule')
  8818. {
  8819. //save the current rule if all required fields are provided
  8820. if (rule)
  8821. {
  8822. err = false;
  8823. $.each(constraints, function(kw, constraint){
  8824. var l, constr = constraint[rule.type];
  8825. if (constr)
  8826. {
  8827. l = rule[kw] ? rule[kw].length : 0;
  8828. if (l < constr.min || l > constr.max)
  8829. {
  8830. 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);
  8831. err = true;
  8832. }
  8833. }
  8834. });
  8835. if (!err)
  8836. customRules.rules.push(makeCustomRule(rule));
  8837. }
  8838. //start a new rule
  8839. if (/^[\w\.-]{1,30}$/.test(param)) //valid name?
  8840. {
  8841. rule = {
  8842. 'enabled': !m[3],
  8843. 'type': m[5] ? m[5].toLowerCase() : 'single',
  8844. 'name': param
  8845. };
  8846. }
  8847. else
  8848. {
  8849. addInfo('error', 'Invalid rule name. Cannot start a new rule definition.');
  8850. rule = null;
  8851. }
  8852. }
  8853. else //good line format, but keyword other than customrule
  8854. {
  8855. if (!rule)
  8856. {
  8857. addInfo('warning', 'Command outside @CUSTOMRULE definiton. Line skipped.');
  8858. continue;
  8859. }
  8860. if (constraints[keyword])
  8861. {
  8862. constr = constraints[keyword][rule.type];
  8863. if (constr)
  8864. {
  8865. if (constr.paramRE && !constr.paramRE.test(param))
  8866. {
  8867. addInfo('warning', 'Invalid @' + keyword.toUpperCase() + ' parameter. Line Skipped.');
  8868. continue;
  8869. }
  8870. }
  8871. else
  8872. {
  8873. addInfo('note', '@' + keyword.toUpperCase() + ' not applicable for type ' + rule.type.toUpperCase() + '. Line skipped.');
  8874. continue;
  8875. }
  8876. }
  8877. //line OK, save
  8878. rule[keyword] ? rule[keyword].push(param) : rule[keyword] = [param];
  8879. }
  8880. } //if (m)
  8881. else
  8882. addInfo('warning', 'Unknown line format. Line skipped.');
  8883. } //for loop
  8884. return customRules;
  8885. } //function parseCustomRules