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

detects live, dead and premium links.

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

  1. // ==UserScript==
  2. // @name W.A.R. Links Checker Customized Premium Link Version
  3. // @description detects live, dead and premium links.
  4. // @details this script automatically checks links from 650+ filehosts. For Firefox, Chrome, Opera, Safari.
  5. // @namespace premium version
  6. // @version 1.1.6.0
  7. // @icon http://sharenxs.com/photos/2014/02/14/52fd759db90ac/cooltext1428903746.png
  8. // @license GPL version 3 or any later version (http://www.gnu.org/copyleft/gpl.html)
  9. // @author <a href="http://www.mentalps.5gbfree.com/viewtopic.php?f=2&t=6>mental</a>
  10. // @include http://*
  11. // @include https://*
  12. // @include file:///*
  13. // @grant GM_setValue
  14. // @grant GM_getValue
  15. // @grant GM_xmlhttpRequest
  16. // @grant GM_log
  17. // @grant GM_addStyle
  18. // @grant GM_registerMenuCommand
  19. // @grant GM_getResourceText
  20. // @grant GM_info
  21. // @require https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js
  22. // @require https://ajax.googleapis.com/ajax/libs/jqueryui/1.9.1/jquery-ui.min.js
  23. // @resource jQueryUICSS https://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/smoothness/jquery-ui.css
  24. // @homepage http://www.mentalps.5gbfree.com
  25. // @namespace http://www.mentalps.5gbfree.com
  26. // @noframes
  27. // ==/UserScript==
  28.  
  29. //separate alternative domains with "|" char (first name is considered being main)
  30. var allHostNames = [
  31. "1fichier.com|dl4free.com",
  32. "4upld.com",
  33. "newfileland.com",
  34. "2shared.com",
  35. "fileupload.pw",
  36. "zxcfiles.com",
  37. "up07.net",
  38. "4shared.com",
  39. "adrive.com",
  40. "aisfile.com",
  41. "hexupload.com",
  42. "bezvadata.cz",
  43. "burnupload.com|burnupload.ihiphop.com",
  44. "xkeepfile.com|Gamesena.com",
  45. // "firedrive.com",
  46. "usersfiles.com",
  47. "pan.baidu.com",
  48. "radicalshare.com",
  49. "cramit.in|cramitin.net",
  50. "datei.to",
  51. "daten-hoster.de|filehosting.org|xtraupload.de",
  52. "demo.ovh.eu",
  53. "depositfiles.com",
  54. "divshare.com",
  55. "easy-share.com|crocko.com",
  56. "easybytez.com",
  57. "edisk.cz",
  58. "euroshare.eu",
  59. "file-upload.net",
  60. "yadi.sk",
  61. "ryushare.com",
  62. "wizupload.com",
  63. "fastshare.cz",
  64. "filefactory.com",
  65. "share.vnn.vn",
  66. "yunpan.cn",
  67. "gulfup.com",
  68. "tropicshare.com",
  69. "cloudzilla.to",
  70. "inclouddrive.com",
  71. "fileflyer.com",
  72. "filerio.com|filekeen.com",
  73. "up.4share.vn",
  74. "upfile.vn",
  75. "datafilehost.com",
  76. "fileband.com",
  77. "worldbytez.com",
  78. "files.mail.ru",
  79. "filepost.com|fp.io",
  80. "filesflash.com",
  81. "box.com",
  82. "box.net",
  83. "goldbytez.com",
  84. "sdilej.cz",
  85. "ex-load.com",
  86. "2drive.net",
  87. "filesmonster.com",
  88. "filestore.to",
  89. "freakshare.net",
  90. "hulkload.com",
  91. "filedropper.com",
  92. "free-uploading.com",
  93. "gamefront.com|filefront.com",
  94. "gettyfile.ru",
  95. "gigapeta.com",
  96. "gigasize.com",
  97. "hellshare.com",
  98. "hellspy.com",
  99. "hitfile.net",
  100. "hostuje.net",
  101. "freefilehosting.net",
  102. "free.fr",
  103. "hulkshare.com",
  104. "hyperfileshare.com",
  105. "filecloud.io|ifile.it",
  106. "ifolder.ru",
  107. "jumbofiles.com",
  108. "uploadrocket.net",
  109. "lafiles.com",
  110. "leteckaposta.cz|sharegadget.com",
  111. "letitbit.net",
  112. "load.to",
  113. "mediafire.com",
  114. "megafileupload.com",
  115. "megashares.com",
  116. "movshare.net",
  117. "muchshare.net",
  118. "myupload.dk",
  119. "narod.ru|narod.yandex.ru",
  120. "netload.in",
  121. "fboom.me",
  122. "fileboom.me",
  123. "openfile.ru",
  124. "partage-facile.com",
  125. "plunder.com",
  126. // "putlocker.com",
  127. "sharerapid.cz",
  128. "exclusiveloader.com",
  129. "acefile.net",
  130. "queenshare.com",
  131. "quickshare.cz",
  132. "rapidgator.net",
  133. "keep2share.com",
  134. "oboom.com",
  135. "filepi.com",
  136. "neodrive.co",
  137. "rarefile.net",
  138. "rayfile.com",
  139. "rghost.net",
  140. "sendmyway.com",
  141. "clicknupload.com",
  142. "sharemods.com",
  143. "hostr.co",
  144. "sendspace.com",
  145. "sharecash.org",
  146. "share-links.biz",
  147. "share-online.biz|egoshare.com",
  148. "megarapid.cz",
  149. "shareflare.net",
  150. "solidfiles.com",
  151. "led.wf",
  152. "lan.wf",
  153. "adlink.wf",
  154. "click.tf",
  155. "kyc.pm",
  156. "ssh.tf",
  157. "ssh.yt",
  158. "yep.pm",
  159. "stahovanizasms.cz",
  160. "tufiles.ru",
  161. "turbobit.net",
  162. "filecloud.cc",
  163. "tikfile.com",
  164. "cloudsix.me",
  165. "turboupload.com",
  166. "uloz.to|ulozto.cz|bagruj.cz|zachowajto.pl",
  167. "ulozisko.sk",
  168. "uloziste.com",
  169. "unibytes.com",
  170. "upload-il.net|przeslij.net",
  171. "uploaded.to|ul.to",
  172. "uploading.com",
  173. "chayfile.com",
  174. "rockfile.eu",
  175. "24uploading.com",
  176. "uploadspace.pl",
  177. "upnito.sk",
  178. "uptobox.com",
  179. "usaupload.net",
  180. "veehd.com",
  181. "videobb.com",
  182. "vip-file.com",
  183. "webshare.cz",
  184. "xdisk.cz",
  185. "yunfile.com|filemarkets.com",
  186. "ziddu.com",
  187. "krotix.net",
  188. "zippyshare.com",
  189. "rodfile.com",
  190. "migahost.com",
  191. "wikiupload.com",
  192. "uploadstube.de",
  193. "faststore.org",
  194. "flyfiles.net",
  195. "nowdownload.eu",
  196. "prefiles.com",
  197. "axifile.com",
  198. "rapidsonic.com|fileparadox.com",
  199. "hackerbox.org",
  200. "amonshare.com",
  201. "data.hu",
  202. "brupload.net",
  203. "userscloud.com",
  204. "netkups.com",
  205. "edoc.com",
  206. "xfileload.com",
  207. "jumbofile.net",
  208. "kumpulbagi.com",
  209. "uppit.com|up.ht",
  210. "downloadani.me",
  211. "filesabc.com",
  212. "sharebeast.com",
  213. "180upload.com",
  214. "verzend.be",
  215. "movreel.com",
  216. "4up.me",
  217. "extmatrix.com",
  218. "sendfiles.nl",
  219. "yourfilestore.com",
  220. "filebig.net",
  221. "sockshare.com",
  222. "nekaka.com",
  223. "file4safe.com",
  224. "tusfiles.net",
  225. "filemac.com",
  226. "idup.in",
  227. "fileswap.com",
  228. "ozofiles.com",
  229. "loudupload.net",
  230. "nosupload.com",
  231. "gboxes.com",
  232. "myvdrive.com|fileserving.com",
  233. "filesin.com",
  234. "novafile.com",
  235. "longfiles.com",
  236. "uploadhero.com",
  237. "uploadbaz.com",
  238. "bitupload.com",
  239. "indowebster.com",
  240. "superload.cz",
  241. "mafiastorage.com",
  242. "4upfiles.com",
  243. "filesmelt.com",
  244. "hellupload.com",
  245. "uploadingit.com",
  246. "stiahni.si",
  247. "sendspace.pl",
  248. "fastshare.org",
  249. "filejoker.net",
  250. "filestore.com.ua",
  251. "secureupload.eu",
  252. "rapidfileshare.net",
  253. "stiahnito.sk",
  254. "rusfolder.com",
  255. "fileover.net",
  256. "catshare.net",
  257. "anonfiles.com",
  258. "mixturecloud.com",
  259. "fileparadox.in",
  260. "filedais.com",
  261. "imdb.com",
  262. "nitroflare.com",
  263. "akafile.com",
  264. "creafile.net",
  265. "hugefiles.net",
  266. "vidxden.com",
  267. "up.top4top.net",
  268. "upload.ee",
  269. "shareplace.org",
  270. "uploadc.com",
  271. "remixshare.com",
  272. "exoshare.com",
  273. "borncash.org",
  274. "junocloud.me",
  275. "keep2share.cc",
  276. "k2s.cc",
  277. "expressleech.com",
  278. "2downloadz.com",
  279. "mightyupload.com",
  280. "uncapped-downloads.com",
  281. "anysend.com",
  282. "datafile.com",
  283. "upstore.net",
  284. "upsto.re",
  285. "speedy.sh",
  286. "sanshare.com",
  287. "kingfiles.net",
  288. "uploadhero.co",
  289. "ge.tt",
  290. "filesflash.net",
  291. "salefiles.com",
  292. "keep2s.cc",
  293. "megairon.net",
  294. "datoid.cz",
  295. "cloudstor.es",
  296. "streamfile.com",
  297. "eyesfile.ca",
  298. "filemoney.com",
  299. "uploadboy.com",
  300. "speedshare.eu",
  301. "google.com",
  302. "unlimitzone.com",
  303. "rioupload.com",
  304. "rg.to",
  305. "jumbofiles.org",
  306. "fshare.vn",
  307. "spaceforfiles.com",
  308. "up.media1fire.com",
  309. "depfile.com",
  310. "go4up.com",
  311. "dropbox.com",
  312. "redbunker.net",
  313. "divxpress.com",
  314. "mega.nz|mega.co.nz",
  315. "anafile.com",
  316. "uploadable.ch",
  317. "arabloads.com",
  318. "sharerepo.com",
  319. "sfshare.se",
  320. "files.fm",
  321. "koofile.com",
  322. "vidplay.net",
  323. "storagon.com",
  324. "doraupload.com",
  325. "openload.io",
  326. "geupload.com|lenfile.com",
  327. "uploads.xxx",
  328. ];
  329.  
  330. try
  331. {
  332. //iframes excluded
  333. if (window.top != window.self)
  334. {
  335. return;
  336. }
  337. //allHostNames sites excluded
  338. if (window.location.href.match("https?:\/\/(www\.)?[\w\.-]*(?:" +
  339. allHostNames.join("|").replace(/\./g, "\\.").replace(/-/g, "\\-") +
  340. ")"))
  341. {
  342. return;
  343. }
  344. }
  345. catch (e)
  346. {
  347. return;
  348. }
  349.  
  350. //separate alternative domains with "|" char (first name is considered being main)
  351. var allContainerNames = [
  352. "adf.ly",
  353. "linkcrypt.ws",
  354. "linksafe.me",
  355. "linksave.in",
  356. "linkto.net",
  357. "madlink.sk",
  358. "multiload.cz",
  359. "mirrorcreator.com",
  360. "ncrypt.in",
  361. "redi.re",
  362. "relink.us",
  363. "safelinking.net",
  364. "theloo.katt.it",
  365. "bit.ly",
  366.  
  367. ];
  368.  
  369. //separate alternative domains with "|" char (first name is considered being main)
  370. var allObsoleteNames = [
  371. "uloz.cz",
  372. "daj.to",
  373. "ddlstorage.com",
  374. "dataport.cz",
  375. "dizzcloud.com",
  376. "stahovadlo.cz",
  377. "shared.com",
  378. "storage.to",
  379. "putlocker.com",
  380. "lumfile.com",
  381. "lumfile.se",
  382. "lumfile.eu",
  383. "firedrive.com",
  384. "fileshare.in.ua",
  385. "filecore.co.nz",
  386. "iskladka.cz",
  387. "file-rack.com",
  388. "fast-load.net",
  389. "subory.sk",
  390. "bigandfree.com",
  391. "fileop.com",
  392. "mujsoubor.cz",
  393. "sendfile.to",
  394. "superfastfile.com",
  395. "quickyshare.com",
  396. "duckload.com",
  397. "uploadstore.net",
  398. "meinupload.com",
  399. "dualshare.com",
  400. "2xupload.to|2xupload.de",
  401. "oxedion.com",
  402. "uploadline.com",
  403. "dll.bz",
  404. "movieshare.in",
  405. "milledrive.com",
  406. "quickupload.net",
  407. "safelink.in",
  408. "metadivx.com",
  409. "divxlink.com",
  410. "uploadrack.com",
  411. "teradepot.com",
  412. "dataup.to",
  413. "upit.to",
  414. "driveway.com",
  415. "eatlime.com",
  416. "a2zuploads.com",
  417. "friendlyfiles.net",
  418. "flyfile.us",
  419. "speedyshare.com",
  420. "uploadspace.eu",
  421. "keepfile.com",
  422. "piggyshare.com",
  423. "uplly.com",
  424. "filecrown.com",
  425. "6giga.com",
  426. "uploadjockey.com",
  427. "bluehost.to",
  428. "filegu.ru",
  429. "filebase.to",
  430. "up-file.com",
  431. "xvideos.com",
  432. "ufox.com",
  433. "filebling.com",
  434. "loaded.it",
  435. "uploadcell.com",
  436. "uploadshare.cz",
  437. "mangoshare.com",
  438. "filestab.com",
  439. "crazyupload.com",
  440. "gaiafile.com",
  441. "sharejunky.com",
  442. "fileho.com",
  443. "bigandfree.com",
  444. "bigfile.in",
  445. "bigshare.eu",
  446. "dahosting.org",
  447. "digisofts.net",
  448. "file4save.com",
  449. "filechip.com",
  450. "filescloud.com",
  451. "saveqube.com",
  452. "turboshare.de",
  453. "z-upload.com",
  454. "youshare.com",
  455. "jiffyupload.com",
  456. "gigeshare.com",
  457. "datenklo.net",
  458. "upload.dj",
  459. "loadfiles.in",
  460. "upit.to",
  461. "dsfileshare.com",
  462. "sharesimple.net",
  463. "4files.net",
  464. "wooupload.com",
  465. "odsiebie.com",
  466. "filenavi.com",
  467. "3oof.com",
  468. "meshwaar.com",
  469. "maxupload.com",
  470. "share.cx",
  471. "atserver.eu",
  472. "hotfiles.ws",
  473. "esnips.com",
  474. "tuxfile.com",
  475. "file2upload.net",
  476. "filebling.com",
  477. "turboshare.com",
  478. "rarhost.com",
  479. "isharehd.com",
  480. "i741.com",
  481. "dataup.de",
  482. "fofly.com",
  483. "shareonall.com",
  484. "sexuploader.com",
  485. "megaupload.com|megavideo.com|megaporn.com|megarotic.com",
  486. "uploadhyper.com",
  487. "filespawn.com",
  488. "caizzii.com",
  489. "volnyweb.cz",
  490. "usershare.net",
  491. "filescash.net",
  492. "metahyper.com",
  493. "combozip.com",
  494. "x7.to",
  495. "uploadbox.com",
  496. "enterupload.com|flyupload.com",
  497. "filepoint.de",
  498. "mystream.to",
  499. "x-fs.com",
  500. "shareator.com",
  501. "srapid.eu",
  502. "sosame.cz",
  503. "filesdump.com",
  504. "2-klicks.de",
  505. "uploking.com",
  506. "silofiles.com",
  507. "upfile.in",
  508. "filehook.com",
  509. "uploadking.com",
  510. "uploadhere.com",
  511. "kewlshare.com",
  512. "rapidable.com",
  513. "uploadwaste.com",
  514. "filemup.com",
  515. "filesonic.com|sharingmatrix.com",
  516. "fileserve.com",
  517. "wupload.com",
  518. "skipfile.com",
  519. "smartuploader.com",
  520. "dualshare.com",
  521. "storeandserve.com",
  522. "mountfile.com",
  523. "transitfiles.com",
  524. "uploadstation.com",
  525. "filejungle.com",
  526. "shareshared.com",
  527. "quickyshare.com",
  528. "save.am",
  529. "petandrive.com",
  530. "file2box.com",
  531. "flyshare.cz",
  532. "yabadaba.ru",
  533. "cloudcache.cc",
  534. "yourfilehost.com",
  535. "jakfile.com",
  536. "kickload.com",
  537. "pyramidfiles.com",
  538. "refile.net",
  539. "zshare.net",
  540. "ddlani.me|ddlanime.com",
  541. "ftp2share.com",
  542. "fooget.com",
  543. "rapidhide.com",
  544. "gotupload.com",
  545. "mooload.com",
  546. "zupload.com",
  547. "mytempdir.com",
  548. "onionshare.com",
  549. "stahnu.to",
  550. "oron.com",
  551. "badongo.com",
  552. "filereactor.com",
  553. "filegaze.com",
  554. "4bytez.com",
  555. "1hostclick.com",
  556. "anonstream.com",
  557. "batshare.com",
  558. "bitroad.net",
  559. "brontofile.com",
  560. "cloudnxt.net",
  561. "cloudnator.com|shragle.com",
  562. "filesfrog.net",
  563. "coolshare.cz",
  564. "dotavi.com",
  565. "ezyfile.net",
  566. "file-bit.net",
  567. "filecosy.com",
  568. "fileduct.com|fileduct.net",
  569. "filefat.com",
  570. "filelaser.com",
  571. "filemashine.com",
  572. "fileserver.cc",
  573. "filetechnology.com",
  574. "fireuploads.net",
  575. "gigfiles.net",
  576. "holderfile.com",
  577. "ihostia.com",
  578. "k2files.com",
  579. "mojofile.com",
  580. "ovfile.com",
  581. "qshare.com",
  582. "shafiles.me",
  583. "sharefilehost.com",
  584. "shareupload.com",
  585. "stahuj.to",
  586. "ugotfile.com",
  587. "uploadboost.com",
  588. "fileom.com",
  589. "vidhog.com",
  590. "xfileshare.eu",
  591. "bzlink.us",
  592. "bulletupload.com",
  593. // "wizzupload.com",
  594. "bloggerarticles.com",
  595. "mojedata.sk",
  596. "sharpfile.com",
  597. "upgrand.com",
  598. "nasdilej.cz",
  599. "mediatack.cz",
  600. "share-it.to",
  601. "primeupload.com",
  602. "filebeer.info",
  603. "baberepublic",
  604. "xtu.me",
  605. "sharebase.de",
  606. "luckyshare.net",
  607. "filerobo.com",
  608. "filevelocity.com",
  609. "filezpro.com",
  610. "file4sharing.com",
  611. "cing.be",
  612. "ufile.eu",
  613. "pigsonic.com",
  614. "fileupped.com",
  615. "sharerun.com",
  616. "filesaur.com",
  617. "rapidslnare.com",
  618. "bestsharing.com",
  619. "savefiles.net",
  620. "file2share.biz",
  621. "filecache.de",
  622. "monsteruploads.eu",
  623. "b9bb.com",
  624. "aiotool.net",
  625. "jamber.info",
  626. "megaftp.com",
  627. "desiupload.net",
  628. "file27.com",
  629. "yastorage.com",
  630. "filehost.ws",
  631. "copyload.com",
  632. "venusfile.com",
  633. "aieshare.com",
  634. "terafile.co",
  635. "terafile.com",
  636. "fileza.net",
  637. "filerose.com",
  638. "squillion.com",
  639. "fileprohost.com",
  640. "bitbonus.com",
  641. "warserver.cz",
  642. "uload.to",
  643. "sharedbit.net",
  644. "megaload.it",
  645. "filewinds.com",
  646. "uploadcore.com",
  647. "syfiles.com",
  648. "eyesfile.com",
  649. "hotfile.com",
  650. "superupl.com",
  651. "oteupload.com",
  652. "henchfile.com",
  653. "filegag.com",
  654. "HenchFile.com",
  655. "filedefend.com",
  656. "share-rapid.com|rapids.cz|share-credit.cz|share-central.cz|share-ms.cz|share-net.cz|srapid.cz|share-rapid.cz",
  657. "megabitshare.com",
  658. "cloudzer.com",
  659. "asfile.com",
  660. "cloudzer.net",
  661. "clz.to",
  662. "extabit.com",
  663. "247upload.com",
  664. "2download.de",
  665. "4fastfile.com",
  666. "asixfiles.com",
  667. "berofile.com",
  668. "bigupload.com",
  669. "cepzo.com",
  670. "clouds.to",
  671. "cobrashare.sk",
  672. "coraldrive.net",
  673. "cyberlocker.ch",
  674. "czshare.com",
  675. "darkport.org",
  676. "dark-uploads.com",
  677. "davvas.com",
  678. "enigmashare.com",
  679. "erofly.cz",
  680. "fastsonic.net",
  681. "filebox.com",
  682. "filecity.net",
  683. "filedap.com",
  684. "filedino.com",
  685. "filedownloads.org",
  686. "filefolks.com",
  687. "fileking.co",
  688. "filemates.com",
  689. "files.to",
  690. "files2k.eu",
  691. "filesector.cc",
  692. "bitshare.com",
  693. "filesega.com",
  694. "filesend.net",
  695. "filestay.com",
  696. "filestrum.com",
  697. "fileuplo.de",
  698. "fileupup.com",
  699. "forunesia.com",
  700. "freeuploads.fr",
  701. "uploa.dk",
  702. "getthebit.com",
  703. "getzilla.net",
  704. "goldfile.eu",
  705. "good.com",
  706. "grupload.com",
  707. "hellfile.com",
  708. "hipfile.com",
  709. "hitfile.com",
  710. "hulkfile.eu|duckfile.net",
  711. "i-filez.com",
  712. "ifile.ws",
  713. "kupload.org",
  714. "packupload.com",
  715. "lemuploads.com",
  716. "limelinx.com",
  717. "maxshare.pl",
  718. "megarelease.org",
  719. "megashare.com",
  720. "minus.com",
  721. "mlfat4arab.com",
  722. "multishare.cz",
  723. "nirafile.com",
  724. "ok2upload.com",
  725. "peejeshare.com",
  726. "premiuns.org",
  727. "przeklej.net",
  728. "qkup.net",
  729. "rapidupload.sk",
  730. "rockdizfile.com",
  731. "rocketfile.net",
  732. "share-now.net",
  733. "share76.com",
  734. "sharebees.com",
  735. "sharefiles.co",
  736. "slingfile.com",
  737. "sms4file.com",
  738. "space4file.com",
  739. "tigershare.net",
  740. "toucansharing.com",
  741. "ubuntuone.com",
  742. "unextfiles.com",
  743. "upaj.pl",
  744. "upfile.biz",
  745. "uploadbin.net",
  746. "uploadic.com",
  747. "uploadinc.com",
  748. "uploading4u.eu",
  749. "uploadjet.net",
  750. "uploadorb.com",
  751. "upthe.net",
  752. "uptorch.com",
  753. "vidbox.yt",
  754. "videozer.com",
  755. "vreer.com",
  756. "wallobit.com",
  757. "zooupload.com",
  758. "privatefiles.com",
  759. "xerver.co",
  760. "BillionUploads.com",
  761. "rapidshare.com",
  762. "rapidshare.ru",
  763. "4savefile.com",
  764. "bayfiles.com",
  765. "bayfiles.net",
  766. "dodane.pl",
  767. "dotsemper.com",
  768. "egofiles.com",
  769. "epicshare.net",
  770. "fiberupload.net",
  771. "filemonkey.in",
  772. "filemonster.net",
  773. "filepom.com",
  774. "filesbb.com",
  775. "fileshareup.com",
  776. "filevice.com",
  777. "gigaup.fr",
  778. "inafile.com",
  779. "isavelink.com",
  780. "loombo.com",
  781. "megafiles.se",
  782. "migupload.com",
  783. "mydisc.net",
  784. "nitrobits.com",
  785. "potload.com",
  786. "redload.net",
  787. "shareprofi.com",
  788. "sharesuper.info",
  789. "sinhro.net",
  790. "speedfile.cz",
  791. "speedshare.org",
  792. "storage.novoro.net",
  793. "swankshare.com",
  794. "swatupload.com",
  795. "upafile.com",
  796. "uploadmachine.com",
  797. "uploadsat.com",
  798. "upshared.com",
  799. "usefile.com",
  800. "yourfiles.to",
  801. "zomgupload.com",
  802. "ultramegabit.com",
  803. "uploadto.us",
  804.  
  805. ];
  806. ///////////////////////////////////////////////////////////////////////////////////////
  807. var firstRun = GM_getValue("First_run", true);
  808.  
  809. var chromeBrowser = /chrom(e|ium)/.test(navigator.userAgent.toLowerCase());
  810. //////////////////////////////////////////////////////////////////////////////////////
  811. try
  812. {
  813. var thisVersion = GM_info.script.version; //not supported in Scriptish and others
  814. var last_known_version = GM_getValue("last_known_version", "");
  815. if (!last_known_version)
  816. {
  817. last_known_version = thisVersion;
  818. GM_setValue("last_known_version", last_known_version);
  819. }
  820. //var newVersion = !(thisVersion == last_known_version);
  821. var newVersion = !(a.replace(/^(\d+\.\d+\.\d+).*/,'$1') == b.replace(/^(\d+\.\d+\.\d+).*/,'$1')); //true only if one of the first three numbers differs
  822. GM_setValue("last_known_version", thisVersion);
  823. }
  824. catch (err)
  825. {
  826. var newVersion = false;
  827. }
  828.  
  829. var now = (new Date()).getTime();
  830. var last_custom_rules_nag = GM_getValue('last_custom_rules_nag', 0);
  831. if (!last_custom_rules_nag)
  832. {
  833. last_custom_rules_nag = now;
  834. GM_setValue('last_custom_rules_nag', ''+now);
  835. }
  836.  
  837.  
  838. allHostNames.sort();
  839. allContainerNames.sort();
  840. allObsoleteNames.sort();
  841.  
  842. var RAND_STRING = "8QyvpOSsRG3QWq";
  843. var DEBUG_MODE = false;
  844.  
  845. var TOOLTIP_MAXWIDTH = 600; //in pixels
  846. var TOOLTIP_THUMBWIDTH = 200;
  847. var containers_processed = false;
  848.  
  849. //settings for keyboard functions start
  850. var CHECK_ALL_LINKS_KEY = "A";
  851. var CONFIGURATION_KEY = "C";
  852. var copy_to_dead_key = "D";
  853. var toggle_autocheck_key = "W";
  854. var toggle_Enable_Anonymizer_key = "Z";
  855. var first_key_keycode = '17'; // 18=ALT 16=Shift 17=Ctrl 32=SPACE_BAR 9=TAB
  856. var first_key_keycodename = 'CTRL';
  857. var second_key_keycode = '18';
  858. var second_key_keycodename = 'ALT';
  859. var CHECK_ALL_LINKS_KEYCODE = CHECK_ALL_LINKS_KEY.charCodeAt(0);
  860. var CONFIGURATION_KEYCODE = CONFIGURATION_KEY.charCodeAt(0);
  861. var copy_to_dead_keycode = copy_to_dead_key.charCodeAt(0);
  862. var toggle_autocheck_keycode = toggle_autocheck_key.charCodeAt(0);
  863. var toggle_Enable_Anonymizer_keycode = toggle_Enable_Anonymizer_key.charCodeAt(0);
  864. //settings for keyboard functions end
  865.  
  866. //global settings start
  867. var Show_black_background_in_DL_links, Show_line_through_in_dead_links, Color_DL_links;
  868. var Live_links_color, Dead_links_color, Temp_unavailable_links_color, Premium_links_color, Ref_anonymize_service;
  869. var Do_not_linkify_DL_links, Keyboard_functions, Autocheck, Enable_Anonymizer;
  870. var Show_progress_stats, Display_tooltip_info, Icon_set;
  871. var Progress_box_pos_bottom, Progress_box_pos_right, Progress_box_opacity, Progress_box_background_color, Progress_box_item_color;
  872. var Progress_box_refresh_rate;
  873. var Obsolete_file_hosts;
  874. var Custom_rules, Custom_rules_text;
  875.  
  876. var messageBox = document.createElement('b'); // top-left message box
  877.  
  878. var cLinksTotal = 0;
  879. var cLinksDead = 0;
  880. var cLinksAlive = 0;
  881. var cLinksUnava = 0;
  882. var cLinksprem = 0;
  883. var cLinksProcessed = 0;
  884.  
  885. var intervalId; //for updateProgress()
  886.  
  887. //icon resources
  888. var PAW_ICON_GREEN = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAANCAYAAABy6+R8AAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8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k146BSUbZrz0PC0ZuHzaBYLokq9S90p3pMJRnJl35gtfgZQnAko0lY4WY1+2lu63s+N0EE+agXXrkydc3czjtF7noHXccSx82mWIY0hBpgRVMIalK9WX67tfJzfZJo5EVuouAdieh4kk3KQA21J1rGmuoy/UToMSG5t+vaC5u/7Smikenc04LzHyMAaH+cNcBVGgyWClSIgHAA+2DYy00Wjuz9Bce5MucW9xnuAAAAAElFTkSuQmCC';
  894. var RSLC_ICON_RED = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAANCAYAAABy6+R8AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH2AMJCQkjdGXwDAAAAcpJREFUeNptkj9PFHEQhp/ZBcIhxyKHYgNCYUxogE0OpdDGxsQCY6e5ggS1Mn4Ce621u7MCYqOdX4DkSLTBqwyNiQmJBiJiDjmWP/ub1+IAMXGqmTx5M5nJY5wpwRiQHPfoL2rG8PVksDOBlKRYZWgwxcwkIQlc0o+fDe3sPu6E1dOQIGWg/yUT4zOUBiLtHYAHFBy6YvRrW+Hzl4/e/P2kAJ8iwRhJscrE+AzDwxG3Z2E/oO9bKMvhzj104aLZ1dFr9PZUWzDWASQMDaYqDZjdvAWzd2HkMlpcJKpUsMlJdHiI3i1Ffr4v9d29pEMnt7UyfOkNNjKKTU8Tl8tghq+sEGqvUZwjZA5EAiShPIetLXxhASSIY3An1Gr4xkabq70iar9OkOeoWCSqVMAM8hzMiObnIUnQ0RFyR0DkgNylzhh7cB+bmsLrdQ7n5gj1OlG5TPxoHro7kUsC4mdQUB5u0NdziW/r5q2M/PkLfG2NsLwMkRHevyVkWQib26t+FJYMIIOUvt5XdmXkunXEke/sQchRCNDdRfAQ8vXND97af1qCxqkRLUj9XKFq/cUUMMmRQHKFZquh7OBhCRr/aATQ/I97foxKZ9z7A9QA5voyr3dtAAAAAElFTkSuQmCC';
  895. var RSLC_ICON_YELLOW = 'data:image/png;base64,iVBORw0K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FGB59Ockwb+L3vydX/7oRPYFPW05DnuHbb1aGD79+MRyZev/H9TlvTIB6riK7EhQGbNr2rJe714eq/fjLwPD8x22GO5/eM/CzijN8BdoD0nz3/FuG/an3Sv7/ZehFDyBYIHplzFHcYullyPjp13eGj79/MHwEagRpfvPpB8OuuJsHvz785QRU9w+XAQwCMkyby3aZ+/xj5YBr/vDzD8OpngefHq55rw9U8gBbFCFHo4pljvAV60x19o+/fgMN+cNw79h7hjNFD5IZ/jPMwxXHKOmAmYOxPWCNWgWzKBfDm7c/GY4m3Nr089Uff3yJBD0h8Ug68tzQbVCUvtD66PWrXR91gWIvSTEABOw5pNlKfjz91QNkHySUTAGg7t0uvj1ytQAAAABJRU5ErkJggg==';
  899. var NEW_ICON_RED = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAA6klEQVQ4jbWTwWrCQBRFz6Rxnay6iuAXlJIg+BHZZR/d6++4t/5MpRQRf8CCrurGrDP6uumESTol04J3dbmPd7hvYBTAG5QBzIFH/PQpsBzDWm2gDGEFKM9lIxGYBSEsustRnpPWNZkImQip1sRF0QUoBQv1DgdgZE9SrdmGIX0Z8NFKni8XHqIIgEzkR+dMhGtVsYvjJgt6L+1Rq4FN/hcA2md01a0PjhPM8n44bDLjXeBf36A+nZzeG+Cr+wEGSeL0LsDZDq5VBcDT8dhkxpuZpbN6hXIAL76Vbd1gqgC+IX/6zhqWE1h/AYSwSjYrmXJlAAAAAElFTkSuQmCC';
  900. var NEW_ICON_YELLOW = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfAC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WURQG8F8WEvFNDREfIg5RURAOIeL0DhJBS0tDY9BQQ0Oj29kiIvoDhBpFQRTUD1GKi0sRtEs0SEQ0RBQIRcVXw3eF6+vrWwcunPvc53nuPffcS0uEmA0x38Y5cohwGjOYxBBe4VGI3j8NQlzHYhaW0cfNEAslWCfBw4yvYhkv8hjCgxD7yMdquw/jbJ4+xq2cz+AKdrJRv9EAv/EDx3Ft75QhtrHdcFpHy0mS/lSqcVzAFM7he6XaTNLXJoOmS+ziOc4XcB893A3xodUgm5zAHdzHSLH0DhdD/GwsoSjlV5Je5nK+YQUTOInXSXq7x6134RQuo4unGf6Me7iKMxgrNfUuXMJazr8U+DA6Of/UZrCF9xjFM3zELpZwOptulIKmLlQGNXdqS7u4EWK9BA9cYpJ2KtWcwaMazcInuB3iTZ3fGv/znf8CBMxX4hrPUbUAAAAASUVORK5CYII=';
  902.  
  903. //global settings end
  904. if (window.opera && !window.console)
  905. {
  906. window.console = {};
  907.  
  908. function fn()
  909. {
  910. opera.postError(arguments);
  911. };
  912. ['log', 'debug', 'info', 'warn', 'error', 'assert', 'dir', 'dirxml', 'group', 'groupEnd', 'time', 'timeEnd', 'count', 'trace', 'profile', 'profileEnd'].forEach(function (name)
  913. {
  914. window.console[name] = fn;
  915. });
  916. }
  917.  
  918. //displays colored text in message box
  919. function sendMessage(text, color)
  920. {
  921. var msgDiv = document.createElement('div');
  922. msgDiv.style.color = color;
  923. msgDiv.innerHTML = text;
  924. messageBox.appendChild(msgDiv);
  925. setTimeout(function(){messageBox.removeChild(msgDiv)}, 3000);
  926. }
  927.  
  928. function linkify(totalourls)
  929. { // code from http://userscripts.org/scripts/review/2254 Linkify ting
  930. var ikkeTilladteTags;
  931. var allLinksRegex = "(?:http:\/\/.+?\\?)?(?:https?:\/\/)?"
  932. + "[0-9A-Za-z]+(?:[\\.-][0-9A-Za-z]+)*\\.[A-Za-z]+/" //instead of totalourls
  933. + "[\\w\\–\\-\\.+$!*\\/()\\[\\]\',~%?:@#&=\\\\\\—;…×Ã\\_\\u0080-\\u03FF’‘" + (Allow_spaces_in_DL_links ? "\\u0020" : "") + "]*";
  934. allLinksRegex = new RegExp(allLinksRegex, "g");
  935. var regexy = "^(?:http:\/\/.+?\\?)?(?:https?:\/\/)?(?:www\\.)?(?:" + totalourls + ")";
  936.  
  937. if (Do_not_linkify_DL_links)
  938. ikkeTilladteTags = ['a', 'head', 'script', 'style', 'title', 'option', 'iframe', 'textarea', 'span']; //tags, hvor det der stAΞ’Β¥r inden i ikke skal vAΞ’Β¦re links
  939. else
  940. ikkeTilladteTags = ['a', 'head', 'script', 'style', 'title', 'option', 'iframe', 'textarea']; //tags, hvor det der stAΞ’Β¥r inden i ikke skal vAΞ’Β¦re links
  941.  
  942. var regex = new RegExp(regexy);
  943. var textNode, muligtLink;
  944.  
  945. var path = "//text()[not(parent::" + ikkeTilladteTags.join(" or parent::") + ") and contains(.,'/')]";
  946. var textNodes = document.evaluate(path, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  947.  
  948. var i = textNodes.snapshotLength;
  949. while (i--)
  950. {
  951. textNode = textNodes.snapshotItem(i);
  952.  
  953. muligtLink = textNode.nodeValue; //all links on page
  954.  
  955. var myArray = null;
  956. var span = null;
  957. var lastLastIndex = 0;
  958. allLinksRegex.lastIndex = 0;
  959. if (/^https?:\/\/~[\w\s\~]*\//.test(muligtLink))
  960. {
  961. if (textNode.parentNode.className == "adead_link") continue;
  962. var censoredLink = muligtLink;
  963. var span = document.createElement('span');
  964. span.className = "adead_link";
  965. $(span).attr('warlc_error', "Cause of error: <b>Censored link.</b>");
  966. $(span).html(censoredLink);
  967. span.addEventListener("mouseover", displayTooltipError, false);
  968. cLinksTotal++; cLinksProcessed++; cLinksDead++;
  969. textNode.parentNode.replaceChild(span, textNode);
  970. continue;
  971. alert(censoredLink);
  972. }
  973. while (myArray = allLinksRegex.exec(muligtLink)) //find all links
  974. {
  975. if (!regex.test(myArray[0])) //this link is not recognized
  976. {
  977.  
  978. continue;
  979. }
  980. if (!span)
  981. span = document.createElement('span');
  982.  
  983. var link = myArray[0];
  984. span.appendChild(document.createTextNode(muligtLink.substring(lastLastIndex, myArray.index))); //inds?t det der kommer for dette hit
  985.  
  986. var $a = $("<a>" + link + "</a>")
  987. if (!link.match(/https?:\/\//))
  988. {
  989. link = 'http://' + link;
  990. }
  991.  
  992. $a.attr("href", link.replace(/\[\/hide:\w+\]/,""))
  993. .addClass("processing_link")
  994. .appendTo(span);
  995. lastLastIndex = allLinksRegex.lastIndex;
  996. }
  997. if (span)
  998. {
  999. span.appendChild(document.createTextNode(muligtLink.substring(lastLastIndex))); //ins?t det der kommer efter sidste hit
  1000. textNode.parentNode.replaceChild(span, textNode);
  1001. }
  1002. }
  1003. }
  1004.  
  1005. function add_WARLC_style()
  1006. {
  1007. if (!(document.getElementsByTagName('WARLC')[0]))
  1008. {
  1009. var meta_not_to_add_more_style = document.createElement("WARLC");
  1010. meta_not_to_add_more_style.setAttribute('content', 'war_links_checker');
  1011. meta_not_to_add_more_style.setAttribute('name', 'description');
  1012. document.getElementsByTagName('head')[0].appendChild(meta_not_to_add_more_style);
  1013. alive_link_png = "";
  1014. adead_link_png = "";
  1015. unava_link_png = "";
  1016. prem_link_png = "";
  1017. switch(Icon_set)
  1018. {
  1019. //no icons
  1020. case 0: break;
  1021. // cat paws
  1022. case 1: alive_link_png = PAW_ICON_GREEN;
  1023. adead_link_png = PAW_ICON_RED;
  1024. unava_link_png = PAW_ICON_YELLOW;
  1025. prem_link_png = PAW_ICON_PINK;
  1026. break;
  1027. // classic RSLC look
  1028. case 2: alive_link_png = RSLC_ICON_GREEN;
  1029. adead_link_png = RSLC_ICON_RED;
  1030. unava_link_png = RSLC_ICON_YELLOW;
  1031. prem_link_png = RSLC_ICON_PINK;
  1032. break;
  1033. // New Icons
  1034. case 3: alive_link_png = NEW_ICON_GREEN;
  1035. adead_link_png = NEW_ICON_RED;
  1036. unava_link_png = NEW_ICON_YELLOW;
  1037. prem_link_png = NEW_ICON_PINK;
  1038. break;
  1039. // cat paws
  1040. default:alive_link_png = PAW_ICON_GREEN;
  1041. adead_link_png = PAW_ICON_RED;
  1042. unava_link_png = PAW_ICON_YELLOW;
  1043. prem_link_png = PAW_ICON_PINK;
  1044. break;
  1045. }
  1046. processing_link_gif = 'data:image/gif;base64,' + // or temporary anavailable
  1047. 'R0lGODlhCgAKAJEDAMzMzP9mZv8AAP///yH/C05FVFNDQVBFMi4wAwEAAAAh+QQFAAADACwAAAAACgAKAAACF5wncgaAGgJzJ647cWua4sOBFEd62VEAACH5BAUAAAMALAEAAAAIAAMAAAIKnBM2IoMDAFMQFAAh+QQFAAADACwAAAAABgAGAAACDJwHMBGofKIRItJYAAAh+QQFAAADACwAAAEAAwAIAAACChxgOBPBvpYQYxYAIfkEBQAAAwAsAAAEAAYABgAAAgoEhmPJHOGgEGwWACH5BAUAAAMALAEABwAIAAMAAAIKBIYjYhOhRHqpAAAh+QQFAAADACwEAAQABgAGAAACDJwncqi7EQYAA0p6CgAh+QQJAAADACwHAAEAAwAIAAACCpRmoxoxvQAYchQAOw%3D%3D';
  1048.  
  1049. var dead_color_css, live_color_css, unava_color_css, prem_color_css, black_background_css;
  1050.  
  1051. if (Color_DL_links)
  1052. {
  1053. dead_color_css = 'color:' + Dead_links_color + ' !important;';
  1054. live_color_css = 'color:' + Live_links_color + ' !important;';
  1055. unava_color_css = 'color:' + Temp_unavailable_links_color + ' !important;';
  1056. container_color_css = 'color:' + Container_links_color + ' !important;';
  1057. prem_color_css = 'color:' + Premium_links_color + ' !important;';
  1058. }
  1059. else
  1060. {
  1061. dead_color_css = live_color_css = unava_color_css = container_color_css = prem_color_css = '';
  1062. }
  1063.  
  1064. if (Show_black_background_in_DL_links)
  1065. {
  1066. black_background_css = 'background-color: black !important;';
  1067. }
  1068. else
  1069. {
  1070. black_background_css = '';
  1071. }
  1072.  
  1073. if (Show_line_through_in_dead_links)
  1074. {
  1075. line_through_css = 'text-decoration: line-through !important;';
  1076. }
  1077. else
  1078. {
  1079. line_through_css = '';
  1080. }
  1081.  
  1082. GM_addStyle(".alive_link {background:transparent url(" + alive_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;" + live_color_css + black_background_css + "}");
  1083. 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 + "}");
  1084. GM_addStyle(".unava_link {background:transparent url(" + unava_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;" + unava_color_css + black_background_css + "}");
  1085. GM_addStyle(".processing_link {background:transparent url(" + processing_link_gif + ") no-repeat scroll 100% 50%;padding-right:15px;" + container_color_css + black_background_css + "}");
  1086. GM_addStyle(".container_link {background:transparent url(" + processing_link_gif + ") no-repeat scroll 100% 50%;padding-right:15px;" + container_color_css + black_background_css + "}");
  1087. GM_addStyle(".container_list {font-size:90%; list-style-type:square; padding: 0px 5% 0px; margin: 0px}");
  1088. GM_addStyle(".prem_link {background:transparent url(" + prem_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;" + prem_color_css + black_background_css + "}");
  1089. }
  1090. }
  1091.  
  1092. var warlcTooltip = null;
  1093. var mouseoverLink = null; //link href with mouse cursor over it
  1094.  
  1095. var lastX = 0;
  1096. var lastY = 0;
  1097.  
  1098. $(document).ready(initTooltip);
  1099. //inits tooltip
  1100. function initTooltip()
  1101. { warlcTooltip = document.createElement("div");
  1102. 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;");
  1103. warlcTooltip.style.visibility = "hidden";
  1104. document.body.appendChild(warlcTooltip);
  1105. }
  1106.  
  1107. //"mousemove" event handler for all links
  1108. function moveTooltip(event)
  1109. {
  1110. if ((Math.abs(lastX - event.clientX) + Math.abs(lastY - event.clientY)) < 6)
  1111. { //no need to reflow if the cursor moved just a little
  1112. return;
  1113. }
  1114. else
  1115. {
  1116. lastX = event.clientX;
  1117. lastY = event.clientY;
  1118. }
  1119.  
  1120. posX = event.clientX + window.pageXOffset + 10;
  1121. posY = event.clientY + window.pageYOffset;
  1122. var ttHeight = warlcTooltip.offsetHeight;
  1123. var ttFreeSpace = window.innerHeight - event.clientY;
  1124. if (ttHeight > ttFreeSpace)
  1125. { //prevents tooltip from getting out of the window
  1126. posY -= (ttHeight - (ttFreeSpace)) + 10;
  1127. }
  1128. else
  1129. {
  1130. posY += 7;
  1131. }
  1132. warlcTooltip.style.top = posY + "px";
  1133. warlcTooltip.style.left = posX + "px";
  1134. }
  1135.  
  1136. //"mouseout" event handler for all links
  1137. function hideTooltip(){
  1138. warlcTooltip.style.visibility = "hidden";
  1139. mouseoverLink = null;
  1140. }
  1141.  
  1142.  
  1143. //"mouseover" event handler for dead links
  1144. //displays tooltip error message on dead links
  1145. function displayTooltipError()
  1146. {
  1147. mouseoverLink = this.href;
  1148. this.addEventListener("mouseout", hideTooltip);
  1149. this.addEventListener("mousemove", function(event) { moveTooltip(event); });
  1150. warlcTooltip.innerHTML = '<b>LOADING...</b>';
  1151. warlcTooltip.style.minWidth = 0;
  1152. warlcTooltip.style.visibility = "visible";
  1153. if (this.warlc_error) //an error message is already known and stored in warlc_error attribute
  1154. {
  1155. warlcTooltip.innerHTML = this.warlc_error;
  1156. }
  1157. else
  1158. {
  1159. loadErrorInfo(this);
  1160. }
  1161. function loadErrorInfo(link)
  1162. {
  1163. var href = link.href;
  1164. href = href.replace(/quickshare\.cz\/.+/, "quickshare.cz/chyba");
  1165. GM_xmlhttpRequest({
  1166. method: 'GET',
  1167. url: href.replace(Ref_anonymize_service, ""),
  1168. headers: {
  1169. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1170. 'Accept': 'text/xml',
  1171. 'Referer': ""
  1172. },
  1173. onload: function(result) {
  1174. var res = result.responseText;
  1175. //TODO: errorRegexs -
  1176. var errorRegexs = [ //generic error messages follow
  1177. /(empty directory)/i,
  1178. /(soubor nebyl nalezen)/i,
  1179. /((?:file|page|link|folder)(?:is|not|does|has been|was| ){1,}(?:found|available|blocked|exists?|deleted|removed))/i,
  1180. //server specific error messages follow
  1181. /msg error" style="cursor: default">(.+?)<\/div>/, //sendspace
  1182. /color:red;font\-weight:bold;border\-style:dashed;font-size:12px;border\-width:2px;><tr><td align=center>(.+?)<\/td>/, //fastshare
  1183. /(Takový soubor neexistuje. Je možné, že byl již smazán.)/, //quickshare
  1184. /file_info file_info_deleted">\s*<h1>(.+?)<\/h1>/, //filepost
  1185. /<br \/>\s*<p style="color:#000">(.+?)<\/p>\s*<\/center>/, //letitbit
  1186. /(?:error_div">|<\/h1><p>)<strong>(.+?)<\/strong>/, //share-rapid,quickshare
  1187. /class="red">(.+?)<(?:span|br)>/, //czshare, megashares
  1188. /class="wp640">\s*<h1 class="h1">(.+?)<\/h1>/, //uloz.to
  1189. /not-found">\s*<p>(.+?)<\/p>/, //bayfiles
  1190. /(Your file could not be found. Please check the download link.)/, //stahnu.to
  1191. /error_msg">\s*(<h3>.+?<\/h3><ul>(.+?)<\/ul>)/, //edisk
  1192. /id="obsah">\s*<h2>(.+?)<\/h2>/, //euroshare
  1193. /error">\s*(?:<[bp]>)?\s*(.+?)<\/[bp]>/, //filesmonster, shragle, gigapeta
  1194. ///center aC">\s*<h1>(.+?)<br \/>/, //uploaded.to
  1195. /icon_err">\s*<h1>(.+?)<\/h1>/, //filejungle
  1196. /Code: ER_NFF_\d+<\/h2>\s*(.+?)\s*<\/div>/, //netload
  1197. /(File has been removed due to Copyright Claim)/, //filerio
  1198. ];
  1199. var errorIdx = errorRegexs.length;
  1200. var error = "Cause of error: <b>unknown</b>";
  1201. var errorCandidate = "";
  1202. while(errorIdx--)
  1203. {
  1204. var errorCandidate = res.match(errorRegexs[errorIdx]);
  1205. if (errorCandidate != null)
  1206. {
  1207. error = "Cause of error: <b>" + errorCandidate[1].replace(/&nbsp;/g," ") + "</b>";
  1208. break;
  1209. }
  1210. }
  1211. //link attributes
  1212. link.warlc_error = error;
  1213. if (mouseoverLink == link.href) //mouse cursor is still over the link
  1214. {
  1215. warlcTooltip.innerHTML = error;
  1216. }
  1217. }
  1218. });
  1219. }
  1220. }
  1221.  
  1222. //"mouseover" event handler for alive links
  1223. //displays tooltip info (file size, file name,...) on alive links
  1224. function displayTooltipInfo()
  1225. {
  1226. mouseoverLink = this.href;
  1227. //exclude direct download filehostings
  1228. 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)/))
  1229. {
  1230. return;
  1231. }
  1232. this.addEventListener("mouseout", hideTooltip);
  1233. this.addEventListener("mousemove", function(event) { moveTooltip(event); });
  1234. warlcTooltip.innerHTML = '<b>LOADING...</b>';
  1235. warlcTooltip.style.minWidth = 0;
  1236. warlcTooltip.style.visibility = "visible";
  1237. if (this.warlc_tooltipcache) //file size is already known and stored in warlc_filename and warlc_filesize attributes
  1238. {
  1239. warlcTooltip.innerHTML = this.warlc_tooltipcache;
  1240. }
  1241. else
  1242. {
  1243. loadInfo(this);
  1244. }
  1245. function loadInfo(link)
  1246. {
  1247. var href = link.href;
  1248. GM_xmlhttpRequest({
  1249. method: 'GET',
  1250. url: href.replace(Ref_anonymize_service, ""),
  1251. headers: {
  1252. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1253. 'Accept': 'text/xml',
  1254. 'Referer': ""
  1255. },
  1256. onload: function(result) {
  1257. var res = result.responseText;
  1258. var nameRegexs = [ /Filename: <b class="f_arial f_14px">(.+?)<\/b>/, //oron
  1259. /(?:finfo|file[-_]?name)">\s*(.+?)<\/?(?:h1|a|div|span style|td)/, //hellshare, netload, badongo, 4fastfile
  1260. /fl" title="(.+?)">/, //edisk
  1261. /<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
  1262. /<h3>Stahujete soubor: <\/h3>\s*<div class="textbox">(.+?)<\/div>/, //webshare
  1263. /<h3><b><span style=color:black;>(.+?)<\/b><\/h3><br>/, //fastshare
  1264. /title="download (.+?)">/, //sendspace
  1265. /Stáhnout soubor: (.+?)<\/h1>/, //quickshare
  1266. /fz24">Download:\s*<strong>(.+?)<\/strong>/, //crocko
  1267. /'file\-icon\d+ \w+'>(?:<\/span><span>)?(.+?)<\/span>/, //hitfile, turbobit
  1268. /d0FileName = "(.+?)";/, //letitbit
  1269. /file(?:_name|-info)" title="">\w+: <span>(.+?)<\/span>/, //vip-file, shareflare
  1270. /recent-comments"><h2>(.+) &nbsp;/, //xdisk
  1271. /fname" value="(.+?)">/, //syfiles, grupload,
  1272. /download\-header">\s*<h2>File:<\/h2>\s*<p title="(.+?)">/, //bayfiles
  1273. /description">\s*<p><b>Soubor: (.+?)<\/b>/, //bezvadata
  1274. /Complete name : (.+?)<br \/>/, //bezvadata
  1275. /itemprop="name">(.+?)<\/span>/, //bezvadata
  1276. ];
  1277. var nameIdx = nameRegexs.length;
  1278. // [sizeRegexs]
  1279. // / \ \?
  1280. // prefix (size) postfix
  1281. // / \
  1282. // val quant
  1283. var quantRegex = '(?:M|G|K)?i?(?:B)(?:[y|i]te?s?)?';
  1284. var valRegex = '\\d+(?:[\\., ]\\d+){0,2}'; // 111([., ]222)?([., ]333)?
  1285. var uniSizeRegex = valRegex + '(?:\\s*|&nbsp;)' + quantRegex;
  1286. var preSizeRegex = '(?::|\\(|>|>, | - )';
  1287. var postSizeRegex = '(?:\\))?';
  1288. var sizeRegexs = [ preSizeRegex + "\\s*(" + uniSizeRegex + ")\\s*" + postSizeRegex,
  1289. 'FileSize_master">(.+?)<\/strong>', //hellshare
  1290. ];
  1291. var sizeIdx = sizeRegexs.length;
  1292. //
  1293. //
  1294. var tooltip = "File Name: <b>";
  1295. var fileName = "unknown";
  1296. var nameCandidate = "";
  1297. while(nameIdx--)
  1298. {
  1299. var nameCandidate = res.match(nameRegexs[nameIdx]);
  1300. if (nameCandidate != null)
  1301. {
  1302. fileName = nameCandidate[1].replace(/&nbsp;/g," ");
  1303. break;
  1304. }
  1305. }
  1306. tooltip += fileName + "</b><br>File Size: <b>";
  1307. var fileSize = "unknown";
  1308. var sizeCandidate = "";
  1309. while(sizeIdx--)
  1310. {
  1311. sizeCandidate = res.match(new RegExp(sizeRegexs[sizeIdx], "i"));
  1312. if (sizeCandidate != null)
  1313. {
  1314. fileSize = sizeCandidate[1].replace(/&nbsp;/g," ");
  1315. if (/^\d+$/.test(fileSize) && fileSize >= 1024) //assume bytes
  1316. {
  1317. if(fileSize > (1<<30)) fileSize = Math.round(10 * fileSize / (1<<30)) / 10 + ' GB';
  1318. else if(fileSize > (1<<20)) fileSize = Math.round(fileSize / (1<<20)) + ' MB';
  1319. else fileSize = Math.round(fileSize / 1024) + ' KB';
  1320. }
  1321. break;
  1322. }
  1323. }
  1324. tooltip += fileSize + "</b>";
  1325. // PROTOTYPE
  1326. // video thumbnails
  1327. if (href.match('hellshare'))
  1328. {
  1329. var thumbs;
  1330. thumbs = res.match(/http:\/\/static\d+\.helldata\.com\/thumbs(?:\/\d+){1,2}\/\d{1,2}"/g);
  1331. if (thumbs)
  1332. {
  1333. tooltip += '<br>';
  1334. var j = Math.min(thumbs.length, 9);
  1335. for (var i = 0; i < j; i++)
  1336. {
  1337. tooltip += '<img src="' + thumbs[i].replace('"',"") + '" width="' + TOOLTIP_THUMBWIDTH + 'px">';
  1338. }
  1339. warlcTooltip.style.minWidth = TOOLTIP_MAXWIDTH;
  1340. }
  1341. }
  1342. if (href.match('czshare'))
  1343. {
  1344. var thumbs;
  1345. thumbs = res.match(/src="http:\/\/www(\d+)\.czshare\.com\/images_velke\/\d+\.(\d+)\.jpeg/);
  1346. if (thumbs)
  1347. {
  1348. var thumbsServer = thumbs[1];
  1349. var thumbsId = thumbs[2];
  1350. tooltip += '<br>';
  1351. for (var i = 1; i < 9; i++)
  1352. {
  1353. tooltip += '<img src="http://www' + thumbsServer + '.czshare.com/images_velke/' + i + '.' + thumbsId + '.jpeg" width="' + TOOLTIP_THUMBWIDTH + 'px">';
  1354. }
  1355. warlcTooltip.style.minWidth = TOOLTIP_MAXWIDTH;
  1356. }
  1357. }
  1358. if (href.match('bezvadata'))
  1359. {
  1360. var thumbs;
  1361. thumbs = res.match(/http:\/\/nahledy\.bezvadata\.cz\/nahledy\/\d+\/\d+\/\d+_\d+_\d+x\d+_\w.jpg/g);
  1362. if (thumbs)
  1363. {
  1364. tooltip += '<br>';
  1365. var j = Math.min(thumbs.length, 9);
  1366. for (var i = 0; i < j; i++)
  1367. {
  1368. tooltip += '<img src="' + thumbs[i] + '" width="' + TOOLTIP_THUMBWIDTH + 'px">';
  1369. }
  1370. warlcTooltip.style.minWidth = TOOLTIP_MAXWIDTH;
  1371. }
  1372. }
  1373. link.warlc_tooltipcache = tooltip;
  1374. if (mouseoverLink == link.href) //mouse cursor is still over the link
  1375. {
  1376. warlcTooltip.innerHTML = tooltip;
  1377. }
  1378. }
  1379. });
  1380. }
  1381. }
  1382.  
  1383. function setVariables()
  1384. {
  1385. if (firstRun)
  1386. {
  1387. GM_log('First run, applying default settings...');
  1388. GM_setValue("Icon_set",1);
  1389. GM_setValue("Display_tooltip_info",true);
  1390. GM_setValue("Show_black_background_in_DL_links",false);
  1391. GM_setValue("Show_line_through_in_dead_links",false);
  1392. GM_setValue("Display_full_links_in_link_containers",false);
  1393. GM_setValue("Allow_spaces_in_DL_links",false);
  1394. GM_setValue("Autocheck",true);
  1395. GM_setValue("Enable_Anonymizer",false);
  1396. GM_setValue("Do_not_linkify_DL_links",false);
  1397. GM_setValue("Show_progress_stats",true);
  1398. GM_setValue("Keyboard_functions",true);
  1399. GM_setValue("Obsolete_file_hosts",false);
  1400. GM_setValue("Color_DL_links",true);
  1401. GM_setValue("Live_links_color","Green");
  1402. GM_setValue("Dead_links_color","#FF3300");
  1403. GM_setValue("Temp_unavailable_links_color","#F7EF09");
  1404. GM_setValue("Container_links_color","DarkKhaki");
  1405. GM_setValue("Premium_links_color","DeepPink");
  1406. GM_setValue("Ref_anonymize_service","http://hiderefer.com/?");
  1407. GM_setValue("Custom_rules",false);
  1408. GM_setValue("Custom_rules_text","");
  1409. GM_setValue("First_run", false);
  1410. }
  1411. //hidden settings
  1412. GM_setValue("Progress_box_pos_bottom", Progress_box_pos_bottom = GM_getValue("Progress_box_pos_bottom", 20));
  1413. GM_setValue("Progress_box_pos_right", Progress_box_pos_right = GM_getValue("Progress_box_pos_right", 10));
  1414. GM_setValue("Progress_box_opacity", Progress_box_opacity = GM_getValue("Progress_box_opacity", 85));
  1415. GM_setValue("Progress_box_background_color", Progress_box_background_color = GM_getValue("Progress_box_background_color", 'DimGray'));
  1416. GM_setValue("Progress_box_item_color", Progress_box_item_color = GM_getValue("Progress_box_item_color", 'DimGray'));
  1417. GM_setValue("Progress_box_refresh_rate", Progress_box_refresh_rate = GM_getValue("Progress_box_refresh_rate", 2000));
  1418. GM_setValue("Debug_mode", DEBUG_MODE = GM_getValue("Debug_mode", false));
  1419. //hidden settings end
  1420.  
  1421. Icon_set = GM_getValue("Icon_set", 1); //0 - no icons, 1 - cat paws, 2 - old RSLC style, 3 - New Icons,
  1422. Display_tooltip_info = GM_getValue("Display_tooltip_info", true);
  1423. Show_black_background_in_DL_links = GM_getValue("Show_black_background_in_DL_links", false);
  1424. Show_line_through_in_dead_links = GM_getValue("Show_line_through_in_dead_links", false);
  1425. Display_full_links_in_link_containers = GM_getValue("Display_full_links_in_link_containers", false);
  1426. Allow_spaces_in_DL_links = GM_getValue("Allow_spaces_in_DL_links", false);
  1427. Autocheck = GM_getValue("Autocheck", true);
  1428. Enable_Anonymizer = GM_getValue("Enable_Anonymizer", false);
  1429. Do_not_linkify_DL_links = GM_getValue("Do_not_linkify_DL_links", false);
  1430. Show_progress_stats = GM_getValue("Show_progress_stats", true);
  1431. Keyboard_functions = GM_getValue("Keyboard_functions", true);
  1432. Obsolete_file_hosts = GM_getValue("Obsolete_file_hosts", false);
  1433. Color_DL_links = GM_getValue("Color_DL_links", true);
  1434. Live_links_color = GM_getValue("Live_links_color", "Green");
  1435. Dead_links_color = GM_getValue("Dead_links_color", "#FF3300");
  1436. Temp_unavailable_links_color = GM_getValue("Temp_unavailable_links_color", "#F7EF09");
  1437. Container_links_color = GM_getValue("Container_links_color", "DarkKhaki");
  1438. Premium_links_color = GM_getValue("Premium_links_color", "DeepPink");
  1439. Ref_anonymize_service = GM_getValue("Ref_anonymize_service", "http://hiderefer.com/?");
  1440. Custom_rules = GM_getValue("Custom_rules", false);
  1441. Custom_rules_text = GM_getValue("Custom_rules_text", false);
  1442. }
  1443.  
  1444.  
  1445. // Delinkifies the links
  1446. // params:
  1447. // links -> list of links or link components (note they should be sufficiently unique to identify the link on page,
  1448. // e.g. 'uloz.to/xs68skxl8')
  1449. function delinkifySnapshot(snapshot)
  1450. {
  1451. var n = snapshot.snapshotLength;
  1452.  
  1453. while (n--)
  1454. {
  1455. thisLink = snapshot.snapshotItem(n);
  1456.  
  1457. var spanElm = document.createElement("span");
  1458. spanElm.className = thisLink.className;
  1459. spanElm.innerHTML = thisLink.innerHTML;
  1460.  
  1461. if (Display_tooltip_info)
  1462. {
  1463. spanElm.href = thisLink.href;
  1464. switch (thisLink.className){
  1465. case "alive_link": spanElm.addEventListener("mouseover", displayTooltipInfo, false); break
  1466. case "adead_link": spanElm.addEventListener("mouseover", displayTooltipError, false); break;
  1467. case "unava_link": //reserved
  1468. default:
  1469. }
  1470. }
  1471. thisLink.parentNode.replaceChild(spanElm, thisLink);
  1472. }
  1473. }
  1474.  
  1475. function processContainers()
  1476. {
  1477. var redirectorTypes = { "HTTP_302": 0,
  1478. "INNER_LINK": 1,
  1479. "THELOO_KATT_IT": 2,
  1480. "CING_BE": 3,
  1481. "ADF_LY": 4};
  1482. var cMultiloadTotal = 0;
  1483. var cMultiloadProcessed = 0;
  1484.  
  1485. var cMirrorcreatorComTotal = 0;
  1486. var cMirrorcreatorComProcessed = 0;
  1487.  
  1488. var hostRestrictionRegex = "";
  1489. var multiloadComRestriction = "";
  1490. var multiloadComRestrictionRegex;
  1491.  
  1492. //
  1493. //HANDLING REDIRECTORS START
  1494. //
  1495.  
  1496. var redirectors = new Array();
  1497. initRedirectors();
  1498.  
  1499. var redirectorsCount = redirectors.length;
  1500.  
  1501. if (redirectorsCount > 0)
  1502. {
  1503. var allRedirectorsRegex = "";
  1504.  
  1505. //linkify redirector links
  1506. for(var redirIdx = 0; redirIdx < redirectorsCount; redirIdx++)
  1507. {
  1508. allRedirectorsRegex += redirectors[redirIdx].linkRegex + "|";
  1509. }
  1510. allRedirectorsRegex = allRedirectorsRegex.replace(/\|$/, "");
  1511. linkify(allRedirectorsRegex);
  1512. //
  1513. //process redirector links
  1514. for(var redirIdx = 0; redirIdx < redirectorsCount; redirIdx++)
  1515. {
  1516. var redirectorsSnapshot = document.evaluate(redirectors[redirIdx].xpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  1517. redirectors[redirIdx].cTotal = redirectorsSnapshot.snapshotLength;
  1518.  
  1519. cLinksTotal += redirectors[redirIdx].cTotal;
  1520. var linkIdx = redirectors[redirIdx].cTotal;
  1521.  
  1522. while(linkIdx--)
  1523. {
  1524. switch(redirectors[redirIdx].type)
  1525. {
  1526. case redirectorTypes.HTTP_302: processRedirectorLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1527. case redirectorTypes.INNER_LINK: processRedirectorLinkEx(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1528. case redirectorTypes.THELOO_KATT_IT: processThelooKattItLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1529. case redirectorTypes.CING_BE: processCingBeLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1530. case redirectorTypes.ADF_LY: processAdfLyLink(redirectorsSnapshot.snapshotItem(linkIdx), redirIdx); break;
  1531. default:
  1532. }
  1533. }
  1534. }
  1535. //
  1536. }
  1537.  
  1538. //HTTP_302
  1539. function processRedirectorLink(link, redirectorId)
  1540. {
  1541. link.className = 'container_link';
  1542.  
  1543. GM_xmlhttpRequest({
  1544. method: 'HEAD',
  1545. url: link.href,
  1546. headers: {
  1547. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1548. 'Accept': 'text/xml',
  1549. 'Referer': ""
  1550. },
  1551. onload: function(result) {
  1552. if (result.finalUrl.replace("https", "http") == link.href) // service hasn't redirected anywhere
  1553. {
  1554. processRedirectorLink(link, redirectorId);
  1555. }
  1556. else
  1557. {
  1558. redirectors[redirectorId].cProcessed++;
  1559. link.href = result.finalUrl;
  1560. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  1561. checkLinks('container_link');
  1562. }
  1563. },
  1564. onerror: function(result) { //probably caused by unresponsive filehosting
  1565. redirectors[redirectorId].cProcessed++;
  1566. link.className = 'unava_link';
  1567. cLinksProcessed++;
  1568. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  1569. checkLinks('container_link');
  1570. }
  1571. });
  1572. }
  1573. //INNER_LINK
  1574. function processRedirectorLinkEx(link, redirectorId)
  1575. {
  1576. link.className = 'container_link';
  1577. GM_xmlhttpRequest({
  1578. method: 'GET',
  1579. url: link.href,
  1580. headers: {
  1581. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1582. 'Accept': 'text/xml',
  1583. 'Referer': ""
  1584. },
  1585. onload: function(result) {
  1586. link.href = result.responseText.match(redirectors[redirectorId].innerLinkRegex)[1];
  1587. redirectors[redirectorId].cProcessed++;
  1588. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  1589. checkLinks('container_link');
  1590. }
  1591. });
  1592. }
  1593. //theloo.katt.it (wrapped safelinking.net)
  1594. function processThelooKattItLink(link, redirectorId)
  1595. {
  1596. link.className = 'container_link';
  1597. GM_xmlhttpRequest({
  1598. method: 'GET',
  1599. url: link.href,
  1600. headers: {
  1601. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1602. 'Accept': 'text/xml',
  1603. 'Referer': ""
  1604. },
  1605. onload: function(result) {
  1606. link.href = result.responseText.match(redirectors[redirectorId].innerLinkRegex)[1];
  1607. redirectors[redirectorId].cProcessed++;
  1608. //the inner links are safelinking.net links, so lets proceed with it
  1609. if (GM_getValue("Check_safelinking_dot_net_links", false))
  1610. {
  1611. processRedirectorLink(link, 0);
  1612. }
  1613. }
  1614. });
  1615. }
  1616. //adf.ly (adf.ly/go innerLink, locking mechanism)
  1617. function processAdfLyLink(link, redirectorId)
  1618. {
  1619. link.className = 'container_link';
  1620. GM_xmlhttpRequest({
  1621. method: 'GET',
  1622. url: link.href,
  1623. headers: {
  1624. 'User-agent': 'Mozilla/4.0',
  1625. 'Accept': 'text/xml',
  1626. 'Referer': ""
  1627. },
  1628. onload: function(result) {
  1629. if (result.finalUrl.match('/locked/'))
  1630. {
  1631. var delay = result.responseText.match(/countdown">(\d+)</)[1];
  1632. // GM_log(result.finalUrl + 'is locked. Repeating the request in ' + delay + 's.');
  1633. // setTimeout(function(){processAdfLyLink(link, redirectorId);}, delay * 1000);
  1634. }
  1635. else
  1636. {
  1637. // GM_log('Processing... ' + link.href);
  1638. // GM_log('Found...' + result.responseText.match(/\/go\/(\w+\/\w+)/)[1]);
  1639. var directLink = 'http://adf.ly' + result.responseText.match(/(\/go\/\w+\/\w+)/)[1];
  1640. var logToken = result.responseText.match(/flashy_(\w+)/)[1];
  1641. var users = result.responseText.match(/user=\d+&user2=\d+/);
  1642. //confirm advert
  1643. GM_xmlhttpRequest(
  1644. {
  1645. method: 'POST',
  1646. url: 'http://adf.ly/l.php',
  1647. headers: {
  1648. 'User-agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20100101 Firefox/13.0',
  1649. 'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
  1650. 'Referer': link.href
  1651. },
  1652. data: users + '&lt=' + logToken,
  1653. onload: function(result) {
  1654. //retrieve final url from .../go/... link
  1655. GM_xmlhttpRequest({
  1656. method: 'GET',
  1657. url: directLink,
  1658. headers: {
  1659. 'User-agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20100101 Firefox/13.0',
  1660. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  1661. 'Referer': link.href
  1662. },
  1663. onload: function(result) {
  1664. link.href = result.finalUrl;
  1665. redirectors[redirectorId].cProcessed++;
  1666. if (redirectors[redirectorId].cProcessed >= redirectors[redirectorId].cTotal)
  1667. checkLinks('container_link');
  1668. }
  1669. });
  1670. }
  1671. });
  1672. }
  1673. }
  1674. });
  1675. function proceedOK()
  1676. {
  1677. }
  1678. }
  1679. //MULTILOAD.CZ START
  1680. if (GM_getValue("Check_multiload_dot_cz_links", false))
  1681. {
  1682. var mlRegex = 'multiload\\.cz\/stahnout\/\\d+\/';
  1683. var mlXpath = "//a[contains(@href,'http://www.multiload.cz/stahnout')]";
  1684.  
  1685. hostRestrictionRegex = 'Upload se nezdařil|limit exceeded|probíhá reupload|';
  1686.  
  1687. if (GM_getValue("Check_hellshare_dot_com_links", false))
  1688. hostRestrictionRegex += 'hellshare|';
  1689. if (GM_getValue("Check_share_dash_rapid_dot_com_links", false))
  1690. hostRestrictionRegex += 'share-rapid\\.com|';
  1691. if (GM_getValue("Check_quickshare_dot_cz_links", false))
  1692. hostRestrictionRegex += 'quickshare\\.cz|';
  1693. if (GM_getValue("Check_czshare_dot_com_links", false))
  1694. hostRestrictionRegex += 'czshare\\.com|';
  1695. if (GM_getValue("Check_uloz_dot_to_links", false))
  1696. hostRestrictionRegex += 'uloz\\.to|';
  1697. if (GM_getValue("Check_hellspy_dot_com_links", false))
  1698. hostRestrictionRegex += 'hellspy|';
  1699. if (GM_getValue("Check_multishare_dot_cz_links", false))
  1700. hostRestrictionRegex += 'multishare\\.cz|';
  1701.  
  1702. hostRestrictionRegex = hostRestrictionRegex.replace(/\|$/, "");
  1703.  
  1704. linkify(mlRegex);
  1705.  
  1706. var mlSnapshot = document.evaluate(mlXpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  1707. var mlCount = mlSnapshot.snapshotLength;
  1708.  
  1709. if (mlCount > 0)
  1710. {
  1711. cMultiloadTotal += mlCount;
  1712.  
  1713. mlIdx = mlCount - 1;
  1714. do
  1715. {
  1716. processMultiloadLink(mlSnapshot.snapshotItem(mlIdx));
  1717. }
  1718. while(mlIdx--)
  1719. }
  1720. }
  1721. //MULTILOAD.CZ END
  1722.  
  1723.  
  1724.  
  1725. function processMultiloadLink(mlLink)
  1726. {
  1727. GM_xmlhttpRequest({
  1728. method: 'GET',
  1729. url: mlLink.href,
  1730. headers: {
  1731. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1732. 'Accept': 'text/xml',
  1733. 'Referer': ""
  1734. },
  1735. onload: function(result) {
  1736. var res = result.responseText;
  1737.  
  1738. var innerBlockRegex = /<p class="manager-linky">(?:.|\s)+?<\/p>/g;
  1739. 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;
  1740. var innerLinkRegex = /((?:Upload se nezdařil.+|https?:\/\/(?:.|\s)+|Právě probíhá reupload, buďte trpěliví\.\.\.))</;
  1741. var mlRestrictionRegex = new RegExp(hostRestrictionRegex,"g"); //what links should be displayed
  1742.  
  1743. var blocks; // blocks of links
  1744. var blockIdx;
  1745.  
  1746. mlLink.className = '';
  1747.  
  1748. if (result.status == 503) //service temporarily unavailable, repeat request in one second
  1749. {
  1750. setTimeout(function(){ processMultiloadLink(mlLink); }, 1000);
  1751. return;
  1752. }
  1753.  
  1754. blocks = res.match(innerBlockRegex);
  1755.  
  1756. if (blocks == null) //no links found, cancel further processing
  1757. {
  1758. mlLink.parentNode.appendChild(document.createTextNode(' | Požadovaný soubor neexistuje.'));
  1759. cMultiloadProcessed++;
  1760. if (cMultiloadTotal <= cMultiloadProcessed)
  1761. {
  1762. startBulkCheck('container_link');
  1763. start('container_link');
  1764. }
  1765. return;
  1766. }
  1767.  
  1768. blockIdx = blocks.length;
  1769.  
  1770. if (Display_full_links_in_link_containers)
  1771. {
  1772. var ulElm = document.createElement('ul');
  1773. ulElm.className = 'container_list'; //CSS smaller font, padding, margin, square style
  1774.  
  1775. while(blockIdx--)
  1776. {
  1777. if (blocks[blockIdx].match(mlRestrictionRegex) == null)
  1778. {
  1779. continue;
  1780. }
  1781.  
  1782. var innerLinks = blocks[blockIdx].match(innerLinksRegex);
  1783.  
  1784. var linkIdx = innerLinks.length;
  1785. while (linkIdx--)
  1786. {
  1787. var innerLink = innerLinks[linkIdx].match(innerLinkRegex)[1];
  1788.  
  1789. var liElm = document.createElement('li');
  1790.  
  1791. if (innerLink.match(/Upload se nezdařil|limit exceeded|probíhá reupload/))
  1792. {
  1793. liElm.appendChild(document.createTextNode(innerLink));
  1794. }
  1795. else
  1796. {
  1797. var aElm = document.createElement('a');
  1798. aElm.innerHTML = innerLink;
  1799. aElm.href = innerLink;
  1800. aElm.className = 'container_link';
  1801.  
  1802. liElm.appendChild(aElm);
  1803. }
  1804.  
  1805. ulElm.appendChild(liElm);
  1806. cLinksTotal++;
  1807. }
  1808. }
  1809.  
  1810. mlLink.parentNode.appendChild(ulElm);
  1811. }
  1812. else //compact view
  1813. {
  1814. mlLink.parentNode.appendChild(document.createTextNode("|"));
  1815.  
  1816. while(blockIdx--)
  1817. {
  1818. if (blocks[blockIdx].match(mlRestrictionRegex) == null)
  1819. {
  1820. continue;
  1821. }
  1822.  
  1823. var innerLinks = blocks[blockIdx].match(innerLinksRegex);
  1824.  
  1825. var linkIdx = innerLinks.length;
  1826. while (linkIdx--)
  1827. {
  1828. var innerLink = innerLinks[linkIdx].match(innerLinkRegex)[1];
  1829.  
  1830. if (innerLink.match(/Upload se nezdařil|limit exceeded|probíhá reupload/))
  1831. {
  1832. mlLink.parentNode.appendChild(document.createTextNode("----"));
  1833. }
  1834. else
  1835. {
  1836. var aElm = document.createElement('a');
  1837.  
  1838. var hostName = innerLink.match(/quickshare|hellshare|uloz\.to|multishare|hellspy|share\-rapid|czshare/);
  1839.  
  1840. //abbreviate host name
  1841. switch(hostName + ""){
  1842.  
  1843. case 'quickshare': aElm.innerHTML = 'QS'; break;
  1844. case 'hellshare': aElm.innerHTML = 'HS'; break;
  1845. case 'uloz.to': aElm.innerHTML = 'UT'; break;
  1846. case 'multishare': aElm.innerHTML = 'MS'; break;
  1847. case 'hellspy': aElm.innerHTML = 'hs'; break;
  1848. case 'share-rapid': aElm.innerHTML = 'SR'; break;
  1849. case 'czshare': aElm.innerHTML = 'CS'; break;
  1850. default: aElm.innerHTML = 'xx';
  1851.  
  1852. }
  1853.  
  1854. aElm.href = innerLink;
  1855. aElm.className = 'container_link';
  1856.  
  1857. mlLink.parentNode.appendChild(aElm);
  1858. cLinksTotal++;
  1859. }
  1860. }
  1861.  
  1862. mlLink.parentNode.appendChild(document.createTextNode("|")); //blocks delimiter
  1863.  
  1864. }
  1865. }
  1866.  
  1867. cMultiloadProcessed++;
  1868. if (cMultiloadTotal == cMultiloadProcessed) //start check when all ml links have been processed
  1869. {
  1870. if (Do_not_linkify_DL_links)
  1871. {
  1872. delinkifySnapshot(mlSnapshot);
  1873. }
  1874. startBulkCheck('container_link');
  1875. start('container_link');
  1876. }
  1877. }
  1878. });
  1879. }
  1880.  
  1881.  
  1882. if (GM_getValue("Check_mirrorcreator_dot_com_links", false))
  1883. {
  1884. var mcRegex = 'mirrorcreator\\.com/files/(\\w+)';
  1885. var mcXpath = "//a[contains(@href,'mirrorcreator.com/files')]";
  1886. var mcShortHostNames =
  1887. '?? 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';
  1888. // 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
  1889. //?????? depositfiles sendspace load.to ul.to storage.to uploadbox x7.to fileserve ?????? duckload filehook filepost jumbofiles glumbouploads
  1890. // zshare ?????? 2shared uploading ugotfile extabit oron eyvx uploadstation putlocker
  1891. // megaupload badongo megashare gamefront ifile ?????? letitbit ?????? ?????? filejungle megashares
  1892. // easy-share ?????? netload zippyshare ?????? filesonic turbobit enterupload ?????? filekeen wupload crocko fileflyer
  1893.  
  1894. linkify(mcRegex);
  1895.  
  1896. var mcSnapshot = document.evaluate(mcXpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  1897. var mcCount = mcSnapshot.snapshotLength;
  1898.  
  1899. cMirrorcreatorComTotal = mcCount;
  1900.  
  1901. if (mcCount > 0)
  1902. {
  1903. mcShortHostNames = mcShortHostNames.split(' ');
  1904. mcIdx = mcCount;
  1905. while(mcIdx--)
  1906. processMirrorcreatorLink(mcSnapshot.snapshotItem(mcIdx));
  1907. }
  1908.  
  1909. }
  1910. //MIRRORCREATOR.CZ END
  1911.  
  1912.  
  1913. //mirrorcreator.com checking works like this:
  1914. //The base URL is http://www.mirrorcreator.com/files/XXXXXXXX/filename_links
  1915. //the actual list of mirrors is at http://www.mirrorcreator.com/status.php?uid=XXXXXXXX
  1916. //the list contains links in the form of (http://www.mirrorcreator.com)/redirect/XXXXXXXX/1
  1917. //these redirector links are extracted with mcLinkBlockRegex and the pages loaded
  1918. //they contain the actual filehost links, which are extracted with mcHostRegex and displayed in a container list
  1919. function processMirrorcreatorLink(mcLink)
  1920. {
  1921. var mcURL = mcLink.href.match(mcRegex);
  1922. if(!mcURL || !mcURL[1]) return;
  1923. mcURL = 'http://www.mirrorcreator.com/status.php?uid=' + mcURL[1]; //link correction
  1924. GM_xmlhttpRequest({
  1925. method: 'GET',
  1926. url: mcURL,
  1927. headers: {
  1928. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1929. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*'+'/*;q=0.8',
  1930. 'Referer': ""
  1931. },
  1932. onload: function(mcLinkResult) {
  1933. var mcLinkRes = mcLinkResult.responseText;
  1934.  
  1935. var mcLinkBlockRegex = /(\/redirect\/\w+\/(\d+))/gi;
  1936. var mcHostRegex = /<div id="redirectlink">.*?<a href="([^"]+)"/;
  1937.  
  1938. var mcRedirectors;
  1939. var mcHostURLs = [], mcRedirectorIDs = [], mcHostsFound = 0, mcHostsRetrieved = 0, mcHostsToProcess = 0;
  1940. var m = mcLinkRes.match(mcLinkBlockRegex);
  1941. if (m)
  1942. mcHostsFound = m.length;
  1943. else
  1944. { //no files inside container
  1945. processMirrorcreatorFoundHosts(mcLink, []);
  1946. return;
  1947. }
  1948.  
  1949. var mcRedirectorURL, idx, timedOut = false;
  1950.  
  1951. var gmxhrFunc = function(mcRedirectorURL){ //Tampermonkey doesn't know neither this.url or result.finalUrl
  1952. GM_xmlhttpRequest({
  1953. method: 'GET',
  1954. url: mcRedirectorURL,
  1955. headers: {
  1956. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  1957. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*'+'/*;q=0.8',
  1958. 'Referer': ""
  1959. },
  1960. onload: function(mcHostResult) {
  1961. if (timedOut) return; //too late, the list is already displayed
  1962. var mcHostRes = mcHostResult.responseText;
  1963. var mcHost = mcHostRes.match(mcHostRegex);
  1964. idx = mcHostURLs.indexOf(mcRedirectorURL);
  1965. if (mcHost && idx!=-1)
  1966. {
  1967. mcHostURLs[idx] = mcHost[1].replace(/^\s+|\s+$/g, '');
  1968. mcHostsRetrieved++;
  1969. mcHostsToProcess++;
  1970. if (mcHostsFound == mcHostsRetrieved) //this is the last one!
  1971. {
  1972. processMirrorcreatorFoundHosts(mcLink, mcHostURLs, mcRedirectorIDs);
  1973. mcHostsToProcess = 0;
  1974. }
  1975. }
  1976. } //end of onload: function
  1977. }); //end of GM_xmlhttpRequest call
  1978. };//end of var gmxhrFunc
  1979.  
  1980. while (mcRedirectors = mcLinkBlockRegex.exec(mcLinkRes))
  1981. { //load individual redirector pages
  1982. mcRedirectorURL = 'http://www.mirrorcreator.com' + mcRedirectors[1];
  1983. mcHostURLs.push(mcRedirectorURL);
  1984. mcRedirectorIDs.push(mcRedirectors[2]);
  1985. gmxhrFunc(mcRedirectorURL);
  1986. } //end of while block
  1987.  
  1988. setTimeout(function(){ //in case the last page fails to load and call the function
  1989. timedOut = true;
  1990. if (mcHostsToProcess)
  1991. processMirrorcreatorFoundHosts(mcLink, mcHostURLs);
  1992. }, 60000);
  1993.  
  1994. } //end of onload function
  1995. }); //end of GM_xmlhttpRequest call
  1996. } //end of function processMirrorcreatorLink
  1997.  
  1998.  
  1999. function processMirrorcreatorFoundHosts(mcLink, mcHostURLs, mcRedirectorIDs)
  2000. {
  2001. var aEl, liEl, docFrag;
  2002. var hostName, mcRedirectorID, trimFilename = false;
  2003. var i = mcHostURLs.length;
  2004. if (i == 0)
  2005. {
  2006. trimFilename = true;
  2007. mcLink.parentNode.insertBefore(document.createTextNode(' | No files inside container'), mcLink.nextSibling);
  2008. }
  2009. else
  2010. {
  2011. if (Display_full_links_in_link_containers)
  2012. { //full view
  2013. var wrapperEl = document.createElement('span');
  2014. wrapperEl.style.display = 'block';
  2015. var ulistEl = document.createElement('ul');
  2016. ulistEl.className = 'container_list';
  2017. while (i--)
  2018. {
  2019. liEl = document.createElement('li');
  2020. aEl = document.createElement('a');
  2021. aEl.appendChild(document.createTextNode(mcHostURLs[i]));
  2022. aEl.href = mcHostURLs[i];
  2023. aEl.className = 'container_link';
  2024. liEl.appendChild(aEl);
  2025. ulistEl.appendChild(liEl);
  2026. }
  2027. wrapperEl.appendChild(ulistEl);
  2028. mcLink.parentNode.replaceChild(wrapperEl, mcLink);
  2029. wrapperEl.insertBefore(mcLink, wrapperEl.firstChild);
  2030. }
  2031. else
  2032. { //compact view
  2033. trimFilename = true;
  2034. docFrag = document.createDocumentFragment();
  2035. docFrag.appendChild(document.createTextNode(' |'));
  2036. while (i--)
  2037. {
  2038. mcRedirectorID = mcRedirectorIDs[i];
  2039. hostName = mcHostURLs[i];
  2040. if (mcRedirectorID > mcShortHostNames.length-1 || mcShortHostNames[mcRedirectorID] == '??')
  2041. hostName = hostName.replace(/https?:\/\/(?:www\.)?([-0-9a-z]+(?:\.[-0-9a-z]+)?)\.[a-z]+\/.*/i, '$1').toUpperCase();
  2042. else
  2043. hostName = mcShortHostNames[mcRedirectorID];
  2044. aEl = document.createElement('a');
  2045. aEl.href = mcHostURLs[i];
  2046. aEl.className = 'container_link';
  2047. aEl.appendChild(document.createTextNode(hostName));
  2048. docFrag.appendChild(aEl);
  2049. docFrag.appendChild(document.createTextNode('|'));
  2050. }
  2051. mcLink.parentNode.insertBefore(docFrag, mcLink.nextSibling);
  2052. } //end of else block
  2053. } //end of else block
  2054. mcLink.className = '';
  2055. if (trimFilename)
  2056. mcLink.firstChild.nodeValue = mcLink.firstChild.nodeValue.replace(/(https?:\/\/[^\/]+\/files\/\w+\/).+/, '$1...');
  2057. cMirrorcreatorComProcessed++;
  2058. if (cMirrorcreatorComProcessed == cMirrorcreatorComTotal) //start check when all mc links have been processed
  2059. {
  2060. if (Do_not_linkify_DL_links)
  2061. delinkifySnapshot(mcSnapshot);
  2062. startBulkCheck('container_link');
  2063. start('container_link');
  2064. }
  2065. } //end of function processMirrorcreatorFoundHosts
  2066.  
  2067. containers_processed = true;
  2068.  
  2069.  
  2070. function initRedirectors()
  2071. {
  2072. function addRedirector(linkRegex, xpathEx, redirType, innerLinkRegex)
  2073. {
  2074. var redirector = new Object();
  2075. redirector.linkRegex = linkRegex;
  2076. redirector.xpath = xpathEx; //xpath expression
  2077. redirector.cProcessed = 0; //processed links count
  2078. redirector.cTotal = 0; //total links count
  2079. redirector.type = redirType; //redirectorTypes enum
  2080. redirector.innerLinkRegex = innerLinkRegex; //innerLink, null if unused
  2081. redirectors.push(redirector);
  2082. }
  2083. if (GM_getValue("Check_safelinking_dot_net_links", false))
  2084. {
  2085. addRedirector(
  2086. 'safelinking\\.net\/d\/\\w+',
  2087. "//a[contains(@href,'safelinking.net/d/')]",
  2088. redirectorTypes.HTTP_302,
  2089. null);
  2090. }
  2091. if (GM_getValue("Check_linksafe_dot_me_links", false))
  2092. {
  2093. addRedirector(
  2094. 'linksafe\\.me\/d\/\\w+',
  2095. "//a[contains(@href,'linksafe.me/d/')]",
  2096. redirectorTypes.HTTP_302,
  2097. null);
  2098. }
  2099. if (GM_getValue("Check_linkto_dot_net_links", false))
  2100. {
  2101. addRedirector(
  2102. 'linkto\\.net\/\\?\\w+\\.\\d+',
  2103. "//a[contains(@href,'linkto.net/?')]",
  2104. redirectorTypes.INNER_LINK,
  2105. /<iframe id="iframe" name="iframe" src="(.+?)\s*" frameborder="0"/);
  2106. }
  2107. if (GM_getValue("Check_theloo_dot_katt_dot_it_links", false))
  2108. {
  2109. addRedirector(
  2110. '(?:the)?loo\\.katt\\.it\/\\w+',
  2111. "//a[contains(@href,'loo.katt.it/')]",
  2112. redirectorTypes.THELOO_KATT_IT,
  2113. /Proceed to URL - <a href="(.+?)">/);
  2114. }
  2115. if (GM_getValue("Check_madlink_dot_sk_links", false))
  2116. {
  2117. addRedirector(
  2118. 'madlink\\.sk\/\\w+',
  2119. "//a[contains(@href,'madlink.sk/')]",
  2120. redirectorTypes.INNER_LINK,
  2121. /name="url" value="(.+?)\s*"\/>/);
  2122. }
  2123. if (GM_getValue("Check_adf_dot_ly_links", false))
  2124. {
  2125. addRedirector(
  2126. '(?:adf\\.ly|[u9]\\.bb|[qj]\\.gs)\/\\w+',
  2127. "//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/')]",
  2128. redirectorTypes.ADF_LY,
  2129. null);
  2130. }
  2131. if (GM_getValue("Check_redi_dot_re_links", false))
  2132. {
  2133. addRedirector(
  2134. 'redi\\.re\/\\w+',
  2135. "//a[contains(@href,'redi.re/')]",
  2136. redirectorTypes.HTTP_302,
  2137. null);
  2138. }
  2139. if (GM_getValue("Check_bit_dot_ly_links", false))
  2140. {
  2141. addRedirector(
  2142. 'bit\\.ly\/\\w+',
  2143. "//a[contains(@href,'bit.ly/')]",
  2144. redirectorTypes.HTTP_302,
  2145. null);
  2146. }
  2147. }
  2148.  
  2149. }
  2150.  
  2151. var bulkHosts = new Array();
  2152. var bulkHostNames = new Array();
  2153. function initBulkCheck()
  2154. {
  2155. /////////////////////////////
  2156. // Inits filehost object
  2157. /////////////////////////////
  2158. // params :
  2159. // hostName -- [string] host name (multiple domains separated with coma)
  2160. // linkRegex -- [string] link regex
  2161. // xpath -- [string] xpath expression to detect the link objects with evaluate
  2162. // blockSize -- [integer] max. number of links sent in one request, 50 if null
  2163. // corrMatch -- [regex] link correction regex (match), applied prior to corrRepl
  2164. // corrReplWhat -- [regex] link correction regex (replace)
  2165. // corrReplWith -- [string]
  2166. // splitSeparator -- [string] POSTDATA links separator, "\r\n" if null
  2167. //
  2168. // apiUrl -- [string] web linkchecker or API URL
  2169. // postData -- [string] POSTDATA of xmlhttprequest
  2170. // resLinkRegex -- [regex]
  2171. // resLiveRegex -- [regex] matches substrings containing live links in the request response
  2172. // resDeadRegex -- [regex] matches substrings containing dead links in the request response
  2173. // resUnavaRegex -- [regex] matches substrings containing unava links in the request response
  2174. // func -- [function] bulkcheck handler, genBulkCheck if null
  2175. //
  2176. //////////////////////////////
  2177. function addHost(hostName, linkRegex, xpath, blockSize, corrMatch, corrReplWhat, corrReplWith, splitSeparator,
  2178. apiUrl, postData, resLinkRegex, resLiveRegex, resDeadRegex, resUnavaRegex, func)
  2179. {
  2180. var fileHost = new Object();
  2181.  
  2182. fileHost.linkRegex = linkRegex;
  2183. fileHost.linkRegexObject = new RegExp(linkRegex, "");
  2184. fileHost.xpath = xpath;
  2185. fileHost.cFound = 0; //found links counter
  2186. fileHost.links = new Array(); //found links
  2187. if (blockSize == null)
  2188. {
  2189. fileHost.blockSize = 50;
  2190. }
  2191. else
  2192. {
  2193. fileHost.blockSize = blockSize;
  2194. }
  2195. fileHost.corrMatch = corrMatch;
  2196. fileHost.corrReplWhat = corrReplWhat;
  2197. fileHost.corrReplWith = corrReplWith;
  2198. if (splitSeparator == null)
  2199. {
  2200. fileHost.splitSeparator = "\r\n";
  2201. }
  2202. else
  2203. {
  2204. fileHost.splitSeparator = splitSeparator;
  2205. }
  2206. fileHost.apiUrl = apiUrl;
  2207. fileHost.postData = postData;
  2208. fileHost.resLinkRegex = resLinkRegex;
  2209. fileHost.resLiveRegex = resLiveRegex;
  2210. fileHost.resDeadRegex = resDeadRegex;
  2211. fileHost.resUnavaRegex = resUnavaRegex;
  2212. if (func == null)
  2213. {
  2214. fileHost.func = genBulkCheck;
  2215. }
  2216. else
  2217. {
  2218. fileHost.func = func;
  2219. }
  2220. bulkHosts.push(fileHost);
  2221. var names = hostName.split(',');
  2222. var i = names.length;
  2223. while(i--)
  2224. {
  2225. bulkHostNames[names[i]] = fileHost;
  2226. }
  2227. }
  2228. var genType1 = [
  2229. "migahost.com", "rodfile.com", "downloadani.me",
  2230. "rarefile.net",
  2231. "filesabc.com", "sharebeast.com",
  2232. "180upload.com", "verzend.be",
  2233. "movreel.com",
  2234. "4up.me",
  2235. "file4safe.com", "filemac.com", "4upfiles.com",
  2236. "idup.in", "novafile.com", "longfiles.com",
  2237. "bitupload.com",
  2238. "uploadbaz.com"
  2239. ];
  2240. var genType2 = [ "queenshare.com",
  2241. "hulkload.com",
  2242. "amonshare.com", "edoc.com",
  2243. ];
  2244. //xfilesharing 1.0
  2245. function addGenericType1()
  2246. {
  2247. var i = genType1.length;
  2248. while(i--)
  2249. {
  2250. if (GM_getValue("Check_" + genType1[i].replace(/\./g, "_dot_").replace(/-/g, "_dash_") + "_links", false))
  2251. {
  2252. var regexSafe = genType1[i].replace(/\./g, "\\.").replace(/-/g, "\\-");
  2253. addHost(
  2254. genType1[i].match(/[\w-]+/)[0], //hostname
  2255. regexSafe + "\/\\w+", //linkregex
  2256. "//a[contains(@href,'" + genType1[i] + "/')]", //xpath
  2257. null, //blocksize
  2258. new RegExp("(http:\/\/(?:|www\\.)" + regexSafe + "\/\\w+)",""),//, //corrmatch
  2259. null, //corrreplwhat
  2260. null, //corrreplwith
  2261. null, //separator
  2262. "http://" + genType1[i] + "/checkfiles.html", //api url
  2263. "op=checkfiles&process=Check+URLs&list=", //postdata
  2264. new RegExp("(" + regexSafe + "\/\\w+)",""), //linkregex
  2265. new RegExp("green'>http:\/\/(?:|www\.)" + regexSafe + "\/\\w+","g"), //liveregex
  2266. new RegExp("red'>http:\/\/(?:|www\.)" + regexSafe + "\/\\w+","g"), //deadregex
  2267. new RegExp("orange'>http:\/\/(?:|www\.)" + regexSafe + "\/\\w+","g"), //unavaregex
  2268. null //function delegate
  2269. )
  2270. }
  2271. }
  2272. }
  2273. //xfilesharing 2.0
  2274. function addGenericType2()
  2275. {
  2276. var i = genType2.length;
  2277. while(i--)
  2278. {
  2279. if (GM_getValue("Check_" + genType2[i].replace(/\./g, "_dot_").replace(/-/g, "_dash_") + "_links", false))
  2280. {
  2281. var regexSafe = genType2[i].replace(/\./g, "\\.").replace(/-/g, "\\-");
  2282. addHost(
  2283. genType2[i].match(/[\w-]+/)[0], //hostname
  2284. regexSafe + "\/\\w+", //linkregex
  2285. "//a[contains(@href,'" + genType2[i] + "/')]", //xpath
  2286. null, //blocksize
  2287. new RegExp("(http:\/\/(?:|www\\.)" + regexSafe + "\/\\w+)",""),//, //corrmatch
  2288. null, //corrreplwhat
  2289. null, //corrreplwith
  2290. null, //separator
  2291. "http://www." + genType2[i] + "/?op=checkfiles", //api url
  2292. "op=checkfiles&process=Check+URLs&list=", //postdata
  2293. new RegExp("(" + regexSafe + "\/\\w+)",""), //linkregex
  2294. new RegExp(regexSafe + "\/\\w+.*?<\/td>\\s*<td style=\"color:green;\">","g"), //liveregex
  2295. new RegExp(regexSafe + "\/\\w+.*?<\/td>\\s*<td style=\"color:red;\">","g"), //deadregex
  2296. new RegExp(regexSafe + "\/\\w+.*?<\/td>\\s*<td style=\"color:orange;\">","g"), //unavaregex
  2297. null //function delegate
  2298. )
  2299. }
  2300. }
  2301. }
  2302. // TEMPLATE
  2303. // if (GM_getValue("Check__dot_com_links", false))
  2304. // {
  2305. // addHost(
  2306. // "", //hostname
  2307. // "", //linkregex
  2308. // "//a[contains(@href,'.com/')]", //xpath
  2309. // null, //blocksize
  2310. // null, //corrmatch
  2311. // null, //corrreplwhat
  2312. // null, //corrreplwith
  2313. // null, //separator
  2314. // "", //api url
  2315. // "", //postdata
  2316. // /()/, //linkregex
  2317. // //liveregex
  2318. // //deadregex
  2319. // //unavaregex
  2320. // null //function delegate
  2321. // )
  2322. // }
  2323. addGenericType1();
  2324. addGenericType2();
  2325.  
  2326. if (GM_getValue("Check_myvdrive_dot_com_links", false))
  2327. {
  2328. addHost(
  2329. "myvdrive,fileserving", //hostname
  2330. "(?:fileserving|myvdrive)\\.com\/files\/[\\w-]+", //linkregex
  2331. "//a[contains(@href,'fileserving.com/files') or contains(@href,'myvdrive.com/files')]", //xpath
  2332. null, //blocksize
  2333. null, //corrmatch
  2334. null, //corrreplwhat
  2335. null, //corrreplwith
  2336. null, //separator
  2337. "http://www.myvdrive.com/Public/linkchecker#", //api url
  2338. "links=", //postdata
  2339. /(?:fileserving|myvdrive)\.com\/(files\/\w+)/, //linkregex
  2340. /icon_file_check_valid"><\/span>\s*http:\/\/www\.(?:fileserving|myvdrive)\.com\/files\/[\w-]+/g, //liveregex
  2341. /icon_file_check_(?:removed|notvalid)"><\/span>\s*http:\/\/www\.(?:fileserving|myvdrive)\.com\/files\/[\w-]+/g, //deadregex
  2342. null, //unavaregex
  2343. null //function delegate
  2344. )
  2345. }
  2346. if (GM_getValue("Check_hackerbox_dot_org_links", false))
  2347. {
  2348. addHost(
  2349. "hackerbox", //hostname
  2350. "host\\.hackerbox\\.org\/\\w+", //linkregex
  2351. "//a[contains(@href,'host.hackerbox.org/')]", //xpath
  2352. null, //blocksize
  2353. /(http:\/\/host\.hackerbox\.org\/\w+)/, //corrmatch
  2354. null, //corrreplwhat
  2355. null, //corrreplwith
  2356. null, //separator
  2357. "http://host.hackerbox.org/checkfiles.html", //api url
  2358. "op=checkfiles&process=Check+URLs&list=", //postdata
  2359. /(host\.hackerbox\.org\/\w+)/, //linkregex
  2360. /green'>http:\/\/host\.hackerbox\.org\/\w+/g, //liveregex
  2361. /red'>http:\/\/host\.hackerbox\.org\/\w+/g, //deadregex
  2362. /orange'>http:\/\/host\.hackerbox\.org\/\w+/g, //unavaregex
  2363. null //function delegate
  2364. )
  2365. }
  2366. if (GM_getValue("Check_hellshare_dot_com_links", false))
  2367. {
  2368. addHost(
  2369. "hellshare", //hostname
  2370. "(?:|download\\.(?:cz\\.|en\\.|sk\\.|)|www\\.)hellshare\\.(?:com|sk|cz|pl|hu|COM|SK|CZ|PL|HU)\/[\\w-\\.]+\/(?:[\\w-\\.]+\/|)\\d{5,}", //linkregex
  2371. "//a[contains(@href,'hellshare.')]", //xpath
  2372. 48, //blocksize
  2373. null, //corrmatch
  2374. null, //corrreplwhat
  2375. null, //corrreplwith
  2376. null, //separator
  2377. null, //api url
  2378. null, //postdata
  2379. null, //linkregex
  2380. null, //liveregex
  2381. null, //deadregex
  2382. null, //unavaregex
  2383. hellshareBulkCheck //function delegate
  2384. )
  2385. }
  2386. if (GM_getValue("Check_ncrypt_dot_in_links", false))
  2387. {
  2388. addHost(
  2389. "ncrypt", //hostname
  2390. "ncrypt\\.in\/folder\\-\\w+", //linkregex
  2391. "//a[contains(@href,'ncrypt.in/folder')]", //xpath
  2392. 100000, //blocksize
  2393. null, //corrmatch
  2394. null, //corrreplwhat
  2395. null, //corrreplwith
  2396. null, //separator
  2397. null,
  2398. null,
  2399. null,
  2400. null,
  2401. null,
  2402. null,
  2403. ncryptBulkCheck //function delegate
  2404. )
  2405. }
  2406. if (GM_getValue("Check_geupload_dot_com_links", false))
  2407. {
  2408. addHost(
  2409. "geupload,lenfile", //hostname
  2410. "(?:geupload\\.com|lenfile\\.com)\/\\w+", //linkregex
  2411. "//a[contains(@href,'geupload.com/') or contains(@href,'lenfile.com/')]", //xpath
  2412. null, //blocksize
  2413. null, //corrmatch
  2414. null, //corrreplwhat
  2415. null, //corrreplwith
  2416. "\n", //separator
  2417. 'http://geupload.com/?op=checkfiles',
  2418. 'op=checkfiles&process=Check+URLs&list=',
  2419. />http:\/\/(?:geupload|lenfile)\.com\/(\w+)/,
  2420. />http:\/\/(?:geupload|lenfile)\.com\/\w+(?:[^>]+>)<td style=\"color\:green/g,
  2421. />http:\/\/(?:geupload|lenfile)\.com\/\w+(?:[^>]+>)<td style=\"color\:red/g,
  2422. null,
  2423. null
  2424. )
  2425. }
  2426. if (GM_getValue("Check_filepost_dot_com_links", false))
  2427. {
  2428. addHost(
  2429. "filepost,fp", //hostname
  2430. "(?:filepost\\.com\/files|fp\\.io)\/\\w+", //linkregex
  2431. "//a[contains(@href,'filepost.com/files/') or contains(@href,'fp.io/')]", //xpath
  2432. null, //blocksize
  2433. null, //corrmatch
  2434. null, //corrreplwhat
  2435. null, //corrreplwith
  2436. "\n", //separator
  2437. 'http://filepost.com/files/checker/?JsHttpRequest=0-xml',
  2438. 'urls=',
  2439. /\\\/files\\\/(\w+)/,
  2440. />http:\\\/\\\/filepost\.com\\\/files\\\/\w+(?:[^>]+>){5}(?:\\n|\\t)+<span class=\\"v\\"/g,
  2441. />http:\\\/\\\/filepost\.com\\\/files\\\/\w+(?:[^>]+>){5}(?:\\n|\\t)+<span class=\\"x\\"/g,
  2442. null,
  2443. null //function delegate
  2444. )
  2445. }
  2446. if (GM_getValue("Check_filesflash_dot_com_links", false))
  2447. {
  2448. addHost(
  2449. "filesflash", //hostname
  2450. "filesflash\\.com\/\\w+", //linkregex
  2451. "//a[contains(@href,'filesflash.com')]", //xpath
  2452. null, //blocksize
  2453. null, //corrmatch
  2454. /http:\/\//, //corrreplwhat
  2455. '', //corrreplwith
  2456. null, //separator
  2457. 'http://filesflash.com/checklinks.php',
  2458. 'submit=Go&links=',
  2459. /filesflash\.com\/(\w+)/,
  2460. /<td>filesflash\.com\/\w+<\/td>\s*<td>Available/g,
  2461. /<td>filesflash\.com\/\w+<\/td>\s*<td>(?:Invalid|Deleted|Expired|Banned)?<\/td>/g,
  2462. null,
  2463. null //function delegate
  2464. )
  2465. }
  2466. if (GM_getValue("Check_jumbofiles_dot_com_links", false))
  2467. {
  2468. addHost(
  2469. "jumbofiles", //hostname
  2470. "jumbofiles\\.com\/\\w+", //linkregex
  2471. "//a[contains(@href,'jumbofiles.com/')]", //xpath
  2472. null, //blocksize
  2473. /(http:\/\/(?:|www\.)jumbofiles\.com\/\w+)/, //corrmatch
  2474. null, //corrreplwhat
  2475. null, //corrreplwith
  2476. null, //separator
  2477. "http://jumbofiles.com/checkfiles.html", //api url
  2478. "op=checkfiles&process=Check+URLs&list=", //postdata
  2479. /(jumbofiles\.com\/\w+)/, //linkregex
  2480. /blue'>http:\/\/(?:|www\.)jumbofiles\.com\/\w+/g, //liveregex
  2481. /red'>http:\/\/(?:|www\.)jumbofiles\.com\/\w+/g, //deadregex
  2482. /orange'>http:\/\/(?:|www\.)jumbofiles\.com\/\w+/g, //unavaregex
  2483. null //function delegate
  2484. )
  2485. }
  2486. if (GM_getValue("Check_edisk_dot_cz_links", false))
  2487. {
  2488. addHost(
  2489. "edisk", //hostname
  2490. "(?:(?:muj|data)\\d*\\.|)edisk\\.(?:cz|sk|eu)\/(?:|(?:cz|sk|en|pl)\/)", //linkregex
  2491. "//a[contains(@href,'edisk.')]", //xpath
  2492. null, //blocksize
  2493. null, //corrmatch
  2494. /edisk\.\w{2}\/(?:|\w{2}\/)stahni/, //corrreplwhat
  2495. 'edisk.cz/stahni', //corrreplwith
  2496. null, //separator
  2497. 'http://www.edisk.cz/zkontrolovat-odkazy',
  2498. 'submitBtn=Zkontrolovat&checkFiles=',
  2499. /((?:download|stahn(?:i|out-soubor))\/\d+)/,
  2500. /"ano"\/>\s*<\/td>\s*<td>\s*http:\/\/.+/g,
  2501. /"ne"\/>\s*<\/td>\s*<td>\s*http:\/\/.+/g,
  2502. null,
  2503. null //function delegate
  2504. )
  2505. }
  2506. if (GM_getValue("Check_bezvadata_dot_cz_links", false))
  2507. {
  2508. GM_xmlhttpRequest( //age check skip
  2509. {
  2510. method: 'POST',
  2511. url: 'http://bezvadata.cz/vyhledavani/souhlas-zavadny-obsah',
  2512. headers: {
  2513. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  2514. 'Content-type': 'application/x-www-form-urlencoded',
  2515. 'Referer': ""
  2516. }
  2517. });
  2518. addHost(
  2519. "bezvadata", //hostname
  2520. "(?:beta\\.|)bezvadata\.cz\/stahnout\/\\d+\\w+", //linkregex
  2521. "//a[contains(@href,'bezvadata.cz')]", //xpath
  2522. null, //blocksize
  2523. null, //corrmatch
  2524. null, //corrreplwhat
  2525. null, //corrreplwith
  2526. null, //separator
  2527. 'http://bezvadata.cz/nastroje/kontrola-odkazu?do=kontrolaOdkazuForm-submit',
  2528. 'zkontrolovat=Zkontrolovat&odkazy=',
  2529. /(bezvadata\.cz\/stahnout\/\d+)/,
  2530. /bezvadata\.cz\/stahnout\/.+?<\/td>\s*<td style="background-color: #d9ffb2/g,
  2531. /bezvadata\.cz\/stahnout\/.+?<\/td>\s*<td style="background-color: #ffb2b2/g,
  2532. null,
  2533. null //function delegate
  2534. )
  2535. }
  2536. if (GM_getValue("Check_linkcrypt_dot_ws_links", false))
  2537. {
  2538. addHost(
  2539. "linkcrypt", //hostname
  2540. "linkcrypt\\.ws\/dir\/\\w+", //linkregex
  2541. "//a[contains(@href,'linkcrypt.ws/dir')]", //xpath
  2542. 100000, //blocksize
  2543. null, //corrmatch
  2544. null, //corrreplwhat
  2545. null, //corrreplwith
  2546. null, //separator
  2547. null,
  2548. null,
  2549. null,
  2550. null,
  2551. null,
  2552. null,
  2553. linkcryptBulkCheck //function delegate
  2554. )
  2555. }
  2556. if (GM_getValue("Check_linksave_dot_in_links", false))
  2557. {
  2558. addHost(
  2559. "linksave", //hostname
  2560. "linksave\\.in\/\\w+", //linkregex
  2561. "//a[contains(@href,'linksave.in')]", //xpath
  2562. 100000, //blocksize
  2563. null, //corrmatch
  2564. null, //corrreplwhat
  2565. null, //corrreplwith
  2566. null, //separator
  2567. null,
  2568. null,
  2569. null,
  2570. null,
  2571. null,
  2572. null,
  2573. linksaveBulkCheck //function delegate
  2574. )
  2575. }
  2576. if (GM_getValue("Check_videobb_dot_com_links", false))
  2577. {
  2578. addHost(
  2579. "videobb", //hostname
  2580. "videobb\\.com\/(?:video\/|watch_video\\.php\\?v=)\\w+", //linkregex
  2581. "//a[contains(@href,'videobb.com')]", //xpath
  2582. null, //blocksize
  2583. null, //corrmatch
  2584. /watch_video\.php\?v=/, //corrreplwhat
  2585. 'video/', //corrreplwith
  2586. null, //separator
  2587. 'http://www.videobb.com/link_checker.php',
  2588. 'links=',
  2589. /videobb\.com\/video\/(\w+)/,
  2590. /<td>http:\/\/(?:www\.|)videobb.com\/video\/\w+<\/td>\s+<td>.+?<\/td>\s+<td>\d+:\d+<\/td>\s+<td>Available/g,
  2591. /<td>http:\/\/(?:www\.|)videobb.com\/video\/\w+<\/td>\s+<td><\/td>\s+<td>N\/A<\/td>\s+<td>Not Available/g,
  2592. null,
  2593. null //function delegate
  2594. )
  2595. }
  2596. if (GM_getValue("Check_cramit_dot_in_links", false))
  2597. {
  2598. addHost(
  2599. "cramit,cramitin", //hostname
  2600. "cramit(?:\\.in|in\\.net)\/", //linkregex
  2601. "//a[contains(@href,'cramitin.net') or contains(@href,'cramit.in')]", //xpath
  2602. null, //blocksize
  2603. null, //corrmatch
  2604. null, //corrreplwhat
  2605. null, //corrreplwith
  2606. null, //separator
  2607. 'http://cramit.in/checkfiles.html',
  2608. 'op=checkfiles&process=CHECK+URL%27S&list=',
  2609. /(cramit(?:\.in|in\.net)\/\w+)/,
  2610. /green>http:\/\/(?:www\.|)cramit(?:\.in|in\.net)\/\w+/g,
  2611. /red'>http:\/\/(?:www\.|)cramit(?:\.in|in\.net)\/\w+/g,
  2612. /orange'>http:\/\/(?:www\.|)cramit(?:\.in|in\.net)\/\w+/g,
  2613. null //function delegate
  2614. )
  2615. }
  2616. if (GM_getValue("Check_turbobit_dot_net_links", false))
  2617. {
  2618. addHost(
  2619. "turbobit", //hostname
  2620. "turbobit\\.(?:net|pl)\/(?:\\w+\/|).+?\\.html", //linkregex
  2621. "//a[contains(@href,'turbobit.')]", //xpath
  2622. null, //blocksize
  2623. /(turbobit\.(?:net|pl)\/(?:\w+\/|).+?\.html)/, //corrmatch
  2624. null, //corrreplwhat
  2625. null, //corrreplwith
  2626. "\n", //separator
  2627. 'http://turbobit.net/linkchecker/csv',
  2628. 'links_to_check=',
  2629. /(turbobit\.(?:net|pl)\/\w+)/,
  2630. /turbobit\.(?:net|pl)\/.*?, 1/g,
  2631. /turbobit\.(?:net|pl)\/.*?, 0/g,
  2632. null,
  2633. null //function delegate
  2634. )
  2635. }
  2636. if (GM_getValue("Check_filerio_dot_com_links", false))
  2637. {
  2638. addHost(
  2639. "filekeen,filerio", //hostname
  2640. //"file(?:keen|rio)\\.(?:com|in)\/\\w+\/.", //linkregex
  2641. "file(?:keen|rio)\\.(?:com|in)\/\\w+", //linkregex
  2642. "//a[contains(@href,'filekeen.com') or contains(@href,'filerio.')]", //xpath
  2643. null, //blocksize
  2644. null, //corrmatch
  2645. null, //corrreplwhat
  2646. null, //corrreplwith
  2647. null, //separator
  2648. 'http://filerio.in/checkfiles.html',
  2649. 'op=checkfiles&process=Check+URLs&list=',
  2650. /(file(?:keen|rio)\.(?:com|in)\/\w+)/,
  2651. /green'>http:\/\/(?:www\.|)file(?:keen|rio)\.(?:com|in)\/\w+/g,
  2652. /red'>http:\/\/(?:www\.|)file(?:keen|rio)\.(?:com|in)\/\w+/g,
  2653. /orange'>http:\/\/(?:www\.|)file(?:keen|rio)\.(?:com|in)\/\w+/g,
  2654. null //function delegate
  2655. )
  2656. }
  2657. if (GM_getValue("Check_share_dash_online_dot_biz_links", false))
  2658. {
  2659. addHost(
  2660. "share-online,egoshare", //hostname
  2661. "(?:share-online\\.biz|egoshare\\.com)\/(?:dl\/|download\\.php\\?id=)", //linkregex
  2662. "//a[contains(@href,'share-online.biz') or contains(@href,'egoshare.com')]", //xpath
  2663. null, //blocksize
  2664. /http:\/\/(?:www\.)?(?:share-online\.biz|egoshare\.com)\/d(?:l\/|ownload\.php\?id=)(\w+)/, //corrmatch
  2665. null, //corrreplwhat
  2666. null, //corrreplwith
  2667. "\n", //separator
  2668. 'http://api.share-online.biz/linkcheck.php',
  2669. 'links=',
  2670. /(\w+);(?:OK|NOTFOUND|DELETED)/,
  2671. /\w+;OK/g,
  2672. /\w+;(?:NOTFOUND|DELETED)/g,
  2673. null,
  2674. null //function delegate
  2675. )
  2676. }
  2677. if (GM_getValue("Check_quickshare_dot_cz_links", false))
  2678. {
  2679. addHost(
  2680. "quickshare", //hostname
  2681. "quickshare\\.cz\/stahnout-soubor\/\\d+", //linkregex
  2682. "//a[contains(@href,'quickshare.cz')]", //xpath
  2683. null, //blocksize
  2684. null, //corrmatch
  2685. null, //corrreplwhat
  2686. null, //corrreplwith
  2687. null, //separator
  2688. 'http://www.quickshare.cz/nastroje/link-checker',
  2689. 'linky=',
  2690. /quickshare\.cz\/stahnout-soubor\/(\d+(?::\w+)?)/,
  2691. /quickshare\.cz\/stahnout-soubor\/\d+(?::[\w\-.+$!*\/()\[\]\',~%?:@#&=\\]+)?\s*<\/a><\/td><td><img src="\/img\/ok\.gif/g,
  2692. /quickshare\.cz\/stahnout-soubor\/\d+(?::[\w\-.+$!*\/()\[\]\',~%?:@#&=\\]+)?\s*<\/td><td><img src="\/img\/nenalezeno\.gif/g,
  2693. null,
  2694. null //function delegate
  2695. )
  2696. }
  2697. if (GM_getValue("Check_netload_dot_in_links", false))
  2698. {
  2699. addHost(
  2700. "netload", //hostname
  2701. "netload\\.in\/datei\\w{10}", //linkregex
  2702. "//a[contains(@href,'netload.in')]", //xpath
  2703. null, //blocksize
  2704. null, //corrmatch
  2705. null, //corrreplwhat
  2706. null, //corrreplwith
  2707. "\n", //separator
  2708. "http://api.netload.in/index.php?id=2", //api url
  2709. "send=Absenden&links=", //postdata
  2710. /(\w+);/, //linkregex
  2711. /\w{10,};.+?;.+?;online/g, //liveregex
  2712. /\w{10,};.+?;.+?;offline/g, //deadregex
  2713. null, //unavaregex
  2714. //netloadBulkCheck //function delegate //disabled on probation since 1.2.4.5
  2715. null //function delegate
  2716. )
  2717. }
  2718. if (GM_getValue("Check_oboom_dot_com_links", false))
  2719. {
  2720. addHost(
  2721. "oboom", //hostname
  2722. "oboom\\.com\/#?\\w{8}", //linkregex
  2723. "//a[contains(@href,'oboom.com/')]", //xpath
  2724. null, //blocksize
  2725. /oboom\.com\/#?(\w{8})/, //corrmatch
  2726. null, //corrreplwhat
  2727. null, //corrreplwith
  2728. null, //separator
  2729. null,
  2730. null,
  2731. null,
  2732. null, //liveregex
  2733. null, //deadregex
  2734. null,
  2735. oboomBulk //function delegate
  2736. )
  2737. }
  2738. if (GM_getValue("Check_mega_dot_co_dot_nz_links", false))
  2739. {
  2740. addHost(
  2741. "mega",
  2742. "mega(?:\\.co)?\\.nz\/#!\\w+",
  2743. "//a[contains(@href,'mega.co.nz/') or contains(@href,'mega.nz/')]",
  2744. 100000, //blocksize
  2745. null, //corrmatch
  2746. null, //corrreplwhat
  2747. null, //corrreplwith
  2748. null, //separator
  2749. null,
  2750. null,
  2751. null,
  2752. null,
  2753. null,
  2754. null,
  2755. megaBulkCheck //function delegate
  2756. )
  2757. }
  2758.  
  2759. //the same as GenType2, except api url is 'https://' instead of 'http://www.' and corrmatch is not??? needed
  2760.  
  2761. if (GM_getValue("Check_extabit_dot_com_links", false))
  2762. {
  2763. addHost(
  2764. "extabit", //hostname
  2765. "extabit\\.com\/file\/\\w+", //linkregex
  2766. "//a[contains(@href,'extabit.com')]", //xpath
  2767. null, //blocksize
  2768. null, //corrmatch
  2769. null, //corrreplwhat
  2770. null, //corrreplwith
  2771. "\n", //separator
  2772. "http://extabit.com/linkchecker.jsp", //api url
  2773. "url=", //postdata
  2774. /extabit\.com\/(file\/\w+)/, //linkregex
  2775. /extabit\.com\/file\/\w+\/[^<]+<\/a><\/td>\s*<td class="status"><span class="status_green">/g, //liveregex
  2776. /extabit\.com\/file\/\w+\/[^<]+<\/a><\/td>\s*<td class="status"><span class="status_red">/g, //deadregex
  2777. /extabit\.com\/file\/\w+\/[^<]+<\/a><\/td>\s*<td class="status"><span class="status_yellow">/g, //unavaregex
  2778. extabitBulkCheck //function delegate
  2779. )
  2780. }
  2781. if (GM_getValue("Check_junocloud_dot_me_links", false))
  2782. {
  2783. addHost(
  2784. "junocloud", //hostname
  2785. "junocloud\\.me\/\\w+", //linkregex
  2786. "//a[contains(@href,'junocloud.me')]", //xpath
  2787. null, //blocksize
  2788. null, //corrmatch
  2789. null, //corrreplwhat
  2790. null, //corrreplwith
  2791. "\n", //separator
  2792. "http://junocloud.me/checkfiles.html", //api url
  2793. "op=checkfiles&process=Check+URLs&list=", //postdata
  2794. /(junocloud\.me\/\w+)/, //linkregex
  2795. /<a href="http:\/\/junocloud\.me\/\w+[^<]+<\/a>\s*<span style="color: green/g, //liveregex
  2796. /<a href="http:\/\/junocloud\.me\/\w+[^<]+<\/a>\s*<span style="color: red/g, //deadregex
  2797. null, //unavaregex
  2798. null //function delegate
  2799. )
  2800. }
  2801. if (GM_getValue("Check_webshare_dot_cz_links", false))
  2802. {
  2803. addHost(
  2804. "webshare", //hostname
  2805. "webshare\.cz\/(?:(?:#/)?file/\\w+|\\w+-.*)", //linkregex
  2806. "//a[contains(@href,'webshare.cz')]", //xpath
  2807. 100000, //blocksize
  2808. null, //corrmatch
  2809. null, //corrreplwhat
  2810. null, //corrreplwith
  2811. null, //separator
  2812. null, //api url
  2813. null, //postdata
  2814. null, //linkregex
  2815. null, //liveregex
  2816. null, //deadregex
  2817. null, //unavaregex
  2818. webshareBulkCheck //function delegate
  2819. )
  2820. }
  2821. /////////////////////////////
  2822. // Common function delegate to send links to get checked by host linkchecker
  2823. /////////////////////////////
  2824. // If you define a new delegate, you may use following properties
  2825. // this.links [array] array of strings (link blocks). The links in each block separated with host.splitSeparator.
  2826. // this.apiUrl [string] API or web linkchecker URL
  2827. // this.postData [string] POSTDATA for POST request
  2828. // this.resLiveRegex [regex] matches live substrings in the request response
  2829. // this.resDeadRegex [regex] matches dead substrings in the request response
  2830. // this.resUnavaRegex [regex] matches unava substrings in the request response (the regex is often null!)
  2831. //
  2832. // this.resLinkRegex [regex] matches links further passed to DisplayTheCheckedLinks
  2833. //
  2834. // See the code below for standard bulkcheck handling reference.
  2835. //////////////////////////////
  2836. function genBulkCheck()
  2837. {
  2838. var blockIdx = this.links.length;
  2839. while (blockIdx--)
  2840. {
  2841. postRequest(this.apiUrl, this.postData, this.links[blockIdx],
  2842. this.resLinkRegex, this.resLiveRegex, this.resDeadRegex, this.resUnavaRegex);
  2843. }
  2844. function postRequest(api, postData, links, linkRegex, liveRegex, deadRegex, unavaRegex)
  2845. {
  2846. GM_xmlhttpRequest(
  2847. {
  2848. method: 'POST',
  2849. url: api,
  2850. headers: {
  2851. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  2852. 'Content-type': 'application/x-www-form-urlencoded',
  2853. 'Referer': api,
  2854. 'X-Requested-With': 'XMLHttpRequest'
  2855. },
  2856. data: postData + encodeURIComponent(links),
  2857. onload: function (result)
  2858. {
  2859. var res = result.responseText;
  2860. // GM_log(res);
  2861. var i;
  2862.  
  2863. var livelinks = res.match(liveRegex);
  2864. var deadlinks = res.match(deadRegex);
  2865. // GM_log(livelinks);
  2866. // GM_log(deadlinks);
  2867. if (livelinks != null)
  2868. {
  2869. i = livelinks.length - 1;
  2870. do
  2871. {
  2872. livelinks[i] = livelinks[i].match(linkRegex)[1];
  2873. }
  2874. while (i--);
  2875. DisplayTheCheckedLinks(livelinks, 'alive_link');
  2876. }
  2877.  
  2878. if (deadlinks != null)
  2879. {
  2880. i = deadlinks.length - 1;
  2881. do
  2882. {
  2883. deadlinks[i] = deadlinks[i].match(linkRegex)[1];
  2884. }
  2885. while (i--);
  2886. DisplayTheCheckedLinks(deadlinks, 'adead_link');
  2887. }
  2888.  
  2889. if (unavaRegex != null)
  2890. {
  2891. var unavalinks = res.match(unavaRegex);
  2892. if (unavalinks)
  2893. {
  2894. i = unavalinks.length - 1;
  2895. do
  2896. {
  2897. unavalinks[i] = unavalinks[i].match(linkRegex)[1];
  2898. }
  2899. while (i--);
  2900. DisplayTheCheckedLinks(unavalinks, 'unava_link');
  2901. }
  2902. }
  2903. }
  2904. });
  2905. }
  2906. }
  2907. //specialized bulkchecking handlers follow
  2908. function webshareBulkCheck()
  2909. {
  2910. var arr = this.links[0].split("\r\n");
  2911. var i = arr.length;
  2912. while(i--)
  2913. {
  2914. postRequest(arr[i]);
  2915. }
  2916. //function postRequest(api, postData, links, linkRegex, liveRegex, deadRegex, unavaRegex)
  2917. function postRequest(wsLink)
  2918. {
  2919. var id = wsLink.match(/webshare\.cz\/(?:(?:#\/)?file\/)?(\w+)/)[1];
  2920. GM_xmlhttpRequest(
  2921. {
  2922. method: 'POST',
  2923. url: "http://webshare.cz/api/file_info/",
  2924. headers: {
  2925. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  2926. 'Content-type': 'application/x-www-form-urlencoded',
  2927. 'Referer': "",
  2928. },
  2929. data: "wst=&ident=" + id,
  2930. onload: function (result)
  2931. {
  2932. var res = result.responseText;
  2933. if (res.match(/<name>.+?<\/name>/))
  2934. {
  2935. DisplayTheCheckedLinks([id], 'alive_link');
  2936. }
  2937. else
  2938. {
  2939. DisplayTheCheckedLinks([id], 'adead_link');
  2940. }
  2941. }
  2942. });
  2943. }
  2944. }
  2945. //like genBulkCheck, but extabit linkchecker only works when logged in. If not logged in, non-bulk checking has to be used.
  2946. //extabit also doesn't like requests in fast succession, so some delays are added.
  2947. function extabitBulkCheck()
  2948. {
  2949. var timeoutDelay = 0;
  2950. var blockIdx = this.links.length;
  2951. while (blockIdx--)
  2952. {
  2953. postRequest(this.apiUrl, this.postData, this.links[blockIdx],
  2954. this.resLinkRegex, this.resLiveRegex, this.resDeadRegex, this.resUnavaRegex);
  2955. }
  2956. function postRequest(api, postData, links, linkRegex, liveRegex, deadRegex, unavaRegex)
  2957. {
  2958. GM_xmlhttpRequest(
  2959. {
  2960. method: 'POST',
  2961. url: api,
  2962. headers: {
  2963. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  2964. 'Content-type': 'application/x-www-form-urlencoded',
  2965. 'Referer': api,
  2966. 'X-Requested-With': 'XMLHttpRequest'
  2967. },
  2968. data: postData + encodeURIComponent(links),
  2969. onload: function (result)
  2970. {
  2971. var res = result.responseText;
  2972. if (/id="registration_header"/.test(res)) //not logged in, have to use non-bulk
  2973. {
  2974. function geturlfunc(link, tryID) //basically the geturl function with some changes (compacted, displaythecheckedlinkS, multiple tries)
  2975. {
  2976. //GM_log(tryID + ': ' + link);
  2977. GM_xmlhttpRequest(
  2978. {
  2979. method: 'GET',
  2980. url: link,
  2981. 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': ""},
  2982. onload: function(result2)
  2983. {
  2984. var res2 = result2.responseText;
  2985. var res2Status = result.status;
  2986. if (/download-file-btn/.test(res2)) {DisplayTheCheckedLinks([link], 'alive_link'); return;}
  2987. if (/Search mirrors|id="mirrb"/.test(res2) || res2Status==404) {DisplayTheCheckedLinks([link], 'adead_link'); return;}
  2988. if (/currently unavailable|temporarily unavailable|disponible en estos momentos|vorläufig unerreichbar|Файл временно недоступен/.test(res2) || res2Status == 500 || res2Status == 503)
  2989. {
  2990. if (tryID < 7)
  2991. setTimeout(function(){geturlfunc(link,tryID+1)}, tryID * 1000 + (Math.random() * tryID * 2000));
  2992. else
  2993. {DisplayTheCheckedLinks([link], 'unava_link'); return;}
  2994. }
  2995. }
  2996. });
  2997. }
  2998. //split the hrefs and check them one by one
  2999. GM_log('Using slow extabit.com link checking. Log in to extabit to use fast bulk checking.');
  3000. links = links.split('\n');
  3001. var i = links.length;
  3002. while (i--)
  3003. {
  3004. if (links[i])
  3005. {
  3006. (function(i){setTimeout(function(){geturlfunc(links[i],1)}, timeoutDelay);})(i);
  3007. timeoutDelay += 500;
  3008. }
  3009. }
  3010. return;
  3011. }
  3012. var i;
  3013.  
  3014. var livelinks = res.match(liveRegex);
  3015. var deadlinks = res.match(deadRegex);
  3016. if (livelinks != null)
  3017. {
  3018. i = livelinks.length - 1;
  3019. do
  3020. {
  3021. livelinks[i] = livelinks[i].match(linkRegex)[1];
  3022. }
  3023. while (i--);
  3024. DisplayTheCheckedLinks(livelinks, 'alive_link');
  3025. }
  3026.  
  3027. if (deadlinks != null)
  3028. {
  3029. i = deadlinks.length - 1;
  3030. do
  3031. {
  3032. deadlinks[i] = deadlinks[i].match(linkRegex)[1];
  3033. }
  3034. while (i--);
  3035. DisplayTheCheckedLinks(deadlinks, 'adead_link');
  3036. }
  3037.  
  3038. if (unavaRegex != null)
  3039. {
  3040. var unavalinks = res.match(unavaRegex);
  3041. if (unavalinks)
  3042. {
  3043. i = unavalinks.length - 1;
  3044. do
  3045. {
  3046. unavalinks[i] = unavalinks[i].match(linkRegex)[1];
  3047. }
  3048. while (i--);
  3049. DisplayTheCheckedLinks(unavalinks, 'unava_link');
  3050. }
  3051. }
  3052. }
  3053. });
  3054. }
  3055. }
  3056. function netloadBulkCheck()
  3057. {
  3058. var blockIdx = this.links.length;
  3059.  
  3060. while (blockIdx--)
  3061. {
  3062. postRequest(this.apiUrl, this.postData, this.links[blockIdx],
  3063. this.resLinkRegex, this.resLiveRegex, this.resDeadRegex, this.unavaRegex);
  3064. }
  3065. function postRequest(api, postData, links, linkRegex, liveRegex, deadRegex, unavaRegex)
  3066. {
  3067. GM_xmlhttpRequest(
  3068. {
  3069. method: 'POST',
  3070. url: api,
  3071. headers: {
  3072. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  3073. 'Content-type': 'application/x-www-form-urlencoded',
  3074. 'Referer': ""
  3075. },
  3076. data: postData + encodeURIComponent(links),
  3077. onload: function (result)
  3078. {
  3079. var res = result.responseText;
  3080. var i;
  3081.  
  3082. var livelinks = res.match(liveRegex);
  3083. var deadlinks = res.match(deadRegex);
  3084. if (livelinks != null)
  3085. {
  3086. i = livelinks.length - 1;
  3087. do
  3088. {
  3089. recheckLink(livelinks[i].match(linkRegex)[1]);
  3090. }
  3091. while(i--);
  3092. }
  3093.  
  3094. if (deadlinks != null)
  3095. {
  3096. i = deadlinks.length - 1;
  3097. do
  3098. {
  3099. deadlinks[i] = deadlinks[i].match(linkRegex)[1];
  3100. }
  3101. while (i--);
  3102. DisplayTheCheckedLinks(deadlinks, 'adead_link');
  3103. }
  3104. }
  3105. });
  3106. }
  3107. function recheckLink(link)
  3108. {
  3109. var link = link;
  3110. GM_xmlhttpRequest(
  3111. {
  3112. method: 'GET',
  3113. url: 'http://netload.in/datei' + link + '.htm',
  3114. headers: {
  3115. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3116. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  3117. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  3118. 'Referer': ""
  3119. },
  3120. onload: function (result)
  3121. {
  3122. var res = result.responseText;
  3123.  
  3124. if (res.match(/dl_first_file_download">|download_limit\.gif/))
  3125. {
  3126. DisplayTheCheckedLinks([link], 'alive_link');
  3127. return;
  3128. }
  3129.  
  3130. if (res.match(/achtung\.jpg"/))
  3131. {
  3132. DisplayTheCheckedLinks([link], 'adead_link');
  3133. }
  3134. },
  3135. onerror: function ()
  3136. {
  3137. displayTheCheckedLink(link, 'unava_link');
  3138. }
  3139. });
  3140. }
  3141. }
  3142.  
  3143. function megaBulkCheck()
  3144. {
  3145. var arr = this.links[0].split("\r\n");
  3146. var i = arr.length;
  3147. var seqno = Math.floor(Math.random()*1000000000);
  3148. while(i--)
  3149. {
  3150. postRequest(arr[i]);
  3151. }
  3152. function postRequest(megaLink)
  3153. {
  3154. megaLink=megaLink.replace('mega.nz/','mega.co.nz/');
  3155. var id = megaLink.match(/mega\.co\.nz\/#!(\w+)(?:!\w+)?/)[1];
  3156. GM_xmlhttpRequest(
  3157. {
  3158. method: "POST",
  3159. url: 'https://g.api.mega.co.nz/cs?id=' + seqno++,
  3160. data: '[{"a":"g","p":"' + id + '","ssl": "1"}]',
  3161. headers: {
  3162. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3163. 'Content-Type': 'application/xml',
  3164. 'Referer': "https://mega.co.nz/"
  3165. },
  3166. onload: function (result)
  3167. {
  3168. var res = $.parseJSON(result.responseText.match(/\[(.+?)\]/)[1]);
  3169. if ((typeof res == "number" && (res == -9 || res == -16 || res == -6)) || res.d)
  3170. {
  3171.  
  3172. DisplayTheCheckedLinks([id], 'adead_link');
  3173. }
  3174. if (res.at)
  3175. {
  3176. DisplayTheCheckedLinks([id], 'alive_link');
  3177. }
  3178. if (res.e == "ETEMPUNAVAIL")
  3179. {
  3180. DisplayTheCheckedLinks([id], 'unava_link');
  3181. }
  3182. }
  3183. });
  3184. }
  3185.  
  3186. }
  3187.  
  3188. function oboomBulk() {
  3189. var a = [], b = [], c = [];
  3190. var array = this.links;
  3191.  
  3192. GM_xmlhttpRequest({
  3193. method: 'GET',
  3194. url: 'https://www.oboom.com/1/guestsession',
  3195. headers: {
  3196. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  3197. 'Content-type': 'application/x-www-form-urlencoded',
  3198. 'Referer': 'https://www.oboom.com',
  3199. 'X-Requested-With': 'XMLHttpRequest'
  3200. },
  3201. onload: function(result) {
  3202. var blockIdx = array.length;
  3203. var token = JSON.parse(result.responseText)[1];
  3204. while (blockIdx--) {
  3205. startCheck(array[blockIdx].split('\r\n'), token);
  3206. }
  3207. }
  3208. });
  3209.  
  3210. function startCheck(links, token) {
  3211. GM_xmlhttpRequest({
  3212. method: 'POST',
  3213. url: "https://api.oboom.com/1/info",
  3214. headers: {
  3215. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  3216. 'Content-type': 'application/x-www-form-urlencoded',
  3217. 'Referer': 'https://www.oboom.com/',
  3218. 'X-Requested-With': 'XMLHttpRequest'
  3219. },
  3220. data: "token=" + token + "&items=" + links.join(","),
  3221. onload: function(result) {
  3222. var res = JSON.parse(result.responseText)[1];
  3223. var i = res.length, s;
  3224.  
  3225. while (i--) {
  3226. s = res[i].state;
  3227. if (s == 'online') a.push(res[i].id);
  3228. else if (s == 'blocked' || s == 'abused' || s == 'lost' || s == 'not_found' || s == 'not_available'|| s == 'download_error' || s == 'offline' ) b.push(res[i].id);
  3229. else c.push(res[i].id);
  3230. }
  3231.  
  3232. if (a.length > 0) DisplayTheCheckedLinks(a, 'alive_link');
  3233. if (b.length > 0) DisplayTheCheckedLinks(b, 'adead_link');
  3234. if (c.length > 0) DisplayTheCheckedLinks(c, 'unava_link');
  3235. }
  3236. });
  3237. }
  3238. }
  3239. function linksaveBulkCheck()
  3240. {
  3241. var arr = this.links[0].split("\r\n");
  3242. var i = arr.length;
  3243. while(i--)
  3244. {
  3245. postRequest(arr[i]);
  3246. }
  3247. function postRequest(lsLink)
  3248. {
  3249. GM_xmlhttpRequest(
  3250. {
  3251. method: "GET",
  3252. url: lsLink + '-t.jpg',
  3253. headers: {
  3254. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3255. 'Accept': 'text/xml',
  3256. 'Referer': ""
  3257. },
  3258. onload: function (result)
  3259. {
  3260. var imgLen = result.responseHeaders.match(/Content-Length: (\d+)/)[1];
  3261. if (imgLen == 965) //online
  3262. {
  3263. DisplayTheCheckedLinks([lsLink], 'alive_link');
  3264. }
  3265.  
  3266. if (imgLen == 972) //offline
  3267. {
  3268. DisplayTheCheckedLinks([lsLink], 'adead_link');
  3269. }
  3270. if (imgLen == 978) //unava
  3271. {
  3272. DisplayTheCheckedLinks([lsLink], 'unava_link');
  3273. }
  3274. }
  3275. });
  3276. }
  3277.  
  3278. }
  3279. function linkcryptBulkCheck()
  3280. {
  3281. var arr = this.links[0].split("\r\n");
  3282. var i = arr.length;
  3283. while(i--)
  3284. {
  3285. postRequest(arr[i]);
  3286. }
  3287. function postRequest(lcLink)
  3288. {
  3289. GM_xmlhttpRequest(
  3290. {
  3291. method: "GET",
  3292. url: 'http://linkcrypt.ws/api.html?api=status_V1&folderKey=' + lcLink.match(/dir\/(\w+)/)[1],
  3293. headers: {
  3294. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3295. 'Accept': 'text/xml',
  3296. 'Referer': ""
  3297. },
  3298. onload: function (result)
  3299. {
  3300. var res = result.responseText;
  3301. if (res.match(/<errorCode>1101|folderStatus>[23]/)) //Offline status
  3302. {
  3303. DisplayTheCheckedLinks([lcLink], 'adead_link');
  3304. return;
  3305. }
  3306. if (res.match(/folderStatus>1/)) //Online status
  3307. {
  3308. DisplayTheCheckedLinks([lcLink], 'alive_link');
  3309. }
  3310. else
  3311. {
  3312. DisplayTheCheckedLinks([lcLink], 'unava_link');
  3313. }
  3314. }
  3315. });
  3316. }
  3317. }
  3318.  
  3319. function megashareBulkCheck()
  3320. {
  3321. var arr = this.links[0].split("\r\n");
  3322. var i = arr.length;
  3323. while(i--)
  3324. {
  3325. postRequest(arr[i]);
  3326. }
  3327. function postRequest(msLink)
  3328. {
  3329. GM_xmlhttpRequest(
  3330. {
  3331. method: "GET",
  3332. url: msLink,
  3333. headers: {
  3334. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3335. 'Content-Type': 'application/x-www-form-urlencoded',
  3336. 'Referer': ""
  3337. },
  3338. onload: function (result)
  3339. {
  3340. var prZVal = result.responseText.match(/name="(\d+prZVal)" value="(\d+)">/);
  3341. var btn3Name = result.responseText.match(/src="images\/dwn-btn3\.gif" name="(.+?)"/);
  3342. if ((prZVal == null) || (btn3Name == null))
  3343. {
  3344. return;
  3345. }
  3346. GM_xmlhttpRequest(
  3347. {
  3348. method: "POST",
  3349. url: msLink,
  3350. headers: {
  3351. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3352. 'Content-Type': 'application/x-www-form-urlencoded',
  3353. 'Referer': ""
  3354. },
  3355. data: prZVal[1] + "=" + prZVal[2] + '&' + btn3Name[1] + '.x=1&' + btn3Name[1] + '.y=1',
  3356. onload: function (result)
  3357. {
  3358. var res = result.responseText;
  3359. if (res.match(/<div id="err">/))
  3360. {
  3361. DisplayTheCheckedLinks([msLink.match(/\.com(\/\d+)/)[1]], 'adead_link');
  3362. }
  3363. else
  3364. {
  3365. DisplayTheCheckedLinks([msLink.match(/\.com(\/\d+)/)[1]], 'alive_link');
  3366. }
  3367. }
  3368. });
  3369. }
  3370. });
  3371. }
  3372. }
  3373. function ncryptBulkCheck()
  3374. {
  3375. var arr = this.links[0].split("\r\n");
  3376. var i = arr.length;
  3377. while(i--)
  3378. {
  3379. postRequest(arr[i]);
  3380. }
  3381. function postRequest(ncryptLink)
  3382. {
  3383. GM_xmlhttpRequest(
  3384. {
  3385. method: "POST",
  3386. url: 'http://ncrypt.in/api_status.php',
  3387. headers: {
  3388. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3389. 'Content-Type': 'application/x-www-form-urlencoded',
  3390. 'Referer': ""
  3391. },
  3392. data: 'link=' + encodeURI(ncryptLink),
  3393. onload: function (result)
  3394. {
  3395. var foldStatus = result.responseText.match(/(?:offline|online);/);
  3396. switch(foldStatus + ""){
  3397. case "offline;": DisplayTheCheckedLinks([ncryptLink], 'adead_link'); break;
  3398. case "online;": DisplayTheCheckedLinks([ncryptLink], 'alive_link'); break;
  3399. default: DisplayTheCheckedLinks([ncryptLink], 'unava_link');
  3400. }
  3401. }
  3402. });
  3403. }
  3404. }
  3405. function hellshareBulkCheck()
  3406. {
  3407. var links = this.links;
  3408. GM_xmlhttpRequest(
  3409. {
  3410. method: "GET",
  3411. url: 'http://www.hellshare.com',
  3412. headers: {
  3413. 'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
  3414. 'Accept': 'text/xml',
  3415. 'Referer': ""
  3416. },
  3417. onload: function (result)
  3418. {
  3419. var domain = result.responseText.match(/param_rau = "www\.hellshare\.(\w+)"/)[1];
  3420.  
  3421. var loc = 'check=Zkontrolovat+dostupnost+soubor%C5%AF&links=';
  3422. if (domain == 'sk')
  3423. loc = 'check=Skontrolova%C5%A5&links=';
  3424. if (domain == 'com')
  3425. loc = 'check=Check+availability&links=';
  3426. if (domain == 'hu')
  3427. loc = 'check=Kontrol%C3%A1lj&links=';
  3428. if (domain == 'pl')
  3429. loc = 'check=Sprawd%C5%BC+dost%C4%99pno%C5%9B%C4%87+plik%C3%B3w&links=';
  3430.  
  3431. genBulkCheck.call({ links: links,
  3432. apiUrl: 'http://www.hellshare.' + domain + '/linkchecker?do=linkChecker-linkcheckerform-submit',
  3433. postData: loc,
  3434. resLinkRegex: /hellshare\.(?:cz|com|sk|hu|pl)\/(?:[\w-\.]+\/|)([\w-\.]+\/\d{5,})/,
  3435. 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,
  3436. resDeadRegex: /<span style="color:gray">.*?<\/span> - <strong>/g,
  3437. resUnavaRegex: null
  3438. });
  3439. }
  3440. });
  3441. }
  3442. /**
  3443. * Displays check result
  3444. * @param {Array} Array of links or link fragments.
  3445. * @param {String} Check result status -> ['alive_link'|'adead_link'|'unava_link']
  3446. */
  3447. function DisplayTheCheckedLinks(links, resultStatus)
  3448. {
  3449. //(a[href*=link_1], a[href*=link_2], ..., a[href*=link_n])
  3450. var $links = $('a[href*="' + links.join('"], a[href*="') + '"]');
  3451. if (Do_not_linkify_DL_links)
  3452. { //TODO into separate jQuery function
  3453. $links.replaceWith(function(){
  3454. return '<span href="' + this.href + '">' + $(this).text() + '</span>';
  3455. });
  3456. $links = $('span[href*="' + links.join('"], span[href*="') + '"]');
  3457. }
  3458. $links.removeClass().addClass(resultStatus);
  3459. $links.each(function() {
  3460. this.href = Ref_anonymize_service + $(this).attr("href");
  3461. });
  3462. switch(resultStatus)
  3463. {
  3464. case "alive_link": cLinksAlive += $links.length;
  3465. if (Display_tooltip_info) $links.mouseover(displayTooltipInfo);
  3466. break;
  3467. case "adead_link": cLinksDead += $links.length;
  3468. if (Display_tooltip_info) $links.mouseover(displayTooltipError);
  3469. break;
  3470. case "unava_link": cLinksUnava += $links.length; break;
  3471. default:
  3472. }
  3473. cLinksProcessed += $links.length;
  3474. }
  3475. }
  3476. // starts bulkchecking
  3477. //
  3478. // params
  3479. // filterId [string] restricts link detection with passed id attribute
  3480. function startBulkCheck(filterId)
  3481. {
  3482. var cHosts = bulkHosts.length;
  3483. if (cHosts == 0) //no filehostings selected
  3484. return;
  3485. // STEP 1 linkify the links
  3486. var linkifyRegex = '';
  3487. var hostIdx = cHosts;
  3488. while(hostIdx--)
  3489. {
  3490. linkifyRegex += bulkHosts[hostIdx].linkRegex + "|";
  3491. }
  3492. linkifyRegex = linkifyRegex.replace(/\|$/, '');
  3493. linkify(linkifyRegex);
  3494. //
  3495. //STEP 2 detect link objects
  3496. var xpathAll = '';
  3497. var hostIdx = cHosts;
  3498. while(hostIdx--)
  3499. {
  3500. xpathAll += bulkHosts[hostIdx].xpath + "|";
  3501. }
  3502. xpathAll = xpathAll.replace(/\]\|\/\/a\[/g, " or ");
  3503. xpathAll = xpathAll.replace(/\]\|/, ')]');
  3504. if (filterId != null) //insert id restriction in the xpath
  3505. {
  3506. xpathAll = xpathAll.replace(/\[/, "[@class='" + filterId + "' and (");
  3507. }
  3508. else
  3509. {
  3510. xpathAll = xpathAll.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  3511. }
  3512. var links = document.evaluate(xpathAll, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  3513. if (filterId == null)
  3514. {
  3515. cLinksTotal += links.snapshotLength;
  3516. }
  3517. //
  3518. //STEP 3 bind links with hostings
  3519. var linkIdx = links.snapshotLength;
  3520. var href = null;
  3521. if (linkIdx == 0) // no links found
  3522. return;
  3523. var name;
  3524. while (linkIdx--)
  3525. {
  3526. href = links.snapshotItem(linkIdx).href;
  3527. try // DO NOT REMOVE, filters crap that went through xpath detection
  3528. {
  3529. name = gimmeHostName(href);
  3530. if (href.match(bulkHostNames[name].linkRegexObject) != null)
  3531. bulkHostNames[name].links.push(href);
  3532. }
  3533. catch(e)
  3534. {
  3535.  
  3536. }
  3537. }
  3538. //
  3539. //STEP 4 process the links for each filehosting
  3540. var hostIdx = cHosts;
  3541. var host;
  3542. var m,n;
  3543. var arr;
  3544. while (hostIdx--)
  3545. {
  3546. host = bulkHosts[hostIdx];
  3547. arr = host.links;
  3548. if (arr.length == 0) //no links for this hosting, skip
  3549. {
  3550. continue;
  3551. }
  3552. //links match corrections
  3553. if (host.corrMatch != null)
  3554. {
  3555. var idx = arr.length;
  3556. while (idx--)
  3557. {
  3558. arr[idx] = arr[idx].match(host.corrMatch)[1];
  3559. }
  3560. }
  3561. //links replace corrections
  3562. if ((host.corrReplWhat != null) && (host.corrReplWith != null))
  3563. {
  3564. var idx = arr.length;
  3565. while (idx--)
  3566. {
  3567. arr[idx] = arr[idx].replace(host.corrReplWhat, host.corrReplWith);
  3568. }
  3569. }
  3570. m = arr.length;
  3571. n = host.blockSize;
  3572. if (m > n)
  3573. {
  3574. //insert block separators (RAND_STRING) into the array
  3575. for(var i = n; i < m; i += n + 1)
  3576. {
  3577. arr.splice(i, 0, RAND_STRING);
  3578. }
  3579. }
  3580.  
  3581. host.func.call({ links: arr.join(host.splitSeparator).split(RAND_STRING),
  3582. apiUrl: host.apiUrl,
  3583. postData: host.postData,
  3584. resLinkRegex: host.resLinkRegex,
  3585. resLiveRegex: host.resLiveRegex,
  3586. resDeadRegex: host.resDeadRegex,
  3587. resUnavaRegex: host.resUnavaRegex
  3588. });
  3589. //clean up
  3590. arr.length = 0;
  3591. }
  3592. //
  3593.  
  3594. function gimmeHostName(link)
  3595. {
  3596. return link.replace(/https?:\/\/.*?http(s)?:\/\//, "http$1://").match(/https?:\/\/(?:www\.|[\w\.])*?([\w-]+)\.(?:co\.uk|co\.nz|\w+)\//)[1];
  3597. }
  3598. }
  3599. function checkLinks(filterId)
  3600. {
  3601. startBulkCheck(filterId);
  3602. start(filterId);
  3603. }
  3604.  
  3605. /**
  3606. * Initialises progress box including event binding and CSS
  3607. */
  3608. function initProgressBox()
  3609. {
  3610. if ($("#warlc-progressbox").length > 0)
  3611. return;
  3612. //progressbox css change size and color of progress box
  3613. GM_addStyle("#warlc-progressbox {position:fixed; background:DimGray;" + Progress_box_background_color +
  3614. "; opacity:" + (Progress_box_opacity / 100) +
  3615. "; bottom:" + Progress_box_pos_bottom +
  3616. "px; right:" + Progress_box_pos_right +
  3617. "px; padding:5px; font-size:20px; font-weight:bold; cursor:default;}\
  3618. \
  3619. .warlc-progressbar {text-align:center; color: DimGray; height:2px; margin-bottom:2px;}\
  3620. \
  3621. .warlc-progressitem {}\
  3622. \
  3623. .alive {color:#00FF7F; " + Live_links_color +
  3624. "; background:transparent url(" + alive_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;} .dead {color:" + Dead_links_color +
  3625. "; background:transparent url(" + adead_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;} .unava {color: " + Temp_unavailable_links_color +
  3626. "; background:transparent url(" + unava_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;} .processing {color:Black; " + Container_links_color +
  3627. "; background:transparent url(" + processing_link_gif + ") no-repeat scroll 100% 50%;padding-right:15px;} .prem {color:" + Premium_links_color +
  3628. "; background:transparent url(" + prem_link_png + ") no-repeat scroll 100% 50%;padding-right:15px;}"
  3629. );
  3630. //
  3631. $('body').append(' <div id="warlc-progressbox">\
  3632. <div class="warlc-progressbar"></div>\
  3633. <span class="warlc-progressitem alive"></span> - \
  3634. <span class="warlc-progressitem dead"></span> - \
  3635. <span class="warlc-progressitem unava"></span> - \
  3636. <span class="warlc-progressitem prem"></span> - \
  3637. <span class="warlc-progressitem processing"></span>\
  3638. </div>');
  3639. $('#warlc-progressbox').hide().click(function(){
  3640. clearInterval(intervalId);
  3641. $(this).hide();
  3642. return false;
  3643. });
  3644. $(".warlc-progressbar").progressbar({complete: function(){
  3645. $(this).fadeOut();
  3646. clearInterval(intervalId); //stop refreshing the stats
  3647. }
  3648. })
  3649. .one('progressbarchange', function(){$('#warlc-progressbox').show();});
  3650. }
  3651. /**
  3652. * Updates progress data in progress box
  3653. */
  3654. function updateProgress()
  3655. {
  3656. if (cLinksTotal) // some links were detected on page
  3657. {
  3658. var percProgress = Math.round(((100 / cLinksTotal) * cLinksProcessed));
  3659. var $progressItems = $('#warlc-progressbox > .warlc-progressitem');
  3660. $(".warlc-progressbar").progressbar('option', 'value', percProgress);
  3661. if ((cLinksTotal - cLinksProcessed) == 0)
  3662. {
  3663. $progressItems.first().text(cLinksAlive)
  3664. .next().text(cLinksDead)
  3665. .next().text(cLinksUnava)
  3666. .next().text(cLinksprem)
  3667. .next().remove();
  3668. $('#warlc-progressbox').html($('#warlc-progressbox').html().substr(0,$('#warlc-progressbox').html().lastIndexOf(">")+1));
  3669. $('#warlc-progressbox div:first-child').remove();
  3670. }
  3671. else
  3672. {
  3673. $progressItems.first().text(cLinksAlive)
  3674. .next().text(cLinksDead)
  3675. .next().text(cLinksUnava)
  3676. .next().text(cLinksprem)
  3677. .next().text(cLinksTotal - cLinksProcessed);
  3678. }
  3679. }
  3680. }
  3681.  
  3682. function check_all_links()
  3683. {
  3684. add_WARLC_style();
  3685.  
  3686. if (Show_progress_stats)
  3687. {
  3688. initProgressBox();
  3689. intervalId = setInterval(function(){updateProgress();}, Progress_box_refresh_rate);
  3690. }
  3691.  
  3692. startBulkCheck(null);
  3693. start(null);
  3694.  
  3695. if (!containers_processed)
  3696. {
  3697. processContainers();
  3698. }
  3699. }
  3700.  
  3701. //Copies all found dead links to clipboard - right now for Scriptish only
  3702. function copy_dead_to_clipboard()
  3703. {
  3704. initClipBoardTools();
  3705.  
  3706. var deadlinksxpath = "//.[@class='adead_link']";
  3707.  
  3708. var foundlinks = document.evaluate(deadlinksxpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  3709. var foundlinkstext = '';
  3710.  
  3711. var foundlinkIdx = foundlinks.snapshotLength;
  3712.  
  3713. while(foundlinkIdx--)
  3714. {
  3715. if (foundlinks.snapshotItem(foundlinkIdx).innerHTML != ' x')
  3716. foundlinkstext += foundlinks.snapshotItem(foundlinkIdx).innerHTML.replace(/\[\/hide:\w+\]/,"") + '\n';
  3717. }
  3718.  
  3719. unsafeWindow.copyToClipboard(foundlinkstext);
  3720. }
  3721.  
  3722. function toggle_autocheck()
  3723. {
  3724. var currentState = GM_getValue("Autocheck", false);
  3725. GM_setValue("Autocheck", !currentState);
  3726.  
  3727. if (currentState == true)
  3728. {
  3729. sendMessage('Autocheck disabled', 'red');
  3730. }
  3731. else
  3732. {
  3733. sendMessage('Autocheck enabled', 'SpringGreen');
  3734. }
  3735. }
  3736. function toggle_Enable_Anonymizer()
  3737. {
  3738. var currentState = GM_getValue("Enable_Anonymizer", false);
  3739. GM_setValue("Enable_Anonymizer", !currentState);
  3740.  
  3741. if (currentState == true)
  3742. {
  3743. GM_setValue("Ref_anonymize_service", "");
  3744. sendMessage('Anonymizer Disabled', 'red');
  3745. }
  3746. else
  3747. {
  3748. GM_setValue("Ref_anonymize_service", "http://hiderefer.com/?");
  3749. sendMessage('Anonymizer Enabled', 'SpringGreen');
  3750. }
  3751. }
  3752.  
  3753. function KeyDownHandler(event)
  3754. {
  3755. var kcode = (event.keyCode) ? event.keyCode : event.which;
  3756. if (event.ctrlKey && event.altKey)
  3757. {
  3758. switch(kcode)
  3759. {
  3760. case 65 : check_all_links(); break;
  3761. case 67 : configuration(); break;
  3762. case 68 : copy_dead_to_clipboard(); break;
  3763. case 87 : toggle_autocheck(); break;
  3764. case 90 : toggle_Enable_Anonymizer(); break;
  3765. }
  3766. }
  3767. }
  3768.  
  3769. //
  3770. //
  3771. // SCRIPT EXECUTION START POINT
  3772. //
  3773. //
  3774. // Safari specific GM_getResourceText override
  3775. if (navigator.userAgent.indexOf('Safari') != -1 && navigator.userAgent.indexOf('Chrome') == -1)
  3776. {
  3777. GM_getResourceText = function(res) {
  3778. var $cssText = GM_getValue("jquery_css", "");
  3779. if ($cssText == "")
  3780. {
  3781. GM_xmlhttpRequest(
  3782. {
  3783. method: 'GET',
  3784. url: 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css',
  3785. onload: function (result)
  3786. {
  3787. GM_setValue("jquery_css", result.responseText);
  3788. window.location.reload();
  3789. }
  3790. });
  3791. }
  3792. else
  3793. {
  3794. return $cssText;
  3795. }
  3796. }
  3797. }
  3798. var jQueryUICSS = GM_getResourceText("jQueryUICSS");
  3799. GM_addStyle(jQueryUICSS);
  3800. //init the stuff
  3801. setVariables();
  3802. initBulkCheck();
  3803. //init info boxes
  3804. messageBox.style.position = 'fixed';
  3805. messageBox.style.top = '20px';
  3806. messageBox.style.left = '10px';
  3807. messageBox.style.opacity = '0.85';
  3808. messageBox.style.background = 'DimGray';
  3809. messageBox.style.fontSize = '36px';
  3810. document.body.appendChild(messageBox);
  3811.  
  3812. //register GM menu commands & keyboard shortcut event handler
  3813. if (Keyboard_functions)
  3814. {
  3815. $(document).keydown(KeyDownHandler);
  3816. GM_registerMenuCommand("[W.A.R. Links Checker] Configuration (" + first_key_keycodename + "+" + second_key_keycodename + "+" + String.fromCharCode(CONFIGURATION_KEYCODE) + ")", configuration);
  3817. 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);
  3818. }
  3819. else
  3820. {
  3821. GM_registerMenuCommand("[W.A.R. Links Checker] Configuration", configuration);
  3822. GM_registerMenuCommand("[W.A.R. Links Checker] Check The Links In This Page", check_all_links);
  3823. }
  3824.  
  3825. //start linkchecking
  3826. if (Autocheck)
  3827. {
  3828. $(document).ready(check_all_links);
  3829. }
  3830.  
  3831. //
  3832. //
  3833. // SCRIPT EXECUTION END POINT
  3834. //
  3835. //
  3836.  
  3837. //shows configuration box
  3838. function configuration()
  3839. {
  3840.  
  3841. //prevent multiple creating of config window
  3842. if ($("#hideshow").length)
  3843. {
  3844. $("#hideshow").show();
  3845. return;
  3846. }
  3847.  
  3848. var configcss = '\
  3849. .popup_block .popup fieldset{\
  3850. padding: 1%;\
  3851. border-style: solid;\
  3852. border-width: 1px;\
  3853. border-color: gray;\
  3854. margin-bottom: 1px;\
  3855. }\
  3856. #h3hideshowtitle{\
  3857. font-size: 2em;\
  3858. }\
  3859. #h3hideshow{\
  3860. font-size: 1.5em;\
  3861. }\
  3862. #imghideshow {\
  3863. border: none;\
  3864. }\
  3865. #plusimage{\
  3866. display:inline;\
  3867. }\
  3868. #hideshow {\
  3869. position: fixed;\
  3870. width: 100%;\
  3871. height: 100%;\
  3872. top: 0;\
  3873. left: 0;\
  3874. font-size:12px;\
  3875. z-index:2147483645;\
  3876. text-align:left;\
  3877. }\
  3878. #fade {\
  3879. background: #000;\
  3880. position: fixed;\
  3881. width: 100%;\
  3882. height: 100%;\
  3883. opacity: .80;\
  3884. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";\
  3885. left: 0;\
  3886. z-index: 10;\
  3887. }\
  3888. .popup_block {\
  3889. font-family:verdana;\
  3890. color:black;\
  3891. background: #ddd;\
  3892. padding: 10px 20px;\
  3893. border: 2px solid DarkOrange;\
  3894. float: left;\
  3895. width: 700px;\
  3896. position: absolute;\
  3897. top: 7%;\
  3898. left: 50%;\
  3899. bottom: 7%;\
  3900. margin: 0 0 0 -350px;\
  3901. -moz-border-radius:10px;\
  3902. z-index: 100;\
  3903. \
  3904. }\
  3905. .popup_block .popup {\
  3906. float: left;\
  3907. width: 100%;\
  3908. background: #fff;\
  3909. margin: 10px 0;\
  3910. padding: 0px 0 0px;\
  3911. border-left: 1px solid #bbb;\
  3912. border-top: 1px solid #bbb;\
  3913. border-right: 1px solid #bbb;\
  3914. }\
  3915. #h3hideshow{\
  3916. margin: 1px 0 0px;\
  3917. padding: 1px 10px;\
  3918. border-bottom: 1px solid #bbb;\
  3919. font-size: 1.5em;\
  3920. font-weight: normal;\
  3921. cursor:pointer;\
  3922. background:#DDDDDD none repeat scroll 0 0;\
  3923. }\
  3924. #h3hideshow:hover{\
  3925. background:#C0BEBE none repeat scroll 0 0;\
  3926. }\
  3927. #h3hideshowtitle{\
  3928. margin: 2px 0 0px;\
  3929. padding: 7px 10px;\
  3930. border-bottom: 1px solid #bbb;\
  3931. font-size: 1.5em;\
  3932. font-weight: normal;\
  3933. }\
  3934. .popup_block .popup a {\
  3935. color:DarkSkyBlue;\
  3936. text-decoration:none;\
  3937. }\
  3938. .popup p {\
  3939. padding: 1px 10px;\
  3940. margin: 0px 0;\
  3941. -x-system-font:none;\
  3942. font-family:verdana,geneva,lucida,"lucida grande",arial,helvetica,sans-serif;\
  3943. font-size:10pt;\
  3944. font-size-adjust:none;\
  3945. font-stretch:normal;\
  3946. font-style:normal;\
  3947. font-variant:normal;\
  3948. font-weight:normal;\
  3949. line-height:normal;\
  3950. }\
  3951. #sites {\
  3952. padding: 1px 10px;\
  3953. margin: 0px 0;display:inline-block;width:16em;\
  3954. }\
  3955. #dev_ver {\
  3956. color: #00FF00;\
  3957. background: Black;\
  3958. text-align: right;\
  3959. }\
  3960. #sites_suspended {\
  3961. padding: 1px 10px;\
  3962. margin: 0px 0;display:inline-block;width:16em;\
  3963. text-decoration: line-through;\
  3964. }\
  3965. .popup img.cntrl {\
  3966. position: absolute;\
  3967. right: -15px;\
  3968. top: -15px;\
  3969. }\
  3970. #bulk {\
  3971. font-size:8pt;\
  3972. color:orange;\
  3973. padding: 1px 10px;\
  3974. margin: 0px 0;\
  3975. display:inline-block;\
  3976. width:100px;\
  3977. }\
  3978. #note {\
  3979. font-size:7pt;\
  3980. color:gray;\
  3981. padding: 1px 10px;\
  3982. margin: 0px 0;display:inline-block;\
  3983. min-width:100px;\
  3984. }\
  3985. #rednote {\
  3986. font-size:7pt;\
  3987. color:red;\
  3988. padding: 1px 10px;\
  3989. margin: 0px 0;display:inline-block;\
  3990. }\
  3991. #configinfo {\
  3992. font-size:8pt;\
  3993. color:gray;\
  3994. padding: 1px 10px;\
  3995. margin: 0px 0;display:inline-block;width:60em;\
  3996. }\
  3997. #refAnonymizer, #inputColorLive, #inputColorprem, #hostSearchBox2, #hostSearchBox, #inputColorDead, #inputColorTemp, #inputColorCont, #selectAllButton, #selectNoneButton, #invertButton, #selectAllButton2, #selectNoneButton2, #invertButton2 {\
  3998. color:black;\
  3999. border-style: solid;\
  4000. border-width: 1px;\
  4001. border-color: gray;\
  4002. }\
  4003. #h3hideshowcontent {\
  4004. min-height:220px;\
  4005. max-height:220px;\
  4006. overflow:auto;\
  4007. display: none;\
  4008. padding: 10px 10px;\
  4009. }\
  4010. #specinfo{\
  4011. font-size:14px;\
  4012. }\
  4013. .warlc-ui-tab {\
  4014. height:300px;\
  4015. overflow:auto;\
  4016. }\
  4017. #warlcsitelist2, #warlcsitelist1 {\
  4018. height:220px;\
  4019. border-top: 1px solid #ddd;\
  4020. padding-top: 5px;\
  4021. overflow:auto;\
  4022. }\
  4023. input:hover+label {\
  4024. background:#F1F77C;\
  4025. font-size:110%;\
  4026. }\
  4027. ';
  4028.  
  4029. GM_addStyle(configcss);
  4030.  
  4031. var customRulesRefHTML =
  4032. '\
  4033. <br>\
  4034. A custom rule consists of <b>commands</b>. A command must be on its own line and in this form:<br>\
  4035. <b>@keyword</b> <i>parameter</i>\
  4036. <br><br>\
  4037. 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. \
  4038. <br><br>\
  4039. 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.\
  4040. 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.\
  4041. 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.\
  4042. 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,\
  4043. but all commands until the next valid @customrule are ignored.<br><br>\
  4044. Available forms and types:\
  4045. <ul>\
  4046. <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.\
  4047. <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.\
  4048. <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.\
  4049. <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.\
  4050. </ul>\
  4051. Other available commands:<br>\
  4052. (Note: There can be more than 1 (up to 10) of these commands per rule. In that case, any of them will work.)\
  4053. <ul>\
  4054. <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.\
  4055. It can also specify multiple (up to 10) Top Level Domains (.com, .net etc.)<br>\
  4056. <ul>examples:<br>\
  4057. <li>good: <i>filehost.com/download/</i><br>\
  4058. <li>good: <i>download.filehost.net/?d=</i><br>\
  4059. <li>good: <i>filehost. com net co.uk /</i> - multiple TLDs (note the spaces before, between and after TLDs)<br>\
  4060. <li>ok: <i>filehost.com/</i> - works, but will also find links like filehost.com/login etc. Sometimes it\'s unavoidable though.<br>\
  4061. <li>bad: <i>d8523.filehost.com/</i> - d8523 probably is not constant<br>\
  4062. <li>bad: <i>filehost.com/3bfiq5d1</i> - 3bfiq5d1 probably is not constant<br>\
  4063. <li>bad: <i>filehost.com</i> - no slash<br>\
  4064. </ul>\
  4065. \
  4066. <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.\
  4067. 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 \
  4068. &lt;div&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;p&gt; even if there are new lines, tabulators etc.\
  4069. <li><b>@deadmatch</b> <i>pattern</i> - ignored for OBSOLETE, required for others. (For HEADERS some servers return 404 Error \
  4070. 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.)\
  4071. Two spaces again match any whitespace.\
  4072. <li><b>@unavamatch</b> <i>pattern</i> - optional, ignored for OBSOLETE and HEADERS. If found, the link is deemed temporarily unavailable.\
  4073. Two spaces again match any whitespace.\
  4074. <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. \
  4075. <li><b>@deadlink</b> <i>url</i> - optional. Example dead link.\
  4076. </ul>\
  4077. \
  4078. ';
  4079.  
  4080. //close image and css taken from = http://www.sohtanaka.com/web-design/examples/css-popup icon_close.png;
  4081. var configurationinnerHTML =
  4082. '<div id="fade"></div>\
  4083. <div class="popup_block">\
  4084. <div class="popup">\
  4085. <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/uIjp9FAbnzWttbV3H3ECWFWdnubTuSBulQ9AwDs2jcSPGby6evGn7sIGJzwuzDUViMekdAZ0jrXvlVGVl5RK8ctlKq6ZpHFSKdBzCwSVjQRILAzh3508TPe29dbl6ZibiB/lrQeWBGFmykGe/dc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kZeBTUBZPIY/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>\
  4087. <div id="warlc-conf-tabs">\
  4088. <ul>\
  4089. <li><a href="#tabs-1">Filehostings</a></li>\
  4090. <li><a href="#tabs-2">Containers</a></li>\
  4091. <li><a href="#tabs-5">Custom rules</a></li>\
  4092. <li><a href="#tabs-3">Settings</a></li>\
  4093. <li><a href="#tabs-4">About</a></li>\
  4094. </ul>\
  4095. <div id="tabs-1" class="warlc-ui-tab">\
  4096. <div class="warlc-ui-buttonset">\
  4097. <input type="button" class="warlc-ui-select-all" value="Select All">\
  4098. <input type="button" class="warlc-ui-select-none" value="Select None">\
  4099. <input type="button" class="warlc-ui-select-invert" value="Invert">\
  4100. </div><br>\
  4101. <div>Search: <input type="textbox" id="hostSearchBox" value=""></div><br>\
  4102. <div id="warlcsitelist1"><span>Empty</span></div>\
  4103. </div>\
  4104. <div id="tabs-2" class="warlc-ui-tab">\
  4105. <div class="warlc-ui-buttonset">\
  4106. <input type="button" class="warlc-ui-select-all" value="Select All">\
  4107. <input type="button" class="warlc-ui-select-none" value="Select None">\
  4108. <input type="button" class="warlc-ui-select-invert" value="Invert">\
  4109. </div><br>\
  4110. <div>Search: <input type="textbox" id="hostSearchBox2" value=""></div><br>\
  4111. <div id="warlcsitelist2"><span>Empty</span></div>\
  4112. </div>\
  4113. <div id="tabs-5" class="warlc-ui-tab">\
  4114. <div class="warlcsettings">\
  4115. <fieldset><input type="checkbox" id="Custom_rules"> Enable custom rules <div id="bulk">EXPERIMENTAL</div></fieldset>\
  4116. <br>\
  4117. <div>Edit custom rules: \
  4118. <a href="#" id="showCustomRulesReference">(<b>Click here to show/hide the reference</b>)</a>\
  4119. <div id="customRulesReference" style="display:none;">'
  4120. + customRulesRefHTML + '\
  4121. </div>\
  4122. <textarea style="width:100%;height:200px;" id="Custom_rules_text"></textarea>\
  4123. </div>\
  4124. </div>\
  4125. </div>\
  4126. <div id="tabs-3" class="warlc-ui-tab">\
  4127. <div class="warlcsettings">\
  4128. <fieldset>\
  4129. <p><input type="checkbox" id="Keyboard_functions"> Enable keyboard shortcuts</p>\
  4130. <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>\
  4131. </fieldset>\
  4132. <fieldset>\
  4133. <p><input type="checkbox" id="Color_DL_links"> Color DL links</p>\
  4134. <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>\
  4135. <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>\
  4136. <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>\
  4137. <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>\
  4138. <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>\
  4139. <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>\
  4140. <p><input type="checkbox" id="Show_line_through_in_dead_links"> Show line through in dead links</p>\
  4141. <p><input type="checkbox" id="Show_black_background_in_DL_links"> Show black background in DL links</p>\
  4142. <p><input type="checkbox" id="Do_not_linkify_DL_links"> Do NOT linkify DL links</p>\
  4143. <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>\
  4144. <p><input type="checkbox" id="Display_full_links_in_link_containers"> Display full links in link containers</p><br>\
  4145. <fieldset>\
  4146. <p><input type="radio" name="warlciconset" value="0"> No icons</p>\
  4147. <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>\
  4148. <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>\
  4149. <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>\
  4150. </fieldset>\
  4151. </fieldset>\
  4152. <fieldset>\
  4153. <div id="sites"><input type="checkbox" id="Autocheck"> Autocheck</div><br><div id="configinfo">Script starts check automatically.</div><br>\
  4154. </fieldset>\
  4155. <fieldset>\
  4156. <div id="sites"><input type="checkbox" id="Show_progress_stats"> Show progress stats</div><br>\
  4157. </fieldset>\
  4158. <fieldset>\
  4159. <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>\
  4160. </fieldset>\
  4161. <fieldset>\
  4162. <p><input type="checkbox" id="Enable_Anonymizer"> Enable Anonymizer</div><div id="bulk">EXPERIMENTAL Note: Checkbox does not work use CTRL+ALT+Z.</p>\
  4163. <div id="sites"><label for="refAnonymizer">Refererer anonymizing service</label><input type="text" id="refAnonymizer" value="' + Ref_anonymize_service + '"></div>\
  4164. </fieldset>\
  4165. </div>\
  4166. </div>\
  4167. <div id="tabs-4" class="warlc-ui-tab">\
  4168. <p><b>Author:</b> <a href="http://www.mentalps.5gbfree.com/viewtopic.php?f=2&t=6">mentalps</a></p>\
  4169. <br />\
  4170. <p><b>Currently supported:</b><br>\
  4171. Filehostings: ' + allHostNames.length + '<br />\
  4172. Containers: ' + allContainerNames.length + '<br />\
  4173. Obsolete sites: ' + allObsoleteNames.length + '<br /></p>\
  4174. <br />\
  4175. <p><b>Based on:</b><br>\
  4176. <a href="http://userscripts-mirror.org/scripts/show/125631.html">W.A.R. Links Checker - Dev</a></p>\
  4177. <br />\
  4178. <p><b>Uses:</b></p>\
  4179. <p>adam_3\'s <a href="http://userscripts-mirror.org/scripts/show/2254">Linkify ting</a> (modified)</p>\
  4180. <p><a href="http://jquery.com/">jQuery</a> JavaScript Library</p>\
  4181. <br />\
  4182. <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>\
  4183. </div>\
  4184. </div>\
  4185. </div>\
  4186. </div>';
  4187. $('body').append('<div id="hideshow">' + configurationinnerHTML + '</div>');
  4188. $("#warlc-conf-tabs").tabs({ fx: { opacity: 'toggle', duration: 'fast' } });
  4189. $("#imghideshow").click(function(event){$("#hideshow").hide(); event.preventDefault();});
  4190. var elmHostList = document.getElementById("warlcsitelist1");
  4191. var elmContainerList = document.getElementById("warlcsitelist2");
  4192. buildSettings();
  4193. buildSitelist("", allHostNames, elmHostList);
  4194. buildSitelist("", allContainerNames, elmContainerList);
  4195. if (DEBUG_MODE)
  4196. {
  4197. //log all sites availability status
  4198. diagSites();
  4199. }
  4200. //handler for checkbox state change
  4201. function changeConfiguration(e)
  4202. {
  4203. var element = e.target;
  4204.  
  4205. if (element.type == 'checkbox')
  4206. {
  4207. if (element.checked == 1)
  4208. {
  4209. GM_setValue(element.id, true);
  4210. }
  4211. else
  4212. {
  4213. GM_setValue(element.id, false);
  4214. }
  4215.  
  4216. }
  4217. setVariables();
  4218. }
  4219.  
  4220. //Selects all filehosting checkboxes
  4221. function selectAll()
  4222. {
  4223. $(":checkbox:visible:not(:checked)").prop("checked",true)
  4224. .each(function(index, element){GM_setValue(this.id, true)});
  4225. }
  4226.  
  4227. //Deselects all filehosting checkboxes
  4228. function selectNone()
  4229. {
  4230. $(":checkbox:visible:checked").prop("checked",false)
  4231. .each(function(index, element){GM_setValue(this.id, false)});
  4232. }
  4233.  
  4234. //Inverts filehosting checkboxes selection
  4235. function selectInvert()
  4236. {
  4237. var $checked = $(":checkbox:visible:checked");
  4238. var $unchecked = $(":checkbox:visible:not(:checked)");
  4239. $unchecked.prop("checked",true)
  4240. .each(function(index, element){GM_setValue(this.id, true)});
  4241. $checked.prop("checked",false)
  4242. .each(function(index, element){GM_setValue(this.id, false)});
  4243. }
  4244. //toggles anonymizer on off
  4245. function Enable_Anonymizer()
  4246. {
  4247. var $checked = $(":checkbox:visible:checked");
  4248. var $unchecked = $(":checkbox:visible:not(:checked)");
  4249. $unchecked.prop("checked",true)
  4250. .each(function(index, element){GM_setValue(this.id, true)});
  4251. $checked.prop("checked",false)
  4252. .each(function(index, element){GM_setValue(this.id, false)});
  4253. }
  4254.  
  4255. function changeRefAnonymizer(){
  4256. GM_setValue("Ref_anonymize_service", $("#refAnonymizer").attr("value"));
  4257. }
  4258.  
  4259. //Sets live links color
  4260. function changeColorLive()
  4261. {
  4262. var inColorLive = document.getElementById("inputColorLive");
  4263. inColorLive.style.background = inColorLive.value;
  4264. GM_setValue("Live_links_color", inColorLive.value);
  4265. }
  4266.  
  4267. //Sets dead links color
  4268. function changeColorDead()
  4269. {
  4270. var inColorDead = document.getElementById("inputColorDead");
  4271. inColorDead.style.background = inColorDead.value;
  4272. GM_setValue("Dead_links_color", inColorDead.value);
  4273. }
  4274.  
  4275. //Sets temp. unavailable links color
  4276. function changeColorTemp()
  4277. {
  4278. var inColorTemp = document.getElementById("inputColorTemp");
  4279. inColorTemp.style.background = inColorTemp.value;
  4280. GM_setValue("Temp_unavailable_links_color", inColorTemp.value);
  4281. }
  4282.  
  4283. //Sets temp. unavailable links color
  4284. function changeColorCont()
  4285. {
  4286. var inColorCont = document.getElementById("inputColorCont");
  4287. inColorCont.style.background = inColorCont.value;
  4288. GM_setValue("Container_links_color", inColorCont.value);
  4289. }
  4290. //Sets premium. links color
  4291. function changeColorprem()
  4292. {
  4293. var inColorprem = document.getElementById("inputColorprem");
  4294. inColorprem.style.background = inColorprem.value;
  4295. GM_setValue("Premium_links_color", inColorprem.value);
  4296. }
  4297.  
  4298. //Diagnose sites for availability
  4299. function diagSites()
  4300. {
  4301. var boxes = document.getElementById("warlcsitelist1").getElementsByTagName("input");
  4302.  
  4303. for (var i = 0, n = boxes.length - 1; i < n; i++)
  4304. {
  4305. if (boxes[i].type == "checkbox")
  4306. {
  4307. checkAvailability(boxes[i]);
  4308. }
  4309. }
  4310.  
  4311. boxes = document.getElementById("warlcsitelist2").getElementsByTagName("input");
  4312.  
  4313. for (var i = 0, n = boxes.length - 1; i < n; i++)
  4314. {
  4315. if (boxes[i].type == "checkbox")
  4316. {
  4317. checkAvailability(boxes[i]);
  4318. }
  4319. }
  4320.  
  4321. function checkAvailability(cbElm)
  4322. {
  4323. var cb = cbElm;
  4324. GM_xmlhttpRequest(
  4325. {
  4326. method: 'HEAD',
  4327. url: 'http://' + cb.nextSibling.textContent.replace(' ', ''),
  4328. headers: {
  4329. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  4330. 'Accept': 'text/xml',
  4331. 'Referer': ""
  4332. },
  4333. onload: function (result)
  4334. {
  4335. if (result.status != 200)
  4336. {
  4337. GM_log(cb.nextSibling.textContent + ' --- status: [' + result.status + '] ' + result.statusText + ', final url: ' + result.finalUrl);
  4338. }
  4339. },
  4340. onerror: function (result)
  4341. {
  4342. if (result.status != 200)
  4343. {
  4344. GM_log(cb.nextSibling.textContent + ' --- status: [' + result.status + '] ' + result.statusText + ', final url: ' + result.finalUrl);
  4345. }
  4346. }
  4347. });
  4348. }
  4349. }
  4350. function buildSettings()
  4351. {
  4352. $(".warlcsettings :checkbox").each(function(){
  4353. $(this).prop("checked", GM_getValue($(this).attr("id")))
  4354. .click(function(e){
  4355. GM_setValue($(this).attr("id"), $(this).prop("checked"));
  4356. setVariables();
  4357. });
  4358. })
  4359. }
  4360. //Dynamic build of host list
  4361. //param search [string] searches for hostnames matching search substring
  4362. //param siteNames [array] array of site names
  4363. //param targetNode [DOM Node] where the list should be built
  4364. // first child node is replaced
  4365. function buildSitelist(search, siteNames, targetNode)
  4366. {
  4367. var searchRegex = new RegExp("\\|?([\\w\\.-]*" + search.replace(/\./g,"\\.").replace(/-/g, "\\-") + "[\\w\\.-]*)\\|?", "i");
  4368. var $targetNode = $(targetNode).empty();
  4369. var searchedSite = "";
  4370. $.each(siteNames, function(i, site){
  4371. if (searchedSite = site.match(searchRegex))
  4372. {
  4373. var baseSite = site.replace(/\|.+/, ""); //filehosting main domain
  4374. //ensuring backward compatibility with the rest of code, to be refactored later
  4375. var oldRSLCvalue = "Check_" + baseSite.replace(/\|.+/, "").replace(/\./g,"_dot_").replace(/-/g, "_dash_") + "_links";
  4376. //
  4377. $targetNode.append('<input type="checkbox" id="' + oldRSLCvalue +'" />\
  4378. <label for="' + oldRSLCvalue + '">' + searchedSite[1] + '</label>' +
  4379. ((searchedSite[1] != baseSite) ? ('<div id="note"> ( ~ ' + baseSite + ' )</div>') : (""))
  4380. );
  4381. $("#" + oldRSLCvalue).prop("checked", GM_getValue(oldRSLCvalue, false))
  4382. .change(changeConfiguration);
  4383. $targetNode.append('<br />');
  4384. }
  4385. });
  4386. $targetNode.append("<hr>");
  4387. //obsolete hosts checkbox
  4388. $targetNode.append('<input type="checkbox" id="Obsolete_file_hosts" /><label for="Obsolete_file_hosts">Obsolete file hosts</label>');
  4389. $("#Obsolete_file_hosts").prop("checked", GM_getValue("Obsolete_file_hosts", false))
  4390. .change(changeConfiguration);
  4391. $targetNode.append('<br />');
  4392. var foundName = "";
  4393. $.each(allObsoleteNames, function(i, site){
  4394. if (foundName = allObsoleteNames[i].match(searchRegex))
  4395. {
  4396. $targetNode.append('<div id="note">' + foundName[1] + '</div>');
  4397. }
  4398. })
  4399. }
  4400. var hostSearchBox = document.getElementById("hostSearchBox");
  4401. hostSearchBox.addEventListener('keyup', function(){buildSitelist(hostSearchBox.value, allHostNames, elmHostList);}, false);
  4402. var hostSearchBox2 = document.getElementById("hostSearchBox2");
  4403. hostSearchBox2.addEventListener('keyup', function(){buildSitelist(hostSearchBox2.value, allContainerNames, elmContainerList);}, false);
  4404. $(".warlc-ui-select-all").click(selectAll).button();
  4405. $(".warlc-ui-select-none").click(selectNone).button();
  4406. $(".warlc-ui-select-invert").click(selectInvert).button();
  4407. $(".warlc-ui-buttonset").buttonset();
  4408. var inColorLive = document.getElementById("inputColorLive");
  4409. inColorLive.addEventListener('keyup', changeColorLive, false);
  4410.  
  4411. var inColorDead = document.getElementById("inputColorDead");
  4412. inColorDead.addEventListener('keyup', changeColorDead, false);
  4413.  
  4414. var inColorTemp = document.getElementById("inputColorTemp");
  4415. inColorTemp.addEventListener('keyup', changeColorTemp, false);
  4416.  
  4417. var inColorCont = document.getElementById("inputColorCont");
  4418. inColorCont.addEventListener('keyup', changeColorCont, false);
  4419. var inColorprem = document.getElementById("inputColorprem");
  4420. inColorprem.addEventListener('keyup', changeColorprem, false);
  4421. $("#refAnonymizer").change(changeRefAnonymizer);
  4422. //buttons and edit boxes init end
  4423.  
  4424. //icon sets radio buttons
  4425. var radioButtons = document.getElementsByName("warlciconset");
  4426. radioButtons[Icon_set].checked = "checked";
  4427.  
  4428. radioButtons[0].addEventListener("change", updateIconSet);
  4429. radioButtons[1].addEventListener("change", updateIconSet);
  4430. radioButtons[2].addEventListener("change", updateIconSet);
  4431. radioButtons[3].addEventListener("change", updateIconSet);
  4432. function updateIconSet()
  4433. {
  4434. GM_setValue("Icon_set", this.value * 1);
  4435. }
  4436. //
  4437. $('#showCustomRulesReference').click(function(e){
  4438. e.preventDefault();
  4439. $('#customRulesReference').toggle();
  4440. });
  4441. $('#Custom_rules_text')
  4442. .val(Custom_rules_text)
  4443. .change(saveCustomRules);
  4444. function saveCustomRules(e)
  4445. {
  4446. var cr = parseCustomRules(this.value);
  4447. if (cr.info.length)
  4448. 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, ' '));
  4449. GM_setValue('Custom_rules_text', this.value);
  4450. GM_setValue('last_custom_rules_nag', ''+new Date().getTime()); //reset nag
  4451. }
  4452. }
  4453.  
  4454. //begin standard link checking algorithm
  4455. function start(filterId)
  4456. {
  4457. var doNotLinkify = Do_not_linkify_DL_links;
  4458.  
  4459. // USER SELECTED FILE HOSTS INITIALIZATION START
  4460. var http_file_hosts = new Array(); //standard hostings
  4461. var http_file_hosts_coded = new Array(); //hostings which has to be decoded to obtain real checkable link
  4462. var http_file_hosts_obsolete = new Array(); //dead hostings
  4463. var http_file_hosts_headers_only = new Array(); //hostings with direct download, must be handled via headers only
  4464.  
  4465. initFileHosts();
  4466. initFileHostsHeadersOnly();
  4467. initFileHostsCustom(); //CustomRules
  4468. // USER SELECTED FILE HOSTS INITIALIZATION END
  4469.  
  4470. // LINKIFICATION START
  4471. var totalxpath = '';
  4472. var totalxpathcoded = '';
  4473. var totalxpathobsolete = '';
  4474. var totalxpathheadersonly = '';
  4475. var totalourls = '';
  4476.  
  4477. var filehostLen = http_file_hosts.length;
  4478. var filehostCodedLen = http_file_hosts_coded.length;
  4479. var filehostObsoleteLen = http_file_hosts_obsolete.length;
  4480. var filehostHeadersOnlyLen = http_file_hosts_headers_only.length;
  4481.  
  4482. var filehostIdx = filehostLen;
  4483. var filehostCodedIdx = filehostCodedLen;
  4484. var filehostObsoleteIdx = filehostObsoleteLen;
  4485. var filehostHeadersOnlyIdx = filehostHeadersOnlyLen;
  4486.  
  4487. if ((filehostIdx == 0) && (filehostCodedIdx == 0) && (filehostHeadersOnlyIdx == 0) && (filehostObsoleteIdx == 0))
  4488. return;
  4489.  
  4490. while (filehostIdx--)
  4491. {
  4492. totalourls += http_file_hosts[filehostIdx][0] + '|';
  4493. totalxpath += http_file_hosts[filehostIdx][4] + '|';
  4494. }
  4495.  
  4496. while (filehostCodedIdx--)
  4497. {
  4498. totalourls += http_file_hosts_coded[filehostCodedIdx][0] + '|';
  4499. totalxpathcoded += http_file_hosts_coded[filehostCodedIdx][3] + '|';
  4500. }
  4501.  
  4502. while (filehostObsoleteIdx--)
  4503. {
  4504. totalourls += http_file_hosts_obsolete[filehostObsoleteIdx][0] + '|';
  4505. totalxpathobsolete += http_file_hosts_obsolete[filehostObsoleteIdx][1] + '|';
  4506. }
  4507.  
  4508. while (filehostHeadersOnlyIdx--)
  4509. {
  4510. totalourls += http_file_hosts_headers_only[filehostHeadersOnlyIdx][0] + '|';
  4511. totalxpathheadersonly += http_file_hosts_headers_only[filehostHeadersOnlyIdx][3] + '|';
  4512. }
  4513.  
  4514. totalourls = totalourls.replace(/\|$/g, "");
  4515. //TODO: further refactoring needed
  4516. totalxpath = totalxpath.replace(/\]\|\/\/a\[/g, " or ");
  4517. totalxpath = totalxpath.replace(/\]\|/, ')]');
  4518. totalxpathcoded = totalxpathcoded.replace(/\]\|\/\/a\[/g, " or ");
  4519. totalxpathcoded = totalxpathcoded.replace(/\]\|/, ')]');
  4520. totalxpathobsolete = totalxpathobsolete.replace(/\]\|\/\/a\[/g, " or ");
  4521. totalxpathobsolete = totalxpathobsolete.replace(/\]\|/, ')]');
  4522. totalxpathheadersonly = totalxpathheadersonly.replace(/\]\|\/\/a\[/g, " or ");
  4523. totalxpathheadersonly = totalxpathheadersonly.replace(/\]\|/, ')]');
  4524. if (filterId != null) //insert id restriction in the xpath
  4525. {
  4526. totalxpath = totalxpath.replace(/\[/g, "[@class='" + filterId + "' and (");
  4527. totalxpathcoded = totalxpathcoded.replace(/\[/g, "[@class='" + filterId + "' and (");
  4528. totalxpathobsolete = totalxpathobsolete.replace(/\[/g, "[@class='" + filterId + "' and (");
  4529. totalxpathheadersonly = totalxpathheadersonly.replace(/\[/g, "[@class='" + filterId + "' and (");
  4530. }
  4531. else
  4532. {
  4533. totalxpath = totalxpath.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4534. totalxpathcoded = totalxpathcoded.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4535. totalxpathobsolete = totalxpathobsolete.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4536. totalxpathheadersonly = totalxpathheadersonly.replace(/\[/, "[((not(@class)) or (@class!='alive_link' and @class!='adead_link' and @class!='unava_link')) and (");
  4537. }
  4538. linkify(totalourls);
  4539. //LINKIFICATION END
  4540. //ENCRYPTED LINKS PROCESSING START
  4541. if (http_file_hosts_coded.length > 0)
  4542. {
  4543. var linksCoded = document.evaluate(totalxpathcoded, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4544.  
  4545. // decrypt coded links (redirects, link protectors etc.)
  4546. if (linksCoded.snapshotLength > 0)
  4547. {
  4548. var link;
  4549. var reallinkreg;
  4550. var reallinkcorrection;
  4551.  
  4552. if (filterId == null)
  4553. {
  4554. cLinksTotal += linksCoded.snapshotLength;
  4555. }
  4556.  
  4557. var y = linksCoded.snapshotLength - 1;
  4558. do
  4559. {
  4560. // linksCoded.snapshotItem(y).id = 'processing_link';
  4561. link = linksCoded.snapshotItem(y);
  4562. filehostIdx = filehostCodedLen;
  4563. while (filehostIdx--)
  4564. {
  4565. if (link.href.match(http_file_hosts_coded[filehostIdx][0]))
  4566. {
  4567. link.href = link.href.replace(/http:\/\/.*?(?:\?|=)http:\/\//, 'http://');
  4568. reallinkreg = http_file_hosts_coded[filehostIdx][1];
  4569. reallinkcorrection = http_file_hosts_coded[filehostIdx][2];
  4570.  
  4571. decurl(link, reallinkreg, reallinkcorrection);
  4572. break;
  4573. }
  4574. }
  4575. }
  4576. while (y--);
  4577. }
  4578. }
  4579. //ENCRYPTED LINKS PROCESSING END
  4580.  
  4581. //STANDARD LINKCHECKING START
  4582. if (http_file_hosts.length > 0)
  4583. {
  4584. var lianks = document.evaluate(totalxpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4585.  
  4586. if (filterId == null)
  4587. {
  4588. cLinksTotal += lianks.snapshotLength;
  4589. }
  4590.  
  4591. if (lianks.snapshotLength > 0)
  4592. {
  4593. var link;
  4594.  
  4595. var URL = "";
  4596. var name = "";
  4597. var isAliveRegex = "";
  4598. var isDeadRegex = "";
  4599. var isUnavaRegex = "";
  4600. var ispremRegex = "";
  4601. var tryLoop = false;
  4602.  
  4603. var y = lianks.snapshotLength;
  4604.  
  4605. while (y--)
  4606. {
  4607. link = lianks.snapshotItem(y);
  4608.  
  4609. filehostIdx = filehostLen;
  4610. while (filehostIdx--)
  4611. {
  4612. if (link.href.match(http_file_hosts[filehostIdx][0]))
  4613. {
  4614. link.href = link.href.replace(/http:\/\/.*?http:\/\//, 'http://'); //anonymizers
  4615. isAliveRegex = http_file_hosts[filehostIdx][1];
  4616. isDeadRegex = http_file_hosts[filehostIdx][2];
  4617. isUnavaRegex = http_file_hosts[filehostIdx][3];
  4618. ispremRegex = http_file_hosts[filehostIdx][6];
  4619. tryLoop = http_file_hosts[filehostIdx][5];
  4620.  
  4621. geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, tryLoop);
  4622.  
  4623. break;
  4624. }
  4625. }
  4626. }
  4627. }
  4628. }
  4629. //STANDARD LINKCHECKING END
  4630. //OBSOLETE FILE HOSTS PROCESSING START
  4631. if (filehostObsoleteLen > 0)
  4632. {
  4633. var obsoletelinks = document.evaluate(totalxpathobsolete, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4634.  
  4635. var obsoleteLink;
  4636.  
  4637. //check links
  4638. if (obsoletelinks.snapshotLength > 0)
  4639. {
  4640. var y = obsoletelinks.snapshotLength;
  4641.  
  4642. if (filterId == null)
  4643. {
  4644. cLinksTotal += y;
  4645. }
  4646.  
  4647. while (y--)
  4648. {
  4649. obsoleteLink = obsoletelinks.snapshotItem(y);
  4650.  
  4651. if (Display_tooltip_info)
  4652. {
  4653. obsoleteLink.warlc_error = 'Cause of error: <b>Obsolete filehosting.</b>';
  4654. }
  4655. displayTheCheckedLink(obsoleteLink, 'adead_link');
  4656. }
  4657. }
  4658. }
  4659. //OBSOLETE FILE HOSTS PROCESSING END
  4660.  
  4661. //DIRECT LINKCHECKING START
  4662. if (http_file_hosts_headers_only.length > 0)
  4663. {
  4664. var links = document.evaluate(totalxpathheadersonly, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  4665.  
  4666. //check links
  4667. if (links.snapshotLength > 0)
  4668. {
  4669. var link;
  4670. var isAliveRegex;
  4671. var isDeadRegex;
  4672. var ispremRegex;
  4673.  
  4674. var y = links.snapshotLength;
  4675.  
  4676.  
  4677. if (filterId == null)
  4678. {
  4679. cLinksTotal += y;
  4680. }
  4681.  
  4682. while (y--)
  4683. {
  4684. // links.snapshotItem(y).id = 'processing_link';
  4685. link = links.snapshotItem(y);
  4686. filehostIdx = filehostHeadersOnlyLen;
  4687. while (filehostIdx--)
  4688. {
  4689. if (link.href.match(http_file_hosts_headers_only[filehostIdx][0]))
  4690. {
  4691. link.href = link.href.replace(/http:\/\/.*?(?:\?|=)http:\/\//, 'http://');
  4692. isAliveRegex = http_file_hosts_headers_only[filehostIdx][1];
  4693. isDeadRegex = http_file_hosts_headers_only[filehostIdx][2];
  4694. ispremRegex = http_file_hosts_headers_only[filehostIdx][3];
  4695.  
  4696. geturlHeader(link, isAliveRegex, isDeadRegex, ispremRegex);
  4697.  
  4698. break;
  4699. }
  4700. }
  4701. }
  4702.  
  4703. }
  4704. }
  4705. //DIRECT LINKCHECKING END
  4706.  
  4707.  
  4708. //finds the real url on the page, replaces link.href with it and calls geturl
  4709. function decurl(link, reallinkreg, reallinkcorrection)
  4710. {
  4711.  
  4712. GM_xmlhttpRequest(
  4713. {
  4714. method: 'GET',
  4715. url: link.href,
  4716. headers: {
  4717. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  4718. 'Accept': 'text/xml',
  4719. 'Referer': ""
  4720. },
  4721. onload: function (result)
  4722. {
  4723. // cLinksProcessed++;
  4724.  
  4725. var reallink = result.responseText.match(reallinkreg)[0];
  4726. reallink = reallink.replace(new RegExp(reallinkcorrection, "g"), "");
  4727.  
  4728. link.href = reallink;
  4729.  
  4730. var i = http_file_hosts.length - 1;
  4731. do
  4732. {
  4733. if ((reallink.match(http_file_hosts[i][0])))
  4734. {
  4735. link.href = link.href.replace(/http:\/\/.*?\?http:\/\//, 'http://');
  4736. var isAliveRegex = http_file_hosts[i][1];
  4737. var isDeadRegex = http_file_hosts[i][2];
  4738. var isUnavaRegex = http_file_hosts[i][3];
  4739. var ispremRegex = http_file_hosts[i][4];
  4740.  
  4741. geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, 50);
  4742.  
  4743. break;
  4744. }
  4745. }
  4746. while (i--);
  4747. }
  4748. });
  4749. }
  4750.  
  4751. function randUA()
  4752. {
  4753. //TODO
  4754. }
  4755. //Processes link
  4756. //
  4757. // [string] link link URL
  4758. // [string] isAliveRegex alive link regex
  4759. // [string] isDeadRegex dead link regex
  4760. // [string] isUnavaRegex unavailable link regex
  4761. // [string] ispremRegex premium link regex
  4762. // [boolean] tryLoop repeats request until succeeded
  4763. function geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, tryLoop)
  4764. {
  4765. GM_xmlhttpRequest(
  4766. {
  4767. method: 'GET',
  4768. url: link.href,
  4769. headers: {
  4770. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  4771. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  4772. 'Referer': ""
  4773. },
  4774. onload: function (result)
  4775. {
  4776. var res = result.responseText;
  4777. if (result.responseHeaders.match(/Content-Disposition: attachment; filename=/))//direct download, simple version
  4778. {
  4779. displayTheCheckedLink(link, 'alive_link');
  4780. return;
  4781. }
  4782.  
  4783. if (res.match(isAliveRegex))
  4784. {
  4785. displayTheCheckedLink(link, 'alive_link');
  4786. return;
  4787. }
  4788.  
  4789. if (res.match(isDeadRegex))
  4790. {
  4791. displayTheCheckedLink(link, 'adead_link');
  4792. return;
  4793. }
  4794.  
  4795. if (isUnavaRegex && res.match(isUnavaRegex))
  4796. {
  4797. displayTheCheckedLink(link, 'unava_link');
  4798. return;
  4799. }
  4800. if (res.match(ispremRegex))
  4801. {
  4802. displayTheCheckedLink(link, 'prem_link');
  4803. return;
  4804. }
  4805.  
  4806. var resStatus = result.status;
  4807.  
  4808. if (resStatus == 404)
  4809. {
  4810. displayTheCheckedLink(link, 'adead_link');
  4811. }
  4812. if (resStatus == 500 || resStatus == 503 || resStatus == 403) //not found/available/temp. unava
  4813. {
  4814. if (tryLoop)
  4815. {
  4816. //wait 1-5 seconds and repeat the request
  4817. setTimeout(function(){geturl(link, isAliveRegex, isDeadRegex, isUnavaRegex, ispremRegex, tryLoop)}, 1000 + (Math.random() * 4000));
  4818. }
  4819. else
  4820. {
  4821. displayTheCheckedLink(link, 'unava_link');
  4822. }
  4823.  
  4824. return;
  4825. }
  4826. },
  4827. onerror: function ()
  4828. {
  4829. displayTheCheckedLink(link, 'unava_link');
  4830. }
  4831. });
  4832. }
  4833.  
  4834. function geturlHeader(link, isAliveRegex, isDeadRegex, ispremRegex)
  4835. {
  4836. GM_xmlhttpRequest(
  4837. {
  4838. method: 'HEAD',
  4839. url: link.href,
  4840. headers: {
  4841. 'User-agent': 'Mozilla/4.0 [en] (Windows NT 6.0; U)',
  4842. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  4843. 'Accept-Charset': 'windows-1250,utf-8;q=0.7,*;q=0.7',
  4844. 'Referer': ""
  4845. },
  4846. onload: function (result)
  4847. {
  4848. var resStatus = result.status;
  4849. var resHeaders = "";
  4850. if (resStatus == 403 || resStatus == 404 || resStatus == 500) //not found/available
  4851. {
  4852. displayTheCheckedLink(link, 'adead_link');
  4853. return;
  4854. }
  4855.  
  4856. resHeaders = result.responseHeaders;
  4857.  
  4858. if (resHeaders.match(isDeadRegex))
  4859. {
  4860. displayTheCheckedLink(link, 'adead_link');
  4861. return;
  4862. }
  4863.  
  4864. if (resHeaders.match(isAliveRegex))
  4865. {
  4866. displayTheCheckedLink(link, 'alive_link');
  4867. return;
  4868. }
  4869. if (resHeaders.match(ispremRegex))
  4870. {
  4871. displayTheCheckedLink(link, 'prem_link');
  4872. return;
  4873. }
  4874. },
  4875. onerror: function ()
  4876. {
  4877. displayTheCheckedLink(link, 'unava_link');
  4878. }
  4879. });
  4880. }
  4881.  
  4882. //Delinkfifies the <a> element object
  4883. function delinkifyLink(link)
  4884. {
  4885. var spanElm = document.createElement("span");
  4886. spanElm.className = link.className;
  4887. spanElm.innerHTML = link.innerHTML;
  4888.  
  4889. if (Display_tooltip_info)
  4890. {
  4891. spanElm.href = link.href;
  4892. spanElm.warlc_error = link.warlc_error;
  4893. switch (link.className){
  4894. case "alive_link": spanElm.addEventListener("mouseover", displayTooltipInfo, false); break
  4895. case "adead_link": spanElm.addEventListener("mouseover", displayTooltipError, false); break;
  4896. case "unava_link": //reserved
  4897. case "prem_link": spanElm.addEventListener("mouseover", displayTooltipError, false); break;
  4898. default:
  4899. }
  4900. }
  4901. link.parentNode.replaceChild(spanElm, link);
  4902. }
  4903.  
  4904. //Assigns result status to the <a> element object and calls delinkifying eventually
  4905. //Possible result states: adead_link, alive_link, unava_link, prem_link
  4906. function displayTheCheckedLink(link, resultStatus)
  4907. {
  4908. link.className = resultStatus;
  4909. link.href = Ref_anonymize_service + link.href;
  4910. if (Display_tooltip_info)
  4911. {
  4912. switch (resultStatus){
  4913. case "alive_link": link.addEventListener("mouseover", displayTooltipInfo, false); break
  4914. case "adead_link": link.addEventListener("mouseover", displayTooltipError, false); break;
  4915. case "unava_link": //reserved
  4916. case "prem_link": link.addEventListener("mouseover", displayTooltipInfo, false); break
  4917. default:
  4918. }
  4919. }
  4920. if (doNotLinkify)
  4921. {
  4922. delinkifyLink(link);
  4923. }
  4924. cLinksProcessed++;
  4925.  
  4926. if (resultStatus == "alive_link")
  4927. {
  4928. cLinksAlive++;
  4929. return;
  4930. }
  4931.  
  4932. if (resultStatus == "adead_link")
  4933. {
  4934. cLinksDead++;
  4935. return;
  4936. }
  4937.  
  4938. if (resultStatus == "unava_link")
  4939. {
  4940. cLinksUnava++;
  4941. }
  4942. if (resultStatus == "prem_link")
  4943. {
  4944. cLinksprem++;
  4945. return;
  4946. }
  4947. }
  4948.  
  4949.  
  4950. function initFileHosts()
  4951. {
  4952.  
  4953. function addObsoleteHost(linkRegex, xpathEx)
  4954. {
  4955. var host = new Array(2);
  4956. host[0] = linkRegex;
  4957. host[1] = xpathEx;
  4958. http_file_hosts_obsolete.push(host);
  4959. }
  4960.  
  4961. //obsolete file hosts init start
  4962. if (Obsolete_file_hosts)
  4963. {
  4964. addObsoleteHost("uloz\.cz\/show\/file","//a[contains(@href,'uloz.cz')]");
  4965. addObsoleteHost("storage\\.to\/get","//a[contains(@href,'storage.to')]");
  4966. addObsoleteHost("iskladka\\.cz\/download","//a[contains(@href,'iskladka.cz')]");
  4967. addObsoleteHost("file-rack\\.com\/files","//a[contains(@href,'file-rack.com')]");
  4968. addObsoleteHost("fast-load\\.net\/(\/)?index","//a[contains(@href,'fast-load.net')]");
  4969. addObsoleteHost("subory\\.sk\/download","//a[contains(@href,'subory.sk')]");
  4970. addObsoleteHost("bigandfree\\.com\/\\d+","//a[contains(@href,'bigandfree.com')]");
  4971. addObsoleteHost("fileop\\.com\/\\w+","//a[contains(@href,'fileop.com')]");
  4972. addObsoleteHost("mujsoubor\\.cz\/file\/","//a[contains(@href,'mujsoubor.cz')]");
  4973. addObsoleteHost("sendfile\\.to\/\\w+","//a[contains(@href,'sendfile.to')]");
  4974. addObsoleteHost("superfastfile\\.com\/\\w+","//a[contains(@href,'superfastfile.com')]");
  4975. addObsoleteHost("quickyshare\\.com\/\\w+","//a[contains(@href,'quickyshare.com/')]");
  4976. addObsoleteHost("duckload\\.com\/(?:d|play)","//a[contains(@href,'duckload.com')]");
  4977. addObsoleteHost("uploadstore\\.net\/\\w+","//a[contains(@href,'uploadstore.net')]");
  4978. addObsoleteHost("meinupload\\.com\/dl\/\\d+","//a[contains(@href,'meinupload.com/dl')]");
  4979. addObsoleteHost("dualshare\\.com\/\\w+","//a[contains(@href,'dualshare.com')]");
  4980. addObsoleteHost("2xupload\\.(?:to|de)\/file\/\\w+","//a[contains(@href,'2xupload.to') or contains(@href,'2xupload.de')]");
  4981. addObsoleteHost("oxedion\\.com\/index\\.php\/download\/\\w+","//a[contains(@href,'oxedion.com/index')]");
  4982. addObsoleteHost("uploadline\\.com\/\\d+","//a[contains(@href,'uploadline.com')]");
  4983. addObsoleteHost("dll\\.bz\/file\/\\d+","//a[contains(@href,'dll.bz/file')]");
  4984. addObsoleteHost("movieshare\\.in\/\\w+","//a[contains(@href,'movieshare.in')]");
  4985. addObsoleteHost("milledrive\\.com\/files\/\\d+","//a[contains(@href,'milledrive.com')]");
  4986. addObsoleteHost("quickupload\\.net\/\\w+","//a[contains(@href,'quickupload.net')]");
  4987. addObsoleteHost("safelink\\.in\/\\w+","//a[contains(@href,'safelink.in')]");
  4988. addObsoleteHost("pyramidfiles\\.com\/\\w+","//a[contains(@href,'pyramidfiles.com/')]");
  4989. addObsoleteHost("(?:cloudnator|shragle)\\.com\/files","//a[contains(@href,'cloudnator.com/files') or contains(@href,'shragle.com/files')]");
  4990. addObsoleteHost("batshare\\.com\/\\w+","//a[contains(@href,'batshare.com/')]");
  4991. addObsoleteHost("bitroad\\.net\/download","//a[contains(@href,'bitroad.net/download')]");
  4992. addObsoleteHost("metadivx\\.com\/\\w+","//a[contains(@href,'metadivx.com')]");
  4993. addObsoleteHost("filegaze\\.com\/\\w+","//a[contains(@href,'filegaze.com/')]");
  4994. addObsoleteHost("bulletupload\\.com\/\\w+","//a[contains(@href,'bulletupload.com/')]");
  4995. addObsoleteHost("sharefilehost\\.com\/\\w+","//a[contains(@href,'sharefilehost.com/')]");
  4996. addObsoleteHost("fireuploads\\.net\/\\w+","//a[contains(@href,'fireuploads.net/')]");
  4997. addObsoleteHost("divxlink\\.com\/\\w+","//a[contains(@href,'divxlink.com/')]");
  4998. addObsoleteHost("bzlink\\.us\/\\w+","//a[contains(@href,'bzlink.us/')]");
  4999. addObsoleteHost("filetechnology\\.com\/\\w+","//a[contains(@href,'filetechnology.com/')]");
  5000. addObsoleteHost("filecosy\\.com\/\\w+","//a[contains(@href,'filecosy.com/')]");
  5001. addObsoleteHost("fileserver\\.cc\/\\w+","//a[contains(@href,'fileserver.cc/')]");
  5002. addObsoleteHost("shafiles\\.me\/\\w+","//a[contains(@href,'shafiles.me/')]");
  5003. addObsoleteHost("xfileshare\\.eu\/\\w+","//a[contains(@href,'xfileshare.eu/')]");
  5004. addObsoleteHost("uploadboost\\.com\/\\w+","//a[contains(@href,'uploadboost.com/')]");
  5005. addObsoleteHost("uploadoz\\.com\/\\w+","//a[contains(@href,'uploadoz.com/')]");
  5006. addObsoleteHost("ihostia\\.com\/\\w+","//a[contains(@href,'ihostia.com/')]");
  5007. addObsoleteHost("shareupload\\.com\/\\w+","//a[contains(@href,'shareupload.com/')]");
  5008. addObsoleteHost("ovfile\\.com\/\\w+","//a[contains(@href,'ovfile.com/')]");
  5009. addObsoleteHost("stahuj\\.to\/\\w+","//a[contains(@href,'stahuj.to/')]");
  5010. addObsoleteHost("gigfiles\\.net\/\\w+","//a[contains(@href,'gigfiles.net/')]");
  5011. addObsoleteHost("vidhog\\.com\/\\w+","//a[contains(@href,'vidhog.com/')]");
  5012. addObsoleteHost("filelaser\\.com\/\\w+","//a[contains(@href,'filelaser.com/')]");
  5013. addObsoleteHost("holderfile\\.com\/\\w+","//a[contains(@href,'holderfile.com/')]");
  5014. addObsoleteHost("fileduct\\.(?:com|net)\/\\w+","//a[contains(@href,'fileduct.com/') or contains(@href,'fileduct.net')]");
  5015. addObsoleteHost("filefat\\.com\/\\w+","//a[contains(@href,'filefat.com/')]");
  5016. addObsoleteHost("restfile\\.com\/\\w+","//a[contains(@href,'restfile.com/')]");
  5017. addObsoleteHost("filemashine\\.com\\/download\/\\w+","//a[contains(@href,'filemashine.com/download')]");
  5018. addObsoleteHost("cloudnxt\\.net\/\\w+","//a[contains(@href,'cloudnxt.net/')]");
  5019. addObsoleteHost("uploadrack\\.com\/\\w+","//a[contains(@href,'uploadrack.com')]");
  5020. addObsoleteHost("teradepot\\.com\/\\w+","//a[contains(@href,'teradepot.com')]");
  5021. addObsoleteHost("dataup\\.to\/\\d+\/","//a[contains(@href,'dataup.to')]");
  5022. addObsoleteHost("upit\\.to\/file:\\d+","//a[contains(@href,'upit.to/file')]");
  5023. addObsoleteHost("badongo\\.(?:com|net)\/(?:\\w\\w\/|)(?:vid|cfile|file|pt)\/\\w+","//a[contains(@href,'badongo.com') or contains(@href,'badongo.net')]");
  5024. addObsoleteHost("driveway\\.com\/\\w+","//a[contains(@href,'driveway.com')]");
  5025. addObsoleteHost("eatlime\\.com\/download","//a[contains(@href,'eatlime.com/download')]");
  5026. addObsoleteHost("a2zuploads\\.com\/id\\w+","//a[contains(@href,'a2zuploads.com/id')]");
  5027. addObsoleteHost("friendlyfiles\\.net\/download\/\\w+\/","//a[contains(@href,'friendlyfiles.net/download')]");
  5028. addObsoleteHost("flyfile\\.us\/\\w+","//a[contains(@href,'flyfile.us')]");
  5029. addObsoleteHost("speedyshare\\.com\/\\w+","//a[contains(@href,'speedyshare.com')]");
  5030. addObsoleteHost("brontofile\\.com\/download","//a[contains(@href,'brontofile.com/download')]");
  5031. addObsoleteHost("uploadspace\\.eu\/\\w+","//a[contains(@href,'uploadspace.eu')]");
  5032. addObsoleteHost("fooget\\.com\/\\w+","//a[contains(@href,'fooget.com/')]");
  5033. addObsoleteHost("file-bit.net\/\\w+","//a[contains(@href,'file-bit.net/')]");
  5034. addObsoleteHost("keepfile\\.com\/\\w+","//a[contains(@href,'http://keepfile.com')]");
  5035. addObsoleteHost("piggyshare\\.com\/file\/\\w+","//a[contains(@href,'piggyshare.com')]");
  5036. addObsoleteHost("filecrown\\.com\/\\w+","//a[contains(@href,'filecrown.com')]");
  5037. addObsoleteHost("6giga\\.com\/\\w+","//a[contains(@href,'6giga.com')]");
  5038. addObsoleteHost("uploadjockey\\.com\/download\/\\w+","//a[contains(@href,'uploadjockey.com/download')]");
  5039. addObsoleteHost("bluehost\\.to\/dl=\\w+","//a[contains(@href,'bluehost.to')]");
  5040. addObsoleteHost("coolshare\\.cz\/stahnout\/\\w+","//a[contains(@href,'coolshare.cz/stahnout')]");
  5041. addObsoleteHost("filegu\\.ru\/f\/\\w+","//a[contains(@href,'filegu.ru/f')]");
  5042. addObsoleteHost("filebase\\.to\/files\/\\d+\/","//a[contains(@href,'filebase.to/files')]");
  5043. addObsoleteHost("kickload\\.com\/(?:file|get)\/","//a[contains(@href,'kickload.com/file') or contains(@href,'kickload.com/get')]");
  5044. addObsoleteHost("up-file\\.com\/files\/download\/\\w+\/","//a[contains(@href,'up-file.com/download')]");
  5045. addObsoleteHost("ezyfile\\.net\/\\w+","//a[contains(@href,'ezyfile.net/')]");
  5046. addObsoleteHost("k2files\\.com\/files","//a[contains(@href,'k2files.com/files')]");
  5047. addObsoleteHost("aiotool\\.net\/\\w+","//a[contains(@href,'aiotool.net/')]");
  5048. addObsoleteHost("xvideos\\.com\/files\/\\d+\/\\w+","//a[contains(@href,'xvideos.com/files')]");
  5049. addObsoleteHost("filebling\\.com\/dl\/\\d+\/\\d+\/\\w+","//a[contains(@href,'filebling.com/dl')]");
  5050. addObsoleteHost("loaded\\.it\/divx\/\\w+","//a[contains(@href,'loaded.it/divx')]");
  5051. addObsoleteHost("uploadcell\\.com\/\\w+\/\\w+","//a[contains(@href,'uploadcell.com')]");
  5052. addObsoleteHost("jakfile\\.com\/\\w+","//a[contains(@href,'jakfile.com/')]");
  5053. addObsoleteHost("uploadshare\\.cz\/download\/\\w+\/\\w+","//a[contains(@href,'uploadshare.cz/download')]");
  5054. addObsoleteHost("mangoshare\\.com\/\\w+","//a[contains(@href,'mangoshare.com')]");
  5055. addObsoleteHost("ugotfile\\.com\/file\/\\d+\/\\w+","//a[contains(@href,'ugotfile.com/file')]");
  5056. addObsoleteHost("filestab\\.com\/\\w+","//a[contains(@href,'filestab.com')]");
  5057. addObsoleteHost("dotavi\\.com\/\\w+\/.","//a[contains(@href,'dotavi.com/')]");
  5058. addObsoleteHost("crazyupload\\.com\/\\w+","//a[contains(@href,'crazyupload.com')]");
  5059. addObsoleteHost("gaiafile\\.com\/\\w+","//a[contains(@href,'gaiafile.com')]");
  5060. addObsoleteHost("sharejunky\\.com\/\\w+","//a[contains(@href,'sharejunky.com')]");
  5061. addObsoleteHost("fileho\\.com\/download\/\\d+","//a[contains(@href,'fileho.com/download')]");
  5062. addObsoleteHost("(?:bigandfree|BigAndFree)\\.com\/\\d+","//a[contains(@href,'bigandfree.com') or contains(@href,'BigAndFree.com')]");
  5063. addObsoleteHost("bigfile\\.in\/\\w+","//a[contains(@href,'bigfile.in')]");
  5064. addObsoleteHost("bigshare\\.eu\/download\\.php\\?id=","//a[contains(@href,'bigshare.eu/download.php')]");
  5065. addObsoleteHost("dahosting\\.org\/dl\/\\w+","//a[contains(@href,'dahosting.org/dl')]");
  5066. addObsoleteHost("digisofts\\.net\/\\w+","//a[contains(@href,'digisofts.net')]");
  5067. addObsoleteHost("file4save\\.com\/\\w+\/\\w+","//a[contains(@href,'file4save.com')]");
  5068. addObsoleteHost("filereactor\\.com\/\\w+","//a[contains(@href,'filereactor.com/')]");
  5069. addObsoleteHost("filechip\\.com\/\\w+","//a[contains(@href,'filechip.com')]");
  5070. addObsoleteHost("filescloud\\.com\/\\w+\/\\w+","//a[contains(@href,'filescloud.com')]");
  5071. addObsoleteHost("saveqube\\.com\/getfile\/\\w+","//a[contains(@href,'saveqube.com/getfile')]");
  5072. addObsoleteHost("www2\\.turboshare\\.de\/v\/\\d+","//a[contains(@href,'turboshare.de/v')]");
  5073. addObsoleteHost("z-upload\\.com\/\\w+","//a[contains(@href,'z-upload.com')]");
  5074. addObsoleteHost("youshare\\.com\/view\\.php","//a[contains(@href,'youshare.com/view')]");
  5075. addObsoleteHost("jiffyupload\\.com\/\\w+","//a[contains(@href,'jiffyupload.com')]");
  5076. addObsoleteHost("gigeshare\\.com\/preview\/\\w+","//a[contains(@href,'gigeshare.com')]");
  5077. addObsoleteHost("datenklo\\.net\/dl","//a[contains(@href,'datenklo.net')]");
  5078. addObsoleteHost("upload\\.dj\/download\\.php\\?id=\\w+","//a[contains(@href,'upload.dj/download.php')]");
  5079. addObsoleteHost("loadfiles\\.in\/\\w+\/","//a[contains(@href,'loadfiles.in')]");
  5080. addObsoleteHost("upit\\.to\/file:\\w+\/","//a[contains(@href,'upit.to/file')]");
  5081. addObsoleteHost("zshare\\.net\/(?:download|video|audio)\/\\w+","//a[contains(@href,'zshare.net/')]");
  5082. addObsoleteHost("refile\\.net\/f\/\\?\\w+","//a[contains(@href,'refile.net/f/')]");
  5083. addObsoleteHost("dsfileshare\\.com\/download","//a[contains(@href,'dsfileshare.com/download')]");
  5084. addObsoleteHost("sharesimple\\.net\/\\w{2}\/download","//a[contains(@href,'sharesimple.net')]");
  5085. addObsoleteHost("(?:s\\d+\\.|)4files\\.net\/\\d+","//a[contains(@href,'4files.net')]");
  5086. addObsoleteHost("odsiebie\\.com\/pokaz\/\\d+","//a[contains(@href,'odsiebie.com/pokaz')]");
  5087. addObsoleteHost("filenavi\\.com\/direct\/\\w+","//a[contains(@href,'filenavi.com/direct')]");
  5088. addObsoleteHost("3oof\\.com\/\\w+","//a[contains(@href,'3oof.com/')]");
  5089. addObsoleteHost("meshwaar\\.com\/\\w+","//a[contains(@href,'meshwaar.com')]");
  5090. addObsoleteHost("maxupload\\.com\/files\/\\w+","//a[contains(@href,'maxupload.com/files')]");
  5091. addObsoleteHost("share\\.cx\/videos\/\\d+","//a[contains(@href,'share.cx/videos')]");
  5092. addObsoleteHost("atserver\\.eu\/(?:\\w{2}\/|)download\/\\d+","//a[contains(@href,'atserver.eu')]");
  5093. addObsoleteHost("file2upload\\.net\/download\/\\d+","//a[contains(@href,'file2upload.net/download')]");
  5094. addObsoleteHost("filebling\\.com\/\\w+","//a[contains(@href,'filebling.com')]");
  5095. addObsoleteHost("turboshare\\.(?:eu|com)\/files","//a[contains(@href,'turboshare.') and contains(@href,'/files')]");
  5096. addObsoleteHost("rarhost\\.com\/download","//a[contains(@href,'rarhost.com/download')]");
  5097. addObsoleteHost("isharehd\\.com\/\\w+","//a[contains(@href,'isharehd.com')]");
  5098. addObsoleteHost("datenklo\\.net\/file\\.php\\?id=\\w+","//a[contains(@href,'datenklo.net/file.php')]");
  5099. addObsoleteHost("file2share\\.biz\/download\\.php\\?id=\\w+","//a[contains(@href,'file2share.biz/download.php')]");
  5100. addObsoleteHost("savefiles\\.net\/d\/\\w+\\.html","//a[contains(@href,'savefiles.net/d')]");
  5101. addObsoleteHost("bestsharing\\.com\/files\/\\w+","//a[contains(@href,'bestsharing.com/files')]");
  5102. addObsoleteHost("filecache\\.de\/\\d+","//a[contains(@href,'filecache.de/')]");
  5103. addObsoleteHost("i741\\.com\/files\/\\w+","//a[contains(@href,'i741.com/files')]");
  5104. addObsoleteHost("dataup\\.de\/\\d+","//a[contains(@href,'dataup.de')]");
  5105. addObsoleteHost("fofly\\.com\/\\w+","//a[contains(@href,'fofly.com')]");
  5106. addObsoleteHost("shareonall\\.com\/\\w+","//a[contains(@href,'shareonall.com')]");
  5107. addObsoleteHost("sexuploader\\.com\/(?:|..\/)\\?[d|v]=\\w{8}","//a[contains(@href,'sexuploader.com')]");
  5108. 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')]");
  5109. addObsoleteHost("uploadhyper\\.com\/file\/","//a[contains(@href,'uploadhyper.com')]");
  5110. addObsoleteHost("filespawn\\.com\/file\/","//a[contains(@href,'filespawn.com')]");
  5111. addObsoleteHost("caizzii\\.com\/(?:download|\\?file=)","//a[contains(@href,'caizzii.com')]");
  5112. addObsoleteHost("volnyweb\\.cz\/files\/get\/[\\w-_]+","//a[contains(@href,'volnyweb.cz/files')]");
  5113. addObsoleteHost("gotupload\\.com\/\\w+","//a[contains(@href,'gotupload.com/')]");
  5114. addObsoleteHost("mooload\\.com\/new\/file\\.php\\?file=files\/\\d+\/\\d+","//a[contains(@href,'mooload.com/new/file')]");
  5115. addObsoleteHost("z\\d+\\.zupload\\.com\/download\\.php\\?file=getfile&filepath=\\d+","//a[contains(@href,'zupload.com/download')]");
  5116. addObsoleteHost("mytempdir\\.com\/\\d+","//a[contains(@href,'mytempdir.com/')]");
  5117. addObsoleteHost("usershare\\.net\/\\w+","//a[contains(@href,'usershare.net/')]");
  5118. addObsoleteHost("qshare\\.com\/get\/\\d+\/.","//a[contains(@href,'qshare.com/get')]");
  5119. addObsoleteHost("filescash\\.net\/file\/\\d+","//a[contains(@href,'filescash.net/file')]");
  5120. addObsoleteHost("metahyper\\.com\/\\w+","//a[contains(@href,'metahyper.com/')]");
  5121. addObsoleteHost("combozip\\.com\/\\w+","//a[contains(@href,'combozip.com/')]");
  5122. addObsoleteHost("anonstream\\.com\/get_\\w+","//a[contains(@href,'anonstream.com/get_')]");
  5123. addObsoleteHost("x7\\.to\/\\w+","//a[contains(@href,'x7.to/')]");
  5124. addObsoleteHost("uploadbox\\.com\/files\/\\w+","//a[contains(@href,'uploadbox.com/files')]");
  5125. addObsoleteHost("(?:flyupload\\.)?(?:enterupload|flyupload)\\.com\/[\\?\\w]+","//a[contains(@href,'enterupload.com/') or contains(@href,'flyupload.com/')]");
  5126. addObsoleteHost("filepoint\\.de\/dl\/\\w+","//a[contains(@href,'filepoint.de/dl')]");
  5127. addObsoleteHost("icushare\\.com\/\\w+","//a[contains(@href,'icushare.com/')]");
  5128. addObsoleteHost("oron\\.com\/\\w+","//a[contains(@href,'oron.com/')]");
  5129. addObsoleteHost("mystream\\.to\/file\\-\\d+","//a[contains(@href,'mystream.to/file')]");
  5130. addObsoleteHost("x-fs\\.com\/download\\.php\\?id=\\w+","//a[contains(@href,'x-fs.com/download')]");
  5131. addObsoleteHost("srapid\\.eu\/\\w+","//a[contains(@href,'srapid.eu/')]");
  5132. addObsoleteHost("shareshared\\.com\/\\w+","//a[contains(@href,'shareshared.com/')]");
  5133. addObsoleteHost("sosame\\.cz\/\\w+","//a[contains(@href,'sosame.cz/')]");
  5134. addObsoleteHost("s\\d+\\.filesdump\\.com\/file\/\\w+","//a[contains(@href,'filesdump.com/file')]");
  5135. addObsoleteHost("2-klicks\\.de\/\\?d=\\w+","//a[contains(@href,'2-klicks.de/?d=')]");
  5136. addObsoleteHost("silofiles\\.com\/file\/\\d+","//a[contains(@href,'silofiles.com/file')]");
  5137. addObsoleteHost("upfile\\.in\/\\w+","//a[contains(@href,'upfile.in/')]");
  5138. addObsoleteHost("filehook\\.com\/\\w+","//a[contains(@href,'filehook.com/')]");
  5139. addObsoleteHost("mojofile\\.com\/\\w+","//a[contains(@href,'mojofile.com/')]");
  5140. addObsoleteHost("cloudcache\\.cc\/\\w+","//a[contains(@href,'cloudcache.cc/')]");
  5141. addObsoleteHost("1hostclick\\.com\/\\w+","//a[contains(@href,'1hostclick.com/')]");
  5142. addObsoleteHost("4bytez\\.com\/\\w+","//a[contains(@href,'4bytez.com/')]");
  5143. addObsoleteHost("uploadking\\.com\/\\w+","//a[contains(@href,'uploadking.com/')]");
  5144. addObsoleteHost("nahraj\\.cz\/(?:content|down)\/\\w+","//a[contains(@href,'nahraj.cz/')]");
  5145. addObsoleteHost("megarapid\\.eu\/files\/\\d+","//a[contains(@href,'megarapid.eu/files')]");
  5146. addObsoleteHost("(?:fileserve|uploadstation)\\.com\/(?:file|list)\/\\w+","//a[contains(@href,'fileserve.com/') or contains(@href,'uploadstation.com/')]");
  5147. addObsoleteHost("uploadhere\\.com\/\\w+","//a[contains(@href,'uploadhere.com/')]");
  5148. addObsoleteHost("dualshare\\.com\/\\w+","//a[contains(@href,'dualshare.com/')]");
  5149. addObsoleteHost("yourfilehost\\.com\/media","//a[contains(@href,'yourfilehost.com/media')]");
  5150. addObsoleteHost("ftp2share\\.com\/file\/\\w+","//a[contains(@href,'ftp2share.com/file')]");
  5151. addObsoleteHost("storeandserve\\.com\/download\/\\d+","//a[contains(@href,'storeandserve.com/download')]");
  5152. addObsoleteHost("mountfile\\.com\/file(?:\/\\w+){2}","//a[contains(@href,'mountfile.com/file')]");
  5153. addObsoleteHost("save\\.am\/files\/\\w+","//a[contains(@href,'save.am/files')]");
  5154. addObsoleteHost("transitfiles\\.com\/dl\/\\w+","//a[contains(@href,'transitfiles.com/dl')]");
  5155. addObsoleteHost("smartuploader\\.com\/file\\.php\\?f=\\d+","//a[contains(@href,'smartuploader.com/file.php?=')]");
  5156. addObsoleteHost("skipfile\\.com\/\\w+","//a[contains(@href,'skipfile.com/')]");
  5157. addObsoleteHost("stahnu\\.to\/[\\w\\?]+","//a[contains(@href,'stahnu.to/')]");
  5158. addObsoleteHost("flyshare\.cz\/(?:stahni\/|)\\d+","//a[contains(@href,'flyshare.cz/')]");
  5159. addObsoleteHost("(?:ddlani\\.me|ddlanime\\.com)\/\\w+","//a[contains(@href,'ddlani.me/') or contains(@href,'ddlanime.com/')]");
  5160. addObsoleteHost("loadly\\.com\/\\w+","//a[contains(@href,'loadly.com/')]");
  5161. addObsoleteHost("groovefile\\.com\/\\w+","//a[contains(@href,'groovefile.com/')]");
  5162. addObsoleteHost("filezlot\\.com\/\\w+","//a[contains(@href,'filezlot.com/')]");
  5163. addObsoleteHost("shareator\\.(?:net|com)\/\\w+","//a[contains(@href,'shareator.')]");
  5164. addObsoleteHost("yabadaba\\.ru\/files\/","//a[contains(@href,'yabadaba.ru/files/')]");
  5165. addObsoleteHost("rapidhide\\.com\/download\\.php\\?file=\\w+","//a[contains(@href,'rapidhide.com/download.php')]");
  5166. addObsoleteHost("filejungle\\.com\/[fl]\/\\w+","//a[contains(@href,'filejungle.com/')]");
  5167. addObsoleteHost("kewlshare\\.com\/dl\/\\d+","//a[contains(@href,'kewlshare.com/dl')]");
  5168. addObsoleteHost("petandrive\\.com\/file\/\\w+","//a[contains(@href,'petandrive.com/file')]");
  5169. addObsoleteHost("onionshare\\.com\/\\w+","//a[contains(@href,'onionshare.com/')]");
  5170. addObsoleteHost("rapidable\\.com\/\\w+\/download\\.php\\?id=","//a[contains(@href,'rapidable.com/')]");
  5171. addObsoleteHost("filesdump\\.com\/file\/\\w+\/\\d+","//a[contains(@href,'filesdump.com/file')]");
  5172. addObsoleteHost("file2box\\.(?:net|com)\/\\w+","//a[contains(@href,'file2box.')]");
  5173. addObsoleteHost("(?:filesonic|sharingmatrix|wupload)(?:\\.\\w+){1,2}\/(?:file|folder)\/\\w+","//a[contains(@href,'filesonic.') or contains(@href,'sharingmatrix.com') or contains(@href,'wupload.')]");
  5174. // addObsoleteHost("wizzupload\\.com\/\\w+","//a[contains(@href,'wizzupload.com/')]");
  5175. addObsoleteHost("bloggerarticles\\.com\/\\w+","//a[contains(@href,'bloggerarticles.com/')]");
  5176. addObsoleteHost("mojedata\\.sk/","//a[contains(@href,'mojedata.sk/')]");
  5177. addObsoleteHost("sharpfile\\.com\/\\w+","//a[contains(@href,'sharpfile.com/')]");
  5178. addObsoleteHost("upgrand\\.com\/\\w+","//a[contains(@href,'upgrand.com/')]");
  5179. addObsoleteHost("nasdilej\\.cz\/\\w+","//a[contains(@href,'nasdilej.cz/')]");
  5180. addObsoleteHost("mediatack\\.cz\/stahuj/\\w+","//a[contains(@href,'mediatack.cz/stahuj/')]");
  5181. addObsoleteHost("share-it\\.to\/file/\\w+","//a[contains(@href,'share-it.to/file/')]");
  5182. addObsoleteHost("primeupload\\.com\/file/\\w+","//a[contains(@href,'primeupload.com/file/')]");
  5183. addObsoleteHost("(?:uploads\\.glumbo|glumbouploads)\\.com\/\\w+","//a[contains(@href,'uploads.glumbo.com') or contains(@href,'glumbouploads.com')]");
  5184. addObsoleteHost("filebeer\\.info\/\\w+","//a[contains(@href,'filebeer.info/')]");
  5185. addObsoleteHost("baberepublic\\.com\/link\/\\w+","//a[contains(@href,'baberepublic.com/link/')]");
  5186. addObsoleteHost("xtu\\.me\/\\w+","//a[contains(@href,'xtu.me/')]");
  5187. addObsoleteHost("sharebase\\.de\/files\/\\w+","//a[contains(@href,'sharebase.de/files/')]");
  5188. addObsoleteHost("filerobo\\.com\/\\w+","//a[contains(@href,'filerobo.com/')]");
  5189. addObsoleteHost("filevelocity\\.com\/\\w+","//a[contains(@href,'filevelocity.com/')]");
  5190. addObsoleteHost("filezpro\\.com\/\\w+","//a[contains(@href,'filezpro.com/')]");
  5191. addObsoleteHost("file4sharing\\.com\/\\w+","//a[contains(@href,'file4sharing.com/')]");
  5192. addObsoleteHost("cing\\.be\/\\w+","//a[contains(@href,'cing.be/')]");
  5193. addObsoleteHost("ufile\\.eu\/\\w+","//a[contains(@href,'ufile.eu/')]");
  5194. addObsoleteHost("pigsonic\\.com\/\\w+","//a[contains(@href,'pigsonic.com/')]");
  5195. addObsoleteHost("fileupped\\.com\/\\w+","//a[contains(@href,'fileupped.com/')]");
  5196. addObsoleteHost("sharerun\\.com\/\\w+","//a[contains(@href,'sharerun.com/')]");
  5197. addObsoleteHost("rapidslnare\\.com\/\\w+","//a[contains(@href,'rapidslnare.com/')]");
  5198. addObsoleteHost("monsteruploads\\.eu\/\\w+","//a[contains(@href,'monsteruploads.eu/')]");
  5199. addObsoleteHost("b9bb\\.com\/\\w+","//a[contains(@href,'b9bb.com/')]");
  5200. addObsoleteHost("jamber\\.info\/\\w+","//a[contains(@href,'jamber.info/')]");
  5201. addObsoleteHost("(?:megaftp|MegaFTP)\\.com\/\\w+","//a[contains(@href,'megaftp.com/') or contains(@href,'MegaFTP.com/')]");
  5202. addObsoleteHost("desiupload\\.net\/\\?d=\\w+","//a[contains(@href,'desiupload.net/')]");
  5203. addObsoleteHost("file27\\.com\/\\w+","//a[contains(@href,'file27.com/')]");
  5204. addObsoleteHost("yastorage\\.com\/\\w+","//a[contains(@href,'yastorage.com/')]");
  5205. addObsoleteHost("filehost\\.ws\/\\w+","//a[contains(@href,'filehost.ws/')]");
  5206. addObsoleteHost("copyload\\.com\/\\w+","//a[contains(@href,'copyload.com/')]");
  5207. addObsoleteHost("venusfile\\.com\/\\w+","//a[contains(@href,'venusfile.com/')]");
  5208. addObsoleteHost("aieshare\\.com\/\\w+","//a[contains(@href,'aieshare.com/')]");
  5209. addObsoleteHost("fileza\\.net\/\\w+","//a[contains(@href,'fileza.net/')]");
  5210. addObsoleteHost("filerose\\.com\/\\w+","//a[contains(@href,'filerose.com/')]");
  5211. addObsoleteHost("squillion\\.com\/\\w+","//a[contains(@href,'squillion.com/')]");
  5212. addObsoleteHost("fileprohost\\.com\/\\w+","//a[contains(@href,'fileprohost.com/')]");
  5213. addObsoleteHost("bitbonus\\.com\/download\/\\w+","//a[contains(@href,'bitbonus.com/')]");
  5214. addObsoleteHost("warserver\\.cz\/\\w+","//a[contains(@href,'warserver.cz/')]");
  5215. addObsoleteHost("uload\\.to\/\\w+","//a[contains(@href,'uload.to/')]");
  5216. addObsoleteHost("sharedbit\\.net\/\\w+","//a[contains(@href,'sharedbit.net/')]");
  5217. addObsoleteHost("megaload\\.it\/\\w+","//a[contains(@href,'megaload.it/')]");
  5218. addObsoleteHost("filewinds\\.com\/\\w+","//a[contains(@href,'filewinds.com/')]");
  5219. addObsoleteHost("uploadcore\\.com\/\\w+","//a[contains(@href,'uploadcore.com/')]");
  5220. addObsoleteHost("syfiles\\.com\/\\w+","//a[contains(@href,'syfiles.com/')]");
  5221. addObsoleteHost("eyesfile\\.com\/\\w+","//a[contains(@href,'eyesfile.com/')]");
  5222. addObsoleteHost("hotfile\\.com\/\\w+","//a[contains(@href,'hotfile.com/')]");
  5223. addObsoleteHost("superupl\\.com\/\\w+","//a[contains(@href,'superupl.com/')]");
  5224. addObsoleteHost("oteupload\\.com\/\\w+","//a[contains(@href,'oteupload.com/')]");
  5225. addObsoleteHost("henchfile\\.com\/\\w+","//a[contains(@href,'henchfile.com/')]");
  5226. addObsoleteHost("HenchFile\\.com\/\\w+","//a[contains(@href,'HenchFile.com/')]");
  5227. addObsoleteHost("filegag\\.com\/\\w+","//a[contains(@href,'filegag.com/')]");
  5228. addObsoleteHost("filedefend\\.com\/\\w+","//a[contains(@href,'filedefend.com/')]");
  5229. addObsoleteHost("hotfiles\\.ws\/\\w+","//a[contains(@href,'hotfiles.ws/')]");
  5230. addObsoleteHost("share-rapid\\.com\/\\w+","//a[contains(@href,'share-rapid.com/')]");
  5231. //addObsoleteHost("sharerapid\\.cz\/\\w+","//a[contains(@href,'sharerapid.cz/')]");
  5232. addObsoleteHost("rapids\\.cz\/\\w+","//a[contains(@href,'rapids.cz/')]");
  5233. addObsoleteHost("share-credit\\.cz\/\\w+","//a[contains(@href,'share-credit.cz/')]");
  5234. addObsoleteHost("share-central\\.cz\/\\w+","//a[contains(@href,'share-central.cz/')]");
  5235. addObsoleteHost("share-ms\\.cz\/\\w+","//a[contains(@href,'share-ms.cz/')]");
  5236. addObsoleteHost("share-net\\.cz\/\\w+","//a[contains(@href,'share-net.cz/')]");
  5237. addObsoleteHost("srapid\\.cz\/\\w+","//a[contains(@href,'srapid.cz/')]");
  5238. addObsoleteHost("share-rapid\\.cz\/\\w+","//a[contains(@href,'share-rapid.cz/')]");
  5239. addObsoleteHost("wooupload\\.com\/\\w+","//a[contains(@href,'wooupload.com/')]");
  5240. addObsoleteHost("megabitshare\\.com\/\\w+","//a[contains(@href,'megabitshare.com/')]");
  5241. addObsoleteHost("uploking\\.com\/\\w+","//a[contains(@href,'uploking.com/')]");
  5242. addObsoleteHost("esnips\\.com\/\\w+","//a[contains(@href,'esnips.com/')]");
  5243. addObsoleteHost("uplly\\.com\/\\w+","//a[contains(@href,'uplly.com/')]");
  5244. addObsoleteHost("ufox\\.com\/\\w+","//a[contains(@href,'ufox.com/')]");
  5245. addObsoleteHost("clz\\.to\/\\w+","//a[contains(@href,'clz.to/')]");
  5246. addObsoleteHost("cloudzer\\.net\/\\w+","//a[contains(@href,'cloudzer.net/')]");
  5247. addObsoleteHost("cloudzer\\.com\/\\w+","//a[contains(@href,'cloudzer.com/')]");
  5248. addObsoleteHost("extabit\\.com\/\\w+","//a[contains(@href,'extabit.com/')]");
  5249. addObsoleteHost("uploadwaste\\.com\/\\w+","//a[contains(@href,'uploadwaste.com/')]");
  5250. addObsoleteHost("247upload\\.com\/\\w+","//a[contains(@href,'uploadwaste.com/')]");
  5251. addObsoleteHost("2download\\.de\/\\w+","//a[contains(@href,'2download.de/')]");
  5252. addObsoleteHost("4fastfile\\.com\/\\w+","//a[contains(@href,'4fastfile.com/')]");
  5253. addObsoleteHost("asixfiles\\.com\/\\w+","//a[contains(@href,'asixfiles.com/')]");
  5254. addObsoleteHost("berofile\\.com\/\\w+","//a[contains(@href,'berofile.com/')]");
  5255. addObsoleteHost("bigupload\\.com\/\\w+","//a[contains(@href,'bigupload.com/')]");
  5256. addObsoleteHost("cepzo\\.com\/\\w+","//a[contains(@href,'cepzo.com/')]");
  5257. addObsoleteHost("czshare\\.com\/\\w+","//a[contains(@href,'czshare.com/')]");
  5258. addObsoleteHost("clouds\\.to\/\\w+","//a[contains(@href,'clouds.to/')]");
  5259. addObsoleteHost("cobrashare\\.sk\/\\w+","//a[contains(@href,'cobrashare.sk/')]");
  5260. addObsoleteHost("coraldrive\\.net\/\\w+","//a[contains(@href,'coraldrive.net/')]");
  5261. addObsoleteHost("cyberlocker\\.ch\/\\w+","//a[contains(@href,'cyberlocker.ch/')]");
  5262. addObsoleteHost("darkport\\.org\/\\w+","//a[contains(@href,'darkport.org/')]");
  5263. addObsoleteHost("dark-uploads\\.com\/\\w+","//a[contains(@href,'dark-uploads.com/')]");
  5264. addObsoleteHost("davvas\\.com\/\\w+","//a[contains(@href,'davvas.com/')]");
  5265. addObsoleteHost("enigmashare\\.com\/\\w+","//a[contains(@href,'enigmashare.com/')]");
  5266. addObsoleteHost("erofly\\.cz\/\\w+","//a[contains(@href,'erofly.cz/')]");
  5267. addObsoleteHost("fastsonic\\.net\/\\w+","//a[contains(@href,'fastsonic.net/')]");
  5268. addObsoleteHost("filebox\\.com\/\\w+","//a[contains(@href,'filebox.com/')]");
  5269. addObsoleteHost("filecity\\.net\/\\w+","//a[contains(@href,'filecity.net/')]");
  5270. addObsoleteHost("filedap\\.com\/\\w+","//a[contains(@href,'filedap.com/')]");
  5271. addObsoleteHost("filedino\\.com\/\\w+","//a[contains(@href,'filedino.com/')]");
  5272. addObsoleteHost("filedownloads\\.org\/\\w+","//a[contains(@href,'filedownloads.org/')]");
  5273. addObsoleteHost("filefolks\\.com\/\\w+","//a[contains(@href,'filefolks.com/')]");
  5274. addObsoleteHost("fileking\\.co\/\\w+","//a[contains(@href,'fileking.co/')]");
  5275. addObsoleteHost("filemates\\.com\/\\w+","//a[contains(@href,'filemates.com/')]");
  5276. addObsoleteHost("files\\.to\/\\w+","//a[contains(@href,'files.to/')]");
  5277. addObsoleteHost("files2k\\.eu\/\\w+","//a[contains(@href,'files2k.eu/')]");
  5278. addObsoleteHost("filesector\\.cc\/\\w+","//a[contains(@href,'filesector.cc/')]");
  5279. addObsoleteHost("filesega\\.com\/\\w+","//a[contains(@href,'filesega.com/')]");
  5280. addObsoleteHost("filesend\\.net\/\\w+","//a[contains(@href,'filesend.net/')]");
  5281. addObsoleteHost("filestay\\.com\/\\w+","//a[contains(@href,'filestay.com/')]");
  5282. addObsoleteHost("filestrum\\.com\/\\w+","//a[contains(@href,'filestrum.com/')]");
  5283. addObsoleteHost("fileuplo\\.de\/\\w+","//a[contains(@href,'fileuplo.de/')]");
  5284. addObsoleteHost("fileupup\\.com\/\\w+","//a[contains(@href,'fileupup.com/')]");
  5285. addObsoleteHost("forunesia\\.com\/\\w+","//a[contains(@href,'forunesia.com/')]");
  5286. addObsoleteHost("freeuploads\\.fr\/\\w+","//a[contains(@href,'freeuploads.fr/')]");
  5287. addObsoleteHost("uploa\\.dk\/\\w+","//a[contains(@href,'uploa.dk/')]");
  5288. addObsoleteHost("getthebit\\.com\/\\w+","//a[contains(@href,'getthebit.com/')]");
  5289. addObsoleteHost("getzilla\\.net\/\\w+","//a[contains(@href,'getzilla.net/')]");
  5290. addObsoleteHost("goldfile\\.eu\/\\w+","//a[contains(@href,'goldfile.eu/')]");
  5291. addObsoleteHost("good\\.com\/\\w+","//a[contains(@href,'good.com/')]");
  5292. addObsoleteHost("grupload\\.com\/\\w+","//a[contains(@href,'grupload.com/')]");
  5293. addObsoleteHost("hellfile\\.com\/\\w+","//a[contains(@href,'hellfile.com/')]");
  5294. addObsoleteHost("hipfile\\.com\/\\w+","//a[contains(@href,'hipfile.com/')]");
  5295. addObsoleteHost("hitfile\\.com\/\\w+","//a[contains(@href,'hitfile.com/')]");
  5296. addObsoleteHost("hulkfile\\.eu\/\\w+","//a[contains(@href,'hulkfile.eu/')]");
  5297. addObsoleteHost("i-filez\\.com\/\\w+","//a[contains(@href,'i-filez.com/')]");
  5298. addObsoleteHost("ifile\\.ws\/\\w+","//a[contains(@href,'ifile.ws/')]");
  5299. addObsoleteHost("kupload\\.org\/\\w+","//a[contains(@href,'kupload.org/')]");
  5300. addObsoleteHost("duckfile\\.net\/\\w+","//a[contains(@href,'duckfile.net/')]");
  5301. addObsoleteHost("packupload\\.com\/\\w+","//a[contains(@href,'packupload.com/')]");
  5302. addObsoleteHost("terafile\\.com\/\\w+","//a[contains(@href,'terafile.com/')]");
  5303. addObsoleteHost("terafile\\.co\/\\w+","//a[contains(@href,'terafile.co/')]");
  5304. addObsoleteHost("fileom\\.com\/\\w+","//a[contains(@href,'fileom.com/')]");
  5305. addObsoleteHost("luckyshare\\.net\/\\w+","//a[contains(@href,'luckyshare.net/')]");
  5306. addObsoleteHost("lemuploads\\.com\/\\w+","//a[contains(@href,'lemuploads.com/')]");
  5307. addObsoleteHost("limelinx\\.com\/\\w+","//a[contains(@href,'limelinx.com/')]");
  5308. addObsoleteHost("maxshare\\.pl\/\\w+","//a[contains(@href,'maxshare.pl/')]");
  5309. addObsoleteHost("megarelease\\.org\/\\w+","//a[contains(@href,'megarelease.org/')]");
  5310. addObsoleteHost("megashare\\.com\/\\w+","//a[contains(@href,'megashare.com/')]");
  5311. addObsoleteHost("minus\\.com\/\\w+","//a[contains(@href,'minus.com/')]");
  5312. addObsoleteHost("mlfat4arab\\.com\/\\w+","//a[contains(@href,'mlfat4arab.com/')]");
  5313. addObsoleteHost("multishare\\.cz\/\\w+","//a[contains(@href,'multishare.cz/')]");
  5314. addObsoleteHost("nirafile\\.com\/\\w+","//a[contains(@href,'nirafile.com/')]");
  5315. addObsoleteHost("ok2upload\\.com\/\\w+","//a[contains(@href,'ok2upload.com/')]");
  5316. addObsoleteHost("peejeshare\\.com\/\\w+","//a[contains(@href,'peejeshare.com/')]");
  5317. addObsoleteHost("premiuns\\.org\/\\w+","//a[contains(@href,'premiuns.org/')]");
  5318. addObsoleteHost("przeklej\\.net\/\\w+","//a[contains(@href,'przeklej.net/')]");
  5319. addObsoleteHost("qkup\\.net\/\\w+","//a[contains(@href,'qkup.net/')]");
  5320. addObsoleteHost("rapidupload\\.sk\/\\w+","//a[contains(@href,'rapidupload.sk/')]");
  5321. addObsoleteHost("rockdizfile\\.com\/\\w+","//a[contains(@href,'rockdizfile.com/')]");
  5322. addObsoleteHost("rocketfile\\.net\/\\w+","//a[contains(@href,'rocketfile.net/')]");
  5323. addObsoleteHost("share-now\\.net\/\\w+","//a[contains(@href,'share-now.net/')]");
  5324. addObsoleteHost("share76\\.com\/\\w+","//a[contains(@href,'share76.com/')]");
  5325. addObsoleteHost("sharebees\\.com\/\\w+","//a[contains(@href,'sharebees.com/')]");
  5326. addObsoleteHost("sharefiles\\.co\/\\w+","//a[contains(@href,'sharefiles.co/')]");
  5327. addObsoleteHost("slingfile\\.com\/\\w+","//a[contains(@href,'slingfile.com/')]");
  5328. addObsoleteHost("sms4file\\.com\/\\w+","//a[contains(@href,'sms4file.com/')]");
  5329. addObsoleteHost("space4file\\.com\/\\w+","//a[contains(@href,'space4file.com/')]");
  5330. addObsoleteHost("tigershare\\.net\/\\w+","//a[contains(@href,'tigershare.net/')]");
  5331. addObsoleteHost("toucansharing\\.com\/\\w+","//a[contains(@href,'toucansharing.com/')]");
  5332. addObsoleteHost("ubuntuone\\.com\/\\w+","//a[contains(@href,'ubuntuone.com/')]");
  5333. addObsoleteHost("unextfiles\\.com\/\\w+","//a[contains(@href,'unextfiles.com/')]");
  5334. addObsoleteHost("upaj\\.pl\/\\w+","//a[contains(@href,'upaj.pl/')]");
  5335. addObsoleteHost("upfile\\.biz\/\\w+","//a[contains(@href,'upfile.biz/')]");
  5336. addObsoleteHost("uploadbin\\.net\/\\w+","//a[contains(@href,'uploadbin.net/')]");
  5337. addObsoleteHost("uploadic\\.com\/\\w+","//a[contains(@href,'uploadic.com/')]");
  5338. addObsoleteHost("uploadinc\\.com\/\\w+","//a[contains(@href,'uploadinc.com/')]");
  5339. addObsoleteHost("uploading4u\\.eu\/\\w+","//a[contains(@href,'uploading4u.eu/')]");
  5340. addObsoleteHost("uploadjet\\.net\/\\w+","//a[contains(@href,'uploadjet.net/')]");
  5341. addObsoleteHost("uploadorb\\.com\/\\w+","//a[contains(@href,'uploadorb.com/')]");
  5342. addObsoleteHost("upthe\\.net\/\\w+","//a[contains(@href,'upthe.net/')]");
  5343. addObsoleteHost("uptorch\\.com\/\\w+","//a[contains(@href,'uptorch.com/')]");
  5344. addObsoleteHost("vidbox\\.yt\/\\w+","//a[contains(@href,'vidbox.yt/')]");
  5345. addObsoleteHost("videozer\\.com\/\\w+","//a[contains(@href,'videozer.com/')]");
  5346. addObsoleteHost("vreer\\.com\/\\w+","//a[contains(@href,'vreer.com/')]");
  5347. addObsoleteHost("wallobit\\.com\/\\w+","//a[contains(@href,'wallobit.com/')]");
  5348. addObsoleteHost("zooupload\\.com\/\\w+","//a[contains(@href,'zooupload.com/')]");
  5349. addObsoleteHost("xerver\\.co\/\\w+","//a[contains(@href,'xerver.co/')]");
  5350. addObsoleteHost("privatefiles\\.com\/\\w+","//a[contains(@href,'privatefiles.com/')]");
  5351. addObsoleteHost("bitshare\\.com\/\\w+","//a[contains(@href,'bitshare.com/')]");
  5352. addObsoleteHost("asfile\\.com\/\\w+","//a[contains(@href,'asfile.com/')]");
  5353. addObsoleteHost("billionuploads\\.com\/\\w+","//a[contains(@href,'billionuploads.com/')]");
  5354. addObsoleteHost("\\*{7,100}\/[\\w\\d]+","//a[contains(@href,'*******/')]");
  5355. addObsoleteHost("filesaur\\.com\/\\w+","//a[contains(@href,'filesaur.com/')]");
  5356. addObsoleteHost("rapidshare\\.com\/\\w+","//a[contains(@href,'rapidshare.com/')]");
  5357. addObsoleteHost("rapidshare\\.ru\/\\w+","//a[contains(@href,'rapidshare.ru/')]");
  5358. addObsoleteHost("filesfrog\\.net\/\\w+","//a[contains(@href,'filesfrog.net/')]");
  5359. addObsoleteHost("4savefile\\.com\/\\w+","//a[contains(@href,'4savefile.com/')]");
  5360. addObsoleteHost("bayfiles\\.com\/\\w+","//a[contains(@href,'bayfiles.com/')]");
  5361. addObsoleteHost("bayfiles\\.net\/\\w+","//a[contains(@href,'bayfiles.net/')]");
  5362. addObsoleteHost("dodane\\.pl\/\\w+","//a[contains(@href,'dodane.pl/')]");
  5363. addObsoleteHost("dotsemper\\.com\/\\w+","//a[contains(@href,'dotsemper.com/')]");
  5364. addObsoleteHost("egofiles\\.com\/\\w+","//a[contains(@href,'egofiles.com/')]");
  5365. addObsoleteHost("epicshare\\.net\/\\w+","//a[contains(@href,'epicshare.net/')]");
  5366. addObsoleteHost("fiberupload\\.net\/\\w+","//a[contains(@href,'fiberupload.net/')]");
  5367. addObsoleteHost("filemonkey\\.in\/\\w+","//a[contains(@href,'filemonkey.in/')]");
  5368. addObsoleteHost("filemonster\\.net\/\\w+","//a[contains(@href,'filemonster.net/')]");
  5369. addObsoleteHost("filepom\\.com\/\\w+","//a[contains(@href,'filepom.com/')]");
  5370. addObsoleteHost("filesbb\\.com\/\\w+","//a[contains(@href,'filesbb.com/')]");
  5371. addObsoleteHost("fileshareup\\.com\/\\w+","//a[contains(@href,'fileshareup.com/')]");
  5372. addObsoleteHost("filevice\\.com\/\\w+","//a[contains(@href,'filevice.com/')]");
  5373. addObsoleteHost("gigaup\\.fr\/\\w+","//a[contains(@href,'gigaup.fr/')]");
  5374. addObsoleteHost("inafile\\.com\/\\w+","//a[contains(@href,'inafile.com/')]");
  5375. addObsoleteHost("isavelink\\.com\/\\w+","//a[contains(@href,'isavelink.com/')]");
  5376. addObsoleteHost("loombo\\.com\/\\w+","//a[contains(@href,'loombo.com/')]");
  5377. addObsoleteHost("megafiles\\.se\/\\w+","//a[contains(@href,'megafiles.se/')]");
  5378. addObsoleteHost("migupload\\.com\/\\w+","//a[contains(@href,'migupload.com/')]");
  5379. addObsoleteHost("mydisc\\.net\/\\w+","//a[contains(@href,'mydisc.net/')]");
  5380. addObsoleteHost("nitrobits\\.com\/\\w+","//a[contains(@href,'nitrobits.com/')]");
  5381. addObsoleteHost("potload\\.com\/\\w+","//a[contains(@href,'potload.com/')]");
  5382. addObsoleteHost("redload\\.net\/\\w+","//a[contains(@href,'redload.net/')]");
  5383. addObsoleteHost("shareprofi\\.com\/\\w+","//a[contains(@href,'shareprofi.com/')]");
  5384. addObsoleteHost("sharesuper\\.info\/\\w+","//a[contains(@href,'sharesuper.info/')]");
  5385. addObsoleteHost("sinhro\\.net\/\\w+","//a[contains(@href,'sinhro.net/')]");
  5386. addObsoleteHost("speedfile\\.cz\/\\w+","//a[contains(@href,'speedfile.cz/')]");
  5387. addObsoleteHost("speedshare\\.org\/\\w+","//a[contains(@href,'speedshare.org/')]");
  5388. addObsoleteHost("storage.novoro\\.net\/\\w+","//a[contains(@href,'storage.novoro.net/')]");
  5389. addObsoleteHost("swankshare\\.com\/\\w+","//a[contains(@href,'swankshare.com/')]");
  5390. addObsoleteHost("swatupload\\.com\/\\w+","//a[contains(@href,'swatupload.com/')]");
  5391. addObsoleteHost("upafile\\.com\/\\w+","//a[contains(@href,'upafile.com/')]");
  5392. addObsoleteHost("uploadmachine\\.com\/\\w+","//a[contains(@href,'uploadmachine.com/')]");
  5393. addObsoleteHost("uploadsat\\.com\/\\w+","//a[contains(@href,'uploadsat.com/')]");
  5394. addObsoleteHost("upshared\\.com\/\\w+","//a[contains(@href,'upshared.com/')]");
  5395. addObsoleteHost("usefile\\.com\/\\w+","//a[contains(@href,'usefile.com/')]");
  5396. addObsoleteHost("yourfiles\\.to\/\\w+","//a[contains(@href,'yourfiles.to/')]");
  5397. addObsoleteHost("zomgupload\\.com\/\\w+","//a[contains(@href,'zomgupload.com/')]");
  5398. addObsoleteHost("~[\\w\\s~]*","//a[contains(@href,'//~') or contains(@href,'//www.~')]");
  5399. addObsoleteHost("filemup\\.com\/\\w+","//a[contains(@href,'filemup.com/')]");
  5400. addObsoleteHost("tuxfile\\.com\/\\w+","//a[contains(@href,'tuxfile.com/')]");
  5401. addObsoleteHost("ultramegabit\\.com\/\\w+","//a[contains(@href,'ultramegabit.com/')]");
  5402. addObsoleteHost("uploadto\\.us\/\\w+","//a[contains(@href,'uploadto.us/')]");
  5403. addObsoleteHost("filecore\\.co\\.nz\/\\w+","//a[contains(@href,'filecore.co.nz/')]");
  5404. addObsoleteHost("fileshare\\.in\\.ua\/\\w+","//a[contains(@href,'fileshare.in.ua/')]");
  5405. addObsoleteHost("firedrive\\.com\/\\w+","//a[contains(@href,'firedrive.com/')]");
  5406. addObsoleteHost("putlocker\\.com\/\\w+","//a[contains(@href,'putlocker.com/')]");
  5407. addObsoleteHost("lumfile\\.com\/\\w+","//a[contains(@href,'lumfile.com/')]");
  5408. addObsoleteHost("lumfile\\.se\/\\w+","//a[contains(@href,'lumfile.se/')]");
  5409. addObsoleteHost("lumfile\\.eu\/\\w+","//a[contains(@href,'lumfile.eu/')]");
  5410. addObsoleteHost("shared\\.com\/\\w+","//a[contains(@href,'shared.com/')]");
  5411. addObsoleteHost("stahovadlo\\.cz\/\\w+","//a[contains(@href,'stahovadlo.cz/')]");
  5412. addObsoleteHost("dizzcloud\\.com\/\\w+","//a[contains(@href,'dizzcloud.com/')]");
  5413. addObsoleteHost("ddlstorage\\.com\/\\w+","//a[contains(@href,'ddlstorage.com/')]");
  5414. addObsoleteHost("dataport\\.cz\/\\w+","//a[contains(@href,'dataport.cz/')]");
  5415. addObsoleteHost("daj\\.to\/\\w+","//a[contains(@href,'daj.to/')]");
  5416. // obsolete start
  5417. }
  5418. //obsolete file hosts init end
  5419.  
  5420. function addFileHost(linkRegex, isAliveRegex, isDeadRegex, isUnavaRegex, xpathEx, tryLoop, ispremRegex)
  5421. {
  5422. var host = new Array(7);
  5423. host[0] = linkRegex;
  5424. host[1] = isAliveRegex;
  5425. host[2] = isDeadRegex;
  5426. host[3] = isUnavaRegex;
  5427. host[6] = ispremRegex;
  5428. host[4] = xpathEx;
  5429. tryLoop ? host[5] = true : host[5] = false;
  5430. http_file_hosts.push(host);
  5431. }
  5432. if (GM_getValue("Check_megafileupload_dot_com_links", false))
  5433. {
  5434. addFileHost(
  5435. "megafileupload\.com\/..\/file\/",
  5436. 'downloadbtn',
  5437. 'is not found',
  5438. 'optional--',
  5439. "//a[contains(@href,'megafileupload.com')]");
  5440. }
  5441. if (GM_getValue("Check_demo_dot_ovh_dot_eu_links", false))
  5442. {
  5443. addFileHost(
  5444. "demo\\.ovh\\.eu\/\\w+\/\\w+",
  5445. 'download\\.gif"',
  5446. 'p_point">',
  5447. 'optional--',
  5448. "//a[contains(@href,'demo.ovh.eu')]");
  5449. }
  5450. if (GM_getValue("Check_xkeepfile_dot_com_links", false))
  5451. {
  5452. addFileHost(
  5453. "xkeepfile\.com\/\\w+",
  5454. 'File has been found|Click here to download',
  5455. 'File cannot be found|class="error">',
  5456. 'optional--',
  5457. //'optional--',
  5458. "//a[contains(@href,'xkeepfile.com/') or contains(@href,'Gamesena.com/')]");
  5459. }
  5460. if (GM_getValue("Check_safelinking_dot_net_links", false))
  5461. {
  5462. addFileHost(
  5463. "safelinking\\.net\/p\/\\w+",
  5464. 'color:green;"',
  5465. 'color:(?:red|orange);"',
  5466. 'color:(?:grey|brown);"',
  5467. "//a[contains(@href,'safelinking.net/p/')]",
  5468. true);
  5469. }
  5470. /* if (GM_getValue("Check_ultramegabit_dot_com_links", false))
  5471. {
  5472. addFileHost(
  5473. "ultramegabit\\.com\/file\/details\/[\\w+-]",
  5474. 'name="recaptcha_response',
  5475. '="/folder/add"|>File (?:not found|restricted|has been deleted)|<title>ULTRAMEGABIT</title>',
  5476. 'btn-large btn-danger">|Account limitation notice|502 Bad Gateway',
  5477. "//a[contains(@href,'ultramegabit.com/file')]",
  5478. true);
  5479. } */
  5480. if (GM_getValue("Check_fastshare_dot_cz_links", false))
  5481. {
  5482. addFileHost(
  5483. "fastshare\\.cz\/\\d+\/\\w*",
  5484. 'dwntable">',
  5485. 'nebyla nalezena|nebola nájdená|nie została odnaleziona|color:red;font-weight:bold;border\\-style:dashed|<i class="fa fa-copyright"></i>',
  5486. 'optional--',
  5487. "//a[contains(@href,'fastshare.cz')]");
  5488. }
  5489. if (GM_getValue("Check_fastshare_dot_org_links", false))
  5490. {
  5491. addFileHost(
  5492. "[fF]ast[sS]hare\\.org\/download",
  5493. 'Download ">',
  5494. 'Diese Datei wurde wegen|wurde kein Dateiname',
  5495. 'optional--',
  5496. "//a[contains(@href,'fastshare.org/download') or contains(@href,'FastShare.org/download')]");
  5497. }
  5498. if (GM_getValue("Check_partage_dash_facile_dot_com_links", false))
  5499. {
  5500. addFileHost(
  5501. "partage-facile\.com\/\\w+",
  5502. 'class="title"><strong>|colspan="2"',
  5503. 'Page introuvable|class="alert-message',
  5504. 'optional--',
  5505. "//a[contains(@href,'partage-facile.com')]");
  5506. }
  5507. if (GM_getValue("Check_rapidgator_dot_net_links", false))
  5508. {
  5509. addFileHost(
  5510. "rapidgator\\.net\/file\/\\w+",
  5511. '/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',
  5512. 'Error 404|File not found|Error 500|Файл не найден|File not found|Select your plan',
  5513. 'optional--',
  5514. "//a[contains(@href,'rapidgator.net/file')]",
  5515. true
  5516. );
  5517. }
  5518. if (GM_getValue("Check_relink_dot_us_links", false))
  5519. {
  5520. addFileHost(
  5521. "relink\\.us\/(?:f\/\\w+|go\\.php\\?id=\\d+|view\\.php\\?id=\\d+)",
  5522. 'online_detail\\.png" alt="Status',
  5523. '(?:offline|partially)_detail\\.png" alt="Status|File deleted',
  5524. 'unknown_detail\\.png" alt="Status',
  5525. "//a[contains(@href,'relink.us/')]"
  5526. );
  5527. }
  5528. if (GM_getValue("Check_uploadstube_dot_de_links", false))
  5529. {
  5530. addFileHost(
  5531. "uploadstube\\.de\/download\\.php\\?file=\\d+",
  5532. 'div id="dl"',
  5533. 'Sie haben den Link falsch',
  5534. 'optional--',
  5535. "//a[contains(@href,'uploadstube.de/download.php?file=')]"
  5536. );
  5537. }
  5538. if (GM_getValue("Check_flyfiles_dot_net_links", false))
  5539. {
  5540. addFileHost(
  5541. "flyfiles\\.net\/\\w+",
  5542. 'download_button"|"Download file"',
  5543. 'File not found!|Файл не найден',
  5544. 'optional--',
  5545. "//a[contains(@href,'flyfiles.net/')]"
  5546. );
  5547. }
  5548. if (GM_getValue("Check_wikiupload_dot_com_links", false))
  5549. {
  5550. addFileHost(
  5551. "wikiupload\\.com\/\\w+",
  5552. 'download-button">',
  5553. 'Sorry, File not found',
  5554. 'optional--',
  5555. "//a[contains(@href,'wikiupload.com/')]"
  5556. );
  5557. }
  5558. if (GM_getValue("Check_hostuje_dot_net_links", false))
  5559. {
  5560. addFileHost(
  5561. "hostuje\\.net\/file\\.php\\?id=\\w+",
  5562. 'file\\.php">|Pobierz Plik',
  5563. 'Podany plik nie zosta',
  5564. 'optional--',
  5565. "//a[contains(@href,'hostuje.net/file')]"
  5566. );
  5567. }
  5568. if (GM_getValue("Check_gettyfile_dot_ru_links", false))
  5569. {
  5570. addFileHost(
  5571. "gettyfile\\.ru\/\\d+",
  5572. 'download\\.gif border',
  5573. '<center><font size="3">',
  5574. 'optional--',
  5575. "//a[contains(@href,'gettyfile.ru/')]"
  5576. );
  5577. }
  5578. if (GM_getValue("Check_tufiles_dot_ru_links", false))
  5579. {
  5580. addFileHost(
  5581. "(?:tufiles|turbob1t|failoobmenik|filesmail|firebit|dlbit|files\\.china\\-gsm|3aka4aem|file\\.piratski|mnogofiles|links-free|turbo-bit|turbosfiles)\\.\\w+\/\\w+",
  5582. 'download\\-file">',
  5583. 'col-1">\\s*<h1>',
  5584. 'optional--',
  5585. "//a[contains(@href,'tufiles.ru/') or contains(@href,'turbob1t.ru/') or contains(@href,'filesmail.ru/') or contains(@href,'failoobmenik.ru/')"+
  5586. " or contains(@href,'firebit.in/') or contains(@href,'dlbit.net/') or contains(@href,'files.china-gsm.ru/') or contains(@href,'3aka4aem.ru/')"+
  5587. " or contains(@href,'file.piratski.ru/') or contains(@href,'mnogofiles.com/') or contains(@href,'links-free.ru/')"+
  5588. " or contains(@href,'turbo-bit.ru/') or contains(@href,'turbosfiles.ru/')]"
  5589. );
  5590. }
  5591. if (GM_getValue("Check_data_dot_hu_links", false))
  5592. {
  5593. addFileHost(
  5594. "data\\.hu\/get\/\\d+\/",
  5595. 'download_box_button',
  5596. 'missing\\.php',
  5597. 'optional--',
  5598. "//a[contains(@href,'data.hu/get')]",
  5599. true
  5600. );
  5601. }
  5602. if (GM_getValue("Check_filesmelt_dot_com_links", false))
  5603. {
  5604. addFileHost(
  5605. "filesmelt\\.com\/dl\/\\w+",
  5606. '(Your download is ready|Download File)',
  5607. 'Sorry, but your',
  5608. 'optional--',
  5609. "//a[contains(@href,'filesmelt.com/dl')]"
  5610. );
  5611. }
  5612. if (GM_getValue("Check_indowebster_dot_com_links", false))
  5613. {
  5614. addFileHost(
  5615. "(?:files\\.)?indowebster\\.com\/download\/\\w+\/",
  5616. 'premiumBtn"',
  5617. 'errorMessage"',
  5618. 'optional--',
  5619. "//a[contains(@href,'indowebster.com/download')]"
  5620. );
  5621. }
  5622. if (GM_getValue("Check_superload_dot_cz_links", false))
  5623. {
  5624. addFileHost(
  5625. "superload\\.cz\/dl\/\\w+",
  5626. 'icon-download">',
  5627. 'soubor nebyl nalezen',
  5628. 'optional--',
  5629. "//a[contains(@href,'superload.cz/dl')]"
  5630. );
  5631. }
  5632. if (GM_getValue("Check_hulkfile_dot_eu_links", false))
  5633. {
  5634. addFileHost(
  5635. "(?:w\\.hulkfile\\.com|hulkfile\\.eu)\/\\w+",
  5636. 'op" value="download',
  5637. 'class="err">|width:500px;text-align:left;">',
  5638. 'optional--',
  5639. "//a[contains(@href,'hulkfile.')]"
  5640. );
  5641. }
  5642. if (GM_getValue("Check_easybytez_dot_com_links", false))
  5643. {
  5644. addFileHost(
  5645. "easybytez\\.com\/\\w+",
  5646. 'op" value="download',
  5647. 'stop_error\\.gif',
  5648. 'optional--',
  5649. "//a[contains(@href,'easybytez.com/')]"
  5650. );
  5651. }
  5652. if (GM_getValue("Check_filestore_dot_com_dot_ua_links", false))
  5653. {
  5654. addFileHost(
  5655. "filestore\\.com\\.ua\/\\?d=\\w+",
  5656. 'tdrow1>',
  5657. 'class=warn',
  5658. 'optional--',
  5659. "//a[contains(@href,'filestore.com.ua/?d=')]"
  5660. );
  5661. }
  5662. if (GM_getValue("Check_netkups_dot_com_links", false))
  5663. {
  5664. addFileHost(
  5665. "netkups\\.com\/\\?d=\\w+",
  5666. 'submit">Continue',
  5667. 'page">File not found|deleted due to inactivity',
  5668. 'optional--',
  5669. "//a[contains(@href,'netkups.com/?d=')]"
  5670. );
  5671. }
  5672. if (GM_getValue("Check_openfile_dot_ru_links", false))
  5673. {
  5674. addFileHost(
  5675. "openfile\\.ru\/(?:video\/|)\\d+",
  5676. 'videobox_left">',
  5677. 'blog_title">|not found on this server',
  5678. 'optional--',
  5679. "//a[contains(@href,'openfile.ru/')]"
  5680. );
  5681. }
  5682. if (GM_getValue("Check_extmatrix_dot_com_links", false))
  5683. {
  5684. addFileHost(
  5685. "extmatrix\\.com\/files\/\\w+",
  5686. 'div class="success"',
  5687. 'div class="error"',
  5688. 'optional--',
  5689. "//a[contains(@href,'extmatrix.com/files')]"
  5690. );
  5691. }
  5692. if (GM_getValue("Check_sendfiles_dot_nl_links", false))
  5693. {
  5694. addFileHost(
  5695. "sendfiles\\.nl\/download.aspx\\?ID=\\w+",
  5696. 'content_lnkDownload',
  5697. 'error\\.aspx\\?',
  5698. 'optional--',
  5699. "//a[contains(@href,'sendfiles.nl/download.aspx')]"
  5700. );
  5701. }
  5702. if (GM_getValue("Check_sockshare_dot_com_links", false))
  5703. {
  5704. addFileHost(
  5705. "sockshare\\.com\/file\/\\w+",
  5706. 'choose_speed">',
  5707. 'message t_0\'>',
  5708. 'optional--',
  5709. "//a[contains(@href,'sockshare.com/file')]"
  5710. );
  5711. }
  5712. if (GM_getValue("Check_yourfilestore_dot_com_links", false))
  5713. {
  5714. addFileHost(
  5715. "yourfilestore\\.com\/download\/\\d+\/",
  5716. 'download_data">',
  5717. 'may have been deleted|<h1>Sorry!<\/h1>',
  5718. 'optional--',
  5719. "//a[contains(@href,'yourfilestore.com/download')]"
  5720. );
  5721. }
  5722. if (GM_getValue("Check_nekaka_dot_com_links", false))
  5723. {
  5724. addFileHost(
  5725. "nekaka\\.com\/d\/[\\w-]+",
  5726. 'downloadForm">',
  5727. 'invalid file link',
  5728. 'optional--',
  5729. "//a[contains(@href,'nekaka.com/d')]"
  5730. );
  5731. }
  5732. if (GM_getValue("Check_filebig_dot_net_links", false))
  5733. {
  5734. addFileHost(
  5735. "filebig\\.net\/files\/\\w+",
  5736. 'downloadFile">',
  5737. '<p>File not found<\/p>',
  5738. 'optional--',
  5739. "//a[contains(@href,'filebig.net/files')]"
  5740. );
  5741. }
  5742. if (GM_getValue("Check_gamefront_dot_com_links", false))
  5743. {
  5744. addFileHost(
  5745. "files\\.filefront\\.com\/\/;\\d+;;",
  5746. 'downloadLink">',
  5747. 'File not found, you',
  5748. 'optional--',
  5749. "//a[contains(@href,'files.filefront.com')]"
  5750. );
  5751.  
  5752. addFileHost(
  5753. "gamefront\\.com\/files\/\\d+",
  5754. 'downloadLink">',
  5755. 'File not found, you',
  5756. 'optional--',
  5757. "//a[contains(@href,'gamefront.com/files')]"
  5758. );
  5759. }
  5760. if (GM_getValue("Check_hyperfileshare_dot_com_links", false))
  5761. {
  5762. addFileHost(
  5763. "(?:download\\.|)hyperfileshare\\.com\/(?:download\\.php\\?code=|d\/)\\w+",
  5764. 'dnlLnk"',
  5765. 'already been deleted',
  5766. 'optional--',
  5767. "//a[contains(@href,'hyperfileshare.com/download') or contains(@href,'hyperfileshare.com/d')]"
  5768. );
  5769. }
  5770. if (GM_getValue("Check_hellupload_dot_com_links", false))
  5771. {
  5772. addFileHost(
  5773. "hellupload\\.com\/\\w+",
  5774. '<h3>Download File<br',
  5775. 'id="podstrona">|AVOID_IE_BUG',
  5776. 'optional--',
  5777. "//a[contains(@href,'hellupload.com/')]"
  5778. );
  5779. }
  5780. if (GM_getValue("Check_free_dash_uploading_dot_com_links", false))
  5781. {
  5782. addFileHost(
  5783. "free\\-uploading\\.com\/\\w+",
  5784. 'op" value="download',
  5785. 'class="err">|width:500px;text-align:left;">',
  5786. 'optional--',
  5787. "//a[contains(@href,'free-uploading.com/')]"
  5788. );
  5789. }
  5790. if (GM_getValue("Check_fileape_dot_com_links", false))
  5791. {
  5792. addFileHost(
  5793. "fileape\\.com\/download\\-",
  5794. 'button_dl\\.png',
  5795. 'does not exist\\.',
  5796. 'optional--',
  5797. "//a[contains(@href,'fileape.com/')]"
  5798. );
  5799. }
  5800. if (GM_getValue("Check_uppit_dot_com_links", false))
  5801. {
  5802. addFileHost(
  5803. "(?:uppit\\.com|up\\.ht)\/\\w+",
  5804. 'op" value="download',
  5805. 'class="err">|style="width:500px;text-align:left;"|fish-404\\.png"',
  5806. 'optional--',
  5807. "//a[contains(@href,'up.ht/') or contains(@href,'uppit.com/')]",
  5808. true
  5809. );
  5810. }
  5811. if (GM_getValue("Check_nosupload_dot_com_links", false))
  5812. {
  5813. addFileHost(
  5814. "nosupload\\.com\/(?:\\?d=)?\\w+",
  5815. 'op" value="download',
  5816. '>File Not Found<',
  5817. 'optional--',
  5818. "//a[contains(@href,'nosupload.com')]",
  5819. true
  5820. );
  5821. }
  5822. if (GM_getValue("Check_filesin_dot_com_links", false))
  5823. {
  5824. addFileHost(
  5825. "filesin\\.com\/\\w+\/download\\.html",
  5826. 'download_area">',
  5827. 'error_note">',
  5828. 'optional--',
  5829. "//a[contains(@href,'filesin.com/')]",
  5830. true
  5831. );
  5832. }
  5833. if (GM_getValue("Check_nowdownload_dot_eu_links", false))
  5834. {
  5835. addFileHost(
  5836. "nowdownload\\.eu\/dl\/\\w+",
  5837. 'alert-success"',
  5838. 'This file does not exist!',
  5839. 'The file is being transfered',
  5840. "//a[contains(@href,'nowdownload.eu/dl')]"
  5841. );
  5842. }
  5843. if (GM_getValue("Check_axifile_dot_com_links", false))
  5844. {
  5845. addFileHost(
  5846. "axifile\\.com(?:\/\w(2))?\/\\??\\w+",
  5847. 'Dbutton_big"',
  5848. 'download\\-error\\.php',
  5849. 'optional--',
  5850. "//a[contains(@href,'axifile.com/')]"
  5851. );
  5852. }
  5853. if (GM_getValue("Check_hulkshare_dot_com_links", false))
  5854. {
  5855. addFileHost(
  5856. "hulkshare\.com\/\\w+",
  5857. 'download\.sam\.png|This is a private file|id="filename',
  5858. 'File does not exist|fingerprint protected copyright',
  5859. 'optional--',
  5860. "//a[contains(@href,'hulkshare.com')]"
  5861. );
  5862. }
  5863. if (GM_getValue("Check_turbobit_dot_net_links", false)) //folders
  5864. {
  5865. addFileHost(
  5866. "turbobit\\.(?:net|pl)\/download\/folder\/\\d+",
  5867. 'col-1">\\s*<s',
  5868. 'col-1">\\s*<h',
  5869. 'optional--',
  5870. "//a[contains(@href,'turbobit.') and contains(@href,'download/folder')]"
  5871. );
  5872. }
  5873. if (GM_getValue("Check_hitfile_dot_net_links", false)) //folders
  5874. {
  5875. addFileHost(
  5876. "hitfile\\.net\/download\/folder\/\\d+",
  5877. 'content">\\s*<s',
  5878. 'content">\\s*<h',
  5879. 'optional--',
  5880. "//a[contains(@href,'hitfile.net/download/folder')]"
  5881. );
  5882. }
  5883. if (GM_getValue("Check_netload_dot_in_links", false)) //folders
  5884. {
  5885. addFileHost(
  5886. "netload\\.in\/folder\\.php\\?folder_id=\\w+",
  5887. 'images\/online\\.gif',
  5888. 'InPage_Error"',
  5889. 'optional--',
  5890. "//a[contains(@href,'netload.in/folder.php')]"
  5891. );
  5892. }
  5893. if (GM_getValue("Check_movshare_dot_net_links", false))
  5894. {
  5895. addFileHost(
  5896. "movshare\\.net\\/video\\/\\w+",
  5897. 'optional--"',
  5898. 'no longer exists',
  5899. 'optional--',
  5900. "//a[contains(@href,'movshare.net/video')]"
  5901. );
  5902. }
  5903. if (GM_getValue("Check_plunder_dot_com_links", false))
  5904. {
  5905. addFileHost(
  5906. "plunder\.com\/\\w+",
  5907. 'x\/download\\.gif',
  5908. '404 - File or directory not found.',
  5909. 'optional--',
  5910. "//a[contains(@href,'plunder.com')]"
  5911. );
  5912. }
  5913. if (GM_getValue("Check_mafiastorage_dot_com_links", false))
  5914. {
  5915. addFileHost(
  5916. "mafiastorage\\.com\/\\w+",
  5917. 'op" value="download',
  5918. 'class="err">|style="width:500px;text-align:left;"',
  5919. 'optional--',
  5920. "//a[contains(@href,'mafiastorage.com/')]"
  5921. );
  5922. }
  5923. if (GM_getValue("Check_uploadspace_dot_pl_links", false))
  5924. {
  5925. addFileHost(
  5926. "uploadspace\.pl\/plik\\w+",
  5927. 'Downloading .+? \\|',
  5928. 'Downloading a file',
  5929. 'optional--',
  5930. "//a[contains(@href,'uploadspace.pl/plik')]"
  5931. );
  5932. }
  5933. if (GM_getValue("Check_uploadingit_dot_com_links", false))
  5934. {
  5935. addFileHost(
  5936. "uploadingit\\.com\/file\/\\w+",
  5937. 'downloadTitle">',
  5938. 'deleteContent">',
  5939. 'optional--',
  5940. "//a[contains(@href,'uploadingit.com/file')]"
  5941. );
  5942. }
  5943. if (GM_getValue("Check_rghost_dot_net_links", false))
  5944. {
  5945. addFileHost(
  5946. "rghost\.(?:net|ru)\/(?:|private\/)\\d+",
  5947. 'download_link|btn large download"',
  5948. 'file is restricted|File is deleted|503 Service Unavailable',
  5949. 'File was deleted',
  5950. "//a[contains(@href,'rghost.')]"
  5951. );
  5952. }
  5953. if (GM_getValue("Check_xdisk_dot_cz_links", false))
  5954. {
  5955. addFileHost(
  5956. "xdisk\\.cz\/(?:..\/)?download\\.php\\?id=\\w+",
  5957. '">Staženo:\\s*<\/span>',
  5958. 'Soubor, který hledáte nenalezen',
  5959. 'optional--',
  5960. "//a[contains(@href,'xdisk.cz/')]"
  5961. );
  5962. }
  5963. if (GM_getValue("Check_expressleech_dot_com_links", false))
  5964. {
  5965. addFileHost(
  5966. "expressleech\.com\/\\w+",
  5967. 'src="/img/Download.gif"|var _gaq =',
  5968. 'var rr =|403 Forbidden',
  5969. 'optional--',
  5970. "//a[contains(@href,'expressleech.com')]");
  5971. }
  5972. if (GM_getValue("Check_2downloadz_dot_com_links", false))
  5973. {
  5974. addFileHost(
  5975. "2downloadz\.com\/\\w+",
  5976. 'color="#848484|src="images/Download.png"|color:#238DCA',
  5977. 'color="#006DCC|File error',
  5978. 'optional--',
  5979. "//a[contains(@href,'2downloadz.com')]");
  5980. }
  5981. if (GM_getValue("Check_mightyupload_dot_com_links", false))
  5982. {
  5983. addFileHost(
  5984. "mightyupload\.com\/\\w+",
  5985. 'background:#ccc;text-align|CONTENT="Download File"',
  5986. 'style="background:#eee|var rr =|File Not Found',
  5987. 'optional--',
  5988. "//a[contains(@href,'mightyupload.com')]");
  5989. }
  5990. if (GM_getValue("Check_uncapped_dash_downloads_dot_com_links", false))
  5991. {
  5992. addFileHost(
  5993. "uncapped-downloads\.com\/\\w+",
  5994. 'btn_download',
  5995. 'File Not Found',
  5996. 'optional--',
  5997. "//a[contains(@href,'uncapped-downloads.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. //'optional--',
  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", true))
  6049. {
  6050. addFileHost(
  6051. "datafile\.com\/\\w+",
  6052. 'src="/js/files_download.js"|get-premium-button|Download will start in',
  6053. 'ErrorCode|class="error-msg"|ErrorCode 0: Invalid Link',
  6054. 'You are downloading another file at this moment|You exceeded your free',
  6055. //'optional--',
  6056. "//a[contains(@href,'datafile.com')]");
  6057. }
  6058. if (GM_getValue("Check_upstore_dot_net_links", false))
  6059. {
  6060. addFileHost(
  6061. "upstore\.net\/\\w+",
  6062. 'style="margin-top: 20px">|style="text-align:center; margin: 20px 0 100px;">',
  6063. 'File not found|onload="redirect|class="error">',
  6064. 'optional--',
  6065. "//a[contains(@href,'upstore.net')]");
  6066. }
  6067. if (GM_getValue("Check_upsto_dot_re_links", false))
  6068. {
  6069. addFileHost(
  6070. "upsto\.re\/\\w+",
  6071. 'style="margin-top: 20px">|style="text-align:center; margin: 20px 0 100px;">',
  6072. 'File not found|onload="redirect|class="error">',
  6073. 'optional--',
  6074. "//a[contains(@href,'upsto.re')]");
  6075. }
  6076. if (GM_getValue("Check_speedy_dot_sh_links", false))
  6077. {
  6078. addFileHost(
  6079. "speedy\.sh\/\\w+",
  6080. 'bgcolor=#eeeeee|class="addthis',
  6081. 'File not found|downloadfilenamenotfound>',
  6082. 'optional--',
  6083. "//a[contains(@href,'speedy.sh')]");
  6084. }
  6085. if (GM_getValue("Check_sanshare_dot_com_links", false))
  6086. {
  6087. addFileHost(
  6088. "sanshare\.com\/\\w+",
  6089. 'SANSHARE_TOPBANNER|offset-1"><h3><b>Download File',
  6090. 'offset-1"><b>File Not Found<|width:500px;text-align',
  6091. 'optional--',
  6092. "//a[contains(@href,'sanshare.com')]");
  6093. }
  6094. if (GM_getValue("Check_kingfiles_dot_net_links", false))
  6095. {
  6096. addFileHost(
  6097. "kingfiles\.net\/\\w+",
  6098. 'img/spriteBanner.png|If you are the owner of this file',
  6099. 'var rr =|"description" CONTENT="Download File ">|<div style="width:500px;text-align:left;">|The file was removed by administrator',
  6100. 'optional--',
  6101. "//a[contains(@href,'kingfiles.net')]");
  6102. }
  6103. if (GM_getValue("Check_uploadhero_dot_co_links", false))
  6104. {
  6105. addFileHost(
  6106. "uploadhero\\.co\/dl\/\\w+",
  6107. 'class="nom_de_fichier"|Unlimited downloads|Estimated download time|Lien de téléchargement"',
  6108. 'not available on our server|pas disponible sur nos serveurs|Le lien du fichier est incorrect',
  6109. 'optional--',
  6110. "//a[contains(@href,'uploadhero.co/dl')]"
  6111. );
  6112. }
  6113. if (GM_getValue("Check_secureupload_dot_eu_links", false))
  6114. {
  6115. addFileHost(
  6116. "secureupload\\.eu\/\\w+",
  6117. 'Downloading',
  6118. 'cannot be found|File Not Found|could not be found',
  6119. 'optional--',
  6120. "//a[contains(@href,'secureupload.eu')]"
  6121. );
  6122. }
  6123. if (GM_getValue("Check_ge_dot_tt_links", false))
  6124. {
  6125. addFileHost(
  6126. "ge\.tt\/\\w+",
  6127. 'downloads pic',
  6128. 'is NOT the same as',
  6129. 'optional--',
  6130. "//a[contains(@href,'ge.tt')]");
  6131. }
  6132. if (GM_getValue("Check_filefactory_dot_com_links", false))
  6133. {
  6134. addFileHost(
  6135. "filefactory\.com\/\\w+",
  6136. 'div id="file_holder"|download.css',
  6137. 'File Removed|Invalid Download Link|File Unavailable|Server Failed|Datei entfernt|This file has been removed|Invalid Download Link',
  6138. 'Server Maintenance|temporarily overloaded',
  6139. //'optional--',
  6140. "//a[contains(@href,'filefactory.com')]");
  6141. }
  6142. if (GM_getValue("Check_filesflash_dot_net_links", false))
  6143. {
  6144. addFileHost(
  6145. "filesflash\.net\/\\w+",
  6146. 'align:right">Filename:',
  6147. 'class="msg">',
  6148. 'optional--',
  6149. "//a[contains(@href,'filesflash.net')]");
  6150. }
  6151. if (GM_getValue("Check_rapidgator_dot_net_links", false)) //folders
  6152. {
  6153. addFileHost(
  6154. "rapidgator\\.net\/folder\/\\w+",
  6155. 'href="/folder/',
  6156. 'class="empty|Folder not found|Carpeta no encontrada|Dossier non trouvé|Папка не найдена',
  6157. 'optional--',
  6158. "//a[contains(@href,'rapidgator.net/folder')]",
  6159. true
  6160. );
  6161. }
  6162. if (GM_getValue("Check_salefiles_dot_com_links", false))
  6163. {
  6164. addFileHost(
  6165. "salefiles\.com\/\\w+",
  6166. '<Title>Download|CONTENT="Download',
  6167. 'font:15px Arial|background:#eee;',
  6168. 'optional--',
  6169. "//a[contains(@href,'salefiles.com')]");
  6170. }
  6171. if (GM_getValue("Check_megairon_dot_net_links", false))
  6172. {
  6173. addFileHost(
  6174. "megairon\.net\/\\w+",
  6175. 'border: 5px #ffeb90 solid;',
  6176. 'CONTENT="Download File ">|var rr =',
  6177. 'optional--',
  6178. "//a[contains(@href,'megairon.net')]");
  6179. }
  6180. if (GM_getValue("Check_datoid_dot_cz_links", false))
  6181. {
  6182. addFileHost(
  6183. "datoid\.cz\/\\w+",
  6184. 'btn-download|class="icon-download-large"',
  6185. 'Stránka nenalezena|error-404|Soubor byl zablokován',
  6186. 'optional--',
  6187. "//a[contains(@href,'datoid.cz')]");
  6188. }
  6189. if (GM_getValue("Check_stiahni_dot_si_links", false))
  6190. {
  6191. addFileHost(
  6192. "stiahni\.si\/\\w+",
  6193. 'report_icon.png"|slow-download-button',
  6194. 'none.png|deleted|<h2>Error 500</h2>',
  6195. 'optional--',
  6196. "//a[contains(@href,'stiahni.si')]");
  6197. }
  6198. if (GM_getValue("Check_cloudstor_dot_es_links", false))
  6199. {
  6200. addFileHost(
  6201. "cloudstor\.es\/\\w+",
  6202. '"btn_download"',
  6203. '404: Page Not Found',
  6204. 'optional--',
  6205. "//a[contains(@href,'cloudstor.es')]");
  6206. }
  6207. if (GM_getValue("Check_streamfile_dot_com_links", false))
  6208. {
  6209. addFileHost(
  6210. "streamfile\.com\/\\w+",
  6211. 'class="btn',
  6212. 'class="green-btn',
  6213. 'optional--',
  6214. "//a[contains(@href,'streamfile.com')]");
  6215. }
  6216. if (GM_getValue("Check_eyesfile_dot_ca_links", false))
  6217. {
  6218. addFileHost(
  6219. "eyesfile\.ca\/\\w+",
  6220. 'value="Get Link',
  6221. 'var rr =',
  6222. 'optional--',
  6223. "//a[contains(@href,'eyesfile.ca')]");
  6224. }
  6225. if (GM_getValue("Check_filemoney_dot_com_links", false))
  6226. {
  6227. addFileHost(
  6228. "filemoney\.com\/\\w+",
  6229. 'og:title',
  6230. '404 Not Found|<Title>FileMoney',
  6231. 'optional--',
  6232. "//a[contains(@href,'filemoney.com')]");
  6233. }
  6234. if (GM_getValue("Check_uploadboy_dot_com_links", false))
  6235. {
  6236. addFileHost(
  6237. "uploadboy\.com\/\\w+",
  6238. 'width="740">|method_free',
  6239. 'var rr =|background:#ffffff|not be found|file was removed',
  6240. 'optional--',
  6241. "//a[contains(@href,'uploadboy.com')]");
  6242. }
  6243. if (GM_getValue("Check_speedshare_dot_eu_links", false))
  6244. {
  6245. addFileHost(
  6246. "speedshare\.eu\/\\w+",
  6247. 'favicon.png|color:#3d87c0|cross.png"',
  6248. 'var rr =|File Not Found|style="background:#eee',
  6249. 'optional--',
  6250. "//a[contains(@href,'speedshare.eu')]");
  6251. }
  6252. if (GM_getValue("Check_unlimitzone_dot_com_links", false))
  6253. {
  6254. addFileHost(
  6255. "unlimitzone\.com\/\\w+",
  6256. 'content="1" name="',
  6257. 'var rr =|File Not Found',
  6258. 'optional--',
  6259. "//a[contains(@href,'unlimitzone.com')]");
  6260. }
  6261. if (GM_getValue("Check_rioupload_dot_com_links", false))
  6262. {
  6263. addFileHost(
  6264. "rioupload\.com\/\\w+",
  6265. 'sell.jpg',
  6266. 'var rr =',
  6267. 'optional--',
  6268. "//a[contains(@href,'rioupload.com')]");
  6269. }
  6270. if (GM_getValue("Check_rg_dot_to_links", false))
  6271. {
  6272. addFileHost(
  6273. "rg\.to\/\\w+",
  6274. '/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',
  6275. 'Error 404|File not found|Select your plan',
  6276. 'optional--',
  6277. //'optional--',
  6278. "//a[contains(@href,'rg.to')]");
  6279. }
  6280. if (GM_getValue("Check_jumbofiles_dot_org_links", false))
  6281. {
  6282. addFileHost(
  6283. "jumbofiles\.org\/\\w+",
  6284. 'H71C5.png|class="downloadtitle">',
  6285. 'var swfu|ViewSourceBIN.png',
  6286. 'optional--',
  6287. "//a[contains(@href,'jumbofiles.org')]");
  6288. }
  6289. if (GM_getValue("Check_fshare_dot_vn_links", false))
  6290. {
  6291. addFileHost(
  6292. "fshare\\.vn\/file\/\\w+",
  6293. 'action="#download"|left; width: 330px;">|class="bt_down"',
  6294. 'không tồn tại|class="color_red m_t_50"',
  6295. 'optional--',
  6296. "//a[contains(@href,'fshare.vn/file')]",
  6297. true
  6298. );
  6299. }
  6300. if (GM_getValue("Check_spaceforfiles_dot_com_links", false))
  6301. {
  6302. addFileHost(
  6303. "spaceforfiles\.com\/\\w+",
  6304. 'btn_slowspeed_b.jpg|value="download1|class="btn_blue',
  6305. 'var rr =|AVOID_IE_BUG',
  6306. 'optional--',
  6307. "//a[contains(@href,'spaceforfiles.com')]");
  6308. }
  6309. if (GM_getValue("Check_google_dot_com_links", false))
  6310. {
  6311. addFileHost(
  6312. "google\\.com\/file\/\\w+",
  6313. 'content="!">|color:#2d2d2d',
  6314. '12pt; font-weight:|class="errorMessage"|F0F6FF',
  6315. 'optional--',
  6316. "//a[contains(@href,'google.com/file')]",
  6317. true
  6318. );
  6319. }
  6320. if (GM_getValue("Check_google_dot_com_links", false))
  6321. {
  6322. addFileHost(
  6323. "docs.google.com\/\\w+",
  6324. 'content="!">|color:#2d2d2d',
  6325. '12pt; font-weight:|class="errorMessage"|F0F6FF|Error 404',
  6326. 'optional--',
  6327. "//a[contains(@href,'docs.google.com')]",
  6328. true
  6329. );
  6330. }
  6331. if (GM_getValue("Check_google_dot_com_links", false))
  6332. {
  6333. addFileHost(
  6334. "drive.google.com\/\\w+",
  6335. 'content="!">|color:#2d2d2d|id="uc-download-link',
  6336. '12pt; font-weight:|class="errorMessage"|F0F6FF|Error 404',
  6337. 'optional--',
  6338. "//a[contains(@href,'drive.google.com')]",
  6339. true
  6340. );
  6341. }
  6342. if (GM_getValue("Check_up_dot_media1fire_dot_com_links", false))
  6343. {
  6344. addFileHost(
  6345. "up.media1fire\.com\/\\w+",
  6346. 'class="addthis_|value="download',
  6347. 'var rr =|AVOID_IE_BUG|<div style="width:500px;text-align:left;">',
  6348. 'optional--',
  6349. "//a[contains(@href,'up.media1fire.com')]");
  6350. }
  6351. if (GM_getValue("Check_depfile_dot_com_links", false))
  6352. {
  6353. addFileHost(
  6354. "depfile\.com\/\\w+",
  6355. 'logo_0.png|downloads.gif"',
  6356. 'border-color: #5D729B;|bgcolor="#778AAF"',
  6357. 'optional--',
  6358. "//a[contains(@href,'depfile.com')]");
  6359. }
  6360. if (GM_getValue("Check_go4up_dot_com_links", false))
  6361. {
  6362. addFileHost(
  6363. "go4up\.com\/\\w+",
  6364. 'style="width: 100%;">|value="Access|download_line',
  6365. '<title>GO4UP|dmca',
  6366. 'optional--',
  6367. "//a[contains(@href,'go4up.com')]");
  6368. }
  6369. if (GM_getValue("Check_redbunker_dot_net_links", false))
  6370. {
  6371. addFileHost(
  6372. "redbunker\.net\/\\w+",
  6373. 'dload.png|rowspan="3">|yep.gif',
  6374. 'CONTENT="RedBunker|#D3D3D3;|color:#d33|AVOID_IE_BUG',
  6375. 'optional--',
  6376. "//a[contains(@href,'redbunker.net')]");
  6377. }
  6378. if (GM_getValue("Check_divxpress_dot_com_links", false))
  6379. {
  6380. addFileHost(
  6381. "divxpress\.com\/\\w+",
  6382. 'btn_download|logo.png"',
  6383. 'AVOID_IE_BUG|var rr =',
  6384. 'optional--',
  6385. "//a[contains(@href,'divxpress.com')]");
  6386. }
  6387. if (GM_getValue("Check_anafile_dot_com_links", false))
  6388. {
  6389. addFileHost(
  6390. "anafile\.com\/\\w+",
  6391. 'width="881" valign="top|color="#800080"',
  6392. 'style="width:500px;text-align:left;">|file was deleted|AVOID_IE_BUG',
  6393. 'optional--',
  6394. "//a[contains(@href,'anafile.com')]");
  6395. }
  6396. if (GM_getValue("Check_uploadable_dot_ch_links", false))
  6397. {
  6398. addFileHost(
  6399. "uploadable\\.ch\/file\/\\w+",
  6400. 'captcha.js"|payment.js"|class="btn_download"',
  6401. '<div class="icon_err">|<div class="errorBox">|"error_arrow">',
  6402. 'optional--',
  6403. "//a[contains(@href,'uploadable.ch/file')]",
  6404. true
  6405. );
  6406. }
  6407. if (GM_getValue("Check_arabloads_dot_com_links", false))
  6408. {
  6409. addFileHost(
  6410. "arabloads\.com\/\\w+",
  6411. 'name="method_free"|name="method_premium"',
  6412. 'background:#eee;font:15px Arial;">|AVOID_IE_BUG|Verdana;padding:3px;">Error',
  6413. 'optional--',
  6414. "//a[contains(@href,'arabloads.com')]");
  6415. }
  6416. if (GM_getValue("Check_sharerepo_dot_com_links", false))
  6417. {
  6418. addFileHost(
  6419. "sharerepo\.com\/\\w+",
  6420. 'name="method_free"',
  6421. 'var public_on=|The file you were looking for could not be found',
  6422. 'optional--',
  6423. "//a[contains(@href,'sharerepo.com')]");
  6424. }
  6425. if (GM_getValue("Check_sfshare_dot_se_links", false))
  6426. {
  6427. addFileHost(
  6428. "sfshare\.se\/\\w+",
  6429. 'id="btn_download"|class="btn btn-primary txt-bold" value="',
  6430. 'AVOID_IE_BUG|var rr =|style="width:500px;text-align:left;">|Reason for deletion|The file was removed',
  6431. 'optional--',
  6432. "//a[contains(@href,'sfshare.se')]");
  6433. }
  6434. if (GM_getValue("Check_files_dot_fm_links", false))
  6435. {
  6436. addFileHost(
  6437. "files\.fm\/\\w+",
  6438. 'dl.png"|background-color: transparent',
  6439. 'margin: 40px 40px|background: none;',
  6440. 'optional--',
  6441. "//a[contains(@href,'files.fm')]");
  6442. }
  6443. if (GM_getValue("Check_koofile_dot_com_links", false))
  6444. {
  6445. addFileHost(
  6446. "koofile\.com\/\\w+",
  6447. 'value="download1">|name="method_free"',
  6448. 'class="overview-content c_text-box ">|style="padding-top:3px;">|class="rt1 c">',
  6449. 'optional--',
  6450. "//a[contains(@href,'koofile.com')]");
  6451. }
  6452. if (GM_getValue("Check_vidxden_dot_com_links", false))
  6453. {
  6454. addFileHost(
  6455. "vidxden\\.com\/\\w+",
  6456. 'Continue to Video"',
  6457. 'No such file',
  6458. 'optional--',
  6459. "//a[contains(@href,'vidxden.com')]"
  6460. );
  6461. }
  6462. if (GM_getValue("Check_muchshare_dot_net_links", false))
  6463. {
  6464. addFileHost(
  6465. "muchshare\\.net\/\\w+",
  6466. 'id="btn_download"',
  6467. 'File Not Found|width: 500px; text-align: left;',
  6468. 'optional--',
  6469. "//a[contains(@href,'muchshare.net')]"
  6470. );
  6471. }
  6472. if (GM_getValue("Check_daten_dash_hoster_dot_de_links", false))
  6473. {
  6474. addFileHost(
  6475. "(?:daten-hoster\\.de\/file\/\\w+|filehosting\\.org\/file\/\\w+|xtraupload\\.de\/\\?d=\\w+)",
  6476. 'Details zur Datei|Details page',
  6477. 'Jetzt hochladen|upload now',
  6478. 'optional--',
  6479. "//a[contains(@href,'daten-hoster.de/file') or contains(@href,'filehosting.org/file') or contains(@href,'xtraupload.de')]"
  6480. );
  6481. }
  6482. if (GM_getValue("Check_upload_dash_il_dot_net_links", false))
  6483. {
  6484. addFileHost(
  6485. "(?:upload-il|przeslij)\.net\/(?:en|he|ar|ru|)\/?\\w+",
  6486. 'downloadbtn"',
  6487. 'DL_FileNotFound',
  6488. 'optional--',
  6489. "//a[contains(@href,'upload-il.net') or contains(@href,'przeslij.net')]"
  6490. );
  6491. }
  6492. if (GM_getValue("Check_fileflyer_dot_com_links", false))
  6493. {
  6494. addFileHost(
  6495. "fileflyer\.com\/view\/\\w+",
  6496. '(?:dwl|locked)btn"',
  6497. 'error.gif"|link">Removed|removedlink">',
  6498. 'optional--',
  6499. "//a[contains(@href,'fileflyer.com')]"
  6500. );
  6501. }
  6502. if (GM_getValue("Check_filestore_dot_to_links", false))
  6503. {
  6504. addFileHost(
  6505. "filestore\.to\/\\?d=\\w+",
  6506. '"downloading"',
  6507. 'Datei wurde nicht gefunden',
  6508. 'optional--',
  6509. "//a[contains(@href,'filestore.to')]"
  6510. );
  6511. }
  6512. if (GM_getValue("Check_easy_dash_share_dot_com_links", false))
  6513. {
  6514. addFileHost(
  6515. "(?:w\\d*\.|)(?:crocko|easy-share)\\.com\/.",
  6516. 'fz24">Download|class="pl15">',
  6517. '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',
  6518. 'optional--',
  6519. "//a[contains(@href,'easy-share.com') or contains(@href,'crocko.com')]"
  6520. );
  6521. }
  6522. if (GM_getValue("Check_burnupload_dot_com_links", false))
  6523. {
  6524. addFileHost(
  6525. "burnupload\\.(?:com\/\\?d=|ihiphop\\.com\/download\\.php\\?id=)\\w+",
  6526. 'File size:',
  6527. 'file is not found',
  6528. 'optional--',
  6529. "//a[contains(@href,'burnupload.com') or contains(@href,'burnupload.ihiphop.com')]"
  6530. );
  6531. }
  6532. if (GM_getValue("Check_datei_dot_to_links", false))
  6533. {
  6534. addFileHost(
  6535. "datei\\.to\/\\??\\w+",
  6536. 'icon_downloaden\\.png|>Download starten<',
  6537. 'Datei wurde nicht gefunden|icon_deleted.png',
  6538. 'optional--',
  6539. "//a[contains(@href,'datei.to')]"
  6540. );
  6541. }
  6542. if (GM_getValue("Check_yunfile_dot_com_links", false))
  6543. {
  6544. addFileHost(
  6545. "(?:yunfile|filemarkets)\\.com\/\\w+",
  6546. '<body class="body" id="body">|value="Slow Download"',
  6547. '<body class="body" >',
  6548. 'optional--',
  6549. "//a[contains(@href,'yunfile.com') or contains(@href,'filemarkets.com')]"
  6550. );
  6551. }
  6552. /* if (GM_getValue("Check_putlocker_dot_com_links", false))
  6553. {
  6554. addFileHost(
  6555. "putlocker\\.com\/file\/\\w{16}",
  6556. 'as Free User|<a class="continue"|Continue to file|#feedback_btn|application file_standalone',
  6557. 'Welcome to PutLocker|<div class="sad_face_image">|404:',
  6558. 'undergoing scheduled maintenance',
  6559. "//a[contains(@href,'putlocker.com/file')]"
  6560. );
  6561. } */
  6562. if (GM_getValue("Check_uploadhero_dot_com_links", false))
  6563. {
  6564. addFileHost(
  6565. "uploadhero\\.com\/dl\/\\w+",
  6566. 'content-dl">',
  6567. 'men_file_lost\\.jpg"',
  6568. 'optional--',
  6569. "//a[contains(@href,'uploadhero.com/dl')]"
  6570. );
  6571. }
  6572. if (GM_getValue("Check_unibytes_dot_com_links", false))
  6573. {
  6574. addFileHost(
  6575. "unibytes\\.com\/[\\w\.]+",
  6576. 'trying to download|пытаетесь загрузить файл|tes entrain de tlcharger',
  6577. 'File not found|Файл не найден|',
  6578. 'optional--',
  6579. "//a[contains(@href,'unibytes.com')]"
  6580. );
  6581. }
  6582. if (GM_getValue("Check_hellshare_dot_com_links", false)) //very old type of links
  6583. {
  6584. addFileHost(
  6585. "www\\.hellshare\\.com\/\\d+",
  6586. 'tab\\-details"',
  6587. 'list-purp-2"|not found on this server',
  6588. 'optional--',
  6589. "//a[contains(@href,'www.hellshare.com')]"
  6590. );
  6591. }
  6592. if (GM_getValue("Check_quickshare_dot_cz_links", false)) //folders
  6593. {
  6594. addFileHost(
  6595. "quickshare\\.cz\/slozka-\\d+",
  6596. 'Počet souborů: <strong>[1-9]',
  6597. 'Počet souborů: <strong>0|Chyba! Taková složka neexistuje',
  6598. 'optional--',
  6599. "//a[contains(@href,'quickshare.cz/slozka')]"
  6600. );
  6601. }
  6602. if (GM_getValue("Check_filefactory_dot_com_links", false)) //folders
  6603. {
  6604. addFileHost(
  6605. "filefactory\\.com\/f\/\\w+",
  6606. 'folderFileList">',
  6607. 'table class="items"|Pointer" class="red">',
  6608. 'optional--',
  6609. "//a[contains(@href,'filefactory.com/f/')]"
  6610. );
  6611. }
  6612. if (GM_getValue("Check_netload_dot_in_links", false)) //folders
  6613. {
  6614. addFileHost(
  6615. "netfolder\\.in\/\\w+",
  6616. 'list" value="http',
  6617. 'InPage_Error">|list" value=""',
  6618. 'optional--',
  6619. "//a[contains(@href,'netfolder.in')]"
  6620. );
  6621. }
  6622. if (GM_getValue("Check_load_dot_to_links", false))
  6623. {
  6624. addFileHost(
  6625. '(?:www\\.|\\/)load\\.to\\/(?:\\w{10}\\/.|\\?d=\\w{10})',
  6626. '"download_table_left">Size',
  6627. 'Can\'t find file',
  6628. 'optional--',
  6629. "//a[contains(@href,'/load.to/') or contains(@href,'www.load.to/')]"
  6630. );
  6631. }
  6632. if (GM_getValue("Check_freakshare_dot_net_links", false))
  6633. {
  6634. addFileHost(
  6635. "freakshare\\.(?:net|com)\/files\/",
  6636. 'box_heading',
  6637. '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|الملف المطلوب غير موجود',
  6638. 'Your Traffic is used up for today',
  6639. "//a[(contains(@href,'freakshare.net') or contains(@href,'freakshare.com')) and contains(@href,'files')]",
  6640. true
  6641. );
  6642. //folders
  6643. addFileHost(
  6644. "freakshare\\.(?:net|com)\/folder\/",
  6645. 'Files: [1-9]',
  6646. 'Files: 0',
  6647. 'optional--',
  6648. "//a[(contains(@href,'freakshare.net') or contains(@href,'freakshare.com')) and contains(@href,'folder')]",
  6649. true
  6650. );
  6651. }
  6652. if (GM_getValue("Check_divshare_dot_com_links", false))
  6653. {
  6654. addFileHost(
  6655. "divshare\\.com\/download\/",
  6656. 'download_new\.png',
  6657. 'have been removed',
  6658. 'optional--',
  6659. "//a[contains(@href,'divshare.com')]"
  6660. );
  6661. }
  6662. if (GM_getValue("Check_euroshare_dot_eu_links", false))
  6663. {
  6664. addFileHost(
  6665. "euroshare\\.(?:eu|pl|sk|cz|hu)\/file\/\\d+",
  6666. 'nazev-souboru">',
  6667. '<div id="obsah">\\s*<h1>',
  6668. 'optional--',
  6669. "//a[contains(@href,'euroshare.eu/file')]"
  6670. );
  6671. }
  6672. if (GM_getValue("Check_files_dot_mail_dot_ru_links", false))
  6673. {
  6674. addFileHost(
  6675. 'files\\.mail\\.ru/(?:\\w*)',
  6676. 'fileList',
  6677. 'errorMessage',
  6678. 'optional--',
  6679. "//a[contains(@href,'files.mail.ru')]"
  6680. );
  6681. }
  6682. if (GM_getValue("Check_megashares_dot_com_links", false))
  6683. {
  6684. addFileHost(
  6685. "(?:d\\d+\.|)megashares\.com\/(?:dl|index\.php\\?d|\\?d\\d+=\\w+)",
  6686. 'Filesize',
  6687. 'Invalid|deleted|Could not download file',
  6688. 'slots|scheduled maintenance',
  6689. "//a[contains(@href,'megashares.com/')]"
  6690. );
  6691. }
  6692. if (GM_getValue("Check_narod_dot_ru_links", false))
  6693. {
  6694. addFileHost(
  6695. 'narod\\.(?:yandex\\.|)ru\/disk\/',
  6696. 'b-submit',
  6697. 'b-download-virus-note|headCode">404<',
  6698. 'Внутренняя ошибка сервиса',
  6699. "//a[contains(@href,'narod.ru') or contains(@href,'narod.yandex.ru')]"
  6700. );
  6701. }
  6702. if (GM_getValue("Check_rayfile_dot_com_links", false))
  6703. {
  6704. addFileHost(
  6705. "rayfile\\.com\/",
  6706. 'FILEtitleTXT',
  6707. 'blueRow',
  6708. 'optional--',
  6709. "//a[contains(@href,'rayfile.com/') and contains(@href,'files')]"
  6710. );
  6711. }
  6712. if (GM_getValue("Check_filesmonster_dot_com_links", false))
  6713. {
  6714. addFileHost(
  6715. "filesmonster\\.com\/download\\.php\\?id=\\w+",
  6716. 'button_green_body"',
  6717. 'error">',
  6718. 'optional--',
  6719. "//a[contains(@href,'filesmonster.com/download')]"
  6720. );
  6721. }
  6722. if (GM_getValue("Check_usaupload_dot_net_links", false))
  6723. {
  6724. addFileHost(
  6725. 'usaupload\\.net\/d\/(?:\w*)',
  6726. '<strong>File size:</strong>',
  6727. 'is not available',
  6728. 'optional--',
  6729. "//a[contains(@href,'usaupload.net/d/')]"
  6730. );
  6731. }
  6732. if (GM_getValue("Check_sendspace_dot_com_links", false))
  6733. {
  6734. addFileHost(
  6735. 'sendspace\\.com\/file\/\\w+',
  6736. 'file_description',
  6737. 'msg error"',
  6738. 'optional--',
  6739. "//a[contains(@href,'sendspace.com/file')]"
  6740. );
  6741. }
  6742. if (GM_getValue("Check_sendspace_dot_pl_links", false))
  6743. {
  6744. addFileHost(
  6745. 'sendspace\\.pl\/file\/\\w+',
  6746. 'download_file"',
  6747. 'Podany plik nie',
  6748. 'optional--',
  6749. "//a[contains(@href,'sendspace.pl/file')]"
  6750. );
  6751. }
  6752. if (GM_getValue("Check_uploading_dot_com_links", false))
  6753. {
  6754. addFileHost(
  6755. 'uploading\\.com\/(?:files\/)?\\w+',
  6756. 'free_method">',
  6757. 'file_error">|error_404">|file not found|OOPS! Looks like file not found',
  6758. 'optional--',
  6759. "//a[contains(@href,'uploading.com')]"
  6760. );
  6761. }
  6762. if (GM_getValue("Check_gigasize_dot_com_links", false))
  6763. {
  6764. addFileHost(
  6765. 'gigasize\\.com\/get\\.php(?:\/\\d+|\\?d=\\w+)',
  6766. 'fileId"',
  6767. 'error">',
  6768. 'optional--',
  6769. "//a[contains(@href,'gigasize.com/get')]"
  6770. );
  6771. }
  6772. if (GM_getValue("Check_good_dot_com_links", false))
  6773. {
  6774. addFileHost(
  6775. 'good\\.net\/(?:_|dl)',
  6776. 'Free Download',
  6777. 'Not Found',
  6778. 'Forbidden',
  6779. "//a[contains(@href,'good.net')]"
  6780. );
  6781. }
  6782. if (GM_getValue("Check_2shared_dot_com_links", false))
  6783. {
  6784. addFileHost(
  6785. '2shared\\.com\/(?:file|video|document|audio)\/\\w*',
  6786. 'File size',
  6787. 'File not found|is not valid|/images/important.gif',
  6788. 'optional--',
  6789. "//a[contains(@href,'2shared.com/file/') or contains (@href,'2shared.com/audio/') or contains (@href,'2shared.com/document/') or contains (@href,'2shared.com/video/')]"
  6790. );
  6791. }
  6792. if (GM_getValue("Check_turboupload_dot_com_links", false))
  6793. {
  6794. addFileHost(
  6795. 'turboupload\\.com\/\\w*',
  6796. 'You have requested',
  6797. 'File Not Found',
  6798. 'optional--',
  6799. "//a[contains(@href,'turboupload.com')]"
  6800. );
  6801. }
  6802. if (GM_getValue("Check_gigapeta_dot_com_links", false))
  6803. {
  6804. addFileHost(
  6805. 'gigapeta\\.com\/dl\/',
  6806. 'Download file|Скачать файл| Herunterzuladen|Scarica il file|Cargar el fichero|Charger le fichier',
  6807. '404|page_error',
  6808. 'optional--',
  6809. "//a[contains(@href,'gigapeta.com/dl')]"
  6810. );
  6811. }
  6812. if (GM_getValue("Check_veehd_dot_com_links", false))
  6813. {
  6814. addFileHost(
  6815. 'veehd\.com\/video\/.*?',
  6816. 'No sound|Download video',
  6817. 'Featured Videos',
  6818. 'optional--',
  6819. "//a[contains(@href,'veehd.com') and contains(@href,'video')]"
  6820. );
  6821. }
  6822. if (GM_getValue("Check_vip_dash_file_dot_com_links", false))
  6823. {
  6824. addFileHost(
  6825. '(?:u\\d+\\.)?vip-file\\.com\/download.*?\/(?:.*?)\/(?:.*?)\\.html',
  6826. 'fast_download_form">|submit_sms_download',
  6827. '<p style="text-align:center">',
  6828. 'optional--',
  6829. "//a[contains(@href,'vip-file.com/download')]"
  6830. );
  6831. }
  6832. if (GM_getValue("Check_letitbit_dot_net_links", false))
  6833. {
  6834. addFileHost(
  6835. '(?:u\\d+\\.)?letitbit\\.net\/download\/\\w+',
  6836. 'download\\-pnl ',
  6837. 'color:#000">|Запрашиваемый файл не найден|страница не существует|File not found|',
  6838. 'optional--',
  6839. "//a[contains(@href,'letitbit.net/download')]"
  6840. );
  6841. }
  6842. if (GM_getValue("Check_ifolder_dot_ru_links", false))
  6843. {
  6844. addFileHost(
  6845. 'ifolder\.ru\/\\d+',
  6846. 'file-info',
  6847. 'ui-state-error',
  6848. 'optional--',
  6849. "//a[contains(@href,'ifolder.ru')]"
  6850. );
  6851. }
  6852. if (GM_getValue("Check_fileswap_dot_com_links", false))
  6853. {
  6854. addFileHost(
  6855. 'fileswap\\.com\/dl\/\\w+',
  6856. 'bttnDownloadLink"',
  6857. 'rounded_block_error"',
  6858. 'is temporary unavailable|disponible en estos momentos|vorläufig unerreichbar|Файл временно недоступен',
  6859. "//a[contains(@href,'fileswap.com/dl')]"
  6860. );
  6861. }
  6862. if (GM_getValue("Check_filecloud_dot_io_links", false))
  6863. {
  6864. addFileHost(
  6865. '(?:s\\d+\\.)?filecloud\\.io\/\\w+',
  6866. 'var __error = 0',
  6867. 'FILES__DOESNT_EXIST|removed or did not exist',
  6868. 'optional--',
  6869. "//a[contains(@href,'filecloud.io/')]"
  6870. );
  6871. addFileHost(
  6872. 'ifile\\.it\/\\w+',
  6873. 'var __error = 0',
  6874. 'FILES__DOESNT_EXIST',
  6875. 'optional--',
  6876. "//a[contains(@href,'ifile.it/')]"
  6877. );
  6878. }
  6879. if (GM_getValue("Check_solidfiles_dot_com_links", false))
  6880. {
  6881. addFileHost(
  6882. 'solidfiles\\.com\/d\/\\w+',
  6883. 'id="download"|content="Download',
  6884. '>Not found<|<h2>404</h2>|Page not found|<h1>404</h1>|File not available|no longer available',
  6885. 'optional--',
  6886. "//a[contains(@href,'solidfiles.com/d')]"
  6887. );
  6888. }
  6889. if (GM_getValue("Check_shareflare_dot_net_links", false))
  6890. {
  6891. addFileHost(
  6892. "(?:.\\.|)shareflare\\.net",
  6893. 'download-pnl|<div class="premium-block">',
  6894. 'File not found|Поиск зеркала на фа|<div id="captcha"',
  6895. 'optional--',
  6896. "//a[contains(@href,'shareflare.net') and contains(@href,'download')]"
  6897. );
  6898. }
  6899. if (GM_getValue("Check_u18116681_dot_shareflare_dot_net_links", false))
  6900. {
  6901. addFileHost(
  6902. "u18116681.shareflare\\.net",
  6903. 'download-pnl|<div class="premium-block">',
  6904. 'File not found|Поиск зеркала на фа|<div id="captcha"',
  6905. 'optional--',
  6906. "//a[contains(@href,'shareflare.net') and contains(@href,'download')]"
  6907. );
  6908. }
  6909. if (GM_getValue("Check_uloz_dot_to_links", false))
  6910. {
  6911. addFileHost(
  6912. "(?:uloz|ulozto|bagruj|zachowajto)\\.(to|cz|sk|net|pl)\/\\w",
  6913. 'fileDownload">|fileSize">',
  6914. 'grayButton deletedFile">|Stránka nenalezena|upload-button"|jako soukromý.',
  6915. 'passwordProtectedFile">|frmaskAgeForm-disagree',
  6916. "//a[contains(@href,'bagruj.cz') or contains(@href,'uloz.to') or contains(@href,'ulozto.') or contains(@href,'zachowajto.pl')]",
  6917. true
  6918. );
  6919. }
  6920. if (GM_getValue("Check_hellspy_dot_com_links", false))
  6921. {
  6922. addFileHost(
  6923. "hellspy\.(?:com|cz|sk|hu|pl)\/\\w+",
  6924. 'file\\-list-orderby|section-filedetail">',
  6925. '<\/span><\/h2>\\s*<p>|list-purp-2">|flash info sticky">',
  6926. 'optional--',
  6927. "//a[contains(@href,'hellspy.')]"
  6928. );
  6929. }
  6930. if (GM_getValue("Check_leteckaposta_dot_cz_links", false))
  6931. {
  6932. addFileHost(
  6933. "(?:leteckaposta\\.cz|sharegadget\\.com)\/\\d+",
  6934. '<body onload="">',
  6935. 'neexistuje|not exist',
  6936. 'optional--',
  6937. "//a[contains(@href,'leteckaposta.cz') or contains(@href,'sharegadget.com')]"
  6938. );
  6939. }
  6940. if (GM_getValue("Check_stahovanizasms_dot_cz_links", false))
  6941. {
  6942. addFileHost(
  6943. "stahovanizasms\\.cz\/\\w+",
  6944. 'download\\.png>|font-size:11px><tr>',
  6945. 'smaz.n u.ivatelem|font-size:11px><\/table>',
  6946. 'optional--',
  6947. "//a[contains(@href,'stahovanizasms.cz')]"
  6948. );
  6949. }
  6950. if (GM_getValue("Check_share_dash_links_dot_biz_links", false))
  6951. {
  6952. addFileHost(
  6953. "share-links\\.biz\/\\w*",
  6954. 'online\\.gif',
  6955. '(?:offline|parts)\\.gif',
  6956. 'optional--',
  6957. "//a[contains(@href,'share-links.biz')]"
  6958. );
  6959. }
  6960. if (GM_getValue("Check_4shared_dot_com_links", false))
  6961. {
  6962. addFileHost(
  6963. "4shared\\.com\/.+\/",
  6964. '<input type="hidden" class="jsSocialTwDefaultText" value=',
  6965. 'class="warn\"|big red"|GetDataBack',
  6966. 'Service Unavailable',
  6967. "//a[contains(@href,'4shared.com')]"
  6968. );
  6969. }
  6970. if (GM_getValue("Check_zippyshare_dot_com_links", false))
  6971. {
  6972. addFileHost(
  6973. "(?:www\\d+\.|)zippyshare\.com\/",
  6974. 'download\.png|Download Now|images/download_small.png|id="dlbutton"',
  6975. 'not exist|Status 404',
  6976. 'optional--',
  6977. "//a[contains(@href,'zippyshare.com') and contains(@href,'file.html')]"
  6978. );
  6979. }
  6980. if (GM_getValue("Check_mediafire_dot_com_links", false))
  6981. {
  6982. addFileHost(
  6983. "mediafire\.com\/",
  6984. 'download_file_title|dlFileName|id="PLAY_downloadButton"',
  6985. 'error\\.php\\?|error_msg_title|<title>Simple File Sharing|No files found',
  6986. 'set to private',
  6987. "//a[contains(@href,'mediafire.com')]"
  6988. );
  6989. }
  6990. if (GM_getValue("Check_uploaded_dot_to_links", false))
  6991. {
  6992. addFileHost(
  6993. '(?:uploaded\\.(?:to|net)\/(?:.id|file|folder|f|410|404))|(?:ul\\.to\/)',
  6994. '<h2>Authentification</h2></li>| MB|0 seconds|1,00 GB',
  6995. 'box_red|Error: 404|Error: 410|fileList"><thead><tr><td colspan="2"><\/td><\/tr><\/thead><tbody>\\s*<tr>|<title>uploaded.net</title>',
  6996. 'optional--',
  6997. "//a[contains(@href,'uploaded.to/') or contains(@href,'uploaded.net/') or contains(@href,'ul.to/')]"
  6998. );
  6999. }
  7000. if (GM_getValue("Check_ulozisko_dot_sk_links", false))
  7001. {
  7002. addFileHost(
  7003. "ulozisko\.sk\/",
  7004. 'Detaily',
  7005. 'neexistuje',
  7006. 'optional--',
  7007. "//a[contains(@href,'ulozisko.sk')]"
  7008. );
  7009. }
  7010. if (GM_getValue("Check_upnito_dot_sk_links", false))
  7011. {
  7012. addFileHost(
  7013. "(?:dl.\\.|)upnito\\.sk\/(download|subor|file)",
  7014. 'download.php',
  7015. 'notfound|upload\\-suborov\\.php"',
  7016. 'optional--',
  7017. "//a[contains(@href,'upnito.sk')]"
  7018. );
  7019. }
  7020. if (GM_getValue("Check_uptobox_dot_com_links", false))
  7021. {
  7022. addFileHost(
  7023. "uptobox\\.com\/\\w+",
  7024. 'Create Download Link">',
  7025. '500px;text-align:left;">|File not found|Fichier introuvable',
  7026. 'Maintenance|not available in your country',
  7027. "//a[contains(@href,'uptobox.com')]"
  7028. );
  7029. }
  7030. if (GM_getValue("Check_sharecash_dot_org_links", false))
  7031. {
  7032. addFileHost(
  7033. "sharecash\\.org\/download\\.php\\?file=\\d+",
  7034. 'FILE DOWNLOAD<',
  7035. 'File Does Not Exist',
  7036. 'optional--',
  7037. "//a[contains(@href,'sharecash.org/download.php')]"
  7038. );
  7039. }
  7040. if (GM_getValue("Check_depositfiles_dot_com_links", false)) //folders
  7041. {
  7042. addFileHost(
  7043. "depositfiles\\.com\/folders\/\\w+",
  7044. '<div class="progressContainer">',
  7045. '<div id="files" class="files">\\s*<\/div>',
  7046. 'optional--',
  7047. "//a[contains(@href,'depositfiles.com/folders')]"
  7048. );
  7049. }
  7050. if (GM_getValue("Check_depositfiles_dot_com_links", false))
  7051. {
  7052. addFileHost(
  7053. "depositfiles\\.com\/|depositfiles.org|dfiles\.eu|dfiles.ru",
  7054. '<b>File Download</b>|File name|Nom du fichier|Nome do arquivo|speed_small\.gif',
  7055. 'Such file does not exist|<div class="no_download_msg"|This file does not exist',
  7056. 'optional--',
  7057. "//a[contains(@href,'depositfiles') or contains(@href,'dfiles')]"
  7058. );
  7059. }
  7060. if (GM_getValue("Check_rapidfileshare_dot_net_links", false))
  7061. {
  7062. addFileHost(
  7063. "rapidfileshare\\.net/\\w+",
  7064. '<div id="upload-header-bg">',
  7065. '<div style="width:500px;text-align:left;">',
  7066. 'optional--',
  7067. "//a[contains(@href,'rapidfileshare.net/')]"
  7068. );
  7069. }
  7070. if (GM_getValue("Check_stiahnito_dot_sk_links", false))
  7071. {
  7072. addFileHost(
  7073. "stiahnito\\.sk/",
  7074. '<span class="filesize right">',
  7075. '<ol class="list-purp-2">',
  7076. 'optional--',
  7077. "//a[contains(@href,'stiahnito.sk/')]"
  7078. );
  7079. }
  7080. if (GM_getValue("Check_rusfolder_dot_com_links", false))
  7081. {
  7082. addFileHost(
  7083. "rusfolder\\.(?:com|net)",
  7084. '"download-step-one-form"|Название: <b>|Файлы|Файлы в папке',
  7085. '"ui-state-error ui-corner-all"|File is removed|File not found|удален',
  7086. 'optional--',
  7087. "//a[contains(@href,'rusfolder')]"
  7088. );
  7089. }
  7090. if (GM_getValue("Check_fileover_dot_net_links", false))
  7091. {
  7092. addFileHost(
  7093. "fileover\\.net/\\d+",
  7094. 'id="filesize"',
  7095. 'Not found or deleted|The following file is unavailable',
  7096. 'optional--',
  7097. "//a[contains(@href,'fileover.net/')]"
  7098. );
  7099. }
  7100. if (GM_getValue("Check_catshare_dot_net_links", false))
  7101. {
  7102. addFileHost(
  7103. "catshare\\.net/\\w+",
  7104. '"icon-share',
  7105. 'alert alert-error',
  7106. 'optional--',
  7107. "//a[contains(@href,'catshare.net/')]"
  7108. );
  7109. }
  7110. if (GM_getValue("Check_anonfiles_dot_com_links", false))
  7111. {
  7112. addFileHost(
  7113. "anonfiles\\.com/\\w+",
  7114. '"download_button"',
  7115. '<legend><b>404</b>',
  7116. 'optional--',
  7117. "//a[contains(@href,'anonfiles.com')]"
  7118. );
  7119. }
  7120. if (GM_getValue("Check_mixturecloud_dot_com_links", false))
  7121. {
  7122. addFileHost(
  7123. "mixturecloud\\.com/media/\\w+",
  7124. '"btn icon i_globe gray share_150',
  7125. '"s_cross_close"></span> 404:',
  7126. 'optional--',
  7127. "//a[contains(@href,'mixturecloud.com/media/')]"
  7128. );
  7129. }
  7130. if (GM_getValue("Check_akafile_dot_com_links", false))
  7131. {
  7132. addFileHost(
  7133. "akafile\\.com\/\\w+",
  7134. 'download1',
  7135. 'File Not Found',
  7136. 'optional--',
  7137. "//a[contains(@href,'akafile.com/')]"
  7138. );
  7139. }
  7140. if (GM_getValue("Check_creafile_dot_net_links", false))
  7141. {
  7142. addFileHost(
  7143. "creafile\\.net\/\\w+",
  7144. 'downloadblock',
  7145. 'errtitle',
  7146. 'optional--',
  7147. "//a[contains(@href,'creafile.net/')]"
  7148. );
  7149. }
  7150. if (GM_getValue("Check_hugefiles_dot_net_links", false))
  7151. {
  7152. addFileHost(
  7153. "hugefiles\\.net\/\\w+",
  7154. 'download1|class="btn-create-download" value="Create Download Link">',
  7155. 'File Not Found|No such file with this filename',
  7156. 'optional--',
  7157. "//a[contains(@href,'hugefiles.net/')]"
  7158. );
  7159. }
  7160. if (GM_getValue("Check_sendmyway_dot_com_links", false))
  7161. {
  7162. addFileHost(
  7163. "sendmyway\\.com\/\\w+",
  7164. 'id="btn_download"',
  7165. '500px;text-align:left;"|<center><h3>',
  7166. 'optional--',
  7167. "//a[contains(@href,'sendmyway.com/')]"
  7168. );
  7169. }
  7170. if (GM_getValue("Check_upload_dot_ee_links", false))
  7171. {
  7172. addFileHost(
  7173. "upload\\.ee\/\\w+",
  7174. 'onmouseout="document.dllink.src',
  7175. 'There is no such file.|File was deleted|Fail kustutati|Файл удалён|Такого файла нет',
  7176. 'optional--',
  7177. "//a[contains(@href,'upload.ee/')]"
  7178. );
  7179. }
  7180. if (GM_getValue("Check_shareplace_dot_org_links", false))
  7181. {
  7182. addFileHost(
  7183. "shareplace\\.org\/\\?\\w+",
  7184. 'Download-Link',
  7185. 'Your requested file is not found|Select file to send',
  7186. 'optional--',
  7187. "//a[contains(@href,'shareplace.org/?')]"
  7188. );
  7189. }
  7190. if (GM_getValue("Check_uploadc_dot_com_links", false))
  7191. {
  7192. addFileHost(
  7193. "uploadc\\.com\/\\w+",
  7194. 'id="prebut"',
  7195. 'File Not Found|This file has been removed due',
  7196. 'optional--',
  7197. "//a[contains(@href,'uploadc.com/')]"
  7198. );
  7199. }
  7200. if (GM_getValue("Check_remixshare_dot_com_links", false))
  7201. {
  7202. addFileHost(
  7203. "remixshare\\.com\/\\w+",
  7204. 'id="dl2"',
  7205. '<table class=\'failed\'><tr><td width=\'90%\'>|Sorry, die Datei konnte nicht gefunden werden',
  7206. 'optional--',
  7207. "//a[contains(@href,'remixshare.com/')]"
  7208. );
  7209. }
  7210. if (GM_getValue("Check_exoshare_dot_com_links", false))
  7211. {
  7212. addFileHost(
  7213. "exoshare\\.com\/download\\.php\\?uid=\\w+",
  7214. 'Last Download :',
  7215. 'img src="\\/404.jpg"',
  7216. 'optional--',
  7217. "//a[contains(@href,'exoshare.com/download.php')]"
  7218. );
  7219. }
  7220. if (GM_getValue("Check_borncash_dot_org_links", false))
  7221. {
  7222. addFileHost(
  7223. "borncash\\.org\/download\/\\?a=\\w+",
  7224. 'class="knop_1"',
  7225. '\/error\/er00',
  7226. 'optional--',
  7227. "//a[contains(@href,'borncash.org/download/')]"
  7228. );
  7229. }
  7230. if (GM_getValue("Check_vidplay_dot_net_links", false))
  7231. {
  7232. addFileHost(
  7233. "vidplay\.net\/\\w+",
  7234. 'solvemedia puzzle widget',
  7235. 'File not found|AVOID_IE_BUG',
  7236. 'optional--',
  7237. "//a[contains(@href,'vidplay.net')]");
  7238. }
  7239. if (GM_getValue("Check_storagon_dot_com_links", false))
  7240. {
  7241. addFileHost(
  7242. "storagon\.com\/\\w+",
  7243. 'class="icon-cloud-download"></i>|content="Download Options',
  7244. 'content="Download Downloads|class="error-container">|class="bigger-300 bolder">404<',
  7245. 'optional--',
  7246. "//a[contains(@href,'storagon.com')]");
  7247. }
  7248. if (GM_getValue("Check_filedais_dot_com_links", false))
  7249. {
  7250. addFileHost(
  7251. "filedais\.com\/\\w+",
  7252. 'class="btn btn-info"|name="method_free"',
  7253. 'style="width:500px;text-align:left;">|File Not Found|AVOID_IE_BUG',
  7254. 'optional--',
  7255. "//a[contains(@href,'filedais.com')]");
  7256. }
  7257. if (GM_getValue("Check_ryushare_dot_com_links", false))
  7258. {
  7259. addFileHost(
  7260. "ryushare\.com\/\\w+",
  7261. 'KB|MB',
  7262. '<div style="width:500px;text-align:left;">',
  7263. 'in maintenance mode|Software error:',
  7264. "//a[contains(@href,'ryushare.com')]");
  7265. }
  7266. if (GM_getValue("Check_up_dot_4share_dot_vn_links", false))
  7267. {
  7268. addFileHost(
  7269. "up.4share\.vn\/\\w+",
  7270. '<font size="2" face="Verdana">',
  7271. 'font: 13px Tahoma; color: Brown',
  7272. 'optional--',
  7273. //'optional--',
  7274. "//a[contains(@href,'up.4share.vn')]");
  7275. }
  7276. if (GM_getValue("Check_share_dot_vnn_dot_vn_links", false))
  7277. {
  7278. addFileHost(
  7279. "share.vnn\.vn\/\\w+",
  7280. '"index,follow"|<div class="main" id="download-box">',
  7281. '<meta name="description" content="" />|<h1>Không tìm thấy file bạn yêu cầu</h1>',
  7282. 'optional--',
  7283. //'optional--',
  7284. "//a[contains(@href,'share.vnn.vn')]");
  7285. }
  7286. if (GM_getValue("Check_upfile_dot_vn_links", false))
  7287. {
  7288. addFileHost(
  7289. "upfile\.vn\/\\w+",
  7290. 'download-timer',
  7291. '<meta name="description" content="Upload files|<meta name="description" content="Error "',
  7292. 'optional--',
  7293. //'optional--',
  7294. "//a[contains(@href,'upfile.vn')]");
  7295. }
  7296. /* if (GM_getValue("Check_firedrive_dot_com_links", false))
  7297. {
  7298. addFileHost(
  7299. "firedrive\\.com\/file\/\\w{16}",
  7300. 'as Free User|<a class="continue"|Continue to file|#feedback_btn|application file_standalone',
  7301. 'Welcome to PutLocker|<div class="sad_face_image">|404:',
  7302. 'undergoing scheduled maintenance',
  7303. "//a[contains(@href,'firedrive.com/file')]"
  7304. );
  7305. } */
  7306. if (GM_getValue("Check_aisfile_dot_com_links", false))
  7307. {
  7308. addFileHost(
  7309. "aisfile\.com\/\\w+",
  7310. '<h3 style="text-align:left;">|align=right><b>Filename:',
  7311. '<div style="width:500px;text-align:left;">|File Not Found',
  7312. 'optional--',
  7313. //'optional--',
  7314. "//a[contains(@href,'aisfile.com')]");
  7315. }
  7316. if (GM_getValue("Check_usersfiles_dot_com_links", false))
  7317. {
  7318. addFileHost(
  7319. "usersfiles\.com\/\\w+",
  7320. 'class="btn btn-success|id="btn_download" class="btn"',
  7321. '<div style="width:500px;text-align:left;">',
  7322. 'optional--',
  7323. //'optional--',
  7324. "//a[contains(@href,'usersfiles.com')]");
  7325. }
  7326. if (GM_getValue("Check_pan_dot_baidu_dot_com_links", false))
  7327. {
  7328. addFileHost(
  7329. "pan.baidu\.com\/\\w+",
  7330. 'target="_blank" title=|share-personal-info',
  7331. 'share_notfound.png|background:#f9f9f9',
  7332. 'optional--',
  7333. //'optional--',
  7334. "//a[contains(@href,'pan.baidu.com')]");
  7335. }
  7336. if (GM_getValue("Check_yunpan_dot_cn_links", false))
  7337. {
  7338. addFileHost(
  7339. "yunpan\.cn\/\\w+",
  7340. 'class="icon icon-download',
  7341. 'content="360|http://p5.qhimg.com/t01d1c98667df9dc6cc.jpg',
  7342. 'optional--',
  7343. //'optional--',
  7344. "//a[contains(@href,'yunpan.cn')]");
  7345. }
  7346. if (GM_getValue("Check_file_dash_upload_dot_net_links", false))
  7347. {
  7348. addFileHost(
  7349. "(?:en\\.|)file\\-upload\\.net\/download\\-\\d+\/\\w+",
  7350. 'getElementById("downbild")|style.display',
  7351. 'hochgeladene Datei nicht gefunden werden|has not been found',
  7352. 'optional--',
  7353. //'optional--',
  7354. "//a[contains(@href,'file-upload.net')]");
  7355. }
  7356. if (GM_getValue("Check_gulfup_dot_com_links", false))
  7357. {
  7358. addFileHost(
  7359. "gulfup\.com\/",
  7360. '<!-- Downlod template -->|download.gif',
  7361. '<!-- Errors template -->|class="error">|<!-- form upload -->|[ رفع الملفات ]',
  7362. 'optional--',
  7363. //'optional--',
  7364. "//a[contains(@href,'gulfup.com')]");
  7365. }
  7366. if (GM_getValue("Check_datafilehost_dot_com_links", false))
  7367. {
  7368. addFileHost(
  7369. "datafilehost\\.com\/(?:download-\\w+\\.html|d\/\\w+)",
  7370. 'dldtable">',
  7371. 'does not exist\\.',
  7372. 'optional--',
  7373. //'optional--',
  7374. "//a[contains(@href,'datafilehost.com')]");
  7375. }
  7376. if (GM_getValue("Check_box_dot_com_links", false))
  7377. {
  7378. addFileHost(
  7379. "box\.com\/\\w+",
  7380. 'download-file-btn|id="download_button',
  7381. 'BIyMin.png| <div class="error_message|link has been removed',
  7382. 'optional--',
  7383. //'optional--',
  7384. "//a[contains(@href,'app.box.com')]");
  7385. }
  7386. if (GM_getValue("Check_dropbox_dot_com_links", false))
  7387. {
  7388. addFileHost(
  7389. "dropbox\.com\/s\/\\w+",
  7390. 'default_content_download_button" class="freshbutton-blue">|content_download_button',
  7391. '>Nothing Here<|>Error (404)<',
  7392. 'title>Dropbox - 509|Error (403)|Error: 429',
  7393. "//a[contains(@href,'dropbox.com')]");
  7394. }
  7395. if (GM_getValue("Check_box_dot_net_links", false))
  7396. {
  7397. addFileHost(
  7398. "box\.net\/\\w+",
  7399. 'download-file-btn|id="download_button',
  7400. 'BIyMin.png| <div class="error_message',
  7401. 'optional--',
  7402. //'optional--',
  7403. "//a[contains(@href,'box.net')]");
  7404. }
  7405. if (GM_getValue("Check_fileband_dot_com_links", false))
  7406. {
  7407. addFileHost(
  7408. "fileband\.com\/\\w+",
  7409. 'value="download1">|name="id" value=',
  7410. '<div style="width:500px;text-align:left;">|not be found',
  7411. 'optional--',
  7412. //'optional--',
  7413. "//a[contains(@href,'fileband.com')]");
  7414. }
  7415. if (GM_getValue("Check_uploadrocket_dot_net_links", false))
  7416. {
  7417. addFileHost(
  7418. "uploadrocket\.net\/\\w+",
  7419. '<font style="font-size:12px;">|<h2>Download File|method_isfree',
  7420. 'font style="color:#d33;|File Not Found',
  7421. 'optional--',
  7422. //'optional--',
  7423. "//a[contains(@href,'uploadrocket.net')]");
  7424. }
  7425. if (GM_getValue("Check_filedropper_dot_com_links", false))
  7426. {
  7427. addFileHost(
  7428. "filedropper\.com\/\\w+",
  7429. 'background:#ddd;|width:985px; ',
  7430. 'background-color:#FFFFFF;|margin-left: -400px;',
  7431. 'optional--',
  7432. //'optional--',
  7433. "//a[contains(@href,'filedropper.com')]");
  7434. }
  7435. if (GM_getValue("Check_tropicshare_dot_com_links", false))
  7436. {
  7437. addFileHost(
  7438. "tropicshare\\.com\/files\/\\d+",
  7439. 'MB</span>|GB</span>|KB</span>',
  7440. '>FNF<|size: </span>',
  7441. 'optional--',
  7442. //'optional--',
  7443. "//a[contains(@href,'tropicshare.com')]");
  7444. }
  7445. if (GM_getValue("Check_goldbytez_dot_com_links", false))
  7446. {
  7447. addFileHost(
  7448. "goldbytez\.com\/\\w+",
  7449. '<h2>Download</h2>|<center><h2>File: <font color="red">',
  7450. '<div style="width:500px;text-align:left;">|<h2>Error</h2>',
  7451. 'optional--',
  7452. //'optional--',
  7453. "//a[contains(@href,'goldbytez.com')]");
  7454. }
  7455. if (GM_getValue("Check_worldbytez_dot_com_links", false))
  7456. {
  7457. addFileHost(
  7458. "worldbytez\.com\/\\w+",
  7459. '<div class="download_type">',
  7460. '<div style="width:500px;text-align:left;">',
  7461. 'optional--',
  7462. //'optional--',
  7463. "//a[contains(@href,'worldbytez.com')]");
  7464. }
  7465. if (GM_getValue("Check_freefilehosting_dot_net_links", false))
  7466. {
  7467. addFileHost(
  7468. "freefilehosting\.net\/\\w+",
  7469. 'Type: cbr|Type: rar|Type: jpg|Type: mkv|Type: avi|Type: mpg|Type: mpeg|Type: zip|Type: wmvType: bmpType: gifType: mp4Type: mp3',
  7470. '175px;" value="http://www.freefilehosting.net/"|Filename: <br>',
  7471. 'optional--',
  7472. //'optional--',
  7473. "//a[contains(@href,'freefilehosting.net')]");
  7474. }
  7475. if (GM_getValue("Check_ziddu_dot_com_links", false))
  7476. {
  7477. addFileHost(
  7478. "ziddu\.com\/\\w+",
  7479. 'downloads.ziddu.com|downloadfilelinkicon',
  7480. 'errortracking.php|images/oops.png|fontfamilyverdana error',
  7481. 'optional--',
  7482. //'optional--',
  7483. "//a[contains(@href,'ziddu.com')]");
  7484. }
  7485. if (GM_getValue("Check_exclusiveloader_dot_com_links", false))
  7486. {
  7487. addFileHost(
  7488. "exclusiveloader\.com\/\\w+",
  7489. 'style="padding-top:55px; padding-bottom:65px;">|<h2>Download</h2>',
  7490. 'File Not Found|width:322px;text-align:left;" class="no_file">',
  7491. 'optional--',
  7492. //'optional--',
  7493. "//a[contains(@href,'exclusiveloader.com')]");
  7494. }
  7495. if (GM_getValue("Check_sharerapid_dot_cz_links", false))
  7496. {
  7497. addFileHost(
  7498. "sharerapid\.cz\/\\w+",
  7499. 'value="Stáhnout"|soubor" style|Stahování je povoleno pouze pro přihlášené uživatele',
  7500. 'error_div">|404 - Not Found',
  7501. 'optional--',
  7502. //'optional--',
  7503. "//a[contains(@href,'sharerapid.cz')]");
  7504. }
  7505. if (GM_getValue("Check_sdilej_dot_cz_links", false))
  7506. {
  7507. addFileHost(
  7508. "sdilej\.cz\/\\w+",
  7509. 'class="page-download"',
  7510. '<h2 class="red">|czshare.com|sponsored listings|This domain is for sale',
  7511. 'optional--',
  7512. //'optional--',
  7513. "//a[contains(@href,'sdilej.cz')]");
  7514. }
  7515. if (GM_getValue("Check_lafiles_dot_com_links", false))
  7516. {
  7517. addFileHost(
  7518. "lafiles\.com\/\\w+",
  7519. '<div id="pay_modes">',
  7520. '<b class="err"></b>',
  7521. 'optional--',
  7522. //'optional--',
  7523. "//a[contains(@href,'lafiles.com')]");
  7524. }
  7525. if (GM_getValue("Check_fboom_dot_me_links", false))
  7526. {
  7527. addFileHost(
  7528. "fboom\.me\/file\/\\w+",
  7529. 'id="download-free" href="#"',
  7530. 'class="error-v1-title">404<|File not found or deleted',
  7531. 'optional--',
  7532. //'optional--',
  7533. "//a[contains(@href,'fboom.me')]");
  7534. }
  7535. if (GM_getValue("Check_fileboom_dot_me_links", false))
  7536. {
  7537. addFileHost(
  7538. "fileboom\.me\/file\/\\w+",
  7539. 'id="download-free" href="#"',
  7540. 'class="error-v1-title">404<|File not found or deleted',
  7541. 'optional--',
  7542. //'optional--',
  7543. "//a[contains(@href,'fileboom.me')]");
  7544. }
  7545. if (GM_getValue("Check_acefile_dot_net_links", false))
  7546. {
  7547. addFileHost(
  7548. "acefile\.net\/\\w+",
  7549. 'align=right nowrap><b>',
  7550. 'File Not Found|<div style="width:322px;text-align:left;" class="no_file">',
  7551. 'optional--',
  7552. //'optional--',
  7553. "//a[contains(@href,'acefile.net')]");
  7554. }
  7555. if (GM_getValue("Check_megarapid_dot_cz_links", false))
  7556. {
  7557. addFileHost(
  7558. "megarapid\.cz\/\\w+",
  7559. 'value="Stáhnout"|soubor" style|Stahování je povoleno pouze pro přihlášené uživatele',
  7560. 'error_div">|404 - Not Found',
  7561. 'optional--',
  7562. //'optional--',
  7563. "//a[contains(@href,'megarapid.cz')]");
  7564. }
  7565. if (GM_getValue("Check_yadi_dot_sk_links", false))
  7566. {
  7567. addFileHost(
  7568. "yadi\.sk\/\\w+",
  7569. 'twitter:site|View and download',
  7570. 'error code|Nothing found',
  7571. 'optional--',
  7572. //'optional--',
  7573. "//a[contains(@href,'yadi.sk')]");
  7574. }
  7575. if (GM_getValue("Check_imdb_dot_com_links", false))
  7576. {
  7577. addFileHost(
  7578. "imdb\.com\/\\w+",
  7579. 'imdb.com',
  7580. '404 Error',
  7581. 'optional--',
  7582. "//a[contains(@href,'imdb.com')]");
  7583. }
  7584. if (GM_getValue("Check_hitfile_dot_net_links", false))
  7585. {
  7586. addFileHost(
  7587. "hitfile\.net\/\\w+",
  7588. 'class="download-file',
  7589. 'style="width:16px;height:16px;border:0;|File not found|Файл не найден. Возможно он был удален',
  7590. 'optional--',
  7591. //'optional--',
  7592. "//a[contains(@href,'hitfile.net')]");
  7593. }
  7594. /* if (GM_getValue("Check_uploadto_dot_us_links", false))
  7595. {
  7596. addFileHost(
  7597. "uploadto\\.us\/file\/details\/[\\w+-]",
  7598. 'name="recaptcha_response',
  7599. '="/folder/add"|>File (?:not found|restricted|has been deleted)|<title>UPLOADTO.US</title>',
  7600. 'btn-large btn-danger">|Account limitation notice|502 Bad Gateway',
  7601. "//a[contains(@href,'uploadto.us/file')]",
  7602. true);
  7603. } */
  7604. if (GM_getValue("Check_nitroflare_dot_com_links", true))
  7605. {
  7606. addFileHost(
  7607. "nitroflare\.com\/\\w+",
  7608. 'alert.png|LowSpeedMeter.png',
  7609. 'file has been removed|id="error" style="display|Probably deleted',
  7610. 'optional--',
  7611. "//a[contains(@href,'nitroflare.com')]");
  7612. }
  7613. if (GM_getValue("Check_up_dot_top4top_dot_net_links", false))
  7614. {
  7615. addFileHost(
  7616. "up.top4top\.net\/\\w+",
  7617. 'start Downlod template',
  7618. 'start err template',
  7619. 'optional--',
  7620. "//a[contains(@href,'up.top4top.net')]");
  7621. }
  7622. if (GM_getValue("Check_filejoker_dot_net_links", false))
  7623. {
  7624. addFileHost(
  7625. "filejoker\.net\/\\w+",
  7626. 'button id="regular-download">Slow|method_free" value="1|<div id="download" class="download0">',
  7627. 'File Not Found|class="not_found|<div id="download" class="not_found">|"err">DMCA Complaint<',
  7628. 'optional--',
  7629. "//a[contains(@href,'filejoker.net')]");
  7630. }
  7631. if (GM_getValue("Check_free_dot_fr_links", false))
  7632. {
  7633. addFileHost(
  7634. "(?:dl.\\.|)free\\.fr",
  7635. 'Valider et t&eacute;l&eacute',
  7636. 'Fichier inexistant',
  7637. 'optional--',
  7638. "//a[contains(@href,'free.fr')]");
  7639. }
  7640. if (GM_getValue("Check_gboxes_dot_com_links", false))
  7641. {
  7642. addFileHost(
  7643. "gboxes\.com\/\\w+",
  7644. 'You have requested|color="red">http://www.gboxes.com',
  7645. 'File Not Found|<div style="width:500px;text-align:left;">',
  7646. 'optional--',
  7647. "//a[contains(@href,'gboxes.com')]");
  7648. }
  7649. if (GM_getValue("Check_1fichier_dot_com_links", false))
  7650. {
  7651. addFileHost(
  7652. "(?:\\w{10}\\.(?:1fichier|dl4free)\\.com\/)|(?:(?:1fichier|dl4free)\\.com\/\\?\\w{10})|(?:www\\.)?\\w{6,}\\.1fichier\\.com",
  7653. '<title>Download</title>|<br/>You must wait|submit" value="Download',
  7654. 'File not found|file could not be found|Select files to send',
  7655. 'optional--',
  7656. "//a[contains(@href,'1fichier') or contains(@href,'dl4free.com/')]"
  7657. );
  7658. }
  7659. if (GM_getValue("Check_led_dot_wf_links", false))
  7660. {
  7661. addFileHost(
  7662. "led\.wf\/\\w+",
  7663. 'logo_0.png|downloads.gif"',
  7664. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link',
  7665. 'optional--',
  7666. "//a[contains(@href,'led.wf')]");
  7667. }
  7668. if (GM_getValue("Check_lan_dot_wf_links", false))
  7669. {
  7670. addFileHost(
  7671. "lan\.wf\/\\w+",
  7672. 'logo_0.png|downloads.gif"',
  7673. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link',
  7674. 'optional--',
  7675. "//a[contains(@href,'lan.wf')]");
  7676. }
  7677. if (GM_getValue("Check_adlink_dot_wf_links", false))
  7678. {
  7679. addFileHost(
  7680. "adlink\.wf\/\\w+",
  7681. 'logo_0.png|downloads.gif"',
  7682. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link',
  7683. 'optional--',
  7684. "//a[contains(@href,'adlink.wf')]");
  7685. }
  7686. if (GM_getValue("Check_click_dot_tf_links", false))
  7687. {
  7688. addFileHost(
  7689. "click\.tf\/\\w+",
  7690. 'logo_0.png|downloads.gif"',
  7691. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link',
  7692. 'optional--',
  7693. "//a[contains(@href,'click.tf')]");
  7694. }
  7695. if (GM_getValue("Check_ssh_dot_tf_links", false))
  7696. {
  7697. addFileHost(
  7698. "ssh\.tf\/\\w+",
  7699. 'logo_0.png|downloads.gif"',
  7700. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link',
  7701. 'optional--',
  7702. "//a[contains(@href,'ssh.tf')]");
  7703. }
  7704. if (GM_getValue("Check_ssh_dot_yt_links", false))
  7705. {
  7706. addFileHost(
  7707. "ssh\.yt\/\\w+",
  7708. 'logo_0.png|downloads.gif"',
  7709. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link',
  7710. 'optional--',
  7711. "//a[contains(@href,'ssh.yt')]");
  7712. }
  7713. if (GM_getValue("Check_yep_dot_pm_links", false))
  7714. {
  7715. addFileHost(
  7716. "yep\.pm\/\\w+",
  7717. 'logo_0.png|downloads.gif"',
  7718. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link',
  7719. 'optional--',
  7720. "//a[contains(@href,'yep.pm')]");
  7721. }
  7722. if (GM_getValue("Check_kyc_dot_pm_links", false))
  7723. {
  7724. addFileHost(
  7725. "kyc\.pm\/\\w+",
  7726. 'logo_0.png|downloads.gif"',
  7727. 'border-color: #5D729B;|bgcolor="#778AAF"|Invalid Link',
  7728. 'optional--',
  7729. "//a[contains(@href,'kyc.pm')]");
  7730. }
  7731. if (GM_getValue("Check_brupload_dot_net_links", false))
  7732. {
  7733. addFileHost(
  7734. "brupload\.net\/\\w+",
  7735. 'Download Gratuito',
  7736. '<div style="width:500px;text-align:left;">',
  7737. 'optional--',
  7738. //'optional--',
  7739. "//a[contains(@href,'brupload.net')]");
  7740. }
  7741. if (GM_getValue("Check_cloudzilla_dot_to_links", false))
  7742. {
  7743. addFileHost(
  7744. "cloudzilla\.to\/\\w+",
  7745. 'btn1" id="free_download|onclick="freeDownload|id="pwd_protected">',
  7746. 'File not found|/imgs/broken.png',
  7747. 'optional--',
  7748. //'optional--',
  7749. "//a[contains(@href,'cloudzilla.to')]");
  7750. }
  7751. if (GM_getValue("Check_fileparadox_dot_in_links", false))
  7752. {
  7753. addFileHost(
  7754. "fileparadox\.in\/\\w+",
  7755. 'CONTENT="Download File|method_free_file',
  7756. '>File Not Found<|id="no_filedownload">|FILE NOT FOUND',
  7757. 'optional--',
  7758. //'optional--',
  7759. "//a[contains(@href,'fileparadox.in')]");
  7760. }
  7761. if (GM_getValue("Check_clicknupload_dot_com_links", false))
  7762. {
  7763. addFileHost(
  7764. "clicknupload\.com\/\\w+",
  7765. 'name="method_free',
  7766. 'File Not Found',
  7767. 'optional--',
  7768. //'optional--',
  7769. "//a[contains(@href,'clicknupload.com')]");
  7770. }
  7771. if (GM_getValue("Check_ex_dash_load_dot_com_links", false))
  7772. {
  7773. addFileHost(
  7774. "ex-load\.com\/\\w+",
  7775. 'name="method_free|<p>Download File:</p>',
  7776. 'Folder Not Found|File Not Found|Error 404',
  7777. 'optional--',
  7778. //'optional--',
  7779. "//a[contains(@href,'ex-load.com')]");
  7780. }
  7781. if (GM_getValue("Check_hexupload_dot_com_links", false))
  7782. {
  7783. addFileHost(
  7784. "hexupload\.com\/\\w+",
  7785. 'button" value="Free|type="submit" value=""',
  7786. 'File Not Found|<div style="width:500px;text-align:left;">',
  7787. 'optional--',
  7788. //'optional--',
  7789. "//a[contains(@href,'hexupload.com')]");
  7790. }
  7791. if (GM_getValue("Check_wizupload_dot_com_links", false))
  7792. {
  7793. addFileHost(
  7794. "wizupload\.com\/\\w+",
  7795. 'btn_download|class="downloadbtn"',
  7796. '>File Not Found<',
  7797. 'optional--',
  7798. //'optional--',
  7799. "//a[contains(@href,'wizupload.com')]");
  7800. }
  7801. if (GM_getValue("Check_filecloud_dot_cc_links", false))
  7802. {
  7803. addFileHost(
  7804. "filecloud\.cc\/\\w+",
  7805. 'align="center"><input type="submit" name=',
  7806. 'File Not Found|<Title>FileCloud - Premium Hosting Service<',
  7807. 'optional--',
  7808. //'optional--',
  7809. "//a[contains(@href,'filecloud.cc')]");
  7810. }
  7811. if (GM_getValue("Check_inclouddrive_dot_com_links", false))
  7812. {
  7813. addFileHost(
  7814. "inclouddrive\.com\/\\w+",
  7815. 'initfreedownload',
  7816. '<title>Content Unavailable|The file you are trying to download is no longer available',
  7817. 'optional--',
  7818. //'optional--',
  7819. "//a[contains(@href,'inclouddrive.com')]");
  7820. }
  7821. if (GM_getValue("Check_radicalshare_dot_com_links", false))
  7822. {
  7823. addFileHost(
  7824. "radicalshare\.com\/\\w+",
  7825. 'value="download1|name="method_free"',
  7826. 'File Not Found<|<div style="width:500px;text-align:left;">',
  7827. 'optional--',
  7828. //'optional--',
  7829. "//a[contains(@href,'radicalshare.com')]");
  7830. }
  7831. if (GM_getValue("Check_sharemods_dot_com_links", false))
  7832. {
  7833. addFileHost(
  7834. "sharemods\.com\/\\w+",
  7835. 'name="method_free"',
  7836. 'File Not Found<',
  7837. 'optional--',
  7838. //'optional--',
  7839. "//a[contains(@href,'sharemods.com')]");
  7840. }
  7841. if (GM_getValue("Check_hostr_dot_co_links", false))
  7842. {
  7843. addFileHost(
  7844. "hostr\.co\/\\w+",
  7845. 'method="get"',
  7846. 'File not found<|error-page',
  7847. 'optional--',
  7848. //'optional--',
  7849. "//a[contains(@href,'hostr.co')]");
  7850. }
  7851. if (GM_getValue("Check_filepi_dot_com_links", false))
  7852. {
  7853. addFileHost(
  7854. "filepi\.com\/\\w+",
  7855. 'id="button_start">',
  7856. 'File not found',
  7857. 'optional--',
  7858. //'optional--',
  7859. "//a[contains(@href,'filepi.com')]");
  7860. }
  7861. if (GM_getValue("Check_tikfile_dot_com_links", false))
  7862. {
  7863. addFileHost(
  7864. "tikfile\.com\/\\w+",
  7865. 'btn_download',
  7866. 'File Not Found|file was removed|Reason for deletion',
  7867. 'optional--',
  7868. //'optional--',
  7869. "//a[contains(@href,'tikfile.com')]");
  7870. }
  7871. if (GM_getValue("Check_cloudsix_dot_me_links", false))
  7872. {
  7873. addFileHost(
  7874. "cloudsix\.me\/\\w+",
  7875. 'name="method_free"',
  7876. 'File Not Found|width:500px;text-align:left;">',
  7877. 'optional--',
  7878. //'optional--',
  7879. "//a[contains(@href,'cloudsix.me')]");
  7880. }
  7881. if (GM_getValue("Check_neodrive_dot_co_links", false))
  7882. {
  7883. addFileHost(
  7884. "neodrive\.co\/\\w+",
  7885. 'btn1" id="free_download|onclick="freeDownload|id="pwd_protected">',
  7886. 'File not found|/imgs/broken.png',
  7887. 'optional--',
  7888. //'optional--',
  7889. "//a[contains(@href,'neodrive.co')]");
  7890. }
  7891. if (GM_getValue("Check_chayfile_dot_com_links", false))
  7892. {
  7893. addFileHost(
  7894. "chayfile\.com\/\\w+",
  7895. 'name="method_free"',
  7896. 'File Not Found|<h3>The file was removed by administrator</h3>',
  7897. 'optional--',
  7898. //'optional--',
  7899. "//a[contains(@href,'chayfile.com')]");
  7900. }
  7901. if (GM_getValue("Check_xfileload_dot_com_links", false))
  7902. {
  7903. addFileHost(
  7904. "xfileload\.com\/\\w+",
  7905. 'Filename:|Имя файла:|Dateiname:|nom de fichier :|اسم الملف:|Dosya AdД±|Nazwa:|Nombre de fichero:|NamaFile:|Bestandsnaam:|שם קובץ:"',
  7906. '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..|הקובץ שחיפשת לא נמצא.',
  7907. 'optional--',
  7908. //'optional--',
  7909. "//a[contains(@href,'xfileload.com')]");
  7910. }
  7911. if (GM_getValue("Check_rockfile_dot_eu_links", false))
  7912. {
  7913. addFileHost(
  7914. "rockfile\.eu\/\\w+",
  7915. 'You have requested:',
  7916. 'The file you were looking for could not be found, sorry for any inconvenience.',
  7917. 'optional--',
  7918. //'optional--',
  7919. "//a[contains(@href,'rockfile.eu')]");
  7920. }
  7921. if (GM_getValue("Check_24uploading_dot_com_links", false))
  7922. {
  7923. addFileHost(
  7924. "24uploading\.com\/\\w+",
  7925. 'File:|Download Speed:',
  7926. '<b>File Not Found</b>|file was removed',
  7927. 'optional--',
  7928. //'optional--',
  7929. "//a[contains(@href,'24uploading.com')]");
  7930. }
  7931. if (GM_getValue("Check_tusfiles_dot_net_links", false))
  7932. {
  7933. addFileHost(
  7934. "tusfiles\.net\/\\w+",
  7935. 'i/icon/dll.png"|>Start download<br',
  7936. 'no longer available<|i/ino.png"',
  7937. 'optional--',
  7938. //'optional--',
  7939. "//a[contains(@href,'tusfiles.net')]");
  7940. }
  7941. if (GM_getValue("Check_2drive_dot_net_links", false))
  7942. {
  7943. addFileHost(
  7944. "2drive\.net\/\\w+",
  7945. 'value="Free Download"',
  7946. 'File Not Found',
  7947. 'optional--',
  7948. //'optional--',
  7949. "//a[contains(@href,'2drive.net')]");
  7950. }
  7951. if (GM_getValue("Check_jumbofile_dot_net_links", false))
  7952. {
  7953. addFileHost(
  7954. "jumbofile\.net\/\\w+",
  7955. 'button" class="" value="Free',
  7956. 'This File Was Deleted',
  7957. 'optional--',
  7958. //'optional--',
  7959. "//a[contains(@href,'jumbofile.net')]");
  7960. }
  7961. if (GM_getValue("Check_ozofiles_dot_com_links", false))
  7962. {
  7963. addFileHost(
  7964. "ozofiles\.com\/\\w+",
  7965. 'button" value="Free',
  7966. 'File Not Found|width:500px;text-align:left;">',
  7967. 'optional--',
  7968. //'optional--',
  7969. "//a[contains(@href,'ozofiles.com')]");
  7970. }
  7971. if (GM_getValue("Check_loudupload_dot_net_links", false))
  7972. {
  7973. addFileHost(
  7974. "loudupload\.net\/\\w+",
  7975. 'value="Get Links',
  7976. 'File Not Found',
  7977. 'optional--',
  7978. //'optional--',
  7979. "//a[contains(@href,'loudupload.net')]");
  7980. }
  7981. if (GM_getValue("Check_rapidsonic_dot_com_links", false))
  7982. {
  7983. addFileHost(
  7984. "(rapidsonic|fileparadox)\\.com\/\\w+",
  7985. 'method_free" id="submit_btn|<h4><i class="icon_document_alt"></i>Download File</h4>',
  7986. '>File Not Found<|id="no_filedownload">|>FILE NOT FOUND<|file has been deleted|No such file with this filename',
  7987. 'optional--',
  7988. //'optional--',
  7989. "//a[contains(@href,'rapidsonic') or contains(@href,'fileparadox.com')]");
  7990. }
  7991. if (GM_getValue("Check_krotix_dot_net_links", false))
  7992. {
  7993. addFileHost(
  7994. "krotix\.net\/\\w+",
  7995. 'btn btn-warning|btn-free',
  7996. 'pageErrors|This File has been removed',
  7997. 'content="Scheduled Maintenance',
  7998. //'optional--',
  7999. "//a[contains(@href,'krotix.net')]");
  8000. }
  8001. if (GM_getValue("Check_userscloud_dot_com_links", false))
  8002. {
  8003. addFileHost(
  8004. "userscloud\.com\/\\w+",
  8005. 'btn_download',
  8006. '>Server OFFLINE|background:#D3D3D3;border-bottom:1px solid #BBB;font:bold 13px Verdana;padding:3px;">',
  8007. 'optional--',
  8008. //'optional--',
  8009. "//a[contains(@href,'userscloud.com')]");
  8010. }
  8011. if (GM_getValue("Check_kumpulbagi_dot_com_links", false))
  8012. {
  8013. addFileHost(
  8014. "kumpulbagi\.com\/\\w+",
  8015. 'class="button download',
  8016. 'internal server error',
  8017. 'optional--',
  8018. //'optional--',
  8019. "//a[contains(@href,'kumpulbagi.com')]");
  8020. }
  8021. if (GM_getValue("Check_faststore_dot_org_links", false))
  8022. {
  8023. addFileHost(
  8024. "faststore\.org\/\\w+",
  8025. 'name="method_free',
  8026. 'File Not Found',
  8027. 'optional--',
  8028. //'optional--',
  8029. "//a[contains(@href,'faststore.org')]");
  8030. }
  8031. if (GM_getValue("Check_prefiles_dot_com_links", false))
  8032. {
  8033. addFileHost(
  8034. "prefiles\.com\/\\w+",
  8035. 'id="method_free',
  8036. 'File not Found',
  8037. 'optional--',
  8038. //'optional--',
  8039. "//a[contains(@href,'prefiles.com')]");
  8040. }
  8041. if (GM_getValue("Check_doraupload_dot_com_links", false))
  8042. {
  8043. addFileHost(
  8044. "doraupload\.com\/\\w+",
  8045. 'btn_download',
  8046. 'class="error-code|Could Not Be Found',
  8047. 'optional--',
  8048. //'optional--',
  8049. "//a[contains(@href,'doraupload.com')]");
  8050. }
  8051. if (GM_getValue("Check_openload_dot_io_links", false))
  8052. {
  8053. addFileHost(
  8054. "openload\.io\/\\w+",
  8055. 'btn btn-primary|class="count">',
  8056. 'class="jumbotron">|We are sorry',
  8057. 'optional--',
  8058. //'optional--',
  8059. "//a[contains(@href,'openload.io')]");
  8060. }
  8061. if (GM_getValue("Check_uploads_dot_xxx_links", false))
  8062. {
  8063. addFileHost(
  8064. "uploads\.xxx\/\\w+",
  8065. 'downoadForFree',
  8066. 'File not found',
  8067. 'optional--',
  8068. //'optional--',
  8069. "//a[contains(@href,'uploads.xxx')]");
  8070. }
  8071. if (GM_getValue("Check_zxcfiles_dot_com_links", false))
  8072. {
  8073. addFileHost(
  8074. "zxcfiles\.com\/\\w+",
  8075. 'class="downloadbtn',
  8076. 'File Not Found',
  8077. 'optional--',
  8078. //'optional--',
  8079. "//a[contains(@href,'zxcfiles.com')]");
  8080. }
  8081. if (GM_getValue("Check_up07_dot_net_links", false))
  8082. {
  8083. addFileHost(
  8084. "up07\.net\/\\w+",
  8085. 'name="method_free',
  8086. 'File Not Found',
  8087. 'optional--',
  8088. //'optional--',
  8089. "//a[contains(@href,'up07.net')]");
  8090. }
  8091. if (GM_getValue("Check_fileupload_dot_pw_links", false))
  8092. {
  8093. addFileHost(
  8094. "fileupload\.pw\/\\w+",
  8095. 'value="Free"',
  8096. 'File Not Found',
  8097. 'optional--',
  8098. //'optional--',
  8099. "//a[contains(@href,'fileupload.pw')]");
  8100. }
  8101. if (GM_getValue("Check_4upld_dot_com_links", false))
  8102. {
  8103. addFileHost(
  8104. "4upld\.com\/\\w+",
  8105. 'alt="Download Now"|content="Download file">|btn-free-element',
  8106. '<title>Error|content="error|File not found',
  8107. 'optional--',
  8108. //'optional--',
  8109. "//a[contains(@href,'4upld.com')]");
  8110. }
  8111. if (GM_getValue("Check_newfileland_dot_com_links", false))
  8112. {
  8113. addFileHost(
  8114. "newfileland\.com\/\\w+",
  8115. 'name="method_free',
  8116. 'File Not Found',
  8117. 'optional--',
  8118. //'optional--',
  8119. "//a[contains(@href,'newfileland.com')]");
  8120. }
  8121.  
  8122. }
  8123. //start here
  8124.  
  8125. //hosts with direct download, so they must be requested for headers only
  8126. function initFileHostsHeadersOnly()
  8127. {
  8128. function addFileHostHeadersOnly(linkRegex, isAliveRegex, isDeadRegex, xpathEx, ispremRegex)
  8129. {
  8130. var host = new Array(5);
  8131. host[0] = linkRegex;
  8132. host[1] = isAliveRegex;
  8133. host[2] = isDeadRegex;
  8134. host[3] = xpathEx;
  8135. host[4] = ispremRegex;
  8136. http_file_hosts_headers_only.push(host);
  8137. }
  8138. if (GM_getValue("Check_uloziste_dot_com_links", false))
  8139. {
  8140. addFileHostHeadersOnly(
  8141. "(?:|files\\.)uloziste\\.com\/\\w+\/\\w+",
  8142. 'Connection: Keep-Alive',
  8143. 'Content-Length: 3857',
  8144. "//a[contains(@href,'uloziste.com')]"
  8145. )
  8146. }
  8147. if (GM_getValue("Check_adrive_dot_com_links", false))
  8148. {
  8149. addFileHostHeadersOnly(
  8150. "adrive\\.com\/public\/\\w+",
  8151. 'Connection: keep-alive',
  8152. 'orig_ref=deleted',
  8153. "//a[contains(@href,'adrive.com')]"
  8154. )
  8155. }
  8156. if (GM_getValue("Check_myupload_dot_dk_links", false))
  8157. {
  8158. addFileHostHeadersOnly(
  8159. "myupload\\.dk\/showfile\/\\w+",
  8160. 'Expires:',
  8161. 'squeeze1\\s+Vary',
  8162. "//a[contains(@href,'myupload.dk/showfile')]"
  8163. )
  8164. }
  8165. }
  8166. //CustomRules
  8167. //functions add...Host copied here
  8168. function addObsoleteHost(linkRegex, xpathEx)
  8169. {
  8170. var host = new Array(2);
  8171. host[0] = linkRegex;
  8172. host[1] = xpathEx;
  8173. http_file_hosts_obsolete.push(host);
  8174. }
  8175. function addFileHost(linkRegex, isAliveRegex, isDeadRegex, isUnavaRegex, xpathEx, tryLoop, ispremRegex)
  8176. {
  8177. var host = new Array(7);
  8178. host[0] = linkRegex;
  8179. host[1] = isAliveRegex;
  8180. host[2] = isDeadRegex;
  8181. host[3] = isUnavaRegex;
  8182. host[4] = xpathEx;
  8183. tryLoop ? host[5] = true : host[5] = false;
  8184. host[6] = ispremRegex;
  8185. http_file_hosts.push(host);
  8186. }
  8187. function addFileHostHeadersOnly(linkRegex, isAliveRegex, isDeadRegex, xpathEx, ispremRegex)
  8188. {
  8189. var host = new Array(5);
  8190. host[0] = linkRegex;
  8191. host[1] = isAliveRegex;
  8192. host[2] = isDeadRegex;
  8193. host[3] = xpathEx;
  8194. host[4] = ispremRegex;
  8195. http_file_hosts_headers_only.push(host);
  8196. }
  8197. //takes a fully built rules array and adds the rules to WARLC
  8198. function applyCustomRules(customRules)
  8199. {
  8200. if (!customRules) return;
  8201. var rules, r, i;
  8202. rules = customRules.rules;
  8203. for (i = 0 ; i < rules.length ; i++)
  8204. {
  8205. r = rules[i];
  8206. if (r.enabled)
  8207. {
  8208. switch (r.type)
  8209. {
  8210. case 'single':
  8211. addFileHost(r.urlregex, r.aliveregex, r.deadregex, r.unavaregex, r.premregex||'', r.xpath);
  8212. break;
  8213. case 'headers':
  8214. addFileHostHeadersOnly(r.urlregex, r.aliveregex, r.deadregex, r.xpath, r.premregex);
  8215. break;
  8216. case 'obsolete':
  8217. addObsoleteHost(r.urlregex, r.xpath)
  8218. break;
  8219. }
  8220. }
  8221. }
  8222. }
  8223.  
  8224.  
  8225. function initFileHostsCustom()
  8226. {
  8227. if (Custom_rules && Custom_rules_text)
  8228. {
  8229. var msg = '';
  8230. if (newVersion)
  8231. msg = 'New version of W.A.R. Links Checker detected.\n\n';
  8232. else if ((now - last_custom_rules_nag) >= 60*24*60*60*1000)
  8233. msg = '60 or more days have passed since this notification.\n\n';
  8234. if (msg && /^\s*@customrule(?:_obsolete)?\s/mi.test(Custom_rules_text))
  8235. {
  8236. GM_setValue('last_custom_rules_nag', ''+new Date().getTime()); //reset nag
  8237. msg +=
  8238. 'Either new version of W.A.R. Links Checker detected or 60 days passed since this notify.\n'+
  8239. 'Please check that your custom rules haven\'t been built into WARLC.\n'+
  8240. 'If not, please share them with us so they can be included in the next version! Built-in rules are always preferred.\n\n'+
  8241. 'We apologize for this annoying notification, but there is a reason to this.\n'+
  8242. 'Ideally, WARLC would check which of your custom rules have been included and disable them. '+
  8243. 'Unfortunately, there is no easy way to do that, but we don\'t want everybody to just use their custom rules '+
  8244. 'forever without ever checking if the built-in ones have been added/fixed. This is currently the only way '+
  8245. 'to remind you that you should try built-in rules, report missing/non-working ones and share your custom rules.';
  8246. setTimeout(function(){alert(msg)},0);
  8247. }
  8248. var customRules = parseCustomRules(Custom_rules_text);
  8249. if (customRules.warning || customRules.error)
  8250. alert('There were ' + customRules.error + ' errors, ' + customRules.warning + ' warnings, ' +
  8251. customRules.note + ' notes found during Custom Rules processing.\n' + customRules.rules.length + ' valid rules found.\n\n' +
  8252. JSON.stringify(customRules.info, null, ' '));
  8253. applyCustomRules(customRules);
  8254. }
  8255. }
  8256. //end of CustomRules processing
  8257.  
  8258.  
  8259.  
  8260. } //end of function start
  8261.  
  8262.  
  8263.  
  8264. function initClipBoardTools()
  8265. {
  8266. unsafeWindow.copyToClipboard = function(text)
  8267. {
  8268. try
  8269. {
  8270. this.netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
  8271.  
  8272. var str = Components.classes["@mozilla.org/supports-string;1"].
  8273. createInstance(Components.interfaces.nsISupportsString);
  8274. if (!str) return false;
  8275.  
  8276. str.data = text;
  8277.  
  8278. var trans = Components.classes["@mozilla.org/widget/transferable;1"].
  8279. createInstance(Components.interfaces.nsITransferable);
  8280. if (!trans) return false;
  8281.  
  8282. trans.addDataFlavor("text/unicode");
  8283. trans.setTransferData("text/unicode", str, text.length * 2);
  8284.  
  8285. var clipid = Components.interfaces.nsIClipboard;
  8286. var clip = Components.classes["@mozilla.org/widget/clipboard;1"].getService(clipid);
  8287. if (!clip) return false;
  8288.  
  8289. clip.setData(trans, null, clipid.kGlobalClipboard);
  8290. } catch (e) {
  8291. GM_log("Error copyToClipboard : " + e);
  8292. alert(e + "\n\nsigned.applets.codebase_principal_support must be set true in about:config")
  8293. }
  8294. }
  8295. }
  8296.  
  8297.  
  8298.  
  8299. //CustomRules
  8300.  
  8301. function escapeRegex(str)
  8302. {
  8303. return str.replace(/[\-\[\]{}()*+?.,\\\^$|#]/g, "\\$&");
  8304. }
  8305.  
  8306.  
  8307. //called internally from parseCustomRules.
  8308. //expected: rule object with array fields baseurl, alivematch etc, everything must already be checked for input errors
  8309. //returns the rule object with string fields urlregex, xpath, aliveregex etc built from the arrays
  8310. function makeCustomRule(rule)
  8311. {
  8312. function makeMatchRegex(arrmatch)
  8313. {
  8314. return escapeRegex(arrmatch.join('\n'))
  8315. .replace(/ +/g, '\\s+') //two or more spaces to any whitespace
  8316. .replace(/\n/g,'|'); //join together
  8317. }
  8318. if (rule.alivematch) rule.aliveregex = makeMatchRegex(rule.alivematch);
  8319. if (rule.deadmatch) rule.deadregex = makeMatchRegex(rule.deadmatch);
  8320. if (rule.unavamatch) rule.unavaregex = makeMatchRegex(rule.unavamatch);
  8321. if (rule.premmatch) rule.premregex = makeMatchRegex(rule.premmatch);
  8322. if (rule.baseurl)
  8323. {
  8324. var i, m, urlregex = [], xpath = [], len = rule.baseurl.length;
  8325. for (i = 0 ; i < len ; i++)
  8326. {
  8327. m = rule.baseurl[i].match(/^([a-z0-9\.-]+)(?: +([a-z \.]+) +)?(\/.*)$/);
  8328. if (m[2]) //baseurl in the form: example. com co.uk net /xxx
  8329. {
  8330. 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'])
  8331. urlregex.push( (m[1] + '(?:'+ m[2].replace(/\s+/g,'|') + ')').replace(/\./g,'\\.') + escapeRegex(m[3]) + '.'); //urlregex.push('example\\.(?:com|co\\.uk|net)/xxx.')
  8332. }
  8333. else //baseurl in the form: example.com/xxx
  8334. {
  8335. xpath.push(m[0]);
  8336. urlregex.push(escapeRegex(m[0]) + '.');
  8337. }
  8338. }
  8339. rule.xpath = "//a[contains(@href,'" + xpath.join("') or contains(@href,'") + "')]";
  8340. rule.urlregex = '(?:[a-z0-9\\.-]+\\.)?(?:' + urlregex.join('|') + ')';
  8341. }
  8342. return rule;
  8343. } //function makeCustomRule
  8344.  
  8345.  
  8346. /*
  8347. Takes a string containing custom link checking rules.
  8348. Returns an object with fields:
  8349. info - contains notes, warnings and errors found during parsing
  8350. rules - the array of custom rules
  8351. note, warning, error - number of each of them found during parsing
  8352. Format of the input string:
  8353. One command per line. Command format: @keyword parameter
  8354. Keywords:
  8355. @customrule, @customrule_obsolete, @customrule_headers - begin a new custom rule. Parameter: name of the rule
  8356. @#customrule, @#customrule_obsolete, @#customrule_headers - begin and parse this custom rule, but don't use it. Parameter: name of the rule
  8357. These keywords can be multiple (any of them will work):
  8358. @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...)
  8359. @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+
  8360. @alivelink, @deadlink - example links
  8361. @baseurl is always required, @alivematch and @deadmatch are required except for obsolete. @unavamatch is ignored for obsolete. @*link is optional.
  8362. Lines starting with // and empty lines are ignored.
  8363. Invalid parameters generate errors and those lines are skipped.
  8364. Other lines generate warnings, but are otherwise ignored (also those before the first @customrule line or inside a rule with invalid name).
  8365. Example:
  8366. @customrule filehost
  8367. @baseurl filehost.com/download/
  8368. @baseurl filehost2. com net /d?=
  8369. @alivematch id="download">
  8370. @deadmatch File not found
  8371. @deadmatch File deleted
  8372. */
  8373. function parseCustomRules(rulesStr)
  8374. {
  8375. var linenum, customRules = {'info': [], 'rules': [], 'note': 0, 'warning': 0, 'error': 0};
  8376. function addInfo(type, msg, ln){
  8377. customRules.info.push({'linenum':(ln===undefined ? linenum+1 : ln+1), 'type':type, 'msg':msg});
  8378. customRules[type]++;
  8379. }
  8380. var lines = rulesStr.match(/^(.*)$/gm); //split into array of lines
  8381. if (!lines) return null;
  8382. lines.push('@#customrule _'); //to save the last rule
  8383. var m, linecount = lines.length;
  8384. var keyword, param, constr, rule, err;
  8385. var TLD = '[a-z]{2,7}(?:\\.[a-z]{2,7})?';
  8386. var TLDorTLDlist = '(?:'+TLD+'| '+TLD+'(?: '+TLD+'){0,9} )'; //TLD or space-separated list of TLDs
  8387. var baseurlRE = new RegExp('^([a-z0-9-]{1,30}(?:\\.[a-z0-9-]{1,30}){0,2}\\.)'+TLDorTLDlist+'(/[^\'"\s\$]{0,50})$', 'i');
  8388. var constraints = {
  8389. 'baseurl': {
  8390. 'single': {'min': 1, 'max': 10, 'paramRE': baseurlRE},
  8391. 'headers': {'min': 1, 'max': 10, 'paramRE': baseurlRE},
  8392. 'obsolete': {'min': 1, 'max': 10, 'paramRE': baseurlRE}},
  8393. 'alivematch': {
  8394. 'single': {'min': 1, 'max': 10, 'paramRE': null},
  8395. 'headers': {'min': 1, 'max': 10, 'paramRE': null}},
  8396. 'deadmatch': {
  8397. 'single': {'min': 1, 'max': 10, 'paramRE': null},
  8398. 'headers': {'min': 1, 'max': 10, 'paramRE': null}},
  8399. 'unavamatch': {
  8400. 'single': {'min': 0, 'max': 10, 'paramRE': null}},
  8401. 'alivelink': {
  8402. 'single': {'min': 0, 'max': 10, 'paramRE': null},
  8403. 'headers': {'min': 0, 'max': 10, 'paramRE': null}},
  8404. 'deadlink': {
  8405. 'single': {'min': 0, 'max': 10, 'paramRE': null},
  8406. 'headers': {'min': 0, 'max': 10, 'paramRE': null},
  8407. 'obsolete': {'min': 0, 'max': 10, 'paramRE': null}}
  8408. };
  8409. for (linenum = 0 ; linenum < linecount ; linenum++)
  8410. {
  8411. //capturing groups: 1 23 4 5 6
  8412. m = lines[linenum].match(/^\s*(?:(\/\/.*)|@((#?)(customrule)(?:_(headers|obsolete))?|baseurl|alivematch|deadmatch|unavamatch|alivelink|deadlink)\s+(.+))?$/i);
  8413. if (m)
  8414. {
  8415. if (m[1] || !m[2])
  8416. continue; // ignore empty lines and lines starting with //
  8417. keyword = (m[4] || m[2]).toLowerCase();
  8418. param = m[6];
  8419. if (keyword == 'customrule')
  8420. {
  8421. //save the current rule if all required fields are provided
  8422. if (rule)
  8423. {
  8424. err = false;
  8425. $.each(constraints, function(kw, constraint){
  8426. var l, constr = constraint[rule.type];
  8427. if (constr)
  8428. {
  8429. l = rule[kw] ? rule[kw].length : 0;
  8430. if (l < constr.min || l > constr.max)
  8431. {
  8432. 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);
  8433. err = true;
  8434. }
  8435. }
  8436. });
  8437. if (!err)
  8438. customRules.rules.push(makeCustomRule(rule));
  8439. }
  8440. //start a new rule
  8441. if (/^[\w\.-]{1,30}$/.test(param)) //valid name?
  8442. {
  8443. rule = {
  8444. 'enabled': !m[3],
  8445. 'type': m[5] ? m[5].toLowerCase() : 'single',
  8446. 'name': param
  8447. };
  8448. }
  8449. else
  8450. {
  8451. addInfo('error', 'Invalid rule name. Cannot start a new rule definition.');
  8452. rule = null;
  8453. }
  8454. }
  8455. else //good line format, but keyword other than customrule
  8456. {
  8457. if (!rule)
  8458. {
  8459. addInfo('warning', 'Command outside @CUSTOMRULE definiton. Line skipped.');
  8460. continue;
  8461. }
  8462. if (constraints[keyword])
  8463. {
  8464. constr = constraints[keyword][rule.type];
  8465. if (constr)
  8466. {
  8467. if (constr.paramRE && !constr.paramRE.test(param))
  8468. {
  8469. addInfo('warning', 'Invalid @' + keyword.toUpperCase() + ' parameter. Line Skipped.');
  8470. continue;
  8471. }
  8472. }
  8473. else
  8474. {
  8475. addInfo('note', '@' + keyword.toUpperCase() + ' not applicable for type ' + rule.type.toUpperCase() + '. Line skipped.');
  8476. continue;
  8477. }
  8478. }
  8479. //line OK, save
  8480. rule[keyword] ? rule[keyword].push(param) : rule[keyword] = [param];
  8481. }
  8482. } //if (m)
  8483. else
  8484. addInfo('warning', 'Unknown line format. Line skipped.');
  8485. } //for loop
  8486. return customRules;
  8487. } //function parseCustomRules