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

detects live, dead and premium links.

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

  1. // ==UserScript==
  2. // @name W.A.R. Links Checker Customized Premium Link Version
  3. // @description detects live, dead and premium links.
  4. // @details this script automatically checks links from hundreds of filehosts. For Firefox, Chrome, Opera, Safari.
  5. // @namespace premium version
  6. // @version 1.1.8.2
  7. // @icon http://sharenxs.com/photos/2014/02/14/52fd759db90ac/cooltext1428903746.png
  8. // @license GPL version 3 or any later version (http://www.gnu.org/copyleft/gpl.html)
  9. // @author mental
  10. // @include http://*
  11. // @include https://*
  12. // @include file:///*
  13. // @grant GM_setValue
  14. // @grant GM_getValue
  15. // @grant GM_xmlhttpRequest
  16. // @grant GM_log
  17. // @grant GM_addStyle
  18. // @grant GM_registerMenuCommand
  19. // @grant GM_getResourceText
  20. // @grant GM_info
  21. // @require https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js
  22. // @require https://ajax.googleapis.com/ajax/libs/jqueryui/1.9.1/jquery-ui.min.js
  23. // @resource jQueryUICSS https://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/smoothness/jquery-ui.css
  24. // @homepage http://www.warlc.5gbfree.com
  25. // @namespace http://www.warlc.5gbfree.com
  26. // @noframes
  27. // ==/UserScript==
  28.  
  29. //separate alternative domains with "|" char (first name is considered being main)
  30. var allHostNames = [
  31. "1fichier.com|dl4free.com",
  32. "filenuke.com",
  33. "vidto.me",
  34. "storefiles.co",
  35. "filehost.pw",
  36. "down4files.com",
  37. "vidspot.net",
  38. "turbobit.ru",
  39. "sharesix.com|sharesix.net",
  40. "movpod.in",
  41. "thefile.me",
  42. "vidzi.tv",
  43. "videoweed.es",
  44. "vodlocker.com",
  45. "nowvideo.sx",
  46. "cloudtime.to",
  47. "thevideo.me",
  48. "vidbull.com",
  49. "allmyvideos.net",
  50. "novamov.com",
  51. "filehoot.com",
  52. "stagevu.com",
  53. "gorillavid.in",
  54. "streamin.to",
  55. "4upld.com",
  56. "cloudshares.net",
  57. "swoopshare.com",
  58. "newfileland.com",
  59. "2shared.com",
  60. "fileupload.pw",
  61. "zxcfiles.com",
  62. "up07.net",
  63. "4shared.com",
  64. "adrive.com",
  65. "aisfile.com",
  66. "hexupload.com",
  67. "bezvadata.cz",
  68. "burnupload.com|burnupload.ihiphop.com",
  69. "xkeepfile.com|Gamesena.com",
  70. // "firedrive.com",
  71. "usersfiles.com",
  72. "pan.baidu.com",
  73. "radicalshare.com",
  74. "cramit.in|cramitin.net",
  75. "datei.to",
  76. "daten-hoster.de|filehosting.org|xtraupload.de",
  77. "demo.ovh.eu",
  78. "depositfiles.com|depositfiles.lt|depositfiles.org|dfiles.ru|dfiles.eu",
  79. "divshare.com",
  80. "easy-share.com|crocko.com",
  81. "easybytez.com",
  82. "edisk.cz",
  83. "euroshare.eu",
  84. "file-upload.net",
  85. "yadi.sk",
  86. "ryushare.com",
  87. "wizupload.com",
  88. "fastshare.cz",
  89. "filefactory.com",
  90. "share.vnn.vn",
  91. "yunpan.cn",
  92. "gulfup.com",
  93. "tropicshare.com",
  94. "cloudzilla.to",
  95. "inclouddrive.com",
  96. "fileflyer.com",
  97. "filerio.com|filekeen.com",
  98. "up.4share.vn",
  99. "upfile.vn",
  100. "datafilehost.com",
  101. "fileband.com",
  102. "worldbytez.com",
  103. "files.mail.ru",
  104. "filepost.com|fp.io",
  105. "filesflash.com",
  106. "box.com",
  107. "box.net",
  108. "goldbytez.com",
  109. "sdilej.cz",
  110. "ex-load.com",
  111. "filesmonster.com",
  112. "filestore.to",
  113. // "freakshare.net",
  114. "hulkload.com",
  115. "filedropper.com",
  116. "free-uploading.com",
  117. "gamefront.com|filefront.com",
  118. "gettyfile.ru",
  119. "gigapeta.com",
  120. "gigasize.com",
  121. "hellshare.com",
  122. "hellspy.com",
  123. "hitfile.net",
  124. "hostuje.net",
  125. "freefilehosting.net",
  126. "free.fr",
  127. "hulkshare.com",
  128. "hyperfileshare.com",
  129. "filecloud.io|ifile.it",
  130. "ifolder.ru",
  131. "jumbofiles.com",
  132. "uploadrocket.net",
  133. "lafiles.com",
  134. "leteckaposta.cz|sharegadget.com",
  135. "letitbit.net",
  136. "load.to",
  137. "mediafire.com",
  138. "megafileupload.com",
  139. "megashares.com",
  140. "movshare.net",
  141. "muchshare.net",
  142. "myupload.dk",
  143. "narod.ru|narod.yandex.ru",
  144. "netload.in",
  145. "fboom.me",
  146. "fileboom.me",
  147. "openfile.ru",
  148. "partage-facile.com",
  149. "plunder.com",
  150. // "putlocker.com",
  151. "sharerapid.cz",
  152. "exclusiveloader.com",
  153. "acefile.net",
  154. "queenshare.com",
  155. "quickshare.cz",
  156. "rapidgator.net",
  157. "keep2share.com",
  158. "oboom.com",
  159. "filepi.com",
  160. "neodrive.co",
  161. "rarefile.net",
  162. "rayfile.com",
  163. "rghost.net",
  164. "sendmyway.com",
  165. "clicknupload.com",
  166. "sharemods.com",
  167. "hostr.co",
  168. "sendspace.com",
  169. "sharecash.org",
  170. "share-links.biz",
  171. "share-online.biz|egoshare.com",
  172. "megarapid.cz",
  173. "shareflare.net",
  174. "solidfiles.com",
  175. "led.wf",
  176. "lan.wf",
  177. "adlink.wf",
  178. "click.tf",
  179. "kyc.pm",
  180. "ssh.tf",
  181. "ssh.yt",
  182. "yep.pm",
  183. "stahovanizasms.cz",
  184. "turbobit.net",
  185. "filecloud.cc",
  186. "tikfile.com",
  187. "cloudsix.me",
  188. "turboupload.com",
  189. "uloz.to|ulozto.cz|bagruj.cz|zachowajto.pl",
  190. "ulozisko.sk",
  191. "uloziste.com",
  192. "unibytes.com",
  193. "upload-il.net|przeslij.net",
  194. "uploaded.to|ul.to",
  195. "uploading.com",
  196. "chayfile.com",
  197. "rockfile.eu",
  198. "24uploading.com",
  199. "uploadspace.pl",
  200. "upnito.sk",
  201. "uptobox.com",
  202. "usaupload.net",
  203. "veehd.com",
  204. "videobb.com",
  205. "vip-file.com",
  206. "webshare.cz",
  207. "xdisk.cz",
  208. "yunfile.com|filemarkets.com",
  209. "ziddu.com",
  210. "krotix.net",
  211. "zippyshare.com",
  212. "rodfile.com",
  213. "migahost.com",
  214. "wikiupload.com",
  215. "uploadstube.de",
  216. "faststore.org",
  217. "flyfiles.net",
  218. "nowdownload.eu",
  219. "prefiles.com",
  220. "axifile.com",
  221. "rapidsonic.com|fileparadox.com",
  222. "hackerbox.org",
  223. "amonshare.com",
  224. "data.hu",
  225. "brupload.net",
  226. "userscloud.com",
  227. "netkups.com",
  228. "edoc.com",
  229. "xfileload.com",
  230. "jumbofile.net",
  231. "kumpulbagi.com",
  232. "uppit.com|up.ht",
  233. "downloadani.me",
  234. "filesabc.com",
  235. "180upload.com",
  236. "verzend.be",
  237. "movreel.com",
  238. "4up.me",
  239. "extmatrix.com",
  240. "sendfiles.nl",
  241. "yourfilestore.com",
  242. "filebig.net",
  243. "nekaka.com",
  244. "file4safe.com",
  245. "tusfiles.net",
  246. "filemac.com",
  247. "idup.in",
  248. "fileswap.com",
  249. "ozofiles.com",
  250. "loudupload.net",
  251. "nosupload.com",
  252. "gboxes.com",
  253. "myvdrive.com|fileserving.com",
  254. "filesin.com",
  255. "novafile.com",
  256. "longfiles.com",
  257. "uploadhero.com",
  258. "uploadbaz.com",
  259. "bitupload.com",
  260. "indowebster.com",
  261. "superload.cz",
  262. "mafiastorage.com",
  263. "4upfiles.com",
  264. "filesmelt.com",
  265. "hellupload.com",
  266. "uploadingit.com",
  267. "stiahni.si",
  268. "sendspace.pl",
  269. "fastshare.org",
  270. "filejoker.net",
  271. "filestore.com.ua",
  272. "secureupload.eu",
  273. "rapidfileshare.net",
  274. "stiahnito.sk",
  275. "rusfolder.com",
  276. "fileover.net",
  277. "catshare.net",
  278. "anonfiles.com",
  279. "mixturecloud.com",
  280. "fileparadox.in",
  281. "filedais.com",
  282. "imdb.com",
  283. "nitroflare.com",
  284. "akafile.com",
  285. "creafile.net",
  286. "hugefiles.net",
  287. "vidxden.com",
  288. "up.top4top.net",
  289. "upload.ee",
  290. "shareplace.org",
  291. "uploadc.com",
  292. "remixshare.com",
  293. "exoshare.com",
  294. "borncash.org",
  295. "junocloud.me",
  296. "keep2share.cc",
  297. "k2s.cc",
  298. "expressleech.com",
  299. "2downloadz.com",
  300. "mightyupload.com",
  301. "anysend.com",
  302. "datafile.com",
  303. "upstore.net",
  304. "upsto.re",
  305. "speedy.sh",
  306. "sanshare.com",
  307. "kingfiles.net",
  308. "uploadhero.co",
  309. "ge.tt",
  310. "filesflash.net",
  311. "salefiles.com",
  312. "keep2s.cc",
  313. "megairon.net",
  314. "datoid.cz",
  315. "cloudstor.es",
  316. "streamfile.com",
  317. "eyesfile.ca",
  318. "filemoney.com",
  319. "uploadboy.com",
  320. "speedshare.eu",
  321. "google.com",
  322. "unlimitzone.com",
  323. "rioupload.com",
  324. "rg.to",
  325. "jumbofiles.org",
  326. "fshare.vn",
  327. "spaceforfiles.com",
  328. "up.media1fire.com",
  329. "depfile.com",
  330. "go4up.com",
  331. "dropbox.com",
  332. "redbunker.net",
  333. "divxpress.com",
  334. "mega.nz|mega.co.nz",
  335. "anafile.com",
  336. "uploadable.ch",
  337. "arabloads.com",
  338. "sharerepo.com",
  339. "sfshare.se",
  340. "files.fm",
  341. "koofile.com",
  342. "vidplay.net",
  343. "storagon.com",
  344. "doraupload.com",
  345. "openload.io",
  346. "geupload.com|lenfile.com",
  347. "uploads.xxx",
  348. ];
  349.  
  350. try
  351. {
  352. //iframes excluded
  353. if (window.top != window.self)
  354. {
  355. return;
  356. }
  357. //allHostNames sites excluded
  358. if (window.location.href.match("https?:\/\/(www\.)?[\w\.-]*(?:" +
  359. allHostNames.join("|").replace(/\./g, "\\.").replace(/-/g, "\\-") +
  360. ")"))
  361. {
  362. return;
  363. }
  364. }
  365. catch (e)
  366. {
  367. return;
  368. }
  369.  
  370. //separate alternative domains with "|" char (first name is considered being main)
  371. var allContainerNames = [
  372. "adf.ly",
  373. "linkcrypt.ws",
  374. "linksafe.me",
  375. "linksave.in",
  376. "linkto.net",
  377. "madlink.sk",
  378. "multiload.cz",
  379. "mirrorcreator.com",
  380. "ncrypt.in",
  381. "redi.re",
  382. "relink.us",
  383. "safelinking.net",
  384. "theloo.katt.it",
  385. "bit.ly",
  386.  
  387. ];
  388.  
  389. //separate alternative domains with "|" char (first name is considered being main)
  390. var allObsoleteNames = [
  391. "uloz.cz",
  392. "freakshare.com",
  393. "freakshare.net",
  394. "daj.to",
  395. "bl.st",
  396. "2drive.net",
  397. "crisshare.com",
  398. "tufiles.ru",
  399. "uncapped-downloads.com",
  400. "sockshare.com",
  401. "ddlstorage.com",
  402. "dataport.cz",
  403. "dizzcloud.com",
  404. "sharebeast.com",
  405. "stahovadlo.cz",
  406. "shared.com",
  407. "storage.to",
  408. "putlocker.com",
  409. "lumfile.com",
  410. "lumfile.se",
  411. "lumfile.eu",
  412. "firedrive.com",
  413. "fileshare.in.ua",
  414. "filecore.co.nz",
  415. "iskladka.cz",
  416. "file-rack.com",
  417. "fast-load.net",
  418. "subory.sk",
  419. "bigandfree.com",
  420. "fileop.com",
  421. "mujsoubor.cz",
  422. "sendfile.to",
  423. "superfastfile.com",
  424. "quickyshare.com",
  425. "duckload.com",
  426. "uploadstore.net",
  427. "meinupload.com",
  428. "dualshare.com",
  429. "2xupload.to|2xupload.de",
  430. "oxedion.com",
  431. "uploadline.com",
  432. "dll.bz",
  433. "movieshare.in",
  434. "milledrive.com",
  435. "quickupload.net",
  436. "safelink.in",
  437. "metadivx.com",
  438. "divxlink.com",
  439. "uploadrack.com",
  440. "teradepot.com",
  441. "dataup.to",
  442. "upit.to",
  443. "driveway.com",
  444. "eatlime.com",
  445. "a2zuploads.com",
  446. "friendlyfiles.net",
  447. "flyfile.us",
  448. "speedyshare.com",
  449. "uploadspace.eu",
  450. "keepfile.com",
  451. "piggyshare.com",
  452. "uplly.com",
  453. "filecrown.com",
  454. "6giga.com",
  455. "uploadjockey.com",
  456. "bluehost.to",
  457. "filegu.ru",
  458. "filebase.to",
  459. "up-file.com",
  460. "xvideos.com",
  461. "ufox.com",
  462. "filebling.com",
  463. "loaded.it",
  464. "uploadcell.com",
  465. "uploadshare.cz",
  466. "mangoshare.com",
  467. "filestab.com",
  468. "crazyupload.com",
  469. "gaiafile.com",
  470. "sharejunky.com",
  471. "fileho.com",
  472. "bigandfree.com",
  473. "bigfile.in",
  474. "bigshare.eu",
  475. "dahosting.org",
  476. "digisofts.net",
  477. "file4save.com",
  478. "filechip.com",
  479. "filescloud.com",
  480. "saveqube.com",
  481. "turboshare.de",
  482. "z-upload.com",
  483. "youshare.com",
  484. "jiffyupload.com",
  485. "gigeshare.com",
  486. "datenklo.net",
  487. "upload.dj",
  488. "loadfiles.in",
  489. "upit.to",
  490. "dsfileshare.com",
  491. "sharesimple.net",
  492. "4files.net",
  493. "wooupload.com",
  494. "odsiebie.com",
  495. "filenavi.com",
  496. "3oof.com",
  497. "meshwaar.com",
  498. "maxupload.com",
  499. "share.cx",
  500. "atserver.eu",
  501. "hotfiles.ws",
  502. "esnips.com",
  503. "tuxfile.com",
  504. "file2upload.net",
  505. "filebling.com",
  506. "turboshare.com",
  507. "rarhost.com",
  508. "isharehd.com",
  509. "i741.com",
  510. "dataup.de",
  511. "fofly.com",
  512. "shareonall.com",
  513. "sexuploader.com",
  514. "megaupload.com|megavideo.com|megaporn.com|megarotic.com",
  515. "uploadhyper.com",
  516. "filespawn.com",
  517. "caizzii.com",
  518. "volnyweb.cz",
  519. "usershare.net",
  520. "filescash.net",
  521. "metahyper.com",
  522. "combozip.com",
  523. "x7.to",
  524. "uploadbox.com",
  525. "enterupload.com|flyupload.com",
  526. "filepoint.de",
  527. "mystream.to",
  528. "x-fs.com",
  529. "shareator.com",
  530. "srapid.eu",
  531. "sosame.cz",
  532. "filesdump.com",
  533. "2-klicks.de",
  534. "uploking.com",
  535. "silofiles.com",
  536. "upfile.in",
  537. "filehook.com",
  538. "uploadking.com",
  539. "uploadhere.com",
  540. "kewlshare.com",
  541. "rapidable.com",
  542. "uploadwaste.com",
  543. "filemup.com",
  544. "filesonic.com|sharingmatrix.com",
  545. "fileserve.com",
  546. "wupload.com",
  547. "skipfile.com",
  548. "smartuploader.com",
  549. "dualshare.com",
  550. "storeandserve.com",
  551. "mountfile.com",
  552. "transitfiles.com",
  553. "uploadstation.com",
  554. "filejungle.com",
  555. "shareshared.com",
  556. "quickyshare.com",
  557. "save.am",
  558. "petandrive.com",
  559. "file2box.com",
  560. "flyshare.cz",
  561. "yabadaba.ru",
  562. "cloudcache.cc",
  563. "yourfilehost.com",
  564. "jakfile.com",
  565. "kickload.com",
  566. "pyramidfiles.com",
  567. "refile.net",
  568. "zshare.net",
  569. "ddlani.me|ddlanime.com",
  570. "ftp2share.com",
  571. "fooget.com",
  572. "rapidhide.com",
  573. "gotupload.com",
  574. "mooload.com",
  575. "zupload.com",
  576. "mytempdir.com",
  577. "onionshare.com",
  578. "stahnu.to",
  579. "oron.com",
  580. "badongo.com",
  581. "filereactor.com",
  582. "filegaze.com",
  583. "4bytez.com",
  584. "1hostclick.com",
  585. "anonstream.com",
  586. "batshare.com",
  587. "bitroad.net",
  588. "brontofile.com",
  589. "cloudnxt.net",
  590. "cloudnator.com|shragle.com",
  591. "filesfrog.net",
  592. "coolshare.cz",
  593. "dotavi.com",
  594. "ezyfile.net",
  595. "file-bit.net",
  596. "filecosy.com",
  597. "fileduct.com|fileduct.net",
  598. "filefat.com",
  599. "filelaser.com",
  600. "filemashine.com",
  601. "fileserver.cc",
  602. "filetechnology.com",
  603. "fireuploads.net",
  604. "gigfiles.net",
  605. "holderfile.com",
  606. "ihostia.com",
  607. "k2files.com",
  608. "mojofile.com",
  609. "ovfile.com",
  610. "qshare.com",
  611. "shafiles.me",
  612. "sharefilehost.com",
  613. "shareupload.com",
  614. "stahuj.to",
  615. "ugotfile.com",
  616. "uploadboost.com",
  617. "fileom.com",
  618. "vidhog.com",
  619. "xfileshare.eu",
  620. "bzlink.us",
  621. "bulletupload.com",
  622. // "wizzupload.com",
  623. "bloggerarticles.com",
  624. "mojedata.sk",
  625. "sharpfile.com",
  626. "upgrand.com",
  627. "nasdilej.cz",
  628. "mediatack.cz",
  629. "share-it.to",
  630. "primeupload.com",
  631. "filebeer.info",
  632. "baberepublic",
  633. "xtu.me",
  634. "sharebase.de",
  635. "luckyshare.net",
  636. "filerobo.com",
  637. "filevelocity.com",
  638. "filezpro.com",
  639. "file4sharing.com",
  640. "cing.be",
  641. "ufile.eu",
  642. "pigsonic.com",
  643. "fileupped.com",
  644. "sharerun.com",
  645. "filesaur.com",
  646. "rapidslnare.com",
  647. "bestsharing.com",
  648. "savefiles.net",
  649. "file2share.biz",
  650. "filecache.de",
  651. "monsteruploads.eu",
  652. "b9bb.com",
  653. "aiotool.net",
  654. "jamber.info",
  655. "megaftp.com",
  656. "desiupload.net",
  657. "file27.com",
  658. "yastorage.com",
  659. "filehost.ws",
  660. "copyload.com",
  661. "venusfile.com",
  662. "aieshare.com",
  663. "terafile.co",
  664. "terafile.com",
  665. "fileza.net",
  666. "filerose.com",
  667. "squillion.com",
  668. "fileprohost.com",
  669. "bitbonus.com",
  670. "warserver.cz",
  671. "uload.to",
  672. "sharedbit.net",
  673. "megaload.it",
  674. "filewinds.com",
  675. "uploadcore.com",
  676. "syfiles.com",
  677. "eyesfile.com",
  678. "hotfile.com",
  679. "superupl.com",
  680. "oteupload.com",
  681. "henchfile.com",
  682. "filegag.com",
  683. "HenchFile.com",
  684. "filedefend.com",
  685. "share-rapid.com|rapids.cz|share-credit.cz|share-central.cz|share-ms.cz|share-net.cz|srapid.cz|share-rapid.cz",
  686. "megabitshare.com",
  687. "cloudzer.com",
  688. "asfile.com",
  689. "cloudzer.net",
  690. "clz.to",
  691. "extabit.com",
  692. "247upload.com",
  693. "2download.de",
  694. "4fastfile.com",
  695. "asixfiles.com",
  696. "berofile.com",
  697. "bigupload.com",
  698. "cepzo.com",
  699. "clouds.to",
  700. "cobrashare.sk",
  701. "coraldrive.net",
  702. "cyberlocker.ch",
  703. "czshare.com",
  704. "darkport.org",
  705. "dark-uploads.com",
  706. "davvas.com",
  707. "enigmashare.com",
  708. "erofly.cz",
  709. "fastsonic.net",
  710. "filebox.com",
  711. "filecity.net",
  712. "filedap.com",
  713. "filedino.com",
  714. "filedownloads.org",
  715. "filefolks.com",
  716. "fileking.co",
  717. "filemates.com",
  718. "files.to",
  719. "files2k.eu",
  720. "filesector.cc",
  721. "bitshare.com",
  722. "filesega.com",
  723. "filesend.net",
  724. "filestay.com",
  725. "filestrum.com",
  726. "fileuplo.de",
  727. "fileupup.com",
  728. "forunesia.com",
  729. "freeuploads.fr",
  730. "uploa.dk",
  731. "getthebit.com",
  732. "getzilla.net",
  733. "goldfile.eu",
  734. "good.com",
  735. "grupload.com",
  736. "hellfile.com",
  737. "hipfile.com",
  738. "hitfile.com",
  739. "hulkfile.eu|duckfile.net",
  740. "i-filez.com",
  741. "ifile.ws",
  742. "kupload.org",
  743. "packupload.com",
  744. "lemuploads.com",
  745. "limelinx.com",
  746. "maxshare.pl",
  747. "megarelease.org",
  748. "megashare.com",
  749. "minus.com",
  750. "mlfat4arab.com",
  751. "multishare.cz",
  752. "nirafile.com",
  753. "ok2upload.com",
  754. "peejeshare.com",
  755. "premiuns.org",
  756. "przeklej.net",
  757. "qkup.net",
  758. "rapidupload.sk",
  759. "rockdizfile.com",
  760. "rocketfile.net",
  761. "share-now.net",
  762. "share76.com",
  763. "sharebees.com",
  764. "sharefiles.co",
  765. "slingfile.com",
  766. "sms4file.com",
  767. "space4file.com",
  768. "tigershare.net",
  769. "toucansharing.com",
  770. "ubuntuone.com",
  771. "unextfiles.com",
  772. "upaj.pl",
  773. "upfile.biz",
  774. "uploadbin.net",
  775. "uploadic.com",
  776. "uploadinc.com",
  777. "uploading4u.eu",
  778. "uploadjet.net",
  779. "uploadorb.com",
  780. "upthe.net",
  781. "uptorch.com",
  782. "vidbox.yt",
  783. "videozer.com",
  784. "vreer.com",
  785. "wallobit.com",
  786. "zooupload.com",
  787. "privatefiles.com",
  788. "xerver.co",
  789. "BillionUploads.com",
  790. "rapidshare.com",
  791. "rapidshare.ru",
  792. "4savefile.com",
  793. "bayfiles.com",
  794. "bayfiles.net",
  795. "dodane.pl",
  796. "dotsemper.com",
  797. "egofiles.com",
  798. "epicshare.net",
  799. "fiberupload.net",
  800. "filemonkey.in",
  801. "filemonster.net",
  802. "filepom.com",
  803. "filesbb.com",
  804. "fileshareup.com",
  805. "filevice.com",
  806. "gigaup.fr",
  807. "inafile.com",
  808. "isavelink.com",
  809. "loombo.com",
  810. "megafiles.se",
  811. "migupload.com",
  812. "mydisc.net",
  813. "nitrobits.com",
  814. "potload.com",
  815. "redload.net",
  816. "shareprofi.com",
  817. "sharesuper.info",
  818. "sinhro.net",
  819. "speedfile.cz",
  820. "speedshare.org",
  821. "storage.novoro.net",
  822. "swankshare.com",
  823. "swatupload.com",
  824. "upafile.com",
  825. "uploadmachine.com",
  826. "uploadsat.com",
  827. "upshared.com",
  828. "usefile.com",
  829. "yourfiles.to",
  830. "zomgupload.com",
  831. "ultramegabit.com",
  832. "uploadto.us",
  833.  
  834. ];
  835. ///////////////////////////////////////////////////////////////////////////////////////
  836. var firstRun = GM_getValue("First_run", true);
  837.  
  838. var chromeBrowser = /chrom(e|ium)/.test(navigator.userAgent.toLowerCase());
  839. //////////////////////////////////////////////////////////////////////////////////////
  840. try
  841. {
  842. var thisVersion = GM_info.script.version; //not supported in Scriptish and others
  843. var last_known_version = GM_getValue("last_known_version", "");
  844. if (!last_known_version)
  845. {
  846. last_known_version = thisVersion;
  847. GM_setValue("last_known_version", last_known_version);
  848. }
  849. //var newVersion = !(thisVersion == last_known_version);
  850. var newVersion = !(a.replace(/^(\d+\.\d+\.\d+).*/,'$1') == b.replace(/^(\d+\.\d+\.\d+).*/,'$1')); //true only if one of the first three numbers differs
  851. GM_setValue("last_known_version", thisVersion);
  852. }
  853. catch (err)
  854. {
  855. var newVersion = false;
  856. }
  857.  
  858. var now = (new Date()).getTime();
  859. var last_custom_rules_nag = GM_getValue('last_custom_rules_nag', 0);
  860. if (!last_custom_rules_nag)
  861. {
  862. last_custom_rules_nag = now;
  863. GM_setValue('last_custom_rules_nag', ''+now);
  864. }
  865.  
  866.  
  867. allHostNames.sort();
  868. allContainerNames.sort();
  869. allObsoleteNames.sort();
  870.  
  871. var RAND_STRING = "8QyvpOSsRG3QWq";
  872. var DEBUG_MODE = false;
  873.  
  874. var TOOLTIP_MAXWIDTH = 600; //in pixels
  875. var TOOLTIP_THUMBWIDTH = 200;
  876. var containers_processed = false;
  877.  
  878. //settings for keyboard functions start
  879. var CHECK_ALL_LINKS_KEY = "A";
  880. var CONFIGURATION_KEY = "C";
  881. var copy_to_dead_key = "D";
  882. var toggle_autocheck_key = "W";
  883. var toggle_Enable_Anonymizer_key = "Z";
  884. var first_key_keycode = '17'; // 18=ALT 16=Shift 17=Ctrl 32=SPACE_BAR 9=TAB
  885. var first_key_keycodename = 'CTRL';
  886. var second_key_keycode = '18';
  887. var second_key_keycodename = 'ALT';
  888. var CHECK_ALL_LINKS_KEYCODE = CHECK_ALL_LINKS_KEY.charCodeAt(0);
  889. var CONFIGURATION_KEYCODE = CONFIGURATION_KEY.charCodeAt(0);
  890. var copy_to_dead_keycode = copy_to_dead_key.charCodeAt(0);
  891. var toggle_autocheck_keycode = toggle_autocheck_key.charCodeAt(0);
  892. var toggle_Enable_Anonymizer_keycode = toggle_Enable_Anonymizer_key.charCodeAt(0);
  893. //settings for keyboard functions end
  894.  
  895. //global settings start
  896. var Show_black_background_in_DL_links, Show_line_through_in_dead_links, Color_DL_links;
  897. var Live_links_color, Dead_links_color, Temp_unavailable_links_color, Premium_links_color, Ref_anonymize_service;
  898. var Do_not_linkify_DL_links, Keyboard_functions, Autocheck, Enable_Anonymizer;
  899. var Show_progress_stats, Display_tooltip_info, Icon_set;
  900. var Progress_box_pos_bottom, Progress_box_pos_right, Progress_box_opacity, Progress_box_background_color, Progress_box_item_color;
  901. var Progress_box_refresh_rate;
  902. var Obsolete_file_hosts;
  903. var Custom_rules, Custom_rules_text;
  904.  
  905. var messageBox = document.createElement('b'); // top-left message box
  906.  
  907. var cLinksTotal = 0;
  908. var cLinksDead = 0;
  909. var cLinksAlive = 0;
  910. var cLinksUnava = 0;
  911. var cLinksprem = 0;
  912. var cLinksProcessed = 0;
  913.  
  914. var intervalId; //for updateProgress()
  915.  
  916. //icon resources
  917. var PAW_ICON_GREEN = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAANCAYAAABy6+R8AAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYwP2SycQWHTA4vcAAPK7b8HUKAgDgGiD4c93/+8//UegJQCAZkmScQAAXkQkLlTK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ffr4v9d29pEMnt7UyfOkNNjKKTU8Tl8tghq+sEGqvUZwjZA5EAiShPIetLXxhASSIY3An1Gr4xkabq70iar9OkOeoWCSqVMAM8hzMiObnIUnQ0RFyR0DkgNylzhh7cB+bmsLrdQ7n5gj1OlG5TPxoHro7kUsC4mdQUB5u0NdziW/r5q2M/PkLfG2NsLwMkRHevyVkWQib26t+FJYMIIOUvt5XdmXkunXEke/sQchRCNDdRfAQ8vXND97af1qCxqkRLUj9XKFq/cUUMMmRQHKFZquh7OBhCRr/aATQ/I97foxKZ9z7A9QA5voyr3dtAAAAAElFTkSuQmCC';
  924. var RSLC_ICON_YELLOW = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAANCAYAAABy6+R8AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH2AQJDBgxYO68rwAAAZNJREFUeNptkr9LW1EcxT/3GhOTKIG8QTpm8B8IIoJTFkFwsXVyUaxFJHYoFzJYUVFHn4sKtoidCoKtIigWOtQOhRKowaFzJwcF0VeJ+fFe7nUwP57R7/S9nO+595z7PQJfGUgAsWqPaUBOC/yrHQI+QjKTXc7GQq4EhP+uKzdUcbtnelvhDzXQQHL2bCkbxhOA5GmZ24LUC73zPWE4lQYSmexynaCmjh5Nq9FdANER1uL9j7nfeUhIIFaVJNXEPrguKvPzgfD2G0iBGt8DkPG4CGiIyapZAWBvDUEoBOfnqPQxaANxC3v7Ze1hoQFpmsTbGwMQicLNNeTz2HaKYuO/4DnTauwLeC6i8wW4ZdSbA9rw/GtB6kaPmjyESATKZVZWUxAMQqnI9MTXOqdGcvRFoSw8o+0Pg1DxsD+PcFcJYH8aphSNsr71CkAH/17danAEQAGSa98zv7x4W9AIpGkRzap18cKU3vUv9lmQq6N5SH7cSZ8Uuqx205SI1rPL/6/HN1MW5GiKC84z2at6dixf9u4B/PqUtJuX27QAAAAASUVORK5CYII=';
  925. var RSLC_ICON_PINK = 'data:image/png;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R9sfD5w0PFl5SvNUyWna6YLTk2fyz4ydlZ19fi753GDborZ752PO32oPb++6EHTh0kX/i+c7vDvOXPK4dPKy2+UTV7hXmq86X23qdOo8/pPTT8e7nLuarrlca7nuer21e2b36RueN87d9L158Rb/1tWeOT3dvfN6b/fF9/XfFt1+cif9zsu72Xcn7q28T7xf9EDtQdlD3YfVP1v+3Njv3H9qwHeg89HcR/cGhYPP/pH1jw9DBY+Zj8uGDYbrnjg+OTniP3L96fynQ89kzyaeF/6i/suuFxYvfvjV69fO0ZjRoZfyl5O/bXyl/erA6xmv28bCxh6+yXgzMV70VvvtwXfcdx3vo98PT+R8IH8o/2j5sfVT0Kf7kxmTk/8EA5jz/GMzLdsAAAAgY0hSTQAAeiUAAICDAAD5/wAAgOkAAHUwAADqYAAAOpgAABdvkl/FRgAAAaJJREFUeNpkkk1rE1EUhp9zJ21NpxJocxctiAQXXYkQQQsG/EJo0a0LyW8ws9KFP0E3HQv6D9x1KbixdTGIlrZuzUJLCM2iEykRJ23S5B4XsZOpPXAW957zXM773iNkQquUgAKAAlpISx3vDXunB8kA5Zbb3hr6l032HtDc7/rQzlWWJt6yk0Japfxr4udWN3dRAMP5UI5bzi5cu5F/ya7RKqWW204BG66c6bart0ePX1iQRjP6krygZIDCv5FMce0+cELx9WMAimuPUCPY8B6AmfYXcy5PwWhGW/vpR2AKdB8bPkScIswRBxupB84Dk3EIgDh4j+CjHIImxLV18sM/Z3rOibard1A5wcg8Kn1s+IAjb2bsiAPjlNNvwYbLINOgfQ5q6yCTqBzjv7qbMgoYl6PTTerSY+Di4ANqBrSDz0z1D2nXPtHr+STPNgFcN6mLm6EjAEfPKTea0Y74V5yHmEm8/6d23aRu7M1KOf4afTMAjWa0e6lUua7JDzNEtceATGoWWHx3a7wu359EzF+tjHfPjYS6kQed2UD3AESEvwMAaQGsQMrwcN0AAAAASUVORK5CYII=';
  926.  
  927. var NEW_ICON_GREEN = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAA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mELrOUIhjeN48HpngTnMbDeWjIeHnsvbz98YXqxguumuazdDOs0HjAETRKNjuFyzTE9PAOO//Xm27lvN4b1c8htkAXC2jrKHN5gVSRcRW0SCIpIj/f2ZAkhTkykiOYu+SLa8e6qkeRNXALh5nEc/phARnaSJSSUnO5G+B8tnIkr6rjMTSqfMZQXZ9vE1xGKJpPe4DDjXAYkEjAwmzwwDLIv0NZlE1MYAjsQoAOL8C5rY2AxPlIjwP/wcACKn3tWfrwJ4AAAAAElFTkSuQmCC';
  930. var NEW_ICON_PINK = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABUklEQVQ4jY3TsUuWURQG8F8WEvFNDREfIg5RURAOIeL0DhJBS0tDY9BQQ0Oj29kiIvoDhBpFQRTUD1GKi0sRtEs0SEQ0RBQIRcVXw3eF6+vrWwcunPvc53nuPffcS0uEmA0x38Y5cohwGjOYxBBe4VGI3j8NQlzHYhaW0cfNEAslWCfBw4yvYhkv8hjCgxD7yMdquw/jbJ4+xq2cz+AKdrJRv9EAv/EDx3Ft75QhtrHdcFpHy0mS/lSqcVzAFM7he6XaTNLXJoOmS+ziOc4XcB893A3xodUgm5zAHdzHSLH0DhdD/GwsoSjlV5Je5nK+YQUTOInXSXq7x6134RQuo4unGf6Me7iKMxgrNfUuXMJazr8U+DA6Of/UZrCF9xjFM3zELpZwOptulIKmLlQGNXdqS7u4EWK9BA9cYpJ2KtWcwaMazcInuB3iTZ3fGv/znf8CBMxX4hrPUbUAAAAASUVORK5CYII=';
  931.  
  932. //global settings end
  933. if (window.opera && !window.console)
  934. {
  935. window.console = {};
  936.  
  937. function fn()
  938. {
  939. opera.postError(arguments);
  940. };
  941. ['log', 'debug', 'info', 'warn', 'error', 'assert', 'dir', 'dirxml', 'group', 'groupEnd', 'time', 'timeEnd', 'count', 'trace', 'profile', 'profileEnd'].forEach(function (name)
  942. {
  943. window.console[name] = fn;
  944. });
  945. }
  946.  
  947. //displays colored text in message box
  948. function sendMessage(text, color)
  949. {
  950. var msgDiv = document.createElement('div');
  951. msgDiv.style.color = color;
  952. msgDiv.innerHTML = text;
  953. messageBox.appendChild(msgDiv);
  954. setTimeout(function(){messageBox.removeChild(msgDiv)}, 3000);
  955. }
  956.  
  957. function linkify(totalourls)
  958. { // code from http://userscripts.org/scripts/review/2254 Linkify ting
  959. var ikkeTilladteTags;
  960. var allLinksRegex = "(?:http:\/\/.+?\\?)?(?:https?:\/\/)?"
  961. + "[0-9A-Za-z]+(?:[\\.-][0-9A-Za-z]+)*\\.[A-Za-z]+/" //instead of totalourls
  962. + "[\\w\\–\\-\\.+$!*\\/()\\[\\]\',~%?:@#&=\\\\\\—;…×Ã\\_\\u0080-\\u03FF’‘" + (Allow_spaces_in_DL_links ? "\\u0020" : "") + "]*";
  963. allLinksRegex = new RegExp(allLinksRegex, "g");
  964. var regexy = "^(?:http:\/\/.+?\\?)?(?:https?:\/\/)?(?:www\\.)?(?:" + totalourls + ")";
  965.  
  966. if (Do_not_linkify_DL_links)
  967. ikkeTilladteTags = ['a', 'head', 'script', 'style', 'title', 'option', 'iframe', 'textarea', 'span']; //tags, hvor det der stAΞ’Β¥r inden i ikke skal vAΞ’Β¦re links
  968. else
  969. ikkeTilladteTags = ['a', 'head', 'script', 'style', 'title', 'option', 'iframe', 'textarea']; //tags, hvor det der stAΞ’Β¥r inden i ikke skal vAΞ’Β¦re links
  970.  
  971. var regex = new RegExp(regexy);
  972. var textNode, muligtLink;
  973.  
  974. var path = "//text()[not(parent::" + ikkeTilladteTags.join(" or parent::") + ") and contains(.,'/')]";
  975. var textNodes = document.evaluate(path, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  976.  
  977. var i = textNodes.snapshotLength;
  978. while (i--)
  979. {
  980. textNode = textNodes.snapshotItem(i);
  981.  
  982. muligtLink = textNode.nodeValue; //all links on page
  983.  
  984. var myArray = null;
  985. var span = null;
  986. var lastLastIndex = 0;
  987. allLinksRegex.lastIndex = 0;
  988. if (/^https?:\/\/~[\w\s\~]*\//.test(muligtLink))
  989. {
  990. if (textNode.parentNode.className == "adead_link") continue;
  991. var censoredLink = muligtLink;
  992. var span = document.createElement('span');
  993. span.className = "adead_link";
  994. $(span).attr('warlc_error', "Cause of error: <b>Censored link.</b>");
  995. $(span).html(censoredLink);
  996. span.addEventListener("mouseover", displayTooltipError, false);
  997. cLinksTotal++; cLinksProcessed++; cLinksDead++;
  998. textNode.parentNode.replaceChild(span, textNode);
  999. continue;
  1000. alert(censoredLink);
  1001. }
  1002. while (myArray = allLinksRegex.exec(muligtLink)) //find all links
  1003. {
  1004. if (!regex.test(myArray[0])) //this link is not recognized
  1005. {
  1006.  
  1007. continue;
  1008. }
  1009. if (!span)
  1010. span = document.createElement('span');
  1011.  
  1012. var link = myArray[0];
  1013. span.appendChild(document.createTextNode(muligtLink.substring(lastLastIndex, myArray.index))); //inds?t det der kommer for dette hit
  1014.  
  1015. var $a = $("<a>" + link + "</a>")
  1016. if (!link.match(/https?:\/\//))
  1017. {
  1018. link = 'http://' + link;
  1019. }
  1020.  
  1021. $a.attr("href", link.replace(/\[\/hide:\w+\]/,""))
  1022. .addClass("processing_link")
  1023. .appendTo(span);
  1024. lastLastIndex = allLinksRegex.lastIndex;
  1025. }
  1026. if (span)
  1027. {
  1028. span.appendChild(document.createTextNode(muligtLink.substring(lastLastIndex))); //ins?t det der kommer efter sidste hit
  1029. textNode.parentNode.replaceChild(span, textNode);
  1030. }
  1031. }
  1032. }
  1033.  
  1034. function add_WARLC_style()
  1035. {
  1036. if (!(document.getElementsByTagName('WARLC')[0]))
  1037. {
  1038. var meta_not_to_add_more_style = document.createElement("WARLC");
  1039. meta_not_to_add_more_style.setAttribute('content', 'war_links_checker');
  1040. meta_not_to_add_more_style.setAttribute('name', 'description');
  1041. document.getElementsByTagName('head')[0].appendChild(meta_not_to_add_more_style);
  1042. alive_link_png = "";
  1043. adead_link_png = "";
  1044. unava_link_png = "";
  1045. prem_link_png = "";
  1046. switch(Icon_set)
  1047. {
  1048. //no icons
  1049. case 0: break;
  1050. // cat paws
  1051. case 1: alive_link_png = PAW_ICON_GREEN;
  1052. adead_link_png = PAW_ICON_RED;
  1053. unava_link_png = PAW_ICON_YELLOW;
  1054. prem_link_png = PAW_ICON_PINK;
  1055. break;
  1056. // classic RSLC look
  1057. case 2: alive_link_png = RSLC_ICON_GREEN;
  1058. adead_link_png = RSLC_ICON_RED;
  1059. unava_link_png = RSLC_ICON_YELLOW;
  1060. prem_link_png = RSLC_ICON_PINK;
  1061. break;
  1062. // New Icons
  1063. case 3: alive_link_png = NEW_ICON_GREEN;
  1064. adead_link_png = NEW_ICON_RED;
  1065. unava_link_png = NEW_ICON_YELLOW;
  1066. prem_link_png = NEW_ICON_PINK;
  1067. break;
  1068. // cat paws
  1069. default:alive_link_png = PAW_ICON_GREEN;
  1070. adead_link_png = PAW_ICON_RED;
  1071. unava_link_png = PAW_ICON_YELLOW;
  1072. prem_link_png = PAW_ICON_PINK;
  1073. break;
  1074. }
  1075. processing_link_gif = 'data:image/gif;base64,' + // or temporary anavailable
  1076. 'R0lGODlhCgAKAJEDAMzMzP9mZv8AAP///yH/C05FVFNDQVBFMi4wAwEAAAAh+QQFAAADACwAAAAACgAKAAACF5wncgaAGgJzJ647cWua4sOBFEd62VEAACH5BAUAAAMALAEAAAAIAAMAAAIKnBM2IoMDAFMQFAAh+QQFAAADACwAAAAABgAGAAACDJwHMBGofKIRItJYAAAh+QQFAAADACwAAAEAAwAIAAACChxgOBPBvpYQYxYAIfkEBQAAAwAsAAAEAAYABgAAAgoEhmPJHOGgEGwWACH5BAUAAAMALAEABwAIAAMAAAIKBIYjYhOhRHqpAAAh+QQFAAADACwEAAQABgAGAAACDJwncqi7EQYAA0p6CgAh+QQJAAADACwHAAEAAwAIAAACCpRmoxoxvQAYchQAOw%3D%3D';
  1077.  
  1078. var dead_color_css, live_color_css, unava_color_css, prem_color_css, black_background_css;
  1079.  
  1080. if (Color_DL_links)
  1081. {
  1082. dead_color_css = 'color:' + Dead_links_color + ' !important;';
  1083. live_color_css = 'color:' + Live_links_color + ' !important;';
  1084. unava_color_css = 'color:' + Temp_unavailable_links_color + ' !important;';
  1085. container_color_css = 'color:' + Container_links_color + ' !important;';
  1086. prem_color_css = 'color:' + Premium_links_color + ' !important;';
  1087. }
  1088. else
  1089. {
  1090. dead_color_css = live_color_css = unava_color_css = container_color_css = prem_color_css = '';
  1091. }
  1092.  
  1093. if (Show_black_background_in_DL_links)
  1094. {
  1095. black_background_css = 'background-color: black !important;';
  1096. }
  1097. else
  1098. {
  1099. black_background_css = '';
  1100. }
  1101.  
  1102. if (Show_line_through_in_dead_links)
  1103. {
  1104. line_through_css = 'text-decoration: line-through !important;';
  1105. }
  1106. else
  1107. {
  1108. line_through_css = '';
  1109. }
  1110.  
  1111. GM_addStyle(".alive_link {background:transparent url(" + alive_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;" + live_color_css + black_background_css + "}");
  1112. 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 + "}");
  1113. GM_addStyle(".unava_link {background:transparent url(" + unava_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;" + unava_color_css + black_background_css + "}");
  1114. GM_addStyle(".processing_link {background:transparent url(" + processing_link_gif + ") no-repeat scroll 100% 50%;padding-right:15px;" + container_color_css + black_background_css + "}");
  1115. GM_addStyle(".container_link {background:transparent url(" + processing_link_gif + ") no-repeat scroll 100% 50%;padding-right:15px;" + container_color_css + black_background_css + "}");
  1116. GM_addStyle(".container_list {font-size:90%; list-style-type:square; padding: 0px 5% 0px; margin: 0px}");
  1117. GM_addStyle(".prem_link {background:transparent url(" + prem_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;" + prem_color_css + black_background_css + "}");
  1118. }
  1119. }
  1120.  
  1121. var warlcTooltip = null;
  1122. var mouseoverLink = null; //link href with mouse cursor over it
  1123.  
  1124. var lastX = 0;
  1125. var lastY = 0;
  1126.  
  1127. $(document).ready(initTooltip);
  1128. //inits tooltip
  1129. function initTooltip()
  1130. { warlcTooltip = document.createElement("div");
  1131. 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;");
  1132. warlcTooltip.style.visibility = "hidden";
  1133. document.body.appendChild(warlcTooltip);
  1134. }
  1135.  
  1136. //"mousemove" event handler for all links
  1137. function moveTooltip(event)
  1138. {
  1139. if ((Math.abs(lastX - event.clientX) + Math.abs(lastY - event.clientY)) < 6)
  1140. { //no need to reflow if the cursor moved just a little
  1141. return;
  1142. }
  1143. else
  1144. {
  1145. lastX = event.clientX;
  1146. lastY = event.clientY;
  1147. }
  1148.  
  1149. posX = event.clientX + window.pageXOffset + 10;
  1150. posY = event.clientY + window.pageYOffset;
  1151. var ttHeight = warlcTooltip.offsetHeight;
  1152. var ttFreeSpace = window.innerHeight - event.clientY;
  1153. if (ttHeight > ttFreeSpace)
  1154. { //prevents tooltip from getting out of the window
  1155. posY -= (ttHeight - (ttFreeSpace)) + 10;
  1156. }
  1157. else
  1158. {
  1159. posY += 7;
  1160. }
  1161. warlcTooltip.style.top = posY + "px";
  1162. warlcTooltip.style.left = posX + "px";
  1163. }
  1164.  
  1165. //"mouseout" event handler for all links
  1166. function hideTooltip(){
  1167. warlcTooltip.style.visibility = "hidden";
  1168. mouseoverLink = null;
  1169. }
  1170.  
  1171.  
  1172. //"mouseover" event handler for dead links
  1173. //displays tooltip error message on dead links
  1174. function displayTooltipError()
  1175. {
  1176. mouseoverLink = this.href;
  1177. this.addEventListener("mouseout", hideTooltip);
  1178. this.addEventListener("mousemove", function(event) { moveTooltip(event); });
  1179. warlcTooltip.innerHTML = '<b>LOADING...</b>';
  1180. warlcTooltip.style.minWidth = 0;
  1181. warlcTooltip.style.visibility = "visible";
  1182. if (this.warlc_error) //an error message is already known and stored in warlc_error attribute
  1183. {
  1184. warlcTooltip.innerHTML = this.warlc_error;
  1185. }
  1186. else
  1187. {
  1188. loadErrorInfo(this);
  1189. }
  1190. function loadErrorInfo(link)
  1191. {
  1192. var href = link.href;
  1193. href = href.replace(/quickshare\.cz\/.+/, "quickshare.cz/chyba");
  1194. GM_xmlhttpRequest({
  1195. method: 'GET',
  1196. url: href.replace(Ref_anonymize_service, ""),
  1197. headers: {
  1198. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1199. 'Accept': 'text/xml',
  1200. 'Referer': ""
  1201. },
  1202. onload: function(result) {
  1203. var res = result.responseText;
  1204. //TODO: errorRegexs -
  1205. var errorRegexs = [ //generic error messages follow
  1206. /(empty directory)/i,
  1207. /(soubor nebyl nalezen)/i,
  1208. /((?:file|page|link|folder)(?:is|not|does|has been|was| ){1,}(?:found|available|blocked|exists?|deleted|removed))/i,
  1209. //server specific error messages follow
  1210. /msg error" style="cursor: default">(.+?)<\/div>/, //sendspace
  1211. /color:red;font\-weight:bold;border\-style:dashed;font-size:12px;border\-width:2px;><tr><td align=center>(.+?)<\/td>/, //fastshare
  1212. /(Takový soubor neexistuje. Je možné, že byl již smazán.)/, //quickshare
  1213. /file_info file_info_deleted">\s*<h1>(.+?)<\/h1>/, //filepost
  1214. /<br \/>\s*<p style="color:#000">(.+?)<\/p>\s*<\/center>/, //letitbit
  1215. /(?:error_div">|<\/h1><p>)<strong>(.+?)<\/strong>/, //share-rapid,quickshare
  1216. /class="red">(.+?)<(?:span|br)>/, //czshare, megashares
  1217. /class="wp640">\s*<h1 class="h1">(.+?)<\/h1>/, //uloz.to
  1218. /not-found">\s*<p>(.+?)<\/p>/, //bayfiles
  1219. /(Your file could not be found. Please check the download link.)/, //stahnu.to
  1220. /error_msg">\s*(<h3>.+?<\/h3><ul>(.+?)<\/ul>)/, //edisk
  1221. /id="obsah">\s*<h2>(.+?)<\/h2>/, //euroshare
  1222. /error">\s*(?:<[bp]>)?\s*(.+?)<\/[bp]>/, //filesmonster, shragle, gigapeta
  1223. ///center aC">\s*<h1>(.+?)<br \/>/, //uploaded.to
  1224. /icon_err">\s*<h1>(.+?)<\/h1>/, //filejungle
  1225. /Code: ER_NFF_\d+<\/h2>\s*(.+?)\s*<\/div>/, //netload
  1226. /(File has been removed due to Copyright Claim)/, //filerio
  1227. ];
  1228. var errorIdx = errorRegexs.length;
  1229. var error = "Cause of error: <b>unknown</b>";
  1230. var errorCandidate = "";
  1231. while(errorIdx--)
  1232. {
  1233. var errorCandidate = res.match(errorRegexs[errorIdx]);
  1234. if (errorCandidate != null)
  1235. {
  1236. error = "Cause of error: <b>" + errorCandidate[1].replace(/&nbsp;/g," ") + "</b>";
  1237. break;
  1238. }
  1239. }
  1240. //link attributes
  1241. link.warlc_error = error;
  1242. if (mouseoverLink == link.href) //mouse cursor is still over the link
  1243. {
  1244. warlcTooltip.innerHTML = error;
  1245. }
  1246. }
  1247. });
  1248. }
  1249. }
  1250.  
  1251. //"mouseover" event handler for alive links
  1252. //displays tooltip info (file size, file name,...) on alive links
  1253. function displayTooltipInfo()
  1254. {
  1255. mouseoverLink = this.href;
  1256. //exclude direct download filehostings
  1257. 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)/))
  1258. {
  1259. return;
  1260. }
  1261. this.addEventListener("mouseout", hideTooltip);
  1262. this.addEventListener("mousemove", function(event) { moveTooltip(event); });
  1263. warlcTooltip.innerHTML = '<b>LOADING...</b>';
  1264. warlcTooltip.style.minWidth = 0;
  1265. warlcTooltip.style.visibility = "visible";
  1266. if (this.warlc_tooltipcache) //file size is already known and stored in warlc_filename and warlc_filesize attributes
  1267. {
  1268. warlcTooltip.innerHTML = this.warlc_tooltipcache;
  1269. }
  1270. else
  1271. {
  1272. loadInfo(this);
  1273. }
  1274. function loadInfo(link)
  1275. {
  1276. var href = link.href;
  1277. GM_xmlhttpRequest({
  1278. method: 'GET',
  1279. url: href.replace(Ref_anonymize_service, ""),
  1280. headers: {
  1281. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1282. 'Accept': 'text/xml',
  1283. 'Referer': ""
  1284. },
  1285. onload: function(result) {
  1286. var res = result.responseText;
  1287. var nameRegexs = [ /Filename: <b class="f_arial f_14px">(.+?)<\/b>/, //oron
  1288. /(?:finfo|file[-_]?name)">\s*(.+?)<\/?(?:h1|a|div|span style|td)/, //hellshare, netload, badongo, 4fastfile
  1289. /fl" title="(.+?)">/, //edisk
  1290. /<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
  1291. /<h3>Stahujete soubor: <\/h3>\s*<div class="textbox">(.+?)<\/div>/, //webshare
  1292. /<h3><b><span style=color:black;>(.+?)<\/b><\/h3><br>/, //fastshare
  1293. /title="download (.+?)">/, //sendspace
  1294. /Stáhnout soubor: (.+?)<\/h1>/, //quickshare
  1295. /fz24">Download:\s*<strong>(.+?)<\/strong>/, //crocko
  1296. // /'file\-icon\d+ \w+'>(?:<\/span><span>)?(.+?)<\/span>/, //hitfile, turbobit
  1297. /d0FileName = "(.+?)";/, //letitbit
  1298. /file(?:_name|-info)" title="">\w+: <span>(.+?)<\/span>/, //vip-file, shareflare
  1299. /recent-comments"><h2>(.+) &nbsp;/, //xdisk
  1300. /fname" value="(.+?)">/, //syfiles, grupload,
  1301. /download\-header">\s*<h2>File:<\/h2>\s*<p title="(.+?)">/, //bayfiles
  1302. /description">\s*<p><b>Soubor: (.+?)<\/b>/, //bezvadata
  1303. /Complete name : (.+?)<br \/>/, //bezvadata
  1304. /itemprop="name">(.+?)<\/span>/, //bezvadata
  1305. ];
  1306. var nameIdx = nameRegexs.length;
  1307. // [sizeRegexs]
  1308. // / \ \?
  1309. // prefix (size) postfix
  1310. // / \
  1311. // val quant
  1312. var quantRegex = '(?:M|G|K)?i?(?:B)(?:[y|i]te?s?)?';
  1313. var valRegex = '\\d+(?:[\\., ]\\d+){0,2}'; // 111([., ]222)?([., ]333)?
  1314. var uniSizeRegex = valRegex + '(?:\\s*|&nbsp;)' + quantRegex;
  1315. var preSizeRegex = '(?::|\\(|>|>, | - )';
  1316. var postSizeRegex = '(?:\\))?';
  1317. var sizeRegexs = [ preSizeRegex + "\\s*(" + uniSizeRegex + ")\\s*" + postSizeRegex,
  1318. 'FileSize_master">(.+?)<\/strong>', //hellshare
  1319. ];
  1320. var sizeIdx = sizeRegexs.length;
  1321. //
  1322. //
  1323. var tooltip = "File Name: <b>";
  1324. var fileName = "unknown";
  1325. var nameCandidate = "";
  1326. while(nameIdx--)
  1327. {
  1328. var nameCandidate = res.match(nameRegexs[nameIdx]);
  1329. if (nameCandidate != null)
  1330. {
  1331. fileName = nameCandidate[1].replace(/&nbsp;/g," ");
  1332. break;
  1333. }
  1334. }
  1335. tooltip += fileName + "</b><br>File Size: <b>";
  1336. var fileSize = "unknown";
  1337. var sizeCandidate = "";
  1338. while(sizeIdx--)
  1339. {
  1340. sizeCandidate = res.match(new RegExp(sizeRegexs[sizeIdx], "i"));
  1341. if (sizeCandidate != null)
  1342. {
  1343. fileSize = sizeCandidate[1].replace(/&nbsp;/g," ");
  1344. if (/^\d+$/.test(fileSize) && fileSize >= 1024) //assume bytes
  1345. {
  1346. if(fileSize > (1<<30)) fileSize = Math.round(10 * fileSize / (1<<30)) / 10 + ' GB';
  1347. else if(fileSize > (1<<20)) fileSize = Math.round(fileSize / (1<<20)) + ' MB';
  1348. else fileSize = Math.round(fileSize / 1024) + ' KB';
  1349. }
  1350. break;
  1351. }
  1352. }
  1353. tooltip += fileSize + "</b>";
  1354. // PROTOTYPE
  1355. // video thumbnails
  1356. if (href.match('hellshare'))
  1357. {
  1358. var thumbs;
  1359. thumbs = res.match(/http:\/\/static\d+\.helldata\.com\/thumbs(?:\/\d+){1,2}\/\d{1,2}"/g);
  1360. if (thumbs)
  1361. {
  1362. tooltip += '<br>';
  1363. var j = Math.min(thumbs.length, 9);
  1364. for (var i = 0; i < j; i++)
  1365. {
  1366. tooltip += '<img src="' + thumbs[i].replace('"',"") + '" width="' + TOOLTIP_THUMBWIDTH + 'px">';
  1367. }
  1368. warlcTooltip.style.minWidth = TOOLTIP_MAXWIDTH;
  1369. }
  1370. }
  1371. if (href.match('czshare'))
  1372. {
  1373. var thumbs;
  1374. thumbs = res.match(/src="http:\/\/www(\d+)\.czshare\.com\/images_velke\/\d+\.(\d+)\.jpeg/);
  1375. if (thumbs)
  1376. {
  1377. var thumbsServer = thumbs[1];
  1378. var thumbsId = thumbs[2];
  1379. tooltip += '<br>';
  1380. for (var i = 1; i < 9; i++)
  1381. {
  1382. tooltip += '<img src="http://www' + thumbsServer + '.czshare.com/images_velke/' + i + '.' + thumbsId + '.jpeg" width="' + TOOLTIP_THUMBWIDTH + 'px">';
  1383. }
  1384. warlcTooltip.style.minWidth = TOOLTIP_MAXWIDTH;
  1385. }
  1386. }
  1387. if (href.match('bezvadata'))
  1388. {
  1389. var thumbs;
  1390. thumbs = res.match(/http:\/\/nahledy\.bezvadata\.cz\/nahledy\/\d+\/\d+\/\d+_\d+_\d+x\d+_\w.jpg/g);
  1391. if (thumbs)
  1392. {
  1393. tooltip += '<br>';
  1394. var j = Math.min(thumbs.length, 9);
  1395. for (var i = 0; i < j; i++)
  1396. {
  1397. tooltip += '<img src="' + thumbs[i] + '" width="' + TOOLTIP_THUMBWIDTH + 'px">';
  1398. }
  1399. warlcTooltip.style.minWidth = TOOLTIP_MAXWIDTH;
  1400. }
  1401. }
  1402. link.warlc_tooltipcache = tooltip;
  1403. if (mouseoverLink == link.href) //mouse cursor is still over the link
  1404. {
  1405. warlcTooltip.innerHTML = tooltip;
  1406. }
  1407. }
  1408. });
  1409. }
  1410. }
  1411.  
  1412. function setVariables()
  1413. {
  1414. if (firstRun)
  1415. {
  1416. GM_log('First run, applying default settings...');
  1417. GM_setValue("Icon_set",1);
  1418. GM_setValue("Display_tooltip_info",true);
  1419. GM_setValue("Show_black_background_in_DL_links",false);
  1420. GM_setValue("Show_line_through_in_dead_links",false);
  1421. GM_setValue("Display_full_links_in_link_containers",false);
  1422. GM_setValue("Allow_spaces_in_DL_links",false);
  1423. GM_setValue("Autocheck",true);
  1424. GM_setValue("Enable_Anonymizer",false);
  1425. GM_setValue("Do_not_linkify_DL_links",false);
  1426. GM_setValue("Show_progress_stats",true);
  1427. GM_setValue("Keyboard_functions",true);
  1428. GM_setValue("Obsolete_file_hosts",false);
  1429. GM_setValue("Color_DL_links",true);
  1430. GM_setValue("Live_links_color","Green");
  1431. GM_setValue("Dead_links_color","#FF3300");
  1432. GM_setValue("Temp_unavailable_links_color","#F7EF09");
  1433. GM_setValue("Container_links_color","DarkKhaki");
  1434. GM_setValue("Premium_links_color","DeepPink");
  1435. GM_setValue("Ref_anonymize_service","http://hiderefer.com/?");
  1436. GM_setValue("Custom_rules",false);
  1437. GM_setValue("Custom_rules_text","");
  1438. GM_setValue("First_run", false);
  1439. }
  1440. //hidden settings
  1441. GM_setValue("Progress_box_pos_bottom", Progress_box_pos_bottom = GM_getValue("Progress_box_pos_bottom", 20));
  1442. GM_setValue("Progress_box_pos_right", Progress_box_pos_right = GM_getValue("Progress_box_pos_right", 10));
  1443. GM_setValue("Progress_box_opacity", Progress_box_opacity = GM_getValue("Progress_box_opacity", 85));
  1444. GM_setValue("Progress_box_background_color", Progress_box_background_color = GM_getValue("Progress_box_background_color", 'DimGray'));
  1445. GM_setValue("Progress_box_item_color", Progress_box_item_color = GM_getValue("Progress_box_item_color", 'DimGray'));
  1446. GM_setValue("Progress_box_refresh_rate", Progress_box_refresh_rate = GM_getValue("Progress_box_refresh_rate", 2000));
  1447. GM_setValue("Debug_mode", DEBUG_MODE = GM_getValue("Debug_mode", false));
  1448. //hidden settings end
  1449.  
  1450. Icon_set = GM_getValue("Icon_set", 1); //0 - no icons, 1 - cat paws, 2 - old RSLC style, 3 - New Icons,
  1451. Display_tooltip_info = GM_getValue("Display_tooltip_info", true);
  1452. Show_black_background_in_DL_links = GM_getValue("Show_black_background_in_DL_links", false);
  1453. Show_line_through_in_dead_links = GM_getValue("Show_line_through_in_dead_links", false);
  1454. Display_full_links_in_link_containers = GM_getValue("Display_full_links_in_link_containers", false);
  1455. Allow_spaces_in_DL_links = GM_getValue("Allow_spaces_in_DL_links", false);
  1456. Autocheck = GM_getValue("Autocheck", true);
  1457. Enable_Anonymizer = GM_getValue("Enable_Anonymizer", false);
  1458. Do_not_linkify_DL_links = GM_getValue("Do_not_linkify_DL_links", false);
  1459. Show_progress_stats = GM_getValue("Show_progress_stats", true);
  1460. Keyboard_functions = GM_getValue("Keyboard_functions", true);
  1461. Obsolete_file_hosts = GM_getValue("Obsolete_file_hosts", false);
  1462. Color_DL_links = GM_getValue("Color_DL_links", true);
  1463. Live_links_color = GM_getValue("Live_links_color", "Green");
  1464. Dead_links_color = GM_getValue("Dead_links_color", "#FF3300");
  1465. Temp_unavailable_links_color = GM_getValue("Temp_unavailable_links_color", "#F7EF09");
  1466. Container_links_color = GM_getValue("Container_links_color", "DarkKhaki");
  1467. Premium_links_color = GM_getValue("Premium_links_color", "DeepPink");
  1468. Ref_anonymize_service = GM_getValue("Ref_anonymize_service", "http://hiderefer.com/?");
  1469. Custom_rules = GM_getValue("Custom_rules", false);
  1470. Custom_rules_text = GM_getValue("Custom_rules_text", false);
  1471. }
  1472.  
  1473.  
  1474. // Delinkifies the links
  1475. // params:
  1476. // links -> list of links or link components (note they should be sufficiently unique to identify the link on page,
  1477. // e.g. 'uloz.to/xs68skxl8')
  1478. function delinkifySnapshot(snapshot)
  1479. {
  1480. var n = snapshot.snapshotLength;
  1481.  
  1482. while (n--)
  1483. {
  1484. thisLink = snapshot.snapshotItem(n);
  1485.  
  1486. var spanElm = document.createElement("span");
  1487. spanElm.className = thisLink.className;
  1488. spanElm.innerHTML = thisLink.innerHTML;
  1489.  
  1490. if (Display_tooltip_info)
  1491. {
  1492. spanElm.href = thisLink.href;
  1493. switch (thisLink.className){
  1494. case "alive_link": spanElm.addEventListener("mouseover", displayTooltipInfo, false); break
  1495. case "adead_link": spanElm.addEventListener("mouseover", displayTooltipError, false); break;
  1496. case "unava_link": //reserved
  1497. default:
  1498. }
  1499. }
  1500. thisLink.parentNode.replaceChild(spanElm, thisLink);
  1501. }
  1502. }
  1503.  
  1504. function processContainers()
  1505. {
  1506. var redirectorTypes = { "HTTP_302": 0,
  1507. "INNER_LINK": 1,
  1508. "THELOO_KATT_IT": 2,
  1509. "CING_BE": 3,
  1510. "ADF_LY": 4};
  1511. var cMultiloadTotal = 0;
  1512. var cMultiloadProcessed = 0;
  1513.  
  1514. var cMirrorcreatorComTotal = 0;
  1515. var cMirrorcreatorComProcessed = 0;
  1516.  
  1517. var hostRestrictionRegex = "";
  1518. var multiloadComRestriction = "";
  1519. var multiloadComRestrictionRegex;
  1520.  
  1521. //
  1522. //HANDLING REDIRECTORS START
  1523. //
  1524.  
  1525. var redirectors = new Array();
  1526. initRedirectors();
  1527.  
  1528. var redirectorsCount = redirectors.length;
  1529.  
  1530. if (redirectorsCount > 0)
  1531. {
  1532. var allRedirectorsRegex = "";
  1533.  
  1534. //linkify redirector links
  1535. for(var redirIdx = 0; redirIdx < redirectorsCount; redirIdx++)
  1536. {
  1537. allRedirectorsRegex += redirectors[redirIdx].linkRegex + "|";
  1538. }
  1539. allRedirectorsRegex = allRedirectorsRegex.replace(/\|$/, "");
  1540. linkify(allRedirectorsRegex);
  1541. //
  1542. //process redirector links
  1543. for(var redirIdx = 0; redirIdx < redirectorsCount; redirIdx++)
  1544. {
  1545. var redirectorsSnapshot = document.evaluate(redirectors[redirIdx].xpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  1546. redirectors[redirIdx].cTotal = redirectorsSnapshot.snapshotLength;
  1547.  
  1548. cLinksTotal += redirectors[redirIdx].cTotal;
  1549. var linkIdx = redirectors[redirIdx].cTotal;
  1550.  
  1551. while(linkIdx--)
  1552. {
  1553. switch(redirectors[redirIdx].type)
  1554. {
  1555. case redirectorTypes.HTTP_302: processRedirectorLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1556. case redirectorTypes.INNER_LINK: processRedirectorLinkEx(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1557. case redirectorTypes.THELOO_KATT_IT: processThelooKattItLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1558. case redirectorTypes.CING_BE: processCingBeLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1559. case redirectorTypes.ADF_LY: processAdfLyLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1560. default:
  1561. }
  1562. }
  1563. }
  1564. //
  1565. }
  1566.  
  1567. //HTTP_302
  1568. function processRedirectorLink(link, redirectorId)
  1569. {
  1570. link.className = 'container_link';
  1571.  
  1572. GM_xmlhttpRequest({
  1573. method: 'HEAD',
  1574. url: link.href,
  1575. headers: {
  1576. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1577. 'Accept': 'text/xml',
  1578. 'Referer': ""
  1579. },
  1580. onload: function(result) {
  1581. if (result.finalUrl.replace("https", "http") == link.href) // service hasn't redirected anywhere
  1582. {
  1583. processRedirectorLink(link, redirectorId);
  1584. }
  1585. else
  1586. {
  1587. redirectors[redirectorId].cProcessed++;
  1588. link.href = result.finalUrl;
  1589. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  1590. checkLinks('container_link');
  1591. }
  1592. },
  1593. onerror: function(result) { //probably caused by unresponsive filehosting
  1594. redirectors[redirectorId].cProcessed++;
  1595. link.className = 'unava_link';
  1596. cLinksProcessed++;
  1597. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  1598. checkLinks('container_link');
  1599. }
  1600. });
  1601. }
  1602. //INNER_LINK
  1603. function processRedirectorLinkEx(link, redirectorId)
  1604. {
  1605. link.className = 'container_link';
  1606. GM_xmlhttpRequest({
  1607. method: 'GET',
  1608. url: link.href,
  1609. headers: {
  1610. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1611. 'Accept': 'text/xml',
  1612. 'Referer': ""
  1613. },
  1614. onload: function(result) {
  1615. link.href = result.responseText.match(redirectors[redirectorId].innerLinkRegex)[1];
  1616. redirectors[redirectorId].cProcessed++;
  1617. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  1618. checkLinks('container_link');
  1619. }
  1620. });
  1621. }
  1622. //theloo.katt.it (wrapped safelinking.net)
  1623. function processThelooKattItLink(link, redirectorId)
  1624. {
  1625. link.className = 'container_link';
  1626. GM_xmlhttpRequest({
  1627. method: 'GET',
  1628. url: link.href,
  1629. headers: {
  1630. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1631. 'Accept': 'text/xml',
  1632. 'Referer': ""
  1633. },
  1634. onload: function(result) {
  1635. link.href = result.responseText.match(redirectors[redirectorId].innerLinkRegex)[1];
  1636. redirectors[redirectorId].cProcessed++;
  1637. //the inner links are safelinking.net links, so lets proceed with it
  1638. if (GM_getValue("Check_safelinking_dot_net_links", false))
  1639. {
  1640. processRedirectorLink(link, 0);
  1641. }
  1642. }
  1643. });
  1644. }
  1645. //adf.ly (adf.ly/go innerLink, locking mechanism)
  1646. function processAdfLyLink(link, redirectorId)
  1647. {
  1648. link.className = 'container_link';
  1649. GM_xmlhttpRequest({
  1650. method: 'GET',
  1651. url: link.href,
  1652. headers: {
  1653. 'User-agent': 'Mozilla/4.0',
  1654. 'Accept': 'text/xml',
  1655. 'Referer': ""
  1656. },
  1657. onload: function(result) {
  1658. if (result.finalUrl.match('/locked/'))
  1659. {
  1660. var delay = result.responseText.match(/countdown">(\d+)</)[1];
  1661. // GM_log(result.finalUrl + 'is locked. Repeating the request in ' + delay + 's.');
  1662. // setTimeout(function(){processAdfLyLink(link, redirectorId);}, delay * 1000);
  1663. }
  1664. else
  1665. {
  1666. // GM_log('Processing... ' + link.href);
  1667. // GM_log('Found...' + result.responseText.match(/\/go\/(\w+\/\w+)/)[1]);
  1668. var directLink = 'http://adf.ly' + result.responseText.match(/(\/go\/\w+\/\w+)/)[1];
  1669. var logToken = result.responseText.match(/flashy_(\w+)/)[1];
  1670. var users = result.responseText.match(/user=\d+&user2=\d+/);
  1671. //confirm advert
  1672. GM_xmlhttpRequest(
  1673. {
  1674. method: 'POST',
  1675. url: 'http://adf.ly/l.php',
  1676. headers: {
  1677. 'User-agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20100101 Firefox/13.0',
  1678. 'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
  1679. 'Referer': link.href
  1680. },
  1681. data: users + '&lt=' + logToken,
  1682. onload: function(result) {
  1683. //retrieve final url from .../go/... link
  1684. GM_xmlhttpRequest({
  1685. method: 'GET',
  1686. url: directLink,
  1687. headers: {
  1688. 'User-agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20100101 Firefox/13.0',
  1689. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  1690. 'Referer': link.href
  1691. },
  1692. onload: function(result) {
  1693. link.href = result.finalUrl;
  1694. redirectors[redirectorId].cProcessed++;
  1695. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  1696. checkLinks('container_link');
  1697. }
  1698. });
  1699. }
  1700. });
  1701. }
  1702. }
  1703. });
  1704. function proceedOK()
  1705. {
  1706. }
  1707. }
  1708. //MULTILOAD.CZ START
  1709. if (GM_getValue("Check_multiload_dot_cz_links", false))
  1710. {
  1711. var mlRegex = 'multiload\\.cz\/stahnout\/\\d+\/';
  1712. var mlXpath = "//a[contains(@href,'http://www.multiload.cz/stahnout')]";
  1713.  
  1714. hostRestrictionRegex = 'Upload se nezdařil|limit exceeded|probíhá reupload|';
  1715.  
  1716. if (GM_getValue("Check_hellshare_dot_com_links", false))
  1717. hostRestrictionRegex += 'hellshare|';
  1718. if (GM_getValue("Check_share_dash_rapid_dot_com_links", false))
  1719. hostRestrictionRegex += 'share-rapid\\.com|';
  1720. if (GM_getValue("Check_quickshare_dot_cz_links", false))
  1721. hostRestrictionRegex += 'quickshare\\.cz|';
  1722. if (GM_getValue("Check_czshare_dot_com_links", false))
  1723. hostRestrictionRegex += 'czshare\\.com|';
  1724. if (GM_getValue("Check_uloz_dot_to_links", false))
  1725. hostRestrictionRegex += 'uloz\\.to|';
  1726. if (GM_getValue("Check_hellspy_dot_com_links", false))
  1727. hostRestrictionRegex += 'hellspy|';
  1728. if (GM_getValue("Check_multishare_dot_cz_links", false))
  1729. hostRestrictionRegex += 'multishare\\.cz|';
  1730.  
  1731. hostRestrictionRegex = hostRestrictionRegex.replace(/\|$/, "");
  1732.  
  1733. linkify(mlRegex);
  1734.  
  1735. var mlSnapshot = document.evaluate(mlXpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  1736. var mlCount = mlSnapshot.snapshotLength;
  1737.  
  1738. if (mlCount > 0)
  1739. {
  1740. cMultiloadTotal += mlCount;
  1741.  
  1742. mlIdx = mlCount - 1;
  1743. do
  1744. {
  1745. processMultiloadLink(mlSnapshot.snapshotItem(mlIdx));
  1746. }
  1747. while(mlIdx--)
  1748. }
  1749. }
  1750. //MULTILOAD.CZ END
  1751.  
  1752.  
  1753.  
  1754. function processMultiloadLink(mlLink)
  1755. {
  1756. GM_xmlhttpRequest({
  1757. method: 'GET',
  1758. url: mlLink.href,
  1759. headers: {
  1760. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1761. 'Accept': 'text/xml',
  1762. 'Referer': ""
  1763. },
  1764. onload: function(result) {
  1765. var res = result.responseText;
  1766.  
  1767. var innerBlockRegex = /<p class="manager-linky">(?:.|\s)+?<\/p>/g;
  1768. 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;
  1769. var innerLinkRegex = /((?:Upload se nezdařil.+|https?:\/\/(?:.|\s)+|Právě probíhá reupload, buďte trpěliví\.\.\.))</;
  1770. var mlRestrictionRegex = new RegExp(hostRestrictionRegex,"g"); //what links should be displayed
  1771.  
  1772. var blocks; // blocks of links
  1773. var blockIdx;
  1774.  
  1775. mlLink.className = '';
  1776.  
  1777. if (result.status == 503) //service temporarily unavailable, repeat request in one second
  1778. {
  1779. setTimeout(function(){ processMultiloadLink(mlLink); }, 1000);
  1780. return;
  1781. }
  1782.  
  1783. blocks = res.match(innerBlockRegex);
  1784.  
  1785. if (blocks == null) //no links found, cancel further processing
  1786. {
  1787. mlLink.parentNode.appendChild(document.createTextNode(' | Požadovaný soubor neexistuje.'));
  1788. cMultiloadProcessed++;
  1789. if (cMultiloadTotal <= cMultiloadProcessed)
  1790. {
  1791. startBulkCheck('container_link');
  1792. start('container_link');
  1793. }
  1794. return;
  1795. }
  1796.  
  1797. blockIdx = blocks.length;
  1798.  
  1799. if (Display_full_links_in_link_containers)
  1800. {
  1801. var ulElm = document.createElement('ul');
  1802. ulElm.className = 'container_list'; //CSS smaller font, padding, margin, square style
  1803.  
  1804. while(blockIdx--)
  1805. {
  1806. if (blocks[blockIdx].match(mlRestrictionRegex) == null)
  1807. {
  1808. continue;
  1809. }
  1810.  
  1811. var innerLinks = blocks[blockIdx].match(innerLinksRegex);
  1812.  
  1813. var linkIdx = innerLinks.length;
  1814. while (linkIdx--)
  1815. {
  1816. var innerLink = innerLinks[linkIdx].match(innerLinkRegex)[1];
  1817.  
  1818. var liElm = document.createElement('li');
  1819.  
  1820. if (innerLink.match(/Upload se nezdařil|limit exceeded|probíhá reupload/))
  1821. {
  1822. liElm.appendChild(document.createTextNode(innerLink));
  1823. }
  1824. else
  1825. {
  1826. var aElm = document.createElement('a');
  1827. aElm.innerHTML = innerLink;
  1828. aElm.href = innerLink;
  1829. aElm.className = 'container_link';
  1830.  
  1831. liElm.appendChild(aElm);
  1832. }
  1833.  
  1834. ulElm.appendChild(liElm);
  1835. cLinksTotal++;
  1836. }
  1837. }
  1838.  
  1839. mlLink.parentNode.appendChild(ulElm);
  1840. }
  1841. else //compact view
  1842. {
  1843. mlLink.parentNode.appendChild(document.createTextNode("|"));
  1844.  
  1845. while(blockIdx--)
  1846. {
  1847. if (blocks[blockIdx].match(mlRestrictionRegex) == null)
  1848. {
  1849. continue;
  1850. }
  1851.  
  1852. var innerLinks = blocks[blockIdx].match(innerLinksRegex);
  1853.  
  1854. var linkIdx = innerLinks.length;
  1855. while (linkIdx--)
  1856. {
  1857. var innerLink = innerLinks[linkIdx].match(innerLinkRegex)[1];
  1858.  
  1859. if (innerLink.match(/Upload se nezdařil|limit exceeded|probíhá reupload/))
  1860. {
  1861. mlLink.parentNode.appendChild(document.createTextNode("----"));
  1862. }
  1863. else
  1864. {
  1865. var aElm = document.createElement('a');
  1866.  
  1867. var hostName = innerLink.match(/quickshare|hellshare|uloz\.to|multishare|hellspy|share\-rapid|czshare/);
  1868.  
  1869. //abbreviate host name
  1870. switch(hostName + ""){
  1871.  
  1872. case 'quickshare': aElm.innerHTML = 'QS'; break;
  1873. case 'hellshare': aElm.innerHTML = 'HS'; break;
  1874. case 'uloz.to': aElm.innerHTML = 'UT'; break;
  1875. case 'multishare': aElm.innerHTML = 'MS'; break;
  1876. case 'hellspy': aElm.innerHTML = 'hs'; break;
  1877. case 'share-rapid': aElm.innerHTML = 'SR'; break;
  1878. case 'czshare': aElm.innerHTML = 'CS'; break;
  1879. default: aElm.innerHTML = 'xx';
  1880.  
  1881. }
  1882.  
  1883. aElm.href = innerLink;
  1884. aElm.className = 'container_link';
  1885.  
  1886. mlLink.parentNode.appendChild(aElm);
  1887. cLinksTotal++;
  1888. }
  1889. }
  1890.  
  1891. mlLink.parentNode.appendChild(document.createTextNode("|")); //blocks delimiter
  1892.  
  1893. }
  1894. }
  1895.  
  1896. cMultiloadProcessed++;
  1897. if (cMultiloadTotal == cMultiloadProcessed) //start check when all ml links have been processed
  1898. {
  1899. if (Do_not_linkify_DL_links)
  1900. {
  1901. delinkifySnapshot(mlSnapshot);
  1902. }
  1903. startBulkCheck('container_link');
  1904. start('container_link');
  1905. }
  1906. }
  1907. });
  1908. }
  1909.  
  1910.  
  1911. if (GM_getValue("Check_mirrorcreator_dot_com_links", false))
  1912. {
  1913. var mcRegex = 'mirrorcreator\\.com/files/(\\w+)';
  1914. var mcXpath = "//a[contains(@href,'mirrorcreator.com/files')]";
  1915. var mcShortHostNames =
  1916. '?? 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';
  1917. // 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
  1918. //?????? depositfiles sendspace load.to ul.to storage.to uploadbox x7.to fileserve ?????? duckload filehook filepost jumbofiles glumbouploads
  1919. // zshare ?????? 2shared uploading ugotfile extabit oron eyvx uploadstation putlocker
  1920. // megaupload badongo megashare gamefront ifile ?????? letitbit ?????? ?????? filejungle megashares
  1921. // easy-share ?????? netload zippyshare ?????? filesonic turbobit enterupload ?????? filekeen wupload crocko fileflyer
  1922.  
  1923. linkify(mcRegex);
  1924.  
  1925. var mcSnapshot = document.evaluate(mcXpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  1926. var mcCount = mcSnapshot.snapshotLength;
  1927.  
  1928. cMirrorcreatorComTotal = mcCount;
  1929.  
  1930. if (mcCount > 0)
  1931. {
  1932. mcShortHostNames = mcShortHostNames.split(' ');
  1933. mcIdx = mcCount;
  1934. while(mcIdx--)
  1935. processMirrorcreatorLink(mcSnapshot.snapshotItem(mcIdx));
  1936. }
  1937.  
  1938. }
  1939. //MIRRORCREATOR.CZ END
  1940.  
  1941.  
  1942. //mirrorcreator.com checking works like this:
  1943. //The base URL is http://www.mirrorcreator.com/files/XXXXXXXX/filename_links
  1944. //the actual list of mirrors is at http://www.mirrorcreator.com/status.php?uid=XXXXXXXX
  1945. //the list contains links in the form of (http://www.mirrorcreator.com)/redirect/XXXXXXXX/1
  1946. //these redirector links are extracted with mcLinkBlockRegex and the pages loaded
  1947. //they contain the actual filehost links, which are extracted with mcHostRegex and displayed in a container list
  1948. function processMirrorcreatorLink(mcLink)
  1949. {
  1950. var mcURL = mcLink.href.match(mcRegex);
  1951. if(!mcURL || !mcURL[1]) return;
  1952. mcURL = 'http://www.mirrorcreator.com/status.php?uid=' + mcURL[1]; //link correction
  1953. GM_xmlhttpRequest({
  1954. method: 'GET',
  1955. url: mcURL,
  1956. headers: {
  1957. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1958. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*'+'/*;q=0.8',
  1959. 'Referer': ""
  1960. },
  1961. onload: function(mcLinkResult) {
  1962. var mcLinkRes = mcLinkResult.responseText;
  1963.  
  1964. var mcLinkBlockRegex = /(\/redirect\/\w+\/(\d+))/gi;
  1965. var mcHostRegex = /<div id="redirectlink">.*?<a href="([^"]+)"/;
  1966.  
  1967. var mcRedirectors;
  1968. var mcHostURLs = [], mcRedirectorIDs = [], mcHostsFound = 0, mcHostsRetrieved = 0, mcHostsToProcess = 0;
  1969. var m = mcLinkRes.match(mcLinkBlockRegex);
  1970. if (m)
  1971. mcHostsFound = m.length;
  1972. else
  1973. { //no files inside container
  1974. processMirrorcreatorFoundHosts(mcLink, []);
  1975. return;
  1976. }
  1977.  
  1978. var mcRedirectorURL, idx, timedOut = false;
  1979.  
  1980. var gmxhrFunc = function(mcRedirectorURL){ //Tampermonkey doesn't know neither this.url or result.finalUrl
  1981. GM_xmlhttpRequest({
  1982. method: 'GET',
  1983. url: mcRedirectorURL,
  1984. headers: {
  1985. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1986. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*'+'/*;q=0.8',
  1987. 'Referer': ""
  1988. },
  1989. onload: function(mcHostResult) {
  1990. if (timedOut) return; //too late, the list is already displayed
  1991. var mcHostRes = mcHostResult.responseText;
  1992. var mcHost = mcHostRes.match(mcHostRegex);
  1993. idx = mcHostURLs.indexOf(mcRedirectorURL);
  1994. if (mcHost && idx!=-1)
  1995. {
  1996. mcHostURLs[idx] = mcHost[1].replace(/^\s+|\s+$/g, '');
  1997. mcHostsRetrieved++;
  1998. mcHostsToProcess++;
  1999. if (mcHostsFound == mcHostsRetrieved) //this is the last one!
  2000. {
  2001. processMirrorcreatorFoundHosts(mcLink, mcHostURLs, mcRedirectorIDs);
  2002. mcHostsToProcess = 0;
  2003. }
  2004. }
  2005. } //end of onload: function
  2006. }); //end of GM_xmlhttpRequest call
  2007. };//end of var gmxhrFunc
  2008.  
  2009. while (mcRedirectors = mcLinkBlockRegex.exec(mcLinkRes))
  2010. { //load individual redirector pages
  2011. mcRedirectorURL = 'http://www.mirrorcreator.com' + mcRedirectors[1];
  2012. mcHostURLs.push(mcRedirectorURL);
  2013. mcRedirectorIDs.push(mcRedirectors[2]);
  2014. gmxhrFunc(mcRedirectorURL);
  2015. } //end of while block
  2016.  
  2017. setTimeout(function(){ //in case the last page fails to load and call the function
  2018. timedOut = true;
  2019. if (mcHostsToProcess)
  2020. processMirrorcreatorFoundHosts(mcLink, mcHostURLs);
  2021. }, 60000);
  2022.  
  2023. } //end of onload function
  2024. }); //end of GM_xmlhttpRequest call
  2025. } //end of function processMirrorcreatorLink
  2026.  
  2027.  
  2028. function processMirrorcreatorFoundHosts(mcLink, mcHostURLs, mcRedirectorIDs)
  2029. {
  2030. var aEl, liEl, docFrag;
  2031. var hostName, mcRedirectorID, trimFilename = false;
  2032. var i = mcHostURLs.length;
  2033. if (i == 0)
  2034. {
  2035. trimFilename = true;
  2036. mcLink.parentNode.insertBefore(document.createTextNode(' | No files inside container'), mcLink.nextSibling);
  2037. }
  2038. else
  2039. {
  2040. if (Display_full_links_in_link_containers)
  2041. { //full view
  2042. var wrapperEl = document.createElement('span');
  2043. wrapperEl.style.display = 'block';
  2044. var ulistEl = document.createElement('ul');
  2045. ulistEl.className = 'container_list';
  2046. while (i--)
  2047. {
  2048. liEl = document.createElement('li');
  2049. aEl = document.createElement('a');
  2050. aEl.appendChild(document.createTextNode(mcHostURLs[i]));
  2051. aEl.href = mcHostURLs[i];
  2052. aEl.className = 'container_link';
  2053. liEl.appendChild(aEl);
  2054. ulistEl.appendChild(liEl);
  2055. }
  2056. wrapperEl.appendChild(ulistEl);
  2057. mcLink.parentNode.replaceChild(wrapperEl, mcLink);
  2058. wrapperEl.insertBefore(mcLink, wrapperEl.firstChild);
  2059. }
  2060. else
  2061. { //compact view
  2062. trimFilename = true;
  2063. docFrag = document.createDocumentFragment();
  2064. docFrag.appendChild(document.createTextNode(' |'));
  2065. while (i--)
  2066. {
  2067. mcRedirectorID = mcRedirectorIDs[i];
  2068. hostName = mcHostURLs[i];
  2069. if (mcRedirectorID > mcShortHostNames.length-1 || mcShortHostNames[mcRedirectorID] == '??')
  2070. hostName = hostName.replace(/https?:\/\/(?:www\.)?([-0-9a-z]+(?:\.[-0-9a-z]+)?)\.[a-z]+\/.*/i, '$1').toUpperCase();
  2071. else
  2072. hostName = mcShortHostNames[mcRedirectorID];
  2073. aEl = document.createElement('a');
  2074. aEl.href = mcHostURLs[i];
  2075. aEl.className = 'container_link';
  2076. aEl.appendChild(document.createTextNode(hostName));
  2077. docFrag.appendChild(aEl);
  2078. docFrag.appendChild(document.createTextNode('|'));
  2079. }
  2080. mcLink.parentNode.insertBefore(docFrag, mcLink.nextSibling);
  2081. } //end of else block
  2082. } //end of else block
  2083. mcLink.className = '';
  2084. if (trimFilename)
  2085. mcLink.firstChild.nodeValue = mcLink.firstChild.nodeValue.replace(/(https?:\/\/[^\/]+\/files\/\w+\/).+/, '$1...');
  2086. cMirrorcreatorComProcessed++;
  2087. if (cMirrorcreatorComProcessed == cMirrorcreatorComTotal) //start check when all mc links have been processed
  2088. {
  2089. if (Do_not_linkify_DL_links)
  2090. delinkifySnapshot(mcSnapshot);
  2091. startBulkCheck('container_link');
  2092. start('container_link');
  2093. }
  2094. } //end of function processMirrorcreatorFoundHosts
  2095.  
  2096. containers_processed = true;
  2097.  
  2098.  
  2099. function initRedirectors()
  2100. {
  2101. function addRedirector(linkRegex, xpathEx, redirType, innerLinkRegex)
  2102. {
  2103. var redirector = new Object();
  2104. redirector.linkRegex = linkRegex;
  2105. redirector.xpath = xpathEx; //xpath expression
  2106. redirector.cProcessed = 0; //processed links count
  2107. redirector.cTotal = 0; //total links count
  2108. redirector.type = redirType; //redirectorTypes enum
  2109. redirector.innerLinkRegex = innerLinkRegex; //innerLink, null if unused
  2110. redirectors.push(redirector);
  2111. }
  2112. if (GM_getValue("Check_safelinking_dot_net_links", false))
  2113. {
  2114. addRedirector(
  2115. 'safelinking\\.net\/d\/\\w+',
  2116. "//a[contains(@href,'safelinking.net/d/')]",
  2117. redirectorTypes.HTTP_302,
  2118. null);
  2119. }
  2120. if (GM_getValue("Check_linksafe_dot_me_links", false))
  2121. {
  2122. addRedirector(
  2123. 'linksafe\\.me\/d\/\\w+',
  2124. "//a[contains(@href,'linksafe.me/d/')]",
  2125. redirectorTypes.HTTP_302,
  2126. null);
  2127. }
  2128. if (GM_getValue("Check_linkto_dot_net_links", false))
  2129. {
  2130. addRedirector(
  2131. 'linkto\\.net\/\\?\\w+\\.\\d+',
  2132. "//a[contains(@href,'linkto.net/?')]",
  2133. redirectorTypes.INNER_LINK,
  2134. /<iframe id="iframe" name="iframe" src="(.+?)\s*" frameborder="0"/);
  2135. }
  2136. if (GM_getValue("Check_theloo_dot_katt_dot_it_links", false))
  2137. {
  2138. addRedirector(
  2139. '(?:the)?loo\\.katt\\.it\/\\w+',
  2140. "//a[contains(@href,'loo.katt.it/')]",
  2141. redirectorTypes.THELOO_KATT_IT,
  2142. /Proceed to URL - <a href="(.+?)">/);
  2143. }
  2144. if (GM_getValue("Check_madlink_dot_sk_links", false))
  2145. {
  2146. addRedirector(
  2147. 'madlink\\.sk\/\\w+',
  2148. "//a[contains(@href,'madlink.sk/')]",
  2149. redirectorTypes.INNER_LINK,
  2150. /name="url" value="(.+?)\s*"\/>/);
  2151. }
  2152. if (GM_getValue("Check_adf_dot_ly_links", false))
  2153. {
  2154. addRedirector(
  2155. '(?:adf\\.ly|[u9]\\.bb|[qj]\\.gs)\/\\w+',
  2156. "//a[contains(@href,'adf.ly/') (@href,'u.bb/') or contains(@href,'9.bb/') or contains(@href,'q.gs/') or contains(@href,'j.gs/')]",
  2157. redirectorTypes.ADF_LY,
  2158. null);
  2159. }
  2160. if (GM_getValue("Check_redi_dot_re_links", false))
  2161. {
  2162. addRedirector(
  2163. 'redi\\.re\/\\w+',
  2164. "//a[contains(@href,'redi.re/')]",
  2165. redirectorTypes.HTTP_302,
  2166. null);
  2167. }
  2168. if (GM_getValue("Check_bit_dot_ly_links", false))
  2169. {
  2170. addRedirector(
  2171. 'bit\\.ly\/\\w+',
  2172. "//a[contains(@href,'bit.ly/')]",
  2173. redirectorTypes.HTTP_302,
  2174. null);
  2175. }
  2176. }
  2177.  
  2178. }
  2179.  
  2180. var bulkHosts = new Array();
  2181. var bulkHostNames = new Array();
  2182. function initBulkCheck()
  2183. {
  2184. /////////////////////////////
  2185. // Inits filehost object
  2186. /////////////////////////////
  2187. // params :
  2188. // hostName -- [string] host name (multiple domains separated with coma)
  2189. // linkRegex -- [string] link regex
  2190. // xpath -- [string] xpath expression to detect the link objects with evaluate
  2191. // blockSize -- [integer] max. number of links sent in one request, 50 if null
  2192. // corrMatch -- [regex] link correction regex (match), applied prior to corrRepl
  2193. // corrReplWhat -- [regex] link correction regex (replace)
  2194. // corrReplWith -- [string]
  2195. // splitSeparator -- [string] POSTDATA links separator, "\r\n" if null
  2196. //
  2197. // apiUrl -- [string] web linkchecker or API URL
  2198. // postData -- [string] POSTDATA of xmlhttprequest
  2199. // resLinkRegex -- [regex]
  2200. // resLiveRegex -- [regex] matches substrings containing live links in the request response
  2201. // resDeadRegex -- [regex] matches substrings containing dead links in the request response
  2202. // resUnavaRegex -- [regex] matches substrings containing unava links in the request response
  2203. // func -- [function] bulkcheck handler, genBulkCheck if null
  2204. //
  2205. //////////////////////////////
  2206. function addHost(hostName, linkRegex, xpath, blockSize, corrMatch, corrReplWhat, corrReplWith, splitSeparator,
  2207. apiUrl, postData, resLinkRegex, resLiveRegex, resDeadRegex, resUnavaRegex, func)
  2208. {
  2209. var fileHost = new Object();
  2210.  
  2211. fileHost.linkRegex = linkRegex;
  2212. fileHost.linkRegexObject = new RegExp(linkRegex, "");
  2213. fileHost.xpath = xpath;
  2214. fileHost.cFound = 0; //found links counter
  2215. fileHost.links = new Array(); //found links
  2216. if (blockSize == null)
  2217. {
  2218. fileHost.blockSize = 50;
  2219. }
  2220. else
  2221. {
  2222. fileHost.blockSize = blockSize;
  2223. }
  2224. fileHost.corrMatch = corrMatch;
  2225. fileHost.corrReplWhat = corrReplWhat;
  2226. fileHost.corrReplWith = corrReplWith;
  2227. if (splitSeparator == null)
  2228. {
  2229. fileHost.splitSeparator = "\r\n";
  2230. }
  2231. else
  2232. {
  2233. fileHost.splitSeparator = splitSeparator;
  2234. }
  2235. fileHost.apiUrl = apiUrl;
  2236. fileHost.postData = postData;
  2237. fileHost.resLinkRegex = resLinkRegex;
  2238. fileHost.resLiveRegex = resLiveRegex;
  2239. fileHost.resDeadRegex = resDeadRegex;
  2240. fileHost.resUnavaRegex = resUnavaRegex;
  2241. if (func == null)
  2242. {
  2243. fileHost.func = genBulkCheck;
  2244. }
  2245. else
  2246. {
  2247. fileHost.func = func;
  2248. }
  2249. bulkHosts.push(fileHost);
  2250. var names = hostName.split(',');
  2251. var i = names.length;
  2252. while(i--)
  2253. {
  2254. bulkHostNames[names[i]] = fileHost;
  2255. }
  2256. }
  2257. var genType1 = [
  2258. "migahost.com", "rodfile.com", "downloadani.me",
  2259. "rarefile.net",
  2260. "filesabc.com",
  2261. "180upload.com", "verzend.be",
  2262. "movreel.com",
  2263. "4up.me",
  2264. "file4safe.com", "filemac.com", "4upfiles.com",
  2265. "idup.in", "novafile.com", "longfiles.com",
  2266. "bitupload.com",
  2267. "uploadbaz.com"
  2268. ];
  2269. var genType2 = [ "queenshare.com",
  2270. "hulkload.com",
  2271. "amonshare.com", "edoc.com",
  2272. ];
  2273. //xfilesharing 1.0
  2274. function addGenericType1()
  2275. {
  2276. var i = genType1.length;
  2277. while(i--)
  2278. {
  2279. if (GM_getValue("Check_" + genType1[i].replace(/\./g, "_dot_").replace(/-/g, "_dash_") + "_links", false))
  2280. {
  2281. var regexSafe = genType1[i].replace(/\./g, "\\.").replace(/-/g, "\\-");
  2282. addHost(
  2283. genType1[i].match(/[\w-]+/)[0], //hostname
  2284. regexSafe + "\/\\w+", //linkregex
  2285. "//a[contains(@href,'" + genType1[i] + "/')]", //xpath
  2286. null, //blocksize
  2287. new RegExp("(http:\/\/(?:|www\\.)" + regexSafe + "\/\\w+)",""),//, //corrmatch
  2288. null, //corrreplwhat
  2289. null, //corrreplwith
  2290. null, //separator
  2291. "http://" + genType1[i] + "/checkfiles.html", //api url
  2292. "op=checkfiles&process=Check+URLs&list=", //postdata
  2293. new RegExp("(" + regexSafe + "\/\\w+)",""), //linkregex
  2294. new RegExp("green'>http:\/\/(?:|www\.)" + regexSafe + "\/\\w+","g"), //liveregex
  2295. new RegExp("red'>http:\/\/(?:|www\.)" + regexSafe + "\/\\w+","g"), //deadregex
  2296. new RegExp("orange'>http:\/\/(?:|www\.)" + regexSafe + "\/\\w+","g"), //unavaregex
  2297. null //function delegate
  2298. )
  2299. }
  2300. }
  2301. }
  2302. //xfilesharing 2.0
  2303. function addGenericType2()
  2304. {
  2305. var i = genType2.length;
  2306. while(i--)
  2307. {
  2308. if (GM_getValue("Check_" + genType2[i].replace(/\./g, "_dot_").replace(/-/g, "_dash_") + "_links", false))
  2309. {
  2310. var regexSafe = genType2[i].replace(/\./g, "\\.").replace(/-/g, "\\-");
  2311. addHost(
  2312. genType2[i].match(/[\w-]+/)[0], //hostname
  2313. regexSafe + "\/\\w+", //linkregex
  2314. "//a[contains(@href,'" + genType2[i] + "/')]", //xpath
  2315. null, //blocksize
  2316. new RegExp("(http:\/\/(?:|www\\.)" + regexSafe + "\/\\w+)",""),//, //corrmatch
  2317. null, //corrreplwhat
  2318. null, //corrreplwith
  2319. null, //separator
  2320. "http://www." + genType2[i] + "/?op=checkfiles", //api url
  2321. "op=checkfiles&process=Check+URLs&list=", //postdata
  2322. new RegExp("(" + regexSafe + "\/\\w+)",""), //linkregex
  2323. new RegExp(regexSafe + "\/\\w+.*?<\/td>\\s*<td style=\"color:green;\">","g"), //liveregex
  2324. new RegExp(regexSafe + "\/\\w+.*?<\/td>\\s*<td style=\"color:red;\">","g"), //deadregex
  2325. new RegExp(regexSafe + "\/\\w+.*?<\/td>\\s*<td style=\"color:orange;\">","g"), //unavaregex
  2326. null //function delegate
  2327. )
  2328. }
  2329. }
  2330. }
  2331. // TEMPLATE
  2332. // if (GM_getValue("Check__dot_com_links", false))
  2333. // {
  2334. // addHost(
  2335. // "", //hostname
  2336. // "", //linkregex
  2337. // "//a[contains(@href,'.com/')]", //xpath
  2338. // null, //blocksize
  2339. // null, //corrmatch
  2340. // null, //corrreplwhat
  2341. // null, //corrreplwith
  2342. // null, //separator
  2343. // "", //api url
  2344. // "", //postdata
  2345. // /()/, //linkregex
  2346. // //liveregex
  2347. // //deadregex
  2348. // //unavaregex
  2349. // null //function delegate
  2350. // )
  2351. // }
  2352. addGenericType1();
  2353. addGenericType2();
  2354.  
  2355. if (GM_getValue("Check_myvdrive_dot_com_links", false))
  2356. {
  2357. addHost(
  2358. "myvdrive,fileserving", //hostname
  2359. "(?:fileserving|myvdrive)\\.com\/files\/[\\w-]+", //linkregex
  2360. "//a[contains(@href,'fileserving.com/files') or contains(@href,'myvdrive.com/files')]", //xpath
  2361. null, //blocksize
  2362. null, //corrmatch
  2363. null, //corrreplwhat
  2364. null, //corrreplwith
  2365. null, //separator
  2366. "http://www.myvdrive.com/Public/linkchecker#", //api url
  2367. "links=", //postdata
  2368. /(?:fileserving|myvdrive)\.com\/(files\/\w+)/, //linkregex
  2369. /icon_file_check_valid"><\/span>\s*http:\/\/www\.(?:fileserving|myvdrive)\.com\/files\/[\w-]+/g, //liveregex
  2370. /icon_file_check_(?:removed|notvalid)"><\/span>\s*http:\/\/www\.(?:fileserving|myvdrive)\.com\/files\/[\w-]+/g, //deadregex
  2371. null, //unavaregex
  2372. null //function delegate
  2373. )
  2374. }
  2375. if (GM_getValue("Check_hackerbox_dot_org_links", false))
  2376. {
  2377. addHost(
  2378. "hackerbox", //hostname
  2379. "host\\.hackerbox\\.org\/\\w+", //linkregex
  2380. "//a[contains(@href,'host.hackerbox.org/')]", //xpath
  2381. null, //blocksize
  2382. /(http:\/\/host\.hackerbox\.org\/\w+)/, //corrmatch
  2383. null, //corrreplwhat
  2384. null, //corrreplwith
  2385. null, //separator
  2386. "http://host.hackerbox.org/checkfiles.html", //api url
  2387. "op=checkfiles&process=Check+URLs&list=", //postdata
  2388. /(host\.hackerbox\.org\/\w+)/, //linkregex
  2389. /green'>http:\/\/host\.hackerbox\.org\/\w+/g, //liveregex
  2390. /red'>http:\/\/host\.hackerbox\.org\/\w+/g, //deadregex
  2391. /orange'>http:\/\/host\.hackerbox\.org\/\w+/g, //unavaregex
  2392. null //function delegate
  2393. )
  2394. }
  2395. if (GM_getValue("Check_hellshare_dot_com_links", false))
  2396. {
  2397. addHost(
  2398. "hellshare", //hostname
  2399. "(?:|download\\.(?:cz\\.|en\\.|sk\\.|)|www\\.)hellshare\\.(?:com|sk|cz|pl|hu|COM|SK|CZ|PL|HU)\/[\\w-\\.]+\/(?:[\\w-\\.]+\/|)\\d{5,}", //linkregex
  2400. "//a[contains(@href,'hellshare.')]", //xpath
  2401. 48, //blocksize
  2402. null, //corrmatch
  2403. null, //corrreplwhat
  2404. null, //corrreplwith
  2405. null, //separator
  2406. null, //api url
  2407. null, //postdata
  2408. null, //linkregex
  2409. null, //liveregex
  2410. null, //deadregex
  2411. null, //unavaregex
  2412. hellshareBulkCheck //function delegate
  2413. )
  2414. }
  2415. if (GM_getValue("Check_ncrypt_dot_in_links", false))
  2416. {
  2417. addHost(
  2418. "ncrypt", //hostname
  2419. "ncrypt\\.in\/folder\\-\\w+", //linkregex
  2420. "//a[contains(@href,'ncrypt.in/folder')]", //xpath
  2421. 100000, //blocksize
  2422. null, //corrmatch
  2423. null, //corrreplwhat
  2424. null, //corrreplwith
  2425. null, //separator
  2426. null,
  2427. null,
  2428. null,
  2429. null,
  2430. null,
  2431. null,
  2432. ncryptBulkCheck //function delegate
  2433. )
  2434. }
  2435. if (GM_getValue("Check_geupload_dot_com_links", false))
  2436. {
  2437. addHost(
  2438. "geupload,lenfile", //hostname
  2439. "(?:geupload\\.com|lenfile\\.com)\/\\w+", //linkregex
  2440. "//a[contains(@href,'geupload.com/') or contains(@href,'lenfile.com/')]", //xpath
  2441. null, //blocksize
  2442. null, //corrmatch
  2443. null, //corrreplwhat
  2444. null, //corrreplwith
  2445. "\n", //separator
  2446. 'http://geupload.com/?op=checkfiles',
  2447. 'op=checkfiles&process=Check+URLs&list=',
  2448. />http:\/\/(?:geupload|lenfile)\.com\/(\w+)/,
  2449. />http:\/\/(?:geupload|lenfile)\.com\/\w+(?:[^>]+>)<td style=\"color\:green/g,
  2450. />http:\/\/(?:geupload|lenfile)\.com\/\w+(?:[^>]+>)<td style=\"color\:red/g,
  2451. null,
  2452. null
  2453. )
  2454. }
  2455. if (GM_getValue("Check_uploadrocket_dot_net_links", false))
  2456. {
  2457. addHost(
  2458. "uploadrocket", //hostname
  2459. "(?:uploadrocket\\.net)\/\\w+", //linkregex
  2460. "//a[contains(@href,'uploadrocket.net/')]", //xpath
  2461. null, //blocksize
  2462. null, //corrmatch
  2463. null, //corrreplwhat
  2464. null, //corrreplwith
  2465. "\n", //separator
  2466. 'http://uploadrocket.net/?op=checkfiles',
  2467. 'op=checkfiles&process=Check+URLs&list=',
  2468. /uploadrocket.net\/(\w+)/,
  2469. />http:\/\/uploadrocket.net\/\w+(?:[^>]+>)<td style="color:green/g,
  2470. />http:\/\/uploadrocket.net\/\w+(?:[^>]+>)<td style="color:red/g,
  2471. null,
  2472. null //function delegate
  2473. )
  2474. }
  2475. if (GM_getValue("Check_depositfiles_dot_com_links", false))
  2476. {
  2477. addHost(
  2478. "depositfiles,dfiles",
  2479. "(?:(?:depositfiles\\.(?:com|org|lt))|(?:dfiles\\.(?:ru|eu)))\/files\/|en/files\/\\w+",
  2480. "//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/')]",
  2481. 100000, //blocksize
  2482. null, //corrmatch
  2483. null, //corrreplwhat
  2484. null, //corrreplwith
  2485. null, //separator
  2486. null,
  2487. null,
  2488. null,
  2489. null,
  2490. null,
  2491. null,
  2492. depositfilesBulkCheck //function delegate
  2493. )
  2494. }
  2495. if (GM_getValue("Check_filepost_dot_com_links", false))
  2496. {
  2497. addHost(
  2498. "filepost,fp", //hostname
  2499. "(?:filepost\\.com\/files|fp\\.io)\/\\w+", //linkregex
  2500. "//a[contains(@href,'filepost.com/files/') or contains(@href,'fp.io/')]", //xpath
  2501. null, //blocksize
  2502. null, //corrmatch
  2503. null, //corrreplwhat
  2504. null, //corrreplwith
  2505. "\n", //separator
  2506. 'http://filepost.com/files/checker/?JsHttpRequest=0-xml',
  2507. 'urls=',
  2508. /\\\/files\\\/(\w+)/,
  2509. />http:\\\/\\\/filepost\.com\\\/files\\\/\w+(?:[^>]+>){5}(?:\\n|\\t)+<span class=\\"v\\"/g,
  2510. />http:\\\/\\\/filepost\.com\\\/files\\\/\w+(?:[^>]+>){5}(?:\\n|\\t)+<span class=\\"x\\"/g,
  2511. null,
  2512. null //function delegate
  2513. )
  2514. }
  2515. if (GM_getValue("Check_filesflash_dot_com_links", false))
  2516. {
  2517. addHost(
  2518. "filesflash", //hostname
  2519. "filesflash\\.com\/\\w+", //linkregex
  2520. "//a[contains(@href,'filesflash.com')]", //xpath
  2521. null, //blocksize
  2522. null, //corrmatch
  2523. /http:\/\//, //corrreplwhat
  2524. '', //corrreplwith
  2525. null, //separator
  2526. 'http://filesflash.com/checklinks.php',
  2527. 'submit=Go&links=',
  2528. /filesflash\.com\/(\w+)/,
  2529. /<td>filesflash\.com\/\w+<\/td>\s*<td>Available/g,
  2530. /<td>filesflash\.com\/\w+<\/td>\s*<td>(?:Invalid|Deleted|Expired|Banned)?<\/td>/g,
  2531. null,
  2532. null //function delegate
  2533. )
  2534. }
  2535. if (GM_getValue("Check_jumbofiles_dot_com_links", false))
  2536. {
  2537. addHost(
  2538. "jumbofiles", //hostname
  2539. "jumbofiles\\.com\/\\w+", //linkregex
  2540. "//a[contains(@href,'jumbofiles.com/')]", //xpath
  2541. null, //blocksize
  2542. /(http:\/\/(?:|www\.)jumbofiles\.com\/\w+)/, //corrmatch
  2543. null, //corrreplwhat
  2544. null, //corrreplwith
  2545. null, //separator
  2546. "http://jumbofiles.com/checkfiles.html", //api url
  2547. "op=checkfiles&process=Check+URLs&list=", //postdata
  2548. /(jumbofiles\.com\/\w+)/, //linkregex
  2549. /blue'>http:\/\/(?:|www\.)jumbofiles\.com\/\w+/g, //liveregex
  2550. /red'>http:\/\/(?:|www\.)jumbofiles\.com\/\w+/g, //deadregex
  2551. /orange'>http:\/\/(?:|www\.)jumbofiles\.com\/\w+/g, //unavaregex
  2552. null //function delegate
  2553. )
  2554. }
  2555. if (GM_getValue("Check_edisk_dot_cz_links", false))
  2556. {
  2557. addHost(
  2558. "edisk", //hostname
  2559. "(?:(?:muj|data)\\d*\\.|)edisk\\.(?:cz|sk|eu)\/(?:|(?:cz|sk|en|pl)\/)", //linkregex
  2560. "//a[contains(@href,'edisk.')]", //xpath
  2561. null, //blocksize
  2562. null, //corrmatch
  2563. /edisk\.\w{2}\/(?:|\w{2}\/)stahni/, //corrreplwhat
  2564. 'edisk.cz/stahni', //corrreplwith
  2565. null, //separator
  2566. 'http://www.edisk.cz/zkontrolovat-odkazy',
  2567. 'submitBtn=Zkontrolovat&checkFiles=',
  2568. /((?:download|stahn(?:i|out-soubor))\/\d+)/,
  2569. /"ano"\/>\s*<\/td>\s*<td>\s*http:\/\/.+/g,
  2570. /"ne"\/>\s*<\/td>\s*<td>\s*http:\/\/.+/g,
  2571. null,
  2572. null //function delegate
  2573. )
  2574. }
  2575. if (GM_getValue("Check_bezvadata_dot_cz_links", false))
  2576. {
  2577. GM_xmlhttpRequest( //age check skip
  2578. {
  2579. method: 'POST',
  2580. url: 'http://bezvadata.cz/vyhledavani/souhlas-zavadny-obsah',
  2581. headers: {
  2582. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  2583. 'Content-type': 'application/x-www-form-urlencoded',
  2584. 'Referer': ""
  2585. }
  2586. });
  2587. addHost(
  2588. "bezvadata", //hostname
  2589. "(?:beta\\.|)bezvadata\.cz\/stahnout\/\\d+\\w+", //linkregex
  2590. "//a[contains(@href,'bezvadata.cz')]", //xpath
  2591. null, //blocksize
  2592. null, //corrmatch
  2593. null, //corrreplwhat
  2594. null, //corrreplwith
  2595. null, //separator
  2596. 'http://bezvadata.cz/nastroje/kontrola-odkazu?do=kontrolaOdkazuForm-submit',
  2597. 'zkontrolovat=Zkontrolovat&odkazy=',
  2598. /(bezvadata\.cz\/stahnout\/\d+)/,
  2599. /bezvadata\.cz\/stahnout\/.+?<\/td>\s*<td style="background-color: #d9ffb2/g,
  2600. /bezvadata\.cz\/stahnout\/.+?<\/td>\s*<td style="background-color: #ffb2b2/g,
  2601. null,
  2602. null //function delegate
  2603. )
  2604. }
  2605. if (GM_getValue("Check_linkcrypt_dot_ws_links", false))
  2606. {
  2607. addHost(
  2608. "linkcrypt", //hostname
  2609. "linkcrypt\\.ws\/dir\/\\w+", //linkregex
  2610. "//a[contains(@href,'linkcrypt.ws/dir')]", //xpath
  2611. 100000, //blocksize
  2612. null, //corrmatch
  2613. null, //corrreplwhat
  2614. null, //corrreplwith
  2615. null, //separator
  2616. null,
  2617. null,
  2618. null,
  2619. null,
  2620. null,
  2621. null,
  2622. linkcryptBulkCheck //function delegate
  2623. )
  2624. }
  2625. if (GM_getValue("Check_linksave_dot_in_links", false))
  2626. {
  2627. addHost(
  2628. "linksave", //hostname
  2629. "linksave\\.in\/\\w+", //linkregex
  2630. "//a[contains(@href,'linksave.in')]", //xpath
  2631. 100000, //blocksize
  2632. null, //corrmatch
  2633. null, //corrreplwhat
  2634. null, //corrreplwith
  2635. null, //separator
  2636. null,
  2637. null,
  2638. null,
  2639. null,
  2640. null,
  2641. null,
  2642. linksaveBulkCheck //function delegate
  2643. )
  2644. }
  2645. if (GM_getValue("Check_videobb_dot_com_links", false))
  2646. {
  2647. addHost(
  2648. "videobb", //hostname
  2649. "videobb\\.com\/(?:video\/|watch_video\\.php\\?v=)\\w+", //linkregex
  2650. "//a[contains(@href,'videobb.com')]", //xpath
  2651. null, //blocksize
  2652. null, //corrmatch
  2653. /watch_video\.php\?v=/, //corrreplwhat
  2654. 'video/', //corrreplwith
  2655. null, //separator
  2656. 'http://www.videobb.com/link_checker.php',
  2657. 'links=',
  2658. /videobb\.com\/video\/(\w+)/,
  2659. /<td>http:\/\/(?:www\.|)videobb.com\/video\/\w+<\/td>\s+<td>.+?<\/td>\s+<td>\d+:\d+<\/td>\s+<td>Available/g,
  2660. /<td>http:\/\/(?:www\.|)videobb.com\/video\/\w+<\/td>\s+<td><\/td>\s+<td>N\/A<\/td>\s+<td>Not Available/g,
  2661. null,
  2662. null //function delegate
  2663. )
  2664. }
  2665. if (GM_getValue("Check_cramit_dot_in_links", false))
  2666. {
  2667. addHost(
  2668. "cramit,cramitin", //hostname
  2669. "cramit(?:\\.in|in\\.net)\/", //linkregex
  2670. "//a[contains(@href,'cramitin.net') or contains(@href,'cramit.in')]", //xpath
  2671. null, //blocksize
  2672. null, //corrmatch
  2673. null, //corrreplwhat
  2674. null, //corrreplwith
  2675. null, //separator
  2676. 'http://cramit.in/checkfiles.html',
  2677. 'op=checkfiles&process=CHECK+URL%27S&list=',
  2678. /(cramit(?:\.in|in\.net)\/\w+)/,
  2679. /green>http:\/\/(?:www\.|)cramit(?:\.in|in\.net)\/\w+/g,
  2680. /red'>http:\/\/(?:www\.|)cramit(?:\.in|in\.net)\/\w+/g,
  2681. /orange'>http:\/\/(?:www\.|)cramit(?:\.in|in\.net)\/\w+/g,
  2682. null //function delegate
  2683. )
  2684. }
  2685. /* if (GM_getValue("Check_turbobit_dot_net_links", false))
  2686. {
  2687. addHost(
  2688. "turbobit", //hostname
  2689. "turbobit\\.(?:net|pl)\/(?:\\w+\/|).+?\\.html", //linkregex
  2690. "//a[contains(@href,'turbobit.')]", //xpath
  2691. null, //blocksize
  2692. /(turbobit\.(?:net|pl)\/(?:\w+\/|).+?\.html)/, //corrmatch
  2693. null, //corrreplwhat
  2694. null, //corrreplwith
  2695. "\n", //separator
  2696. 'http://turbobit.net/linkchecker/csv',
  2697. 'links_to_check=',
  2698. /(turbobit\.(?:net|pl)\/\w+)/,
  2699. /turbobit\.(?:net|pl)\/.*?, 1/g,
  2700. /turbobit\.(?:net|pl)\/.*?, 0/g,
  2701. null,
  2702. null //function delegate
  2703. )
  2704. } */
  2705. if (GM_getValue("Check_filerio_dot_com_links", false))
  2706. {
  2707. addHost(
  2708. "filekeen,filerio", //hostname
  2709. //"file(?:keen|rio)\\.(?:com|in)\/\\w+\/.", //linkregex
  2710. "file(?:keen|rio)\\.(?:com|in)\/\\w+", //linkregex
  2711. "//a[contains(@href,'filekeen.com') or contains(@href,'filerio.')]", //xpath
  2712. null, //blocksize
  2713. null, //corrmatch
  2714. null, //corrreplwhat
  2715. null, //corrreplwith
  2716. null, //separator
  2717. 'http://filerio.in/checkfiles.html',
  2718. 'op=checkfiles&process=Check+URLs&list=',
  2719. /(file(?:keen|rio)\.(?:com|in)\/\w+)/,
  2720. /green'>http:\/\/(?:www\.|)file(?:keen|rio)\.(?:com|in)\/\w+/g,
  2721. /red'>http:\/\/(?:www\.|)file(?:keen|rio)\.(?:com|in)\/\w+/g,
  2722. /orange'>http:\/\/(?:www\.|)file(?:keen|rio)\.(?:com|in)\/\w+/g,
  2723. null //function delegate
  2724. )
  2725. }
  2726. if (GM_getValue("Check_share_dash_online_dot_biz_links", false))
  2727. {
  2728. addHost(
  2729. "share-online,egoshare", //hostname
  2730. "(?:share-online\\.biz|egoshare\\.com)\/(?:dl\/|download\\.php\\?id=)", //linkregex
  2731. "//a[contains(@href,'share-online.biz') or contains(@href,'egoshare.com')]", //xpath
  2732. null, //blocksize
  2733. /http:\/\/(?:www\.)?(?:share-online\.biz|egoshare\.com)\/d(?:l\/|ownload\.php\?id=)(\w+)/, //corrmatch
  2734. null, //corrreplwhat
  2735. null, //corrreplwith
  2736. "\n", //separator
  2737. 'http://api.share-online.biz/linkcheck.php',
  2738. 'links=',
  2739. /(\w+);(?:OK|NOTFOUND|DELETED)/,
  2740. /\w+;OK/g,
  2741. /\w+;(?:NOTFOUND|DELETED)/g,
  2742. null,
  2743. null //function delegate
  2744. )
  2745. }
  2746. if (GM_getValue("Check_quickshare_dot_cz_links", false))
  2747. {
  2748. addHost(
  2749. "quickshare", //hostname
  2750. "quickshare\\.cz\/stahnout-soubor\/\\d+", //linkregex
  2751. "//a[contains(@href,'quickshare.cz')]", //xpath
  2752. null, //blocksize
  2753. null, //corrmatch
  2754. null, //corrreplwhat
  2755. null, //corrreplwith
  2756. null, //separator
  2757. 'http://www.quickshare.cz/nastroje/link-checker',
  2758. 'linky=',
  2759. /quickshare\.cz\/stahnout-soubor\/(\d+(?::\w+)?)/,
  2760. /quickshare\.cz\/stahnout-soubor\/\d+(?::[\w\-.+$!*\/()\[\]\',~%?:@#&=\\]+)?\s*<\/a><\/td><td><img src="\/img\/ok\.gif/g,
  2761. /quickshare\.cz\/stahnout-soubor\/\d+(?::[\w\-.+$!*\/()\[\]\',~%?:@#&=\\]+)?\s*<\/td><td><img src="\/img\/nenalezeno\.gif/g,
  2762. null,
  2763. null //function delegate
  2764. )
  2765. }
  2766. if (GM_getValue("Check_netload_dot_in_links", false))
  2767. {
  2768. addHost(
  2769. "netload", //hostname
  2770. "netload\\.in\/datei\\w{10}", //linkregex
  2771. "//a[contains(@href,'netload.in')]", //xpath
  2772. null, //blocksize
  2773. null, //corrmatch
  2774. null, //corrreplwhat
  2775. null, //corrreplwith
  2776. "\n", //separator
  2777. "http://api.netload.in/index.php?id=2", //api url
  2778. "send=Absenden&links=", //postdata
  2779. /(\w+);/, //linkregex
  2780. /\w{10,};.+?;.+?;online/g, //liveregex
  2781. /\w{10,};.+?;.+?;offline/g, //deadregex
  2782. null, //unavaregex
  2783. //netloadBulkCheck //function delegate //disabled on probation since 1.2.4.5
  2784. null //function delegate
  2785. )
  2786. }
  2787. if (GM_getValue("Check_oboom_dot_com_links", false))
  2788. {
  2789. addHost(
  2790. "oboom", //hostname
  2791. "oboom\\.com\/#?\\w{8}", //linkregex
  2792. "//a[contains(@href,'oboom.com/')]", //xpath
  2793. null, //blocksize
  2794. /oboom\.com\/#?(\w{8})/, //corrmatch
  2795. null, //corrreplwhat
  2796. null, //corrreplwith
  2797. null, //separator
  2798. null,
  2799. null,
  2800. null,
  2801. null, //liveregex
  2802. null, //deadregex
  2803. null,
  2804. oboomBulk //function delegate
  2805. )
  2806. }
  2807. if (GM_getValue("Check_mega_dot_nz_links", false))
  2808. {
  2809. addHost(
  2810. "mega",
  2811. "mega(?:\\.co)?\\.nz\/#!\\w+",
  2812. "//a[contains(@href,'mega.co.nz/') or contains(@href,'mega.nz/')]",
  2813. 100000, //blocksize
  2814. null, //corrmatch
  2815. null, //corrreplwhat
  2816. null, //corrreplwith
  2817. null, //separator
  2818. null,
  2819. null,
  2820. null,
  2821. null,
  2822. null,
  2823. null,
  2824. megaBulkCheck //function delegate
  2825. )
  2826. }
  2827.  
  2828. //the same as GenType2, except api url is 'https://' instead of 'http://www.' and corrmatch is not??? needed
  2829.  
  2830. if (GM_getValue("Check_extabit_dot_com_links", false))
  2831. {
  2832. addHost(
  2833. "extabit", //hostname
  2834. "extabit\\.com\/file\/\\w+", //linkregex
  2835. "//a[contains(@href,'extabit.com')]", //xpath
  2836. null, //blocksize
  2837. null, //corrmatch
  2838. null, //corrreplwhat
  2839. null, //corrreplwith
  2840. "\n", //separator
  2841. "http://extabit.com/linkchecker.jsp", //api url
  2842. "url=", //postdata
  2843. /extabit\.com\/(file\/\w+)/, //linkregex
  2844. /extabit\.com\/file\/\w+\/[^<]+<\/a><\/td>\s*<td class="status"><span class="status_green">/g, //liveregex
  2845. /extabit\.com\/file\/\w+\/[^<]+<\/a><\/td>\s*<td class="status"><span class="status_red">/g, //deadregex
  2846. /extabit\.com\/file\/\w+\/[^<]+<\/a><\/td>\s*<td class="status"><span class="status_yellow">/g, //unavaregex
  2847. extabitBulkCheck //function delegate
  2848. )
  2849. }
  2850. if (GM_getValue("Check_junocloud_dot_me_links", false))
  2851. {
  2852. addHost(
  2853. "junocloud", //hostname
  2854. "junocloud\\.me\/\\w+", //linkregex
  2855. "//a[contains(@href,'junocloud.me')]", //xpath
  2856. null, //blocksize
  2857. null, //corrmatch
  2858. null, //corrreplwhat
  2859. null, //corrreplwith
  2860. "\n", //separator
  2861. "http://junocloud.me/checkfiles.html", //api url
  2862. "op=checkfiles&process=Check+URLs&list=", //postdata
  2863. /(junocloud\.me\/\w+)/, //linkregex
  2864. /<a href="http:\/\/junocloud\.me\/\w+[^<]+<\/a>\s*<span style="color: green/g, //liveregex
  2865. /<a href="http:\/\/junocloud\.me\/\w+[^<]+<\/a>\s*<span style="color: red/g, //deadregex
  2866. null, //unavaregex
  2867. null //function delegate
  2868. )
  2869. }
  2870. if (GM_getValue("Check_webshare_dot_cz_links", false))
  2871. {
  2872. addHost(
  2873. "webshare", //hostname
  2874. "webshare\.cz\/(?:(?:#/)?file/\\w+|\\w+-.*)", //linkregex
  2875. "//a[contains(@href,'webshare.cz')]", //xpath
  2876. 100000, //blocksize
  2877. null, //corrmatch
  2878. null, //corrreplwhat
  2879. null, //corrreplwith
  2880. null, //separator
  2881. null, //api url
  2882. null, //postdata
  2883. null, //linkregex
  2884. null, //liveregex
  2885. null, //deadregex
  2886. null, //unavaregex
  2887. webshareBulkCheck //function delegate
  2888. )
  2889. }
  2890. /////////////////////////////
  2891. // Common function delegate to send links to get checked by host linkchecker
  2892. /////////////////////////////
  2893. // If you define a new delegate, you may use following properties
  2894. // this.links [array] array of strings (link blocks). The links in each block separated with host.splitSeparator.
  2895. // this.apiUrl [string] API or web linkchecker URL
  2896. // this.postData [string] POSTDATA for POST request
  2897. // this.resLiveRegex [regex] matches live substrings in the request response
  2898. // this.resDeadRegex [regex] matches dead substrings in the request response
  2899. // this.resUnavaRegex [regex] matches unava substrings in the request response (the regex is often null!)
  2900. //
  2901. // this.resLinkRegex [regex] matches links further passed to DisplayTheCheckedLinks
  2902. //
  2903. // See the code below for standard bulkcheck handling reference.
  2904. //////////////////////////////
  2905. function genBulkCheck()
  2906. {
  2907. var blockIdx = this.links.length;
  2908. while (blockIdx--)
  2909. {
  2910. postRequest(this.apiUrl, this.postData, this.links[blockIdx],
  2911. this.resLinkRegex, this.resLiveRegex, this.resDeadRegex, this.resUnavaRegex);
  2912. }
  2913. function postRequest(api, postData, links, linkRegex, liveRegex, deadRegex, unavaRegex)
  2914. {
  2915. GM_xmlhttpRequest(
  2916. {
  2917. method: 'POST',
  2918. url: api,
  2919. headers: {
  2920. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  2921. 'Content-type': 'application/x-www-form-urlencoded',
  2922. 'Referer': api,
  2923. 'X-Requested-With': 'XMLHttpRequest'
  2924. },
  2925. data: postData + encodeURIComponent(links),
  2926. onload: function (result)
  2927. {
  2928. var res = result.responseText;
  2929. // GM_log(res);
  2930. var i;
  2931.  
  2932. var livelinks = res.match(liveRegex);
  2933. var deadlinks = res.match(deadRegex);
  2934. // GM_log(livelinks);
  2935. // GM_log(deadlinks);
  2936. if (livelinks != null)
  2937. {
  2938. i = livelinks.length - 1;
  2939. do
  2940. {
  2941. livelinks[i] = livelinks[i].match(linkRegex)[1];
  2942. }
  2943. while (i--);
  2944. DisplayTheCheckedLinks(livelinks, 'alive_link');
  2945. }
  2946.  
  2947. if (deadlinks != null)
  2948. {
  2949. i = deadlinks.length - 1;
  2950. do
  2951. {
  2952. deadlinks[i] = deadlinks[i].match(linkRegex)[1];
  2953. }
  2954. while (i--);
  2955. DisplayTheCheckedLinks(deadlinks, 'adead_link');
  2956. }
  2957.  
  2958. if (unavaRegex != null)
  2959. {
  2960. var unavalinks = res.match(unavaRegex);
  2961. if (unavalinks)
  2962. {
  2963. i = unavalinks.length - 1;
  2964. do
  2965. {
  2966. unavalinks[i] = unavalinks[i].match(linkRegex)[1];
  2967. }
  2968. while (i--);
  2969. DisplayTheCheckedLinks(unavalinks, 'unava_link');
  2970. }
  2971. }
  2972. }
  2973. });
  2974. }
  2975. }
  2976. //specialized bulkchecking handlers follow
  2977. function webshareBulkCheck()
  2978. {
  2979. var arr = this.links[0].split("\r\n");
  2980. var i = arr.length;
  2981. while(i--)
  2982. {
  2983. postRequest(arr[i]);
  2984. }
  2985. //function postRequest(api, postData, links, linkRegex, liveRegex, deadRegex, unavaRegex)
  2986. function postRequest(wsLink)
  2987. {
  2988. var id = wsLink.match(/webshare\.cz\/(?:(?:#\/)?file\/)?(\w+)/)[1];
  2989. GM_xmlhttpRequest(
  2990. {
  2991. method: 'POST',
  2992. url: "http://webshare.cz/api/file_info/",
  2993. headers: {
  2994. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  2995. 'Content-type': 'application/x-www-form-urlencoded',
  2996. 'Referer': "",
  2997. },
  2998. data: "wst=&ident=" + id,
  2999. onload: function (result)
  3000. {
  3001. var res = result.responseText;
  3002. if (res.match(/<name>.+?<\/name>/))
  3003. {
  3004. DisplayTheCheckedLinks([id], 'alive_link');
  3005. }
  3006. else
  3007. {
  3008. DisplayTheCheckedLinks([id], 'adead_link');
  3009. }
  3010. }
  3011. });
  3012. }
  3013. }
  3014. //like genBulkCheck, but extabit linkchecker only works when logged in. If not logged in, non-bulk checking has to be used.
  3015. //extabit also doesn't like requests in fast succession, so some delays are added.
  3016. function extabitBulkCheck()
  3017. {
  3018. var timeoutDelay = 0;
  3019. var blockIdx = this.links.length;
  3020. while (blockIdx--)
  3021. {
  3022. postRequest(this.apiUrl, this.postData, this.links[blockIdx],
  3023. this.resLinkRegex, this.resLiveRegex, this.resDeadRegex, this.resUnavaRegex);
  3024. }
  3025. function postRequest(api, postData, links, linkRegex, liveRegex, deadRegex, unavaRegex)
  3026. {
  3027. GM_xmlhttpRequest(
  3028. {
  3029. method: 'POST',
  3030. url: api,
  3031. headers: {
  3032. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  3033. 'Content-type': 'application/x-www-form-urlencoded',
  3034. 'Referer': api,
  3035. 'X-Requested-With': 'XMLHttpRequest'
  3036. },
  3037. data: postData + encodeURIComponent(links),
  3038. onload: function (result)
  3039. {
  3040. var res = result.responseText;
  3041. if (/id="registration_header"/.test(res)) //not logged in, have to use non-bulk
  3042. {
  3043. function geturlfunc(link, tryID) //basically the geturl function with some changes (compacted, displaythecheckedlinkS, multiple tries)
  3044. {
  3045. //GM_log(tryID + ': ' + link);
  3046. GM_xmlhttpRequest(
  3047. {
  3048. method: 'GET',
  3049. url: link,
  3050. 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': ""},
  3051. onload: function(result2)
  3052. {
  3053. var res2 = result2.responseText;
  3054. var res2Status = result.status;
  3055. if (/download-file-btn/.test(res2)) {DisplayTheCheckedLinks([link], 'alive_link'); return;}
  3056. if (/Search mirrors|id="mirrb"/.test(res2) || res2Status==404) {DisplayTheCheckedLinks([link], 'adead_link'); return;}
  3057. if (/currently unavailable|temporarily unavailable|disponible en estos momentos|vorläufig unerreichbar|Файл временно недоступен/.test(res2) || res2Status == 500 || res2Status == 503)
  3058. {
  3059. if (tryID < 7)
  3060. setTimeout(function(){geturlfunc(link,tryID+1)}, tryID * 1000 + (Math.random() * tryID * 2000));
  3061. else
  3062. {DisplayTheCheckedLinks([link], 'unava_link'); return;}
  3063. }
  3064. }
  3065. });
  3066. }
  3067. //split the hrefs and check them one by one
  3068. GM_log('Using slow extabit.com link checking. Log in to extabit to use fast bulk checking.');
  3069. links = links.split('\n');
  3070. var i = links.length;
  3071. while (i--)
  3072. {
  3073. if (links[i])
  3074. {
  3075. (function(i){setTimeout(function(){geturlfunc(links[i],1)}, timeoutDelay);})(i);
  3076. timeoutDelay += 500;
  3077. }
  3078. }
  3079. return;
  3080. }
  3081. var i;
  3082.  
  3083. var livelinks = res.match(liveRegex);
  3084. var deadlinks = res.match(deadRegex);
  3085. if (livelinks != null)
  3086. {
  3087. i = livelinks.length - 1;
  3088. do
  3089. {
  3090. livelinks[i] = livelinks[i].match(linkRegex)[1];
  3091. }
  3092. while (i--);
  3093. DisplayTheCheckedLinks(livelinks, 'alive_link');
  3094. }
  3095.  
  3096. if (deadlinks != null)
  3097. {
  3098. i = deadlinks.length - 1;
  3099. do
  3100. {
  3101. deadlinks[i] = deadlinks[i].match(linkRegex)[1];
  3102. }
  3103. while (i--);
  3104. DisplayTheCheckedLinks(deadlinks, 'adead_link');
  3105. }
  3106.  
  3107. if (unavaRegex != null)
  3108. {
  3109. var unavalinks = res.match(unavaRegex);
  3110. if (unavalinks)
  3111. {
  3112. i = unavalinks.length - 1;
  3113. do
  3114. {
  3115. unavalinks[i] = unavalinks[i].match(linkRegex)[1];
  3116. }
  3117. while (i--);
  3118. DisplayTheCheckedLinks(unavalinks, 'unava_link');
  3119. }
  3120. }
  3121. }
  3122. });
  3123. }
  3124. }
  3125. function netloadBulkCheck()
  3126. {
  3127. var blockIdx = this.links.length;
  3128.  
  3129. while (blockIdx--)
  3130. {
  3131. postRequest(this.apiUrl, this.postData, this.links[blockIdx],
  3132. this.resLinkRegex, this.resLiveRegex, this.resDeadRegex, this.unavaRegex);
  3133. }
  3134. function postRequest(api, postData, links, linkRegex, liveRegex, deadRegex, unavaRegex)
  3135. {
  3136. GM_xmlhttpRequest(
  3137. {
  3138. method: 'POST',
  3139. url: api,
  3140. headers: {
  3141. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  3142. 'Content-type': 'application/x-www-form-urlencoded',
  3143. 'Referer': ""
  3144. },
  3145. data: postData + encodeURIComponent(links),
  3146. onload: function (result)
  3147. {
  3148. var res = result.responseText;
  3149. var i;
  3150.  
  3151. var livelinks = res.match(liveRegex);
  3152. var deadlinks = res.match(deadRegex);
  3153. if (livelinks != null)
  3154. {
  3155. i = livelinks.length - 1;
  3156. do
  3157. {
  3158. recheckLink(livelinks[i].match(linkRegex)[1]);
  3159. }
  3160. while(i--);
  3161. }
  3162.  
  3163. if (deadlinks != null)
  3164. {
  3165. i = deadlinks.length - 1;
  3166. do
  3167. {
  3168. deadlinks[i] = deadlinks[i].match(linkRegex)[1];
  3169. }
  3170. while (i--);
  3171. DisplayTheCheckedLinks(deadlinks, 'adead_link');
  3172. }
  3173. }
  3174. });
  3175. }
  3176. function recheckLink(link)
  3177. {
  3178. var link = link;
  3179. GM_xmlhttpRequest(
  3180. {
  3181. method: 'GET',
  3182. url: 'http://netload.in/datei' + link + '.htm',
  3183. headers: {
  3184. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3185. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  3186. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  3187. 'Referer': ""
  3188. },
  3189. onload: function (result)
  3190. {
  3191. var res = result.responseText;
  3192.  
  3193. if (res.match(/dl_first_file_download">|download_limit\.gif/))
  3194. {
  3195. DisplayTheCheckedLinks([link], 'alive_link');
  3196. return;
  3197. }
  3198.  
  3199. if (res.match(/achtung\.jpg"/))
  3200. {
  3201. DisplayTheCheckedLinks([link], 'adead_link');
  3202. }
  3203. },
  3204. onerror: function ()
  3205. {
  3206. displayTheCheckedLink(link, 'unava_link');
  3207. }
  3208. });
  3209. }
  3210. }
  3211.  
  3212. function depositfilesBulkCheck()
  3213. {
  3214. var arr = this.links[0].split("\r\n");
  3215. var i = arr.length;
  3216. var seqno = Math.floor(Math.random()*1000000000);
  3217. while(i--)
  3218. {
  3219. DFpostRequest(arr[i]);
  3220. }
  3221. }
  3222. function DFpostRequest(DFLink)
  3223. {
  3224. DFLink=DFLink.replace('depositfiles.lt/','depositfiles.com/');
  3225. DFLink=DFLink.replace('depositfiles.org/','depositfiles.com/');
  3226. DFLink=DFLink.replace('dfiles.ru/','depositfiles.com/');
  3227. DFLink=DFLink.replace('dfiles.eu/','depositfiles.com/');
  3228. DFLink=DFLink.replace('depositfiles.com/en/','depositfiles.com/');
  3229. var id = DFLink.match(/depositfiles\.com\/files\/(\w+)/)[1];
  3230. GM_xmlhttpRequest(
  3231. {
  3232. method: "GET",
  3233. url: "http://depositfiles.com/api/get_download_info.php?id=" + id + "&format=json",
  3234. headers: {
  3235. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3236. 'Content-Type': 'application/x-www-form-urlencoded',
  3237. 'Referer': ""
  3238. },
  3239. onload: function (result)
  3240. {
  3241. var res = result.responseText;
  3242. if (res.match('(?:no_file|file_ban)'))
  3243. {
  3244. DisplayTheCheckedLinks([id], 'adead_link');
  3245. return;
  3246. }
  3247. if (res.match('"download_li(?:nk|mit)|password_check|file_storage"'))
  3248. {
  3249. DisplayTheCheckedLinks([id], 'alive_link');
  3250. return;
  3251. }
  3252. DisplayTheCheckedLinks([id], 'unava_link');
  3253. }
  3254. });
  3255. }
  3256.  
  3257. function megaBulkCheck()
  3258. {
  3259. var arr = this.links[0].split("\r\n");
  3260. var i = arr.length;
  3261. var seqno = Math.floor(Math.random()*1000000000);
  3262. while(i--)
  3263. {
  3264. postRequest(arr[i]);
  3265. }
  3266. function postRequest(megaLink)
  3267. {
  3268. megaLink=megaLink.replace('mega.nz/','mega.co.nz/');
  3269. var id = megaLink.match(/mega\.co\.nz\/#!(\w+)(?:!\w+)?/)[1];
  3270. GM_xmlhttpRequest(
  3271. {
  3272. method: "POST",
  3273. url: 'https://g.api.mega.co.nz/cs?id=' + seqno++,
  3274. data: '[{"a":"g","p":"' + id + '","ssl": "1"}]',
  3275. headers: {
  3276. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3277. 'Content-Type': 'application/xml',
  3278. 'Referer': "https://mega.co.nz/"
  3279. },
  3280. onload: function (result)
  3281. {
  3282. var res = $.parseJSON(result.responseText.match(/\[(.+?)\]/)[1]);
  3283. if ((typeof res == "number" && (res == -9 || res == -16 || res == -6)) || res.d)
  3284. {
  3285.  
  3286. DisplayTheCheckedLinks([id], 'adead_link');
  3287. }
  3288. if (res.at)
  3289. {
  3290. DisplayTheCheckedLinks([id], 'alive_link');
  3291. }
  3292. if (res.e == "ETEMPUNAVAIL")
  3293. {
  3294. DisplayTheCheckedLinks([id], 'unava_link');
  3295. }
  3296. }
  3297. });
  3298. }
  3299.  
  3300. }
  3301.  
  3302. function oboomBulk() {
  3303. var a = [], b = [], c = [];
  3304. var array = this.links;
  3305.  
  3306. GM_xmlhttpRequest({
  3307. method: 'GET',
  3308. url: 'https://www.oboom.com/1/guestsession',
  3309. headers: {
  3310. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  3311. 'Content-type': 'application/x-www-form-urlencoded',
  3312. 'Referer': 'https://www.oboom.com',
  3313. 'X-Requested-With': 'XMLHttpRequest'
  3314. },
  3315. onload: function(result) {
  3316. var blockIdx = array.length;
  3317. var token = JSON.parse(result.responseText)[1];
  3318. while (blockIdx--) {
  3319. startCheck(array[blockIdx].split('\r\n'), token);
  3320. }
  3321. }
  3322. });
  3323.  
  3324. function startCheck(links, token) {
  3325. GM_xmlhttpRequest({
  3326. method: 'POST',
  3327. url: "https://api.oboom.com/1/info",
  3328. headers: {
  3329. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  3330. 'Content-type': 'application/x-www-form-urlencoded',
  3331. 'Referer': 'https://www.oboom.com/',
  3332. 'X-Requested-With': 'XMLHttpRequest'
  3333. },
  3334. data: "token=" + token + "&items=" + links.join(","),
  3335. onload: function(result) {
  3336. var res = JSON.parse(result.responseText)[1];
  3337. var i = res.length, s;
  3338.  
  3339. while (i--) {
  3340. s = res[i].state;
  3341. if (s == 'online') a.push(res[i].id);
  3342. 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);
  3343. else c.push(res[i].id);
  3344. }
  3345.  
  3346. if (a.length > 0) DisplayTheCheckedLinks(a, 'alive_link');
  3347. if (b.length > 0) DisplayTheCheckedLinks(b, 'adead_link');
  3348. if (c.length > 0) DisplayTheCheckedLinks(c, 'unava_link');
  3349. }
  3350. });
  3351. }
  3352. }
  3353. function linksaveBulkCheck()
  3354. {
  3355. var arr = this.links[0].split("\r\n");
  3356. var i = arr.length;
  3357. while(i--)
  3358. {
  3359. postRequest(arr[i]);
  3360. }
  3361. function postRequest(lsLink)
  3362. {
  3363. GM_xmlhttpRequest(
  3364. {
  3365. method: "GET",
  3366. url: lsLink + '-t.jpg',
  3367. headers: {
  3368. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3369. 'Accept': 'text/xml',
  3370. 'Referer': ""
  3371. },
  3372. onload: function (result)
  3373. {
  3374. var imgLen = result.responseHeaders.match(/Content-Length: (\d+)/)[1];
  3375. if (imgLen == 965) //online
  3376. {
  3377. DisplayTheCheckedLinks([lsLink], 'alive_link');
  3378. }
  3379.  
  3380. if (imgLen == 972) //offline
  3381. {
  3382. DisplayTheCheckedLinks([lsLink], 'adead_link');
  3383. }
  3384. if (imgLen == 978) //unava
  3385. {
  3386. DisplayTheCheckedLinks([lsLink], 'unava_link');
  3387. }
  3388. }
  3389. });
  3390. }
  3391.  
  3392. }
  3393. function linkcryptBulkCheck()
  3394. {
  3395. var arr = this.links[0].split("\r\n");
  3396. var i = arr.length;
  3397. while(i--)
  3398. {
  3399. postRequest(arr[i]);
  3400. }
  3401. function postRequest(lcLink)
  3402. {
  3403. GM_xmlhttpRequest(
  3404. {
  3405. method: "GET",
  3406. url: 'http://linkcrypt.ws/api.html?api=status_V1&folderKey=' + lcLink.match(/dir\/(\w+)/)[1],
  3407. headers: {
  3408. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3409. 'Accept': 'text/xml',
  3410. 'Referer': ""
  3411. },
  3412. onload: function (result)
  3413. {
  3414. var res = result.responseText;
  3415. if (res.match(/<errorCode>1101|folderStatus>[23]/)) //Offline status
  3416. {
  3417. DisplayTheCheckedLinks([lcLink], 'adead_link');
  3418. return;
  3419. }
  3420. if (res.match(/folderStatus>1/)) //Online status
  3421. {
  3422. DisplayTheCheckedLinks([lcLink], 'alive_link');
  3423. }
  3424. else
  3425. {
  3426. DisplayTheCheckedLinks([lcLink], 'unava_link');
  3427. }
  3428. }
  3429. });
  3430. }
  3431. }
  3432.  
  3433. function megashareBulkCheck()
  3434. {
  3435. var arr = this.links[0].split("\r\n");
  3436. var i = arr.length;
  3437. while(i--)
  3438. {
  3439. postRequest(arr[i]);
  3440. }
  3441. function postRequest(msLink)
  3442. {
  3443. GM_xmlhttpRequest(
  3444. {
  3445. method: "GET",
  3446. url: msLink,
  3447. headers: {
  3448. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3449. 'Content-Type': 'application/x-www-form-urlencoded',
  3450. 'Referer': ""
  3451. },
  3452. onload: function (result)
  3453. {
  3454. var prZVal = result.responseText.match(/name="(\d+prZVal)" value="(\d+)">/);
  3455. var btn3Name = result.responseText.match(/src="images\/dwn-btn3\.gif" name="(.+?)"/);
  3456. if ((prZVal == null) || (btn3Name == null))
  3457. {
  3458. return;
  3459. }
  3460. GM_xmlhttpRequest(
  3461. {
  3462. method: "POST",
  3463. url: msLink,
  3464. headers: {
  3465. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3466. 'Content-Type': 'application/x-www-form-urlencoded',
  3467. 'Referer': ""
  3468. },
  3469. data: prZVal[1] + "=" + prZVal[2] + '&' + btn3Name[1] + '.x=1&' + btn3Name[1] + '.y=1',
  3470. onload: function (result)
  3471. {
  3472. var res = result.responseText;
  3473. if (res.match(/<div id="err">/))
  3474. {
  3475. DisplayTheCheckedLinks([msLink.match(/\.com(\/\d+)/)[1]], 'adead_link');
  3476. }
  3477. else
  3478. {
  3479. DisplayTheCheckedLinks([msLink.match(/\.com(\/\d+)/)[1]], 'alive_link');
  3480. }
  3481. }
  3482. });
  3483. }
  3484. });
  3485. }
  3486. }
  3487. function ncryptBulkCheck()
  3488. {
  3489. var arr = this.links[0].split("\r\n");
  3490. var i = arr.length;
  3491. while(i--)
  3492. {
  3493. postRequest(arr[i]);
  3494. }
  3495. function postRequest(ncryptLink)
  3496. {
  3497. GM_xmlhttpRequest(
  3498. {
  3499. method: "POST",
  3500. url: 'http://ncrypt.in/api_status.php',
  3501. headers: {
  3502. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3503. 'Content-Type': 'application/x-www-form-urlencoded',
  3504. 'Referer': ""
  3505. },
  3506. data: 'link=' + encodeURI(ncryptLink),
  3507. onload: function (result)
  3508. {
  3509. var foldStatus = result.responseText.match(/(?:offline|online);/);
  3510. switch(foldStatus + ""){
  3511. case "offline;": DisplayTheCheckedLinks([ncryptLink], 'adead_link'); break;
  3512. case "online;": DisplayTheCheckedLinks([ncryptLink], 'alive_link'); break;
  3513. default: DisplayTheCheckedLinks([ncryptLink], 'unava_link');
  3514. }
  3515. }
  3516. });
  3517. }
  3518. }
  3519. function hellshareBulkCheck()
  3520. {
  3521. var links = this.links;
  3522. GM_xmlhttpRequest(
  3523. {
  3524. method: "GET",
  3525. url: 'http://www.hellshare.com',
  3526. headers: {
  3527. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3528. 'Accept': 'text/xml',
  3529. 'Referer': ""
  3530. },
  3531. onload: function (result)
  3532. {
  3533. var domain = result.responseText.match(/param_rau = "www\.hellshare\.(\w+)"/)[1];
  3534.  
  3535. var loc = 'check=Zkontrolovat+dostupnost+soubor%C5%AF&links=';
  3536. if (domain == 'sk')
  3537. loc = 'check=Skontrolova%C5%A5&links=';
  3538. if (domain == 'com')
  3539. loc = 'check=Check+availability&links=';
  3540. if (domain == 'hu')
  3541. loc = 'check=Kontrol%C3%A1lj&links=';
  3542. if (domain == 'pl')
  3543. loc = 'check=Sprawd%C5%BC+dost%C4%99pno%C5%9B%C4%87+plik%C3%B3w&links=';
  3544.  
  3545. genBulkCheck.call({ links: links,
  3546. apiUrl: 'http://www.hellshare.' + domain + '/linkchecker?do=linkChecker-linkcheckerform-submit',
  3547. postData: loc,
  3548. resLinkRegex: /hellshare\.(?:cz|com|sk|hu|pl)\/(?:[\w-\.]+\/|)([\w-\.]+\/\d{5,})/,
  3549. 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,
  3550. resDeadRegex: /<span style="color:gray">.*?<\/span> - <strong>/g,
  3551. resUnavaRegex: null
  3552. });
  3553. }
  3554. });
  3555. }
  3556. /**
  3557. * Displays check result
  3558. * @param {Array} Array of links or link fragments.
  3559. * @param {String} Check result status -> ['alive_link'|'adead_link'|'unava_link']
  3560. */
  3561. function DisplayTheCheckedLinks(links, resultStatus)
  3562. {
  3563. //(a[href*=link_1], a[href*=link_2], ..., a[href*=link_n])
  3564. var $links = $('a[href*="' + links.join('"], a[href*="') + '"]');
  3565. if (Do_not_linkify_DL_links)
  3566. { //TODO into separate jQuery function
  3567. $links.replaceWith(function(){
  3568. return '<span href="' + this.href + '">' + $(this).text() + '</span>';
  3569. });
  3570. $links = $('span[href*="' + links.join('"], span[href*="') + '"]');
  3571. }
  3572. $links.removeClass().addClass(resultStatus);
  3573. $links.each(function() {
  3574. this.href = Ref_anonymize_service + $(this).attr("href");
  3575. });
  3576. switch(resultStatus)
  3577. {
  3578. case "alive_link": cLinksAlive += $links.length;
  3579. if (Display_tooltip_info) $links.mouseover(displayTooltipInfo);
  3580. break;
  3581. case "adead_link": cLinksDead += $links.length;
  3582. if (Display_tooltip_info) $links.mouseover(displayTooltipError);
  3583. break;
  3584. case "unava_link": cLinksUnava += $links.length; break;
  3585. default:
  3586. }
  3587. cLinksProcessed += $links.length;
  3588. }
  3589. }
  3590. // starts bulkchecking
  3591. //
  3592. // params
  3593. // filterId [string] restricts link detection with passed id attribute
  3594. function startBulkCheck(filterId)
  3595. {
  3596. var cHosts = bulkHosts.length;
  3597. if (cHosts == 0) //no filehostings selected
  3598. return;
  3599. // STEP 1 linkify the links
  3600. var linkifyRegex = '';
  3601. var hostIdx = cHosts;
  3602. while(hostIdx--)
  3603. {
  3604. linkifyRegex += bulkHosts[hostIdx].linkRegex + "|";
  3605. }
  3606. linkifyRegex = linkifyRegex.replace(/\|$/, '');
  3607. linkify(linkifyRegex);
  3608. //
  3609. //STEP 2 detect link objects
  3610. var xpathAll = '';
  3611. var hostIdx = cHosts;
  3612. while(hostIdx--)
  3613. {
  3614. xpathAll += bulkHosts[hostIdx].xpath + "|";
  3615. }
  3616. xpathAll = xpathAll.replace(/\]\|\/\/a\[/g, " or ");
  3617. xpathAll = xpathAll.replace(/\]\|/, ')]');
  3618. if (filterId != null) //insert id restriction in the xpath
  3619. {
  3620. xpathAll = xpathAll.replace(/\[/, "[@class='" + filterId + "' and (");
  3621. }
  3622. else
  3623. {
  3624. xpathAll = xpathAll.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  3625. }
  3626. var links = document.evaluate(xpathAll, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  3627. if (filterId == null)
  3628. {
  3629. cLinksTotal += links.snapshotLength;
  3630. }
  3631. //
  3632. //STEP 3 bind links with hostings
  3633. var linkIdx = links.snapshotLength;
  3634. var href = null;
  3635. if (linkIdx == 0) // no links found
  3636. return;
  3637. var name;
  3638. while (linkIdx--)
  3639. {
  3640. href = links.snapshotItem(linkIdx).href;
  3641. try // DO NOT REMOVE, filters crap that went through xpath detection
  3642. {
  3643. name = gimmeHostName(href);
  3644. if (href.match(bulkHostNames[name].linkRegexObject) != null)
  3645. bulkHostNames[name].links.push(href);
  3646. }
  3647. catch(e)
  3648. {
  3649.  
  3650. }
  3651. }
  3652. //
  3653. //STEP 4 process the links for each filehosting
  3654. var hostIdx = cHosts;
  3655. var host;
  3656. var m,n;
  3657. var arr;
  3658. while (hostIdx--)
  3659. {
  3660. host = bulkHosts[hostIdx];
  3661. arr = host.links;
  3662. if (arr.length == 0) //no links for this hosting, skip
  3663. {
  3664. continue;
  3665. }
  3666. //links match corrections
  3667. if (host.corrMatch != null)
  3668. {
  3669. var idx = arr.length;
  3670. while (idx--)
  3671. {
  3672. arr[idx] = arr[idx].match(host.corrMatch)[1];
  3673. }
  3674. }
  3675. //links replace corrections
  3676. if ((host.corrReplWhat != null) && (host.corrReplWith != null))
  3677. {
  3678. var idx = arr.length;
  3679. while (idx--)
  3680. {
  3681. arr[idx] = arr[idx].replace(host.corrReplWhat, host.corrReplWith);
  3682. }
  3683. }
  3684. m = arr.length;
  3685. n = host.blockSize;
  3686. if (m > n)
  3687. {
  3688. //insert block separators (RAND_STRING) into the array
  3689. for(var i = n; i < m; i += n + 1)
  3690. {
  3691. arr.splice(i, 0, RAND_STRING);
  3692. }
  3693. }
  3694.  
  3695. host.func.call({ links: arr.join(host.splitSeparator).split(RAND_STRING),
  3696. apiUrl: host.apiUrl,
  3697. postData: host.postData,
  3698. resLinkRegex: host.resLinkRegex,
  3699. resLiveRegex: host.resLiveRegex,
  3700. resDeadRegex: host.resDeadRegex,
  3701. resUnavaRegex: host.resUnavaRegex
  3702. });
  3703. //clean up
  3704. arr.length = 0;
  3705. }
  3706. //
  3707.  
  3708. function gimmeHostName(link)
  3709. {
  3710. return link.replace(/https?:\/\/.*?http(s)?:\/\//, "http$1://").match(/https?:\/\/(?:www\.|[\w\.])*?([\w-]+)\.(?:co\.uk|co\.nz|\w+)\//)[1];
  3711. }
  3712. }
  3713. function checkLinks(filterId)
  3714. {
  3715. startBulkCheck(filterId);
  3716. start(filterId);
  3717. }
  3718.  
  3719. /**
  3720. * Initialises progress box including event binding and CSS
  3721. */
  3722. function initProgressBox()
  3723. {
  3724. if ($("#warlc-progressbox").length > 0)
  3725. return;
  3726. //progressbox css change size and color of progress box
  3727. GM_addStyle("#warlc-progressbox {position:fixed; background:DimGray;" + Progress_box_background_color +
  3728. "; opacity:" + (Progress_box_opacity / 100) +
  3729. "; bottom:" + Progress_box_pos_bottom +
  3730. "px; right:" + Progress_box_pos_right +
  3731. "px; padding:5px; font-size:20px; font-weight:bold; cursor:default;}\
  3732. \
  3733. .warlc-progressbar {text-align:center; color: DimGray; height:2px; margin-bottom:2px;}\
  3734. \
  3735. .warlc-progressitem {}\
  3736. \
  3737. .alive {color:#00FF7F; " + Live_links_color +
  3738. "; background:transparent url(" + alive_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;} .dead {color:" + Dead_links_color +
  3739. "; background:transparent url(" + adead_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;} .unava {color: " + Temp_unavailable_links_color +
  3740. "; background:transparent url(" + unava_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;} .processing {color:Black; " + Container_links_color +
  3741. "; background:transparent url(" + processing_link_gif + ") no-repeat scroll 100% 50%;padding-right:15px;} .prem {color:" + Premium_links_color +
  3742. "; background:transparent url(" + prem_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;}"
  3743. );
  3744. //
  3745. $('body').append(' <div id="warlc-progressbox">\
  3746. <div class="warlc-progressbar"></div>\
  3747. <span class="warlc-progressitem alive"></span> - \
  3748. <span class="warlc-progressitem dead"></span> - \
  3749. <span class="warlc-progressitem unava"></span> - \
  3750. <span class="warlc-progressitem prem"></span> - \
  3751. <span class="warlc-progressitem processing"></span>\
  3752. </div>');
  3753. $('#warlc-progressbox').hide().click(function(){
  3754. clearInterval(intervalId);
  3755. $(this).hide();
  3756. return false;
  3757. });
  3758. $(".warlc-progressbar").progressbar({complete: function(){
  3759. $(this).fadeOut();
  3760. clearInterval(intervalId); //stop refreshing the stats
  3761. }
  3762. })
  3763. .one('progressbarchange', function(){$('#warlc-progressbox').show();});
  3764. }
  3765. /**
  3766. * Updates progress data in progress box
  3767. */
  3768. function updateProgress()
  3769. {
  3770. $("#warlc-progressbox").attr('aria-valuenow', Math.round(((100 / cLinksTotal) * cLinksProcessed)));
  3771. if (cLinksTotal) // some links were detected on page
  3772. {
  3773. var percProgress = Math.round(((100 / cLinksTotal) * cLinksProcessed));
  3774. var $progressItems = $('#warlc-progressbox > .warlc-progressitem');
  3775. $(".warlc-progressbar").progressbar('option', 'value', percProgress);
  3776. if ((cLinksTotal - cLinksProcessed) == 0)
  3777. {
  3778. $progressItems.first().text(cLinksAlive)
  3779. .next().text(cLinksDead)
  3780. .next().text(cLinksUnava)
  3781. .next().text(cLinksprem)
  3782. .next().remove();
  3783. $('#warlc-progressbox').html($('#warlc-progressbox').html().substr(0,$('#warlc-progressbox').html().lastIndexOf(">")+1));
  3784. $('#warlc-progressbox div:first-child').remove();
  3785. }
  3786. else
  3787. {
  3788. $progressItems.first().text(cLinksAlive)
  3789. .next().text(cLinksDead)
  3790. .next().text(cLinksUnava)
  3791. .next().text(cLinksprem)
  3792. .next().text(cLinksTotal - cLinksProcessed);
  3793. }
  3794. }
  3795. }
  3796.  
  3797. function check_all_links()
  3798. {
  3799. add_WARLC_style();
  3800.  
  3801. if (Show_progress_stats)
  3802. {
  3803. initProgressBox();
  3804. intervalId = setInterval(function(){updateProgress();}, Progress_box_refresh_rate);
  3805. }
  3806.  
  3807. startBulkCheck(null);
  3808. start(null);
  3809.  
  3810. if (!containers_processed)
  3811. {
  3812. processContainers();
  3813. }
  3814. }
  3815.  
  3816. //Copies all found dead links to clipboard - right now for Scriptish only
  3817. function copy_dead_to_clipboard()
  3818. {
  3819. initClipBoardTools();
  3820.  
  3821. var deadlinksxpath = "//.[@class='adead_link']";
  3822.  
  3823. var foundlinks = document.evaluate(deadlinksxpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  3824. var foundlinkstext = '';
  3825.  
  3826. var foundlinkIdx = foundlinks.snapshotLength;
  3827.  
  3828. while(foundlinkIdx--)
  3829. {
  3830. if (foundlinks.snapshotItem(foundlinkIdx).innerHTML != ' x')
  3831. foundlinkstext += foundlinks.snapshotItem(foundlinkIdx).innerHTML.replace(/\[\/hide:\w+\]/,"") + '\n';
  3832. }
  3833.  
  3834. unsafeWindow.copyToClipboard(foundlinkstext);
  3835. }
  3836.  
  3837. function toggle_autocheck()
  3838. {
  3839. var currentState = GM_getValue("Autocheck", false);
  3840. GM_setValue("Autocheck", !currentState);
  3841.  
  3842. if (currentState == true)
  3843. {
  3844. sendMessage('Autocheck disabled', 'red');
  3845. }
  3846. else
  3847. {
  3848. sendMessage('Autocheck enabled', 'SpringGreen');
  3849. }
  3850. }
  3851. function toggle_Enable_Anonymizer()
  3852. {
  3853. var currentState = GM_getValue("Enable_Anonymizer", false);
  3854. GM_setValue("Enable_Anonymizer", !currentState);
  3855.  
  3856. if (currentState == true)
  3857. {
  3858. GM_setValue("Ref_anonymize_service", "");
  3859. sendMessage('Anonymizer Disabled', 'red');
  3860. }
  3861. else
  3862. {
  3863. GM_setValue("Ref_anonymize_service", "http://hiderefer.com/?");
  3864. sendMessage('Anonymizer Enabled', 'SpringGreen');
  3865. }
  3866. }
  3867.  
  3868. function KeyDownHandler(event)
  3869. {
  3870. var kcode = (event.keyCode) ? event.keyCode : event.which;
  3871. if (event.ctrlKey && event.altKey)
  3872. {
  3873. switch(kcode)
  3874. {
  3875. case 65 : check_all_links(); break;
  3876. case 67 : configuration(); break;
  3877. case 68 : copy_dead_to_clipboard(); break;
  3878. case 87 : toggle_autocheck(); break;
  3879. case 90 : toggle_Enable_Anonymizer(); break;
  3880. }
  3881. }
  3882. }
  3883.  
  3884. //
  3885. //
  3886. // SCRIPT EXECUTION START POINT
  3887. //
  3888. //
  3889. // Safari specific GM_getResourceText override
  3890. if (navigator.userAgent.indexOf('Safari') != -1 && navigator.userAgent.indexOf('Chrome') == -1)
  3891. {
  3892. GM_getResourceText = function(res) {
  3893. var $cssText = GM_getValue("jquery_css", "");
  3894. if ($cssText == "")
  3895. {
  3896. GM_xmlhttpRequest(
  3897. {
  3898. method: 'GET',
  3899. url: 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css',
  3900. onload: function (result)
  3901. {
  3902. GM_setValue("jquery_css", result.responseText);
  3903. window.location.reload();
  3904. }
  3905. });
  3906. }
  3907. else
  3908. {
  3909. return $cssText;
  3910. }
  3911. }
  3912. }
  3913. var jQueryUICSS = GM_getResourceText("jQueryUICSS");
  3914. GM_addStyle(jQueryUICSS);
  3915. //init the stuff
  3916. setVariables();
  3917. initBulkCheck();
  3918. //init info boxes
  3919. messageBox.style.position = 'fixed';
  3920. messageBox.style.top = '20px';
  3921. messageBox.style.left = '10px';
  3922. messageBox.style.opacity = '0.85';
  3923. messageBox.style.background = 'DimGray';
  3924. messageBox.style.fontSize = '36px';
  3925. document.body.appendChild(messageBox);
  3926.  
  3927. //register GM menu commands & keyboard shortcut event handler
  3928. if (Keyboard_functions)
  3929. {
  3930. $(document).keydown(KeyDownHandler);
  3931. GM_registerMenuCommand("[W.A.R. Links Checker] Configuration (" + first_key_keycodename + "+" + second_key_keycodename + "+" + String.fromCharCode(CONFIGURATION_KEYCODE) + ")", configuration);
  3932. 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);
  3933. }
  3934. else
  3935. {
  3936. GM_registerMenuCommand("[W.A.R. Links Checker] Configuration", configuration);
  3937. GM_registerMenuCommand("[W.A.R. Links Checker] Check The Links In This Page", check_all_links);
  3938. }
  3939.  
  3940. //start linkchecking
  3941. if (Autocheck)
  3942. {
  3943. $(document).ready(check_all_links);
  3944. }
  3945.  
  3946. //
  3947. //
  3948. // SCRIPT EXECUTION END POINT
  3949. //
  3950. //
  3951.  
  3952. //shows configuration box
  3953. function configuration()
  3954. {
  3955.  
  3956. //prevent multiple creating of config window
  3957. if ($("#hideshow").length)
  3958. {
  3959. $("#hideshow").show();
  3960. return;
  3961. }
  3962.  
  3963. var configcss = '\
  3964. .popup_block .popup fieldset{\
  3965. padding: 1%;\
  3966. border-style: solid;\
  3967. border-width: 1px;\
  3968. border-color: gray;\
  3969. margin-bottom: 1px;\
  3970. }\
  3971. #h3hideshowtitle{\
  3972. font-size: 2em;\
  3973. }\
  3974. #h3hideshow{\
  3975. font-size: 1.5em;\
  3976. }\
  3977. #imghideshow {\
  3978. border: none;\
  3979. }\
  3980. #plusimage{\
  3981. display:inline;\
  3982. }\
  3983. #hideshow {\
  3984. position: fixed;\
  3985. width: 100%;\
  3986. height: 100%;\
  3987. top: 0;\
  3988. left: 0;\
  3989. font-size:12px;\
  3990. z-index:2147483645;\
  3991. text-align:left;\
  3992. }\
  3993. #fade {\
  3994. background: #000;\
  3995. position: fixed;\
  3996. width: 100%;\
  3997. height: 100%;\
  3998. opacity: .80;\
  3999. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";\
  4000. left: 0;\
  4001. z-index: 10;\
  4002. }\
  4003. .popup_block {\
  4004. font-family:verdana;\
  4005. color:black;\
  4006. background: #ddd;\
  4007. padding: 10px 20px;\
  4008. border: 2px solid DarkOrange;\
  4009. float: left;\
  4010. width: 700px;\
  4011. position: absolute;\
  4012. top: 7%;\
  4013. left: 50%;\
  4014. bottom: 7%;\
  4015. margin: 0 0 0 -350px;\
  4016. -moz-border-radius:10px;\
  4017. z-index: 100;\
  4018. \
  4019. }\
  4020. .popup_block .popup {\
  4021. float: left;\
  4022. width: 100%;\
  4023. background: #fff;\
  4024. margin: 10px 0;\
  4025. padding: 0px 0 0px;\
  4026. border-left: 1px solid #bbb;\
  4027. border-top: 1px solid #bbb;\
  4028. border-right: 1px solid #bbb;\
  4029. }\
  4030. #h3hideshow{\
  4031. margin: 1px 0 0px;\
  4032. padding: 1px 10px;\
  4033. border-bottom: 1px solid #bbb;\
  4034. font-size: 1.5em;\
  4035. font-weight: normal;\
  4036. cursor:pointer;\
  4037. background:#DDDDDD none repeat scroll 0 0;\
  4038. }\
  4039. #h3hideshow:hover{\
  4040. background:#C0BEBE none repeat scroll 0 0;\
  4041. }\
  4042. #h3hideshowtitle{\
  4043. margin: 2px 0 0px;\
  4044. padding: 7px 10px;\
  4045. border-bottom: 1px solid #bbb;\
  4046. font-size: 1.5em;\
  4047. font-weight: normal;\
  4048. }\
  4049. .popup_block .popup a {\
  4050. color:DarkSkyBlue;\
  4051. text-decoration:none;\
  4052. }\
  4053. .popup p {\
  4054. padding: 1px 10px;\
  4055. margin: 0px 0;\
  4056. -x-system-font:none;\
  4057. font-family:verdana,geneva,lucida,"lucida grande",arial,helvetica,sans-serif;\
  4058. font-size:10pt;\
  4059. font-size-adjust:none;\
  4060. font-stretch:normal;\
  4061. font-style:normal;\
  4062. font-variant:normal;\
  4063. font-weight:normal;\
  4064. line-height:normal;\
  4065. }\
  4066. #sites {\
  4067. padding: 1px 10px;\
  4068. margin: 0px 0;display:inline-block;width:16em;\
  4069. }\
  4070. #dev_ver {\
  4071. color: #00FF00;\
  4072. background: Black;\
  4073. text-align: right;\
  4074. }\
  4075. #sites_suspended {\
  4076. padding: 1px 10px;\
  4077. margin: 0px 0;display:inline-block;width:16em;\
  4078. text-decoration: line-through;\
  4079. }\
  4080. .popup img.cntrl {\
  4081. position: absolute;\
  4082. right: -15px;\
  4083. top: -15px;\
  4084. }\
  4085. #bulk {\
  4086. font-size:8pt;\
  4087. color:orange;\
  4088. padding: 1px 10px;\
  4089. margin: 0px 0;\
  4090. display:inline-block;\
  4091. width:100px;\
  4092. }\
  4093. #note {\
  4094. font-size:7pt;\
  4095. color:gray;\
  4096. padding: 1px 10px;\
  4097. margin: 0px 0;display:inline-block;\
  4098. min-width:100px;\
  4099. }\
  4100. #rednote {\
  4101. font-size:7pt;\
  4102. color:red;\
  4103. padding: 1px 10px;\
  4104. margin: 0px 0;display:inline-block;\
  4105. }\
  4106. #configinfo {\
  4107. font-size:8pt;\
  4108. color:gray;\
  4109. padding: 1px 10px;\
  4110. margin: 0px 0;display:inline-block;width:60em;\
  4111. }\
  4112. #refAnonymizer, #inputColorLive, #inputColorprem, #hostSearchBox2, #hostSearchBox, #inputColorDead, #inputColorTemp, #inputColorCont, #selectAllButton, #selectNoneButton, #invertButton, #selectAllButton2, #selectNoneButton2, #invertButton2 {\
  4113. color:black;\
  4114. border-style: solid;\
  4115. border-width: 1px;\
  4116. border-color: gray;\
  4117. }\
  4118. #h3hideshowcontent {\
  4119. min-height:220px;\
  4120. max-height:220px;\
  4121. overflow:auto;\
  4122. display: none;\
  4123. padding: 10px 10px;\
  4124. }\
  4125. #specinfo{\
  4126. font-size:14px;\
  4127. }\
  4128. .warlc-ui-tab {\
  4129. height:300px;\
  4130. overflow:auto;\
  4131. }\
  4132. #warlcsitelist2, #warlcsitelist1 {\
  4133. height:220px;\
  4134. border-top: 1px solid #ddd;\
  4135. padding-top: 5px;\
  4136. overflow:auto;\
  4137. }\
  4138. input:hover+label {\
  4139. background:#F1F77C;\
  4140. font-size:110%;\
  4141. }\
  4142. ';
  4143.  
  4144. GM_addStyle(configcss);
  4145.  
  4146. var customRulesRefHTML =
  4147. '\
  4148. <br>\
  4149. A custom rule consists of <b>commands</b>. A command must be on its own line and in this form:<br>\
  4150. <b>@keyword</b> <i>parameter</i>\
  4151. <br><br>\
  4152. 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. \
  4153. <br><br>\
  4154. 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.\
  4155. 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.\
  4156. 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.\
  4157. 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,\
  4158. but all commands until the next valid @customrule are ignored.<br><br>\
  4159. Available forms and types:\
  4160. <ul>\
  4161. <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.\
  4162. <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.\
  4163. <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.\
  4164. <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.\
  4165. </ul>\
  4166. Other available commands:<br>\
  4167. (Note: There can be more than 1 (up to 10) of these commands per rule. In that case, any of them will work.)\
  4168. <ul>\
  4169. <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.\
  4170. It can also specify multiple (up to 10) Top Level Domains (.com, .net etc.)<br>\
  4171. <ul>examples:<br>\
  4172. <li>good: <i>filehost.com/download/</i><br>\
  4173. <li>good: <i>download.filehost.net/?d=</i><br>\
  4174. <li>good: <i>filehost. com net co.uk /</i> - multiple TLDs (note the spaces before, between and after TLDs)<br>\
  4175. <li>ok: <i>filehost.com/</i> - works, but will also find links like filehost.com/login etc. Sometimes it\'s unavoidable though.<br>\
  4176. <li>bad: <i>d8523.filehost.com/</i> - d8523 probably is not constant<br>\
  4177. <li>bad: <i>filehost.com/3bfiq5d1</i> - 3bfiq5d1 probably is not constant<br>\
  4178. <li>bad: <i>filehost.com</i> - no slash<br>\
  4179. </ul>\
  4180. \
  4181. <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.\
  4182. 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 \
  4183. &lt;div&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;p&gt; even if there are new lines, tabulators etc.\
  4184. <li><b>@deadmatch</b> <i>pattern</i> - ignored for OBSOLETE, required for others. (For HEADERS some servers return 404 Error \
  4185. 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.)\
  4186. Two spaces again match any whitespace.\
  4187. <li><b>@unavamatch</b> <i>pattern</i> - optional, ignored for OBSOLETE and HEADERS. If found, the link is deemed temporarily unavailable.\
  4188. Two spaces again match any whitespace.\
  4189. <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. \
  4190. <li><b>@deadlink</b> <i>url</i> - optional. Example dead link.\
  4191. </ul>\
  4192. \
  4193. ';
  4194.  
  4195. //close image and css taken from = http://www.sohtanaka.com/web-design/examples/css-popup icon_close.png;
  4196. var configurationinnerHTML =
  4197. '<div id="fade"></div>\
  4198. <div class="popup_block">\
  4199. <div class="popup">\
  4200. <a href="#"><img id="imghideshow" title="Close" class="cntrl" src="data:image/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a4HVwasTnmuLzQm3STrtxRUmetW/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>\
  4202. <div id="warlc-conf-tabs">\
  4203. <ul>\
  4204. <li><a href="#tabs-1">Filehostings</a></li>\
  4205. <li><a href="#tabs-2">Containers</a></li>\
  4206. <li><a href="#tabs-5">Custom rules</a></li>\
  4207. <li><a href="#tabs-3">Settings</a></li>\
  4208. <li><a href="#tabs-4">About</a></li>\
  4209. </ul>\
  4210. <div id="tabs-1" class="warlc-ui-tab">\
  4211. <div class="warlc-ui-buttonset">\
  4212. <input type="button" class="warlc-ui-select-all" value="Select All">\
  4213. <input type="button" class="warlc-ui-select-none" value="Select None">\
  4214. <input type="button" class="warlc-ui-select-invert" value="Invert">\
  4215. </div><br>\
  4216. <div>Search: <input type="textbox" id="hostSearchBox" value=""></div><br>\
  4217. <div id="warlcsitelist1"><span>Empty</span></div>\
  4218. </div>\
  4219. <div id="tabs-2" class="warlc-ui-tab">\
  4220. <div class="warlc-ui-buttonset">\
  4221. <input type="button" class="warlc-ui-select-all" value="Select All">\
  4222. <input type="button" class="warlc-ui-select-none" value="Select None">\
  4223. <input type="button" class="warlc-ui-select-invert" value="Invert">\
  4224. </div><br>\
  4225. <div>Search: <input type="textbox" id="hostSearchBox2" value=""></div><br>\
  4226. <div id="warlcsitelist2"><span>Empty</span></div>\
  4227. </div>\
  4228. <div id="tabs-5" class="warlc-ui-tab">\
  4229. <div class="warlcsettings">\
  4230. <fieldset><input type="checkbox" id="Custom_rules"> Enable custom rules <div id="bulk">EXPERIMENTAL</div></fieldset>\
  4231. <br>\
  4232. <div>Edit custom rules: \
  4233. <a href="#" id="showCustomRulesReference">(<b>Click here to show/hide the reference</b>)</a>\
  4234. <div id="customRulesReference" style="display:none;">'
  4235. + customRulesRefHTML + '\
  4236. </div>\
  4237. <textarea style="width:100%;height:200px;" id="Custom_rules_text"></textarea>\
  4238. </div>\
  4239. </div>\
  4240. </div>\
  4241. <div id="tabs-3" class="warlc-ui-tab">\
  4242. <div class="warlcsettings">\
  4243. <fieldset>\
  4244. <p><input type="checkbox" id="Keyboard_functions"> Enable keyboard shortcuts</p>\
  4245. <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>\
  4246. </fieldset>\
  4247. <fieldset>\
  4248. <p><input type="checkbox" id="Color_DL_links"> Color DL links</p>\
  4249. <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>\
  4250. <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>\
  4251. <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>\
  4252. <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>\
  4253. <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>\
  4254. <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>\
  4255. <p><input type="checkbox" id="Show_line_through_in_dead_links"> Show line through in dead links</p>\
  4256. <p><input type="checkbox" id="Show_black_background_in_DL_links"> Show black background in DL links</p>\
  4257. <p><input type="checkbox" id="Do_not_linkify_DL_links"> Do NOT linkify DL links</p>\
  4258. <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>\
  4259. <p><input type="checkbox" id="Display_full_links_in_link_containers"> Display full links in link containers</p><br>\
  4260. <fieldset>\
  4261. <p><input type="radio" name="warlciconset" value="0"> No icons</p>\
  4262. <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>\
  4263. <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>\
  4264. <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>\
  4265. </fieldset>\
  4266. </fieldset>\
  4267. <fieldset>\
  4268. <div id="sites"><input type="checkbox" id="Autocheck"> Autocheck</div><br><div id="configinfo">Script starts check automatically.</div><br>\
  4269. </fieldset>\
  4270. <fieldset>\
  4271. <div id="sites"><input type="checkbox" id="Show_progress_stats"> Show progress stats</div><br>\
  4272. </fieldset>\
  4273. <fieldset>\
  4274. <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>\
  4275. </fieldset>\
  4276. <fieldset>\
  4277. <p><input type="checkbox" id="Enable_Anonymizer"> Enable Anonymizer</div><div id="bulk">EXPERIMENTAL Note: Checkbox does not work use CTRL+ALT+Z.</p>\
  4278. <div id="sites"><label for="refAnonymizer">Refererer anonymizing service</label><input type="text" id="refAnonymizer" value="' + Ref_anonymize_service + '"></div>\
  4279. </fieldset>\
  4280. </div>\
  4281. </div>\
  4282. <div id="tabs-4" class="warlc-ui-tab">\
  4283. <p><b>Author:</b> <a href="http://www.warlc.5gbfree.com/viewtopic.php?f=12&t=12">mental</a></p>\
  4284. <br />\
  4285. <p><b>Currently supported:</b><br>\
  4286. Filehostings: ' + allHostNames.length + '<br />\
  4287. Containers: ' + allContainerNames.length + '<br />\
  4288. Obsolete sites: ' + allObsoleteNames.length + '<br /></p>\
  4289. <br />\
  4290. <p><b>Based on:</b><br>\
  4291. <a href="http://userscripts-mirror.org/scripts/show/125631.html">W.A.R. Links Checker - Dev</a></p>\
  4292. <br />\
  4293. <p><b>Uses:</b></p>\
  4294. <p>adam_3\'s <a href="http://userscripts-mirror.org/scripts/show/2254">Linkify ting</a> (modified)</p>\
  4295. <p><a href="http://jquery.com/">jQuery</a> JavaScript Library</p>\
  4296. <br />\
  4297. <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>\
  4298. </div>\
  4299. </div>\
  4300. </div>\
  4301. </div>';
  4302. $('body').append('<div id="hideshow">' + configurationinnerHTML + '</div>');
  4303. $("#warlc-conf-tabs").tabs({ fx: { opacity: 'toggle', duration: 'fast' } });
  4304. $("#imghideshow").click(function(event){$("#hideshow").hide(); event.preventDefault();});
  4305. var elmHostList = document.getElementById("warlcsitelist1");
  4306. var elmContainerList = document.getElementById("warlcsitelist2");
  4307. buildSettings();
  4308. buildSitelist("", allHostNames, elmHostList);
  4309. buildSitelist("", allContainerNames, elmContainerList);
  4310. if (DEBUG_MODE)
  4311. {
  4312. //log all sites availability status
  4313. diagSites();
  4314. }
  4315. //handler for checkbox state change
  4316. function changeConfiguration(e)
  4317. {
  4318. var element = e.target;
  4319.  
  4320. if (element.type == 'checkbox')
  4321. {
  4322. if (element.checked == 1)
  4323. {
  4324. GM_setValue(element.id, true);
  4325. }
  4326. else
  4327. {
  4328. GM_setValue(element.id, false);
  4329. }
  4330.  
  4331. }
  4332. setVariables();
  4333. }
  4334.  
  4335. //Selects all filehosting checkboxes
  4336. function selectAll()
  4337. {
  4338. $(":checkbox:visible:not(:checked)").prop("checked",true)
  4339. .each(function(index, element){GM_setValue(this.id, true)});
  4340. }
  4341.  
  4342. //Deselects all filehosting checkboxes
  4343. function selectNone()
  4344. {
  4345. $(":checkbox:visible:checked").prop("checked",false)
  4346. .each(function(index, element){GM_setValue(this.id, false)});
  4347. }
  4348.  
  4349. //Inverts filehosting checkboxes selection
  4350. function selectInvert()
  4351. {
  4352. var $checked = $(":checkbox:visible:checked");
  4353. var $unchecked = $(":checkbox:visible:not(:checked)");
  4354. $unchecked.prop("checked",true)
  4355. .each(function(index, element){GM_setValue(this.id, true)});
  4356. $checked.prop("checked",false)
  4357. .each(function(index, element){GM_setValue(this.id, false)});
  4358. }
  4359. //toggles anonymizer on off
  4360. function Enable_Anonymizer()
  4361. {
  4362. var $checked = $(":checkbox:visible:checked");
  4363. var $unchecked = $(":checkbox:visible:not(:checked)");
  4364. $unchecked.prop("checked",true)
  4365. .each(function(index, element){GM_setValue(this.id, true)});
  4366. $checked.prop("checked",false)
  4367. .each(function(index, element){GM_setValue(this.id, false)});
  4368. }
  4369.  
  4370. function changeRefAnonymizer(){
  4371. GM_setValue("Ref_anonymize_service", $("#refAnonymizer").attr("value"));
  4372. }
  4373.  
  4374. //Sets live links color
  4375. function changeColorLive()
  4376. {
  4377. var inColorLive = document.getElementById("inputColorLive");
  4378. inColorLive.style.background = inColorLive.value;
  4379. GM_setValue("Live_links_color", inColorLive.value);
  4380. }
  4381.  
  4382. //Sets dead links color
  4383. function changeColorDead()
  4384. {
  4385. var inColorDead = document.getElementById("inputColorDead");
  4386. inColorDead.style.background = inColorDead.value;
  4387. GM_setValue("Dead_links_color", inColorDead.value);
  4388. }
  4389.  
  4390. //Sets temp. unavailable links color
  4391. function changeColorTemp()
  4392. {
  4393. var inColorTemp = document.getElementById("inputColorTemp");
  4394. inColorTemp.style.background = inColorTemp.value;
  4395. GM_setValue("Temp_unavailable_links_color", inColorTemp.value);
  4396. }
  4397.  
  4398. //Sets temp. unavailable links color
  4399. function changeColorCont()
  4400. {
  4401. var inColorCont = document.getElementById("inputColorCont");
  4402. inColorCont.style.background = inColorCont.value;
  4403. GM_setValue("Container_links_color", inColorCont.value);
  4404. }
  4405. //Sets premium. links color
  4406. function changeColorprem()
  4407. {
  4408. var inColorprem = document.getElementById("inputColorprem");
  4409. inColorprem.style.background = inColorprem.value;
  4410. GM_setValue("Premium_links_color", inColorprem.value);
  4411. }
  4412.  
  4413. //Diagnose sites for availability
  4414. function diagSites()
  4415. {
  4416. var boxes = document.getElementById("warlcsitelist1").getElementsByTagName("input");
  4417.  
  4418. for (var i = 0, n = boxes.length - 1; i < n; i++)
  4419. {
  4420. if (boxes[i].type == "checkbox")
  4421. {
  4422. checkAvailability(boxes[i]);
  4423. }
  4424. }
  4425.  
  4426. boxes = document.getElementById("warlcsitelist2").getElementsByTagName("input");
  4427.  
  4428. for (var i = 0, n = boxes.length - 1; i < n; i++)
  4429. {
  4430. if (boxes[i].type == "checkbox")
  4431. {
  4432. checkAvailability(boxes[i]);
  4433. }
  4434. }
  4435.  
  4436. function checkAvailability(cbElm)
  4437. {
  4438. var cb = cbElm;
  4439. GM_xmlhttpRequest(
  4440. {
  4441. method: 'HEAD',
  4442. url: 'http://' + cb.nextSibling.textContent.replace(' ', ''),
  4443. headers: {
  4444. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  4445. 'Accept': 'text/xml',
  4446. 'Referer': ""
  4447. },
  4448. onload: function (result)
  4449. {
  4450. if (result.status != 200)
  4451. {
  4452. GM_log(cb.nextSibling.textContent + ' --- status: [' + result.status + '] ' + result.statusText + ', final url: ' + result.finalUrl);
  4453. }
  4454. },
  4455. onerror: function (result)
  4456. {
  4457. if (result.status != 200)
  4458. {
  4459. GM_log(cb.nextSibling.textContent + ' --- status: [' + result.status + '] ' + result.statusText + ', final url: ' + result.finalUrl);
  4460. }
  4461. }
  4462. });
  4463. }
  4464. }
  4465. function buildSettings()
  4466. {
  4467. $(".warlcsettings :checkbox").each(function(){
  4468. $(this).prop("checked", GM_getValue($(this).attr("id")))
  4469. .click(function(e){
  4470. GM_setValue($(this).attr("id"), $(this).prop("checked"));
  4471. setVariables();
  4472. });
  4473. })
  4474. }
  4475. //Dynamic build of host list
  4476. //param search [string] searches for hostnames matching search substring
  4477. //param siteNames [array] array of site names
  4478. //param targetNode [DOM Node] where the list should be built
  4479. // first child node is replaced
  4480. function buildSitelist(search, siteNames, targetNode)
  4481. {
  4482. var searchRegex = new RegExp("\\|?([\\w\\.-]*" + search.replace(/\./g,"\\.").replace(/-/g, "\\-") + "[\\w\\.-]*)\\|?", "i");
  4483. var $targetNode = $(targetNode).empty();
  4484. var searchedSite = "";
  4485. $.each(siteNames, function(i, site){
  4486. if (searchedSite = site.match(searchRegex))
  4487. {
  4488. var baseSite = site.replace(/\|.+/, ""); //filehosting main domain
  4489. //ensuring backward compatibility with the rest of code, to be refactored later
  4490. var oldRSLCvalue = "Check_" + baseSite.replace(/\|.+/, "").replace(/\./g,"_dot_").replace(/-/g, "_dash_") + "_links";
  4491. //
  4492. $targetNode.append('<input type="checkbox" id="' + oldRSLCvalue +'" />\
  4493. <label for="' + oldRSLCvalue + '">' + searchedSite[1] + '</label>' +
  4494. ((searchedSite[1] != baseSite) ? ('<div id="note"> ( ~ ' + baseSite + ' )</div>') : (""))
  4495. );
  4496. $("#" + oldRSLCvalue).prop("checked", GM_getValue(oldRSLCvalue, false))
  4497. .change(changeConfiguration);
  4498. $targetNode.append('<br />');
  4499. }
  4500. });
  4501. $targetNode.append("<hr>");
  4502. //obsolete hosts checkbox
  4503. $targetNode.append('<input type="checkbox" id="Obsolete_file_hosts" /><label for="Obsolete_file_hosts">Obsolete file hosts</label>');
  4504. $("#Obsolete_file_hosts").prop("checked", GM_getValue("Obsolete_file_hosts", false))
  4505. .change(changeConfiguration);
  4506. $targetNode.append('<br />');
  4507. var foundName = "";
  4508. $.each(allObsoleteNames, function(i, site){
  4509. if (foundName = allObsoleteNames[i].match(searchRegex))
  4510. {
  4511. $targetNode.append('<div id="note">' + foundName[1] + '</div>');
  4512. }
  4513. })
  4514. }
  4515. var hostSearchBox = document.getElementById("hostSearchBox");
  4516. hostSearchBox.addEventListener('keyup', function(){buildSitelist(hostSearchBox.value, allHostNames, elmHostList);}, false);
  4517. var hostSearchBox2 = document.getElementById("hostSearchBox2");
  4518. hostSearchBox2.addEventListener('keyup', function(){buildSitelist(hostSearchBox2.value, allContainerNames, elmContainerList);}, false);
  4519. $(".warlc-ui-select-all").click(selectAll).button();
  4520. $(".warlc-ui-select-none").click(selectNone).button();
  4521. $(".warlc-ui-select-invert").click(selectInvert).button();
  4522. $(".warlc-ui-buttonset").buttonset();
  4523. var inColorLive = document.getElementById("inputColorLive");
  4524. inColorLive.addEventListener('keyup', changeColorLive, false);
  4525.  
  4526. var inColorDead = document.getElementById("inputColorDead");
  4527. inColorDead.addEventListener('keyup', changeColorDead, false);
  4528.  
  4529. var inColorTemp = document.getElementById("inputColorTemp");
  4530. inColorTemp.addEventListener('keyup', changeColorTemp, false);
  4531.  
  4532. var inColorCont = document.getElementById("inputColorCont");
  4533. inColorCont.addEventListener('keyup', changeColorCont, false);
  4534. var inColorprem = document.getElementById("inputColorprem");
  4535. inColorprem.addEventListener('keyup', changeColorprem, false);
  4536. $("#refAnonymizer").change(changeRefAnonymizer);
  4537. //buttons and edit boxes init end
  4538.  
  4539. //icon sets radio buttons
  4540. var radioButtons = document.getElementsByName("warlciconset");
  4541. radioButtons[Icon_set].checked = "checked";
  4542.  
  4543. radioButtons[0].addEventListener("change", updateIconSet);
  4544. radioButtons[1].addEventListener("change", updateIconSet);
  4545. radioButtons[2].addEventListener("change", updateIconSet);
  4546. radioButtons[3].addEventListener("change", updateIconSet);
  4547. function updateIconSet()
  4548. {
  4549. GM_setValue("Icon_set", this.value * 1);
  4550. }
  4551. //
  4552. $('#showCustomRulesReference').click(function(e){
  4553. e.preventDefault();
  4554. $('#customRulesReference').toggle();
  4555. });
  4556. $('#Custom_rules_text')
  4557. .val(Custom_rules_text)
  4558. .change(saveCustomRules);
  4559. function saveCustomRules(e)
  4560. {
  4561. var cr = parseCustomRules(this.value);
  4562. if (cr.info.length)
  4563. 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, ' '));
  4564. GM_setValue('Custom_rules_text', this.value);
  4565. GM_setValue('last_custom_rules_nag', ''+new Date().getTime()); //reset nag
  4566. }
  4567. }
  4568.  
  4569. //begin standard link checking algorithm
  4570. function start(filterId)
  4571. {
  4572. var doNotLinkify = Do_not_linkify_DL_links;
  4573.  
  4574. // USER SELECTED FILE HOSTS INITIALIZATION START
  4575. var http_file_hosts = new Array(); //standard hostings
  4576. var http_file_hosts_coded = new Array(); //hostings which has to be decoded to obtain real checkable link
  4577. var http_file_hosts_obsolete = new Array(); //dead hostings
  4578. var http_file_hosts_headers_only = new Array(); //hostings with direct download, must be handled via headers only
  4579.  
  4580. initFileHosts();
  4581. initFileHostsHeadersOnly();
  4582. initFileHostsCustom(); //CustomRules
  4583. // USER SELECTED FILE HOSTS INITIALIZATION END
  4584.  
  4585. // LINKIFICATION START
  4586. var totalxpath = '';
  4587. var totalxpathcoded = '';
  4588. var totalxpathobsolete = '';
  4589. var totalxpathheadersonly = '';
  4590. var totalourls = '';
  4591.  
  4592. var filehostLen = http_file_hosts.length;
  4593. var filehostCodedLen = http_file_hosts_coded.length;
  4594. var filehostObsoleteLen = http_file_hosts_obsolete.length;
  4595. var filehostHeadersOnlyLen = http_file_hosts_headers_only.length;
  4596.  
  4597. var filehostIdx = filehostLen;
  4598. var filehostCodedIdx = filehostCodedLen;
  4599. var filehostObsoleteIdx = filehostObsoleteLen;
  4600. var filehostHeadersOnlyIdx = filehostHeadersOnlyLen;
  4601.  
  4602. if ((filehostIdx == 0) && (filehostCodedIdx == 0) && (filehostHeadersOnlyIdx == 0) && (filehostObsoleteIdx == 0))
  4603. return;
  4604.  
  4605. while (filehostIdx--)
  4606. {
  4607. totalourls += http_file_hosts[filehostIdx][0] + '|';
  4608. totalxpath += http_file_hosts[filehostIdx][4] + '|';
  4609. }
  4610.  
  4611. while (filehostCodedIdx--)
  4612. {
  4613. totalourls += http_file_hosts_coded[filehostCodedIdx][0] + '|';
  4614. totalxpathcoded += http_file_hosts_coded[filehostCodedIdx][3] + '|';
  4615. }
  4616.  
  4617. while (filehostObsoleteIdx--)
  4618. {
  4619. totalourls += http_file_hosts_obsolete[filehostObsoleteIdx][0] + '|';
  4620. totalxpathobsolete += http_file_hosts_obsolete[filehostObsoleteIdx][1] + '|';
  4621. }
  4622.  
  4623. while (filehostHeadersOnlyIdx--)
  4624. {
  4625. totalourls += http_file_hosts_headers_only[filehostHeadersOnlyIdx][0] + '|';
  4626. totalxpathheadersonly += http_file_hosts_headers_only[filehostHeadersOnlyIdx][3] + '|';
  4627. }
  4628.  
  4629. totalourls = totalourls.replace(/\|$/g, "");
  4630. //TODO: further refactoring needed
  4631. totalxpath = totalxpath.replace(/\]\|\/\/a\[/g, " or ");
  4632. totalxpath = totalxpath.replace(/\]\|/, ')]');
  4633. totalxpathcoded = totalxpathcoded.replace(/\]\|\/\/a\[/g, " or ");
  4634. totalxpathcoded = totalxpathcoded.replace(/\]\|/, ')]');
  4635. totalxpathobsolete = totalxpathobsolete.replace(/\]\|\/\/a\[/g, " or ");
  4636. totalxpathobsolete = totalxpathobsolete.replace(/\]\|/, ')]');
  4637. totalxpathheadersonly = totalxpathheadersonly.replace(/\]\|\/\/a\[/g, " or ");
  4638. totalxpathheadersonly = totalxpathheadersonly.replace(/\]\|/, ')]');
  4639. if (filterId != null) //insert id restriction in the xpath
  4640. {
  4641. totalxpath = totalxpath.replace(/\[/g, "[@class='" + filterId + "' and (");
  4642. totalxpathcoded = totalxpathcoded.replace(/\[/g, "[@class='" + filterId + "' and (");
  4643. totalxpathobsolete = totalxpathobsolete.replace(/\[/g, "[@class='" + filterId + "' and (");
  4644. totalxpathheadersonly = totalxpathheadersonly.replace(/\[/g, "[@class='" + filterId + "' and (");
  4645. }
  4646. else
  4647. {
  4648. totalxpath = totalxpath.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4649. totalxpathcoded = totalxpathcoded.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4650. totalxpathobsolete = totalxpathobsolete.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4651. totalxpathheadersonly = totalxpathheadersonly.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4652. }
  4653. linkify(totalourls);
  4654. //LINKIFICATION END
  4655. //ENCRYPTED LINKS PROCESSING START
  4656. if (http_file_hosts_coded.length > 0)
  4657. {
  4658. var linksCoded = document.evaluate(totalxpathcoded, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4659.  
  4660. // decrypt coded links (redirects, link protectors etc.)
  4661. if (linksCoded.snapshotLength > 0)
  4662. {
  4663. var link;
  4664. var reallinkreg;
  4665. var reallinkcorrection;
  4666.  
  4667. if (filterId == null)
  4668. {
  4669. cLinksTotal += linksCoded.snapshotLength;
  4670. }
  4671.  
  4672. var y = linksCoded.snapshotLength - 1;
  4673. do
  4674. {
  4675. // linksCoded.snapshotItem(y).id = 'processing_link';
  4676. link = linksCoded.snapshotItem(y);
  4677. filehostIdx = filehostCodedLen;
  4678. while (filehostIdx--)
  4679. {
  4680. if (link.href.match(http_file_hosts_coded[filehostIdx][0]))
  4681. {
  4682. link.href = link.href.replace(/http:\/\/.*?(?:\?|=)http:\/\//, 'http://');
  4683. reallinkreg = http_file_hosts_coded[filehostIdx][1];
  4684. reallinkcorrection = http_file_hosts_coded[filehostIdx][2];
  4685.  
  4686. decurl(link, reallinkreg, reallinkcorrection);
  4687. break;
  4688. }
  4689. }
  4690. }
  4691. while (y--);
  4692. }
  4693. }
  4694. //ENCRYPTED LINKS PROCESSING END
  4695.  
  4696. //STANDARD LINKCHECKING START
  4697. if (http_file_hosts.length > 0)
  4698. {
  4699. var lianks = document.evaluate(totalxpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4700.  
  4701. if (filterId == null)
  4702. {
  4703. cLinksTotal += lianks.snapshotLength;
  4704. }
  4705.  
  4706. if (lianks.snapshotLength > 0)
  4707. {
  4708. var link;
  4709.  
  4710. var URL = "";
  4711. var name = "";
  4712. var isAliveRegex = "";
  4713. var isDeadRegex = "";
  4714. var isUnavaRegex = "";
  4715. var ispremRegex = "";
  4716. var tryLoop = false;
  4717.  
  4718. var y = lianks.snapshotLength;
  4719.  
  4720. while (y--)
  4721. {
  4722. link = lianks.snapshotItem(y);
  4723.  
  4724. filehostIdx = filehostLen;
  4725. while (filehostIdx--)
  4726. {
  4727. if (link.href.match(http_file_hosts[filehostIdx][0]))
  4728. {
  4729. link.href = link.href.replace(/http:\/\/.*?http:\/\//, 'http://'); //anonymizers
  4730. isAliveRegex = http_file_hosts[filehostIdx][1];
  4731. isDeadRegex = http_file_hosts[filehostIdx][2];
  4732. isUnavaRegex = http_file_hosts[filehostIdx][3];
  4733. ispremRegex = http_file_hosts[filehostIdx][6];
  4734. tryLoop = http_file_hosts[filehostIdx][5];
  4735.  
  4736. geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, tryLoop);
  4737.  
  4738. break;
  4739. }
  4740. }
  4741. }
  4742. }
  4743. }
  4744. //STANDARD LINKCHECKING END
  4745. //OBSOLETE FILE HOSTS PROCESSING START
  4746. if (filehostObsoleteLen > 0)
  4747. {
  4748. var obsoletelinks = document.evaluate(totalxpathobsolete, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4749.  
  4750. var obsoleteLink;
  4751.  
  4752. //check links
  4753. if (obsoletelinks.snapshotLength > 0)
  4754. {
  4755. var y = obsoletelinks.snapshotLength;
  4756.  
  4757. if (filterId == null)
  4758. {
  4759. cLinksTotal += y;
  4760. }
  4761.  
  4762. while (y--)
  4763. {
  4764. obsoleteLink = obsoletelinks.snapshotItem(y);
  4765.  
  4766. if (Display_tooltip_info)
  4767. {
  4768. obsoleteLink.warlc_error = 'Cause of error: <b>Obsolete filehosting.</b>';
  4769. }
  4770. displayTheCheckedLink(obsoleteLink, 'adead_link');
  4771. }
  4772. }
  4773. }
  4774. //OBSOLETE FILE HOSTS PROCESSING END
  4775.  
  4776. //DIRECT LINKCHECKING START
  4777. if (http_file_hosts_headers_only.length > 0)
  4778. {
  4779. var links = document.evaluate(totalxpathheadersonly, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4780.  
  4781. //check links
  4782. if (links.snapshotLength > 0)
  4783. {
  4784. var link;
  4785. var isAliveRegex;
  4786. var isDeadRegex;
  4787. var ispremRegex;
  4788.  
  4789. var y = links.snapshotLength;
  4790.  
  4791.  
  4792. if (filterId == null)
  4793. {
  4794. cLinksTotal += y;
  4795. }
  4796.  
  4797. while (y--)
  4798. {
  4799. // links.snapshotItem(y).id = 'processing_link';
  4800. link = links.snapshotItem(y);
  4801. filehostIdx = filehostHeadersOnlyLen;
  4802. while (filehostIdx--)
  4803. {
  4804. if (link.href.match(http_file_hosts_headers_only[filehostIdx][0]))
  4805. {
  4806. link.href = link.href.replace(/http:\/\/.*?(?:\?|=)http:\/\//, 'http://');
  4807. isAliveRegex = http_file_hosts_headers_only[filehostIdx][1];
  4808. isDeadRegex = http_file_hosts_headers_only[filehostIdx][2];
  4809. ispremRegex = http_file_hosts_headers_only[filehostIdx][3];
  4810.  
  4811. geturlHeader(link, isAliveRegex, isDeadRegex, ispremRegex);
  4812.  
  4813. break;
  4814. }
  4815. }
  4816. }
  4817.  
  4818. }
  4819. }
  4820. //DIRECT LINKCHECKING END
  4821.  
  4822.  
  4823. //finds the real url on the page, replaces link.href with it and calls geturl
  4824. function decurl(link, reallinkreg, reallinkcorrection)
  4825. {
  4826.  
  4827. GM_xmlhttpRequest(
  4828. {
  4829. method: 'GET',
  4830. url: link.href,
  4831. headers: {
  4832. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  4833. 'Accept': 'text/xml',
  4834. 'Referer': ""
  4835. },
  4836. onload: function (result)
  4837. {
  4838. // cLinksProcessed++;
  4839.  
  4840. var reallink = result.responseText.match(reallinkreg)[0];
  4841. reallink = reallink.replace(new RegExp(reallinkcorrection, "g"), "");
  4842.  
  4843. link.href = reallink;
  4844.  
  4845. var i = http_file_hosts.length - 1;
  4846. do
  4847. {
  4848. if ((reallink.match(http_file_hosts[i][0])))
  4849. {
  4850. link.href = link.href.replace(/http:\/\/.*?\?http:\/\//, 'http://');
  4851. var isAliveRegex = http_file_hosts[i][1];
  4852. var isDeadRegex = http_file_hosts[i][2];
  4853. var isUnavaRegex = http_file_hosts[i][3];
  4854. var ispremRegex = http_file_hosts[i][4];
  4855.  
  4856. geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, 50);
  4857.  
  4858. break;
  4859. }
  4860. }
  4861. while (i--);
  4862. }
  4863. });
  4864. }
  4865.  
  4866. function randUA()
  4867. {
  4868. //TODO
  4869. }
  4870. //Processes link
  4871. //
  4872. // [string] link link URL
  4873. // [string] isAliveRegex alive link regex
  4874. // [string] isDeadRegex dead link regex
  4875. // [string] isUnavaRegex unavailable link regex
  4876. // [string] ispremRegex premium link regex
  4877. // [boolean] tryLoop repeats request until succeeded
  4878. function geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, tryLoop)
  4879. {
  4880. GM_xmlhttpRequest(
  4881. {
  4882. method: 'GET',
  4883. url: link.href,
  4884. headers: {
  4885. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  4886. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  4887. 'Referer': ""
  4888. },
  4889. onload: function (result)
  4890. {
  4891. var res = result.responseText;
  4892. if (result.responseHeaders.match(/Content-Disposition: attachment; filename=/))//direct download, simple version
  4893. {
  4894. displayTheCheckedLink(link, 'alive_link');
  4895. return;
  4896. }
  4897.  
  4898. if (res.match(isAliveRegex))
  4899. {
  4900. displayTheCheckedLink(link, 'alive_link');
  4901. return;
  4902. }
  4903.  
  4904. if (res.match(isDeadRegex))
  4905. {
  4906. displayTheCheckedLink(link, 'adead_link');
  4907. return;
  4908. }
  4909.  
  4910. if (isUnavaRegex && res.match(isUnavaRegex))
  4911. {
  4912. displayTheCheckedLink(link, 'unava_link');
  4913. return;
  4914. }
  4915. if (res.match(ispremRegex))
  4916. {
  4917. displayTheCheckedLink(link, 'prem_link');
  4918. return;
  4919. }
  4920.  
  4921. var resStatus = result.status;
  4922.  
  4923. if (resStatus == 404)
  4924. {
  4925. displayTheCheckedLink(link, 'adead_link');
  4926. }
  4927. if (resStatus == 500 || resStatus == 503 || resStatus == 403) //not found/available/temp. unava
  4928. {
  4929. if (tryLoop)
  4930. {
  4931. //wait 1-5 seconds and repeat the request
  4932. setTimeout(function(){geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, tryLoop)}, 1000 + (Math.random() * 4000));
  4933. }
  4934. else
  4935. {
  4936. displayTheCheckedLink(link, 'unava_link');
  4937. }
  4938.  
  4939. return;
  4940. }
  4941. },
  4942. onerror: function ()
  4943. {
  4944. displayTheCheckedLink(link, 'unava_link');
  4945. }
  4946. });
  4947. }
  4948.  
  4949. function geturlHeader(link, isAliveRegex, isDeadRegex, ispremRegex)
  4950. {
  4951. GM_xmlhttpRequest(
  4952. {
  4953. method: 'HEAD',
  4954. url: link.href,
  4955. headers: {
  4956. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  4957. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  4958. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  4959. 'Referer': ""
  4960. },
  4961. onload: function (result)
  4962. {
  4963. var resStatus = result.status;
  4964. var resHeaders = "";
  4965. if (resStatus == 403 || resStatus == 404 || resStatus == 500) //not found/available
  4966. {
  4967. displayTheCheckedLink(link, 'adead_link');
  4968. return;
  4969. }
  4970.  
  4971. resHeaders = result.responseHeaders;
  4972.  
  4973. if (resHeaders.match(isDeadRegex))
  4974. {
  4975. displayTheCheckedLink(link, 'adead_link');
  4976. return;
  4977. }
  4978.  
  4979. if (resHeaders.match(isAliveRegex))
  4980. {
  4981. displayTheCheckedLink(link, 'alive_link');
  4982. return;
  4983. }
  4984. if (resHeaders.match(ispremRegex))
  4985. {
  4986. displayTheCheckedLink(link, 'prem_link');
  4987. return;
  4988. }
  4989. },
  4990. onerror: function ()
  4991. {
  4992. displayTheCheckedLink(link, 'unava_link');
  4993. }
  4994. });
  4995. }
  4996.  
  4997. //Delinkfifies the <a> element object
  4998. function delinkifyLink(link)
  4999. {
  5000. var spanElm = document.createElement("span");
  5001. spanElm.className = link.className;
  5002. spanElm.innerHTML = link.innerHTML;
  5003.  
  5004. if (Display_tooltip_info)
  5005. {
  5006. spanElm.href = link.href;
  5007. spanElm.warlc_error = link.warlc_error;
  5008. switch (link.className){
  5009. case "alive_link": spanElm.addEventListener("mouseover", displayTooltipInfo, false); break
  5010. case "adead_link": spanElm.addEventListener("mouseover", displayTooltipError, false); break;
  5011. case "unava_link": //reserved
  5012. case "prem_link": spanElm.addEventListener("mouseover", displayTooltipError, false); break;
  5013. default:
  5014. }
  5015. }
  5016. link.parentNode.replaceChild(spanElm, link);
  5017. }
  5018.  
  5019. //Assigns result status to the <a> element object and calls delinkifying eventually
  5020. //Possible result states: adead_link, alive_link, unava_link, prem_link
  5021. function displayTheCheckedLink(link, resultStatus)
  5022. {
  5023. link.className = resultStatus;
  5024. link.href = Ref_anonymize_service + link.href;
  5025. if (Display_tooltip_info)
  5026. {
  5027. switch (resultStatus){
  5028. case "alive_link": link.addEventListener("mouseover", displayTooltipInfo, false); break
  5029. case "adead_link": link.addEventListener("mouseover", displayTooltipError, false); break;
  5030. case "unava_link": //reserved
  5031. case "prem_link": link.addEventListener("mouseover", displayTooltipInfo, false); break
  5032. default:
  5033. }
  5034. }
  5035. if (doNotLinkify)
  5036. {
  5037. delinkifyLink(link);
  5038. }
  5039. cLinksProcessed++;
  5040.  
  5041. if (resultStatus == "alive_link")
  5042. {
  5043. cLinksAlive++;
  5044. return;
  5045. }
  5046.  
  5047. if (resultStatus == "adead_link")
  5048. {
  5049. cLinksDead++;
  5050. return;
  5051. }
  5052.  
  5053. if (resultStatus == "unava_link")
  5054. {
  5055. cLinksUnava++;
  5056. }
  5057. if (resultStatus == "prem_link")
  5058. {
  5059. cLinksprem++;
  5060. return;
  5061. }
  5062. }
  5063.  
  5064.  
  5065. function initFileHosts()
  5066. {
  5067.  
  5068. function addObsoleteHost(linkRegex, xpathEx)
  5069. {
  5070. var host = new Array(2);
  5071. host[0] = linkRegex;
  5072. host[1] = xpathEx;
  5073. http_file_hosts_obsolete.push(host);
  5074. }
  5075.  
  5076. //obsolete file hosts init start
  5077. if (Obsolete_file_hosts)
  5078. {
  5079. addObsoleteHost("uloz\.cz\/show\/file","//a[contains(@href,'uloz.cz')]");
  5080. addObsoleteHost("storage\\.to\/get","//a[contains(@href,'storage.to')]");
  5081. addObsoleteHost("iskladka\\.cz\/download","//a[contains(@href,'iskladka.cz')]");
  5082. addObsoleteHost("file-rack\\.com\/files","//a[contains(@href,'file-rack.com')]");
  5083. addObsoleteHost("fast-load\\.net\/(\/)?index","//a[contains(@href,'fast-load.net')]");
  5084. addObsoleteHost("subory\\.sk\/download","//a[contains(@href,'subory.sk')]");
  5085. addObsoleteHost("bigandfree\\.com\/\\d+","//a[contains(@href,'bigandfree.com')]");
  5086. addObsoleteHost("fileop\\.com\/\\w+","//a[contains(@href,'fileop.com')]");
  5087. addObsoleteHost("mujsoubor\\.cz\/file\/","//a[contains(@href,'mujsoubor.cz')]");
  5088. addObsoleteHost("sendfile\\.to\/\\w+","//a[contains(@href,'sendfile.to')]");
  5089. addObsoleteHost("superfastfile\\.com\/\\w+","//a[contains(@href,'superfastfile.com')]");
  5090. addObsoleteHost("quickyshare\\.com\/\\w+","//a[contains(@href,'quickyshare.com/')]");
  5091. addObsoleteHost("duckload\\.com\/(?:d|play)","//a[contains(@href,'duckload.com')]");
  5092. addObsoleteHost("uploadstore\\.net\/\\w+","//a[contains(@href,'uploadstore.net')]");
  5093. addObsoleteHost("meinupload\\.com\/dl\/\\d+","//a[contains(@href,'meinupload.com/dl')]");
  5094. addObsoleteHost("dualshare\\.com\/\\w+","//a[contains(@href,'dualshare.com')]");
  5095. addObsoleteHost("2xupload\\.(?:to|de)\/file\/\\w+","//a[contains(@href,'2xupload.to') or contains(@href,'2xupload.de')]");
  5096. addObsoleteHost("oxedion\\.com\/index\\.php\/download\/\\w+","//a[contains(@href,'oxedion.com/index')]");
  5097. addObsoleteHost("uploadline\\.com\/\\d+","//a[contains(@href,'uploadline.com')]");
  5098. addObsoleteHost("dll\\.bz\/file\/\\d+","//a[contains(@href,'dll.bz/file')]");
  5099. addObsoleteHost("movieshare\\.in\/\\w+","//a[contains(@href,'movieshare.in')]");
  5100. addObsoleteHost("milledrive\\.com\/files\/\\d+","//a[contains(@href,'milledrive.com')]");
  5101. addObsoleteHost("quickupload\\.net\/\\w+","//a[contains(@href,'quickupload.net')]");
  5102. addObsoleteHost("safelink\\.in\/\\w+","//a[contains(@href,'safelink.in')]");
  5103. addObsoleteHost("pyramidfiles\\.com\/\\w+","//a[contains(@href,'pyramidfiles.com/')]");
  5104. addObsoleteHost("(?:cloudnator|shragle)\\.com\/files","//a[contains(@href,'cloudnator.com/files') or contains(@href,'shragle.com/files')]");
  5105. addObsoleteHost("batshare\\.com\/\\w+","//a[contains(@href,'batshare.com/')]");
  5106. addObsoleteHost("bitroad\\.net\/download","//a[contains(@href,'bitroad.net/download')]");
  5107. addObsoleteHost("metadivx\\.com\/\\w+","//a[contains(@href,'metadivx.com')]");
  5108. addObsoleteHost("filegaze\\.com\/\\w+","//a[contains(@href,'filegaze.com/')]");
  5109. addObsoleteHost("bulletupload\\.com\/\\w+","//a[contains(@href,'bulletupload.com/')]");
  5110. addObsoleteHost("sharefilehost\\.com\/\\w+","//a[contains(@href,'sharefilehost.com/')]");
  5111. addObsoleteHost("fireuploads\\.net\/\\w+","//a[contains(@href,'fireuploads.net/')]");
  5112. addObsoleteHost("divxlink\\.com\/\\w+","//a[contains(@href,'divxlink.com/')]");
  5113. addObsoleteHost("bzlink\\.us\/\\w+","//a[contains(@href,'bzlink.us/')]");
  5114. addObsoleteHost("filetechnology\\.com\/\\w+","//a[contains(@href,'filetechnology.com/')]");
  5115. addObsoleteHost("filecosy\\.com\/\\w+","//a[contains(@href,'filecosy.com/')]");
  5116. addObsoleteHost("fileserver\\.cc\/\\w+","//a[contains(@href,'fileserver.cc/')]");
  5117. addObsoleteHost("shafiles\\.me\/\\w+","//a[contains(@href,'shafiles.me/')]");
  5118. addObsoleteHost("xfileshare\\.eu\/\\w+","//a[contains(@href,'xfileshare.eu/')]");
  5119. addObsoleteHost("uploadboost\\.com\/\\w+","//a[contains(@href,'uploadboost.com/')]");
  5120. addObsoleteHost("uploadoz\\.com\/\\w+","//a[contains(@href,'uploadoz.com/')]");
  5121. addObsoleteHost("ihostia\\.com\/\\w+","//a[contains(@href,'ihostia.com/')]");
  5122. addObsoleteHost("shareupload\\.com\/\\w+","//a[contains(@href,'shareupload.com/')]");
  5123. addObsoleteHost("ovfile\\.com\/\\w+","//a[contains(@href,'ovfile.com/')]");
  5124. addObsoleteHost("stahuj\\.to\/\\w+","//a[contains(@href,'stahuj.to/')]");
  5125. addObsoleteHost("gigfiles\\.net\/\\w+","//a[contains(@href,'gigfiles.net/')]");
  5126. addObsoleteHost("vidhog\\.com\/\\w+","//a[contains(@href,'vidhog.com/')]");
  5127. addObsoleteHost("filelaser\\.com\/\\w+","//a[contains(@href,'filelaser.com/')]");
  5128. addObsoleteHost("holderfile\\.com\/\\w+","//a[contains(@href,'holderfile.com/')]");
  5129. addObsoleteHost("fileduct\\.(?:com|net)\/\\w+","//a[contains(@href,'fileduct.com/') or contains(@href,'fileduct.net')]");
  5130. addObsoleteHost("filefat\\.com\/\\w+","//a[contains(@href,'filefat.com/')]");
  5131. addObsoleteHost("restfile\\.com\/\\w+","//a[contains(@href,'restfile.com/')]");
  5132. addObsoleteHost("filemashine\\.com\\/download\/\\w+","//a[contains(@href,'filemashine.com/download')]");
  5133. addObsoleteHost("cloudnxt\\.net\/\\w+","//a[contains(@href,'cloudnxt.net/')]");
  5134. addObsoleteHost("uploadrack\\.com\/\\w+","//a[contains(@href,'uploadrack.com')]");
  5135. addObsoleteHost("teradepot\\.com\/\\w+","//a[contains(@href,'teradepot.com')]");
  5136. addObsoleteHost("dataup\\.to\/\\d+\/","//a[contains(@href,'dataup.to')]");
  5137. addObsoleteHost("upit\\.to\/file:\\d+","//a[contains(@href,'upit.to/file')]");
  5138. addObsoleteHost("badongo\\.(?:com|net)\/(?:\\w\\w\/|)(?:vid|cfile|file|pt)\/\\w+","//a[contains(@href,'badongo.com') or contains(@href,'badongo.net')]");
  5139. addObsoleteHost("driveway\\.com\/\\w+","//a[contains(@href,'driveway.com')]");
  5140. addObsoleteHost("eatlime\\.com\/download","//a[contains(@href,'eatlime.com/download')]");
  5141. addObsoleteHost("a2zuploads\\.com\/id\\w+","//a[contains(@href,'a2zuploads.com/id')]");
  5142. addObsoleteHost("friendlyfiles\\.net\/download\/\\w+\/","//a[contains(@href,'friendlyfiles.net/download')]");
  5143. addObsoleteHost("flyfile\\.us\/\\w+","//a[contains(@href,'flyfile.us')]");
  5144. addObsoleteHost("speedyshare\\.com\/\\w+","//a[contains(@href,'speedyshare.com')]");
  5145. addObsoleteHost("brontofile\\.com\/download","//a[contains(@href,'brontofile.com/download')]");
  5146. addObsoleteHost("uploadspace\\.eu\/\\w+","//a[contains(@href,'uploadspace.eu')]");
  5147. addObsoleteHost("fooget\\.com\/\\w+","//a[contains(@href,'fooget.com/')]");
  5148. addObsoleteHost("file-bit.net\/\\w+","//a[contains(@href,'file-bit.net/')]");
  5149. addObsoleteHost("keepfile\\.com\/\\w+","//a[contains(@href,'http://keepfile.com')]");
  5150. addObsoleteHost("piggyshare\\.com\/file\/\\w+","//a[contains(@href,'piggyshare.com')]");
  5151. addObsoleteHost("filecrown\\.com\/\\w+","//a[contains(@href,'filecrown.com')]");
  5152. addObsoleteHost("6giga\\.com\/\\w+","//a[contains(@href,'6giga.com')]");
  5153. addObsoleteHost("uploadjockey\\.com\/download\/\\w+","//a[contains(@href,'uploadjockey.com/download')]");
  5154. addObsoleteHost("bluehost\\.to\/dl=\\w+","//a[contains(@href,'bluehost.to')]");
  5155. addObsoleteHost("coolshare\\.cz\/stahnout\/\\w+","//a[contains(@href,'coolshare.cz/stahnout')]");
  5156. addObsoleteHost("filegu\\.ru\/f\/\\w+","//a[contains(@href,'filegu.ru/f')]");
  5157. addObsoleteHost("filebase\\.to\/files\/\\d+\/","//a[contains(@href,'filebase.to/files')]");
  5158. addObsoleteHost("kickload\\.com\/(?:file|get)\/","//a[contains(@href,'kickload.com/file') or contains(@href,'kickload.com/get')]");
  5159. addObsoleteHost("up-file\\.com\/files\/download\/\\w+\/","//a[contains(@href,'up-file.com/download')]");
  5160. addObsoleteHost("ezyfile\\.net\/\\w+","//a[contains(@href,'ezyfile.net/')]");
  5161. addObsoleteHost("k2files\\.com\/files","//a[contains(@href,'k2files.com/files')]");
  5162. addObsoleteHost("aiotool\\.net\/\\w+","//a[contains(@href,'aiotool.net/')]");
  5163. addObsoleteHost("xvideos\\.com\/files\/\\d+\/\\w+","//a[contains(@href,'xvideos.com/files')]");
  5164. addObsoleteHost("filebling\\.com\/dl\/\\d+\/\\d+\/\\w+","//a[contains(@href,'filebling.com/dl')]");
  5165. addObsoleteHost("loaded\\.it\/divx\/\\w+","//a[contains(@href,'loaded.it/divx')]");
  5166. addObsoleteHost("uploadcell\\.com\/\\w+\/\\w+","//a[contains(@href,'uploadcell.com')]");
  5167. addObsoleteHost("jakfile\\.com\/\\w+","//a[contains(@href,'jakfile.com/')]");
  5168. addObsoleteHost("uploadshare\\.cz\/download\/\\w+\/\\w+","//a[contains(@href,'uploadshare.cz/download')]");
  5169. addObsoleteHost("mangoshare\\.com\/\\w+","//a[contains(@href,'mangoshare.com')]");
  5170. addObsoleteHost("ugotfile\\.com\/file\/\\d+\/\\w+","//a[contains(@href,'ugotfile.com/file')]");
  5171. addObsoleteHost("filestab\\.com\/\\w+","//a[contains(@href,'filestab.com')]");
  5172. addObsoleteHost("dotavi\\.com\/\\w+\/.","//a[contains(@href,'dotavi.com/')]");
  5173. addObsoleteHost("crazyupload\\.com\/\\w+","//a[contains(@href,'crazyupload.com')]");
  5174. addObsoleteHost("gaiafile\\.com\/\\w+","//a[contains(@href,'gaiafile.com')]");
  5175. addObsoleteHost("sharejunky\\.com\/\\w+","//a[contains(@href,'sharejunky.com')]");
  5176. addObsoleteHost("fileho\\.com\/download\/\\d+","//a[contains(@href,'fileho.com/download')]");
  5177. addObsoleteHost("(?:bigandfree|BigAndFree)\\.com\/\\d+","//a[contains(@href,'bigandfree.com') or contains(@href,'BigAndFree.com')]");
  5178. addObsoleteHost("bigfile\\.in\/\\w+","//a[contains(@href,'bigfile.in')]");
  5179. addObsoleteHost("bigshare\\.eu\/download\\.php\\?id=","//a[contains(@href,'bigshare.eu/download.php')]");
  5180. addObsoleteHost("dahosting\\.org\/dl\/\\w+","//a[contains(@href,'dahosting.org/dl')]");
  5181. addObsoleteHost("digisofts\\.net\/\\w+","//a[contains(@href,'digisofts.net')]");
  5182. addObsoleteHost("file4save\\.com\/\\w+\/\\w+","//a[contains(@href,'file4save.com')]");
  5183. addObsoleteHost("filereactor\\.com\/\\w+","//a[contains(@href,'filereactor.com/')]");
  5184. addObsoleteHost("filechip\\.com\/\\w+","//a[contains(@href,'filechip.com')]");
  5185. addObsoleteHost("filescloud\\.com\/\\w+\/\\w+","//a[contains(@href,'filescloud.com')]");
  5186. addObsoleteHost("saveqube\\.com\/getfile\/\\w+","//a[contains(@href,'saveqube.com/getfile')]");
  5187. addObsoleteHost("www2\\.turboshare\\.de\/v\/\\d+","//a[contains(@href,'turboshare.de/v')]");
  5188. addObsoleteHost("z-upload\\.com\/\\w+","//a[contains(@href,'z-upload.com')]");
  5189. addObsoleteHost("youshare\\.com\/view\\.php","//a[contains(@href,'youshare.com/view')]");
  5190. addObsoleteHost("jiffyupload\\.com\/\\w+","//a[contains(@href,'jiffyupload.com')]");
  5191. addObsoleteHost("gigeshare\\.com\/preview\/\\w+","//a[contains(@href,'gigeshare.com')]");
  5192. addObsoleteHost("datenklo\\.net\/dl","//a[contains(@href,'datenklo.net')]");
  5193. addObsoleteHost("upload\\.dj\/download\\.php\\?id=\\w+","//a[contains(@href,'upload.dj/download.php')]");
  5194. addObsoleteHost("loadfiles\\.in\/\\w+\/","//a[contains(@href,'loadfiles.in')]");
  5195. addObsoleteHost("upit\\.to\/file:\\w+\/","//a[contains(@href,'upit.to/file')]");
  5196. addObsoleteHost("zshare\\.net\/(?:download|video|audio)\/\\w+","//a[contains(@href,'zshare.net/')]");
  5197. addObsoleteHost("refile\\.net\/f\/\\?\\w+","//a[contains(@href,'refile.net/f/')]");
  5198. addObsoleteHost("dsfileshare\\.com\/download","//a[contains(@href,'dsfileshare.com/download')]");
  5199. addObsoleteHost("sharesimple\\.net\/\\w{2}\/download","//a[contains(@href,'sharesimple.net')]");
  5200. addObsoleteHost("(?:s\\d+\\.|)4files\\.net\/\\d+","//a[contains(@href,'4files.net')]");
  5201. addObsoleteHost("odsiebie\\.com\/pokaz\/\\d+","//a[contains(@href,'odsiebie.com/pokaz')]");
  5202. addObsoleteHost("filenavi\\.com\/direct\/\\w+","//a[contains(@href,'filenavi.com/direct')]");
  5203. addObsoleteHost("3oof\\.com\/\\w+","//a[contains(@href,'3oof.com/')]");
  5204. addObsoleteHost("meshwaar\\.com\/\\w+","//a[contains(@href,'meshwaar.com')]");
  5205. addObsoleteHost("maxupload\\.com\/files\/\\w+","//a[contains(@href,'maxupload.com/files')]");
  5206. addObsoleteHost("share\\.cx\/videos\/\\d+","//a[contains(@href,'share.cx/videos')]");
  5207. addObsoleteHost("atserver\\.eu\/(?:\\w{2}\/|)download\/\\d+","//a[contains(@href,'atserver.eu')]");
  5208. addObsoleteHost("file2upload\\.net\/download\/\\d+","//a[contains(@href,'file2upload.net/download')]");
  5209. addObsoleteHost("filebling\\.com\/\\w+","//a[contains(@href,'filebling.com')]");
  5210. addObsoleteHost("turboshare\\.(?:eu|com)\/files","//a[contains(@href,'turboshare.') and contains(@href,'/files')]");
  5211. addObsoleteHost("rarhost\\.com\/download","//a[contains(@href,'rarhost.com/download')]");
  5212. addObsoleteHost("isharehd\\.com\/\\w+","//a[contains(@href,'isharehd.com')]");
  5213. addObsoleteHost("datenklo\\.net\/file\\.php\\?id=\\w+","//a[contains(@href,'datenklo.net/file.php')]");
  5214. addObsoleteHost("file2share\\.biz\/download\\.php\\?id=\\w+","//a[contains(@href,'file2share.biz/download.php')]");
  5215. addObsoleteHost("savefiles\\.net\/d\/\\w+\\.html","//a[contains(@href,'savefiles.net/d')]");
  5216. addObsoleteHost("bestsharing\\.com\/files\/\\w+","//a[contains(@href,'bestsharing.com/files')]");
  5217. addObsoleteHost("filecache\\.de\/\\d+","//a[contains(@href,'filecache.de/')]");
  5218. addObsoleteHost("i741\\.com\/files\/\\w+","//a[contains(@href,'i741.com/files')]");
  5219. addObsoleteHost("dataup\\.de\/\\d+","//a[contains(@href,'dataup.de')]");
  5220. addObsoleteHost("fofly\\.com\/\\w+","//a[contains(@href,'fofly.com')]");
  5221. addObsoleteHost("shareonall\\.com\/\\w+","//a[contains(@href,'shareonall.com')]");
  5222. addObsoleteHost("sexuploader\\.com\/(?:|..\/)\\?[d|v]=\\w{8}","//a[contains(@href,'sexuploader.com')]");
  5223. 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')]");
  5224. addObsoleteHost("uploadhyper\\.com\/file\/","//a[contains(@href,'uploadhyper.com')]");
  5225. addObsoleteHost("filespawn\\.com\/file\/","//a[contains(@href,'filespawn.com')]");
  5226. addObsoleteHost("caizzii\\.com\/(?:download|\\?file=)","//a[contains(@href,'caizzii.com')]");
  5227. addObsoleteHost("volnyweb\\.cz\/files\/get\/[\\w-_]+","//a[contains(@href,'volnyweb.cz/files')]");
  5228. addObsoleteHost("gotupload\\.com\/\\w+","//a[contains(@href,'gotupload.com/')]");
  5229. addObsoleteHost("mooload\\.com\/new\/file\\.php\\?file=files\/\\d+\/\\d+","//a[contains(@href,'mooload.com/new/file')]");
  5230. addObsoleteHost("z\\d+\\.zupload\\.com\/download\\.php\\?file=getfile&filepath=\\d+","//a[contains(@href,'zupload.com/download')]");
  5231. addObsoleteHost("mytempdir\\.com\/\\d+","//a[contains(@href,'mytempdir.com/')]");
  5232. addObsoleteHost("usershare\\.net\/\\w+","//a[contains(@href,'usershare.net/')]");
  5233. addObsoleteHost("qshare\\.com\/get\/\\d+\/.","//a[contains(@href,'qshare.com/get')]");
  5234. addObsoleteHost("filescash\\.net\/file\/\\d+","//a[contains(@href,'filescash.net/file')]");
  5235. addObsoleteHost("metahyper\\.com\/\\w+","//a[contains(@href,'metahyper.com/')]");
  5236. addObsoleteHost("combozip\\.com\/\\w+","//a[contains(@href,'combozip.com/')]");
  5237. addObsoleteHost("anonstream\\.com\/get_\\w+","//a[contains(@href,'anonstream.com/get_')]");
  5238. addObsoleteHost("x7\\.to\/\\w+","//a[contains(@href,'x7.to/')]");
  5239. addObsoleteHost("uploadbox\\.com\/files\/\\w+","//a[contains(@href,'uploadbox.com/files')]");
  5240. addObsoleteHost("(?:flyupload\\.)?(?:enterupload|flyupload)\\.com\/[\\?\\w]+","//a[contains(@href,'enterupload.com/') or contains(@href,'flyupload.com/')]");
  5241. addObsoleteHost("filepoint\\.de\/dl\/\\w+","//a[contains(@href,'filepoint.de/dl')]");
  5242. addObsoleteHost("icushare\\.com\/\\w+","//a[contains(@href,'icushare.com/')]");
  5243. addObsoleteHost("oron\\.com\/\\w+","//a[contains(@href,'oron.com/')]");
  5244. addObsoleteHost("mystream\\.to\/file\\-\\d+","//a[contains(@href,'mystream.to/file')]");
  5245. addObsoleteHost("x-fs\\.com\/download\\.php\\?id=\\w+","//a[contains(@href,'x-fs.com/download')]");
  5246. addObsoleteHost("srapid\\.eu\/\\w+","//a[contains(@href,'srapid.eu/')]");
  5247. addObsoleteHost("shareshared\\.com\/\\w+","//a[contains(@href,'shareshared.com/')]");
  5248. addObsoleteHost("sosame\\.cz\/\\w+","//a[contains(@href,'sosame.cz/')]");
  5249. addObsoleteHost("s\\d+\\.filesdump\\.com\/file\/\\w+","//a[contains(@href,'filesdump.com/file')]");
  5250. addObsoleteHost("2-klicks\\.de\/\\?d=\\w+","//a[contains(@href,'2-klicks.de/?d=')]");
  5251. addObsoleteHost("silofiles\\.com\/file\/\\d+","//a[contains(@href,'silofiles.com/file')]");
  5252. addObsoleteHost("upfile\\.in\/\\w+","//a[contains(@href,'upfile.in/')]");
  5253. addObsoleteHost("filehook\\.com\/\\w+","//a[contains(@href,'filehook.com/')]");
  5254. addObsoleteHost("mojofile\\.com\/\\w+","//a[contains(@href,'mojofile.com/')]");
  5255. addObsoleteHost("cloudcache\\.cc\/\\w+","//a[contains(@href,'cloudcache.cc/')]");
  5256. addObsoleteHost("1hostclick\\.com\/\\w+","//a[contains(@href,'1hostclick.com/')]");
  5257. addObsoleteHost("4bytez\\.com\/\\w+","//a[contains(@href,'4bytez.com/')]");
  5258. addObsoleteHost("uploadking\\.com\/\\w+","//a[contains(@href,'uploadking.com/')]");
  5259. addObsoleteHost("nahraj\\.cz\/(?:content|down)\/\\w+","//a[contains(@href,'nahraj.cz/')]");
  5260. addObsoleteHost("megarapid\\.eu\/files\/\\d+","//a[contains(@href,'megarapid.eu/files')]");
  5261. addObsoleteHost("(?:fileserve|uploadstation)\\.com\/(?:file|list)\/\\w+","//a[contains(@href,'fileserve.com/') or contains(@href,'uploadstation.com/')]");
  5262. addObsoleteHost("uploadhere\\.com\/\\w+","//a[contains(@href,'uploadhere.com/')]");
  5263. addObsoleteHost("dualshare\\.com\/\\w+","//a[contains(@href,'dualshare.com/')]");
  5264. addObsoleteHost("yourfilehost\\.com\/media","//a[contains(@href,'yourfilehost.com/media')]");
  5265. addObsoleteHost("ftp2share\\.com\/file\/\\w+","//a[contains(@href,'ftp2share.com/file')]");
  5266. addObsoleteHost("storeandserve\\.com\/download\/\\d+","//a[contains(@href,'storeandserve.com/download')]");
  5267. addObsoleteHost("mountfile\\.com\/file(?:\/\\w+){2}","//a[contains(@href,'mountfile.com/file')]");
  5268. addObsoleteHost("save\\.am\/files\/\\w+","//a[contains(@href,'save.am/files')]");
  5269. addObsoleteHost("transitfiles\\.com\/dl\/\\w+","//a[contains(@href,'transitfiles.com/dl')]");
  5270. addObsoleteHost("smartuploader\\.com\/file\\.php\\?f=\\d+","//a[contains(@href,'smartuploader.com/file.php?=')]");
  5271. addObsoleteHost("skipfile\\.com\/\\w+","//a[contains(@href,'skipfile.com/')]");
  5272. addObsoleteHost("stahnu\\.to\/[\\w\\?]+","//a[contains(@href,'stahnu.to/')]");
  5273. addObsoleteHost("flyshare\.cz\/(?:stahni\/|)\\d+","//a[contains(@href,'flyshare.cz/')]");
  5274. addObsoleteHost("(?:ddlani\\.me|ddlanime\\.com)\/\\w+","//a[contains(@href,'ddlani.me/') or contains(@href,'ddlanime.com/')]");
  5275. addObsoleteHost("loadly\\.com\/\\w+","//a[contains(@href,'loadly.com/')]");
  5276. addObsoleteHost("groovefile\\.com\/\\w+","//a[contains(@href,'groovefile.com/')]");
  5277. addObsoleteHost("filezlot\\.com\/\\w+","//a[contains(@href,'filezlot.com/')]");
  5278. addObsoleteHost("shareator\\.(?:net|com)\/\\w+","//a[contains(@href,'shareator.')]");
  5279. addObsoleteHost("yabadaba\\.ru\/files\/","//a[contains(@href,'yabadaba.ru/files/')]");
  5280. addObsoleteHost("rapidhide\\.com\/download\\.php\\?file=\\w+","//a[contains(@href,'rapidhide.com/download.php')]");
  5281. addObsoleteHost("filejungle\\.com\/[fl]\/\\w+","//a[contains(@href,'filejungle.com/')]");
  5282. addObsoleteHost("kewlshare\\.com\/dl\/\\d+","//a[contains(@href,'kewlshare.com/dl')]");
  5283. addObsoleteHost("petandrive\\.com\/file\/\\w+","//a[contains(@href,'petandrive.com/file')]");
  5284. addObsoleteHost("onionshare\\.com\/\\w+","//a[contains(@href,'onionshare.com/')]");
  5285. addObsoleteHost("rapidable\\.com\/\\w+\/download\\.php\\?id=","//a[contains(@href,'rapidable.com/')]");
  5286. addObsoleteHost("filesdump\\.com\/file\/\\w+\/\\d+","//a[contains(@href,'filesdump.com/file')]");
  5287. addObsoleteHost("file2box\\.(?:net|com)\/\\w+","//a[contains(@href,'file2box.')]");
  5288. addObsoleteHost("(?:filesonic|sharingmatrix|wupload)(?:\\.\\w+){1,2}\/(?:file|folder)\/\\w+","//a[contains(@href,'filesonic.') or contains(@href,'sharingmatrix.com') or contains(@href,'wupload.')]");
  5289. // addObsoleteHost("wizzupload\\.com\/\\w+","//a[contains(@href,'wizzupload.com/')]");
  5290. addObsoleteHost("bloggerarticles\\.com\/\\w+","//a[contains(@href,'bloggerarticles.com/')]");
  5291. addObsoleteHost("mojedata\\.sk/","//a[contains(@href,'mojedata.sk/')]");
  5292. addObsoleteHost("sharpfile\\.com\/\\w+","//a[contains(@href,'sharpfile.com/')]");
  5293. addObsoleteHost("upgrand\\.com\/\\w+","//a[contains(@href,'upgrand.com/')]");
  5294. addObsoleteHost("nasdilej\\.cz\/\\w+","//a[contains(@href,'nasdilej.cz/')]");
  5295. addObsoleteHost("mediatack\\.cz\/stahuj/\\w+","//a[contains(@href,'mediatack.cz/stahuj/')]");
  5296. addObsoleteHost("share-it\\.to\/file/\\w+","//a[contains(@href,'share-it.to/file/')]");
  5297. addObsoleteHost("primeupload\\.com\/file/\\w+","//a[contains(@href,'primeupload.com/file/')]");
  5298. addObsoleteHost("(?:uploads\\.glumbo|glumbouploads)\\.com\/\\w+","//a[contains(@href,'uploads.glumbo.com') or contains(@href,'glumbouploads.com')]");
  5299. addObsoleteHost("filebeer\\.info\/\\w+","//a[contains(@href,'filebeer.info/')]");
  5300. addObsoleteHost("baberepublic\\.com\/link\/\\w+","//a[contains(@href,'baberepublic.com/link/')]");
  5301. addObsoleteHost("xtu\\.me\/\\w+","//a[contains(@href,'xtu.me/')]");
  5302. addObsoleteHost("sharebase\\.de\/files\/\\w+","//a[contains(@href,'sharebase.de/files/')]");
  5303. addObsoleteHost("filerobo\\.com\/\\w+","//a[contains(@href,'filerobo.com/')]");
  5304. addObsoleteHost("filevelocity\\.com\/\\w+","//a[contains(@href,'filevelocity.com/')]");
  5305. addObsoleteHost("filezpro\\.com\/\\w+","//a[contains(@href,'filezpro.com/')]");
  5306. addObsoleteHost("file4sharing\\.com\/\\w+","//a[contains(@href,'file4sharing.com/')]");
  5307. addObsoleteHost("cing\\.be\/\\w+","//a[contains(@href,'cing.be/')]");
  5308. addObsoleteHost("ufile\\.eu\/\\w+","//a[contains(@href,'ufile.eu/')]");
  5309. addObsoleteHost("pigsonic\\.com\/\\w+","//a[contains(@href,'pigsonic.com/')]");
  5310. addObsoleteHost("fileupped\\.com\/\\w+","//a[contains(@href,'fileupped.com/')]");
  5311. addObsoleteHost("sharerun\\.com\/\\w+","//a[contains(@href,'sharerun.com/')]");
  5312. addObsoleteHost("rapidslnare\\.com\/\\w+","//a[contains(@href,'rapidslnare.com/')]");
  5313. addObsoleteHost("monsteruploads\\.eu\/\\w+","//a[contains(@href,'monsteruploads.eu/')]");
  5314. addObsoleteHost("b9bb\\.com\/\\w+","//a[contains(@href,'b9bb.com/')]");
  5315. addObsoleteHost("jamber\\.info\/\\w+","//a[contains(@href,'jamber.info/')]");
  5316. addObsoleteHost("(?:megaftp|MegaFTP)\\.com\/\\w+","//a[contains(@href,'megaftp.com/') or contains(@href,'MegaFTP.com/')]");
  5317. addObsoleteHost("desiupload\\.net\/\\?d=\\w+","//a[contains(@href,'desiupload.net/')]");
  5318. addObsoleteHost("file27\\.com\/\\w+","//a[contains(@href,'file27.com/')]");
  5319. addObsoleteHost("yastorage\\.com\/\\w+","//a[contains(@href,'yastorage.com/')]");
  5320. addObsoleteHost("filehost\\.ws\/\\w+","//a[contains(@href,'filehost.ws/')]");
  5321. addObsoleteHost("copyload\\.com\/\\w+","//a[contains(@href,'copyload.com/')]");
  5322. addObsoleteHost("venusfile\\.com\/\\w+","//a[contains(@href,'venusfile.com/')]");
  5323. addObsoleteHost("aieshare\\.com\/\\w+","//a[contains(@href,'aieshare.com/')]");
  5324. addObsoleteHost("fileza\\.net\/\\w+","//a[contains(@href,'fileza.net/')]");
  5325. addObsoleteHost("filerose\\.com\/\\w+","//a[contains(@href,'filerose.com/')]");
  5326. addObsoleteHost("squillion\\.com\/\\w+","//a[contains(@href,'squillion.com/')]");
  5327. addObsoleteHost("fileprohost\\.com\/\\w+","//a[contains(@href,'fileprohost.com/')]");
  5328. addObsoleteHost("bitbonus\\.com\/download\/\\w+","//a[contains(@href,'bitbonus.com/')]");
  5329. addObsoleteHost("warserver\\.cz\/\\w+","//a[contains(@href,'warserver.cz/')]");
  5330. addObsoleteHost("uload\\.to\/\\w+","//a[contains(@href,'uload.to/')]");
  5331. addObsoleteHost("sharedbit\\.net\/\\w+","//a[contains(@href,'sharedbit.net/')]");
  5332. addObsoleteHost("megaload\\.it\/\\w+","//a[contains(@href,'megaload.it/')]");
  5333. addObsoleteHost("filewinds\\.com\/\\w+","//a[contains(@href,'filewinds.com/')]");
  5334. addObsoleteHost("uploadcore\\.com\/\\w+","//a[contains(@href,'uploadcore.com/')]");
  5335. addObsoleteHost("syfiles\\.com\/\\w+","//a[contains(@href,'syfiles.com/')]");
  5336. addObsoleteHost("eyesfile\\.com\/\\w+","//a[contains(@href,'eyesfile.com/')]");
  5337. addObsoleteHost("hotfile\\.com\/\\w+","//a[contains(@href,'hotfile.com/')]");
  5338. addObsoleteHost("superupl\\.com\/\\w+","//a[contains(@href,'superupl.com/')]");
  5339. addObsoleteHost("oteupload\\.com\/\\w+","//a[contains(@href,'oteupload.com/')]");
  5340. addObsoleteHost("henchfile\\.com\/\\w+","//a[contains(@href,'henchfile.com/')]");
  5341. addObsoleteHost("HenchFile\\.com\/\\w+","//a[contains(@href,'HenchFile.com/')]");
  5342. addObsoleteHost("filegag\\.com\/\\w+","//a[contains(@href,'filegag.com/')]");
  5343. addObsoleteHost("filedefend\\.com\/\\w+","//a[contains(@href,'filedefend.com/')]");
  5344. addObsoleteHost("hotfiles\\.ws\/\\w+","//a[contains(@href,'hotfiles.ws/')]");
  5345. addObsoleteHost("share-rapid\\.com\/\\w+","//a[contains(@href,'share-rapid.com/')]");
  5346. //addObsoleteHost("sharerapid\\.cz\/\\w+","//a[contains(@href,'sharerapid.cz/')]");
  5347. addObsoleteHost("rapids\\.cz\/\\w+","//a[contains(@href,'rapids.cz/')]");
  5348. addObsoleteHost("share-credit\\.cz\/\\w+","//a[contains(@href,'share-credit.cz/')]");
  5349. addObsoleteHost("share-central\\.cz\/\\w+","//a[contains(@href,'share-central.cz/')]");
  5350. addObsoleteHost("share-ms\\.cz\/\\w+","//a[contains(@href,'share-ms.cz/')]");
  5351. addObsoleteHost("share-net\\.cz\/\\w+","//a[contains(@href,'share-net.cz/')]");
  5352. addObsoleteHost("srapid\\.cz\/\\w+","//a[contains(@href,'srapid.cz/')]");
  5353. addObsoleteHost("share-rapid\\.cz\/\\w+","//a[contains(@href,'share-rapid.cz/')]");
  5354. addObsoleteHost("wooupload\\.com\/\\w+","//a[contains(@href,'wooupload.com/')]");
  5355. addObsoleteHost("megabitshare\\.com\/\\w+","//a[contains(@href,'megabitshare.com/')]");
  5356. addObsoleteHost("uploking\\.com\/\\w+","//a[contains(@href,'uploking.com/')]");
  5357. addObsoleteHost("esnips\\.com\/\\w+","//a[contains(@href,'esnips.com/')]");
  5358. addObsoleteHost("uplly\\.com\/\\w+","//a[contains(@href,'uplly.com/')]");
  5359. addObsoleteHost("ufox\\.com\/\\w+","//a[contains(@href,'ufox.com/')]");
  5360. addObsoleteHost("clz\\.to\/\\w+","//a[contains(@href,'clz.to/')]");
  5361. addObsoleteHost("cloudzer\\.net\/\\w+","//a[contains(@href,'cloudzer.net/')]");
  5362. addObsoleteHost("cloudzer\\.com\/\\w+","//a[contains(@href,'cloudzer.com/')]");
  5363. addObsoleteHost("extabit\\.com\/\\w+","//a[contains(@href,'extabit.com/')]");
  5364. addObsoleteHost("uploadwaste\\.com\/\\w+","//a[contains(@href,'uploadwaste.com/')]");
  5365. addObsoleteHost("247upload\\.com\/\\w+","//a[contains(@href,'uploadwaste.com/')]");
  5366. addObsoleteHost("2download\\.de\/\\w+","//a[contains(@href,'2download.de/')]");
  5367. addObsoleteHost("4fastfile\\.com\/\\w+","//a[contains(@href,'4fastfile.com/')]");
  5368. addObsoleteHost("asixfiles\\.com\/\\w+","//a[contains(@href,'asixfiles.com/')]");
  5369. addObsoleteHost("berofile\\.com\/\\w+","//a[contains(@href,'berofile.com/')]");
  5370. addObsoleteHost("bigupload\\.com\/\\w+","//a[contains(@href,'bigupload.com/')]");
  5371. addObsoleteHost("cepzo\\.com\/\\w+","//a[contains(@href,'cepzo.com/')]");
  5372. addObsoleteHost("czshare\\.com\/\\w+","//a[contains(@href,'czshare.com/')]");
  5373. addObsoleteHost("clouds\\.to\/\\w+","//a[contains(@href,'clouds.to/')]");
  5374. addObsoleteHost("cobrashare\\.sk\/\\w+","//a[contains(@href,'cobrashare.sk/')]");
  5375. addObsoleteHost("coraldrive\\.net\/\\w+","//a[contains(@href,'coraldrive.net/')]");
  5376. addObsoleteHost("cyberlocker\\.ch\/\\w+","//a[contains(@href,'cyberlocker.ch/')]");
  5377. addObsoleteHost("darkport\\.org\/\\w+","//a[contains(@href,'darkport.org/')]");
  5378. addObsoleteHost("dark-uploads\\.com\/\\w+","//a[contains(@href,'dark-uploads.com/')]");
  5379. addObsoleteHost("davvas\\.com\/\\w+","//a[contains(@href,'davvas.com/')]");
  5380. addObsoleteHost("enigmashare\\.com\/\\w+","//a[contains(@href,'enigmashare.com/')]");
  5381. addObsoleteHost("erofly\\.cz\/\\w+","//a[contains(@href,'erofly.cz/')]");
  5382. addObsoleteHost("fastsonic\\.net\/\\w+","//a[contains(@href,'fastsonic.net/')]");
  5383. addObsoleteHost("filebox\\.com\/\\w+","//a[contains(@href,'filebox.com/')]");
  5384. addObsoleteHost("filecity\\.net\/\\w+","//a[contains(@href,'filecity.net/')]");
  5385. addObsoleteHost("filedap\\.com\/\\w+","//a[contains(@href,'filedap.com/')]");
  5386. addObsoleteHost("filedino\\.com\/\\w+","//a[contains(@href,'filedino.com/')]");
  5387. addObsoleteHost("filedownloads\\.org\/\\w+","//a[contains(@href,'filedownloads.org/')]");
  5388. addObsoleteHost("filefolks\\.com\/\\w+","//a[contains(@href,'filefolks.com/')]");
  5389. addObsoleteHost("fileking\\.co\/\\w+","//a[contains(@href,'fileking.co/')]");
  5390. addObsoleteHost("filemates\\.com\/\\w+","//a[contains(@href,'filemates.com/')]");
  5391. addObsoleteHost("files\\.to\/\\w+","//a[contains(@href,'files.to/')]");
  5392. addObsoleteHost("files2k\\.eu\/\\w+","//a[contains(@href,'files2k.eu/')]");
  5393. addObsoleteHost("filesector\\.cc\/\\w+","//a[contains(@href,'filesector.cc/')]");
  5394. addObsoleteHost("filesega\\.com\/\\w+","//a[contains(@href,'filesega.com/')]");
  5395. addObsoleteHost("filesend\\.net\/\\w+","//a[contains(@href,'filesend.net/')]");
  5396. addObsoleteHost("filestay\\.com\/\\w+","//a[contains(@href,'filestay.com/')]");
  5397. addObsoleteHost("filestrum\\.com\/\\w+","//a[contains(@href,'filestrum.com/')]");
  5398. addObsoleteHost("fileuplo\\.de\/\\w+","//a[contains(@href,'fileuplo.de/')]");
  5399. addObsoleteHost("fileupup\\.com\/\\w+","//a[contains(@href,'fileupup.com/')]");
  5400. addObsoleteHost("forunesia\\.com\/\\w+","//a[contains(@href,'forunesia.com/')]");
  5401. addObsoleteHost("freeuploads\\.fr\/\\w+","//a[contains(@href,'freeuploads.fr/')]");
  5402. addObsoleteHost("uploa\\.dk\/\\w+","//a[contains(@href,'uploa.dk/')]");
  5403. addObsoleteHost("getthebit\\.com\/\\w+","//a[contains(@href,'getthebit.com/')]");
  5404. addObsoleteHost("getzilla\\.net\/\\w+","//a[contains(@href,'getzilla.net/')]");
  5405. addObsoleteHost("goldfile\\.eu\/\\w+","//a[contains(@href,'goldfile.eu/')]");
  5406. addObsoleteHost("good\\.com\/\\w+","//a[contains(@href,'good.com/')]");
  5407. addObsoleteHost("grupload\\.com\/\\w+","//a[contains(@href,'grupload.com/')]");
  5408. addObsoleteHost("hellfile\\.com\/\\w+","//a[contains(@href,'hellfile.com/')]");
  5409. addObsoleteHost("hipfile\\.com\/\\w+","//a[contains(@href,'hipfile.com/')]");
  5410. addObsoleteHost("hitfile\\.com\/\\w+","//a[contains(@href,'hitfile.com/')]");
  5411. addObsoleteHost("hulkfile\\.eu\/\\w+","//a[contains(@href,'hulkfile.eu/')]");
  5412. addObsoleteHost("i-filez\\.com\/\\w+","//a[contains(@href,'i-filez.com/')]");
  5413. addObsoleteHost("ifile\\.ws\/\\w+","//a[contains(@href,'ifile.ws/')]");
  5414. addObsoleteHost("kupload\\.org\/\\w+","//a[contains(@href,'kupload.org/')]");
  5415. addObsoleteHost("duckfile\\.net\/\\w+","//a[contains(@href,'duckfile.net/')]");
  5416. addObsoleteHost("packupload\\.com\/\\w+","//a[contains(@href,'packupload.com/')]");
  5417. addObsoleteHost("terafile\\.com\/\\w+","//a[contains(@href,'terafile.com/')]");
  5418. addObsoleteHost("terafile\\.co\/\\w+","//a[contains(@href,'terafile.co/')]");
  5419. addObsoleteHost("fileom\\.com\/\\w+","//a[contains(@href,'fileom.com/')]");
  5420. addObsoleteHost("luckyshare\\.net\/\\w+","//a[contains(@href,'luckyshare.net/')]");
  5421. addObsoleteHost("lemuploads\\.com\/\\w+","//a[contains(@href,'lemuploads.com/')]");
  5422. addObsoleteHost("limelinx\\.com\/\\w+","//a[contains(@href,'limelinx.com/')]");
  5423. addObsoleteHost("maxshare\\.pl\/\\w+","//a[contains(@href,'maxshare.pl/')]");
  5424. addObsoleteHost("megarelease\\.org\/\\w+","//a[contains(@href,'megarelease.org/')]");
  5425. addObsoleteHost("megashare\\.com\/\\w+","//a[contains(@href,'megashare.com/')]");
  5426. addObsoleteHost("minus\\.com\/\\w+","//a[contains(@href,'minus.com/')]");
  5427. addObsoleteHost("mlfat4arab\\.com\/\\w+","//a[contains(@href,'mlfat4arab.com/')]");
  5428. addObsoleteHost("multishare\\.cz\/\\w+","//a[contains(@href,'multishare.cz/')]");
  5429. addObsoleteHost("nirafile\\.com\/\\w+","//a[contains(@href,'nirafile.com/')]");
  5430. addObsoleteHost("ok2upload\\.com\/\\w+","//a[contains(@href,'ok2upload.com/')]");
  5431. addObsoleteHost("peejeshare\\.com\/\\w+","//a[contains(@href,'peejeshare.com/')]");
  5432. addObsoleteHost("premiuns\\.org\/\\w+","//a[contains(@href,'premiuns.org/')]");
  5433. addObsoleteHost("przeklej\\.net\/\\w+","//a[contains(@href,'przeklej.net/')]");
  5434. addObsoleteHost("qkup\\.net\/\\w+","//a[contains(@href,'qkup.net/')]");
  5435. addObsoleteHost("rapidupload\\.sk\/\\w+","//a[contains(@href,'rapidupload.sk/')]");
  5436. addObsoleteHost("rockdizfile\\.com\/\\w+","//a[contains(@href,'rockdizfile.com/')]");
  5437. addObsoleteHost("rocketfile\\.net\/\\w+","//a[contains(@href,'rocketfile.net/')]");
  5438. addObsoleteHost("share-now\\.net\/\\w+","//a[contains(@href,'share-now.net/')]");
  5439. addObsoleteHost("share76\\.com\/\\w+","//a[contains(@href,'share76.com/')]");
  5440. addObsoleteHost("sharebees\\.com\/\\w+","//a[contains(@href,'sharebees.com/')]");
  5441. addObsoleteHost("sharefiles\\.co\/\\w+","//a[contains(@href,'sharefiles.co/')]");
  5442. addObsoleteHost("slingfile\\.com\/\\w+","//a[contains(@href,'slingfile.com/')]");
  5443. addObsoleteHost("sms4file\\.com\/\\w+","//a[contains(@href,'sms4file.com/')]");
  5444. addObsoleteHost("space4file\\.com\/\\w+","//a[contains(@href,'space4file.com/')]");
  5445. addObsoleteHost("tigershare\\.net\/\\w+","//a[contains(@href,'tigershare.net/')]");
  5446. addObsoleteHost("toucansharing\\.com\/\\w+","//a[contains(@href,'toucansharing.com/')]");
  5447. addObsoleteHost("ubuntuone\\.com\/\\w+","//a[contains(@href,'ubuntuone.com/')]");
  5448. addObsoleteHost("unextfiles\\.com\/\\w+","//a[contains(@href,'unextfiles.com/')]");
  5449. addObsoleteHost("upaj\\.pl\/\\w+","//a[contains(@href,'upaj.pl/')]");
  5450. addObsoleteHost("upfile\\.biz\/\\w+","//a[contains(@href,'upfile.biz/')]");
  5451. addObsoleteHost("uploadbin\\.net\/\\w+","//a[contains(@href,'uploadbin.net/')]");
  5452. addObsoleteHost("uploadic\\.com\/\\w+","//a[contains(@href,'uploadic.com/')]");
  5453. addObsoleteHost("uploadinc\\.com\/\\w+","//a[contains(@href,'uploadinc.com/')]");
  5454. addObsoleteHost("uploading4u\\.eu\/\\w+","//a[contains(@href,'uploading4u.eu/')]");
  5455. addObsoleteHost("uploadjet\\.net\/\\w+","//a[contains(@href,'uploadjet.net/')]");
  5456. addObsoleteHost("uploadorb\\.com\/\\w+","//a[contains(@href,'uploadorb.com/')]");
  5457. addObsoleteHost("upthe\\.net\/\\w+","//a[contains(@href,'upthe.net/')]");
  5458. addObsoleteHost("uptorch\\.com\/\\w+","//a[contains(@href,'uptorch.com/')]");
  5459. addObsoleteHost("vidbox\\.yt\/\\w+","//a[contains(@href,'vidbox.yt/')]");
  5460. addObsoleteHost("videozer\\.com\/\\w+","//a[contains(@href,'videozer.com/')]");
  5461. addObsoleteHost("vreer\\.com\/\\w+","//a[contains(@href,'vreer.com/')]");
  5462. addObsoleteHost("wallobit\\.com\/\\w+","//a[contains(@href,'wallobit.com/')]");
  5463. addObsoleteHost("zooupload\\.com\/\\w+","//a[contains(@href,'zooupload.com/')]");
  5464. addObsoleteHost("xerver\\.co\/\\w+","//a[contains(@href,'xerver.co/')]");
  5465. addObsoleteHost("privatefiles\\.com\/\\w+","//a[contains(@href,'privatefiles.com/')]");
  5466. addObsoleteHost("bitshare\\.com\/\\w+","//a[contains(@href,'bitshare.com/')]");
  5467. addObsoleteHost("asfile\\.com\/\\w+","//a[contains(@href,'asfile.com/')]");
  5468. addObsoleteHost("billionuploads\\.com\/\\w+","//a[contains(@href,'billionuploads.com/')]");
  5469. addObsoleteHost("\\*{7,100}\/[\\w\\d]+","//a[contains(@href,'*******/')]");
  5470. addObsoleteHost("filesaur\\.com\/\\w+","//a[contains(@href,'filesaur.com/')]");
  5471. addObsoleteHost("rapidshare\\.com\/\\w+","//a[contains(@href,'rapidshare.com/')]");
  5472. addObsoleteHost("rapidshare\\.ru\/\\w+","//a[contains(@href,'rapidshare.ru/')]");
  5473. addObsoleteHost("filesfrog\\.net\/\\w+","//a[contains(@href,'filesfrog.net/')]");
  5474. addObsoleteHost("4savefile\\.com\/\\w+","//a[contains(@href,'4savefile.com/')]");
  5475. addObsoleteHost("bayfiles\\.com\/\\w+","//a[contains(@href,'bayfiles.com/')]");
  5476. addObsoleteHost("bayfiles\\.net\/\\w+","//a[contains(@href,'bayfiles.net/')]");
  5477. addObsoleteHost("dodane\\.pl\/\\w+","//a[contains(@href,'dodane.pl/')]");
  5478. addObsoleteHost("dotsemper\\.com\/\\w+","//a[contains(@href,'dotsemper.com/')]");
  5479. addObsoleteHost("egofiles\\.com\/\\w+","//a[contains(@href,'egofiles.com/')]");
  5480. addObsoleteHost("epicshare\\.net\/\\w+","//a[contains(@href,'epicshare.net/')]");
  5481. addObsoleteHost("fiberupload\\.net\/\\w+","//a[contains(@href,'fiberupload.net/')]");
  5482. addObsoleteHost("filemonkey\\.in\/\\w+","//a[contains(@href,'filemonkey.in/')]");
  5483. addObsoleteHost("filemonster\\.net\/\\w+","//a[contains(@href,'filemonster.net/')]");
  5484. addObsoleteHost("filepom\\.com\/\\w+","//a[contains(@href,'filepom.com/')]");
  5485. addObsoleteHost("filesbb\\.com\/\\w+","//a[contains(@href,'filesbb.com/')]");
  5486. addObsoleteHost("fileshareup\\.com\/\\w+","//a[contains(@href,'fileshareup.com/')]");
  5487. addObsoleteHost("filevice\\.com\/\\w+","//a[contains(@href,'filevice.com/')]");
  5488. addObsoleteHost("gigaup\\.fr\/\\w+","//a[contains(@href,'gigaup.fr/')]");
  5489. addObsoleteHost("inafile\\.com\/\\w+","//a[contains(@href,'inafile.com/')]");
  5490. addObsoleteHost("isavelink\\.com\/\\w+","//a[contains(@href,'isavelink.com/')]");
  5491. addObsoleteHost("loombo\\.com\/\\w+","//a[contains(@href,'loombo.com/')]");
  5492. addObsoleteHost("megafiles\\.se\/\\w+","//a[contains(@href,'megafiles.se/')]");
  5493. addObsoleteHost("migupload\\.com\/\\w+","//a[contains(@href,'migupload.com/')]");
  5494. addObsoleteHost("mydisc\\.net\/\\w+","//a[contains(@href,'mydisc.net/')]");
  5495. addObsoleteHost("nitrobits\\.com\/\\w+","//a[contains(@href,'nitrobits.com/')]");
  5496. addObsoleteHost("potload\\.com\/\\w+","//a[contains(@href,'potload.com/')]");
  5497. addObsoleteHost("redload\\.net\/\\w+","//a[contains(@href,'redload.net/')]");
  5498. addObsoleteHost("shareprofi\\.com\/\\w+","//a[contains(@href,'shareprofi.com/')]");
  5499. addObsoleteHost("sharesuper\\.info\/\\w+","//a[contains(@href,'sharesuper.info/')]");
  5500. addObsoleteHost("sinhro\\.net\/\\w+","//a[contains(@href,'sinhro.net/')]");
  5501. addObsoleteHost("speedfile\\.cz\/\\w+","//a[contains(@href,'speedfile.cz/')]");
  5502. addObsoleteHost("speedshare\\.org\/\\w+","//a[contains(@href,'speedshare.org/')]");
  5503. addObsoleteHost("storage.novoro\\.net\/\\w+","//a[contains(@href,'storage.novoro.net/')]");
  5504. addObsoleteHost("swankshare\\.com\/\\w+","//a[contains(@href,'swankshare.com/')]");
  5505. addObsoleteHost("swatupload\\.com\/\\w+","//a[contains(@href,'swatupload.com/')]");
  5506. addObsoleteHost("upafile\\.com\/\\w+","//a[contains(@href,'upafile.com/')]");
  5507. addObsoleteHost("uploadmachine\\.com\/\\w+","//a[contains(@href,'uploadmachine.com/')]");
  5508. addObsoleteHost("uploadsat\\.com\/\\w+","//a[contains(@href,'uploadsat.com/')]");
  5509. addObsoleteHost("upshared\\.com\/\\w+","//a[contains(@href,'upshared.com/')]");
  5510. addObsoleteHost("usefile\\.com\/\\w+","//a[contains(@href,'usefile.com/')]");
  5511. addObsoleteHost("yourfiles\\.to\/\\w+","//a[contains(@href,'yourfiles.to/')]");
  5512. addObsoleteHost("zomgupload\\.com\/\\w+","//a[contains(@href,'zomgupload.com/')]");
  5513. addObsoleteHost("~[\\w\\s~]*","//a[contains(@href,'//~') or contains(@href,'//www.~')]");
  5514. addObsoleteHost("filemup\\.com\/\\w+","//a[contains(@href,'filemup.com/')]");
  5515. addObsoleteHost("tuxfile\\.com\/\\w+","//a[contains(@href,'tuxfile.com/')]");
  5516. addObsoleteHost("ultramegabit\\.com\/\\w+","//a[contains(@href,'ultramegabit.com/')]");
  5517. addObsoleteHost("uploadto\\.us\/\\w+","//a[contains(@href,'uploadto.us/')]");
  5518. addObsoleteHost("filecore\\.co\\.nz\/\\w+","//a[contains(@href,'filecore.co.nz/')]");
  5519. addObsoleteHost("fileshare\\.in\\.ua\/\\w+","//a[contains(@href,'fileshare.in.ua/')]");
  5520. addObsoleteHost("firedrive\\.com\/\\w+","//a[contains(@href,'firedrive.com/')]");
  5521. addObsoleteHost("putlocker\\.com\/\\w+","//a[contains(@href,'putlocker.com/')]");
  5522. addObsoleteHost("lumfile\\.com\/\\w+","//a[contains(@href,'lumfile.com/')]");
  5523. addObsoleteHost("lumfile\\.se\/\\w+","//a[contains(@href,'lumfile.se/')]");
  5524. addObsoleteHost("lumfile\\.eu\/\\w+","//a[contains(@href,'lumfile.eu/')]");
  5525. addObsoleteHost("shared\\.com\/\\w+","//a[contains(@href,'shared.com/')]");
  5526. addObsoleteHost("stahovadlo\\.cz\/\\w+","//a[contains(@href,'stahovadlo.cz/')]");
  5527. addObsoleteHost("dizzcloud\\.com\/\\w+","//a[contains(@href,'dizzcloud.com/')]");
  5528. addObsoleteHost("ddlstorage\\.com\/\\w+","//a[contains(@href,'ddlstorage.com/')]");
  5529. addObsoleteHost("dataport\\.cz\/\\w+","//a[contains(@href,'dataport.cz/')]");
  5530. addObsoleteHost("daj\\.to\/\\w+","//a[contains(@href,'daj.to/')]");
  5531. addObsoleteHost("sockshare\\.com\/\\w+","//a[contains(@href,'sockshare.com/')]");
  5532. addObsoleteHost("2drive\\.net\/\\w+","//a[contains(@href,'2drive.net/')]");
  5533. addObsoleteHost("bl\\.st\/\\w+","//a[contains(@href,'bl.st/')]");
  5534. addObsoleteHost("uncapped-downloads\\.com\/\\w+","//a[contains(@href,'uncapped-downloads.com/')]");
  5535. addObsoleteHost("freakshare\\.net\/\\w+","//a[contains(@href,'freakshare.net/')]");
  5536. addObsoleteHost("freakshare\\.com\/\\w+","//a[contains(@href,'freakshare.com/')]");
  5537. addObsoleteHost("sharebeast\\.com\/\\w+","//a[contains(@href,'sharebeast.com/')]");
  5538. addObsoleteHost("tufiles\\.ru\/\\w+","//a[contains(@href,'tufiles.ru/')]");
  5539. addObsoleteHost("crisshare\\.com\/\\w+","//a[contains(@href,'crisshare.com/')]");
  5540. // obsolete start
  5541. }
  5542. //obsolete file hosts init end
  5543.  
  5544. function addFileHost(linkRegex, isAliveRegex, isDeadRegex, isUnavaRegex, xpathEx, tryLoop, ispremRegex)
  5545. {
  5546. var host = new Array(7);
  5547. host[0] = linkRegex;
  5548. host[1] = isAliveRegex;
  5549. host[2] = isDeadRegex;
  5550. host[3] = isUnavaRegex;
  5551. host[6] = ispremRegex;
  5552. host[4] = xpathEx;
  5553. tryLoop ? host[5] = true : host[5] = false;
  5554. http_file_hosts.push(host);
  5555. }
  5556. if (GM_getValue("Check_megafileupload_dot_com_links", false))
  5557. {
  5558. addFileHost(
  5559. "megafileupload\.com\/..\/file\/",
  5560. 'downloadbtn',
  5561. 'is not found',
  5562. 'optional--',
  5563. "//a[contains(@href,'megafileupload.com')]");
  5564. }
  5565. if (GM_getValue("Check_demo_dot_ovh_dot_eu_links", false))
  5566. {
  5567. addFileHost(
  5568. "demo\\.ovh\\.eu\/\\w+\/\\w+",
  5569. 'download\\.gif"',
  5570. 'p_point">',
  5571. 'optional--',
  5572. "//a[contains(@href,'demo.ovh.eu')]");
  5573. }
  5574. if (GM_getValue("Check_xkeepfile_dot_com_links", false))
  5575. {
  5576. addFileHost(
  5577. "xkeepfile\.com\/\\w+",
  5578. 'File has been found|Click here to download',
  5579. 'File cannot be found|class="error">',
  5580. 'optional--',
  5581. //'optional--',
  5582. "//a[contains(@href,'xkeepfile.com/') or contains(@href,'Gamesena.com/')]");
  5583. }
  5584. if (GM_getValue("Check_safelinking_dot_net_links", false))
  5585. {
  5586. addFileHost(
  5587. "safelinking\\.net\/p\/\\w+",
  5588. 'color:green;"',
  5589. 'color:(?:red|orange);"',
  5590. 'color:(?:grey|brown);"',
  5591. "//a[contains(@href,'safelinking.net/p/')]",
  5592. true);
  5593. }
  5594. /* if (GM_getValue("Check_ultramegabit_dot_com_links", false))
  5595. {
  5596. addFileHost(
  5597. "ultramegabit\\.com\/file\/details\/[\\w+-]",
  5598. 'name="recaptcha_response',
  5599. '="/folder/add"|>File (?:not found|restricted|has been deleted)|<title>ULTRAMEGABIT</title>',
  5600. 'btn-large btn-danger">|Account limitation notice|502 Bad Gateway',
  5601. "//a[contains(@href,'ultramegabit.com/file')]",
  5602. true);
  5603. } */
  5604. if (GM_getValue("Check_fastshare_dot_cz_links", false))
  5605. {
  5606. addFileHost(
  5607. "fastshare\\.cz\/\\d+\/\\w*",
  5608. 'dwntable">',
  5609. 'nebyla nalezena|nebola nájdená|nie została odnaleziona|color:red;font-weight:bold;border\\-style:dashed|<i class="fa fa-copyright"></i>',
  5610. 'optional--',
  5611. "//a[contains(@href,'fastshare.cz')]");
  5612. }
  5613. if (GM_getValue("Check_fastshare_dot_org_links", false))
  5614. {
  5615. addFileHost(
  5616. "[fF]ast[sS]hare\\.org\/download",
  5617. 'Download ">',
  5618. 'Diese Datei wurde wegen|wurde kein Dateiname',
  5619. 'optional--',
  5620. "//a[contains(@href,'fastshare.org/download') or contains(@href,'FastShare.org/download')]");
  5621. }
  5622. if (GM_getValue("Check_partage_dash_facile_dot_com_links", false))
  5623. {
  5624. addFileHost(
  5625. "partage-facile\.com\/\\w+",
  5626. 'class="title"><strong>|colspan="2"',
  5627. 'Page introuvable|class="alert-message',
  5628. 'optional--',
  5629. "//a[contains(@href,'partage-facile.com')]");
  5630. }
  5631. if (GM_getValue("Check_rapidgator_dot_net_links", false))
  5632. {
  5633. addFileHost(
  5634. "rapidgator\\.net\/file\/\\w+",
  5635. '/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',
  5636. 'Error 404|File not found|Error 500|Файл не найден|ファイルが探せませんでした|Fichier non trouvé|Archivo no encontrado|Select your plan',
  5637. 'optional--',
  5638. "//a[contains(@href,'rapidgator.net/file')]",
  5639. true
  5640. );
  5641. }
  5642. if (GM_getValue("Check_relink_dot_us_links", false))
  5643. {
  5644. addFileHost(
  5645. "relink\\.us\/(?:f\/\\w+|go\\.php\\?id=\\d+|view\\.php\\?id=\\d+)",
  5646. 'online_detail\\.png" alt="Status',
  5647. '(?:offline|partially)_detail\\.png" alt="Status|File deleted',
  5648. 'unknown_detail\\.png" alt="Status',
  5649. "//a[contains(@href,'relink.us/')]"
  5650. );
  5651. }
  5652. if (GM_getValue("Check_uploadstube_dot_de_links", false))
  5653. {
  5654. addFileHost(
  5655. "uploadstube\\.de\/download\\.php\\?file=\\d+",
  5656. 'div id="dl"',
  5657. 'Sie haben den Link falsch',
  5658. 'optional--',
  5659. "//a[contains(@href,'uploadstube.de/download.php?file=')]"
  5660. );
  5661. }
  5662. if (GM_getValue("Check_flyfiles_dot_net_links", false))
  5663. {
  5664. addFileHost(
  5665. "flyfiles\\.net\/\\w+",
  5666. 'download_button"|"Download file"',
  5667. 'File not found!|Файл не найден',
  5668. 'optional--',
  5669. "//a[contains(@href,'flyfiles.net/')]"
  5670. );
  5671. }
  5672. if (GM_getValue("Check_wikiupload_dot_com_links", false))
  5673. {
  5674. addFileHost(
  5675. "wikiupload\\.com\/\\w+",
  5676. 'download-button">',
  5677. 'Sorry, File not found',
  5678. 'optional--',
  5679. "//a[contains(@href,'wikiupload.com/')]"
  5680. );
  5681. }
  5682. if (GM_getValue("Check_hostuje_dot_net_links", false))
  5683. {
  5684. addFileHost(
  5685. "hostuje\\.net\/file\\.php\\?id=\\w+",
  5686. 'file\\.php">|Pobierz Plik',
  5687. 'Podany plik nie zosta',
  5688. 'optional--',
  5689. "//a[contains(@href,'hostuje.net/file')]"
  5690. );
  5691. }
  5692. if (GM_getValue("Check_gettyfile_dot_ru_links", false))
  5693. {
  5694. addFileHost(
  5695. "gettyfile\\.ru\/\\d+",
  5696. 'download\\.gif border',
  5697. '<center><font size="3">',
  5698. 'optional--',
  5699. "//a[contains(@href,'gettyfile.ru/')]"
  5700. );
  5701. }
  5702. if (GM_getValue("Check_turbobit_dot_ru_links", false))
  5703. {
  5704. addFileHost(
  5705. "(?:turbob1t|failoobmenik|filesmail|firebit|dlbit|files\\.china\\-gsm|3aka4aem|file\\.piratski|mnogofiles|links-free|turbo-bit|turbosfiles)\\.\\w+\/\\w+",
  5706. 'download\\-file">',
  5707. 'col-1">\\s*<h1>',
  5708. 'optional--',
  5709. "//a[contains(@href,'turbobit.ru/') or contains(@href,'filesmail.ru/') or contains(@href,'failoobmenik.ru/')"+
  5710. " or contains(@href,'firebit.in/') or contains(@href,'dlbit.net/') or contains(@href,'files.china-gsm.ru/') or contains(@href,'3aka4aem.ru/')"+
  5711. " or contains(@href,'file.piratski.ru/') or contains(@href,'mnogofiles.com/') or contains(@href,'links-free.ru/')"+
  5712. " or contains(@href,'turbo-bit.ru/') or contains(@href,'turbosfiles.ru/')]"
  5713. );
  5714. }
  5715. if (GM_getValue("Check_data_dot_hu_links", false))
  5716. {
  5717. addFileHost(
  5718. "data\\.hu\/get\/\\d+\/",
  5719. 'download_box_button',
  5720. 'missing\\.php',
  5721. 'optional--',
  5722. "//a[contains(@href,'data.hu/get')]",
  5723. true
  5724. );
  5725. }
  5726. if (GM_getValue("Check_filesmelt_dot_com_links", false))
  5727. {
  5728. addFileHost(
  5729. "filesmelt\\.com\/dl\/\\w+",
  5730. '(Your download is ready|Download File)',
  5731. 'Sorry, but your',
  5732. 'optional--',
  5733. "//a[contains(@href,'filesmelt.com/dl')]"
  5734. );
  5735. }
  5736. if (GM_getValue("Check_indowebster_dot_com_links", false))
  5737. {
  5738. addFileHost(
  5739. "(?:files\\.)?indowebster\\.com\/download\/\\w+\/",
  5740. 'premiumBtn"',
  5741. 'errorMessage"',
  5742. 'optional--',
  5743. "//a[contains(@href,'indowebster.com/download')]"
  5744. );
  5745. }
  5746. if (GM_getValue("Check_superload_dot_cz_links", false))
  5747. {
  5748. addFileHost(
  5749. "superload\\.cz\/dl\/\\w+",
  5750. 'icon-download">',
  5751. 'soubor nebyl nalezen',
  5752. 'optional--',
  5753. "//a[contains(@href,'superload.cz/dl')]"
  5754. );
  5755. }
  5756. if (GM_getValue("Check_hulkfile_dot_eu_links", false))
  5757. {
  5758. addFileHost(
  5759. "(?:w\\.hulkfile\\.com|hulkfile\\.eu)\/\\w+",
  5760. 'op" value="download',
  5761. 'class="err">|width:500px;text-align:left;">',
  5762. 'optional--',
  5763. "//a[contains(@href,'hulkfile.')]"
  5764. );
  5765. }
  5766. if (GM_getValue("Check_easybytez_dot_com_links", false))
  5767. {
  5768. addFileHost(
  5769. "easybytez\\.com\/\\w+",
  5770. 'op" value="download',
  5771. 'stop_error\\.gif',
  5772. 'optional--',
  5773. "//a[contains(@href,'easybytez.com/')]"
  5774. );
  5775. }
  5776. if (GM_getValue("Check_filestore_dot_com_dot_ua_links", false))
  5777. {
  5778. addFileHost(
  5779. "filestore\\.com\\.ua\/\\?d=\\w+",
  5780. 'tdrow1>',
  5781. 'class=warn',
  5782. 'optional--',
  5783. "//a[contains(@href,'filestore.com.ua/?d=')]"
  5784. );
  5785. }
  5786. if (GM_getValue("Check_netkups_dot_com_links", false))
  5787. {
  5788. addFileHost(
  5789. "netkups\\.com\/\\?d=\\w+",
  5790. 'submit">Continue',
  5791. 'page">File not found|deleted due to inactivity',
  5792. 'optional--',
  5793. "//a[contains(@href,'netkups.com/?d=')]"
  5794. );
  5795. }
  5796. if (GM_getValue("Check_openfile_dot_ru_links", false))
  5797. {
  5798. addFileHost(
  5799. "openfile\\.ru\/(?:video\/|)\\d+",
  5800. 'videobox_left">',
  5801. 'blog_title">|not found on this server',
  5802. 'optional--',
  5803. "//a[contains(@href,'openfile.ru/')]"
  5804. );
  5805. }
  5806. if (GM_getValue("Check_extmatrix_dot_com_links", false))
  5807. {
  5808. addFileHost(
  5809. "extmatrix\\.com\/files\/\\w+",
  5810. 'div class="success"',
  5811. 'div class="error"',
  5812. 'optional--',
  5813. "//a[contains(@href,'extmatrix.com/files')]"
  5814. );
  5815. }
  5816. if (GM_getValue("Check_sendfiles_dot_nl_links", false))
  5817. {
  5818. addFileHost(
  5819. "sendfiles\\.nl\/download.aspx\\?ID=\\w+",
  5820. 'content_lnkDownload',
  5821. 'error\\.aspx\\?',
  5822. 'optional--',
  5823. "//a[contains(@href,'sendfiles.nl/download.aspx')]"
  5824. );
  5825. }
  5826. /* if (GM_getValue("Check_sockshare_dot_com_links", false))
  5827. {
  5828. addFileHost(
  5829. "sockshare\\.com\/file\/\\w+",
  5830. 'choose_speed">',
  5831. 'message t_0\'>',
  5832. 'optional--',
  5833. "//a[contains(@href,'sockshare.com/file')]"
  5834. );
  5835. } */
  5836. if (GM_getValue("Check_yourfilestore_dot_com_links", false))
  5837. {
  5838. addFileHost(
  5839. "yourfilestore\\.com\/download\/\\d+\/",
  5840. 'download_data">',
  5841. 'may have been deleted|<h1>Sorry!<\/h1>',
  5842. 'optional--',
  5843. "//a[contains(@href,'yourfilestore.com/download')]"
  5844. );
  5845. }
  5846. if (GM_getValue("Check_nekaka_dot_com_links", false))
  5847. {
  5848. addFileHost(
  5849. "nekaka\\.com\/d\/[\\w-]+",
  5850. 'downloadForm">',
  5851. 'invalid file link',
  5852. 'optional--',
  5853. "//a[contains(@href,'nekaka.com/d')]"
  5854. );
  5855. }
  5856. if (GM_getValue("Check_filebig_dot_net_links", false))
  5857. {
  5858. addFileHost(
  5859. "filebig\\.net\/files\/\\w+",
  5860. 'downloadFile">',
  5861. '<p>File not found<\/p>',
  5862. 'optional--',
  5863. "//a[contains(@href,'filebig.net/files')]"
  5864. );
  5865. }
  5866. if (GM_getValue("Check_gamefront_dot_com_links", false))
  5867. {
  5868. addFileHost(
  5869. "files\\.filefront\\.com\/\/;\\d+;;",
  5870. 'downloadLink">',
  5871. 'File not found, you',
  5872. 'optional--',
  5873. "//a[contains(@href,'files.filefront.com')]"
  5874. );
  5875.  
  5876. addFileHost(
  5877. "gamefront\\.com\/files\/\\d+",
  5878. 'downloadLink">',
  5879. 'File not found, you',
  5880. 'optional--',
  5881. "//a[contains(@href,'gamefront.com/files')]"
  5882. );
  5883. }
  5884. if (GM_getValue("Check_hyperfileshare_dot_com_links", false))
  5885. {
  5886. addFileHost(
  5887. "(?:download\\.|)hyperfileshare\\.com\/(?:download\\.php\\?code=|d\/)\\w+",
  5888. 'dnlLnk"',
  5889. 'already been deleted',
  5890. 'optional--',
  5891. "//a[contains(@href,'hyperfileshare.com/download') or contains(@href,'hyperfileshare.com/d')]"
  5892. );
  5893. }
  5894. if (GM_getValue("Check_hellupload_dot_com_links", false))
  5895. {
  5896. addFileHost(
  5897. "hellupload\\.com\/\\w+",
  5898. '<h3>Download File<br',
  5899. 'id="podstrona">|AVOID_IE_BUG',
  5900. 'optional--',
  5901. "//a[contains(@href,'hellupload.com/')]"
  5902. );
  5903. }
  5904. if (GM_getValue("Check_free_dash_uploading_dot_com_links", false))
  5905. {
  5906. addFileHost(
  5907. "free\\-uploading\\.com\/\\w+",
  5908. 'op" value="download',
  5909. 'class="err">|width:500px;text-align:left;">',
  5910. 'optional--',
  5911. "//a[contains(@href,'free-uploading.com/')]"
  5912. );
  5913. }
  5914. if (GM_getValue("Check_fileape_dot_com_links", false))
  5915. {
  5916. addFileHost(
  5917. "fileape\\.com\/download\\-",
  5918. 'button_dl\\.png',
  5919. 'does not exist\\.',
  5920. 'optional--',
  5921. "//a[contains(@href,'fileape.com/')]"
  5922. );
  5923. }
  5924. if (GM_getValue("Check_uppit_dot_com_links", false))
  5925. {
  5926. addFileHost(
  5927. "(?:uppit\\.com|up\\.ht)\/\\w+",
  5928. 'op" value="download',
  5929. 'class="err">|style="width:500px;text-align:left;"|fish-404\\.png"',
  5930. 'optional--',
  5931. "//a[contains(@href,'up.ht/') or contains(@href,'uppit.com/')]",
  5932. true
  5933. );
  5934. }
  5935. if (GM_getValue("Check_nosupload_dot_com_links", false))
  5936. {
  5937. addFileHost(
  5938. "nosupload\\.com\/(?:\\?d=)?\\w+",
  5939. 'op" value="download',
  5940. '>File Not Found<',
  5941. 'optional--',
  5942. "//a[contains(@href,'nosupload.com')]",
  5943. true
  5944. );
  5945. }
  5946. if (GM_getValue("Check_filesin_dot_com_links", false))
  5947. {
  5948. addFileHost(
  5949. "filesin\\.com\/\\w+\/download\\.html",
  5950. 'download_area">',
  5951. 'error_note">',
  5952. 'optional--',
  5953. "//a[contains(@href,'filesin.com/')]",
  5954. true
  5955. );
  5956. }
  5957. if (GM_getValue("Check_nowdownload_dot_eu_links", false))
  5958. {
  5959. addFileHost(
  5960. "nowdownload\\.eu\/dl\/\\w+",
  5961. 'alert-success"',
  5962. 'This file does not exist!',
  5963. 'The file is being transfered',
  5964. "//a[contains(@href,'nowdownload.eu/dl')]"
  5965. );
  5966. }
  5967. if (GM_getValue("Check_axifile_dot_com_links", false))
  5968. {
  5969. addFileHost(
  5970. "axifile\\.com(?:\/\w(2))?\/\\??\\w+",
  5971. 'Dbutton_big"',
  5972. 'download\\-error\\.php',
  5973. 'optional--',
  5974. "//a[contains(@href,'axifile.com/')]"
  5975. );
  5976. }
  5977. if (GM_getValue("Check_hulkshare_dot_com_links", false))
  5978. {
  5979. addFileHost(
  5980. "hulkshare\.com\/\\w+",
  5981. 'download\.sam\.png|This is a private file|id="filename',
  5982. 'File does not exist|fingerprint protected copyright',
  5983. 'optional--',
  5984. "//a[contains(@href,'hulkshare.com')]"
  5985. );
  5986. }
  5987. if (GM_getValue("Check_turbobit_dot_net_links", false)) //folders
  5988. {
  5989. addFileHost(
  5990. "turbobit\\.(?:net|pl)\/download\/folder\/\\d+",
  5991. 'col-1">\\s*<s',
  5992. 'col-1">\\s*<h',
  5993. 'optional--',
  5994. "//a[contains(@href,'turbobit.') and contains(@href,'download/folder')]"
  5995. );
  5996. }
  5997. if (GM_getValue("Check_turbobit_dot_net_links", false)) //folders
  5998. {
  5999. addFileHost(
  6000. "turbobit\\.(?:net|pl)",
  6001. 'id="download-gate-info',
  6002. 'afterWait()',
  6003. 'optional--',
  6004. "//a[contains(@href,'turbobit.net')]"
  6005. );
  6006. }
  6007. if (GM_getValue("Check_hitfile_dot_net_links", false)) //folders
  6008. {
  6009. addFileHost(
  6010. "hitfile\\.net\/download\/folder\/\\d+",
  6011. 'content">\\s*<s',
  6012. 'content">\\s*<h',
  6013. 'optional--',
  6014. "//a[contains(@href,'hitfile.net/download/folder')]"
  6015. );
  6016. }
  6017. if (GM_getValue("Check_netload_dot_in_links", false)) //folders
  6018. {
  6019. addFileHost(
  6020. "netload\\.in\/folder\\.php\\?folder_id=\\w+",
  6021. 'images\/online\\.gif',
  6022. 'InPage_Error"',
  6023. 'optional--',
  6024. "//a[contains(@href,'netload.in/folder.php')]"
  6025. );
  6026. }
  6027. if (GM_getValue("Check_movshare_dot_net_links", false))
  6028. {
  6029. addFileHost(
  6030. "movshare\\.net\\/video\\/\\w+",
  6031. 'optional--"',
  6032. 'no longer exists',
  6033. 'optional--',
  6034. "//a[contains(@href,'movshare.net/video')]"
  6035. );
  6036. }
  6037. if (GM_getValue("Check_plunder_dot_com_links", false))
  6038. {
  6039. addFileHost(
  6040. "plunder\.com\/\\w+",
  6041. 'x\/download\\.gif',
  6042. '404 - File or directory not found.',
  6043. 'optional--',
  6044. "//a[contains(@href,'plunder.com')]"
  6045. );
  6046. }
  6047. if (GM_getValue("Check_mafiastorage_dot_com_links", false))
  6048. {
  6049. addFileHost(
  6050. "mafiastorage\\.com\/\\w+",
  6051. 'op" value="download',
  6052. 'class="err">|style="width:500px;text-align:left;"',
  6053. 'optional--',
  6054. "//a[contains(@href,'mafiastorage.com/')]"
  6055. );
  6056. }
  6057. if (GM_getValue("Check_uploadspace_dot_pl_links", false))
  6058. {
  6059. addFileHost(
  6060. "uploadspace\.pl\/plik\\w+",
  6061. 'Downloading .+? \\|',
  6062. 'Downloading a file',
  6063. 'optional--',
  6064. "//a[contains(@href,'uploadspace.pl/plik')]"
  6065. );
  6066. }
  6067. if (GM_getValue("Check_uploadingit_dot_com_links", false))
  6068. {
  6069. addFileHost(
  6070. "uploadingit\\.com\/file\/\\w+",
  6071. 'downloadTitle">',
  6072. 'deleteContent">',
  6073. 'optional--',
  6074. "//a[contains(@href,'uploadingit.com/file')]"
  6075. );
  6076. }
  6077. if (GM_getValue("Check_rghost_dot_net_links", false))
  6078. {
  6079. addFileHost(
  6080. "rghost\.(?:net|ru)\/(?:|private\/)\\d+",
  6081. 'download_link|btn large download',
  6082. 'file is restricted|File is deleted|503 Service Unavailable',
  6083. 'File was deleted',
  6084. "//a[contains(@href,'rghost.')]"
  6085. );
  6086. }
  6087. if (GM_getValue("Check_xdisk_dot_cz_links", false))
  6088. {
  6089. addFileHost(
  6090. "xdisk\\.cz\/(?:..\/)?download\\.php\\?id=\\w+",
  6091. '">Staženo:\\s*<\/span>',
  6092. 'Soubor, který hledáte nenalezen',
  6093. 'optional--',
  6094. "//a[contains(@href,'xdisk.cz/')]"
  6095. );
  6096. }
  6097. if (GM_getValue("Check_expressleech_dot_com_links", false))
  6098. {
  6099. addFileHost(
  6100. "expressleech\.com\/\\w+",
  6101. 'src="/img/Download.gif"|var _gaq =',
  6102. 'var rr =|403 Forbidden',
  6103. 'optional--',
  6104. "//a[contains(@href,'expressleech.com')]");
  6105. }
  6106. if (GM_getValue("Check_2downloadz_dot_com_links", false))
  6107. {
  6108. addFileHost(
  6109. "2downloadz\.com\/\\w+",
  6110. 'color="#848484|src="images/Download.png"|color:#238DCA',
  6111. 'color="#006DCC|File error',
  6112. 'optional--',
  6113. "//a[contains(@href,'2downloadz.com')]");
  6114. }
  6115. if (GM_getValue("Check_mightyupload_dot_com_links", false))
  6116. {
  6117. addFileHost(
  6118. "mightyupload\.com\/\\w+",
  6119. 'background:#ccc;text-align|CONTENT="Download File"',
  6120. 'style="background:#eee|var rr =|File Not Found',
  6121. 'error-code">1010',
  6122. "//a[contains(@href,'mightyupload.com')]");
  6123. }
  6124. if (GM_getValue("Check_k2s_dot_cc_links", false))
  6125. {
  6126. addFileHost(
  6127. "k2s\.cc\/file\/\\w+",
  6128. 'Click here for slow download with|class="btn" id="yw0"|onclick="download',
  6129. 'Error 404|class="errorSummary">|this file is blocked or deleted|>404 Not Found<|To avoid damaged files|This file is no longer available',
  6130. 'please try later',
  6131. //'optional--',
  6132. "//a[contains(@href,'k2s.cc')]");
  6133. }
  6134. if (GM_getValue("Check_keep2share_dot_cc_links", false))
  6135. {
  6136. addFileHost(
  6137. "keep2share\.cc\/file\/\\w+",
  6138. 'Click here for slow download with|class="btn" id="yw0"|onclick="download',
  6139. 'Error 404|class="errorSummary">|this file is blocked or deleted|>404 Not Found<|To avoid damaged files|This file is no longer available',
  6140. 'please try later',
  6141. //'premium only',
  6142. "//a[contains(@href,'keep2share.cc')]");
  6143. }
  6144. if (GM_getValue("Check_keep2s_dot_cc_links", false))
  6145. {
  6146. addFileHost(
  6147. "keep2s\.cc\/file\/\\w+",
  6148. 'Click here for slow download with|class="btn" id="yw0"|onclick="download',
  6149. 'Error 404|class="errorSummary">|this file is blocked or deleted|>404 Not Found<|To avoid damaged files|This file is no longer available',
  6150. 'please try later',
  6151. //'optional--',
  6152. "//a[contains(@href,'keep2s.cc')]");
  6153. }
  6154. if (GM_getValue("Check_keep2share_dot_com_links", false))
  6155. {
  6156. addFileHost(
  6157. "keep2share\.com\/file\/\\w+",
  6158. 'Click here for slow download with|class="btn" id="yw0"|onclick="download',
  6159. 'Error 404|class="errorSummary">|this file is blocked or deleted|>404 Not Found<|To avoid damaged files|This file is no longer available',
  6160. 'please try later',
  6161. //'optional--',
  6162. "//a[contains(@href,'keep2share.com')]");
  6163. }
  6164. if (GM_getValue("Check_anysend_dot_com_links", false))
  6165. {
  6166. addFileHost(
  6167. "anysend\.com\/\\w+",
  6168. 'var openCalled=false;|content="noindex"',
  6169. '_trackPageview',
  6170. 'optional--',
  6171. "//a[contains(@href,'anysend.com')]");
  6172. }
  6173. if (GM_getValue("Check_datafile_dot_com_links", false))
  6174. {
  6175. addFileHost(
  6176. "datafile\.com\/\\w+",
  6177. 'var captchaPanel',
  6178. 'ErrorCode|ErrorCode 0: Invalid Link|btn-orange" href="#"', //class="error-msg"
  6179. 'You are downloading another file at this moment|You exceeded your free|Site Maintenance',
  6180. //'optional--',
  6181. "//a[contains(@href,'datafile.com')]",
  6182. true);
  6183. }
  6184. if (GM_getValue("Check_upstore_dot_net_links", false))
  6185. {
  6186. addFileHost(
  6187. "upstore\.net\/\\w+",
  6188. 'style="margin-top: 20px">|style="text-align:center; margin: 20px 0 100px;">',
  6189. 'File not found|onload="redirect|class="error">',
  6190. 'optional--',
  6191. "//a[contains(@href,'upstore.net')]");
  6192. }
  6193. if (GM_getValue("Check_upsto_dot_re_links", false))
  6194. {
  6195. addFileHost(
  6196. "upsto\.re\/\\w+",
  6197. 'style="margin-top: 20px">|style="text-align:center; margin: 20px 0 100px;">',
  6198. 'File not found|onload="redirect|class="error">',
  6199. 'optional--',
  6200. "//a[contains(@href,'upsto.re')]");
  6201. }
  6202. if (GM_getValue("Check_speedy_dot_sh_links", false))
  6203. {
  6204. addFileHost(
  6205. "speedy\.sh\/\\w+",
  6206. 'bgcolor=#eeeeee|class="addthis',
  6207. 'File not found|downloadfilenamenotfound>',
  6208. 'optional--',
  6209. "//a[contains(@href,'speedy.sh')]");
  6210. }
  6211. if (GM_getValue("Check_sanshare_dot_com_links", false))
  6212. {
  6213. addFileHost(
  6214. "sanshare\.com\/\\w+",
  6215. 'SANSHARE_TOPBANNER|offset-1"><h3><b>Download File',
  6216. 'offset-1"><b>File Not Found<|width:500px;text-align',
  6217. 'optional--',
  6218. "//a[contains(@href,'sanshare.com')]");
  6219. }
  6220. if (GM_getValue("Check_kingfiles_dot_net_links", false))
  6221. {
  6222. addFileHost(
  6223. "kingfiles\.net\/\\w+",
  6224. 'img/spriteBanner.png|If you are the owner of this file',
  6225. 'var rr =|"description" CONTENT="Download File ">|<div style="width:500px;text-align:left;">|The file was removed by administrator',
  6226. 'optional--',
  6227. "//a[contains(@href,'kingfiles.net')]");
  6228. }
  6229. if (GM_getValue("Check_uploadhero_dot_co_links", false))
  6230. {
  6231. addFileHost(
  6232. "uploadhero\\.co\/dl\/\\w+",
  6233. 'class="nom_de_fichier"|Unlimited downloads|Estimated download time|Lien de téléchargement"',
  6234. 'not available on our server|pas disponible sur nos serveurs|Le lien du fichier est incorrect',
  6235. 'optional--',
  6236. "//a[contains(@href,'uploadhero.co/dl')]"
  6237. );
  6238. }
  6239. if (GM_getValue("Check_secureupload_dot_eu_links", false))
  6240. {
  6241. addFileHost(
  6242. "secureupload\\.eu\/\\w+",
  6243. 'Downloading',
  6244. 'cannot be found|File Not Found|could not be found',
  6245. 'optional--',
  6246. "//a[contains(@href,'secureupload.eu')]"
  6247. );
  6248. }
  6249. if (GM_getValue("Check_ge_dot_tt_links", false))
  6250. {
  6251. addFileHost(
  6252. "ge\.tt\/\\w+",
  6253. 'downloads pic',
  6254. 'is NOT the same as',
  6255. 'optional--',
  6256. "//a[contains(@href,'ge.tt')]");
  6257. }
  6258. if (GM_getValue("Check_filefactory_dot_com_links", false))
  6259. {
  6260. addFileHost(
  6261. "filefactory\.com\/\\w+",
  6262. 'div id="file_holder"|download.css',
  6263. 'File Removed|Invalid Download Link|File Unavailable|Server Failed|Datei entfernt|This file has been removed|Invalid Download Link|class="alert alert-danger">',
  6264. 'Server Maintenance|temporarily overloaded',
  6265. //'optional--',
  6266. "//a[contains(@href,'filefactory.com')]");
  6267. }
  6268. if (GM_getValue("Check_filesflash_dot_net_links", false))
  6269. {
  6270. addFileHost(
  6271. "filesflash\.net\/\\w+",
  6272. 'align:right">Filename:',
  6273. 'class="msg">',
  6274. 'optional--',
  6275. "//a[contains(@href,'filesflash.net')]");
  6276. }
  6277. if (GM_getValue("Check_rapidgator_dot_net_links", false)) //folders
  6278. {
  6279. addFileHost(
  6280. "rapidgator\\.net\/folder\/\\w+",
  6281. 'href="/folder/',
  6282. 'class="empty|Folder not found|Carpeta no encontrada|Dossier non trouvé|Папка не найдена',
  6283. 'optional--',
  6284. "//a[contains(@href,'rapidgator.net/folder')]",
  6285. true
  6286. );
  6287. }
  6288. if (GM_getValue("Check_salefiles_dot_com_links", false))
  6289. {
  6290. addFileHost(
  6291. "salefiles\.com\/\\w+",
  6292. '<Title>Download|CONTENT="Download',
  6293. 'font:15px Arial|background:#eee;',
  6294. 'optional--',
  6295. "//a[contains(@href,'salefiles.com')]");
  6296. }
  6297. if (GM_getValue("Check_megairon_dot_net_links", false))
  6298. {
  6299. addFileHost(
  6300. "megairon\.net\/\\w+",
  6301. 'border: 5px #ffeb90 solid;',
  6302. 'CONTENT="Download File ">|var rr =',
  6303. 'optional--',
  6304. "//a[contains(@href,'megairon.net')]");
  6305. }
  6306. if (GM_getValue("Check_datoid_dot_cz_links", false))
  6307. {
  6308. addFileHost(
  6309. "datoid\.cz\/\\w+",
  6310. 'btn-download|class="icon-download-large"',
  6311. 'Stránka nenalezena|error-404|Soubor byl zablokován',
  6312. 'optional--',
  6313. "//a[contains(@href,'datoid.cz')]");
  6314. }
  6315. if (GM_getValue("Check_stiahni_dot_si_links", false))
  6316. {
  6317. addFileHost(
  6318. "stiahni\.si\/\\w+",
  6319. 'report_icon.png"|slow-download-button',
  6320. 'none.png|deleted|<h2>Error 500</h2>',
  6321. 'optional--',
  6322. "//a[contains(@href,'stiahni.si')]");
  6323. }
  6324. if (GM_getValue("Check_cloudstor_dot_es_links", false))
  6325. {
  6326. addFileHost(
  6327. "cloudstor\.es\/\\w+",
  6328. '"btn_download"',
  6329. '404: Page Not Found',
  6330. 'optional--',
  6331. "//a[contains(@href,'cloudstor.es')]");
  6332. }
  6333. if (GM_getValue("Check_streamfile_dot_com_links", false))
  6334. {
  6335. addFileHost(
  6336. "streamfile\.com\/\\w+",
  6337. 'class="btn',
  6338. 'class="green-btn',
  6339. 'optional--',
  6340. "//a[contains(@href,'streamfile.com')]");
  6341. }
  6342. if (GM_getValue("Check_eyesfile_dot_ca_links", false))
  6343. {
  6344. addFileHost(
  6345. "eyesfile\.ca\/\\w+",
  6346. 'value="Get Link',
  6347. 'var rr =',
  6348. 'optional--',
  6349. "//a[contains(@href,'eyesfile.ca')]");
  6350. }
  6351. if (GM_getValue("Check_filemoney_dot_com_links", false))
  6352. {
  6353. addFileHost(
  6354. "filemoney\.com\/\\w+",
  6355. 'og:title',
  6356. '404 Not Found|<Title>FileMoney|File Not Found|class="err">DMCA</b>',
  6357. 'error-code">1010',
  6358. "//a[contains(@href,'filemoney.com')]");
  6359. }
  6360. if (GM_getValue("Check_uploadboy_dot_com_links", false))
  6361. {
  6362. addFileHost(
  6363. "uploadboy\.com\/\\w+",
  6364. 'width="740">|method_free',
  6365. 'var rr =|background:#ffffff|not be found|file was removed',
  6366. 'optional--',
  6367. "//a[contains(@href,'uploadboy.com')]");
  6368. }
  6369. if (GM_getValue("Check_speedshare_dot_eu_links", false))
  6370. {
  6371. addFileHost(
  6372. "speedshare\.eu\/\\w+",
  6373. 'favicon.png|color:#3d87c0|cross.png"',
  6374. 'var rr =|File Not Found|style="background:#eee',
  6375. 'optional--',
  6376. "//a[contains(@href,'speedshare.eu')]");
  6377. }
  6378. if (GM_getValue("Check_unlimitzone_dot_com_links", false))
  6379. {
  6380. addFileHost(
  6381. "unlimitzone\.com\/\\w+",
  6382. 'name="method_free',
  6383. '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',
  6384. 'optional--',
  6385. "//a[contains(@href,'unlimitzone.com')]");
  6386. }
  6387. if (GM_getValue("Check_rioupload_dot_com_links", false))
  6388. {
  6389. addFileHost(
  6390. "rioupload\.com\/\\w+",
  6391. 'sell.jpg',
  6392. 'var rr =',
  6393. 'optional--',
  6394. "//a[contains(@href,'rioupload.com')]");
  6395. }
  6396. if (GM_getValue("Check_rg_dot_to_links", false))
  6397. {
  6398. addFileHost(
  6399. "rg\.to\/\\w+",
  6400. '/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',
  6401. 'Error 404|File not found|Select your plan',
  6402. 'optional--',
  6403. //'optional--',
  6404. "//a[contains(@href,'rg.to')]");
  6405. }
  6406. if (GM_getValue("Check_jumbofiles_dot_org_links", false))
  6407. {
  6408. addFileHost(
  6409. "jumbofiles\.org\/\\w+",
  6410. 'H71C5.png|class="downloadtitle">',
  6411. 'var swfu|ViewSourceBIN.png',
  6412. 'optional--',
  6413. "//a[contains(@href,'jumbofiles.org')]");
  6414. }
  6415. if (GM_getValue("Check_fshare_dot_vn_links", false))
  6416. {
  6417. addFileHost(
  6418. "fshare\\.vn\/file\/\\w+",
  6419. 'action="#download"|left; width: 330px;">|class="bt_down"',
  6420. 'không tồn tại|class="color_red m_t_50"',
  6421. 'optional--',
  6422. "//a[contains(@href,'fshare.vn/file')]",
  6423. true
  6424. );
  6425. }
  6426. if (GM_getValue("Check_spaceforfiles_dot_com_links", false))
  6427. {
  6428. addFileHost(
  6429. "spaceforfiles\.com\/\\w+",
  6430. 'btn_slowspeed_b.jpg|value="download1|class="btn_blue',
  6431. 'var rr =|AVOID_IE_BUG',
  6432. 'optional--',
  6433. "//a[contains(@href,'spaceforfiles.com')]");
  6434. }
  6435. if (GM_getValue("Check_google_dot_com_links", false))
  6436. {
  6437. addFileHost(
  6438. "google\\.com\/file\/\\w+",
  6439. 'content="!">|color:#2d2d2d',
  6440. '12pt; font-weight:|class="errorMessage"|F0F6FF',
  6441. 'optional--',
  6442. "//a[contains(@href,'google.com/file')]",
  6443. true
  6444. );
  6445. }
  6446. if (GM_getValue("Check_google_dot_com_links", false))
  6447. {
  6448. addFileHost(
  6449. "docs.google.com\/\\w+",
  6450. 'content="!">|color:#2d2d2d',
  6451. '12pt; font-weight:|class="errorMessage"|F0F6FF|Error 404',
  6452. 'optional--',
  6453. "//a[contains(@href,'docs.google.com')]",
  6454. true
  6455. );
  6456. }
  6457. if (GM_getValue("Check_google_dot_com_links", false))
  6458. {
  6459. addFileHost(
  6460. "drive.google.com\/\\w+",
  6461. 'content="!">|color:#2d2d2d|id="uc-download-link',
  6462. '12pt; font-weight:|class="errorMessage"|F0F6FF|Error 404',
  6463. 'optional--',
  6464. "//a[contains(@href,'drive.google.com')]",
  6465. true
  6466. );
  6467. }
  6468. if (GM_getValue("Check_up_dot_media1fire_dot_com_links", false))
  6469. {
  6470. addFileHost(
  6471. "up.media1fire\.com\/\\w+",
  6472. 'class="addthis_|value="download',
  6473. 'var rr =|AVOID_IE_BUG|<div style="width:500px;text-align:left;">',
  6474. 'optional--',
  6475. "//a[contains(@href,'up.media1fire.com')]");
  6476. }
  6477. if (GM_getValue("Check_depfile_dot_com_links", false))
  6478. {
  6479. addFileHost(
  6480. "depfile\.com\/\\w+",
  6481. 'logo_0.png|downloads.gif"|verifycode',
  6482. 'border-color: #5D729B;|bgcolor="#778AAF"|deleted by the owner|Invalid Link',
  6483. 'optional--',
  6484. "//a[contains(@href,'depfile.com')]");
  6485. }
  6486. if (GM_getValue("Check_go4up_dot_com_links", false))
  6487. {
  6488. addFileHost(
  6489. "go4up\.com\/\\w+",
  6490. 'style="width: 100%;">|value="Access|download_line',
  6491. '<title>GO4UP|dmca',
  6492. 'optional--',
  6493. "//a[contains(@href,'go4up.com')]");
  6494. }
  6495. if (GM_getValue("Check_redbunker_dot_net_links", false))
  6496. {
  6497. addFileHost(
  6498. "redbunker\.net\/\\w+",
  6499. 'dload.png|rowspan="3">|yep.gif',
  6500. 'CONTENT="RedBunker|#D3D3D3;|color:#d33|AVOID_IE_BUG',
  6501. 'optional--',
  6502. "//a[contains(@href,'redbunker.net')]");
  6503. }
  6504. if (GM_getValue("Check_divxpress_dot_com_links", false))
  6505. {
  6506. addFileHost(
  6507. "divxpress\.com\/\\w+",
  6508. 'btn_download|logo.png"',
  6509. 'AVOID_IE_BUG|var rr =',
  6510. 'optional--',
  6511. "//a[contains(@href,'divxpress.com')]");
  6512. }
  6513. if (GM_getValue("Check_anafile_dot_com_links", false))
  6514. {
  6515. addFileHost(
  6516. "anafile\.com\/\\w+",
  6517. 'width="881" valign="top|color="#800080"',
  6518. 'style="width:500px;text-align:left;">|file was deleted|AVOID_IE_BUG',
  6519. 'optional--',
  6520. "//a[contains(@href,'anafile.com')]");
  6521. }
  6522. if (GM_getValue("Check_uploadable_dot_ch_links", false))
  6523. {
  6524. addFileHost(
  6525. "uploadable\\.ch\/file\/\\w+",
  6526. 'captcha.js"|payment.js"|class="btn_download"',
  6527. '<div class="icon_err">|<div class="errorBox">|"error_arrow">',
  6528. 'optional--',
  6529. "//a[contains(@href,'uploadable.ch/file')]",
  6530. true
  6531. );
  6532. }
  6533. if (GM_getValue("Check_arabloads_dot_com_links", false))
  6534. {
  6535. addFileHost(
  6536. "arabloads\.com\/\\w+",
  6537. 'name="method_free"|name="method_premium"',
  6538. 'background:#eee;font:15px Arial;">|AVOID_IE_BUG|Verdana;padding:3px;">Error',
  6539. 'optional--',
  6540. "//a[contains(@href,'arabloads.com')]");
  6541. }
  6542. if (GM_getValue("Check_sharerepo_dot_com_links", false))
  6543. {
  6544. addFileHost(
  6545. "sharerepo\.com\/\\w+",
  6546. 'name="method_free"',
  6547. 'var public_on=|The file you were looking for could not be found',
  6548. 'optional--',
  6549. "//a[contains(@href,'sharerepo.com')]");
  6550. }
  6551. if (GM_getValue("Check_sfshare_dot_se_links", false))
  6552. {
  6553. addFileHost(
  6554. "sfshare\.se\/\\w+",
  6555. 'id="btn_download"|class="btn btn-primary txt-bold" value="',
  6556. 'AVOID_IE_BUG|var rr =|style="width:500px;text-align:left;">|Reason for deletion|The file was removed',
  6557. 'optional--',
  6558. "//a[contains(@href,'sfshare.se')]");
  6559. }
  6560. if (GM_getValue("Check_files_dot_fm_links", false))
  6561. {
  6562. addFileHost(
  6563. "files\.fm\/\\w+",
  6564. 'dl.png"|background-color: transparent',
  6565. 'margin: 40px 40px|background: none;',
  6566. 'optional--',
  6567. "//a[contains(@href,'files.fm')]");
  6568. }
  6569. if (GM_getValue("Check_koofile_dot_com_links", false))
  6570. {
  6571. addFileHost(
  6572. "koofile\.com\/\\w+",
  6573. 'value="download1">|name="method_free"',
  6574. 'class="overview-content c_text-box ">|style="padding-top:3px;">|class="rt1 c">',
  6575. 'optional--',
  6576. "//a[contains(@href,'koofile.com')]");
  6577. }
  6578. if (GM_getValue("Check_vidxden_dot_com_links", false))
  6579. {
  6580. addFileHost(
  6581. "vidxden\\.com\/\\w+",
  6582. 'Continue to Video"',
  6583. 'No such file',
  6584. 'optional--',
  6585. "//a[contains(@href,'vidxden.com')]"
  6586. );
  6587. }
  6588. if (GM_getValue("Check_muchshare_dot_net_links", false))
  6589. {
  6590. addFileHost(
  6591. "muchshare\\.net\/\\w+",
  6592. 'id="btn_download"',
  6593. 'File Not Found|width: 500px; text-align: left;',
  6594. 'optional--',
  6595. "//a[contains(@href,'muchshare.net')]"
  6596. );
  6597. }
  6598. if (GM_getValue("Check_daten_dash_hoster_dot_de_links", false))
  6599. {
  6600. addFileHost(
  6601. "(?:daten-hoster\\.de\/file\/\\w+|filehosting\\.org\/file\/\\w+|xtraupload\\.de\/\\?d=\\w+)",
  6602. 'Details zur Datei|Details page',
  6603. 'Jetzt hochladen|upload now',
  6604. 'optional--',
  6605. "//a[contains(@href,'daten-hoster.de/file') or contains(@href,'filehosting.org/file') or contains(@href,'xtraupload.de')]"
  6606. );
  6607. }
  6608. if (GM_getValue("Check_upload_dash_il_dot_net_links", false))
  6609. {
  6610. addFileHost(
  6611. "(?:upload-il|przeslij)\.net\/(?:en|he|ar|ru|)\/?\\w+",
  6612. 'downloadbtn"',
  6613. 'DL_FileNotFound',
  6614. 'optional--',
  6615. "//a[contains(@href,'upload-il.net') or contains(@href,'przeslij.net')]"
  6616. );
  6617. }
  6618. if (GM_getValue("Check_fileflyer_dot_com_links", false))
  6619. {
  6620. addFileHost(
  6621. "fileflyer\.com\/view\/\\w+",
  6622. '(?:dwl|locked)btn"',
  6623. 'error.gif"|link">Removed|removedlink">',
  6624. 'optional--',
  6625. "//a[contains(@href,'fileflyer.com')]"
  6626. );
  6627. }
  6628. if (GM_getValue("Check_filestore_dot_to_links", false))
  6629. {
  6630. addFileHost(
  6631. "filestore\.to\/\\?d=\\w+",
  6632. '"downloading"',
  6633. 'Datei wurde nicht gefunden',
  6634. 'optional--',
  6635. "//a[contains(@href,'filestore.to')]"
  6636. );
  6637. }
  6638. if (GM_getValue("Check_easy_dash_share_dot_com_links", false))
  6639. {
  6640. addFileHost(
  6641. "(?:w\\d*\.|)(?:crocko|easy-share)\\.com\/.",
  6642. 'fz24">Download|class="pl15">',
  6643. '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',
  6644. 'optional--',
  6645. "//a[contains(@href,'easy-share.com') or contains(@href,'crocko.com')]"
  6646. );
  6647. }
  6648. if (GM_getValue("Check_burnupload_dot_com_links", false))
  6649. {
  6650. addFileHost(
  6651. "burnupload\\.(?:com\/\\?d=|ihiphop\\.com\/download\\.php\\?id=)\\w+",
  6652. 'File size:',
  6653. 'file is not found',
  6654. 'optional--',
  6655. "//a[contains(@href,'burnupload.com') or contains(@href,'burnupload.ihiphop.com')]"
  6656. );
  6657. }
  6658. if (GM_getValue("Check_datei_dot_to_links", false))
  6659. {
  6660. addFileHost(
  6661. "datei\\.to\/\\??\\w+",
  6662. 'icon_downloaden\\.png|>Download starten<',
  6663. 'Datei wurde nicht gefunden|icon_deleted.png',
  6664. 'optional--',
  6665. "//a[contains(@href,'datei.to')]"
  6666. );
  6667. }
  6668. if (GM_getValue("Check_yunfile_dot_com_links", false))
  6669. {
  6670. addFileHost(
  6671. "(?:yunfile|filemarkets)\\.com\/\\w+",
  6672. '<body class="body" id="body">|value="Slow Download"',
  6673. '<body class="body" >',
  6674. 'optional--',
  6675. "//a[contains(@href,'yunfile.com') or contains(@href,'filemarkets.com')]"
  6676. );
  6677. }
  6678. /* if (GM_getValue("Check_putlocker_dot_com_links", false))
  6679. {
  6680. addFileHost(
  6681. "putlocker\\.com\/file\/\\w{16}",
  6682. 'as Free User|<a class="continue"|Continue to file|#feedback_btn|application file_standalone',
  6683. 'Welcome to PutLocker|<div class="sad_face_image">|404:',
  6684. 'undergoing scheduled maintenance',
  6685. "//a[contains(@href,'putlocker.com/file')]"
  6686. );
  6687. } */
  6688. if (GM_getValue("Check_uploadhero_dot_com_links", false))
  6689. {
  6690. addFileHost(
  6691. "uploadhero\\.com\/dl\/\\w+",
  6692. 'content-dl">',
  6693. 'men_file_lost\\.jpg"',
  6694. 'optional--',
  6695. "//a[contains(@href,'uploadhero.com/dl')]"
  6696. );
  6697. }
  6698. if (GM_getValue("Check_unibytes_dot_com_links", false))
  6699. {
  6700. addFileHost(
  6701. "unibytes\\.com\/[\\w\.]+",
  6702. 'trying to download|пытаетесь загрузить файл|tes entrain de tlcharger',
  6703. 'File not found|Файл не найден|',
  6704. 'optional--',
  6705. "//a[contains(@href,'unibytes.com')]"
  6706. );
  6707. }
  6708. if (GM_getValue("Check_hellshare_dot_com_links", false)) //very old type of links
  6709. {
  6710. addFileHost(
  6711. "www\\.hellshare\\.com\/\\d+",
  6712. 'tab\\-details"',
  6713. 'list-purp-2"|not found on this server',
  6714. 'optional--',
  6715. "//a[contains(@href,'www.hellshare.com')]"
  6716. );
  6717. }
  6718. if (GM_getValue("Check_quickshare_dot_cz_links", false)) //folders
  6719. {
  6720. addFileHost(
  6721. "quickshare\\.cz\/slozka-\\d+",
  6722. 'Počet souborů: <strong>[1-9]',
  6723. 'Počet souborů: <strong>0|Chyba! Taková složka neexistuje',
  6724. 'optional--',
  6725. "//a[contains(@href,'quickshare.cz/slozka')]"
  6726. );
  6727. }
  6728. if (GM_getValue("Check_filefactory_dot_com_links", false)) //folders
  6729. {
  6730. addFileHost(
  6731. "filefactory\\.com\/f\/\\w+",
  6732. 'folderFileList">',
  6733. 'table class="items"|Pointer" class="red">',
  6734. 'optional--',
  6735. "//a[contains(@href,'filefactory.com/f/')]"
  6736. );
  6737. }
  6738. if (GM_getValue("Check_netload_dot_in_links", false)) //folders
  6739. {
  6740. addFileHost(
  6741. "netfolder\\.in\/\\w+",
  6742. 'list" value="http',
  6743. 'InPage_Error">|list" value=""',
  6744. 'optional--',
  6745. "//a[contains(@href,'netfolder.in')]"
  6746. );
  6747. }
  6748. if (GM_getValue("Check_load_dot_to_links", false))
  6749. {
  6750. addFileHost(
  6751. '(?:www\\.|\\/)load\\.to\\/(?:\\w{10}\\/.|\\?d=\\w{10})',
  6752. '"download_table_left">Size',
  6753. 'Can\'t find file',
  6754. 'optional--',
  6755. "//a[contains(@href,'/load.to/') or contains(@href,'www.load.to/')]"
  6756. );
  6757. }
  6758. /* if (GM_getValue("Check_freakshare_dot_net_links", false))
  6759. {
  6760. addFileHost(
  6761. "freakshare\\.(?:net|com)\/files\/",
  6762. 'box_heading',
  6763. '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|الملف المطلوب غير موجود',
  6764. 'Your Traffic is used up for today',
  6765. "//a[(contains(@href,'freakshare.net') or contains(@href,'freakshare.com')) and contains(@href,'files')]",
  6766. true
  6767. );
  6768. //folders
  6769. addFileHost(
  6770. "freakshare\\.(?:net|com)\/folder\/",
  6771. 'Files: [1-9]',
  6772. 'Files: 0',
  6773. 'optional--',
  6774. "//a[(contains(@href,'freakshare.net') or contains(@href,'freakshare.com')) and contains(@href,'folder')]",
  6775. true
  6776. );
  6777. } */
  6778. if (GM_getValue("Check_divshare_dot_com_links", false))
  6779. {
  6780. addFileHost(
  6781. "divshare\\.com\/download\/",
  6782. 'download_new\.png',
  6783. 'have been removed',
  6784. 'optional--',
  6785. "//a[contains(@href,'divshare.com')]"
  6786. );
  6787. }
  6788. if (GM_getValue("Check_euroshare_dot_eu_links", false))
  6789. {
  6790. addFileHost(
  6791. "euroshare\\.(?:eu|pl|sk|cz|hu)\/file\/\\d+",
  6792. 'nazev-souboru">',
  6793. '<div id="obsah">\\s*<h1>',
  6794. 'optional--',
  6795. "//a[contains(@href,'euroshare.eu/file')]"
  6796. );
  6797. }
  6798. if (GM_getValue("Check_files_dot_mail_dot_ru_links", false))
  6799. {
  6800. addFileHost(
  6801. 'files\\.mail\\.ru/(?:\\w*)',
  6802. 'fileList',
  6803. 'errorMessage',
  6804. 'optional--',
  6805. "//a[contains(@href,'files.mail.ru')]"
  6806. );
  6807. }
  6808. if (GM_getValue("Check_megashares_dot_com_links", false))
  6809. {
  6810. addFileHost(
  6811. "(?:d\\d+\.|)megashares\.com\/(?:dl|index\.php\\?d|\\?d\\d+=\\w+)",
  6812. 'Filesize',
  6813. 'Invalid|deleted|Could not download file',
  6814. 'slots|scheduled maintenance',
  6815. "//a[contains(@href,'megashares.com/')]"
  6816. );
  6817. }
  6818. if (GM_getValue("Check_narod_dot_ru_links", false))
  6819. {
  6820. addFileHost(
  6821. 'narod\\.(?:yandex\\.|)ru\/disk\/',
  6822. 'b-submit',
  6823. 'b-download-virus-note|headCode">404<',
  6824. 'Внутренняя ошибка сервиса',
  6825. "//a[contains(@href,'narod.ru') or contains(@href,'narod.yandex.ru')]"
  6826. );
  6827. }
  6828. if (GM_getValue("Check_rayfile_dot_com_links", false))
  6829. {
  6830. addFileHost(
  6831. "rayfile\\.com\/",
  6832. 'FILEtitleTXT',
  6833. 'blueRow',
  6834. 'optional--',
  6835. "//a[contains(@href,'rayfile.com/') and contains(@href,'files')]"
  6836. );
  6837. }
  6838. if (GM_getValue("Check_filesmonster_dot_com_links", false))
  6839. {
  6840. addFileHost(
  6841. "filesmonster\\.com\/download\\.php\\?id=\\w+",
  6842. 'button_green_body"',
  6843. 'error">',
  6844. 'optional--',
  6845. "//a[contains(@href,'filesmonster.com/download')]"
  6846. );
  6847. }
  6848. if (GM_getValue("Check_usaupload_dot_net_links", false))
  6849. {
  6850. addFileHost(
  6851. 'usaupload\\.net\/d\/(?:\w*)',
  6852. '<strong>File size:</strong>',
  6853. 'is not available',
  6854. 'optional--',
  6855. "//a[contains(@href,'usaupload.net/d/')]"
  6856. );
  6857. }
  6858. if (GM_getValue("Check_sendspace_dot_com_links", false))
  6859. {
  6860. addFileHost(
  6861. 'sendspace\\.com\/file\/\\w+',
  6862. 'file_description',
  6863. 'msg error"',
  6864. 'optional--',
  6865. "//a[contains(@href,'sendspace.com/file')]"
  6866. );
  6867. }
  6868. if (GM_getValue("Check_sendspace_dot_pl_links", false))
  6869. {
  6870. addFileHost(
  6871. 'sendspace\\.pl\/file\/\\w+',
  6872. 'download_file"',
  6873. 'Podany plik nie',
  6874. 'optional--',
  6875. "//a[contains(@href,'sendspace.pl/file')]"
  6876. );
  6877. }
  6878. if (GM_getValue("Check_uploading_dot_com_links", false))
  6879. {
  6880. addFileHost(
  6881. 'uploading\\.com\/(?:files\/)?\\w+',
  6882. 'free_method">',
  6883. 'file_error">|error_404">|file not found|OOPS! Looks like file not found',
  6884. 'optional--',
  6885. "//a[contains(@href,'uploading.com')]"
  6886. );
  6887. }
  6888. if (GM_getValue("Check_gigasize_dot_com_links", false))
  6889. {
  6890. addFileHost(
  6891. 'gigasize\\.com\/get\\.php(?:\/\\d+|\\?d=\\w+)',
  6892. 'fileId"',
  6893. 'error">',
  6894. 'optional--',
  6895. "//a[contains(@href,'gigasize.com/get')]"
  6896. );
  6897. }
  6898. if (GM_getValue("Check_good_dot_com_links", false))
  6899. {
  6900. addFileHost(
  6901. 'good\\.net\/(?:_|dl)',
  6902. 'Free Download',
  6903. 'Not Found',
  6904. 'Forbidden',
  6905. "//a[contains(@href,'good.net')]"
  6906. );
  6907. }
  6908. if (GM_getValue("Check_2shared_dot_com_links", false))
  6909. {
  6910. addFileHost(
  6911. '2shared\\.com\/(?:file|video|document|audio)\/\\w*',
  6912. 'File size',
  6913. 'File not found|is not valid|/images/important.gif',
  6914. 'optional--',
  6915. "//a[contains(@href,'2shared.com/file/') or contains (@href,'2shared.com/audio/') or contains (@href,'2shared.com/document/') or contains (@href,'2shared.com/video/')]"
  6916. );
  6917. }
  6918. if (GM_getValue("Check_turboupload_dot_com_links", false))
  6919. {
  6920. addFileHost(
  6921. 'turboupload\\.com\/\\w*',
  6922. 'You have requested',
  6923. 'File Not Found',
  6924. 'optional--',
  6925. "//a[contains(@href,'turboupload.com')]"
  6926. );
  6927. }
  6928. if (GM_getValue("Check_gigapeta_dot_com_links", false))
  6929. {
  6930. addFileHost(
  6931. 'gigapeta\\.com\/dl\/',
  6932. 'Download file|Скачать файл| Herunterzuladen|Scarica il file|Cargar el fichero|Charger le fichier',
  6933. '404|page_error',
  6934. 'optional--',
  6935. "//a[contains(@href,'gigapeta.com/dl')]"
  6936. );
  6937. }
  6938. if (GM_getValue("Check_veehd_dot_com_links", false))
  6939. {
  6940. addFileHost(
  6941. 'veehd\.com\/video\/.*?',
  6942. 'No sound|Download video',
  6943. 'Featured Videos',
  6944. 'optional--',
  6945. "//a[contains(@href,'veehd.com') and contains(@href,'video')]"
  6946. );
  6947. }
  6948. if (GM_getValue("Check_vip_dash_file_dot_com_links", false))
  6949. {
  6950. addFileHost(
  6951. '(?:u\\d+\\.)?vip-file\\.com\/download.*?\/(?:.*?)\/(?:.*?)\\.html',
  6952. 'fast_download_form">|submit_sms_download',
  6953. '<p style="text-align:center">',
  6954. 'optional--',
  6955. "//a[contains(@href,'vip-file.com/download')]"
  6956. );
  6957. }
  6958. if (GM_getValue("Check_letitbit_dot_net_links", false))
  6959. {
  6960. addFileHost(
  6961. '(?:u\\d+\\.)?letitbit\\.net\/download\/\\w+',
  6962. 'download\\-pnl ',
  6963. 'color:#000">|Запрашиваемый файл не найден|страница не существует|File not found|',
  6964. 'optional--',
  6965. "//a[contains(@href,'letitbit.net/download')]"
  6966. );
  6967. }
  6968. if (GM_getValue("Check_ifolder_dot_ru_links", false))
  6969. {
  6970. addFileHost(
  6971. 'ifolder\.ru\/\\d+',
  6972. 'file-info',
  6973. 'ui-state-error',
  6974. 'optional--',
  6975. "//a[contains(@href,'ifolder.ru')]"
  6976. );
  6977. }
  6978. if (GM_getValue("Check_fileswap_dot_com_links", false))
  6979. {
  6980. addFileHost(
  6981. 'fileswap\\.com\/dl\/\\w+',
  6982. 'bttnDownloadLink"',
  6983. 'rounded_block_error"',
  6984. 'is temporary unavailable|disponible en estos momentos|vorläufig unerreichbar|Файл временно недоступен',
  6985. "//a[contains(@href,'fileswap.com/dl')]"
  6986. );
  6987. }
  6988. if (GM_getValue("Check_filecloud_dot_io_links", false))
  6989. {
  6990. addFileHost(
  6991. '(?:s\\d+\\.)?filecloud\\.io\/\\w+',
  6992. 'var __error = 0',
  6993. 'FILES__DOESNT_EXIST|removed or did not exist',
  6994. 'optional--',
  6995. "//a[contains(@href,'filecloud.io/')]"
  6996. );
  6997. addFileHost(
  6998. 'ifile\\.it\/\\w+',
  6999. 'var __error = 0',
  7000. 'FILES__DOESNT_EXIST',
  7001. 'optional--',
  7002. "//a[contains(@href,'ifile.it/')]"
  7003. );
  7004. }
  7005. if (GM_getValue("Check_solidfiles_dot_com_links", false))
  7006. {
  7007. addFileHost(
  7008. 'solidfiles\\.com\/d\/\\w+',
  7009. 'id="download"|content="Download',
  7010. '>Not found<|<h2>404</h2>|Page not found|<h1>404</h1>|File not available|no longer available',
  7011. 'optional--',
  7012. "//a[contains(@href,'solidfiles.com/d')]"
  7013. );
  7014. }
  7015. if (GM_getValue("Check_shareflare_dot_net_links", false))
  7016. {
  7017. addFileHost(
  7018. "(?:.\\.|)shareflare\\.net",
  7019. 'download-pnl|<div class="premium-block">',
  7020. 'File not found|Поиск зеркала на фа|<div id="captcha"',
  7021. 'optional--',
  7022. "//a[contains(@href,'shareflare.net') and contains(@href,'download')]"
  7023. );
  7024. }
  7025. if (GM_getValue("Check_u18116681_dot_shareflare_dot_net_links", false))
  7026. {
  7027. addFileHost(
  7028. "u18116681.shareflare\\.net",
  7029. 'download-pnl|<div class="premium-block">',
  7030. 'File not found|Поиск зеркала на фа|<div id="captcha"',
  7031. 'optional--',
  7032. "//a[contains(@href,'shareflare.net') and contains(@href,'download')]"
  7033. );
  7034. }
  7035. if (GM_getValue("Check_uloz_dot_to_links", false))
  7036. {
  7037. addFileHost(
  7038. "(?:uloz|ulozto|bagruj|zachowajto)\\.(to|cz|sk|net|pl)\/\\w",
  7039. 'fileDownload">|fileSize">',
  7040. 'grayButton deletedFile">|Stránka nenalezena|upload-button"|jako soukromý.',
  7041. 'passwordProtectedFile">|frmaskAgeForm-disagree',
  7042. "//a[contains(@href,'bagruj.cz') or contains(@href,'uloz.to') or contains(@href,'ulozto.') or contains(@href,'zachowajto.pl')]",
  7043. true
  7044. );
  7045. }
  7046. if (GM_getValue("Check_hellspy_dot_com_links", false))
  7047. {
  7048. addFileHost(
  7049. "hellspy\.(?:com|cz|sk|hu|pl)\/\\w+",
  7050. 'file\\-list-orderby|section-filedetail">',
  7051. '<\/span><\/h2>\\s*<p>|list-purp-2">|flash info sticky">',
  7052. 'optional--',
  7053. "//a[contains(@href,'hellspy.')]"
  7054. );
  7055. }
  7056. if (GM_getValue("Check_leteckaposta_dot_cz_links", false))
  7057. {
  7058. addFileHost(
  7059. "(?:leteckaposta\\.cz|sharegadget\\.com)\/\\d+",
  7060. '<body onload="">',
  7061. 'neexistuje|not exist',
  7062. 'optional--',
  7063. "//a[contains(@href,'leteckaposta.cz') or contains(@href,'sharegadget.com')]"
  7064. );
  7065. }
  7066. if (GM_getValue("Check_stahovanizasms_dot_cz_links", false))
  7067. {
  7068. addFileHost(
  7069. "stahovanizasms\\.cz\/\\w+",
  7070. 'download\\.png>|font-size:11px><tr>',
  7071. 'smaz.n u.ivatelem|font-size:11px><\/table>',
  7072. 'optional--',
  7073. "//a[contains(@href,'stahovanizasms.cz')]"
  7074. );
  7075. }
  7076. if (GM_getValue("Check_share_dash_links_dot_biz_links", false))
  7077. {
  7078. addFileHost(
  7079. "share-links\\.biz\/\\w*",
  7080. 'online\\.gif',
  7081. '(?:offline|parts)\\.gif',
  7082. 'optional--',
  7083. "//a[contains(@href,'share-links.biz')]"
  7084. );
  7085. }
  7086. if (GM_getValue("Check_4shared_dot_com_links", false))
  7087. {
  7088. addFileHost(
  7089. "4shared\\.com\/.+\/",
  7090. '<input type="hidden" class="jsSocialTwDefaultText" value=',
  7091. 'class="warn\"|big red"|GetDataBack',
  7092. 'Service Unavailable',
  7093. "//a[contains(@href,'4shared.com')]"
  7094. );
  7095. }
  7096. if (GM_getValue("Check_zippyshare_dot_com_links", false))
  7097. {
  7098. addFileHost(
  7099. "(?:www\\d+\.|)zippyshare\.com\/",
  7100. 'download\.png|Download Now|images/download_small.png|id="dlbutton"',
  7101. 'not exist|Status 404',
  7102. 'optional--',
  7103. "//a[contains(@href,'zippyshare.com') and contains(@href,'file.html')]"
  7104. );
  7105. }
  7106. if (GM_getValue("Check_mediafire_dot_com_links", false))
  7107. {
  7108. addFileHost(
  7109. "mediafire\.com\/",
  7110. 'download_file_title|dlFileName|id="PLAY_downloadButton"',
  7111. 'error\\.php\\?|error_msg_title|<title>Simple File Sharing|No files found',
  7112. 'set to private',
  7113. "//a[contains(@href,'mediafire.com')]"
  7114. );
  7115. }
  7116. if (GM_getValue("Check_uploaded_dot_to_links", false))
  7117. {
  7118. addFileHost(
  7119. '(?:uploaded\\.(?:to|net)\/(?:.id|file|folder|f|410|404))|(?:ul\\.to\/)',
  7120. '<h2>Authentification</h2></li>| MB|1,00 GB',
  7121. 'box_red|Error: 404|Error: 410|fileList"><thead><tr><td colspan="2"><\/td><\/tr><\/thead><tbody>\\s*<tr>|<title>uploaded.net</title>',
  7122. 'optional--',
  7123. "//a[contains(@href,'uploaded.to/') or contains(@href,'uploaded.net/') or contains(@href,'ul.to/')]"
  7124. );
  7125. }
  7126. if (GM_getValue("Check_ulozisko_dot_sk_links", false))
  7127. {
  7128. addFileHost(
  7129. "ulozisko\.sk\/",
  7130. 'Detaily',
  7131. 'neexistuje',
  7132. 'optional--',
  7133. "//a[contains(@href,'ulozisko.sk')]"
  7134. );
  7135. }
  7136. if (GM_getValue("Check_upnito_dot_sk_links", false))
  7137. {
  7138. addFileHost(
  7139. "(?:dl.\\.|)upnito\\.sk\/(download|subor|file)",
  7140. 'download.php',
  7141. 'notfound|upload\\-suborov\\.php"',
  7142. 'optional--',
  7143. "//a[contains(@href,'upnito.sk')]"
  7144. );
  7145. }
  7146. if (GM_getValue("Check_uptobox_dot_com_links", false))
  7147. {
  7148. addFileHost(
  7149. "uptobox\\.com\/\\w+",
  7150. 'Create Download Link">',
  7151. '500px;text-align:left;">|File not found|Fichier introuvable',
  7152. 'Maintenance|not available in your country',
  7153. "//a[contains(@href,'uptobox.com')]"
  7154. );
  7155. }
  7156. if (GM_getValue("Check_sharecash_dot_org_links", false))
  7157. {
  7158. addFileHost(
  7159. "sharecash\\.org\/download\\.php\\?file=\\d+",
  7160. 'FILE DOWNLOAD<',
  7161. 'File Does Not Exist',
  7162. 'optional--',
  7163. "//a[contains(@href,'sharecash.org/download.php')]"
  7164. );
  7165. }
  7166. if (GM_getValue("Check_depositfiles_dot_com_links", false)) //folders
  7167. {
  7168. addFileHost(
  7169. "depositfiles\\.com\/folders\/\\w+",
  7170. '<div class="progressContainer">',
  7171. '<div id="files" class="files">\\s*<\/div>',
  7172. 'optional--',
  7173. "//a[contains(@href,'depositfiles.com/folders')]"
  7174. );
  7175. }
  7176. if (GM_getValue("Check_rapidfileshare_dot_net_links", false))
  7177. {
  7178. addFileHost(
  7179. "rapidfileshare\\.net/\\w+",
  7180. '<div id="upload-header-bg">',
  7181. '<div style="width:500px;text-align:left;">',
  7182. 'optional--',
  7183. "//a[contains(@href,'rapidfileshare.net/')]"
  7184. );
  7185. }
  7186. if (GM_getValue("Check_stiahnito_dot_sk_links", false))
  7187. {
  7188. addFileHost(
  7189. "stiahnito\\.sk/",
  7190. '<span class="filesize right">',
  7191. '<ol class="list-purp-2">',
  7192. 'optional--',
  7193. "//a[contains(@href,'stiahnito.sk/')]"
  7194. );
  7195. }
  7196. if (GM_getValue("Check_rusfolder_dot_com_links", false))
  7197. {
  7198. addFileHost(
  7199. "rusfolder\\.(?:com|net)",
  7200. '"download-step-one-form"|Название: <b>|Файлы|Файлы в папке',
  7201. '"ui-state-error ui-corner-all"|File is removed|File not found|удален',
  7202. 'optional--',
  7203. "//a[contains(@href,'rusfolder')]"
  7204. );
  7205. }
  7206. if (GM_getValue("Check_fileover_dot_net_links", false))
  7207. {
  7208. addFileHost(
  7209. "fileover\\.net/\\d+",
  7210. 'id="filesize"',
  7211. 'Not found or deleted|The following file is unavailable',
  7212. 'optional--',
  7213. "//a[contains(@href,'fileover.net/')]"
  7214. );
  7215. }
  7216. if (GM_getValue("Check_catshare_dot_net_links", false))
  7217. {
  7218. addFileHost(
  7219. "catshare\\.net/\\w+",
  7220. '"icon-share',
  7221. 'alert alert-error',
  7222. 'optional--',
  7223. "//a[contains(@href,'catshare.net/')]"
  7224. );
  7225. }
  7226. if (GM_getValue("Check_anonfiles_dot_com_links", false))
  7227. {
  7228. addFileHost(
  7229. "anonfiles\\.com/\\w+",
  7230. '"download_button"',
  7231. '<legend><b>404</b>',
  7232. 'optional--',
  7233. "//a[contains(@href,'anonfiles.com')]"
  7234. );
  7235. }
  7236. if (GM_getValue("Check_mixturecloud_dot_com_links", false))
  7237. {
  7238. addFileHost(
  7239. "mixturecloud\\.com/media/\\w+",
  7240. '"btn icon i_globe gray share_150',
  7241. '"s_cross_close"></span> 404:',
  7242. 'optional--',
  7243. "//a[contains(@href,'mixturecloud.com/media/')]"
  7244. );
  7245. }
  7246. if (GM_getValue("Check_akafile_dot_com_links", false))
  7247. {
  7248. addFileHost(
  7249. "akafile\\.com\/\\w+",
  7250. 'download1',
  7251. 'File Not Found',
  7252. 'optional--',
  7253. "//a[contains(@href,'akafile.com/')]"
  7254. );
  7255. }
  7256. if (GM_getValue("Check_creafile_dot_net_links", false))
  7257. {
  7258. addFileHost(
  7259. "creafile\\.net\/\\w+",
  7260. 'downloadblock',
  7261. 'errtitle',
  7262. 'optional--',
  7263. "//a[contains(@href,'creafile.net/')]"
  7264. );
  7265. }
  7266. if (GM_getValue("Check_hugefiles_dot_net_links", false))
  7267. {
  7268. addFileHost(
  7269. "hugefiles\\.net\/\\w+",
  7270. 'download1|class="btn-create-download" value="Create Download Link">',
  7271. 'File Not Found|No such file with this filename',
  7272. 'optional--',
  7273. "//a[contains(@href,'hugefiles.net/')]"
  7274. );
  7275. }
  7276. if (GM_getValue("Check_sendmyway_dot_com_links", false))
  7277. {
  7278. addFileHost(
  7279. "sendmyway\\.com\/\\w+",
  7280. 'id="btn_download"',
  7281. '500px;text-align:left;"|<center><h3>',
  7282. 'optional--',
  7283. "//a[contains(@href,'sendmyway.com/')]"
  7284. );
  7285. }
  7286. if (GM_getValue("Check_upload_dot_ee_links", false))
  7287. {
  7288. addFileHost(
  7289. "upload\\.ee\/\\w+",
  7290. 'onmouseout="document.dllink.src',
  7291. 'There is no such file.|File was deleted|Fail kustutati|Файл удалён|Такого файла нет',
  7292. 'optional--',
  7293. "//a[contains(@href,'upload.ee/')]"
  7294. );
  7295. }
  7296. if (GM_getValue("Check_shareplace_dot_org_links", false))
  7297. {
  7298. addFileHost(
  7299. "shareplace\\.org\/\\?\\w+",
  7300. 'Download-Link',
  7301. 'Your requested file is not found|Select file to send',
  7302. 'optional--',
  7303. "//a[contains(@href,'shareplace.org/?')]"
  7304. );
  7305. }
  7306. if (GM_getValue("Check_uploadc_dot_com_links", false))
  7307. {
  7308. addFileHost(
  7309. "uploadc\\.com\/\\w+",
  7310. 'id="prebut"',
  7311. 'File Not Found|This file has been removed due',
  7312. 'optional--',
  7313. "//a[contains(@href,'uploadc.com/')]"
  7314. );
  7315. }
  7316. if (GM_getValue("Check_remixshare_dot_com_links", false))
  7317. {
  7318. addFileHost(
  7319. "remixshare\\.com\/\\w+",
  7320. 'id="dl2"',
  7321. '<table class=\'failed\'><tr><td width=\'90%\'>|Sorry, die Datei konnte nicht gefunden werden',
  7322. 'optional--',
  7323. "//a[contains(@href,'remixshare.com/')]"
  7324. );
  7325. }
  7326. if (GM_getValue("Check_exoshare_dot_com_links", false))
  7327. {
  7328. addFileHost(
  7329. "exoshare\\.com\/download\\.php\\?uid=\\w+",
  7330. 'Last Download :',
  7331. 'img src="\\/404.jpg"',
  7332. 'optional--',
  7333. "//a[contains(@href,'exoshare.com/download.php')]"
  7334. );
  7335. }
  7336. if (GM_getValue("Check_borncash_dot_org_links", false))
  7337. {
  7338. addFileHost(
  7339. "borncash\\.org\/download\/\\?a=\\w+",
  7340. 'class="knop_1"',
  7341. '\/error\/er00',
  7342. 'optional--',
  7343. "//a[contains(@href,'borncash.org/download/')]"
  7344. );
  7345. }
  7346. if (GM_getValue("Check_vidplay_dot_net_links", false))
  7347. {
  7348. addFileHost(
  7349. "vidplay\.net\/\\w+",
  7350. 'solvemedia puzzle widget',
  7351. 'File not found|AVOID_IE_BUG',
  7352. 'optional--',
  7353. "//a[contains(@href,'vidplay.net')]");
  7354. }
  7355. if (GM_getValue("Check_storagon_dot_com_links", false))
  7356. {
  7357. addFileHost(
  7358. "storagon\.com\/\\w+",
  7359. 'class="icon-cloud-download"></i>|content="Download Options',
  7360. 'content="Download Downloads|class="error-container">|class="bigger-300 bolder">404<',
  7361. 'optional--',
  7362. "//a[contains(@href,'storagon.com')]");
  7363. }
  7364. if (GM_getValue("Check_filedais_dot_com_links", false))
  7365. {
  7366. addFileHost(
  7367. "filedais\.com\/\\w+",
  7368. 'class="btn btn-info"|name="method_free"',
  7369. 'style="width:500px;text-align:left;">|File Not Found|AVOID_IE_BUG',
  7370. 'optional--',
  7371. "//a[contains(@href,'filedais.com')]");
  7372. }
  7373. if (GM_getValue("Check_ryushare_dot_com_links", false))
  7374. {
  7375. addFileHost(
  7376. "ryushare\.com\/\\w+",
  7377. 'KB|MB',
  7378. '<div style="width:500px;text-align:left;">',
  7379. 'in maintenance mode|Software error:',
  7380. "//a[contains(@href,'ryushare.com')]");
  7381. }
  7382. if (GM_getValue("Check_up_dot_4share_dot_vn_links", false))
  7383. {
  7384. addFileHost(
  7385. "up.4share\.vn\/\\w+",
  7386. '<font size="2" face="Verdana">',
  7387. 'font: 13px Tahoma; color: Brown',
  7388. 'optional--',
  7389. //'optional--',
  7390. "//a[contains(@href,'up.4share.vn')]");
  7391. }
  7392. if (GM_getValue("Check_share_dot_vnn_dot_vn_links", false))
  7393. {
  7394. addFileHost(
  7395. "share.vnn\.vn\/\\w+",
  7396. '"index,follow"|<div class="main" id="download-box">',
  7397. '<meta name="description" content="" />|<h1>Không tìm thấy file bạn yêu cầu</h1>',
  7398. 'optional--',
  7399. //'optional--',
  7400. "//a[contains(@href,'share.vnn.vn')]");
  7401. }
  7402. if (GM_getValue("Check_upfile_dot_vn_links", false))
  7403. {
  7404. addFileHost(
  7405. "upfile\.vn\/\\w+",
  7406. 'download-timer',
  7407. '<meta name="description" content="Upload files|<meta name="description" content="Error "',
  7408. 'optional--',
  7409. //'optional--',
  7410. "//a[contains(@href,'upfile.vn')]");
  7411. }
  7412. /* if (GM_getValue("Check_firedrive_dot_com_links", false))
  7413. {
  7414. addFileHost(
  7415. "firedrive\\.com\/file\/\\w{16}",
  7416. 'as Free User|<a class="continue"|Continue to file|#feedback_btn|application file_standalone',
  7417. 'Welcome to PutLocker|<div class="sad_face_image">|404:',
  7418. 'undergoing scheduled maintenance',
  7419. "//a[contains(@href,'firedrive.com/file')]"
  7420. );
  7421. } */
  7422. if (GM_getValue("Check_aisfile_dot_com_links", false))
  7423. {
  7424. addFileHost(
  7425. "aisfile\.com\/\\w+",
  7426. '<h3 style="text-align:left;">|align=right><b>Filename:',
  7427. '<div style="width:500px;text-align:left;">|File Not Found',
  7428. 'optional--',
  7429. //'optional--',
  7430. "//a[contains(@href,'aisfile.com')]");
  7431. }
  7432. if (GM_getValue("Check_usersfiles_dot_com_links", false))
  7433. {
  7434. addFileHost(
  7435. "usersfiles\.com\/\\w+",
  7436. 'class="btn btn-success|id="btn_download" class="btn"',
  7437. '<div style="width:500px;text-align:left;">',
  7438. 'optional--',
  7439. //'optional--',
  7440. "//a[contains(@href,'usersfiles.com')]");
  7441. }
  7442. if (GM_getValue("Check_pan_dot_baidu_dot_com_links", false))
  7443. {
  7444. addFileHost(
  7445. "pan.baidu\.com\/\\w+",
  7446. 'target="_blank" title=|share-personal-info',
  7447. 'share_notfound.png|background:#f9f9f9',
  7448. 'optional--',
  7449. //'optional--',
  7450. "//a[contains(@href,'pan.baidu.com')]");
  7451. }
  7452. if (GM_getValue("Check_yunpan_dot_cn_links", false))
  7453. {
  7454. addFileHost(
  7455. "yunpan\.cn\/\\w+",
  7456. 'class="icon icon-download',
  7457. 'content="360|http://p5.qhimg.com/t01d1c98667df9dc6cc.jpg',
  7458. 'optional--',
  7459. //'optional--',
  7460. "//a[contains(@href,'yunpan.cn')]");
  7461. }
  7462. if (GM_getValue("Check_file_dash_upload_dot_net_links", false))
  7463. {
  7464. addFileHost(
  7465. "(?:en\\.|)file\\-upload\\.net\/download\\-\\d+\/\\w+",
  7466. 'getElementById("downbild")|style.display',
  7467. 'hochgeladene Datei nicht gefunden werden|has not been found',
  7468. 'optional--',
  7469. //'optional--',
  7470. "//a[contains(@href,'file-upload.net')]");
  7471. }
  7472. if (GM_getValue("Check_gulfup_dot_com_links", false))
  7473. {
  7474. addFileHost(
  7475. "gulfup\.com\/",
  7476. '<!-- Downlod template -->|download.gif',
  7477. '<!-- Errors template -->|class="error">|<!-- form upload -->|[ رفع الملفات ]',
  7478. 'optional--',
  7479. //'optional--',
  7480. "//a[contains(@href,'gulfup.com')]");
  7481. }
  7482. if (GM_getValue("Check_datafilehost_dot_com_links", false))
  7483. {
  7484. addFileHost(
  7485. "datafilehost\\.com\/(?:download-\\w+\\.html|d\/\\w+)",
  7486. 'dldtable">',
  7487. 'does not exist\\.',
  7488. 'optional--',
  7489. //'optional--',
  7490. "//a[contains(@href,'datafilehost.com')]");
  7491. }
  7492. if (GM_getValue("Check_box_dot_com_links", false))
  7493. {
  7494. addFileHost(
  7495. "box\.com\/\\w+",
  7496. 'download-file-btn|id="download_button',
  7497. 'BIyMin.png| <div class="error_message|link has been removed',
  7498. 'optional--',
  7499. //'optional--',
  7500. "//a[contains(@href,'app.box.com')]");
  7501. }
  7502. if (GM_getValue("Check_dropbox_dot_com_links", false))
  7503. {
  7504. addFileHost(
  7505. "dropbox\.com\/s\/\\w+",
  7506. 'default_content_download_button" class="freshbutton-blue">|content_download_button',
  7507. '>Nothing Here<|>Error (404)<',
  7508. 'title>Dropbox - 509|Error (403)|Error: 429',
  7509. "//a[contains(@href,'dropbox.com')]");
  7510. }
  7511. if (GM_getValue("Check_box_dot_net_links", false))
  7512. {
  7513. addFileHost(
  7514. "box\.net\/\\w+",
  7515. 'download-file-btn|id="download_button',
  7516. 'BIyMin.png| <div class="error_message',
  7517. 'optional--',
  7518. //'optional--',
  7519. "//a[contains(@href,'box.net')]");
  7520. }
  7521. if (GM_getValue("Check_fileband_dot_com_links", false))
  7522. {
  7523. addFileHost(
  7524. "fileband\.com\/\\w+",
  7525. 'value="download1">|name="id" value=',
  7526. '<div style="width:500px;text-align:left;">|not be found',
  7527. 'optional--',
  7528. //'optional--',
  7529. "//a[contains(@href,'fileband.com')]");
  7530. }
  7531. if (GM_getValue("Check_filedropper_dot_com_links", false))
  7532. {
  7533. addFileHost(
  7534. "filedropper\.com\/\\w+",
  7535. 'background:#ddd;|width:985px; ',
  7536. 'background-color:#FFFFFF;|margin-left: -400px;',
  7537. 'optional--',
  7538. //'optional--',
  7539. "//a[contains(@href,'filedropper.com')]");
  7540. }
  7541. if (GM_getValue("Check_tropicshare_dot_com_links", false))
  7542. {
  7543. addFileHost(
  7544. "tropicshare\\.com\/files\/\\d+",
  7545. 'MB</span>|GB</span>|KB</span>',
  7546. '>FNF<|size: </span>',
  7547. 'optional--',
  7548. //'optional--',
  7549. "//a[contains(@href,'tropicshare.com')]");
  7550. }
  7551. if (GM_getValue("Check_goldbytez_dot_com_links", false))
  7552. {
  7553. addFileHost(
  7554. "goldbytez\.com\/\\w+",
  7555. '<h2>Download</h2>|<center><h2>File: <font color="red">',
  7556. '<div style="width:500px;text-align:left;">|<h2>Error</h2>',
  7557. 'optional--',
  7558. //'optional--',
  7559. "//a[contains(@href,'goldbytez.com')]");
  7560. }
  7561. if (GM_getValue("Check_worldbytez_dot_com_links", false))
  7562. {
  7563. addFileHost(
  7564. "worldbytez\.com\/\\w+",
  7565. '<div class="download_type">',
  7566. '<div style="width:500px;text-align:left;">',
  7567. 'optional--',
  7568. //'optional--',
  7569. "//a[contains(@href,'worldbytez.com')]");
  7570. }
  7571. if (GM_getValue("Check_freefilehosting_dot_net_links", false))
  7572. {
  7573. addFileHost(
  7574. "freefilehosting\.net\/\\w+",
  7575. 'Type: cbr|Type: rar|Type: jpg|Type: mkv|Type: avi|Type: mpg|Type: mpeg|Type: zip|Type: wmvType: bmpType: gifType: mp4Type: mp3',
  7576. '175px;" value="http://www.freefilehosting.net/"|Filename: <br>',
  7577. 'optional--',
  7578. //'optional--',
  7579. "//a[contains(@href,'freefilehosting.net')]");
  7580. }
  7581. if (GM_getValue("Check_ziddu_dot_com_links", false))
  7582. {
  7583. addFileHost(
  7584. "ziddu\.com\/\\w+",
  7585. 'downloads.ziddu.com|downloadfilelinkicon',
  7586. 'errortracking.php|images/oops.png|fontfamilyverdana error',
  7587. 'optional--',
  7588. //'optional--',
  7589. "//a[contains(@href,'ziddu.com')]");
  7590. }
  7591. if (GM_getValue("Check_exclusiveloader_dot_com_links", false))
  7592. {
  7593. addFileHost(
  7594. "exclusiveloader\.com\/\\w+",
  7595. 'style="padding-top:55px; padding-bottom:65px;">|<h2>Download</h2>',
  7596. 'File Not Found|width:322px;text-align:left;" class="no_file">',
  7597. 'optional--',
  7598. //'optional--',
  7599. "//a[contains(@href,'exclusiveloader.com')]");
  7600. }
  7601. if (GM_getValue("Check_sharerapid_dot_cz_links", false))
  7602. {
  7603. addFileHost(
  7604. "sharerapid\.cz\/\\w+",
  7605. 'value="Stáhnout"|soubor" style|Stahování je povoleno pouze pro přihlášené uživatele',
  7606. 'error_div">|404 - Not Found',
  7607. 'optional--',
  7608. //'optional--',
  7609. "//a[contains(@href,'sharerapid.cz')]");
  7610. }
  7611. if (GM_getValue("Check_sdilej_dot_cz_links", false))
  7612. {
  7613. addFileHost(
  7614. "sdilej\.cz\/\\w+",
  7615. 'class="page-download"',
  7616. '<h2 class="red">|czshare.com|sponsored listings|This domain is for sale',
  7617. 'optional--',
  7618. //'optional--',
  7619. "//a[contains(@href,'sdilej.cz')]");
  7620. }
  7621. if (GM_getValue("Check_lafiles_dot_com_links", false))
  7622. {
  7623. addFileHost(
  7624. "lafiles\.com\/\\w+",
  7625. '<div id="pay_modes">',
  7626. '<b class="err"></b>',
  7627. 'optional--',
  7628. //'optional--',
  7629. "//a[contains(@href,'lafiles.com')]");
  7630. }
  7631. if (GM_getValue("Check_fboom_dot_me_links", false))
  7632. {
  7633. addFileHost(
  7634. "fboom\.me\/file\/\\w+",
  7635. 'id="download-free" href="#"',
  7636. 'class="error-v1-title">404<|File not found or deleted',
  7637. 'optional--',
  7638. //'optional--',
  7639. "//a[contains(@href,'fboom.me')]");
  7640. }
  7641. if (GM_getValue("Check_fileboom_dot_me_links", false))
  7642. {
  7643. addFileHost(
  7644. "fileboom\.me\/file\/\\w+",
  7645. 'id="download-free" href="#"',
  7646. 'class="error-v1-title">404<|File not found or deleted',
  7647. 'optional--',
  7648. //'optional--',
  7649. "//a[contains(@href,'fileboom.me')]");
  7650. }
  7651. if (GM_getValue("Check_acefile_dot_net_links", false))
  7652. {
  7653. addFileHost(
  7654. "acefile\.net\/\\w+",
  7655. 'align=right nowrap><b>',
  7656. 'File Not Found|<div style="width:322px;text-align:left;" class="no_file">',
  7657. 'optional--',
  7658. //'optional--',
  7659. "//a[contains(@href,'acefile.net')]");
  7660. }
  7661. if (GM_getValue("Check_megarapid_dot_cz_links", false))
  7662. {
  7663. addFileHost(
  7664. "megarapid\.cz\/\\w+",
  7665. 'value="Stáhnout"|soubor" style|Stahování je povoleno pouze pro přihlášené uživatele',
  7666. 'error_div">|404 - Not Found',
  7667. 'optional--',
  7668. //'optional--',
  7669. "//a[contains(@href,'megarapid.cz')]");
  7670. }
  7671. if (GM_getValue("Check_yadi_dot_sk_links", false))
  7672. {
  7673. addFileHost(
  7674. "yadi\.sk\/\\w+",
  7675. 'twitter:site|View and download',
  7676. 'error code|Nothing found',
  7677. 'optional--',
  7678. //'optional--',
  7679. "//a[contains(@href,'yadi.sk')]");
  7680. }
  7681. if (GM_getValue("Check_imdb_dot_com_links", false))
  7682. {
  7683. addFileHost(
  7684. "imdb\.com\/\\w+",
  7685. 'imdb.com',
  7686. '404 Error',
  7687. 'optional--',
  7688. "//a[contains(@href,'imdb.com')]");
  7689. }
  7690. if (GM_getValue("Check_hitfile_dot_net_links", false))
  7691. {
  7692. addFileHost(
  7693. "hitfile\.net\/\\w+",
  7694. 'class="download-file',
  7695. 'style="width:16px;height:16px;border:0;|File not found|Файл не найден. Возможно он был удален',
  7696. 'optional--',
  7697. //'optional--',
  7698. "//a[contains(@href,'hitfile.net')]");
  7699. }
  7700. /* if (GM_getValue("Check_uploadto_dot_us_links", false))
  7701. {
  7702. addFileHost(
  7703. "uploadto\\.us\/file\/details\/[\\w+-]",
  7704. 'name="recaptcha_response',
  7705. '="/folder/add"|>File (?:not found|restricted|has been deleted)|<title>UPLOADTO.US</title>',
  7706. 'btn-large btn-danger">|Account limitation notice|502 Bad Gateway',
  7707. "//a[contains(@href,'uploadto.us/file')]",
  7708. true);
  7709. } */
  7710. if (GM_getValue("Check_nitroflare_dot_com_links", true))
  7711. {
  7712. addFileHost(
  7713. "nitroflare\.com\/\\w+",
  7714. 'MB</span>|KB</span>|left;">1.0', //alert.png|LowSpeedMeter.png
  7715. 'file has been removed|id="error" style="display|Probably deleted',
  7716. 'optional--',
  7717. "//a[contains(@href,'nitroflare.com')]");
  7718. }
  7719. if (GM_getValue("Check_up_dot_top4top_dot_net_links", false))
  7720. {
  7721. addFileHost(
  7722. "up.top4top\.net\/\\w+",
  7723. 'start Downlod template',
  7724. 'start err template',
  7725. 'optional--',
  7726. "//a[contains(@href,'up.top4top.net')]");
  7727. }
  7728. if (GM_getValue("Check_filejoker_dot_net_links", false))
  7729. {
  7730. addFileHost(
  7731. "filejoker\.net\/\\w+",
  7732. 'button id="regular-download">Slow|method_free" value="1|<div id="download" class="download0">',
  7733. 'File Not Found|class="not_found|<div id="download" class="not_found">|"err">DMCA Complaint<',
  7734. 'optional--',
  7735. "//a[contains(@href,'filejoker.net')]");
  7736. }
  7737. if (GM_getValue("Check_free_dot_fr_links", false))
  7738. {
  7739. addFileHost(
  7740. "(?:dl.\\.|)free\\.fr",
  7741. 'Valider et t&eacute;l&eacute',
  7742. 'Fichier inexistant',
  7743. 'optional--',
  7744. "//a[contains(@href,'free.fr')]");
  7745. }
  7746. if (GM_getValue("Check_gboxes_dot_com_links", false))
  7747. {
  7748. addFileHost(
  7749. "gboxes\.com\/\\w+",
  7750. 'You have requested|color="red">http://www.gboxes.com',
  7751. 'File Not Found|<div style="width:500px;text-align:left;">',
  7752. 'optional--',
  7753. "//a[contains(@href,'gboxes.com')]");
  7754. }
  7755. if (GM_getValue("Check_1fichier_dot_com_links", false))
  7756. {
  7757. addFileHost(
  7758. "(?:\\w{10}\\.(?:1fichier|dl4free)\\.com\/)|(?:(?:1fichier|dl4free)\\.com\/\\?\\w{10})|(?:www\\.)?\\w{6,}\\.1fichier\\.com",
  7759. '<title>Download</title>|<br/>You must wait|submit" value="Download|Download without SSL encryption|submit" value="Télécharger|submit" value="Télécharger',
  7760. '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é',
  7761. 'optional--',
  7762. "//a[contains(@href,'1fichier') or contains(@href,'dl4free.com/')]"
  7763. );
  7764. }
  7765. if (GM_getValue("Check_led_dot_wf_links", false))
  7766. {
  7767. addFileHost(
  7768. "led\.wf\/\\w+",
  7769. 'logo_0.png|downloads.gif"|verifycode',
  7770. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  7771. 'optional--',
  7772. "//a[contains(@href,'led.wf')]");
  7773. }
  7774. if (GM_getValue("Check_lan_dot_wf_links", false))
  7775. {
  7776. addFileHost(
  7777. "lan\.wf\/\\w+",
  7778. 'logo_0.png|downloads.gif"|verifycode',
  7779. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  7780. 'optional--',
  7781. "//a[contains(@href,'lan.wf')]");
  7782. }
  7783. if (GM_getValue("Check_adlink_dot_wf_links", false))
  7784. {
  7785. addFileHost(
  7786. "adlink\.wf\/\\w+",
  7787. 'logo_0.png|downloads.gif"|verifycode',
  7788. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  7789. 'optional--',
  7790. "//a[contains(@href,'adlink.wf')]");
  7791. }
  7792. if (GM_getValue("Check_click_dot_tf_links", false))
  7793. {
  7794. addFileHost(
  7795. "click\.tf\/\\w+",
  7796. 'logo_0.png|downloads.gif"|verifycode',
  7797. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  7798. 'optional--',
  7799. "//a[contains(@href,'click.tf')]");
  7800. }
  7801. if (GM_getValue("Check_ssh_dot_tf_links", false))
  7802. {
  7803. addFileHost(
  7804. "ssh\.tf\/\\w+",
  7805. 'logo_0.png|downloads.gif"|verifycode',
  7806. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  7807. 'optional--',
  7808. "//a[contains(@href,'ssh.tf')]");
  7809. }
  7810. if (GM_getValue("Check_ssh_dot_yt_links", false))
  7811. {
  7812. addFileHost(
  7813. "ssh\.yt\/\\w+",
  7814. 'logo_0.png|downloads.gif"|verifycode',
  7815. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  7816. 'optional--',
  7817. "//a[contains(@href,'ssh.yt')]");
  7818. }
  7819. if (GM_getValue("Check_yep_dot_pm_links", false))
  7820. {
  7821. addFileHost(
  7822. "yep\.pm\/\\w+",
  7823. 'logo_0.png|downloads.gif"|verifycode',
  7824. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  7825. 'optional--',
  7826. "//a[contains(@href,'yep.pm')]");
  7827. }
  7828. if (GM_getValue("Check_kyc_dot_pm_links", false))
  7829. {
  7830. addFileHost(
  7831. "kyc\.pm\/\\w+",
  7832. 'logo_0.png|downloads.gif"|verifycode',
  7833. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link|deleted by the owner',
  7834. 'optional--',
  7835. "//a[contains(@href,'kyc.pm')]");
  7836. }
  7837. if (GM_getValue("Check_brupload_dot_net_links", false))
  7838. {
  7839. addFileHost(
  7840. "brupload\.net\/\\w+",
  7841. 'Download Gratuito',
  7842. '<div style="width:500px;text-align:left;">',
  7843. 'optional--',
  7844. //'optional--',
  7845. "//a[contains(@href,'brupload.net')]");
  7846. }
  7847. if (GM_getValue("Check_cloudzilla_dot_to_links", false))
  7848. {
  7849. addFileHost(
  7850. "cloudzilla\.to\/\\w+",
  7851. 'btn1" id="free_download|onclick="freeDownload|id="pwd_protected">',
  7852. 'File not found|/imgs/broken.png',
  7853. 'optional--',
  7854. //'optional--',
  7855. "//a[contains(@href,'cloudzilla.to')]");
  7856. }
  7857. if (GM_getValue("Check_fileparadox_dot_in_links", false))
  7858. {
  7859. addFileHost(
  7860. "fileparadox\.in\/\\w+",
  7861. 'CONTENT="Download File|method_free_file',
  7862. '>File Not Found<|id="no_filedownload">|FILE NOT FOUND',
  7863. 'optional--',
  7864. //'optional--',
  7865. "//a[contains(@href,'fileparadox.in')]");
  7866. }
  7867. if (GM_getValue("Check_clicknupload_dot_com_links", false))
  7868. {
  7869. addFileHost(
  7870. "clicknupload\.com\/\\w+",
  7871. 'name="method_free',
  7872. 'File Not Found',
  7873. 'optional--',
  7874. //'optional--',
  7875. "//a[contains(@href,'clicknupload.com')]");
  7876. }
  7877. if (GM_getValue("Check_ex_dash_load_dot_com_links", false))
  7878. {
  7879. addFileHost(
  7880. "ex-load\.com\/\\w+",
  7881. 'name="method_free|<p>Download File:</p>',
  7882. 'Folder Not Found|File Not Found|Error 404',
  7883. 'optional--',
  7884. //'optional--',
  7885. "//a[contains(@href,'ex-load.com')]");
  7886. }
  7887. if (GM_getValue("Check_hexupload_dot_com_links", false))
  7888. {
  7889. addFileHost(
  7890. "hexupload\.com\/\\w+",
  7891. 'button" value="Free|type="submit" value=""',
  7892. 'File Not Found|<div style="width:500px;text-align:left;">',
  7893. 'optional--',
  7894. //'optional--',
  7895. "//a[contains(@href,'hexupload.com')]");
  7896. }
  7897. if (GM_getValue("Check_wizupload_dot_com_links", false))
  7898. {
  7899. addFileHost(
  7900. "wizupload\.com\/\\w+",
  7901. 'btn_download|class="downloadbtn"',
  7902. '>File Not Found<',
  7903. 'optional--',
  7904. //'optional--',
  7905. "//a[contains(@href,'wizupload.com')]");
  7906. }
  7907. if (GM_getValue("Check_filecloud_dot_cc_links", false))
  7908. {
  7909. addFileHost(
  7910. "filecloud\.cc\/\\w+",
  7911. 'align="center"><input type="submit" name=',
  7912. 'File Not Found|<Title>FileCloud - Premium Hosting Service<',
  7913. 'optional--',
  7914. //'optional--',
  7915. "//a[contains(@href,'filecloud.cc')]");
  7916. }
  7917. if (GM_getValue("Check_inclouddrive_dot_com_links", false))
  7918. {
  7919. addFileHost(
  7920. "inclouddrive\.com\/\\w+",
  7921. 'initfreedownload',
  7922. '<title>Content Unavailable|The file you are trying to download is no longer available',
  7923. 'optional--',
  7924. //'optional--',
  7925. "//a[contains(@href,'inclouddrive.com')]");
  7926. }
  7927. if (GM_getValue("Check_radicalshare_dot_com_links", false))
  7928. {
  7929. addFileHost(
  7930. "radicalshare\.com\/\\w+",
  7931. 'value="download1|name="method_free"',
  7932. 'File Not Found<|<div style="width:500px;text-align:left;">',
  7933. 'optional--',
  7934. //'optional--',
  7935. "//a[contains(@href,'radicalshare.com')]");
  7936. }
  7937. if (GM_getValue("Check_sharemods_dot_com_links", false))
  7938. {
  7939. addFileHost(
  7940. "sharemods\.com\/\\w+",
  7941. 'name="method_free"',
  7942. 'File Not Found<',
  7943. 'optional--',
  7944. //'optional--',
  7945. "//a[contains(@href,'sharemods.com')]");
  7946. }
  7947. if (GM_getValue("Check_hostr_dot_co_links", false))
  7948. {
  7949. addFileHost(
  7950. "hostr\.co\/\\w+",
  7951. 'method="get"',
  7952. 'File not found<|error-page',
  7953. 'optional--',
  7954. //'optional--',
  7955. "//a[contains(@href,'hostr.co')]");
  7956. }
  7957. if (GM_getValue("Check_filepi_dot_com_links", false))
  7958. {
  7959. addFileHost(
  7960. "filepi\.com\/\\w+",
  7961. 'id="button_start">',
  7962. 'File not found',
  7963. 'optional--',
  7964. //'optional--',
  7965. "//a[contains(@href,'filepi.com')]");
  7966. }
  7967. if (GM_getValue("Check_tikfile_dot_com_links", false))
  7968. {
  7969. addFileHost(
  7970. "tikfile\.com\/\\w+",
  7971. 'btn_download',
  7972. 'File Not Found|file was removed|Reason for deletion',
  7973. 'optional--',
  7974. //'optional--',
  7975. "//a[contains(@href,'tikfile.com')]");
  7976. }
  7977. if (GM_getValue("Check_cloudsix_dot_me_links", false))
  7978. {
  7979. addFileHost(
  7980. "cloudsix\.me\/\\w+",
  7981. 'name="method_free"',
  7982. 'File Not Found|width:500px;text-align:left;">',
  7983. 'optional--',
  7984. //'optional--',
  7985. "//a[contains(@href,'cloudsix.me')]");
  7986. }
  7987. if (GM_getValue("Check_neodrive_dot_co_links", false))
  7988. {
  7989. addFileHost(
  7990. "neodrive\.co\/\\w+",
  7991. 'btn1" id="free_download|onclick="freeDownload|id="pwd_protected">',
  7992. 'File not found|/imgs/broken.png',
  7993. 'optional--',
  7994. //'optional--',
  7995. "//a[contains(@href,'neodrive.co')]");
  7996. }
  7997. if (GM_getValue("Check_chayfile_dot_com_links", false))
  7998. {
  7999. addFileHost(
  8000. "chayfile\.com\/\\w+",
  8001. 'name="method_free"',
  8002. 'File Not Found|<h3>The file was removed by administrator</h3>',
  8003. 'optional--',
  8004. //'optional--',
  8005. "//a[contains(@href,'chayfile.com')]");
  8006. }
  8007. if (GM_getValue("Check_xfileload_dot_com_links", false))
  8008. {
  8009. addFileHost(
  8010. "xfileload\.com\/\\w+",
  8011. 'Filename:|Имя файла:|Dateiname:|nom de fichier :|اسم الملف:|Dosya AdД±|Nazwa:|Nombre de fichero:|NamaFile:|Bestandsnaam:|שם קובץ:"',
  8012. '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..|הקובץ שחיפשת לא נמצא.',
  8013. 'optional--',
  8014. //'optional--',
  8015. "//a[contains(@href,'xfileload.com')]");
  8016. }
  8017. if (GM_getValue("Check_rockfile_dot_eu_links", false))
  8018. {
  8019. addFileHost(
  8020. "rockfile\.eu\/\\w+",
  8021. 'You have requested:',
  8022. 'The file you were looking for could not be found, sorry for any inconvenience.',
  8023. 'optional--',
  8024. //'optional--',
  8025. "//a[contains(@href,'rockfile.eu')]");
  8026. }
  8027. if (GM_getValue("Check_24uploading_dot_com_links", false))
  8028. {
  8029. addFileHost(
  8030. "24uploading\.com\/\\w+",
  8031. 'File:|Download Speed:',
  8032. '<b>File Not Found</b>|file was removed',
  8033. 'optional--',
  8034. //'optional--',
  8035. "//a[contains(@href,'24uploading.com')]");
  8036. }
  8037. if (GM_getValue("Check_tusfiles_dot_net_links", false))
  8038. {
  8039. addFileHost(
  8040. "tusfiles\.net\/\\w+",
  8041. 'i/icon/dll.png"|>Start download<br',
  8042. 'no longer available<|i/ino.png"',
  8043. 'optional--',
  8044. //'optional--',
  8045. "//a[contains(@href,'tusfiles.net')]");
  8046. }
  8047. if (GM_getValue("Check_jumbofile_dot_net_links", false))
  8048. {
  8049. addFileHost(
  8050. "jumbofile\.net\/\\w+",
  8051. 'button" class="" value="Free',
  8052. 'This File Was Deleted',
  8053. 'optional--',
  8054. //'optional--',
  8055. "//a[contains(@href,'jumbofile.net')]");
  8056. }
  8057. if (GM_getValue("Check_ozofiles_dot_com_links", false))
  8058. {
  8059. addFileHost(
  8060. "ozofiles\.com\/\\w+",
  8061. 'button" value="Free',
  8062. 'File Not Found|width:500px;text-align:left;">|File Deleted',
  8063. 'optional--',
  8064. //'optional--',
  8065. "//a[contains(@href,'ozofiles.com')]");
  8066. }
  8067. if (GM_getValue("Check_loudupload_dot_net_links", false))
  8068. {
  8069. addFileHost(
  8070. "loudupload\.net\/\\w+",
  8071. 'value="Get Links',
  8072. 'File Not Found',
  8073. 'optional--',
  8074. //'optional--',
  8075. "//a[contains(@href,'loudupload.net')]");
  8076. }
  8077. if (GM_getValue("Check_rapidsonic_dot_com_links", false))
  8078. {
  8079. addFileHost(
  8080. "(rapidsonic|fileparadox)\\.com\/\\w+",
  8081. 'method_free" id="submit_btn|<h4><i class="icon_document_alt"></i>Download File</h4>',
  8082. '>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">',
  8083. 'optional--',
  8084. //'optional--',
  8085. "//a[contains(@href,'rapidsonic') or contains(@href,'3files.net/') or contains(@href,'fileparadox.com')]");
  8086. }
  8087. if (GM_getValue("Check_krotix_dot_net_links", false))
  8088. {
  8089. addFileHost(
  8090. "krotix\.net\/\\w+",
  8091. 'btn btn-warning|btn-free',
  8092. 'pageErrors|This File has been removed',
  8093. 'content="Scheduled Maintenance',
  8094. //'optional--',
  8095. "//a[contains(@href,'krotix.net')]");
  8096. }
  8097. if (GM_getValue("Check_userscloud_dot_com_links", false))
  8098. {
  8099. addFileHost(
  8100. "userscloud\.com\/\\w+",
  8101. 'btn_download',
  8102. '>Server OFFLINE|background:#D3D3D3;border-bottom:1px solid #BBB;font:bold 13px Verdana;padding:3px;">',
  8103. 'optional--',
  8104. //'optional--',
  8105. "//a[contains(@href,'userscloud.com')]");
  8106. }
  8107. if (GM_getValue("Check_kumpulbagi_dot_com_links", false))
  8108. {
  8109. addFileHost(
  8110. "kumpulbagi\.com\/\\w+",
  8111. 'class="button download',
  8112. 'internal server error',
  8113. 'optional--',
  8114. //'optional--',
  8115. "//a[contains(@href,'kumpulbagi.com')]");
  8116. }
  8117. if (GM_getValue("Check_faststore_dot_org_links", false))
  8118. {
  8119. addFileHost(
  8120. "faststore\.org\/\\w+",
  8121. 'name="method_free',
  8122. 'File Not Found',
  8123. 'optional--',
  8124. //'optional--',
  8125. "//a[contains(@href,'faststore.org')]");
  8126. }
  8127. if (GM_getValue("Check_prefiles_dot_com_links", false))
  8128. {
  8129. addFileHost(
  8130. "prefiles\.com\/\\w+",
  8131. 'id="method_free',
  8132. 'File not Found',
  8133. 'optional--',
  8134. //'optional--',
  8135. "//a[contains(@href,'prefiles.com')]");
  8136. }
  8137. if (GM_getValue("Check_doraupload_dot_com_links", false))
  8138. {
  8139. addFileHost(
  8140. "doraupload\.com\/\\w+",
  8141. 'btn_download',
  8142. 'class="error-code|Could Not Be Found',
  8143. 'optional--',
  8144. //'optional--',
  8145. "//a[contains(@href,'doraupload.com')]");
  8146. }
  8147. if (GM_getValue("Check_openload_dot_io_links", false))
  8148. {
  8149. addFileHost(
  8150. "openload\.io\/\\w+",
  8151. 'btn btn-primary|class="count">',
  8152. 'class="jumbotron">|We are sorry',
  8153. 'optional--',
  8154. //'optional--',
  8155. "//a[contains(@href,'openload.io')]");
  8156. }
  8157. if (GM_getValue("Check_uploads_dot_xxx_links", false))
  8158. {
  8159. addFileHost(
  8160. "uploads\.xxx\/\\w+",
  8161. 'downoadForFree',
  8162. 'File not found',
  8163. 'optional--',
  8164. //'optional--',
  8165. "//a[contains(@href,'uploads.xxx')]");
  8166. }
  8167. if (GM_getValue("Check_zxcfiles_dot_com_links", false))
  8168. {
  8169. addFileHost(
  8170. "zxcfiles\.com\/\\w+",
  8171. 'class="downloadbtn',
  8172. 'File Not Found',
  8173. 'optional--',
  8174. //'optional--',
  8175. "//a[contains(@href,'zxcfiles.com')]");
  8176. }
  8177. if (GM_getValue("Check_up07_dot_net_links", false))
  8178. {
  8179. addFileHost(
  8180. "up07\.net\/\\w+",
  8181. 'name="method_free',
  8182. 'File Not Found',
  8183. 'optional--',
  8184. //'optional--',
  8185. "//a[contains(@href,'up07.net')]");
  8186. }
  8187. if (GM_getValue("Check_fileupload_dot_pw_links", false))
  8188. {
  8189. addFileHost(
  8190. "fileupload\.pw\/\\w+",
  8191. 'value="Free"',
  8192. 'File Not Found',
  8193. 'optional--',
  8194. //'optional--',
  8195. "//a[contains(@href,'fileupload.pw')]");
  8196. }
  8197. if (GM_getValue("Check_4upld_dot_com_links", false))
  8198. {
  8199. addFileHost(
  8200. "4upld\.com\/\\w+",
  8201. 'alt="Download Now"|content="Download file">|btn-free-element',
  8202. '<title>Error|content="error|File not found',
  8203. 'optional--',
  8204. //'optional--',
  8205. "//a[contains(@href,'4upld.com')]");
  8206. }
  8207. if (GM_getValue("Check_newfileland_dot_com_links", false))
  8208. {
  8209. addFileHost(
  8210. "newfileland\.com\/\\w+",
  8211. 'name="method_free',
  8212. 'File Not Found',
  8213. 'optional--',
  8214. //'optional--',
  8215. "//a[contains(@href,'newfileland.com')]");
  8216. }
  8217. if (GM_getValue("Check_swoopshare_dot_com_links", false))
  8218. {
  8219. addFileHost(
  8220. "(?:.swoopshare)\\.com\/\\w+",
  8221. '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',
  8222. '<input type="file" name="f"',
  8223. 'optional--',
  8224. //'optional--',
  8225. "//a[contains(@href,'swoopshare.com')]"
  8226. );
  8227. }
  8228. if (GM_getValue("Check_cloudshares_dot_net_links", false))
  8229. {
  8230. addFileHost(
  8231. "cloudshares\.net\/\\w+",
  8232. '"method_free|"Low Speed Download|submit" name="go',
  8233. 'Not Found|"width:500px;text-align:left;">|No such file exist',
  8234. 'optional--',
  8235. //'optional--',
  8236. "//a[contains(@href,'cloudshares.net')]"
  8237. );
  8238. }
  8239. if (GM_getValue("Check_allmyvideos_dot_net_links", false))
  8240. {
  8241. addFileHost(
  8242. "allmyvideos\.net\/\\w+",
  8243. 'Continue to Video',
  8244. 'File Not Found|class="err">Removed for',
  8245. 'optional--',
  8246. //'optional--',
  8247. "//a[contains(@href,'allmyvideos.net')]"
  8248. );
  8249. }
  8250. if (GM_getValue("Check_vodlocker_dot_com_links", false))
  8251. {
  8252. addFileHost(
  8253. "vodlocker\.com\/\\w+",
  8254. 'Proceed to video',
  8255. 'Not Found',
  8256. 'optional--',
  8257. //'optional--',
  8258. "//a[contains(@href,'vodlocker.com')]"
  8259. );
  8260. }
  8261. if (GM_getValue("Check_vidbull_dot_com_links", false))
  8262. {
  8263. addFileHost(
  8264. "vidbull\.com\/\\w+",
  8265. 'Verifying Video Request',
  8266. 'File Not Found',
  8267. 'optional--',
  8268. //'optional--',
  8269. "//a[contains(@href,'vidbull.com')]");
  8270. }
  8271. if (GM_getValue("Check_novamov_dot_com_links", false))
  8272. {
  8273. addFileHost(
  8274. "novamov\.com\/\\w+",
  8275. 'For version detection',
  8276. 'file no longer exists',
  8277. 'optional--',
  8278. //'optional--',
  8279. "//a[contains(@href,'novamov.com')]"
  8280. );
  8281. }
  8282. if (GM_getValue("Check_filehoot_dot_com_links", false))
  8283. {
  8284. addFileHost(
  8285. "filehoot\.com\/\\w+",
  8286. 'Continue to watch',
  8287. 'File Not Found',
  8288. 'optional--',
  8289. //'optional--',
  8290. "//a[contains(@href,'filehoot.com')]"
  8291. );
  8292. }
  8293. if (GM_getValue("Check_stagevu_dot_com_links", false))
  8294. {
  8295. addFileHost(
  8296. "stagevu\.com\/\\w+",
  8297. 'Video Info',
  8298. 'No video with the provided',
  8299. 'optional--',
  8300. //'optional--',
  8301. "//a[contains(@href,'stagevu.com')]"
  8302. );
  8303. }
  8304. if (GM_getValue("Check_cloudtime_dot_to_links", false))
  8305. {
  8306. addFileHost(
  8307. "cloudtime\.to\/\\w+",
  8308. 'Download the video',
  8309. 'no longer exists',
  8310. 'optional--',
  8311. //'optional--',
  8312. "//a[contains(@href,'cloudtime.to')]"
  8313. );
  8314. }
  8315. if (GM_getValue("Check_streamin_dot_to_links", false))
  8316. {
  8317. addFileHost(
  8318. "streamin\.to\/\\w+",
  8319. 'id="btn_download',
  8320. 'Not Found|Copyright Infringement|File Deleted',
  8321. 'optional--',
  8322. //'optional--',
  8323. "//a[contains(@href,'streamin.to')]"
  8324. );
  8325. }
  8326. if (GM_getValue("Check_videoweed_dot_es_links", false))
  8327. {
  8328. addFileHost(
  8329. "videoweed\.es\/\\w+",
  8330. 'version detection',
  8331. 'no longer exists',
  8332. 'optional--',
  8333. //'optional--',
  8334. "//a[contains(@href,'videoweed.es')]"
  8335. );
  8336. }
  8337. if (GM_getValue("Check_nowvideo_dot_sx_links", false))
  8338. {
  8339. addFileHost(
  8340. "nowvideo\.sx\/\\w+",
  8341. 'Download this video',
  8342. 'no longer exists',
  8343. 'optional--',
  8344. //'optional--',
  8345. "//a[contains(@href,'nowvideo.sx')]"
  8346. );
  8347. }
  8348. if (GM_getValue("Check_thevideo_dot_me_links", false))
  8349. {
  8350. addFileHost(
  8351. "thevideo\.me\/\\w+",
  8352. 'Upgrade your account|Proceed to video',
  8353. 'File Not Found',
  8354. 'optional--',
  8355. //'optional--',
  8356. "//a[contains(@href,'thevideo.me')]"
  8357. );
  8358. }
  8359. if (GM_getValue("Check_gorillavid_dot_in_links", false))
  8360. {
  8361. addFileHost(
  8362. "gorillavid\.in\/\\w+",
  8363. 'Wait 5 seconds',
  8364. 'File Not Found',
  8365. 'optional--',
  8366. //'optional--',
  8367. "//a[contains(@href,'gorillavid.in')]"
  8368. );
  8369. }
  8370. if (GM_getValue("Check_thefile_dot_me_links", false))
  8371. {
  8372. addFileHost(
  8373. "thefile\.me\/\\w+",
  8374. 'Choose free or',
  8375. '',
  8376. 'optional--',
  8377. //'optional--',
  8378. "//a[contains(@href,'thefile.me')]"
  8379. );
  8380. }
  8381. if (GM_getValue("Check_vidzi_dot_tv_links", false))
  8382. {
  8383. addFileHost(
  8384. "vidzi\.tv\/\\w+",
  8385. 'video-embed-modal row',
  8386. 'File Not Found|file was deleted',
  8387. 'optional--',
  8388. //'optional--',
  8389. "//a[contains(@href,'vidzi.tv')]"
  8390. );
  8391. }
  8392. if (GM_getValue("Check_filenuke_dot_com_links", false))
  8393. {
  8394. addFileHost(
  8395. "filenuke\.com\/\\w+",
  8396. 'Download File',
  8397. 'Earn with us',
  8398. 'optional--',
  8399. //'optional--',
  8400. "//a[contains(@href,'filenuke.com')]"
  8401. );
  8402. }
  8403. if (GM_getValue("Check_vidto_dot_me_links", false))
  8404. {
  8405. addFileHost(
  8406. "vidto\.me\/\\w+",
  8407. 'Proceed to video',
  8408. 'Not Found',
  8409. 'optional--',
  8410. //'optional--',
  8411. "//a[contains(@href,'vidto.me')]"
  8412. );
  8413. }
  8414. if (GM_getValue("Check_vidspot_dot_net_links", false))
  8415. {
  8416. addFileHost(
  8417. "vidspot\.net\/\\w+",
  8418. 'Duration',
  8419. 'Removed for',
  8420. 'optional--',
  8421. //'optional--',
  8422. "//a[contains(@href,'vidspot.net')]"
  8423. );
  8424. }
  8425. if (GM_getValue("Check_sharesix_dot_com_links", false))
  8426. {
  8427. addFileHost(
  8428. "(?:sharesix\\.com|sharesix\\.net)\/\\w+",
  8429. 'Download File',
  8430. 'File Not Found',
  8431. 'optional--',
  8432. //'optional--',
  8433. "//a[contains(@href,'sharesix.com') or contains(@href,'sharesix.net/')]"
  8434. );
  8435. }
  8436. if (GM_getValue("Check_movpod_dot_in_links", false))
  8437. {
  8438. addFileHost(
  8439. "movpod\.in\/\\w+",
  8440. 'Continue',
  8441. 'File Not Found',
  8442. 'optional--',
  8443. //'optional--',
  8444. "//a[contains(@href,'movpod.in')]"
  8445. );
  8446. }
  8447. if (GM_getValue("Check_down4files_dot_com_links", false))
  8448. {
  8449. addFileHost(
  8450. "down4files\.com\/\\w+",
  8451. 'down_table.png',
  8452. 'style="color:#d33|Error</td>|width:500px;text-align:left;">',
  8453. 'optional--',
  8454. //'optional--',
  8455. "//a[contains(@href,'down4files.com')]"
  8456. );
  8457. }
  8458. if (GM_getValue("Check_storefiles_dot_co_links", false))
  8459. {
  8460. addFileHost(
  8461. "storefiles\.co\/\\w+",
  8462. 'btn_download',
  8463. 'No such file|>Error<|mqmaintitle">',
  8464. 'optional--',
  8465. //'optional--',
  8466. "//a[contains(@href,'storefiles.co')]"
  8467. );
  8468. }
  8469. if (GM_getValue("Check_filehost_dot_pw_links", false))
  8470. {
  8471. addFileHost(
  8472. "filehost\.pw\/\\w+",
  8473. 'name="method_free',
  8474. '>Error<|style="color:#d33;">|No such file|FILE NOT FOUND',
  8475. 'optional--',
  8476. //'optional--',
  8477. "//a[contains(@href,'filehost.pw')]"
  8478. );
  8479. }
  8480.  
  8481. }
  8482. //start here
  8483.  
  8484. //hosts with direct download, so they must be requested for headers only
  8485. function initFileHostsHeadersOnly()
  8486. {
  8487. function addFileHostHeadersOnly(linkRegex, isAliveRegex, isDeadRegex, xpathEx, ispremRegex)
  8488. {
  8489. var host = new Array(5);
  8490. host[0] = linkRegex;
  8491. host[1] = isAliveRegex;
  8492. host[2] = isDeadRegex;
  8493. host[3] = xpathEx;
  8494. host[4] = ispremRegex;
  8495. http_file_hosts_headers_only.push(host);
  8496. }
  8497. if (GM_getValue("Check_uloziste_dot_com_links", false))
  8498. {
  8499. addFileHostHeadersOnly(
  8500. "(?:|files\\.)uloziste\\.com\/\\w+\/\\w+",
  8501. 'Connection: Keep-Alive',
  8502. 'Content-Length: 3857',
  8503. "//a[contains(@href,'uloziste.com')]"
  8504. )
  8505. }
  8506. if (GM_getValue("Check_adrive_dot_com_links", false))
  8507. {
  8508. addFileHostHeadersOnly(
  8509. "adrive\\.com\/public\/\\w+",
  8510. 'Connection: keep-alive',
  8511. 'orig_ref=deleted',
  8512. "//a[contains(@href,'adrive.com')]"
  8513. )
  8514. }
  8515. if (GM_getValue("Check_myupload_dot_dk_links", false))
  8516. {
  8517. addFileHostHeadersOnly(
  8518. "myupload\\.dk\/showfile\/\\w+",
  8519. 'Expires:',
  8520. 'squeeze1\\s+Vary',
  8521. "//a[contains(@href,'myupload.dk/showfile')]"
  8522. )
  8523. }
  8524. }
  8525. //CustomRules
  8526. //functions add...Host copied here
  8527. function addObsoleteHost(linkRegex, xpathEx)
  8528. {
  8529. var host = new Array(2);
  8530. host[0] = linkRegex;
  8531. host[1] = xpathEx;
  8532. http_file_hosts_obsolete.push(host);
  8533. }
  8534. function addFileHost(linkRegex, isAliveRegex, isDeadRegex, isUnavaRegex, xpathEx, tryLoop, ispremRegex)
  8535. {
  8536. var host = new Array(7);
  8537. host[0] = linkRegex;
  8538. host[1] = isAliveRegex;
  8539. host[2] = isDeadRegex;
  8540. host[3] = isUnavaRegex;
  8541. host[4] = xpathEx;
  8542. tryLoop ? host[5] = true : host[5] = false;
  8543. host[6] = ispremRegex;
  8544. http_file_hosts.push(host);
  8545. }
  8546. function addFileHostHeadersOnly(linkRegex, isAliveRegex, isDeadRegex, xpathEx, ispremRegex)
  8547. {
  8548. var host = new Array(5);
  8549. host[0] = linkRegex;
  8550. host[1] = isAliveRegex;
  8551. host[2] = isDeadRegex;
  8552. host[3] = xpathEx;
  8553. host[4] = ispremRegex;
  8554. http_file_hosts_headers_only.push(host);
  8555. }
  8556. //takes a fully built rules array and adds the rules to WARLC
  8557. function applyCustomRules(customRules)
  8558. {
  8559. if (!customRules) return;
  8560. var rules, r, i;
  8561. rules = customRules.rules;
  8562. for (i = 0 ; i < rules.length ; i++)
  8563. {
  8564. r = rules[i];
  8565. if (r.enabled)
  8566. {
  8567. switch (r.type)
  8568. {
  8569. case 'single':
  8570. addFileHost(r.urlregex, r.aliveregex, r.deadregex, r.unavaregex, r.premregex||'', r.xpath);
  8571. break;
  8572. case 'headers':
  8573. addFileHostHeadersOnly(r.urlregex, r.aliveregex, r.deadregex, r.xpath, r.premregex);
  8574. break;
  8575. case 'obsolete':
  8576. addObsoleteHost(r.urlregex, r.xpath)
  8577. break;
  8578. }
  8579. }
  8580. }
  8581. }
  8582.  
  8583.  
  8584. function initFileHostsCustom()
  8585. {
  8586. if (Custom_rules && Custom_rules_text)
  8587. {
  8588. var msg = '';
  8589. if (newVersion)
  8590. msg = 'New version of W.A.R. Links Checker detected.\n\n';
  8591. else if ((now - last_custom_rules_nag) >= 60*24*60*60*1000)
  8592. msg = '60 or more days have passed since this notification.\n\n';
  8593. if (msg && /^\s*@customrule(?:_obsolete)?\s/mi.test(Custom_rules_text))
  8594. {
  8595. GM_setValue('last_custom_rules_nag', ''+new Date().getTime()); //reset nag
  8596. msg +=
  8597. 'Either new version of W.A.R. Links Checker detected or 60 days passed since this notify.\n'+
  8598. 'Please check that your custom rules haven\'t been built into WARLC.\n'+
  8599. 'If not, please share them with us so they can be included in the next version! Built-in rules are always preferred.\n\n'+
  8600. 'We apologize for this annoying notification, but there is a reason to this.\n'+
  8601. 'Ideally, WARLC would check which of your custom rules have been included and disable them. '+
  8602. 'Unfortunately, there is no easy way to do that, but we don\'t want everybody to just use their custom rules '+
  8603. 'forever without ever checking if the built-in ones have been added/fixed. This is currently the only way '+
  8604. 'to remind you that you should try built-in rules, report missing/non-working ones and share your custom rules.';
  8605. setTimeout(function(){alert(msg)},0);
  8606. }
  8607. var customRules = parseCustomRules(Custom_rules_text);
  8608. if (customRules.warning || customRules.error)
  8609. alert('There were ' + customRules.error + ' errors, ' + customRules.warning + ' warnings, ' +
  8610. customRules.note + ' notes found during Custom Rules processing.\n' + customRules.rules.length + ' valid rules found.\n\n' +
  8611. JSON.stringify(customRules.info, null, ' '));
  8612. applyCustomRules(customRules);
  8613. }
  8614. }
  8615. //end of CustomRules processing
  8616.  
  8617.  
  8618.  
  8619. } //end of function start
  8620.  
  8621.  
  8622.  
  8623. function initClipBoardTools()
  8624. {
  8625. unsafeWindow.copyToClipboard = function(text)
  8626. {
  8627. try
  8628. {
  8629. this.netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
  8630.  
  8631. var str = Components.classes["@mozilla.org/supports-string;1"].
  8632. createInstance(Components.interfaces.nsISupportsString);
  8633. if (!str) return false;
  8634.  
  8635. str.data = text;
  8636.  
  8637. var trans = Components.classes["@mozilla.org/widget/transferable;1"].
  8638. createInstance(Components.interfaces.nsITransferable);
  8639. if (!trans) return false;
  8640.  
  8641. trans.addDataFlavor("text/unicode");
  8642. trans.setTransferData("text/unicode", str, text.length * 2);
  8643.  
  8644. var clipid = Components.interfaces.nsIClipboard;
  8645. var clip = Components.classes["@mozilla.org/widget/clipboard;1"].getService(clipid);
  8646. if (!clip) return false;
  8647.  
  8648. clip.setData(trans, null, clipid.kGlobalClipboard);
  8649. } catch (e) {
  8650. GM_log("Error copyToClipboard : " + e);
  8651. alert(e + "\n\nsigned.applets.codebase_principal_support must be set true in about:config")
  8652. }
  8653. }
  8654. }
  8655.  
  8656.  
  8657.  
  8658. //CustomRules
  8659.  
  8660. function escapeRegex(str)
  8661. {
  8662. return str.replace(/[\-\[\]{}()*+?.,\\\^$|#]/g, "\\$&");
  8663. }
  8664.  
  8665.  
  8666. //called internally from parseCustomRules.
  8667. //expected: rule object with array fields baseurl, alivematch etc, everything must already be checked for input errors
  8668. //returns the rule object with string fields urlregex, xpath, aliveregex etc built from the arrays
  8669. function makeCustomRule(rule)
  8670. {
  8671. function makeMatchRegex(arrmatch)
  8672. {
  8673. return escapeRegex(arrmatch.join('\n'))
  8674. .replace(/ +/g, '\\s+') //two or more spaces to any whitespace
  8675. .replace(/\n/g,'|'); //join together
  8676. }
  8677. if (rule.alivematch) rule.aliveregex = makeMatchRegex(rule.alivematch);
  8678. if (rule.deadmatch) rule.deadregex = makeMatchRegex(rule.deadmatch);
  8679. if (rule.unavamatch) rule.unavaregex = makeMatchRegex(rule.unavamatch);
  8680. if (rule.premmatch) rule.premregex = makeMatchRegex(rule.premmatch);
  8681. if (rule.baseurl)
  8682. {
  8683. var i, m, urlregex = [], xpath = [], len = rule.baseurl.length;
  8684. for (i = 0 ; i < len ; i++)
  8685. {
  8686. m = rule.baseurl[i].match(/^([a-z0-9\.-]+)(?: +([a-z \.]+) +)?(\/.*)$/);
  8687. if (m[2]) //baseurl in the form: example. com co.uk net /xxx
  8688. {
  8689. 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'])
  8690. urlregex.push( (m[1] + '(?:'+ m[2].replace(/\s+/g,'|') + ')').replace(/\./g,'\\.') + escapeRegex(m[3]) + '.'); //urlregex.push('example\\.(?:com|co\\.uk|net)/xxx.')
  8691. }
  8692. else //baseurl in the form: example.com/xxx
  8693. {
  8694. xpath.push(m[0]);
  8695. urlregex.push(escapeRegex(m[0]) + '.');
  8696. }
  8697. }
  8698. rule.xpath = "//a[contains(@href,'" + xpath.join("') or contains(@href,'") + "')]";
  8699. rule.urlregex = '(?:[a-z0-9\\.-]+\\.)?(?:' + urlregex.join('|') + ')';
  8700. }
  8701. return rule;
  8702. } //function makeCustomRule
  8703.  
  8704.  
  8705. /*
  8706. Takes a string containing custom link checking rules.
  8707. Returns an object with fields:
  8708. info - contains notes, warnings and errors found during parsing
  8709. rules - the array of custom rules
  8710. note, warning, error - number of each of them found during parsing
  8711. Format of the input string:
  8712. One command per line. Command format: @keyword parameter
  8713. Keywords:
  8714. @customrule, @customrule_obsolete, @customrule_headers - begin a new custom rule. Parameter: name of the rule
  8715. @#customrule, @#customrule_obsolete, @#customrule_headers - begin and parse this custom rule, but don't use it. Parameter: name of the rule
  8716. These keywords can be multiple (any of them will work):
  8717. @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...)
  8718. @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+
  8719. @alivelink, @deadlink - example links
  8720. @baseurl is always required, @alivematch and @deadmatch are required except for obsolete. @unavamatch is ignored for obsolete. @*link is optional.
  8721. Lines starting with // and empty lines are ignored.
  8722. Invalid parameters generate errors and those lines are skipped.
  8723. Other lines generate warnings, but are otherwise ignored (also those before the first @customrule line or inside a rule with invalid name).
  8724. Example:
  8725. @customrule filehost
  8726. @baseurl filehost.com/download/
  8727. @baseurl filehost2. com net /d?=
  8728. @alivematch id="download">
  8729. @deadmatch File not found
  8730. @deadmatch File deleted
  8731. */
  8732. function parseCustomRules(rulesStr)
  8733. {
  8734. var linenum, customRules = {'info': [], 'rules': [], 'note': 0, 'warning': 0, 'error': 0};
  8735. function addInfo(type, msg, ln){
  8736. customRules.info.push({'linenum':(ln===undefined ? linenum+1 : ln+1), 'type':type, 'msg':msg});
  8737. customRules[type]++;
  8738. }
  8739. var lines = rulesStr.match(/^(.*)$/gm); //split into array of lines
  8740. if (!lines) return null;
  8741. lines.push('@#customrule _'); //to save the last rule
  8742. var m, linecount = lines.length;
  8743. var keyword, param, constr, rule, err;
  8744. var TLD = '[a-z]{2,7}(?:\\.[a-z]{2,7})?';
  8745. var TLDorTLDlist = '(?:'+TLD+'| '+TLD+'(?: '+TLD+'){0,9} )'; //TLD or space-separated list of TLDs
  8746. var baseurlRE = new RegExp('^([a-z0-9-]{1,30}(?:\\.[a-z0-9-]{1,30}){0,2}\\.)'+TLDorTLDlist+'(/[^\'"\s\$]{0,50})$', 'i');
  8747. var constraints = {
  8748. 'baseurl': {
  8749. 'single': {'min': 1, 'max': 10, 'paramRE': baseurlRE},
  8750. 'headers': {'min': 1, 'max': 10, 'paramRE': baseurlRE},
  8751. 'obsolete': {'min': 1, 'max': 10, 'paramRE': baseurlRE}},
  8752. 'alivematch': {
  8753. 'single': {'min': 1, 'max': 10, 'paramRE': null},
  8754. 'headers': {'min': 1, 'max': 10, 'paramRE': null}},
  8755. 'deadmatch': {
  8756. 'single': {'min': 1, 'max': 10, 'paramRE': null},
  8757. 'headers': {'min': 1, 'max': 10, 'paramRE': null}},
  8758. 'unavamatch': {
  8759. 'single': {'min': 0, 'max': 10, 'paramRE': null}},
  8760. 'alivelink': {
  8761. 'single': {'min': 0, 'max': 10, 'paramRE': null},
  8762. 'headers': {'min': 0, 'max': 10, 'paramRE': null}},
  8763. 'deadlink': {
  8764. 'single': {'min': 0, 'max': 10, 'paramRE': null},
  8765. 'headers': {'min': 0, 'max': 10, 'paramRE': null},
  8766. 'obsolete': {'min': 0, 'max': 10, 'paramRE': null}}
  8767. };
  8768. for (linenum = 0 ; linenum < linecount ; linenum++)
  8769. {
  8770. //capturing groups: 1 23 4 5 6
  8771. m = lines[linenum].match(/^\s*(?:(\/\/.*)|@((#?)(customrule)(?:_(headers|obsolete))?|baseurl|alivematch|deadmatch|unavamatch|alivelink|deadlink)\s+(.+))?$/i);
  8772. if (m)
  8773. {
  8774. if (m[1] || !m[2])
  8775. continue; // ignore empty lines and lines starting with //
  8776. keyword = (m[4] || m[2]).toLowerCase();
  8777. param = m[6];
  8778. if (keyword == 'customrule')
  8779. {
  8780. //save the current rule if all required fields are provided
  8781. if (rule)
  8782. {
  8783. err = false;
  8784. $.each(constraints, function(kw, constraint){
  8785. var l, constr = constraint[rule.type];
  8786. if (constr)
  8787. {
  8788. l = rule[kw] ? rule[kw].length : 0;
  8789. if (l < constr.min || l > constr.max)
  8790. {
  8791. 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);
  8792. err = true;
  8793. }
  8794. }
  8795. });
  8796. if (!err)
  8797. customRules.rules.push(makeCustomRule(rule));
  8798. }
  8799. //start a new rule
  8800. if (/^[\w\.-]{1,30}$/.test(param)) //valid name?
  8801. {
  8802. rule = {
  8803. 'enabled': !m[3],
  8804. 'type': m[5] ? m[5].toLowerCase() : 'single',
  8805. 'name': param
  8806. };
  8807. }
  8808. else
  8809. {
  8810. addInfo('error', 'Invalid rule name. Cannot start a new rule definition.');
  8811. rule = null;
  8812. }
  8813. }
  8814. else //good line format, but keyword other than customrule
  8815. {
  8816. if (!rule)
  8817. {
  8818. addInfo('warning', 'Command outside @CUSTOMRULE definiton. Line skipped.');
  8819. continue;
  8820. }
  8821. if (constraints[keyword])
  8822. {
  8823. constr = constraints[keyword][rule.type];
  8824. if (constr)
  8825. {
  8826. if (constr.paramRE && !constr.paramRE.test(param))
  8827. {
  8828. addInfo('warning', 'Invalid @' + keyword.toUpperCase() + ' parameter. Line Skipped.');
  8829. continue;
  8830. }
  8831. }
  8832. else
  8833. {
  8834. addInfo('note', '@' + keyword.toUpperCase() + ' not applicable for type ' + rule.type.toUpperCase() + '. Line skipped.');
  8835. continue;
  8836. }
  8837. }
  8838. //line OK, save
  8839. rule[keyword] ? rule[keyword].push(param) : rule[keyword] = [param];
  8840. }
  8841. } //if (m)
  8842. else
  8843. addInfo('warning', 'Unknown line format. Line skipped.');
  8844. } //for loop
  8845. return customRules;
  8846. } //function parseCustomRules

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址