Greasy Fork 还支持 简体中文。

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

detects live, dead and premium links.

目前為 2015-08-02 提交的版本,檢視 最新版本

  1. //added cloudshares.net
  2. // ==UserScript==
  3. // @name W.A.R. Links Checker Customized Premium Link Version
  4. // @description detects live, dead and premium links.
  5. // @details this script automatically checks links from 650+ filehosts. For Firefox, Chrome, Opera, Safari.
  6. // @namespace premium version
  7. // @version 1.1.6.8
  8. // @icon http://sharenxs.com/photos/2014/02/14/52fd759db90ac/cooltext1428903746.png
  9. // @license GPL version 3 or any later version (http://www.gnu.org/copyleft/gpl.html)
  10. // @author <a href="http://www.mentalps.5gbfree.com/viewtopic.php?f=2&t=6>mental</a>
  11. // @include http://*
  12. // @include https://*
  13. // @include file:///*
  14. // @grant GM_setValue
  15. // @grant GM_getValue
  16. // @grant GM_xmlhttpRequest
  17. // @grant GM_log
  18. // @grant GM_addStyle
  19. // @grant GM_registerMenuCommand
  20. // @grant GM_getResourceText
  21. // @grant GM_info
  22. // @require https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js
  23. // @require https://ajax.googleapis.com/ajax/libs/jqueryui/1.9.1/jquery-ui.min.js
  24. // @resource jQueryUICSS https://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/smoothness/jquery-ui.css
  25. // @homepage http://www.mentalps.5gbfree.com
  26. // @namespace http://www.mentalps.5gbfree.com
  27. // @noframes
  28. // ==/UserScript==
  29.  
  30. //separate alternative domains with "|" char (first name is considered being main)
  31. var allHostNames = [
  32. "1fichier.com|dl4free.com",
  33. "4upld.com",
  34. "cloudshares.net",
  35. "swoopshare.com",
  36. "newfileland.com",
  37. "2shared.com",
  38. "fileupload.pw",
  39. "zxcfiles.com",
  40. "up07.net",
  41. "4shared.com",
  42. "adrive.com",
  43. "aisfile.com",
  44. "hexupload.com",
  45. "bezvadata.cz",
  46. "burnupload.com|burnupload.ihiphop.com",
  47. "xkeepfile.com|Gamesena.com",
  48. // "firedrive.com",
  49. "usersfiles.com",
  50. "pan.baidu.com",
  51. "radicalshare.com",
  52. "cramit.in|cramitin.net",
  53. "datei.to",
  54. "daten-hoster.de|filehosting.org|xtraupload.de",
  55. "demo.ovh.eu",
  56. "depositfiles.com",
  57. "divshare.com",
  58. "easy-share.com|crocko.com",
  59. "easybytez.com",
  60. "edisk.cz",
  61. "euroshare.eu",
  62. "file-upload.net",
  63. "yadi.sk",
  64. "ryushare.com",
  65. "wizupload.com",
  66. "fastshare.cz",
  67. "filefactory.com",
  68. "share.vnn.vn",
  69. "yunpan.cn",
  70. "gulfup.com",
  71. "tropicshare.com",
  72. "cloudzilla.to",
  73. "inclouddrive.com",
  74. "fileflyer.com",
  75. "filerio.com|filekeen.com",
  76. "up.4share.vn",
  77. "upfile.vn",
  78. "datafilehost.com",
  79. "fileband.com",
  80. "worldbytez.com",
  81. "files.mail.ru",
  82. "filepost.com|fp.io",
  83. "filesflash.com",
  84. "box.com",
  85. "box.net",
  86. "goldbytez.com",
  87. "sdilej.cz",
  88. "ex-load.com",
  89. "filesmonster.com",
  90. "filestore.to",
  91. "freakshare.net",
  92. "hulkload.com",
  93. "filedropper.com",
  94. "free-uploading.com",
  95. "gamefront.com|filefront.com",
  96. "gettyfile.ru",
  97. "gigapeta.com",
  98. "gigasize.com",
  99. "hellshare.com",
  100. "hellspy.com",
  101. "hitfile.net",
  102. "hostuje.net",
  103. "freefilehosting.net",
  104. "free.fr",
  105. "hulkshare.com",
  106. "hyperfileshare.com",
  107. "filecloud.io|ifile.it",
  108. "ifolder.ru",
  109. "jumbofiles.com",
  110. "uploadrocket.net",
  111. "lafiles.com",
  112. "leteckaposta.cz|sharegadget.com",
  113. "letitbit.net",
  114. "load.to",
  115. "mediafire.com",
  116. "megafileupload.com",
  117. "megashares.com",
  118. "movshare.net",
  119. "muchshare.net",
  120. "myupload.dk",
  121. "narod.ru|narod.yandex.ru",
  122. "netload.in",
  123. "fboom.me",
  124. "fileboom.me",
  125. "openfile.ru",
  126. "partage-facile.com",
  127. "plunder.com",
  128. // "putlocker.com",
  129. "sharerapid.cz",
  130. "exclusiveloader.com",
  131. "acefile.net",
  132. "queenshare.com",
  133. "quickshare.cz",
  134. "rapidgator.net",
  135. "keep2share.com",
  136. "oboom.com",
  137. "filepi.com",
  138. "neodrive.co",
  139. "rarefile.net",
  140. "rayfile.com",
  141. "rghost.net",
  142. "sendmyway.com",
  143. "clicknupload.com",
  144. "sharemods.com",
  145. "hostr.co",
  146. "sendspace.com",
  147. "sharecash.org",
  148. "share-links.biz",
  149. "share-online.biz|egoshare.com",
  150. "megarapid.cz",
  151. "shareflare.net",
  152. "solidfiles.com",
  153. "led.wf",
  154. "lan.wf",
  155. "adlink.wf",
  156. "click.tf",
  157. "kyc.pm",
  158. "ssh.tf",
  159. "ssh.yt",
  160. "yep.pm",
  161. "stahovanizasms.cz",
  162. "tufiles.ru",
  163. "turbobit.net",
  164. "filecloud.cc",
  165. "tikfile.com",
  166. "cloudsix.me",
  167. "turboupload.com",
  168. "uloz.to|ulozto.cz|bagruj.cz|zachowajto.pl",
  169. "ulozisko.sk",
  170. "uloziste.com",
  171. "unibytes.com",
  172. "upload-il.net|przeslij.net",
  173. "uploaded.to|ul.to",
  174. "uploading.com",
  175. "chayfile.com",
  176. "rockfile.eu",
  177. "24uploading.com",
  178. "uploadspace.pl",
  179. "upnito.sk",
  180. "uptobox.com",
  181. "usaupload.net",
  182. "veehd.com",
  183. "videobb.com",
  184. "vip-file.com",
  185. "webshare.cz",
  186. "xdisk.cz",
  187. "yunfile.com|filemarkets.com",
  188. "ziddu.com",
  189. "krotix.net",
  190. "zippyshare.com",
  191. "rodfile.com",
  192. "migahost.com",
  193. "wikiupload.com",
  194. "uploadstube.de",
  195. "faststore.org",
  196. "flyfiles.net",
  197. "nowdownload.eu",
  198. "prefiles.com",
  199. "axifile.com",
  200. "rapidsonic.com|fileparadox.com",
  201. "hackerbox.org",
  202. "amonshare.com",
  203. "data.hu",
  204. "brupload.net",
  205. "userscloud.com",
  206. "netkups.com",
  207. "edoc.com",
  208. "xfileload.com",
  209. "jumbofile.net",
  210. "kumpulbagi.com",
  211. "uppit.com|up.ht",
  212. "downloadani.me",
  213. "filesabc.com",
  214. "sharebeast.com",
  215. "180upload.com",
  216. "verzend.be",
  217. "movreel.com",
  218. "4up.me",
  219. "extmatrix.com",
  220. "sendfiles.nl",
  221. "yourfilestore.com",
  222. "filebig.net",
  223. "nekaka.com",
  224. "file4safe.com",
  225. "tusfiles.net",
  226. "filemac.com",
  227. "idup.in",
  228. "fileswap.com",
  229. "ozofiles.com",
  230. "loudupload.net",
  231. "nosupload.com",
  232. "gboxes.com",
  233. "myvdrive.com|fileserving.com",
  234. "filesin.com",
  235. "novafile.com",
  236. "longfiles.com",
  237. "uploadhero.com",
  238. "uploadbaz.com",
  239. "bitupload.com",
  240. "indowebster.com",
  241. "superload.cz",
  242. "mafiastorage.com",
  243. "4upfiles.com",
  244. "filesmelt.com",
  245. "hellupload.com",
  246. "uploadingit.com",
  247. "stiahni.si",
  248. "sendspace.pl",
  249. "fastshare.org",
  250. "filejoker.net",
  251. "filestore.com.ua",
  252. "secureupload.eu",
  253. "rapidfileshare.net",
  254. "stiahnito.sk",
  255. "rusfolder.com",
  256. "fileover.net",
  257. "catshare.net",
  258. "anonfiles.com",
  259. "mixturecloud.com",
  260. "fileparadox.in",
  261. "filedais.com",
  262. "imdb.com",
  263. "nitroflare.com",
  264. "akafile.com",
  265. "creafile.net",
  266. "hugefiles.net",
  267. "vidxden.com",
  268. "up.top4top.net",
  269. "upload.ee",
  270. "shareplace.org",
  271. "uploadc.com",
  272. "remixshare.com",
  273. "exoshare.com",
  274. "borncash.org",
  275. "junocloud.me",
  276. "keep2share.cc",
  277. "k2s.cc",
  278. "expressleech.com",
  279. "2downloadz.com",
  280. "mightyupload.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. "bl.st",
  374. "2drive.net",
  375. "uncapped-downloads.com",
  376. "sockshare.com",
  377. "ddlstorage.com",
  378. "dataport.cz",
  379. "dizzcloud.com",
  380. "stahovadlo.cz",
  381. "shared.com",
  382. "storage.to",
  383. "putlocker.com",
  384. "lumfile.com",
  385. "lumfile.se",
  386. "lumfile.eu",
  387. "firedrive.com",
  388. "fileshare.in.ua",
  389. "filecore.co.nz",
  390. "iskladka.cz",
  391. "file-rack.com",
  392. "fast-load.net",
  393. "subory.sk",
  394. "bigandfree.com",
  395. "fileop.com",
  396. "mujsoubor.cz",
  397. "sendfile.to",
  398. "superfastfile.com",
  399. "quickyshare.com",
  400. "duckload.com",
  401. "uploadstore.net",
  402. "meinupload.com",
  403. "dualshare.com",
  404. "2xupload.to|2xupload.de",
  405. "oxedion.com",
  406. "uploadline.com",
  407. "dll.bz",
  408. "movieshare.in",
  409. "milledrive.com",
  410. "quickupload.net",
  411. "safelink.in",
  412. "metadivx.com",
  413. "divxlink.com",
  414. "uploadrack.com",
  415. "teradepot.com",
  416. "dataup.to",
  417. "upit.to",
  418. "driveway.com",
  419. "eatlime.com",
  420. "a2zuploads.com",
  421. "friendlyfiles.net",
  422. "flyfile.us",
  423. "speedyshare.com",
  424. "uploadspace.eu",
  425. "keepfile.com",
  426. "piggyshare.com",
  427. "uplly.com",
  428. "filecrown.com",
  429. "6giga.com",
  430. "uploadjockey.com",
  431. "bluehost.to",
  432. "filegu.ru",
  433. "filebase.to",
  434. "up-file.com",
  435. "xvideos.com",
  436. "ufox.com",
  437. "filebling.com",
  438. "loaded.it",
  439. "uploadcell.com",
  440. "uploadshare.cz",
  441. "mangoshare.com",
  442. "filestab.com",
  443. "crazyupload.com",
  444. "gaiafile.com",
  445. "sharejunky.com",
  446. "fileho.com",
  447. "bigandfree.com",
  448. "bigfile.in",
  449. "bigshare.eu",
  450. "dahosting.org",
  451. "digisofts.net",
  452. "file4save.com",
  453. "filechip.com",
  454. "filescloud.com",
  455. "saveqube.com",
  456. "turboshare.de",
  457. "z-upload.com",
  458. "youshare.com",
  459. "jiffyupload.com",
  460. "gigeshare.com",
  461. "datenklo.net",
  462. "upload.dj",
  463. "loadfiles.in",
  464. "upit.to",
  465. "dsfileshare.com",
  466. "sharesimple.net",
  467. "4files.net",
  468. "wooupload.com",
  469. "odsiebie.com",
  470. "filenavi.com",
  471. "3oof.com",
  472. "meshwaar.com",
  473. "maxupload.com",
  474. "share.cx",
  475. "atserver.eu",
  476. "hotfiles.ws",
  477. "esnips.com",
  478. "tuxfile.com",
  479. "file2upload.net",
  480. "filebling.com",
  481. "turboshare.com",
  482. "rarhost.com",
  483. "isharehd.com",
  484. "i741.com",
  485. "dataup.de",
  486. "fofly.com",
  487. "shareonall.com",
  488. "sexuploader.com",
  489. "megaupload.com|megavideo.com|megaporn.com|megarotic.com",
  490. "uploadhyper.com",
  491. "filespawn.com",
  492. "caizzii.com",
  493. "volnyweb.cz",
  494. "usershare.net",
  495. "filescash.net",
  496. "metahyper.com",
  497. "combozip.com",
  498. "x7.to",
  499. "uploadbox.com",
  500. "enterupload.com|flyupload.com",
  501. "filepoint.de",
  502. "mystream.to",
  503. "x-fs.com",
  504. "shareator.com",
  505. "srapid.eu",
  506. "sosame.cz",
  507. "filesdump.com",
  508. "2-klicks.de",
  509. "uploking.com",
  510. "silofiles.com",
  511. "upfile.in",
  512. "filehook.com",
  513. "uploadking.com",
  514. "uploadhere.com",
  515. "kewlshare.com",
  516. "rapidable.com",
  517. "uploadwaste.com",
  518. "filemup.com",
  519. "filesonic.com|sharingmatrix.com",
  520. "fileserve.com",
  521. "wupload.com",
  522. "skipfile.com",
  523. "smartuploader.com",
  524. "dualshare.com",
  525. "storeandserve.com",
  526. "mountfile.com",
  527. "transitfiles.com",
  528. "uploadstation.com",
  529. "filejungle.com",
  530. "shareshared.com",
  531. "quickyshare.com",
  532. "save.am",
  533. "petandrive.com",
  534. "file2box.com",
  535. "flyshare.cz",
  536. "yabadaba.ru",
  537. "cloudcache.cc",
  538. "yourfilehost.com",
  539. "jakfile.com",
  540. "kickload.com",
  541. "pyramidfiles.com",
  542. "refile.net",
  543. "zshare.net",
  544. "ddlani.me|ddlanime.com",
  545. "ftp2share.com",
  546. "fooget.com",
  547. "rapidhide.com",
  548. "gotupload.com",
  549. "mooload.com",
  550. "zupload.com",
  551. "mytempdir.com",
  552. "onionshare.com",
  553. "stahnu.to",
  554. "oron.com",
  555. "badongo.com",
  556. "filereactor.com",
  557. "filegaze.com",
  558. "4bytez.com",
  559. "1hostclick.com",
  560. "anonstream.com",
  561. "batshare.com",
  562. "bitroad.net",
  563. "brontofile.com",
  564. "cloudnxt.net",
  565. "cloudnator.com|shragle.com",
  566. "filesfrog.net",
  567. "coolshare.cz",
  568. "dotavi.com",
  569. "ezyfile.net",
  570. "file-bit.net",
  571. "filecosy.com",
  572. "fileduct.com|fileduct.net",
  573. "filefat.com",
  574. "filelaser.com",
  575. "filemashine.com",
  576. "fileserver.cc",
  577. "filetechnology.com",
  578. "fireuploads.net",
  579. "gigfiles.net",
  580. "holderfile.com",
  581. "ihostia.com",
  582. "k2files.com",
  583. "mojofile.com",
  584. "ovfile.com",
  585. "qshare.com",
  586. "shafiles.me",
  587. "sharefilehost.com",
  588. "shareupload.com",
  589. "stahuj.to",
  590. "ugotfile.com",
  591. "uploadboost.com",
  592. "fileom.com",
  593. "vidhog.com",
  594. "xfileshare.eu",
  595. "bzlink.us",
  596. "bulletupload.com",
  597. // "wizzupload.com",
  598. "bloggerarticles.com",
  599. "mojedata.sk",
  600. "sharpfile.com",
  601. "upgrand.com",
  602. "nasdilej.cz",
  603. "mediatack.cz",
  604. "share-it.to",
  605. "primeupload.com",
  606. "filebeer.info",
  607. "baberepublic",
  608. "xtu.me",
  609. "sharebase.de",
  610. "luckyshare.net",
  611. "filerobo.com",
  612. "filevelocity.com",
  613. "filezpro.com",
  614. "file4sharing.com",
  615. "cing.be",
  616. "ufile.eu",
  617. "pigsonic.com",
  618. "fileupped.com",
  619. "sharerun.com",
  620. "filesaur.com",
  621. "rapidslnare.com",
  622. "bestsharing.com",
  623. "savefiles.net",
  624. "file2share.biz",
  625. "filecache.de",
  626. "monsteruploads.eu",
  627. "b9bb.com",
  628. "aiotool.net",
  629. "jamber.info",
  630. "megaftp.com",
  631. "desiupload.net",
  632. "file27.com",
  633. "yastorage.com",
  634. "filehost.ws",
  635. "copyload.com",
  636. "venusfile.com",
  637. "aieshare.com",
  638. "terafile.co",
  639. "terafile.com",
  640. "fileza.net",
  641. "filerose.com",
  642. "squillion.com",
  643. "fileprohost.com",
  644. "bitbonus.com",
  645. "warserver.cz",
  646. "uload.to",
  647. "sharedbit.net",
  648. "megaload.it",
  649. "filewinds.com",
  650. "uploadcore.com",
  651. "syfiles.com",
  652. "eyesfile.com",
  653. "hotfile.com",
  654. "superupl.com",
  655. "oteupload.com",
  656. "henchfile.com",
  657. "filegag.com",
  658. "HenchFile.com",
  659. "filedefend.com",
  660. "share-rapid.com|rapids.cz|share-credit.cz|share-central.cz|share-ms.cz|share-net.cz|srapid.cz|share-rapid.cz",
  661. "megabitshare.com",
  662. "cloudzer.com",
  663. "asfile.com",
  664. "cloudzer.net",
  665. "clz.to",
  666. "extabit.com",
  667. "247upload.com",
  668. "2download.de",
  669. "4fastfile.com",
  670. "asixfiles.com",
  671. "berofile.com",
  672. "bigupload.com",
  673. "cepzo.com",
  674. "clouds.to",
  675. "cobrashare.sk",
  676. "coraldrive.net",
  677. "cyberlocker.ch",
  678. "czshare.com",
  679. "darkport.org",
  680. "dark-uploads.com",
  681. "davvas.com",
  682. "enigmashare.com",
  683. "erofly.cz",
  684. "fastsonic.net",
  685. "filebox.com",
  686. "filecity.net",
  687. "filedap.com",
  688. "filedino.com",
  689. "filedownloads.org",
  690. "filefolks.com",
  691. "fileking.co",
  692. "filemates.com",
  693. "files.to",
  694. "files2k.eu",
  695. "filesector.cc",
  696. "bitshare.com",
  697. "filesega.com",
  698. "filesend.net",
  699. "filestay.com",
  700. "filestrum.com",
  701. "fileuplo.de",
  702. "fileupup.com",
  703. "forunesia.com",
  704. "freeuploads.fr",
  705. "uploa.dk",
  706. "getthebit.com",
  707. "getzilla.net",
  708. "goldfile.eu",
  709. "good.com",
  710. "grupload.com",
  711. "hellfile.com",
  712. "hipfile.com",
  713. "hitfile.com",
  714. "hulkfile.eu|duckfile.net",
  715. "i-filez.com",
  716. "ifile.ws",
  717. "kupload.org",
  718. "packupload.com",
  719. "lemuploads.com",
  720. "limelinx.com",
  721. "maxshare.pl",
  722. "megarelease.org",
  723. "megashare.com",
  724. "minus.com",
  725. "mlfat4arab.com",
  726. "multishare.cz",
  727. "nirafile.com",
  728. "ok2upload.com",
  729. "peejeshare.com",
  730. "premiuns.org",
  731. "przeklej.net",
  732. "qkup.net",
  733. "rapidupload.sk",
  734. "rockdizfile.com",
  735. "rocketfile.net",
  736. "share-now.net",
  737. "share76.com",
  738. "sharebees.com",
  739. "sharefiles.co",
  740. "slingfile.com",
  741. "sms4file.com",
  742. "space4file.com",
  743. "tigershare.net",
  744. "toucansharing.com",
  745. "ubuntuone.com",
  746. "unextfiles.com",
  747. "upaj.pl",
  748. "upfile.biz",
  749. "uploadbin.net",
  750. "uploadic.com",
  751. "uploadinc.com",
  752. "uploading4u.eu",
  753. "uploadjet.net",
  754. "uploadorb.com",
  755. "upthe.net",
  756. "uptorch.com",
  757. "vidbox.yt",
  758. "videozer.com",
  759. "vreer.com",
  760. "wallobit.com",
  761. "zooupload.com",
  762. "privatefiles.com",
  763. "xerver.co",
  764. "BillionUploads.com",
  765. "rapidshare.com",
  766. "rapidshare.ru",
  767. "4savefile.com",
  768. "bayfiles.com",
  769. "bayfiles.net",
  770. "dodane.pl",
  771. "dotsemper.com",
  772. "egofiles.com",
  773. "epicshare.net",
  774. "fiberupload.net",
  775. "filemonkey.in",
  776. "filemonster.net",
  777. "filepom.com",
  778. "filesbb.com",
  779. "fileshareup.com",
  780. "filevice.com",
  781. "gigaup.fr",
  782. "inafile.com",
  783. "isavelink.com",
  784. "loombo.com",
  785. "megafiles.se",
  786. "migupload.com",
  787. "mydisc.net",
  788. "nitrobits.com",
  789. "potload.com",
  790. "redload.net",
  791. "shareprofi.com",
  792. "sharesuper.info",
  793. "sinhro.net",
  794. "speedfile.cz",
  795. "speedshare.org",
  796. "storage.novoro.net",
  797. "swankshare.com",
  798. "swatupload.com",
  799. "upafile.com",
  800. "uploadmachine.com",
  801. "uploadsat.com",
  802. "upshared.com",
  803. "usefile.com",
  804. "yourfiles.to",
  805. "zomgupload.com",
  806. "ultramegabit.com",
  807. "uploadto.us",
  808.  
  809. ];
  810. ///////////////////////////////////////////////////////////////////////////////////////
  811. var firstRun = GM_getValue("First_run", true);
  812.  
  813. var chromeBrowser = /chrom(e|ium)/.test(navigator.userAgent.toLowerCase());
  814. //////////////////////////////////////////////////////////////////////////////////////
  815. try
  816. {
  817. var thisVersion = GM_info.script.version; //not supported in Scriptish and others
  818. var last_known_version = GM_getValue("last_known_version", "");
  819. if (!last_known_version)
  820. {
  821. last_known_version = thisVersion;
  822. GM_setValue("last_known_version", last_known_version);
  823. }
  824. //var newVersion = !(thisVersion == last_known_version);
  825. var newVersion = !(a.replace(/^(\d+\.\d+\.\d+).*/,'$1') == b.replace(/^(\d+\.\d+\.\d+).*/,'$1')); //true only if one of the first three numbers differs
  826. GM_setValue("last_known_version", thisVersion);
  827. }
  828. catch (err)
  829. {
  830. var newVersion = false;
  831. }
  832.  
  833. var now = (new Date()).getTime();
  834. var last_custom_rules_nag = GM_getValue('last_custom_rules_nag', 0);
  835. if (!last_custom_rules_nag)
  836. {
  837. last_custom_rules_nag = now;
  838. GM_setValue('last_custom_rules_nag', ''+now);
  839. }
  840.  
  841.  
  842. allHostNames.sort();
  843. allContainerNames.sort();
  844. allObsoleteNames.sort();
  845.  
  846. var RAND_STRING = "8QyvpOSsRG3QWq";
  847. var DEBUG_MODE = false;
  848.  
  849. var TOOLTIP_MAXWIDTH = 600; //in pixels
  850. var TOOLTIP_THUMBWIDTH = 200;
  851. var containers_processed = false;
  852.  
  853. //settings for keyboard functions start
  854. var CHECK_ALL_LINKS_KEY = "A";
  855. var CONFIGURATION_KEY = "C";
  856. var copy_to_dead_key = "D";
  857. var toggle_autocheck_key = "W";
  858. var toggle_Enable_Anonymizer_key = "Z";
  859. var first_key_keycode = '17'; // 18=ALT 16=Shift 17=Ctrl 32=SPACE_BAR 9=TAB
  860. var first_key_keycodename = 'CTRL';
  861. var second_key_keycode = '18';
  862. var second_key_keycodename = 'ALT';
  863. var CHECK_ALL_LINKS_KEYCODE = CHECK_ALL_LINKS_KEY.charCodeAt(0);
  864. var CONFIGURATION_KEYCODE = CONFIGURATION_KEY.charCodeAt(0);
  865. var copy_to_dead_keycode = copy_to_dead_key.charCodeAt(0);
  866. var toggle_autocheck_keycode = toggle_autocheck_key.charCodeAt(0);
  867. var toggle_Enable_Anonymizer_keycode = toggle_Enable_Anonymizer_key.charCodeAt(0);
  868. //settings for keyboard functions end
  869.  
  870. //global settings start
  871. var Show_black_background_in_DL_links, Show_line_through_in_dead_links, Color_DL_links;
  872. var Live_links_color, Dead_links_color, Temp_unavailable_links_color, Premium_links_color, Ref_anonymize_service;
  873. var Do_not_linkify_DL_links, Keyboard_functions, Autocheck, Enable_Anonymizer;
  874. var Show_progress_stats, Display_tooltip_info, Icon_set;
  875. var Progress_box_pos_bottom, Progress_box_pos_right, Progress_box_opacity, Progress_box_background_color, Progress_box_item_color;
  876. var Progress_box_refresh_rate;
  877. var Obsolete_file_hosts;
  878. var Custom_rules, Custom_rules_text;
  879.  
  880. var messageBox = document.createElement('b'); // top-left message box
  881.  
  882. var cLinksTotal = 0;
  883. var cLinksDead = 0;
  884. var cLinksAlive = 0;
  885. var cLinksUnava = 0;
  886. var cLinksprem = 0;
  887. var cLinksProcessed = 0;
  888.  
  889. var intervalId; //for updateProgress()
  890.  
  891. //icon resources
  892. var PAW_ICON_GREEN = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAANCAYAAABy6+R8AAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb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9z7A9QA5voyr3dtAAAAAElFTkSuQmCC';
  899. var RSLC_ICON_YELLOW = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAANCAYAAABy6+R8AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH2AQJDBgxYO68rwAAAZNJREFUeNptkr9LW1EcxT/3GhOTKIG8QTpm8B8IIoJTFkFwsXVyUaxFJHYoFzJYUVFHn4sKtoidCoKtIigWOtQOhRKowaFzJwcF0VeJ+fFe7nUwP57R7/S9nO+595z7PQJfGUgAsWqPaUBOC/yrHQI+QjKTXc7GQq4EhP+uKzdUcbtnelvhDzXQQHL2bCkbxhOA5GmZ24LUC73zPWE4lQYSmexynaCmjh5Nq9FdANER1uL9j7nfeUhIIFaVJNXEPrguKvPzgfD2G0iBGt8DkPG4CGiIyapZAWBvDUEoBOfnqPQxaANxC3v7Ze1hoQFpmsTbGwMQicLNNeTz2HaKYuO/4DnTauwLeC6i8wW4ZdSbA9rw/GtB6kaPmjyESATKZVZWUxAMQqnI9MTXOqdGcvRFoSw8o+0Pg1DxsD+PcFcJYH8aphSNsr71CkAH/17danAEQAGSa98zv7x4W9AIpGkRzap18cKU3vUv9lmQq6N5SH7cSZ8Uuqx205SI1rPL/6/HN1MW5GiKC84z2at6dixf9u4B/PqUtJuX27QAAAAASUVORK5CYII=';
  900. var RSLC_ICON_PINK = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAANCAYAAABy6+R8AAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvg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/N7/0uB4tdYuRknJMzgzZYyV2L89pub4c3Xbwwb4q+de3/9pwVQ/jfcAGYWhrJ5x207ZdSFGB59Ockwb+L3vydX/7oRPYFPW05DnuHbb1aGD79+MRyZev/H9TlvTIB6riK7EhQGbNr2rJe714eq/fjLwPD8x22GO5/eM/CzijN8BdoD0nz3/FuG/an3Sv7/ZehFDyBYIHplzFHcYullyPjp13eGj79/MHwEagRpfvPpB8OuuJsHvz785QRU9w+XAQwCMkyby3aZ+/xj5YBr/vDzD8OpngefHq55rw9U8gBbFCFHo4pljvAV60x19o+/fgMN+cNw79h7hjNFD5IZ/jPMwxXHKOmAmYOxPWCNWgWzKBfDm7c/GY4m3Nr089Uff3yJBD0h8Ug68tzQbVCUvtD66PWrXR91gWIvSTEABOw5pNlKfjz91QNkHySUTAGg7t0uvj1ytQAAAABJRU5ErkJggg==';
  903. var NEW_ICON_RED = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAA6klEQVQ4jbWTwWrCQBRFz6Rxnay6iuAXlJIg+BHZZR/d6++4t/5MpRQRf8CCrurGrDP6uumESTol04J3dbmPd7hvYBTAG5QBzIFH/PQpsBzDWm2gDGEFKM9lIxGYBSEsustRnpPWNZkImQip1sRF0QUoBQv1DgdgZE9SrdmGIX0Z8NFKni8XHqIIgEzkR+dMhGtVsYvjJgt6L+1Rq4FN/hcA2md01a0PjhPM8n44bDLjXeBf36A+nZzeG+Cr+wEGSeL0LsDZDq5VBcDT8dhkxpuZpbN6hXIAL76Vbd1gqgC+IX/6zhqWE1h/AYSwSjYrmXJlAAAAAElFTkSuQmCC';
  904. var NEW_ICON_YELLOW = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQS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data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABUklEQVQ4jY3TsUuWURQG8F8WEvFNDREfIg5RURAOIeL0DhJBS0tDY9BQQ0Oj29kiIvoDhBpFQRTUD1GKi0sRtEs0SEQ0RBQIRcVXw3eF6+vrWwcunPvc53nuPffcS0uEmA0x38Y5cohwGjOYxBBe4VGI3j8NQlzHYhaW0cfNEAslWCfBw4yvYhkv8hjCgxD7yMdquw/jbJ4+xq2cz+AKdrJRv9EAv/EDx3Ft75QhtrHdcFpHy0mS/lSqcVzAFM7he6XaTNLXJoOmS+ziOc4XcB893A3xodUgm5zAHdzHSLH0DhdD/GwsoSjlV5Je5nK+YQUTOInXSXq7x6134RQuo4unGf6Me7iKMxgrNfUuXMJazr8U+DA6Of/UZrCF9xjFM3zELpZwOptulIKmLlQGNXdqS7u4EWK9BA9cYpJ2KtWcwaMazcInuB3iTZ3fGv/znf8CBMxX4hrPUbUAAAAASUVORK5CYII=';
  906.  
  907. //global settings end
  908. if (window.opera && !window.console)
  909. {
  910. window.console = {};
  911.  
  912. function fn()
  913. {
  914. opera.postError(arguments);
  915. };
  916. ['log', 'debug', 'info', 'warn', 'error', 'assert', 'dir', 'dirxml', 'group', 'groupEnd', 'time', 'timeEnd', 'count', 'trace', 'profile', 'profileEnd'].forEach(function (name)
  917. {
  918. window.console[name] = fn;
  919. });
  920. }
  921.  
  922. //displays colored text in message box
  923. function sendMessage(text, color)
  924. {
  925. var msgDiv = document.createElement('div');
  926. msgDiv.style.color = color;
  927. msgDiv.innerHTML = text;
  928. messageBox.appendChild(msgDiv);
  929. setTimeout(function(){messageBox.removeChild(msgDiv)}, 3000);
  930. }
  931.  
  932. function linkify(totalourls)
  933. { // code from http://userscripts.org/scripts/review/2254 Linkify ting
  934. var ikkeTilladteTags;
  935. var allLinksRegex = "(?:http:\/\/.+?\\?)?(?:https?:\/\/)?"
  936. + "[0-9A-Za-z]+(?:[\\.-][0-9A-Za-z]+)*\\.[A-Za-z]+/" //instead of totalourls
  937. + "[\\w\\–\\-\\.+$!*\\/()\\[\\]\',~%?:@#&=\\\\\\—;…×Ã\\_\\u0080-\\u03FF’‘" + (Allow_spaces_in_DL_links ? "\\u0020" : "") + "]*";
  938. allLinksRegex = new RegExp(allLinksRegex, "g");
  939. var regexy = "^(?:http:\/\/.+?\\?)?(?:https?:\/\/)?(?:www\\.)?(?:" + totalourls + ")";
  940.  
  941. if (Do_not_linkify_DL_links)
  942. ikkeTilladteTags = ['a', 'head', 'script', 'style', 'title', 'option', 'iframe', 'textarea', 'span']; //tags, hvor det der stAΞ’Β¥r inden i ikke skal vAΞ’Β¦re links
  943. else
  944. ikkeTilladteTags = ['a', 'head', 'script', 'style', 'title', 'option', 'iframe', 'textarea']; //tags, hvor det der stAΞ’Β¥r inden i ikke skal vAΞ’Β¦re links
  945.  
  946. var regex = new RegExp(regexy);
  947. var textNode, muligtLink;
  948.  
  949. var path = "//text()[not(parent::" + ikkeTilladteTags.join(" or parent::") + ") and contains(.,'/')]";
  950. var textNodes = document.evaluate(path, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  951.  
  952. var i = textNodes.snapshotLength;
  953. while (i--)
  954. {
  955. textNode = textNodes.snapshotItem(i);
  956.  
  957. muligtLink = textNode.nodeValue; //all links on page
  958.  
  959. var myArray = null;
  960. var span = null;
  961. var lastLastIndex = 0;
  962. allLinksRegex.lastIndex = 0;
  963. if (/^https?:\/\/~[\w\s\~]*\//.test(muligtLink))
  964. {
  965. if (textNode.parentNode.className == "adead_link") continue;
  966. var censoredLink = muligtLink;
  967. var span = document.createElement('span');
  968. span.className = "adead_link";
  969. $(span).attr('warlc_error', "Cause of error: <b>Censored link.</b>");
  970. $(span).html(censoredLink);
  971. span.addEventListener("mouseover", displayTooltipError, false);
  972. cLinksTotal++; cLinksProcessed++; cLinksDead++;
  973. textNode.parentNode.replaceChild(span, textNode);
  974. continue;
  975. alert(censoredLink);
  976. }
  977. while (myArray = allLinksRegex.exec(muligtLink)) //find all links
  978. {
  979. if (!regex.test(myArray[0])) //this link is not recognized
  980. {
  981.  
  982. continue;
  983. }
  984. if (!span)
  985. span = document.createElement('span');
  986.  
  987. var link = myArray[0];
  988. span.appendChild(document.createTextNode(muligtLink.substring(lastLastIndex, myArray.index))); //inds?t det der kommer for dette hit
  989.  
  990. var $a = $("<a>" + link + "</a>")
  991. if (!link.match(/https?:\/\//))
  992. {
  993. link = 'http://' + link;
  994. }
  995.  
  996. $a.attr("href", link.replace(/\[\/hide:\w+\]/,""))
  997. .addClass("processing_link")
  998. .appendTo(span);
  999. lastLastIndex = allLinksRegex.lastIndex;
  1000. }
  1001. if (span)
  1002. {
  1003. span.appendChild(document.createTextNode(muligtLink.substring(lastLastIndex))); //ins?t det der kommer efter sidste hit
  1004. textNode.parentNode.replaceChild(span, textNode);
  1005. }
  1006. }
  1007. }
  1008.  
  1009. function add_WARLC_style()
  1010. {
  1011. if (!(document.getElementsByTagName('WARLC')[0]))
  1012. {
  1013. var meta_not_to_add_more_style = document.createElement("WARLC");
  1014. meta_not_to_add_more_style.setAttribute('content', 'war_links_checker');
  1015. meta_not_to_add_more_style.setAttribute('name', 'description');
  1016. document.getElementsByTagName('head')[0].appendChild(meta_not_to_add_more_style);
  1017. alive_link_png = "";
  1018. adead_link_png = "";
  1019. unava_link_png = "";
  1020. prem_link_png = "";
  1021. switch(Icon_set)
  1022. {
  1023. //no icons
  1024. case 0: break;
  1025. // cat paws
  1026. case 1: alive_link_png = PAW_ICON_GREEN;
  1027. adead_link_png = PAW_ICON_RED;
  1028. unava_link_png = PAW_ICON_YELLOW;
  1029. prem_link_png = PAW_ICON_PINK;
  1030. break;
  1031. // classic RSLC look
  1032. case 2: alive_link_png = RSLC_ICON_GREEN;
  1033. adead_link_png = RSLC_ICON_RED;
  1034. unava_link_png = RSLC_ICON_YELLOW;
  1035. prem_link_png = RSLC_ICON_PINK;
  1036. break;
  1037. // New Icons
  1038. case 3: alive_link_png = NEW_ICON_GREEN;
  1039. adead_link_png = NEW_ICON_RED;
  1040. unava_link_png = NEW_ICON_YELLOW;
  1041. prem_link_png = NEW_ICON_PINK;
  1042. break;
  1043. // cat paws
  1044. default:alive_link_png = PAW_ICON_GREEN;
  1045. adead_link_png = PAW_ICON_RED;
  1046. unava_link_png = PAW_ICON_YELLOW;
  1047. prem_link_png = PAW_ICON_PINK;
  1048. break;
  1049. }
  1050. processing_link_gif = 'data:image/gif;base64,' + // or temporary anavailable
  1051. 'R0lGODlhCgAKAJEDAMzMzP9mZv8AAP///yH/C05FVFNDQVBFMi4wAwEAAAAh+QQFAAADACwAAAAACgAKAAACF5wncgaAGgJzJ647cWua4sOBFEd62VEAACH5BAUAAAMALAEAAAAIAAMAAAIKnBM2IoMDAFMQFAAh+QQFAAADACwAAAAABgAGAAACDJwHMBGofKIRItJYAAAh+QQFAAADACwAAAEAAwAIAAACChxgOBPBvpYQYxYAIfkEBQAAAwAsAAAEAAYABgAAAgoEhmPJHOGgEGwWACH5BAUAAAMALAEABwAIAAMAAAIKBIYjYhOhRHqpAAAh+QQFAAADACwEAAQABgAGAAACDJwncqi7EQYAA0p6CgAh+QQJAAADACwHAAEAAwAIAAACCpRmoxoxvQAYchQAOw%3D%3D';
  1052.  
  1053. var dead_color_css, live_color_css, unava_color_css, prem_color_css, black_background_css;
  1054.  
  1055. if (Color_DL_links)
  1056. {
  1057. dead_color_css = 'color:' + Dead_links_color + ' !important;';
  1058. live_color_css = 'color:' + Live_links_color + ' !important;';
  1059. unava_color_css = 'color:' + Temp_unavailable_links_color + ' !important;';
  1060. container_color_css = 'color:' + Container_links_color + ' !important;';
  1061. prem_color_css = 'color:' + Premium_links_color + ' !important;';
  1062. }
  1063. else
  1064. {
  1065. dead_color_css = live_color_css = unava_color_css = container_color_css = prem_color_css = '';
  1066. }
  1067.  
  1068. if (Show_black_background_in_DL_links)
  1069. {
  1070. black_background_css = 'background-color: black !important;';
  1071. }
  1072. else
  1073. {
  1074. black_background_css = '';
  1075. }
  1076.  
  1077. if (Show_line_through_in_dead_links)
  1078. {
  1079. line_through_css = 'text-decoration: line-through !important;';
  1080. }
  1081. else
  1082. {
  1083. line_through_css = '';
  1084. }
  1085.  
  1086. GM_addStyle(".alive_link {background:transparent url(" + alive_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;" + live_color_css + black_background_css + "}");
  1087. 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 + "}");
  1088. GM_addStyle(".unava_link {background:transparent url(" + unava_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;" + unava_color_css + black_background_css + "}");
  1089. GM_addStyle(".processing_link {background:transparent url(" + processing_link_gif + ") no-repeat scroll 100% 50%;padding-right:15px;" + container_color_css + black_background_css + "}");
  1090. GM_addStyle(".container_link {background:transparent url(" + processing_link_gif + ") no-repeat scroll 100% 50%;padding-right:15px;" + container_color_css + black_background_css + "}");
  1091. GM_addStyle(".container_list {font-size:90%; list-style-type:square; padding: 0px 5% 0px; margin: 0px}");
  1092. GM_addStyle(".prem_link {background:transparent url(" + prem_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;" + prem_color_css + black_background_css + "}");
  1093. }
  1094. }
  1095.  
  1096. var warlcTooltip = null;
  1097. var mouseoverLink = null; //link href with mouse cursor over it
  1098.  
  1099. var lastX = 0;
  1100. var lastY = 0;
  1101.  
  1102. $(document).ready(initTooltip);
  1103. //inits tooltip
  1104. function initTooltip()
  1105. { warlcTooltip = document.createElement("div");
  1106. 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;");
  1107. warlcTooltip.style.visibility = "hidden";
  1108. document.body.appendChild(warlcTooltip);
  1109. }
  1110.  
  1111. //"mousemove" event handler for all links
  1112. function moveTooltip(event)
  1113. {
  1114. if ((Math.abs(lastX - event.clientX) + Math.abs(lastY - event.clientY)) < 6)
  1115. { //no need to reflow if the cursor moved just a little
  1116. return;
  1117. }
  1118. else
  1119. {
  1120. lastX = event.clientX;
  1121. lastY = event.clientY;
  1122. }
  1123.  
  1124. posX = event.clientX + window.pageXOffset + 10;
  1125. posY = event.clientY + window.pageYOffset;
  1126. var ttHeight = warlcTooltip.offsetHeight;
  1127. var ttFreeSpace = window.innerHeight - event.clientY;
  1128. if (ttHeight > ttFreeSpace)
  1129. { //prevents tooltip from getting out of the window
  1130. posY -= (ttHeight - (ttFreeSpace)) + 10;
  1131. }
  1132. else
  1133. {
  1134. posY += 7;
  1135. }
  1136. warlcTooltip.style.top = posY + "px";
  1137. warlcTooltip.style.left = posX + "px";
  1138. }
  1139.  
  1140. //"mouseout" event handler for all links
  1141. function hideTooltip(){
  1142. warlcTooltip.style.visibility = "hidden";
  1143. mouseoverLink = null;
  1144. }
  1145.  
  1146.  
  1147. //"mouseover" event handler for dead links
  1148. //displays tooltip error message on dead links
  1149. function displayTooltipError()
  1150. {
  1151. mouseoverLink = this.href;
  1152. this.addEventListener("mouseout", hideTooltip);
  1153. this.addEventListener("mousemove", function(event) { moveTooltip(event); });
  1154. warlcTooltip.innerHTML = '<b>LOADING...</b>';
  1155. warlcTooltip.style.minWidth = 0;
  1156. warlcTooltip.style.visibility = "visible";
  1157. if (this.warlc_error) //an error message is already known and stored in warlc_error attribute
  1158. {
  1159. warlcTooltip.innerHTML = this.warlc_error;
  1160. }
  1161. else
  1162. {
  1163. loadErrorInfo(this);
  1164. }
  1165. function loadErrorInfo(link)
  1166. {
  1167. var href = link.href;
  1168. href = href.replace(/quickshare\.cz\/.+/, "quickshare.cz/chyba");
  1169. GM_xmlhttpRequest({
  1170. method: 'GET',
  1171. url: href.replace(Ref_anonymize_service, ""),
  1172. headers: {
  1173. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1174. 'Accept': 'text/xml',
  1175. 'Referer': ""
  1176. },
  1177. onload: function(result) {
  1178. var res = result.responseText;
  1179. //TODO: errorRegexs -
  1180. var errorRegexs = [ //generic error messages follow
  1181. /(empty directory)/i,
  1182. /(soubor nebyl nalezen)/i,
  1183. /((?:file|page|link|folder)(?:is|not|does|has been|was| ){1,}(?:found|available|blocked|exists?|deleted|removed))/i,
  1184. //server specific error messages follow
  1185. /msg error" style="cursor: default">(.+?)<\/div>/, //sendspace
  1186. /color:red;font\-weight:bold;border\-style:dashed;font-size:12px;border\-width:2px;><tr><td align=center>(.+?)<\/td>/, //fastshare
  1187. /(Takový soubor neexistuje. Je možné, že byl již smazán.)/, //quickshare
  1188. /file_info file_info_deleted">\s*<h1>(.+?)<\/h1>/, //filepost
  1189. /<br \/>\s*<p style="color:#000">(.+?)<\/p>\s*<\/center>/, //letitbit
  1190. /(?:error_div">|<\/h1><p>)<strong>(.+?)<\/strong>/, //share-rapid,quickshare
  1191. /class="red">(.+?)<(?:span|br)>/, //czshare, megashares
  1192. /class="wp640">\s*<h1 class="h1">(.+?)<\/h1>/, //uloz.to
  1193. /not-found">\s*<p>(.+?)<\/p>/, //bayfiles
  1194. /(Your file could not be found. Please check the download link.)/, //stahnu.to
  1195. /error_msg">\s*(<h3>.+?<\/h3><ul>(.+?)<\/ul>)/, //edisk
  1196. /id="obsah">\s*<h2>(.+?)<\/h2>/, //euroshare
  1197. /error">\s*(?:<[bp]>)?\s*(.+?)<\/[bp]>/, //filesmonster, shragle, gigapeta
  1198. ///center aC">\s*<h1>(.+?)<br \/>/, //uploaded.to
  1199. /icon_err">\s*<h1>(.+?)<\/h1>/, //filejungle
  1200. /Code: ER_NFF_\d+<\/h2>\s*(.+?)\s*<\/div>/, //netload
  1201. /(File has been removed due to Copyright Claim)/, //filerio
  1202. ];
  1203. var errorIdx = errorRegexs.length;
  1204. var error = "Cause of error: <b>unknown</b>";
  1205. var errorCandidate = "";
  1206. while(errorIdx--)
  1207. {
  1208. var errorCandidate = res.match(errorRegexs[errorIdx]);
  1209. if (errorCandidate != null)
  1210. {
  1211. error = "Cause of error: <b>" + errorCandidate[1].replace(/&nbsp;/g," ") + "</b>";
  1212. break;
  1213. }
  1214. }
  1215. //link attributes
  1216. link.warlc_error = error;
  1217. if (mouseoverLink == link.href) //mouse cursor is still over the link
  1218. {
  1219. warlcTooltip.innerHTML = error;
  1220. }
  1221. }
  1222. });
  1223. }
  1224. }
  1225.  
  1226. //"mouseover" event handler for alive links
  1227. //displays tooltip info (file size, file name,...) on alive links
  1228. function displayTooltipInfo()
  1229. {
  1230. mouseoverLink = this.href;
  1231. //exclude direct download filehostings
  1232. 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)/))
  1233. {
  1234. return;
  1235. }
  1236. this.addEventListener("mouseout", hideTooltip);
  1237. this.addEventListener("mousemove", function(event) { moveTooltip(event); });
  1238. warlcTooltip.innerHTML = '<b>LOADING...</b>';
  1239. warlcTooltip.style.minWidth = 0;
  1240. warlcTooltip.style.visibility = "visible";
  1241. if (this.warlc_tooltipcache) //file size is already known and stored in warlc_filename and warlc_filesize attributes
  1242. {
  1243. warlcTooltip.innerHTML = this.warlc_tooltipcache;
  1244. }
  1245. else
  1246. {
  1247. loadInfo(this);
  1248. }
  1249. function loadInfo(link)
  1250. {
  1251. var href = link.href;
  1252. GM_xmlhttpRequest({
  1253. method: 'GET',
  1254. url: href.replace(Ref_anonymize_service, ""),
  1255. headers: {
  1256. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1257. 'Accept': 'text/xml',
  1258. 'Referer': ""
  1259. },
  1260. onload: function(result) {
  1261. var res = result.responseText;
  1262. var nameRegexs = [ /Filename: <b class="f_arial f_14px">(.+?)<\/b>/, //oron
  1263. /(?:finfo|file[-_]?name)">\s*(.+?)<\/?(?:h1|a|div|span style|td)/, //hellshare, netload, badongo, 4fastfile
  1264. /fl" title="(.+?)">/, //edisk
  1265. /<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
  1266. /<h3>Stahujete soubor: <\/h3>\s*<div class="textbox">(.+?)<\/div>/, //webshare
  1267. /<h3><b><span style=color:black;>(.+?)<\/b><\/h3><br>/, //fastshare
  1268. /title="download (.+?)">/, //sendspace
  1269. /Stáhnout soubor: (.+?)<\/h1>/, //quickshare
  1270. /fz24">Download:\s*<strong>(.+?)<\/strong>/, //crocko
  1271. /'file\-icon\d+ \w+'>(?:<\/span><span>)?(.+?)<\/span>/, //hitfile, turbobit
  1272. /d0FileName = "(.+?)";/, //letitbit
  1273. /file(?:_name|-info)" title="">\w+: <span>(.+?)<\/span>/, //vip-file, shareflare
  1274. /recent-comments"><h2>(.+) &nbsp;/, //xdisk
  1275. /fname" value="(.+?)">/, //syfiles, grupload,
  1276. /download\-header">\s*<h2>File:<\/h2>\s*<p title="(.+?)">/, //bayfiles
  1277. /description">\s*<p><b>Soubor: (.+?)<\/b>/, //bezvadata
  1278. /Complete name : (.+?)<br \/>/, //bezvadata
  1279. /itemprop="name">(.+?)<\/span>/, //bezvadata
  1280. ];
  1281. var nameIdx = nameRegexs.length;
  1282. // [sizeRegexs]
  1283. // / \ \?
  1284. // prefix (size) postfix
  1285. // / \
  1286. // val quant
  1287. var quantRegex = '(?:M|G|K)?i?(?:B)(?:[y|i]te?s?)?';
  1288. var valRegex = '\\d+(?:[\\., ]\\d+){0,2}'; // 111([., ]222)?([., ]333)?
  1289. var uniSizeRegex = valRegex + '(?:\\s*|&nbsp;)' + quantRegex;
  1290. var preSizeRegex = '(?::|\\(|>|>, | - )';
  1291. var postSizeRegex = '(?:\\))?';
  1292. var sizeRegexs = [ preSizeRegex + "\\s*(" + uniSizeRegex + ")\\s*" + postSizeRegex,
  1293. 'FileSize_master">(.+?)<\/strong>', //hellshare
  1294. ];
  1295. var sizeIdx = sizeRegexs.length;
  1296. //
  1297. //
  1298. var tooltip = "File Name: <b>";
  1299. var fileName = "unknown";
  1300. var nameCandidate = "";
  1301. while(nameIdx--)
  1302. {
  1303. var nameCandidate = res.match(nameRegexs[nameIdx]);
  1304. if (nameCandidate != null)
  1305. {
  1306. fileName = nameCandidate[1].replace(/&nbsp;/g," ");
  1307. break;
  1308. }
  1309. }
  1310. tooltip += fileName + "</b><br>File Size: <b>";
  1311. var fileSize = "unknown";
  1312. var sizeCandidate = "";
  1313. while(sizeIdx--)
  1314. {
  1315. sizeCandidate = res.match(new RegExp(sizeRegexs[sizeIdx], "i"));
  1316. if (sizeCandidate != null)
  1317. {
  1318. fileSize = sizeCandidate[1].replace(/&nbsp;/g," ");
  1319. if (/^\d+$/.test(fileSize) && fileSize >= 1024) //assume bytes
  1320. {
  1321. if(fileSize > (1<<30)) fileSize = Math.round(10 * fileSize / (1<<30)) / 10 + ' GB';
  1322. else if(fileSize > (1<<20)) fileSize = Math.round(fileSize / (1<<20)) + ' MB';
  1323. else fileSize = Math.round(fileSize / 1024) + ' KB';
  1324. }
  1325. break;
  1326. }
  1327. }
  1328. tooltip += fileSize + "</b>";
  1329. // PROTOTYPE
  1330. // video thumbnails
  1331. if (href.match('hellshare'))
  1332. {
  1333. var thumbs;
  1334. thumbs = res.match(/http:\/\/static\d+\.helldata\.com\/thumbs(?:\/\d+){1,2}\/\d{1,2}"/g);
  1335. if (thumbs)
  1336. {
  1337. tooltip += '<br>';
  1338. var j = Math.min(thumbs.length, 9);
  1339. for (var i = 0; i < j; i++)
  1340. {
  1341. tooltip += '<img src="' + thumbs[i].replace('"',"") + '" width="' + TOOLTIP_THUMBWIDTH + 'px">';
  1342. }
  1343. warlcTooltip.style.minWidth = TOOLTIP_MAXWIDTH;
  1344. }
  1345. }
  1346. if (href.match('czshare'))
  1347. {
  1348. var thumbs;
  1349. thumbs = res.match(/src="http:\/\/www(\d+)\.czshare\.com\/images_velke\/\d+\.(\d+)\.jpeg/);
  1350. if (thumbs)
  1351. {
  1352. var thumbsServer = thumbs[1];
  1353. var thumbsId = thumbs[2];
  1354. tooltip += '<br>';
  1355. for (var i = 1; i < 9; i++)
  1356. {
  1357. tooltip += '<img src="http://www' + thumbsServer + '.czshare.com/images_velke/' + i + '.' + thumbsId + '.jpeg" width="' + TOOLTIP_THUMBWIDTH + 'px">';
  1358. }
  1359. warlcTooltip.style.minWidth = TOOLTIP_MAXWIDTH;
  1360. }
  1361. }
  1362. if (href.match('bezvadata'))
  1363. {
  1364. var thumbs;
  1365. thumbs = res.match(/http:\/\/nahledy\.bezvadata\.cz\/nahledy\/\d+\/\d+\/\d+_\d+_\d+x\d+_\w.jpg/g);
  1366. if (thumbs)
  1367. {
  1368. tooltip += '<br>';
  1369. var j = Math.min(thumbs.length, 9);
  1370. for (var i = 0; i < j; i++)
  1371. {
  1372. tooltip += '<img src="' + thumbs[i] + '" width="' + TOOLTIP_THUMBWIDTH + 'px">';
  1373. }
  1374. warlcTooltip.style.minWidth = TOOLTIP_MAXWIDTH;
  1375. }
  1376. }
  1377. link.warlc_tooltipcache = tooltip;
  1378. if (mouseoverLink == link.href) //mouse cursor is still over the link
  1379. {
  1380. warlcTooltip.innerHTML = tooltip;
  1381. }
  1382. }
  1383. });
  1384. }
  1385. }
  1386.  
  1387. function setVariables()
  1388. {
  1389. if (firstRun)
  1390. {
  1391. GM_log('First run, applying default settings...');
  1392. GM_setValue("Icon_set",1);
  1393. GM_setValue("Display_tooltip_info",true);
  1394. GM_setValue("Show_black_background_in_DL_links",false);
  1395. GM_setValue("Show_line_through_in_dead_links",false);
  1396. GM_setValue("Display_full_links_in_link_containers",false);
  1397. GM_setValue("Allow_spaces_in_DL_links",false);
  1398. GM_setValue("Autocheck",true);
  1399. GM_setValue("Enable_Anonymizer",false);
  1400. GM_setValue("Do_not_linkify_DL_links",false);
  1401. GM_setValue("Show_progress_stats",true);
  1402. GM_setValue("Keyboard_functions",true);
  1403. GM_setValue("Obsolete_file_hosts",false);
  1404. GM_setValue("Color_DL_links",true);
  1405. GM_setValue("Live_links_color","Green");
  1406. GM_setValue("Dead_links_color","#FF3300");
  1407. GM_setValue("Temp_unavailable_links_color","#F7EF09");
  1408. GM_setValue("Container_links_color","DarkKhaki");
  1409. GM_setValue("Premium_links_color","DeepPink");
  1410. GM_setValue("Ref_anonymize_service","http://hiderefer.com/?");
  1411. GM_setValue("Custom_rules",false);
  1412. GM_setValue("Custom_rules_text","");
  1413. GM_setValue("First_run", false);
  1414. }
  1415. //hidden settings
  1416. GM_setValue("Progress_box_pos_bottom", Progress_box_pos_bottom = GM_getValue("Progress_box_pos_bottom", 20));
  1417. GM_setValue("Progress_box_pos_right", Progress_box_pos_right = GM_getValue("Progress_box_pos_right", 10));
  1418. GM_setValue("Progress_box_opacity", Progress_box_opacity = GM_getValue("Progress_box_opacity", 85));
  1419. GM_setValue("Progress_box_background_color", Progress_box_background_color = GM_getValue("Progress_box_background_color", 'DimGray'));
  1420. GM_setValue("Progress_box_item_color", Progress_box_item_color = GM_getValue("Progress_box_item_color", 'DimGray'));
  1421. GM_setValue("Progress_box_refresh_rate", Progress_box_refresh_rate = GM_getValue("Progress_box_refresh_rate", 2000));
  1422. GM_setValue("Debug_mode", DEBUG_MODE = GM_getValue("Debug_mode", false));
  1423. //hidden settings end
  1424.  
  1425. Icon_set = GM_getValue("Icon_set", 1); //0 - no icons, 1 - cat paws, 2 - old RSLC style, 3 - New Icons,
  1426. Display_tooltip_info = GM_getValue("Display_tooltip_info", true);
  1427. Show_black_background_in_DL_links = GM_getValue("Show_black_background_in_DL_links", false);
  1428. Show_line_through_in_dead_links = GM_getValue("Show_line_through_in_dead_links", false);
  1429. Display_full_links_in_link_containers = GM_getValue("Display_full_links_in_link_containers", false);
  1430. Allow_spaces_in_DL_links = GM_getValue("Allow_spaces_in_DL_links", false);
  1431. Autocheck = GM_getValue("Autocheck", true);
  1432. Enable_Anonymizer = GM_getValue("Enable_Anonymizer", false);
  1433. Do_not_linkify_DL_links = GM_getValue("Do_not_linkify_DL_links", false);
  1434. Show_progress_stats = GM_getValue("Show_progress_stats", true);
  1435. Keyboard_functions = GM_getValue("Keyboard_functions", true);
  1436. Obsolete_file_hosts = GM_getValue("Obsolete_file_hosts", false);
  1437. Color_DL_links = GM_getValue("Color_DL_links", true);
  1438. Live_links_color = GM_getValue("Live_links_color", "Green");
  1439. Dead_links_color = GM_getValue("Dead_links_color", "#FF3300");
  1440. Temp_unavailable_links_color = GM_getValue("Temp_unavailable_links_color", "#F7EF09");
  1441. Container_links_color = GM_getValue("Container_links_color", "DarkKhaki");
  1442. Premium_links_color = GM_getValue("Premium_links_color", "DeepPink");
  1443. Ref_anonymize_service = GM_getValue("Ref_anonymize_service", "http://hiderefer.com/?");
  1444. Custom_rules = GM_getValue("Custom_rules", false);
  1445. Custom_rules_text = GM_getValue("Custom_rules_text", false);
  1446. }
  1447.  
  1448.  
  1449. // Delinkifies the links
  1450. // params:
  1451. // links -> list of links or link components (note they should be sufficiently unique to identify the link on page,
  1452. // e.g. 'uloz.to/xs68skxl8')
  1453. function delinkifySnapshot(snapshot)
  1454. {
  1455. var n = snapshot.snapshotLength;
  1456.  
  1457. while (n--)
  1458. {
  1459. thisLink = snapshot.snapshotItem(n);
  1460.  
  1461. var spanElm = document.createElement("span");
  1462. spanElm.className = thisLink.className;
  1463. spanElm.innerHTML = thisLink.innerHTML;
  1464.  
  1465. if (Display_tooltip_info)
  1466. {
  1467. spanElm.href = thisLink.href;
  1468. switch (thisLink.className){
  1469. case "alive_link": spanElm.addEventListener("mouseover", displayTooltipInfo, false); break
  1470. case "adead_link": spanElm.addEventListener("mouseover", displayTooltipError, false); break;
  1471. case "unava_link": //reserved
  1472. default:
  1473. }
  1474. }
  1475. thisLink.parentNode.replaceChild(spanElm, thisLink);
  1476. }
  1477. }
  1478.  
  1479. function processContainers()
  1480. {
  1481. var redirectorTypes = { "HTTP_302": 0,
  1482. "INNER_LINK": 1,
  1483. "THELOO_KATT_IT": 2,
  1484. "CING_BE": 3,
  1485. "ADF_LY": 4};
  1486. var cMultiloadTotal = 0;
  1487. var cMultiloadProcessed = 0;
  1488.  
  1489. var cMirrorcreatorComTotal = 0;
  1490. var cMirrorcreatorComProcessed = 0;
  1491.  
  1492. var hostRestrictionRegex = "";
  1493. var multiloadComRestriction = "";
  1494. var multiloadComRestrictionRegex;
  1495.  
  1496. //
  1497. //HANDLING REDIRECTORS START
  1498. //
  1499.  
  1500. var redirectors = new Array();
  1501. initRedirectors();
  1502.  
  1503. var redirectorsCount = redirectors.length;
  1504.  
  1505. if (redirectorsCount > 0)
  1506. {
  1507. var allRedirectorsRegex = "";
  1508.  
  1509. //linkify redirector links
  1510. for(var redirIdx = 0; redirIdx < redirectorsCount; redirIdx++)
  1511. {
  1512. allRedirectorsRegex += redirectors[redirIdx].linkRegex + "|";
  1513. }
  1514. allRedirectorsRegex = allRedirectorsRegex.replace(/\|$/, "");
  1515. linkify(allRedirectorsRegex);
  1516. //
  1517. //process redirector links
  1518. for(var redirIdx = 0; redirIdx < redirectorsCount; redirIdx++)
  1519. {
  1520. var redirectorsSnapshot = document.evaluate(redirectors[redirIdx].xpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  1521. redirectors[redirIdx].cTotal = redirectorsSnapshot.snapshotLength;
  1522.  
  1523. cLinksTotal += redirectors[redirIdx].cTotal;
  1524. var linkIdx = redirectors[redirIdx].cTotal;
  1525.  
  1526. while(linkIdx--)
  1527. {
  1528. switch(redirectors[redirIdx].type)
  1529. {
  1530. case redirectorTypes.HTTP_302: processRedirectorLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1531. case redirectorTypes.INNER_LINK: processRedirectorLinkEx(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1532. case redirectorTypes.THELOO_KATT_IT: processThelooKattItLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1533. case redirectorTypes.CING_BE: processCingBeLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1534. case redirectorTypes.ADF_LY: processAdfLyLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1535. default:
  1536. }
  1537. }
  1538. }
  1539. //
  1540. }
  1541.  
  1542. //HTTP_302
  1543. function processRedirectorLink(link, redirectorId)
  1544. {
  1545. link.className = 'container_link';
  1546.  
  1547. GM_xmlhttpRequest({
  1548. method: 'HEAD',
  1549. url: link.href,
  1550. headers: {
  1551. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1552. 'Accept': 'text/xml',
  1553. 'Referer': ""
  1554. },
  1555. onload: function(result) {
  1556. if (result.finalUrl.replace("https", "http") == link.href) // service hasn't redirected anywhere
  1557. {
  1558. processRedirectorLink(link, redirectorId);
  1559. }
  1560. else
  1561. {
  1562. redirectors[redirectorId].cProcessed++;
  1563. link.href = result.finalUrl;
  1564. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  1565. checkLinks('container_link');
  1566. }
  1567. },
  1568. onerror: function(result) { //probably caused by unresponsive filehosting
  1569. redirectors[redirectorId].cProcessed++;
  1570. link.className = 'unava_link';
  1571. cLinksProcessed++;
  1572. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  1573. checkLinks('container_link');
  1574. }
  1575. });
  1576. }
  1577. //INNER_LINK
  1578. function processRedirectorLinkEx(link, redirectorId)
  1579. {
  1580. link.className = 'container_link';
  1581. GM_xmlhttpRequest({
  1582. method: 'GET',
  1583. url: link.href,
  1584. headers: {
  1585. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1586. 'Accept': 'text/xml',
  1587. 'Referer': ""
  1588. },
  1589. onload: function(result) {
  1590. link.href = result.responseText.match(redirectors[redirectorId].innerLinkRegex)[1];
  1591. redirectors[redirectorId].cProcessed++;
  1592. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  1593. checkLinks('container_link');
  1594. }
  1595. });
  1596. }
  1597. //theloo.katt.it (wrapped safelinking.net)
  1598. function processThelooKattItLink(link, redirectorId)
  1599. {
  1600. link.className = 'container_link';
  1601. GM_xmlhttpRequest({
  1602. method: 'GET',
  1603. url: link.href,
  1604. headers: {
  1605. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1606. 'Accept': 'text/xml',
  1607. 'Referer': ""
  1608. },
  1609. onload: function(result) {
  1610. link.href = result.responseText.match(redirectors[redirectorId].innerLinkRegex)[1];
  1611. redirectors[redirectorId].cProcessed++;
  1612. //the inner links are safelinking.net links, so lets proceed with it
  1613. if (GM_getValue("Check_safelinking_dot_net_links", false))
  1614. {
  1615. processRedirectorLink(link, 0);
  1616. }
  1617. }
  1618. });
  1619. }
  1620. //adf.ly (adf.ly/go innerLink, locking mechanism)
  1621. function processAdfLyLink(link, redirectorId)
  1622. {
  1623. link.className = 'container_link';
  1624. GM_xmlhttpRequest({
  1625. method: 'GET',
  1626. url: link.href,
  1627. headers: {
  1628. 'User-agent': 'Mozilla/4.0',
  1629. 'Accept': 'text/xml',
  1630. 'Referer': ""
  1631. },
  1632. onload: function(result) {
  1633. if (result.finalUrl.match('/locked/'))
  1634. {
  1635. var delay = result.responseText.match(/countdown">(\d+)</)[1];
  1636. // GM_log(result.finalUrl + 'is locked. Repeating the request in ' + delay + 's.');
  1637. // setTimeout(function(){processAdfLyLink(link, redirectorId);}, delay * 1000);
  1638. }
  1639. else
  1640. {
  1641. // GM_log('Processing... ' + link.href);
  1642. // GM_log('Found...' + result.responseText.match(/\/go\/(\w+\/\w+)/)[1]);
  1643. var directLink = 'http://adf.ly' + result.responseText.match(/(\/go\/\w+\/\w+)/)[1];
  1644. var logToken = result.responseText.match(/flashy_(\w+)/)[1];
  1645. var users = result.responseText.match(/user=\d+&user2=\d+/);
  1646. //confirm advert
  1647. GM_xmlhttpRequest(
  1648. {
  1649. method: 'POST',
  1650. url: 'http://adf.ly/l.php',
  1651. headers: {
  1652. 'User-agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20100101 Firefox/13.0',
  1653. 'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
  1654. 'Referer': link.href
  1655. },
  1656. data: users + '&lt=' + logToken,
  1657. onload: function(result) {
  1658. //retrieve final url from .../go/... link
  1659. GM_xmlhttpRequest({
  1660. method: 'GET',
  1661. url: directLink,
  1662. headers: {
  1663. 'User-agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20100101 Firefox/13.0',
  1664. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  1665. 'Referer': link.href
  1666. },
  1667. onload: function(result) {
  1668. link.href = result.finalUrl;
  1669. redirectors[redirectorId].cProcessed++;
  1670. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  1671. checkLinks('container_link');
  1672. }
  1673. });
  1674. }
  1675. });
  1676. }
  1677. }
  1678. });
  1679. function proceedOK()
  1680. {
  1681. }
  1682. }
  1683. //MULTILOAD.CZ START
  1684. if (GM_getValue("Check_multiload_dot_cz_links", false))
  1685. {
  1686. var mlRegex = 'multiload\\.cz\/stahnout\/\\d+\/';
  1687. var mlXpath = "//a[contains(@href,'http://www.multiload.cz/stahnout')]";
  1688.  
  1689. hostRestrictionRegex = 'Upload se nezdařil|limit exceeded|probíhá reupload|';
  1690.  
  1691. if (GM_getValue("Check_hellshare_dot_com_links", false))
  1692. hostRestrictionRegex += 'hellshare|';
  1693. if (GM_getValue("Check_share_dash_rapid_dot_com_links", false))
  1694. hostRestrictionRegex += 'share-rapid\\.com|';
  1695. if (GM_getValue("Check_quickshare_dot_cz_links", false))
  1696. hostRestrictionRegex += 'quickshare\\.cz|';
  1697. if (GM_getValue("Check_czshare_dot_com_links", false))
  1698. hostRestrictionRegex += 'czshare\\.com|';
  1699. if (GM_getValue("Check_uloz_dot_to_links", false))
  1700. hostRestrictionRegex += 'uloz\\.to|';
  1701. if (GM_getValue("Check_hellspy_dot_com_links", false))
  1702. hostRestrictionRegex += 'hellspy|';
  1703. if (GM_getValue("Check_multishare_dot_cz_links", false))
  1704. hostRestrictionRegex += 'multishare\\.cz|';
  1705.  
  1706. hostRestrictionRegex = hostRestrictionRegex.replace(/\|$/, "");
  1707.  
  1708. linkify(mlRegex);
  1709.  
  1710. var mlSnapshot = document.evaluate(mlXpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  1711. var mlCount = mlSnapshot.snapshotLength;
  1712.  
  1713. if (mlCount > 0)
  1714. {
  1715. cMultiloadTotal += mlCount;
  1716.  
  1717. mlIdx = mlCount - 1;
  1718. do
  1719. {
  1720. processMultiloadLink(mlSnapshot.snapshotItem(mlIdx));
  1721. }
  1722. while(mlIdx--)
  1723. }
  1724. }
  1725. //MULTILOAD.CZ END
  1726.  
  1727.  
  1728.  
  1729. function processMultiloadLink(mlLink)
  1730. {
  1731. GM_xmlhttpRequest({
  1732. method: 'GET',
  1733. url: mlLink.href,
  1734. headers: {
  1735. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1736. 'Accept': 'text/xml',
  1737. 'Referer': ""
  1738. },
  1739. onload: function(result) {
  1740. var res = result.responseText;
  1741.  
  1742. var innerBlockRegex = /<p class="manager-linky">(?:.|\s)+?<\/p>/g;
  1743. 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;
  1744. var innerLinkRegex = /((?:Upload se nezdařil.+|https?:\/\/(?:.|\s)+|Právě probíhá reupload, buďte trpěliví\.\.\.))</;
  1745. var mlRestrictionRegex = new RegExp(hostRestrictionRegex,"g"); //what links should be displayed
  1746.  
  1747. var blocks; // blocks of links
  1748. var blockIdx;
  1749.  
  1750. mlLink.className = '';
  1751.  
  1752. if (result.status == 503) //service temporarily unavailable, repeat request in one second
  1753. {
  1754. setTimeout(function(){ processMultiloadLink(mlLink); }, 1000);
  1755. return;
  1756. }
  1757.  
  1758. blocks = res.match(innerBlockRegex);
  1759.  
  1760. if (blocks == null) //no links found, cancel further processing
  1761. {
  1762. mlLink.parentNode.appendChild(document.createTextNode(' | Požadovaný soubor neexistuje.'));
  1763. cMultiloadProcessed++;
  1764. if (cMultiloadTotal <= cMultiloadProcessed)
  1765. {
  1766. startBulkCheck('container_link');
  1767. start('container_link');
  1768. }
  1769. return;
  1770. }
  1771.  
  1772. blockIdx = blocks.length;
  1773.  
  1774. if (Display_full_links_in_link_containers)
  1775. {
  1776. var ulElm = document.createElement('ul');
  1777. ulElm.className = 'container_list'; //CSS smaller font, padding, margin, square style
  1778.  
  1779. while(blockIdx--)
  1780. {
  1781. if (blocks[blockIdx].match(mlRestrictionRegex) == null)
  1782. {
  1783. continue;
  1784. }
  1785.  
  1786. var innerLinks = blocks[blockIdx].match(innerLinksRegex);
  1787.  
  1788. var linkIdx = innerLinks.length;
  1789. while (linkIdx--)
  1790. {
  1791. var innerLink = innerLinks[linkIdx].match(innerLinkRegex)[1];
  1792.  
  1793. var liElm = document.createElement('li');
  1794.  
  1795. if (innerLink.match(/Upload se nezdařil|limit exceeded|probíhá reupload/))
  1796. {
  1797. liElm.appendChild(document.createTextNode(innerLink));
  1798. }
  1799. else
  1800. {
  1801. var aElm = document.createElement('a');
  1802. aElm.innerHTML = innerLink;
  1803. aElm.href = innerLink;
  1804. aElm.className = 'container_link';
  1805.  
  1806. liElm.appendChild(aElm);
  1807. }
  1808.  
  1809. ulElm.appendChild(liElm);
  1810. cLinksTotal++;
  1811. }
  1812. }
  1813.  
  1814. mlLink.parentNode.appendChild(ulElm);
  1815. }
  1816. else //compact view
  1817. {
  1818. mlLink.parentNode.appendChild(document.createTextNode("|"));
  1819.  
  1820. while(blockIdx--)
  1821. {
  1822. if (blocks[blockIdx].match(mlRestrictionRegex) == null)
  1823. {
  1824. continue;
  1825. }
  1826.  
  1827. var innerLinks = blocks[blockIdx].match(innerLinksRegex);
  1828.  
  1829. var linkIdx = innerLinks.length;
  1830. while (linkIdx--)
  1831. {
  1832. var innerLink = innerLinks[linkIdx].match(innerLinkRegex)[1];
  1833.  
  1834. if (innerLink.match(/Upload se nezdařil|limit exceeded|probíhá reupload/))
  1835. {
  1836. mlLink.parentNode.appendChild(document.createTextNode("----"));
  1837. }
  1838. else
  1839. {
  1840. var aElm = document.createElement('a');
  1841.  
  1842. var hostName = innerLink.match(/quickshare|hellshare|uloz\.to|multishare|hellspy|share\-rapid|czshare/);
  1843.  
  1844. //abbreviate host name
  1845. switch(hostName + ""){
  1846.  
  1847. case 'quickshare': aElm.innerHTML = 'QS'; break;
  1848. case 'hellshare': aElm.innerHTML = 'HS'; break;
  1849. case 'uloz.to': aElm.innerHTML = 'UT'; break;
  1850. case 'multishare': aElm.innerHTML = 'MS'; break;
  1851. case 'hellspy': aElm.innerHTML = 'hs'; break;
  1852. case 'share-rapid': aElm.innerHTML = 'SR'; break;
  1853. case 'czshare': aElm.innerHTML = 'CS'; break;
  1854. default: aElm.innerHTML = 'xx';
  1855.  
  1856. }
  1857.  
  1858. aElm.href = innerLink;
  1859. aElm.className = 'container_link';
  1860.  
  1861. mlLink.parentNode.appendChild(aElm);
  1862. cLinksTotal++;
  1863. }
  1864. }
  1865.  
  1866. mlLink.parentNode.appendChild(document.createTextNode("|")); //blocks delimiter
  1867.  
  1868. }
  1869. }
  1870.  
  1871. cMultiloadProcessed++;
  1872. if (cMultiloadTotal == cMultiloadProcessed) //start check when all ml links have been processed
  1873. {
  1874. if (Do_not_linkify_DL_links)
  1875. {
  1876. delinkifySnapshot(mlSnapshot);
  1877. }
  1878. startBulkCheck('container_link');
  1879. start('container_link');
  1880. }
  1881. }
  1882. });
  1883. }
  1884.  
  1885.  
  1886. if (GM_getValue("Check_mirrorcreator_dot_com_links", false))
  1887. {
  1888. var mcRegex = 'mirrorcreator\\.com/files/(\\w+)';
  1889. var mcXpath = "//a[contains(@href,'mirrorcreator.com/files')]";
  1890. var mcShortHostNames =
  1891. '?? 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';
  1892. // 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
  1893. //?????? depositfiles sendspace load.to ul.to storage.to uploadbox x7.to fileserve ?????? duckload filehook filepost jumbofiles glumbouploads
  1894. // zshare ?????? 2shared uploading ugotfile extabit oron eyvx uploadstation putlocker
  1895. // megaupload badongo megashare gamefront ifile ?????? letitbit ?????? ?????? filejungle megashares
  1896. // easy-share ?????? netload zippyshare ?????? filesonic turbobit enterupload ?????? filekeen wupload crocko fileflyer
  1897.  
  1898. linkify(mcRegex);
  1899.  
  1900. var mcSnapshot = document.evaluate(mcXpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  1901. var mcCount = mcSnapshot.snapshotLength;
  1902.  
  1903. cMirrorcreatorComTotal = mcCount;
  1904.  
  1905. if (mcCount > 0)
  1906. {
  1907. mcShortHostNames = mcShortHostNames.split(' ');
  1908. mcIdx = mcCount;
  1909. while(mcIdx--)
  1910. processMirrorcreatorLink(mcSnapshot.snapshotItem(mcIdx));
  1911. }
  1912.  
  1913. }
  1914. //MIRRORCREATOR.CZ END
  1915.  
  1916.  
  1917. //mirrorcreator.com checking works like this:
  1918. //The base URL is http://www.mirrorcreator.com/files/XXXXXXXX/filename_links
  1919. //the actual list of mirrors is at http://www.mirrorcreator.com/status.php?uid=XXXXXXXX
  1920. //the list contains links in the form of (http://www.mirrorcreator.com)/redirect/XXXXXXXX/1
  1921. //these redirector links are extracted with mcLinkBlockRegex and the pages loaded
  1922. //they contain the actual filehost links, which are extracted with mcHostRegex and displayed in a container list
  1923. function processMirrorcreatorLink(mcLink)
  1924. {
  1925. var mcURL = mcLink.href.match(mcRegex);
  1926. if(!mcURL || !mcURL[1]) return;
  1927. mcURL = 'http://www.mirrorcreator.com/status.php?uid=' + mcURL[1]; //link correction
  1928. GM_xmlhttpRequest({
  1929. method: 'GET',
  1930. url: mcURL,
  1931. headers: {
  1932. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1933. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*'+'/*;q=0.8',
  1934. 'Referer': ""
  1935. },
  1936. onload: function(mcLinkResult) {
  1937. var mcLinkRes = mcLinkResult.responseText;
  1938.  
  1939. var mcLinkBlockRegex = /(\/redirect\/\w+\/(\d+))/gi;
  1940. var mcHostRegex = /<div id="redirectlink">.*?<a href="([^"]+)"/;
  1941.  
  1942. var mcRedirectors;
  1943. var mcHostURLs = [], mcRedirectorIDs = [], mcHostsFound = 0, mcHostsRetrieved = 0, mcHostsToProcess = 0;
  1944. var m = mcLinkRes.match(mcLinkBlockRegex);
  1945. if (m)
  1946. mcHostsFound = m.length;
  1947. else
  1948. { //no files inside container
  1949. processMirrorcreatorFoundHosts(mcLink, []);
  1950. return;
  1951. }
  1952.  
  1953. var mcRedirectorURL, idx, timedOut = false;
  1954.  
  1955. var gmxhrFunc = function(mcRedirectorURL){ //Tampermonkey doesn't know neither this.url or result.finalUrl
  1956. GM_xmlhttpRequest({
  1957. method: 'GET',
  1958. url: mcRedirectorURL,
  1959. headers: {
  1960. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1961. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*'+'/*;q=0.8',
  1962. 'Referer': ""
  1963. },
  1964. onload: function(mcHostResult) {
  1965. if (timedOut) return; //too late, the list is already displayed
  1966. var mcHostRes = mcHostResult.responseText;
  1967. var mcHost = mcHostRes.match(mcHostRegex);
  1968. idx = mcHostURLs.indexOf(mcRedirectorURL);
  1969. if (mcHost && idx!=-1)
  1970. {
  1971. mcHostURLs[idx] = mcHost[1].replace(/^\s+|\s+$/g, '');
  1972. mcHostsRetrieved++;
  1973. mcHostsToProcess++;
  1974. if (mcHostsFound == mcHostsRetrieved) //this is the last one!
  1975. {
  1976. processMirrorcreatorFoundHosts(mcLink, mcHostURLs, mcRedirectorIDs);
  1977. mcHostsToProcess = 0;
  1978. }
  1979. }
  1980. } //end of onload: function
  1981. }); //end of GM_xmlhttpRequest call
  1982. };//end of var gmxhrFunc
  1983.  
  1984. while (mcRedirectors = mcLinkBlockRegex.exec(mcLinkRes))
  1985. { //load individual redirector pages
  1986. mcRedirectorURL = 'http://www.mirrorcreator.com' + mcRedirectors[1];
  1987. mcHostURLs.push(mcRedirectorURL);
  1988. mcRedirectorIDs.push(mcRedirectors[2]);
  1989. gmxhrFunc(mcRedirectorURL);
  1990. } //end of while block
  1991.  
  1992. setTimeout(function(){ //in case the last page fails to load and call the function
  1993. timedOut = true;
  1994. if (mcHostsToProcess)
  1995. processMirrorcreatorFoundHosts(mcLink, mcHostURLs);
  1996. }, 60000);
  1997.  
  1998. } //end of onload function
  1999. }); //end of GM_xmlhttpRequest call
  2000. } //end of function processMirrorcreatorLink
  2001.  
  2002.  
  2003. function processMirrorcreatorFoundHosts(mcLink, mcHostURLs, mcRedirectorIDs)
  2004. {
  2005. var aEl, liEl, docFrag;
  2006. var hostName, mcRedirectorID, trimFilename = false;
  2007. var i = mcHostURLs.length;
  2008. if (i == 0)
  2009. {
  2010. trimFilename = true;
  2011. mcLink.parentNode.insertBefore(document.createTextNode(' | No files inside container'), mcLink.nextSibling);
  2012. }
  2013. else
  2014. {
  2015. if (Display_full_links_in_link_containers)
  2016. { //full view
  2017. var wrapperEl = document.createElement('span');
  2018. wrapperEl.style.display = 'block';
  2019. var ulistEl = document.createElement('ul');
  2020. ulistEl.className = 'container_list';
  2021. while (i--)
  2022. {
  2023. liEl = document.createElement('li');
  2024. aEl = document.createElement('a');
  2025. aEl.appendChild(document.createTextNode(mcHostURLs[i]));
  2026. aEl.href = mcHostURLs[i];
  2027. aEl.className = 'container_link';
  2028. liEl.appendChild(aEl);
  2029. ulistEl.appendChild(liEl);
  2030. }
  2031. wrapperEl.appendChild(ulistEl);
  2032. mcLink.parentNode.replaceChild(wrapperEl, mcLink);
  2033. wrapperEl.insertBefore(mcLink, wrapperEl.firstChild);
  2034. }
  2035. else
  2036. { //compact view
  2037. trimFilename = true;
  2038. docFrag = document.createDocumentFragment();
  2039. docFrag.appendChild(document.createTextNode(' |'));
  2040. while (i--)
  2041. {
  2042. mcRedirectorID = mcRedirectorIDs[i];
  2043. hostName = mcHostURLs[i];
  2044. if (mcRedirectorID > mcShortHostNames.length-1 || mcShortHostNames[mcRedirectorID] == '??')
  2045. hostName = hostName.replace(/https?:\/\/(?:www\.)?([-0-9a-z]+(?:\.[-0-9a-z]+)?)\.[a-z]+\/.*/i, '$1').toUpperCase();
  2046. else
  2047. hostName = mcShortHostNames[mcRedirectorID];
  2048. aEl = document.createElement('a');
  2049. aEl.href = mcHostURLs[i];
  2050. aEl.className = 'container_link';
  2051. aEl.appendChild(document.createTextNode(hostName));
  2052. docFrag.appendChild(aEl);
  2053. docFrag.appendChild(document.createTextNode('|'));
  2054. }
  2055. mcLink.parentNode.insertBefore(docFrag, mcLink.nextSibling);
  2056. } //end of else block
  2057. } //end of else block
  2058. mcLink.className = '';
  2059. if (trimFilename)
  2060. mcLink.firstChild.nodeValue = mcLink.firstChild.nodeValue.replace(/(https?:\/\/[^\/]+\/files\/\w+\/).+/, '$1...');
  2061. cMirrorcreatorComProcessed++;
  2062. if (cMirrorcreatorComProcessed == cMirrorcreatorComTotal) //start check when all mc links have been processed
  2063. {
  2064. if (Do_not_linkify_DL_links)
  2065. delinkifySnapshot(mcSnapshot);
  2066. startBulkCheck('container_link');
  2067. start('container_link');
  2068. }
  2069. } //end of function processMirrorcreatorFoundHosts
  2070.  
  2071. containers_processed = true;
  2072.  
  2073.  
  2074. function initRedirectors()
  2075. {
  2076. function addRedirector(linkRegex, xpathEx, redirType, innerLinkRegex)
  2077. {
  2078. var redirector = new Object();
  2079. redirector.linkRegex = linkRegex;
  2080. redirector.xpath = xpathEx; //xpath expression
  2081. redirector.cProcessed = 0; //processed links count
  2082. redirector.cTotal = 0; //total links count
  2083. redirector.type = redirType; //redirectorTypes enum
  2084. redirector.innerLinkRegex = innerLinkRegex; //innerLink, null if unused
  2085. redirectors.push(redirector);
  2086. }
  2087. if (GM_getValue("Check_safelinking_dot_net_links", false))
  2088. {
  2089. addRedirector(
  2090. 'safelinking\\.net\/d\/\\w+',
  2091. "//a[contains(@href,'safelinking.net/d/')]",
  2092. redirectorTypes.HTTP_302,
  2093. null);
  2094. }
  2095. if (GM_getValue("Check_linksafe_dot_me_links", false))
  2096. {
  2097. addRedirector(
  2098. 'linksafe\\.me\/d\/\\w+',
  2099. "//a[contains(@href,'linksafe.me/d/')]",
  2100. redirectorTypes.HTTP_302,
  2101. null);
  2102. }
  2103. if (GM_getValue("Check_linkto_dot_net_links", false))
  2104. {
  2105. addRedirector(
  2106. 'linkto\\.net\/\\?\\w+\\.\\d+',
  2107. "//a[contains(@href,'linkto.net/?')]",
  2108. redirectorTypes.INNER_LINK,
  2109. /<iframe id="iframe" name="iframe" src="(.+?)\s*" frameborder="0"/);
  2110. }
  2111. if (GM_getValue("Check_theloo_dot_katt_dot_it_links", false))
  2112. {
  2113. addRedirector(
  2114. '(?:the)?loo\\.katt\\.it\/\\w+',
  2115. "//a[contains(@href,'loo.katt.it/')]",
  2116. redirectorTypes.THELOO_KATT_IT,
  2117. /Proceed to URL - <a href="(.+?)">/);
  2118. }
  2119. if (GM_getValue("Check_madlink_dot_sk_links", false))
  2120. {
  2121. addRedirector(
  2122. 'madlink\\.sk\/\\w+',
  2123. "//a[contains(@href,'madlink.sk/')]",
  2124. redirectorTypes.INNER_LINK,
  2125. /name="url" value="(.+?)\s*"\/>/);
  2126. }
  2127. if (GM_getValue("Check_adf_dot_ly_links", false))
  2128. {
  2129. addRedirector(
  2130. '(?:adf\\.ly|[u9]\\.bb|[qj]\\.gs)\/\\w+',
  2131. "//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/')]",
  2132. redirectorTypes.ADF_LY,
  2133. null);
  2134. }
  2135. if (GM_getValue("Check_redi_dot_re_links", false))
  2136. {
  2137. addRedirector(
  2138. 'redi\\.re\/\\w+',
  2139. "//a[contains(@href,'redi.re/')]",
  2140. redirectorTypes.HTTP_302,
  2141. null);
  2142. }
  2143. if (GM_getValue("Check_bit_dot_ly_links", false))
  2144. {
  2145. addRedirector(
  2146. 'bit\\.ly\/\\w+',
  2147. "//a[contains(@href,'bit.ly/')]",
  2148. redirectorTypes.HTTP_302,
  2149. null);
  2150. }
  2151. }
  2152.  
  2153. }
  2154.  
  2155. var bulkHosts = new Array();
  2156. var bulkHostNames = new Array();
  2157. function initBulkCheck()
  2158. {
  2159. /////////////////////////////
  2160. // Inits filehost object
  2161. /////////////////////////////
  2162. // params :
  2163. // hostName -- [string] host name (multiple domains separated with coma)
  2164. // linkRegex -- [string] link regex
  2165. // xpath -- [string] xpath expression to detect the link objects with evaluate
  2166. // blockSize -- [integer] max. number of links sent in one request, 50 if null
  2167. // corrMatch -- [regex] link correction regex (match), applied prior to corrRepl
  2168. // corrReplWhat -- [regex] link correction regex (replace)
  2169. // corrReplWith -- [string]
  2170. // splitSeparator -- [string] POSTDATA links separator, "\r\n" if null
  2171. //
  2172. // apiUrl -- [string] web linkchecker or API URL
  2173. // postData -- [string] POSTDATA of xmlhttprequest
  2174. // resLinkRegex -- [regex]
  2175. // resLiveRegex -- [regex] matches substrings containing live links in the request response
  2176. // resDeadRegex -- [regex] matches substrings containing dead links in the request response
  2177. // resUnavaRegex -- [regex] matches substrings containing unava links in the request response
  2178. // func -- [function] bulkcheck handler, genBulkCheck if null
  2179. //
  2180. //////////////////////////////
  2181. function addHost(hostName, linkRegex, xpath, blockSize, corrMatch, corrReplWhat, corrReplWith, splitSeparator,
  2182. apiUrl, postData, resLinkRegex, resLiveRegex, resDeadRegex, resUnavaRegex, func)
  2183. {
  2184. var fileHost = new Object();
  2185.  
  2186. fileHost.linkRegex = linkRegex;
  2187. fileHost.linkRegexObject = new RegExp(linkRegex, "");
  2188. fileHost.xpath = xpath;
  2189. fileHost.cFound = 0; //found links counter
  2190. fileHost.links = new Array(); //found links
  2191. if (blockSize == null)
  2192. {
  2193. fileHost.blockSize = 50;
  2194. }
  2195. else
  2196. {
  2197. fileHost.blockSize = blockSize;
  2198. }
  2199. fileHost.corrMatch = corrMatch;
  2200. fileHost.corrReplWhat = corrReplWhat;
  2201. fileHost.corrReplWith = corrReplWith;
  2202. if (splitSeparator == null)
  2203. {
  2204. fileHost.splitSeparator = "\r\n";
  2205. }
  2206. else
  2207. {
  2208. fileHost.splitSeparator = splitSeparator;
  2209. }
  2210. fileHost.apiUrl = apiUrl;
  2211. fileHost.postData = postData;
  2212. fileHost.resLinkRegex = resLinkRegex;
  2213. fileHost.resLiveRegex = resLiveRegex;
  2214. fileHost.resDeadRegex = resDeadRegex;
  2215. fileHost.resUnavaRegex = resUnavaRegex;
  2216. if (func == null)
  2217. {
  2218. fileHost.func = genBulkCheck;
  2219. }
  2220. else
  2221. {
  2222. fileHost.func = func;
  2223. }
  2224. bulkHosts.push(fileHost);
  2225. var names = hostName.split(',');
  2226. var i = names.length;
  2227. while(i--)
  2228. {
  2229. bulkHostNames[names[i]] = fileHost;
  2230. }
  2231. }
  2232. var genType1 = [
  2233. "migahost.com", "rodfile.com", "downloadani.me",
  2234. "rarefile.net",
  2235. "filesabc.com", "sharebeast.com",
  2236. "180upload.com", "verzend.be",
  2237. "movreel.com",
  2238. "4up.me",
  2239. "file4safe.com", "filemac.com", "4upfiles.com",
  2240. "idup.in", "novafile.com", "longfiles.com",
  2241. "bitupload.com",
  2242. "uploadbaz.com"
  2243. ];
  2244. var genType2 = [ "queenshare.com",
  2245. "hulkload.com",
  2246. "amonshare.com", "edoc.com",
  2247. ];
  2248. //xfilesharing 1.0
  2249. function addGenericType1()
  2250. {
  2251. var i = genType1.length;
  2252. while(i--)
  2253. {
  2254. if (GM_getValue("Check_" + genType1[i].replace(/\./g, "_dot_").replace(/-/g, "_dash_") + "_links", false))
  2255. {
  2256. var regexSafe = genType1[i].replace(/\./g, "\\.").replace(/-/g, "\\-");
  2257. addHost(
  2258. genType1[i].match(/[\w-]+/)[0], //hostname
  2259. regexSafe + "\/\\w+", //linkregex
  2260. "//a[contains(@href,'" + genType1[i] + "/')]", //xpath
  2261. null, //blocksize
  2262. new RegExp("(http:\/\/(?:|www\\.)" + regexSafe + "\/\\w+)",""),//, //corrmatch
  2263. null, //corrreplwhat
  2264. null, //corrreplwith
  2265. null, //separator
  2266. "http://" + genType1[i] + "/checkfiles.html", //api url
  2267. "op=checkfiles&process=Check+URLs&list=", //postdata
  2268. new RegExp("(" + regexSafe + "\/\\w+)",""), //linkregex
  2269. new RegExp("green'>http:\/\/(?:|www\.)" + regexSafe + "\/\\w+","g"), //liveregex
  2270. new RegExp("red'>http:\/\/(?:|www\.)" + regexSafe + "\/\\w+","g"), //deadregex
  2271. new RegExp("orange'>http:\/\/(?:|www\.)" + regexSafe + "\/\\w+","g"), //unavaregex
  2272. null //function delegate
  2273. )
  2274. }
  2275. }
  2276. }
  2277. //xfilesharing 2.0
  2278. function addGenericType2()
  2279. {
  2280. var i = genType2.length;
  2281. while(i--)
  2282. {
  2283. if (GM_getValue("Check_" + genType2[i].replace(/\./g, "_dot_").replace(/-/g, "_dash_") + "_links", false))
  2284. {
  2285. var regexSafe = genType2[i].replace(/\./g, "\\.").replace(/-/g, "\\-");
  2286. addHost(
  2287. genType2[i].match(/[\w-]+/)[0], //hostname
  2288. regexSafe + "\/\\w+", //linkregex
  2289. "//a[contains(@href,'" + genType2[i] + "/')]", //xpath
  2290. null, //blocksize
  2291. new RegExp("(http:\/\/(?:|www\\.)" + regexSafe + "\/\\w+)",""),//, //corrmatch
  2292. null, //corrreplwhat
  2293. null, //corrreplwith
  2294. null, //separator
  2295. "http://www." + genType2[i] + "/?op=checkfiles", //api url
  2296. "op=checkfiles&process=Check+URLs&list=", //postdata
  2297. new RegExp("(" + regexSafe + "\/\\w+)",""), //linkregex
  2298. new RegExp(regexSafe + "\/\\w+.*?<\/td>\\s*<td style=\"color:green;\">","g"), //liveregex
  2299. new RegExp(regexSafe + "\/\\w+.*?<\/td>\\s*<td style=\"color:red;\">","g"), //deadregex
  2300. new RegExp(regexSafe + "\/\\w+.*?<\/td>\\s*<td style=\"color:orange;\">","g"), //unavaregex
  2301. null //function delegate
  2302. )
  2303. }
  2304. }
  2305. }
  2306. // TEMPLATE
  2307. // if (GM_getValue("Check__dot_com_links", false))
  2308. // {
  2309. // addHost(
  2310. // "", //hostname
  2311. // "", //linkregex
  2312. // "//a[contains(@href,'.com/')]", //xpath
  2313. // null, //blocksize
  2314. // null, //corrmatch
  2315. // null, //corrreplwhat
  2316. // null, //corrreplwith
  2317. // null, //separator
  2318. // "", //api url
  2319. // "", //postdata
  2320. // /()/, //linkregex
  2321. // //liveregex
  2322. // //deadregex
  2323. // //unavaregex
  2324. // null //function delegate
  2325. // )
  2326. // }
  2327. addGenericType1();
  2328. addGenericType2();
  2329.  
  2330. if (GM_getValue("Check_myvdrive_dot_com_links", false))
  2331. {
  2332. addHost(
  2333. "myvdrive,fileserving", //hostname
  2334. "(?:fileserving|myvdrive)\\.com\/files\/[\\w-]+", //linkregex
  2335. "//a[contains(@href,'fileserving.com/files') or contains(@href,'myvdrive.com/files')]", //xpath
  2336. null, //blocksize
  2337. null, //corrmatch
  2338. null, //corrreplwhat
  2339. null, //corrreplwith
  2340. null, //separator
  2341. "http://www.myvdrive.com/Public/linkchecker#", //api url
  2342. "links=", //postdata
  2343. /(?:fileserving|myvdrive)\.com\/(files\/\w+)/, //linkregex
  2344. /icon_file_check_valid"><\/span>\s*http:\/\/www\.(?:fileserving|myvdrive)\.com\/files\/[\w-]+/g, //liveregex
  2345. /icon_file_check_(?:removed|notvalid)"><\/span>\s*http:\/\/www\.(?:fileserving|myvdrive)\.com\/files\/[\w-]+/g, //deadregex
  2346. null, //unavaregex
  2347. null //function delegate
  2348. )
  2349. }
  2350. if (GM_getValue("Check_hackerbox_dot_org_links", false))
  2351. {
  2352. addHost(
  2353. "hackerbox", //hostname
  2354. "host\\.hackerbox\\.org\/\\w+", //linkregex
  2355. "//a[contains(@href,'host.hackerbox.org/')]", //xpath
  2356. null, //blocksize
  2357. /(http:\/\/host\.hackerbox\.org\/\w+)/, //corrmatch
  2358. null, //corrreplwhat
  2359. null, //corrreplwith
  2360. null, //separator
  2361. "http://host.hackerbox.org/checkfiles.html", //api url
  2362. "op=checkfiles&process=Check+URLs&list=", //postdata
  2363. /(host\.hackerbox\.org\/\w+)/, //linkregex
  2364. /green'>http:\/\/host\.hackerbox\.org\/\w+/g, //liveregex
  2365. /red'>http:\/\/host\.hackerbox\.org\/\w+/g, //deadregex
  2366. /orange'>http:\/\/host\.hackerbox\.org\/\w+/g, //unavaregex
  2367. null //function delegate
  2368. )
  2369. }
  2370. if (GM_getValue("Check_hellshare_dot_com_links", false))
  2371. {
  2372. addHost(
  2373. "hellshare", //hostname
  2374. "(?:|download\\.(?:cz\\.|en\\.|sk\\.|)|www\\.)hellshare\\.(?:com|sk|cz|pl|hu|COM|SK|CZ|PL|HU)\/[\\w-\\.]+\/(?:[\\w-\\.]+\/|)\\d{5,}", //linkregex
  2375. "//a[contains(@href,'hellshare.')]", //xpath
  2376. 48, //blocksize
  2377. null, //corrmatch
  2378. null, //corrreplwhat
  2379. null, //corrreplwith
  2380. null, //separator
  2381. null, //api url
  2382. null, //postdata
  2383. null, //linkregex
  2384. null, //liveregex
  2385. null, //deadregex
  2386. null, //unavaregex
  2387. hellshareBulkCheck //function delegate
  2388. )
  2389. }
  2390. if (GM_getValue("Check_ncrypt_dot_in_links", false))
  2391. {
  2392. addHost(
  2393. "ncrypt", //hostname
  2394. "ncrypt\\.in\/folder\\-\\w+", //linkregex
  2395. "//a[contains(@href,'ncrypt.in/folder')]", //xpath
  2396. 100000, //blocksize
  2397. null, //corrmatch
  2398. null, //corrreplwhat
  2399. null, //corrreplwith
  2400. null, //separator
  2401. null,
  2402. null,
  2403. null,
  2404. null,
  2405. null,
  2406. null,
  2407. ncryptBulkCheck //function delegate
  2408. )
  2409. }
  2410. if (GM_getValue("Check_geupload_dot_com_links", false))
  2411. {
  2412. addHost(
  2413. "geupload,lenfile", //hostname
  2414. "(?:geupload\\.com|lenfile\\.com)\/\\w+", //linkregex
  2415. "//a[contains(@href,'geupload.com/') or contains(@href,'lenfile.com/')]", //xpath
  2416. null, //blocksize
  2417. null, //corrmatch
  2418. null, //corrreplwhat
  2419. null, //corrreplwith
  2420. "\n", //separator
  2421. 'http://geupload.com/?op=checkfiles',
  2422. 'op=checkfiles&process=Check+URLs&list=',
  2423. />http:\/\/(?:geupload|lenfile)\.com\/(\w+)/,
  2424. />http:\/\/(?:geupload|lenfile)\.com\/\w+(?:[^>]+>)<td style=\"color\:green/g,
  2425. />http:\/\/(?:geupload|lenfile)\.com\/\w+(?:[^>]+>)<td style=\"color\:red/g,
  2426. null,
  2427. null
  2428. )
  2429. }
  2430. if (GM_getValue("Check_filepost_dot_com_links", false))
  2431. {
  2432. addHost(
  2433. "filepost,fp", //hostname
  2434. "(?:filepost\\.com\/files|fp\\.io)\/\\w+", //linkregex
  2435. "//a[contains(@href,'filepost.com/files/') or contains(@href,'fp.io/')]", //xpath
  2436. null, //blocksize
  2437. null, //corrmatch
  2438. null, //corrreplwhat
  2439. null, //corrreplwith
  2440. "\n", //separator
  2441. 'http://filepost.com/files/checker/?JsHttpRequest=0-xml',
  2442. 'urls=',
  2443. /\\\/files\\\/(\w+)/,
  2444. />http:\\\/\\\/filepost\.com\\\/files\\\/\w+(?:[^>]+>){5}(?:\\n|\\t)+<span class=\\"v\\"/g,
  2445. />http:\\\/\\\/filepost\.com\\\/files\\\/\w+(?:[^>]+>){5}(?:\\n|\\t)+<span class=\\"x\\"/g,
  2446. null,
  2447. null //function delegate
  2448. )
  2449. }
  2450. if (GM_getValue("Check_filesflash_dot_com_links", false))
  2451. {
  2452. addHost(
  2453. "filesflash", //hostname
  2454. "filesflash\\.com\/\\w+", //linkregex
  2455. "//a[contains(@href,'filesflash.com')]", //xpath
  2456. null, //blocksize
  2457. null, //corrmatch
  2458. /http:\/\//, //corrreplwhat
  2459. '', //corrreplwith
  2460. null, //separator
  2461. 'http://filesflash.com/checklinks.php',
  2462. 'submit=Go&links=',
  2463. /filesflash\.com\/(\w+)/,
  2464. /<td>filesflash\.com\/\w+<\/td>\s*<td>Available/g,
  2465. /<td>filesflash\.com\/\w+<\/td>\s*<td>(?:Invalid|Deleted|Expired|Banned)?<\/td>/g,
  2466. null,
  2467. null //function delegate
  2468. )
  2469. }
  2470. if (GM_getValue("Check_jumbofiles_dot_com_links", false))
  2471. {
  2472. addHost(
  2473. "jumbofiles", //hostname
  2474. "jumbofiles\\.com\/\\w+", //linkregex
  2475. "//a[contains(@href,'jumbofiles.com/')]", //xpath
  2476. null, //blocksize
  2477. /(http:\/\/(?:|www\.)jumbofiles\.com\/\w+)/, //corrmatch
  2478. null, //corrreplwhat
  2479. null, //corrreplwith
  2480. null, //separator
  2481. "http://jumbofiles.com/checkfiles.html", //api url
  2482. "op=checkfiles&process=Check+URLs&list=", //postdata
  2483. /(jumbofiles\.com\/\w+)/, //linkregex
  2484. /blue'>http:\/\/(?:|www\.)jumbofiles\.com\/\w+/g, //liveregex
  2485. /red'>http:\/\/(?:|www\.)jumbofiles\.com\/\w+/g, //deadregex
  2486. /orange'>http:\/\/(?:|www\.)jumbofiles\.com\/\w+/g, //unavaregex
  2487. null //function delegate
  2488. )
  2489. }
  2490. if (GM_getValue("Check_edisk_dot_cz_links", false))
  2491. {
  2492. addHost(
  2493. "edisk", //hostname
  2494. "(?:(?:muj|data)\\d*\\.|)edisk\\.(?:cz|sk|eu)\/(?:|(?:cz|sk|en|pl)\/)", //linkregex
  2495. "//a[contains(@href,'edisk.')]", //xpath
  2496. null, //blocksize
  2497. null, //corrmatch
  2498. /edisk\.\w{2}\/(?:|\w{2}\/)stahni/, //corrreplwhat
  2499. 'edisk.cz/stahni', //corrreplwith
  2500. null, //separator
  2501. 'http://www.edisk.cz/zkontrolovat-odkazy',
  2502. 'submitBtn=Zkontrolovat&checkFiles=',
  2503. /((?:download|stahn(?:i|out-soubor))\/\d+)/,
  2504. /"ano"\/>\s*<\/td>\s*<td>\s*http:\/\/.+/g,
  2505. /"ne"\/>\s*<\/td>\s*<td>\s*http:\/\/.+/g,
  2506. null,
  2507. null //function delegate
  2508. )
  2509. }
  2510. if (GM_getValue("Check_bezvadata_dot_cz_links", false))
  2511. {
  2512. GM_xmlhttpRequest( //age check skip
  2513. {
  2514. method: 'POST',
  2515. url: 'http://bezvadata.cz/vyhledavani/souhlas-zavadny-obsah',
  2516. headers: {
  2517. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  2518. 'Content-type': 'application/x-www-form-urlencoded',
  2519. 'Referer': ""
  2520. }
  2521. });
  2522. addHost(
  2523. "bezvadata", //hostname
  2524. "(?:beta\\.|)bezvadata\.cz\/stahnout\/\\d+\\w+", //linkregex
  2525. "//a[contains(@href,'bezvadata.cz')]", //xpath
  2526. null, //blocksize
  2527. null, //corrmatch
  2528. null, //corrreplwhat
  2529. null, //corrreplwith
  2530. null, //separator
  2531. 'http://bezvadata.cz/nastroje/kontrola-odkazu?do=kontrolaOdkazuForm-submit',
  2532. 'zkontrolovat=Zkontrolovat&odkazy=',
  2533. /(bezvadata\.cz\/stahnout\/\d+)/,
  2534. /bezvadata\.cz\/stahnout\/.+?<\/td>\s*<td style="background-color: #d9ffb2/g,
  2535. /bezvadata\.cz\/stahnout\/.+?<\/td>\s*<td style="background-color: #ffb2b2/g,
  2536. null,
  2537. null //function delegate
  2538. )
  2539. }
  2540. if (GM_getValue("Check_linkcrypt_dot_ws_links", false))
  2541. {
  2542. addHost(
  2543. "linkcrypt", //hostname
  2544. "linkcrypt\\.ws\/dir\/\\w+", //linkregex
  2545. "//a[contains(@href,'linkcrypt.ws/dir')]", //xpath
  2546. 100000, //blocksize
  2547. null, //corrmatch
  2548. null, //corrreplwhat
  2549. null, //corrreplwith
  2550. null, //separator
  2551. null,
  2552. null,
  2553. null,
  2554. null,
  2555. null,
  2556. null,
  2557. linkcryptBulkCheck //function delegate
  2558. )
  2559. }
  2560. if (GM_getValue("Check_linksave_dot_in_links", false))
  2561. {
  2562. addHost(
  2563. "linksave", //hostname
  2564. "linksave\\.in\/\\w+", //linkregex
  2565. "//a[contains(@href,'linksave.in')]", //xpath
  2566. 100000, //blocksize
  2567. null, //corrmatch
  2568. null, //corrreplwhat
  2569. null, //corrreplwith
  2570. null, //separator
  2571. null,
  2572. null,
  2573. null,
  2574. null,
  2575. null,
  2576. null,
  2577. linksaveBulkCheck //function delegate
  2578. )
  2579. }
  2580. if (GM_getValue("Check_videobb_dot_com_links", false))
  2581. {
  2582. addHost(
  2583. "videobb", //hostname
  2584. "videobb\\.com\/(?:video\/|watch_video\\.php\\?v=)\\w+", //linkregex
  2585. "//a[contains(@href,'videobb.com')]", //xpath
  2586. null, //blocksize
  2587. null, //corrmatch
  2588. /watch_video\.php\?v=/, //corrreplwhat
  2589. 'video/', //corrreplwith
  2590. null, //separator
  2591. 'http://www.videobb.com/link_checker.php',
  2592. 'links=',
  2593. /videobb\.com\/video\/(\w+)/,
  2594. /<td>http:\/\/(?:www\.|)videobb.com\/video\/\w+<\/td>\s+<td>.+?<\/td>\s+<td>\d+:\d+<\/td>\s+<td>Available/g,
  2595. /<td>http:\/\/(?:www\.|)videobb.com\/video\/\w+<\/td>\s+<td><\/td>\s+<td>N\/A<\/td>\s+<td>Not Available/g,
  2596. null,
  2597. null //function delegate
  2598. )
  2599. }
  2600. if (GM_getValue("Check_cramit_dot_in_links", false))
  2601. {
  2602. addHost(
  2603. "cramit,cramitin", //hostname
  2604. "cramit(?:\\.in|in\\.net)\/", //linkregex
  2605. "//a[contains(@href,'cramitin.net') or contains(@href,'cramit.in')]", //xpath
  2606. null, //blocksize
  2607. null, //corrmatch
  2608. null, //corrreplwhat
  2609. null, //corrreplwith
  2610. null, //separator
  2611. 'http://cramit.in/checkfiles.html',
  2612. 'op=checkfiles&process=CHECK+URL%27S&list=',
  2613. /(cramit(?:\.in|in\.net)\/\w+)/,
  2614. /green>http:\/\/(?:www\.|)cramit(?:\.in|in\.net)\/\w+/g,
  2615. /red'>http:\/\/(?:www\.|)cramit(?:\.in|in\.net)\/\w+/g,
  2616. /orange'>http:\/\/(?:www\.|)cramit(?:\.in|in\.net)\/\w+/g,
  2617. null //function delegate
  2618. )
  2619. }
  2620. if (GM_getValue("Check_turbobit_dot_net_links", false))
  2621. {
  2622. addHost(
  2623. "turbobit", //hostname
  2624. "turbobit\\.(?:net|pl)\/(?:\\w+\/|).+?\\.html", //linkregex
  2625. "//a[contains(@href,'turbobit.')]", //xpath
  2626. null, //blocksize
  2627. /(turbobit\.(?:net|pl)\/(?:\w+\/|).+?\.html)/, //corrmatch
  2628. null, //corrreplwhat
  2629. null, //corrreplwith
  2630. "\n", //separator
  2631. 'http://turbobit.net/linkchecker/csv',
  2632. 'links_to_check=',
  2633. /(turbobit\.(?:net|pl)\/\w+)/,
  2634. /turbobit\.(?:net|pl)\/.*?, 1/g,
  2635. /turbobit\.(?:net|pl)\/.*?, 0/g,
  2636. null,
  2637. null //function delegate
  2638. )
  2639. }
  2640. if (GM_getValue("Check_filerio_dot_com_links", false))
  2641. {
  2642. addHost(
  2643. "filekeen,filerio", //hostname
  2644. //"file(?:keen|rio)\\.(?:com|in)\/\\w+\/.", //linkregex
  2645. "file(?:keen|rio)\\.(?:com|in)\/\\w+", //linkregex
  2646. "//a[contains(@href,'filekeen.com') or contains(@href,'filerio.')]", //xpath
  2647. null, //blocksize
  2648. null, //corrmatch
  2649. null, //corrreplwhat
  2650. null, //corrreplwith
  2651. null, //separator
  2652. 'http://filerio.in/checkfiles.html',
  2653. 'op=checkfiles&process=Check+URLs&list=',
  2654. /(file(?:keen|rio)\.(?:com|in)\/\w+)/,
  2655. /green'>http:\/\/(?:www\.|)file(?:keen|rio)\.(?:com|in)\/\w+/g,
  2656. /red'>http:\/\/(?:www\.|)file(?:keen|rio)\.(?:com|in)\/\w+/g,
  2657. /orange'>http:\/\/(?:www\.|)file(?:keen|rio)\.(?:com|in)\/\w+/g,
  2658. null //function delegate
  2659. )
  2660. }
  2661. if (GM_getValue("Check_share_dash_online_dot_biz_links", false))
  2662. {
  2663. addHost(
  2664. "share-online,egoshare", //hostname
  2665. "(?:share-online\\.biz|egoshare\\.com)\/(?:dl\/|download\\.php\\?id=)", //linkregex
  2666. "//a[contains(@href,'share-online.biz') or contains(@href,'egoshare.com')]", //xpath
  2667. null, //blocksize
  2668. /http:\/\/(?:www\.)?(?:share-online\.biz|egoshare\.com)\/d(?:l\/|ownload\.php\?id=)(\w+)/, //corrmatch
  2669. null, //corrreplwhat
  2670. null, //corrreplwith
  2671. "\n", //separator
  2672. 'http://api.share-online.biz/linkcheck.php',
  2673. 'links=',
  2674. /(\w+);(?:OK|NOTFOUND|DELETED)/,
  2675. /\w+;OK/g,
  2676. /\w+;(?:NOTFOUND|DELETED)/g,
  2677. null,
  2678. null //function delegate
  2679. )
  2680. }
  2681. if (GM_getValue("Check_quickshare_dot_cz_links", false))
  2682. {
  2683. addHost(
  2684. "quickshare", //hostname
  2685. "quickshare\\.cz\/stahnout-soubor\/\\d+", //linkregex
  2686. "//a[contains(@href,'quickshare.cz')]", //xpath
  2687. null, //blocksize
  2688. null, //corrmatch
  2689. null, //corrreplwhat
  2690. null, //corrreplwith
  2691. null, //separator
  2692. 'http://www.quickshare.cz/nastroje/link-checker',
  2693. 'linky=',
  2694. /quickshare\.cz\/stahnout-soubor\/(\d+(?::\w+)?)/,
  2695. /quickshare\.cz\/stahnout-soubor\/\d+(?::[\w\-.+$!*\/()\[\]\',~%?:@#&=\\]+)?\s*<\/a><\/td><td><img src="\/img\/ok\.gif/g,
  2696. /quickshare\.cz\/stahnout-soubor\/\d+(?::[\w\-.+$!*\/()\[\]\',~%?:@#&=\\]+)?\s*<\/td><td><img src="\/img\/nenalezeno\.gif/g,
  2697. null,
  2698. null //function delegate
  2699. )
  2700. }
  2701. if (GM_getValue("Check_netload_dot_in_links", false))
  2702. {
  2703. addHost(
  2704. "netload", //hostname
  2705. "netload\\.in\/datei\\w{10}", //linkregex
  2706. "//a[contains(@href,'netload.in')]", //xpath
  2707. null, //blocksize
  2708. null, //corrmatch
  2709. null, //corrreplwhat
  2710. null, //corrreplwith
  2711. "\n", //separator
  2712. "http://api.netload.in/index.php?id=2", //api url
  2713. "send=Absenden&links=", //postdata
  2714. /(\w+);/, //linkregex
  2715. /\w{10,};.+?;.+?;online/g, //liveregex
  2716. /\w{10,};.+?;.+?;offline/g, //deadregex
  2717. null, //unavaregex
  2718. //netloadBulkCheck //function delegate //disabled on probation since 1.2.4.5
  2719. null //function delegate
  2720. )
  2721. }
  2722. if (GM_getValue("Check_oboom_dot_com_links", false))
  2723. {
  2724. addHost(
  2725. "oboom", //hostname
  2726. "oboom\\.com\/#?\\w{8}", //linkregex
  2727. "//a[contains(@href,'oboom.com/')]", //xpath
  2728. null, //blocksize
  2729. /oboom\.com\/#?(\w{8})/, //corrmatch
  2730. null, //corrreplwhat
  2731. null, //corrreplwith
  2732. null, //separator
  2733. null,
  2734. null,
  2735. null,
  2736. null, //liveregex
  2737. null, //deadregex
  2738. null,
  2739. oboomBulk //function delegate
  2740. )
  2741. }
  2742. if (GM_getValue("Check_mega_dot_co_dot_nz_links", false))
  2743. {
  2744. addHost(
  2745. "mega",
  2746. "mega(?:\\.co)?\\.nz\/#!\\w+",
  2747. "//a[contains(@href,'mega.co.nz/') or contains(@href,'mega.nz/')]",
  2748. 100000, //blocksize
  2749. null, //corrmatch
  2750. null, //corrreplwhat
  2751. null, //corrreplwith
  2752. null, //separator
  2753. null,
  2754. null,
  2755. null,
  2756. null,
  2757. null,
  2758. null,
  2759. megaBulkCheck //function delegate
  2760. )
  2761. }
  2762.  
  2763. //the same as GenType2, except api url is 'https://' instead of 'http://www.' and corrmatch is not??? needed
  2764.  
  2765. if (GM_getValue("Check_extabit_dot_com_links", false))
  2766. {
  2767. addHost(
  2768. "extabit", //hostname
  2769. "extabit\\.com\/file\/\\w+", //linkregex
  2770. "//a[contains(@href,'extabit.com')]", //xpath
  2771. null, //blocksize
  2772. null, //corrmatch
  2773. null, //corrreplwhat
  2774. null, //corrreplwith
  2775. "\n", //separator
  2776. "http://extabit.com/linkchecker.jsp", //api url
  2777. "url=", //postdata
  2778. /extabit\.com\/(file\/\w+)/, //linkregex
  2779. /extabit\.com\/file\/\w+\/[^<]+<\/a><\/td>\s*<td class="status"><span class="status_green">/g, //liveregex
  2780. /extabit\.com\/file\/\w+\/[^<]+<\/a><\/td>\s*<td class="status"><span class="status_red">/g, //deadregex
  2781. /extabit\.com\/file\/\w+\/[^<]+<\/a><\/td>\s*<td class="status"><span class="status_yellow">/g, //unavaregex
  2782. extabitBulkCheck //function delegate
  2783. )
  2784. }
  2785. if (GM_getValue("Check_junocloud_dot_me_links", false))
  2786. {
  2787. addHost(
  2788. "junocloud", //hostname
  2789. "junocloud\\.me\/\\w+", //linkregex
  2790. "//a[contains(@href,'junocloud.me')]", //xpath
  2791. null, //blocksize
  2792. null, //corrmatch
  2793. null, //corrreplwhat
  2794. null, //corrreplwith
  2795. "\n", //separator
  2796. "http://junocloud.me/checkfiles.html", //api url
  2797. "op=checkfiles&process=Check+URLs&list=", //postdata
  2798. /(junocloud\.me\/\w+)/, //linkregex
  2799. /<a href="http:\/\/junocloud\.me\/\w+[^<]+<\/a>\s*<span style="color: green/g, //liveregex
  2800. /<a href="http:\/\/junocloud\.me\/\w+[^<]+<\/a>\s*<span style="color: red/g, //deadregex
  2801. null, //unavaregex
  2802. null //function delegate
  2803. )
  2804. }
  2805. if (GM_getValue("Check_webshare_dot_cz_links", false))
  2806. {
  2807. addHost(
  2808. "webshare", //hostname
  2809. "webshare\.cz\/(?:(?:#/)?file/\\w+|\\w+-.*)", //linkregex
  2810. "//a[contains(@href,'webshare.cz')]", //xpath
  2811. 100000, //blocksize
  2812. null, //corrmatch
  2813. null, //corrreplwhat
  2814. null, //corrreplwith
  2815. null, //separator
  2816. null, //api url
  2817. null, //postdata
  2818. null, //linkregex
  2819. null, //liveregex
  2820. null, //deadregex
  2821. null, //unavaregex
  2822. webshareBulkCheck //function delegate
  2823. )
  2824. }
  2825. /////////////////////////////
  2826. // Common function delegate to send links to get checked by host linkchecker
  2827. /////////////////////////////
  2828. // If you define a new delegate, you may use following properties
  2829. // this.links [array] array of strings (link blocks). The links in each block separated with host.splitSeparator.
  2830. // this.apiUrl [string] API or web linkchecker URL
  2831. // this.postData [string] POSTDATA for POST request
  2832. // this.resLiveRegex [regex] matches live substrings in the request response
  2833. // this.resDeadRegex [regex] matches dead substrings in the request response
  2834. // this.resUnavaRegex [regex] matches unava substrings in the request response (the regex is often null!)
  2835. //
  2836. // this.resLinkRegex [regex] matches links further passed to DisplayTheCheckedLinks
  2837. //
  2838. // See the code below for standard bulkcheck handling reference.
  2839. //////////////////////////////
  2840. function genBulkCheck()
  2841. {
  2842. var blockIdx = this.links.length;
  2843. while (blockIdx--)
  2844. {
  2845. postRequest(this.apiUrl, this.postData, this.links[blockIdx],
  2846. this.resLinkRegex, this.resLiveRegex, this.resDeadRegex, this.resUnavaRegex);
  2847. }
  2848. function postRequest(api, postData, links, linkRegex, liveRegex, deadRegex, unavaRegex)
  2849. {
  2850. GM_xmlhttpRequest(
  2851. {
  2852. method: 'POST',
  2853. url: api,
  2854. headers: {
  2855. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  2856. 'Content-type': 'application/x-www-form-urlencoded',
  2857. 'Referer': api,
  2858. 'X-Requested-With': 'XMLHttpRequest'
  2859. },
  2860. data: postData + encodeURIComponent(links),
  2861. onload: function (result)
  2862. {
  2863. var res = result.responseText;
  2864. // GM_log(res);
  2865. var i;
  2866.  
  2867. var livelinks = res.match(liveRegex);
  2868. var deadlinks = res.match(deadRegex);
  2869. // GM_log(livelinks);
  2870. // GM_log(deadlinks);
  2871. if (livelinks != null)
  2872. {
  2873. i = livelinks.length - 1;
  2874. do
  2875. {
  2876. livelinks[i] = livelinks[i].match(linkRegex)[1];
  2877. }
  2878. while (i--);
  2879. DisplayTheCheckedLinks(livelinks, 'alive_link');
  2880. }
  2881.  
  2882. if (deadlinks != null)
  2883. {
  2884. i = deadlinks.length - 1;
  2885. do
  2886. {
  2887. deadlinks[i] = deadlinks[i].match(linkRegex)[1];
  2888. }
  2889. while (i--);
  2890. DisplayTheCheckedLinks(deadlinks, 'adead_link');
  2891. }
  2892.  
  2893. if (unavaRegex != null)
  2894. {
  2895. var unavalinks = res.match(unavaRegex);
  2896. if (unavalinks)
  2897. {
  2898. i = unavalinks.length - 1;
  2899. do
  2900. {
  2901. unavalinks[i] = unavalinks[i].match(linkRegex)[1];
  2902. }
  2903. while (i--);
  2904. DisplayTheCheckedLinks(unavalinks, 'unava_link');
  2905. }
  2906. }
  2907. }
  2908. });
  2909. }
  2910. }
  2911. //specialized bulkchecking handlers follow
  2912. function webshareBulkCheck()
  2913. {
  2914. var arr = this.links[0].split("\r\n");
  2915. var i = arr.length;
  2916. while(i--)
  2917. {
  2918. postRequest(arr[i]);
  2919. }
  2920. //function postRequest(api, postData, links, linkRegex, liveRegex, deadRegex, unavaRegex)
  2921. function postRequest(wsLink)
  2922. {
  2923. var id = wsLink.match(/webshare\.cz\/(?:(?:#\/)?file\/)?(\w+)/)[1];
  2924. GM_xmlhttpRequest(
  2925. {
  2926. method: 'POST',
  2927. url: "http://webshare.cz/api/file_info/",
  2928. headers: {
  2929. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  2930. 'Content-type': 'application/x-www-form-urlencoded',
  2931. 'Referer': "",
  2932. },
  2933. data: "wst=&ident=" + id,
  2934. onload: function (result)
  2935. {
  2936. var res = result.responseText;
  2937. if (res.match(/<name>.+?<\/name>/))
  2938. {
  2939. DisplayTheCheckedLinks([id], 'alive_link');
  2940. }
  2941. else
  2942. {
  2943. DisplayTheCheckedLinks([id], 'adead_link');
  2944. }
  2945. }
  2946. });
  2947. }
  2948. }
  2949. //like genBulkCheck, but extabit linkchecker only works when logged in. If not logged in, non-bulk checking has to be used.
  2950. //extabit also doesn't like requests in fast succession, so some delays are added.
  2951. function extabitBulkCheck()
  2952. {
  2953. var timeoutDelay = 0;
  2954. var blockIdx = this.links.length;
  2955. while (blockIdx--)
  2956. {
  2957. postRequest(this.apiUrl, this.postData, this.links[blockIdx],
  2958. this.resLinkRegex, this.resLiveRegex, this.resDeadRegex, this.resUnavaRegex);
  2959. }
  2960. function postRequest(api, postData, links, linkRegex, liveRegex, deadRegex, unavaRegex)
  2961. {
  2962. GM_xmlhttpRequest(
  2963. {
  2964. method: 'POST',
  2965. url: api,
  2966. headers: {
  2967. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  2968. 'Content-type': 'application/x-www-form-urlencoded',
  2969. 'Referer': api,
  2970. 'X-Requested-With': 'XMLHttpRequest'
  2971. },
  2972. data: postData + encodeURIComponent(links),
  2973. onload: function (result)
  2974. {
  2975. var res = result.responseText;
  2976. if (/id="registration_header"/.test(res)) //not logged in, have to use non-bulk
  2977. {
  2978. function geturlfunc(link, tryID) //basically the geturl function with some changes (compacted, displaythecheckedlinkS, multiple tries)
  2979. {
  2980. //GM_log(tryID + ': ' + link);
  2981. GM_xmlhttpRequest(
  2982. {
  2983. method: 'GET',
  2984. url: link,
  2985. 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': ""},
  2986. onload: function(result2)
  2987. {
  2988. var res2 = result2.responseText;
  2989. var res2Status = result.status;
  2990. if (/download-file-btn/.test(res2)) {DisplayTheCheckedLinks([link], 'alive_link'); return;}
  2991. if (/Search mirrors|id="mirrb"/.test(res2) || res2Status==404) {DisplayTheCheckedLinks([link], 'adead_link'); return;}
  2992. if (/currently unavailable|temporarily unavailable|disponible en estos momentos|vorläufig unerreichbar|Файл временно недоступен/.test(res2) || res2Status == 500 || res2Status == 503)
  2993. {
  2994. if (tryID < 7)
  2995. setTimeout(function(){geturlfunc(link,tryID+1)}, tryID * 1000 + (Math.random() * tryID * 2000));
  2996. else
  2997. {DisplayTheCheckedLinks([link], 'unava_link'); return;}
  2998. }
  2999. }
  3000. });
  3001. }
  3002. //split the hrefs and check them one by one
  3003. GM_log('Using slow extabit.com link checking. Log in to extabit to use fast bulk checking.');
  3004. links = links.split('\n');
  3005. var i = links.length;
  3006. while (i--)
  3007. {
  3008. if (links[i])
  3009. {
  3010. (function(i){setTimeout(function(){geturlfunc(links[i],1)}, timeoutDelay);})(i);
  3011. timeoutDelay += 500;
  3012. }
  3013. }
  3014. return;
  3015. }
  3016. var i;
  3017.  
  3018. var livelinks = res.match(liveRegex);
  3019. var deadlinks = res.match(deadRegex);
  3020. if (livelinks != null)
  3021. {
  3022. i = livelinks.length - 1;
  3023. do
  3024. {
  3025. livelinks[i] = livelinks[i].match(linkRegex)[1];
  3026. }
  3027. while (i--);
  3028. DisplayTheCheckedLinks(livelinks, 'alive_link');
  3029. }
  3030.  
  3031. if (deadlinks != null)
  3032. {
  3033. i = deadlinks.length - 1;
  3034. do
  3035. {
  3036. deadlinks[i] = deadlinks[i].match(linkRegex)[1];
  3037. }
  3038. while (i--);
  3039. DisplayTheCheckedLinks(deadlinks, 'adead_link');
  3040. }
  3041.  
  3042. if (unavaRegex != null)
  3043. {
  3044. var unavalinks = res.match(unavaRegex);
  3045. if (unavalinks)
  3046. {
  3047. i = unavalinks.length - 1;
  3048. do
  3049. {
  3050. unavalinks[i] = unavalinks[i].match(linkRegex)[1];
  3051. }
  3052. while (i--);
  3053. DisplayTheCheckedLinks(unavalinks, 'unava_link');
  3054. }
  3055. }
  3056. }
  3057. });
  3058. }
  3059. }
  3060. function netloadBulkCheck()
  3061. {
  3062. var blockIdx = this.links.length;
  3063.  
  3064. while (blockIdx--)
  3065. {
  3066. postRequest(this.apiUrl, this.postData, this.links[blockIdx],
  3067. this.resLinkRegex, this.resLiveRegex, this.resDeadRegex, this.unavaRegex);
  3068. }
  3069. function postRequest(api, postData, links, linkRegex, liveRegex, deadRegex, unavaRegex)
  3070. {
  3071. GM_xmlhttpRequest(
  3072. {
  3073. method: 'POST',
  3074. url: api,
  3075. headers: {
  3076. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  3077. 'Content-type': 'application/x-www-form-urlencoded',
  3078. 'Referer': ""
  3079. },
  3080. data: postData + encodeURIComponent(links),
  3081. onload: function (result)
  3082. {
  3083. var res = result.responseText;
  3084. var i;
  3085.  
  3086. var livelinks = res.match(liveRegex);
  3087. var deadlinks = res.match(deadRegex);
  3088. if (livelinks != null)
  3089. {
  3090. i = livelinks.length - 1;
  3091. do
  3092. {
  3093. recheckLink(livelinks[i].match(linkRegex)[1]);
  3094. }
  3095. while(i--);
  3096. }
  3097.  
  3098. if (deadlinks != null)
  3099. {
  3100. i = deadlinks.length - 1;
  3101. do
  3102. {
  3103. deadlinks[i] = deadlinks[i].match(linkRegex)[1];
  3104. }
  3105. while (i--);
  3106. DisplayTheCheckedLinks(deadlinks, 'adead_link');
  3107. }
  3108. }
  3109. });
  3110. }
  3111. function recheckLink(link)
  3112. {
  3113. var link = link;
  3114. GM_xmlhttpRequest(
  3115. {
  3116. method: 'GET',
  3117. url: 'http://netload.in/datei' + link + '.htm',
  3118. headers: {
  3119. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3120. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  3121. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  3122. 'Referer': ""
  3123. },
  3124. onload: function (result)
  3125. {
  3126. var res = result.responseText;
  3127.  
  3128. if (res.match(/dl_first_file_download">|download_limit\.gif/))
  3129. {
  3130. DisplayTheCheckedLinks([link], 'alive_link');
  3131. return;
  3132. }
  3133.  
  3134. if (res.match(/achtung\.jpg"/))
  3135. {
  3136. DisplayTheCheckedLinks([link], 'adead_link');
  3137. }
  3138. },
  3139. onerror: function ()
  3140. {
  3141. displayTheCheckedLink(link, 'unava_link');
  3142. }
  3143. });
  3144. }
  3145. }
  3146.  
  3147. function megaBulkCheck()
  3148. {
  3149. var arr = this.links[0].split("\r\n");
  3150. var i = arr.length;
  3151. var seqno = Math.floor(Math.random()*1000000000);
  3152. while(i--)
  3153. {
  3154. postRequest(arr[i]);
  3155. }
  3156. function postRequest(megaLink)
  3157. {
  3158. megaLink=megaLink.replace('mega.nz/','mega.co.nz/');
  3159. var id = megaLink.match(/mega\.co\.nz\/#!(\w+)(?:!\w+)?/)[1];
  3160. GM_xmlhttpRequest(
  3161. {
  3162. method: "POST",
  3163. url: 'https://g.api.mega.co.nz/cs?id=' + seqno++,
  3164. data: '[{"a":"g","p":"' + id + '","ssl": "1"}]',
  3165. headers: {
  3166. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3167. 'Content-Type': 'application/xml',
  3168. 'Referer': "https://mega.co.nz/"
  3169. },
  3170. onload: function (result)
  3171. {
  3172. var res = $.parseJSON(result.responseText.match(/\[(.+?)\]/)[1]);
  3173. if ((typeof res == "number" && (res == -9 || res == -16 || res == -6)) || res.d)
  3174. {
  3175.  
  3176. DisplayTheCheckedLinks([id], 'adead_link');
  3177. }
  3178. if (res.at)
  3179. {
  3180. DisplayTheCheckedLinks([id], 'alive_link');
  3181. }
  3182. if (res.e == "ETEMPUNAVAIL")
  3183. {
  3184. DisplayTheCheckedLinks([id], 'unava_link');
  3185. }
  3186. }
  3187. });
  3188. }
  3189.  
  3190. }
  3191.  
  3192. function oboomBulk() {
  3193. var a = [], b = [], c = [];
  3194. var array = this.links;
  3195.  
  3196. GM_xmlhttpRequest({
  3197. method: 'GET',
  3198. url: 'https://www.oboom.com/1/guestsession',
  3199. headers: {
  3200. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  3201. 'Content-type': 'application/x-www-form-urlencoded',
  3202. 'Referer': 'https://www.oboom.com',
  3203. 'X-Requested-With': 'XMLHttpRequest'
  3204. },
  3205. onload: function(result) {
  3206. var blockIdx = array.length;
  3207. var token = JSON.parse(result.responseText)[1];
  3208. while (blockIdx--) {
  3209. startCheck(array[blockIdx].split('\r\n'), token);
  3210. }
  3211. }
  3212. });
  3213.  
  3214. function startCheck(links, token) {
  3215. GM_xmlhttpRequest({
  3216. method: 'POST',
  3217. url: "https://api.oboom.com/1/info",
  3218. headers: {
  3219. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  3220. 'Content-type': 'application/x-www-form-urlencoded',
  3221. 'Referer': 'https://www.oboom.com/',
  3222. 'X-Requested-With': 'XMLHttpRequest'
  3223. },
  3224. data: "token=" + token + "&items=" + links.join(","),
  3225. onload: function(result) {
  3226. var res = JSON.parse(result.responseText)[1];
  3227. var i = res.length, s;
  3228.  
  3229. while (i--) {
  3230. s = res[i].state;
  3231. if (s == 'online') a.push(res[i].id);
  3232. 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);
  3233. else c.push(res[i].id);
  3234. }
  3235.  
  3236. if (a.length > 0) DisplayTheCheckedLinks(a, 'alive_link');
  3237. if (b.length > 0) DisplayTheCheckedLinks(b, 'adead_link');
  3238. if (c.length > 0) DisplayTheCheckedLinks(c, 'unava_link');
  3239. }
  3240. });
  3241. }
  3242. }
  3243. function linksaveBulkCheck()
  3244. {
  3245. var arr = this.links[0].split("\r\n");
  3246. var i = arr.length;
  3247. while(i--)
  3248. {
  3249. postRequest(arr[i]);
  3250. }
  3251. function postRequest(lsLink)
  3252. {
  3253. GM_xmlhttpRequest(
  3254. {
  3255. method: "GET",
  3256. url: lsLink + '-t.jpg',
  3257. headers: {
  3258. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3259. 'Accept': 'text/xml',
  3260. 'Referer': ""
  3261. },
  3262. onload: function (result)
  3263. {
  3264. var imgLen = result.responseHeaders.match(/Content-Length: (\d+)/)[1];
  3265. if (imgLen == 965) //online
  3266. {
  3267. DisplayTheCheckedLinks([lsLink], 'alive_link');
  3268. }
  3269.  
  3270. if (imgLen == 972) //offline
  3271. {
  3272. DisplayTheCheckedLinks([lsLink], 'adead_link');
  3273. }
  3274. if (imgLen == 978) //unava
  3275. {
  3276. DisplayTheCheckedLinks([lsLink], 'unava_link');
  3277. }
  3278. }
  3279. });
  3280. }
  3281.  
  3282. }
  3283. function linkcryptBulkCheck()
  3284. {
  3285. var arr = this.links[0].split("\r\n");
  3286. var i = arr.length;
  3287. while(i--)
  3288. {
  3289. postRequest(arr[i]);
  3290. }
  3291. function postRequest(lcLink)
  3292. {
  3293. GM_xmlhttpRequest(
  3294. {
  3295. method: "GET",
  3296. url: 'http://linkcrypt.ws/api.html?api=status_V1&folderKey=' + lcLink.match(/dir\/(\w+)/)[1],
  3297. headers: {
  3298. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3299. 'Accept': 'text/xml',
  3300. 'Referer': ""
  3301. },
  3302. onload: function (result)
  3303. {
  3304. var res = result.responseText;
  3305. if (res.match(/<errorCode>1101|folderStatus>[23]/)) //Offline status
  3306. {
  3307. DisplayTheCheckedLinks([lcLink], 'adead_link');
  3308. return;
  3309. }
  3310. if (res.match(/folderStatus>1/)) //Online status
  3311. {
  3312. DisplayTheCheckedLinks([lcLink], 'alive_link');
  3313. }
  3314. else
  3315. {
  3316. DisplayTheCheckedLinks([lcLink], 'unava_link');
  3317. }
  3318. }
  3319. });
  3320. }
  3321. }
  3322.  
  3323. function megashareBulkCheck()
  3324. {
  3325. var arr = this.links[0].split("\r\n");
  3326. var i = arr.length;
  3327. while(i--)
  3328. {
  3329. postRequest(arr[i]);
  3330. }
  3331. function postRequest(msLink)
  3332. {
  3333. GM_xmlhttpRequest(
  3334. {
  3335. method: "GET",
  3336. url: msLink,
  3337. headers: {
  3338. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3339. 'Content-Type': 'application/x-www-form-urlencoded',
  3340. 'Referer': ""
  3341. },
  3342. onload: function (result)
  3343. {
  3344. var prZVal = result.responseText.match(/name="(\d+prZVal)" value="(\d+)">/);
  3345. var btn3Name = result.responseText.match(/src="images\/dwn-btn3\.gif" name="(.+?)"/);
  3346. if ((prZVal == null) || (btn3Name == null))
  3347. {
  3348. return;
  3349. }
  3350. GM_xmlhttpRequest(
  3351. {
  3352. method: "POST",
  3353. url: msLink,
  3354. headers: {
  3355. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3356. 'Content-Type': 'application/x-www-form-urlencoded',
  3357. 'Referer': ""
  3358. },
  3359. data: prZVal[1] + "=" + prZVal[2] + '&' + btn3Name[1] + '.x=1&' + btn3Name[1] + '.y=1',
  3360. onload: function (result)
  3361. {
  3362. var res = result.responseText;
  3363. if (res.match(/<div id="err">/))
  3364. {
  3365. DisplayTheCheckedLinks([msLink.match(/\.com(\/\d+)/)[1]], 'adead_link');
  3366. }
  3367. else
  3368. {
  3369. DisplayTheCheckedLinks([msLink.match(/\.com(\/\d+)/)[1]], 'alive_link');
  3370. }
  3371. }
  3372. });
  3373. }
  3374. });
  3375. }
  3376. }
  3377. function ncryptBulkCheck()
  3378. {
  3379. var arr = this.links[0].split("\r\n");
  3380. var i = arr.length;
  3381. while(i--)
  3382. {
  3383. postRequest(arr[i]);
  3384. }
  3385. function postRequest(ncryptLink)
  3386. {
  3387. GM_xmlhttpRequest(
  3388. {
  3389. method: "POST",
  3390. url: 'http://ncrypt.in/api_status.php',
  3391. headers: {
  3392. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3393. 'Content-Type': 'application/x-www-form-urlencoded',
  3394. 'Referer': ""
  3395. },
  3396. data: 'link=' + encodeURI(ncryptLink),
  3397. onload: function (result)
  3398. {
  3399. var foldStatus = result.responseText.match(/(?:offline|online);/);
  3400. switch(foldStatus + ""){
  3401. case "offline;": DisplayTheCheckedLinks([ncryptLink], 'adead_link'); break;
  3402. case "online;": DisplayTheCheckedLinks([ncryptLink], 'alive_link'); break;
  3403. default: DisplayTheCheckedLinks([ncryptLink], 'unava_link');
  3404. }
  3405. }
  3406. });
  3407. }
  3408. }
  3409. function hellshareBulkCheck()
  3410. {
  3411. var links = this.links;
  3412. GM_xmlhttpRequest(
  3413. {
  3414. method: "GET",
  3415. url: 'http://www.hellshare.com',
  3416. headers: {
  3417. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3418. 'Accept': 'text/xml',
  3419. 'Referer': ""
  3420. },
  3421. onload: function (result)
  3422. {
  3423. var domain = result.responseText.match(/param_rau = "www\.hellshare\.(\w+)"/)[1];
  3424.  
  3425. var loc = 'check=Zkontrolovat+dostupnost+soubor%C5%AF&links=';
  3426. if (domain == 'sk')
  3427. loc = 'check=Skontrolova%C5%A5&links=';
  3428. if (domain == 'com')
  3429. loc = 'check=Check+availability&links=';
  3430. if (domain == 'hu')
  3431. loc = 'check=Kontrol%C3%A1lj&links=';
  3432. if (domain == 'pl')
  3433. loc = 'check=Sprawd%C5%BC+dost%C4%99pno%C5%9B%C4%87+plik%C3%B3w&links=';
  3434.  
  3435. genBulkCheck.call({ links: links,
  3436. apiUrl: 'http://www.hellshare.' + domain + '/linkchecker?do=linkChecker-linkcheckerform-submit',
  3437. postData: loc,
  3438. resLinkRegex: /hellshare\.(?:cz|com|sk|hu|pl)\/(?:[\w-\.]+\/|)([\w-\.]+\/\d{5,})/,
  3439. 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,
  3440. resDeadRegex: /<span style="color:gray">.*?<\/span> - <strong>/g,
  3441. resUnavaRegex: null
  3442. });
  3443. }
  3444. });
  3445. }
  3446. /**
  3447. * Displays check result
  3448. * @param {Array} Array of links or link fragments.
  3449. * @param {String} Check result status -> ['alive_link'|'adead_link'|'unava_link']
  3450. */
  3451. function DisplayTheCheckedLinks(links, resultStatus)
  3452. {
  3453. //(a[href*=link_1], a[href*=link_2], ..., a[href*=link_n])
  3454. var $links = $('a[href*="' + links.join('"], a[href*="') + '"]');
  3455. if (Do_not_linkify_DL_links)
  3456. { //TODO into separate jQuery function
  3457. $links.replaceWith(function(){
  3458. return '<span href="' + this.href + '">' + $(this).text() + '</span>';
  3459. });
  3460. $links = $('span[href*="' + links.join('"], span[href*="') + '"]');
  3461. }
  3462. $links.removeClass().addClass(resultStatus);
  3463. $links.each(function() {
  3464. this.href = Ref_anonymize_service + $(this).attr("href");
  3465. });
  3466. switch(resultStatus)
  3467. {
  3468. case "alive_link": cLinksAlive += $links.length;
  3469. if (Display_tooltip_info) $links.mouseover(displayTooltipInfo);
  3470. break;
  3471. case "adead_link": cLinksDead += $links.length;
  3472. if (Display_tooltip_info) $links.mouseover(displayTooltipError);
  3473. break;
  3474. case "unava_link": cLinksUnava += $links.length; break;
  3475. default:
  3476. }
  3477. cLinksProcessed += $links.length;
  3478. }
  3479. }
  3480. // starts bulkchecking
  3481. //
  3482. // params
  3483. // filterId [string] restricts link detection with passed id attribute
  3484. function startBulkCheck(filterId)
  3485. {
  3486. var cHosts = bulkHosts.length;
  3487. if (cHosts == 0) //no filehostings selected
  3488. return;
  3489. // STEP 1 linkify the links
  3490. var linkifyRegex = '';
  3491. var hostIdx = cHosts;
  3492. while(hostIdx--)
  3493. {
  3494. linkifyRegex += bulkHosts[hostIdx].linkRegex + "|";
  3495. }
  3496. linkifyRegex = linkifyRegex.replace(/\|$/, '');
  3497. linkify(linkifyRegex);
  3498. //
  3499. //STEP 2 detect link objects
  3500. var xpathAll = '';
  3501. var hostIdx = cHosts;
  3502. while(hostIdx--)
  3503. {
  3504. xpathAll += bulkHosts[hostIdx].xpath + "|";
  3505. }
  3506. xpathAll = xpathAll.replace(/\]\|\/\/a\[/g, " or ");
  3507. xpathAll = xpathAll.replace(/\]\|/, ')]');
  3508. if (filterId != null) //insert id restriction in the xpath
  3509. {
  3510. xpathAll = xpathAll.replace(/\[/, "[@class='" + filterId + "' and (");
  3511. }
  3512. else
  3513. {
  3514. xpathAll = xpathAll.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  3515. }
  3516. var links = document.evaluate(xpathAll, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  3517. if (filterId == null)
  3518. {
  3519. cLinksTotal += links.snapshotLength;
  3520. }
  3521. //
  3522. //STEP 3 bind links with hostings
  3523. var linkIdx = links.snapshotLength;
  3524. var href = null;
  3525. if (linkIdx == 0) // no links found
  3526. return;
  3527. var name;
  3528. while (linkIdx--)
  3529. {
  3530. href = links.snapshotItem(linkIdx).href;
  3531. try // DO NOT REMOVE, filters crap that went through xpath detection
  3532. {
  3533. name = gimmeHostName(href);
  3534. if (href.match(bulkHostNames[name].linkRegexObject) != null)
  3535. bulkHostNames[name].links.push(href);
  3536. }
  3537. catch(e)
  3538. {
  3539.  
  3540. }
  3541. }
  3542. //
  3543. //STEP 4 process the links for each filehosting
  3544. var hostIdx = cHosts;
  3545. var host;
  3546. var m,n;
  3547. var arr;
  3548. while (hostIdx--)
  3549. {
  3550. host = bulkHosts[hostIdx];
  3551. arr = host.links;
  3552. if (arr.length == 0) //no links for this hosting, skip
  3553. {
  3554. continue;
  3555. }
  3556. //links match corrections
  3557. if (host.corrMatch != null)
  3558. {
  3559. var idx = arr.length;
  3560. while (idx--)
  3561. {
  3562. arr[idx] = arr[idx].match(host.corrMatch)[1];
  3563. }
  3564. }
  3565. //links replace corrections
  3566. if ((host.corrReplWhat != null) && (host.corrReplWith != null))
  3567. {
  3568. var idx = arr.length;
  3569. while (idx--)
  3570. {
  3571. arr[idx] = arr[idx].replace(host.corrReplWhat, host.corrReplWith);
  3572. }
  3573. }
  3574. m = arr.length;
  3575. n = host.blockSize;
  3576. if (m > n)
  3577. {
  3578. //insert block separators (RAND_STRING) into the array
  3579. for(var i = n; i < m; i += n + 1)
  3580. {
  3581. arr.splice(i, 0, RAND_STRING);
  3582. }
  3583. }
  3584.  
  3585. host.func.call({ links: arr.join(host.splitSeparator).split(RAND_STRING),
  3586. apiUrl: host.apiUrl,
  3587. postData: host.postData,
  3588. resLinkRegex: host.resLinkRegex,
  3589. resLiveRegex: host.resLiveRegex,
  3590. resDeadRegex: host.resDeadRegex,
  3591. resUnavaRegex: host.resUnavaRegex
  3592. });
  3593. //clean up
  3594. arr.length = 0;
  3595. }
  3596. //
  3597.  
  3598. function gimmeHostName(link)
  3599. {
  3600. return link.replace(/https?:\/\/.*?http(s)?:\/\//, "http$1://").match(/https?:\/\/(?:www\.|[\w\.])*?([\w-]+)\.(?:co\.uk|co\.nz|\w+)\//)[1];
  3601. }
  3602. }
  3603. function checkLinks(filterId)
  3604. {
  3605. startBulkCheck(filterId);
  3606. start(filterId);
  3607. }
  3608.  
  3609. /**
  3610. * Initialises progress box including event binding and CSS
  3611. */
  3612. function initProgressBox()
  3613. {
  3614. if ($("#warlc-progressbox").length > 0)
  3615. return;
  3616. //progressbox css change size and color of progress box
  3617. GM_addStyle("#warlc-progressbox {position:fixed; background:DimGray;" + Progress_box_background_color +
  3618. "; opacity:" + (Progress_box_opacity / 100) +
  3619. "; bottom:" + Progress_box_pos_bottom +
  3620. "px; right:" + Progress_box_pos_right +
  3621. "px; padding:5px; font-size:20px; font-weight:bold; cursor:default;}\
  3622. \
  3623. .warlc-progressbar {text-align:center; color: DimGray; height:2px; margin-bottom:2px;}\
  3624. \
  3625. .warlc-progressitem {}\
  3626. \
  3627. .alive {color:#00FF7F; " + Live_links_color +
  3628. "; background:transparent url(" + alive_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;} .dead {color:" + Dead_links_color +
  3629. "; background:transparent url(" + adead_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;} .unava {color: " + Temp_unavailable_links_color +
  3630. "; background:transparent url(" + unava_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;} .processing {color:Black; " + Container_links_color +
  3631. "; background:transparent url(" + processing_link_gif + ") no-repeat scroll 100% 50%;padding-right:15px;} .prem {color:" + Premium_links_color +
  3632. "; background:transparent url(" + prem_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;}"
  3633. );
  3634. //
  3635. $('body').append(' <div id="warlc-progressbox">\
  3636. <div class="warlc-progressbar"></div>\
  3637. <span class="warlc-progressitem alive"></span> - \
  3638. <span class="warlc-progressitem dead"></span> - \
  3639. <span class="warlc-progressitem unava"></span> - \
  3640. <span class="warlc-progressitem prem"></span> - \
  3641. <span class="warlc-progressitem processing"></span>\
  3642. </div>');
  3643. $('#warlc-progressbox').hide().click(function(){
  3644. clearInterval(intervalId);
  3645. $(this).hide();
  3646. return false;
  3647. });
  3648. $(".warlc-progressbar").progressbar({complete: function(){
  3649. $(this).fadeOut();
  3650. clearInterval(intervalId); //stop refreshing the stats
  3651. }
  3652. })
  3653. .one('progressbarchange', function(){$('#warlc-progressbox').show();});
  3654. }
  3655. /**
  3656. * Updates progress data in progress box
  3657. */
  3658. function updateProgress()
  3659. {
  3660. $("#warlc-progressbox").attr('aria-valuenow', Math.round(((100 / cLinksTotal) * cLinksProcessed)));
  3661. if (cLinksTotal) // some links were detected on page
  3662. {
  3663. var percProgress = Math.round(((100 / cLinksTotal) * cLinksProcessed));
  3664. var $progressItems = $('#warlc-progressbox > .warlc-progressitem');
  3665. $(".warlc-progressbar").progressbar('option', 'value', percProgress);
  3666. if ((cLinksTotal - cLinksProcessed) == 0)
  3667. {
  3668. $progressItems.first().text(cLinksAlive)
  3669. .next().text(cLinksDead)
  3670. .next().text(cLinksUnava)
  3671. .next().text(cLinksprem)
  3672. .next().remove();
  3673. $('#warlc-progressbox').html($('#warlc-progressbox').html().substr(0,$('#warlc-progressbox').html().lastIndexOf(">")+1));
  3674. $('#warlc-progressbox div:first-child').remove();
  3675. }
  3676. else
  3677. {
  3678. $progressItems.first().text(cLinksAlive)
  3679. .next().text(cLinksDead)
  3680. .next().text(cLinksUnava)
  3681. .next().text(cLinksprem)
  3682. .next().text(cLinksTotal - cLinksProcessed);
  3683. }
  3684. }
  3685. }
  3686.  
  3687. function check_all_links()
  3688. {
  3689. add_WARLC_style();
  3690.  
  3691. if (Show_progress_stats)
  3692. {
  3693. initProgressBox();
  3694. intervalId = setInterval(function(){updateProgress();}, Progress_box_refresh_rate);
  3695. }
  3696.  
  3697. startBulkCheck(null);
  3698. start(null);
  3699.  
  3700. if (!containers_processed)
  3701. {
  3702. processContainers();
  3703. }
  3704. }
  3705.  
  3706. //Copies all found dead links to clipboard - right now for Scriptish only
  3707. function copy_dead_to_clipboard()
  3708. {
  3709. initClipBoardTools();
  3710.  
  3711. var deadlinksxpath = "//.[@class='adead_link']";
  3712.  
  3713. var foundlinks = document.evaluate(deadlinksxpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  3714. var foundlinkstext = '';
  3715.  
  3716. var foundlinkIdx = foundlinks.snapshotLength;
  3717.  
  3718. while(foundlinkIdx--)
  3719. {
  3720. if (foundlinks.snapshotItem(foundlinkIdx).innerHTML != ' x')
  3721. foundlinkstext += foundlinks.snapshotItem(foundlinkIdx).innerHTML.replace(/\[\/hide:\w+\]/,"") + '\n';
  3722. }
  3723.  
  3724. unsafeWindow.copyToClipboard(foundlinkstext);
  3725. }
  3726.  
  3727. function toggle_autocheck()
  3728. {
  3729. var currentState = GM_getValue("Autocheck", false);
  3730. GM_setValue("Autocheck", !currentState);
  3731.  
  3732. if (currentState == true)
  3733. {
  3734. sendMessage('Autocheck disabled', 'red');
  3735. }
  3736. else
  3737. {
  3738. sendMessage('Autocheck enabled', 'SpringGreen');
  3739. }
  3740. }
  3741. function toggle_Enable_Anonymizer()
  3742. {
  3743. var currentState = GM_getValue("Enable_Anonymizer", false);
  3744. GM_setValue("Enable_Anonymizer", !currentState);
  3745.  
  3746. if (currentState == true)
  3747. {
  3748. GM_setValue("Ref_anonymize_service", "");
  3749. sendMessage('Anonymizer Disabled', 'red');
  3750. }
  3751. else
  3752. {
  3753. GM_setValue("Ref_anonymize_service", "http://hiderefer.com/?");
  3754. sendMessage('Anonymizer Enabled', 'SpringGreen');
  3755. }
  3756. }
  3757.  
  3758. function KeyDownHandler(event)
  3759. {
  3760. var kcode = (event.keyCode) ? event.keyCode : event.which;
  3761. if (event.ctrlKey && event.altKey)
  3762. {
  3763. switch(kcode)
  3764. {
  3765. case 65 : check_all_links(); break;
  3766. case 67 : configuration(); break;
  3767. case 68 : copy_dead_to_clipboard(); break;
  3768. case 87 : toggle_autocheck(); break;
  3769. case 90 : toggle_Enable_Anonymizer(); break;
  3770. }
  3771. }
  3772. }
  3773.  
  3774. //
  3775. //
  3776. // SCRIPT EXECUTION START POINT
  3777. //
  3778. //
  3779. // Safari specific GM_getResourceText override
  3780. if (navigator.userAgent.indexOf('Safari') != -1 && navigator.userAgent.indexOf('Chrome') == -1)
  3781. {
  3782. GM_getResourceText = function(res) {
  3783. var $cssText = GM_getValue("jquery_css", "");
  3784. if ($cssText == "")
  3785. {
  3786. GM_xmlhttpRequest(
  3787. {
  3788. method: 'GET',
  3789. url: 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css',
  3790. onload: function (result)
  3791. {
  3792. GM_setValue("jquery_css", result.responseText);
  3793. window.location.reload();
  3794. }
  3795. });
  3796. }
  3797. else
  3798. {
  3799. return $cssText;
  3800. }
  3801. }
  3802. }
  3803. var jQueryUICSS = GM_getResourceText("jQueryUICSS");
  3804. GM_addStyle(jQueryUICSS);
  3805. //init the stuff
  3806. setVariables();
  3807. initBulkCheck();
  3808. //init info boxes
  3809. messageBox.style.position = 'fixed';
  3810. messageBox.style.top = '20px';
  3811. messageBox.style.left = '10px';
  3812. messageBox.style.opacity = '0.85';
  3813. messageBox.style.background = 'DimGray';
  3814. messageBox.style.fontSize = '36px';
  3815. document.body.appendChild(messageBox);
  3816.  
  3817. //register GM menu commands & keyboard shortcut event handler
  3818. if (Keyboard_functions)
  3819. {
  3820. $(document).keydown(KeyDownHandler);
  3821. GM_registerMenuCommand("[W.A.R. Links Checker] Configuration (" + first_key_keycodename + "+" + second_key_keycodename + "+" + String.fromCharCode(CONFIGURATION_KEYCODE) + ")", configuration);
  3822. 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);
  3823. }
  3824. else
  3825. {
  3826. GM_registerMenuCommand("[W.A.R. Links Checker] Configuration", configuration);
  3827. GM_registerMenuCommand("[W.A.R. Links Checker] Check The Links In This Page", check_all_links);
  3828. }
  3829.  
  3830. //start linkchecking
  3831. if (Autocheck)
  3832. {
  3833. $(document).ready(check_all_links);
  3834. }
  3835.  
  3836. //
  3837. //
  3838. // SCRIPT EXECUTION END POINT
  3839. //
  3840. //
  3841.  
  3842. //shows configuration box
  3843. function configuration()
  3844. {
  3845.  
  3846. //prevent multiple creating of config window
  3847. if ($("#hideshow").length)
  3848. {
  3849. $("#hideshow").show();
  3850. return;
  3851. }
  3852.  
  3853. var configcss = '\
  3854. .popup_block .popup fieldset{\
  3855. padding: 1%;\
  3856. border-style: solid;\
  3857. border-width: 1px;\
  3858. border-color: gray;\
  3859. margin-bottom: 1px;\
  3860. }\
  3861. #h3hideshowtitle{\
  3862. font-size: 2em;\
  3863. }\
  3864. #h3hideshow{\
  3865. font-size: 1.5em;\
  3866. }\
  3867. #imghideshow {\
  3868. border: none;\
  3869. }\
  3870. #plusimage{\
  3871. display:inline;\
  3872. }\
  3873. #hideshow {\
  3874. position: fixed;\
  3875. width: 100%;\
  3876. height: 100%;\
  3877. top: 0;\
  3878. left: 0;\
  3879. font-size:12px;\
  3880. z-index:2147483645;\
  3881. text-align:left;\
  3882. }\
  3883. #fade {\
  3884. background: #000;\
  3885. position: fixed;\
  3886. width: 100%;\
  3887. height: 100%;\
  3888. opacity: .80;\
  3889. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";\
  3890. left: 0;\
  3891. z-index: 10;\
  3892. }\
  3893. .popup_block {\
  3894. font-family:verdana;\
  3895. color:black;\
  3896. background: #ddd;\
  3897. padding: 10px 20px;\
  3898. border: 2px solid DarkOrange;\
  3899. float: left;\
  3900. width: 700px;\
  3901. position: absolute;\
  3902. top: 7%;\
  3903. left: 50%;\
  3904. bottom: 7%;\
  3905. margin: 0 0 0 -350px;\
  3906. -moz-border-radius:10px;\
  3907. z-index: 100;\
  3908. \
  3909. }\
  3910. .popup_block .popup {\
  3911. float: left;\
  3912. width: 100%;\
  3913. background: #fff;\
  3914. margin: 10px 0;\
  3915. padding: 0px 0 0px;\
  3916. border-left: 1px solid #bbb;\
  3917. border-top: 1px solid #bbb;\
  3918. border-right: 1px solid #bbb;\
  3919. }\
  3920. #h3hideshow{\
  3921. margin: 1px 0 0px;\
  3922. padding: 1px 10px;\
  3923. border-bottom: 1px solid #bbb;\
  3924. font-size: 1.5em;\
  3925. font-weight: normal;\
  3926. cursor:pointer;\
  3927. background:#DDDDDD none repeat scroll 0 0;\
  3928. }\
  3929. #h3hideshow:hover{\
  3930. background:#C0BEBE none repeat scroll 0 0;\
  3931. }\
  3932. #h3hideshowtitle{\
  3933. margin: 2px 0 0px;\
  3934. padding: 7px 10px;\
  3935. border-bottom: 1px solid #bbb;\
  3936. font-size: 1.5em;\
  3937. font-weight: normal;\
  3938. }\
  3939. .popup_block .popup a {\
  3940. color:DarkSkyBlue;\
  3941. text-decoration:none;\
  3942. }\
  3943. .popup p {\
  3944. padding: 1px 10px;\
  3945. margin: 0px 0;\
  3946. -x-system-font:none;\
  3947. font-family:verdana,geneva,lucida,"lucida grande",arial,helvetica,sans-serif;\
  3948. font-size:10pt;\
  3949. font-size-adjust:none;\
  3950. font-stretch:normal;\
  3951. font-style:normal;\
  3952. font-variant:normal;\
  3953. font-weight:normal;\
  3954. line-height:normal;\
  3955. }\
  3956. #sites {\
  3957. padding: 1px 10px;\
  3958. margin: 0px 0;display:inline-block;width:16em;\
  3959. }\
  3960. #dev_ver {\
  3961. color: #00FF00;\
  3962. background: Black;\
  3963. text-align: right;\
  3964. }\
  3965. #sites_suspended {\
  3966. padding: 1px 10px;\
  3967. margin: 0px 0;display:inline-block;width:16em;\
  3968. text-decoration: line-through;\
  3969. }\
  3970. .popup img.cntrl {\
  3971. position: absolute;\
  3972. right: -15px;\
  3973. top: -15px;\
  3974. }\
  3975. #bulk {\
  3976. font-size:8pt;\
  3977. color:orange;\
  3978. padding: 1px 10px;\
  3979. margin: 0px 0;\
  3980. display:inline-block;\
  3981. width:100px;\
  3982. }\
  3983. #note {\
  3984. font-size:7pt;\
  3985. color:gray;\
  3986. padding: 1px 10px;\
  3987. margin: 0px 0;display:inline-block;\
  3988. min-width:100px;\
  3989. }\
  3990. #rednote {\
  3991. font-size:7pt;\
  3992. color:red;\
  3993. padding: 1px 10px;\
  3994. margin: 0px 0;display:inline-block;\
  3995. }\
  3996. #configinfo {\
  3997. font-size:8pt;\
  3998. color:gray;\
  3999. padding: 1px 10px;\
  4000. margin: 0px 0;display:inline-block;width:60em;\
  4001. }\
  4002. #refAnonymizer, #inputColorLive, #inputColorprem, #hostSearchBox2, #hostSearchBox, #inputColorDead, #inputColorTemp, #inputColorCont, #selectAllButton, #selectNoneButton, #invertButton, #selectAllButton2, #selectNoneButton2, #invertButton2 {\
  4003. color:black;\
  4004. border-style: solid;\
  4005. border-width: 1px;\
  4006. border-color: gray;\
  4007. }\
  4008. #h3hideshowcontent {\
  4009. min-height:220px;\
  4010. max-height:220px;\
  4011. overflow:auto;\
  4012. display: none;\
  4013. padding: 10px 10px;\
  4014. }\
  4015. #specinfo{\
  4016. font-size:14px;\
  4017. }\
  4018. .warlc-ui-tab {\
  4019. height:300px;\
  4020. overflow:auto;\
  4021. }\
  4022. #warlcsitelist2, #warlcsitelist1 {\
  4023. height:220px;\
  4024. border-top: 1px solid #ddd;\
  4025. padding-top: 5px;\
  4026. overflow:auto;\
  4027. }\
  4028. input:hover+label {\
  4029. background:#F1F77C;\
  4030. font-size:110%;\
  4031. }\
  4032. ';
  4033.  
  4034. GM_addStyle(configcss);
  4035.  
  4036. var customRulesRefHTML =
  4037. '\
  4038. <br>\
  4039. A custom rule consists of <b>commands</b>. A command must be on its own line and in this form:<br>\
  4040. <b>@keyword</b> <i>parameter</i>\
  4041. <br><br>\
  4042. 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. \
  4043. <br><br>\
  4044. 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.\
  4045. 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.\
  4046. 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.\
  4047. 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,\
  4048. but all commands until the next valid @customrule are ignored.<br><br>\
  4049. Available forms and types:\
  4050. <ul>\
  4051. <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.\
  4052. <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.\
  4053. <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.\
  4054. <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.\
  4055. </ul>\
  4056. Other available commands:<br>\
  4057. (Note: There can be more than 1 (up to 10) of these commands per rule. In that case, any of them will work.)\
  4058. <ul>\
  4059. <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.\
  4060. It can also specify multiple (up to 10) Top Level Domains (.com, .net etc.)<br>\
  4061. <ul>examples:<br>\
  4062. <li>good: <i>filehost.com/download/</i><br>\
  4063. <li>good: <i>download.filehost.net/?d=</i><br>\
  4064. <li>good: <i>filehost. com net co.uk /</i> - multiple TLDs (note the spaces before, between and after TLDs)<br>\
  4065. <li>ok: <i>filehost.com/</i> - works, but will also find links like filehost.com/login etc. Sometimes it\'s unavoidable though.<br>\
  4066. <li>bad: <i>d8523.filehost.com/</i> - d8523 probably is not constant<br>\
  4067. <li>bad: <i>filehost.com/3bfiq5d1</i> - 3bfiq5d1 probably is not constant<br>\
  4068. <li>bad: <i>filehost.com</i> - no slash<br>\
  4069. </ul>\
  4070. \
  4071. <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.\
  4072. 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 \
  4073. &lt;div&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;p&gt; even if there are new lines, tabulators etc.\
  4074. <li><b>@deadmatch</b> <i>pattern</i> - ignored for OBSOLETE, required for others. (For HEADERS some servers return 404 Error \
  4075. 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.)\
  4076. Two spaces again match any whitespace.\
  4077. <li><b>@unavamatch</b> <i>pattern</i> - optional, ignored for OBSOLETE and HEADERS. If found, the link is deemed temporarily unavailable.\
  4078. Two spaces again match any whitespace.\
  4079. <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. \
  4080. <li><b>@deadlink</b> <i>url</i> - optional. Example dead link.\
  4081. </ul>\
  4082. \
  4083. ';
  4084.  
  4085. //close image and css taken from = http://www.sohtanaka.com/web-design/examples/css-popup icon_close.png;
  4086. var configurationinnerHTML =
  4087. '<div id="fade"></div>\
  4088. <div class="popup_block">\
  4089. <div class="popup">\
  4090. <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/uI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EIwbD81vjX6/dqMdDVVbiIbeDueefT8aOHjizcxW4BVgbm2N0TS9RqFzF0PiC8DuPcLhj6QfOGYAXcDjz55Knv1xVx+YCiwDLINdKYdMXjqAVLzR99LqN8oebWqNRu1qixxC3hASiwOser1sdtP9kZeBTUBZPIY/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>\
  4092. <div id="warlc-conf-tabs">\
  4093. <ul>\
  4094. <li><a href="#tabs-1">Filehostings</a></li>\
  4095. <li><a href="#tabs-2">Containers</a></li>\
  4096. <li><a href="#tabs-5">Custom rules</a></li>\
  4097. <li><a href="#tabs-3">Settings</a></li>\
  4098. <li><a href="#tabs-4">About</a></li>\
  4099. </ul>\
  4100. <div id="tabs-1" class="warlc-ui-tab">\
  4101. <div class="warlc-ui-buttonset">\
  4102. <input type="button" class="warlc-ui-select-all" value="Select All">\
  4103. <input type="button" class="warlc-ui-select-none" value="Select None">\
  4104. <input type="button" class="warlc-ui-select-invert" value="Invert">\
  4105. </div><br>\
  4106. <div>Search: <input type="textbox" id="hostSearchBox" value=""></div><br>\
  4107. <div id="warlcsitelist1"><span>Empty</span></div>\
  4108. </div>\
  4109. <div id="tabs-2" class="warlc-ui-tab">\
  4110. <div class="warlc-ui-buttonset">\
  4111. <input type="button" class="warlc-ui-select-all" value="Select All">\
  4112. <input type="button" class="warlc-ui-select-none" value="Select None">\
  4113. <input type="button" class="warlc-ui-select-invert" value="Invert">\
  4114. </div><br>\
  4115. <div>Search: <input type="textbox" id="hostSearchBox2" value=""></div><br>\
  4116. <div id="warlcsitelist2"><span>Empty</span></div>\
  4117. </div>\
  4118. <div id="tabs-5" class="warlc-ui-tab">\
  4119. <div class="warlcsettings">\
  4120. <fieldset><input type="checkbox" id="Custom_rules"> Enable custom rules <div id="bulk">EXPERIMENTAL</div></fieldset>\
  4121. <br>\
  4122. <div>Edit custom rules: \
  4123. <a href="#" id="showCustomRulesReference">(<b>Click here to show/hide the reference</b>)</a>\
  4124. <div id="customRulesReference" style="display:none;">'
  4125. + customRulesRefHTML + '\
  4126. </div>\
  4127. <textarea style="width:100%;height:200px;" id="Custom_rules_text"></textarea>\
  4128. </div>\
  4129. </div>\
  4130. </div>\
  4131. <div id="tabs-3" class="warlc-ui-tab">\
  4132. <div class="warlcsettings">\
  4133. <fieldset>\
  4134. <p><input type="checkbox" id="Keyboard_functions"> Enable keyboard shortcuts</p>\
  4135. <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>\
  4136. </fieldset>\
  4137. <fieldset>\
  4138. <p><input type="checkbox" id="Color_DL_links"> Color DL links</p>\
  4139. <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>\
  4140. <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>\
  4141. <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>\
  4142. <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>\
  4143. <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>\
  4144. <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>\
  4145. <p><input type="checkbox" id="Show_line_through_in_dead_links"> Show line through in dead links</p>\
  4146. <p><input type="checkbox" id="Show_black_background_in_DL_links"> Show black background in DL links</p>\
  4147. <p><input type="checkbox" id="Do_not_linkify_DL_links"> Do NOT linkify DL links</p>\
  4148. <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>\
  4149. <p><input type="checkbox" id="Display_full_links_in_link_containers"> Display full links in link containers</p><br>\
  4150. <fieldset>\
  4151. <p><input type="radio" name="warlciconset" value="0"> No icons</p>\
  4152. <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>\
  4153. <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>\
  4154. <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>\
  4155. </fieldset>\
  4156. </fieldset>\
  4157. <fieldset>\
  4158. <div id="sites"><input type="checkbox" id="Autocheck"> Autocheck</div><br><div id="configinfo">Script starts check automatically.</div><br>\
  4159. </fieldset>\
  4160. <fieldset>\
  4161. <div id="sites"><input type="checkbox" id="Show_progress_stats"> Show progress stats</div><br>\
  4162. </fieldset>\
  4163. <fieldset>\
  4164. <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>\
  4165. </fieldset>\
  4166. <fieldset>\
  4167. <p><input type="checkbox" id="Enable_Anonymizer"> Enable Anonymizer</div><div id="bulk">EXPERIMENTAL Note: Checkbox does not work use CTRL+ALT+Z.</p>\
  4168. <div id="sites"><label for="refAnonymizer">Refererer anonymizing service</label><input type="text" id="refAnonymizer" value="' + Ref_anonymize_service + '"></div>\
  4169. </fieldset>\
  4170. </div>\
  4171. </div>\
  4172. <div id="tabs-4" class="warlc-ui-tab">\
  4173. <p><b>Author:</b> <a href="http://www.mentalps.5gbfree.com/viewtopic.php?f=2&t=6">mentalps</a></p>\
  4174. <br />\
  4175. <p><b>Currently supported:</b><br>\
  4176. Filehostings: ' + allHostNames.length + '<br />\
  4177. Containers: ' + allContainerNames.length + '<br />\
  4178. Obsolete sites: ' + allObsoleteNames.length + '<br /></p>\
  4179. <br />\
  4180. <p><b>Based on:</b><br>\
  4181. <a href="http://userscripts-mirror.org/scripts/show/125631.html">W.A.R. Links Checker - Dev</a></p>\
  4182. <br />\
  4183. <p><b>Uses:</b></p>\
  4184. <p>adam_3\'s <a href="http://userscripts-mirror.org/scripts/show/2254">Linkify ting</a> (modified)</p>\
  4185. <p><a href="http://jquery.com/">jQuery</a> JavaScript Library</p>\
  4186. <br />\
  4187. <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>\
  4188. </div>\
  4189. </div>\
  4190. </div>\
  4191. </div>';
  4192. $('body').append('<div id="hideshow">' + configurationinnerHTML + '</div>');
  4193. $("#warlc-conf-tabs").tabs({ fx: { opacity: 'toggle', duration: 'fast' } });
  4194. $("#imghideshow").click(function(event){$("#hideshow").hide(); event.preventDefault();});
  4195. var elmHostList = document.getElementById("warlcsitelist1");
  4196. var elmContainerList = document.getElementById("warlcsitelist2");
  4197. buildSettings();
  4198. buildSitelist("", allHostNames, elmHostList);
  4199. buildSitelist("", allContainerNames, elmContainerList);
  4200. if (DEBUG_MODE)
  4201. {
  4202. //log all sites availability status
  4203. diagSites();
  4204. }
  4205. //handler for checkbox state change
  4206. function changeConfiguration(e)
  4207. {
  4208. var element = e.target;
  4209.  
  4210. if (element.type == 'checkbox')
  4211. {
  4212. if (element.checked == 1)
  4213. {
  4214. GM_setValue(element.id, true);
  4215. }
  4216. else
  4217. {
  4218. GM_setValue(element.id, false);
  4219. }
  4220.  
  4221. }
  4222. setVariables();
  4223. }
  4224.  
  4225. //Selects all filehosting checkboxes
  4226. function selectAll()
  4227. {
  4228. $(":checkbox:visible:not(:checked)").prop("checked",true)
  4229. .each(function(index, element){GM_setValue(this.id, true)});
  4230. }
  4231.  
  4232. //Deselects all filehosting checkboxes
  4233. function selectNone()
  4234. {
  4235. $(":checkbox:visible:checked").prop("checked",false)
  4236. .each(function(index, element){GM_setValue(this.id, false)});
  4237. }
  4238.  
  4239. //Inverts filehosting checkboxes selection
  4240. function selectInvert()
  4241. {
  4242. var $checked = $(":checkbox:visible:checked");
  4243. var $unchecked = $(":checkbox:visible:not(:checked)");
  4244. $unchecked.prop("checked",true)
  4245. .each(function(index, element){GM_setValue(this.id, true)});
  4246. $checked.prop("checked",false)
  4247. .each(function(index, element){GM_setValue(this.id, false)});
  4248. }
  4249. //toggles anonymizer on off
  4250. function Enable_Anonymizer()
  4251. {
  4252. var $checked = $(":checkbox:visible:checked");
  4253. var $unchecked = $(":checkbox:visible:not(:checked)");
  4254. $unchecked.prop("checked",true)
  4255. .each(function(index, element){GM_setValue(this.id, true)});
  4256. $checked.prop("checked",false)
  4257. .each(function(index, element){GM_setValue(this.id, false)});
  4258. }
  4259.  
  4260. function changeRefAnonymizer(){
  4261. GM_setValue("Ref_anonymize_service", $("#refAnonymizer").attr("value"));
  4262. }
  4263.  
  4264. //Sets live links color
  4265. function changeColorLive()
  4266. {
  4267. var inColorLive = document.getElementById("inputColorLive");
  4268. inColorLive.style.background = inColorLive.value;
  4269. GM_setValue("Live_links_color", inColorLive.value);
  4270. }
  4271.  
  4272. //Sets dead links color
  4273. function changeColorDead()
  4274. {
  4275. var inColorDead = document.getElementById("inputColorDead");
  4276. inColorDead.style.background = inColorDead.value;
  4277. GM_setValue("Dead_links_color", inColorDead.value);
  4278. }
  4279.  
  4280. //Sets temp. unavailable links color
  4281. function changeColorTemp()
  4282. {
  4283. var inColorTemp = document.getElementById("inputColorTemp");
  4284. inColorTemp.style.background = inColorTemp.value;
  4285. GM_setValue("Temp_unavailable_links_color", inColorTemp.value);
  4286. }
  4287.  
  4288. //Sets temp. unavailable links color
  4289. function changeColorCont()
  4290. {
  4291. var inColorCont = document.getElementById("inputColorCont");
  4292. inColorCont.style.background = inColorCont.value;
  4293. GM_setValue("Container_links_color", inColorCont.value);
  4294. }
  4295. //Sets premium. links color
  4296. function changeColorprem()
  4297. {
  4298. var inColorprem = document.getElementById("inputColorprem");
  4299. inColorprem.style.background = inColorprem.value;
  4300. GM_setValue("Premium_links_color", inColorprem.value);
  4301. }
  4302.  
  4303. //Diagnose sites for availability
  4304. function diagSites()
  4305. {
  4306. var boxes = document.getElementById("warlcsitelist1").getElementsByTagName("input");
  4307.  
  4308. for (var i = 0, n = boxes.length - 1; i < n; i++)
  4309. {
  4310. if (boxes[i].type == "checkbox")
  4311. {
  4312. checkAvailability(boxes[i]);
  4313. }
  4314. }
  4315.  
  4316. boxes = document.getElementById("warlcsitelist2").getElementsByTagName("input");
  4317.  
  4318. for (var i = 0, n = boxes.length - 1; i < n; i++)
  4319. {
  4320. if (boxes[i].type == "checkbox")
  4321. {
  4322. checkAvailability(boxes[i]);
  4323. }
  4324. }
  4325.  
  4326. function checkAvailability(cbElm)
  4327. {
  4328. var cb = cbElm;
  4329. GM_xmlhttpRequest(
  4330. {
  4331. method: 'HEAD',
  4332. url: 'http://' + cb.nextSibling.textContent.replace(' ', ''),
  4333. headers: {
  4334. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  4335. 'Accept': 'text/xml',
  4336. 'Referer': ""
  4337. },
  4338. onload: function (result)
  4339. {
  4340. if (result.status != 200)
  4341. {
  4342. GM_log(cb.nextSibling.textContent + ' --- status: [' + result.status + '] ' + result.statusText + ', final url: ' + result.finalUrl);
  4343. }
  4344. },
  4345. onerror: function (result)
  4346. {
  4347. if (result.status != 200)
  4348. {
  4349. GM_log(cb.nextSibling.textContent + ' --- status: [' + result.status + '] ' + result.statusText + ', final url: ' + result.finalUrl);
  4350. }
  4351. }
  4352. });
  4353. }
  4354. }
  4355. function buildSettings()
  4356. {
  4357. $(".warlcsettings :checkbox").each(function(){
  4358. $(this).prop("checked", GM_getValue($(this).attr("id")))
  4359. .click(function(e){
  4360. GM_setValue($(this).attr("id"), $(this).prop("checked"));
  4361. setVariables();
  4362. });
  4363. })
  4364. }
  4365. //Dynamic build of host list
  4366. //param search [string] searches for hostnames matching search substring
  4367. //param siteNames [array] array of site names
  4368. //param targetNode [DOM Node] where the list should be built
  4369. // first child node is replaced
  4370. function buildSitelist(search, siteNames, targetNode)
  4371. {
  4372. var searchRegex = new RegExp("\\|?([\\w\\.-]*" + search.replace(/\./g,"\\.").replace(/-/g, "\\-") + "[\\w\\.-]*)\\|?", "i");
  4373. var $targetNode = $(targetNode).empty();
  4374. var searchedSite = "";
  4375. $.each(siteNames, function(i, site){
  4376. if (searchedSite = site.match(searchRegex))
  4377. {
  4378. var baseSite = site.replace(/\|.+/, ""); //filehosting main domain
  4379. //ensuring backward compatibility with the rest of code, to be refactored later
  4380. var oldRSLCvalue = "Check_" + baseSite.replace(/\|.+/, "").replace(/\./g,"_dot_").replace(/-/g, "_dash_") + "_links";
  4381. //
  4382. $targetNode.append('<input type="checkbox" id="' + oldRSLCvalue +'" />\
  4383. <label for="' + oldRSLCvalue + '">' + searchedSite[1] + '</label>' +
  4384. ((searchedSite[1] != baseSite) ? ('<div id="note"> ( ~ ' + baseSite + ' )</div>') : (""))
  4385. );
  4386. $("#" + oldRSLCvalue).prop("checked", GM_getValue(oldRSLCvalue, false))
  4387. .change(changeConfiguration);
  4388. $targetNode.append('<br />');
  4389. }
  4390. });
  4391. $targetNode.append("<hr>");
  4392. //obsolete hosts checkbox
  4393. $targetNode.append('<input type="checkbox" id="Obsolete_file_hosts" /><label for="Obsolete_file_hosts">Obsolete file hosts</label>');
  4394. $("#Obsolete_file_hosts").prop("checked", GM_getValue("Obsolete_file_hosts", false))
  4395. .change(changeConfiguration);
  4396. $targetNode.append('<br />');
  4397. var foundName = "";
  4398. $.each(allObsoleteNames, function(i, site){
  4399. if (foundName = allObsoleteNames[i].match(searchRegex))
  4400. {
  4401. $targetNode.append('<div id="note">' + foundName[1] + '</div>');
  4402. }
  4403. })
  4404. }
  4405. var hostSearchBox = document.getElementById("hostSearchBox");
  4406. hostSearchBox.addEventListener('keyup', function(){buildSitelist(hostSearchBox.value, allHostNames, elmHostList);}, false);
  4407. var hostSearchBox2 = document.getElementById("hostSearchBox2");
  4408. hostSearchBox2.addEventListener('keyup', function(){buildSitelist(hostSearchBox2.value, allContainerNames, elmContainerList);}, false);
  4409. $(".warlc-ui-select-all").click(selectAll).button();
  4410. $(".warlc-ui-select-none").click(selectNone).button();
  4411. $(".warlc-ui-select-invert").click(selectInvert).button();
  4412. $(".warlc-ui-buttonset").buttonset();
  4413. var inColorLive = document.getElementById("inputColorLive");
  4414. inColorLive.addEventListener('keyup', changeColorLive, false);
  4415.  
  4416. var inColorDead = document.getElementById("inputColorDead");
  4417. inColorDead.addEventListener('keyup', changeColorDead, false);
  4418.  
  4419. var inColorTemp = document.getElementById("inputColorTemp");
  4420. inColorTemp.addEventListener('keyup', changeColorTemp, false);
  4421.  
  4422. var inColorCont = document.getElementById("inputColorCont");
  4423. inColorCont.addEventListener('keyup', changeColorCont, false);
  4424. var inColorprem = document.getElementById("inputColorprem");
  4425. inColorprem.addEventListener('keyup', changeColorprem, false);
  4426. $("#refAnonymizer").change(changeRefAnonymizer);
  4427. //buttons and edit boxes init end
  4428.  
  4429. //icon sets radio buttons
  4430. var radioButtons = document.getElementsByName("warlciconset");
  4431. radioButtons[Icon_set].checked = "checked";
  4432.  
  4433. radioButtons[0].addEventListener("change", updateIconSet);
  4434. radioButtons[1].addEventListener("change", updateIconSet);
  4435. radioButtons[2].addEventListener("change", updateIconSet);
  4436. radioButtons[3].addEventListener("change", updateIconSet);
  4437. function updateIconSet()
  4438. {
  4439. GM_setValue("Icon_set", this.value * 1);
  4440. }
  4441. //
  4442. $('#showCustomRulesReference').click(function(e){
  4443. e.preventDefault();
  4444. $('#customRulesReference').toggle();
  4445. });
  4446. $('#Custom_rules_text')
  4447. .val(Custom_rules_text)
  4448. .change(saveCustomRules);
  4449. function saveCustomRules(e)
  4450. {
  4451. var cr = parseCustomRules(this.value);
  4452. if (cr.info.length)
  4453. 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, ' '));
  4454. GM_setValue('Custom_rules_text', this.value);
  4455. GM_setValue('last_custom_rules_nag', ''+new Date().getTime()); //reset nag
  4456. }
  4457. }
  4458.  
  4459. //begin standard link checking algorithm
  4460. function start(filterId)
  4461. {
  4462. var doNotLinkify = Do_not_linkify_DL_links;
  4463.  
  4464. // USER SELECTED FILE HOSTS INITIALIZATION START
  4465. var http_file_hosts = new Array(); //standard hostings
  4466. var http_file_hosts_coded = new Array(); //hostings which has to be decoded to obtain real checkable link
  4467. var http_file_hosts_obsolete = new Array(); //dead hostings
  4468. var http_file_hosts_headers_only = new Array(); //hostings with direct download, must be handled via headers only
  4469.  
  4470. initFileHosts();
  4471. initFileHostsHeadersOnly();
  4472. initFileHostsCustom(); //CustomRules
  4473. // USER SELECTED FILE HOSTS INITIALIZATION END
  4474.  
  4475. // LINKIFICATION START
  4476. var totalxpath = '';
  4477. var totalxpathcoded = '';
  4478. var totalxpathobsolete = '';
  4479. var totalxpathheadersonly = '';
  4480. var totalourls = '';
  4481.  
  4482. var filehostLen = http_file_hosts.length;
  4483. var filehostCodedLen = http_file_hosts_coded.length;
  4484. var filehostObsoleteLen = http_file_hosts_obsolete.length;
  4485. var filehostHeadersOnlyLen = http_file_hosts_headers_only.length;
  4486.  
  4487. var filehostIdx = filehostLen;
  4488. var filehostCodedIdx = filehostCodedLen;
  4489. var filehostObsoleteIdx = filehostObsoleteLen;
  4490. var filehostHeadersOnlyIdx = filehostHeadersOnlyLen;
  4491.  
  4492. if ((filehostIdx == 0) && (filehostCodedIdx == 0) && (filehostHeadersOnlyIdx == 0) && (filehostObsoleteIdx == 0))
  4493. return;
  4494.  
  4495. while (filehostIdx--)
  4496. {
  4497. totalourls += http_file_hosts[filehostIdx][0] + '|';
  4498. totalxpath += http_file_hosts[filehostIdx][4] + '|';
  4499. }
  4500.  
  4501. while (filehostCodedIdx--)
  4502. {
  4503. totalourls += http_file_hosts_coded[filehostCodedIdx][0] + '|';
  4504. totalxpathcoded += http_file_hosts_coded[filehostCodedIdx][3] + '|';
  4505. }
  4506.  
  4507. while (filehostObsoleteIdx--)
  4508. {
  4509. totalourls += http_file_hosts_obsolete[filehostObsoleteIdx][0] + '|';
  4510. totalxpathobsolete += http_file_hosts_obsolete[filehostObsoleteIdx][1] + '|';
  4511. }
  4512.  
  4513. while (filehostHeadersOnlyIdx--)
  4514. {
  4515. totalourls += http_file_hosts_headers_only[filehostHeadersOnlyIdx][0] + '|';
  4516. totalxpathheadersonly += http_file_hosts_headers_only[filehostHeadersOnlyIdx][3] + '|';
  4517. }
  4518.  
  4519. totalourls = totalourls.replace(/\|$/g, "");
  4520. //TODO: further refactoring needed
  4521. totalxpath = totalxpath.replace(/\]\|\/\/a\[/g, " or ");
  4522. totalxpath = totalxpath.replace(/\]\|/, ')]');
  4523. totalxpathcoded = totalxpathcoded.replace(/\]\|\/\/a\[/g, " or ");
  4524. totalxpathcoded = totalxpathcoded.replace(/\]\|/, ')]');
  4525. totalxpathobsolete = totalxpathobsolete.replace(/\]\|\/\/a\[/g, " or ");
  4526. totalxpathobsolete = totalxpathobsolete.replace(/\]\|/, ')]');
  4527. totalxpathheadersonly = totalxpathheadersonly.replace(/\]\|\/\/a\[/g, " or ");
  4528. totalxpathheadersonly = totalxpathheadersonly.replace(/\]\|/, ')]');
  4529. if (filterId != null) //insert id restriction in the xpath
  4530. {
  4531. totalxpath = totalxpath.replace(/\[/g, "[@class='" + filterId + "' and (");
  4532. totalxpathcoded = totalxpathcoded.replace(/\[/g, "[@class='" + filterId + "' and (");
  4533. totalxpathobsolete = totalxpathobsolete.replace(/\[/g, "[@class='" + filterId + "' and (");
  4534. totalxpathheadersonly = totalxpathheadersonly.replace(/\[/g, "[@class='" + filterId + "' and (");
  4535. }
  4536. else
  4537. {
  4538. totalxpath = totalxpath.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4539. totalxpathcoded = totalxpathcoded.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4540. totalxpathobsolete = totalxpathobsolete.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4541. totalxpathheadersonly = totalxpathheadersonly.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4542. }
  4543. linkify(totalourls);
  4544. //LINKIFICATION END
  4545. //ENCRYPTED LINKS PROCESSING START
  4546. if (http_file_hosts_coded.length > 0)
  4547. {
  4548. var linksCoded = document.evaluate(totalxpathcoded, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4549.  
  4550. // decrypt coded links (redirects, link protectors etc.)
  4551. if (linksCoded.snapshotLength > 0)
  4552. {
  4553. var link;
  4554. var reallinkreg;
  4555. var reallinkcorrection;
  4556.  
  4557. if (filterId == null)
  4558. {
  4559. cLinksTotal += linksCoded.snapshotLength;
  4560. }
  4561.  
  4562. var y = linksCoded.snapshotLength - 1;
  4563. do
  4564. {
  4565. // linksCoded.snapshotItem(y).id = 'processing_link';
  4566. link = linksCoded.snapshotItem(y);
  4567. filehostIdx = filehostCodedLen;
  4568. while (filehostIdx--)
  4569. {
  4570. if (link.href.match(http_file_hosts_coded[filehostIdx][0]))
  4571. {
  4572. link.href = link.href.replace(/http:\/\/.*?(?:\?|=)http:\/\//, 'http://');
  4573. reallinkreg = http_file_hosts_coded[filehostIdx][1];
  4574. reallinkcorrection = http_file_hosts_coded[filehostIdx][2];
  4575.  
  4576. decurl(link, reallinkreg, reallinkcorrection);
  4577. break;
  4578. }
  4579. }
  4580. }
  4581. while (y--);
  4582. }
  4583. }
  4584. //ENCRYPTED LINKS PROCESSING END
  4585.  
  4586. //STANDARD LINKCHECKING START
  4587. if (http_file_hosts.length > 0)
  4588. {
  4589. var lianks = document.evaluate(totalxpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4590.  
  4591. if (filterId == null)
  4592. {
  4593. cLinksTotal += lianks.snapshotLength;
  4594. }
  4595.  
  4596. if (lianks.snapshotLength > 0)
  4597. {
  4598. var link;
  4599.  
  4600. var URL = "";
  4601. var name = "";
  4602. var isAliveRegex = "";
  4603. var isDeadRegex = "";
  4604. var isUnavaRegex = "";
  4605. var ispremRegex = "";
  4606. var tryLoop = false;
  4607.  
  4608. var y = lianks.snapshotLength;
  4609.  
  4610. while (y--)
  4611. {
  4612. link = lianks.snapshotItem(y);
  4613.  
  4614. filehostIdx = filehostLen;
  4615. while (filehostIdx--)
  4616. {
  4617. if (link.href.match(http_file_hosts[filehostIdx][0]))
  4618. {
  4619. link.href = link.href.replace(/http:\/\/.*?http:\/\//, 'http://'); //anonymizers
  4620. isAliveRegex = http_file_hosts[filehostIdx][1];
  4621. isDeadRegex = http_file_hosts[filehostIdx][2];
  4622. isUnavaRegex = http_file_hosts[filehostIdx][3];
  4623. ispremRegex = http_file_hosts[filehostIdx][6];
  4624. tryLoop = http_file_hosts[filehostIdx][5];
  4625.  
  4626. geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, tryLoop);
  4627.  
  4628. break;
  4629. }
  4630. }
  4631. }
  4632. }
  4633. }
  4634. //STANDARD LINKCHECKING END
  4635. //OBSOLETE FILE HOSTS PROCESSING START
  4636. if (filehostObsoleteLen > 0)
  4637. {
  4638. var obsoletelinks = document.evaluate(totalxpathobsolete, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4639.  
  4640. var obsoleteLink;
  4641.  
  4642. //check links
  4643. if (obsoletelinks.snapshotLength > 0)
  4644. {
  4645. var y = obsoletelinks.snapshotLength;
  4646.  
  4647. if (filterId == null)
  4648. {
  4649. cLinksTotal += y;
  4650. }
  4651.  
  4652. while (y--)
  4653. {
  4654. obsoleteLink = obsoletelinks.snapshotItem(y);
  4655.  
  4656. if (Display_tooltip_info)
  4657. {
  4658. obsoleteLink.warlc_error = 'Cause of error: <b>Obsolete filehosting.</b>';
  4659. }
  4660. displayTheCheckedLink(obsoleteLink, 'adead_link');
  4661. }
  4662. }
  4663. }
  4664. //OBSOLETE FILE HOSTS PROCESSING END
  4665.  
  4666. //DIRECT LINKCHECKING START
  4667. if (http_file_hosts_headers_only.length > 0)
  4668. {
  4669. var links = document.evaluate(totalxpathheadersonly, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4670.  
  4671. //check links
  4672. if (links.snapshotLength > 0)
  4673. {
  4674. var link;
  4675. var isAliveRegex;
  4676. var isDeadRegex;
  4677. var ispremRegex;
  4678.  
  4679. var y = links.snapshotLength;
  4680.  
  4681.  
  4682. if (filterId == null)
  4683. {
  4684. cLinksTotal += y;
  4685. }
  4686.  
  4687. while (y--)
  4688. {
  4689. // links.snapshotItem(y).id = 'processing_link';
  4690. link = links.snapshotItem(y);
  4691. filehostIdx = filehostHeadersOnlyLen;
  4692. while (filehostIdx--)
  4693. {
  4694. if (link.href.match(http_file_hosts_headers_only[filehostIdx][0]))
  4695. {
  4696. link.href = link.href.replace(/http:\/\/.*?(?:\?|=)http:\/\//, 'http://');
  4697. isAliveRegex = http_file_hosts_headers_only[filehostIdx][1];
  4698. isDeadRegex = http_file_hosts_headers_only[filehostIdx][2];
  4699. ispremRegex = http_file_hosts_headers_only[filehostIdx][3];
  4700.  
  4701. geturlHeader(link, isAliveRegex, isDeadRegex, ispremRegex);
  4702.  
  4703. break;
  4704. }
  4705. }
  4706. }
  4707.  
  4708. }
  4709. }
  4710. //DIRECT LINKCHECKING END
  4711.  
  4712.  
  4713. //finds the real url on the page, replaces link.href with it and calls geturl
  4714. function decurl(link, reallinkreg, reallinkcorrection)
  4715. {
  4716.  
  4717. GM_xmlhttpRequest(
  4718. {
  4719. method: 'GET',
  4720. url: link.href,
  4721. headers: {
  4722. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  4723. 'Accept': 'text/xml',
  4724. 'Referer': ""
  4725. },
  4726. onload: function (result)
  4727. {
  4728. // cLinksProcessed++;
  4729.  
  4730. var reallink = result.responseText.match(reallinkreg)[0];
  4731. reallink = reallink.replace(new RegExp(reallinkcorrection, "g"), "");
  4732.  
  4733. link.href = reallink;
  4734.  
  4735. var i = http_file_hosts.length - 1;
  4736. do
  4737. {
  4738. if ((reallink.match(http_file_hosts[i][0])))
  4739. {
  4740. link.href = link.href.replace(/http:\/\/.*?\?http:\/\//, 'http://');
  4741. var isAliveRegex = http_file_hosts[i][1];
  4742. var isDeadRegex = http_file_hosts[i][2];
  4743. var isUnavaRegex = http_file_hosts[i][3];
  4744. var ispremRegex = http_file_hosts[i][4];
  4745.  
  4746. geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, 50);
  4747.  
  4748. break;
  4749. }
  4750. }
  4751. while (i--);
  4752. }
  4753. });
  4754. }
  4755.  
  4756. function randUA()
  4757. {
  4758. //TODO
  4759. }
  4760. //Processes link
  4761. //
  4762. // [string] link link URL
  4763. // [string] isAliveRegex alive link regex
  4764. // [string] isDeadRegex dead link regex
  4765. // [string] isUnavaRegex unavailable link regex
  4766. // [string] ispremRegex premium link regex
  4767. // [boolean] tryLoop repeats request until succeeded
  4768. function geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, tryLoop)
  4769. {
  4770. GM_xmlhttpRequest(
  4771. {
  4772. method: 'GET',
  4773. url: link.href,
  4774. headers: {
  4775. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  4776. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  4777. 'Referer': ""
  4778. },
  4779. onload: function (result)
  4780. {
  4781. var res = result.responseText;
  4782. if (result.responseHeaders.match(/Content-Disposition: attachment; filename=/))//direct download, simple version
  4783. {
  4784. displayTheCheckedLink(link, 'alive_link');
  4785. return;
  4786. }
  4787.  
  4788. if (res.match(isAliveRegex))
  4789. {
  4790. displayTheCheckedLink(link, 'alive_link');
  4791. return;
  4792. }
  4793.  
  4794. if (res.match(isDeadRegex))
  4795. {
  4796. displayTheCheckedLink(link, 'adead_link');
  4797. return;
  4798. }
  4799.  
  4800. if (isUnavaRegex && res.match(isUnavaRegex))
  4801. {
  4802. displayTheCheckedLink(link, 'unava_link');
  4803. return;
  4804. }
  4805. if (res.match(ispremRegex))
  4806. {
  4807. displayTheCheckedLink(link, 'prem_link');
  4808. return;
  4809. }
  4810.  
  4811. var resStatus = result.status;
  4812.  
  4813. if (resStatus == 404)
  4814. {
  4815. displayTheCheckedLink(link, 'adead_link');
  4816. }
  4817. if (resStatus == 500 || resStatus == 503 || resStatus == 403) //not found/available/temp. unava
  4818. {
  4819. if (tryLoop)
  4820. {
  4821. //wait 1-5 seconds and repeat the request
  4822. setTimeout(function(){geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, tryLoop)}, 1000 + (Math.random() * 4000));
  4823. }
  4824. else
  4825. {
  4826. displayTheCheckedLink(link, 'unava_link');
  4827. }
  4828.  
  4829. return;
  4830. }
  4831. },
  4832. onerror: function ()
  4833. {
  4834. displayTheCheckedLink(link, 'unava_link');
  4835. }
  4836. });
  4837. }
  4838.  
  4839. function geturlHeader(link, isAliveRegex, isDeadRegex, ispremRegex)
  4840. {
  4841. GM_xmlhttpRequest(
  4842. {
  4843. method: 'HEAD',
  4844. url: link.href,
  4845. headers: {
  4846. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  4847. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  4848. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  4849. 'Referer': ""
  4850. },
  4851. onload: function (result)
  4852. {
  4853. var resStatus = result.status;
  4854. var resHeaders = "";
  4855. if (resStatus == 403 || resStatus == 404 || resStatus == 500) //not found/available
  4856. {
  4857. displayTheCheckedLink(link, 'adead_link');
  4858. return;
  4859. }
  4860.  
  4861. resHeaders = result.responseHeaders;
  4862.  
  4863. if (resHeaders.match(isDeadRegex))
  4864. {
  4865. displayTheCheckedLink(link, 'adead_link');
  4866. return;
  4867. }
  4868.  
  4869. if (resHeaders.match(isAliveRegex))
  4870. {
  4871. displayTheCheckedLink(link, 'alive_link');
  4872. return;
  4873. }
  4874. if (resHeaders.match(ispremRegex))
  4875. {
  4876. displayTheCheckedLink(link, 'prem_link');
  4877. return;
  4878. }
  4879. },
  4880. onerror: function ()
  4881. {
  4882. displayTheCheckedLink(link, 'unava_link');
  4883. }
  4884. });
  4885. }
  4886.  
  4887. //Delinkfifies the <a> element object
  4888. function delinkifyLink(link)
  4889. {
  4890. var spanElm = document.createElement("span");
  4891. spanElm.className = link.className;
  4892. spanElm.innerHTML = link.innerHTML;
  4893.  
  4894. if (Display_tooltip_info)
  4895. {
  4896. spanElm.href = link.href;
  4897. spanElm.warlc_error = link.warlc_error;
  4898. switch (link.className){
  4899. case "alive_link": spanElm.addEventListener("mouseover", displayTooltipInfo, false); break
  4900. case "adead_link": spanElm.addEventListener("mouseover", displayTooltipError, false); break;
  4901. case "unava_link": //reserved
  4902. case "prem_link": spanElm.addEventListener("mouseover", displayTooltipError, false); break;
  4903. default:
  4904. }
  4905. }
  4906. link.parentNode.replaceChild(spanElm, link);
  4907. }
  4908.  
  4909. //Assigns result status to the <a> element object and calls delinkifying eventually
  4910. //Possible result states: adead_link, alive_link, unava_link, prem_link
  4911. function displayTheCheckedLink(link, resultStatus)
  4912. {
  4913. link.className = resultStatus;
  4914. link.href = Ref_anonymize_service + link.href;
  4915. if (Display_tooltip_info)
  4916. {
  4917. switch (resultStatus){
  4918. case "alive_link": link.addEventListener("mouseover", displayTooltipInfo, false); break
  4919. case "adead_link": link.addEventListener("mouseover", displayTooltipError, false); break;
  4920. case "unava_link": //reserved
  4921. case "prem_link": link.addEventListener("mouseover", displayTooltipInfo, false); break
  4922. default:
  4923. }
  4924. }
  4925. if (doNotLinkify)
  4926. {
  4927. delinkifyLink(link);
  4928. }
  4929. cLinksProcessed++;
  4930.  
  4931. if (resultStatus == "alive_link")
  4932. {
  4933. cLinksAlive++;
  4934. return;
  4935. }
  4936.  
  4937. if (resultStatus == "adead_link")
  4938. {
  4939. cLinksDead++;
  4940. return;
  4941. }
  4942.  
  4943. if (resultStatus == "unava_link")
  4944. {
  4945. cLinksUnava++;
  4946. }
  4947. if (resultStatus == "prem_link")
  4948. {
  4949. cLinksprem++;
  4950. return;
  4951. }
  4952. }
  4953.  
  4954.  
  4955. function initFileHosts()
  4956. {
  4957.  
  4958. function addObsoleteHost(linkRegex, xpathEx)
  4959. {
  4960. var host = new Array(2);
  4961. host[0] = linkRegex;
  4962. host[1] = xpathEx;
  4963. http_file_hosts_obsolete.push(host);
  4964. }
  4965.  
  4966. //obsolete file hosts init start
  4967. if (Obsolete_file_hosts)
  4968. {
  4969. addObsoleteHost("uloz\.cz\/show\/file","//a[contains(@href,'uloz.cz')]");
  4970. addObsoleteHost("storage\\.to\/get","//a[contains(@href,'storage.to')]");
  4971. addObsoleteHost("iskladka\\.cz\/download","//a[contains(@href,'iskladka.cz')]");
  4972. addObsoleteHost("file-rack\\.com\/files","//a[contains(@href,'file-rack.com')]");
  4973. addObsoleteHost("fast-load\\.net\/(\/)?index","//a[contains(@href,'fast-load.net')]");
  4974. addObsoleteHost("subory\\.sk\/download","//a[contains(@href,'subory.sk')]");
  4975. addObsoleteHost("bigandfree\\.com\/\\d+","//a[contains(@href,'bigandfree.com')]");
  4976. addObsoleteHost("fileop\\.com\/\\w+","//a[contains(@href,'fileop.com')]");
  4977. addObsoleteHost("mujsoubor\\.cz\/file\/","//a[contains(@href,'mujsoubor.cz')]");
  4978. addObsoleteHost("sendfile\\.to\/\\w+","//a[contains(@href,'sendfile.to')]");
  4979. addObsoleteHost("superfastfile\\.com\/\\w+","//a[contains(@href,'superfastfile.com')]");
  4980. addObsoleteHost("quickyshare\\.com\/\\w+","//a[contains(@href,'quickyshare.com/')]");
  4981. addObsoleteHost("duckload\\.com\/(?:d|play)","//a[contains(@href,'duckload.com')]");
  4982. addObsoleteHost("uploadstore\\.net\/\\w+","//a[contains(@href,'uploadstore.net')]");
  4983. addObsoleteHost("meinupload\\.com\/dl\/\\d+","//a[contains(@href,'meinupload.com/dl')]");
  4984. addObsoleteHost("dualshare\\.com\/\\w+","//a[contains(@href,'dualshare.com')]");
  4985. addObsoleteHost("2xupload\\.(?:to|de)\/file\/\\w+","//a[contains(@href,'2xupload.to') or contains(@href,'2xupload.de')]");
  4986. addObsoleteHost("oxedion\\.com\/index\\.php\/download\/\\w+","//a[contains(@href,'oxedion.com/index')]");
  4987. addObsoleteHost("uploadline\\.com\/\\d+","//a[contains(@href,'uploadline.com')]");
  4988. addObsoleteHost("dll\\.bz\/file\/\\d+","//a[contains(@href,'dll.bz/file')]");
  4989. addObsoleteHost("movieshare\\.in\/\\w+","//a[contains(@href,'movieshare.in')]");
  4990. addObsoleteHost("milledrive\\.com\/files\/\\d+","//a[contains(@href,'milledrive.com')]");
  4991. addObsoleteHost("quickupload\\.net\/\\w+","//a[contains(@href,'quickupload.net')]");
  4992. addObsoleteHost("safelink\\.in\/\\w+","//a[contains(@href,'safelink.in')]");
  4993. addObsoleteHost("pyramidfiles\\.com\/\\w+","//a[contains(@href,'pyramidfiles.com/')]");
  4994. addObsoleteHost("(?:cloudnator|shragle)\\.com\/files","//a[contains(@href,'cloudnator.com/files') or contains(@href,'shragle.com/files')]");
  4995. addObsoleteHost("batshare\\.com\/\\w+","//a[contains(@href,'batshare.com/')]");
  4996. addObsoleteHost("bitroad\\.net\/download","//a[contains(@href,'bitroad.net/download')]");
  4997. addObsoleteHost("metadivx\\.com\/\\w+","//a[contains(@href,'metadivx.com')]");
  4998. addObsoleteHost("filegaze\\.com\/\\w+","//a[contains(@href,'filegaze.com/')]");
  4999. addObsoleteHost("bulletupload\\.com\/\\w+","//a[contains(@href,'bulletupload.com/')]");
  5000. addObsoleteHost("sharefilehost\\.com\/\\w+","//a[contains(@href,'sharefilehost.com/')]");
  5001. addObsoleteHost("fireuploads\\.net\/\\w+","//a[contains(@href,'fireuploads.net/')]");
  5002. addObsoleteHost("divxlink\\.com\/\\w+","//a[contains(@href,'divxlink.com/')]");
  5003. addObsoleteHost("bzlink\\.us\/\\w+","//a[contains(@href,'bzlink.us/')]");
  5004. addObsoleteHost("filetechnology\\.com\/\\w+","//a[contains(@href,'filetechnology.com/')]");
  5005. addObsoleteHost("filecosy\\.com\/\\w+","//a[contains(@href,'filecosy.com/')]");
  5006. addObsoleteHost("fileserver\\.cc\/\\w+","//a[contains(@href,'fileserver.cc/')]");
  5007. addObsoleteHost("shafiles\\.me\/\\w+","//a[contains(@href,'shafiles.me/')]");
  5008. addObsoleteHost("xfileshare\\.eu\/\\w+","//a[contains(@href,'xfileshare.eu/')]");
  5009. addObsoleteHost("uploadboost\\.com\/\\w+","//a[contains(@href,'uploadboost.com/')]");
  5010. addObsoleteHost("uploadoz\\.com\/\\w+","//a[contains(@href,'uploadoz.com/')]");
  5011. addObsoleteHost("ihostia\\.com\/\\w+","//a[contains(@href,'ihostia.com/')]");
  5012. addObsoleteHost("shareupload\\.com\/\\w+","//a[contains(@href,'shareupload.com/')]");
  5013. addObsoleteHost("ovfile\\.com\/\\w+","//a[contains(@href,'ovfile.com/')]");
  5014. addObsoleteHost("stahuj\\.to\/\\w+","//a[contains(@href,'stahuj.to/')]");
  5015. addObsoleteHost("gigfiles\\.net\/\\w+","//a[contains(@href,'gigfiles.net/')]");
  5016. addObsoleteHost("vidhog\\.com\/\\w+","//a[contains(@href,'vidhog.com/')]");
  5017. addObsoleteHost("filelaser\\.com\/\\w+","//a[contains(@href,'filelaser.com/')]");
  5018. addObsoleteHost("holderfile\\.com\/\\w+","//a[contains(@href,'holderfile.com/')]");
  5019. addObsoleteHost("fileduct\\.(?:com|net)\/\\w+","//a[contains(@href,'fileduct.com/') or contains(@href,'fileduct.net')]");
  5020. addObsoleteHost("filefat\\.com\/\\w+","//a[contains(@href,'filefat.com/')]");
  5021. addObsoleteHost("restfile\\.com\/\\w+","//a[contains(@href,'restfile.com/')]");
  5022. addObsoleteHost("filemashine\\.com\\/download\/\\w+","//a[contains(@href,'filemashine.com/download')]");
  5023. addObsoleteHost("cloudnxt\\.net\/\\w+","//a[contains(@href,'cloudnxt.net/')]");
  5024. addObsoleteHost("uploadrack\\.com\/\\w+","//a[contains(@href,'uploadrack.com')]");
  5025. addObsoleteHost("teradepot\\.com\/\\w+","//a[contains(@href,'teradepot.com')]");
  5026. addObsoleteHost("dataup\\.to\/\\d+\/","//a[contains(@href,'dataup.to')]");
  5027. addObsoleteHost("upit\\.to\/file:\\d+","//a[contains(@href,'upit.to/file')]");
  5028. addObsoleteHost("badongo\\.(?:com|net)\/(?:\\w\\w\/|)(?:vid|cfile|file|pt)\/\\w+","//a[contains(@href,'badongo.com') or contains(@href,'badongo.net')]");
  5029. addObsoleteHost("driveway\\.com\/\\w+","//a[contains(@href,'driveway.com')]");
  5030. addObsoleteHost("eatlime\\.com\/download","//a[contains(@href,'eatlime.com/download')]");
  5031. addObsoleteHost("a2zuploads\\.com\/id\\w+","//a[contains(@href,'a2zuploads.com/id')]");
  5032. addObsoleteHost("friendlyfiles\\.net\/download\/\\w+\/","//a[contains(@href,'friendlyfiles.net/download')]");
  5033. addObsoleteHost("flyfile\\.us\/\\w+","//a[contains(@href,'flyfile.us')]");
  5034. addObsoleteHost("speedyshare\\.com\/\\w+","//a[contains(@href,'speedyshare.com')]");
  5035. addObsoleteHost("brontofile\\.com\/download","//a[contains(@href,'brontofile.com/download')]");
  5036. addObsoleteHost("uploadspace\\.eu\/\\w+","//a[contains(@href,'uploadspace.eu')]");
  5037. addObsoleteHost("fooget\\.com\/\\w+","//a[contains(@href,'fooget.com/')]");
  5038. addObsoleteHost("file-bit.net\/\\w+","//a[contains(@href,'file-bit.net/')]");
  5039. addObsoleteHost("keepfile\\.com\/\\w+","//a[contains(@href,'http://keepfile.com')]");
  5040. addObsoleteHost("piggyshare\\.com\/file\/\\w+","//a[contains(@href,'piggyshare.com')]");
  5041. addObsoleteHost("filecrown\\.com\/\\w+","//a[contains(@href,'filecrown.com')]");
  5042. addObsoleteHost("6giga\\.com\/\\w+","//a[contains(@href,'6giga.com')]");
  5043. addObsoleteHost("uploadjockey\\.com\/download\/\\w+","//a[contains(@href,'uploadjockey.com/download')]");
  5044. addObsoleteHost("bluehost\\.to\/dl=\\w+","//a[contains(@href,'bluehost.to')]");
  5045. addObsoleteHost("coolshare\\.cz\/stahnout\/\\w+","//a[contains(@href,'coolshare.cz/stahnout')]");
  5046. addObsoleteHost("filegu\\.ru\/f\/\\w+","//a[contains(@href,'filegu.ru/f')]");
  5047. addObsoleteHost("filebase\\.to\/files\/\\d+\/","//a[contains(@href,'filebase.to/files')]");
  5048. addObsoleteHost("kickload\\.com\/(?:file|get)\/","//a[contains(@href,'kickload.com/file') or contains(@href,'kickload.com/get')]");
  5049. addObsoleteHost("up-file\\.com\/files\/download\/\\w+\/","//a[contains(@href,'up-file.com/download')]");
  5050. addObsoleteHost("ezyfile\\.net\/\\w+","//a[contains(@href,'ezyfile.net/')]");
  5051. addObsoleteHost("k2files\\.com\/files","//a[contains(@href,'k2files.com/files')]");
  5052. addObsoleteHost("aiotool\\.net\/\\w+","//a[contains(@href,'aiotool.net/')]");
  5053. addObsoleteHost("xvideos\\.com\/files\/\\d+\/\\w+","//a[contains(@href,'xvideos.com/files')]");
  5054. addObsoleteHost("filebling\\.com\/dl\/\\d+\/\\d+\/\\w+","//a[contains(@href,'filebling.com/dl')]");
  5055. addObsoleteHost("loaded\\.it\/divx\/\\w+","//a[contains(@href,'loaded.it/divx')]");
  5056. addObsoleteHost("uploadcell\\.com\/\\w+\/\\w+","//a[contains(@href,'uploadcell.com')]");
  5057. addObsoleteHost("jakfile\\.com\/\\w+","//a[contains(@href,'jakfile.com/')]");
  5058. addObsoleteHost("uploadshare\\.cz\/download\/\\w+\/\\w+","//a[contains(@href,'uploadshare.cz/download')]");
  5059. addObsoleteHost("mangoshare\\.com\/\\w+","//a[contains(@href,'mangoshare.com')]");
  5060. addObsoleteHost("ugotfile\\.com\/file\/\\d+\/\\w+","//a[contains(@href,'ugotfile.com/file')]");
  5061. addObsoleteHost("filestab\\.com\/\\w+","//a[contains(@href,'filestab.com')]");
  5062. addObsoleteHost("dotavi\\.com\/\\w+\/.","//a[contains(@href,'dotavi.com/')]");
  5063. addObsoleteHost("crazyupload\\.com\/\\w+","//a[contains(@href,'crazyupload.com')]");
  5064. addObsoleteHost("gaiafile\\.com\/\\w+","//a[contains(@href,'gaiafile.com')]");
  5065. addObsoleteHost("sharejunky\\.com\/\\w+","//a[contains(@href,'sharejunky.com')]");
  5066. addObsoleteHost("fileho\\.com\/download\/\\d+","//a[contains(@href,'fileho.com/download')]");
  5067. addObsoleteHost("(?:bigandfree|BigAndFree)\\.com\/\\d+","//a[contains(@href,'bigandfree.com') or contains(@href,'BigAndFree.com')]");
  5068. addObsoleteHost("bigfile\\.in\/\\w+","//a[contains(@href,'bigfile.in')]");
  5069. addObsoleteHost("bigshare\\.eu\/download\\.php\\?id=","//a[contains(@href,'bigshare.eu/download.php')]");
  5070. addObsoleteHost("dahosting\\.org\/dl\/\\w+","//a[contains(@href,'dahosting.org/dl')]");
  5071. addObsoleteHost("digisofts\\.net\/\\w+","//a[contains(@href,'digisofts.net')]");
  5072. addObsoleteHost("file4save\\.com\/\\w+\/\\w+","//a[contains(@href,'file4save.com')]");
  5073. addObsoleteHost("filereactor\\.com\/\\w+","//a[contains(@href,'filereactor.com/')]");
  5074. addObsoleteHost("filechip\\.com\/\\w+","//a[contains(@href,'filechip.com')]");
  5075. addObsoleteHost("filescloud\\.com\/\\w+\/\\w+","//a[contains(@href,'filescloud.com')]");
  5076. addObsoleteHost("saveqube\\.com\/getfile\/\\w+","//a[contains(@href,'saveqube.com/getfile')]");
  5077. addObsoleteHost("www2\\.turboshare\\.de\/v\/\\d+","//a[contains(@href,'turboshare.de/v')]");
  5078. addObsoleteHost("z-upload\\.com\/\\w+","//a[contains(@href,'z-upload.com')]");
  5079. addObsoleteHost("youshare\\.com\/view\\.php","//a[contains(@href,'youshare.com/view')]");
  5080. addObsoleteHost("jiffyupload\\.com\/\\w+","//a[contains(@href,'jiffyupload.com')]");
  5081. addObsoleteHost("gigeshare\\.com\/preview\/\\w+","//a[contains(@href,'gigeshare.com')]");
  5082. addObsoleteHost("datenklo\\.net\/dl","//a[contains(@href,'datenklo.net')]");
  5083. addObsoleteHost("upload\\.dj\/download\\.php\\?id=\\w+","//a[contains(@href,'upload.dj/download.php')]");
  5084. addObsoleteHost("loadfiles\\.in\/\\w+\/","//a[contains(@href,'loadfiles.in')]");
  5085. addObsoleteHost("upit\\.to\/file:\\w+\/","//a[contains(@href,'upit.to/file')]");
  5086. addObsoleteHost("zshare\\.net\/(?:download|video|audio)\/\\w+","//a[contains(@href,'zshare.net/')]");
  5087. addObsoleteHost("refile\\.net\/f\/\\?\\w+","//a[contains(@href,'refile.net/f/')]");
  5088. addObsoleteHost("dsfileshare\\.com\/download","//a[contains(@href,'dsfileshare.com/download')]");
  5089. addObsoleteHost("sharesimple\\.net\/\\w{2}\/download","//a[contains(@href,'sharesimple.net')]");
  5090. addObsoleteHost("(?:s\\d+\\.|)4files\\.net\/\\d+","//a[contains(@href,'4files.net')]");
  5091. addObsoleteHost("odsiebie\\.com\/pokaz\/\\d+","//a[contains(@href,'odsiebie.com/pokaz')]");
  5092. addObsoleteHost("filenavi\\.com\/direct\/\\w+","//a[contains(@href,'filenavi.com/direct')]");
  5093. addObsoleteHost("3oof\\.com\/\\w+","//a[contains(@href,'3oof.com/')]");
  5094. addObsoleteHost("meshwaar\\.com\/\\w+","//a[contains(@href,'meshwaar.com')]");
  5095. addObsoleteHost("maxupload\\.com\/files\/\\w+","//a[contains(@href,'maxupload.com/files')]");
  5096. addObsoleteHost("share\\.cx\/videos\/\\d+","//a[contains(@href,'share.cx/videos')]");
  5097. addObsoleteHost("atserver\\.eu\/(?:\\w{2}\/|)download\/\\d+","//a[contains(@href,'atserver.eu')]");
  5098. addObsoleteHost("file2upload\\.net\/download\/\\d+","//a[contains(@href,'file2upload.net/download')]");
  5099. addObsoleteHost("filebling\\.com\/\\w+","//a[contains(@href,'filebling.com')]");
  5100. addObsoleteHost("turboshare\\.(?:eu|com)\/files","//a[contains(@href,'turboshare.') and contains(@href,'/files')]");
  5101. addObsoleteHost("rarhost\\.com\/download","//a[contains(@href,'rarhost.com/download')]");
  5102. addObsoleteHost("isharehd\\.com\/\\w+","//a[contains(@href,'isharehd.com')]");
  5103. addObsoleteHost("datenklo\\.net\/file\\.php\\?id=\\w+","//a[contains(@href,'datenklo.net/file.php')]");
  5104. addObsoleteHost("file2share\\.biz\/download\\.php\\?id=\\w+","//a[contains(@href,'file2share.biz/download.php')]");
  5105. addObsoleteHost("savefiles\\.net\/d\/\\w+\\.html","//a[contains(@href,'savefiles.net/d')]");
  5106. addObsoleteHost("bestsharing\\.com\/files\/\\w+","//a[contains(@href,'bestsharing.com/files')]");
  5107. addObsoleteHost("filecache\\.de\/\\d+","//a[contains(@href,'filecache.de/')]");
  5108. addObsoleteHost("i741\\.com\/files\/\\w+","//a[contains(@href,'i741.com/files')]");
  5109. addObsoleteHost("dataup\\.de\/\\d+","//a[contains(@href,'dataup.de')]");
  5110. addObsoleteHost("fofly\\.com\/\\w+","//a[contains(@href,'fofly.com')]");
  5111. addObsoleteHost("shareonall\\.com\/\\w+","//a[contains(@href,'shareonall.com')]");
  5112. addObsoleteHost("sexuploader\\.com\/(?:|..\/)\\?[d|v]=\\w{8}","//a[contains(@href,'sexuploader.com')]");
  5113. 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')]");
  5114. addObsoleteHost("uploadhyper\\.com\/file\/","//a[contains(@href,'uploadhyper.com')]");
  5115. addObsoleteHost("filespawn\\.com\/file\/","//a[contains(@href,'filespawn.com')]");
  5116. addObsoleteHost("caizzii\\.com\/(?:download|\\?file=)","//a[contains(@href,'caizzii.com')]");
  5117. addObsoleteHost("volnyweb\\.cz\/files\/get\/[\\w-_]+","//a[contains(@href,'volnyweb.cz/files')]");
  5118. addObsoleteHost("gotupload\\.com\/\\w+","//a[contains(@href,'gotupload.com/')]");
  5119. addObsoleteHost("mooload\\.com\/new\/file\\.php\\?file=files\/\\d+\/\\d+","//a[contains(@href,'mooload.com/new/file')]");
  5120. addObsoleteHost("z\\d+\\.zupload\\.com\/download\\.php\\?file=getfile&filepath=\\d+","//a[contains(@href,'zupload.com/download')]");
  5121. addObsoleteHost("mytempdir\\.com\/\\d+","//a[contains(@href,'mytempdir.com/')]");
  5122. addObsoleteHost("usershare\\.net\/\\w+","//a[contains(@href,'usershare.net/')]");
  5123. addObsoleteHost("qshare\\.com\/get\/\\d+\/.","//a[contains(@href,'qshare.com/get')]");
  5124. addObsoleteHost("filescash\\.net\/file\/\\d+","//a[contains(@href,'filescash.net/file')]");
  5125. addObsoleteHost("metahyper\\.com\/\\w+","//a[contains(@href,'metahyper.com/')]");
  5126. addObsoleteHost("combozip\\.com\/\\w+","//a[contains(@href,'combozip.com/')]");
  5127. addObsoleteHost("anonstream\\.com\/get_\\w+","//a[contains(@href,'anonstream.com/get_')]");
  5128. addObsoleteHost("x7\\.to\/\\w+","//a[contains(@href,'x7.to/')]");
  5129. addObsoleteHost("uploadbox\\.com\/files\/\\w+","//a[contains(@href,'uploadbox.com/files')]");
  5130. addObsoleteHost("(?:flyupload\\.)?(?:enterupload|flyupload)\\.com\/[\\?\\w]+","//a[contains(@href,'enterupload.com/') or contains(@href,'flyupload.com/')]");
  5131. addObsoleteHost("filepoint\\.de\/dl\/\\w+","//a[contains(@href,'filepoint.de/dl')]");
  5132. addObsoleteHost("icushare\\.com\/\\w+","//a[contains(@href,'icushare.com/')]");
  5133. addObsoleteHost("oron\\.com\/\\w+","//a[contains(@href,'oron.com/')]");
  5134. addObsoleteHost("mystream\\.to\/file\\-\\d+","//a[contains(@href,'mystream.to/file')]");
  5135. addObsoleteHost("x-fs\\.com\/download\\.php\\?id=\\w+","//a[contains(@href,'x-fs.com/download')]");
  5136. addObsoleteHost("srapid\\.eu\/\\w+","//a[contains(@href,'srapid.eu/')]");
  5137. addObsoleteHost("shareshared\\.com\/\\w+","//a[contains(@href,'shareshared.com/')]");
  5138. addObsoleteHost("sosame\\.cz\/\\w+","//a[contains(@href,'sosame.cz/')]");
  5139. addObsoleteHost("s\\d+\\.filesdump\\.com\/file\/\\w+","//a[contains(@href,'filesdump.com/file')]");
  5140. addObsoleteHost("2-klicks\\.de\/\\?d=\\w+","//a[contains(@href,'2-klicks.de/?d=')]");
  5141. addObsoleteHost("silofiles\\.com\/file\/\\d+","//a[contains(@href,'silofiles.com/file')]");
  5142. addObsoleteHost("upfile\\.in\/\\w+","//a[contains(@href,'upfile.in/')]");
  5143. addObsoleteHost("filehook\\.com\/\\w+","//a[contains(@href,'filehook.com/')]");
  5144. addObsoleteHost("mojofile\\.com\/\\w+","//a[contains(@href,'mojofile.com/')]");
  5145. addObsoleteHost("cloudcache\\.cc\/\\w+","//a[contains(@href,'cloudcache.cc/')]");
  5146. addObsoleteHost("1hostclick\\.com\/\\w+","//a[contains(@href,'1hostclick.com/')]");
  5147. addObsoleteHost("4bytez\\.com\/\\w+","//a[contains(@href,'4bytez.com/')]");
  5148. addObsoleteHost("uploadking\\.com\/\\w+","//a[contains(@href,'uploadking.com/')]");
  5149. addObsoleteHost("nahraj\\.cz\/(?:content|down)\/\\w+","//a[contains(@href,'nahraj.cz/')]");
  5150. addObsoleteHost("megarapid\\.eu\/files\/\\d+","//a[contains(@href,'megarapid.eu/files')]");
  5151. addObsoleteHost("(?:fileserve|uploadstation)\\.com\/(?:file|list)\/\\w+","//a[contains(@href,'fileserve.com/') or contains(@href,'uploadstation.com/')]");
  5152. addObsoleteHost("uploadhere\\.com\/\\w+","//a[contains(@href,'uploadhere.com/')]");
  5153. addObsoleteHost("dualshare\\.com\/\\w+","//a[contains(@href,'dualshare.com/')]");
  5154. addObsoleteHost("yourfilehost\\.com\/media","//a[contains(@href,'yourfilehost.com/media')]");
  5155. addObsoleteHost("ftp2share\\.com\/file\/\\w+","//a[contains(@href,'ftp2share.com/file')]");
  5156. addObsoleteHost("storeandserve\\.com\/download\/\\d+","//a[contains(@href,'storeandserve.com/download')]");
  5157. addObsoleteHost("mountfile\\.com\/file(?:\/\\w+){2}","//a[contains(@href,'mountfile.com/file')]");
  5158. addObsoleteHost("save\\.am\/files\/\\w+","//a[contains(@href,'save.am/files')]");
  5159. addObsoleteHost("transitfiles\\.com\/dl\/\\w+","//a[contains(@href,'transitfiles.com/dl')]");
  5160. addObsoleteHost("smartuploader\\.com\/file\\.php\\?f=\\d+","//a[contains(@href,'smartuploader.com/file.php?=')]");
  5161. addObsoleteHost("skipfile\\.com\/\\w+","//a[contains(@href,'skipfile.com/')]");
  5162. addObsoleteHost("stahnu\\.to\/[\\w\\?]+","//a[contains(@href,'stahnu.to/')]");
  5163. addObsoleteHost("flyshare\.cz\/(?:stahni\/|)\\d+","//a[contains(@href,'flyshare.cz/')]");
  5164. addObsoleteHost("(?:ddlani\\.me|ddlanime\\.com)\/\\w+","//a[contains(@href,'ddlani.me/') or contains(@href,'ddlanime.com/')]");
  5165. addObsoleteHost("loadly\\.com\/\\w+","//a[contains(@href,'loadly.com/')]");
  5166. addObsoleteHost("groovefile\\.com\/\\w+","//a[contains(@href,'groovefile.com/')]");
  5167. addObsoleteHost("filezlot\\.com\/\\w+","//a[contains(@href,'filezlot.com/')]");
  5168. addObsoleteHost("shareator\\.(?:net|com)\/\\w+","//a[contains(@href,'shareator.')]");
  5169. addObsoleteHost("yabadaba\\.ru\/files\/","//a[contains(@href,'yabadaba.ru/files/')]");
  5170. addObsoleteHost("rapidhide\\.com\/download\\.php\\?file=\\w+","//a[contains(@href,'rapidhide.com/download.php')]");
  5171. addObsoleteHost("filejungle\\.com\/[fl]\/\\w+","//a[contains(@href,'filejungle.com/')]");
  5172. addObsoleteHost("kewlshare\\.com\/dl\/\\d+","//a[contains(@href,'kewlshare.com/dl')]");
  5173. addObsoleteHost("petandrive\\.com\/file\/\\w+","//a[contains(@href,'petandrive.com/file')]");
  5174. addObsoleteHost("onionshare\\.com\/\\w+","//a[contains(@href,'onionshare.com/')]");
  5175. addObsoleteHost("rapidable\\.com\/\\w+\/download\\.php\\?id=","//a[contains(@href,'rapidable.com/')]");
  5176. addObsoleteHost("filesdump\\.com\/file\/\\w+\/\\d+","//a[contains(@href,'filesdump.com/file')]");
  5177. addObsoleteHost("file2box\\.(?:net|com)\/\\w+","//a[contains(@href,'file2box.')]");
  5178. addObsoleteHost("(?:filesonic|sharingmatrix|wupload)(?:\\.\\w+){1,2}\/(?:file|folder)\/\\w+","//a[contains(@href,'filesonic.') or contains(@href,'sharingmatrix.com') or contains(@href,'wupload.')]");
  5179. // addObsoleteHost("wizzupload\\.com\/\\w+","//a[contains(@href,'wizzupload.com/')]");
  5180. addObsoleteHost("bloggerarticles\\.com\/\\w+","//a[contains(@href,'bloggerarticles.com/')]");
  5181. addObsoleteHost("mojedata\\.sk/","//a[contains(@href,'mojedata.sk/')]");
  5182. addObsoleteHost("sharpfile\\.com\/\\w+","//a[contains(@href,'sharpfile.com/')]");
  5183. addObsoleteHost("upgrand\\.com\/\\w+","//a[contains(@href,'upgrand.com/')]");
  5184. addObsoleteHost("nasdilej\\.cz\/\\w+","//a[contains(@href,'nasdilej.cz/')]");
  5185. addObsoleteHost("mediatack\\.cz\/stahuj/\\w+","//a[contains(@href,'mediatack.cz/stahuj/')]");
  5186. addObsoleteHost("share-it\\.to\/file/\\w+","//a[contains(@href,'share-it.to/file/')]");
  5187. addObsoleteHost("primeupload\\.com\/file/\\w+","//a[contains(@href,'primeupload.com/file/')]");
  5188. addObsoleteHost("(?:uploads\\.glumbo|glumbouploads)\\.com\/\\w+","//a[contains(@href,'uploads.glumbo.com') or contains(@href,'glumbouploads.com')]");
  5189. addObsoleteHost("filebeer\\.info\/\\w+","//a[contains(@href,'filebeer.info/')]");
  5190. addObsoleteHost("baberepublic\\.com\/link\/\\w+","//a[contains(@href,'baberepublic.com/link/')]");
  5191. addObsoleteHost("xtu\\.me\/\\w+","//a[contains(@href,'xtu.me/')]");
  5192. addObsoleteHost("sharebase\\.de\/files\/\\w+","//a[contains(@href,'sharebase.de/files/')]");
  5193. addObsoleteHost("filerobo\\.com\/\\w+","//a[contains(@href,'filerobo.com/')]");
  5194. addObsoleteHost("filevelocity\\.com\/\\w+","//a[contains(@href,'filevelocity.com/')]");
  5195. addObsoleteHost("filezpro\\.com\/\\w+","//a[contains(@href,'filezpro.com/')]");
  5196. addObsoleteHost("file4sharing\\.com\/\\w+","//a[contains(@href,'file4sharing.com/')]");
  5197. addObsoleteHost("cing\\.be\/\\w+","//a[contains(@href,'cing.be/')]");
  5198. addObsoleteHost("ufile\\.eu\/\\w+","//a[contains(@href,'ufile.eu/')]");
  5199. addObsoleteHost("pigsonic\\.com\/\\w+","//a[contains(@href,'pigsonic.com/')]");
  5200. addObsoleteHost("fileupped\\.com\/\\w+","//a[contains(@href,'fileupped.com/')]");
  5201. addObsoleteHost("sharerun\\.com\/\\w+","//a[contains(@href,'sharerun.com/')]");
  5202. addObsoleteHost("rapidslnare\\.com\/\\w+","//a[contains(@href,'rapidslnare.com/')]");
  5203. addObsoleteHost("monsteruploads\\.eu\/\\w+","//a[contains(@href,'monsteruploads.eu/')]");
  5204. addObsoleteHost("b9bb\\.com\/\\w+","//a[contains(@href,'b9bb.com/')]");
  5205. addObsoleteHost("jamber\\.info\/\\w+","//a[contains(@href,'jamber.info/')]");
  5206. addObsoleteHost("(?:megaftp|MegaFTP)\\.com\/\\w+","//a[contains(@href,'megaftp.com/') or contains(@href,'MegaFTP.com/')]");
  5207. addObsoleteHost("desiupload\\.net\/\\?d=\\w+","//a[contains(@href,'desiupload.net/')]");
  5208. addObsoleteHost("file27\\.com\/\\w+","//a[contains(@href,'file27.com/')]");
  5209. addObsoleteHost("yastorage\\.com\/\\w+","//a[contains(@href,'yastorage.com/')]");
  5210. addObsoleteHost("filehost\\.ws\/\\w+","//a[contains(@href,'filehost.ws/')]");
  5211. addObsoleteHost("copyload\\.com\/\\w+","//a[contains(@href,'copyload.com/')]");
  5212. addObsoleteHost("venusfile\\.com\/\\w+","//a[contains(@href,'venusfile.com/')]");
  5213. addObsoleteHost("aieshare\\.com\/\\w+","//a[contains(@href,'aieshare.com/')]");
  5214. addObsoleteHost("fileza\\.net\/\\w+","//a[contains(@href,'fileza.net/')]");
  5215. addObsoleteHost("filerose\\.com\/\\w+","//a[contains(@href,'filerose.com/')]");
  5216. addObsoleteHost("squillion\\.com\/\\w+","//a[contains(@href,'squillion.com/')]");
  5217. addObsoleteHost("fileprohost\\.com\/\\w+","//a[contains(@href,'fileprohost.com/')]");
  5218. addObsoleteHost("bitbonus\\.com\/download\/\\w+","//a[contains(@href,'bitbonus.com/')]");
  5219. addObsoleteHost("warserver\\.cz\/\\w+","//a[contains(@href,'warserver.cz/')]");
  5220. addObsoleteHost("uload\\.to\/\\w+","//a[contains(@href,'uload.to/')]");
  5221. addObsoleteHost("sharedbit\\.net\/\\w+","//a[contains(@href,'sharedbit.net/')]");
  5222. addObsoleteHost("megaload\\.it\/\\w+","//a[contains(@href,'megaload.it/')]");
  5223. addObsoleteHost("filewinds\\.com\/\\w+","//a[contains(@href,'filewinds.com/')]");
  5224. addObsoleteHost("uploadcore\\.com\/\\w+","//a[contains(@href,'uploadcore.com/')]");
  5225. addObsoleteHost("syfiles\\.com\/\\w+","//a[contains(@href,'syfiles.com/')]");
  5226. addObsoleteHost("eyesfile\\.com\/\\w+","//a[contains(@href,'eyesfile.com/')]");
  5227. addObsoleteHost("hotfile\\.com\/\\w+","//a[contains(@href,'hotfile.com/')]");
  5228. addObsoleteHost("superupl\\.com\/\\w+","//a[contains(@href,'superupl.com/')]");
  5229. addObsoleteHost("oteupload\\.com\/\\w+","//a[contains(@href,'oteupload.com/')]");
  5230. addObsoleteHost("henchfile\\.com\/\\w+","//a[contains(@href,'henchfile.com/')]");
  5231. addObsoleteHost("HenchFile\\.com\/\\w+","//a[contains(@href,'HenchFile.com/')]");
  5232. addObsoleteHost("filegag\\.com\/\\w+","//a[contains(@href,'filegag.com/')]");
  5233. addObsoleteHost("filedefend\\.com\/\\w+","//a[contains(@href,'filedefend.com/')]");
  5234. addObsoleteHost("hotfiles\\.ws\/\\w+","//a[contains(@href,'hotfiles.ws/')]");
  5235. addObsoleteHost("share-rapid\\.com\/\\w+","//a[contains(@href,'share-rapid.com/')]");
  5236. //addObsoleteHost("sharerapid\\.cz\/\\w+","//a[contains(@href,'sharerapid.cz/')]");
  5237. addObsoleteHost("rapids\\.cz\/\\w+","//a[contains(@href,'rapids.cz/')]");
  5238. addObsoleteHost("share-credit\\.cz\/\\w+","//a[contains(@href,'share-credit.cz/')]");
  5239. addObsoleteHost("share-central\\.cz\/\\w+","//a[contains(@href,'share-central.cz/')]");
  5240. addObsoleteHost("share-ms\\.cz\/\\w+","//a[contains(@href,'share-ms.cz/')]");
  5241. addObsoleteHost("share-net\\.cz\/\\w+","//a[contains(@href,'share-net.cz/')]");
  5242. addObsoleteHost("srapid\\.cz\/\\w+","//a[contains(@href,'srapid.cz/')]");
  5243. addObsoleteHost("share-rapid\\.cz\/\\w+","//a[contains(@href,'share-rapid.cz/')]");
  5244. addObsoleteHost("wooupload\\.com\/\\w+","//a[contains(@href,'wooupload.com/')]");
  5245. addObsoleteHost("megabitshare\\.com\/\\w+","//a[contains(@href,'megabitshare.com/')]");
  5246. addObsoleteHost("uploking\\.com\/\\w+","//a[contains(@href,'uploking.com/')]");
  5247. addObsoleteHost("esnips\\.com\/\\w+","//a[contains(@href,'esnips.com/')]");
  5248. addObsoleteHost("uplly\\.com\/\\w+","//a[contains(@href,'uplly.com/')]");
  5249. addObsoleteHost("ufox\\.com\/\\w+","//a[contains(@href,'ufox.com/')]");
  5250. addObsoleteHost("clz\\.to\/\\w+","//a[contains(@href,'clz.to/')]");
  5251. addObsoleteHost("cloudzer\\.net\/\\w+","//a[contains(@href,'cloudzer.net/')]");
  5252. addObsoleteHost("cloudzer\\.com\/\\w+","//a[contains(@href,'cloudzer.com/')]");
  5253. addObsoleteHost("extabit\\.com\/\\w+","//a[contains(@href,'extabit.com/')]");
  5254. addObsoleteHost("uploadwaste\\.com\/\\w+","//a[contains(@href,'uploadwaste.com/')]");
  5255. addObsoleteHost("247upload\\.com\/\\w+","//a[contains(@href,'uploadwaste.com/')]");
  5256. addObsoleteHost("2download\\.de\/\\w+","//a[contains(@href,'2download.de/')]");
  5257. addObsoleteHost("4fastfile\\.com\/\\w+","//a[contains(@href,'4fastfile.com/')]");
  5258. addObsoleteHost("asixfiles\\.com\/\\w+","//a[contains(@href,'asixfiles.com/')]");
  5259. addObsoleteHost("berofile\\.com\/\\w+","//a[contains(@href,'berofile.com/')]");
  5260. addObsoleteHost("bigupload\\.com\/\\w+","//a[contains(@href,'bigupload.com/')]");
  5261. addObsoleteHost("cepzo\\.com\/\\w+","//a[contains(@href,'cepzo.com/')]");
  5262. addObsoleteHost("czshare\\.com\/\\w+","//a[contains(@href,'czshare.com/')]");
  5263. addObsoleteHost("clouds\\.to\/\\w+","//a[contains(@href,'clouds.to/')]");
  5264. addObsoleteHost("cobrashare\\.sk\/\\w+","//a[contains(@href,'cobrashare.sk/')]");
  5265. addObsoleteHost("coraldrive\\.net\/\\w+","//a[contains(@href,'coraldrive.net/')]");
  5266. addObsoleteHost("cyberlocker\\.ch\/\\w+","//a[contains(@href,'cyberlocker.ch/')]");
  5267. addObsoleteHost("darkport\\.org\/\\w+","//a[contains(@href,'darkport.org/')]");
  5268. addObsoleteHost("dark-uploads\\.com\/\\w+","//a[contains(@href,'dark-uploads.com/')]");
  5269. addObsoleteHost("davvas\\.com\/\\w+","//a[contains(@href,'davvas.com/')]");
  5270. addObsoleteHost("enigmashare\\.com\/\\w+","//a[contains(@href,'enigmashare.com/')]");
  5271. addObsoleteHost("erofly\\.cz\/\\w+","//a[contains(@href,'erofly.cz/')]");
  5272. addObsoleteHost("fastsonic\\.net\/\\w+","//a[contains(@href,'fastsonic.net/')]");
  5273. addObsoleteHost("filebox\\.com\/\\w+","//a[contains(@href,'filebox.com/')]");
  5274. addObsoleteHost("filecity\\.net\/\\w+","//a[contains(@href,'filecity.net/')]");
  5275. addObsoleteHost("filedap\\.com\/\\w+","//a[contains(@href,'filedap.com/')]");
  5276. addObsoleteHost("filedino\\.com\/\\w+","//a[contains(@href,'filedino.com/')]");
  5277. addObsoleteHost("filedownloads\\.org\/\\w+","//a[contains(@href,'filedownloads.org/')]");
  5278. addObsoleteHost("filefolks\\.com\/\\w+","//a[contains(@href,'filefolks.com/')]");
  5279. addObsoleteHost("fileking\\.co\/\\w+","//a[contains(@href,'fileking.co/')]");
  5280. addObsoleteHost("filemates\\.com\/\\w+","//a[contains(@href,'filemates.com/')]");
  5281. addObsoleteHost("files\\.to\/\\w+","//a[contains(@href,'files.to/')]");
  5282. addObsoleteHost("files2k\\.eu\/\\w+","//a[contains(@href,'files2k.eu/')]");
  5283. addObsoleteHost("filesector\\.cc\/\\w+","//a[contains(@href,'filesector.cc/')]");
  5284. addObsoleteHost("filesega\\.com\/\\w+","//a[contains(@href,'filesega.com/')]");
  5285. addObsoleteHost("filesend\\.net\/\\w+","//a[contains(@href,'filesend.net/')]");
  5286. addObsoleteHost("filestay\\.com\/\\w+","//a[contains(@href,'filestay.com/')]");
  5287. addObsoleteHost("filestrum\\.com\/\\w+","//a[contains(@href,'filestrum.com/')]");
  5288. addObsoleteHost("fileuplo\\.de\/\\w+","//a[contains(@href,'fileuplo.de/')]");
  5289. addObsoleteHost("fileupup\\.com\/\\w+","//a[contains(@href,'fileupup.com/')]");
  5290. addObsoleteHost("forunesia\\.com\/\\w+","//a[contains(@href,'forunesia.com/')]");
  5291. addObsoleteHost("freeuploads\\.fr\/\\w+","//a[contains(@href,'freeuploads.fr/')]");
  5292. addObsoleteHost("uploa\\.dk\/\\w+","//a[contains(@href,'uploa.dk/')]");
  5293. addObsoleteHost("getthebit\\.com\/\\w+","//a[contains(@href,'getthebit.com/')]");
  5294. addObsoleteHost("getzilla\\.net\/\\w+","//a[contains(@href,'getzilla.net/')]");
  5295. addObsoleteHost("goldfile\\.eu\/\\w+","//a[contains(@href,'goldfile.eu/')]");
  5296. addObsoleteHost("good\\.com\/\\w+","//a[contains(@href,'good.com/')]");
  5297. addObsoleteHost("grupload\\.com\/\\w+","//a[contains(@href,'grupload.com/')]");
  5298. addObsoleteHost("hellfile\\.com\/\\w+","//a[contains(@href,'hellfile.com/')]");
  5299. addObsoleteHost("hipfile\\.com\/\\w+","//a[contains(@href,'hipfile.com/')]");
  5300. addObsoleteHost("hitfile\\.com\/\\w+","//a[contains(@href,'hitfile.com/')]");
  5301. addObsoleteHost("hulkfile\\.eu\/\\w+","//a[contains(@href,'hulkfile.eu/')]");
  5302. addObsoleteHost("i-filez\\.com\/\\w+","//a[contains(@href,'i-filez.com/')]");
  5303. addObsoleteHost("ifile\\.ws\/\\w+","//a[contains(@href,'ifile.ws/')]");
  5304. addObsoleteHost("kupload\\.org\/\\w+","//a[contains(@href,'kupload.org/')]");
  5305. addObsoleteHost("duckfile\\.net\/\\w+","//a[contains(@href,'duckfile.net/')]");
  5306. addObsoleteHost("packupload\\.com\/\\w+","//a[contains(@href,'packupload.com/')]");
  5307. addObsoleteHost("terafile\\.com\/\\w+","//a[contains(@href,'terafile.com/')]");
  5308. addObsoleteHost("terafile\\.co\/\\w+","//a[contains(@href,'terafile.co/')]");
  5309. addObsoleteHost("fileom\\.com\/\\w+","//a[contains(@href,'fileom.com/')]");
  5310. addObsoleteHost("luckyshare\\.net\/\\w+","//a[contains(@href,'luckyshare.net/')]");
  5311. addObsoleteHost("lemuploads\\.com\/\\w+","//a[contains(@href,'lemuploads.com/')]");
  5312. addObsoleteHost("limelinx\\.com\/\\w+","//a[contains(@href,'limelinx.com/')]");
  5313. addObsoleteHost("maxshare\\.pl\/\\w+","//a[contains(@href,'maxshare.pl/')]");
  5314. addObsoleteHost("megarelease\\.org\/\\w+","//a[contains(@href,'megarelease.org/')]");
  5315. addObsoleteHost("megashare\\.com\/\\w+","//a[contains(@href,'megashare.com/')]");
  5316. addObsoleteHost("minus\\.com\/\\w+","//a[contains(@href,'minus.com/')]");
  5317. addObsoleteHost("mlfat4arab\\.com\/\\w+","//a[contains(@href,'mlfat4arab.com/')]");
  5318. addObsoleteHost("multishare\\.cz\/\\w+","//a[contains(@href,'multishare.cz/')]");
  5319. addObsoleteHost("nirafile\\.com\/\\w+","//a[contains(@href,'nirafile.com/')]");
  5320. addObsoleteHost("ok2upload\\.com\/\\w+","//a[contains(@href,'ok2upload.com/')]");
  5321. addObsoleteHost("peejeshare\\.com\/\\w+","//a[contains(@href,'peejeshare.com/')]");
  5322. addObsoleteHost("premiuns\\.org\/\\w+","//a[contains(@href,'premiuns.org/')]");
  5323. addObsoleteHost("przeklej\\.net\/\\w+","//a[contains(@href,'przeklej.net/')]");
  5324. addObsoleteHost("qkup\\.net\/\\w+","//a[contains(@href,'qkup.net/')]");
  5325. addObsoleteHost("rapidupload\\.sk\/\\w+","//a[contains(@href,'rapidupload.sk/')]");
  5326. addObsoleteHost("rockdizfile\\.com\/\\w+","//a[contains(@href,'rockdizfile.com/')]");
  5327. addObsoleteHost("rocketfile\\.net\/\\w+","//a[contains(@href,'rocketfile.net/')]");
  5328. addObsoleteHost("share-now\\.net\/\\w+","//a[contains(@href,'share-now.net/')]");
  5329. addObsoleteHost("share76\\.com\/\\w+","//a[contains(@href,'share76.com/')]");
  5330. addObsoleteHost("sharebees\\.com\/\\w+","//a[contains(@href,'sharebees.com/')]");
  5331. addObsoleteHost("sharefiles\\.co\/\\w+","//a[contains(@href,'sharefiles.co/')]");
  5332. addObsoleteHost("slingfile\\.com\/\\w+","//a[contains(@href,'slingfile.com/')]");
  5333. addObsoleteHost("sms4file\\.com\/\\w+","//a[contains(@href,'sms4file.com/')]");
  5334. addObsoleteHost("space4file\\.com\/\\w+","//a[contains(@href,'space4file.com/')]");
  5335. addObsoleteHost("tigershare\\.net\/\\w+","//a[contains(@href,'tigershare.net/')]");
  5336. addObsoleteHost("toucansharing\\.com\/\\w+","//a[contains(@href,'toucansharing.com/')]");
  5337. addObsoleteHost("ubuntuone\\.com\/\\w+","//a[contains(@href,'ubuntuone.com/')]");
  5338. addObsoleteHost("unextfiles\\.com\/\\w+","//a[contains(@href,'unextfiles.com/')]");
  5339. addObsoleteHost("upaj\\.pl\/\\w+","//a[contains(@href,'upaj.pl/')]");
  5340. addObsoleteHost("upfile\\.biz\/\\w+","//a[contains(@href,'upfile.biz/')]");
  5341. addObsoleteHost("uploadbin\\.net\/\\w+","//a[contains(@href,'uploadbin.net/')]");
  5342. addObsoleteHost("uploadic\\.com\/\\w+","//a[contains(@href,'uploadic.com/')]");
  5343. addObsoleteHost("uploadinc\\.com\/\\w+","//a[contains(@href,'uploadinc.com/')]");
  5344. addObsoleteHost("uploading4u\\.eu\/\\w+","//a[contains(@href,'uploading4u.eu/')]");
  5345. addObsoleteHost("uploadjet\\.net\/\\w+","//a[contains(@href,'uploadjet.net/')]");
  5346. addObsoleteHost("uploadorb\\.com\/\\w+","//a[contains(@href,'uploadorb.com/')]");
  5347. addObsoleteHost("upthe\\.net\/\\w+","//a[contains(@href,'upthe.net/')]");
  5348. addObsoleteHost("uptorch\\.com\/\\w+","//a[contains(@href,'uptorch.com/')]");
  5349. addObsoleteHost("vidbox\\.yt\/\\w+","//a[contains(@href,'vidbox.yt/')]");
  5350. addObsoleteHost("videozer\\.com\/\\w+","//a[contains(@href,'videozer.com/')]");
  5351. addObsoleteHost("vreer\\.com\/\\w+","//a[contains(@href,'vreer.com/')]");
  5352. addObsoleteHost("wallobit\\.com\/\\w+","//a[contains(@href,'wallobit.com/')]");
  5353. addObsoleteHost("zooupload\\.com\/\\w+","//a[contains(@href,'zooupload.com/')]");
  5354. addObsoleteHost("xerver\\.co\/\\w+","//a[contains(@href,'xerver.co/')]");
  5355. addObsoleteHost("privatefiles\\.com\/\\w+","//a[contains(@href,'privatefiles.com/')]");
  5356. addObsoleteHost("bitshare\\.com\/\\w+","//a[contains(@href,'bitshare.com/')]");
  5357. addObsoleteHost("asfile\\.com\/\\w+","//a[contains(@href,'asfile.com/')]");
  5358. addObsoleteHost("billionuploads\\.com\/\\w+","//a[contains(@href,'billionuploads.com/')]");
  5359. addObsoleteHost("\\*{7,100}\/[\\w\\d]+","//a[contains(@href,'*******/')]");
  5360. addObsoleteHost("filesaur\\.com\/\\w+","//a[contains(@href,'filesaur.com/')]");
  5361. addObsoleteHost("rapidshare\\.com\/\\w+","//a[contains(@href,'rapidshare.com/')]");
  5362. addObsoleteHost("rapidshare\\.ru\/\\w+","//a[contains(@href,'rapidshare.ru/')]");
  5363. addObsoleteHost("filesfrog\\.net\/\\w+","//a[contains(@href,'filesfrog.net/')]");
  5364. addObsoleteHost("4savefile\\.com\/\\w+","//a[contains(@href,'4savefile.com/')]");
  5365. addObsoleteHost("bayfiles\\.com\/\\w+","//a[contains(@href,'bayfiles.com/')]");
  5366. addObsoleteHost("bayfiles\\.net\/\\w+","//a[contains(@href,'bayfiles.net/')]");
  5367. addObsoleteHost("dodane\\.pl\/\\w+","//a[contains(@href,'dodane.pl/')]");
  5368. addObsoleteHost("dotsemper\\.com\/\\w+","//a[contains(@href,'dotsemper.com/')]");
  5369. addObsoleteHost("egofiles\\.com\/\\w+","//a[contains(@href,'egofiles.com/')]");
  5370. addObsoleteHost("epicshare\\.net\/\\w+","//a[contains(@href,'epicshare.net/')]");
  5371. addObsoleteHost("fiberupload\\.net\/\\w+","//a[contains(@href,'fiberupload.net/')]");
  5372. addObsoleteHost("filemonkey\\.in\/\\w+","//a[contains(@href,'filemonkey.in/')]");
  5373. addObsoleteHost("filemonster\\.net\/\\w+","//a[contains(@href,'filemonster.net/')]");
  5374. addObsoleteHost("filepom\\.com\/\\w+","//a[contains(@href,'filepom.com/')]");
  5375. addObsoleteHost("filesbb\\.com\/\\w+","//a[contains(@href,'filesbb.com/')]");
  5376. addObsoleteHost("fileshareup\\.com\/\\w+","//a[contains(@href,'fileshareup.com/')]");
  5377. addObsoleteHost("filevice\\.com\/\\w+","//a[contains(@href,'filevice.com/')]");
  5378. addObsoleteHost("gigaup\\.fr\/\\w+","//a[contains(@href,'gigaup.fr/')]");
  5379. addObsoleteHost("inafile\\.com\/\\w+","//a[contains(@href,'inafile.com/')]");
  5380. addObsoleteHost("isavelink\\.com\/\\w+","//a[contains(@href,'isavelink.com/')]");
  5381. addObsoleteHost("loombo\\.com\/\\w+","//a[contains(@href,'loombo.com/')]");
  5382. addObsoleteHost("megafiles\\.se\/\\w+","//a[contains(@href,'megafiles.se/')]");
  5383. addObsoleteHost("migupload\\.com\/\\w+","//a[contains(@href,'migupload.com/')]");
  5384. addObsoleteHost("mydisc\\.net\/\\w+","//a[contains(@href,'mydisc.net/')]");
  5385. addObsoleteHost("nitrobits\\.com\/\\w+","//a[contains(@href,'nitrobits.com/')]");
  5386. addObsoleteHost("potload\\.com\/\\w+","//a[contains(@href,'potload.com/')]");
  5387. addObsoleteHost("redload\\.net\/\\w+","//a[contains(@href,'redload.net/')]");
  5388. addObsoleteHost("shareprofi\\.com\/\\w+","//a[contains(@href,'shareprofi.com/')]");
  5389. addObsoleteHost("sharesuper\\.info\/\\w+","//a[contains(@href,'sharesuper.info/')]");
  5390. addObsoleteHost("sinhro\\.net\/\\w+","//a[contains(@href,'sinhro.net/')]");
  5391. addObsoleteHost("speedfile\\.cz\/\\w+","//a[contains(@href,'speedfile.cz/')]");
  5392. addObsoleteHost("speedshare\\.org\/\\w+","//a[contains(@href,'speedshare.org/')]");
  5393. addObsoleteHost("storage.novoro\\.net\/\\w+","//a[contains(@href,'storage.novoro.net/')]");
  5394. addObsoleteHost("swankshare\\.com\/\\w+","//a[contains(@href,'swankshare.com/')]");
  5395. addObsoleteHost("swatupload\\.com\/\\w+","//a[contains(@href,'swatupload.com/')]");
  5396. addObsoleteHost("upafile\\.com\/\\w+","//a[contains(@href,'upafile.com/')]");
  5397. addObsoleteHost("uploadmachine\\.com\/\\w+","//a[contains(@href,'uploadmachine.com/')]");
  5398. addObsoleteHost("uploadsat\\.com\/\\w+","//a[contains(@href,'uploadsat.com/')]");
  5399. addObsoleteHost("upshared\\.com\/\\w+","//a[contains(@href,'upshared.com/')]");
  5400. addObsoleteHost("usefile\\.com\/\\w+","//a[contains(@href,'usefile.com/')]");
  5401. addObsoleteHost("yourfiles\\.to\/\\w+","//a[contains(@href,'yourfiles.to/')]");
  5402. addObsoleteHost("zomgupload\\.com\/\\w+","//a[contains(@href,'zomgupload.com/')]");
  5403. addObsoleteHost("~[\\w\\s~]*","//a[contains(@href,'//~') or contains(@href,'//www.~')]");
  5404. addObsoleteHost("filemup\\.com\/\\w+","//a[contains(@href,'filemup.com/')]");
  5405. addObsoleteHost("tuxfile\\.com\/\\w+","//a[contains(@href,'tuxfile.com/')]");
  5406. addObsoleteHost("ultramegabit\\.com\/\\w+","//a[contains(@href,'ultramegabit.com/')]");
  5407. addObsoleteHost("uploadto\\.us\/\\w+","//a[contains(@href,'uploadto.us/')]");
  5408. addObsoleteHost("filecore\\.co\\.nz\/\\w+","//a[contains(@href,'filecore.co.nz/')]");
  5409. addObsoleteHost("fileshare\\.in\\.ua\/\\w+","//a[contains(@href,'fileshare.in.ua/')]");
  5410. addObsoleteHost("firedrive\\.com\/\\w+","//a[contains(@href,'firedrive.com/')]");
  5411. addObsoleteHost("putlocker\\.com\/\\w+","//a[contains(@href,'putlocker.com/')]");
  5412. addObsoleteHost("lumfile\\.com\/\\w+","//a[contains(@href,'lumfile.com/')]");
  5413. addObsoleteHost("lumfile\\.se\/\\w+","//a[contains(@href,'lumfile.se/')]");
  5414. addObsoleteHost("lumfile\\.eu\/\\w+","//a[contains(@href,'lumfile.eu/')]");
  5415. addObsoleteHost("shared\\.com\/\\w+","//a[contains(@href,'shared.com/')]");
  5416. addObsoleteHost("stahovadlo\\.cz\/\\w+","//a[contains(@href,'stahovadlo.cz/')]");
  5417. addObsoleteHost("dizzcloud\\.com\/\\w+","//a[contains(@href,'dizzcloud.com/')]");
  5418. addObsoleteHost("ddlstorage\\.com\/\\w+","//a[contains(@href,'ddlstorage.com/')]");
  5419. addObsoleteHost("dataport\\.cz\/\\w+","//a[contains(@href,'dataport.cz/')]");
  5420. addObsoleteHost("daj\\.to\/\\w+","//a[contains(@href,'daj.to/')]");
  5421. addObsoleteHost("sockshare\\.com\/\\w+","//a[contains(@href,'sockshare.com/')]");
  5422. addObsoleteHost("2drive\\.net\/\\w+","//a[contains(@href,'2drive.net/')]");
  5423. addObsoleteHost("bl\\.st\/\\w+","//a[contains(@href,'bl.st/')]");
  5424. addObsoleteHost("uncapped-downloads\\.com\/\\w+","//a[contains(@href,'uncapped-downloads.com/')]");
  5425. // obsolete start
  5426. }
  5427. //obsolete file hosts init end
  5428.  
  5429. function addFileHost(linkRegex, isAliveRegex, isDeadRegex, isUnavaRegex, xpathEx, tryLoop, ispremRegex)
  5430. {
  5431. var host = new Array(7);
  5432. host[0] = linkRegex;
  5433. host[1] = isAliveRegex;
  5434. host[2] = isDeadRegex;
  5435. host[3] = isUnavaRegex;
  5436. host[6] = ispremRegex;
  5437. host[4] = xpathEx;
  5438. tryLoop ? host[5] = true : host[5] = false;
  5439. http_file_hosts.push(host);
  5440. }
  5441. if (GM_getValue("Check_megafileupload_dot_com_links", false))
  5442. {
  5443. addFileHost(
  5444. "megafileupload\.com\/..\/file\/",
  5445. 'downloadbtn',
  5446. 'is not found',
  5447. 'optional--',
  5448. "//a[contains(@href,'megafileupload.com')]");
  5449. }
  5450. if (GM_getValue("Check_demo_dot_ovh_dot_eu_links", false))
  5451. {
  5452. addFileHost(
  5453. "demo\\.ovh\\.eu\/\\w+\/\\w+",
  5454. 'download\\.gif"',
  5455. 'p_point">',
  5456. 'optional--',
  5457. "//a[contains(@href,'demo.ovh.eu')]");
  5458. }
  5459. if (GM_getValue("Check_xkeepfile_dot_com_links", false))
  5460. {
  5461. addFileHost(
  5462. "xkeepfile\.com\/\\w+",
  5463. 'File has been found|Click here to download',
  5464. 'File cannot be found|class="error">',
  5465. 'optional--',
  5466. //'optional--',
  5467. "//a[contains(@href,'xkeepfile.com/') or contains(@href,'Gamesena.com/')]");
  5468. }
  5469. if (GM_getValue("Check_safelinking_dot_net_links", false))
  5470. {
  5471. addFileHost(
  5472. "safelinking\\.net\/p\/\\w+",
  5473. 'color:green;"',
  5474. 'color:(?:red|orange);"',
  5475. 'color:(?:grey|brown);"',
  5476. "//a[contains(@href,'safelinking.net/p/')]",
  5477. true);
  5478. }
  5479. /* if (GM_getValue("Check_ultramegabit_dot_com_links", false))
  5480. {
  5481. addFileHost(
  5482. "ultramegabit\\.com\/file\/details\/[\\w+-]",
  5483. 'name="recaptcha_response',
  5484. '="/folder/add"|>File (?:not found|restricted|has been deleted)|<title>ULTRAMEGABIT</title>',
  5485. 'btn-large btn-danger">|Account limitation notice|502 Bad Gateway',
  5486. "//a[contains(@href,'ultramegabit.com/file')]",
  5487. true);
  5488. } */
  5489. if (GM_getValue("Check_fastshare_dot_cz_links", false))
  5490. {
  5491. addFileHost(
  5492. "fastshare\\.cz\/\\d+\/\\w*",
  5493. 'dwntable">',
  5494. 'nebyla nalezena|nebola nájdená|nie została odnaleziona|color:red;font-weight:bold;border\\-style:dashed|<i class="fa fa-copyright"></i>',
  5495. 'optional--',
  5496. "//a[contains(@href,'fastshare.cz')]");
  5497. }
  5498. if (GM_getValue("Check_fastshare_dot_org_links", false))
  5499. {
  5500. addFileHost(
  5501. "[fF]ast[sS]hare\\.org\/download",
  5502. 'Download ">',
  5503. 'Diese Datei wurde wegen|wurde kein Dateiname',
  5504. 'optional--',
  5505. "//a[contains(@href,'fastshare.org/download') or contains(@href,'FastShare.org/download')]");
  5506. }
  5507. if (GM_getValue("Check_partage_dash_facile_dot_com_links", false))
  5508. {
  5509. addFileHost(
  5510. "partage-facile\.com\/\\w+",
  5511. 'class="title"><strong>|colspan="2"',
  5512. 'Page introuvable|class="alert-message',
  5513. 'optional--',
  5514. "//a[contains(@href,'partage-facile.com')]");
  5515. }
  5516. if (GM_getValue("Check_rapidgator_dot_net_links", false))
  5517. {
  5518. addFileHost(
  5519. "rapidgator\\.net\/file\/\\w+",
  5520. '/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',
  5521. 'Error 404|File not found|Error 500|Файл не найден|File not found|Select your plan',
  5522. 'optional--',
  5523. "//a[contains(@href,'rapidgator.net/file')]",
  5524. true
  5525. );
  5526. }
  5527. if (GM_getValue("Check_relink_dot_us_links", false))
  5528. {
  5529. addFileHost(
  5530. "relink\\.us\/(?:f\/\\w+|go\\.php\\?id=\\d+|view\\.php\\?id=\\d+)",
  5531. 'online_detail\\.png" alt="Status',
  5532. '(?:offline|partially)_detail\\.png" alt="Status|File deleted',
  5533. 'unknown_detail\\.png" alt="Status',
  5534. "//a[contains(@href,'relink.us/')]"
  5535. );
  5536. }
  5537. if (GM_getValue("Check_uploadstube_dot_de_links", false))
  5538. {
  5539. addFileHost(
  5540. "uploadstube\\.de\/download\\.php\\?file=\\d+",
  5541. 'div id="dl"',
  5542. 'Sie haben den Link falsch',
  5543. 'optional--',
  5544. "//a[contains(@href,'uploadstube.de/download.php?file=')]"
  5545. );
  5546. }
  5547. if (GM_getValue("Check_flyfiles_dot_net_links", false))
  5548. {
  5549. addFileHost(
  5550. "flyfiles\\.net\/\\w+",
  5551. 'download_button"|"Download file"',
  5552. 'File not found!|Файл не найден',
  5553. 'optional--',
  5554. "//a[contains(@href,'flyfiles.net/')]"
  5555. );
  5556. }
  5557. if (GM_getValue("Check_wikiupload_dot_com_links", false))
  5558. {
  5559. addFileHost(
  5560. "wikiupload\\.com\/\\w+",
  5561. 'download-button">',
  5562. 'Sorry, File not found',
  5563. 'optional--',
  5564. "//a[contains(@href,'wikiupload.com/')]"
  5565. );
  5566. }
  5567. if (GM_getValue("Check_hostuje_dot_net_links", false))
  5568. {
  5569. addFileHost(
  5570. "hostuje\\.net\/file\\.php\\?id=\\w+",
  5571. 'file\\.php">|Pobierz Plik',
  5572. 'Podany plik nie zosta',
  5573. 'optional--',
  5574. "//a[contains(@href,'hostuje.net/file')]"
  5575. );
  5576. }
  5577. if (GM_getValue("Check_gettyfile_dot_ru_links", false))
  5578. {
  5579. addFileHost(
  5580. "gettyfile\\.ru\/\\d+",
  5581. 'download\\.gif border',
  5582. '<center><font size="3">',
  5583. 'optional--',
  5584. "//a[contains(@href,'gettyfile.ru/')]"
  5585. );
  5586. }
  5587. if (GM_getValue("Check_tufiles_dot_ru_links", false))
  5588. {
  5589. addFileHost(
  5590. "(?:tufiles|turbob1t|failoobmenik|filesmail|firebit|dlbit|files\\.china\\-gsm|3aka4aem|file\\.piratski|mnogofiles|links-free|turbo-bit|turbosfiles)\\.\\w+\/\\w+",
  5591. 'download\\-file">',
  5592. 'col-1">\\s*<h1>',
  5593. 'optional--',
  5594. "//a[contains(@href,'tufiles.ru/') or contains(@href,'turbob1t.ru/') or contains(@href,'filesmail.ru/') or contains(@href,'failoobmenik.ru/')"+
  5595. " or contains(@href,'firebit.in/') or contains(@href,'dlbit.net/') or contains(@href,'files.china-gsm.ru/') or contains(@href,'3aka4aem.ru/')"+
  5596. " or contains(@href,'file.piratski.ru/') or contains(@href,'mnogofiles.com/') or contains(@href,'links-free.ru/')"+
  5597. " or contains(@href,'turbo-bit.ru/') or contains(@href,'turbosfiles.ru/')]"
  5598. );
  5599. }
  5600. if (GM_getValue("Check_data_dot_hu_links", false))
  5601. {
  5602. addFileHost(
  5603. "data\\.hu\/get\/\\d+\/",
  5604. 'download_box_button',
  5605. 'missing\\.php',
  5606. 'optional--',
  5607. "//a[contains(@href,'data.hu/get')]",
  5608. true
  5609. );
  5610. }
  5611. if (GM_getValue("Check_filesmelt_dot_com_links", false))
  5612. {
  5613. addFileHost(
  5614. "filesmelt\\.com\/dl\/\\w+",
  5615. '(Your download is ready|Download File)',
  5616. 'Sorry, but your',
  5617. 'optional--',
  5618. "//a[contains(@href,'filesmelt.com/dl')]"
  5619. );
  5620. }
  5621. if (GM_getValue("Check_indowebster_dot_com_links", false))
  5622. {
  5623. addFileHost(
  5624. "(?:files\\.)?indowebster\\.com\/download\/\\w+\/",
  5625. 'premiumBtn"',
  5626. 'errorMessage"',
  5627. 'optional--',
  5628. "//a[contains(@href,'indowebster.com/download')]"
  5629. );
  5630. }
  5631. if (GM_getValue("Check_superload_dot_cz_links", false))
  5632. {
  5633. addFileHost(
  5634. "superload\\.cz\/dl\/\\w+",
  5635. 'icon-download">',
  5636. 'soubor nebyl nalezen',
  5637. 'optional--',
  5638. "//a[contains(@href,'superload.cz/dl')]"
  5639. );
  5640. }
  5641. if (GM_getValue("Check_hulkfile_dot_eu_links", false))
  5642. {
  5643. addFileHost(
  5644. "(?:w\\.hulkfile\\.com|hulkfile\\.eu)\/\\w+",
  5645. 'op" value="download',
  5646. 'class="err">|width:500px;text-align:left;">',
  5647. 'optional--',
  5648. "//a[contains(@href,'hulkfile.')]"
  5649. );
  5650. }
  5651. if (GM_getValue("Check_easybytez_dot_com_links", false))
  5652. {
  5653. addFileHost(
  5654. "easybytez\\.com\/\\w+",
  5655. 'op" value="download',
  5656. 'stop_error\\.gif',
  5657. 'optional--',
  5658. "//a[contains(@href,'easybytez.com/')]"
  5659. );
  5660. }
  5661. if (GM_getValue("Check_filestore_dot_com_dot_ua_links", false))
  5662. {
  5663. addFileHost(
  5664. "filestore\\.com\\.ua\/\\?d=\\w+",
  5665. 'tdrow1>',
  5666. 'class=warn',
  5667. 'optional--',
  5668. "//a[contains(@href,'filestore.com.ua/?d=')]"
  5669. );
  5670. }
  5671. if (GM_getValue("Check_netkups_dot_com_links", false))
  5672. {
  5673. addFileHost(
  5674. "netkups\\.com\/\\?d=\\w+",
  5675. 'submit">Continue',
  5676. 'page">File not found|deleted due to inactivity',
  5677. 'optional--',
  5678. "//a[contains(@href,'netkups.com/?d=')]"
  5679. );
  5680. }
  5681. if (GM_getValue("Check_openfile_dot_ru_links", false))
  5682. {
  5683. addFileHost(
  5684. "openfile\\.ru\/(?:video\/|)\\d+",
  5685. 'videobox_left">',
  5686. 'blog_title">|not found on this server',
  5687. 'optional--',
  5688. "//a[contains(@href,'openfile.ru/')]"
  5689. );
  5690. }
  5691. if (GM_getValue("Check_extmatrix_dot_com_links", false))
  5692. {
  5693. addFileHost(
  5694. "extmatrix\\.com\/files\/\\w+",
  5695. 'div class="success"',
  5696. 'div class="error"',
  5697. 'optional--',
  5698. "//a[contains(@href,'extmatrix.com/files')]"
  5699. );
  5700. }
  5701. if (GM_getValue("Check_sendfiles_dot_nl_links", false))
  5702. {
  5703. addFileHost(
  5704. "sendfiles\\.nl\/download.aspx\\?ID=\\w+",
  5705. 'content_lnkDownload',
  5706. 'error\\.aspx\\?',
  5707. 'optional--',
  5708. "//a[contains(@href,'sendfiles.nl/download.aspx')]"
  5709. );
  5710. }
  5711. /* if (GM_getValue("Check_sockshare_dot_com_links", false))
  5712. {
  5713. addFileHost(
  5714. "sockshare\\.com\/file\/\\w+",
  5715. 'choose_speed">',
  5716. 'message t_0\'>',
  5717. 'optional--',
  5718. "//a[contains(@href,'sockshare.com/file')]"
  5719. );
  5720. } */
  5721. if (GM_getValue("Check_yourfilestore_dot_com_links", false))
  5722. {
  5723. addFileHost(
  5724. "yourfilestore\\.com\/download\/\\d+\/",
  5725. 'download_data">',
  5726. 'may have been deleted|<h1>Sorry!<\/h1>',
  5727. 'optional--',
  5728. "//a[contains(@href,'yourfilestore.com/download')]"
  5729. );
  5730. }
  5731. if (GM_getValue("Check_nekaka_dot_com_links", false))
  5732. {
  5733. addFileHost(
  5734. "nekaka\\.com\/d\/[\\w-]+",
  5735. 'downloadForm">',
  5736. 'invalid file link',
  5737. 'optional--',
  5738. "//a[contains(@href,'nekaka.com/d')]"
  5739. );
  5740. }
  5741. if (GM_getValue("Check_filebig_dot_net_links", false))
  5742. {
  5743. addFileHost(
  5744. "filebig\\.net\/files\/\\w+",
  5745. 'downloadFile">',
  5746. '<p>File not found<\/p>',
  5747. 'optional--',
  5748. "//a[contains(@href,'filebig.net/files')]"
  5749. );
  5750. }
  5751. if (GM_getValue("Check_gamefront_dot_com_links", false))
  5752. {
  5753. addFileHost(
  5754. "files\\.filefront\\.com\/\/;\\d+;;",
  5755. 'downloadLink">',
  5756. 'File not found, you',
  5757. 'optional--',
  5758. "//a[contains(@href,'files.filefront.com')]"
  5759. );
  5760.  
  5761. addFileHost(
  5762. "gamefront\\.com\/files\/\\d+",
  5763. 'downloadLink">',
  5764. 'File not found, you',
  5765. 'optional--',
  5766. "//a[contains(@href,'gamefront.com/files')]"
  5767. );
  5768. }
  5769. if (GM_getValue("Check_hyperfileshare_dot_com_links", false))
  5770. {
  5771. addFileHost(
  5772. "(?:download\\.|)hyperfileshare\\.com\/(?:download\\.php\\?code=|d\/)\\w+",
  5773. 'dnlLnk"',
  5774. 'already been deleted',
  5775. 'optional--',
  5776. "//a[contains(@href,'hyperfileshare.com/download') or contains(@href,'hyperfileshare.com/d')]"
  5777. );
  5778. }
  5779. if (GM_getValue("Check_hellupload_dot_com_links", false))
  5780. {
  5781. addFileHost(
  5782. "hellupload\\.com\/\\w+",
  5783. '<h3>Download File<br',
  5784. 'id="podstrona">|AVOID_IE_BUG',
  5785. 'optional--',
  5786. "//a[contains(@href,'hellupload.com/')]"
  5787. );
  5788. }
  5789. if (GM_getValue("Check_free_dash_uploading_dot_com_links", false))
  5790. {
  5791. addFileHost(
  5792. "free\\-uploading\\.com\/\\w+",
  5793. 'op" value="download',
  5794. 'class="err">|width:500px;text-align:left;">',
  5795. 'optional--',
  5796. "//a[contains(@href,'free-uploading.com/')]"
  5797. );
  5798. }
  5799. if (GM_getValue("Check_fileape_dot_com_links", false))
  5800. {
  5801. addFileHost(
  5802. "fileape\\.com\/download\\-",
  5803. 'button_dl\\.png',
  5804. 'does not exist\\.',
  5805. 'optional--',
  5806. "//a[contains(@href,'fileape.com/')]"
  5807. );
  5808. }
  5809. if (GM_getValue("Check_uppit_dot_com_links", false))
  5810. {
  5811. addFileHost(
  5812. "(?:uppit\\.com|up\\.ht)\/\\w+",
  5813. 'op" value="download',
  5814. 'class="err">|style="width:500px;text-align:left;"|fish-404\\.png"',
  5815. 'optional--',
  5816. "//a[contains(@href,'up.ht/') or contains(@href,'uppit.com/')]",
  5817. true
  5818. );
  5819. }
  5820. if (GM_getValue("Check_nosupload_dot_com_links", false))
  5821. {
  5822. addFileHost(
  5823. "nosupload\\.com\/(?:\\?d=)?\\w+",
  5824. 'op" value="download',
  5825. '>File Not Found<',
  5826. 'optional--',
  5827. "//a[contains(@href,'nosupload.com')]",
  5828. true
  5829. );
  5830. }
  5831. if (GM_getValue("Check_filesin_dot_com_links", false))
  5832. {
  5833. addFileHost(
  5834. "filesin\\.com\/\\w+\/download\\.html",
  5835. 'download_area">',
  5836. 'error_note">',
  5837. 'optional--',
  5838. "//a[contains(@href,'filesin.com/')]",
  5839. true
  5840. );
  5841. }
  5842. if (GM_getValue("Check_nowdownload_dot_eu_links", false))
  5843. {
  5844. addFileHost(
  5845. "nowdownload\\.eu\/dl\/\\w+",
  5846. 'alert-success"',
  5847. 'This file does not exist!',
  5848. 'The file is being transfered',
  5849. "//a[contains(@href,'nowdownload.eu/dl')]"
  5850. );
  5851. }
  5852. if (GM_getValue("Check_axifile_dot_com_links", false))
  5853. {
  5854. addFileHost(
  5855. "axifile\\.com(?:\/\w(2))?\/\\??\\w+",
  5856. 'Dbutton_big"',
  5857. 'download\\-error\\.php',
  5858. 'optional--',
  5859. "//a[contains(@href,'axifile.com/')]"
  5860. );
  5861. }
  5862. if (GM_getValue("Check_hulkshare_dot_com_links", false))
  5863. {
  5864. addFileHost(
  5865. "hulkshare\.com\/\\w+",
  5866. 'download\.sam\.png|This is a private file|id="filename',
  5867. 'File does not exist|fingerprint protected copyright',
  5868. 'optional--',
  5869. "//a[contains(@href,'hulkshare.com')]"
  5870. );
  5871. }
  5872. if (GM_getValue("Check_turbobit_dot_net_links", false)) //folders
  5873. {
  5874. addFileHost(
  5875. "turbobit\\.(?:net|pl)\/download\/folder\/\\d+",
  5876. 'col-1">\\s*<s',
  5877. 'col-1">\\s*<h',
  5878. 'optional--',
  5879. "//a[contains(@href,'turbobit.') and contains(@href,'download/folder')]"
  5880. );
  5881. }
  5882. if (GM_getValue("Check_hitfile_dot_net_links", false)) //folders
  5883. {
  5884. addFileHost(
  5885. "hitfile\\.net\/download\/folder\/\\d+",
  5886. 'content">\\s*<s',
  5887. 'content">\\s*<h',
  5888. 'optional--',
  5889. "//a[contains(@href,'hitfile.net/download/folder')]"
  5890. );
  5891. }
  5892. if (GM_getValue("Check_netload_dot_in_links", false)) //folders
  5893. {
  5894. addFileHost(
  5895. "netload\\.in\/folder\\.php\\?folder_id=\\w+",
  5896. 'images\/online\\.gif',
  5897. 'InPage_Error"',
  5898. 'optional--',
  5899. "//a[contains(@href,'netload.in/folder.php')]"
  5900. );
  5901. }
  5902. if (GM_getValue("Check_movshare_dot_net_links", false))
  5903. {
  5904. addFileHost(
  5905. "movshare\\.net\\/video\\/\\w+",
  5906. 'optional--"',
  5907. 'no longer exists',
  5908. 'optional--',
  5909. "//a[contains(@href,'movshare.net/video')]"
  5910. );
  5911. }
  5912. if (GM_getValue("Check_plunder_dot_com_links", false))
  5913. {
  5914. addFileHost(
  5915. "plunder\.com\/\\w+",
  5916. 'x\/download\\.gif',
  5917. '404 - File or directory not found.',
  5918. 'optional--',
  5919. "//a[contains(@href,'plunder.com')]"
  5920. );
  5921. }
  5922. if (GM_getValue("Check_mafiastorage_dot_com_links", false))
  5923. {
  5924. addFileHost(
  5925. "mafiastorage\\.com\/\\w+",
  5926. 'op" value="download',
  5927. 'class="err">|style="width:500px;text-align:left;"',
  5928. 'optional--',
  5929. "//a[contains(@href,'mafiastorage.com/')]"
  5930. );
  5931. }
  5932. if (GM_getValue("Check_uploadspace_dot_pl_links", false))
  5933. {
  5934. addFileHost(
  5935. "uploadspace\.pl\/plik\\w+",
  5936. 'Downloading .+? \\|',
  5937. 'Downloading a file',
  5938. 'optional--',
  5939. "//a[contains(@href,'uploadspace.pl/plik')]"
  5940. );
  5941. }
  5942. if (GM_getValue("Check_uploadingit_dot_com_links", false))
  5943. {
  5944. addFileHost(
  5945. "uploadingit\\.com\/file\/\\w+",
  5946. 'downloadTitle">',
  5947. 'deleteContent">',
  5948. 'optional--',
  5949. "//a[contains(@href,'uploadingit.com/file')]"
  5950. );
  5951. }
  5952. if (GM_getValue("Check_rghost_dot_net_links", false))
  5953. {
  5954. addFileHost(
  5955. "rghost\.(?:net|ru)\/(?:|private\/)\\d+",
  5956. 'download_link|btn large download"',
  5957. 'file is restricted|File is deleted|503 Service Unavailable',
  5958. 'File was deleted',
  5959. "//a[contains(@href,'rghost.')]"
  5960. );
  5961. }
  5962. if (GM_getValue("Check_xdisk_dot_cz_links", false))
  5963. {
  5964. addFileHost(
  5965. "xdisk\\.cz\/(?:..\/)?download\\.php\\?id=\\w+",
  5966. '">Staženo:\\s*<\/span>',
  5967. 'Soubor, který hledáte nenalezen',
  5968. 'optional--',
  5969. "//a[contains(@href,'xdisk.cz/')]"
  5970. );
  5971. }
  5972. if (GM_getValue("Check_expressleech_dot_com_links", false))
  5973. {
  5974. addFileHost(
  5975. "expressleech\.com\/\\w+",
  5976. 'src="/img/Download.gif"|var _gaq =',
  5977. 'var rr =|403 Forbidden',
  5978. 'optional--',
  5979. "//a[contains(@href,'expressleech.com')]");
  5980. }
  5981. if (GM_getValue("Check_2downloadz_dot_com_links", false))
  5982. {
  5983. addFileHost(
  5984. "2downloadz\.com\/\\w+",
  5985. 'color="#848484|src="images/Download.png"|color:#238DCA',
  5986. 'color="#006DCC|File error',
  5987. 'optional--',
  5988. "//a[contains(@href,'2downloadz.com')]");
  5989. }
  5990. if (GM_getValue("Check_mightyupload_dot_com_links", false))
  5991. {
  5992. addFileHost(
  5993. "mightyupload\.com\/\\w+",
  5994. 'background:#ccc;text-align|CONTENT="Download File"',
  5995. 'style="background:#eee|var rr =|File Not Found',
  5996. 'error-code">1010',
  5997. "//a[contains(@href,'mightyupload.com')]");
  5998. }
  5999. if (GM_getValue("Check_k2s_dot_cc_links", false))
  6000. {
  6001. addFileHost(
  6002. "k2s\.cc\/file\/\\w+",
  6003. 'Click here for slow download with|class="btn" id="yw0"|onclick="download',
  6004. 'Error 404|class="errorSummary">|this file is blocked or deleted|>404 Not Found<|To avoid damaged files|This file is no longer available',
  6005. 'please try later',
  6006. //'optional--',
  6007. "//a[contains(@href,'k2s.cc')]");
  6008. }
  6009. if (GM_getValue("Check_keep2share_dot_cc_links", false))
  6010. {
  6011. addFileHost(
  6012. "keep2share\.cc\/file\/\\w+",
  6013. 'Click here for slow download with|class="btn" id="yw0"|onclick="download',
  6014. 'Error 404|class="errorSummary">|this file is blocked or deleted|>404 Not Found<|To avoid damaged files|This file is no longer available',
  6015. 'please try later',
  6016. //'premium only',
  6017. "//a[contains(@href,'keep2share.cc')]");
  6018. }
  6019. if (GM_getValue("Check_keep2s_dot_cc_links", false))
  6020. {
  6021. addFileHost(
  6022. "keep2s\.cc\/file\/\\w+",
  6023. 'Click here for slow download with|class="btn" id="yw0"|onclick="download',
  6024. 'Error 404|class="errorSummary">|this file is blocked or deleted|>404 Not Found<|To avoid damaged files|This file is no longer available',
  6025. 'please try later',
  6026. //'optional--',
  6027. "//a[contains(@href,'keep2s.cc')]");
  6028. }
  6029. if (GM_getValue("Check_keep2share_dot_com_links", false))
  6030. {
  6031. addFileHost(
  6032. "keep2share\.com\/file\/\\w+",
  6033. 'Click here for slow download with|class="btn" id="yw0"|onclick="download',
  6034. 'Error 404|class="errorSummary">|this file is blocked or deleted|>404 Not Found<|To avoid damaged files|This file is no longer available',
  6035. 'please try later',
  6036. //'optional--',
  6037. "//a[contains(@href,'keep2share.com')]");
  6038. }
  6039. if (GM_getValue("Check_anysend_dot_com_links", false))
  6040. {
  6041. addFileHost(
  6042. "anysend\.com\/\\w+",
  6043. 'var openCalled=false;|content="noindex"',
  6044. '_trackPageview',
  6045. 'optional--',
  6046. "//a[contains(@href,'anysend.com')]");
  6047. }
  6048. if (GM_getValue("Check_datafile_dot_com_links", false))
  6049. {
  6050. addFileHost(
  6051. "datafile\.com\/\\w+",
  6052. 'var captchaPanel',
  6053. 'ErrorCode|ErrorCode 0: Invalid Link|btn-orange" href="#"', //class="error-msg"
  6054. 'You are downloading another file at this moment|You exceeded your free|Site Maintenance',
  6055. //'optional--',
  6056. "//a[contains(@href,'datafile.com')]",
  6057. true);
  6058. }
  6059. if (GM_getValue("Check_upstore_dot_net_links", false))
  6060. {
  6061. addFileHost(
  6062. "upstore\.net\/\\w+",
  6063. 'style="margin-top: 20px">|style="text-align:center; margin: 20px 0 100px;">',
  6064. 'File not found|onload="redirect|class="error">',
  6065. 'optional--',
  6066. "//a[contains(@href,'upstore.net')]");
  6067. }
  6068. if (GM_getValue("Check_upsto_dot_re_links", false))
  6069. {
  6070. addFileHost(
  6071. "upsto\.re\/\\w+",
  6072. 'style="margin-top: 20px">|style="text-align:center; margin: 20px 0 100px;">',
  6073. 'File not found|onload="redirect|class="error">',
  6074. 'optional--',
  6075. "//a[contains(@href,'upsto.re')]");
  6076. }
  6077. if (GM_getValue("Check_speedy_dot_sh_links", false))
  6078. {
  6079. addFileHost(
  6080. "speedy\.sh\/\\w+",
  6081. 'bgcolor=#eeeeee|class="addthis',
  6082. 'File not found|downloadfilenamenotfound>',
  6083. 'optional--',
  6084. "//a[contains(@href,'speedy.sh')]");
  6085. }
  6086. if (GM_getValue("Check_sanshare_dot_com_links", false))
  6087. {
  6088. addFileHost(
  6089. "sanshare\.com\/\\w+",
  6090. 'SANSHARE_TOPBANNER|offset-1"><h3><b>Download File',
  6091. 'offset-1"><b>File Not Found<|width:500px;text-align',
  6092. 'optional--',
  6093. "//a[contains(@href,'sanshare.com')]");
  6094. }
  6095. if (GM_getValue("Check_kingfiles_dot_net_links", false))
  6096. {
  6097. addFileHost(
  6098. "kingfiles\.net\/\\w+",
  6099. 'img/spriteBanner.png|If you are the owner of this file',
  6100. 'var rr =|"description" CONTENT="Download File ">|<div style="width:500px;text-align:left;">|The file was removed by administrator',
  6101. 'optional--',
  6102. "//a[contains(@href,'kingfiles.net')]");
  6103. }
  6104. if (GM_getValue("Check_uploadhero_dot_co_links", false))
  6105. {
  6106. addFileHost(
  6107. "uploadhero\\.co\/dl\/\\w+",
  6108. 'class="nom_de_fichier"|Unlimited downloads|Estimated download time|Lien de téléchargement"',
  6109. 'not available on our server|pas disponible sur nos serveurs|Le lien du fichier est incorrect',
  6110. 'optional--',
  6111. "//a[contains(@href,'uploadhero.co/dl')]"
  6112. );
  6113. }
  6114. if (GM_getValue("Check_secureupload_dot_eu_links", false))
  6115. {
  6116. addFileHost(
  6117. "secureupload\\.eu\/\\w+",
  6118. 'Downloading',
  6119. 'cannot be found|File Not Found|could not be found',
  6120. 'optional--',
  6121. "//a[contains(@href,'secureupload.eu')]"
  6122. );
  6123. }
  6124. if (GM_getValue("Check_ge_dot_tt_links", false))
  6125. {
  6126. addFileHost(
  6127. "ge\.tt\/\\w+",
  6128. 'downloads pic',
  6129. 'is NOT the same as',
  6130. 'optional--',
  6131. "//a[contains(@href,'ge.tt')]");
  6132. }
  6133. if (GM_getValue("Check_filefactory_dot_com_links", false))
  6134. {
  6135. addFileHost(
  6136. "filefactory\.com\/\\w+",
  6137. 'div id="file_holder"|download.css',
  6138. 'File Removed|Invalid Download Link|File Unavailable|Server Failed|Datei entfernt|This file has been removed|Invalid Download Link',
  6139. 'Server Maintenance|temporarily overloaded',
  6140. //'optional--',
  6141. "//a[contains(@href,'filefactory.com')]");
  6142. }
  6143. if (GM_getValue("Check_filesflash_dot_net_links", false))
  6144. {
  6145. addFileHost(
  6146. "filesflash\.net\/\\w+",
  6147. 'align:right">Filename:',
  6148. 'class="msg">',
  6149. 'optional--',
  6150. "//a[contains(@href,'filesflash.net')]");
  6151. }
  6152. if (GM_getValue("Check_rapidgator_dot_net_links", false)) //folders
  6153. {
  6154. addFileHost(
  6155. "rapidgator\\.net\/folder\/\\w+",
  6156. 'href="/folder/',
  6157. 'class="empty|Folder not found|Carpeta no encontrada|Dossier non trouvé|Папка не найдена',
  6158. 'optional--',
  6159. "//a[contains(@href,'rapidgator.net/folder')]",
  6160. true
  6161. );
  6162. }
  6163. if (GM_getValue("Check_salefiles_dot_com_links", false))
  6164. {
  6165. addFileHost(
  6166. "salefiles\.com\/\\w+",
  6167. '<Title>Download|CONTENT="Download',
  6168. 'font:15px Arial|background:#eee;',
  6169. 'optional--',
  6170. "//a[contains(@href,'salefiles.com')]");
  6171. }
  6172. if (GM_getValue("Check_megairon_dot_net_links", false))
  6173. {
  6174. addFileHost(
  6175. "megairon\.net\/\\w+",
  6176. 'border: 5px #ffeb90 solid;',
  6177. 'CONTENT="Download File ">|var rr =',
  6178. 'optional--',
  6179. "//a[contains(@href,'megairon.net')]");
  6180. }
  6181. if (GM_getValue("Check_datoid_dot_cz_links", false))
  6182. {
  6183. addFileHost(
  6184. "datoid\.cz\/\\w+",
  6185. 'btn-download|class="icon-download-large"',
  6186. 'Stránka nenalezena|error-404|Soubor byl zablokován',
  6187. 'optional--',
  6188. "//a[contains(@href,'datoid.cz')]");
  6189. }
  6190. if (GM_getValue("Check_stiahni_dot_si_links", false))
  6191. {
  6192. addFileHost(
  6193. "stiahni\.si\/\\w+",
  6194. 'report_icon.png"|slow-download-button',
  6195. 'none.png|deleted|<h2>Error 500</h2>',
  6196. 'optional--',
  6197. "//a[contains(@href,'stiahni.si')]");
  6198. }
  6199. if (GM_getValue("Check_cloudstor_dot_es_links", false))
  6200. {
  6201. addFileHost(
  6202. "cloudstor\.es\/\\w+",
  6203. '"btn_download"',
  6204. '404: Page Not Found',
  6205. 'optional--',
  6206. "//a[contains(@href,'cloudstor.es')]");
  6207. }
  6208. if (GM_getValue("Check_streamfile_dot_com_links", false))
  6209. {
  6210. addFileHost(
  6211. "streamfile\.com\/\\w+",
  6212. 'class="btn',
  6213. 'class="green-btn',
  6214. 'optional--',
  6215. "//a[contains(@href,'streamfile.com')]");
  6216. }
  6217. if (GM_getValue("Check_eyesfile_dot_ca_links", false))
  6218. {
  6219. addFileHost(
  6220. "eyesfile\.ca\/\\w+",
  6221. 'value="Get Link',
  6222. 'var rr =',
  6223. 'optional--',
  6224. "//a[contains(@href,'eyesfile.ca')]");
  6225. }
  6226. if (GM_getValue("Check_filemoney_dot_com_links", false))
  6227. {
  6228. addFileHost(
  6229. "filemoney\.com\/\\w+",
  6230. 'og:title',
  6231. '404 Not Found|<Title>FileMoney|File Not Found',
  6232. 'error-code">1010',
  6233. "//a[contains(@href,'filemoney.com')]");
  6234. }
  6235. if (GM_getValue("Check_uploadboy_dot_com_links", false))
  6236. {
  6237. addFileHost(
  6238. "uploadboy\.com\/\\w+",
  6239. 'width="740">|method_free',
  6240. 'var rr =|background:#ffffff|not be found|file was removed',
  6241. 'optional--',
  6242. "//a[contains(@href,'uploadboy.com')]");
  6243. }
  6244. if (GM_getValue("Check_speedshare_dot_eu_links", false))
  6245. {
  6246. addFileHost(
  6247. "speedshare\.eu\/\\w+",
  6248. 'favicon.png|color:#3d87c0|cross.png"',
  6249. 'var rr =|File Not Found|style="background:#eee',
  6250. 'optional--',
  6251. "//a[contains(@href,'speedshare.eu')]");
  6252. }
  6253. if (GM_getValue("Check_unlimitzone_dot_com_links", false))
  6254. {
  6255. addFileHost(
  6256. "unlimitzone\.com\/\\w+",
  6257. 'content="1" name="',
  6258. 'var rr =|File Not Found',
  6259. 'optional--',
  6260. "//a[contains(@href,'unlimitzone.com')]");
  6261. }
  6262. if (GM_getValue("Check_rioupload_dot_com_links", false))
  6263. {
  6264. addFileHost(
  6265. "rioupload\.com\/\\w+",
  6266. 'sell.jpg',
  6267. 'var rr =',
  6268. 'optional--',
  6269. "//a[contains(@href,'rioupload.com')]");
  6270. }
  6271. if (GM_getValue("Check_rg_dot_to_links", false))
  6272. {
  6273. addFileHost(
  6274. "rg\.to\/\\w+",
  6275. '/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',
  6276. 'Error 404|File not found|Select your plan',
  6277. 'optional--',
  6278. //'optional--',
  6279. "//a[contains(@href,'rg.to')]");
  6280. }
  6281. if (GM_getValue("Check_jumbofiles_dot_org_links", false))
  6282. {
  6283. addFileHost(
  6284. "jumbofiles\.org\/\\w+",
  6285. 'H71C5.png|class="downloadtitle">',
  6286. 'var swfu|ViewSourceBIN.png',
  6287. 'optional--',
  6288. "//a[contains(@href,'jumbofiles.org')]");
  6289. }
  6290. if (GM_getValue("Check_fshare_dot_vn_links", false))
  6291. {
  6292. addFileHost(
  6293. "fshare\\.vn\/file\/\\w+",
  6294. 'action="#download"|left; width: 330px;">|class="bt_down"',
  6295. 'không tồn tại|class="color_red m_t_50"',
  6296. 'optional--',
  6297. "//a[contains(@href,'fshare.vn/file')]",
  6298. true
  6299. );
  6300. }
  6301. if (GM_getValue("Check_spaceforfiles_dot_com_links", false))
  6302. {
  6303. addFileHost(
  6304. "spaceforfiles\.com\/\\w+",
  6305. 'btn_slowspeed_b.jpg|value="download1|class="btn_blue',
  6306. 'var rr =|AVOID_IE_BUG',
  6307. 'optional--',
  6308. "//a[contains(@href,'spaceforfiles.com')]");
  6309. }
  6310. if (GM_getValue("Check_google_dot_com_links", false))
  6311. {
  6312. addFileHost(
  6313. "google\\.com\/file\/\\w+",
  6314. 'content="!">|color:#2d2d2d',
  6315. '12pt; font-weight:|class="errorMessage"|F0F6FF',
  6316. 'optional--',
  6317. "//a[contains(@href,'google.com/file')]",
  6318. true
  6319. );
  6320. }
  6321. if (GM_getValue("Check_google_dot_com_links", false))
  6322. {
  6323. addFileHost(
  6324. "docs.google.com\/\\w+",
  6325. 'content="!">|color:#2d2d2d',
  6326. '12pt; font-weight:|class="errorMessage"|F0F6FF|Error 404',
  6327. 'optional--',
  6328. "//a[contains(@href,'docs.google.com')]",
  6329. true
  6330. );
  6331. }
  6332. if (GM_getValue("Check_google_dot_com_links", false))
  6333. {
  6334. addFileHost(
  6335. "drive.google.com\/\\w+",
  6336. 'content="!">|color:#2d2d2d|id="uc-download-link',
  6337. '12pt; font-weight:|class="errorMessage"|F0F6FF|Error 404',
  6338. 'optional--',
  6339. "//a[contains(@href,'drive.google.com')]",
  6340. true
  6341. );
  6342. }
  6343. if (GM_getValue("Check_up_dot_media1fire_dot_com_links", false))
  6344. {
  6345. addFileHost(
  6346. "up.media1fire\.com\/\\w+",
  6347. 'class="addthis_|value="download',
  6348. 'var rr =|AVOID_IE_BUG|<div style="width:500px;text-align:left;">',
  6349. 'optional--',
  6350. "//a[contains(@href,'up.media1fire.com')]");
  6351. }
  6352. if (GM_getValue("Check_depfile_dot_com_links", false))
  6353. {
  6354. addFileHost(
  6355. "depfile\.com\/\\w+",
  6356. 'logo_0.png|downloads.gif"|verifycode',
  6357. 'border-color: #5D729B;|bgcolor="#778AAF"',
  6358. 'optional--',
  6359. "//a[contains(@href,'depfile.com')]");
  6360. }
  6361. if (GM_getValue("Check_go4up_dot_com_links", false))
  6362. {
  6363. addFileHost(
  6364. "go4up\.com\/\\w+",
  6365. 'style="width: 100%;">|value="Access|download_line',
  6366. '<title>GO4UP|dmca',
  6367. 'optional--',
  6368. "//a[contains(@href,'go4up.com')]");
  6369. }
  6370. if (GM_getValue("Check_redbunker_dot_net_links", false))
  6371. {
  6372. addFileHost(
  6373. "redbunker\.net\/\\w+",
  6374. 'dload.png|rowspan="3">|yep.gif',
  6375. 'CONTENT="RedBunker|#D3D3D3;|color:#d33|AVOID_IE_BUG',
  6376. 'optional--',
  6377. "//a[contains(@href,'redbunker.net')]");
  6378. }
  6379. if (GM_getValue("Check_divxpress_dot_com_links", false))
  6380. {
  6381. addFileHost(
  6382. "divxpress\.com\/\\w+",
  6383. 'btn_download|logo.png"',
  6384. 'AVOID_IE_BUG|var rr =',
  6385. 'optional--',
  6386. "//a[contains(@href,'divxpress.com')]");
  6387. }
  6388. if (GM_getValue("Check_anafile_dot_com_links", false))
  6389. {
  6390. addFileHost(
  6391. "anafile\.com\/\\w+",
  6392. 'width="881" valign="top|color="#800080"',
  6393. 'style="width:500px;text-align:left;">|file was deleted|AVOID_IE_BUG',
  6394. 'optional--',
  6395. "//a[contains(@href,'anafile.com')]");
  6396. }
  6397. if (GM_getValue("Check_uploadable_dot_ch_links", false))
  6398. {
  6399. addFileHost(
  6400. "uploadable\\.ch\/file\/\\w+",
  6401. 'captcha.js"|payment.js"|class="btn_download"',
  6402. '<div class="icon_err">|<div class="errorBox">|"error_arrow">',
  6403. 'optional--',
  6404. "//a[contains(@href,'uploadable.ch/file')]",
  6405. true
  6406. );
  6407. }
  6408. if (GM_getValue("Check_arabloads_dot_com_links", false))
  6409. {
  6410. addFileHost(
  6411. "arabloads\.com\/\\w+",
  6412. 'name="method_free"|name="method_premium"',
  6413. 'background:#eee;font:15px Arial;">|AVOID_IE_BUG|Verdana;padding:3px;">Error',
  6414. 'optional--',
  6415. "//a[contains(@href,'arabloads.com')]");
  6416. }
  6417. if (GM_getValue("Check_sharerepo_dot_com_links", false))
  6418. {
  6419. addFileHost(
  6420. "sharerepo\.com\/\\w+",
  6421. 'name="method_free"',
  6422. 'var public_on=|The file you were looking for could not be found',
  6423. 'optional--',
  6424. "//a[contains(@href,'sharerepo.com')]");
  6425. }
  6426. if (GM_getValue("Check_sfshare_dot_se_links", false))
  6427. {
  6428. addFileHost(
  6429. "sfshare\.se\/\\w+",
  6430. 'id="btn_download"|class="btn btn-primary txt-bold" value="',
  6431. 'AVOID_IE_BUG|var rr =|style="width:500px;text-align:left;">|Reason for deletion|The file was removed',
  6432. 'optional--',
  6433. "//a[contains(@href,'sfshare.se')]");
  6434. }
  6435. if (GM_getValue("Check_files_dot_fm_links", false))
  6436. {
  6437. addFileHost(
  6438. "files\.fm\/\\w+",
  6439. 'dl.png"|background-color: transparent',
  6440. 'margin: 40px 40px|background: none;',
  6441. 'optional--',
  6442. "//a[contains(@href,'files.fm')]");
  6443. }
  6444. if (GM_getValue("Check_koofile_dot_com_links", false))
  6445. {
  6446. addFileHost(
  6447. "koofile\.com\/\\w+",
  6448. 'value="download1">|name="method_free"',
  6449. 'class="overview-content c_text-box ">|style="padding-top:3px;">|class="rt1 c">',
  6450. 'optional--',
  6451. "//a[contains(@href,'koofile.com')]");
  6452. }
  6453. if (GM_getValue("Check_vidxden_dot_com_links", false))
  6454. {
  6455. addFileHost(
  6456. "vidxden\\.com\/\\w+",
  6457. 'Continue to Video"',
  6458. 'No such file',
  6459. 'optional--',
  6460. "//a[contains(@href,'vidxden.com')]"
  6461. );
  6462. }
  6463. if (GM_getValue("Check_muchshare_dot_net_links", false))
  6464. {
  6465. addFileHost(
  6466. "muchshare\\.net\/\\w+",
  6467. 'id="btn_download"',
  6468. 'File Not Found|width: 500px; text-align: left;',
  6469. 'optional--',
  6470. "//a[contains(@href,'muchshare.net')]"
  6471. );
  6472. }
  6473. if (GM_getValue("Check_daten_dash_hoster_dot_de_links", false))
  6474. {
  6475. addFileHost(
  6476. "(?:daten-hoster\\.de\/file\/\\w+|filehosting\\.org\/file\/\\w+|xtraupload\\.de\/\\?d=\\w+)",
  6477. 'Details zur Datei|Details page',
  6478. 'Jetzt hochladen|upload now',
  6479. 'optional--',
  6480. "//a[contains(@href,'daten-hoster.de/file') or contains(@href,'filehosting.org/file') or contains(@href,'xtraupload.de')]"
  6481. );
  6482. }
  6483. if (GM_getValue("Check_upload_dash_il_dot_net_links", false))
  6484. {
  6485. addFileHost(
  6486. "(?:upload-il|przeslij)\.net\/(?:en|he|ar|ru|)\/?\\w+",
  6487. 'downloadbtn"',
  6488. 'DL_FileNotFound',
  6489. 'optional--',
  6490. "//a[contains(@href,'upload-il.net') or contains(@href,'przeslij.net')]"
  6491. );
  6492. }
  6493. if (GM_getValue("Check_fileflyer_dot_com_links", false))
  6494. {
  6495. addFileHost(
  6496. "fileflyer\.com\/view\/\\w+",
  6497. '(?:dwl|locked)btn"',
  6498. 'error.gif"|link">Removed|removedlink">',
  6499. 'optional--',
  6500. "//a[contains(@href,'fileflyer.com')]"
  6501. );
  6502. }
  6503. if (GM_getValue("Check_filestore_dot_to_links", false))
  6504. {
  6505. addFileHost(
  6506. "filestore\.to\/\\?d=\\w+",
  6507. '"downloading"',
  6508. 'Datei wurde nicht gefunden',
  6509. 'optional--',
  6510. "//a[contains(@href,'filestore.to')]"
  6511. );
  6512. }
  6513. if (GM_getValue("Check_easy_dash_share_dot_com_links", false))
  6514. {
  6515. addFileHost(
  6516. "(?:w\\d*\.|)(?:crocko|easy-share)\\.com\/.",
  6517. 'fz24">Download|class="pl15">',
  6518. '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',
  6519. 'optional--',
  6520. "//a[contains(@href,'easy-share.com') or contains(@href,'crocko.com')]"
  6521. );
  6522. }
  6523. if (GM_getValue("Check_burnupload_dot_com_links", false))
  6524. {
  6525. addFileHost(
  6526. "burnupload\\.(?:com\/\\?d=|ihiphop\\.com\/download\\.php\\?id=)\\w+",
  6527. 'File size:',
  6528. 'file is not found',
  6529. 'optional--',
  6530. "//a[contains(@href,'burnupload.com') or contains(@href,'burnupload.ihiphop.com')]"
  6531. );
  6532. }
  6533. if (GM_getValue("Check_datei_dot_to_links", false))
  6534. {
  6535. addFileHost(
  6536. "datei\\.to\/\\??\\w+",
  6537. 'icon_downloaden\\.png|>Download starten<',
  6538. 'Datei wurde nicht gefunden|icon_deleted.png',
  6539. 'optional--',
  6540. "//a[contains(@href,'datei.to')]"
  6541. );
  6542. }
  6543. if (GM_getValue("Check_yunfile_dot_com_links", false))
  6544. {
  6545. addFileHost(
  6546. "(?:yunfile|filemarkets)\\.com\/\\w+",
  6547. '<body class="body" id="body">|value="Slow Download"',
  6548. '<body class="body" >',
  6549. 'optional--',
  6550. "//a[contains(@href,'yunfile.com') or contains(@href,'filemarkets.com')]"
  6551. );
  6552. }
  6553. /* if (GM_getValue("Check_putlocker_dot_com_links", false))
  6554. {
  6555. addFileHost(
  6556. "putlocker\\.com\/file\/\\w{16}",
  6557. 'as Free User|<a class="continue"|Continue to file|#feedback_btn|application file_standalone',
  6558. 'Welcome to PutLocker|<div class="sad_face_image">|404:',
  6559. 'undergoing scheduled maintenance',
  6560. "//a[contains(@href,'putlocker.com/file')]"
  6561. );
  6562. } */
  6563. if (GM_getValue("Check_uploadhero_dot_com_links", false))
  6564. {
  6565. addFileHost(
  6566. "uploadhero\\.com\/dl\/\\w+",
  6567. 'content-dl">',
  6568. 'men_file_lost\\.jpg"',
  6569. 'optional--',
  6570. "//a[contains(@href,'uploadhero.com/dl')]"
  6571. );
  6572. }
  6573. if (GM_getValue("Check_unibytes_dot_com_links", false))
  6574. {
  6575. addFileHost(
  6576. "unibytes\\.com\/[\\w\.]+",
  6577. 'trying to download|пытаетесь загрузить файл|tes entrain de tlcharger',
  6578. 'File not found|Файл не найден|',
  6579. 'optional--',
  6580. "//a[contains(@href,'unibytes.com')]"
  6581. );
  6582. }
  6583. if (GM_getValue("Check_hellshare_dot_com_links", false)) //very old type of links
  6584. {
  6585. addFileHost(
  6586. "www\\.hellshare\\.com\/\\d+",
  6587. 'tab\\-details"',
  6588. 'list-purp-2"|not found on this server',
  6589. 'optional--',
  6590. "//a[contains(@href,'www.hellshare.com')]"
  6591. );
  6592. }
  6593. if (GM_getValue("Check_quickshare_dot_cz_links", false)) //folders
  6594. {
  6595. addFileHost(
  6596. "quickshare\\.cz\/slozka-\\d+",
  6597. 'Počet souborů: <strong>[1-9]',
  6598. 'Počet souborů: <strong>0|Chyba! Taková složka neexistuje',
  6599. 'optional--',
  6600. "//a[contains(@href,'quickshare.cz/slozka')]"
  6601. );
  6602. }
  6603. if (GM_getValue("Check_filefactory_dot_com_links", false)) //folders
  6604. {
  6605. addFileHost(
  6606. "filefactory\\.com\/f\/\\w+",
  6607. 'folderFileList">',
  6608. 'table class="items"|Pointer" class="red">',
  6609. 'optional--',
  6610. "//a[contains(@href,'filefactory.com/f/')]"
  6611. );
  6612. }
  6613. if (GM_getValue("Check_netload_dot_in_links", false)) //folders
  6614. {
  6615. addFileHost(
  6616. "netfolder\\.in\/\\w+",
  6617. 'list" value="http',
  6618. 'InPage_Error">|list" value=""',
  6619. 'optional--',
  6620. "//a[contains(@href,'netfolder.in')]"
  6621. );
  6622. }
  6623. if (GM_getValue("Check_load_dot_to_links", false))
  6624. {
  6625. addFileHost(
  6626. '(?:www\\.|\\/)load\\.to\\/(?:\\w{10}\\/.|\\?d=\\w{10})',
  6627. '"download_table_left">Size',
  6628. 'Can\'t find file',
  6629. 'optional--',
  6630. "//a[contains(@href,'/load.to/') or contains(@href,'www.load.to/')]"
  6631. );
  6632. }
  6633. if (GM_getValue("Check_freakshare_dot_net_links", false))
  6634. {
  6635. addFileHost(
  6636. "freakshare\\.(?:net|com)\/files\/",
  6637. 'box_heading',
  6638. '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|الملف المطلوب غير موجود',
  6639. 'Your Traffic is used up for today',
  6640. "//a[(contains(@href,'freakshare.net') or contains(@href,'freakshare.com')) and contains(@href,'files')]",
  6641. true
  6642. );
  6643. //folders
  6644. addFileHost(
  6645. "freakshare\\.(?:net|com)\/folder\/",
  6646. 'Files: [1-9]',
  6647. 'Files: 0',
  6648. 'optional--',
  6649. "//a[(contains(@href,'freakshare.net') or contains(@href,'freakshare.com')) and contains(@href,'folder')]",
  6650. true
  6651. );
  6652. }
  6653. if (GM_getValue("Check_divshare_dot_com_links", false))
  6654. {
  6655. addFileHost(
  6656. "divshare\\.com\/download\/",
  6657. 'download_new\.png',
  6658. 'have been removed',
  6659. 'optional--',
  6660. "//a[contains(@href,'divshare.com')]"
  6661. );
  6662. }
  6663. if (GM_getValue("Check_euroshare_dot_eu_links", false))
  6664. {
  6665. addFileHost(
  6666. "euroshare\\.(?:eu|pl|sk|cz|hu)\/file\/\\d+",
  6667. 'nazev-souboru">',
  6668. '<div id="obsah">\\s*<h1>',
  6669. 'optional--',
  6670. "//a[contains(@href,'euroshare.eu/file')]"
  6671. );
  6672. }
  6673. if (GM_getValue("Check_files_dot_mail_dot_ru_links", false))
  6674. {
  6675. addFileHost(
  6676. 'files\\.mail\\.ru/(?:\\w*)',
  6677. 'fileList',
  6678. 'errorMessage',
  6679. 'optional--',
  6680. "//a[contains(@href,'files.mail.ru')]"
  6681. );
  6682. }
  6683. if (GM_getValue("Check_megashares_dot_com_links", false))
  6684. {
  6685. addFileHost(
  6686. "(?:d\\d+\.|)megashares\.com\/(?:dl|index\.php\\?d|\\?d\\d+=\\w+)",
  6687. 'Filesize',
  6688. 'Invalid|deleted|Could not download file',
  6689. 'slots|scheduled maintenance',
  6690. "//a[contains(@href,'megashares.com/')]"
  6691. );
  6692. }
  6693. if (GM_getValue("Check_narod_dot_ru_links", false))
  6694. {
  6695. addFileHost(
  6696. 'narod\\.(?:yandex\\.|)ru\/disk\/',
  6697. 'b-submit',
  6698. 'b-download-virus-note|headCode">404<',
  6699. 'Внутренняя ошибка сервиса',
  6700. "//a[contains(@href,'narod.ru') or contains(@href,'narod.yandex.ru')]"
  6701. );
  6702. }
  6703. if (GM_getValue("Check_rayfile_dot_com_links", false))
  6704. {
  6705. addFileHost(
  6706. "rayfile\\.com\/",
  6707. 'FILEtitleTXT',
  6708. 'blueRow',
  6709. 'optional--',
  6710. "//a[contains(@href,'rayfile.com/') and contains(@href,'files')]"
  6711. );
  6712. }
  6713. if (GM_getValue("Check_filesmonster_dot_com_links", false))
  6714. {
  6715. addFileHost(
  6716. "filesmonster\\.com\/download\\.php\\?id=\\w+",
  6717. 'button_green_body"',
  6718. 'error">',
  6719. 'optional--',
  6720. "//a[contains(@href,'filesmonster.com/download')]"
  6721. );
  6722. }
  6723. if (GM_getValue("Check_usaupload_dot_net_links", false))
  6724. {
  6725. addFileHost(
  6726. 'usaupload\\.net\/d\/(?:\w*)',
  6727. '<strong>File size:</strong>',
  6728. 'is not available',
  6729. 'optional--',
  6730. "//a[contains(@href,'usaupload.net/d/')]"
  6731. );
  6732. }
  6733. if (GM_getValue("Check_sendspace_dot_com_links", false))
  6734. {
  6735. addFileHost(
  6736. 'sendspace\\.com\/file\/\\w+',
  6737. 'file_description',
  6738. 'msg error"',
  6739. 'optional--',
  6740. "//a[contains(@href,'sendspace.com/file')]"
  6741. );
  6742. }
  6743. if (GM_getValue("Check_sendspace_dot_pl_links", false))
  6744. {
  6745. addFileHost(
  6746. 'sendspace\\.pl\/file\/\\w+',
  6747. 'download_file"',
  6748. 'Podany plik nie',
  6749. 'optional--',
  6750. "//a[contains(@href,'sendspace.pl/file')]"
  6751. );
  6752. }
  6753. if (GM_getValue("Check_uploading_dot_com_links", false))
  6754. {
  6755. addFileHost(
  6756. 'uploading\\.com\/(?:files\/)?\\w+',
  6757. 'free_method">',
  6758. 'file_error">|error_404">|file not found|OOPS! Looks like file not found',
  6759. 'optional--',
  6760. "//a[contains(@href,'uploading.com')]"
  6761. );
  6762. }
  6763. if (GM_getValue("Check_gigasize_dot_com_links", false))
  6764. {
  6765. addFileHost(
  6766. 'gigasize\\.com\/get\\.php(?:\/\\d+|\\?d=\\w+)',
  6767. 'fileId"',
  6768. 'error">',
  6769. 'optional--',
  6770. "//a[contains(@href,'gigasize.com/get')]"
  6771. );
  6772. }
  6773. if (GM_getValue("Check_good_dot_com_links", false))
  6774. {
  6775. addFileHost(
  6776. 'good\\.net\/(?:_|dl)',
  6777. 'Free Download',
  6778. 'Not Found',
  6779. 'Forbidden',
  6780. "//a[contains(@href,'good.net')]"
  6781. );
  6782. }
  6783. if (GM_getValue("Check_2shared_dot_com_links", false))
  6784. {
  6785. addFileHost(
  6786. '2shared\\.com\/(?:file|video|document|audio)\/\\w*',
  6787. 'File size',
  6788. 'File not found|is not valid|/images/important.gif',
  6789. 'optional--',
  6790. "//a[contains(@href,'2shared.com/file/') or contains (@href,'2shared.com/audio/') or contains (@href,'2shared.com/document/') or contains (@href,'2shared.com/video/')]"
  6791. );
  6792. }
  6793. if (GM_getValue("Check_turboupload_dot_com_links", false))
  6794. {
  6795. addFileHost(
  6796. 'turboupload\\.com\/\\w*',
  6797. 'You have requested',
  6798. 'File Not Found',
  6799. 'optional--',
  6800. "//a[contains(@href,'turboupload.com')]"
  6801. );
  6802. }
  6803. if (GM_getValue("Check_gigapeta_dot_com_links", false))
  6804. {
  6805. addFileHost(
  6806. 'gigapeta\\.com\/dl\/',
  6807. 'Download file|Скачать файл| Herunterzuladen|Scarica il file|Cargar el fichero|Charger le fichier',
  6808. '404|page_error',
  6809. 'optional--',
  6810. "//a[contains(@href,'gigapeta.com/dl')]"
  6811. );
  6812. }
  6813. if (GM_getValue("Check_veehd_dot_com_links", false))
  6814. {
  6815. addFileHost(
  6816. 'veehd\.com\/video\/.*?',
  6817. 'No sound|Download video',
  6818. 'Featured Videos',
  6819. 'optional--',
  6820. "//a[contains(@href,'veehd.com') and contains(@href,'video')]"
  6821. );
  6822. }
  6823. if (GM_getValue("Check_vip_dash_file_dot_com_links", false))
  6824. {
  6825. addFileHost(
  6826. '(?:u\\d+\\.)?vip-file\\.com\/download.*?\/(?:.*?)\/(?:.*?)\\.html',
  6827. 'fast_download_form">|submit_sms_download',
  6828. '<p style="text-align:center">',
  6829. 'optional--',
  6830. "//a[contains(@href,'vip-file.com/download')]"
  6831. );
  6832. }
  6833. if (GM_getValue("Check_letitbit_dot_net_links", false))
  6834. {
  6835. addFileHost(
  6836. '(?:u\\d+\\.)?letitbit\\.net\/download\/\\w+',
  6837. 'download\\-pnl ',
  6838. 'color:#000">|Запрашиваемый файл не найден|страница не существует|File not found|',
  6839. 'optional--',
  6840. "//a[contains(@href,'letitbit.net/download')]"
  6841. );
  6842. }
  6843. if (GM_getValue("Check_ifolder_dot_ru_links", false))
  6844. {
  6845. addFileHost(
  6846. 'ifolder\.ru\/\\d+',
  6847. 'file-info',
  6848. 'ui-state-error',
  6849. 'optional--',
  6850. "//a[contains(@href,'ifolder.ru')]"
  6851. );
  6852. }
  6853. if (GM_getValue("Check_fileswap_dot_com_links", false))
  6854. {
  6855. addFileHost(
  6856. 'fileswap\\.com\/dl\/\\w+',
  6857. 'bttnDownloadLink"',
  6858. 'rounded_block_error"',
  6859. 'is temporary unavailable|disponible en estos momentos|vorläufig unerreichbar|Файл временно недоступен',
  6860. "//a[contains(@href,'fileswap.com/dl')]"
  6861. );
  6862. }
  6863. if (GM_getValue("Check_filecloud_dot_io_links", false))
  6864. {
  6865. addFileHost(
  6866. '(?:s\\d+\\.)?filecloud\\.io\/\\w+',
  6867. 'var __error = 0',
  6868. 'FILES__DOESNT_EXIST|removed or did not exist',
  6869. 'optional--',
  6870. "//a[contains(@href,'filecloud.io/')]"
  6871. );
  6872. addFileHost(
  6873. 'ifile\\.it\/\\w+',
  6874. 'var __error = 0',
  6875. 'FILES__DOESNT_EXIST',
  6876. 'optional--',
  6877. "//a[contains(@href,'ifile.it/')]"
  6878. );
  6879. }
  6880. if (GM_getValue("Check_solidfiles_dot_com_links", false))
  6881. {
  6882. addFileHost(
  6883. 'solidfiles\\.com\/d\/\\w+',
  6884. 'id="download"|content="Download',
  6885. '>Not found<|<h2>404</h2>|Page not found|<h1>404</h1>|File not available|no longer available',
  6886. 'optional--',
  6887. "//a[contains(@href,'solidfiles.com/d')]"
  6888. );
  6889. }
  6890. if (GM_getValue("Check_shareflare_dot_net_links", false))
  6891. {
  6892. addFileHost(
  6893. "(?:.\\.|)shareflare\\.net",
  6894. 'download-pnl|<div class="premium-block">',
  6895. 'File not found|Поиск зеркала на фа|<div id="captcha"',
  6896. 'optional--',
  6897. "//a[contains(@href,'shareflare.net') and contains(@href,'download')]"
  6898. );
  6899. }
  6900. if (GM_getValue("Check_u18116681_dot_shareflare_dot_net_links", false))
  6901. {
  6902. addFileHost(
  6903. "u18116681.shareflare\\.net",
  6904. 'download-pnl|<div class="premium-block">',
  6905. 'File not found|Поиск зеркала на фа|<div id="captcha"',
  6906. 'optional--',
  6907. "//a[contains(@href,'shareflare.net') and contains(@href,'download')]"
  6908. );
  6909. }
  6910. if (GM_getValue("Check_uloz_dot_to_links", false))
  6911. {
  6912. addFileHost(
  6913. "(?:uloz|ulozto|bagruj|zachowajto)\\.(to|cz|sk|net|pl)\/\\w",
  6914. 'fileDownload">|fileSize">',
  6915. 'grayButton deletedFile">|Stránka nenalezena|upload-button"|jako soukromý.',
  6916. 'passwordProtectedFile">|frmaskAgeForm-disagree',
  6917. "//a[contains(@href,'bagruj.cz') or contains(@href,'uloz.to') or contains(@href,'ulozto.') or contains(@href,'zachowajto.pl')]",
  6918. true
  6919. );
  6920. }
  6921. if (GM_getValue("Check_hellspy_dot_com_links", false))
  6922. {
  6923. addFileHost(
  6924. "hellspy\.(?:com|cz|sk|hu|pl)\/\\w+",
  6925. 'file\\-list-orderby|section-filedetail">',
  6926. '<\/span><\/h2>\\s*<p>|list-purp-2">|flash info sticky">',
  6927. 'optional--',
  6928. "//a[contains(@href,'hellspy.')]"
  6929. );
  6930. }
  6931. if (GM_getValue("Check_leteckaposta_dot_cz_links", false))
  6932. {
  6933. addFileHost(
  6934. "(?:leteckaposta\\.cz|sharegadget\\.com)\/\\d+",
  6935. '<body onload="">',
  6936. 'neexistuje|not exist',
  6937. 'optional--',
  6938. "//a[contains(@href,'leteckaposta.cz') or contains(@href,'sharegadget.com')]"
  6939. );
  6940. }
  6941. if (GM_getValue("Check_stahovanizasms_dot_cz_links", false))
  6942. {
  6943. addFileHost(
  6944. "stahovanizasms\\.cz\/\\w+",
  6945. 'download\\.png>|font-size:11px><tr>',
  6946. 'smaz.n u.ivatelem|font-size:11px><\/table>',
  6947. 'optional--',
  6948. "//a[contains(@href,'stahovanizasms.cz')]"
  6949. );
  6950. }
  6951. if (GM_getValue("Check_share_dash_links_dot_biz_links", false))
  6952. {
  6953. addFileHost(
  6954. "share-links\\.biz\/\\w*",
  6955. 'online\\.gif',
  6956. '(?:offline|parts)\\.gif',
  6957. 'optional--',
  6958. "//a[contains(@href,'share-links.biz')]"
  6959. );
  6960. }
  6961. if (GM_getValue("Check_4shared_dot_com_links", false))
  6962. {
  6963. addFileHost(
  6964. "4shared\\.com\/.+\/",
  6965. '<input type="hidden" class="jsSocialTwDefaultText" value=',
  6966. 'class="warn\"|big red"|GetDataBack',
  6967. 'Service Unavailable',
  6968. "//a[contains(@href,'4shared.com')]"
  6969. );
  6970. }
  6971. if (GM_getValue("Check_zippyshare_dot_com_links", false))
  6972. {
  6973. addFileHost(
  6974. "(?:www\\d+\.|)zippyshare\.com\/",
  6975. 'download\.png|Download Now|images/download_small.png|id="dlbutton"',
  6976. 'not exist|Status 404',
  6977. 'optional--',
  6978. "//a[contains(@href,'zippyshare.com') and contains(@href,'file.html')]"
  6979. );
  6980. }
  6981. if (GM_getValue("Check_mediafire_dot_com_links", false))
  6982. {
  6983. addFileHost(
  6984. "mediafire\.com\/",
  6985. 'download_file_title|dlFileName|id="PLAY_downloadButton"',
  6986. 'error\\.php\\?|error_msg_title|<title>Simple File Sharing|No files found',
  6987. 'set to private',
  6988. "//a[contains(@href,'mediafire.com')]"
  6989. );
  6990. }
  6991. if (GM_getValue("Check_uploaded_dot_to_links", false))
  6992. {
  6993. addFileHost(
  6994. '(?:uploaded\\.(?:to|net)\/(?:.id|file|folder|f|410|404))|(?:ul\\.to\/)',
  6995. '<h2>Authentification</h2></li>| MB|1,00 GB',
  6996. 'box_red|Error: 404|Error: 410|fileList"><thead><tr><td colspan="2"><\/td><\/tr><\/thead><tbody>\\s*<tr>|<title>uploaded.net</title>',
  6997. 'optional--',
  6998. "//a[contains(@href,'uploaded.to/') or contains(@href,'uploaded.net/') or contains(@href,'ul.to/')]"
  6999. );
  7000. }
  7001. if (GM_getValue("Check_ulozisko_dot_sk_links", false))
  7002. {
  7003. addFileHost(
  7004. "ulozisko\.sk\/",
  7005. 'Detaily',
  7006. 'neexistuje',
  7007. 'optional--',
  7008. "//a[contains(@href,'ulozisko.sk')]"
  7009. );
  7010. }
  7011. if (GM_getValue("Check_upnito_dot_sk_links", false))
  7012. {
  7013. addFileHost(
  7014. "(?:dl.\\.|)upnito\\.sk\/(download|subor|file)",
  7015. 'download.php',
  7016. 'notfound|upload\\-suborov\\.php"',
  7017. 'optional--',
  7018. "//a[contains(@href,'upnito.sk')]"
  7019. );
  7020. }
  7021. if (GM_getValue("Check_uptobox_dot_com_links", false))
  7022. {
  7023. addFileHost(
  7024. "uptobox\\.com\/\\w+",
  7025. 'Create Download Link">',
  7026. '500px;text-align:left;">|File not found|Fichier introuvable',
  7027. 'Maintenance|not available in your country',
  7028. "//a[contains(@href,'uptobox.com')]"
  7029. );
  7030. }
  7031. if (GM_getValue("Check_sharecash_dot_org_links", false))
  7032. {
  7033. addFileHost(
  7034. "sharecash\\.org\/download\\.php\\?file=\\d+",
  7035. 'FILE DOWNLOAD<',
  7036. 'File Does Not Exist',
  7037. 'optional--',
  7038. "//a[contains(@href,'sharecash.org/download.php')]"
  7039. );
  7040. }
  7041. if (GM_getValue("Check_depositfiles_dot_com_links", false)) //folders
  7042. {
  7043. addFileHost(
  7044. "depositfiles\\.com\/folders\/\\w+",
  7045. '<div class="progressContainer">',
  7046. '<div id="files" class="files">\\s*<\/div>',
  7047. 'optional--',
  7048. "//a[contains(@href,'depositfiles.com/folders')]"
  7049. );
  7050. }
  7051. if (GM_getValue("Check_depositfiles_dot_com_links", false))
  7052. {
  7053. addFileHost(
  7054. "depositfiles\\.com\/|depositfiles.org|dfiles\.eu|dfiles.ru",
  7055. '<b>File Download</b>|File name|Nom du fichier|Nome do arquivo|speed_small\.gif',
  7056. 'Such file does not exist|<div class="no_download_msg"|This file does not exist',
  7057. 'optional--',
  7058. "//a[contains(@href,'depositfiles') or contains(@href,'dfiles')]"
  7059. );
  7060. }
  7061. if (GM_getValue("Check_rapidfileshare_dot_net_links", false))
  7062. {
  7063. addFileHost(
  7064. "rapidfileshare\\.net/\\w+",
  7065. '<div id="upload-header-bg">',
  7066. '<div style="width:500px;text-align:left;">',
  7067. 'optional--',
  7068. "//a[contains(@href,'rapidfileshare.net/')]"
  7069. );
  7070. }
  7071. if (GM_getValue("Check_stiahnito_dot_sk_links", false))
  7072. {
  7073. addFileHost(
  7074. "stiahnito\\.sk/",
  7075. '<span class="filesize right">',
  7076. '<ol class="list-purp-2">',
  7077. 'optional--',
  7078. "//a[contains(@href,'stiahnito.sk/')]"
  7079. );
  7080. }
  7081. if (GM_getValue("Check_rusfolder_dot_com_links", false))
  7082. {
  7083. addFileHost(
  7084. "rusfolder\\.(?:com|net)",
  7085. '"download-step-one-form"|Название: <b>|Файлы|Файлы в папке',
  7086. '"ui-state-error ui-corner-all"|File is removed|File not found|удален',
  7087. 'optional--',
  7088. "//a[contains(@href,'rusfolder')]"
  7089. );
  7090. }
  7091. if (GM_getValue("Check_fileover_dot_net_links", false))
  7092. {
  7093. addFileHost(
  7094. "fileover\\.net/\\d+",
  7095. 'id="filesize"',
  7096. 'Not found or deleted|The following file is unavailable',
  7097. 'optional--',
  7098. "//a[contains(@href,'fileover.net/')]"
  7099. );
  7100. }
  7101. if (GM_getValue("Check_catshare_dot_net_links", false))
  7102. {
  7103. addFileHost(
  7104. "catshare\\.net/\\w+",
  7105. '"icon-share',
  7106. 'alert alert-error',
  7107. 'optional--',
  7108. "//a[contains(@href,'catshare.net/')]"
  7109. );
  7110. }
  7111. if (GM_getValue("Check_anonfiles_dot_com_links", false))
  7112. {
  7113. addFileHost(
  7114. "anonfiles\\.com/\\w+",
  7115. '"download_button"',
  7116. '<legend><b>404</b>',
  7117. 'optional--',
  7118. "//a[contains(@href,'anonfiles.com')]"
  7119. );
  7120. }
  7121. if (GM_getValue("Check_mixturecloud_dot_com_links", false))
  7122. {
  7123. addFileHost(
  7124. "mixturecloud\\.com/media/\\w+",
  7125. '"btn icon i_globe gray share_150',
  7126. '"s_cross_close"></span> 404:',
  7127. 'optional--',
  7128. "//a[contains(@href,'mixturecloud.com/media/')]"
  7129. );
  7130. }
  7131. if (GM_getValue("Check_akafile_dot_com_links", false))
  7132. {
  7133. addFileHost(
  7134. "akafile\\.com\/\\w+",
  7135. 'download1',
  7136. 'File Not Found',
  7137. 'optional--',
  7138. "//a[contains(@href,'akafile.com/')]"
  7139. );
  7140. }
  7141. if (GM_getValue("Check_creafile_dot_net_links", false))
  7142. {
  7143. addFileHost(
  7144. "creafile\\.net\/\\w+",
  7145. 'downloadblock',
  7146. 'errtitle',
  7147. 'optional--',
  7148. "//a[contains(@href,'creafile.net/')]"
  7149. );
  7150. }
  7151. if (GM_getValue("Check_hugefiles_dot_net_links", false))
  7152. {
  7153. addFileHost(
  7154. "hugefiles\\.net\/\\w+",
  7155. 'download1|class="btn-create-download" value="Create Download Link">',
  7156. 'File Not Found|No such file with this filename',
  7157. 'optional--',
  7158. "//a[contains(@href,'hugefiles.net/')]"
  7159. );
  7160. }
  7161. if (GM_getValue("Check_sendmyway_dot_com_links", false))
  7162. {
  7163. addFileHost(
  7164. "sendmyway\\.com\/\\w+",
  7165. 'id="btn_download"',
  7166. '500px;text-align:left;"|<center><h3>',
  7167. 'optional--',
  7168. "//a[contains(@href,'sendmyway.com/')]"
  7169. );
  7170. }
  7171. if (GM_getValue("Check_upload_dot_ee_links", false))
  7172. {
  7173. addFileHost(
  7174. "upload\\.ee\/\\w+",
  7175. 'onmouseout="document.dllink.src',
  7176. 'There is no such file.|File was deleted|Fail kustutati|Файл удалён|Такого файла нет',
  7177. 'optional--',
  7178. "//a[contains(@href,'upload.ee/')]"
  7179. );
  7180. }
  7181. if (GM_getValue("Check_shareplace_dot_org_links", false))
  7182. {
  7183. addFileHost(
  7184. "shareplace\\.org\/\\?\\w+",
  7185. 'Download-Link',
  7186. 'Your requested file is not found|Select file to send',
  7187. 'optional--',
  7188. "//a[contains(@href,'shareplace.org/?')]"
  7189. );
  7190. }
  7191. if (GM_getValue("Check_uploadc_dot_com_links", false))
  7192. {
  7193. addFileHost(
  7194. "uploadc\\.com\/\\w+",
  7195. 'id="prebut"',
  7196. 'File Not Found|This file has been removed due',
  7197. 'optional--',
  7198. "//a[contains(@href,'uploadc.com/')]"
  7199. );
  7200. }
  7201. if (GM_getValue("Check_remixshare_dot_com_links", false))
  7202. {
  7203. addFileHost(
  7204. "remixshare\\.com\/\\w+",
  7205. 'id="dl2"',
  7206. '<table class=\'failed\'><tr><td width=\'90%\'>|Sorry, die Datei konnte nicht gefunden werden',
  7207. 'optional--',
  7208. "//a[contains(@href,'remixshare.com/')]"
  7209. );
  7210. }
  7211. if (GM_getValue("Check_exoshare_dot_com_links", false))
  7212. {
  7213. addFileHost(
  7214. "exoshare\\.com\/download\\.php\\?uid=\\w+",
  7215. 'Last Download :',
  7216. 'img src="\\/404.jpg"',
  7217. 'optional--',
  7218. "//a[contains(@href,'exoshare.com/download.php')]"
  7219. );
  7220. }
  7221. if (GM_getValue("Check_borncash_dot_org_links", false))
  7222. {
  7223. addFileHost(
  7224. "borncash\\.org\/download\/\\?a=\\w+",
  7225. 'class="knop_1"',
  7226. '\/error\/er00',
  7227. 'optional--',
  7228. "//a[contains(@href,'borncash.org/download/')]"
  7229. );
  7230. }
  7231. if (GM_getValue("Check_vidplay_dot_net_links", false))
  7232. {
  7233. addFileHost(
  7234. "vidplay\.net\/\\w+",
  7235. 'solvemedia puzzle widget',
  7236. 'File not found|AVOID_IE_BUG',
  7237. 'optional--',
  7238. "//a[contains(@href,'vidplay.net')]");
  7239. }
  7240. if (GM_getValue("Check_storagon_dot_com_links", false))
  7241. {
  7242. addFileHost(
  7243. "storagon\.com\/\\w+",
  7244. 'class="icon-cloud-download"></i>|content="Download Options',
  7245. 'content="Download Downloads|class="error-container">|class="bigger-300 bolder">404<',
  7246. 'optional--',
  7247. "//a[contains(@href,'storagon.com')]");
  7248. }
  7249. if (GM_getValue("Check_filedais_dot_com_links", false))
  7250. {
  7251. addFileHost(
  7252. "filedais\.com\/\\w+",
  7253. 'class="btn btn-info"|name="method_free"',
  7254. 'style="width:500px;text-align:left;">|File Not Found|AVOID_IE_BUG',
  7255. 'optional--',
  7256. "//a[contains(@href,'filedais.com')]");
  7257. }
  7258. if (GM_getValue("Check_ryushare_dot_com_links", false))
  7259. {
  7260. addFileHost(
  7261. "ryushare\.com\/\\w+",
  7262. 'KB|MB',
  7263. '<div style="width:500px;text-align:left;">',
  7264. 'in maintenance mode|Software error:',
  7265. "//a[contains(@href,'ryushare.com')]");
  7266. }
  7267. if (GM_getValue("Check_up_dot_4share_dot_vn_links", false))
  7268. {
  7269. addFileHost(
  7270. "up.4share\.vn\/\\w+",
  7271. '<font size="2" face="Verdana">',
  7272. 'font: 13px Tahoma; color: Brown',
  7273. 'optional--',
  7274. //'optional--',
  7275. "//a[contains(@href,'up.4share.vn')]");
  7276. }
  7277. if (GM_getValue("Check_share_dot_vnn_dot_vn_links", false))
  7278. {
  7279. addFileHost(
  7280. "share.vnn\.vn\/\\w+",
  7281. '"index,follow"|<div class="main" id="download-box">',
  7282. '<meta name="description" content="" />|<h1>Không tìm thấy file bạn yêu cầu</h1>',
  7283. 'optional--',
  7284. //'optional--',
  7285. "//a[contains(@href,'share.vnn.vn')]");
  7286. }
  7287. if (GM_getValue("Check_upfile_dot_vn_links", false))
  7288. {
  7289. addFileHost(
  7290. "upfile\.vn\/\\w+",
  7291. 'download-timer',
  7292. '<meta name="description" content="Upload files|<meta name="description" content="Error "',
  7293. 'optional--',
  7294. //'optional--',
  7295. "//a[contains(@href,'upfile.vn')]");
  7296. }
  7297. /* if (GM_getValue("Check_firedrive_dot_com_links", false))
  7298. {
  7299. addFileHost(
  7300. "firedrive\\.com\/file\/\\w{16}",
  7301. 'as Free User|<a class="continue"|Continue to file|#feedback_btn|application file_standalone',
  7302. 'Welcome to PutLocker|<div class="sad_face_image">|404:',
  7303. 'undergoing scheduled maintenance',
  7304. "//a[contains(@href,'firedrive.com/file')]"
  7305. );
  7306. } */
  7307. if (GM_getValue("Check_aisfile_dot_com_links", false))
  7308. {
  7309. addFileHost(
  7310. "aisfile\.com\/\\w+",
  7311. '<h3 style="text-align:left;">|align=right><b>Filename:',
  7312. '<div style="width:500px;text-align:left;">|File Not Found',
  7313. 'optional--',
  7314. //'optional--',
  7315. "//a[contains(@href,'aisfile.com')]");
  7316. }
  7317. if (GM_getValue("Check_usersfiles_dot_com_links", false))
  7318. {
  7319. addFileHost(
  7320. "usersfiles\.com\/\\w+",
  7321. 'class="btn btn-success|id="btn_download" class="btn"',
  7322. '<div style="width:500px;text-align:left;">',
  7323. 'optional--',
  7324. //'optional--',
  7325. "//a[contains(@href,'usersfiles.com')]");
  7326. }
  7327. if (GM_getValue("Check_pan_dot_baidu_dot_com_links", false))
  7328. {
  7329. addFileHost(
  7330. "pan.baidu\.com\/\\w+",
  7331. 'target="_blank" title=|share-personal-info',
  7332. 'share_notfound.png|background:#f9f9f9',
  7333. 'optional--',
  7334. //'optional--',
  7335. "//a[contains(@href,'pan.baidu.com')]");
  7336. }
  7337. if (GM_getValue("Check_yunpan_dot_cn_links", false))
  7338. {
  7339. addFileHost(
  7340. "yunpan\.cn\/\\w+",
  7341. 'class="icon icon-download',
  7342. 'content="360|http://p5.qhimg.com/t01d1c98667df9dc6cc.jpg',
  7343. 'optional--',
  7344. //'optional--',
  7345. "//a[contains(@href,'yunpan.cn')]");
  7346. }
  7347. if (GM_getValue("Check_file_dash_upload_dot_net_links", false))
  7348. {
  7349. addFileHost(
  7350. "(?:en\\.|)file\\-upload\\.net\/download\\-\\d+\/\\w+",
  7351. 'getElementById("downbild")|style.display',
  7352. 'hochgeladene Datei nicht gefunden werden|has not been found',
  7353. 'optional--',
  7354. //'optional--',
  7355. "//a[contains(@href,'file-upload.net')]");
  7356. }
  7357. if (GM_getValue("Check_gulfup_dot_com_links", false))
  7358. {
  7359. addFileHost(
  7360. "gulfup\.com\/",
  7361. '<!-- Downlod template -->|download.gif',
  7362. '<!-- Errors template -->|class="error">|<!-- form upload -->|[ رفع الملفات ]',
  7363. 'optional--',
  7364. //'optional--',
  7365. "//a[contains(@href,'gulfup.com')]");
  7366. }
  7367. if (GM_getValue("Check_datafilehost_dot_com_links", false))
  7368. {
  7369. addFileHost(
  7370. "datafilehost\\.com\/(?:download-\\w+\\.html|d\/\\w+)",
  7371. 'dldtable">',
  7372. 'does not exist\\.',
  7373. 'optional--',
  7374. //'optional--',
  7375. "//a[contains(@href,'datafilehost.com')]");
  7376. }
  7377. if (GM_getValue("Check_box_dot_com_links", false))
  7378. {
  7379. addFileHost(
  7380. "box\.com\/\\w+",
  7381. 'download-file-btn|id="download_button',
  7382. 'BIyMin.png| <div class="error_message|link has been removed',
  7383. 'optional--',
  7384. //'optional--',
  7385. "//a[contains(@href,'app.box.com')]");
  7386. }
  7387. if (GM_getValue("Check_dropbox_dot_com_links", false))
  7388. {
  7389. addFileHost(
  7390. "dropbox\.com\/s\/\\w+",
  7391. 'default_content_download_button" class="freshbutton-blue">|content_download_button',
  7392. '>Nothing Here<|>Error (404)<',
  7393. 'title>Dropbox - 509|Error (403)|Error: 429',
  7394. "//a[contains(@href,'dropbox.com')]");
  7395. }
  7396. if (GM_getValue("Check_box_dot_net_links", false))
  7397. {
  7398. addFileHost(
  7399. "box\.net\/\\w+",
  7400. 'download-file-btn|id="download_button',
  7401. 'BIyMin.png| <div class="error_message',
  7402. 'optional--',
  7403. //'optional--',
  7404. "//a[contains(@href,'box.net')]");
  7405. }
  7406. if (GM_getValue("Check_fileband_dot_com_links", false))
  7407. {
  7408. addFileHost(
  7409. "fileband\.com\/\\w+",
  7410. 'value="download1">|name="id" value=',
  7411. '<div style="width:500px;text-align:left;">|not be found',
  7412. 'optional--',
  7413. //'optional--',
  7414. "//a[contains(@href,'fileband.com')]");
  7415. }
  7416. if (GM_getValue("Check_uploadrocket_dot_net_links", false))
  7417. {
  7418. addFileHost(
  7419. "uploadrocket\.net\/\\w+",
  7420. '<font style="font-size:12px;">|<h2>Download File|method_isfree',
  7421. 'font style="color:#d33;|File Not Found',
  7422. 'optional--',
  7423. //'optional--',
  7424. "//a[contains(@href,'uploadrocket.net')]");
  7425. }
  7426. if (GM_getValue("Check_filedropper_dot_com_links", false))
  7427. {
  7428. addFileHost(
  7429. "filedropper\.com\/\\w+",
  7430. 'background:#ddd;|width:985px; ',
  7431. 'background-color:#FFFFFF;|margin-left: -400px;',
  7432. 'optional--',
  7433. //'optional--',
  7434. "//a[contains(@href,'filedropper.com')]");
  7435. }
  7436. if (GM_getValue("Check_tropicshare_dot_com_links", false))
  7437. {
  7438. addFileHost(
  7439. "tropicshare\\.com\/files\/\\d+",
  7440. 'MB</span>|GB</span>|KB</span>',
  7441. '>FNF<|size: </span>',
  7442. 'optional--',
  7443. //'optional--',
  7444. "//a[contains(@href,'tropicshare.com')]");
  7445. }
  7446. if (GM_getValue("Check_goldbytez_dot_com_links", false))
  7447. {
  7448. addFileHost(
  7449. "goldbytez\.com\/\\w+",
  7450. '<h2>Download</h2>|<center><h2>File: <font color="red">',
  7451. '<div style="width:500px;text-align:left;">|<h2>Error</h2>',
  7452. 'optional--',
  7453. //'optional--',
  7454. "//a[contains(@href,'goldbytez.com')]");
  7455. }
  7456. if (GM_getValue("Check_worldbytez_dot_com_links", false))
  7457. {
  7458. addFileHost(
  7459. "worldbytez\.com\/\\w+",
  7460. '<div class="download_type">',
  7461. '<div style="width:500px;text-align:left;">',
  7462. 'optional--',
  7463. //'optional--',
  7464. "//a[contains(@href,'worldbytez.com')]");
  7465. }
  7466. if (GM_getValue("Check_freefilehosting_dot_net_links", false))
  7467. {
  7468. addFileHost(
  7469. "freefilehosting\.net\/\\w+",
  7470. 'Type: cbr|Type: rar|Type: jpg|Type: mkv|Type: avi|Type: mpg|Type: mpeg|Type: zip|Type: wmvType: bmpType: gifType: mp4Type: mp3',
  7471. '175px;" value="http://www.freefilehosting.net/"|Filename: <br>',
  7472. 'optional--',
  7473. //'optional--',
  7474. "//a[contains(@href,'freefilehosting.net')]");
  7475. }
  7476. if (GM_getValue("Check_ziddu_dot_com_links", false))
  7477. {
  7478. addFileHost(
  7479. "ziddu\.com\/\\w+",
  7480. 'downloads.ziddu.com|downloadfilelinkicon',
  7481. 'errortracking.php|images/oops.png|fontfamilyverdana error',
  7482. 'optional--',
  7483. //'optional--',
  7484. "//a[contains(@href,'ziddu.com')]");
  7485. }
  7486. if (GM_getValue("Check_exclusiveloader_dot_com_links", false))
  7487. {
  7488. addFileHost(
  7489. "exclusiveloader\.com\/\\w+",
  7490. 'style="padding-top:55px; padding-bottom:65px;">|<h2>Download</h2>',
  7491. 'File Not Found|width:322px;text-align:left;" class="no_file">',
  7492. 'optional--',
  7493. //'optional--',
  7494. "//a[contains(@href,'exclusiveloader.com')]");
  7495. }
  7496. if (GM_getValue("Check_sharerapid_dot_cz_links", false))
  7497. {
  7498. addFileHost(
  7499. "sharerapid\.cz\/\\w+",
  7500. 'value="Stáhnout"|soubor" style|Stahování je povoleno pouze pro přihlášené uživatele',
  7501. 'error_div">|404 - Not Found',
  7502. 'optional--',
  7503. //'optional--',
  7504. "//a[contains(@href,'sharerapid.cz')]");
  7505. }
  7506. if (GM_getValue("Check_sdilej_dot_cz_links", false))
  7507. {
  7508. addFileHost(
  7509. "sdilej\.cz\/\\w+",
  7510. 'class="page-download"',
  7511. '<h2 class="red">|czshare.com|sponsored listings|This domain is for sale',
  7512. 'optional--',
  7513. //'optional--',
  7514. "//a[contains(@href,'sdilej.cz')]");
  7515. }
  7516. if (GM_getValue("Check_lafiles_dot_com_links", false))
  7517. {
  7518. addFileHost(
  7519. "lafiles\.com\/\\w+",
  7520. '<div id="pay_modes">',
  7521. '<b class="err"></b>',
  7522. 'optional--',
  7523. //'optional--',
  7524. "//a[contains(@href,'lafiles.com')]");
  7525. }
  7526. if (GM_getValue("Check_fboom_dot_me_links", false))
  7527. {
  7528. addFileHost(
  7529. "fboom\.me\/file\/\\w+",
  7530. 'id="download-free" href="#"',
  7531. 'class="error-v1-title">404<|File not found or deleted',
  7532. 'optional--',
  7533. //'optional--',
  7534. "//a[contains(@href,'fboom.me')]");
  7535. }
  7536. if (GM_getValue("Check_fileboom_dot_me_links", false))
  7537. {
  7538. addFileHost(
  7539. "fileboom\.me\/file\/\\w+",
  7540. 'id="download-free" href="#"',
  7541. 'class="error-v1-title">404<|File not found or deleted',
  7542. 'optional--',
  7543. //'optional--',
  7544. "//a[contains(@href,'fileboom.me')]");
  7545. }
  7546. if (GM_getValue("Check_acefile_dot_net_links", false))
  7547. {
  7548. addFileHost(
  7549. "acefile\.net\/\\w+",
  7550. 'align=right nowrap><b>',
  7551. 'File Not Found|<div style="width:322px;text-align:left;" class="no_file">',
  7552. 'optional--',
  7553. //'optional--',
  7554. "//a[contains(@href,'acefile.net')]");
  7555. }
  7556. if (GM_getValue("Check_megarapid_dot_cz_links", false))
  7557. {
  7558. addFileHost(
  7559. "megarapid\.cz\/\\w+",
  7560. 'value="Stáhnout"|soubor" style|Stahování je povoleno pouze pro přihlášené uživatele',
  7561. 'error_div">|404 - Not Found',
  7562. 'optional--',
  7563. //'optional--',
  7564. "//a[contains(@href,'megarapid.cz')]");
  7565. }
  7566. if (GM_getValue("Check_yadi_dot_sk_links", false))
  7567. {
  7568. addFileHost(
  7569. "yadi\.sk\/\\w+",
  7570. 'twitter:site|View and download',
  7571. 'error code|Nothing found',
  7572. 'optional--',
  7573. //'optional--',
  7574. "//a[contains(@href,'yadi.sk')]");
  7575. }
  7576. if (GM_getValue("Check_imdb_dot_com_links", false))
  7577. {
  7578. addFileHost(
  7579. "imdb\.com\/\\w+",
  7580. 'imdb.com',
  7581. '404 Error',
  7582. 'optional--',
  7583. "//a[contains(@href,'imdb.com')]");
  7584. }
  7585. if (GM_getValue("Check_hitfile_dot_net_links", false))
  7586. {
  7587. addFileHost(
  7588. "hitfile\.net\/\\w+",
  7589. 'class="download-file',
  7590. 'style="width:16px;height:16px;border:0;|File not found|Файл не найден. Возможно он был удален',
  7591. 'optional--',
  7592. //'optional--',
  7593. "//a[contains(@href,'hitfile.net')]");
  7594. }
  7595. /* if (GM_getValue("Check_uploadto_dot_us_links", false))
  7596. {
  7597. addFileHost(
  7598. "uploadto\\.us\/file\/details\/[\\w+-]",
  7599. 'name="recaptcha_response',
  7600. '="/folder/add"|>File (?:not found|restricted|has been deleted)|<title>UPLOADTO.US</title>',
  7601. 'btn-large btn-danger">|Account limitation notice|502 Bad Gateway',
  7602. "//a[contains(@href,'uploadto.us/file')]",
  7603. true);
  7604. } */
  7605. if (GM_getValue("Check_nitroflare_dot_com_links", true))
  7606. {
  7607. addFileHost(
  7608. "nitroflare\.com\/\\w+",
  7609. 'alert.png|LowSpeedMeter.png',
  7610. 'file has been removed|id="error" style="display|Probably deleted',
  7611. 'optional--',
  7612. "//a[contains(@href,'nitroflare.com')]");
  7613. }
  7614. if (GM_getValue("Check_up_dot_top4top_dot_net_links", false))
  7615. {
  7616. addFileHost(
  7617. "up.top4top\.net\/\\w+",
  7618. 'start Downlod template',
  7619. 'start err template',
  7620. 'optional--',
  7621. "//a[contains(@href,'up.top4top.net')]");
  7622. }
  7623. if (GM_getValue("Check_filejoker_dot_net_links", false))
  7624. {
  7625. addFileHost(
  7626. "filejoker\.net\/\\w+",
  7627. 'button id="regular-download">Slow|method_free" value="1|<div id="download" class="download0">',
  7628. 'File Not Found|class="not_found|<div id="download" class="not_found">|"err">DMCA Complaint<',
  7629. 'optional--',
  7630. "//a[contains(@href,'filejoker.net')]");
  7631. }
  7632. if (GM_getValue("Check_free_dot_fr_links", false))
  7633. {
  7634. addFileHost(
  7635. "(?:dl.\\.|)free\\.fr",
  7636. 'Valider et t&eacute;l&eacute',
  7637. 'Fichier inexistant',
  7638. 'optional--',
  7639. "//a[contains(@href,'free.fr')]");
  7640. }
  7641. if (GM_getValue("Check_gboxes_dot_com_links", false))
  7642. {
  7643. addFileHost(
  7644. "gboxes\.com\/\\w+",
  7645. 'You have requested|color="red">http://www.gboxes.com',
  7646. 'File Not Found|<div style="width:500px;text-align:left;">',
  7647. 'optional--',
  7648. "//a[contains(@href,'gboxes.com')]");
  7649. }
  7650. if (GM_getValue("Check_1fichier_dot_com_links", false))
  7651. {
  7652. addFileHost(
  7653. "(?:\\w{10}\\.(?:1fichier|dl4free)\\.com\/)|(?:(?:1fichier|dl4free)\\.com\/\\?\\w{10})|(?:www\\.)?\\w{6,}\\.1fichier\\.com",
  7654. '<title>Download</title>|<br/>You must wait|submit" value="Download',
  7655. 'File not found|file could not be found|Select files to send',
  7656. 'optional--',
  7657. "//a[contains(@href,'1fichier') or contains(@href,'dl4free.com/')]"
  7658. );
  7659. }
  7660. if (GM_getValue("Check_led_dot_wf_links", false))
  7661. {
  7662. addFileHost(
  7663. "led\.wf\/\\w+",
  7664. 'logo_0.png|downloads.gif"|verifycode',
  7665. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link',
  7666. 'optional--',
  7667. "//a[contains(@href,'led.wf')]");
  7668. }
  7669. if (GM_getValue("Check_lan_dot_wf_links", false))
  7670. {
  7671. addFileHost(
  7672. "lan\.wf\/\\w+",
  7673. 'logo_0.png|downloads.gif"|verifycode',
  7674. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link',
  7675. 'optional--',
  7676. "//a[contains(@href,'lan.wf')]");
  7677. }
  7678. if (GM_getValue("Check_adlink_dot_wf_links", false))
  7679. {
  7680. addFileHost(
  7681. "adlink\.wf\/\\w+",
  7682. 'logo_0.png|downloads.gif"|verifycode',
  7683. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link',
  7684. 'optional--',
  7685. "//a[contains(@href,'adlink.wf')]");
  7686. }
  7687. if (GM_getValue("Check_click_dot_tf_links", false))
  7688. {
  7689. addFileHost(
  7690. "click\.tf\/\\w+",
  7691. 'logo_0.png|downloads.gif"|verifycode',
  7692. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link',
  7693. 'optional--',
  7694. "//a[contains(@href,'click.tf')]");
  7695. }
  7696. if (GM_getValue("Check_ssh_dot_tf_links", false))
  7697. {
  7698. addFileHost(
  7699. "ssh\.tf\/\\w+",
  7700. 'logo_0.png|downloads.gif"|verifycode',
  7701. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link',
  7702. 'optional--',
  7703. "//a[contains(@href,'ssh.tf')]");
  7704. }
  7705. if (GM_getValue("Check_ssh_dot_yt_links", false))
  7706. {
  7707. addFileHost(
  7708. "ssh\.yt\/\\w+",
  7709. 'logo_0.png|downloads.gif"|verifycode',
  7710. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link',
  7711. 'optional--',
  7712. "//a[contains(@href,'ssh.yt')]");
  7713. }
  7714. if (GM_getValue("Check_yep_dot_pm_links", false))
  7715. {
  7716. addFileHost(
  7717. "yep\.pm\/\\w+",
  7718. 'logo_0.png|downloads.gif"|verifycode',
  7719. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link',
  7720. 'optional--',
  7721. "//a[contains(@href,'yep.pm')]");
  7722. }
  7723. if (GM_getValue("Check_kyc_dot_pm_links", false))
  7724. {
  7725. addFileHost(
  7726. "kyc\.pm\/\\w+",
  7727. 'logo_0.png|downloads.gif"|verifycode',
  7728. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link',
  7729. 'optional--',
  7730. "//a[contains(@href,'kyc.pm')]");
  7731. }
  7732. if (GM_getValue("Check_brupload_dot_net_links", false))
  7733. {
  7734. addFileHost(
  7735. "brupload\.net\/\\w+",
  7736. 'Download Gratuito',
  7737. '<div style="width:500px;text-align:left;">',
  7738. 'optional--',
  7739. //'optional--',
  7740. "//a[contains(@href,'brupload.net')]");
  7741. }
  7742. if (GM_getValue("Check_cloudzilla_dot_to_links", false))
  7743. {
  7744. addFileHost(
  7745. "cloudzilla\.to\/\\w+",
  7746. 'btn1" id="free_download|onclick="freeDownload|id="pwd_protected">',
  7747. 'File not found|/imgs/broken.png',
  7748. 'optional--',
  7749. //'optional--',
  7750. "//a[contains(@href,'cloudzilla.to')]");
  7751. }
  7752. if (GM_getValue("Check_fileparadox_dot_in_links", false))
  7753. {
  7754. addFileHost(
  7755. "fileparadox\.in\/\\w+",
  7756. 'CONTENT="Download File|method_free_file',
  7757. '>File Not Found<|id="no_filedownload">|FILE NOT FOUND',
  7758. 'optional--',
  7759. //'optional--',
  7760. "//a[contains(@href,'fileparadox.in')]");
  7761. }
  7762. if (GM_getValue("Check_clicknupload_dot_com_links", false))
  7763. {
  7764. addFileHost(
  7765. "clicknupload\.com\/\\w+",
  7766. 'name="method_free',
  7767. 'File Not Found',
  7768. 'optional--',
  7769. //'optional--',
  7770. "//a[contains(@href,'clicknupload.com')]");
  7771. }
  7772. if (GM_getValue("Check_ex_dash_load_dot_com_links", false))
  7773. {
  7774. addFileHost(
  7775. "ex-load\.com\/\\w+",
  7776. 'name="method_free|<p>Download File:</p>',
  7777. 'Folder Not Found|File Not Found|Error 404',
  7778. 'optional--',
  7779. //'optional--',
  7780. "//a[contains(@href,'ex-load.com')]");
  7781. }
  7782. if (GM_getValue("Check_hexupload_dot_com_links", false))
  7783. {
  7784. addFileHost(
  7785. "hexupload\.com\/\\w+",
  7786. 'button" value="Free|type="submit" value=""',
  7787. 'File Not Found|<div style="width:500px;text-align:left;">',
  7788. 'optional--',
  7789. //'optional--',
  7790. "//a[contains(@href,'hexupload.com')]");
  7791. }
  7792. if (GM_getValue("Check_wizupload_dot_com_links", false))
  7793. {
  7794. addFileHost(
  7795. "wizupload\.com\/\\w+",
  7796. 'btn_download|class="downloadbtn"',
  7797. '>File Not Found<',
  7798. 'optional--',
  7799. //'optional--',
  7800. "//a[contains(@href,'wizupload.com')]");
  7801. }
  7802. if (GM_getValue("Check_filecloud_dot_cc_links", false))
  7803. {
  7804. addFileHost(
  7805. "filecloud\.cc\/\\w+",
  7806. 'align="center"><input type="submit" name=',
  7807. 'File Not Found|<Title>FileCloud - Premium Hosting Service<',
  7808. 'optional--',
  7809. //'optional--',
  7810. "//a[contains(@href,'filecloud.cc')]");
  7811. }
  7812. if (GM_getValue("Check_inclouddrive_dot_com_links", false))
  7813. {
  7814. addFileHost(
  7815. "inclouddrive\.com\/\\w+",
  7816. 'initfreedownload',
  7817. '<title>Content Unavailable|The file you are trying to download is no longer available',
  7818. 'optional--',
  7819. //'optional--',
  7820. "//a[contains(@href,'inclouddrive.com')]");
  7821. }
  7822. if (GM_getValue("Check_radicalshare_dot_com_links", false))
  7823. {
  7824. addFileHost(
  7825. "radicalshare\.com\/\\w+",
  7826. 'value="download1|name="method_free"',
  7827. 'File Not Found<|<div style="width:500px;text-align:left;">',
  7828. 'optional--',
  7829. //'optional--',
  7830. "//a[contains(@href,'radicalshare.com')]");
  7831. }
  7832. if (GM_getValue("Check_sharemods_dot_com_links", false))
  7833. {
  7834. addFileHost(
  7835. "sharemods\.com\/\\w+",
  7836. 'name="method_free"',
  7837. 'File Not Found<',
  7838. 'optional--',
  7839. //'optional--',
  7840. "//a[contains(@href,'sharemods.com')]");
  7841. }
  7842. if (GM_getValue("Check_hostr_dot_co_links", false))
  7843. {
  7844. addFileHost(
  7845. "hostr\.co\/\\w+",
  7846. 'method="get"',
  7847. 'File not found<|error-page',
  7848. 'optional--',
  7849. //'optional--',
  7850. "//a[contains(@href,'hostr.co')]");
  7851. }
  7852. if (GM_getValue("Check_filepi_dot_com_links", false))
  7853. {
  7854. addFileHost(
  7855. "filepi\.com\/\\w+",
  7856. 'id="button_start">',
  7857. 'File not found',
  7858. 'optional--',
  7859. //'optional--',
  7860. "//a[contains(@href,'filepi.com')]");
  7861. }
  7862. if (GM_getValue("Check_tikfile_dot_com_links", false))
  7863. {
  7864. addFileHost(
  7865. "tikfile\.com\/\\w+",
  7866. 'btn_download',
  7867. 'File Not Found|file was removed|Reason for deletion',
  7868. 'optional--',
  7869. //'optional--',
  7870. "//a[contains(@href,'tikfile.com')]");
  7871. }
  7872. if (GM_getValue("Check_cloudsix_dot_me_links", false))
  7873. {
  7874. addFileHost(
  7875. "cloudsix\.me\/\\w+",
  7876. 'name="method_free"',
  7877. 'File Not Found|width:500px;text-align:left;">',
  7878. 'optional--',
  7879. //'optional--',
  7880. "//a[contains(@href,'cloudsix.me')]");
  7881. }
  7882. if (GM_getValue("Check_neodrive_dot_co_links", false))
  7883. {
  7884. addFileHost(
  7885. "neodrive\.co\/\\w+",
  7886. 'btn1" id="free_download|onclick="freeDownload|id="pwd_protected">',
  7887. 'File not found|/imgs/broken.png',
  7888. 'optional--',
  7889. //'optional--',
  7890. "//a[contains(@href,'neodrive.co')]");
  7891. }
  7892. if (GM_getValue("Check_chayfile_dot_com_links", false))
  7893. {
  7894. addFileHost(
  7895. "chayfile\.com\/\\w+",
  7896. 'name="method_free"',
  7897. 'File Not Found|<h3>The file was removed by administrator</h3>',
  7898. 'optional--',
  7899. //'optional--',
  7900. "//a[contains(@href,'chayfile.com')]");
  7901. }
  7902. if (GM_getValue("Check_xfileload_dot_com_links", false))
  7903. {
  7904. addFileHost(
  7905. "xfileload\.com\/\\w+",
  7906. 'Filename:|Имя файла:|Dateiname:|nom de fichier :|اسم الملف:|Dosya AdД±|Nazwa:|Nombre de fichero:|NamaFile:|Bestandsnaam:|שם קובץ:"',
  7907. '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..|הקובץ שחיפשת לא נמצא.',
  7908. 'optional--',
  7909. //'optional--',
  7910. "//a[contains(@href,'xfileload.com')]");
  7911. }
  7912. if (GM_getValue("Check_rockfile_dot_eu_links", false))
  7913. {
  7914. addFileHost(
  7915. "rockfile\.eu\/\\w+",
  7916. 'You have requested:',
  7917. 'The file you were looking for could not be found, sorry for any inconvenience.',
  7918. 'optional--',
  7919. //'optional--',
  7920. "//a[contains(@href,'rockfile.eu')]");
  7921. }
  7922. if (GM_getValue("Check_24uploading_dot_com_links", false))
  7923. {
  7924. addFileHost(
  7925. "24uploading\.com\/\\w+",
  7926. 'File:|Download Speed:',
  7927. '<b>File Not Found</b>|file was removed',
  7928. 'optional--',
  7929. //'optional--',
  7930. "//a[contains(@href,'24uploading.com')]");
  7931. }
  7932. if (GM_getValue("Check_tusfiles_dot_net_links", false))
  7933. {
  7934. addFileHost(
  7935. "tusfiles\.net\/\\w+",
  7936. 'i/icon/dll.png"|>Start download<br',
  7937. 'no longer available<|i/ino.png"',
  7938. 'optional--',
  7939. //'optional--',
  7940. "//a[contains(@href,'tusfiles.net')]");
  7941. }
  7942. if (GM_getValue("Check_jumbofile_dot_net_links", false))
  7943. {
  7944. addFileHost(
  7945. "jumbofile\.net\/\\w+",
  7946. 'button" class="" value="Free',
  7947. 'This File Was Deleted',
  7948. 'optional--',
  7949. //'optional--',
  7950. "//a[contains(@href,'jumbofile.net')]");
  7951. }
  7952. if (GM_getValue("Check_ozofiles_dot_com_links", false))
  7953. {
  7954. addFileHost(
  7955. "ozofiles\.com\/\\w+",
  7956. 'button" value="Free',
  7957. 'File Not Found|width:500px;text-align:left;">|File Deleted',
  7958. 'optional--',
  7959. //'optional--',
  7960. "//a[contains(@href,'ozofiles.com')]");
  7961. }
  7962. if (GM_getValue("Check_loudupload_dot_net_links", false))
  7963. {
  7964. addFileHost(
  7965. "loudupload\.net\/\\w+",
  7966. 'value="Get Links',
  7967. 'File Not Found',
  7968. 'optional--',
  7969. //'optional--',
  7970. "//a[contains(@href,'loudupload.net')]");
  7971. }
  7972. if (GM_getValue("Check_rapidsonic_dot_com_links", false))
  7973. {
  7974. addFileHost(
  7975. "(rapidsonic|fileparadox)\\.com\/\\w+",
  7976. 'method_free" id="submit_btn|<h4><i class="icon_document_alt"></i>Download File</h4>',
  7977. '>File Not Found<|id="no_filedownload">|>FILE NOT FOUND<|file has been deleted|No such file with this filename',
  7978. 'optional--',
  7979. //'optional--',
  7980. "//a[contains(@href,'rapidsonic') or contains(@href,'fileparadox.com')]");
  7981. }
  7982. if (GM_getValue("Check_krotix_dot_net_links", false))
  7983. {
  7984. addFileHost(
  7985. "krotix\.net\/\\w+",
  7986. 'btn btn-warning|btn-free',
  7987. 'pageErrors|This File has been removed',
  7988. 'content="Scheduled Maintenance',
  7989. //'optional--',
  7990. "//a[contains(@href,'krotix.net')]");
  7991. }
  7992. if (GM_getValue("Check_userscloud_dot_com_links", false))
  7993. {
  7994. addFileHost(
  7995. "userscloud\.com\/\\w+",
  7996. 'btn_download',
  7997. '>Server OFFLINE|background:#D3D3D3;border-bottom:1px solid #BBB;font:bold 13px Verdana;padding:3px;">',
  7998. 'optional--',
  7999. //'optional--',
  8000. "//a[contains(@href,'userscloud.com')]");
  8001. }
  8002. if (GM_getValue("Check_kumpulbagi_dot_com_links", false))
  8003. {
  8004. addFileHost(
  8005. "kumpulbagi\.com\/\\w+",
  8006. 'class="button download',
  8007. 'internal server error',
  8008. 'optional--',
  8009. //'optional--',
  8010. "//a[contains(@href,'kumpulbagi.com')]");
  8011. }
  8012. if (GM_getValue("Check_faststore_dot_org_links", false))
  8013. {
  8014. addFileHost(
  8015. "faststore\.org\/\\w+",
  8016. 'name="method_free',
  8017. 'File Not Found',
  8018. 'optional--',
  8019. //'optional--',
  8020. "//a[contains(@href,'faststore.org')]");
  8021. }
  8022. if (GM_getValue("Check_prefiles_dot_com_links", false))
  8023. {
  8024. addFileHost(
  8025. "prefiles\.com\/\\w+",
  8026. 'id="method_free',
  8027. 'File not Found',
  8028. 'optional--',
  8029. //'optional--',
  8030. "//a[contains(@href,'prefiles.com')]");
  8031. }
  8032. if (GM_getValue("Check_doraupload_dot_com_links", false))
  8033. {
  8034. addFileHost(
  8035. "doraupload\.com\/\\w+",
  8036. 'btn_download',
  8037. 'class="error-code|Could Not Be Found',
  8038. 'optional--',
  8039. //'optional--',
  8040. "//a[contains(@href,'doraupload.com')]");
  8041. }
  8042. if (GM_getValue("Check_openload_dot_io_links", false))
  8043. {
  8044. addFileHost(
  8045. "openload\.io\/\\w+",
  8046. 'btn btn-primary|class="count">',
  8047. 'class="jumbotron">|We are sorry',
  8048. 'optional--',
  8049. //'optional--',
  8050. "//a[contains(@href,'openload.io')]");
  8051. }
  8052. if (GM_getValue("Check_uploads_dot_xxx_links", false))
  8053. {
  8054. addFileHost(
  8055. "uploads\.xxx\/\\w+",
  8056. 'downoadForFree',
  8057. 'File not found',
  8058. 'optional--',
  8059. //'optional--',
  8060. "//a[contains(@href,'uploads.xxx')]");
  8061. }
  8062. if (GM_getValue("Check_zxcfiles_dot_com_links", false))
  8063. {
  8064. addFileHost(
  8065. "zxcfiles\.com\/\\w+",
  8066. 'class="downloadbtn',
  8067. 'File Not Found',
  8068. 'optional--',
  8069. //'optional--',
  8070. "//a[contains(@href,'zxcfiles.com')]");
  8071. }
  8072. if (GM_getValue("Check_up07_dot_net_links", false))
  8073. {
  8074. addFileHost(
  8075. "up07\.net\/\\w+",
  8076. 'name="method_free',
  8077. 'File Not Found',
  8078. 'optional--',
  8079. //'optional--',
  8080. "//a[contains(@href,'up07.net')]");
  8081. }
  8082. if (GM_getValue("Check_fileupload_dot_pw_links", false))
  8083. {
  8084. addFileHost(
  8085. "fileupload\.pw\/\\w+",
  8086. 'value="Free"',
  8087. 'File Not Found',
  8088. 'optional--',
  8089. //'optional--',
  8090. "//a[contains(@href,'fileupload.pw')]");
  8091. }
  8092. if (GM_getValue("Check_4upld_dot_com_links", false))
  8093. {
  8094. addFileHost(
  8095. "4upld\.com\/\\w+",
  8096. 'alt="Download Now"|content="Download file">|btn-free-element',
  8097. '<title>Error|content="error|File not found',
  8098. 'optional--',
  8099. //'optional--',
  8100. "//a[contains(@href,'4upld.com')]");
  8101. }
  8102. if (GM_getValue("Check_newfileland_dot_com_links", false))
  8103. {
  8104. addFileHost(
  8105. "newfileland\.com\/\\w+",
  8106. 'name="method_free',
  8107. 'File Not Found',
  8108. 'optional--',
  8109. //'optional--',
  8110. "//a[contains(@href,'newfileland.com')]");
  8111. }
  8112. if (GM_getValue("Check_swoopshare_dot_com_links", false))
  8113. {
  8114. addFileHost(
  8115. "(?:.swoopshare)\\.com\/\\w+",
  8116. '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',
  8117. '<input type="file" name="f"',
  8118. 'optional--',
  8119. //'optional--',
  8120. "//a[contains(@href,'swoopshare.com')]"
  8121. );
  8122. }
  8123. if (GM_getValue("Check_cloudshares_dot_net_links", false))
  8124. {
  8125. addFileHost(
  8126. "cloudshares\.net\/\\w+",
  8127. '"method_free|"Low Speed Download|submit" name="go',
  8128. 'Not Found|"width:500px;text-align:left;">|No such file exist',
  8129. 'optional--',
  8130. //'optional--',
  8131. "//a[contains(@href,'cloudshares.net')]"
  8132. );
  8133. }
  8134.  
  8135. }
  8136. //start here
  8137.  
  8138. //hosts with direct download, so they must be requested for headers only
  8139. function initFileHostsHeadersOnly()
  8140. {
  8141. function addFileHostHeadersOnly(linkRegex, isAliveRegex, isDeadRegex, xpathEx, ispremRegex)
  8142. {
  8143. var host = new Array(5);
  8144. host[0] = linkRegex;
  8145. host[1] = isAliveRegex;
  8146. host[2] = isDeadRegex;
  8147. host[3] = xpathEx;
  8148. host[4] = ispremRegex;
  8149. http_file_hosts_headers_only.push(host);
  8150. }
  8151. if (GM_getValue("Check_uloziste_dot_com_links", false))
  8152. {
  8153. addFileHostHeadersOnly(
  8154. "(?:|files\\.)uloziste\\.com\/\\w+\/\\w+",
  8155. 'Connection: Keep-Alive',
  8156. 'Content-Length: 3857',
  8157. "//a[contains(@href,'uloziste.com')]"
  8158. )
  8159. }
  8160. if (GM_getValue("Check_adrive_dot_com_links", false))
  8161. {
  8162. addFileHostHeadersOnly(
  8163. "adrive\\.com\/public\/\\w+",
  8164. 'Connection: keep-alive',
  8165. 'orig_ref=deleted',
  8166. "//a[contains(@href,'adrive.com')]"
  8167. )
  8168. }
  8169. if (GM_getValue("Check_myupload_dot_dk_links", false))
  8170. {
  8171. addFileHostHeadersOnly(
  8172. "myupload\\.dk\/showfile\/\\w+",
  8173. 'Expires:',
  8174. 'squeeze1\\s+Vary',
  8175. "//a[contains(@href,'myupload.dk/showfile')]"
  8176. )
  8177. }
  8178. }
  8179. //CustomRules
  8180. //functions add...Host copied here
  8181. function addObsoleteHost(linkRegex, xpathEx)
  8182. {
  8183. var host = new Array(2);
  8184. host[0] = linkRegex;
  8185. host[1] = xpathEx;
  8186. http_file_hosts_obsolete.push(host);
  8187. }
  8188. function addFileHost(linkRegex, isAliveRegex, isDeadRegex, isUnavaRegex, xpathEx, tryLoop, ispremRegex)
  8189. {
  8190. var host = new Array(7);
  8191. host[0] = linkRegex;
  8192. host[1] = isAliveRegex;
  8193. host[2] = isDeadRegex;
  8194. host[3] = isUnavaRegex;
  8195. host[4] = xpathEx;
  8196. tryLoop ? host[5] = true : host[5] = false;
  8197. host[6] = ispremRegex;
  8198. http_file_hosts.push(host);
  8199. }
  8200. function addFileHostHeadersOnly(linkRegex, isAliveRegex, isDeadRegex, xpathEx, ispremRegex)
  8201. {
  8202. var host = new Array(5);
  8203. host[0] = linkRegex;
  8204. host[1] = isAliveRegex;
  8205. host[2] = isDeadRegex;
  8206. host[3] = xpathEx;
  8207. host[4] = ispremRegex;
  8208. http_file_hosts_headers_only.push(host);
  8209. }
  8210. //takes a fully built rules array and adds the rules to WARLC
  8211. function applyCustomRules(customRules)
  8212. {
  8213. if (!customRules) return;
  8214. var rules, r, i;
  8215. rules = customRules.rules;
  8216. for (i = 0 ; i < rules.length ; i++)
  8217. {
  8218. r = rules[i];
  8219. if (r.enabled)
  8220. {
  8221. switch (r.type)
  8222. {
  8223. case 'single':
  8224. addFileHost(r.urlregex, r.aliveregex, r.deadregex, r.unavaregex, r.premregex||'', r.xpath);
  8225. break;
  8226. case 'headers':
  8227. addFileHostHeadersOnly(r.urlregex, r.aliveregex, r.deadregex, r.xpath, r.premregex);
  8228. break;
  8229. case 'obsolete':
  8230. addObsoleteHost(r.urlregex, r.xpath)
  8231. break;
  8232. }
  8233. }
  8234. }
  8235. }
  8236.  
  8237.  
  8238. function initFileHostsCustom()
  8239. {
  8240. if (Custom_rules && Custom_rules_text)
  8241. {
  8242. var msg = '';
  8243. if (newVersion)
  8244. msg = 'New version of W.A.R. Links Checker detected.\n\n';
  8245. else if ((now - last_custom_rules_nag) >= 60*24*60*60*1000)
  8246. msg = '60 or more days have passed since this notification.\n\n';
  8247. if (msg && /^\s*@customrule(?:_obsolete)?\s/mi.test(Custom_rules_text))
  8248. {
  8249. GM_setValue('last_custom_rules_nag', ''+new Date().getTime()); //reset nag
  8250. msg +=
  8251. 'Either new version of W.A.R. Links Checker detected or 60 days passed since this notify.\n'+
  8252. 'Please check that your custom rules haven\'t been built into WARLC.\n'+
  8253. 'If not, please share them with us so they can be included in the next version! Built-in rules are always preferred.\n\n'+
  8254. 'We apologize for this annoying notification, but there is a reason to this.\n'+
  8255. 'Ideally, WARLC would check which of your custom rules have been included and disable them. '+
  8256. 'Unfortunately, there is no easy way to do that, but we don\'t want everybody to just use their custom rules '+
  8257. 'forever without ever checking if the built-in ones have been added/fixed. This is currently the only way '+
  8258. 'to remind you that you should try built-in rules, report missing/non-working ones and share your custom rules.';
  8259. setTimeout(function(){alert(msg)},0);
  8260. }
  8261. var customRules = parseCustomRules(Custom_rules_text);
  8262. if (customRules.warning || customRules.error)
  8263. alert('There were ' + customRules.error + ' errors, ' + customRules.warning + ' warnings, ' +
  8264. customRules.note + ' notes found during Custom Rules processing.\n' + customRules.rules.length + ' valid rules found.\n\n' +
  8265. JSON.stringify(customRules.info, null, ' '));
  8266. applyCustomRules(customRules);
  8267. }
  8268. }
  8269. //end of CustomRules processing
  8270.  
  8271.  
  8272.  
  8273. } //end of function start
  8274.  
  8275.  
  8276.  
  8277. function initClipBoardTools()
  8278. {
  8279. unsafeWindow.copyToClipboard = function(text)
  8280. {
  8281. try
  8282. {
  8283. this.netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
  8284.  
  8285. var str = Components.classes["@mozilla.org/supports-string;1"].
  8286. createInstance(Components.interfaces.nsISupportsString);
  8287. if (!str) return false;
  8288.  
  8289. str.data = text;
  8290.  
  8291. var trans = Components.classes["@mozilla.org/widget/transferable;1"].
  8292. createInstance(Components.interfaces.nsITransferable);
  8293. if (!trans) return false;
  8294.  
  8295. trans.addDataFlavor("text/unicode");
  8296. trans.setTransferData("text/unicode", str, text.length * 2);
  8297.  
  8298. var clipid = Components.interfaces.nsIClipboard;
  8299. var clip = Components.classes["@mozilla.org/widget/clipboard;1"].getService(clipid);
  8300. if (!clip) return false;
  8301.  
  8302. clip.setData(trans, null, clipid.kGlobalClipboard);
  8303. } catch (e) {
  8304. GM_log("Error copyToClipboard : " + e);
  8305. alert(e + "\n\nsigned.applets.codebase_principal_support must be set true in about:config")
  8306. }
  8307. }
  8308. }
  8309.  
  8310.  
  8311.  
  8312. //CustomRules
  8313.  
  8314. function escapeRegex(str)
  8315. {
  8316. return str.replace(/[\-\[\]{}()*+?.,\\\^$|#]/g, "\\$&");
  8317. }
  8318.  
  8319.  
  8320. //called internally from parseCustomRules.
  8321. //expected: rule object with array fields baseurl, alivematch etc, everything must already be checked for input errors
  8322. //returns the rule object with string fields urlregex, xpath, aliveregex etc built from the arrays
  8323. function makeCustomRule(rule)
  8324. {
  8325. function makeMatchRegex(arrmatch)
  8326. {
  8327. return escapeRegex(arrmatch.join('\n'))
  8328. .replace(/ +/g, '\\s+') //two or more spaces to any whitespace
  8329. .replace(/\n/g,'|'); //join together
  8330. }
  8331. if (rule.alivematch) rule.aliveregex = makeMatchRegex(rule.alivematch);
  8332. if (rule.deadmatch) rule.deadregex = makeMatchRegex(rule.deadmatch);
  8333. if (rule.unavamatch) rule.unavaregex = makeMatchRegex(rule.unavamatch);
  8334. if (rule.premmatch) rule.premregex = makeMatchRegex(rule.premmatch);
  8335. if (rule.baseurl)
  8336. {
  8337. var i, m, urlregex = [], xpath = [], len = rule.baseurl.length;
  8338. for (i = 0 ; i < len ; i++)
  8339. {
  8340. m = rule.baseurl[i].match(/^([a-z0-9\.-]+)(?: +([a-z \.]+) +)?(\/.*)$/);
  8341. if (m[2]) //baseurl in the form: example. com co.uk net /xxx
  8342. {
  8343. 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'])
  8344. urlregex.push( (m[1] + '(?:'+ m[2].replace(/\s+/g,'|') + ')').replace(/\./g,'\\.') + escapeRegex(m[3]) + '.'); //urlregex.push('example\\.(?:com|co\\.uk|net)/xxx.')
  8345. }
  8346. else //baseurl in the form: example.com/xxx
  8347. {
  8348. xpath.push(m[0]);
  8349. urlregex.push(escapeRegex(m[0]) + '.');
  8350. }
  8351. }
  8352. rule.xpath = "//a[contains(@href,'" + xpath.join("') or contains(@href,'") + "')]";
  8353. rule.urlregex = '(?:[a-z0-9\\.-]+\\.)?(?:' + urlregex.join('|') + ')';
  8354. }
  8355. return rule;
  8356. } //function makeCustomRule
  8357.  
  8358.  
  8359. /*
  8360. Takes a string containing custom link checking rules.
  8361. Returns an object with fields:
  8362. info - contains notes, warnings and errors found during parsing
  8363. rules - the array of custom rules
  8364. note, warning, error - number of each of them found during parsing
  8365. Format of the input string:
  8366. One command per line. Command format: @keyword parameter
  8367. Keywords:
  8368. @customrule, @customrule_obsolete, @customrule_headers - begin a new custom rule. Parameter: name of the rule
  8369. @#customrule, @#customrule_obsolete, @#customrule_headers - begin and parse this custom rule, but don't use it. Parameter: name of the rule
  8370. These keywords can be multiple (any of them will work):
  8371. @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...)
  8372. @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+
  8373. @alivelink, @deadlink - example links
  8374. @baseurl is always required, @alivematch and @deadmatch are required except for obsolete. @unavamatch is ignored for obsolete. @*link is optional.
  8375. Lines starting with // and empty lines are ignored.
  8376. Invalid parameters generate errors and those lines are skipped.
  8377. Other lines generate warnings, but are otherwise ignored (also those before the first @customrule line or inside a rule with invalid name).
  8378. Example:
  8379. @customrule filehost
  8380. @baseurl filehost.com/download/
  8381. @baseurl filehost2. com net /d?=
  8382. @alivematch id="download">
  8383. @deadmatch File not found
  8384. @deadmatch File deleted
  8385. */
  8386. function parseCustomRules(rulesStr)
  8387. {
  8388. var linenum, customRules = {'info': [], 'rules': [], 'note': 0, 'warning': 0, 'error': 0};
  8389. function addInfo(type, msg, ln){
  8390. customRules.info.push({'linenum':(ln===undefined ? linenum+1 : ln+1), 'type':type, 'msg':msg});
  8391. customRules[type]++;
  8392. }
  8393. var lines = rulesStr.match(/^(.*)$/gm); //split into array of lines
  8394. if (!lines) return null;
  8395. lines.push('@#customrule _'); //to save the last rule
  8396. var m, linecount = lines.length;
  8397. var keyword, param, constr, rule, err;
  8398. var TLD = '[a-z]{2,7}(?:\\.[a-z]{2,7})?';
  8399. var TLDorTLDlist = '(?:'+TLD+'| '+TLD+'(?: '+TLD+'){0,9} )'; //TLD or space-separated list of TLDs
  8400. var baseurlRE = new RegExp('^([a-z0-9-]{1,30}(?:\\.[a-z0-9-]{1,30}){0,2}\\.)'+TLDorTLDlist+'(/[^\'"\s\$]{0,50})$', 'i');
  8401. var constraints = {
  8402. 'baseurl': {
  8403. 'single': {'min': 1, 'max': 10, 'paramRE': baseurlRE},
  8404. 'headers': {'min': 1, 'max': 10, 'paramRE': baseurlRE},
  8405. 'obsolete': {'min': 1, 'max': 10, 'paramRE': baseurlRE}},
  8406. 'alivematch': {
  8407. 'single': {'min': 1, 'max': 10, 'paramRE': null},
  8408. 'headers': {'min': 1, 'max': 10, 'paramRE': null}},
  8409. 'deadmatch': {
  8410. 'single': {'min': 1, 'max': 10, 'paramRE': null},
  8411. 'headers': {'min': 1, 'max': 10, 'paramRE': null}},
  8412. 'unavamatch': {
  8413. 'single': {'min': 0, 'max': 10, 'paramRE': null}},
  8414. 'alivelink': {
  8415. 'single': {'min': 0, 'max': 10, 'paramRE': null},
  8416. 'headers': {'min': 0, 'max': 10, 'paramRE': null}},
  8417. 'deadlink': {
  8418. 'single': {'min': 0, 'max': 10, 'paramRE': null},
  8419. 'headers': {'min': 0, 'max': 10, 'paramRE': null},
  8420. 'obsolete': {'min': 0, 'max': 10, 'paramRE': null}}
  8421. };
  8422. for (linenum = 0 ; linenum < linecount ; linenum++)
  8423. {
  8424. //capturing groups: 1 23 4 5 6
  8425. m = lines[linenum].match(/^\s*(?:(\/\/.*)|@((#?)(customrule)(?:_(headers|obsolete))?|baseurl|alivematch|deadmatch|unavamatch|alivelink|deadlink)\s+(.+))?$/i);
  8426. if (m)
  8427. {
  8428. if (m[1] || !m[2])
  8429. continue; // ignore empty lines and lines starting with //
  8430. keyword = (m[4] || m[2]).toLowerCase();
  8431. param = m[6];
  8432. if (keyword == 'customrule')
  8433. {
  8434. //save the current rule if all required fields are provided
  8435. if (rule)
  8436. {
  8437. err = false;
  8438. $.each(constraints, function(kw, constraint){
  8439. var l, constr = constraint[rule.type];
  8440. if (constr)
  8441. {
  8442. l = rule[kw] ? rule[kw].length : 0;
  8443. if (l < constr.min || l > constr.max)
  8444. {
  8445. 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);
  8446. err = true;
  8447. }
  8448. }
  8449. });
  8450. if (!err)
  8451. customRules.rules.push(makeCustomRule(rule));
  8452. }
  8453. //start a new rule
  8454. if (/^[\w\.-]{1,30}$/.test(param)) //valid name?
  8455. {
  8456. rule = {
  8457. 'enabled': !m[3],
  8458. 'type': m[5] ? m[5].toLowerCase() : 'single',
  8459. 'name': param
  8460. };
  8461. }
  8462. else
  8463. {
  8464. addInfo('error', 'Invalid rule name. Cannot start a new rule definition.');
  8465. rule = null;
  8466. }
  8467. }
  8468. else //good line format, but keyword other than customrule
  8469. {
  8470. if (!rule)
  8471. {
  8472. addInfo('warning', 'Command outside @CUSTOMRULE definiton. Line skipped.');
  8473. continue;
  8474. }
  8475. if (constraints[keyword])
  8476. {
  8477. constr = constraints[keyword][rule.type];
  8478. if (constr)
  8479. {
  8480. if (constr.paramRE && !constr.paramRE.test(param))
  8481. {
  8482. addInfo('warning', 'Invalid @' + keyword.toUpperCase() + ' parameter. Line Skipped.');
  8483. continue;
  8484. }
  8485. }
  8486. else
  8487. {
  8488. addInfo('note', '@' + keyword.toUpperCase() + ' not applicable for type ' + rule.type.toUpperCase() + '. Line skipped.');
  8489. continue;
  8490. }
  8491. }
  8492. //line OK, save
  8493. rule[keyword] ? rule[keyword].push(param) : rule[keyword] = [param];
  8494. }
  8495. } //if (m)
  8496. else
  8497. addInfo('warning', 'Unknown line format. Line skipped.');
  8498. } //for loop
  8499. return customRules;
  8500. } //function parseCustomRules