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

detects live, dead and premium links.

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

  1. // ==UserScript==
  2. // @name W.A.R. Links Checker Customized Premium Link Version
  3. // @description detects live, dead and premium links.
  4. // @details this script automatically checks links from 650+ filehosts. For Firefox, Chrome, Opera, Safari.
  5. // @namespace premium version
  6. // @version 1.1.6.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 <a href="http://www.mentalps.5gbfree.com/viewtopic.php?f=2&t=6>mental</a>
  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.mentalps.5gbfree.com
  25. // @namespace http://www.mentalps.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. "4upld.com",
  33. "swoopshare.com",
  34. "newfileland.com",
  35. "2shared.com",
  36. "fileupload.pw",
  37. "zxcfiles.com",
  38. "up07.net",
  39. "4shared.com",
  40. "adrive.com",
  41. "aisfile.com",
  42. "hexupload.com",
  43. "bezvadata.cz",
  44. "burnupload.com|burnupload.ihiphop.com",
  45. "xkeepfile.com|Gamesena.com",
  46. // "firedrive.com",
  47. "usersfiles.com",
  48. "pan.baidu.com",
  49. "radicalshare.com",
  50. "cramit.in|cramitin.net",
  51. "datei.to",
  52. "daten-hoster.de|filehosting.org|xtraupload.de",
  53. "demo.ovh.eu",
  54. "depositfiles.com",
  55. "divshare.com",
  56. "easy-share.com|crocko.com",
  57. "easybytez.com",
  58. "edisk.cz",
  59. "euroshare.eu",
  60. "file-upload.net",
  61. "yadi.sk",
  62. "ryushare.com",
  63. "wizupload.com",
  64. "fastshare.cz",
  65. "filefactory.com",
  66. "share.vnn.vn",
  67. "yunpan.cn",
  68. "gulfup.com",
  69. "tropicshare.com",
  70. "cloudzilla.to",
  71. "inclouddrive.com",
  72. "fileflyer.com",
  73. "filerio.com|filekeen.com",
  74. "up.4share.vn",
  75. "upfile.vn",
  76. "datafilehost.com",
  77. "fileband.com",
  78. "worldbytez.com",
  79. "files.mail.ru",
  80. "filepost.com|fp.io",
  81. "filesflash.com",
  82. "box.com",
  83. "box.net",
  84. "goldbytez.com",
  85. "sdilej.cz",
  86. "ex-load.com",
  87. "2drive.net",
  88. "filesmonster.com",
  89. "filestore.to",
  90. "freakshare.net",
  91. "hulkload.com",
  92. "filedropper.com",
  93. "free-uploading.com",
  94. "gamefront.com|filefront.com",
  95. "gettyfile.ru",
  96. "gigapeta.com",
  97. "gigasize.com",
  98. "hellshare.com",
  99. "hellspy.com",
  100. "hitfile.net",
  101. "hostuje.net",
  102. "freefilehosting.net",
  103. "free.fr",
  104. "hulkshare.com",
  105. "hyperfileshare.com",
  106. "filecloud.io|ifile.it",
  107. "ifolder.ru",
  108. "jumbofiles.com",
  109. "uploadrocket.net",
  110. "lafiles.com",
  111. "leteckaposta.cz|sharegadget.com",
  112. "letitbit.net",
  113. "load.to",
  114. "mediafire.com",
  115. "megafileupload.com",
  116. "megashares.com",
  117. "movshare.net",
  118. "muchshare.net",
  119. "myupload.dk",
  120. "narod.ru|narod.yandex.ru",
  121. "netload.in",
  122. "fboom.me",
  123. "fileboom.me",
  124. "openfile.ru",
  125. "partage-facile.com",
  126. "plunder.com",
  127. // "putlocker.com",
  128. "sharerapid.cz",
  129. "exclusiveloader.com",
  130. "acefile.net",
  131. "queenshare.com",
  132. "quickshare.cz",
  133. "rapidgator.net",
  134. "keep2share.com",
  135. "oboom.com",
  136. "filepi.com",
  137. "neodrive.co",
  138. "rarefile.net",
  139. "rayfile.com",
  140. "rghost.net",
  141. "sendmyway.com",
  142. "clicknupload.com",
  143. "sharemods.com",
  144. "hostr.co",
  145. "sendspace.com",
  146. "sharecash.org",
  147. "share-links.biz",
  148. "share-online.biz|egoshare.com",
  149. "megarapid.cz",
  150. "shareflare.net",
  151. "solidfiles.com",
  152. "led.wf",
  153. "lan.wf",
  154. "adlink.wf",
  155. "click.tf",
  156. "kyc.pm",
  157. "ssh.tf",
  158. "ssh.yt",
  159. "yep.pm",
  160. "stahovanizasms.cz",
  161. "tufiles.ru",
  162. "turbobit.net",
  163. "filecloud.cc",
  164. "tikfile.com",
  165. "cloudsix.me",
  166. "turboupload.com",
  167. "uloz.to|ulozto.cz|bagruj.cz|zachowajto.pl",
  168. "ulozisko.sk",
  169. "uloziste.com",
  170. "unibytes.com",
  171. "upload-il.net|przeslij.net",
  172. "uploaded.to|ul.to",
  173. "uploading.com",
  174. "chayfile.com",
  175. "rockfile.eu",
  176. "24uploading.com",
  177. "uploadspace.pl",
  178. "upnito.sk",
  179. "uptobox.com",
  180. "usaupload.net",
  181. "veehd.com",
  182. "videobb.com",
  183. "vip-file.com",
  184. "webshare.cz",
  185. "xdisk.cz",
  186. "yunfile.com|filemarkets.com",
  187. "ziddu.com",
  188. "krotix.net",
  189. "zippyshare.com",
  190. "rodfile.com",
  191. "migahost.com",
  192. "wikiupload.com",
  193. "uploadstube.de",
  194. "faststore.org",
  195. "flyfiles.net",
  196. "nowdownload.eu",
  197. "prefiles.com",
  198. "axifile.com",
  199. "rapidsonic.com|fileparadox.com",
  200. "hackerbox.org",
  201. "amonshare.com",
  202. "data.hu",
  203. "brupload.net",
  204. "userscloud.com",
  205. "netkups.com",
  206. "edoc.com",
  207. "xfileload.com",
  208. "jumbofile.net",
  209. "kumpulbagi.com",
  210. "uppit.com|up.ht",
  211. "downloadani.me",
  212. "filesabc.com",
  213. "sharebeast.com",
  214. "180upload.com",
  215. "verzend.be",
  216. "movreel.com",
  217. "4up.me",
  218. "extmatrix.com",
  219. "sendfiles.nl",
  220. "yourfilestore.com",
  221. "filebig.net",
  222. "nekaka.com",
  223. "file4safe.com",
  224. "tusfiles.net",
  225. "filemac.com",
  226. "idup.in",
  227. "fileswap.com",
  228. "ozofiles.com",
  229. "loudupload.net",
  230. "nosupload.com",
  231. "gboxes.com",
  232. "myvdrive.com|fileserving.com",
  233. "filesin.com",
  234. "novafile.com",
  235. "longfiles.com",
  236. "uploadhero.com",
  237. "uploadbaz.com",
  238. "bitupload.com",
  239. "indowebster.com",
  240. "superload.cz",
  241. "mafiastorage.com",
  242. "4upfiles.com",
  243. "filesmelt.com",
  244. "hellupload.com",
  245. "uploadingit.com",
  246. "stiahni.si",
  247. "sendspace.pl",
  248. "fastshare.org",
  249. "filejoker.net",
  250. "filestore.com.ua",
  251. "secureupload.eu",
  252. "rapidfileshare.net",
  253. "stiahnito.sk",
  254. "rusfolder.com",
  255. "fileover.net",
  256. "catshare.net",
  257. "anonfiles.com",
  258. "mixturecloud.com",
  259. "fileparadox.in",
  260. "filedais.com",
  261. "imdb.com",
  262. "nitroflare.com",
  263. "akafile.com",
  264. "creafile.net",
  265. "hugefiles.net",
  266. "vidxden.com",
  267. "up.top4top.net",
  268. "upload.ee",
  269. "shareplace.org",
  270. "uploadc.com",
  271. "remixshare.com",
  272. "exoshare.com",
  273. "borncash.org",
  274. "junocloud.me",
  275. "keep2share.cc",
  276. "k2s.cc",
  277. "expressleech.com",
  278. "2downloadz.com",
  279. "mightyupload.com",
  280. "uncapped-downloads.com",
  281. "anysend.com",
  282. "datafile.com",
  283. "upstore.net",
  284. "upsto.re",
  285. "speedy.sh",
  286. "sanshare.com",
  287. "kingfiles.net",
  288. "uploadhero.co",
  289. "ge.tt",
  290. "filesflash.net",
  291. "salefiles.com",
  292. "keep2s.cc",
  293. "megairon.net",
  294. "datoid.cz",
  295. "cloudstor.es",
  296. "streamfile.com",
  297. "eyesfile.ca",
  298. "filemoney.com",
  299. "uploadboy.com",
  300. "speedshare.eu",
  301. "google.com",
  302. "unlimitzone.com",
  303. "rioupload.com",
  304. "rg.to",
  305. "jumbofiles.org",
  306. "fshare.vn",
  307. "spaceforfiles.com",
  308. "up.media1fire.com",
  309. "depfile.com",
  310. "go4up.com",
  311. "dropbox.com",
  312. "redbunker.net",
  313. "divxpress.com",
  314. "mega.nz|mega.co.nz",
  315. "anafile.com",
  316. "uploadable.ch",
  317. "arabloads.com",
  318. "sharerepo.com",
  319. "sfshare.se",
  320. "files.fm",
  321. "koofile.com",
  322. "vidplay.net",
  323. "storagon.com",
  324. "doraupload.com",
  325. "openload.io",
  326. "geupload.com|lenfile.com",
  327. "uploads.xxx",
  328. ];
  329.  
  330. try
  331. {
  332. //iframes excluded
  333. if (window.top != window.self)
  334. {
  335. return;
  336. }
  337. //allHostNames sites excluded
  338. if (window.location.href.match("https?:\/\/(www\.)?[\w\.-]*(?:" +
  339. allHostNames.join("|").replace(/\./g, "\\.").replace(/-/g, "\\-") +
  340. ")"))
  341. {
  342. return;
  343. }
  344. }
  345. catch (e)
  346. {
  347. return;
  348. }
  349.  
  350. //separate alternative domains with "|" char (first name is considered being main)
  351. var allContainerNames = [
  352. "adf.ly",
  353. "linkcrypt.ws",
  354. "linksafe.me",
  355. "linksave.in",
  356. "linkto.net",
  357. "madlink.sk",
  358. "multiload.cz",
  359. "mirrorcreator.com",
  360. "ncrypt.in",
  361. "redi.re",
  362. "relink.us",
  363. "safelinking.net",
  364. "theloo.katt.it",
  365. "bit.ly",
  366.  
  367. ];
  368.  
  369. //separate alternative domains with "|" char (first name is considered being main)
  370. var allObsoleteNames = [
  371. "uloz.cz",
  372. "daj.to",
  373. "sockshare.com",
  374. "ddlstorage.com",
  375. "dataport.cz",
  376. "dizzcloud.com",
  377. "stahovadlo.cz",
  378. "shared.com",
  379. "storage.to",
  380. "putlocker.com",
  381. "lumfile.com",
  382. "lumfile.se",
  383. "lumfile.eu",
  384. "firedrive.com",
  385. "fileshare.in.ua",
  386. "filecore.co.nz",
  387. "iskladka.cz",
  388. "file-rack.com",
  389. "fast-load.net",
  390. "subory.sk",
  391. "bigandfree.com",
  392. "fileop.com",
  393. "mujsoubor.cz",
  394. "sendfile.to",
  395. "superfastfile.com",
  396. "quickyshare.com",
  397. "duckload.com",
  398. "uploadstore.net",
  399. "meinupload.com",
  400. "dualshare.com",
  401. "2xupload.to|2xupload.de",
  402. "oxedion.com",
  403. "uploadline.com",
  404. "dll.bz",
  405. "movieshare.in",
  406. "milledrive.com",
  407. "quickupload.net",
  408. "safelink.in",
  409. "metadivx.com",
  410. "divxlink.com",
  411. "uploadrack.com",
  412. "teradepot.com",
  413. "dataup.to",
  414. "upit.to",
  415. "driveway.com",
  416. "eatlime.com",
  417. "a2zuploads.com",
  418. "friendlyfiles.net",
  419. "flyfile.us",
  420. "speedyshare.com",
  421. "uploadspace.eu",
  422. "keepfile.com",
  423. "piggyshare.com",
  424. "uplly.com",
  425. "filecrown.com",
  426. "6giga.com",
  427. "uploadjockey.com",
  428. "bluehost.to",
  429. "filegu.ru",
  430. "filebase.to",
  431. "up-file.com",
  432. "xvideos.com",
  433. "ufox.com",
  434. "filebling.com",
  435. "loaded.it",
  436. "uploadcell.com",
  437. "uploadshare.cz",
  438. "mangoshare.com",
  439. "filestab.com",
  440. "crazyupload.com",
  441. "gaiafile.com",
  442. "sharejunky.com",
  443. "fileho.com",
  444. "bigandfree.com",
  445. "bigfile.in",
  446. "bigshare.eu",
  447. "dahosting.org",
  448. "digisofts.net",
  449. "file4save.com",
  450. "filechip.com",
  451. "filescloud.com",
  452. "saveqube.com",
  453. "turboshare.de",
  454. "z-upload.com",
  455. "youshare.com",
  456. "jiffyupload.com",
  457. "gigeshare.com",
  458. "datenklo.net",
  459. "upload.dj",
  460. "loadfiles.in",
  461. "upit.to",
  462. "dsfileshare.com",
  463. "sharesimple.net",
  464. "4files.net",
  465. "wooupload.com",
  466. "odsiebie.com",
  467. "filenavi.com",
  468. "3oof.com",
  469. "meshwaar.com",
  470. "maxupload.com",
  471. "share.cx",
  472. "atserver.eu",
  473. "hotfiles.ws",
  474. "esnips.com",
  475. "tuxfile.com",
  476. "file2upload.net",
  477. "filebling.com",
  478. "turboshare.com",
  479. "rarhost.com",
  480. "isharehd.com",
  481. "i741.com",
  482. "dataup.de",
  483. "fofly.com",
  484. "shareonall.com",
  485. "sexuploader.com",
  486. "megaupload.com|megavideo.com|megaporn.com|megarotic.com",
  487. "uploadhyper.com",
  488. "filespawn.com",
  489. "caizzii.com",
  490. "volnyweb.cz",
  491. "usershare.net",
  492. "filescash.net",
  493. "metahyper.com",
  494. "combozip.com",
  495. "x7.to",
  496. "uploadbox.com",
  497. "enterupload.com|flyupload.com",
  498. "filepoint.de",
  499. "mystream.to",
  500. "x-fs.com",
  501. "shareator.com",
  502. "srapid.eu",
  503. "sosame.cz",
  504. "filesdump.com",
  505. "2-klicks.de",
  506. "uploking.com",
  507. "silofiles.com",
  508. "upfile.in",
  509. "filehook.com",
  510. "uploadking.com",
  511. "uploadhere.com",
  512. "kewlshare.com",
  513. "rapidable.com",
  514. "uploadwaste.com",
  515. "filemup.com",
  516. "filesonic.com|sharingmatrix.com",
  517. "fileserve.com",
  518. "wupload.com",
  519. "skipfile.com",
  520. "smartuploader.com",
  521. "dualshare.com",
  522. "storeandserve.com",
  523. "mountfile.com",
  524. "transitfiles.com",
  525. "uploadstation.com",
  526. "filejungle.com",
  527. "shareshared.com",
  528. "quickyshare.com",
  529. "save.am",
  530. "petandrive.com",
  531. "file2box.com",
  532. "flyshare.cz",
  533. "yabadaba.ru",
  534. "cloudcache.cc",
  535. "yourfilehost.com",
  536. "jakfile.com",
  537. "kickload.com",
  538. "pyramidfiles.com",
  539. "refile.net",
  540. "zshare.net",
  541. "ddlani.me|ddlanime.com",
  542. "ftp2share.com",
  543. "fooget.com",
  544. "rapidhide.com",
  545. "gotupload.com",
  546. "mooload.com",
  547. "zupload.com",
  548. "mytempdir.com",
  549. "onionshare.com",
  550. "stahnu.to",
  551. "oron.com",
  552. "badongo.com",
  553. "filereactor.com",
  554. "filegaze.com",
  555. "4bytez.com",
  556. "1hostclick.com",
  557. "anonstream.com",
  558. "batshare.com",
  559. "bitroad.net",
  560. "brontofile.com",
  561. "cloudnxt.net",
  562. "cloudnator.com|shragle.com",
  563. "filesfrog.net",
  564. "coolshare.cz",
  565. "dotavi.com",
  566. "ezyfile.net",
  567. "file-bit.net",
  568. "filecosy.com",
  569. "fileduct.com|fileduct.net",
  570. "filefat.com",
  571. "filelaser.com",
  572. "filemashine.com",
  573. "fileserver.cc",
  574. "filetechnology.com",
  575. "fireuploads.net",
  576. "gigfiles.net",
  577. "holderfile.com",
  578. "ihostia.com",
  579. "k2files.com",
  580. "mojofile.com",
  581. "ovfile.com",
  582. "qshare.com",
  583. "shafiles.me",
  584. "sharefilehost.com",
  585. "shareupload.com",
  586. "stahuj.to",
  587. "ugotfile.com",
  588. "uploadboost.com",
  589. "fileom.com",
  590. "vidhog.com",
  591. "xfileshare.eu",
  592. "bzlink.us",
  593. "bulletupload.com",
  594. // "wizzupload.com",
  595. "bloggerarticles.com",
  596. "mojedata.sk",
  597. "sharpfile.com",
  598. "upgrand.com",
  599. "nasdilej.cz",
  600. "mediatack.cz",
  601. "share-it.to",
  602. "primeupload.com",
  603. "filebeer.info",
  604. "baberepublic",
  605. "xtu.me",
  606. "sharebase.de",
  607. "luckyshare.net",
  608. "filerobo.com",
  609. "filevelocity.com",
  610. "filezpro.com",
  611. "file4sharing.com",
  612. "cing.be",
  613. "ufile.eu",
  614. "pigsonic.com",
  615. "fileupped.com",
  616. "sharerun.com",
  617. "filesaur.com",
  618. "rapidslnare.com",
  619. "bestsharing.com",
  620. "savefiles.net",
  621. "file2share.biz",
  622. "filecache.de",
  623. "monsteruploads.eu",
  624. "b9bb.com",
  625. "aiotool.net",
  626. "jamber.info",
  627. "megaftp.com",
  628. "desiupload.net",
  629. "file27.com",
  630. "yastorage.com",
  631. "filehost.ws",
  632. "copyload.com",
  633. "venusfile.com",
  634. "aieshare.com",
  635. "terafile.co",
  636. "terafile.com",
  637. "fileza.net",
  638. "filerose.com",
  639. "squillion.com",
  640. "fileprohost.com",
  641. "bitbonus.com",
  642. "warserver.cz",
  643. "uload.to",
  644. "sharedbit.net",
  645. "megaload.it",
  646. "filewinds.com",
  647. "uploadcore.com",
  648. "syfiles.com",
  649. "eyesfile.com",
  650. "hotfile.com",
  651. "superupl.com",
  652. "oteupload.com",
  653. "henchfile.com",
  654. "filegag.com",
  655. "HenchFile.com",
  656. "filedefend.com",
  657. "share-rapid.com|rapids.cz|share-credit.cz|share-central.cz|share-ms.cz|share-net.cz|srapid.cz|share-rapid.cz",
  658. "megabitshare.com",
  659. "cloudzer.com",
  660. "asfile.com",
  661. "cloudzer.net",
  662. "clz.to",
  663. "extabit.com",
  664. "247upload.com",
  665. "2download.de",
  666. "4fastfile.com",
  667. "asixfiles.com",
  668. "berofile.com",
  669. "bigupload.com",
  670. "cepzo.com",
  671. "clouds.to",
  672. "cobrashare.sk",
  673. "coraldrive.net",
  674. "cyberlocker.ch",
  675. "czshare.com",
  676. "darkport.org",
  677. "dark-uploads.com",
  678. "davvas.com",
  679. "enigmashare.com",
  680. "erofly.cz",
  681. "fastsonic.net",
  682. "filebox.com",
  683. "filecity.net",
  684. "filedap.com",
  685. "filedino.com",
  686. "filedownloads.org",
  687. "filefolks.com",
  688. "fileking.co",
  689. "filemates.com",
  690. "files.to",
  691. "files2k.eu",
  692. "filesector.cc",
  693. "bitshare.com",
  694. "filesega.com",
  695. "filesend.net",
  696. "filestay.com",
  697. "filestrum.com",
  698. "fileuplo.de",
  699. "fileupup.com",
  700. "forunesia.com",
  701. "freeuploads.fr",
  702. "uploa.dk",
  703. "getthebit.com",
  704. "getzilla.net",
  705. "goldfile.eu",
  706. "good.com",
  707. "grupload.com",
  708. "hellfile.com",
  709. "hipfile.com",
  710. "hitfile.com",
  711. "hulkfile.eu|duckfile.net",
  712. "i-filez.com",
  713. "ifile.ws",
  714. "kupload.org",
  715. "packupload.com",
  716. "lemuploads.com",
  717. "limelinx.com",
  718. "maxshare.pl",
  719. "megarelease.org",
  720. "megashare.com",
  721. "minus.com",
  722. "mlfat4arab.com",
  723. "multishare.cz",
  724. "nirafile.com",
  725. "ok2upload.com",
  726. "peejeshare.com",
  727. "premiuns.org",
  728. "przeklej.net",
  729. "qkup.net",
  730. "rapidupload.sk",
  731. "rockdizfile.com",
  732. "rocketfile.net",
  733. "share-now.net",
  734. "share76.com",
  735. "sharebees.com",
  736. "sharefiles.co",
  737. "slingfile.com",
  738. "sms4file.com",
  739. "space4file.com",
  740. "tigershare.net",
  741. "toucansharing.com",
  742. "ubuntuone.com",
  743. "unextfiles.com",
  744. "upaj.pl",
  745. "upfile.biz",
  746. "uploadbin.net",
  747. "uploadic.com",
  748. "uploadinc.com",
  749. "uploading4u.eu",
  750. "uploadjet.net",
  751. "uploadorb.com",
  752. "upthe.net",
  753. "uptorch.com",
  754. "vidbox.yt",
  755. "videozer.com",
  756. "vreer.com",
  757. "wallobit.com",
  758. "zooupload.com",
  759. "privatefiles.com",
  760. "xerver.co",
  761. "BillionUploads.com",
  762. "rapidshare.com",
  763. "rapidshare.ru",
  764. "4savefile.com",
  765. "bayfiles.com",
  766. "bayfiles.net",
  767. "dodane.pl",
  768. "dotsemper.com",
  769. "egofiles.com",
  770. "epicshare.net",
  771. "fiberupload.net",
  772. "filemonkey.in",
  773. "filemonster.net",
  774. "filepom.com",
  775. "filesbb.com",
  776. "fileshareup.com",
  777. "filevice.com",
  778. "gigaup.fr",
  779. "inafile.com",
  780. "isavelink.com",
  781. "loombo.com",
  782. "megafiles.se",
  783. "migupload.com",
  784. "mydisc.net",
  785. "nitrobits.com",
  786. "potload.com",
  787. "redload.net",
  788. "shareprofi.com",
  789. "sharesuper.info",
  790. "sinhro.net",
  791. "speedfile.cz",
  792. "speedshare.org",
  793. "storage.novoro.net",
  794. "swankshare.com",
  795. "swatupload.com",
  796. "upafile.com",
  797. "uploadmachine.com",
  798. "uploadsat.com",
  799. "upshared.com",
  800. "usefile.com",
  801. "yourfiles.to",
  802. "zomgupload.com",
  803. "ultramegabit.com",
  804. "uploadto.us",
  805.  
  806. ];
  807. ///////////////////////////////////////////////////////////////////////////////////////
  808. var firstRun = GM_getValue("First_run", true);
  809.  
  810. var chromeBrowser = /chrom(e|ium)/.test(navigator.userAgent.toLowerCase());
  811. //////////////////////////////////////////////////////////////////////////////////////
  812. try
  813. {
  814. var thisVersion = GM_info.script.version; //not supported in Scriptish and others
  815. var last_known_version = GM_getValue("last_known_version", "");
  816. if (!last_known_version)
  817. {
  818. last_known_version = thisVersion;
  819. GM_setValue("last_known_version", last_known_version);
  820. }
  821. //var newVersion = !(thisVersion == last_known_version);
  822. var newVersion = !(a.replace(/^(\d+\.\d+\.\d+).*/,'$1') == b.replace(/^(\d+\.\d+\.\d+).*/,'$1')); //true only if one of the first three numbers differs
  823. GM_setValue("last_known_version", thisVersion);
  824. }
  825. catch (err)
  826. {
  827. var newVersion = false;
  828. }
  829.  
  830. var now = (new Date()).getTime();
  831. var last_custom_rules_nag = GM_getValue('last_custom_rules_nag', 0);
  832. if (!last_custom_rules_nag)
  833. {
  834. last_custom_rules_nag = now;
  835. GM_setValue('last_custom_rules_nag', ''+now);
  836. }
  837.  
  838.  
  839. allHostNames.sort();
  840. allContainerNames.sort();
  841. allObsoleteNames.sort();
  842.  
  843. var RAND_STRING = "8QyvpOSsRG3QWq";
  844. var DEBUG_MODE = false;
  845.  
  846. var TOOLTIP_MAXWIDTH = 600; //in pixels
  847. var TOOLTIP_THUMBWIDTH = 200;
  848. var containers_processed = false;
  849.  
  850. //settings for keyboard functions start
  851. var CHECK_ALL_LINKS_KEY = "A";
  852. var CONFIGURATION_KEY = "C";
  853. var copy_to_dead_key = "D";
  854. var toggle_autocheck_key = "W";
  855. var toggle_Enable_Anonymizer_key = "Z";
  856. var first_key_keycode = '17'; // 18=ALT 16=Shift 17=Ctrl 32=SPACE_BAR 9=TAB
  857. var first_key_keycodename = 'CTRL';
  858. var second_key_keycode = '18';
  859. var second_key_keycodename = 'ALT';
  860. var CHECK_ALL_LINKS_KEYCODE = CHECK_ALL_LINKS_KEY.charCodeAt(0);
  861. var CONFIGURATION_KEYCODE = CONFIGURATION_KEY.charCodeAt(0);
  862. var copy_to_dead_keycode = copy_to_dead_key.charCodeAt(0);
  863. var toggle_autocheck_keycode = toggle_autocheck_key.charCodeAt(0);
  864. var toggle_Enable_Anonymizer_keycode = toggle_Enable_Anonymizer_key.charCodeAt(0);
  865. //settings for keyboard functions end
  866.  
  867. //global settings start
  868. var Show_black_background_in_DL_links, Show_line_through_in_dead_links, Color_DL_links;
  869. var Live_links_color, Dead_links_color, Temp_unavailable_links_color, Premium_links_color, Ref_anonymize_service;
  870. var Do_not_linkify_DL_links, Keyboard_functions, Autocheck, Enable_Anonymizer;
  871. var Show_progress_stats, Display_tooltip_info, Icon_set;
  872. var Progress_box_pos_bottom, Progress_box_pos_right, Progress_box_opacity, Progress_box_background_color, Progress_box_item_color;
  873. var Progress_box_refresh_rate;
  874. var Obsolete_file_hosts;
  875. var Custom_rules, Custom_rules_text;
  876.  
  877. var messageBox = document.createElement('b'); // top-left message box
  878.  
  879. var cLinksTotal = 0;
  880. var cLinksDead = 0;
  881. var cLinksAlive = 0;
  882. var cLinksUnava = 0;
  883. var cLinksprem = 0;
  884. var cLinksProcessed = 0;
  885.  
  886. var intervalId; //for updateProgress()
  887.  
  888. //icon resources
  889. var PAW_ICON_GREEN = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAANCAYAAABy6+R8AAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSo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YWhrJ5x207ZdSFGB59Ockwb+L3vydX/7oRPYFPW05DnuHbb1aGD79+MRyZev/H9TlvTIB6riK7EhQGbNr2rJe714eq/fjLwPD8x22GO5/eM/CzijN8BdoD0nz3/FuG/an3Sv7/ZehFDyBYIHplzFHcYullyPjp13eGj79/MHwEagRpfvPpB8OuuJsHvz785QRU9w+XAQwCMkyby3aZ+/xj5YBr/vDzD8OpngefHq55rw9U8gBbFCFHo4pljvAV60x19o+/fgMN+cNw79h7hjNFD5IZ/jPMwxXHKOmAmYOxPWCNWgWzKBfDm7c/GY4m3Nr089Uff3yJBD0h8Ug68tzQbVCUvtD66PWrXR91gWIvSTEABOw5pNlKfjz91QNkHySUTAGg7t0uvj1ytQAAAABJRU5ErkJggg==';
  900. var NEW_ICON_RED = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAA6klEQVQ4jbWTwWrCQBRFz6Rxnay6iuAXlJIg+BHZZR/d6++4t/5MpRQRf8CCrurGrDP6uumESTol04J3dbmPd7hvYBTAG5QBzIFH/PQpsBzDWm2gDGEFKM9lIxGYBSEsustRnpPWNZkImQip1sRF0QUoBQv1DgdgZE9SrdmGIX0Z8NFKni8XHqIIgEzkR+dMhGtVsYvjJgt6L+1Rq4FN/hcA2md01a0PjhPM8n44bDLjXeBf36A+nZzeG+Cr+wEGSeL0LsDZDq5VBcDT8dhkxpuZpbN6hXIAL76Vbd1gqgC+IX/6zhqWE1h/AYSwSjYrmXJlAAAAAElFTkSuQmCC';
  901. var NEW_ICON_YELLOW = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+b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EQVQ4jY3TsUuWURQG8F8WEvFNDREfIg5RURAOIeL0DhJBS0tDY9BQQ0Oj29kiIvoDhBpFQRTUD1GKi0sRtEs0SEQ0RBQIRcVXw3eF6+vrWwcunPvc53nuPffcS0uEmA0x38Y5cohwGjOYxBBe4VGI3j8NQlzHYhaW0cfNEAslWCfBw4yvYhkv8hjCgxD7yMdquw/jbJ4+xq2cz+AKdrJRv9EAv/EDx3Ft75QhtrHdcFpHy0mS/lSqcVzAFM7he6XaTNLXJoOmS+ziOc4XcB893A3xodUgm5zAHdzHSLH0DhdD/GwsoSjlV5Je5nK+YQUTOInXSXq7x6134RQuo4unGf6Me7iKMxgrNfUuXMJazr8U+DA6Of/UZrCF9xjFM3zELpZwOptulIKmLlQGNXdqS7u4EWK9BA9cYpJ2KtWcwaMazcInuB3iTZ3fGv/znf8CBMxX4hrPUbUAAAAASUVORK5CYII=';
  903.  
  904. //global settings end
  905. if (window.opera && !window.console)
  906. {
  907. window.console = {};
  908.  
  909. function fn()
  910. {
  911. opera.postError(arguments);
  912. };
  913. ['log', 'debug', 'info', 'warn', 'error', 'assert', 'dir', 'dirxml', 'group', 'groupEnd', 'time', 'timeEnd', 'count', 'trace', 'profile', 'profileEnd'].forEach(function (name)
  914. {
  915. window.console[name] = fn;
  916. });
  917. }
  918.  
  919. //displays colored text in message box
  920. function sendMessage(text, color)
  921. {
  922. var msgDiv = document.createElement('div');
  923. msgDiv.style.color = color;
  924. msgDiv.innerHTML = text;
  925. messageBox.appendChild(msgDiv);
  926. setTimeout(function(){messageBox.removeChild(msgDiv)}, 3000);
  927. }
  928.  
  929. function linkify(totalourls)
  930. { // code from http://userscripts.org/scripts/review/2254 Linkify ting
  931. var ikkeTilladteTags;
  932. var allLinksRegex = "(?:http:\/\/.+?\\?)?(?:https?:\/\/)?"
  933. + "[0-9A-Za-z]+(?:[\\.-][0-9A-Za-z]+)*\\.[A-Za-z]+/" //instead of totalourls
  934. + "[\\w\\–\\-\\.+$!*\\/()\\[\\]\',~%?:@#&=\\\\\\—;…×Ã\\_\\u0080-\\u03FF’‘" + (Allow_spaces_in_DL_links ? "\\u0020" : "") + "]*";
  935. allLinksRegex = new RegExp(allLinksRegex, "g");
  936. var regexy = "^(?:http:\/\/.+?\\?)?(?:https?:\/\/)?(?:www\\.)?(?:" + totalourls + ")";
  937.  
  938. if (Do_not_linkify_DL_links)
  939. ikkeTilladteTags = ['a', 'head', 'script', 'style', 'title', 'option', 'iframe', 'textarea', 'span']; //tags, hvor det der stAΞ’Β¥r inden i ikke skal vAΞ’Β¦re links
  940. else
  941. ikkeTilladteTags = ['a', 'head', 'script', 'style', 'title', 'option', 'iframe', 'textarea']; //tags, hvor det der stAΞ’Β¥r inden i ikke skal vAΞ’Β¦re links
  942.  
  943. var regex = new RegExp(regexy);
  944. var textNode, muligtLink;
  945.  
  946. var path = "//text()[not(parent::" + ikkeTilladteTags.join(" or parent::") + ") and contains(.,'/')]";
  947. var textNodes = document.evaluate(path, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  948.  
  949. var i = textNodes.snapshotLength;
  950. while (i--)
  951. {
  952. textNode = textNodes.snapshotItem(i);
  953.  
  954. muligtLink = textNode.nodeValue; //all links on page
  955.  
  956. var myArray = null;
  957. var span = null;
  958. var lastLastIndex = 0;
  959. allLinksRegex.lastIndex = 0;
  960. if (/^https?:\/\/~[\w\s\~]*\//.test(muligtLink))
  961. {
  962. if (textNode.parentNode.className == "adead_link") continue;
  963. var censoredLink = muligtLink;
  964. var span = document.createElement('span');
  965. span.className = "adead_link";
  966. $(span).attr('warlc_error', "Cause of error: <b>Censored link.</b>");
  967. $(span).html(censoredLink);
  968. span.addEventListener("mouseover", displayTooltipError, false);
  969. cLinksTotal++; cLinksProcessed++; cLinksDead++;
  970. textNode.parentNode.replaceChild(span, textNode);
  971. continue;
  972. alert(censoredLink);
  973. }
  974. while (myArray = allLinksRegex.exec(muligtLink)) //find all links
  975. {
  976. if (!regex.test(myArray[0])) //this link is not recognized
  977. {
  978.  
  979. continue;
  980. }
  981. if (!span)
  982. span = document.createElement('span');
  983.  
  984. var link = myArray[0];
  985. span.appendChild(document.createTextNode(muligtLink.substring(lastLastIndex, myArray.index))); //inds?t det der kommer for dette hit
  986.  
  987. var $a = $("<a>" + link + "</a>")
  988. if (!link.match(/https?:\/\//))
  989. {
  990. link = 'http://' + link;
  991. }
  992.  
  993. $a.attr("href", link.replace(/\[\/hide:\w+\]/,""))
  994. .addClass("processing_link")
  995. .appendTo(span);
  996. lastLastIndex = allLinksRegex.lastIndex;
  997. }
  998. if (span)
  999. {
  1000. span.appendChild(document.createTextNode(muligtLink.substring(lastLastIndex))); //ins?t det der kommer efter sidste hit
  1001. textNode.parentNode.replaceChild(span, textNode);
  1002. }
  1003. }
  1004. }
  1005.  
  1006. function add_WARLC_style()
  1007. {
  1008. if (!(document.getElementsByTagName('WARLC')[0]))
  1009. {
  1010. var meta_not_to_add_more_style = document.createElement("WARLC");
  1011. meta_not_to_add_more_style.setAttribute('content', 'war_links_checker');
  1012. meta_not_to_add_more_style.setAttribute('name', 'description');
  1013. document.getElementsByTagName('head')[0].appendChild(meta_not_to_add_more_style);
  1014. alive_link_png = "";
  1015. adead_link_png = "";
  1016. unava_link_png = "";
  1017. prem_link_png = "";
  1018. switch(Icon_set)
  1019. {
  1020. //no icons
  1021. case 0: break;
  1022. // cat paws
  1023. case 1: alive_link_png = PAW_ICON_GREEN;
  1024. adead_link_png = PAW_ICON_RED;
  1025. unava_link_png = PAW_ICON_YELLOW;
  1026. prem_link_png = PAW_ICON_PINK;
  1027. break;
  1028. // classic RSLC look
  1029. case 2: alive_link_png = RSLC_ICON_GREEN;
  1030. adead_link_png = RSLC_ICON_RED;
  1031. unava_link_png = RSLC_ICON_YELLOW;
  1032. prem_link_png = RSLC_ICON_PINK;
  1033. break;
  1034. // New Icons
  1035. case 3: alive_link_png = NEW_ICON_GREEN;
  1036. adead_link_png = NEW_ICON_RED;
  1037. unava_link_png = NEW_ICON_YELLOW;
  1038. prem_link_png = NEW_ICON_PINK;
  1039. break;
  1040. // cat paws
  1041. default:alive_link_png = PAW_ICON_GREEN;
  1042. adead_link_png = PAW_ICON_RED;
  1043. unava_link_png = PAW_ICON_YELLOW;
  1044. prem_link_png = PAW_ICON_PINK;
  1045. break;
  1046. }
  1047. processing_link_gif = 'data:image/gif;base64,' + // or temporary anavailable
  1048. 'R0lGODlhCgAKAJEDAMzMzP9mZv8AAP///yH/C05FVFNDQVBFMi4wAwEAAAAh+QQFAAADACwAAAAACgAKAAACF5wncgaAGgJzJ647cWua4sOBFEd62VEAACH5BAUAAAMALAEAAAAIAAMAAAIKnBM2IoMDAFMQFAAh+QQFAAADACwAAAAABgAGAAACDJwHMBGofKIRItJYAAAh+QQFAAADACwAAAEAAwAIAAACChxgOBPBvpYQYxYAIfkEBQAAAwAsAAAEAAYABgAAAgoEhmPJHOGgEGwWACH5BAUAAAMALAEABwAIAAMAAAIKBIYjYhOhRHqpAAAh+QQFAAADACwEAAQABgAGAAACDJwncqi7EQYAA0p6CgAh+QQJAAADACwHAAEAAwAIAAACCpRmoxoxvQAYchQAOw%3D%3D';
  1049.  
  1050. var dead_color_css, live_color_css, unava_color_css, prem_color_css, black_background_css;
  1051.  
  1052. if (Color_DL_links)
  1053. {
  1054. dead_color_css = 'color:' + Dead_links_color + ' !important;';
  1055. live_color_css = 'color:' + Live_links_color + ' !important;';
  1056. unava_color_css = 'color:' + Temp_unavailable_links_color + ' !important;';
  1057. container_color_css = 'color:' + Container_links_color + ' !important;';
  1058. prem_color_css = 'color:' + Premium_links_color + ' !important;';
  1059. }
  1060. else
  1061. {
  1062. dead_color_css = live_color_css = unava_color_css = container_color_css = prem_color_css = '';
  1063. }
  1064.  
  1065. if (Show_black_background_in_DL_links)
  1066. {
  1067. black_background_css = 'background-color: black !important;';
  1068. }
  1069. else
  1070. {
  1071. black_background_css = '';
  1072. }
  1073.  
  1074. if (Show_line_through_in_dead_links)
  1075. {
  1076. line_through_css = 'text-decoration: line-through !important;';
  1077. }
  1078. else
  1079. {
  1080. line_through_css = '';
  1081. }
  1082.  
  1083. GM_addStyle(".alive_link {background:transparent url(" + alive_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;" + live_color_css + black_background_css + "}");
  1084. 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 + "}");
  1085. GM_addStyle(".unava_link {background:transparent url(" + unava_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;" + unava_color_css + black_background_css + "}");
  1086. GM_addStyle(".processing_link {background:transparent url(" + processing_link_gif + ") no-repeat scroll 100% 50%;padding-right:15px;" + container_color_css + black_background_css + "}");
  1087. GM_addStyle(".container_link {background:transparent url(" + processing_link_gif + ") no-repeat scroll 100% 50%;padding-right:15px;" + container_color_css + black_background_css + "}");
  1088. GM_addStyle(".container_list {font-size:90%; list-style-type:square; padding: 0px 5% 0px; margin: 0px}");
  1089. GM_addStyle(".prem_link {background:transparent url(" + prem_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;" + prem_color_css + black_background_css + "}");
  1090. }
  1091. }
  1092.  
  1093. var warlcTooltip = null;
  1094. var mouseoverLink = null; //link href with mouse cursor over it
  1095.  
  1096. var lastX = 0;
  1097. var lastY = 0;
  1098.  
  1099. $(document).ready(initTooltip);
  1100. //inits tooltip
  1101. function initTooltip()
  1102. { warlcTooltip = document.createElement("div");
  1103. 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;");
  1104. warlcTooltip.style.visibility = "hidden";
  1105. document.body.appendChild(warlcTooltip);
  1106. }
  1107.  
  1108. //"mousemove" event handler for all links
  1109. function moveTooltip(event)
  1110. {
  1111. if ((Math.abs(lastX - event.clientX) + Math.abs(lastY - event.clientY)) < 6)
  1112. { //no need to reflow if the cursor moved just a little
  1113. return;
  1114. }
  1115. else
  1116. {
  1117. lastX = event.clientX;
  1118. lastY = event.clientY;
  1119. }
  1120.  
  1121. posX = event.clientX + window.pageXOffset + 10;
  1122. posY = event.clientY + window.pageYOffset;
  1123. var ttHeight = warlcTooltip.offsetHeight;
  1124. var ttFreeSpace = window.innerHeight - event.clientY;
  1125. if (ttHeight > ttFreeSpace)
  1126. { //prevents tooltip from getting out of the window
  1127. posY -= (ttHeight - (ttFreeSpace)) + 10;
  1128. }
  1129. else
  1130. {
  1131. posY += 7;
  1132. }
  1133. warlcTooltip.style.top = posY + "px";
  1134. warlcTooltip.style.left = posX + "px";
  1135. }
  1136.  
  1137. //"mouseout" event handler for all links
  1138. function hideTooltip(){
  1139. warlcTooltip.style.visibility = "hidden";
  1140. mouseoverLink = null;
  1141. }
  1142.  
  1143.  
  1144. //"mouseover" event handler for dead links
  1145. //displays tooltip error message on dead links
  1146. function displayTooltipError()
  1147. {
  1148. mouseoverLink = this.href;
  1149. this.addEventListener("mouseout", hideTooltip);
  1150. this.addEventListener("mousemove", function(event) { moveTooltip(event); });
  1151. warlcTooltip.innerHTML = '<b>LOADING...</b>';
  1152. warlcTooltip.style.minWidth = 0;
  1153. warlcTooltip.style.visibility = "visible";
  1154. if (this.warlc_error) //an error message is already known and stored in warlc_error attribute
  1155. {
  1156. warlcTooltip.innerHTML = this.warlc_error;
  1157. }
  1158. else
  1159. {
  1160. loadErrorInfo(this);
  1161. }
  1162. function loadErrorInfo(link)
  1163. {
  1164. var href = link.href;
  1165. href = href.replace(/quickshare\.cz\/.+/, "quickshare.cz/chyba");
  1166. GM_xmlhttpRequest({
  1167. method: 'GET',
  1168. url: href.replace(Ref_anonymize_service, ""),
  1169. headers: {
  1170. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1171. 'Accept': 'text/xml',
  1172. 'Referer': ""
  1173. },
  1174. onload: function(result) {
  1175. var res = result.responseText;
  1176. //TODO: errorRegexs -
  1177. var errorRegexs = [ //generic error messages follow
  1178. /(empty directory)/i,
  1179. /(soubor nebyl nalezen)/i,
  1180. /((?:file|page|link|folder)(?:is|not|does|has been|was| ){1,}(?:found|available|blocked|exists?|deleted|removed))/i,
  1181. //server specific error messages follow
  1182. /msg error" style="cursor: default">(.+?)<\/div>/, //sendspace
  1183. /color:red;font\-weight:bold;border\-style:dashed;font-size:12px;border\-width:2px;><tr><td align=center>(.+?)<\/td>/, //fastshare
  1184. /(Takový soubor neexistuje. Je možné, že byl již smazán.)/, //quickshare
  1185. /file_info file_info_deleted">\s*<h1>(.+?)<\/h1>/, //filepost
  1186. /<br \/>\s*<p style="color:#000">(.+?)<\/p>\s*<\/center>/, //letitbit
  1187. /(?:error_div">|<\/h1><p>)<strong>(.+?)<\/strong>/, //share-rapid,quickshare
  1188. /class="red">(.+?)<(?:span|br)>/, //czshare, megashares
  1189. /class="wp640">\s*<h1 class="h1">(.+?)<\/h1>/, //uloz.to
  1190. /not-found">\s*<p>(.+?)<\/p>/, //bayfiles
  1191. /(Your file could not be found. Please check the download link.)/, //stahnu.to
  1192. /error_msg">\s*(<h3>.+?<\/h3><ul>(.+?)<\/ul>)/, //edisk
  1193. /id="obsah">\s*<h2>(.+?)<\/h2>/, //euroshare
  1194. /error">\s*(?:<[bp]>)?\s*(.+?)<\/[bp]>/, //filesmonster, shragle, gigapeta
  1195. ///center aC">\s*<h1>(.+?)<br \/>/, //uploaded.to
  1196. /icon_err">\s*<h1>(.+?)<\/h1>/, //filejungle
  1197. /Code: ER_NFF_\d+<\/h2>\s*(.+?)\s*<\/div>/, //netload
  1198. /(File has been removed due to Copyright Claim)/, //filerio
  1199. ];
  1200. var errorIdx = errorRegexs.length;
  1201. var error = "Cause of error: <b>unknown</b>";
  1202. var errorCandidate = "";
  1203. while(errorIdx--)
  1204. {
  1205. var errorCandidate = res.match(errorRegexs[errorIdx]);
  1206. if (errorCandidate != null)
  1207. {
  1208. error = "Cause of error: <b>" + errorCandidate[1].replace(/&nbsp;/g," ") + "</b>";
  1209. break;
  1210. }
  1211. }
  1212. //link attributes
  1213. link.warlc_error = error;
  1214. if (mouseoverLink == link.href) //mouse cursor is still over the link
  1215. {
  1216. warlcTooltip.innerHTML = error;
  1217. }
  1218. }
  1219. });
  1220. }
  1221. }
  1222.  
  1223. //"mouseover" event handler for alive links
  1224. //displays tooltip info (file size, file name,...) on alive links
  1225. function displayTooltipInfo()
  1226. {
  1227. mouseoverLink = this.href;
  1228. //exclude direct download filehostings
  1229. 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)/))
  1230. {
  1231. return;
  1232. }
  1233. this.addEventListener("mouseout", hideTooltip);
  1234. this.addEventListener("mousemove", function(event) { moveTooltip(event); });
  1235. warlcTooltip.innerHTML = '<b>LOADING...</b>';
  1236. warlcTooltip.style.minWidth = 0;
  1237. warlcTooltip.style.visibility = "visible";
  1238. if (this.warlc_tooltipcache) //file size is already known and stored in warlc_filename and warlc_filesize attributes
  1239. {
  1240. warlcTooltip.innerHTML = this.warlc_tooltipcache;
  1241. }
  1242. else
  1243. {
  1244. loadInfo(this);
  1245. }
  1246. function loadInfo(link)
  1247. {
  1248. var href = link.href;
  1249. GM_xmlhttpRequest({
  1250. method: 'GET',
  1251. url: href.replace(Ref_anonymize_service, ""),
  1252. headers: {
  1253. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1254. 'Accept': 'text/xml',
  1255. 'Referer': ""
  1256. },
  1257. onload: function(result) {
  1258. var res = result.responseText;
  1259. var nameRegexs = [ /Filename: <b class="f_arial f_14px">(.+?)<\/b>/, //oron
  1260. /(?:finfo|file[-_]?name)">\s*(.+?)<\/?(?:h1|a|div|span style|td)/, //hellshare, netload, badongo, 4fastfile
  1261. /fl" title="(.+?)">/, //edisk
  1262. /<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
  1263. /<h3>Stahujete soubor: <\/h3>\s*<div class="textbox">(.+?)<\/div>/, //webshare
  1264. /<h3><b><span style=color:black;>(.+?)<\/b><\/h3><br>/, //fastshare
  1265. /title="download (.+?)">/, //sendspace
  1266. /Stáhnout soubor: (.+?)<\/h1>/, //quickshare
  1267. /fz24">Download:\s*<strong>(.+?)<\/strong>/, //crocko
  1268. /'file\-icon\d+ \w+'>(?:<\/span><span>)?(.+?)<\/span>/, //hitfile, turbobit
  1269. /d0FileName = "(.+?)";/, //letitbit
  1270. /file(?:_name|-info)" title="">\w+: <span>(.+?)<\/span>/, //vip-file, shareflare
  1271. /recent-comments"><h2>(.+) &nbsp;/, //xdisk
  1272. /fname" value="(.+?)">/, //syfiles, grupload,
  1273. /download\-header">\s*<h2>File:<\/h2>\s*<p title="(.+?)">/, //bayfiles
  1274. /description">\s*<p><b>Soubor: (.+?)<\/b>/, //bezvadata
  1275. /Complete name : (.+?)<br \/>/, //bezvadata
  1276. /itemprop="name">(.+?)<\/span>/, //bezvadata
  1277. ];
  1278. var nameIdx = nameRegexs.length;
  1279. // [sizeRegexs]
  1280. // / \ \?
  1281. // prefix (size) postfix
  1282. // / \
  1283. // val quant
  1284. var quantRegex = '(?:M|G|K)?i?(?:B)(?:[y|i]te?s?)?';
  1285. var valRegex = '\\d+(?:[\\., ]\\d+){0,2}'; // 111([., ]222)?([., ]333)?
  1286. var uniSizeRegex = valRegex + '(?:\\s*|&nbsp;)' + quantRegex;
  1287. var preSizeRegex = '(?::|\\(|>|>, | - )';
  1288. var postSizeRegex = '(?:\\))?';
  1289. var sizeRegexs = [ preSizeRegex + "\\s*(" + uniSizeRegex + ")\\s*" + postSizeRegex,
  1290. 'FileSize_master">(.+?)<\/strong>', //hellshare
  1291. ];
  1292. var sizeIdx = sizeRegexs.length;
  1293. //
  1294. //
  1295. var tooltip = "File Name: <b>";
  1296. var fileName = "unknown";
  1297. var nameCandidate = "";
  1298. while(nameIdx--)
  1299. {
  1300. var nameCandidate = res.match(nameRegexs[nameIdx]);
  1301. if (nameCandidate != null)
  1302. {
  1303. fileName = nameCandidate[1].replace(/&nbsp;/g," ");
  1304. break;
  1305. }
  1306. }
  1307. tooltip += fileName + "</b><br>File Size: <b>";
  1308. var fileSize = "unknown";
  1309. var sizeCandidate = "";
  1310. while(sizeIdx--)
  1311. {
  1312. sizeCandidate = res.match(new RegExp(sizeRegexs[sizeIdx], "i"));
  1313. if (sizeCandidate != null)
  1314. {
  1315. fileSize = sizeCandidate[1].replace(/&nbsp;/g," ");
  1316. if (/^\d+$/.test(fileSize) && fileSize >= 1024) //assume bytes
  1317. {
  1318. if(fileSize > (1<<30)) fileSize = Math.round(10 * fileSize / (1<<30)) / 10 + ' GB';
  1319. else if(fileSize > (1<<20)) fileSize = Math.round(fileSize / (1<<20)) + ' MB';
  1320. else fileSize = Math.round(fileSize / 1024) + ' KB';
  1321. }
  1322. break;
  1323. }
  1324. }
  1325. tooltip += fileSize + "</b>";
  1326. // PROTOTYPE
  1327. // video thumbnails
  1328. if (href.match('hellshare'))
  1329. {
  1330. var thumbs;
  1331. thumbs = res.match(/http:\/\/static\d+\.helldata\.com\/thumbs(?:\/\d+){1,2}\/\d{1,2}"/g);
  1332. if (thumbs)
  1333. {
  1334. tooltip += '<br>';
  1335. var j = Math.min(thumbs.length, 9);
  1336. for (var i = 0; i < j; i++)
  1337. {
  1338. tooltip += '<img src="' + thumbs[i].replace('"',"") + '" width="' + TOOLTIP_THUMBWIDTH + 'px">';
  1339. }
  1340. warlcTooltip.style.minWidth = TOOLTIP_MAXWIDTH;
  1341. }
  1342. }
  1343. if (href.match('czshare'))
  1344. {
  1345. var thumbs;
  1346. thumbs = res.match(/src="http:\/\/www(\d+)\.czshare\.com\/images_velke\/\d+\.(\d+)\.jpeg/);
  1347. if (thumbs)
  1348. {
  1349. var thumbsServer = thumbs[1];
  1350. var thumbsId = thumbs[2];
  1351. tooltip += '<br>';
  1352. for (var i = 1; i < 9; i++)
  1353. {
  1354. tooltip += '<img src="http://www' + thumbsServer + '.czshare.com/images_velke/' + i + '.' + thumbsId + '.jpeg" width="' + TOOLTIP_THUMBWIDTH + 'px">';
  1355. }
  1356. warlcTooltip.style.minWidth = TOOLTIP_MAXWIDTH;
  1357. }
  1358. }
  1359. if (href.match('bezvadata'))
  1360. {
  1361. var thumbs;
  1362. thumbs = res.match(/http:\/\/nahledy\.bezvadata\.cz\/nahledy\/\d+\/\d+\/\d+_\d+_\d+x\d+_\w.jpg/g);
  1363. if (thumbs)
  1364. {
  1365. tooltip += '<br>';
  1366. var j = Math.min(thumbs.length, 9);
  1367. for (var i = 0; i < j; i++)
  1368. {
  1369. tooltip += '<img src="' + thumbs[i] + '" width="' + TOOLTIP_THUMBWIDTH + 'px">';
  1370. }
  1371. warlcTooltip.style.minWidth = TOOLTIP_MAXWIDTH;
  1372. }
  1373. }
  1374. link.warlc_tooltipcache = tooltip;
  1375. if (mouseoverLink == link.href) //mouse cursor is still over the link
  1376. {
  1377. warlcTooltip.innerHTML = tooltip;
  1378. }
  1379. }
  1380. });
  1381. }
  1382. }
  1383.  
  1384. function setVariables()
  1385. {
  1386. if (firstRun)
  1387. {
  1388. GM_log('First run, applying default settings...');
  1389. GM_setValue("Icon_set",1);
  1390. GM_setValue("Display_tooltip_info",true);
  1391. GM_setValue("Show_black_background_in_DL_links",false);
  1392. GM_setValue("Show_line_through_in_dead_links",false);
  1393. GM_setValue("Display_full_links_in_link_containers",false);
  1394. GM_setValue("Allow_spaces_in_DL_links",false);
  1395. GM_setValue("Autocheck",true);
  1396. GM_setValue("Enable_Anonymizer",false);
  1397. GM_setValue("Do_not_linkify_DL_links",false);
  1398. GM_setValue("Show_progress_stats",true);
  1399. GM_setValue("Keyboard_functions",true);
  1400. GM_setValue("Obsolete_file_hosts",false);
  1401. GM_setValue("Color_DL_links",true);
  1402. GM_setValue("Live_links_color","Green");
  1403. GM_setValue("Dead_links_color","#FF3300");
  1404. GM_setValue("Temp_unavailable_links_color","#F7EF09");
  1405. GM_setValue("Container_links_color","DarkKhaki");
  1406. GM_setValue("Premium_links_color","DeepPink");
  1407. GM_setValue("Ref_anonymize_service","http://hiderefer.com/?");
  1408. GM_setValue("Custom_rules",false);
  1409. GM_setValue("Custom_rules_text","");
  1410. GM_setValue("First_run", false);
  1411. }
  1412. //hidden settings
  1413. GM_setValue("Progress_box_pos_bottom", Progress_box_pos_bottom = GM_getValue("Progress_box_pos_bottom", 20));
  1414. GM_setValue("Progress_box_pos_right", Progress_box_pos_right = GM_getValue("Progress_box_pos_right", 10));
  1415. GM_setValue("Progress_box_opacity", Progress_box_opacity = GM_getValue("Progress_box_opacity", 85));
  1416. GM_setValue("Progress_box_background_color", Progress_box_background_color = GM_getValue("Progress_box_background_color", 'DimGray'));
  1417. GM_setValue("Progress_box_item_color", Progress_box_item_color = GM_getValue("Progress_box_item_color", 'DimGray'));
  1418. GM_setValue("Progress_box_refresh_rate", Progress_box_refresh_rate = GM_getValue("Progress_box_refresh_rate", 2000));
  1419. GM_setValue("Debug_mode", DEBUG_MODE = GM_getValue("Debug_mode", false));
  1420. //hidden settings end
  1421.  
  1422. Icon_set = GM_getValue("Icon_set", 1); //0 - no icons, 1 - cat paws, 2 - old RSLC style, 3 - New Icons,
  1423. Display_tooltip_info = GM_getValue("Display_tooltip_info", true);
  1424. Show_black_background_in_DL_links = GM_getValue("Show_black_background_in_DL_links", false);
  1425. Show_line_through_in_dead_links = GM_getValue("Show_line_through_in_dead_links", false);
  1426. Display_full_links_in_link_containers = GM_getValue("Display_full_links_in_link_containers", false);
  1427. Allow_spaces_in_DL_links = GM_getValue("Allow_spaces_in_DL_links", false);
  1428. Autocheck = GM_getValue("Autocheck", true);
  1429. Enable_Anonymizer = GM_getValue("Enable_Anonymizer", false);
  1430. Do_not_linkify_DL_links = GM_getValue("Do_not_linkify_DL_links", false);
  1431. Show_progress_stats = GM_getValue("Show_progress_stats", true);
  1432. Keyboard_functions = GM_getValue("Keyboard_functions", true);
  1433. Obsolete_file_hosts = GM_getValue("Obsolete_file_hosts", false);
  1434. Color_DL_links = GM_getValue("Color_DL_links", true);
  1435. Live_links_color = GM_getValue("Live_links_color", "Green");
  1436. Dead_links_color = GM_getValue("Dead_links_color", "#FF3300");
  1437. Temp_unavailable_links_color = GM_getValue("Temp_unavailable_links_color", "#F7EF09");
  1438. Container_links_color = GM_getValue("Container_links_color", "DarkKhaki");
  1439. Premium_links_color = GM_getValue("Premium_links_color", "DeepPink");
  1440. Ref_anonymize_service = GM_getValue("Ref_anonymize_service", "http://hiderefer.com/?");
  1441. Custom_rules = GM_getValue("Custom_rules", false);
  1442. Custom_rules_text = GM_getValue("Custom_rules_text", false);
  1443. }
  1444.  
  1445.  
  1446. // Delinkifies the links
  1447. // params:
  1448. // links -> list of links or link components (note they should be sufficiently unique to identify the link on page,
  1449. // e.g. 'uloz.to/xs68skxl8')
  1450. function delinkifySnapshot(snapshot)
  1451. {
  1452. var n = snapshot.snapshotLength;
  1453.  
  1454. while (n--)
  1455. {
  1456. thisLink = snapshot.snapshotItem(n);
  1457.  
  1458. var spanElm = document.createElement("span");
  1459. spanElm.className = thisLink.className;
  1460. spanElm.innerHTML = thisLink.innerHTML;
  1461.  
  1462. if (Display_tooltip_info)
  1463. {
  1464. spanElm.href = thisLink.href;
  1465. switch (thisLink.className){
  1466. case "alive_link": spanElm.addEventListener("mouseover", displayTooltipInfo, false); break
  1467. case "adead_link": spanElm.addEventListener("mouseover", displayTooltipError, false); break;
  1468. case "unava_link": //reserved
  1469. default:
  1470. }
  1471. }
  1472. thisLink.parentNode.replaceChild(spanElm, thisLink);
  1473. }
  1474. }
  1475.  
  1476. function processContainers()
  1477. {
  1478. var redirectorTypes = { "HTTP_302": 0,
  1479. "INNER_LINK": 1,
  1480. "THELOO_KATT_IT": 2,
  1481. "CING_BE": 3,
  1482. "ADF_LY": 4};
  1483. var cMultiloadTotal = 0;
  1484. var cMultiloadProcessed = 0;
  1485.  
  1486. var cMirrorcreatorComTotal = 0;
  1487. var cMirrorcreatorComProcessed = 0;
  1488.  
  1489. var hostRestrictionRegex = "";
  1490. var multiloadComRestriction = "";
  1491. var multiloadComRestrictionRegex;
  1492.  
  1493. //
  1494. //HANDLING REDIRECTORS START
  1495. //
  1496.  
  1497. var redirectors = new Array();
  1498. initRedirectors();
  1499.  
  1500. var redirectorsCount = redirectors.length;
  1501.  
  1502. if (redirectorsCount > 0)
  1503. {
  1504. var allRedirectorsRegex = "";
  1505.  
  1506. //linkify redirector links
  1507. for(var redirIdx = 0; redirIdx < redirectorsCount; redirIdx++)
  1508. {
  1509. allRedirectorsRegex += redirectors[redirIdx].linkRegex + "|";
  1510. }
  1511. allRedirectorsRegex = allRedirectorsRegex.replace(/\|$/, "");
  1512. linkify(allRedirectorsRegex);
  1513. //
  1514. //process redirector links
  1515. for(var redirIdx = 0; redirIdx < redirectorsCount; redirIdx++)
  1516. {
  1517. var redirectorsSnapshot = document.evaluate(redirectors[redirIdx].xpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  1518. redirectors[redirIdx].cTotal = redirectorsSnapshot.snapshotLength;
  1519.  
  1520. cLinksTotal += redirectors[redirIdx].cTotal;
  1521. var linkIdx = redirectors[redirIdx].cTotal;
  1522.  
  1523. while(linkIdx--)
  1524. {
  1525. switch(redirectors[redirIdx].type)
  1526. {
  1527. case redirectorTypes.HTTP_302: processRedirectorLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1528. case redirectorTypes.INNER_LINK: processRedirectorLinkEx(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1529. case redirectorTypes.THELOO_KATT_IT: processThelooKattItLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1530. case redirectorTypes.CING_BE: processCingBeLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1531. case redirectorTypes.ADF_LY: processAdfLyLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1532. default:
  1533. }
  1534. }
  1535. }
  1536. //
  1537. }
  1538.  
  1539. //HTTP_302
  1540. function processRedirectorLink(link, redirectorId)
  1541. {
  1542. link.className = 'container_link';
  1543.  
  1544. GM_xmlhttpRequest({
  1545. method: 'HEAD',
  1546. url: link.href,
  1547. headers: {
  1548. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1549. 'Accept': 'text/xml',
  1550. 'Referer': ""
  1551. },
  1552. onload: function(result) {
  1553. if (result.finalUrl.replace("https", "http") == link.href) // service hasn't redirected anywhere
  1554. {
  1555. processRedirectorLink(link, redirectorId);
  1556. }
  1557. else
  1558. {
  1559. redirectors[redirectorId].cProcessed++;
  1560. link.href = result.finalUrl;
  1561. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  1562. checkLinks('container_link');
  1563. }
  1564. },
  1565. onerror: function(result) { //probably caused by unresponsive filehosting
  1566. redirectors[redirectorId].cProcessed++;
  1567. link.className = 'unava_link';
  1568. cLinksProcessed++;
  1569. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  1570. checkLinks('container_link');
  1571. }
  1572. });
  1573. }
  1574. //INNER_LINK
  1575. function processRedirectorLinkEx(link, redirectorId)
  1576. {
  1577. link.className = 'container_link';
  1578. GM_xmlhttpRequest({
  1579. method: 'GET',
  1580. url: link.href,
  1581. headers: {
  1582. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1583. 'Accept': 'text/xml',
  1584. 'Referer': ""
  1585. },
  1586. onload: function(result) {
  1587. link.href = result.responseText.match(redirectors[redirectorId].innerLinkRegex)[1];
  1588. redirectors[redirectorId].cProcessed++;
  1589. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  1590. checkLinks('container_link');
  1591. }
  1592. });
  1593. }
  1594. //theloo.katt.it (wrapped safelinking.net)
  1595. function processThelooKattItLink(link, redirectorId)
  1596. {
  1597. link.className = 'container_link';
  1598. GM_xmlhttpRequest({
  1599. method: 'GET',
  1600. url: link.href,
  1601. headers: {
  1602. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1603. 'Accept': 'text/xml',
  1604. 'Referer': ""
  1605. },
  1606. onload: function(result) {
  1607. link.href = result.responseText.match(redirectors[redirectorId].innerLinkRegex)[1];
  1608. redirectors[redirectorId].cProcessed++;
  1609. //the inner links are safelinking.net links, so lets proceed with it
  1610. if (GM_getValue("Check_safelinking_dot_net_links", false))
  1611. {
  1612. processRedirectorLink(link, 0);
  1613. }
  1614. }
  1615. });
  1616. }
  1617. //adf.ly (adf.ly/go innerLink, locking mechanism)
  1618. function processAdfLyLink(link, redirectorId)
  1619. {
  1620. link.className = 'container_link';
  1621. GM_xmlhttpRequest({
  1622. method: 'GET',
  1623. url: link.href,
  1624. headers: {
  1625. 'User-agent': 'Mozilla/4.0',
  1626. 'Accept': 'text/xml',
  1627. 'Referer': ""
  1628. },
  1629. onload: function(result) {
  1630. if (result.finalUrl.match('/locked/'))
  1631. {
  1632. var delay = result.responseText.match(/countdown">(\d+)</)[1];
  1633. // GM_log(result.finalUrl + 'is locked. Repeating the request in ' + delay + 's.');
  1634. // setTimeout(function(){processAdfLyLink(link, redirectorId);}, delay * 1000);
  1635. }
  1636. else
  1637. {
  1638. // GM_log('Processing... ' + link.href);
  1639. // GM_log('Found...' + result.responseText.match(/\/go\/(\w+\/\w+)/)[1]);
  1640. var directLink = 'http://adf.ly' + result.responseText.match(/(\/go\/\w+\/\w+)/)[1];
  1641. var logToken = result.responseText.match(/flashy_(\w+)/)[1];
  1642. var users = result.responseText.match(/user=\d+&user2=\d+/);
  1643. //confirm advert
  1644. GM_xmlhttpRequest(
  1645. {
  1646. method: 'POST',
  1647. url: 'http://adf.ly/l.php',
  1648. headers: {
  1649. 'User-agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20100101 Firefox/13.0',
  1650. 'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
  1651. 'Referer': link.href
  1652. },
  1653. data: users + '&lt=' + logToken,
  1654. onload: function(result) {
  1655. //retrieve final url from .../go/... link
  1656. GM_xmlhttpRequest({
  1657. method: 'GET',
  1658. url: directLink,
  1659. headers: {
  1660. 'User-agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20100101 Firefox/13.0',
  1661. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  1662. 'Referer': link.href
  1663. },
  1664. onload: function(result) {
  1665. link.href = result.finalUrl;
  1666. redirectors[redirectorId].cProcessed++;
  1667. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  1668. checkLinks('container_link');
  1669. }
  1670. });
  1671. }
  1672. });
  1673. }
  1674. }
  1675. });
  1676. function proceedOK()
  1677. {
  1678. }
  1679. }
  1680. //MULTILOAD.CZ START
  1681. if (GM_getValue("Check_multiload_dot_cz_links", false))
  1682. {
  1683. var mlRegex = 'multiload\\.cz\/stahnout\/\\d+\/';
  1684. var mlXpath = "//a[contains(@href,'http://www.multiload.cz/stahnout')]";
  1685.  
  1686. hostRestrictionRegex = 'Upload se nezdařil|limit exceeded|probíhá reupload|';
  1687.  
  1688. if (GM_getValue("Check_hellshare_dot_com_links", false))
  1689. hostRestrictionRegex += 'hellshare|';
  1690. if (GM_getValue("Check_share_dash_rapid_dot_com_links", false))
  1691. hostRestrictionRegex += 'share-rapid\\.com|';
  1692. if (GM_getValue("Check_quickshare_dot_cz_links", false))
  1693. hostRestrictionRegex += 'quickshare\\.cz|';
  1694. if (GM_getValue("Check_czshare_dot_com_links", false))
  1695. hostRestrictionRegex += 'czshare\\.com|';
  1696. if (GM_getValue("Check_uloz_dot_to_links", false))
  1697. hostRestrictionRegex += 'uloz\\.to|';
  1698. if (GM_getValue("Check_hellspy_dot_com_links", false))
  1699. hostRestrictionRegex += 'hellspy|';
  1700. if (GM_getValue("Check_multishare_dot_cz_links", false))
  1701. hostRestrictionRegex += 'multishare\\.cz|';
  1702.  
  1703. hostRestrictionRegex = hostRestrictionRegex.replace(/\|$/, "");
  1704.  
  1705. linkify(mlRegex);
  1706.  
  1707. var mlSnapshot = document.evaluate(mlXpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  1708. var mlCount = mlSnapshot.snapshotLength;
  1709.  
  1710. if (mlCount > 0)
  1711. {
  1712. cMultiloadTotal += mlCount;
  1713.  
  1714. mlIdx = mlCount - 1;
  1715. do
  1716. {
  1717. processMultiloadLink(mlSnapshot.snapshotItem(mlIdx));
  1718. }
  1719. while(mlIdx--)
  1720. }
  1721. }
  1722. //MULTILOAD.CZ END
  1723.  
  1724.  
  1725.  
  1726. function processMultiloadLink(mlLink)
  1727. {
  1728. GM_xmlhttpRequest({
  1729. method: 'GET',
  1730. url: mlLink.href,
  1731. headers: {
  1732. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1733. 'Accept': 'text/xml',
  1734. 'Referer': ""
  1735. },
  1736. onload: function(result) {
  1737. var res = result.responseText;
  1738.  
  1739. var innerBlockRegex = /<p class="manager-linky">(?:.|\s)+?<\/p>/g;
  1740. 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;
  1741. var innerLinkRegex = /((?:Upload se nezdařil.+|https?:\/\/(?:.|\s)+|Právě probíhá reupload, buďte trpěliví\.\.\.))</;
  1742. var mlRestrictionRegex = new RegExp(hostRestrictionRegex,"g"); //what links should be displayed
  1743.  
  1744. var blocks; // blocks of links
  1745. var blockIdx;
  1746.  
  1747. mlLink.className = '';
  1748.  
  1749. if (result.status == 503) //service temporarily unavailable, repeat request in one second
  1750. {
  1751. setTimeout(function(){ processMultiloadLink(mlLink); }, 1000);
  1752. return;
  1753. }
  1754.  
  1755. blocks = res.match(innerBlockRegex);
  1756.  
  1757. if (blocks == null) //no links found, cancel further processing
  1758. {
  1759. mlLink.parentNode.appendChild(document.createTextNode(' | Požadovaný soubor neexistuje.'));
  1760. cMultiloadProcessed++;
  1761. if (cMultiloadTotal <= cMultiloadProcessed)
  1762. {
  1763. startBulkCheck('container_link');
  1764. start('container_link');
  1765. }
  1766. return;
  1767. }
  1768.  
  1769. blockIdx = blocks.length;
  1770.  
  1771. if (Display_full_links_in_link_containers)
  1772. {
  1773. var ulElm = document.createElement('ul');
  1774. ulElm.className = 'container_list'; //CSS smaller font, padding, margin, square style
  1775.  
  1776. while(blockIdx--)
  1777. {
  1778. if (blocks[blockIdx].match(mlRestrictionRegex) == null)
  1779. {
  1780. continue;
  1781. }
  1782.  
  1783. var innerLinks = blocks[blockIdx].match(innerLinksRegex);
  1784.  
  1785. var linkIdx = innerLinks.length;
  1786. while (linkIdx--)
  1787. {
  1788. var innerLink = innerLinks[linkIdx].match(innerLinkRegex)[1];
  1789.  
  1790. var liElm = document.createElement('li');
  1791.  
  1792. if (innerLink.match(/Upload se nezdařil|limit exceeded|probíhá reupload/))
  1793. {
  1794. liElm.appendChild(document.createTextNode(innerLink));
  1795. }
  1796. else
  1797. {
  1798. var aElm = document.createElement('a');
  1799. aElm.innerHTML = innerLink;
  1800. aElm.href = innerLink;
  1801. aElm.className = 'container_link';
  1802.  
  1803. liElm.appendChild(aElm);
  1804. }
  1805.  
  1806. ulElm.appendChild(liElm);
  1807. cLinksTotal++;
  1808. }
  1809. }
  1810.  
  1811. mlLink.parentNode.appendChild(ulElm);
  1812. }
  1813. else //compact view
  1814. {
  1815. mlLink.parentNode.appendChild(document.createTextNode("|"));
  1816.  
  1817. while(blockIdx--)
  1818. {
  1819. if (blocks[blockIdx].match(mlRestrictionRegex) == null)
  1820. {
  1821. continue;
  1822. }
  1823.  
  1824. var innerLinks = blocks[blockIdx].match(innerLinksRegex);
  1825.  
  1826. var linkIdx = innerLinks.length;
  1827. while (linkIdx--)
  1828. {
  1829. var innerLink = innerLinks[linkIdx].match(innerLinkRegex)[1];
  1830.  
  1831. if (innerLink.match(/Upload se nezdařil|limit exceeded|probíhá reupload/))
  1832. {
  1833. mlLink.parentNode.appendChild(document.createTextNode("----"));
  1834. }
  1835. else
  1836. {
  1837. var aElm = document.createElement('a');
  1838.  
  1839. var hostName = innerLink.match(/quickshare|hellshare|uloz\.to|multishare|hellspy|share\-rapid|czshare/);
  1840.  
  1841. //abbreviate host name
  1842. switch(hostName + ""){
  1843.  
  1844. case 'quickshare': aElm.innerHTML = 'QS'; break;
  1845. case 'hellshare': aElm.innerHTML = 'HS'; break;
  1846. case 'uloz.to': aElm.innerHTML = 'UT'; break;
  1847. case 'multishare': aElm.innerHTML = 'MS'; break;
  1848. case 'hellspy': aElm.innerHTML = 'hs'; break;
  1849. case 'share-rapid': aElm.innerHTML = 'SR'; break;
  1850. case 'czshare': aElm.innerHTML = 'CS'; break;
  1851. default: aElm.innerHTML = 'xx';
  1852.  
  1853. }
  1854.  
  1855. aElm.href = innerLink;
  1856. aElm.className = 'container_link';
  1857.  
  1858. mlLink.parentNode.appendChild(aElm);
  1859. cLinksTotal++;
  1860. }
  1861. }
  1862.  
  1863. mlLink.parentNode.appendChild(document.createTextNode("|")); //blocks delimiter
  1864.  
  1865. }
  1866. }
  1867.  
  1868. cMultiloadProcessed++;
  1869. if (cMultiloadTotal == cMultiloadProcessed) //start check when all ml links have been processed
  1870. {
  1871. if (Do_not_linkify_DL_links)
  1872. {
  1873. delinkifySnapshot(mlSnapshot);
  1874. }
  1875. startBulkCheck('container_link');
  1876. start('container_link');
  1877. }
  1878. }
  1879. });
  1880. }
  1881.  
  1882.  
  1883. if (GM_getValue("Check_mirrorcreator_dot_com_links", false))
  1884. {
  1885. var mcRegex = 'mirrorcreator\\.com/files/(\\w+)';
  1886. var mcXpath = "//a[contains(@href,'mirrorcreator.com/files')]";
  1887. var mcShortHostNames =
  1888. '?? 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';
  1889. // 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
  1890. //?????? depositfiles sendspace load.to ul.to storage.to uploadbox x7.to fileserve ?????? duckload filehook filepost jumbofiles glumbouploads
  1891. // zshare ?????? 2shared uploading ugotfile extabit oron eyvx uploadstation putlocker
  1892. // megaupload badongo megashare gamefront ifile ?????? letitbit ?????? ?????? filejungle megashares
  1893. // easy-share ?????? netload zippyshare ?????? filesonic turbobit enterupload ?????? filekeen wupload crocko fileflyer
  1894.  
  1895. linkify(mcRegex);
  1896.  
  1897. var mcSnapshot = document.evaluate(mcXpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  1898. var mcCount = mcSnapshot.snapshotLength;
  1899.  
  1900. cMirrorcreatorComTotal = mcCount;
  1901.  
  1902. if (mcCount > 0)
  1903. {
  1904. mcShortHostNames = mcShortHostNames.split(' ');
  1905. mcIdx = mcCount;
  1906. while(mcIdx--)
  1907. processMirrorcreatorLink(mcSnapshot.snapshotItem(mcIdx));
  1908. }
  1909.  
  1910. }
  1911. //MIRRORCREATOR.CZ END
  1912.  
  1913.  
  1914. //mirrorcreator.com checking works like this:
  1915. //The base URL is http://www.mirrorcreator.com/files/XXXXXXXX/filename_links
  1916. //the actual list of mirrors is at http://www.mirrorcreator.com/status.php?uid=XXXXXXXX
  1917. //the list contains links in the form of (http://www.mirrorcreator.com)/redirect/XXXXXXXX/1
  1918. //these redirector links are extracted with mcLinkBlockRegex and the pages loaded
  1919. //they contain the actual filehost links, which are extracted with mcHostRegex and displayed in a container list
  1920. function processMirrorcreatorLink(mcLink)
  1921. {
  1922. var mcURL = mcLink.href.match(mcRegex);
  1923. if(!mcURL || !mcURL[1]) return;
  1924. mcURL = 'http://www.mirrorcreator.com/status.php?uid=' + mcURL[1]; //link correction
  1925. GM_xmlhttpRequest({
  1926. method: 'GET',
  1927. url: mcURL,
  1928. headers: {
  1929. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1930. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*'+'/*;q=0.8',
  1931. 'Referer': ""
  1932. },
  1933. onload: function(mcLinkResult) {
  1934. var mcLinkRes = mcLinkResult.responseText;
  1935.  
  1936. var mcLinkBlockRegex = /(\/redirect\/\w+\/(\d+))/gi;
  1937. var mcHostRegex = /<div id="redirectlink">.*?<a href="([^"]+)"/;
  1938.  
  1939. var mcRedirectors;
  1940. var mcHostURLs = [], mcRedirectorIDs = [], mcHostsFound = 0, mcHostsRetrieved = 0, mcHostsToProcess = 0;
  1941. var m = mcLinkRes.match(mcLinkBlockRegex);
  1942. if (m)
  1943. mcHostsFound = m.length;
  1944. else
  1945. { //no files inside container
  1946. processMirrorcreatorFoundHosts(mcLink, []);
  1947. return;
  1948. }
  1949.  
  1950. var mcRedirectorURL, idx, timedOut = false;
  1951.  
  1952. var gmxhrFunc = function(mcRedirectorURL){ //Tampermonkey doesn't know neither this.url or result.finalUrl
  1953. GM_xmlhttpRequest({
  1954. method: 'GET',
  1955. url: mcRedirectorURL,
  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(mcHostResult) {
  1962. if (timedOut) return; //too late, the list is already displayed
  1963. var mcHostRes = mcHostResult.responseText;
  1964. var mcHost = mcHostRes.match(mcHostRegex);
  1965. idx = mcHostURLs.indexOf(mcRedirectorURL);
  1966. if (mcHost && idx!=-1)
  1967. {
  1968. mcHostURLs[idx] = mcHost[1].replace(/^\s+|\s+$/g, '');
  1969. mcHostsRetrieved++;
  1970. mcHostsToProcess++;
  1971. if (mcHostsFound == mcHostsRetrieved) //this is the last one!
  1972. {
  1973. processMirrorcreatorFoundHosts(mcLink, mcHostURLs, mcRedirectorIDs);
  1974. mcHostsToProcess = 0;
  1975. }
  1976. }
  1977. } //end of onload: function
  1978. }); //end of GM_xmlhttpRequest call
  1979. };//end of var gmxhrFunc
  1980.  
  1981. while (mcRedirectors = mcLinkBlockRegex.exec(mcLinkRes))
  1982. { //load individual redirector pages
  1983. mcRedirectorURL = 'http://www.mirrorcreator.com' + mcRedirectors[1];
  1984. mcHostURLs.push(mcRedirectorURL);
  1985. mcRedirectorIDs.push(mcRedirectors[2]);
  1986. gmxhrFunc(mcRedirectorURL);
  1987. } //end of while block
  1988.  
  1989. setTimeout(function(){ //in case the last page fails to load and call the function
  1990. timedOut = true;
  1991. if (mcHostsToProcess)
  1992. processMirrorcreatorFoundHosts(mcLink, mcHostURLs);
  1993. }, 60000);
  1994.  
  1995. } //end of onload function
  1996. }); //end of GM_xmlhttpRequest call
  1997. } //end of function processMirrorcreatorLink
  1998.  
  1999.  
  2000. function processMirrorcreatorFoundHosts(mcLink, mcHostURLs, mcRedirectorIDs)
  2001. {
  2002. var aEl, liEl, docFrag;
  2003. var hostName, mcRedirectorID, trimFilename = false;
  2004. var i = mcHostURLs.length;
  2005. if (i == 0)
  2006. {
  2007. trimFilename = true;
  2008. mcLink.parentNode.insertBefore(document.createTextNode(' | No files inside container'), mcLink.nextSibling);
  2009. }
  2010. else
  2011. {
  2012. if (Display_full_links_in_link_containers)
  2013. { //full view
  2014. var wrapperEl = document.createElement('span');
  2015. wrapperEl.style.display = 'block';
  2016. var ulistEl = document.createElement('ul');
  2017. ulistEl.className = 'container_list';
  2018. while (i--)
  2019. {
  2020. liEl = document.createElement('li');
  2021. aEl = document.createElement('a');
  2022. aEl.appendChild(document.createTextNode(mcHostURLs[i]));
  2023. aEl.href = mcHostURLs[i];
  2024. aEl.className = 'container_link';
  2025. liEl.appendChild(aEl);
  2026. ulistEl.appendChild(liEl);
  2027. }
  2028. wrapperEl.appendChild(ulistEl);
  2029. mcLink.parentNode.replaceChild(wrapperEl, mcLink);
  2030. wrapperEl.insertBefore(mcLink, wrapperEl.firstChild);
  2031. }
  2032. else
  2033. { //compact view
  2034. trimFilename = true;
  2035. docFrag = document.createDocumentFragment();
  2036. docFrag.appendChild(document.createTextNode(' |'));
  2037. while (i--)
  2038. {
  2039. mcRedirectorID = mcRedirectorIDs[i];
  2040. hostName = mcHostURLs[i];
  2041. if (mcRedirectorID > mcShortHostNames.length-1 || mcShortHostNames[mcRedirectorID] == '??')
  2042. hostName = hostName.replace(/https?:\/\/(?:www\.)?([-0-9a-z]+(?:\.[-0-9a-z]+)?)\.[a-z]+\/.*/i, '$1').toUpperCase();
  2043. else
  2044. hostName = mcShortHostNames[mcRedirectorID];
  2045. aEl = document.createElement('a');
  2046. aEl.href = mcHostURLs[i];
  2047. aEl.className = 'container_link';
  2048. aEl.appendChild(document.createTextNode(hostName));
  2049. docFrag.appendChild(aEl);
  2050. docFrag.appendChild(document.createTextNode('|'));
  2051. }
  2052. mcLink.parentNode.insertBefore(docFrag, mcLink.nextSibling);
  2053. } //end of else block
  2054. } //end of else block
  2055. mcLink.className = '';
  2056. if (trimFilename)
  2057. mcLink.firstChild.nodeValue = mcLink.firstChild.nodeValue.replace(/(https?:\/\/[^\/]+\/files\/\w+\/).+/, '$1...');
  2058. cMirrorcreatorComProcessed++;
  2059. if (cMirrorcreatorComProcessed == cMirrorcreatorComTotal) //start check when all mc links have been processed
  2060. {
  2061. if (Do_not_linkify_DL_links)
  2062. delinkifySnapshot(mcSnapshot);
  2063. startBulkCheck('container_link');
  2064. start('container_link');
  2065. }
  2066. } //end of function processMirrorcreatorFoundHosts
  2067.  
  2068. containers_processed = true;
  2069.  
  2070.  
  2071. function initRedirectors()
  2072. {
  2073. function addRedirector(linkRegex, xpathEx, redirType, innerLinkRegex)
  2074. {
  2075. var redirector = new Object();
  2076. redirector.linkRegex = linkRegex;
  2077. redirector.xpath = xpathEx; //xpath expression
  2078. redirector.cProcessed = 0; //processed links count
  2079. redirector.cTotal = 0; //total links count
  2080. redirector.type = redirType; //redirectorTypes enum
  2081. redirector.innerLinkRegex = innerLinkRegex; //innerLink, null if unused
  2082. redirectors.push(redirector);
  2083. }
  2084. if (GM_getValue("Check_safelinking_dot_net_links", false))
  2085. {
  2086. addRedirector(
  2087. 'safelinking\\.net\/d\/\\w+',
  2088. "//a[contains(@href,'safelinking.net/d/')]",
  2089. redirectorTypes.HTTP_302,
  2090. null);
  2091. }
  2092. if (GM_getValue("Check_linksafe_dot_me_links", false))
  2093. {
  2094. addRedirector(
  2095. 'linksafe\\.me\/d\/\\w+',
  2096. "//a[contains(@href,'linksafe.me/d/')]",
  2097. redirectorTypes.HTTP_302,
  2098. null);
  2099. }
  2100. if (GM_getValue("Check_linkto_dot_net_links", false))
  2101. {
  2102. addRedirector(
  2103. 'linkto\\.net\/\\?\\w+\\.\\d+',
  2104. "//a[contains(@href,'linkto.net/?')]",
  2105. redirectorTypes.INNER_LINK,
  2106. /<iframe id="iframe" name="iframe" src="(.+?)\s*" frameborder="0"/);
  2107. }
  2108. if (GM_getValue("Check_theloo_dot_katt_dot_it_links", false))
  2109. {
  2110. addRedirector(
  2111. '(?:the)?loo\\.katt\\.it\/\\w+',
  2112. "//a[contains(@href,'loo.katt.it/')]",
  2113. redirectorTypes.THELOO_KATT_IT,
  2114. /Proceed to URL - <a href="(.+?)">/);
  2115. }
  2116. if (GM_getValue("Check_madlink_dot_sk_links", false))
  2117. {
  2118. addRedirector(
  2119. 'madlink\\.sk\/\\w+',
  2120. "//a[contains(@href,'madlink.sk/')]",
  2121. redirectorTypes.INNER_LINK,
  2122. /name="url" value="(.+?)\s*"\/>/);
  2123. }
  2124. if (GM_getValue("Check_adf_dot_ly_links", false))
  2125. {
  2126. addRedirector(
  2127. '(?:adf\\.ly|[u9]\\.bb|[qj]\\.gs)\/\\w+',
  2128. "//a[contains(@href,'adf.ly/') or contains(@href,'u.bb/') or contains(@href,'9.bb/') or contains(@href,'q.gs/') or contains(@href,'j.gs/')]",
  2129. redirectorTypes.ADF_LY,
  2130. null);
  2131. }
  2132. if (GM_getValue("Check_redi_dot_re_links", false))
  2133. {
  2134. addRedirector(
  2135. 'redi\\.re\/\\w+',
  2136. "//a[contains(@href,'redi.re/')]",
  2137. redirectorTypes.HTTP_302,
  2138. null);
  2139. }
  2140. if (GM_getValue("Check_bit_dot_ly_links", false))
  2141. {
  2142. addRedirector(
  2143. 'bit\\.ly\/\\w+',
  2144. "//a[contains(@href,'bit.ly/')]",
  2145. redirectorTypes.HTTP_302,
  2146. null);
  2147. }
  2148. }
  2149.  
  2150. }
  2151.  
  2152. var bulkHosts = new Array();
  2153. var bulkHostNames = new Array();
  2154. function initBulkCheck()
  2155. {
  2156. /////////////////////////////
  2157. // Inits filehost object
  2158. /////////////////////////////
  2159. // params :
  2160. // hostName -- [string] host name (multiple domains separated with coma)
  2161. // linkRegex -- [string] link regex
  2162. // xpath -- [string] xpath expression to detect the link objects with evaluate
  2163. // blockSize -- [integer] max. number of links sent in one request, 50 if null
  2164. // corrMatch -- [regex] link correction regex (match), applied prior to corrRepl
  2165. // corrReplWhat -- [regex] link correction regex (replace)
  2166. // corrReplWith -- [string]
  2167. // splitSeparator -- [string] POSTDATA links separator, "\r\n" if null
  2168. //
  2169. // apiUrl -- [string] web linkchecker or API URL
  2170. // postData -- [string] POSTDATA of xmlhttprequest
  2171. // resLinkRegex -- [regex]
  2172. // resLiveRegex -- [regex] matches substrings containing live links in the request response
  2173. // resDeadRegex -- [regex] matches substrings containing dead links in the request response
  2174. // resUnavaRegex -- [regex] matches substrings containing unava links in the request response
  2175. // func -- [function] bulkcheck handler, genBulkCheck if null
  2176. //
  2177. //////////////////////////////
  2178. function addHost(hostName, linkRegex, xpath, blockSize, corrMatch, corrReplWhat, corrReplWith, splitSeparator,
  2179. apiUrl, postData, resLinkRegex, resLiveRegex, resDeadRegex, resUnavaRegex, func)
  2180. {
  2181. var fileHost = new Object();
  2182.  
  2183. fileHost.linkRegex = linkRegex;
  2184. fileHost.linkRegexObject = new RegExp(linkRegex, "");
  2185. fileHost.xpath = xpath;
  2186. fileHost.cFound = 0; //found links counter
  2187. fileHost.links = new Array(); //found links
  2188. if (blockSize == null)
  2189. {
  2190. fileHost.blockSize = 50;
  2191. }
  2192. else
  2193. {
  2194. fileHost.blockSize = blockSize;
  2195. }
  2196. fileHost.corrMatch = corrMatch;
  2197. fileHost.corrReplWhat = corrReplWhat;
  2198. fileHost.corrReplWith = corrReplWith;
  2199. if (splitSeparator == null)
  2200. {
  2201. fileHost.splitSeparator = "\r\n";
  2202. }
  2203. else
  2204. {
  2205. fileHost.splitSeparator = splitSeparator;
  2206. }
  2207. fileHost.apiUrl = apiUrl;
  2208. fileHost.postData = postData;
  2209. fileHost.resLinkRegex = resLinkRegex;
  2210. fileHost.resLiveRegex = resLiveRegex;
  2211. fileHost.resDeadRegex = resDeadRegex;
  2212. fileHost.resUnavaRegex = resUnavaRegex;
  2213. if (func == null)
  2214. {
  2215. fileHost.func = genBulkCheck;
  2216. }
  2217. else
  2218. {
  2219. fileHost.func = func;
  2220. }
  2221. bulkHosts.push(fileHost);
  2222. var names = hostName.split(',');
  2223. var i = names.length;
  2224. while(i--)
  2225. {
  2226. bulkHostNames[names[i]] = fileHost;
  2227. }
  2228. }
  2229. var genType1 = [
  2230. "migahost.com", "rodfile.com", "downloadani.me",
  2231. "rarefile.net",
  2232. "filesabc.com", "sharebeast.com",
  2233. "180upload.com", "verzend.be",
  2234. "movreel.com",
  2235. "4up.me",
  2236. "file4safe.com", "filemac.com", "4upfiles.com",
  2237. "idup.in", "novafile.com", "longfiles.com",
  2238. "bitupload.com",
  2239. "uploadbaz.com"
  2240. ];
  2241. var genType2 = [ "queenshare.com",
  2242. "hulkload.com",
  2243. "amonshare.com", "edoc.com",
  2244. ];
  2245. //xfilesharing 1.0
  2246. function addGenericType1()
  2247. {
  2248. var i = genType1.length;
  2249. while(i--)
  2250. {
  2251. if (GM_getValue("Check_" + genType1[i].replace(/\./g, "_dot_").replace(/-/g, "_dash_") + "_links", false))
  2252. {
  2253. var regexSafe = genType1[i].replace(/\./g, "\\.").replace(/-/g, "\\-");
  2254. addHost(
  2255. genType1[i].match(/[\w-]+/)[0], //hostname
  2256. regexSafe + "\/\\w+", //linkregex
  2257. "//a[contains(@href,'" + genType1[i] + "/')]", //xpath
  2258. null, //blocksize
  2259. new RegExp("(http:\/\/(?:|www\\.)" + regexSafe + "\/\\w+)",""),//, //corrmatch
  2260. null, //corrreplwhat
  2261. null, //corrreplwith
  2262. null, //separator
  2263. "http://" + genType1[i] + "/checkfiles.html", //api url
  2264. "op=checkfiles&process=Check+URLs&list=", //postdata
  2265. new RegExp("(" + regexSafe + "\/\\w+)",""), //linkregex
  2266. new RegExp("green'>http:\/\/(?:|www\.)" + regexSafe + "\/\\w+","g"), //liveregex
  2267. new RegExp("red'>http:\/\/(?:|www\.)" + regexSafe + "\/\\w+","g"), //deadregex
  2268. new RegExp("orange'>http:\/\/(?:|www\.)" + regexSafe + "\/\\w+","g"), //unavaregex
  2269. null //function delegate
  2270. )
  2271. }
  2272. }
  2273. }
  2274. //xfilesharing 2.0
  2275. function addGenericType2()
  2276. {
  2277. var i = genType2.length;
  2278. while(i--)
  2279. {
  2280. if (GM_getValue("Check_" + genType2[i].replace(/\./g, "_dot_").replace(/-/g, "_dash_") + "_links", false))
  2281. {
  2282. var regexSafe = genType2[i].replace(/\./g, "\\.").replace(/-/g, "\\-");
  2283. addHost(
  2284. genType2[i].match(/[\w-]+/)[0], //hostname
  2285. regexSafe + "\/\\w+", //linkregex
  2286. "//a[contains(@href,'" + genType2[i] + "/')]", //xpath
  2287. null, //blocksize
  2288. new RegExp("(http:\/\/(?:|www\\.)" + regexSafe + "\/\\w+)",""),//, //corrmatch
  2289. null, //corrreplwhat
  2290. null, //corrreplwith
  2291. null, //separator
  2292. "http://www." + genType2[i] + "/?op=checkfiles", //api url
  2293. "op=checkfiles&process=Check+URLs&list=", //postdata
  2294. new RegExp("(" + regexSafe + "\/\\w+)",""), //linkregex
  2295. new RegExp(regexSafe + "\/\\w+.*?<\/td>\\s*<td style=\"color:green;\">","g"), //liveregex
  2296. new RegExp(regexSafe + "\/\\w+.*?<\/td>\\s*<td style=\"color:red;\">","g"), //deadregex
  2297. new RegExp(regexSafe + "\/\\w+.*?<\/td>\\s*<td style=\"color:orange;\">","g"), //unavaregex
  2298. null //function delegate
  2299. )
  2300. }
  2301. }
  2302. }
  2303. // TEMPLATE
  2304. // if (GM_getValue("Check__dot_com_links", false))
  2305. // {
  2306. // addHost(
  2307. // "", //hostname
  2308. // "", //linkregex
  2309. // "//a[contains(@href,'.com/')]", //xpath
  2310. // null, //blocksize
  2311. // null, //corrmatch
  2312. // null, //corrreplwhat
  2313. // null, //corrreplwith
  2314. // null, //separator
  2315. // "", //api url
  2316. // "", //postdata
  2317. // /()/, //linkregex
  2318. // //liveregex
  2319. // //deadregex
  2320. // //unavaregex
  2321. // null //function delegate
  2322. // )
  2323. // }
  2324. addGenericType1();
  2325. addGenericType2();
  2326.  
  2327. if (GM_getValue("Check_myvdrive_dot_com_links", false))
  2328. {
  2329. addHost(
  2330. "myvdrive,fileserving", //hostname
  2331. "(?:fileserving|myvdrive)\\.com\/files\/[\\w-]+", //linkregex
  2332. "//a[contains(@href,'fileserving.com/files') or contains(@href,'myvdrive.com/files')]", //xpath
  2333. null, //blocksize
  2334. null, //corrmatch
  2335. null, //corrreplwhat
  2336. null, //corrreplwith
  2337. null, //separator
  2338. "http://www.myvdrive.com/Public/linkchecker#", //api url
  2339. "links=", //postdata
  2340. /(?:fileserving|myvdrive)\.com\/(files\/\w+)/, //linkregex
  2341. /icon_file_check_valid"><\/span>\s*http:\/\/www\.(?:fileserving|myvdrive)\.com\/files\/[\w-]+/g, //liveregex
  2342. /icon_file_check_(?:removed|notvalid)"><\/span>\s*http:\/\/www\.(?:fileserving|myvdrive)\.com\/files\/[\w-]+/g, //deadregex
  2343. null, //unavaregex
  2344. null //function delegate
  2345. )
  2346. }
  2347. if (GM_getValue("Check_hackerbox_dot_org_links", false))
  2348. {
  2349. addHost(
  2350. "hackerbox", //hostname
  2351. "host\\.hackerbox\\.org\/\\w+", //linkregex
  2352. "//a[contains(@href,'host.hackerbox.org/')]", //xpath
  2353. null, //blocksize
  2354. /(http:\/\/host\.hackerbox\.org\/\w+)/, //corrmatch
  2355. null, //corrreplwhat
  2356. null, //corrreplwith
  2357. null, //separator
  2358. "http://host.hackerbox.org/checkfiles.html", //api url
  2359. "op=checkfiles&process=Check+URLs&list=", //postdata
  2360. /(host\.hackerbox\.org\/\w+)/, //linkregex
  2361. /green'>http:\/\/host\.hackerbox\.org\/\w+/g, //liveregex
  2362. /red'>http:\/\/host\.hackerbox\.org\/\w+/g, //deadregex
  2363. /orange'>http:\/\/host\.hackerbox\.org\/\w+/g, //unavaregex
  2364. null //function delegate
  2365. )
  2366. }
  2367. if (GM_getValue("Check_hellshare_dot_com_links", false))
  2368. {
  2369. addHost(
  2370. "hellshare", //hostname
  2371. "(?:|download\\.(?:cz\\.|en\\.|sk\\.|)|www\\.)hellshare\\.(?:com|sk|cz|pl|hu|COM|SK|CZ|PL|HU)\/[\\w-\\.]+\/(?:[\\w-\\.]+\/|)\\d{5,}", //linkregex
  2372. "//a[contains(@href,'hellshare.')]", //xpath
  2373. 48, //blocksize
  2374. null, //corrmatch
  2375. null, //corrreplwhat
  2376. null, //corrreplwith
  2377. null, //separator
  2378. null, //api url
  2379. null, //postdata
  2380. null, //linkregex
  2381. null, //liveregex
  2382. null, //deadregex
  2383. null, //unavaregex
  2384. hellshareBulkCheck //function delegate
  2385. )
  2386. }
  2387. if (GM_getValue("Check_ncrypt_dot_in_links", false))
  2388. {
  2389. addHost(
  2390. "ncrypt", //hostname
  2391. "ncrypt\\.in\/folder\\-\\w+", //linkregex
  2392. "//a[contains(@href,'ncrypt.in/folder')]", //xpath
  2393. 100000, //blocksize
  2394. null, //corrmatch
  2395. null, //corrreplwhat
  2396. null, //corrreplwith
  2397. null, //separator
  2398. null,
  2399. null,
  2400. null,
  2401. null,
  2402. null,
  2403. null,
  2404. ncryptBulkCheck //function delegate
  2405. )
  2406. }
  2407. if (GM_getValue("Check_geupload_dot_com_links", false))
  2408. {
  2409. addHost(
  2410. "geupload,lenfile", //hostname
  2411. "(?:geupload\\.com|lenfile\\.com)\/\\w+", //linkregex
  2412. "//a[contains(@href,'geupload.com/') or contains(@href,'lenfile.com/')]", //xpath
  2413. null, //blocksize
  2414. null, //corrmatch
  2415. null, //corrreplwhat
  2416. null, //corrreplwith
  2417. "\n", //separator
  2418. 'http://geupload.com/?op=checkfiles',
  2419. 'op=checkfiles&process=Check+URLs&list=',
  2420. />http:\/\/(?:geupload|lenfile)\.com\/(\w+)/,
  2421. />http:\/\/(?:geupload|lenfile)\.com\/\w+(?:[^>]+>)<td style=\"color\:green/g,
  2422. />http:\/\/(?:geupload|lenfile)\.com\/\w+(?:[^>]+>)<td style=\"color\:red/g,
  2423. null,
  2424. null
  2425. )
  2426. }
  2427. if (GM_getValue("Check_filepost_dot_com_links", false))
  2428. {
  2429. addHost(
  2430. "filepost,fp", //hostname
  2431. "(?:filepost\\.com\/files|fp\\.io)\/\\w+", //linkregex
  2432. "//a[contains(@href,'filepost.com/files/') or contains(@href,'fp.io/')]", //xpath
  2433. null, //blocksize
  2434. null, //corrmatch
  2435. null, //corrreplwhat
  2436. null, //corrreplwith
  2437. "\n", //separator
  2438. 'http://filepost.com/files/checker/?JsHttpRequest=0-xml',
  2439. 'urls=',
  2440. /\\\/files\\\/(\w+)/,
  2441. />http:\\\/\\\/filepost\.com\\\/files\\\/\w+(?:[^>]+>){5}(?:\\n|\\t)+<span class=\\"v\\"/g,
  2442. />http:\\\/\\\/filepost\.com\\\/files\\\/\w+(?:[^>]+>){5}(?:\\n|\\t)+<span class=\\"x\\"/g,
  2443. null,
  2444. null //function delegate
  2445. )
  2446. }
  2447. if (GM_getValue("Check_filesflash_dot_com_links", false))
  2448. {
  2449. addHost(
  2450. "filesflash", //hostname
  2451. "filesflash\\.com\/\\w+", //linkregex
  2452. "//a[contains(@href,'filesflash.com')]", //xpath
  2453. null, //blocksize
  2454. null, //corrmatch
  2455. /http:\/\//, //corrreplwhat
  2456. '', //corrreplwith
  2457. null, //separator
  2458. 'http://filesflash.com/checklinks.php',
  2459. 'submit=Go&links=',
  2460. /filesflash\.com\/(\w+)/,
  2461. /<td>filesflash\.com\/\w+<\/td>\s*<td>Available/g,
  2462. /<td>filesflash\.com\/\w+<\/td>\s*<td>(?:Invalid|Deleted|Expired|Banned)?<\/td>/g,
  2463. null,
  2464. null //function delegate
  2465. )
  2466. }
  2467. if (GM_getValue("Check_jumbofiles_dot_com_links", false))
  2468. {
  2469. addHost(
  2470. "jumbofiles", //hostname
  2471. "jumbofiles\\.com\/\\w+", //linkregex
  2472. "//a[contains(@href,'jumbofiles.com/')]", //xpath
  2473. null, //blocksize
  2474. /(http:\/\/(?:|www\.)jumbofiles\.com\/\w+)/, //corrmatch
  2475. null, //corrreplwhat
  2476. null, //corrreplwith
  2477. null, //separator
  2478. "http://jumbofiles.com/checkfiles.html", //api url
  2479. "op=checkfiles&process=Check+URLs&list=", //postdata
  2480. /(jumbofiles\.com\/\w+)/, //linkregex
  2481. /blue'>http:\/\/(?:|www\.)jumbofiles\.com\/\w+/g, //liveregex
  2482. /red'>http:\/\/(?:|www\.)jumbofiles\.com\/\w+/g, //deadregex
  2483. /orange'>http:\/\/(?:|www\.)jumbofiles\.com\/\w+/g, //unavaregex
  2484. null //function delegate
  2485. )
  2486. }
  2487. if (GM_getValue("Check_edisk_dot_cz_links", false))
  2488. {
  2489. addHost(
  2490. "edisk", //hostname
  2491. "(?:(?:muj|data)\\d*\\.|)edisk\\.(?:cz|sk|eu)\/(?:|(?:cz|sk|en|pl)\/)", //linkregex
  2492. "//a[contains(@href,'edisk.')]", //xpath
  2493. null, //blocksize
  2494. null, //corrmatch
  2495. /edisk\.\w{2}\/(?:|\w{2}\/)stahni/, //corrreplwhat
  2496. 'edisk.cz/stahni', //corrreplwith
  2497. null, //separator
  2498. 'http://www.edisk.cz/zkontrolovat-odkazy',
  2499. 'submitBtn=Zkontrolovat&checkFiles=',
  2500. /((?:download|stahn(?:i|out-soubor))\/\d+)/,
  2501. /"ano"\/>\s*<\/td>\s*<td>\s*http:\/\/.+/g,
  2502. /"ne"\/>\s*<\/td>\s*<td>\s*http:\/\/.+/g,
  2503. null,
  2504. null //function delegate
  2505. )
  2506. }
  2507. if (GM_getValue("Check_bezvadata_dot_cz_links", false))
  2508. {
  2509. GM_xmlhttpRequest( //age check skip
  2510. {
  2511. method: 'POST',
  2512. url: 'http://bezvadata.cz/vyhledavani/souhlas-zavadny-obsah',
  2513. headers: {
  2514. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  2515. 'Content-type': 'application/x-www-form-urlencoded',
  2516. 'Referer': ""
  2517. }
  2518. });
  2519. addHost(
  2520. "bezvadata", //hostname
  2521. "(?:beta\\.|)bezvadata\.cz\/stahnout\/\\d+\\w+", //linkregex
  2522. "//a[contains(@href,'bezvadata.cz')]", //xpath
  2523. null, //blocksize
  2524. null, //corrmatch
  2525. null, //corrreplwhat
  2526. null, //corrreplwith
  2527. null, //separator
  2528. 'http://bezvadata.cz/nastroje/kontrola-odkazu?do=kontrolaOdkazuForm-submit',
  2529. 'zkontrolovat=Zkontrolovat&odkazy=',
  2530. /(bezvadata\.cz\/stahnout\/\d+)/,
  2531. /bezvadata\.cz\/stahnout\/.+?<\/td>\s*<td style="background-color: #d9ffb2/g,
  2532. /bezvadata\.cz\/stahnout\/.+?<\/td>\s*<td style="background-color: #ffb2b2/g,
  2533. null,
  2534. null //function delegate
  2535. )
  2536. }
  2537. if (GM_getValue("Check_linkcrypt_dot_ws_links", false))
  2538. {
  2539. addHost(
  2540. "linkcrypt", //hostname
  2541. "linkcrypt\\.ws\/dir\/\\w+", //linkregex
  2542. "//a[contains(@href,'linkcrypt.ws/dir')]", //xpath
  2543. 100000, //blocksize
  2544. null, //corrmatch
  2545. null, //corrreplwhat
  2546. null, //corrreplwith
  2547. null, //separator
  2548. null,
  2549. null,
  2550. null,
  2551. null,
  2552. null,
  2553. null,
  2554. linkcryptBulkCheck //function delegate
  2555. )
  2556. }
  2557. if (GM_getValue("Check_linksave_dot_in_links", false))
  2558. {
  2559. addHost(
  2560. "linksave", //hostname
  2561. "linksave\\.in\/\\w+", //linkregex
  2562. "//a[contains(@href,'linksave.in')]", //xpath
  2563. 100000, //blocksize
  2564. null, //corrmatch
  2565. null, //corrreplwhat
  2566. null, //corrreplwith
  2567. null, //separator
  2568. null,
  2569. null,
  2570. null,
  2571. null,
  2572. null,
  2573. null,
  2574. linksaveBulkCheck //function delegate
  2575. )
  2576. }
  2577. if (GM_getValue("Check_videobb_dot_com_links", false))
  2578. {
  2579. addHost(
  2580. "videobb", //hostname
  2581. "videobb\\.com\/(?:video\/|watch_video\\.php\\?v=)\\w+", //linkregex
  2582. "//a[contains(@href,'videobb.com')]", //xpath
  2583. null, //blocksize
  2584. null, //corrmatch
  2585. /watch_video\.php\?v=/, //corrreplwhat
  2586. 'video/', //corrreplwith
  2587. null, //separator
  2588. 'http://www.videobb.com/link_checker.php',
  2589. 'links=',
  2590. /videobb\.com\/video\/(\w+)/,
  2591. /<td>http:\/\/(?:www\.|)videobb.com\/video\/\w+<\/td>\s+<td>.+?<\/td>\s+<td>\d+:\d+<\/td>\s+<td>Available/g,
  2592. /<td>http:\/\/(?:www\.|)videobb.com\/video\/\w+<\/td>\s+<td><\/td>\s+<td>N\/A<\/td>\s+<td>Not Available/g,
  2593. null,
  2594. null //function delegate
  2595. )
  2596. }
  2597. if (GM_getValue("Check_cramit_dot_in_links", false))
  2598. {
  2599. addHost(
  2600. "cramit,cramitin", //hostname
  2601. "cramit(?:\\.in|in\\.net)\/", //linkregex
  2602. "//a[contains(@href,'cramitin.net') or contains(@href,'cramit.in')]", //xpath
  2603. null, //blocksize
  2604. null, //corrmatch
  2605. null, //corrreplwhat
  2606. null, //corrreplwith
  2607. null, //separator
  2608. 'http://cramit.in/checkfiles.html',
  2609. 'op=checkfiles&process=CHECK+URL%27S&list=',
  2610. /(cramit(?:\.in|in\.net)\/\w+)/,
  2611. /green>http:\/\/(?:www\.|)cramit(?:\.in|in\.net)\/\w+/g,
  2612. /red'>http:\/\/(?:www\.|)cramit(?:\.in|in\.net)\/\w+/g,
  2613. /orange'>http:\/\/(?:www\.|)cramit(?:\.in|in\.net)\/\w+/g,
  2614. null //function delegate
  2615. )
  2616. }
  2617. if (GM_getValue("Check_turbobit_dot_net_links", false))
  2618. {
  2619. addHost(
  2620. "turbobit", //hostname
  2621. "turbobit\\.(?:net|pl)\/(?:\\w+\/|).+?\\.html", //linkregex
  2622. "//a[contains(@href,'turbobit.')]", //xpath
  2623. null, //blocksize
  2624. /(turbobit\.(?:net|pl)\/(?:\w+\/|).+?\.html)/, //corrmatch
  2625. null, //corrreplwhat
  2626. null, //corrreplwith
  2627. "\n", //separator
  2628. 'http://turbobit.net/linkchecker/csv',
  2629. 'links_to_check=',
  2630. /(turbobit\.(?:net|pl)\/\w+)/,
  2631. /turbobit\.(?:net|pl)\/.*?, 1/g,
  2632. /turbobit\.(?:net|pl)\/.*?, 0/g,
  2633. null,
  2634. null //function delegate
  2635. )
  2636. }
  2637. if (GM_getValue("Check_filerio_dot_com_links", false))
  2638. {
  2639. addHost(
  2640. "filekeen,filerio", //hostname
  2641. //"file(?:keen|rio)\\.(?:com|in)\/\\w+\/.", //linkregex
  2642. "file(?:keen|rio)\\.(?:com|in)\/\\w+", //linkregex
  2643. "//a[contains(@href,'filekeen.com') or contains(@href,'filerio.')]", //xpath
  2644. null, //blocksize
  2645. null, //corrmatch
  2646. null, //corrreplwhat
  2647. null, //corrreplwith
  2648. null, //separator
  2649. 'http://filerio.in/checkfiles.html',
  2650. 'op=checkfiles&process=Check+URLs&list=',
  2651. /(file(?:keen|rio)\.(?:com|in)\/\w+)/,
  2652. /green'>http:\/\/(?:www\.|)file(?:keen|rio)\.(?:com|in)\/\w+/g,
  2653. /red'>http:\/\/(?:www\.|)file(?:keen|rio)\.(?:com|in)\/\w+/g,
  2654. /orange'>http:\/\/(?:www\.|)file(?:keen|rio)\.(?:com|in)\/\w+/g,
  2655. null //function delegate
  2656. )
  2657. }
  2658. if (GM_getValue("Check_share_dash_online_dot_biz_links", false))
  2659. {
  2660. addHost(
  2661. "share-online,egoshare", //hostname
  2662. "(?:share-online\\.biz|egoshare\\.com)\/(?:dl\/|download\\.php\\?id=)", //linkregex
  2663. "//a[contains(@href,'share-online.biz') or contains(@href,'egoshare.com')]", //xpath
  2664. null, //blocksize
  2665. /http:\/\/(?:www\.)?(?:share-online\.biz|egoshare\.com)\/d(?:l\/|ownload\.php\?id=)(\w+)/, //corrmatch
  2666. null, //corrreplwhat
  2667. null, //corrreplwith
  2668. "\n", //separator
  2669. 'http://api.share-online.biz/linkcheck.php',
  2670. 'links=',
  2671. /(\w+);(?:OK|NOTFOUND|DELETED)/,
  2672. /\w+;OK/g,
  2673. /\w+;(?:NOTFOUND|DELETED)/g,
  2674. null,
  2675. null //function delegate
  2676. )
  2677. }
  2678. if (GM_getValue("Check_quickshare_dot_cz_links", false))
  2679. {
  2680. addHost(
  2681. "quickshare", //hostname
  2682. "quickshare\\.cz\/stahnout-soubor\/\\d+", //linkregex
  2683. "//a[contains(@href,'quickshare.cz')]", //xpath
  2684. null, //blocksize
  2685. null, //corrmatch
  2686. null, //corrreplwhat
  2687. null, //corrreplwith
  2688. null, //separator
  2689. 'http://www.quickshare.cz/nastroje/link-checker',
  2690. 'linky=',
  2691. /quickshare\.cz\/stahnout-soubor\/(\d+(?::\w+)?)/,
  2692. /quickshare\.cz\/stahnout-soubor\/\d+(?::[\w\-.+$!*\/()\[\]\',~%?:@#&=\\]+)?\s*<\/a><\/td><td><img src="\/img\/ok\.gif/g,
  2693. /quickshare\.cz\/stahnout-soubor\/\d+(?::[\w\-.+$!*\/()\[\]\',~%?:@#&=\\]+)?\s*<\/td><td><img src="\/img\/nenalezeno\.gif/g,
  2694. null,
  2695. null //function delegate
  2696. )
  2697. }
  2698. if (GM_getValue("Check_netload_dot_in_links", false))
  2699. {
  2700. addHost(
  2701. "netload", //hostname
  2702. "netload\\.in\/datei\\w{10}", //linkregex
  2703. "//a[contains(@href,'netload.in')]", //xpath
  2704. null, //blocksize
  2705. null, //corrmatch
  2706. null, //corrreplwhat
  2707. null, //corrreplwith
  2708. "\n", //separator
  2709. "http://api.netload.in/index.php?id=2", //api url
  2710. "send=Absenden&links=", //postdata
  2711. /(\w+);/, //linkregex
  2712. /\w{10,};.+?;.+?;online/g, //liveregex
  2713. /\w{10,};.+?;.+?;offline/g, //deadregex
  2714. null, //unavaregex
  2715. //netloadBulkCheck //function delegate //disabled on probation since 1.2.4.5
  2716. null //function delegate
  2717. )
  2718. }
  2719. if (GM_getValue("Check_oboom_dot_com_links", false))
  2720. {
  2721. addHost(
  2722. "oboom", //hostname
  2723. "oboom\\.com\/#?\\w{8}", //linkregex
  2724. "//a[contains(@href,'oboom.com/')]", //xpath
  2725. null, //blocksize
  2726. /oboom\.com\/#?(\w{8})/, //corrmatch
  2727. null, //corrreplwhat
  2728. null, //corrreplwith
  2729. null, //separator
  2730. null,
  2731. null,
  2732. null,
  2733. null, //liveregex
  2734. null, //deadregex
  2735. null,
  2736. oboomBulk //function delegate
  2737. )
  2738. }
  2739. if (GM_getValue("Check_mega_dot_co_dot_nz_links", false))
  2740. {
  2741. addHost(
  2742. "mega",
  2743. "mega(?:\\.co)?\\.nz\/#!\\w+",
  2744. "//a[contains(@href,'mega.co.nz/') or contains(@href,'mega.nz/')]",
  2745. 100000, //blocksize
  2746. null, //corrmatch
  2747. null, //corrreplwhat
  2748. null, //corrreplwith
  2749. null, //separator
  2750. null,
  2751. null,
  2752. null,
  2753. null,
  2754. null,
  2755. null,
  2756. megaBulkCheck //function delegate
  2757. )
  2758. }
  2759.  
  2760. //the same as GenType2, except api url is 'https://' instead of 'http://www.' and corrmatch is not??? needed
  2761.  
  2762. if (GM_getValue("Check_extabit_dot_com_links", false))
  2763. {
  2764. addHost(
  2765. "extabit", //hostname
  2766. "extabit\\.com\/file\/\\w+", //linkregex
  2767. "//a[contains(@href,'extabit.com')]", //xpath
  2768. null, //blocksize
  2769. null, //corrmatch
  2770. null, //corrreplwhat
  2771. null, //corrreplwith
  2772. "\n", //separator
  2773. "http://extabit.com/linkchecker.jsp", //api url
  2774. "url=", //postdata
  2775. /extabit\.com\/(file\/\w+)/, //linkregex
  2776. /extabit\.com\/file\/\w+\/[^<]+<\/a><\/td>\s*<td class="status"><span class="status_green">/g, //liveregex
  2777. /extabit\.com\/file\/\w+\/[^<]+<\/a><\/td>\s*<td class="status"><span class="status_red">/g, //deadregex
  2778. /extabit\.com\/file\/\w+\/[^<]+<\/a><\/td>\s*<td class="status"><span class="status_yellow">/g, //unavaregex
  2779. extabitBulkCheck //function delegate
  2780. )
  2781. }
  2782. if (GM_getValue("Check_junocloud_dot_me_links", false))
  2783. {
  2784. addHost(
  2785. "junocloud", //hostname
  2786. "junocloud\\.me\/\\w+", //linkregex
  2787. "//a[contains(@href,'junocloud.me')]", //xpath
  2788. null, //blocksize
  2789. null, //corrmatch
  2790. null, //corrreplwhat
  2791. null, //corrreplwith
  2792. "\n", //separator
  2793. "http://junocloud.me/checkfiles.html", //api url
  2794. "op=checkfiles&process=Check+URLs&list=", //postdata
  2795. /(junocloud\.me\/\w+)/, //linkregex
  2796. /<a href="http:\/\/junocloud\.me\/\w+[^<]+<\/a>\s*<span style="color: green/g, //liveregex
  2797. /<a href="http:\/\/junocloud\.me\/\w+[^<]+<\/a>\s*<span style="color: red/g, //deadregex
  2798. null, //unavaregex
  2799. null //function delegate
  2800. )
  2801. }
  2802. if (GM_getValue("Check_webshare_dot_cz_links", false))
  2803. {
  2804. addHost(
  2805. "webshare", //hostname
  2806. "webshare\.cz\/(?:(?:#/)?file/\\w+|\\w+-.*)", //linkregex
  2807. "//a[contains(@href,'webshare.cz')]", //xpath
  2808. 100000, //blocksize
  2809. null, //corrmatch
  2810. null, //corrreplwhat
  2811. null, //corrreplwith
  2812. null, //separator
  2813. null, //api url
  2814. null, //postdata
  2815. null, //linkregex
  2816. null, //liveregex
  2817. null, //deadregex
  2818. null, //unavaregex
  2819. webshareBulkCheck //function delegate
  2820. )
  2821. }
  2822. /////////////////////////////
  2823. // Common function delegate to send links to get checked by host linkchecker
  2824. /////////////////////////////
  2825. // If you define a new delegate, you may use following properties
  2826. // this.links [array] array of strings (link blocks). The links in each block separated with host.splitSeparator.
  2827. // this.apiUrl [string] API or web linkchecker URL
  2828. // this.postData [string] POSTDATA for POST request
  2829. // this.resLiveRegex [regex] matches live substrings in the request response
  2830. // this.resDeadRegex [regex] matches dead substrings in the request response
  2831. // this.resUnavaRegex [regex] matches unava substrings in the request response (the regex is often null!)
  2832. //
  2833. // this.resLinkRegex [regex] matches links further passed to DisplayTheCheckedLinks
  2834. //
  2835. // See the code below for standard bulkcheck handling reference.
  2836. //////////////////////////////
  2837. function genBulkCheck()
  2838. {
  2839. var blockIdx = this.links.length;
  2840. while (blockIdx--)
  2841. {
  2842. postRequest(this.apiUrl, this.postData, this.links[blockIdx],
  2843. this.resLinkRegex, this.resLiveRegex, this.resDeadRegex, this.resUnavaRegex);
  2844. }
  2845. function postRequest(api, postData, links, linkRegex, liveRegex, deadRegex, unavaRegex)
  2846. {
  2847. GM_xmlhttpRequest(
  2848. {
  2849. method: 'POST',
  2850. url: api,
  2851. headers: {
  2852. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  2853. 'Content-type': 'application/x-www-form-urlencoded',
  2854. 'Referer': api,
  2855. 'X-Requested-With': 'XMLHttpRequest'
  2856. },
  2857. data: postData + encodeURIComponent(links),
  2858. onload: function (result)
  2859. {
  2860. var res = result.responseText;
  2861. // GM_log(res);
  2862. var i;
  2863.  
  2864. var livelinks = res.match(liveRegex);
  2865. var deadlinks = res.match(deadRegex);
  2866. // GM_log(livelinks);
  2867. // GM_log(deadlinks);
  2868. if (livelinks != null)
  2869. {
  2870. i = livelinks.length - 1;
  2871. do
  2872. {
  2873. livelinks[i] = livelinks[i].match(linkRegex)[1];
  2874. }
  2875. while (i--);
  2876. DisplayTheCheckedLinks(livelinks, 'alive_link');
  2877. }
  2878.  
  2879. if (deadlinks != null)
  2880. {
  2881. i = deadlinks.length - 1;
  2882. do
  2883. {
  2884. deadlinks[i] = deadlinks[i].match(linkRegex)[1];
  2885. }
  2886. while (i--);
  2887. DisplayTheCheckedLinks(deadlinks, 'adead_link');
  2888. }
  2889.  
  2890. if (unavaRegex != null)
  2891. {
  2892. var unavalinks = res.match(unavaRegex);
  2893. if (unavalinks)
  2894. {
  2895. i = unavalinks.length - 1;
  2896. do
  2897. {
  2898. unavalinks[i] = unavalinks[i].match(linkRegex)[1];
  2899. }
  2900. while (i--);
  2901. DisplayTheCheckedLinks(unavalinks, 'unava_link');
  2902. }
  2903. }
  2904. }
  2905. });
  2906. }
  2907. }
  2908. //specialized bulkchecking handlers follow
  2909. function webshareBulkCheck()
  2910. {
  2911. var arr = this.links[0].split("\r\n");
  2912. var i = arr.length;
  2913. while(i--)
  2914. {
  2915. postRequest(arr[i]);
  2916. }
  2917. //function postRequest(api, postData, links, linkRegex, liveRegex, deadRegex, unavaRegex)
  2918. function postRequest(wsLink)
  2919. {
  2920. var id = wsLink.match(/webshare\.cz\/(?:(?:#\/)?file\/)?(\w+)/)[1];
  2921. GM_xmlhttpRequest(
  2922. {
  2923. method: 'POST',
  2924. url: "http://webshare.cz/api/file_info/",
  2925. headers: {
  2926. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  2927. 'Content-type': 'application/x-www-form-urlencoded',
  2928. 'Referer': "",
  2929. },
  2930. data: "wst=&ident=" + id,
  2931. onload: function (result)
  2932. {
  2933. var res = result.responseText;
  2934. if (res.match(/<name>.+?<\/name>/))
  2935. {
  2936. DisplayTheCheckedLinks([id], 'alive_link');
  2937. }
  2938. else
  2939. {
  2940. DisplayTheCheckedLinks([id], 'adead_link');
  2941. }
  2942. }
  2943. });
  2944. }
  2945. }
  2946. //like genBulkCheck, but extabit linkchecker only works when logged in. If not logged in, non-bulk checking has to be used.
  2947. //extabit also doesn't like requests in fast succession, so some delays are added.
  2948. function extabitBulkCheck()
  2949. {
  2950. var timeoutDelay = 0;
  2951. var blockIdx = this.links.length;
  2952. while (blockIdx--)
  2953. {
  2954. postRequest(this.apiUrl, this.postData, this.links[blockIdx],
  2955. this.resLinkRegex, this.resLiveRegex, this.resDeadRegex, this.resUnavaRegex);
  2956. }
  2957. function postRequest(api, postData, links, linkRegex, liveRegex, deadRegex, unavaRegex)
  2958. {
  2959. GM_xmlhttpRequest(
  2960. {
  2961. method: 'POST',
  2962. url: api,
  2963. headers: {
  2964. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  2965. 'Content-type': 'application/x-www-form-urlencoded',
  2966. 'Referer': api,
  2967. 'X-Requested-With': 'XMLHttpRequest'
  2968. },
  2969. data: postData + encodeURIComponent(links),
  2970. onload: function (result)
  2971. {
  2972. var res = result.responseText;
  2973. if (/id="registration_header"/.test(res)) //not logged in, have to use non-bulk
  2974. {
  2975. function geturlfunc(link, tryID) //basically the geturl function with some changes (compacted, displaythecheckedlinkS, multiple tries)
  2976. {
  2977. //GM_log(tryID + ': ' + link);
  2978. GM_xmlhttpRequest(
  2979. {
  2980. method: 'GET',
  2981. url: link,
  2982. 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': ""},
  2983. onload: function(result2)
  2984. {
  2985. var res2 = result2.responseText;
  2986. var res2Status = result.status;
  2987. if (/download-file-btn/.test(res2)) {DisplayTheCheckedLinks([link], 'alive_link'); return;}
  2988. if (/Search mirrors|id="mirrb"/.test(res2) || res2Status==404) {DisplayTheCheckedLinks([link], 'adead_link'); return;}
  2989. if (/currently unavailable|temporarily unavailable|disponible en estos momentos|vorläufig unerreichbar|Файл временно недоступен/.test(res2) || res2Status == 500 || res2Status == 503)
  2990. {
  2991. if (tryID < 7)
  2992. setTimeout(function(){geturlfunc(link,tryID+1)}, tryID * 1000 + (Math.random() * tryID * 2000));
  2993. else
  2994. {DisplayTheCheckedLinks([link], 'unava_link'); return;}
  2995. }
  2996. }
  2997. });
  2998. }
  2999. //split the hrefs and check them one by one
  3000. GM_log('Using slow extabit.com link checking. Log in to extabit to use fast bulk checking.');
  3001. links = links.split('\n');
  3002. var i = links.length;
  3003. while (i--)
  3004. {
  3005. if (links[i])
  3006. {
  3007. (function(i){setTimeout(function(){geturlfunc(links[i],1)}, timeoutDelay);})(i);
  3008. timeoutDelay += 500;
  3009. }
  3010. }
  3011. return;
  3012. }
  3013. var i;
  3014.  
  3015. var livelinks = res.match(liveRegex);
  3016. var deadlinks = res.match(deadRegex);
  3017. if (livelinks != null)
  3018. {
  3019. i = livelinks.length - 1;
  3020. do
  3021. {
  3022. livelinks[i] = livelinks[i].match(linkRegex)[1];
  3023. }
  3024. while (i--);
  3025. DisplayTheCheckedLinks(livelinks, 'alive_link');
  3026. }
  3027.  
  3028. if (deadlinks != null)
  3029. {
  3030. i = deadlinks.length - 1;
  3031. do
  3032. {
  3033. deadlinks[i] = deadlinks[i].match(linkRegex)[1];
  3034. }
  3035. while (i--);
  3036. DisplayTheCheckedLinks(deadlinks, 'adead_link');
  3037. }
  3038.  
  3039. if (unavaRegex != null)
  3040. {
  3041. var unavalinks = res.match(unavaRegex);
  3042. if (unavalinks)
  3043. {
  3044. i = unavalinks.length - 1;
  3045. do
  3046. {
  3047. unavalinks[i] = unavalinks[i].match(linkRegex)[1];
  3048. }
  3049. while (i--);
  3050. DisplayTheCheckedLinks(unavalinks, 'unava_link');
  3051. }
  3052. }
  3053. }
  3054. });
  3055. }
  3056. }
  3057. function netloadBulkCheck()
  3058. {
  3059. var blockIdx = this.links.length;
  3060.  
  3061. while (blockIdx--)
  3062. {
  3063. postRequest(this.apiUrl, this.postData, this.links[blockIdx],
  3064. this.resLinkRegex, this.resLiveRegex, this.resDeadRegex, this.unavaRegex);
  3065. }
  3066. function postRequest(api, postData, links, linkRegex, liveRegex, deadRegex, unavaRegex)
  3067. {
  3068. GM_xmlhttpRequest(
  3069. {
  3070. method: 'POST',
  3071. url: api,
  3072. headers: {
  3073. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  3074. 'Content-type': 'application/x-www-form-urlencoded',
  3075. 'Referer': ""
  3076. },
  3077. data: postData + encodeURIComponent(links),
  3078. onload: function (result)
  3079. {
  3080. var res = result.responseText;
  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. recheckLink(livelinks[i].match(linkRegex)[1]);
  3091. }
  3092. while(i--);
  3093. }
  3094.  
  3095. if (deadlinks != null)
  3096. {
  3097. i = deadlinks.length - 1;
  3098. do
  3099. {
  3100. deadlinks[i] = deadlinks[i].match(linkRegex)[1];
  3101. }
  3102. while (i--);
  3103. DisplayTheCheckedLinks(deadlinks, 'adead_link');
  3104. }
  3105. }
  3106. });
  3107. }
  3108. function recheckLink(link)
  3109. {
  3110. var link = link;
  3111. GM_xmlhttpRequest(
  3112. {
  3113. method: 'GET',
  3114. url: 'http://netload.in/datei' + link + '.htm',
  3115. headers: {
  3116. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3117. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  3118. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  3119. 'Referer': ""
  3120. },
  3121. onload: function (result)
  3122. {
  3123. var res = result.responseText;
  3124.  
  3125. if (res.match(/dl_first_file_download">|download_limit\.gif/))
  3126. {
  3127. DisplayTheCheckedLinks([link], 'alive_link');
  3128. return;
  3129. }
  3130.  
  3131. if (res.match(/achtung\.jpg"/))
  3132. {
  3133. DisplayTheCheckedLinks([link], 'adead_link');
  3134. }
  3135. },
  3136. onerror: function ()
  3137. {
  3138. displayTheCheckedLink(link, 'unava_link');
  3139. }
  3140. });
  3141. }
  3142. }
  3143.  
  3144. function megaBulkCheck()
  3145. {
  3146. var arr = this.links[0].split("\r\n");
  3147. var i = arr.length;
  3148. var seqno = Math.floor(Math.random()*1000000000);
  3149. while(i--)
  3150. {
  3151. postRequest(arr[i]);
  3152. }
  3153. function postRequest(megaLink)
  3154. {
  3155. megaLink=megaLink.replace('mega.nz/','mega.co.nz/');
  3156. var id = megaLink.match(/mega\.co\.nz\/#!(\w+)(?:!\w+)?/)[1];
  3157. GM_xmlhttpRequest(
  3158. {
  3159. method: "POST",
  3160. url: 'https://g.api.mega.co.nz/cs?id=' + seqno++,
  3161. data: '[{"a":"g","p":"' + id + '","ssl": "1"}]',
  3162. headers: {
  3163. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3164. 'Content-Type': 'application/xml',
  3165. 'Referer': "https://mega.co.nz/"
  3166. },
  3167. onload: function (result)
  3168. {
  3169. var res = $.parseJSON(result.responseText.match(/\[(.+?)\]/)[1]);
  3170. if ((typeof res == "number" && (res == -9 || res == -16 || res == -6)) || res.d)
  3171. {
  3172.  
  3173. DisplayTheCheckedLinks([id], 'adead_link');
  3174. }
  3175. if (res.at)
  3176. {
  3177. DisplayTheCheckedLinks([id], 'alive_link');
  3178. }
  3179. if (res.e == "ETEMPUNAVAIL")
  3180. {
  3181. DisplayTheCheckedLinks([id], 'unava_link');
  3182. }
  3183. }
  3184. });
  3185. }
  3186.  
  3187. }
  3188.  
  3189. function oboomBulk() {
  3190. var a = [], b = [], c = [];
  3191. var array = this.links;
  3192.  
  3193. GM_xmlhttpRequest({
  3194. method: 'GET',
  3195. url: 'https://www.oboom.com/1/guestsession',
  3196. headers: {
  3197. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  3198. 'Content-type': 'application/x-www-form-urlencoded',
  3199. 'Referer': 'https://www.oboom.com',
  3200. 'X-Requested-With': 'XMLHttpRequest'
  3201. },
  3202. onload: function(result) {
  3203. var blockIdx = array.length;
  3204. var token = JSON.parse(result.responseText)[1];
  3205. while (blockIdx--) {
  3206. startCheck(array[blockIdx].split('\r\n'), token);
  3207. }
  3208. }
  3209. });
  3210.  
  3211. function startCheck(links, token) {
  3212. GM_xmlhttpRequest({
  3213. method: 'POST',
  3214. url: "https://api.oboom.com/1/info",
  3215. headers: {
  3216. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  3217. 'Content-type': 'application/x-www-form-urlencoded',
  3218. 'Referer': 'https://www.oboom.com/',
  3219. 'X-Requested-With': 'XMLHttpRequest'
  3220. },
  3221. data: "token=" + token + "&items=" + links.join(","),
  3222. onload: function(result) {
  3223. var res = JSON.parse(result.responseText)[1];
  3224. var i = res.length, s;
  3225.  
  3226. while (i--) {
  3227. s = res[i].state;
  3228. if (s == 'online') a.push(res[i].id);
  3229. 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);
  3230. else c.push(res[i].id);
  3231. }
  3232.  
  3233. if (a.length > 0) DisplayTheCheckedLinks(a, 'alive_link');
  3234. if (b.length > 0) DisplayTheCheckedLinks(b, 'adead_link');
  3235. if (c.length > 0) DisplayTheCheckedLinks(c, 'unava_link');
  3236. }
  3237. });
  3238. }
  3239. }
  3240. function linksaveBulkCheck()
  3241. {
  3242. var arr = this.links[0].split("\r\n");
  3243. var i = arr.length;
  3244. while(i--)
  3245. {
  3246. postRequest(arr[i]);
  3247. }
  3248. function postRequest(lsLink)
  3249. {
  3250. GM_xmlhttpRequest(
  3251. {
  3252. method: "GET",
  3253. url: lsLink + '-t.jpg',
  3254. headers: {
  3255. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3256. 'Accept': 'text/xml',
  3257. 'Referer': ""
  3258. },
  3259. onload: function (result)
  3260. {
  3261. var imgLen = result.responseHeaders.match(/Content-Length: (\d+)/)[1];
  3262. if (imgLen == 965) //online
  3263. {
  3264. DisplayTheCheckedLinks([lsLink], 'alive_link');
  3265. }
  3266.  
  3267. if (imgLen == 972) //offline
  3268. {
  3269. DisplayTheCheckedLinks([lsLink], 'adead_link');
  3270. }
  3271. if (imgLen == 978) //unava
  3272. {
  3273. DisplayTheCheckedLinks([lsLink], 'unava_link');
  3274. }
  3275. }
  3276. });
  3277. }
  3278.  
  3279. }
  3280. function linkcryptBulkCheck()
  3281. {
  3282. var arr = this.links[0].split("\r\n");
  3283. var i = arr.length;
  3284. while(i--)
  3285. {
  3286. postRequest(arr[i]);
  3287. }
  3288. function postRequest(lcLink)
  3289. {
  3290. GM_xmlhttpRequest(
  3291. {
  3292. method: "GET",
  3293. url: 'http://linkcrypt.ws/api.html?api=status_V1&folderKey=' + lcLink.match(/dir\/(\w+)/)[1],
  3294. headers: {
  3295. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3296. 'Accept': 'text/xml',
  3297. 'Referer': ""
  3298. },
  3299. onload: function (result)
  3300. {
  3301. var res = result.responseText;
  3302. if (res.match(/<errorCode>1101|folderStatus>[23]/)) //Offline status
  3303. {
  3304. DisplayTheCheckedLinks([lcLink], 'adead_link');
  3305. return;
  3306. }
  3307. if (res.match(/folderStatus>1/)) //Online status
  3308. {
  3309. DisplayTheCheckedLinks([lcLink], 'alive_link');
  3310. }
  3311. else
  3312. {
  3313. DisplayTheCheckedLinks([lcLink], 'unava_link');
  3314. }
  3315. }
  3316. });
  3317. }
  3318. }
  3319.  
  3320. function megashareBulkCheck()
  3321. {
  3322. var arr = this.links[0].split("\r\n");
  3323. var i = arr.length;
  3324. while(i--)
  3325. {
  3326. postRequest(arr[i]);
  3327. }
  3328. function postRequest(msLink)
  3329. {
  3330. GM_xmlhttpRequest(
  3331. {
  3332. method: "GET",
  3333. url: msLink,
  3334. headers: {
  3335. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3336. 'Content-Type': 'application/x-www-form-urlencoded',
  3337. 'Referer': ""
  3338. },
  3339. onload: function (result)
  3340. {
  3341. var prZVal = result.responseText.match(/name="(\d+prZVal)" value="(\d+)">/);
  3342. var btn3Name = result.responseText.match(/src="images\/dwn-btn3\.gif" name="(.+?)"/);
  3343. if ((prZVal == null) || (btn3Name == null))
  3344. {
  3345. return;
  3346. }
  3347. GM_xmlhttpRequest(
  3348. {
  3349. method: "POST",
  3350. url: msLink,
  3351. headers: {
  3352. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3353. 'Content-Type': 'application/x-www-form-urlencoded',
  3354. 'Referer': ""
  3355. },
  3356. data: prZVal[1] + "=" + prZVal[2] + '&' + btn3Name[1] + '.x=1&' + btn3Name[1] + '.y=1',
  3357. onload: function (result)
  3358. {
  3359. var res = result.responseText;
  3360. if (res.match(/<div id="err">/))
  3361. {
  3362. DisplayTheCheckedLinks([msLink.match(/\.com(\/\d+)/)[1]], 'adead_link');
  3363. }
  3364. else
  3365. {
  3366. DisplayTheCheckedLinks([msLink.match(/\.com(\/\d+)/)[1]], 'alive_link');
  3367. }
  3368. }
  3369. });
  3370. }
  3371. });
  3372. }
  3373. }
  3374. function ncryptBulkCheck()
  3375. {
  3376. var arr = this.links[0].split("\r\n");
  3377. var i = arr.length;
  3378. while(i--)
  3379. {
  3380. postRequest(arr[i]);
  3381. }
  3382. function postRequest(ncryptLink)
  3383. {
  3384. GM_xmlhttpRequest(
  3385. {
  3386. method: "POST",
  3387. url: 'http://ncrypt.in/api_status.php',
  3388. headers: {
  3389. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3390. 'Content-Type': 'application/x-www-form-urlencoded',
  3391. 'Referer': ""
  3392. },
  3393. data: 'link=' + encodeURI(ncryptLink),
  3394. onload: function (result)
  3395. {
  3396. var foldStatus = result.responseText.match(/(?:offline|online);/);
  3397. switch(foldStatus + ""){
  3398. case "offline;": DisplayTheCheckedLinks([ncryptLink], 'adead_link'); break;
  3399. case "online;": DisplayTheCheckedLinks([ncryptLink], 'alive_link'); break;
  3400. default: DisplayTheCheckedLinks([ncryptLink], 'unava_link');
  3401. }
  3402. }
  3403. });
  3404. }
  3405. }
  3406. function hellshareBulkCheck()
  3407. {
  3408. var links = this.links;
  3409. GM_xmlhttpRequest(
  3410. {
  3411. method: "GET",
  3412. url: 'http://www.hellshare.com',
  3413. headers: {
  3414. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3415. 'Accept': 'text/xml',
  3416. 'Referer': ""
  3417. },
  3418. onload: function (result)
  3419. {
  3420. var domain = result.responseText.match(/param_rau = "www\.hellshare\.(\w+)"/)[1];
  3421.  
  3422. var loc = 'check=Zkontrolovat+dostupnost+soubor%C5%AF&links=';
  3423. if (domain == 'sk')
  3424. loc = 'check=Skontrolova%C5%A5&links=';
  3425. if (domain == 'com')
  3426. loc = 'check=Check+availability&links=';
  3427. if (domain == 'hu')
  3428. loc = 'check=Kontrol%C3%A1lj&links=';
  3429. if (domain == 'pl')
  3430. loc = 'check=Sprawd%C5%BC+dost%C4%99pno%C5%9B%C4%87+plik%C3%B3w&links=';
  3431.  
  3432. genBulkCheck.call({ links: links,
  3433. apiUrl: 'http://www.hellshare.' + domain + '/linkchecker?do=linkChecker-linkcheckerform-submit',
  3434. postData: loc,
  3435. resLinkRegex: /hellshare\.(?:cz|com|sk|hu|pl)\/(?:[\w-\.]+\/|)([\w-\.]+\/\d{5,})/,
  3436. 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,
  3437. resDeadRegex: /<span style="color:gray">.*?<\/span> - <strong>/g,
  3438. resUnavaRegex: null
  3439. });
  3440. }
  3441. });
  3442. }
  3443. /**
  3444. * Displays check result
  3445. * @param {Array} Array of links or link fragments.
  3446. * @param {String} Check result status -> ['alive_link'|'adead_link'|'unava_link']
  3447. */
  3448. function DisplayTheCheckedLinks(links, resultStatus)
  3449. {
  3450. //(a[href*=link_1], a[href*=link_2], ..., a[href*=link_n])
  3451. var $links = $('a[href*="' + links.join('"], a[href*="') + '"]');
  3452. if (Do_not_linkify_DL_links)
  3453. { //TODO into separate jQuery function
  3454. $links.replaceWith(function(){
  3455. return '<span href="' + this.href + '">' + $(this).text() + '</span>';
  3456. });
  3457. $links = $('span[href*="' + links.join('"], span[href*="') + '"]');
  3458. }
  3459. $links.removeClass().addClass(resultStatus);
  3460. $links.each(function() {
  3461. this.href = Ref_anonymize_service + $(this).attr("href");
  3462. });
  3463. switch(resultStatus)
  3464. {
  3465. case "alive_link": cLinksAlive += $links.length;
  3466. if (Display_tooltip_info) $links.mouseover(displayTooltipInfo);
  3467. break;
  3468. case "adead_link": cLinksDead += $links.length;
  3469. if (Display_tooltip_info) $links.mouseover(displayTooltipError);
  3470. break;
  3471. case "unava_link": cLinksUnava += $links.length; break;
  3472. default:
  3473. }
  3474. cLinksProcessed += $links.length;
  3475. }
  3476. }
  3477. // starts bulkchecking
  3478. //
  3479. // params
  3480. // filterId [string] restricts link detection with passed id attribute
  3481. function startBulkCheck(filterId)
  3482. {
  3483. var cHosts = bulkHosts.length;
  3484. if (cHosts == 0) //no filehostings selected
  3485. return;
  3486. // STEP 1 linkify the links
  3487. var linkifyRegex = '';
  3488. var hostIdx = cHosts;
  3489. while(hostIdx--)
  3490. {
  3491. linkifyRegex += bulkHosts[hostIdx].linkRegex + "|";
  3492. }
  3493. linkifyRegex = linkifyRegex.replace(/\|$/, '');
  3494. linkify(linkifyRegex);
  3495. //
  3496. //STEP 2 detect link objects
  3497. var xpathAll = '';
  3498. var hostIdx = cHosts;
  3499. while(hostIdx--)
  3500. {
  3501. xpathAll += bulkHosts[hostIdx].xpath + "|";
  3502. }
  3503. xpathAll = xpathAll.replace(/\]\|\/\/a\[/g, " or ");
  3504. xpathAll = xpathAll.replace(/\]\|/, ')]');
  3505. if (filterId != null) //insert id restriction in the xpath
  3506. {
  3507. xpathAll = xpathAll.replace(/\[/, "[@class='" + filterId + "' and (");
  3508. }
  3509. else
  3510. {
  3511. xpathAll = xpathAll.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  3512. }
  3513. var links = document.evaluate(xpathAll, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  3514. if (filterId == null)
  3515. {
  3516. cLinksTotal += links.snapshotLength;
  3517. }
  3518. //
  3519. //STEP 3 bind links with hostings
  3520. var linkIdx = links.snapshotLength;
  3521. var href = null;
  3522. if (linkIdx == 0) // no links found
  3523. return;
  3524. var name;
  3525. while (linkIdx--)
  3526. {
  3527. href = links.snapshotItem(linkIdx).href;
  3528. try // DO NOT REMOVE, filters crap that went through xpath detection
  3529. {
  3530. name = gimmeHostName(href);
  3531. if (href.match(bulkHostNames[name].linkRegexObject) != null)
  3532. bulkHostNames[name].links.push(href);
  3533. }
  3534. catch(e)
  3535. {
  3536.  
  3537. }
  3538. }
  3539. //
  3540. //STEP 4 process the links for each filehosting
  3541. var hostIdx = cHosts;
  3542. var host;
  3543. var m,n;
  3544. var arr;
  3545. while (hostIdx--)
  3546. {
  3547. host = bulkHosts[hostIdx];
  3548. arr = host.links;
  3549. if (arr.length == 0) //no links for this hosting, skip
  3550. {
  3551. continue;
  3552. }
  3553. //links match corrections
  3554. if (host.corrMatch != null)
  3555. {
  3556. var idx = arr.length;
  3557. while (idx--)
  3558. {
  3559. arr[idx] = arr[idx].match(host.corrMatch)[1];
  3560. }
  3561. }
  3562. //links replace corrections
  3563. if ((host.corrReplWhat != null) && (host.corrReplWith != null))
  3564. {
  3565. var idx = arr.length;
  3566. while (idx--)
  3567. {
  3568. arr[idx] = arr[idx].replace(host.corrReplWhat, host.corrReplWith);
  3569. }
  3570. }
  3571. m = arr.length;
  3572. n = host.blockSize;
  3573. if (m > n)
  3574. {
  3575. //insert block separators (RAND_STRING) into the array
  3576. for(var i = n; i < m; i += n + 1)
  3577. {
  3578. arr.splice(i, 0, RAND_STRING);
  3579. }
  3580. }
  3581.  
  3582. host.func.call({ links: arr.join(host.splitSeparator).split(RAND_STRING),
  3583. apiUrl: host.apiUrl,
  3584. postData: host.postData,
  3585. resLinkRegex: host.resLinkRegex,
  3586. resLiveRegex: host.resLiveRegex,
  3587. resDeadRegex: host.resDeadRegex,
  3588. resUnavaRegex: host.resUnavaRegex
  3589. });
  3590. //clean up
  3591. arr.length = 0;
  3592. }
  3593. //
  3594.  
  3595. function gimmeHostName(link)
  3596. {
  3597. return link.replace(/https?:\/\/.*?http(s)?:\/\//, "http$1://").match(/https?:\/\/(?:www\.|[\w\.])*?([\w-]+)\.(?:co\.uk|co\.nz|\w+)\//)[1];
  3598. }
  3599. }
  3600. function checkLinks(filterId)
  3601. {
  3602. startBulkCheck(filterId);
  3603. start(filterId);
  3604. }
  3605.  
  3606. /**
  3607. * Initialises progress box including event binding and CSS
  3608. */
  3609. function initProgressBox()
  3610. {
  3611. if ($("#warlc-progressbox").length > 0)
  3612. return;
  3613. //progressbox css change size and color of progress box
  3614. GM_addStyle("#warlc-progressbox {position:fixed; background:DimGray;" + Progress_box_background_color +
  3615. "; opacity:" + (Progress_box_opacity / 100) +
  3616. "; bottom:" + Progress_box_pos_bottom +
  3617. "px; right:" + Progress_box_pos_right +
  3618. "px; padding:5px; font-size:20px; font-weight:bold; cursor:default;}\
  3619. \
  3620. .warlc-progressbar {text-align:center; color: DimGray; height:2px; margin-bottom:2px;}\
  3621. \
  3622. .warlc-progressitem {}\
  3623. \
  3624. .alive {color:#00FF7F; " + Live_links_color +
  3625. "; background:transparent url(" + alive_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;} .dead {color:" + Dead_links_color +
  3626. "; background:transparent url(" + adead_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;} .unava {color: " + Temp_unavailable_links_color +
  3627. "; background:transparent url(" + unava_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;} .processing {color:Black; " + Container_links_color +
  3628. "; background:transparent url(" + processing_link_gif + ") no-repeat scroll 100% 50%;padding-right:15px;} .prem {color:" + Premium_links_color +
  3629. "; background:transparent url(" + prem_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;}"
  3630. );
  3631. //
  3632. $('body').append(' <div id="warlc-progressbox">\
  3633. <div class="warlc-progressbar"></div>\
  3634. <span class="warlc-progressitem alive"></span> - \
  3635. <span class="warlc-progressitem dead"></span> - \
  3636. <span class="warlc-progressitem unava"></span> - \
  3637. <span class="warlc-progressitem prem"></span> - \
  3638. <span class="warlc-progressitem processing"></span>\
  3639. </div>');
  3640. $('#warlc-progressbox').hide().click(function(){
  3641. clearInterval(intervalId);
  3642. $(this).hide();
  3643. return false;
  3644. });
  3645. $(".warlc-progressbar").progressbar({complete: function(){
  3646. $(this).fadeOut();
  3647. clearInterval(intervalId); //stop refreshing the stats
  3648. }
  3649. })
  3650. .one('progressbarchange', function(){$('#warlc-progressbox').show();});
  3651. }
  3652. /**
  3653. * Updates progress data in progress box
  3654. */
  3655. function updateProgress()
  3656. {
  3657. if (cLinksTotal) // some links were detected on page
  3658. {
  3659. var percProgress = Math.round(((100 / cLinksTotal) * cLinksProcessed));
  3660. var $progressItems = $('#warlc-progressbox > .warlc-progressitem');
  3661. $(".warlc-progressbar").progressbar('option', 'value', percProgress);
  3662. if ((cLinksTotal - cLinksProcessed) == 0)
  3663. {
  3664. $progressItems.first().text(cLinksAlive)
  3665. .next().text(cLinksDead)
  3666. .next().text(cLinksUnava)
  3667. .next().text(cLinksprem)
  3668. .next().remove();
  3669. $('#warlc-progressbox').html($('#warlc-progressbox').html().substr(0,$('#warlc-progressbox').html().lastIndexOf(">")+1));
  3670. $('#warlc-progressbox div:first-child').remove();
  3671. }
  3672. else
  3673. {
  3674. $progressItems.first().text(cLinksAlive)
  3675. .next().text(cLinksDead)
  3676. .next().text(cLinksUnava)
  3677. .next().text(cLinksprem)
  3678. .next().text(cLinksTotal - cLinksProcessed);
  3679. }
  3680. }
  3681. }
  3682.  
  3683. function check_all_links()
  3684. {
  3685. add_WARLC_style();
  3686.  
  3687. if (Show_progress_stats)
  3688. {
  3689. initProgressBox();
  3690. intervalId = setInterval(function(){updateProgress();}, Progress_box_refresh_rate);
  3691. }
  3692.  
  3693. startBulkCheck(null);
  3694. start(null);
  3695.  
  3696. if (!containers_processed)
  3697. {
  3698. processContainers();
  3699. }
  3700. }
  3701.  
  3702. //Copies all found dead links to clipboard - right now for Scriptish only
  3703. function copy_dead_to_clipboard()
  3704. {
  3705. initClipBoardTools();
  3706.  
  3707. var deadlinksxpath = "//.[@class='adead_link']";
  3708.  
  3709. var foundlinks = document.evaluate(deadlinksxpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  3710. var foundlinkstext = '';
  3711.  
  3712. var foundlinkIdx = foundlinks.snapshotLength;
  3713.  
  3714. while(foundlinkIdx--)
  3715. {
  3716. if (foundlinks.snapshotItem(foundlinkIdx).innerHTML != ' x')
  3717. foundlinkstext += foundlinks.snapshotItem(foundlinkIdx).innerHTML.replace(/\[\/hide:\w+\]/,"") + '\n';
  3718. }
  3719.  
  3720. unsafeWindow.copyToClipboard(foundlinkstext);
  3721. }
  3722.  
  3723. function toggle_autocheck()
  3724. {
  3725. var currentState = GM_getValue("Autocheck", false);
  3726. GM_setValue("Autocheck", !currentState);
  3727.  
  3728. if (currentState == true)
  3729. {
  3730. sendMessage('Autocheck disabled', 'red');
  3731. }
  3732. else
  3733. {
  3734. sendMessage('Autocheck enabled', 'SpringGreen');
  3735. }
  3736. }
  3737. function toggle_Enable_Anonymizer()
  3738. {
  3739. var currentState = GM_getValue("Enable_Anonymizer", false);
  3740. GM_setValue("Enable_Anonymizer", !currentState);
  3741.  
  3742. if (currentState == true)
  3743. {
  3744. GM_setValue("Ref_anonymize_service", "");
  3745. sendMessage('Anonymizer Disabled', 'red');
  3746. }
  3747. else
  3748. {
  3749. GM_setValue("Ref_anonymize_service", "http://hiderefer.com/?");
  3750. sendMessage('Anonymizer Enabled', 'SpringGreen');
  3751. }
  3752. }
  3753.  
  3754. function KeyDownHandler(event)
  3755. {
  3756. var kcode = (event.keyCode) ? event.keyCode : event.which;
  3757. if (event.ctrlKey && event.altKey)
  3758. {
  3759. switch(kcode)
  3760. {
  3761. case 65 : check_all_links(); break;
  3762. case 67 : configuration(); break;
  3763. case 68 : copy_dead_to_clipboard(); break;
  3764. case 87 : toggle_autocheck(); break;
  3765. case 90 : toggle_Enable_Anonymizer(); break;
  3766. }
  3767. }
  3768. }
  3769.  
  3770. //
  3771. //
  3772. // SCRIPT EXECUTION START POINT
  3773. //
  3774. //
  3775. // Safari specific GM_getResourceText override
  3776. if (navigator.userAgent.indexOf('Safari') != -1 && navigator.userAgent.indexOf('Chrome') == -1)
  3777. {
  3778. GM_getResourceText = function(res) {
  3779. var $cssText = GM_getValue("jquery_css", "");
  3780. if ($cssText == "")
  3781. {
  3782. GM_xmlhttpRequest(
  3783. {
  3784. method: 'GET',
  3785. url: 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css',
  3786. onload: function (result)
  3787. {
  3788. GM_setValue("jquery_css", result.responseText);
  3789. window.location.reload();
  3790. }
  3791. });
  3792. }
  3793. else
  3794. {
  3795. return $cssText;
  3796. }
  3797. }
  3798. }
  3799. var jQueryUICSS = GM_getResourceText("jQueryUICSS");
  3800. GM_addStyle(jQueryUICSS);
  3801. //init the stuff
  3802. setVariables();
  3803. initBulkCheck();
  3804. //init info boxes
  3805. messageBox.style.position = 'fixed';
  3806. messageBox.style.top = '20px';
  3807. messageBox.style.left = '10px';
  3808. messageBox.style.opacity = '0.85';
  3809. messageBox.style.background = 'DimGray';
  3810. messageBox.style.fontSize = '36px';
  3811. document.body.appendChild(messageBox);
  3812.  
  3813. //register GM menu commands & keyboard shortcut event handler
  3814. if (Keyboard_functions)
  3815. {
  3816. $(document).keydown(KeyDownHandler);
  3817. GM_registerMenuCommand("[W.A.R. Links Checker] Configuration (" + first_key_keycodename + "+" + second_key_keycodename + "+" + String.fromCharCode(CONFIGURATION_KEYCODE) + ")", configuration);
  3818. 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);
  3819. }
  3820. else
  3821. {
  3822. GM_registerMenuCommand("[W.A.R. Links Checker] Configuration", configuration);
  3823. GM_registerMenuCommand("[W.A.R. Links Checker] Check The Links In This Page", check_all_links);
  3824. }
  3825.  
  3826. //start linkchecking
  3827. if (Autocheck)
  3828. {
  3829. $(document).ready(check_all_links);
  3830. }
  3831.  
  3832. //
  3833. //
  3834. // SCRIPT EXECUTION END POINT
  3835. //
  3836. //
  3837.  
  3838. //shows configuration box
  3839. function configuration()
  3840. {
  3841.  
  3842. //prevent multiple creating of config window
  3843. if ($("#hideshow").length)
  3844. {
  3845. $("#hideshow").show();
  3846. return;
  3847. }
  3848.  
  3849. var configcss = '\
  3850. .popup_block .popup fieldset{\
  3851. padding: 1%;\
  3852. border-style: solid;\
  3853. border-width: 1px;\
  3854. border-color: gray;\
  3855. margin-bottom: 1px;\
  3856. }\
  3857. #h3hideshowtitle{\
  3858. font-size: 2em;\
  3859. }\
  3860. #h3hideshow{\
  3861. font-size: 1.5em;\
  3862. }\
  3863. #imghideshow {\
  3864. border: none;\
  3865. }\
  3866. #plusimage{\
  3867. display:inline;\
  3868. }\
  3869. #hideshow {\
  3870. position: fixed;\
  3871. width: 100%;\
  3872. height: 100%;\
  3873. top: 0;\
  3874. left: 0;\
  3875. font-size:12px;\
  3876. z-index:2147483645;\
  3877. text-align:left;\
  3878. }\
  3879. #fade {\
  3880. background: #000;\
  3881. position: fixed;\
  3882. width: 100%;\
  3883. height: 100%;\
  3884. opacity: .80;\
  3885. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";\
  3886. left: 0;\
  3887. z-index: 10;\
  3888. }\
  3889. .popup_block {\
  3890. font-family:verdana;\
  3891. color:black;\
  3892. background: #ddd;\
  3893. padding: 10px 20px;\
  3894. border: 2px solid DarkOrange;\
  3895. float: left;\
  3896. width: 700px;\
  3897. position: absolute;\
  3898. top: 7%;\
  3899. left: 50%;\
  3900. bottom: 7%;\
  3901. margin: 0 0 0 -350px;\
  3902. -moz-border-radius:10px;\
  3903. z-index: 100;\
  3904. \
  3905. }\
  3906. .popup_block .popup {\
  3907. float: left;\
  3908. width: 100%;\
  3909. background: #fff;\
  3910. margin: 10px 0;\
  3911. padding: 0px 0 0px;\
  3912. border-left: 1px solid #bbb;\
  3913. border-top: 1px solid #bbb;\
  3914. border-right: 1px solid #bbb;\
  3915. }\
  3916. #h3hideshow{\
  3917. margin: 1px 0 0px;\
  3918. padding: 1px 10px;\
  3919. border-bottom: 1px solid #bbb;\
  3920. font-size: 1.5em;\
  3921. font-weight: normal;\
  3922. cursor:pointer;\
  3923. background:#DDDDDD none repeat scroll 0 0;\
  3924. }\
  3925. #h3hideshow:hover{\
  3926. background:#C0BEBE none repeat scroll 0 0;\
  3927. }\
  3928. #h3hideshowtitle{\
  3929. margin: 2px 0 0px;\
  3930. padding: 7px 10px;\
  3931. border-bottom: 1px solid #bbb;\
  3932. font-size: 1.5em;\
  3933. font-weight: normal;\
  3934. }\
  3935. .popup_block .popup a {\
  3936. color:DarkSkyBlue;\
  3937. text-decoration:none;\
  3938. }\
  3939. .popup p {\
  3940. padding: 1px 10px;\
  3941. margin: 0px 0;\
  3942. -x-system-font:none;\
  3943. font-family:verdana,geneva,lucida,"lucida grande",arial,helvetica,sans-serif;\
  3944. font-size:10pt;\
  3945. font-size-adjust:none;\
  3946. font-stretch:normal;\
  3947. font-style:normal;\
  3948. font-variant:normal;\
  3949. font-weight:normal;\
  3950. line-height:normal;\
  3951. }\
  3952. #sites {\
  3953. padding: 1px 10px;\
  3954. margin: 0px 0;display:inline-block;width:16em;\
  3955. }\
  3956. #dev_ver {\
  3957. color: #00FF00;\
  3958. background: Black;\
  3959. text-align: right;\
  3960. }\
  3961. #sites_suspended {\
  3962. padding: 1px 10px;\
  3963. margin: 0px 0;display:inline-block;width:16em;\
  3964. text-decoration: line-through;\
  3965. }\
  3966. .popup img.cntrl {\
  3967. position: absolute;\
  3968. right: -15px;\
  3969. top: -15px;\
  3970. }\
  3971. #bulk {\
  3972. font-size:8pt;\
  3973. color:orange;\
  3974. padding: 1px 10px;\
  3975. margin: 0px 0;\
  3976. display:inline-block;\
  3977. width:100px;\
  3978. }\
  3979. #note {\
  3980. font-size:7pt;\
  3981. color:gray;\
  3982. padding: 1px 10px;\
  3983. margin: 0px 0;display:inline-block;\
  3984. min-width:100px;\
  3985. }\
  3986. #rednote {\
  3987. font-size:7pt;\
  3988. color:red;\
  3989. padding: 1px 10px;\
  3990. margin: 0px 0;display:inline-block;\
  3991. }\
  3992. #configinfo {\
  3993. font-size:8pt;\
  3994. color:gray;\
  3995. padding: 1px 10px;\
  3996. margin: 0px 0;display:inline-block;width:60em;\
  3997. }\
  3998. #refAnonymizer, #inputColorLive, #inputColorprem, #hostSearchBox2, #hostSearchBox, #inputColorDead, #inputColorTemp, #inputColorCont, #selectAllButton, #selectNoneButton, #invertButton, #selectAllButton2, #selectNoneButton2, #invertButton2 {\
  3999. color:black;\
  4000. border-style: solid;\
  4001. border-width: 1px;\
  4002. border-color: gray;\
  4003. }\
  4004. #h3hideshowcontent {\
  4005. min-height:220px;\
  4006. max-height:220px;\
  4007. overflow:auto;\
  4008. display: none;\
  4009. padding: 10px 10px;\
  4010. }\
  4011. #specinfo{\
  4012. font-size:14px;\
  4013. }\
  4014. .warlc-ui-tab {\
  4015. height:300px;\
  4016. overflow:auto;\
  4017. }\
  4018. #warlcsitelist2, #warlcsitelist1 {\
  4019. height:220px;\
  4020. border-top: 1px solid #ddd;\
  4021. padding-top: 5px;\
  4022. overflow:auto;\
  4023. }\
  4024. input:hover+label {\
  4025. background:#F1F77C;\
  4026. font-size:110%;\
  4027. }\
  4028. ';
  4029.  
  4030. GM_addStyle(configcss);
  4031.  
  4032. var customRulesRefHTML =
  4033. '\
  4034. <br>\
  4035. A custom rule consists of <b>commands</b>. A command must be on its own line and in this form:<br>\
  4036. <b>@keyword</b> <i>parameter</i>\
  4037. <br><br>\
  4038. 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. \
  4039. <br><br>\
  4040. 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.\
  4041. 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.\
  4042. 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.\
  4043. 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,\
  4044. but all commands until the next valid @customrule are ignored.<br><br>\
  4045. Available forms and types:\
  4046. <ul>\
  4047. <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.\
  4048. <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.\
  4049. <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.\
  4050. <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.\
  4051. </ul>\
  4052. Other available commands:<br>\
  4053. (Note: There can be more than 1 (up to 10) of these commands per rule. In that case, any of them will work.)\
  4054. <ul>\
  4055. <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.\
  4056. It can also specify multiple (up to 10) Top Level Domains (.com, .net etc.)<br>\
  4057. <ul>examples:<br>\
  4058. <li>good: <i>filehost.com/download/</i><br>\
  4059. <li>good: <i>download.filehost.net/?d=</i><br>\
  4060. <li>good: <i>filehost. com net co.uk /</i> - multiple TLDs (note the spaces before, between and after TLDs)<br>\
  4061. <li>ok: <i>filehost.com/</i> - works, but will also find links like filehost.com/login etc. Sometimes it\'s unavoidable though.<br>\
  4062. <li>bad: <i>d8523.filehost.com/</i> - d8523 probably is not constant<br>\
  4063. <li>bad: <i>filehost.com/3bfiq5d1</i> - 3bfiq5d1 probably is not constant<br>\
  4064. <li>bad: <i>filehost.com</i> - no slash<br>\
  4065. </ul>\
  4066. \
  4067. <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.\
  4068. 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 \
  4069. &lt;div&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;p&gt; even if there are new lines, tabulators etc.\
  4070. <li><b>@deadmatch</b> <i>pattern</i> - ignored for OBSOLETE, required for others. (For HEADERS some servers return 404 Error \
  4071. 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.)\
  4072. Two spaces again match any whitespace.\
  4073. <li><b>@unavamatch</b> <i>pattern</i> - optional, ignored for OBSOLETE and HEADERS. If found, the link is deemed temporarily unavailable.\
  4074. Two spaces again match any whitespace.\
  4075. <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. \
  4076. <li><b>@deadlink</b> <i>url</i> - optional. Example dead link.\
  4077. </ul>\
  4078. \
  4079. ';
  4080.  
  4081. //close image and css taken from = http://www.sohtanaka.com/web-design/examples/css-popup icon_close.png;
  4082. var configurationinnerHTML =
  4083. '<div id="fade"></div>\
  4084. <div class="popup_block">\
  4085. <div class="popup">\
  4086. <a href="#"><img id="imghideshow" title="Close" class="cntrl" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAfCAYAAAD0ma06AAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAY1SURBVHjapFZbbFRVFN0zd6Yz08dMoUNf9EGxUItJK62I4AOJEYiQoqE+0OgHCiqG+PgQozH6ofyIJiYEMRqNJpggHySlrRM+hCAtajAUaGgEi9BBSilMO0PnfWeOa597bjt9AEVvsubOPWefs/br7H0sQgj6P4/FYrk9+WkSuoAHgCrgLvV9DLgMdID02rQZmfAmaAJaxS2edDr9s67rL7EB/9XCUuALoEl+pZJEvTAo8A9s6iVKxojKYWheAWxuIMr2GGKp1KHh4eF3vF4vW59me6ZD2Ajsle6LXify7SI68iNROIgtIKtpBvQEB5DI7iC6Zw3Rmi1EM0vlBsFg8OX8/PxvWQdFKm5E2KhiQ9R9iOjL17E6QFRUhAGQpFNjklYrhhT6YbndTtT8LtGjG+T0lStXNhcVFTGpnkE8jpAT4hdgNvm+Ivr+AyIHtM+Fu3Ss0RUZO8pqqos/NiDLblgcQO48/CzRpk/l9KlTp56oq6s7gL8JkzST0AespN9/Itq2Hu7xQnsbRFOcWSBKT50FVpMUHrBD/iKsXb+V6KmtFI/H/3Q6nZzdEZPU1PVFSXbtEoltz0Nzm2HRqleIvjsLa/9CoiSnBs99cwaym4lCYSRSHr4/REg64SBHTX9//2fqGNmVevJ5jn/0Xe+Rhd2SBVdGkInr3hizZI8fOibGg8fM5/EthgIJwxPJ7a/Jd05Ozn14uQEHGRGXsVtOIwHS2nbDlTOIYlHoMoUL9w0Q/GSA/0/KeXglFmEWsp/uIjp9FAbnzWttbV3H3ECWFWdnubTuSBulQ9AwDs2jcSPGby6evGn7sIGJzwuzDUViMekdAZ0jrXvlVGVl5RK8ctlKq6ZpHFSKdBzCwSVjQRILAzh3508TPe29dbl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qNRu1qixxC3hASiwOser1sdtP9kZeBTUBZPIY/HAKtRyXDB6++kieVlnZg72iNfA14/qa4HVwasTnmuLzQm3STrtxRUmetW/OXsg3hOh9Z9CTtT+FDsfO7ff2djyVfb5xlrNuxoygQLwbHgUAEjnwIi5dm3J4zsgTYNbqfHAC2H0m7ibf608V7B53urOYngWJ1/YoXS2+bMq9oUuiIbgSYvjQQ6P6b03hsv+trmm3I3GtNZQUUvT1wz6YsnQf0U8CTFHgrFZDw1Hnfl34da2vcFCFTAMqYaBr07nD40/IebZui1t9qqWgE3t6uOfCB3gF8FegrBB6x5qrri9688a+JYN6UK57eijDo2HI2+8/HB/8AVAHlQCfQCvz7chOIBTzS1FocNEx1VSNjHmFWS9jvC6mk11QWAbePhl4K/JWa1fbSypU2uSsI8ZgnEyG2wE9igb/Fa7f9MHGTQuANdbcGLzyFV2smiukr7Siw4WqGvZhlqznxhX7cTzmXayA234c33lqFcjneIqZfxX1TJr+t4dWtcUGXgusNgaPLwvQpgJjHcK8EPOAM6J7+vblEfK0fZ9RoqwAnpTnznsN/2jOkuvOUNvmpXmMTrrQuoJWGj36bAugAMhSo2cnsgUil2fb5LRHi1/jRGlJHc5zenaV7p0PyRB7XkR7vfa4IlZtT69fbVKywyafh8HODHN+WfhH4FnD2alN1B7AdOAcMeT29HfiZJ5oZ3sHrgAeBvcCANzBsHu7Ohe2/AwDnNnxcIIMIUgAAAABJRU5ErkJggg=="></img>&nbsp;W.A.R. Links Checker Customized Premium Link version Configuration</div>\
  4088. <div id="warlc-conf-tabs">\
  4089. <ul>\
  4090. <li><a href="#tabs-1">Filehostings</a></li>\
  4091. <li><a href="#tabs-2">Containers</a></li>\
  4092. <li><a href="#tabs-5">Custom rules</a></li>\
  4093. <li><a href="#tabs-3">Settings</a></li>\
  4094. <li><a href="#tabs-4">About</a></li>\
  4095. </ul>\
  4096. <div id="tabs-1" class="warlc-ui-tab">\
  4097. <div class="warlc-ui-buttonset">\
  4098. <input type="button" class="warlc-ui-select-all" value="Select All">\
  4099. <input type="button" class="warlc-ui-select-none" value="Select None">\
  4100. <input type="button" class="warlc-ui-select-invert" value="Invert">\
  4101. </div><br>\
  4102. <div>Search: <input type="textbox" id="hostSearchBox" value=""></div><br>\
  4103. <div id="warlcsitelist1"><span>Empty</span></div>\
  4104. </div>\
  4105. <div id="tabs-2" class="warlc-ui-tab">\
  4106. <div class="warlc-ui-buttonset">\
  4107. <input type="button" class="warlc-ui-select-all" value="Select All">\
  4108. <input type="button" class="warlc-ui-select-none" value="Select None">\
  4109. <input type="button" class="warlc-ui-select-invert" value="Invert">\
  4110. </div><br>\
  4111. <div>Search: <input type="textbox" id="hostSearchBox2" value=""></div><br>\
  4112. <div id="warlcsitelist2"><span>Empty</span></div>\
  4113. </div>\
  4114. <div id="tabs-5" class="warlc-ui-tab">\
  4115. <div class="warlcsettings">\
  4116. <fieldset><input type="checkbox" id="Custom_rules"> Enable custom rules <div id="bulk">EXPERIMENTAL</div></fieldset>\
  4117. <br>\
  4118. <div>Edit custom rules: \
  4119. <a href="#" id="showCustomRulesReference">(<b>Click here to show/hide the reference</b>)</a>\
  4120. <div id="customRulesReference" style="display:none;">'
  4121. + customRulesRefHTML + '\
  4122. </div>\
  4123. <textarea style="width:100%;height:200px;" id="Custom_rules_text"></textarea>\
  4124. </div>\
  4125. </div>\
  4126. </div>\
  4127. <div id="tabs-3" class="warlc-ui-tab">\
  4128. <div class="warlcsettings">\
  4129. <fieldset>\
  4130. <p><input type="checkbox" id="Keyboard_functions"> Enable keyboard shortcuts</p>\
  4131. <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>\
  4132. </fieldset>\
  4133. <fieldset>\
  4134. <p><input type="checkbox" id="Color_DL_links"> Color DL links</p>\
  4135. <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>\
  4136. <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>\
  4137. <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>\
  4138. <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>\
  4139. <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>\
  4140. <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>\
  4141. <p><input type="checkbox" id="Show_line_through_in_dead_links"> Show line through in dead links</p>\
  4142. <p><input type="checkbox" id="Show_black_background_in_DL_links"> Show black background in DL links</p>\
  4143. <p><input type="checkbox" id="Do_not_linkify_DL_links"> Do NOT linkify DL links</p>\
  4144. <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>\
  4145. <p><input type="checkbox" id="Display_full_links_in_link_containers"> Display full links in link containers</p><br>\
  4146. <fieldset>\
  4147. <p><input type="radio" name="warlciconset" value="0"> No icons</p>\
  4148. <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>\
  4149. <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>\
  4150. <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>\
  4151. </fieldset>\
  4152. </fieldset>\
  4153. <fieldset>\
  4154. <div id="sites"><input type="checkbox" id="Autocheck"> Autocheck</div><br><div id="configinfo">Script starts check automatically.</div><br>\
  4155. </fieldset>\
  4156. <fieldset>\
  4157. <div id="sites"><input type="checkbox" id="Show_progress_stats"> Show progress stats</div><br>\
  4158. </fieldset>\
  4159. <fieldset>\
  4160. <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>\
  4161. </fieldset>\
  4162. <fieldset>\
  4163. <p><input type="checkbox" id="Enable_Anonymizer"> Enable Anonymizer</div><div id="bulk">EXPERIMENTAL Note: Checkbox does not work use CTRL+ALT+Z.</p>\
  4164. <div id="sites"><label for="refAnonymizer">Refererer anonymizing service</label><input type="text" id="refAnonymizer" value="' + Ref_anonymize_service + '"></div>\
  4165. </fieldset>\
  4166. </div>\
  4167. </div>\
  4168. <div id="tabs-4" class="warlc-ui-tab">\
  4169. <p><b>Author:</b> <a href="http://www.mentalps.5gbfree.com/viewtopic.php?f=2&t=6">mentalps</a></p>\
  4170. <br />\
  4171. <p><b>Currently supported:</b><br>\
  4172. Filehostings: ' + allHostNames.length + '<br />\
  4173. Containers: ' + allContainerNames.length + '<br />\
  4174. Obsolete sites: ' + allObsoleteNames.length + '<br /></p>\
  4175. <br />\
  4176. <p><b>Based on:</b><br>\
  4177. <a href="http://userscripts-mirror.org/scripts/show/125631.html">W.A.R. Links Checker - Dev</a></p>\
  4178. <br />\
  4179. <p><b>Uses:</b></p>\
  4180. <p>adam_3\'s <a href="http://userscripts-mirror.org/scripts/show/2254">Linkify ting</a> (modified)</p>\
  4181. <p><a href="http://jquery.com/">jQuery</a> JavaScript Library</p>\
  4182. <br />\
  4183. <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>\
  4184. </div>\
  4185. </div>\
  4186. </div>\
  4187. </div>';
  4188. $('body').append('<div id="hideshow">' + configurationinnerHTML + '</div>');
  4189. $("#warlc-conf-tabs").tabs({ fx: { opacity: 'toggle', duration: 'fast' } });
  4190. $("#imghideshow").click(function(event){$("#hideshow").hide(); event.preventDefault();});
  4191. var elmHostList = document.getElementById("warlcsitelist1");
  4192. var elmContainerList = document.getElementById("warlcsitelist2");
  4193. buildSettings();
  4194. buildSitelist("", allHostNames, elmHostList);
  4195. buildSitelist("", allContainerNames, elmContainerList);
  4196. if (DEBUG_MODE)
  4197. {
  4198. //log all sites availability status
  4199. diagSites();
  4200. }
  4201. //handler for checkbox state change
  4202. function changeConfiguration(e)
  4203. {
  4204. var element = e.target;
  4205.  
  4206. if (element.type == 'checkbox')
  4207. {
  4208. if (element.checked == 1)
  4209. {
  4210. GM_setValue(element.id, true);
  4211. }
  4212. else
  4213. {
  4214. GM_setValue(element.id, false);
  4215. }
  4216.  
  4217. }
  4218. setVariables();
  4219. }
  4220.  
  4221. //Selects all filehosting checkboxes
  4222. function selectAll()
  4223. {
  4224. $(":checkbox:visible:not(:checked)").prop("checked",true)
  4225. .each(function(index, element){GM_setValue(this.id, true)});
  4226. }
  4227.  
  4228. //Deselects all filehosting checkboxes
  4229. function selectNone()
  4230. {
  4231. $(":checkbox:visible:checked").prop("checked",false)
  4232. .each(function(index, element){GM_setValue(this.id, false)});
  4233. }
  4234.  
  4235. //Inverts filehosting checkboxes selection
  4236. function selectInvert()
  4237. {
  4238. var $checked = $(":checkbox:visible:checked");
  4239. var $unchecked = $(":checkbox:visible:not(:checked)");
  4240. $unchecked.prop("checked",true)
  4241. .each(function(index, element){GM_setValue(this.id, true)});
  4242. $checked.prop("checked",false)
  4243. .each(function(index, element){GM_setValue(this.id, false)});
  4244. }
  4245. //toggles anonymizer on off
  4246. function Enable_Anonymizer()
  4247. {
  4248. var $checked = $(":checkbox:visible:checked");
  4249. var $unchecked = $(":checkbox:visible:not(:checked)");
  4250. $unchecked.prop("checked",true)
  4251. .each(function(index, element){GM_setValue(this.id, true)});
  4252. $checked.prop("checked",false)
  4253. .each(function(index, element){GM_setValue(this.id, false)});
  4254. }
  4255.  
  4256. function changeRefAnonymizer(){
  4257. GM_setValue("Ref_anonymize_service", $("#refAnonymizer").attr("value"));
  4258. }
  4259.  
  4260. //Sets live links color
  4261. function changeColorLive()
  4262. {
  4263. var inColorLive = document.getElementById("inputColorLive");
  4264. inColorLive.style.background = inColorLive.value;
  4265. GM_setValue("Live_links_color", inColorLive.value);
  4266. }
  4267.  
  4268. //Sets dead links color
  4269. function changeColorDead()
  4270. {
  4271. var inColorDead = document.getElementById("inputColorDead");
  4272. inColorDead.style.background = inColorDead.value;
  4273. GM_setValue("Dead_links_color", inColorDead.value);
  4274. }
  4275.  
  4276. //Sets temp. unavailable links color
  4277. function changeColorTemp()
  4278. {
  4279. var inColorTemp = document.getElementById("inputColorTemp");
  4280. inColorTemp.style.background = inColorTemp.value;
  4281. GM_setValue("Temp_unavailable_links_color", inColorTemp.value);
  4282. }
  4283.  
  4284. //Sets temp. unavailable links color
  4285. function changeColorCont()
  4286. {
  4287. var inColorCont = document.getElementById("inputColorCont");
  4288. inColorCont.style.background = inColorCont.value;
  4289. GM_setValue("Container_links_color", inColorCont.value);
  4290. }
  4291. //Sets premium. links color
  4292. function changeColorprem()
  4293. {
  4294. var inColorprem = document.getElementById("inputColorprem");
  4295. inColorprem.style.background = inColorprem.value;
  4296. GM_setValue("Premium_links_color", inColorprem.value);
  4297. }
  4298.  
  4299. //Diagnose sites for availability
  4300. function diagSites()
  4301. {
  4302. var boxes = document.getElementById("warlcsitelist1").getElementsByTagName("input");
  4303.  
  4304. for (var i = 0, n = boxes.length - 1; i < n; i++)
  4305. {
  4306. if (boxes[i].type == "checkbox")
  4307. {
  4308. checkAvailability(boxes[i]);
  4309. }
  4310. }
  4311.  
  4312. boxes = document.getElementById("warlcsitelist2").getElementsByTagName("input");
  4313.  
  4314. for (var i = 0, n = boxes.length - 1; i < n; i++)
  4315. {
  4316. if (boxes[i].type == "checkbox")
  4317. {
  4318. checkAvailability(boxes[i]);
  4319. }
  4320. }
  4321.  
  4322. function checkAvailability(cbElm)
  4323. {
  4324. var cb = cbElm;
  4325. GM_xmlhttpRequest(
  4326. {
  4327. method: 'HEAD',
  4328. url: 'http://' + cb.nextSibling.textContent.replace(' ', ''),
  4329. headers: {
  4330. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  4331. 'Accept': 'text/xml',
  4332. 'Referer': ""
  4333. },
  4334. onload: function (result)
  4335. {
  4336. if (result.status != 200)
  4337. {
  4338. GM_log(cb.nextSibling.textContent + ' --- status: [' + result.status + '] ' + result.statusText + ', final url: ' + result.finalUrl);
  4339. }
  4340. },
  4341. onerror: function (result)
  4342. {
  4343. if (result.status != 200)
  4344. {
  4345. GM_log(cb.nextSibling.textContent + ' --- status: [' + result.status + '] ' + result.statusText + ', final url: ' + result.finalUrl);
  4346. }
  4347. }
  4348. });
  4349. }
  4350. }
  4351. function buildSettings()
  4352. {
  4353. $(".warlcsettings :checkbox").each(function(){
  4354. $(this).prop("checked", GM_getValue($(this).attr("id")))
  4355. .click(function(e){
  4356. GM_setValue($(this).attr("id"), $(this).prop("checked"));
  4357. setVariables();
  4358. });
  4359. })
  4360. }
  4361. //Dynamic build of host list
  4362. //param search [string] searches for hostnames matching search substring
  4363. //param siteNames [array] array of site names
  4364. //param targetNode [DOM Node] where the list should be built
  4365. // first child node is replaced
  4366. function buildSitelist(search, siteNames, targetNode)
  4367. {
  4368. var searchRegex = new RegExp("\\|?([\\w\\.-]*" + search.replace(/\./g,"\\.").replace(/-/g, "\\-") + "[\\w\\.-]*)\\|?", "i");
  4369. var $targetNode = $(targetNode).empty();
  4370. var searchedSite = "";
  4371. $.each(siteNames, function(i, site){
  4372. if (searchedSite = site.match(searchRegex))
  4373. {
  4374. var baseSite = site.replace(/\|.+/, ""); //filehosting main domain
  4375. //ensuring backward compatibility with the rest of code, to be refactored later
  4376. var oldRSLCvalue = "Check_" + baseSite.replace(/\|.+/, "").replace(/\./g,"_dot_").replace(/-/g, "_dash_") + "_links";
  4377. //
  4378. $targetNode.append('<input type="checkbox" id="' + oldRSLCvalue +'" />\
  4379. <label for="' + oldRSLCvalue + '">' + searchedSite[1] + '</label>' +
  4380. ((searchedSite[1] != baseSite) ? ('<div id="note"> ( ~ ' + baseSite + ' )</div>') : (""))
  4381. );
  4382. $("#" + oldRSLCvalue).prop("checked", GM_getValue(oldRSLCvalue, false))
  4383. .change(changeConfiguration);
  4384. $targetNode.append('<br />');
  4385. }
  4386. });
  4387. $targetNode.append("<hr>");
  4388. //obsolete hosts checkbox
  4389. $targetNode.append('<input type="checkbox" id="Obsolete_file_hosts" /><label for="Obsolete_file_hosts">Obsolete file hosts</label>');
  4390. $("#Obsolete_file_hosts").prop("checked", GM_getValue("Obsolete_file_hosts", false))
  4391. .change(changeConfiguration);
  4392. $targetNode.append('<br />');
  4393. var foundName = "";
  4394. $.each(allObsoleteNames, function(i, site){
  4395. if (foundName = allObsoleteNames[i].match(searchRegex))
  4396. {
  4397. $targetNode.append('<div id="note">' + foundName[1] + '</div>');
  4398. }
  4399. })
  4400. }
  4401. var hostSearchBox = document.getElementById("hostSearchBox");
  4402. hostSearchBox.addEventListener('keyup', function(){buildSitelist(hostSearchBox.value, allHostNames, elmHostList);}, false);
  4403. var hostSearchBox2 = document.getElementById("hostSearchBox2");
  4404. hostSearchBox2.addEventListener('keyup', function(){buildSitelist(hostSearchBox2.value, allContainerNames, elmContainerList);}, false);
  4405. $(".warlc-ui-select-all").click(selectAll).button();
  4406. $(".warlc-ui-select-none").click(selectNone).button();
  4407. $(".warlc-ui-select-invert").click(selectInvert).button();
  4408. $(".warlc-ui-buttonset").buttonset();
  4409. var inColorLive = document.getElementById("inputColorLive");
  4410. inColorLive.addEventListener('keyup', changeColorLive, false);
  4411.  
  4412. var inColorDead = document.getElementById("inputColorDead");
  4413. inColorDead.addEventListener('keyup', changeColorDead, false);
  4414.  
  4415. var inColorTemp = document.getElementById("inputColorTemp");
  4416. inColorTemp.addEventListener('keyup', changeColorTemp, false);
  4417.  
  4418. var inColorCont = document.getElementById("inputColorCont");
  4419. inColorCont.addEventListener('keyup', changeColorCont, false);
  4420. var inColorprem = document.getElementById("inputColorprem");
  4421. inColorprem.addEventListener('keyup', changeColorprem, false);
  4422. $("#refAnonymizer").change(changeRefAnonymizer);
  4423. //buttons and edit boxes init end
  4424.  
  4425. //icon sets radio buttons
  4426. var radioButtons = document.getElementsByName("warlciconset");
  4427. radioButtons[Icon_set].checked = "checked";
  4428.  
  4429. radioButtons[0].addEventListener("change", updateIconSet);
  4430. radioButtons[1].addEventListener("change", updateIconSet);
  4431. radioButtons[2].addEventListener("change", updateIconSet);
  4432. radioButtons[3].addEventListener("change", updateIconSet);
  4433. function updateIconSet()
  4434. {
  4435. GM_setValue("Icon_set", this.value * 1);
  4436. }
  4437. //
  4438. $('#showCustomRulesReference').click(function(e){
  4439. e.preventDefault();
  4440. $('#customRulesReference').toggle();
  4441. });
  4442. $('#Custom_rules_text')
  4443. .val(Custom_rules_text)
  4444. .change(saveCustomRules);
  4445. function saveCustomRules(e)
  4446. {
  4447. var cr = parseCustomRules(this.value);
  4448. if (cr.info.length)
  4449. 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, ' '));
  4450. GM_setValue('Custom_rules_text', this.value);
  4451. GM_setValue('last_custom_rules_nag', ''+new Date().getTime()); //reset nag
  4452. }
  4453. }
  4454.  
  4455. //begin standard link checking algorithm
  4456. function start(filterId)
  4457. {
  4458. var doNotLinkify = Do_not_linkify_DL_links;
  4459.  
  4460. // USER SELECTED FILE HOSTS INITIALIZATION START
  4461. var http_file_hosts = new Array(); //standard hostings
  4462. var http_file_hosts_coded = new Array(); //hostings which has to be decoded to obtain real checkable link
  4463. var http_file_hosts_obsolete = new Array(); //dead hostings
  4464. var http_file_hosts_headers_only = new Array(); //hostings with direct download, must be handled via headers only
  4465.  
  4466. initFileHosts();
  4467. initFileHostsHeadersOnly();
  4468. initFileHostsCustom(); //CustomRules
  4469. // USER SELECTED FILE HOSTS INITIALIZATION END
  4470.  
  4471. // LINKIFICATION START
  4472. var totalxpath = '';
  4473. var totalxpathcoded = '';
  4474. var totalxpathobsolete = '';
  4475. var totalxpathheadersonly = '';
  4476. var totalourls = '';
  4477.  
  4478. var filehostLen = http_file_hosts.length;
  4479. var filehostCodedLen = http_file_hosts_coded.length;
  4480. var filehostObsoleteLen = http_file_hosts_obsolete.length;
  4481. var filehostHeadersOnlyLen = http_file_hosts_headers_only.length;
  4482.  
  4483. var filehostIdx = filehostLen;
  4484. var filehostCodedIdx = filehostCodedLen;
  4485. var filehostObsoleteIdx = filehostObsoleteLen;
  4486. var filehostHeadersOnlyIdx = filehostHeadersOnlyLen;
  4487.  
  4488. if ((filehostIdx == 0) && (filehostCodedIdx == 0) && (filehostHeadersOnlyIdx == 0) && (filehostObsoleteIdx == 0))
  4489. return;
  4490.  
  4491. while (filehostIdx--)
  4492. {
  4493. totalourls += http_file_hosts[filehostIdx][0] + '|';
  4494. totalxpath += http_file_hosts[filehostIdx][4] + '|';
  4495. }
  4496.  
  4497. while (filehostCodedIdx--)
  4498. {
  4499. totalourls += http_file_hosts_coded[filehostCodedIdx][0] + '|';
  4500. totalxpathcoded += http_file_hosts_coded[filehostCodedIdx][3] + '|';
  4501. }
  4502.  
  4503. while (filehostObsoleteIdx--)
  4504. {
  4505. totalourls += http_file_hosts_obsolete[filehostObsoleteIdx][0] + '|';
  4506. totalxpathobsolete += http_file_hosts_obsolete[filehostObsoleteIdx][1] + '|';
  4507. }
  4508.  
  4509. while (filehostHeadersOnlyIdx--)
  4510. {
  4511. totalourls += http_file_hosts_headers_only[filehostHeadersOnlyIdx][0] + '|';
  4512. totalxpathheadersonly += http_file_hosts_headers_only[filehostHeadersOnlyIdx][3] + '|';
  4513. }
  4514.  
  4515. totalourls = totalourls.replace(/\|$/g, "");
  4516. //TODO: further refactoring needed
  4517. totalxpath = totalxpath.replace(/\]\|\/\/a\[/g, " or ");
  4518. totalxpath = totalxpath.replace(/\]\|/, ')]');
  4519. totalxpathcoded = totalxpathcoded.replace(/\]\|\/\/a\[/g, " or ");
  4520. totalxpathcoded = totalxpathcoded.replace(/\]\|/, ')]');
  4521. totalxpathobsolete = totalxpathobsolete.replace(/\]\|\/\/a\[/g, " or ");
  4522. totalxpathobsolete = totalxpathobsolete.replace(/\]\|/, ')]');
  4523. totalxpathheadersonly = totalxpathheadersonly.replace(/\]\|\/\/a\[/g, " or ");
  4524. totalxpathheadersonly = totalxpathheadersonly.replace(/\]\|/, ')]');
  4525. if (filterId != null) //insert id restriction in the xpath
  4526. {
  4527. totalxpath = totalxpath.replace(/\[/g, "[@class='" + filterId + "' and (");
  4528. totalxpathcoded = totalxpathcoded.replace(/\[/g, "[@class='" + filterId + "' and (");
  4529. totalxpathobsolete = totalxpathobsolete.replace(/\[/g, "[@class='" + filterId + "' and (");
  4530. totalxpathheadersonly = totalxpathheadersonly.replace(/\[/g, "[@class='" + filterId + "' and (");
  4531. }
  4532. else
  4533. {
  4534. totalxpath = totalxpath.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4535. totalxpathcoded = totalxpathcoded.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4536. totalxpathobsolete = totalxpathobsolete.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4537. totalxpathheadersonly = totalxpathheadersonly.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4538. }
  4539. linkify(totalourls);
  4540. //LINKIFICATION END
  4541. //ENCRYPTED LINKS PROCESSING START
  4542. if (http_file_hosts_coded.length > 0)
  4543. {
  4544. var linksCoded = document.evaluate(totalxpathcoded, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4545.  
  4546. // decrypt coded links (redirects, link protectors etc.)
  4547. if (linksCoded.snapshotLength > 0)
  4548. {
  4549. var link;
  4550. var reallinkreg;
  4551. var reallinkcorrection;
  4552.  
  4553. if (filterId == null)
  4554. {
  4555. cLinksTotal += linksCoded.snapshotLength;
  4556. }
  4557.  
  4558. var y = linksCoded.snapshotLength - 1;
  4559. do
  4560. {
  4561. // linksCoded.snapshotItem(y).id = 'processing_link';
  4562. link = linksCoded.snapshotItem(y);
  4563. filehostIdx = filehostCodedLen;
  4564. while (filehostIdx--)
  4565. {
  4566. if (link.href.match(http_file_hosts_coded[filehostIdx][0]))
  4567. {
  4568. link.href = link.href.replace(/http:\/\/.*?(?:\?|=)http:\/\//, 'http://');
  4569. reallinkreg = http_file_hosts_coded[filehostIdx][1];
  4570. reallinkcorrection = http_file_hosts_coded[filehostIdx][2];
  4571.  
  4572. decurl(link, reallinkreg, reallinkcorrection);
  4573. break;
  4574. }
  4575. }
  4576. }
  4577. while (y--);
  4578. }
  4579. }
  4580. //ENCRYPTED LINKS PROCESSING END
  4581.  
  4582. //STANDARD LINKCHECKING START
  4583. if (http_file_hosts.length > 0)
  4584. {
  4585. var lianks = document.evaluate(totalxpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4586.  
  4587. if (filterId == null)
  4588. {
  4589. cLinksTotal += lianks.snapshotLength;
  4590. }
  4591.  
  4592. if (lianks.snapshotLength > 0)
  4593. {
  4594. var link;
  4595.  
  4596. var URL = "";
  4597. var name = "";
  4598. var isAliveRegex = "";
  4599. var isDeadRegex = "";
  4600. var isUnavaRegex = "";
  4601. var ispremRegex = "";
  4602. var tryLoop = false;
  4603.  
  4604. var y = lianks.snapshotLength;
  4605.  
  4606. while (y--)
  4607. {
  4608. link = lianks.snapshotItem(y);
  4609.  
  4610. filehostIdx = filehostLen;
  4611. while (filehostIdx--)
  4612. {
  4613. if (link.href.match(http_file_hosts[filehostIdx][0]))
  4614. {
  4615. link.href = link.href.replace(/http:\/\/.*?http:\/\//, 'http://'); //anonymizers
  4616. isAliveRegex = http_file_hosts[filehostIdx][1];
  4617. isDeadRegex = http_file_hosts[filehostIdx][2];
  4618. isUnavaRegex = http_file_hosts[filehostIdx][3];
  4619. ispremRegex = http_file_hosts[filehostIdx][6];
  4620. tryLoop = http_file_hosts[filehostIdx][5];
  4621.  
  4622. geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, tryLoop);
  4623.  
  4624. break;
  4625. }
  4626. }
  4627. }
  4628. }
  4629. }
  4630. //STANDARD LINKCHECKING END
  4631. //OBSOLETE FILE HOSTS PROCESSING START
  4632. if (filehostObsoleteLen > 0)
  4633. {
  4634. var obsoletelinks = document.evaluate(totalxpathobsolete, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4635.  
  4636. var obsoleteLink;
  4637.  
  4638. //check links
  4639. if (obsoletelinks.snapshotLength > 0)
  4640. {
  4641. var y = obsoletelinks.snapshotLength;
  4642.  
  4643. if (filterId == null)
  4644. {
  4645. cLinksTotal += y;
  4646. }
  4647.  
  4648. while (y--)
  4649. {
  4650. obsoleteLink = obsoletelinks.snapshotItem(y);
  4651.  
  4652. if (Display_tooltip_info)
  4653. {
  4654. obsoleteLink.warlc_error = 'Cause of error: <b>Obsolete filehosting.</b>';
  4655. }
  4656. displayTheCheckedLink(obsoleteLink, 'adead_link');
  4657. }
  4658. }
  4659. }
  4660. //OBSOLETE FILE HOSTS PROCESSING END
  4661.  
  4662. //DIRECT LINKCHECKING START
  4663. if (http_file_hosts_headers_only.length > 0)
  4664. {
  4665. var links = document.evaluate(totalxpathheadersonly, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4666.  
  4667. //check links
  4668. if (links.snapshotLength > 0)
  4669. {
  4670. var link;
  4671. var isAliveRegex;
  4672. var isDeadRegex;
  4673. var ispremRegex;
  4674.  
  4675. var y = links.snapshotLength;
  4676.  
  4677.  
  4678. if (filterId == null)
  4679. {
  4680. cLinksTotal += y;
  4681. }
  4682.  
  4683. while (y--)
  4684. {
  4685. // links.snapshotItem(y).id = 'processing_link';
  4686. link = links.snapshotItem(y);
  4687. filehostIdx = filehostHeadersOnlyLen;
  4688. while (filehostIdx--)
  4689. {
  4690. if (link.href.match(http_file_hosts_headers_only[filehostIdx][0]))
  4691. {
  4692. link.href = link.href.replace(/http:\/\/.*?(?:\?|=)http:\/\//, 'http://');
  4693. isAliveRegex = http_file_hosts_headers_only[filehostIdx][1];
  4694. isDeadRegex = http_file_hosts_headers_only[filehostIdx][2];
  4695. ispremRegex = http_file_hosts_headers_only[filehostIdx][3];
  4696.  
  4697. geturlHeader(link, isAliveRegex, isDeadRegex, ispremRegex);
  4698.  
  4699. break;
  4700. }
  4701. }
  4702. }
  4703.  
  4704. }
  4705. }
  4706. //DIRECT LINKCHECKING END
  4707.  
  4708.  
  4709. //finds the real url on the page, replaces link.href with it and calls geturl
  4710. function decurl(link, reallinkreg, reallinkcorrection)
  4711. {
  4712.  
  4713. GM_xmlhttpRequest(
  4714. {
  4715. method: 'GET',
  4716. url: link.href,
  4717. headers: {
  4718. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  4719. 'Accept': 'text/xml',
  4720. 'Referer': ""
  4721. },
  4722. onload: function (result)
  4723. {
  4724. // cLinksProcessed++;
  4725.  
  4726. var reallink = result.responseText.match(reallinkreg)[0];
  4727. reallink = reallink.replace(new RegExp(reallinkcorrection, "g"), "");
  4728.  
  4729. link.href = reallink;
  4730.  
  4731. var i = http_file_hosts.length - 1;
  4732. do
  4733. {
  4734. if ((reallink.match(http_file_hosts[i][0])))
  4735. {
  4736. link.href = link.href.replace(/http:\/\/.*?\?http:\/\//, 'http://');
  4737. var isAliveRegex = http_file_hosts[i][1];
  4738. var isDeadRegex = http_file_hosts[i][2];
  4739. var isUnavaRegex = http_file_hosts[i][3];
  4740. var ispremRegex = http_file_hosts[i][4];
  4741.  
  4742. geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, 50);
  4743.  
  4744. break;
  4745. }
  4746. }
  4747. while (i--);
  4748. }
  4749. });
  4750. }
  4751.  
  4752. function randUA()
  4753. {
  4754. //TODO
  4755. }
  4756. //Processes link
  4757. //
  4758. // [string] link link URL
  4759. // [string] isAliveRegex alive link regex
  4760. // [string] isDeadRegex dead link regex
  4761. // [string] isUnavaRegex unavailable link regex
  4762. // [string] ispremRegex premium link regex
  4763. // [boolean] tryLoop repeats request until succeeded
  4764. function geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, tryLoop)
  4765. {
  4766. GM_xmlhttpRequest(
  4767. {
  4768. method: 'GET',
  4769. url: link.href,
  4770. headers: {
  4771. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  4772. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  4773. 'Referer': ""
  4774. },
  4775. onload: function (result)
  4776. {
  4777. var res = result.responseText;
  4778. if (result.responseHeaders.match(/Content-Disposition: attachment; filename=/))//direct download, simple version
  4779. {
  4780. displayTheCheckedLink(link, 'alive_link');
  4781. return;
  4782. }
  4783.  
  4784. if (res.match(isAliveRegex))
  4785. {
  4786. displayTheCheckedLink(link, 'alive_link');
  4787. return;
  4788. }
  4789.  
  4790. if (res.match(isDeadRegex))
  4791. {
  4792. displayTheCheckedLink(link, 'adead_link');
  4793. return;
  4794. }
  4795.  
  4796. if (isUnavaRegex && res.match(isUnavaRegex))
  4797. {
  4798. displayTheCheckedLink(link, 'unava_link');
  4799. return;
  4800. }
  4801. if (res.match(ispremRegex))
  4802. {
  4803. displayTheCheckedLink(link, 'prem_link');
  4804. return;
  4805. }
  4806.  
  4807. var resStatus = result.status;
  4808.  
  4809. if (resStatus == 404)
  4810. {
  4811. displayTheCheckedLink(link, 'adead_link');
  4812. }
  4813. if (resStatus == 500 || resStatus == 503 || resStatus == 403) //not found/available/temp. unava
  4814. {
  4815. if (tryLoop)
  4816. {
  4817. //wait 1-5 seconds and repeat the request
  4818. setTimeout(function(){geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, tryLoop)}, 1000 + (Math.random() * 4000));
  4819. }
  4820. else
  4821. {
  4822. displayTheCheckedLink(link, 'unava_link');
  4823. }
  4824.  
  4825. return;
  4826. }
  4827. },
  4828. onerror: function ()
  4829. {
  4830. displayTheCheckedLink(link, 'unava_link');
  4831. }
  4832. });
  4833. }
  4834.  
  4835. function geturlHeader(link, isAliveRegex, isDeadRegex, ispremRegex)
  4836. {
  4837. GM_xmlhttpRequest(
  4838. {
  4839. method: 'HEAD',
  4840. url: link.href,
  4841. headers: {
  4842. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  4843. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  4844. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  4845. 'Referer': ""
  4846. },
  4847. onload: function (result)
  4848. {
  4849. var resStatus = result.status;
  4850. var resHeaders = "";
  4851. if (resStatus == 403 || resStatus == 404 || resStatus == 500) //not found/available
  4852. {
  4853. displayTheCheckedLink(link, 'adead_link');
  4854. return;
  4855. }
  4856.  
  4857. resHeaders = result.responseHeaders;
  4858.  
  4859. if (resHeaders.match(isDeadRegex))
  4860. {
  4861. displayTheCheckedLink(link, 'adead_link');
  4862. return;
  4863. }
  4864.  
  4865. if (resHeaders.match(isAliveRegex))
  4866. {
  4867. displayTheCheckedLink(link, 'alive_link');
  4868. return;
  4869. }
  4870. if (resHeaders.match(ispremRegex))
  4871. {
  4872. displayTheCheckedLink(link, 'prem_link');
  4873. return;
  4874. }
  4875. },
  4876. onerror: function ()
  4877. {
  4878. displayTheCheckedLink(link, 'unava_link');
  4879. }
  4880. });
  4881. }
  4882.  
  4883. //Delinkfifies the <a> element object
  4884. function delinkifyLink(link)
  4885. {
  4886. var spanElm = document.createElement("span");
  4887. spanElm.className = link.className;
  4888. spanElm.innerHTML = link.innerHTML;
  4889.  
  4890. if (Display_tooltip_info)
  4891. {
  4892. spanElm.href = link.href;
  4893. spanElm.warlc_error = link.warlc_error;
  4894. switch (link.className){
  4895. case "alive_link": spanElm.addEventListener("mouseover", displayTooltipInfo, false); break
  4896. case "adead_link": spanElm.addEventListener("mouseover", displayTooltipError, false); break;
  4897. case "unava_link": //reserved
  4898. case "prem_link": spanElm.addEventListener("mouseover", displayTooltipError, false); break;
  4899. default:
  4900. }
  4901. }
  4902. link.parentNode.replaceChild(spanElm, link);
  4903. }
  4904.  
  4905. //Assigns result status to the <a> element object and calls delinkifying eventually
  4906. //Possible result states: adead_link, alive_link, unava_link, prem_link
  4907. function displayTheCheckedLink(link, resultStatus)
  4908. {
  4909. link.className = resultStatus;
  4910. link.href = Ref_anonymize_service + link.href;
  4911. if (Display_tooltip_info)
  4912. {
  4913. switch (resultStatus){
  4914. case "alive_link": link.addEventListener("mouseover", displayTooltipInfo, false); break
  4915. case "adead_link": link.addEventListener("mouseover", displayTooltipError, false); break;
  4916. case "unava_link": //reserved
  4917. case "prem_link": link.addEventListener("mouseover", displayTooltipInfo, false); break
  4918. default:
  4919. }
  4920. }
  4921. if (doNotLinkify)
  4922. {
  4923. delinkifyLink(link);
  4924. }
  4925. cLinksProcessed++;
  4926.  
  4927. if (resultStatus == "alive_link")
  4928. {
  4929. cLinksAlive++;
  4930. return;
  4931. }
  4932.  
  4933. if (resultStatus == "adead_link")
  4934. {
  4935. cLinksDead++;
  4936. return;
  4937. }
  4938.  
  4939. if (resultStatus == "unava_link")
  4940. {
  4941. cLinksUnava++;
  4942. }
  4943. if (resultStatus == "prem_link")
  4944. {
  4945. cLinksprem++;
  4946. return;
  4947. }
  4948. }
  4949.  
  4950.  
  4951. function initFileHosts()
  4952. {
  4953.  
  4954. function addObsoleteHost(linkRegex, xpathEx)
  4955. {
  4956. var host = new Array(2);
  4957. host[0] = linkRegex;
  4958. host[1] = xpathEx;
  4959. http_file_hosts_obsolete.push(host);
  4960. }
  4961.  
  4962. //obsolete file hosts init start
  4963. if (Obsolete_file_hosts)
  4964. {
  4965. addObsoleteHost("uloz\.cz\/show\/file","//a[contains(@href,'uloz.cz')]");
  4966. addObsoleteHost("storage\\.to\/get","//a[contains(@href,'storage.to')]");
  4967. addObsoleteHost("iskladka\\.cz\/download","//a[contains(@href,'iskladka.cz')]");
  4968. addObsoleteHost("file-rack\\.com\/files","//a[contains(@href,'file-rack.com')]");
  4969. addObsoleteHost("fast-load\\.net\/(\/)?index","//a[contains(@href,'fast-load.net')]");
  4970. addObsoleteHost("subory\\.sk\/download","//a[contains(@href,'subory.sk')]");
  4971. addObsoleteHost("bigandfree\\.com\/\\d+","//a[contains(@href,'bigandfree.com')]");
  4972. addObsoleteHost("fileop\\.com\/\\w+","//a[contains(@href,'fileop.com')]");
  4973. addObsoleteHost("mujsoubor\\.cz\/file\/","//a[contains(@href,'mujsoubor.cz')]");
  4974. addObsoleteHost("sendfile\\.to\/\\w+","//a[contains(@href,'sendfile.to')]");
  4975. addObsoleteHost("superfastfile\\.com\/\\w+","//a[contains(@href,'superfastfile.com')]");
  4976. addObsoleteHost("quickyshare\\.com\/\\w+","//a[contains(@href,'quickyshare.com/')]");
  4977. addObsoleteHost("duckload\\.com\/(?:d|play)","//a[contains(@href,'duckload.com')]");
  4978. addObsoleteHost("uploadstore\\.net\/\\w+","//a[contains(@href,'uploadstore.net')]");
  4979. addObsoleteHost("meinupload\\.com\/dl\/\\d+","//a[contains(@href,'meinupload.com/dl')]");
  4980. addObsoleteHost("dualshare\\.com\/\\w+","//a[contains(@href,'dualshare.com')]");
  4981. addObsoleteHost("2xupload\\.(?:to|de)\/file\/\\w+","//a[contains(@href,'2xupload.to') or contains(@href,'2xupload.de')]");
  4982. addObsoleteHost("oxedion\\.com\/index\\.php\/download\/\\w+","//a[contains(@href,'oxedion.com/index')]");
  4983. addObsoleteHost("uploadline\\.com\/\\d+","//a[contains(@href,'uploadline.com')]");
  4984. addObsoleteHost("dll\\.bz\/file\/\\d+","//a[contains(@href,'dll.bz/file')]");
  4985. addObsoleteHost("movieshare\\.in\/\\w+","//a[contains(@href,'movieshare.in')]");
  4986. addObsoleteHost("milledrive\\.com\/files\/\\d+","//a[contains(@href,'milledrive.com')]");
  4987. addObsoleteHost("quickupload\\.net\/\\w+","//a[contains(@href,'quickupload.net')]");
  4988. addObsoleteHost("safelink\\.in\/\\w+","//a[contains(@href,'safelink.in')]");
  4989. addObsoleteHost("pyramidfiles\\.com\/\\w+","//a[contains(@href,'pyramidfiles.com/')]");
  4990. addObsoleteHost("(?:cloudnator|shragle)\\.com\/files","//a[contains(@href,'cloudnator.com/files') or contains(@href,'shragle.com/files')]");
  4991. addObsoleteHost("batshare\\.com\/\\w+","//a[contains(@href,'batshare.com/')]");
  4992. addObsoleteHost("bitroad\\.net\/download","//a[contains(@href,'bitroad.net/download')]");
  4993. addObsoleteHost("metadivx\\.com\/\\w+","//a[contains(@href,'metadivx.com')]");
  4994. addObsoleteHost("filegaze\\.com\/\\w+","//a[contains(@href,'filegaze.com/')]");
  4995. addObsoleteHost("bulletupload\\.com\/\\w+","//a[contains(@href,'bulletupload.com/')]");
  4996. addObsoleteHost("sharefilehost\\.com\/\\w+","//a[contains(@href,'sharefilehost.com/')]");
  4997. addObsoleteHost("fireuploads\\.net\/\\w+","//a[contains(@href,'fireuploads.net/')]");
  4998. addObsoleteHost("divxlink\\.com\/\\w+","//a[contains(@href,'divxlink.com/')]");
  4999. addObsoleteHost("bzlink\\.us\/\\w+","//a[contains(@href,'bzlink.us/')]");
  5000. addObsoleteHost("filetechnology\\.com\/\\w+","//a[contains(@href,'filetechnology.com/')]");
  5001. addObsoleteHost("filecosy\\.com\/\\w+","//a[contains(@href,'filecosy.com/')]");
  5002. addObsoleteHost("fileserver\\.cc\/\\w+","//a[contains(@href,'fileserver.cc/')]");
  5003. addObsoleteHost("shafiles\\.me\/\\w+","//a[contains(@href,'shafiles.me/')]");
  5004. addObsoleteHost("xfileshare\\.eu\/\\w+","//a[contains(@href,'xfileshare.eu/')]");
  5005. addObsoleteHost("uploadboost\\.com\/\\w+","//a[contains(@href,'uploadboost.com/')]");
  5006. addObsoleteHost("uploadoz\\.com\/\\w+","//a[contains(@href,'uploadoz.com/')]");
  5007. addObsoleteHost("ihostia\\.com\/\\w+","//a[contains(@href,'ihostia.com/')]");
  5008. addObsoleteHost("shareupload\\.com\/\\w+","//a[contains(@href,'shareupload.com/')]");
  5009. addObsoleteHost("ovfile\\.com\/\\w+","//a[contains(@href,'ovfile.com/')]");
  5010. addObsoleteHost("stahuj\\.to\/\\w+","//a[contains(@href,'stahuj.to/')]");
  5011. addObsoleteHost("gigfiles\\.net\/\\w+","//a[contains(@href,'gigfiles.net/')]");
  5012. addObsoleteHost("vidhog\\.com\/\\w+","//a[contains(@href,'vidhog.com/')]");
  5013. addObsoleteHost("filelaser\\.com\/\\w+","//a[contains(@href,'filelaser.com/')]");
  5014. addObsoleteHost("holderfile\\.com\/\\w+","//a[contains(@href,'holderfile.com/')]");
  5015. addObsoleteHost("fileduct\\.(?:com|net)\/\\w+","//a[contains(@href,'fileduct.com/') or contains(@href,'fileduct.net')]");
  5016. addObsoleteHost("filefat\\.com\/\\w+","//a[contains(@href,'filefat.com/')]");
  5017. addObsoleteHost("restfile\\.com\/\\w+","//a[contains(@href,'restfile.com/')]");
  5018. addObsoleteHost("filemashine\\.com\\/download\/\\w+","//a[contains(@href,'filemashine.com/download')]");
  5019. addObsoleteHost("cloudnxt\\.net\/\\w+","//a[contains(@href,'cloudnxt.net/')]");
  5020. addObsoleteHost("uploadrack\\.com\/\\w+","//a[contains(@href,'uploadrack.com')]");
  5021. addObsoleteHost("teradepot\\.com\/\\w+","//a[contains(@href,'teradepot.com')]");
  5022. addObsoleteHost("dataup\\.to\/\\d+\/","//a[contains(@href,'dataup.to')]");
  5023. addObsoleteHost("upit\\.to\/file:\\d+","//a[contains(@href,'upit.to/file')]");
  5024. addObsoleteHost("badongo\\.(?:com|net)\/(?:\\w\\w\/|)(?:vid|cfile|file|pt)\/\\w+","//a[contains(@href,'badongo.com') or contains(@href,'badongo.net')]");
  5025. addObsoleteHost("driveway\\.com\/\\w+","//a[contains(@href,'driveway.com')]");
  5026. addObsoleteHost("eatlime\\.com\/download","//a[contains(@href,'eatlime.com/download')]");
  5027. addObsoleteHost("a2zuploads\\.com\/id\\w+","//a[contains(@href,'a2zuploads.com/id')]");
  5028. addObsoleteHost("friendlyfiles\\.net\/download\/\\w+\/","//a[contains(@href,'friendlyfiles.net/download')]");
  5029. addObsoleteHost("flyfile\\.us\/\\w+","//a[contains(@href,'flyfile.us')]");
  5030. addObsoleteHost("speedyshare\\.com\/\\w+","//a[contains(@href,'speedyshare.com')]");
  5031. addObsoleteHost("brontofile\\.com\/download","//a[contains(@href,'brontofile.com/download')]");
  5032. addObsoleteHost("uploadspace\\.eu\/\\w+","//a[contains(@href,'uploadspace.eu')]");
  5033. addObsoleteHost("fooget\\.com\/\\w+","//a[contains(@href,'fooget.com/')]");
  5034. addObsoleteHost("file-bit.net\/\\w+","//a[contains(@href,'file-bit.net/')]");
  5035. addObsoleteHost("keepfile\\.com\/\\w+","//a[contains(@href,'http://keepfile.com')]");
  5036. addObsoleteHost("piggyshare\\.com\/file\/\\w+","//a[contains(@href,'piggyshare.com')]");
  5037. addObsoleteHost("filecrown\\.com\/\\w+","//a[contains(@href,'filecrown.com')]");
  5038. addObsoleteHost("6giga\\.com\/\\w+","//a[contains(@href,'6giga.com')]");
  5039. addObsoleteHost("uploadjockey\\.com\/download\/\\w+","//a[contains(@href,'uploadjockey.com/download')]");
  5040. addObsoleteHost("bluehost\\.to\/dl=\\w+","//a[contains(@href,'bluehost.to')]");
  5041. addObsoleteHost("coolshare\\.cz\/stahnout\/\\w+","//a[contains(@href,'coolshare.cz/stahnout')]");
  5042. addObsoleteHost("filegu\\.ru\/f\/\\w+","//a[contains(@href,'filegu.ru/f')]");
  5043. addObsoleteHost("filebase\\.to\/files\/\\d+\/","//a[contains(@href,'filebase.to/files')]");
  5044. addObsoleteHost("kickload\\.com\/(?:file|get)\/","//a[contains(@href,'kickload.com/file') or contains(@href,'kickload.com/get')]");
  5045. addObsoleteHost("up-file\\.com\/files\/download\/\\w+\/","//a[contains(@href,'up-file.com/download')]");
  5046. addObsoleteHost("ezyfile\\.net\/\\w+","//a[contains(@href,'ezyfile.net/')]");
  5047. addObsoleteHost("k2files\\.com\/files","//a[contains(@href,'k2files.com/files')]");
  5048. addObsoleteHost("aiotool\\.net\/\\w+","//a[contains(@href,'aiotool.net/')]");
  5049. addObsoleteHost("xvideos\\.com\/files\/\\d+\/\\w+","//a[contains(@href,'xvideos.com/files')]");
  5050. addObsoleteHost("filebling\\.com\/dl\/\\d+\/\\d+\/\\w+","//a[contains(@href,'filebling.com/dl')]");
  5051. addObsoleteHost("loaded\\.it\/divx\/\\w+","//a[contains(@href,'loaded.it/divx')]");
  5052. addObsoleteHost("uploadcell\\.com\/\\w+\/\\w+","//a[contains(@href,'uploadcell.com')]");
  5053. addObsoleteHost("jakfile\\.com\/\\w+","//a[contains(@href,'jakfile.com/')]");
  5054. addObsoleteHost("uploadshare\\.cz\/download\/\\w+\/\\w+","//a[contains(@href,'uploadshare.cz/download')]");
  5055. addObsoleteHost("mangoshare\\.com\/\\w+","//a[contains(@href,'mangoshare.com')]");
  5056. addObsoleteHost("ugotfile\\.com\/file\/\\d+\/\\w+","//a[contains(@href,'ugotfile.com/file')]");
  5057. addObsoleteHost("filestab\\.com\/\\w+","//a[contains(@href,'filestab.com')]");
  5058. addObsoleteHost("dotavi\\.com\/\\w+\/.","//a[contains(@href,'dotavi.com/')]");
  5059. addObsoleteHost("crazyupload\\.com\/\\w+","//a[contains(@href,'crazyupload.com')]");
  5060. addObsoleteHost("gaiafile\\.com\/\\w+","//a[contains(@href,'gaiafile.com')]");
  5061. addObsoleteHost("sharejunky\\.com\/\\w+","//a[contains(@href,'sharejunky.com')]");
  5062. addObsoleteHost("fileho\\.com\/download\/\\d+","//a[contains(@href,'fileho.com/download')]");
  5063. addObsoleteHost("(?:bigandfree|BigAndFree)\\.com\/\\d+","//a[contains(@href,'bigandfree.com') or contains(@href,'BigAndFree.com')]");
  5064. addObsoleteHost("bigfile\\.in\/\\w+","//a[contains(@href,'bigfile.in')]");
  5065. addObsoleteHost("bigshare\\.eu\/download\\.php\\?id=","//a[contains(@href,'bigshare.eu/download.php')]");
  5066. addObsoleteHost("dahosting\\.org\/dl\/\\w+","//a[contains(@href,'dahosting.org/dl')]");
  5067. addObsoleteHost("digisofts\\.net\/\\w+","//a[contains(@href,'digisofts.net')]");
  5068. addObsoleteHost("file4save\\.com\/\\w+\/\\w+","//a[contains(@href,'file4save.com')]");
  5069. addObsoleteHost("filereactor\\.com\/\\w+","//a[contains(@href,'filereactor.com/')]");
  5070. addObsoleteHost("filechip\\.com\/\\w+","//a[contains(@href,'filechip.com')]");
  5071. addObsoleteHost("filescloud\\.com\/\\w+\/\\w+","//a[contains(@href,'filescloud.com')]");
  5072. addObsoleteHost("saveqube\\.com\/getfile\/\\w+","//a[contains(@href,'saveqube.com/getfile')]");
  5073. addObsoleteHost("www2\\.turboshare\\.de\/v\/\\d+","//a[contains(@href,'turboshare.de/v')]");
  5074. addObsoleteHost("z-upload\\.com\/\\w+","//a[contains(@href,'z-upload.com')]");
  5075. addObsoleteHost("youshare\\.com\/view\\.php","//a[contains(@href,'youshare.com/view')]");
  5076. addObsoleteHost("jiffyupload\\.com\/\\w+","//a[contains(@href,'jiffyupload.com')]");
  5077. addObsoleteHost("gigeshare\\.com\/preview\/\\w+","//a[contains(@href,'gigeshare.com')]");
  5078. addObsoleteHost("datenklo\\.net\/dl","//a[contains(@href,'datenklo.net')]");
  5079. addObsoleteHost("upload\\.dj\/download\\.php\\?id=\\w+","//a[contains(@href,'upload.dj/download.php')]");
  5080. addObsoleteHost("loadfiles\\.in\/\\w+\/","//a[contains(@href,'loadfiles.in')]");
  5081. addObsoleteHost("upit\\.to\/file:\\w+\/","//a[contains(@href,'upit.to/file')]");
  5082. addObsoleteHost("zshare\\.net\/(?:download|video|audio)\/\\w+","//a[contains(@href,'zshare.net/')]");
  5083. addObsoleteHost("refile\\.net\/f\/\\?\\w+","//a[contains(@href,'refile.net/f/')]");
  5084. addObsoleteHost("dsfileshare\\.com\/download","//a[contains(@href,'dsfileshare.com/download')]");
  5085. addObsoleteHost("sharesimple\\.net\/\\w{2}\/download","//a[contains(@href,'sharesimple.net')]");
  5086. addObsoleteHost("(?:s\\d+\\.|)4files\\.net\/\\d+","//a[contains(@href,'4files.net')]");
  5087. addObsoleteHost("odsiebie\\.com\/pokaz\/\\d+","//a[contains(@href,'odsiebie.com/pokaz')]");
  5088. addObsoleteHost("filenavi\\.com\/direct\/\\w+","//a[contains(@href,'filenavi.com/direct')]");
  5089. addObsoleteHost("3oof\\.com\/\\w+","//a[contains(@href,'3oof.com/')]");
  5090. addObsoleteHost("meshwaar\\.com\/\\w+","//a[contains(@href,'meshwaar.com')]");
  5091. addObsoleteHost("maxupload\\.com\/files\/\\w+","//a[contains(@href,'maxupload.com/files')]");
  5092. addObsoleteHost("share\\.cx\/videos\/\\d+","//a[contains(@href,'share.cx/videos')]");
  5093. addObsoleteHost("atserver\\.eu\/(?:\\w{2}\/|)download\/\\d+","//a[contains(@href,'atserver.eu')]");
  5094. addObsoleteHost("file2upload\\.net\/download\/\\d+","//a[contains(@href,'file2upload.net/download')]");
  5095. addObsoleteHost("filebling\\.com\/\\w+","//a[contains(@href,'filebling.com')]");
  5096. addObsoleteHost("turboshare\\.(?:eu|com)\/files","//a[contains(@href,'turboshare.') and contains(@href,'/files')]");
  5097. addObsoleteHost("rarhost\\.com\/download","//a[contains(@href,'rarhost.com/download')]");
  5098. addObsoleteHost("isharehd\\.com\/\\w+","//a[contains(@href,'isharehd.com')]");
  5099. addObsoleteHost("datenklo\\.net\/file\\.php\\?id=\\w+","//a[contains(@href,'datenklo.net/file.php')]");
  5100. addObsoleteHost("file2share\\.biz\/download\\.php\\?id=\\w+","//a[contains(@href,'file2share.biz/download.php')]");
  5101. addObsoleteHost("savefiles\\.net\/d\/\\w+\\.html","//a[contains(@href,'savefiles.net/d')]");
  5102. addObsoleteHost("bestsharing\\.com\/files\/\\w+","//a[contains(@href,'bestsharing.com/files')]");
  5103. addObsoleteHost("filecache\\.de\/\\d+","//a[contains(@href,'filecache.de/')]");
  5104. addObsoleteHost("i741\\.com\/files\/\\w+","//a[contains(@href,'i741.com/files')]");
  5105. addObsoleteHost("dataup\\.de\/\\d+","//a[contains(@href,'dataup.de')]");
  5106. addObsoleteHost("fofly\\.com\/\\w+","//a[contains(@href,'fofly.com')]");
  5107. addObsoleteHost("shareonall\\.com\/\\w+","//a[contains(@href,'shareonall.com')]");
  5108. addObsoleteHost("sexuploader\\.com\/(?:|..\/)\\?[d|v]=\\w{8}","//a[contains(@href,'sexuploader.com')]");
  5109. 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')]");
  5110. addObsoleteHost("uploadhyper\\.com\/file\/","//a[contains(@href,'uploadhyper.com')]");
  5111. addObsoleteHost("filespawn\\.com\/file\/","//a[contains(@href,'filespawn.com')]");
  5112. addObsoleteHost("caizzii\\.com\/(?:download|\\?file=)","//a[contains(@href,'caizzii.com')]");
  5113. addObsoleteHost("volnyweb\\.cz\/files\/get\/[\\w-_]+","//a[contains(@href,'volnyweb.cz/files')]");
  5114. addObsoleteHost("gotupload\\.com\/\\w+","//a[contains(@href,'gotupload.com/')]");
  5115. addObsoleteHost("mooload\\.com\/new\/file\\.php\\?file=files\/\\d+\/\\d+","//a[contains(@href,'mooload.com/new/file')]");
  5116. addObsoleteHost("z\\d+\\.zupload\\.com\/download\\.php\\?file=getfile&filepath=\\d+","//a[contains(@href,'zupload.com/download')]");
  5117. addObsoleteHost("mytempdir\\.com\/\\d+","//a[contains(@href,'mytempdir.com/')]");
  5118. addObsoleteHost("usershare\\.net\/\\w+","//a[contains(@href,'usershare.net/')]");
  5119. addObsoleteHost("qshare\\.com\/get\/\\d+\/.","//a[contains(@href,'qshare.com/get')]");
  5120. addObsoleteHost("filescash\\.net\/file\/\\d+","//a[contains(@href,'filescash.net/file')]");
  5121. addObsoleteHost("metahyper\\.com\/\\w+","//a[contains(@href,'metahyper.com/')]");
  5122. addObsoleteHost("combozip\\.com\/\\w+","//a[contains(@href,'combozip.com/')]");
  5123. addObsoleteHost("anonstream\\.com\/get_\\w+","//a[contains(@href,'anonstream.com/get_')]");
  5124. addObsoleteHost("x7\\.to\/\\w+","//a[contains(@href,'x7.to/')]");
  5125. addObsoleteHost("uploadbox\\.com\/files\/\\w+","//a[contains(@href,'uploadbox.com/files')]");
  5126. addObsoleteHost("(?:flyupload\\.)?(?:enterupload|flyupload)\\.com\/[\\?\\w]+","//a[contains(@href,'enterupload.com/') or contains(@href,'flyupload.com/')]");
  5127. addObsoleteHost("filepoint\\.de\/dl\/\\w+","//a[contains(@href,'filepoint.de/dl')]");
  5128. addObsoleteHost("icushare\\.com\/\\w+","//a[contains(@href,'icushare.com/')]");
  5129. addObsoleteHost("oron\\.com\/\\w+","//a[contains(@href,'oron.com/')]");
  5130. addObsoleteHost("mystream\\.to\/file\\-\\d+","//a[contains(@href,'mystream.to/file')]");
  5131. addObsoleteHost("x-fs\\.com\/download\\.php\\?id=\\w+","//a[contains(@href,'x-fs.com/download')]");
  5132. addObsoleteHost("srapid\\.eu\/\\w+","//a[contains(@href,'srapid.eu/')]");
  5133. addObsoleteHost("shareshared\\.com\/\\w+","//a[contains(@href,'shareshared.com/')]");
  5134. addObsoleteHost("sosame\\.cz\/\\w+","//a[contains(@href,'sosame.cz/')]");
  5135. addObsoleteHost("s\\d+\\.filesdump\\.com\/file\/\\w+","//a[contains(@href,'filesdump.com/file')]");
  5136. addObsoleteHost("2-klicks\\.de\/\\?d=\\w+","//a[contains(@href,'2-klicks.de/?d=')]");
  5137. addObsoleteHost("silofiles\\.com\/file\/\\d+","//a[contains(@href,'silofiles.com/file')]");
  5138. addObsoleteHost("upfile\\.in\/\\w+","//a[contains(@href,'upfile.in/')]");
  5139. addObsoleteHost("filehook\\.com\/\\w+","//a[contains(@href,'filehook.com/')]");
  5140. addObsoleteHost("mojofile\\.com\/\\w+","//a[contains(@href,'mojofile.com/')]");
  5141. addObsoleteHost("cloudcache\\.cc\/\\w+","//a[contains(@href,'cloudcache.cc/')]");
  5142. addObsoleteHost("1hostclick\\.com\/\\w+","//a[contains(@href,'1hostclick.com/')]");
  5143. addObsoleteHost("4bytez\\.com\/\\w+","//a[contains(@href,'4bytez.com/')]");
  5144. addObsoleteHost("uploadking\\.com\/\\w+","//a[contains(@href,'uploadking.com/')]");
  5145. addObsoleteHost("nahraj\\.cz\/(?:content|down)\/\\w+","//a[contains(@href,'nahraj.cz/')]");
  5146. addObsoleteHost("megarapid\\.eu\/files\/\\d+","//a[contains(@href,'megarapid.eu/files')]");
  5147. addObsoleteHost("(?:fileserve|uploadstation)\\.com\/(?:file|list)\/\\w+","//a[contains(@href,'fileserve.com/') or contains(@href,'uploadstation.com/')]");
  5148. addObsoleteHost("uploadhere\\.com\/\\w+","//a[contains(@href,'uploadhere.com/')]");
  5149. addObsoleteHost("dualshare\\.com\/\\w+","//a[contains(@href,'dualshare.com/')]");
  5150. addObsoleteHost("yourfilehost\\.com\/media","//a[contains(@href,'yourfilehost.com/media')]");
  5151. addObsoleteHost("ftp2share\\.com\/file\/\\w+","//a[contains(@href,'ftp2share.com/file')]");
  5152. addObsoleteHost("storeandserve\\.com\/download\/\\d+","//a[contains(@href,'storeandserve.com/download')]");
  5153. addObsoleteHost("mountfile\\.com\/file(?:\/\\w+){2}","//a[contains(@href,'mountfile.com/file')]");
  5154. addObsoleteHost("save\\.am\/files\/\\w+","//a[contains(@href,'save.am/files')]");
  5155. addObsoleteHost("transitfiles\\.com\/dl\/\\w+","//a[contains(@href,'transitfiles.com/dl')]");
  5156. addObsoleteHost("smartuploader\\.com\/file\\.php\\?f=\\d+","//a[contains(@href,'smartuploader.com/file.php?=')]");
  5157. addObsoleteHost("skipfile\\.com\/\\w+","//a[contains(@href,'skipfile.com/')]");
  5158. addObsoleteHost("stahnu\\.to\/[\\w\\?]+","//a[contains(@href,'stahnu.to/')]");
  5159. addObsoleteHost("flyshare\.cz\/(?:stahni\/|)\\d+","//a[contains(@href,'flyshare.cz/')]");
  5160. addObsoleteHost("(?:ddlani\\.me|ddlanime\\.com)\/\\w+","//a[contains(@href,'ddlani.me/') or contains(@href,'ddlanime.com/')]");
  5161. addObsoleteHost("loadly\\.com\/\\w+","//a[contains(@href,'loadly.com/')]");
  5162. addObsoleteHost("groovefile\\.com\/\\w+","//a[contains(@href,'groovefile.com/')]");
  5163. addObsoleteHost("filezlot\\.com\/\\w+","//a[contains(@href,'filezlot.com/')]");
  5164. addObsoleteHost("shareator\\.(?:net|com)\/\\w+","//a[contains(@href,'shareator.')]");
  5165. addObsoleteHost("yabadaba\\.ru\/files\/","//a[contains(@href,'yabadaba.ru/files/')]");
  5166. addObsoleteHost("rapidhide\\.com\/download\\.php\\?file=\\w+","//a[contains(@href,'rapidhide.com/download.php')]");
  5167. addObsoleteHost("filejungle\\.com\/[fl]\/\\w+","//a[contains(@href,'filejungle.com/')]");
  5168. addObsoleteHost("kewlshare\\.com\/dl\/\\d+","//a[contains(@href,'kewlshare.com/dl')]");
  5169. addObsoleteHost("petandrive\\.com\/file\/\\w+","//a[contains(@href,'petandrive.com/file')]");
  5170. addObsoleteHost("onionshare\\.com\/\\w+","//a[contains(@href,'onionshare.com/')]");
  5171. addObsoleteHost("rapidable\\.com\/\\w+\/download\\.php\\?id=","//a[contains(@href,'rapidable.com/')]");
  5172. addObsoleteHost("filesdump\\.com\/file\/\\w+\/\\d+","//a[contains(@href,'filesdump.com/file')]");
  5173. addObsoleteHost("file2box\\.(?:net|com)\/\\w+","//a[contains(@href,'file2box.')]");
  5174. addObsoleteHost("(?:filesonic|sharingmatrix|wupload)(?:\\.\\w+){1,2}\/(?:file|folder)\/\\w+","//a[contains(@href,'filesonic.') or contains(@href,'sharingmatrix.com') or contains(@href,'wupload.')]");
  5175. // addObsoleteHost("wizzupload\\.com\/\\w+","//a[contains(@href,'wizzupload.com/')]");
  5176. addObsoleteHost("bloggerarticles\\.com\/\\w+","//a[contains(@href,'bloggerarticles.com/')]");
  5177. addObsoleteHost("mojedata\\.sk/","//a[contains(@href,'mojedata.sk/')]");
  5178. addObsoleteHost("sharpfile\\.com\/\\w+","//a[contains(@href,'sharpfile.com/')]");
  5179. addObsoleteHost("upgrand\\.com\/\\w+","//a[contains(@href,'upgrand.com/')]");
  5180. addObsoleteHost("nasdilej\\.cz\/\\w+","//a[contains(@href,'nasdilej.cz/')]");
  5181. addObsoleteHost("mediatack\\.cz\/stahuj/\\w+","//a[contains(@href,'mediatack.cz/stahuj/')]");
  5182. addObsoleteHost("share-it\\.to\/file/\\w+","//a[contains(@href,'share-it.to/file/')]");
  5183. addObsoleteHost("primeupload\\.com\/file/\\w+","//a[contains(@href,'primeupload.com/file/')]");
  5184. addObsoleteHost("(?:uploads\\.glumbo|glumbouploads)\\.com\/\\w+","//a[contains(@href,'uploads.glumbo.com') or contains(@href,'glumbouploads.com')]");
  5185. addObsoleteHost("filebeer\\.info\/\\w+","//a[contains(@href,'filebeer.info/')]");
  5186. addObsoleteHost("baberepublic\\.com\/link\/\\w+","//a[contains(@href,'baberepublic.com/link/')]");
  5187. addObsoleteHost("xtu\\.me\/\\w+","//a[contains(@href,'xtu.me/')]");
  5188. addObsoleteHost("sharebase\\.de\/files\/\\w+","//a[contains(@href,'sharebase.de/files/')]");
  5189. addObsoleteHost("filerobo\\.com\/\\w+","//a[contains(@href,'filerobo.com/')]");
  5190. addObsoleteHost("filevelocity\\.com\/\\w+","//a[contains(@href,'filevelocity.com/')]");
  5191. addObsoleteHost("filezpro\\.com\/\\w+","//a[contains(@href,'filezpro.com/')]");
  5192. addObsoleteHost("file4sharing\\.com\/\\w+","//a[contains(@href,'file4sharing.com/')]");
  5193. addObsoleteHost("cing\\.be\/\\w+","//a[contains(@href,'cing.be/')]");
  5194. addObsoleteHost("ufile\\.eu\/\\w+","//a[contains(@href,'ufile.eu/')]");
  5195. addObsoleteHost("pigsonic\\.com\/\\w+","//a[contains(@href,'pigsonic.com/')]");
  5196. addObsoleteHost("fileupped\\.com\/\\w+","//a[contains(@href,'fileupped.com/')]");
  5197. addObsoleteHost("sharerun\\.com\/\\w+","//a[contains(@href,'sharerun.com/')]");
  5198. addObsoleteHost("rapidslnare\\.com\/\\w+","//a[contains(@href,'rapidslnare.com/')]");
  5199. addObsoleteHost("monsteruploads\\.eu\/\\w+","//a[contains(@href,'monsteruploads.eu/')]");
  5200. addObsoleteHost("b9bb\\.com\/\\w+","//a[contains(@href,'b9bb.com/')]");
  5201. addObsoleteHost("jamber\\.info\/\\w+","//a[contains(@href,'jamber.info/')]");
  5202. addObsoleteHost("(?:megaftp|MegaFTP)\\.com\/\\w+","//a[contains(@href,'megaftp.com/') or contains(@href,'MegaFTP.com/')]");
  5203. addObsoleteHost("desiupload\\.net\/\\?d=\\w+","//a[contains(@href,'desiupload.net/')]");
  5204. addObsoleteHost("file27\\.com\/\\w+","//a[contains(@href,'file27.com/')]");
  5205. addObsoleteHost("yastorage\\.com\/\\w+","//a[contains(@href,'yastorage.com/')]");
  5206. addObsoleteHost("filehost\\.ws\/\\w+","//a[contains(@href,'filehost.ws/')]");
  5207. addObsoleteHost("copyload\\.com\/\\w+","//a[contains(@href,'copyload.com/')]");
  5208. addObsoleteHost("venusfile\\.com\/\\w+","//a[contains(@href,'venusfile.com/')]");
  5209. addObsoleteHost("aieshare\\.com\/\\w+","//a[contains(@href,'aieshare.com/')]");
  5210. addObsoleteHost("fileza\\.net\/\\w+","//a[contains(@href,'fileza.net/')]");
  5211. addObsoleteHost("filerose\\.com\/\\w+","//a[contains(@href,'filerose.com/')]");
  5212. addObsoleteHost("squillion\\.com\/\\w+","//a[contains(@href,'squillion.com/')]");
  5213. addObsoleteHost("fileprohost\\.com\/\\w+","//a[contains(@href,'fileprohost.com/')]");
  5214. addObsoleteHost("bitbonus\\.com\/download\/\\w+","//a[contains(@href,'bitbonus.com/')]");
  5215. addObsoleteHost("warserver\\.cz\/\\w+","//a[contains(@href,'warserver.cz/')]");
  5216. addObsoleteHost("uload\\.to\/\\w+","//a[contains(@href,'uload.to/')]");
  5217. addObsoleteHost("sharedbit\\.net\/\\w+","//a[contains(@href,'sharedbit.net/')]");
  5218. addObsoleteHost("megaload\\.it\/\\w+","//a[contains(@href,'megaload.it/')]");
  5219. addObsoleteHost("filewinds\\.com\/\\w+","//a[contains(@href,'filewinds.com/')]");
  5220. addObsoleteHost("uploadcore\\.com\/\\w+","//a[contains(@href,'uploadcore.com/')]");
  5221. addObsoleteHost("syfiles\\.com\/\\w+","//a[contains(@href,'syfiles.com/')]");
  5222. addObsoleteHost("eyesfile\\.com\/\\w+","//a[contains(@href,'eyesfile.com/')]");
  5223. addObsoleteHost("hotfile\\.com\/\\w+","//a[contains(@href,'hotfile.com/')]");
  5224. addObsoleteHost("superupl\\.com\/\\w+","//a[contains(@href,'superupl.com/')]");
  5225. addObsoleteHost("oteupload\\.com\/\\w+","//a[contains(@href,'oteupload.com/')]");
  5226. addObsoleteHost("henchfile\\.com\/\\w+","//a[contains(@href,'henchfile.com/')]");
  5227. addObsoleteHost("HenchFile\\.com\/\\w+","//a[contains(@href,'HenchFile.com/')]");
  5228. addObsoleteHost("filegag\\.com\/\\w+","//a[contains(@href,'filegag.com/')]");
  5229. addObsoleteHost("filedefend\\.com\/\\w+","//a[contains(@href,'filedefend.com/')]");
  5230. addObsoleteHost("hotfiles\\.ws\/\\w+","//a[contains(@href,'hotfiles.ws/')]");
  5231. addObsoleteHost("share-rapid\\.com\/\\w+","//a[contains(@href,'share-rapid.com/')]");
  5232. //addObsoleteHost("sharerapid\\.cz\/\\w+","//a[contains(@href,'sharerapid.cz/')]");
  5233. addObsoleteHost("rapids\\.cz\/\\w+","//a[contains(@href,'rapids.cz/')]");
  5234. addObsoleteHost("share-credit\\.cz\/\\w+","//a[contains(@href,'share-credit.cz/')]");
  5235. addObsoleteHost("share-central\\.cz\/\\w+","//a[contains(@href,'share-central.cz/')]");
  5236. addObsoleteHost("share-ms\\.cz\/\\w+","//a[contains(@href,'share-ms.cz/')]");
  5237. addObsoleteHost("share-net\\.cz\/\\w+","//a[contains(@href,'share-net.cz/')]");
  5238. addObsoleteHost("srapid\\.cz\/\\w+","//a[contains(@href,'srapid.cz/')]");
  5239. addObsoleteHost("share-rapid\\.cz\/\\w+","//a[contains(@href,'share-rapid.cz/')]");
  5240. addObsoleteHost("wooupload\\.com\/\\w+","//a[contains(@href,'wooupload.com/')]");
  5241. addObsoleteHost("megabitshare\\.com\/\\w+","//a[contains(@href,'megabitshare.com/')]");
  5242. addObsoleteHost("uploking\\.com\/\\w+","//a[contains(@href,'uploking.com/')]");
  5243. addObsoleteHost("esnips\\.com\/\\w+","//a[contains(@href,'esnips.com/')]");
  5244. addObsoleteHost("uplly\\.com\/\\w+","//a[contains(@href,'uplly.com/')]");
  5245. addObsoleteHost("ufox\\.com\/\\w+","//a[contains(@href,'ufox.com/')]");
  5246. addObsoleteHost("clz\\.to\/\\w+","//a[contains(@href,'clz.to/')]");
  5247. addObsoleteHost("cloudzer\\.net\/\\w+","//a[contains(@href,'cloudzer.net/')]");
  5248. addObsoleteHost("cloudzer\\.com\/\\w+","//a[contains(@href,'cloudzer.com/')]");
  5249. addObsoleteHost("extabit\\.com\/\\w+","//a[contains(@href,'extabit.com/')]");
  5250. addObsoleteHost("uploadwaste\\.com\/\\w+","//a[contains(@href,'uploadwaste.com/')]");
  5251. addObsoleteHost("247upload\\.com\/\\w+","//a[contains(@href,'uploadwaste.com/')]");
  5252. addObsoleteHost("2download\\.de\/\\w+","//a[contains(@href,'2download.de/')]");
  5253. addObsoleteHost("4fastfile\\.com\/\\w+","//a[contains(@href,'4fastfile.com/')]");
  5254. addObsoleteHost("asixfiles\\.com\/\\w+","//a[contains(@href,'asixfiles.com/')]");
  5255. addObsoleteHost("berofile\\.com\/\\w+","//a[contains(@href,'berofile.com/')]");
  5256. addObsoleteHost("bigupload\\.com\/\\w+","//a[contains(@href,'bigupload.com/')]");
  5257. addObsoleteHost("cepzo\\.com\/\\w+","//a[contains(@href,'cepzo.com/')]");
  5258. addObsoleteHost("czshare\\.com\/\\w+","//a[contains(@href,'czshare.com/')]");
  5259. addObsoleteHost("clouds\\.to\/\\w+","//a[contains(@href,'clouds.to/')]");
  5260. addObsoleteHost("cobrashare\\.sk\/\\w+","//a[contains(@href,'cobrashare.sk/')]");
  5261. addObsoleteHost("coraldrive\\.net\/\\w+","//a[contains(@href,'coraldrive.net/')]");
  5262. addObsoleteHost("cyberlocker\\.ch\/\\w+","//a[contains(@href,'cyberlocker.ch/')]");
  5263. addObsoleteHost("darkport\\.org\/\\w+","//a[contains(@href,'darkport.org/')]");
  5264. addObsoleteHost("dark-uploads\\.com\/\\w+","//a[contains(@href,'dark-uploads.com/')]");
  5265. addObsoleteHost("davvas\\.com\/\\w+","//a[contains(@href,'davvas.com/')]");
  5266. addObsoleteHost("enigmashare\\.com\/\\w+","//a[contains(@href,'enigmashare.com/')]");
  5267. addObsoleteHost("erofly\\.cz\/\\w+","//a[contains(@href,'erofly.cz/')]");
  5268. addObsoleteHost("fastsonic\\.net\/\\w+","//a[contains(@href,'fastsonic.net/')]");
  5269. addObsoleteHost("filebox\\.com\/\\w+","//a[contains(@href,'filebox.com/')]");
  5270. addObsoleteHost("filecity\\.net\/\\w+","//a[contains(@href,'filecity.net/')]");
  5271. addObsoleteHost("filedap\\.com\/\\w+","//a[contains(@href,'filedap.com/')]");
  5272. addObsoleteHost("filedino\\.com\/\\w+","//a[contains(@href,'filedino.com/')]");
  5273. addObsoleteHost("filedownloads\\.org\/\\w+","//a[contains(@href,'filedownloads.org/')]");
  5274. addObsoleteHost("filefolks\\.com\/\\w+","//a[contains(@href,'filefolks.com/')]");
  5275. addObsoleteHost("fileking\\.co\/\\w+","//a[contains(@href,'fileking.co/')]");
  5276. addObsoleteHost("filemates\\.com\/\\w+","//a[contains(@href,'filemates.com/')]");
  5277. addObsoleteHost("files\\.to\/\\w+","//a[contains(@href,'files.to/')]");
  5278. addObsoleteHost("files2k\\.eu\/\\w+","//a[contains(@href,'files2k.eu/')]");
  5279. addObsoleteHost("filesector\\.cc\/\\w+","//a[contains(@href,'filesector.cc/')]");
  5280. addObsoleteHost("filesega\\.com\/\\w+","//a[contains(@href,'filesega.com/')]");
  5281. addObsoleteHost("filesend\\.net\/\\w+","//a[contains(@href,'filesend.net/')]");
  5282. addObsoleteHost("filestay\\.com\/\\w+","//a[contains(@href,'filestay.com/')]");
  5283. addObsoleteHost("filestrum\\.com\/\\w+","//a[contains(@href,'filestrum.com/')]");
  5284. addObsoleteHost("fileuplo\\.de\/\\w+","//a[contains(@href,'fileuplo.de/')]");
  5285. addObsoleteHost("fileupup\\.com\/\\w+","//a[contains(@href,'fileupup.com/')]");
  5286. addObsoleteHost("forunesia\\.com\/\\w+","//a[contains(@href,'forunesia.com/')]");
  5287. addObsoleteHost("freeuploads\\.fr\/\\w+","//a[contains(@href,'freeuploads.fr/')]");
  5288. addObsoleteHost("uploa\\.dk\/\\w+","//a[contains(@href,'uploa.dk/')]");
  5289. addObsoleteHost("getthebit\\.com\/\\w+","//a[contains(@href,'getthebit.com/')]");
  5290. addObsoleteHost("getzilla\\.net\/\\w+","//a[contains(@href,'getzilla.net/')]");
  5291. addObsoleteHost("goldfile\\.eu\/\\w+","//a[contains(@href,'goldfile.eu/')]");
  5292. addObsoleteHost("good\\.com\/\\w+","//a[contains(@href,'good.com/')]");
  5293. addObsoleteHost("grupload\\.com\/\\w+","//a[contains(@href,'grupload.com/')]");
  5294. addObsoleteHost("hellfile\\.com\/\\w+","//a[contains(@href,'hellfile.com/')]");
  5295. addObsoleteHost("hipfile\\.com\/\\w+","//a[contains(@href,'hipfile.com/')]");
  5296. addObsoleteHost("hitfile\\.com\/\\w+","//a[contains(@href,'hitfile.com/')]");
  5297. addObsoleteHost("hulkfile\\.eu\/\\w+","//a[contains(@href,'hulkfile.eu/')]");
  5298. addObsoleteHost("i-filez\\.com\/\\w+","//a[contains(@href,'i-filez.com/')]");
  5299. addObsoleteHost("ifile\\.ws\/\\w+","//a[contains(@href,'ifile.ws/')]");
  5300. addObsoleteHost("kupload\\.org\/\\w+","//a[contains(@href,'kupload.org/')]");
  5301. addObsoleteHost("duckfile\\.net\/\\w+","//a[contains(@href,'duckfile.net/')]");
  5302. addObsoleteHost("packupload\\.com\/\\w+","//a[contains(@href,'packupload.com/')]");
  5303. addObsoleteHost("terafile\\.com\/\\w+","//a[contains(@href,'terafile.com/')]");
  5304. addObsoleteHost("terafile\\.co\/\\w+","//a[contains(@href,'terafile.co/')]");
  5305. addObsoleteHost("fileom\\.com\/\\w+","//a[contains(@href,'fileom.com/')]");
  5306. addObsoleteHost("luckyshare\\.net\/\\w+","//a[contains(@href,'luckyshare.net/')]");
  5307. addObsoleteHost("lemuploads\\.com\/\\w+","//a[contains(@href,'lemuploads.com/')]");
  5308. addObsoleteHost("limelinx\\.com\/\\w+","//a[contains(@href,'limelinx.com/')]");
  5309. addObsoleteHost("maxshare\\.pl\/\\w+","//a[contains(@href,'maxshare.pl/')]");
  5310. addObsoleteHost("megarelease\\.org\/\\w+","//a[contains(@href,'megarelease.org/')]");
  5311. addObsoleteHost("megashare\\.com\/\\w+","//a[contains(@href,'megashare.com/')]");
  5312. addObsoleteHost("minus\\.com\/\\w+","//a[contains(@href,'minus.com/')]");
  5313. addObsoleteHost("mlfat4arab\\.com\/\\w+","//a[contains(@href,'mlfat4arab.com/')]");
  5314. addObsoleteHost("multishare\\.cz\/\\w+","//a[contains(@href,'multishare.cz/')]");
  5315. addObsoleteHost("nirafile\\.com\/\\w+","//a[contains(@href,'nirafile.com/')]");
  5316. addObsoleteHost("ok2upload\\.com\/\\w+","//a[contains(@href,'ok2upload.com/')]");
  5317. addObsoleteHost("peejeshare\\.com\/\\w+","//a[contains(@href,'peejeshare.com/')]");
  5318. addObsoleteHost("premiuns\\.org\/\\w+","//a[contains(@href,'premiuns.org/')]");
  5319. addObsoleteHost("przeklej\\.net\/\\w+","//a[contains(@href,'przeklej.net/')]");
  5320. addObsoleteHost("qkup\\.net\/\\w+","//a[contains(@href,'qkup.net/')]");
  5321. addObsoleteHost("rapidupload\\.sk\/\\w+","//a[contains(@href,'rapidupload.sk/')]");
  5322. addObsoleteHost("rockdizfile\\.com\/\\w+","//a[contains(@href,'rockdizfile.com/')]");
  5323. addObsoleteHost("rocketfile\\.net\/\\w+","//a[contains(@href,'rocketfile.net/')]");
  5324. addObsoleteHost("share-now\\.net\/\\w+","//a[contains(@href,'share-now.net/')]");
  5325. addObsoleteHost("share76\\.com\/\\w+","//a[contains(@href,'share76.com/')]");
  5326. addObsoleteHost("sharebees\\.com\/\\w+","//a[contains(@href,'sharebees.com/')]");
  5327. addObsoleteHost("sharefiles\\.co\/\\w+","//a[contains(@href,'sharefiles.co/')]");
  5328. addObsoleteHost("slingfile\\.com\/\\w+","//a[contains(@href,'slingfile.com/')]");
  5329. addObsoleteHost("sms4file\\.com\/\\w+","//a[contains(@href,'sms4file.com/')]");
  5330. addObsoleteHost("space4file\\.com\/\\w+","//a[contains(@href,'space4file.com/')]");
  5331. addObsoleteHost("tigershare\\.net\/\\w+","//a[contains(@href,'tigershare.net/')]");
  5332. addObsoleteHost("toucansharing\\.com\/\\w+","//a[contains(@href,'toucansharing.com/')]");
  5333. addObsoleteHost("ubuntuone\\.com\/\\w+","//a[contains(@href,'ubuntuone.com/')]");
  5334. addObsoleteHost("unextfiles\\.com\/\\w+","//a[contains(@href,'unextfiles.com/')]");
  5335. addObsoleteHost("upaj\\.pl\/\\w+","//a[contains(@href,'upaj.pl/')]");
  5336. addObsoleteHost("upfile\\.biz\/\\w+","//a[contains(@href,'upfile.biz/')]");
  5337. addObsoleteHost("uploadbin\\.net\/\\w+","//a[contains(@href,'uploadbin.net/')]");
  5338. addObsoleteHost("uploadic\\.com\/\\w+","//a[contains(@href,'uploadic.com/')]");
  5339. addObsoleteHost("uploadinc\\.com\/\\w+","//a[contains(@href,'uploadinc.com/')]");
  5340. addObsoleteHost("uploading4u\\.eu\/\\w+","//a[contains(@href,'uploading4u.eu/')]");
  5341. addObsoleteHost("uploadjet\\.net\/\\w+","//a[contains(@href,'uploadjet.net/')]");
  5342. addObsoleteHost("uploadorb\\.com\/\\w+","//a[contains(@href,'uploadorb.com/')]");
  5343. addObsoleteHost("upthe\\.net\/\\w+","//a[contains(@href,'upthe.net/')]");
  5344. addObsoleteHost("uptorch\\.com\/\\w+","//a[contains(@href,'uptorch.com/')]");
  5345. addObsoleteHost("vidbox\\.yt\/\\w+","//a[contains(@href,'vidbox.yt/')]");
  5346. addObsoleteHost("videozer\\.com\/\\w+","//a[contains(@href,'videozer.com/')]");
  5347. addObsoleteHost("vreer\\.com\/\\w+","//a[contains(@href,'vreer.com/')]");
  5348. addObsoleteHost("wallobit\\.com\/\\w+","//a[contains(@href,'wallobit.com/')]");
  5349. addObsoleteHost("zooupload\\.com\/\\w+","//a[contains(@href,'zooupload.com/')]");
  5350. addObsoleteHost("xerver\\.co\/\\w+","//a[contains(@href,'xerver.co/')]");
  5351. addObsoleteHost("privatefiles\\.com\/\\w+","//a[contains(@href,'privatefiles.com/')]");
  5352. addObsoleteHost("bitshare\\.com\/\\w+","//a[contains(@href,'bitshare.com/')]");
  5353. addObsoleteHost("asfile\\.com\/\\w+","//a[contains(@href,'asfile.com/')]");
  5354. addObsoleteHost("billionuploads\\.com\/\\w+","//a[contains(@href,'billionuploads.com/')]");
  5355. addObsoleteHost("\\*{7,100}\/[\\w\\d]+","//a[contains(@href,'*******/')]");
  5356. addObsoleteHost("filesaur\\.com\/\\w+","//a[contains(@href,'filesaur.com/')]");
  5357. addObsoleteHost("rapidshare\\.com\/\\w+","//a[contains(@href,'rapidshare.com/')]");
  5358. addObsoleteHost("rapidshare\\.ru\/\\w+","//a[contains(@href,'rapidshare.ru/')]");
  5359. addObsoleteHost("filesfrog\\.net\/\\w+","//a[contains(@href,'filesfrog.net/')]");
  5360. addObsoleteHost("4savefile\\.com\/\\w+","//a[contains(@href,'4savefile.com/')]");
  5361. addObsoleteHost("bayfiles\\.com\/\\w+","//a[contains(@href,'bayfiles.com/')]");
  5362. addObsoleteHost("bayfiles\\.net\/\\w+","//a[contains(@href,'bayfiles.net/')]");
  5363. addObsoleteHost("dodane\\.pl\/\\w+","//a[contains(@href,'dodane.pl/')]");
  5364. addObsoleteHost("dotsemper\\.com\/\\w+","//a[contains(@href,'dotsemper.com/')]");
  5365. addObsoleteHost("egofiles\\.com\/\\w+","//a[contains(@href,'egofiles.com/')]");
  5366. addObsoleteHost("epicshare\\.net\/\\w+","//a[contains(@href,'epicshare.net/')]");
  5367. addObsoleteHost("fiberupload\\.net\/\\w+","//a[contains(@href,'fiberupload.net/')]");
  5368. addObsoleteHost("filemonkey\\.in\/\\w+","//a[contains(@href,'filemonkey.in/')]");
  5369. addObsoleteHost("filemonster\\.net\/\\w+","//a[contains(@href,'filemonster.net/')]");
  5370. addObsoleteHost("filepom\\.com\/\\w+","//a[contains(@href,'filepom.com/')]");
  5371. addObsoleteHost("filesbb\\.com\/\\w+","//a[contains(@href,'filesbb.com/')]");
  5372. addObsoleteHost("fileshareup\\.com\/\\w+","//a[contains(@href,'fileshareup.com/')]");
  5373. addObsoleteHost("filevice\\.com\/\\w+","//a[contains(@href,'filevice.com/')]");
  5374. addObsoleteHost("gigaup\\.fr\/\\w+","//a[contains(@href,'gigaup.fr/')]");
  5375. addObsoleteHost("inafile\\.com\/\\w+","//a[contains(@href,'inafile.com/')]");
  5376. addObsoleteHost("isavelink\\.com\/\\w+","//a[contains(@href,'isavelink.com/')]");
  5377. addObsoleteHost("loombo\\.com\/\\w+","//a[contains(@href,'loombo.com/')]");
  5378. addObsoleteHost("megafiles\\.se\/\\w+","//a[contains(@href,'megafiles.se/')]");
  5379. addObsoleteHost("migupload\\.com\/\\w+","//a[contains(@href,'migupload.com/')]");
  5380. addObsoleteHost("mydisc\\.net\/\\w+","//a[contains(@href,'mydisc.net/')]");
  5381. addObsoleteHost("nitrobits\\.com\/\\w+","//a[contains(@href,'nitrobits.com/')]");
  5382. addObsoleteHost("potload\\.com\/\\w+","//a[contains(@href,'potload.com/')]");
  5383. addObsoleteHost("redload\\.net\/\\w+","//a[contains(@href,'redload.net/')]");
  5384. addObsoleteHost("shareprofi\\.com\/\\w+","//a[contains(@href,'shareprofi.com/')]");
  5385. addObsoleteHost("sharesuper\\.info\/\\w+","//a[contains(@href,'sharesuper.info/')]");
  5386. addObsoleteHost("sinhro\\.net\/\\w+","//a[contains(@href,'sinhro.net/')]");
  5387. addObsoleteHost("speedfile\\.cz\/\\w+","//a[contains(@href,'speedfile.cz/')]");
  5388. addObsoleteHost("speedshare\\.org\/\\w+","//a[contains(@href,'speedshare.org/')]");
  5389. addObsoleteHost("storage.novoro\\.net\/\\w+","//a[contains(@href,'storage.novoro.net/')]");
  5390. addObsoleteHost("swankshare\\.com\/\\w+","//a[contains(@href,'swankshare.com/')]");
  5391. addObsoleteHost("swatupload\\.com\/\\w+","//a[contains(@href,'swatupload.com/')]");
  5392. addObsoleteHost("upafile\\.com\/\\w+","//a[contains(@href,'upafile.com/')]");
  5393. addObsoleteHost("uploadmachine\\.com\/\\w+","//a[contains(@href,'uploadmachine.com/')]");
  5394. addObsoleteHost("uploadsat\\.com\/\\w+","//a[contains(@href,'uploadsat.com/')]");
  5395. addObsoleteHost("upshared\\.com\/\\w+","//a[contains(@href,'upshared.com/')]");
  5396. addObsoleteHost("usefile\\.com\/\\w+","//a[contains(@href,'usefile.com/')]");
  5397. addObsoleteHost("yourfiles\\.to\/\\w+","//a[contains(@href,'yourfiles.to/')]");
  5398. addObsoleteHost("zomgupload\\.com\/\\w+","//a[contains(@href,'zomgupload.com/')]");
  5399. addObsoleteHost("~[\\w\\s~]*","//a[contains(@href,'//~') or contains(@href,'//www.~')]");
  5400. addObsoleteHost("filemup\\.com\/\\w+","//a[contains(@href,'filemup.com/')]");
  5401. addObsoleteHost("tuxfile\\.com\/\\w+","//a[contains(@href,'tuxfile.com/')]");
  5402. addObsoleteHost("ultramegabit\\.com\/\\w+","//a[contains(@href,'ultramegabit.com/')]");
  5403. addObsoleteHost("uploadto\\.us\/\\w+","//a[contains(@href,'uploadto.us/')]");
  5404. addObsoleteHost("filecore\\.co\\.nz\/\\w+","//a[contains(@href,'filecore.co.nz/')]");
  5405. addObsoleteHost("fileshare\\.in\\.ua\/\\w+","//a[contains(@href,'fileshare.in.ua/')]");
  5406. addObsoleteHost("firedrive\\.com\/\\w+","//a[contains(@href,'firedrive.com/')]");
  5407. addObsoleteHost("putlocker\\.com\/\\w+","//a[contains(@href,'putlocker.com/')]");
  5408. addObsoleteHost("lumfile\\.com\/\\w+","//a[contains(@href,'lumfile.com/')]");
  5409. addObsoleteHost("lumfile\\.se\/\\w+","//a[contains(@href,'lumfile.se/')]");
  5410. addObsoleteHost("lumfile\\.eu\/\\w+","//a[contains(@href,'lumfile.eu/')]");
  5411. addObsoleteHost("shared\\.com\/\\w+","//a[contains(@href,'shared.com/')]");
  5412. addObsoleteHost("stahovadlo\\.cz\/\\w+","//a[contains(@href,'stahovadlo.cz/')]");
  5413. addObsoleteHost("dizzcloud\\.com\/\\w+","//a[contains(@href,'dizzcloud.com/')]");
  5414. addObsoleteHost("ddlstorage\\.com\/\\w+","//a[contains(@href,'ddlstorage.com/')]");
  5415. addObsoleteHost("dataport\\.cz\/\\w+","//a[contains(@href,'dataport.cz/')]");
  5416. addObsoleteHost("daj\\.to\/\\w+","//a[contains(@href,'daj.to/')]");
  5417. addObsoleteHost("sockshare\\.com\/\\w+","//a[contains(@href,'sockshare.com/')]");
  5418. // obsolete start
  5419. }
  5420. //obsolete file hosts init end
  5421.  
  5422. function addFileHost(linkRegex, isAliveRegex, isDeadRegex, isUnavaRegex, xpathEx, tryLoop, ispremRegex)
  5423. {
  5424. var host = new Array(7);
  5425. host[0] = linkRegex;
  5426. host[1] = isAliveRegex;
  5427. host[2] = isDeadRegex;
  5428. host[3] = isUnavaRegex;
  5429. host[6] = ispremRegex;
  5430. host[4] = xpathEx;
  5431. tryLoop ? host[5] = true : host[5] = false;
  5432. http_file_hosts.push(host);
  5433. }
  5434. if (GM_getValue("Check_megafileupload_dot_com_links", false))
  5435. {
  5436. addFileHost(
  5437. "megafileupload\.com\/..\/file\/",
  5438. 'downloadbtn',
  5439. 'is not found',
  5440. 'optional--',
  5441. "//a[contains(@href,'megafileupload.com')]");
  5442. }
  5443. if (GM_getValue("Check_demo_dot_ovh_dot_eu_links", false))
  5444. {
  5445. addFileHost(
  5446. "demo\\.ovh\\.eu\/\\w+\/\\w+",
  5447. 'download\\.gif"',
  5448. 'p_point">',
  5449. 'optional--',
  5450. "//a[contains(@href,'demo.ovh.eu')]");
  5451. }
  5452. if (GM_getValue("Check_xkeepfile_dot_com_links", false))
  5453. {
  5454. addFileHost(
  5455. "xkeepfile\.com\/\\w+",
  5456. 'File has been found|Click here to download',
  5457. 'File cannot be found|class="error">',
  5458. 'optional--',
  5459. //'optional--',
  5460. "//a[contains(@href,'xkeepfile.com/') or contains(@href,'Gamesena.com/')]");
  5461. }
  5462. if (GM_getValue("Check_safelinking_dot_net_links", false))
  5463. {
  5464. addFileHost(
  5465. "safelinking\\.net\/p\/\\w+",
  5466. 'color:green;"',
  5467. 'color:(?:red|orange);"',
  5468. 'color:(?:grey|brown);"',
  5469. "//a[contains(@href,'safelinking.net/p/')]",
  5470. true);
  5471. }
  5472. /* if (GM_getValue("Check_ultramegabit_dot_com_links", false))
  5473. {
  5474. addFileHost(
  5475. "ultramegabit\\.com\/file\/details\/[\\w+-]",
  5476. 'name="recaptcha_response',
  5477. '="/folder/add"|>File (?:not found|restricted|has been deleted)|<title>ULTRAMEGABIT</title>',
  5478. 'btn-large btn-danger">|Account limitation notice|502 Bad Gateway',
  5479. "//a[contains(@href,'ultramegabit.com/file')]",
  5480. true);
  5481. } */
  5482. if (GM_getValue("Check_fastshare_dot_cz_links", false))
  5483. {
  5484. addFileHost(
  5485. "fastshare\\.cz\/\\d+\/\\w*",
  5486. 'dwntable">',
  5487. 'nebyla nalezena|nebola nájdená|nie została odnaleziona|color:red;font-weight:bold;border\\-style:dashed|<i class="fa fa-copyright"></i>',
  5488. 'optional--',
  5489. "//a[contains(@href,'fastshare.cz')]");
  5490. }
  5491. if (GM_getValue("Check_fastshare_dot_org_links", false))
  5492. {
  5493. addFileHost(
  5494. "[fF]ast[sS]hare\\.org\/download",
  5495. 'Download ">',
  5496. 'Diese Datei wurde wegen|wurde kein Dateiname',
  5497. 'optional--',
  5498. "//a[contains(@href,'fastshare.org/download') or contains(@href,'FastShare.org/download')]");
  5499. }
  5500. if (GM_getValue("Check_partage_dash_facile_dot_com_links", false))
  5501. {
  5502. addFileHost(
  5503. "partage-facile\.com\/\\w+",
  5504. 'class="title"><strong>|colspan="2"',
  5505. 'Page introuvable|class="alert-message',
  5506. 'optional--',
  5507. "//a[contains(@href,'partage-facile.com')]");
  5508. }
  5509. if (GM_getValue("Check_rapidgator_dot_net_links", false))
  5510. {
  5511. addFileHost(
  5512. "rapidgator\\.net\/file\/\\w+",
  5513. '/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',
  5514. 'Error 404|File not found|Error 500|Файл не найден|File not found|Select your plan',
  5515. 'optional--',
  5516. "//a[contains(@href,'rapidgator.net/file')]",
  5517. true
  5518. );
  5519. }
  5520. if (GM_getValue("Check_relink_dot_us_links", false))
  5521. {
  5522. addFileHost(
  5523. "relink\\.us\/(?:f\/\\w+|go\\.php\\?id=\\d+|view\\.php\\?id=\\d+)",
  5524. 'online_detail\\.png" alt="Status',
  5525. '(?:offline|partially)_detail\\.png" alt="Status|File deleted',
  5526. 'unknown_detail\\.png" alt="Status',
  5527. "//a[contains(@href,'relink.us/')]"
  5528. );
  5529. }
  5530. if (GM_getValue("Check_uploadstube_dot_de_links", false))
  5531. {
  5532. addFileHost(
  5533. "uploadstube\\.de\/download\\.php\\?file=\\d+",
  5534. 'div id="dl"',
  5535. 'Sie haben den Link falsch',
  5536. 'optional--',
  5537. "//a[contains(@href,'uploadstube.de/download.php?file=')]"
  5538. );
  5539. }
  5540. if (GM_getValue("Check_flyfiles_dot_net_links", false))
  5541. {
  5542. addFileHost(
  5543. "flyfiles\\.net\/\\w+",
  5544. 'download_button"|"Download file"',
  5545. 'File not found!|Файл не найден',
  5546. 'optional--',
  5547. "//a[contains(@href,'flyfiles.net/')]"
  5548. );
  5549. }
  5550. if (GM_getValue("Check_wikiupload_dot_com_links", false))
  5551. {
  5552. addFileHost(
  5553. "wikiupload\\.com\/\\w+",
  5554. 'download-button">',
  5555. 'Sorry, File not found',
  5556. 'optional--',
  5557. "//a[contains(@href,'wikiupload.com/')]"
  5558. );
  5559. }
  5560. if (GM_getValue("Check_hostuje_dot_net_links", false))
  5561. {
  5562. addFileHost(
  5563. "hostuje\\.net\/file\\.php\\?id=\\w+",
  5564. 'file\\.php">|Pobierz Plik',
  5565. 'Podany plik nie zosta',
  5566. 'optional--',
  5567. "//a[contains(@href,'hostuje.net/file')]"
  5568. );
  5569. }
  5570. if (GM_getValue("Check_gettyfile_dot_ru_links", false))
  5571. {
  5572. addFileHost(
  5573. "gettyfile\\.ru\/\\d+",
  5574. 'download\\.gif border',
  5575. '<center><font size="3">',
  5576. 'optional--',
  5577. "//a[contains(@href,'gettyfile.ru/')]"
  5578. );
  5579. }
  5580. if (GM_getValue("Check_tufiles_dot_ru_links", false))
  5581. {
  5582. addFileHost(
  5583. "(?:tufiles|turbob1t|failoobmenik|filesmail|firebit|dlbit|files\\.china\\-gsm|3aka4aem|file\\.piratski|mnogofiles|links-free|turbo-bit|turbosfiles)\\.\\w+\/\\w+",
  5584. 'download\\-file">',
  5585. 'col-1">\\s*<h1>',
  5586. 'optional--',
  5587. "//a[contains(@href,'tufiles.ru/') or contains(@href,'turbob1t.ru/') or contains(@href,'filesmail.ru/') or contains(@href,'failoobmenik.ru/')"+
  5588. " or contains(@href,'firebit.in/') or contains(@href,'dlbit.net/') or contains(@href,'files.china-gsm.ru/') or contains(@href,'3aka4aem.ru/')"+
  5589. " or contains(@href,'file.piratski.ru/') or contains(@href,'mnogofiles.com/') or contains(@href,'links-free.ru/')"+
  5590. " or contains(@href,'turbo-bit.ru/') or contains(@href,'turbosfiles.ru/')]"
  5591. );
  5592. }
  5593. if (GM_getValue("Check_data_dot_hu_links", false))
  5594. {
  5595. addFileHost(
  5596. "data\\.hu\/get\/\\d+\/",
  5597. 'download_box_button',
  5598. 'missing\\.php',
  5599. 'optional--',
  5600. "//a[contains(@href,'data.hu/get')]",
  5601. true
  5602. );
  5603. }
  5604. if (GM_getValue("Check_filesmelt_dot_com_links", false))
  5605. {
  5606. addFileHost(
  5607. "filesmelt\\.com\/dl\/\\w+",
  5608. '(Your download is ready|Download File)',
  5609. 'Sorry, but your',
  5610. 'optional--',
  5611. "//a[contains(@href,'filesmelt.com/dl')]"
  5612. );
  5613. }
  5614. if (GM_getValue("Check_indowebster_dot_com_links", false))
  5615. {
  5616. addFileHost(
  5617. "(?:files\\.)?indowebster\\.com\/download\/\\w+\/",
  5618. 'premiumBtn"',
  5619. 'errorMessage"',
  5620. 'optional--',
  5621. "//a[contains(@href,'indowebster.com/download')]"
  5622. );
  5623. }
  5624. if (GM_getValue("Check_superload_dot_cz_links", false))
  5625. {
  5626. addFileHost(
  5627. "superload\\.cz\/dl\/\\w+",
  5628. 'icon-download">',
  5629. 'soubor nebyl nalezen',
  5630. 'optional--',
  5631. "//a[contains(@href,'superload.cz/dl')]"
  5632. );
  5633. }
  5634. if (GM_getValue("Check_hulkfile_dot_eu_links", false))
  5635. {
  5636. addFileHost(
  5637. "(?:w\\.hulkfile\\.com|hulkfile\\.eu)\/\\w+",
  5638. 'op" value="download',
  5639. 'class="err">|width:500px;text-align:left;">',
  5640. 'optional--',
  5641. "//a[contains(@href,'hulkfile.')]"
  5642. );
  5643. }
  5644. if (GM_getValue("Check_easybytez_dot_com_links", false))
  5645. {
  5646. addFileHost(
  5647. "easybytez\\.com\/\\w+",
  5648. 'op" value="download',
  5649. 'stop_error\\.gif',
  5650. 'optional--',
  5651. "//a[contains(@href,'easybytez.com/')]"
  5652. );
  5653. }
  5654. if (GM_getValue("Check_filestore_dot_com_dot_ua_links", false))
  5655. {
  5656. addFileHost(
  5657. "filestore\\.com\\.ua\/\\?d=\\w+",
  5658. 'tdrow1>',
  5659. 'class=warn',
  5660. 'optional--',
  5661. "//a[contains(@href,'filestore.com.ua/?d=')]"
  5662. );
  5663. }
  5664. if (GM_getValue("Check_netkups_dot_com_links", false))
  5665. {
  5666. addFileHost(
  5667. "netkups\\.com\/\\?d=\\w+",
  5668. 'submit">Continue',
  5669. 'page">File not found|deleted due to inactivity',
  5670. 'optional--',
  5671. "//a[contains(@href,'netkups.com/?d=')]"
  5672. );
  5673. }
  5674. if (GM_getValue("Check_openfile_dot_ru_links", false))
  5675. {
  5676. addFileHost(
  5677. "openfile\\.ru\/(?:video\/|)\\d+",
  5678. 'videobox_left">',
  5679. 'blog_title">|not found on this server',
  5680. 'optional--',
  5681. "//a[contains(@href,'openfile.ru/')]"
  5682. );
  5683. }
  5684. if (GM_getValue("Check_extmatrix_dot_com_links", false))
  5685. {
  5686. addFileHost(
  5687. "extmatrix\\.com\/files\/\\w+",
  5688. 'div class="success"',
  5689. 'div class="error"',
  5690. 'optional--',
  5691. "//a[contains(@href,'extmatrix.com/files')]"
  5692. );
  5693. }
  5694. if (GM_getValue("Check_sendfiles_dot_nl_links", false))
  5695. {
  5696. addFileHost(
  5697. "sendfiles\\.nl\/download.aspx\\?ID=\\w+",
  5698. 'content_lnkDownload',
  5699. 'error\\.aspx\\?',
  5700. 'optional--',
  5701. "//a[contains(@href,'sendfiles.nl/download.aspx')]"
  5702. );
  5703. }
  5704. /* if (GM_getValue("Check_sockshare_dot_com_links", false))
  5705. {
  5706. addFileHost(
  5707. "sockshare\\.com\/file\/\\w+",
  5708. 'choose_speed">',
  5709. 'message t_0\'>',
  5710. 'optional--',
  5711. "//a[contains(@href,'sockshare.com/file')]"
  5712. );
  5713. } */
  5714. if (GM_getValue("Check_yourfilestore_dot_com_links", false))
  5715. {
  5716. addFileHost(
  5717. "yourfilestore\\.com\/download\/\\d+\/",
  5718. 'download_data">',
  5719. 'may have been deleted|<h1>Sorry!<\/h1>',
  5720. 'optional--',
  5721. "//a[contains(@href,'yourfilestore.com/download')]"
  5722. );
  5723. }
  5724. if (GM_getValue("Check_nekaka_dot_com_links", false))
  5725. {
  5726. addFileHost(
  5727. "nekaka\\.com\/d\/[\\w-]+",
  5728. 'downloadForm">',
  5729. 'invalid file link',
  5730. 'optional--',
  5731. "//a[contains(@href,'nekaka.com/d')]"
  5732. );
  5733. }
  5734. if (GM_getValue("Check_filebig_dot_net_links", false))
  5735. {
  5736. addFileHost(
  5737. "filebig\\.net\/files\/\\w+",
  5738. 'downloadFile">',
  5739. '<p>File not found<\/p>',
  5740. 'optional--',
  5741. "//a[contains(@href,'filebig.net/files')]"
  5742. );
  5743. }
  5744. if (GM_getValue("Check_gamefront_dot_com_links", false))
  5745. {
  5746. addFileHost(
  5747. "files\\.filefront\\.com\/\/;\\d+;;",
  5748. 'downloadLink">',
  5749. 'File not found, you',
  5750. 'optional--',
  5751. "//a[contains(@href,'files.filefront.com')]"
  5752. );
  5753.  
  5754. addFileHost(
  5755. "gamefront\\.com\/files\/\\d+",
  5756. 'downloadLink">',
  5757. 'File not found, you',
  5758. 'optional--',
  5759. "//a[contains(@href,'gamefront.com/files')]"
  5760. );
  5761. }
  5762. if (GM_getValue("Check_hyperfileshare_dot_com_links", false))
  5763. {
  5764. addFileHost(
  5765. "(?:download\\.|)hyperfileshare\\.com\/(?:download\\.php\\?code=|d\/)\\w+",
  5766. 'dnlLnk"',
  5767. 'already been deleted',
  5768. 'optional--',
  5769. "//a[contains(@href,'hyperfileshare.com/download') or contains(@href,'hyperfileshare.com/d')]"
  5770. );
  5771. }
  5772. if (GM_getValue("Check_hellupload_dot_com_links", false))
  5773. {
  5774. addFileHost(
  5775. "hellupload\\.com\/\\w+",
  5776. '<h3>Download File<br',
  5777. 'id="podstrona">|AVOID_IE_BUG',
  5778. 'optional--',
  5779. "//a[contains(@href,'hellupload.com/')]"
  5780. );
  5781. }
  5782. if (GM_getValue("Check_free_dash_uploading_dot_com_links", false))
  5783. {
  5784. addFileHost(
  5785. "free\\-uploading\\.com\/\\w+",
  5786. 'op" value="download',
  5787. 'class="err">|width:500px;text-align:left;">',
  5788. 'optional--',
  5789. "//a[contains(@href,'free-uploading.com/')]"
  5790. );
  5791. }
  5792. if (GM_getValue("Check_fileape_dot_com_links", false))
  5793. {
  5794. addFileHost(
  5795. "fileape\\.com\/download\\-",
  5796. 'button_dl\\.png',
  5797. 'does not exist\\.',
  5798. 'optional--',
  5799. "//a[contains(@href,'fileape.com/')]"
  5800. );
  5801. }
  5802. if (GM_getValue("Check_uppit_dot_com_links", false))
  5803. {
  5804. addFileHost(
  5805. "(?:uppit\\.com|up\\.ht)\/\\w+",
  5806. 'op" value="download',
  5807. 'class="err">|style="width:500px;text-align:left;"|fish-404\\.png"',
  5808. 'optional--',
  5809. "//a[contains(@href,'up.ht/') or contains(@href,'uppit.com/')]",
  5810. true
  5811. );
  5812. }
  5813. if (GM_getValue("Check_nosupload_dot_com_links", false))
  5814. {
  5815. addFileHost(
  5816. "nosupload\\.com\/(?:\\?d=)?\\w+",
  5817. 'op" value="download',
  5818. '>File Not Found<',
  5819. 'optional--',
  5820. "//a[contains(@href,'nosupload.com')]",
  5821. true
  5822. );
  5823. }
  5824. if (GM_getValue("Check_filesin_dot_com_links", false))
  5825. {
  5826. addFileHost(
  5827. "filesin\\.com\/\\w+\/download\\.html",
  5828. 'download_area">',
  5829. 'error_note">',
  5830. 'optional--',
  5831. "//a[contains(@href,'filesin.com/')]",
  5832. true
  5833. );
  5834. }
  5835. if (GM_getValue("Check_nowdownload_dot_eu_links", false))
  5836. {
  5837. addFileHost(
  5838. "nowdownload\\.eu\/dl\/\\w+",
  5839. 'alert-success"',
  5840. 'This file does not exist!',
  5841. 'The file is being transfered',
  5842. "//a[contains(@href,'nowdownload.eu/dl')]"
  5843. );
  5844. }
  5845. if (GM_getValue("Check_axifile_dot_com_links", false))
  5846. {
  5847. addFileHost(
  5848. "axifile\\.com(?:\/\w(2))?\/\\??\\w+",
  5849. 'Dbutton_big"',
  5850. 'download\\-error\\.php',
  5851. 'optional--',
  5852. "//a[contains(@href,'axifile.com/')]"
  5853. );
  5854. }
  5855. if (GM_getValue("Check_hulkshare_dot_com_links", false))
  5856. {
  5857. addFileHost(
  5858. "hulkshare\.com\/\\w+",
  5859. 'download\.sam\.png|This is a private file|id="filename',
  5860. 'File does not exist|fingerprint protected copyright',
  5861. 'optional--',
  5862. "//a[contains(@href,'hulkshare.com')]"
  5863. );
  5864. }
  5865. if (GM_getValue("Check_turbobit_dot_net_links", false)) //folders
  5866. {
  5867. addFileHost(
  5868. "turbobit\\.(?:net|pl)\/download\/folder\/\\d+",
  5869. 'col-1">\\s*<s',
  5870. 'col-1">\\s*<h',
  5871. 'optional--',
  5872. "//a[contains(@href,'turbobit.') and contains(@href,'download/folder')]"
  5873. );
  5874. }
  5875. if (GM_getValue("Check_hitfile_dot_net_links", false)) //folders
  5876. {
  5877. addFileHost(
  5878. "hitfile\\.net\/download\/folder\/\\d+",
  5879. 'content">\\s*<s',
  5880. 'content">\\s*<h',
  5881. 'optional--',
  5882. "//a[contains(@href,'hitfile.net/download/folder')]"
  5883. );
  5884. }
  5885. if (GM_getValue("Check_netload_dot_in_links", false)) //folders
  5886. {
  5887. addFileHost(
  5888. "netload\\.in\/folder\\.php\\?folder_id=\\w+",
  5889. 'images\/online\\.gif',
  5890. 'InPage_Error"',
  5891. 'optional--',
  5892. "//a[contains(@href,'netload.in/folder.php')]"
  5893. );
  5894. }
  5895. if (GM_getValue("Check_movshare_dot_net_links", false))
  5896. {
  5897. addFileHost(
  5898. "movshare\\.net\\/video\\/\\w+",
  5899. 'optional--"',
  5900. 'no longer exists',
  5901. 'optional--',
  5902. "//a[contains(@href,'movshare.net/video')]"
  5903. );
  5904. }
  5905. if (GM_getValue("Check_plunder_dot_com_links", false))
  5906. {
  5907. addFileHost(
  5908. "plunder\.com\/\\w+",
  5909. 'x\/download\\.gif',
  5910. '404 - File or directory not found.',
  5911. 'optional--',
  5912. "//a[contains(@href,'plunder.com')]"
  5913. );
  5914. }
  5915. if (GM_getValue("Check_mafiastorage_dot_com_links", false))
  5916. {
  5917. addFileHost(
  5918. "mafiastorage\\.com\/\\w+",
  5919. 'op" value="download',
  5920. 'class="err">|style="width:500px;text-align:left;"',
  5921. 'optional--',
  5922. "//a[contains(@href,'mafiastorage.com/')]"
  5923. );
  5924. }
  5925. if (GM_getValue("Check_uploadspace_dot_pl_links", false))
  5926. {
  5927. addFileHost(
  5928. "uploadspace\.pl\/plik\\w+",
  5929. 'Downloading .+? \\|',
  5930. 'Downloading a file',
  5931. 'optional--',
  5932. "//a[contains(@href,'uploadspace.pl/plik')]"
  5933. );
  5934. }
  5935. if (GM_getValue("Check_uploadingit_dot_com_links", false))
  5936. {
  5937. addFileHost(
  5938. "uploadingit\\.com\/file\/\\w+",
  5939. 'downloadTitle">',
  5940. 'deleteContent">',
  5941. 'optional--',
  5942. "//a[contains(@href,'uploadingit.com/file')]"
  5943. );
  5944. }
  5945. if (GM_getValue("Check_rghost_dot_net_links", false))
  5946. {
  5947. addFileHost(
  5948. "rghost\.(?:net|ru)\/(?:|private\/)\\d+",
  5949. 'download_link|btn large download"',
  5950. 'file is restricted|File is deleted|503 Service Unavailable',
  5951. 'File was deleted',
  5952. "//a[contains(@href,'rghost.')]"
  5953. );
  5954. }
  5955. if (GM_getValue("Check_xdisk_dot_cz_links", false))
  5956. {
  5957. addFileHost(
  5958. "xdisk\\.cz\/(?:..\/)?download\\.php\\?id=\\w+",
  5959. '">Staženo:\\s*<\/span>',
  5960. 'Soubor, který hledáte nenalezen',
  5961. 'optional--',
  5962. "//a[contains(@href,'xdisk.cz/')]"
  5963. );
  5964. }
  5965. if (GM_getValue("Check_expressleech_dot_com_links", false))
  5966. {
  5967. addFileHost(
  5968. "expressleech\.com\/\\w+",
  5969. 'src="/img/Download.gif"|var _gaq =',
  5970. 'var rr =|403 Forbidden',
  5971. 'optional--',
  5972. "//a[contains(@href,'expressleech.com')]");
  5973. }
  5974. if (GM_getValue("Check_2downloadz_dot_com_links", false))
  5975. {
  5976. addFileHost(
  5977. "2downloadz\.com\/\\w+",
  5978. 'color="#848484|src="images/Download.png"|color:#238DCA',
  5979. 'color="#006DCC|File error',
  5980. 'optional--',
  5981. "//a[contains(@href,'2downloadz.com')]");
  5982. }
  5983. if (GM_getValue("Check_mightyupload_dot_com_links", false))
  5984. {
  5985. addFileHost(
  5986. "mightyupload\.com\/\\w+",
  5987. 'background:#ccc;text-align|CONTENT="Download File"',
  5988. 'style="background:#eee|var rr =|File Not Found',
  5989. 'optional--',
  5990. "//a[contains(@href,'mightyupload.com')]");
  5991. }
  5992. if (GM_getValue("Check_uncapped_dash_downloads_dot_com_links", false))
  5993. {
  5994. addFileHost(
  5995. "uncapped-downloads\.com\/\\w+",
  5996. 'btn_download',
  5997. 'File Not Found',
  5998. 'optional--',
  5999. "//a[contains(@href,'uncapped-downloads.com')]");
  6000. }
  6001. if (GM_getValue("Check_k2s_dot_cc_links", false))
  6002. {
  6003. addFileHost(
  6004. "k2s\.cc\/file\/\\w+",
  6005. 'Click here for slow download with|class="btn" id="yw0"|onclick="download',
  6006. 'Error 404|class="errorSummary">|this file is blocked or deleted|>404 Not Found<|To avoid damaged files|This file is no longer available',
  6007. 'please try later',
  6008. //'optional--',
  6009. "//a[contains(@href,'k2s.cc')]");
  6010. }
  6011. if (GM_getValue("Check_keep2share_dot_cc_links", false))
  6012. {
  6013. addFileHost(
  6014. "keep2share\.cc\/file\/\\w+",
  6015. 'Click here for slow download with|class="btn" id="yw0"|onclick="download',
  6016. 'Error 404|class="errorSummary">|this file is blocked or deleted|>404 Not Found<|To avoid damaged files|This file is no longer available',
  6017. 'please try later',
  6018. //'premium only',
  6019. "//a[contains(@href,'keep2share.cc')]");
  6020. }
  6021. if (GM_getValue("Check_keep2s_dot_cc_links", false))
  6022. {
  6023. addFileHost(
  6024. "keep2s\.cc\/file\/\\w+",
  6025. 'Click here for slow download with|class="btn" id="yw0"|onclick="download',
  6026. 'Error 404|class="errorSummary">|this file is blocked or deleted|>404 Not Found<|To avoid damaged files|This file is no longer available',
  6027. 'please try later',
  6028. //'optional--',
  6029. "//a[contains(@href,'keep2s.cc')]");
  6030. }
  6031. if (GM_getValue("Check_keep2share_dot_com_links", false))
  6032. {
  6033. addFileHost(
  6034. "keep2share\.com\/file\/\\w+",
  6035. 'Click here for slow download with|class="btn" id="yw0"|onclick="download',
  6036. 'Error 404|class="errorSummary">|this file is blocked or deleted|>404 Not Found<|To avoid damaged files|This file is no longer available',
  6037. 'please try later',
  6038. //'optional--',
  6039. "//a[contains(@href,'keep2share.com')]");
  6040. }
  6041. if (GM_getValue("Check_anysend_dot_com_links", false))
  6042. {
  6043. addFileHost(
  6044. "anysend\.com\/\\w+",
  6045. 'var openCalled=false;|content="noindex"',
  6046. '_trackPageview',
  6047. 'optional--',
  6048. "//a[contains(@href,'anysend.com')]");
  6049. }
  6050. if (GM_getValue("Check_datafile_dot_com_links", false))
  6051. {
  6052. addFileHost(
  6053. "datafile\.com\/\\w+",
  6054. 'var captchaPanel',
  6055. 'ErrorCode|class="error-msg"|ErrorCode 0: Invalid Link|btn-orange" href="#"',
  6056. 'You are downloading another file at this moment|You exceeded your free',
  6057. //'optional--',
  6058. "//a[contains(@href,'datafile.com')]",
  6059. true);
  6060. }
  6061. if (GM_getValue("Check_upstore_dot_net_links", false))
  6062. {
  6063. addFileHost(
  6064. "upstore\.net\/\\w+",
  6065. 'style="margin-top: 20px">|style="text-align:center; margin: 20px 0 100px;">',
  6066. 'File not found|onload="redirect|class="error">',
  6067. 'optional--',
  6068. "//a[contains(@href,'upstore.net')]");
  6069. }
  6070. if (GM_getValue("Check_upsto_dot_re_links", false))
  6071. {
  6072. addFileHost(
  6073. "upsto\.re\/\\w+",
  6074. 'style="margin-top: 20px">|style="text-align:center; margin: 20px 0 100px;">',
  6075. 'File not found|onload="redirect|class="error">',
  6076. 'optional--',
  6077. "//a[contains(@href,'upsto.re')]");
  6078. }
  6079. if (GM_getValue("Check_speedy_dot_sh_links", false))
  6080. {
  6081. addFileHost(
  6082. "speedy\.sh\/\\w+",
  6083. 'bgcolor=#eeeeee|class="addthis',
  6084. 'File not found|downloadfilenamenotfound>',
  6085. 'optional--',
  6086. "//a[contains(@href,'speedy.sh')]");
  6087. }
  6088. if (GM_getValue("Check_sanshare_dot_com_links", false))
  6089. {
  6090. addFileHost(
  6091. "sanshare\.com\/\\w+",
  6092. 'SANSHARE_TOPBANNER|offset-1"><h3><b>Download File',
  6093. 'offset-1"><b>File Not Found<|width:500px;text-align',
  6094. 'optional--',
  6095. "//a[contains(@href,'sanshare.com')]");
  6096. }
  6097. if (GM_getValue("Check_kingfiles_dot_net_links", false))
  6098. {
  6099. addFileHost(
  6100. "kingfiles\.net\/\\w+",
  6101. 'img/spriteBanner.png|If you are the owner of this file',
  6102. 'var rr =|"description" CONTENT="Download File ">|<div style="width:500px;text-align:left;">|The file was removed by administrator',
  6103. 'optional--',
  6104. "//a[contains(@href,'kingfiles.net')]");
  6105. }
  6106. if (GM_getValue("Check_uploadhero_dot_co_links", false))
  6107. {
  6108. addFileHost(
  6109. "uploadhero\\.co\/dl\/\\w+",
  6110. 'class="nom_de_fichier"|Unlimited downloads|Estimated download time|Lien de téléchargement"',
  6111. 'not available on our server|pas disponible sur nos serveurs|Le lien du fichier est incorrect',
  6112. 'optional--',
  6113. "//a[contains(@href,'uploadhero.co/dl')]"
  6114. );
  6115. }
  6116. if (GM_getValue("Check_secureupload_dot_eu_links", false))
  6117. {
  6118. addFileHost(
  6119. "secureupload\\.eu\/\\w+",
  6120. 'Downloading',
  6121. 'cannot be found|File Not Found|could not be found',
  6122. 'optional--',
  6123. "//a[contains(@href,'secureupload.eu')]"
  6124. );
  6125. }
  6126. if (GM_getValue("Check_ge_dot_tt_links", false))
  6127. {
  6128. addFileHost(
  6129. "ge\.tt\/\\w+",
  6130. 'downloads pic',
  6131. 'is NOT the same as',
  6132. 'optional--',
  6133. "//a[contains(@href,'ge.tt')]");
  6134. }
  6135. if (GM_getValue("Check_filefactory_dot_com_links", false))
  6136. {
  6137. addFileHost(
  6138. "filefactory\.com\/\\w+",
  6139. 'div id="file_holder"|download.css',
  6140. 'File Removed|Invalid Download Link|File Unavailable|Server Failed|Datei entfernt|This file has been removed|Invalid Download Link',
  6141. 'Server Maintenance|temporarily overloaded',
  6142. //'optional--',
  6143. "//a[contains(@href,'filefactory.com')]");
  6144. }
  6145. if (GM_getValue("Check_filesflash_dot_net_links", false))
  6146. {
  6147. addFileHost(
  6148. "filesflash\.net\/\\w+",
  6149. 'align:right">Filename:',
  6150. 'class="msg">',
  6151. 'optional--',
  6152. "//a[contains(@href,'filesflash.net')]");
  6153. }
  6154. if (GM_getValue("Check_rapidgator_dot_net_links", false)) //folders
  6155. {
  6156. addFileHost(
  6157. "rapidgator\\.net\/folder\/\\w+",
  6158. 'href="/folder/',
  6159. 'class="empty|Folder not found|Carpeta no encontrada|Dossier non trouvé|Папка не найдена',
  6160. 'optional--',
  6161. "//a[contains(@href,'rapidgator.net/folder')]",
  6162. true
  6163. );
  6164. }
  6165. if (GM_getValue("Check_salefiles_dot_com_links", false))
  6166. {
  6167. addFileHost(
  6168. "salefiles\.com\/\\w+",
  6169. '<Title>Download|CONTENT="Download',
  6170. 'font:15px Arial|background:#eee;',
  6171. 'optional--',
  6172. "//a[contains(@href,'salefiles.com')]");
  6173. }
  6174. if (GM_getValue("Check_megairon_dot_net_links", false))
  6175. {
  6176. addFileHost(
  6177. "megairon\.net\/\\w+",
  6178. 'border: 5px #ffeb90 solid;',
  6179. 'CONTENT="Download File ">|var rr =',
  6180. 'optional--',
  6181. "//a[contains(@href,'megairon.net')]");
  6182. }
  6183. if (GM_getValue("Check_datoid_dot_cz_links", false))
  6184. {
  6185. addFileHost(
  6186. "datoid\.cz\/\\w+",
  6187. 'btn-download|class="icon-download-large"',
  6188. 'Stránka nenalezena|error-404|Soubor byl zablokován',
  6189. 'optional--',
  6190. "//a[contains(@href,'datoid.cz')]");
  6191. }
  6192. if (GM_getValue("Check_stiahni_dot_si_links", false))
  6193. {
  6194. addFileHost(
  6195. "stiahni\.si\/\\w+",
  6196. 'report_icon.png"|slow-download-button',
  6197. 'none.png|deleted|<h2>Error 500</h2>',
  6198. 'optional--',
  6199. "//a[contains(@href,'stiahni.si')]");
  6200. }
  6201. if (GM_getValue("Check_cloudstor_dot_es_links", false))
  6202. {
  6203. addFileHost(
  6204. "cloudstor\.es\/\\w+",
  6205. '"btn_download"',
  6206. '404: Page Not Found',
  6207. 'optional--',
  6208. "//a[contains(@href,'cloudstor.es')]");
  6209. }
  6210. if (GM_getValue("Check_streamfile_dot_com_links", false))
  6211. {
  6212. addFileHost(
  6213. "streamfile\.com\/\\w+",
  6214. 'class="btn',
  6215. 'class="green-btn',
  6216. 'optional--',
  6217. "//a[contains(@href,'streamfile.com')]");
  6218. }
  6219. if (GM_getValue("Check_eyesfile_dot_ca_links", false))
  6220. {
  6221. addFileHost(
  6222. "eyesfile\.ca\/\\w+",
  6223. 'value="Get Link',
  6224. 'var rr =',
  6225. 'optional--',
  6226. "//a[contains(@href,'eyesfile.ca')]");
  6227. }
  6228. if (GM_getValue("Check_filemoney_dot_com_links", false))
  6229. {
  6230. addFileHost(
  6231. "filemoney\.com\/\\w+",
  6232. 'og:title',
  6233. '404 Not Found|<Title>FileMoney',
  6234. 'optional--',
  6235. "//a[contains(@href,'filemoney.com')]");
  6236. }
  6237. if (GM_getValue("Check_uploadboy_dot_com_links", false))
  6238. {
  6239. addFileHost(
  6240. "uploadboy\.com\/\\w+",
  6241. 'width="740">|method_free',
  6242. 'var rr =|background:#ffffff|not be found|file was removed',
  6243. 'optional--',
  6244. "//a[contains(@href,'uploadboy.com')]");
  6245. }
  6246. if (GM_getValue("Check_speedshare_dot_eu_links", false))
  6247. {
  6248. addFileHost(
  6249. "speedshare\.eu\/\\w+",
  6250. 'favicon.png|color:#3d87c0|cross.png"',
  6251. 'var rr =|File Not Found|style="background:#eee',
  6252. 'optional--',
  6253. "//a[contains(@href,'speedshare.eu')]");
  6254. }
  6255. if (GM_getValue("Check_unlimitzone_dot_com_links", false))
  6256. {
  6257. addFileHost(
  6258. "unlimitzone\.com\/\\w+",
  6259. 'content="1" name="',
  6260. 'var rr =|File Not Found',
  6261. 'optional--',
  6262. "//a[contains(@href,'unlimitzone.com')]");
  6263. }
  6264. if (GM_getValue("Check_rioupload_dot_com_links", false))
  6265. {
  6266. addFileHost(
  6267. "rioupload\.com\/\\w+",
  6268. 'sell.jpg',
  6269. 'var rr =',
  6270. 'optional--',
  6271. "//a[contains(@href,'rioupload.com')]");
  6272. }
  6273. if (GM_getValue("Check_rg_dot_to_links", false))
  6274. {
  6275. addFileHost(
  6276. "rg\.to\/\\w+",
  6277. '/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',
  6278. 'Error 404|File not found|Select your plan',
  6279. 'optional--',
  6280. //'optional--',
  6281. "//a[contains(@href,'rg.to')]");
  6282. }
  6283. if (GM_getValue("Check_jumbofiles_dot_org_links", false))
  6284. {
  6285. addFileHost(
  6286. "jumbofiles\.org\/\\w+",
  6287. 'H71C5.png|class="downloadtitle">',
  6288. 'var swfu|ViewSourceBIN.png',
  6289. 'optional--',
  6290. "//a[contains(@href,'jumbofiles.org')]");
  6291. }
  6292. if (GM_getValue("Check_fshare_dot_vn_links", false))
  6293. {
  6294. addFileHost(
  6295. "fshare\\.vn\/file\/\\w+",
  6296. 'action="#download"|left; width: 330px;">|class="bt_down"',
  6297. 'không tồn tại|class="color_red m_t_50"',
  6298. 'optional--',
  6299. "//a[contains(@href,'fshare.vn/file')]",
  6300. true
  6301. );
  6302. }
  6303. if (GM_getValue("Check_spaceforfiles_dot_com_links", false))
  6304. {
  6305. addFileHost(
  6306. "spaceforfiles\.com\/\\w+",
  6307. 'btn_slowspeed_b.jpg|value="download1|class="btn_blue',
  6308. 'var rr =|AVOID_IE_BUG',
  6309. 'optional--',
  6310. "//a[contains(@href,'spaceforfiles.com')]");
  6311. }
  6312. if (GM_getValue("Check_google_dot_com_links", false))
  6313. {
  6314. addFileHost(
  6315. "google\\.com\/file\/\\w+",
  6316. 'content="!">|color:#2d2d2d',
  6317. '12pt; font-weight:|class="errorMessage"|F0F6FF',
  6318. 'optional--',
  6319. "//a[contains(@href,'google.com/file')]",
  6320. true
  6321. );
  6322. }
  6323. if (GM_getValue("Check_google_dot_com_links", false))
  6324. {
  6325. addFileHost(
  6326. "docs.google.com\/\\w+",
  6327. 'content="!">|color:#2d2d2d',
  6328. '12pt; font-weight:|class="errorMessage"|F0F6FF|Error 404',
  6329. 'optional--',
  6330. "//a[contains(@href,'docs.google.com')]",
  6331. true
  6332. );
  6333. }
  6334. if (GM_getValue("Check_google_dot_com_links", false))
  6335. {
  6336. addFileHost(
  6337. "drive.google.com\/\\w+",
  6338. 'content="!">|color:#2d2d2d|id="uc-download-link',
  6339. '12pt; font-weight:|class="errorMessage"|F0F6FF|Error 404',
  6340. 'optional--',
  6341. "//a[contains(@href,'drive.google.com')]",
  6342. true
  6343. );
  6344. }
  6345. if (GM_getValue("Check_up_dot_media1fire_dot_com_links", false))
  6346. {
  6347. addFileHost(
  6348. "up.media1fire\.com\/\\w+",
  6349. 'class="addthis_|value="download',
  6350. 'var rr =|AVOID_IE_BUG|<div style="width:500px;text-align:left;">',
  6351. 'optional--',
  6352. "//a[contains(@href,'up.media1fire.com')]");
  6353. }
  6354. if (GM_getValue("Check_depfile_dot_com_links", false))
  6355. {
  6356. addFileHost(
  6357. "depfile\.com\/\\w+",
  6358. 'logo_0.png|downloads.gif"',
  6359. 'border-color: #5D729B;|bgcolor="#778AAF"',
  6360. 'optional--',
  6361. "//a[contains(@href,'depfile.com')]");
  6362. }
  6363. if (GM_getValue("Check_go4up_dot_com_links", false))
  6364. {
  6365. addFileHost(
  6366. "go4up\.com\/\\w+",
  6367. 'style="width: 100%;">|value="Access|download_line',
  6368. '<title>GO4UP|dmca',
  6369. 'optional--',
  6370. "//a[contains(@href,'go4up.com')]");
  6371. }
  6372. if (GM_getValue("Check_redbunker_dot_net_links", false))
  6373. {
  6374. addFileHost(
  6375. "redbunker\.net\/\\w+",
  6376. 'dload.png|rowspan="3">|yep.gif',
  6377. 'CONTENT="RedBunker|#D3D3D3;|color:#d33|AVOID_IE_BUG',
  6378. 'optional--',
  6379. "//a[contains(@href,'redbunker.net')]");
  6380. }
  6381. if (GM_getValue("Check_divxpress_dot_com_links", false))
  6382. {
  6383. addFileHost(
  6384. "divxpress\.com\/\\w+",
  6385. 'btn_download|logo.png"',
  6386. 'AVOID_IE_BUG|var rr =',
  6387. 'optional--',
  6388. "//a[contains(@href,'divxpress.com')]");
  6389. }
  6390. if (GM_getValue("Check_anafile_dot_com_links", false))
  6391. {
  6392. addFileHost(
  6393. "anafile\.com\/\\w+",
  6394. 'width="881" valign="top|color="#800080"',
  6395. 'style="width:500px;text-align:left;">|file was deleted|AVOID_IE_BUG',
  6396. 'optional--',
  6397. "//a[contains(@href,'anafile.com')]");
  6398. }
  6399. if (GM_getValue("Check_uploadable_dot_ch_links", false))
  6400. {
  6401. addFileHost(
  6402. "uploadable\\.ch\/file\/\\w+",
  6403. 'captcha.js"|payment.js"|class="btn_download"',
  6404. '<div class="icon_err">|<div class="errorBox">|"error_arrow">',
  6405. 'optional--',
  6406. "//a[contains(@href,'uploadable.ch/file')]",
  6407. true
  6408. );
  6409. }
  6410. if (GM_getValue("Check_arabloads_dot_com_links", false))
  6411. {
  6412. addFileHost(
  6413. "arabloads\.com\/\\w+",
  6414. 'name="method_free"|name="method_premium"',
  6415. 'background:#eee;font:15px Arial;">|AVOID_IE_BUG|Verdana;padding:3px;">Error',
  6416. 'optional--',
  6417. "//a[contains(@href,'arabloads.com')]");
  6418. }
  6419. if (GM_getValue("Check_sharerepo_dot_com_links", false))
  6420. {
  6421. addFileHost(
  6422. "sharerepo\.com\/\\w+",
  6423. 'name="method_free"',
  6424. 'var public_on=|The file you were looking for could not be found',
  6425. 'optional--',
  6426. "//a[contains(@href,'sharerepo.com')]");
  6427. }
  6428. if (GM_getValue("Check_sfshare_dot_se_links", false))
  6429. {
  6430. addFileHost(
  6431. "sfshare\.se\/\\w+",
  6432. 'id="btn_download"|class="btn btn-primary txt-bold" value="',
  6433. 'AVOID_IE_BUG|var rr =|style="width:500px;text-align:left;">|Reason for deletion|The file was removed',
  6434. 'optional--',
  6435. "//a[contains(@href,'sfshare.se')]");
  6436. }
  6437. if (GM_getValue("Check_files_dot_fm_links", false))
  6438. {
  6439. addFileHost(
  6440. "files\.fm\/\\w+",
  6441. 'dl.png"|background-color: transparent',
  6442. 'margin: 40px 40px|background: none;',
  6443. 'optional--',
  6444. "//a[contains(@href,'files.fm')]");
  6445. }
  6446. if (GM_getValue("Check_koofile_dot_com_links", false))
  6447. {
  6448. addFileHost(
  6449. "koofile\.com\/\\w+",
  6450. 'value="download1">|name="method_free"',
  6451. 'class="overview-content c_text-box ">|style="padding-top:3px;">|class="rt1 c">',
  6452. 'optional--',
  6453. "//a[contains(@href,'koofile.com')]");
  6454. }
  6455. if (GM_getValue("Check_vidxden_dot_com_links", false))
  6456. {
  6457. addFileHost(
  6458. "vidxden\\.com\/\\w+",
  6459. 'Continue to Video"',
  6460. 'No such file',
  6461. 'optional--',
  6462. "//a[contains(@href,'vidxden.com')]"
  6463. );
  6464. }
  6465. if (GM_getValue("Check_muchshare_dot_net_links", false))
  6466. {
  6467. addFileHost(
  6468. "muchshare\\.net\/\\w+",
  6469. 'id="btn_download"',
  6470. 'File Not Found|width: 500px; text-align: left;',
  6471. 'optional--',
  6472. "//a[contains(@href,'muchshare.net')]"
  6473. );
  6474. }
  6475. if (GM_getValue("Check_daten_dash_hoster_dot_de_links", false))
  6476. {
  6477. addFileHost(
  6478. "(?:daten-hoster\\.de\/file\/\\w+|filehosting\\.org\/file\/\\w+|xtraupload\\.de\/\\?d=\\w+)",
  6479. 'Details zur Datei|Details page',
  6480. 'Jetzt hochladen|upload now',
  6481. 'optional--',
  6482. "//a[contains(@href,'daten-hoster.de/file') or contains(@href,'filehosting.org/file') or contains(@href,'xtraupload.de')]"
  6483. );
  6484. }
  6485. if (GM_getValue("Check_upload_dash_il_dot_net_links", false))
  6486. {
  6487. addFileHost(
  6488. "(?:upload-il|przeslij)\.net\/(?:en|he|ar|ru|)\/?\\w+",
  6489. 'downloadbtn"',
  6490. 'DL_FileNotFound',
  6491. 'optional--',
  6492. "//a[contains(@href,'upload-il.net') or contains(@href,'przeslij.net')]"
  6493. );
  6494. }
  6495. if (GM_getValue("Check_fileflyer_dot_com_links", false))
  6496. {
  6497. addFileHost(
  6498. "fileflyer\.com\/view\/\\w+",
  6499. '(?:dwl|locked)btn"',
  6500. 'error.gif"|link">Removed|removedlink">',
  6501. 'optional--',
  6502. "//a[contains(@href,'fileflyer.com')]"
  6503. );
  6504. }
  6505. if (GM_getValue("Check_filestore_dot_to_links", false))
  6506. {
  6507. addFileHost(
  6508. "filestore\.to\/\\?d=\\w+",
  6509. '"downloading"',
  6510. 'Datei wurde nicht gefunden',
  6511. 'optional--',
  6512. "//a[contains(@href,'filestore.to')]"
  6513. );
  6514. }
  6515. if (GM_getValue("Check_easy_dash_share_dot_com_links", false))
  6516. {
  6517. addFileHost(
  6518. "(?:w\\d*\.|)(?:crocko|easy-share)\\.com\/.",
  6519. 'fz24">Download|class="pl15">',
  6520. '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',
  6521. 'optional--',
  6522. "//a[contains(@href,'easy-share.com') or contains(@href,'crocko.com')]"
  6523. );
  6524. }
  6525. if (GM_getValue("Check_burnupload_dot_com_links", false))
  6526. {
  6527. addFileHost(
  6528. "burnupload\\.(?:com\/\\?d=|ihiphop\\.com\/download\\.php\\?id=)\\w+",
  6529. 'File size:',
  6530. 'file is not found',
  6531. 'optional--',
  6532. "//a[contains(@href,'burnupload.com') or contains(@href,'burnupload.ihiphop.com')]"
  6533. );
  6534. }
  6535. if (GM_getValue("Check_datei_dot_to_links", false))
  6536. {
  6537. addFileHost(
  6538. "datei\\.to\/\\??\\w+",
  6539. 'icon_downloaden\\.png|>Download starten<',
  6540. 'Datei wurde nicht gefunden|icon_deleted.png',
  6541. 'optional--',
  6542. "//a[contains(@href,'datei.to')]"
  6543. );
  6544. }
  6545. if (GM_getValue("Check_yunfile_dot_com_links", false))
  6546. {
  6547. addFileHost(
  6548. "(?:yunfile|filemarkets)\\.com\/\\w+",
  6549. '<body class="body" id="body">|value="Slow Download"',
  6550. '<body class="body" >',
  6551. 'optional--',
  6552. "//a[contains(@href,'yunfile.com') or contains(@href,'filemarkets.com')]"
  6553. );
  6554. }
  6555. /* if (GM_getValue("Check_putlocker_dot_com_links", false))
  6556. {
  6557. addFileHost(
  6558. "putlocker\\.com\/file\/\\w{16}",
  6559. 'as Free User|<a class="continue"|Continue to file|#feedback_btn|application file_standalone',
  6560. 'Welcome to PutLocker|<div class="sad_face_image">|404:',
  6561. 'undergoing scheduled maintenance',
  6562. "//a[contains(@href,'putlocker.com/file')]"
  6563. );
  6564. } */
  6565. if (GM_getValue("Check_uploadhero_dot_com_links", false))
  6566. {
  6567. addFileHost(
  6568. "uploadhero\\.com\/dl\/\\w+",
  6569. 'content-dl">',
  6570. 'men_file_lost\\.jpg"',
  6571. 'optional--',
  6572. "//a[contains(@href,'uploadhero.com/dl')]"
  6573. );
  6574. }
  6575. if (GM_getValue("Check_unibytes_dot_com_links", false))
  6576. {
  6577. addFileHost(
  6578. "unibytes\\.com\/[\\w\.]+",
  6579. 'trying to download|пытаетесь загрузить файл|tes entrain de tlcharger',
  6580. 'File not found|Файл не найден|',
  6581. 'optional--',
  6582. "//a[contains(@href,'unibytes.com')]"
  6583. );
  6584. }
  6585. if (GM_getValue("Check_hellshare_dot_com_links", false)) //very old type of links
  6586. {
  6587. addFileHost(
  6588. "www\\.hellshare\\.com\/\\d+",
  6589. 'tab\\-details"',
  6590. 'list-purp-2"|not found on this server',
  6591. 'optional--',
  6592. "//a[contains(@href,'www.hellshare.com')]"
  6593. );
  6594. }
  6595. if (GM_getValue("Check_quickshare_dot_cz_links", false)) //folders
  6596. {
  6597. addFileHost(
  6598. "quickshare\\.cz\/slozka-\\d+",
  6599. 'Počet souborů: <strong>[1-9]',
  6600. 'Počet souborů: <strong>0|Chyba! Taková složka neexistuje',
  6601. 'optional--',
  6602. "//a[contains(@href,'quickshare.cz/slozka')]"
  6603. );
  6604. }
  6605. if (GM_getValue("Check_filefactory_dot_com_links", false)) //folders
  6606. {
  6607. addFileHost(
  6608. "filefactory\\.com\/f\/\\w+",
  6609. 'folderFileList">',
  6610. 'table class="items"|Pointer" class="red">',
  6611. 'optional--',
  6612. "//a[contains(@href,'filefactory.com/f/')]"
  6613. );
  6614. }
  6615. if (GM_getValue("Check_netload_dot_in_links", false)) //folders
  6616. {
  6617. addFileHost(
  6618. "netfolder\\.in\/\\w+",
  6619. 'list" value="http',
  6620. 'InPage_Error">|list" value=""',
  6621. 'optional--',
  6622. "//a[contains(@href,'netfolder.in')]"
  6623. );
  6624. }
  6625. if (GM_getValue("Check_load_dot_to_links", false))
  6626. {
  6627. addFileHost(
  6628. '(?:www\\.|\\/)load\\.to\\/(?:\\w{10}\\/.|\\?d=\\w{10})',
  6629. '"download_table_left">Size',
  6630. 'Can\'t find file',
  6631. 'optional--',
  6632. "//a[contains(@href,'/load.to/') or contains(@href,'www.load.to/')]"
  6633. );
  6634. }
  6635. if (GM_getValue("Check_freakshare_dot_net_links", false))
  6636. {
  6637. addFileHost(
  6638. "freakshare\\.(?:net|com)\/files\/",
  6639. 'box_heading',
  6640. '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|الملف المطلوب غير موجود',
  6641. 'Your Traffic is used up for today',
  6642. "//a[(contains(@href,'freakshare.net') or contains(@href,'freakshare.com')) and contains(@href,'files')]",
  6643. true
  6644. );
  6645. //folders
  6646. addFileHost(
  6647. "freakshare\\.(?:net|com)\/folder\/",
  6648. 'Files: [1-9]',
  6649. 'Files: 0',
  6650. 'optional--',
  6651. "//a[(contains(@href,'freakshare.net') or contains(@href,'freakshare.com')) and contains(@href,'folder')]",
  6652. true
  6653. );
  6654. }
  6655. if (GM_getValue("Check_divshare_dot_com_links", false))
  6656. {
  6657. addFileHost(
  6658. "divshare\\.com\/download\/",
  6659. 'download_new\.png',
  6660. 'have been removed',
  6661. 'optional--',
  6662. "//a[contains(@href,'divshare.com')]"
  6663. );
  6664. }
  6665. if (GM_getValue("Check_euroshare_dot_eu_links", false))
  6666. {
  6667. addFileHost(
  6668. "euroshare\\.(?:eu|pl|sk|cz|hu)\/file\/\\d+",
  6669. 'nazev-souboru">',
  6670. '<div id="obsah">\\s*<h1>',
  6671. 'optional--',
  6672. "//a[contains(@href,'euroshare.eu/file')]"
  6673. );
  6674. }
  6675. if (GM_getValue("Check_files_dot_mail_dot_ru_links", false))
  6676. {
  6677. addFileHost(
  6678. 'files\\.mail\\.ru/(?:\\w*)',
  6679. 'fileList',
  6680. 'errorMessage',
  6681. 'optional--',
  6682. "//a[contains(@href,'files.mail.ru')]"
  6683. );
  6684. }
  6685. if (GM_getValue("Check_megashares_dot_com_links", false))
  6686. {
  6687. addFileHost(
  6688. "(?:d\\d+\.|)megashares\.com\/(?:dl|index\.php\\?d|\\?d\\d+=\\w+)",
  6689. 'Filesize',
  6690. 'Invalid|deleted|Could not download file',
  6691. 'slots|scheduled maintenance',
  6692. "//a[contains(@href,'megashares.com/')]"
  6693. );
  6694. }
  6695. if (GM_getValue("Check_narod_dot_ru_links", false))
  6696. {
  6697. addFileHost(
  6698. 'narod\\.(?:yandex\\.|)ru\/disk\/',
  6699. 'b-submit',
  6700. 'b-download-virus-note|headCode">404<',
  6701. 'Внутренняя ошибка сервиса',
  6702. "//a[contains(@href,'narod.ru') or contains(@href,'narod.yandex.ru')]"
  6703. );
  6704. }
  6705. if (GM_getValue("Check_rayfile_dot_com_links", false))
  6706. {
  6707. addFileHost(
  6708. "rayfile\\.com\/",
  6709. 'FILEtitleTXT',
  6710. 'blueRow',
  6711. 'optional--',
  6712. "//a[contains(@href,'rayfile.com/') and contains(@href,'files')]"
  6713. );
  6714. }
  6715. if (GM_getValue("Check_filesmonster_dot_com_links", false))
  6716. {
  6717. addFileHost(
  6718. "filesmonster\\.com\/download\\.php\\?id=\\w+",
  6719. 'button_green_body"',
  6720. 'error">',
  6721. 'optional--',
  6722. "//a[contains(@href,'filesmonster.com/download')]"
  6723. );
  6724. }
  6725. if (GM_getValue("Check_usaupload_dot_net_links", false))
  6726. {
  6727. addFileHost(
  6728. 'usaupload\\.net\/d\/(?:\w*)',
  6729. '<strong>File size:</strong>',
  6730. 'is not available',
  6731. 'optional--',
  6732. "//a[contains(@href,'usaupload.net/d/')]"
  6733. );
  6734. }
  6735. if (GM_getValue("Check_sendspace_dot_com_links", false))
  6736. {
  6737. addFileHost(
  6738. 'sendspace\\.com\/file\/\\w+',
  6739. 'file_description',
  6740. 'msg error"',
  6741. 'optional--',
  6742. "//a[contains(@href,'sendspace.com/file')]"
  6743. );
  6744. }
  6745. if (GM_getValue("Check_sendspace_dot_pl_links", false))
  6746. {
  6747. addFileHost(
  6748. 'sendspace\\.pl\/file\/\\w+',
  6749. 'download_file"',
  6750. 'Podany plik nie',
  6751. 'optional--',
  6752. "//a[contains(@href,'sendspace.pl/file')]"
  6753. );
  6754. }
  6755. if (GM_getValue("Check_uploading_dot_com_links", false))
  6756. {
  6757. addFileHost(
  6758. 'uploading\\.com\/(?:files\/)?\\w+',
  6759. 'free_method">',
  6760. 'file_error">|error_404">|file not found|OOPS! Looks like file not found',
  6761. 'optional--',
  6762. "//a[contains(@href,'uploading.com')]"
  6763. );
  6764. }
  6765. if (GM_getValue("Check_gigasize_dot_com_links", false))
  6766. {
  6767. addFileHost(
  6768. 'gigasize\\.com\/get\\.php(?:\/\\d+|\\?d=\\w+)',
  6769. 'fileId"',
  6770. 'error">',
  6771. 'optional--',
  6772. "//a[contains(@href,'gigasize.com/get')]"
  6773. );
  6774. }
  6775. if (GM_getValue("Check_good_dot_com_links", false))
  6776. {
  6777. addFileHost(
  6778. 'good\\.net\/(?:_|dl)',
  6779. 'Free Download',
  6780. 'Not Found',
  6781. 'Forbidden',
  6782. "//a[contains(@href,'good.net')]"
  6783. );
  6784. }
  6785. if (GM_getValue("Check_2shared_dot_com_links", false))
  6786. {
  6787. addFileHost(
  6788. '2shared\\.com\/(?:file|video|document|audio)\/\\w*',
  6789. 'File size',
  6790. 'File not found|is not valid|/images/important.gif',
  6791. 'optional--',
  6792. "//a[contains(@href,'2shared.com/file/') or contains (@href,'2shared.com/audio/') or contains (@href,'2shared.com/document/') or contains (@href,'2shared.com/video/')]"
  6793. );
  6794. }
  6795. if (GM_getValue("Check_turboupload_dot_com_links", false))
  6796. {
  6797. addFileHost(
  6798. 'turboupload\\.com\/\\w*',
  6799. 'You have requested',
  6800. 'File Not Found',
  6801. 'optional--',
  6802. "//a[contains(@href,'turboupload.com')]"
  6803. );
  6804. }
  6805. if (GM_getValue("Check_gigapeta_dot_com_links", false))
  6806. {
  6807. addFileHost(
  6808. 'gigapeta\\.com\/dl\/',
  6809. 'Download file|Скачать файл| Herunterzuladen|Scarica il file|Cargar el fichero|Charger le fichier',
  6810. '404|page_error',
  6811. 'optional--',
  6812. "//a[contains(@href,'gigapeta.com/dl')]"
  6813. );
  6814. }
  6815. if (GM_getValue("Check_veehd_dot_com_links", false))
  6816. {
  6817. addFileHost(
  6818. 'veehd\.com\/video\/.*?',
  6819. 'No sound|Download video',
  6820. 'Featured Videos',
  6821. 'optional--',
  6822. "//a[contains(@href,'veehd.com') and contains(@href,'video')]"
  6823. );
  6824. }
  6825. if (GM_getValue("Check_vip_dash_file_dot_com_links", false))
  6826. {
  6827. addFileHost(
  6828. '(?:u\\d+\\.)?vip-file\\.com\/download.*?\/(?:.*?)\/(?:.*?)\\.html',
  6829. 'fast_download_form">|submit_sms_download',
  6830. '<p style="text-align:center">',
  6831. 'optional--',
  6832. "//a[contains(@href,'vip-file.com/download')]"
  6833. );
  6834. }
  6835. if (GM_getValue("Check_letitbit_dot_net_links", false))
  6836. {
  6837. addFileHost(
  6838. '(?:u\\d+\\.)?letitbit\\.net\/download\/\\w+',
  6839. 'download\\-pnl ',
  6840. 'color:#000">|Запрашиваемый файл не найден|страница не существует|File not found|',
  6841. 'optional--',
  6842. "//a[contains(@href,'letitbit.net/download')]"
  6843. );
  6844. }
  6845. if (GM_getValue("Check_ifolder_dot_ru_links", false))
  6846. {
  6847. addFileHost(
  6848. 'ifolder\.ru\/\\d+',
  6849. 'file-info',
  6850. 'ui-state-error',
  6851. 'optional--',
  6852. "//a[contains(@href,'ifolder.ru')]"
  6853. );
  6854. }
  6855. if (GM_getValue("Check_fileswap_dot_com_links", false))
  6856. {
  6857. addFileHost(
  6858. 'fileswap\\.com\/dl\/\\w+',
  6859. 'bttnDownloadLink"',
  6860. 'rounded_block_error"',
  6861. 'is temporary unavailable|disponible en estos momentos|vorläufig unerreichbar|Файл временно недоступен',
  6862. "//a[contains(@href,'fileswap.com/dl')]"
  6863. );
  6864. }
  6865. if (GM_getValue("Check_filecloud_dot_io_links", false))
  6866. {
  6867. addFileHost(
  6868. '(?:s\\d+\\.)?filecloud\\.io\/\\w+',
  6869. 'var __error = 0',
  6870. 'FILES__DOESNT_EXIST|removed or did not exist',
  6871. 'optional--',
  6872. "//a[contains(@href,'filecloud.io/')]"
  6873. );
  6874. addFileHost(
  6875. 'ifile\\.it\/\\w+',
  6876. 'var __error = 0',
  6877. 'FILES__DOESNT_EXIST',
  6878. 'optional--',
  6879. "//a[contains(@href,'ifile.it/')]"
  6880. );
  6881. }
  6882. if (GM_getValue("Check_solidfiles_dot_com_links", false))
  6883. {
  6884. addFileHost(
  6885. 'solidfiles\\.com\/d\/\\w+',
  6886. 'id="download"|content="Download',
  6887. '>Not found<|<h2>404</h2>|Page not found|<h1>404</h1>|File not available|no longer available',
  6888. 'optional--',
  6889. "//a[contains(@href,'solidfiles.com/d')]"
  6890. );
  6891. }
  6892. if (GM_getValue("Check_shareflare_dot_net_links", false))
  6893. {
  6894. addFileHost(
  6895. "(?:.\\.|)shareflare\\.net",
  6896. 'download-pnl|<div class="premium-block">',
  6897. 'File not found|Поиск зеркала на фа|<div id="captcha"',
  6898. 'optional--',
  6899. "//a[contains(@href,'shareflare.net') and contains(@href,'download')]"
  6900. );
  6901. }
  6902. if (GM_getValue("Check_u18116681_dot_shareflare_dot_net_links", false))
  6903. {
  6904. addFileHost(
  6905. "u18116681.shareflare\\.net",
  6906. 'download-pnl|<div class="premium-block">',
  6907. 'File not found|Поиск зеркала на фа|<div id="captcha"',
  6908. 'optional--',
  6909. "//a[contains(@href,'shareflare.net') and contains(@href,'download')]"
  6910. );
  6911. }
  6912. if (GM_getValue("Check_uloz_dot_to_links", false))
  6913. {
  6914. addFileHost(
  6915. "(?:uloz|ulozto|bagruj|zachowajto)\\.(to|cz|sk|net|pl)\/\\w",
  6916. 'fileDownload">|fileSize">',
  6917. 'grayButton deletedFile">|Stránka nenalezena|upload-button"|jako soukromý.',
  6918. 'passwordProtectedFile">|frmaskAgeForm-disagree',
  6919. "//a[contains(@href,'bagruj.cz') or contains(@href,'uloz.to') or contains(@href,'ulozto.') or contains(@href,'zachowajto.pl')]",
  6920. true
  6921. );
  6922. }
  6923. if (GM_getValue("Check_hellspy_dot_com_links", false))
  6924. {
  6925. addFileHost(
  6926. "hellspy\.(?:com|cz|sk|hu|pl)\/\\w+",
  6927. 'file\\-list-orderby|section-filedetail">',
  6928. '<\/span><\/h2>\\s*<p>|list-purp-2">|flash info sticky">',
  6929. 'optional--',
  6930. "//a[contains(@href,'hellspy.')]"
  6931. );
  6932. }
  6933. if (GM_getValue("Check_leteckaposta_dot_cz_links", false))
  6934. {
  6935. addFileHost(
  6936. "(?:leteckaposta\\.cz|sharegadget\\.com)\/\\d+",
  6937. '<body onload="">',
  6938. 'neexistuje|not exist',
  6939. 'optional--',
  6940. "//a[contains(@href,'leteckaposta.cz') or contains(@href,'sharegadget.com')]"
  6941. );
  6942. }
  6943. if (GM_getValue("Check_stahovanizasms_dot_cz_links", false))
  6944. {
  6945. addFileHost(
  6946. "stahovanizasms\\.cz\/\\w+",
  6947. 'download\\.png>|font-size:11px><tr>',
  6948. 'smaz.n u.ivatelem|font-size:11px><\/table>',
  6949. 'optional--',
  6950. "//a[contains(@href,'stahovanizasms.cz')]"
  6951. );
  6952. }
  6953. if (GM_getValue("Check_share_dash_links_dot_biz_links", false))
  6954. {
  6955. addFileHost(
  6956. "share-links\\.biz\/\\w*",
  6957. 'online\\.gif',
  6958. '(?:offline|parts)\\.gif',
  6959. 'optional--',
  6960. "//a[contains(@href,'share-links.biz')]"
  6961. );
  6962. }
  6963. if (GM_getValue("Check_4shared_dot_com_links", false))
  6964. {
  6965. addFileHost(
  6966. "4shared\\.com\/.+\/",
  6967. '<input type="hidden" class="jsSocialTwDefaultText" value=',
  6968. 'class="warn\"|big red"|GetDataBack',
  6969. 'Service Unavailable',
  6970. "//a[contains(@href,'4shared.com')]"
  6971. );
  6972. }
  6973. if (GM_getValue("Check_zippyshare_dot_com_links", false))
  6974. {
  6975. addFileHost(
  6976. "(?:www\\d+\.|)zippyshare\.com\/",
  6977. 'download\.png|Download Now|images/download_small.png|id="dlbutton"',
  6978. 'not exist|Status 404',
  6979. 'optional--',
  6980. "//a[contains(@href,'zippyshare.com') and contains(@href,'file.html')]"
  6981. );
  6982. }
  6983. if (GM_getValue("Check_mediafire_dot_com_links", false))
  6984. {
  6985. addFileHost(
  6986. "mediafire\.com\/",
  6987. 'download_file_title|dlFileName|id="PLAY_downloadButton"',
  6988. 'error\\.php\\?|error_msg_title|<title>Simple File Sharing|No files found',
  6989. 'set to private',
  6990. "//a[contains(@href,'mediafire.com')]"
  6991. );
  6992. }
  6993. if (GM_getValue("Check_uploaded_dot_to_links", false))
  6994. {
  6995. addFileHost(
  6996. '(?:uploaded\\.(?:to|net)\/(?:.id|file|folder|f|410|404))|(?:ul\\.to\/)',
  6997. '<h2>Authentification</h2></li>| MB|0 seconds|1,00 GB',
  6998. 'box_red|Error: 404|Error: 410|fileList"><thead><tr><td colspan="2"><\/td><\/tr><\/thead><tbody>\\s*<tr>|<title>uploaded.net</title>',
  6999. 'optional--',
  7000. "//a[contains(@href,'uploaded.to/') or contains(@href,'uploaded.net/') or contains(@href,'ul.to/')]"
  7001. );
  7002. }
  7003. if (GM_getValue("Check_ulozisko_dot_sk_links", false))
  7004. {
  7005. addFileHost(
  7006. "ulozisko\.sk\/",
  7007. 'Detaily',
  7008. 'neexistuje',
  7009. 'optional--',
  7010. "//a[contains(@href,'ulozisko.sk')]"
  7011. );
  7012. }
  7013. if (GM_getValue("Check_upnito_dot_sk_links", false))
  7014. {
  7015. addFileHost(
  7016. "(?:dl.\\.|)upnito\\.sk\/(download|subor|file)",
  7017. 'download.php',
  7018. 'notfound|upload\\-suborov\\.php"',
  7019. 'optional--',
  7020. "//a[contains(@href,'upnito.sk')]"
  7021. );
  7022. }
  7023. if (GM_getValue("Check_uptobox_dot_com_links", false))
  7024. {
  7025. addFileHost(
  7026. "uptobox\\.com\/\\w+",
  7027. 'Create Download Link">',
  7028. '500px;text-align:left;">|File not found|Fichier introuvable',
  7029. 'Maintenance|not available in your country',
  7030. "//a[contains(@href,'uptobox.com')]"
  7031. );
  7032. }
  7033. if (GM_getValue("Check_sharecash_dot_org_links", false))
  7034. {
  7035. addFileHost(
  7036. "sharecash\\.org\/download\\.php\\?file=\\d+",
  7037. 'FILE DOWNLOAD<',
  7038. 'File Does Not Exist',
  7039. 'optional--',
  7040. "//a[contains(@href,'sharecash.org/download.php')]"
  7041. );
  7042. }
  7043. if (GM_getValue("Check_depositfiles_dot_com_links", false)) //folders
  7044. {
  7045. addFileHost(
  7046. "depositfiles\\.com\/folders\/\\w+",
  7047. '<div class="progressContainer">',
  7048. '<div id="files" class="files">\\s*<\/div>',
  7049. 'optional--',
  7050. "//a[contains(@href,'depositfiles.com/folders')]"
  7051. );
  7052. }
  7053. if (GM_getValue("Check_depositfiles_dot_com_links", false))
  7054. {
  7055. addFileHost(
  7056. "depositfiles\\.com\/|depositfiles.org|dfiles\.eu|dfiles.ru",
  7057. '<b>File Download</b>|File name|Nom du fichier|Nome do arquivo|speed_small\.gif',
  7058. 'Such file does not exist|<div class="no_download_msg"|This file does not exist',
  7059. 'optional--',
  7060. "//a[contains(@href,'depositfiles') or contains(@href,'dfiles')]"
  7061. );
  7062. }
  7063. if (GM_getValue("Check_rapidfileshare_dot_net_links", false))
  7064. {
  7065. addFileHost(
  7066. "rapidfileshare\\.net/\\w+",
  7067. '<div id="upload-header-bg">',
  7068. '<div style="width:500px;text-align:left;">',
  7069. 'optional--',
  7070. "//a[contains(@href,'rapidfileshare.net/')]"
  7071. );
  7072. }
  7073. if (GM_getValue("Check_stiahnito_dot_sk_links", false))
  7074. {
  7075. addFileHost(
  7076. "stiahnito\\.sk/",
  7077. '<span class="filesize right">',
  7078. '<ol class="list-purp-2">',
  7079. 'optional--',
  7080. "//a[contains(@href,'stiahnito.sk/')]"
  7081. );
  7082. }
  7083. if (GM_getValue("Check_rusfolder_dot_com_links", false))
  7084. {
  7085. addFileHost(
  7086. "rusfolder\\.(?:com|net)",
  7087. '"download-step-one-form"|Название: <b>|Файлы|Файлы в папке',
  7088. '"ui-state-error ui-corner-all"|File is removed|File not found|удален',
  7089. 'optional--',
  7090. "//a[contains(@href,'rusfolder')]"
  7091. );
  7092. }
  7093. if (GM_getValue("Check_fileover_dot_net_links", false))
  7094. {
  7095. addFileHost(
  7096. "fileover\\.net/\\d+",
  7097. 'id="filesize"',
  7098. 'Not found or deleted|The following file is unavailable',
  7099. 'optional--',
  7100. "//a[contains(@href,'fileover.net/')]"
  7101. );
  7102. }
  7103. if (GM_getValue("Check_catshare_dot_net_links", false))
  7104. {
  7105. addFileHost(
  7106. "catshare\\.net/\\w+",
  7107. '"icon-share',
  7108. 'alert alert-error',
  7109. 'optional--',
  7110. "//a[contains(@href,'catshare.net/')]"
  7111. );
  7112. }
  7113. if (GM_getValue("Check_anonfiles_dot_com_links", false))
  7114. {
  7115. addFileHost(
  7116. "anonfiles\\.com/\\w+",
  7117. '"download_button"',
  7118. '<legend><b>404</b>',
  7119. 'optional--',
  7120. "//a[contains(@href,'anonfiles.com')]"
  7121. );
  7122. }
  7123. if (GM_getValue("Check_mixturecloud_dot_com_links", false))
  7124. {
  7125. addFileHost(
  7126. "mixturecloud\\.com/media/\\w+",
  7127. '"btn icon i_globe gray share_150',
  7128. '"s_cross_close"></span> 404:',
  7129. 'optional--',
  7130. "//a[contains(@href,'mixturecloud.com/media/')]"
  7131. );
  7132. }
  7133. if (GM_getValue("Check_akafile_dot_com_links", false))
  7134. {
  7135. addFileHost(
  7136. "akafile\\.com\/\\w+",
  7137. 'download1',
  7138. 'File Not Found',
  7139. 'optional--',
  7140. "//a[contains(@href,'akafile.com/')]"
  7141. );
  7142. }
  7143. if (GM_getValue("Check_creafile_dot_net_links", false))
  7144. {
  7145. addFileHost(
  7146. "creafile\\.net\/\\w+",
  7147. 'downloadblock',
  7148. 'errtitle',
  7149. 'optional--',
  7150. "//a[contains(@href,'creafile.net/')]"
  7151. );
  7152. }
  7153. if (GM_getValue("Check_hugefiles_dot_net_links", false))
  7154. {
  7155. addFileHost(
  7156. "hugefiles\\.net\/\\w+",
  7157. 'download1|class="btn-create-download" value="Create Download Link">',
  7158. 'File Not Found|No such file with this filename',
  7159. 'optional--',
  7160. "//a[contains(@href,'hugefiles.net/')]"
  7161. );
  7162. }
  7163. if (GM_getValue("Check_sendmyway_dot_com_links", false))
  7164. {
  7165. addFileHost(
  7166. "sendmyway\\.com\/\\w+",
  7167. 'id="btn_download"',
  7168. '500px;text-align:left;"|<center><h3>',
  7169. 'optional--',
  7170. "//a[contains(@href,'sendmyway.com/')]"
  7171. );
  7172. }
  7173. if (GM_getValue("Check_upload_dot_ee_links", false))
  7174. {
  7175. addFileHost(
  7176. "upload\\.ee\/\\w+",
  7177. 'onmouseout="document.dllink.src',
  7178. 'There is no such file.|File was deleted|Fail kustutati|Файл удалён|Такого файла нет',
  7179. 'optional--',
  7180. "//a[contains(@href,'upload.ee/')]"
  7181. );
  7182. }
  7183. if (GM_getValue("Check_shareplace_dot_org_links", false))
  7184. {
  7185. addFileHost(
  7186. "shareplace\\.org\/\\?\\w+",
  7187. 'Download-Link',
  7188. 'Your requested file is not found|Select file to send',
  7189. 'optional--',
  7190. "//a[contains(@href,'shareplace.org/?')]"
  7191. );
  7192. }
  7193. if (GM_getValue("Check_uploadc_dot_com_links", false))
  7194. {
  7195. addFileHost(
  7196. "uploadc\\.com\/\\w+",
  7197. 'id="prebut"',
  7198. 'File Not Found|This file has been removed due',
  7199. 'optional--',
  7200. "//a[contains(@href,'uploadc.com/')]"
  7201. );
  7202. }
  7203. if (GM_getValue("Check_remixshare_dot_com_links", false))
  7204. {
  7205. addFileHost(
  7206. "remixshare\\.com\/\\w+",
  7207. 'id="dl2"',
  7208. '<table class=\'failed\'><tr><td width=\'90%\'>|Sorry, die Datei konnte nicht gefunden werden',
  7209. 'optional--',
  7210. "//a[contains(@href,'remixshare.com/')]"
  7211. );
  7212. }
  7213. if (GM_getValue("Check_exoshare_dot_com_links", false))
  7214. {
  7215. addFileHost(
  7216. "exoshare\\.com\/download\\.php\\?uid=\\w+",
  7217. 'Last Download :',
  7218. 'img src="\\/404.jpg"',
  7219. 'optional--',
  7220. "//a[contains(@href,'exoshare.com/download.php')]"
  7221. );
  7222. }
  7223. if (GM_getValue("Check_borncash_dot_org_links", false))
  7224. {
  7225. addFileHost(
  7226. "borncash\\.org\/download\/\\?a=\\w+",
  7227. 'class="knop_1"',
  7228. '\/error\/er00',
  7229. 'optional--',
  7230. "//a[contains(@href,'borncash.org/download/')]"
  7231. );
  7232. }
  7233. if (GM_getValue("Check_vidplay_dot_net_links", false))
  7234. {
  7235. addFileHost(
  7236. "vidplay\.net\/\\w+",
  7237. 'solvemedia puzzle widget',
  7238. 'File not found|AVOID_IE_BUG',
  7239. 'optional--',
  7240. "//a[contains(@href,'vidplay.net')]");
  7241. }
  7242. if (GM_getValue("Check_storagon_dot_com_links", false))
  7243. {
  7244. addFileHost(
  7245. "storagon\.com\/\\w+",
  7246. 'class="icon-cloud-download"></i>|content="Download Options',
  7247. 'content="Download Downloads|class="error-container">|class="bigger-300 bolder">404<',
  7248. 'optional--',
  7249. "//a[contains(@href,'storagon.com')]");
  7250. }
  7251. if (GM_getValue("Check_filedais_dot_com_links", false))
  7252. {
  7253. addFileHost(
  7254. "filedais\.com\/\\w+",
  7255. 'class="btn btn-info"|name="method_free"',
  7256. 'style="width:500px;text-align:left;">|File Not Found|AVOID_IE_BUG',
  7257. 'optional--',
  7258. "//a[contains(@href,'filedais.com')]");
  7259. }
  7260. if (GM_getValue("Check_ryushare_dot_com_links", false))
  7261. {
  7262. addFileHost(
  7263. "ryushare\.com\/\\w+",
  7264. 'KB|MB',
  7265. '<div style="width:500px;text-align:left;">',
  7266. 'in maintenance mode|Software error:',
  7267. "//a[contains(@href,'ryushare.com')]");
  7268. }
  7269. if (GM_getValue("Check_up_dot_4share_dot_vn_links", false))
  7270. {
  7271. addFileHost(
  7272. "up.4share\.vn\/\\w+",
  7273. '<font size="2" face="Verdana">',
  7274. 'font: 13px Tahoma; color: Brown',
  7275. 'optional--',
  7276. //'optional--',
  7277. "//a[contains(@href,'up.4share.vn')]");
  7278. }
  7279. if (GM_getValue("Check_share_dot_vnn_dot_vn_links", false))
  7280. {
  7281. addFileHost(
  7282. "share.vnn\.vn\/\\w+",
  7283. '"index,follow"|<div class="main" id="download-box">',
  7284. '<meta name="description" content="" />|<h1>Không tìm thấy file bạn yêu cầu</h1>',
  7285. 'optional--',
  7286. //'optional--',
  7287. "//a[contains(@href,'share.vnn.vn')]");
  7288. }
  7289. if (GM_getValue("Check_upfile_dot_vn_links", false))
  7290. {
  7291. addFileHost(
  7292. "upfile\.vn\/\\w+",
  7293. 'download-timer',
  7294. '<meta name="description" content="Upload files|<meta name="description" content="Error "',
  7295. 'optional--',
  7296. //'optional--',
  7297. "//a[contains(@href,'upfile.vn')]");
  7298. }
  7299. /* if (GM_getValue("Check_firedrive_dot_com_links", false))
  7300. {
  7301. addFileHost(
  7302. "firedrive\\.com\/file\/\\w{16}",
  7303. 'as Free User|<a class="continue"|Continue to file|#feedback_btn|application file_standalone',
  7304. 'Welcome to PutLocker|<div class="sad_face_image">|404:',
  7305. 'undergoing scheduled maintenance',
  7306. "//a[contains(@href,'firedrive.com/file')]"
  7307. );
  7308. } */
  7309. if (GM_getValue("Check_aisfile_dot_com_links", false))
  7310. {
  7311. addFileHost(
  7312. "aisfile\.com\/\\w+",
  7313. '<h3 style="text-align:left;">|align=right><b>Filename:',
  7314. '<div style="width:500px;text-align:left;">|File Not Found',
  7315. 'optional--',
  7316. //'optional--',
  7317. "//a[contains(@href,'aisfile.com')]");
  7318. }
  7319. if (GM_getValue("Check_usersfiles_dot_com_links", false))
  7320. {
  7321. addFileHost(
  7322. "usersfiles\.com\/\\w+",
  7323. 'class="btn btn-success|id="btn_download" class="btn"',
  7324. '<div style="width:500px;text-align:left;">',
  7325. 'optional--',
  7326. //'optional--',
  7327. "//a[contains(@href,'usersfiles.com')]");
  7328. }
  7329. if (GM_getValue("Check_pan_dot_baidu_dot_com_links", false))
  7330. {
  7331. addFileHost(
  7332. "pan.baidu\.com\/\\w+",
  7333. 'target="_blank" title=|share-personal-info',
  7334. 'share_notfound.png|background:#f9f9f9',
  7335. 'optional--',
  7336. //'optional--',
  7337. "//a[contains(@href,'pan.baidu.com')]");
  7338. }
  7339. if (GM_getValue("Check_yunpan_dot_cn_links", false))
  7340. {
  7341. addFileHost(
  7342. "yunpan\.cn\/\\w+",
  7343. 'class="icon icon-download',
  7344. 'content="360|http://p5.qhimg.com/t01d1c98667df9dc6cc.jpg',
  7345. 'optional--',
  7346. //'optional--',
  7347. "//a[contains(@href,'yunpan.cn')]");
  7348. }
  7349. if (GM_getValue("Check_file_dash_upload_dot_net_links", false))
  7350. {
  7351. addFileHost(
  7352. "(?:en\\.|)file\\-upload\\.net\/download\\-\\d+\/\\w+",
  7353. 'getElementById("downbild")|style.display',
  7354. 'hochgeladene Datei nicht gefunden werden|has not been found',
  7355. 'optional--',
  7356. //'optional--',
  7357. "//a[contains(@href,'file-upload.net')]");
  7358. }
  7359. if (GM_getValue("Check_gulfup_dot_com_links", false))
  7360. {
  7361. addFileHost(
  7362. "gulfup\.com\/",
  7363. '<!-- Downlod template -->|download.gif',
  7364. '<!-- Errors template -->|class="error">|<!-- form upload -->|[ رفع الملفات ]',
  7365. 'optional--',
  7366. //'optional--',
  7367. "//a[contains(@href,'gulfup.com')]");
  7368. }
  7369. if (GM_getValue("Check_datafilehost_dot_com_links", false))
  7370. {
  7371. addFileHost(
  7372. "datafilehost\\.com\/(?:download-\\w+\\.html|d\/\\w+)",
  7373. 'dldtable">',
  7374. 'does not exist\\.',
  7375. 'optional--',
  7376. //'optional--',
  7377. "//a[contains(@href,'datafilehost.com')]");
  7378. }
  7379. if (GM_getValue("Check_box_dot_com_links", false))
  7380. {
  7381. addFileHost(
  7382. "box\.com\/\\w+",
  7383. 'download-file-btn|id="download_button',
  7384. 'BIyMin.png| <div class="error_message|link has been removed',
  7385. 'optional--',
  7386. //'optional--',
  7387. "//a[contains(@href,'app.box.com')]");
  7388. }
  7389. if (GM_getValue("Check_dropbox_dot_com_links", false))
  7390. {
  7391. addFileHost(
  7392. "dropbox\.com\/s\/\\w+",
  7393. 'default_content_download_button" class="freshbutton-blue">|content_download_button',
  7394. '>Nothing Here<|>Error (404)<',
  7395. 'title>Dropbox - 509|Error (403)|Error: 429',
  7396. "//a[contains(@href,'dropbox.com')]");
  7397. }
  7398. if (GM_getValue("Check_box_dot_net_links", false))
  7399. {
  7400. addFileHost(
  7401. "box\.net\/\\w+",
  7402. 'download-file-btn|id="download_button',
  7403. 'BIyMin.png| <div class="error_message',
  7404. 'optional--',
  7405. //'optional--',
  7406. "//a[contains(@href,'box.net')]");
  7407. }
  7408. if (GM_getValue("Check_fileband_dot_com_links", false))
  7409. {
  7410. addFileHost(
  7411. "fileband\.com\/\\w+",
  7412. 'value="download1">|name="id" value=',
  7413. '<div style="width:500px;text-align:left;">|not be found',
  7414. 'optional--',
  7415. //'optional--',
  7416. "//a[contains(@href,'fileband.com')]");
  7417. }
  7418. if (GM_getValue("Check_uploadrocket_dot_net_links", false))
  7419. {
  7420. addFileHost(
  7421. "uploadrocket\.net\/\\w+",
  7422. '<font style="font-size:12px;">|<h2>Download File|method_isfree',
  7423. 'font style="color:#d33;|File Not Found',
  7424. 'optional--',
  7425. //'optional--',
  7426. "//a[contains(@href,'uploadrocket.net')]");
  7427. }
  7428. if (GM_getValue("Check_filedropper_dot_com_links", false))
  7429. {
  7430. addFileHost(
  7431. "filedropper\.com\/\\w+",
  7432. 'background:#ddd;|width:985px; ',
  7433. 'background-color:#FFFFFF;|margin-left: -400px;',
  7434. 'optional--',
  7435. //'optional--',
  7436. "//a[contains(@href,'filedropper.com')]");
  7437. }
  7438. if (GM_getValue("Check_tropicshare_dot_com_links", false))
  7439. {
  7440. addFileHost(
  7441. "tropicshare\\.com\/files\/\\d+",
  7442. 'MB</span>|GB</span>|KB</span>',
  7443. '>FNF<|size: </span>',
  7444. 'optional--',
  7445. //'optional--',
  7446. "//a[contains(@href,'tropicshare.com')]");
  7447. }
  7448. if (GM_getValue("Check_goldbytez_dot_com_links", false))
  7449. {
  7450. addFileHost(
  7451. "goldbytez\.com\/\\w+",
  7452. '<h2>Download</h2>|<center><h2>File: <font color="red">',
  7453. '<div style="width:500px;text-align:left;">|<h2>Error</h2>',
  7454. 'optional--',
  7455. //'optional--',
  7456. "//a[contains(@href,'goldbytez.com')]");
  7457. }
  7458. if (GM_getValue("Check_worldbytez_dot_com_links", false))
  7459. {
  7460. addFileHost(
  7461. "worldbytez\.com\/\\w+",
  7462. '<div class="download_type">',
  7463. '<div style="width:500px;text-align:left;">',
  7464. 'optional--',
  7465. //'optional--',
  7466. "//a[contains(@href,'worldbytez.com')]");
  7467. }
  7468. if (GM_getValue("Check_freefilehosting_dot_net_links", false))
  7469. {
  7470. addFileHost(
  7471. "freefilehosting\.net\/\\w+",
  7472. 'Type: cbr|Type: rar|Type: jpg|Type: mkv|Type: avi|Type: mpg|Type: mpeg|Type: zip|Type: wmvType: bmpType: gifType: mp4Type: mp3',
  7473. '175px;" value="http://www.freefilehosting.net/"|Filename: <br>',
  7474. 'optional--',
  7475. //'optional--',
  7476. "//a[contains(@href,'freefilehosting.net')]");
  7477. }
  7478. if (GM_getValue("Check_ziddu_dot_com_links", false))
  7479. {
  7480. addFileHost(
  7481. "ziddu\.com\/\\w+",
  7482. 'downloads.ziddu.com|downloadfilelinkicon',
  7483. 'errortracking.php|images/oops.png|fontfamilyverdana error',
  7484. 'optional--',
  7485. //'optional--',
  7486. "//a[contains(@href,'ziddu.com')]");
  7487. }
  7488. if (GM_getValue("Check_exclusiveloader_dot_com_links", false))
  7489. {
  7490. addFileHost(
  7491. "exclusiveloader\.com\/\\w+",
  7492. 'style="padding-top:55px; padding-bottom:65px;">|<h2>Download</h2>',
  7493. 'File Not Found|width:322px;text-align:left;" class="no_file">',
  7494. 'optional--',
  7495. //'optional--',
  7496. "//a[contains(@href,'exclusiveloader.com')]");
  7497. }
  7498. if (GM_getValue("Check_sharerapid_dot_cz_links", false))
  7499. {
  7500. addFileHost(
  7501. "sharerapid\.cz\/\\w+",
  7502. 'value="Stáhnout"|soubor" style|Stahování je povoleno pouze pro přihlášené uživatele',
  7503. 'error_div">|404 - Not Found',
  7504. 'optional--',
  7505. //'optional--',
  7506. "//a[contains(@href,'sharerapid.cz')]");
  7507. }
  7508. if (GM_getValue("Check_sdilej_dot_cz_links", false))
  7509. {
  7510. addFileHost(
  7511. "sdilej\.cz\/\\w+",
  7512. 'class="page-download"',
  7513. '<h2 class="red">|czshare.com|sponsored listings|This domain is for sale',
  7514. 'optional--',
  7515. //'optional--',
  7516. "//a[contains(@href,'sdilej.cz')]");
  7517. }
  7518. if (GM_getValue("Check_lafiles_dot_com_links", false))
  7519. {
  7520. addFileHost(
  7521. "lafiles\.com\/\\w+",
  7522. '<div id="pay_modes">',
  7523. '<b class="err"></b>',
  7524. 'optional--',
  7525. //'optional--',
  7526. "//a[contains(@href,'lafiles.com')]");
  7527. }
  7528. if (GM_getValue("Check_fboom_dot_me_links", false))
  7529. {
  7530. addFileHost(
  7531. "fboom\.me\/file\/\\w+",
  7532. 'id="download-free" href="#"',
  7533. 'class="error-v1-title">404<|File not found or deleted',
  7534. 'optional--',
  7535. //'optional--',
  7536. "//a[contains(@href,'fboom.me')]");
  7537. }
  7538. if (GM_getValue("Check_fileboom_dot_me_links", false))
  7539. {
  7540. addFileHost(
  7541. "fileboom\.me\/file\/\\w+",
  7542. 'id="download-free" href="#"',
  7543. 'class="error-v1-title">404<|File not found or deleted',
  7544. 'optional--',
  7545. //'optional--',
  7546. "//a[contains(@href,'fileboom.me')]");
  7547. }
  7548. if (GM_getValue("Check_acefile_dot_net_links", false))
  7549. {
  7550. addFileHost(
  7551. "acefile\.net\/\\w+",
  7552. 'align=right nowrap><b>',
  7553. 'File Not Found|<div style="width:322px;text-align:left;" class="no_file">',
  7554. 'optional--',
  7555. //'optional--',
  7556. "//a[contains(@href,'acefile.net')]");
  7557. }
  7558. if (GM_getValue("Check_megarapid_dot_cz_links", false))
  7559. {
  7560. addFileHost(
  7561. "megarapid\.cz\/\\w+",
  7562. 'value="Stáhnout"|soubor" style|Stahování je povoleno pouze pro přihlášené uživatele',
  7563. 'error_div">|404 - Not Found',
  7564. 'optional--',
  7565. //'optional--',
  7566. "//a[contains(@href,'megarapid.cz')]");
  7567. }
  7568. if (GM_getValue("Check_yadi_dot_sk_links", false))
  7569. {
  7570. addFileHost(
  7571. "yadi\.sk\/\\w+",
  7572. 'twitter:site|View and download',
  7573. 'error code|Nothing found',
  7574. 'optional--',
  7575. //'optional--',
  7576. "//a[contains(@href,'yadi.sk')]");
  7577. }
  7578. if (GM_getValue("Check_imdb_dot_com_links", false))
  7579. {
  7580. addFileHost(
  7581. "imdb\.com\/\\w+",
  7582. 'imdb.com',
  7583. '404 Error',
  7584. 'optional--',
  7585. "//a[contains(@href,'imdb.com')]");
  7586. }
  7587. if (GM_getValue("Check_hitfile_dot_net_links", false))
  7588. {
  7589. addFileHost(
  7590. "hitfile\.net\/\\w+",
  7591. 'class="download-file',
  7592. 'style="width:16px;height:16px;border:0;|File not found|Файл не найден. Возможно он был удален',
  7593. 'optional--',
  7594. //'optional--',
  7595. "//a[contains(@href,'hitfile.net')]");
  7596. }
  7597. /* if (GM_getValue("Check_uploadto_dot_us_links", false))
  7598. {
  7599. addFileHost(
  7600. "uploadto\\.us\/file\/details\/[\\w+-]",
  7601. 'name="recaptcha_response',
  7602. '="/folder/add"|>File (?:not found|restricted|has been deleted)|<title>UPLOADTO.US</title>',
  7603. 'btn-large btn-danger">|Account limitation notice|502 Bad Gateway',
  7604. "//a[contains(@href,'uploadto.us/file')]",
  7605. true);
  7606. } */
  7607. if (GM_getValue("Check_nitroflare_dot_com_links", true))
  7608. {
  7609. addFileHost(
  7610. "nitroflare\.com\/\\w+",
  7611. 'alert.png|LowSpeedMeter.png',
  7612. 'file has been removed|id="error" style="display|Probably deleted',
  7613. 'optional--',
  7614. "//a[contains(@href,'nitroflare.com')]");
  7615. }
  7616. if (GM_getValue("Check_up_dot_top4top_dot_net_links", false))
  7617. {
  7618. addFileHost(
  7619. "up.top4top\.net\/\\w+",
  7620. 'start Downlod template',
  7621. 'start err template',
  7622. 'optional--',
  7623. "//a[contains(@href,'up.top4top.net')]");
  7624. }
  7625. if (GM_getValue("Check_filejoker_dot_net_links", false))
  7626. {
  7627. addFileHost(
  7628. "filejoker\.net\/\\w+",
  7629. 'button id="regular-download">Slow|method_free" value="1|<div id="download" class="download0">',
  7630. 'File Not Found|class="not_found|<div id="download" class="not_found">|"err">DMCA Complaint<',
  7631. 'optional--',
  7632. "//a[contains(@href,'filejoker.net')]");
  7633. }
  7634. if (GM_getValue("Check_free_dot_fr_links", false))
  7635. {
  7636. addFileHost(
  7637. "(?:dl.\\.|)free\\.fr",
  7638. 'Valider et t&eacute;l&eacute',
  7639. 'Fichier inexistant',
  7640. 'optional--',
  7641. "//a[contains(@href,'free.fr')]");
  7642. }
  7643. if (GM_getValue("Check_gboxes_dot_com_links", false))
  7644. {
  7645. addFileHost(
  7646. "gboxes\.com\/\\w+",
  7647. 'You have requested|color="red">http://www.gboxes.com',
  7648. 'File Not Found|<div style="width:500px;text-align:left;">',
  7649. 'optional--',
  7650. "//a[contains(@href,'gboxes.com')]");
  7651. }
  7652. if (GM_getValue("Check_1fichier_dot_com_links", false))
  7653. {
  7654. addFileHost(
  7655. "(?:\\w{10}\\.(?:1fichier|dl4free)\\.com\/)|(?:(?:1fichier|dl4free)\\.com\/\\?\\w{10})|(?:www\\.)?\\w{6,}\\.1fichier\\.com",
  7656. '<title>Download</title>|<br/>You must wait|submit" value="Download',
  7657. 'File not found|file could not be found|Select files to send',
  7658. 'optional--',
  7659. "//a[contains(@href,'1fichier') or contains(@href,'dl4free.com/')]"
  7660. );
  7661. }
  7662. if (GM_getValue("Check_led_dot_wf_links", false))
  7663. {
  7664. addFileHost(
  7665. "led\.wf\/\\w+",
  7666. 'logo_0.png|downloads.gif"',
  7667. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link',
  7668. 'optional--',
  7669. "//a[contains(@href,'led.wf')]");
  7670. }
  7671. if (GM_getValue("Check_lan_dot_wf_links", false))
  7672. {
  7673. addFileHost(
  7674. "lan\.wf\/\\w+",
  7675. 'logo_0.png|downloads.gif"',
  7676. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link',
  7677. 'optional--',
  7678. "//a[contains(@href,'lan.wf')]");
  7679. }
  7680. if (GM_getValue("Check_adlink_dot_wf_links", false))
  7681. {
  7682. addFileHost(
  7683. "adlink\.wf\/\\w+",
  7684. 'logo_0.png|downloads.gif"',
  7685. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link',
  7686. 'optional--',
  7687. "//a[contains(@href,'adlink.wf')]");
  7688. }
  7689. if (GM_getValue("Check_click_dot_tf_links", false))
  7690. {
  7691. addFileHost(
  7692. "click\.tf\/\\w+",
  7693. 'logo_0.png|downloads.gif"',
  7694. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link',
  7695. 'optional--',
  7696. "//a[contains(@href,'click.tf')]");
  7697. }
  7698. if (GM_getValue("Check_ssh_dot_tf_links", false))
  7699. {
  7700. addFileHost(
  7701. "ssh\.tf\/\\w+",
  7702. 'logo_0.png|downloads.gif"',
  7703. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link',
  7704. 'optional--',
  7705. "//a[contains(@href,'ssh.tf')]");
  7706. }
  7707. if (GM_getValue("Check_ssh_dot_yt_links", false))
  7708. {
  7709. addFileHost(
  7710. "ssh\.yt\/\\w+",
  7711. 'logo_0.png|downloads.gif"',
  7712. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link',
  7713. 'optional--',
  7714. "//a[contains(@href,'ssh.yt')]");
  7715. }
  7716. if (GM_getValue("Check_yep_dot_pm_links", false))
  7717. {
  7718. addFileHost(
  7719. "yep\.pm\/\\w+",
  7720. 'logo_0.png|downloads.gif"',
  7721. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link',
  7722. 'optional--',
  7723. "//a[contains(@href,'yep.pm')]");
  7724. }
  7725. if (GM_getValue("Check_kyc_dot_pm_links", false))
  7726. {
  7727. addFileHost(
  7728. "kyc\.pm\/\\w+",
  7729. 'logo_0.png|downloads.gif"',
  7730. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link',
  7731. 'optional--',
  7732. "//a[contains(@href,'kyc.pm')]");
  7733. }
  7734. if (GM_getValue("Check_brupload_dot_net_links", false))
  7735. {
  7736. addFileHost(
  7737. "brupload\.net\/\\w+",
  7738. 'Download Gratuito',
  7739. '<div style="width:500px;text-align:left;">',
  7740. 'optional--',
  7741. //'optional--',
  7742. "//a[contains(@href,'brupload.net')]");
  7743. }
  7744. if (GM_getValue("Check_cloudzilla_dot_to_links", false))
  7745. {
  7746. addFileHost(
  7747. "cloudzilla\.to\/\\w+",
  7748. 'btn1" id="free_download|onclick="freeDownload|id="pwd_protected">',
  7749. 'File not found|/imgs/broken.png',
  7750. 'optional--',
  7751. //'optional--',
  7752. "//a[contains(@href,'cloudzilla.to')]");
  7753. }
  7754. if (GM_getValue("Check_fileparadox_dot_in_links", false))
  7755. {
  7756. addFileHost(
  7757. "fileparadox\.in\/\\w+",
  7758. 'CONTENT="Download File|method_free_file',
  7759. '>File Not Found<|id="no_filedownload">|FILE NOT FOUND',
  7760. 'optional--',
  7761. //'optional--',
  7762. "//a[contains(@href,'fileparadox.in')]");
  7763. }
  7764. if (GM_getValue("Check_clicknupload_dot_com_links", false))
  7765. {
  7766. addFileHost(
  7767. "clicknupload\.com\/\\w+",
  7768. 'name="method_free',
  7769. 'File Not Found',
  7770. 'optional--',
  7771. //'optional--',
  7772. "//a[contains(@href,'clicknupload.com')]");
  7773. }
  7774. if (GM_getValue("Check_ex_dash_load_dot_com_links", false))
  7775. {
  7776. addFileHost(
  7777. "ex-load\.com\/\\w+",
  7778. 'name="method_free|<p>Download File:</p>',
  7779. 'Folder Not Found|File Not Found|Error 404',
  7780. 'optional--',
  7781. //'optional--',
  7782. "//a[contains(@href,'ex-load.com')]");
  7783. }
  7784. if (GM_getValue("Check_hexupload_dot_com_links", false))
  7785. {
  7786. addFileHost(
  7787. "hexupload\.com\/\\w+",
  7788. 'button" value="Free|type="submit" value=""',
  7789. 'File Not Found|<div style="width:500px;text-align:left;">',
  7790. 'optional--',
  7791. //'optional--',
  7792. "//a[contains(@href,'hexupload.com')]");
  7793. }
  7794. if (GM_getValue("Check_wizupload_dot_com_links", false))
  7795. {
  7796. addFileHost(
  7797. "wizupload\.com\/\\w+",
  7798. 'btn_download|class="downloadbtn"',
  7799. '>File Not Found<',
  7800. 'optional--',
  7801. //'optional--',
  7802. "//a[contains(@href,'wizupload.com')]");
  7803. }
  7804. if (GM_getValue("Check_filecloud_dot_cc_links", false))
  7805. {
  7806. addFileHost(
  7807. "filecloud\.cc\/\\w+",
  7808. 'align="center"><input type="submit" name=',
  7809. 'File Not Found|<Title>FileCloud - Premium Hosting Service<',
  7810. 'optional--',
  7811. //'optional--',
  7812. "//a[contains(@href,'filecloud.cc')]");
  7813. }
  7814. if (GM_getValue("Check_inclouddrive_dot_com_links", false))
  7815. {
  7816. addFileHost(
  7817. "inclouddrive\.com\/\\w+",
  7818. 'initfreedownload',
  7819. '<title>Content Unavailable|The file you are trying to download is no longer available',
  7820. 'optional--',
  7821. //'optional--',
  7822. "//a[contains(@href,'inclouddrive.com')]");
  7823. }
  7824. if (GM_getValue("Check_radicalshare_dot_com_links", false))
  7825. {
  7826. addFileHost(
  7827. "radicalshare\.com\/\\w+",
  7828. 'value="download1|name="method_free"',
  7829. 'File Not Found<|<div style="width:500px;text-align:left;">',
  7830. 'optional--',
  7831. //'optional--',
  7832. "//a[contains(@href,'radicalshare.com')]");
  7833. }
  7834. if (GM_getValue("Check_sharemods_dot_com_links", false))
  7835. {
  7836. addFileHost(
  7837. "sharemods\.com\/\\w+",
  7838. 'name="method_free"',
  7839. 'File Not Found<',
  7840. 'optional--',
  7841. //'optional--',
  7842. "//a[contains(@href,'sharemods.com')]");
  7843. }
  7844. if (GM_getValue("Check_hostr_dot_co_links", false))
  7845. {
  7846. addFileHost(
  7847. "hostr\.co\/\\w+",
  7848. 'method="get"',
  7849. 'File not found<|error-page',
  7850. 'optional--',
  7851. //'optional--',
  7852. "//a[contains(@href,'hostr.co')]");
  7853. }
  7854. if (GM_getValue("Check_filepi_dot_com_links", false))
  7855. {
  7856. addFileHost(
  7857. "filepi\.com\/\\w+",
  7858. 'id="button_start">',
  7859. 'File not found',
  7860. 'optional--',
  7861. //'optional--',
  7862. "//a[contains(@href,'filepi.com')]");
  7863. }
  7864. if (GM_getValue("Check_tikfile_dot_com_links", false))
  7865. {
  7866. addFileHost(
  7867. "tikfile\.com\/\\w+",
  7868. 'btn_download',
  7869. 'File Not Found|file was removed|Reason for deletion',
  7870. 'optional--',
  7871. //'optional--',
  7872. "//a[contains(@href,'tikfile.com')]");
  7873. }
  7874. if (GM_getValue("Check_cloudsix_dot_me_links", false))
  7875. {
  7876. addFileHost(
  7877. "cloudsix\.me\/\\w+",
  7878. 'name="method_free"',
  7879. 'File Not Found|width:500px;text-align:left;">',
  7880. 'optional--',
  7881. //'optional--',
  7882. "//a[contains(@href,'cloudsix.me')]");
  7883. }
  7884. if (GM_getValue("Check_neodrive_dot_co_links", false))
  7885. {
  7886. addFileHost(
  7887. "neodrive\.co\/\\w+",
  7888. 'btn1" id="free_download|onclick="freeDownload|id="pwd_protected">',
  7889. 'File not found|/imgs/broken.png',
  7890. 'optional--',
  7891. //'optional--',
  7892. "//a[contains(@href,'neodrive.co')]");
  7893. }
  7894. if (GM_getValue("Check_chayfile_dot_com_links", false))
  7895. {
  7896. addFileHost(
  7897. "chayfile\.com\/\\w+",
  7898. 'name="method_free"',
  7899. 'File Not Found|<h3>The file was removed by administrator</h3>',
  7900. 'optional--',
  7901. //'optional--',
  7902. "//a[contains(@href,'chayfile.com')]");
  7903. }
  7904. if (GM_getValue("Check_xfileload_dot_com_links", false))
  7905. {
  7906. addFileHost(
  7907. "xfileload\.com\/\\w+",
  7908. 'Filename:|Имя файла:|Dateiname:|nom de fichier :|اسم الملف:|Dosya AdД±|Nazwa:|Nombre de fichero:|NamaFile:|Bestandsnaam:|שם קובץ:"',
  7909. '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..|הקובץ שחיפשת לא נמצא.',
  7910. 'optional--',
  7911. //'optional--',
  7912. "//a[contains(@href,'xfileload.com')]");
  7913. }
  7914. if (GM_getValue("Check_rockfile_dot_eu_links", false))
  7915. {
  7916. addFileHost(
  7917. "rockfile\.eu\/\\w+",
  7918. 'You have requested:',
  7919. 'The file you were looking for could not be found, sorry for any inconvenience.',
  7920. 'optional--',
  7921. //'optional--',
  7922. "//a[contains(@href,'rockfile.eu')]");
  7923. }
  7924. if (GM_getValue("Check_24uploading_dot_com_links", false))
  7925. {
  7926. addFileHost(
  7927. "24uploading\.com\/\\w+",
  7928. 'File:|Download Speed:',
  7929. '<b>File Not Found</b>|file was removed',
  7930. 'optional--',
  7931. //'optional--',
  7932. "//a[contains(@href,'24uploading.com')]");
  7933. }
  7934. if (GM_getValue("Check_tusfiles_dot_net_links", false))
  7935. {
  7936. addFileHost(
  7937. "tusfiles\.net\/\\w+",
  7938. 'i/icon/dll.png"|>Start download<br',
  7939. 'no longer available<|i/ino.png"',
  7940. 'optional--',
  7941. //'optional--',
  7942. "//a[contains(@href,'tusfiles.net')]");
  7943. }
  7944. if (GM_getValue("Check_2drive_dot_net_links", false))
  7945. {
  7946. addFileHost(
  7947. "2drive\.net\/\\w+",
  7948. 'value="Free Download"',
  7949. 'File Not Found',
  7950. 'optional--',
  7951. //'optional--',
  7952. "//a[contains(@href,'2drive.net')]");
  7953. }
  7954. if (GM_getValue("Check_jumbofile_dot_net_links", false))
  7955. {
  7956. addFileHost(
  7957. "jumbofile\.net\/\\w+",
  7958. 'button" class="" value="Free',
  7959. 'This File Was Deleted',
  7960. 'optional--',
  7961. //'optional--',
  7962. "//a[contains(@href,'jumbofile.net')]");
  7963. }
  7964. if (GM_getValue("Check_ozofiles_dot_com_links", false))
  7965. {
  7966. addFileHost(
  7967. "ozofiles\.com\/\\w+",
  7968. 'button" value="Free',
  7969. 'File Not Found|width:500px;text-align:left;">',
  7970. 'optional--',
  7971. //'optional--',
  7972. "//a[contains(@href,'ozofiles.com')]");
  7973. }
  7974. if (GM_getValue("Check_loudupload_dot_net_links", false))
  7975. {
  7976. addFileHost(
  7977. "loudupload\.net\/\\w+",
  7978. 'value="Get Links',
  7979. 'File Not Found',
  7980. 'optional--',
  7981. //'optional--',
  7982. "//a[contains(@href,'loudupload.net')]");
  7983. }
  7984. if (GM_getValue("Check_rapidsonic_dot_com_links", false))
  7985. {
  7986. addFileHost(
  7987. "(rapidsonic|fileparadox)\\.com\/\\w+",
  7988. 'method_free" id="submit_btn|<h4><i class="icon_document_alt"></i>Download File</h4>',
  7989. '>File Not Found<|id="no_filedownload">|>FILE NOT FOUND<|file has been deleted|No such file with this filename',
  7990. 'optional--',
  7991. //'optional--',
  7992. "//a[contains(@href,'rapidsonic') or contains(@href,'fileparadox.com')]");
  7993. }
  7994. if (GM_getValue("Check_krotix_dot_net_links", false))
  7995. {
  7996. addFileHost(
  7997. "krotix\.net\/\\w+",
  7998. 'btn btn-warning|btn-free',
  7999. 'pageErrors|This File has been removed',
  8000. 'content="Scheduled Maintenance',
  8001. //'optional--',
  8002. "//a[contains(@href,'krotix.net')]");
  8003. }
  8004. if (GM_getValue("Check_userscloud_dot_com_links", false))
  8005. {
  8006. addFileHost(
  8007. "userscloud\.com\/\\w+",
  8008. 'btn_download',
  8009. '>Server OFFLINE|background:#D3D3D3;border-bottom:1px solid #BBB;font:bold 13px Verdana;padding:3px;">',
  8010. 'optional--',
  8011. //'optional--',
  8012. "//a[contains(@href,'userscloud.com')]");
  8013. }
  8014. if (GM_getValue("Check_kumpulbagi_dot_com_links", false))
  8015. {
  8016. addFileHost(
  8017. "kumpulbagi\.com\/\\w+",
  8018. 'class="button download',
  8019. 'internal server error',
  8020. 'optional--',
  8021. //'optional--',
  8022. "//a[contains(@href,'kumpulbagi.com')]");
  8023. }
  8024. if (GM_getValue("Check_faststore_dot_org_links", false))
  8025. {
  8026. addFileHost(
  8027. "faststore\.org\/\\w+",
  8028. 'name="method_free',
  8029. 'File Not Found',
  8030. 'optional--',
  8031. //'optional--',
  8032. "//a[contains(@href,'faststore.org')]");
  8033. }
  8034. if (GM_getValue("Check_prefiles_dot_com_links", false))
  8035. {
  8036. addFileHost(
  8037. "prefiles\.com\/\\w+",
  8038. 'id="method_free',
  8039. 'File not Found',
  8040. 'optional--',
  8041. //'optional--',
  8042. "//a[contains(@href,'prefiles.com')]");
  8043. }
  8044. if (GM_getValue("Check_doraupload_dot_com_links", false))
  8045. {
  8046. addFileHost(
  8047. "doraupload\.com\/\\w+",
  8048. 'btn_download',
  8049. 'class="error-code|Could Not Be Found',
  8050. 'optional--',
  8051. //'optional--',
  8052. "//a[contains(@href,'doraupload.com')]");
  8053. }
  8054. if (GM_getValue("Check_openload_dot_io_links", false))
  8055. {
  8056. addFileHost(
  8057. "openload\.io\/\\w+",
  8058. 'btn btn-primary|class="count">',
  8059. 'class="jumbotron">|We are sorry',
  8060. 'optional--',
  8061. //'optional--',
  8062. "//a[contains(@href,'openload.io')]");
  8063. }
  8064. if (GM_getValue("Check_uploads_dot_xxx_links", false))
  8065. {
  8066. addFileHost(
  8067. "uploads\.xxx\/\\w+",
  8068. 'downoadForFree',
  8069. 'File not found',
  8070. 'optional--',
  8071. //'optional--',
  8072. "//a[contains(@href,'uploads.xxx')]");
  8073. }
  8074. if (GM_getValue("Check_zxcfiles_dot_com_links", false))
  8075. {
  8076. addFileHost(
  8077. "zxcfiles\.com\/\\w+",
  8078. 'class="downloadbtn',
  8079. 'File Not Found',
  8080. 'optional--',
  8081. //'optional--',
  8082. "//a[contains(@href,'zxcfiles.com')]");
  8083. }
  8084. if (GM_getValue("Check_up07_dot_net_links", false))
  8085. {
  8086. addFileHost(
  8087. "up07\.net\/\\w+",
  8088. 'name="method_free',
  8089. 'File Not Found',
  8090. 'optional--',
  8091. //'optional--',
  8092. "//a[contains(@href,'up07.net')]");
  8093. }
  8094. if (GM_getValue("Check_fileupload_dot_pw_links", false))
  8095. {
  8096. addFileHost(
  8097. "fileupload\.pw\/\\w+",
  8098. 'value="Free"',
  8099. 'File Not Found',
  8100. 'optional--',
  8101. //'optional--',
  8102. "//a[contains(@href,'fileupload.pw')]");
  8103. }
  8104. if (GM_getValue("Check_4upld_dot_com_links", false))
  8105. {
  8106. addFileHost(
  8107. "4upld\.com\/\\w+",
  8108. 'alt="Download Now"|content="Download file">|btn-free-element',
  8109. '<title>Error|content="error|File not found',
  8110. 'optional--',
  8111. //'optional--',
  8112. "//a[contains(@href,'4upld.com')]");
  8113. }
  8114. if (GM_getValue("Check_newfileland_dot_com_links", false))
  8115. {
  8116. addFileHost(
  8117. "newfileland\.com\/\\w+",
  8118. 'name="method_free',
  8119. 'File Not Found',
  8120. 'optional--',
  8121. //'optional--',
  8122. "//a[contains(@href,'newfileland.com')]");
  8123. }
  8124. if (GM_getValue("Check_swoopshare_dot_com_links", false))
  8125. {
  8126. addFileHost(
  8127. "(?:.swoopshare)\\.com\/\\w+",
  8128. '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',
  8129. '<input type="file" name="f"',
  8130. 'optional--',
  8131. //'optional--',
  8132. "//a[contains(@href,'swoopshare.com')]"
  8133. );
  8134. }
  8135.  
  8136. }
  8137. //start here
  8138.  
  8139. //hosts with direct download, so they must be requested for headers only
  8140. function initFileHostsHeadersOnly()
  8141. {
  8142. function addFileHostHeadersOnly(linkRegex, isAliveRegex, isDeadRegex, xpathEx, ispremRegex)
  8143. {
  8144. var host = new Array(5);
  8145. host[0] = linkRegex;
  8146. host[1] = isAliveRegex;
  8147. host[2] = isDeadRegex;
  8148. host[3] = xpathEx;
  8149. host[4] = ispremRegex;
  8150. http_file_hosts_headers_only.push(host);
  8151. }
  8152. if (GM_getValue("Check_uloziste_dot_com_links", false))
  8153. {
  8154. addFileHostHeadersOnly(
  8155. "(?:|files\\.)uloziste\\.com\/\\w+\/\\w+",
  8156. 'Connection: Keep-Alive',
  8157. 'Content-Length: 3857',
  8158. "//a[contains(@href,'uloziste.com')]"
  8159. )
  8160. }
  8161. if (GM_getValue("Check_adrive_dot_com_links", false))
  8162. {
  8163. addFileHostHeadersOnly(
  8164. "adrive\\.com\/public\/\\w+",
  8165. 'Connection: keep-alive',
  8166. 'orig_ref=deleted',
  8167. "//a[contains(@href,'adrive.com')]"
  8168. )
  8169. }
  8170. if (GM_getValue("Check_myupload_dot_dk_links", false))
  8171. {
  8172. addFileHostHeadersOnly(
  8173. "myupload\\.dk\/showfile\/\\w+",
  8174. 'Expires:',
  8175. 'squeeze1\\s+Vary',
  8176. "//a[contains(@href,'myupload.dk/showfile')]"
  8177. )
  8178. }
  8179. }
  8180. //CustomRules
  8181. //functions add...Host copied here
  8182. function addObsoleteHost(linkRegex, xpathEx)
  8183. {
  8184. var host = new Array(2);
  8185. host[0] = linkRegex;
  8186. host[1] = xpathEx;
  8187. http_file_hosts_obsolete.push(host);
  8188. }
  8189. function addFileHost(linkRegex, isAliveRegex, isDeadRegex, isUnavaRegex, xpathEx, tryLoop, ispremRegex)
  8190. {
  8191. var host = new Array(7);
  8192. host[0] = linkRegex;
  8193. host[1] = isAliveRegex;
  8194. host[2] = isDeadRegex;
  8195. host[3] = isUnavaRegex;
  8196. host[4] = xpathEx;
  8197. tryLoop ? host[5] = true : host[5] = false;
  8198. host[6] = ispremRegex;
  8199. http_file_hosts.push(host);
  8200. }
  8201. function addFileHostHeadersOnly(linkRegex, isAliveRegex, isDeadRegex, xpathEx, ispremRegex)
  8202. {
  8203. var host = new Array(5);
  8204. host[0] = linkRegex;
  8205. host[1] = isAliveRegex;
  8206. host[2] = isDeadRegex;
  8207. host[3] = xpathEx;
  8208. host[4] = ispremRegex;
  8209. http_file_hosts_headers_only.push(host);
  8210. }
  8211. //takes a fully built rules array and adds the rules to WARLC
  8212. function applyCustomRules(customRules)
  8213. {
  8214. if (!customRules) return;
  8215. var rules, r, i;
  8216. rules = customRules.rules;
  8217. for (i = 0 ; i < rules.length ; i++)
  8218. {
  8219. r = rules[i];
  8220. if (r.enabled)
  8221. {
  8222. switch (r.type)
  8223. {
  8224. case 'single':
  8225. addFileHost(r.urlregex, r.aliveregex, r.deadregex, r.unavaregex, r.premregex||'', r.xpath);
  8226. break;
  8227. case 'headers':
  8228. addFileHostHeadersOnly(r.urlregex, r.aliveregex, r.deadregex, r.xpath, r.premregex);
  8229. break;
  8230. case 'obsolete':
  8231. addObsoleteHost(r.urlregex, r.xpath)
  8232. break;
  8233. }
  8234. }
  8235. }
  8236. }
  8237.  
  8238.  
  8239. function initFileHostsCustom()
  8240. {
  8241. if (Custom_rules && Custom_rules_text)
  8242. {
  8243. var msg = '';
  8244. if (newVersion)
  8245. msg = 'New version of W.A.R. Links Checker detected.\n\n';
  8246. else if ((now - last_custom_rules_nag) >= 60*24*60*60*1000)
  8247. msg = '60 or more days have passed since this notification.\n\n';
  8248. if (msg && /^\s*@customrule(?:_obsolete)?\s/mi.test(Custom_rules_text))
  8249. {
  8250. GM_setValue('last_custom_rules_nag', ''+new Date().getTime()); //reset nag
  8251. msg +=
  8252. 'Either new version of W.A.R. Links Checker detected or 60 days passed since this notify.\n'+
  8253. 'Please check that your custom rules haven\'t been built into WARLC.\n'+
  8254. 'If not, please share them with us so they can be included in the next version! Built-in rules are always preferred.\n\n'+
  8255. 'We apologize for this annoying notification, but there is a reason to this.\n'+
  8256. 'Ideally, WARLC would check which of your custom rules have been included and disable them. '+
  8257. 'Unfortunately, there is no easy way to do that, but we don\'t want everybody to just use their custom rules '+
  8258. 'forever without ever checking if the built-in ones have been added/fixed. This is currently the only way '+
  8259. 'to remind you that you should try built-in rules, report missing/non-working ones and share your custom rules.';
  8260. setTimeout(function(){alert(msg)},0);
  8261. }
  8262. var customRules = parseCustomRules(Custom_rules_text);
  8263. if (customRules.warning || customRules.error)
  8264. alert('There were ' + customRules.error + ' errors, ' + customRules.warning + ' warnings, ' +
  8265. customRules.note + ' notes found during Custom Rules processing.\n' + customRules.rules.length + ' valid rules found.\n\n' +
  8266. JSON.stringify(customRules.info, null, ' '));
  8267. applyCustomRules(customRules);
  8268. }
  8269. }
  8270. //end of CustomRules processing
  8271.  
  8272.  
  8273.  
  8274. } //end of function start
  8275.  
  8276.  
  8277.  
  8278. function initClipBoardTools()
  8279. {
  8280. unsafeWindow.copyToClipboard = function(text)
  8281. {
  8282. try
  8283. {
  8284. this.netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
  8285.  
  8286. var str = Components.classes["@mozilla.org/supports-string;1"].
  8287. createInstance(Components.interfaces.nsISupportsString);
  8288. if (!str) return false;
  8289.  
  8290. str.data = text;
  8291.  
  8292. var trans = Components.classes["@mozilla.org/widget/transferable;1"].
  8293. createInstance(Components.interfaces.nsITransferable);
  8294. if (!trans) return false;
  8295.  
  8296. trans.addDataFlavor("text/unicode");
  8297. trans.setTransferData("text/unicode", str, text.length * 2);
  8298.  
  8299. var clipid = Components.interfaces.nsIClipboard;
  8300. var clip = Components.classes["@mozilla.org/widget/clipboard;1"].getService(clipid);
  8301. if (!clip) return false;
  8302.  
  8303. clip.setData(trans, null, clipid.kGlobalClipboard);
  8304. } catch (e) {
  8305. GM_log("Error copyToClipboard : " + e);
  8306. alert(e + "\n\nsigned.applets.codebase_principal_support must be set true in about:config")
  8307. }
  8308. }
  8309. }
  8310.  
  8311.  
  8312.  
  8313. //CustomRules
  8314.  
  8315. function escapeRegex(str)
  8316. {
  8317. return str.replace(/[\-\[\]{}()*+?.,\\\^$|#]/g, "\\$&");
  8318. }
  8319.  
  8320.  
  8321. //called internally from parseCustomRules.
  8322. //expected: rule object with array fields baseurl, alivematch etc, everything must already be checked for input errors
  8323. //returns the rule object with string fields urlregex, xpath, aliveregex etc built from the arrays
  8324. function makeCustomRule(rule)
  8325. {
  8326. function makeMatchRegex(arrmatch)
  8327. {
  8328. return escapeRegex(arrmatch.join('\n'))
  8329. .replace(/ +/g, '\\s+') //two or more spaces to any whitespace
  8330. .replace(/\n/g,'|'); //join together
  8331. }
  8332. if (rule.alivematch) rule.aliveregex = makeMatchRegex(rule.alivematch);
  8333. if (rule.deadmatch) rule.deadregex = makeMatchRegex(rule.deadmatch);
  8334. if (rule.unavamatch) rule.unavaregex = makeMatchRegex(rule.unavamatch);
  8335. if (rule.premmatch) rule.premregex = makeMatchRegex(rule.premmatch);
  8336. if (rule.baseurl)
  8337. {
  8338. var i, m, urlregex = [], xpath = [], len = rule.baseurl.length;
  8339. for (i = 0 ; i < len ; i++)
  8340. {
  8341. m = rule.baseurl[i].match(/^([a-z0-9\.-]+)(?: +([a-z \.]+) +)?(\/.*)$/);
  8342. if (m[2]) //baseurl in the form: example. com co.uk net /xxx
  8343. {
  8344. 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'])
  8345. urlregex.push( (m[1] + '(?:'+ m[2].replace(/\s+/g,'|') + ')').replace(/\./g,'\\.') + escapeRegex(m[3]) + '.'); //urlregex.push('example\\.(?:com|co\\.uk|net)/xxx.')
  8346. }
  8347. else //baseurl in the form: example.com/xxx
  8348. {
  8349. xpath.push(m[0]);
  8350. urlregex.push(escapeRegex(m[0]) + '.');
  8351. }
  8352. }
  8353. rule.xpath = "//a[contains(@href,'" + xpath.join("') or contains(@href,'") + "')]";
  8354. rule.urlregex = '(?:[a-z0-9\\.-]+\\.)?(?:' + urlregex.join('|') + ')';
  8355. }
  8356. return rule;
  8357. } //function makeCustomRule
  8358.  
  8359.  
  8360. /*
  8361. Takes a string containing custom link checking rules.
  8362. Returns an object with fields:
  8363. info - contains notes, warnings and errors found during parsing
  8364. rules - the array of custom rules
  8365. note, warning, error - number of each of them found during parsing
  8366. Format of the input string:
  8367. One command per line. Command format: @keyword parameter
  8368. Keywords:
  8369. @customrule, @customrule_obsolete, @customrule_headers - begin a new custom rule. Parameter: name of the rule
  8370. @#customrule, @#customrule_obsolete, @#customrule_headers - begin and parse this custom rule, but don't use it. Parameter: name of the rule
  8371. These keywords can be multiple (any of them will work):
  8372. @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...)
  8373. @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+
  8374. @alivelink, @deadlink - example links
  8375. @baseurl is always required, @alivematch and @deadmatch are required except for obsolete. @unavamatch is ignored for obsolete. @*link is optional.
  8376. Lines starting with // and empty lines are ignored.
  8377. Invalid parameters generate errors and those lines are skipped.
  8378. Other lines generate warnings, but are otherwise ignored (also those before the first @customrule line or inside a rule with invalid name).
  8379. Example:
  8380. @customrule filehost
  8381. @baseurl filehost.com/download/
  8382. @baseurl filehost2. com net /d?=
  8383. @alivematch id="download">
  8384. @deadmatch File not found
  8385. @deadmatch File deleted
  8386. */
  8387. function parseCustomRules(rulesStr)
  8388. {
  8389. var linenum, customRules = {'info': [], 'rules': [], 'note': 0, 'warning': 0, 'error': 0};
  8390. function addInfo(type, msg, ln){
  8391. customRules.info.push({'linenum':(ln===undefined ? linenum+1 : ln+1), 'type':type, 'msg':msg});
  8392. customRules[type]++;
  8393. }
  8394. var lines = rulesStr.match(/^(.*)$/gm); //split into array of lines
  8395. if (!lines) return null;
  8396. lines.push('@#customrule _'); //to save the last rule
  8397. var m, linecount = lines.length;
  8398. var keyword, param, constr, rule, err;
  8399. var TLD = '[a-z]{2,7}(?:\\.[a-z]{2,7})?';
  8400. var TLDorTLDlist = '(?:'+TLD+'| '+TLD+'(?: '+TLD+'){0,9} )'; //TLD or space-separated list of TLDs
  8401. var baseurlRE = new RegExp('^([a-z0-9-]{1,30}(?:\\.[a-z0-9-]{1,30}){0,2}\\.)'+TLDorTLDlist+'(/[^\'"\s\$]{0,50})$', 'i');
  8402. var constraints = {
  8403. 'baseurl': {
  8404. 'single': {'min': 1, 'max': 10, 'paramRE': baseurlRE},
  8405. 'headers': {'min': 1, 'max': 10, 'paramRE': baseurlRE},
  8406. 'obsolete': {'min': 1, 'max': 10, 'paramRE': baseurlRE}},
  8407. 'alivematch': {
  8408. 'single': {'min': 1, 'max': 10, 'paramRE': null},
  8409. 'headers': {'min': 1, 'max': 10, 'paramRE': null}},
  8410. 'deadmatch': {
  8411. 'single': {'min': 1, 'max': 10, 'paramRE': null},
  8412. 'headers': {'min': 1, 'max': 10, 'paramRE': null}},
  8413. 'unavamatch': {
  8414. 'single': {'min': 0, 'max': 10, 'paramRE': null}},
  8415. 'alivelink': {
  8416. 'single': {'min': 0, 'max': 10, 'paramRE': null},
  8417. 'headers': {'min': 0, 'max': 10, 'paramRE': null}},
  8418. 'deadlink': {
  8419. 'single': {'min': 0, 'max': 10, 'paramRE': null},
  8420. 'headers': {'min': 0, 'max': 10, 'paramRE': null},
  8421. 'obsolete': {'min': 0, 'max': 10, 'paramRE': null}}
  8422. };
  8423. for (linenum = 0 ; linenum < linecount ; linenum++)
  8424. {
  8425. //capturing groups: 1 23 4 5 6
  8426. m = lines[linenum].match(/^\s*(?:(\/\/.*)|@((#?)(customrule)(?:_(headers|obsolete))?|baseurl|alivematch|deadmatch|unavamatch|alivelink|deadlink)\s+(.+))?$/i);
  8427. if (m)
  8428. {
  8429. if (m[1] || !m[2])
  8430. continue; // ignore empty lines and lines starting with //
  8431. keyword = (m[4] || m[2]).toLowerCase();
  8432. param = m[6];
  8433. if (keyword == 'customrule')
  8434. {
  8435. //save the current rule if all required fields are provided
  8436. if (rule)
  8437. {
  8438. err = false;
  8439. $.each(constraints, function(kw, constraint){
  8440. var l, constr = constraint[rule.type];
  8441. if (constr)
  8442. {
  8443. l = rule[kw] ? rule[kw].length : 0;
  8444. if (l < constr.min || l > constr.max)
  8445. {
  8446. 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);
  8447. err = true;
  8448. }
  8449. }
  8450. });
  8451. if (!err)
  8452. customRules.rules.push(makeCustomRule(rule));
  8453. }
  8454. //start a new rule
  8455. if (/^[\w\.-]{1,30}$/.test(param)) //valid name?
  8456. {
  8457. rule = {
  8458. 'enabled': !m[3],
  8459. 'type': m[5] ? m[5].toLowerCase() : 'single',
  8460. 'name': param
  8461. };
  8462. }
  8463. else
  8464. {
  8465. addInfo('error', 'Invalid rule name. Cannot start a new rule definition.');
  8466. rule = null;
  8467. }
  8468. }
  8469. else //good line format, but keyword other than customrule
  8470. {
  8471. if (!rule)
  8472. {
  8473. addInfo('warning', 'Command outside @CUSTOMRULE definiton. Line skipped.');
  8474. continue;
  8475. }
  8476. if (constraints[keyword])
  8477. {
  8478. constr = constraints[keyword][rule.type];
  8479. if (constr)
  8480. {
  8481. if (constr.paramRE && !constr.paramRE.test(param))
  8482. {
  8483. addInfo('warning', 'Invalid @' + keyword.toUpperCase() + ' parameter. Line Skipped.');
  8484. continue;
  8485. }
  8486. }
  8487. else
  8488. {
  8489. addInfo('note', '@' + keyword.toUpperCase() + ' not applicable for type ' + rule.type.toUpperCase() + '. Line skipped.');
  8490. continue;
  8491. }
  8492. }
  8493. //line OK, save
  8494. rule[keyword] ? rule[keyword].push(param) : rule[keyword] = [param];
  8495. }
  8496. } //if (m)
  8497. else
  8498. addInfo('warning', 'Unknown line format. Line skipped.');
  8499. } //for loop
  8500. return customRules;
  8501. } //function parseCustomRules

QingJ © 2025

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